@yahoo/uds 3.63.0 → 3.64.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 (99) hide show
  1. package/cli/FlattenButtonVariant.mock.tsx +17 -0
  2. package/dist/{chunk-BMEYNT3I.cjs → chunk-6THPHJSQ.cjs} +1 -1
  3. package/dist/{chunk-OJ34C7TH.js → chunk-7ODTLDW2.js} +1 -1
  4. package/dist/{chunk-32XAYN5U.js → chunk-7PDRKN2R.js} +1 -1
  5. package/dist/{chunk-IKI4PNSA.cjs → chunk-7YPLUG7X.cjs} +1 -1
  6. package/dist/chunk-A2OJLMOY.js +1 -0
  7. package/dist/chunk-A7OSNZQ4.cjs +1 -0
  8. package/dist/chunk-AZXEQF7C.js +2 -0
  9. package/dist/{chunk-7OQ3WLBH.cjs → chunk-BMP5TZVZ.cjs} +1 -1
  10. package/dist/chunk-BRM6VXBO.cjs +1 -0
  11. package/dist/chunk-C2XEOEF3.js +2 -0
  12. package/dist/{chunk-SJVQD4KS.cjs → chunk-CGHQHGYY.cjs} +1 -1
  13. package/dist/{chunk-MG47FUR3.js → chunk-DFLTCYEQ.js} +1 -1
  14. package/dist/chunk-E2KVZ3FW.cjs +1 -0
  15. package/dist/{chunk-GWJV5I3F.cjs → chunk-EUBXXJNQ.cjs} +1 -1
  16. package/dist/chunk-EUHS2LRV.js +2 -0
  17. package/dist/{chunk-GTIDXU7G.js → chunk-FEHICJMH.js} +3 -3
  18. package/dist/chunk-JY33SU6G.cjs +1 -0
  19. package/dist/{chunk-CRIHC5MO.cjs → chunk-JY5DPKJL.cjs} +1 -1
  20. package/dist/{chunk-2JEJLOXZ.cjs → chunk-KQYW7REL.cjs} +1 -1
  21. package/dist/{chunk-7OMILHOZ.js → chunk-LGVDORBF.js} +2 -2
  22. package/dist/{chunk-Q3DOZD3W.cjs → chunk-N2X6LD4P.cjs} +1 -1
  23. package/dist/{chunk-RAHLDYWR.cjs → chunk-O7H45A6H.cjs} +1 -1
  24. package/dist/chunk-O7UVSJ5U.js +2 -0
  25. package/dist/chunk-OSIGO5ER.cjs +1 -0
  26. package/dist/{chunk-T7QUF775.js → chunk-WEIHOHSB.js} +1 -1
  27. package/dist/{chunk-GXKAT72L.js → chunk-WTCFWBEP.js} +1 -1
  28. package/dist/{chunk-EBDMNVT7.js → chunk-XOHE32Q2.js} +1 -1
  29. package/dist/chunk-XRY2AFCC.js +2 -0
  30. package/dist/client/Menu.cjs +1 -1
  31. package/dist/client/Menu.js +2 -2
  32. package/dist/client/index.cjs +1 -1
  33. package/dist/client/index.js +1 -1
  34. package/dist/experimental/client/SwitchV2.cjs +1 -1
  35. package/dist/experimental/client/SwitchV2.js +2 -1
  36. package/dist/index.cjs +1 -1
  37. package/dist/index.d.cts +1 -1
  38. package/dist/index.d.ts +1 -1
  39. package/dist/index.js +1 -1
  40. package/dist/metafile-cjs.json +1 -1
  41. package/dist/metafile-esm.json +1 -1
  42. package/dist/tailwind/plugin.cjs +1 -1
  43. package/dist/tailwind/plugin.js +1 -1
  44. package/dist/tailwind/tsMorph.cjs +1 -1
  45. package/dist/tailwind/tsMorph.js +2 -2
  46. package/dist/tailwind/utils.cjs +1 -1
  47. package/dist/tailwind/utils.js +1 -1
  48. package/dist/tokens/automation/configs.cjs +1 -1
  49. package/dist/tokens/automation/configs.js +1 -1
  50. package/dist/tokens/automation/properties.cjs +1 -1
  51. package/dist/tokens/automation/properties.js +1 -1
  52. package/dist/tokens/index.cjs +1 -1
  53. package/dist/tokens/index.d.cts +17 -3
  54. package/dist/tokens/index.d.ts +17 -3
  55. package/dist/tokens/index.js +1 -1
  56. package/dist/tokens/parseTokens.cjs +1 -1
  57. package/dist/tokens/parseTokens.js +1 -1
  58. package/package.json +1 -1
  59. package/dist/Box--dJZH_rm.d.ts +0 -34
  60. package/dist/Box-Z1sx8kY_.d.cts +0 -34
  61. package/dist/Pressable-DiHQSTHz.d.ts +0 -44
  62. package/dist/Pressable-DtzH7hBC.d.cts +0 -44
  63. package/dist/Text-Dj2Pbxi_.d.cts +0 -88
  64. package/dist/Text-uefIU8bE.d.ts +0 -88
  65. package/dist/VStack-B6GYDqa0.d.ts +0 -83
  66. package/dist/VStack-BiJs2i59.d.cts +0 -83
  67. package/dist/chunk-47LL6BRB.js +0 -2
  68. package/dist/chunk-4UBSZT2O.js +0 -2
  69. package/dist/chunk-5F6Z5AGN.js +0 -1
  70. package/dist/chunk-5LANFL2P.cjs +0 -1
  71. package/dist/chunk-7SIWKGH2.cjs +0 -1
  72. package/dist/chunk-CWSY6N5I.cjs +0 -2
  73. package/dist/chunk-EDOI37SD.js +0 -2
  74. package/dist/chunk-H5XCZ4GM.js +0 -2
  75. package/dist/chunk-IF3Q6ZLU.js +0 -2
  76. package/dist/chunk-IZFEVJFL.js +0 -2
  77. package/dist/chunk-IZQVCLHT.js +0 -2
  78. package/dist/chunk-JHCOVVQY.js +0 -1
  79. package/dist/chunk-JJAQTXB2.js +0 -1
  80. package/dist/chunk-KPPL5RPJ.cjs +0 -1
  81. package/dist/chunk-NKJZNZ5C.cjs +0 -1
  82. package/dist/chunk-NZGIQ777.js +0 -2
  83. package/dist/chunk-O5ESGIUY.cjs +0 -1
  84. package/dist/chunk-OSOG57AW.cjs +0 -1
  85. package/dist/chunk-P6ZWWEX2.cjs +0 -2
  86. package/dist/chunk-R3FYD2UO.cjs +0 -1
  87. package/dist/chunk-SJ3HZL4S.cjs +0 -2
  88. package/dist/chunk-T2TI42FB.js +0 -2
  89. package/dist/chunk-U4NGJ3JN.cjs +0 -1
  90. package/dist/chunk-U7C4F57A.cjs +0 -1
  91. package/dist/chunk-VSFMVSGO.js +0 -2
  92. package/dist/chunk-WLBLQS3H.js +0 -3
  93. package/dist/chunk-WUBNTBF6.cjs +0 -1
  94. package/dist/chunk-XD7AYDPI.cjs +0 -1
  95. package/dist/chunk-YMQQ5JYM.js +0 -2
  96. package/dist/index-CF87-Wn8.d.ts +0 -251
  97. package/dist/index-M_d5Reyr.d.cts +0 -251
  98. package/dist/universalTokensConfigAuto-4Elh49mo.d.cts +0 -14334
  99. package/dist/universalTokensConfigAuto-4Elh49mo.d.ts +0 -14334
@@ -1,251 +0,0 @@
1
- import * as properties from '@yahoo/uds/fixtures';
2
- import { n as ShadowPreset, f as UniversalTokensConfig } from './universalTokensConfigAuto-4Elh49mo.cjs';
3
-
4
- type DispatchContext = {
5
- componentName: string;
6
- subComponentName?: string;
7
- propertyKey: string;
8
- layer: string;
9
- };
10
- interface ConfigurableProperty<T extends AllPossibleProperties, CVR = unknown> {
11
- name: string;
12
- cssProperties: string | string[];
13
- twThemePath: (selected: T, value: string) => string;
14
- possibleFixtures: T[];
15
- extendedProperties?: ExtendablePropertiesName[] | ((context: DispatchContext) => ExtendablePropertiesName[] | undefined | false);
16
- customValueRenderer?: (schemaStateValue: SchemaStateValue<CVR>, schema: unknown, themeGetter: (path: string) => string) => string;
17
- concatenate?: boolean;
18
- concatenationDelimiter?: string;
19
- }
20
- declare const publicProperties: {
21
- readonly backgroundColor: ConfigurableProperty<"backgroundPaletteColors" | "spectrumColors" | "alwaysPaletteAliases", unknown>;
22
- readonly borderWidth: ConfigurableProperty<"spacingAliases" | "borderWidths", unknown>;
23
- readonly borderRadius: ConfigurableProperty<"borderRadii", unknown>;
24
- readonly borderColor: ConfigurableProperty<"linePaletteColors" | "spectrumColors" | "alwaysPaletteAliases", unknown>;
25
- readonly fontFamily: ConfigurableProperty<"textVariants", unknown>;
26
- readonly fontSize: ConfigurableProperty<"textVariants", unknown>;
27
- readonly fontVariationSettings: ConfigurableProperty<"textVariants", unknown>;
28
- readonly lineHeight: ConfigurableProperty<"textVariants", unknown>;
29
- readonly textTransform: ConfigurableProperty<"textVariants", unknown>;
30
- readonly letterSpacing: ConfigurableProperty<"textVariants", unknown>;
31
- readonly padding: ConfigurableProperty<"spacingAliases", unknown>;
32
- readonly gap: ConfigurableProperty<"spacingAliases", unknown>;
33
- readonly color: ConfigurableProperty<"foregroundPaletteColors" | "spectrumColors" | "alwaysPaletteAliases", unknown>;
34
- readonly opacity: ConfigurableProperty<"opacitySteps", unknown>;
35
- readonly fontWeight: ConfigurableProperty<"textVariants", unknown>;
36
- readonly iconSize: ConfigurableProperty<"iconSizes", unknown>;
37
- readonly spacingHorizontal: ConfigurableProperty<"spacingAliases", unknown>;
38
- readonly spacingVertical: ConfigurableProperty<"spacingAliases", unknown>;
39
- readonly textVariant: ConfigurableProperty<"textVariants", unknown>;
40
- readonly textDecorationLine: ConfigurableProperty<"textDecorationLines", unknown>;
41
- readonly shadow: ConfigurableProperty<"shadowVariants", string | [] | [ShadowPreset] | [ShadowPreset, ShadowPreset] | [ShadowPreset, ShadowPreset, ShadowPreset]>;
42
- readonly insetShadow: ConfigurableProperty<"shadowVariantsWithInvert", string | [] | [ShadowPreset] | [ShadowPreset, ShadowPreset] | [ShadowPreset, ShadowPreset, ShadowPreset]>;
43
- readonly height: ConfigurableProperty<"spacingAliases", unknown>;
44
- readonly width: ConfigurableProperty<"spacingAliases", unknown>;
45
- readonly scaleEffect: ConfigurableProperty<"scaleEffects", unknown>;
46
- };
47
- declare const configurableProperties: {
48
- outlineWidth: ConfigurableProperty<"spacingAliases" | "borderWidths", unknown>;
49
- outlineColor: ConfigurableProperty<"linePaletteColors" | "spectrumColors" | "alwaysPaletteAliases", unknown>;
50
- insetOutlineOffset: ConfigurableProperty<"spacingAliases" | "borderWidths", unknown>;
51
- solidOutline: ConfigurableProperty<never, unknown>;
52
- backgroundColor: ConfigurableProperty<"backgroundPaletteColors" | "spectrumColors" | "alwaysPaletteAliases", unknown>;
53
- borderWidth: ConfigurableProperty<"spacingAliases" | "borderWidths", unknown>;
54
- borderRadius: ConfigurableProperty<"borderRadii", unknown>;
55
- borderColor: ConfigurableProperty<"linePaletteColors" | "spectrumColors" | "alwaysPaletteAliases", unknown>;
56
- fontFamily: ConfigurableProperty<"textVariants", unknown>;
57
- fontSize: ConfigurableProperty<"textVariants", unknown>;
58
- fontVariationSettings: ConfigurableProperty<"textVariants", unknown>;
59
- lineHeight: ConfigurableProperty<"textVariants", unknown>;
60
- textTransform: ConfigurableProperty<"textVariants", unknown>;
61
- letterSpacing: ConfigurableProperty<"textVariants", unknown>;
62
- padding: ConfigurableProperty<"spacingAliases", unknown>;
63
- gap: ConfigurableProperty<"spacingAliases", unknown>;
64
- color: ConfigurableProperty<"foregroundPaletteColors" | "spectrumColors" | "alwaysPaletteAliases", unknown>;
65
- opacity: ConfigurableProperty<"opacitySteps", unknown>;
66
- fontWeight: ConfigurableProperty<"textVariants", unknown>;
67
- iconSize: ConfigurableProperty<"iconSizes", unknown>;
68
- spacingHorizontal: ConfigurableProperty<"spacingAliases", unknown>;
69
- spacingVertical: ConfigurableProperty<"spacingAliases", unknown>;
70
- textVariant: ConfigurableProperty<"textVariants", unknown>;
71
- textDecorationLine: ConfigurableProperty<"textDecorationLines", unknown>;
72
- shadow: ConfigurableProperty<"shadowVariants", string | [] | [ShadowPreset] | [ShadowPreset, ShadowPreset] | [ShadowPreset, ShadowPreset, ShadowPreset]>;
73
- insetShadow: ConfigurableProperty<"shadowVariantsWithInvert", string | [] | [ShadowPreset] | [ShadowPreset, ShadowPreset] | [ShadowPreset, ShadowPreset, ShadowPreset]>;
74
- height: ConfigurableProperty<"spacingAliases", unknown>;
75
- width: ConfigurableProperty<"spacingAliases", unknown>;
76
- scaleEffect: ConfigurableProperty<"scaleEffects", unknown>;
77
- };
78
- type ExtendablePropertiesName = keyof typeof configurableProperties;
79
- type ConfigurablePropertiesName = keyof typeof publicProperties;
80
- interface SelectedConfigurableProperty<C extends ConfigurablePropertiesName, O extends string, T extends (typeof publicProperties)[C]['possibleFixtures'] = (typeof publicProperties)[C]['possibleFixtures'], V extends readonly (readonly string[])[] = readonly (readonly string[])[]> {
81
- label: string;
82
- name: C;
83
- typeOfFixture: T;
84
- values: V;
85
- skipRestState?: boolean;
86
- pseudoStates?: PossibleStates[];
87
- supportsCustom?: boolean;
88
- defaults: {
89
- [K in O]: V[number][number];
90
- };
91
- }
92
-
93
- type AllPossibleProperties = Exclude<keyof typeof properties, 'iconButtonSize' | 'iconButtonStates' | 'buttonIconSvgSize' | 'buttonPalettes' | 'buttonSizes' | 'buttonStates' | 'buttonVariants' | 'elevationLevels'> | 'shadowVariantConfig';
94
- type PossibleStates = 'hover' | 'pressed' | 'focused' | 'invalid' | 'focus-within' | 'focused-keyboard' | 'visited' | 'readonly' | 'disabled' | 'invalid&hover' | 'invalid&pressed';
95
- type PossibleStatesWithRest = 'rest' | PossibleStates;
96
- interface LayerConfig {
97
- label: string;
98
- properties: Readonly<Record<string, SelectedConfigurableProperty<ConfigurablePropertiesName, string>>>;
99
- pseudoSelector?: string;
100
- }
101
- interface ComponentStateConfig {
102
- label: string;
103
- options: string[];
104
- layers: {
105
- root: LayerConfig;
106
- } & Record<string, LayerConfig>;
107
- }
108
- interface SubComponentConfig {
109
- label: string;
110
- description: string;
111
- overrideComponentName?: string;
112
- variants: Record<string, VariantConfigWithProperties | VariantConfigWithComponentStates>;
113
- }
114
- interface VariantConfig<O extends string = string> {
115
- label: string;
116
- description: string;
117
- isConfigurable: boolean;
118
- default: O;
119
- options: readonly O[];
120
- }
121
- interface VariantConfigWithProperties<O extends string = string> extends VariantConfig<O> {
122
- layers: {
123
- root: LayerConfig;
124
- } & Record<string, LayerConfig>;
125
- }
126
- interface VariantConfigWithComponentStates<O extends string = string> extends VariantConfig<O> {
127
- componentStates?: Readonly<Record<string, ComponentStateConfig>>;
128
- }
129
- interface ComponentConfig {
130
- label: string;
131
- description: string;
132
- overrideComponentName?: string;
133
- subComponents?: Record<string, SubComponentConfig>;
134
- variants?: Record<string, VariantConfigWithProperties | VariantConfigWithComponentStates | VariantConfig>;
135
- }
136
- type AutoComponents = Omit<UniversalTokensConfig, 'colorMode' | 'font' | 'scaleMode' | 'version' | 'motion' | 'shadow' | 'breakpoints' | 'typography' | 'globalDefaults' | 'elevation'>;
137
- type AutoComponentName = keyof AutoComponents;
138
- type AllVariantKeys = {
139
- [K in keyof AutoComponents]: {
140
- [V in keyof AutoComponents[K]['defaults']]: V;
141
- }[keyof AutoComponents[K]['defaults']];
142
- }[keyof AutoComponents];
143
-
144
- type ThemeFn = (path: string) => string;
145
- type SchemaStateValue<T = any> = {
146
- type: string;
147
- valueType: 'alias' | 'custom';
148
- value: T;
149
- };
150
- declare const statePseudoMapDocsMode: Record<PossibleStates | 'rest', string>;
151
- declare function findFixtureType(property: SelectedConfigurableProperty<ConfigurablePropertiesName, string>, variantKey: string): string;
152
- declare function toMinimalDbConfigObject<C extends ComponentConfig>(config: C): any;
153
- declare function generateDefaultClassName(componentName: string, variantType: string, layerKey: string, subComponentName?: string): string;
154
- declare function generateClassName({ componentName, variantKey, variantValue, layer, layerOptionalPseudoSelector, subComponentName, stateKey, stateValue, }: {
155
- componentName: string;
156
- variantKey: string;
157
- variantValue?: string;
158
- layer: string;
159
- layerOptionalPseudoSelector?: string;
160
- subComponentName?: string;
161
- stateKey?: string;
162
- stateValue?: string;
163
- }): string;
164
- declare function generateDeclaration({ componentName, variantKey, variantValue, layer, layerOptionalPseudoSelector, subComponentName, stateKey, stateValue, schema, propertyKey, originalPropertyDefinition, theme, currentStyles, previewOptions, }: {
165
- componentName: string;
166
- variantKey: string;
167
- variantValue: string;
168
- layer: string;
169
- layerOptionalPseudoSelector?: string;
170
- subComponentName?: string;
171
- stateKey?: string;
172
- stateValue?: string;
173
- schema: unknown;
174
- propertyKey: string;
175
- originalPropertyDefinition: SelectedConfigurableProperty<ConfigurablePropertiesName, any>;
176
- theme: ThemeFn;
177
- currentStyles: Readonly<Record<string, Record<string, string>>>;
178
- previewOptions?: {
179
- generatePseudoStateClassModifier?: boolean;
180
- };
181
- }): Record<string, Record<string, string>>;
182
- declare function generateConfigStyles<C extends ComponentConfig>(config: C, schema: any, theme: ThemeFn, previewOptions?: {
183
- generatePseudoStateClassModifier: boolean;
184
- }): Record<string, Record<string, string>>;
185
- /**
186
- * @param config - Component configuration (Button, IconButton, etc.)
187
- * @param schema - Production schema with defaults and variables
188
- * @param theme - Tailwind theme function to resolve design tokens
189
- * @param previewOptions - Options for generating preview mode class modifiers
190
- * @returns CSS styles object with grouped selectors for default aliases
191
- */
192
- declare const generateStyles: (config: ComponentConfig, schema: any, theme: ThemeFn, previewOptions: {
193
- generatePseudoStateClassModifier: boolean;
194
- }) => Record<string, Record<string, string>>;
195
- declare function createConfigurableProperty<C extends ConfigurablePropertiesName, O extends string, T extends (typeof configurableProperties)[C]['possibleFixtures'], V extends readonly (readonly string[])[] = readonly (readonly string[])[]>(prop: {
196
- name: C;
197
- typeOfFixture: T;
198
- values: V;
199
- defaults: {
200
- [K in O]: V[number][number];
201
- };
202
- label: string;
203
- skipRestState?: boolean;
204
- pseudoStates?: PossibleStates[];
205
- supportsCustom?: boolean;
206
- }): SelectedConfigurableProperty<C, O, T, V>;
207
- declare function createVariantConfig(config: {
208
- label: string;
209
- description: string;
210
- isConfigurable: boolean;
211
- default: string;
212
- options: readonly string[];
213
- }): VariantConfig;
214
- declare function createVariantConfigWithProperties(config: {
215
- label: string;
216
- description: string;
217
- isConfigurable: boolean;
218
- default: string;
219
- options: readonly string[];
220
- layers: {
221
- root: LayerConfig;
222
- } & Record<string, LayerConfig>;
223
- }): VariantConfigWithProperties;
224
- declare function createVariantConfigWithComponentStates(config: {
225
- label: string;
226
- description: string;
227
- isConfigurable: boolean;
228
- default: string;
229
- options: readonly string[];
230
- componentStates: Record<string, ComponentStateConfig>;
231
- }): VariantConfigWithComponentStates;
232
- declare function createComponentStates(config: {
233
- label: string;
234
- options: string[];
235
- layers: {
236
- root: LayerConfig;
237
- } & Record<string, LayerConfig>;
238
- }): ComponentStateConfig;
239
- declare function createLayerConfig(config: {
240
- label: string;
241
- pseudoSelector?: string;
242
- properties: Readonly<Record<string, SelectedConfigurableProperty<ConfigurablePropertiesName, string>>>;
243
- }): LayerConfig;
244
- declare function createSubComponentConfig(config: {
245
- label: string;
246
- description: string;
247
- overrideComponentName?: string;
248
- variants: Record<string, VariantConfigWithProperties | VariantConfigWithComponentStates>;
249
- }): SubComponentConfig;
250
-
251
- export { type AllPossibleProperties as A, type ConfigurablePropertiesName as C, type ExtendablePropertiesName as E, type LayerConfig as L, type PossibleStates as P, type SelectedConfigurableProperty as S, type VariantConfig as V, type PossibleStatesWithRest as a, type ComponentStateConfig as b, configurableProperties as c, type SubComponentConfig as d, type VariantConfigWithProperties as e, type VariantConfigWithComponentStates as f, type ComponentConfig as g, type AutoComponents as h, type AutoComponentName as i, type AllVariantKeys as j, type SchemaStateValue as k, findFixtureType as l, generateDefaultClassName as m, generateClassName as n, generateDeclaration as o, generateConfigStyles as p, generateStyles as q, createConfigurableProperty as r, statePseudoMapDocsMode as s, toMinimalDbConfigObject as t, createVariantConfig as u, createVariantConfigWithProperties as v, createVariantConfigWithComponentStates as w, createComponentStates as x, createLayerConfig as y, createSubComponentConfig as z };