@yahoo/uds-v5-wip 1.43.0 → 1.44.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.
@@ -4,6 +4,7 @@ import "../../utils/dist/index.js";
4
4
  import { getConfigurablePropMapping } from "../../core/dist/configurable-prop-helpers.js";
5
5
  import "../../core/dist/index.js";
6
6
  import { buildMotionReference, resolveComponentMotionAliases, validateComponentVariants } from "./component-resolution.js";
7
+ import { setRegisteredStyleProps } from "./runtime-registry.js";
7
8
  import { resolveTokenType, sniffTokenTypeFromValue } from "./resolveTokenTypes.js";
8
9
  import { resolveStyleProp } from "./resolveStyleProp.js";
9
10
  import { applyPresetToData, deepMerge, mergeAtomic } from "./preset-merge.js";
@@ -239,6 +240,7 @@ function resolveConfig(config) {
239
240
  resolvedStyleProps: resolved
240
241
  };
241
242
  }
243
+ if (configData.styleProps) setRegisteredStyleProps(configData.styleProps);
242
244
  }
243
245
  return configData;
244
246
  }
@@ -149,6 +149,10 @@ function applyPresetToData(base, preset, strategy) {
149
149
  const mergedExamples = base.examples || preset.examples ? mergeRecordByKey(base.examples ?? {}, preset.examples ?? {}, s.examples) : void 0;
150
150
  const mergedPrinciples = base.designPrinciples || preset.designPrinciples ? [...base.designPrinciples ?? [], ...preset.designPrinciples ?? []] : void 0;
151
151
  const mergedVars = base.vars || preset.vars ? mergeRecordByKey(base.vars ?? {}, preset.vars ?? {}, "merge") : void 0;
152
+ const mergedStyleProps = base.styleProps || preset.styleProps ? {
153
+ ...base.styleProps ?? {},
154
+ ...preset.styleProps ?? {}
155
+ } : void 0;
152
156
  const merged = {
153
157
  ...base,
154
158
  modes: mergeModes(base.modes, preset.modes, s.modes),
@@ -165,6 +169,7 @@ function applyPresetToData(base, preset, strategy) {
165
169
  examples: mergedExamples,
166
170
  designPrinciples: mergedPrinciples,
167
171
  vars: mergedVars,
172
+ styleProps: mergedStyleProps,
168
173
  presetTokenNames: mergePresetTokenNames(base, preset)
169
174
  };
170
175
  validateComponentVariants(merged.components);
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Replace the active style-prop registry. Called by `resolveConfig`
3
+ * with the full `config.styleProps` map (keyed by JSX prop name).
4
+ */
5
+ function setRegisteredStyleProps(entries) {
6
+ new Map(Object.entries(entries));
7
+ }
8
+ //#endregion
9
+ export { setRegisteredStyleProps };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yahoo/uds-v5-wip",
3
- "version": "1.43.0",
3
+ "version": "1.44.0",
4
4
  "description": "Universal Design System",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -119,8 +119,8 @@
119
119
  "@babel/traverse": "^7.29.0",
120
120
  "@babel/types": "^7.29.0",
121
121
  "@modelcontextprotocol/sdk": "^1.27.1",
122
- "@uds/cli": "npm:@yahoo/uds-v5-wip-cli@1.43.0",
123
- "@uds/types": "npm:@yahoo/uds-v5-wip-types@1.43.0",
122
+ "@uds/cli": "npm:@yahoo/uds-v5-wip-cli@1.44.0",
123
+ "@uds/types": "npm:@yahoo/uds-v5-wip-types@1.44.0",
124
124
  "clsx": "^2.1.1",
125
125
  "react-day-picker": "^9.14.0",
126
126
  "unplugin": "^3.0.0",