@yahoo/uds 3.11.1 → 3.13.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/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/{Input-Fjl8GOP_.d.cts → Input-CVeeUxNU.d.cts} +1 -1
- package/dist/{Input-DFCQ2u9B.d.ts → Input-D8BREuel.d.ts} +1 -1
- package/dist/Input-DpPT9FEx.d.cts +42 -0
- package/dist/Input-Dsf_gO9A.d.ts +42 -0
- package/dist/{Pressable-fG9Ir9i4.d.cts → Pressable-BVo-S6Zr.d.cts} +1 -1
- package/dist/{Pressable-DexnJ2tl.d.ts → Pressable-C8YAmTgO.d.ts} +1 -1
- package/dist/Pressable-CyPTAGE2.d.ts +44 -0
- package/dist/Pressable-DJs75dFs.d.cts +44 -0
- package/dist/{VStack-BLo_GVRR.d.cts → VStack-BuZuyzJQ.d.cts} +1 -1
- package/dist/VStack-Cwnc0X7i.d.cts +112 -0
- package/dist/{VStack-CAmlGQov.d.ts → VStack-FrGTqacI.d.ts} +1 -1
- package/dist/VStack-pKyyirAP.d.ts +112 -0
- package/dist/{chunk-R5VO4HNN.js → chunk-2II4ZFQI.js} +2 -2
- package/dist/chunk-2J7CK77Y.cjs +1 -0
- package/dist/chunk-BJCZ62IT.js +1 -0
- package/dist/chunk-C3Q7Z6UA.js +3 -0
- package/dist/chunk-CW2GDS2H.cjs +1 -0
- package/dist/chunk-EGRAYQGZ.js +2 -0
- package/dist/chunk-FIK5E5XF.cjs +1 -0
- package/dist/chunk-FIY4G5A4.cjs +1 -0
- package/dist/chunk-IVLA3HPE.js +1 -0
- package/dist/chunk-PYXGHSQQ.cjs +2 -0
- package/dist/chunk-RYT7E6ME.js +3 -0
- package/dist/chunk-SYYG6CQE.js +2 -0
- package/dist/chunk-UONN6ZKS.cjs +1 -0
- package/dist/chunk-VAUJIRSN.js +2 -0
- package/dist/{chunk-3OMTBWQH.cjs → chunk-VWZ3EXJ3.cjs} +1 -1
- package/dist/chunk-WNGG5RTE.cjs +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 +3 -3
- package/dist/client/index.d.ts +3 -3
- package/dist/client/index.js +1 -1
- package/dist/fixtures.cjs +13 -3
- package/dist/fixtures.d.cts +3 -2
- package/dist/fixtures.d.ts +3 -2
- package/dist/fixtures.js +11 -2
- package/dist/{index-DkZBPwMK.d.ts → index-BXnKaQUl.d.ts} +1 -1
- package/dist/{index-CzTuVTTj.d.cts → index-C3N2muhC.d.cts} +1 -1
- package/dist/index-Dk7Qj5gp.d.cts +243 -0
- package/dist/index-PeX4hWLQ.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.cjs +1 -1
- package/dist/tailwind/plugin.d.cts +5 -10
- package/dist/tailwind/plugin.d.ts +5 -10
- package/dist/tailwind/plugin.js +2 -2
- package/dist/tailwind/utils.cjs +1 -1
- package/dist/tailwind/utils.d.cts +5 -2
- package/dist/tailwind/utils.d.ts +5 -2
- package/dist/tailwind/utils.js +1 -1
- package/dist/tokens/automation/configs.cjs +1 -1
- package/dist/tokens/automation/configs.d.cts +2 -2
- package/dist/tokens/automation/configs.d.ts +2 -2
- package/dist/tokens/automation/configs.js +1 -1
- package/dist/tokens/automation/properties.cjs +1 -1
- package/dist/tokens/automation/properties.d.cts +2 -2
- package/dist/tokens/automation/properties.d.ts +2 -2
- package/dist/tokens/automation/properties.js +1 -1
- package/dist/tokens/index.cjs +1 -1
- package/dist/tokens/index.d.cts +3399 -3399
- package/dist/tokens/index.d.ts +3399 -3399
- package/dist/tokens/index.js +1 -1
- package/dist/tokens/parseTokens.d.cts +1 -1
- package/dist/tokens/parseTokens.d.ts +1 -1
- package/dist/{types-CCP4BG97.d.cts → types-BUzQ4GYD.d.cts} +2018 -2019
- package/dist/{types-CCP4BG97.d.ts → types-BUzQ4GYD.d.ts} +2018 -2019
- package/dist/types-BvOFo15W.d.cts +8 -0
- package/dist/types-BvOFo15W.d.ts +8 -0
- package/dist/types-Che4YX3v.d.cts +10449 -0
- package/dist/types-Che4YX3v.d.ts +10449 -0
- package/package.json +2 -1
- package/dist/chunk-37HUQ2LJ.js +0 -2
- package/dist/chunk-SQ6WOQUJ.cjs +0 -2
@@ -0,0 +1,243 @@
|
|
1
|
+
import * as properties from '@yahoo/uds/fixtures';
|
2
|
+
import { f as ShadowPreset, b as UniversalTokensConfig } from './types-Che4YX3v.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-ZPZAKENT.cjs"),t=require("./chunk-DKEBQF5G.cjs"),r=require("./chunk-3N4JOIUF.cjs"),n=require("./chunk-SQ6WOQUJ.cjs"),o=require("./chunk-J7PUOUXC.cjs"),i=require("./chunk-O7EFQP7P.cjs"),u=require("./chunk-OU46NWOC.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-ZPZAKENT.cjs"),t=require("./chunk-DKEBQF5G.cjs"),r=require("./chunk-3N4JOIUF.cjs"),n=require("./chunk-CW2GDS2H.cjs"),o=require("./chunk-J7PUOUXC.cjs"),i=require("./chunk-O7EFQP7P.cjs"),u=require("./chunk-OU46NWOC.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;
|
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-BuZuyzJQ.cjs';
|
2
|
+
export { b as Box, B as BoxProps, c as Divider, D as DividerProps, d as VStack, V as VStackProps } from './VStack-BuZuyzJQ.cjs';
|
3
3
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
4
|
-
import { u as UniversalFormLabelProps, h as UniversalStackProps, v as IconPropsWithSVGProps, w as ImagePropsWithImgProps, x as UniversalIconSlot, y as UniversalLinkProps, z as UniversalTextProps } from './types-
|
5
|
-
export { G as AVATAR_SIZE_PREFIX, ah as AlwaysPalette, ai as AlwaysPaletteAlias, aj as AlwaysPaletteColor, ak as Animation, al as AriaAttribute, am as AvatarAbbreviationStrategy, an as AvatarShape, ao as AvatarSize, ap as AvatarSizeConfig, aq as AvatarVariant, J as BORDER_RADIUS_PREFIX, K as BORDER_WIDTH_PREFIX, a9 as BUTTON_CSS_VAR_MAP, ar as BackgroundColor, as as BackgroundPalette, at as BackgroundPaletteAlias, au as BackgroundStyleProps, av as BadgeSize, aw as BadgeVariant, ax as BorderRadius, ay as BorderRadiusConfig, az as BorderStyleProps, aA as BorderWidth, aB as BorderWidthConfig, aC as Breakpoint,
|
4
|
+
import { u as UniversalFormLabelProps, h as UniversalStackProps, v as IconPropsWithSVGProps, w as ImagePropsWithImgProps, x as UniversalIconSlot, y as UniversalLinkProps, z as UniversalTextProps } from './types-Che4YX3v.cjs';
|
5
|
+
export { G as AVATAR_SIZE_PREFIX, ah as AlwaysPalette, ai as AlwaysPaletteAlias, aj as AlwaysPaletteColor, ak as Animation, al as AriaAttribute, am as AvatarAbbreviationStrategy, an as AvatarShape, ao as AvatarSize, ap as AvatarSizeConfig, aq as AvatarVariant, J as BORDER_RADIUS_PREFIX, K as BORDER_WIDTH_PREFIX, a9 as BUTTON_CSS_VAR_MAP, ar as BackgroundColor, as as BackgroundPalette, at as BackgroundPaletteAlias, au as BackgroundStyleProps, av as BadgeSize, aw as BadgeVariant, ax as BorderRadius, ay as BorderRadiusConfig, az as BorderStyleProps, aA as BorderWidth, aB as BorderWidthConfig, aC as Breakpoint, aD as BreakpointsConfig, aE as ButtonBaseConfig, j as ButtonClassMap, aF as ButtonClassName, aG as ButtonColorConfig, aH as ButtonColorEffect, aI as ButtonColorEffectConfig, k as ButtonColorProperty, l as ButtonColorPropertyConfig, B as ButtonConfig, aJ as ButtonKind, aK as ButtonMotionEffect, aL as ButtonMotionProperty, aM as ButtonMotionPropertyConfig, aN as ButtonPalette, aO as ButtonPaletteColor, aP as ButtonPaletteConfig, aQ as ButtonShadowPropertyConfig, aR as ButtonSize, aS as ButtonSizeConfig, aT as ButtonSizeProperty, aU as ButtonSpectrumColor, aV as ButtonState, aW as ButtonStateConfig, aX as ButtonStateEffectConfig, aY as ButtonVariant, aZ as ButtonVariantConfig, a_ as ButtonVariantFlat, a$ as CheckboxSize, b0 as CheckboxValue, b1 as CheckboxVariant, b2 as ChipSize, b3 as ChipVariant, C as ColorMode, b4 as ColorModeConfig, b5 as ColorModeForApp, c as ColorsConfig, b6 as ConfigurableDropShadowValues, b7 as ConfigurableInsetShadowValues, b8 as CustomSizingStyleProps, Z as DARK_COLOR_MODE_CLASSNAME, a6 as DEFAULT_COLOR_MODE_CLASSNAME, a7 as DEFAULT_SCALE_MODE_CLASSNAME, b9 as DataAttribute, ba as Display, bb as DividerVariant, ac as FONT_DECLARATIONS_MAP, L as FONT_FAMILY_PREFIX, N as FONT_SIZE_PREFIX, Q as FONT_SLANT_PREFIX, O as FONT_WEIGHT_PREFIX, R as FONT_WIDTH_PREFIX, bc as Flex, bd as FlexAlignContent, be as FlexAlignItems, bf as FlexAlignSelf, bg as FlexBasis, bh as FlexDirection, bi as FlexGrow, bj as FlexJustifyContent, bk as FlexShrink, bl as FlexStyleProps, bm as FlexWrap, bn as FontAlias, ad as FontAxisConfig, p as FontConfig, bo as FontCssVar, ae as FontDeclarationConfig, o as FontDeclarationItemConfig, af as FontDeclarationMap, bp as FontFamilyCDNUrl, bq as FontFamilyConfig, F as FontID, br as FontSize, bs as FontSizeConfig, bt as FontSlantConfig, bu as FontType, bv as FontWeightConfig, bw as FontWeightDescriptive, ag as FontWeightForFont, bx as FontWeightNumeric, by as FontWidthConfig, bz as ForegroundColor, bA as ForegroundPalette, bB as ForegroundPaletteAlias, bC as GlobalDefaultsConfig, bD as HighContrastMode, H as Hue, d as HueStep, aa as ICON_BUTTON_CSS_VAR_MAP, T as ICON_SIZE_PREFIX, I as IconButtonClassMap, bE as IconButtonClassName, bF as IconButtonConfig, bG as IconButtonDefaultsConfig, bH as IconButtonSize, bI as IconSizeConfig, bJ as ImageStyleProps, bK as InputSize, a2 as LARGE_SCALE_MODE_CLASSNAME, _ as LIGHT_COLOR_MODE_CLASSNAME, V as LINE_HEIGHT_PREFIX, bL as LayoutStyleProps, bM as LetterSpacing, bN as LineClampAlias, bO as LineColor, bP as LineHeight, bQ as LineHeightConfig, bR as LinePalette, bS as LinePaletteAlias, a1 as MEDIUM_SCALE_MODE_CLASSNAME, W as MOTION_PREFIX, bT as Modes, s as MotionConfig, bU as MotionCssVar, bV as MotionSpringConfig, r as MotionSpringConfigOptions, M as MotionVariant, q as MotionVariantSpeed, bW as MotionVariantValues, bX as Overflow, ab as PSEUDO_STYLE_SELECTOR_MAP, bY as Palette, e as PaletteConfig, P as PaletteType, bZ as PaletteValue, b_ as Pixels, b$ as PlatformMode, c0 as Position, c1 as PropertyToPaletteAliasMap, c2 as RadioSize, c3 as RadioValue, c4 as RadioVariant, c5 as RegionMode, c6 as Rems, a0 as SMALL_SCALE_MODE_CLASSNAME, X as SPECTRUM_COLOR_PREFIX, c7 as ScaleConfig, c8 as ScaleEffectMap, S as ScaleMode, c9 as ScaleModeConfig, ca as ScaleModeForApp, cb as ShadowColor, cc as ShadowColorConfig, cd as ShadowConfig, ce as ShadowOffset, cf as ShadowOpacity, cg as ShadowPalette, ch as ShadowPaletteAlias, f as ShadowPreset, ci as ShadowSpreadRadius, cj as ShadowStyleProps, t as ShadowType, ck as ShadowTypeConfig, cl as ShadowVariant, cm as ShadowVariantConfig, cn as ShadowVariantInvert, co as ShadowVariantWithInvert, cp as SharedPaletteAlias, m as SpacingAlias, cq as SpacingConfig, cr as SpacingStyleProps, cs as SpectrumColor, ct as SpectrumConfig, cu as StateStyleProps, cv as StyleProps, cw as SwitchSize, a8 as TEXT_RESPONSIVE_CLASSNAME, Y as TEXT_TRANSFORM_PREFIX, cG as TShirtSize, cH as TShirtSizeCommon, cx as TextDecorationLine, cy as TextProperty, cz as TextStyleProps, cA as TextTransform, cB as TextTransformConfig, cC as TextVariant, cD as TransitionDelay, cE as TransitionDuration, cF as TransitionTiming, cI as TypographyConfig, cJ as TypographyResponsiveProperty, cK as TypographyStyle, cL as TypographyStyleProperty, cM as TypographyUnitValue, E as UDS_PREFIX, cN as UdsCssVar, cO as Unitless, cP as UniversalAvatarIconProps, cQ as UniversalAvatarImageProps, cR as UniversalAvatarProps, cS as UniversalAvatarTextProps, cT as UniversalBadgeProps, g as UniversalBoxProps, cU as UniversalButtonProps, cV as UniversalCheckboxProps, cW as UniversalChipBaseProps, cX as UniversalChipButtonProps, cY as UniversalChipDismissibleProps, cZ as UniversalChipLinkProps, c_ as UniversalChipProps, c$ as UniversalChipToggleProps, i as UniversalDividerProps, d0 as UniversalIconButtonProps, d1 as UniversalIconProps, d2 as UniversalImageProps, U as UniversalInputProps, n as UniversalMenuItemProps, a as UniversalPressableProps, d3 as UniversalRadioGroupProps, d4 as UniversalRadioProps, d5 as UniversalSwitchProps, b as UniversalTokensConfig, d6 as UniversalTokensConfigAuto, a3 as XLARGE_SCALE_MODE_CLASSNAME, $ as XSMALL_SCALE_MODE_CLASSNAME, a4 as XXLARGE_SCALE_MODE_CLASSNAME, a5 as XXXLARGE_SCALE_MODE_CLASSNAME, A as alwaysPalette, D as defaultUniversalTokensConfigAuto } from './types-Che4YX3v.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-DpPT9FEx.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-Dk7Qj5gp.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-FrGTqacI.js';
|
2
|
+
export { b as Box, B as BoxProps, c as Divider, D as DividerProps, d as VStack, V as VStackProps } from './VStack-FrGTqacI.js';
|
3
3
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
4
|
-
import { u as UniversalFormLabelProps, h as UniversalStackProps, v as IconPropsWithSVGProps, w as ImagePropsWithImgProps, x as UniversalIconSlot, y as UniversalLinkProps, z as UniversalTextProps } from './types-
|
5
|
-
export { G as AVATAR_SIZE_PREFIX, ah as AlwaysPalette, ai as AlwaysPaletteAlias, aj as AlwaysPaletteColor, ak as Animation, al as AriaAttribute, am as AvatarAbbreviationStrategy, an as AvatarShape, ao as AvatarSize, ap as AvatarSizeConfig, aq as AvatarVariant, J as BORDER_RADIUS_PREFIX, K as BORDER_WIDTH_PREFIX, a9 as BUTTON_CSS_VAR_MAP, ar as BackgroundColor, as as BackgroundPalette, at as BackgroundPaletteAlias, au as BackgroundStyleProps, av as BadgeSize, aw as BadgeVariant, ax as BorderRadius, ay as BorderRadiusConfig, az as BorderStyleProps, aA as BorderWidth, aB as BorderWidthConfig, aC as Breakpoint,
|
4
|
+
import { u as UniversalFormLabelProps, h as UniversalStackProps, v as IconPropsWithSVGProps, w as ImagePropsWithImgProps, x as UniversalIconSlot, y as UniversalLinkProps, z as UniversalTextProps } from './types-Che4YX3v.js';
|
5
|
+
export { G as AVATAR_SIZE_PREFIX, ah as AlwaysPalette, ai as AlwaysPaletteAlias, aj as AlwaysPaletteColor, ak as Animation, al as AriaAttribute, am as AvatarAbbreviationStrategy, an as AvatarShape, ao as AvatarSize, ap as AvatarSizeConfig, aq as AvatarVariant, J as BORDER_RADIUS_PREFIX, K as BORDER_WIDTH_PREFIX, a9 as BUTTON_CSS_VAR_MAP, ar as BackgroundColor, as as BackgroundPalette, at as BackgroundPaletteAlias, au as BackgroundStyleProps, av as BadgeSize, aw as BadgeVariant, ax as BorderRadius, ay as BorderRadiusConfig, az as BorderStyleProps, aA as BorderWidth, aB as BorderWidthConfig, aC as Breakpoint, aD as BreakpointsConfig, aE as ButtonBaseConfig, j as ButtonClassMap, aF as ButtonClassName, aG as ButtonColorConfig, aH as ButtonColorEffect, aI as ButtonColorEffectConfig, k as ButtonColorProperty, l as ButtonColorPropertyConfig, B as ButtonConfig, aJ as ButtonKind, aK as ButtonMotionEffect, aL as ButtonMotionProperty, aM as ButtonMotionPropertyConfig, aN as ButtonPalette, aO as ButtonPaletteColor, aP as ButtonPaletteConfig, aQ as ButtonShadowPropertyConfig, aR as ButtonSize, aS as ButtonSizeConfig, aT as ButtonSizeProperty, aU as ButtonSpectrumColor, aV as ButtonState, aW as ButtonStateConfig, aX as ButtonStateEffectConfig, aY as ButtonVariant, aZ as ButtonVariantConfig, a_ as ButtonVariantFlat, a$ as CheckboxSize, b0 as CheckboxValue, b1 as CheckboxVariant, b2 as ChipSize, b3 as ChipVariant, C as ColorMode, b4 as ColorModeConfig, b5 as ColorModeForApp, c as ColorsConfig, b6 as ConfigurableDropShadowValues, b7 as ConfigurableInsetShadowValues, b8 as CustomSizingStyleProps, Z as DARK_COLOR_MODE_CLASSNAME, a6 as DEFAULT_COLOR_MODE_CLASSNAME, a7 as DEFAULT_SCALE_MODE_CLASSNAME, b9 as DataAttribute, ba as Display, bb as DividerVariant, ac as FONT_DECLARATIONS_MAP, L as FONT_FAMILY_PREFIX, N as FONT_SIZE_PREFIX, Q as FONT_SLANT_PREFIX, O as FONT_WEIGHT_PREFIX, R as FONT_WIDTH_PREFIX, bc as Flex, bd as FlexAlignContent, be as FlexAlignItems, bf as FlexAlignSelf, bg as FlexBasis, bh as FlexDirection, bi as FlexGrow, bj as FlexJustifyContent, bk as FlexShrink, bl as FlexStyleProps, bm as FlexWrap, bn as FontAlias, ad as FontAxisConfig, p as FontConfig, bo as FontCssVar, ae as FontDeclarationConfig, o as FontDeclarationItemConfig, af as FontDeclarationMap, bp as FontFamilyCDNUrl, bq as FontFamilyConfig, F as FontID, br as FontSize, bs as FontSizeConfig, bt as FontSlantConfig, bu as FontType, bv as FontWeightConfig, bw as FontWeightDescriptive, ag as FontWeightForFont, bx as FontWeightNumeric, by as FontWidthConfig, bz as ForegroundColor, bA as ForegroundPalette, bB as ForegroundPaletteAlias, bC as GlobalDefaultsConfig, bD as HighContrastMode, H as Hue, d as HueStep, aa as ICON_BUTTON_CSS_VAR_MAP, T as ICON_SIZE_PREFIX, I as IconButtonClassMap, bE as IconButtonClassName, bF as IconButtonConfig, bG as IconButtonDefaultsConfig, bH as IconButtonSize, bI as IconSizeConfig, bJ as ImageStyleProps, bK as InputSize, a2 as LARGE_SCALE_MODE_CLASSNAME, _ as LIGHT_COLOR_MODE_CLASSNAME, V as LINE_HEIGHT_PREFIX, bL as LayoutStyleProps, bM as LetterSpacing, bN as LineClampAlias, bO as LineColor, bP as LineHeight, bQ as LineHeightConfig, bR as LinePalette, bS as LinePaletteAlias, a1 as MEDIUM_SCALE_MODE_CLASSNAME, W as MOTION_PREFIX, bT as Modes, s as MotionConfig, bU as MotionCssVar, bV as MotionSpringConfig, r as MotionSpringConfigOptions, M as MotionVariant, q as MotionVariantSpeed, bW as MotionVariantValues, bX as Overflow, ab as PSEUDO_STYLE_SELECTOR_MAP, bY as Palette, e as PaletteConfig, P as PaletteType, bZ as PaletteValue, b_ as Pixels, b$ as PlatformMode, c0 as Position, c1 as PropertyToPaletteAliasMap, c2 as RadioSize, c3 as RadioValue, c4 as RadioVariant, c5 as RegionMode, c6 as Rems, a0 as SMALL_SCALE_MODE_CLASSNAME, X as SPECTRUM_COLOR_PREFIX, c7 as ScaleConfig, c8 as ScaleEffectMap, S as ScaleMode, c9 as ScaleModeConfig, ca as ScaleModeForApp, cb as ShadowColor, cc as ShadowColorConfig, cd as ShadowConfig, ce as ShadowOffset, cf as ShadowOpacity, cg as ShadowPalette, ch as ShadowPaletteAlias, f as ShadowPreset, ci as ShadowSpreadRadius, cj as ShadowStyleProps, t as ShadowType, ck as ShadowTypeConfig, cl as ShadowVariant, cm as ShadowVariantConfig, cn as ShadowVariantInvert, co as ShadowVariantWithInvert, cp as SharedPaletteAlias, m as SpacingAlias, cq as SpacingConfig, cr as SpacingStyleProps, cs as SpectrumColor, ct as SpectrumConfig, cu as StateStyleProps, cv as StyleProps, cw as SwitchSize, a8 as TEXT_RESPONSIVE_CLASSNAME, Y as TEXT_TRANSFORM_PREFIX, cG as TShirtSize, cH as TShirtSizeCommon, cx as TextDecorationLine, cy as TextProperty, cz as TextStyleProps, cA as TextTransform, cB as TextTransformConfig, cC as TextVariant, cD as TransitionDelay, cE as TransitionDuration, cF as TransitionTiming, cI as TypographyConfig, cJ as TypographyResponsiveProperty, cK as TypographyStyle, cL as TypographyStyleProperty, cM as TypographyUnitValue, E as UDS_PREFIX, cN as UdsCssVar, cO as Unitless, cP as UniversalAvatarIconProps, cQ as UniversalAvatarImageProps, cR as UniversalAvatarProps, cS as UniversalAvatarTextProps, cT as UniversalBadgeProps, g as UniversalBoxProps, cU as UniversalButtonProps, cV as UniversalCheckboxProps, cW as UniversalChipBaseProps, cX as UniversalChipButtonProps, cY as UniversalChipDismissibleProps, cZ as UniversalChipLinkProps, c_ as UniversalChipProps, c$ as UniversalChipToggleProps, i as UniversalDividerProps, d0 as UniversalIconButtonProps, d1 as UniversalIconProps, d2 as UniversalImageProps, U as UniversalInputProps, n as UniversalMenuItemProps, a as UniversalPressableProps, d3 as UniversalRadioGroupProps, d4 as UniversalRadioProps, d5 as UniversalSwitchProps, b as UniversalTokensConfig, d6 as UniversalTokensConfigAuto, a3 as XLARGE_SCALE_MODE_CLASSNAME, $ as XSMALL_SCALE_MODE_CLASSNAME, a4 as XXLARGE_SCALE_MODE_CLASSNAME, a5 as XXXLARGE_SCALE_MODE_CLASSNAME, A as alwaysPalette, D as defaultUniversalTokensConfigAuto } from './types-Che4YX3v.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-D8BREuel.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-PeX4hWLQ.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{FormLabel,Image,InputHelpTextMemo as InputHelpText}from"./chunk-MABGUDH4.js";import{DividerInternal as e}from"./chunk-DEQ37TRE.js";import{getStyles as t,cx as a,IconSlot as n}from"./chunk-UZXPZDSS.js";export{Box,HStack,Icon,Text,VStack,cva,cx,getStyles}from"./chunk-UZXPZDSS.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-
|
1
|
+
export{FormLabel,Image,InputHelpTextMemo as InputHelpText}from"./chunk-MABGUDH4.js";import{DividerInternal as e}from"./chunk-DEQ37TRE.js";import{getStyles as t,cx as a,IconSlot as n}from"./chunk-UZXPZDSS.js";export{Box,HStack,Icon,Text,VStack,cva,cx,getStyles}from"./chunk-UZXPZDSS.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-VAUJIRSN.js";export{entries,mapValues}from"./chunk-EWJ3J526.js";export{variants}from"./chunk-B73VFZGJ.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-WLUJBM5E.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]")}),g=t({linkVariantIconEnd:e,linkTextStyleIcon:o,className:a(L&&"w-[0.7em] h-[0.7em]")}),M={variant:"outline",color:"current"};return E("a",{ref:l,className:f,...c,children:[_&&i(n,{className:O,icon:_,iconProps:M,"data-testid":"start-icon"}),A,s&&i(n,{className:g,icon:s,iconProps:M,"data-testid":"end-icon"})]})}));s.displayName="Link";export{_ as Divider,s as Link};
|