@nuxt/ui 2.18.4 → 2.18.6

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 (79) hide show
  1. package/README.md +1 -1
  2. package/dist/module.d.mts +1 -6
  3. package/dist/module.d.ts +1 -6
  4. package/dist/module.json +2 -2
  5. package/dist/module.mjs +16 -8
  6. package/dist/runtime/components/data/Table.vue +8 -7
  7. package/dist/runtime/components/data/Table.vue.d.ts +2016 -12
  8. package/dist/runtime/components/elements/Accordion.vue.d.ts +1124 -10
  9. package/dist/runtime/components/elements/Alert.vue.d.ts +1449 -11
  10. package/dist/runtime/components/elements/Avatar.vue.d.ts +118 -10
  11. package/dist/runtime/components/elements/AvatarGroup.d.ts +12 -6
  12. package/dist/runtime/components/elements/Badge.vue.d.ts +45 -9
  13. package/dist/runtime/components/elements/Button.vue.d.ts +367 -14
  14. package/dist/runtime/components/elements/ButtonGroup.d.ts +107 -6
  15. package/dist/runtime/components/elements/Carousel.vue.d.ts +970 -10
  16. package/dist/runtime/components/elements/Chip.vue.d.ts +46 -9
  17. package/dist/runtime/components/elements/Dropdown.vue.d.ts +784 -13
  18. package/dist/runtime/components/elements/Icon.vue.d.ts +4 -4
  19. package/dist/runtime/components/elements/Kbd.vue.d.ts +28 -9
  20. package/dist/runtime/components/elements/Link.vue +1 -0
  21. package/dist/runtime/components/elements/Link.vue.d.ts +9 -9
  22. package/dist/runtime/components/elements/Meter.vue.d.ts +136 -11
  23. package/dist/runtime/components/elements/MeterGroup.d.ts +60 -6
  24. package/dist/runtime/components/elements/Progress.vue.d.ts +89 -12
  25. package/dist/runtime/components/forms/Checkbox.vue.d.ts +33 -12
  26. package/dist/runtime/components/forms/Form.vue +4 -3
  27. package/dist/runtime/components/forms/Form.vue.d.ts +13 -6
  28. package/dist/runtime/components/forms/FormGroup.vue.d.ts +39 -11
  29. package/dist/runtime/components/forms/Input.vue +1 -2
  30. package/dist/runtime/components/forms/Input.vue.d.ts +176 -14
  31. package/dist/runtime/components/forms/InputMenu.vue.d.ts +957 -20
  32. package/dist/runtime/components/forms/Radio.vue.d.ts +32 -12
  33. package/dist/runtime/components/forms/RadioGroup.vue +1 -1
  34. package/dist/runtime/components/forms/RadioGroup.vue.d.ts +245 -14
  35. package/dist/runtime/components/forms/Range.vue.d.ts +79 -13
  36. package/dist/runtime/components/forms/Select.vue.d.ts +171 -12
  37. package/dist/runtime/components/forms/SelectMenu.vue +1 -1
  38. package/dist/runtime/components/forms/SelectMenu.vue.d.ts +1163 -19
  39. package/dist/runtime/components/forms/Textarea.vue +3 -0
  40. package/dist/runtime/components/forms/Textarea.vue.d.ts +129 -14
  41. package/dist/runtime/components/forms/Toggle.vue.d.ts +211 -12
  42. package/dist/runtime/components/layout/Card.vue.d.ts +35 -9
  43. package/dist/runtime/components/layout/Container.vue.d.ts +17 -9
  44. package/dist/runtime/components/layout/Divider.vue.d.ts +528 -11
  45. package/dist/runtime/components/layout/Skeleton.vue.d.ts +17 -9
  46. package/dist/runtime/components/navigation/Breadcrumb.vue.d.ts +302 -9
  47. package/dist/runtime/components/navigation/CommandPalette.vue.d.ts +1971 -13
  48. package/dist/runtime/components/navigation/CommandPaletteGroup.vue.d.ts +625 -5
  49. package/dist/runtime/components/navigation/HorizontalNavigation.vue.d.ts +898 -9
  50. package/dist/runtime/components/navigation/Pagination.vue +4 -0
  51. package/dist/runtime/components/navigation/Pagination.vue.d.ts +981 -11
  52. package/dist/runtime/components/navigation/Tabs.vue +4 -0
  53. package/dist/runtime/components/navigation/Tabs.vue.d.ts +274 -14
  54. package/dist/runtime/components/navigation/VerticalNavigation.vue.d.ts +1666 -9
  55. package/dist/runtime/components/overlays/ContextMenu.vue.d.ts +45 -12
  56. package/dist/runtime/components/overlays/Modal.vue +2 -2
  57. package/dist/runtime/components/overlays/Modal.vue.d.ts +392 -13
  58. package/dist/runtime/components/overlays/Notification.vue.d.ts +1459 -12
  59. package/dist/runtime/components/overlays/Notifications.vue.d.ts +1746 -10
  60. package/dist/runtime/components/overlays/Popover.vue.d.ts +165 -14
  61. package/dist/runtime/components/overlays/Slideover.vue +3 -3
  62. package/dist/runtime/components/overlays/Slideover.vue.d.ts +391 -13
  63. package/dist/runtime/components/overlays/Tooltip.vue.d.ts +168 -12
  64. package/dist/runtime/composables/useFormGroup.d.ts +1 -1
  65. package/dist/runtime/composables/useFormGroup.js +4 -2
  66. package/dist/runtime/composables/useModal.d.ts +1 -1
  67. package/dist/runtime/composables/usePopper.d.ts +262 -1
  68. package/dist/runtime/composables/useShortcuts.d.ts +4 -4
  69. package/dist/runtime/composables/useSlideover.d.ts +1 -1
  70. package/dist/runtime/composables/useUI.d.ts +2 -2
  71. package/dist/runtime/composables/useUI.js +1 -1
  72. package/dist/runtime/plugins/colors.js +3 -3
  73. package/dist/runtime/types/command-palette.d.ts +2 -2
  74. package/dist/runtime/ui.config/elements/button.js +9 -9
  75. package/dist/runtime/ui.config/elements/carousel.js +1 -1
  76. package/dist/runtime/ui.config/navigation/tabs.js +1 -1
  77. package/dist/runtime/utils/index.d.ts +1 -0
  78. package/dist/runtime/utils/index.js +5 -1
  79. package/package.json +27 -29
@@ -20,7 +20,7 @@ export default {
20
20
  nextButton: {
21
21
  color: "black",
22
22
  class: "rtl:[&_span:last-child]:rotate-180 absolute right-4 top-1/2 transform -translate-y-1/2 rounded-full",
23
- icon: "i-heroicons-chevron-right-20-solid "
23
+ icon: "i-heroicons-chevron-right-20-solid"
24
24
  }
25
25
  }
26
26
  };
@@ -28,7 +28,7 @@ export default {
28
28
  font: "font-medium",
29
29
  rounded: "rounded-md",
30
30
  shadow: "",
31
- icon: "w-4 h-4 flex-shrink-0 mr-2"
31
+ icon: "w-4 h-4 flex-shrink-0 me-2"
32
32
  }
33
33
  }
34
34
  };
@@ -1,5 +1,6 @@
1
1
  import type { Strategy } from '../types/index.js';
2
2
  export declare function mergeConfig<T>(strategy: Strategy, ...configs: any[]): T;
3
+ export declare function parseConfigValue(value: string): string;
3
4
  export declare function hexToRgb(hex: string): string;
4
5
  export declare function getSlotsChildren(slots: any): any;
5
6
  /**
@@ -34,12 +34,16 @@ export function mergeConfig(strategy, ...configs) {
34
34
  }
35
35
  return defuTwMerge({}, ...configs);
36
36
  }
37
+ const rxHex = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i;
38
+ export function parseConfigValue(value) {
39
+ return rxHex.test(value) ? hexToRgb(value) : value;
40
+ }
37
41
  export function hexToRgb(hex) {
38
42
  const shorthandRegex = /^#?([a-f\d])([a-f\d])([a-f\d])$/i;
39
43
  hex = hex.replace(shorthandRegex, function(_, r, g, b) {
40
44
  return r + r + g + g + b + b;
41
45
  });
42
- const result = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(hex);
46
+ const result = rxHex.exec(hex);
43
47
  return result ? `${parseInt(result[1], 16)} ${parseInt(result[2], 16)} ${parseInt(result[3], 16)}` : null;
44
48
  }
45
49
  export function getSlotsChildren(slots) {
package/package.json CHANGED
@@ -1,7 +1,8 @@
1
1
  {
2
2
  "name": "@nuxt/ui",
3
- "version": "2.18.4",
4
- "packageManager": "pnpm@9.6.0",
3
+ "description": "A UI Library for Modern Web Apps, powered by Vue & Tailwind CSS.",
4
+ "version": "2.18.6",
5
+ "packageManager": "pnpm@9.11.0",
5
6
  "repository": "nuxt/ui",
6
7
  "homepage": "https://ui.nuxt.com",
7
8
  "type": "module",
@@ -17,9 +18,6 @@
17
18
  "files": [
18
19
  "dist"
19
20
  ],
20
- "engines": {
21
- "node": ">=v16.20.2"
22
- },
23
21
  "scripts": {
24
22
  "build": "nuxt-module-build build",
25
23
  "prepack": "pnpm build",
@@ -28,58 +26,58 @@
28
26
  "build:docs": "nuxi generate docs",
29
27
  "lint": "eslint .",
30
28
  "lint:fix": "eslint . --fix",
31
- "typecheck": "vue-tsc --noEmit && nuxi typecheck docs",
29
+ "typecheck": "vue-tsc --noEmit",
32
30
  "dev:prepare": "nuxt-module-build build --stub && nuxt-module-build prepare && nuxi prepare docs",
33
31
  "release": "release-it",
34
32
  "test": "vitest"
35
33
  },
36
34
  "dependencies": {
37
35
  "@headlessui/tailwindcss": "^0.2.1",
38
- "@headlessui/vue": "^1.7.22",
39
- "@iconify-json/heroicons": "^1.1.23",
40
- "@nuxt/icon": "^1.4.0",
41
- "@nuxt/kit": "^3.12.4",
42
- "@nuxtjs/color-mode": "^3.4.2",
36
+ "@headlessui/vue": "^1.7.23",
37
+ "@iconify-json/heroicons": "^1.2.0",
38
+ "@nuxt/icon": "^1.5.1",
39
+ "@nuxt/kit": "^3.13.2",
40
+ "@nuxtjs/color-mode": "^3.5.1",
43
41
  "@nuxtjs/tailwindcss": "^6.12.1",
44
42
  "@popperjs/core": "^2.11.8",
45
43
  "@tailwindcss/aspect-ratio": "^0.4.2",
46
44
  "@tailwindcss/container-queries": "^0.1.1",
47
- "@tailwindcss/forms": "^0.5.7",
48
- "@tailwindcss/typography": "^0.5.13",
49
- "@vueuse/core": "^10.11.0",
50
- "@vueuse/integrations": "^10.11.0",
51
- "@vueuse/math": "^10.11.0",
45
+ "@tailwindcss/forms": "^0.5.9",
46
+ "@tailwindcss/typography": "^0.5.15",
47
+ "@vueuse/core": "^11.1.0",
48
+ "@vueuse/integrations": "^11.1.0",
49
+ "@vueuse/math": "^11.1.0",
52
50
  "defu": "^6.1.4",
53
- "fuse.js": "^6.6.2",
54
- "ohash": "^1.1.3",
51
+ "fuse.js": "^7.0.0",
52
+ "ohash": "^1.1.4",
55
53
  "pathe": "^1.1.2",
56
54
  "scule": "^1.3.0",
57
- "tailwind-merge": "^2.4.0",
58
- "tailwindcss": "^3.4.7"
55
+ "tailwind-merge": "^2.5.2",
56
+ "tailwindcss": "^3.4.12"
59
57
  },
60
58
  "devDependencies": {
61
59
  "@nuxt/eslint-config": "^0.4.0",
62
- "@nuxt/module-builder": "^0.8.1",
63
- "@nuxt/test-utils": "^3.14.0",
64
- "@release-it/conventional-changelog": "^8.0.1",
60
+ "@nuxt/module-builder": "^0.8.4",
61
+ "@nuxt/test-utils": "^3.14.2",
62
+ "@release-it/conventional-changelog": "^8.0.2",
65
63
  "@vue/test-utils": "^2.4.6",
66
64
  "eslint": "^8.57.0",
67
65
  "happy-dom": "^14.12.3",
68
66
  "joi": "^17.13.3",
69
- "nuxt": "^3.12.4",
67
+ "nuxt": "^3.13.2",
70
68
  "release-it": "^17.6.0",
71
69
  "unbuild": "^2.0.0",
72
- "valibot": "^0.36.0",
70
+ "valibot": "^0.42.1",
73
71
  "valibot30": "npm:valibot@0.30.0",
74
72
  "valibot31": "npm:valibot@0.31.0",
75
- "vitest": "^2.0.4",
76
- "vitest-environment-nuxt": "^1.0.0",
77
- "vue-tsc": "^2.0.29",
73
+ "vitest": "^2.1.1",
74
+ "vitest-environment-nuxt": "^1.0.1",
75
+ "vue-tsc": "^2.1.6",
78
76
  "yup": "^1.4.0",
79
77
  "zod": "^3.23.8"
80
78
  },
81
79
  "resolutions": {
82
80
  "@nuxt/ui": "workspace:*",
83
- "nuxt-component-meta": "0.6.4"
81
+ "@nuxtjs/mdc": "0.9.0"
84
82
  }
85
83
  }