@yahoo/uds-v5-wip 1.23.0 → 1.25.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 (48) 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 +45 -23
  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.js +1 -1
  15. package/dist/core/dist/getStyles.js +9 -9
  16. package/dist/core/dist/index.d.ts +1 -1
  17. package/dist/core/dist/index.js +1 -1
  18. package/dist/core.d.ts +2 -2
  19. package/dist/core.js +2 -2
  20. package/dist/foundational-presets/dist/boldVibrant.d.ts +198 -197
  21. package/dist/foundational-presets/dist/brutalist.d.ts +198 -197
  22. package/dist/foundational-presets/dist/candy.d.ts +198 -197
  23. package/dist/foundational-presets/dist/cleanMinimalist.d.ts +198 -197
  24. package/dist/foundational-presets/dist/corporate.d.ts +198 -197
  25. package/dist/foundational-presets/dist/darkMoody.d.ts +198 -197
  26. package/dist/foundational-presets/dist/defaultPreset.d.ts +198 -197
  27. package/dist/foundational-presets/dist/forest.d.ts +198 -197
  28. package/dist/foundational-presets/dist/highContrast.d.ts +198 -197
  29. package/dist/foundational-presets/dist/lavender.d.ts +198 -197
  30. package/dist/foundational-presets/dist/luxury.d.ts +198 -197
  31. package/dist/foundational-presets/dist/monochrome.d.ts +198 -197
  32. package/dist/foundational-presets/dist/motion.d.ts +2 -1
  33. package/dist/foundational-presets/dist/neonCyber.d.ts +198 -197
  34. package/dist/foundational-presets/dist/newspaper.d.ts +198 -197
  35. package/dist/foundational-presets/dist/ocean.d.ts +198 -197
  36. package/dist/foundational-presets/dist/slate.d.ts +198 -197
  37. package/dist/foundational-presets/dist/sunset.d.ts +198 -197
  38. package/dist/foundational-presets/dist/terminal.d.ts +198 -197
  39. package/dist/foundational-presets/dist/warmOrganic.d.ts +198 -197
  40. package/dist/loader/dist/loader/style-transform.js +8 -8
  41. package/dist/loader/dist/packages/core/dist/compositeStyles.js +43 -0
  42. package/dist/loader/dist/packages/core/dist/getStyles.js +1 -1
  43. package/dist/loader/dist/packages/core/dist/index.js +1 -1
  44. package/dist/tsconfig.tsbuildinfo +1 -1
  45. package/package.json +3 -3
  46. package/dist/core/dist/macros.d.ts +0 -22
  47. package/dist/core/dist/macros.js +0 -49
  48. 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,6 @@
1
+ import { applySlotOverrides, assertTransformedConfig, buildSlotProps, buildUntransformedSlotProps, inferComponentNameFromRenderFn, mergeMotionConfig, mergeRootClassName, mergeSlotMotionProps, partitionMergedProps } from "./createComponent.boundaries.js";
1
2
  import { processStyleProps } from "./getStyles.js";
2
3
  import { createComponentStyler } from "./getComponentStyles.js";
3
- import { applySlotOverrides, assertTransformedConfig, buildSlotProps, buildUntransformedSlotProps, inferComponentNameFromRenderFn, mergeMotionConfig, mergeRootClassName, mergeSlotMotionProps, partitionMergedProps } from "./createComponent.boundaries.js";
4
4
  import { createElement } from "react";
5
5
  //#region ../core/dist/createComponent.js
6
6
  function createPrimitiveRenderFn(tag) {
@@ -1,7 +1,7 @@
1
- import { stylePropsTwMap } from "./generated/stylePropsTwMap.js";
2
1
  import { componentSlotClass } from "../../utils/dist/string-utils/componentClassName.js";
3
2
  import "../../utils/dist/index.js";
4
- import { expandMacros, getMacroConfig } from "./macros.js";
3
+ import { expandCompositeStyles, getCompositeStylesConfig } from "./compositeStyles.js";
4
+ import { stylePropsTwMap } from "./generated/stylePropsTwMap.js";
5
5
  import { colorPropToOpacityProp, modifierMappings, propMappings } from "./propMappings.js";
6
6
  import { clsx } from "clsx";
7
7
  //#region ../core/dist/getStyles.js
@@ -146,20 +146,20 @@ function cx(...inputs) {
146
146
  return clsx(inputs);
147
147
  }
148
148
  function processStyleProps(props = {}, opts = {}) {
149
- const macroConfig = getMacroConfig();
150
- const hasMacros = Object.keys(macroConfig).length > 0;
149
+ const compositeStylesConfig = getCompositeStylesConfig();
150
+ const hasCompositeStyles = Object.keys(compositeStylesConfig).length > 0;
151
151
  let effectiveProps = props;
152
- let macroMarkerClasses;
153
- if (hasMacros && !opts.modifier) {
154
- const { expanded, markerClasses } = expandMacros(props, macroConfig);
152
+ let compositeStyleMarkerClasses;
153
+ if (hasCompositeStyles && !opts.modifier) {
154
+ const { expanded, markerClasses } = expandCompositeStyles(props, compositeStylesConfig);
155
155
  effectiveProps = expanded;
156
- if (markerClasses.length > 0) macroMarkerClasses = markerClasses;
156
+ if (markerClasses.length > 0) compositeStyleMarkerClasses = markerClasses;
157
157
  }
158
158
  const coveredProps = opts.existingClassName ? getPropsFromClassName(opts.existingClassName) : void 0;
159
159
  const classnameParts = [];
160
160
  const nativeProps = {};
161
161
  let inlineStyles;
162
- if (macroMarkerClasses) classnameParts.push(...macroMarkerClasses);
162
+ if (compositeStyleMarkerClasses) classnameParts.push(...compositeStyleMarkerClasses);
163
163
  for (const propKey in effectiveProps) {
164
164
  if (!Object.hasOwn(effectiveProps, propKey)) continue;
165
165
  const propValue = effectiveProps[propKey];
@@ -1,10 +1,10 @@
1
+ import { expandCompositeStyles, getCompositeStylesConfig, setCompositeStylesConfig } from "./compositeStyles.js";
1
2
  import { createComponent } from "./createComponent.js";
2
3
  import { ComponentExample, createComponentExample } from "./createComponentExample.js";
3
4
  import { createProvider } from "./createProvider.js";
4
5
  import { stylePropsTwMap } from "./generated/stylePropsTwMap.js";
5
6
  import { createComponentStyler } from "./getComponentStyles.js";
6
7
  import { createVariants, cx, getStyles, getVariantClassName, processStyleProps, toCamelCase } from "./getStyles.js";
7
- import { expandMacros, getMacroConfig, setMacroConfig } from "./macros.js";
8
8
  import { ConfigurablePropertyEntry, CssVariablePrefixEntry, ModifierEntry, PropMapping, colorPropToOpacityProp, getConfigurablePropMapping, getConfigurableProperties, getCssVariablePrefixes, modifierMappings, propMappings } from "./propMappings.js";
9
9
  import { resolveMotionState } from "./resolveMotionState.js";
10
10
  import { TransformedMotionProps, transformPreset } from "./transformPreset.js";
@@ -1,5 +1,5 @@
1
+ import "./compositeStyles.js";
1
2
  import "./generated/stylePropsTwMap.js";
2
- import "./macros.js";
3
3
  import "./propMappings.js";
4
4
  import "./getStyles.js";
5
5
  import "./getComponentStyles.js";
package/dist/core.d.ts CHANGED
@@ -1,12 +1,12 @@
1
+ import { expandCompositeStyles, getCompositeStylesConfig, setCompositeStylesConfig } from "./core/dist/compositeStyles.js";
1
2
  import { createComponent } from "./core/dist/createComponent.js";
2
3
  import { ComponentExample, createComponentExample } from "./core/dist/createComponentExample.js";
3
4
  import { createProvider } from "./core/dist/createProvider.js";
4
5
  import { stylePropsTwMap } from "./core/dist/generated/stylePropsTwMap.js";
5
6
  import { createComponentStyler } from "./core/dist/getComponentStyles.js";
6
7
  import { createVariants, cx, getStyles, getVariantClassName, processStyleProps, toCamelCase } from "./core/dist/getStyles.js";
7
- import { expandMacros, getMacroConfig, setMacroConfig } from "./core/dist/macros.js";
8
8
  import { ConfigurablePropertyEntry, CssVariablePrefixEntry, ModifierEntry, PropMapping, colorPropToOpacityProp, getConfigurablePropMapping, getConfigurableProperties, getCssVariablePrefixes, modifierMappings, propMappings } from "./core/dist/propMappings.js";
9
9
  import { resolveMotionState } from "./core/dist/resolveMotionState.js";
10
10
  import { TransformedMotionProps, transformPreset } from "./core/dist/transformPreset.js";
11
11
  import { withDefaultStyleProps } from "./core/dist/withDefaultStyleProps.js";
12
- export { ComponentExample, ConfigurablePropertyEntry, CssVariablePrefixEntry, ModifierEntry, PropMapping, TransformedMotionProps, colorPropToOpacityProp, createComponent, createComponentExample, createComponentStyler, createProvider, createVariants, cx, expandMacros, getConfigurablePropMapping, getConfigurableProperties, getCssVariablePrefixes, getMacroConfig, getStyles, getVariantClassName, modifierMappings, processStyleProps, propMappings, resolveMotionState, setMacroConfig, stylePropsTwMap, toCamelCase, transformPreset, withDefaultStyleProps };
12
+ export { ComponentExample, ConfigurablePropertyEntry, CssVariablePrefixEntry, ModifierEntry, PropMapping, TransformedMotionProps, colorPropToOpacityProp, createComponent, createComponentExample, createComponentStyler, createProvider, createVariants, cx, expandCompositeStyles, getCompositeStylesConfig, getConfigurablePropMapping, getConfigurableProperties, getCssVariablePrefixes, getStyles, getVariantClassName, modifierMappings, processStyleProps, propMappings, resolveMotionState, setCompositeStylesConfig, stylePropsTwMap, toCamelCase, transformPreset, withDefaultStyleProps };
package/dist/core.js CHANGED
@@ -1,5 +1,5 @@
1
+ import { expandCompositeStyles, getCompositeStylesConfig, setCompositeStylesConfig } from "./core/dist/compositeStyles.js";
1
2
  import { stylePropsTwMap } from "./core/dist/generated/stylePropsTwMap.js";
2
- import { expandMacros, getMacroConfig, setMacroConfig } from "./core/dist/macros.js";
3
3
  import { colorPropToOpacityProp, getConfigurablePropMapping, getConfigurableProperties, getCssVariablePrefixes, modifierMappings, propMappings } from "./core/dist/propMappings.js";
4
4
  import { createVariants, cx, getStyles, getVariantClassName, processStyleProps, toCamelCase } from "./core/dist/getStyles.js";
5
5
  import { createComponentStyler } from "./core/dist/getComponentStyles.js";
@@ -10,4 +10,4 @@ import { resolveMotionState } from "./core/dist/resolveMotionState.js";
10
10
  import { transformPreset } from "./core/dist/transformPreset.js";
11
11
  import { withDefaultStyleProps } from "./core/dist/withDefaultStyleProps.js";
12
12
  import "./core/dist/index.js";
13
- export { colorPropToOpacityProp, createComponent, createComponentExample, createComponentStyler, createProvider, createVariants, cx, expandMacros, getConfigurablePropMapping, getConfigurableProperties, getCssVariablePrefixes, getMacroConfig, getStyles, getVariantClassName, modifierMappings, processStyleProps, propMappings, resolveMotionState, setMacroConfig, stylePropsTwMap, toCamelCase, transformPreset, withDefaultStyleProps };
13
+ export { colorPropToOpacityProp, createComponent, createComponentExample, createComponentStyler, createProvider, createVariants, cx, expandCompositeStyles, getCompositeStylesConfig, getConfigurablePropMapping, getConfigurableProperties, getCssVariablePrefixes, getStyles, getVariantClassName, modifierMappings, processStyleProps, propMappings, resolveMotionState, setCompositeStylesConfig, stylePropsTwMap, toCamelCase, transformPreset, withDefaultStyleProps };