@yahoo/uds 0.1.18 → 0.1.20
Sign up to get free protection for your applications and to get access to all the features.
- package/cli/README.md +1 -1
- package/dist/fixtures/index.cjs +1 -1
- package/dist/fixtures/index.d.cts +5 -4
- package/dist/fixtures/index.d.ts +5 -4
- package/dist/fixtures/index.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +67 -66
- package/dist/index.d.ts +67 -66
- package/dist/index.js +1 -1
- package/dist/{index.native-fciGC1AQ.d.cts → index.native-C5-xv9Na.d.cts} +1 -1
- package/dist/{index.native-hIYZ_ma-.d.ts → index.native-DqJv5EjY.d.ts} +1 -1
- package/dist/index.native.cjs +1 -1
- package/dist/index.native.d.cts +13 -13
- package/dist/index.native.d.ts +13 -13
- package/dist/index.native.js +1 -1
- package/dist/styles/fonts.css +1 -1
- 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/tailwindPurge.cjs +1 -1
- package/dist/tailwindPurge.js +1 -1
- package/dist/tokens/index.cjs +1 -1
- package/dist/tokens/index.d.cts +5 -4
- package/dist/tokens/index.d.ts +5 -4
- package/dist/tokens/index.js +1 -1
- package/dist/tokens/index.native.cjs +1 -1
- package/dist/tokens/index.native.d.cts +2 -2
- package/dist/tokens/index.native.d.ts +2 -2
- package/dist/tokens/index.native.js +1 -1
- package/dist/tokens/parseTokens.cjs +1 -1
- package/dist/tokens/parseTokens.d.cts +8 -11
- package/dist/tokens/parseTokens.d.ts +8 -11
- package/dist/tokens/parseTokens.js +1 -1
- package/dist/tokens/parseTokens.native.d.cts +1 -1
- package/dist/tokens/parseTokens.native.d.ts +1 -1
- package/dist/{types-_E6o7OhU.d.cts → types-ZrxnB4cM.d.cts} +27 -46
- package/dist/{types-_E6o7OhU.d.ts → types-ZrxnB4cM.d.ts} +27 -46
- package/fonts/yahoo-icons.woff2 +0 -0
- package/package.json +4 -5
- /package/dist/{types-3GXulqnG.d.cts → types-BO2kLynl.d.cts} +0 -0
- /package/dist/{types-3GXulqnG.d.ts → types-BO2kLynl.d.ts} +0 -0
package/dist/index.d.cts
CHANGED
@@ -1,24 +1,50 @@
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
2
|
-
import { k as UniversalAvatarProps, l as UniversalBoxProps, m as UniversalPressableProps, n as UniversalButtonProps, ay as IconName, p as UniversalTextProps, aK as Overflow, ab as ButtonVariant, aa as ButtonSize, o as UniversalStackProps, q as UniversalIconProps, r as UniversalIconButtonProps, au as ForegroundColor, j as UniversalImageProps, af as Display, b0 as UniversalTextInputProps } from './types-_E6o7OhU.cjs';
|
3
|
-
export { _ as AlwaysPalette, $ as AlwaysPaletteAlias, a0 as Animation, a1 as AriaAttribute, a2 as AspectRatio, a3 as AspectRatioConfig, a4 as AvatarSize, G as AvatarSizeConfig, a5 as BackgroundColor, d as BackgroundPalette, a6 as BackgroundPaletteAlias, v as BackgroundStyleProps, e as BackgroundWashPalette, a7 as BackgroundWashPaletteAlias, w as BorderStyleProps, a8 as BorderWidth, B as BorderWidthConfig, a9 as BoxShadowConfig, C as ColorMode, s as ColorModeForApp, a as ColorsConfig, ac as ConfigurableTextProperty, c as CorePalette, ad as CorePaletteAlias, D as CustomSizingStyleProps, ae as DataAttribute, h as Elevation, E as ElevationConfig, ag as ElevationPaletteAlias, ah as Flex, ai as FlexAlignContent, aj as FlexAlignItems, ak as FlexAlignSelf, al as FlexBasis, am as FlexDirection, an as FlexGrow, ao as FlexJustifyContent, ap as FlexShrink, y as FlexStyleProps, aq as FlexWrap, Q as FontFamilyConfig, ar as FontFamilyGlobalAlias, i as FontFamilyGlobalConfig, as as FontSize, R as FontSizeConfig, f as FontWeightConfig, at as FontWeightDescriptive, g as FontWeightNumeric, F as ForegroundPalette, av as ForegroundPaletteAlias, aw as Height, ax as HighContrastMode, H as Hue, b as HueStep, az as IconSize, J as IconSizeConfig, I as ImageStyleProps, x as LayoutStyleProps, aA as LetterSpacing, aB as LineClampAlias, aC as LineColor, aD as LineHeight, V as LineHeightConfig, L as LinePalette, aE as LinePaletteAlias, aF as MaxHeight, aG as MaxWidth, aH as MinHeight, aI as MinWidth, M as Modes, aJ as Opacity, O as OpacityStyleProps, aL as Palette, aM as PaletteConfig, aN as PaletteType, P as PaletteValue, aO as PlatformMode, aP as Position, aQ as RegionMode, aR as ScaleConfig, S as ScaleMode, u as ScaleModeConfig, t as ScaleModeForApp, aS as Shape, N as ShapeConfig, A as SizingStyleProps, aT as SpacingAlias, K as SpacingConfig, z as SpacingStyleProps, aU as SpectrumColor, aV as SpectrumConfig, aW as StateStyleProps, X as StyleProps, T as TextStyleProps, aX as TextTransform, W as TextTransformConfig, aY as TextVariant, aZ as TransitionDelay, a_ as TransitionDuration, a$ as TransitionTiming, U as UniversalTokensConfig, b1 as Width, b2 as ZIndex, Z as ZIndexConfig, Y as alwaysPalette } from './types-_E6o7OhU.cjs';
|
4
2
|
import * as react from 'react';
|
5
3
|
import react__default, { PropsWithChildren, TdHTMLAttributes } from 'react';
|
4
|
+
import { l as UniversalPressableProps, j as UniversalAvatarProps, k as UniversalBoxProps, m as UniversalButtonProps, aA as IconName, o as UniversalTextProps, aM as Overflow, ad as ButtonVariant, ac as ButtonSize, n as UniversalStackProps, p as UniversalIconProps, q as UniversalIconButtonProps, aw as ForegroundColor, i as UniversalImageProps, ah as Display, b1 as UniversalTextInputProps } from './types-ZrxnB4cM.cjs';
|
5
|
+
export { _ as AlwaysPalette, $ as AlwaysPaletteAlias, a0 as Animation, a1 as AriaAttribute, a2 as AspectRatio, a3 as AspectRatioConfig, a4 as AvatarShape, a5 as AvatarSize, D as AvatarSizeConfig, a6 as BackgroundColor, B as BackgroundPalette, a7 as BackgroundPaletteAlias, u as BackgroundStyleProps, d as BackgroundWashPalette, a8 as BackgroundWashPaletteAlias, a9 as BorderRadius, K as BorderRadiusConfig, v as BorderStyleProps, aa as BorderWidth, N as BorderWidthConfig, ab as BoxShadowConfig, C as ColorMode, r as ColorModeForApp, a as ColorsConfig, ae as ConfigurableTextProperty, c as CorePalette, af as CorePaletteAlias, A as CustomSizingStyleProps, ag as DataAttribute, g as Elevation, E as ElevationConfig, ai as ElevationPaletteAlias, aj as Flex, ak as FlexAlignContent, al as FlexAlignItems, am as FlexAlignSelf, an as FlexBasis, ao as FlexDirection, ap as FlexGrow, aq as FlexJustifyContent, ar as FlexShrink, x as FlexStyleProps, as as FlexWrap, Q as FontFamilyConfig, at as FontFamilyGlobalAlias, h as FontFamilyGlobalConfig, au as FontSize, R as FontSizeConfig, e as FontWeightConfig, av as FontWeightDescriptive, f as FontWeightNumeric, F as ForegroundPalette, ax as ForegroundPaletteAlias, ay as Height, az as HighContrastMode, H as Hue, b as HueStep, aB as IconSize, G as IconSizeConfig, I as ImageStyleProps, w as LayoutStyleProps, aC as LetterSpacing, aD as LineClampAlias, aE as LineColor, aF as LineHeight, V as LineHeightConfig, L as LinePalette, aG as LinePaletteAlias, aH as MaxHeight, aI as MaxWidth, aJ as MinHeight, aK as MinWidth, M as Modes, aL as Opacity, O as OpacityStyleProps, aN as Palette, aO as PaletteConfig, aP as PaletteType, P as PaletteValue, aQ as PlatformMode, aR as Position, aS as RegionMode, aT as ScaleConfig, S as ScaleMode, t as ScaleModeConfig, s as ScaleModeForApp, z as SizingStyleProps, aU as SpacingAlias, J as SpacingConfig, y as SpacingStyleProps, aV as SpectrumColor, aW as SpectrumConfig, aX as StateStyleProps, X as StyleProps, T as TextStyleProps, aY as TextTransform, W as TextTransformConfig, aZ as TextVariant, a_ as TransitionDelay, a$ as TransitionDuration, b0 as TransitionTiming, U as UniversalTokensConfig, b2 as Width, b3 as ZIndex, Z as ZIndexConfig, Y as alwaysPalette } from './types-ZrxnB4cM.cjs';
|
6
6
|
import * as _ariakit_react from '@ariakit/react';
|
7
7
|
import { PopoverProviderProps, PopoverProps, DialogProps, useDialogStore, DialogStore, DialogDismiss, Popover as Popover$1, PopoverArrow as PopoverArrow$1, PopoverAnchor as PopoverAnchor$1, PopoverDescription as PopoverDescription$1, PopoverDismiss as PopoverDismiss$1, PopoverProvider as PopoverProvider$1, PopoverDisclosure as PopoverDisclosure$1, PopoverDisclosureArrow as PopoverDisclosureArrow$1, TabProviderProps, TabListProps, TabPanelProps } from '@ariakit/react';
|
8
8
|
export { DialogStore as ModalStore, TabListProps, TabPanelProps, TabProviderProps as TabsProps, usePopoverStore } from '@ariakit/react';
|
9
9
|
import { ToastContainerProps } from 'react-toastify';
|
10
10
|
export { toast } from 'react-toastify';
|
11
|
-
import { a as CX, C as CVA } from './types-
|
12
|
-
export { S as SetState } from './types-
|
13
|
-
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-
|
14
|
-
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,
|
11
|
+
import { a as CX, C as CVA } from './types-BO2kLynl.cjs';
|
12
|
+
export { S as SetState } from './types-BO2kLynl.cjs';
|
13
|
+
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-C5-xv9Na.cjs';
|
14
|
+
export { AVATAR_SIZE_PREFIX, BORDER_RADIUS_PREFIX, BORDER_WIDTH_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, 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 } from './tokens/index.cjs';
|
15
15
|
|
16
|
-
|
16
|
+
type HtmlButtonProps = Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, 'color' | 'name'>;
|
17
|
+
interface PressableProps extends UniversalPressableProps, HtmlButtonProps {
|
18
|
+
}
|
19
|
+
/**
|
20
|
+
* Provides press interactions with accessibility support.
|
21
|
+
* @example
|
22
|
+
```tsx
|
23
|
+
import { Pressable, Text } from "@yahoo/uds"
|
24
|
+
|
25
|
+
export function Demo() {
|
26
|
+
return (
|
27
|
+
<Pressable
|
28
|
+
onClick={console.log}
|
29
|
+
backgroundColor="secondary"
|
30
|
+
bordered
|
31
|
+
borderColor="primary"
|
32
|
+
borderRadius="lg"
|
33
|
+
>
|
34
|
+
<Text variant="body1" spacingHorizontal="7" spacingVertical="5">Click me...</Text>
|
35
|
+
</Pressable>
|
36
|
+
)
|
37
|
+
}
|
38
|
+
```
|
39
|
+
*/
|
40
|
+
declare const Pressable: react.ForwardRefExoticComponent<PressableProps & react.RefAttributes<HTMLButtonElement>>;
|
41
|
+
|
42
|
+
interface AccordionProps extends PressableProps {
|
17
43
|
label: string;
|
18
44
|
open?: boolean;
|
19
45
|
onClick?: () => void;
|
20
46
|
}
|
21
|
-
declare function Accordion({ label, children, onClick, open }: AccordionProps): react_jsx_runtime.JSX.Element;
|
47
|
+
declare function Accordion({ label, children, onClick, open, spacingHorizontal, ...pressableProps }: AccordionProps): react_jsx_runtime.JSX.Element;
|
22
48
|
|
23
49
|
type NativeImageProps$1 = Omit<react__default.ImgHTMLAttributes<HTMLImageElement>, 'size' | 'color' | 'height' | 'width' | 'alt' | 'src'>;
|
24
50
|
interface AvatarProps extends NativeImageProps$1, UniversalAvatarProps {
|
@@ -53,32 +79,6 @@ interface BoxProps extends UniversalBoxProps, DivProps$1 {
|
|
53
79
|
*/
|
54
80
|
declare const Box: react.ForwardRefExoticComponent<BoxProps & react.RefAttributes<HTMLDivElement>>;
|
55
81
|
|
56
|
-
type HtmlButtonProps = Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, 'color' | 'name'>;
|
57
|
-
interface PressableProps extends UniversalPressableProps, HtmlButtonProps {
|
58
|
-
}
|
59
|
-
/**
|
60
|
-
* Provides press interactions with accessibility support.
|
61
|
-
* @example
|
62
|
-
```tsx
|
63
|
-
import { Pressable, Text } from "@yahoo/uds"
|
64
|
-
|
65
|
-
export function Demo() {
|
66
|
-
return (
|
67
|
-
<Pressable
|
68
|
-
onClick={console.log}
|
69
|
-
backgroundColor="secondary"
|
70
|
-
bordered
|
71
|
-
borderColor="primary"
|
72
|
-
borderRadius="l"
|
73
|
-
>
|
74
|
-
<Text variant="body1" spacingHorizontal="7" spacingVertical="5">Click me...</Text>
|
75
|
-
</Pressable>
|
76
|
-
)
|
77
|
-
}
|
78
|
-
```
|
79
|
-
*/
|
80
|
-
declare const Pressable: react.ForwardRefExoticComponent<PressableProps & react.RefAttributes<HTMLButtonElement>>;
|
81
|
-
|
82
82
|
interface ButtonProps extends PressableProps, UniversalButtonProps {
|
83
83
|
}
|
84
84
|
/**
|
@@ -490,10 +490,10 @@ type TextProps<As extends TextElement = TextElement> = UniversalTextProps & {
|
|
490
490
|
*/
|
491
491
|
declare const Text: react.ForwardRefExoticComponent<Omit<TextProps<TextElement>, "ref"> & react.RefAttributes<HTMLParagraphElement>>;
|
492
492
|
|
493
|
-
type NativeTextInputProps = Omit<React.InputHTMLAttributes<HTMLInputElement>, 'height' | 'size' | 'width' | ''>;
|
493
|
+
type NativeTextInputProps = Omit<React.InputHTMLAttributes<HTMLInputElement>, 'height' | 'size' | 'width' | 'color'>;
|
494
494
|
interface TextInputProps extends NativeTextInputProps, UniversalTextInputProps {
|
495
495
|
}
|
496
|
-
declare function TextInput({ className, disabled, ...props }: TextInputProps): react_jsx_runtime.JSX.Element;
|
496
|
+
declare function TextInput({ className, disabled, backgroundColor, borderColor, borderWidth, borderRadius, color, placeholderColor, spacingVertical, spacingHorizontal, fontSize: textVariant, ...props }: TextInputProps): react_jsx_runtime.JSX.Element;
|
497
497
|
|
498
498
|
interface TextInputGroupProps extends TextInputProps {
|
499
499
|
label?: string;
|
@@ -573,28 +573,29 @@ declare const cva: CVA<string>;
|
|
573
573
|
declare const getStyles: (props?: ({
|
574
574
|
color?: "transparent" | "accent" | "alert" | "brand" | "positive" | "warning" | "primary" | "secondary" | "tertiary" | "muted" | "on-color" | "white" | "black" | undefined;
|
575
575
|
colorChecked?: "transparent" | "accent" | "alert" | "brand" | "positive" | "warning" | "primary" | "secondary" | "tertiary" | "muted" | "on-color" | "white" | "black" | undefined;
|
576
|
+
placeholderColor?: "transparent" | "accent" | "alert" | "brand" | "positive" | "warning" | "primary" | "secondary" | "tertiary" | "muted" | "on-color" | "white" | "black" | undefined;
|
576
577
|
fontFamily?: "display1" | "title1" | "title2" | "title3" | "title4" | "headline1" | "body1" | "label1" | "label2" | "caption1" | "caption2" | "legal1" | "icons" | "sans" | "sans-beta" | "sans-condensed" | "serif-text" | "serif-display" | undefined;
|
577
578
|
fontSize?: "display1" | "title1" | "title2" | "title3" | "title4" | "headline1" | "body1" | "label1" | "label2" | "caption1" | "caption2" | "legal1" | undefined;
|
578
579
|
fontWeight?: "bold" | "black" | "display1" | "title1" | "title2" | "title3" | "title4" | "headline1" | "body1" | "label1" | "label2" | "caption1" | "caption2" | "legal1" | "thin" | "extralight" | "light" | "regular" | "medium" | "semibold" | "extrabold" | undefined;
|
579
580
|
lineHeight?: "display1" | "title1" | "title2" | "title3" | "title4" | "headline1" | "body1" | "label1" | "label2" | "caption1" | "caption2" | "legal1" | undefined;
|
580
581
|
textAlign?: "center" | "justify" | "start" | "end" | undefined;
|
581
582
|
textTransform?: "display1" | "title1" | "title2" | "title3" | "title4" | "headline1" | "body1" | "label1" | "label2" | "caption1" | "caption2" | "legal1" | "none" | "uppercase" | "lowercase" | "capitalize" | undefined;
|
582
|
-
spacing?: "9" | "
|
583
|
-
spacingHorizontal?: "9" | "
|
584
|
-
spacingVertical?: "9" | "
|
585
|
-
spacingBottom?: "9" | "
|
586
|
-
spacingEnd?: "9" | "
|
587
|
-
spacingStart?: "9" | "
|
588
|
-
spacingTop?: "9" | "
|
589
|
-
offset?: "9" | "
|
590
|
-
offsetVertical?: "9" | "
|
591
|
-
offsetHorizontal?: "9" | "
|
592
|
-
offsetBottom?: "9" | "
|
593
|
-
offsetEnd?: "9" | "
|
594
|
-
offsetStart?: "9" | "
|
595
|
-
offsetTop?: "9" | "
|
596
|
-
columnGap?: "9" | "
|
597
|
-
rowGap?: "9" | "
|
583
|
+
spacing?: "9" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "10" | "11" | "12" | "13" | "14" | "none" | undefined;
|
584
|
+
spacingHorizontal?: "9" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "10" | "11" | "12" | "13" | "14" | "none" | undefined;
|
585
|
+
spacingVertical?: "9" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "10" | "11" | "12" | "13" | "14" | "none" | undefined;
|
586
|
+
spacingBottom?: "9" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "10" | "11" | "12" | "13" | "14" | "none" | undefined;
|
587
|
+
spacingEnd?: "9" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "10" | "11" | "12" | "13" | "14" | "none" | undefined;
|
588
|
+
spacingStart?: "9" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "10" | "11" | "12" | "13" | "14" | "none" | undefined;
|
589
|
+
spacingTop?: "9" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "10" | "11" | "12" | "13" | "14" | "none" | undefined;
|
590
|
+
offset?: "9" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "10" | "11" | "12" | "13" | "14" | "none" | undefined;
|
591
|
+
offsetVertical?: "9" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "10" | "11" | "12" | "13" | "14" | "none" | undefined;
|
592
|
+
offsetHorizontal?: "9" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "10" | "11" | "12" | "13" | "14" | "none" | undefined;
|
593
|
+
offsetBottom?: "9" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "10" | "11" | "12" | "13" | "14" | "none" | undefined;
|
594
|
+
offsetEnd?: "9" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "10" | "11" | "12" | "13" | "14" | "none" | undefined;
|
595
|
+
offsetStart?: "9" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "10" | "11" | "12" | "13" | "14" | "none" | undefined;
|
596
|
+
offsetTop?: "9" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "10" | "11" | "12" | "13" | "14" | "none" | undefined;
|
597
|
+
columnGap?: "9" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "10" | "11" | "12" | "13" | "14" | "none" | undefined;
|
598
|
+
rowGap?: "9" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "10" | "11" | "12" | "13" | "14" | "none" | undefined;
|
598
599
|
backgroundColor?: "transparent" | "accent" | "alert" | "brand" | "positive" | "warning" | "primary" | "secondary" | "white" | "black" | "accent-wash" | "alert-wash" | "brand-wash" | "positive-wash" | "warning-wash" | "elevation-1" | "elevation-2" | "elevation-3" | "elevation-3-inverse" | "overlay" | undefined;
|
599
600
|
backgroundColorOnActive?: "transparent" | "accent" | "alert" | "brand" | "positive" | "warning" | "primary" | "secondary" | "white" | "black" | "accent-wash" | "alert-wash" | "brand-wash" | "positive-wash" | "warning-wash" | "elevation-1" | "elevation-2" | "elevation-3" | "elevation-3-inverse" | "overlay" | undefined;
|
600
601
|
backgroundColorOnHover?: "transparent" | "accent" | "alert" | "brand" | "positive" | "warning" | "primary" | "secondary" | "white" | "black" | "accent-wash" | "alert-wash" | "brand-wash" | "positive-wash" | "warning-wash" | "elevation-1" | "elevation-2" | "elevation-3" | "elevation-3-inverse" | "overlay" | undefined;
|
@@ -611,29 +612,29 @@ declare const getStyles: (props?: ({
|
|
611
612
|
borderEndColor?: "transparent" | "accent" | "alert" | "brand" | "positive" | "warning" | "primary" | "secondary" | "tertiary" | "muted" | "white" | "black" | undefined;
|
612
613
|
borderBottomColor?: "transparent" | "accent" | "alert" | "brand" | "positive" | "warning" | "primary" | "secondary" | "tertiary" | "muted" | "white" | "black" | undefined;
|
613
614
|
borderTopColor?: "transparent" | "accent" | "alert" | "brand" | "positive" | "warning" | "primary" | "secondary" | "tertiary" | "muted" | "white" | "black" | undefined;
|
614
|
-
borderRadius?: "
|
615
|
-
borderTopStartRadius?: "
|
616
|
-
borderTopEndRadius?: "
|
617
|
-
borderBottomStartRadius?: "
|
618
|
-
borderBottomEndRadius?: "
|
615
|
+
borderRadius?: "none" | "xs" | "sm" | "md" | "lg" | "xl" | "full" | undefined;
|
616
|
+
borderTopStartRadius?: "none" | "xs" | "sm" | "md" | "lg" | "xl" | "full" | undefined;
|
617
|
+
borderTopEndRadius?: "none" | "xs" | "sm" | "md" | "lg" | "xl" | "full" | undefined;
|
618
|
+
borderBottomStartRadius?: "none" | "xs" | "sm" | "md" | "lg" | "xl" | "full" | undefined;
|
619
|
+
borderBottomEndRadius?: "none" | "xs" | "sm" | "md" | "lg" | "xl" | "full" | undefined;
|
619
620
|
bordered?: boolean | undefined;
|
620
|
-
borderWidth?: "
|
621
|
-
borderVerticalWidth?: "
|
622
|
-
borderHorizontalWidth?: "
|
623
|
-
borderStartWidth?: "
|
624
|
-
borderEndWidth?: "
|
625
|
-
borderTopWidth?: "
|
626
|
-
borderBottomWidth?: "
|
621
|
+
borderWidth?: "thin" | "medium" | "none" | "thick" | undefined;
|
622
|
+
borderVerticalWidth?: "thin" | "medium" | "none" | "thick" | undefined;
|
623
|
+
borderHorizontalWidth?: "thin" | "medium" | "none" | "thick" | undefined;
|
624
|
+
borderStartWidth?: "thin" | "medium" | "none" | "thick" | undefined;
|
625
|
+
borderEndWidth?: "thin" | "medium" | "none" | "thick" | undefined;
|
626
|
+
borderTopWidth?: "thin" | "medium" | "none" | "thick" | undefined;
|
627
|
+
borderBottomWidth?: "thin" | "medium" | "none" | "thick" | undefined;
|
627
628
|
borderedVertical?: boolean | undefined;
|
628
629
|
borderedTop?: boolean | undefined;
|
629
630
|
borderedBottom?: boolean | undefined;
|
630
631
|
borderedHorizontal?: boolean | undefined;
|
631
632
|
borderedEnd?: boolean | undefined;
|
632
633
|
borderedStart?: boolean | undefined;
|
633
|
-
height?: "auto" | "1/2" | "1/3" | "2/3" | "1/4" | "2/4" | "3/4" | "1/5" | "2/5" | "3/5" | "4/5" | "1/6" | "2/6" | "3/6" | "4/6" | "5/6" | "
|
634
|
+
height?: "full" | "auto" | "1/2" | "1/3" | "2/3" | "1/4" | "2/4" | "3/4" | "1/5" | "2/5" | "3/5" | "4/5" | "1/6" | "2/6" | "3/6" | "4/6" | "5/6" | "screen" | "min" | "max" | "fit" | undefined;
|
634
635
|
minHeight?: "full" | "screen" | "min" | "max" | "fit" | undefined;
|
635
636
|
maxHeight?: "none" | "full" | "screen" | "min" | "max" | "fit" | undefined;
|
636
|
-
width?: "auto" | "1/2" | "1/3" | "2/3" | "1/4" | "2/4" | "3/4" | "1/5" | "2/5" | "3/5" | "4/5" | "1/6" | "2/6" | "3/6" | "4/6" | "5/6" | "
|
637
|
+
width?: "full" | "auto" | "1/2" | "1/3" | "2/3" | "1/4" | "2/4" | "3/4" | "1/5" | "2/5" | "3/5" | "4/5" | "1/6" | "2/6" | "3/6" | "4/6" | "5/6" | "screen" | "min" | "max" | "fit" | "1/12" | "2/12" | "3/12" | "4/12" | "5/12" | "6/12" | "7/12" | "8/12" | "9/12" | "10/12" | "11/12" | undefined;
|
637
638
|
minWidth?: "full" | "screen" | "min" | "max" | "fit" | undefined;
|
638
639
|
maxWidth?: "none" | "full" | "min" | "max" | "fit" | undefined;
|
639
640
|
avatarSize?: "s" | "m" | "l" | undefined;
|
package/dist/index.d.ts
CHANGED
@@ -1,24 +1,50 @@
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
2
|
-
import { k as UniversalAvatarProps, l as UniversalBoxProps, m as UniversalPressableProps, n as UniversalButtonProps, ay as IconName, p as UniversalTextProps, aK as Overflow, ab as ButtonVariant, aa as ButtonSize, o as UniversalStackProps, q as UniversalIconProps, r as UniversalIconButtonProps, au as ForegroundColor, j as UniversalImageProps, af as Display, b0 as UniversalTextInputProps } from './types-_E6o7OhU.js';
|
3
|
-
export { _ as AlwaysPalette, $ as AlwaysPaletteAlias, a0 as Animation, a1 as AriaAttribute, a2 as AspectRatio, a3 as AspectRatioConfig, a4 as AvatarSize, G as AvatarSizeConfig, a5 as BackgroundColor, d as BackgroundPalette, a6 as BackgroundPaletteAlias, v as BackgroundStyleProps, e as BackgroundWashPalette, a7 as BackgroundWashPaletteAlias, w as BorderStyleProps, a8 as BorderWidth, B as BorderWidthConfig, a9 as BoxShadowConfig, C as ColorMode, s as ColorModeForApp, a as ColorsConfig, ac as ConfigurableTextProperty, c as CorePalette, ad as CorePaletteAlias, D as CustomSizingStyleProps, ae as DataAttribute, h as Elevation, E as ElevationConfig, ag as ElevationPaletteAlias, ah as Flex, ai as FlexAlignContent, aj as FlexAlignItems, ak as FlexAlignSelf, al as FlexBasis, am as FlexDirection, an as FlexGrow, ao as FlexJustifyContent, ap as FlexShrink, y as FlexStyleProps, aq as FlexWrap, Q as FontFamilyConfig, ar as FontFamilyGlobalAlias, i as FontFamilyGlobalConfig, as as FontSize, R as FontSizeConfig, f as FontWeightConfig, at as FontWeightDescriptive, g as FontWeightNumeric, F as ForegroundPalette, av as ForegroundPaletteAlias, aw as Height, ax as HighContrastMode, H as Hue, b as HueStep, az as IconSize, J as IconSizeConfig, I as ImageStyleProps, x as LayoutStyleProps, aA as LetterSpacing, aB as LineClampAlias, aC as LineColor, aD as LineHeight, V as LineHeightConfig, L as LinePalette, aE as LinePaletteAlias, aF as MaxHeight, aG as MaxWidth, aH as MinHeight, aI as MinWidth, M as Modes, aJ as Opacity, O as OpacityStyleProps, aL as Palette, aM as PaletteConfig, aN as PaletteType, P as PaletteValue, aO as PlatformMode, aP as Position, aQ as RegionMode, aR as ScaleConfig, S as ScaleMode, u as ScaleModeConfig, t as ScaleModeForApp, aS as Shape, N as ShapeConfig, A as SizingStyleProps, aT as SpacingAlias, K as SpacingConfig, z as SpacingStyleProps, aU as SpectrumColor, aV as SpectrumConfig, aW as StateStyleProps, X as StyleProps, T as TextStyleProps, aX as TextTransform, W as TextTransformConfig, aY as TextVariant, aZ as TransitionDelay, a_ as TransitionDuration, a$ as TransitionTiming, U as UniversalTokensConfig, b1 as Width, b2 as ZIndex, Z as ZIndexConfig, Y as alwaysPalette } from './types-_E6o7OhU.js';
|
4
2
|
import * as react from 'react';
|
5
3
|
import react__default, { PropsWithChildren, TdHTMLAttributes } from 'react';
|
4
|
+
import { l as UniversalPressableProps, j as UniversalAvatarProps, k as UniversalBoxProps, m as UniversalButtonProps, aA as IconName, o as UniversalTextProps, aM as Overflow, ad as ButtonVariant, ac as ButtonSize, n as UniversalStackProps, p as UniversalIconProps, q as UniversalIconButtonProps, aw as ForegroundColor, i as UniversalImageProps, ah as Display, b1 as UniversalTextInputProps } from './types-ZrxnB4cM.js';
|
5
|
+
export { _ as AlwaysPalette, $ as AlwaysPaletteAlias, a0 as Animation, a1 as AriaAttribute, a2 as AspectRatio, a3 as AspectRatioConfig, a4 as AvatarShape, a5 as AvatarSize, D as AvatarSizeConfig, a6 as BackgroundColor, B as BackgroundPalette, a7 as BackgroundPaletteAlias, u as BackgroundStyleProps, d as BackgroundWashPalette, a8 as BackgroundWashPaletteAlias, a9 as BorderRadius, K as BorderRadiusConfig, v as BorderStyleProps, aa as BorderWidth, N as BorderWidthConfig, ab as BoxShadowConfig, C as ColorMode, r as ColorModeForApp, a as ColorsConfig, ae as ConfigurableTextProperty, c as CorePalette, af as CorePaletteAlias, A as CustomSizingStyleProps, ag as DataAttribute, g as Elevation, E as ElevationConfig, ai as ElevationPaletteAlias, aj as Flex, ak as FlexAlignContent, al as FlexAlignItems, am as FlexAlignSelf, an as FlexBasis, ao as FlexDirection, ap as FlexGrow, aq as FlexJustifyContent, ar as FlexShrink, x as FlexStyleProps, as as FlexWrap, Q as FontFamilyConfig, at as FontFamilyGlobalAlias, h as FontFamilyGlobalConfig, au as FontSize, R as FontSizeConfig, e as FontWeightConfig, av as FontWeightDescriptive, f as FontWeightNumeric, F as ForegroundPalette, ax as ForegroundPaletteAlias, ay as Height, az as HighContrastMode, H as Hue, b as HueStep, aB as IconSize, G as IconSizeConfig, I as ImageStyleProps, w as LayoutStyleProps, aC as LetterSpacing, aD as LineClampAlias, aE as LineColor, aF as LineHeight, V as LineHeightConfig, L as LinePalette, aG as LinePaletteAlias, aH as MaxHeight, aI as MaxWidth, aJ as MinHeight, aK as MinWidth, M as Modes, aL as Opacity, O as OpacityStyleProps, aN as Palette, aO as PaletteConfig, aP as PaletteType, P as PaletteValue, aQ as PlatformMode, aR as Position, aS as RegionMode, aT as ScaleConfig, S as ScaleMode, t as ScaleModeConfig, s as ScaleModeForApp, z as SizingStyleProps, aU as SpacingAlias, J as SpacingConfig, y as SpacingStyleProps, aV as SpectrumColor, aW as SpectrumConfig, aX as StateStyleProps, X as StyleProps, T as TextStyleProps, aY as TextTransform, W as TextTransformConfig, aZ as TextVariant, a_ as TransitionDelay, a$ as TransitionDuration, b0 as TransitionTiming, U as UniversalTokensConfig, b2 as Width, b3 as ZIndex, Z as ZIndexConfig, Y as alwaysPalette } from './types-ZrxnB4cM.js';
|
6
6
|
import * as _ariakit_react from '@ariakit/react';
|
7
7
|
import { PopoverProviderProps, PopoverProps, DialogProps, useDialogStore, DialogStore, DialogDismiss, Popover as Popover$1, PopoverArrow as PopoverArrow$1, PopoverAnchor as PopoverAnchor$1, PopoverDescription as PopoverDescription$1, PopoverDismiss as PopoverDismiss$1, PopoverProvider as PopoverProvider$1, PopoverDisclosure as PopoverDisclosure$1, PopoverDisclosureArrow as PopoverDisclosureArrow$1, TabProviderProps, TabListProps, TabPanelProps } from '@ariakit/react';
|
8
8
|
export { DialogStore as ModalStore, TabListProps, TabPanelProps, TabProviderProps as TabsProps, usePopoverStore } from '@ariakit/react';
|
9
9
|
import { ToastContainerProps } from 'react-toastify';
|
10
10
|
export { toast } from 'react-toastify';
|
11
|
-
import { a as CX, C as CVA } from './types-
|
12
|
-
export { S as SetState } from './types-
|
13
|
-
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-
|
14
|
-
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,
|
11
|
+
import { a as CX, C as CVA } from './types-BO2kLynl.js';
|
12
|
+
export { S as SetState } from './types-BO2kLynl.js';
|
13
|
+
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-DqJv5EjY.js';
|
14
|
+
export { AVATAR_SIZE_PREFIX, BORDER_RADIUS_PREFIX, BORDER_WIDTH_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, 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 } from './tokens/index.js';
|
15
15
|
|
16
|
-
|
16
|
+
type HtmlButtonProps = Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, 'color' | 'name'>;
|
17
|
+
interface PressableProps extends UniversalPressableProps, HtmlButtonProps {
|
18
|
+
}
|
19
|
+
/**
|
20
|
+
* Provides press interactions with accessibility support.
|
21
|
+
* @example
|
22
|
+
```tsx
|
23
|
+
import { Pressable, Text } from "@yahoo/uds"
|
24
|
+
|
25
|
+
export function Demo() {
|
26
|
+
return (
|
27
|
+
<Pressable
|
28
|
+
onClick={console.log}
|
29
|
+
backgroundColor="secondary"
|
30
|
+
bordered
|
31
|
+
borderColor="primary"
|
32
|
+
borderRadius="lg"
|
33
|
+
>
|
34
|
+
<Text variant="body1" spacingHorizontal="7" spacingVertical="5">Click me...</Text>
|
35
|
+
</Pressable>
|
36
|
+
)
|
37
|
+
}
|
38
|
+
```
|
39
|
+
*/
|
40
|
+
declare const Pressable: react.ForwardRefExoticComponent<PressableProps & react.RefAttributes<HTMLButtonElement>>;
|
41
|
+
|
42
|
+
interface AccordionProps extends PressableProps {
|
17
43
|
label: string;
|
18
44
|
open?: boolean;
|
19
45
|
onClick?: () => void;
|
20
46
|
}
|
21
|
-
declare function Accordion({ label, children, onClick, open }: AccordionProps): react_jsx_runtime.JSX.Element;
|
47
|
+
declare function Accordion({ label, children, onClick, open, spacingHorizontal, ...pressableProps }: AccordionProps): react_jsx_runtime.JSX.Element;
|
22
48
|
|
23
49
|
type NativeImageProps$1 = Omit<react__default.ImgHTMLAttributes<HTMLImageElement>, 'size' | 'color' | 'height' | 'width' | 'alt' | 'src'>;
|
24
50
|
interface AvatarProps extends NativeImageProps$1, UniversalAvatarProps {
|
@@ -53,32 +79,6 @@ interface BoxProps extends UniversalBoxProps, DivProps$1 {
|
|
53
79
|
*/
|
54
80
|
declare const Box: react.ForwardRefExoticComponent<BoxProps & react.RefAttributes<HTMLDivElement>>;
|
55
81
|
|
56
|
-
type HtmlButtonProps = Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, 'color' | 'name'>;
|
57
|
-
interface PressableProps extends UniversalPressableProps, HtmlButtonProps {
|
58
|
-
}
|
59
|
-
/**
|
60
|
-
* Provides press interactions with accessibility support.
|
61
|
-
* @example
|
62
|
-
```tsx
|
63
|
-
import { Pressable, Text } from "@yahoo/uds"
|
64
|
-
|
65
|
-
export function Demo() {
|
66
|
-
return (
|
67
|
-
<Pressable
|
68
|
-
onClick={console.log}
|
69
|
-
backgroundColor="secondary"
|
70
|
-
bordered
|
71
|
-
borderColor="primary"
|
72
|
-
borderRadius="l"
|
73
|
-
>
|
74
|
-
<Text variant="body1" spacingHorizontal="7" spacingVertical="5">Click me...</Text>
|
75
|
-
</Pressable>
|
76
|
-
)
|
77
|
-
}
|
78
|
-
```
|
79
|
-
*/
|
80
|
-
declare const Pressable: react.ForwardRefExoticComponent<PressableProps & react.RefAttributes<HTMLButtonElement>>;
|
81
|
-
|
82
82
|
interface ButtonProps extends PressableProps, UniversalButtonProps {
|
83
83
|
}
|
84
84
|
/**
|
@@ -490,10 +490,10 @@ type TextProps<As extends TextElement = TextElement> = UniversalTextProps & {
|
|
490
490
|
*/
|
491
491
|
declare const Text: react.ForwardRefExoticComponent<Omit<TextProps<TextElement>, "ref"> & react.RefAttributes<HTMLParagraphElement>>;
|
492
492
|
|
493
|
-
type NativeTextInputProps = Omit<React.InputHTMLAttributes<HTMLInputElement>, 'height' | 'size' | 'width' | ''>;
|
493
|
+
type NativeTextInputProps = Omit<React.InputHTMLAttributes<HTMLInputElement>, 'height' | 'size' | 'width' | 'color'>;
|
494
494
|
interface TextInputProps extends NativeTextInputProps, UniversalTextInputProps {
|
495
495
|
}
|
496
|
-
declare function TextInput({ className, disabled, ...props }: TextInputProps): react_jsx_runtime.JSX.Element;
|
496
|
+
declare function TextInput({ className, disabled, backgroundColor, borderColor, borderWidth, borderRadius, color, placeholderColor, spacingVertical, spacingHorizontal, fontSize: textVariant, ...props }: TextInputProps): react_jsx_runtime.JSX.Element;
|
497
497
|
|
498
498
|
interface TextInputGroupProps extends TextInputProps {
|
499
499
|
label?: string;
|
@@ -573,28 +573,29 @@ declare const cva: CVA<string>;
|
|
573
573
|
declare const getStyles: (props?: ({
|
574
574
|
color?: "transparent" | "accent" | "alert" | "brand" | "positive" | "warning" | "primary" | "secondary" | "tertiary" | "muted" | "on-color" | "white" | "black" | undefined;
|
575
575
|
colorChecked?: "transparent" | "accent" | "alert" | "brand" | "positive" | "warning" | "primary" | "secondary" | "tertiary" | "muted" | "on-color" | "white" | "black" | undefined;
|
576
|
+
placeholderColor?: "transparent" | "accent" | "alert" | "brand" | "positive" | "warning" | "primary" | "secondary" | "tertiary" | "muted" | "on-color" | "white" | "black" | undefined;
|
576
577
|
fontFamily?: "display1" | "title1" | "title2" | "title3" | "title4" | "headline1" | "body1" | "label1" | "label2" | "caption1" | "caption2" | "legal1" | "icons" | "sans" | "sans-beta" | "sans-condensed" | "serif-text" | "serif-display" | undefined;
|
577
578
|
fontSize?: "display1" | "title1" | "title2" | "title3" | "title4" | "headline1" | "body1" | "label1" | "label2" | "caption1" | "caption2" | "legal1" | undefined;
|
578
579
|
fontWeight?: "bold" | "black" | "display1" | "title1" | "title2" | "title3" | "title4" | "headline1" | "body1" | "label1" | "label2" | "caption1" | "caption2" | "legal1" | "thin" | "extralight" | "light" | "regular" | "medium" | "semibold" | "extrabold" | undefined;
|
579
580
|
lineHeight?: "display1" | "title1" | "title2" | "title3" | "title4" | "headline1" | "body1" | "label1" | "label2" | "caption1" | "caption2" | "legal1" | undefined;
|
580
581
|
textAlign?: "center" | "justify" | "start" | "end" | undefined;
|
581
582
|
textTransform?: "display1" | "title1" | "title2" | "title3" | "title4" | "headline1" | "body1" | "label1" | "label2" | "caption1" | "caption2" | "legal1" | "none" | "uppercase" | "lowercase" | "capitalize" | undefined;
|
582
|
-
spacing?: "9" | "
|
583
|
-
spacingHorizontal?: "9" | "
|
584
|
-
spacingVertical?: "9" | "
|
585
|
-
spacingBottom?: "9" | "
|
586
|
-
spacingEnd?: "9" | "
|
587
|
-
spacingStart?: "9" | "
|
588
|
-
spacingTop?: "9" | "
|
589
|
-
offset?: "9" | "
|
590
|
-
offsetVertical?: "9" | "
|
591
|
-
offsetHorizontal?: "9" | "
|
592
|
-
offsetBottom?: "9" | "
|
593
|
-
offsetEnd?: "9" | "
|
594
|
-
offsetStart?: "9" | "
|
595
|
-
offsetTop?: "9" | "
|
596
|
-
columnGap?: "9" | "
|
597
|
-
rowGap?: "9" | "
|
583
|
+
spacing?: "9" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "10" | "11" | "12" | "13" | "14" | "none" | undefined;
|
584
|
+
spacingHorizontal?: "9" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "10" | "11" | "12" | "13" | "14" | "none" | undefined;
|
585
|
+
spacingVertical?: "9" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "10" | "11" | "12" | "13" | "14" | "none" | undefined;
|
586
|
+
spacingBottom?: "9" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "10" | "11" | "12" | "13" | "14" | "none" | undefined;
|
587
|
+
spacingEnd?: "9" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "10" | "11" | "12" | "13" | "14" | "none" | undefined;
|
588
|
+
spacingStart?: "9" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "10" | "11" | "12" | "13" | "14" | "none" | undefined;
|
589
|
+
spacingTop?: "9" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "10" | "11" | "12" | "13" | "14" | "none" | undefined;
|
590
|
+
offset?: "9" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "10" | "11" | "12" | "13" | "14" | "none" | undefined;
|
591
|
+
offsetVertical?: "9" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "10" | "11" | "12" | "13" | "14" | "none" | undefined;
|
592
|
+
offsetHorizontal?: "9" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "10" | "11" | "12" | "13" | "14" | "none" | undefined;
|
593
|
+
offsetBottom?: "9" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "10" | "11" | "12" | "13" | "14" | "none" | undefined;
|
594
|
+
offsetEnd?: "9" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "10" | "11" | "12" | "13" | "14" | "none" | undefined;
|
595
|
+
offsetStart?: "9" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "10" | "11" | "12" | "13" | "14" | "none" | undefined;
|
596
|
+
offsetTop?: "9" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "10" | "11" | "12" | "13" | "14" | "none" | undefined;
|
597
|
+
columnGap?: "9" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "10" | "11" | "12" | "13" | "14" | "none" | undefined;
|
598
|
+
rowGap?: "9" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "10" | "11" | "12" | "13" | "14" | "none" | undefined;
|
598
599
|
backgroundColor?: "transparent" | "accent" | "alert" | "brand" | "positive" | "warning" | "primary" | "secondary" | "white" | "black" | "accent-wash" | "alert-wash" | "brand-wash" | "positive-wash" | "warning-wash" | "elevation-1" | "elevation-2" | "elevation-3" | "elevation-3-inverse" | "overlay" | undefined;
|
599
600
|
backgroundColorOnActive?: "transparent" | "accent" | "alert" | "brand" | "positive" | "warning" | "primary" | "secondary" | "white" | "black" | "accent-wash" | "alert-wash" | "brand-wash" | "positive-wash" | "warning-wash" | "elevation-1" | "elevation-2" | "elevation-3" | "elevation-3-inverse" | "overlay" | undefined;
|
600
601
|
backgroundColorOnHover?: "transparent" | "accent" | "alert" | "brand" | "positive" | "warning" | "primary" | "secondary" | "white" | "black" | "accent-wash" | "alert-wash" | "brand-wash" | "positive-wash" | "warning-wash" | "elevation-1" | "elevation-2" | "elevation-3" | "elevation-3-inverse" | "overlay" | undefined;
|
@@ -611,29 +612,29 @@ declare const getStyles: (props?: ({
|
|
611
612
|
borderEndColor?: "transparent" | "accent" | "alert" | "brand" | "positive" | "warning" | "primary" | "secondary" | "tertiary" | "muted" | "white" | "black" | undefined;
|
612
613
|
borderBottomColor?: "transparent" | "accent" | "alert" | "brand" | "positive" | "warning" | "primary" | "secondary" | "tertiary" | "muted" | "white" | "black" | undefined;
|
613
614
|
borderTopColor?: "transparent" | "accent" | "alert" | "brand" | "positive" | "warning" | "primary" | "secondary" | "tertiary" | "muted" | "white" | "black" | undefined;
|
614
|
-
borderRadius?: "
|
615
|
-
borderTopStartRadius?: "
|
616
|
-
borderTopEndRadius?: "
|
617
|
-
borderBottomStartRadius?: "
|
618
|
-
borderBottomEndRadius?: "
|
615
|
+
borderRadius?: "none" | "xs" | "sm" | "md" | "lg" | "xl" | "full" | undefined;
|
616
|
+
borderTopStartRadius?: "none" | "xs" | "sm" | "md" | "lg" | "xl" | "full" | undefined;
|
617
|
+
borderTopEndRadius?: "none" | "xs" | "sm" | "md" | "lg" | "xl" | "full" | undefined;
|
618
|
+
borderBottomStartRadius?: "none" | "xs" | "sm" | "md" | "lg" | "xl" | "full" | undefined;
|
619
|
+
borderBottomEndRadius?: "none" | "xs" | "sm" | "md" | "lg" | "xl" | "full" | undefined;
|
619
620
|
bordered?: boolean | undefined;
|
620
|
-
borderWidth?: "
|
621
|
-
borderVerticalWidth?: "
|
622
|
-
borderHorizontalWidth?: "
|
623
|
-
borderStartWidth?: "
|
624
|
-
borderEndWidth?: "
|
625
|
-
borderTopWidth?: "
|
626
|
-
borderBottomWidth?: "
|
621
|
+
borderWidth?: "thin" | "medium" | "none" | "thick" | undefined;
|
622
|
+
borderVerticalWidth?: "thin" | "medium" | "none" | "thick" | undefined;
|
623
|
+
borderHorizontalWidth?: "thin" | "medium" | "none" | "thick" | undefined;
|
624
|
+
borderStartWidth?: "thin" | "medium" | "none" | "thick" | undefined;
|
625
|
+
borderEndWidth?: "thin" | "medium" | "none" | "thick" | undefined;
|
626
|
+
borderTopWidth?: "thin" | "medium" | "none" | "thick" | undefined;
|
627
|
+
borderBottomWidth?: "thin" | "medium" | "none" | "thick" | undefined;
|
627
628
|
borderedVertical?: boolean | undefined;
|
628
629
|
borderedTop?: boolean | undefined;
|
629
630
|
borderedBottom?: boolean | undefined;
|
630
631
|
borderedHorizontal?: boolean | undefined;
|
631
632
|
borderedEnd?: boolean | undefined;
|
632
633
|
borderedStart?: boolean | undefined;
|
633
|
-
height?: "auto" | "1/2" | "1/3" | "2/3" | "1/4" | "2/4" | "3/4" | "1/5" | "2/5" | "3/5" | "4/5" | "1/6" | "2/6" | "3/6" | "4/6" | "5/6" | "
|
634
|
+
height?: "full" | "auto" | "1/2" | "1/3" | "2/3" | "1/4" | "2/4" | "3/4" | "1/5" | "2/5" | "3/5" | "4/5" | "1/6" | "2/6" | "3/6" | "4/6" | "5/6" | "screen" | "min" | "max" | "fit" | undefined;
|
634
635
|
minHeight?: "full" | "screen" | "min" | "max" | "fit" | undefined;
|
635
636
|
maxHeight?: "none" | "full" | "screen" | "min" | "max" | "fit" | undefined;
|
636
|
-
width?: "auto" | "1/2" | "1/3" | "2/3" | "1/4" | "2/4" | "3/4" | "1/5" | "2/5" | "3/5" | "4/5" | "1/6" | "2/6" | "3/6" | "4/6" | "5/6" | "
|
637
|
+
width?: "full" | "auto" | "1/2" | "1/3" | "2/3" | "1/4" | "2/4" | "3/4" | "1/5" | "2/5" | "3/5" | "4/5" | "1/6" | "2/6" | "3/6" | "4/6" | "5/6" | "screen" | "min" | "max" | "fit" | "1/12" | "2/12" | "3/12" | "4/12" | "5/12" | "6/12" | "7/12" | "8/12" | "9/12" | "10/12" | "11/12" | undefined;
|
637
638
|
minWidth?: "full" | "screen" | "min" | "max" | "fit" | undefined;
|
638
639
|
maxWidth?: "none" | "full" | "min" | "max" | "fit" | undefined;
|
639
640
|
avatarSize?: "s" | "m" | "l" | undefined;
|