@yahoo/uds-v5-wip 1.36.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 (128) 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 +12 -88
  6. package/dist/config/dist/createConfig.js +67 -161
  7. package/dist/config/dist/defineStyleProp.d.ts +1 -12
  8. package/dist/config/dist/defineStyleProp.js +25 -0
  9. package/dist/config/dist/index.d.ts +2 -3
  10. package/dist/config/dist/index.js +2 -1
  11. package/dist/config/dist/preset-merge.js +0 -12
  12. package/dist/config/dist/propertyAcceptedTypes.js +17 -4
  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 +0 -7
  16. package/dist/config/dist/resolveStyleProp.js +11 -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 +1 -2
  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/compositeStyles.d.ts +2 -1
  25. package/dist/core/dist/configurable-prop-helpers.d.ts +32 -0
  26. package/dist/core/dist/configurable-prop-helpers.js +61 -0
  27. package/dist/core/dist/createComponent.d.ts +2 -1
  28. package/dist/core/dist/createComponentExample.d.ts +2 -1
  29. package/dist/core/dist/createProvider.d.ts +2 -1
  30. package/dist/core/dist/generated/stylePropsTwMap.d.ts +2 -1
  31. package/dist/core/dist/getComponentStyles.d.ts +2 -1
  32. package/dist/core/dist/getStyles.d.ts +2 -1
  33. package/dist/core/dist/getStyles.js +3 -1
  34. package/dist/core/dist/index.d.ts +4 -1
  35. package/dist/core/dist/index.js +4 -1
  36. package/dist/core/dist/modifier-mappings.d.ts +13 -0
  37. package/dist/core/dist/modifier-mappings.js +61 -0
  38. package/dist/core/dist/resolveMotionState.d.ts +2 -1
  39. package/dist/core/dist/style-prop-data.d.ts +33 -0
  40. package/dist/{loader/dist/packages/core/dist/propMappings.js → core/dist/style-prop-data.js} +2 -93
  41. package/dist/core/dist/transformPreset.d.ts +2 -1
  42. package/dist/core/dist/withDefaultStyleProps.d.ts +2 -1
  43. package/dist/core.d.ts +4 -1
  44. package/dist/core.js +4 -1
  45. package/dist/fixtures.d.ts +3 -1
  46. package/dist/fixtures.js +3 -1
  47. package/dist/foundational-presets/dist/boldVibrant.d.ts +573 -224
  48. package/dist/foundational-presets/dist/brutalist.d.ts +573 -224
  49. package/dist/foundational-presets/dist/candy.d.ts +573 -224
  50. package/dist/foundational-presets/dist/cleanMinimalist.d.ts +573 -224
  51. package/dist/foundational-presets/dist/corporate.d.ts +573 -224
  52. package/dist/foundational-presets/dist/darkMoody.d.ts +573 -224
  53. package/dist/foundational-presets/dist/defaultPreset.d.ts +197 -198
  54. package/dist/foundational-presets/dist/defaultPreset.js +2 -312
  55. package/dist/foundational-presets/dist/forest.d.ts +573 -224
  56. package/dist/foundational-presets/dist/highContrast.d.ts +573 -224
  57. package/dist/foundational-presets/dist/lavender.d.ts +573 -224
  58. package/dist/foundational-presets/dist/luxury.d.ts +573 -224
  59. package/dist/foundational-presets/dist/monochrome.d.ts +573 -224
  60. package/dist/foundational-presets/dist/neonCyber.d.ts +573 -224
  61. package/dist/foundational-presets/dist/newspaper.d.ts +573 -224
  62. package/dist/foundational-presets/dist/ocean.d.ts +573 -224
  63. package/dist/foundational-presets/dist/slate.d.ts +350 -0
  64. package/dist/foundational-presets/dist/style-props.js +1384 -0
  65. package/dist/foundational-presets/dist/sunset.d.ts +350 -0
  66. package/dist/foundational-presets/dist/terminal.d.ts +350 -0
  67. package/dist/foundational-presets/dist/warmOrganic.d.ts +350 -0
  68. package/dist/loader/dist/loader/style-transform.js +2 -1
  69. package/dist/loader/dist/loader.d.ts +1 -2
  70. package/dist/loader/dist/next.d.ts +1 -2
  71. package/dist/loader/dist/packages/core/dist/color-opacity-map.js +33 -0
  72. package/dist/loader/dist/packages/core/dist/getStyles.js +3 -1
  73. package/dist/loader/dist/packages/core/dist/modifier-mappings.js +61 -0
  74. package/dist/{core/dist/propMappings.js → loader/dist/packages/core/dist/style-prop-data.js} +2 -150
  75. package/dist/presets/dist/boldVibrant.d.ts +1 -2
  76. package/dist/presets/dist/brutalist.d.ts +1 -2
  77. package/dist/presets/dist/candy.d.ts +1 -2
  78. package/dist/presets/dist/cleanMinimalist.d.ts +1 -2
  79. package/dist/presets/dist/corporate.d.ts +1 -2
  80. package/dist/presets/dist/darkMoody.d.ts +1 -2
  81. package/dist/presets/dist/defaultPreset.d.ts +1 -2
  82. package/dist/presets/dist/forest.d.ts +1 -2
  83. package/dist/presets/dist/highContrast.d.ts +1 -2
  84. package/dist/presets/dist/lavender.d.ts +1 -2
  85. package/dist/presets/dist/luxury.d.ts +1 -2
  86. package/dist/presets/dist/monochrome.d.ts +1 -2
  87. package/dist/presets/dist/neonCyber.d.ts +1 -2
  88. package/dist/presets/dist/newspaper.d.ts +1 -2
  89. package/dist/presets/dist/ocean.d.ts +1 -2
  90. package/dist/presets/dist/slate.d.ts +1 -2
  91. package/dist/presets/dist/sunset.d.ts +1 -2
  92. package/dist/presets/dist/terminal.d.ts +1 -2
  93. package/dist/presets/dist/warmOrganic.d.ts +1 -2
  94. package/dist/remotion/dist/components/image-slide.d.ts +1 -2
  95. package/dist/remotion/dist/components/lower-third.d.ts +1 -2
  96. package/dist/remotion/dist/components/quote-card.d.ts +1 -2
  97. package/dist/remotion/dist/components/split-screen.d.ts +1 -2
  98. package/dist/remotion/dist/components/stat-card.d.ts +1 -2
  99. package/dist/remotion/dist/components/text-overlay.d.ts +1 -2
  100. package/dist/remotion/dist/components/title-card.d.ts +1 -2
  101. package/dist/remotion/dist/components/typing-text.d.ts +1 -2
  102. package/dist/tsconfig.tsbuildinfo +1 -1
  103. package/dist/utils/dist/array-utils/closestItem.d.ts +2 -1
  104. package/dist/utils/dist/array-utils/removeItem.d.ts +2 -1
  105. package/dist/utils/dist/component-style-defaults.d.ts +2 -1
  106. package/dist/utils/dist/math-utils/clamp.d.ts +2 -1
  107. package/dist/utils/dist/motion-utils/interpolate.d.ts +2 -1
  108. package/dist/utils/dist/object-utils/entries.d.ts +2 -1
  109. package/dist/utils/dist/object-utils/flattenObj.d.ts +2 -1
  110. package/dist/utils/dist/object-utils/fromEntries.d.ts +2 -1
  111. package/dist/utils/dist/object-utils/keys.d.ts +2 -1
  112. package/dist/utils/dist/object-utils/mapKeys.d.ts +2 -1
  113. package/dist/utils/dist/object-utils/mapValues.d.ts +2 -1
  114. package/dist/utils/dist/string-utils/arrayToUnion.d.ts +2 -1
  115. package/dist/utils/dist/string-utils/capitalize.d.ts +2 -1
  116. package/dist/utils/dist/string-utils/componentClassName.d.ts +2 -1
  117. package/dist/utils/dist/string-utils/createTemplate.d.ts +2 -1
  118. package/dist/utils/dist/string-utils/cssVar.d.ts +2 -1
  119. package/dist/utils/dist/string-utils/cssVars.d.ts +2 -1
  120. package/dist/utils/dist/string-utils/dedent.d.ts +2 -1
  121. package/dist/utils/dist/string-utils/indent.d.ts +2 -1
  122. package/dist/utils/dist/string-utils/join.d.ts +2 -1
  123. package/dist/utils/dist/string-utils/kebabCase.d.ts +2 -1
  124. package/dist/utils/dist/string-utils/split.d.ts +2 -1
  125. package/dist/utils/dist/string-utils/tsProperties.d.ts +2 -1
  126. package/dist/utils.d.ts +1 -1
  127. package/package.json +3 -3
  128. package/dist/core/dist/propMappings.d.ts +0 -76
@@ -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 };
@@ -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 };
@@ -0,0 +1,61 @@
1
+ //#region ../core/dist/modifier-mappings.js
2
+ const modifierMappings = {
3
+ _after: "after:",
4
+ _hover: "hover:",
5
+ _focus: "focus:",
6
+ _focusWithin: "focus-within:",
7
+ _focusVisible: "focus-visible:",
8
+ _active: "active:",
9
+ _visited: "visited:",
10
+ _target: "target:",
11
+ _first: "first:",
12
+ _last: "last:",
13
+ _only: "only:",
14
+ _odd: "odd:",
15
+ _even: "even:",
16
+ _firstOfType: "first-of-type:",
17
+ _lastOfType: "last-of-type:",
18
+ _onlyOfType: "only-of-type:",
19
+ _empty: "empty:",
20
+ _disabled: "disabled:",
21
+ _enabled: "enabled:",
22
+ _checked: "checked:",
23
+ _indeterminate: "indeterminate:",
24
+ _default: "default:",
25
+ _required: "required:",
26
+ _valid: "valid:",
27
+ _invalid: "invalid:",
28
+ _inRange: "in-range:",
29
+ _outOfRange: "out-of-range:",
30
+ _placeholderShown: "placeholder-shown:",
31
+ _autofill: "autofill:",
32
+ _readonly: "read-only:",
33
+ _file: "file:",
34
+ _selection: "selection:",
35
+ _backdrop: "backdrop:",
36
+ _motionReduce: "motion-reduce:",
37
+ _motionSafe: "motion-safe:",
38
+ _contrastMore: "contrast-more:",
39
+ _contrastLess: "contrast-less:",
40
+ _forcedColors: "forced-colors:",
41
+ _placeholder: "placeholder:",
42
+ _ariaBusy: "aria-busy:",
43
+ _ariaChecked: "aria-checked:",
44
+ _ariaHidden: "aria-hidden:",
45
+ _ariaPressed: "aria-pressed:",
46
+ _ariaReadonly: "aria-readonly:",
47
+ _ariaRequired: "aria-required:",
48
+ _ariaSelected: "aria-selected:",
49
+ _ariaCurrent: "aria-[current]:",
50
+ _ariaDisabled: "aria-disabled:",
51
+ _ariaExpanded: "aria-expanded:",
52
+ _dataDisabled: "data-[disabled=true]:",
53
+ _dataStateOpen: "data-[state=open]:",
54
+ _dataStateClosed: "data-[state=closed]:",
55
+ _startingStyle: "starting-style:",
56
+ _scrollbar: "*::-webkit-scrollbar:",
57
+ _scrollbarThumb: "*::-webkit-scrollbar-thumb:",
58
+ _scrollbarTrack: "*::-webkit-scrollbar-track:"
59
+ };
60
+ //#endregion
61
+ export { modifierMappings };
@@ -1,4 +1,5 @@
1
1
  //#region ../core/dist/resolveMotionState.d.ts
2
- declare function resolveMotionState(stateKeyframe: Record<string, unknown>, index: number): Record<string, number>;
2
+ //#region src/resolveMotionState.d.ts
3
+ declare function resolveMotionState(stateKeyframe: Record<string, unknown>, index: number): Record<string, number>; //#endregion
3
4
  //#endregion
4
5
  export { resolveMotionState };
@@ -0,0 +1,33 @@
1
+ import { StyleProp } from "@uds/types";
2
+
3
+ //#region ../core/dist/style-prop-data.d.ts
4
+ //#region src/style-prop-data.d.ts
5
+ interface PropMapping {
6
+ /** Class name prefix for runtime class generation. 'no-prefix' means value IS the class. */
7
+ classPrefix: string;
8
+ /** CSS property name (for @utility directive generation). Only needed for token-based props. */
9
+ cssProperty?: string;
10
+ /** CSS variable namespace for tokens. Only needed for token-based (configurable) props. */
11
+ defaultVarPrefix?: string;
12
+ /** Module augmentation interface name. Only needed for configurable props. */
13
+ augmentType?: string;
14
+ /** Known literal values for functional @utility generation. Used for props with cssProperty but no defaultVarPrefix. */
15
+ literalValues?: string[];
16
+ /** Alternate CSS property for component configs (directValues mode).
17
+ * Use when the utility cssProperty differs from the CSS shorthand needed for direct values.
18
+ * e.g. transition utility maps to 'transition-property', but direct values need 'transition'. */
19
+ directCssProperty?: string;
20
+ /** Template for generating inline style values from arbitrary bracket values.
21
+ * When present, arbitrary values like `[3.5px]` produce inline styles instead of Tailwind classes.
22
+ * `cssProperty` is the CSS property name (kebab-case), `valueTemplate` uses `%s` as value placeholder.
23
+ * e.g. { cssProperty: 'transform', valueTemplate: 'translateX(%s)' } */
24
+ arbitraryValueTemplate?: {
25
+ cssProperty: string;
26
+ valueTemplate: string;
27
+ };
28
+ }
29
+ /** Exclude className — it's passed through, not mapped to a utility class */
30
+ type MappedStyleProp = Exclude<StyleProp, 'className'>;
31
+ declare const propMappings: Record<MappedStyleProp, PropMapping>; //#endregion
32
+ //#endregion
33
+ export { PropMapping, propMappings };
@@ -1,4 +1,4 @@
1
- //#region ../loader/dist/packages/core/dist/propMappings.js
1
+ //#region ../core/dist/style-prop-data.js
2
2
  const propMappings = {
3
3
  animation: {
4
4
  classPrefix: "animation",
@@ -1253,96 +1253,5 @@ const propMappings = {
1253
1253
  augmentType: "CustomTextShadow"
1254
1254
  }
1255
1255
  };
1256
- /**
1257
- * Built-in modifier mappings (pseudo-classes, pseudo-elements, etc.).
1258
- * Custom modifiers from defineModes() are handled dynamically in the runtime.
1259
- */
1260
- const modifierMappings = {
1261
- _after: "after:",
1262
- _hover: "hover:",
1263
- _focus: "focus:",
1264
- _focusWithin: "focus-within:",
1265
- _focusVisible: "focus-visible:",
1266
- _active: "active:",
1267
- _visited: "visited:",
1268
- _target: "target:",
1269
- _first: "first:",
1270
- _last: "last:",
1271
- _only: "only:",
1272
- _odd: "odd:",
1273
- _even: "even:",
1274
- _firstOfType: "first-of-type:",
1275
- _lastOfType: "last-of-type:",
1276
- _onlyOfType: "only-of-type:",
1277
- _empty: "empty:",
1278
- _disabled: "disabled:",
1279
- _enabled: "enabled:",
1280
- _checked: "checked:",
1281
- _indeterminate: "indeterminate:",
1282
- _default: "default:",
1283
- _required: "required:",
1284
- _valid: "valid:",
1285
- _invalid: "invalid:",
1286
- _inRange: "in-range:",
1287
- _outOfRange: "out-of-range:",
1288
- _placeholderShown: "placeholder-shown:",
1289
- _autofill: "autofill:",
1290
- _readonly: "read-only:",
1291
- _file: "file:",
1292
- _selection: "selection:",
1293
- _backdrop: "backdrop:",
1294
- _motionReduce: "motion-reduce:",
1295
- _motionSafe: "motion-safe:",
1296
- _contrastMore: "contrast-more:",
1297
- _contrastLess: "contrast-less:",
1298
- _forcedColors: "forced-colors:",
1299
- _placeholder: "placeholder:",
1300
- _ariaBusy: "aria-busy:",
1301
- _ariaChecked: "aria-checked:",
1302
- _ariaHidden: "aria-hidden:",
1303
- _ariaPressed: "aria-pressed:",
1304
- _ariaReadonly: "aria-readonly:",
1305
- _ariaRequired: "aria-required:",
1306
- _ariaSelected: "aria-selected:",
1307
- _ariaCurrent: "aria-[current]:",
1308
- _ariaDisabled: "aria-disabled:",
1309
- _ariaExpanded: "aria-expanded:",
1310
- _dataDisabled: "data-[disabled=true]:",
1311
- _dataStateOpen: "data-[state=open]:",
1312
- _dataStateClosed: "data-[state=closed]:",
1313
- _startingStyle: "starting-style:",
1314
- _scrollbar: "*::-webkit-scrollbar:",
1315
- _scrollbarThumb: "*::-webkit-scrollbar-thumb:",
1316
- _scrollbarTrack: "*::-webkit-scrollbar-track:"
1317
- };
1318
- /**
1319
- * Maps each color prop name to its corresponding opacity prop name.
1320
- * Used by runtime (getStyles) and loader (style-transform) to merge
1321
- * a color value with its opacity before class generation.
1322
- *
1323
- * e.g. `bg="primary"` + `bgOpacity="75"` → class `bg-primary_75`
1324
- */
1325
- const colorPropToOpacityProp = {
1326
- bg: "bgOpacity",
1327
- color: "colorOpacity",
1328
- textDecorationColor: "textDecorationColorOpacity",
1329
- borderColor: "borderColorOpacity",
1330
- borderYColor: "borderYColorOpacity",
1331
- borderXColor: "borderXColorOpacity",
1332
- borderStartColor: "borderStartColorOpacity",
1333
- borderLeftColor: "borderLeftColorOpacity",
1334
- borderEndColor: "borderEndColorOpacity",
1335
- borderRightColor: "borderRightColorOpacity",
1336
- borderTopColor: "borderTopColorOpacity",
1337
- borderBottomColor: "borderBottomColorOpacity",
1338
- divideColor: "divideColorOpacity",
1339
- outlineColor: "outlineColorOpacity",
1340
- ringColor: "ringColorOpacity",
1341
- ringOffsetColor: "ringOffsetColorOpacity",
1342
- fillColor: "fillColorOpacity",
1343
- strokeColor: "strokeColorOpacity",
1344
- shadowColor: "shadowColorOpacity",
1345
- caretColor: "caretColorOpacity"
1346
- };
1347
1256
  //#endregion
1348
- export { colorPropToOpacityProp, modifierMappings, propMappings };
1257
+ export { propMappings };
@@ -1,6 +1,7 @@
1
1
  import { MotionPreset } from "@uds/types";
2
2
 
3
3
  //#region ../core/dist/transformPreset.d.ts
4
+ //#region src/transformPreset.d.ts
4
5
  interface TransformedMotionProps {
5
6
  initial?: Record<string, unknown>;
6
7
  animate?: Record<string, unknown>;
@@ -12,6 +13,6 @@ interface TransformedMotionProps {
12
13
  /**
13
14
  * Convert a JS-runtime MotionPreset to a motion/react-compatible props object.
14
15
  */
15
- declare function transformPreset(preset: MotionPreset): TransformedMotionProps;
16
+ declare function transformPreset(preset: MotionPreset): TransformedMotionProps; //#endregion
16
17
  //#endregion
17
18
  export { TransformedMotionProps, transformPreset };
@@ -1,6 +1,7 @@
1
1
  import { BorderRadius, GridSpan, GridStartEnd, GridTemplate, StyleAndModifierProps } from "@uds/types";
2
2
 
3
3
  //#region ../core/dist/withDefaultStyleProps.d.ts
4
+ //#region src/withDefaultStyleProps.d.ts
4
5
  interface StackDefaultsInput extends StyleAndModifierProps {
5
6
  gap?: StyleAndModifierProps['gap'];
6
7
  }
@@ -38,6 +39,6 @@ declare const withDefaultStyleProps: {
38
39
  shape?: BorderRadius;
39
40
  }) => StyleAndModifierProps;
40
41
  Svg: (props: SvgDefaultsInput) => StyleAndModifierProps;
41
- };
42
+ }; //#endregion
42
43
  //#endregion
43
44
  export { withDefaultStyleProps };
package/dist/core.d.ts CHANGED
@@ -1,11 +1,14 @@
1
+ import { colorPropToOpacityProp } from "./core/dist/color-opacity-map.js";
1
2
  import { expandCompositeStyles, getCompositeStylesConfig, setCompositeStylesConfig } from "./core/dist/compositeStyles.js";
3
+ import { PropMapping, propMappings } from "./core/dist/style-prop-data.js";
4
+ import { ConfigurablePropertyEntry, CssVariablePrefixEntry, getConfigurablePropMapping, getConfigurableProperties, getCssVariablePrefixes } from "./core/dist/configurable-prop-helpers.js";
2
5
  import { createComponent } from "./core/dist/createComponent.js";
3
6
  import { ComponentExample, createComponentExample } from "./core/dist/createComponentExample.js";
4
7
  import { createProvider } from "./core/dist/createProvider.js";
5
8
  import { stylePropsTwMap } from "./core/dist/generated/stylePropsTwMap.js";
6
9
  import { createComponentStyler } from "./core/dist/getComponentStyles.js";
7
10
  import { createVariants, cx, getStyles, getVariantClassName, processStyleProps, toCamelCase } from "./core/dist/getStyles.js";
8
- import { ConfigurablePropertyEntry, CssVariablePrefixEntry, ModifierEntry, PropMapping, colorPropToOpacityProp, getConfigurablePropMapping, getConfigurableProperties, getCssVariablePrefixes, modifierMappings, propMappings } from "./core/dist/propMappings.js";
11
+ import { ModifierEntry, modifierMappings } from "./core/dist/modifier-mappings.js";
9
12
  import { resolveMotionState } from "./core/dist/resolveMotionState.js";
10
13
  import { TransformedMotionProps, transformPreset } from "./core/dist/transformPreset.js";
11
14
  import { withDefaultStyleProps } from "./core/dist/withDefaultStyleProps.js";
package/dist/core.js CHANGED
@@ -1,6 +1,9 @@
1
+ import { colorPropToOpacityProp } from "./core/dist/color-opacity-map.js";
1
2
  import { expandCompositeStyles, getCompositeStylesConfig, setCompositeStylesConfig } from "./core/dist/compositeStyles.js";
3
+ import { propMappings } from "./core/dist/style-prop-data.js";
4
+ import { getConfigurablePropMapping, getConfigurableProperties, getCssVariablePrefixes } from "./core/dist/configurable-prop-helpers.js";
2
5
  import { stylePropsTwMap } from "./core/dist/generated/stylePropsTwMap.js";
3
- import { colorPropToOpacityProp, getConfigurablePropMapping, getConfigurableProperties, getCssVariablePrefixes, modifierMappings, propMappings } from "./core/dist/propMappings.js";
6
+ import { modifierMappings } from "./core/dist/modifier-mappings.js";
4
7
  import { createVariants, cx, getStyles, getVariantClassName, processStyleProps, toCamelCase } from "./core/dist/getStyles.js";
5
8
  import { createComponentStyler } from "./core/dist/getComponentStyles.js";
6
9
  import { createComponent } from "./core/dist/createComponent.js";
@@ -1,2 +1,4 @@
1
- import { ConfigurablePropertyEntry, CssVariablePrefixEntry, ModifierEntry, PropMapping, getConfigurablePropMapping, getConfigurableProperties, getCssVariablePrefixes, modifierMappings, propMappings } from "./core/dist/propMappings.js";
1
+ import { PropMapping, propMappings } from "./core/dist/style-prop-data.js";
2
+ import { ConfigurablePropertyEntry, CssVariablePrefixEntry, getConfigurablePropMapping, getConfigurableProperties, getCssVariablePrefixes } from "./core/dist/configurable-prop-helpers.js";
3
+ import { ModifierEntry, modifierMappings } from "./core/dist/modifier-mappings.js";
2
4
  export { type ConfigurablePropertyEntry, type CssVariablePrefixEntry, type ModifierEntry, type PropMapping, getConfigurablePropMapping, getConfigurableProperties, getCssVariablePrefixes, modifierMappings, propMappings };
package/dist/fixtures.js CHANGED
@@ -1,3 +1,5 @@
1
- import { getConfigurablePropMapping, getConfigurableProperties, getCssVariablePrefixes, modifierMappings, propMappings } from "./core/dist/propMappings.js";
1
+ import { propMappings } from "./core/dist/style-prop-data.js";
2
+ import { getConfigurablePropMapping, getConfigurableProperties, getCssVariablePrefixes } from "./core/dist/configurable-prop-helpers.js";
3
+ import { modifierMappings } from "./core/dist/modifier-mappings.js";
2
4
  import "./core/dist/index.js";
3
5
  export { getConfigurablePropMapping, getConfigurableProperties, getCssVariablePrefixes, modifierMappings, propMappings };