@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,39 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
"slots": {
|
|
3
|
+
"root": "data-[disabled]:opacity-75",
|
|
4
|
+
"picker": "flex gap-4",
|
|
5
|
+
"selector": "rounded-[calc(var(--ui-radius)*1.5)]",
|
|
6
|
+
"selectorBackground": "w-full h-full relative rounded-[calc(var(--ui-radius)*1.2)]",
|
|
7
|
+
"selectorThumb": "-translate-y-1/2 -translate-x-1/2 absolute size-4 ring-2 ring-[var(--color-white)] rounded-full cursor-pointer data-[disabled]:cursor-not-allowed",
|
|
8
|
+
"track": "w-[8px] relative rounded-[calc(var(--ui-radius)*1.5)]",
|
|
9
|
+
"trackThumb": "absolute transform -translate-y-1/2 -translate-x-[4px] rtl:translate-x-[4px] size-4 rounded-full ring-2 ring-[var(--color-white)] cursor-pointer data-[disabled]:cursor-not-allowed"
|
|
10
|
+
},
|
|
11
|
+
"variants": {
|
|
12
|
+
"size": {
|
|
13
|
+
"xs": {
|
|
14
|
+
"selector": "w-38 h-38",
|
|
15
|
+
"track": "h-38"
|
|
16
|
+
},
|
|
17
|
+
"sm": {
|
|
18
|
+
"selector": "w-40 h-40",
|
|
19
|
+
"track": "h-40"
|
|
20
|
+
},
|
|
21
|
+
"md": {
|
|
22
|
+
"selector": "w-42 h-42",
|
|
23
|
+
"track": "h-42"
|
|
24
|
+
},
|
|
25
|
+
"lg": {
|
|
26
|
+
"selector": "w-44 h-44",
|
|
27
|
+
"track": "h-44"
|
|
28
|
+
},
|
|
29
|
+
"xl": {
|
|
30
|
+
"selector": "w-46 h-46",
|
|
31
|
+
"track": "h-46"
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
"compoundVariants": [],
|
|
36
|
+
"defaultVariants": {
|
|
37
|
+
"size": "md" as const
|
|
38
|
+
}
|
|
39
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
"slots": {
|
|
3
|
+
"root": "flex flex-col min-h-0 min-w-0 divide-y divide-[var(--ui-border)]",
|
|
4
|
+
"input": "[&>input]:h-12",
|
|
5
|
+
"close": "",
|
|
6
|
+
"content": "relative overflow-hidden flex flex-col",
|
|
7
|
+
"viewport": "relative divide-y divide-[var(--ui-border)] scroll-py-1 overflow-y-auto flex-1 focus:outline-none",
|
|
8
|
+
"group": "p-1 isolate",
|
|
9
|
+
"empty": "py-6 text-center text-sm text-[var(--ui-text-muted)]",
|
|
10
|
+
"label": "px-2 py-1.5 text-xs font-semibold text-[var(--ui-text-highlighted)]",
|
|
11
|
+
"item": "group relative w-full flex items-center gap-2 px-2 py-1.5 text-sm select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-[calc(var(--ui-radius)*1.5)] data-disabled:cursor-not-allowed data-disabled:opacity-75",
|
|
12
|
+
"itemLeadingIcon": "shrink-0 size-5",
|
|
13
|
+
"itemLeadingAvatar": "shrink-0",
|
|
14
|
+
"itemLeadingAvatarSize": "2xs",
|
|
15
|
+
"itemLeadingChip": "shrink-0 size-5",
|
|
16
|
+
"itemLeadingChipSize": "md",
|
|
17
|
+
"itemTrailing": "ms-auto inline-flex gap-1.5 items-center",
|
|
18
|
+
"itemTrailingIcon": "shrink-0 size-5",
|
|
19
|
+
"itemTrailingHighlightedIcon": "shrink-0 size-5 text-[var(--ui-text-dimmed)] hidden group-data-highlighted:inline-flex",
|
|
20
|
+
"itemTrailingKbds": "hidden lg:inline-flex items-center shrink-0 gap-0.5",
|
|
21
|
+
"itemTrailingKbdsSize": "md",
|
|
22
|
+
"itemLabel": "truncate space-x-1 rtl:space-x-reverse",
|
|
23
|
+
"itemLabelBase": "text-[var(--ui-text-highlighted)] [&>mark]:text-[var(--ui-bg)] [&>mark]:bg-[var(--ui-primary)]",
|
|
24
|
+
"itemLabelPrefix": "text-[var(--ui-text)]",
|
|
25
|
+
"itemLabelSuffix": "text-[var(--ui-text-dimmed)] [&>mark]:text-[var(--ui-bg)] [&>mark]:bg-[var(--ui-primary)]"
|
|
26
|
+
},
|
|
27
|
+
"variants": {
|
|
28
|
+
"active": {
|
|
29
|
+
"true": {
|
|
30
|
+
"item": "text-[var(--ui-text-highlighted)] before:bg-[var(--ui-bg-elevated)]",
|
|
31
|
+
"itemLeadingIcon": "text-[var(--ui-text)]"
|
|
32
|
+
},
|
|
33
|
+
"false": {
|
|
34
|
+
"item": [
|
|
35
|
+
"text-[var(--ui-text)] data-highlighted:text-[var(--ui-text-highlighted)] data-highlighted:before:bg-[var(--ui-bg-elevated)]/50",
|
|
36
|
+
"transition-colors before:transition-colors"
|
|
37
|
+
],
|
|
38
|
+
"itemLeadingIcon": [
|
|
39
|
+
"text-[var(--ui-text-dimmed)] group-data-highlighted:text-[var(--ui-text)]",
|
|
40
|
+
"transition-colors"
|
|
41
|
+
]
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
"loading": {
|
|
45
|
+
"true": {
|
|
46
|
+
"itemLeadingIcon": "animate-spin"
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}
|
|
@@ -0,0 +1,198 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
"slots": {
|
|
3
|
+
"content": "min-w-32 bg-[var(--ui-bg)] shadow-lg rounded-[calc(var(--ui-radius)*1.5)] ring ring-[var(--ui-border)] divide-y divide-[var(--ui-border)] overflow-y-auto scroll-py-1 data-[state=open]:animate-[scale-in_100ms_ease-out] data-[state=closed]:animate-[scale-out_100ms_ease-in]",
|
|
4
|
+
"group": "p-1 isolate",
|
|
5
|
+
"label": "w-full flex items-center font-semibold text-[var(--ui-text-highlighted)]",
|
|
6
|
+
"separator": "-mx-1 my-1 h-px bg-[var(--ui-border)]",
|
|
7
|
+
"item": "group relative w-full flex items-center select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-[calc(var(--ui-radius)*1.5)] data-disabled:cursor-not-allowed data-disabled:opacity-75",
|
|
8
|
+
"itemLeadingIcon": "shrink-0",
|
|
9
|
+
"itemLeadingAvatar": "shrink-0",
|
|
10
|
+
"itemLeadingAvatarSize": "",
|
|
11
|
+
"itemTrailing": "ms-auto inline-flex gap-1.5 items-center",
|
|
12
|
+
"itemTrailingIcon": "shrink-0",
|
|
13
|
+
"itemTrailingKbds": "hidden lg:inline-flex items-center shrink-0",
|
|
14
|
+
"itemTrailingKbdsSize": "",
|
|
15
|
+
"itemLabel": "truncate",
|
|
16
|
+
"itemLabelExternalIcon": "inline-block size-3 align-top text-[var(--ui-text-dimmed)]"
|
|
17
|
+
},
|
|
18
|
+
"variants": {
|
|
19
|
+
"color": {
|
|
20
|
+
"primary": "",
|
|
21
|
+
"secondary": "",
|
|
22
|
+
"success": "",
|
|
23
|
+
"info": "",
|
|
24
|
+
"warning": "",
|
|
25
|
+
"error": "",
|
|
26
|
+
"neutral": ""
|
|
27
|
+
},
|
|
28
|
+
"active": {
|
|
29
|
+
"true": {
|
|
30
|
+
"item": "text-[var(--ui-text-highlighted)] before:bg-[var(--ui-bg-elevated)]",
|
|
31
|
+
"itemLeadingIcon": "text-[var(--ui-text)]"
|
|
32
|
+
},
|
|
33
|
+
"false": {
|
|
34
|
+
"item": [
|
|
35
|
+
"text-[var(--ui-text)] data-highlighted:text-[var(--ui-text-highlighted)] data-[state=open]:text-[var(--ui-text-highlighted)] data-highlighted:before:bg-[var(--ui-bg-elevated)]/50 data-[state=open]:before:bg-[var(--ui-bg-elevated)]/50",
|
|
36
|
+
"transition-colors before:transition-colors"
|
|
37
|
+
],
|
|
38
|
+
"itemLeadingIcon": [
|
|
39
|
+
"text-[var(--ui-text-dimmed)] group-data-highlighted:text-[var(--ui-text)] group-data-[state=open]:text-[var(--ui-text)]",
|
|
40
|
+
"transition-colors"
|
|
41
|
+
]
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
"loading": {
|
|
45
|
+
"true": {
|
|
46
|
+
"itemLeadingIcon": "animate-spin"
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
"size": {
|
|
50
|
+
"xs": {
|
|
51
|
+
"label": "p-1 text-xs gap-1",
|
|
52
|
+
"item": "p-1 text-xs gap-1",
|
|
53
|
+
"itemLeadingIcon": "size-4",
|
|
54
|
+
"itemLeadingAvatarSize": "3xs",
|
|
55
|
+
"itemTrailingIcon": "size-4",
|
|
56
|
+
"itemTrailingKbds": "gap-0.5",
|
|
57
|
+
"itemTrailingKbdsSize": "sm"
|
|
58
|
+
},
|
|
59
|
+
"sm": {
|
|
60
|
+
"label": "p-1.5 text-xs gap-1.5",
|
|
61
|
+
"item": "p-1.5 text-xs gap-1.5",
|
|
62
|
+
"itemLeadingIcon": "size-4",
|
|
63
|
+
"itemLeadingAvatarSize": "3xs",
|
|
64
|
+
"itemTrailingIcon": "size-4",
|
|
65
|
+
"itemTrailingKbds": "gap-0.5",
|
|
66
|
+
"itemTrailingKbdsSize": "sm"
|
|
67
|
+
},
|
|
68
|
+
"md": {
|
|
69
|
+
"label": "p-1.5 text-sm gap-1.5",
|
|
70
|
+
"item": "p-1.5 text-sm gap-1.5",
|
|
71
|
+
"itemLeadingIcon": "size-5",
|
|
72
|
+
"itemLeadingAvatarSize": "2xs",
|
|
73
|
+
"itemTrailingIcon": "size-5",
|
|
74
|
+
"itemTrailingKbds": "gap-0.5",
|
|
75
|
+
"itemTrailingKbdsSize": "md"
|
|
76
|
+
},
|
|
77
|
+
"lg": {
|
|
78
|
+
"label": "p-2 text-sm gap-2",
|
|
79
|
+
"item": "p-2 text-sm gap-2",
|
|
80
|
+
"itemLeadingIcon": "size-5",
|
|
81
|
+
"itemLeadingAvatarSize": "2xs",
|
|
82
|
+
"itemTrailingIcon": "size-5",
|
|
83
|
+
"itemTrailingKbds": "gap-1",
|
|
84
|
+
"itemTrailingKbdsSize": "md"
|
|
85
|
+
},
|
|
86
|
+
"xl": {
|
|
87
|
+
"label": "p-2 text-base gap-2",
|
|
88
|
+
"item": "p-2 text-base gap-2",
|
|
89
|
+
"itemLeadingIcon": "size-6",
|
|
90
|
+
"itemLeadingAvatarSize": "xs",
|
|
91
|
+
"itemTrailingIcon": "size-6",
|
|
92
|
+
"itemTrailingKbds": "gap-1",
|
|
93
|
+
"itemTrailingKbdsSize": "lg"
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
},
|
|
97
|
+
"compoundVariants": [
|
|
98
|
+
{
|
|
99
|
+
"color": "primary" as const,
|
|
100
|
+
"active": false,
|
|
101
|
+
"class": {
|
|
102
|
+
"item": "text-[var(--ui-primary)] data-highlighted:text-[var(--ui-primary)] data-highlighted:before:bg-[var(--ui-primary)]/10 data-[state=open]:before:bg-[var(--ui-primary)]/10",
|
|
103
|
+
"itemLeadingIcon": "text-[var(--ui-primary)]/75 group-data-highlighted:text-[var(--ui-primary)] group-data-[state=open]:text-[var(--ui-primary)]"
|
|
104
|
+
}
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
"color": "secondary" as const,
|
|
108
|
+
"active": false,
|
|
109
|
+
"class": {
|
|
110
|
+
"item": "text-[var(--ui-secondary)] data-highlighted:text-[var(--ui-secondary)] data-highlighted:before:bg-[var(--ui-secondary)]/10 data-[state=open]:before:bg-[var(--ui-secondary)]/10",
|
|
111
|
+
"itemLeadingIcon": "text-[var(--ui-secondary)]/75 group-data-highlighted:text-[var(--ui-secondary)] group-data-[state=open]:text-[var(--ui-secondary)]"
|
|
112
|
+
}
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
"color": "success" as const,
|
|
116
|
+
"active": false,
|
|
117
|
+
"class": {
|
|
118
|
+
"item": "text-[var(--ui-success)] data-highlighted:text-[var(--ui-success)] data-highlighted:before:bg-[var(--ui-success)]/10 data-[state=open]:before:bg-[var(--ui-success)]/10",
|
|
119
|
+
"itemLeadingIcon": "text-[var(--ui-success)]/75 group-data-highlighted:text-[var(--ui-success)] group-data-[state=open]:text-[var(--ui-success)]"
|
|
120
|
+
}
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
"color": "info" as const,
|
|
124
|
+
"active": false,
|
|
125
|
+
"class": {
|
|
126
|
+
"item": "text-[var(--ui-info)] data-highlighted:text-[var(--ui-info)] data-highlighted:before:bg-[var(--ui-info)]/10 data-[state=open]:before:bg-[var(--ui-info)]/10",
|
|
127
|
+
"itemLeadingIcon": "text-[var(--ui-info)]/75 group-data-highlighted:text-[var(--ui-info)] group-data-[state=open]:text-[var(--ui-info)]"
|
|
128
|
+
}
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
"color": "warning" as const,
|
|
132
|
+
"active": false,
|
|
133
|
+
"class": {
|
|
134
|
+
"item": "text-[var(--ui-warning)] data-highlighted:text-[var(--ui-warning)] data-highlighted:before:bg-[var(--ui-warning)]/10 data-[state=open]:before:bg-[var(--ui-warning)]/10",
|
|
135
|
+
"itemLeadingIcon": "text-[var(--ui-warning)]/75 group-data-highlighted:text-[var(--ui-warning)] group-data-[state=open]:text-[var(--ui-warning)]"
|
|
136
|
+
}
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
"color": "error" as const,
|
|
140
|
+
"active": false,
|
|
141
|
+
"class": {
|
|
142
|
+
"item": "text-[var(--ui-error)] data-highlighted:text-[var(--ui-error)] data-highlighted:before:bg-[var(--ui-error)]/10 data-[state=open]:before:bg-[var(--ui-error)]/10",
|
|
143
|
+
"itemLeadingIcon": "text-[var(--ui-error)]/75 group-data-highlighted:text-[var(--ui-error)] group-data-[state=open]:text-[var(--ui-error)]"
|
|
144
|
+
}
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
"color": "primary" as const,
|
|
148
|
+
"active": true,
|
|
149
|
+
"class": {
|
|
150
|
+
"item": "text-[var(--ui-primary)] before:bg-[var(--ui-primary)]/10",
|
|
151
|
+
"itemLeadingIcon": "text-[var(--ui-primary)]"
|
|
152
|
+
}
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
"color": "secondary" as const,
|
|
156
|
+
"active": true,
|
|
157
|
+
"class": {
|
|
158
|
+
"item": "text-[var(--ui-secondary)] before:bg-[var(--ui-secondary)]/10",
|
|
159
|
+
"itemLeadingIcon": "text-[var(--ui-secondary)]"
|
|
160
|
+
}
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
"color": "success" as const,
|
|
164
|
+
"active": true,
|
|
165
|
+
"class": {
|
|
166
|
+
"item": "text-[var(--ui-success)] before:bg-[var(--ui-success)]/10",
|
|
167
|
+
"itemLeadingIcon": "text-[var(--ui-success)]"
|
|
168
|
+
}
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
"color": "info" as const,
|
|
172
|
+
"active": true,
|
|
173
|
+
"class": {
|
|
174
|
+
"item": "text-[var(--ui-info)] before:bg-[var(--ui-info)]/10",
|
|
175
|
+
"itemLeadingIcon": "text-[var(--ui-info)]"
|
|
176
|
+
}
|
|
177
|
+
},
|
|
178
|
+
{
|
|
179
|
+
"color": "warning" as const,
|
|
180
|
+
"active": true,
|
|
181
|
+
"class": {
|
|
182
|
+
"item": "text-[var(--ui-warning)] before:bg-[var(--ui-warning)]/10",
|
|
183
|
+
"itemLeadingIcon": "text-[var(--ui-warning)]"
|
|
184
|
+
}
|
|
185
|
+
},
|
|
186
|
+
{
|
|
187
|
+
"color": "error" as const,
|
|
188
|
+
"active": true,
|
|
189
|
+
"class": {
|
|
190
|
+
"item": "text-[var(--ui-error)] before:bg-[var(--ui-error)]/10",
|
|
191
|
+
"itemLeadingIcon": "text-[var(--ui-error)]"
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
],
|
|
195
|
+
"defaultVariants": {
|
|
196
|
+
"size": "md" as const
|
|
197
|
+
}
|
|
198
|
+
}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
"slots": {
|
|
3
|
+
"overlay": "fixed inset-0 bg-[var(--ui-bg-elevated)]/75",
|
|
4
|
+
"content": "fixed bg-[var(--ui-bg)] ring ring-[var(--ui-border)] flex focus:outline-none",
|
|
5
|
+
"handle": "shrink-0 rounded-full bg-[var(--ui-bg-accented)]",
|
|
6
|
+
"container": "w-full flex flex-col gap-4 p-4 overflow-y-auto",
|
|
7
|
+
"header": "",
|
|
8
|
+
"title": "text-[var(--ui-text-highlighted)] font-semibold",
|
|
9
|
+
"description": "mt-1 text-[var(--ui-text-muted)] text-sm",
|
|
10
|
+
"body": "flex-1",
|
|
11
|
+
"footer": "flex flex-col gap-1.5"
|
|
12
|
+
},
|
|
13
|
+
"variants": {
|
|
14
|
+
"direction": {
|
|
15
|
+
"top": {
|
|
16
|
+
"content": "top-0 mb-24 flex-col-reverse rounded-b-[calc(var(--ui-radius)*2)]",
|
|
17
|
+
"handle": "mb-4"
|
|
18
|
+
},
|
|
19
|
+
"right": {
|
|
20
|
+
"content": "right-4 flex-row",
|
|
21
|
+
"handle": "ml-4"
|
|
22
|
+
},
|
|
23
|
+
"bottom": {
|
|
24
|
+
"content": "bottom-0 mt-24 flex-col rounded-t-[calc(var(--ui-radius)*2)]",
|
|
25
|
+
"handle": "mt-4"
|
|
26
|
+
},
|
|
27
|
+
"left": {
|
|
28
|
+
"content": "left-4 flex-row-reverse",
|
|
29
|
+
"handle": "mr-4"
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
"compoundVariants": [
|
|
34
|
+
{
|
|
35
|
+
"direction": [
|
|
36
|
+
"top" as const,
|
|
37
|
+
"bottom" as const
|
|
38
|
+
],
|
|
39
|
+
"class": {
|
|
40
|
+
"content": "inset-x-0 h-auto max-h-[96%]",
|
|
41
|
+
"handle": "w-12 h-1.5 mx-auto"
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"direction": [
|
|
46
|
+
"right" as const,
|
|
47
|
+
"left" as const
|
|
48
|
+
],
|
|
49
|
+
"class": {
|
|
50
|
+
"content": "inset-y-4 w-auto max-w-[calc(100%-2rem)] rounded-[calc(var(--ui-radius)*2)] after:hidden",
|
|
51
|
+
"handle": "h-12 w-1.5 mt-auto mb-auto"
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
]
|
|
55
|
+
}
|
|
@@ -0,0 +1,199 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
"slots": {
|
|
3
|
+
"content": "min-w-32 bg-[var(--ui-bg)] shadow-lg rounded-[calc(var(--ui-radius)*1.5)] ring ring-[var(--ui-border)] divide-y divide-[var(--ui-border)] overflow-y-auto scroll-py-1 data-[state=open]:animate-[scale-in_100ms_ease-out] data-[state=closed]:animate-[scale-out_100ms_ease-in]",
|
|
4
|
+
"arrow": "fill-[var(--ui-border)]",
|
|
5
|
+
"group": "p-1 isolate",
|
|
6
|
+
"label": "w-full flex items-center font-semibold text-[var(--ui-text-highlighted)]",
|
|
7
|
+
"separator": "-mx-1 my-1 h-px bg-[var(--ui-border)]",
|
|
8
|
+
"item": "group relative w-full flex items-center select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-[calc(var(--ui-radius)*1.5)] data-disabled:cursor-not-allowed data-disabled:opacity-75",
|
|
9
|
+
"itemLeadingIcon": "shrink-0",
|
|
10
|
+
"itemLeadingAvatar": "shrink-0",
|
|
11
|
+
"itemLeadingAvatarSize": "",
|
|
12
|
+
"itemTrailing": "ms-auto inline-flex gap-1.5 items-center",
|
|
13
|
+
"itemTrailingIcon": "shrink-0",
|
|
14
|
+
"itemTrailingKbds": "hidden lg:inline-flex items-center shrink-0",
|
|
15
|
+
"itemTrailingKbdsSize": "",
|
|
16
|
+
"itemLabel": "truncate",
|
|
17
|
+
"itemLabelExternalIcon": "inline-block size-3 align-top text-[var(--ui-text-dimmed)]"
|
|
18
|
+
},
|
|
19
|
+
"variants": {
|
|
20
|
+
"color": {
|
|
21
|
+
"primary": "",
|
|
22
|
+
"secondary": "",
|
|
23
|
+
"success": "",
|
|
24
|
+
"info": "",
|
|
25
|
+
"warning": "",
|
|
26
|
+
"error": "",
|
|
27
|
+
"neutral": ""
|
|
28
|
+
},
|
|
29
|
+
"active": {
|
|
30
|
+
"true": {
|
|
31
|
+
"item": "text-[var(--ui-text-highlighted)] before:bg-[var(--ui-bg-elevated)]",
|
|
32
|
+
"itemLeadingIcon": "text-[var(--ui-text)]"
|
|
33
|
+
},
|
|
34
|
+
"false": {
|
|
35
|
+
"item": [
|
|
36
|
+
"text-[var(--ui-text)] data-highlighted:text-[var(--ui-text-highlighted)] data-[state=open]:text-[var(--ui-text-highlighted)] data-highlighted:before:bg-[var(--ui-bg-elevated)]/50 data-[state=open]:before:bg-[var(--ui-bg-elevated)]/50",
|
|
37
|
+
"transition-colors before:transition-colors"
|
|
38
|
+
],
|
|
39
|
+
"itemLeadingIcon": [
|
|
40
|
+
"text-[var(--ui-text-dimmed)] group-data-highlighted:text-[var(--ui-text)] group-data-[state=open]:text-[var(--ui-text)]",
|
|
41
|
+
"transition-colors"
|
|
42
|
+
]
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
"loading": {
|
|
46
|
+
"true": {
|
|
47
|
+
"itemLeadingIcon": "animate-spin"
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
"size": {
|
|
51
|
+
"xs": {
|
|
52
|
+
"label": "p-1 text-xs gap-1",
|
|
53
|
+
"item": "p-1 text-xs gap-1",
|
|
54
|
+
"itemLeadingIcon": "size-4",
|
|
55
|
+
"itemLeadingAvatarSize": "3xs",
|
|
56
|
+
"itemTrailingIcon": "size-4",
|
|
57
|
+
"itemTrailingKbds": "gap-0.5",
|
|
58
|
+
"itemTrailingKbdsSize": "sm"
|
|
59
|
+
},
|
|
60
|
+
"sm": {
|
|
61
|
+
"label": "p-1.5 text-xs gap-1.5",
|
|
62
|
+
"item": "p-1.5 text-xs gap-1.5",
|
|
63
|
+
"itemLeadingIcon": "size-4",
|
|
64
|
+
"itemLeadingAvatarSize": "3xs",
|
|
65
|
+
"itemTrailingIcon": "size-4",
|
|
66
|
+
"itemTrailingKbds": "gap-0.5",
|
|
67
|
+
"itemTrailingKbdsSize": "sm"
|
|
68
|
+
},
|
|
69
|
+
"md": {
|
|
70
|
+
"label": "p-1.5 text-sm gap-1.5",
|
|
71
|
+
"item": "p-1.5 text-sm gap-1.5",
|
|
72
|
+
"itemLeadingIcon": "size-5",
|
|
73
|
+
"itemLeadingAvatarSize": "2xs",
|
|
74
|
+
"itemTrailingIcon": "size-5",
|
|
75
|
+
"itemTrailingKbds": "gap-0.5",
|
|
76
|
+
"itemTrailingKbdsSize": "md"
|
|
77
|
+
},
|
|
78
|
+
"lg": {
|
|
79
|
+
"label": "p-2 text-sm gap-2",
|
|
80
|
+
"item": "p-2 text-sm gap-2",
|
|
81
|
+
"itemLeadingIcon": "size-5",
|
|
82
|
+
"itemLeadingAvatarSize": "2xs",
|
|
83
|
+
"itemTrailingIcon": "size-5",
|
|
84
|
+
"itemTrailingKbds": "gap-1",
|
|
85
|
+
"itemTrailingKbdsSize": "md"
|
|
86
|
+
},
|
|
87
|
+
"xl": {
|
|
88
|
+
"label": "p-2 text-base gap-2",
|
|
89
|
+
"item": "p-2 text-base gap-2",
|
|
90
|
+
"itemLeadingIcon": "size-6",
|
|
91
|
+
"itemLeadingAvatarSize": "xs",
|
|
92
|
+
"itemTrailingIcon": "size-6",
|
|
93
|
+
"itemTrailingKbds": "gap-1",
|
|
94
|
+
"itemTrailingKbdsSize": "lg"
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
},
|
|
98
|
+
"compoundVariants": [
|
|
99
|
+
{
|
|
100
|
+
"color": "primary" as const,
|
|
101
|
+
"active": false,
|
|
102
|
+
"class": {
|
|
103
|
+
"item": "text-[var(--ui-primary)] data-highlighted:text-[var(--ui-primary)] data-highlighted:before:bg-[var(--ui-primary)]/10 data-[state=open]:before:bg-[var(--ui-primary)]/10",
|
|
104
|
+
"itemLeadingIcon": "text-[var(--ui-primary)]/75 group-data-highlighted:text-[var(--ui-primary)] group-data-[state=open]:text-[var(--ui-primary)]"
|
|
105
|
+
}
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
"color": "secondary" as const,
|
|
109
|
+
"active": false,
|
|
110
|
+
"class": {
|
|
111
|
+
"item": "text-[var(--ui-secondary)] data-highlighted:text-[var(--ui-secondary)] data-highlighted:before:bg-[var(--ui-secondary)]/10 data-[state=open]:before:bg-[var(--ui-secondary)]/10",
|
|
112
|
+
"itemLeadingIcon": "text-[var(--ui-secondary)]/75 group-data-highlighted:text-[var(--ui-secondary)] group-data-[state=open]:text-[var(--ui-secondary)]"
|
|
113
|
+
}
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
"color": "success" as const,
|
|
117
|
+
"active": false,
|
|
118
|
+
"class": {
|
|
119
|
+
"item": "text-[var(--ui-success)] data-highlighted:text-[var(--ui-success)] data-highlighted:before:bg-[var(--ui-success)]/10 data-[state=open]:before:bg-[var(--ui-success)]/10",
|
|
120
|
+
"itemLeadingIcon": "text-[var(--ui-success)]/75 group-data-highlighted:text-[var(--ui-success)] group-data-[state=open]:text-[var(--ui-success)]"
|
|
121
|
+
}
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
"color": "info" as const,
|
|
125
|
+
"active": false,
|
|
126
|
+
"class": {
|
|
127
|
+
"item": "text-[var(--ui-info)] data-highlighted:text-[var(--ui-info)] data-highlighted:before:bg-[var(--ui-info)]/10 data-[state=open]:before:bg-[var(--ui-info)]/10",
|
|
128
|
+
"itemLeadingIcon": "text-[var(--ui-info)]/75 group-data-highlighted:text-[var(--ui-info)] group-data-[state=open]:text-[var(--ui-info)]"
|
|
129
|
+
}
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
"color": "warning" as const,
|
|
133
|
+
"active": false,
|
|
134
|
+
"class": {
|
|
135
|
+
"item": "text-[var(--ui-warning)] data-highlighted:text-[var(--ui-warning)] data-highlighted:before:bg-[var(--ui-warning)]/10 data-[state=open]:before:bg-[var(--ui-warning)]/10",
|
|
136
|
+
"itemLeadingIcon": "text-[var(--ui-warning)]/75 group-data-highlighted:text-[var(--ui-warning)] group-data-[state=open]:text-[var(--ui-warning)]"
|
|
137
|
+
}
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
"color": "error" as const,
|
|
141
|
+
"active": false,
|
|
142
|
+
"class": {
|
|
143
|
+
"item": "text-[var(--ui-error)] data-highlighted:text-[var(--ui-error)] data-highlighted:before:bg-[var(--ui-error)]/10 data-[state=open]:before:bg-[var(--ui-error)]/10",
|
|
144
|
+
"itemLeadingIcon": "text-[var(--ui-error)]/75 group-data-highlighted:text-[var(--ui-error)] group-data-[state=open]:text-[var(--ui-error)]"
|
|
145
|
+
}
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
"color": "primary" as const,
|
|
149
|
+
"active": true,
|
|
150
|
+
"class": {
|
|
151
|
+
"item": "text-[var(--ui-primary)] before:bg-[var(--ui-primary)]/10",
|
|
152
|
+
"itemLeadingIcon": "text-[var(--ui-primary)]"
|
|
153
|
+
}
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
"color": "secondary" as const,
|
|
157
|
+
"active": true,
|
|
158
|
+
"class": {
|
|
159
|
+
"item": "text-[var(--ui-secondary)] before:bg-[var(--ui-secondary)]/10",
|
|
160
|
+
"itemLeadingIcon": "text-[var(--ui-secondary)]"
|
|
161
|
+
}
|
|
162
|
+
},
|
|
163
|
+
{
|
|
164
|
+
"color": "success" as const,
|
|
165
|
+
"active": true,
|
|
166
|
+
"class": {
|
|
167
|
+
"item": "text-[var(--ui-success)] before:bg-[var(--ui-success)]/10",
|
|
168
|
+
"itemLeadingIcon": "text-[var(--ui-success)]"
|
|
169
|
+
}
|
|
170
|
+
},
|
|
171
|
+
{
|
|
172
|
+
"color": "info" as const,
|
|
173
|
+
"active": true,
|
|
174
|
+
"class": {
|
|
175
|
+
"item": "text-[var(--ui-info)] before:bg-[var(--ui-info)]/10",
|
|
176
|
+
"itemLeadingIcon": "text-[var(--ui-info)]"
|
|
177
|
+
}
|
|
178
|
+
},
|
|
179
|
+
{
|
|
180
|
+
"color": "warning" as const,
|
|
181
|
+
"active": true,
|
|
182
|
+
"class": {
|
|
183
|
+
"item": "text-[var(--ui-warning)] before:bg-[var(--ui-warning)]/10",
|
|
184
|
+
"itemLeadingIcon": "text-[var(--ui-warning)]"
|
|
185
|
+
}
|
|
186
|
+
},
|
|
187
|
+
{
|
|
188
|
+
"color": "error" as const,
|
|
189
|
+
"active": true,
|
|
190
|
+
"class": {
|
|
191
|
+
"item": "text-[var(--ui-error)] before:bg-[var(--ui-error)]/10",
|
|
192
|
+
"itemLeadingIcon": "text-[var(--ui-error)]"
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
],
|
|
196
|
+
"defaultVariants": {
|
|
197
|
+
"size": "md" as const
|
|
198
|
+
}
|
|
199
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
"slots": {
|
|
3
|
+
"root": "",
|
|
4
|
+
"wrapper": "",
|
|
5
|
+
"labelWrapper": "flex content-center items-center justify-between",
|
|
6
|
+
"label": "block font-medium text-[var(--ui-text)]",
|
|
7
|
+
"container": "mt-1 relative",
|
|
8
|
+
"description": "text-[var(--ui-text-muted)]",
|
|
9
|
+
"error": "mt-2 text-[var(--ui-error)]",
|
|
10
|
+
"hint": "text-[var(--ui-text-muted)]",
|
|
11
|
+
"help": "mt-2 text-[var(--ui-text-muted)]"
|
|
12
|
+
},
|
|
13
|
+
"variants": {
|
|
14
|
+
"size": {
|
|
15
|
+
"xs": {
|
|
16
|
+
"root": "text-xs"
|
|
17
|
+
},
|
|
18
|
+
"sm": {
|
|
19
|
+
"root": "text-xs"
|
|
20
|
+
},
|
|
21
|
+
"md": {
|
|
22
|
+
"root": "text-sm"
|
|
23
|
+
},
|
|
24
|
+
"lg": {
|
|
25
|
+
"root": "text-sm"
|
|
26
|
+
},
|
|
27
|
+
"xl": {
|
|
28
|
+
"root": "text-base"
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
"required": {
|
|
32
|
+
"true": {
|
|
33
|
+
"label": "after:content-['*'] after:ms-0.5 after:text-[var(--ui-error)]"
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
"defaultVariants": {
|
|
38
|
+
"size": "md" as const
|
|
39
|
+
}
|
|
40
|
+
}
|
package/.nuxt/ui/form.ts
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
export { default as accordion } from './accordion'
|
|
2
|
+
export { default as alert } from './alert'
|
|
3
|
+
export { default as avatar } from './avatar'
|
|
4
|
+
export { default as avatarGroup } from './avatar-group'
|
|
5
|
+
export { default as badge } from './badge'
|
|
6
|
+
export { default as breadcrumb } from './breadcrumb'
|
|
7
|
+
export { default as button } from './button'
|
|
8
|
+
export { default as buttonGroup } from './button-group'
|
|
9
|
+
export { default as calendar } from './calendar'
|
|
10
|
+
export { default as card } from './card'
|
|
11
|
+
export { default as carousel } from './carousel'
|
|
12
|
+
export { default as checkbox } from './checkbox'
|
|
13
|
+
export { default as chip } from './chip'
|
|
14
|
+
export { default as collapsible } from './collapsible'
|
|
15
|
+
export { default as colorPicker } from './color-picker'
|
|
16
|
+
export { default as commandPalette } from './command-palette'
|
|
17
|
+
export { default as container } from './container'
|
|
18
|
+
export { default as contextMenu } from './context-menu'
|
|
19
|
+
export { default as drawer } from './drawer'
|
|
20
|
+
export { default as dropdownMenu } from './dropdown-menu'
|
|
21
|
+
export { default as form } from './form'
|
|
22
|
+
export { default as formField } from './form-field'
|
|
23
|
+
export { default as input } from './input'
|
|
24
|
+
export { default as inputMenu } from './input-menu'
|
|
25
|
+
export { default as inputNumber } from './input-number'
|
|
26
|
+
export { default as kbd } from './kbd'
|
|
27
|
+
export { default as link } from './link'
|
|
28
|
+
export { default as modal } from './modal'
|
|
29
|
+
export { default as navigationMenu } from './navigation-menu'
|
|
30
|
+
export { default as pagination } from './pagination'
|
|
31
|
+
export { default as pinInput } from './pin-input'
|
|
32
|
+
export { default as popover } from './popover'
|
|
33
|
+
export { default as progress } from './progress'
|
|
34
|
+
export { default as radioGroup } from './radio-group'
|
|
35
|
+
export { default as select } from './select'
|
|
36
|
+
export { default as selectMenu } from './select-menu'
|
|
37
|
+
export { default as separator } from './separator'
|
|
38
|
+
export { default as skeleton } from './skeleton'
|
|
39
|
+
export { default as slideover } from './slideover'
|
|
40
|
+
export { default as slider } from './slider'
|
|
41
|
+
export { default as stepper } from './stepper'
|
|
42
|
+
export { default as switch } from './switch'
|
|
43
|
+
export { default as table } from './table'
|
|
44
|
+
export { default as tabs } from './tabs'
|
|
45
|
+
export { default as textarea } from './textarea'
|
|
46
|
+
export { default as toast } from './toast'
|
|
47
|
+
export { default as toaster } from './toaster'
|
|
48
|
+
export { default as tooltip } from './tooltip'
|