@nuxt/ui 2.18.2 → 2.18.4

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 (127) hide show
  1. package/dist/module.d.mts +1 -1
  2. package/dist/module.d.ts +1 -1
  3. package/dist/module.json +1 -1
  4. package/dist/module.mjs +1 -1
  5. package/dist/runtime/components/data/Table.vue.d.ts +2 -2
  6. package/dist/runtime/components/elements/Accordion.vue.d.ts +2 -3
  7. package/dist/runtime/components/elements/Alert.vue.d.ts +4 -4
  8. package/dist/runtime/components/elements/Avatar.vue.d.ts +3 -3
  9. package/dist/runtime/components/elements/AvatarGroup.d.ts +1 -1
  10. package/dist/runtime/components/elements/Badge.vue.d.ts +2 -2
  11. package/dist/runtime/components/elements/Button.vue.d.ts +15 -15
  12. package/dist/runtime/components/elements/ButtonGroup.d.ts +1 -1
  13. package/dist/runtime/components/elements/Carousel.vue.d.ts +1 -1
  14. package/dist/runtime/components/elements/Chip.vue.d.ts +4 -4
  15. package/dist/runtime/components/elements/Dropdown.vue.d.ts +2 -2
  16. package/dist/runtime/components/elements/Kbd.vue.d.ts +1 -1
  17. package/dist/runtime/components/elements/Link.vue.d.ts +9 -9
  18. package/dist/runtime/components/elements/Meter.vue.d.ts +2 -2
  19. package/dist/runtime/components/elements/MeterGroup.d.ts +2 -2
  20. package/dist/runtime/components/elements/Progress.vue.d.ts +2 -2
  21. package/dist/runtime/components/forms/Checkbox.vue.d.ts +3 -3
  22. package/dist/runtime/components/forms/Form.vue +2 -5
  23. package/dist/runtime/components/forms/Form.vue.d.ts +1 -1
  24. package/dist/runtime/components/forms/FormGroup.vue.d.ts +2 -2
  25. package/dist/runtime/components/forms/Input.vue.d.ts +5 -5
  26. package/dist/runtime/components/forms/InputMenu.vue.d.ts +6 -6
  27. package/dist/runtime/components/forms/Radio.vue.d.ts +3 -3
  28. package/dist/runtime/components/forms/RadioGroup.vue.d.ts +3 -3
  29. package/dist/runtime/components/forms/Range.vue.d.ts +3 -3
  30. package/dist/runtime/components/forms/Select.vue.d.ts +5 -5
  31. package/dist/runtime/components/forms/SelectMenu.vue.d.ts +6 -6
  32. package/dist/runtime/components/forms/Textarea.vue.d.ts +4 -4
  33. package/dist/runtime/components/forms/Toggle.vue.d.ts +2 -2
  34. package/dist/runtime/components/layout/Card.vue.d.ts +1 -1
  35. package/dist/runtime/components/layout/Container.vue.d.ts +1 -1
  36. package/dist/runtime/components/layout/Divider.vue.d.ts +3 -3
  37. package/dist/runtime/components/layout/Skeleton.vue.d.ts +1 -1
  38. package/dist/runtime/components/navigation/Breadcrumb.vue.d.ts +1 -1
  39. package/dist/runtime/components/navigation/CommandPalette.vue.d.ts +1 -1
  40. package/dist/runtime/components/navigation/CommandPaletteGroup.vue.d.ts +1 -1
  41. package/dist/runtime/components/navigation/HorizontalNavigation.vue.d.ts +1 -1
  42. package/dist/runtime/components/navigation/Pagination.vue.d.ts +1 -1
  43. package/dist/runtime/components/navigation/Tabs.vue +5 -2
  44. package/dist/runtime/components/navigation/Tabs.vue.d.ts +2 -2
  45. package/dist/runtime/components/navigation/VerticalNavigation.vue.d.ts +1 -1
  46. package/dist/runtime/components/overlays/ContextMenu.vue.d.ts +2 -2
  47. package/dist/runtime/components/overlays/Modal.vue.d.ts +2 -2
  48. package/dist/runtime/components/overlays/Notification.vue.d.ts +4 -4
  49. package/dist/runtime/components/overlays/Notifications.vue.d.ts +5 -5
  50. package/dist/runtime/components/overlays/Popover.vue.d.ts +2 -2
  51. package/dist/runtime/components/overlays/Slideover.vue +1 -1
  52. package/dist/runtime/components/overlays/Slideover.vue.d.ts +3 -3
  53. package/dist/runtime/components/overlays/Tooltip.vue.d.ts +3 -3
  54. package/dist/runtime/composables/useFormGroup.d.ts +1 -1
  55. package/dist/runtime/composables/useFormGroup.js +13 -17
  56. package/dist/runtime/composables/usePopper.d.ts +6 -6
  57. package/dist/runtime/composables/useUI.d.ts +1 -1
  58. package/dist/runtime/plugins/colors.js +3 -3
  59. package/dist/runtime/types/accordion.d.ts +7 -6
  60. package/dist/runtime/types/alert.d.ts +10 -8
  61. package/dist/runtime/types/avatar.d.ts +15 -13
  62. package/dist/runtime/types/badge.d.ts +13 -11
  63. package/dist/runtime/types/breadcrumb.d.ts +8 -6
  64. package/dist/runtime/types/button.d.ts +29 -27
  65. package/dist/runtime/types/chip.d.ts +13 -11
  66. package/dist/runtime/types/clipboard.d.ts +1 -7
  67. package/dist/runtime/types/command-palette.d.ts +25 -23
  68. package/dist/runtime/types/component.d.ts +14 -17
  69. package/dist/runtime/types/divider.d.ts +3 -2
  70. package/dist/runtime/types/dropdown.d.ts +13 -12
  71. package/dist/runtime/types/form-group.d.ts +5 -4
  72. package/dist/runtime/types/form.d.ts +28 -29
  73. package/dist/runtime/types/horizontal-navigation.d.ts +11 -10
  74. package/dist/runtime/types/index.js +31 -31
  75. package/dist/runtime/types/input.d.ts +8 -7
  76. package/dist/runtime/types/kbd.d.ts +5 -4
  77. package/dist/runtime/types/link.d.ts +10 -9
  78. package/dist/runtime/types/meter.d.ts +5 -4
  79. package/dist/runtime/types/modal.d.ts +15 -13
  80. package/dist/runtime/types/notification.d.ts +20 -17
  81. package/dist/runtime/types/popper.d.ts +15 -13
  82. package/dist/runtime/types/progress.d.ts +6 -5
  83. package/dist/runtime/types/range.d.ts +7 -6
  84. package/dist/runtime/types/select.d.ts +8 -7
  85. package/dist/runtime/types/slideover.d.ts +12 -10
  86. package/dist/runtime/types/tabs.d.ts +6 -6
  87. package/dist/runtime/types/textarea.d.ts +8 -7
  88. package/dist/runtime/types/toggle.d.ts +7 -6
  89. package/dist/runtime/types/tooltip.d.ts +5 -5
  90. package/dist/runtime/types/utils.d.ts +31 -11
  91. package/dist/runtime/types/vertical-navigation.d.ts +11 -10
  92. package/dist/runtime/utils/colors.js +75 -67
  93. package/dist/runtime/utils/index.d.ts +1 -1
  94. package/dist/runtime/utils/link.d.ts +1 -1
  95. package/package.json +6 -6
  96. package/dist/runtime/types/accordion.js +0 -0
  97. package/dist/runtime/types/alert.js +0 -0
  98. package/dist/runtime/types/avatar.js +0 -0
  99. package/dist/runtime/types/badge.js +0 -0
  100. package/dist/runtime/types/breadcrumb.js +0 -0
  101. package/dist/runtime/types/button.js +0 -0
  102. package/dist/runtime/types/chip.js +0 -0
  103. package/dist/runtime/types/clipboard.js +0 -0
  104. package/dist/runtime/types/command-palette.js +0 -0
  105. package/dist/runtime/types/component.js +0 -0
  106. package/dist/runtime/types/divider.js +0 -0
  107. package/dist/runtime/types/dropdown.js +0 -0
  108. package/dist/runtime/types/form-group.js +0 -0
  109. package/dist/runtime/types/form.js +0 -0
  110. package/dist/runtime/types/horizontal-navigation.js +0 -0
  111. package/dist/runtime/types/input.js +0 -0
  112. package/dist/runtime/types/kbd.js +0 -0
  113. package/dist/runtime/types/link.js +0 -0
  114. package/dist/runtime/types/meter.js +0 -0
  115. package/dist/runtime/types/modal.js +0 -0
  116. package/dist/runtime/types/notification.js +0 -0
  117. package/dist/runtime/types/popper.js +0 -0
  118. package/dist/runtime/types/progress.js +0 -0
  119. package/dist/runtime/types/range.js +0 -0
  120. package/dist/runtime/types/select.js +0 -0
  121. package/dist/runtime/types/slideover.js +0 -0
  122. package/dist/runtime/types/tabs.js +0 -0
  123. package/dist/runtime/types/textarea.js +0 -0
  124. package/dist/runtime/types/toggle.js +0 -0
  125. package/dist/runtime/types/tooltip.js +0 -0
  126. package/dist/runtime/types/utils.js +0 -0
  127. package/dist/runtime/types/vertical-navigation.js +0 -0
@@ -1,7 +1,7 @@
1
1
  export interface Tooltip {
2
- text?: string;
3
- prevent?: boolean;
4
- shortcuts?: string[];
5
- openDelay?: number;
6
- closeDelay?: number;
2
+ text?: string
3
+ prevent?: boolean
4
+ shortcuts?: string[]
5
+ openDelay?: number
6
+ closeDelay?: number
7
7
  }
@@ -1,16 +1,36 @@
1
- export type Strategy = 'merge' | 'override';
1
+ export type Strategy = 'merge' | 'override'
2
+
2
3
  export interface TightMap<O = any> {
3
- [key: string]: TightMap | O;
4
+ [key: string]: TightMap | O
4
5
  }
6
+
5
7
  export type DeepPartial<T, O = any> = {
6
- [P in keyof T]?: T[P] extends object ? DeepPartial<T[P], O> : T[P];
8
+ [P in keyof T]?: T[P] extends object
9
+ ? DeepPartial<T[P], O>
10
+ : T[P];
7
11
  } & {
8
- [key: string]: O | TightMap<O>;
9
- };
12
+ [key: string]: O | TightMap<O>
13
+ }
14
+
10
15
  export type NestedKeyOf<ObjectType extends Record<string, any>> = {
11
- [Key in keyof ObjectType]: ObjectType[Key] extends Record<string, any> ? NestedKeyOf<ObjectType[Key]> : Key;
12
- }[keyof ObjectType];
13
- type DeepKey<T, Keys extends string[]> = Keys extends [infer First, ...infer Rest] ? First extends keyof T ? Rest extends string[] ? DeepKey<T[First], Rest> : never : never : T;
14
- export type ExtractDeepKey<T, Path extends string[]> = DeepKey<T, Path> extends infer Result ? Result extends Record<string, any> ? keyof Result : never : never;
15
- export type ExtractDeepObject<T, Path extends string[]> = DeepKey<T, Path> extends infer Result ? Result extends Record<string, any> ? Result : never : never;
16
- export {};
16
+ [Key in keyof ObjectType]: ObjectType[Key] extends Record<string, any>
17
+ ? NestedKeyOf<ObjectType[Key]>
18
+ : Key
19
+ }[keyof ObjectType]
20
+
21
+ type DeepKey<T, Keys extends string[]> =
22
+ Keys extends [infer First, ...infer Rest]
23
+ ? First extends keyof T
24
+ ? Rest extends string[]
25
+ ? DeepKey<T[First], Rest>
26
+ : never
27
+ : never
28
+ : T
29
+
30
+ export type ExtractDeepKey<T, Path extends string[]> = DeepKey<T, Path> extends infer Result
31
+ ? Result extends Record<string, any> ? keyof Result : never
32
+ : never
33
+
34
+ export type ExtractDeepObject<T, Path extends string[]> = DeepKey<T, Path> extends infer Result
35
+ ? Result extends Record<string, any> ? Result : never
36
+ : never
@@ -1,12 +1,13 @@
1
- import type { Link } from './link.js';
2
- import type { Avatar } from './avatar.js';
3
- import type { Badge } from './badge.js';
1
+ import type { Link } from './link'
2
+ import type { Avatar } from './avatar'
3
+ import type { Badge } from './badge'
4
+
4
5
  export interface VerticalNavigationLink extends Link {
5
- label: string;
6
- labelClass?: string;
7
- icon?: string;
8
- iconClass?: string;
9
- avatar?: Avatar;
10
- click?: (...args: any[]) => void;
11
- badge?: string | number | Badge;
6
+ label: string
7
+ labelClass?: string
8
+ icon?: string
9
+ iconClass?: string
10
+ avatar?: Avatar
11
+ click?: (...args: any[]) => void
12
+ badge?: string | number | Badge
12
13
  }
@@ -16,193 +16,193 @@ const colorsToExclude = [
16
16
  ];
17
17
  const safelistByComponent = {
18
18
  alert: (colorsAsRegex2) => [{
19
- pattern: new RegExp(`bg-(${colorsAsRegex2})-50`)
19
+ pattern: RegExp(`^bg-(${colorsAsRegex2})-50$`)
20
20
  }, {
21
- pattern: new RegExp(`bg-(${colorsAsRegex2})-400`),
21
+ pattern: RegExp(`^bg-(${colorsAsRegex2})-400$`),
22
22
  variants: ["dark"]
23
23
  }, {
24
- pattern: new RegExp(`bg-(${colorsAsRegex2})-500`)
24
+ pattern: RegExp(`^bg-(${colorsAsRegex2})-500$`)
25
25
  }, {
26
- pattern: new RegExp(`text-(${colorsAsRegex2})-400`),
26
+ pattern: RegExp(`^text-(${colorsAsRegex2})-400$`),
27
27
  variants: ["dark"]
28
28
  }, {
29
- pattern: new RegExp(`text-(${colorsAsRegex2})-500`)
29
+ pattern: RegExp(`^text-(${colorsAsRegex2})-500$`)
30
30
  }, {
31
- pattern: new RegExp(`ring-(${colorsAsRegex2})-400`),
31
+ pattern: RegExp(`^ring-(${colorsAsRegex2})-400$`),
32
32
  variants: ["dark"]
33
33
  }, {
34
- pattern: new RegExp(`ring-(${colorsAsRegex2})-500`)
34
+ pattern: RegExp(`^ring-(${colorsAsRegex2})-500$`)
35
35
  }],
36
36
  avatar: (colorsAsRegex2) => [{
37
- pattern: new RegExp(`bg-(${colorsAsRegex2})-400`),
37
+ pattern: RegExp(`^bg-(${colorsAsRegex2})-400$`),
38
38
  variants: ["dark"]
39
39
  }, {
40
- pattern: new RegExp(`bg-(${colorsAsRegex2})-500`)
40
+ pattern: RegExp(`^bg-(${colorsAsRegex2})-500$`)
41
41
  }],
42
42
  badge: (colorsAsRegex2) => [{
43
- pattern: new RegExp(`bg-(${colorsAsRegex2})-50`)
43
+ pattern: RegExp(`^bg-(${colorsAsRegex2})-50$`)
44
44
  }, {
45
- pattern: new RegExp(`bg-(${colorsAsRegex2})-400`),
45
+ pattern: RegExp(`^bg-(${colorsAsRegex2})-400$`),
46
46
  variants: ["dark"]
47
47
  }, {
48
- pattern: new RegExp(`bg-(${colorsAsRegex2})-500`)
48
+ pattern: RegExp(`^bg-(${colorsAsRegex2})-500$`)
49
49
  }, {
50
- pattern: new RegExp(`text-(${colorsAsRegex2})-400`),
50
+ pattern: RegExp(`^text-(${colorsAsRegex2})-400$`),
51
51
  variants: ["dark"]
52
52
  }, {
53
- pattern: new RegExp(`text-(${colorsAsRegex2})-500`)
53
+ pattern: RegExp(`^text-(${colorsAsRegex2})-500$`)
54
54
  }, {
55
- pattern: new RegExp(`ring-(${colorsAsRegex2})-400`),
55
+ pattern: RegExp(`^ring-(${colorsAsRegex2})-400$`),
56
56
  variants: ["dark"]
57
57
  }, {
58
- pattern: new RegExp(`ring-(${colorsAsRegex2})-500`)
58
+ pattern: RegExp(`^ring-(${colorsAsRegex2})-500$`)
59
59
  }],
60
60
  button: (colorsAsRegex2) => [{
61
- pattern: new RegExp(`bg-(${colorsAsRegex2})-50`),
61
+ pattern: RegExp(`^bg-(${colorsAsRegex2})-50$`),
62
62
  variants: ["hover", "disabled"]
63
63
  }, {
64
- pattern: new RegExp(`bg-(${colorsAsRegex2})-100`),
64
+ pattern: RegExp(`^bg-(${colorsAsRegex2})-100$`),
65
65
  variants: ["hover"]
66
66
  }, {
67
- pattern: new RegExp(`bg-(${colorsAsRegex2})-400`),
67
+ pattern: RegExp(`^bg-(${colorsAsRegex2})-400$`),
68
68
  variants: ["dark", "dark:disabled"]
69
69
  }, {
70
- pattern: new RegExp(`bg-(${colorsAsRegex2})-500`),
70
+ pattern: RegExp(`^bg-(${colorsAsRegex2})-500$`),
71
71
  variants: ["disabled", "dark:hover"]
72
72
  }, {
73
- pattern: new RegExp(`bg-(${colorsAsRegex2})-600`),
73
+ pattern: RegExp(`^bg-(${colorsAsRegex2})-600$`),
74
74
  variants: ["hover"]
75
75
  }, {
76
- pattern: new RegExp(`bg-(${colorsAsRegex2})-900`),
76
+ pattern: RegExp(`^bg-(${colorsAsRegex2})-900$`),
77
77
  variants: ["dark:hover"]
78
78
  }, {
79
- pattern: new RegExp(`bg-(${colorsAsRegex2})-950`),
79
+ pattern: RegExp(`^bg-(${colorsAsRegex2})-950$`),
80
80
  variants: ["dark", "dark:hover", "dark:disabled"]
81
81
  }, {
82
- pattern: new RegExp(`text-(${colorsAsRegex2})-400`),
82
+ pattern: RegExp(`^text-(${colorsAsRegex2})-400$`),
83
83
  variants: ["dark", "dark:disabled"]
84
84
  }, {
85
- pattern: new RegExp(`text-(${colorsAsRegex2})-500`),
85
+ pattern: RegExp(`^text-(${colorsAsRegex2})-500$`),
86
86
  variants: ["dark:hover", "disabled"]
87
87
  }, {
88
- pattern: new RegExp(`text-(${colorsAsRegex2})-600`),
88
+ pattern: RegExp(`^text-(${colorsAsRegex2})-600$`),
89
89
  variants: ["hover"]
90
90
  }, {
91
- pattern: new RegExp(`outline-(${colorsAsRegex2})-400`),
91
+ pattern: RegExp(`^outline-(${colorsAsRegex2})-400$`),
92
92
  variants: ["dark:focus-visible"]
93
93
  }, {
94
- pattern: new RegExp(`outline-(${colorsAsRegex2})-500`),
94
+ pattern: RegExp(`^outline-(${colorsAsRegex2})-500$`),
95
95
  variants: ["focus-visible"]
96
96
  }, {
97
- pattern: new RegExp(`ring-(${colorsAsRegex2})-400`),
97
+ pattern: RegExp(`^ring-(${colorsAsRegex2})-400$`),
98
98
  variants: ["dark:focus-visible"]
99
99
  }, {
100
- pattern: new RegExp(`ring-(${colorsAsRegex2})-500`),
100
+ pattern: RegExp(`^ring-(${colorsAsRegex2})-500$`),
101
101
  variants: ["focus-visible"]
102
102
  }],
103
103
  input: (colorsAsRegex2) => [{
104
- pattern: new RegExp(`text-(${colorsAsRegex2})-400`),
104
+ pattern: RegExp(`^text-(${colorsAsRegex2})-400$`),
105
105
  variants: ["dark"]
106
106
  }, {
107
- pattern: new RegExp(`text-(${colorsAsRegex2})-500`)
107
+ pattern: RegExp(`^text-(${colorsAsRegex2})-500$`)
108
108
  }, {
109
- pattern: new RegExp(`ring-(${colorsAsRegex2})-400`),
109
+ pattern: RegExp(`^ring-(${colorsAsRegex2})-400$`),
110
110
  variants: ["dark", "dark:focus"]
111
111
  }, {
112
- pattern: new RegExp(`ring-(${colorsAsRegex2})-500`),
112
+ pattern: RegExp(`^ring-(${colorsAsRegex2})-500$`),
113
113
  variants: ["focus"]
114
114
  }],
115
115
  radio: (colorsAsRegex2) => [{
116
- pattern: new RegExp(`text-(${colorsAsRegex2})-400`),
116
+ pattern: RegExp(`^text-(${colorsAsRegex2})-400$`),
117
117
  variants: ["dark"]
118
118
  }, {
119
- pattern: new RegExp(`text-(${colorsAsRegex2})-500`)
119
+ pattern: RegExp(`^text-(${colorsAsRegex2})-500$`)
120
120
  }, {
121
- pattern: new RegExp(`ring-(${colorsAsRegex2})-400`),
121
+ pattern: RegExp(`^ring-(${colorsAsRegex2})-400$`),
122
122
  variants: ["dark:focus-visible"]
123
123
  }, {
124
- pattern: new RegExp(`ring-(${colorsAsRegex2})-500`),
124
+ pattern: RegExp(`^ring-(${colorsAsRegex2})-500$`),
125
125
  variants: ["focus-visible"]
126
126
  }],
127
127
  checkbox: (colorsAsRegex2) => [{
128
- pattern: new RegExp(`text-(${colorsAsRegex2})-400`),
128
+ pattern: RegExp(`^text-(${colorsAsRegex2})-400$`),
129
129
  variants: ["dark"]
130
130
  }, {
131
- pattern: new RegExp(`text-(${colorsAsRegex2})-500`)
131
+ pattern: RegExp(`^text-(${colorsAsRegex2})-500$`)
132
132
  }, {
133
- pattern: new RegExp(`ring-(${colorsAsRegex2})-400`),
133
+ pattern: RegExp(`^ring-(${colorsAsRegex2})-400$`),
134
134
  variants: ["dark:focus-visible"]
135
135
  }, {
136
- pattern: new RegExp(`ring-(${colorsAsRegex2})-500`),
136
+ pattern: RegExp(`^ring-(${colorsAsRegex2})-500$`),
137
137
  variants: ["focus-visible"]
138
138
  }],
139
139
  toggle: (colorsAsRegex2) => [{
140
- pattern: new RegExp(`bg-(${colorsAsRegex2})-400`),
140
+ pattern: RegExp(`^bg-(${colorsAsRegex2})-400$`),
141
141
  variants: ["dark"]
142
142
  }, {
143
- pattern: new RegExp(`bg-(${colorsAsRegex2})-500`)
143
+ pattern: RegExp(`^bg-(${colorsAsRegex2})-500$`)
144
144
  }, {
145
- pattern: new RegExp(`text-(${colorsAsRegex2})-400`),
145
+ pattern: RegExp(`^text-(${colorsAsRegex2})-400$`),
146
146
  variants: ["dark"]
147
147
  }, {
148
- pattern: new RegExp(`text-(${colorsAsRegex2})-500`)
148
+ pattern: RegExp(`^text-(${colorsAsRegex2})-500$`)
149
149
  }, {
150
- pattern: new RegExp(`ring-(${colorsAsRegex2})-400`),
150
+ pattern: RegExp(`^ring-(${colorsAsRegex2})-400$`),
151
151
  variants: ["dark:focus-visible"]
152
152
  }, {
153
- pattern: new RegExp(`ring-(${colorsAsRegex2})-500`),
153
+ pattern: RegExp(`^ring-(${colorsAsRegex2})-500$`),
154
154
  variants: ["focus-visible"]
155
155
  }],
156
156
  range: (colorsAsRegex2) => [{
157
- pattern: new RegExp(`bg-(${colorsAsRegex2})-400`),
157
+ pattern: RegExp(`^bg-(${colorsAsRegex2})-400$`),
158
158
  variants: ["dark"]
159
159
  }, {
160
- pattern: new RegExp(`bg-(${colorsAsRegex2})-500`)
160
+ pattern: RegExp(`^bg-(${colorsAsRegex2})-500$`)
161
161
  }, {
162
- pattern: new RegExp(`text-(${colorsAsRegex2})-400`),
162
+ pattern: RegExp(`^text-(${colorsAsRegex2})-400$`),
163
163
  variants: ["dark"]
164
164
  }, {
165
- pattern: new RegExp(`text-(${colorsAsRegex2})-500`)
165
+ pattern: RegExp(`^text-(${colorsAsRegex2})-500$`)
166
166
  }, {
167
- pattern: new RegExp(`ring-(${colorsAsRegex2})-400`),
167
+ pattern: RegExp(`^ring-(${colorsAsRegex2})-400$`),
168
168
  variants: ["dark:focus-visible"]
169
169
  }, {
170
- pattern: new RegExp(`ring-(${colorsAsRegex2})-500`),
170
+ pattern: RegExp(`^ring-(${colorsAsRegex2})-500$`),
171
171
  variants: ["focus-visible"]
172
172
  }],
173
173
  progress: (colorsAsRegex2) => [{
174
- pattern: new RegExp(`text-(${colorsAsRegex2})-400`),
174
+ pattern: RegExp(`^text-(${colorsAsRegex2})-400$`),
175
175
  variants: ["dark"]
176
176
  }, {
177
- pattern: new RegExp(`text-(${colorsAsRegex2})-500`)
177
+ pattern: RegExp(`^text-(${colorsAsRegex2})-500$`)
178
178
  }],
179
179
  meter: (colorsAsRegex2) => [{
180
- pattern: new RegExp(`bg-(${colorsAsRegex2})-400`),
180
+ pattern: RegExp(`^bg-(${colorsAsRegex2})-400$`),
181
181
  variants: ["dark"]
182
182
  }, {
183
- pattern: new RegExp(`bg-(${colorsAsRegex2})-500`)
183
+ pattern: RegExp(`^bg-(${colorsAsRegex2})-500$`)
184
184
  }, {
185
- pattern: new RegExp(`text-(${colorsAsRegex2})-400`),
185
+ pattern: RegExp(`^text-(${colorsAsRegex2})-400$`),
186
186
  variants: ["dark"]
187
187
  }, {
188
- pattern: new RegExp(`text-(${colorsAsRegex2})-500`)
188
+ pattern: RegExp(`^text-(${colorsAsRegex2})-500$`)
189
189
  }],
190
190
  notification: (colorsAsRegex2) => [{
191
- pattern: new RegExp(`bg-(${colorsAsRegex2})-400`),
191
+ pattern: RegExp(`^bg-(${colorsAsRegex2})-400$`),
192
192
  variants: ["dark"]
193
193
  }, {
194
- pattern: new RegExp(`bg-(${colorsAsRegex2})-500`)
194
+ pattern: RegExp(`^bg-(${colorsAsRegex2})-500$`)
195
195
  }, {
196
- pattern: new RegExp(`text-(${colorsAsRegex2})-400`),
196
+ pattern: RegExp(`^text-(${colorsAsRegex2})-400$`),
197
197
  variants: ["dark"]
198
198
  }, {
199
- pattern: new RegExp(`text-(${colorsAsRegex2})-500`)
199
+ pattern: RegExp(`^text-(${colorsAsRegex2})-500$`)
200
200
  }],
201
201
  chip: (colorsAsRegex2) => [{
202
- pattern: new RegExp(`bg-(${colorsAsRegex2})-400`),
202
+ pattern: RegExp(`^bg-(${colorsAsRegex2})-400$`),
203
203
  variants: ["dark"]
204
204
  }, {
205
- pattern: new RegExp(`bg-(${colorsAsRegex2})-500`)
205
+ pattern: RegExp(`^bg-(${colorsAsRegex2})-500$`)
206
206
  }]
207
207
  };
208
208
  const safelistComponentAliasesMap = {
@@ -289,7 +289,15 @@ export const customSafelistExtractor = (prefix, content, colors, safelistColors)
289
289
  const matches2 = group.pattern.source.match(/\(([^)]+)\)/g);
290
290
  return matches2.map((match2) => {
291
291
  const colorOptions = match2.substring(1, match2.length - 1).split("|");
292
- return colorOptions.map((color2) => `${variant ? variant + ":" : ""}` + group.pattern.source.replace(match2, color2));
292
+ return colorOptions.map(
293
+ (color2) => {
294
+ const classesExtracted = group.pattern.source.replace(match2, color2).replace("^", "").replace("$", "");
295
+ if (variant) {
296
+ return `${variant}:${classesExtracted}`;
297
+ }
298
+ return classesExtracted;
299
+ }
300
+ );
293
301
  }).flat();
294
302
  });
295
303
  });
@@ -1,4 +1,4 @@
1
- import type { Strategy } from '../types.js';
1
+ import type { Strategy } from '../types/index.js';
2
2
  export declare function mergeConfig<T>(strategy: Strategy, ...configs: any[]): T;
3
3
  export declare function hexToRgb(hex: string): string;
4
4
  export declare function getSlotsChildren(slots: any): any;
@@ -18,7 +18,7 @@ export declare const nuxtLinkProps: {
18
18
  readonly required: false;
19
19
  };
20
20
  readonly rel: {
21
- readonly type: PropType<NuxtLinkProps["rel"]>;
21
+ readonly type: PropType<any>;
22
22
  readonly default: any;
23
23
  readonly required: false;
24
24
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@nuxt/ui",
3
- "version": "2.18.2",
4
- "packageManager": "pnpm@9.5.0",
3
+ "version": "2.18.4",
4
+ "packageManager": "pnpm@9.6.0",
5
5
  "repository": "nuxt/ui",
6
6
  "homepage": "https://ui.nuxt.com",
7
7
  "type": "module",
@@ -36,8 +36,8 @@
36
36
  "dependencies": {
37
37
  "@headlessui/tailwindcss": "^0.2.1",
38
38
  "@headlessui/vue": "^1.7.22",
39
- "@iconify-json/heroicons": "^1.1.22",
40
- "@nuxt/icon": "^1.3.1",
39
+ "@iconify-json/heroicons": "^1.1.23",
40
+ "@nuxt/icon": "^1.4.0",
41
41
  "@nuxt/kit": "^3.12.4",
42
42
  "@nuxtjs/color-mode": "^3.4.2",
43
43
  "@nuxtjs/tailwindcss": "^6.12.1",
@@ -58,9 +58,9 @@
58
58
  "tailwindcss": "^3.4.7"
59
59
  },
60
60
  "devDependencies": {
61
- "@nuxt/eslint-config": "^0.3.13",
61
+ "@nuxt/eslint-config": "^0.4.0",
62
62
  "@nuxt/module-builder": "^0.8.1",
63
- "@nuxt/test-utils": "^3.13.1",
63
+ "@nuxt/test-utils": "^3.14.0",
64
64
  "@release-it/conventional-changelog": "^8.0.1",
65
65
  "@vue/test-utils": "^2.4.6",
66
66
  "eslint": "^8.57.0",
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes