Files
heroui-vue/tests/package/m33-m34-contract.ts
T

41 lines
1.1 KiB
TypeScript

import {
type AlertDialogContainerProps,
type AlertDialogIconProps,
type AlertDialogBackdropProps,
type DrawerContentProps,
type DrawerBackdropProps,
DrawerHandle,
AlertDialog,
} from "@heroui-vue/components";
const size: AlertDialogContainerProps = { size: "cover", placement: "bottom" };
const status: AlertDialogIconProps = { status: "danger" };
const backdrop: AlertDialogBackdropProps = {
isDismissable: false,
isKeyboardDismissDisabled: true,
};
const drawer: DrawerContentProps = { placement: "left" };
const state: DrawerBackdropProps = {
open: true,
"onUpdate:open": (v: boolean) => {
void v;
},
};
// @ts-expect-error placement is constrained
const invalidDirection: DrawerContentProps = { placement: "diagonal" };
// @ts-expect-error size is constrained
const invalidSize: AlertDialogContainerProps = { size: "giant" };
// @ts-expect-error dismiss policy must remain Boolean
const invalidPolicy: AlertDialogBackdropProps = { isDismissable: "false" };
void [
size,
status,
backdrop,
drawer,
state,
invalidDirection,
invalidSize,
invalidPolicy,
DrawerHandle,
AlertDialog,
];