@yahoo/uds-v5-wip 1.24.0 → 1.26.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 (57) hide show
  1. package/dist/config/dist/component-resolution.d.ts +1 -1
  2. package/dist/config/dist/consts/defaultColors.d.ts +2 -1
  3. package/dist/config/dist/createConfig.d.ts +55 -31
  4. package/dist/config/dist/createConfig.js +44 -22
  5. package/dist/config/dist/preset-merge.js +5 -3
  6. package/dist/config/dist/propertyGroups.d.ts +5 -0
  7. package/dist/config/dist/serialize.d.ts +9 -1
  8. package/dist/config/dist/serialize.js +17 -2
  9. package/dist/config/dist/types.d.ts +2 -1
  10. package/dist/config.d.ts +197 -197
  11. package/dist/config.js +1 -1
  12. package/dist/core/dist/compositeStyles.d.ts +22 -0
  13. package/dist/core/dist/compositeStyles.js +51 -0
  14. package/dist/core/dist/createComponent.d.ts +2 -1
  15. package/dist/core/dist/createComponentExample.d.ts +2 -1
  16. package/dist/core/dist/createProvider.d.ts +2 -1
  17. package/dist/core/dist/generated/stylePropsTwMap.d.ts +2 -1
  18. package/dist/core/dist/getComponentStyles.d.ts +2 -1
  19. package/dist/core/dist/getStyles.d.ts +2 -1
  20. package/dist/core/dist/getStyles.js +9 -9
  21. package/dist/core/dist/index.d.ts +1 -1
  22. package/dist/core/dist/index.js +1 -1
  23. package/dist/core/dist/propMappings.d.ts +2 -1
  24. package/dist/core/dist/resolveMotionState.d.ts +2 -1
  25. package/dist/core/dist/transformPreset.d.ts +2 -1
  26. package/dist/core/dist/withDefaultStyleProps.d.ts +2 -1
  27. package/dist/core.d.ts +2 -2
  28. package/dist/core.js +2 -2
  29. package/dist/foundational-presets/dist/boldVibrant.d.ts +198 -197
  30. package/dist/foundational-presets/dist/brutalist.d.ts +198 -197
  31. package/dist/foundational-presets/dist/candy.d.ts +198 -197
  32. package/dist/foundational-presets/dist/cleanMinimalist.d.ts +198 -197
  33. package/dist/foundational-presets/dist/corporate.d.ts +198 -197
  34. package/dist/foundational-presets/dist/darkMoody.d.ts +198 -197
  35. package/dist/foundational-presets/dist/defaultPreset.d.ts +198 -197
  36. package/dist/foundational-presets/dist/forest.d.ts +198 -197
  37. package/dist/foundational-presets/dist/highContrast.d.ts +198 -197
  38. package/dist/foundational-presets/dist/lavender.d.ts +198 -197
  39. package/dist/foundational-presets/dist/luxury.d.ts +198 -197
  40. package/dist/foundational-presets/dist/monochrome.d.ts +198 -197
  41. package/dist/foundational-presets/dist/motion.d.ts +2 -1
  42. package/dist/foundational-presets/dist/neonCyber.d.ts +198 -197
  43. package/dist/foundational-presets/dist/newspaper.d.ts +198 -197
  44. package/dist/foundational-presets/dist/ocean.d.ts +198 -197
  45. package/dist/foundational-presets/dist/slate.d.ts +198 -197
  46. package/dist/foundational-presets/dist/sunset.d.ts +198 -197
  47. package/dist/foundational-presets/dist/terminal.d.ts +198 -197
  48. package/dist/foundational-presets/dist/warmOrganic.d.ts +198 -197
  49. package/dist/loader/dist/loader/style-transform.js +8 -8
  50. package/dist/loader/dist/packages/core/dist/compositeStyles.js +43 -0
  51. package/dist/loader/dist/packages/core/dist/getStyles.js +1 -1
  52. package/dist/loader/dist/packages/core/dist/index.js +1 -1
  53. package/dist/tsconfig.tsbuildinfo +1 -1
  54. package/package.json +3 -3
  55. package/dist/core/dist/macros.d.ts +0 -21
  56. package/dist/core/dist/macros.js +0 -49
  57. package/dist/loader/dist/packages/core/dist/macros.js +0 -41
package/dist/config.d.ts CHANGED
@@ -8,6 +8,47 @@ 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
+ };
11
52
  color: {
12
53
  inherit: string;
13
54
  current: string;
@@ -33,23 +74,7 @@ declare const defaultPreset: UdsConfig<_$_uds_types0.ModifierProp | "_light" | "
33
74
  inverse: string;
34
75
  "on-inverse": string;
35
76
  };
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: {
77
+ borderColor: {
53
78
  brand: string;
54
79
  accent: string;
55
80
  alert: string;
@@ -60,17 +85,51 @@ declare const defaultPreset: UdsConfig<_$_uds_types0.ModifierProp | "_light" | "
60
85
  tertiary: string;
61
86
  inverse: string;
62
87
  surface: string;
63
- "elevation-1": string;
64
- "elevation-2": string;
65
- "elevation-3": string;
66
88
  "brand-wash": string;
67
89
  "accent-wash": string;
68
90
  "alert-wash": string;
69
91
  "positive-wash": string;
70
92
  "warning-wash": string;
71
- overlay: string;
72
93
  };
73
- borderColor: {
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
+ overlay: string;
74
133
  brand: string;
75
134
  accent: string;
76
135
  alert: string;
@@ -81,6 +140,9 @@ declare const defaultPreset: UdsConfig<_$_uds_types0.ModifierProp | "_light" | "
81
140
  tertiary: string;
82
141
  inverse: string;
83
142
  surface: string;
143
+ "elevation-1": string;
144
+ "elevation-2": string;
145
+ "elevation-3": string;
84
146
  "brand-wash": string;
85
147
  "accent-wash": string;
86
148
  "alert-wash": string;
@@ -93,63 +155,50 @@ declare const defaultPreset: UdsConfig<_$_uds_types0.ModifierProp | "_light" | "
93
155
  medium: string;
94
156
  thick: string;
95
157
  };
96
- outlineWidth: {
158
+ divideWidth: {
97
159
  0: string;
98
- 2: string;
99
- 1: string;
100
160
  4: string;
101
- 8: string;
102
- };
103
- outlineOffset: {
104
- 0: string;
161
+ reverse: string;
105
162
  2: string;
106
- 1: string;
107
- 4: string;
108
163
  8: string;
109
164
  };
110
- divideWidth: {
111
- 0: string;
112
- 2: string;
113
- reverse: string;
114
- 4: string;
115
- 8: string;
165
+ flex: {
166
+ none: string;
167
+ initial: string;
168
+ auto: string;
169
+ 1: string;
116
170
  };
117
- ringWidth: {
171
+ flexGrow: {
118
172
  0: string;
119
- 2: string;
120
173
  1: string;
121
- inset: string;
122
- 4: string;
123
- 8: string;
124
174
  };
125
- ringOffsetWidth: {
175
+ flexShrink: {
126
176
  0: string;
127
- 2: string;
128
- 1: string;
129
- 4: string;
130
- 8: string;
131
177
  };
132
- lineHeight: {
133
- none: string;
134
- normal: string;
135
- tight: string;
136
- relaxed: string;
178
+ aspectRatio: {
179
+ square: string;
180
+ landscape: string;
181
+ portrait: string;
182
+ widescreen: string;
183
+ ultrawide: string;
184
+ golden: string;
137
185
  };
138
- letterSpacing: {
139
- normal: string;
140
- tight: string;
141
- tighter: string;
142
- wide: string;
143
- wider: string;
144
- widest: string;
186
+ zIndex: {
187
+ 0: string;
188
+ auto: string;
189
+ 10: string;
190
+ 20: string;
191
+ 40: string;
192
+ 30: string;
193
+ 50: string;
145
194
  };
146
195
  spacing: {
147
196
  0: string;
197
+ 4: string;
148
198
  2: string;
149
199
  5: string;
150
200
  1: string;
151
201
  px: string;
152
- 4: string;
153
202
  8: string;
154
203
  0.5: string;
155
204
  1.5: string;
@@ -180,183 +229,116 @@ declare const defaultPreset: UdsConfig<_$_uds_types0.ModifierProp | "_light" | "
180
229
  80: string;
181
230
  96: string;
182
231
  };
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;
232
+ w: {
233
+ screen: string;
234
+ svw: string;
235
+ lvw: string;
236
+ dvw: string;
200
237
  };
201
- flex: {
238
+ outlineWidth: {
239
+ 0: string;
240
+ 4: string;
241
+ 2: string;
202
242
  1: string;
203
- none: string;
204
- auto: string;
205
- initial: string;
243
+ 8: string;
206
244
  };
207
- flexGrow: {
245
+ outlineOffset: {
208
246
  0: string;
247
+ 4: string;
248
+ 2: string;
209
249
  1: string;
250
+ 8: string;
210
251
  };
211
- flexShrink: {
252
+ ringWidth: {
212
253
  0: string;
254
+ 4: string;
255
+ inset: string;
256
+ 2: string;
257
+ 1: string;
258
+ 8: string;
213
259
  };
214
- opacity: {
260
+ ringOffsetWidth: {
215
261
  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;
262
+ 4: string;
263
+ 2: string;
264
+ 1: string;
265
+ 8: string;
230
266
  };
231
- radius: {
267
+ shadow: {
268
+ none: string;
232
269
  sm: string;
233
270
  md: string;
234
271
  lg: string;
235
272
  xl: string;
236
- none: string;
237
- full: string;
273
+ "2xl": string;
274
+ "2xs": string;
238
275
  xs: string;
276
+ inner: string;
239
277
  };
240
- animation: {
278
+ strokeWidth: {
279
+ 0: string;
280
+ 2: string;
281
+ 1: string;
282
+ };
283
+ fontFamily: {
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: {
241
308
  none: string;
242
- spin: string;
243
- ping: string;
309
+ normal: string;
310
+ tight: string;
311
+ relaxed: string;
244
312
  };
245
- shadow: {
313
+ textShadow: {
314
+ none: string;
246
315
  sm: string;
247
316
  md: string;
248
317
  lg: string;
249
- xl: string;
250
- "2xl": string;
251
- none: string;
252
- xs: string;
253
318
  "2xs": string;
254
- inner: string;
319
+ xs: string;
255
320
  };
256
321
  blur: {
322
+ none: string;
257
323
  sm: string;
258
324
  md: string;
259
325
  lg: string;
260
326
  xl: string;
261
327
  "2xl": string;
262
- none: string;
263
328
  "3xl": string;
264
329
  };
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
330
  translate: {
349
331
  0: string;
332
+ 4: string;
333
+ full: string;
350
334
  2: string;
351
335
  5: string;
352
336
  1: string;
353
- full: string;
354
337
  "1/2": string;
355
338
  "1/3": string;
356
339
  "2/3": string;
357
340
  "1/4": string;
358
341
  "3/4": string;
359
- 4: string;
360
342
  8: string;
361
343
  0.5: string;
362
344
  1.5: string;
@@ -387,10 +369,28 @@ declare const defaultPreset: UdsConfig<_$_uds_types0.ModifierProp | "_light" | "
387
369
  80: string;
388
370
  96: string;
389
371
  };
390
- strokeWidth: {
372
+ radius: {
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: {
391
388
  0: string;
392
389
  2: string;
393
390
  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: {
package/dist/config.js CHANGED
@@ -10,7 +10,7 @@ const uds = createConfigBuilder({
10
10
  atomic: [],
11
11
  modes: [],
12
12
  modifiers: [],
13
- macros: {},
13
+ compositeStyles: {},
14
14
  motion: {},
15
15
  components: {},
16
16
  globalStyles: {},
@@ -0,0 +1,22 @@
1
+ import { CompositeStylesConfig } from "@uds/types";
2
+
3
+ //#region ../core/dist/compositeStyles.d.ts
4
+ //#region src/compositeStyles.d.ts
5
+ /** Set the composite-styles config (called by loader at build time) */
6
+ declare function setCompositeStylesConfig(config: CompositeStylesConfig): void;
7
+ /** Get the current composite-styles config */
8
+ declare function getCompositeStylesConfig(): CompositeStylesConfig;
9
+ /**
10
+ * Expand composite-style props into their constituent style props + marker classes.
11
+ *
12
+ * - Composite styles are lowest priority: explicit props always win
13
+ * - Nested composite styles are supported (a style bag can reference another group)
14
+ * - Circular references are detected and throw
15
+ * - Marker classes (e.g. "elevation-0") are returned for modifier targeting
16
+ */
17
+ declare function expandCompositeStyles(props: Record<string, unknown>, config?: CompositeStylesConfig): {
18
+ expanded: Record<string, unknown>;
19
+ markerClasses: string[];
20
+ }; //#endregion
21
+ //#endregion
22
+ export { expandCompositeStyles, getCompositeStylesConfig, setCompositeStylesConfig };
@@ -0,0 +1,51 @@
1
+ import { safeTokenName } from "../../utils/dist/string-utils/cssVar.js";
2
+ import "../../utils/dist/index.js";
3
+ //#region ../core/dist/compositeStyles.js
4
+ /**
5
+ * Runtime composite-styles config — set by the loader/codegen at build time.
6
+ * Maps composite-style group names to a `{ label, description?, styles }`
7
+ * definition where `styles` holds variant id -> style bag.
8
+ */
9
+ let compositeStylesConfig = {};
10
+ /** Set the composite-styles config (called by loader at build time) */
11
+ function setCompositeStylesConfig(config) {
12
+ compositeStylesConfig = config;
13
+ }
14
+ /** Get the current composite-styles config */
15
+ function getCompositeStylesConfig() {
16
+ return compositeStylesConfig;
17
+ }
18
+ /**
19
+ * Expand composite-style props into their constituent style props + marker classes.
20
+ *
21
+ * - Composite styles are lowest priority: explicit props always win
22
+ * - Nested composite styles are supported (a style bag can reference another group)
23
+ * - Circular references are detected and throw
24
+ * - Marker classes (e.g. "elevation-0") are returned for modifier targeting
25
+ */
26
+ function expandCompositeStyles(props, config = compositeStylesConfig) {
27
+ const expanded = {};
28
+ const markers = [];
29
+ const seen = /* @__PURE__ */ new Set();
30
+ function expand(key, value) {
31
+ const def = config[key];
32
+ if (def && typeof value === "string") {
33
+ if (seen.has(key)) throw new Error(`Circular composite style: ${[...seen, key].join(" → ")}`);
34
+ seen.add(key);
35
+ markers.push(`${key}-${safeTokenName(value)}`);
36
+ const bag = def.styles[value];
37
+ if (bag) {
38
+ for (const [k, v] of Object.entries(bag)) if (!(k in expanded)) expand(k, v);
39
+ }
40
+ seen.delete(key);
41
+ } else if (!(key in expanded)) expanded[key] = value;
42
+ }
43
+ for (const [key, value] of Object.entries(props)) if (key in config) expand(key, value);
44
+ for (const [key, value] of Object.entries(props)) if (!(key in config)) expanded[key] = value;
45
+ return {
46
+ expanded,
47
+ markerClasses: markers
48
+ };
49
+ }
50
+ //#endregion
51
+ 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 };