@nuxt/ui 2.21.1 → 2.22.1

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 (86) hide show
  1. package/README.md +22 -7
  2. package/dist/module.d.mts +2 -1
  3. package/dist/module.json +3 -3
  4. package/dist/module.mjs +2 -11
  5. package/dist/runtime/components/data/Table.vue +16 -13
  6. package/dist/runtime/components/data/Table.vue.d.ts +44 -347
  7. package/dist/runtime/components/elements/Accordion.vue +4 -4
  8. package/dist/runtime/components/elements/Accordion.vue.d.ts +16 -16
  9. package/dist/runtime/components/elements/Alert.vue +6 -6
  10. package/dist/runtime/components/elements/Alert.vue.d.ts +38 -38
  11. package/dist/runtime/components/elements/Avatar.vue.d.ts +2 -2
  12. package/dist/runtime/components/elements/Badge.vue +1 -1
  13. package/dist/runtime/components/elements/Badge.vue.d.ts +2 -2
  14. package/dist/runtime/components/elements/Button.vue +1 -1
  15. package/dist/runtime/components/elements/Button.vue.d.ts +6 -6
  16. package/dist/runtime/components/elements/Carousel.vue +3 -3
  17. package/dist/runtime/components/elements/Carousel.vue.d.ts +22 -22
  18. package/dist/runtime/components/elements/Chip.vue.d.ts +1 -1
  19. package/dist/runtime/components/elements/Dropdown.vue +1 -1
  20. package/dist/runtime/components/elements/Dropdown.vue.d.ts +19 -19
  21. package/dist/runtime/components/elements/Kbd.vue.d.ts +1 -1
  22. package/dist/runtime/components/elements/Link.vue +7 -7
  23. package/dist/runtime/components/elements/Link.vue.d.ts +3 -3
  24. package/dist/runtime/components/elements/Meter.vue +1 -1
  25. package/dist/runtime/components/elements/Meter.vue.d.ts +3 -3
  26. package/dist/runtime/components/elements/MeterGroup.d.ts +1 -1
  27. package/dist/runtime/components/elements/Progress.vue +1 -1
  28. package/dist/runtime/components/elements/Progress.vue.d.ts +5 -5
  29. package/dist/runtime/components/forms/Checkbox.vue.d.ts +3 -3
  30. package/dist/runtime/components/forms/Form.vue +0 -45
  31. package/dist/runtime/components/forms/Form.vue.d.ts +4 -8
  32. package/dist/runtime/components/forms/FormGroup.vue.d.ts +2 -2
  33. package/dist/runtime/components/forms/Input.vue +3 -3
  34. package/dist/runtime/components/forms/Input.vue.d.ts +3 -3
  35. package/dist/runtime/components/forms/InputMenu.vue +4 -4
  36. package/dist/runtime/components/forms/InputMenu.vue.d.ts +16 -16
  37. package/dist/runtime/components/forms/Radio.vue.d.ts +3 -3
  38. package/dist/runtime/components/forms/RadioGroup.vue.d.ts +6 -6
  39. package/dist/runtime/components/forms/Range.vue.d.ts +3 -3
  40. package/dist/runtime/components/forms/Select.vue +2 -2
  41. package/dist/runtime/components/forms/Select.vue.d.ts +2 -2
  42. package/dist/runtime/components/forms/SelectMenu.vue +7 -7
  43. package/dist/runtime/components/forms/SelectMenu.vue.d.ts +16 -16
  44. package/dist/runtime/components/forms/Textarea.vue.d.ts +3 -3
  45. package/dist/runtime/components/forms/Toggle.vue.d.ts +2 -2
  46. package/dist/runtime/components/layout/Card.vue.d.ts +1 -1
  47. package/dist/runtime/components/layout/Container.vue.d.ts +1 -1
  48. package/dist/runtime/components/layout/Divider.vue.d.ts +15 -15
  49. package/dist/runtime/components/layout/Skeleton.vue.d.ts +1 -1
  50. package/dist/runtime/components/navigation/Breadcrumb.vue +1 -1
  51. package/dist/runtime/components/navigation/Breadcrumb.vue.d.ts +3 -3
  52. package/dist/runtime/components/navigation/CommandPalette.vue +1 -1
  53. package/dist/runtime/components/navigation/CommandPalette.vue.d.ts +33 -33
  54. package/dist/runtime/components/navigation/CommandPaletteGroup.vue.d.ts +30 -30
  55. package/dist/runtime/components/navigation/HorizontalNavigation.vue +5 -5
  56. package/dist/runtime/components/navigation/HorizontalNavigation.vue.d.ts +36 -36
  57. package/dist/runtime/components/navigation/Pagination.vue +5 -5
  58. package/dist/runtime/components/navigation/Pagination.vue.d.ts +34 -34
  59. package/dist/runtime/components/navigation/Tabs.vue.d.ts +1 -1
  60. package/dist/runtime/components/navigation/VerticalNavigation.vue +5 -5
  61. package/dist/runtime/components/navigation/VerticalNavigation.vue.d.ts +58 -58
  62. package/dist/runtime/components/overlays/ContextMenu.vue.d.ts +1 -1
  63. package/dist/runtime/components/overlays/Modal.vue +6 -6
  64. package/dist/runtime/components/overlays/Modal.vue.d.ts +3 -3
  65. package/dist/runtime/components/overlays/Modals.client.vue +5 -7
  66. package/dist/runtime/components/overlays/Modals.client.vue.d.ts +2 -0
  67. package/dist/runtime/components/overlays/Notification.vue +6 -6
  68. package/dist/runtime/components/overlays/Notification.vue.d.ts +42 -42
  69. package/dist/runtime/components/overlays/Notifications.vue.d.ts +67 -67
  70. package/dist/runtime/components/overlays/Popover.vue.d.ts +2 -2
  71. package/dist/runtime/components/overlays/Slideover.vue.d.ts +3 -3
  72. package/dist/runtime/components/overlays/Slideovers.client.vue +5 -7
  73. package/dist/runtime/components/overlays/Slideovers.client.vue.d.ts +2 -0
  74. package/dist/runtime/components/overlays/Tooltip.vue.d.ts +5 -5
  75. package/dist/runtime/composables/useCarouselScroll.d.ts +1 -1
  76. package/dist/runtime/composables/useFormGroup.d.ts +1 -1
  77. package/dist/runtime/composables/useToast.d.ts +4 -4
  78. package/dist/runtime/types/component.d.ts +12 -12
  79. package/dist/runtime/types/utils.d.ts +2 -2
  80. package/dist/runtime/ui.config/forms/selectMenu.d.ts +1 -1
  81. package/dist/runtime/utils/link.js +4 -2
  82. package/dist/types.d.mts +3 -1
  83. package/package.json +65 -36
  84. package/dist/module.cjs +0 -5
  85. package/dist/module.d.ts +0 -40
  86. package/dist/types.d.ts +0 -1
package/package.json CHANGED
@@ -1,20 +1,29 @@
1
1
  {
2
2
  "name": "@nuxt/ui",
3
3
  "description": "A UI Library for Modern Web Apps, powered by Vue & Tailwind CSS.",
4
- "version": "2.21.1",
5
- "packageManager": "pnpm@10.6.1",
6
- "repository": "nuxt/ui",
7
- "homepage": "https://ui.nuxt.com",
4
+ "version": "2.22.1",
5
+ "packageManager": "pnpm@10.13.1",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "git+https://github.com/nuxt/ui.git"
9
+ },
10
+ "homepage": "https://ui2.nuxt.com",
8
11
  "type": "module",
9
12
  "license": "MIT",
10
13
  "exports": {
11
14
  ".": {
12
- "import": "./dist/module.mjs",
13
- "require": "./dist/module.cjs"
15
+ "types": "./dist/module.d.mts",
16
+ "import": "./dist/module.mjs"
17
+ }
18
+ },
19
+ "typesVersions": {
20
+ "*": {
21
+ ".": [
22
+ "./dist/module.d.mts"
23
+ ]
14
24
  }
15
25
  },
16
- "main": "./dist/module.cjs",
17
- "types": "./dist/types.d.ts",
26
+ "main": "./dist/module.mjs",
18
27
  "files": [
19
28
  "dist"
20
29
  ],
@@ -35,18 +44,19 @@
35
44
  "@headlessui/tailwindcss": "^0.2.2",
36
45
  "@headlessui/vue": "^1.7.23",
37
46
  "@iconify-json/heroicons": "^1.2.2",
38
- "@nuxt/icon": "^1.10.3",
39
- "@nuxt/kit": "^3.16.0",
47
+ "@nuxt/icon": "^1.15.0",
48
+ "@nuxt/kit": "^4.0.0",
40
49
  "@nuxtjs/color-mode": "^3.5.2",
41
- "@nuxtjs/tailwindcss": "^6.13.1",
50
+ "@nuxtjs/tailwindcss": "^6.14.0",
42
51
  "@popperjs/core": "^2.11.8",
52
+ "@standard-schema/spec": "^1.0.0",
43
53
  "@tailwindcss/aspect-ratio": "^0.4.2",
44
54
  "@tailwindcss/container-queries": "^0.1.1",
45
55
  "@tailwindcss/forms": "^0.5.10",
46
56
  "@tailwindcss/typography": "^0.5.16",
47
- "@vueuse/core": "^12.8.2",
48
- "@vueuse/integrations": "^12.8.2",
49
- "@vueuse/math": "^12.8.2",
57
+ "@vueuse/core": "^13.5.0",
58
+ "@vueuse/integrations": "^13.5.0",
59
+ "@vueuse/math": "^13.5.0",
50
60
  "defu": "^6.1.4",
51
61
  "fuse.js": "^7.1.0",
52
62
  "ohash": "^2.0.11",
@@ -56,34 +66,53 @@
56
66
  "tailwindcss": "^3.4.17"
57
67
  },
58
68
  "devDependencies": {
59
- "@nuxt/eslint-config": "^1.1.0",
60
- "@nuxt/module-builder": "^0.8.4",
61
- "@standard-schema/spec": "^1.0.0",
62
- "@nuxt/test-utils": "^3.17.1",
63
- "@release-it/conventional-changelog": "^10.0.0",
69
+ "@nuxt/eslint-config": "^1.5.2",
70
+ "@nuxt/module-builder": "^1.0.1",
71
+ "@nuxt/test-utils": "^3.19.2",
72
+ "@release-it/conventional-changelog": "^10.0.1",
64
73
  "@vue/test-utils": "^2.4.6",
65
- "eslint": "^9.22.0",
66
- "happy-dom": "^17.1.8",
67
- "joi": "^17.13.3",
68
- "nuxt": "^3.16.0",
69
- "release-it": "^18.1.2",
70
- "superstruct": "^2.0.2",
71
- "typescript": "^5.6.3",
72
- "valibot": "^0.42.1",
73
- "valibot30": "npm:valibot@0.30.0",
74
- "valibot31": "npm:valibot@0.31.0",
75
- "vitest": "^3.0.8",
74
+ "eslint": "^9.31.0",
75
+ "happy-dom": "^18.0.1",
76
+ "nuxt": "^4.0.0",
77
+ "release-it": "^19.0.3",
78
+ "typescript": "^5.8.3",
79
+ "vitest": "^3.2.4",
76
80
  "vitest-environment-nuxt": "^1.0.1",
77
- "vue-tsc": "^2.1.10",
78
- "yup": "^1.6.1",
79
- "zod": "^3.24.2"
81
+ "vue-tsc": "^3.0.1"
82
+ },
83
+ "peerDependencies": {
84
+ "joi": "^17.13.0",
85
+ "superstruct": "^2.0.0",
86
+ "valibot": "^1.0.0",
87
+ "yup": "^1.6.0",
88
+ "zod": "^3.24.0"
89
+ },
90
+ "peerDependenciesMeta": {
91
+ "joi": {
92
+ "optional": true
93
+ },
94
+ "valibot": {
95
+ "optional": true
96
+ },
97
+ "superstruct": {
98
+ "optional": true
99
+ },
100
+ "yup": {
101
+ "optional": true
102
+ },
103
+ "zod": {
104
+ "optional": true
105
+ }
80
106
  },
81
107
  "resolutions": {
82
108
  "@nuxt/ui": "workspace:*",
83
109
  "@nuxt/content": "2.13.2",
84
110
  "@nuxtjs/mdc": "0.9.0",
85
- "chokidar": "3.6.0",
86
- "vue-tsc": "2.1.10",
87
- "typescript": "5.6.3"
111
+ "@vueuse/core": "^13.5.0",
112
+ "@vueuse/integrations": "^13.5.0",
113
+ "@vueuse/math": "^13.5.0",
114
+ "@vueuse/nuxt": "13.1.0",
115
+ "unimport": "4.1.1",
116
+ "chokidar": "3.6.0"
88
117
  }
89
118
  }
package/dist/module.cjs DELETED
@@ -1,5 +0,0 @@
1
- module.exports = function(...args) {
2
- return import('./module.mjs').then(m => m.default.call(this, ...args))
3
- }
4
- const _meta = module.exports.meta = require('./module.json')
5
- module.exports.getMeta = () => Promise.resolve(_meta)
package/dist/module.d.ts DELETED
@@ -1,40 +0,0 @@
1
- import * as _nuxt_schema from '@nuxt/schema';
2
- import { ConfigExtension, DefaultClassGroupIds, DefaultThemeGroupIds } from 'tailwind-merge';
3
- import * as config from '../dist/runtime/ui.config/index.js';
4
- import { Strategy, DeepPartial } from '../dist/runtime/types/index.js';
5
-
6
- type UI = {
7
- primary?: string;
8
- gray?: string;
9
- colors?: string[];
10
- strategy?: Strategy;
11
- tailwindMerge?: ConfigExtension<DefaultClassGroupIds, DefaultThemeGroupIds>;
12
- [key: string]: any;
13
- } & DeepPartial<typeof config, string | number | boolean>;
14
- declare module '@nuxt/schema' {
15
- interface AppConfigInput {
16
- ui?: UI;
17
- }
18
- }
19
- interface ModuleOptions {
20
- /**
21
- * @default 'u'
22
- */
23
- prefix?: string;
24
- /**
25
- * @default false
26
- */
27
- global?: boolean;
28
- /**
29
- * @default true
30
- */
31
- colorMode?: boolean;
32
- safelistColors?: string[];
33
- /**
34
- * Disables the global css styles added by the module.
35
- */
36
- disableGlobalStyles?: boolean;
37
- }
38
- declare const _default: _nuxt_schema.NuxtModule<ModuleOptions, ModuleOptions, false>;
39
-
40
- export { type ModuleOptions, _default as default };
package/dist/types.d.ts DELETED
@@ -1 +0,0 @@
1
- export { type ModuleOptions, default } from './module'