@yahoo/uds 0.1.11 → 0.1.13
Sign up to get free protection for your applications and to get access to all the features.
- package/cli/README.md +135 -0
- package/cli/commands/config/config.ts +10 -0
- package/cli/commands/config/sync.ts +22 -0
- package/cli/commands/expo/_setup.ts +260 -0
- package/cli/commands/expo/build.ts +15 -0
- package/cli/commands/expo/dev.ts +79 -0
- package/cli/commands/expo/expo.ts +23 -0
- package/cli/commands/expo/launch.ts +15 -0
- package/cli/commands/expo/update.ts +16 -0
- package/cli/commands/nextjs/dev.ts +17 -0
- package/cli/commands/nextjs/nextjs.ts +10 -0
- package/cli/commands/uds.ts +10 -0
- package/cli/commands/version.ts +11 -0
- package/cli/env.d.ts +15 -0
- package/cli/eslint.config.mjs +8 -0
- package/cli/tsconfig.json +10 -0
- package/cli/uds-cli +7 -0
- package/cli/utils/configWorker.ts +9 -0
- package/cli/utils/getCommandHelp.ts +65 -0
- package/cli/utils/setupConfigWorker.ts +81 -0
- package/cli/utils/sortKeys.ts +27 -0
- package/cli/utils/types.ts +13 -0
- package/dist/chunk-3I3D5S54.js +1 -0
- package/dist/chunk-74YHFBTD.js +1 -0
- package/dist/chunk-AWTLI4D3.js +1 -0
- package/dist/chunk-D4K3CXV6.js +0 -0
- package/dist/chunk-M346JMQS.js +0 -0
- package/dist/chunk-MBOOJIH7.js +1 -0
- package/dist/chunk-MFA2Y7DA.js +1 -0
- package/dist/chunk-P7GR6E3K.js +1 -0
- package/dist/chunk-PQBOZFJV.js +1 -0
- package/dist/chunk-WYDHNV42.js +1 -0
- package/dist/fixtures/index.cjs +1 -0
- package/dist/fixtures/index.d.cts +141 -0
- package/dist/fixtures/index.d.ts +141 -0
- package/dist/fixtures/index.js +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +62 -93
- package/dist/index.d.ts +62 -93
- package/dist/index.js +1 -1
- package/dist/index.native-3ww4C4UV.d.cts +15 -0
- package/dist/index.native-9kYJrUPa.d.ts +15 -0
- package/dist/index.native.cjs +1 -0
- package/dist/index.native.d.cts +1493 -0
- package/dist/index.native.d.ts +1493 -0
- package/dist/index.native.js +1 -0
- package/dist/tailwindPlugin.cjs +1 -1
- package/dist/tailwindPlugin.d.cts +2 -1
- package/dist/tailwindPlugin.d.ts +2 -1
- package/dist/tailwindPlugin.js +1 -1
- package/dist/tokens/index.cjs +1 -0
- package/dist/tokens/index.d.cts +39 -0
- package/dist/tokens/index.d.ts +39 -0
- package/dist/tokens/index.js +1 -0
- package/dist/tokens/index.native.cjs +1 -0
- package/dist/tokens/index.native.d.cts +3 -0
- package/dist/tokens/index.native.d.ts +3 -0
- package/dist/tokens/index.native.js +1 -0
- package/dist/tokens/parseTokens.cjs +1 -0
- package/dist/tokens/parseTokens.d.cts +85 -0
- package/dist/tokens/parseTokens.d.ts +85 -0
- package/dist/tokens/parseTokens.js +1 -0
- package/dist/tokens/parseTokens.native.cjs +1 -0
- package/dist/tokens/parseTokens.native.d.cts +416 -0
- package/dist/tokens/parseTokens.native.d.ts +416 -0
- package/dist/tokens/parseTokens.native.js +1 -0
- package/dist/types-J4DLS6Xj.d.cts +38 -0
- package/dist/types-J4DLS6Xj.d.ts +38 -0
- package/dist/types-hirL9Qk5.d.cts +510 -0
- package/dist/types-hirL9Qk5.d.ts +510 -0
- package/fonts/mobile.cjs +29 -0
- package/fonts/mobile.d.ts +3 -0
- package/fonts/yahoo-icons.ttf +0 -0
- package/fonts/yahoo-sans-beta-bold.otf +0 -0
- package/fonts/yahoo-sans-beta-medium.otf +0 -0
- package/fonts/yahoo-sans-beta-regular.otf +0 -0
- package/fonts/yahoo-sans-black.otf +0 -0
- package/fonts/yahoo-sans-bold.otf +0 -0
- package/fonts/yahoo-sans-condensed-black.otf +0 -0
- package/fonts/yahoo-sans-condensed-bold.otf +0 -0
- package/fonts/yahoo-sans-condensed-light.otf +0 -0
- package/fonts/yahoo-sans-condensed-medium.otf +0 -0
- package/fonts/yahoo-sans-condensed-regular.otf +0 -0
- package/fonts/yahoo-sans-extrabold.otf +0 -0
- package/fonts/yahoo-sans-extralight.otf +0 -0
- package/fonts/yahoo-sans-italic.otf +0 -0
- package/fonts/yahoo-sans-light.otf +0 -0
- package/fonts/yahoo-sans-medium.otf +0 -0
- package/fonts/yahoo-sans-regular.otf +0 -0
- package/fonts/yahoo-sans-semibold.otf +0 -0
- package/fonts/yahoo-serif-display-black.otf +0 -0
- package/fonts/yahoo-serif-display-bold.otf +0 -0
- package/fonts/yahoo-serif-display-extrabold.otf +0 -0
- package/fonts/yahoo-serif-display-light.otf +0 -0
- package/fonts/yahoo-serif-display-regular.otf +0 -0
- package/fonts/yahoo-serif-text-bold.otf +0 -0
- package/fonts/yahoo-serif-text-italic.otf +0 -0
- package/fonts/yahoo-serif-text-regular.otf +0 -0
- package/package.json +130 -35
- package/bin/uds +0 -0
@@ -0,0 +1,1493 @@
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
2
|
+
import { u as UniversalImageProps, j as UniversalAvatarProps, k as UniversalBoxProps, l as UniversalPressableProps, m as UniversalButtonProps, q as UniversalStackProps, n as UniversalTextProps, r as UniversalIconProps, s as UniversalIconButtonProps, X as ColorModeForApp, a as ColorsConfig, C as ColorMode, ao as ScaleModeForApp, an as ScaleModeConfig, S as ScaleMode, ae as Modes, U as UniversalTokensConfig, Q as BackgroundStyleProps, T as BorderStyleProps, a8 as LayoutStyleProps, $ as FlexStyleProps, au as SpacingStyleProps, aA as TextStyleProps, ag as OpacityStyleProps, ar as SizingStyleProps, a7 as IconSizeConfig, K as AvatarSizeConfig, at as SpacingConfig, aq as ShapeConfig, a0 as FontFamilyConfig, a2 as FontSizeConfig, f as FontWeightConfig, ac as LineHeightConfig, aC as TextTransformConfig, B as BorderWidthConfig, aI as ZIndexConfig, h as ElevationAlias, i as FontFamilyGlobalConfig, ay as StyleProps } from './types-hirL9Qk5.js';
|
3
|
+
export { A as AlwaysPalette, x as AlwaysPaletteAlias, y as Animation, z as AriaAttribute, D as AspectRatioAlias, G as AspectRatioConfig, J as AvatarSizeAlias, M as BackgroundColor, d as BackgroundPalette, N as BackgroundPaletteAlias, e as BackgroundWashPalette, R as BackgroundWashPaletteAlias, V as BorderWidthAlias, W as BoxShadowConfig, p as ButtonSize, o as ButtonVariant, c as CorePalette, Y as CorePaletteAlias, Z as DataAttribute, E as ElevationConfig, _ as ElevationPaletteAlias, a1 as FontFamilyGlobalAlias, a3 as FontWeightDescriptiveAlias, g as FontWeightNumericAlias, t as ForegroundColor, F as ForegroundPalette, a4 as ForegroundPaletteAlias, a5 as HighContrastMode, H as Hue, b as HueStep, I as IconName, a6 as IconSizeAlias, a9 as LetterSpacingAlias, aa as LineClampAlias, ab as LineColor, L as LinePalette, ad as LinePaletteAlias, af as OpacityAlias, O as Overflow, ah as Palette, ai as PaletteConfig, aj as PaletteType, P as PaletteValue, ak as PlatformMode, al as RegionMode, am as ScaleConfig, ap as ShapeAlias, as as SpacingAlias, av as SpectrumColor, aw as SpectrumConfig, ax as StateStyleProps, az as TextConfig, aB as TextTransformAlias, aD as TextVariant, aE as TransitionDelay, aF as TransitionDuration, aG as TransitionTiming, v as UniversalTextInputProps, aH as ZIndexAlias, w as alwaysPalette } from './types-hirL9Qk5.js';
|
4
|
+
import { ImageProps as ImageProps$1, ImageStyle } from 'expo-image';
|
5
|
+
import * as react from 'react';
|
6
|
+
import * as react_native from 'react-native';
|
7
|
+
import { ViewProps, View, PressableProps as PressableProps$1, StyleProp, ViewStyle, TextProps as TextProps$1, Text as Text$1, ScrollViewProps, ScrollView, TextStyle } from 'react-native';
|
8
|
+
import { S as SetState, a as CVA } from './types-J4DLS6Xj.js';
|
9
|
+
import { EdgeInsets } from 'react-native-safe-area-context';
|
10
|
+
export { c as DEFAULT_COLOR_MODE, D as DEFAULT_COLOR_MODE_FOR_APP, g as DEFAULT_HIGH_CONTRAST_MODE, h as DEFAULT_REGION_MODE, e as DEFAULT_SCALE_MODE, b as DEFAULT_SCALE_MODE_FOR_APP, d as defaultTokensConfig, f as fontFamilyGlobal, a as fontWeightMap } from './index.native-9kYJrUPa.js';
|
11
|
+
export { AVATAR_SIZE_PREFIX, DARK_COLOR_MODE_CLASSNAME, DEFAULT_COLOR_MODE_CLASSNAME, DEFAULT_SCALE_MODE_CLASSNAME, FONT_FAMILY_PREFIX, FONT_ICONS_CSS_VAR, FONT_SANS_BETA_CSS_VAR, FONT_SANS_CONDENSED_CSS_VAR, FONT_SANS_CSS_VAR, FONT_SERIF_DISPLAY_CSS_VAR, FONT_SERIF_TEXT_CSS_VAR, FONT_SIZE_PREFIX, FONT_WEIGHT_PREFIX, ICON_SIZE_PREFIX, LARGE_SCALE_MODE_CLASSNAME, LIGHT_COLOR_MODE_CLASSNAME, LINE_HEIGHT_PREFIX, MEDIUM_SCALE_MODE_CLASSNAME, SHAPE_PREFIX, SMALL_SCALE_MODE_CLASSNAME, SPACING_PREFIX, SPECTRUM_COLOR_PREFIX, TEXT_TRANSFORM_PREFIX, UDS_PREFIX, XLARGE_SCALE_MODE_CLASSNAME, XSMALL_SCALE_MODE_CLASSNAME, XXLARGE_SCALE_MODE_CLASSNAME, XXXLARGE_SCALE_MODE_CLASSNAME, entries, getColorModeClassName, getScaleModeClassName } from './tokens/index.js';
|
12
|
+
|
13
|
+
interface ImageProps extends Omit<ImageProps$1, 'alt' | 'source'>, UniversalImageProps {
|
14
|
+
}
|
15
|
+
/**
|
16
|
+
* An image element
|
17
|
+
*/
|
18
|
+
declare function Image({ width: imageWidth, height: imageHeight, src, alt, contentFit, elevation, backgroundColor, backgroundColorOnActive, backgroundColorOnHover, backgroundColorOnChecked, opacity, bordered, borderedTop, borderedBottom, borderedStart, borderedEnd, borderedHorizontal, borderedVertical, borderRadius, borderTopStartRadius, borderTopEndRadius, borderBottomStartRadius, borderBottomEndRadius, borderColor, borderColorOnActive, borderColorOnFocus, borderColorOnChecked, borderColorOnHover, borderStartColor, borderEndColor, borderTopColor, borderBottomColor, borderWidth, borderVerticalWidth, borderHorizontalWidth, borderStartWidth, borderEndWidth, borderTopWidth, borderBottomWidth, alignContent, alignItems, alignSelf, flex, flexDirection, flexGrow, flexShrink, flexWrap, justifyContent, flexBasis, display, zIndex, overflow, overflowX, overflowY, position, spacing, spacingHorizontal, spacingVertical, spacingBottom, spacingEnd, spacingStart, spacingTop, offset, offsetVertical, offsetHorizontal, offsetBottom, offsetEnd, offsetStart, offsetTop, columnGap, rowGap, minHeight, maxHeight, minWidth, maxWidth, ...props }: ImageProps): react_jsx_runtime.JSX.Element;
|
19
|
+
|
20
|
+
interface AvatarProps extends ImageProps, UniversalAvatarProps {
|
21
|
+
}
|
22
|
+
/**
|
23
|
+
* An image element with a fallback for representing the user.
|
24
|
+
* @example
|
25
|
+
```tsx
|
26
|
+
import { Avatar } from "@yahoo/uds"
|
27
|
+
|
28
|
+
export function AvatarDemo() {
|
29
|
+
return (
|
30
|
+
<Avatar
|
31
|
+
alt="Colm Tuite"
|
32
|
+
src="https://images.unsplash.com/photo-1492633423870-43d1cd2775eb?&w=128&h=128&dpr=2&q=80"
|
33
|
+
size="l"
|
34
|
+
shape="circle"
|
35
|
+
/>
|
36
|
+
)
|
37
|
+
}
|
38
|
+
```
|
39
|
+
*/
|
40
|
+
declare function Avatar({ size: avatarSize, shape: borderRadius, contentFit, ...props }: AvatarProps): react_jsx_runtime.JSX.Element;
|
41
|
+
|
42
|
+
interface BoxProps extends UniversalBoxProps, ViewProps {
|
43
|
+
}
|
44
|
+
/**
|
45
|
+
* A layout primitive that can be used to compose other components.
|
46
|
+
* @example
|
47
|
+
```tsx
|
48
|
+
import { Box } from "@yahoo/uds"
|
49
|
+
|
50
|
+
export function BoxDemo() {
|
51
|
+
return (
|
52
|
+
<Box
|
53
|
+
bordered
|
54
|
+
backgroundColor="primary"
|
55
|
+
borderRadius="md"
|
56
|
+
spacing='6'
|
57
|
+
>
|
58
|
+
Any kind of content can go here!
|
59
|
+
</Box>
|
60
|
+
)
|
61
|
+
}
|
62
|
+
```
|
63
|
+
*/
|
64
|
+
declare const Box: react.ForwardRefExoticComponent<BoxProps & react.RefAttributes<View>>;
|
65
|
+
|
66
|
+
type NativePressableProps = Omit<PressableProps$1, 'children' | 'style' | 'onPress'> & {
|
67
|
+
style?: StyleProp<ViewStyle>;
|
68
|
+
};
|
69
|
+
interface PressableProps extends UniversalPressableProps, NativePressableProps {
|
70
|
+
}
|
71
|
+
declare const Pressable: react.ForwardRefExoticComponent<PressableProps & react.RefAttributes<View>>;
|
72
|
+
|
73
|
+
interface ButtonProps extends PressableProps, UniversalButtonProps {
|
74
|
+
}
|
75
|
+
/**
|
76
|
+
* A button element that can be used to trigger an action.
|
77
|
+
* @example
|
78
|
+
```tsx
|
79
|
+
import { Button } from "@yahoo/uds"
|
80
|
+
|
81
|
+
export function ButtonDemo() {
|
82
|
+
return (
|
83
|
+
<HStack gap="2">
|
84
|
+
<Button variant="accent" onPress={console.log}>Save</Button>
|
85
|
+
<Button variant="accent-outline" onPress={console.log}>Cancel</Button>
|
86
|
+
</HStack>
|
87
|
+
)
|
88
|
+
}
|
89
|
+
```
|
90
|
+
*/
|
91
|
+
declare const Button: react.ForwardRefExoticComponent<ButtonProps & react.RefAttributes<View>>;
|
92
|
+
|
93
|
+
type HStackProps = UniversalStackProps & ViewProps;
|
94
|
+
declare const HStack: react.ForwardRefExoticComponent<UniversalStackProps & ViewProps & react.RefAttributes<View>>;
|
95
|
+
|
96
|
+
type TextPropsOriginal = Omit<TextProps$1, 'onLongPress' | 'onPress' | 'onPressIn' | 'onPressOut'>;
|
97
|
+
interface TextProps extends UniversalTextProps, TextPropsOriginal {
|
98
|
+
}
|
99
|
+
declare const Text: react.ForwardRefExoticComponent<TextProps & react.RefAttributes<Text$1>>;
|
100
|
+
|
101
|
+
interface IconProps extends UniversalIconProps, TextPropsOriginal {
|
102
|
+
}
|
103
|
+
declare const Icon: react.ForwardRefExoticComponent<IconProps & react.RefAttributes<Text$1>>;
|
104
|
+
|
105
|
+
interface IconButtonProps extends PressableProps, UniversalIconButtonProps {
|
106
|
+
}
|
107
|
+
/**
|
108
|
+
* An icon button element that can be used to trigger an action.
|
109
|
+
* @example
|
110
|
+
```tsx
|
111
|
+
import { IconButton } from "@yahoo/uds"
|
112
|
+
|
113
|
+
export function IconButtonDemo() {
|
114
|
+
return (
|
115
|
+
<IconButton variant="accent-outline" name="close" onPress={console.log} />
|
116
|
+
)
|
117
|
+
}
|
118
|
+
```
|
119
|
+
*/
|
120
|
+
declare const IconButton: react.ForwardRefExoticComponent<IconButtonProps & react.RefAttributes<View>>;
|
121
|
+
|
122
|
+
interface ScreenProps extends ScrollViewProps, React.PropsWithChildren {
|
123
|
+
}
|
124
|
+
declare const Screen: react.ForwardRefExoticComponent<ScreenProps & react.RefAttributes<ScrollView>>;
|
125
|
+
|
126
|
+
type VStackProps = UniversalStackProps & ViewProps;
|
127
|
+
declare const VStack: react.ForwardRefExoticComponent<UniversalStackProps & ViewProps & react.RefAttributes<View>>;
|
128
|
+
|
129
|
+
declare function useAppState(): "background" | "active" | "inactive" | "unknown" | "extension";
|
130
|
+
|
131
|
+
/** Update font scale on app change. RN does not offer a hook for tapping into this like useColorScheme so we have to manually handle based on app state. */
|
132
|
+
declare const useDeviceFontScale: () => number;
|
133
|
+
|
134
|
+
type ColorModeForAppProviderProps = React.PropsWithChildren<{
|
135
|
+
value?: ColorModeForApp;
|
136
|
+
}>;
|
137
|
+
declare const ColorModeForAppContext: react.Context<ColorModeForApp>;
|
138
|
+
declare const ColorModeForAppContextUpdater: react.Context<SetState<ColorModeForApp>>;
|
139
|
+
declare function useColorModeForApp(): ColorModeForApp;
|
140
|
+
declare function ColorModeForAppProvider({ children, value, }: ColorModeForAppProviderProps): react_jsx_runtime.JSX.Element;
|
141
|
+
|
142
|
+
type ColorModeForDeviceProviderProps = React.PropsWithChildren;
|
143
|
+
declare const ColorModeForDeviceContext: react.Context<keyof {
|
144
|
+
light: ColorsConfig;
|
145
|
+
dark: ColorsConfig;
|
146
|
+
}>;
|
147
|
+
declare function useColorModeForDevice(): keyof {
|
148
|
+
light: ColorsConfig;
|
149
|
+
dark: ColorsConfig;
|
150
|
+
};
|
151
|
+
declare function ColorModeForDeviceProvider({ children }: ColorModeForDeviceProviderProps): react_jsx_runtime.JSX.Element;
|
152
|
+
|
153
|
+
interface ColorModeProviderProps extends React.PropsWithChildren {
|
154
|
+
value?: ColorMode;
|
155
|
+
}
|
156
|
+
declare const ColorModeContext: react.Context<keyof {
|
157
|
+
light: ColorsConfig;
|
158
|
+
dark: ColorsConfig;
|
159
|
+
}>;
|
160
|
+
declare function useColorMode(): keyof {
|
161
|
+
light: ColorsConfig;
|
162
|
+
dark: ColorsConfig;
|
163
|
+
};
|
164
|
+
declare function ColorModeProvider({ value, children }: ColorModeProviderProps): react_jsx_runtime.JSX.Element;
|
165
|
+
|
166
|
+
interface ComputedTokensForMode {
|
167
|
+
tabBarHeight: number;
|
168
|
+
statusBarHeight: number;
|
169
|
+
safeAreaInsets: EdgeInsets;
|
170
|
+
}
|
171
|
+
interface ComputedTokensProviderProps extends React.PropsWithChildren {
|
172
|
+
}
|
173
|
+
declare const ComputedTokensContext: react.Context<ComputedTokensForMode>;
|
174
|
+
declare function useComputedTokens(): ComputedTokensForMode;
|
175
|
+
declare function ComputedTokensProvider({ children }: ComputedTokensProviderProps): react_jsx_runtime.JSX.Element;
|
176
|
+
|
177
|
+
declare const ScaleModeForAppContext: react.Context<ScaleModeForApp>;
|
178
|
+
declare const ScaleModeForAppUpdaterContext: react.Context<SetState<ScaleModeForApp>>;
|
179
|
+
interface ScaleModeForAppProviderProps extends React.PropsWithChildren {
|
180
|
+
value?: ScaleModeForApp;
|
181
|
+
}
|
182
|
+
declare function ScaleModeForAppProvider({ children, value, }: ScaleModeForAppProviderProps): react_jsx_runtime.JSX.Element;
|
183
|
+
|
184
|
+
type ScaleModeForDeviceProviderProps = React.PropsWithChildren;
|
185
|
+
declare const ScaleModeForDeviceContext: react.Context<keyof ScaleModeConfig>;
|
186
|
+
declare function useScaleModeForDevice(): keyof ScaleModeConfig;
|
187
|
+
declare function ScaleModeForDeviceProvider({ children }: ScaleModeForDeviceProviderProps): react_jsx_runtime.JSX.Element;
|
188
|
+
|
189
|
+
interface ScaleModeProviderProps extends React.PropsWithChildren {
|
190
|
+
value?: ScaleMode;
|
191
|
+
}
|
192
|
+
declare const ScaleModeContext: react.Context<keyof ScaleModeConfig>;
|
193
|
+
declare function useScaleMode(): keyof ScaleModeConfig;
|
194
|
+
declare function ScaleModeProvider({ value, children }: ScaleModeProviderProps): react_jsx_runtime.JSX.Element;
|
195
|
+
|
196
|
+
type ReactNativeStyle = StyleProp<ViewStyle | TextStyle | ImageStyle>;
|
197
|
+
declare function createStyler({ colorMode, scaleMode }: Modes, config: UniversalTokensConfig): {
|
198
|
+
cva: CVA<ReactNativeStyle>;
|
199
|
+
getStyles: <T extends ReactNativeStyle>({ style, ...props }: BackgroundStyleProps & BorderStyleProps & LayoutStyleProps & FlexStyleProps & SpacingStyleProps & TextStyleProps & OpacityStyleProps & SizingStyleProps & {
|
200
|
+
contentFit?: "none" | "cover" | "contain" | "fill" | "scale-down" | undefined;
|
201
|
+
} & {
|
202
|
+
iconSize?: keyof IconSizeConfig | undefined;
|
203
|
+
avatarSize?: keyof AvatarSizeConfig | undefined;
|
204
|
+
imageWidth?: number | undefined;
|
205
|
+
imageHeight?: number | undefined;
|
206
|
+
} & {
|
207
|
+
style?: T | undefined;
|
208
|
+
}) => ReactNativeStyle;
|
209
|
+
tokens: {
|
210
|
+
avatarSizes: AvatarSizeConfig;
|
211
|
+
iconSizes: IconSizeConfig;
|
212
|
+
spacing: SpacingConfig;
|
213
|
+
shapes: ShapeConfig;
|
214
|
+
fontFamily: FontFamilyConfig;
|
215
|
+
fontSize: FontSizeConfig;
|
216
|
+
fontWeight: FontWeightConfig;
|
217
|
+
lineHeight: LineHeightConfig;
|
218
|
+
textTransform: TextTransformConfig;
|
219
|
+
spectrum: {
|
220
|
+
purple: {
|
221
|
+
9: string;
|
222
|
+
0: string;
|
223
|
+
1: string;
|
224
|
+
2: string;
|
225
|
+
3: string;
|
226
|
+
4: string;
|
227
|
+
5: string;
|
228
|
+
6: string;
|
229
|
+
7: string;
|
230
|
+
8: string;
|
231
|
+
10: string;
|
232
|
+
11: string;
|
233
|
+
12: string;
|
234
|
+
13: string;
|
235
|
+
14: string;
|
236
|
+
15: string;
|
237
|
+
};
|
238
|
+
gray: {
|
239
|
+
9: string;
|
240
|
+
0: string;
|
241
|
+
1: string;
|
242
|
+
2: string;
|
243
|
+
3: string;
|
244
|
+
4: string;
|
245
|
+
5: string;
|
246
|
+
6: string;
|
247
|
+
7: string;
|
248
|
+
8: string;
|
249
|
+
10: string;
|
250
|
+
11: string;
|
251
|
+
12: string;
|
252
|
+
13: string;
|
253
|
+
14: string;
|
254
|
+
15: string;
|
255
|
+
};
|
256
|
+
indigo: {
|
257
|
+
9: string;
|
258
|
+
0: string;
|
259
|
+
1: string;
|
260
|
+
2: string;
|
261
|
+
3: string;
|
262
|
+
4: string;
|
263
|
+
5: string;
|
264
|
+
6: string;
|
265
|
+
7: string;
|
266
|
+
8: string;
|
267
|
+
10: string;
|
268
|
+
11: string;
|
269
|
+
12: string;
|
270
|
+
13: string;
|
271
|
+
14: string;
|
272
|
+
15: string;
|
273
|
+
};
|
274
|
+
blue: {
|
275
|
+
9: string;
|
276
|
+
0: string;
|
277
|
+
1: string;
|
278
|
+
2: string;
|
279
|
+
3: string;
|
280
|
+
4: string;
|
281
|
+
5: string;
|
282
|
+
6: string;
|
283
|
+
7: string;
|
284
|
+
8: string;
|
285
|
+
10: string;
|
286
|
+
11: string;
|
287
|
+
12: string;
|
288
|
+
13: string;
|
289
|
+
14: string;
|
290
|
+
15: string;
|
291
|
+
};
|
292
|
+
cyan: {
|
293
|
+
9: string;
|
294
|
+
0: string;
|
295
|
+
1: string;
|
296
|
+
2: string;
|
297
|
+
3: string;
|
298
|
+
4: string;
|
299
|
+
5: string;
|
300
|
+
6: string;
|
301
|
+
7: string;
|
302
|
+
8: string;
|
303
|
+
10: string;
|
304
|
+
11: string;
|
305
|
+
12: string;
|
306
|
+
13: string;
|
307
|
+
14: string;
|
308
|
+
15: string;
|
309
|
+
};
|
310
|
+
teal: {
|
311
|
+
9: string;
|
312
|
+
0: string;
|
313
|
+
1: string;
|
314
|
+
2: string;
|
315
|
+
3: string;
|
316
|
+
4: string;
|
317
|
+
5: string;
|
318
|
+
6: string;
|
319
|
+
7: string;
|
320
|
+
8: string;
|
321
|
+
10: string;
|
322
|
+
11: string;
|
323
|
+
12: string;
|
324
|
+
13: string;
|
325
|
+
14: string;
|
326
|
+
15: string;
|
327
|
+
};
|
328
|
+
mint: {
|
329
|
+
9: string;
|
330
|
+
0: string;
|
331
|
+
1: string;
|
332
|
+
2: string;
|
333
|
+
3: string;
|
334
|
+
4: string;
|
335
|
+
5: string;
|
336
|
+
6: string;
|
337
|
+
7: string;
|
338
|
+
8: string;
|
339
|
+
10: string;
|
340
|
+
11: string;
|
341
|
+
12: string;
|
342
|
+
13: string;
|
343
|
+
14: string;
|
344
|
+
15: string;
|
345
|
+
};
|
346
|
+
green: {
|
347
|
+
9: string;
|
348
|
+
0: string;
|
349
|
+
1: string;
|
350
|
+
2: string;
|
351
|
+
3: string;
|
352
|
+
4: string;
|
353
|
+
5: string;
|
354
|
+
6: string;
|
355
|
+
7: string;
|
356
|
+
8: string;
|
357
|
+
10: string;
|
358
|
+
11: string;
|
359
|
+
12: string;
|
360
|
+
13: string;
|
361
|
+
14: string;
|
362
|
+
15: string;
|
363
|
+
};
|
364
|
+
lime: {
|
365
|
+
9: string;
|
366
|
+
0: string;
|
367
|
+
1: string;
|
368
|
+
2: string;
|
369
|
+
3: string;
|
370
|
+
4: string;
|
371
|
+
5: string;
|
372
|
+
6: string;
|
373
|
+
7: string;
|
374
|
+
8: string;
|
375
|
+
10: string;
|
376
|
+
11: string;
|
377
|
+
12: string;
|
378
|
+
13: string;
|
379
|
+
14: string;
|
380
|
+
15: string;
|
381
|
+
};
|
382
|
+
citron: {
|
383
|
+
9: string;
|
384
|
+
0: string;
|
385
|
+
1: string;
|
386
|
+
2: string;
|
387
|
+
3: string;
|
388
|
+
4: string;
|
389
|
+
5: string;
|
390
|
+
6: string;
|
391
|
+
7: string;
|
392
|
+
8: string;
|
393
|
+
10: string;
|
394
|
+
11: string;
|
395
|
+
12: string;
|
396
|
+
13: string;
|
397
|
+
14: string;
|
398
|
+
15: string;
|
399
|
+
};
|
400
|
+
yellow: {
|
401
|
+
9: string;
|
402
|
+
0: string;
|
403
|
+
1: string;
|
404
|
+
2: string;
|
405
|
+
3: string;
|
406
|
+
4: string;
|
407
|
+
5: string;
|
408
|
+
6: string;
|
409
|
+
7: string;
|
410
|
+
8: string;
|
411
|
+
10: string;
|
412
|
+
11: string;
|
413
|
+
12: string;
|
414
|
+
13: string;
|
415
|
+
14: string;
|
416
|
+
15: string;
|
417
|
+
};
|
418
|
+
brown: {
|
419
|
+
9: string;
|
420
|
+
0: string;
|
421
|
+
1: string;
|
422
|
+
2: string;
|
423
|
+
3: string;
|
424
|
+
4: string;
|
425
|
+
5: string;
|
426
|
+
6: string;
|
427
|
+
7: string;
|
428
|
+
8: string;
|
429
|
+
10: string;
|
430
|
+
11: string;
|
431
|
+
12: string;
|
432
|
+
13: string;
|
433
|
+
14: string;
|
434
|
+
15: string;
|
435
|
+
};
|
436
|
+
nude: {
|
437
|
+
9: string;
|
438
|
+
0: string;
|
439
|
+
1: string;
|
440
|
+
2: string;
|
441
|
+
3: string;
|
442
|
+
4: string;
|
443
|
+
5: string;
|
444
|
+
6: string;
|
445
|
+
7: string;
|
446
|
+
8: string;
|
447
|
+
10: string;
|
448
|
+
11: string;
|
449
|
+
12: string;
|
450
|
+
13: string;
|
451
|
+
14: string;
|
452
|
+
15: string;
|
453
|
+
};
|
454
|
+
orange: {
|
455
|
+
9: string;
|
456
|
+
0: string;
|
457
|
+
1: string;
|
458
|
+
2: string;
|
459
|
+
3: string;
|
460
|
+
4: string;
|
461
|
+
5: string;
|
462
|
+
6: string;
|
463
|
+
7: string;
|
464
|
+
8: string;
|
465
|
+
10: string;
|
466
|
+
11: string;
|
467
|
+
12: string;
|
468
|
+
13: string;
|
469
|
+
14: string;
|
470
|
+
15: string;
|
471
|
+
};
|
472
|
+
sunset: {
|
473
|
+
9: string;
|
474
|
+
0: string;
|
475
|
+
1: string;
|
476
|
+
2: string;
|
477
|
+
3: string;
|
478
|
+
4: string;
|
479
|
+
5: string;
|
480
|
+
6: string;
|
481
|
+
7: string;
|
482
|
+
8: string;
|
483
|
+
10: string;
|
484
|
+
11: string;
|
485
|
+
12: string;
|
486
|
+
13: string;
|
487
|
+
14: string;
|
488
|
+
15: string;
|
489
|
+
};
|
490
|
+
red: {
|
491
|
+
9: string;
|
492
|
+
0: string;
|
493
|
+
1: string;
|
494
|
+
2: string;
|
495
|
+
3: string;
|
496
|
+
4: string;
|
497
|
+
5: string;
|
498
|
+
6: string;
|
499
|
+
7: string;
|
500
|
+
8: string;
|
501
|
+
10: string;
|
502
|
+
11: string;
|
503
|
+
12: string;
|
504
|
+
13: string;
|
505
|
+
14: string;
|
506
|
+
15: string;
|
507
|
+
};
|
508
|
+
rose: {
|
509
|
+
9: string;
|
510
|
+
0: string;
|
511
|
+
1: string;
|
512
|
+
2: string;
|
513
|
+
3: string;
|
514
|
+
4: string;
|
515
|
+
5: string;
|
516
|
+
6: string;
|
517
|
+
7: string;
|
518
|
+
8: string;
|
519
|
+
10: string;
|
520
|
+
11: string;
|
521
|
+
12: string;
|
522
|
+
13: string;
|
523
|
+
14: string;
|
524
|
+
15: string;
|
525
|
+
};
|
526
|
+
pink: {
|
527
|
+
9: string;
|
528
|
+
0: string;
|
529
|
+
1: string;
|
530
|
+
2: string;
|
531
|
+
3: string;
|
532
|
+
4: string;
|
533
|
+
5: string;
|
534
|
+
6: string;
|
535
|
+
7: string;
|
536
|
+
8: string;
|
537
|
+
10: string;
|
538
|
+
11: string;
|
539
|
+
12: string;
|
540
|
+
13: string;
|
541
|
+
14: string;
|
542
|
+
15: string;
|
543
|
+
};
|
544
|
+
magenta: {
|
545
|
+
9: string;
|
546
|
+
0: string;
|
547
|
+
1: string;
|
548
|
+
2: string;
|
549
|
+
3: string;
|
550
|
+
4: string;
|
551
|
+
5: string;
|
552
|
+
6: string;
|
553
|
+
7: string;
|
554
|
+
8: string;
|
555
|
+
10: string;
|
556
|
+
11: string;
|
557
|
+
12: string;
|
558
|
+
13: string;
|
559
|
+
14: string;
|
560
|
+
15: string;
|
561
|
+
};
|
562
|
+
carbon: {
|
563
|
+
9: string;
|
564
|
+
0: string;
|
565
|
+
1: string;
|
566
|
+
2: string;
|
567
|
+
3: string;
|
568
|
+
4: string;
|
569
|
+
5: string;
|
570
|
+
6: string;
|
571
|
+
7: string;
|
572
|
+
8: string;
|
573
|
+
10: string;
|
574
|
+
11: string;
|
575
|
+
12: string;
|
576
|
+
13: string;
|
577
|
+
14: string;
|
578
|
+
15: string;
|
579
|
+
};
|
580
|
+
};
|
581
|
+
palette: {
|
582
|
+
core: {
|
583
|
+
accent: string;
|
584
|
+
alert: string;
|
585
|
+
brand: string;
|
586
|
+
positive: string;
|
587
|
+
warning: string;
|
588
|
+
};
|
589
|
+
background: {
|
590
|
+
primary: string;
|
591
|
+
secondary: string;
|
592
|
+
};
|
593
|
+
backgroundWash: {
|
594
|
+
'accent-wash': string;
|
595
|
+
'alert-wash': string;
|
596
|
+
'brand-wash': string;
|
597
|
+
'positive-wash': string;
|
598
|
+
'warning-wash': string;
|
599
|
+
};
|
600
|
+
elevation: {
|
601
|
+
'elevation-1': string;
|
602
|
+
'elevation-2': string;
|
603
|
+
'elevation-3': string;
|
604
|
+
'elevation-3-inverse': string;
|
605
|
+
overlay: string;
|
606
|
+
};
|
607
|
+
foreground: {
|
608
|
+
primary: string;
|
609
|
+
secondary: string;
|
610
|
+
tertiary: string;
|
611
|
+
muted: string;
|
612
|
+
'on-color': string;
|
613
|
+
};
|
614
|
+
line: {
|
615
|
+
primary: string;
|
616
|
+
secondary: string;
|
617
|
+
tertiary: string;
|
618
|
+
muted: string;
|
619
|
+
};
|
620
|
+
};
|
621
|
+
borderWidth: BorderWidthConfig;
|
622
|
+
zIndex: ZIndexConfig;
|
623
|
+
aspectRatio: Record<string, string>;
|
624
|
+
elevation: Record<ElevationAlias, react_native.ShadowStyleIOS>;
|
625
|
+
fontFamilyGlobal: FontFamilyGlobalConfig;
|
626
|
+
};
|
627
|
+
};
|
628
|
+
declare const DEFAULT_STYLER: {
|
629
|
+
cva: CVA<ReactNativeStyle>;
|
630
|
+
getStyles: <T extends ReactNativeStyle>({ style, ...props }: BackgroundStyleProps & BorderStyleProps & LayoutStyleProps & FlexStyleProps & SpacingStyleProps & TextStyleProps & OpacityStyleProps & SizingStyleProps & {
|
631
|
+
contentFit?: "none" | "cover" | "contain" | "fill" | "scale-down" | undefined;
|
632
|
+
} & {
|
633
|
+
iconSize?: keyof IconSizeConfig | undefined;
|
634
|
+
avatarSize?: keyof AvatarSizeConfig | undefined;
|
635
|
+
imageWidth?: number | undefined;
|
636
|
+
imageHeight?: number | undefined;
|
637
|
+
} & {
|
638
|
+
style?: T | undefined;
|
639
|
+
}) => ReactNativeStyle;
|
640
|
+
tokens: {
|
641
|
+
avatarSizes: AvatarSizeConfig;
|
642
|
+
iconSizes: IconSizeConfig;
|
643
|
+
spacing: SpacingConfig;
|
644
|
+
shapes: ShapeConfig;
|
645
|
+
fontFamily: FontFamilyConfig;
|
646
|
+
fontSize: FontSizeConfig;
|
647
|
+
fontWeight: FontWeightConfig;
|
648
|
+
lineHeight: LineHeightConfig;
|
649
|
+
textTransform: TextTransformConfig;
|
650
|
+
spectrum: {
|
651
|
+
purple: {
|
652
|
+
9: string;
|
653
|
+
0: string;
|
654
|
+
1: string;
|
655
|
+
2: string;
|
656
|
+
3: string;
|
657
|
+
4: string;
|
658
|
+
5: string;
|
659
|
+
6: string;
|
660
|
+
7: string;
|
661
|
+
8: string;
|
662
|
+
10: string;
|
663
|
+
11: string;
|
664
|
+
12: string;
|
665
|
+
13: string;
|
666
|
+
14: string;
|
667
|
+
15: string;
|
668
|
+
};
|
669
|
+
gray: {
|
670
|
+
9: string;
|
671
|
+
0: string;
|
672
|
+
1: string;
|
673
|
+
2: string;
|
674
|
+
3: string;
|
675
|
+
4: string;
|
676
|
+
5: string;
|
677
|
+
6: string;
|
678
|
+
7: string;
|
679
|
+
8: string;
|
680
|
+
10: string;
|
681
|
+
11: string;
|
682
|
+
12: string;
|
683
|
+
13: string;
|
684
|
+
14: string;
|
685
|
+
15: string;
|
686
|
+
};
|
687
|
+
indigo: {
|
688
|
+
9: string;
|
689
|
+
0: string;
|
690
|
+
1: string;
|
691
|
+
2: string;
|
692
|
+
3: string;
|
693
|
+
4: string;
|
694
|
+
5: string;
|
695
|
+
6: string;
|
696
|
+
7: string;
|
697
|
+
8: string;
|
698
|
+
10: string;
|
699
|
+
11: string;
|
700
|
+
12: string;
|
701
|
+
13: string;
|
702
|
+
14: string;
|
703
|
+
15: string;
|
704
|
+
};
|
705
|
+
blue: {
|
706
|
+
9: string;
|
707
|
+
0: string;
|
708
|
+
1: string;
|
709
|
+
2: string;
|
710
|
+
3: string;
|
711
|
+
4: string;
|
712
|
+
5: string;
|
713
|
+
6: string;
|
714
|
+
7: string;
|
715
|
+
8: string;
|
716
|
+
10: string;
|
717
|
+
11: string;
|
718
|
+
12: string;
|
719
|
+
13: string;
|
720
|
+
14: string;
|
721
|
+
15: string;
|
722
|
+
};
|
723
|
+
cyan: {
|
724
|
+
9: string;
|
725
|
+
0: string;
|
726
|
+
1: string;
|
727
|
+
2: string;
|
728
|
+
3: string;
|
729
|
+
4: string;
|
730
|
+
5: string;
|
731
|
+
6: string;
|
732
|
+
7: string;
|
733
|
+
8: string;
|
734
|
+
10: string;
|
735
|
+
11: string;
|
736
|
+
12: string;
|
737
|
+
13: string;
|
738
|
+
14: string;
|
739
|
+
15: string;
|
740
|
+
};
|
741
|
+
teal: {
|
742
|
+
9: string;
|
743
|
+
0: string;
|
744
|
+
1: string;
|
745
|
+
2: string;
|
746
|
+
3: string;
|
747
|
+
4: string;
|
748
|
+
5: string;
|
749
|
+
6: string;
|
750
|
+
7: string;
|
751
|
+
8: string;
|
752
|
+
10: string;
|
753
|
+
11: string;
|
754
|
+
12: string;
|
755
|
+
13: string;
|
756
|
+
14: string;
|
757
|
+
15: string;
|
758
|
+
};
|
759
|
+
mint: {
|
760
|
+
9: string;
|
761
|
+
0: string;
|
762
|
+
1: string;
|
763
|
+
2: string;
|
764
|
+
3: string;
|
765
|
+
4: string;
|
766
|
+
5: string;
|
767
|
+
6: string;
|
768
|
+
7: string;
|
769
|
+
8: string;
|
770
|
+
10: string;
|
771
|
+
11: string;
|
772
|
+
12: string;
|
773
|
+
13: string;
|
774
|
+
14: string;
|
775
|
+
15: string;
|
776
|
+
};
|
777
|
+
green: {
|
778
|
+
9: string;
|
779
|
+
0: string;
|
780
|
+
1: string;
|
781
|
+
2: string;
|
782
|
+
3: string;
|
783
|
+
4: string;
|
784
|
+
5: string;
|
785
|
+
6: string;
|
786
|
+
7: string;
|
787
|
+
8: string;
|
788
|
+
10: string;
|
789
|
+
11: string;
|
790
|
+
12: string;
|
791
|
+
13: string;
|
792
|
+
14: string;
|
793
|
+
15: string;
|
794
|
+
};
|
795
|
+
lime: {
|
796
|
+
9: string;
|
797
|
+
0: string;
|
798
|
+
1: string;
|
799
|
+
2: string;
|
800
|
+
3: string;
|
801
|
+
4: string;
|
802
|
+
5: string;
|
803
|
+
6: string;
|
804
|
+
7: string;
|
805
|
+
8: string;
|
806
|
+
10: string;
|
807
|
+
11: string;
|
808
|
+
12: string;
|
809
|
+
13: string;
|
810
|
+
14: string;
|
811
|
+
15: string;
|
812
|
+
};
|
813
|
+
citron: {
|
814
|
+
9: string;
|
815
|
+
0: string;
|
816
|
+
1: string;
|
817
|
+
2: string;
|
818
|
+
3: string;
|
819
|
+
4: string;
|
820
|
+
5: string;
|
821
|
+
6: string;
|
822
|
+
7: string;
|
823
|
+
8: string;
|
824
|
+
10: string;
|
825
|
+
11: string;
|
826
|
+
12: string;
|
827
|
+
13: string;
|
828
|
+
14: string;
|
829
|
+
15: string;
|
830
|
+
};
|
831
|
+
yellow: {
|
832
|
+
9: string;
|
833
|
+
0: string;
|
834
|
+
1: string;
|
835
|
+
2: string;
|
836
|
+
3: string;
|
837
|
+
4: string;
|
838
|
+
5: string;
|
839
|
+
6: string;
|
840
|
+
7: string;
|
841
|
+
8: string;
|
842
|
+
10: string;
|
843
|
+
11: string;
|
844
|
+
12: string;
|
845
|
+
13: string;
|
846
|
+
14: string;
|
847
|
+
15: string;
|
848
|
+
};
|
849
|
+
brown: {
|
850
|
+
9: string;
|
851
|
+
0: string;
|
852
|
+
1: string;
|
853
|
+
2: string;
|
854
|
+
3: string;
|
855
|
+
4: string;
|
856
|
+
5: string;
|
857
|
+
6: string;
|
858
|
+
7: string;
|
859
|
+
8: string;
|
860
|
+
10: string;
|
861
|
+
11: string;
|
862
|
+
12: string;
|
863
|
+
13: string;
|
864
|
+
14: string;
|
865
|
+
15: string;
|
866
|
+
};
|
867
|
+
nude: {
|
868
|
+
9: string;
|
869
|
+
0: string;
|
870
|
+
1: string;
|
871
|
+
2: string;
|
872
|
+
3: string;
|
873
|
+
4: string;
|
874
|
+
5: string;
|
875
|
+
6: string;
|
876
|
+
7: string;
|
877
|
+
8: string;
|
878
|
+
10: string;
|
879
|
+
11: string;
|
880
|
+
12: string;
|
881
|
+
13: string;
|
882
|
+
14: string;
|
883
|
+
15: string;
|
884
|
+
};
|
885
|
+
orange: {
|
886
|
+
9: string;
|
887
|
+
0: string;
|
888
|
+
1: string;
|
889
|
+
2: string;
|
890
|
+
3: string;
|
891
|
+
4: string;
|
892
|
+
5: string;
|
893
|
+
6: string;
|
894
|
+
7: string;
|
895
|
+
8: string;
|
896
|
+
10: string;
|
897
|
+
11: string;
|
898
|
+
12: string;
|
899
|
+
13: string;
|
900
|
+
14: string;
|
901
|
+
15: string;
|
902
|
+
};
|
903
|
+
sunset: {
|
904
|
+
9: string;
|
905
|
+
0: string;
|
906
|
+
1: string;
|
907
|
+
2: string;
|
908
|
+
3: string;
|
909
|
+
4: string;
|
910
|
+
5: string;
|
911
|
+
6: string;
|
912
|
+
7: string;
|
913
|
+
8: string;
|
914
|
+
10: string;
|
915
|
+
11: string;
|
916
|
+
12: string;
|
917
|
+
13: string;
|
918
|
+
14: string;
|
919
|
+
15: string;
|
920
|
+
};
|
921
|
+
red: {
|
922
|
+
9: string;
|
923
|
+
0: string;
|
924
|
+
1: string;
|
925
|
+
2: string;
|
926
|
+
3: string;
|
927
|
+
4: string;
|
928
|
+
5: string;
|
929
|
+
6: string;
|
930
|
+
7: string;
|
931
|
+
8: string;
|
932
|
+
10: string;
|
933
|
+
11: string;
|
934
|
+
12: string;
|
935
|
+
13: string;
|
936
|
+
14: string;
|
937
|
+
15: string;
|
938
|
+
};
|
939
|
+
rose: {
|
940
|
+
9: string;
|
941
|
+
0: string;
|
942
|
+
1: string;
|
943
|
+
2: string;
|
944
|
+
3: string;
|
945
|
+
4: string;
|
946
|
+
5: string;
|
947
|
+
6: string;
|
948
|
+
7: string;
|
949
|
+
8: string;
|
950
|
+
10: string;
|
951
|
+
11: string;
|
952
|
+
12: string;
|
953
|
+
13: string;
|
954
|
+
14: string;
|
955
|
+
15: string;
|
956
|
+
};
|
957
|
+
pink: {
|
958
|
+
9: string;
|
959
|
+
0: string;
|
960
|
+
1: string;
|
961
|
+
2: string;
|
962
|
+
3: string;
|
963
|
+
4: string;
|
964
|
+
5: string;
|
965
|
+
6: string;
|
966
|
+
7: string;
|
967
|
+
8: string;
|
968
|
+
10: string;
|
969
|
+
11: string;
|
970
|
+
12: string;
|
971
|
+
13: string;
|
972
|
+
14: string;
|
973
|
+
15: string;
|
974
|
+
};
|
975
|
+
magenta: {
|
976
|
+
9: string;
|
977
|
+
0: string;
|
978
|
+
1: string;
|
979
|
+
2: string;
|
980
|
+
3: string;
|
981
|
+
4: string;
|
982
|
+
5: string;
|
983
|
+
6: string;
|
984
|
+
7: string;
|
985
|
+
8: string;
|
986
|
+
10: string;
|
987
|
+
11: string;
|
988
|
+
12: string;
|
989
|
+
13: string;
|
990
|
+
14: string;
|
991
|
+
15: string;
|
992
|
+
};
|
993
|
+
carbon: {
|
994
|
+
9: string;
|
995
|
+
0: string;
|
996
|
+
1: string;
|
997
|
+
2: string;
|
998
|
+
3: string;
|
999
|
+
4: string;
|
1000
|
+
5: string;
|
1001
|
+
6: string;
|
1002
|
+
7: string;
|
1003
|
+
8: string;
|
1004
|
+
10: string;
|
1005
|
+
11: string;
|
1006
|
+
12: string;
|
1007
|
+
13: string;
|
1008
|
+
14: string;
|
1009
|
+
15: string;
|
1010
|
+
};
|
1011
|
+
};
|
1012
|
+
palette: {
|
1013
|
+
core: {
|
1014
|
+
accent: string;
|
1015
|
+
alert: string;
|
1016
|
+
brand: string;
|
1017
|
+
positive: string;
|
1018
|
+
warning: string;
|
1019
|
+
};
|
1020
|
+
background: {
|
1021
|
+
primary: string;
|
1022
|
+
secondary: string;
|
1023
|
+
};
|
1024
|
+
backgroundWash: {
|
1025
|
+
'accent-wash': string;
|
1026
|
+
'alert-wash': string;
|
1027
|
+
'brand-wash': string;
|
1028
|
+
'positive-wash': string;
|
1029
|
+
'warning-wash': string;
|
1030
|
+
};
|
1031
|
+
elevation: {
|
1032
|
+
'elevation-1': string;
|
1033
|
+
'elevation-2': string;
|
1034
|
+
'elevation-3': string;
|
1035
|
+
'elevation-3-inverse': string;
|
1036
|
+
overlay: string;
|
1037
|
+
};
|
1038
|
+
foreground: {
|
1039
|
+
primary: string;
|
1040
|
+
secondary: string;
|
1041
|
+
tertiary: string;
|
1042
|
+
muted: string;
|
1043
|
+
'on-color': string;
|
1044
|
+
};
|
1045
|
+
line: {
|
1046
|
+
primary: string;
|
1047
|
+
secondary: string;
|
1048
|
+
tertiary: string;
|
1049
|
+
muted: string;
|
1050
|
+
};
|
1051
|
+
};
|
1052
|
+
borderWidth: BorderWidthConfig;
|
1053
|
+
zIndex: ZIndexConfig;
|
1054
|
+
aspectRatio: Record<string, string>;
|
1055
|
+
elevation: Record<ElevationAlias, react_native.ShadowStyleIOS>;
|
1056
|
+
fontFamilyGlobal: FontFamilyGlobalConfig;
|
1057
|
+
};
|
1058
|
+
};
|
1059
|
+
|
1060
|
+
interface StyleProviderProps extends React.PropsWithChildren {
|
1061
|
+
value?: UniversalTokensConfig;
|
1062
|
+
}
|
1063
|
+
declare const StyleProvider: react.NamedExoticComponent<StyleProviderProps>;
|
1064
|
+
declare function useStyles<T extends ReactNativeStyle>(props: StyleProps & {
|
1065
|
+
style?: T;
|
1066
|
+
}): T;
|
1067
|
+
declare function useTokens(): {
|
1068
|
+
avatarSizes: AvatarSizeConfig;
|
1069
|
+
iconSizes: IconSizeConfig;
|
1070
|
+
spacing: SpacingConfig;
|
1071
|
+
shapes: ShapeConfig;
|
1072
|
+
fontFamily: FontFamilyConfig;
|
1073
|
+
fontSize: FontSizeConfig;
|
1074
|
+
fontWeight: FontWeightConfig;
|
1075
|
+
lineHeight: LineHeightConfig;
|
1076
|
+
textTransform: TextTransformConfig;
|
1077
|
+
spectrum: {
|
1078
|
+
purple: {
|
1079
|
+
9: string;
|
1080
|
+
0: string;
|
1081
|
+
1: string;
|
1082
|
+
2: string;
|
1083
|
+
3: string;
|
1084
|
+
4: string;
|
1085
|
+
5: string;
|
1086
|
+
6: string;
|
1087
|
+
7: string;
|
1088
|
+
8: string;
|
1089
|
+
10: string;
|
1090
|
+
11: string;
|
1091
|
+
12: string;
|
1092
|
+
13: string;
|
1093
|
+
14: string;
|
1094
|
+
15: string;
|
1095
|
+
};
|
1096
|
+
gray: {
|
1097
|
+
9: string;
|
1098
|
+
0: string;
|
1099
|
+
1: string;
|
1100
|
+
2: string;
|
1101
|
+
3: string;
|
1102
|
+
4: string;
|
1103
|
+
5: string;
|
1104
|
+
6: string;
|
1105
|
+
7: string;
|
1106
|
+
8: string;
|
1107
|
+
10: string;
|
1108
|
+
11: string;
|
1109
|
+
12: string;
|
1110
|
+
13: string;
|
1111
|
+
14: string;
|
1112
|
+
15: string;
|
1113
|
+
};
|
1114
|
+
indigo: {
|
1115
|
+
9: string;
|
1116
|
+
0: string;
|
1117
|
+
1: string;
|
1118
|
+
2: string;
|
1119
|
+
3: string;
|
1120
|
+
4: string;
|
1121
|
+
5: string;
|
1122
|
+
6: string;
|
1123
|
+
7: string;
|
1124
|
+
8: string;
|
1125
|
+
10: string;
|
1126
|
+
11: string;
|
1127
|
+
12: string;
|
1128
|
+
13: string;
|
1129
|
+
14: string;
|
1130
|
+
15: string;
|
1131
|
+
};
|
1132
|
+
blue: {
|
1133
|
+
9: string;
|
1134
|
+
0: string;
|
1135
|
+
1: string;
|
1136
|
+
2: string;
|
1137
|
+
3: string;
|
1138
|
+
4: string;
|
1139
|
+
5: string;
|
1140
|
+
6: string;
|
1141
|
+
7: string;
|
1142
|
+
8: string;
|
1143
|
+
10: string;
|
1144
|
+
11: string;
|
1145
|
+
12: string;
|
1146
|
+
13: string;
|
1147
|
+
14: string;
|
1148
|
+
15: string;
|
1149
|
+
};
|
1150
|
+
cyan: {
|
1151
|
+
9: string;
|
1152
|
+
0: string;
|
1153
|
+
1: string;
|
1154
|
+
2: string;
|
1155
|
+
3: string;
|
1156
|
+
4: string;
|
1157
|
+
5: string;
|
1158
|
+
6: string;
|
1159
|
+
7: string;
|
1160
|
+
8: string;
|
1161
|
+
10: string;
|
1162
|
+
11: string;
|
1163
|
+
12: string;
|
1164
|
+
13: string;
|
1165
|
+
14: string;
|
1166
|
+
15: string;
|
1167
|
+
};
|
1168
|
+
teal: {
|
1169
|
+
9: string;
|
1170
|
+
0: string;
|
1171
|
+
1: string;
|
1172
|
+
2: string;
|
1173
|
+
3: string;
|
1174
|
+
4: string;
|
1175
|
+
5: string;
|
1176
|
+
6: string;
|
1177
|
+
7: string;
|
1178
|
+
8: string;
|
1179
|
+
10: string;
|
1180
|
+
11: string;
|
1181
|
+
12: string;
|
1182
|
+
13: string;
|
1183
|
+
14: string;
|
1184
|
+
15: string;
|
1185
|
+
};
|
1186
|
+
mint: {
|
1187
|
+
9: string;
|
1188
|
+
0: string;
|
1189
|
+
1: string;
|
1190
|
+
2: string;
|
1191
|
+
3: string;
|
1192
|
+
4: string;
|
1193
|
+
5: string;
|
1194
|
+
6: string;
|
1195
|
+
7: string;
|
1196
|
+
8: string;
|
1197
|
+
10: string;
|
1198
|
+
11: string;
|
1199
|
+
12: string;
|
1200
|
+
13: string;
|
1201
|
+
14: string;
|
1202
|
+
15: string;
|
1203
|
+
};
|
1204
|
+
green: {
|
1205
|
+
9: string;
|
1206
|
+
0: string;
|
1207
|
+
1: string;
|
1208
|
+
2: string;
|
1209
|
+
3: string;
|
1210
|
+
4: string;
|
1211
|
+
5: string;
|
1212
|
+
6: string;
|
1213
|
+
7: string;
|
1214
|
+
8: string;
|
1215
|
+
10: string;
|
1216
|
+
11: string;
|
1217
|
+
12: string;
|
1218
|
+
13: string;
|
1219
|
+
14: string;
|
1220
|
+
15: string;
|
1221
|
+
};
|
1222
|
+
lime: {
|
1223
|
+
9: string;
|
1224
|
+
0: string;
|
1225
|
+
1: string;
|
1226
|
+
2: string;
|
1227
|
+
3: string;
|
1228
|
+
4: string;
|
1229
|
+
5: string;
|
1230
|
+
6: string;
|
1231
|
+
7: string;
|
1232
|
+
8: string;
|
1233
|
+
10: string;
|
1234
|
+
11: string;
|
1235
|
+
12: string;
|
1236
|
+
13: string;
|
1237
|
+
14: string;
|
1238
|
+
15: string;
|
1239
|
+
};
|
1240
|
+
citron: {
|
1241
|
+
9: string;
|
1242
|
+
0: string;
|
1243
|
+
1: string;
|
1244
|
+
2: string;
|
1245
|
+
3: string;
|
1246
|
+
4: string;
|
1247
|
+
5: string;
|
1248
|
+
6: string;
|
1249
|
+
7: string;
|
1250
|
+
8: string;
|
1251
|
+
10: string;
|
1252
|
+
11: string;
|
1253
|
+
12: string;
|
1254
|
+
13: string;
|
1255
|
+
14: string;
|
1256
|
+
15: string;
|
1257
|
+
};
|
1258
|
+
yellow: {
|
1259
|
+
9: string;
|
1260
|
+
0: string;
|
1261
|
+
1: string;
|
1262
|
+
2: string;
|
1263
|
+
3: string;
|
1264
|
+
4: string;
|
1265
|
+
5: string;
|
1266
|
+
6: string;
|
1267
|
+
7: string;
|
1268
|
+
8: string;
|
1269
|
+
10: string;
|
1270
|
+
11: string;
|
1271
|
+
12: string;
|
1272
|
+
13: string;
|
1273
|
+
14: string;
|
1274
|
+
15: string;
|
1275
|
+
};
|
1276
|
+
brown: {
|
1277
|
+
9: string;
|
1278
|
+
0: string;
|
1279
|
+
1: string;
|
1280
|
+
2: string;
|
1281
|
+
3: string;
|
1282
|
+
4: string;
|
1283
|
+
5: string;
|
1284
|
+
6: string;
|
1285
|
+
7: string;
|
1286
|
+
8: string;
|
1287
|
+
10: string;
|
1288
|
+
11: string;
|
1289
|
+
12: string;
|
1290
|
+
13: string;
|
1291
|
+
14: string;
|
1292
|
+
15: string;
|
1293
|
+
};
|
1294
|
+
nude: {
|
1295
|
+
9: string;
|
1296
|
+
0: string;
|
1297
|
+
1: string;
|
1298
|
+
2: string;
|
1299
|
+
3: string;
|
1300
|
+
4: string;
|
1301
|
+
5: string;
|
1302
|
+
6: string;
|
1303
|
+
7: string;
|
1304
|
+
8: string;
|
1305
|
+
10: string;
|
1306
|
+
11: string;
|
1307
|
+
12: string;
|
1308
|
+
13: string;
|
1309
|
+
14: string;
|
1310
|
+
15: string;
|
1311
|
+
};
|
1312
|
+
orange: {
|
1313
|
+
9: string;
|
1314
|
+
0: string;
|
1315
|
+
1: string;
|
1316
|
+
2: string;
|
1317
|
+
3: string;
|
1318
|
+
4: string;
|
1319
|
+
5: string;
|
1320
|
+
6: string;
|
1321
|
+
7: string;
|
1322
|
+
8: string;
|
1323
|
+
10: string;
|
1324
|
+
11: string;
|
1325
|
+
12: string;
|
1326
|
+
13: string;
|
1327
|
+
14: string;
|
1328
|
+
15: string;
|
1329
|
+
};
|
1330
|
+
sunset: {
|
1331
|
+
9: string;
|
1332
|
+
0: string;
|
1333
|
+
1: string;
|
1334
|
+
2: string;
|
1335
|
+
3: string;
|
1336
|
+
4: string;
|
1337
|
+
5: string;
|
1338
|
+
6: string;
|
1339
|
+
7: string;
|
1340
|
+
8: string;
|
1341
|
+
10: string;
|
1342
|
+
11: string;
|
1343
|
+
12: string;
|
1344
|
+
13: string;
|
1345
|
+
14: string;
|
1346
|
+
15: string;
|
1347
|
+
};
|
1348
|
+
red: {
|
1349
|
+
9: string;
|
1350
|
+
0: string;
|
1351
|
+
1: string;
|
1352
|
+
2: string;
|
1353
|
+
3: string;
|
1354
|
+
4: string;
|
1355
|
+
5: string;
|
1356
|
+
6: string;
|
1357
|
+
7: string;
|
1358
|
+
8: string;
|
1359
|
+
10: string;
|
1360
|
+
11: string;
|
1361
|
+
12: string;
|
1362
|
+
13: string;
|
1363
|
+
14: string;
|
1364
|
+
15: string;
|
1365
|
+
};
|
1366
|
+
rose: {
|
1367
|
+
9: string;
|
1368
|
+
0: string;
|
1369
|
+
1: string;
|
1370
|
+
2: string;
|
1371
|
+
3: string;
|
1372
|
+
4: string;
|
1373
|
+
5: string;
|
1374
|
+
6: string;
|
1375
|
+
7: string;
|
1376
|
+
8: string;
|
1377
|
+
10: string;
|
1378
|
+
11: string;
|
1379
|
+
12: string;
|
1380
|
+
13: string;
|
1381
|
+
14: string;
|
1382
|
+
15: string;
|
1383
|
+
};
|
1384
|
+
pink: {
|
1385
|
+
9: string;
|
1386
|
+
0: string;
|
1387
|
+
1: string;
|
1388
|
+
2: string;
|
1389
|
+
3: string;
|
1390
|
+
4: string;
|
1391
|
+
5: string;
|
1392
|
+
6: string;
|
1393
|
+
7: string;
|
1394
|
+
8: string;
|
1395
|
+
10: string;
|
1396
|
+
11: string;
|
1397
|
+
12: string;
|
1398
|
+
13: string;
|
1399
|
+
14: string;
|
1400
|
+
15: string;
|
1401
|
+
};
|
1402
|
+
magenta: {
|
1403
|
+
9: string;
|
1404
|
+
0: string;
|
1405
|
+
1: string;
|
1406
|
+
2: string;
|
1407
|
+
3: string;
|
1408
|
+
4: string;
|
1409
|
+
5: string;
|
1410
|
+
6: string;
|
1411
|
+
7: string;
|
1412
|
+
8: string;
|
1413
|
+
10: string;
|
1414
|
+
11: string;
|
1415
|
+
12: string;
|
1416
|
+
13: string;
|
1417
|
+
14: string;
|
1418
|
+
15: string;
|
1419
|
+
};
|
1420
|
+
carbon: {
|
1421
|
+
9: string;
|
1422
|
+
0: string;
|
1423
|
+
1: string;
|
1424
|
+
2: string;
|
1425
|
+
3: string;
|
1426
|
+
4: string;
|
1427
|
+
5: string;
|
1428
|
+
6: string;
|
1429
|
+
7: string;
|
1430
|
+
8: string;
|
1431
|
+
10: string;
|
1432
|
+
11: string;
|
1433
|
+
12: string;
|
1434
|
+
13: string;
|
1435
|
+
14: string;
|
1436
|
+
15: string;
|
1437
|
+
};
|
1438
|
+
};
|
1439
|
+
palette: {
|
1440
|
+
core: {
|
1441
|
+
accent: string;
|
1442
|
+
alert: string;
|
1443
|
+
brand: string;
|
1444
|
+
positive: string;
|
1445
|
+
warning: string;
|
1446
|
+
};
|
1447
|
+
background: {
|
1448
|
+
primary: string;
|
1449
|
+
secondary: string;
|
1450
|
+
};
|
1451
|
+
backgroundWash: {
|
1452
|
+
'accent-wash': string;
|
1453
|
+
'alert-wash': string;
|
1454
|
+
'brand-wash': string;
|
1455
|
+
'positive-wash': string;
|
1456
|
+
'warning-wash': string;
|
1457
|
+
};
|
1458
|
+
elevation: {
|
1459
|
+
'elevation-1': string;
|
1460
|
+
'elevation-2': string;
|
1461
|
+
'elevation-3': string;
|
1462
|
+
'elevation-3-inverse': string;
|
1463
|
+
overlay: string;
|
1464
|
+
};
|
1465
|
+
foreground: {
|
1466
|
+
primary: string;
|
1467
|
+
secondary: string;
|
1468
|
+
tertiary: string;
|
1469
|
+
muted: string;
|
1470
|
+
'on-color': string;
|
1471
|
+
};
|
1472
|
+
line: {
|
1473
|
+
primary: string;
|
1474
|
+
secondary: string;
|
1475
|
+
tertiary: string;
|
1476
|
+
muted: string;
|
1477
|
+
};
|
1478
|
+
};
|
1479
|
+
borderWidth: BorderWidthConfig;
|
1480
|
+
zIndex: ZIndexConfig;
|
1481
|
+
aspectRatio: Record<string, string>;
|
1482
|
+
elevation: Record<ElevationAlias, react_native.ShadowStyleIOS>;
|
1483
|
+
fontFamilyGlobal: FontFamilyGlobalConfig;
|
1484
|
+
};
|
1485
|
+
|
1486
|
+
interface ThemeProviderProps extends React.PropsWithChildren {
|
1487
|
+
colorModeForApp?: ColorModeForApp;
|
1488
|
+
scaleModeForApp?: ScaleModeForApp;
|
1489
|
+
config?: UniversalTokensConfig;
|
1490
|
+
}
|
1491
|
+
declare function ThemeProvider({ children, colorModeForApp, scaleModeForApp, config, }: ThemeProviderProps): react_jsx_runtime.JSX.Element;
|
1492
|
+
|
1493
|
+
export { Avatar, type AvatarProps, AvatarSizeConfig, BackgroundStyleProps, BorderStyleProps, BorderWidthConfig, Box, type BoxProps, Button, type ButtonProps, ColorMode, ColorModeContext, ColorModeForApp, ColorModeForAppContext, ColorModeForAppContextUpdater, ColorModeForAppProvider, type ColorModeForAppProviderProps, ColorModeForDeviceContext, ColorModeForDeviceProvider, type ColorModeForDeviceProviderProps, ColorModeProvider, type ColorModeProviderProps, ColorsConfig, ComputedTokensContext, ComputedTokensProvider, type ComputedTokensProviderProps, DEFAULT_STYLER, ElevationAlias, FlexStyleProps, FontFamilyConfig, FontFamilyGlobalConfig, FontSizeConfig, FontWeightConfig, HStack, type HStackProps, Icon, IconButton, type IconButtonProps, type IconProps, IconSizeConfig, Image, type ImageProps, LayoutStyleProps, LineHeightConfig, Modes, OpacityStyleProps, Pressable, type PressableProps, type ReactNativeStyle, ScaleMode, ScaleModeConfig, ScaleModeContext, ScaleModeForApp, ScaleModeForAppContext, ScaleModeForAppProvider, type ScaleModeForAppProviderProps, ScaleModeForAppUpdaterContext, ScaleModeForDeviceContext, ScaleModeForDeviceProvider, type ScaleModeForDeviceProviderProps, ScaleModeProvider, type ScaleModeProviderProps, Screen, type ScreenProps, SetState, ShapeConfig, SizingStyleProps, SpacingConfig, SpacingStyleProps, StyleProps, StyleProvider, Text, type TextProps, type TextPropsOriginal, TextStyleProps, TextTransformConfig, ThemeProvider, type ThemeProviderProps, UniversalAvatarProps, UniversalBoxProps, UniversalButtonProps, UniversalIconButtonProps, UniversalIconProps, UniversalImageProps, UniversalPressableProps, UniversalStackProps, UniversalTextProps, UniversalTokensConfig, VStack, type VStackProps, ZIndexConfig, createStyler, useAppState, useColorMode, useColorModeForApp, useColorModeForDevice, useComputedTokens, useDeviceFontScale, useScaleMode, useScaleModeForDevice, useStyles, useTokens };
|