@yahoo/uds-v5-wip 1.33.0 → 1.35.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (42) hide show
  1. package/dist/config/dist/createConfig.d.ts +45 -6
  2. package/dist/config/dist/createConfig.js +32 -2
  3. package/dist/config/dist/index.d.ts +1 -1
  4. package/dist/config/dist/index.js +2 -0
  5. package/dist/config/dist/propertyAcceptedTypes.js +148 -0
  6. package/dist/config/dist/resolveStyleProp.d.ts +1 -0
  7. package/dist/config/dist/resolveStyleProp.js +2 -0
  8. package/dist/config.d.ts +259 -205
  9. package/dist/core/dist/compositeStyles.d.ts +2 -1
  10. package/dist/core/dist/createComponent.d.ts +2 -1
  11. package/dist/core/dist/createComponentExample.d.ts +2 -1
  12. package/dist/core/dist/createProvider.d.ts +2 -1
  13. package/dist/core/dist/generated/stylePropsTwMap.d.ts +2 -1
  14. package/dist/core/dist/getComponentStyles.d.ts +2 -1
  15. package/dist/core/dist/getStyles.d.ts +2 -1
  16. package/dist/core/dist/propMappings.d.ts +2 -1
  17. package/dist/core/dist/resolveMotionState.d.ts +2 -1
  18. package/dist/core/dist/transformPreset.d.ts +2 -1
  19. package/dist/core/dist/withDefaultStyleProps.d.ts +2 -1
  20. package/dist/foundational-presets/dist/boldVibrant.d.ts +260 -205
  21. package/dist/foundational-presets/dist/brutalist.d.ts +260 -205
  22. package/dist/foundational-presets/dist/candy.d.ts +260 -205
  23. package/dist/foundational-presets/dist/cleanMinimalist.d.ts +260 -205
  24. package/dist/foundational-presets/dist/corporate.d.ts +260 -205
  25. package/dist/foundational-presets/dist/darkMoody.d.ts +260 -205
  26. package/dist/foundational-presets/dist/defaultPreset.d.ts +260 -205
  27. package/dist/foundational-presets/dist/defaultPreset.js +10 -41
  28. package/dist/foundational-presets/dist/forest.d.ts +260 -205
  29. package/dist/foundational-presets/dist/highContrast.d.ts +260 -205
  30. package/dist/foundational-presets/dist/lavender.d.ts +260 -205
  31. package/dist/foundational-presets/dist/luxury.d.ts +260 -205
  32. package/dist/foundational-presets/dist/monochrome.d.ts +260 -205
  33. package/dist/foundational-presets/dist/motion.d.ts +2 -1
  34. package/dist/foundational-presets/dist/neonCyber.d.ts +260 -205
  35. package/dist/foundational-presets/dist/newspaper.d.ts +260 -205
  36. package/dist/foundational-presets/dist/ocean.d.ts +260 -205
  37. package/dist/foundational-presets/dist/slate.d.ts +260 -205
  38. package/dist/foundational-presets/dist/sunset.d.ts +260 -205
  39. package/dist/foundational-presets/dist/terminal.d.ts +260 -205
  40. package/dist/foundational-presets/dist/warmOrganic.d.ts +260 -205
  41. package/dist/tsconfig.tsbuildinfo +1 -1
  42. package/package.json +3 -3
package/dist/config.d.ts CHANGED
@@ -1,13 +1,81 @@
1
1
  import { defaultColors } from "./config/dist/consts/defaultColors.js";
2
2
  import { TokenType, VarGroupDef, VarTokenDef, VarsConfig } from "./config/dist/types.js";
3
- import { GlobalStylesDef, UdsConfig, UdsConfigData, buildTokenReference, createConfigBuilder, darker, lighter, resolveConfig } from "./config/dist/createConfig.js";
3
+ import { GetModifierFromInput, GlobalStylesDef, UdsConfig, UdsConfigData, buildTokenReference, createConfigBuilder, darker, lighter, resolveConfig } from "./config/dist/createConfig.js";
4
4
  import { SerializedConfig, TokenRef, buildReverseMap, deserializeConfig, serializeConfig } from "./config/dist/serialize.js";
5
5
  import { ComponentsConfig } from "./config/dist/index.js";
6
6
  import * as _$_uds_types0 from "@uds/types";
7
7
 
8
8
  //#region src/config.d.ts
9
9
  declare const uds: UdsConfig<_$_uds_types0.ModifierProp, {}, {}, {}, {}, never, {}>;
10
- declare const defaultPreset: UdsConfig<_$_uds_types0.ModifierProp | "_light" | "_dark" | "_sm" | "_md" | "_lg" | "_xl" | "_2xl", {
10
+ declare const defaultPreset: UdsConfig<_$_uds_types0.ModifierProp | GetModifierFromInput<{
11
+ readonly colorMode: {
12
+ readonly options: {
13
+ readonly dark: {
14
+ readonly css: ".dark";
15
+ };
16
+ };
17
+ };
18
+ readonly responsive: {
19
+ readonly options: {
20
+ readonly sm: {
21
+ readonly media: "(min-width: 640px)";
22
+ };
23
+ readonly md: {
24
+ readonly media: "(min-width: 768px)";
25
+ };
26
+ readonly lg: {
27
+ readonly media: "(min-width: 1024px)";
28
+ };
29
+ readonly xl: {
30
+ readonly media: "(min-width: 1280px)";
31
+ };
32
+ readonly "2xl": {
33
+ readonly media: "(min-width: 1536px)";
34
+ };
35
+ };
36
+ };
37
+ }>, {
38
+ opacity: {
39
+ 0: string;
40
+ 5: string;
41
+ 10: string;
42
+ 20: string;
43
+ 40: string;
44
+ 60: string;
45
+ 80: string;
46
+ 25: string;
47
+ 30: string;
48
+ 50: string;
49
+ 70: string;
50
+ 75: string;
51
+ 90: string;
52
+ 95: string;
53
+ 100: string;
54
+ };
55
+ scale: {
56
+ 0: string;
57
+ 50: string;
58
+ 75: string;
59
+ 90: string;
60
+ 95: string;
61
+ 100: string;
62
+ 105: string;
63
+ 110: string;
64
+ 125: string;
65
+ 150: string;
66
+ 200: string;
67
+ };
68
+ rotate: {
69
+ 0: string;
70
+ 1: string;
71
+ 2: string;
72
+ 3: string;
73
+ 6: string;
74
+ 12: string;
75
+ 90: string;
76
+ 45: string;
77
+ 180: string;
78
+ };
11
79
  color: {
12
80
  inherit: string;
13
81
  current: string;
@@ -33,23 +101,7 @@ declare const defaultPreset: UdsConfig<_$_uds_types0.ModifierProp | "_light" | "
33
101
  inverse: string;
34
102
  "on-inverse": string;
35
103
  };
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: {
104
+ borderColor: {
53
105
  brand: string;
54
106
  accent: string;
55
107
  alert: string;
@@ -60,17 +112,51 @@ declare const defaultPreset: UdsConfig<_$_uds_types0.ModifierProp | "_light" | "
60
112
  tertiary: string;
61
113
  inverse: string;
62
114
  surface: string;
63
- "elevation-1": string;
64
- "elevation-2": string;
65
- "elevation-3": string;
66
115
  "brand-wash": string;
67
116
  "accent-wash": string;
68
117
  "alert-wash": string;
69
118
  "positive-wash": string;
70
119
  "warning-wash": string;
71
- overlay: string;
72
120
  };
73
- borderColor: {
121
+ position: {
122
+ auto: string;
123
+ full: string;
124
+ "1/2": string;
125
+ "1/3": string;
126
+ "2/3": string;
127
+ "1/4": string;
128
+ "2/4": string;
129
+ "3/4": string;
130
+ };
131
+ size: {
132
+ auto: string;
133
+ full: string;
134
+ max: string;
135
+ min: string;
136
+ "1/2": string;
137
+ "1/3": string;
138
+ "2/3": string;
139
+ "1/4": string;
140
+ "2/4": string;
141
+ "3/4": string;
142
+ fit: string;
143
+ "1/5": string;
144
+ "2/5": string;
145
+ "3/5": string;
146
+ "4/5": string;
147
+ "1/6": string;
148
+ "2/6": string;
149
+ "3/6": string;
150
+ "4/6": string;
151
+ "5/6": string;
152
+ };
153
+ animation: {
154
+ none: string;
155
+ ping: string;
156
+ spin: string;
157
+ };
158
+ bg: {
159
+ overlay: string;
74
160
  brand: string;
75
161
  accent: string;
76
162
  alert: string;
@@ -81,6 +167,9 @@ declare const defaultPreset: UdsConfig<_$_uds_types0.ModifierProp | "_light" | "
81
167
  tertiary: string;
82
168
  inverse: string;
83
169
  surface: string;
170
+ "elevation-1": string;
171
+ "elevation-2": string;
172
+ "elevation-3": string;
84
173
  "brand-wash": string;
85
174
  "accent-wash": string;
86
175
  "alert-wash": string;
@@ -93,69 +182,56 @@ declare const defaultPreset: UdsConfig<_$_uds_types0.ModifierProp | "_light" | "
93
182
  medium: string;
94
183
  thick: string;
95
184
  };
96
- outlineWidth: {
185
+ divideWidth: {
97
186
  0: string;
98
- 2: string;
99
- 1: string;
100
187
  4: string;
101
- 8: string;
102
- };
103
- outlineOffset: {
104
- 0: string;
188
+ reverse: string;
105
189
  2: string;
106
- 1: string;
107
- 4: string;
108
190
  8: string;
109
191
  };
110
- divideWidth: {
111
- 0: string;
112
- 2: string;
113
- reverse: string;
114
- 4: string;
115
- 8: string;
192
+ flex: {
193
+ none: string;
194
+ initial: string;
195
+ auto: string;
196
+ 1: string;
116
197
  };
117
- ringWidth: {
198
+ flexGrow: {
118
199
  0: string;
119
- 2: string;
120
200
  1: string;
121
- inset: string;
122
- 4: string;
123
- 8: string;
124
201
  };
125
- ringOffsetWidth: {
202
+ flexShrink: {
126
203
  0: string;
127
- 2: string;
128
- 1: string;
129
- 4: string;
130
- 8: string;
131
204
  };
132
- lineHeight: {
133
- none: string;
134
- normal: string;
135
- tight: string;
136
- relaxed: string;
205
+ aspectRatio: {
206
+ square: string;
207
+ landscape: string;
208
+ portrait: string;
209
+ widescreen: string;
210
+ ultrawide: string;
211
+ golden: string;
137
212
  };
138
- letterSpacing: {
139
- normal: string;
140
- tight: string;
141
- tighter: string;
142
- wide: string;
143
- wider: string;
144
- widest: string;
213
+ zIndex: {
214
+ 0: string;
215
+ auto: string;
216
+ 10: string;
217
+ 20: string;
218
+ 40: string;
219
+ 30: string;
220
+ 50: string;
145
221
  };
146
222
  spacing: {
147
223
  0: string;
148
- 2: string;
149
- 5: string;
224
+ 4: string;
150
225
  1: string;
151
226
  px: string;
152
- 4: string;
227
+ 2: string;
153
228
  8: string;
154
229
  0.5: string;
155
230
  1.5: string;
156
231
  2.5: string;
157
232
  3: string;
158
233
  3.5: string;
234
+ 5: string;
159
235
  6: string;
160
236
  7: string;
161
237
  9: string;
@@ -180,189 +256,122 @@ declare const defaultPreset: UdsConfig<_$_uds_types0.ModifierProp | "_light" | "
180
256
  80: string;
181
257
  96: string;
182
258
  };
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;
192
- };
193
- aspectRatio: {
194
- square: string;
195
- landscape: string;
196
- portrait: string;
197
- widescreen: string;
198
- ultrawide: string;
199
- golden: string;
259
+ w: {
260
+ screen: string;
261
+ svw: string;
262
+ lvw: string;
263
+ dvw: string;
200
264
  };
201
- flex: {
265
+ outlineWidth: {
266
+ 0: string;
267
+ 4: string;
202
268
  1: string;
203
- none: string;
204
- auto: string;
205
- initial: string;
269
+ 2: string;
270
+ 8: string;
206
271
  };
207
- flexGrow: {
272
+ outlineOffset: {
208
273
  0: string;
274
+ 4: string;
209
275
  1: string;
276
+ 2: string;
277
+ 8: string;
210
278
  };
211
- flexShrink: {
279
+ ringWidth: {
212
280
  0: string;
281
+ 4: string;
282
+ inset: string;
283
+ 1: string;
284
+ 2: string;
285
+ 8: string;
213
286
  };
214
- opacity: {
287
+ ringOffsetWidth: {
215
288
  0: string;
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;
289
+ 4: string;
290
+ 1: string;
291
+ 2: string;
292
+ 8: string;
230
293
  };
231
- radius: {
294
+ shadow: {
295
+ none: string;
232
296
  sm: string;
233
297
  md: string;
234
298
  lg: string;
235
299
  xl: string;
236
- none: string;
237
- full: string;
300
+ "2xl": string;
301
+ "2xs": string;
238
302
  xs: string;
303
+ inner: string;
239
304
  };
240
- animation: {
305
+ strokeWidth: {
306
+ 0: string;
307
+ 1: string;
308
+ 2: string;
309
+ };
310
+ fontFamily: {
311
+ sans: string;
312
+ serif: string;
313
+ mono: string;
314
+ };
315
+ fontWeight: {
316
+ normal: string;
317
+ thin: string;
318
+ bold: string;
319
+ medium: string;
320
+ extralight: string;
321
+ light: string;
322
+ semibold: string;
323
+ extrabold: string;
324
+ black: string;
325
+ };
326
+ letterSpacing: {
327
+ normal: string;
328
+ tight: string;
329
+ tighter: string;
330
+ wide: string;
331
+ wider: string;
332
+ widest: string;
333
+ };
334
+ lineHeight: {
241
335
  none: string;
242
- spin: string;
243
- ping: string;
336
+ normal: string;
337
+ tight: string;
338
+ relaxed: string;
244
339
  };
245
- shadow: {
340
+ textShadow: {
341
+ none: string;
246
342
  sm: string;
247
343
  md: string;
248
344
  lg: string;
249
- xl: string;
250
- "2xl": string;
251
- none: string;
252
- xs: string;
253
345
  "2xs": string;
254
- inner: string;
346
+ xs: string;
255
347
  };
256
348
  blur: {
349
+ none: string;
257
350
  sm: string;
258
351
  md: string;
259
352
  lg: string;
260
353
  xl: string;
261
354
  "2xl": string;
262
- none: string;
263
355
  "3xl": string;
264
356
  };
265
- textShadow: {
266
- sm: string;
267
- md: string;
268
- lg: string;
269
- none: string;
270
- xs: string;
271
- "2xs": string;
272
- };
273
- zIndex: {
274
- 0: string;
275
- auto: string;
276
- 10: string;
277
- 20: string;
278
- 40: string;
279
- 30: string;
280
- 50: string;
281
- };
282
- size: {
283
- auto: string;
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
357
  translate: {
349
358
  0: string;
350
- 2: string;
351
- 5: string;
352
- 1: string;
359
+ 4: string;
353
360
  full: string;
361
+ 1: string;
354
362
  "1/2": string;
355
363
  "1/3": string;
356
364
  "2/3": string;
357
365
  "1/4": string;
358
366
  "3/4": string;
359
- 4: string;
367
+ 2: string;
360
368
  8: string;
361
369
  0.5: string;
362
370
  1.5: string;
363
371
  2.5: string;
364
372
  3: string;
365
373
  3.5: string;
374
+ 5: string;
366
375
  6: string;
367
376
  7: string;
368
377
  9: string;
@@ -387,12 +396,57 @@ declare const defaultPreset: UdsConfig<_$_uds_types0.ModifierProp | "_light" | "
387
396
  80: string;
388
397
  96: string;
389
398
  };
390
- strokeWidth: {
399
+ radius: {
400
+ none: string;
401
+ sm: string;
402
+ md: string;
403
+ lg: string;
404
+ xl: string;
405
+ xs: string;
406
+ full: string;
407
+ };
408
+ h: {
409
+ screen: string;
410
+ svh: string;
411
+ lvh: string;
412
+ dvh: string;
413
+ };
414
+ skew: {
391
415
  0: string;
392
- 2: string;
393
416
  1: string;
417
+ 2: string;
418
+ 3: string;
419
+ 6: string;
420
+ 12: string;
394
421
  };
395
- }, {}, {}, {}, "_light" | "_dark" | "_sm" | "_md" | "_lg" | "_xl" | "_2xl", {
422
+ }, {}, {}, {}, GetModifierFromInput<{
423
+ readonly colorMode: {
424
+ readonly options: {
425
+ readonly dark: {
426
+ readonly css: ".dark";
427
+ };
428
+ };
429
+ };
430
+ readonly responsive: {
431
+ readonly options: {
432
+ readonly sm: {
433
+ readonly media: "(min-width: 640px)";
434
+ };
435
+ readonly md: {
436
+ readonly media: "(min-width: 768px)";
437
+ };
438
+ readonly lg: {
439
+ readonly media: "(min-width: 1024px)";
440
+ };
441
+ readonly xl: {
442
+ readonly media: "(min-width: 1280px)";
443
+ };
444
+ readonly "2xl": {
445
+ readonly media: "(min-width: 1536px)";
446
+ };
447
+ };
448
+ };
449
+ }>, {
396
450
  readonly color: {
397
451
  readonly $type: "color";
398
452
  readonly inherit: {
@@ -1,6 +1,7 @@
1
1
  import { CompositeStylesConfig } from "@uds/types";
2
2
 
3
3
  //#region ../core/dist/compositeStyles.d.ts
4
+ //#region src/compositeStyles.d.ts
4
5
  /** Set the composite-styles config (called by loader at build time) */
5
6
  declare function setCompositeStylesConfig(config: CompositeStylesConfig): void;
6
7
  /** Get the current composite-styles config */
@@ -16,6 +17,6 @@ declare function getCompositeStylesConfig(): CompositeStylesConfig;
16
17
  declare function expandCompositeStyles(props: Record<string, unknown>, config?: CompositeStylesConfig): {
17
18
  expanded: Record<string, unknown>;
18
19
  markerClasses: string[];
19
- };
20
+ }; //#endregion
20
21
  //#endregion
21
22
  export { expandCompositeStyles, getCompositeStylesConfig, setCompositeStylesConfig };
@@ -1,6 +1,7 @@
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
4
5
  type PrimitiveTag = keyof React.JSX.IntrinsicElements;
5
6
  type SpecConfig<TSpec> = TSpec extends {
6
7
  config: infer TConfig extends CreateComponentTypeInput;
@@ -51,6 +52,6 @@ declare function createComponent<TSpecOrProps = {}>(tag: PrimitiveTag): React.FC
51
52
  props: infer TOwnProps;
52
53
  } ? CreateComponentProps<TConfig, TOwnProps, PrimitiveTag> : PrimitiveOwnProps<TSpecOrProps>>;
53
54
  declare function createComponent<TSpec>(renderFn: CreateComponentRenderFn<SpecConfig<TSpec>, SpecOwnProps<TSpec>, SpecSlotConfig<TSpec>>): React.FC<CreateComponentProps<SpecConfig<TSpec>, SpecOwnProps<TSpec>, SpecSlotConfig<TSpec>>>;
54
- declare function createComponent(config: CreateComponentConfig<string>, renderFn: CreateComponentRenderFn<any, any, any>): React.FC<any>;
55
+ declare function createComponent(config: CreateComponentConfig<string>, renderFn: CreateComponentRenderFn<any, any, any>): React.FC<any>; //#endregion
55
56
  //#endregion
56
57
  export { createComponent };
@@ -1,6 +1,7 @@
1
1
  import { ComponentProps, ComponentType } from "react";
2
2
 
3
3
  //#region ../core/dist/createComponentExample.d.ts
4
+ //#region src/createComponentExample.d.ts
4
5
  /**
5
6
  * Extracts variant fixtures from a Component's props type.
6
7
  * If Button has `variant?: 'brand' | 'outline'` and `size?: 'sm' | 'md'`,
@@ -36,6 +37,6 @@ type ExamplesResult<TComponent extends ComponentType<any>> = {
36
37
  * }));
37
38
  * ```
38
39
  */
39
- declare function createComponentExample<TComponent extends ComponentType<any>, T extends Record<string, ExampleFn<TComponent>>>(Component: TComponent, examplesFn: (fixtures: VariantFixtures<TComponent>) => ExamplesResult<TComponent>): ComponentExample<T>;
40
+ declare function createComponentExample<TComponent extends ComponentType<any>, T extends Record<string, ExampleFn<TComponent>>>(Component: TComponent, examplesFn: (fixtures: VariantFixtures<TComponent>) => ExamplesResult<TComponent>): ComponentExample<T>; //#endregion
40
41
  //#endregion
41
42
  export { ComponentExample, createComponentExample };
@@ -1,4 +1,5 @@
1
1
  //#region ../core/dist/createProvider.d.ts
2
+ //#region src/createProvider.d.ts
2
3
  type ProviderRenderFn<TContext, TProps = Record<never, never>> = (props: {
3
4
  children: React.ReactNode;
4
5
  } & TProps) => {
@@ -7,6 +8,6 @@ type ProviderRenderFn<TContext, TProps = Record<never, never>> = (props: {
7
8
  };
8
9
  declare function createProvider<TContext, TProps = Record<never, never>>(name: string, renderFn: ProviderRenderFn<TContext, TProps>): [React.FC<{
9
10
  children: React.ReactNode;
10
- } & TProps>, () => TContext];
11
+ } & TProps>, () => TContext]; //#endregion
11
12
  //#endregion
12
13
  export { createProvider };
@@ -1,4 +1,5 @@
1
1
  //#region ../core/dist/generated/stylePropsTwMap.d.ts
2
+ //#region src/generated/stylePropsTwMap.d.ts
2
3
  declare const stylePropsTwMap: {
3
4
  readonly "border-boolean": {
4
5
  readonly border: "boolean";
@@ -1695,6 +1696,6 @@ declare const stylePropsTwMap: {
1695
1696
  readonly "hyphens-manual": {
1696
1697
  readonly hyphens: "manual";
1697
1698
  };
1698
- };
1699
+ }; //#endregion
1699
1700
  //#endregion
1700
1701
  export { stylePropsTwMap };
@@ -1,6 +1,7 @@
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
4
5
  type ResolveSlots<Name extends string> = Name extends keyof ComponentRegistry ? ComponentSlotsOf<Name> : string;
5
6
  type ResolveVariants<Name extends string> = Name extends keyof ComponentRegistry ? ComponentVariantsOf<Name> : Record<string, string>;
6
7
  interface UdsRuntimeMeta {
@@ -44,6 +45,6 @@ interface ComponentStyler<Name extends string> {
44
45
  * @param slots - Array of slot names
45
46
  * @param element - Optional HTML element tag for element-specific prop forwarding
46
47
  */
47
- declare function createComponentStyler<Name extends string>(componentName: Name, slots: readonly string[], element?: string, variants?: readonly string[]): ComponentStyler<Name>;
48
+ declare function createComponentStyler<Name extends string>(componentName: Name, slots: readonly string[], element?: string, variants?: readonly string[]): ComponentStyler<Name>; //#endregion
48
49
  //#endregion
49
50
  export { createComponentStyler };
@@ -2,6 +2,7 @@ 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
5
6
  /** Convert kebab-case CSS property to camelCase for React inline styles.
6
7
  * CSS custom properties (--*) are kept as-is since React supports them verbatim. */
7
8
  declare function toCamelCase(str: string): string;
@@ -37,6 +38,6 @@ interface GetStylesParams extends StyleProps, ModifierProps {
37
38
  * so they can be included in the CSS safelist.
38
39
  */
39
40
  declare function getStyles(props: GetStylesParams): string;
40
- declare function getVariantClassName(componentName: string, variant: string | undefined): string;
41
+ declare function getVariantClassName(componentName: string, variant: string | undefined): string; //#endregion
41
42
  //#endregion
42
43
  export { createVariants, cx, getStyles, getVariantClassName, processStyleProps, toCamelCase };