@yahoo/uds 3.5.0-beta.3 → 3.5.0-beta.5
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-Ur-Ht_GL.d.ts → Input-BVxQanVj.d.ts} +1 -1
- package/dist/Input-D6N7TCc9.d.ts +42 -0
- package/dist/{Input-DUqLl6jE.d.cts → Input-Tv8gAhPN.d.cts} +1 -1
- package/dist/Input-f6w-BO8R.d.cts +42 -0
- package/dist/Pressable-CVD9gKQN.d.cts +44 -0
- package/dist/Pressable-DSWYYU6N.d.ts +44 -0
- package/dist/Pressable-Dgla1UtH.d.ts +44 -0
- package/dist/Pressable-cW57Ibe2.d.cts +44 -0
- package/dist/{VStack-vuPYMALn.d.ts → VStack-Ca-CbKTr.d.ts} +2 -2
- package/dist/{VStack-cakCiiUo.d.cts → VStack-Ck33D8i-.d.cts} +2 -2
- package/dist/VStack-CysztmBl.d.ts +107 -0
- package/dist/VStack-g_bLKhRq.d.cts +107 -0
- package/dist/analytics/server.cjs +1 -1
- package/dist/analytics/server.js +1 -1
- package/dist/chunk-2W4ER46N.js +1 -0
- package/dist/chunk-3WLIHKQU.js +3 -0
- package/dist/chunk-44NCGEJE.js +3 -0
- package/dist/chunk-4AS6QR6M.cjs +3 -0
- package/dist/chunk-4T35WHJL.js +1 -0
- package/dist/chunk-55DNKMWV.cjs +2 -0
- package/dist/chunk-CNAKHAWF.cjs +2 -0
- package/dist/{chunk-6A3VCKKL.cjs → chunk-DCULPJ7L.cjs} +1 -1
- package/dist/{chunk-4VV7ZPAB.js → chunk-F4J6WCAA.js} +1 -1
- package/dist/chunk-FGRUT3UC.cjs +2 -0
- package/dist/chunk-HBZLHJEI.js +2 -0
- package/dist/chunk-HVVEL54J.js +3 -0
- package/dist/chunk-IRHJ7DWJ.js +2 -0
- package/dist/chunk-L72D6DDM.cjs +1 -0
- package/dist/chunk-MO2VPSXU.js +1 -0
- package/dist/chunk-NKYMXTPB.cjs +1 -0
- package/dist/chunk-PDUDFUBF.cjs +3 -0
- package/dist/chunk-PNR3372L.js +3 -0
- package/dist/chunk-UFBH4CCM.cjs +1 -0
- package/dist/chunk-YTMZSL6D.cjs +1 -0
- package/dist/client/Menu.cjs +1 -1
- package/dist/client/Menu.d.cts +623 -7
- package/dist/client/Menu.d.ts +623 -7
- package/dist/client/Menu.js +2 -1
- package/dist/client/index.cjs +1 -1
- package/dist/client/index.d.cts +4 -6
- package/dist/client/index.d.ts +4 -6
- package/dist/client/index.js +1 -2
- package/dist/experimental/client/index.js +2 -1
- package/dist/experimental/index.cjs +1 -1
- package/dist/experimental/index.js +2 -1
- package/dist/flags.cjs +1 -2
- package/dist/flags.js +2 -2
- package/dist/{index-CFlpXsuC.d.cts → index-CDx_NWe2.d.cts} +1 -1
- package/dist/{index-39whUqBE.d.ts → index-Dz60THFc.d.ts} +1 -1
- package/dist/index-YiVgsgZC.d.cts +208 -0
- package/dist/index-xaTWnEHm.d.ts +208 -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/motionFeatures-6LIGGXPL.cjs +1 -1
- package/dist/motionFeatures-SJISLQ4M.js +1 -1
- package/dist/styles/toast.d.cts +2 -0
- package/dist/styles/toast.d.ts +2 -0
- package/dist/tailwind/plugin.cjs +1 -1
- package/dist/tailwind/plugin.d.cts +1 -1
- package/dist/tailwind/plugin.d.ts +1 -1
- package/dist/tailwind/plugin.js +2 -2
- package/dist/tailwind/purger.cjs +1 -1
- package/dist/tailwind/purger.js +1 -1
- package/dist/tailwind/tsMorph.cjs +1 -1
- package/dist/tailwind/tsMorph.js +1 -1
- package/dist/tailwind/utils.cjs +1 -1
- package/dist/tailwind/utils.d.cts +1 -1
- package/dist/tailwind/utils.d.ts +1 -1
- 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 +4 -4
- package/dist/tokens/index.d.ts +4 -4
- package/dist/tokens/index.js +1 -1
- package/dist/tokens/parseTokens.cjs +1 -1
- package/dist/tokens/parseTokens.d.cts +1 -1
- package/dist/tokens/parseTokens.d.ts +1 -1
- package/dist/tokens/parseTokens.js +1 -1
- package/dist/{types-TxDF_k0q.d.cts → types-BEDOs3BD.d.cts} +1789 -1789
- package/dist/{types-TxDF_k0q.d.ts → types-BEDOs3BD.d.ts} +1789 -1789
- package/dist/types-BdV70-Tw.d.cts +10302 -0
- package/dist/types-BdV70-Tw.d.ts +10302 -0
- package/package.json +1 -4
- package/dist/Menu-DR13-K-l.d.cts +0 -662
- package/dist/Menu-OM1LtJ1C.d.ts +0 -662
- package/dist/chunk-4NOF6FBP.cjs +0 -3
- package/dist/chunk-EDYPTXZP.js +0 -2
- package/dist/chunk-N6WXVEVH.cjs +0 -2
- package/dist/chunk-R37JGXS5.js +0 -3
- package/dist/chunk-T52MLTTM.js +0 -3
@@ -0,0 +1,208 @@
|
|
1
|
+
import * as properties from '@yahoo/uds/fixtures';
|
2
|
+
import { i as ShadowPreset, b as UniversalTokensConfig } from './types-BEDOs3BD.cjs';
|
3
|
+
|
4
|
+
interface ConfigurableProperty<T extends AllPossibleProperties, CVR = unknown> {
|
5
|
+
name: string;
|
6
|
+
cssProperties: string | string[];
|
7
|
+
twThemePath: (selected: T, value: string) => string;
|
8
|
+
possibleFixtures: T[];
|
9
|
+
extendedProperties?: ConfigurablePropertiesName[];
|
10
|
+
customValueRenderer?: (schemaStateValue: SchemaStateValue<CVR>, schema: unknown) => string;
|
11
|
+
concatenate?: boolean;
|
12
|
+
concatenationDelimiter?: string;
|
13
|
+
}
|
14
|
+
declare const configurableProperties: {
|
15
|
+
readonly backgroundColor: ConfigurableProperty<"backgroundPaletteColors" | "spectrumColors" | "alwaysPaletteAliases", unknown>;
|
16
|
+
readonly borderWidth: ConfigurableProperty<"spacingAliases" | "borderWidths", unknown>;
|
17
|
+
readonly borderRadius: ConfigurableProperty<"borderRadii", unknown>;
|
18
|
+
readonly borderColor: ConfigurableProperty<"linePaletteColors" | "spectrumColors" | "alwaysPaletteAliases", unknown>;
|
19
|
+
readonly fontFamily: ConfigurableProperty<"textVariants", unknown>;
|
20
|
+
readonly fontSize: ConfigurableProperty<"textVariants", unknown>;
|
21
|
+
readonly lineHeight: ConfigurableProperty<"textVariants", unknown>;
|
22
|
+
readonly textTransform: ConfigurableProperty<"textVariants", unknown>;
|
23
|
+
readonly padding: ConfigurableProperty<"spacingAliases", unknown>;
|
24
|
+
readonly gap: ConfigurableProperty<"spacingAliases", unknown>;
|
25
|
+
readonly color: ConfigurableProperty<"foregroundPaletteColors" | "spectrumColors" | "alwaysPaletteAliases", unknown>;
|
26
|
+
readonly fontWeight: ConfigurableProperty<"textVariants", unknown>;
|
27
|
+
readonly iconSize: ConfigurableProperty<"iconSizes", unknown>;
|
28
|
+
readonly spacingHorizontal: ConfigurableProperty<"spacingAliases", unknown>;
|
29
|
+
readonly spacingVertical: ConfigurableProperty<"spacingAliases", unknown>;
|
30
|
+
readonly textVariant: ConfigurableProperty<"textVariants", unknown>;
|
31
|
+
readonly shadow: ConfigurableProperty<"shadowVariants", string | [] | [ShadowPreset] | [ShadowPreset, ShadowPreset] | [ShadowPreset, ShadowPreset, ShadowPreset]>;
|
32
|
+
readonly insetShadow: ConfigurableProperty<"shadowVariantsWithInvert", string | [] | [ShadowPreset] | [ShadowPreset, ShadowPreset] | [ShadowPreset, ShadowPreset, ShadowPreset]>;
|
33
|
+
readonly height: ConfigurableProperty<"spacingAliases", unknown>;
|
34
|
+
readonly width: ConfigurableProperty<"spacingAliases", unknown>;
|
35
|
+
};
|
36
|
+
type ConfigurablePropertiesName = keyof typeof configurableProperties;
|
37
|
+
interface SelectedConfigurableProperty<C extends ConfigurablePropertiesName, O extends string, T extends (typeof configurableProperties)[C]['possibleFixtures'] = (typeof configurableProperties)[C]['possibleFixtures'], V extends readonly (readonly string[])[] = readonly (readonly string[])[]> {
|
38
|
+
label: string;
|
39
|
+
name: C;
|
40
|
+
typeOfFixture: T;
|
41
|
+
values: V;
|
42
|
+
pseudoStates?: PossibleStates[];
|
43
|
+
supportsCustom?: boolean;
|
44
|
+
defaults: {
|
45
|
+
[K in O]: V[number][number];
|
46
|
+
};
|
47
|
+
}
|
48
|
+
|
49
|
+
type AllPossibleProperties = Exclude<keyof typeof properties, 'iconButtonClassNames' | 'iconButtonSize' | 'iconButtonStates' | 'buttonClassNames' | 'buttonColorProperties' | 'buttonIconSvgSize' | 'buttonKinds' | 'buttonMotionEffects' | 'buttonMotionProperties' | 'buttonPalettes' | 'buttonSizeProperties' | 'buttonSizes' | 'buttonStates' | 'buttonVariants'> | 'shadowVariantConfig';
|
50
|
+
type PossibleStates = 'hover' | 'pressed' | 'focused' | 'invalid' | 'focus-within' | 'focused-keyboard' | 'visited' | 'readonly' | 'disabled' | 'invalid&hover' | 'invalid&pressed';
|
51
|
+
type PossibleStatesWithRest = 'rest' | PossibleStates;
|
52
|
+
interface LayerConfig {
|
53
|
+
label: string;
|
54
|
+
properties: Readonly<Record<string, SelectedConfigurableProperty<ConfigurablePropertiesName, string>>>;
|
55
|
+
pseudoSelector?: string;
|
56
|
+
}
|
57
|
+
interface ComponentStateConfig {
|
58
|
+
label: string;
|
59
|
+
options: string[];
|
60
|
+
layers: {
|
61
|
+
root: LayerConfig;
|
62
|
+
} & Record<string, LayerConfig>;
|
63
|
+
}
|
64
|
+
interface SubComponentConfig {
|
65
|
+
label: string;
|
66
|
+
description: string;
|
67
|
+
overrideComponentName?: string;
|
68
|
+
variants: Record<string, VariantConfigWithProperties | VariantConfigWithComponentStates>;
|
69
|
+
}
|
70
|
+
interface VariantConfig<O extends string = string> {
|
71
|
+
label: string;
|
72
|
+
description: string;
|
73
|
+
isConfigurable: boolean;
|
74
|
+
default: O;
|
75
|
+
options: readonly O[];
|
76
|
+
}
|
77
|
+
interface VariantConfigWithProperties<O extends string = string> extends VariantConfig<O> {
|
78
|
+
layers: {
|
79
|
+
root: LayerConfig;
|
80
|
+
} & Record<string, LayerConfig>;
|
81
|
+
}
|
82
|
+
interface VariantConfigWithComponentStates<O extends string = string> extends VariantConfig<O> {
|
83
|
+
componentStates?: Readonly<Record<string, ComponentStateConfig>>;
|
84
|
+
}
|
85
|
+
interface ComponentConfig {
|
86
|
+
label: string;
|
87
|
+
description: string;
|
88
|
+
overrideComponentName?: string;
|
89
|
+
subComponents?: Record<string, SubComponentConfig>;
|
90
|
+
variants?: Record<string, VariantConfigWithProperties | VariantConfigWithComponentStates>;
|
91
|
+
}
|
92
|
+
type AutoComponents = Omit<UniversalTokensConfig, 'colorMode' | 'font' | 'scaleMode' | 'version' | 'motion' | 'button' | 'iconButton' | 'shadow'>;
|
93
|
+
type AutoComponentName = keyof AutoComponents;
|
94
|
+
type AllVariantKeys = {
|
95
|
+
[K in keyof AutoComponents]: {
|
96
|
+
[V in keyof AutoComponents[K]['defaults']]: V;
|
97
|
+
}[keyof AutoComponents[K]['defaults']];
|
98
|
+
}[keyof AutoComponents];
|
99
|
+
|
100
|
+
type ThemeFn = (path: string) => string;
|
101
|
+
type SchemaStateValue<T = any> = {
|
102
|
+
type: string;
|
103
|
+
valueType: 'alias' | 'custom';
|
104
|
+
value: T;
|
105
|
+
};
|
106
|
+
declare const statePseudoMapDocsMode: Record<PossibleStates | 'rest', string>;
|
107
|
+
declare function findFixtureType(property: SelectedConfigurableProperty<ConfigurablePropertiesName, string>, variantKey: string): string;
|
108
|
+
declare function toMinimalDbConfigObject<C extends ComponentConfig>(config: C): any;
|
109
|
+
declare function generateClassName({ componentName, variantKey, variantValue, layer, layerOptionalPseudoSelector, subComponentName, stateKey, stateValue, }: {
|
110
|
+
componentName: string;
|
111
|
+
variantKey: string;
|
112
|
+
variantValue?: string;
|
113
|
+
layer: string;
|
114
|
+
layerOptionalPseudoSelector?: string;
|
115
|
+
subComponentName?: string;
|
116
|
+
stateKey?: string;
|
117
|
+
stateValue?: string;
|
118
|
+
}): string;
|
119
|
+
declare function generateDeclaration({ componentName, variantKey, variantValue, layer, layerOptionalPseudoSelector, subComponentName, stateKey, stateValue, schema, propertyKey, originalPropertyDefinition, theme, currentStyles, previewOptions, }: {
|
120
|
+
componentName: string;
|
121
|
+
variantKey: string;
|
122
|
+
variantValue: string;
|
123
|
+
layer: string;
|
124
|
+
layerOptionalPseudoSelector?: string;
|
125
|
+
subComponentName?: string;
|
126
|
+
stateKey?: string;
|
127
|
+
stateValue?: string;
|
128
|
+
schema: unknown;
|
129
|
+
propertyKey: string;
|
130
|
+
originalPropertyDefinition: SelectedConfigurableProperty<ConfigurablePropertiesName, any>;
|
131
|
+
theme: ThemeFn;
|
132
|
+
currentStyles: Readonly<Record<string, Record<string, string>>>;
|
133
|
+
previewOptions?: {
|
134
|
+
generatePseudoStateClassModifier?: boolean;
|
135
|
+
forcePseudoState?: boolean;
|
136
|
+
};
|
137
|
+
}): Record<string, Record<string, string>>;
|
138
|
+
declare function generateStyles<C extends ComponentConfig>(config: C, schema: any, theme: ThemeFn, previewOptions?: {
|
139
|
+
generatePseudoStateClassModifier: boolean;
|
140
|
+
forcePseudoState: boolean;
|
141
|
+
}): Record<string, Record<string, string>>;
|
142
|
+
declare function createConfigurableProperty<C extends ConfigurablePropertiesName, O extends string, T extends (typeof configurableProperties)[C]['possibleFixtures'], V extends readonly (readonly string[])[] = readonly (readonly string[])[]>(prop: {
|
143
|
+
name: C;
|
144
|
+
typeOfFixture: T;
|
145
|
+
values: V;
|
146
|
+
defaults: {
|
147
|
+
[K in O]: V[number][number];
|
148
|
+
};
|
149
|
+
label: string;
|
150
|
+
pseudoStates?: PossibleStates[];
|
151
|
+
supportsCustom?: boolean;
|
152
|
+
}): SelectedConfigurableProperty<C, O, T, V>;
|
153
|
+
/**
|
154
|
+
* @deprecated use the new functions instead
|
155
|
+
*/
|
156
|
+
declare function createVariantConfig<O extends string, T extends Record<string, SelectedConfigurableProperty<ConfigurablePropertiesName, O>>>(config: {
|
157
|
+
label: string;
|
158
|
+
description: string;
|
159
|
+
isConfigurable: boolean;
|
160
|
+
default: O;
|
161
|
+
options: readonly O[];
|
162
|
+
properties: T;
|
163
|
+
}): VariantConfig<O>;
|
164
|
+
declare function createComponentStateConfig(config: {
|
165
|
+
label: string;
|
166
|
+
options: string[];
|
167
|
+
layers: {
|
168
|
+
root: LayerConfig;
|
169
|
+
} & Record<string, LayerConfig>;
|
170
|
+
}): ComponentStateConfig;
|
171
|
+
declare function createVariantConfigWithProperties(config: {
|
172
|
+
label: string;
|
173
|
+
description: string;
|
174
|
+
isConfigurable: boolean;
|
175
|
+
default: string;
|
176
|
+
options: readonly string[];
|
177
|
+
layers: {
|
178
|
+
root: LayerConfig;
|
179
|
+
} & Record<string, LayerConfig>;
|
180
|
+
}): VariantConfigWithProperties;
|
181
|
+
declare function createVariantConfigWithComponentStates(config: {
|
182
|
+
label: string;
|
183
|
+
description: string;
|
184
|
+
isConfigurable: boolean;
|
185
|
+
default: string;
|
186
|
+
options: readonly string[];
|
187
|
+
componentStates: Record<string, ComponentStateConfig>;
|
188
|
+
}): VariantConfigWithComponentStates;
|
189
|
+
declare function createComponentStates(config: {
|
190
|
+
label: string;
|
191
|
+
options: string[];
|
192
|
+
layers: {
|
193
|
+
root: LayerConfig;
|
194
|
+
} & Record<string, LayerConfig>;
|
195
|
+
}): ComponentStateConfig;
|
196
|
+
declare function createLayerConfig(config: {
|
197
|
+
label: string;
|
198
|
+
pseudoSelector?: string;
|
199
|
+
properties: Readonly<Record<string, SelectedConfigurableProperty<ConfigurablePropertiesName, string>>>;
|
200
|
+
}): LayerConfig;
|
201
|
+
declare function createSubComponentConfig(config: {
|
202
|
+
label: string;
|
203
|
+
description: string;
|
204
|
+
overrideComponentName?: string;
|
205
|
+
variants: Record<string, VariantConfigWithProperties | VariantConfigWithComponentStates>;
|
206
|
+
}): SubComponentConfig;
|
207
|
+
|
208
|
+
export { type AllPossibleProperties as A, type ConfigurablePropertiesName as C, type LayerConfig as L, type PossibleStates as P, type SelectedConfigurableProperty as S, type VariantConfig as V, type PossibleStatesWithRest as a, type ComponentStateConfig as b, configurableProperties as c, type SubComponentConfig as d, type VariantConfigWithProperties as e, type VariantConfigWithComponentStates as f, type ComponentConfig as g, type AutoComponents as h, type AutoComponentName as i, type AllVariantKeys as j, type SchemaStateValue as k, findFixtureType as l, generateClassName as m, generateDeclaration as n, generateStyles as o, createConfigurableProperty as p, createVariantConfig as q, createComponentStateConfig as r, statePseudoMapDocsMode as s, toMinimalDbConfigObject as t, createVariantConfigWithProperties as u, createVariantConfigWithComponentStates as v, createComponentStates as w, createLayerConfig as x, createSubComponentConfig as y };
|
@@ -0,0 +1,208 @@
|
|
1
|
+
import * as properties from '@yahoo/uds/fixtures';
|
2
|
+
import { i as ShadowPreset, b as UniversalTokensConfig } from './types-BdV70-Tw.js';
|
3
|
+
|
4
|
+
interface ConfigurableProperty<T extends AllPossibleProperties, CVR = unknown> {
|
5
|
+
name: string;
|
6
|
+
cssProperties: string | string[];
|
7
|
+
twThemePath: (selected: T, value: string) => string;
|
8
|
+
possibleFixtures: T[];
|
9
|
+
extendedProperties?: ConfigurablePropertiesName[];
|
10
|
+
customValueRenderer?: (schemaStateValue: SchemaStateValue<CVR>, schema: unknown) => string;
|
11
|
+
concatenate?: boolean;
|
12
|
+
concatenationDelimiter?: string;
|
13
|
+
}
|
14
|
+
declare const configurableProperties: {
|
15
|
+
readonly backgroundColor: ConfigurableProperty<"backgroundPaletteColors" | "spectrumColors" | "alwaysPaletteAliases", unknown>;
|
16
|
+
readonly borderWidth: ConfigurableProperty<"spacingAliases" | "borderWidths", unknown>;
|
17
|
+
readonly borderRadius: ConfigurableProperty<"borderRadii", unknown>;
|
18
|
+
readonly borderColor: ConfigurableProperty<"linePaletteColors" | "spectrumColors" | "alwaysPaletteAliases", unknown>;
|
19
|
+
readonly fontFamily: ConfigurableProperty<"textVariants", unknown>;
|
20
|
+
readonly fontSize: ConfigurableProperty<"textVariants", unknown>;
|
21
|
+
readonly lineHeight: ConfigurableProperty<"textVariants", unknown>;
|
22
|
+
readonly textTransform: ConfigurableProperty<"textVariants", unknown>;
|
23
|
+
readonly padding: ConfigurableProperty<"spacingAliases", unknown>;
|
24
|
+
readonly gap: ConfigurableProperty<"spacingAliases", unknown>;
|
25
|
+
readonly color: ConfigurableProperty<"foregroundPaletteColors" | "spectrumColors" | "alwaysPaletteAliases", unknown>;
|
26
|
+
readonly fontWeight: ConfigurableProperty<"textVariants", unknown>;
|
27
|
+
readonly iconSize: ConfigurableProperty<"iconSizes", unknown>;
|
28
|
+
readonly spacingHorizontal: ConfigurableProperty<"spacingAliases", unknown>;
|
29
|
+
readonly spacingVertical: ConfigurableProperty<"spacingAliases", unknown>;
|
30
|
+
readonly textVariant: ConfigurableProperty<"textVariants", unknown>;
|
31
|
+
readonly shadow: ConfigurableProperty<"shadowVariants", string | [] | [ShadowPreset] | [ShadowPreset, ShadowPreset] | [ShadowPreset, ShadowPreset, ShadowPreset]>;
|
32
|
+
readonly insetShadow: ConfigurableProperty<"shadowVariantsWithInvert", string | [] | [ShadowPreset] | [ShadowPreset, ShadowPreset] | [ShadowPreset, ShadowPreset, ShadowPreset]>;
|
33
|
+
readonly height: ConfigurableProperty<"spacingAliases", unknown>;
|
34
|
+
readonly width: ConfigurableProperty<"spacingAliases", unknown>;
|
35
|
+
};
|
36
|
+
type ConfigurablePropertiesName = keyof typeof configurableProperties;
|
37
|
+
interface SelectedConfigurableProperty<C extends ConfigurablePropertiesName, O extends string, T extends (typeof configurableProperties)[C]['possibleFixtures'] = (typeof configurableProperties)[C]['possibleFixtures'], V extends readonly (readonly string[])[] = readonly (readonly string[])[]> {
|
38
|
+
label: string;
|
39
|
+
name: C;
|
40
|
+
typeOfFixture: T;
|
41
|
+
values: V;
|
42
|
+
pseudoStates?: PossibleStates[];
|
43
|
+
supportsCustom?: boolean;
|
44
|
+
defaults: {
|
45
|
+
[K in O]: V[number][number];
|
46
|
+
};
|
47
|
+
}
|
48
|
+
|
49
|
+
type AllPossibleProperties = Exclude<keyof typeof properties, 'iconButtonClassNames' | 'iconButtonSize' | 'iconButtonStates' | 'buttonClassNames' | 'buttonColorProperties' | 'buttonIconSvgSize' | 'buttonKinds' | 'buttonMotionEffects' | 'buttonMotionProperties' | 'buttonPalettes' | 'buttonSizeProperties' | 'buttonSizes' | 'buttonStates' | 'buttonVariants'> | 'shadowVariantConfig';
|
50
|
+
type PossibleStates = 'hover' | 'pressed' | 'focused' | 'invalid' | 'focus-within' | 'focused-keyboard' | 'visited' | 'readonly' | 'disabled' | 'invalid&hover' | 'invalid&pressed';
|
51
|
+
type PossibleStatesWithRest = 'rest' | PossibleStates;
|
52
|
+
interface LayerConfig {
|
53
|
+
label: string;
|
54
|
+
properties: Readonly<Record<string, SelectedConfigurableProperty<ConfigurablePropertiesName, string>>>;
|
55
|
+
pseudoSelector?: string;
|
56
|
+
}
|
57
|
+
interface ComponentStateConfig {
|
58
|
+
label: string;
|
59
|
+
options: string[];
|
60
|
+
layers: {
|
61
|
+
root: LayerConfig;
|
62
|
+
} & Record<string, LayerConfig>;
|
63
|
+
}
|
64
|
+
interface SubComponentConfig {
|
65
|
+
label: string;
|
66
|
+
description: string;
|
67
|
+
overrideComponentName?: string;
|
68
|
+
variants: Record<string, VariantConfigWithProperties | VariantConfigWithComponentStates>;
|
69
|
+
}
|
70
|
+
interface VariantConfig<O extends string = string> {
|
71
|
+
label: string;
|
72
|
+
description: string;
|
73
|
+
isConfigurable: boolean;
|
74
|
+
default: O;
|
75
|
+
options: readonly O[];
|
76
|
+
}
|
77
|
+
interface VariantConfigWithProperties<O extends string = string> extends VariantConfig<O> {
|
78
|
+
layers: {
|
79
|
+
root: LayerConfig;
|
80
|
+
} & Record<string, LayerConfig>;
|
81
|
+
}
|
82
|
+
interface VariantConfigWithComponentStates<O extends string = string> extends VariantConfig<O> {
|
83
|
+
componentStates?: Readonly<Record<string, ComponentStateConfig>>;
|
84
|
+
}
|
85
|
+
interface ComponentConfig {
|
86
|
+
label: string;
|
87
|
+
description: string;
|
88
|
+
overrideComponentName?: string;
|
89
|
+
subComponents?: Record<string, SubComponentConfig>;
|
90
|
+
variants?: Record<string, VariantConfigWithProperties | VariantConfigWithComponentStates>;
|
91
|
+
}
|
92
|
+
type AutoComponents = Omit<UniversalTokensConfig, 'colorMode' | 'font' | 'scaleMode' | 'version' | 'motion' | 'button' | 'iconButton' | 'shadow'>;
|
93
|
+
type AutoComponentName = keyof AutoComponents;
|
94
|
+
type AllVariantKeys = {
|
95
|
+
[K in keyof AutoComponents]: {
|
96
|
+
[V in keyof AutoComponents[K]['defaults']]: V;
|
97
|
+
}[keyof AutoComponents[K]['defaults']];
|
98
|
+
}[keyof AutoComponents];
|
99
|
+
|
100
|
+
type ThemeFn = (path: string) => string;
|
101
|
+
type SchemaStateValue<T = any> = {
|
102
|
+
type: string;
|
103
|
+
valueType: 'alias' | 'custom';
|
104
|
+
value: T;
|
105
|
+
};
|
106
|
+
declare const statePseudoMapDocsMode: Record<PossibleStates | 'rest', string>;
|
107
|
+
declare function findFixtureType(property: SelectedConfigurableProperty<ConfigurablePropertiesName, string>, variantKey: string): string;
|
108
|
+
declare function toMinimalDbConfigObject<C extends ComponentConfig>(config: C): any;
|
109
|
+
declare function generateClassName({ componentName, variantKey, variantValue, layer, layerOptionalPseudoSelector, subComponentName, stateKey, stateValue, }: {
|
110
|
+
componentName: string;
|
111
|
+
variantKey: string;
|
112
|
+
variantValue?: string;
|
113
|
+
layer: string;
|
114
|
+
layerOptionalPseudoSelector?: string;
|
115
|
+
subComponentName?: string;
|
116
|
+
stateKey?: string;
|
117
|
+
stateValue?: string;
|
118
|
+
}): string;
|
119
|
+
declare function generateDeclaration({ componentName, variantKey, variantValue, layer, layerOptionalPseudoSelector, subComponentName, stateKey, stateValue, schema, propertyKey, originalPropertyDefinition, theme, currentStyles, previewOptions, }: {
|
120
|
+
componentName: string;
|
121
|
+
variantKey: string;
|
122
|
+
variantValue: string;
|
123
|
+
layer: string;
|
124
|
+
layerOptionalPseudoSelector?: string;
|
125
|
+
subComponentName?: string;
|
126
|
+
stateKey?: string;
|
127
|
+
stateValue?: string;
|
128
|
+
schema: unknown;
|
129
|
+
propertyKey: string;
|
130
|
+
originalPropertyDefinition: SelectedConfigurableProperty<ConfigurablePropertiesName, any>;
|
131
|
+
theme: ThemeFn;
|
132
|
+
currentStyles: Readonly<Record<string, Record<string, string>>>;
|
133
|
+
previewOptions?: {
|
134
|
+
generatePseudoStateClassModifier?: boolean;
|
135
|
+
forcePseudoState?: boolean;
|
136
|
+
};
|
137
|
+
}): Record<string, Record<string, string>>;
|
138
|
+
declare function generateStyles<C extends ComponentConfig>(config: C, schema: any, theme: ThemeFn, previewOptions?: {
|
139
|
+
generatePseudoStateClassModifier: boolean;
|
140
|
+
forcePseudoState: boolean;
|
141
|
+
}): Record<string, Record<string, string>>;
|
142
|
+
declare function createConfigurableProperty<C extends ConfigurablePropertiesName, O extends string, T extends (typeof configurableProperties)[C]['possibleFixtures'], V extends readonly (readonly string[])[] = readonly (readonly string[])[]>(prop: {
|
143
|
+
name: C;
|
144
|
+
typeOfFixture: T;
|
145
|
+
values: V;
|
146
|
+
defaults: {
|
147
|
+
[K in O]: V[number][number];
|
148
|
+
};
|
149
|
+
label: string;
|
150
|
+
pseudoStates?: PossibleStates[];
|
151
|
+
supportsCustom?: boolean;
|
152
|
+
}): SelectedConfigurableProperty<C, O, T, V>;
|
153
|
+
/**
|
154
|
+
* @deprecated use the new functions instead
|
155
|
+
*/
|
156
|
+
declare function createVariantConfig<O extends string, T extends Record<string, SelectedConfigurableProperty<ConfigurablePropertiesName, O>>>(config: {
|
157
|
+
label: string;
|
158
|
+
description: string;
|
159
|
+
isConfigurable: boolean;
|
160
|
+
default: O;
|
161
|
+
options: readonly O[];
|
162
|
+
properties: T;
|
163
|
+
}): VariantConfig<O>;
|
164
|
+
declare function createComponentStateConfig(config: {
|
165
|
+
label: string;
|
166
|
+
options: string[];
|
167
|
+
layers: {
|
168
|
+
root: LayerConfig;
|
169
|
+
} & Record<string, LayerConfig>;
|
170
|
+
}): ComponentStateConfig;
|
171
|
+
declare function createVariantConfigWithProperties(config: {
|
172
|
+
label: string;
|
173
|
+
description: string;
|
174
|
+
isConfigurable: boolean;
|
175
|
+
default: string;
|
176
|
+
options: readonly string[];
|
177
|
+
layers: {
|
178
|
+
root: LayerConfig;
|
179
|
+
} & Record<string, LayerConfig>;
|
180
|
+
}): VariantConfigWithProperties;
|
181
|
+
declare function createVariantConfigWithComponentStates(config: {
|
182
|
+
label: string;
|
183
|
+
description: string;
|
184
|
+
isConfigurable: boolean;
|
185
|
+
default: string;
|
186
|
+
options: readonly string[];
|
187
|
+
componentStates: Record<string, ComponentStateConfig>;
|
188
|
+
}): VariantConfigWithComponentStates;
|
189
|
+
declare function createComponentStates(config: {
|
190
|
+
label: string;
|
191
|
+
options: string[];
|
192
|
+
layers: {
|
193
|
+
root: LayerConfig;
|
194
|
+
} & Record<string, LayerConfig>;
|
195
|
+
}): ComponentStateConfig;
|
196
|
+
declare function createLayerConfig(config: {
|
197
|
+
label: string;
|
198
|
+
pseudoSelector?: string;
|
199
|
+
properties: Readonly<Record<string, SelectedConfigurableProperty<ConfigurablePropertiesName, string>>>;
|
200
|
+
}): LayerConfig;
|
201
|
+
declare function createSubComponentConfig(config: {
|
202
|
+
label: string;
|
203
|
+
description: string;
|
204
|
+
overrideComponentName?: string;
|
205
|
+
variants: Record<string, VariantConfigWithProperties | VariantConfigWithComponentStates>;
|
206
|
+
}): SubComponentConfig;
|
207
|
+
|
208
|
+
export { type AllPossibleProperties as A, type ConfigurablePropertiesName as C, 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-6A3VCKKL.cjs"),t=require("./chunk-4NOF6FBP.cjs"),r=require("./chunk-P4XGJJCM.cjs"),n=require("./chunk-J7PUOUXC.cjs"),o=require("./chunk-IC335V3E.cjs"),i=require("./chunk-HTL6WRXY.cjs");require("./chunk-NUEZVMWZ.cjs");var u=require("react"),a=require("react/jsx-runtime"),c=require("@yahoo/uds/client"),f=u.forwardRef((function({variant:e="primary",textVariant:r,startIcon:n,endIcon:o,alwaysUnderline:i=!1,children:c,className:f,...p},b){const s=!r,O=u.useMemo((()=>{const n=!s&&t.getStyles({linkTextStyleRoot:r,fontSize:r,fontFamily:r,fontWeight:r,lineHeight:r,textTransform:r});return t.getStyles({linkVariantRoot:e,display:"inline-flex",alignItems:"center",className:t.cx(n,"uds-ring",i?"underline":"hover:underline",f)})}),[i,s,r,e,f]),g=t.getStyles({linkVariantIconStart:e,linkTextStyleIcon:r,className:t.cx(s&&"w-[0.7em] h-[0.7em]")}),l=t.getStyles({linkVariantIconEnd:e,linkTextStyleIcon:r,className:t.cx(s&&"w-[0.7em] h-[0.7em]")}),P={variant:"outline",color:"current"};return a.jsxs("a",{ref:b,className:O,...p,children:[n&&a.jsx(t.IconSlot,{className:g,icon:n,iconProps:P,"data-testid":"start-icon"}),c,o&&a.jsx(t.IconSlot,{className:l,icon:o,iconProps:P,"data-testid":"end-icon"})]})}));/*! © 2025 Yahoo, Inc. UDS v0.0.0-development */f.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 t.Box}}),Object.defineProperty(exports,"Divider",{enumerable:!0,get:function(){return t.Divider}}),Object.defineProperty(exports,"HStack",{enumerable:!0,get:function(){return t.HStack}}),Object.defineProperty(exports,"Icon",{enumerable:!0,get:function(){return t.Icon}}),Object.defineProperty(exports,"Text",{enumerable:!0,get:function(){return t.Text}}),Object.defineProperty(exports,"VStack",{enumerable:!0,get:function(){return t.VStack}}),Object.defineProperty(exports,"cva",{enumerable:!0,get:function(){return t.cva}}),Object.defineProperty(exports,"cx",{enumerable:!0,get:function(){return t.cx}}),Object.defineProperty(exports,"getStyles",{enumerable:!0,get:function(){return t.getStyles}}),Object.defineProperty(exports,"DEFAULT_COLOR_MODE",{enumerable:!0,get:function(){return r.DEFAULT_COLOR_MODE}}),Object.defineProperty(exports,"DEFAULT_COLOR_MODE_FOR_APP",{enumerable:!0,get:function(){return r.DEFAULT_COLOR_MODE_FOR_APP}}),Object.defineProperty(exports,"DEFAULT_HIGH_CONTRAST_MODE",{enumerable:!0,get:function(){return r.DEFAULT_HIGH_CONTRAST_MODE}}),Object.defineProperty(exports,"DEFAULT_REGION_MODE",{enumerable:!0,get:function(){return r.DEFAULT_REGION_MODE}}),Object.defineProperty(exports,"DEFAULT_SCALE_MODE",{enumerable:!0,get:function(){return r.DEFAULT_SCALE_MODE}}),Object.defineProperty(exports,"DEFAULT_SCALE_MODE_FOR_APP",{enumerable:!0,get:function(){return r.DEFAULT_SCALE_MODE_FOR_APP}}),Object.defineProperty(exports,"FONT_DECLARATIONS_MAP",{enumerable:!0,get:function(){return r.FONT_DECLARATIONS_MAP}}),Object.defineProperty(exports,"alwaysPalette",{enumerable:!0,get:function(){return r.alwaysPalette}}),Object.defineProperty(exports,"button",{enumerable:!0,get:function(){return r.button}}),Object.defineProperty(exports,"cartesianProduct",{enumerable:!0,get:function(){return r.cartesianProduct}}),Object.defineProperty(exports,"coalesceConfigVariant",{enumerable:!0,get:function(){return r.coalesceConfigVariant}}),Object.defineProperty(exports,"configurableProperties",{enumerable:!0,get:function(){return r.configurableProperties}}),Object.defineProperty(exports,"createComponentStateConfig",{enumerable:!0,get:function(){return r.createComponentStateConfig}}),Object.defineProperty(exports,"createComponentStates",{enumerable:!0,get:function(){return r.createComponentStates}}),Object.defineProperty(exports,"createConfigurableProperty",{enumerable:!0,get:function(){return r.createConfigurableProperty}}),Object.defineProperty(exports,"createLayerConfig",{enumerable:!0,get:function(){return r.createLayerConfig}}),Object.defineProperty(exports,"createSubComponentConfig",{enumerable:!0,get:function(){return r.createSubComponentConfig}}),Object.defineProperty(exports,"createVariantConfig",{enumerable:!0,get:function(){return r.createVariantConfig}}),Object.defineProperty(exports,"createVariantConfigWithComponentStates",{enumerable:!0,get:function(){return r.createVariantConfigWithComponentStates}}),Object.defineProperty(exports,"createVariantConfigWithProperties",{enumerable:!0,get:function(){return r.createVariantConfigWithProperties}}),Object.defineProperty(exports,"defaultTokensConfig",{enumerable:!0,get:function(){return r.defaultTokensConfig}}),Object.defineProperty(exports,"defaultUniversalTokensConfigAuto",{enumerable:!0,get:function(){return r.defaultUniversalTokensConfigAuto}}),Object.defineProperty(exports,"findFixtureType",{enumerable:!0,get:function(){return r.findFixtureType}}),Object.defineProperty(exports,"fontWeightMap",{enumerable:!0,get:function(){return r.fontWeightMap}}),Object.defineProperty(exports,"fromEntries",{enumerable:!0,get:function(){return r.fromEntries}}),Object.defineProperty(exports,"generateClassName",{enumerable:!0,get:function(){return r.generateClassName}}),Object.defineProperty(exports,"generateDeclaration",{enumerable:!0,get:function(){return r.generateDeclaration}}),Object.defineProperty(exports,"generateKeyFromFlatConfigPath",{enumerable:!0,get:function(){return r.generateKeyFromFlatConfigPath}}),Object.defineProperty(exports,"generateSchemaKey",{enumerable:!0,get:function(){return r.generateSchemaKey}}),Object.defineProperty(exports,"generateStyles",{enumerable:!0,get:function(){return r.generateStyles}}),Object.defineProperty(exports,"getConfigDefaultValue",{enumerable:!0,get:function(){return r.getConfigDefaultValue}}),Object.defineProperty(exports,"getConfigPseudoStateVariables",{enumerable:!0,get:function(){return r.getConfigPseudoStateVariables}}),Object.defineProperty(exports,"getConfigPseudoStateVariablesWithSetter",{enumerable:!0,get:function(){return r.getConfigPseudoStateVariablesWithSetter}}),Object.defineProperty(exports,"getConfigSubcomponents",{enumerable:!0,get:function(){return r.getConfigSubcomponents}}),Object.defineProperty(exports,"getConfigVariantComponentStates",{enumerable:!0,get:function(){return r.getConfigVariantComponentStates}}),Object.defineProperty(exports,"getConfigVariantComponentStatesMatrix",{enumerable:!0,get:function(){return r.getConfigVariantComponentStatesMatrix}}),Object.defineProperty(exports,"getConfigVariantProperties",{enumerable:!0,get:function(){return r.getConfigVariantProperties}}),Object.defineProperty(exports,"getConfigVariantPseudoStates",{enumerable:!0,get:function(){return r.getConfigVariantPseudoStates}}),Object.defineProperty(exports,"getConfigVariants",{enumerable:!0,get:function(){return r.getConfigVariants}}),Object.defineProperty(exports,"getDefaultButtonBaseMap",{enumerable:!0,get:function(){return r.getDefaultButtonBaseMap}}),Object.defineProperty(exports,"isConfigDefaultValue",{enumerable:!0,get:function(){return r.isConfigDefaultValue}}),Object.defineProperty(exports,"parseButtonVariantFlat",{enumerable:!0,get:function(){return r.parseButtonVariantFlat}}),Object.defineProperty(exports,"parseDeprecatedButtonPaletteVariant",{enumerable:!0,get:function(){return r.parseDeprecatedButtonPaletteVariant}}),Object.defineProperty(exports,"setConfigPseudoStateVariable",{enumerable:!0,get:function(){return r.setConfigPseudoStateVariable}}),Object.defineProperty(exports,"shadow",{enumerable:!0,get:function(){return r.shadow}}),Object.defineProperty(exports,"statePseudoMapDocsMode",{enumerable:!0,get:function(){return r.statePseudoMapDocsMode}}),Object.defineProperty(exports,"toMinimalDbConfigObject",{enumerable:!0,get:function(){return r.toMinimalDbConfigObject}}),Object.defineProperty(exports,"entries",{enumerable:!0,get:function(){return n.entries}}),Object.defineProperty(exports,"mapValues",{enumerable:!0,get:function(){return n.mapValues}}),Object.defineProperty(exports,"variants",{enumerable:!0,get:function(){return o.variants}}),Object.defineProperty(exports,"AVATAR_SIZE_PREFIX",{enumerable:!0,get:function(){return i.AVATAR_SIZE_PREFIX}}),Object.defineProperty(exports,"BORDER_RADIUS_PREFIX",{enumerable:!0,get:function(){return i.BORDER_RADIUS_PREFIX}}),Object.defineProperty(exports,"BORDER_WIDTH_PREFIX",{enumerable:!0,get:function(){return i.BORDER_WIDTH_PREFIX}}),Object.defineProperty(exports,"BUTTON_CSS_VAR_MAP",{enumerable:!0,get:function(){return i.BUTTON_CSS_VAR_MAP}}),Object.defineProperty(exports,"DARK_COLOR_MODE_CLASSNAME",{enumerable:!0,get:function(){return i.DARK_COLOR_MODE_CLASSNAME}}),Object.defineProperty(exports,"DEFAULT_COLOR_MODE_CLASSNAME",{enumerable:!0,get:function(){return i.DEFAULT_COLOR_MODE_CLASSNAME}}),Object.defineProperty(exports,"DEFAULT_SCALE_MODE_CLASSNAME",{enumerable:!0,get:function(){return i.DEFAULT_SCALE_MODE_CLASSNAME}}),Object.defineProperty(exports,"FONT_FAMILY_PREFIX",{enumerable:!0,get:function(){return i.FONT_FAMILY_PREFIX}}),Object.defineProperty(exports,"FONT_SIZE_PREFIX",{enumerable:!0,get:function(){return i.FONT_SIZE_PREFIX}}),Object.defineProperty(exports,"FONT_SLANT_PREFIX",{enumerable:!0,get:function(){return i.FONT_SLANT_PREFIX}}),Object.defineProperty(exports,"FONT_WEIGHT_PREFIX",{enumerable:!0,get:function(){return i.FONT_WEIGHT_PREFIX}}),Object.defineProperty(exports,"FONT_WIDTH_PREFIX",{enumerable:!0,get:function(){return i.FONT_WIDTH_PREFIX}}),Object.defineProperty(exports,"ICON_BUTTON_CSS_VAR_MAP",{enumerable:!0,get:function(){return i.ICON_BUTTON_CSS_VAR_MAP}}),Object.defineProperty(exports,"ICON_SIZE_PREFIX",{enumerable:!0,get:function(){return i.ICON_SIZE_PREFIX}}),Object.defineProperty(exports,"LARGE_SCALE_MODE_CLASSNAME",{enumerable:!0,get:function(){return i.LARGE_SCALE_MODE_CLASSNAME}}),Object.defineProperty(exports,"LIGHT_COLOR_MODE_CLASSNAME",{enumerable:!0,get:function(){return i.LIGHT_COLOR_MODE_CLASSNAME}}),Object.defineProperty(exports,"LINE_HEIGHT_PREFIX",{enumerable:!0,get:function(){return i.LINE_HEIGHT_PREFIX}}),Object.defineProperty(exports,"MEDIUM_SCALE_MODE_CLASSNAME",{enumerable:!0,get:function(){return i.MEDIUM_SCALE_MODE_CLASSNAME}}),Object.defineProperty(exports,"MOTION_PREFIX",{enumerable:!0,get:function(){return i.MOTION_PREFIX}}),Object.defineProperty(exports,"PSEUDO_STYLE_SELECTOR_MAP",{enumerable:!0,get:function(){return i.PSEUDO_STYLE_SELECTOR_MAP}}),Object.defineProperty(exports,"SMALL_SCALE_MODE_CLASSNAME",{enumerable:!0,get:function(){return i.SMALL_SCALE_MODE_CLASSNAME}}),Object.defineProperty(exports,"SPECTRUM_COLOR_PREFIX",{enumerable:!0,get:function(){return i.SPECTRUM_COLOR_PREFIX}}),Object.defineProperty(exports,"TEXT_TRANSFORM_PREFIX",{enumerable:!0,get:function(){return i.TEXT_TRANSFORM_PREFIX}}),Object.defineProperty(exports,"UDS_PREFIX",{enumerable:!0,get:function(){return i.UDS_PREFIX}}),Object.defineProperty(exports,"XLARGE_SCALE_MODE_CLASSNAME",{enumerable:!0,get:function(){return i.XLARGE_SCALE_MODE_CLASSNAME}}),Object.defineProperty(exports,"XSMALL_SCALE_MODE_CLASSNAME",{enumerable:!0,get:function(){return i.XSMALL_SCALE_MODE_CLASSNAME}}),Object.defineProperty(exports,"XXLARGE_SCALE_MODE_CLASSNAME",{enumerable:!0,get:function(){return i.XXLARGE_SCALE_MODE_CLASSNAME}}),Object.defineProperty(exports,"XXXLARGE_SCALE_MODE_CLASSNAME",{enumerable:!0,get:function(){return i.XXXLARGE_SCALE_MODE_CLASSNAME}}),Object.defineProperty(exports,"Avatar",{enumerable:!0,get:function(){return c.Avatar}}),Object.defineProperty(exports,"AvatarIcon",{enumerable:!0,get:function(){return c.AvatarIcon}}),Object.defineProperty(exports,"AvatarImage",{enumerable:!0,get:function(){return c.AvatarImage}}),Object.defineProperty(exports,"AvatarText",{enumerable:!0,get:function(){return c.AvatarText}}),Object.defineProperty(exports,"Badge",{enumerable:!0,get:function(){return c.Badge}}),Object.defineProperty(exports,"Button",{enumerable:!0,get:function(){return c.Button}}),Object.defineProperty(exports,"Checkbox",{enumerable:!0,get:function(){return c.Checkbox}}),Object.defineProperty(exports,"Chip",{enumerable:!0,get:function(){return c.Chip}}),Object.defineProperty(exports,"ChipButton",{enumerable:!0,get:function(){return c.ChipButton}}),Object.defineProperty(exports,"ChipDismissible",{enumerable:!0,get:function(){return c.ChipDismissible}}),Object.defineProperty(exports,"ChipLink",{enumerable:!0,get:function(){return c.ChipLink}}),Object.defineProperty(exports,"ChipToggle",{enumerable:!0,get:function(){return c.ChipToggle}}),Object.defineProperty(exports,"IconButton",{enumerable:!0,get:function(){return c.IconButton}}),Object.defineProperty(exports,"Input",{enumerable:!0,get:function(){return c.Input}}),Object.defineProperty(exports,"Menu",{enumerable:!0,get:function(){return c.Menu}}),Object.defineProperty(exports,"Pressable",{enumerable:!0,get:function(){return c.Pressable}}),Object.defineProperty(exports,"Radio",{enumerable:!0,get:function(){return c.Radio}}),Object.defineProperty(exports,"RadioGroupProvider",{enumerable:!0,get:function(){return c.RadioGroupProvider}}),Object.defineProperty(exports,"SpringMotionConfig",{enumerable:!0,get:function(){return c.SpringMotionConfig}}),Object.defineProperty(exports,"Switch",{enumerable:!0,get:function(){return c.Switch}}),exports.Link=f;
|
1
|
+
"use strict";var e=require("./chunk-L72D6DDM.cjs"),t=require("./chunk-UFBH4CCM.cjs"),r=require("./chunk-4AS6QR6M.cjs"),n=require("./chunk-P4XGJJCM.cjs"),o=require("./chunk-J7PUOUXC.cjs"),i=require("./chunk-IC335V3E.cjs"),u=require("./chunk-HTL6WRXY.cjs"),a=require("react"),c=require("react/jsx-runtime"),f=require("@yahoo/uds/client"),p=a.forwardRef((function({variant:e="primary",textVariant:t,startIcon:n,endIcon:o,alwaysUnderline:i=!1,children:u,className:f,...p},b){const s=!t,O=a.useMemo((()=>{const n=!s&&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":"hover:underline",f)})}),[i,s,t,e,f]),g=r.getStyles({linkVariantIconStart:e,linkTextStyleIcon:t,className:r.cx(s&&"w-[0.7em] h-[0.7em]")}),l=r.getStyles({linkVariantIconEnd:e,linkTextStyleIcon:t,className:r.cx(s&&"w-[0.7em] h-[0.7em]")}),P={variant:"outline",color:"current"};return c.jsxs("a",{ref:b,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"})]})}));/*! © 2025 Yahoo, Inc. UDS v0.0.0-development */p.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,"Divider",{enumerable:!0,get:function(){return t.Divider}}),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_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.Link=p;
|
package/dist/index.d.cts
CHANGED
@@ -1,15 +1,15 @@
|
|
1
|
-
import {
|
2
|
-
export {
|
1
|
+
import { a as DivProps } from './VStack-Ck33D8i-.cjs';
|
2
|
+
export { b as Box, B as BoxProps, c as Divider, D as DividerProps, d as VStack, V as VStackProps } from './VStack-Ck33D8i-.cjs';
|
3
3
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
4
|
-
import {
|
5
|
-
export {
|
4
|
+
import { u as UniversalFormLabelProps, g as UniversalStackProps, v as IconPropsWithSVGProps, w as ImagePropsWithImgProps, x as UniversalIconSlot, y as UniversalLinkProps, z as UniversalTextProps } from './types-BdV70-Tw.cjs';
|
5
|
+
export { G as AVATAR_SIZE_PREFIX, ag as AlwaysPalette, ah as AlwaysPaletteAlias, ai as AlwaysPaletteColor, aj as Animation, ak as AriaAttribute, al as AvatarAbbreviationStrategy, am as AvatarShape, an as AvatarSize, ao as AvatarSizeConfig, ap as AvatarVariant, J as BORDER_RADIUS_PREFIX, K as BORDER_WIDTH_PREFIX, a8 as BUTTON_CSS_VAR_MAP, aq as BackgroundColor, ar as BackgroundPalette, as as BackgroundPaletteAlias, at as BackgroundStyleProps, au as BadgeSize, av as BadgeVariant, aw as BorderRadius, ax as BorderRadiusConfig, ay as BorderStyleProps, az as BorderWidth, aA as BorderWidthConfig, aB as ButtonBaseConfig, l as ButtonClassMap, aC as ButtonClassName, aD as ButtonColorConfig, aE as ButtonColorEffect, aF as ButtonColorEffectConfig, m as ButtonColorProperty, n as ButtonColorPropertyConfig, B as ButtonConfig, aG as ButtonKind, aH as ButtonMotionEffect, aI as ButtonMotionProperty, aJ as ButtonMotionPropertyConfig, aK as ButtonPalette, aL as ButtonPaletteColor, aM as ButtonPaletteConfig, aN as ButtonShadowPropertyConfig, aO as ButtonSize, aP as ButtonSizeConfig, aQ as ButtonSizeProperty, aR as ButtonSpectrumColor, aS as ButtonState, aT as ButtonStateConfig, aU as ButtonStateEffectConfig, aV as ButtonVariant, aW as ButtonVariantConfig, aX as ButtonVariantFlat, aY as CheckboxSize, aZ as CheckboxValue, a_ as CheckboxVariant, a$ as ChipSize, b0 as ChipVariant, C as ColorMode, b1 as ColorModeConfig, b2 as ColorModeForApp, c as ColorsConfig, b3 as ConfigurableDropShadowValues, b4 as ConfigurableInsetShadowValues, b5 as CustomSizingStyleProps, Z as DARK_COLOR_MODE_CLASSNAME, a6 as DEFAULT_COLOR_MODE_CLASSNAME, a7 as DEFAULT_SCALE_MODE_CLASSNAME, b6 as DataAttribute, b7 as Display, b8 as DividerVariant, ab 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, b9 as Flex, ba as FlexAlignContent, bb as FlexAlignItems, bc as FlexAlignSelf, bd as FlexBasis, be as FlexDirection, bf as FlexGrow, bg as FlexJustifyContent, bh as FlexShrink, bi as FlexStyleProps, bj as FlexWrap, bk as FontAlias, ac as FontAxisConfig, p as FontConfig, bl as FontCssVar, ad as FontDeclarationConfig, o as FontDeclarationItemConfig, ae as FontDeclarationMap, bm as FontFamilyCDNUrl, bn as FontFamilyConfig, F as FontID, bo as FontSize, bp as FontSizeConfig, bq as FontSlantConfig, br as FontType, bs as FontWeightConfig, bt as FontWeightDescriptive, af as FontWeightForFont, bu as FontWeightNumeric, bv as FontWidthConfig, bw as ForegroundColor, bx as ForegroundPalette, by as ForegroundPaletteAlias, bz as HighContrastMode, H as Hue, d as HueStep, a9 as ICON_BUTTON_CSS_VAR_MAP, T as ICON_SIZE_PREFIX, I as IconButtonClassMap, bA as IconButtonClassName, bB as IconButtonConfig, bC as IconButtonDefaultsConfig, bD as IconButtonSize, bE as IconSizeConfig, bF as ImageStyleProps, bG as InputSize, a2 as LARGE_SCALE_MODE_CLASSNAME, _ as LIGHT_COLOR_MODE_CLASSNAME, V as LINE_HEIGHT_PREFIX, bH as LayoutStyleProps, bI as LetterSpacing, bJ as LineClampAlias, bK as LineColor, bL as LineHeight, bM as LineHeightConfig, bN as LinePalette, bO as LinePaletteAlias, a1 as MEDIUM_SCALE_MODE_CLASSNAME, W as MOTION_PREFIX, bP as Modes, s as MotionConfig, bQ as MotionCssVar, bR as MotionSpringConfig, r as MotionSpringConfigOptions, M as MotionVariant, q as MotionVariantSpeed, bS as MotionVariantValues, bT as Overflow, aa as PSEUDO_STYLE_SELECTOR_MAP, bU as Palette, e as PaletteConfig, P as PaletteType, bV as PaletteValue, bW as PlatformMode, bX as Position, bY as PropertyToPaletteAliasMap, bZ as RadioSize, b_ as RadioValue, b$ as RadioVariant, c0 as RegionMode, a0 as SMALL_SCALE_MODE_CLASSNAME, X as SPECTRUM_COLOR_PREFIX, c1 as ScaleConfig, c2 as ScaleEffectMap, S as ScaleMode, c3 as ScaleModeConfig, c4 as ScaleModeForApp, c5 as ShadowColor, c6 as ShadowColorConfig, c7 as ShadowConfig, c8 as ShadowOffset, c9 as ShadowOpacity, ca as ShadowPalette, cb as ShadowPaletteAlias, i as ShadowPreset, cc as ShadowSpreadRadius, cd as ShadowStyleProps, t as ShadowType, ce as ShadowTypeConfig, cf as ShadowVariant, cg as ShadowVariantConfig, ch as ShadowVariantInvert, ci as ShadowVariantWithInvert, cj as SharedPaletteAlias, j as SpacingAlias, ck as SpacingConfig, cl as SpacingStyleProps, cm as SpectrumColor, cn as SpectrumConfig, co as StateStyleProps, cp as StyleProps, cq as SwitchSize, Y as TEXT_TRANSFORM_PREFIX, cz as TShirtSize, cA as TShirtSizeCommon, cr as TextProperty, cs as TextStyleProps, ct as TextTransform, cu as TextTransformConfig, cv as TextVariant, cw as TransitionDelay, cx as TransitionDuration, cy as TransitionTiming, E as UDS_PREFIX, cB as UdsCssVar, cC as UniversalAvatarIconProps, cD as UniversalAvatarImageProps, cE as UniversalAvatarProps, cF as UniversalAvatarTextProps, cG as UniversalBadgeProps, f as UniversalBoxProps, cH as UniversalButtonProps, cI as UniversalCheckboxProps, cJ as UniversalChipBaseProps, cK as UniversalChipButtonProps, cL as UniversalChipDismissibleProps, cM as UniversalChipLinkProps, cN as UniversalChipProps, cO as UniversalChipToggleProps, h as UniversalDividerProps, cP as UniversalIconButtonProps, cQ as UniversalIconProps, cR as UniversalImageProps, U as UniversalInputProps, k as UniversalMenuItemProps, a as UniversalPressableProps, cS as UniversalRadioGroupProps, cT as UniversalRadioProps, cU as UniversalSwitchProps, b as UniversalTokensConfig, cV 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-BdV70-Tw.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-Tv8gAhPN.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, 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, 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-CDx_NWe2.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 {
|
2
|
-
export {
|
1
|
+
import { a as DivProps } from './VStack-Ca-CbKTr.js';
|
2
|
+
export { b as Box, B as BoxProps, c as Divider, D as DividerProps, d as VStack, V as VStackProps } from './VStack-Ca-CbKTr.js';
|
3
3
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
4
|
-
import {
|
5
|
-
export {
|
4
|
+
import { u as UniversalFormLabelProps, g as UniversalStackProps, v as IconPropsWithSVGProps, w as ImagePropsWithImgProps, x as UniversalIconSlot, y as UniversalLinkProps, z as UniversalTextProps } from './types-BdV70-Tw.js';
|
5
|
+
export { G as AVATAR_SIZE_PREFIX, ag as AlwaysPalette, ah as AlwaysPaletteAlias, ai as AlwaysPaletteColor, aj as Animation, ak as AriaAttribute, al as AvatarAbbreviationStrategy, am as AvatarShape, an as AvatarSize, ao as AvatarSizeConfig, ap as AvatarVariant, J as BORDER_RADIUS_PREFIX, K as BORDER_WIDTH_PREFIX, a8 as BUTTON_CSS_VAR_MAP, aq as BackgroundColor, ar as BackgroundPalette, as as BackgroundPaletteAlias, at as BackgroundStyleProps, au as BadgeSize, av as BadgeVariant, aw as BorderRadius, ax as BorderRadiusConfig, ay as BorderStyleProps, az as BorderWidth, aA as BorderWidthConfig, aB as ButtonBaseConfig, l as ButtonClassMap, aC as ButtonClassName, aD as ButtonColorConfig, aE as ButtonColorEffect, aF as ButtonColorEffectConfig, m as ButtonColorProperty, n as ButtonColorPropertyConfig, B as ButtonConfig, aG as ButtonKind, aH as ButtonMotionEffect, aI as ButtonMotionProperty, aJ as ButtonMotionPropertyConfig, aK as ButtonPalette, aL as ButtonPaletteColor, aM as ButtonPaletteConfig, aN as ButtonShadowPropertyConfig, aO as ButtonSize, aP as ButtonSizeConfig, aQ as ButtonSizeProperty, aR as ButtonSpectrumColor, aS as ButtonState, aT as ButtonStateConfig, aU as ButtonStateEffectConfig, aV as ButtonVariant, aW as ButtonVariantConfig, aX as ButtonVariantFlat, aY as CheckboxSize, aZ as CheckboxValue, a_ as CheckboxVariant, a$ as ChipSize, b0 as ChipVariant, C as ColorMode, b1 as ColorModeConfig, b2 as ColorModeForApp, c as ColorsConfig, b3 as ConfigurableDropShadowValues, b4 as ConfigurableInsetShadowValues, b5 as CustomSizingStyleProps, Z as DARK_COLOR_MODE_CLASSNAME, a6 as DEFAULT_COLOR_MODE_CLASSNAME, a7 as DEFAULT_SCALE_MODE_CLASSNAME, b6 as DataAttribute, b7 as Display, b8 as DividerVariant, ab 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, b9 as Flex, ba as FlexAlignContent, bb as FlexAlignItems, bc as FlexAlignSelf, bd as FlexBasis, be as FlexDirection, bf as FlexGrow, bg as FlexJustifyContent, bh as FlexShrink, bi as FlexStyleProps, bj as FlexWrap, bk as FontAlias, ac as FontAxisConfig, p as FontConfig, bl as FontCssVar, ad as FontDeclarationConfig, o as FontDeclarationItemConfig, ae as FontDeclarationMap, bm as FontFamilyCDNUrl, bn as FontFamilyConfig, F as FontID, bo as FontSize, bp as FontSizeConfig, bq as FontSlantConfig, br as FontType, bs as FontWeightConfig, bt as FontWeightDescriptive, af as FontWeightForFont, bu as FontWeightNumeric, bv as FontWidthConfig, bw as ForegroundColor, bx as ForegroundPalette, by as ForegroundPaletteAlias, bz as HighContrastMode, H as Hue, d as HueStep, a9 as ICON_BUTTON_CSS_VAR_MAP, T as ICON_SIZE_PREFIX, I as IconButtonClassMap, bA as IconButtonClassName, bB as IconButtonConfig, bC as IconButtonDefaultsConfig, bD as IconButtonSize, bE as IconSizeConfig, bF as ImageStyleProps, bG as InputSize, a2 as LARGE_SCALE_MODE_CLASSNAME, _ as LIGHT_COLOR_MODE_CLASSNAME, V as LINE_HEIGHT_PREFIX, bH as LayoutStyleProps, bI as LetterSpacing, bJ as LineClampAlias, bK as LineColor, bL as LineHeight, bM as LineHeightConfig, bN as LinePalette, bO as LinePaletteAlias, a1 as MEDIUM_SCALE_MODE_CLASSNAME, W as MOTION_PREFIX, bP as Modes, s as MotionConfig, bQ as MotionCssVar, bR as MotionSpringConfig, r as MotionSpringConfigOptions, M as MotionVariant, q as MotionVariantSpeed, bS as MotionVariantValues, bT as Overflow, aa as PSEUDO_STYLE_SELECTOR_MAP, bU as Palette, e as PaletteConfig, P as PaletteType, bV as PaletteValue, bW as PlatformMode, bX as Position, bY as PropertyToPaletteAliasMap, bZ as RadioSize, b_ as RadioValue, b$ as RadioVariant, c0 as RegionMode, a0 as SMALL_SCALE_MODE_CLASSNAME, X as SPECTRUM_COLOR_PREFIX, c1 as ScaleConfig, c2 as ScaleEffectMap, S as ScaleMode, c3 as ScaleModeConfig, c4 as ScaleModeForApp, c5 as ShadowColor, c6 as ShadowColorConfig, c7 as ShadowConfig, c8 as ShadowOffset, c9 as ShadowOpacity, ca as ShadowPalette, cb as ShadowPaletteAlias, i as ShadowPreset, cc as ShadowSpreadRadius, cd as ShadowStyleProps, t as ShadowType, ce as ShadowTypeConfig, cf as ShadowVariant, cg as ShadowVariantConfig, ch as ShadowVariantInvert, ci as ShadowVariantWithInvert, cj as SharedPaletteAlias, j as SpacingAlias, ck as SpacingConfig, cl as SpacingStyleProps, cm as SpectrumColor, cn as SpectrumConfig, co as StateStyleProps, cp as StyleProps, cq as SwitchSize, Y as TEXT_TRANSFORM_PREFIX, cz as TShirtSize, cA as TShirtSizeCommon, cr as TextProperty, cs as TextStyleProps, ct as TextTransform, cu as TextTransformConfig, cv as TextVariant, cw as TransitionDelay, cx as TransitionDuration, cy as TransitionTiming, E as UDS_PREFIX, cB as UdsCssVar, cC as UniversalAvatarIconProps, cD as UniversalAvatarImageProps, cE as UniversalAvatarProps, cF as UniversalAvatarTextProps, cG as UniversalBadgeProps, f as UniversalBoxProps, cH as UniversalButtonProps, cI as UniversalCheckboxProps, cJ as UniversalChipBaseProps, cK as UniversalChipButtonProps, cL as UniversalChipDismissibleProps, cM as UniversalChipLinkProps, cN as UniversalChipProps, cO as UniversalChipToggleProps, h as UniversalDividerProps, cP as UniversalIconButtonProps, cQ as UniversalIconProps, cR as UniversalImageProps, U as UniversalInputProps, k as UniversalMenuItemProps, a as UniversalPressableProps, cS as UniversalRadioGroupProps, cT as UniversalRadioProps, cU as UniversalSwitchProps, b as UniversalTokensConfig, cV 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-BdV70-Tw.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-D6N7TCc9.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, 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, 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-xaTWnEHm.js';
|
13
13
|
export { IconSize, IconVariant } from '@yahoo/uds-icons/types';
|
14
14
|
import 'motion/react';
|
15
15
|
import 'type-fest';
|