UNPKG

@nuxt/ui

Version:

A UI Library for Modern Web Apps, powered by Vue & Tailwind CSS.

126 lines (125 loc) 2.85 kB
const direction = [ "top", "right", "bottom", "left" ] as const export default { "slots": { "overlay": "fixed inset-0 bg-elevated/75", "content": "fixed bg-default ring ring-default flex focus:outline-none", "handle": [ "shrink-0 !bg-accented", "transition-opacity" ], "container": "w-full flex flex-col gap-4 p-4 overflow-y-auto", "header": "", "title": "text-highlighted font-semibold", "description": "mt-1 text-muted text-sm", "body": "flex-1", "footer": "flex flex-col gap-1.5" }, "variants": { "direction": { "top": { "content": "mb-24 flex-col-reverse", "handle": "mb-4" }, "right": { "content": "flex-row", "handle": "!ml-4" }, "bottom": { "content": "mt-24 flex-col", "handle": "mt-4" }, "left": { "content": "flex-row-reverse", "handle": "!mr-4" } }, "inset": { "true": { "content": "rounded-lg after:hidden" } } }, "compoundVariants": [ { "direction": [ "top" as typeof direction[number], "bottom" as typeof direction[number] ], "class": { "content": "h-auto max-h-[96%]", "handle": "!w-12 !h-1.5 mx-auto" } }, { "direction": [ "right" as typeof direction[number], "left" as typeof direction[number] ], "class": { "content": "w-auto max-w-[calc(100%-2rem)]", "handle": "!h-12 !w-1.5 mt-auto mb-auto" } }, { "direction": "top" as typeof direction[number], "inset": true, "class": { "content": "inset-x-4 top-4" } }, { "direction": "top" as typeof direction[number], "inset": false, "class": { "content": "inset-x-0 top-0 rounded-b-lg" } }, { "direction": "bottom" as typeof direction[number], "inset": true, "class": { "content": "inset-x-4 bottom-4" } }, { "direction": "bottom" as typeof direction[number], "inset": false, "class": { "content": "inset-x-0 bottom-0 rounded-t-lg" } }, { "direction": "left" as typeof direction[number], "inset": true, "class": { "content": "inset-y-4 left-4" } }, { "direction": "left" as typeof direction[number], "inset": false, "class": { "content": "inset-y-0 left-0 rounded-r-lg" } }, { "direction": "right" as typeof direction[number], "inset": true, "class": { "content": "inset-y-4 right-4" } }, { "direction": "right" as typeof direction[number], "inset": false, "class": { "content": "inset-y-0 right-0 rounded-l-lg" } } ] }