@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.
Files changed (95) 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 +55 -87
  6. package/dist/config/dist/createConfig.js +82 -158
  7. package/dist/config/dist/defineStyleProp.d.ts +45 -0
  8. package/dist/config/dist/defineStyleProp.js +25 -0
  9. package/dist/config/dist/index.d.ts +4 -2
  10. package/dist/config/dist/index.js +4 -3
  11. package/dist/config/dist/preset-merge.js +0 -12
  12. package/dist/config/dist/propertyAcceptedTypes.js +81 -9
  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 +55 -1
  16. package/dist/config/dist/resolveStyleProp.js +197 -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 +60 -0
  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/configurable-prop-helpers.d.ts +32 -0
  25. package/dist/core/dist/configurable-prop-helpers.js +61 -0
  26. package/dist/core/dist/getStyles.js +3 -1
  27. package/dist/core/dist/index.d.ts +4 -1
  28. package/dist/core/dist/index.js +4 -1
  29. package/dist/core/dist/modifier-mappings.d.ts +13 -0
  30. package/dist/core/dist/modifier-mappings.js +61 -0
  31. package/dist/core/dist/style-prop-data.d.ts +33 -0
  32. package/dist/{loader/dist/packages/core/dist/propMappings.js → core/dist/style-prop-data.js} +2 -93
  33. package/dist/core.d.ts +4 -1
  34. package/dist/core.js +4 -1
  35. package/dist/fixtures.d.ts +3 -1
  36. package/dist/fixtures.js +3 -1
  37. package/dist/foundational-presets/dist/boldVibrant.d.ts +573 -224
  38. package/dist/foundational-presets/dist/brutalist.d.ts +573 -224
  39. package/dist/foundational-presets/dist/candy.d.ts +573 -224
  40. package/dist/foundational-presets/dist/cleanMinimalist.d.ts +573 -224
  41. package/dist/foundational-presets/dist/corporate.d.ts +573 -224
  42. package/dist/foundational-presets/dist/darkMoody.d.ts +573 -224
  43. package/dist/foundational-presets/dist/defaultPreset.d.ts +197 -198
  44. package/dist/foundational-presets/dist/defaultPreset.js +2 -312
  45. package/dist/foundational-presets/dist/forest.d.ts +573 -224
  46. package/dist/foundational-presets/dist/highContrast.d.ts +573 -224
  47. package/dist/foundational-presets/dist/lavender.d.ts +573 -224
  48. package/dist/foundational-presets/dist/luxury.d.ts +573 -224
  49. package/dist/foundational-presets/dist/monochrome.d.ts +573 -224
  50. package/dist/foundational-presets/dist/motion.d.ts +1 -2
  51. package/dist/foundational-presets/dist/neonCyber.d.ts +573 -224
  52. package/dist/foundational-presets/dist/newspaper.d.ts +573 -224
  53. package/dist/foundational-presets/dist/ocean.d.ts +573 -224
  54. package/dist/foundational-presets/dist/slate.d.ts +573 -224
  55. package/dist/foundational-presets/dist/style-props.js +1384 -0
  56. package/dist/foundational-presets/dist/sunset.d.ts +573 -224
  57. package/dist/foundational-presets/dist/terminal.d.ts +573 -224
  58. package/dist/foundational-presets/dist/warmOrganic.d.ts +573 -224
  59. package/dist/loader/dist/loader/style-transform.js +2 -1
  60. package/dist/loader/dist/loader.d.ts +1 -2
  61. package/dist/loader/dist/next.d.ts +1 -2
  62. package/dist/loader/dist/packages/core/dist/color-opacity-map.js +33 -0
  63. package/dist/loader/dist/packages/core/dist/getStyles.js +3 -1
  64. package/dist/loader/dist/packages/core/dist/modifier-mappings.js +61 -0
  65. package/dist/{core/dist/propMappings.js → loader/dist/packages/core/dist/style-prop-data.js} +2 -150
  66. package/dist/presets/dist/boldVibrant.d.ts +1 -2
  67. package/dist/presets/dist/brutalist.d.ts +1 -2
  68. package/dist/presets/dist/candy.d.ts +1 -2
  69. package/dist/presets/dist/cleanMinimalist.d.ts +1 -2
  70. package/dist/presets/dist/corporate.d.ts +1 -2
  71. package/dist/presets/dist/darkMoody.d.ts +1 -2
  72. package/dist/presets/dist/defaultPreset.d.ts +1 -2
  73. package/dist/presets/dist/forest.d.ts +1 -2
  74. package/dist/presets/dist/highContrast.d.ts +1 -2
  75. package/dist/presets/dist/lavender.d.ts +1 -2
  76. package/dist/presets/dist/luxury.d.ts +1 -2
  77. package/dist/presets/dist/monochrome.d.ts +1 -2
  78. package/dist/presets/dist/neonCyber.d.ts +1 -2
  79. package/dist/presets/dist/newspaper.d.ts +1 -2
  80. package/dist/presets/dist/ocean.d.ts +1 -2
  81. package/dist/presets/dist/slate.d.ts +1 -2
  82. package/dist/presets/dist/sunset.d.ts +1 -2
  83. package/dist/presets/dist/terminal.d.ts +1 -2
  84. package/dist/presets/dist/warmOrganic.d.ts +1 -2
  85. package/dist/remotion/dist/components/image-slide.d.ts +1 -2
  86. package/dist/remotion/dist/components/lower-third.d.ts +1 -2
  87. package/dist/remotion/dist/components/quote-card.d.ts +1 -2
  88. package/dist/remotion/dist/components/split-screen.d.ts +1 -2
  89. package/dist/remotion/dist/components/stat-card.d.ts +1 -2
  90. package/dist/remotion/dist/components/text-overlay.d.ts +1 -2
  91. package/dist/remotion/dist/components/title-card.d.ts +1 -2
  92. package/dist/remotion/dist/components/typing-text.d.ts +1 -2
  93. package/dist/tsconfig.tsbuildinfo +1 -1
  94. package/package.json +3 -3
  95. 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.35.0",
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.35.0",
123
- "@uds/types": "npm:@yahoo/uds-v5-wip-types@1.35.0",
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 };