@yahoo/uds-v5-wip 1.26.0 → 1.28.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,9 +4,9 @@ import "../../utils/dist/index.js";
|
|
|
4
4
|
import { getConfigurablePropMapping } from "../../core/dist/propMappings.js";
|
|
5
5
|
import "../../core/dist/index.js";
|
|
6
6
|
import { buildMotionReference, resolveComponentMotionAliases, validateComponentVariants } from "./component-resolution.js";
|
|
7
|
+
import { applyPresetToData, deepMerge, mergeAtomic } from "./preset-merge.js";
|
|
7
8
|
import { expandPropertyGroups } from "./propertyGroups.js";
|
|
8
9
|
import { resolveTokenType, sniffTokenTypeFromValue } from "./resolveTokenTypes.js";
|
|
9
|
-
import { applyPresetToData, deepMerge, mergeAtomic } from "./preset-merge.js";
|
|
10
10
|
//#region ../config/dist/createConfig.js
|
|
11
11
|
/** biome-ignore-all lint/suspicious/noExplicitAny: necessary for dynamic builder to work correctly */
|
|
12
12
|
/** Build a structured token reference object from atomic tokens */
|
|
@@ -28,6 +28,10 @@ function buildTokenReference(atomic, configPrefix) {
|
|
|
28
28
|
if (!result[varPrefix]) result[varPrefix] = Object.create(null);
|
|
29
29
|
Object.assign(result[varPrefix], tokenEntries);
|
|
30
30
|
}
|
|
31
|
+
if (token.namespace && token.namespace !== varPrefix) {
|
|
32
|
+
if (!result[token.namespace]) result[token.namespace] = Object.create(null);
|
|
33
|
+
Object.assign(result[token.namespace], tokenEntries);
|
|
34
|
+
}
|
|
31
35
|
}
|
|
32
36
|
return result;
|
|
33
37
|
}
|
|
@@ -336,6 +340,7 @@ function availableTokenNames(data) {
|
|
|
336
340
|
for (const group of data.atomic) for (const token of group.tokens) {
|
|
337
341
|
for (const prop of group.properties) names.add(`${prop}.${token.name}`);
|
|
338
342
|
if (group.cssPrefix) names.add(`${group.cssPrefix}.${token.name}`);
|
|
343
|
+
if (group.namespace && group.namespace !== group.cssPrefix) names.add(`${group.namespace}.${token.name}`);
|
|
339
344
|
}
|
|
340
345
|
return names;
|
|
341
346
|
}
|
|
@@ -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) {
|