@nuxt/ui 4.8.2 → 4.9.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 (82) hide show
  1. package/dist/module.d.mts +7 -0
  2. package/dist/module.json +1 -1
  3. package/dist/module.mjs +2 -2
  4. package/dist/runtime/components/Avatar.vue +1 -1
  5. package/dist/runtime/components/Banner.vue +0 -1
  6. package/dist/runtime/components/BlogPost.vue +8 -10
  7. package/dist/runtime/components/Calendar.d.vue.ts +40 -4
  8. package/dist/runtime/components/Calendar.vue +179 -61
  9. package/dist/runtime/components/Calendar.vue.d.ts +40 -4
  10. package/dist/runtime/components/ChatMessages.d.vue.ts +7 -3
  11. package/dist/runtime/components/ChatMessages.vue +4 -1
  12. package/dist/runtime/components/ChatMessages.vue.d.ts +7 -3
  13. package/dist/runtime/components/ChatPrompt.vue +8 -2
  14. package/dist/runtime/components/ChatPromptSubmit.d.vue.ts +2 -2
  15. package/dist/runtime/components/ChatPromptSubmit.vue +2 -2
  16. package/dist/runtime/components/ChatPromptSubmit.vue.d.ts +2 -2
  17. package/dist/runtime/components/CommandPalette.d.vue.ts +2 -2
  18. package/dist/runtime/components/CommandPalette.vue +10 -4
  19. package/dist/runtime/components/CommandPalette.vue.d.ts +2 -2
  20. package/dist/runtime/components/DashboardSearch.d.vue.ts +7 -1
  21. package/dist/runtime/components/DashboardSearch.vue +9 -2
  22. package/dist/runtime/components/DashboardSearch.vue.d.ts +7 -1
  23. package/dist/runtime/components/DashboardSearchButton.d.vue.ts +2 -2
  24. package/dist/runtime/components/DashboardSearchButton.vue +2 -2
  25. package/dist/runtime/components/DashboardSearchButton.vue.d.ts +2 -2
  26. package/dist/runtime/components/FileUpload.d.vue.ts +5 -2
  27. package/dist/runtime/components/FileUpload.vue +8 -6
  28. package/dist/runtime/components/FileUpload.vue.d.ts +5 -2
  29. package/dist/runtime/components/Link.d.vue.ts +1 -0
  30. package/dist/runtime/components/Link.vue +1 -1
  31. package/dist/runtime/components/Link.vue.d.ts +1 -0
  32. package/dist/runtime/components/Modal.d.vue.ts +6 -0
  33. package/dist/runtime/components/Modal.vue +3 -1
  34. package/dist/runtime/components/Modal.vue.d.ts +6 -0
  35. package/dist/runtime/components/PinInput.d.vue.ts +14 -2
  36. package/dist/runtime/components/PinInput.vue +36 -11
  37. package/dist/runtime/components/PinInput.vue.d.ts +14 -2
  38. package/dist/runtime/components/Popover.d.vue.ts +2 -0
  39. package/dist/runtime/components/Popover.vue +2 -2
  40. package/dist/runtime/components/Popover.vue.d.ts +2 -0
  41. package/dist/runtime/components/ScrollArea.d.vue.ts +8 -0
  42. package/dist/runtime/components/ScrollArea.vue +10 -0
  43. package/dist/runtime/components/ScrollArea.vue.d.ts +8 -0
  44. package/dist/runtime/components/Select.vue +8 -1
  45. package/dist/runtime/components/SelectMenu.vue +11 -4
  46. package/dist/runtime/components/Sidebar.d.vue.ts +5 -0
  47. package/dist/runtime/components/Sidebar.vue +3 -1
  48. package/dist/runtime/components/Sidebar.vue.d.ts +5 -0
  49. package/dist/runtime/components/Slideover.d.vue.ts +6 -0
  50. package/dist/runtime/components/Slideover.vue +3 -1
  51. package/dist/runtime/components/Slideover.vue.d.ts +6 -0
  52. package/dist/runtime/components/content/ContentSearch.d.vue.ts +7 -1
  53. package/dist/runtime/components/content/ContentSearch.vue +9 -2
  54. package/dist/runtime/components/content/ContentSearch.vue.d.ts +7 -1
  55. package/dist/runtime/components/content/ContentSearchButton.d.vue.ts +2 -2
  56. package/dist/runtime/components/content/ContentSearchButton.vue +2 -2
  57. package/dist/runtime/components/content/ContentSearchButton.vue.d.ts +2 -2
  58. package/dist/runtime/components/prose/Kbd.d.vue.ts +2 -1
  59. package/dist/runtime/components/prose/Kbd.vue.d.ts +2 -1
  60. package/dist/runtime/components/prose/Pre.vue +0 -1
  61. package/dist/runtime/composables/index.d.ts +1 -0
  62. package/dist/runtime/composables/index.js +1 -0
  63. package/dist/runtime/composables/useComponentProps.d.ts +3 -3
  64. package/dist/runtime/composables/useTour.d.ts +80 -0
  65. package/dist/runtime/composables/useTour.js +102 -0
  66. package/dist/runtime/index.css +1 -1
  67. package/dist/runtime/keyframes.css +1 -1
  68. package/dist/runtime/locale/index.d.ts +1 -0
  69. package/dist/runtime/locale/index.js +1 -0
  70. package/dist/runtime/locale/lv.d.ts +3 -0
  71. package/dist/runtime/locale/lv.js +152 -0
  72. package/dist/runtime/plugins/colors.js +5 -4
  73. package/dist/runtime/types/tv.d.ts +15 -3
  74. package/dist/runtime/utils/tv.d.ts +41 -1
  75. package/dist/runtime/utils/tv.js +91 -2
  76. package/dist/runtime/vue/stubs/base.d.ts +1 -1
  77. package/dist/runtime/vue/stubs/base.js +1 -1
  78. package/dist/shared/{ui.C-lVg1QQ.mjs → ui.BfHSFiIO.mjs} +375 -232
  79. package/dist/unplugin.d.mts +8 -0
  80. package/dist/unplugin.mjs +2 -2
  81. package/dist/vite.mjs +1 -1
  82. package/package.json +57 -40
@@ -106,6 +106,14 @@ interface NuxtUIOptions extends Omit<ModuleOptions, 'fonts' | 'colorMode' | 'con
106
106
  * @see https://ui.nuxt.com/docs/getting-started/installation/vue#scanpackages
107
107
  */
108
108
  scanPackages?: string[];
109
+ /**
110
+ * Root directory where the `.nuxt-ui` directory (generated theme templates) is created.
111
+ * Useful for setups like `electron-vite` where `config.root` points to a sub-directory
112
+ * (e.g. `src/renderer`) that Tailwind doesn't scan.
113
+ * @defaultValue `config.root`
114
+ * @see https://ui.nuxt.com/docs/getting-started/installation/vue#root
115
+ */
116
+ root?: string;
109
117
  }
110
118
  declare const runtimeDir: string;
111
119
  declare const NuxtUIPlugin: unplugin.UnpluginInstance<NuxtUIOptions | undefined, boolean>;
package/dist/unplugin.mjs CHANGED
@@ -3,7 +3,7 @@ import { join, normalize } from 'pathe';
3
3
  import { createUnplugin } from 'unplugin';
4
4
  import { defu } from 'defu';
5
5
  import tailwind from '@tailwindcss/vite';
6
- import { b as getTemplates, p as publicComposables, d as defaultOptions, r as resolveColors, g as getDefaultConfig } from './shared/ui.C-lVg1QQ.mjs';
6
+ import { b as getTemplates, p as publicComposables, d as defaultOptions, r as resolveColors, g as getDefaultConfig } from './shared/ui.BfHSFiIO.mjs';
7
7
  import fs from 'node:fs';
8
8
  import path from 'node:path';
9
9
  import MagicString from 'magic-string';
@@ -42,7 +42,7 @@ function TemplatePlugin(options, appConfig) {
42
42
  enforce: "pre",
43
43
  vite: {
44
44
  async config(config) {
45
- const alias = await writeTemplates(config.root || process.cwd());
45
+ const alias = await writeTemplates(path.resolve(options.root || config.root || "."));
46
46
  return {
47
47
  resolve: {
48
48
  alias
package/dist/vite.mjs CHANGED
@@ -4,7 +4,7 @@ import 'pathe';
4
4
  import 'unplugin';
5
5
  import 'defu';
6
6
  import '@tailwindcss/vite';
7
- import './shared/ui.C-lVg1QQ.mjs';
7
+ import './shared/ui.BfHSFiIO.mjs';
8
8
  import '../dist/runtime/utils/index.js';
9
9
  import 'scule';
10
10
  import 'knitwork';
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.8.2",
5
- "packageManager": "pnpm@11.5.0",
4
+ "version": "4.9.0",
5
+ "packageManager": "pnpm@11.6.0",
6
6
  "repository": {
7
7
  "type": "git",
8
8
  "url": "git+https://github.com/nuxt/ui.git"
@@ -132,32 +132,32 @@
132
132
  "@internationalized/date": "^3.12.2",
133
133
  "@internationalized/number": "^3.6.7",
134
134
  "@nuxt/fonts": "^0.14.0",
135
- "@nuxt/icon": "^2.2.2",
136
- "@nuxt/kit": "^4.4.7",
137
- "@nuxt/schema": "^4.4.7",
138
- "@nuxtjs/color-mode": "^3.5.2",
135
+ "@nuxt/icon": "^2.2.3",
136
+ "@nuxt/kit": "^4.4.8",
137
+ "@nuxt/schema": "^4.4.8",
138
+ "@nuxtjs/color-mode": "^4.0.1",
139
139
  "@standard-schema/spec": "^1.1.0",
140
- "@tailwindcss/postcss": "^4.3.0",
141
- "@tailwindcss/vite": "^4.3.0",
140
+ "@tailwindcss/postcss": "^4.3.1",
141
+ "@tailwindcss/vite": "^4.3.1",
142
142
  "@tanstack/vue-table": "^8.21.3",
143
- "@tanstack/vue-virtual": "^3.13.26",
144
- "@tiptap/core": "^3.24.0",
145
- "@tiptap/extension-bubble-menu": "^3.24.0",
146
- "@tiptap/extension-code": "^3.24.0",
147
- "@tiptap/extension-collaboration": "^3.24.0",
148
- "@tiptap/extension-drag-handle": "^3.24.0",
149
- "@tiptap/extension-drag-handle-vue-3": "^3.24.0",
150
- "@tiptap/extension-floating-menu": "^3.24.0",
151
- "@tiptap/extension-horizontal-rule": "^3.24.0",
152
- "@tiptap/extension-image": "^3.24.0",
153
- "@tiptap/extension-mention": "^3.24.0",
154
- "@tiptap/extension-node-range": "^3.24.0",
155
- "@tiptap/extension-placeholder": "^3.24.0",
156
- "@tiptap/markdown": "^3.24.0",
157
- "@tiptap/pm": "^3.24.0",
158
- "@tiptap/starter-kit": "^3.24.0",
159
- "@tiptap/suggestion": "^3.24.0",
160
- "@tiptap/vue-3": "^3.24.0",
143
+ "@tanstack/vue-virtual": "^3.13.28",
144
+ "@tiptap/core": "^3.26.1",
145
+ "@tiptap/extension-bubble-menu": "^3.26.1",
146
+ "@tiptap/extension-code": "^3.26.1",
147
+ "@tiptap/extension-collaboration": "^3.26.1",
148
+ "@tiptap/extension-drag-handle": "^3.26.1",
149
+ "@tiptap/extension-drag-handle-vue-3": "^3.26.1",
150
+ "@tiptap/extension-floating-menu": "^3.26.1",
151
+ "@tiptap/extension-horizontal-rule": "^3.26.1",
152
+ "@tiptap/extension-image": "^3.26.1",
153
+ "@tiptap/extension-mention": "^3.26.1",
154
+ "@tiptap/extension-node-range": "^3.26.1",
155
+ "@tiptap/extension-placeholder": "^3.26.1",
156
+ "@tiptap/markdown": "^3.26.1",
157
+ "@tiptap/pm": "^3.26.1",
158
+ "@tiptap/starter-kit": "^3.26.1",
159
+ "@tiptap/suggestion": "^3.26.1",
160
+ "@tiptap/vue-3": "^3.26.1",
161
161
  "@unhead/vue": "^2.1.15",
162
162
  "@vueuse/core": "^14.3.0",
163
163
  "@vueuse/integrations": "^14.3.0",
@@ -172,53 +172,70 @@
172
172
  "embla-carousel-fade": "^8.6.0",
173
173
  "embla-carousel-vue": "^8.6.0",
174
174
  "embla-carousel-wheel-gestures": "^8.1.0",
175
- "fuse.js": "^7.4.0",
175
+ "fuse.js": "^7.4.2",
176
176
  "hookable": "^6.1.1",
177
177
  "knitwork": "^1.3.0",
178
178
  "magic-string": "^0.30.21",
179
179
  "mlly": "^1.8.2",
180
- "motion-v": "^2.2.1",
180
+ "motion-v": "^2.3.0",
181
181
  "ohash": "^2.0.11",
182
182
  "pathe": "^2.0.3",
183
- "reka-ui": "2.9.9",
183
+ "reka-ui": "2.9.10",
184
184
  "scule": "^1.3.0",
185
185
  "tailwind-merge": "^3.6.0",
186
186
  "tailwind-variants": "^3.2.2",
187
- "tailwindcss": "^4.3.0",
187
+ "tailwindcss": "^4.3.1",
188
188
  "tinyglobby": "^0.2.17",
189
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.1.0",
193
193
  "vaul-vue": "0.4.1",
194
- "vue-component-type-helpers": "^3.3.3"
194
+ "vue-component-type-helpers": "^3.3.5"
195
195
  },
196
196
  "devDependencies": {
197
- "@nuxt/eslint-config": "^1.15.2",
197
+ "@nuxt/eslint-config": "^1.16.0",
198
198
  "@nuxt/module-builder": "^1.0.2",
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
202
  "@vitejs/plugin-vue": "^6.0.7",
203
- "@vue/test-utils": "^2.4.10",
204
- "ai": "^6.0.193",
203
+ "@vue/test-utils": "^2.4.11",
204
+ "ai": "^6.0.205",
205
205
  "embla-carousel": "^8.6.0",
206
- "eslint": "^10.4.1",
207
- "happy-dom": "^20.9.0",
208
- "nuxt": "^4.4.7",
206
+ "eslint": "^10.5.0",
207
+ "happy-dom": "^20.10.3",
208
+ "nuxt": "^4.4.8",
209
209
  "release-it": "^19.2.4",
210
210
  "unbuild": "^3.6.1",
211
- "vitest": "^4.1.7",
211
+ "vitest": "^4.1.8",
212
212
  "vitest-axe": "^0.1.0",
213
213
  "vitest-environment-nuxt": "^2.0.0",
214
- "vue": "^3.5.35",
215
- "vue-tsc": "^3.3.3"
214
+ "vue": "^3.5.38",
215
+ "vue-tsc": "^3.3.5"
216
216
  },
217
217
  "peerDependencies": {
218
218
  "@inertiajs/vue3": "^2.0.7 || ^3.0.0",
219
219
  "@internationalized/date": "^3.0.0",
220
220
  "@internationalized/number": "^3.0.0",
221
221
  "@nuxt/content": "^3.0.0",
222
+ "@tiptap/core": "^3",
223
+ "@tiptap/extension-bubble-menu": "^3",
224
+ "@tiptap/extension-code": "^3",
225
+ "@tiptap/extension-collaboration": "^3",
226
+ "@tiptap/extension-drag-handle": "^3",
227
+ "@tiptap/extension-drag-handle-vue-3": "^3",
228
+ "@tiptap/extension-floating-menu": "^3",
229
+ "@tiptap/extension-horizontal-rule": "^3",
230
+ "@tiptap/extension-image": "^3",
231
+ "@tiptap/extension-mention": "^3",
232
+ "@tiptap/extension-node-range": "^3",
233
+ "@tiptap/extension-placeholder": "^3",
234
+ "@tiptap/markdown": "^3",
235
+ "@tiptap/pm": "^3",
236
+ "@tiptap/starter-kit": "^3",
237
+ "@tiptap/suggestion": "^3",
238
+ "@tiptap/vue-3": "^3",
222
239
  "joi": "^18.0.0",
223
240
  "superstruct": "^2.0.0",
224
241
  "tailwindcss": "^4.0.0",