@nuxt/ui 3.0.0-alpha.0 → 3.0.0-alpha.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.nuxt/ui/accordion.ts +20 -0
- package/.nuxt/ui/alert.ts +242 -0
- package/.nuxt/ui/avatar-group.ts +40 -0
- package/.nuxt/ui/avatar.ts +42 -0
- package/.nuxt/ui/badge.ts +194 -0
- package/.nuxt/ui/breadcrumb.ts +45 -0
- package/.nuxt/ui/button-group.ts +16 -0
- package/.nuxt/ui/button.ts +344 -0
- package/.nuxt/ui/calendar.ts +85 -0
- package/.nuxt/ui/card.ts +8 -0
- package/.nuxt/ui/carousel.ts +41 -0
- package/.nuxt/ui/checkbox.ts +105 -0
- package/.nuxt/ui/chip.ts +67 -0
- package/.nuxt/ui/collapsible.ts +6 -0
- package/.nuxt/ui/color-picker.ts +39 -0
- package/.nuxt/ui/command-palette.ts +50 -0
- package/.nuxt/ui/container.ts +3 -0
- package/.nuxt/ui/context-menu.ts +198 -0
- package/.nuxt/ui/drawer.ts +55 -0
- package/.nuxt/ui/dropdown-menu.ts +199 -0
- package/.nuxt/ui/form-field.ts +40 -0
- package/.nuxt/ui/form.ts +3 -0
- package/.nuxt/ui/index.ts +48 -0
- package/.nuxt/ui/input-menu.ts +410 -0
- package/.nuxt/ui/input-number.ts +204 -0
- package/.nuxt/ui/input.ts +263 -0
- package/.nuxt/ui/kbd.ts +19 -0
- package/.nuxt/ui/link.ts +15 -0
- package/.nuxt/ui/modal.ts +28 -0
- package/.nuxt/ui/navigation-menu.ts +390 -0
- package/.nuxt/ui/pagination.ts +8 -0
- package/.nuxt/ui/pin-input.ts +145 -0
- package/.nuxt/ui/popover.ts +6 -0
- package/.nuxt/ui/progress.ts +258 -0
- package/.nuxt/ui/radio-group.ts +112 -0
- package/.nuxt/ui/select-menu.ts +316 -0
- package/.nuxt/ui/select.ts +315 -0
- package/.nuxt/ui/separator.ts +143 -0
- package/.nuxt/ui/skeleton.ts +3 -0
- package/.nuxt/ui/slideover.ts +63 -0
- package/.nuxt/ui/slider.ts +148 -0
- package/.nuxt/ui/stepper.ts +180 -0
- package/.nuxt/ui/switch.ts +113 -0
- package/.nuxt/ui/table.ts +129 -0
- package/.nuxt/ui/tabs.ts +227 -0
- package/.nuxt/ui/textarea.ts +263 -0
- package/.nuxt/ui/toast.ts +66 -0
- package/.nuxt/ui/toaster.ts +75 -0
- package/.nuxt/ui/tooltip.ts +9 -0
- package/README.md +75 -54
- package/cli/commands/{init.mjs → make/component.mjs} +5 -5
- package/cli/commands/make/index.mjs +14 -0
- package/cli/commands/make/locale.mjs +64 -0
- package/cli/index.mjs +2 -2
- package/cli/templates.mjs +52 -7
- package/cli/utils.mjs +14 -0
- package/dist/chunks/component-meta.cjs +82802 -0
- package/dist/chunks/component-meta.mjs +82800 -0
- package/dist/client/devtools/200.html +1 -0
- package/dist/client/devtools/404.html +1 -0
- package/dist/client/devtools/_fonts/rP2Wp2ywxg089UriCZaSExd86J3t9jz86MvyyKK58UfivUw4aw-SK92LTmKP0.woff2 +0 -0
- package/dist/client/devtools/_fonts/rP2Wp2ywxg089UriCZaSExd86J3t9jz86MvyyKy58UfivUw-9uYm8d48E4.woff2 +0 -0
- package/dist/client/devtools/_fonts/rP2Yp2ywxg089UriI5-g4vlH9VoD8Cmcqbu0-K6z9mXg-VNw7NHvqnp.woff2 +0 -0
- package/dist/client/devtools/_fonts/rP2Yp2ywxg089UriI5-g4vlH9VoD8Cmcqbu6-K6z9mXgjU0-EkYdMs3MAX.woff2 +0 -0
- package/dist/client/devtools/_fonts/rP2rp2ywxg089UriCZaSExd86J3t9jz86Mvy4qCRAL19DksVat-7DW3w-R7n06NbhGy.woff +0 -0
- package/dist/client/devtools/_fonts/rP2rp2ywxg089UriCZaSExd86J3t9jz86Mvy4qCRAL19DksVat-JDG3w-leGNfkTmsj.woff +0 -0
- package/dist/client/devtools/_fonts/rP2rp2ywxg089UriCZaSExd86J3t9jz86Mvy4qCRAL19DksVat-JDW3w-ciElMF03ku.woff +0 -0
- package/dist/client/devtools/_fonts/rP2rp2ywxg089UriCZaSExd86J3t9jz86Mvy4qCRAL19DksVat8JCm3w-sB722Uoa0f.woff +0 -0
- package/dist/client/devtools/_fonts/rP2rp2ywxg089UriCZaSExd86J3t9jz86Mvy4qCRAL19DksVat8JDW3w-PBDI1JDjwV.woff +0 -0
- package/dist/client/devtools/_fonts/rP2rp2ywxg089UriCZaSExd86J3t9jz86Mvy4qCRAL19DksVat8gCm3w-0q1hqVn09O.woff +0 -0
- package/dist/client/devtools/_fonts/rP2rp2ywxg089UriCZaSExd86J3t9jz86Mvy4qCRAL19DksVat9XCm3w-ByvzuLy2fa.woff +0 -0
- package/dist/client/devtools/_fonts/rP2rp2ywxg089UriCZaSExd86J3t9jz86Mvy4qCRAL19DksVat9uCm3w-5TKCIs6EEw.woff +0 -0
- package/dist/client/devtools/_fonts/rP2rp2ywxg089UriCZaSExd86J3t9jz86Mvy4qCRAL19DksVat_XDW3w-r2swRDGfn2.woff +0 -0
- package/dist/client/devtools/_fonts/rP2tp2ywxg089UriI5-g4vlH9VoD8CmcqZG40F9JadbnoEwAC5thTQ-ldB60l5U8r.woff +0 -0
- package/dist/client/devtools/_fonts/rP2tp2ywxg089UriI5-g4vlH9VoD8CmcqZG40F9JadbnoEwAIpthTQ-wbFKGFDrgo.woff +0 -0
- package/dist/client/devtools/_fonts/rP2tp2ywxg089UriI5-g4vlH9VoD8CmcqZG40F9JadbnoEwAIpxhTQ-LLUBv5jskj.woff +0 -0
- package/dist/client/devtools/_fonts/rP2tp2ywxg089UriI5-g4vlH9VoD8CmcqZG40F9JadbnoEwARZthTQ-F71RdTRbNg.woff +0 -0
- package/dist/client/devtools/_fonts/rP2tp2ywxg089UriI5-g4vlH9VoD8CmcqZG40F9JadbnoEwA_JxhTQ-6nh65gZkc0.woff +0 -0
- package/dist/client/devtools/_fonts/rP2tp2ywxg089UriI5-g4vlH9VoD8CmcqZG40F9JadbnoEwAfJthTQ-aMoWEJLmTt.woff +0 -0
- package/dist/client/devtools/_fonts/rP2tp2ywxg089UriI5-g4vlH9VoD8CmcqZG40F9JadbnoEwAkJxhTQ-WMBvmLOgKm.woff +0 -0
- package/dist/client/devtools/_fonts/rP2tp2ywxg089UriI5-g4vlH9VoD8CmcqZG40F9JadbnoEwAop1hTQ-utGC2hnWq2.woff +0 -0
- package/dist/client/devtools/_fonts/rP2tp2ywxg089UriI5-g4vlH9VoD8CmcqZG40F9JadbnoEwAopxhTQ-YpyTieVa5B.woff +0 -0
- package/dist/client/devtools/_nuxt/B1fTd_Rf.js +1 -0
- package/dist/client/devtools/_nuxt/CSUxkedg.js +1 -0
- package/dist/client/devtools/_nuxt/CbRTGpb7.js +1 -0
- package/dist/client/devtools/_nuxt/YQTlxbcT.js +53 -0
- package/dist/client/devtools/_nuxt/builds/latest.json +1 -0
- package/dist/client/devtools/_nuxt/builds/meta/b3465abc-0a92-4ee7-ba6b-e5174891fcc0.json +1 -0
- package/dist/client/devtools/_nuxt/entry.DXXceQev.css +1 -0
- package/dist/client/devtools/_nuxt/error-404.BJpkZFyY.css +1 -0
- package/dist/client/devtools/_nuxt/error-500.D3i9VDlt.css +1 -0
- package/dist/client/devtools/favicon.svg +1 -0
- package/dist/client/devtools/index.html +1 -0
- package/dist/devtools/runtime/DevtoolsRenderer.vue +54 -0
- package/dist/devtools/runtime/examples/AvatarGroupExample.vue +7 -0
- package/dist/devtools/runtime/examples/ButtonGroupExample.vue +8 -0
- package/dist/devtools/runtime/examples/CardExample.vue +13 -0
- package/dist/devtools/runtime/examples/CarouselExample.vue +13 -0
- package/dist/devtools/runtime/examples/ChipExample.vue +5 -0
- package/dist/devtools/runtime/examples/CollapsibleExample.vue +8 -0
- package/dist/devtools/runtime/examples/CommandPaletteExample.vue +29 -0
- package/dist/devtools/runtime/examples/ContainerExample.vue +5 -0
- package/dist/devtools/runtime/examples/ContextMenuExample.vue +5 -0
- package/dist/devtools/runtime/examples/DrawerExample.vue +8 -0
- package/dist/devtools/runtime/examples/DropdownMenuExample.vue +5 -0
- package/dist/devtools/runtime/examples/FormExample.vue +30 -0
- package/dist/devtools/runtime/examples/FormFieldExample.vue +5 -0
- package/dist/devtools/runtime/examples/LinkExample.vue +5 -0
- package/dist/devtools/runtime/examples/ModalExample.vue +8 -0
- package/dist/devtools/runtime/examples/PopoverExample.vue +8 -0
- package/dist/devtools/runtime/examples/SkeletonExample.vue +3 -0
- package/dist/devtools/runtime/examples/SlideoverExample.vue +8 -0
- package/dist/devtools/runtime/examples/StepperExample.vue +44 -0
- package/dist/devtools/runtime/examples/ToasterExample.vue +11 -0
- package/dist/devtools/runtime/examples/TooltipExample.vue +5 -0
- package/dist/module.cjs +223 -4
- package/dist/module.d.cts +54 -0
- package/dist/module.d.mts +38 -7
- package/dist/module.d.ts +38 -7
- package/dist/module.json +4 -3
- package/dist/module.mjs +180 -2617
- package/dist/runtime/components/Accordion.vue +95 -11
- package/dist/runtime/components/Alert.vue +69 -10
- package/dist/runtime/components/App.vue +28 -5
- package/dist/runtime/components/Avatar.vue +57 -12
- package/dist/runtime/components/AvatarGroup.vue +34 -7
- package/dist/runtime/components/Badge.vue +61 -9
- package/dist/runtime/components/Breadcrumb.vue +93 -16
- package/dist/runtime/components/Button.vue +78 -12
- package/dist/runtime/components/ButtonGroup.vue +35 -8
- package/dist/runtime/components/Calendar.vue +190 -0
- package/dist/runtime/components/Card.vue +29 -7
- package/dist/runtime/components/Carousel.vue +322 -0
- package/dist/runtime/components/Checkbox.vue +64 -30
- package/dist/runtime/components/Chip.vue +48 -8
- package/dist/runtime/components/Collapsible.vue +32 -8
- package/dist/runtime/components/ColorPicker.vue +265 -0
- package/dist/runtime/components/CommandPalette.vue +207 -88
- package/dist/runtime/components/Container.vue +26 -7
- package/dist/runtime/components/ContextMenu.vue +150 -11
- package/dist/runtime/components/ContextMenuContent.vue +63 -19
- package/dist/runtime/components/Drawer.vue +68 -15
- package/dist/runtime/components/DropdownMenu.vue +147 -12
- package/dist/runtime/components/DropdownMenuContent.vue +69 -19
- package/dist/runtime/components/Form.vue +80 -42
- package/dist/runtime/components/FormField.vue +58 -21
- package/dist/runtime/components/Icon.vue +13 -3
- package/dist/runtime/components/Input.vue +61 -12
- package/dist/runtime/components/InputMenu.vue +247 -53
- package/dist/runtime/components/InputNumber.vue +192 -0
- package/dist/runtime/components/Kbd.vue +31 -7
- package/dist/runtime/components/Link.vue +148 -21
- package/dist/runtime/components/LinkBase.vue +21 -8
- package/dist/runtime/components/Modal.vue +90 -15
- package/dist/runtime/components/NavigationMenu.vue +234 -69
- package/dist/runtime/components/Pagination.vue +124 -15
- package/dist/runtime/components/PinInput.vue +96 -0
- package/dist/runtime/components/Popover.vue +66 -11
- package/dist/runtime/components/Progress.vue +67 -12
- package/dist/runtime/components/RadioGroup.vue +78 -9
- package/dist/runtime/components/Select.vue +155 -26
- package/dist/runtime/components/SelectMenu.vue +245 -63
- package/dist/runtime/components/Separator.vue +42 -7
- package/dist/runtime/components/Skeleton.vue +22 -7
- package/dist/runtime/components/Slideover.vue +88 -15
- package/dist/runtime/components/Slider.vue +37 -7
- package/dist/runtime/components/Stepper.vue +171 -0
- package/dist/runtime/components/Switch.vue +58 -14
- package/dist/runtime/components/Table.vue +262 -0
- package/dist/runtime/components/Tabs.vue +97 -17
- package/dist/runtime/components/Textarea.vue +55 -9
- package/dist/runtime/components/Toast.vue +66 -9
- package/dist/runtime/components/Toaster.vue +57 -21
- package/dist/runtime/components/Tooltip.vue +49 -10
- package/dist/runtime/composables/defineLocale.d.ts +9 -0
- package/dist/runtime/composables/defineLocale.js +4 -0
- package/dist/runtime/composables/defineShortcuts.d.ts +1 -1
- package/dist/runtime/composables/defineShortcuts.js +2 -8
- package/dist/runtime/composables/extendDevtoolsMeta.d.ts +7 -0
- package/dist/runtime/composables/extendDevtoolsMeta.js +2 -0
- package/dist/runtime/composables/useAvatarGroup.d.ts +2 -2
- package/dist/runtime/composables/useButtonGroup.d.ts +5 -5
- package/dist/runtime/composables/useComponentIcons.d.ts +3 -0
- package/dist/runtime/composables/useFormField.d.ts +13 -6
- package/dist/runtime/composables/useFormField.js +12 -7
- package/dist/runtime/composables/useKbd.d.ts +10 -3
- package/dist/runtime/composables/useKbd.js +14 -8
- package/dist/runtime/composables/useLocale.d.ts +4 -0
- package/dist/runtime/composables/useLocale.js +10 -0
- package/dist/runtime/composables/useModal.d.ts +2 -2
- package/dist/runtime/composables/useSlideover.d.ts +2 -2
- package/dist/runtime/composables/useToast.d.ts +2 -2
- package/dist/runtime/index.css +1 -0
- package/dist/runtime/keyframes.css +1 -0
- package/dist/runtime/locale/ar.d.ts +2 -0
- package/dist/runtime/locale/ar.js +53 -0
- package/dist/runtime/locale/cs.d.ts +2 -0
- package/dist/runtime/locale/cs.js +52 -0
- package/dist/runtime/locale/de.d.ts +2 -0
- package/dist/runtime/locale/de.js +52 -0
- package/dist/runtime/locale/en.d.ts +2 -0
- package/dist/runtime/locale/en.js +52 -0
- package/dist/runtime/locale/es.d.ts +2 -0
- package/dist/runtime/locale/es.js +52 -0
- package/dist/runtime/locale/fa_ir.d.ts +2 -0
- package/dist/runtime/locale/fa_ir.js +53 -0
- package/dist/runtime/locale/fr.d.ts +2 -0
- package/dist/runtime/locale/fr.js +52 -0
- package/dist/runtime/locale/index.d.ts +19 -0
- package/dist/runtime/locale/index.js +19 -0
- package/dist/runtime/locale/it.d.ts +2 -0
- package/dist/runtime/locale/it.js +52 -0
- package/dist/runtime/locale/ja.d.ts +2 -0
- package/dist/runtime/locale/ja.js +52 -0
- package/dist/runtime/locale/ko.d.ts +2 -0
- package/dist/runtime/locale/ko.js +52 -0
- package/dist/runtime/locale/nl.d.ts +2 -0
- package/dist/runtime/locale/nl.js +52 -0
- package/dist/runtime/locale/pl.d.ts +2 -0
- package/dist/runtime/locale/pl.js +52 -0
- package/dist/runtime/locale/pt.d.ts +2 -0
- package/dist/runtime/locale/pt.js +52 -0
- package/dist/runtime/locale/pt_br.d.ts +2 -0
- package/dist/runtime/locale/pt_br.js +52 -0
- package/dist/runtime/locale/ru.d.ts +2 -0
- package/dist/runtime/locale/ru.js +52 -0
- package/dist/runtime/locale/sk.d.ts +2 -0
- package/dist/runtime/locale/sk.js +52 -0
- package/dist/runtime/locale/tr.d.ts +2 -0
- package/dist/runtime/locale/tr.js +52 -0
- package/dist/runtime/locale/zh_hans.d.ts +2 -0
- package/dist/runtime/locale/zh_hans.js +52 -0
- package/dist/runtime/locale/zh_hant.d.ts +2 -0
- package/dist/runtime/locale/zh_hant.js +52 -0
- package/dist/runtime/plugins/colors.d.ts +2 -0
- package/dist/runtime/plugins/colors.js +12 -8
- package/dist/runtime/plugins/modal.d.ts +2 -0
- package/dist/runtime/plugins/slideover.d.ts +2 -0
- package/dist/runtime/types/form.d.ts +10 -4
- package/dist/runtime/types/index.d.ts +50 -42
- package/dist/runtime/types/index.js +8 -0
- package/dist/runtime/types/locale.d.ts +54 -0
- package/dist/runtime/types/utils.d.ts +8 -3
- package/dist/runtime/utils/form.d.ts +7 -5
- package/dist/runtime/utils/form.js +117 -28
- package/dist/runtime/utils/index.d.ts +2 -1
- package/dist/runtime/utils/index.js +16 -0
- package/dist/runtime/utils/link.d.ts +25 -55
- package/dist/runtime/utils/link.js +1 -1
- package/dist/runtime/utils/locale.d.ts +15 -0
- package/dist/runtime/utils/locale.js +25 -0
- package/dist/runtime/vue/components/Icon.vue +15 -0
- package/dist/runtime/vue/components/Link.vue +208 -0
- package/dist/runtime/vue/plugins/color-mode.d.ts +4 -0
- package/dist/runtime/vue/plugins/color-mode.js +6 -0
- package/dist/runtime/vue/plugins/head.d.ts +4 -0
- package/dist/runtime/vue/plugins/head.js +6 -0
- package/dist/runtime/vue/stubs.d.ts +15 -0
- package/dist/runtime/vue/stubs.js +27 -0
- package/dist/shared/ui.CwmIkD_Y.cjs +3269 -0
- package/dist/shared/ui.D_93iuwH.mjs +3262 -0
- package/dist/unplugin.cjs +192 -0
- package/dist/unplugin.d.cts +49 -0
- package/dist/unplugin.d.mts +49 -0
- package/dist/unplugin.d.ts +49 -0
- package/dist/unplugin.mjs +181 -0
- package/dist/vite.cjs +22 -0
- package/dist/vite.d.cts +13 -0
- package/dist/vite.d.mts +13 -0
- package/dist/vite.d.ts +13 -0
- package/dist/vite.mjs +20 -0
- package/package.json +103 -37
- package/vue-plugin.d.ts +5 -0
- package/dist/runtime/assets/css/animations.css +0 -1
- package/dist/runtime/components/Accordion.vue.d.ts +0 -492
- package/dist/runtime/components/Alert.vue.d.ts +0 -548
- package/dist/runtime/components/App.vue.d.ts +0 -25
- package/dist/runtime/components/Avatar.vue.d.ts +0 -384
- package/dist/runtime/components/AvatarGroup.vue.d.ts +0 -381
- package/dist/runtime/components/Badge.vue.d.ts +0 -422
- package/dist/runtime/components/Breadcrumb.vue.d.ts +0 -307
- package/dist/runtime/components/Button.vue.d.ts +0 -949
- package/dist/runtime/components/ButtonGroup.vue.d.ts +0 -182
- package/dist/runtime/components/Card.vue.d.ts +0 -191
- package/dist/runtime/components/Checkbox.vue.d.ts +0 -819
- package/dist/runtime/components/Chip.vue.d.ts +0 -590
- package/dist/runtime/components/Collapsible.vue.d.ts +0 -159
- package/dist/runtime/components/CommandPalette.vue.d.ts +0 -684
- package/dist/runtime/components/Container.vue.d.ts +0 -27
- package/dist/runtime/components/ContextMenu.vue.d.ts +0 -796
- package/dist/runtime/components/Drawer.vue.d.ts +0 -343
- package/dist/runtime/components/DropdownMenu.vue.d.ts +0 -815
- package/dist/runtime/components/DropdownMenuContent.vue.d.ts +0 -0
- package/dist/runtime/components/Form.vue.d.ts +0 -39
- package/dist/runtime/components/FormField.vue.d.ts +0 -356
- package/dist/runtime/components/Icon.vue.d.ts +0 -17
- package/dist/runtime/components/Input.vue.d.ts +0 -1137
- package/dist/runtime/components/InputMenu.vue.d.ts +0 -2121
- package/dist/runtime/components/Kbd.vue.d.ts +0 -169
- package/dist/runtime/components/Link.vue.d.ts +0 -76
- package/dist/runtime/components/LinkBase.vue.d.ts +0 -49
- package/dist/runtime/components/Modal.vue.d.ts +0 -319
- package/dist/runtime/components/NavigationMenu.vue.d.ts +0 -1789
- package/dist/runtime/components/Pagination.vue.d.ts +0 -295
- package/dist/runtime/components/Popover.vue.d.ts +0 -197
- package/dist/runtime/components/Progress.vue.d.ts +0 -1781
- package/dist/runtime/components/RadioGroup.vue.d.ts +0 -1715
- package/dist/runtime/components/Select.vue.d.ts +0 -1569
- package/dist/runtime/components/SelectMenu.vue.d.ts +0 -1661
- package/dist/runtime/components/Separator.vue.d.ts +0 -0
- package/dist/runtime/components/Skeleton.vue.d.ts +0 -26
- package/dist/runtime/components/Slideover.vue.d.ts +0 -375
- package/dist/runtime/components/Slider.vue.d.ts +0 -0
- package/dist/runtime/components/Switch.vue.d.ts +0 -1676
- package/dist/runtime/components/Tabs.vue.d.ts +0 -934
- package/dist/runtime/components/Textarea.vue.d.ts +0 -1133
- package/dist/runtime/components/Toast.vue.d.ts +0 -0
- package/dist/runtime/components/Toaster.vue.d.ts +0 -362
- package/dist/runtime/components/Tooltip.vue.d.ts +0 -248
- package/dist/runtime/types/component.d.ts +0 -17
- package/dist/runtime/types/component.js +0 -0
- /package/dist/runtime/{components/ContextMenuContent.vue.d.ts → types/locale.js} +0 -0
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
"slots": {
|
|
3
|
+
"root": "w-full",
|
|
4
|
+
"item": "border-b border-[var(--ui-border)] last:border-b-0",
|
|
5
|
+
"header": "flex",
|
|
6
|
+
"trigger": "group flex-1 flex items-center gap-1.5 font-medium text-sm py-3.5 focus-visible:outline-[var(--ui-primary)] min-w-0",
|
|
7
|
+
"content": "data-[state=open]:animate-[accordion-down_200ms_ease-out] data-[state=closed]:animate-[accordion-up_200ms_ease-out] overflow-hidden focus:outline-none",
|
|
8
|
+
"body": "text-sm pb-3.5",
|
|
9
|
+
"leadingIcon": "shrink-0 size-5",
|
|
10
|
+
"trailingIcon": "shrink-0 size-5 ms-auto group-data-[state=open]:rotate-180 transition-transform duration-200",
|
|
11
|
+
"label": "text-start break-words"
|
|
12
|
+
},
|
|
13
|
+
"variants": {
|
|
14
|
+
"disabled": {
|
|
15
|
+
"true": {
|
|
16
|
+
"trigger": "cursor-not-allowed opacity-75"
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}
|
|
@@ -0,0 +1,242 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
"slots": {
|
|
3
|
+
"root": "relative overflow-hidden w-full rounded-[calc(var(--ui-radius)*2)] p-4 flex gap-2.5",
|
|
4
|
+
"wrapper": "min-w-0 flex-1 flex flex-col gap-1",
|
|
5
|
+
"title": "text-sm font-medium",
|
|
6
|
+
"description": "text-sm opacity-90",
|
|
7
|
+
"icon": "shrink-0 size-5",
|
|
8
|
+
"avatar": "shrink-0",
|
|
9
|
+
"avatarSize": "2xl",
|
|
10
|
+
"actions": "flex gap-1.5 shrink-0",
|
|
11
|
+
"close": "p-0.5"
|
|
12
|
+
},
|
|
13
|
+
"variants": {
|
|
14
|
+
"color": {
|
|
15
|
+
"primary": "",
|
|
16
|
+
"secondary": "",
|
|
17
|
+
"success": "",
|
|
18
|
+
"info": "",
|
|
19
|
+
"warning": "",
|
|
20
|
+
"error": "",
|
|
21
|
+
"neutral": ""
|
|
22
|
+
},
|
|
23
|
+
"variant": {
|
|
24
|
+
"solid": "",
|
|
25
|
+
"outline": "",
|
|
26
|
+
"soft": "",
|
|
27
|
+
"subtle": ""
|
|
28
|
+
},
|
|
29
|
+
"multiline": {
|
|
30
|
+
"true": {
|
|
31
|
+
"root": "items-start",
|
|
32
|
+
"actions": "items-start mt-1"
|
|
33
|
+
},
|
|
34
|
+
"false": {
|
|
35
|
+
"root": "items-center",
|
|
36
|
+
"actions": "items-center"
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
"compoundVariants": [
|
|
41
|
+
{
|
|
42
|
+
"color": "primary" as const,
|
|
43
|
+
"variant": "solid" as const,
|
|
44
|
+
"class": {
|
|
45
|
+
"root": "bg-[var(--ui-primary)] text-[var(--ui-bg)]"
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"color": "secondary" as const,
|
|
50
|
+
"variant": "solid" as const,
|
|
51
|
+
"class": {
|
|
52
|
+
"root": "bg-[var(--ui-secondary)] text-[var(--ui-bg)]"
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
"color": "success" as const,
|
|
57
|
+
"variant": "solid" as const,
|
|
58
|
+
"class": {
|
|
59
|
+
"root": "bg-[var(--ui-success)] text-[var(--ui-bg)]"
|
|
60
|
+
}
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"color": "info" as const,
|
|
64
|
+
"variant": "solid" as const,
|
|
65
|
+
"class": {
|
|
66
|
+
"root": "bg-[var(--ui-info)] text-[var(--ui-bg)]"
|
|
67
|
+
}
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
"color": "warning" as const,
|
|
71
|
+
"variant": "solid" as const,
|
|
72
|
+
"class": {
|
|
73
|
+
"root": "bg-[var(--ui-warning)] text-[var(--ui-bg)]"
|
|
74
|
+
}
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
"color": "error" as const,
|
|
78
|
+
"variant": "solid" as const,
|
|
79
|
+
"class": {
|
|
80
|
+
"root": "bg-[var(--ui-error)] text-[var(--ui-bg)]"
|
|
81
|
+
}
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
"color": "primary" as const,
|
|
85
|
+
"variant": "outline" as const,
|
|
86
|
+
"class": {
|
|
87
|
+
"root": "text-[var(--ui-primary)] ring ring-inset ring-[var(--ui-primary)]/25"
|
|
88
|
+
}
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
"color": "secondary" as const,
|
|
92
|
+
"variant": "outline" as const,
|
|
93
|
+
"class": {
|
|
94
|
+
"root": "text-[var(--ui-secondary)] ring ring-inset ring-[var(--ui-secondary)]/25"
|
|
95
|
+
}
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
"color": "success" as const,
|
|
99
|
+
"variant": "outline" as const,
|
|
100
|
+
"class": {
|
|
101
|
+
"root": "text-[var(--ui-success)] ring ring-inset ring-[var(--ui-success)]/25"
|
|
102
|
+
}
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
"color": "info" as const,
|
|
106
|
+
"variant": "outline" as const,
|
|
107
|
+
"class": {
|
|
108
|
+
"root": "text-[var(--ui-info)] ring ring-inset ring-[var(--ui-info)]/25"
|
|
109
|
+
}
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
"color": "warning" as const,
|
|
113
|
+
"variant": "outline" as const,
|
|
114
|
+
"class": {
|
|
115
|
+
"root": "text-[var(--ui-warning)] ring ring-inset ring-[var(--ui-warning)]/25"
|
|
116
|
+
}
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
"color": "error" as const,
|
|
120
|
+
"variant": "outline" as const,
|
|
121
|
+
"class": {
|
|
122
|
+
"root": "text-[var(--ui-error)] ring ring-inset ring-[var(--ui-error)]/25"
|
|
123
|
+
}
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
"color": "primary" as const,
|
|
127
|
+
"variant": "soft" as const,
|
|
128
|
+
"class": {
|
|
129
|
+
"root": "bg-[var(--ui-primary)]/10 text-[var(--ui-primary)]"
|
|
130
|
+
}
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
"color": "secondary" as const,
|
|
134
|
+
"variant": "soft" as const,
|
|
135
|
+
"class": {
|
|
136
|
+
"root": "bg-[var(--ui-secondary)]/10 text-[var(--ui-secondary)]"
|
|
137
|
+
}
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
"color": "success" as const,
|
|
141
|
+
"variant": "soft" as const,
|
|
142
|
+
"class": {
|
|
143
|
+
"root": "bg-[var(--ui-success)]/10 text-[var(--ui-success)]"
|
|
144
|
+
}
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
"color": "info" as const,
|
|
148
|
+
"variant": "soft" as const,
|
|
149
|
+
"class": {
|
|
150
|
+
"root": "bg-[var(--ui-info)]/10 text-[var(--ui-info)]"
|
|
151
|
+
}
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
"color": "warning" as const,
|
|
155
|
+
"variant": "soft" as const,
|
|
156
|
+
"class": {
|
|
157
|
+
"root": "bg-[var(--ui-warning)]/10 text-[var(--ui-warning)]"
|
|
158
|
+
}
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
"color": "error" as const,
|
|
162
|
+
"variant": "soft" as const,
|
|
163
|
+
"class": {
|
|
164
|
+
"root": "bg-[var(--ui-error)]/10 text-[var(--ui-error)]"
|
|
165
|
+
}
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
"color": "primary" as const,
|
|
169
|
+
"variant": "subtle" as const,
|
|
170
|
+
"class": {
|
|
171
|
+
"root": "bg-[var(--ui-primary)]/10 text-[var(--ui-primary)] ring ring-inset ring-[var(--ui-primary)]/25"
|
|
172
|
+
}
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
"color": "secondary" as const,
|
|
176
|
+
"variant": "subtle" as const,
|
|
177
|
+
"class": {
|
|
178
|
+
"root": "bg-[var(--ui-secondary)]/10 text-[var(--ui-secondary)] ring ring-inset ring-[var(--ui-secondary)]/25"
|
|
179
|
+
}
|
|
180
|
+
},
|
|
181
|
+
{
|
|
182
|
+
"color": "success" as const,
|
|
183
|
+
"variant": "subtle" as const,
|
|
184
|
+
"class": {
|
|
185
|
+
"root": "bg-[var(--ui-success)]/10 text-[var(--ui-success)] ring ring-inset ring-[var(--ui-success)]/25"
|
|
186
|
+
}
|
|
187
|
+
},
|
|
188
|
+
{
|
|
189
|
+
"color": "info" as const,
|
|
190
|
+
"variant": "subtle" as const,
|
|
191
|
+
"class": {
|
|
192
|
+
"root": "bg-[var(--ui-info)]/10 text-[var(--ui-info)] ring ring-inset ring-[var(--ui-info)]/25"
|
|
193
|
+
}
|
|
194
|
+
},
|
|
195
|
+
{
|
|
196
|
+
"color": "warning" as const,
|
|
197
|
+
"variant": "subtle" as const,
|
|
198
|
+
"class": {
|
|
199
|
+
"root": "bg-[var(--ui-warning)]/10 text-[var(--ui-warning)] ring ring-inset ring-[var(--ui-warning)]/25"
|
|
200
|
+
}
|
|
201
|
+
},
|
|
202
|
+
{
|
|
203
|
+
"color": "error" as const,
|
|
204
|
+
"variant": "subtle" as const,
|
|
205
|
+
"class": {
|
|
206
|
+
"root": "bg-[var(--ui-error)]/10 text-[var(--ui-error)] ring ring-inset ring-[var(--ui-error)]/25"
|
|
207
|
+
}
|
|
208
|
+
},
|
|
209
|
+
{
|
|
210
|
+
"color": "neutral" as const,
|
|
211
|
+
"variant": "solid" as const,
|
|
212
|
+
"class": {
|
|
213
|
+
"root": "text-[var(--ui-bg)] bg-[var(--ui-bg-inverted)]"
|
|
214
|
+
}
|
|
215
|
+
},
|
|
216
|
+
{
|
|
217
|
+
"color": "neutral" as const,
|
|
218
|
+
"variant": "outline" as const,
|
|
219
|
+
"class": {
|
|
220
|
+
"root": "text-[var(--ui-text-highlighted)] bg-[var(--ui-bg)] ring ring-inset ring-[var(--ui-border)]"
|
|
221
|
+
}
|
|
222
|
+
},
|
|
223
|
+
{
|
|
224
|
+
"color": "neutral" as const,
|
|
225
|
+
"variant": "soft" as const,
|
|
226
|
+
"class": {
|
|
227
|
+
"root": "text-[var(--ui-text-highlighted)] bg-[var(--ui-bg-elevated)]/50"
|
|
228
|
+
}
|
|
229
|
+
},
|
|
230
|
+
{
|
|
231
|
+
"color": "neutral" as const,
|
|
232
|
+
"variant": "subtle" as const,
|
|
233
|
+
"class": {
|
|
234
|
+
"root": "text-[var(--ui-text-highlighted)] bg-[var(--ui-bg-elevated)]/50 ring ring-inset ring-[var(--ui-border-accented)]"
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
],
|
|
238
|
+
"defaultVariants": {
|
|
239
|
+
"color": "primary" as const,
|
|
240
|
+
"variant": "solid" as const
|
|
241
|
+
}
|
|
242
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
"slots": {
|
|
3
|
+
"root": "inline-flex flex-row-reverse justify-end",
|
|
4
|
+
"base": "relative rounded-full ring-[var(--ui-bg)] first:me-0"
|
|
5
|
+
},
|
|
6
|
+
"variants": {
|
|
7
|
+
"size": {
|
|
8
|
+
"3xs": {
|
|
9
|
+
"base": "ring -me-0.5"
|
|
10
|
+
},
|
|
11
|
+
"2xs": {
|
|
12
|
+
"base": "ring -me-0.5"
|
|
13
|
+
},
|
|
14
|
+
"xs": {
|
|
15
|
+
"base": "ring -me-0.5"
|
|
16
|
+
},
|
|
17
|
+
"sm": {
|
|
18
|
+
"base": "ring-2 -me-1.5"
|
|
19
|
+
},
|
|
20
|
+
"md": {
|
|
21
|
+
"base": "ring-2 -me-1.5"
|
|
22
|
+
},
|
|
23
|
+
"lg": {
|
|
24
|
+
"base": "ring-2 -me-1.5"
|
|
25
|
+
},
|
|
26
|
+
"xl": {
|
|
27
|
+
"base": "ring-3 -me-2"
|
|
28
|
+
},
|
|
29
|
+
"2xl": {
|
|
30
|
+
"base": "ring-3 -me-2"
|
|
31
|
+
},
|
|
32
|
+
"3xl": {
|
|
33
|
+
"base": "ring-3 -me-2"
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
"defaultVariants": {
|
|
38
|
+
"size": "md" as const
|
|
39
|
+
}
|
|
40
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
"slots": {
|
|
3
|
+
"root": "inline-flex items-center justify-center shrink-0 select-none overflow-hidden rounded-full align-middle bg-[var(--ui-bg-elevated)]",
|
|
4
|
+
"image": "h-full w-full rounded-[inherit] object-cover",
|
|
5
|
+
"fallback": "font-medium leading-none text-[var(--ui-text-muted)] truncate",
|
|
6
|
+
"icon": "text-[var(--ui-text-muted)] shrink-0"
|
|
7
|
+
},
|
|
8
|
+
"variants": {
|
|
9
|
+
"size": {
|
|
10
|
+
"3xs": {
|
|
11
|
+
"root": "size-4 text-[8px]"
|
|
12
|
+
},
|
|
13
|
+
"2xs": {
|
|
14
|
+
"root": "size-5 text-[10px]"
|
|
15
|
+
},
|
|
16
|
+
"xs": {
|
|
17
|
+
"root": "size-6 text-xs"
|
|
18
|
+
},
|
|
19
|
+
"sm": {
|
|
20
|
+
"root": "size-7 text-sm"
|
|
21
|
+
},
|
|
22
|
+
"md": {
|
|
23
|
+
"root": "size-8 text-base"
|
|
24
|
+
},
|
|
25
|
+
"lg": {
|
|
26
|
+
"root": "size-9 text-lg"
|
|
27
|
+
},
|
|
28
|
+
"xl": {
|
|
29
|
+
"root": "size-10 text-xl"
|
|
30
|
+
},
|
|
31
|
+
"2xl": {
|
|
32
|
+
"root": "size-11 text-[22px]"
|
|
33
|
+
},
|
|
34
|
+
"3xl": {
|
|
35
|
+
"root": "size-12 text-2xl"
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
"defaultVariants": {
|
|
40
|
+
"size": "md" as const
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -0,0 +1,194 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
"slots": {
|
|
3
|
+
"base": "rounded-[calc(var(--ui-radius)*1.5)] font-medium inline-flex items-center",
|
|
4
|
+
"label": "truncate",
|
|
5
|
+
"leadingIcon": "shrink-0",
|
|
6
|
+
"leadingAvatar": "shrink-0",
|
|
7
|
+
"leadingAvatarSize": "",
|
|
8
|
+
"trailingIcon": "shrink-0"
|
|
9
|
+
},
|
|
10
|
+
"variants": {
|
|
11
|
+
"color": {
|
|
12
|
+
"primary": "",
|
|
13
|
+
"secondary": "",
|
|
14
|
+
"success": "",
|
|
15
|
+
"info": "",
|
|
16
|
+
"warning": "",
|
|
17
|
+
"error": "",
|
|
18
|
+
"neutral": ""
|
|
19
|
+
},
|
|
20
|
+
"variant": {
|
|
21
|
+
"solid": "",
|
|
22
|
+
"outline": "",
|
|
23
|
+
"soft": "",
|
|
24
|
+
"subtle": ""
|
|
25
|
+
},
|
|
26
|
+
"size": {
|
|
27
|
+
"sm": {
|
|
28
|
+
"base": "text-xs px-1.5 py-0.5 gap-1",
|
|
29
|
+
"leadingIcon": "size-4",
|
|
30
|
+
"leadingAvatarSize": "3xs",
|
|
31
|
+
"trailingIcon": "size-4"
|
|
32
|
+
},
|
|
33
|
+
"md": {
|
|
34
|
+
"base": "text-xs px-2 py-1 gap-1",
|
|
35
|
+
"leadingIcon": "size-4",
|
|
36
|
+
"leadingAvatarSize": "3xs",
|
|
37
|
+
"trailingIcon": "size-4"
|
|
38
|
+
},
|
|
39
|
+
"lg": {
|
|
40
|
+
"base": "text-sm px-2 py-1 gap-1.5",
|
|
41
|
+
"leadingIcon": "size-5",
|
|
42
|
+
"leadingAvatarSize": "2xs",
|
|
43
|
+
"trailingIcon": "size-5"
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
"compoundVariants": [
|
|
48
|
+
{
|
|
49
|
+
"color": "primary" as const,
|
|
50
|
+
"variant": "solid" as const,
|
|
51
|
+
"class": "bg-[var(--ui-primary)] text-[var(--ui-bg)]"
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"color": "secondary" as const,
|
|
55
|
+
"variant": "solid" as const,
|
|
56
|
+
"class": "bg-[var(--ui-secondary)] text-[var(--ui-bg)]"
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"color": "success" as const,
|
|
60
|
+
"variant": "solid" as const,
|
|
61
|
+
"class": "bg-[var(--ui-success)] text-[var(--ui-bg)]"
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
"color": "info" as const,
|
|
65
|
+
"variant": "solid" as const,
|
|
66
|
+
"class": "bg-[var(--ui-info)] text-[var(--ui-bg)]"
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
"color": "warning" as const,
|
|
70
|
+
"variant": "solid" as const,
|
|
71
|
+
"class": "bg-[var(--ui-warning)] text-[var(--ui-bg)]"
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"color": "error" as const,
|
|
75
|
+
"variant": "solid" as const,
|
|
76
|
+
"class": "bg-[var(--ui-error)] text-[var(--ui-bg)]"
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
"color": "primary" as const,
|
|
80
|
+
"variant": "outline" as const,
|
|
81
|
+
"class": "text-[var(--ui-primary)] ring ring-inset ring-[var(--ui-primary)]/50"
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
"color": "secondary" as const,
|
|
85
|
+
"variant": "outline" as const,
|
|
86
|
+
"class": "text-[var(--ui-secondary)] ring ring-inset ring-[var(--ui-secondary)]/50"
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
"color": "success" as const,
|
|
90
|
+
"variant": "outline" as const,
|
|
91
|
+
"class": "text-[var(--ui-success)] ring ring-inset ring-[var(--ui-success)]/50"
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
"color": "info" as const,
|
|
95
|
+
"variant": "outline" as const,
|
|
96
|
+
"class": "text-[var(--ui-info)] ring ring-inset ring-[var(--ui-info)]/50"
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
"color": "warning" as const,
|
|
100
|
+
"variant": "outline" as const,
|
|
101
|
+
"class": "text-[var(--ui-warning)] ring ring-inset ring-[var(--ui-warning)]/50"
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
"color": "error" as const,
|
|
105
|
+
"variant": "outline" as const,
|
|
106
|
+
"class": "text-[var(--ui-error)] ring ring-inset ring-[var(--ui-error)]/50"
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
"color": "primary" as const,
|
|
110
|
+
"variant": "soft" as const,
|
|
111
|
+
"class": "bg-[var(--ui-primary)]/10 text-[var(--ui-primary)]"
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
"color": "secondary" as const,
|
|
115
|
+
"variant": "soft" as const,
|
|
116
|
+
"class": "bg-[var(--ui-secondary)]/10 text-[var(--ui-secondary)]"
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
"color": "success" as const,
|
|
120
|
+
"variant": "soft" as const,
|
|
121
|
+
"class": "bg-[var(--ui-success)]/10 text-[var(--ui-success)]"
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
"color": "info" as const,
|
|
125
|
+
"variant": "soft" as const,
|
|
126
|
+
"class": "bg-[var(--ui-info)]/10 text-[var(--ui-info)]"
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
"color": "warning" as const,
|
|
130
|
+
"variant": "soft" as const,
|
|
131
|
+
"class": "bg-[var(--ui-warning)]/10 text-[var(--ui-warning)]"
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
"color": "error" as const,
|
|
135
|
+
"variant": "soft" as const,
|
|
136
|
+
"class": "bg-[var(--ui-error)]/10 text-[var(--ui-error)]"
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
"color": "primary" as const,
|
|
140
|
+
"variant": "subtle" as const,
|
|
141
|
+
"class": "bg-[var(--ui-primary)]/10 text-[var(--ui-primary)] ring ring-inset ring-[var(--ui-primary)]/25"
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
"color": "secondary" as const,
|
|
145
|
+
"variant": "subtle" as const,
|
|
146
|
+
"class": "bg-[var(--ui-secondary)]/10 text-[var(--ui-secondary)] ring ring-inset ring-[var(--ui-secondary)]/25"
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
"color": "success" as const,
|
|
150
|
+
"variant": "subtle" as const,
|
|
151
|
+
"class": "bg-[var(--ui-success)]/10 text-[var(--ui-success)] ring ring-inset ring-[var(--ui-success)]/25"
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
"color": "info" as const,
|
|
155
|
+
"variant": "subtle" as const,
|
|
156
|
+
"class": "bg-[var(--ui-info)]/10 text-[var(--ui-info)] ring ring-inset ring-[var(--ui-info)]/25"
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
"color": "warning" as const,
|
|
160
|
+
"variant": "subtle" as const,
|
|
161
|
+
"class": "bg-[var(--ui-warning)]/10 text-[var(--ui-warning)] ring ring-inset ring-[var(--ui-warning)]/25"
|
|
162
|
+
},
|
|
163
|
+
{
|
|
164
|
+
"color": "error" as const,
|
|
165
|
+
"variant": "subtle" as const,
|
|
166
|
+
"class": "bg-[var(--ui-error)]/10 text-[var(--ui-error)] ring ring-inset ring-[var(--ui-error)]/25"
|
|
167
|
+
},
|
|
168
|
+
{
|
|
169
|
+
"color": "neutral" as const,
|
|
170
|
+
"variant": "solid" as const,
|
|
171
|
+
"class": "text-[var(--ui-bg)] bg-[var(--ui-bg-inverted)]"
|
|
172
|
+
},
|
|
173
|
+
{
|
|
174
|
+
"color": "neutral" as const,
|
|
175
|
+
"variant": "outline" as const,
|
|
176
|
+
"class": "ring ring-inset ring-[var(--ui-border-accented)] text-[var(--ui-text)] bg-[var(--ui-bg)]"
|
|
177
|
+
},
|
|
178
|
+
{
|
|
179
|
+
"color": "neutral" as const,
|
|
180
|
+
"variant": "soft" as const,
|
|
181
|
+
"class": "text-[var(--ui-text)] bg-[var(--ui-bg-elevated)]"
|
|
182
|
+
},
|
|
183
|
+
{
|
|
184
|
+
"color": "neutral" as const,
|
|
185
|
+
"variant": "subtle" as const,
|
|
186
|
+
"class": "ring ring-inset ring-[var(--ui-border-accented)] text-[var(--ui-text)] bg-[var(--ui-bg-elevated)]"
|
|
187
|
+
}
|
|
188
|
+
],
|
|
189
|
+
"defaultVariants": {
|
|
190
|
+
"color": "primary" as const,
|
|
191
|
+
"variant": "solid" as const,
|
|
192
|
+
"size": "md" as const
|
|
193
|
+
}
|
|
194
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
"slots": {
|
|
3
|
+
"root": "relative min-w-0",
|
|
4
|
+
"list": "flex items-center gap-1.5",
|
|
5
|
+
"item": "flex min-w-0",
|
|
6
|
+
"link": "group relative flex items-center gap-1.5 text-sm min-w-0 focus-visible:outline-[var(--ui-primary)]",
|
|
7
|
+
"linkLeadingIcon": "shrink-0 size-5",
|
|
8
|
+
"linkLeadingAvatar": "shrink-0",
|
|
9
|
+
"linkLeadingAvatarSize": "2xs",
|
|
10
|
+
"linkLabel": "truncate",
|
|
11
|
+
"separator": "flex",
|
|
12
|
+
"separatorIcon": "shrink-0 size-5 text-[var(--ui-text-muted)]"
|
|
13
|
+
},
|
|
14
|
+
"variants": {
|
|
15
|
+
"active": {
|
|
16
|
+
"true": {
|
|
17
|
+
"link": "text-[var(--ui-primary)] font-semibold"
|
|
18
|
+
},
|
|
19
|
+
"false": {
|
|
20
|
+
"link": "text-[var(--ui-text-muted)] font-medium"
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
"disabled": {
|
|
24
|
+
"true": {
|
|
25
|
+
"link": "cursor-not-allowed opacity-75"
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
"to": {
|
|
29
|
+
"true": ""
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
"compoundVariants": [
|
|
33
|
+
{
|
|
34
|
+
"disabled": false,
|
|
35
|
+
"active": false,
|
|
36
|
+
"to": true,
|
|
37
|
+
"class": {
|
|
38
|
+
"link": [
|
|
39
|
+
"hover:text-[var(--ui-text)]",
|
|
40
|
+
"transition-colors"
|
|
41
|
+
]
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
]
|
|
45
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
"base": "relative",
|
|
3
|
+
"variants": {
|
|
4
|
+
"size": {
|
|
5
|
+
"xs": "",
|
|
6
|
+
"sm": "",
|
|
7
|
+
"md": "",
|
|
8
|
+
"lg": "",
|
|
9
|
+
"xl": ""
|
|
10
|
+
},
|
|
11
|
+
"orientation": {
|
|
12
|
+
"horizontal": "inline-flex -space-x-px",
|
|
13
|
+
"vertical": "flex flex-col -space-y-px"
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
}
|