@yahoo/uds 3.48.0 → 3.49.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.
- package/cli/FlattenButtonVariant.mock.tsx +17 -0
- package/dist/{Box-MHJ0-0M3.d.ts → Box-Crrq6i4h.d.ts} +1 -1
- package/dist/{Box-BFRDyWaq.d.cts → Box-D3tacR6r.d.cts} +1 -1
- package/dist/Box-DSlj_nk4.d.ts +34 -0
- package/dist/Box-DpyU-coK.d.cts +34 -0
- package/dist/{Pressable-DVLHV--n.d.ts → Pressable-B6BLEH9a.d.ts} +1 -1
- package/dist/Pressable-B_tUxlD9.d.ts +44 -0
- package/dist/{Pressable-GdByxoJg.d.cts → Pressable-C1Csw_As.d.cts} +1 -1
- package/dist/Pressable-CSl68bNG.d.cts +44 -0
- package/dist/{Text-Buzrh-6W.d.cts → Text-BAHkYEiK.d.cts} +18 -2
- package/dist/{Text-Buzrh-6W.d.ts → Text-BAHkYEiK.d.ts} +18 -2
- package/dist/{Text-IGbWWF7a.d.ts → Text-BE_L9lP2.d.ts} +1 -1
- package/dist/{Text-Bq5NiVYm.d.cts → Text-CsOioZGs.d.cts} +1 -1
- package/dist/Text-CvY2JUUX.d.ts +88 -0
- package/dist/Text-DkshZZiK.d.cts +88 -0
- package/dist/{VStack-UmkAYRN1.d.cts → VStack-BkfbZYlc.d.cts} +2 -2
- package/dist/VStack-C33dVmTS.d.cts +83 -0
- package/dist/{VStack-CppUZHJL.d.ts → VStack-C5UmhjZX.d.ts} +2 -2
- package/dist/VStack-CJJ81YBr.d.ts +83 -0
- package/dist/chunk-3XMORCA6.cjs +1 -0
- package/dist/chunk-42TM364I.cjs +1 -0
- package/dist/chunk-4SWOQUGX.cjs +1 -0
- package/dist/chunk-53KBVJPZ.cjs +2 -0
- package/dist/chunk-6IIFFVGC.js +1 -0
- package/dist/chunk-6OLYHKI2.js +2 -0
- package/dist/chunk-7IYNK6VF.js +3 -0
- package/dist/chunk-D4G2CCD4.js +2 -0
- package/dist/chunk-D7XPTBPO.js +2 -0
- package/dist/chunk-HPXOQ4QK.js +1 -0
- package/dist/chunk-JD7PX7BB.cjs +2 -0
- package/dist/chunk-K7DHGT5F.cjs +1 -0
- package/dist/chunk-MEM4DBEJ.cjs +1 -0
- package/dist/chunk-ND5BLCNY.js +2 -0
- package/dist/chunk-O4TV6UVI.cjs +1 -0
- package/dist/chunk-QCLXCOEJ.js +2 -0
- package/dist/chunk-W7AQRGI5.cjs +1 -0
- package/dist/chunk-XWRSYGZJ.js +2 -0
- package/dist/client/Menu.d.cts +4 -4
- package/dist/client/Menu.d.ts +4 -4
- package/dist/client/index.d.cts +4 -4
- package/dist/client/index.d.ts +4 -4
- package/dist/defaultTokensConfig.d.cts +2 -2
- package/dist/defaultTokensConfig.d.ts +2 -2
- package/dist/experimental/client/SwitchV2.cjs +1 -0
- package/dist/experimental/client/SwitchV2.d.cts +1 -1
- package/dist/experimental/client/SwitchV2.d.ts +1 -1
- package/dist/experimental/client/SwitchV2.js +0 -1
- package/dist/experimental/client/index.d.cts +1 -1
- package/dist/experimental/client/index.d.ts +1 -1
- package/dist/experimental/index.d.cts +1 -1
- package/dist/experimental/index.d.ts +1 -1
- package/dist/{index-BnkxCwiE.d.cts → index-B7ouHsYr.d.cts} +1 -1
- package/dist/index-CaoWyj2K.d.cts +245 -0
- package/dist/index-CsCxUL1M.d.ts +245 -0
- package/dist/{index-DPrPpHqT.d.ts → index-cfPq3YHj.d.ts} +1 -1
- package/dist/index.d.cts +7 -7
- package/dist/index.d.ts +7 -7
- package/dist/metafile-cjs.json +1 -1
- package/dist/metafile-esm.json +1 -1
- package/dist/tailwind/plugin.d.cts +1 -1
- package/dist/tailwind/plugin.d.ts +1 -1
- package/dist/tailwind/utils.d.cts +1 -1
- package/dist/tailwind/utils.d.ts +1 -1
- package/dist/tokens/automation/configs.d.cts +2 -2
- package/dist/tokens/automation/configs.d.ts +2 -2
- package/dist/tokens/automation/properties.d.cts +2 -2
- package/dist/tokens/automation/properties.d.ts +2 -2
- package/dist/tokens/index.d.cts +4 -4
- package/dist/tokens/index.d.ts +4 -4
- package/dist/tokens/parseTokens.d.cts +1 -1
- package/dist/tokens/parseTokens.d.ts +1 -1
- package/dist/{types-Da_DnBJy.d.cts → types-Cx4ERyM0.d.cts} +18 -2
- package/dist/{types-Da_DnBJy.d.ts → types-Cx4ERyM0.d.ts} +18 -2
- package/dist/types-wpDRhNL7.d.cts +10605 -0
- package/dist/types-wpDRhNL7.d.ts +10605 -0
- package/package.json +1 -1
|
@@ -0,0 +1,245 @@
|
|
|
1
|
+
import * as properties from '@yahoo/uds/fixtures';
|
|
2
|
+
import { m as ShadowPreset, g as UniversalTokensConfig } from './types-wpDRhNL7.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 padding: ConfigurableProperty<"spacingAliases", unknown>;
|
|
31
|
+
readonly gap: ConfigurableProperty<"spacingAliases", unknown>;
|
|
32
|
+
readonly color: ConfigurableProperty<"foregroundPaletteColors" | "spectrumColors" | "alwaysPaletteAliases", unknown>;
|
|
33
|
+
readonly fontWeight: ConfigurableProperty<"textVariants", unknown>;
|
|
34
|
+
readonly iconSize: ConfigurableProperty<"iconSizes", unknown>;
|
|
35
|
+
readonly spacingHorizontal: ConfigurableProperty<"spacingAliases", unknown>;
|
|
36
|
+
readonly spacingVertical: ConfigurableProperty<"spacingAliases", unknown>;
|
|
37
|
+
readonly textVariant: ConfigurableProperty<"textVariants", unknown>;
|
|
38
|
+
readonly textDecorationLine: ConfigurableProperty<"textDecorationLines", unknown>;
|
|
39
|
+
readonly shadow: ConfigurableProperty<"shadowVariants", string | [] | [ShadowPreset] | [ShadowPreset, ShadowPreset] | [ShadowPreset, ShadowPreset, ShadowPreset]>;
|
|
40
|
+
readonly insetShadow: ConfigurableProperty<"shadowVariantsWithInvert", string | [] | [ShadowPreset] | [ShadowPreset, ShadowPreset] | [ShadowPreset, ShadowPreset, ShadowPreset]>;
|
|
41
|
+
readonly height: ConfigurableProperty<"spacingAliases", unknown>;
|
|
42
|
+
readonly width: ConfigurableProperty<"spacingAliases", unknown>;
|
|
43
|
+
};
|
|
44
|
+
declare const configurableProperties: {
|
|
45
|
+
outlineWidth: ConfigurableProperty<"spacingAliases" | "borderWidths", unknown>;
|
|
46
|
+
outlineColor: ConfigurableProperty<"linePaletteColors" | "spectrumColors" | "alwaysPaletteAliases", unknown>;
|
|
47
|
+
insetOutlineOffset: ConfigurableProperty<"spacingAliases" | "borderWidths", unknown>;
|
|
48
|
+
solidOutline: ConfigurableProperty<never, unknown>;
|
|
49
|
+
backgroundColor: ConfigurableProperty<"backgroundPaletteColors" | "spectrumColors" | "alwaysPaletteAliases", unknown>;
|
|
50
|
+
borderWidth: ConfigurableProperty<"spacingAliases" | "borderWidths", unknown>;
|
|
51
|
+
borderRadius: ConfigurableProperty<"borderRadii", unknown>;
|
|
52
|
+
borderColor: ConfigurableProperty<"linePaletteColors" | "spectrumColors" | "alwaysPaletteAliases", unknown>;
|
|
53
|
+
fontFamily: ConfigurableProperty<"textVariants", unknown>;
|
|
54
|
+
fontSize: ConfigurableProperty<"textVariants", unknown>;
|
|
55
|
+
fontVariationSettings: ConfigurableProperty<"textVariants", unknown>;
|
|
56
|
+
lineHeight: ConfigurableProperty<"textVariants", unknown>;
|
|
57
|
+
textTransform: ConfigurableProperty<"textVariants", unknown>;
|
|
58
|
+
padding: ConfigurableProperty<"spacingAliases", unknown>;
|
|
59
|
+
gap: ConfigurableProperty<"spacingAliases", unknown>;
|
|
60
|
+
color: ConfigurableProperty<"foregroundPaletteColors" | "spectrumColors" | "alwaysPaletteAliases", unknown>;
|
|
61
|
+
fontWeight: ConfigurableProperty<"textVariants", unknown>;
|
|
62
|
+
iconSize: ConfigurableProperty<"iconSizes", unknown>;
|
|
63
|
+
spacingHorizontal: ConfigurableProperty<"spacingAliases", unknown>;
|
|
64
|
+
spacingVertical: ConfigurableProperty<"spacingAliases", unknown>;
|
|
65
|
+
textVariant: ConfigurableProperty<"textVariants", unknown>;
|
|
66
|
+
textDecorationLine: ConfigurableProperty<"textDecorationLines", unknown>;
|
|
67
|
+
shadow: ConfigurableProperty<"shadowVariants", string | [] | [ShadowPreset] | [ShadowPreset, ShadowPreset] | [ShadowPreset, ShadowPreset, ShadowPreset]>;
|
|
68
|
+
insetShadow: ConfigurableProperty<"shadowVariantsWithInvert", string | [] | [ShadowPreset] | [ShadowPreset, ShadowPreset] | [ShadowPreset, ShadowPreset, ShadowPreset]>;
|
|
69
|
+
height: ConfigurableProperty<"spacingAliases", unknown>;
|
|
70
|
+
width: ConfigurableProperty<"spacingAliases", unknown>;
|
|
71
|
+
};
|
|
72
|
+
type ExtendablePropertiesName = keyof typeof configurableProperties;
|
|
73
|
+
type ConfigurablePropertiesName = keyof typeof publicProperties;
|
|
74
|
+
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[])[]> {
|
|
75
|
+
label: string;
|
|
76
|
+
name: C;
|
|
77
|
+
typeOfFixture: T;
|
|
78
|
+
values: V;
|
|
79
|
+
pseudoStates?: PossibleStates[];
|
|
80
|
+
supportsCustom?: boolean;
|
|
81
|
+
defaults: {
|
|
82
|
+
[K in O]: V[number][number];
|
|
83
|
+
};
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
type AllPossibleProperties = Exclude<keyof typeof properties, 'iconButtonClassNames' | 'iconButtonSize' | 'iconButtonStates' | 'buttonClassNames' | 'buttonColorProperties' | 'buttonIconSvgSize' | 'buttonKinds' | 'buttonMotionEffects' | 'buttonMotionProperties' | 'buttonPalettes' | 'buttonSizeProperties' | 'buttonSizes' | 'buttonStates' | 'buttonVariants'> | 'shadowVariantConfig';
|
|
87
|
+
type PossibleStates = 'hover' | 'pressed' | 'focused' | 'invalid' | 'focus-within' | 'focused-keyboard' | 'visited' | 'readonly' | 'disabled' | 'invalid&hover' | 'invalid&pressed';
|
|
88
|
+
type PossibleStatesWithRest = 'rest' | PossibleStates;
|
|
89
|
+
interface LayerConfig {
|
|
90
|
+
label: string;
|
|
91
|
+
properties: Readonly<Record<string, SelectedConfigurableProperty<ConfigurablePropertiesName, string>>>;
|
|
92
|
+
pseudoSelector?: string;
|
|
93
|
+
}
|
|
94
|
+
interface ComponentStateConfig {
|
|
95
|
+
label: string;
|
|
96
|
+
options: string[];
|
|
97
|
+
layers: {
|
|
98
|
+
root: LayerConfig;
|
|
99
|
+
} & Record<string, LayerConfig>;
|
|
100
|
+
}
|
|
101
|
+
interface SubComponentConfig {
|
|
102
|
+
label: string;
|
|
103
|
+
description: string;
|
|
104
|
+
overrideComponentName?: string;
|
|
105
|
+
variants: Record<string, VariantConfigWithProperties | VariantConfigWithComponentStates>;
|
|
106
|
+
}
|
|
107
|
+
interface VariantConfig<O extends string = string> {
|
|
108
|
+
label: string;
|
|
109
|
+
description: string;
|
|
110
|
+
isConfigurable: boolean;
|
|
111
|
+
default: O;
|
|
112
|
+
options: readonly O[];
|
|
113
|
+
}
|
|
114
|
+
interface VariantConfigWithProperties<O extends string = string> extends VariantConfig<O> {
|
|
115
|
+
layers: {
|
|
116
|
+
root: LayerConfig;
|
|
117
|
+
} & Record<string, LayerConfig>;
|
|
118
|
+
}
|
|
119
|
+
interface VariantConfigWithComponentStates<O extends string = string> extends VariantConfig<O> {
|
|
120
|
+
componentStates?: Readonly<Record<string, ComponentStateConfig>>;
|
|
121
|
+
}
|
|
122
|
+
interface ComponentConfig {
|
|
123
|
+
label: string;
|
|
124
|
+
description: string;
|
|
125
|
+
overrideComponentName?: string;
|
|
126
|
+
subComponents?: Record<string, SubComponentConfig>;
|
|
127
|
+
variants?: Record<string, VariantConfigWithProperties | VariantConfigWithComponentStates>;
|
|
128
|
+
}
|
|
129
|
+
type AutoComponents = Omit<UniversalTokensConfig, 'colorMode' | 'font' | 'scaleMode' | 'version' | 'motion' | 'button' | 'iconButton' | 'shadow' | 'breakpoints' | 'typography' | 'globalDefaults'>;
|
|
130
|
+
type AutoComponentName = keyof AutoComponents;
|
|
131
|
+
type AllVariantKeys = {
|
|
132
|
+
[K in keyof AutoComponents]: {
|
|
133
|
+
[V in keyof AutoComponents[K]['defaults']]: V;
|
|
134
|
+
}[keyof AutoComponents[K]['defaults']];
|
|
135
|
+
}[keyof AutoComponents];
|
|
136
|
+
|
|
137
|
+
type ThemeFn = (path: string) => string;
|
|
138
|
+
type SchemaStateValue<T = any> = {
|
|
139
|
+
type: string;
|
|
140
|
+
valueType: 'alias' | 'custom';
|
|
141
|
+
value: T;
|
|
142
|
+
};
|
|
143
|
+
declare const statePseudoMapDocsMode: Record<PossibleStates | 'rest', string>;
|
|
144
|
+
declare function findFixtureType(property: SelectedConfigurableProperty<ConfigurablePropertiesName, string>, variantKey: string): string;
|
|
145
|
+
declare function toMinimalDbConfigObject<C extends ComponentConfig>(config: C): any;
|
|
146
|
+
declare function generateClassName({ componentName, variantKey, variantValue, layer, layerOptionalPseudoSelector, subComponentName, stateKey, stateValue, }: {
|
|
147
|
+
componentName: string;
|
|
148
|
+
variantKey: string;
|
|
149
|
+
variantValue?: string;
|
|
150
|
+
layer: string;
|
|
151
|
+
layerOptionalPseudoSelector?: string;
|
|
152
|
+
subComponentName?: string;
|
|
153
|
+
stateKey?: string;
|
|
154
|
+
stateValue?: string;
|
|
155
|
+
}): string;
|
|
156
|
+
declare function generateDeclaration({ componentName, variantKey, variantValue, layer, layerOptionalPseudoSelector, subComponentName, stateKey, stateValue, schema, propertyKey, originalPropertyDefinition, theme, currentStyles, previewOptions, }: {
|
|
157
|
+
componentName: string;
|
|
158
|
+
variantKey: string;
|
|
159
|
+
variantValue: string;
|
|
160
|
+
layer: string;
|
|
161
|
+
layerOptionalPseudoSelector?: string;
|
|
162
|
+
subComponentName?: string;
|
|
163
|
+
stateKey?: string;
|
|
164
|
+
stateValue?: string;
|
|
165
|
+
schema: unknown;
|
|
166
|
+
propertyKey: string;
|
|
167
|
+
originalPropertyDefinition: SelectedConfigurableProperty<ConfigurablePropertiesName, any>;
|
|
168
|
+
theme: ThemeFn;
|
|
169
|
+
currentStyles: Readonly<Record<string, Record<string, string>>>;
|
|
170
|
+
previewOptions?: {
|
|
171
|
+
generatePseudoStateClassModifier?: boolean;
|
|
172
|
+
forcePseudoState?: boolean;
|
|
173
|
+
};
|
|
174
|
+
}): Record<string, Record<string, string>>;
|
|
175
|
+
declare function generateStyles<C extends ComponentConfig>(config: C, schema: any, theme: ThemeFn, previewOptions?: {
|
|
176
|
+
generatePseudoStateClassModifier: boolean;
|
|
177
|
+
forcePseudoState: boolean;
|
|
178
|
+
}): Record<string, Record<string, string>>;
|
|
179
|
+
declare function createConfigurableProperty<C extends ConfigurablePropertiesName, O extends string, T extends (typeof configurableProperties)[C]['possibleFixtures'], V extends readonly (readonly string[])[] = readonly (readonly string[])[]>(prop: {
|
|
180
|
+
name: C;
|
|
181
|
+
typeOfFixture: T;
|
|
182
|
+
values: V;
|
|
183
|
+
defaults: {
|
|
184
|
+
[K in O]: V[number][number];
|
|
185
|
+
};
|
|
186
|
+
label: string;
|
|
187
|
+
pseudoStates?: PossibleStates[];
|
|
188
|
+
supportsCustom?: boolean;
|
|
189
|
+
}): SelectedConfigurableProperty<C, O, T, V>;
|
|
190
|
+
/**
|
|
191
|
+
* @deprecated use the new functions instead
|
|
192
|
+
*/
|
|
193
|
+
declare function createVariantConfig<O extends string, T extends Record<string, SelectedConfigurableProperty<ConfigurablePropertiesName, O>>>(config: {
|
|
194
|
+
label: string;
|
|
195
|
+
description: string;
|
|
196
|
+
isConfigurable: boolean;
|
|
197
|
+
default: O;
|
|
198
|
+
options: readonly O[];
|
|
199
|
+
properties: T;
|
|
200
|
+
}): VariantConfig<O>;
|
|
201
|
+
declare function createComponentStateConfig(config: {
|
|
202
|
+
label: string;
|
|
203
|
+
options: string[];
|
|
204
|
+
layers: {
|
|
205
|
+
root: LayerConfig;
|
|
206
|
+
} & Record<string, LayerConfig>;
|
|
207
|
+
}): ComponentStateConfig;
|
|
208
|
+
declare function createVariantConfigWithProperties(config: {
|
|
209
|
+
label: string;
|
|
210
|
+
description: string;
|
|
211
|
+
isConfigurable: boolean;
|
|
212
|
+
default: string;
|
|
213
|
+
options: readonly string[];
|
|
214
|
+
layers: {
|
|
215
|
+
root: LayerConfig;
|
|
216
|
+
} & Record<string, LayerConfig>;
|
|
217
|
+
}): VariantConfigWithProperties;
|
|
218
|
+
declare function createVariantConfigWithComponentStates(config: {
|
|
219
|
+
label: string;
|
|
220
|
+
description: string;
|
|
221
|
+
isConfigurable: boolean;
|
|
222
|
+
default: string;
|
|
223
|
+
options: readonly string[];
|
|
224
|
+
componentStates: Record<string, ComponentStateConfig>;
|
|
225
|
+
}): VariantConfigWithComponentStates;
|
|
226
|
+
declare function createComponentStates(config: {
|
|
227
|
+
label: string;
|
|
228
|
+
options: string[];
|
|
229
|
+
layers: {
|
|
230
|
+
root: LayerConfig;
|
|
231
|
+
} & Record<string, LayerConfig>;
|
|
232
|
+
}): ComponentStateConfig;
|
|
233
|
+
declare function createLayerConfig(config: {
|
|
234
|
+
label: string;
|
|
235
|
+
pseudoSelector?: string;
|
|
236
|
+
properties: Readonly<Record<string, SelectedConfigurableProperty<ConfigurablePropertiesName, string>>>;
|
|
237
|
+
}): LayerConfig;
|
|
238
|
+
declare function createSubComponentConfig(config: {
|
|
239
|
+
label: string;
|
|
240
|
+
description: string;
|
|
241
|
+
overrideComponentName?: string;
|
|
242
|
+
variants: Record<string, VariantConfigWithProperties | VariantConfigWithComponentStates>;
|
|
243
|
+
}): SubComponentConfig;
|
|
244
|
+
|
|
245
|
+
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, generateClassName as m, generateDeclaration as n, generateStyles as o, createConfigurableProperty as p, createVariantConfig as q, createComponentStateConfig as r, statePseudoMapDocsMode as s, toMinimalDbConfigObject as t, createVariantConfigWithProperties as u, createVariantConfigWithComponentStates as v, createComponentStates as w, createLayerConfig as x, createSubComponentConfig as y };
|
|
@@ -0,0 +1,245 @@
|
|
|
1
|
+
import * as properties from '@yahoo/uds/fixtures';
|
|
2
|
+
import { m as ShadowPreset, g as UniversalTokensConfig } from './types-wpDRhNL7.js';
|
|
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 padding: ConfigurableProperty<"spacingAliases", unknown>;
|
|
31
|
+
readonly gap: ConfigurableProperty<"spacingAliases", unknown>;
|
|
32
|
+
readonly color: ConfigurableProperty<"foregroundPaletteColors" | "spectrumColors" | "alwaysPaletteAliases", unknown>;
|
|
33
|
+
readonly fontWeight: ConfigurableProperty<"textVariants", unknown>;
|
|
34
|
+
readonly iconSize: ConfigurableProperty<"iconSizes", unknown>;
|
|
35
|
+
readonly spacingHorizontal: ConfigurableProperty<"spacingAliases", unknown>;
|
|
36
|
+
readonly spacingVertical: ConfigurableProperty<"spacingAliases", unknown>;
|
|
37
|
+
readonly textVariant: ConfigurableProperty<"textVariants", unknown>;
|
|
38
|
+
readonly textDecorationLine: ConfigurableProperty<"textDecorationLines", unknown>;
|
|
39
|
+
readonly shadow: ConfigurableProperty<"shadowVariants", string | [] | [ShadowPreset] | [ShadowPreset, ShadowPreset] | [ShadowPreset, ShadowPreset, ShadowPreset]>;
|
|
40
|
+
readonly insetShadow: ConfigurableProperty<"shadowVariantsWithInvert", string | [] | [ShadowPreset] | [ShadowPreset, ShadowPreset] | [ShadowPreset, ShadowPreset, ShadowPreset]>;
|
|
41
|
+
readonly height: ConfigurableProperty<"spacingAliases", unknown>;
|
|
42
|
+
readonly width: ConfigurableProperty<"spacingAliases", unknown>;
|
|
43
|
+
};
|
|
44
|
+
declare const configurableProperties: {
|
|
45
|
+
outlineWidth: ConfigurableProperty<"spacingAliases" | "borderWidths", unknown>;
|
|
46
|
+
outlineColor: ConfigurableProperty<"linePaletteColors" | "spectrumColors" | "alwaysPaletteAliases", unknown>;
|
|
47
|
+
insetOutlineOffset: ConfigurableProperty<"spacingAliases" | "borderWidths", unknown>;
|
|
48
|
+
solidOutline: ConfigurableProperty<never, unknown>;
|
|
49
|
+
backgroundColor: ConfigurableProperty<"backgroundPaletteColors" | "spectrumColors" | "alwaysPaletteAliases", unknown>;
|
|
50
|
+
borderWidth: ConfigurableProperty<"spacingAliases" | "borderWidths", unknown>;
|
|
51
|
+
borderRadius: ConfigurableProperty<"borderRadii", unknown>;
|
|
52
|
+
borderColor: ConfigurableProperty<"linePaletteColors" | "spectrumColors" | "alwaysPaletteAliases", unknown>;
|
|
53
|
+
fontFamily: ConfigurableProperty<"textVariants", unknown>;
|
|
54
|
+
fontSize: ConfigurableProperty<"textVariants", unknown>;
|
|
55
|
+
fontVariationSettings: ConfigurableProperty<"textVariants", unknown>;
|
|
56
|
+
lineHeight: ConfigurableProperty<"textVariants", unknown>;
|
|
57
|
+
textTransform: ConfigurableProperty<"textVariants", unknown>;
|
|
58
|
+
padding: ConfigurableProperty<"spacingAliases", unknown>;
|
|
59
|
+
gap: ConfigurableProperty<"spacingAliases", unknown>;
|
|
60
|
+
color: ConfigurableProperty<"foregroundPaletteColors" | "spectrumColors" | "alwaysPaletteAliases", unknown>;
|
|
61
|
+
fontWeight: ConfigurableProperty<"textVariants", unknown>;
|
|
62
|
+
iconSize: ConfigurableProperty<"iconSizes", unknown>;
|
|
63
|
+
spacingHorizontal: ConfigurableProperty<"spacingAliases", unknown>;
|
|
64
|
+
spacingVertical: ConfigurableProperty<"spacingAliases", unknown>;
|
|
65
|
+
textVariant: ConfigurableProperty<"textVariants", unknown>;
|
|
66
|
+
textDecorationLine: ConfigurableProperty<"textDecorationLines", unknown>;
|
|
67
|
+
shadow: ConfigurableProperty<"shadowVariants", string | [] | [ShadowPreset] | [ShadowPreset, ShadowPreset] | [ShadowPreset, ShadowPreset, ShadowPreset]>;
|
|
68
|
+
insetShadow: ConfigurableProperty<"shadowVariantsWithInvert", string | [] | [ShadowPreset] | [ShadowPreset, ShadowPreset] | [ShadowPreset, ShadowPreset, ShadowPreset]>;
|
|
69
|
+
height: ConfigurableProperty<"spacingAliases", unknown>;
|
|
70
|
+
width: ConfigurableProperty<"spacingAliases", unknown>;
|
|
71
|
+
};
|
|
72
|
+
type ExtendablePropertiesName = keyof typeof configurableProperties;
|
|
73
|
+
type ConfigurablePropertiesName = keyof typeof publicProperties;
|
|
74
|
+
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[])[]> {
|
|
75
|
+
label: string;
|
|
76
|
+
name: C;
|
|
77
|
+
typeOfFixture: T;
|
|
78
|
+
values: V;
|
|
79
|
+
pseudoStates?: PossibleStates[];
|
|
80
|
+
supportsCustom?: boolean;
|
|
81
|
+
defaults: {
|
|
82
|
+
[K in O]: V[number][number];
|
|
83
|
+
};
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
type AllPossibleProperties = Exclude<keyof typeof properties, 'iconButtonClassNames' | 'iconButtonSize' | 'iconButtonStates' | 'buttonClassNames' | 'buttonColorProperties' | 'buttonIconSvgSize' | 'buttonKinds' | 'buttonMotionEffects' | 'buttonMotionProperties' | 'buttonPalettes' | 'buttonSizeProperties' | 'buttonSizes' | 'buttonStates' | 'buttonVariants'> | 'shadowVariantConfig';
|
|
87
|
+
type PossibleStates = 'hover' | 'pressed' | 'focused' | 'invalid' | 'focus-within' | 'focused-keyboard' | 'visited' | 'readonly' | 'disabled' | 'invalid&hover' | 'invalid&pressed';
|
|
88
|
+
type PossibleStatesWithRest = 'rest' | PossibleStates;
|
|
89
|
+
interface LayerConfig {
|
|
90
|
+
label: string;
|
|
91
|
+
properties: Readonly<Record<string, SelectedConfigurableProperty<ConfigurablePropertiesName, string>>>;
|
|
92
|
+
pseudoSelector?: string;
|
|
93
|
+
}
|
|
94
|
+
interface ComponentStateConfig {
|
|
95
|
+
label: string;
|
|
96
|
+
options: string[];
|
|
97
|
+
layers: {
|
|
98
|
+
root: LayerConfig;
|
|
99
|
+
} & Record<string, LayerConfig>;
|
|
100
|
+
}
|
|
101
|
+
interface SubComponentConfig {
|
|
102
|
+
label: string;
|
|
103
|
+
description: string;
|
|
104
|
+
overrideComponentName?: string;
|
|
105
|
+
variants: Record<string, VariantConfigWithProperties | VariantConfigWithComponentStates>;
|
|
106
|
+
}
|
|
107
|
+
interface VariantConfig<O extends string = string> {
|
|
108
|
+
label: string;
|
|
109
|
+
description: string;
|
|
110
|
+
isConfigurable: boolean;
|
|
111
|
+
default: O;
|
|
112
|
+
options: readonly O[];
|
|
113
|
+
}
|
|
114
|
+
interface VariantConfigWithProperties<O extends string = string> extends VariantConfig<O> {
|
|
115
|
+
layers: {
|
|
116
|
+
root: LayerConfig;
|
|
117
|
+
} & Record<string, LayerConfig>;
|
|
118
|
+
}
|
|
119
|
+
interface VariantConfigWithComponentStates<O extends string = string> extends VariantConfig<O> {
|
|
120
|
+
componentStates?: Readonly<Record<string, ComponentStateConfig>>;
|
|
121
|
+
}
|
|
122
|
+
interface ComponentConfig {
|
|
123
|
+
label: string;
|
|
124
|
+
description: string;
|
|
125
|
+
overrideComponentName?: string;
|
|
126
|
+
subComponents?: Record<string, SubComponentConfig>;
|
|
127
|
+
variants?: Record<string, VariantConfigWithProperties | VariantConfigWithComponentStates>;
|
|
128
|
+
}
|
|
129
|
+
type AutoComponents = Omit<UniversalTokensConfig, 'colorMode' | 'font' | 'scaleMode' | 'version' | 'motion' | 'button' | 'iconButton' | 'shadow' | 'breakpoints' | 'typography' | 'globalDefaults'>;
|
|
130
|
+
type AutoComponentName = keyof AutoComponents;
|
|
131
|
+
type AllVariantKeys = {
|
|
132
|
+
[K in keyof AutoComponents]: {
|
|
133
|
+
[V in keyof AutoComponents[K]['defaults']]: V;
|
|
134
|
+
}[keyof AutoComponents[K]['defaults']];
|
|
135
|
+
}[keyof AutoComponents];
|
|
136
|
+
|
|
137
|
+
type ThemeFn = (path: string) => string;
|
|
138
|
+
type SchemaStateValue<T = any> = {
|
|
139
|
+
type: string;
|
|
140
|
+
valueType: 'alias' | 'custom';
|
|
141
|
+
value: T;
|
|
142
|
+
};
|
|
143
|
+
declare const statePseudoMapDocsMode: Record<PossibleStates | 'rest', string>;
|
|
144
|
+
declare function findFixtureType(property: SelectedConfigurableProperty<ConfigurablePropertiesName, string>, variantKey: string): string;
|
|
145
|
+
declare function toMinimalDbConfigObject<C extends ComponentConfig>(config: C): any;
|
|
146
|
+
declare function generateClassName({ componentName, variantKey, variantValue, layer, layerOptionalPseudoSelector, subComponentName, stateKey, stateValue, }: {
|
|
147
|
+
componentName: string;
|
|
148
|
+
variantKey: string;
|
|
149
|
+
variantValue?: string;
|
|
150
|
+
layer: string;
|
|
151
|
+
layerOptionalPseudoSelector?: string;
|
|
152
|
+
subComponentName?: string;
|
|
153
|
+
stateKey?: string;
|
|
154
|
+
stateValue?: string;
|
|
155
|
+
}): string;
|
|
156
|
+
declare function generateDeclaration({ componentName, variantKey, variantValue, layer, layerOptionalPseudoSelector, subComponentName, stateKey, stateValue, schema, propertyKey, originalPropertyDefinition, theme, currentStyles, previewOptions, }: {
|
|
157
|
+
componentName: string;
|
|
158
|
+
variantKey: string;
|
|
159
|
+
variantValue: string;
|
|
160
|
+
layer: string;
|
|
161
|
+
layerOptionalPseudoSelector?: string;
|
|
162
|
+
subComponentName?: string;
|
|
163
|
+
stateKey?: string;
|
|
164
|
+
stateValue?: string;
|
|
165
|
+
schema: unknown;
|
|
166
|
+
propertyKey: string;
|
|
167
|
+
originalPropertyDefinition: SelectedConfigurableProperty<ConfigurablePropertiesName, any>;
|
|
168
|
+
theme: ThemeFn;
|
|
169
|
+
currentStyles: Readonly<Record<string, Record<string, string>>>;
|
|
170
|
+
previewOptions?: {
|
|
171
|
+
generatePseudoStateClassModifier?: boolean;
|
|
172
|
+
forcePseudoState?: boolean;
|
|
173
|
+
};
|
|
174
|
+
}): Record<string, Record<string, string>>;
|
|
175
|
+
declare function generateStyles<C extends ComponentConfig>(config: C, schema: any, theme: ThemeFn, previewOptions?: {
|
|
176
|
+
generatePseudoStateClassModifier: boolean;
|
|
177
|
+
forcePseudoState: boolean;
|
|
178
|
+
}): Record<string, Record<string, string>>;
|
|
179
|
+
declare function createConfigurableProperty<C extends ConfigurablePropertiesName, O extends string, T extends (typeof configurableProperties)[C]['possibleFixtures'], V extends readonly (readonly string[])[] = readonly (readonly string[])[]>(prop: {
|
|
180
|
+
name: C;
|
|
181
|
+
typeOfFixture: T;
|
|
182
|
+
values: V;
|
|
183
|
+
defaults: {
|
|
184
|
+
[K in O]: V[number][number];
|
|
185
|
+
};
|
|
186
|
+
label: string;
|
|
187
|
+
pseudoStates?: PossibleStates[];
|
|
188
|
+
supportsCustom?: boolean;
|
|
189
|
+
}): SelectedConfigurableProperty<C, O, T, V>;
|
|
190
|
+
/**
|
|
191
|
+
* @deprecated use the new functions instead
|
|
192
|
+
*/
|
|
193
|
+
declare function createVariantConfig<O extends string, T extends Record<string, SelectedConfigurableProperty<ConfigurablePropertiesName, O>>>(config: {
|
|
194
|
+
label: string;
|
|
195
|
+
description: string;
|
|
196
|
+
isConfigurable: boolean;
|
|
197
|
+
default: O;
|
|
198
|
+
options: readonly O[];
|
|
199
|
+
properties: T;
|
|
200
|
+
}): VariantConfig<O>;
|
|
201
|
+
declare function createComponentStateConfig(config: {
|
|
202
|
+
label: string;
|
|
203
|
+
options: string[];
|
|
204
|
+
layers: {
|
|
205
|
+
root: LayerConfig;
|
|
206
|
+
} & Record<string, LayerConfig>;
|
|
207
|
+
}): ComponentStateConfig;
|
|
208
|
+
declare function createVariantConfigWithProperties(config: {
|
|
209
|
+
label: string;
|
|
210
|
+
description: string;
|
|
211
|
+
isConfigurable: boolean;
|
|
212
|
+
default: string;
|
|
213
|
+
options: readonly string[];
|
|
214
|
+
layers: {
|
|
215
|
+
root: LayerConfig;
|
|
216
|
+
} & Record<string, LayerConfig>;
|
|
217
|
+
}): VariantConfigWithProperties;
|
|
218
|
+
declare function createVariantConfigWithComponentStates(config: {
|
|
219
|
+
label: string;
|
|
220
|
+
description: string;
|
|
221
|
+
isConfigurable: boolean;
|
|
222
|
+
default: string;
|
|
223
|
+
options: readonly string[];
|
|
224
|
+
componentStates: Record<string, ComponentStateConfig>;
|
|
225
|
+
}): VariantConfigWithComponentStates;
|
|
226
|
+
declare function createComponentStates(config: {
|
|
227
|
+
label: string;
|
|
228
|
+
options: string[];
|
|
229
|
+
layers: {
|
|
230
|
+
root: LayerConfig;
|
|
231
|
+
} & Record<string, LayerConfig>;
|
|
232
|
+
}): ComponentStateConfig;
|
|
233
|
+
declare function createLayerConfig(config: {
|
|
234
|
+
label: string;
|
|
235
|
+
pseudoSelector?: string;
|
|
236
|
+
properties: Readonly<Record<string, SelectedConfigurableProperty<ConfigurablePropertiesName, string>>>;
|
|
237
|
+
}): LayerConfig;
|
|
238
|
+
declare function createSubComponentConfig(config: {
|
|
239
|
+
label: string;
|
|
240
|
+
description: string;
|
|
241
|
+
overrideComponentName?: string;
|
|
242
|
+
variants: Record<string, VariantConfigWithProperties | VariantConfigWithComponentStates>;
|
|
243
|
+
}): SubComponentConfig;
|
|
244
|
+
|
|
245
|
+
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, generateClassName as m, generateDeclaration as n, generateStyles as o, createConfigurableProperty as p, createVariantConfig as q, createComponentStateConfig as r, statePseudoMapDocsMode as s, toMinimalDbConfigObject as t, createVariantConfigWithProperties as u, createVariantConfigWithComponentStates as v, createComponentStates as w, createLayerConfig as x, createSubComponentConfig as y };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as properties from '@yahoo/uds/fixtures';
|
|
2
|
-
import { m as ShadowPreset, g as UniversalTokensConfig } from './types-
|
|
2
|
+
import { m as ShadowPreset, g as UniversalTokensConfig } from './types-Cx4ERyM0.js';
|
|
3
3
|
|
|
4
4
|
type DispatchContext = {
|
|
5
5
|
componentName: string;
|
package/dist/index.d.cts
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { D as DivProps } from './Box-
|
|
2
|
-
export { a as Box, B as BoxProps } from './Box-
|
|
3
|
-
export { a as Divider, D as DividerProps, b as VStack, V as VStackProps } from './VStack-
|
|
1
|
+
import { D as DivProps } from './Box-DpyU-coK.cjs';
|
|
2
|
+
export { a as Box, B as BoxProps } from './Box-DpyU-coK.cjs';
|
|
3
|
+
export { a as Divider, D as DividerProps, b as VStack, V as VStackProps } from './VStack-BkfbZYlc.cjs';
|
|
4
4
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
5
|
-
import { v as UniversalFormLabelProps, n as UniversalStackProps, w as IconPropsWithSVGProps, x as ImagePropsWithImgProps, y as UniversalLinkProps } from './types-
|
|
6
|
-
export { D as AVATAR_SIZE_PREFIX, al as AlwaysPalette, am as AlwaysPaletteAlias, an as AlwaysPaletteColor, ao as Animation, ap as AriaAttribute, aq as AvatarAbbreviationStrategy, ar as AvatarShape, as as AvatarSize, at as AvatarSizeConfig, au as AvatarVariant, E as BORDER_RADIUS_PREFIX, J as BORDER_WIDTH_PREFIX, ac as BUTTON_CSS_VAR_MAP, av as BackgroundColor, aw as BackgroundPalette, ax as BackgroundPaletteAlias, ay as BackgroundStyleProps, az as BadgeSize, aA as BadgeVariant, aB as BorderRadius, aC as BorderRadiusConfig, aD as BorderStyleProps, aE as BorderWidth, aF as BorderWidthConfig, aG as Breakpoint, aH as BreakpointWithBase, e as BreakpointsConfig, aI as ButtonBaseConfig, p as ButtonClassMap, aJ as ButtonClassName, aK as ButtonColorConfig, aL as ButtonColorEffect, aM as ButtonColorEffectConfig, r as ButtonColorProperty, s as ButtonColorPropertyConfig, B as ButtonConfig, aN as ButtonKind, aO as ButtonMotionEffect, aP as ButtonMotionProperty, aQ as ButtonMotionPropertyConfig, aR as ButtonPalette, aS as ButtonPaletteColor, aT as ButtonPaletteConfig, aU as ButtonShadowPropertyConfig, aV as ButtonSize, aW as ButtonSizeConfig, aX as ButtonSizeProperty, aY as ButtonSpectrumColor, aZ as ButtonState, a_ as ButtonStateConfig, a$ as ButtonStateEffectConfig, b0 as ButtonVariant, b1 as ButtonVariantConfig, b2 as ButtonVariantFlat, b3 as CheckboxSize, b4 as CheckboxValue, b5 as CheckboxVariant, b6 as ChipSize, b7 as ChipVariant, h as ColorMode, C as ColorModeConfig, b8 as ColorModeForApp, i as ColorsConfig, b9 as ConfigurableDropShadowValues, ba as ConfigurableInsetShadowValues, bb as CustomSizingStyleProps, Z as DARK_COLOR_MODE_CLASSNAME, a8 as DEFAULT_COLOR_MODE_CLASSNAME, a9 as DEFAULT_SCALE_MODE_CLASSNAME, bc as DataAttribute, bd as Display, be as DividerVariant, af as FONT_DECLARATIONS_MAP, K as FONT_FAMILY_PREFIX, L as FONT_SIZE_PREFIX, O as FONT_SLANT_PREFIX, N as FONT_WEIGHT_PREFIX, Q as FONT_WIDTH_PREFIX, bf as Flex, bg as FlexAlignContent, bh as FlexAlignItems, bi as FlexAlignSelf, bj as FlexBasis, bk as FlexDirection, bl as FlexGrow, bm as FlexJustifyContent, bn as FlexShrink, bo as FlexStyleProps, bp as FlexWrap, bq as FontAlias, ag as FontAxisConfig, F as FontConfig, br as FontCssVar, ai as FontDeclarationConfig, ah as FontDeclarationItemConfig, aj as FontDeclarationMap, bs as FontFamilyCDNUrl, bt as FontFamilyConfig, bu as FontID, bv as FontSize, bw as FontSizeConfig, bx as FontSlantConfig, by as FontType, bz as FontWeightConfig, bA as FontWeightDescriptive, ak as FontWeightForFont, bB as FontWeightNumeric, bC as FontWidthConfig, bD as ForegroundColor, bE as ForegroundPalette, bF as ForegroundPaletteAlias, G as GlobalDefaultsConfig, bG as HighContrastMode, H as Hue, j as HueStep, ad as ICON_BUTTON_CSS_VAR_MAP, R as ICON_SIZE_PREFIX, a0 as INVERT_COLOR_MODE_CLASSNAME, q as IconButtonClassMap, bH as IconButtonClassName, I as IconButtonConfig, bI as IconButtonDefaultsConfig, bJ as IconButtonSize, bK as IconSizeConfig, bL as IconSlotRenderProps, bM as ImageStyleProps, bN as InputSize, a4 as LARGE_SCALE_MODE_CLASSNAME, _ as LIGHT_COLOR_MODE_CLASSNAME, V as LINE_HEIGHT_PREFIX, bO as LayoutStyleProps, bP as LetterSpacing, bQ as LineClampAlias, bR as LineColor, bS as LineHeight, bT as LineHeightConfig, bU as LinePalette, bV as LinePaletteAlias, a3 as MEDIUM_SCALE_MODE_CLASSNAME, W as MOTION_PREFIX, bW as Modes, M as MotionConfig, bX as MotionCssVar, bY as MotionSpringConfig, bZ as MotionSpringConfigOptions, b_ as MotionVariant, b$ as MotionVariantSpeed, c0 as MotionVariantValues, c1 as Overflow, ae as PSEUDO_STYLE_SELECTOR_MAP, c2 as Palette, k as PaletteConfig, P as PaletteType, c3 as PaletteValue, c4 as Pixels, c5 as PlatformMode, c6 as Position, c7 as PropertyToPaletteAliasMap, c8 as RadioSize, c9 as RadioValue, ca as RadioVariant, cb as RegionMode, cc as Rems, a2 as SMALL_SCALE_MODE_CLASSNAME, X as SPECTRUM_COLOR_PREFIX, $ as SYSTEM_COLOR_MODE_CLASSNAME, cd as ScaleConfig, ce as ScaleEffectMap, l as ScaleMode, S as ScaleModeConfig, cf as ScaleModeForApp, cg as ShadowColor, ch as ShadowColorConfig, d as ShadowConfig, ci as ShadowOffset, cj as ShadowOpacity, ck as ShadowPalette, cl as ShadowPaletteAlias, m as ShadowPreset, cm as ShadowSpreadRadius, cn as ShadowStyleProps, co as ShadowType, cp as ShadowTypeConfig, cq as ShadowVariant, cr as ShadowVariantConfig, cs as ShadowVariantInvert, ct as ShadowVariantWithInvert, cu as SharedPaletteAlias, t as SpacingAlias, cv as SpacingConfig, cw as SpacingStyleProps, cx as SpectrumColor, cy as SpectrumConfig, cz as StateStyleProps, cA as StyleProps, cB as SwitchSize, ab as TEXT_RESPONSIVE_BREAKPOINT_CLASSNAMES, aa as TEXT_RESPONSIVE_CLASSNAME, Y as TEXT_TRANSFORM_PREFIX, cL as TShirtSize, cM as TShirtSizeCommon, cC as TextDecorationLine, cD as TextProperty, cE as TextStyleProps, cF as TextTransform, cG as TextTransformConfig, cH as TextVariant, cI as TransitionDelay, cJ as TransitionDuration, cK as TransitionTiming, T as TypographyConfig, cN as TypographyResponsiveProperty, cO as TypographyStyle, cP as TypographyStyleProperty, cQ as TypographyUnitValue, A as UDS_PREFIX, cR as UdsCssVar, cS as Unitless, cT as UniversalAvatarIconProps, cU as UniversalAvatarImageProps, cV as UniversalAvatarProps, cW as UniversalAvatarTextProps, cX as UniversalBadgeProps, b as UniversalBoxProps, cY as UniversalButtonProps, cZ as UniversalCheckboxProps, c_ as UniversalChipBaseProps, c$ as UniversalChipButtonProps, d0 as UniversalChipDismissibleProps, d1 as UniversalChipLinkProps, d2 as UniversalChipProps, d3 as UniversalChipToggleProps, o as UniversalDividerProps, d4 as UniversalIconButtonProps, d5 as UniversalIconProps, d6 as UniversalIconSlot, d7 as UniversalImageProps, d8 as UniversalInputProps, u as UniversalMenuItemProps, a as UniversalPressableProps, d9 as UniversalRadioGroupProps, da as UniversalRadioProps, c as UniversalSwitchProps, U as UniversalTextProps, g as UniversalTokensConfig, db as UniversalTokensConfigAuto, a5 as XLARGE_SCALE_MODE_CLASSNAME, a1 as XSMALL_SCALE_MODE_CLASSNAME, a6 as XXLARGE_SCALE_MODE_CLASSNAME, a7 as XXXLARGE_SCALE_MODE_CLASSNAME, z as alwaysPalette } from './types-
|
|
5
|
+
import { v as UniversalFormLabelProps, n as UniversalStackProps, w as IconPropsWithSVGProps, x as ImagePropsWithImgProps, y as UniversalLinkProps } from './types-Cx4ERyM0.cjs';
|
|
6
|
+
export { D as AVATAR_SIZE_PREFIX, al as AlwaysPalette, am as AlwaysPaletteAlias, an as AlwaysPaletteColor, ao as Animation, ap as AriaAttribute, aq as AvatarAbbreviationStrategy, ar as AvatarShape, as as AvatarSize, at as AvatarSizeConfig, au as AvatarVariant, E as BORDER_RADIUS_PREFIX, J as BORDER_WIDTH_PREFIX, ac as BUTTON_CSS_VAR_MAP, av as BackgroundColor, aw as BackgroundPalette, ax as BackgroundPaletteAlias, ay as BackgroundStyleProps, az as BadgeSize, aA as BadgeVariant, aB as BorderRadius, aC as BorderRadiusConfig, aD as BorderStyleProps, aE as BorderWidth, aF as BorderWidthConfig, aG as Breakpoint, aH as BreakpointWithBase, e as BreakpointsConfig, aI as ButtonBaseConfig, p as ButtonClassMap, aJ as ButtonClassName, aK as ButtonColorConfig, aL as ButtonColorEffect, aM as ButtonColorEffectConfig, r as ButtonColorProperty, s as ButtonColorPropertyConfig, B as ButtonConfig, aN as ButtonKind, aO as ButtonMotionEffect, aP as ButtonMotionProperty, aQ as ButtonMotionPropertyConfig, aR as ButtonPalette, aS as ButtonPaletteColor, aT as ButtonPaletteConfig, aU as ButtonShadowPropertyConfig, aV as ButtonSize, aW as ButtonSizeConfig, aX as ButtonSizeProperty, aY as ButtonSpectrumColor, aZ as ButtonState, a_ as ButtonStateConfig, a$ as ButtonStateEffectConfig, b0 as ButtonVariant, b1 as ButtonVariantConfig, b2 as ButtonVariantFlat, b3 as CheckboxSize, b4 as CheckboxValue, b5 as CheckboxVariant, b6 as ChipSize, b7 as ChipVariant, h as ColorMode, C as ColorModeConfig, b8 as ColorModeForApp, i as ColorsConfig, b9 as ConfigurableDropShadowValues, ba as ConfigurableInsetShadowValues, bb as CustomSizingStyleProps, Z as DARK_COLOR_MODE_CLASSNAME, a8 as DEFAULT_COLOR_MODE_CLASSNAME, a9 as DEFAULT_SCALE_MODE_CLASSNAME, bc as DataAttribute, bd as Display, be as DividerVariant, af as FONT_DECLARATIONS_MAP, K as FONT_FAMILY_PREFIX, L as FONT_SIZE_PREFIX, O as FONT_SLANT_PREFIX, N as FONT_WEIGHT_PREFIX, Q as FONT_WIDTH_PREFIX, bf as Flex, bg as FlexAlignContent, bh as FlexAlignItems, bi as FlexAlignSelf, bj as FlexBasis, bk as FlexDirection, bl as FlexGrow, bm as FlexJustifyContent, bn as FlexShrink, bo as FlexStyleProps, bp as FlexWrap, bq as FontAlias, ag as FontAxisConfig, F as FontConfig, br as FontCssVar, ai as FontDeclarationConfig, ah as FontDeclarationItemConfig, aj as FontDeclarationMap, bs as FontFamilyCDNUrl, bt as FontFamilyConfig, bu as FontID, bv as FontSize, bw as FontSizeConfig, bx as FontSlantConfig, by as FontType, bz as FontWeightConfig, bA as FontWeightDescriptive, ak as FontWeightForFont, bB as FontWeightNumeric, bC as FontWidthConfig, bD as ForegroundColor, bE as ForegroundPalette, bF as ForegroundPaletteAlias, G as GlobalDefaultsConfig, bG as HighContrastMode, H as Hue, j as HueStep, ad as ICON_BUTTON_CSS_VAR_MAP, R as ICON_SIZE_PREFIX, a0 as INVERT_COLOR_MODE_CLASSNAME, q as IconButtonClassMap, bH as IconButtonClassName, I as IconButtonConfig, bI as IconButtonDefaultsConfig, bJ as IconButtonSize, bK as IconSizeConfig, bL as IconSlotRenderProps, bM as ImageStyleProps, bN as InputSize, a4 as LARGE_SCALE_MODE_CLASSNAME, _ as LIGHT_COLOR_MODE_CLASSNAME, V as LINE_HEIGHT_PREFIX, bO as LayoutStyleProps, bP as LetterSpacing, bQ as LineClampAlias, bR as LineColor, bS as LineHeight, bT as LineHeightConfig, bU as LinePalette, bV as LinePaletteAlias, a3 as MEDIUM_SCALE_MODE_CLASSNAME, W as MOTION_PREFIX, bW as Modes, M as MotionConfig, bX as MotionCssVar, bY as MotionSpringConfig, bZ as MotionSpringConfigOptions, b_ as MotionVariant, b$ as MotionVariantSpeed, c0 as MotionVariantValues, c1 as Overflow, ae as PSEUDO_STYLE_SELECTOR_MAP, c2 as Palette, k as PaletteConfig, P as PaletteType, c3 as PaletteValue, c4 as Pixels, c5 as PlatformMode, c6 as Position, c7 as PropertyToPaletteAliasMap, c8 as RadioSize, c9 as RadioValue, ca as RadioVariant, cb as RegionMode, cc as Rems, a2 as SMALL_SCALE_MODE_CLASSNAME, X as SPECTRUM_COLOR_PREFIX, $ as SYSTEM_COLOR_MODE_CLASSNAME, cd as ScaleConfig, ce as ScaleEffectMap, l as ScaleMode, S as ScaleModeConfig, cf as ScaleModeForApp, cg as ShadowColor, ch as ShadowColorConfig, d as ShadowConfig, ci as ShadowOffset, cj as ShadowOpacity, ck as ShadowPalette, cl as ShadowPaletteAlias, m as ShadowPreset, cm as ShadowSpreadRadius, cn as ShadowStyleProps, co as ShadowType, cp as ShadowTypeConfig, cq as ShadowVariant, cr as ShadowVariantConfig, cs as ShadowVariantInvert, ct as ShadowVariantWithInvert, cu as SharedPaletteAlias, t as SpacingAlias, cv as SpacingConfig, cw as SpacingStyleProps, cx as SpectrumColor, cy as SpectrumConfig, cz as StateStyleProps, cA as StyleProps, cB as SwitchSize, ab as TEXT_RESPONSIVE_BREAKPOINT_CLASSNAMES, aa as TEXT_RESPONSIVE_CLASSNAME, Y as TEXT_TRANSFORM_PREFIX, cL as TShirtSize, cM as TShirtSizeCommon, cC as TextDecorationLine, cD as TextProperty, cE as TextStyleProps, cF as TextTransform, cG as TextTransformConfig, cH as TextVariant, cI as TransitionDelay, cJ as TransitionDuration, cK as TransitionTiming, T as TypographyConfig, cN as TypographyResponsiveProperty, cO as TypographyStyle, cP as TypographyStyleProperty, cQ as TypographyUnitValue, A as UDS_PREFIX, cR as UdsCssVar, cS as Unitless, cT as UniversalAvatarIconProps, cU as UniversalAvatarImageProps, cV as UniversalAvatarProps, cW as UniversalAvatarTextProps, cX as UniversalBadgeProps, b as UniversalBoxProps, cY as UniversalButtonProps, cZ as UniversalCheckboxProps, c_ as UniversalChipBaseProps, c$ as UniversalChipButtonProps, d0 as UniversalChipDismissibleProps, d1 as UniversalChipLinkProps, d2 as UniversalChipProps, d3 as UniversalChipToggleProps, o as UniversalDividerProps, d4 as UniversalIconButtonProps, d5 as UniversalIconProps, d6 as UniversalIconSlot, d7 as UniversalImageProps, d8 as UniversalInputProps, u as UniversalMenuItemProps, a as UniversalPressableProps, d9 as UniversalRadioGroupProps, da as UniversalRadioProps, c as UniversalSwitchProps, U as UniversalTextProps, g as UniversalTokensConfig, db as UniversalTokensConfigAuto, a5 as XLARGE_SCALE_MODE_CLASSNAME, a1 as XSMALL_SCALE_MODE_CLASSNAME, a6 as XXLARGE_SCALE_MODE_CLASSNAME, a7 as XXXLARGE_SCALE_MODE_CLASSNAME, z as alwaysPalette } from './types-Cx4ERyM0.cjs';
|
|
7
7
|
import * as react from 'react';
|
|
8
8
|
import { PropsWithChildren, Dispatch, SetStateAction } from 'react';
|
|
9
|
-
export { T as Text, a as TextProps } from './Text-
|
|
9
|
+
export { T as Text, a as TextProps } from './Text-DkshZZiK.cjs';
|
|
10
10
|
export { Avatar, AvatarIcon, AvatarIconProps, AvatarImage, AvatarImageProps, AvatarProps, AvatarText, AvatarTextProps, Badge, BadgeProps, Button, ButtonProps, Checkbox, CheckboxProps, Chip, ChipButton, ChipButtonProps, ChipDismissible, ChipDismissibleProps, ChipLink, ChipLinkProps, ChipProps, ChipToggle, ChipToggleProps, IconButton, IconButtonProps, Input, InputHelpText, InputHelpTextProps, InputProps, Menu, MenuContentProps, MenuDividerProps, MenuItemCheckboxProps, MenuItemProps, MenuPlacement, MenuProviderProps, MenuTriggerProps, Pressable, PressableProps, Radio, RadioGroupProvider, RadioGroupProviderProps, RadioProps, SpringMotionConfig, SpringMotionConfigProps, Switch, SwitchProps } from '@yahoo/uds/client';
|
|
11
11
|
export { AllSelectors, BaseSelector, CssStyleObject, DEFAULT_COLOR_MODE, DEFAULT_COLOR_MODE_FOR_APP, DEFAULT_HIGH_CONTRAST_MODE, DEFAULT_REGION_MODE, DEFAULT_SCALE_MODE, DEFAULT_SCALE_MODE_FOR_APP, ParentVariantSelector, button, cartesianProduct, coalesceConfigVariant, entries, fontWeightMap, fromEntries, generateKeyFromFlatConfigPath, generateSchemaKey, getConfigDefaultValue, getConfigPseudoStateVariables, getConfigPseudoStateVariablesWithSetter, getConfigSubcomponents, getConfigVariantComponentStates, getConfigVariantComponentStatesMatrix, getConfigVariantProperties, getConfigVariantPseudoStates, getConfigVariants, getDefaultButtonBaseMap, isConfigDefaultValue, mapValues, parseButtonVariantFlat, parseDeprecatedButtonPaletteVariant, setConfigPseudoStateVariable, shadow, variants } from './tokens/index.cjs';
|
|
12
12
|
export { AvatarConfig, BadgeConfig, CheckboxConfig, ChipConfig, DividerConfig, InputConfig, LinkConfig, MenuConfig, RadioConfig, SwitchConfig } from './tokens/automation/configs.cjs';
|
|
13
|
-
export { A as AllPossibleProperties, j as AllVariantKeys, i as AutoComponentName, h as AutoComponents, g as ComponentConfig, b as ComponentStateConfig, C as ConfigurablePropertiesName, E as ExtendablePropertiesName, L as LayerConfig, P as PossibleStates, a as PossibleStatesWithRest, k as SchemaStateValue, S as SelectedConfigurableProperty, d as SubComponentConfig, V as VariantConfig, f as VariantConfigWithComponentStates, e as VariantConfigWithProperties, c as configurableProperties, r as createComponentStateConfig, w as createComponentStates, p as createConfigurableProperty, x as createLayerConfig, y as createSubComponentConfig, q as createVariantConfig, v as createVariantConfigWithComponentStates, u as createVariantConfigWithProperties, l as findFixtureType, m as generateClassName, n as generateDeclaration, o as generateStyles, s as statePseudoMapDocsMode, t as toMinimalDbConfigObject } from './index-
|
|
13
|
+
export { A as AllPossibleProperties, j as AllVariantKeys, i as AutoComponentName, h as AutoComponents, g as ComponentConfig, b as ComponentStateConfig, C as ConfigurablePropertiesName, E as ExtendablePropertiesName, L as LayerConfig, P as PossibleStates, a as PossibleStatesWithRest, k as SchemaStateValue, S as SelectedConfigurableProperty, d as SubComponentConfig, V as VariantConfig, f as VariantConfigWithComponentStates, e as VariantConfigWithProperties, c as configurableProperties, r as createComponentStateConfig, w as createComponentStates, p as createConfigurableProperty, x as createLayerConfig, y as createSubComponentConfig, q as createVariantConfig, v as createVariantConfigWithComponentStates, u as createVariantConfigWithProperties, l as findFixtureType, m as generateClassName, n as generateDeclaration, o as generateStyles, s as statePseudoMapDocsMode, t as toMinimalDbConfigObject } from './index-B7ouHsYr.cjs';
|
|
14
14
|
export { IconSize, IconVariant } from '@yahoo/uds-icons/types';
|
|
15
15
|
import 'motion/react';
|
|
16
16
|
import 'type-fest';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { D as DivProps } from './Box-
|
|
2
|
-
export { a as Box, B as BoxProps } from './Box-
|
|
3
|
-
export { a as Divider, D as DividerProps, b as VStack, V as VStackProps } from './VStack-
|
|
1
|
+
import { D as DivProps } from './Box-DSlj_nk4.js';
|
|
2
|
+
export { a as Box, B as BoxProps } from './Box-DSlj_nk4.js';
|
|
3
|
+
export { a as Divider, D as DividerProps, b as VStack, V as VStackProps } from './VStack-C5UmhjZX.js';
|
|
4
4
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
5
|
-
import { v as UniversalFormLabelProps, n as UniversalStackProps, w as IconPropsWithSVGProps, x as ImagePropsWithImgProps, y as UniversalLinkProps } from './types-
|
|
6
|
-
export { D as AVATAR_SIZE_PREFIX, al as AlwaysPalette, am as AlwaysPaletteAlias, an as AlwaysPaletteColor, ao as Animation, ap as AriaAttribute, aq as AvatarAbbreviationStrategy, ar as AvatarShape, as as AvatarSize, at as AvatarSizeConfig, au as AvatarVariant, E as BORDER_RADIUS_PREFIX, J as BORDER_WIDTH_PREFIX, ac as BUTTON_CSS_VAR_MAP, av as BackgroundColor, aw as BackgroundPalette, ax as BackgroundPaletteAlias, ay as BackgroundStyleProps, az as BadgeSize, aA as BadgeVariant, aB as BorderRadius, aC as BorderRadiusConfig, aD as BorderStyleProps, aE as BorderWidth, aF as BorderWidthConfig, aG as Breakpoint, aH as BreakpointWithBase, e as BreakpointsConfig, aI as ButtonBaseConfig, p as ButtonClassMap, aJ as ButtonClassName, aK as ButtonColorConfig, aL as ButtonColorEffect, aM as ButtonColorEffectConfig, r as ButtonColorProperty, s as ButtonColorPropertyConfig, B as ButtonConfig, aN as ButtonKind, aO as ButtonMotionEffect, aP as ButtonMotionProperty, aQ as ButtonMotionPropertyConfig, aR as ButtonPalette, aS as ButtonPaletteColor, aT as ButtonPaletteConfig, aU as ButtonShadowPropertyConfig, aV as ButtonSize, aW as ButtonSizeConfig, aX as ButtonSizeProperty, aY as ButtonSpectrumColor, aZ as ButtonState, a_ as ButtonStateConfig, a$ as ButtonStateEffectConfig, b0 as ButtonVariant, b1 as ButtonVariantConfig, b2 as ButtonVariantFlat, b3 as CheckboxSize, b4 as CheckboxValue, b5 as CheckboxVariant, b6 as ChipSize, b7 as ChipVariant, h as ColorMode, C as ColorModeConfig, b8 as ColorModeForApp, i as ColorsConfig, b9 as ConfigurableDropShadowValues, ba as ConfigurableInsetShadowValues, bb as CustomSizingStyleProps, Z as DARK_COLOR_MODE_CLASSNAME, a8 as DEFAULT_COLOR_MODE_CLASSNAME, a9 as DEFAULT_SCALE_MODE_CLASSNAME, bc as DataAttribute, bd as Display, be as DividerVariant, af as FONT_DECLARATIONS_MAP, K as FONT_FAMILY_PREFIX, L as FONT_SIZE_PREFIX, O as FONT_SLANT_PREFIX, N as FONT_WEIGHT_PREFIX, Q as FONT_WIDTH_PREFIX, bf as Flex, bg as FlexAlignContent, bh as FlexAlignItems, bi as FlexAlignSelf, bj as FlexBasis, bk as FlexDirection, bl as FlexGrow, bm as FlexJustifyContent, bn as FlexShrink, bo as FlexStyleProps, bp as FlexWrap, bq as FontAlias, ag as FontAxisConfig, F as FontConfig, br as FontCssVar, ai as FontDeclarationConfig, ah as FontDeclarationItemConfig, aj as FontDeclarationMap, bs as FontFamilyCDNUrl, bt as FontFamilyConfig, bu as FontID, bv as FontSize, bw as FontSizeConfig, bx as FontSlantConfig, by as FontType, bz as FontWeightConfig, bA as FontWeightDescriptive, ak as FontWeightForFont, bB as FontWeightNumeric, bC as FontWidthConfig, bD as ForegroundColor, bE as ForegroundPalette, bF as ForegroundPaletteAlias, G as GlobalDefaultsConfig, bG as HighContrastMode, H as Hue, j as HueStep, ad as ICON_BUTTON_CSS_VAR_MAP, R as ICON_SIZE_PREFIX, a0 as INVERT_COLOR_MODE_CLASSNAME, q as IconButtonClassMap, bH as IconButtonClassName, I as IconButtonConfig, bI as IconButtonDefaultsConfig, bJ as IconButtonSize, bK as IconSizeConfig, bL as IconSlotRenderProps, bM as ImageStyleProps, bN as InputSize, a4 as LARGE_SCALE_MODE_CLASSNAME, _ as LIGHT_COLOR_MODE_CLASSNAME, V as LINE_HEIGHT_PREFIX, bO as LayoutStyleProps, bP as LetterSpacing, bQ as LineClampAlias, bR as LineColor, bS as LineHeight, bT as LineHeightConfig, bU as LinePalette, bV as LinePaletteAlias, a3 as MEDIUM_SCALE_MODE_CLASSNAME, W as MOTION_PREFIX, bW as Modes, M as MotionConfig, bX as MotionCssVar, bY as MotionSpringConfig, bZ as MotionSpringConfigOptions, b_ as MotionVariant, b$ as MotionVariantSpeed, c0 as MotionVariantValues, c1 as Overflow, ae as PSEUDO_STYLE_SELECTOR_MAP, c2 as Palette, k as PaletteConfig, P as PaletteType, c3 as PaletteValue, c4 as Pixels, c5 as PlatformMode, c6 as Position, c7 as PropertyToPaletteAliasMap, c8 as RadioSize, c9 as RadioValue, ca as RadioVariant, cb as RegionMode, cc as Rems, a2 as SMALL_SCALE_MODE_CLASSNAME, X as SPECTRUM_COLOR_PREFIX, $ as SYSTEM_COLOR_MODE_CLASSNAME, cd as ScaleConfig, ce as ScaleEffectMap, l as ScaleMode, S as ScaleModeConfig, cf as ScaleModeForApp, cg as ShadowColor, ch as ShadowColorConfig, d as ShadowConfig, ci as ShadowOffset, cj as ShadowOpacity, ck as ShadowPalette, cl as ShadowPaletteAlias, m as ShadowPreset, cm as ShadowSpreadRadius, cn as ShadowStyleProps, co as ShadowType, cp as ShadowTypeConfig, cq as ShadowVariant, cr as ShadowVariantConfig, cs as ShadowVariantInvert, ct as ShadowVariantWithInvert, cu as SharedPaletteAlias, t as SpacingAlias, cv as SpacingConfig, cw as SpacingStyleProps, cx as SpectrumColor, cy as SpectrumConfig, cz as StateStyleProps, cA as StyleProps, cB as SwitchSize, ab as TEXT_RESPONSIVE_BREAKPOINT_CLASSNAMES, aa as TEXT_RESPONSIVE_CLASSNAME, Y as TEXT_TRANSFORM_PREFIX, cL as TShirtSize, cM as TShirtSizeCommon, cC as TextDecorationLine, cD as TextProperty, cE as TextStyleProps, cF as TextTransform, cG as TextTransformConfig, cH as TextVariant, cI as TransitionDelay, cJ as TransitionDuration, cK as TransitionTiming, T as TypographyConfig, cN as TypographyResponsiveProperty, cO as TypographyStyle, cP as TypographyStyleProperty, cQ as TypographyUnitValue, A as UDS_PREFIX, cR as UdsCssVar, cS as Unitless, cT as UniversalAvatarIconProps, cU as UniversalAvatarImageProps, cV as UniversalAvatarProps, cW as UniversalAvatarTextProps, cX as UniversalBadgeProps, b as UniversalBoxProps, cY as UniversalButtonProps, cZ as UniversalCheckboxProps, c_ as UniversalChipBaseProps, c$ as UniversalChipButtonProps, d0 as UniversalChipDismissibleProps, d1 as UniversalChipLinkProps, d2 as UniversalChipProps, d3 as UniversalChipToggleProps, o as UniversalDividerProps, d4 as UniversalIconButtonProps, d5 as UniversalIconProps, d6 as UniversalIconSlot, d7 as UniversalImageProps, d8 as UniversalInputProps, u as UniversalMenuItemProps, a as UniversalPressableProps, d9 as UniversalRadioGroupProps, da as UniversalRadioProps, c as UniversalSwitchProps, U as UniversalTextProps, g as UniversalTokensConfig, db as UniversalTokensConfigAuto, a5 as XLARGE_SCALE_MODE_CLASSNAME, a1 as XSMALL_SCALE_MODE_CLASSNAME, a6 as XXLARGE_SCALE_MODE_CLASSNAME, a7 as XXXLARGE_SCALE_MODE_CLASSNAME, z as alwaysPalette } from './types-
|
|
5
|
+
import { v as UniversalFormLabelProps, n as UniversalStackProps, w as IconPropsWithSVGProps, x as ImagePropsWithImgProps, y as UniversalLinkProps } from './types-Cx4ERyM0.js';
|
|
6
|
+
export { D as AVATAR_SIZE_PREFIX, al as AlwaysPalette, am as AlwaysPaletteAlias, an as AlwaysPaletteColor, ao as Animation, ap as AriaAttribute, aq as AvatarAbbreviationStrategy, ar as AvatarShape, as as AvatarSize, at as AvatarSizeConfig, au as AvatarVariant, E as BORDER_RADIUS_PREFIX, J as BORDER_WIDTH_PREFIX, ac as BUTTON_CSS_VAR_MAP, av as BackgroundColor, aw as BackgroundPalette, ax as BackgroundPaletteAlias, ay as BackgroundStyleProps, az as BadgeSize, aA as BadgeVariant, aB as BorderRadius, aC as BorderRadiusConfig, aD as BorderStyleProps, aE as BorderWidth, aF as BorderWidthConfig, aG as Breakpoint, aH as BreakpointWithBase, e as BreakpointsConfig, aI as ButtonBaseConfig, p as ButtonClassMap, aJ as ButtonClassName, aK as ButtonColorConfig, aL as ButtonColorEffect, aM as ButtonColorEffectConfig, r as ButtonColorProperty, s as ButtonColorPropertyConfig, B as ButtonConfig, aN as ButtonKind, aO as ButtonMotionEffect, aP as ButtonMotionProperty, aQ as ButtonMotionPropertyConfig, aR as ButtonPalette, aS as ButtonPaletteColor, aT as ButtonPaletteConfig, aU as ButtonShadowPropertyConfig, aV as ButtonSize, aW as ButtonSizeConfig, aX as ButtonSizeProperty, aY as ButtonSpectrumColor, aZ as ButtonState, a_ as ButtonStateConfig, a$ as ButtonStateEffectConfig, b0 as ButtonVariant, b1 as ButtonVariantConfig, b2 as ButtonVariantFlat, b3 as CheckboxSize, b4 as CheckboxValue, b5 as CheckboxVariant, b6 as ChipSize, b7 as ChipVariant, h as ColorMode, C as ColorModeConfig, b8 as ColorModeForApp, i as ColorsConfig, b9 as ConfigurableDropShadowValues, ba as ConfigurableInsetShadowValues, bb as CustomSizingStyleProps, Z as DARK_COLOR_MODE_CLASSNAME, a8 as DEFAULT_COLOR_MODE_CLASSNAME, a9 as DEFAULT_SCALE_MODE_CLASSNAME, bc as DataAttribute, bd as Display, be as DividerVariant, af as FONT_DECLARATIONS_MAP, K as FONT_FAMILY_PREFIX, L as FONT_SIZE_PREFIX, O as FONT_SLANT_PREFIX, N as FONT_WEIGHT_PREFIX, Q as FONT_WIDTH_PREFIX, bf as Flex, bg as FlexAlignContent, bh as FlexAlignItems, bi as FlexAlignSelf, bj as FlexBasis, bk as FlexDirection, bl as FlexGrow, bm as FlexJustifyContent, bn as FlexShrink, bo as FlexStyleProps, bp as FlexWrap, bq as FontAlias, ag as FontAxisConfig, F as FontConfig, br as FontCssVar, ai as FontDeclarationConfig, ah as FontDeclarationItemConfig, aj as FontDeclarationMap, bs as FontFamilyCDNUrl, bt as FontFamilyConfig, bu as FontID, bv as FontSize, bw as FontSizeConfig, bx as FontSlantConfig, by as FontType, bz as FontWeightConfig, bA as FontWeightDescriptive, ak as FontWeightForFont, bB as FontWeightNumeric, bC as FontWidthConfig, bD as ForegroundColor, bE as ForegroundPalette, bF as ForegroundPaletteAlias, G as GlobalDefaultsConfig, bG as HighContrastMode, H as Hue, j as HueStep, ad as ICON_BUTTON_CSS_VAR_MAP, R as ICON_SIZE_PREFIX, a0 as INVERT_COLOR_MODE_CLASSNAME, q as IconButtonClassMap, bH as IconButtonClassName, I as IconButtonConfig, bI as IconButtonDefaultsConfig, bJ as IconButtonSize, bK as IconSizeConfig, bL as IconSlotRenderProps, bM as ImageStyleProps, bN as InputSize, a4 as LARGE_SCALE_MODE_CLASSNAME, _ as LIGHT_COLOR_MODE_CLASSNAME, V as LINE_HEIGHT_PREFIX, bO as LayoutStyleProps, bP as LetterSpacing, bQ as LineClampAlias, bR as LineColor, bS as LineHeight, bT as LineHeightConfig, bU as LinePalette, bV as LinePaletteAlias, a3 as MEDIUM_SCALE_MODE_CLASSNAME, W as MOTION_PREFIX, bW as Modes, M as MotionConfig, bX as MotionCssVar, bY as MotionSpringConfig, bZ as MotionSpringConfigOptions, b_ as MotionVariant, b$ as MotionVariantSpeed, c0 as MotionVariantValues, c1 as Overflow, ae as PSEUDO_STYLE_SELECTOR_MAP, c2 as Palette, k as PaletteConfig, P as PaletteType, c3 as PaletteValue, c4 as Pixels, c5 as PlatformMode, c6 as Position, c7 as PropertyToPaletteAliasMap, c8 as RadioSize, c9 as RadioValue, ca as RadioVariant, cb as RegionMode, cc as Rems, a2 as SMALL_SCALE_MODE_CLASSNAME, X as SPECTRUM_COLOR_PREFIX, $ as SYSTEM_COLOR_MODE_CLASSNAME, cd as ScaleConfig, ce as ScaleEffectMap, l as ScaleMode, S as ScaleModeConfig, cf as ScaleModeForApp, cg as ShadowColor, ch as ShadowColorConfig, d as ShadowConfig, ci as ShadowOffset, cj as ShadowOpacity, ck as ShadowPalette, cl as ShadowPaletteAlias, m as ShadowPreset, cm as ShadowSpreadRadius, cn as ShadowStyleProps, co as ShadowType, cp as ShadowTypeConfig, cq as ShadowVariant, cr as ShadowVariantConfig, cs as ShadowVariantInvert, ct as ShadowVariantWithInvert, cu as SharedPaletteAlias, t as SpacingAlias, cv as SpacingConfig, cw as SpacingStyleProps, cx as SpectrumColor, cy as SpectrumConfig, cz as StateStyleProps, cA as StyleProps, cB as SwitchSize, ab as TEXT_RESPONSIVE_BREAKPOINT_CLASSNAMES, aa as TEXT_RESPONSIVE_CLASSNAME, Y as TEXT_TRANSFORM_PREFIX, cL as TShirtSize, cM as TShirtSizeCommon, cC as TextDecorationLine, cD as TextProperty, cE as TextStyleProps, cF as TextTransform, cG as TextTransformConfig, cH as TextVariant, cI as TransitionDelay, cJ as TransitionDuration, cK as TransitionTiming, T as TypographyConfig, cN as TypographyResponsiveProperty, cO as TypographyStyle, cP as TypographyStyleProperty, cQ as TypographyUnitValue, A as UDS_PREFIX, cR as UdsCssVar, cS as Unitless, cT as UniversalAvatarIconProps, cU as UniversalAvatarImageProps, cV as UniversalAvatarProps, cW as UniversalAvatarTextProps, cX as UniversalBadgeProps, b as UniversalBoxProps, cY as UniversalButtonProps, cZ as UniversalCheckboxProps, c_ as UniversalChipBaseProps, c$ as UniversalChipButtonProps, d0 as UniversalChipDismissibleProps, d1 as UniversalChipLinkProps, d2 as UniversalChipProps, d3 as UniversalChipToggleProps, o as UniversalDividerProps, d4 as UniversalIconButtonProps, d5 as UniversalIconProps, d6 as UniversalIconSlot, d7 as UniversalImageProps, d8 as UniversalInputProps, u as UniversalMenuItemProps, a as UniversalPressableProps, d9 as UniversalRadioGroupProps, da as UniversalRadioProps, c as UniversalSwitchProps, U as UniversalTextProps, g as UniversalTokensConfig, db as UniversalTokensConfigAuto, a5 as XLARGE_SCALE_MODE_CLASSNAME, a1 as XSMALL_SCALE_MODE_CLASSNAME, a6 as XXLARGE_SCALE_MODE_CLASSNAME, a7 as XXXLARGE_SCALE_MODE_CLASSNAME, z as alwaysPalette } from './types-Cx4ERyM0.js';
|
|
7
7
|
import * as react from 'react';
|
|
8
8
|
import { PropsWithChildren, Dispatch, SetStateAction } from 'react';
|
|
9
|
-
export { T as Text, a as TextProps } from './Text-
|
|
9
|
+
export { T as Text, a as TextProps } from './Text-BE_L9lP2.js';
|
|
10
10
|
export { Avatar, AvatarIcon, AvatarIconProps, AvatarImage, AvatarImageProps, AvatarProps, AvatarText, AvatarTextProps, Badge, BadgeProps, Button, ButtonProps, Checkbox, CheckboxProps, Chip, ChipButton, ChipButtonProps, ChipDismissible, ChipDismissibleProps, ChipLink, ChipLinkProps, ChipProps, ChipToggle, ChipToggleProps, IconButton, IconButtonProps, Input, InputHelpText, InputHelpTextProps, InputProps, Menu, MenuContentProps, MenuDividerProps, MenuItemCheckboxProps, MenuItemProps, MenuPlacement, MenuProviderProps, MenuTriggerProps, Pressable, PressableProps, Radio, RadioGroupProvider, RadioGroupProviderProps, RadioProps, SpringMotionConfig, SpringMotionConfigProps, Switch, SwitchProps } from '@yahoo/uds/client';
|
|
11
11
|
export { AllSelectors, BaseSelector, CssStyleObject, DEFAULT_COLOR_MODE, DEFAULT_COLOR_MODE_FOR_APP, DEFAULT_HIGH_CONTRAST_MODE, DEFAULT_REGION_MODE, DEFAULT_SCALE_MODE, DEFAULT_SCALE_MODE_FOR_APP, ParentVariantSelector, button, cartesianProduct, coalesceConfigVariant, entries, fontWeightMap, fromEntries, generateKeyFromFlatConfigPath, generateSchemaKey, getConfigDefaultValue, getConfigPseudoStateVariables, getConfigPseudoStateVariablesWithSetter, getConfigSubcomponents, getConfigVariantComponentStates, getConfigVariantComponentStatesMatrix, getConfigVariantProperties, getConfigVariantPseudoStates, getConfigVariants, getDefaultButtonBaseMap, isConfigDefaultValue, mapValues, parseButtonVariantFlat, parseDeprecatedButtonPaletteVariant, setConfigPseudoStateVariable, shadow, variants } from './tokens/index.js';
|
|
12
12
|
export { AvatarConfig, BadgeConfig, CheckboxConfig, ChipConfig, DividerConfig, InputConfig, LinkConfig, MenuConfig, RadioConfig, SwitchConfig } from './tokens/automation/configs.js';
|
|
13
|
-
export { A as AllPossibleProperties, j as AllVariantKeys, i as AutoComponentName, h as AutoComponents, g as ComponentConfig, b as ComponentStateConfig, C as ConfigurablePropertiesName, E as ExtendablePropertiesName, L as LayerConfig, P as PossibleStates, a as PossibleStatesWithRest, k as SchemaStateValue, S as SelectedConfigurableProperty, d as SubComponentConfig, V as VariantConfig, f as VariantConfigWithComponentStates, e as VariantConfigWithProperties, c as configurableProperties, r as createComponentStateConfig, w as createComponentStates, p as createConfigurableProperty, x as createLayerConfig, y as createSubComponentConfig, q as createVariantConfig, v as createVariantConfigWithComponentStates, u as createVariantConfigWithProperties, l as findFixtureType, m as generateClassName, n as generateDeclaration, o as generateStyles, s as statePseudoMapDocsMode, t as toMinimalDbConfigObject } from './index-
|
|
13
|
+
export { A as AllPossibleProperties, j as AllVariantKeys, i as AutoComponentName, h as AutoComponents, g as ComponentConfig, b as ComponentStateConfig, C as ConfigurablePropertiesName, E as ExtendablePropertiesName, L as LayerConfig, P as PossibleStates, a as PossibleStatesWithRest, k as SchemaStateValue, S as SelectedConfigurableProperty, d as SubComponentConfig, V as VariantConfig, f as VariantConfigWithComponentStates, e as VariantConfigWithProperties, c as configurableProperties, r as createComponentStateConfig, w as createComponentStates, p as createConfigurableProperty, x as createLayerConfig, y as createSubComponentConfig, q as createVariantConfig, v as createVariantConfigWithComponentStates, u as createVariantConfigWithProperties, l as findFixtureType, m as generateClassName, n as generateDeclaration, o as generateStyles, s as statePseudoMapDocsMode, t as toMinimalDbConfigObject } from './index-cfPq3YHj.js';
|
|
14
14
|
export { IconSize, IconVariant } from '@yahoo/uds-icons/types';
|
|
15
15
|
import 'motion/react';
|
|
16
16
|
import 'type-fest';
|