@nuxt/ui 3.0.0-alpha.1 → 3.0.0-alpha.11
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 +259 -0
- package/.nuxt/ui/avatar-group.ts +52 -0
- package/.nuxt/ui/avatar.ts +54 -0
- package/.nuxt/ui/badge.ts +231 -0
- package/.nuxt/ui/breadcrumb.ts +45 -0
- package/.nuxt/ui/button-group.ts +29 -0
- package/.nuxt/ui/button.ts +376 -0
- package/.nuxt/ui/calendar.ts +103 -0
- package/.nuxt/ui/card.ts +8 -0
- package/.nuxt/ui/carousel.ts +43 -0
- package/.nuxt/ui/checkbox.ts +123 -0
- package/.nuxt/ui/chip.ts +96 -0
- package/.nuxt/ui/collapsible.ts +6 -0
- package/.nuxt/ui/color-picker.ts +47 -0
- package/.nuxt/ui/command-palette.ts +50 -0
- package/.nuxt/ui/container.ts +3 -0
- package/.nuxt/ui/context-menu.ts +216 -0
- package/.nuxt/ui/drawer.ts +62 -0
- package/.nuxt/ui/dropdown-menu.ts +217 -0
- package/.nuxt/ui/form-field.ts +48 -0
- package/.nuxt/ui/form.ts +3 -0
- package/.nuxt/ui/index.ts +48 -0
- package/.nuxt/ui/input-menu.ts +445 -0
- package/.nuxt/ui/input-number.ts +235 -0
- package/.nuxt/ui/input.ts +298 -0
- package/.nuxt/ui/kbd.ts +31 -0
- package/.nuxt/ui/link.ts +15 -0
- package/.nuxt/ui/modal.ts +28 -0
- package/.nuxt/ui/navigation-menu.ts +436 -0
- package/.nuxt/ui/pagination.ts +8 -0
- package/.nuxt/ui/pin-input.ts +171 -0
- package/.nuxt/ui/popover.ts +6 -0
- package/.nuxt/ui/progress.ts +297 -0
- package/.nuxt/ui/radio-group.ts +135 -0
- package/.nuxt/ui/select-menu.ts +351 -0
- package/.nuxt/ui/select.ts +350 -0
- package/.nuxt/ui/separator.ts +172 -0
- package/.nuxt/ui/skeleton.ts +3 -0
- package/.nuxt/ui/slideover.ts +70 -0
- package/.nuxt/ui/slider.ts +171 -0
- package/.nuxt/ui/stepper.ts +202 -0
- package/.nuxt/ui/switch.ts +131 -0
- package/.nuxt/ui/table.ts +146 -0
- package/.nuxt/ui/tabs.ts +255 -0
- package/.nuxt/ui/textarea.ts +298 -0
- package/.nuxt/ui/toast.ts +76 -0
- package/.nuxt/ui/toaster.ts +91 -0
- package/.nuxt/ui/tooltip.ts +9 -0
- package/README.md +82 -54
- package/cli/commands/{init.mjs → make/component.mjs} +17 -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/package.json +2 -2
- package/cli/templates.mjs +60 -10
- 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/CQ-XZFu7.js +54 -0
- package/dist/client/devtools/_nuxt/DNZFyo26.js +1 -0
- package/dist/client/devtools/_nuxt/Dtz-o9GB.js +1 -0
- package/dist/client/devtools/_nuxt/builds/latest.json +1 -0
- package/dist/client/devtools/_nuxt/builds/meta/1f5fbd7b-9d97-480e-9ae4-e02b4ff7018b.json +1 -0
- package/dist/client/devtools/_nuxt/entry.qOdop8tq.css +1 -0
- package/dist/client/devtools/_nuxt/error-404.D-rS9BDk.css +1 -0
- package/dist/client/devtools/_nuxt/error-500.CfcCHs91.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 +51 -9
- package/dist/runtime/components/Alert.vue +16 -8
- package/dist/runtime/components/App.vue +20 -7
- package/dist/runtime/components/Avatar.vue +36 -11
- package/dist/runtime/components/AvatarGroup.vue +6 -2
- package/dist/runtime/components/Badge.vue +36 -5
- package/dist/runtime/components/Breadcrumb.vue +53 -14
- package/dist/runtime/components/Button.vue +47 -7
- package/dist/runtime/components/ButtonGroup.vue +7 -3
- package/dist/runtime/components/Calendar.vue +191 -0
- package/dist/runtime/components/Card.vue +5 -2
- package/dist/runtime/components/Carousel.vue +323 -0
- package/dist/runtime/components/Checkbox.vue +30 -34
- package/dist/runtime/components/Chip.vue +12 -4
- package/dist/runtime/components/Collapsible.vue +11 -6
- package/dist/runtime/components/ColorPicker.vue +266 -0
- package/dist/runtime/components/CommandPalette.vue +132 -99
- package/dist/runtime/components/Container.vue +5 -2
- package/dist/runtime/components/ContextMenu.vue +103 -15
- package/dist/runtime/components/ContextMenuContent.vue +49 -19
- package/dist/runtime/components/Drawer.vue +28 -12
- package/dist/runtime/components/DropdownMenu.vue +93 -17
- package/dist/runtime/components/DropdownMenuContent.vue +51 -19
- package/dist/runtime/components/Form.vue +59 -41
- package/dist/runtime/components/FormField.vue +20 -7
- package/dist/runtime/components/Icon.vue +1 -1
- package/dist/runtime/components/Input.vue +18 -8
- package/dist/runtime/components/InputMenu.vue +164 -66
- package/dist/runtime/components/InputNumber.vue +193 -0
- package/dist/runtime/components/Kbd.vue +5 -2
- package/dist/runtime/components/Link.vue +72 -9
- package/dist/runtime/components/LinkBase.vue +10 -7
- package/dist/runtime/components/Modal.vue +23 -16
- package/dist/runtime/components/NavigationMenu.vue +178 -78
- package/dist/runtime/components/Pagination.vue +32 -16
- package/dist/runtime/components/PinInput.vue +97 -0
- package/dist/runtime/components/Popover.vue +29 -9
- package/dist/runtime/components/Progress.vue +29 -11
- package/dist/runtime/components/RadioGroup.vue +30 -8
- package/dist/runtime/components/Select.vue +81 -33
- package/dist/runtime/components/SelectMenu.vue +181 -81
- package/dist/runtime/components/Separator.vue +5 -4
- package/dist/runtime/components/Skeleton.vue +5 -2
- package/dist/runtime/components/Slideover.vue +23 -15
- package/dist/runtime/components/Slider.vue +5 -4
- package/dist/runtime/components/Stepper.vue +173 -0
- package/dist/runtime/components/Switch.vue +18 -17
- package/dist/runtime/components/Table.vue +263 -0
- package/dist/runtime/components/Tabs.vue +45 -16
- package/dist/runtime/components/Textarea.vue +12 -5
- package/dist/runtime/components/Toast.vue +15 -6
- package/dist/runtime/components/Toaster.vue +33 -17
- package/dist/runtime/components/Tooltip.vue +10 -7
- 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 +3 -9
- 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 +9 -5
- package/dist/runtime/composables/useFormField.js +8 -4
- 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 +55 -0
- package/dist/runtime/locale/cs.d.ts +2 -0
- package/dist/runtime/locale/cs.js +54 -0
- package/dist/runtime/locale/da.d.ts +2 -0
- package/dist/runtime/locale/da.js +54 -0
- package/dist/runtime/locale/de.d.ts +2 -0
- package/dist/runtime/locale/de.js +54 -0
- package/dist/runtime/locale/el.d.ts +2 -0
- package/dist/runtime/locale/el.js +54 -0
- package/dist/runtime/locale/en.d.ts +2 -0
- package/dist/runtime/locale/en.js +54 -0
- package/dist/runtime/locale/es.d.ts +2 -0
- package/dist/runtime/locale/es.js +54 -0
- package/dist/runtime/locale/et.d.ts +2 -0
- package/dist/runtime/locale/et.js +54 -0
- package/dist/runtime/locale/fa_ir.d.ts +2 -0
- package/dist/runtime/locale/fa_ir.js +55 -0
- package/dist/runtime/locale/fi.d.ts +2 -0
- package/dist/runtime/locale/fi.js +54 -0
- package/dist/runtime/locale/fr.d.ts +2 -0
- package/dist/runtime/locale/fr.js +54 -0
- package/dist/runtime/locale/id.d.ts +2 -0
- package/dist/runtime/locale/id.js +54 -0
- package/dist/runtime/locale/index.d.ts +28 -0
- package/dist/runtime/locale/index.js +28 -0
- package/dist/runtime/locale/it.d.ts +2 -0
- package/dist/runtime/locale/it.js +54 -0
- package/dist/runtime/locale/ja.d.ts +2 -0
- package/dist/runtime/locale/ja.js +54 -0
- package/dist/runtime/locale/ko.d.ts +2 -0
- package/dist/runtime/locale/ko.js +54 -0
- package/dist/runtime/locale/nl.d.ts +2 -0
- package/dist/runtime/locale/nl.js +54 -0
- package/dist/runtime/locale/pl.d.ts +2 -0
- package/dist/runtime/locale/pl.js +54 -0
- package/dist/runtime/locale/pt.d.ts +2 -0
- package/dist/runtime/locale/pt.js +54 -0
- package/dist/runtime/locale/pt_br.d.ts +2 -0
- package/dist/runtime/locale/pt_br.js +54 -0
- package/dist/runtime/locale/ru.d.ts +2 -0
- package/dist/runtime/locale/ru.js +54 -0
- package/dist/runtime/locale/sk.d.ts +2 -0
- package/dist/runtime/locale/sk.js +54 -0
- package/dist/runtime/locale/sv.d.ts +2 -0
- package/dist/runtime/locale/sv.js +54 -0
- package/dist/runtime/locale/th.d.ts +2 -0
- package/dist/runtime/locale/th.js +54 -0
- package/dist/runtime/locale/tr.d.ts +2 -0
- package/dist/runtime/locale/tr.js +54 -0
- package/dist/runtime/locale/uk.d.ts +2 -0
- package/dist/runtime/locale/uk.js +54 -0
- package/dist/runtime/locale/vi.d.ts +2 -0
- package/dist/runtime/locale/vi.js +54 -0
- package/dist/runtime/locale/zh_hans.d.ts +2 -0
- package/dist/runtime/locale/zh_hans.js +54 -0
- package/dist/runtime/locale/zh_hant.d.ts +2 -0
- package/dist/runtime/locale/zh_hant.js +54 -0
- package/dist/runtime/plugins/colors.js +12 -8
- package/dist/runtime/types/form.d.ts +11 -4
- package/dist/runtime/types/form.js +2 -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 +56 -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/utils/tv.d.ts +1 -0
- package/dist/runtime/utils/tv.js +4 -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.BKsd22-Q.mjs +3289 -0
- package/dist/shared/ui.DCjJwb6l.cjs +3296 -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 +107 -35
- 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,436 @@
|
|
|
1
|
+
const color = [
|
|
2
|
+
"primary",
|
|
3
|
+
"secondary",
|
|
4
|
+
"success",
|
|
5
|
+
"info",
|
|
6
|
+
"warning",
|
|
7
|
+
"error",
|
|
8
|
+
"neutral"
|
|
9
|
+
] as const
|
|
10
|
+
|
|
11
|
+
const highlightColor = [
|
|
12
|
+
"primary",
|
|
13
|
+
"secondary",
|
|
14
|
+
"success",
|
|
15
|
+
"info",
|
|
16
|
+
"warning",
|
|
17
|
+
"error",
|
|
18
|
+
"neutral"
|
|
19
|
+
] as const
|
|
20
|
+
|
|
21
|
+
const variant = [
|
|
22
|
+
"pill",
|
|
23
|
+
"link"
|
|
24
|
+
] as const
|
|
25
|
+
|
|
26
|
+
const orientation = [
|
|
27
|
+
"horizontal",
|
|
28
|
+
"vertical"
|
|
29
|
+
] as const
|
|
30
|
+
|
|
31
|
+
export default {
|
|
32
|
+
"slots": {
|
|
33
|
+
"root": "relative flex gap-1.5 [&>div]:min-w-0",
|
|
34
|
+
"list": "isolate min-w-0",
|
|
35
|
+
"item": "min-w-0",
|
|
36
|
+
"link": "group relative w-full flex items-center gap-1.5 font-medium text-sm before:absolute before:z-[-1] before:rounded-[calc(var(--ui-radius)*1.5)] focus:outline-none focus-visible:outline-none dark:focus-visible:outline-none focus-visible:before:ring-inset focus-visible:before:ring-2",
|
|
37
|
+
"linkLeadingIcon": "shrink-0 size-5",
|
|
38
|
+
"linkLeadingAvatar": "shrink-0",
|
|
39
|
+
"linkLeadingAvatarSize": "2xs",
|
|
40
|
+
"linkTrailing": "ms-auto inline-flex gap-1.5 items-center",
|
|
41
|
+
"linkTrailingBadge": "shrink-0",
|
|
42
|
+
"linkTrailingBadgeSize": "sm",
|
|
43
|
+
"linkTrailingIcon": "size-5 transform shrink-0 group-data-[state=open]:rotate-180 transition-transform duration-200",
|
|
44
|
+
"linkLabel": "truncate",
|
|
45
|
+
"linkLabelExternalIcon": "inline-block size-3 align-top text-[var(--ui-text-dimmed)]",
|
|
46
|
+
"childList": "",
|
|
47
|
+
"childItem": "",
|
|
48
|
+
"childLink": "group size-full px-3 py-2 rounded-[calc(var(--ui-radius)*1.5)] flex items-start gap-2 text-start",
|
|
49
|
+
"childLinkWrapper": "flex flex-col items-start",
|
|
50
|
+
"childLinkIcon": "size-5 shrink-0",
|
|
51
|
+
"childLinkLabel": "font-semibold text-sm relative inline-flex",
|
|
52
|
+
"childLinkLabelExternalIcon": "inline-block size-3 align-top text-[var(--ui-text-dimmed)]",
|
|
53
|
+
"childLinkDescription": "text-sm text-[var(--ui-text-muted)]",
|
|
54
|
+
"separator": "px-2 h-px bg-[var(--ui-border)]",
|
|
55
|
+
"viewportWrapper": "absolute top-full left-0 flex w-full justify-center",
|
|
56
|
+
"viewport": "relative overflow-hidden bg-[var(--ui-bg)] shadow-lg rounded-[calc(var(--ui-radius)*1.5)] ring ring-[var(--ui-border)] h-[var(--reka-navigation-menu-viewport-height)] w-full transition-[width,height] origin-[top_center] data-[state=open]:animate-[scale-in_100ms_ease-out] data-[state=closed]:animate-[scale-out_100ms_ease-in]",
|
|
57
|
+
"content": "absolute top-0 left-0 w-full data-[motion=from-start]:animate-[enter-from-left_200ms_ease] data-[motion=from-end]:animate-[enter-from-right_200ms_ease] data-[motion=to-start]:animate-[exit-to-left_200ms_ease] data-[motion=to-end]:animate-[exit-to-right_200ms_ease]",
|
|
58
|
+
"indicator": "absolute data-[state=visible]:animate-[fade-in_100ms_ease-out] data-[state=hidden]:animate-[fade-out_100ms_ease-in] data-[state=hidden]:opacity-0 bottom-0 z-[1] w-[var(--reka-navigation-menu-indicator-size)] translate-x-[var(--reka-navigation-menu-indicator-position)] flex h-2.5 items-end justify-center overflow-hidden transition-[translate,width] duration-200",
|
|
59
|
+
"arrow": "relative top-[50%] size-2.5 rotate-45 border border-[var(--ui-border)] bg-[var(--ui-bg)] z-[1] rounded-[calc(var(--ui-radius)/2)]"
|
|
60
|
+
},
|
|
61
|
+
"variants": {
|
|
62
|
+
"color": {
|
|
63
|
+
"primary": {
|
|
64
|
+
"link": "focus-visible:before:ring-[var(--ui-primary)]",
|
|
65
|
+
"childLink": "focus-visible:outline-[var(--ui-primary)]"
|
|
66
|
+
},
|
|
67
|
+
"secondary": {
|
|
68
|
+
"link": "focus-visible:before:ring-[var(--ui-secondary)]",
|
|
69
|
+
"childLink": "focus-visible:outline-[var(--ui-secondary)]"
|
|
70
|
+
},
|
|
71
|
+
"success": {
|
|
72
|
+
"link": "focus-visible:before:ring-[var(--ui-success)]",
|
|
73
|
+
"childLink": "focus-visible:outline-[var(--ui-success)]"
|
|
74
|
+
},
|
|
75
|
+
"info": {
|
|
76
|
+
"link": "focus-visible:before:ring-[var(--ui-info)]",
|
|
77
|
+
"childLink": "focus-visible:outline-[var(--ui-info)]"
|
|
78
|
+
},
|
|
79
|
+
"warning": {
|
|
80
|
+
"link": "focus-visible:before:ring-[var(--ui-warning)]",
|
|
81
|
+
"childLink": "focus-visible:outline-[var(--ui-warning)]"
|
|
82
|
+
},
|
|
83
|
+
"error": {
|
|
84
|
+
"link": "focus-visible:before:ring-[var(--ui-error)]",
|
|
85
|
+
"childLink": "focus-visible:outline-[var(--ui-error)]"
|
|
86
|
+
},
|
|
87
|
+
"neutral": {
|
|
88
|
+
"link": "focus-visible:before:ring-[var(--ui-border-inverted)]",
|
|
89
|
+
"childLink": "focus-visible:outline-[var(--ui-border-inverted)]"
|
|
90
|
+
}
|
|
91
|
+
},
|
|
92
|
+
"highlightColor": {
|
|
93
|
+
"primary": "",
|
|
94
|
+
"secondary": "",
|
|
95
|
+
"success": "",
|
|
96
|
+
"info": "",
|
|
97
|
+
"warning": "",
|
|
98
|
+
"error": "",
|
|
99
|
+
"neutral": ""
|
|
100
|
+
},
|
|
101
|
+
"variant": {
|
|
102
|
+
"pill": "",
|
|
103
|
+
"link": ""
|
|
104
|
+
},
|
|
105
|
+
"orientation": {
|
|
106
|
+
"horizontal": {
|
|
107
|
+
"root": "items-center justify-between",
|
|
108
|
+
"list": "flex items-center",
|
|
109
|
+
"item": "py-2",
|
|
110
|
+
"link": "px-2.5 py-1.5 before:inset-x-px before:inset-y-0",
|
|
111
|
+
"childList": "grid grid-cols-2 gap-2 p-2"
|
|
112
|
+
},
|
|
113
|
+
"vertical": {
|
|
114
|
+
"root": "flex-col",
|
|
115
|
+
"link": "flex-row px-2.5 py-1.5 before:inset-y-px before:inset-x-0",
|
|
116
|
+
"childList": "ms-5 border-s border-[var(--ui-border)]",
|
|
117
|
+
"childItem": "ps-1.5 -ms-px"
|
|
118
|
+
}
|
|
119
|
+
},
|
|
120
|
+
"active": {
|
|
121
|
+
"true": {
|
|
122
|
+
"childLink": "bg-[var(--ui-bg-elevated)] text-[var(--ui-text-highlighted)]",
|
|
123
|
+
"childLinkIcon": "text-[var(--ui-text)]"
|
|
124
|
+
},
|
|
125
|
+
"false": {
|
|
126
|
+
"link": "text-[var(--ui-text-muted)]",
|
|
127
|
+
"linkLeadingIcon": "text-[var(--ui-text-dimmed)]",
|
|
128
|
+
"childLink": [
|
|
129
|
+
"hover:bg-[var(--ui-bg-elevated)]/50 text-[var(--ui-text)] hover:text-[var(--ui-text-highlighted)]",
|
|
130
|
+
"transition-colors"
|
|
131
|
+
],
|
|
132
|
+
"childLinkIcon": [
|
|
133
|
+
"text-[var(--ui-text-dimmed)] group-hover:text-[var(--ui-text)]",
|
|
134
|
+
"transition-colors"
|
|
135
|
+
]
|
|
136
|
+
}
|
|
137
|
+
},
|
|
138
|
+
"disabled": {
|
|
139
|
+
"true": {
|
|
140
|
+
"link": "cursor-not-allowed opacity-75"
|
|
141
|
+
}
|
|
142
|
+
},
|
|
143
|
+
"highlight": {
|
|
144
|
+
"true": ""
|
|
145
|
+
},
|
|
146
|
+
"level": {
|
|
147
|
+
"true": ""
|
|
148
|
+
}
|
|
149
|
+
},
|
|
150
|
+
"compoundVariants": [
|
|
151
|
+
{
|
|
152
|
+
"orientation": "horizontal" as typeof orientation[number],
|
|
153
|
+
"highlight": true,
|
|
154
|
+
"class": {
|
|
155
|
+
"item": "-mb-px",
|
|
156
|
+
"link": [
|
|
157
|
+
"after:absolute after:-bottom-2 after:inset-x-2.5 after:block after:h-px after:rounded-full",
|
|
158
|
+
"after:transition-colors"
|
|
159
|
+
]
|
|
160
|
+
}
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
"orientation": "vertical" as typeof orientation[number],
|
|
164
|
+
"highlight": true,
|
|
165
|
+
"level": true,
|
|
166
|
+
"class": {
|
|
167
|
+
"link": [
|
|
168
|
+
"after:absolute after:-start-1.5 after:inset-y-0.5 after:block after:w-px after:rounded-full",
|
|
169
|
+
"after:transition-colors"
|
|
170
|
+
]
|
|
171
|
+
}
|
|
172
|
+
},
|
|
173
|
+
{
|
|
174
|
+
"disabled": false,
|
|
175
|
+
"active": false,
|
|
176
|
+
"variant": "pill" as typeof variant[number],
|
|
177
|
+
"class": {
|
|
178
|
+
"link": [
|
|
179
|
+
"hover:text-[var(--ui-text-highlighted)] hover:before:bg-[var(--ui-bg-elevated)]/50 data-[state=open]:text-[var(--ui-text-highlighted)]",
|
|
180
|
+
"transition-colors before:transition-colors"
|
|
181
|
+
],
|
|
182
|
+
"linkLeadingIcon": [
|
|
183
|
+
"group-hover:text-[var(--ui-text)] group-data-[state=open]:text-[var(--ui-text)]",
|
|
184
|
+
"transition-colors"
|
|
185
|
+
]
|
|
186
|
+
}
|
|
187
|
+
},
|
|
188
|
+
{
|
|
189
|
+
"disabled": false,
|
|
190
|
+
"variant": "pill" as typeof variant[number],
|
|
191
|
+
"highlight": true,
|
|
192
|
+
"orientation": "horizontal" as typeof orientation[number],
|
|
193
|
+
"class": {
|
|
194
|
+
"link": "data-[state=open]:before:bg-[var(--ui-bg-elevated)]/50"
|
|
195
|
+
}
|
|
196
|
+
},
|
|
197
|
+
{
|
|
198
|
+
"disabled": false,
|
|
199
|
+
"variant": "pill" as typeof variant[number],
|
|
200
|
+
"highlight": false,
|
|
201
|
+
"active": false,
|
|
202
|
+
"orientation": "horizontal" as typeof orientation[number],
|
|
203
|
+
"class": {
|
|
204
|
+
"link": "data-[state=open]:before:bg-[var(--ui-bg-elevated)]/50"
|
|
205
|
+
}
|
|
206
|
+
},
|
|
207
|
+
{
|
|
208
|
+
"color": "primary" as typeof color[number],
|
|
209
|
+
"variant": "pill" as typeof variant[number],
|
|
210
|
+
"active": true,
|
|
211
|
+
"class": {
|
|
212
|
+
"link": "text-[var(--ui-primary)]",
|
|
213
|
+
"linkLeadingIcon": "text-[var(--ui-primary)] group-data-[state=open]:text-[var(--ui-primary)]"
|
|
214
|
+
}
|
|
215
|
+
},
|
|
216
|
+
{
|
|
217
|
+
"color": "secondary" as typeof color[number],
|
|
218
|
+
"variant": "pill" as typeof variant[number],
|
|
219
|
+
"active": true,
|
|
220
|
+
"class": {
|
|
221
|
+
"link": "text-[var(--ui-secondary)]",
|
|
222
|
+
"linkLeadingIcon": "text-[var(--ui-secondary)] group-data-[state=open]:text-[var(--ui-secondary)]"
|
|
223
|
+
}
|
|
224
|
+
},
|
|
225
|
+
{
|
|
226
|
+
"color": "success" as typeof color[number],
|
|
227
|
+
"variant": "pill" as typeof variant[number],
|
|
228
|
+
"active": true,
|
|
229
|
+
"class": {
|
|
230
|
+
"link": "text-[var(--ui-success)]",
|
|
231
|
+
"linkLeadingIcon": "text-[var(--ui-success)] group-data-[state=open]:text-[var(--ui-success)]"
|
|
232
|
+
}
|
|
233
|
+
},
|
|
234
|
+
{
|
|
235
|
+
"color": "info" as typeof color[number],
|
|
236
|
+
"variant": "pill" as typeof variant[number],
|
|
237
|
+
"active": true,
|
|
238
|
+
"class": {
|
|
239
|
+
"link": "text-[var(--ui-info)]",
|
|
240
|
+
"linkLeadingIcon": "text-[var(--ui-info)] group-data-[state=open]:text-[var(--ui-info)]"
|
|
241
|
+
}
|
|
242
|
+
},
|
|
243
|
+
{
|
|
244
|
+
"color": "warning" as typeof color[number],
|
|
245
|
+
"variant": "pill" as typeof variant[number],
|
|
246
|
+
"active": true,
|
|
247
|
+
"class": {
|
|
248
|
+
"link": "text-[var(--ui-warning)]",
|
|
249
|
+
"linkLeadingIcon": "text-[var(--ui-warning)] group-data-[state=open]:text-[var(--ui-warning)]"
|
|
250
|
+
}
|
|
251
|
+
},
|
|
252
|
+
{
|
|
253
|
+
"color": "error" as typeof color[number],
|
|
254
|
+
"variant": "pill" as typeof variant[number],
|
|
255
|
+
"active": true,
|
|
256
|
+
"class": {
|
|
257
|
+
"link": "text-[var(--ui-error)]",
|
|
258
|
+
"linkLeadingIcon": "text-[var(--ui-error)] group-data-[state=open]:text-[var(--ui-error)]"
|
|
259
|
+
}
|
|
260
|
+
},
|
|
261
|
+
{
|
|
262
|
+
"color": "neutral" as typeof color[number],
|
|
263
|
+
"variant": "pill" as typeof variant[number],
|
|
264
|
+
"active": true,
|
|
265
|
+
"class": {
|
|
266
|
+
"link": "text-[var(--ui-text-highlighted)]",
|
|
267
|
+
"linkLeadingIcon": "text-[var(--ui-text-highlighted)] group-data-[state=open]:text-[var(--ui-text-highlighted)]"
|
|
268
|
+
}
|
|
269
|
+
},
|
|
270
|
+
{
|
|
271
|
+
"variant": "pill" as typeof variant[number],
|
|
272
|
+
"active": true,
|
|
273
|
+
"highlight": false,
|
|
274
|
+
"class": {
|
|
275
|
+
"link": "before:bg-[var(--ui-bg-elevated)]"
|
|
276
|
+
}
|
|
277
|
+
},
|
|
278
|
+
{
|
|
279
|
+
"variant": "pill" as typeof variant[number],
|
|
280
|
+
"active": true,
|
|
281
|
+
"highlight": true,
|
|
282
|
+
"class": {
|
|
283
|
+
"link": [
|
|
284
|
+
"hover:before:bg-[var(--ui-bg-elevated)]/50",
|
|
285
|
+
"before:transition-colors"
|
|
286
|
+
]
|
|
287
|
+
}
|
|
288
|
+
},
|
|
289
|
+
{
|
|
290
|
+
"disabled": false,
|
|
291
|
+
"active": false,
|
|
292
|
+
"variant": "link" as typeof variant[number],
|
|
293
|
+
"class": {
|
|
294
|
+
"link": [
|
|
295
|
+
"hover:text-[var(--ui-text-highlighted)] data-[state=open]:text-[var(--ui-text-highlighted)]",
|
|
296
|
+
"transition-colors"
|
|
297
|
+
],
|
|
298
|
+
"linkLeadingIcon": [
|
|
299
|
+
"group-hover:text-[var(--ui-text)] group-data-[state=open]:text-[var(--ui-text)]",
|
|
300
|
+
"transition-colors"
|
|
301
|
+
]
|
|
302
|
+
}
|
|
303
|
+
},
|
|
304
|
+
{
|
|
305
|
+
"color": "primary" as typeof color[number],
|
|
306
|
+
"variant": "link" as typeof variant[number],
|
|
307
|
+
"active": true,
|
|
308
|
+
"class": {
|
|
309
|
+
"link": "text-[var(--ui-primary)]",
|
|
310
|
+
"linkLeadingIcon": "text-[var(--ui-primary)] group-data-[state=open]:text-[var(--ui-primary)]"
|
|
311
|
+
}
|
|
312
|
+
},
|
|
313
|
+
{
|
|
314
|
+
"color": "secondary" as typeof color[number],
|
|
315
|
+
"variant": "link" as typeof variant[number],
|
|
316
|
+
"active": true,
|
|
317
|
+
"class": {
|
|
318
|
+
"link": "text-[var(--ui-secondary)]",
|
|
319
|
+
"linkLeadingIcon": "text-[var(--ui-secondary)] group-data-[state=open]:text-[var(--ui-secondary)]"
|
|
320
|
+
}
|
|
321
|
+
},
|
|
322
|
+
{
|
|
323
|
+
"color": "success" as typeof color[number],
|
|
324
|
+
"variant": "link" as typeof variant[number],
|
|
325
|
+
"active": true,
|
|
326
|
+
"class": {
|
|
327
|
+
"link": "text-[var(--ui-success)]",
|
|
328
|
+
"linkLeadingIcon": "text-[var(--ui-success)] group-data-[state=open]:text-[var(--ui-success)]"
|
|
329
|
+
}
|
|
330
|
+
},
|
|
331
|
+
{
|
|
332
|
+
"color": "info" as typeof color[number],
|
|
333
|
+
"variant": "link" as typeof variant[number],
|
|
334
|
+
"active": true,
|
|
335
|
+
"class": {
|
|
336
|
+
"link": "text-[var(--ui-info)]",
|
|
337
|
+
"linkLeadingIcon": "text-[var(--ui-info)] group-data-[state=open]:text-[var(--ui-info)]"
|
|
338
|
+
}
|
|
339
|
+
},
|
|
340
|
+
{
|
|
341
|
+
"color": "warning" as typeof color[number],
|
|
342
|
+
"variant": "link" as typeof variant[number],
|
|
343
|
+
"active": true,
|
|
344
|
+
"class": {
|
|
345
|
+
"link": "text-[var(--ui-warning)]",
|
|
346
|
+
"linkLeadingIcon": "text-[var(--ui-warning)] group-data-[state=open]:text-[var(--ui-warning)]"
|
|
347
|
+
}
|
|
348
|
+
},
|
|
349
|
+
{
|
|
350
|
+
"color": "error" as typeof color[number],
|
|
351
|
+
"variant": "link" as typeof variant[number],
|
|
352
|
+
"active": true,
|
|
353
|
+
"class": {
|
|
354
|
+
"link": "text-[var(--ui-error)]",
|
|
355
|
+
"linkLeadingIcon": "text-[var(--ui-error)] group-data-[state=open]:text-[var(--ui-error)]"
|
|
356
|
+
}
|
|
357
|
+
},
|
|
358
|
+
{
|
|
359
|
+
"color": "neutral" as typeof color[number],
|
|
360
|
+
"variant": "link" as typeof variant[number],
|
|
361
|
+
"active": true,
|
|
362
|
+
"class": {
|
|
363
|
+
"link": "text-[var(--ui-text-highlighted)]",
|
|
364
|
+
"linkLeadingIcon": "text-[var(--ui-text-highlighted)] group-data-[state=open]:text-[var(--ui-text-highlighted)]"
|
|
365
|
+
}
|
|
366
|
+
},
|
|
367
|
+
{
|
|
368
|
+
"highlightColor": "primary" as typeof highlightColor[number],
|
|
369
|
+
"highlight": true,
|
|
370
|
+
"level": true,
|
|
371
|
+
"active": true,
|
|
372
|
+
"class": {
|
|
373
|
+
"link": "after:bg-[var(--ui-primary)]"
|
|
374
|
+
}
|
|
375
|
+
},
|
|
376
|
+
{
|
|
377
|
+
"highlightColor": "secondary" as typeof highlightColor[number],
|
|
378
|
+
"highlight": true,
|
|
379
|
+
"level": true,
|
|
380
|
+
"active": true,
|
|
381
|
+
"class": {
|
|
382
|
+
"link": "after:bg-[var(--ui-secondary)]"
|
|
383
|
+
}
|
|
384
|
+
},
|
|
385
|
+
{
|
|
386
|
+
"highlightColor": "success" as typeof highlightColor[number],
|
|
387
|
+
"highlight": true,
|
|
388
|
+
"level": true,
|
|
389
|
+
"active": true,
|
|
390
|
+
"class": {
|
|
391
|
+
"link": "after:bg-[var(--ui-success)]"
|
|
392
|
+
}
|
|
393
|
+
},
|
|
394
|
+
{
|
|
395
|
+
"highlightColor": "info" as typeof highlightColor[number],
|
|
396
|
+
"highlight": true,
|
|
397
|
+
"level": true,
|
|
398
|
+
"active": true,
|
|
399
|
+
"class": {
|
|
400
|
+
"link": "after:bg-[var(--ui-info)]"
|
|
401
|
+
}
|
|
402
|
+
},
|
|
403
|
+
{
|
|
404
|
+
"highlightColor": "warning" as typeof highlightColor[number],
|
|
405
|
+
"highlight": true,
|
|
406
|
+
"level": true,
|
|
407
|
+
"active": true,
|
|
408
|
+
"class": {
|
|
409
|
+
"link": "after:bg-[var(--ui-warning)]"
|
|
410
|
+
}
|
|
411
|
+
},
|
|
412
|
+
{
|
|
413
|
+
"highlightColor": "error" as typeof highlightColor[number],
|
|
414
|
+
"highlight": true,
|
|
415
|
+
"level": true,
|
|
416
|
+
"active": true,
|
|
417
|
+
"class": {
|
|
418
|
+
"link": "after:bg-[var(--ui-error)]"
|
|
419
|
+
}
|
|
420
|
+
},
|
|
421
|
+
{
|
|
422
|
+
"highlightColor": "neutral" as typeof highlightColor[number],
|
|
423
|
+
"highlight": true,
|
|
424
|
+
"level": true,
|
|
425
|
+
"active": true,
|
|
426
|
+
"class": {
|
|
427
|
+
"link": "after:bg-[var(--ui-bg-inverted)]"
|
|
428
|
+
}
|
|
429
|
+
}
|
|
430
|
+
],
|
|
431
|
+
"defaultVariants": {
|
|
432
|
+
"color": "primary" as typeof color[number],
|
|
433
|
+
"highlightColor": "primary" as typeof highlightColor[number],
|
|
434
|
+
"variant": "pill" as typeof variant[number]
|
|
435
|
+
}
|
|
436
|
+
}
|
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
const size = [
|
|
2
|
+
"xs",
|
|
3
|
+
"sm",
|
|
4
|
+
"md",
|
|
5
|
+
"lg",
|
|
6
|
+
"xl"
|
|
7
|
+
] as const
|
|
8
|
+
|
|
9
|
+
const variant = [
|
|
10
|
+
"outline",
|
|
11
|
+
"soft",
|
|
12
|
+
"subtle",
|
|
13
|
+
"ghost",
|
|
14
|
+
"none"
|
|
15
|
+
] as const
|
|
16
|
+
|
|
17
|
+
const color = [
|
|
18
|
+
"primary",
|
|
19
|
+
"secondary",
|
|
20
|
+
"success",
|
|
21
|
+
"info",
|
|
22
|
+
"warning",
|
|
23
|
+
"error",
|
|
24
|
+
"neutral"
|
|
25
|
+
] as const
|
|
26
|
+
|
|
27
|
+
export default {
|
|
28
|
+
"slots": {
|
|
29
|
+
"root": "relative inline-flex items-center gap-1.5",
|
|
30
|
+
"base": [
|
|
31
|
+
"rounded-[calc(var(--ui-radius)*1.5)] border-0 placeholder:text-[var(--ui-text-dimmed)] text-center focus:outline-none disabled:cursor-not-allowed disabled:opacity-75",
|
|
32
|
+
"transition-colors"
|
|
33
|
+
]
|
|
34
|
+
},
|
|
35
|
+
"variants": {
|
|
36
|
+
"size": {
|
|
37
|
+
"xs": {
|
|
38
|
+
"base": "size-6 text-xs"
|
|
39
|
+
},
|
|
40
|
+
"sm": {
|
|
41
|
+
"base": "size-7 text-xs"
|
|
42
|
+
},
|
|
43
|
+
"md": {
|
|
44
|
+
"base": "size-8 text-sm"
|
|
45
|
+
},
|
|
46
|
+
"lg": {
|
|
47
|
+
"base": "size-9 text-sm"
|
|
48
|
+
},
|
|
49
|
+
"xl": {
|
|
50
|
+
"base": "size-10 text-base"
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
"variant": {
|
|
54
|
+
"outline": "text-[var(--ui-text-highlighted)] bg-[var(--ui-bg)] ring ring-inset ring-[var(--ui-border-accented)]",
|
|
55
|
+
"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",
|
|
56
|
+
"subtle": "text-[var(--ui-text-highlighted)] bg-[var(--ui-bg-elevated)] ring ring-inset ring-[var(--ui-border-accented)]",
|
|
57
|
+
"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",
|
|
58
|
+
"none": "text-[var(--ui-text-highlighted)] bg-transparent"
|
|
59
|
+
},
|
|
60
|
+
"color": {
|
|
61
|
+
"primary": "",
|
|
62
|
+
"secondary": "",
|
|
63
|
+
"success": "",
|
|
64
|
+
"info": "",
|
|
65
|
+
"warning": "",
|
|
66
|
+
"error": "",
|
|
67
|
+
"neutral": ""
|
|
68
|
+
},
|
|
69
|
+
"highlight": {
|
|
70
|
+
"true": ""
|
|
71
|
+
}
|
|
72
|
+
},
|
|
73
|
+
"compoundVariants": [
|
|
74
|
+
{
|
|
75
|
+
"color": "primary" as typeof color[number],
|
|
76
|
+
"variant": [
|
|
77
|
+
"outline" as typeof variant[number],
|
|
78
|
+
"subtle" as typeof variant[number]
|
|
79
|
+
],
|
|
80
|
+
"class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-[var(--ui-primary)]"
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
"color": "secondary" as typeof color[number],
|
|
84
|
+
"variant": [
|
|
85
|
+
"outline" as typeof variant[number],
|
|
86
|
+
"subtle" as typeof variant[number]
|
|
87
|
+
],
|
|
88
|
+
"class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-[var(--ui-secondary)]"
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
"color": "success" as typeof color[number],
|
|
92
|
+
"variant": [
|
|
93
|
+
"outline" as typeof variant[number],
|
|
94
|
+
"subtle" as typeof variant[number]
|
|
95
|
+
],
|
|
96
|
+
"class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-[var(--ui-success)]"
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
"color": "info" as typeof color[number],
|
|
100
|
+
"variant": [
|
|
101
|
+
"outline" as typeof variant[number],
|
|
102
|
+
"subtle" as typeof variant[number]
|
|
103
|
+
],
|
|
104
|
+
"class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-[var(--ui-info)]"
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
"color": "warning" as typeof color[number],
|
|
108
|
+
"variant": [
|
|
109
|
+
"outline" as typeof variant[number],
|
|
110
|
+
"subtle" as typeof variant[number]
|
|
111
|
+
],
|
|
112
|
+
"class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-[var(--ui-warning)]"
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
"color": "error" as typeof color[number],
|
|
116
|
+
"variant": [
|
|
117
|
+
"outline" as typeof variant[number],
|
|
118
|
+
"subtle" as typeof variant[number]
|
|
119
|
+
],
|
|
120
|
+
"class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-[var(--ui-error)]"
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
"color": "primary" as typeof color[number],
|
|
124
|
+
"highlight": true,
|
|
125
|
+
"class": "ring ring-inset ring-[var(--ui-primary)]"
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
"color": "secondary" as typeof color[number],
|
|
129
|
+
"highlight": true,
|
|
130
|
+
"class": "ring ring-inset ring-[var(--ui-secondary)]"
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
"color": "success" as typeof color[number],
|
|
134
|
+
"highlight": true,
|
|
135
|
+
"class": "ring ring-inset ring-[var(--ui-success)]"
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
"color": "info" as typeof color[number],
|
|
139
|
+
"highlight": true,
|
|
140
|
+
"class": "ring ring-inset ring-[var(--ui-info)]"
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
"color": "warning" as typeof color[number],
|
|
144
|
+
"highlight": true,
|
|
145
|
+
"class": "ring ring-inset ring-[var(--ui-warning)]"
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
"color": "error" as typeof color[number],
|
|
149
|
+
"highlight": true,
|
|
150
|
+
"class": "ring ring-inset ring-[var(--ui-error)]"
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
"color": "neutral" as typeof color[number],
|
|
154
|
+
"variant": [
|
|
155
|
+
"outline" as typeof variant[number],
|
|
156
|
+
"subtle" as typeof variant[number]
|
|
157
|
+
],
|
|
158
|
+
"class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-[var(--ui-border-inverted)]"
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
"color": "neutral" as typeof color[number],
|
|
162
|
+
"highlight": true,
|
|
163
|
+
"class": "ring ring-inset ring-[var(--ui-border-inverted)]"
|
|
164
|
+
}
|
|
165
|
+
],
|
|
166
|
+
"defaultVariants": {
|
|
167
|
+
"size": "md" as typeof size[number],
|
|
168
|
+
"color": "primary" as typeof color[number],
|
|
169
|
+
"variant": "outline" as typeof variant[number]
|
|
170
|
+
}
|
|
171
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
"slots": {
|
|
3
|
+
"content": "bg-[var(--ui-bg)] shadow-lg rounded-[calc(var(--ui-radius)*1.5)] ring ring-[var(--ui-border)] data-[state=open]:animate-[scale-in_100ms_ease-out] data-[state=closed]:animate-[scale-out_100ms_ease-in] focus:outline-none pointer-events-auto",
|
|
4
|
+
"arrow": "fill-[var(--ui-border)]"
|
|
5
|
+
}
|
|
6
|
+
}
|