@nuxt/ui 2.11.0 → 2.12.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 (159) hide show
  1. package/dist/module.d.mts +294 -48
  2. package/dist/module.d.ts +294 -48
  3. package/dist/module.json +1 -1
  4. package/dist/module.mjs +6 -4
  5. package/dist/runtime/components/data/Table.vue +29 -21
  6. package/dist/runtime/components/data/Table.vue.d.ts +28 -19
  7. package/dist/runtime/components/elements/Accordion.vue +10 -6
  8. package/dist/runtime/components/elements/Accordion.vue.d.ts +11 -11
  9. package/dist/runtime/components/elements/Alert.vue +12 -6
  10. package/dist/runtime/components/elements/Alert.vue.d.ts +12 -17
  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 +9 -8
  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 +9 -9
  23. package/dist/runtime/components/elements/Dropdown.vue +68 -19
  24. package/dist/runtime/components/elements/Dropdown.vue.d.ts +37 -9
  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/Link.vue +2 -2
  28. package/dist/runtime/components/elements/Meter.vue +2 -2
  29. package/dist/runtime/components/elements/Meter.vue.d.ts +7 -7
  30. package/dist/runtime/components/elements/MeterGroup.d.ts +9 -9
  31. package/dist/runtime/components/elements/MeterGroup.mjs +8 -21
  32. package/dist/runtime/components/elements/Progress.vue +5 -94
  33. package/dist/runtime/components/elements/Progress.vue.d.ts +123 -1
  34. package/dist/runtime/components/forms/Checkbox.vue +7 -7
  35. package/dist/runtime/components/forms/Checkbox.vue.d.ts +8 -8
  36. package/dist/runtime/components/forms/Form.vue +17 -8
  37. package/dist/runtime/components/forms/Form.vue.d.ts +1 -1
  38. package/dist/runtime/components/forms/FormGroup.vue +2 -2
  39. package/dist/runtime/components/forms/FormGroup.vue.d.ts +7 -7
  40. package/dist/runtime/components/forms/Input.vue +8 -8
  41. package/dist/runtime/components/forms/Input.vue.d.ts +11 -11
  42. package/dist/runtime/components/forms/InputMenu.vue +410 -0
  43. package/dist/runtime/components/forms/InputMenu.vue.d.ts +331 -0
  44. package/dist/runtime/components/forms/Radio.vue +7 -7
  45. package/dist/runtime/components/forms/Radio.vue.d.ts +7 -7
  46. package/dist/runtime/components/forms/RadioGroup.vue +5 -5
  47. package/dist/runtime/components/forms/RadioGroup.vue.d.ts +13 -13
  48. package/dist/runtime/components/forms/Range.vue +5 -5
  49. package/dist/runtime/components/forms/Range.vue.d.ts +8 -8
  50. package/dist/runtime/components/forms/Select.vue +8 -8
  51. package/dist/runtime/components/forms/Select.vue.d.ts +10 -10
  52. package/dist/runtime/components/forms/SelectMenu.vue +69 -36
  53. package/dist/runtime/components/forms/SelectMenu.vue.d.ts +40 -20
  54. package/dist/runtime/components/forms/Textarea.vue +3 -3
  55. package/dist/runtime/components/forms/Textarea.vue.d.ts +10 -10
  56. package/dist/runtime/components/forms/Toggle.vue +10 -10
  57. package/dist/runtime/components/forms/Toggle.vue.d.ts +16 -15
  58. package/dist/runtime/components/layout/Card.vue +2 -2
  59. package/dist/runtime/components/layout/Card.vue.d.ts +7 -7
  60. package/dist/runtime/components/layout/Container.vue +2 -2
  61. package/dist/runtime/components/layout/Container.vue.d.ts +7 -7
  62. package/dist/runtime/components/layout/Divider.vue +3 -8
  63. package/dist/runtime/components/layout/Divider.vue.d.ts +7 -7
  64. package/dist/runtime/components/layout/Skeleton.vue +2 -2
  65. package/dist/runtime/components/layout/Skeleton.vue.d.ts +7 -7
  66. package/dist/runtime/components/navigation/Breadcrumb.vue +9 -6
  67. package/dist/runtime/components/navigation/Breadcrumb.vue.d.ts +10 -7
  68. package/dist/runtime/components/navigation/CommandPalette.vue +42 -33
  69. package/dist/runtime/components/navigation/CommandPalette.vue.d.ts +16 -9
  70. package/dist/runtime/components/navigation/CommandPaletteGroup.vue +1 -3
  71. package/dist/runtime/components/navigation/Pagination.vue +16 -11
  72. package/dist/runtime/components/navigation/Pagination.vue.d.ts +16 -7
  73. package/dist/runtime/components/navigation/Tabs.vue +8 -5
  74. package/dist/runtime/components/navigation/Tabs.vue.d.ts +9 -9
  75. package/dist/runtime/components/navigation/VerticalNavigation.vue +56 -39
  76. package/dist/runtime/components/navigation/VerticalNavigation.vue.d.ts +14 -10
  77. package/dist/runtime/components/overlays/ContextMenu.vue +4 -3
  78. package/dist/runtime/components/overlays/ContextMenu.vue.d.ts +7 -7
  79. package/dist/runtime/components/overlays/Modal.vue +3 -6
  80. package/dist/runtime/components/overlays/Modal.vue.d.ts +8 -8
  81. package/dist/runtime/components/overlays/Notification.vue +7 -7
  82. package/dist/runtime/components/overlays/Notification.vue.d.ts +7 -7
  83. package/dist/runtime/components/overlays/Notifications.vue +2 -2
  84. package/dist/runtime/components/overlays/Notifications.vue.d.ts +7 -7
  85. package/dist/runtime/components/overlays/Popover.vue +54 -17
  86. package/dist/runtime/components/overlays/Popover.vue.d.ts +21 -11
  87. package/dist/runtime/components/overlays/Slideover.vue +6 -6
  88. package/dist/runtime/components/overlays/Slideover.vue.d.ts +8 -8
  89. package/dist/runtime/components/overlays/Tooltip.vue +6 -5
  90. package/dist/runtime/components/overlays/Tooltip.vue.d.ts +7 -7
  91. package/dist/runtime/composables/useFormGroup.d.ts +3 -3
  92. package/dist/runtime/composables/useFormGroup.mjs +1 -1
  93. package/dist/runtime/composables/useShortcuts.mjs +3 -1
  94. package/dist/runtime/composables/useUI.d.ts +3 -3
  95. package/dist/runtime/types/alert.d.ts +5 -0
  96. package/dist/runtime/types/breadcrumb.d.ts +3 -0
  97. package/dist/runtime/types/dropdown.d.ts +2 -0
  98. package/dist/runtime/types/form.d.ts +2 -1
  99. package/dist/runtime/types/popper.d.ts +2 -0
  100. package/dist/runtime/types/utils.d.ts +4 -4
  101. package/dist/runtime/types/vertical-navigation.d.ts +1 -0
  102. package/dist/runtime/ui.config/data/table.d.ts +2 -2
  103. package/dist/runtime/ui.config/elements/accordion.d.ts +1 -1
  104. package/dist/runtime/ui.config/elements/alert.d.ts +5 -4
  105. package/dist/runtime/ui.config/elements/alert.mjs +1 -0
  106. package/dist/runtime/ui.config/elements/button.d.ts +4 -0
  107. package/dist/runtime/ui.config/elements/button.mjs +4 -0
  108. package/dist/runtime/ui.config/elements/buttonGroup.d.ts +92 -0
  109. package/dist/runtime/ui.config/elements/buttonGroup.mjs +12 -1
  110. package/dist/runtime/ui.config/elements/dropdown.d.ts +3 -1
  111. package/dist/runtime/ui.config/elements/dropdown.mjs +4 -2
  112. package/dist/runtime/ui.config/elements/meterGroup.d.ts +40 -0
  113. package/dist/runtime/ui.config/elements/meterGroup.mjs +14 -1
  114. package/dist/runtime/ui.config/forms/checkbox.d.ts +3 -0
  115. package/dist/runtime/ui.config/forms/checkbox.mjs +3 -0
  116. package/dist/runtime/ui.config/forms/input.d.ts +2 -0
  117. package/dist/runtime/ui.config/forms/input.mjs +14 -12
  118. package/dist/runtime/ui.config/forms/inputMenu.d.ts +64 -0
  119. package/dist/runtime/ui.config/forms/inputMenu.mjs +62 -0
  120. package/dist/runtime/ui.config/forms/radio.d.ts +3 -0
  121. package/dist/runtime/ui.config/forms/radio.mjs +3 -0
  122. package/dist/runtime/ui.config/forms/select.d.ts +2 -0
  123. package/dist/runtime/ui.config/forms/select.mjs +1 -0
  124. package/dist/runtime/ui.config/forms/selectMenu.d.ts +18 -11
  125. package/dist/runtime/ui.config/forms/selectMenu.mjs +12 -41
  126. package/dist/runtime/ui.config/forms/textarea.d.ts +2 -0
  127. package/dist/runtime/ui.config/forms/textarea.mjs +1 -0
  128. package/dist/runtime/ui.config/index.d.ts +1 -0
  129. package/dist/runtime/ui.config/index.mjs +1 -0
  130. package/dist/runtime/ui.config/layout/card.mjs +1 -1
  131. package/dist/runtime/ui.config/layout/divider.d.ts +6 -1
  132. package/dist/runtime/ui.config/layout/divider.mjs +5 -0
  133. package/dist/runtime/ui.config/navigation/breadcrumb.d.ts +1 -0
  134. package/dist/runtime/ui.config/navigation/breadcrumb.mjs +2 -1
  135. package/dist/runtime/ui.config/navigation/commandPalette.d.ts +5 -1
  136. package/dist/runtime/ui.config/navigation/commandPalette.mjs +5 -1
  137. package/dist/runtime/ui.config/navigation/pagination.d.ts +6 -6
  138. package/dist/runtime/ui.config/navigation/verticalNavigation.d.ts +6 -1
  139. package/dist/runtime/ui.config/navigation/verticalNavigation.mjs +5 -0
  140. package/dist/runtime/ui.config/overlays/contextMenu.mjs +1 -1
  141. package/dist/runtime/ui.config/overlays/modal.d.ts +1 -0
  142. package/dist/runtime/ui.config/overlays/modal.mjs +3 -2
  143. package/dist/runtime/ui.config/overlays/notification.d.ts +5 -4
  144. package/dist/runtime/ui.config/overlays/notification.mjs +1 -0
  145. package/dist/runtime/ui.config/overlays/popover.d.ts +1 -0
  146. package/dist/runtime/ui.config/overlays/popover.mjs +2 -1
  147. package/dist/runtime/ui.config/overlays/slideover.d.ts +5 -0
  148. package/dist/runtime/ui.config/overlays/slideover.mjs +5 -0
  149. package/dist/runtime/ui.config/overlays/tooltip.d.ts +1 -0
  150. package/dist/runtime/ui.config/overlays/tooltip.mjs +2 -1
  151. package/dist/runtime/ui.config/{_popperArrow.d.ts → popper.d.ts} +1 -2
  152. package/dist/runtime/ui.config/popper.mjs +9 -0
  153. package/dist/runtime/ui.css +1 -13
  154. package/dist/runtime/utils/index.mjs +11 -3
  155. package/dist/runtime/utils/uid.mjs +2 -1
  156. package/dist/types.d.mts +2 -2
  157. package/dist/types.d.ts +1 -1
  158. package/package.json +29 -28
  159. package/dist/runtime/ui.config/_popperArrow.mjs +0 -8
@@ -13,6 +13,7 @@ export { default as progress } from "./elements/progress.mjs";
13
13
  export { default as meter } from "./elements/meter.mjs";
14
14
  export { default as meterGroup } from "./elements/meterGroup.mjs";
15
15
  export { default as input } from "./forms/input.mjs";
16
+ export { default as inputMenu } from "./forms/inputMenu.mjs";
16
17
  export { default as formGroup } from "./forms/formGroup.mjs";
17
18
  export { default as textarea } from "./forms/textarea.mjs";
18
19
  export { default as select } from "./forms/select.mjs";
@@ -1,5 +1,5 @@
1
1
  export default {
2
- base: "overflow-hidden",
2
+ base: "",
3
3
  background: "bg-white dark:bg-gray-900",
4
4
  divide: "divide-y divide-gray-200 dark:divide-gray-800",
5
5
  ring: "ring-1 ring-gray-200 dark:ring-gray-800",
@@ -17,13 +17,18 @@ declare const _default: {
17
17
  horizontal: string;
18
18
  vertical: string;
19
19
  };
20
+ type: {
21
+ solid: string;
22
+ dotted: string;
23
+ dashed: string;
24
+ };
20
25
  };
21
26
  icon: {
22
27
  base: string;
23
28
  };
24
29
  avatar: {
25
30
  base: string;
26
- size: string;
31
+ size: "2xs";
27
32
  };
28
33
  label: string;
29
34
  };
@@ -16,6 +16,11 @@ export default {
16
16
  size: {
17
17
  horizontal: "border-t",
18
18
  vertical: "border-s"
19
+ },
20
+ type: {
21
+ solid: "border-solid",
22
+ dotted: "border-dotted",
23
+ dashed: "border-dashed"
19
24
  }
20
25
  },
21
26
  icon: {
@@ -3,6 +3,7 @@ declare const _default: {
3
3
  ol: string;
4
4
  li: string;
5
5
  base: string;
6
+ label: string;
6
7
  icon: {
7
8
  base: string;
8
9
  active: string;
@@ -3,6 +3,7 @@ export default {
3
3
  ol: "flex items-center gap-x-1.5",
4
4
  li: "flex items-center gap-x-1.5 text-gray-500 dark:text-gray-400 text-sm",
5
5
  base: "flex items-center gap-x-1.5 group font-semibold",
6
+ label: "",
6
7
  icon: {
7
8
  base: "flex-shrink-0 w-4 h-4",
8
9
  active: "",
@@ -14,6 +15,6 @@ export default {
14
15
  active: "text-primary-500 dark:text-primary-400",
15
16
  inactive: " hover:text-gray-700 dark:hover:text-gray-200",
16
17
  default: {
17
- divider: "i-heroicons-chevron-right-20-solid"
18
+ divider: "i-heroicons-chevron-right-20-solid rtl:i-heroicons-chevron-left-20-solid"
18
19
  }
19
20
  };
@@ -9,10 +9,14 @@ declare const _default: {
9
9
  size: string;
10
10
  icon: {
11
11
  base: string;
12
+ loading: string;
12
13
  size: string;
13
14
  padding: string;
14
15
  };
15
- closeButton: string;
16
+ closeButton: {
17
+ base: string;
18
+ padding: string;
19
+ };
16
20
  };
17
21
  emptyState: {
18
22
  wrapper: string;
@@ -9,10 +9,14 @@ export default {
9
9
  size: "sm:text-sm",
10
10
  icon: {
11
11
  base: "pointer-events-none absolute start-4 text-gray-400 dark:text-gray-500",
12
+ loading: "animate-spin",
12
13
  size: "h-4 w-4",
13
14
  padding: "ps-10"
14
15
  },
15
- closeButton: "absolute end-4"
16
+ closeButton: {
17
+ base: "absolute end-4",
18
+ padding: "pe-10"
19
+ }
16
20
  },
17
21
  emptyState: {
18
22
  wrapper: "flex flex-col items-center justify-center flex-1 px-6 py-14 sm:px-14",
@@ -5,28 +5,28 @@ declare const _default: {
5
5
  default: {
6
6
  size: string;
7
7
  activeButton: {
8
- color: string;
8
+ color: "primary";
9
9
  };
10
10
  inactiveButton: {
11
- color: string;
11
+ color: "white";
12
12
  };
13
13
  firstButton: {
14
- color: string;
14
+ color: "white";
15
15
  class: string;
16
16
  icon: string;
17
17
  };
18
18
  lastButton: {
19
- color: string;
19
+ color: "white";
20
20
  class: string;
21
21
  icon: string;
22
22
  };
23
23
  prevButton: {
24
- color: string;
24
+ color: "white";
25
25
  class: string;
26
26
  icon: string;
27
27
  };
28
28
  nextButton: {
29
- color: string;
29
+ color: "white";
30
30
  class: string;
31
31
  icon: string;
32
32
  };
@@ -17,12 +17,17 @@ declare const _default: {
17
17
  };
18
18
  avatar: {
19
19
  base: string;
20
- size: string;
20
+ size: "3xs";
21
21
  };
22
22
  badge: {
23
23
  base: string;
24
24
  active: string;
25
25
  inactive: string;
26
26
  };
27
+ divider: {
28
+ wrapper: {
29
+ base: string;
30
+ };
31
+ };
27
32
  };
28
33
  export default _default;
@@ -23,5 +23,10 @@ export default {
23
23
  base: "relative ms-auto inline-block py-0.5 px-2 text-xs rounded-md -me-1 -my-0.5",
24
24
  active: "bg-white dark:bg-gray-900",
25
25
  inactive: "bg-gray-100 dark:bg-gray-800 text-gray-900 dark:text-white group-hover:bg-white dark:group-hover:bg-gray-900"
26
+ },
27
+ divider: {
28
+ wrapper: {
29
+ base: "p-2"
30
+ }
26
31
  }
27
32
  };
@@ -1,4 +1,4 @@
1
- import arrow from "../_popperArrow.mjs";
1
+ import { arrow } from "../popper.mjs";
2
2
  export default {
3
3
  wrapper: "relative",
4
4
  container: "z-20 group",
@@ -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;
@@ -0,0 +1,9 @@
1
+ export const arrow = {
2
+ base: "invisible before:visible before:block before:rotate-45 before:z-[-1] before:w-2 before:h-2",
3
+ ring: "before:ring-1 before:ring-gray-200 dark:before:ring-gray-800",
4
+ rounded: "before:rounded-sm",
5
+ background: "before:bg-gray-200 dark:before:bg-gray-800",
6
+ shadow: "before:shadow",
7
+ // eslint-disable-next-line quotes
8
+ placement: `group-data-[popper-placement*='right']:-left-1 group-data-[popper-placement*='left']:-right-1 group-data-[popper-placement*='top']:-bottom-1 group-data-[popper-placement*='bottom']:-top-1`
9
+ };
@@ -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}
@@ -1,12 +1,20 @@
1
1
  import { defu, createDefu } from "defu";
2
2
  import { extendTailwindMerge } from "tailwind-merge";
3
3
  const customTwMerge = extendTailwindMerge({
4
- classGroups: {
5
- icons: [(classPart) => /^i-/.test(classPart)]
4
+ extend: {
5
+ classGroups: {
6
+ icons: [(classPart) => /^i-/.test(classPart)]
7
+ }
6
8
  }
7
9
  });
8
10
  const defuTwMerge = createDefu((obj, key, value, namespace) => {
9
- if (namespace !== "default" && typeof obj[key] === "string" && typeof value === "string" && obj[key] && value) {
11
+ if (namespace === "default" || namespace.startsWith("default.")) {
12
+ return false;
13
+ }
14
+ if (namespace.endsWith("avatar") && key === "size") {
15
+ return false;
16
+ }
17
+ if (typeof obj[key] === "string" && typeof value === "string" && obj[key] && value) {
10
18
  obj[key] = customTwMerge(obj[key], value);
11
19
  return true;
12
20
  }
@@ -1,4 +1,5 @@
1
1
  let _id = 0;
2
2
  export function uid() {
3
- return `nuid-${_id++}`;
3
+ _id = (_id + 1) % Number.MAX_SAFE_INTEGER;
4
+ return `nuid-${_id}`;
4
5
  }
package/dist/types.d.mts CHANGED
@@ -1,5 +1,5 @@
1
1
 
2
- import type { ModuleOptions } from './module'
2
+ import type { ModuleOptions } from './module.js'
3
3
 
4
4
 
5
5
  declare module '@nuxt/schema' {
@@ -13,4 +13,4 @@ declare module 'nuxt/schema' {
13
13
  }
14
14
 
15
15
 
16
- export type { accordion, alert, avatar, avatarGroup, badge, breadcrumb, button, buttonGroup, card, checkbox, chip, commandPalette, container, contextMenu, divider, dropdown, formGroup, input, kbd, meter, meterGroup, modal, notification, notifications, pagination, popover, progress, radio, radioGroup, range, select, selectMenu, skeleton, slideover, table, tabs, textarea, toggle, tooltip, verticalNavigation } from './module'
16
+ export type { accordion, alert, avatar, avatarGroup, badge, breadcrumb, button, buttonGroup, card, checkbox, chip, commandPalette, container, contextMenu, divider, dropdown, formGroup, input, inputMenu, kbd, meter, meterGroup, modal, notification, notifications, pagination, popover, progress, radio, radioGroup, range, select, selectMenu, skeleton, slideover, table, tabs, textarea, toggle, tooltip, verticalNavigation } from './module.js'
package/dist/types.d.ts CHANGED
@@ -13,4 +13,4 @@ declare module 'nuxt/schema' {
13
13
  }
14
14
 
15
15
 
16
- export type { accordion, alert, avatar, avatarGroup, badge, breadcrumb, button, buttonGroup, card, checkbox, chip, commandPalette, container, contextMenu, divider, dropdown, formGroup, input, kbd, meter, meterGroup, modal, notification, notifications, pagination, popover, progress, radio, radioGroup, range, select, selectMenu, skeleton, slideover, table, tabs, textarea, toggle, tooltip, verticalNavigation } from './module'
16
+ export type { accordion, alert, avatar, avatarGroup, badge, breadcrumb, button, buttonGroup, card, checkbox, chip, commandPalette, container, contextMenu, divider, dropdown, formGroup, input, inputMenu, kbd, meter, meterGroup, modal, notification, notifications, pagination, popover, progress, radio, radioGroup, range, select, selectMenu, skeleton, slideover, table, tabs, textarea, toggle, tooltip, verticalNavigation } from './module'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nuxt/ui",
3
- "version": "2.11.0",
3
+ "version": "2.12.0",
4
4
  "repository": "nuxt/ui",
5
5
  "homepage": "https://ui.nuxt.com",
6
6
  "license": "MIT",
@@ -32,53 +32,54 @@
32
32
  "test": "vitest"
33
33
  },
34
34
  "dependencies": {
35
- "@egoist/tailwindcss-icons": "^1.4.0",
35
+ "@egoist/tailwindcss-icons": "^1.7.2",
36
36
  "@headlessui/tailwindcss": "^0.2.0",
37
37
  "@headlessui/vue": "^1.7.16",
38
- "@iconify-json/heroicons": "^1.1.13",
39
- "@nuxt/kit": "^3.8.2",
38
+ "@iconify-json/heroicons": "^1.1.19",
39
+ "@nuxt/kit": "^3.9.1",
40
40
  "@nuxtjs/color-mode": "^3.3.2",
41
- "@nuxtjs/tailwindcss": "^6.10.0",
41
+ "@nuxtjs/tailwindcss": "^6.10.3",
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",
50
- "defu": "^6.1.3",
47
+ "@vueuse/core": "^10.7.1",
48
+ "@vueuse/integrations": "^10.7.1",
49
+ "@vueuse/math": "^10.7.1",
50
+ "defu": "^6.1.4",
51
51
  "fuse.js": "^6.6.2",
52
- "nuxt-icon": "^0.6.6",
52
+ "nuxt-icon": "^0.6.8",
53
53
  "ohash": "^1.1.3",
54
54
  "pathe": "^1.1.1",
55
- "scule": "^1.1.0",
56
- "tailwind-merge": "^1.14.0",
57
- "tailwindcss": "^3.3.5"
55
+ "scule": "^1.1.1",
56
+ "tailwind-merge": "^2.2.0",
57
+ "tailwindcss": "^3.4.1"
58
58
  },
59
59
  "devDependencies": {
60
60
  "@nuxt/eslint-config": "^0.2.0",
61
- "@nuxt/module-builder": "^0.5.4",
61
+ "@nuxt/module-builder": "^0.5.5",
62
+ "@nuxt/test-utils": "^3.9.0",
62
63
  "@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",
64
+ "@vue/test-utils": "^2.4.3",
65
+ "eslint": "^8.56.0",
66
66
  "happy-dom": "^12.10.3",
67
67
  "joi": "^17.11.0",
68
- "nuxt": "^3.8.2",
69
- "nuxt-vitest": "^0.11.5",
70
- "release-it": "^17.0.0",
71
- "typescript": "^5.3.2",
68
+ "nuxt": "^3.9.1",
69
+ "release-it": "^17.0.1",
70
+ "typescript": "^5.3.3",
72
71
  "unbuild": "^2.0.0",
73
- "valibot": "^0.21.0",
74
- "vitest": "^0.33.0",
75
- "vue-tsc": "^1.8.22",
76
- "yup": "^1.3.2",
72
+ "valibot": "^0.25.0",
73
+ "vitest": "^1.1.3",
74
+ "vitest-environment-nuxt": "^1.0.0",
75
+ "vue-tsc": "^1.8.27",
76
+ "yup": "^1.3.3",
77
77
  "zod": "^3.22.4"
78
78
  },
79
79
  "resolutions": {
80
- "@nuxt/kit": "3.8.2",
81
- "@nuxt/schema": "3.8.2",
82
- "vue": "3.3.8"
80
+ "@nuxt/kit": "3.9.1",
81
+ "@nuxt/schema": "3.9.1",
82
+ "vue": "3.3.13",
83
+ "tailwindcss": "3.4.1"
83
84
  }
84
85
  }
@@ -1,8 +0,0 @@
1
- export default {
2
- base: "before:w-2 before:h-2",
3
- ring: "before:ring-1 before:ring-gray-200 dark:before:ring-gray-800",
4
- rounded: "before:rounded-sm",
5
- background: "before:bg-gray-200 dark:before:bg-gray-800",
6
- shadow: "before:shadow",
7
- placement: 'group-data-[popper-placement*="right"]:-left-1 group-data-[popper-placement*="left"]:-right-1 group-data-[popper-placement*="top"]:-bottom-1 group-data-[popper-placement*="bottom"]:-top-1'
8
- };