merge: integrate reviewed AlertDialog Drawer with ListBox main
This commit is contained in:
@@ -1298,3 +1298,124 @@ export const listboxSectionVariants = tv({ base: "hv-list-box-section" });
|
||||
export type ListBoxSectionVariants = VariantProps<
|
||||
typeof listboxSectionVariants
|
||||
>;
|
||||
|
||||
export const alertDialogVariants = tv({
|
||||
defaultVariants: {
|
||||
size: "md",
|
||||
status: "danger",
|
||||
variant: "opaque",
|
||||
},
|
||||
slots: {
|
||||
backdrop: "hv-alert-dialog__backdrop",
|
||||
body: "hv-alert-dialog__body",
|
||||
closeTrigger: "hv-alert-dialog__close-trigger",
|
||||
container: "hv-alert-dialog__container",
|
||||
dialog: "hv-alert-dialog__dialog",
|
||||
footer: "hv-alert-dialog__footer",
|
||||
header: "hv-alert-dialog__header",
|
||||
heading: "hv-alert-dialog__heading",
|
||||
icon: "hv-alert-dialog__icon",
|
||||
trigger: "hv-alert-dialog__trigger",
|
||||
},
|
||||
variants: {
|
||||
size: {
|
||||
cover: {
|
||||
dialog: "hv-alert-dialog__dialog--cover",
|
||||
},
|
||||
lg: {
|
||||
dialog: "hv-alert-dialog__dialog--lg",
|
||||
},
|
||||
md: {
|
||||
dialog: "hv-alert-dialog__dialog--md",
|
||||
},
|
||||
sm: {
|
||||
dialog: "hv-alert-dialog__dialog--sm",
|
||||
},
|
||||
xs: {
|
||||
dialog: "hv-alert-dialog__dialog--xs",
|
||||
},
|
||||
},
|
||||
status: {
|
||||
accent: {
|
||||
icon: "hv-alert-dialog__icon--accent",
|
||||
},
|
||||
danger: {
|
||||
icon: "hv-alert-dialog__icon--danger",
|
||||
},
|
||||
default: {
|
||||
icon: "hv-alert-dialog__icon--default",
|
||||
},
|
||||
success: {
|
||||
icon: "hv-alert-dialog__icon--success",
|
||||
},
|
||||
warning: {
|
||||
icon: "hv-alert-dialog__icon--warning",
|
||||
},
|
||||
},
|
||||
variant: {
|
||||
blur: {
|
||||
backdrop: "hv-alert-dialog__backdrop--blur",
|
||||
},
|
||||
opaque: {
|
||||
backdrop: "hv-alert-dialog__backdrop--opaque",
|
||||
},
|
||||
transparent: {
|
||||
backdrop: "hv-alert-dialog__backdrop--transparent",
|
||||
},
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
export type AlertDialogVariants = VariantProps<typeof alertDialogVariants>;
|
||||
|
||||
export const drawerVariants = tv({
|
||||
defaultVariants: {
|
||||
placement: "bottom",
|
||||
variant: "opaque",
|
||||
},
|
||||
slots: {
|
||||
backdrop: "hv-drawer__backdrop",
|
||||
body: "hv-drawer__body",
|
||||
closeTrigger: "hv-drawer__close-trigger",
|
||||
content: "hv-drawer__content",
|
||||
dialog: "hv-drawer__dialog",
|
||||
footer: "hv-drawer__footer",
|
||||
handle: "hv-drawer__handle",
|
||||
header: "hv-drawer__header",
|
||||
heading: "hv-drawer__heading",
|
||||
trigger: "hv-drawer__trigger",
|
||||
},
|
||||
variants: {
|
||||
placement: {
|
||||
bottom: {
|
||||
content: "hv-drawer__content--bottom",
|
||||
dialog: "hv-drawer__dialog--bottom",
|
||||
},
|
||||
left: {
|
||||
content: "hv-drawer__content--left",
|
||||
dialog: "hv-drawer__dialog--left",
|
||||
},
|
||||
right: {
|
||||
content: "hv-drawer__content--right",
|
||||
dialog: "hv-drawer__dialog--right",
|
||||
},
|
||||
top: {
|
||||
content: "hv-drawer__content--top",
|
||||
dialog: "hv-drawer__dialog--top",
|
||||
},
|
||||
},
|
||||
variant: {
|
||||
blur: {
|
||||
backdrop: "hv-drawer__backdrop--blur",
|
||||
},
|
||||
opaque: {
|
||||
backdrop: "hv-drawer__backdrop--opaque",
|
||||
},
|
||||
transparent: {
|
||||
backdrop: "hv-drawer__backdrop--transparent",
|
||||
},
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
export type DrawerVariants = VariantProps<typeof drawerVariants>;
|
||||
|
||||
Reference in New Issue
Block a user