@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,298 @@
|
|
|
1
|
+
const buttonGroup = [
|
|
2
|
+
"horizontal",
|
|
3
|
+
"vertical"
|
|
4
|
+
] as const
|
|
5
|
+
|
|
6
|
+
const size = [
|
|
7
|
+
"xs",
|
|
8
|
+
"sm",
|
|
9
|
+
"md",
|
|
10
|
+
"lg",
|
|
11
|
+
"xl"
|
|
12
|
+
] as const
|
|
13
|
+
|
|
14
|
+
const variant = [
|
|
15
|
+
"outline",
|
|
16
|
+
"soft",
|
|
17
|
+
"subtle",
|
|
18
|
+
"ghost",
|
|
19
|
+
"none"
|
|
20
|
+
] as const
|
|
21
|
+
|
|
22
|
+
const color = [
|
|
23
|
+
"primary",
|
|
24
|
+
"secondary",
|
|
25
|
+
"success",
|
|
26
|
+
"info",
|
|
27
|
+
"warning",
|
|
28
|
+
"error",
|
|
29
|
+
"neutral"
|
|
30
|
+
] as const
|
|
31
|
+
|
|
32
|
+
const type = [
|
|
33
|
+
"file"
|
|
34
|
+
] as const
|
|
35
|
+
|
|
36
|
+
export default {
|
|
37
|
+
"slots": {
|
|
38
|
+
"root": "relative inline-flex items-center",
|
|
39
|
+
"base": [
|
|
40
|
+
"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",
|
|
41
|
+
"transition-colors"
|
|
42
|
+
],
|
|
43
|
+
"leading": "absolute inset-y-0 start-0 flex items-center",
|
|
44
|
+
"leadingIcon": "shrink-0 text-[var(--ui-text-dimmed)]",
|
|
45
|
+
"leadingAvatar": "shrink-0",
|
|
46
|
+
"leadingAvatarSize": "",
|
|
47
|
+
"trailing": "absolute inset-y-0 end-0 flex items-center",
|
|
48
|
+
"trailingIcon": "shrink-0 text-[var(--ui-text-dimmed)]"
|
|
49
|
+
},
|
|
50
|
+
"variants": {
|
|
51
|
+
"buttonGroup": {
|
|
52
|
+
"horizontal": {
|
|
53
|
+
"root": "group",
|
|
54
|
+
"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"
|
|
55
|
+
},
|
|
56
|
+
"vertical": {
|
|
57
|
+
"root": "group",
|
|
58
|
+
"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"
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
"size": {
|
|
62
|
+
"xs": {
|
|
63
|
+
"base": "px-2 py-1 text-xs gap-1",
|
|
64
|
+
"leading": "ps-2",
|
|
65
|
+
"trailing": "pe-2",
|
|
66
|
+
"leadingIcon": "size-4",
|
|
67
|
+
"leadingAvatarSize": "3xs",
|
|
68
|
+
"trailingIcon": "size-4"
|
|
69
|
+
},
|
|
70
|
+
"sm": {
|
|
71
|
+
"base": "px-2.5 py-1.5 text-xs gap-1.5",
|
|
72
|
+
"leading": "ps-2.5",
|
|
73
|
+
"trailing": "pe-2.5",
|
|
74
|
+
"leadingIcon": "size-4",
|
|
75
|
+
"leadingAvatarSize": "3xs",
|
|
76
|
+
"trailingIcon": "size-4"
|
|
77
|
+
},
|
|
78
|
+
"md": {
|
|
79
|
+
"base": "px-2.5 py-1.5 text-sm gap-1.5",
|
|
80
|
+
"leading": "ps-2.5",
|
|
81
|
+
"trailing": "pe-2.5",
|
|
82
|
+
"leadingIcon": "size-5",
|
|
83
|
+
"leadingAvatarSize": "2xs",
|
|
84
|
+
"trailingIcon": "size-5"
|
|
85
|
+
},
|
|
86
|
+
"lg": {
|
|
87
|
+
"base": "px-3 py-2 text-sm gap-2",
|
|
88
|
+
"leading": "ps-3",
|
|
89
|
+
"trailing": "pe-3",
|
|
90
|
+
"leadingIcon": "size-5",
|
|
91
|
+
"leadingAvatarSize": "2xs",
|
|
92
|
+
"trailingIcon": "size-5"
|
|
93
|
+
},
|
|
94
|
+
"xl": {
|
|
95
|
+
"base": "px-3 py-2 text-base gap-2",
|
|
96
|
+
"leading": "ps-3",
|
|
97
|
+
"trailing": "pe-3",
|
|
98
|
+
"leadingIcon": "size-6",
|
|
99
|
+
"leadingAvatarSize": "xs",
|
|
100
|
+
"trailingIcon": "size-6"
|
|
101
|
+
}
|
|
102
|
+
},
|
|
103
|
+
"variant": {
|
|
104
|
+
"outline": "text-[var(--ui-text-highlighted)] bg-[var(--ui-bg)] ring ring-inset ring-[var(--ui-border-accented)]",
|
|
105
|
+
"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",
|
|
106
|
+
"subtle": "text-[var(--ui-text-highlighted)] bg-[var(--ui-bg-elevated)] ring ring-inset ring-[var(--ui-border-accented)]",
|
|
107
|
+
"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",
|
|
108
|
+
"none": "text-[var(--ui-text-highlighted)] bg-transparent"
|
|
109
|
+
},
|
|
110
|
+
"color": {
|
|
111
|
+
"primary": "",
|
|
112
|
+
"secondary": "",
|
|
113
|
+
"success": "",
|
|
114
|
+
"info": "",
|
|
115
|
+
"warning": "",
|
|
116
|
+
"error": "",
|
|
117
|
+
"neutral": ""
|
|
118
|
+
},
|
|
119
|
+
"leading": {
|
|
120
|
+
"true": ""
|
|
121
|
+
},
|
|
122
|
+
"trailing": {
|
|
123
|
+
"true": ""
|
|
124
|
+
},
|
|
125
|
+
"loading": {
|
|
126
|
+
"true": ""
|
|
127
|
+
},
|
|
128
|
+
"highlight": {
|
|
129
|
+
"true": ""
|
|
130
|
+
},
|
|
131
|
+
"type": {
|
|
132
|
+
"file": "file:me-1.5 file:font-medium file:text-[var(--ui-text-muted)] file:outline-none"
|
|
133
|
+
}
|
|
134
|
+
},
|
|
135
|
+
"compoundVariants": [
|
|
136
|
+
{
|
|
137
|
+
"color": "primary" as typeof color[number],
|
|
138
|
+
"variant": [
|
|
139
|
+
"outline" as typeof variant[number],
|
|
140
|
+
"subtle" as typeof variant[number]
|
|
141
|
+
],
|
|
142
|
+
"class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-[var(--ui-primary)]"
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
"color": "secondary" as typeof color[number],
|
|
146
|
+
"variant": [
|
|
147
|
+
"outline" as typeof variant[number],
|
|
148
|
+
"subtle" as typeof variant[number]
|
|
149
|
+
],
|
|
150
|
+
"class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-[var(--ui-secondary)]"
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
"color": "success" 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-success)]"
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
"color": "info" as typeof color[number],
|
|
162
|
+
"variant": [
|
|
163
|
+
"outline" as typeof variant[number],
|
|
164
|
+
"subtle" as typeof variant[number]
|
|
165
|
+
],
|
|
166
|
+
"class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-[var(--ui-info)]"
|
|
167
|
+
},
|
|
168
|
+
{
|
|
169
|
+
"color": "warning" as typeof color[number],
|
|
170
|
+
"variant": [
|
|
171
|
+
"outline" as typeof variant[number],
|
|
172
|
+
"subtle" as typeof variant[number]
|
|
173
|
+
],
|
|
174
|
+
"class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-[var(--ui-warning)]"
|
|
175
|
+
},
|
|
176
|
+
{
|
|
177
|
+
"color": "error" as typeof color[number],
|
|
178
|
+
"variant": [
|
|
179
|
+
"outline" as typeof variant[number],
|
|
180
|
+
"subtle" as typeof variant[number]
|
|
181
|
+
],
|
|
182
|
+
"class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-[var(--ui-error)]"
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
"color": "primary" as typeof color[number],
|
|
186
|
+
"highlight": true,
|
|
187
|
+
"class": "ring ring-inset ring-[var(--ui-primary)]"
|
|
188
|
+
},
|
|
189
|
+
{
|
|
190
|
+
"color": "secondary" as typeof color[number],
|
|
191
|
+
"highlight": true,
|
|
192
|
+
"class": "ring ring-inset ring-[var(--ui-secondary)]"
|
|
193
|
+
},
|
|
194
|
+
{
|
|
195
|
+
"color": "success" as typeof color[number],
|
|
196
|
+
"highlight": true,
|
|
197
|
+
"class": "ring ring-inset ring-[var(--ui-success)]"
|
|
198
|
+
},
|
|
199
|
+
{
|
|
200
|
+
"color": "info" as typeof color[number],
|
|
201
|
+
"highlight": true,
|
|
202
|
+
"class": "ring ring-inset ring-[var(--ui-info)]"
|
|
203
|
+
},
|
|
204
|
+
{
|
|
205
|
+
"color": "warning" as typeof color[number],
|
|
206
|
+
"highlight": true,
|
|
207
|
+
"class": "ring ring-inset ring-[var(--ui-warning)]"
|
|
208
|
+
},
|
|
209
|
+
{
|
|
210
|
+
"color": "error" as typeof color[number],
|
|
211
|
+
"highlight": true,
|
|
212
|
+
"class": "ring ring-inset ring-[var(--ui-error)]"
|
|
213
|
+
},
|
|
214
|
+
{
|
|
215
|
+
"color": "neutral" as typeof color[number],
|
|
216
|
+
"variant": [
|
|
217
|
+
"outline" as typeof variant[number],
|
|
218
|
+
"subtle" as typeof variant[number]
|
|
219
|
+
],
|
|
220
|
+
"class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-[var(--ui-border-inverted)]"
|
|
221
|
+
},
|
|
222
|
+
{
|
|
223
|
+
"color": "neutral" as typeof color[number],
|
|
224
|
+
"highlight": true,
|
|
225
|
+
"class": "ring ring-inset ring-[var(--ui-border-inverted)]"
|
|
226
|
+
},
|
|
227
|
+
{
|
|
228
|
+
"leading": true,
|
|
229
|
+
"size": "xs" as typeof size[number],
|
|
230
|
+
"class": "ps-7"
|
|
231
|
+
},
|
|
232
|
+
{
|
|
233
|
+
"leading": true,
|
|
234
|
+
"size": "sm" as typeof size[number],
|
|
235
|
+
"class": "ps-8"
|
|
236
|
+
},
|
|
237
|
+
{
|
|
238
|
+
"leading": true,
|
|
239
|
+
"size": "md" as typeof size[number],
|
|
240
|
+
"class": "ps-9"
|
|
241
|
+
},
|
|
242
|
+
{
|
|
243
|
+
"leading": true,
|
|
244
|
+
"size": "lg" as typeof size[number],
|
|
245
|
+
"class": "ps-10"
|
|
246
|
+
},
|
|
247
|
+
{
|
|
248
|
+
"leading": true,
|
|
249
|
+
"size": "xl" as typeof size[number],
|
|
250
|
+
"class": "ps-11"
|
|
251
|
+
},
|
|
252
|
+
{
|
|
253
|
+
"trailing": true,
|
|
254
|
+
"size": "xs" as typeof size[number],
|
|
255
|
+
"class": "pe-7"
|
|
256
|
+
},
|
|
257
|
+
{
|
|
258
|
+
"trailing": true,
|
|
259
|
+
"size": "sm" as typeof size[number],
|
|
260
|
+
"class": "pe-8"
|
|
261
|
+
},
|
|
262
|
+
{
|
|
263
|
+
"trailing": true,
|
|
264
|
+
"size": "md" as typeof size[number],
|
|
265
|
+
"class": "pe-9"
|
|
266
|
+
},
|
|
267
|
+
{
|
|
268
|
+
"trailing": true,
|
|
269
|
+
"size": "lg" as typeof size[number],
|
|
270
|
+
"class": "pe-10"
|
|
271
|
+
},
|
|
272
|
+
{
|
|
273
|
+
"trailing": true,
|
|
274
|
+
"size": "xl" as typeof size[number],
|
|
275
|
+
"class": "pe-11"
|
|
276
|
+
},
|
|
277
|
+
{
|
|
278
|
+
"loading": true,
|
|
279
|
+
"leading": true,
|
|
280
|
+
"class": {
|
|
281
|
+
"leadingIcon": "animate-spin"
|
|
282
|
+
}
|
|
283
|
+
},
|
|
284
|
+
{
|
|
285
|
+
"loading": true,
|
|
286
|
+
"leading": false,
|
|
287
|
+
"trailing": true,
|
|
288
|
+
"class": {
|
|
289
|
+
"trailingIcon": "animate-spin"
|
|
290
|
+
}
|
|
291
|
+
}
|
|
292
|
+
],
|
|
293
|
+
"defaultVariants": {
|
|
294
|
+
"size": "md" as typeof size[number],
|
|
295
|
+
"color": "primary" as typeof color[number],
|
|
296
|
+
"variant": "outline" as typeof variant[number]
|
|
297
|
+
}
|
|
298
|
+
}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
const color = [
|
|
2
|
+
"primary",
|
|
3
|
+
"secondary",
|
|
4
|
+
"success",
|
|
5
|
+
"info",
|
|
6
|
+
"warning",
|
|
7
|
+
"error",
|
|
8
|
+
"neutral"
|
|
9
|
+
] as const
|
|
10
|
+
|
|
11
|
+
export default {
|
|
12
|
+
"slots": {
|
|
13
|
+
"root": "relative group overflow-hidden bg-[var(--ui-bg)] shadow-lg rounded-[calc(var(--ui-radius)*2)] ring ring-[var(--ui-border)] p-4 flex gap-2.5 focus:outline-none",
|
|
14
|
+
"wrapper": "w-0 flex-1 flex flex-col gap-1",
|
|
15
|
+
"title": "text-sm font-medium text-[var(--ui-text-highlighted)]",
|
|
16
|
+
"description": "text-sm text-[var(--ui-text-muted)]",
|
|
17
|
+
"icon": "shrink-0 size-5",
|
|
18
|
+
"avatar": "shrink-0",
|
|
19
|
+
"avatarSize": "2xl",
|
|
20
|
+
"actions": "flex gap-1.5 shrink-0",
|
|
21
|
+
"progress": "absolute inset-x-0 bottom-0 h-1 z-[-1]",
|
|
22
|
+
"close": "p-0.5"
|
|
23
|
+
},
|
|
24
|
+
"variants": {
|
|
25
|
+
"color": {
|
|
26
|
+
"primary": {
|
|
27
|
+
"root": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-[var(--ui-primary)]",
|
|
28
|
+
"icon": "text-[var(--ui-primary)]",
|
|
29
|
+
"progress": "bg-[var(--ui-primary)]"
|
|
30
|
+
},
|
|
31
|
+
"secondary": {
|
|
32
|
+
"root": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-[var(--ui-secondary)]",
|
|
33
|
+
"icon": "text-[var(--ui-secondary)]",
|
|
34
|
+
"progress": "bg-[var(--ui-secondary)]"
|
|
35
|
+
},
|
|
36
|
+
"success": {
|
|
37
|
+
"root": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-[var(--ui-success)]",
|
|
38
|
+
"icon": "text-[var(--ui-success)]",
|
|
39
|
+
"progress": "bg-[var(--ui-success)]"
|
|
40
|
+
},
|
|
41
|
+
"info": {
|
|
42
|
+
"root": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-[var(--ui-info)]",
|
|
43
|
+
"icon": "text-[var(--ui-info)]",
|
|
44
|
+
"progress": "bg-[var(--ui-info)]"
|
|
45
|
+
},
|
|
46
|
+
"warning": {
|
|
47
|
+
"root": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-[var(--ui-warning)]",
|
|
48
|
+
"icon": "text-[var(--ui-warning)]",
|
|
49
|
+
"progress": "bg-[var(--ui-warning)]"
|
|
50
|
+
},
|
|
51
|
+
"error": {
|
|
52
|
+
"root": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-[var(--ui-error)]",
|
|
53
|
+
"icon": "text-[var(--ui-error)]",
|
|
54
|
+
"progress": "bg-[var(--ui-error)]"
|
|
55
|
+
},
|
|
56
|
+
"neutral": {
|
|
57
|
+
"root": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-[var(--ui-border-inverted)]",
|
|
58
|
+
"icon": "text-[var(--ui-text-highlighted)]",
|
|
59
|
+
"progress": "bg-[var(--ui-bg-inverted)]"
|
|
60
|
+
}
|
|
61
|
+
},
|
|
62
|
+
"multiline": {
|
|
63
|
+
"true": {
|
|
64
|
+
"root": "items-start",
|
|
65
|
+
"actions": "items-start mt-1"
|
|
66
|
+
},
|
|
67
|
+
"false": {
|
|
68
|
+
"root": "items-center",
|
|
69
|
+
"actions": "items-center"
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
},
|
|
73
|
+
"defaultVariants": {
|
|
74
|
+
"color": "primary" as typeof color[number]
|
|
75
|
+
}
|
|
76
|
+
}
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
const position = [
|
|
2
|
+
"top-left",
|
|
3
|
+
"top-center",
|
|
4
|
+
"top-right",
|
|
5
|
+
"bottom-left",
|
|
6
|
+
"bottom-center",
|
|
7
|
+
"bottom-right"
|
|
8
|
+
] as const
|
|
9
|
+
|
|
10
|
+
const swipeDirection = [
|
|
11
|
+
"up",
|
|
12
|
+
"right",
|
|
13
|
+
"down",
|
|
14
|
+
"left"
|
|
15
|
+
] as const
|
|
16
|
+
|
|
17
|
+
export default {
|
|
18
|
+
"slots": {
|
|
19
|
+
"viewport": "fixed flex flex-col w-[calc(100%-2rem)] sm:w-96 z-[100] data-[expanded=true]:h-[var(--height)] focus:outline-none",
|
|
20
|
+
"base": "pointer-events-auto absolute inset-x-0 z-[var(--index)] transform-[var(--transform)] data-[expanded=false]:data-[front=false]:h-[var(--front-height)] data-[expanded=false]:data-[front=false]:*:invisible data-[state=closed]:animate-[toast-closed_200ms_ease-in-out] data-[state=closed]:data-[expanded=false]:data-[front=false]:animate-[toast-collapsed-closed_200ms_ease-in-out] data-[swipe=move]:transition-none transition-[transform,translate,height] duration-200 ease-out"
|
|
21
|
+
},
|
|
22
|
+
"variants": {
|
|
23
|
+
"position": {
|
|
24
|
+
"top-left": {
|
|
25
|
+
"viewport": "left-4"
|
|
26
|
+
},
|
|
27
|
+
"top-center": {
|
|
28
|
+
"viewport": "left-1/2 transform -translate-x-1/2"
|
|
29
|
+
},
|
|
30
|
+
"top-right": {
|
|
31
|
+
"viewport": "right-4"
|
|
32
|
+
},
|
|
33
|
+
"bottom-left": {
|
|
34
|
+
"viewport": "left-4"
|
|
35
|
+
},
|
|
36
|
+
"bottom-center": {
|
|
37
|
+
"viewport": "left-1/2 transform -translate-x-1/2"
|
|
38
|
+
},
|
|
39
|
+
"bottom-right": {
|
|
40
|
+
"viewport": "right-4"
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
"swipeDirection": {
|
|
44
|
+
"up": "data-[swipe=end]:animate-[toast-slide-up_200ms_ease-out]",
|
|
45
|
+
"right": "data-[swipe=end]:animate-[toast-slide-right_200ms_ease-out]",
|
|
46
|
+
"down": "data-[swipe=end]:animate-[toast-slide-down_200ms_ease-out]",
|
|
47
|
+
"left": "data-[swipe=end]:animate-[toast-slide-left_200ms_ease-out]"
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
"compoundVariants": [
|
|
51
|
+
{
|
|
52
|
+
"position": [
|
|
53
|
+
"top-left" as typeof position[number],
|
|
54
|
+
"top-center" as typeof position[number],
|
|
55
|
+
"top-right" as typeof position[number]
|
|
56
|
+
],
|
|
57
|
+
"class": {
|
|
58
|
+
"viewport": "top-4",
|
|
59
|
+
"base": "top-0 data-[state=open]:animate-[slide-in-from-top_200ms_ease-in-out]"
|
|
60
|
+
}
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"position": [
|
|
64
|
+
"bottom-left" as typeof position[number],
|
|
65
|
+
"bottom-center" as typeof position[number],
|
|
66
|
+
"bottom-right" as typeof position[number]
|
|
67
|
+
],
|
|
68
|
+
"class": {
|
|
69
|
+
"viewport": "bottom-4",
|
|
70
|
+
"base": "bottom-0 data-[state=open]:animate-[slide-in-from-bottom_200ms_ease-in-out]"
|
|
71
|
+
}
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"swipeDirection": [
|
|
75
|
+
"left" as typeof swipeDirection[number],
|
|
76
|
+
"right" as typeof swipeDirection[number]
|
|
77
|
+
],
|
|
78
|
+
"class": "data-[swipe=move]:translate-x-[var(--reka-toast-swipe-move-x)] data-[swipe=end]:translate-x-[var(--reka-toast-swipe-end-x)] data-[swipe=cancel]:translate-x-0"
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
"swipeDirection": [
|
|
82
|
+
"up" as typeof swipeDirection[number],
|
|
83
|
+
"down" as typeof swipeDirection[number]
|
|
84
|
+
],
|
|
85
|
+
"class": "data-[swipe=move]:translate-y-[var(--reka-toast-swipe-move-y)] data-[swipe=end]:translate-y-[var(--reka-toast-swipe-end-y)] data-[swipe=cancel]:translate-y-0"
|
|
86
|
+
}
|
|
87
|
+
],
|
|
88
|
+
"defaultVariants": {
|
|
89
|
+
"position": "bottom-right" as typeof position[number]
|
|
90
|
+
}
|
|
91
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
"slots": {
|
|
3
|
+
"content": "flex items-center gap-1 bg-[var(--ui-bg)] text-[var(--ui-text-highlighted)] shadow-sm rounded-[var(--ui-radius)] ring ring-[var(--ui-border)] h-6 px-2 py-1 text-xs select-none data-[state=delayed-open]:animate-[scale-in_100ms_ease-out] data-[state=closed]:animate-[scale-out_100ms_ease-in] pointer-events-auto",
|
|
4
|
+
"arrow": "fill-[var(--ui-border)]",
|
|
5
|
+
"text": "truncate",
|
|
6
|
+
"kbds": "hidden lg:inline-flex items-center shrink-0 gap-0.5 before:content-['·'] before:me-0.5",
|
|
7
|
+
"kbdsSize": "sm"
|
|
8
|
+
}
|
|
9
|
+
}
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
[](https://ui.nuxt.com)
|
|
2
2
|
|
|
3
3
|
# Nuxt UI
|
|
4
4
|
|
|
@@ -7,94 +7,122 @@
|
|
|
7
7
|
[![License][license-src]][license-href]
|
|
8
8
|
[![Nuxt][nuxt-src]][nuxt-href]
|
|
9
9
|
|
|
10
|
-
Nuxt UI
|
|
10
|
+
We're thrilled to introduce Nuxt UI v3, a significant upgrade to our UI library that delivers extensive improvements and robust new capabilities. This major update harnesses the combined strengths of [Reka UI](https://reka-ui.com/), [Tailwind CSS v4](https://tailwindcss.com/docs/v4-beta), and [Tailwind Variants](https://www.tailwind-variants.org/) to offer developers an unparalleled set of tools for creating sophisticated, accessible, and highly performant user interfaces.
|
|
11
11
|
|
|
12
|
-
|
|
12
|
+
> [!NOTE]
|
|
13
|
+
> You are on the `v3` development branch, check out the [dev branch](https://github.com/nuxt/ui/tree/dev) for Nuxt UI v2.
|
|
13
14
|
|
|
14
|
-
##
|
|
15
|
-
|
|
16
|
-
- Built with [Headless UI](https://headlessui.dev/) and [Tailwind CSS](https://tailwindcss.com/)
|
|
17
|
-
- HMR support through Nuxt App Config
|
|
18
|
-
- Dark mode support
|
|
19
|
-
- Support for LTR and RTL languages
|
|
20
|
-
- Keyboard shortcuts
|
|
21
|
-
- Bundled icons
|
|
22
|
-
- Fully typed
|
|
23
|
-
- [Figma Kit](https://www.figma.com/community/file/1288455405058138934)
|
|
15
|
+
## Documentation
|
|
24
16
|
|
|
25
|
-
|
|
17
|
+
Visit https://ui3.nuxt.dev to explore the documentation.
|
|
26
18
|
|
|
27
19
|
## Installation
|
|
28
20
|
|
|
29
|
-
```bash
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
yarn
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
21
|
+
```bash [pnpm]
|
|
22
|
+
pnpm add @nuxt/ui@next
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
```bash [yarn]
|
|
26
|
+
yarn add @nuxt/ui@next
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
```bash [npm]
|
|
30
|
+
npm install @nuxt/ui@next
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
```bash [bun]
|
|
34
|
+
bun add @nuxt/ui@next
|
|
38
35
|
```
|
|
39
36
|
|
|
40
|
-
|
|
37
|
+
### Nuxt
|
|
41
38
|
|
|
42
|
-
|
|
39
|
+
1. Add the Nuxt UI module in your `nuxt.config.ts`:
|
|
40
|
+
|
|
41
|
+
```ts [nuxt.config.ts]
|
|
43
42
|
export default defineNuxtConfig({
|
|
44
|
-
modules: [
|
|
45
|
-
|
|
43
|
+
modules: ['@nuxt/ui']
|
|
44
|
+
})
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
2. Import Tailwind CSS and Nuxt UI in your CSS:
|
|
48
|
+
|
|
49
|
+
```css [assets/css/main.css]
|
|
50
|
+
@import "tailwindcss";
|
|
51
|
+
@import "@nuxt/ui";
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
Learn more in the [installation guide](https://ui3.nuxt.dev/getting-started/installation/nuxt).
|
|
55
|
+
|
|
56
|
+
### Vue
|
|
57
|
+
|
|
58
|
+
1. Add the Nuxt UI Vite plugin in your `vite.config.ts`:
|
|
59
|
+
|
|
60
|
+
```ts [vite.config.ts]
|
|
61
|
+
import { defineConfig } from 'vite'
|
|
62
|
+
import vue from '@vitejs/plugin-vue'
|
|
63
|
+
import ui from '@nuxt/ui/vite'
|
|
64
|
+
|
|
65
|
+
export default defineConfig({
|
|
66
|
+
plugins: [
|
|
67
|
+
vue(),
|
|
68
|
+
ui()
|
|
46
69
|
]
|
|
47
70
|
})
|
|
48
71
|
```
|
|
49
72
|
|
|
50
|
-
|
|
73
|
+
2. Use the Nuxt UI Vue plugin in your `main.ts`:
|
|
74
|
+
|
|
75
|
+
```ts [main.ts]
|
|
76
|
+
import { createApp } from 'vue'
|
|
77
|
+
import { createRouter, createWebHistory } from 'vue-router'
|
|
78
|
+
import ui from '@nuxt/ui/vue-plugin'
|
|
79
|
+
import App from './App.vue'
|
|
80
|
+
|
|
81
|
+
const app = createApp(App)
|
|
82
|
+
|
|
83
|
+
const router = createRouter({
|
|
84
|
+
routes: [],
|
|
85
|
+
history: createWebHistory()
|
|
86
|
+
})
|
|
87
|
+
|
|
88
|
+
app.use(router)
|
|
89
|
+
app.use(ui)
|
|
51
90
|
|
|
52
|
-
|
|
53
|
-
{
|
|
54
|
-
"devDependencies": {
|
|
55
|
-
"@nuxt/ui": "npm:@nuxt/ui-edge@latest"
|
|
56
|
-
}
|
|
57
|
-
}
|
|
91
|
+
app.mount('#app')
|
|
58
92
|
```
|
|
59
93
|
|
|
60
|
-
|
|
94
|
+
3. Import Tailwind CSS and Nuxt UI in your CSS:
|
|
95
|
+
|
|
96
|
+
```css [assets/main.css]
|
|
97
|
+
@import "tailwindcss";
|
|
98
|
+
@import "@nuxt/ui";
|
|
99
|
+
```
|
|
61
100
|
|
|
62
|
-
|
|
101
|
+
Learn more in the [installation guide](https://ui3.nuxt.dev/getting-started/installation/vue).
|
|
63
102
|
|
|
64
103
|
## Credits
|
|
65
104
|
|
|
66
105
|
- [nuxt/nuxt](https://github.com/nuxt/nuxt)
|
|
106
|
+
- [nuxt/icon](https://github.com/nuxt/icon)
|
|
107
|
+
- [nuxt/fonts](https://github.com/nuxt/fonts)
|
|
67
108
|
- [nuxt-modules/color-mode](https://github.com/nuxt-modules/color-mode)
|
|
68
|
-
- [
|
|
109
|
+
- [unovue/reka-ui](https://github.com/unovue/reka-ui)
|
|
69
110
|
- [tailwindlabs/tailwindcss](https://github.com/tailwindlabs/tailwindcss)
|
|
70
|
-
- [tailwindlabs/headlessui](https://github.com/tailwindlabs/headlessui)
|
|
71
111
|
- [vueuse/vueuse](https://github.com/vueuse/vueuse)
|
|
72
|
-
- [egoist/tailwindcss-icons](https://github.com/egoist/tailwindcss-icons)
|
|
73
|
-
|
|
74
|
-
## Contributing
|
|
75
|
-
|
|
76
|
-
Thank you for considering contributing to Nuxt UI. Here are a few ways you can get involved:
|
|
77
|
-
|
|
78
|
-
- Reporting Bugs: If you come across any bugs or issues, please check out the reporting bugs guide to learn how to submit a bug report.
|
|
79
|
-
- Suggestions: Have any thoughts to enhance Nuxt UI? We'd love to hear them! Check out the [contribution guide](https://ui.nuxt.com/getting-started/contributing) to share your suggestions.
|
|
80
|
-
|
|
81
|
-
## Local Development
|
|
82
|
-
|
|
83
|
-
Follow the docs to [Set up your local development environment](https://ui.nuxt.com/getting-started/contributing#_2-local-development-setup) and contribute.
|
|
84
112
|
|
|
85
113
|
## License
|
|
86
114
|
|
|
87
|
-
Licensed under the [MIT license](https://github.com/nuxt/ui/blob/
|
|
115
|
+
Licensed under the [MIT license](https://github.com/nuxt/ui/blob/v3/LICENSE.md).
|
|
88
116
|
|
|
89
117
|
<!-- Badges -->
|
|
90
|
-
[npm-version-src]: https://img.shields.io/npm/v/@nuxt/ui/
|
|
118
|
+
[npm-version-src]: https://img.shields.io/npm/v/@nuxt/ui/next.svg?style=flat&colorA=18181B&colorB=28CF8D
|
|
91
119
|
[npm-version-href]: https://npmjs.com/package/@nuxt/ui
|
|
92
120
|
|
|
93
121
|
[npm-downloads-src]: https://img.shields.io/npm/dm/@nuxt/ui.svg?style=flat&colorA=18181B&colorB=28CF8D
|
|
94
|
-
[npm-downloads-href]: https://
|
|
122
|
+
[npm-downloads-href]: https://npm.chart.dev/@nuxt/ui
|
|
95
123
|
|
|
96
124
|
[license-src]: https://img.shields.io/github/license/nuxt/ui.svg?style=flat&colorA=18181B&colorB=28CF8D
|
|
97
|
-
[license-href]: https://github.com/nuxt/ui/blob/
|
|
125
|
+
[license-href]: https://github.com/nuxt/ui/blob/v3/LICENSE.md
|
|
98
126
|
|
|
99
127
|
[nuxt-src]: https://img.shields.io/badge/Nuxt-18181B?logo=nuxt.js
|
|
100
128
|
[nuxt-href]: https://nuxt.com
|