@yahoo/uds 0.5.8 → 0.5.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cli/README.md +1 -0
- 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 +6 -0
- package/cli/commands/purge.ts +6 -2
- package/cli/compile.ts +35 -0
- package/cli/consts.ts +9 -0
- package/cli/exec.ts +34 -0
- package/cli/tsconfig.json +1 -0
- package/cli/uds-cli +32 -6
- package/cli/utils/configWorker.ts +2 -0
- package/cli/utils/purgeCSS.test.ts +1 -1
- package/cli/utils/purgeCSS.ts +31 -11
- package/dist/{Image.native-No-SNzS_.d.cts → Image.native-BhqVvnKU.d.cts} +1 -1
- package/dist/{Image.native-taa2jsQc.d.ts → Image.native-DZW5ek69.d.ts} +1 -1
- package/dist/{VStack-pgMJmuKn.d.ts → VStack-BohShRVo.d.ts} +1 -1
- package/dist/{VStack-B4TMNdfk.d.cts → VStack-C6VjEoRP.d.cts} +1 -1
- package/dist/experimental/index.cjs +2 -2
- package/dist/experimental/index.d.cts +2 -2
- package/dist/experimental/index.d.ts +2 -2
- package/dist/experimental/index.js +2 -2
- package/dist/experimental/index.native.d.cts +3 -3
- package/dist/experimental/index.native.d.ts +3 -3
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +5 -5
- package/dist/index.d.ts +5 -5
- package/dist/index.js +2 -2
- package/dist/{index.native-WZqIALTD.d.cts → index.native-dtcAO8DN.d.cts} +1 -1
- package/dist/{index.native-BzvT-a_y.d.ts → index.native-uBCD4Hr4.d.ts} +1 -1
- package/dist/index.native.cjs +1 -1
- package/dist/index.native.d.cts +31 -5
- package/dist/index.native.d.ts +31 -5
- package/dist/index.native.js +1 -1
- package/dist/metafile-cjs.json +1 -1
- package/dist/metafile-esm.json +1 -1
- package/dist/tailwind/plugin.cjs +1 -1
- package/dist/tailwind/plugin.d.cts +1 -1
- package/dist/tailwind/plugin.d.ts +1 -1
- package/dist/tailwind/plugin.js +3 -3
- package/dist/tailwind/purger.cjs +2 -2
- package/dist/tailwind/purger.js +2 -2
- package/dist/tailwind/tsMorph.cjs +1 -1
- package/dist/tailwind/tsMorph.js +2 -2
- package/dist/tokens/index.cjs +1 -1
- package/dist/tokens/index.d.cts +29 -3
- package/dist/tokens/index.d.ts +29 -3
- package/dist/tokens/index.js +2 -2
- package/dist/tokens/index.native.d.cts +2 -2
- package/dist/tokens/index.native.d.ts +2 -2
- package/dist/tokens/parseTokens.cjs +1 -1
- package/dist/tokens/parseTokens.d.cts +1 -1
- package/dist/tokens/parseTokens.d.ts +1 -1
- package/dist/tokens/parseTokens.js +1 -1
- package/dist/{types-CHw8YXrX.d.cts → types-BE7_GGFX.d.cts} +1 -1
- package/dist/{types-CHw8YXrX.d.ts → types-BE7_GGFX.d.ts} +1 -1
- package/dist/{types-FhFpiSwO.d.cts → types-D0b0TPQ4.d.cts} +1 -1
- package/dist/{types-FhFpiSwO.d.ts → types-D0b0TPQ4.d.ts} +1 -1
- package/package.json +199 -198
package/dist/index.native.d.cts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
2
|
import { Dispatch, SetStateAction } from 'react';
|
|
3
|
-
import { B as ButtonConfig, e as UniversalBoxProps, f as UniversalStackProps, g as UniversalTextProps, h as UniversalIconProps, C as ColorModeForApp, i as ColorMode, S as ScaleModeForApp, j as ScaleMode, M as Modes, k as UniversalTokensConfig, l as StyleProps, A as AvatarSizeConfig, I as IconSizeConfig, m as BorderRadiusConfig, n as BorderWidthConfig, F as FontFamilyConfig, o as FontSizeConfig, p as FontWeightConfig, L as LineHeightConfig, T as TextTransformConfig, q as FontFamilyGlobalConfig } from './types-
|
|
4
|
-
export { s as AlwaysPalette, t as AlwaysPaletteAlias, u as Animation, v as AriaAttribute, w as AvatarShape, x as AvatarSize, y as BackgroundColor, z as BackgroundPalette, D as BackgroundPaletteAlias, E as BackgroundStyleProps, G as BorderRadius, H as BorderStyleProps, J as BorderWidth, K as BoxShadowConfig, N as ButtonCategory, O as ButtonSize, P as
|
|
3
|
+
import { B as ButtonConfig, e as UniversalBoxProps, f as UniversalStackProps, g as UniversalTextProps, h as UniversalIconProps, C as ColorModeForApp, i as ColorMode, S as ScaleModeForApp, j as ScaleMode, M as Modes, k as UniversalTokensConfig, l as StyleProps, A as AvatarSizeConfig, I as IconSizeConfig, m as BorderRadiusConfig, n as BorderWidthConfig, F as FontFamilyConfig, o as FontSizeConfig, p as FontWeightConfig, L as LineHeightConfig, T as TextTransformConfig, q as FontFamilyGlobalConfig } from './types-BE7_GGFX.cjs';
|
|
4
|
+
export { s as AlwaysPalette, t as AlwaysPaletteAlias, u as Animation, v as AriaAttribute, w as AvatarShape, x as AvatarSize, y as BackgroundColor, z as BackgroundPalette, D as BackgroundPaletteAlias, E as BackgroundStyleProps, G as BorderRadius, H as BorderStyleProps, J as BorderWidth, K as BoxShadowConfig, N as ButtonCategory, O as ButtonSize, P as ButtonState, Q as ButtonVariant, R as ButtonVariant2, V as ColorModeConfig, W as ColorsConfig, X as ConfigurableTextProperty, Y as CorePalette, Z as CorePaletteAlias, _ as CustomSizingStyleProps, $ as DataAttribute, a0 as Display, a1 as Flex, a2 as FlexAlignContent, a3 as FlexAlignItems, a4 as FlexAlignSelf, a5 as FlexBasis, a6 as FlexDirection, a7 as FlexGrow, a8 as FlexJustifyContent, a9 as FlexShrink, aa as FlexStyleProps, ab as FlexWrap, ac as FontFamilyGlobalAlias, ad as FontSize, ae as FontWeightDescriptive, af as FontWeightNumeric, ag as ForegroundColor, ah as ForegroundPalette, ai as ForegroundPaletteAlias, aj as HighContrastMode, ak as Hue, al as HueStep, am as IconSize, an as ImageStyleProps, ao as LayoutStyleProps, ap as LetterSpacing, aq as LineClampAlias, ar as LineColor, as as LineHeight, at as LinePalette, au as LinePaletteAlias, av as Overflow, aw as Palette, ax as PaletteConfig, ay as PaletteType, az as PaletteValue, aA as PlatformMode, aB as Position, aC as RegionMode, aD as ScaleConfig, aE as ScaleModeConfig, aF as SpacingAlias, aG as SpacingConfig, aH as SpacingStyleProps, aI as SpectrumColor, aJ as SpectrumConfig, aK as StateStyleProps, aR as TShirtSize, aS as TShirtSizeCommon, aL as TextStyleProps, aM as TextTransform, aN as TextVariant, aO as TransitionDelay, aP as TransitionDuration, aQ as TransitionTiming, U as UniversalAvatarProps, a as UniversalButtonProps, c as UniversalIconButtonProps, d as UniversalImageProps, b as UniversalPressableProps, aT as UniversalTextInputProps, r as alwaysPalette } from './types-BE7_GGFX.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-BhqVvnKU.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 { 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-
|
|
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-dtcAO8DN.cjs';
|
|
11
11
|
|
|
12
12
|
declare const variants: {
|
|
13
13
|
color: {
|
|
@@ -1102,11 +1102,37 @@ declare const FONT_SANS_BETA_CSS_VAR = "--uds-font-sans-beta";
|
|
|
1102
1102
|
declare const FONT_SANS_CONDENSED_CSS_VAR = "--uds-font-sans-condensed";
|
|
1103
1103
|
declare const FONT_SERIF_DISPLAY_CSS_VAR = "--uds-font-serif-display";
|
|
1104
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
|
+
};
|
|
1119
|
+
declare const PSUEDO_STYLE_SELECTOR_MAP: {
|
|
1120
|
+
readonly hover: "&:hover:not([disabled])";
|
|
1121
|
+
readonly pressed: "&:active:not([disabled])";
|
|
1122
|
+
readonly disabled: "&:disabled";
|
|
1123
|
+
};
|
|
1105
1124
|
|
|
1106
1125
|
declare function entries<T>(item: T): [Extract<keyof T, string>, T[keyof T]][];
|
|
1107
1126
|
|
|
1108
1127
|
declare function fromEntries<T extends string, K>(item: [T, K][]): Record<T, K>;
|
|
1109
1128
|
|
|
1129
|
+
interface CombinationsConfig extends Exclude<ButtonConfig, 'defaults'> {
|
|
1130
|
+
}
|
|
1131
|
+
type Combination<T extends CombinationsConfig> = {
|
|
1132
|
+
[K in keyof T]: keyof T[K];
|
|
1133
|
+
};
|
|
1134
|
+
declare function generateConfigCombinations(config: CombinationsConfig): Combination<CombinationsConfig>[];
|
|
1135
|
+
|
|
1110
1136
|
type AnyObject = Record<string, unknown>;
|
|
1111
1137
|
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>; };
|
|
1112
1138
|
|
|
@@ -2489,4 +2515,4 @@ interface ThemeProviderProps extends React.PropsWithChildren {
|
|
|
2489
2515
|
}
|
|
2490
2516
|
declare function ThemeProvider({ children, colorModeForApp, scaleModeForApp, config, }: ThemeProviderProps): react_jsx_runtime.JSX.Element;
|
|
2491
2517
|
|
|
2492
|
-
export { AVATAR_SIZE_PREFIX, AvatarSizeConfig, BORDER_RADIUS_PREFIX, BORDER_WIDTH_PREFIX, BorderRadiusConfig, BorderWidthConfig, Box, type BoxProps, ButtonConfig, ColorMode, ColorModeContext, ColorModeForApp, ColorModeForAppContext, ColorModeForAppContextUpdater, ColorModeForAppProvider, type ColorModeForAppProviderProps, ColorModeForDeviceContext, ColorModeForDeviceProvider, type ColorModeForDeviceProviderProps, ColorModeProvider, type ColorModeProviderProps, ComputedTokensContext, ComputedTokensProvider, type ComputedTokensProviderProps, DARK_COLOR_MODE_CLASSNAME, DEFAULT_COLOR_MODE_CLASSNAME, DEFAULT_SCALE_MODE_CLASSNAME, DEFAULT_STYLER, 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, FontFamilyConfig, FontFamilyGlobalConfig, FontSizeConfig, FontWeightConfig, HStack, type HStackProps, ICON_SIZE_PREFIX, Icon, type IconProps, IconSizeConfig, LARGE_SCALE_MODE_CLASSNAME, LIGHT_COLOR_MODE_CLASSNAME, LINE_HEIGHT_PREFIX, LineHeightConfig, MEDIUM_SCALE_MODE_CLASSNAME, Modes, type ReactNativeStyle, SMALL_SCALE_MODE_CLASSNAME, SPECTRUM_COLOR_PREFIX, ScaleMode, ScaleModeContext, ScaleModeForApp, ScaleModeForAppContext, ScaleModeForAppProvider, type ScaleModeForAppProviderProps, ScaleModeForAppUpdaterContext, ScaleModeForDeviceContext, ScaleModeForDeviceProvider, type ScaleModeForDeviceProviderProps, ScaleModeProvider, type ScaleModeProviderProps, Screen, type ScreenProps, type SetState, StyleProps, StyleProvider, TEXT_TRANSFORM_PREFIX, Text, type TextProps, type TextPropsOriginal, TextTransformConfig, ThemeProvider, type ThemeProviderProps, UDS_PREFIX, UniversalBoxProps, UniversalIconProps, UniversalStackProps, UniversalTextProps, UniversalTokensConfig, VStack, type VStackProps, XLARGE_SCALE_MODE_CLASSNAME, XSMALL_SCALE_MODE_CLASSNAME, XXLARGE_SCALE_MODE_CLASSNAME, XXXLARGE_SCALE_MODE_CLASSNAME, button, createStyler, entries, fromEntries, mapValues, useAppState, useColorMode, useColorModeForApp, useColorModeForDevice, useComputedTokens, useDeviceFontScale, useScaleMode, useScaleModeForDevice, useStyles, useTokens, variants };
|
|
2518
|
+
export { AVATAR_SIZE_PREFIX, AvatarSizeConfig, BORDER_RADIUS_PREFIX, BORDER_WIDTH_PREFIX, BUTTON_CSS_VAR_MAP, BorderRadiusConfig, BorderWidthConfig, Box, type BoxProps, ButtonConfig, ColorMode, ColorModeContext, ColorModeForApp, ColorModeForAppContext, ColorModeForAppContextUpdater, ColorModeForAppProvider, type ColorModeForAppProviderProps, ColorModeForDeviceContext, ColorModeForDeviceProvider, type ColorModeForDeviceProviderProps, ColorModeProvider, type ColorModeProviderProps, type Combination, type CombinationsConfig, ComputedTokensContext, ComputedTokensProvider, type ComputedTokensProviderProps, DARK_COLOR_MODE_CLASSNAME, DEFAULT_COLOR_MODE_CLASSNAME, DEFAULT_SCALE_MODE_CLASSNAME, DEFAULT_STYLER, 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, FontFamilyConfig, FontFamilyGlobalConfig, FontSizeConfig, FontWeightConfig, HStack, type HStackProps, ICON_SIZE_PREFIX, Icon, type IconProps, IconSizeConfig, LARGE_SCALE_MODE_CLASSNAME, LIGHT_COLOR_MODE_CLASSNAME, LINE_HEIGHT_PREFIX, LineHeightConfig, MEDIUM_SCALE_MODE_CLASSNAME, Modes, PSUEDO_STYLE_SELECTOR_MAP, type ReactNativeStyle, SMALL_SCALE_MODE_CLASSNAME, SPECTRUM_COLOR_PREFIX, ScaleMode, ScaleModeContext, ScaleModeForApp, ScaleModeForAppContext, ScaleModeForAppProvider, type ScaleModeForAppProviderProps, ScaleModeForAppUpdaterContext, ScaleModeForDeviceContext, ScaleModeForDeviceProvider, type ScaleModeForDeviceProviderProps, ScaleModeProvider, type ScaleModeProviderProps, Screen, type ScreenProps, type SetState, StyleProps, StyleProvider, TEXT_TRANSFORM_PREFIX, Text, type TextProps, type TextPropsOriginal, TextTransformConfig, ThemeProvider, type ThemeProviderProps, UDS_PREFIX, UniversalBoxProps, UniversalIconProps, UniversalStackProps, UniversalTextProps, UniversalTokensConfig, VStack, type VStackProps, XLARGE_SCALE_MODE_CLASSNAME, XSMALL_SCALE_MODE_CLASSNAME, XXLARGE_SCALE_MODE_CLASSNAME, XXXLARGE_SCALE_MODE_CLASSNAME, button, createStyler, entries, fromEntries, generateConfigCombinations, mapValues, useAppState, useColorMode, useColorModeForApp, useColorModeForDevice, useComputedTokens, useDeviceFontScale, useScaleMode, useScaleModeForDevice, useStyles, useTokens, variants };
|
package/dist/index.native.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
2
|
import { Dispatch, SetStateAction } from 'react';
|
|
3
|
-
import { B as ButtonConfig, e as UniversalBoxProps, f as UniversalStackProps, g as UniversalTextProps, h as UniversalIconProps, C as ColorModeForApp, i as ColorMode, S as ScaleModeForApp, j as ScaleMode, M as Modes, k as UniversalTokensConfig, l as StyleProps, A as AvatarSizeConfig, I as IconSizeConfig, m as BorderRadiusConfig, n as BorderWidthConfig, F as FontFamilyConfig, o as FontSizeConfig, p as FontWeightConfig, L as LineHeightConfig, T as TextTransformConfig, q as FontFamilyGlobalConfig } from './types-
|
|
4
|
-
export { s as AlwaysPalette, t as AlwaysPaletteAlias, u as Animation, v as AriaAttribute, w as AvatarShape, x as AvatarSize, y as BackgroundColor, z as BackgroundPalette, D as BackgroundPaletteAlias, E as BackgroundStyleProps, G as BorderRadius, H as BorderStyleProps, J as BorderWidth, K as BoxShadowConfig, N as ButtonCategory, O as ButtonSize, P as
|
|
3
|
+
import { B as ButtonConfig, e as UniversalBoxProps, f as UniversalStackProps, g as UniversalTextProps, h as UniversalIconProps, C as ColorModeForApp, i as ColorMode, S as ScaleModeForApp, j as ScaleMode, M as Modes, k as UniversalTokensConfig, l as StyleProps, A as AvatarSizeConfig, I as IconSizeConfig, m as BorderRadiusConfig, n as BorderWidthConfig, F as FontFamilyConfig, o as FontSizeConfig, p as FontWeightConfig, L as LineHeightConfig, T as TextTransformConfig, q as FontFamilyGlobalConfig } from './types-BE7_GGFX.js';
|
|
4
|
+
export { s as AlwaysPalette, t as AlwaysPaletteAlias, u as Animation, v as AriaAttribute, w as AvatarShape, x as AvatarSize, y as BackgroundColor, z as BackgroundPalette, D as BackgroundPaletteAlias, E as BackgroundStyleProps, G as BorderRadius, H as BorderStyleProps, J as BorderWidth, K as BoxShadowConfig, N as ButtonCategory, O as ButtonSize, P as ButtonState, Q as ButtonVariant, R as ButtonVariant2, V as ColorModeConfig, W as ColorsConfig, X as ConfigurableTextProperty, Y as CorePalette, Z as CorePaletteAlias, _ as CustomSizingStyleProps, $ as DataAttribute, a0 as Display, a1 as Flex, a2 as FlexAlignContent, a3 as FlexAlignItems, a4 as FlexAlignSelf, a5 as FlexBasis, a6 as FlexDirection, a7 as FlexGrow, a8 as FlexJustifyContent, a9 as FlexShrink, aa as FlexStyleProps, ab as FlexWrap, ac as FontFamilyGlobalAlias, ad as FontSize, ae as FontWeightDescriptive, af as FontWeightNumeric, ag as ForegroundColor, ah as ForegroundPalette, ai as ForegroundPaletteAlias, aj as HighContrastMode, ak as Hue, al as HueStep, am as IconSize, an as ImageStyleProps, ao as LayoutStyleProps, ap as LetterSpacing, aq as LineClampAlias, ar as LineColor, as as LineHeight, at as LinePalette, au as LinePaletteAlias, av as Overflow, aw as Palette, ax as PaletteConfig, ay as PaletteType, az as PaletteValue, aA as PlatformMode, aB as Position, aC as RegionMode, aD as ScaleConfig, aE as ScaleModeConfig, aF as SpacingAlias, aG as SpacingConfig, aH as SpacingStyleProps, aI as SpectrumColor, aJ as SpectrumConfig, aK as StateStyleProps, aR as TShirtSize, aS as TShirtSizeCommon, aL as TextStyleProps, aM as TextTransform, aN as TextVariant, aO as TransitionDelay, aP as TransitionDuration, aQ as TransitionTiming, U as UniversalAvatarProps, a as UniversalButtonProps, c as UniversalIconButtonProps, d as UniversalImageProps, b as UniversalPressableProps, aT as UniversalTextInputProps, r as alwaysPalette } from './types-BE7_GGFX.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-DZW5ek69.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 { 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-
|
|
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-uBCD4Hr4.js';
|
|
11
11
|
|
|
12
12
|
declare const variants: {
|
|
13
13
|
color: {
|
|
@@ -1102,11 +1102,37 @@ declare const FONT_SANS_BETA_CSS_VAR = "--uds-font-sans-beta";
|
|
|
1102
1102
|
declare const FONT_SANS_CONDENSED_CSS_VAR = "--uds-font-sans-condensed";
|
|
1103
1103
|
declare const FONT_SERIF_DISPLAY_CSS_VAR = "--uds-font-serif-display";
|
|
1104
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
|
+
};
|
|
1119
|
+
declare const PSUEDO_STYLE_SELECTOR_MAP: {
|
|
1120
|
+
readonly hover: "&:hover:not([disabled])";
|
|
1121
|
+
readonly pressed: "&:active:not([disabled])";
|
|
1122
|
+
readonly disabled: "&:disabled";
|
|
1123
|
+
};
|
|
1105
1124
|
|
|
1106
1125
|
declare function entries<T>(item: T): [Extract<keyof T, string>, T[keyof T]][];
|
|
1107
1126
|
|
|
1108
1127
|
declare function fromEntries<T extends string, K>(item: [T, K][]): Record<T, K>;
|
|
1109
1128
|
|
|
1129
|
+
interface CombinationsConfig extends Exclude<ButtonConfig, 'defaults'> {
|
|
1130
|
+
}
|
|
1131
|
+
type Combination<T extends CombinationsConfig> = {
|
|
1132
|
+
[K in keyof T]: keyof T[K];
|
|
1133
|
+
};
|
|
1134
|
+
declare function generateConfigCombinations(config: CombinationsConfig): Combination<CombinationsConfig>[];
|
|
1135
|
+
|
|
1110
1136
|
type AnyObject = Record<string, unknown>;
|
|
1111
1137
|
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>; };
|
|
1112
1138
|
|
|
@@ -2489,4 +2515,4 @@ interface ThemeProviderProps extends React.PropsWithChildren {
|
|
|
2489
2515
|
}
|
|
2490
2516
|
declare function ThemeProvider({ children, colorModeForApp, scaleModeForApp, config, }: ThemeProviderProps): react_jsx_runtime.JSX.Element;
|
|
2491
2517
|
|
|
2492
|
-
export { AVATAR_SIZE_PREFIX, AvatarSizeConfig, BORDER_RADIUS_PREFIX, BORDER_WIDTH_PREFIX, BorderRadiusConfig, BorderWidthConfig, Box, type BoxProps, ButtonConfig, ColorMode, ColorModeContext, ColorModeForApp, ColorModeForAppContext, ColorModeForAppContextUpdater, ColorModeForAppProvider, type ColorModeForAppProviderProps, ColorModeForDeviceContext, ColorModeForDeviceProvider, type ColorModeForDeviceProviderProps, ColorModeProvider, type ColorModeProviderProps, ComputedTokensContext, ComputedTokensProvider, type ComputedTokensProviderProps, DARK_COLOR_MODE_CLASSNAME, DEFAULT_COLOR_MODE_CLASSNAME, DEFAULT_SCALE_MODE_CLASSNAME, DEFAULT_STYLER, 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, FontFamilyConfig, FontFamilyGlobalConfig, FontSizeConfig, FontWeightConfig, HStack, type HStackProps, ICON_SIZE_PREFIX, Icon, type IconProps, IconSizeConfig, LARGE_SCALE_MODE_CLASSNAME, LIGHT_COLOR_MODE_CLASSNAME, LINE_HEIGHT_PREFIX, LineHeightConfig, MEDIUM_SCALE_MODE_CLASSNAME, Modes, type ReactNativeStyle, SMALL_SCALE_MODE_CLASSNAME, SPECTRUM_COLOR_PREFIX, ScaleMode, ScaleModeContext, ScaleModeForApp, ScaleModeForAppContext, ScaleModeForAppProvider, type ScaleModeForAppProviderProps, ScaleModeForAppUpdaterContext, ScaleModeForDeviceContext, ScaleModeForDeviceProvider, type ScaleModeForDeviceProviderProps, ScaleModeProvider, type ScaleModeProviderProps, Screen, type ScreenProps, type SetState, StyleProps, StyleProvider, TEXT_TRANSFORM_PREFIX, Text, type TextProps, type TextPropsOriginal, TextTransformConfig, ThemeProvider, type ThemeProviderProps, UDS_PREFIX, UniversalBoxProps, UniversalIconProps, UniversalStackProps, UniversalTextProps, UniversalTokensConfig, VStack, type VStackProps, XLARGE_SCALE_MODE_CLASSNAME, XSMALL_SCALE_MODE_CLASSNAME, XXLARGE_SCALE_MODE_CLASSNAME, XXXLARGE_SCALE_MODE_CLASSNAME, button, createStyler, entries, fromEntries, mapValues, useAppState, useColorMode, useColorModeForApp, useColorModeForDevice, useComputedTokens, useDeviceFontScale, useScaleMode, useScaleModeForDevice, useStyles, useTokens, variants };
|
|
2518
|
+
export { AVATAR_SIZE_PREFIX, AvatarSizeConfig, BORDER_RADIUS_PREFIX, BORDER_WIDTH_PREFIX, BUTTON_CSS_VAR_MAP, BorderRadiusConfig, BorderWidthConfig, Box, type BoxProps, ButtonConfig, ColorMode, ColorModeContext, ColorModeForApp, ColorModeForAppContext, ColorModeForAppContextUpdater, ColorModeForAppProvider, type ColorModeForAppProviderProps, ColorModeForDeviceContext, ColorModeForDeviceProvider, type ColorModeForDeviceProviderProps, ColorModeProvider, type ColorModeProviderProps, type Combination, type CombinationsConfig, ComputedTokensContext, ComputedTokensProvider, type ComputedTokensProviderProps, DARK_COLOR_MODE_CLASSNAME, DEFAULT_COLOR_MODE_CLASSNAME, DEFAULT_SCALE_MODE_CLASSNAME, DEFAULT_STYLER, 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, FontFamilyConfig, FontFamilyGlobalConfig, FontSizeConfig, FontWeightConfig, HStack, type HStackProps, ICON_SIZE_PREFIX, Icon, type IconProps, IconSizeConfig, LARGE_SCALE_MODE_CLASSNAME, LIGHT_COLOR_MODE_CLASSNAME, LINE_HEIGHT_PREFIX, LineHeightConfig, MEDIUM_SCALE_MODE_CLASSNAME, Modes, PSUEDO_STYLE_SELECTOR_MAP, type ReactNativeStyle, SMALL_SCALE_MODE_CLASSNAME, SPECTRUM_COLOR_PREFIX, ScaleMode, ScaleModeContext, ScaleModeForApp, ScaleModeForAppContext, ScaleModeForAppProvider, type ScaleModeForAppProviderProps, ScaleModeForAppUpdaterContext, ScaleModeForDeviceContext, ScaleModeForDeviceProvider, type ScaleModeForDeviceProviderProps, ScaleModeProvider, type ScaleModeProviderProps, Screen, type ScreenProps, type SetState, StyleProps, StyleProvider, TEXT_TRANSFORM_PREFIX, Text, type TextProps, type TextPropsOriginal, TextTransformConfig, ThemeProvider, type ThemeProviderProps, UDS_PREFIX, UniversalBoxProps, UniversalIconProps, UniversalStackProps, UniversalTextProps, UniversalTokensConfig, VStack, type VStackProps, XLARGE_SCALE_MODE_CLASSNAME, XSMALL_SCALE_MODE_CLASSNAME, XXLARGE_SCALE_MODE_CLASSNAME, XXXLARGE_SCALE_MODE_CLASSNAME, button, createStyler, entries, fromEntries, generateConfigCombinations, mapValues, useAppState, useColorMode, useColorModeForApp, useColorModeForDevice, useComputedTokens, useDeviceFontScale, useScaleMode, useScaleModeForDevice, useStyles, useTokens, variants };
|