@nuxt/ui 2.11.0 → 2.11.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 (140) hide show
  1. package/dist/module.d.mts +196 -22
  2. package/dist/module.d.ts +196 -22
  3. package/dist/module.json +1 -1
  4. package/dist/module.mjs +5 -3
  5. package/dist/runtime/components/data/Table.vue +3 -3
  6. package/dist/runtime/components/data/Table.vue.d.ts +7 -7
  7. package/dist/runtime/components/elements/Accordion.vue +2 -2
  8. package/dist/runtime/components/elements/Accordion.vue.d.ts +7 -7
  9. package/dist/runtime/components/elements/Alert.vue +6 -6
  10. package/dist/runtime/components/elements/Alert.vue.d.ts +7 -7
  11. package/dist/runtime/components/elements/Avatar.vue +2 -2
  12. package/dist/runtime/components/elements/Avatar.vue.d.ts +7 -7
  13. package/dist/runtime/components/elements/AvatarGroup.d.ts +7 -7
  14. package/dist/runtime/components/elements/AvatarGroup.mjs +2 -2
  15. package/dist/runtime/components/elements/Badge.vue +2 -2
  16. package/dist/runtime/components/elements/Badge.vue.d.ts +7 -7
  17. package/dist/runtime/components/elements/Button.vue +8 -6
  18. package/dist/runtime/components/elements/Button.vue.d.ts +8 -7
  19. package/dist/runtime/components/elements/ButtonGroup.d.ts +7 -7
  20. package/dist/runtime/components/elements/ButtonGroup.mjs +3 -16
  21. package/dist/runtime/components/elements/Chip.vue +2 -2
  22. package/dist/runtime/components/elements/Chip.vue.d.ts +7 -7
  23. package/dist/runtime/components/elements/Dropdown.vue +5 -5
  24. package/dist/runtime/components/elements/Dropdown.vue.d.ts +7 -7
  25. package/dist/runtime/components/elements/Kbd.vue +2 -2
  26. package/dist/runtime/components/elements/Kbd.vue.d.ts +7 -7
  27. package/dist/runtime/components/elements/Meter.vue +2 -2
  28. package/dist/runtime/components/elements/Meter.vue.d.ts +7 -7
  29. package/dist/runtime/components/elements/MeterGroup.d.ts +9 -9
  30. package/dist/runtime/components/elements/MeterGroup.mjs +8 -21
  31. package/dist/runtime/components/elements/Progress.vue +5 -94
  32. package/dist/runtime/components/elements/Progress.vue.d.ts +123 -1
  33. package/dist/runtime/components/forms/Checkbox.vue +7 -7
  34. package/dist/runtime/components/forms/Checkbox.vue.d.ts +8 -8
  35. package/dist/runtime/components/forms/Form.vue +1 -1
  36. package/dist/runtime/components/forms/FormGroup.vue +2 -2
  37. package/dist/runtime/components/forms/FormGroup.vue.d.ts +7 -7
  38. package/dist/runtime/components/forms/Input.vue +7 -7
  39. package/dist/runtime/components/forms/Input.vue.d.ts +10 -10
  40. package/dist/runtime/components/forms/Radio.vue +7 -7
  41. package/dist/runtime/components/forms/Radio.vue.d.ts +7 -7
  42. package/dist/runtime/components/forms/RadioGroup.vue +4 -4
  43. package/dist/runtime/components/forms/RadioGroup.vue.d.ts +13 -13
  44. package/dist/runtime/components/forms/Range.vue +5 -5
  45. package/dist/runtime/components/forms/Range.vue.d.ts +8 -8
  46. package/dist/runtime/components/forms/Select.vue +7 -7
  47. package/dist/runtime/components/forms/Select.vue.d.ts +9 -9
  48. package/dist/runtime/components/forms/SelectMenu.vue +18 -18
  49. package/dist/runtime/components/forms/SelectMenu.vue.d.ts +13 -13
  50. package/dist/runtime/components/forms/Textarea.vue +3 -3
  51. package/dist/runtime/components/forms/Textarea.vue.d.ts +10 -10
  52. package/dist/runtime/components/forms/Toggle.vue +9 -9
  53. package/dist/runtime/components/forms/Toggle.vue.d.ts +14 -14
  54. package/dist/runtime/components/layout/Card.vue +2 -2
  55. package/dist/runtime/components/layout/Card.vue.d.ts +7 -7
  56. package/dist/runtime/components/layout/Container.vue +2 -2
  57. package/dist/runtime/components/layout/Container.vue.d.ts +7 -7
  58. package/dist/runtime/components/layout/Divider.vue +3 -8
  59. package/dist/runtime/components/layout/Divider.vue.d.ts +7 -7
  60. package/dist/runtime/components/layout/Skeleton.vue +2 -2
  61. package/dist/runtime/components/layout/Skeleton.vue.d.ts +7 -7
  62. package/dist/runtime/components/navigation/Breadcrumb.vue +2 -2
  63. package/dist/runtime/components/navigation/Breadcrumb.vue.d.ts +7 -7
  64. package/dist/runtime/components/navigation/CommandPalette.vue +42 -33
  65. package/dist/runtime/components/navigation/CommandPalette.vue.d.ts +15 -8
  66. package/dist/runtime/components/navigation/CommandPaletteGroup.vue +1 -3
  67. package/dist/runtime/components/navigation/Pagination.vue +7 -7
  68. package/dist/runtime/components/navigation/Pagination.vue.d.ts +7 -7
  69. package/dist/runtime/components/navigation/Tabs.vue +8 -5
  70. package/dist/runtime/components/navigation/Tabs.vue.d.ts +9 -9
  71. package/dist/runtime/components/navigation/VerticalNavigation.vue +2 -2
  72. package/dist/runtime/components/navigation/VerticalNavigation.vue.d.ts +7 -7
  73. package/dist/runtime/components/overlays/ContextMenu.vue +4 -3
  74. package/dist/runtime/components/overlays/ContextMenu.vue.d.ts +7 -7
  75. package/dist/runtime/components/overlays/Modal.vue +3 -6
  76. package/dist/runtime/components/overlays/Modal.vue.d.ts +7 -7
  77. package/dist/runtime/components/overlays/Notification.vue +7 -7
  78. package/dist/runtime/components/overlays/Notification.vue.d.ts +7 -7
  79. package/dist/runtime/components/overlays/Notifications.vue +2 -2
  80. package/dist/runtime/components/overlays/Notifications.vue.d.ts +7 -7
  81. package/dist/runtime/components/overlays/Popover.vue +5 -4
  82. package/dist/runtime/components/overlays/Popover.vue.d.ts +7 -7
  83. package/dist/runtime/components/overlays/Slideover.vue +6 -6
  84. package/dist/runtime/components/overlays/Slideover.vue.d.ts +7 -7
  85. package/dist/runtime/components/overlays/Tooltip.vue +6 -5
  86. package/dist/runtime/components/overlays/Tooltip.vue.d.ts +7 -7
  87. package/dist/runtime/composables/useFormGroup.d.ts +3 -3
  88. package/dist/runtime/composables/useFormGroup.mjs +1 -1
  89. package/dist/runtime/composables/useUI.d.ts +3 -3
  90. package/dist/runtime/types/breadcrumb.d.ts +2 -0
  91. package/dist/runtime/types/form.d.ts +1 -1
  92. package/dist/runtime/types/popper.d.ts +2 -0
  93. package/dist/runtime/types/utils.d.ts +4 -4
  94. package/dist/runtime/ui.config/data/table.d.ts +2 -2
  95. package/dist/runtime/ui.config/elements/accordion.d.ts +1 -1
  96. package/dist/runtime/ui.config/elements/alert.d.ts +5 -4
  97. package/dist/runtime/ui.config/elements/alert.mjs +1 -0
  98. package/dist/runtime/ui.config/elements/button.d.ts +4 -0
  99. package/dist/runtime/ui.config/elements/button.mjs +4 -0
  100. package/dist/runtime/ui.config/elements/buttonGroup.d.ts +92 -0
  101. package/dist/runtime/ui.config/elements/buttonGroup.mjs +12 -1
  102. package/dist/runtime/ui.config/elements/dropdown.d.ts +3 -1
  103. package/dist/runtime/ui.config/elements/dropdown.mjs +4 -2
  104. package/dist/runtime/ui.config/elements/meterGroup.d.ts +40 -0
  105. package/dist/runtime/ui.config/elements/meterGroup.mjs +14 -1
  106. package/dist/runtime/ui.config/forms/checkbox.d.ts +3 -0
  107. package/dist/runtime/ui.config/forms/checkbox.mjs +3 -0
  108. package/dist/runtime/ui.config/forms/input.d.ts +2 -0
  109. package/dist/runtime/ui.config/forms/input.mjs +2 -0
  110. package/dist/runtime/ui.config/forms/radio.d.ts +3 -0
  111. package/dist/runtime/ui.config/forms/radio.mjs +3 -0
  112. package/dist/runtime/ui.config/forms/select.d.ts +2 -0
  113. package/dist/runtime/ui.config/forms/select.mjs +1 -0
  114. package/dist/runtime/ui.config/forms/selectMenu.d.ts +6 -1
  115. package/dist/runtime/ui.config/forms/selectMenu.mjs +7 -2
  116. package/dist/runtime/ui.config/forms/textarea.d.ts +2 -0
  117. package/dist/runtime/ui.config/forms/textarea.mjs +1 -0
  118. package/dist/runtime/ui.config/layout/divider.d.ts +6 -1
  119. package/dist/runtime/ui.config/layout/divider.mjs +5 -0
  120. package/dist/runtime/ui.config/navigation/breadcrumb.mjs +1 -1
  121. package/dist/runtime/ui.config/navigation/commandPalette.d.ts +5 -1
  122. package/dist/runtime/ui.config/navigation/commandPalette.mjs +5 -1
  123. package/dist/runtime/ui.config/navigation/pagination.d.ts +6 -6
  124. package/dist/runtime/ui.config/navigation/verticalNavigation.d.ts +1 -1
  125. package/dist/runtime/ui.config/overlays/contextMenu.mjs +1 -1
  126. package/dist/runtime/ui.config/overlays/modal.d.ts +1 -0
  127. package/dist/runtime/ui.config/overlays/modal.mjs +3 -2
  128. package/dist/runtime/ui.config/overlays/notification.d.ts +5 -4
  129. package/dist/runtime/ui.config/overlays/notification.mjs +1 -0
  130. package/dist/runtime/ui.config/overlays/popover.d.ts +1 -0
  131. package/dist/runtime/ui.config/overlays/popover.mjs +2 -1
  132. package/dist/runtime/ui.config/overlays/slideover.d.ts +5 -0
  133. package/dist/runtime/ui.config/overlays/slideover.mjs +5 -0
  134. package/dist/runtime/ui.config/overlays/tooltip.d.ts +1 -0
  135. package/dist/runtime/ui.config/overlays/tooltip.mjs +2 -1
  136. package/dist/runtime/ui.config/{_popperArrow.d.ts → popper.d.ts} +1 -2
  137. package/dist/runtime/ui.config/{_popperArrow.mjs → popper.mjs} +2 -2
  138. package/dist/runtime/ui.css +1 -13
  139. package/dist/runtime/utils/index.mjs +1 -1
  140. package/package.json +12 -14
@@ -23,6 +23,7 @@ declare const _default: {
23
23
  shadow: string;
24
24
  width: string;
25
25
  height: string;
26
+ fullscreen: string;
26
27
  transition: {
27
28
  enter: string;
28
29
  enterFrom: string;
@@ -4,7 +4,7 @@ export default {
4
4
  container: "flex min-h-full items-end sm:items-center justify-center text-center",
5
5
  padding: "p-4 sm:p-0",
6
6
  margin: "sm:my-8",
7
- base: "relative text-left rtl:text-right overflow-hidden w-full flex flex-col",
7
+ base: "relative text-left rtl:text-right overflow-hidden flex flex-col",
8
8
  overlay: {
9
9
  base: "fixed inset-0 transition-opacity",
10
10
  background: "bg-gray-200/75 dark:bg-gray-800/75",
@@ -22,8 +22,9 @@ export default {
22
22
  ring: "",
23
23
  rounded: "rounded-lg",
24
24
  shadow: "shadow-xl",
25
- width: "sm:max-w-lg",
25
+ width: "w-full sm:max-w-lg",
26
26
  height: "",
27
+ fullscreen: "w-screen h-screen",
27
28
  // Syntax for `<TransitionRoot>` component https://headlessui.com/vue/transition#basic-example
28
29
  transition: {
29
30
  enter: "ease-out duration-300",
@@ -1,6 +1,7 @@
1
1
  declare const _default: {
2
2
  wrapper: string;
3
3
  container: string;
4
+ inner: string;
4
5
  title: string;
5
6
  description: string;
6
7
  actions: string;
@@ -36,13 +37,13 @@ declare const _default: {
36
37
  timeout: number;
37
38
  closeButton: {
38
39
  icon: string;
39
- color: string;
40
- variant: string;
40
+ color: "gray";
41
+ variant: "link";
41
42
  padded: boolean;
42
43
  };
43
44
  actionButton: {
44
- size: string;
45
- color: string;
45
+ size: "xs";
46
+ color: "white";
46
47
  };
47
48
  };
48
49
  };
@@ -1,6 +1,7 @@
1
1
  export default {
2
2
  wrapper: "w-full pointer-events-auto",
3
3
  container: "relative overflow-hidden",
4
+ inner: "w-0 flex-1",
4
5
  title: "text-sm font-medium text-gray-900 dark:text-white",
5
6
  description: "mt-1 text-sm leading-4 text-gray-500 dark:text-gray-400",
6
7
  actions: "flex items-center gap-2 mt-3 flex-shrink-0",
@@ -1,6 +1,7 @@
1
1
  declare const _default: {
2
2
  wrapper: string;
3
3
  container: string;
4
+ trigger: string;
4
5
  width: string;
5
6
  background: string;
6
7
  shadow: string;
@@ -1,7 +1,8 @@
1
- import arrow from "../_popperArrow.mjs";
1
+ import { arrow } from "../popper.mjs";
2
2
  export default {
3
3
  wrapper: "relative",
4
4
  container: "z-50 group",
5
+ trigger: "inline-flex w-full",
5
6
  width: "",
6
7
  background: "bg-white dark:bg-gray-900",
7
8
  shadow: "shadow-lg",
@@ -19,6 +19,11 @@ declare const _default: {
19
19
  padding: string;
20
20
  shadow: string;
21
21
  width: string;
22
+ translate: {
23
+ base: string;
24
+ left: string;
25
+ right: string;
26
+ };
22
27
  transition: {
23
28
  enter: string;
24
29
  leave: string;
@@ -20,6 +20,11 @@ export default {
20
20
  padding: "",
21
21
  shadow: "shadow-xl",
22
22
  width: "w-screen max-w-md",
23
+ translate: {
24
+ base: "translate-x-0",
25
+ left: "-translate-x-full",
26
+ right: "translate-x-full"
27
+ },
23
28
  // Syntax for `<TransitionRoot>` component https://headlessui.com/vue/transition#basic-example
24
29
  transition: {
25
30
  enter: "transform transition ease-in-out duration-300",
@@ -9,6 +9,7 @@ declare const _default: {
9
9
  ring: string;
10
10
  base: string;
11
11
  shortcuts: string;
12
+ middot: string;
12
13
  transition: {
13
14
  enterActiveClass: string;
14
15
  enterFromClass: string;
@@ -1,4 +1,4 @@
1
- import arrow from "../_popperArrow.mjs";
1
+ import { arrow } from "../popper.mjs";
2
2
  export default {
3
3
  wrapper: "relative inline-flex",
4
4
  container: "z-20 group",
@@ -10,6 +10,7 @@ export default {
10
10
  ring: "ring-1 ring-gray-200 dark:ring-gray-800",
11
11
  base: "[@media(pointer:coarse)]:hidden h-6 px-2 py-1 text-xs font-normal truncate relative",
12
12
  shortcuts: "hidden md:inline-flex flex-shrink-0 gap-0.5",
13
+ middot: "mx-1 text-gray-700 dark:text-gray-200",
13
14
  // Syntax for `<Transition>` component https://vuejs.org/guide/built-ins/transition.html#css-based-transitions
14
15
  transition: {
15
16
  enterActiveClass: "transition ease-out duration-200",
@@ -1,4 +1,4 @@
1
- declare const _default: {
1
+ export declare const arrow: {
2
2
  base: string;
3
3
  ring: string;
4
4
  rounded: string;
@@ -6,4 +6,3 @@ declare const _default: {
6
6
  shadow: string;
7
7
  placement: string;
8
8
  };
9
- export default _default;
@@ -1,5 +1,5 @@
1
- export default {
2
- base: "before:w-2 before:h-2",
1
+ export const arrow = {
2
+ base: "invisible before:visible before:block before:rotate-45 before:z-[-1] before:w-2 before:h-2",
3
3
  ring: "before:ring-1 before:ring-gray-200 dark:before:ring-gray-800",
4
4
  rounded: "before:rounded-sm",
5
5
  background: "before:bg-gray-200 dark:before:bg-gray-800",
@@ -1,13 +1 @@
1
- .dark {
2
- color-scheme: dark;
3
- }
4
-
5
- a:focus-visible {
6
- @apply outline-primary;
7
- }
8
-
9
- ::selection { @apply bg-primary/40; }
10
-
11
- select {
12
- background-image: none;
13
- }
1
+ .dark{color-scheme:dark}a:focus-visible{@apply outline-primary}::-moz-selection{@apply bg-primary/40}::selection{@apply bg-primary/40}select{background-image:none}
@@ -6,7 +6,7 @@ const customTwMerge = extendTailwindMerge({
6
6
  }
7
7
  });
8
8
  const defuTwMerge = createDefu((obj, key, value, namespace) => {
9
- if (namespace !== "default" && typeof obj[key] === "string" && typeof value === "string" && obj[key] && value) {
9
+ if (namespace !== "default" && !namespace.startsWith("default.") && typeof obj[key] === "string" && typeof value === "string" && obj[key] && value) {
10
10
  obj[key] = customTwMerge(obj[key], value);
11
11
  return true;
12
12
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nuxt/ui",
3
- "version": "2.11.0",
3
+ "version": "2.11.1",
4
4
  "repository": "nuxt/ui",
5
5
  "homepage": "https://ui.nuxt.com",
6
6
  "license": "MIT",
@@ -35,44 +35,42 @@
35
35
  "@egoist/tailwindcss-icons": "^1.4.0",
36
36
  "@headlessui/tailwindcss": "^0.2.0",
37
37
  "@headlessui/vue": "^1.7.16",
38
- "@iconify-json/heroicons": "^1.1.13",
38
+ "@iconify-json/heroicons": "^1.1.15",
39
39
  "@nuxt/kit": "^3.8.2",
40
40
  "@nuxtjs/color-mode": "^3.3.2",
41
- "@nuxtjs/tailwindcss": "^6.10.0",
41
+ "@nuxtjs/tailwindcss": "^6.10.1",
42
42
  "@popperjs/core": "^2.11.8",
43
43
  "@tailwindcss/aspect-ratio": "^0.4.2",
44
44
  "@tailwindcss/container-queries": "^0.1.1",
45
45
  "@tailwindcss/forms": "^0.5.7",
46
46
  "@tailwindcss/typography": "^0.5.10",
47
- "@vueuse/core": "^10.6.1",
48
- "@vueuse/integrations": "^10.6.1",
49
- "@vueuse/math": "^10.6.1",
47
+ "@vueuse/core": "^10.7.0",
48
+ "@vueuse/integrations": "^10.7.0",
49
+ "@vueuse/math": "^10.7.0",
50
50
  "defu": "^6.1.3",
51
51
  "fuse.js": "^6.6.2",
52
- "nuxt-icon": "^0.6.6",
52
+ "nuxt-icon": "^0.6.7",
53
53
  "ohash": "^1.1.3",
54
54
  "pathe": "^1.1.1",
55
- "scule": "^1.1.0",
55
+ "scule": "^1.1.1",
56
56
  "tailwind-merge": "^1.14.0",
57
- "tailwindcss": "^3.3.5"
57
+ "tailwindcss": "^3.3.6"
58
58
  },
59
59
  "devDependencies": {
60
60
  "@nuxt/eslint-config": "^0.2.0",
61
61
  "@nuxt/module-builder": "^0.5.4",
62
62
  "@release-it/conventional-changelog": "^8.0.1",
63
- "@testing-library/vue": "^8.0.1",
64
- "@vitejs/plugin-vue": "^4.5.0",
65
- "eslint": "^8.54.0",
63
+ "eslint": "^8.55.0",
66
64
  "happy-dom": "^12.10.3",
67
65
  "joi": "^17.11.0",
68
66
  "nuxt": "^3.8.2",
69
67
  "nuxt-vitest": "^0.11.5",
70
68
  "release-it": "^17.0.0",
71
- "typescript": "^5.3.2",
69
+ "typescript": "^5.3.3",
72
70
  "unbuild": "^2.0.0",
73
71
  "valibot": "^0.21.0",
74
72
  "vitest": "^0.33.0",
75
- "vue-tsc": "^1.8.22",
73
+ "vue-tsc": "^1.8.25",
76
74
  "yup": "^1.3.2",
77
75
  "zod": "^3.22.4"
78
76
  },