@nuxt/ui 4.7.0 → 4.8.0
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.css → ui.static.css} +0 -10
- package/LICENSE.md +1 -1
- package/cli/commands/make/component.mjs +6 -2
- package/cli/templates.mjs +46 -20
- package/cli/utils.mjs +19 -0
- package/dist/module.json +1 -1
- package/dist/module.mjs +4 -4
- package/dist/runtime/components/Accordion.vue +15 -14
- package/dist/runtime/components/Alert.vue +20 -20
- package/dist/runtime/components/AuthForm.vue +37 -37
- package/dist/runtime/components/Avatar.d.vue.ts +4 -0
- package/dist/runtime/components/Avatar.vue +14 -12
- package/dist/runtime/components/Avatar.vue.d.ts +4 -0
- package/dist/runtime/components/AvatarGroup.d.vue.ts +4 -0
- package/dist/runtime/components/AvatarGroup.vue +11 -8
- package/dist/runtime/components/AvatarGroup.vue.d.ts +4 -0
- package/dist/runtime/components/Badge.vue +11 -11
- package/dist/runtime/components/Banner.vue +25 -23
- package/dist/runtime/components/BlogPost.d.vue.ts +1 -1
- package/dist/runtime/components/BlogPost.vue +30 -28
- package/dist/runtime/components/BlogPost.vue.d.ts +1 -1
- package/dist/runtime/components/BlogPosts.vue +6 -6
- package/dist/runtime/components/Breadcrumb.d.vue.ts +4 -0
- package/dist/runtime/components/Breadcrumb.vue +21 -18
- package/dist/runtime/components/Breadcrumb.vue.d.ts +4 -0
- package/dist/runtime/components/Button.vue +17 -16
- package/dist/runtime/components/Calendar.vue +21 -20
- package/dist/runtime/components/Card.vue +11 -11
- package/dist/runtime/components/Carousel.vue +23 -22
- package/dist/runtime/components/ChangelogVersion.vue +31 -29
- package/dist/runtime/components/ChangelogVersions.vue +8 -8
- package/dist/runtime/components/ChatMessage.d.vue.ts +6 -0
- package/dist/runtime/components/ChatMessage.vue +46 -36
- package/dist/runtime/components/ChatMessage.vue.d.ts +6 -0
- package/dist/runtime/components/ChatMessages.vue +14 -14
- package/dist/runtime/components/ChatPalette.vue +6 -6
- package/dist/runtime/components/ChatPrompt.d.vue.ts +7 -0
- package/dist/runtime/components/ChatPrompt.vue +22 -12
- package/dist/runtime/components/ChatPrompt.vue.d.ts +7 -0
- package/dist/runtime/components/ChatPromptSubmit.d.vue.ts +3 -3
- package/dist/runtime/components/ChatPromptSubmit.vue +6 -6
- package/dist/runtime/components/ChatPromptSubmit.vue.d.ts +3 -3
- package/dist/runtime/components/ChatReasoning.vue +20 -20
- package/dist/runtime/components/ChatShimmer.vue +7 -7
- package/dist/runtime/components/ChatTool.d.vue.ts +1 -1
- package/dist/runtime/components/ChatTool.vue +19 -19
- package/dist/runtime/components/ChatTool.vue.d.ts +1 -1
- package/dist/runtime/components/Checkbox.d.vue.ts +2 -0
- package/dist/runtime/components/Checkbox.vue +25 -24
- package/dist/runtime/components/Checkbox.vue.d.ts +2 -0
- package/dist/runtime/components/CheckboxGroup.d.vue.ts +1 -1
- package/dist/runtime/components/CheckboxGroup.vue +17 -14
- package/dist/runtime/components/CheckboxGroup.vue.d.ts +1 -1
- package/dist/runtime/components/Chip.vue +8 -8
- package/dist/runtime/components/Collapsible.vue +8 -7
- package/dist/runtime/components/ColorPicker.d.vue.ts +2 -0
- package/dist/runtime/components/ColorPicker.vue +10 -10
- package/dist/runtime/components/ColorPicker.vue.d.ts +2 -0
- package/dist/runtime/components/CommandPalette.d.vue.ts +5 -5
- package/dist/runtime/components/CommandPalette.vue +92 -69
- package/dist/runtime/components/CommandPalette.vue.d.ts +5 -5
- package/dist/runtime/components/Container.vue +4 -4
- package/dist/runtime/components/ContextMenu.vue +16 -15
- package/dist/runtime/components/DashboardGroup.d.vue.ts +1 -1
- package/dist/runtime/components/DashboardGroup.vue +6 -4
- package/dist/runtime/components/DashboardGroup.vue.d.ts +1 -1
- package/dist/runtime/components/DashboardNavbar.vue +16 -16
- package/dist/runtime/components/DashboardPanel.vue +7 -7
- package/dist/runtime/components/DashboardResizeHandle.vue +5 -5
- package/dist/runtime/components/DashboardSearch.d.vue.ts +16 -1
- package/dist/runtime/components/DashboardSearch.vue +13 -11
- package/dist/runtime/components/DashboardSearch.vue.d.ts +16 -1
- package/dist/runtime/components/DashboardSearchButton.d.vue.ts +2 -2
- package/dist/runtime/components/DashboardSearchButton.vue +15 -15
- package/dist/runtime/components/DashboardSearchButton.vue.d.ts +2 -2
- package/dist/runtime/components/DashboardSidebar.d.vue.ts +1 -1
- package/dist/runtime/components/DashboardSidebar.vue +22 -22
- package/dist/runtime/components/DashboardSidebar.vue.d.ts +1 -1
- package/dist/runtime/components/DashboardSidebarCollapse.d.vue.ts +1 -1
- package/dist/runtime/components/DashboardSidebarCollapse.vue +5 -5
- package/dist/runtime/components/DashboardSidebarCollapse.vue.d.ts +1 -1
- package/dist/runtime/components/DashboardSidebarToggle.d.vue.ts +1 -1
- package/dist/runtime/components/DashboardSidebarToggle.vue +5 -5
- package/dist/runtime/components/DashboardSidebarToggle.vue.d.ts +1 -1
- package/dist/runtime/components/DashboardToolbar.vue +6 -6
- package/dist/runtime/components/Drawer.d.vue.ts +1 -1
- package/dist/runtime/components/Drawer.vue +23 -22
- package/dist/runtime/components/Drawer.vue.d.ts +1 -1
- package/dist/runtime/components/DropdownMenu.vue +21 -20
- package/dist/runtime/components/Editor.vue +8 -7
- package/dist/runtime/components/EditorDragHandle.d.vue.ts +2 -2
- package/dist/runtime/components/EditorDragHandle.vue +8 -8
- package/dist/runtime/components/EditorDragHandle.vue.d.ts +2 -2
- package/dist/runtime/components/EditorToolbar.vue +10 -9
- package/dist/runtime/components/Empty.vue +14 -14
- package/dist/runtime/components/Error.d.vue.ts +9 -1
- package/dist/runtime/components/Error.vue +17 -10
- package/dist/runtime/components/Error.vue.d.ts +9 -1
- package/dist/runtime/components/FieldGroup.vue +4 -4
- package/dist/runtime/components/FileUpload.vue +36 -37
- package/dist/runtime/components/Footer.vue +10 -10
- package/dist/runtime/components/FooterColumns.vue +15 -15
- package/dist/runtime/components/Form.d.vue.ts +1 -1
- package/dist/runtime/components/Form.vue +5 -5
- package/dist/runtime/components/Form.vue.d.ts +1 -1
- package/dist/runtime/components/FormField.d.vue.ts +2 -1
- package/dist/runtime/components/FormField.vue +21 -21
- package/dist/runtime/components/FormField.vue.d.ts +2 -1
- package/dist/runtime/components/Header.vue +19 -19
- package/dist/runtime/components/Input.vue +19 -19
- package/dist/runtime/components/InputDate.vue +21 -20
- package/dist/runtime/components/InputMenu.d.vue.ts +52 -51
- package/dist/runtime/components/InputMenu.vue +66 -63
- package/dist/runtime/components/InputMenu.vue.d.ts +52 -51
- package/dist/runtime/components/InputNumber.vue +25 -24
- package/dist/runtime/components/InputTags.vue +26 -25
- package/dist/runtime/components/InputTime.vue +21 -20
- package/dist/runtime/components/Kbd.vue +5 -5
- package/dist/runtime/components/Link.d.vue.ts +11 -2
- package/dist/runtime/components/Link.vue +13 -4
- package/dist/runtime/components/Link.vue.d.ts +11 -2
- package/dist/runtime/components/Listbox.d.vue.ts +13 -9
- package/dist/runtime/components/Listbox.vue +34 -32
- package/dist/runtime/components/Listbox.vue.d.ts +13 -9
- package/dist/runtime/components/Main.vue +4 -4
- package/dist/runtime/components/Marquee.vue +5 -5
- package/dist/runtime/components/Modal.d.vue.ts +2 -2
- package/dist/runtime/components/Modal.vue +25 -24
- package/dist/runtime/components/Modal.vue.d.ts +2 -2
- package/dist/runtime/components/NavigationMenu.vue +66 -65
- package/dist/runtime/components/Page.vue +7 -7
- package/dist/runtime/components/PageAnchors.vue +11 -11
- package/dist/runtime/components/PageAside.vue +9 -9
- package/dist/runtime/components/PageBody.vue +4 -4
- package/dist/runtime/components/PageCTA.vue +18 -16
- package/dist/runtime/components/PageCard.vue +25 -23
- package/dist/runtime/components/PageColumns.vue +4 -4
- package/dist/runtime/components/PageFeature.vue +17 -15
- package/dist/runtime/components/PageGrid.vue +4 -4
- package/dist/runtime/components/PageHeader.vue +14 -14
- package/dist/runtime/components/PageHero.vue +20 -18
- package/dist/runtime/components/PageLinks.vue +12 -12
- package/dist/runtime/components/PageList.vue +4 -4
- package/dist/runtime/components/PageLogos.vue +16 -16
- package/dist/runtime/components/PageSection.d.vue.ts +1 -1
- package/dist/runtime/components/PageSection.vue +24 -22
- package/dist/runtime/components/PageSection.vue.d.ts +1 -1
- package/dist/runtime/components/Pagination.d.vue.ts +2 -2
- package/dist/runtime/components/Pagination.vue +23 -22
- package/dist/runtime/components/Pagination.vue.d.ts +2 -2
- package/dist/runtime/components/PinInput.vue +15 -14
- package/dist/runtime/components/Popover.vue +9 -8
- package/dist/runtime/components/PricingPlan.vue +36 -36
- package/dist/runtime/components/PricingPlans.vue +6 -6
- package/dist/runtime/components/PricingTable.vue +44 -44
- package/dist/runtime/components/Progress.d.vue.ts +1 -1
- package/dist/runtime/components/Progress.vue +12 -11
- package/dist/runtime/components/Progress.vue.d.ts +1 -1
- package/dist/runtime/components/RadioGroup.d.vue.ts +2 -0
- package/dist/runtime/components/RadioGroup.vue +28 -27
- package/dist/runtime/components/RadioGroup.vue.d.ts +2 -0
- package/dist/runtime/components/ScrollArea.vue +13 -13
- package/dist/runtime/components/Select.vue +38 -40
- package/dist/runtime/components/SelectMenu.d.vue.ts +46 -46
- package/dist/runtime/components/SelectMenu.vue +49 -48
- package/dist/runtime/components/SelectMenu.vue.d.ts +46 -46
- package/dist/runtime/components/Separator.d.vue.ts +9 -3
- package/dist/runtime/components/Separator.vue +29 -16
- package/dist/runtime/components/Separator.vue.d.ts +9 -3
- package/dist/runtime/components/Sidebar.vue +28 -28
- package/dist/runtime/components/Skeleton.vue +5 -5
- package/dist/runtime/components/Slideover.d.vue.ts +3 -3
- package/dist/runtime/components/Slideover.vue +24 -23
- package/dist/runtime/components/Slideover.vue.d.ts +3 -3
- package/dist/runtime/components/Slider.vue +16 -15
- package/dist/runtime/components/Stepper.vue +19 -18
- package/dist/runtime/components/Switch.d.vue.ts +2 -0
- package/dist/runtime/components/Switch.vue +26 -23
- package/dist/runtime/components/Switch.vue.d.ts +2 -0
- package/dist/runtime/components/Table.vue +26 -25
- package/dist/runtime/components/Tabs.vue +22 -21
- package/dist/runtime/components/Textarea.vue +19 -18
- package/dist/runtime/components/Theme.d.vue.ts +13 -5
- package/dist/runtime/components/Theme.vue +32 -4
- package/dist/runtime/components/Theme.vue.d.ts +13 -5
- package/dist/runtime/components/Timeline.vue +15 -15
- package/dist/runtime/components/Toast.vue +35 -34
- package/dist/runtime/components/Toaster.d.vue.ts +1 -1
- package/dist/runtime/components/Toaster.vue +10 -9
- package/dist/runtime/components/Toaster.vue.d.ts +1 -1
- package/dist/runtime/components/Tooltip.vue +13 -12
- package/dist/runtime/components/Tree.vue +24 -23
- package/dist/runtime/components/User.vue +23 -21
- package/dist/runtime/components/color-mode/ColorModeAvatar.vue +5 -2
- package/dist/runtime/components/color-mode/ColorModeButton.d.vue.ts +1 -1
- package/dist/runtime/components/color-mode/ColorModeButton.vue +8 -6
- package/dist/runtime/components/color-mode/ColorModeButton.vue.d.ts +1 -1
- package/dist/runtime/components/color-mode/ColorModeImage.vue +4 -2
- package/dist/runtime/components/color-mode/ColorModeSwitch.vue +1 -0
- package/dist/runtime/components/content/ContentNavigation.vue +31 -30
- package/dist/runtime/components/content/ContentSearch.d.vue.ts +30 -3
- package/dist/runtime/components/content/ContentSearch.vue +66 -32
- package/dist/runtime/components/content/ContentSearch.vue.d.ts +30 -3
- package/dist/runtime/components/content/ContentSearchButton.d.vue.ts +2 -2
- package/dist/runtime/components/content/ContentSearchButton.vue +15 -15
- package/dist/runtime/components/content/ContentSearchButton.vue.d.ts +2 -2
- package/dist/runtime/components/content/ContentSurround.vue +14 -12
- package/dist/runtime/components/content/ContentToc.vue +34 -33
- package/dist/runtime/components/prose/A.vue +4 -4
- package/dist/runtime/components/prose/Accordion.vue +4 -4
- package/dist/runtime/components/prose/AccordionItem.vue +5 -5
- package/dist/runtime/components/prose/Badge.vue +4 -4
- package/dist/runtime/components/prose/Blockquote.vue +4 -4
- package/dist/runtime/components/prose/Callout.vue +8 -8
- package/dist/runtime/components/prose/Card.vue +12 -12
- package/dist/runtime/components/prose/CardGroup.vue +4 -4
- package/dist/runtime/components/prose/Code.vue +4 -4
- package/dist/runtime/components/prose/CodeCollapse.vue +8 -8
- package/dist/runtime/components/prose/CodeGroup.vue +9 -9
- package/dist/runtime/components/prose/CodePreview.vue +6 -6
- package/dist/runtime/components/prose/CodeTree.vue +14 -14
- package/dist/runtime/components/prose/Collapsible.vue +7 -7
- package/dist/runtime/components/prose/Em.vue +4 -4
- package/dist/runtime/components/prose/Field.vue +13 -13
- package/dist/runtime/components/prose/FieldGroup.vue +4 -4
- package/dist/runtime/components/prose/H1.vue +5 -5
- package/dist/runtime/components/prose/H2.vue +7 -7
- package/dist/runtime/components/prose/H3.vue +7 -7
- package/dist/runtime/components/prose/H4.vue +5 -5
- package/dist/runtime/components/prose/Hr.vue +4 -4
- package/dist/runtime/components/prose/Icon.vue +4 -4
- package/dist/runtime/components/prose/Img.vue +17 -12
- package/dist/runtime/components/prose/Kbd.d.vue.ts +10 -2
- package/dist/runtime/components/prose/Kbd.vue +8 -5
- package/dist/runtime/components/prose/Kbd.vue.d.ts +10 -2
- package/dist/runtime/components/prose/Li.vue +4 -4
- package/dist/runtime/components/prose/Ol.vue +4 -4
- package/dist/runtime/components/prose/P.vue +4 -4
- package/dist/runtime/components/prose/Pre.vue +9 -9
- package/dist/runtime/components/prose/Prompt.vue +12 -12
- package/dist/runtime/components/prose/Steps.vue +4 -4
- package/dist/runtime/components/prose/Strong.vue +4 -4
- package/dist/runtime/components/prose/Table.vue +5 -5
- package/dist/runtime/components/prose/Tabs.vue +4 -4
- package/dist/runtime/components/prose/TabsItem.vue +5 -5
- package/dist/runtime/components/prose/Tbody.vue +4 -4
- package/dist/runtime/components/prose/Td.vue +4 -4
- package/dist/runtime/components/prose/Th.vue +4 -4
- package/dist/runtime/components/prose/Thead.vue +4 -4
- package/dist/runtime/components/prose/Tr.vue +4 -4
- package/dist/runtime/components/prose/Ul.vue +4 -4
- package/dist/runtime/composables/defineShortcuts.js +7 -2
- package/dist/runtime/composables/index.d.ts +1 -2
- package/dist/runtime/composables/index.js +1 -2
- package/dist/runtime/composables/useAvatarGroup.d.ts +12 -1
- package/dist/runtime/composables/useAvatarGroup.js +4 -2
- package/dist/runtime/composables/useComponentIcons.js +1 -1
- package/dist/runtime/composables/useComponentProps.d.ts +180 -0
- package/dist/runtime/composables/useComponentProps.js +59 -0
- package/dist/runtime/composables/useContentSearch.d.ts +4 -2
- package/dist/runtime/composables/useContentSearch.js +64 -7
- package/dist/runtime/composables/useFieldGroup.d.ts +9 -1
- package/dist/runtime/composables/useFormField.d.ts +21 -1
- package/dist/runtime/composables/useForwardProps.d.ts +13 -0
- package/dist/runtime/composables/useForwardProps.js +14 -0
- package/dist/runtime/composables/usePrefix.d.ts +6 -0
- package/dist/runtime/composables/usePrefix.js +11 -0
- package/dist/runtime/composables/useResizable.d.ts +4 -0
- package/dist/runtime/composables/useResizable.js +1 -1
- package/dist/runtime/locale/ar.js +1 -0
- package/dist/runtime/locale/az.js +1 -0
- package/dist/runtime/locale/be.js +1 -0
- package/dist/runtime/locale/bg.js +1 -0
- package/dist/runtime/locale/bn.js +1 -0
- package/dist/runtime/locale/ca.js +1 -0
- package/dist/runtime/locale/ckb.js +1 -0
- package/dist/runtime/locale/cs.js +1 -0
- package/dist/runtime/locale/da.js +1 -0
- package/dist/runtime/locale/de.js +1 -0
- package/dist/runtime/locale/de_ch.js +1 -0
- package/dist/runtime/locale/el.js +1 -0
- package/dist/runtime/locale/en.js +1 -0
- package/dist/runtime/locale/es.js +1 -0
- package/dist/runtime/locale/et.js +1 -0
- package/dist/runtime/locale/eu.js +1 -0
- package/dist/runtime/locale/fa_ir.js +1 -0
- package/dist/runtime/locale/fi.js +1 -0
- package/dist/runtime/locale/fr.js +1 -0
- package/dist/runtime/locale/gl.js +1 -0
- package/dist/runtime/locale/he.js +1 -0
- package/dist/runtime/locale/hi.js +1 -0
- package/dist/runtime/locale/hr.js +1 -0
- package/dist/runtime/locale/hu.js +1 -0
- package/dist/runtime/locale/hy.js +1 -0
- package/dist/runtime/locale/id.js +1 -0
- package/dist/runtime/locale/is.js +1 -0
- package/dist/runtime/locale/it.js +1 -0
- package/dist/runtime/locale/ja.js +1 -0
- package/dist/runtime/locale/ka.js +1 -0
- package/dist/runtime/locale/kk.js +1 -0
- package/dist/runtime/locale/km.js +1 -0
- package/dist/runtime/locale/ko.js +1 -0
- package/dist/runtime/locale/ky.js +1 -0
- package/dist/runtime/locale/lb.js +1 -0
- package/dist/runtime/locale/lo.js +1 -0
- package/dist/runtime/locale/lt.js +1 -0
- package/dist/runtime/locale/mn.js +1 -0
- package/dist/runtime/locale/ms.js +1 -0
- package/dist/runtime/locale/nb_no.js +1 -0
- package/dist/runtime/locale/nl.js +1 -0
- package/dist/runtime/locale/pl.js +1 -0
- package/dist/runtime/locale/pt.js +1 -0
- package/dist/runtime/locale/pt_br.js +1 -0
- package/dist/runtime/locale/ro.js +1 -0
- package/dist/runtime/locale/ru.js +1 -0
- package/dist/runtime/locale/sk.js +1 -0
- package/dist/runtime/locale/sl.js +1 -0
- package/dist/runtime/locale/sq.js +1 -0
- package/dist/runtime/locale/sv.js +1 -0
- package/dist/runtime/locale/th.js +1 -0
- package/dist/runtime/locale/tj.js +1 -0
- package/dist/runtime/locale/tr.js +1 -0
- package/dist/runtime/locale/ug_cn.js +1 -0
- package/dist/runtime/locale/uk.js +1 -0
- package/dist/runtime/locale/ur.js +1 -0
- package/dist/runtime/locale/uz.js +1 -0
- package/dist/runtime/locale/vi.js +1 -0
- package/dist/runtime/locale/zh_cn.js +1 -0
- package/dist/runtime/locale/zh_tw.js +1 -0
- package/dist/runtime/plugins/colors.js +1 -1
- package/dist/runtime/types/content.d.ts +1 -0
- package/dist/runtime/types/content.js +1 -0
- package/dist/runtime/types/form.d.ts +2 -2
- package/dist/runtime/types/locale.d.ts +1 -0
- package/dist/runtime/utils/dashboard.d.ts +1 -1
- package/dist/runtime/utils/link.d.ts +1 -1
- package/dist/runtime/utils/link.js +1 -0
- package/dist/runtime/utils/{fuse.d.ts → search.d.ts} +2 -1
- package/dist/runtime/utils/{fuse.js → search.js} +11 -2
- package/dist/runtime/vue/components/color-mode/ColorModeSwitch.vue +1 -0
- package/dist/runtime/vue/overrides/inertia/Link.d.vue.ts +1 -1
- package/dist/runtime/vue/overrides/inertia/Link.vue +5 -0
- package/dist/runtime/vue/overrides/inertia/Link.vue.d.ts +1 -1
- package/dist/runtime/vue/overrides/none/Link.d.vue.ts +1 -1
- package/dist/runtime/vue/overrides/none/Link.vue.d.ts +1 -1
- package/dist/runtime/vue/overrides/vue-router/Link.d.vue.ts +1 -1
- package/dist/runtime/vue/overrides/vue-router/Link.vue.d.ts +1 -1
- package/dist/shared/{ui.BIQuJqNV.mjs → ui.CoJ8bnb0.mjs} +244 -83
- package/dist/unplugin.mjs +1 -1
- package/dist/vite.mjs +1 -1
- package/package.json +27 -34
- package/dist/runtime/composables/useComponentUI.d.ts +0 -33
- package/dist/runtime/composables/useComponentUI.js +0 -13
- package/dist/runtime/composables/useResolvedVariants.d.ts +0 -21
- package/dist/runtime/composables/useResolvedVariants.js +0 -14
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nuxt/ui",
|
|
3
3
|
"description": "A UI Library for Modern Web Apps, powered by Vue & Tailwind CSS.",
|
|
4
|
-
"version": "4.
|
|
5
|
-
"packageManager": "pnpm@
|
|
4
|
+
"version": "4.8.0",
|
|
5
|
+
"packageManager": "pnpm@11.1.3",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
8
8
|
"url": "git+https://github.com/nuxt/ui.git"
|
|
@@ -91,7 +91,7 @@
|
|
|
91
91
|
}
|
|
92
92
|
},
|
|
93
93
|
"imports": {
|
|
94
|
-
"#build/ui.css": "./.nuxt/ui.css"
|
|
94
|
+
"#build/ui.css": "./.nuxt/ui.static.css"
|
|
95
95
|
},
|
|
96
96
|
"bin": {
|
|
97
97
|
"nuxt-ui": "./cli/index.mjs"
|
|
@@ -99,7 +99,7 @@
|
|
|
99
99
|
"style": "./dist/runtime/index.css",
|
|
100
100
|
"main": "./dist/module.mjs",
|
|
101
101
|
"files": [
|
|
102
|
-
".nuxt/ui.css",
|
|
102
|
+
".nuxt/ui.static.css",
|
|
103
103
|
"dist",
|
|
104
104
|
"cli",
|
|
105
105
|
"vue-plugin.d.ts"
|
|
@@ -128,17 +128,17 @@
|
|
|
128
128
|
},
|
|
129
129
|
"dependencies": {
|
|
130
130
|
"@floating-ui/dom": "^1.7.6",
|
|
131
|
-
"@iconify/vue": "^5.0.
|
|
131
|
+
"@iconify/vue": "^5.0.1",
|
|
132
132
|
"@internationalized/date": "^3.12.1",
|
|
133
133
|
"@internationalized/number": "^3.6.6",
|
|
134
134
|
"@nuxt/fonts": "^0.14.0",
|
|
135
|
-
"@nuxt/icon": "^2.2.
|
|
136
|
-
"@nuxt/kit": "^4.4.
|
|
137
|
-
"@nuxt/schema": "^4.4.
|
|
135
|
+
"@nuxt/icon": "^2.2.2",
|
|
136
|
+
"@nuxt/kit": "^4.4.6",
|
|
137
|
+
"@nuxt/schema": "^4.4.6",
|
|
138
138
|
"@nuxtjs/color-mode": "^3.5.2",
|
|
139
139
|
"@standard-schema/spec": "^1.1.0",
|
|
140
|
-
"@tailwindcss/postcss": "^4.
|
|
141
|
-
"@tailwindcss/vite": "^4.
|
|
140
|
+
"@tailwindcss/postcss": "^4.3.0",
|
|
141
|
+
"@tailwindcss/vite": "^4.3.0",
|
|
142
142
|
"@tanstack/vue-table": "^8.21.3",
|
|
143
143
|
"@tanstack/vue-virtual": "^3.13.24",
|
|
144
144
|
"@tiptap/core": "^3.22.4",
|
|
@@ -158,10 +158,10 @@
|
|
|
158
158
|
"@tiptap/starter-kit": "^3.22.4",
|
|
159
159
|
"@tiptap/suggestion": "^3.22.4",
|
|
160
160
|
"@tiptap/vue-3": "^3.22.4",
|
|
161
|
-
"@unhead/vue": "^2.1.
|
|
162
|
-
"@vueuse/core": "^14.
|
|
163
|
-
"@vueuse/integrations": "^14.
|
|
164
|
-
"@vueuse/shared": "^14.
|
|
161
|
+
"@unhead/vue": "^2.1.15",
|
|
162
|
+
"@vueuse/core": "^14.3.0",
|
|
163
|
+
"@vueuse/integrations": "^14.3.0",
|
|
164
|
+
"@vueuse/shared": "^14.3.0",
|
|
165
165
|
"colortranslator": "^5.0.0",
|
|
166
166
|
"consola": "^3.4.2",
|
|
167
167
|
"defu": "^6.1.7",
|
|
@@ -180,18 +180,18 @@
|
|
|
180
180
|
"motion-v": "^2.2.1",
|
|
181
181
|
"ohash": "^2.0.11",
|
|
182
182
|
"pathe": "^2.0.3",
|
|
183
|
-
"reka-ui": "2.9.
|
|
183
|
+
"reka-ui": "2.9.7",
|
|
184
184
|
"scule": "^1.3.0",
|
|
185
|
-
"tailwind-merge": "^3.
|
|
185
|
+
"tailwind-merge": "^3.6.0",
|
|
186
186
|
"tailwind-variants": "^3.2.2",
|
|
187
|
-
"tailwindcss": "^4.
|
|
187
|
+
"tailwindcss": "^4.3.0",
|
|
188
188
|
"tinyglobby": "^0.2.16",
|
|
189
|
-
"ufo": "^1.6.
|
|
189
|
+
"ufo": "^1.6.4",
|
|
190
190
|
"unplugin": "^3.0.0",
|
|
191
191
|
"unplugin-auto-import": "^21.0.0",
|
|
192
192
|
"unplugin-vue-components": "^32.0.0",
|
|
193
193
|
"vaul-vue": "0.4.1",
|
|
194
|
-
"vue-component-type-helpers": "^3.
|
|
194
|
+
"vue-component-type-helpers": "^3.3.0"
|
|
195
195
|
},
|
|
196
196
|
"devDependencies": {
|
|
197
197
|
"@nuxt/eslint-config": "^1.15.2",
|
|
@@ -199,20 +199,20 @@
|
|
|
199
199
|
"@nuxt/test-utils": "^4.0.2",
|
|
200
200
|
"@release-it/conventional-changelog": "^10.0.6",
|
|
201
201
|
"@tanstack/table-core": "^8.21.3",
|
|
202
|
-
"@vitejs/plugin-vue": "^6.0.
|
|
203
|
-
"@vue/test-utils": "^2.4.
|
|
204
|
-
"ai": "^6.0.
|
|
202
|
+
"@vitejs/plugin-vue": "^6.0.7",
|
|
203
|
+
"@vue/test-utils": "^2.4.10",
|
|
204
|
+
"ai": "^6.0.185",
|
|
205
205
|
"embla-carousel": "^8.6.0",
|
|
206
|
-
"eslint": "^10.
|
|
206
|
+
"eslint": "^10.4.0",
|
|
207
207
|
"happy-dom": "^20.9.0",
|
|
208
|
-
"nuxt": "^4.4.
|
|
208
|
+
"nuxt": "^4.4.6",
|
|
209
209
|
"release-it": "^19.2.4",
|
|
210
210
|
"unbuild": "^3.6.1",
|
|
211
|
-
"vitest": "^4.1.
|
|
211
|
+
"vitest": "^4.1.6",
|
|
212
212
|
"vitest-axe": "^0.1.0",
|
|
213
213
|
"vitest-environment-nuxt": "^1.0.1",
|
|
214
|
-
"vue": "^3.5.
|
|
215
|
-
"vue-tsc": "^3.
|
|
214
|
+
"vue": "^3.5.34",
|
|
215
|
+
"vue-tsc": "^3.3.0"
|
|
216
216
|
},
|
|
217
217
|
"peerDependencies": {
|
|
218
218
|
"@inertiajs/vue3": "^2.0.7 || ^3.0.0",
|
|
@@ -260,13 +260,6 @@
|
|
|
260
260
|
"optional": true
|
|
261
261
|
}
|
|
262
262
|
},
|
|
263
|
-
"resolutions": {
|
|
264
|
-
"@nuxt/kit": "^4.4.2",
|
|
265
|
-
"@nuxt/ui": "workspace:*",
|
|
266
|
-
"nitropack": "^2.13.0",
|
|
267
|
-
"unplugin": "^3.0.0",
|
|
268
|
-
"c12": "^3.3.2"
|
|
269
|
-
},
|
|
270
263
|
"keywords": [
|
|
271
264
|
"nuxt-ui",
|
|
272
265
|
"nuxt",
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import type { ComputedRef } from 'vue';
|
|
2
|
-
import type { ClassValue } from 'tailwind-variants';
|
|
3
|
-
import type { TVConfig } from '../types/tv';
|
|
4
|
-
import type * as ui from '#build/ui';
|
|
5
|
-
type UIConfig = TVConfig<typeof ui>;
|
|
6
|
-
type ExtractUISlots<C> = C extends {
|
|
7
|
-
slots?: infer S;
|
|
8
|
-
} ? NonNullable<S> : never;
|
|
9
|
-
type UIConfigSlots<T extends keyof UIConfig> = 'slots' extends keyof NonNullable<UIConfig[T]> ? ExtractUISlots<NonNullable<UIConfig[T]>> : {
|
|
10
|
-
base?: ClassValue;
|
|
11
|
-
};
|
|
12
|
-
type ThemeSlotOverrides<T> = T extends {
|
|
13
|
-
slots: infer S extends Record<string, any>;
|
|
14
|
-
} ? {
|
|
15
|
-
[K in keyof S]?: ClassValue;
|
|
16
|
-
} : {
|
|
17
|
-
[K in keyof T]?: T[K] extends Record<string, any> ? ThemeSlotOverrides<T[K]> : ClassValue;
|
|
18
|
-
};
|
|
19
|
-
export type ThemeUI = {
|
|
20
|
-
[K in keyof typeof ui]?: ThemeSlotOverrides<(typeof ui)[K]>;
|
|
21
|
-
};
|
|
22
|
-
export type ThemeRootContext = {
|
|
23
|
-
ui: ComputedRef<ThemeUI>;
|
|
24
|
-
};
|
|
25
|
-
declare const provideThemeContext: (contextValue: ThemeRootContext) => ThemeRootContext;
|
|
26
|
-
export { provideThemeContext };
|
|
27
|
-
type ComponentUIProps<T extends keyof UIConfig> = {
|
|
28
|
-
ui?: UIConfigSlots<T>;
|
|
29
|
-
};
|
|
30
|
-
export declare function useComponentUI<T extends keyof UIConfig>(name: T, props: ComponentUIProps<T>): ComputedRef<UIConfigSlots<T>>;
|
|
31
|
-
export declare function useComponentUI(name: string, props: {
|
|
32
|
-
ui?: any;
|
|
33
|
-
}): ComputedRef<any>;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { computed } from "vue";
|
|
2
|
-
import defu from "defu";
|
|
3
|
-
import { createContext } from "reka-ui";
|
|
4
|
-
import { get } from "../utils/index.js";
|
|
5
|
-
const [injectThemeContext, provideThemeContext] = createContext("UTheme", "RootContext");
|
|
6
|
-
export { provideThemeContext };
|
|
7
|
-
export function useComponentUI(name, props) {
|
|
8
|
-
const { ui } = injectThemeContext({ ui: computed(() => ({})) });
|
|
9
|
-
return computed(() => {
|
|
10
|
-
const themeOverrides = get(ui.value, name) || {};
|
|
11
|
-
return defu(props.ui ?? {}, themeOverrides);
|
|
12
|
-
});
|
|
13
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import type { ComputedRef, MaybeRefOrGetter } from 'vue';
|
|
2
|
-
/**
|
|
3
|
-
* Resolve variant values that are consumed in template logic (e.g. `<component :is="...">`).
|
|
4
|
-
*
|
|
5
|
-
* `tv()`'s `defaultVariants` only apply when computing classes — they don't affect
|
|
6
|
-
* template conditionals that read the prop directly. This mirrors tv's priority:
|
|
7
|
-
* `props[key]` > `app.config.ts` `defaultVariants[key]` > `theme.defaultVariants[key]`.
|
|
8
|
-
*
|
|
9
|
-
* @example
|
|
10
|
-
* const { variant } = useResolvedVariants('radioGroup', props, theme, ['variant'])
|
|
11
|
-
*
|
|
12
|
-
* // For nested prop paths, override with a getter:
|
|
13
|
-
* const { position } = useResolvedVariants('select', props, theme, ['position'], {
|
|
14
|
-
* position: () => props.content?.position
|
|
15
|
-
* })
|
|
16
|
-
*
|
|
17
|
-
* Related: #6360
|
|
18
|
-
*/
|
|
19
|
-
export declare function useResolvedVariants<K extends string>(name: string, props: Record<string, any>, theme: Record<string, any>, keys: K[], overrides?: Partial<Record<K, MaybeRefOrGetter<any>>>): {
|
|
20
|
-
[P in K]: ComputedRef<any>;
|
|
21
|
-
};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { computed, toValue } from "vue";
|
|
2
|
-
import { useAppConfig } from "#imports";
|
|
3
|
-
import { get } from "../utils/index.js";
|
|
4
|
-
export function useResolvedVariants(name, props, theme, keys, overrides) {
|
|
5
|
-
const appConfig = useAppConfig();
|
|
6
|
-
const result = {};
|
|
7
|
-
for (const key of keys) {
|
|
8
|
-
result[key] = computed(() => {
|
|
9
|
-
const value = overrides?.[key] !== void 0 ? toValue(overrides[key]) : get(props, key);
|
|
10
|
-
return value ?? appConfig.ui?.[name]?.defaultVariants?.[key] ?? theme.defaultVariants?.[key];
|
|
11
|
-
});
|
|
12
|
-
}
|
|
13
|
-
return result;
|
|
14
|
-
}
|