@yahoo/uds 3.104.0 → 3.105.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.
- package/dist/automated-config/dist/generated/autoVariants.cjs +57 -0
- package/dist/automated-config/dist/generated/autoVariants.d.cts +57 -57
- package/dist/automated-config/dist/generated/autoVariants.d.ts +57 -57
- package/dist/automated-config/dist/generated/autoVariants.js +57 -0
- package/dist/automated-config/dist/utils/generateDefaultClassName.cjs +18 -0
- package/dist/automated-config/dist/utils/generateDefaultClassName.d.cts +14 -0
- package/dist/automated-config/dist/utils/generateDefaultClassName.d.ts +14 -0
- package/dist/automated-config/dist/utils/generateDefaultClassName.js +17 -0
- package/dist/automated-config/dist/utils/index.cjs +3 -6
- package/dist/automated-config/dist/utils/index.d.cts +2 -2
- package/dist/automated-config/dist/utils/index.d.ts +2 -2
- package/dist/automated-config/dist/utils/index.js +3 -5
- package/dist/cli/runner.cjs +21 -5
- package/dist/cli/runner.js +21 -5
- package/dist/components/client/Button.cjs +9 -9
- package/dist/components/client/Button.js +2 -2
- package/dist/components/client/IconButton.cjs +8 -8
- package/dist/components/client/IconButton.js +2 -2
- package/dist/components/client/SpringMotionConfig.cjs +4 -4
- package/dist/components/client/SpringMotionConfig.js +5 -5
- package/dist/components/client/buttonConstants.cjs +10 -0
- package/dist/components/client/buttonConstants.d.cts +9 -0
- package/dist/components/client/buttonConstants.d.ts +9 -0
- package/dist/components/client/buttonConstants.js +8 -0
- package/dist/index.cjs +2 -1
- package/dist/index.d.cts +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +2 -1
- package/dist/motion-tokens/dist/index.cjs +11 -0
- package/dist/motion-tokens/dist/index.d.cts +5 -1
- package/dist/motion-tokens/dist/index.d.ts +5 -1
- package/dist/motion-tokens/dist/index.js +11 -1
- package/dist/styles/styler.d.cts +67 -67
- package/dist/styles/styler.d.ts +67 -67
- package/dist/styles/variants.d.cts +57 -0
- package/dist/styles/variants.d.ts +57 -0
- package/dist/tailwind/dist/commands/generateComponentData.cjs +65 -0
- package/dist/tailwind/dist/commands/generateComponentData.d.ts +3 -0
- package/dist/tailwind/dist/commands/generateComponentData.js +64 -0
- package/dist/tailwind/dist/commands/generatePurgeCSSData.cjs +1 -1
- package/dist/tailwind/dist/commands/generatePurgeCSSData.js +1 -1
- package/dist/tailwind/dist/commands/purge.cjs +41 -11
- package/dist/tailwind/dist/commands/purge.d.ts +2 -1
- package/dist/tailwind/dist/commands/purge.js +41 -11
- package/dist/tailwind/dist/index.d.ts +1 -0
- package/dist/tailwind/dist/{utils → purger/legacy}/purgeCSS.cjs +7 -7
- package/dist/tailwind/dist/{utils → purger/legacy}/purgeCSS.js +6 -6
- package/dist/tailwind/dist/purger/optimized/ast/expressions.cjs +193 -0
- package/dist/tailwind/dist/purger/optimized/ast/expressions.js +192 -0
- package/dist/tailwind/dist/purger/optimized/ast/jsx.cjs +20 -0
- package/dist/tailwind/dist/purger/optimized/ast/jsx.js +19 -0
- package/dist/tailwind/dist/purger/optimized/purge.cjs +69 -0
- package/dist/tailwind/dist/purger/optimized/purge.js +66 -0
- package/dist/tailwind/dist/purger/optimized/purgeFromCode.cjs +273 -0
- package/dist/tailwind/dist/purger/optimized/purgeFromCode.js +272 -0
- package/dist/tailwind/dist/purger/optimized/utils/componentAnalyzer.cjs +408 -0
- package/dist/tailwind/dist/purger/optimized/utils/componentAnalyzer.js +405 -0
- package/dist/tailwind/dist/purger/optimized/utils/files.cjs +27 -0
- package/dist/tailwind/dist/purger/optimized/utils/files.js +24 -0
- package/dist/tailwind/dist/purger/optimized/utils/safelist.cjs +64 -0
- package/dist/tailwind/dist/purger/optimized/utils/safelist.js +60 -0
- package/dist/tailwind/dist/tailwind/utils/getColorModeStyles.cjs +1 -0
- package/dist/tailwind/dist/tailwind/utils/getColorModeStyles.js +1 -0
- package/dist/tailwind/dist/utils/tsMorph.cjs +1 -1
- package/dist/tokens/automation/index.cjs +2 -1
- package/dist/tokens/automation/index.d.cts +2 -1
- package/dist/tokens/automation/index.d.ts +2 -1
- package/dist/tokens/automation/index.js +2 -1
- package/dist/tokens/index.cjs +2 -1
- package/dist/tokens/index.d.cts +2 -1
- package/dist/tokens/index.d.ts +2 -1
- package/dist/tokens/index.js +2 -1
- package/dist/uds/generated/componentData.cjs +2110 -0
- package/dist/uds/generated/componentData.js +1720 -0
- package/dist/uds/generated/tailwindPurge.cjs +24 -24
- package/dist/uds/generated/tailwindPurge.js +24 -24
- package/package.json +1 -1
- /package/dist/tailwind/dist/{utils → purger/legacy}/purgeCSS.d.ts +0 -0
|
@@ -2,14 +2,17 @@
|
|
|
2
2
|
//#region src/styles/variants.d.ts
|
|
3
3
|
declare const variants: {
|
|
4
4
|
avatarIconVariantRoot: {
|
|
5
|
+
readonly default: "uds-avatar-icon-variant-default-root";
|
|
5
6
|
readonly primary: "uds-avatar-icon-variant-primary-root";
|
|
6
7
|
readonly secondary: "uds-avatar-icon-variant-secondary-root";
|
|
7
8
|
};
|
|
8
9
|
avatarImageVariantRoot: {
|
|
10
|
+
readonly default: "uds-avatar-image-variant-default-root";
|
|
9
11
|
readonly primary: "uds-avatar-image-variant-primary-root";
|
|
10
12
|
readonly secondary: "uds-avatar-image-variant-secondary-root";
|
|
11
13
|
};
|
|
12
14
|
avatarSizeIcon: {
|
|
15
|
+
readonly default: "uds-avatar-size-default-icon";
|
|
13
16
|
readonly lg: "uds-avatar-size-lg-icon";
|
|
14
17
|
readonly md: "uds-avatar-size-md-icon";
|
|
15
18
|
readonly sm: "uds-avatar-size-sm-icon";
|
|
@@ -17,6 +20,7 @@ declare const variants: {
|
|
|
17
20
|
readonly xs: "uds-avatar-size-xs-icon";
|
|
18
21
|
};
|
|
19
22
|
avatarSizeRoot: {
|
|
23
|
+
readonly default: "uds-avatar-size-default-root";
|
|
20
24
|
readonly lg: "uds-avatar-size-lg-root";
|
|
21
25
|
readonly md: "uds-avatar-size-md-root";
|
|
22
26
|
readonly sm: "uds-avatar-size-sm-root";
|
|
@@ -24,16 +28,19 @@ declare const variants: {
|
|
|
24
28
|
readonly xs: "uds-avatar-size-xs-root";
|
|
25
29
|
};
|
|
26
30
|
avatarTextVariantRoot: {
|
|
31
|
+
readonly default: "uds-avatar-text-variant-default-root";
|
|
27
32
|
readonly primary: "uds-avatar-text-variant-primary-root";
|
|
28
33
|
readonly secondary: "uds-avatar-text-variant-secondary-root";
|
|
29
34
|
};
|
|
30
35
|
badgeSizeIcon: {
|
|
36
|
+
readonly default: "uds-badge-size-default-icon";
|
|
31
37
|
readonly lg: "uds-badge-size-lg-icon";
|
|
32
38
|
readonly md: "uds-badge-size-md-icon";
|
|
33
39
|
readonly sm: "uds-badge-size-sm-icon";
|
|
34
40
|
readonly xs: "uds-badge-size-xs-icon";
|
|
35
41
|
};
|
|
36
42
|
badgeSizeRoot: {
|
|
43
|
+
readonly default: "uds-badge-size-default-root";
|
|
37
44
|
readonly lg: "uds-badge-size-lg-root";
|
|
38
45
|
readonly md: "uds-badge-size-md-root";
|
|
39
46
|
readonly sm: "uds-badge-size-sm-root";
|
|
@@ -44,6 +51,7 @@ declare const variants: {
|
|
|
44
51
|
readonly "alert-secondary": "uds-badge-variant-alert-secondary-icon";
|
|
45
52
|
readonly brand: "uds-badge-variant-brand-icon";
|
|
46
53
|
readonly "brand-secondary": "uds-badge-variant-brand-secondary-icon";
|
|
54
|
+
readonly default: "uds-badge-variant-default-icon";
|
|
47
55
|
readonly info: "uds-badge-variant-info-icon";
|
|
48
56
|
readonly "info-secondary": "uds-badge-variant-info-secondary-icon";
|
|
49
57
|
readonly positive: "uds-badge-variant-positive-icon";
|
|
@@ -58,6 +66,7 @@ declare const variants: {
|
|
|
58
66
|
readonly "alert-secondary": "uds-badge-variant-alert-secondary-root";
|
|
59
67
|
readonly brand: "uds-badge-variant-brand-root";
|
|
60
68
|
readonly "brand-secondary": "uds-badge-variant-brand-secondary-root";
|
|
69
|
+
readonly default: "uds-badge-variant-default-root";
|
|
61
70
|
readonly info: "uds-badge-variant-info-root";
|
|
62
71
|
readonly "info-secondary": "uds-badge-variant-info-secondary-root";
|
|
63
72
|
readonly positive: "uds-badge-variant-positive-root";
|
|
@@ -68,12 +77,14 @@ declare const variants: {
|
|
|
68
77
|
readonly "warning-secondary": "uds-badge-variant-warning-secondary-root";
|
|
69
78
|
};
|
|
70
79
|
buttonSizeIcon: {
|
|
80
|
+
readonly default: "uds-button-size-default-icon";
|
|
71
81
|
readonly lg: "uds-button-size-lg-icon";
|
|
72
82
|
readonly md: "uds-button-size-md-icon";
|
|
73
83
|
readonly sm: "uds-button-size-sm-icon";
|
|
74
84
|
readonly xs: "uds-button-size-xs-icon";
|
|
75
85
|
};
|
|
76
86
|
buttonSizeRoot: {
|
|
87
|
+
readonly default: "uds-button-size-default-root";
|
|
77
88
|
readonly lg: "uds-button-size-lg-root";
|
|
78
89
|
readonly md: "uds-button-size-md-root";
|
|
79
90
|
readonly sm: "uds-button-size-sm-root";
|
|
@@ -86,6 +97,7 @@ declare const variants: {
|
|
|
86
97
|
readonly brand: "uds-button-variant-brand-icon";
|
|
87
98
|
readonly "brand-secondary": "uds-button-variant-brand-secondary-icon";
|
|
88
99
|
readonly "brand-tertiary": "uds-button-variant-brand-tertiary-icon";
|
|
100
|
+
readonly default: "uds-button-variant-default-icon";
|
|
89
101
|
readonly info: "uds-button-variant-info-icon";
|
|
90
102
|
readonly "info-secondary": "uds-button-variant-info-secondary-icon";
|
|
91
103
|
readonly "info-tertiary": "uds-button-variant-info-tertiary-icon";
|
|
@@ -106,6 +118,7 @@ declare const variants: {
|
|
|
106
118
|
readonly brand: "uds-button-variant-brand-root";
|
|
107
119
|
readonly "brand-secondary": "uds-button-variant-brand-secondary-root";
|
|
108
120
|
readonly "brand-tertiary": "uds-button-variant-brand-tertiary-root";
|
|
121
|
+
readonly default: "uds-button-variant-default-root";
|
|
109
122
|
readonly info: "uds-button-variant-info-root";
|
|
110
123
|
readonly "info-secondary": "uds-button-variant-info-secondary-root";
|
|
111
124
|
readonly "info-tertiary": "uds-button-variant-info-tertiary-root";
|
|
@@ -120,28 +133,33 @@ declare const variants: {
|
|
|
120
133
|
readonly "warning-tertiary": "uds-button-variant-warning-tertiary-root";
|
|
121
134
|
};
|
|
122
135
|
checkboxSizeCheckbox: {
|
|
136
|
+
readonly default: "uds-checkbox-size-default-checkbox";
|
|
123
137
|
readonly md: "uds-checkbox-size-md-checkbox";
|
|
124
138
|
readonly sm: "uds-checkbox-size-sm-checkbox";
|
|
125
139
|
};
|
|
126
140
|
checkboxSizeRoot: {
|
|
141
|
+
readonly default: "uds-checkbox-size-default-root";
|
|
127
142
|
readonly md: "uds-checkbox-size-md-root";
|
|
128
143
|
readonly sm: "uds-checkbox-size-sm-root";
|
|
129
144
|
};
|
|
130
145
|
checkboxVariantCheckbox: {
|
|
131
146
|
readonly alert: "uds-checkbox-variant-alert-checkbox";
|
|
132
147
|
readonly "alert-secondary": "uds-checkbox-variant-alert-secondary-checkbox";
|
|
148
|
+
readonly default: "uds-checkbox-variant-default-checkbox";
|
|
133
149
|
readonly primary: "uds-checkbox-variant-primary-checkbox";
|
|
134
150
|
readonly secondary: "uds-checkbox-variant-secondary-checkbox";
|
|
135
151
|
};
|
|
136
152
|
checkboxVariantCheckboxIcon: {
|
|
137
153
|
readonly alert: "uds-checkbox-variant-alert-checkboxicon";
|
|
138
154
|
readonly "alert-secondary": "uds-checkbox-variant-alert-secondary-checkboxicon";
|
|
155
|
+
readonly default: "uds-checkbox-variant-default-checkboxicon";
|
|
139
156
|
readonly primary: "uds-checkbox-variant-primary-checkboxicon";
|
|
140
157
|
readonly secondary: "uds-checkbox-variant-secondary-checkboxicon";
|
|
141
158
|
};
|
|
142
159
|
checkboxVariantRoot: {
|
|
143
160
|
readonly alert: "uds-checkbox-variant-alert-root";
|
|
144
161
|
readonly "alert-secondary": "uds-checkbox-variant-alert-secondary-root";
|
|
162
|
+
readonly default: "uds-checkbox-variant-default-root";
|
|
145
163
|
readonly primary: "uds-checkbox-variant-primary-root";
|
|
146
164
|
readonly secondary: "uds-checkbox-variant-secondary-root";
|
|
147
165
|
};
|
|
@@ -163,32 +181,38 @@ declare const variants: {
|
|
|
163
181
|
chipDismissibleVariantIcon: {
|
|
164
182
|
readonly brand: "uds-chip-dismissible-variant-brand-icon";
|
|
165
183
|
readonly "brand-secondary": "uds-chip-dismissible-variant-brand-secondary-icon";
|
|
184
|
+
readonly default: "uds-chip-dismissible-variant-default-icon";
|
|
166
185
|
readonly primary: "uds-chip-dismissible-variant-primary-icon";
|
|
167
186
|
readonly secondary: "uds-chip-dismissible-variant-secondary-icon";
|
|
168
187
|
};
|
|
169
188
|
chipDismissibleVariantRoot: {
|
|
170
189
|
readonly brand: "uds-chip-dismissible-variant-brand-root";
|
|
171
190
|
readonly "brand-secondary": "uds-chip-dismissible-variant-brand-secondary-root";
|
|
191
|
+
readonly default: "uds-chip-dismissible-variant-default-root";
|
|
172
192
|
readonly primary: "uds-chip-dismissible-variant-primary-root";
|
|
173
193
|
readonly secondary: "uds-chip-dismissible-variant-secondary-root";
|
|
174
194
|
};
|
|
175
195
|
chipLinkVariantIcon: {
|
|
176
196
|
readonly brand: "uds-chip-link-variant-brand-icon";
|
|
177
197
|
readonly "brand-secondary": "uds-chip-link-variant-brand-secondary-icon";
|
|
198
|
+
readonly default: "uds-chip-link-variant-default-icon";
|
|
178
199
|
readonly primary: "uds-chip-link-variant-primary-icon";
|
|
179
200
|
readonly secondary: "uds-chip-link-variant-secondary-icon";
|
|
180
201
|
};
|
|
181
202
|
chipLinkVariantRoot: {
|
|
182
203
|
readonly brand: "uds-chip-link-variant-brand-root";
|
|
183
204
|
readonly "brand-secondary": "uds-chip-link-variant-brand-secondary-root";
|
|
205
|
+
readonly default: "uds-chip-link-variant-default-root";
|
|
184
206
|
readonly primary: "uds-chip-link-variant-primary-root";
|
|
185
207
|
readonly secondary: "uds-chip-link-variant-secondary-root";
|
|
186
208
|
};
|
|
187
209
|
chipSizeIcon: {
|
|
210
|
+
readonly default: "uds-chip-size-default-icon";
|
|
188
211
|
readonly md: "uds-chip-size-md-icon";
|
|
189
212
|
readonly sm: "uds-chip-size-sm-icon";
|
|
190
213
|
};
|
|
191
214
|
chipSizeRoot: {
|
|
215
|
+
readonly default: "uds-chip-size-default-root";
|
|
192
216
|
readonly md: "uds-chip-size-md-root";
|
|
193
217
|
readonly sm: "uds-chip-size-sm-root";
|
|
194
218
|
};
|
|
@@ -203,34 +227,40 @@ declare const variants: {
|
|
|
203
227
|
chipToggleVariantIcon: {
|
|
204
228
|
readonly brand: "uds-chip-toggle-variant-brand-icon";
|
|
205
229
|
readonly "brand-secondary": "uds-chip-toggle-variant-brand-secondary-icon";
|
|
230
|
+
readonly default: "uds-chip-toggle-variant-default-icon";
|
|
206
231
|
readonly primary: "uds-chip-toggle-variant-primary-icon";
|
|
207
232
|
readonly secondary: "uds-chip-toggle-variant-secondary-icon";
|
|
208
233
|
};
|
|
209
234
|
chipToggleVariantRoot: {
|
|
210
235
|
readonly brand: "uds-chip-toggle-variant-brand-root";
|
|
211
236
|
readonly "brand-secondary": "uds-chip-toggle-variant-brand-secondary-root";
|
|
237
|
+
readonly default: "uds-chip-toggle-variant-default-root";
|
|
212
238
|
readonly primary: "uds-chip-toggle-variant-primary-root";
|
|
213
239
|
readonly secondary: "uds-chip-toggle-variant-secondary-root";
|
|
214
240
|
};
|
|
215
241
|
dividerVariantLabel: {
|
|
242
|
+
readonly default: "uds-divider-variant-default-label";
|
|
216
243
|
readonly muted: "uds-divider-variant-muted-label";
|
|
217
244
|
readonly primary: "uds-divider-variant-primary-label";
|
|
218
245
|
readonly secondary: "uds-divider-variant-secondary-label";
|
|
219
246
|
readonly tertiary: "uds-divider-variant-tertiary-label";
|
|
220
247
|
};
|
|
221
248
|
dividerVariantLine: {
|
|
249
|
+
readonly default: "uds-divider-variant-default-line";
|
|
222
250
|
readonly muted: "uds-divider-variant-muted-line";
|
|
223
251
|
readonly primary: "uds-divider-variant-primary-line";
|
|
224
252
|
readonly secondary: "uds-divider-variant-secondary-line";
|
|
225
253
|
readonly tertiary: "uds-divider-variant-tertiary-line";
|
|
226
254
|
};
|
|
227
255
|
dividerVariantRoot: {
|
|
256
|
+
readonly default: "uds-divider-variant-default-root";
|
|
228
257
|
readonly muted: "uds-divider-variant-muted-root";
|
|
229
258
|
readonly primary: "uds-divider-variant-primary-root";
|
|
230
259
|
readonly secondary: "uds-divider-variant-secondary-root";
|
|
231
260
|
readonly tertiary: "uds-divider-variant-tertiary-root";
|
|
232
261
|
};
|
|
233
262
|
iconbuttonSizeIcon: {
|
|
263
|
+
readonly default: "uds-iconbutton-size-default-icon";
|
|
234
264
|
readonly lg: "uds-iconbutton-size-lg-icon";
|
|
235
265
|
readonly md: "uds-iconbutton-size-md-icon";
|
|
236
266
|
readonly sm: "uds-iconbutton-size-sm-icon";
|
|
@@ -238,6 +268,7 @@ declare const variants: {
|
|
|
238
268
|
readonly xs: "uds-iconbutton-size-xs-icon";
|
|
239
269
|
};
|
|
240
270
|
iconbuttonSizeRoot: {
|
|
271
|
+
readonly default: "uds-iconbutton-size-default-root";
|
|
241
272
|
readonly lg: "uds-iconbutton-size-lg-root";
|
|
242
273
|
readonly md: "uds-iconbutton-size-md-root";
|
|
243
274
|
readonly sm: "uds-iconbutton-size-sm-root";
|
|
@@ -245,34 +276,42 @@ declare const variants: {
|
|
|
245
276
|
readonly xs: "uds-iconbutton-size-xs-root";
|
|
246
277
|
};
|
|
247
278
|
inputSizeEndIcon: {
|
|
279
|
+
readonly default: "uds-input-size-default-endicon";
|
|
248
280
|
readonly lg: "uds-input-size-lg-endicon";
|
|
249
281
|
readonly md: "uds-input-size-md-endicon";
|
|
250
282
|
};
|
|
251
283
|
inputSizeHelperIcon: {
|
|
284
|
+
readonly default: "uds-input-size-default-helpericon";
|
|
252
285
|
readonly lg: "uds-input-size-lg-helpericon";
|
|
253
286
|
readonly md: "uds-input-size-md-helpericon";
|
|
254
287
|
};
|
|
255
288
|
inputSizeHelperText: {
|
|
289
|
+
readonly default: "uds-input-size-default-helpertext";
|
|
256
290
|
readonly lg: "uds-input-size-lg-helpertext";
|
|
257
291
|
readonly md: "uds-input-size-md-helpertext";
|
|
258
292
|
};
|
|
259
293
|
inputSizeInput: {
|
|
294
|
+
readonly default: "uds-input-size-default-input";
|
|
260
295
|
readonly lg: "uds-input-size-lg-input";
|
|
261
296
|
readonly md: "uds-input-size-md-input";
|
|
262
297
|
};
|
|
263
298
|
inputSizeInputWrapper: {
|
|
299
|
+
readonly default: "uds-input-size-default-inputwrapper";
|
|
264
300
|
readonly lg: "uds-input-size-lg-inputwrapper";
|
|
265
301
|
readonly md: "uds-input-size-md-inputwrapper";
|
|
266
302
|
};
|
|
267
303
|
inputSizeLabel: {
|
|
304
|
+
readonly default: "uds-input-size-default-label";
|
|
268
305
|
readonly lg: "uds-input-size-lg-label";
|
|
269
306
|
readonly md: "uds-input-size-md-label";
|
|
270
307
|
};
|
|
271
308
|
inputSizeRoot: {
|
|
309
|
+
readonly default: "uds-input-size-default-root";
|
|
272
310
|
readonly lg: "uds-input-size-lg-root";
|
|
273
311
|
readonly md: "uds-input-size-md-root";
|
|
274
312
|
};
|
|
275
313
|
inputSizeStartIcon: {
|
|
314
|
+
readonly default: "uds-input-size-default-starticon";
|
|
276
315
|
readonly lg: "uds-input-size-lg-starticon";
|
|
277
316
|
readonly md: "uds-input-size-md-starticon";
|
|
278
317
|
};
|
|
@@ -350,6 +389,7 @@ declare const variants: {
|
|
|
350
389
|
readonly body1: "uds-link-textstyle-body1-icon";
|
|
351
390
|
readonly caption1: "uds-link-textstyle-caption1-icon";
|
|
352
391
|
readonly caption2: "uds-link-textstyle-caption2-icon";
|
|
392
|
+
readonly default: "uds-link-textstyle-default-icon";
|
|
353
393
|
readonly display1: "uds-link-textstyle-display1-icon";
|
|
354
394
|
readonly display2: "uds-link-textstyle-display2-icon";
|
|
355
395
|
readonly display3: "uds-link-textstyle-display3-icon";
|
|
@@ -374,6 +414,7 @@ declare const variants: {
|
|
|
374
414
|
readonly body1: "uds-link-textstyle-body1-root";
|
|
375
415
|
readonly caption1: "uds-link-textstyle-caption1-root";
|
|
376
416
|
readonly caption2: "uds-link-textstyle-caption2-root";
|
|
417
|
+
readonly default: "uds-link-textstyle-default-root";
|
|
377
418
|
readonly display1: "uds-link-textstyle-display1-root";
|
|
378
419
|
readonly display2: "uds-link-textstyle-display2-root";
|
|
379
420
|
readonly display3: "uds-link-textstyle-display3-root";
|
|
@@ -395,18 +436,21 @@ declare const variants: {
|
|
|
395
436
|
readonly ui6: "uds-link-textstyle-ui6-root";
|
|
396
437
|
};
|
|
397
438
|
linkVariantIconEnd: {
|
|
439
|
+
readonly default: "uds-link-variant-default-iconend";
|
|
398
440
|
readonly "on-color": "uds-link-variant-on-color-iconend";
|
|
399
441
|
readonly primary: "uds-link-variant-primary-iconend";
|
|
400
442
|
readonly secondary: "uds-link-variant-secondary-iconend";
|
|
401
443
|
readonly tertiary: "uds-link-variant-tertiary-iconend";
|
|
402
444
|
};
|
|
403
445
|
linkVariantIconStart: {
|
|
446
|
+
readonly default: "uds-link-variant-default-iconstart";
|
|
404
447
|
readonly "on-color": "uds-link-variant-on-color-iconstart";
|
|
405
448
|
readonly primary: "uds-link-variant-primary-iconstart";
|
|
406
449
|
readonly secondary: "uds-link-variant-secondary-iconstart";
|
|
407
450
|
readonly tertiary: "uds-link-variant-tertiary-iconstart";
|
|
408
451
|
};
|
|
409
452
|
linkVariantRoot: {
|
|
453
|
+
readonly default: "uds-link-variant-default-root";
|
|
410
454
|
readonly "on-color": "uds-link-variant-on-color-root";
|
|
411
455
|
readonly primary: "uds-link-variant-primary-root";
|
|
412
456
|
readonly secondary: "uds-link-variant-secondary-root";
|
|
@@ -486,28 +530,33 @@ declare const variants: {
|
|
|
486
530
|
readonly default: "uds-menuitem-size-default-starticon";
|
|
487
531
|
};
|
|
488
532
|
radioSizeRadio: {
|
|
533
|
+
readonly default: "uds-radio-size-default-radio";
|
|
489
534
|
readonly md: "uds-radio-size-md-radio";
|
|
490
535
|
readonly sm: "uds-radio-size-sm-radio";
|
|
491
536
|
};
|
|
492
537
|
radioSizeRoot: {
|
|
538
|
+
readonly default: "uds-radio-size-default-root";
|
|
493
539
|
readonly md: "uds-radio-size-md-root";
|
|
494
540
|
readonly sm: "uds-radio-size-sm-root";
|
|
495
541
|
};
|
|
496
542
|
radioVariantRadio: {
|
|
497
543
|
readonly alert: "uds-radio-variant-alert-radio";
|
|
498
544
|
readonly "alert-secondary": "uds-radio-variant-alert-secondary-radio";
|
|
545
|
+
readonly default: "uds-radio-variant-default-radio";
|
|
499
546
|
readonly primary: "uds-radio-variant-primary-radio";
|
|
500
547
|
readonly secondary: "uds-radio-variant-secondary-radio";
|
|
501
548
|
};
|
|
502
549
|
radioVariantRadioCircle: {
|
|
503
550
|
readonly alert: "uds-radio-variant-alert-radiocircle";
|
|
504
551
|
readonly "alert-secondary": "uds-radio-variant-alert-secondary-radiocircle";
|
|
552
|
+
readonly default: "uds-radio-variant-default-radiocircle";
|
|
505
553
|
readonly primary: "uds-radio-variant-primary-radiocircle";
|
|
506
554
|
readonly secondary: "uds-radio-variant-secondary-radiocircle";
|
|
507
555
|
};
|
|
508
556
|
radioVariantRoot: {
|
|
509
557
|
readonly alert: "uds-radio-variant-alert-root";
|
|
510
558
|
readonly "alert-secondary": "uds-radio-variant-alert-secondary-root";
|
|
559
|
+
readonly default: "uds-radio-variant-default-root";
|
|
511
560
|
readonly primary: "uds-radio-variant-primary-root";
|
|
512
561
|
readonly secondary: "uds-radio-variant-secondary-root";
|
|
513
562
|
};
|
|
@@ -524,18 +573,22 @@ declare const variants: {
|
|
|
524
573
|
readonly unchecked: "uds-radio-variant-value-unchecked-root";
|
|
525
574
|
};
|
|
526
575
|
switchSizeHandle: {
|
|
576
|
+
readonly default: "uds-switch-size-default-handle";
|
|
527
577
|
readonly md: "uds-switch-size-md-handle";
|
|
528
578
|
readonly sm: "uds-switch-size-sm-handle";
|
|
529
579
|
};
|
|
530
580
|
switchSizeHandleIcon: {
|
|
581
|
+
readonly default: "uds-switch-size-default-handleicon";
|
|
531
582
|
readonly md: "uds-switch-size-md-handleicon";
|
|
532
583
|
readonly sm: "uds-switch-size-sm-handleicon";
|
|
533
584
|
};
|
|
534
585
|
switchSizeRoot: {
|
|
586
|
+
readonly default: "uds-switch-size-default-root";
|
|
535
587
|
readonly md: "uds-switch-size-md-root";
|
|
536
588
|
readonly sm: "uds-switch-size-sm-root";
|
|
537
589
|
};
|
|
538
590
|
switchSizeSwitch: {
|
|
591
|
+
readonly default: "uds-switch-size-default-switch";
|
|
539
592
|
readonly md: "uds-switch-size-md-switch";
|
|
540
593
|
readonly sm: "uds-switch-size-sm-switch";
|
|
541
594
|
};
|
|
@@ -583,6 +636,7 @@ declare const variants: {
|
|
|
583
636
|
readonly default: "uds-toast-size-default-root";
|
|
584
637
|
};
|
|
585
638
|
toastVariantActionButton: {
|
|
639
|
+
readonly default: "uds-toast-variant-default-actionbutton";
|
|
586
640
|
readonly error: "uds-toast-variant-error-actionbutton";
|
|
587
641
|
readonly info: "uds-toast-variant-info-actionbutton";
|
|
588
642
|
readonly loading: "uds-toast-variant-loading-actionbutton";
|
|
@@ -590,6 +644,7 @@ declare const variants: {
|
|
|
590
644
|
readonly warning: "uds-toast-variant-warning-actionbutton";
|
|
591
645
|
};
|
|
592
646
|
toastVariantCloseIcon: {
|
|
647
|
+
readonly default: "uds-toast-variant-default-closeicon";
|
|
593
648
|
readonly error: "uds-toast-variant-error-closeicon";
|
|
594
649
|
readonly info: "uds-toast-variant-info-closeicon";
|
|
595
650
|
readonly loading: "uds-toast-variant-loading-closeicon";
|
|
@@ -597,6 +652,7 @@ declare const variants: {
|
|
|
597
652
|
readonly warning: "uds-toast-variant-warning-closeicon";
|
|
598
653
|
};
|
|
599
654
|
toastVariantIcon: {
|
|
655
|
+
readonly default: "uds-toast-variant-default-icon";
|
|
600
656
|
readonly error: "uds-toast-variant-error-icon";
|
|
601
657
|
readonly info: "uds-toast-variant-info-icon";
|
|
602
658
|
readonly loading: "uds-toast-variant-loading-icon";
|
|
@@ -604,6 +660,7 @@ declare const variants: {
|
|
|
604
660
|
readonly warning: "uds-toast-variant-warning-icon";
|
|
605
661
|
};
|
|
606
662
|
toastVariantRoot: {
|
|
663
|
+
readonly default: "uds-toast-variant-default-root";
|
|
607
664
|
readonly error: "uds-toast-variant-error-root";
|
|
608
665
|
readonly info: "uds-toast-variant-info-root";
|
|
609
666
|
readonly loading: "uds-toast-variant-loading-root";
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
/*! © 2026 Yahoo, Inc. UDS v0.0.0-development */
|
|
2
|
+
const require_runtime = require('../../../_virtual/_rolldown/runtime.cjs');
|
|
3
|
+
const require_print = require('../../../cli/dist/lib/print.cjs');
|
|
4
|
+
const require_componentAnalyzer = require('../purger/optimized/utils/componentAnalyzer.cjs');
|
|
5
|
+
let node_fs = require("node:fs");
|
|
6
|
+
|
|
7
|
+
//#region ../tailwind/dist/commands/generateComponentData.js
|
|
8
|
+
/*! © 2026 Yahoo, Inc. UDS Tailwind and Purger v0.0.0-development */
|
|
9
|
+
/**
|
|
10
|
+
* Pre-generates component analysis data at build time.
|
|
11
|
+
* This data is used by the optimized purger to know:
|
|
12
|
+
* - Default prop values for each component
|
|
13
|
+
* - Hardcoded literals in getStyles() calls
|
|
14
|
+
* - Internal component dependencies
|
|
15
|
+
* - Literal props passed to internal components
|
|
16
|
+
*/
|
|
17
|
+
const makeGenerateComponentDataCommand = (getContext) => ({
|
|
18
|
+
name: "generateComponentData",
|
|
19
|
+
description: `Generates component data for UDS components. This is an internal command used to by the optimized purger.`,
|
|
20
|
+
tag: "hidden",
|
|
21
|
+
run: async (_props) => {
|
|
22
|
+
const { project, componentsDir, outputFile } = await getContext();
|
|
23
|
+
require_print.print("Scanning components in:", componentsDir);
|
|
24
|
+
const componentPaths = await require_componentAnalyzer.scanComponentFiles(componentsDir);
|
|
25
|
+
require_print.print(`Found ${componentPaths.size} components`);
|
|
26
|
+
const componentData = {};
|
|
27
|
+
for (const [name, filePath] of componentPaths) try {
|
|
28
|
+
project.addSourceFileAtPath(filePath);
|
|
29
|
+
const info = require_componentAnalyzer.analyzeComponent(project, filePath);
|
|
30
|
+
if (info) componentData[name] = serializeComponentInfo(info);
|
|
31
|
+
} catch (error) {
|
|
32
|
+
console.warn(`Warning: Could not analyze ${name}:`, error);
|
|
33
|
+
}
|
|
34
|
+
(0, node_fs.writeFileSync)(outputFile, JSON.stringify(componentData, null, 2));
|
|
35
|
+
require_print.print(`Generated component data for ${Object.keys(componentData).length} components`);
|
|
36
|
+
require_print.print(`Output written to: ${outputFile}`);
|
|
37
|
+
let totalDefaults = 0;
|
|
38
|
+
let totalLiterals = 0;
|
|
39
|
+
let totalInternalComponents = 0;
|
|
40
|
+
for (const comp of Object.values(componentData)) {
|
|
41
|
+
totalDefaults += Object.keys(comp.defaultProps).length;
|
|
42
|
+
totalLiterals += Object.keys(comp.getStylesLiterals).length;
|
|
43
|
+
totalInternalComponents += comp.internalComponents.length;
|
|
44
|
+
}
|
|
45
|
+
require_print.print("\nStats:");
|
|
46
|
+
require_print.print(` Default props: ${totalDefaults}`);
|
|
47
|
+
require_print.print(` getStyles literals: ${totalLiterals}`);
|
|
48
|
+
require_print.print(` Internal component refs: ${totalInternalComponents}`);
|
|
49
|
+
}
|
|
50
|
+
});
|
|
51
|
+
function serializeComponentInfo(info) {
|
|
52
|
+
return {
|
|
53
|
+
name: info.name,
|
|
54
|
+
defaultProps: Object.fromEntries(info.defaultProps),
|
|
55
|
+
getStylesLiterals: Object.fromEntries(info.getStylesLiterals),
|
|
56
|
+
cxLiterals: info.cxLiterals,
|
|
57
|
+
internalComponents: info.internalComponents,
|
|
58
|
+
internalComponentProps: Object.fromEntries(Array.from(info.internalComponentProps.entries()).map(([key, propsMap]) => [key, Object.fromEntries(propsMap)])),
|
|
59
|
+
propToVariantKeys: Object.fromEntries(info.propToVariantKeys),
|
|
60
|
+
motionVarPrefixes: info.motionVarPrefixes
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
//#endregion
|
|
65
|
+
exports.makeGenerateComponentDataCommand = makeGenerateComponentDataCommand;
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
/*! © 2026 Yahoo, Inc. UDS v0.0.0-development */
|
|
2
|
+
import { print } from "../../../cli/dist/lib/print.js";
|
|
3
|
+
import { analyzeComponent, scanComponentFiles } from "../purger/optimized/utils/componentAnalyzer.js";
|
|
4
|
+
import { writeFileSync } from "node:fs";
|
|
5
|
+
|
|
6
|
+
//#region ../tailwind/dist/commands/generateComponentData.js
|
|
7
|
+
/*! © 2026 Yahoo, Inc. UDS Tailwind and Purger v0.0.0-development */
|
|
8
|
+
/**
|
|
9
|
+
* Pre-generates component analysis data at build time.
|
|
10
|
+
* This data is used by the optimized purger to know:
|
|
11
|
+
* - Default prop values for each component
|
|
12
|
+
* - Hardcoded literals in getStyles() calls
|
|
13
|
+
* - Internal component dependencies
|
|
14
|
+
* - Literal props passed to internal components
|
|
15
|
+
*/
|
|
16
|
+
const makeGenerateComponentDataCommand = (getContext) => ({
|
|
17
|
+
name: "generateComponentData",
|
|
18
|
+
description: `Generates component data for UDS components. This is an internal command used to by the optimized purger.`,
|
|
19
|
+
tag: "hidden",
|
|
20
|
+
run: async (_props) => {
|
|
21
|
+
const { project, componentsDir, outputFile } = await getContext();
|
|
22
|
+
print("Scanning components in:", componentsDir);
|
|
23
|
+
const componentPaths = await scanComponentFiles(componentsDir);
|
|
24
|
+
print(`Found ${componentPaths.size} components`);
|
|
25
|
+
const componentData = {};
|
|
26
|
+
for (const [name, filePath] of componentPaths) try {
|
|
27
|
+
project.addSourceFileAtPath(filePath);
|
|
28
|
+
const info = analyzeComponent(project, filePath);
|
|
29
|
+
if (info) componentData[name] = serializeComponentInfo(info);
|
|
30
|
+
} catch (error) {
|
|
31
|
+
console.warn(`Warning: Could not analyze ${name}:`, error);
|
|
32
|
+
}
|
|
33
|
+
writeFileSync(outputFile, JSON.stringify(componentData, null, 2));
|
|
34
|
+
print(`Generated component data for ${Object.keys(componentData).length} components`);
|
|
35
|
+
print(`Output written to: ${outputFile}`);
|
|
36
|
+
let totalDefaults = 0;
|
|
37
|
+
let totalLiterals = 0;
|
|
38
|
+
let totalInternalComponents = 0;
|
|
39
|
+
for (const comp of Object.values(componentData)) {
|
|
40
|
+
totalDefaults += Object.keys(comp.defaultProps).length;
|
|
41
|
+
totalLiterals += Object.keys(comp.getStylesLiterals).length;
|
|
42
|
+
totalInternalComponents += comp.internalComponents.length;
|
|
43
|
+
}
|
|
44
|
+
print("\nStats:");
|
|
45
|
+
print(` Default props: ${totalDefaults}`);
|
|
46
|
+
print(` getStyles literals: ${totalLiterals}`);
|
|
47
|
+
print(` Internal component refs: ${totalInternalComponents}`);
|
|
48
|
+
}
|
|
49
|
+
});
|
|
50
|
+
function serializeComponentInfo(info) {
|
|
51
|
+
return {
|
|
52
|
+
name: info.name,
|
|
53
|
+
defaultProps: Object.fromEntries(info.defaultProps),
|
|
54
|
+
getStylesLiterals: Object.fromEntries(info.getStylesLiterals),
|
|
55
|
+
cxLiterals: info.cxLiterals,
|
|
56
|
+
internalComponents: info.internalComponents,
|
|
57
|
+
internalComponentProps: Object.fromEntries(Array.from(info.internalComponentProps.entries()).map(([key, propsMap]) => [key, Object.fromEntries(propsMap)])),
|
|
58
|
+
propToVariantKeys: Object.fromEntries(info.propToVariantKeys),
|
|
59
|
+
motionVarPrefixes: info.motionVarPrefixes
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
//#endregion
|
|
64
|
+
export { makeGenerateComponentDataCommand };
|
|
@@ -25,7 +25,7 @@ const makeGeneratePurgeCSSDataCommand = (getContext) => ({
|
|
|
25
25
|
componentToTwClasses = require_generatePurgeCSSData.addAutoVariantsToComponentClasses(componentToTwClasses);
|
|
26
26
|
const outputFilePath = node_path.default.resolve(process.cwd(), "./generated/tailwindPurge.ts");
|
|
27
27
|
const formattedContent = await (0, prettier.format)(`
|
|
28
|
-
//! This file is generated by
|
|
28
|
+
//! This file is generated by \`uds purge\` from @yahoo/uds
|
|
29
29
|
//! Do not edit directly
|
|
30
30
|
//! If there is issue with this file please report to #ask-uds
|
|
31
31
|
|
|
@@ -23,7 +23,7 @@ const makeGeneratePurgeCSSDataCommand = (getContext) => ({
|
|
|
23
23
|
componentToTwClasses = addAutoVariantsToComponentClasses(componentToTwClasses);
|
|
24
24
|
const outputFilePath = path.resolve(process.cwd(), "./generated/tailwindPurge.ts");
|
|
25
25
|
const formattedContent = await format(`
|
|
26
|
-
//! This file is generated by
|
|
26
|
+
//! This file is generated by \`uds purge\` from @yahoo/uds
|
|
27
27
|
//! Do not edit directly
|
|
28
28
|
//! If there is issue with this file please report to #ask-uds
|
|
29
29
|
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
/*! © 2026 Yahoo, Inc. UDS v0.0.0-development */
|
|
2
2
|
const require_analytics = require('../../../cli/dist/utils/analytics.cjs');
|
|
3
|
+
const require_print = require('../../../cli/dist/lib/print.cjs');
|
|
3
4
|
const require_spinner = require('../../../cli/dist/lib/spinner.cjs');
|
|
4
|
-
const require_purgeCSS = require('../
|
|
5
|
+
const require_purgeCSS = require('../purger/legacy/purgeCSS.cjs');
|
|
6
|
+
const require_purge = require('../purger/optimized/purge.cjs');
|
|
5
7
|
|
|
6
8
|
//#region ../tailwind/dist/commands/purge.js
|
|
7
9
|
/*! © 2026 Yahoo, Inc. UDS Tailwind and Purger v0.0.0-development */
|
|
@@ -9,16 +11,44 @@ const makePurgeCommand = (getContext) => ({
|
|
|
9
11
|
name: "purge",
|
|
10
12
|
description: `Purge unused CSS`,
|
|
11
13
|
run: async (props) => {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
require_spinner.
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
14
|
+
const { entry, output, optimized, config } = props.options;
|
|
15
|
+
const useOptimized = optimized === "true" || optimized === true;
|
|
16
|
+
const { variants, autoVariants, packageJson, generatedPurgeCssData, componentData } = await getContext();
|
|
17
|
+
if (useOptimized) {
|
|
18
|
+
require_spinner.spinStart("Purging CSS with optimized purger...");
|
|
19
|
+
try {
|
|
20
|
+
const result = await require_purge.purgeOptimized({
|
|
21
|
+
entry: typeof entry === "string" ? entry : void 0,
|
|
22
|
+
output: typeof output === "string" ? output : void 0,
|
|
23
|
+
variants,
|
|
24
|
+
autoVariants,
|
|
25
|
+
componentData
|
|
26
|
+
});
|
|
27
|
+
require_spinner.spinStop("✅", `Purging done (optimized)! Generated ${result.stats.classesGenerated} classes in ${result.stats.timeMs}ms`);
|
|
28
|
+
require_print.print(` Files scanned: ${result.stats.filesScanned}`);
|
|
29
|
+
require_print.print(` Spreads traced: ${result.stats.spreadsTraced}`);
|
|
30
|
+
require_print.print(` Expressions resolved: ${result.stats.expressionsResolved}`);
|
|
31
|
+
return await require_analytics.trackEvent("purge", { optimized: true });
|
|
32
|
+
} catch (error) {
|
|
33
|
+
if (error instanceof Error) require_spinner.spinStop("❌", error.message);
|
|
34
|
+
else require_spinner.spinStop("❌", "Purging css failed! Please reach out to #uds-ask channel for support.");
|
|
35
|
+
process.exitCode = 1;
|
|
36
|
+
}
|
|
37
|
+
} else {
|
|
38
|
+
require_spinner.spinStart("Purging css started...");
|
|
39
|
+
try {
|
|
40
|
+
await require_purgeCSS.purge(variants, packageJson, generatedPurgeCssData, {
|
|
41
|
+
config: typeof config === "string" ? config : void 0,
|
|
42
|
+
entry: typeof entry === "string" ? entry : void 0,
|
|
43
|
+
output: typeof output === "string" ? output : void 0
|
|
44
|
+
});
|
|
45
|
+
require_spinner.spinStop("✅", "Purging css done!");
|
|
46
|
+
return await require_analytics.trackEvent("purge");
|
|
47
|
+
} catch (error) {
|
|
48
|
+
if (error instanceof Error) require_spinner.spinStop("❌", error.message);
|
|
49
|
+
else require_spinner.spinStop("❌", "Purging css failed! Please reach out to #uds-ask channel for support.");
|
|
50
|
+
process.exitCode = 1;
|
|
51
|
+
}
|
|
22
52
|
}
|
|
23
53
|
}
|
|
24
54
|
});
|