@yahoo/uds 0.5.11 → 1.0.0-beta.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-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-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-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-BQB5NUKC.cjs +3 -0
- package/dist/chunk-CBSKS4K5.cjs +2 -0
- package/dist/chunk-CE5ROFEK.cjs +3 -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-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-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-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-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-L7K4GFJK.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-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-OHOQVW2M.js +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-QGADB35M.js +4 -0
- package/dist/chunk-RFY7RXSM.js +3 -0
- package/dist/chunk-RL274CM3.cjs +2 -0
- package/dist/chunk-S37OVJTV.js +2 -0
- package/dist/chunk-TKOGPWM4.cjs +2 -0
- package/dist/chunk-TM36S4YW.cjs +2 -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-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-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 +94 -0
- package/dist/client/index.d.ts +94 -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-BkcFcA6N.d.cts +909 -0
- package/dist/types-BkcFcA6N.d.ts +909 -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
package/dist/index.native.d.cts
CHANGED
@@ -1,13 +1,14 @@
|
|
1
1
|
import * as react from 'react';
|
2
2
|
import { Dispatch, SetStateAction } from 'react';
|
3
|
-
import { B as
|
4
|
-
export {
|
3
|
+
import { B as ButtonKind, C as CorePaletteAlias, e as ButtonBaseConfig, f as ButtonConfig, I as IconButtonConfig, g as UniversalBoxProps, h as UniversalStackProps, i as UniversalTextProps, j as UniversalIconProps, k as ColorModeForApp, l as ColorMode, S as ScaleModeForApp, m as ScaleMode, M as Modes, n as UniversalTokensConfig, o as StyleProps, A as AvatarSizeConfig, p as IconSizeConfig, q as BorderRadiusConfig, r as BorderWidthConfig, F as FontFamilyConfig, s as FontSizeConfig, t as FontWeightConfig, L as LineHeightConfig, T as TextTransformConfig, P as PaletteConfig, u as MotionConfig } from './types-C7KJV1b1.cjs';
|
4
|
+
export { x as AVATAR_SIZE_PREFIX, a7 as AlwaysPalette, a8 as AlwaysPaletteAlias, a9 as Animation, aa as AriaAttribute, ab as AvatarShape, ac as AvatarSize, y as BORDER_RADIUS_PREFIX, z as BORDER_WIDTH_PREFIX, a2 as BUTTON_CSS_VAR_MAP, ad as BackgroundColor, ae as BackgroundPalette, af as BackgroundPaletteAlias, ag as BackgroundStyleProps, ah as BorderRadius, ai as BorderStyleProps, aj as BorderWidth, ak as BoxShadowConfig, al as ButtonClassMap, am as ButtonClassName, an as ButtonColorConfig, ao as ButtonColorEffect, ap as ButtonColorEffectConfig, aq as ButtonColorProperty, ar as ButtonColorPropertyConfig, as as ButtonMotionEffect, at as ButtonMotionProperty, au as ButtonMotionPropertyConfig, av as ButtonPalette, aw as ButtonPaletteColor, ax as ButtonPaletteConfig, ay as ButtonSize, az as ButtonSizeConfig, aA as ButtonSizeProperty, aB as ButtonSpectrumColor, aC as ButtonState, aD as ButtonStateConfig, aE as ButtonStateEffectConfig, aF as ButtonVariant, aG as ButtonVariantConfig, aH as ColorModeConfig, aI as ColorsConfig, aJ as CorePalette, aK as CustomSizingStyleProps, Q as DARK_COLOR_MODE_CLASSNAME, a0 as DEFAULT_COLOR_MODE_CLASSNAME, a1 as DEFAULT_SCALE_MODE_CLASSNAME, aL as DataAttribute, aM as Display, a6 as FONT_DECLARATIONS_MAP, D as FONT_FAMILY_PREFIX, E as FONT_SIZE_PREFIX, G as FONT_WEIGHT_PREFIX, aN as Flex, aO as FlexAlignContent, aP as FlexAlignItems, aQ as FlexAlignSelf, aR as FlexBasis, aS as FlexDirection, aT as FlexGrow, aU as FlexJustifyContent, aV as FlexShrink, aW as FlexStyleProps, aX as FlexWrap, aY as FontAlias, aZ as FontConfig, a_ as FontCssVar, a5 as FontDeclarationConfig, a$ as FontFamilyCDNUrl, b0 as FontID, b1 as FontSize, b2 as FontType, b3 as FontWeightDescriptive, b4 as FontWeightNumeric, b5 as ForegroundColor, b6 as ForegroundPalette, b7 as ForegroundPaletteAlias, b8 as HighContrastMode, b9 as Hue, ba as HueStep, a3 as ICON_BUTTON_CSS_VAR_MAP, H as ICON_SIZE_PREFIX, bb as IconButtonClassMap, bc as IconButtonClassName, bd as IconButtonDefaultsConfig, be as IconButtonSize, bf as IconSize, bg as IconVariant, bh as ImageStyleProps, Y as LARGE_SCALE_MODE_CLASSNAME, R as LIGHT_COLOR_MODE_CLASSNAME, J as LINE_HEIGHT_PREFIX, bi as LayoutStyleProps, bj as LetterSpacing, bk as LineClampAlias, bl as LineColor, bm as LineHeight, bn as LinePalette, bo as LinePaletteAlias, W as MEDIUM_SCALE_MODE_CLASSNAME, K as MOTION_PREFIX, bp as MotionCssVar, bq as MotionSpringConfig, br as MotionSpringConfigOptions, bs as MotionVariant, bt as MotionVariantSpeed, bu as MotionVariantValues, bv as Overflow, a4 as PSEUDO_STYLE_SELECTOR_MAP, bw as Palette, bx as PaletteType, by as PaletteValue, bz as PlatformMode, bA as Position, bB as PropertyToPaletteAliasMap, bC as RegionMode, V as SMALL_SCALE_MODE_CLASSNAME, N as SPECTRUM_COLOR_PREFIX, bD as ScaleConfig, bE as ScaleEffectMap, bF as ScaleModeConfig, bG as SpacingAlias, bH as SpacingConfig, bI as SpacingStyleProps, bJ as SpectrumColor, bK as SpectrumConfig, bL as StateStyleProps, O as TEXT_TRANSFORM_PREFIX, bT as TShirtSize, bU as TShirtSizeCommon, bM as TextProperty, bN as TextStyleProps, bO as TextTransform, bP as TextVariant, bQ as TransitionDelay, bR as TransitionDuration, bS as TransitionTiming, w as UDS_PREFIX, bV as UdsCssVar, U as UniversalAvatarProps, a as UniversalButtonProps, c as UniversalIconButtonProps, d as UniversalImageProps, b as UniversalPressableProps, bW as UniversalTextInputProps, Z as XLARGE_SCALE_MODE_CLASSNAME, X as XSMALL_SCALE_MODE_CLASSNAME, _ as XXLARGE_SCALE_MODE_CLASSNAME, $ as XXXLARGE_SCALE_MODE_CLASSNAME, v as alwaysPalette } from './types-C7KJV1b1.cjs';
|
5
5
|
import { ViewProps, View, TextProps as TextProps$1, Text as Text$1, ScrollViewProps, ScrollView, StyleProp, ViewStyle, TextStyle } from 'react-native';
|
6
|
-
export { a as IconButton, b as IconButtonProps, c as Image, I as ImageProps, d as Pressable, P as PressableProps } from './Image.native-
|
6
|
+
export { a as IconButton, b as IconButtonProps, c as Image, I as ImageProps, d as Pressable, P as PressableProps } from './Image.native-f8x4GPuV.cjs';
|
7
7
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
8
8
|
import { EdgeInsets } from 'react-native-safe-area-context';
|
9
9
|
import { ImageStyle } from 'expo-image';
|
10
|
-
export {
|
10
|
+
export { DEFAULT_COLOR_MODE, DEFAULT_COLOR_MODE_FOR_APP, DEFAULT_HIGH_CONTRAST_MODE, DEFAULT_REGION_MODE, DEFAULT_SCALE_MODE, DEFAULT_SCALE_MODE_FOR_APP, defaultTokensConfig, fontWeightMap } from './tokens/index.native.cjs';
|
11
|
+
import 'framer-motion';
|
11
12
|
|
12
13
|
declare const variants: {
|
13
14
|
color: {
|
@@ -43,12 +44,11 @@ declare const variants: {
|
|
43
44
|
current: string;
|
44
45
|
};
|
45
46
|
fontFamily: {
|
46
|
-
icons: string;
|
47
47
|
sans: string;
|
48
|
-
'sans-
|
49
|
-
|
50
|
-
'serif-
|
51
|
-
|
48
|
+
'sans-alt': string;
|
49
|
+
serif: string;
|
50
|
+
'serif-alt': string;
|
51
|
+
mono: string;
|
52
52
|
display1: string;
|
53
53
|
display2: string;
|
54
54
|
display3: string;
|
@@ -1053,7 +1053,7 @@ declare const variants: {
|
|
1053
1053
|
xxxLarge: string;
|
1054
1054
|
xxLarge: string;
|
1055
1055
|
};
|
1056
|
-
|
1056
|
+
buttonPalette: {
|
1057
1057
|
accent: string;
|
1058
1058
|
brand: string;
|
1059
1059
|
alert: string;
|
@@ -1070,69 +1070,43 @@ declare const variants: {
|
|
1070
1070
|
md: string;
|
1071
1071
|
lg: string;
|
1072
1072
|
};
|
1073
|
+
iconButtonSize: {
|
1074
|
+
xs: string;
|
1075
|
+
sm: string;
|
1076
|
+
md: string;
|
1077
|
+
lg: string;
|
1078
|
+
xl: string;
|
1079
|
+
};
|
1073
1080
|
};
|
1074
1081
|
|
1082
|
+
declare const getDefaultButtonBaseMap: Record<ButtonKind, (alias: CorePaletteAlias) => ButtonBaseConfig>;
|
1075
1083
|
declare const button: ButtonConfig;
|
1076
1084
|
|
1077
|
-
|
1078
|
-
|
1079
|
-
|
1080
|
-
|
1081
|
-
|
1082
|
-
|
1083
|
-
|
1084
|
-
|
1085
|
-
declare const LINE_HEIGHT_PREFIX = "uds-line-height";
|
1086
|
-
declare const FONT_WEIGHT_PREFIX = "uds-font-weight";
|
1087
|
-
declare const TEXT_TRANSFORM_PREFIX = "uds-text-transform";
|
1088
|
-
declare const DARK_COLOR_MODE_CLASSNAME = "uds-color-mode-dark";
|
1089
|
-
declare const LIGHT_COLOR_MODE_CLASSNAME = "uds-color-mode-light";
|
1090
|
-
declare const XSMALL_SCALE_MODE_CLASSNAME = "uds-scale-mode-xsmall";
|
1091
|
-
declare const SMALL_SCALE_MODE_CLASSNAME = "uds-scale-mode-small";
|
1092
|
-
declare const MEDIUM_SCALE_MODE_CLASSNAME = "uds-scale-mode-medium";
|
1093
|
-
declare const LARGE_SCALE_MODE_CLASSNAME = "uds-scale-mode-large";
|
1094
|
-
declare const XLARGE_SCALE_MODE_CLASSNAME = "uds-scale-mode-xlarge";
|
1095
|
-
declare const XXLARGE_SCALE_MODE_CLASSNAME = "uds-scale-mode-xxlarge";
|
1096
|
-
declare const XXXLARGE_SCALE_MODE_CLASSNAME = "uds-scale-mode-xxxlarge";
|
1097
|
-
declare const DEFAULT_COLOR_MODE_CLASSNAME = "uds-color-mode-light";
|
1098
|
-
declare const DEFAULT_SCALE_MODE_CLASSNAME = "uds-scale-mode-large";
|
1099
|
-
declare const FONT_ICONS_CSS_VAR = "--uds-font-icons";
|
1100
|
-
declare const FONT_SANS_CSS_VAR = "--uds-font-sans";
|
1101
|
-
declare const FONT_SANS_BETA_CSS_VAR = "--uds-font-sans-beta";
|
1102
|
-
declare const FONT_SANS_CONDENSED_CSS_VAR = "--uds-font-sans-condensed";
|
1103
|
-
declare const FONT_SERIF_DISPLAY_CSS_VAR = "--uds-font-serif-display";
|
1104
|
-
declare const FONT_SERIF_TEXT_CSS_VAR = "--uds-font-serif-text";
|
1105
|
-
declare const BUTTON_CSS_VAR_MAP: {
|
1106
|
-
readonly borderRadius: "--uds-button-border-radius";
|
1107
|
-
readonly borderWidth: "--uds-buton-border-width";
|
1108
|
-
readonly color: "--uds-button-color";
|
1109
|
-
readonly backgroundColor: "--uds-button-background-color";
|
1110
|
-
readonly borderColor: "--uds-button-border-color";
|
1111
|
-
readonly padding: "--uds-button-padding";
|
1112
|
-
readonly columnGap: "--uds-button-gap";
|
1113
|
-
readonly fontFamily: "--uds-button-font";
|
1114
|
-
readonly fontWeight: "--uds-button-font-weight";
|
1115
|
-
readonly fontSize: "--uds-button-font-size";
|
1116
|
-
readonly lineHeight: "--uds-button-line-height";
|
1117
|
-
readonly textTransform: "--uds-button-text-transform";
|
1118
|
-
readonly iconSize: "--uds-button-icon-size";
|
1119
|
-
};
|
1120
|
-
declare const PSUEDO_STYLE_SELECTOR_MAP: {
|
1121
|
-
readonly hover: "&:hover:not([disabled])";
|
1122
|
-
readonly pressed: "&:active:not([disabled])";
|
1123
|
-
readonly disabled: "&:disabled";
|
1124
|
-
};
|
1125
|
-
|
1085
|
+
/**
|
1086
|
+
* Converts an object into an array of key-value pair entries.
|
1087
|
+
*
|
1088
|
+
* This function takes an object `item` and returns an array of its own enumerable
|
1089
|
+
* property `[key, value]` pairs, where `key` is a string. The generic type `T` represents
|
1090
|
+
* the type of the input object. The return type is an array of tuples, where each tuple
|
1091
|
+
* consists of a string key and a value corresponding to the type of values in `T`.
|
1092
|
+
*/
|
1126
1093
|
declare function entries<T>(item: T): [Extract<keyof T, string>, T[keyof T]][];
|
1127
1094
|
|
1095
|
+
/**
|
1096
|
+
* Converts an array of key-value pair entries into an object.
|
1097
|
+
*
|
1098
|
+
* This function takes an array of `[key, value]` pairs and converts it into an object
|
1099
|
+
* where each key is associated with its corresponding value. The generic types `T` and `K`
|
1100
|
+
* represent the types of the keys and values, respectively. The keys are constrained to
|
1101
|
+
* be strings.
|
1102
|
+
*/
|
1128
1103
|
declare function fromEntries<T extends string, K>(item: [T, K][]): Record<T, K>;
|
1129
1104
|
|
1130
|
-
|
1131
|
-
}
|
1105
|
+
type CombinationsConfig = IconButtonConfig | ButtonConfig;
|
1132
1106
|
type Combination<T extends CombinationsConfig> = {
|
1133
1107
|
[K in keyof T]: keyof T[K];
|
1134
1108
|
};
|
1135
|
-
declare function generateConfigCombinations(config:
|
1109
|
+
declare function generateConfigCombinations<T extends CombinationsConfig>(config: T): Combination<T>[];
|
1136
1110
|
|
1137
1111
|
type AnyObject = Record<string, unknown>;
|
1138
1112
|
declare function mapValues<T extends AnyObject, K extends (value: T[keyof T], key: keyof T, i: number) => unknown>(obj: T, callbackFn: K): { [key in keyof T]: ReturnType<K>; };
|
@@ -1662,34 +1636,11 @@ declare function createStyler({ colorMode, scaleMode }: Modes, config: Universal
|
|
1662
1636
|
15: string;
|
1663
1637
|
};
|
1664
1638
|
};
|
1665
|
-
palette: {
|
1666
|
-
|
1667
|
-
|
1668
|
-
|
1669
|
-
|
1670
|
-
positive: string;
|
1671
|
-
warning: string;
|
1672
|
-
};
|
1673
|
-
background: {
|
1674
|
-
primary: string;
|
1675
|
-
secondary: string;
|
1676
|
-
};
|
1677
|
-
foreground: {
|
1678
|
-
primary: string;
|
1679
|
-
secondary: string;
|
1680
|
-
tertiary: string;
|
1681
|
-
muted: string;
|
1682
|
-
"on-color": string;
|
1683
|
-
};
|
1684
|
-
line: {
|
1685
|
-
primary: string;
|
1686
|
-
secondary: string;
|
1687
|
-
tertiary: string;
|
1688
|
-
muted: string;
|
1689
|
-
};
|
1690
|
-
};
|
1691
|
-
button?: ButtonConfig | undefined;
|
1692
|
-
fontFamilyGlobal: FontFamilyGlobalConfig;
|
1639
|
+
palette: { [key in keyof PaletteConfig]: { [key2 in keyof PaletteConfig[key]]: string; }; };
|
1640
|
+
version: string;
|
1641
|
+
button: ButtonConfig;
|
1642
|
+
iconButton: IconButtonConfig;
|
1643
|
+
motion: MotionConfig;
|
1693
1644
|
};
|
1694
1645
|
};
|
1695
1646
|
declare const DEFAULT_STYLER: {
|
@@ -2069,34 +2020,11 @@ declare const DEFAULT_STYLER: {
|
|
2069
2020
|
15: string;
|
2070
2021
|
};
|
2071
2022
|
};
|
2072
|
-
palette: {
|
2073
|
-
|
2074
|
-
|
2075
|
-
|
2076
|
-
|
2077
|
-
positive: string;
|
2078
|
-
warning: string;
|
2079
|
-
};
|
2080
|
-
background: {
|
2081
|
-
primary: string;
|
2082
|
-
secondary: string;
|
2083
|
-
};
|
2084
|
-
foreground: {
|
2085
|
-
primary: string;
|
2086
|
-
secondary: string;
|
2087
|
-
tertiary: string;
|
2088
|
-
muted: string;
|
2089
|
-
"on-color": string;
|
2090
|
-
};
|
2091
|
-
line: {
|
2092
|
-
primary: string;
|
2093
|
-
secondary: string;
|
2094
|
-
tertiary: string;
|
2095
|
-
muted: string;
|
2096
|
-
};
|
2097
|
-
};
|
2098
|
-
button?: ButtonConfig | undefined;
|
2099
|
-
fontFamilyGlobal: FontFamilyGlobalConfig;
|
2023
|
+
palette: { [key in keyof PaletteConfig]: { [key2 in keyof PaletteConfig[key]]: string; }; };
|
2024
|
+
version: string;
|
2025
|
+
button: ButtonConfig;
|
2026
|
+
iconButton: IconButtonConfig;
|
2027
|
+
motion: MotionConfig;
|
2100
2028
|
};
|
2101
2029
|
};
|
2102
2030
|
|
@@ -2479,34 +2407,11 @@ declare function useTokens(): {
|
|
2479
2407
|
15: string;
|
2480
2408
|
};
|
2481
2409
|
};
|
2482
|
-
palette: {
|
2483
|
-
|
2484
|
-
|
2485
|
-
|
2486
|
-
|
2487
|
-
positive: string;
|
2488
|
-
warning: string;
|
2489
|
-
};
|
2490
|
-
background: {
|
2491
|
-
primary: string;
|
2492
|
-
secondary: string;
|
2493
|
-
};
|
2494
|
-
foreground: {
|
2495
|
-
primary: string;
|
2496
|
-
secondary: string;
|
2497
|
-
tertiary: string;
|
2498
|
-
muted: string;
|
2499
|
-
"on-color": string;
|
2500
|
-
};
|
2501
|
-
line: {
|
2502
|
-
primary: string;
|
2503
|
-
secondary: string;
|
2504
|
-
tertiary: string;
|
2505
|
-
muted: string;
|
2506
|
-
};
|
2507
|
-
};
|
2508
|
-
button?: ButtonConfig | undefined;
|
2509
|
-
fontFamilyGlobal: FontFamilyGlobalConfig;
|
2410
|
+
palette: { [key in keyof PaletteConfig]: { [key2 in keyof PaletteConfig[key]]: string; }; };
|
2411
|
+
version: string;
|
2412
|
+
button: ButtonConfig;
|
2413
|
+
iconButton: IconButtonConfig;
|
2414
|
+
motion: MotionConfig;
|
2510
2415
|
};
|
2511
2416
|
|
2512
2417
|
interface ThemeProviderProps extends React.PropsWithChildren {
|
@@ -2516,4 +2421,4 @@ interface ThemeProviderProps extends React.PropsWithChildren {
|
|
2516
2421
|
}
|
2517
2422
|
declare function ThemeProvider({ children, colorModeForApp, scaleModeForApp, config, }: ThemeProviderProps): react_jsx_runtime.JSX.Element;
|
2518
2423
|
|
2519
|
-
export {
|
2424
|
+
export { AvatarSizeConfig, BorderRadiusConfig, BorderWidthConfig, Box, type BoxProps, ButtonBaseConfig, ButtonConfig, ButtonKind, ColorMode, ColorModeContext, ColorModeForApp, ColorModeForAppContext, ColorModeForAppContextUpdater, ColorModeForAppProvider, type ColorModeForAppProviderProps, ColorModeForDeviceContext, ColorModeForDeviceProvider, type ColorModeForDeviceProviderProps, ColorModeProvider, type ColorModeProviderProps, type Combination, type CombinationsConfig, ComputedTokensContext, ComputedTokensProvider, type ComputedTokensProviderProps, CorePaletteAlias, DEFAULT_STYLER, FontFamilyConfig, FontSizeConfig, FontWeightConfig, HStack, type HStackProps, Icon, IconButtonConfig, type IconProps, IconSizeConfig, LineHeightConfig, Modes, MotionConfig, PaletteConfig, type ReactNativeStyle, ScaleMode, ScaleModeContext, ScaleModeForApp, ScaleModeForAppContext, ScaleModeForAppProvider, type ScaleModeForAppProviderProps, ScaleModeForAppUpdaterContext, ScaleModeForDeviceContext, ScaleModeForDeviceProvider, type ScaleModeForDeviceProviderProps, ScaleModeProvider, type ScaleModeProviderProps, Screen, type ScreenProps, type SetState, StyleProps, StyleProvider, Text, type TextProps, type TextPropsOriginal, TextTransformConfig, ThemeProvider, type ThemeProviderProps, UniversalBoxProps, UniversalIconProps, UniversalStackProps, UniversalTextProps, UniversalTokensConfig, VStack, type VStackProps, button, createStyler, entries, fromEntries, generateConfigCombinations, getDefaultButtonBaseMap, mapValues, useAppState, useColorMode, useColorModeForApp, useColorModeForDevice, useComputedTokens, useDeviceFontScale, useScaleMode, useScaleModeForDevice, useStyles, useTokens, variants };
|
package/dist/index.native.d.ts
CHANGED
@@ -1,13 +1,14 @@
|
|
1
1
|
import * as react from 'react';
|
2
2
|
import { Dispatch, SetStateAction } from 'react';
|
3
|
-
import { B as
|
4
|
-
export {
|
3
|
+
import { B as ButtonKind, C as CorePaletteAlias, e as ButtonBaseConfig, f as ButtonConfig, I as IconButtonConfig, g as UniversalBoxProps, h as UniversalStackProps, i as UniversalTextProps, j as UniversalIconProps, k as ColorModeForApp, l as ColorMode, S as ScaleModeForApp, m as ScaleMode, M as Modes, n as UniversalTokensConfig, o as StyleProps, A as AvatarSizeConfig, p as IconSizeConfig, q as BorderRadiusConfig, r as BorderWidthConfig, F as FontFamilyConfig, s as FontSizeConfig, t as FontWeightConfig, L as LineHeightConfig, T as TextTransformConfig, P as PaletteConfig, u as MotionConfig } from './types-C7KJV1b1.js';
|
4
|
+
export { x as AVATAR_SIZE_PREFIX, a7 as AlwaysPalette, a8 as AlwaysPaletteAlias, a9 as Animation, aa as AriaAttribute, ab as AvatarShape, ac as AvatarSize, y as BORDER_RADIUS_PREFIX, z as BORDER_WIDTH_PREFIX, a2 as BUTTON_CSS_VAR_MAP, ad as BackgroundColor, ae as BackgroundPalette, af as BackgroundPaletteAlias, ag as BackgroundStyleProps, ah as BorderRadius, ai as BorderStyleProps, aj as BorderWidth, ak as BoxShadowConfig, al as ButtonClassMap, am as ButtonClassName, an as ButtonColorConfig, ao as ButtonColorEffect, ap as ButtonColorEffectConfig, aq as ButtonColorProperty, ar as ButtonColorPropertyConfig, as as ButtonMotionEffect, at as ButtonMotionProperty, au as ButtonMotionPropertyConfig, av as ButtonPalette, aw as ButtonPaletteColor, ax as ButtonPaletteConfig, ay as ButtonSize, az as ButtonSizeConfig, aA as ButtonSizeProperty, aB as ButtonSpectrumColor, aC as ButtonState, aD as ButtonStateConfig, aE as ButtonStateEffectConfig, aF as ButtonVariant, aG as ButtonVariantConfig, aH as ColorModeConfig, aI as ColorsConfig, aJ as CorePalette, aK as CustomSizingStyleProps, Q as DARK_COLOR_MODE_CLASSNAME, a0 as DEFAULT_COLOR_MODE_CLASSNAME, a1 as DEFAULT_SCALE_MODE_CLASSNAME, aL as DataAttribute, aM as Display, a6 as FONT_DECLARATIONS_MAP, D as FONT_FAMILY_PREFIX, E as FONT_SIZE_PREFIX, G as FONT_WEIGHT_PREFIX, aN as Flex, aO as FlexAlignContent, aP as FlexAlignItems, aQ as FlexAlignSelf, aR as FlexBasis, aS as FlexDirection, aT as FlexGrow, aU as FlexJustifyContent, aV as FlexShrink, aW as FlexStyleProps, aX as FlexWrap, aY as FontAlias, aZ as FontConfig, a_ as FontCssVar, a5 as FontDeclarationConfig, a$ as FontFamilyCDNUrl, b0 as FontID, b1 as FontSize, b2 as FontType, b3 as FontWeightDescriptive, b4 as FontWeightNumeric, b5 as ForegroundColor, b6 as ForegroundPalette, b7 as ForegroundPaletteAlias, b8 as HighContrastMode, b9 as Hue, ba as HueStep, a3 as ICON_BUTTON_CSS_VAR_MAP, H as ICON_SIZE_PREFIX, bb as IconButtonClassMap, bc as IconButtonClassName, bd as IconButtonDefaultsConfig, be as IconButtonSize, bf as IconSize, bg as IconVariant, bh as ImageStyleProps, Y as LARGE_SCALE_MODE_CLASSNAME, R as LIGHT_COLOR_MODE_CLASSNAME, J as LINE_HEIGHT_PREFIX, bi as LayoutStyleProps, bj as LetterSpacing, bk as LineClampAlias, bl as LineColor, bm as LineHeight, bn as LinePalette, bo as LinePaletteAlias, W as MEDIUM_SCALE_MODE_CLASSNAME, K as MOTION_PREFIX, bp as MotionCssVar, bq as MotionSpringConfig, br as MotionSpringConfigOptions, bs as MotionVariant, bt as MotionVariantSpeed, bu as MotionVariantValues, bv as Overflow, a4 as PSEUDO_STYLE_SELECTOR_MAP, bw as Palette, bx as PaletteType, by as PaletteValue, bz as PlatformMode, bA as Position, bB as PropertyToPaletteAliasMap, bC as RegionMode, V as SMALL_SCALE_MODE_CLASSNAME, N as SPECTRUM_COLOR_PREFIX, bD as ScaleConfig, bE as ScaleEffectMap, bF as ScaleModeConfig, bG as SpacingAlias, bH as SpacingConfig, bI as SpacingStyleProps, bJ as SpectrumColor, bK as SpectrumConfig, bL as StateStyleProps, O as TEXT_TRANSFORM_PREFIX, bT as TShirtSize, bU as TShirtSizeCommon, bM as TextProperty, bN as TextStyleProps, bO as TextTransform, bP as TextVariant, bQ as TransitionDelay, bR as TransitionDuration, bS as TransitionTiming, w as UDS_PREFIX, bV as UdsCssVar, U as UniversalAvatarProps, a as UniversalButtonProps, c as UniversalIconButtonProps, d as UniversalImageProps, b as UniversalPressableProps, bW as UniversalTextInputProps, Z as XLARGE_SCALE_MODE_CLASSNAME, X as XSMALL_SCALE_MODE_CLASSNAME, _ as XXLARGE_SCALE_MODE_CLASSNAME, $ as XXXLARGE_SCALE_MODE_CLASSNAME, v as alwaysPalette } from './types-C7KJV1b1.js';
|
5
5
|
import { ViewProps, View, TextProps as TextProps$1, Text as Text$1, ScrollViewProps, ScrollView, StyleProp, ViewStyle, TextStyle } from 'react-native';
|
6
|
-
export { a as IconButton, b as IconButtonProps, c as Image, I as ImageProps, d as Pressable, P as PressableProps } from './Image.native-
|
6
|
+
export { a as IconButton, b as IconButtonProps, c as Image, I as ImageProps, d as Pressable, P as PressableProps } from './Image.native-D6qA03vT.js';
|
7
7
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
8
8
|
import { EdgeInsets } from 'react-native-safe-area-context';
|
9
9
|
import { ImageStyle } from 'expo-image';
|
10
|
-
export {
|
10
|
+
export { DEFAULT_COLOR_MODE, DEFAULT_COLOR_MODE_FOR_APP, DEFAULT_HIGH_CONTRAST_MODE, DEFAULT_REGION_MODE, DEFAULT_SCALE_MODE, DEFAULT_SCALE_MODE_FOR_APP, defaultTokensConfig, fontWeightMap } from './tokens/index.native.js';
|
11
|
+
import 'framer-motion';
|
11
12
|
|
12
13
|
declare const variants: {
|
13
14
|
color: {
|
@@ -43,12 +44,11 @@ declare const variants: {
|
|
43
44
|
current: string;
|
44
45
|
};
|
45
46
|
fontFamily: {
|
46
|
-
icons: string;
|
47
47
|
sans: string;
|
48
|
-
'sans-
|
49
|
-
|
50
|
-
'serif-
|
51
|
-
|
48
|
+
'sans-alt': string;
|
49
|
+
serif: string;
|
50
|
+
'serif-alt': string;
|
51
|
+
mono: string;
|
52
52
|
display1: string;
|
53
53
|
display2: string;
|
54
54
|
display3: string;
|
@@ -1053,7 +1053,7 @@ declare const variants: {
|
|
1053
1053
|
xxxLarge: string;
|
1054
1054
|
xxLarge: string;
|
1055
1055
|
};
|
1056
|
-
|
1056
|
+
buttonPalette: {
|
1057
1057
|
accent: string;
|
1058
1058
|
brand: string;
|
1059
1059
|
alert: string;
|
@@ -1070,69 +1070,43 @@ declare const variants: {
|
|
1070
1070
|
md: string;
|
1071
1071
|
lg: string;
|
1072
1072
|
};
|
1073
|
+
iconButtonSize: {
|
1074
|
+
xs: string;
|
1075
|
+
sm: string;
|
1076
|
+
md: string;
|
1077
|
+
lg: string;
|
1078
|
+
xl: string;
|
1079
|
+
};
|
1073
1080
|
};
|
1074
1081
|
|
1082
|
+
declare const getDefaultButtonBaseMap: Record<ButtonKind, (alias: CorePaletteAlias) => ButtonBaseConfig>;
|
1075
1083
|
declare const button: ButtonConfig;
|
1076
1084
|
|
1077
|
-
|
1078
|
-
|
1079
|
-
|
1080
|
-
|
1081
|
-
|
1082
|
-
|
1083
|
-
|
1084
|
-
|
1085
|
-
declare const LINE_HEIGHT_PREFIX = "uds-line-height";
|
1086
|
-
declare const FONT_WEIGHT_PREFIX = "uds-font-weight";
|
1087
|
-
declare const TEXT_TRANSFORM_PREFIX = "uds-text-transform";
|
1088
|
-
declare const DARK_COLOR_MODE_CLASSNAME = "uds-color-mode-dark";
|
1089
|
-
declare const LIGHT_COLOR_MODE_CLASSNAME = "uds-color-mode-light";
|
1090
|
-
declare const XSMALL_SCALE_MODE_CLASSNAME = "uds-scale-mode-xsmall";
|
1091
|
-
declare const SMALL_SCALE_MODE_CLASSNAME = "uds-scale-mode-small";
|
1092
|
-
declare const MEDIUM_SCALE_MODE_CLASSNAME = "uds-scale-mode-medium";
|
1093
|
-
declare const LARGE_SCALE_MODE_CLASSNAME = "uds-scale-mode-large";
|
1094
|
-
declare const XLARGE_SCALE_MODE_CLASSNAME = "uds-scale-mode-xlarge";
|
1095
|
-
declare const XXLARGE_SCALE_MODE_CLASSNAME = "uds-scale-mode-xxlarge";
|
1096
|
-
declare const XXXLARGE_SCALE_MODE_CLASSNAME = "uds-scale-mode-xxxlarge";
|
1097
|
-
declare const DEFAULT_COLOR_MODE_CLASSNAME = "uds-color-mode-light";
|
1098
|
-
declare const DEFAULT_SCALE_MODE_CLASSNAME = "uds-scale-mode-large";
|
1099
|
-
declare const FONT_ICONS_CSS_VAR = "--uds-font-icons";
|
1100
|
-
declare const FONT_SANS_CSS_VAR = "--uds-font-sans";
|
1101
|
-
declare const FONT_SANS_BETA_CSS_VAR = "--uds-font-sans-beta";
|
1102
|
-
declare const FONT_SANS_CONDENSED_CSS_VAR = "--uds-font-sans-condensed";
|
1103
|
-
declare const FONT_SERIF_DISPLAY_CSS_VAR = "--uds-font-serif-display";
|
1104
|
-
declare const FONT_SERIF_TEXT_CSS_VAR = "--uds-font-serif-text";
|
1105
|
-
declare const BUTTON_CSS_VAR_MAP: {
|
1106
|
-
readonly borderRadius: "--uds-button-border-radius";
|
1107
|
-
readonly borderWidth: "--uds-buton-border-width";
|
1108
|
-
readonly color: "--uds-button-color";
|
1109
|
-
readonly backgroundColor: "--uds-button-background-color";
|
1110
|
-
readonly borderColor: "--uds-button-border-color";
|
1111
|
-
readonly padding: "--uds-button-padding";
|
1112
|
-
readonly columnGap: "--uds-button-gap";
|
1113
|
-
readonly fontFamily: "--uds-button-font";
|
1114
|
-
readonly fontWeight: "--uds-button-font-weight";
|
1115
|
-
readonly fontSize: "--uds-button-font-size";
|
1116
|
-
readonly lineHeight: "--uds-button-line-height";
|
1117
|
-
readonly textTransform: "--uds-button-text-transform";
|
1118
|
-
readonly iconSize: "--uds-button-icon-size";
|
1119
|
-
};
|
1120
|
-
declare const PSUEDO_STYLE_SELECTOR_MAP: {
|
1121
|
-
readonly hover: "&:hover:not([disabled])";
|
1122
|
-
readonly pressed: "&:active:not([disabled])";
|
1123
|
-
readonly disabled: "&:disabled";
|
1124
|
-
};
|
1125
|
-
|
1085
|
+
/**
|
1086
|
+
* Converts an object into an array of key-value pair entries.
|
1087
|
+
*
|
1088
|
+
* This function takes an object `item` and returns an array of its own enumerable
|
1089
|
+
* property `[key, value]` pairs, where `key` is a string. The generic type `T` represents
|
1090
|
+
* the type of the input object. The return type is an array of tuples, where each tuple
|
1091
|
+
* consists of a string key and a value corresponding to the type of values in `T`.
|
1092
|
+
*/
|
1126
1093
|
declare function entries<T>(item: T): [Extract<keyof T, string>, T[keyof T]][];
|
1127
1094
|
|
1095
|
+
/**
|
1096
|
+
* Converts an array of key-value pair entries into an object.
|
1097
|
+
*
|
1098
|
+
* This function takes an array of `[key, value]` pairs and converts it into an object
|
1099
|
+
* where each key is associated with its corresponding value. The generic types `T` and `K`
|
1100
|
+
* represent the types of the keys and values, respectively. The keys are constrained to
|
1101
|
+
* be strings.
|
1102
|
+
*/
|
1128
1103
|
declare function fromEntries<T extends string, K>(item: [T, K][]): Record<T, K>;
|
1129
1104
|
|
1130
|
-
|
1131
|
-
}
|
1105
|
+
type CombinationsConfig = IconButtonConfig | ButtonConfig;
|
1132
1106
|
type Combination<T extends CombinationsConfig> = {
|
1133
1107
|
[K in keyof T]: keyof T[K];
|
1134
1108
|
};
|
1135
|
-
declare function generateConfigCombinations(config:
|
1109
|
+
declare function generateConfigCombinations<T extends CombinationsConfig>(config: T): Combination<T>[];
|
1136
1110
|
|
1137
1111
|
type AnyObject = Record<string, unknown>;
|
1138
1112
|
declare function mapValues<T extends AnyObject, K extends (value: T[keyof T], key: keyof T, i: number) => unknown>(obj: T, callbackFn: K): { [key in keyof T]: ReturnType<K>; };
|
@@ -1662,34 +1636,11 @@ declare function createStyler({ colorMode, scaleMode }: Modes, config: Universal
|
|
1662
1636
|
15: string;
|
1663
1637
|
};
|
1664
1638
|
};
|
1665
|
-
palette: {
|
1666
|
-
|
1667
|
-
|
1668
|
-
|
1669
|
-
|
1670
|
-
positive: string;
|
1671
|
-
warning: string;
|
1672
|
-
};
|
1673
|
-
background: {
|
1674
|
-
primary: string;
|
1675
|
-
secondary: string;
|
1676
|
-
};
|
1677
|
-
foreground: {
|
1678
|
-
primary: string;
|
1679
|
-
secondary: string;
|
1680
|
-
tertiary: string;
|
1681
|
-
muted: string;
|
1682
|
-
"on-color": string;
|
1683
|
-
};
|
1684
|
-
line: {
|
1685
|
-
primary: string;
|
1686
|
-
secondary: string;
|
1687
|
-
tertiary: string;
|
1688
|
-
muted: string;
|
1689
|
-
};
|
1690
|
-
};
|
1691
|
-
button?: ButtonConfig | undefined;
|
1692
|
-
fontFamilyGlobal: FontFamilyGlobalConfig;
|
1639
|
+
palette: { [key in keyof PaletteConfig]: { [key2 in keyof PaletteConfig[key]]: string; }; };
|
1640
|
+
version: string;
|
1641
|
+
button: ButtonConfig;
|
1642
|
+
iconButton: IconButtonConfig;
|
1643
|
+
motion: MotionConfig;
|
1693
1644
|
};
|
1694
1645
|
};
|
1695
1646
|
declare const DEFAULT_STYLER: {
|
@@ -2069,34 +2020,11 @@ declare const DEFAULT_STYLER: {
|
|
2069
2020
|
15: string;
|
2070
2021
|
};
|
2071
2022
|
};
|
2072
|
-
palette: {
|
2073
|
-
|
2074
|
-
|
2075
|
-
|
2076
|
-
|
2077
|
-
positive: string;
|
2078
|
-
warning: string;
|
2079
|
-
};
|
2080
|
-
background: {
|
2081
|
-
primary: string;
|
2082
|
-
secondary: string;
|
2083
|
-
};
|
2084
|
-
foreground: {
|
2085
|
-
primary: string;
|
2086
|
-
secondary: string;
|
2087
|
-
tertiary: string;
|
2088
|
-
muted: string;
|
2089
|
-
"on-color": string;
|
2090
|
-
};
|
2091
|
-
line: {
|
2092
|
-
primary: string;
|
2093
|
-
secondary: string;
|
2094
|
-
tertiary: string;
|
2095
|
-
muted: string;
|
2096
|
-
};
|
2097
|
-
};
|
2098
|
-
button?: ButtonConfig | undefined;
|
2099
|
-
fontFamilyGlobal: FontFamilyGlobalConfig;
|
2023
|
+
palette: { [key in keyof PaletteConfig]: { [key2 in keyof PaletteConfig[key]]: string; }; };
|
2024
|
+
version: string;
|
2025
|
+
button: ButtonConfig;
|
2026
|
+
iconButton: IconButtonConfig;
|
2027
|
+
motion: MotionConfig;
|
2100
2028
|
};
|
2101
2029
|
};
|
2102
2030
|
|
@@ -2479,34 +2407,11 @@ declare function useTokens(): {
|
|
2479
2407
|
15: string;
|
2480
2408
|
};
|
2481
2409
|
};
|
2482
|
-
palette: {
|
2483
|
-
|
2484
|
-
|
2485
|
-
|
2486
|
-
|
2487
|
-
positive: string;
|
2488
|
-
warning: string;
|
2489
|
-
};
|
2490
|
-
background: {
|
2491
|
-
primary: string;
|
2492
|
-
secondary: string;
|
2493
|
-
};
|
2494
|
-
foreground: {
|
2495
|
-
primary: string;
|
2496
|
-
secondary: string;
|
2497
|
-
tertiary: string;
|
2498
|
-
muted: string;
|
2499
|
-
"on-color": string;
|
2500
|
-
};
|
2501
|
-
line: {
|
2502
|
-
primary: string;
|
2503
|
-
secondary: string;
|
2504
|
-
tertiary: string;
|
2505
|
-
muted: string;
|
2506
|
-
};
|
2507
|
-
};
|
2508
|
-
button?: ButtonConfig | undefined;
|
2509
|
-
fontFamilyGlobal: FontFamilyGlobalConfig;
|
2410
|
+
palette: { [key in keyof PaletteConfig]: { [key2 in keyof PaletteConfig[key]]: string; }; };
|
2411
|
+
version: string;
|
2412
|
+
button: ButtonConfig;
|
2413
|
+
iconButton: IconButtonConfig;
|
2414
|
+
motion: MotionConfig;
|
2510
2415
|
};
|
2511
2416
|
|
2512
2417
|
interface ThemeProviderProps extends React.PropsWithChildren {
|
@@ -2516,4 +2421,4 @@ interface ThemeProviderProps extends React.PropsWithChildren {
|
|
2516
2421
|
}
|
2517
2422
|
declare function ThemeProvider({ children, colorModeForApp, scaleModeForApp, config, }: ThemeProviderProps): react_jsx_runtime.JSX.Element;
|
2518
2423
|
|
2519
|
-
export {
|
2424
|
+
export { AvatarSizeConfig, BorderRadiusConfig, BorderWidthConfig, Box, type BoxProps, ButtonBaseConfig, ButtonConfig, ButtonKind, ColorMode, ColorModeContext, ColorModeForApp, ColorModeForAppContext, ColorModeForAppContextUpdater, ColorModeForAppProvider, type ColorModeForAppProviderProps, ColorModeForDeviceContext, ColorModeForDeviceProvider, type ColorModeForDeviceProviderProps, ColorModeProvider, type ColorModeProviderProps, type Combination, type CombinationsConfig, ComputedTokensContext, ComputedTokensProvider, type ComputedTokensProviderProps, CorePaletteAlias, DEFAULT_STYLER, FontFamilyConfig, FontSizeConfig, FontWeightConfig, HStack, type HStackProps, Icon, IconButtonConfig, type IconProps, IconSizeConfig, LineHeightConfig, Modes, MotionConfig, PaletteConfig, type ReactNativeStyle, ScaleMode, ScaleModeContext, ScaleModeForApp, ScaleModeForAppContext, ScaleModeForAppProvider, type ScaleModeForAppProviderProps, ScaleModeForAppUpdaterContext, ScaleModeForDeviceContext, ScaleModeForDeviceProvider, type ScaleModeForDeviceProviderProps, ScaleModeProvider, type ScaleModeProviderProps, Screen, type ScreenProps, type SetState, StyleProps, StyleProvider, Text, type TextProps, type TextPropsOriginal, TextTransformConfig, ThemeProvider, type ThemeProviderProps, UniversalBoxProps, UniversalIconProps, UniversalStackProps, UniversalTextProps, UniversalTokensConfig, VStack, type VStackProps, button, createStyler, entries, fromEntries, generateConfigCombinations, getDefaultButtonBaseMap, mapValues, useAppState, useColorMode, useColorModeForApp, useColorModeForDevice, useComputedTokens, useDeviceFontScale, useScaleMode, useScaleModeForDevice, useStyles, useTokens, variants };
|