@yahoo/uds-v5-wip 1.35.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 +55 -87
- package/dist/config/dist/createConfig.js +82 -158
- package/dist/config/dist/defineStyleProp.d.ts +45 -0
- package/dist/config/dist/defineStyleProp.js +25 -0
- package/dist/config/dist/index.d.ts +4 -2
- package/dist/config/dist/index.js +4 -3
- package/dist/config/dist/preset-merge.js +0 -12
- package/dist/config/dist/propertyAcceptedTypes.js +81 -9
- package/dist/config/dist/propertyGroups.d.ts +1 -11
- package/dist/config/dist/propertyGroups.js +1 -19
- package/dist/config/dist/resolveStyleProp.d.ts +55 -1
- package/dist/config/dist/resolveStyleProp.js +197 -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 +60 -0
- 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/configurable-prop-helpers.d.ts +32 -0
- package/dist/core/dist/configurable-prop-helpers.js +61 -0
- 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/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.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/motion.d.ts +1 -2
- 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 +573 -224
- package/dist/foundational-presets/dist/style-props.js +1384 -0
- package/dist/foundational-presets/dist/sunset.d.ts +573 -224
- package/dist/foundational-presets/dist/terminal.d.ts +573 -224
- package/dist/foundational-presets/dist/warmOrganic.d.ts +573 -224
- 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/package.json +3 -3
- package/dist/core/dist/propMappings.d.ts +0 -77
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yahoo/uds-v5-wip",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.36.1",
|
|
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.
|
|
123
|
-
"@uds/types": "npm:@yahoo/uds-v5-wip-types@1.
|
|
122
|
+
"@uds/cli": "npm:@yahoo/uds-v5-wip-cli@1.36.1",
|
|
123
|
+
"@uds/types": "npm:@yahoo/uds-v5-wip-types@1.36.1",
|
|
124
124
|
"clsx": "^2.1.1",
|
|
125
125
|
"react-day-picker": "^9.14.0",
|
|
126
126
|
"unplugin": "^3.0.0",
|
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
import { ConfigurableProp, ModifierProp, StyleProp } from "@uds/types";
|
|
2
|
-
|
|
3
|
-
//#region ../core/dist/propMappings.d.ts
|
|
4
|
-
//#region src/propMappings.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>;
|
|
32
|
-
/**
|
|
33
|
-
* Built-in modifier mappings (pseudo-classes, pseudo-elements, etc.).
|
|
34
|
-
* Custom modifiers from defineModes() are handled dynamically in the runtime.
|
|
35
|
-
*/
|
|
36
|
-
declare const modifierMappings: Record<ModifierProp, string>;
|
|
37
|
-
/** Look up a PropMapping by ConfigurableProp name */
|
|
38
|
-
declare function getConfigurablePropMapping(prop: ConfigurableProp): PropMapping | undefined;
|
|
39
|
-
interface ConfigurablePropertyEntry {
|
|
40
|
-
property: string;
|
|
41
|
-
subProperties: string[];
|
|
42
|
-
augmentType: string;
|
|
43
|
-
}
|
|
44
|
-
/**
|
|
45
|
-
* Derives the configurable properties table from propMappings.
|
|
46
|
-
* Groups props by augmentType — the primary prop is the one matching
|
|
47
|
-
* a ConfigurableProp name, the rest are sub-properties.
|
|
48
|
-
*/
|
|
49
|
-
declare function getConfigurableProperties(): ConfigurablePropertyEntry[];
|
|
50
|
-
interface CssVariablePrefixEntry {
|
|
51
|
-
property: string;
|
|
52
|
-
cssPrefix: string;
|
|
53
|
-
exampleVariable: string;
|
|
54
|
-
exampleUtility: string;
|
|
55
|
-
}
|
|
56
|
-
/**
|
|
57
|
-
* Derives the CSS variable prefix table from propMappings.
|
|
58
|
-
* Only includes props that have both cssProperty and defaultVarPrefix.
|
|
59
|
-
* Deduplicates by defaultVarPrefix so each namespace appears once.
|
|
60
|
-
*/
|
|
61
|
-
declare function getCssVariablePrefixes(): CssVariablePrefixEntry[];
|
|
62
|
-
interface ModifierEntry {
|
|
63
|
-
prop: string;
|
|
64
|
-
cssSelector: string;
|
|
65
|
-
category: string;
|
|
66
|
-
description: string;
|
|
67
|
-
}
|
|
68
|
-
/**
|
|
69
|
-
* Maps each color prop name to its corresponding opacity prop name.
|
|
70
|
-
* Used by runtime (getStyles) and loader (style-transform) to merge
|
|
71
|
-
* a color value with its opacity before class generation.
|
|
72
|
-
*
|
|
73
|
-
* e.g. `bg="primary"` + `bgOpacity="75"` → class `bg-primary_75`
|
|
74
|
-
*/
|
|
75
|
-
declare const colorPropToOpacityProp: Record<string, string>; //#endregion
|
|
76
|
-
//#endregion
|
|
77
|
-
export { ConfigurablePropertyEntry, CssVariablePrefixEntry, ModifierEntry, PropMapping, colorPropToOpacityProp, getConfigurablePropMapping, getConfigurableProperties, getCssVariablePrefixes, modifierMappings, propMappings };
|