@yahoo/uds-v5-wip 1.22.0 → 1.24.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/config/dist/component-resolution.d.ts +1 -1
- package/dist/config/dist/consts/defaultColors.d.ts +1 -2
- package/dist/config/dist/createConfig.d.ts +12 -6
- package/dist/config/dist/createConfig.js +6 -3
- package/dist/config/dist/preset-merge.js +34 -1
- package/dist/config/dist/propertyGroups.d.ts +0 -5
- package/dist/config/dist/serialize.d.ts +2 -2
- package/dist/config/dist/serialize.js +4 -2
- package/dist/config/dist/types.d.ts +1 -2
- package/dist/config.d.ts +197 -197
- package/dist/core/dist/createComponent.d.ts +1 -2
- package/dist/core/dist/createComponentExample.d.ts +1 -2
- package/dist/core/dist/createProvider.d.ts +1 -2
- package/dist/core/dist/generated/stylePropsTwMap.d.ts +1 -2
- package/dist/core/dist/getComponentStyles.d.ts +1 -2
- package/dist/core/dist/getStyles.d.ts +1 -2
- package/dist/core/dist/macros.d.ts +1 -2
- package/dist/core/dist/propMappings.d.ts +1 -2
- package/dist/core/dist/resolveMotionState.d.ts +1 -2
- package/dist/core/dist/transformPreset.d.ts +1 -2
- package/dist/core/dist/withDefaultStyleProps.d.ts +1 -2
- package/dist/foundational-presets/dist/boldVibrant.d.ts +197 -198
- package/dist/foundational-presets/dist/brutalist.d.ts +197 -198
- package/dist/foundational-presets/dist/candy.d.ts +197 -198
- package/dist/foundational-presets/dist/cleanMinimalist.d.ts +197 -198
- package/dist/foundational-presets/dist/corporate.d.ts +197 -198
- package/dist/foundational-presets/dist/darkMoody.d.ts +197 -198
- package/dist/foundational-presets/dist/defaultPreset.d.ts +197 -198
- package/dist/foundational-presets/dist/forest.d.ts +197 -198
- package/dist/foundational-presets/dist/highContrast.d.ts +197 -198
- package/dist/foundational-presets/dist/lavender.d.ts +197 -198
- package/dist/foundational-presets/dist/luxury.d.ts +197 -198
- package/dist/foundational-presets/dist/monochrome.d.ts +197 -198
- package/dist/foundational-presets/dist/motion.d.ts +1 -2
- package/dist/foundational-presets/dist/neonCyber.d.ts +197 -198
- package/dist/foundational-presets/dist/newspaper.d.ts +197 -198
- package/dist/foundational-presets/dist/ocean.d.ts +197 -198
- package/dist/foundational-presets/dist/slate.d.ts +197 -198
- package/dist/foundational-presets/dist/sunset.d.ts +197 -198
- package/dist/foundational-presets/dist/terminal.d.ts +197 -198
- package/dist/foundational-presets/dist/warmOrganic.d.ts +197 -198
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +3 -3
package/dist/config.d.ts
CHANGED
|
@@ -8,47 +8,6 @@ import * as _$_uds_types0 from "@uds/types";
|
|
|
8
8
|
//#region src/config.d.ts
|
|
9
9
|
declare const uds: UdsConfig<_$_uds_types0.ModifierProp, {}, {}, {}, {}, never, {}>;
|
|
10
10
|
declare const defaultPreset: UdsConfig<_$_uds_types0.ModifierProp | "_light" | "_dark" | "_sm" | "_md" | "_lg" | "_xl" | "_2xl", {
|
|
11
|
-
opacity: {
|
|
12
|
-
0: string;
|
|
13
|
-
5: string;
|
|
14
|
-
10: string;
|
|
15
|
-
20: string;
|
|
16
|
-
40: string;
|
|
17
|
-
60: string;
|
|
18
|
-
80: string;
|
|
19
|
-
25: string;
|
|
20
|
-
30: string;
|
|
21
|
-
50: string;
|
|
22
|
-
70: string;
|
|
23
|
-
75: string;
|
|
24
|
-
90: string;
|
|
25
|
-
95: string;
|
|
26
|
-
100: string;
|
|
27
|
-
};
|
|
28
|
-
scale: {
|
|
29
|
-
0: string;
|
|
30
|
-
50: string;
|
|
31
|
-
75: string;
|
|
32
|
-
90: string;
|
|
33
|
-
95: string;
|
|
34
|
-
100: string;
|
|
35
|
-
105: string;
|
|
36
|
-
110: string;
|
|
37
|
-
125: string;
|
|
38
|
-
150: string;
|
|
39
|
-
200: string;
|
|
40
|
-
};
|
|
41
|
-
rotate: {
|
|
42
|
-
0: string;
|
|
43
|
-
2: string;
|
|
44
|
-
1: string;
|
|
45
|
-
3: string;
|
|
46
|
-
6: string;
|
|
47
|
-
12: string;
|
|
48
|
-
90: string;
|
|
49
|
-
45: string;
|
|
50
|
-
180: string;
|
|
51
|
-
};
|
|
52
11
|
color: {
|
|
53
12
|
inherit: string;
|
|
54
13
|
current: string;
|
|
@@ -74,7 +33,23 @@ declare const defaultPreset: UdsConfig<_$_uds_types0.ModifierProp | "_light" | "
|
|
|
74
33
|
inverse: string;
|
|
75
34
|
"on-inverse": string;
|
|
76
35
|
};
|
|
77
|
-
|
|
36
|
+
fontFamily: {
|
|
37
|
+
sans: string;
|
|
38
|
+
serif: string;
|
|
39
|
+
mono: string;
|
|
40
|
+
};
|
|
41
|
+
fontWeight: {
|
|
42
|
+
bold: string;
|
|
43
|
+
light: string;
|
|
44
|
+
thin: string;
|
|
45
|
+
medium: string;
|
|
46
|
+
extralight: string;
|
|
47
|
+
normal: string;
|
|
48
|
+
semibold: string;
|
|
49
|
+
extrabold: string;
|
|
50
|
+
black: string;
|
|
51
|
+
};
|
|
52
|
+
bg: {
|
|
78
53
|
brand: string;
|
|
79
54
|
accent: string;
|
|
80
55
|
alert: string;
|
|
@@ -85,51 +60,17 @@ declare const defaultPreset: UdsConfig<_$_uds_types0.ModifierProp | "_light" | "
|
|
|
85
60
|
tertiary: string;
|
|
86
61
|
inverse: string;
|
|
87
62
|
surface: string;
|
|
63
|
+
"elevation-1": string;
|
|
64
|
+
"elevation-2": string;
|
|
65
|
+
"elevation-3": string;
|
|
88
66
|
"brand-wash": string;
|
|
89
67
|
"accent-wash": string;
|
|
90
68
|
"alert-wash": string;
|
|
91
69
|
"positive-wash": string;
|
|
92
70
|
"warning-wash": string;
|
|
93
|
-
};
|
|
94
|
-
position: {
|
|
95
|
-
auto: string;
|
|
96
|
-
full: string;
|
|
97
|
-
"1/2": string;
|
|
98
|
-
"1/3": string;
|
|
99
|
-
"2/3": string;
|
|
100
|
-
"1/4": string;
|
|
101
|
-
"2/4": string;
|
|
102
|
-
"3/4": string;
|
|
103
|
-
};
|
|
104
|
-
size: {
|
|
105
|
-
auto: string;
|
|
106
|
-
full: string;
|
|
107
|
-
max: string;
|
|
108
|
-
min: string;
|
|
109
|
-
"1/2": string;
|
|
110
|
-
"1/3": string;
|
|
111
|
-
"2/3": string;
|
|
112
|
-
"1/4": string;
|
|
113
|
-
"2/4": string;
|
|
114
|
-
"3/4": string;
|
|
115
|
-
fit: string;
|
|
116
|
-
"1/5": string;
|
|
117
|
-
"2/5": string;
|
|
118
|
-
"3/5": string;
|
|
119
|
-
"4/5": string;
|
|
120
|
-
"1/6": string;
|
|
121
|
-
"2/6": string;
|
|
122
|
-
"3/6": string;
|
|
123
|
-
"4/6": string;
|
|
124
|
-
"5/6": string;
|
|
125
|
-
};
|
|
126
|
-
animation: {
|
|
127
|
-
none: string;
|
|
128
|
-
ping: string;
|
|
129
|
-
spin: string;
|
|
130
|
-
};
|
|
131
|
-
bg: {
|
|
132
71
|
overlay: string;
|
|
72
|
+
};
|
|
73
|
+
borderColor: {
|
|
133
74
|
brand: string;
|
|
134
75
|
accent: string;
|
|
135
76
|
alert: string;
|
|
@@ -140,9 +81,6 @@ declare const defaultPreset: UdsConfig<_$_uds_types0.ModifierProp | "_light" | "
|
|
|
140
81
|
tertiary: string;
|
|
141
82
|
inverse: string;
|
|
142
83
|
surface: string;
|
|
143
|
-
"elevation-1": string;
|
|
144
|
-
"elevation-2": string;
|
|
145
|
-
"elevation-3": string;
|
|
146
84
|
"brand-wash": string;
|
|
147
85
|
"accent-wash": string;
|
|
148
86
|
"alert-wash": string;
|
|
@@ -155,50 +93,63 @@ declare const defaultPreset: UdsConfig<_$_uds_types0.ModifierProp | "_light" | "
|
|
|
155
93
|
medium: string;
|
|
156
94
|
thick: string;
|
|
157
95
|
};
|
|
158
|
-
|
|
96
|
+
outlineWidth: {
|
|
159
97
|
0: string;
|
|
160
|
-
4: string;
|
|
161
|
-
reverse: string;
|
|
162
98
|
2: string;
|
|
99
|
+
1: string;
|
|
100
|
+
4: string;
|
|
163
101
|
8: string;
|
|
164
102
|
};
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
auto: string;
|
|
103
|
+
outlineOffset: {
|
|
104
|
+
0: string;
|
|
105
|
+
2: string;
|
|
169
106
|
1: string;
|
|
107
|
+
4: string;
|
|
108
|
+
8: string;
|
|
170
109
|
};
|
|
171
|
-
|
|
110
|
+
divideWidth: {
|
|
172
111
|
0: string;
|
|
112
|
+
2: string;
|
|
113
|
+
reverse: string;
|
|
114
|
+
4: string;
|
|
115
|
+
8: string;
|
|
116
|
+
};
|
|
117
|
+
ringWidth: {
|
|
118
|
+
0: string;
|
|
119
|
+
2: string;
|
|
173
120
|
1: string;
|
|
121
|
+
inset: string;
|
|
122
|
+
4: string;
|
|
123
|
+
8: string;
|
|
174
124
|
};
|
|
175
|
-
|
|
125
|
+
ringOffsetWidth: {
|
|
176
126
|
0: string;
|
|
127
|
+
2: string;
|
|
128
|
+
1: string;
|
|
129
|
+
4: string;
|
|
130
|
+
8: string;
|
|
177
131
|
};
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
ultrawide: string;
|
|
184
|
-
golden: string;
|
|
132
|
+
lineHeight: {
|
|
133
|
+
none: string;
|
|
134
|
+
normal: string;
|
|
135
|
+
tight: string;
|
|
136
|
+
relaxed: string;
|
|
185
137
|
};
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
50: string;
|
|
138
|
+
letterSpacing: {
|
|
139
|
+
normal: string;
|
|
140
|
+
tight: string;
|
|
141
|
+
tighter: string;
|
|
142
|
+
wide: string;
|
|
143
|
+
wider: string;
|
|
144
|
+
widest: string;
|
|
194
145
|
};
|
|
195
146
|
spacing: {
|
|
196
147
|
0: string;
|
|
197
|
-
4: string;
|
|
198
148
|
2: string;
|
|
199
149
|
5: string;
|
|
200
150
|
1: string;
|
|
201
151
|
px: string;
|
|
152
|
+
4: string;
|
|
202
153
|
8: string;
|
|
203
154
|
0.5: string;
|
|
204
155
|
1.5: string;
|
|
@@ -229,116 +180,183 @@ declare const defaultPreset: UdsConfig<_$_uds_types0.ModifierProp | "_light" | "
|
|
|
229
180
|
80: string;
|
|
230
181
|
96: string;
|
|
231
182
|
};
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
183
|
+
position: {
|
|
184
|
+
auto: string;
|
|
185
|
+
full: string;
|
|
186
|
+
"1/2": string;
|
|
187
|
+
"1/3": string;
|
|
188
|
+
"2/3": string;
|
|
189
|
+
"1/4": string;
|
|
190
|
+
"2/4": string;
|
|
191
|
+
"3/4": string;
|
|
237
192
|
};
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
193
|
+
aspectRatio: {
|
|
194
|
+
square: string;
|
|
195
|
+
landscape: string;
|
|
196
|
+
portrait: string;
|
|
197
|
+
widescreen: string;
|
|
198
|
+
ultrawide: string;
|
|
199
|
+
golden: string;
|
|
200
|
+
};
|
|
201
|
+
flex: {
|
|
242
202
|
1: string;
|
|
243
|
-
|
|
203
|
+
none: string;
|
|
204
|
+
auto: string;
|
|
205
|
+
initial: string;
|
|
244
206
|
};
|
|
245
|
-
|
|
207
|
+
flexGrow: {
|
|
246
208
|
0: string;
|
|
247
|
-
4: string;
|
|
248
|
-
2: string;
|
|
249
209
|
1: string;
|
|
250
|
-
8: string;
|
|
251
210
|
};
|
|
252
|
-
|
|
211
|
+
flexShrink: {
|
|
253
212
|
0: string;
|
|
254
|
-
4: string;
|
|
255
|
-
inset: string;
|
|
256
|
-
2: string;
|
|
257
|
-
1: string;
|
|
258
|
-
8: string;
|
|
259
213
|
};
|
|
260
|
-
|
|
214
|
+
opacity: {
|
|
261
215
|
0: string;
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
216
|
+
5: string;
|
|
217
|
+
10: string;
|
|
218
|
+
20: string;
|
|
219
|
+
40: string;
|
|
220
|
+
60: string;
|
|
221
|
+
80: string;
|
|
222
|
+
25: string;
|
|
223
|
+
30: string;
|
|
224
|
+
50: string;
|
|
225
|
+
70: string;
|
|
226
|
+
75: string;
|
|
227
|
+
90: string;
|
|
228
|
+
95: string;
|
|
229
|
+
100: string;
|
|
266
230
|
};
|
|
267
|
-
|
|
268
|
-
none: string;
|
|
231
|
+
radius: {
|
|
269
232
|
sm: string;
|
|
270
233
|
md: string;
|
|
271
234
|
lg: string;
|
|
272
235
|
xl: string;
|
|
273
|
-
|
|
274
|
-
|
|
236
|
+
none: string;
|
|
237
|
+
full: string;
|
|
275
238
|
xs: string;
|
|
276
|
-
inner: string;
|
|
277
|
-
};
|
|
278
|
-
strokeWidth: {
|
|
279
|
-
0: string;
|
|
280
|
-
2: string;
|
|
281
|
-
1: string;
|
|
282
239
|
};
|
|
283
|
-
|
|
284
|
-
sans: string;
|
|
285
|
-
serif: string;
|
|
286
|
-
mono: string;
|
|
287
|
-
};
|
|
288
|
-
fontWeight: {
|
|
289
|
-
normal: string;
|
|
290
|
-
thin: string;
|
|
291
|
-
bold: string;
|
|
292
|
-
light: string;
|
|
293
|
-
medium: string;
|
|
294
|
-
extralight: string;
|
|
295
|
-
semibold: string;
|
|
296
|
-
extrabold: string;
|
|
297
|
-
black: string;
|
|
298
|
-
};
|
|
299
|
-
letterSpacing: {
|
|
300
|
-
normal: string;
|
|
301
|
-
tight: string;
|
|
302
|
-
tighter: string;
|
|
303
|
-
wide: string;
|
|
304
|
-
wider: string;
|
|
305
|
-
widest: string;
|
|
306
|
-
};
|
|
307
|
-
lineHeight: {
|
|
240
|
+
animation: {
|
|
308
241
|
none: string;
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
relaxed: string;
|
|
242
|
+
spin: string;
|
|
243
|
+
ping: string;
|
|
312
244
|
};
|
|
313
|
-
|
|
314
|
-
none: string;
|
|
245
|
+
shadow: {
|
|
315
246
|
sm: string;
|
|
316
247
|
md: string;
|
|
317
248
|
lg: string;
|
|
318
|
-
|
|
249
|
+
xl: string;
|
|
250
|
+
"2xl": string;
|
|
251
|
+
none: string;
|
|
319
252
|
xs: string;
|
|
253
|
+
"2xs": string;
|
|
254
|
+
inner: string;
|
|
320
255
|
};
|
|
321
256
|
blur: {
|
|
322
|
-
none: string;
|
|
323
257
|
sm: string;
|
|
324
258
|
md: string;
|
|
325
259
|
lg: string;
|
|
326
260
|
xl: string;
|
|
327
261
|
"2xl": string;
|
|
262
|
+
none: string;
|
|
328
263
|
"3xl": string;
|
|
329
264
|
};
|
|
330
|
-
|
|
265
|
+
textShadow: {
|
|
266
|
+
sm: string;
|
|
267
|
+
md: string;
|
|
268
|
+
lg: string;
|
|
269
|
+
none: string;
|
|
270
|
+
xs: string;
|
|
271
|
+
"2xs": string;
|
|
272
|
+
};
|
|
273
|
+
zIndex: {
|
|
331
274
|
0: string;
|
|
332
|
-
|
|
275
|
+
auto: string;
|
|
276
|
+
10: string;
|
|
277
|
+
20: string;
|
|
278
|
+
40: string;
|
|
279
|
+
30: string;
|
|
280
|
+
50: string;
|
|
281
|
+
};
|
|
282
|
+
size: {
|
|
283
|
+
auto: string;
|
|
333
284
|
full: string;
|
|
285
|
+
"1/2": string;
|
|
286
|
+
"1/3": string;
|
|
287
|
+
"2/3": string;
|
|
288
|
+
"1/4": string;
|
|
289
|
+
"2/4": string;
|
|
290
|
+
"3/4": string;
|
|
291
|
+
min: string;
|
|
292
|
+
max: string;
|
|
293
|
+
fit: string;
|
|
294
|
+
"1/5": string;
|
|
295
|
+
"2/5": string;
|
|
296
|
+
"3/5": string;
|
|
297
|
+
"4/5": string;
|
|
298
|
+
"1/6": string;
|
|
299
|
+
"2/6": string;
|
|
300
|
+
"3/6": string;
|
|
301
|
+
"4/6": string;
|
|
302
|
+
"5/6": string;
|
|
303
|
+
};
|
|
304
|
+
w: {
|
|
305
|
+
screen: string;
|
|
306
|
+
svw: string;
|
|
307
|
+
lvw: string;
|
|
308
|
+
dvw: string;
|
|
309
|
+
};
|
|
310
|
+
h: {
|
|
311
|
+
screen: string;
|
|
312
|
+
svh: string;
|
|
313
|
+
lvh: string;
|
|
314
|
+
dvh: string;
|
|
315
|
+
};
|
|
316
|
+
rotate: {
|
|
317
|
+
0: string;
|
|
318
|
+
2: string;
|
|
319
|
+
1: string;
|
|
320
|
+
3: string;
|
|
321
|
+
6: string;
|
|
322
|
+
12: string;
|
|
323
|
+
90: string;
|
|
324
|
+
45: string;
|
|
325
|
+
180: string;
|
|
326
|
+
};
|
|
327
|
+
scale: {
|
|
328
|
+
0: string;
|
|
329
|
+
50: string;
|
|
330
|
+
75: string;
|
|
331
|
+
90: string;
|
|
332
|
+
95: string;
|
|
333
|
+
100: string;
|
|
334
|
+
105: string;
|
|
335
|
+
110: string;
|
|
336
|
+
125: string;
|
|
337
|
+
150: string;
|
|
338
|
+
200: string;
|
|
339
|
+
};
|
|
340
|
+
skew: {
|
|
341
|
+
0: string;
|
|
342
|
+
2: string;
|
|
343
|
+
1: string;
|
|
344
|
+
3: string;
|
|
345
|
+
6: string;
|
|
346
|
+
12: string;
|
|
347
|
+
};
|
|
348
|
+
translate: {
|
|
349
|
+
0: string;
|
|
334
350
|
2: string;
|
|
335
351
|
5: string;
|
|
336
352
|
1: string;
|
|
353
|
+
full: string;
|
|
337
354
|
"1/2": string;
|
|
338
355
|
"1/3": string;
|
|
339
356
|
"2/3": string;
|
|
340
357
|
"1/4": string;
|
|
341
358
|
"3/4": string;
|
|
359
|
+
4: string;
|
|
342
360
|
8: string;
|
|
343
361
|
0.5: string;
|
|
344
362
|
1.5: string;
|
|
@@ -369,28 +387,10 @@ declare const defaultPreset: UdsConfig<_$_uds_types0.ModifierProp | "_light" | "
|
|
|
369
387
|
80: string;
|
|
370
388
|
96: string;
|
|
371
389
|
};
|
|
372
|
-
|
|
373
|
-
none: string;
|
|
374
|
-
sm: string;
|
|
375
|
-
md: string;
|
|
376
|
-
lg: string;
|
|
377
|
-
xl: string;
|
|
378
|
-
xs: string;
|
|
379
|
-
full: string;
|
|
380
|
-
};
|
|
381
|
-
h: {
|
|
382
|
-
screen: string;
|
|
383
|
-
svh: string;
|
|
384
|
-
lvh: string;
|
|
385
|
-
dvh: string;
|
|
386
|
-
};
|
|
387
|
-
skew: {
|
|
390
|
+
strokeWidth: {
|
|
388
391
|
0: string;
|
|
389
392
|
2: string;
|
|
390
393
|
1: string;
|
|
391
|
-
3: string;
|
|
392
|
-
6: string;
|
|
393
|
-
12: string;
|
|
394
394
|
};
|
|
395
395
|
}, {}, {}, {}, "_light" | "_dark" | "_sm" | "_md" | "_lg" | "_xl" | "_2xl", {
|
|
396
396
|
readonly color: {
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { CreateComponentConfig, CreateComponentProps, CreateComponentRenderFn, CreateComponentSlotTagConfig, CreateComponentTypeInput } from "@uds/types";
|
|
2
2
|
|
|
3
3
|
//#region ../core/dist/createComponent.d.ts
|
|
4
|
-
//#region src/createComponent.d.ts
|
|
5
4
|
type PrimitiveTag = keyof React.JSX.IntrinsicElements;
|
|
6
5
|
type SpecConfig<TSpec> = TSpec extends {
|
|
7
6
|
config: infer TConfig extends CreateComponentTypeInput;
|
|
@@ -52,6 +51,6 @@ declare function createComponent<TSpecOrProps = {}>(tag: PrimitiveTag): React.FC
|
|
|
52
51
|
props: infer TOwnProps;
|
|
53
52
|
} ? CreateComponentProps<TConfig, TOwnProps, PrimitiveTag> : PrimitiveOwnProps<TSpecOrProps>>;
|
|
54
53
|
declare function createComponent<TSpec>(renderFn: CreateComponentRenderFn<SpecConfig<TSpec>, SpecOwnProps<TSpec>, SpecSlotConfig<TSpec>>): React.FC<CreateComponentProps<SpecConfig<TSpec>, SpecOwnProps<TSpec>, SpecSlotConfig<TSpec>>>;
|
|
55
|
-
declare function createComponent(config: CreateComponentConfig<string>, renderFn: CreateComponentRenderFn<any, any, any>): React.FC<any>;
|
|
54
|
+
declare function createComponent(config: CreateComponentConfig<string>, renderFn: CreateComponentRenderFn<any, any, any>): React.FC<any>;
|
|
56
55
|
//#endregion
|
|
57
56
|
export { createComponent };
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { ComponentProps, ComponentType } from "react";
|
|
2
2
|
|
|
3
3
|
//#region ../core/dist/createComponentExample.d.ts
|
|
4
|
-
//#region src/createComponentExample.d.ts
|
|
5
4
|
/**
|
|
6
5
|
* Extracts variant fixtures from a Component's props type.
|
|
7
6
|
* If Button has `variant?: 'brand' | 'outline'` and `size?: 'sm' | 'md'`,
|
|
@@ -37,6 +36,6 @@ type ExamplesResult<TComponent extends ComponentType<any>> = {
|
|
|
37
36
|
* }));
|
|
38
37
|
* ```
|
|
39
38
|
*/
|
|
40
|
-
declare function createComponentExample<TComponent extends ComponentType<any>, T extends Record<string, ExampleFn<TComponent>>>(Component: TComponent, examplesFn: (fixtures: VariantFixtures<TComponent>) => ExamplesResult<TComponent>): ComponentExample<T>;
|
|
39
|
+
declare function createComponentExample<TComponent extends ComponentType<any>, T extends Record<string, ExampleFn<TComponent>>>(Component: TComponent, examplesFn: (fixtures: VariantFixtures<TComponent>) => ExamplesResult<TComponent>): ComponentExample<T>;
|
|
41
40
|
//#endregion
|
|
42
41
|
export { ComponentExample, createComponentExample };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
//#region ../core/dist/createProvider.d.ts
|
|
2
|
-
//#region src/createProvider.d.ts
|
|
3
2
|
type ProviderRenderFn<TContext, TProps = Record<never, never>> = (props: {
|
|
4
3
|
children: React.ReactNode;
|
|
5
4
|
} & TProps) => {
|
|
@@ -8,6 +7,6 @@ type ProviderRenderFn<TContext, TProps = Record<never, never>> = (props: {
|
|
|
8
7
|
};
|
|
9
8
|
declare function createProvider<TContext, TProps = Record<never, never>>(name: string, renderFn: ProviderRenderFn<TContext, TProps>): [React.FC<{
|
|
10
9
|
children: React.ReactNode;
|
|
11
|
-
} & TProps>, () => TContext];
|
|
10
|
+
} & TProps>, () => TContext];
|
|
12
11
|
//#endregion
|
|
13
12
|
export { createProvider };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
//#region ../core/dist/generated/stylePropsTwMap.d.ts
|
|
2
|
-
//#region src/generated/stylePropsTwMap.d.ts
|
|
3
2
|
declare const stylePropsTwMap: {
|
|
4
3
|
readonly "border-boolean": {
|
|
5
4
|
readonly border: "boolean";
|
|
@@ -1696,6 +1695,6 @@ declare const stylePropsTwMap: {
|
|
|
1696
1695
|
readonly "hyphens-manual": {
|
|
1697
1696
|
readonly hyphens: "manual";
|
|
1698
1697
|
};
|
|
1699
|
-
};
|
|
1698
|
+
};
|
|
1700
1699
|
//#endregion
|
|
1701
1700
|
export { stylePropsTwMap };
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { ComponentRegistry, ComponentSlotsOf, ComponentVariantsOf } from "@uds/types";
|
|
2
2
|
|
|
3
3
|
//#region ../core/dist/getComponentStyles.d.ts
|
|
4
|
-
//#region src/getComponentStyles.d.ts
|
|
5
4
|
type ResolveSlots<Name extends string> = Name extends keyof ComponentRegistry ? ComponentSlotsOf<Name> : string;
|
|
6
5
|
type ResolveVariants<Name extends string> = Name extends keyof ComponentRegistry ? ComponentVariantsOf<Name> : Record<string, string>;
|
|
7
6
|
interface UdsRuntimeMeta {
|
|
@@ -45,6 +44,6 @@ interface ComponentStyler<Name extends string> {
|
|
|
45
44
|
* @param slots - Array of slot names
|
|
46
45
|
* @param element - Optional HTML element tag for element-specific prop forwarding
|
|
47
46
|
*/
|
|
48
|
-
declare function createComponentStyler<Name extends string>(componentName: Name, slots: readonly string[], element?: string, variants?: readonly string[]): ComponentStyler<Name>;
|
|
47
|
+
declare function createComponentStyler<Name extends string>(componentName: Name, slots: readonly string[], element?: string, variants?: readonly string[]): ComponentStyler<Name>;
|
|
49
48
|
//#endregion
|
|
50
49
|
export { createComponentStyler };
|
|
@@ -2,7 +2,6 @@ import { ClassValue } from "clsx";
|
|
|
2
2
|
import { ModifierProp, ModifierProps, StyleAndModifierProps, StyleProps } from "@uds/types";
|
|
3
3
|
|
|
4
4
|
//#region ../core/dist/getStyles.d.ts
|
|
5
|
-
//#region src/getStyles.d.ts
|
|
6
5
|
/** Convert kebab-case CSS property to camelCase for React inline styles.
|
|
7
6
|
* CSS custom properties (--*) are kept as-is since React supports them verbatim. */
|
|
8
7
|
declare function toCamelCase(str: string): string;
|
|
@@ -38,6 +37,6 @@ interface GetStylesParams extends StyleProps, ModifierProps {
|
|
|
38
37
|
* so they can be included in the CSS safelist.
|
|
39
38
|
*/
|
|
40
39
|
declare function getStyles(props: GetStylesParams): string;
|
|
41
|
-
declare function getVariantClassName(componentName: string, variant: string | undefined): string;
|
|
40
|
+
declare function getVariantClassName(componentName: string, variant: string | undefined): string;
|
|
42
41
|
//#endregion
|
|
43
42
|
export { createVariants, cx, getStyles, getVariantClassName, processStyleProps, toCamelCase };
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { MacroConfig } from "@uds/types";
|
|
2
2
|
|
|
3
3
|
//#region ../core/dist/macros.d.ts
|
|
4
|
-
//#region src/macros.d.ts
|
|
5
4
|
/** Set the macro config (called by loader at build time) */
|
|
6
5
|
declare function setMacroConfig(config: MacroConfig): void;
|
|
7
6
|
/** Get the current macro config */
|
|
@@ -17,6 +16,6 @@ declare function getMacroConfig(): MacroConfig;
|
|
|
17
16
|
declare function expandMacros(props: Record<string, unknown>, config?: MacroConfig): {
|
|
18
17
|
expanded: Record<string, unknown>;
|
|
19
18
|
markerClasses: string[];
|
|
20
|
-
};
|
|
19
|
+
};
|
|
21
20
|
//#endregion
|
|
22
21
|
export { expandMacros, getMacroConfig, setMacroConfig };
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { ConfigurableProp, ModifierProp, StyleProp } from "@uds/types";
|
|
2
2
|
|
|
3
3
|
//#region ../core/dist/propMappings.d.ts
|
|
4
|
-
//#region src/propMappings.d.ts
|
|
5
4
|
interface PropMapping {
|
|
6
5
|
/** Class name prefix for runtime class generation. 'no-prefix' means value IS the class. */
|
|
7
6
|
classPrefix: string;
|
|
@@ -72,6 +71,6 @@ interface ModifierEntry {
|
|
|
72
71
|
*
|
|
73
72
|
* e.g. `bg="primary"` + `bgOpacity="75"` → class `bg-primary_75`
|
|
74
73
|
*/
|
|
75
|
-
declare const colorPropToOpacityProp: Record<string, string>;
|
|
74
|
+
declare const colorPropToOpacityProp: Record<string, string>;
|
|
76
75
|
//#endregion
|
|
77
76
|
export { ConfigurablePropertyEntry, CssVariablePrefixEntry, ModifierEntry, PropMapping, colorPropToOpacityProp, getConfigurablePropMapping, getConfigurableProperties, getCssVariablePrefixes, modifierMappings, propMappings };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
//#region ../core/dist/resolveMotionState.d.ts
|
|
2
|
-
|
|
3
|
-
declare function resolveMotionState(stateKeyframe: Record<string, unknown>, index: number): Record<string, number>; //#endregion
|
|
2
|
+
declare function resolveMotionState(stateKeyframe: Record<string, unknown>, index: number): Record<string, number>;
|
|
4
3
|
//#endregion
|
|
5
4
|
export { resolveMotionState };
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { MotionPreset } from "@uds/types";
|
|
2
2
|
|
|
3
3
|
//#region ../core/dist/transformPreset.d.ts
|
|
4
|
-
//#region src/transformPreset.d.ts
|
|
5
4
|
interface TransformedMotionProps {
|
|
6
5
|
initial?: Record<string, unknown>;
|
|
7
6
|
animate?: Record<string, unknown>;
|
|
@@ -13,6 +12,6 @@ interface TransformedMotionProps {
|
|
|
13
12
|
/**
|
|
14
13
|
* Convert a JS-runtime MotionPreset to a motion/react-compatible props object.
|
|
15
14
|
*/
|
|
16
|
-
declare function transformPreset(preset: MotionPreset): TransformedMotionProps;
|
|
15
|
+
declare function transformPreset(preset: MotionPreset): TransformedMotionProps;
|
|
17
16
|
//#endregion
|
|
18
17
|
export { TransformedMotionProps, transformPreset };
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { BorderRadius, GridSpan, GridStartEnd, GridTemplate, StyleAndModifierProps } from "@uds/types";
|
|
2
2
|
|
|
3
3
|
//#region ../core/dist/withDefaultStyleProps.d.ts
|
|
4
|
-
//#region src/withDefaultStyleProps.d.ts
|
|
5
4
|
interface StackDefaultsInput extends StyleAndModifierProps {
|
|
6
5
|
gap?: StyleAndModifierProps['gap'];
|
|
7
6
|
}
|
|
@@ -39,6 +38,6 @@ declare const withDefaultStyleProps: {
|
|
|
39
38
|
shape?: BorderRadius;
|
|
40
39
|
}) => StyleAndModifierProps;
|
|
41
40
|
Svg: (props: SvgDefaultsInput) => StyleAndModifierProps;
|
|
42
|
-
};
|
|
41
|
+
};
|
|
43
42
|
//#endregion
|
|
44
43
|
export { withDefaultStyleProps };
|