@yahoo/uds 3.14.0 → 3.15.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cli/bin/uds-darwin-arm64-baseline +0 -0
- package/cli/bin/uds-linux-arm64 +0 -0
- package/cli/bin/uds-linux-x64-baseline +0 -0
- package/dist/{Box-DWg0lLcd.d.cts → Box-ChOYyOX-.d.cts} +37 -1
- package/dist/{Box-DWg0lLcd.d.ts → Box-ChOYyOX-.d.ts} +37 -1
- package/dist/{Input-aOibmfef.d.cts → Input-BplRyA37.d.cts} +1 -1
- package/dist/{Input-Dl4MH4QA.d.ts → Input-DRW9vjxR.d.ts} +1 -1
- package/dist/Input-DufZLsNH.d.cts +42 -0
- package/dist/Input-UeO0vaoz.d.ts +42 -0
- package/dist/{Pressable-mC6RJscK.d.cts → Pressable-DZgp5KcI.d.cts} +1 -1
- package/dist/{Pressable-SbKe8rDQ.d.ts → Pressable-DwkVgrwH.d.ts} +1 -1
- package/dist/Pressable-aElp6-AI.d.cts +44 -0
- package/dist/Pressable-uDNs9Nsc.d.ts +44 -0
- package/dist/{VStack-CntCBGfp.d.ts → VStack-Ag81NM7d.d.ts} +1 -1
- package/dist/{VStack-z0qYJqIc.d.cts → VStack-CPKfMcLu.d.cts} +1 -1
- package/dist/VStack-DWoBY3tt.d.cts +112 -0
- package/dist/VStack-Diuzxknf.d.ts +112 -0
- package/dist/chunk-3KGQSRYT.js +1 -0
- package/dist/chunk-42XEGTIO.cjs +2 -0
- package/dist/chunk-56NNWMGX.cjs +1 -0
- package/dist/chunk-5D3C5YYD.js +3 -0
- package/dist/chunk-5IAU2XDU.cjs +1 -0
- package/dist/chunk-6HKNRHLK.cjs +1 -0
- package/dist/chunk-7UNOOMCD.cjs +1 -0
- package/dist/chunk-7XHEAAW3.js +1 -0
- package/dist/chunk-7YFRLAV4.js +1 -0
- package/dist/chunk-BIKX5LPE.js +2 -0
- package/dist/chunk-CAR5LKUE.js +1 -0
- package/dist/chunk-D3ZSEJZK.cjs +2 -0
- package/dist/chunk-D5MYKE44.js +2 -0
- package/dist/chunk-DEDN4TJ3.cjs +3 -0
- package/dist/chunk-E44FG7CA.cjs +1 -0
- package/dist/chunk-GHWLYEOM.cjs +1 -0
- package/dist/chunk-I4FL67ZO.js +1 -0
- package/dist/chunk-J65V25HB.cjs +3 -0
- package/dist/chunk-KVPWRNJK.js +2 -0
- package/dist/chunk-KZTUNEAP.js +1 -0
- package/dist/chunk-MD3JYPXC.js +1 -0
- package/dist/chunk-NTSGVZZG.cjs +1 -0
- package/dist/chunk-PBBXMCYC.js +2 -0
- package/dist/chunk-RVDNFG5L.cjs +1 -0
- package/dist/chunk-S2KVASJO.cjs +1 -0
- package/dist/chunk-SIUO3RQL.js +1 -0
- package/dist/chunk-SUSQKDZS.cjs +1 -0
- package/dist/chunk-SWKCJDOY.cjs +1 -0
- package/dist/chunk-V7SJNIMG.js +2 -0
- package/dist/chunk-XFOVSNBZ.cjs +1 -0
- package/dist/chunk-YPZGWRGV.js +2 -0
- package/dist/chunk-ZIR4GEEX.js +3 -0
- package/dist/client/Menu.cjs +1 -1
- package/dist/client/Menu.d.cts +3 -3
- package/dist/client/Menu.d.ts +3 -3
- package/dist/client/Menu.js +2 -2
- package/dist/client/index.cjs +1 -1
- package/dist/client/index.d.cts +10 -5
- package/dist/client/index.d.ts +10 -5
- package/dist/client/index.js +1 -1
- package/dist/domMax-OBCHPQP3.js +1 -0
- package/dist/domMax-ZTC57OAI.cjs +1 -0
- package/dist/experimental/client/SwitchV2.cjs +2 -0
- package/dist/experimental/client/SwitchV2.d.cts +42 -0
- package/dist/experimental/client/SwitchV2.d.ts +42 -0
- package/dist/experimental/client/SwitchV2.js +2 -0
- package/dist/experimental/client/index.cjs +2 -2
- package/dist/experimental/client/index.d.cts +39 -2
- package/dist/experimental/client/index.d.ts +39 -2
- package/dist/experimental/client/index.js +2 -2
- package/dist/experimental/index.cjs +2 -2
- package/dist/experimental/index.d.cts +2 -2
- package/dist/experimental/index.d.ts +2 -2
- package/dist/experimental/index.js +2 -2
- package/dist/{index-Dwb73uSE.d.ts → index-BnhqreIn.d.ts} +1 -1
- package/dist/{index-DSqYDAbI.d.cts → index-C0rNcNT6.d.cts} +1 -1
- package/dist/index-DB-ACioI.d.cts +243 -0
- package/dist/index-l7p2BSJ4.d.ts +243 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +6 -6
- package/dist/index.d.ts +6 -6
- package/dist/index.js +1 -1
- 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/purger.cjs +1 -1
- package/dist/tailwind/purger.js +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-B4Hts0Xm.d.cts → types-3cLxZ8HV.d.cts} +2018 -2018
- package/dist/{types-B4Hts0Xm.d.ts → types-3cLxZ8HV.d.ts} +2018 -2018
- package/dist/types-BzCxycgJ.d.cts +10449 -0
- package/dist/types-BzCxycgJ.d.ts +10449 -0
- package/package.json +12 -2
- package/dist/chunk-BCFYKKRU.cjs +0 -3
- package/dist/chunk-EGWHQYCX.cjs +0 -2
- package/dist/chunk-FDIYBNDK.js +0 -3
- package/dist/chunk-OVXGAHLE.cjs +0 -1
- package/dist/chunk-S2FXUKQX.js +0 -3
- package/dist/chunk-WMOJ5WXH.js +0 -1
- package/dist/chunk-XYUF3GPH.js +0 -1
- package/dist/chunk-YV2EYDJK.cjs +0 -1
- /package/dist/{motionFeatures-6LIGGXPL.cjs → domAnimation-ESPUKI4G.cjs} +0 -0
- /package/dist/{motionFeatures-SJISLQ4M.js → domAnimation-MWKTMI4P.js} +0 -0
@@ -0,0 +1,243 @@
|
|
1
|
+
import * as properties from '@yahoo/uds/fixtures';
|
2
|
+
import { g as ShadowPreset, c as UniversalTokensConfig } from './types-BzCxycgJ.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 lineHeight: ConfigurableProperty<"textVariants", unknown>;
|
28
|
+
readonly textTransform: ConfigurableProperty<"textVariants", unknown>;
|
29
|
+
readonly padding: ConfigurableProperty<"spacingAliases", unknown>;
|
30
|
+
readonly gap: ConfigurableProperty<"spacingAliases", unknown>;
|
31
|
+
readonly color: ConfigurableProperty<"foregroundPaletteColors" | "spectrumColors" | "alwaysPaletteAliases", unknown>;
|
32
|
+
readonly fontWeight: ConfigurableProperty<"textVariants", unknown>;
|
33
|
+
readonly iconSize: ConfigurableProperty<"iconSizes", unknown>;
|
34
|
+
readonly spacingHorizontal: ConfigurableProperty<"spacingAliases", unknown>;
|
35
|
+
readonly spacingVertical: ConfigurableProperty<"spacingAliases", unknown>;
|
36
|
+
readonly textVariant: ConfigurableProperty<"textVariants", unknown>;
|
37
|
+
readonly textDecorationLine: ConfigurableProperty<"textDecorationLines", unknown>;
|
38
|
+
readonly shadow: ConfigurableProperty<"shadowVariants", string | [] | [ShadowPreset] | [ShadowPreset, ShadowPreset] | [ShadowPreset, ShadowPreset, ShadowPreset]>;
|
39
|
+
readonly insetShadow: ConfigurableProperty<"shadowVariantsWithInvert", string | [] | [ShadowPreset] | [ShadowPreset, ShadowPreset] | [ShadowPreset, ShadowPreset, ShadowPreset]>;
|
40
|
+
readonly height: ConfigurableProperty<"spacingAliases", unknown>;
|
41
|
+
readonly width: ConfigurableProperty<"spacingAliases", unknown>;
|
42
|
+
};
|
43
|
+
declare const configurableProperties: {
|
44
|
+
outlineWidth: ConfigurableProperty<"spacingAliases" | "borderWidths", unknown>;
|
45
|
+
outlineColor: ConfigurableProperty<"linePaletteColors" | "spectrumColors" | "alwaysPaletteAliases", unknown>;
|
46
|
+
insetOutlineOffset: ConfigurableProperty<"spacingAliases" | "borderWidths", unknown>;
|
47
|
+
solidOutline: ConfigurableProperty<never, unknown>;
|
48
|
+
backgroundColor: ConfigurableProperty<"backgroundPaletteColors" | "spectrumColors" | "alwaysPaletteAliases", unknown>;
|
49
|
+
borderWidth: ConfigurableProperty<"spacingAliases" | "borderWidths", unknown>;
|
50
|
+
borderRadius: ConfigurableProperty<"borderRadii", unknown>;
|
51
|
+
borderColor: ConfigurableProperty<"linePaletteColors" | "spectrumColors" | "alwaysPaletteAliases", unknown>;
|
52
|
+
fontFamily: ConfigurableProperty<"textVariants", unknown>;
|
53
|
+
fontSize: ConfigurableProperty<"textVariants", unknown>;
|
54
|
+
lineHeight: ConfigurableProperty<"textVariants", unknown>;
|
55
|
+
textTransform: ConfigurableProperty<"textVariants", unknown>;
|
56
|
+
padding: ConfigurableProperty<"spacingAliases", unknown>;
|
57
|
+
gap: ConfigurableProperty<"spacingAliases", unknown>;
|
58
|
+
color: ConfigurableProperty<"foregroundPaletteColors" | "spectrumColors" | "alwaysPaletteAliases", unknown>;
|
59
|
+
fontWeight: ConfigurableProperty<"textVariants", unknown>;
|
60
|
+
iconSize: ConfigurableProperty<"iconSizes", unknown>;
|
61
|
+
spacingHorizontal: ConfigurableProperty<"spacingAliases", unknown>;
|
62
|
+
spacingVertical: ConfigurableProperty<"spacingAliases", unknown>;
|
63
|
+
textVariant: ConfigurableProperty<"textVariants", unknown>;
|
64
|
+
textDecorationLine: ConfigurableProperty<"textDecorationLines", unknown>;
|
65
|
+
shadow: ConfigurableProperty<"shadowVariants", string | [] | [ShadowPreset] | [ShadowPreset, ShadowPreset] | [ShadowPreset, ShadowPreset, ShadowPreset]>;
|
66
|
+
insetShadow: ConfigurableProperty<"shadowVariantsWithInvert", string | [] | [ShadowPreset] | [ShadowPreset, ShadowPreset] | [ShadowPreset, ShadowPreset, ShadowPreset]>;
|
67
|
+
height: ConfigurableProperty<"spacingAliases", unknown>;
|
68
|
+
width: ConfigurableProperty<"spacingAliases", unknown>;
|
69
|
+
};
|
70
|
+
type ExtendablePropertiesName = keyof typeof configurableProperties;
|
71
|
+
type ConfigurablePropertiesName = keyof typeof publicProperties;
|
72
|
+
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[])[]> {
|
73
|
+
label: string;
|
74
|
+
name: C;
|
75
|
+
typeOfFixture: T;
|
76
|
+
values: V;
|
77
|
+
pseudoStates?: PossibleStates[];
|
78
|
+
supportsCustom?: boolean;
|
79
|
+
defaults: {
|
80
|
+
[K in O]: V[number][number];
|
81
|
+
};
|
82
|
+
}
|
83
|
+
|
84
|
+
type AllPossibleProperties = Exclude<keyof typeof properties, 'iconButtonClassNames' | 'iconButtonSize' | 'iconButtonStates' | 'buttonClassNames' | 'buttonColorProperties' | 'buttonIconSvgSize' | 'buttonKinds' | 'buttonMotionEffects' | 'buttonMotionProperties' | 'buttonPalettes' | 'buttonSizeProperties' | 'buttonSizes' | 'buttonStates' | 'buttonVariants'> | 'shadowVariantConfig';
|
85
|
+
type PossibleStates = 'hover' | 'pressed' | 'focused' | 'invalid' | 'focus-within' | 'focused-keyboard' | 'visited' | 'readonly' | 'disabled' | 'invalid&hover' | 'invalid&pressed';
|
86
|
+
type PossibleStatesWithRest = 'rest' | PossibleStates;
|
87
|
+
interface LayerConfig {
|
88
|
+
label: string;
|
89
|
+
properties: Readonly<Record<string, SelectedConfigurableProperty<ConfigurablePropertiesName, string>>>;
|
90
|
+
pseudoSelector?: string;
|
91
|
+
}
|
92
|
+
interface ComponentStateConfig {
|
93
|
+
label: string;
|
94
|
+
options: string[];
|
95
|
+
layers: {
|
96
|
+
root: LayerConfig;
|
97
|
+
} & Record<string, LayerConfig>;
|
98
|
+
}
|
99
|
+
interface SubComponentConfig {
|
100
|
+
label: string;
|
101
|
+
description: string;
|
102
|
+
overrideComponentName?: string;
|
103
|
+
variants: Record<string, VariantConfigWithProperties | VariantConfigWithComponentStates>;
|
104
|
+
}
|
105
|
+
interface VariantConfig<O extends string = string> {
|
106
|
+
label: string;
|
107
|
+
description: string;
|
108
|
+
isConfigurable: boolean;
|
109
|
+
default: O;
|
110
|
+
options: readonly O[];
|
111
|
+
}
|
112
|
+
interface VariantConfigWithProperties<O extends string = string> extends VariantConfig<O> {
|
113
|
+
layers: {
|
114
|
+
root: LayerConfig;
|
115
|
+
} & Record<string, LayerConfig>;
|
116
|
+
}
|
117
|
+
interface VariantConfigWithComponentStates<O extends string = string> extends VariantConfig<O> {
|
118
|
+
componentStates?: Readonly<Record<string, ComponentStateConfig>>;
|
119
|
+
}
|
120
|
+
interface ComponentConfig {
|
121
|
+
label: string;
|
122
|
+
description: string;
|
123
|
+
overrideComponentName?: string;
|
124
|
+
subComponents?: Record<string, SubComponentConfig>;
|
125
|
+
variants?: Record<string, VariantConfigWithProperties | VariantConfigWithComponentStates>;
|
126
|
+
}
|
127
|
+
type AutoComponents = Omit<UniversalTokensConfig, 'colorMode' | 'font' | 'scaleMode' | 'version' | 'motion' | 'button' | 'iconButton' | 'shadow' | 'breakpoints' | 'typography' | 'globalDefaults'>;
|
128
|
+
type AutoComponentName = keyof AutoComponents;
|
129
|
+
type AllVariantKeys = {
|
130
|
+
[K in keyof AutoComponents]: {
|
131
|
+
[V in keyof AutoComponents[K]['defaults']]: V;
|
132
|
+
}[keyof AutoComponents[K]['defaults']];
|
133
|
+
}[keyof AutoComponents];
|
134
|
+
|
135
|
+
type ThemeFn = (path: string) => string;
|
136
|
+
type SchemaStateValue<T = any> = {
|
137
|
+
type: string;
|
138
|
+
valueType: 'alias' | 'custom';
|
139
|
+
value: T;
|
140
|
+
};
|
141
|
+
declare const statePseudoMapDocsMode: Record<PossibleStates | 'rest', string>;
|
142
|
+
declare function findFixtureType(property: SelectedConfigurableProperty<ConfigurablePropertiesName, string>, variantKey: string): string;
|
143
|
+
declare function toMinimalDbConfigObject<C extends ComponentConfig>(config: C): any;
|
144
|
+
declare function generateClassName({ componentName, variantKey, variantValue, layer, layerOptionalPseudoSelector, subComponentName, stateKey, stateValue, }: {
|
145
|
+
componentName: string;
|
146
|
+
variantKey: string;
|
147
|
+
variantValue?: string;
|
148
|
+
layer: string;
|
149
|
+
layerOptionalPseudoSelector?: string;
|
150
|
+
subComponentName?: string;
|
151
|
+
stateKey?: string;
|
152
|
+
stateValue?: string;
|
153
|
+
}): string;
|
154
|
+
declare function generateDeclaration({ componentName, variantKey, variantValue, layer, layerOptionalPseudoSelector, subComponentName, stateKey, stateValue, schema, propertyKey, originalPropertyDefinition, theme, currentStyles, previewOptions, }: {
|
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
|
+
schema: unknown;
|
164
|
+
propertyKey: string;
|
165
|
+
originalPropertyDefinition: SelectedConfigurableProperty<ConfigurablePropertiesName, any>;
|
166
|
+
theme: ThemeFn;
|
167
|
+
currentStyles: Readonly<Record<string, Record<string, string>>>;
|
168
|
+
previewOptions?: {
|
169
|
+
generatePseudoStateClassModifier?: boolean;
|
170
|
+
forcePseudoState?: boolean;
|
171
|
+
};
|
172
|
+
}): Record<string, Record<string, string>>;
|
173
|
+
declare function generateStyles<C extends ComponentConfig>(config: C, schema: any, theme: ThemeFn, previewOptions?: {
|
174
|
+
generatePseudoStateClassModifier: boolean;
|
175
|
+
forcePseudoState: boolean;
|
176
|
+
}): Record<string, Record<string, string>>;
|
177
|
+
declare function createConfigurableProperty<C extends ConfigurablePropertiesName, O extends string, T extends (typeof configurableProperties)[C]['possibleFixtures'], V extends readonly (readonly string[])[] = readonly (readonly string[])[]>(prop: {
|
178
|
+
name: C;
|
179
|
+
typeOfFixture: T;
|
180
|
+
values: V;
|
181
|
+
defaults: {
|
182
|
+
[K in O]: V[number][number];
|
183
|
+
};
|
184
|
+
label: string;
|
185
|
+
pseudoStates?: PossibleStates[];
|
186
|
+
supportsCustom?: boolean;
|
187
|
+
}): SelectedConfigurableProperty<C, O, T, V>;
|
188
|
+
/**
|
189
|
+
* @deprecated use the new functions instead
|
190
|
+
*/
|
191
|
+
declare function createVariantConfig<O extends string, T extends Record<string, SelectedConfigurableProperty<ConfigurablePropertiesName, O>>>(config: {
|
192
|
+
label: string;
|
193
|
+
description: string;
|
194
|
+
isConfigurable: boolean;
|
195
|
+
default: O;
|
196
|
+
options: readonly O[];
|
197
|
+
properties: T;
|
198
|
+
}): VariantConfig<O>;
|
199
|
+
declare function createComponentStateConfig(config: {
|
200
|
+
label: string;
|
201
|
+
options: string[];
|
202
|
+
layers: {
|
203
|
+
root: LayerConfig;
|
204
|
+
} & Record<string, LayerConfig>;
|
205
|
+
}): ComponentStateConfig;
|
206
|
+
declare function createVariantConfigWithProperties(config: {
|
207
|
+
label: string;
|
208
|
+
description: string;
|
209
|
+
isConfigurable: boolean;
|
210
|
+
default: string;
|
211
|
+
options: readonly string[];
|
212
|
+
layers: {
|
213
|
+
root: LayerConfig;
|
214
|
+
} & Record<string, LayerConfig>;
|
215
|
+
}): VariantConfigWithProperties;
|
216
|
+
declare function createVariantConfigWithComponentStates(config: {
|
217
|
+
label: string;
|
218
|
+
description: string;
|
219
|
+
isConfigurable: boolean;
|
220
|
+
default: string;
|
221
|
+
options: readonly string[];
|
222
|
+
componentStates: Record<string, ComponentStateConfig>;
|
223
|
+
}): VariantConfigWithComponentStates;
|
224
|
+
declare function createComponentStates(config: {
|
225
|
+
label: string;
|
226
|
+
options: string[];
|
227
|
+
layers: {
|
228
|
+
root: LayerConfig;
|
229
|
+
} & Record<string, LayerConfig>;
|
230
|
+
}): ComponentStateConfig;
|
231
|
+
declare function createLayerConfig(config: {
|
232
|
+
label: string;
|
233
|
+
pseudoSelector?: string;
|
234
|
+
properties: Readonly<Record<string, SelectedConfigurableProperty<ConfigurablePropertiesName, string>>>;
|
235
|
+
}): LayerConfig;
|
236
|
+
declare function createSubComponentConfig(config: {
|
237
|
+
label: string;
|
238
|
+
description: string;
|
239
|
+
overrideComponentName?: string;
|
240
|
+
variants: Record<string, VariantConfigWithProperties | VariantConfigWithComponentStates>;
|
241
|
+
}): SubComponentConfig;
|
242
|
+
|
243
|
+
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 };
|
package/dist/index.cjs
CHANGED
@@ -1 +1 @@
|
|
1
|
-
"use strict";var e=require("./chunk-YV2EYDJK.cjs"),t=require("./chunk-OVXGAHLE.cjs"),r=require("./chunk-BCFYKKRU.cjs"),n=require("./chunk-ZSLO4JSU.cjs"),o=require("./chunk-J7PUOUXC.cjs"),i=require("./chunk-BYASTYEI.cjs"),u=require("./chunk-4NZKRK55.cjs"),a=require("react"),c=require("react/jsx-runtime"),f=require("@yahoo/uds/client"),p=a.forwardRef((function(e,r){return c.jsx(t.DividerInternal,{ref:r,...e})}));/*! © 2025 Yahoo, Inc. UDS v0.0.0-development */p.displayName="Divider";var s=a.forwardRef((function({variant:e="primary",textVariant:t,startIcon:n,endIcon:o,alwaysUnderline:i=!1,children:u,className:f,...p},s){const b=!t,O=a.useMemo((()=>{const n=!b&&r.getStyles({linkTextStyleRoot:t,fontSize:t,fontFamily:t,fontWeight:t,lineHeight:t,textTransform:t});return r.getStyles({linkVariantRoot:e,display:"inline-flex",alignItems:"center",className:r.cx(n,"uds-ring",i&&"underline",f)})}),[i,b,t,e,f]),g=r.getStyles({linkVariantIconStart:e,linkTextStyleIcon:t,className:r.cx(b&&"w-[0.7em] h-[0.7em]")}),l=r.getStyles({linkVariantIconEnd:e,linkTextStyleIcon:t,className:r.cx(b&&"w-[0.7em] h-[0.7em]")}),P={variant:"outline",color:"current"};return c.jsxs("a",{ref:s,className:O,...p,children:[n&&c.jsx(r.IconSlot,{className:g,icon:n,iconProps:P,"data-testid":"start-icon"}),u,o&&c.jsx(r.IconSlot,{className:l,icon:o,iconProps:P,"data-testid":"end-icon"})]})}));s.displayName="Link",Object.defineProperty(exports,"FormLabel",{enumerable:!0,get:function(){return e.FormLabel}}),Object.defineProperty(exports,"Image",{enumerable:!0,get:function(){return e.Image}}),Object.defineProperty(exports,"InputHelpText",{enumerable:!0,get:function(){return e.InputHelpTextMemo}}),Object.defineProperty(exports,"Box",{enumerable:!0,get:function(){return r.Box}}),Object.defineProperty(exports,"HStack",{enumerable:!0,get:function(){return r.HStack}}),Object.defineProperty(exports,"Icon",{enumerable:!0,get:function(){return r.Icon}}),Object.defineProperty(exports,"Text",{enumerable:!0,get:function(){return r.Text}}),Object.defineProperty(exports,"VStack",{enumerable:!0,get:function(){return r.VStack}}),Object.defineProperty(exports,"cva",{enumerable:!0,get:function(){return r.cva}}),Object.defineProperty(exports,"cx",{enumerable:!0,get:function(){return r.cx}}),Object.defineProperty(exports,"getStyles",{enumerable:!0,get:function(){return r.getStyles}}),Object.defineProperty(exports,"DEFAULT_COLOR_MODE",{enumerable:!0,get:function(){return n.DEFAULT_COLOR_MODE}}),Object.defineProperty(exports,"DEFAULT_COLOR_MODE_FOR_APP",{enumerable:!0,get:function(){return n.DEFAULT_COLOR_MODE_FOR_APP}}),Object.defineProperty(exports,"DEFAULT_HIGH_CONTRAST_MODE",{enumerable:!0,get:function(){return n.DEFAULT_HIGH_CONTRAST_MODE}}),Object.defineProperty(exports,"DEFAULT_REGION_MODE",{enumerable:!0,get:function(){return n.DEFAULT_REGION_MODE}}),Object.defineProperty(exports,"DEFAULT_SCALE_MODE",{enumerable:!0,get:function(){return n.DEFAULT_SCALE_MODE}}),Object.defineProperty(exports,"DEFAULT_SCALE_MODE_FOR_APP",{enumerable:!0,get:function(){return n.DEFAULT_SCALE_MODE_FOR_APP}}),Object.defineProperty(exports,"FONT_DECLARATIONS_MAP",{enumerable:!0,get:function(){return n.FONT_DECLARATIONS_MAP}}),Object.defineProperty(exports,"alwaysPalette",{enumerable:!0,get:function(){return n.alwaysPalette}}),Object.defineProperty(exports,"button",{enumerable:!0,get:function(){return n.button}}),Object.defineProperty(exports,"cartesianProduct",{enumerable:!0,get:function(){return n.cartesianProduct}}),Object.defineProperty(exports,"coalesceConfigVariant",{enumerable:!0,get:function(){return n.coalesceConfigVariant}}),Object.defineProperty(exports,"configurableProperties",{enumerable:!0,get:function(){return n.configurableProperties}}),Object.defineProperty(exports,"createComponentStateConfig",{enumerable:!0,get:function(){return n.createComponentStateConfig}}),Object.defineProperty(exports,"createComponentStates",{enumerable:!0,get:function(){return n.createComponentStates}}),Object.defineProperty(exports,"createConfigurableProperty",{enumerable:!0,get:function(){return n.createConfigurableProperty}}),Object.defineProperty(exports,"createLayerConfig",{enumerable:!0,get:function(){return n.createLayerConfig}}),Object.defineProperty(exports,"createSubComponentConfig",{enumerable:!0,get:function(){return n.createSubComponentConfig}}),Object.defineProperty(exports,"createVariantConfig",{enumerable:!0,get:function(){return n.createVariantConfig}}),Object.defineProperty(exports,"createVariantConfigWithComponentStates",{enumerable:!0,get:function(){return n.createVariantConfigWithComponentStates}}),Object.defineProperty(exports,"createVariantConfigWithProperties",{enumerable:!0,get:function(){return n.createVariantConfigWithProperties}}),Object.defineProperty(exports,"defaultTokensConfig",{enumerable:!0,get:function(){return n.defaultTokensConfig}}),Object.defineProperty(exports,"defaultUniversalTokensConfigAuto",{enumerable:!0,get:function(){return n.defaultUniversalTokensConfigAuto}}),Object.defineProperty(exports,"findFixtureType",{enumerable:!0,get:function(){return n.findFixtureType}}),Object.defineProperty(exports,"fontWeightMap",{enumerable:!0,get:function(){return n.fontWeightMap}}),Object.defineProperty(exports,"fromEntries",{enumerable:!0,get:function(){return n.fromEntries}}),Object.defineProperty(exports,"generateClassName",{enumerable:!0,get:function(){return n.generateClassName}}),Object.defineProperty(exports,"generateDeclaration",{enumerable:!0,get:function(){return n.generateDeclaration}}),Object.defineProperty(exports,"generateKeyFromFlatConfigPath",{enumerable:!0,get:function(){return n.generateKeyFromFlatConfigPath}}),Object.defineProperty(exports,"generateSchemaKey",{enumerable:!0,get:function(){return n.generateSchemaKey}}),Object.defineProperty(exports,"generateStyles",{enumerable:!0,get:function(){return n.generateStyles}}),Object.defineProperty(exports,"getConfigDefaultValue",{enumerable:!0,get:function(){return n.getConfigDefaultValue}}),Object.defineProperty(exports,"getConfigPseudoStateVariables",{enumerable:!0,get:function(){return n.getConfigPseudoStateVariables}}),Object.defineProperty(exports,"getConfigPseudoStateVariablesWithSetter",{enumerable:!0,get:function(){return n.getConfigPseudoStateVariablesWithSetter}}),Object.defineProperty(exports,"getConfigSubcomponents",{enumerable:!0,get:function(){return n.getConfigSubcomponents}}),Object.defineProperty(exports,"getConfigVariantComponentStates",{enumerable:!0,get:function(){return n.getConfigVariantComponentStates}}),Object.defineProperty(exports,"getConfigVariantComponentStatesMatrix",{enumerable:!0,get:function(){return n.getConfigVariantComponentStatesMatrix}}),Object.defineProperty(exports,"getConfigVariantProperties",{enumerable:!0,get:function(){return n.getConfigVariantProperties}}),Object.defineProperty(exports,"getConfigVariantPseudoStates",{enumerable:!0,get:function(){return n.getConfigVariantPseudoStates}}),Object.defineProperty(exports,"getConfigVariants",{enumerable:!0,get:function(){return n.getConfigVariants}}),Object.defineProperty(exports,"getDefaultButtonBaseMap",{enumerable:!0,get:function(){return n.getDefaultButtonBaseMap}}),Object.defineProperty(exports,"isConfigDefaultValue",{enumerable:!0,get:function(){return n.isConfigDefaultValue}}),Object.defineProperty(exports,"parseButtonVariantFlat",{enumerable:!0,get:function(){return n.parseButtonVariantFlat}}),Object.defineProperty(exports,"parseDeprecatedButtonPaletteVariant",{enumerable:!0,get:function(){return n.parseDeprecatedButtonPaletteVariant}}),Object.defineProperty(exports,"setConfigPseudoStateVariable",{enumerable:!0,get:function(){return n.setConfigPseudoStateVariable}}),Object.defineProperty(exports,"shadow",{enumerable:!0,get:function(){return n.shadow}}),Object.defineProperty(exports,"statePseudoMapDocsMode",{enumerable:!0,get:function(){return n.statePseudoMapDocsMode}}),Object.defineProperty(exports,"toMinimalDbConfigObject",{enumerable:!0,get:function(){return n.toMinimalDbConfigObject}}),Object.defineProperty(exports,"entries",{enumerable:!0,get:function(){return o.entries}}),Object.defineProperty(exports,"mapValues",{enumerable:!0,get:function(){return o.mapValues}}),Object.defineProperty(exports,"variants",{enumerable:!0,get:function(){return i.variants}}),Object.defineProperty(exports,"AVATAR_SIZE_PREFIX",{enumerable:!0,get:function(){return u.AVATAR_SIZE_PREFIX}}),Object.defineProperty(exports,"BORDER_RADIUS_PREFIX",{enumerable:!0,get:function(){return u.BORDER_RADIUS_PREFIX}}),Object.defineProperty(exports,"BORDER_WIDTH_PREFIX",{enumerable:!0,get:function(){return u.BORDER_WIDTH_PREFIX}}),Object.defineProperty(exports,"BUTTON_CSS_VAR_MAP",{enumerable:!0,get:function(){return u.BUTTON_CSS_VAR_MAP}}),Object.defineProperty(exports,"DARK_COLOR_MODE_CLASSNAME",{enumerable:!0,get:function(){return u.DARK_COLOR_MODE_CLASSNAME}}),Object.defineProperty(exports,"DEFAULT_COLOR_MODE_CLASSNAME",{enumerable:!0,get:function(){return u.DEFAULT_COLOR_MODE_CLASSNAME}}),Object.defineProperty(exports,"DEFAULT_SCALE_MODE_CLASSNAME",{enumerable:!0,get:function(){return u.DEFAULT_SCALE_MODE_CLASSNAME}}),Object.defineProperty(exports,"FONT_FAMILY_PREFIX",{enumerable:!0,get:function(){return u.FONT_FAMILY_PREFIX}}),Object.defineProperty(exports,"FONT_SIZE_PREFIX",{enumerable:!0,get:function(){return u.FONT_SIZE_PREFIX}}),Object.defineProperty(exports,"FONT_SLANT_PREFIX",{enumerable:!0,get:function(){return u.FONT_SLANT_PREFIX}}),Object.defineProperty(exports,"FONT_WEIGHT_PREFIX",{enumerable:!0,get:function(){return u.FONT_WEIGHT_PREFIX}}),Object.defineProperty(exports,"FONT_WIDTH_PREFIX",{enumerable:!0,get:function(){return u.FONT_WIDTH_PREFIX}}),Object.defineProperty(exports,"ICON_BUTTON_CSS_VAR_MAP",{enumerable:!0,get:function(){return u.ICON_BUTTON_CSS_VAR_MAP}}),Object.defineProperty(exports,"ICON_SIZE_PREFIX",{enumerable:!0,get:function(){return u.ICON_SIZE_PREFIX}}),Object.defineProperty(exports,"LARGE_SCALE_MODE_CLASSNAME",{enumerable:!0,get:function(){return u.LARGE_SCALE_MODE_CLASSNAME}}),Object.defineProperty(exports,"LIGHT_COLOR_MODE_CLASSNAME",{enumerable:!0,get:function(){return u.LIGHT_COLOR_MODE_CLASSNAME}}),Object.defineProperty(exports,"LINE_HEIGHT_PREFIX",{enumerable:!0,get:function(){return u.LINE_HEIGHT_PREFIX}}),Object.defineProperty(exports,"MEDIUM_SCALE_MODE_CLASSNAME",{enumerable:!0,get:function(){return u.MEDIUM_SCALE_MODE_CLASSNAME}}),Object.defineProperty(exports,"MOTION_PREFIX",{enumerable:!0,get:function(){return u.MOTION_PREFIX}}),Object.defineProperty(exports,"PSEUDO_STYLE_SELECTOR_MAP",{enumerable:!0,get:function(){return u.PSEUDO_STYLE_SELECTOR_MAP}}),Object.defineProperty(exports,"SMALL_SCALE_MODE_CLASSNAME",{enumerable:!0,get:function(){return u.SMALL_SCALE_MODE_CLASSNAME}}),Object.defineProperty(exports,"SPECTRUM_COLOR_PREFIX",{enumerable:!0,get:function(){return u.SPECTRUM_COLOR_PREFIX}}),Object.defineProperty(exports,"TEXT_RESPONSIVE_CLASSNAME",{enumerable:!0,get:function(){return u.TEXT_RESPONSIVE_CLASSNAME}}),Object.defineProperty(exports,"TEXT_TRANSFORM_PREFIX",{enumerable:!0,get:function(){return u.TEXT_TRANSFORM_PREFIX}}),Object.defineProperty(exports,"UDS_PREFIX",{enumerable:!0,get:function(){return u.UDS_PREFIX}}),Object.defineProperty(exports,"XLARGE_SCALE_MODE_CLASSNAME",{enumerable:!0,get:function(){return u.XLARGE_SCALE_MODE_CLASSNAME}}),Object.defineProperty(exports,"XSMALL_SCALE_MODE_CLASSNAME",{enumerable:!0,get:function(){return u.XSMALL_SCALE_MODE_CLASSNAME}}),Object.defineProperty(exports,"XXLARGE_SCALE_MODE_CLASSNAME",{enumerable:!0,get:function(){return u.XXLARGE_SCALE_MODE_CLASSNAME}}),Object.defineProperty(exports,"XXXLARGE_SCALE_MODE_CLASSNAME",{enumerable:!0,get:function(){return u.XXXLARGE_SCALE_MODE_CLASSNAME}}),Object.defineProperty(exports,"Avatar",{enumerable:!0,get:function(){return f.Avatar}}),Object.defineProperty(exports,"AvatarIcon",{enumerable:!0,get:function(){return f.AvatarIcon}}),Object.defineProperty(exports,"AvatarImage",{enumerable:!0,get:function(){return f.AvatarImage}}),Object.defineProperty(exports,"AvatarText",{enumerable:!0,get:function(){return f.AvatarText}}),Object.defineProperty(exports,"Badge",{enumerable:!0,get:function(){return f.Badge}}),Object.defineProperty(exports,"Button",{enumerable:!0,get:function(){return f.Button}}),Object.defineProperty(exports,"Checkbox",{enumerable:!0,get:function(){return f.Checkbox}}),Object.defineProperty(exports,"Chip",{enumerable:!0,get:function(){return f.Chip}}),Object.defineProperty(exports,"ChipButton",{enumerable:!0,get:function(){return f.ChipButton}}),Object.defineProperty(exports,"ChipDismissible",{enumerable:!0,get:function(){return f.ChipDismissible}}),Object.defineProperty(exports,"ChipLink",{enumerable:!0,get:function(){return f.ChipLink}}),Object.defineProperty(exports,"ChipToggle",{enumerable:!0,get:function(){return f.ChipToggle}}),Object.defineProperty(exports,"IconButton",{enumerable:!0,get:function(){return f.IconButton}}),Object.defineProperty(exports,"Input",{enumerable:!0,get:function(){return f.Input}}),Object.defineProperty(exports,"Menu",{enumerable:!0,get:function(){return f.Menu}}),Object.defineProperty(exports,"Pressable",{enumerable:!0,get:function(){return f.Pressable}}),Object.defineProperty(exports,"Radio",{enumerable:!0,get:function(){return f.Radio}}),Object.defineProperty(exports,"RadioGroupProvider",{enumerable:!0,get:function(){return f.RadioGroupProvider}}),Object.defineProperty(exports,"SpringMotionConfig",{enumerable:!0,get:function(){return f.SpringMotionConfig}}),Object.defineProperty(exports,"Switch",{enumerable:!0,get:function(){return f.Switch}}),exports.Divider=p,exports.Link=s;
|
1
|
+
"use strict";var e=require("./chunk-NTSGVZZG.cjs"),t=require("./chunk-5IAU2XDU.cjs"),r=require("./chunk-E44FG7CA.cjs"),n=require("./chunk-6HKNRHLK.cjs"),o=require("./chunk-DEDN4TJ3.cjs"),i=require("./chunk-ZSLO4JSU.cjs"),u=require("./chunk-J7PUOUXC.cjs"),a=require("./chunk-BYASTYEI.cjs"),c=require("./chunk-4NZKRK55.cjs"),f=require("react"),p=require("react/jsx-runtime"),s=require("@yahoo/uds/client"),b=f.forwardRef((function(e,r){return p.jsx(t.DividerInternal,{ref:r,...e})}));/*! © 2025 Yahoo, Inc. UDS v0.0.0-development */b.displayName="Divider";var O=f.forwardRef((function({variant:e="primary",textVariant:t,startIcon:r,endIcon:n,alwaysUnderline:i=!1,children:u,className:a,...c},s){const b=!t,O=f.useMemo((()=>{const r=!b&&o.getStyles({linkTextStyleRoot:t,fontSize:t,fontFamily:t,fontWeight:t,lineHeight:t,textTransform:t});return o.getStyles({linkVariantRoot:e,display:"inline-flex",alignItems:"center",className:o.cx(r,"uds-ring",i&&"underline",a)})}),[i,b,t,e,a]),g=o.getStyles({linkVariantIconStart:e,linkTextStyleIcon:t,className:o.cx(b&&"w-[0.7em] h-[0.7em]")}),l=o.getStyles({linkVariantIconEnd:e,linkTextStyleIcon:t,className:o.cx(b&&"w-[0.7em] h-[0.7em]")}),P={variant:"outline",color:"current"};return p.jsxs("a",{ref:s,className:O,...c,children:[r&&p.jsx(o.IconSlot,{className:g,icon:r,iconProps:P,"data-testid":"start-icon"}),u,n&&p.jsx(o.IconSlot,{className:l,icon:n,iconProps:P,"data-testid":"end-icon"})]})}));O.displayName="Link",Object.defineProperty(exports,"Image",{enumerable:!0,get:function(){return e.Image}}),Object.defineProperty(exports,"InputHelpText",{enumerable:!0,get:function(){return e.InputHelpTextMemo}}),Object.defineProperty(exports,"HStack",{enumerable:!0,get:function(){return r.HStack}}),Object.defineProperty(exports,"VStack",{enumerable:!0,get:function(){return r.VStack}}),Object.defineProperty(exports,"FormLabel",{enumerable:!0,get:function(){return n.FormLabel}}),Object.defineProperty(exports,"Box",{enumerable:!0,get:function(){return o.Box}}),Object.defineProperty(exports,"Icon",{enumerable:!0,get:function(){return o.Icon}}),Object.defineProperty(exports,"Text",{enumerable:!0,get:function(){return o.Text}}),Object.defineProperty(exports,"cva",{enumerable:!0,get:function(){return o.cva}}),Object.defineProperty(exports,"cx",{enumerable:!0,get:function(){return o.cx}}),Object.defineProperty(exports,"getStyles",{enumerable:!0,get:function(){return o.getStyles}}),Object.defineProperty(exports,"DEFAULT_COLOR_MODE",{enumerable:!0,get:function(){return i.DEFAULT_COLOR_MODE}}),Object.defineProperty(exports,"DEFAULT_COLOR_MODE_FOR_APP",{enumerable:!0,get:function(){return i.DEFAULT_COLOR_MODE_FOR_APP}}),Object.defineProperty(exports,"DEFAULT_HIGH_CONTRAST_MODE",{enumerable:!0,get:function(){return i.DEFAULT_HIGH_CONTRAST_MODE}}),Object.defineProperty(exports,"DEFAULT_REGION_MODE",{enumerable:!0,get:function(){return i.DEFAULT_REGION_MODE}}),Object.defineProperty(exports,"DEFAULT_SCALE_MODE",{enumerable:!0,get:function(){return i.DEFAULT_SCALE_MODE}}),Object.defineProperty(exports,"DEFAULT_SCALE_MODE_FOR_APP",{enumerable:!0,get:function(){return i.DEFAULT_SCALE_MODE_FOR_APP}}),Object.defineProperty(exports,"FONT_DECLARATIONS_MAP",{enumerable:!0,get:function(){return i.FONT_DECLARATIONS_MAP}}),Object.defineProperty(exports,"alwaysPalette",{enumerable:!0,get:function(){return i.alwaysPalette}}),Object.defineProperty(exports,"button",{enumerable:!0,get:function(){return i.button}}),Object.defineProperty(exports,"cartesianProduct",{enumerable:!0,get:function(){return i.cartesianProduct}}),Object.defineProperty(exports,"coalesceConfigVariant",{enumerable:!0,get:function(){return i.coalesceConfigVariant}}),Object.defineProperty(exports,"configurableProperties",{enumerable:!0,get:function(){return i.configurableProperties}}),Object.defineProperty(exports,"createComponentStateConfig",{enumerable:!0,get:function(){return i.createComponentStateConfig}}),Object.defineProperty(exports,"createComponentStates",{enumerable:!0,get:function(){return i.createComponentStates}}),Object.defineProperty(exports,"createConfigurableProperty",{enumerable:!0,get:function(){return i.createConfigurableProperty}}),Object.defineProperty(exports,"createLayerConfig",{enumerable:!0,get:function(){return i.createLayerConfig}}),Object.defineProperty(exports,"createSubComponentConfig",{enumerable:!0,get:function(){return i.createSubComponentConfig}}),Object.defineProperty(exports,"createVariantConfig",{enumerable:!0,get:function(){return i.createVariantConfig}}),Object.defineProperty(exports,"createVariantConfigWithComponentStates",{enumerable:!0,get:function(){return i.createVariantConfigWithComponentStates}}),Object.defineProperty(exports,"createVariantConfigWithProperties",{enumerable:!0,get:function(){return i.createVariantConfigWithProperties}}),Object.defineProperty(exports,"defaultTokensConfig",{enumerable:!0,get:function(){return i.defaultTokensConfig}}),Object.defineProperty(exports,"defaultUniversalTokensConfigAuto",{enumerable:!0,get:function(){return i.defaultUniversalTokensConfigAuto}}),Object.defineProperty(exports,"findFixtureType",{enumerable:!0,get:function(){return i.findFixtureType}}),Object.defineProperty(exports,"fontWeightMap",{enumerable:!0,get:function(){return i.fontWeightMap}}),Object.defineProperty(exports,"fromEntries",{enumerable:!0,get:function(){return i.fromEntries}}),Object.defineProperty(exports,"generateClassName",{enumerable:!0,get:function(){return i.generateClassName}}),Object.defineProperty(exports,"generateDeclaration",{enumerable:!0,get:function(){return i.generateDeclaration}}),Object.defineProperty(exports,"generateKeyFromFlatConfigPath",{enumerable:!0,get:function(){return i.generateKeyFromFlatConfigPath}}),Object.defineProperty(exports,"generateSchemaKey",{enumerable:!0,get:function(){return i.generateSchemaKey}}),Object.defineProperty(exports,"generateStyles",{enumerable:!0,get:function(){return i.generateStyles}}),Object.defineProperty(exports,"getConfigDefaultValue",{enumerable:!0,get:function(){return i.getConfigDefaultValue}}),Object.defineProperty(exports,"getConfigPseudoStateVariables",{enumerable:!0,get:function(){return i.getConfigPseudoStateVariables}}),Object.defineProperty(exports,"getConfigPseudoStateVariablesWithSetter",{enumerable:!0,get:function(){return i.getConfigPseudoStateVariablesWithSetter}}),Object.defineProperty(exports,"getConfigSubcomponents",{enumerable:!0,get:function(){return i.getConfigSubcomponents}}),Object.defineProperty(exports,"getConfigVariantComponentStates",{enumerable:!0,get:function(){return i.getConfigVariantComponentStates}}),Object.defineProperty(exports,"getConfigVariantComponentStatesMatrix",{enumerable:!0,get:function(){return i.getConfigVariantComponentStatesMatrix}}),Object.defineProperty(exports,"getConfigVariantProperties",{enumerable:!0,get:function(){return i.getConfigVariantProperties}}),Object.defineProperty(exports,"getConfigVariantPseudoStates",{enumerable:!0,get:function(){return i.getConfigVariantPseudoStates}}),Object.defineProperty(exports,"getConfigVariants",{enumerable:!0,get:function(){return i.getConfigVariants}}),Object.defineProperty(exports,"getDefaultButtonBaseMap",{enumerable:!0,get:function(){return i.getDefaultButtonBaseMap}}),Object.defineProperty(exports,"isConfigDefaultValue",{enumerable:!0,get:function(){return i.isConfigDefaultValue}}),Object.defineProperty(exports,"parseButtonVariantFlat",{enumerable:!0,get:function(){return i.parseButtonVariantFlat}}),Object.defineProperty(exports,"parseDeprecatedButtonPaletteVariant",{enumerable:!0,get:function(){return i.parseDeprecatedButtonPaletteVariant}}),Object.defineProperty(exports,"setConfigPseudoStateVariable",{enumerable:!0,get:function(){return i.setConfigPseudoStateVariable}}),Object.defineProperty(exports,"shadow",{enumerable:!0,get:function(){return i.shadow}}),Object.defineProperty(exports,"statePseudoMapDocsMode",{enumerable:!0,get:function(){return i.statePseudoMapDocsMode}}),Object.defineProperty(exports,"toMinimalDbConfigObject",{enumerable:!0,get:function(){return i.toMinimalDbConfigObject}}),Object.defineProperty(exports,"entries",{enumerable:!0,get:function(){return u.entries}}),Object.defineProperty(exports,"mapValues",{enumerable:!0,get:function(){return u.mapValues}}),Object.defineProperty(exports,"variants",{enumerable:!0,get:function(){return a.variants}}),Object.defineProperty(exports,"AVATAR_SIZE_PREFIX",{enumerable:!0,get:function(){return c.AVATAR_SIZE_PREFIX}}),Object.defineProperty(exports,"BORDER_RADIUS_PREFIX",{enumerable:!0,get:function(){return c.BORDER_RADIUS_PREFIX}}),Object.defineProperty(exports,"BORDER_WIDTH_PREFIX",{enumerable:!0,get:function(){return c.BORDER_WIDTH_PREFIX}}),Object.defineProperty(exports,"BUTTON_CSS_VAR_MAP",{enumerable:!0,get:function(){return c.BUTTON_CSS_VAR_MAP}}),Object.defineProperty(exports,"DARK_COLOR_MODE_CLASSNAME",{enumerable:!0,get:function(){return c.DARK_COLOR_MODE_CLASSNAME}}),Object.defineProperty(exports,"DEFAULT_COLOR_MODE_CLASSNAME",{enumerable:!0,get:function(){return c.DEFAULT_COLOR_MODE_CLASSNAME}}),Object.defineProperty(exports,"DEFAULT_SCALE_MODE_CLASSNAME",{enumerable:!0,get:function(){return c.DEFAULT_SCALE_MODE_CLASSNAME}}),Object.defineProperty(exports,"FONT_FAMILY_PREFIX",{enumerable:!0,get:function(){return c.FONT_FAMILY_PREFIX}}),Object.defineProperty(exports,"FONT_SIZE_PREFIX",{enumerable:!0,get:function(){return c.FONT_SIZE_PREFIX}}),Object.defineProperty(exports,"FONT_SLANT_PREFIX",{enumerable:!0,get:function(){return c.FONT_SLANT_PREFIX}}),Object.defineProperty(exports,"FONT_WEIGHT_PREFIX",{enumerable:!0,get:function(){return c.FONT_WEIGHT_PREFIX}}),Object.defineProperty(exports,"FONT_WIDTH_PREFIX",{enumerable:!0,get:function(){return c.FONT_WIDTH_PREFIX}}),Object.defineProperty(exports,"ICON_BUTTON_CSS_VAR_MAP",{enumerable:!0,get:function(){return c.ICON_BUTTON_CSS_VAR_MAP}}),Object.defineProperty(exports,"ICON_SIZE_PREFIX",{enumerable:!0,get:function(){return c.ICON_SIZE_PREFIX}}),Object.defineProperty(exports,"LARGE_SCALE_MODE_CLASSNAME",{enumerable:!0,get:function(){return c.LARGE_SCALE_MODE_CLASSNAME}}),Object.defineProperty(exports,"LIGHT_COLOR_MODE_CLASSNAME",{enumerable:!0,get:function(){return c.LIGHT_COLOR_MODE_CLASSNAME}}),Object.defineProperty(exports,"LINE_HEIGHT_PREFIX",{enumerable:!0,get:function(){return c.LINE_HEIGHT_PREFIX}}),Object.defineProperty(exports,"MEDIUM_SCALE_MODE_CLASSNAME",{enumerable:!0,get:function(){return c.MEDIUM_SCALE_MODE_CLASSNAME}}),Object.defineProperty(exports,"MOTION_PREFIX",{enumerable:!0,get:function(){return c.MOTION_PREFIX}}),Object.defineProperty(exports,"PSEUDO_STYLE_SELECTOR_MAP",{enumerable:!0,get:function(){return c.PSEUDO_STYLE_SELECTOR_MAP}}),Object.defineProperty(exports,"SMALL_SCALE_MODE_CLASSNAME",{enumerable:!0,get:function(){return c.SMALL_SCALE_MODE_CLASSNAME}}),Object.defineProperty(exports,"SPECTRUM_COLOR_PREFIX",{enumerable:!0,get:function(){return c.SPECTRUM_COLOR_PREFIX}}),Object.defineProperty(exports,"TEXT_RESPONSIVE_CLASSNAME",{enumerable:!0,get:function(){return c.TEXT_RESPONSIVE_CLASSNAME}}),Object.defineProperty(exports,"TEXT_TRANSFORM_PREFIX",{enumerable:!0,get:function(){return c.TEXT_TRANSFORM_PREFIX}}),Object.defineProperty(exports,"UDS_PREFIX",{enumerable:!0,get:function(){return c.UDS_PREFIX}}),Object.defineProperty(exports,"XLARGE_SCALE_MODE_CLASSNAME",{enumerable:!0,get:function(){return c.XLARGE_SCALE_MODE_CLASSNAME}}),Object.defineProperty(exports,"XSMALL_SCALE_MODE_CLASSNAME",{enumerable:!0,get:function(){return c.XSMALL_SCALE_MODE_CLASSNAME}}),Object.defineProperty(exports,"XXLARGE_SCALE_MODE_CLASSNAME",{enumerable:!0,get:function(){return c.XXLARGE_SCALE_MODE_CLASSNAME}}),Object.defineProperty(exports,"XXXLARGE_SCALE_MODE_CLASSNAME",{enumerable:!0,get:function(){return c.XXXLARGE_SCALE_MODE_CLASSNAME}}),Object.defineProperty(exports,"Avatar",{enumerable:!0,get:function(){return s.Avatar}}),Object.defineProperty(exports,"AvatarIcon",{enumerable:!0,get:function(){return s.AvatarIcon}}),Object.defineProperty(exports,"AvatarImage",{enumerable:!0,get:function(){return s.AvatarImage}}),Object.defineProperty(exports,"AvatarText",{enumerable:!0,get:function(){return s.AvatarText}}),Object.defineProperty(exports,"Badge",{enumerable:!0,get:function(){return s.Badge}}),Object.defineProperty(exports,"Button",{enumerable:!0,get:function(){return s.Button}}),Object.defineProperty(exports,"Checkbox",{enumerable:!0,get:function(){return s.Checkbox}}),Object.defineProperty(exports,"Chip",{enumerable:!0,get:function(){return s.Chip}}),Object.defineProperty(exports,"ChipButton",{enumerable:!0,get:function(){return s.ChipButton}}),Object.defineProperty(exports,"ChipDismissible",{enumerable:!0,get:function(){return s.ChipDismissible}}),Object.defineProperty(exports,"ChipLink",{enumerable:!0,get:function(){return s.ChipLink}}),Object.defineProperty(exports,"ChipToggle",{enumerable:!0,get:function(){return s.ChipToggle}}),Object.defineProperty(exports,"IconButton",{enumerable:!0,get:function(){return s.IconButton}}),Object.defineProperty(exports,"Input",{enumerable:!0,get:function(){return s.Input}}),Object.defineProperty(exports,"Menu",{enumerable:!0,get:function(){return s.Menu}}),Object.defineProperty(exports,"Pressable",{enumerable:!0,get:function(){return s.Pressable}}),Object.defineProperty(exports,"Radio",{enumerable:!0,get:function(){return s.Radio}}),Object.defineProperty(exports,"RadioGroupProvider",{enumerable:!0,get:function(){return s.RadioGroupProvider}}),Object.defineProperty(exports,"SpringMotionConfig",{enumerable:!0,get:function(){return s.SpringMotionConfig}}),Object.defineProperty(exports,"Switch",{enumerable:!0,get:function(){return s.Switch}}),exports.Divider=b,exports.Link=O;
|
package/dist/index.d.cts
CHANGED
@@ -1,15 +1,15 @@
|
|
1
|
-
import { a as DivProps } from './VStack-
|
2
|
-
export { b as Box, B as BoxProps, c as Divider, D as DividerProps, d as VStack, V as VStackProps } from './VStack-
|
1
|
+
import { a as DivProps } from './VStack-CPKfMcLu.cjs';
|
2
|
+
export { b as Box, B as BoxProps, c as Divider, D as DividerProps, d as VStack, V as VStackProps } from './VStack-CPKfMcLu.cjs';
|
3
3
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
4
|
-
import {
|
5
|
-
export {
|
4
|
+
import { v as UniversalFormLabelProps, i as UniversalStackProps, w as IconPropsWithSVGProps, x as ImagePropsWithImgProps, y as UniversalIconSlot, z as UniversalLinkProps, A as UniversalTextProps } from './types-BzCxycgJ.cjs';
|
5
|
+
export { J as AVATAR_SIZE_PREFIX, ai as AlwaysPalette, aj as AlwaysPaletteAlias, ak as AlwaysPaletteColor, al as Animation, am as AriaAttribute, an as AvatarAbbreviationStrategy, ao as AvatarShape, ap as AvatarSize, aq as AvatarSizeConfig, ar as AvatarVariant, K as BORDER_RADIUS_PREFIX, L as BORDER_WIDTH_PREFIX, aa as BUTTON_CSS_VAR_MAP, as as BackgroundColor, at as BackgroundPalette, au as BackgroundPaletteAlias, av as BackgroundStyleProps, aw as BadgeSize, ax as BadgeVariant, ay as BorderRadius, az as BorderRadiusConfig, aA as BorderStyleProps, aB as BorderWidth, aC as BorderWidthConfig, aD as Breakpoint, aE as BreakpointsConfig, aF as ButtonBaseConfig, k as ButtonClassMap, aG as ButtonClassName, aH as ButtonColorConfig, aI as ButtonColorEffect, aJ as ButtonColorEffectConfig, l as ButtonColorProperty, m as ButtonColorPropertyConfig, B as ButtonConfig, aK as ButtonKind, aL as ButtonMotionEffect, aM as ButtonMotionProperty, aN as ButtonMotionPropertyConfig, aO as ButtonPalette, aP as ButtonPaletteColor, aQ as ButtonPaletteConfig, aR as ButtonShadowPropertyConfig, aS as ButtonSize, aT as ButtonSizeConfig, aU as ButtonSizeProperty, aV as ButtonSpectrumColor, aW as ButtonState, aX as ButtonStateConfig, aY as ButtonStateEffectConfig, aZ as ButtonVariant, a_ as ButtonVariantConfig, a$ as ButtonVariantFlat, b0 as CheckboxSize, b1 as CheckboxValue, b2 as CheckboxVariant, b3 as ChipSize, b4 as ChipVariant, C as ColorMode, b5 as ColorModeConfig, b6 as ColorModeForApp, d as ColorsConfig, b7 as ConfigurableDropShadowValues, b8 as ConfigurableInsetShadowValues, b9 as CustomSizingStyleProps, _ as DARK_COLOR_MODE_CLASSNAME, a7 as DEFAULT_COLOR_MODE_CLASSNAME, a8 as DEFAULT_SCALE_MODE_CLASSNAME, ba as DataAttribute, bb as Display, bc as DividerVariant, ad as FONT_DECLARATIONS_MAP, N as FONT_FAMILY_PREFIX, O as FONT_SIZE_PREFIX, R as FONT_SLANT_PREFIX, Q as FONT_WEIGHT_PREFIX, T as FONT_WIDTH_PREFIX, bd as Flex, be as FlexAlignContent, bf as FlexAlignItems, bg as FlexAlignSelf, bh as FlexBasis, bi as FlexDirection, bj as FlexGrow, bk as FlexJustifyContent, bl as FlexShrink, bm as FlexStyleProps, bn as FlexWrap, bo as FontAlias, ae as FontAxisConfig, q as FontConfig, bp as FontCssVar, af as FontDeclarationConfig, p as FontDeclarationItemConfig, ag as FontDeclarationMap, bq as FontFamilyCDNUrl, br as FontFamilyConfig, F as FontID, bs as FontSize, bt as FontSizeConfig, bu as FontSlantConfig, bv as FontType, bw as FontWeightConfig, bx as FontWeightDescriptive, ah as FontWeightForFont, by as FontWeightNumeric, bz as FontWidthConfig, bA as ForegroundColor, bB as ForegroundPalette, bC as ForegroundPaletteAlias, bD as GlobalDefaultsConfig, bE as HighContrastMode, H as Hue, e as HueStep, ab as ICON_BUTTON_CSS_VAR_MAP, V as ICON_SIZE_PREFIX, I as IconButtonClassMap, bF as IconButtonClassName, bG as IconButtonConfig, bH as IconButtonDefaultsConfig, bI as IconButtonSize, bJ as IconSizeConfig, bK as ImageStyleProps, bL as InputSize, a3 as LARGE_SCALE_MODE_CLASSNAME, $ as LIGHT_COLOR_MODE_CLASSNAME, W as LINE_HEIGHT_PREFIX, bM as LayoutStyleProps, bN as LetterSpacing, bO as LineClampAlias, bP as LineColor, bQ as LineHeight, bR as LineHeightConfig, bS as LinePalette, bT as LinePaletteAlias, a2 as MEDIUM_SCALE_MODE_CLASSNAME, X as MOTION_PREFIX, bU as Modes, t as MotionConfig, bV as MotionCssVar, bW as MotionSpringConfig, s as MotionSpringConfigOptions, M as MotionVariant, r as MotionVariantSpeed, bX as MotionVariantValues, bY as Overflow, ac as PSEUDO_STYLE_SELECTOR_MAP, bZ as Palette, f as PaletteConfig, P as PaletteType, b_ as PaletteValue, b$ as Pixels, c0 as PlatformMode, c1 as Position, c2 as PropertyToPaletteAliasMap, c3 as RadioSize, c4 as RadioValue, c5 as RadioVariant, c6 as RegionMode, c7 as Rems, a1 as SMALL_SCALE_MODE_CLASSNAME, Y as SPECTRUM_COLOR_PREFIX, c8 as ScaleConfig, c9 as ScaleEffectMap, S as ScaleMode, ca as ScaleModeConfig, cb as ScaleModeForApp, cc as ShadowColor, cd as ShadowColorConfig, ce as ShadowConfig, cf as ShadowOffset, cg as ShadowOpacity, ch as ShadowPalette, ci as ShadowPaletteAlias, g as ShadowPreset, cj as ShadowSpreadRadius, ck as ShadowStyleProps, u as ShadowType, cl as ShadowTypeConfig, cm as ShadowVariant, cn as ShadowVariantConfig, co as ShadowVariantInvert, cp as ShadowVariantWithInvert, cq as SharedPaletteAlias, n as SpacingAlias, cr as SpacingConfig, cs as SpacingStyleProps, ct as SpectrumColor, cu as SpectrumConfig, cv as StateStyleProps, cw as StyleProps, cx as SwitchSize, a9 as TEXT_RESPONSIVE_CLASSNAME, Z as TEXT_TRANSFORM_PREFIX, cH as TShirtSize, cI as TShirtSizeCommon, cy as TextDecorationLine, cz as TextProperty, cA as TextStyleProps, cB as TextTransform, cC as TextTransformConfig, cD as TextVariant, cE as TransitionDelay, cF as TransitionDuration, cG as TransitionTiming, cJ as TypographyConfig, cK as TypographyResponsiveProperty, cL as TypographyStyle, cM as TypographyStyleProperty, cN as TypographyUnitValue, G as UDS_PREFIX, cO as UdsCssVar, cP as Unitless, cQ as UniversalAvatarIconProps, cR as UniversalAvatarImageProps, cS as UniversalAvatarProps, cT as UniversalAvatarTextProps, cU as UniversalBadgeProps, h as UniversalBoxProps, cV as UniversalButtonProps, cW as UniversalCheckboxProps, cX as UniversalChipBaseProps, cY as UniversalChipButtonProps, cZ as UniversalChipDismissibleProps, c_ as UniversalChipLinkProps, c$ as UniversalChipProps, d0 as UniversalChipToggleProps, j as UniversalDividerProps, d1 as UniversalIconButtonProps, d2 as UniversalIconProps, d3 as UniversalImageProps, U as UniversalInputProps, o as UniversalMenuItemProps, a as UniversalPressableProps, d4 as UniversalRadioGroupProps, d5 as UniversalRadioProps, b as UniversalSwitchProps, c as UniversalTokensConfig, d6 as UniversalTokensConfigAuto, a4 as XLARGE_SCALE_MODE_CLASSNAME, a0 as XSMALL_SCALE_MODE_CLASSNAME, a5 as XXLARGE_SCALE_MODE_CLASSNAME, a6 as XXXLARGE_SCALE_MODE_CLASSNAME, D as alwaysPalette, E as defaultUniversalTokensConfigAuto } from './types-BzCxycgJ.cjs';
|
6
6
|
import * as react from 'react';
|
7
7
|
import { PropsWithChildren, Ref, Dispatch, SetStateAction } from 'react';
|
8
|
-
import { I as InputProps } from './Input-
|
8
|
+
import { I as InputProps } from './Input-BplRyA37.cjs';
|
9
9
|
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, InputProps, Menu, MenuContentProps, MenuDividerProps, MenuItemCheckboxProps, MenuItemProps, MenuPlacement, MenuProviderProps, MenuTriggerProps, Pressable, PressableProps, Radio, RadioGroupProvider, RadioGroupProviderProps, RadioProps, SpringMotionConfig, SpringMotionConfigProps, Switch, SwitchProps } from '@yahoo/uds/client';
|
10
10
|
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, defaultTokensConfig, 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';
|
11
11
|
export { AvatarConfig, BadgeConfig, CheckboxConfig, ChipConfig, DividerConfig, InputConfig, LinkConfig, MenuConfig, RadioConfig, SwitchConfig } from './tokens/automation/configs.cjs';
|
12
|
-
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-
|
12
|
+
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-DB-ACioI.cjs';
|
13
13
|
export { IconSize, IconVariant } from '@yahoo/uds-icons/types';
|
14
14
|
import 'motion/react';
|
15
15
|
import 'type-fest';
|
package/dist/index.d.ts
CHANGED
@@ -1,15 +1,15 @@
|
|
1
|
-
import { a as DivProps } from './VStack-
|
2
|
-
export { b as Box, B as BoxProps, c as Divider, D as DividerProps, d as VStack, V as VStackProps } from './VStack-
|
1
|
+
import { a as DivProps } from './VStack-Diuzxknf.js';
|
2
|
+
export { b as Box, B as BoxProps, c as Divider, D as DividerProps, d as VStack, V as VStackProps } from './VStack-Diuzxknf.js';
|
3
3
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
4
|
-
import {
|
5
|
-
export {
|
4
|
+
import { v as UniversalFormLabelProps, i as UniversalStackProps, w as IconPropsWithSVGProps, x as ImagePropsWithImgProps, y as UniversalIconSlot, z as UniversalLinkProps, A as UniversalTextProps } from './types-BzCxycgJ.js';
|
5
|
+
export { J as AVATAR_SIZE_PREFIX, ai as AlwaysPalette, aj as AlwaysPaletteAlias, ak as AlwaysPaletteColor, al as Animation, am as AriaAttribute, an as AvatarAbbreviationStrategy, ao as AvatarShape, ap as AvatarSize, aq as AvatarSizeConfig, ar as AvatarVariant, K as BORDER_RADIUS_PREFIX, L as BORDER_WIDTH_PREFIX, aa as BUTTON_CSS_VAR_MAP, as as BackgroundColor, at as BackgroundPalette, au as BackgroundPaletteAlias, av as BackgroundStyleProps, aw as BadgeSize, ax as BadgeVariant, ay as BorderRadius, az as BorderRadiusConfig, aA as BorderStyleProps, aB as BorderWidth, aC as BorderWidthConfig, aD as Breakpoint, aE as BreakpointsConfig, aF as ButtonBaseConfig, k as ButtonClassMap, aG as ButtonClassName, aH as ButtonColorConfig, aI as ButtonColorEffect, aJ as ButtonColorEffectConfig, l as ButtonColorProperty, m as ButtonColorPropertyConfig, B as ButtonConfig, aK as ButtonKind, aL as ButtonMotionEffect, aM as ButtonMotionProperty, aN as ButtonMotionPropertyConfig, aO as ButtonPalette, aP as ButtonPaletteColor, aQ as ButtonPaletteConfig, aR as ButtonShadowPropertyConfig, aS as ButtonSize, aT as ButtonSizeConfig, aU as ButtonSizeProperty, aV as ButtonSpectrumColor, aW as ButtonState, aX as ButtonStateConfig, aY as ButtonStateEffectConfig, aZ as ButtonVariant, a_ as ButtonVariantConfig, a$ as ButtonVariantFlat, b0 as CheckboxSize, b1 as CheckboxValue, b2 as CheckboxVariant, b3 as ChipSize, b4 as ChipVariant, C as ColorMode, b5 as ColorModeConfig, b6 as ColorModeForApp, d as ColorsConfig, b7 as ConfigurableDropShadowValues, b8 as ConfigurableInsetShadowValues, b9 as CustomSizingStyleProps, _ as DARK_COLOR_MODE_CLASSNAME, a7 as DEFAULT_COLOR_MODE_CLASSNAME, a8 as DEFAULT_SCALE_MODE_CLASSNAME, ba as DataAttribute, bb as Display, bc as DividerVariant, ad as FONT_DECLARATIONS_MAP, N as FONT_FAMILY_PREFIX, O as FONT_SIZE_PREFIX, R as FONT_SLANT_PREFIX, Q as FONT_WEIGHT_PREFIX, T as FONT_WIDTH_PREFIX, bd as Flex, be as FlexAlignContent, bf as FlexAlignItems, bg as FlexAlignSelf, bh as FlexBasis, bi as FlexDirection, bj as FlexGrow, bk as FlexJustifyContent, bl as FlexShrink, bm as FlexStyleProps, bn as FlexWrap, bo as FontAlias, ae as FontAxisConfig, q as FontConfig, bp as FontCssVar, af as FontDeclarationConfig, p as FontDeclarationItemConfig, ag as FontDeclarationMap, bq as FontFamilyCDNUrl, br as FontFamilyConfig, F as FontID, bs as FontSize, bt as FontSizeConfig, bu as FontSlantConfig, bv as FontType, bw as FontWeightConfig, bx as FontWeightDescriptive, ah as FontWeightForFont, by as FontWeightNumeric, bz as FontWidthConfig, bA as ForegroundColor, bB as ForegroundPalette, bC as ForegroundPaletteAlias, bD as GlobalDefaultsConfig, bE as HighContrastMode, H as Hue, e as HueStep, ab as ICON_BUTTON_CSS_VAR_MAP, V as ICON_SIZE_PREFIX, I as IconButtonClassMap, bF as IconButtonClassName, bG as IconButtonConfig, bH as IconButtonDefaultsConfig, bI as IconButtonSize, bJ as IconSizeConfig, bK as ImageStyleProps, bL as InputSize, a3 as LARGE_SCALE_MODE_CLASSNAME, $ as LIGHT_COLOR_MODE_CLASSNAME, W as LINE_HEIGHT_PREFIX, bM as LayoutStyleProps, bN as LetterSpacing, bO as LineClampAlias, bP as LineColor, bQ as LineHeight, bR as LineHeightConfig, bS as LinePalette, bT as LinePaletteAlias, a2 as MEDIUM_SCALE_MODE_CLASSNAME, X as MOTION_PREFIX, bU as Modes, t as MotionConfig, bV as MotionCssVar, bW as MotionSpringConfig, s as MotionSpringConfigOptions, M as MotionVariant, r as MotionVariantSpeed, bX as MotionVariantValues, bY as Overflow, ac as PSEUDO_STYLE_SELECTOR_MAP, bZ as Palette, f as PaletteConfig, P as PaletteType, b_ as PaletteValue, b$ as Pixels, c0 as PlatformMode, c1 as Position, c2 as PropertyToPaletteAliasMap, c3 as RadioSize, c4 as RadioValue, c5 as RadioVariant, c6 as RegionMode, c7 as Rems, a1 as SMALL_SCALE_MODE_CLASSNAME, Y as SPECTRUM_COLOR_PREFIX, c8 as ScaleConfig, c9 as ScaleEffectMap, S as ScaleMode, ca as ScaleModeConfig, cb as ScaleModeForApp, cc as ShadowColor, cd as ShadowColorConfig, ce as ShadowConfig, cf as ShadowOffset, cg as ShadowOpacity, ch as ShadowPalette, ci as ShadowPaletteAlias, g as ShadowPreset, cj as ShadowSpreadRadius, ck as ShadowStyleProps, u as ShadowType, cl as ShadowTypeConfig, cm as ShadowVariant, cn as ShadowVariantConfig, co as ShadowVariantInvert, cp as ShadowVariantWithInvert, cq as SharedPaletteAlias, n as SpacingAlias, cr as SpacingConfig, cs as SpacingStyleProps, ct as SpectrumColor, cu as SpectrumConfig, cv as StateStyleProps, cw as StyleProps, cx as SwitchSize, a9 as TEXT_RESPONSIVE_CLASSNAME, Z as TEXT_TRANSFORM_PREFIX, cH as TShirtSize, cI as TShirtSizeCommon, cy as TextDecorationLine, cz as TextProperty, cA as TextStyleProps, cB as TextTransform, cC as TextTransformConfig, cD as TextVariant, cE as TransitionDelay, cF as TransitionDuration, cG as TransitionTiming, cJ as TypographyConfig, cK as TypographyResponsiveProperty, cL as TypographyStyle, cM as TypographyStyleProperty, cN as TypographyUnitValue, G as UDS_PREFIX, cO as UdsCssVar, cP as Unitless, cQ as UniversalAvatarIconProps, cR as UniversalAvatarImageProps, cS as UniversalAvatarProps, cT as UniversalAvatarTextProps, cU as UniversalBadgeProps, h as UniversalBoxProps, cV as UniversalButtonProps, cW as UniversalCheckboxProps, cX as UniversalChipBaseProps, cY as UniversalChipButtonProps, cZ as UniversalChipDismissibleProps, c_ as UniversalChipLinkProps, c$ as UniversalChipProps, d0 as UniversalChipToggleProps, j as UniversalDividerProps, d1 as UniversalIconButtonProps, d2 as UniversalIconProps, d3 as UniversalImageProps, U as UniversalInputProps, o as UniversalMenuItemProps, a as UniversalPressableProps, d4 as UniversalRadioGroupProps, d5 as UniversalRadioProps, b as UniversalSwitchProps, c as UniversalTokensConfig, d6 as UniversalTokensConfigAuto, a4 as XLARGE_SCALE_MODE_CLASSNAME, a0 as XSMALL_SCALE_MODE_CLASSNAME, a5 as XXLARGE_SCALE_MODE_CLASSNAME, a6 as XXXLARGE_SCALE_MODE_CLASSNAME, D as alwaysPalette, E as defaultUniversalTokensConfigAuto } from './types-BzCxycgJ.js';
|
6
6
|
import * as react from 'react';
|
7
7
|
import { PropsWithChildren, Ref, Dispatch, SetStateAction } from 'react';
|
8
|
-
import { I as InputProps } from './Input-
|
8
|
+
import { I as InputProps } from './Input-UeO0vaoz.js';
|
9
9
|
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, InputProps, Menu, MenuContentProps, MenuDividerProps, MenuItemCheckboxProps, MenuItemProps, MenuPlacement, MenuProviderProps, MenuTriggerProps, Pressable, PressableProps, Radio, RadioGroupProvider, RadioGroupProviderProps, RadioProps, SpringMotionConfig, SpringMotionConfigProps, Switch, SwitchProps } from '@yahoo/uds/client';
|
10
10
|
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, defaultTokensConfig, 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';
|
11
11
|
export { AvatarConfig, BadgeConfig, CheckboxConfig, ChipConfig, DividerConfig, InputConfig, LinkConfig, MenuConfig, RadioConfig, SwitchConfig } from './tokens/automation/configs.js';
|
12
|
-
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-
|
12
|
+
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-l7p2BSJ4.js';
|
13
13
|
export { IconSize, IconVariant } from '@yahoo/uds-icons/types';
|
14
14
|
import 'motion/react';
|
15
15
|
import 'type-fest';
|
package/dist/index.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
export{
|
1
|
+
export{Image,InputHelpTextMemo as InputHelpText}from"./chunk-I4FL67ZO.js";import{DividerInternal as e}from"./chunk-7XHEAAW3.js";export{HStack,VStack}from"./chunk-CAR5LKUE.js";export{FormLabel}from"./chunk-7YFRLAV4.js";import{getStyles as t,cx as a,IconSlot as n}from"./chunk-ZIR4GEEX.js";export{Box,Icon,Text,cva,cx,getStyles}from"./chunk-ZIR4GEEX.js";export{DEFAULT_COLOR_MODE,DEFAULT_COLOR_MODE_FOR_APP,DEFAULT_HIGH_CONTRAST_MODE,DEFAULT_REGION_MODE,DEFAULT_SCALE_MODE,DEFAULT_SCALE_MODE_FOR_APP,FONT_DECLARATIONS_MAP,alwaysPalette,button,cartesianProduct,coalesceConfigVariant,configurableProperties,createComponentStateConfig,createComponentStates,createConfigurableProperty,createLayerConfig,createSubComponentConfig,createVariantConfig,createVariantConfigWithComponentStates,createVariantConfigWithProperties,defaultTokensConfig,defaultUniversalTokensConfigAuto,findFixtureType,fontWeightMap,fromEntries,generateClassName,generateDeclaration,generateKeyFromFlatConfigPath,generateSchemaKey,generateStyles,getConfigDefaultValue,getConfigPseudoStateVariables,getConfigPseudoStateVariablesWithSetter,getConfigSubcomponents,getConfigVariantComponentStates,getConfigVariantComponentStatesMatrix,getConfigVariantProperties,getConfigVariantPseudoStates,getConfigVariants,getDefaultButtonBaseMap,isConfigDefaultValue,parseButtonVariantFlat,parseDeprecatedButtonPaletteVariant,setConfigPseudoStateVariable,shadow,statePseudoMapDocsMode,toMinimalDbConfigObject}from"./chunk-DVGFVNDI.js";export{entries,mapValues}from"./chunk-EWJ3J526.js";export{variants}from"./chunk-AWSJDBQH.js";export{AVATAR_SIZE_PREFIX,BORDER_RADIUS_PREFIX,BORDER_WIDTH_PREFIX,BUTTON_CSS_VAR_MAP,DARK_COLOR_MODE_CLASSNAME,DEFAULT_COLOR_MODE_CLASSNAME,DEFAULT_SCALE_MODE_CLASSNAME,FONT_FAMILY_PREFIX,FONT_SIZE_PREFIX,FONT_SLANT_PREFIX,FONT_WEIGHT_PREFIX,FONT_WIDTH_PREFIX,ICON_BUTTON_CSS_VAR_MAP,ICON_SIZE_PREFIX,LARGE_SCALE_MODE_CLASSNAME,LIGHT_COLOR_MODE_CLASSNAME,LINE_HEIGHT_PREFIX,MEDIUM_SCALE_MODE_CLASSNAME,MOTION_PREFIX,PSEUDO_STYLE_SELECTOR_MAP,SMALL_SCALE_MODE_CLASSNAME,SPECTRUM_COLOR_PREFIX,TEXT_RESPONSIVE_CLASSNAME,TEXT_TRANSFORM_PREFIX,UDS_PREFIX,XLARGE_SCALE_MODE_CLASSNAME,XSMALL_SCALE_MODE_CLASSNAME,XXLARGE_SCALE_MODE_CLASSNAME,XXXLARGE_SCALE_MODE_CLASSNAME}from"./chunk-N4FHPR6Q.js";import{forwardRef as o,useMemo as r}from"react";import{jsx as i,jsxs as E}from"react/jsx-runtime";export{Avatar,AvatarIcon,AvatarImage,AvatarText,Badge,Button,Checkbox,Chip,ChipButton,ChipDismissible,ChipLink,ChipToggle,IconButton,Input,Menu,Pressable,Radio,RadioGroupProvider,SpringMotionConfig,Switch}from"@yahoo/uds/client";/*! © 2025 Yahoo, Inc. UDS v0.0.0-development */var _=o((function(t,a){return i(e,{ref:a,...t})}));_.displayName="Divider";var s=o((function({variant:e="primary",textVariant:o,startIcon:_,endIcon:s,alwaysUnderline:S=!1,children:A,className:C,...c},l){const L=!o,f=r((()=>{const n=!L&&t({linkTextStyleRoot:o,fontSize:o,fontFamily:o,fontWeight:o,lineHeight:o,textTransform:o});return t({linkVariantRoot:e,display:"inline-flex",alignItems:"center",className:a(n,"uds-ring",S&&"underline",C)})}),[S,L,o,e,C]),O=t({linkVariantIconStart:e,linkTextStyleIcon:o,className:a(L&&"w-[0.7em] h-[0.7em]")}),m=t({linkVariantIconEnd:e,linkTextStyleIcon:o,className:a(L&&"w-[0.7em] h-[0.7em]")}),u={variant:"outline",color:"current"};return E("a",{ref:l,className:f,...c,children:[_&&i(n,{className:O,icon:_,iconProps:u,"data-testid":"start-icon"}),A,s&&i(n,{className:m,icon:s,iconProps:u,"data-testid":"end-icon"})]})}));s.displayName="Link";export{_ as Divider,s as Link};
|