@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.
- package/dist/module.d.mts +1 -1
- package/dist/module.d.ts +1 -1
- package/dist/module.json +1 -1
- package/dist/module.mjs +1 -1
- package/dist/runtime/components/data/Table.vue.d.ts +2 -2
- package/dist/runtime/components/elements/Accordion.vue.d.ts +2 -3
- package/dist/runtime/components/elements/Alert.vue.d.ts +4 -4
- package/dist/runtime/components/elements/Avatar.vue.d.ts +3 -3
- package/dist/runtime/components/elements/AvatarGroup.d.ts +1 -1
- package/dist/runtime/components/elements/Badge.vue.d.ts +2 -2
- package/dist/runtime/components/elements/Button.vue.d.ts +15 -15
- package/dist/runtime/components/elements/ButtonGroup.d.ts +1 -1
- package/dist/runtime/components/elements/Carousel.vue.d.ts +1 -1
- package/dist/runtime/components/elements/Chip.vue.d.ts +4 -4
- package/dist/runtime/components/elements/Dropdown.vue.d.ts +2 -2
- package/dist/runtime/components/elements/Kbd.vue.d.ts +1 -1
- package/dist/runtime/components/elements/Link.vue.d.ts +9 -9
- package/dist/runtime/components/elements/Meter.vue.d.ts +2 -2
- package/dist/runtime/components/elements/MeterGroup.d.ts +2 -2
- package/dist/runtime/components/elements/Progress.vue.d.ts +2 -2
- package/dist/runtime/components/forms/Checkbox.vue.d.ts +3 -3
- package/dist/runtime/components/forms/Form.vue +2 -5
- package/dist/runtime/components/forms/Form.vue.d.ts +1 -1
- package/dist/runtime/components/forms/FormGroup.vue.d.ts +2 -2
- package/dist/runtime/components/forms/Input.vue.d.ts +5 -5
- package/dist/runtime/components/forms/InputMenu.vue.d.ts +6 -6
- package/dist/runtime/components/forms/Radio.vue.d.ts +3 -3
- package/dist/runtime/components/forms/RadioGroup.vue.d.ts +3 -3
- package/dist/runtime/components/forms/Range.vue.d.ts +3 -3
- package/dist/runtime/components/forms/Select.vue.d.ts +5 -5
- package/dist/runtime/components/forms/SelectMenu.vue.d.ts +6 -6
- package/dist/runtime/components/forms/Textarea.vue.d.ts +4 -4
- package/dist/runtime/components/forms/Toggle.vue.d.ts +2 -2
- package/dist/runtime/components/layout/Card.vue.d.ts +1 -1
- package/dist/runtime/components/layout/Container.vue.d.ts +1 -1
- package/dist/runtime/components/layout/Divider.vue.d.ts +3 -3
- package/dist/runtime/components/layout/Skeleton.vue.d.ts +1 -1
- package/dist/runtime/components/navigation/Breadcrumb.vue.d.ts +1 -1
- package/dist/runtime/components/navigation/CommandPalette.vue.d.ts +1 -1
- package/dist/runtime/components/navigation/CommandPaletteGroup.vue.d.ts +1 -1
- package/dist/runtime/components/navigation/HorizontalNavigation.vue.d.ts +1 -1
- package/dist/runtime/components/navigation/Pagination.vue.d.ts +1 -1
- package/dist/runtime/components/navigation/Tabs.vue +5 -2
- package/dist/runtime/components/navigation/Tabs.vue.d.ts +2 -2
- package/dist/runtime/components/navigation/VerticalNavigation.vue.d.ts +1 -1
- package/dist/runtime/components/overlays/ContextMenu.vue.d.ts +2 -2
- package/dist/runtime/components/overlays/Modal.vue.d.ts +2 -2
- package/dist/runtime/components/overlays/Notification.vue.d.ts +4 -4
- package/dist/runtime/components/overlays/Notifications.vue.d.ts +5 -5
- package/dist/runtime/components/overlays/Popover.vue.d.ts +2 -2
- package/dist/runtime/components/overlays/Slideover.vue +1 -1
- package/dist/runtime/components/overlays/Slideover.vue.d.ts +3 -3
- package/dist/runtime/components/overlays/Tooltip.vue.d.ts +3 -3
- package/dist/runtime/composables/useFormGroup.d.ts +1 -1
- package/dist/runtime/composables/useFormGroup.js +13 -17
- package/dist/runtime/composables/usePopper.d.ts +6 -6
- package/dist/runtime/composables/useUI.d.ts +1 -1
- package/dist/runtime/plugins/colors.js +3 -3
- package/dist/runtime/types/accordion.d.ts +7 -6
- package/dist/runtime/types/alert.d.ts +10 -8
- package/dist/runtime/types/avatar.d.ts +15 -13
- package/dist/runtime/types/badge.d.ts +13 -11
- package/dist/runtime/types/breadcrumb.d.ts +8 -6
- package/dist/runtime/types/button.d.ts +29 -27
- package/dist/runtime/types/chip.d.ts +13 -11
- package/dist/runtime/types/clipboard.d.ts +1 -7
- package/dist/runtime/types/command-palette.d.ts +25 -23
- package/dist/runtime/types/component.d.ts +14 -17
- package/dist/runtime/types/divider.d.ts +3 -2
- package/dist/runtime/types/dropdown.d.ts +13 -12
- package/dist/runtime/types/form-group.d.ts +5 -4
- package/dist/runtime/types/form.d.ts +28 -29
- package/dist/runtime/types/horizontal-navigation.d.ts +11 -10
- package/dist/runtime/types/index.js +31 -31
- package/dist/runtime/types/input.d.ts +8 -7
- package/dist/runtime/types/kbd.d.ts +5 -4
- package/dist/runtime/types/link.d.ts +10 -9
- package/dist/runtime/types/meter.d.ts +5 -4
- package/dist/runtime/types/modal.d.ts +15 -13
- package/dist/runtime/types/notification.d.ts +20 -17
- package/dist/runtime/types/popper.d.ts +15 -13
- package/dist/runtime/types/progress.d.ts +6 -5
- package/dist/runtime/types/range.d.ts +7 -6
- package/dist/runtime/types/select.d.ts +8 -7
- package/dist/runtime/types/slideover.d.ts +12 -10
- package/dist/runtime/types/tabs.d.ts +6 -6
- package/dist/runtime/types/textarea.d.ts +8 -7
- package/dist/runtime/types/toggle.d.ts +7 -6
- package/dist/runtime/types/tooltip.d.ts +5 -5
- package/dist/runtime/types/utils.d.ts +31 -11
- package/dist/runtime/types/vertical-navigation.d.ts +11 -10
- package/dist/runtime/utils/colors.js +75 -67
- package/dist/runtime/utils/index.d.ts +1 -1
- package/dist/runtime/utils/link.d.ts +1 -1
- package/package.json +6 -6
- package/dist/runtime/types/accordion.js +0 -0
- package/dist/runtime/types/alert.js +0 -0
- package/dist/runtime/types/avatar.js +0 -0
- package/dist/runtime/types/badge.js +0 -0
- package/dist/runtime/types/breadcrumb.js +0 -0
- package/dist/runtime/types/button.js +0 -0
- package/dist/runtime/types/chip.js +0 -0
- package/dist/runtime/types/clipboard.js +0 -0
- package/dist/runtime/types/command-palette.js +0 -0
- package/dist/runtime/types/component.js +0 -0
- package/dist/runtime/types/divider.js +0 -0
- package/dist/runtime/types/dropdown.js +0 -0
- package/dist/runtime/types/form-group.js +0 -0
- package/dist/runtime/types/form.js +0 -0
- package/dist/runtime/types/horizontal-navigation.js +0 -0
- package/dist/runtime/types/input.js +0 -0
- package/dist/runtime/types/kbd.js +0 -0
- package/dist/runtime/types/link.js +0 -0
- package/dist/runtime/types/meter.js +0 -0
- package/dist/runtime/types/modal.js +0 -0
- package/dist/runtime/types/notification.js +0 -0
- package/dist/runtime/types/popper.js +0 -0
- package/dist/runtime/types/progress.js +0 -0
- package/dist/runtime/types/range.js +0 -0
- package/dist/runtime/types/select.js +0 -0
- package/dist/runtime/types/slideover.js +0 -0
- package/dist/runtime/types/tabs.js +0 -0
- package/dist/runtime/types/textarea.js +0 -0
- package/dist/runtime/types/toggle.js +0 -0
- package/dist/runtime/types/tooltip.js +0 -0
- package/dist/runtime/types/utils.js +0 -0
- package/dist/runtime/types/vertical-navigation.js +0 -0
|
@@ -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
|
-
|
|
4
|
+
[key: string]: TightMap | O
|
|
4
5
|
}
|
|
6
|
+
|
|
5
7
|
export type DeepPartial<T, O = any> = {
|
|
6
|
-
|
|
8
|
+
[P in keyof T]?: T[P] extends object
|
|
9
|
+
? DeepPartial<T[P], O>
|
|
10
|
+
: T[P];
|
|
7
11
|
} & {
|
|
8
|
-
|
|
9
|
-
}
|
|
12
|
+
[key: string]: O | TightMap<O>
|
|
13
|
+
}
|
|
14
|
+
|
|
10
15
|
export type NestedKeyOf<ObjectType extends Record<string, any>> = {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
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
|
|
2
|
-
import type { Avatar } from './avatar
|
|
3
|
-
import type { Badge } from './badge
|
|
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
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
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:
|
|
19
|
+
pattern: RegExp(`^bg-(${colorsAsRegex2})-50$`)
|
|
20
20
|
}, {
|
|
21
|
-
pattern:
|
|
21
|
+
pattern: RegExp(`^bg-(${colorsAsRegex2})-400$`),
|
|
22
22
|
variants: ["dark"]
|
|
23
23
|
}, {
|
|
24
|
-
pattern:
|
|
24
|
+
pattern: RegExp(`^bg-(${colorsAsRegex2})-500$`)
|
|
25
25
|
}, {
|
|
26
|
-
pattern:
|
|
26
|
+
pattern: RegExp(`^text-(${colorsAsRegex2})-400$`),
|
|
27
27
|
variants: ["dark"]
|
|
28
28
|
}, {
|
|
29
|
-
pattern:
|
|
29
|
+
pattern: RegExp(`^text-(${colorsAsRegex2})-500$`)
|
|
30
30
|
}, {
|
|
31
|
-
pattern:
|
|
31
|
+
pattern: RegExp(`^ring-(${colorsAsRegex2})-400$`),
|
|
32
32
|
variants: ["dark"]
|
|
33
33
|
}, {
|
|
34
|
-
pattern:
|
|
34
|
+
pattern: RegExp(`^ring-(${colorsAsRegex2})-500$`)
|
|
35
35
|
}],
|
|
36
36
|
avatar: (colorsAsRegex2) => [{
|
|
37
|
-
pattern:
|
|
37
|
+
pattern: RegExp(`^bg-(${colorsAsRegex2})-400$`),
|
|
38
38
|
variants: ["dark"]
|
|
39
39
|
}, {
|
|
40
|
-
pattern:
|
|
40
|
+
pattern: RegExp(`^bg-(${colorsAsRegex2})-500$`)
|
|
41
41
|
}],
|
|
42
42
|
badge: (colorsAsRegex2) => [{
|
|
43
|
-
pattern:
|
|
43
|
+
pattern: RegExp(`^bg-(${colorsAsRegex2})-50$`)
|
|
44
44
|
}, {
|
|
45
|
-
pattern:
|
|
45
|
+
pattern: RegExp(`^bg-(${colorsAsRegex2})-400$`),
|
|
46
46
|
variants: ["dark"]
|
|
47
47
|
}, {
|
|
48
|
-
pattern:
|
|
48
|
+
pattern: RegExp(`^bg-(${colorsAsRegex2})-500$`)
|
|
49
49
|
}, {
|
|
50
|
-
pattern:
|
|
50
|
+
pattern: RegExp(`^text-(${colorsAsRegex2})-400$`),
|
|
51
51
|
variants: ["dark"]
|
|
52
52
|
}, {
|
|
53
|
-
pattern:
|
|
53
|
+
pattern: RegExp(`^text-(${colorsAsRegex2})-500$`)
|
|
54
54
|
}, {
|
|
55
|
-
pattern:
|
|
55
|
+
pattern: RegExp(`^ring-(${colorsAsRegex2})-400$`),
|
|
56
56
|
variants: ["dark"]
|
|
57
57
|
}, {
|
|
58
|
-
pattern:
|
|
58
|
+
pattern: RegExp(`^ring-(${colorsAsRegex2})-500$`)
|
|
59
59
|
}],
|
|
60
60
|
button: (colorsAsRegex2) => [{
|
|
61
|
-
pattern:
|
|
61
|
+
pattern: RegExp(`^bg-(${colorsAsRegex2})-50$`),
|
|
62
62
|
variants: ["hover", "disabled"]
|
|
63
63
|
}, {
|
|
64
|
-
pattern:
|
|
64
|
+
pattern: RegExp(`^bg-(${colorsAsRegex2})-100$`),
|
|
65
65
|
variants: ["hover"]
|
|
66
66
|
}, {
|
|
67
|
-
pattern:
|
|
67
|
+
pattern: RegExp(`^bg-(${colorsAsRegex2})-400$`),
|
|
68
68
|
variants: ["dark", "dark:disabled"]
|
|
69
69
|
}, {
|
|
70
|
-
pattern:
|
|
70
|
+
pattern: RegExp(`^bg-(${colorsAsRegex2})-500$`),
|
|
71
71
|
variants: ["disabled", "dark:hover"]
|
|
72
72
|
}, {
|
|
73
|
-
pattern:
|
|
73
|
+
pattern: RegExp(`^bg-(${colorsAsRegex2})-600$`),
|
|
74
74
|
variants: ["hover"]
|
|
75
75
|
}, {
|
|
76
|
-
pattern:
|
|
76
|
+
pattern: RegExp(`^bg-(${colorsAsRegex2})-900$`),
|
|
77
77
|
variants: ["dark:hover"]
|
|
78
78
|
}, {
|
|
79
|
-
pattern:
|
|
79
|
+
pattern: RegExp(`^bg-(${colorsAsRegex2})-950$`),
|
|
80
80
|
variants: ["dark", "dark:hover", "dark:disabled"]
|
|
81
81
|
}, {
|
|
82
|
-
pattern:
|
|
82
|
+
pattern: RegExp(`^text-(${colorsAsRegex2})-400$`),
|
|
83
83
|
variants: ["dark", "dark:disabled"]
|
|
84
84
|
}, {
|
|
85
|
-
pattern:
|
|
85
|
+
pattern: RegExp(`^text-(${colorsAsRegex2})-500$`),
|
|
86
86
|
variants: ["dark:hover", "disabled"]
|
|
87
87
|
}, {
|
|
88
|
-
pattern:
|
|
88
|
+
pattern: RegExp(`^text-(${colorsAsRegex2})-600$`),
|
|
89
89
|
variants: ["hover"]
|
|
90
90
|
}, {
|
|
91
|
-
pattern:
|
|
91
|
+
pattern: RegExp(`^outline-(${colorsAsRegex2})-400$`),
|
|
92
92
|
variants: ["dark:focus-visible"]
|
|
93
93
|
}, {
|
|
94
|
-
pattern:
|
|
94
|
+
pattern: RegExp(`^outline-(${colorsAsRegex2})-500$`),
|
|
95
95
|
variants: ["focus-visible"]
|
|
96
96
|
}, {
|
|
97
|
-
pattern:
|
|
97
|
+
pattern: RegExp(`^ring-(${colorsAsRegex2})-400$`),
|
|
98
98
|
variants: ["dark:focus-visible"]
|
|
99
99
|
}, {
|
|
100
|
-
pattern:
|
|
100
|
+
pattern: RegExp(`^ring-(${colorsAsRegex2})-500$`),
|
|
101
101
|
variants: ["focus-visible"]
|
|
102
102
|
}],
|
|
103
103
|
input: (colorsAsRegex2) => [{
|
|
104
|
-
pattern:
|
|
104
|
+
pattern: RegExp(`^text-(${colorsAsRegex2})-400$`),
|
|
105
105
|
variants: ["dark"]
|
|
106
106
|
}, {
|
|
107
|
-
pattern:
|
|
107
|
+
pattern: RegExp(`^text-(${colorsAsRegex2})-500$`)
|
|
108
108
|
}, {
|
|
109
|
-
pattern:
|
|
109
|
+
pattern: RegExp(`^ring-(${colorsAsRegex2})-400$`),
|
|
110
110
|
variants: ["dark", "dark:focus"]
|
|
111
111
|
}, {
|
|
112
|
-
pattern:
|
|
112
|
+
pattern: RegExp(`^ring-(${colorsAsRegex2})-500$`),
|
|
113
113
|
variants: ["focus"]
|
|
114
114
|
}],
|
|
115
115
|
radio: (colorsAsRegex2) => [{
|
|
116
|
-
pattern:
|
|
116
|
+
pattern: RegExp(`^text-(${colorsAsRegex2})-400$`),
|
|
117
117
|
variants: ["dark"]
|
|
118
118
|
}, {
|
|
119
|
-
pattern:
|
|
119
|
+
pattern: RegExp(`^text-(${colorsAsRegex2})-500$`)
|
|
120
120
|
}, {
|
|
121
|
-
pattern:
|
|
121
|
+
pattern: RegExp(`^ring-(${colorsAsRegex2})-400$`),
|
|
122
122
|
variants: ["dark:focus-visible"]
|
|
123
123
|
}, {
|
|
124
|
-
pattern:
|
|
124
|
+
pattern: RegExp(`^ring-(${colorsAsRegex2})-500$`),
|
|
125
125
|
variants: ["focus-visible"]
|
|
126
126
|
}],
|
|
127
127
|
checkbox: (colorsAsRegex2) => [{
|
|
128
|
-
pattern:
|
|
128
|
+
pattern: RegExp(`^text-(${colorsAsRegex2})-400$`),
|
|
129
129
|
variants: ["dark"]
|
|
130
130
|
}, {
|
|
131
|
-
pattern:
|
|
131
|
+
pattern: RegExp(`^text-(${colorsAsRegex2})-500$`)
|
|
132
132
|
}, {
|
|
133
|
-
pattern:
|
|
133
|
+
pattern: RegExp(`^ring-(${colorsAsRegex2})-400$`),
|
|
134
134
|
variants: ["dark:focus-visible"]
|
|
135
135
|
}, {
|
|
136
|
-
pattern:
|
|
136
|
+
pattern: RegExp(`^ring-(${colorsAsRegex2})-500$`),
|
|
137
137
|
variants: ["focus-visible"]
|
|
138
138
|
}],
|
|
139
139
|
toggle: (colorsAsRegex2) => [{
|
|
140
|
-
pattern:
|
|
140
|
+
pattern: RegExp(`^bg-(${colorsAsRegex2})-400$`),
|
|
141
141
|
variants: ["dark"]
|
|
142
142
|
}, {
|
|
143
|
-
pattern:
|
|
143
|
+
pattern: RegExp(`^bg-(${colorsAsRegex2})-500$`)
|
|
144
144
|
}, {
|
|
145
|
-
pattern:
|
|
145
|
+
pattern: RegExp(`^text-(${colorsAsRegex2})-400$`),
|
|
146
146
|
variants: ["dark"]
|
|
147
147
|
}, {
|
|
148
|
-
pattern:
|
|
148
|
+
pattern: RegExp(`^text-(${colorsAsRegex2})-500$`)
|
|
149
149
|
}, {
|
|
150
|
-
pattern:
|
|
150
|
+
pattern: RegExp(`^ring-(${colorsAsRegex2})-400$`),
|
|
151
151
|
variants: ["dark:focus-visible"]
|
|
152
152
|
}, {
|
|
153
|
-
pattern:
|
|
153
|
+
pattern: RegExp(`^ring-(${colorsAsRegex2})-500$`),
|
|
154
154
|
variants: ["focus-visible"]
|
|
155
155
|
}],
|
|
156
156
|
range: (colorsAsRegex2) => [{
|
|
157
|
-
pattern:
|
|
157
|
+
pattern: RegExp(`^bg-(${colorsAsRegex2})-400$`),
|
|
158
158
|
variants: ["dark"]
|
|
159
159
|
}, {
|
|
160
|
-
pattern:
|
|
160
|
+
pattern: RegExp(`^bg-(${colorsAsRegex2})-500$`)
|
|
161
161
|
}, {
|
|
162
|
-
pattern:
|
|
162
|
+
pattern: RegExp(`^text-(${colorsAsRegex2})-400$`),
|
|
163
163
|
variants: ["dark"]
|
|
164
164
|
}, {
|
|
165
|
-
pattern:
|
|
165
|
+
pattern: RegExp(`^text-(${colorsAsRegex2})-500$`)
|
|
166
166
|
}, {
|
|
167
|
-
pattern:
|
|
167
|
+
pattern: RegExp(`^ring-(${colorsAsRegex2})-400$`),
|
|
168
168
|
variants: ["dark:focus-visible"]
|
|
169
169
|
}, {
|
|
170
|
-
pattern:
|
|
170
|
+
pattern: RegExp(`^ring-(${colorsAsRegex2})-500$`),
|
|
171
171
|
variants: ["focus-visible"]
|
|
172
172
|
}],
|
|
173
173
|
progress: (colorsAsRegex2) => [{
|
|
174
|
-
pattern:
|
|
174
|
+
pattern: RegExp(`^text-(${colorsAsRegex2})-400$`),
|
|
175
175
|
variants: ["dark"]
|
|
176
176
|
}, {
|
|
177
|
-
pattern:
|
|
177
|
+
pattern: RegExp(`^text-(${colorsAsRegex2})-500$`)
|
|
178
178
|
}],
|
|
179
179
|
meter: (colorsAsRegex2) => [{
|
|
180
|
-
pattern:
|
|
180
|
+
pattern: RegExp(`^bg-(${colorsAsRegex2})-400$`),
|
|
181
181
|
variants: ["dark"]
|
|
182
182
|
}, {
|
|
183
|
-
pattern:
|
|
183
|
+
pattern: RegExp(`^bg-(${colorsAsRegex2})-500$`)
|
|
184
184
|
}, {
|
|
185
|
-
pattern:
|
|
185
|
+
pattern: RegExp(`^text-(${colorsAsRegex2})-400$`),
|
|
186
186
|
variants: ["dark"]
|
|
187
187
|
}, {
|
|
188
|
-
pattern:
|
|
188
|
+
pattern: RegExp(`^text-(${colorsAsRegex2})-500$`)
|
|
189
189
|
}],
|
|
190
190
|
notification: (colorsAsRegex2) => [{
|
|
191
|
-
pattern:
|
|
191
|
+
pattern: RegExp(`^bg-(${colorsAsRegex2})-400$`),
|
|
192
192
|
variants: ["dark"]
|
|
193
193
|
}, {
|
|
194
|
-
pattern:
|
|
194
|
+
pattern: RegExp(`^bg-(${colorsAsRegex2})-500$`)
|
|
195
195
|
}, {
|
|
196
|
-
pattern:
|
|
196
|
+
pattern: RegExp(`^text-(${colorsAsRegex2})-400$`),
|
|
197
197
|
variants: ["dark"]
|
|
198
198
|
}, {
|
|
199
|
-
pattern:
|
|
199
|
+
pattern: RegExp(`^text-(${colorsAsRegex2})-500$`)
|
|
200
200
|
}],
|
|
201
201
|
chip: (colorsAsRegex2) => [{
|
|
202
|
-
pattern:
|
|
202
|
+
pattern: RegExp(`^bg-(${colorsAsRegex2})-400$`),
|
|
203
203
|
variants: ["dark"]
|
|
204
204
|
}, {
|
|
205
|
-
pattern:
|
|
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(
|
|
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;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nuxt/ui",
|
|
3
|
-
"version": "2.18.
|
|
4
|
-
"packageManager": "pnpm@9.
|
|
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.
|
|
40
|
-
"@nuxt/icon": "^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.
|
|
61
|
+
"@nuxt/eslint-config": "^0.4.0",
|
|
62
62
|
"@nuxt/module-builder": "^0.8.1",
|
|
63
|
-
"@nuxt/test-utils": "^3.
|
|
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
|