diff --git a/src/lib/components/ui/select/Select.variants.ts b/src/lib/components/ui/select/Select.variants.ts new file mode 100644 index 0000000..c04f802 --- /dev/null +++ b/src/lib/components/ui/select/Select.variants.ts @@ -0,0 +1,21 @@ +export const COLOR_MAP = { + neutral: 'select-neutral', + primary: 'select-primary', + secondary: 'select-secondary', + accent: 'select-accent', + info: 'select-info', + success: 'select-success', + warning: 'select-warning', + error: 'select-error', +} as const; + +export const SIZE_MAP = { + xs: 'select-xs', + sm: 'select-sm', + md: 'select-md', + lg: 'select-lg', + xl: 'select-xl', +} as const; + +export type Color = keyof typeof COLOR_MAP; +export type Size = keyof typeof SIZE_MAP; diff --git a/src/lib/components/ui/select/SelectContent.svelte b/src/lib/components/ui/select/SelectContent.svelte index 544fac4..d8a6cca 100644 --- a/src/lib/components/ui/select/SelectContent.svelte +++ b/src/lib/components/ui/select/SelectContent.svelte @@ -1,6 +1,6 @@ - + {@render children?.()}