@nuxt/ui 3.0.0-alpha.1 → 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 +2 -1
- package/dist/module.mjs +179 -2568
- package/dist/runtime/components/Accordion.vue +49 -8
- package/dist/runtime/components/Alert.vue +13 -6
- package/dist/runtime/components/App.vue +20 -7
- package/dist/runtime/components/Avatar.vue +33 -9
- package/dist/runtime/components/AvatarGroup.vue +4 -1
- package/dist/runtime/components/Badge.vue +34 -4
- package/dist/runtime/components/Breadcrumb.vue +52 -13
- package/dist/runtime/components/Button.vue +45 -6
- package/dist/runtime/components/ButtonGroup.vue +5 -2
- package/dist/runtime/components/Calendar.vue +190 -0
- package/dist/runtime/components/Card.vue +4 -1
- package/dist/runtime/components/Carousel.vue +322 -0
- package/dist/runtime/components/Checkbox.vue +28 -33
- package/dist/runtime/components/Chip.vue +9 -2
- package/dist/runtime/components/Collapsible.vue +7 -4
- package/dist/runtime/components/ColorPicker.vue +265 -0
- package/dist/runtime/components/CommandPalette.vue +122 -96
- package/dist/runtime/components/Container.vue +4 -1
- package/dist/runtime/components/ContextMenu.vue +101 -14
- package/dist/runtime/components/ContextMenuContent.vue +48 -18
- package/dist/runtime/components/Drawer.vue +22 -11
- package/dist/runtime/components/DropdownMenu.vue +91 -16
- package/dist/runtime/components/DropdownMenuContent.vue +50 -18
- package/dist/runtime/components/Form.vue +49 -32
- package/dist/runtime/components/FormField.vue +18 -6
- package/dist/runtime/components/Icon.vue +1 -1
- package/dist/runtime/components/Input.vue +15 -6
- package/dist/runtime/components/InputMenu.vue +152 -65
- package/dist/runtime/components/InputNumber.vue +192 -0
- package/dist/runtime/components/Kbd.vue +3 -1
- package/dist/runtime/components/Link.vue +71 -8
- package/dist/runtime/components/LinkBase.vue +10 -7
- package/dist/runtime/components/Modal.vue +23 -11
- package/dist/runtime/components/NavigationMenu.vue +170 -75
- package/dist/runtime/components/Pagination.vue +31 -15
- package/dist/runtime/components/PinInput.vue +96 -0
- package/dist/runtime/components/Popover.vue +26 -7
- package/dist/runtime/components/Progress.vue +25 -8
- package/dist/runtime/components/RadioGroup.vue +28 -7
- package/dist/runtime/components/Select.vue +79 -32
- package/dist/runtime/components/SelectMenu.vue +164 -80
- package/dist/runtime/components/Separator.vue +3 -3
- package/dist/runtime/components/Skeleton.vue +4 -1
- package/dist/runtime/components/Slideover.vue +23 -11
- package/dist/runtime/components/Slider.vue +3 -3
- package/dist/runtime/components/Stepper.vue +171 -0
- package/dist/runtime/components/Switch.vue +16 -16
- package/dist/runtime/components/Table.vue +262 -0
- package/dist/runtime/components/Tabs.vue +42 -15
- package/dist/runtime/components/Textarea.vue +9 -3
- package/dist/runtime/components/Toast.vue +13 -5
- package/dist/runtime/components/Toaster.vue +31 -16
- package/dist/runtime/components/Tooltip.vue +9 -6
- 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 +1 -1
- package/dist/runtime/composables/useButtonGroup.d.ts +2 -2
- package/dist/runtime/composables/useComponentIcons.d.ts +3 -0
- package/dist/runtime/composables/useFormField.d.ts +8 -4
- package/dist/runtime/composables/useFormField.js +2 -1
- 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 -1
- 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.js +12 -8
- package/dist/runtime/types/form.d.ts +9 -2
- 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 +5 -3
- 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 +98 -31
- package/vue-plugin.d.ts +5 -0
- package/cli/node_modules/.ignored/citty/LICENSE +0 -36
- package/cli/node_modules/.ignored/citty/README.md +0 -134
- package/cli/node_modules/.ignored/citty/dist/index.cjs +0 -475
- package/cli/node_modules/.ignored/citty/dist/index.d.cts +0 -80
- package/cli/node_modules/.ignored/citty/dist/index.d.mts +0 -80
- package/cli/node_modules/.ignored/citty/dist/index.d.ts +0 -80
- package/cli/node_modules/.ignored/citty/dist/index.mjs +0 -463
- package/cli/node_modules/.ignored/citty/package.json +0 -49
- package/cli/node_modules/.ignored/consola/LICENSE +0 -47
- package/cli/node_modules/.ignored/consola/README.md +0 -318
- package/cli/node_modules/.ignored/consola/core.d.ts +0 -1
- package/cli/node_modules/.ignored/consola/dist/basic.cjs +0 -32
- package/cli/node_modules/.ignored/consola/dist/basic.d.ts +0 -9
- package/cli/node_modules/.ignored/consola/dist/basic.mjs +0 -24
- package/cli/node_modules/.ignored/consola/dist/browser.cjs +0 -80
- package/cli/node_modules/.ignored/consola/dist/browser.d.ts +0 -7
- package/cli/node_modules/.ignored/consola/dist/browser.mjs +0 -72
- package/cli/node_modules/.ignored/consola/dist/chunks/prompt.cjs +0 -436
- package/cli/node_modules/.ignored/consola/dist/chunks/prompt.mjs +0 -429
- package/cli/node_modules/.ignored/consola/dist/core.cjs +0 -415
- package/cli/node_modules/.ignored/consola/dist/core.d.ts +0 -124
- package/cli/node_modules/.ignored/consola/dist/core.mjs +0 -410
- package/cli/node_modules/.ignored/consola/dist/index.cjs +0 -21
- package/cli/node_modules/.ignored/consola/dist/index.d.ts +0 -9
- package/cli/node_modules/.ignored/consola/dist/index.mjs +0 -8
- package/cli/node_modules/.ignored/consola/dist/shared/consola.06ad8a64.mjs +0 -62
- package/cli/node_modules/.ignored/consola/dist/shared/consola.36c0034f.mjs +0 -636
- package/cli/node_modules/.ignored/consola/dist/shared/consola.4bbae468.cjs +0 -645
- package/cli/node_modules/.ignored/consola/dist/shared/consola.deac7d5a.cjs +0 -65
- package/cli/node_modules/.ignored/consola/dist/utils.cjs +0 -308
- package/cli/node_modules/.ignored/consola/dist/utils.d.ts +0 -169
- package/cli/node_modules/.ignored/consola/dist/utils.mjs +0 -284
- package/cli/node_modules/.ignored/consola/lib/index.cjs +0 -9
- package/cli/node_modules/.ignored/consola/package.json +0 -101
- package/cli/node_modules/.ignored/consola/utils.d.ts +0 -1
- package/cli/node_modules/.ignored/pathe/LICENSE +0 -44
- package/cli/node_modules/.ignored/pathe/README.md +0 -69
- package/cli/node_modules/.ignored/pathe/dist/index.cjs +0 -23
- package/cli/node_modules/.ignored/pathe/dist/index.d.cts +0 -36
- package/cli/node_modules/.ignored/pathe/dist/index.d.mts +0 -36
- package/cli/node_modules/.ignored/pathe/dist/index.d.ts +0 -36
- package/cli/node_modules/.ignored/pathe/dist/index.mjs +0 -1
- package/cli/node_modules/.ignored/pathe/dist/shared/pathe.1f0a373c.cjs +0 -238
- package/cli/node_modules/.ignored/pathe/dist/shared/pathe.ff20891b.mjs +0 -221
- package/cli/node_modules/.ignored/pathe/dist/utils.cjs +0 -58
- package/cli/node_modules/.ignored/pathe/dist/utils.d.cts +0 -5
- package/cli/node_modules/.ignored/pathe/dist/utils.d.mts +0 -5
- package/cli/node_modules/.ignored/pathe/dist/utils.d.ts +0 -5
- package/cli/node_modules/.ignored/pathe/dist/utils.mjs +0 -54
- package/cli/node_modules/.ignored/pathe/package.json +0 -48
- package/cli/node_modules/.ignored/pathe/utils.d.ts +0 -1
- package/cli/node_modules/.ignored/scule/LICENSE +0 -21
- package/cli/node_modules/.ignored/scule/README.md +0 -149
- package/cli/node_modules/.ignored/scule/dist/index.cjs +0 -92
- package/cli/node_modules/.ignored/scule/dist/index.d.cts +0 -57
- package/cli/node_modules/.ignored/scule/dist/index.d.mts +0 -57
- package/cli/node_modules/.ignored/scule/dist/index.d.ts +0 -57
- package/cli/node_modules/.ignored/scule/dist/index.mjs +0 -80
- package/cli/node_modules/.ignored/scule/package.json +0 -43
- package/cli/node_modules/.package-lock.json +0 -33
- package/dist/runtime/types/component.d.ts +0 -17
- /package/dist/runtime/types/{component.js → locale.js} +0 -0
|
@@ -0,0 +1,410 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
"slots": {
|
|
3
|
+
"root": "relative inline-flex items-center",
|
|
4
|
+
"base": [
|
|
5
|
+
"rounded-[calc(var(--ui-radius)*1.5)]",
|
|
6
|
+
"transition-colors"
|
|
7
|
+
],
|
|
8
|
+
"leading": "absolute inset-y-0 start-0 flex items-center" as const,
|
|
9
|
+
"leadingIcon": "shrink-0 text-[var(--ui-text-dimmed)]",
|
|
10
|
+
"leadingAvatar": "shrink-0",
|
|
11
|
+
"leadingAvatarSize": "",
|
|
12
|
+
"trailing": "group absolute inset-y-0 end-0 flex items-center disabled:cursor-not-allowed disabled:opacity-75" as const,
|
|
13
|
+
"trailingIcon": "shrink-0 text-[var(--ui-text-dimmed)]",
|
|
14
|
+
"arrow": "fill-[var(--ui-border)]",
|
|
15
|
+
"content": "max-h-60 w-[var(--reka-popper-anchor-width)] bg-[var(--ui-bg)] shadow-lg rounded-[calc(var(--ui-radius)*1.5)] ring ring-[var(--ui-border)] overflow-hidden data-[state=open]:animate-[scale-in_100ms_ease-out] data-[state=closed]:animate-[scale-out_100ms_ease-in]",
|
|
16
|
+
"viewport": "divide-y divide-[var(--ui-border)] scroll-py-1",
|
|
17
|
+
"group": "p-1 isolate",
|
|
18
|
+
"empty": "py-2 text-center text-sm text-[var(--ui-text-muted)]",
|
|
19
|
+
"label": "font-semibold text-[var(--ui-text-highlighted)]",
|
|
20
|
+
"separator": "-mx-1 my-1 h-px bg-[var(--ui-border)]",
|
|
21
|
+
"item": [
|
|
22
|
+
"group relative w-full flex items-center gap-1.5 p-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 text-[var(--ui-text)] data-highlighted:text-[var(--ui-text-highlighted)] data-highlighted:before:bg-[var(--ui-bg-elevated)]/50",
|
|
23
|
+
"transition-colors before:transition-colors"
|
|
24
|
+
],
|
|
25
|
+
"itemLeadingIcon": [
|
|
26
|
+
"shrink-0 text-[var(--ui-text-dimmed)] group-data-highlighted:text-[var(--ui-text)]",
|
|
27
|
+
"transition-colors"
|
|
28
|
+
],
|
|
29
|
+
"itemLeadingAvatar": "shrink-0",
|
|
30
|
+
"itemLeadingAvatarSize": "",
|
|
31
|
+
"itemLeadingChip": "shrink-0",
|
|
32
|
+
"itemLeadingChipSize": "",
|
|
33
|
+
"itemTrailing": "ms-auto inline-flex gap-1.5 items-center",
|
|
34
|
+
"itemTrailingIcon": "shrink-0",
|
|
35
|
+
"itemLabel": "truncate",
|
|
36
|
+
"tagsItem": "px-1.5 py-0.5 rounded-[var(--ui-radius)] font-medium inline-flex items-center gap-0.5 ring ring-inset ring-[var(--ui-border-accented)] bg-[var(--ui-bg-elevated)] text-[var(--ui-text)] data-disabled:cursor-not-allowed data-disabled:opacity-75",
|
|
37
|
+
"tagsItemText": "truncate",
|
|
38
|
+
"tagsItemDelete": [
|
|
39
|
+
"inline-flex items-center rounded-[calc(var(--ui-radius)/2)] text-[var(--ui-text-dimmed)] hover:text-[var(--ui-text)] hover:bg-[var(--ui-bg-accented)]/75 disabled:pointer-events-none",
|
|
40
|
+
"transition-colors"
|
|
41
|
+
],
|
|
42
|
+
"tagsItemDeleteIcon": "",
|
|
43
|
+
"tagsInput": ""
|
|
44
|
+
},
|
|
45
|
+
"variants": {
|
|
46
|
+
"buttonGroup": {
|
|
47
|
+
"horizontal": {
|
|
48
|
+
"root": "group",
|
|
49
|
+
"base": "group-not-only:group-first:rounded-e-none group-not-only:group-last:rounded-s-none group-not-last:group-not-first:rounded-none"
|
|
50
|
+
},
|
|
51
|
+
"vertical": {
|
|
52
|
+
"root": "group",
|
|
53
|
+
"base": "group-not-only:group-first:rounded-b-none group-not-only:group-last:rounded-t-none group-not-last:group-not-first:rounded-none"
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
"size": {
|
|
57
|
+
"xs": {
|
|
58
|
+
"base": "px-2 py-1 text-xs gap-1",
|
|
59
|
+
"leading": "ps-2" as const,
|
|
60
|
+
"trailing": "pe-2" as const,
|
|
61
|
+
"leadingIcon": "size-4",
|
|
62
|
+
"leadingAvatarSize": "3xs",
|
|
63
|
+
"trailingIcon": "size-4",
|
|
64
|
+
"label": "p-1 text-[10px]/3 gap-1",
|
|
65
|
+
"item": "p-1 text-xs gap-1",
|
|
66
|
+
"itemLeadingIcon": "size-4",
|
|
67
|
+
"itemLeadingAvatarSize": "3xs",
|
|
68
|
+
"itemLeadingChip": "size-4",
|
|
69
|
+
"itemLeadingChipSize": "sm",
|
|
70
|
+
"itemTrailingIcon": "size-4",
|
|
71
|
+
"tagsItem": "text-[10px]/3",
|
|
72
|
+
"tagsItemDeleteIcon": "size-3"
|
|
73
|
+
},
|
|
74
|
+
"sm": {
|
|
75
|
+
"base": "px-2.5 py-1.5 text-xs gap-1.5",
|
|
76
|
+
"leading": "ps-2.5" as const,
|
|
77
|
+
"trailing": "pe-2.5" as const,
|
|
78
|
+
"leadingIcon": "size-4",
|
|
79
|
+
"leadingAvatarSize": "3xs",
|
|
80
|
+
"trailingIcon": "size-4",
|
|
81
|
+
"label": "p-1.5 text-[10px]/3 gap-1.5",
|
|
82
|
+
"item": "p-1.5 text-xs gap-1.5",
|
|
83
|
+
"itemLeadingIcon": "size-4",
|
|
84
|
+
"itemLeadingAvatarSize": "3xs",
|
|
85
|
+
"itemLeadingChip": "size-4",
|
|
86
|
+
"itemLeadingChipSize": "sm",
|
|
87
|
+
"itemTrailingIcon": "size-4",
|
|
88
|
+
"tagsItem": "text-[10px]/3",
|
|
89
|
+
"tagsItemDeleteIcon": "size-3"
|
|
90
|
+
},
|
|
91
|
+
"md": {
|
|
92
|
+
"base": "px-2.5 py-1.5 text-sm gap-1.5",
|
|
93
|
+
"leading": "ps-2.5" as const,
|
|
94
|
+
"trailing": "pe-2.5" as const,
|
|
95
|
+
"leadingIcon": "size-5",
|
|
96
|
+
"leadingAvatarSize": "2xs",
|
|
97
|
+
"trailingIcon": "size-5",
|
|
98
|
+
"label": "p-1.5 text-xs gap-1.5",
|
|
99
|
+
"item": "p-1.5 text-sm gap-1.5",
|
|
100
|
+
"itemLeadingIcon": "size-5",
|
|
101
|
+
"itemLeadingAvatarSize": "2xs",
|
|
102
|
+
"itemLeadingChip": "size-5",
|
|
103
|
+
"itemLeadingChipSize": "md",
|
|
104
|
+
"itemTrailingIcon": "size-5",
|
|
105
|
+
"tagsItem": "text-xs",
|
|
106
|
+
"tagsItemDeleteIcon": "size-3.5"
|
|
107
|
+
},
|
|
108
|
+
"lg": {
|
|
109
|
+
"base": "px-3 py-2 text-sm gap-2",
|
|
110
|
+
"leading": "ps-3" as const,
|
|
111
|
+
"trailing": "pe-3" as const,
|
|
112
|
+
"leadingIcon": "size-5",
|
|
113
|
+
"leadingAvatarSize": "2xs",
|
|
114
|
+
"trailingIcon": "size-5",
|
|
115
|
+
"label": "p-2 text-xs gap-2",
|
|
116
|
+
"item": "p-2 text-sm gap-2",
|
|
117
|
+
"itemLeadingIcon": "size-5",
|
|
118
|
+
"itemLeadingAvatarSize": "2xs",
|
|
119
|
+
"itemLeadingChip": "size-5",
|
|
120
|
+
"itemLeadingChipSize": "md",
|
|
121
|
+
"itemTrailingIcon": "size-5",
|
|
122
|
+
"tagsItem": "text-xs",
|
|
123
|
+
"tagsItemDeleteIcon": "size-3.5"
|
|
124
|
+
},
|
|
125
|
+
"xl": {
|
|
126
|
+
"base": "px-3 py-2 text-base gap-2",
|
|
127
|
+
"leading": "ps-3" as const,
|
|
128
|
+
"trailing": "pe-3" as const,
|
|
129
|
+
"leadingIcon": "size-6",
|
|
130
|
+
"leadingAvatarSize": "xs",
|
|
131
|
+
"trailingIcon": "size-6",
|
|
132
|
+
"label": "p-2 text-sm gap-2",
|
|
133
|
+
"item": "p-2 text-base gap-2",
|
|
134
|
+
"itemLeadingIcon": "size-6",
|
|
135
|
+
"itemLeadingAvatarSize": "xs",
|
|
136
|
+
"itemLeadingChip": "size-6",
|
|
137
|
+
"itemLeadingChipSize": "lg",
|
|
138
|
+
"itemTrailingIcon": "size-6",
|
|
139
|
+
"tagsItem": "text-sm",
|
|
140
|
+
"tagsItemDeleteIcon": "size-4"
|
|
141
|
+
}
|
|
142
|
+
},
|
|
143
|
+
"variant": {
|
|
144
|
+
"outline": "text-[var(--ui-text-highlighted)] bg-[var(--ui-bg)] ring ring-inset ring-[var(--ui-border-accented)]",
|
|
145
|
+
"soft": "text-[var(--ui-text-highlighted)] bg-[var(--ui-bg-elevated)]/50 hover:bg-[var(--ui-bg-elevated)] focus:bg-[var(--ui-bg-elevated)] disabled:bg-[var(--ui-bg-elevated)]/50",
|
|
146
|
+
"subtle": "text-[var(--ui-text-highlighted)] bg-[var(--ui-bg-elevated)] ring ring-inset ring-[var(--ui-border-accented)]",
|
|
147
|
+
"ghost": "text-[var(--ui-text-highlighted)] bg-transparent hover:bg-[var(--ui-bg-elevated)] focus:bg-[var(--ui-bg-elevated)] disabled:bg-transparent dark:disabled:bg-transparent",
|
|
148
|
+
"none": "text-[var(--ui-text-highlighted)] bg-transparent"
|
|
149
|
+
},
|
|
150
|
+
"color": {
|
|
151
|
+
"primary": "",
|
|
152
|
+
"secondary": "",
|
|
153
|
+
"success": "",
|
|
154
|
+
"info": "",
|
|
155
|
+
"warning": "",
|
|
156
|
+
"error": "",
|
|
157
|
+
"neutral": ""
|
|
158
|
+
},
|
|
159
|
+
"leading": {
|
|
160
|
+
"true": ""
|
|
161
|
+
},
|
|
162
|
+
"trailing": {
|
|
163
|
+
"true": ""
|
|
164
|
+
},
|
|
165
|
+
"loading": {
|
|
166
|
+
"true": ""
|
|
167
|
+
},
|
|
168
|
+
"highlight": {
|
|
169
|
+
"true": ""
|
|
170
|
+
},
|
|
171
|
+
"type": {
|
|
172
|
+
"file": "file:me-1.5 file:font-medium file:text-[var(--ui-text-muted)] file:outline-none"
|
|
173
|
+
},
|
|
174
|
+
"multiple": {
|
|
175
|
+
"true": {
|
|
176
|
+
"root": "flex-wrap",
|
|
177
|
+
"tagsInput": "border-0 bg-transparent placeholder:text-[var(--ui-text-dimmed)] focus:outline-none disabled:cursor-not-allowed disabled:opacity-75"
|
|
178
|
+
},
|
|
179
|
+
"false": {
|
|
180
|
+
"base": "w-full border-0 placeholder:text-[var(--ui-text-dimmed)] focus:outline-none disabled:cursor-not-allowed disabled:opacity-75"
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
},
|
|
184
|
+
"compoundVariants": [
|
|
185
|
+
{
|
|
186
|
+
"color": "primary" as const,
|
|
187
|
+
"multiple": true,
|
|
188
|
+
"variant": [
|
|
189
|
+
"outline" as const,
|
|
190
|
+
"subtle" as const
|
|
191
|
+
],
|
|
192
|
+
"class": "has-focus-visible:ring-2 has-focus-visible:ring-[var(--ui-primary)]"
|
|
193
|
+
},
|
|
194
|
+
{
|
|
195
|
+
"color": "secondary" as const,
|
|
196
|
+
"multiple": true,
|
|
197
|
+
"variant": [
|
|
198
|
+
"outline" as const,
|
|
199
|
+
"subtle" as const
|
|
200
|
+
],
|
|
201
|
+
"class": "has-focus-visible:ring-2 has-focus-visible:ring-[var(--ui-secondary)]"
|
|
202
|
+
},
|
|
203
|
+
{
|
|
204
|
+
"color": "success" as const,
|
|
205
|
+
"multiple": true,
|
|
206
|
+
"variant": [
|
|
207
|
+
"outline" as const,
|
|
208
|
+
"subtle" as const
|
|
209
|
+
],
|
|
210
|
+
"class": "has-focus-visible:ring-2 has-focus-visible:ring-[var(--ui-success)]"
|
|
211
|
+
},
|
|
212
|
+
{
|
|
213
|
+
"color": "info" as const,
|
|
214
|
+
"multiple": true,
|
|
215
|
+
"variant": [
|
|
216
|
+
"outline" as const,
|
|
217
|
+
"subtle" as const
|
|
218
|
+
],
|
|
219
|
+
"class": "has-focus-visible:ring-2 has-focus-visible:ring-[var(--ui-info)]"
|
|
220
|
+
},
|
|
221
|
+
{
|
|
222
|
+
"color": "warning" as const,
|
|
223
|
+
"multiple": true,
|
|
224
|
+
"variant": [
|
|
225
|
+
"outline" as const,
|
|
226
|
+
"subtle" as const
|
|
227
|
+
],
|
|
228
|
+
"class": "has-focus-visible:ring-2 has-focus-visible:ring-[var(--ui-warning)]"
|
|
229
|
+
},
|
|
230
|
+
{
|
|
231
|
+
"color": "error" as const,
|
|
232
|
+
"multiple": true,
|
|
233
|
+
"variant": [
|
|
234
|
+
"outline" as const,
|
|
235
|
+
"subtle" as const
|
|
236
|
+
],
|
|
237
|
+
"class": "has-focus-visible:ring-2 has-focus-visible:ring-[var(--ui-error)]"
|
|
238
|
+
},
|
|
239
|
+
{
|
|
240
|
+
"color": "neutral" as const,
|
|
241
|
+
"multiple": true,
|
|
242
|
+
"variant": [
|
|
243
|
+
"outline" as const,
|
|
244
|
+
"subtle" as const
|
|
245
|
+
],
|
|
246
|
+
"class": "has-focus-visible:ring-2 has-focus-visible:ring-[var(--ui-border-inverted)]"
|
|
247
|
+
},
|
|
248
|
+
{
|
|
249
|
+
"color": "primary" as const,
|
|
250
|
+
"variant": [
|
|
251
|
+
"outline" as const,
|
|
252
|
+
"subtle" as const
|
|
253
|
+
],
|
|
254
|
+
"class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-[var(--ui-primary)]"
|
|
255
|
+
},
|
|
256
|
+
{
|
|
257
|
+
"color": "secondary" as const,
|
|
258
|
+
"variant": [
|
|
259
|
+
"outline" as const,
|
|
260
|
+
"subtle" as const
|
|
261
|
+
],
|
|
262
|
+
"class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-[var(--ui-secondary)]"
|
|
263
|
+
},
|
|
264
|
+
{
|
|
265
|
+
"color": "success" as const,
|
|
266
|
+
"variant": [
|
|
267
|
+
"outline" as const,
|
|
268
|
+
"subtle" as const
|
|
269
|
+
],
|
|
270
|
+
"class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-[var(--ui-success)]"
|
|
271
|
+
},
|
|
272
|
+
{
|
|
273
|
+
"color": "info" as const,
|
|
274
|
+
"variant": [
|
|
275
|
+
"outline" as const,
|
|
276
|
+
"subtle" as const
|
|
277
|
+
],
|
|
278
|
+
"class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-[var(--ui-info)]"
|
|
279
|
+
},
|
|
280
|
+
{
|
|
281
|
+
"color": "warning" as const,
|
|
282
|
+
"variant": [
|
|
283
|
+
"outline" as const,
|
|
284
|
+
"subtle" as const
|
|
285
|
+
],
|
|
286
|
+
"class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-[var(--ui-warning)]"
|
|
287
|
+
},
|
|
288
|
+
{
|
|
289
|
+
"color": "error" as const,
|
|
290
|
+
"variant": [
|
|
291
|
+
"outline" as const,
|
|
292
|
+
"subtle" as const
|
|
293
|
+
],
|
|
294
|
+
"class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-[var(--ui-error)]"
|
|
295
|
+
},
|
|
296
|
+
{
|
|
297
|
+
"color": "primary" as const,
|
|
298
|
+
"highlight": true,
|
|
299
|
+
"class": "ring ring-inset ring-[var(--ui-primary)]"
|
|
300
|
+
},
|
|
301
|
+
{
|
|
302
|
+
"color": "secondary" as const,
|
|
303
|
+
"highlight": true,
|
|
304
|
+
"class": "ring ring-inset ring-[var(--ui-secondary)]"
|
|
305
|
+
},
|
|
306
|
+
{
|
|
307
|
+
"color": "success" as const,
|
|
308
|
+
"highlight": true,
|
|
309
|
+
"class": "ring ring-inset ring-[var(--ui-success)]"
|
|
310
|
+
},
|
|
311
|
+
{
|
|
312
|
+
"color": "info" as const,
|
|
313
|
+
"highlight": true,
|
|
314
|
+
"class": "ring ring-inset ring-[var(--ui-info)]"
|
|
315
|
+
},
|
|
316
|
+
{
|
|
317
|
+
"color": "warning" as const,
|
|
318
|
+
"highlight": true,
|
|
319
|
+
"class": "ring ring-inset ring-[var(--ui-warning)]"
|
|
320
|
+
},
|
|
321
|
+
{
|
|
322
|
+
"color": "error" as const,
|
|
323
|
+
"highlight": true,
|
|
324
|
+
"class": "ring ring-inset ring-[var(--ui-error)]"
|
|
325
|
+
},
|
|
326
|
+
{
|
|
327
|
+
"color": "neutral" as const,
|
|
328
|
+
"variant": [
|
|
329
|
+
"outline" as const,
|
|
330
|
+
"subtle" as const
|
|
331
|
+
],
|
|
332
|
+
"class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-[var(--ui-border-inverted)]"
|
|
333
|
+
},
|
|
334
|
+
{
|
|
335
|
+
"color": "neutral" as const,
|
|
336
|
+
"highlight": true,
|
|
337
|
+
"class": "ring ring-inset ring-[var(--ui-border-inverted)]"
|
|
338
|
+
},
|
|
339
|
+
{
|
|
340
|
+
"leading": true,
|
|
341
|
+
"size": "xs" as const,
|
|
342
|
+
"class": "ps-7"
|
|
343
|
+
},
|
|
344
|
+
{
|
|
345
|
+
"leading": true,
|
|
346
|
+
"size": "sm" as const,
|
|
347
|
+
"class": "ps-8"
|
|
348
|
+
},
|
|
349
|
+
{
|
|
350
|
+
"leading": true,
|
|
351
|
+
"size": "md" as const,
|
|
352
|
+
"class": "ps-9"
|
|
353
|
+
},
|
|
354
|
+
{
|
|
355
|
+
"leading": true,
|
|
356
|
+
"size": "lg" as const,
|
|
357
|
+
"class": "ps-10"
|
|
358
|
+
},
|
|
359
|
+
{
|
|
360
|
+
"leading": true,
|
|
361
|
+
"size": "xl" as const,
|
|
362
|
+
"class": "ps-11"
|
|
363
|
+
},
|
|
364
|
+
{
|
|
365
|
+
"trailing": true,
|
|
366
|
+
"size": "xs" as const,
|
|
367
|
+
"class": "pe-7"
|
|
368
|
+
},
|
|
369
|
+
{
|
|
370
|
+
"trailing": true,
|
|
371
|
+
"size": "sm" as const,
|
|
372
|
+
"class": "pe-8"
|
|
373
|
+
},
|
|
374
|
+
{
|
|
375
|
+
"trailing": true,
|
|
376
|
+
"size": "md" as const,
|
|
377
|
+
"class": "pe-9"
|
|
378
|
+
},
|
|
379
|
+
{
|
|
380
|
+
"trailing": true,
|
|
381
|
+
"size": "lg" as const,
|
|
382
|
+
"class": "pe-10"
|
|
383
|
+
},
|
|
384
|
+
{
|
|
385
|
+
"trailing": true,
|
|
386
|
+
"size": "xl" as const,
|
|
387
|
+
"class": "pe-11"
|
|
388
|
+
},
|
|
389
|
+
{
|
|
390
|
+
"loading": true,
|
|
391
|
+
"leading": true,
|
|
392
|
+
"class": {
|
|
393
|
+
"leadingIcon": "animate-spin"
|
|
394
|
+
}
|
|
395
|
+
},
|
|
396
|
+
{
|
|
397
|
+
"loading": true,
|
|
398
|
+
"leading": false,
|
|
399
|
+
"trailing": true,
|
|
400
|
+
"class": {
|
|
401
|
+
"trailingIcon": "animate-spin"
|
|
402
|
+
}
|
|
403
|
+
}
|
|
404
|
+
],
|
|
405
|
+
"defaultVariants": {
|
|
406
|
+
"size": "md" as const,
|
|
407
|
+
"color": "primary" as const,
|
|
408
|
+
"variant": "outline" as const
|
|
409
|
+
}
|
|
410
|
+
}
|
|
@@ -0,0 +1,204 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
"slots": {
|
|
3
|
+
"root": "relative inline-flex items-center",
|
|
4
|
+
"base": [
|
|
5
|
+
"w-full rounded-[calc(var(--ui-radius)*1.5)] border-0 placeholder:text-[var(--ui-text-dimmed)] focus:outline-none disabled:cursor-not-allowed disabled:opacity-75",
|
|
6
|
+
"transition-colors"
|
|
7
|
+
],
|
|
8
|
+
"increment": "absolute flex items-center",
|
|
9
|
+
"decrement": "absolute flex items-center"
|
|
10
|
+
},
|
|
11
|
+
"variants": {
|
|
12
|
+
"color": {
|
|
13
|
+
"primary": "",
|
|
14
|
+
"secondary": "",
|
|
15
|
+
"success": "",
|
|
16
|
+
"info": "",
|
|
17
|
+
"warning": "",
|
|
18
|
+
"error": "",
|
|
19
|
+
"neutral": ""
|
|
20
|
+
},
|
|
21
|
+
"size": {
|
|
22
|
+
"xs": "px-2 py-1 text-xs gap-1",
|
|
23
|
+
"sm": "px-2.5 py-1.5 text-xs gap-1.5",
|
|
24
|
+
"md": "px-2.5 py-1.5 text-sm gap-1.5",
|
|
25
|
+
"lg": "px-3 py-2 text-sm gap-2",
|
|
26
|
+
"xl": "px-3 py-2 text-base gap-2"
|
|
27
|
+
},
|
|
28
|
+
"variant": {
|
|
29
|
+
"outline": "text-[var(--ui-text-highlighted)] bg-[var(--ui-bg)] ring ring-inset ring-[var(--ui-border-accented)]",
|
|
30
|
+
"soft": "text-[var(--ui-text-highlighted)] bg-[var(--ui-bg-elevated)]/50 hover:bg-[var(--ui-bg-elevated)] focus:bg-[var(--ui-bg-elevated)] disabled:bg-[var(--ui-bg-elevated)]/50",
|
|
31
|
+
"subtle": "text-[var(--ui-text-highlighted)] bg-[var(--ui-bg-elevated)] ring ring-inset ring-[var(--ui-border-accented)]",
|
|
32
|
+
"ghost": "text-[var(--ui-text-highlighted)] bg-transparent hover:bg-[var(--ui-bg-elevated)] focus:bg-[var(--ui-bg-elevated)] disabled:bg-transparent dark:disabled:bg-transparent",
|
|
33
|
+
"none": "text-[var(--ui-text-highlighted)] bg-transparent"
|
|
34
|
+
},
|
|
35
|
+
"disabled": {
|
|
36
|
+
"true": {
|
|
37
|
+
"increment": "opacity-75 cursor-not-allowed",
|
|
38
|
+
"decrement": "opacity-75 cursor-not-allowed"
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
"orientation": {
|
|
42
|
+
"horizontal": {
|
|
43
|
+
"base": "text-center",
|
|
44
|
+
"increment": "inset-y-0 end-0 pe-1",
|
|
45
|
+
"decrement": "inset-y-0 start-0 ps-1"
|
|
46
|
+
},
|
|
47
|
+
"vertical": {
|
|
48
|
+
"increment": "top-0 end-0 pe-1 [&>button]:py-0 scale-80",
|
|
49
|
+
"decrement": "bottom-0 end-0 pe-1 [&>button]:py-0 scale-80"
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
"highlight": {
|
|
53
|
+
"true": ""
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
"compoundVariants": [
|
|
57
|
+
{
|
|
58
|
+
"color": "primary" as const,
|
|
59
|
+
"variant": [
|
|
60
|
+
"outline" as const,
|
|
61
|
+
"subtle" as const
|
|
62
|
+
],
|
|
63
|
+
"class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-[var(--ui-primary)]"
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
"color": "secondary" as const,
|
|
67
|
+
"variant": [
|
|
68
|
+
"outline" as const,
|
|
69
|
+
"subtle" as const
|
|
70
|
+
],
|
|
71
|
+
"class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-[var(--ui-secondary)]"
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"color": "success" as const,
|
|
75
|
+
"variant": [
|
|
76
|
+
"outline" as const,
|
|
77
|
+
"subtle" as const
|
|
78
|
+
],
|
|
79
|
+
"class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-[var(--ui-success)]"
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
"color": "info" as const,
|
|
83
|
+
"variant": [
|
|
84
|
+
"outline" as const,
|
|
85
|
+
"subtle" as const
|
|
86
|
+
],
|
|
87
|
+
"class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-[var(--ui-info)]"
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
"color": "warning" as const,
|
|
91
|
+
"variant": [
|
|
92
|
+
"outline" as const,
|
|
93
|
+
"subtle" as const
|
|
94
|
+
],
|
|
95
|
+
"class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-[var(--ui-warning)]"
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
"color": "error" as const,
|
|
99
|
+
"variant": [
|
|
100
|
+
"outline" as const,
|
|
101
|
+
"subtle" as const
|
|
102
|
+
],
|
|
103
|
+
"class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-[var(--ui-error)]"
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
"color": "primary" as const,
|
|
107
|
+
"highlight": true,
|
|
108
|
+
"class": "ring ring-inset ring-[var(--ui-primary)]"
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
"color": "secondary" as const,
|
|
112
|
+
"highlight": true,
|
|
113
|
+
"class": "ring ring-inset ring-[var(--ui-secondary)]"
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
"color": "success" as const,
|
|
117
|
+
"highlight": true,
|
|
118
|
+
"class": "ring ring-inset ring-[var(--ui-success)]"
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
"color": "info" as const,
|
|
122
|
+
"highlight": true,
|
|
123
|
+
"class": "ring ring-inset ring-[var(--ui-info)]"
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
"color": "warning" as const,
|
|
127
|
+
"highlight": true,
|
|
128
|
+
"class": "ring ring-inset ring-[var(--ui-warning)]"
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
"color": "error" as const,
|
|
132
|
+
"highlight": true,
|
|
133
|
+
"class": "ring ring-inset ring-[var(--ui-error)]"
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
"color": "neutral" as const,
|
|
137
|
+
"variant": [
|
|
138
|
+
"outline" as const,
|
|
139
|
+
"subtle" as const
|
|
140
|
+
],
|
|
141
|
+
"class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-[var(--ui-border-inverted)]"
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
"color": "neutral" as const,
|
|
145
|
+
"highlight": true,
|
|
146
|
+
"class": "ring ring-inset ring-[var(--ui-border-inverted)]"
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
"orientation": "horizontal" as const,
|
|
150
|
+
"size": "xs" as const,
|
|
151
|
+
"class": "px-7"
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
"orientation": "horizontal" as const,
|
|
155
|
+
"size": "sm" as const,
|
|
156
|
+
"class": "px-8"
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
"orientation": "horizontal" as const,
|
|
160
|
+
"size": "md" as const,
|
|
161
|
+
"class": "px-9"
|
|
162
|
+
},
|
|
163
|
+
{
|
|
164
|
+
"orientation": "horizontal" as const,
|
|
165
|
+
"size": "lg" as const,
|
|
166
|
+
"class": "px-10"
|
|
167
|
+
},
|
|
168
|
+
{
|
|
169
|
+
"orientation": "horizontal" as const,
|
|
170
|
+
"size": "xl" as const,
|
|
171
|
+
"class": "px-11"
|
|
172
|
+
},
|
|
173
|
+
{
|
|
174
|
+
"orientation": "vertical" as const,
|
|
175
|
+
"size": "xs" as const,
|
|
176
|
+
"class": "pe-7"
|
|
177
|
+
},
|
|
178
|
+
{
|
|
179
|
+
"orientation": "vertical" as const,
|
|
180
|
+
"size": "sm" as const,
|
|
181
|
+
"class": "pe-8"
|
|
182
|
+
},
|
|
183
|
+
{
|
|
184
|
+
"orientation": "vertical" as const,
|
|
185
|
+
"size": "md" as const,
|
|
186
|
+
"class": "pe-9"
|
|
187
|
+
},
|
|
188
|
+
{
|
|
189
|
+
"orientation": "vertical" as const,
|
|
190
|
+
"size": "lg" as const,
|
|
191
|
+
"class": "pe-10"
|
|
192
|
+
},
|
|
193
|
+
{
|
|
194
|
+
"orientation": "vertical" as const,
|
|
195
|
+
"size": "xl" as const,
|
|
196
|
+
"class": "pe-11"
|
|
197
|
+
}
|
|
198
|
+
],
|
|
199
|
+
"defaultVariants": {
|
|
200
|
+
"size": "md" as const,
|
|
201
|
+
"color": "primary" as const,
|
|
202
|
+
"variant": "outline" as const
|
|
203
|
+
}
|
|
204
|
+
}
|