UNPKG

@indielayer/ui

Version:

Indielayer UI Components with Tailwind CSS build for Vue 3

30 lines (29 loc) 1.54 kB
const a = { classes: { wrapper: "fixed z-40 inset-0 overflow-y-auto transition-all", backdrop: ({ data: e }) => { const t = ["fixed inset-0 bg-secondary-500 dark:bg-black transition-opacity"]; return e.visible ? t.push("ease-out duration-200 opacity-70 dark:opacity-70") : t.push("ease-in duration-100 opacity-0"), t; }, modal: ({ props: e, data: t }) => { const s = ["relative flex flex-col z-10 bg-secondary-200 dark:bg-secondary-900 shadow-lg transform transition-all overflow-hidden max-h-full w-full"]; return t.visible ? s.push("ease-out duration-200 opacity-100 translate-y-0 sm:scale-100") : s.push("ease-in duration-200 opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95"), e.size === "xs" ? s.push("sm:max-w-xs") : e.size === "sm" ? s.push("sm:max-w-sm") : e.size === "md" ? s.push("sm:max-w-lg") : e.size === "lg" ? s.push("sm:max-w-3xl") : e.size === "xl" ? s.push("sm:max-w-6xl") : e.size === "full" && s.push("h-full"), s; }, closeIcon: "!absolute top-0 z-10 right-0", header: "text-lg pl-4 pt-4 pr-12", content: ({ props: e }) => { const t = ["pb-8"]; return e.fluid || t.push("px-4"), t; }, actions: ({ props: e, slots: t }) => { const s = ["grid grid-flow-col gap-[1px]"]; return t["tertiary-action"] || t["cancel-action"] ? s.push("grid-cols-4") : s.push("grid-cols-2"), s; }, label: "text-xs text-secondary-500 mb-1", title: "text-xl mb-4", description: "text-sm mb-4" } }, l = a; export { l as default };