@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.
- package/dist/_virtual/_rolldown/runtime.js +13 -0
- package/dist/config/dist/component-resolution.d.ts +1 -1
- package/dist/config/dist/component-resolution.js +1 -1
- package/dist/config/dist/consts/defaultColors.d.ts +1 -2
- package/dist/config/dist/createConfig.d.ts +12 -88
- package/dist/config/dist/createConfig.js +67 -161
- package/dist/config/dist/defineStyleProp.d.ts +1 -12
- package/dist/config/dist/defineStyleProp.js +25 -0
- package/dist/config/dist/index.d.ts +2 -3
- package/dist/config/dist/index.js +2 -1
- package/dist/config/dist/preset-merge.js +0 -12
- package/dist/config/dist/propertyAcceptedTypes.js +17 -4
- package/dist/config/dist/propertyGroups.d.ts +1 -11
- package/dist/config/dist/propertyGroups.js +1 -19
- package/dist/config/dist/resolveStyleProp.d.ts +0 -7
- package/dist/config/dist/resolveStyleProp.js +11 -2
- package/dist/config/dist/serialize.d.ts +11 -4
- package/dist/config/dist/serialize.js +3 -3
- package/dist/config/dist/types/css-values.d.ts +1 -2
- package/dist/config/dist/types.d.ts +1 -2
- package/dist/config.d.ts +184 -184
- package/dist/core/dist/color-opacity-map.d.ts +13 -0
- package/dist/core/dist/color-opacity-map.js +33 -0
- package/dist/core/dist/compositeStyles.d.ts +2 -1
- package/dist/core/dist/configurable-prop-helpers.d.ts +32 -0
- package/dist/core/dist/configurable-prop-helpers.js +61 -0
- package/dist/core/dist/createComponent.d.ts +2 -1
- package/dist/core/dist/createComponentExample.d.ts +2 -1
- package/dist/core/dist/createProvider.d.ts +2 -1
- package/dist/core/dist/generated/stylePropsTwMap.d.ts +2 -1
- package/dist/core/dist/getComponentStyles.d.ts +2 -1
- package/dist/core/dist/getStyles.d.ts +2 -1
- package/dist/core/dist/getStyles.js +3 -1
- package/dist/core/dist/index.d.ts +4 -1
- package/dist/core/dist/index.js +4 -1
- package/dist/core/dist/modifier-mappings.d.ts +13 -0
- package/dist/core/dist/modifier-mappings.js +61 -0
- package/dist/core/dist/resolveMotionState.d.ts +2 -1
- package/dist/core/dist/style-prop-data.d.ts +33 -0
- package/dist/{loader/dist/packages/core/dist/propMappings.js → core/dist/style-prop-data.js} +2 -93
- package/dist/core/dist/transformPreset.d.ts +2 -1
- package/dist/core/dist/withDefaultStyleProps.d.ts +2 -1
- package/dist/core.d.ts +4 -1
- package/dist/core.js +4 -1
- package/dist/fixtures.d.ts +3 -1
- package/dist/fixtures.js +3 -1
- package/dist/foundational-presets/dist/boldVibrant.d.ts +573 -224
- package/dist/foundational-presets/dist/brutalist.d.ts +573 -224
- package/dist/foundational-presets/dist/candy.d.ts +573 -224
- package/dist/foundational-presets/dist/cleanMinimalist.d.ts +573 -224
- package/dist/foundational-presets/dist/corporate.d.ts +573 -224
- package/dist/foundational-presets/dist/darkMoody.d.ts +573 -224
- package/dist/foundational-presets/dist/defaultPreset.d.ts +197 -198
- package/dist/foundational-presets/dist/defaultPreset.js +2 -312
- package/dist/foundational-presets/dist/forest.d.ts +573 -224
- package/dist/foundational-presets/dist/highContrast.d.ts +573 -224
- package/dist/foundational-presets/dist/lavender.d.ts +573 -224
- package/dist/foundational-presets/dist/luxury.d.ts +573 -224
- package/dist/foundational-presets/dist/monochrome.d.ts +573 -224
- package/dist/foundational-presets/dist/neonCyber.d.ts +573 -224
- package/dist/foundational-presets/dist/newspaper.d.ts +573 -224
- package/dist/foundational-presets/dist/ocean.d.ts +573 -224
- package/dist/foundational-presets/dist/slate.d.ts +350 -0
- package/dist/foundational-presets/dist/style-props.js +1384 -0
- package/dist/foundational-presets/dist/sunset.d.ts +350 -0
- package/dist/foundational-presets/dist/terminal.d.ts +350 -0
- package/dist/foundational-presets/dist/warmOrganic.d.ts +350 -0
- package/dist/loader/dist/loader/style-transform.js +2 -1
- package/dist/loader/dist/loader.d.ts +1 -2
- package/dist/loader/dist/next.d.ts +1 -2
- package/dist/loader/dist/packages/core/dist/color-opacity-map.js +33 -0
- package/dist/loader/dist/packages/core/dist/getStyles.js +3 -1
- package/dist/loader/dist/packages/core/dist/modifier-mappings.js +61 -0
- package/dist/{core/dist/propMappings.js → loader/dist/packages/core/dist/style-prop-data.js} +2 -150
- package/dist/presets/dist/boldVibrant.d.ts +1 -2
- package/dist/presets/dist/brutalist.d.ts +1 -2
- package/dist/presets/dist/candy.d.ts +1 -2
- package/dist/presets/dist/cleanMinimalist.d.ts +1 -2
- package/dist/presets/dist/corporate.d.ts +1 -2
- package/dist/presets/dist/darkMoody.d.ts +1 -2
- package/dist/presets/dist/defaultPreset.d.ts +1 -2
- package/dist/presets/dist/forest.d.ts +1 -2
- package/dist/presets/dist/highContrast.d.ts +1 -2
- package/dist/presets/dist/lavender.d.ts +1 -2
- package/dist/presets/dist/luxury.d.ts +1 -2
- package/dist/presets/dist/monochrome.d.ts +1 -2
- package/dist/presets/dist/neonCyber.d.ts +1 -2
- package/dist/presets/dist/newspaper.d.ts +1 -2
- package/dist/presets/dist/ocean.d.ts +1 -2
- package/dist/presets/dist/slate.d.ts +1 -2
- package/dist/presets/dist/sunset.d.ts +1 -2
- package/dist/presets/dist/terminal.d.ts +1 -2
- package/dist/presets/dist/warmOrganic.d.ts +1 -2
- package/dist/remotion/dist/components/image-slide.d.ts +1 -2
- package/dist/remotion/dist/components/lower-third.d.ts +1 -2
- package/dist/remotion/dist/components/quote-card.d.ts +1 -2
- package/dist/remotion/dist/components/split-screen.d.ts +1 -2
- package/dist/remotion/dist/components/stat-card.d.ts +1 -2
- package/dist/remotion/dist/components/text-overlay.d.ts +1 -2
- package/dist/remotion/dist/components/title-card.d.ts +1 -2
- package/dist/remotion/dist/components/typing-text.d.ts +1 -2
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/utils/dist/array-utils/closestItem.d.ts +2 -1
- package/dist/utils/dist/array-utils/removeItem.d.ts +2 -1
- package/dist/utils/dist/component-style-defaults.d.ts +2 -1
- package/dist/utils/dist/math-utils/clamp.d.ts +2 -1
- package/dist/utils/dist/motion-utils/interpolate.d.ts +2 -1
- package/dist/utils/dist/object-utils/entries.d.ts +2 -1
- package/dist/utils/dist/object-utils/flattenObj.d.ts +2 -1
- package/dist/utils/dist/object-utils/fromEntries.d.ts +2 -1
- package/dist/utils/dist/object-utils/keys.d.ts +2 -1
- package/dist/utils/dist/object-utils/mapKeys.d.ts +2 -1
- package/dist/utils/dist/object-utils/mapValues.d.ts +2 -1
- package/dist/utils/dist/string-utils/arrayToUnion.d.ts +2 -1
- package/dist/utils/dist/string-utils/capitalize.d.ts +2 -1
- package/dist/utils/dist/string-utils/componentClassName.d.ts +2 -1
- package/dist/utils/dist/string-utils/createTemplate.d.ts +2 -1
- package/dist/utils/dist/string-utils/cssVar.d.ts +2 -1
- package/dist/utils/dist/string-utils/cssVars.d.ts +2 -1
- package/dist/utils/dist/string-utils/dedent.d.ts +2 -1
- package/dist/utils/dist/string-utils/indent.d.ts +2 -1
- package/dist/utils/dist/string-utils/join.d.ts +2 -1
- package/dist/utils/dist/string-utils/kebabCase.d.ts +2 -1
- package/dist/utils/dist/string-utils/split.d.ts +2 -1
- package/dist/utils/dist/string-utils/tsProperties.d.ts +2 -1
- package/dist/utils.d.ts +1 -1
- package/package.json +3 -3
- package/dist/core/dist/propMappings.d.ts +0 -76
|
@@ -148,16 +148,7 @@ function applyPresetToData(base, preset, strategy) {
|
|
|
148
148
|
};
|
|
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
|
-
const mergedArbitraryTokens = base.arbitraryTokens || preset.arbitraryTokens ? [...base.arbitraryTokens ?? [], ...preset.arbitraryTokens ?? []] : void 0;
|
|
152
151
|
const mergedVars = base.vars || preset.vars ? mergeRecordByKey(base.vars ?? {}, preset.vars ?? {}, "merge") : void 0;
|
|
153
|
-
const mergedClassNames = base.classNames || preset.classNames ? {
|
|
154
|
-
...base.classNames,
|
|
155
|
-
...preset.classNames
|
|
156
|
-
} : void 0;
|
|
157
|
-
const mergedScopes = base.scopes || preset.scopes ? {
|
|
158
|
-
...base.scopes,
|
|
159
|
-
...preset.scopes
|
|
160
|
-
} : void 0;
|
|
161
152
|
const merged = {
|
|
162
153
|
...base,
|
|
163
154
|
modes: mergeModes(base.modes, preset.modes, s.modes),
|
|
@@ -171,12 +162,9 @@ function applyPresetToData(base, preset, strategy) {
|
|
|
171
162
|
components: mergeRecordByKey(base.components, preset.components, s.components),
|
|
172
163
|
globalStyles: mergeRecordByKey(base.globalStyles, preset.globalStyles, s.globalStyles),
|
|
173
164
|
remotion: mergeRemotionConfig(base.remotion, preset.remotion),
|
|
174
|
-
arbitraryTokens: mergedArbitraryTokens,
|
|
175
165
|
examples: mergedExamples,
|
|
176
166
|
designPrinciples: mergedPrinciples,
|
|
177
167
|
vars: mergedVars,
|
|
178
|
-
classNames: mergedClassNames,
|
|
179
|
-
scopes: mergedScopes,
|
|
180
168
|
presetTokenNames: mergePresetTokenNames(base, preset)
|
|
181
169
|
};
|
|
182
170
|
validateComponentVariants(merged.components);
|
|
@@ -57,7 +57,10 @@ const CSS_WIDE_KEYWORDS = new Set([
|
|
|
57
57
|
"initial",
|
|
58
58
|
"unset",
|
|
59
59
|
"revert",
|
|
60
|
-
"revert-layer"
|
|
60
|
+
"revert-layer",
|
|
61
|
+
"transparent",
|
|
62
|
+
"currentColor",
|
|
63
|
+
"currentcolor"
|
|
61
64
|
]);
|
|
62
65
|
const LENGTH_PCT_PROPS = [
|
|
63
66
|
"gap",
|
|
@@ -184,11 +187,21 @@ const PROPERTY_ACCEPTED_TYPES = new Map([
|
|
|
184
187
|
] }],
|
|
185
188
|
["font-family", { types: ["font-family"] }],
|
|
186
189
|
["transition-timing-function", { types: ["easing-function"] }],
|
|
187
|
-
["box-shadow", {
|
|
188
|
-
|
|
190
|
+
["box-shadow", {
|
|
191
|
+
types: ["shadow"],
|
|
192
|
+
literals: ["none"]
|
|
193
|
+
}],
|
|
194
|
+
["text-shadow", {
|
|
195
|
+
types: ["shadow"],
|
|
196
|
+
literals: ["none"]
|
|
197
|
+
}],
|
|
189
198
|
["list-style-image", { types: ["url", "image"] }],
|
|
190
199
|
["aspect-ratio", { types: ["ratio", "number"] }],
|
|
191
|
-
["opacity", { types: ["number", "percentage"] }]
|
|
200
|
+
["opacity", { types: ["number", "percentage"] }],
|
|
201
|
+
["z-index", {
|
|
202
|
+
types: ["integer", "number"],
|
|
203
|
+
literals: ["auto"]
|
|
204
|
+
}]
|
|
192
205
|
]);
|
|
193
206
|
/**
|
|
194
207
|
* Whether a token with the given detected value type AND raw string value
|
|
@@ -1,11 +1 @@
|
|
|
1
|
-
import { ConfigurableProp } from "@uds/types";
|
|
2
|
-
|
|
3
|
-
//#region ../config/dist/propertyGroups.d.ts
|
|
4
|
-
//#region src/propertyGroups.d.ts
|
|
5
|
-
type PropertyGroupId = 'textColor' | 'background' | 'borderColor' | 'outlineColor' | 'ringColor' | 'divideColor' | 'shadowColor' | 'svgFill' | 'svgStroke' | 'caretColor' | 'textDecorationColor' | 'opacity' | 'colorOpacity' | 'bgOpacity' | 'borderColorOpacity' | 'divideColorOpacity' | 'outlineColorOpacity' | 'ringColorOpacity' | 'textDecorationColorOpacity' | 'svgFillOpacity' | 'svgStrokeOpacity' | 'shadowColorOpacity' | 'caretColorOpacity' | 'fontFamily' | 'fontSize' | 'fontWeight' | 'lineHeight' | 'letterSpacing' | 'blur' | 'backdropBlur' | 'animation' | 'shadow' | 'textShadow' | 'zIndex' | 'borderWidth' | 'borderRadius' | 'outlineWidth' | 'divideWidth' | 'ringWidth' | 'padding' | 'margin' | 'offset' | 'gap' | 'indent' | 'scrollSnapGap' | 'scrollSnapSpacing' | 'tableBorderSpacing' | 'width' | 'height' | 'aspectRatio' | 'positionPlacement' | 'flex' | 'transform' | 'strokeWidth';
|
|
6
|
-
/**
|
|
7
|
-
* A logical grouping of ConfigurableProps with a human-readable label.
|
|
8
|
-
* Used by the Studio UI to let users scope token groups to specific properties.
|
|
9
|
-
*/
|
|
10
|
-
//#endregion
|
|
11
|
-
export { PropertyGroupId };
|
|
1
|
+
import { ConfigurableProp } from "@uds/types";
|
|
@@ -394,7 +394,7 @@ const ALL_PROPERTY_GROUPS = [
|
|
|
394
394
|
properties: ["strokeWidth"]
|
|
395
395
|
}
|
|
396
396
|
];
|
|
397
|
-
|
|
397
|
+
new Map(ALL_PROPERTY_GROUPS.map((g) => [g.id, g]));
|
|
398
398
|
const propToGroupId = /* @__PURE__ */ new Map();
|
|
399
399
|
for (const group of ALL_PROPERTY_GROUPS) for (const prop of group.properties) propToGroupId.set(prop, group.id);
|
|
400
400
|
const COLOR_GROUPS = [
|
|
@@ -411,22 +411,4 @@ const COLOR_GROUPS = [
|
|
|
411
411
|
"textDecorationColor"
|
|
412
412
|
];
|
|
413
413
|
[...COLOR_GROUPS], [...COLOR_GROUPS], [...COLOR_GROUPS];
|
|
414
|
-
/**
|
|
415
|
-
* Given an array of group IDs, returns the flat union of all their
|
|
416
|
-
* member ConfigurableProps (deduplicated).
|
|
417
|
-
*/
|
|
418
|
-
function expandPropertyGroups(groupIds) {
|
|
419
|
-
const seen = /* @__PURE__ */ new Set();
|
|
420
|
-
const result = [];
|
|
421
|
-
for (const id of groupIds) {
|
|
422
|
-
const group = groupById.get(id);
|
|
423
|
-
if (!group) continue;
|
|
424
|
-
for (const prop of group.properties) if (!seen.has(prop)) {
|
|
425
|
-
seen.add(prop);
|
|
426
|
-
result.push(prop);
|
|
427
|
-
}
|
|
428
|
-
}
|
|
429
|
-
return result;
|
|
430
|
-
}
|
|
431
414
|
//#endregion
|
|
432
|
-
export { expandPropertyGroups };
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { CssValueTypeName } from "./types/css-values.js";
|
|
2
2
|
import { ArbitrarySpec, StylePropMetadata } from "./defineStyleProp.js";
|
|
3
3
|
//#region ../config/dist/resolveStyleProp.d.ts
|
|
4
|
-
//#region src/resolveStyleProp.d.ts
|
|
5
4
|
interface ResolvedToken {
|
|
6
5
|
/** The token's raw key, e.g. `'brand'`. */
|
|
7
6
|
readonly name: string;
|
|
@@ -52,11 +51,5 @@ interface ResolvedStyleProp {
|
|
|
52
51
|
readonly arbitrary: ArbitrarySpec | undefined;
|
|
53
52
|
readonly metadata: StylePropMetadata;
|
|
54
53
|
}
|
|
55
|
-
/**
|
|
56
|
-
* Structurally-loose input shape for the resolver. Any `StyleProp<P>` from
|
|
57
|
-
* `defineStyleProp` is assignable to this. Defined locally so the
|
|
58
|
-
* resolver's signature doesn't expand `ValuesEntry<P>` over the full CSS
|
|
59
|
-
* property union (TS2590).
|
|
60
|
-
*/
|
|
61
54
|
//#endregion
|
|
62
55
|
export { ResolvedStyleProp, ResolvedToken };
|
|
@@ -69,8 +69,17 @@ function detectTokenValueType(token, group) {
|
|
|
69
69
|
const sniffed = sniffTokenTypeFromValue(token.value);
|
|
70
70
|
resolved = sniffed ? tokenTypeToValueType(sniffed) : void 0;
|
|
71
71
|
}
|
|
72
|
-
if (resolved === "length-percentage")
|
|
73
|
-
|
|
72
|
+
if (resolved === "length-percentage") {
|
|
73
|
+
const trimmed = token.value.trim();
|
|
74
|
+
if (trimmed.endsWith("%")) return "percentage";
|
|
75
|
+
if (/(deg|rad|grad|turn)$/.test(trimmed)) return "angle";
|
|
76
|
+
if (/(ms|s)$/.test(trimmed)) return "time";
|
|
77
|
+
return "length";
|
|
78
|
+
}
|
|
79
|
+
if (resolved === "string") {
|
|
80
|
+
if (looksLikeShadow(token.value)) return "shadow";
|
|
81
|
+
if (/^\d+(?:\.\d+)?\s*\/\s*\d+(?:\.\d+)?$/.test(token.value.trim())) return "ratio";
|
|
82
|
+
}
|
|
74
83
|
return resolved;
|
|
75
84
|
}
|
|
76
85
|
const REF_RE = /^\{([^.{}]+)(?:\.([^.{}]+))?\}$/;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { VarsConfig } from "./types.js";
|
|
2
|
+
import { AtomicToken, ExampleDef, ModeGroup, ModifierDef, MotionPresetsDef, UdsConfig } from "./createConfig.js";
|
|
2
3
|
import { CompositeStylesConfig } from "@uds/types";
|
|
3
4
|
|
|
4
5
|
//#region ../config/dist/serialize.d.ts
|
|
5
|
-
//#region src/serialize.d.ts
|
|
6
6
|
type ModifierNameShape = `_${string}`;
|
|
7
7
|
type TokenRef = {
|
|
8
8
|
$ref: string;
|
|
@@ -10,6 +10,14 @@ type TokenRef = {
|
|
|
10
10
|
interface SerializedConfig {
|
|
11
11
|
modes: ModeGroup[];
|
|
12
12
|
modifiers?: ModifierDef[];
|
|
13
|
+
/**
|
|
14
|
+
* Verbatim `defineVars` input. Authoritative source for CSS variable
|
|
15
|
+
* declarations downstream. `atomic` carries derived (property × token)
|
|
16
|
+
* data for utility-class generation; `vars` carries the original
|
|
17
|
+
* namespace-keyed input. New code should rely on `vars`; `atomic` is
|
|
18
|
+
* still emitted for legacy consumers.
|
|
19
|
+
*/
|
|
20
|
+
vars?: VarsConfig;
|
|
13
21
|
atomic: AtomicToken<ModifierNameShape>[];
|
|
14
22
|
compositeStyles?: CompositeStylesConfig;
|
|
15
23
|
/**
|
|
@@ -18,7 +26,6 @@ interface SerializedConfig {
|
|
|
18
26
|
* until they're rewritten. New code should populate `compositeStyles`.
|
|
19
27
|
*/
|
|
20
28
|
macros?: Record<string, Record<string, Record<string, unknown>>>;
|
|
21
|
-
arbitraryTokens?: ArbitraryTokenGroup[];
|
|
22
29
|
motion?: MotionPresetsDef;
|
|
23
30
|
components: SerializedComponentsDef;
|
|
24
31
|
globalStyles?: Record<string, Record<string, SerializedValue>>;
|
|
@@ -60,6 +67,6 @@ declare function serializeConfig(config: UdsConfig): SerializedConfig;
|
|
|
60
67
|
* Resolves `$ref` markers back to `var()` strings using the atomic token
|
|
61
68
|
* definitions, then reconstructs the builder chain.
|
|
62
69
|
*/
|
|
63
|
-
declare function deserializeConfig(data: SerializedConfig): UdsConfig;
|
|
70
|
+
declare function deserializeConfig(data: SerializedConfig): UdsConfig;
|
|
64
71
|
//#endregion
|
|
65
72
|
export { SerializedConfig, TokenRef, buildReverseMap, deserializeConfig, serializeConfig };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { safeTokenName } from "../../utils/dist/string-utils/cssVar.js";
|
|
2
2
|
import "../../utils/dist/index.js";
|
|
3
|
-
import { getConfigurablePropMapping } from "../../core/dist/
|
|
3
|
+
import { getConfigurablePropMapping } from "../../core/dist/configurable-prop-helpers.js";
|
|
4
4
|
import "../../core/dist/index.js";
|
|
5
5
|
import { buildTokenReference, createConfigBuilder, resolveConfig } from "./createConfig.js";
|
|
6
6
|
//#region ../config/dist/serialize.js
|
|
@@ -107,9 +107,9 @@ function serializeConfig(config) {
|
|
|
107
107
|
return {
|
|
108
108
|
modes: data.modes,
|
|
109
109
|
modifiers: data.modifiers.length > 0 ? data.modifiers : void 0,
|
|
110
|
+
vars: data.vars && Object.keys(data.vars).length > 0 ? data.vars : void 0,
|
|
110
111
|
atomic: data.atomic,
|
|
111
112
|
compositeStyles: Object.keys(data.compositeStyles).length > 0 ? data.compositeStyles : void 0,
|
|
112
|
-
arbitraryTokens: data.arbitraryTokens && data.arbitraryTokens.length > 0 ? data.arbitraryTokens : void 0,
|
|
113
113
|
motion: Object.keys(data.motion).length > 0 ? data.motion : void 0,
|
|
114
114
|
components,
|
|
115
115
|
globalStyles: Object.keys(globalStyles).length > 0 ? globalStyles : void 0,
|
|
@@ -150,13 +150,13 @@ function deserializeConfig(data) {
|
|
|
150
150
|
let config = createConfigBuilder({
|
|
151
151
|
modes: data.modes,
|
|
152
152
|
modifiers: data.modifiers ?? [],
|
|
153
|
+
vars: data.vars,
|
|
153
154
|
atomic: data.atomic,
|
|
154
155
|
compositeStyles: data.compositeStyles ?? upgradeLegacyMacros(data.macros),
|
|
155
156
|
motion: data.motion ?? {},
|
|
156
157
|
components,
|
|
157
158
|
preflight: data.preflight,
|
|
158
159
|
prefix: data.prefix ?? "uds",
|
|
159
|
-
arbitraryTokens: data.arbitraryTokens,
|
|
160
160
|
remotion: void 0,
|
|
161
161
|
globalStyles: {},
|
|
162
162
|
presetTokenNames: data.presetTokenNames
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
//#region ../config/dist/types/css-values.d.ts
|
|
2
|
-
//#region src/types/css-values.d.ts
|
|
3
2
|
/**
|
|
4
3
|
* CSS value-type primitives — building blocks used by {@link CssPropertyValues}
|
|
5
4
|
* in `./css-properties` and by `defineStyleProp` to constrain authored values.
|
|
@@ -56,6 +55,6 @@ type CssValue = {
|
|
|
56
55
|
ident: string;
|
|
57
56
|
string: string;
|
|
58
57
|
};
|
|
59
|
-
type CssValueTypeName = keyof CssValue;
|
|
58
|
+
type CssValueTypeName = keyof CssValue;
|
|
60
59
|
//#endregion
|
|
61
60
|
export { ColorFn, ColorKeyword, CssAngle, CssColor, CssLength, CssPercentage, CssRatio, CssTime, CssValue, CssValueTypeName, HexColor, HslColor, RgbColor };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
//#region ../config/dist/types.d.ts
|
|
2
|
-
//#region src/types.d.ts
|
|
3
2
|
/**
|
|
4
3
|
* Scalar DTCG-aligned token types. Composite types (shadow, gradient,
|
|
5
4
|
* typography, border, transition, cubicBezier) are intentionally deferred
|
|
@@ -60,6 +59,6 @@ type VarGroupDef<M extends `_${string}` = `_${string}`> = {
|
|
|
60
59
|
* spacing: { $type: 'dimension', 1: { value: '0.25rem' }, 2: { value: '0.5rem' } },
|
|
61
60
|
* }
|
|
62
61
|
*/
|
|
63
|
-
type VarsConfig<M extends `_${string}` = `_${string}`> = Record<string, VarGroupDef<M>>;
|
|
62
|
+
type VarsConfig<M extends `_${string}` = `_${string}`> = Record<string, VarGroupDef<M>>;
|
|
64
63
|
//#endregion
|
|
65
64
|
export { TokenType, VarGroupDef, VarTokenDef, VarsConfig };
|