@nuxt/ui 4.6.1 → 4.7.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.
Files changed (168) hide show
  1. package/README.md +7 -4
  2. package/cli/package.json +1 -1
  3. package/dist/module.json +1 -1
  4. package/dist/module.mjs +3 -2
  5. package/dist/runtime/components/Accordion.d.vue.ts +6 -1
  6. package/dist/runtime/components/Accordion.vue +1 -1
  7. package/dist/runtime/components/Accordion.vue.d.ts +6 -1
  8. package/dist/runtime/components/AuthForm.d.vue.ts +22 -29
  9. package/dist/runtime/components/AuthForm.vue +8 -6
  10. package/dist/runtime/components/AuthForm.vue.d.ts +22 -29
  11. package/dist/runtime/components/Calendar.vue +4 -4
  12. package/dist/runtime/components/Card.d.vue.ts +4 -0
  13. package/dist/runtime/components/Card.vue +16 -2
  14. package/dist/runtime/components/Card.vue.d.ts +4 -0
  15. package/dist/runtime/components/ChatMessage.d.vue.ts +27 -17
  16. package/dist/runtime/components/ChatMessage.vue +10 -16
  17. package/dist/runtime/components/ChatMessage.vue.d.ts +27 -17
  18. package/dist/runtime/components/ChatMessages.d.vue.ts +27 -21
  19. package/dist/runtime/components/ChatMessages.vue +22 -23
  20. package/dist/runtime/components/ChatMessages.vue.d.ts +27 -21
  21. package/dist/runtime/components/ChatPromptSubmit.vue +3 -1
  22. package/dist/runtime/components/Checkbox.vue +5 -3
  23. package/dist/runtime/components/CommandPalette.d.vue.ts +18 -3
  24. package/dist/runtime/components/CommandPalette.vue +11 -7
  25. package/dist/runtime/components/CommandPalette.vue.d.ts +18 -3
  26. package/dist/runtime/components/ContextMenuContent.vue +68 -65
  27. package/dist/runtime/components/DashboardSearch.d.vue.ts +8 -37
  28. package/dist/runtime/components/DashboardSearch.vue +11 -10
  29. package/dist/runtime/components/DashboardSearch.vue.d.ts +8 -37
  30. package/dist/runtime/components/DashboardSidebar.vue +1 -5
  31. package/dist/runtime/components/Drawer.vue +44 -41
  32. package/dist/runtime/components/DropdownMenuContent.vue +90 -87
  33. package/dist/runtime/components/EditorEmojiMenu.d.vue.ts +1 -1
  34. package/dist/runtime/components/EditorEmojiMenu.vue +2 -0
  35. package/dist/runtime/components/EditorEmojiMenu.vue.d.ts +1 -1
  36. package/dist/runtime/components/EditorMentionMenu.d.vue.ts +1 -1
  37. package/dist/runtime/components/EditorMentionMenu.vue +2 -0
  38. package/dist/runtime/components/EditorMentionMenu.vue.d.ts +1 -1
  39. package/dist/runtime/components/EditorSuggestionMenu.d.vue.ts +1 -1
  40. package/dist/runtime/components/EditorSuggestionMenu.vue +2 -0
  41. package/dist/runtime/components/EditorSuggestionMenu.vue.d.ts +1 -1
  42. package/dist/runtime/components/FileUpload.vue +7 -5
  43. package/dist/runtime/components/Header.vue +1 -5
  44. package/dist/runtime/components/Input.vue +2 -2
  45. package/dist/runtime/components/InputDate.vue +6 -6
  46. package/dist/runtime/components/InputMenu.d.vue.ts +3 -3
  47. package/dist/runtime/components/InputMenu.vue +40 -38
  48. package/dist/runtime/components/InputMenu.vue.d.ts +3 -3
  49. package/dist/runtime/components/InputNumber.vue +2 -2
  50. package/dist/runtime/components/InputTags.vue +2 -2
  51. package/dist/runtime/components/InputTime.vue +2 -2
  52. package/dist/runtime/components/Link.vue +64 -8
  53. package/dist/runtime/components/Listbox.d.vue.ts +228 -0
  54. package/dist/runtime/components/Listbox.vue +242 -0
  55. package/dist/runtime/components/Listbox.vue.d.ts +228 -0
  56. package/dist/runtime/components/Modal.vue +13 -10
  57. package/dist/runtime/components/Popover.vue +7 -4
  58. package/dist/runtime/components/PricingTable.vue +60 -58
  59. package/dist/runtime/components/RadioGroup.vue +5 -3
  60. package/dist/runtime/components/Select.d.vue.ts +1 -1
  61. package/dist/runtime/components/Select.vue +84 -73
  62. package/dist/runtime/components/Select.vue.d.ts +1 -1
  63. package/dist/runtime/components/SelectMenu.d.vue.ts +3 -3
  64. package/dist/runtime/components/SelectMenu.vue +54 -52
  65. package/dist/runtime/components/SelectMenu.vue.d.ts +3 -3
  66. package/dist/runtime/components/Sidebar.vue +1 -4
  67. package/dist/runtime/components/Slideover.vue +67 -64
  68. package/dist/runtime/components/Table.d.vue.ts +1 -2
  69. package/dist/runtime/components/Table.vue +17 -29
  70. package/dist/runtime/components/Table.vue.d.ts +1 -2
  71. package/dist/runtime/components/Tabs.d.vue.ts +5 -1
  72. package/dist/runtime/components/Tabs.vue +2 -2
  73. package/dist/runtime/components/Tabs.vue.d.ts +5 -1
  74. package/dist/runtime/components/Textarea.d.vue.ts +1 -0
  75. package/dist/runtime/components/Textarea.vue +2 -1
  76. package/dist/runtime/components/Textarea.vue.d.ts +1 -0
  77. package/dist/runtime/components/Tooltip.vue +12 -9
  78. package/dist/runtime/components/content/ContentSearch.d.vue.ts +19 -35
  79. package/dist/runtime/components/content/ContentSearch.vue +10 -9
  80. package/dist/runtime/components/content/ContentSearch.vue.d.ts +19 -35
  81. package/dist/runtime/components/content/ContentToc.vue +19 -9
  82. package/dist/runtime/components/prose/Img.vue +2 -1
  83. package/dist/runtime/components/prose/Pre.vue +8 -3
  84. package/dist/runtime/components/prose/Prompt.d.vue.ts +32 -0
  85. package/dist/runtime/components/prose/Prompt.vue +88 -0
  86. package/dist/runtime/components/prose/Prompt.vue.d.ts +32 -0
  87. package/dist/runtime/composables/index.d.ts +1 -0
  88. package/dist/runtime/composables/index.js +1 -0
  89. package/dist/runtime/composables/useContentSearch.js +19 -5
  90. package/dist/runtime/composables/useEditorMenu.d.ts +5 -0
  91. package/dist/runtime/composables/useEditorMenu.js +3 -1
  92. package/dist/runtime/composables/useFieldGroup.d.ts +3 -0
  93. package/dist/runtime/composables/useFieldGroup.js +11 -1
  94. package/dist/runtime/composables/useResolvedVariants.d.ts +21 -0
  95. package/dist/runtime/composables/useResolvedVariants.js +14 -0
  96. package/dist/runtime/locale/ar.js +9 -0
  97. package/dist/runtime/locale/az.js +9 -0
  98. package/dist/runtime/locale/be.js +9 -0
  99. package/dist/runtime/locale/bg.js +9 -0
  100. package/dist/runtime/locale/bn.js +9 -0
  101. package/dist/runtime/locale/ca.js +9 -0
  102. package/dist/runtime/locale/ckb.js +10 -1
  103. package/dist/runtime/locale/cs.js +9 -0
  104. package/dist/runtime/locale/da.js +9 -0
  105. package/dist/runtime/locale/de.js +9 -0
  106. package/dist/runtime/locale/de_ch.js +9 -0
  107. package/dist/runtime/locale/el.js +9 -0
  108. package/dist/runtime/locale/en.js +10 -1
  109. package/dist/runtime/locale/es.js +9 -0
  110. package/dist/runtime/locale/et.js +9 -0
  111. package/dist/runtime/locale/eu.js +11 -2
  112. package/dist/runtime/locale/fa_ir.js +9 -0
  113. package/dist/runtime/locale/fi.js +9 -0
  114. package/dist/runtime/locale/fr.js +9 -0
  115. package/dist/runtime/locale/gl.js +9 -0
  116. package/dist/runtime/locale/he.js +9 -0
  117. package/dist/runtime/locale/hi.js +9 -0
  118. package/dist/runtime/locale/hr.js +9 -0
  119. package/dist/runtime/locale/hu.js +9 -0
  120. package/dist/runtime/locale/hy.js +9 -0
  121. package/dist/runtime/locale/id.js +9 -0
  122. package/dist/runtime/locale/is.js +9 -0
  123. package/dist/runtime/locale/it.js +9 -0
  124. package/dist/runtime/locale/ja.js +9 -0
  125. package/dist/runtime/locale/ka.js +9 -0
  126. package/dist/runtime/locale/kk.js +9 -0
  127. package/dist/runtime/locale/km.js +9 -0
  128. package/dist/runtime/locale/ko.js +9 -0
  129. package/dist/runtime/locale/ky.js +9 -0
  130. package/dist/runtime/locale/lb.js +11 -2
  131. package/dist/runtime/locale/lo.js +15 -6
  132. package/dist/runtime/locale/lt.js +9 -0
  133. package/dist/runtime/locale/mn.js +9 -0
  134. package/dist/runtime/locale/ms.js +9 -0
  135. package/dist/runtime/locale/nb_no.js +9 -0
  136. package/dist/runtime/locale/nl.js +9 -0
  137. package/dist/runtime/locale/pl.js +9 -0
  138. package/dist/runtime/locale/pt.js +9 -0
  139. package/dist/runtime/locale/pt_br.js +9 -0
  140. package/dist/runtime/locale/ro.js +9 -0
  141. package/dist/runtime/locale/ru.js +9 -0
  142. package/dist/runtime/locale/sk.js +9 -0
  143. package/dist/runtime/locale/sl.js +9 -0
  144. package/dist/runtime/locale/sq.js +9 -0
  145. package/dist/runtime/locale/sv.js +9 -0
  146. package/dist/runtime/locale/th.js +9 -0
  147. package/dist/runtime/locale/tj.js +9 -0
  148. package/dist/runtime/locale/tr.js +9 -0
  149. package/dist/runtime/locale/ug_cn.js +9 -0
  150. package/dist/runtime/locale/uk.js +9 -0
  151. package/dist/runtime/locale/ur.js +9 -0
  152. package/dist/runtime/locale/uz.js +9 -0
  153. package/dist/runtime/locale/vi.js +9 -0
  154. package/dist/runtime/locale/zh_cn.js +9 -0
  155. package/dist/runtime/locale/zh_tw.js +9 -0
  156. package/dist/runtime/plugins/colors.js +1 -1
  157. package/dist/runtime/types/index.d.ts +1 -0
  158. package/dist/runtime/types/index.js +1 -0
  159. package/dist/runtime/types/locale.d.ts +9 -0
  160. package/dist/runtime/types/prose.d.ts +1 -0
  161. package/dist/runtime/types/prose.js +1 -0
  162. package/dist/runtime/vue/overrides/inertia/Link.vue +3 -3
  163. package/dist/runtime/vue/overrides/none/Link.vue +3 -2
  164. package/dist/runtime/vue/overrides/vue-router/Link.vue +27 -31
  165. package/dist/shared/{ui.DJUbBpE2.mjs → ui.BIQuJqNV.mjs} +186 -34
  166. package/dist/unplugin.mjs +1 -1
  167. package/dist/vite.mjs +1 -1
  168. package/package.json +48 -39
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.6.1",
5
- "packageManager": "pnpm@10.33.0",
4
+ "version": "4.7.0",
5
+ "packageManager": "pnpm@10.33.1",
6
6
  "repository": {
7
7
  "type": "git",
8
8
  "url": "git+https://github.com/nuxt/ui.git"
@@ -115,6 +115,7 @@
115
115
  "repl": "pnpm --filter './playgrounds/repl' dev",
116
116
  "repl:bundle": "pnpm --filter './playgrounds/repl' bundle",
117
117
  "repl:build": "pnpm --filter './playgrounds/repl' build",
118
+ "repl:prepare": "nuxt-module-build build --stub && mkdir -p .nuxt && echo '{\"compilerOptions\":{}}' > .nuxt/tsconfig.json",
118
119
  "docs": "nuxt dev docs --uiDev",
119
120
  "docs:build": "nuxt build docs",
120
121
  "lint": "eslint .",
@@ -128,42 +129,42 @@
128
129
  "dependencies": {
129
130
  "@floating-ui/dom": "^1.7.6",
130
131
  "@iconify/vue": "^5.0.0",
131
- "@internationalized/date": "^3.12.0",
132
- "@internationalized/number": "^3.6.5",
132
+ "@internationalized/date": "^3.12.1",
133
+ "@internationalized/number": "^3.6.6",
133
134
  "@nuxt/fonts": "^0.14.0",
134
135
  "@nuxt/icon": "^2.2.1",
135
136
  "@nuxt/kit": "^4.4.2",
136
137
  "@nuxt/schema": "^4.4.2",
137
138
  "@nuxtjs/color-mode": "^3.5.2",
138
139
  "@standard-schema/spec": "^1.1.0",
139
- "@tailwindcss/postcss": "^4.2.2",
140
- "@tailwindcss/vite": "^4.2.2",
140
+ "@tailwindcss/postcss": "^4.2.4",
141
+ "@tailwindcss/vite": "^4.2.4",
141
142
  "@tanstack/vue-table": "^8.21.3",
142
- "@tanstack/vue-virtual": "^3.13.23",
143
- "@tiptap/core": "^3.21.0",
144
- "@tiptap/extension-bubble-menu": "^3.21.0",
145
- "@tiptap/extension-code": "^3.21.0",
146
- "@tiptap/extension-collaboration": "^3.21.0",
147
- "@tiptap/extension-drag-handle": "^3.21.0",
148
- "@tiptap/extension-drag-handle-vue-3": "^3.21.0",
149
- "@tiptap/extension-floating-menu": "^3.21.0",
150
- "@tiptap/extension-horizontal-rule": "^3.21.0",
151
- "@tiptap/extension-image": "^3.21.0",
152
- "@tiptap/extension-mention": "^3.21.0",
153
- "@tiptap/extension-node-range": "^3.21.0",
154
- "@tiptap/extension-placeholder": "^3.21.0",
155
- "@tiptap/markdown": "^3.21.0",
156
- "@tiptap/pm": "^3.21.0",
157
- "@tiptap/starter-kit": "^3.21.0",
158
- "@tiptap/suggestion": "^3.21.0",
159
- "@tiptap/vue-3": "^3.21.0",
160
- "@unhead/vue": "^2.1.12",
143
+ "@tanstack/vue-virtual": "^3.13.24",
144
+ "@tiptap/core": "^3.22.4",
145
+ "@tiptap/extension-bubble-menu": "^3.22.4",
146
+ "@tiptap/extension-code": "^3.22.4",
147
+ "@tiptap/extension-collaboration": "^3.22.4",
148
+ "@tiptap/extension-drag-handle": "^3.22.4",
149
+ "@tiptap/extension-drag-handle-vue-3": "^3.22.4",
150
+ "@tiptap/extension-floating-menu": "^3.22.4",
151
+ "@tiptap/extension-horizontal-rule": "^3.22.4",
152
+ "@tiptap/extension-image": "^3.22.4",
153
+ "@tiptap/extension-mention": "^3.22.4",
154
+ "@tiptap/extension-node-range": "^3.22.4",
155
+ "@tiptap/extension-placeholder": "^3.22.4",
156
+ "@tiptap/markdown": "^3.22.4",
157
+ "@tiptap/pm": "^3.22.4",
158
+ "@tiptap/starter-kit": "^3.22.4",
159
+ "@tiptap/suggestion": "^3.22.4",
160
+ "@tiptap/vue-3": "^3.22.4",
161
+ "@unhead/vue": "^2.1.13",
161
162
  "@vueuse/core": "^14.2.1",
162
163
  "@vueuse/integrations": "^14.2.1",
163
164
  "@vueuse/shared": "^14.2.1",
164
165
  "colortranslator": "^5.0.0",
165
166
  "consola": "^3.4.2",
166
- "defu": "^6.1.4",
167
+ "defu": "^6.1.7",
167
168
  "embla-carousel-auto-height": "^8.6.0",
168
169
  "embla-carousel-auto-scroll": "^8.6.0",
169
170
  "embla-carousel-autoplay": "^8.6.0",
@@ -171,50 +172,52 @@
171
172
  "embla-carousel-fade": "^8.6.0",
172
173
  "embla-carousel-vue": "^8.6.0",
173
174
  "embla-carousel-wheel-gestures": "^8.1.0",
174
- "fuse.js": "^7.1.0",
175
- "hookable": "^6.1.0",
175
+ "fuse.js": "^7.3.0",
176
+ "hookable": "^6.1.1",
176
177
  "knitwork": "^1.3.0",
177
178
  "magic-string": "^0.30.21",
178
179
  "mlly": "^1.8.2",
179
- "motion-v": "^2.2.0",
180
+ "motion-v": "^2.2.1",
180
181
  "ohash": "^2.0.11",
181
182
  "pathe": "^2.0.3",
182
- "reka-ui": "2.9.3",
183
+ "reka-ui": "2.9.6",
183
184
  "scule": "^1.3.0",
184
185
  "tailwind-merge": "^3.5.0",
185
186
  "tailwind-variants": "^3.2.2",
186
- "tailwindcss": "^4.2.2",
187
- "tinyglobby": "^0.2.15",
187
+ "tailwindcss": "^4.2.4",
188
+ "tinyglobby": "^0.2.16",
188
189
  "ufo": "^1.6.3",
189
190
  "unplugin": "^3.0.0",
190
191
  "unplugin-auto-import": "^21.0.0",
191
192
  "unplugin-vue-components": "^32.0.0",
192
193
  "vaul-vue": "0.4.1",
193
- "vue-component-type-helpers": "^3.2.6"
194
+ "vue-component-type-helpers": "^3.2.7"
194
195
  },
195
196
  "devDependencies": {
196
197
  "@nuxt/eslint-config": "^1.15.2",
197
198
  "@nuxt/module-builder": "^1.0.2",
198
- "@nuxt/test-utils": "^4.0.0",
199
+ "@nuxt/test-utils": "^4.0.2",
199
200
  "@release-it/conventional-changelog": "^10.0.6",
200
201
  "@tanstack/table-core": "^8.21.3",
201
202
  "@vitejs/plugin-vue": "^6.0.5",
202
203
  "@vue/test-utils": "^2.4.6",
203
- "ai": "^6.0.141",
204
+ "ai": "^6.0.168",
204
205
  "embla-carousel": "^8.6.0",
205
- "eslint": "^10.1.0",
206
- "happy-dom": "^20.8.9",
206
+ "eslint": "^10.2.1",
207
+ "happy-dom": "^20.9.0",
207
208
  "nuxt": "^4.4.2",
208
209
  "release-it": "^19.2.4",
209
210
  "unbuild": "^3.6.1",
210
- "vitest": "^4.1.2",
211
+ "vitest": "^4.1.5",
211
212
  "vitest-axe": "^0.1.0",
212
213
  "vitest-environment-nuxt": "^1.0.1",
213
214
  "vue": "^3.5.30",
214
- "vue-tsc": "^3.2.6"
215
+ "vue-tsc": "^3.2.7"
215
216
  },
216
217
  "peerDependencies": {
217
218
  "@inertiajs/vue3": "^2.0.7 || ^3.0.0",
219
+ "@internationalized/date": "^3.0.0",
220
+ "@internationalized/number": "^3.0.0",
218
221
  "@nuxt/content": "^3.0.0",
219
222
  "joi": "^18.0.0",
220
223
  "superstruct": "^2.0.0",
@@ -229,6 +232,12 @@
229
232
  "@inertiajs/vue3": {
230
233
  "optional": true
231
234
  },
235
+ "@internationalized/date": {
236
+ "optional": true
237
+ },
238
+ "@internationalized/number": {
239
+ "optional": true
240
+ },
232
241
  "@nuxt/content": {
233
242
  "optional": true
234
243
  },