@yahoo/uds 3.32.0-beta.1 → 3.32.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/dist/{Box-CurEP3UK.d.cts → Box-DLjI-1wX.d.cts} +5 -1
- package/dist/{Box-CurEP3UK.d.ts → Box-DLjI-1wX.d.ts} +5 -1
- package/dist/{Input-CShQy1AN.d.ts → Input-B5AE4PE5.d.ts} +1 -1
- package/dist/{Input-PQPqt40J.d.cts → Input-C-SNRax7.d.cts} +1 -1
- package/dist/Input-Cgnjk-GV.d.ts +52 -0
- package/dist/Input-ObapKyaD.d.cts +52 -0
- package/dist/{Pressable-B7zYkROB.d.cts → Pressable-CwUgxpDe.d.cts} +1 -1
- package/dist/{Pressable-D_EBLD22.d.ts → Pressable-DfsJWAUg.d.ts} +1 -1
- package/dist/Pressable-DrsJnA9p.d.ts +44 -0
- package/dist/Pressable-ZwJ3p5BO.d.cts +44 -0
- package/dist/{VStack-Df7cOZv3.d.cts → VStack-6OKRLQVe.d.cts} +1 -1
- package/dist/VStack-CjObxroS.d.cts +112 -0
- package/dist/{VStack-CcKiHh5j.d.ts → VStack-Daijz56E.d.ts} +1 -1
- package/dist/VStack-v-u55ROY.d.ts +112 -0
- package/dist/{chunk-J26SGETG.cjs → chunk-2KFM5W3U.cjs} +1 -1
- package/dist/chunk-5NN6ZF5W.js +2 -0
- package/dist/{chunk-3GJTY3MP.cjs → chunk-64CJRXJ4.cjs} +1 -1
- package/dist/chunk-6IRLMT6I.cjs +1 -0
- package/dist/{chunk-XFG6EGPL.cjs → chunk-7NWACD4M.cjs} +1 -1
- package/dist/chunk-B2TWH6YF.cjs +2 -0
- package/dist/chunk-C5UZEZC5.js +2 -0
- package/dist/{chunk-WNCWU62A.cjs → chunk-C644LGNR.cjs} +1 -1
- package/dist/{chunk-PJUO4VUT.js → chunk-CFX4ZLZI.js} +1 -1
- package/dist/chunk-FN67NTU3.cjs +1 -0
- package/dist/chunk-G424GRRD.js +3 -0
- package/dist/chunk-GIJZFIYD.js +3 -0
- package/dist/{chunk-SA7NIS2O.js → chunk-HHB3JZDI.js} +1 -1
- package/dist/chunk-LY4CD7HC.cjs +1 -0
- package/dist/{chunk-3UTUODQY.js → chunk-MIYOAJO6.js} +1 -1
- package/dist/{chunk-CRVISLFX.js → chunk-OW6PGTIM.js} +1 -1
- package/dist/chunk-PAETZFJJ.cjs +3 -0
- package/dist/chunk-QNNUPDNC.cjs +1 -0
- package/dist/chunk-RA5767I6.cjs +1 -0
- package/dist/chunk-S5XWK3OK.cjs +3 -0
- package/dist/chunk-VKJHEGMU.js +2 -0
- package/dist/{chunk-NK26IH6V.cjs → chunk-WBRK2KGV.cjs} +1 -1
- package/dist/chunk-XT7VV5LA.cjs +1 -0
- package/dist/chunk-XUETKXD3.js +1 -0
- package/dist/chunk-YHC6NBJU.js +1 -0
- package/dist/chunk-YPFSOK5E.js +1 -0
- package/dist/chunk-YRL363DC.js +1 -0
- package/dist/{chunk-RITOU56N.js → chunk-Z22N2NRS.js} +1 -1
- package/dist/client/Menu.cjs +2 -2
- 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/defaultTokensConfig.d.cts +2 -2
- package/dist/defaultTokensConfig.d.ts +2 -2
- package/dist/experimental/client/SwitchV2.cjs +1 -2
- package/dist/experimental/client/SwitchV2.d.cts +1 -1
- package/dist/experimental/client/SwitchV2.d.ts +1 -1
- package/dist/experimental/client/SwitchV2.js +2 -1
- package/dist/experimental/client/index.cjs +1 -1
- package/dist/experimental/client/index.d.cts +1 -1
- package/dist/experimental/client/index.d.ts +1 -1
- package/dist/experimental/client/index.js +1 -1
- package/dist/experimental/index.cjs +1 -1
- package/dist/experimental/index.d.cts +1 -1
- package/dist/experimental/index.d.ts +1 -1
- package/dist/experimental/index.js +1 -1
- package/dist/index-AOeCApsf.d.cts +245 -0
- package/dist/{index-B9lUgtPK.d.cts → index-DCvnWL4w.d.cts} +1 -1
- package/dist/index-Dmxw79V3.d.ts +245 -0
- package/dist/{index-BaI_jrSA.d.ts → index-h0brUKTk.d.ts} +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +8 -8
- package/dist/index.d.ts +8 -8
- 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 +3 -3
- package/dist/tailwind/plugin.d.ts +3 -3
- package/dist/tailwind/plugin.js +2 -2
- package/dist/tailwind/purger.cjs +1 -1
- package/dist/tailwind/purger.js +2 -2
- package/dist/tailwind/utils.cjs +1 -1
- package/dist/tailwind/utils.d.cts +9 -9
- package/dist/tailwind/utils.d.ts +9 -9
- package/dist/tailwind/utils.js +1 -1
- package/dist/tokens/automation/configs.d.cts +2 -2
- package/dist/tokens/automation/configs.d.ts +2 -2
- package/dist/tokens/automation/properties.d.cts +2 -2
- package/dist/tokens/automation/properties.d.ts +2 -2
- package/dist/tokens/index.d.cts +4 -4
- package/dist/tokens/index.d.ts +4 -4
- package/dist/tokens/parseTokens.d.cts +1 -1
- package/dist/tokens/parseTokens.d.ts +1 -1
- package/dist/{types-CILmuEy4.d.cts → types-Dde3E25v.d.cts} +10 -2
- package/dist/{types-CILmuEy4.d.ts → types-Dde3E25v.d.ts} +10 -2
- package/dist/types-zBAkfBh2.d.cts +10585 -0
- package/dist/types-zBAkfBh2.d.ts +10585 -0
- package/package.json +1 -1
- package/dist/chunk-4YKYM24Q.cjs +0 -1
- package/dist/chunk-TKDMDEZQ.js +0 -2
- package/dist/chunk-VGW5FOVC.js +0 -3
- package/dist/chunk-Z5QYFA5P.cjs +0 -3
@@ -0,0 +1,245 @@
|
|
1
|
+
import * as properties from '@yahoo/uds/fixtures';
|
2
|
+
import { m as ShadowPreset, g as UniversalTokensConfig } from './types-zBAkfBh2.js';
|
3
|
+
|
4
|
+
type DispatchContext = {
|
5
|
+
componentName: string;
|
6
|
+
subComponentName?: string;
|
7
|
+
propertyKey: string;
|
8
|
+
layer: string;
|
9
|
+
};
|
10
|
+
interface ConfigurableProperty<T extends AllPossibleProperties, CVR = unknown> {
|
11
|
+
name: string;
|
12
|
+
cssProperties: string | string[];
|
13
|
+
twThemePath: (selected: T, value: string) => string;
|
14
|
+
possibleFixtures: T[];
|
15
|
+
extendedProperties?: ExtendablePropertiesName[] | ((context: DispatchContext) => ExtendablePropertiesName[] | undefined | false);
|
16
|
+
customValueRenderer?: (schemaStateValue: SchemaStateValue<CVR>, schema: unknown, themeGetter: (path: string) => string) => string;
|
17
|
+
concatenate?: boolean;
|
18
|
+
concatenationDelimiter?: string;
|
19
|
+
}
|
20
|
+
declare const publicProperties: {
|
21
|
+
readonly backgroundColor: ConfigurableProperty<"backgroundPaletteColors" | "spectrumColors" | "alwaysPaletteAliases", unknown>;
|
22
|
+
readonly borderWidth: ConfigurableProperty<"spacingAliases" | "borderWidths", unknown>;
|
23
|
+
readonly borderRadius: ConfigurableProperty<"borderRadii", unknown>;
|
24
|
+
readonly borderColor: ConfigurableProperty<"linePaletteColors" | "spectrumColors" | "alwaysPaletteAliases", unknown>;
|
25
|
+
readonly fontFamily: ConfigurableProperty<"textVariants", unknown>;
|
26
|
+
readonly fontSize: ConfigurableProperty<"textVariants", unknown>;
|
27
|
+
readonly fontVariationSettings: ConfigurableProperty<"textVariants", unknown>;
|
28
|
+
readonly lineHeight: ConfigurableProperty<"textVariants", unknown>;
|
29
|
+
readonly textTransform: ConfigurableProperty<"textVariants", unknown>;
|
30
|
+
readonly padding: ConfigurableProperty<"spacingAliases", unknown>;
|
31
|
+
readonly gap: ConfigurableProperty<"spacingAliases", unknown>;
|
32
|
+
readonly color: ConfigurableProperty<"foregroundPaletteColors" | "spectrumColors" | "alwaysPaletteAliases", unknown>;
|
33
|
+
readonly fontWeight: ConfigurableProperty<"textVariants", unknown>;
|
34
|
+
readonly iconSize: ConfigurableProperty<"iconSizes", unknown>;
|
35
|
+
readonly spacingHorizontal: ConfigurableProperty<"spacingAliases", unknown>;
|
36
|
+
readonly spacingVertical: ConfigurableProperty<"spacingAliases", unknown>;
|
37
|
+
readonly textVariant: ConfigurableProperty<"textVariants", unknown>;
|
38
|
+
readonly textDecorationLine: ConfigurableProperty<"textDecorationLines", unknown>;
|
39
|
+
readonly shadow: ConfigurableProperty<"shadowVariants", string | [] | [ShadowPreset] | [ShadowPreset, ShadowPreset] | [ShadowPreset, ShadowPreset, ShadowPreset]>;
|
40
|
+
readonly insetShadow: ConfigurableProperty<"shadowVariantsWithInvert", string | [] | [ShadowPreset] | [ShadowPreset, ShadowPreset] | [ShadowPreset, ShadowPreset, ShadowPreset]>;
|
41
|
+
readonly height: ConfigurableProperty<"spacingAliases", unknown>;
|
42
|
+
readonly width: ConfigurableProperty<"spacingAliases", unknown>;
|
43
|
+
};
|
44
|
+
declare const configurableProperties: {
|
45
|
+
outlineWidth: ConfigurableProperty<"spacingAliases" | "borderWidths", unknown>;
|
46
|
+
outlineColor: ConfigurableProperty<"linePaletteColors" | "spectrumColors" | "alwaysPaletteAliases", unknown>;
|
47
|
+
insetOutlineOffset: ConfigurableProperty<"spacingAliases" | "borderWidths", unknown>;
|
48
|
+
solidOutline: ConfigurableProperty<never, unknown>;
|
49
|
+
backgroundColor: ConfigurableProperty<"backgroundPaletteColors" | "spectrumColors" | "alwaysPaletteAliases", unknown>;
|
50
|
+
borderWidth: ConfigurableProperty<"spacingAliases" | "borderWidths", unknown>;
|
51
|
+
borderRadius: ConfigurableProperty<"borderRadii", unknown>;
|
52
|
+
borderColor: ConfigurableProperty<"linePaletteColors" | "spectrumColors" | "alwaysPaletteAliases", unknown>;
|
53
|
+
fontFamily: ConfigurableProperty<"textVariants", unknown>;
|
54
|
+
fontSize: ConfigurableProperty<"textVariants", unknown>;
|
55
|
+
fontVariationSettings: ConfigurableProperty<"textVariants", unknown>;
|
56
|
+
lineHeight: ConfigurableProperty<"textVariants", unknown>;
|
57
|
+
textTransform: ConfigurableProperty<"textVariants", unknown>;
|
58
|
+
padding: ConfigurableProperty<"spacingAliases", unknown>;
|
59
|
+
gap: ConfigurableProperty<"spacingAliases", unknown>;
|
60
|
+
color: ConfigurableProperty<"foregroundPaletteColors" | "spectrumColors" | "alwaysPaletteAliases", unknown>;
|
61
|
+
fontWeight: ConfigurableProperty<"textVariants", unknown>;
|
62
|
+
iconSize: ConfigurableProperty<"iconSizes", unknown>;
|
63
|
+
spacingHorizontal: ConfigurableProperty<"spacingAliases", unknown>;
|
64
|
+
spacingVertical: ConfigurableProperty<"spacingAliases", unknown>;
|
65
|
+
textVariant: ConfigurableProperty<"textVariants", unknown>;
|
66
|
+
textDecorationLine: ConfigurableProperty<"textDecorationLines", unknown>;
|
67
|
+
shadow: ConfigurableProperty<"shadowVariants", string | [] | [ShadowPreset] | [ShadowPreset, ShadowPreset] | [ShadowPreset, ShadowPreset, ShadowPreset]>;
|
68
|
+
insetShadow: ConfigurableProperty<"shadowVariantsWithInvert", string | [] | [ShadowPreset] | [ShadowPreset, ShadowPreset] | [ShadowPreset, ShadowPreset, ShadowPreset]>;
|
69
|
+
height: ConfigurableProperty<"spacingAliases", unknown>;
|
70
|
+
width: ConfigurableProperty<"spacingAliases", unknown>;
|
71
|
+
};
|
72
|
+
type ExtendablePropertiesName = keyof typeof configurableProperties;
|
73
|
+
type ConfigurablePropertiesName = keyof typeof publicProperties;
|
74
|
+
interface SelectedConfigurableProperty<C extends ConfigurablePropertiesName, O extends string, T extends (typeof publicProperties)[C]['possibleFixtures'] = (typeof publicProperties)[C]['possibleFixtures'], V extends readonly (readonly string[])[] = readonly (readonly string[])[]> {
|
75
|
+
label: string;
|
76
|
+
name: C;
|
77
|
+
typeOfFixture: T;
|
78
|
+
values: V;
|
79
|
+
pseudoStates?: PossibleStates[];
|
80
|
+
supportsCustom?: boolean;
|
81
|
+
defaults: {
|
82
|
+
[K in O]: V[number][number];
|
83
|
+
};
|
84
|
+
}
|
85
|
+
|
86
|
+
type AllPossibleProperties = Exclude<keyof typeof properties, 'iconButtonClassNames' | 'iconButtonSize' | 'iconButtonStates' | 'buttonClassNames' | 'buttonColorProperties' | 'buttonIconSvgSize' | 'buttonKinds' | 'buttonMotionEffects' | 'buttonMotionProperties' | 'buttonPalettes' | 'buttonSizeProperties' | 'buttonSizes' | 'buttonStates' | 'buttonVariants'> | 'shadowVariantConfig';
|
87
|
+
type PossibleStates = 'hover' | 'pressed' | 'focused' | 'invalid' | 'focus-within' | 'focused-keyboard' | 'visited' | 'readonly' | 'disabled' | 'invalid&hover' | 'invalid&pressed';
|
88
|
+
type PossibleStatesWithRest = 'rest' | PossibleStates;
|
89
|
+
interface LayerConfig {
|
90
|
+
label: string;
|
91
|
+
properties: Readonly<Record<string, SelectedConfigurableProperty<ConfigurablePropertiesName, string>>>;
|
92
|
+
pseudoSelector?: string;
|
93
|
+
}
|
94
|
+
interface ComponentStateConfig {
|
95
|
+
label: string;
|
96
|
+
options: string[];
|
97
|
+
layers: {
|
98
|
+
root: LayerConfig;
|
99
|
+
} & Record<string, LayerConfig>;
|
100
|
+
}
|
101
|
+
interface SubComponentConfig {
|
102
|
+
label: string;
|
103
|
+
description: string;
|
104
|
+
overrideComponentName?: string;
|
105
|
+
variants: Record<string, VariantConfigWithProperties | VariantConfigWithComponentStates>;
|
106
|
+
}
|
107
|
+
interface VariantConfig<O extends string = string> {
|
108
|
+
label: string;
|
109
|
+
description: string;
|
110
|
+
isConfigurable: boolean;
|
111
|
+
default: O;
|
112
|
+
options: readonly O[];
|
113
|
+
}
|
114
|
+
interface VariantConfigWithProperties<O extends string = string> extends VariantConfig<O> {
|
115
|
+
layers: {
|
116
|
+
root: LayerConfig;
|
117
|
+
} & Record<string, LayerConfig>;
|
118
|
+
}
|
119
|
+
interface VariantConfigWithComponentStates<O extends string = string> extends VariantConfig<O> {
|
120
|
+
componentStates?: Readonly<Record<string, ComponentStateConfig>>;
|
121
|
+
}
|
122
|
+
interface ComponentConfig {
|
123
|
+
label: string;
|
124
|
+
description: string;
|
125
|
+
overrideComponentName?: string;
|
126
|
+
subComponents?: Record<string, SubComponentConfig>;
|
127
|
+
variants?: Record<string, VariantConfigWithProperties | VariantConfigWithComponentStates>;
|
128
|
+
}
|
129
|
+
type AutoComponents = Omit<UniversalTokensConfig, 'colorMode' | 'font' | 'scaleMode' | 'version' | 'motion' | 'button' | 'iconButton' | 'shadow' | 'breakpoints' | 'typography' | 'globalDefaults'>;
|
130
|
+
type AutoComponentName = keyof AutoComponents;
|
131
|
+
type AllVariantKeys = {
|
132
|
+
[K in keyof AutoComponents]: {
|
133
|
+
[V in keyof AutoComponents[K]['defaults']]: V;
|
134
|
+
}[keyof AutoComponents[K]['defaults']];
|
135
|
+
}[keyof AutoComponents];
|
136
|
+
|
137
|
+
type ThemeFn = (path: string) => string;
|
138
|
+
type SchemaStateValue<T = any> = {
|
139
|
+
type: string;
|
140
|
+
valueType: 'alias' | 'custom';
|
141
|
+
value: T;
|
142
|
+
};
|
143
|
+
declare const statePseudoMapDocsMode: Record<PossibleStates | 'rest', string>;
|
144
|
+
declare function findFixtureType(property: SelectedConfigurableProperty<ConfigurablePropertiesName, string>, variantKey: string): string;
|
145
|
+
declare function toMinimalDbConfigObject<C extends ComponentConfig>(config: C): any;
|
146
|
+
declare function generateClassName({ componentName, variantKey, variantValue, layer, layerOptionalPseudoSelector, subComponentName, stateKey, stateValue, }: {
|
147
|
+
componentName: string;
|
148
|
+
variantKey: string;
|
149
|
+
variantValue?: string;
|
150
|
+
layer: string;
|
151
|
+
layerOptionalPseudoSelector?: string;
|
152
|
+
subComponentName?: string;
|
153
|
+
stateKey?: string;
|
154
|
+
stateValue?: string;
|
155
|
+
}): string;
|
156
|
+
declare function generateDeclaration({ componentName, variantKey, variantValue, layer, layerOptionalPseudoSelector, subComponentName, stateKey, stateValue, schema, propertyKey, originalPropertyDefinition, theme, currentStyles, previewOptions, }: {
|
157
|
+
componentName: string;
|
158
|
+
variantKey: string;
|
159
|
+
variantValue: string;
|
160
|
+
layer: string;
|
161
|
+
layerOptionalPseudoSelector?: string;
|
162
|
+
subComponentName?: string;
|
163
|
+
stateKey?: string;
|
164
|
+
stateValue?: string;
|
165
|
+
schema: unknown;
|
166
|
+
propertyKey: string;
|
167
|
+
originalPropertyDefinition: SelectedConfigurableProperty<ConfigurablePropertiesName, any>;
|
168
|
+
theme: ThemeFn;
|
169
|
+
currentStyles: Readonly<Record<string, Record<string, string>>>;
|
170
|
+
previewOptions?: {
|
171
|
+
generatePseudoStateClassModifier?: boolean;
|
172
|
+
forcePseudoState?: boolean;
|
173
|
+
};
|
174
|
+
}): Record<string, Record<string, string>>;
|
175
|
+
declare function generateStyles<C extends ComponentConfig>(config: C, schema: any, theme: ThemeFn, previewOptions?: {
|
176
|
+
generatePseudoStateClassModifier: boolean;
|
177
|
+
forcePseudoState: boolean;
|
178
|
+
}): Record<string, Record<string, string>>;
|
179
|
+
declare function createConfigurableProperty<C extends ConfigurablePropertiesName, O extends string, T extends (typeof configurableProperties)[C]['possibleFixtures'], V extends readonly (readonly string[])[] = readonly (readonly string[])[]>(prop: {
|
180
|
+
name: C;
|
181
|
+
typeOfFixture: T;
|
182
|
+
values: V;
|
183
|
+
defaults: {
|
184
|
+
[K in O]: V[number][number];
|
185
|
+
};
|
186
|
+
label: string;
|
187
|
+
pseudoStates?: PossibleStates[];
|
188
|
+
supportsCustom?: boolean;
|
189
|
+
}): SelectedConfigurableProperty<C, O, T, V>;
|
190
|
+
/**
|
191
|
+
* @deprecated use the new functions instead
|
192
|
+
*/
|
193
|
+
declare function createVariantConfig<O extends string, T extends Record<string, SelectedConfigurableProperty<ConfigurablePropertiesName, O>>>(config: {
|
194
|
+
label: string;
|
195
|
+
description: string;
|
196
|
+
isConfigurable: boolean;
|
197
|
+
default: O;
|
198
|
+
options: readonly O[];
|
199
|
+
properties: T;
|
200
|
+
}): VariantConfig<O>;
|
201
|
+
declare function createComponentStateConfig(config: {
|
202
|
+
label: string;
|
203
|
+
options: string[];
|
204
|
+
layers: {
|
205
|
+
root: LayerConfig;
|
206
|
+
} & Record<string, LayerConfig>;
|
207
|
+
}): ComponentStateConfig;
|
208
|
+
declare function createVariantConfigWithProperties(config: {
|
209
|
+
label: string;
|
210
|
+
description: string;
|
211
|
+
isConfigurable: boolean;
|
212
|
+
default: string;
|
213
|
+
options: readonly string[];
|
214
|
+
layers: {
|
215
|
+
root: LayerConfig;
|
216
|
+
} & Record<string, LayerConfig>;
|
217
|
+
}): VariantConfigWithProperties;
|
218
|
+
declare function createVariantConfigWithComponentStates(config: {
|
219
|
+
label: string;
|
220
|
+
description: string;
|
221
|
+
isConfigurable: boolean;
|
222
|
+
default: string;
|
223
|
+
options: readonly string[];
|
224
|
+
componentStates: Record<string, ComponentStateConfig>;
|
225
|
+
}): VariantConfigWithComponentStates;
|
226
|
+
declare function createComponentStates(config: {
|
227
|
+
label: string;
|
228
|
+
options: string[];
|
229
|
+
layers: {
|
230
|
+
root: LayerConfig;
|
231
|
+
} & Record<string, LayerConfig>;
|
232
|
+
}): ComponentStateConfig;
|
233
|
+
declare function createLayerConfig(config: {
|
234
|
+
label: string;
|
235
|
+
pseudoSelector?: string;
|
236
|
+
properties: Readonly<Record<string, SelectedConfigurableProperty<ConfigurablePropertiesName, string>>>;
|
237
|
+
}): LayerConfig;
|
238
|
+
declare function createSubComponentConfig(config: {
|
239
|
+
label: string;
|
240
|
+
description: string;
|
241
|
+
overrideComponentName?: string;
|
242
|
+
variants: Record<string, VariantConfigWithProperties | VariantConfigWithComponentStates>;
|
243
|
+
}): SubComponentConfig;
|
244
|
+
|
245
|
+
export { type AllPossibleProperties as A, type ConfigurablePropertiesName as C, type ExtendablePropertiesName as E, type LayerConfig as L, type PossibleStates as P, type SelectedConfigurableProperty as S, type VariantConfig as V, type PossibleStatesWithRest as a, type ComponentStateConfig as b, configurableProperties as c, type SubComponentConfig as d, type VariantConfigWithProperties as e, type VariantConfigWithComponentStates as f, type ComponentConfig as g, type AutoComponents as h, type AutoComponentName as i, type AllVariantKeys as j, type SchemaStateValue as k, findFixtureType as l, generateClassName as m, generateDeclaration as n, generateStyles as o, createConfigurableProperty as p, createVariantConfig as q, createComponentStateConfig as r, statePseudoMapDocsMode as s, toMinimalDbConfigObject as t, createVariantConfigWithProperties as u, createVariantConfigWithComponentStates as v, createComponentStates as w, createLayerConfig as x, createSubComponentConfig as y };
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import * as properties from '@yahoo/uds/fixtures';
|
2
|
-
import { m as ShadowPreset, g as UniversalTokensConfig } from './types-
|
2
|
+
import { m as ShadowPreset, g as UniversalTokensConfig } from './types-Dde3E25v.js';
|
3
3
|
|
4
4
|
type DispatchContext = {
|
5
5
|
componentName: string;
|
package/dist/index.cjs
CHANGED
@@ -1 +1 @@
|
|
1
|
-
"use strict";var e=require("./chunk-J26SGETG.cjs"),t=require("./chunk-3GJTY3MP.cjs"),r=require("./chunk-WNCWU62A.cjs"),n=require("./chunk-XFG6EGPL.cjs"),o=require("./chunk-Z5QYFA5P.cjs"),i=require("./chunk-T3NVPMAQ.cjs"),u=require("./chunk-J7PUOUXC.cjs"),a=require("./chunk-66AIQC3S.cjs"),c=require("./chunk-3AYBRPUC.cjs"),f=require("react"),p=require("react/jsx-runtime"),b=require("@yahoo/uds/client"),s=f.forwardRef(function(e,r){return p.jsx(t.DividerInternal,{ref:r,...e})});/*! © 2025 Yahoo, Inc. UDS v0.0.0-development */s.displayName="Divider";var O=f.forwardRef(function({variant:e="primary",textVariant:t,startIcon:r,endIcon:n,alwaysUnderline:i=!1,children:u,className:a,...c},b){const s=!t,O=f.useMemo(()=>{const r=!s&&o.getStyles({linkTextStyleRoot:t,fontSize:t,fontFamily:t,fontWeight:t,lineHeight:t,textTransform:t});return o.getStyles({linkVariantRoot:e,display:"inline-flex",alignItems:"center",className:o.cx(r,"uds-ring",i&&"underline",a)})},[i,s,t,e,a]),g=o.getStyles({linkVariantIconStart:e,linkTextStyleIcon:t,className:o.cx(s&&"w-[0.7em] h-[0.7em]")}),l=o.getStyles({linkVariantIconEnd:e,linkTextStyleIcon:t,className:o.cx(s&&"w-[0.7em] h-[0.7em]")}),P={variant:"outline",color:"current"};return p.jsxs("a",{ref:b,className:O,...c,children:[r&&p.jsx(o.IconSlot,{className:g,icon:r,iconProps:P,"data-testid":"start-icon"}),u,n&&p.jsx(o.IconSlot,{className:l,icon:n,iconProps:P,"data-testid":"end-icon"})]})});O.displayName="Link",Object.defineProperty(exports,"Image",{enumerable:!0,get:function(){return e.Image}}),Object.defineProperty(exports,"InputHelpText",{enumerable:!0,get:function(){return e.InputHelpTextMemo}}),Object.defineProperty(exports,"HStack",{enumerable:!0,get:function(){return r.HStack}}),Object.defineProperty(exports,"VStack",{enumerable:!0,get:function(){return r.VStack}}),Object.defineProperty(exports,"FormLabel",{enumerable:!0,get:function(){return n.FormLabel}}),Object.defineProperty(exports,"Box",{enumerable:!0,get:function(){return o.Box}}),Object.defineProperty(exports,"Icon",{enumerable:!0,get:function(){return o.Icon}}),Object.defineProperty(exports,"Text",{enumerable:!0,get:function(){return o.Text}}),Object.defineProperty(exports,"cva",{enumerable:!0,get:function(){return o.cva}}),Object.defineProperty(exports,"cx",{enumerable:!0,get:function(){return o.cx}}),Object.defineProperty(exports,"getStyles",{enumerable:!0,get:function(){return o.getStyles}}),Object.defineProperty(exports,"DEFAULT_COLOR_MODE",{enumerable:!0,get:function(){return i.DEFAULT_COLOR_MODE}}),Object.defineProperty(exports,"DEFAULT_COLOR_MODE_FOR_APP",{enumerable:!0,get:function(){return i.DEFAULT_COLOR_MODE_FOR_APP}}),Object.defineProperty(exports,"DEFAULT_HIGH_CONTRAST_MODE",{enumerable:!0,get:function(){return i.DEFAULT_HIGH_CONTRAST_MODE}}),Object.defineProperty(exports,"DEFAULT_REGION_MODE",{enumerable:!0,get:function(){return i.DEFAULT_REGION_MODE}}),Object.defineProperty(exports,"DEFAULT_SCALE_MODE",{enumerable:!0,get:function(){return i.DEFAULT_SCALE_MODE}}),Object.defineProperty(exports,"DEFAULT_SCALE_MODE_FOR_APP",{enumerable:!0,get:function(){return i.DEFAULT_SCALE_MODE_FOR_APP}}),Object.defineProperty(exports,"FONT_DECLARATIONS_MAP",{enumerable:!0,get:function(){return i.FONT_DECLARATIONS_MAP}}),Object.defineProperty(exports,"alwaysPalette",{enumerable:!0,get:function(){return i.alwaysPalette}}),Object.defineProperty(exports,"button",{enumerable:!0,get:function(){return i.button}}),Object.defineProperty(exports,"cartesianProduct",{enumerable:!0,get:function(){return i.cartesianProduct}}),Object.defineProperty(exports,"coalesceConfigVariant",{enumerable:!0,get:function(){return i.coalesceConfigVariant}}),Object.defineProperty(exports,"configurableProperties",{enumerable:!0,get:function(){return i.configurableProperties}}),Object.defineProperty(exports,"createComponentStateConfig",{enumerable:!0,get:function(){return i.createComponentStateConfig}}),Object.defineProperty(exports,"createComponentStates",{enumerable:!0,get:function(){return i.createComponentStates}}),Object.defineProperty(exports,"createConfigurableProperty",{enumerable:!0,get:function(){return i.createConfigurableProperty}}),Object.defineProperty(exports,"createLayerConfig",{enumerable:!0,get:function(){return i.createLayerConfig}}),Object.defineProperty(exports,"createSubComponentConfig",{enumerable:!0,get:function(){return i.createSubComponentConfig}}),Object.defineProperty(exports,"createVariantConfig",{enumerable:!0,get:function(){return i.createVariantConfig}}),Object.defineProperty(exports,"createVariantConfigWithComponentStates",{enumerable:!0,get:function(){return i.createVariantConfigWithComponentStates}}),Object.defineProperty(exports,"createVariantConfigWithProperties",{enumerable:!0,get:function(){return i.createVariantConfigWithProperties}}),Object.defineProperty(exports,"findFixtureType",{enumerable:!0,get:function(){return i.findFixtureType}}),Object.defineProperty(exports,"fontWeightMap",{enumerable:!0,get:function(){return i.fontWeightMap}}),Object.defineProperty(exports,"fromEntries",{enumerable:!0,get:function(){return i.fromEntries}}),Object.defineProperty(exports,"generateClassName",{enumerable:!0,get:function(){return i.generateClassName}}),Object.defineProperty(exports,"generateDeclaration",{enumerable:!0,get:function(){return i.generateDeclaration}}),Object.defineProperty(exports,"generateKeyFromFlatConfigPath",{enumerable:!0,get:function(){return i.generateKeyFromFlatConfigPath}}),Object.defineProperty(exports,"generateSchemaKey",{enumerable:!0,get:function(){return i.generateSchemaKey}}),Object.defineProperty(exports,"generateStyles",{enumerable:!0,get:function(){return i.generateStyles}}),Object.defineProperty(exports,"getConfigDefaultValue",{enumerable:!0,get:function(){return i.getConfigDefaultValue}}),Object.defineProperty(exports,"getConfigPseudoStateVariables",{enumerable:!0,get:function(){return i.getConfigPseudoStateVariables}}),Object.defineProperty(exports,"getConfigPseudoStateVariablesWithSetter",{enumerable:!0,get:function(){return i.getConfigPseudoStateVariablesWithSetter}}),Object.defineProperty(exports,"getConfigSubcomponents",{enumerable:!0,get:function(){return i.getConfigSubcomponents}}),Object.defineProperty(exports,"getConfigVariantComponentStates",{enumerable:!0,get:function(){return i.getConfigVariantComponentStates}}),Object.defineProperty(exports,"getConfigVariantComponentStatesMatrix",{enumerable:!0,get:function(){return i.getConfigVariantComponentStatesMatrix}}),Object.defineProperty(exports,"getConfigVariantProperties",{enumerable:!0,get:function(){return i.getConfigVariantProperties}}),Object.defineProperty(exports,"getConfigVariantPseudoStates",{enumerable:!0,get:function(){return i.getConfigVariantPseudoStates}}),Object.defineProperty(exports,"getConfigVariants",{enumerable:!0,get:function(){return i.getConfigVariants}}),Object.defineProperty(exports,"getDefaultButtonBaseMap",{enumerable:!0,get:function(){return i.getDefaultButtonBaseMap}}),Object.defineProperty(exports,"isConfigDefaultValue",{enumerable:!0,get:function(){return i.isConfigDefaultValue}}),Object.defineProperty(exports,"parseButtonVariantFlat",{enumerable:!0,get:function(){return i.parseButtonVariantFlat}}),Object.defineProperty(exports,"parseDeprecatedButtonPaletteVariant",{enumerable:!0,get:function(){return i.parseDeprecatedButtonPaletteVariant}}),Object.defineProperty(exports,"setConfigPseudoStateVariable",{enumerable:!0,get:function(){return i.setConfigPseudoStateVariable}}),Object.defineProperty(exports,"shadow",{enumerable:!0,get:function(){return i.shadow}}),Object.defineProperty(exports,"statePseudoMapDocsMode",{enumerable:!0,get:function(){return i.statePseudoMapDocsMode}}),Object.defineProperty(exports,"toMinimalDbConfigObject",{enumerable:!0,get:function(){return i.toMinimalDbConfigObject}}),Object.defineProperty(exports,"entries",{enumerable:!0,get:function(){return u.entries}}),Object.defineProperty(exports,"mapValues",{enumerable:!0,get:function(){return u.mapValues}}),Object.defineProperty(exports,"variants",{enumerable:!0,get:function(){return a.variants}}),Object.defineProperty(exports,"AVATAR_SIZE_PREFIX",{enumerable:!0,get:function(){return c.AVATAR_SIZE_PREFIX}}),Object.defineProperty(exports,"BORDER_RADIUS_PREFIX",{enumerable:!0,get:function(){return c.BORDER_RADIUS_PREFIX}}),Object.defineProperty(exports,"BORDER_WIDTH_PREFIX",{enumerable:!0,get:function(){return c.BORDER_WIDTH_PREFIX}}),Object.defineProperty(exports,"BUTTON_CSS_VAR_MAP",{enumerable:!0,get:function(){return c.BUTTON_CSS_VAR_MAP}}),Object.defineProperty(exports,"DARK_COLOR_MODE_CLASSNAME",{enumerable:!0,get:function(){return c.DARK_COLOR_MODE_CLASSNAME}}),Object.defineProperty(exports,"DEFAULT_COLOR_MODE_CLASSNAME",{enumerable:!0,get:function(){return c.DEFAULT_COLOR_MODE_CLASSNAME}}),Object.defineProperty(exports,"DEFAULT_SCALE_MODE_CLASSNAME",{enumerable:!0,get:function(){return c.DEFAULT_SCALE_MODE_CLASSNAME}}),Object.defineProperty(exports,"FONT_FAMILY_PREFIX",{enumerable:!0,get:function(){return c.FONT_FAMILY_PREFIX}}),Object.defineProperty(exports,"FONT_SIZE_PREFIX",{enumerable:!0,get:function(){return c.FONT_SIZE_PREFIX}}),Object.defineProperty(exports,"FONT_SLANT_PREFIX",{enumerable:!0,get:function(){return c.FONT_SLANT_PREFIX}}),Object.defineProperty(exports,"FONT_WEIGHT_PREFIX",{enumerable:!0,get:function(){return c.FONT_WEIGHT_PREFIX}}),Object.defineProperty(exports,"FONT_WIDTH_PREFIX",{enumerable:!0,get:function(){return c.FONT_WIDTH_PREFIX}}),Object.defineProperty(exports,"ICON_BUTTON_CSS_VAR_MAP",{enumerable:!0,get:function(){return c.ICON_BUTTON_CSS_VAR_MAP}}),Object.defineProperty(exports,"ICON_SIZE_PREFIX",{enumerable:!0,get:function(){return c.ICON_SIZE_PREFIX}}),Object.defineProperty(exports,"INVERT_COLOR_MODE_CLASSNAME",{enumerable:!0,get:function(){return c.INVERT_COLOR_MODE_CLASSNAME}}),Object.defineProperty(exports,"LARGE_SCALE_MODE_CLASSNAME",{enumerable:!0,get:function(){return c.LARGE_SCALE_MODE_CLASSNAME}}),Object.defineProperty(exports,"LIGHT_COLOR_MODE_CLASSNAME",{enumerable:!0,get:function(){return c.LIGHT_COLOR_MODE_CLASSNAME}}),Object.defineProperty(exports,"LINE_HEIGHT_PREFIX",{enumerable:!0,get:function(){return c.LINE_HEIGHT_PREFIX}}),Object.defineProperty(exports,"MEDIUM_SCALE_MODE_CLASSNAME",{enumerable:!0,get:function(){return c.MEDIUM_SCALE_MODE_CLASSNAME}}),Object.defineProperty(exports,"MOTION_PREFIX",{enumerable:!0,get:function(){return c.MOTION_PREFIX}}),Object.defineProperty(exports,"PSEUDO_STYLE_SELECTOR_MAP",{enumerable:!0,get:function(){return c.PSEUDO_STYLE_SELECTOR_MAP}}),Object.defineProperty(exports,"SMALL_SCALE_MODE_CLASSNAME",{enumerable:!0,get:function(){return c.SMALL_SCALE_MODE_CLASSNAME}}),Object.defineProperty(exports,"SPECTRUM_COLOR_PREFIX",{enumerable:!0,get:function(){return c.SPECTRUM_COLOR_PREFIX}}),Object.defineProperty(exports,"SYSTEM_COLOR_MODE_CLASSNAME",{enumerable:!0,get:function(){return c.SYSTEM_COLOR_MODE_CLASSNAME}}),Object.defineProperty(exports,"TEXT_RESPONSIVE_CLASSNAME",{enumerable:!0,get:function(){return c.TEXT_RESPONSIVE_CLASSNAME}}),Object.defineProperty(exports,"TEXT_TRANSFORM_PREFIX",{enumerable:!0,get:function(){return c.TEXT_TRANSFORM_PREFIX}}),Object.defineProperty(exports,"UDS_PREFIX",{enumerable:!0,get:function(){return c.UDS_PREFIX}}),Object.defineProperty(exports,"XLARGE_SCALE_MODE_CLASSNAME",{enumerable:!0,get:function(){return c.XLARGE_SCALE_MODE_CLASSNAME}}),Object.defineProperty(exports,"XSMALL_SCALE_MODE_CLASSNAME",{enumerable:!0,get:function(){return c.XSMALL_SCALE_MODE_CLASSNAME}}),Object.defineProperty(exports,"XXLARGE_SCALE_MODE_CLASSNAME",{enumerable:!0,get:function(){return c.XXLARGE_SCALE_MODE_CLASSNAME}}),Object.defineProperty(exports,"XXXLARGE_SCALE_MODE_CLASSNAME",{enumerable:!0,get:function(){return c.XXXLARGE_SCALE_MODE_CLASSNAME}}),Object.defineProperty(exports,"Avatar",{enumerable:!0,get:function(){return b.Avatar}}),Object.defineProperty(exports,"AvatarIcon",{enumerable:!0,get:function(){return b.AvatarIcon}}),Object.defineProperty(exports,"AvatarImage",{enumerable:!0,get:function(){return b.AvatarImage}}),Object.defineProperty(exports,"AvatarText",{enumerable:!0,get:function(){return b.AvatarText}}),Object.defineProperty(exports,"Badge",{enumerable:!0,get:function(){return b.Badge}}),Object.defineProperty(exports,"Button",{enumerable:!0,get:function(){return b.Button}}),Object.defineProperty(exports,"Checkbox",{enumerable:!0,get:function(){return b.Checkbox}}),Object.defineProperty(exports,"Chip",{enumerable:!0,get:function(){return b.Chip}}),Object.defineProperty(exports,"ChipButton",{enumerable:!0,get:function(){return b.ChipButton}}),Object.defineProperty(exports,"ChipDismissible",{enumerable:!0,get:function(){return b.ChipDismissible}}),Object.defineProperty(exports,"ChipLink",{enumerable:!0,get:function(){return b.ChipLink}}),Object.defineProperty(exports,"ChipToggle",{enumerable:!0,get:function(){return b.ChipToggle}}),Object.defineProperty(exports,"IconButton",{enumerable:!0,get:function(){return b.IconButton}}),Object.defineProperty(exports,"Input",{enumerable:!0,get:function(){return b.Input}}),Object.defineProperty(exports,"Menu",{enumerable:!0,get:function(){return b.Menu}}),Object.defineProperty(exports,"Pressable",{enumerable:!0,get:function(){return b.Pressable}}),Object.defineProperty(exports,"Radio",{enumerable:!0,get:function(){return b.Radio}}),Object.defineProperty(exports,"RadioGroupProvider",{enumerable:!0,get:function(){return b.RadioGroupProvider}}),Object.defineProperty(exports,"SpringMotionConfig",{enumerable:!0,get:function(){return b.SpringMotionConfig}}),Object.defineProperty(exports,"Switch",{enumerable:!0,get:function(){return b.Switch}}),exports.Divider=s,exports.Link=O;
|
1
|
+
"use strict";var e=require("./chunk-2KFM5W3U.cjs"),t=require("./chunk-LY4CD7HC.cjs"),r=require("./chunk-XT7VV5LA.cjs"),n=require("./chunk-QNNUPDNC.cjs"),o=require("./chunk-S5XWK3OK.cjs"),i=require("./chunk-T3NVPMAQ.cjs"),u=require("./chunk-J7PUOUXC.cjs"),a=require("./chunk-66AIQC3S.cjs"),c=require("./chunk-3AYBRPUC.cjs"),f=require("react"),p=require("react/jsx-runtime"),b=require("@yahoo/uds/client"),s=f.forwardRef(function(e,r){return p.jsx(t.DividerInternal,{ref:r,...e})});/*! © 2025 Yahoo, Inc. UDS v0.0.0-development */s.displayName="Divider";var O=f.forwardRef(function({variant:e="primary",textVariant:t,startIcon:r,endIcon:n,alwaysUnderline:i=!1,children:u,className:a,...c},b){const s=!t,O=f.useMemo(()=>{const r=!s&&o.getStyles({linkTextStyleRoot:t,fontSize:t,fontFamily:t,fontWeight:t,lineHeight:t,textTransform:t});return o.getStyles({linkVariantRoot:e,display:"inline-flex",alignItems:"center",className:o.cx(r,"uds-ring",i&&"underline",a)})},[i,s,t,e,a]),g=o.getStyles({linkVariantIconStart:e,linkTextStyleIcon:t,className:o.cx(s&&"w-[0.7em] h-[0.7em]")}),l=o.getStyles({linkVariantIconEnd:e,linkTextStyleIcon:t,className:o.cx(s&&"w-[0.7em] h-[0.7em]")}),P={variant:"outline",color:"current"};return p.jsxs("a",{ref:b,className:O,...c,children:[r&&p.jsx(o.IconSlot,{className:g,icon:r,iconProps:P,"data-testid":"start-icon"}),u,n&&p.jsx(o.IconSlot,{className:l,icon:n,iconProps:P,"data-testid":"end-icon"})]})});O.displayName="Link",Object.defineProperty(exports,"Image",{enumerable:!0,get:function(){return e.Image}}),Object.defineProperty(exports,"InputHelpText",{enumerable:!0,get:function(){return e.InputHelpTextMemo}}),Object.defineProperty(exports,"HStack",{enumerable:!0,get:function(){return r.HStack}}),Object.defineProperty(exports,"VStack",{enumerable:!0,get:function(){return r.VStack}}),Object.defineProperty(exports,"FormLabel",{enumerable:!0,get:function(){return n.FormLabel}}),Object.defineProperty(exports,"Box",{enumerable:!0,get:function(){return o.Box}}),Object.defineProperty(exports,"Icon",{enumerable:!0,get:function(){return o.Icon}}),Object.defineProperty(exports,"Text",{enumerable:!0,get:function(){return o.Text}}),Object.defineProperty(exports,"cva",{enumerable:!0,get:function(){return o.cva}}),Object.defineProperty(exports,"cx",{enumerable:!0,get:function(){return o.cx}}),Object.defineProperty(exports,"getStyles",{enumerable:!0,get:function(){return o.getStyles}}),Object.defineProperty(exports,"DEFAULT_COLOR_MODE",{enumerable:!0,get:function(){return i.DEFAULT_COLOR_MODE}}),Object.defineProperty(exports,"DEFAULT_COLOR_MODE_FOR_APP",{enumerable:!0,get:function(){return i.DEFAULT_COLOR_MODE_FOR_APP}}),Object.defineProperty(exports,"DEFAULT_HIGH_CONTRAST_MODE",{enumerable:!0,get:function(){return i.DEFAULT_HIGH_CONTRAST_MODE}}),Object.defineProperty(exports,"DEFAULT_REGION_MODE",{enumerable:!0,get:function(){return i.DEFAULT_REGION_MODE}}),Object.defineProperty(exports,"DEFAULT_SCALE_MODE",{enumerable:!0,get:function(){return i.DEFAULT_SCALE_MODE}}),Object.defineProperty(exports,"DEFAULT_SCALE_MODE_FOR_APP",{enumerable:!0,get:function(){return i.DEFAULT_SCALE_MODE_FOR_APP}}),Object.defineProperty(exports,"FONT_DECLARATIONS_MAP",{enumerable:!0,get:function(){return i.FONT_DECLARATIONS_MAP}}),Object.defineProperty(exports,"alwaysPalette",{enumerable:!0,get:function(){return i.alwaysPalette}}),Object.defineProperty(exports,"button",{enumerable:!0,get:function(){return i.button}}),Object.defineProperty(exports,"cartesianProduct",{enumerable:!0,get:function(){return i.cartesianProduct}}),Object.defineProperty(exports,"coalesceConfigVariant",{enumerable:!0,get:function(){return i.coalesceConfigVariant}}),Object.defineProperty(exports,"configurableProperties",{enumerable:!0,get:function(){return i.configurableProperties}}),Object.defineProperty(exports,"createComponentStateConfig",{enumerable:!0,get:function(){return i.createComponentStateConfig}}),Object.defineProperty(exports,"createComponentStates",{enumerable:!0,get:function(){return i.createComponentStates}}),Object.defineProperty(exports,"createConfigurableProperty",{enumerable:!0,get:function(){return i.createConfigurableProperty}}),Object.defineProperty(exports,"createLayerConfig",{enumerable:!0,get:function(){return i.createLayerConfig}}),Object.defineProperty(exports,"createSubComponentConfig",{enumerable:!0,get:function(){return i.createSubComponentConfig}}),Object.defineProperty(exports,"createVariantConfig",{enumerable:!0,get:function(){return i.createVariantConfig}}),Object.defineProperty(exports,"createVariantConfigWithComponentStates",{enumerable:!0,get:function(){return i.createVariantConfigWithComponentStates}}),Object.defineProperty(exports,"createVariantConfigWithProperties",{enumerable:!0,get:function(){return i.createVariantConfigWithProperties}}),Object.defineProperty(exports,"findFixtureType",{enumerable:!0,get:function(){return i.findFixtureType}}),Object.defineProperty(exports,"fontWeightMap",{enumerable:!0,get:function(){return i.fontWeightMap}}),Object.defineProperty(exports,"fromEntries",{enumerable:!0,get:function(){return i.fromEntries}}),Object.defineProperty(exports,"generateClassName",{enumerable:!0,get:function(){return i.generateClassName}}),Object.defineProperty(exports,"generateDeclaration",{enumerable:!0,get:function(){return i.generateDeclaration}}),Object.defineProperty(exports,"generateKeyFromFlatConfigPath",{enumerable:!0,get:function(){return i.generateKeyFromFlatConfigPath}}),Object.defineProperty(exports,"generateSchemaKey",{enumerable:!0,get:function(){return i.generateSchemaKey}}),Object.defineProperty(exports,"generateStyles",{enumerable:!0,get:function(){return i.generateStyles}}),Object.defineProperty(exports,"getConfigDefaultValue",{enumerable:!0,get:function(){return i.getConfigDefaultValue}}),Object.defineProperty(exports,"getConfigPseudoStateVariables",{enumerable:!0,get:function(){return i.getConfigPseudoStateVariables}}),Object.defineProperty(exports,"getConfigPseudoStateVariablesWithSetter",{enumerable:!0,get:function(){return i.getConfigPseudoStateVariablesWithSetter}}),Object.defineProperty(exports,"getConfigSubcomponents",{enumerable:!0,get:function(){return i.getConfigSubcomponents}}),Object.defineProperty(exports,"getConfigVariantComponentStates",{enumerable:!0,get:function(){return i.getConfigVariantComponentStates}}),Object.defineProperty(exports,"getConfigVariantComponentStatesMatrix",{enumerable:!0,get:function(){return i.getConfigVariantComponentStatesMatrix}}),Object.defineProperty(exports,"getConfigVariantProperties",{enumerable:!0,get:function(){return i.getConfigVariantProperties}}),Object.defineProperty(exports,"getConfigVariantPseudoStates",{enumerable:!0,get:function(){return i.getConfigVariantPseudoStates}}),Object.defineProperty(exports,"getConfigVariants",{enumerable:!0,get:function(){return i.getConfigVariants}}),Object.defineProperty(exports,"getDefaultButtonBaseMap",{enumerable:!0,get:function(){return i.getDefaultButtonBaseMap}}),Object.defineProperty(exports,"isConfigDefaultValue",{enumerable:!0,get:function(){return i.isConfigDefaultValue}}),Object.defineProperty(exports,"parseButtonVariantFlat",{enumerable:!0,get:function(){return i.parseButtonVariantFlat}}),Object.defineProperty(exports,"parseDeprecatedButtonPaletteVariant",{enumerable:!0,get:function(){return i.parseDeprecatedButtonPaletteVariant}}),Object.defineProperty(exports,"setConfigPseudoStateVariable",{enumerable:!0,get:function(){return i.setConfigPseudoStateVariable}}),Object.defineProperty(exports,"shadow",{enumerable:!0,get:function(){return i.shadow}}),Object.defineProperty(exports,"statePseudoMapDocsMode",{enumerable:!0,get:function(){return i.statePseudoMapDocsMode}}),Object.defineProperty(exports,"toMinimalDbConfigObject",{enumerable:!0,get:function(){return i.toMinimalDbConfigObject}}),Object.defineProperty(exports,"entries",{enumerable:!0,get:function(){return u.entries}}),Object.defineProperty(exports,"mapValues",{enumerable:!0,get:function(){return u.mapValues}}),Object.defineProperty(exports,"variants",{enumerable:!0,get:function(){return a.variants}}),Object.defineProperty(exports,"AVATAR_SIZE_PREFIX",{enumerable:!0,get:function(){return c.AVATAR_SIZE_PREFIX}}),Object.defineProperty(exports,"BORDER_RADIUS_PREFIX",{enumerable:!0,get:function(){return c.BORDER_RADIUS_PREFIX}}),Object.defineProperty(exports,"BORDER_WIDTH_PREFIX",{enumerable:!0,get:function(){return c.BORDER_WIDTH_PREFIX}}),Object.defineProperty(exports,"BUTTON_CSS_VAR_MAP",{enumerable:!0,get:function(){return c.BUTTON_CSS_VAR_MAP}}),Object.defineProperty(exports,"DARK_COLOR_MODE_CLASSNAME",{enumerable:!0,get:function(){return c.DARK_COLOR_MODE_CLASSNAME}}),Object.defineProperty(exports,"DEFAULT_COLOR_MODE_CLASSNAME",{enumerable:!0,get:function(){return c.DEFAULT_COLOR_MODE_CLASSNAME}}),Object.defineProperty(exports,"DEFAULT_SCALE_MODE_CLASSNAME",{enumerable:!0,get:function(){return c.DEFAULT_SCALE_MODE_CLASSNAME}}),Object.defineProperty(exports,"FONT_FAMILY_PREFIX",{enumerable:!0,get:function(){return c.FONT_FAMILY_PREFIX}}),Object.defineProperty(exports,"FONT_SIZE_PREFIX",{enumerable:!0,get:function(){return c.FONT_SIZE_PREFIX}}),Object.defineProperty(exports,"FONT_SLANT_PREFIX",{enumerable:!0,get:function(){return c.FONT_SLANT_PREFIX}}),Object.defineProperty(exports,"FONT_WEIGHT_PREFIX",{enumerable:!0,get:function(){return c.FONT_WEIGHT_PREFIX}}),Object.defineProperty(exports,"FONT_WIDTH_PREFIX",{enumerable:!0,get:function(){return c.FONT_WIDTH_PREFIX}}),Object.defineProperty(exports,"ICON_BUTTON_CSS_VAR_MAP",{enumerable:!0,get:function(){return c.ICON_BUTTON_CSS_VAR_MAP}}),Object.defineProperty(exports,"ICON_SIZE_PREFIX",{enumerable:!0,get:function(){return c.ICON_SIZE_PREFIX}}),Object.defineProperty(exports,"INVERT_COLOR_MODE_CLASSNAME",{enumerable:!0,get:function(){return c.INVERT_COLOR_MODE_CLASSNAME}}),Object.defineProperty(exports,"LARGE_SCALE_MODE_CLASSNAME",{enumerable:!0,get:function(){return c.LARGE_SCALE_MODE_CLASSNAME}}),Object.defineProperty(exports,"LIGHT_COLOR_MODE_CLASSNAME",{enumerable:!0,get:function(){return c.LIGHT_COLOR_MODE_CLASSNAME}}),Object.defineProperty(exports,"LINE_HEIGHT_PREFIX",{enumerable:!0,get:function(){return c.LINE_HEIGHT_PREFIX}}),Object.defineProperty(exports,"MEDIUM_SCALE_MODE_CLASSNAME",{enumerable:!0,get:function(){return c.MEDIUM_SCALE_MODE_CLASSNAME}}),Object.defineProperty(exports,"MOTION_PREFIX",{enumerable:!0,get:function(){return c.MOTION_PREFIX}}),Object.defineProperty(exports,"PSEUDO_STYLE_SELECTOR_MAP",{enumerable:!0,get:function(){return c.PSEUDO_STYLE_SELECTOR_MAP}}),Object.defineProperty(exports,"SMALL_SCALE_MODE_CLASSNAME",{enumerable:!0,get:function(){return c.SMALL_SCALE_MODE_CLASSNAME}}),Object.defineProperty(exports,"SPECTRUM_COLOR_PREFIX",{enumerable:!0,get:function(){return c.SPECTRUM_COLOR_PREFIX}}),Object.defineProperty(exports,"SYSTEM_COLOR_MODE_CLASSNAME",{enumerable:!0,get:function(){return c.SYSTEM_COLOR_MODE_CLASSNAME}}),Object.defineProperty(exports,"TEXT_RESPONSIVE_CLASSNAME",{enumerable:!0,get:function(){return c.TEXT_RESPONSIVE_CLASSNAME}}),Object.defineProperty(exports,"TEXT_TRANSFORM_PREFIX",{enumerable:!0,get:function(){return c.TEXT_TRANSFORM_PREFIX}}),Object.defineProperty(exports,"UDS_PREFIX",{enumerable:!0,get:function(){return c.UDS_PREFIX}}),Object.defineProperty(exports,"XLARGE_SCALE_MODE_CLASSNAME",{enumerable:!0,get:function(){return c.XLARGE_SCALE_MODE_CLASSNAME}}),Object.defineProperty(exports,"XSMALL_SCALE_MODE_CLASSNAME",{enumerable:!0,get:function(){return c.XSMALL_SCALE_MODE_CLASSNAME}}),Object.defineProperty(exports,"XXLARGE_SCALE_MODE_CLASSNAME",{enumerable:!0,get:function(){return c.XXLARGE_SCALE_MODE_CLASSNAME}}),Object.defineProperty(exports,"XXXLARGE_SCALE_MODE_CLASSNAME",{enumerable:!0,get:function(){return c.XXXLARGE_SCALE_MODE_CLASSNAME}}),Object.defineProperty(exports,"Avatar",{enumerable:!0,get:function(){return b.Avatar}}),Object.defineProperty(exports,"AvatarIcon",{enumerable:!0,get:function(){return b.AvatarIcon}}),Object.defineProperty(exports,"AvatarImage",{enumerable:!0,get:function(){return b.AvatarImage}}),Object.defineProperty(exports,"AvatarText",{enumerable:!0,get:function(){return b.AvatarText}}),Object.defineProperty(exports,"Badge",{enumerable:!0,get:function(){return b.Badge}}),Object.defineProperty(exports,"Button",{enumerable:!0,get:function(){return b.Button}}),Object.defineProperty(exports,"Checkbox",{enumerable:!0,get:function(){return b.Checkbox}}),Object.defineProperty(exports,"Chip",{enumerable:!0,get:function(){return b.Chip}}),Object.defineProperty(exports,"ChipButton",{enumerable:!0,get:function(){return b.ChipButton}}),Object.defineProperty(exports,"ChipDismissible",{enumerable:!0,get:function(){return b.ChipDismissible}}),Object.defineProperty(exports,"ChipLink",{enumerable:!0,get:function(){return b.ChipLink}}),Object.defineProperty(exports,"ChipToggle",{enumerable:!0,get:function(){return b.ChipToggle}}),Object.defineProperty(exports,"IconButton",{enumerable:!0,get:function(){return b.IconButton}}),Object.defineProperty(exports,"Input",{enumerable:!0,get:function(){return b.Input}}),Object.defineProperty(exports,"Menu",{enumerable:!0,get:function(){return b.Menu}}),Object.defineProperty(exports,"Pressable",{enumerable:!0,get:function(){return b.Pressable}}),Object.defineProperty(exports,"Radio",{enumerable:!0,get:function(){return b.Radio}}),Object.defineProperty(exports,"RadioGroupProvider",{enumerable:!0,get:function(){return b.RadioGroupProvider}}),Object.defineProperty(exports,"SpringMotionConfig",{enumerable:!0,get:function(){return b.SpringMotionConfig}}),Object.defineProperty(exports,"Switch",{enumerable:!0,get:function(){return b.Switch}}),exports.Divider=s,exports.Link=O;
|
package/dist/index.d.cts
CHANGED
@@ -1,15 +1,15 @@
|
|
1
|
-
import { a as DivProps } from './VStack-
|
2
|
-
export { b as Box, B as BoxProps, c as Divider, D as DividerProps, d as VStack, V as VStackProps } from './VStack-
|
1
|
+
import { a as DivProps } from './VStack-CjObxroS.cjs';
|
2
|
+
export { b as Box, B as BoxProps, c as Divider, D as DividerProps, d as VStack, V as VStackProps } from './VStack-CjObxroS.cjs';
|
3
3
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
4
|
-
import { z as UniversalFormLabelProps, o as UniversalStackProps, I as IconPropsWithSVGProps, A as ImagePropsWithImgProps, D as UniversalIconSlot, E as UniversalLinkProps, J as UniversalTextProps } from './types-
|
5
|
-
export { N as AVATAR_SIZE_PREFIX, ao as AlwaysPalette, ap as AlwaysPaletteAlias, aq as AlwaysPaletteColor, ar as Animation, as as AriaAttribute, at as AvatarAbbreviationStrategy, au as AvatarShape, av as AvatarSize, aw as AvatarSizeConfig, ax as AvatarVariant, O as BORDER_RADIUS_PREFIX, Q as BORDER_WIDTH_PREFIX, ag as BUTTON_CSS_VAR_MAP, ay as BackgroundColor, az as BackgroundPalette, aA as BackgroundPaletteAlias, aB as BackgroundStyleProps, aC as BadgeSize, aD as BadgeVariant, aE as BorderRadius, aF as BorderRadiusConfig, aG as BorderStyleProps, aH as BorderWidth, aI as BorderWidthConfig, aJ as Breakpoint, e as BreakpointsConfig, aK as ButtonBaseConfig, q as ButtonClassMap, aL as ButtonClassName, aM as ButtonColorConfig, aN as ButtonColorEffect, aO as ButtonColorEffectConfig, s as ButtonColorProperty, t as ButtonColorPropertyConfig, B as ButtonConfig, aP as ButtonKind, aQ as ButtonMotionEffect, aR as ButtonMotionProperty, aS as ButtonMotionPropertyConfig, aT as ButtonPalette, aU as ButtonPaletteColor, aV as ButtonPaletteConfig, aW as ButtonShadowPropertyConfig, aX as ButtonSize, aY as ButtonSizeConfig, aZ as ButtonSizeProperty, a_ as ButtonSpectrumColor, a$ as ButtonState, b0 as ButtonStateConfig, b1 as ButtonStateEffectConfig, b2 as ButtonVariant, b3 as ButtonVariantConfig, b4 as ButtonVariantFlat, b5 as CheckboxSize, b6 as CheckboxValue, b7 as CheckboxVariant, b8 as ChipSize, b9 as ChipVariant, h as ColorMode, C as ColorModeConfig, ba as ColorModeForApp, i as ColorsConfig, bb as ConfigurableDropShadowValues, bc as ConfigurableInsetShadowValues, bd as CustomSizingStyleProps, a2 as DARK_COLOR_MODE_CLASSNAME, ad as DEFAULT_COLOR_MODE_CLASSNAME, ae as DEFAULT_SCALE_MODE_CLASSNAME, be as DataAttribute, bf as Display, bg as DividerVariant, aj as FONT_DECLARATIONS_MAP, R as FONT_FAMILY_PREFIX, V as FONT_SIZE_PREFIX, X as FONT_SLANT_PREFIX, W as FONT_WEIGHT_PREFIX, Y as FONT_WIDTH_PREFIX, bh as Flex, bi as FlexAlignContent, bj as FlexAlignItems, bk as FlexAlignSelf, bl as FlexBasis, bm as FlexDirection, bn as FlexGrow, bo as FlexJustifyContent, bp as FlexShrink, bq as FlexStyleProps, br as FlexWrap, bs as FontAlias, ak as FontAxisConfig, F as FontConfig, bt as FontCssVar, al as FontDeclarationConfig, x as FontDeclarationItemConfig, am as FontDeclarationMap, bu as FontFamilyCDNUrl, bv as FontFamilyConfig, w as FontID, bw as FontSize, bx as FontSizeConfig, by as FontSlantConfig, bz as FontType, bA as FontWeightConfig, bB as FontWeightDescriptive, an as FontWeightForFont, bC as FontWeightNumeric, bD as FontWidthConfig, bE as ForegroundColor, bF as ForegroundPalette, bG as ForegroundPaletteAlias, G as GlobalDefaultsConfig, bH as HighContrastMode, H as Hue, j as HueStep, ah as ICON_BUTTON_CSS_VAR_MAP, Z as ICON_SIZE_PREFIX, a5 as INVERT_COLOR_MODE_CLASSNAME, r as IconButtonClassMap, bI as IconButtonClassName, c as IconButtonConfig, bJ as IconButtonDefaultsConfig, bK as IconButtonSize, bL as IconSizeConfig, bM as IconSlotRenderProps, bN as ImageStyleProps, bO as InputSize, a9 as LARGE_SCALE_MODE_CLASSNAME, a3 as LIGHT_COLOR_MODE_CLASSNAME, _ as LINE_HEIGHT_PREFIX, bP as LayoutStyleProps, bQ as LetterSpacing, bR as LineClampAlias, bS as LineColor, bT as LineHeight, bU as LineHeightConfig, bV as LinePalette, bW as LinePaletteAlias, a8 as MEDIUM_SCALE_MODE_CLASSNAME, $ as MOTION_PREFIX, bX as Modes, M as MotionConfig, bY as MotionCssVar, bZ as MotionSpringConfig, b_ as MotionSpringConfigOptions, b$ as MotionVariant, c0 as MotionVariantSpeed, c1 as MotionVariantValues, c2 as Overflow, ai as PSEUDO_STYLE_SELECTOR_MAP, c3 as Palette, k as PaletteConfig, P as PaletteType, c4 as PaletteValue, c5 as Pixels, c6 as PlatformMode, c7 as Position, c8 as PropertyToPaletteAliasMap, c9 as RadioSize, ca as RadioValue, cb as RadioVariant, cc as RegionMode, cd as Rems, a7 as SMALL_SCALE_MODE_CLASSNAME, a0 as SPECTRUM_COLOR_PREFIX, a4 as SYSTEM_COLOR_MODE_CLASSNAME, ce as ScaleConfig, cf as ScaleEffectMap, l as ScaleMode, S as ScaleModeConfig, cg as ScaleModeForApp, ch as ShadowColor, ci as ShadowColorConfig, d as ShadowConfig, cj as ShadowOffset, ck as ShadowOpacity, cl as ShadowPalette, cm as ShadowPaletteAlias, m as ShadowPreset, cn as ShadowSpreadRadius, co as ShadowStyleProps, y as ShadowType, cp as ShadowTypeConfig, cq as ShadowVariant, cr as ShadowVariantConfig, cs as ShadowVariantInvert, ct as ShadowVariantWithInvert, cu as SharedPaletteAlias, u as SpacingAlias, cv as SpacingConfig, cw as SpacingStyleProps, cx as SpectrumColor, cy as SpectrumConfig, cz as StateStyleProps, cA as StyleProps, cB as SwitchSize, af as TEXT_RESPONSIVE_CLASSNAME, a1 as TEXT_TRANSFORM_PREFIX, cL as TShirtSize, cM as TShirtSizeCommon, cC as TextDecorationLine, cD as TextProperty, cE as TextStyleProps, cF as TextTransform, cG as TextTransformConfig, cH as TextVariant, cI as TransitionDelay, cJ as TransitionDuration, cK as TransitionTiming, T as TypographyConfig, cN as TypographyResponsiveProperty, cO as TypographyStyle, cP as TypographyStyleProperty, cQ as TypographyUnitValue, L as UDS_PREFIX, cR as UdsCssVar, cS as Unitless, cT as UniversalAvatarIconProps, cU as UniversalAvatarImageProps, cV as UniversalAvatarProps, cW as UniversalAvatarTextProps, cX as UniversalBadgeProps, n as UniversalBoxProps, cY as UniversalButtonProps, cZ as UniversalCheckboxProps, c_ as UniversalChipBaseProps, c$ as UniversalChipButtonProps, d0 as UniversalChipDismissibleProps, d1 as UniversalChipLinkProps, d2 as UniversalChipProps, d3 as UniversalChipToggleProps, p as UniversalDividerProps, d4 as UniversalIconButtonProps, d5 as UniversalIconProps, d6 as UniversalImageProps, U as UniversalInputProps, v as UniversalMenuItemProps, a as UniversalPressableProps, d7 as UniversalRadioGroupProps, d8 as UniversalRadioProps, b as UniversalSwitchProps, g as UniversalTokensConfig, d9 as UniversalTokensConfigAuto, aa as XLARGE_SCALE_MODE_CLASSNAME, a6 as XSMALL_SCALE_MODE_CLASSNAME, ab as XXLARGE_SCALE_MODE_CLASSNAME, ac as XXXLARGE_SCALE_MODE_CLASSNAME, K as alwaysPalette } from './types-
|
4
|
+
import { z as UniversalFormLabelProps, o as UniversalStackProps, I as IconPropsWithSVGProps, A as ImagePropsWithImgProps, D as UniversalIconSlot, E as UniversalLinkProps, J as UniversalTextProps } from './types-Dde3E25v.cjs';
|
5
|
+
export { N as AVATAR_SIZE_PREFIX, ao as AlwaysPalette, ap as AlwaysPaletteAlias, aq as AlwaysPaletteColor, ar as Animation, as as AriaAttribute, at as AvatarAbbreviationStrategy, au as AvatarShape, av as AvatarSize, aw as AvatarSizeConfig, ax as AvatarVariant, O as BORDER_RADIUS_PREFIX, Q as BORDER_WIDTH_PREFIX, ag as BUTTON_CSS_VAR_MAP, ay as BackgroundColor, az as BackgroundPalette, aA as BackgroundPaletteAlias, aB as BackgroundStyleProps, aC as BadgeSize, aD as BadgeVariant, aE as BorderRadius, aF as BorderRadiusConfig, aG as BorderStyleProps, aH as BorderWidth, aI as BorderWidthConfig, aJ as Breakpoint, e as BreakpointsConfig, aK as ButtonBaseConfig, q as ButtonClassMap, aL as ButtonClassName, aM as ButtonColorConfig, aN as ButtonColorEffect, aO as ButtonColorEffectConfig, s as ButtonColorProperty, t as ButtonColorPropertyConfig, B as ButtonConfig, aP as ButtonKind, aQ as ButtonMotionEffect, aR as ButtonMotionProperty, aS as ButtonMotionPropertyConfig, aT as ButtonPalette, aU as ButtonPaletteColor, aV as ButtonPaletteConfig, aW as ButtonShadowPropertyConfig, aX as ButtonSize, aY as ButtonSizeConfig, aZ as ButtonSizeProperty, a_ as ButtonSpectrumColor, a$ as ButtonState, b0 as ButtonStateConfig, b1 as ButtonStateEffectConfig, b2 as ButtonVariant, b3 as ButtonVariantConfig, b4 as ButtonVariantFlat, b5 as CheckboxSize, b6 as CheckboxValue, b7 as CheckboxVariant, b8 as ChipSize, b9 as ChipVariant, h as ColorMode, C as ColorModeConfig, ba as ColorModeForApp, i as ColorsConfig, bb as ConfigurableDropShadowValues, bc as ConfigurableInsetShadowValues, bd as CustomSizingStyleProps, a2 as DARK_COLOR_MODE_CLASSNAME, ad as DEFAULT_COLOR_MODE_CLASSNAME, ae as DEFAULT_SCALE_MODE_CLASSNAME, be as DataAttribute, bf as Display, bg as DividerVariant, aj as FONT_DECLARATIONS_MAP, R as FONT_FAMILY_PREFIX, V as FONT_SIZE_PREFIX, X as FONT_SLANT_PREFIX, W as FONT_WEIGHT_PREFIX, Y as FONT_WIDTH_PREFIX, bh as Flex, bi as FlexAlignContent, bj as FlexAlignItems, bk as FlexAlignSelf, bl as FlexBasis, bm as FlexDirection, bn as FlexGrow, bo as FlexJustifyContent, bp as FlexShrink, bq as FlexStyleProps, br as FlexWrap, bs as FontAlias, ak as FontAxisConfig, F as FontConfig, bt as FontCssVar, al as FontDeclarationConfig, x as FontDeclarationItemConfig, am as FontDeclarationMap, bu as FontFamilyCDNUrl, bv as FontFamilyConfig, w as FontID, bw as FontSize, bx as FontSizeConfig, by as FontSlantConfig, bz as FontType, bA as FontWeightConfig, bB as FontWeightDescriptive, an as FontWeightForFont, bC as FontWeightNumeric, bD as FontWidthConfig, bE as ForegroundColor, bF as ForegroundPalette, bG as ForegroundPaletteAlias, G as GlobalDefaultsConfig, bH as HighContrastMode, H as Hue, j as HueStep, ah as ICON_BUTTON_CSS_VAR_MAP, Z as ICON_SIZE_PREFIX, a5 as INVERT_COLOR_MODE_CLASSNAME, r as IconButtonClassMap, bI as IconButtonClassName, c as IconButtonConfig, bJ as IconButtonDefaultsConfig, bK as IconButtonSize, bL as IconSizeConfig, bM as IconSlotRenderProps, bN as ImageStyleProps, bO as InputSize, a9 as LARGE_SCALE_MODE_CLASSNAME, a3 as LIGHT_COLOR_MODE_CLASSNAME, _ as LINE_HEIGHT_PREFIX, bP as LayoutStyleProps, bQ as LetterSpacing, bR as LineClampAlias, bS as LineColor, bT as LineHeight, bU as LineHeightConfig, bV as LinePalette, bW as LinePaletteAlias, a8 as MEDIUM_SCALE_MODE_CLASSNAME, $ as MOTION_PREFIX, bX as Modes, M as MotionConfig, bY as MotionCssVar, bZ as MotionSpringConfig, b_ as MotionSpringConfigOptions, b$ as MotionVariant, c0 as MotionVariantSpeed, c1 as MotionVariantValues, c2 as Overflow, ai as PSEUDO_STYLE_SELECTOR_MAP, c3 as Palette, k as PaletteConfig, P as PaletteType, c4 as PaletteValue, c5 as Pixels, c6 as PlatformMode, c7 as Position, c8 as PropertyToPaletteAliasMap, c9 as RadioSize, ca as RadioValue, cb as RadioVariant, cc as RegionMode, cd as Rems, a7 as SMALL_SCALE_MODE_CLASSNAME, a0 as SPECTRUM_COLOR_PREFIX, a4 as SYSTEM_COLOR_MODE_CLASSNAME, ce as ScaleConfig, cf as ScaleEffectMap, l as ScaleMode, S as ScaleModeConfig, cg as ScaleModeForApp, ch as ShadowColor, ci as ShadowColorConfig, d as ShadowConfig, cj as ShadowOffset, ck as ShadowOpacity, cl as ShadowPalette, cm as ShadowPaletteAlias, m as ShadowPreset, cn as ShadowSpreadRadius, co as ShadowStyleProps, y as ShadowType, cp as ShadowTypeConfig, cq as ShadowVariant, cr as ShadowVariantConfig, cs as ShadowVariantInvert, ct as ShadowVariantWithInvert, cu as SharedPaletteAlias, u as SpacingAlias, cv as SpacingConfig, cw as SpacingStyleProps, cx as SpectrumColor, cy as SpectrumConfig, cz as StateStyleProps, cA as StyleProps, cB as SwitchSize, af as TEXT_RESPONSIVE_CLASSNAME, a1 as TEXT_TRANSFORM_PREFIX, cL as TShirtSize, cM as TShirtSizeCommon, cC as TextDecorationLine, cD as TextProperty, cE as TextStyleProps, cF as TextTransform, cG as TextTransformConfig, cH as TextVariant, cI as TransitionDelay, cJ as TransitionDuration, cK as TransitionTiming, T as TypographyConfig, cN as TypographyResponsiveProperty, cO as TypographyStyle, cP as TypographyStyleProperty, cQ as TypographyUnitValue, L as UDS_PREFIX, cR as UdsCssVar, cS as Unitless, cT as UniversalAvatarIconProps, cU as UniversalAvatarImageProps, cV as UniversalAvatarProps, cW as UniversalAvatarTextProps, cX as UniversalBadgeProps, n as UniversalBoxProps, cY as UniversalButtonProps, cZ as UniversalCheckboxProps, c_ as UniversalChipBaseProps, c$ as UniversalChipButtonProps, d0 as UniversalChipDismissibleProps, d1 as UniversalChipLinkProps, d2 as UniversalChipProps, d3 as UniversalChipToggleProps, p as UniversalDividerProps, d4 as UniversalIconButtonProps, d5 as UniversalIconProps, d6 as UniversalImageProps, U as UniversalInputProps, v as UniversalMenuItemProps, a as UniversalPressableProps, d7 as UniversalRadioGroupProps, d8 as UniversalRadioProps, b as UniversalSwitchProps, g as UniversalTokensConfig, d9 as UniversalTokensConfigAuto, aa as XLARGE_SCALE_MODE_CLASSNAME, a6 as XSMALL_SCALE_MODE_CLASSNAME, ab as XXLARGE_SCALE_MODE_CLASSNAME, ac as XXXLARGE_SCALE_MODE_CLASSNAME, K as alwaysPalette } from './types-Dde3E25v.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-ObapKyaD.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, 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-DCvnWL4w.cjs';
|
13
13
|
export { IconSize, IconVariant } from '@yahoo/uds-icons/types';
|
14
14
|
import 'motion/react';
|
15
15
|
import 'type-fest';
|
@@ -219,14 +219,14 @@ declare const Text: react.ForwardRefExoticComponent<(Omit<{
|
|
219
219
|
as?: TextElementTagName | undefined;
|
220
220
|
variant?: VariantWithInherit;
|
221
221
|
color?: ColorWithInherit;
|
222
|
-
} & react.ClassAttributes<
|
222
|
+
} & react.ClassAttributes<HTMLHeadingElement> & react.HTMLAttributes<HTMLHeadingElement> & Omit<UniversalTextProps, "color" | "variant">, "ref"> | Omit<{
|
223
223
|
/** Ref passed to the inner container. */
|
224
224
|
ref?: Ref<HTMLElement>;
|
225
225
|
/** Changes the HTML tag used to render text. Uses the most appropriate semantic tag based on the text style variant. */
|
226
226
|
as?: TextElementTagName | undefined;
|
227
227
|
variant?: VariantWithInherit;
|
228
228
|
color?: ColorWithInherit;
|
229
|
-
} & react.ClassAttributes<
|
229
|
+
} & react.ClassAttributes<HTMLLabelElement> & react.LabelHTMLAttributes<HTMLLabelElement> & Omit<UniversalTextProps, "color" | "variant">, "ref"> | Omit<{
|
230
230
|
/** Ref passed to the inner container. */
|
231
231
|
ref?: Ref<HTMLElement>;
|
232
232
|
/** Changes the HTML tag used to render text. Uses the most appropriate semantic tag based on the text style variant. */
|
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-v-u55ROY.js';
|
2
|
+
export { b as Box, B as BoxProps, c as Divider, D as DividerProps, d as VStack, V as VStackProps } from './VStack-v-u55ROY.js';
|
3
3
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
4
|
-
import { z as UniversalFormLabelProps, o as UniversalStackProps, I as IconPropsWithSVGProps, A as ImagePropsWithImgProps, D as UniversalIconSlot, E as UniversalLinkProps, J as UniversalTextProps } from './types-
|
5
|
-
export { N as AVATAR_SIZE_PREFIX, ao as AlwaysPalette, ap as AlwaysPaletteAlias, aq as AlwaysPaletteColor, ar as Animation, as as AriaAttribute, at as AvatarAbbreviationStrategy, au as AvatarShape, av as AvatarSize, aw as AvatarSizeConfig, ax as AvatarVariant, O as BORDER_RADIUS_PREFIX, Q as BORDER_WIDTH_PREFIX, ag as BUTTON_CSS_VAR_MAP, ay as BackgroundColor, az as BackgroundPalette, aA as BackgroundPaletteAlias, aB as BackgroundStyleProps, aC as BadgeSize, aD as BadgeVariant, aE as BorderRadius, aF as BorderRadiusConfig, aG as BorderStyleProps, aH as BorderWidth, aI as BorderWidthConfig, aJ as Breakpoint, e as BreakpointsConfig, aK as ButtonBaseConfig, q as ButtonClassMap, aL as ButtonClassName, aM as ButtonColorConfig, aN as ButtonColorEffect, aO as ButtonColorEffectConfig, s as ButtonColorProperty, t as ButtonColorPropertyConfig, B as ButtonConfig, aP as ButtonKind, aQ as ButtonMotionEffect, aR as ButtonMotionProperty, aS as ButtonMotionPropertyConfig, aT as ButtonPalette, aU as ButtonPaletteColor, aV as ButtonPaletteConfig, aW as ButtonShadowPropertyConfig, aX as ButtonSize, aY as ButtonSizeConfig, aZ as ButtonSizeProperty, a_ as ButtonSpectrumColor, a$ as ButtonState, b0 as ButtonStateConfig, b1 as ButtonStateEffectConfig, b2 as ButtonVariant, b3 as ButtonVariantConfig, b4 as ButtonVariantFlat, b5 as CheckboxSize, b6 as CheckboxValue, b7 as CheckboxVariant, b8 as ChipSize, b9 as ChipVariant, h as ColorMode, C as ColorModeConfig, ba as ColorModeForApp, i as ColorsConfig, bb as ConfigurableDropShadowValues, bc as ConfigurableInsetShadowValues, bd as CustomSizingStyleProps, a2 as DARK_COLOR_MODE_CLASSNAME, ad as DEFAULT_COLOR_MODE_CLASSNAME, ae as DEFAULT_SCALE_MODE_CLASSNAME, be as DataAttribute, bf as Display, bg as DividerVariant, aj as FONT_DECLARATIONS_MAP, R as FONT_FAMILY_PREFIX, V as FONT_SIZE_PREFIX, X as FONT_SLANT_PREFIX, W as FONT_WEIGHT_PREFIX, Y as FONT_WIDTH_PREFIX, bh as Flex, bi as FlexAlignContent, bj as FlexAlignItems, bk as FlexAlignSelf, bl as FlexBasis, bm as FlexDirection, bn as FlexGrow, bo as FlexJustifyContent, bp as FlexShrink, bq as FlexStyleProps, br as FlexWrap, bs as FontAlias, ak as FontAxisConfig, F as FontConfig, bt as FontCssVar, al as FontDeclarationConfig, x as FontDeclarationItemConfig, am as FontDeclarationMap, bu as FontFamilyCDNUrl, bv as FontFamilyConfig, w as FontID, bw as FontSize, bx as FontSizeConfig, by as FontSlantConfig, bz as FontType, bA as FontWeightConfig, bB as FontWeightDescriptive, an as FontWeightForFont, bC as FontWeightNumeric, bD as FontWidthConfig, bE as ForegroundColor, bF as ForegroundPalette, bG as ForegroundPaletteAlias, G as GlobalDefaultsConfig, bH as HighContrastMode, H as Hue, j as HueStep, ah as ICON_BUTTON_CSS_VAR_MAP, Z as ICON_SIZE_PREFIX, a5 as INVERT_COLOR_MODE_CLASSNAME, r as IconButtonClassMap, bI as IconButtonClassName, c as IconButtonConfig, bJ as IconButtonDefaultsConfig, bK as IconButtonSize, bL as IconSizeConfig, bM as IconSlotRenderProps, bN as ImageStyleProps, bO as InputSize, a9 as LARGE_SCALE_MODE_CLASSNAME, a3 as LIGHT_COLOR_MODE_CLASSNAME, _ as LINE_HEIGHT_PREFIX, bP as LayoutStyleProps, bQ as LetterSpacing, bR as LineClampAlias, bS as LineColor, bT as LineHeight, bU as LineHeightConfig, bV as LinePalette, bW as LinePaletteAlias, a8 as MEDIUM_SCALE_MODE_CLASSNAME, $ as MOTION_PREFIX, bX as Modes, M as MotionConfig, bY as MotionCssVar, bZ as MotionSpringConfig, b_ as MotionSpringConfigOptions, b$ as MotionVariant, c0 as MotionVariantSpeed, c1 as MotionVariantValues, c2 as Overflow, ai as PSEUDO_STYLE_SELECTOR_MAP, c3 as Palette, k as PaletteConfig, P as PaletteType, c4 as PaletteValue, c5 as Pixels, c6 as PlatformMode, c7 as Position, c8 as PropertyToPaletteAliasMap, c9 as RadioSize, ca as RadioValue, cb as RadioVariant, cc as RegionMode, cd as Rems, a7 as SMALL_SCALE_MODE_CLASSNAME, a0 as SPECTRUM_COLOR_PREFIX, a4 as SYSTEM_COLOR_MODE_CLASSNAME, ce as ScaleConfig, cf as ScaleEffectMap, l as ScaleMode, S as ScaleModeConfig, cg as ScaleModeForApp, ch as ShadowColor, ci as ShadowColorConfig, d as ShadowConfig, cj as ShadowOffset, ck as ShadowOpacity, cl as ShadowPalette, cm as ShadowPaletteAlias, m as ShadowPreset, cn as ShadowSpreadRadius, co as ShadowStyleProps, y as ShadowType, cp as ShadowTypeConfig, cq as ShadowVariant, cr as ShadowVariantConfig, cs as ShadowVariantInvert, ct as ShadowVariantWithInvert, cu as SharedPaletteAlias, u as SpacingAlias, cv as SpacingConfig, cw as SpacingStyleProps, cx as SpectrumColor, cy as SpectrumConfig, cz as StateStyleProps, cA as StyleProps, cB as SwitchSize, af as TEXT_RESPONSIVE_CLASSNAME, a1 as TEXT_TRANSFORM_PREFIX, cL as TShirtSize, cM as TShirtSizeCommon, cC as TextDecorationLine, cD as TextProperty, cE as TextStyleProps, cF as TextTransform, cG as TextTransformConfig, cH as TextVariant, cI as TransitionDelay, cJ as TransitionDuration, cK as TransitionTiming, T as TypographyConfig, cN as TypographyResponsiveProperty, cO as TypographyStyle, cP as TypographyStyleProperty, cQ as TypographyUnitValue, L as UDS_PREFIX, cR as UdsCssVar, cS as Unitless, cT as UniversalAvatarIconProps, cU as UniversalAvatarImageProps, cV as UniversalAvatarProps, cW as UniversalAvatarTextProps, cX as UniversalBadgeProps, n as UniversalBoxProps, cY as UniversalButtonProps, cZ as UniversalCheckboxProps, c_ as UniversalChipBaseProps, c$ as UniversalChipButtonProps, d0 as UniversalChipDismissibleProps, d1 as UniversalChipLinkProps, d2 as UniversalChipProps, d3 as UniversalChipToggleProps, p as UniversalDividerProps, d4 as UniversalIconButtonProps, d5 as UniversalIconProps, d6 as UniversalImageProps, U as UniversalInputProps, v as UniversalMenuItemProps, a as UniversalPressableProps, d7 as UniversalRadioGroupProps, d8 as UniversalRadioProps, b as UniversalSwitchProps, g as UniversalTokensConfig, d9 as UniversalTokensConfigAuto, aa as XLARGE_SCALE_MODE_CLASSNAME, a6 as XSMALL_SCALE_MODE_CLASSNAME, ab as XXLARGE_SCALE_MODE_CLASSNAME, ac as XXXLARGE_SCALE_MODE_CLASSNAME, K as alwaysPalette } from './types-
|
4
|
+
import { z as UniversalFormLabelProps, o as UniversalStackProps, I as IconPropsWithSVGProps, A as ImagePropsWithImgProps, D as UniversalIconSlot, E as UniversalLinkProps, J as UniversalTextProps } from './types-Dde3E25v.js';
|
5
|
+
export { N as AVATAR_SIZE_PREFIX, ao as AlwaysPalette, ap as AlwaysPaletteAlias, aq as AlwaysPaletteColor, ar as Animation, as as AriaAttribute, at as AvatarAbbreviationStrategy, au as AvatarShape, av as AvatarSize, aw as AvatarSizeConfig, ax as AvatarVariant, O as BORDER_RADIUS_PREFIX, Q as BORDER_WIDTH_PREFIX, ag as BUTTON_CSS_VAR_MAP, ay as BackgroundColor, az as BackgroundPalette, aA as BackgroundPaletteAlias, aB as BackgroundStyleProps, aC as BadgeSize, aD as BadgeVariant, aE as BorderRadius, aF as BorderRadiusConfig, aG as BorderStyleProps, aH as BorderWidth, aI as BorderWidthConfig, aJ as Breakpoint, e as BreakpointsConfig, aK as ButtonBaseConfig, q as ButtonClassMap, aL as ButtonClassName, aM as ButtonColorConfig, aN as ButtonColorEffect, aO as ButtonColorEffectConfig, s as ButtonColorProperty, t as ButtonColorPropertyConfig, B as ButtonConfig, aP as ButtonKind, aQ as ButtonMotionEffect, aR as ButtonMotionProperty, aS as ButtonMotionPropertyConfig, aT as ButtonPalette, aU as ButtonPaletteColor, aV as ButtonPaletteConfig, aW as ButtonShadowPropertyConfig, aX as ButtonSize, aY as ButtonSizeConfig, aZ as ButtonSizeProperty, a_ as ButtonSpectrumColor, a$ as ButtonState, b0 as ButtonStateConfig, b1 as ButtonStateEffectConfig, b2 as ButtonVariant, b3 as ButtonVariantConfig, b4 as ButtonVariantFlat, b5 as CheckboxSize, b6 as CheckboxValue, b7 as CheckboxVariant, b8 as ChipSize, b9 as ChipVariant, h as ColorMode, C as ColorModeConfig, ba as ColorModeForApp, i as ColorsConfig, bb as ConfigurableDropShadowValues, bc as ConfigurableInsetShadowValues, bd as CustomSizingStyleProps, a2 as DARK_COLOR_MODE_CLASSNAME, ad as DEFAULT_COLOR_MODE_CLASSNAME, ae as DEFAULT_SCALE_MODE_CLASSNAME, be as DataAttribute, bf as Display, bg as DividerVariant, aj as FONT_DECLARATIONS_MAP, R as FONT_FAMILY_PREFIX, V as FONT_SIZE_PREFIX, X as FONT_SLANT_PREFIX, W as FONT_WEIGHT_PREFIX, Y as FONT_WIDTH_PREFIX, bh as Flex, bi as FlexAlignContent, bj as FlexAlignItems, bk as FlexAlignSelf, bl as FlexBasis, bm as FlexDirection, bn as FlexGrow, bo as FlexJustifyContent, bp as FlexShrink, bq as FlexStyleProps, br as FlexWrap, bs as FontAlias, ak as FontAxisConfig, F as FontConfig, bt as FontCssVar, al as FontDeclarationConfig, x as FontDeclarationItemConfig, am as FontDeclarationMap, bu as FontFamilyCDNUrl, bv as FontFamilyConfig, w as FontID, bw as FontSize, bx as FontSizeConfig, by as FontSlantConfig, bz as FontType, bA as FontWeightConfig, bB as FontWeightDescriptive, an as FontWeightForFont, bC as FontWeightNumeric, bD as FontWidthConfig, bE as ForegroundColor, bF as ForegroundPalette, bG as ForegroundPaletteAlias, G as GlobalDefaultsConfig, bH as HighContrastMode, H as Hue, j as HueStep, ah as ICON_BUTTON_CSS_VAR_MAP, Z as ICON_SIZE_PREFIX, a5 as INVERT_COLOR_MODE_CLASSNAME, r as IconButtonClassMap, bI as IconButtonClassName, c as IconButtonConfig, bJ as IconButtonDefaultsConfig, bK as IconButtonSize, bL as IconSizeConfig, bM as IconSlotRenderProps, bN as ImageStyleProps, bO as InputSize, a9 as LARGE_SCALE_MODE_CLASSNAME, a3 as LIGHT_COLOR_MODE_CLASSNAME, _ as LINE_HEIGHT_PREFIX, bP as LayoutStyleProps, bQ as LetterSpacing, bR as LineClampAlias, bS as LineColor, bT as LineHeight, bU as LineHeightConfig, bV as LinePalette, bW as LinePaletteAlias, a8 as MEDIUM_SCALE_MODE_CLASSNAME, $ as MOTION_PREFIX, bX as Modes, M as MotionConfig, bY as MotionCssVar, bZ as MotionSpringConfig, b_ as MotionSpringConfigOptions, b$ as MotionVariant, c0 as MotionVariantSpeed, c1 as MotionVariantValues, c2 as Overflow, ai as PSEUDO_STYLE_SELECTOR_MAP, c3 as Palette, k as PaletteConfig, P as PaletteType, c4 as PaletteValue, c5 as Pixels, c6 as PlatformMode, c7 as Position, c8 as PropertyToPaletteAliasMap, c9 as RadioSize, ca as RadioValue, cb as RadioVariant, cc as RegionMode, cd as Rems, a7 as SMALL_SCALE_MODE_CLASSNAME, a0 as SPECTRUM_COLOR_PREFIX, a4 as SYSTEM_COLOR_MODE_CLASSNAME, ce as ScaleConfig, cf as ScaleEffectMap, l as ScaleMode, S as ScaleModeConfig, cg as ScaleModeForApp, ch as ShadowColor, ci as ShadowColorConfig, d as ShadowConfig, cj as ShadowOffset, ck as ShadowOpacity, cl as ShadowPalette, cm as ShadowPaletteAlias, m as ShadowPreset, cn as ShadowSpreadRadius, co as ShadowStyleProps, y as ShadowType, cp as ShadowTypeConfig, cq as ShadowVariant, cr as ShadowVariantConfig, cs as ShadowVariantInvert, ct as ShadowVariantWithInvert, cu as SharedPaletteAlias, u as SpacingAlias, cv as SpacingConfig, cw as SpacingStyleProps, cx as SpectrumColor, cy as SpectrumConfig, cz as StateStyleProps, cA as StyleProps, cB as SwitchSize, af as TEXT_RESPONSIVE_CLASSNAME, a1 as TEXT_TRANSFORM_PREFIX, cL as TShirtSize, cM as TShirtSizeCommon, cC as TextDecorationLine, cD as TextProperty, cE as TextStyleProps, cF as TextTransform, cG as TextTransformConfig, cH as TextVariant, cI as TransitionDelay, cJ as TransitionDuration, cK as TransitionTiming, T as TypographyConfig, cN as TypographyResponsiveProperty, cO as TypographyStyle, cP as TypographyStyleProperty, cQ as TypographyUnitValue, L as UDS_PREFIX, cR as UdsCssVar, cS as Unitless, cT as UniversalAvatarIconProps, cU as UniversalAvatarImageProps, cV as UniversalAvatarProps, cW as UniversalAvatarTextProps, cX as UniversalBadgeProps, n as UniversalBoxProps, cY as UniversalButtonProps, cZ as UniversalCheckboxProps, c_ as UniversalChipBaseProps, c$ as UniversalChipButtonProps, d0 as UniversalChipDismissibleProps, d1 as UniversalChipLinkProps, d2 as UniversalChipProps, d3 as UniversalChipToggleProps, p as UniversalDividerProps, d4 as UniversalIconButtonProps, d5 as UniversalIconProps, d6 as UniversalImageProps, U as UniversalInputProps, v as UniversalMenuItemProps, a as UniversalPressableProps, d7 as UniversalRadioGroupProps, d8 as UniversalRadioProps, b as UniversalSwitchProps, g as UniversalTokensConfig, d9 as UniversalTokensConfigAuto, aa as XLARGE_SCALE_MODE_CLASSNAME, a6 as XSMALL_SCALE_MODE_CLASSNAME, ab as XXLARGE_SCALE_MODE_CLASSNAME, ac as XXXLARGE_SCALE_MODE_CLASSNAME, K as alwaysPalette } from './types-Dde3E25v.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-Cgnjk-GV.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, 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-h0brUKTk.js';
|
13
13
|
export { IconSize, IconVariant } from '@yahoo/uds-icons/types';
|
14
14
|
import 'motion/react';
|
15
15
|
import 'type-fest';
|
@@ -219,14 +219,14 @@ declare const Text: react.ForwardRefExoticComponent<(Omit<{
|
|
219
219
|
as?: TextElementTagName | undefined;
|
220
220
|
variant?: VariantWithInherit;
|
221
221
|
color?: ColorWithInherit;
|
222
|
-
} & react.ClassAttributes<
|
222
|
+
} & react.ClassAttributes<HTMLHeadingElement> & react.HTMLAttributes<HTMLHeadingElement> & Omit<UniversalTextProps, "color" | "variant">, "ref"> | Omit<{
|
223
223
|
/** Ref passed to the inner container. */
|
224
224
|
ref?: Ref<HTMLElement>;
|
225
225
|
/** Changes the HTML tag used to render text. Uses the most appropriate semantic tag based on the text style variant. */
|
226
226
|
as?: TextElementTagName | undefined;
|
227
227
|
variant?: VariantWithInherit;
|
228
228
|
color?: ColorWithInherit;
|
229
|
-
} & react.ClassAttributes<
|
229
|
+
} & react.ClassAttributes<HTMLLabelElement> & react.LabelHTMLAttributes<HTMLLabelElement> & Omit<UniversalTextProps, "color" | "variant">, "ref"> | Omit<{
|
230
230
|
/** Ref passed to the inner container. */
|
231
231
|
ref?: Ref<HTMLElement>;
|
232
232
|
/** Changes the HTML tag used to render text. Uses the most appropriate semantic tag based on the text style variant. */
|
package/dist/index.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
export{Image,InputHelpTextMemo as InputHelpText}from"./chunk-
|
1
|
+
export{Image,InputHelpTextMemo as InputHelpText}from"./chunk-YPFSOK5E.js";import{DividerInternal as e}from"./chunk-YRL363DC.js";export{HStack,VStack}from"./chunk-HHB3JZDI.js";export{FormLabel}from"./chunk-XUETKXD3.js";import{getStyles as t,cx as a,IconSlot as n}from"./chunk-G424GRRD.js";export{Box,Icon,Text,cva,cx,getStyles}from"./chunk-G424GRRD.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,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-2N6GU6KA.js";export{entries,mapValues}from"./chunk-EWJ3J526.js";export{variants}from"./chunk-YLWUR5SE.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,INVERT_COLOR_MODE_CLASSNAME,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,SYSTEM_COLOR_MODE_CLASSNAME,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-24RMELG3.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,O=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]),R=t({linkVariantIconStart:e,linkTextStyleIcon:o,className:a(l&&"w-[0.7em] h-[0.7em]")}),M=t({linkVariantIconEnd:e,linkTextStyleIcon:o,className:a(l&&"w-[0.7em] h-[0.7em]")}),m={variant:"outline",color:"current"};return E("a",{ref:L,className:O,...c,children:[_&&i(n,{className:R,icon:_,iconProps:m,"data-testid":"start-icon"}),A,S&&i(n,{className:M,icon:S,iconProps:m,"data-testid":"end-icon"})]})});S.displayName="Link";export{_ as Divider,S as Link};
|