@yahoo/uds 0.5.11 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- package/cli/README.md +17 -11
- package/cli/bin/uds-darwin-arm64-baseline +0 -0
- package/cli/bin/uds-darwin-x64 +0 -0
- package/cli/bin/uds-linux-arm64 +0 -0
- package/cli/bin/uds-linux-x64-baseline +0 -0
- package/cli/bin/uds-windows-x64-baseline.exe +0 -0
- package/cli/cli.ts +1 -0
- package/cli/consts.ts +1 -7
- package/cli/preload.ts +1 -1
- package/cli/uds-cli +1 -7
- package/cli/utils/configWorker.ts +58 -31
- package/cli/utils/purgeCSS.ts +1 -4
- package/cli/utils/setupConfigWorker.ts +13 -12
- package/dist/{Image.native-BxsXWBqp.d.ts → Image.native-BTcdQraV.d.ts} +2 -2
- package/dist/{Image.native-DBoB1LOc.d.cts → Image.native-D6qA03vT.d.ts} +2 -2
- package/dist/Image.native-D96MZTYD.d.cts +39 -0
- package/dist/Image.native-DX2YWGZD.d.ts +39 -0
- package/dist/Image.native-M8D2Y2sv.d.cts +39 -0
- package/dist/Image.native-QRZjcXm7.d.ts +39 -0
- package/dist/Image.native-f8x4GPuV.d.cts +39 -0
- package/dist/Image.native-mHTDIRbL.d.cts +39 -0
- package/dist/chunk-2C7RDVXS.js +3 -0
- package/dist/chunk-2JQBQOM6.cjs +4 -0
- package/dist/chunk-47ZDV5TW.js +3 -0
- package/dist/chunk-4EJ6WK3H.cjs +2 -0
- package/dist/chunk-55JFYGC7.js +3 -0
- package/dist/chunk-5DFU4PSC.cjs +2 -0
- package/dist/chunk-5LDKFAU4.cjs +2 -0
- package/dist/chunk-5MYSY56L.js +2 -0
- package/dist/chunk-5UHMAJB4.js +2 -0
- package/dist/chunk-5YEIGJJN.js +3 -0
- package/dist/chunk-6G2JWFC3.js +4 -0
- package/dist/chunk-6QLTGUJB.cjs +2 -0
- package/dist/chunk-77JE2H36.js +2 -0
- package/dist/chunk-7A7DDMD7.cjs +2 -0
- package/dist/chunk-7BKASJ4D.cjs +3 -0
- package/dist/chunk-7ICJCQTV.cjs +4 -0
- package/dist/chunk-7OODVPL6.cjs +2 -0
- package/dist/chunk-7SJRCGTP.js +3 -0
- package/dist/chunk-AKOUDLRN.cjs +2 -0
- package/dist/chunk-AV442FHA.js +3 -0
- package/dist/chunk-AY4XUL7M.cjs +3 -0
- package/dist/chunk-B7X77UTF.cjs +3 -0
- package/dist/chunk-BIYOCTWR.js +3 -0
- package/dist/chunk-BNBFA73B.js +4 -0
- package/dist/chunk-BQB5NUKC.cjs +3 -0
- package/dist/chunk-CBSKS4K5.cjs +2 -0
- package/dist/chunk-CE5ROFEK.cjs +3 -0
- package/dist/chunk-CNSDQ4UJ.cjs +4 -0
- package/dist/chunk-CNY6ADXP.js +3 -0
- package/dist/chunk-D24YMS3F.cjs +2 -0
- package/dist/chunk-D3NVRUYG.cjs +4 -0
- package/dist/chunk-D5GE4WP4.cjs +2 -0
- package/dist/chunk-DIOVB5EV.js +3 -0
- package/dist/chunk-E53NU2VM.js +2 -0
- package/dist/chunk-E5X2STIU.js +2 -0
- package/dist/chunk-E6BTI63P.cjs +2 -0
- package/dist/chunk-E7QYUBHG.js +3 -0
- package/dist/chunk-EFYCREMN.js +3 -0
- package/dist/chunk-EMPQR5VI.js +3 -0
- package/dist/chunk-ET6WP7R7.js +2 -0
- package/dist/chunk-EXHCIY4P.cjs +2 -0
- package/dist/chunk-F56AWN2Z.js +3 -0
- package/dist/chunk-FMWP4OJR.js +2 -0
- package/dist/chunk-G7GQQIM5.js +3 -0
- package/dist/chunk-GVBZYWK6.js +4 -0
- package/dist/chunk-H2RSKIJ4.cjs +2 -0
- package/dist/chunk-HF5DHYIT.cjs +2 -0
- package/dist/chunk-HFHRMJKN.cjs +2 -0
- package/dist/chunk-HR7JPJLN.cjs +2 -0
- package/dist/chunk-HTDED6CG.js +3 -0
- package/dist/chunk-HUYXQPM5.cjs +3 -0
- package/dist/chunk-HY56NZEJ.js +3 -0
- package/dist/chunk-I2ENXXSN.js +2 -0
- package/dist/chunk-ITYNB2GX.js +3 -0
- package/dist/chunk-IVJD6N6G.cjs +2 -0
- package/dist/chunk-JVQ7PW3M.js +3 -0
- package/dist/chunk-KH3WJY4K.js +4 -0
- package/dist/chunk-KIDADDGN.js +4 -0
- package/dist/chunk-KTATHDMS.js +3 -0
- package/dist/chunk-L7K4GFJK.cjs +3 -0
- package/dist/chunk-L7X6ZDMI.js +3 -0
- package/dist/chunk-LF6V2NFN.cjs +3 -0
- package/dist/chunk-LRJNSHQA.cjs +2 -0
- package/dist/chunk-MIEZCJHO.cjs +2 -0
- package/dist/chunk-MPK4ZX4R.js +3 -0
- package/dist/chunk-MPP74SLP.js +2 -0
- package/dist/chunk-N3LPKXTZ.cjs +3 -0
- package/dist/chunk-ND64MB7X.js +2 -0
- package/dist/chunk-NSPDKMNR.cjs +2 -0
- package/dist/chunk-O6FFTCHY.js +3 -0
- package/dist/chunk-OAYQHFZC.cjs +3 -0
- package/dist/chunk-OG5MIFO6.js +3 -0
- package/dist/chunk-OH7FOQCA.js +3 -0
- package/dist/chunk-OHOQVW2M.js +3 -0
- package/dist/chunk-OXDRC7K7.cjs +3 -0
- package/dist/chunk-PKL3JLWF.js +2 -0
- package/dist/chunk-PSZZ5NTF.cjs +2 -0
- package/dist/chunk-QAVZFB5J.cjs +3 -0
- package/dist/chunk-QENB6W4I.cjs +4 -0
- package/dist/chunk-QFPKRD7L.js +3 -0
- package/dist/chunk-QGADB35M.js +4 -0
- package/dist/chunk-RFY7RXSM.js +3 -0
- package/dist/chunk-RL274CM3.cjs +2 -0
- package/dist/chunk-RT46SXH4.cjs +2 -0
- package/dist/chunk-S37OVJTV.js +2 -0
- package/dist/chunk-SGN6JN5F.cjs +2 -0
- package/dist/chunk-TKOGPWM4.cjs +2 -0
- package/dist/chunk-TM36S4YW.cjs +2 -0
- package/dist/chunk-TO7LE2BM.js +3 -0
- package/dist/chunk-UI4NLXDH.cjs +2 -0
- package/dist/chunk-UWZYIALE.js +3 -0
- package/dist/chunk-VCELYR7Q.cjs +3 -0
- package/dist/chunk-VEIAMHP4.js +2 -0
- package/dist/chunk-VF7WOINA.cjs +2 -0
- package/dist/chunk-VG5VAHYR.cjs +3 -0
- package/dist/chunk-VHK4FEXK.cjs +4 -0
- package/dist/chunk-WEJOZLMZ.js +2 -0
- package/dist/chunk-WJBYPKLH.cjs +3 -0
- package/dist/chunk-WKHVRU4K.js +3 -0
- package/dist/chunk-WR7BWGMO.cjs +2 -0
- package/dist/chunk-WRJEEPKK.cjs +2 -0
- package/dist/chunk-X5VBG5D7.js +3 -0
- package/dist/chunk-XELIMPNH.cjs +4 -0
- package/dist/chunk-YACR35TD.js +4 -0
- package/dist/chunk-YUYEO5DZ.cjs +2 -0
- package/dist/chunk-ZDKN5LRE.js +3 -0
- package/dist/chunk-ZFYJXGZM.cjs +2 -0
- package/dist/chunk-ZMPSBRKW.js +2 -0
- package/dist/client/index.cjs +4 -0
- package/dist/client/index.d.cts +96 -0
- package/dist/client/index.d.ts +96 -0
- package/dist/client/index.js +6 -0
- package/dist/experimental/index.cjs +3 -3
- package/dist/experimental/index.d.cts +296 -100
- package/dist/experimental/index.d.ts +296 -100
- package/dist/experimental/index.js +3 -3
- package/dist/experimental/index.native.cjs +3 -1
- package/dist/experimental/index.native.d.cts +6 -5
- package/dist/experimental/index.native.d.ts +6 -5
- package/dist/experimental/index.native.js +3 -1
- package/dist/fixtures.cjs +252 -35
- package/dist/fixtures.d.ts +31 -14
- package/dist/fixtures.js +230 -31
- package/dist/index.cjs +1 -2
- package/dist/index.d.cts +201 -27
- package/dist/index.d.ts +201 -27
- package/dist/index.js +2 -3
- package/dist/index.native.cjs +3 -1
- package/dist/index.native.d.cts +52 -147
- package/dist/index.native.d.ts +52 -147
- package/dist/index.native.js +2 -1
- package/dist/metafile-cjs.json +1 -1
- package/dist/metafile-esm.json +1 -1
- package/dist/motionFeatures-AEY3XSQX.js +1 -0
- package/dist/motionFeatures-GFOZDTZE.js +1 -0
- package/dist/motionFeatures-H5RRG7RP.js +1 -0
- package/dist/motionFeatures-NR4MMJ3L.cjs +1 -0
- package/dist/motionFeatures-WFC6MN64.cjs +1 -0
- package/dist/motionFeatures-WUDKXXR7.js +1 -0
- package/dist/motionFeatures-XXMSSBUB.cjs +1 -0
- package/dist/motionFeatures-ZAB6OWON.cjs +1 -0
- package/dist/styles/toast.css +3 -1
- package/dist/styles/toast.d.cts +2 -0
- package/dist/styles/toast.d.ts +2 -0
- package/dist/tailwind/plugin.cjs +3 -1
- package/dist/tailwind/plugin.d.cts +28 -5
- package/dist/tailwind/plugin.d.ts +28 -5
- package/dist/tailwind/plugin.js +3 -3
- package/dist/tailwind/purger.cjs +2 -2
- package/dist/tailwind/purger.js +3 -3
- package/dist/tailwind/tsMorph.cjs +3 -1
- package/dist/tailwind/tsMorph.d.cts +1 -4
- package/dist/tailwind/tsMorph.d.ts +1 -4
- package/dist/tailwind/tsMorph.js +2 -3
- package/dist/tailwind/utils.cjs +1 -0
- package/dist/tailwind/utils.d.cts +98 -0
- package/dist/tailwind/utils.d.ts +98 -0
- package/dist/tailwind/utils.js +1 -0
- package/dist/tokens/index.cjs +1 -2
- package/dist/tokens/index.d.cts +41 -362
- package/dist/tokens/index.d.ts +41 -362
- package/dist/tokens/index.js +1 -2
- package/dist/tokens/index.native.cjs +3 -1
- package/dist/tokens/index.native.d.cts +24 -2
- package/dist/tokens/index.native.d.ts +24 -2
- package/dist/tokens/index.native.js +3 -1
- package/dist/tokens/parseTokens.cjs +1 -2
- package/dist/tokens/parseTokens.d.cts +7 -20
- package/dist/tokens/parseTokens.d.ts +7 -20
- package/dist/tokens/parseTokens.js +1 -2
- package/dist/types-BVfWAIpr.d.cts +909 -0
- package/dist/types-BVfWAIpr.d.ts +909 -0
- package/dist/types-Bi1Q20iy.d.cts +951 -0
- package/dist/types-Bi1Q20iy.d.ts +951 -0
- package/dist/types-BkcFcA6N.d.cts +909 -0
- package/dist/types-BkcFcA6N.d.ts +909 -0
- package/dist/types-C4OR1S9X.d.cts +951 -0
- package/dist/types-C4OR1S9X.d.ts +951 -0
- package/dist/types-C7KJV1b1.d.cts +943 -0
- package/dist/types-C7KJV1b1.d.ts +943 -0
- package/dist/types-DVTR9ROz.d.cts +942 -0
- package/dist/types-DVTR9ROz.d.ts +942 -0
- package/dist/types-JTm5E7im.d.cts +943 -0
- package/dist/types-JTm5E7im.d.ts +943 -0
- package/dist/types-uSRlDJAd.d.cts +942 -0
- package/dist/types-uSRlDJAd.d.ts +942 -0
- package/package.json +13 -1
- package/dist/VStack-BFIFJUVx.d.cts +0 -177
- package/dist/VStack-zgq0Zq3N.d.ts +0 -177
- package/dist/index.native-Gbm66c6M.d.ts +0 -317
- package/dist/index.native-OW5d35eT.d.cts +0 -317
- package/dist/styles/globals.css +0 -1
- package/dist/types-BofdnBTe.d.cts +0 -436
- package/dist/types-BofdnBTe.d.ts +0 -436
- package/dist/types-CLPge83Y.d.cts +0 -436
- package/dist/types-CLPge83Y.d.ts +0 -436
@@ -1,436 +0,0 @@
|
|
1
|
-
import { PropsWithChildren } from 'react';
|
2
|
-
|
3
|
-
interface SvgIconProps extends Partial<UniversalIconProps> {
|
4
|
-
}
|
5
|
-
type SvgIcon = (props: SvgIconProps) => JSX.Element;
|
6
|
-
|
7
|
-
declare const alwaysPalette: {
|
8
|
-
white: string;
|
9
|
-
black: string;
|
10
|
-
transparent: string;
|
11
|
-
current: string;
|
12
|
-
};
|
13
|
-
|
14
|
-
type PaletteType = keyof PaletteConfig;
|
15
|
-
type PaletteValue = {
|
16
|
-
hue: Hue;
|
17
|
-
step: HueStep;
|
18
|
-
opacity?: string;
|
19
|
-
};
|
20
|
-
type Palette = {
|
21
|
-
[key in PaletteType]: keyof PaletteConfig[key];
|
22
|
-
};
|
23
|
-
type Hue = 'gray' | 'purple' | 'indigo' | 'blue' | 'cyan' | 'teal' | 'mint' | 'green' | 'lime' | 'citron' | 'yellow' | 'brown' | 'nude' | 'orange' | 'sunset' | 'red' | 'rose' | 'pink' | 'magenta' | 'carbon';
|
24
|
-
type HueStep = '0' | '1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '9' | '10' | '11' | '12' | '13' | '14' | '15';
|
25
|
-
type SpectrumColor = `${Hue}-${HueStep}`;
|
26
|
-
type CorePalette = Record<CorePaletteAlias, PaletteValue>;
|
27
|
-
type CorePaletteAlias = 'accent' | 'alert' | 'brand' | 'positive' | 'warning';
|
28
|
-
type BackgroundPaletteAlias = 'primary' | 'secondary';
|
29
|
-
type BackgroundPalette = Record<BackgroundPaletteAlias, PaletteValue>;
|
30
|
-
type ForegroundPalette = Record<ForegroundPaletteAlias, PaletteValue>;
|
31
|
-
type ForegroundPaletteAlias = 'primary' | 'secondary' | 'tertiary' | 'muted' | 'on-color';
|
32
|
-
type LinePalette = Record<LinePaletteAlias, PaletteValue>;
|
33
|
-
type LinePaletteAlias = 'primary' | 'secondary' | 'tertiary' | 'muted';
|
34
|
-
type AlwaysPalette = typeof alwaysPalette;
|
35
|
-
type AlwaysPaletteAlias = keyof AlwaysPalette;
|
36
|
-
type ForegroundColor = CorePaletteAlias | ForegroundPaletteAlias | AlwaysPaletteAlias;
|
37
|
-
type LineColor = CorePaletteAlias | LinePaletteAlias | AlwaysPaletteAlias;
|
38
|
-
type BackgroundColor = CorePaletteAlias | BackgroundPaletteAlias | AlwaysPaletteAlias;
|
39
|
-
type PropertyToPaletteAliasMap = {
|
40
|
-
backgroundColor: BackgroundColor;
|
41
|
-
borderColor: LineColor;
|
42
|
-
color: ForegroundColor;
|
43
|
-
};
|
44
|
-
type TextVariant = 'display1' | 'display2' | 'display3' | 'title1' | 'title2' | 'title3' | 'title4' | 'headline1' | 'body1' | 'label1' | 'label2' | 'caption1' | 'caption2' | 'legal1';
|
45
|
-
type FontFamilyGlobalAlias = 'icons' | 'sans' | 'sans-beta' | 'sans-condensed' | 'serif-text' | 'serif-display';
|
46
|
-
type FontFamilyGlobalConfig = Record<FontFamilyGlobalAlias, {
|
47
|
-
fallbacks: string[];
|
48
|
-
name: string;
|
49
|
-
}>;
|
50
|
-
type FontWeightNumeric = '100' | '200' | '300' | '400' | '500' | '600' | '700' | '800' | '900';
|
51
|
-
type FontWeightDescriptive = 'thin' | 'extralight' | 'light' | 'regular' | 'medium' | 'semibold' | 'bold' | 'extrabold' | 'black';
|
52
|
-
type TextTransform = 'none' | 'uppercase' | 'lowercase' | 'capitalize';
|
53
|
-
type LetterSpacing = 'tighter' | 'tight' | 'normal' | 'wide' | 'wider' | 'widest';
|
54
|
-
type LineClampAlias = '1' | '2' | '3' | '4' | '5' | '6';
|
55
|
-
type LineHeight = number;
|
56
|
-
type FontSize = number;
|
57
|
-
type TextTransformConfig = Record<TextVariant, TextTransform>;
|
58
|
-
type FontSizeConfig = Record<TextVariant, FontSize>;
|
59
|
-
type FontFamilyConfig = Record<TextVariant, FontFamilyGlobalAlias>;
|
60
|
-
type FontWeightConfig = Record<TextVariant, FontWeightDescriptive>;
|
61
|
-
type LineHeightConfig = Record<TextVariant, LineHeight>;
|
62
|
-
type ConfigurableTextProperty = 'fontFamily' | 'fontSize' | 'fontWeight' | 'lineHeight' | 'textTransform';
|
63
|
-
type TShirtSize = 'none' | 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'full';
|
64
|
-
type TShirtSizeCommon = Extract<TShirtSize, 'sm' | 'md' | 'lg'>;
|
65
|
-
type AvatarSize = TShirtSizeCommon;
|
66
|
-
type AvatarSizeConfig = Record<AvatarSize, number>;
|
67
|
-
type AvatarShape = BorderRadius;
|
68
|
-
type IconSize = TShirtSizeCommon;
|
69
|
-
type IconSizeConfig = Record<IconSize, number>;
|
70
|
-
type SpacingAlias = '0' | 'px' | '0.5' | '1' | '1.5' | '2' | '2.5' | '3' | '3.5' | '4' | '5' | '6' | '7' | '8' | '9' | '10' | '11' | '12' | '14' | '16' | '20' | '24' | '28' | '32' | '36' | '40' | '44' | '48' | '52' | '56' | '60' | '64' | '72' | '80' | '96';
|
71
|
-
type SpacingConfig = Record<SpacingAlias, number>;
|
72
|
-
type BorderRadius = TShirtSize;
|
73
|
-
type BorderRadiusConfig = Record<BorderRadius, number>;
|
74
|
-
type BorderWidth = 'none' | 'thin' | 'medium' | 'thick';
|
75
|
-
type BorderWidthConfig = Record<BorderWidth, number>;
|
76
|
-
type BoxShadowConfig = {
|
77
|
-
color: string;
|
78
|
-
offsetX: number;
|
79
|
-
offsetY: number;
|
80
|
-
blurRadius: number;
|
81
|
-
spreadRadius: number;
|
82
|
-
}[];
|
83
|
-
type ColorModeConfig = Record<ColorMode, ColorsConfig>;
|
84
|
-
type ColorsConfig = {
|
85
|
-
palette: PaletteConfig;
|
86
|
-
spectrum: SpectrumConfig;
|
87
|
-
};
|
88
|
-
type SpectrumValue = Record<HueStep, string>;
|
89
|
-
type SpectrumConfig = Record<Hue, SpectrumValue>;
|
90
|
-
type PaletteConfig = {
|
91
|
-
core: CorePalette;
|
92
|
-
background: BackgroundPalette;
|
93
|
-
foreground: ForegroundPalette;
|
94
|
-
line: LinePalette;
|
95
|
-
};
|
96
|
-
type ScaleConfig = {
|
97
|
-
avatarSizes: AvatarSizeConfig;
|
98
|
-
iconSizes: IconSizeConfig;
|
99
|
-
borderRadius: BorderRadiusConfig;
|
100
|
-
borderWidth: BorderWidthConfig;
|
101
|
-
fontFamily: FontFamilyConfig;
|
102
|
-
fontSize: FontSizeConfig;
|
103
|
-
fontWeight: FontWeightConfig;
|
104
|
-
lineHeight: LineHeightConfig;
|
105
|
-
textTransform: TextTransformConfig;
|
106
|
-
};
|
107
|
-
type ScaleModeConfig = Record<ScaleMode, ScaleConfig>;
|
108
|
-
type ButtonSize = TShirtSizeCommon;
|
109
|
-
type ButtonCategory = CorePaletteAlias;
|
110
|
-
type ButtonVariant2 = 'primary' | 'secondary' | 'tertiary';
|
111
|
-
type ButtonState = 'hover' | 'pressed';
|
112
|
-
type ButtonKind = 'fill' | 'outline' | 'ghost';
|
113
|
-
type ButtonColorEffect = 'lighten' | 'darken' | 'none' | 'custom';
|
114
|
-
type ButtonColorProperty = 'backgroundColor' | 'borderColor' | 'color';
|
115
|
-
type ButtonColorEffectConfig = {
|
116
|
-
options: ButtonColorEffect[];
|
117
|
-
value: ButtonColorEffect;
|
118
|
-
};
|
119
|
-
type ButtonSpecrtumColor = {
|
120
|
-
type: 'spectrum';
|
121
|
-
value: SpectrumColor;
|
122
|
-
};
|
123
|
-
type ButtonPaletteColor<T> = {
|
124
|
-
type: 'palette';
|
125
|
-
value: T;
|
126
|
-
};
|
127
|
-
type ButtonColorConfig<Property extends ButtonColorProperty> = ButtonPaletteColor<PropertyToPaletteAliasMap[Property]> | ButtonSpecrtumColor;
|
128
|
-
type ButtonColorPropertyConfig = {
|
129
|
-
backgroundColor: ButtonColorConfig<'backgroundColor'>;
|
130
|
-
borderColor: ButtonColorConfig<'borderColor'>;
|
131
|
-
color: ButtonColorConfig<'color'>;
|
132
|
-
};
|
133
|
-
type ButtonBaseConfig = {
|
134
|
-
borderWidth: BorderWidth;
|
135
|
-
borderRadius: BorderRadius;
|
136
|
-
} & ButtonColorPropertyConfig;
|
137
|
-
type ButtonStateConfig = {
|
138
|
-
[state in ButtonState]: ButtonColorPropertyConfig;
|
139
|
-
};
|
140
|
-
type ButtonStateEffectConfig = {
|
141
|
-
[state in ButtonState]: {
|
142
|
-
[property in ButtonColorProperty]: ButtonColorEffectConfig;
|
143
|
-
};
|
144
|
-
};
|
145
|
-
interface ButtonConfig {
|
146
|
-
defaults: {
|
147
|
-
category: ButtonCategory;
|
148
|
-
variant: ButtonVariant2;
|
149
|
-
size: ButtonSize;
|
150
|
-
};
|
151
|
-
size: {
|
152
|
-
[size in ButtonSize]: {
|
153
|
-
spacingHorizontal: SpacingAlias;
|
154
|
-
spacingVertical: SpacingAlias;
|
155
|
-
gap: SpacingAlias;
|
156
|
-
iconSize: IconSize;
|
157
|
-
textVariant: TextVariant;
|
158
|
-
};
|
159
|
-
};
|
160
|
-
category: {
|
161
|
-
[category in ButtonCategory]: {
|
162
|
-
[variant in ButtonVariant2]: {
|
163
|
-
kind: ButtonKind;
|
164
|
-
base: ButtonBaseConfig;
|
165
|
-
effect: ButtonStateEffectConfig;
|
166
|
-
state: ButtonStateConfig;
|
167
|
-
};
|
168
|
-
};
|
169
|
-
};
|
170
|
-
}
|
171
|
-
type UniversalTokensConfig = {
|
172
|
-
colorMode: ColorModeConfig;
|
173
|
-
scaleMode: ScaleModeConfig;
|
174
|
-
fontFamily: FontFamilyGlobalConfig;
|
175
|
-
button?: ButtonConfig;
|
176
|
-
};
|
177
|
-
type PlatformMode = 'web' | 'ios' | 'android';
|
178
|
-
type ColorMode = 'light' | 'dark';
|
179
|
-
type ColorModeForApp = ColorMode | 'system';
|
180
|
-
type ScaleMode = 'xSmall' | 'small' | 'medium' | 'large' | 'xLarge' | 'xxLarge' | 'xxxLarge';
|
181
|
-
type ScaleModeForApp = ScaleMode | 'system';
|
182
|
-
type HighContrastMode = boolean;
|
183
|
-
type RegionMode = '🇺🇸 US' | '🇩🇪 DE' | '🇫🇷 FR' | '🇨🇳 CN';
|
184
|
-
interface Modes {
|
185
|
-
colorMode: ColorMode;
|
186
|
-
scaleMode: ScaleMode;
|
187
|
-
}
|
188
|
-
type Animation = 'none' | 'spin' | 'ping' | 'pulse' | 'bounce' | 'accordion-down' | 'accordion-up';
|
189
|
-
type TransitionDelay = '0' | '75' | '100' | '150' | '200' | '300' | '500' | '700' | '1000';
|
190
|
-
type TransitionDuration = '0' | '75' | '100' | '150' | '200' | '300' | '500' | '700' | '1000';
|
191
|
-
type TransitionTiming = 'linear' | 'in' | 'out' | 'in-out';
|
192
|
-
type AriaAttribute = 'busy' | 'checked' | 'disabled' | 'expanded' | 'hidden' | 'pressed' | 'readonly' | 'required' | 'selected' | 'invalid';
|
193
|
-
type DataAttribute = 'active' | 'active-item' | 'autofill' | 'backdrop' | 'enter' | 'leave' | 'focus-visible';
|
194
|
-
type Flex = '1' | 'auto' | 'initial' | 'none';
|
195
|
-
type FlexGrow = '0' | '1' | '2' | '3';
|
196
|
-
type FlexShrink = '0' | '1';
|
197
|
-
type FlexAlignContent = 'flex-start' | 'flex-end' | 'center' | 'stretch' | 'space-between' | 'space-around';
|
198
|
-
type FlexAlignItems = 'flex-start' | 'flex-end' | 'center' | 'stretch' | 'baseline';
|
199
|
-
type FlexAlignSelf = 'auto' | 'flex-start' | 'flex-end' | 'center' | 'stretch' | 'baseline';
|
200
|
-
type FlexDirection = 'row' | 'column' | 'row-reverse' | 'column-reverse';
|
201
|
-
type FlexWrap = 'wrap' | 'nowrap' | 'wrap-reverse';
|
202
|
-
type FlexJustifyContent = 'flex-start' | 'flex-end' | 'center' | 'space-between' | 'space-around' | 'space-evenly';
|
203
|
-
type FlexBasis = 'min-content';
|
204
|
-
type Display = 'block' | 'inline-block' | 'inline' | 'flex' | 'inline-flex' | 'table' | 'inline-table' | 'table-caption' | 'table-cell' | 'table-column' | 'table-column-group' | 'table-footer-group' | 'table-header-group' | 'table-row-group' | 'table-row' | 'flow-root' | 'grid' | 'contents';
|
205
|
-
type Overflow = 'auto' | 'hidden' | 'clip' | 'visible' | 'scroll';
|
206
|
-
type Position = 'static' | 'fixed' | 'absolute' | 'relative' | 'sticky';
|
207
|
-
type ImageStyleProps = {
|
208
|
-
/**
|
209
|
-
* Determines how the image should be resized to fit its container.
|
210
|
-
*/
|
211
|
-
contentFit?: 'cover' | 'contain' | 'fill' | 'none' | 'scale-down';
|
212
|
-
};
|
213
|
-
interface BorderStyleProps {
|
214
|
-
/** Add a border radius to all corners of the box. */
|
215
|
-
borderRadius?: BorderRadius;
|
216
|
-
/** Add a border radius to top left corner of the box. */
|
217
|
-
borderTopStartRadius?: BorderRadius;
|
218
|
-
/** Add a border radius to top right corner of the box. */
|
219
|
-
borderTopEndRadius?: BorderRadius;
|
220
|
-
/** Add a border radius to bottom left corner of the box. */
|
221
|
-
borderBottomStartRadius?: BorderRadius;
|
222
|
-
/** Add a border radius to bottom right corner of the box. */
|
223
|
-
borderBottomEndRadius?: BorderRadius;
|
224
|
-
/** Adds a custom border color from the palette */
|
225
|
-
borderColor?: LineColor;
|
226
|
-
/** Start border color */
|
227
|
-
borderStartColor?: LineColor;
|
228
|
-
/** End border color */
|
229
|
-
borderEndColor?: LineColor;
|
230
|
-
/** Top border color */
|
231
|
-
borderTopColor?: LineColor;
|
232
|
-
/** Bottom border color */
|
233
|
-
borderBottomColor?: LineColor;
|
234
|
-
/** Shorthand property to the width of an element's border. */
|
235
|
-
borderWidth?: BorderWidth;
|
236
|
-
/** Sets the width of the top and bottom border of an element. */
|
237
|
-
borderVerticalWidth?: BorderWidth;
|
238
|
-
/** Sets the width of the start (left) and end (right) border of an element. */
|
239
|
-
borderHorizontalWidth?: BorderWidth;
|
240
|
-
/** Sets the width of the start (left) border of an element. */
|
241
|
-
borderStartWidth?: BorderWidth;
|
242
|
-
/** Sets the width of the end (right) border of an element. */
|
243
|
-
borderEndWidth?: BorderWidth;
|
244
|
-
/** Sets the width of the top border of an element. */
|
245
|
-
borderTopWidth?: BorderWidth;
|
246
|
-
/** Sets the width of the bottom border of an element. */
|
247
|
-
borderBottomWidth?: BorderWidth;
|
248
|
-
}
|
249
|
-
interface LayoutStyleProps {
|
250
|
-
/** Sets whether an element is treated as a block or inline box and the layout used for its children, such as flow layout, grid or flex. */
|
251
|
-
display?: Display;
|
252
|
-
/** Shorthand property which sets the desired behavior when content does not fit in the parent element box (overflows) in the horizontal and/or vertical direction. */
|
253
|
-
overflow?: Overflow;
|
254
|
-
/** Sets what shows when content overflows a block-level element's left and right edges. This may be nothing, a scroll bar, or the overflow content. This property may also be set by using the overflow shorthand property. */
|
255
|
-
overflowX?: Overflow;
|
256
|
-
/** sets what shows when content overflows a block-level element's top and bottom edges. This may be nothing, a scroll bar, or the overflow content. This property may also be set by using the overflow shorthand property. */
|
257
|
-
overflowY?: Overflow;
|
258
|
-
/** Sets how an element is positioned in a document. The top, right, bottom, and left properties determine the final location of positioned elements. */
|
259
|
-
position?: Position;
|
260
|
-
}
|
261
|
-
interface SpacingStyleProps {
|
262
|
-
/** Apply inner spacing on all sides. */
|
263
|
-
spacing?: SpacingAlias;
|
264
|
-
/** Apply inner spacing on the leading and trailing sides. */
|
265
|
-
spacingHorizontal?: SpacingAlias;
|
266
|
-
/** Apply inner spacing on the top and bottom sides. */
|
267
|
-
spacingVertical?: SpacingAlias;
|
268
|
-
/** Apply inner spacing on the bottom side. */
|
269
|
-
spacingBottom?: SpacingAlias;
|
270
|
-
/** Apply inner spacing on the trailing side. */
|
271
|
-
spacingEnd?: SpacingAlias;
|
272
|
-
/** Apply inner spacing on the leading side. */
|
273
|
-
spacingStart?: SpacingAlias;
|
274
|
-
/** Apply inner spacing on the top side. */
|
275
|
-
spacingTop?: SpacingAlias;
|
276
|
-
/** Apply negative outer spacing on all sides. */
|
277
|
-
offset?: SpacingAlias;
|
278
|
-
/** Apply negative outer spacing on the top and bottom sides. */
|
279
|
-
offsetVertical?: SpacingAlias;
|
280
|
-
/** Apply negative outer spacing on the leading and trailing sides. */
|
281
|
-
offsetHorizontal?: SpacingAlias;
|
282
|
-
/** Apply negative outer spacing on the bottom side. */
|
283
|
-
offsetBottom?: SpacingAlias;
|
284
|
-
/** Apply negative outer spacing on the trailing side. */
|
285
|
-
offsetEnd?: SpacingAlias;
|
286
|
-
/** Apply negative outer spacing on the leading side. */
|
287
|
-
offsetStart?: SpacingAlias;
|
288
|
-
/** Apply negative outer spacing on the top side. */
|
289
|
-
offsetTop?: SpacingAlias;
|
290
|
-
/** Control the horizontal gutters between grid and flexbox items. */
|
291
|
-
columnGap?: SpacingAlias;
|
292
|
-
/** Control the vertical gutters between grid and flexbox items. */
|
293
|
-
rowGap?: SpacingAlias;
|
294
|
-
}
|
295
|
-
interface FlexStyleProps {
|
296
|
-
/** Sets the distribution of space between and around content items along a flexbox's cross-axis or a grid's block axis. */
|
297
|
-
alignContent?: FlexAlignContent;
|
298
|
-
/** Sets the align-self value on all direct children as a group. In Flexbox, it controls the alignment of items on the Cross Axis. In Grid Layout, it controls the alignment of items on the Block Axis within their grid area. */
|
299
|
-
alignItems?: FlexAlignItems;
|
300
|
-
/** Overrides a grid or flex item's align-items value. In Grid, it aligns the item inside the grid area. In Flexbox, it aligns the item on the cross axis. */
|
301
|
-
alignSelf?: FlexAlignSelf;
|
302
|
-
/** Sets how a flex item will grow or shrink to fit the space available in its flex container. */
|
303
|
-
flex?: Flex;
|
304
|
-
/** Sets how flex items are placed in the flex container defining the main axis and the direction (normal or reversed). */
|
305
|
-
flexDirection?: FlexDirection;
|
306
|
-
/** Sets the flex grow factor, which specifies how much of the flex container's remaining space should be assigned to the flex item's main size. */
|
307
|
-
flexGrow?: FlexGrow;
|
308
|
-
/** Sets the flex shrink factor of a flex item. If the size of all flex items is larger than the flex container, items shrink to fit according to flex-shrink. */
|
309
|
-
flexShrink?: FlexShrink;
|
310
|
-
/** Sets whether flex items are forced onto one line or can wrap onto multiple lines. If wrapping is allowed, it sets the direction that lines are stacked. */
|
311
|
-
flexWrap?: FlexWrap;
|
312
|
-
/** Defines how the browser distributes space between and around content items along the main-axis of a flex container, and the inline axis of a grid container. */
|
313
|
-
justifyContent?: FlexJustifyContent;
|
314
|
-
/** Sets the initial main size of a flex item. It sets the size of the content box unless otherwise set with box-sizing. https://developer.mozilla.org/en-US/docs/Web/CSS/flex-basis */
|
315
|
-
flexBasis?: FlexBasis;
|
316
|
-
}
|
317
|
-
interface StateStyleProps {
|
318
|
-
interactable?: boolean;
|
319
|
-
focusable?: boolean;
|
320
|
-
}
|
321
|
-
interface TextStyleProps {
|
322
|
-
/** Color of a Text or Icon element */
|
323
|
-
color?: ForegroundColor;
|
324
|
-
/** Color of placeholder text */
|
325
|
-
placeholderColor?: ForegroundColor;
|
326
|
-
/** Font family for the text */
|
327
|
-
fontFamily?: TextVariant | FontFamilyGlobalAlias;
|
328
|
-
/** Font size of the text */
|
329
|
-
fontSize?: TextVariant;
|
330
|
-
/** Font weight of the text */
|
331
|
-
fontWeight?: TextVariant | FontWeightDescriptive;
|
332
|
-
/** Line height of the text */
|
333
|
-
lineHeight?: TextVariant;
|
334
|
-
/** Text alignment of the text */
|
335
|
-
textAlign?: 'center' | 'justify' | 'start' | 'end';
|
336
|
-
/** Sets the text transform for the text */
|
337
|
-
textTransform?: TextVariant | TextTransform;
|
338
|
-
}
|
339
|
-
interface BackgroundStyleProps {
|
340
|
-
/** Sets the background color. */
|
341
|
-
backgroundColor?: BackgroundColor;
|
342
|
-
}
|
343
|
-
type CustomSizingStyleProps = {
|
344
|
-
iconSize?: IconSize;
|
345
|
-
avatarSize?: AvatarSize;
|
346
|
-
};
|
347
|
-
type StyleProps = BackgroundStyleProps & BorderStyleProps & LayoutStyleProps & FlexStyleProps & SpacingStyleProps & TextStyleProps & ImageStyleProps & CustomSizingStyleProps;
|
348
|
-
interface UniversalBoxProps extends PropsWithChildren, BackgroundStyleProps, BorderStyleProps, FlexStyleProps, LayoutStyleProps, SpacingStyleProps {
|
349
|
-
/**
|
350
|
-
* When asChild is set to true, the component's child will be cloned and passed
|
351
|
-
* the props and behavior required to make it functional.
|
352
|
-
*/
|
353
|
-
asChild?: boolean;
|
354
|
-
}
|
355
|
-
interface UniversalStackProps extends Omit<UniversalBoxProps, 'flexDirection'> {
|
356
|
-
gap?: SpacingAlias;
|
357
|
-
}
|
358
|
-
interface UniversalTextProps extends PropsWithChildren, TextStyleProps, UniversalBoxProps {
|
359
|
-
/** Style of text. */
|
360
|
-
variant?: TextVariant;
|
361
|
-
/** Color of the text. */
|
362
|
-
color?: ForegroundColor;
|
363
|
-
}
|
364
|
-
interface UniversalIconProps {
|
365
|
-
/** Icon to render from the icons package. */
|
366
|
-
name: SvgIcon;
|
367
|
-
/** Size of the icon. */
|
368
|
-
size?: IconSize;
|
369
|
-
/** Variant for icon. Either fill or outline. */
|
370
|
-
variant?: 'fill' | 'outline';
|
371
|
-
/** Color of the icon. */
|
372
|
-
color?: ForegroundColor;
|
373
|
-
}
|
374
|
-
interface UniversalPressableProps extends UniversalBoxProps {
|
375
|
-
onPress?: () => void;
|
376
|
-
}
|
377
|
-
type ButtonVariant = CorePaletteAlias | `${CorePaletteAlias}-outline` | `${CorePaletteAlias}-ghost` | 'primary-ghost' | 'primary-outline' | 'secondary';
|
378
|
-
interface UniversalIconButtonProps {
|
379
|
-
/** The variant of the button. */
|
380
|
-
variant?: ButtonVariant;
|
381
|
-
/** The size of the button. */
|
382
|
-
size?: UniversalIconProps['size'];
|
383
|
-
/** Icon to render from the icons package. */
|
384
|
-
name: SvgIcon;
|
385
|
-
/** Color for the icon. */
|
386
|
-
color: UniversalIconProps['color'];
|
387
|
-
}
|
388
|
-
interface UniversalButtonProps {
|
389
|
-
/**
|
390
|
-
* The variant of the button
|
391
|
-
* @default 'accent'
|
392
|
-
*/
|
393
|
-
variant?: ButtonVariant;
|
394
|
-
/**
|
395
|
-
* The size of the button
|
396
|
-
* @default 'md'
|
397
|
-
*/
|
398
|
-
size?: ButtonSize;
|
399
|
-
/** The name of the icon to be displayed at the start of the button. */
|
400
|
-
startIcon?: SvgIcon;
|
401
|
-
/** The name of the icon to be displayed at the end of the button. */
|
402
|
-
endIcon?: SvgIcon;
|
403
|
-
/** Indicates whether the button should span the full width of its container. */
|
404
|
-
fullWidth?: boolean;
|
405
|
-
}
|
406
|
-
interface UniversalImageProps extends Omit<UniversalBoxProps, 'width' | 'height'>, ImageStyleProps {
|
407
|
-
/** The source URL of the image. */
|
408
|
-
src: string;
|
409
|
-
/** Provides fallback (alternate) text to display when the image specified by the Image element is not loaded. */
|
410
|
-
alt?: string;
|
411
|
-
/** Width of the image in px. */
|
412
|
-
width?: number;
|
413
|
-
/** Height of the image in pixel. */
|
414
|
-
height?: number;
|
415
|
-
}
|
416
|
-
interface UniversalAvatarProps extends UniversalImageProps {
|
417
|
-
/** The size of the Avatar. */
|
418
|
-
size?: AvatarSize;
|
419
|
-
/** The shape of the Avatar. */
|
420
|
-
shape?: BorderRadius;
|
421
|
-
}
|
422
|
-
interface UniversalTextInputProps {
|
423
|
-
disabled?: boolean;
|
424
|
-
required?: boolean;
|
425
|
-
backgroundColor?: BackgroundColor;
|
426
|
-
borderColor?: LineColor;
|
427
|
-
borderWidth?: BorderWidth;
|
428
|
-
borderRadius?: BorderRadius;
|
429
|
-
color?: ForegroundColor;
|
430
|
-
fontSize?: TextVariant;
|
431
|
-
placeholderColor?: ForegroundColor;
|
432
|
-
spacingVertical?: SpacingAlias;
|
433
|
-
spacingHorizontal?: SpacingAlias;
|
434
|
-
}
|
435
|
-
|
436
|
-
export { type DataAttribute as $, type AlwaysPalette as A, type BackgroundPaletteAlias as B, type ColorMode as C, type ButtonColorConfig as D, type ButtonColorEffect as E, type ForegroundPaletteAlias as F, type ButtonColorEffectConfig as G, type Hue as H, type ButtonColorProperty as I, type ButtonColorPropertyConfig as J, type ButtonConfig as K, type LinePaletteAlias as L, type ButtonKind as M, type ButtonSize as N, type ButtonSpecrtumColor as O, type ButtonState as P, type ButtonStateConfig as Q, type ButtonStateEffectConfig as R, type ScaleMode as S, type ButtonVariant as T, type UniversalTokensConfig as U, type ButtonVariant2 as V, type ColorModeConfig as W, type ColorModeForApp as X, type ConfigurableTextProperty as Y, type CorePalette as Z, type CustomSizingStyleProps as _, type ColorsConfig as a, type UniversalIconProps as a$, type Display as a0, type Flex as a1, type FlexAlignContent as a2, type FlexAlignItems as a3, type FlexAlignSelf as a4, type FlexBasis as a5, type FlexDirection as a6, type FlexGrow as a7, type FlexJustifyContent as a8, type FlexShrink as a9, type PlatformMode as aA, type Position as aB, type PropertyToPaletteAliasMap as aC, type RegionMode as aD, type ScaleConfig as aE, type ScaleModeConfig as aF, type ScaleModeForApp as aG, type SpacingAlias as aH, type SpacingConfig as aI, type SpacingStyleProps as aJ, type SpectrumColor as aK, type SpectrumConfig as aL, type StateStyleProps as aM, type StyleProps as aN, type TextStyleProps as aO, type TextTransform as aP, type TextTransformConfig as aQ, type TextVariant as aR, type TransitionDelay as aS, type TransitionDuration as aT, type TransitionTiming as aU, type TShirtSize as aV, type TShirtSizeCommon as aW, type UniversalAvatarProps as aX, type UniversalBoxProps as aY, type UniversalButtonProps as aZ, type UniversalIconButtonProps as a_, type FlexStyleProps as aa, type FlexWrap as ab, type FontFamilyConfig as ac, type FontFamilyGlobalAlias as ad, type FontSize as ae, type FontSizeConfig as af, type FontWeightDescriptive as ag, type ForegroundColor as ah, type ForegroundPalette as ai, type HighContrastMode as aj, type IconSize as ak, type IconSizeConfig as al, type ImageStyleProps as am, type LayoutStyleProps as an, type LetterSpacing as ao, type LineClampAlias as ap, type LineColor as aq, type LineHeight as ar, type LineHeightConfig as as, type LinePalette as at, type Modes as au, type Overflow as av, type Palette as aw, type PaletteConfig as ax, type PaletteType as ay, type PaletteValue as az, type HueStep as b, type UniversalPressableProps as b0, type UniversalTextInputProps as b1, type UniversalTextProps as b2, type CorePaletteAlias as c, type FontWeightConfig as d, type FontWeightNumeric as e, type FontFamilyGlobalConfig as f, type UniversalStackProps as g, type UniversalImageProps as h, alwaysPalette as i, type AlwaysPaletteAlias as j, type Animation as k, type AriaAttribute as l, type AvatarShape as m, type AvatarSize as n, type AvatarSizeConfig as o, type BackgroundColor as p, type BackgroundPalette as q, type BackgroundStyleProps as r, type BorderRadius as s, type BorderRadiusConfig as t, type BorderStyleProps as u, type BorderWidth as v, type BorderWidthConfig as w, type BoxShadowConfig as x, type ButtonBaseConfig as y, type ButtonCategory as z };
|