UNPKG

@eslamdevui/ui

Version:

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

276 lines (272 loc) 6.41 kB
const orientation = [ "horizontal", "vertical" ] as const const variant = [ "solid", "outline", "soft", "subtle", "ghost", "naked" ] as const const highlightColor = [ "primary", "secondary", "success", "info", "warning", "error", "neutral" ] as const const spotlightColor = [ "primary", "secondary", "success", "info", "warning", "error", "neutral" ] as const export default { "slots": { "root": "relative flex rounded-lg", "spotlight": "absolute inset-0 rounded-[inherit] pointer-events-none bg-default/90", "container": "relative flex flex-col flex-1 lg:grid gap-x-8 gap-y-4 p-4 sm:p-6", "wrapper": "flex flex-col flex-1 items-start", "header": "mb-4", "body": "flex-1", "footer": "pt-4 mt-auto", "leading": "inline-flex items-center mb-2.5", "leadingIcon": "size-5 shrink-0 text-primary", "title": "text-base text-pretty font-semibold text-highlighted", "description": "text-[15px] text-pretty" }, "variants": { "orientation": { "horizontal": { "container": "lg:grid-cols-2 lg:items-center" }, "vertical": { "container": "" } }, "reverse": { "true": { "wrapper": "lg:order-last" } }, "variant": { "solid": { "root": "bg-inverted text-inverted", "title": "text-inverted", "description": "text-dimmed" }, "outline": { "root": "bg-default ring ring-default", "description": "text-muted" }, "soft": { "root": "bg-elevated/50", "description": "text-toned" }, "subtle": { "root": "bg-elevated/50 ring ring-default", "description": "text-toned" }, "ghost": { "description": "text-muted" }, "naked": { "container": "p-0 sm:p-0", "description": "text-muted" } }, "to": { "true": { "root": "transition" } }, "title": { "true": { "description": "mt-1" } }, "highlight": { "true": { "root": "ring-2" } }, "highlightColor": { "primary": {}, "secondary": {}, "success": {}, "info": {}, "warning": {}, "error": {}, "neutral": {} }, "spotlight": { "true": { "root": "[--spotlight-size:400px] before:absolute before:-inset-px before:pointer-events-none before:rounded-[inherit] before:bg-[radial-gradient(var(--spotlight-size)_var(--spotlight-size)_at_calc(var(--spotlight-x,0px))_calc(var(--spotlight-y,0px)),var(--spotlight-color),transparent_70%)]" } }, "spotlightColor": { "primary": {}, "secondary": {}, "success": {}, "info": {}, "warning": {}, "error": {}, "neutral": {} } }, "compoundVariants": [ { "variant": "solid" as typeof variant[number], "to": true, "class": { "root": "hover:bg-inverted/90" } }, { "variant": "outline" as typeof variant[number], "to": true, "class": { "root": "hover:bg-elevated/50" } }, { "variant": "soft" as typeof variant[number], "to": true, "class": { "root": "hover:bg-elevated" } }, { "variant": "subtle" as typeof variant[number], "to": true, "class": { "root": "hover:bg-elevated" } }, { "variant": "subtle" as typeof variant[number], "to": true, "highlight": false, "class": { "root": "hover:ring-accented" } }, { "variant": "ghost" as typeof variant[number], "to": true, "class": { "root": "hover:bg-elevated/50" } }, { "highlightColor": "primary" as typeof highlightColor[number], "highlight": true, "class": { "root": "ring-primary" } }, { "highlightColor": "secondary" as typeof highlightColor[number], "highlight": true, "class": { "root": "ring-secondary" } }, { "highlightColor": "success" as typeof highlightColor[number], "highlight": true, "class": { "root": "ring-success" } }, { "highlightColor": "info" as typeof highlightColor[number], "highlight": true, "class": { "root": "ring-info" } }, { "highlightColor": "warning" as typeof highlightColor[number], "highlight": true, "class": { "root": "ring-warning" } }, { "highlightColor": "error" as typeof highlightColor[number], "highlight": true, "class": { "root": "ring-error" } }, { "highlightColor": "neutral" as typeof highlightColor[number], "highlight": true, "class": { "root": "ring-inverted" } }, { "spotlightColor": "primary" as typeof spotlightColor[number], "spotlight": true, "class": { "root": "[--spotlight-color:var(--ui-primary)]" } }, { "spotlightColor": "secondary" as typeof spotlightColor[number], "spotlight": true, "class": { "root": "[--spotlight-color:var(--ui-secondary)]" } }, { "spotlightColor": "success" as typeof spotlightColor[number], "spotlight": true, "class": { "root": "[--spotlight-color:var(--ui-success)]" } }, { "spotlightColor": "info" as typeof spotlightColor[number], "spotlight": true, "class": { "root": "[--spotlight-color:var(--ui-info)]" } }, { "spotlightColor": "warning" as typeof spotlightColor[number], "spotlight": true, "class": { "root": "[--spotlight-color:var(--ui-warning)]" } }, { "spotlightColor": "error" as typeof spotlightColor[number], "spotlight": true, "class": { "root": "[--spotlight-color:var(--ui-error)]" } }, { "spotlightColor": "neutral" as typeof spotlightColor[number], "spotlight": true, "class": { "root": "[--spotlight-color:var(--ui-bg-inverted)]" } } ], "defaultVariants": { "variant": "outline" as typeof variant[number], "highlightColor": "primary" as typeof highlightColor[number], "spotlightColor": "primary" as typeof spotlightColor[number] } }