@yahoo/uds-v5-wip 1.35.0 → 1.36.1

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 (95) hide show
  1. package/dist/_virtual/_rolldown/runtime.js +13 -0
  2. package/dist/config/dist/component-resolution.d.ts +1 -1
  3. package/dist/config/dist/component-resolution.js +1 -1
  4. package/dist/config/dist/consts/defaultColors.d.ts +1 -2
  5. package/dist/config/dist/createConfig.d.ts +55 -87
  6. package/dist/config/dist/createConfig.js +82 -158
  7. package/dist/config/dist/defineStyleProp.d.ts +45 -0
  8. package/dist/config/dist/defineStyleProp.js +25 -0
  9. package/dist/config/dist/index.d.ts +4 -2
  10. package/dist/config/dist/index.js +4 -3
  11. package/dist/config/dist/preset-merge.js +0 -12
  12. package/dist/config/dist/propertyAcceptedTypes.js +81 -9
  13. package/dist/config/dist/propertyGroups.d.ts +1 -11
  14. package/dist/config/dist/propertyGroups.js +1 -19
  15. package/dist/config/dist/resolveStyleProp.d.ts +55 -1
  16. package/dist/config/dist/resolveStyleProp.js +197 -2
  17. package/dist/config/dist/serialize.d.ts +11 -4
  18. package/dist/config/dist/serialize.js +3 -3
  19. package/dist/config/dist/types/css-values.d.ts +60 -0
  20. package/dist/config/dist/types.d.ts +1 -2
  21. package/dist/config.d.ts +184 -184
  22. package/dist/core/dist/color-opacity-map.d.ts +13 -0
  23. package/dist/core/dist/color-opacity-map.js +33 -0
  24. package/dist/core/dist/configurable-prop-helpers.d.ts +32 -0
  25. package/dist/core/dist/configurable-prop-helpers.js +61 -0
  26. package/dist/core/dist/getStyles.js +3 -1
  27. package/dist/core/dist/index.d.ts +4 -1
  28. package/dist/core/dist/index.js +4 -1
  29. package/dist/core/dist/modifier-mappings.d.ts +13 -0
  30. package/dist/core/dist/modifier-mappings.js +61 -0
  31. package/dist/core/dist/style-prop-data.d.ts +33 -0
  32. package/dist/{loader/dist/packages/core/dist/propMappings.js → core/dist/style-prop-data.js} +2 -93
  33. package/dist/core.d.ts +4 -1
  34. package/dist/core.js +4 -1
  35. package/dist/fixtures.d.ts +3 -1
  36. package/dist/fixtures.js +3 -1
  37. package/dist/foundational-presets/dist/boldVibrant.d.ts +573 -224
  38. package/dist/foundational-presets/dist/brutalist.d.ts +573 -224
  39. package/dist/foundational-presets/dist/candy.d.ts +573 -224
  40. package/dist/foundational-presets/dist/cleanMinimalist.d.ts +573 -224
  41. package/dist/foundational-presets/dist/corporate.d.ts +573 -224
  42. package/dist/foundational-presets/dist/darkMoody.d.ts +573 -224
  43. package/dist/foundational-presets/dist/defaultPreset.d.ts +197 -198
  44. package/dist/foundational-presets/dist/defaultPreset.js +2 -312
  45. package/dist/foundational-presets/dist/forest.d.ts +573 -224
  46. package/dist/foundational-presets/dist/highContrast.d.ts +573 -224
  47. package/dist/foundational-presets/dist/lavender.d.ts +573 -224
  48. package/dist/foundational-presets/dist/luxury.d.ts +573 -224
  49. package/dist/foundational-presets/dist/monochrome.d.ts +573 -224
  50. package/dist/foundational-presets/dist/motion.d.ts +1 -2
  51. package/dist/foundational-presets/dist/neonCyber.d.ts +573 -224
  52. package/dist/foundational-presets/dist/newspaper.d.ts +573 -224
  53. package/dist/foundational-presets/dist/ocean.d.ts +573 -224
  54. package/dist/foundational-presets/dist/slate.d.ts +573 -224
  55. package/dist/foundational-presets/dist/style-props.js +1384 -0
  56. package/dist/foundational-presets/dist/sunset.d.ts +573 -224
  57. package/dist/foundational-presets/dist/terminal.d.ts +573 -224
  58. package/dist/foundational-presets/dist/warmOrganic.d.ts +573 -224
  59. package/dist/loader/dist/loader/style-transform.js +2 -1
  60. package/dist/loader/dist/loader.d.ts +1 -2
  61. package/dist/loader/dist/next.d.ts +1 -2
  62. package/dist/loader/dist/packages/core/dist/color-opacity-map.js +33 -0
  63. package/dist/loader/dist/packages/core/dist/getStyles.js +3 -1
  64. package/dist/loader/dist/packages/core/dist/modifier-mappings.js +61 -0
  65. package/dist/{core/dist/propMappings.js → loader/dist/packages/core/dist/style-prop-data.js} +2 -150
  66. package/dist/presets/dist/boldVibrant.d.ts +1 -2
  67. package/dist/presets/dist/brutalist.d.ts +1 -2
  68. package/dist/presets/dist/candy.d.ts +1 -2
  69. package/dist/presets/dist/cleanMinimalist.d.ts +1 -2
  70. package/dist/presets/dist/corporate.d.ts +1 -2
  71. package/dist/presets/dist/darkMoody.d.ts +1 -2
  72. package/dist/presets/dist/defaultPreset.d.ts +1 -2
  73. package/dist/presets/dist/forest.d.ts +1 -2
  74. package/dist/presets/dist/highContrast.d.ts +1 -2
  75. package/dist/presets/dist/lavender.d.ts +1 -2
  76. package/dist/presets/dist/luxury.d.ts +1 -2
  77. package/dist/presets/dist/monochrome.d.ts +1 -2
  78. package/dist/presets/dist/neonCyber.d.ts +1 -2
  79. package/dist/presets/dist/newspaper.d.ts +1 -2
  80. package/dist/presets/dist/ocean.d.ts +1 -2
  81. package/dist/presets/dist/slate.d.ts +1 -2
  82. package/dist/presets/dist/sunset.d.ts +1 -2
  83. package/dist/presets/dist/terminal.d.ts +1 -2
  84. package/dist/presets/dist/warmOrganic.d.ts +1 -2
  85. package/dist/remotion/dist/components/image-slide.d.ts +1 -2
  86. package/dist/remotion/dist/components/lower-third.d.ts +1 -2
  87. package/dist/remotion/dist/components/quote-card.d.ts +1 -2
  88. package/dist/remotion/dist/components/split-screen.d.ts +1 -2
  89. package/dist/remotion/dist/components/stat-card.d.ts +1 -2
  90. package/dist/remotion/dist/components/text-overlay.d.ts +1 -2
  91. package/dist/remotion/dist/components/title-card.d.ts +1 -2
  92. package/dist/remotion/dist/components/typing-text.d.ts +1 -2
  93. package/dist/tsconfig.tsbuildinfo +1 -1
  94. package/package.json +3 -3
  95. package/dist/core/dist/propMappings.d.ts +0 -77
package/dist/config.d.ts CHANGED
@@ -35,51 +35,10 @@ declare const defaultPreset: UdsConfig<_$_uds_types0.ModifierProp | GetModifierF
35
35
  };
36
36
  };
37
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
- };
79
38
  color: {
39
+ transparent: string;
80
40
  inherit: string;
81
41
  current: string;
82
- transparent: string;
83
42
  "always/black": string;
84
43
  "always/white": string;
85
44
  brand: string;
@@ -101,22 +60,16 @@ declare const defaultPreset: UdsConfig<_$_uds_types0.ModifierProp | GetModifierF
101
60
  inverse: string;
102
61
  "on-inverse": string;
103
62
  };
104
- borderColor: {
105
- brand: string;
106
- accent: string;
107
- alert: string;
108
- positive: string;
109
- warning: string;
110
- primary: string;
111
- secondary: string;
112
- tertiary: string;
113
- inverse: string;
114
- surface: string;
115
- "brand-wash": string;
116
- "accent-wash": string;
117
- "alert-wash": string;
118
- "positive-wash": string;
119
- "warning-wash": string;
63
+ shadow: {
64
+ none: string;
65
+ sm: string;
66
+ md: string;
67
+ lg: string;
68
+ xl: string;
69
+ "2xl": string;
70
+ xs: string;
71
+ "2xs": string;
72
+ inner: string;
120
73
  };
121
74
  position: {
122
75
  auto: string;
@@ -128,17 +81,111 @@ declare const defaultPreset: UdsConfig<_$_uds_types0.ModifierProp | GetModifierF
128
81
  "2/4": string;
129
82
  "3/4": string;
130
83
  };
84
+ flex: {
85
+ 1: string;
86
+ initial: string;
87
+ auto: string;
88
+ none: string;
89
+ };
90
+ rotate: {
91
+ 0: string;
92
+ 1: string;
93
+ 2: string;
94
+ 3: string;
95
+ 6: string;
96
+ 12: string;
97
+ 90: string;
98
+ 45: string;
99
+ 180: string;
100
+ };
101
+ scale: {
102
+ 0: string;
103
+ 50: string;
104
+ 75: string;
105
+ 90: string;
106
+ 95: string;
107
+ 100: string;
108
+ 105: string;
109
+ 110: string;
110
+ 125: string;
111
+ 150: string;
112
+ 200: string;
113
+ };
114
+ translate: {
115
+ 0: string;
116
+ 1: string;
117
+ full: string;
118
+ "1/2": string;
119
+ "1/3": string;
120
+ "2/3": string;
121
+ "1/4": string;
122
+ "3/4": string;
123
+ 2: string;
124
+ 4: string;
125
+ 8: string;
126
+ 0.5: string;
127
+ 1.5: string;
128
+ 2.5: string;
129
+ 3: string;
130
+ 3.5: string;
131
+ 5: string;
132
+ 6: string;
133
+ 7: string;
134
+ 9: string;
135
+ 10: string;
136
+ 11: string;
137
+ 12: string;
138
+ 14: string;
139
+ 16: string;
140
+ 20: string;
141
+ 24: string;
142
+ 28: string;
143
+ 32: string;
144
+ 36: string;
145
+ 40: string;
146
+ 44: string;
147
+ 48: string;
148
+ 52: string;
149
+ 56: string;
150
+ 60: string;
151
+ 64: string;
152
+ 72: string;
153
+ 80: string;
154
+ 96: string;
155
+ };
156
+ animation: {
157
+ none: string;
158
+ spin: string;
159
+ ping: string;
160
+ };
161
+ opacity: {
162
+ 0: string;
163
+ 5: string;
164
+ 10: string;
165
+ 20: string;
166
+ 40: string;
167
+ 60: string;
168
+ 80: string;
169
+ 25: string;
170
+ 30: string;
171
+ 50: string;
172
+ 70: string;
173
+ 75: string;
174
+ 90: string;
175
+ 95: string;
176
+ 100: string;
177
+ };
131
178
  size: {
132
179
  auto: string;
133
180
  full: string;
134
- max: string;
135
- min: string;
136
181
  "1/2": string;
137
182
  "1/3": string;
138
183
  "2/3": string;
139
184
  "1/4": string;
140
185
  "2/4": string;
141
186
  "3/4": string;
187
+ min: string;
188
+ max: string;
142
189
  fit: string;
143
190
  "1/5": string;
144
191
  "2/5": string;
@@ -150,11 +197,6 @@ declare const defaultPreset: UdsConfig<_$_uds_types0.ModifierProp | GetModifierF
150
197
  "4/6": string;
151
198
  "5/6": string;
152
199
  };
153
- animation: {
154
- none: string;
155
- ping: string;
156
- spin: string;
157
- };
158
200
  bg: {
159
201
  overlay: string;
160
202
  brand: string;
@@ -176,6 +218,32 @@ declare const defaultPreset: UdsConfig<_$_uds_types0.ModifierProp | GetModifierF
176
218
  "positive-wash": string;
177
219
  "warning-wash": string;
178
220
  };
221
+ radius: {
222
+ none: string;
223
+ sm: string;
224
+ md: string;
225
+ lg: string;
226
+ xl: string;
227
+ full: string;
228
+ xs: string;
229
+ };
230
+ borderColor: {
231
+ brand: string;
232
+ accent: string;
233
+ alert: string;
234
+ positive: string;
235
+ warning: string;
236
+ primary: string;
237
+ secondary: string;
238
+ tertiary: string;
239
+ inverse: string;
240
+ surface: string;
241
+ "brand-wash": string;
242
+ "accent-wash": string;
243
+ "alert-wash": string;
244
+ "positive-wash": string;
245
+ "warning-wash": string;
246
+ };
179
247
  borderWidth: {
180
248
  none: string;
181
249
  thin: string;
@@ -184,16 +252,19 @@ declare const defaultPreset: UdsConfig<_$_uds_types0.ModifierProp | GetModifierF
184
252
  };
185
253
  divideWidth: {
186
254
  0: string;
187
- 4: string;
188
255
  reverse: string;
189
256
  2: string;
257
+ 4: string;
190
258
  8: string;
191
259
  };
192
- flex: {
260
+ blur: {
193
261
  none: string;
194
- initial: string;
195
- auto: string;
196
- 1: string;
262
+ sm: string;
263
+ md: string;
264
+ lg: string;
265
+ xl: string;
266
+ "2xl": string;
267
+ "3xl": string;
197
268
  };
198
269
  flexGrow: {
199
270
  0: string;
@@ -202,29 +273,12 @@ declare const defaultPreset: UdsConfig<_$_uds_types0.ModifierProp | GetModifierF
202
273
  flexShrink: {
203
274
  0: string;
204
275
  };
205
- aspectRatio: {
206
- square: string;
207
- landscape: string;
208
- portrait: string;
209
- widescreen: string;
210
- ultrawide: string;
211
- golden: string;
212
- };
213
- zIndex: {
214
- 0: string;
215
- auto: string;
216
- 10: string;
217
- 20: string;
218
- 40: string;
219
- 30: string;
220
- 50: string;
221
- };
222
276
  spacing: {
223
277
  0: string;
224
- 4: string;
225
278
  1: string;
226
279
  px: string;
227
280
  2: string;
281
+ 4: string;
228
282
  8: string;
229
283
  0.5: string;
230
284
  1.5: string;
@@ -256,57 +310,62 @@ declare const defaultPreset: UdsConfig<_$_uds_types0.ModifierProp | GetModifierF
256
310
  80: string;
257
311
  96: string;
258
312
  };
259
- w: {
260
- screen: string;
261
- svw: string;
262
- lvw: string;
263
- dvw: string;
264
- };
265
- outlineWidth: {
313
+ zIndex: {
266
314
  0: string;
267
- 4: string;
268
- 1: string;
269
- 2: string;
270
- 8: string;
315
+ auto: string;
316
+ 10: string;
317
+ 20: string;
318
+ 40: string;
319
+ 30: string;
320
+ 50: string;
271
321
  };
272
322
  outlineOffset: {
273
323
  0: string;
274
- 4: string;
275
324
  1: string;
276
325
  2: string;
326
+ 4: string;
277
327
  8: string;
278
328
  };
279
329
  ringWidth: {
280
330
  0: string;
281
- 4: string;
282
- inset: string;
283
331
  1: string;
332
+ inset: string;
284
333
  2: string;
334
+ 4: string;
285
335
  8: string;
286
336
  };
287
337
  ringOffsetWidth: {
288
338
  0: string;
289
- 4: string;
290
339
  1: string;
291
340
  2: string;
341
+ 4: string;
292
342
  8: string;
293
343
  };
294
- shadow: {
295
- none: string;
296
- sm: string;
297
- md: string;
298
- lg: string;
299
- xl: string;
300
- "2xl": string;
301
- "2xs": string;
302
- xs: string;
303
- inner: string;
344
+ h: {
345
+ screen: string;
346
+ svh: string;
347
+ lvh: string;
348
+ dvh: string;
349
+ };
350
+ w: {
351
+ screen: string;
352
+ svw: string;
353
+ lvw: string;
354
+ dvw: string;
304
355
  };
305
356
  strokeWidth: {
306
357
  0: string;
307
358
  1: string;
308
359
  2: string;
309
360
  };
361
+ skew: {
362
+ 0: string;
363
+ 1: string;
364
+ 2: string;
365
+ 3: string;
366
+ 6: string;
367
+ 12: string;
368
+ };
310
369
  fontFamily: {
311
370
  sans: string;
312
371
  serif: string;
@@ -314,8 +373,8 @@ declare const defaultPreset: UdsConfig<_$_uds_types0.ModifierProp | GetModifierF
314
373
  };
315
374
  fontWeight: {
316
375
  normal: string;
317
- thin: string;
318
376
  bold: string;
377
+ thin: string;
319
378
  medium: string;
320
379
  extralight: string;
321
380
  light: string;
@@ -332,8 +391,8 @@ declare const defaultPreset: UdsConfig<_$_uds_types0.ModifierProp | GetModifierF
332
391
  widest: string;
333
392
  };
334
393
  lineHeight: {
335
- none: string;
336
394
  normal: string;
395
+ none: string;
337
396
  tight: string;
338
397
  relaxed: string;
339
398
  };
@@ -342,82 +401,23 @@ declare const defaultPreset: UdsConfig<_$_uds_types0.ModifierProp | GetModifierF
342
401
  sm: string;
343
402
  md: string;
344
403
  lg: string;
345
- "2xs": string;
346
404
  xs: string;
405
+ "2xs": string;
347
406
  };
348
- blur: {
349
- none: string;
350
- sm: string;
351
- md: string;
352
- lg: string;
353
- xl: string;
354
- "2xl": string;
355
- "3xl": string;
356
- };
357
- translate: {
407
+ outlineWidth: {
358
408
  0: string;
359
- 4: string;
360
- full: string;
361
409
  1: string;
362
- "1/2": string;
363
- "1/3": string;
364
- "2/3": string;
365
- "1/4": string;
366
- "3/4": string;
367
410
  2: string;
411
+ 4: string;
368
412
  8: string;
369
- 0.5: string;
370
- 1.5: string;
371
- 2.5: string;
372
- 3: string;
373
- 3.5: string;
374
- 5: string;
375
- 6: string;
376
- 7: string;
377
- 9: string;
378
- 10: string;
379
- 11: string;
380
- 12: string;
381
- 14: string;
382
- 16: string;
383
- 20: string;
384
- 24: string;
385
- 28: string;
386
- 32: string;
387
- 36: string;
388
- 40: string;
389
- 44: string;
390
- 48: string;
391
- 52: string;
392
- 56: string;
393
- 60: string;
394
- 64: string;
395
- 72: string;
396
- 80: string;
397
- 96: string;
398
- };
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
413
  };
414
- skew: {
415
- 0: string;
416
- 1: string;
417
- 2: string;
418
- 3: string;
419
- 6: string;
420
- 12: string;
414
+ aspectRatio: {
415
+ square: string;
416
+ landscape: string;
417
+ portrait: string;
418
+ widescreen: string;
419
+ ultrawide: string;
420
+ golden: string;
421
421
  };
422
422
  }, {}, {}, {}, GetModifierFromInput<{
423
423
  readonly colorMode: {
@@ -0,0 +1,13 @@
1
+ //#region ../core/dist/color-opacity-map.d.ts
2
+ //#region src/color-opacity-map.d.ts
3
+ /**
4
+ * Maps each color prop name to its corresponding opacity prop name.
5
+ * Used by the runtime (`getStyles`) and loader (`style-transform`) to merge
6
+ * a color value with its opacity before class generation.
7
+ *
8
+ * @example
9
+ * `bg="primary"` + `bgOpacity="75"` → class `bg-primary_75`
10
+ */
11
+ declare const colorPropToOpacityProp: Record<string, string>; //#endregion
12
+ //#endregion
13
+ export { colorPropToOpacityProp };
@@ -0,0 +1,33 @@
1
+ //#region ../core/dist/color-opacity-map.js
2
+ /**
3
+ * Maps each color prop name to its corresponding opacity prop name.
4
+ * Used by the runtime (`getStyles`) and loader (`style-transform`) to merge
5
+ * a color value with its opacity before class generation.
6
+ *
7
+ * @example
8
+ * `bg="primary"` + `bgOpacity="75"` → class `bg-primary_75`
9
+ */
10
+ const colorPropToOpacityProp = {
11
+ bg: "bgOpacity",
12
+ color: "colorOpacity",
13
+ textDecorationColor: "textDecorationColorOpacity",
14
+ borderColor: "borderColorOpacity",
15
+ borderYColor: "borderYColorOpacity",
16
+ borderXColor: "borderXColorOpacity",
17
+ borderStartColor: "borderStartColorOpacity",
18
+ borderLeftColor: "borderLeftColorOpacity",
19
+ borderEndColor: "borderEndColorOpacity",
20
+ borderRightColor: "borderRightColorOpacity",
21
+ borderTopColor: "borderTopColorOpacity",
22
+ borderBottomColor: "borderBottomColorOpacity",
23
+ divideColor: "divideColorOpacity",
24
+ outlineColor: "outlineColorOpacity",
25
+ ringColor: "ringColorOpacity",
26
+ ringOffsetColor: "ringOffsetColorOpacity",
27
+ fillColor: "fillColorOpacity",
28
+ strokeColor: "strokeColorOpacity",
29
+ shadowColor: "shadowColorOpacity",
30
+ caretColor: "caretColorOpacity"
31
+ };
32
+ //#endregion
33
+ export { colorPropToOpacityProp };
@@ -0,0 +1,32 @@
1
+ import { PropMapping } from "./style-prop-data.js";
2
+ import { ConfigurableProp } from "@uds/types";
3
+
4
+ //#region ../core/dist/configurable-prop-helpers.d.ts
5
+ //#region src/configurable-prop-helpers.d.ts
6
+ /** Look up a {@link PropMapping} by ConfigurableProp name. */
7
+ declare function getConfigurablePropMapping(prop: ConfigurableProp): PropMapping | undefined;
8
+ interface ConfigurablePropertyEntry {
9
+ property: string;
10
+ subProperties: string[];
11
+ augmentType: string;
12
+ }
13
+ /**
14
+ * Derives the configurable properties table from {@link propMappings}.
15
+ * Groups props by augmentType — the primary prop is the one matching
16
+ * a ConfigurableProp name, the rest are sub-properties.
17
+ */
18
+ declare function getConfigurableProperties(): ConfigurablePropertyEntry[];
19
+ interface CssVariablePrefixEntry {
20
+ property: string;
21
+ cssPrefix: string;
22
+ exampleVariable: string;
23
+ exampleUtility: string;
24
+ }
25
+ /**
26
+ * Derives the CSS variable prefix table from {@link propMappings}.
27
+ * Only includes props that have both `cssProperty` and `defaultVarPrefix`.
28
+ * Deduplicates by `defaultVarPrefix` so each namespace appears once.
29
+ */
30
+ declare function getCssVariablePrefixes(): CssVariablePrefixEntry[]; //#endregion
31
+ //#endregion
32
+ export { ConfigurablePropertyEntry, CssVariablePrefixEntry, getConfigurablePropMapping, getConfigurableProperties, getCssVariablePrefixes };
@@ -0,0 +1,61 @@
1
+ import { propMappings } from "./style-prop-data.js";
2
+ //#region ../core/dist/configurable-prop-helpers.js
3
+ /** Maps ConfigurableProp names to propMappings keys when they differ. */
4
+ const configurablePropAliases = {};
5
+ /** Look up a {@link PropMapping} by ConfigurableProp name. */
6
+ function getConfigurablePropMapping(prop) {
7
+ return propMappings[configurablePropAliases[prop] ?? prop];
8
+ }
9
+ /**
10
+ * Derives the configurable properties table from {@link propMappings}.
11
+ * Groups props by augmentType — the primary prop is the one matching
12
+ * a ConfigurableProp name, the rest are sub-properties.
13
+ */
14
+ function getConfigurableProperties() {
15
+ const byAugment = {};
16
+ for (const [prop, mapping] of Object.entries(propMappings)) {
17
+ if (!mapping.augmentType) continue;
18
+ const aug = mapping.augmentType;
19
+ if (!byAugment[aug]) byAugment[aug] = [];
20
+ byAugment[aug].push(prop);
21
+ }
22
+ const entries = [];
23
+ for (const [augmentType, props] of Object.entries(byAugment)) {
24
+ const sorted = [...props].sort((a, b) => a.length - b.length);
25
+ const primary = sorted[0];
26
+ const subs = sorted.slice(1);
27
+ entries.push({
28
+ property: primary,
29
+ subProperties: subs,
30
+ augmentType
31
+ });
32
+ }
33
+ return entries;
34
+ }
35
+ /**
36
+ * Derives the CSS variable prefix table from {@link propMappings}.
37
+ * Only includes props that have both `cssProperty` and `defaultVarPrefix`.
38
+ * Deduplicates by `defaultVarPrefix` so each namespace appears once.
39
+ */
40
+ function getCssVariablePrefixes() {
41
+ const seen = /* @__PURE__ */ new Set();
42
+ const entries = [];
43
+ for (const [prop, mapping] of Object.entries(propMappings)) {
44
+ if (!mapping.defaultVarPrefix || !mapping.cssProperty) continue;
45
+ if (seen.has(mapping.defaultVarPrefix)) continue;
46
+ seen.add(mapping.defaultVarPrefix);
47
+ const prefix = `--uds-${mapping.defaultVarPrefix}-*`;
48
+ const exampleToken = mapping.defaultVarPrefix.includes("color") ? "brand" : mapping.defaultVarPrefix === "spacing" ? "4" : mapping.defaultVarPrefix === "radius" ? "lg" : mapping.defaultVarPrefix === "border-width" ? "2" : "value";
49
+ const exampleVar = `--uds-${mapping.defaultVarPrefix}-${exampleToken}`;
50
+ const exampleUtility = `${mapping.classPrefix}-${exampleToken}`;
51
+ entries.push({
52
+ property: prop,
53
+ cssPrefix: prefix,
54
+ exampleVariable: exampleVar,
55
+ exampleUtility
56
+ });
57
+ }
58
+ return entries;
59
+ }
60
+ //#endregion
61
+ export { getConfigurablePropMapping, getConfigurableProperties, getCssVariablePrefixes };
@@ -1,8 +1,10 @@
1
+ import { colorPropToOpacityProp } from "./color-opacity-map.js";
1
2
  import { componentSlotClass } from "../../utils/dist/string-utils/componentClassName.js";
2
3
  import "../../utils/dist/index.js";
3
4
  import { expandCompositeStyles, getCompositeStylesConfig } from "./compositeStyles.js";
5
+ import { propMappings } from "./style-prop-data.js";
4
6
  import { stylePropsTwMap } from "./generated/stylePropsTwMap.js";
5
- import { colorPropToOpacityProp, modifierMappings, propMappings } from "./propMappings.js";
7
+ import { modifierMappings } from "./modifier-mappings.js";
6
8
  import { clsx } from "clsx";
7
9
  //#region ../core/dist/getStyles.js
8
10
  /** Convert kebab-case CSS property to camelCase for React inline styles.
@@ -1,11 +1,14 @@
1
+ import { colorPropToOpacityProp } from "./color-opacity-map.js";
1
2
  import { expandCompositeStyles, getCompositeStylesConfig, setCompositeStylesConfig } from "./compositeStyles.js";
3
+ import { PropMapping, propMappings } from "./style-prop-data.js";
4
+ import { ConfigurablePropertyEntry, CssVariablePrefixEntry, getConfigurablePropMapping, getConfigurableProperties, getCssVariablePrefixes } from "./configurable-prop-helpers.js";
2
5
  import { createComponent } from "./createComponent.js";
3
6
  import { ComponentExample, createComponentExample } from "./createComponentExample.js";
4
7
  import { createProvider } from "./createProvider.js";
5
8
  import { stylePropsTwMap } from "./generated/stylePropsTwMap.js";
6
9
  import { createComponentStyler } from "./getComponentStyles.js";
7
10
  import { createVariants, cx, getStyles, getVariantClassName, processStyleProps, toCamelCase } from "./getStyles.js";
8
- import { ConfigurablePropertyEntry, CssVariablePrefixEntry, ModifierEntry, PropMapping, colorPropToOpacityProp, getConfigurablePropMapping, getConfigurableProperties, getCssVariablePrefixes, modifierMappings, propMappings } from "./propMappings.js";
11
+ import { ModifierEntry, modifierMappings } from "./modifier-mappings.js";
9
12
  import { resolveMotionState } from "./resolveMotionState.js";
10
13
  import { TransformedMotionProps, transformPreset } from "./transformPreset.js";
11
14
  import { withDefaultStyleProps } from "./withDefaultStyleProps.js";
@@ -1,6 +1,9 @@
1
+ import "./color-opacity-map.js";
1
2
  import "./compositeStyles.js";
3
+ import "./style-prop-data.js";
4
+ import "./configurable-prop-helpers.js";
2
5
  import "./generated/stylePropsTwMap.js";
3
- import "./propMappings.js";
6
+ import "./modifier-mappings.js";
4
7
  import "./getStyles.js";
5
8
  import "./getComponentStyles.js";
6
9
  import "./createComponent.js";
@@ -0,0 +1,13 @@
1
+ import { ModifierProp } from "@uds/types";
2
+
3
+ //#region ../core/dist/modifier-mappings.d.ts
4
+ //#region src/modifier-mappings.d.ts
5
+ declare const modifierMappings: Record<ModifierProp, string>;
6
+ interface ModifierEntry {
7
+ prop: string;
8
+ cssSelector: string;
9
+ category: string;
10
+ description: string;
11
+ } //#endregion
12
+ //#endregion
13
+ export { ModifierEntry, modifierMappings };