@yahoo/uds 0.1.4 → 0.1.6
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/{chunk-L2YVFMLU.js → chunk-RK4NHJLQ.js} +1 -1
- package/dist/fixtures.cjs +1 -1
- package/dist/fixtures.d.cts +9 -10
- package/dist/fixtures.d.ts +9 -10
- package/dist/fixtures.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +60 -60
- package/dist/index.d.ts +60 -60
- package/dist/index.js +1 -1
- package/dist/types-7giMTpNx.d.cts +542 -0
- package/dist/types-7giMTpNx.d.ts +542 -0
- package/package.json +21 -12
- package/dist/types-MpJxQeoD.d.cts +0 -34113
- package/dist/types-MpJxQeoD.d.ts +0 -34113
package/dist/index.d.cts
CHANGED
@@ -1,10 +1,9 @@
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
2
2
|
import * as react from 'react';
|
3
3
|
import react__default from 'react';
|
4
|
-
import { U as UniversalAvatarProps,
|
5
|
-
export {
|
4
|
+
import { U as UniversalAvatarProps, s as UniversalBoxProps, t as UniversalPressableProps, u as UniversalButtonProps, v as UniversalStackProps, w as UniversalTextProps, x as UniversalTokensConfig } from './types-7giMTpNx.cjs';
|
5
|
+
export { y as AlwaysPalette, A as AlwaysPaletteAlias, z as Animation, D as AnyObject, G as AriaAttribute, I as AspectRatioAlias, J as AspectRatioConfig, p as AvatarSizeAlias, K as AvatarSizeConfig, M as BackgroundColor, f as BackgroundPalette, B as BackgroundPaletteAlias, N as BackgroundStyleProps, g as BackgroundWashPalette, d as BackgroundWashPaletteAlias, O as BorderStyleProps, m as BorderWidthAlias, P as BorderWidthConfig, Q as BoxShadowConfig, r as ButtonSize, q as ButtonVariant, C as ColorMode, R as ColorsConfig, e as CorePalette, c as CorePaletteAlias, V as DataAttribute, E as ElevationAlias, W as ElevationConfig, X as FlexStyleProps, j as FontFamilyAlias, Y as FontFamilyConfig, Z as FontSizeAlias, _ as FontSizeConfig, k as FontWeightAlias, $ as FontWeightConfig, a0 as FontWeightDescriptiveAlias, a1 as FontWeightNumericAlias, a2 as ForegroundColor, h as ForegroundPalette, F as ForegroundPaletteAlias, H as Hue, a as HueStep, a3 as IconSizeAlias, a4 as IconSizeConfig, a5 as LayoutStyleProps, a6 as LetterSpacingAlias, a7 as LineClamp, a8 as LineColor, a9 as LineHeightAlias, aa as LineHeightConfig, i as LinePalette, L as LinePaletteAlias, ab as Modes, ac as OpacityAlias, ad as OpacityStyleProps, ae as Palette, af as PaletteConfig, ag as PaletteType, ah as PaletteValue, ai as PlatformMode, aj as ScaleConfig, S as ScaleMode, ak as ScaleModeConfig, al as SetState, o as ShapeAlias, am as ShapeConfig, an as SizingStyleProps, n as SpacingAlias, ao as SpacingConfig, ap as SpacingStyleProps, b as SpectrumColor, aq as SpectrumConfig, ar as StateStyleProps, as as StyleProps, at as TextConfig, au as TextStyleProps, l as TextTransformAlias, av as TextTransformConfig, T as TextVariant, aw as TransitionDelay, ax as TransitionDuration, ay as TransitionTiming, az as TypographyConfig, aA as UniversalImageProps, aB as ZIndexAlias, aC as ZIndexConfig } from './types-7giMTpNx.cjs';
|
6
6
|
import * as tailwindcss_types_config from 'tailwindcss/types/config';
|
7
|
-
import 'zod';
|
8
7
|
|
9
8
|
type NativeImageProps = Omit<react__default.ImgHTMLAttributes<HTMLImageElement>, 'size' | 'color' | 'height' | 'width' | 'alt' | 'src'>;
|
10
9
|
interface AvatarProps extends NativeImageProps, UniversalAvatarProps {
|
@@ -93,69 +92,70 @@ interface CX<T> {
|
|
93
92
|
declare const cx: CX<string>;
|
94
93
|
declare const cva: CVA<string>;
|
95
94
|
declare const getStyles: (props?: ({
|
96
|
-
color?: "accent" | "alert" | "brand" | "positive" | "warning" | "primary" | "secondary" | "tertiary" | "muted" | "on-color" | "
|
97
|
-
colorChecked?: "accent" | "alert" | "brand" | "positive" | "warning" | "primary" | "secondary" | "tertiary" | "muted" | "on-color" | "
|
95
|
+
color?: "transparent" | "accent" | "alert" | "brand" | "positive" | "warning" | "primary" | "secondary" | "tertiary" | "muted" | "on-color" | "white" | "black" | undefined;
|
96
|
+
colorChecked?: "transparent" | "accent" | "alert" | "brand" | "positive" | "warning" | "primary" | "secondary" | "tertiary" | "muted" | "on-color" | "white" | "black" | undefined;
|
98
97
|
fontFamily?: "icons" | "sans" | "sans-condensed" | "serif-text" | "serif-display" | undefined;
|
99
|
-
fontSize?: "display1" | "title1" | "title2" | "title3" | "headline1" | "body1" | "label1" | "label2" | "caption1" | "caption2" | "legal1" | "display2" | undefined;
|
100
|
-
fontWeight?: "thin" | "extralight" | "light" | "regular" | "medium" | "semibold" | "bold" | "extrabold" | "
|
101
|
-
lineHeight?: "display1" | "title1" | "title2" | "title3" | "headline1" | "body1" | "label1" | "label2" | "caption1" | "caption2" | "legal1" | "display2" | undefined;
|
98
|
+
fontSize?: "display1" | "title1" | "title2" | "title3" | "title4" | "headline1" | "body1" | "label1" | "label2" | "caption1" | "caption2" | "legal1" | "display2" | undefined;
|
99
|
+
fontWeight?: "black" | "thin" | "extralight" | "light" | "regular" | "medium" | "semibold" | "bold" | "extrabold" | "display1" | "title1" | "title2" | "title3" | "title4" | "headline1" | "body1" | "label1" | "label2" | "caption1" | "caption2" | "legal1" | "display2" | undefined;
|
100
|
+
lineHeight?: "display1" | "title1" | "title2" | "title3" | "title4" | "headline1" | "body1" | "label1" | "label2" | "caption1" | "caption2" | "legal1" | "display2" | undefined;
|
102
101
|
textAlign?: "center" | "justify" | "start" | "end" | undefined;
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
102
|
+
textTransform?: "display1" | "title1" | "title2" | "title3" | "title4" | "headline1" | "body1" | "label1" | "label2" | "caption1" | "caption2" | "legal1" | "display2" | undefined;
|
103
|
+
spacing?: "10" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "11" | "12" | "13" | "14" | "0" | undefined;
|
104
|
+
spacingHorizontal?: "10" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "11" | "12" | "13" | "14" | "0" | undefined;
|
105
|
+
spacingVertical?: "10" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "11" | "12" | "13" | "14" | "0" | undefined;
|
106
|
+
spacingBottom?: "10" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "11" | "12" | "13" | "14" | "0" | undefined;
|
107
|
+
spacingEnd?: "10" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "11" | "12" | "13" | "14" | "0" | undefined;
|
108
|
+
spacingStart?: "10" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "11" | "12" | "13" | "14" | "0" | undefined;
|
109
|
+
spacingTop?: "10" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "11" | "12" | "13" | "14" | "0" | undefined;
|
110
|
+
offset?: "10" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "11" | "12" | "13" | "14" | "0" | undefined;
|
111
|
+
offsetVertical?: "10" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "11" | "12" | "13" | "14" | "0" | undefined;
|
112
|
+
offsetHorizontal?: "10" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "11" | "12" | "13" | "14" | "0" | undefined;
|
113
|
+
offsetBottom?: "10" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "11" | "12" | "13" | "14" | "0" | undefined;
|
114
|
+
offsetEnd?: "10" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "11" | "12" | "13" | "14" | "0" | undefined;
|
115
|
+
offsetStart?: "10" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "11" | "12" | "13" | "14" | "0" | undefined;
|
116
|
+
offsetTop?: "10" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "11" | "12" | "13" | "14" | "0" | undefined;
|
117
|
+
columnGap?: "10" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "11" | "12" | "13" | "14" | "0" | undefined;
|
118
|
+
rowGap?: "10" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "11" | "12" | "13" | "14" | "0" | undefined;
|
119
|
+
backgroundColor?: "transparent" | "accent" | "alert" | "brand" | "positive" | "warning" | "primary" | "secondary" | "white" | "black" | "elevation-1" | "elevation-2" | "elevation-3" | "elevation-3-inverse" | "overlay" | "accent-wash" | "alert-wash" | "brand-wash" | "positive-wash" | "warning-wash" | undefined;
|
120
|
+
backgroundColorOnActive?: "transparent" | "accent" | "alert" | "brand" | "positive" | "warning" | "primary" | "secondary" | "white" | "black" | "elevation-1" | "elevation-2" | "elevation-3" | "elevation-3-inverse" | "overlay" | "accent-wash" | "alert-wash" | "brand-wash" | "positive-wash" | "warning-wash" | undefined;
|
121
|
+
backgroundColorOnHover?: "transparent" | "accent" | "alert" | "brand" | "positive" | "warning" | "primary" | "secondary" | "white" | "black" | "elevation-1" | "elevation-2" | "elevation-3" | "elevation-3-inverse" | "overlay" | "accent-wash" | "alert-wash" | "brand-wash" | "positive-wash" | "warning-wash" | undefined;
|
122
|
+
backgroundColorOnChecked?: "transparent" | "accent" | "alert" | "brand" | "positive" | "warning" | "primary" | "secondary" | "white" | "black" | "elevation-1" | "elevation-2" | "elevation-3" | "elevation-3-inverse" | "overlay" | "accent-wash" | "alert-wash" | "brand-wash" | "positive-wash" | "warning-wash" | undefined;
|
123
123
|
elevation?: "1" | "2" | "3" | undefined;
|
124
|
-
opacity?: "
|
125
|
-
borderColor?: "accent" | "alert" | "brand" | "positive" | "warning" | "primary" | "secondary" | "tertiary" | "muted" | "
|
126
|
-
borderColorOnActive?: "accent" | "alert" | "brand" | "positive" | "warning" | "primary" | "secondary" | "tertiary" | "muted" | "
|
127
|
-
borderColorOnFocus?: "accent" | "alert" | "brand" | "positive" | "warning" | "primary" | "secondary" | "tertiary" | "muted" | "
|
128
|
-
borderColorOnHover?: "accent" | "alert" | "brand" | "positive" | "warning" | "primary" | "secondary" | "tertiary" | "muted" | "
|
129
|
-
borderColorOnChecked?: "accent" | "alert" | "brand" | "positive" | "warning" | "primary" | "secondary" | "tertiary" | "muted" | "
|
130
|
-
borderStartColor?: "accent" | "alert" | "brand" | "positive" | "warning" | "primary" | "secondary" | "tertiary" | "muted" | "
|
131
|
-
borderEndColor?: "accent" | "alert" | "brand" | "positive" | "warning" | "primary" | "secondary" | "tertiary" | "muted" | "
|
132
|
-
borderBottomColor?: "accent" | "alert" | "brand" | "positive" | "warning" | "primary" | "secondary" | "tertiary" | "muted" | "
|
133
|
-
borderTopColor?: "accent" | "alert" | "brand" | "positive" | "warning" | "primary" | "secondary" | "tertiary" | "muted" | "
|
134
|
-
borderRadius?: "
|
135
|
-
borderTopStartRadius?: "
|
136
|
-
borderTopEndRadius?: "
|
137
|
-
borderBottomStartRadius?: "
|
138
|
-
borderBottomEndRadius?: "
|
124
|
+
opacity?: "10" | "5" | "100" | "0" | "20" | "30" | "40" | "50" | "25" | "60" | "70" | "75" | "80" | "90" | "95" | undefined;
|
125
|
+
borderColor?: "transparent" | "accent" | "alert" | "brand" | "positive" | "warning" | "primary" | "secondary" | "tertiary" | "muted" | "white" | "black" | undefined;
|
126
|
+
borderColorOnActive?: "transparent" | "accent" | "alert" | "brand" | "positive" | "warning" | "primary" | "secondary" | "tertiary" | "muted" | "white" | "black" | undefined;
|
127
|
+
borderColorOnFocus?: "transparent" | "accent" | "alert" | "brand" | "positive" | "warning" | "primary" | "secondary" | "tertiary" | "muted" | "white" | "black" | undefined;
|
128
|
+
borderColorOnHover?: "transparent" | "accent" | "alert" | "brand" | "positive" | "warning" | "primary" | "secondary" | "tertiary" | "muted" | "white" | "black" | undefined;
|
129
|
+
borderColorOnChecked?: "transparent" | "accent" | "alert" | "brand" | "positive" | "warning" | "primary" | "secondary" | "tertiary" | "muted" | "white" | "black" | undefined;
|
130
|
+
borderStartColor?: "transparent" | "accent" | "alert" | "brand" | "positive" | "warning" | "primary" | "secondary" | "tertiary" | "muted" | "white" | "black" | undefined;
|
131
|
+
borderEndColor?: "transparent" | "accent" | "alert" | "brand" | "positive" | "warning" | "primary" | "secondary" | "tertiary" | "muted" | "white" | "black" | undefined;
|
132
|
+
borderBottomColor?: "transparent" | "accent" | "alert" | "brand" | "positive" | "warning" | "primary" | "secondary" | "tertiary" | "muted" | "white" | "black" | undefined;
|
133
|
+
borderTopColor?: "transparent" | "accent" | "alert" | "brand" | "positive" | "warning" | "primary" | "secondary" | "tertiary" | "muted" | "white" | "black" | undefined;
|
134
|
+
borderRadius?: "square" | "xs" | "s" | "m" | "l" | "xl" | "xxl" | "circle" | undefined;
|
135
|
+
borderTopStartRadius?: "square" | "xs" | "s" | "m" | "l" | "xl" | "xxl" | "circle" | undefined;
|
136
|
+
borderTopEndRadius?: "square" | "xs" | "s" | "m" | "l" | "xl" | "xxl" | "circle" | undefined;
|
137
|
+
borderBottomStartRadius?: "square" | "xs" | "s" | "m" | "l" | "xl" | "xxl" | "circle" | undefined;
|
138
|
+
borderBottomEndRadius?: "square" | "xs" | "s" | "m" | "l" | "xl" | "xxl" | "circle" | undefined;
|
139
139
|
bordered?: boolean | undefined;
|
140
|
-
borderWidth?: "
|
141
|
-
borderVerticalWidth?: "
|
142
|
-
borderHorizontalWidth?: "
|
143
|
-
borderStartWidth?: "
|
144
|
-
borderEndWidth?: "
|
145
|
-
borderTopWidth?: "
|
146
|
-
borderBottomWidth?: "
|
140
|
+
borderWidth?: "1" | "2" | "4" | "8" | "0" | undefined;
|
141
|
+
borderVerticalWidth?: "1" | "2" | "4" | "8" | "0" | undefined;
|
142
|
+
borderHorizontalWidth?: "1" | "2" | "4" | "8" | "0" | undefined;
|
143
|
+
borderStartWidth?: "1" | "2" | "4" | "8" | "0" | undefined;
|
144
|
+
borderEndWidth?: "1" | "2" | "4" | "8" | "0" | undefined;
|
145
|
+
borderTopWidth?: "1" | "2" | "4" | "8" | "0" | undefined;
|
146
|
+
borderBottomWidth?: "1" | "2" | "4" | "8" | "0" | undefined;
|
147
147
|
borderedVertical?: boolean | undefined;
|
148
148
|
borderedTop?: boolean | undefined;
|
149
149
|
borderedBottom?: boolean | undefined;
|
150
150
|
borderedHorizontal?: boolean | undefined;
|
151
151
|
borderedEnd?: boolean | undefined;
|
152
152
|
borderedStart?: boolean | undefined;
|
153
|
-
height?: "auto" | "
|
154
|
-
minHeight?: "
|
155
|
-
maxHeight?: "none" | "
|
156
|
-
width?: "auto" | "
|
157
|
-
minWidth?: "
|
158
|
-
maxWidth?: "none" | "
|
153
|
+
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" | "full" | "screen" | "min" | "max" | "fit" | undefined;
|
154
|
+
minHeight?: "full" | "screen" | "min" | "max" | "fit" | undefined;
|
155
|
+
maxHeight?: "none" | "full" | "screen" | "min" | "max" | "fit" | undefined;
|
156
|
+
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" | "full" | "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;
|
157
|
+
minWidth?: "full" | "min" | "max" | "fit" | undefined;
|
158
|
+
maxWidth?: "none" | "full" | "min" | "max" | "fit" | undefined;
|
159
159
|
avatarSize?: "s" | "m" | "l" | undefined;
|
160
160
|
iconSize?: "s" | "m" | "l" | undefined;
|
161
161
|
alignContent?: "flex-start" | "flex-end" | "center" | "stretch" | "space-between" | "space-around" | undefined;
|
@@ -163,8 +163,8 @@ declare const getStyles: (props?: ({
|
|
163
163
|
alignSelf?: "auto" | "flex-start" | "flex-end" | "center" | "stretch" | "baseline" | undefined;
|
164
164
|
flex?: "1" | "none" | "auto" | "initial" | undefined;
|
165
165
|
flexDirection?: "row" | "column" | "row-reverse" | "column-reverse" | undefined;
|
166
|
-
flexGrow?: "
|
167
|
-
flexShrink?: "
|
166
|
+
flexGrow?: "1" | "0" | undefined;
|
167
|
+
flexShrink?: "1" | "0" | undefined;
|
168
168
|
flexWrap?: "wrap" | "nowrap" | "wrap-reverse" | undefined;
|
169
169
|
justifyContent?: "flex-start" | "flex-end" | "center" | "space-between" | "space-around" | "space-evenly" | undefined;
|
170
170
|
flexBasis?: "min-content" | undefined;
|
@@ -173,8 +173,8 @@ declare const getStyles: (props?: ({
|
|
173
173
|
overflowX?: "auto" | "hidden" | "clip" | "visible" | "scroll" | undefined;
|
174
174
|
overflowY?: "auto" | "hidden" | "clip" | "visible" | "scroll" | undefined;
|
175
175
|
position?: "static" | "fixed" | "absolute" | "relative" | "sticky" | undefined;
|
176
|
-
zIndex?: "
|
177
|
-
objectFit?: "
|
176
|
+
zIndex?: "10" | "auto" | "0" | "20" | "30" | "40" | "50" | undefined;
|
177
|
+
objectFit?: "none" | "cover" | "contain" | "fill" | "scale-down" | undefined;
|
178
178
|
} & {
|
179
179
|
className?: string | undefined;
|
180
180
|
}) | undefined) => string;
|
package/dist/index.d.ts
CHANGED
@@ -1,10 +1,9 @@
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
2
2
|
import * as react from 'react';
|
3
3
|
import react__default from 'react';
|
4
|
-
import { U as UniversalAvatarProps,
|
5
|
-
export {
|
4
|
+
import { U as UniversalAvatarProps, s as UniversalBoxProps, t as UniversalPressableProps, u as UniversalButtonProps, v as UniversalStackProps, w as UniversalTextProps, x as UniversalTokensConfig } from './types-7giMTpNx.js';
|
5
|
+
export { y as AlwaysPalette, A as AlwaysPaletteAlias, z as Animation, D as AnyObject, G as AriaAttribute, I as AspectRatioAlias, J as AspectRatioConfig, p as AvatarSizeAlias, K as AvatarSizeConfig, M as BackgroundColor, f as BackgroundPalette, B as BackgroundPaletteAlias, N as BackgroundStyleProps, g as BackgroundWashPalette, d as BackgroundWashPaletteAlias, O as BorderStyleProps, m as BorderWidthAlias, P as BorderWidthConfig, Q as BoxShadowConfig, r as ButtonSize, q as ButtonVariant, C as ColorMode, R as ColorsConfig, e as CorePalette, c as CorePaletteAlias, V as DataAttribute, E as ElevationAlias, W as ElevationConfig, X as FlexStyleProps, j as FontFamilyAlias, Y as FontFamilyConfig, Z as FontSizeAlias, _ as FontSizeConfig, k as FontWeightAlias, $ as FontWeightConfig, a0 as FontWeightDescriptiveAlias, a1 as FontWeightNumericAlias, a2 as ForegroundColor, h as ForegroundPalette, F as ForegroundPaletteAlias, H as Hue, a as HueStep, a3 as IconSizeAlias, a4 as IconSizeConfig, a5 as LayoutStyleProps, a6 as LetterSpacingAlias, a7 as LineClamp, a8 as LineColor, a9 as LineHeightAlias, aa as LineHeightConfig, i as LinePalette, L as LinePaletteAlias, ab as Modes, ac as OpacityAlias, ad as OpacityStyleProps, ae as Palette, af as PaletteConfig, ag as PaletteType, ah as PaletteValue, ai as PlatformMode, aj as ScaleConfig, S as ScaleMode, ak as ScaleModeConfig, al as SetState, o as ShapeAlias, am as ShapeConfig, an as SizingStyleProps, n as SpacingAlias, ao as SpacingConfig, ap as SpacingStyleProps, b as SpectrumColor, aq as SpectrumConfig, ar as StateStyleProps, as as StyleProps, at as TextConfig, au as TextStyleProps, l as TextTransformAlias, av as TextTransformConfig, T as TextVariant, aw as TransitionDelay, ax as TransitionDuration, ay as TransitionTiming, az as TypographyConfig, aA as UniversalImageProps, aB as ZIndexAlias, aC as ZIndexConfig } from './types-7giMTpNx.js';
|
6
6
|
import * as tailwindcss_types_config from 'tailwindcss/types/config';
|
7
|
-
import 'zod';
|
8
7
|
|
9
8
|
type NativeImageProps = Omit<react__default.ImgHTMLAttributes<HTMLImageElement>, 'size' | 'color' | 'height' | 'width' | 'alt' | 'src'>;
|
10
9
|
interface AvatarProps extends NativeImageProps, UniversalAvatarProps {
|
@@ -93,69 +92,70 @@ interface CX<T> {
|
|
93
92
|
declare const cx: CX<string>;
|
94
93
|
declare const cva: CVA<string>;
|
95
94
|
declare const getStyles: (props?: ({
|
96
|
-
color?: "accent" | "alert" | "brand" | "positive" | "warning" | "primary" | "secondary" | "tertiary" | "muted" | "on-color" | "
|
97
|
-
colorChecked?: "accent" | "alert" | "brand" | "positive" | "warning" | "primary" | "secondary" | "tertiary" | "muted" | "on-color" | "
|
95
|
+
color?: "transparent" | "accent" | "alert" | "brand" | "positive" | "warning" | "primary" | "secondary" | "tertiary" | "muted" | "on-color" | "white" | "black" | undefined;
|
96
|
+
colorChecked?: "transparent" | "accent" | "alert" | "brand" | "positive" | "warning" | "primary" | "secondary" | "tertiary" | "muted" | "on-color" | "white" | "black" | undefined;
|
98
97
|
fontFamily?: "icons" | "sans" | "sans-condensed" | "serif-text" | "serif-display" | undefined;
|
99
|
-
fontSize?: "display1" | "title1" | "title2" | "title3" | "headline1" | "body1" | "label1" | "label2" | "caption1" | "caption2" | "legal1" | "display2" | undefined;
|
100
|
-
fontWeight?: "thin" | "extralight" | "light" | "regular" | "medium" | "semibold" | "bold" | "extrabold" | "
|
101
|
-
lineHeight?: "display1" | "title1" | "title2" | "title3" | "headline1" | "body1" | "label1" | "label2" | "caption1" | "caption2" | "legal1" | "display2" | undefined;
|
98
|
+
fontSize?: "display1" | "title1" | "title2" | "title3" | "title4" | "headline1" | "body1" | "label1" | "label2" | "caption1" | "caption2" | "legal1" | "display2" | undefined;
|
99
|
+
fontWeight?: "black" | "thin" | "extralight" | "light" | "regular" | "medium" | "semibold" | "bold" | "extrabold" | "display1" | "title1" | "title2" | "title3" | "title4" | "headline1" | "body1" | "label1" | "label2" | "caption1" | "caption2" | "legal1" | "display2" | undefined;
|
100
|
+
lineHeight?: "display1" | "title1" | "title2" | "title3" | "title4" | "headline1" | "body1" | "label1" | "label2" | "caption1" | "caption2" | "legal1" | "display2" | undefined;
|
102
101
|
textAlign?: "center" | "justify" | "start" | "end" | undefined;
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
102
|
+
textTransform?: "display1" | "title1" | "title2" | "title3" | "title4" | "headline1" | "body1" | "label1" | "label2" | "caption1" | "caption2" | "legal1" | "display2" | undefined;
|
103
|
+
spacing?: "10" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "11" | "12" | "13" | "14" | "0" | undefined;
|
104
|
+
spacingHorizontal?: "10" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "11" | "12" | "13" | "14" | "0" | undefined;
|
105
|
+
spacingVertical?: "10" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "11" | "12" | "13" | "14" | "0" | undefined;
|
106
|
+
spacingBottom?: "10" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "11" | "12" | "13" | "14" | "0" | undefined;
|
107
|
+
spacingEnd?: "10" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "11" | "12" | "13" | "14" | "0" | undefined;
|
108
|
+
spacingStart?: "10" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "11" | "12" | "13" | "14" | "0" | undefined;
|
109
|
+
spacingTop?: "10" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "11" | "12" | "13" | "14" | "0" | undefined;
|
110
|
+
offset?: "10" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "11" | "12" | "13" | "14" | "0" | undefined;
|
111
|
+
offsetVertical?: "10" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "11" | "12" | "13" | "14" | "0" | undefined;
|
112
|
+
offsetHorizontal?: "10" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "11" | "12" | "13" | "14" | "0" | undefined;
|
113
|
+
offsetBottom?: "10" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "11" | "12" | "13" | "14" | "0" | undefined;
|
114
|
+
offsetEnd?: "10" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "11" | "12" | "13" | "14" | "0" | undefined;
|
115
|
+
offsetStart?: "10" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "11" | "12" | "13" | "14" | "0" | undefined;
|
116
|
+
offsetTop?: "10" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "11" | "12" | "13" | "14" | "0" | undefined;
|
117
|
+
columnGap?: "10" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "11" | "12" | "13" | "14" | "0" | undefined;
|
118
|
+
rowGap?: "10" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "11" | "12" | "13" | "14" | "0" | undefined;
|
119
|
+
backgroundColor?: "transparent" | "accent" | "alert" | "brand" | "positive" | "warning" | "primary" | "secondary" | "white" | "black" | "elevation-1" | "elevation-2" | "elevation-3" | "elevation-3-inverse" | "overlay" | "accent-wash" | "alert-wash" | "brand-wash" | "positive-wash" | "warning-wash" | undefined;
|
120
|
+
backgroundColorOnActive?: "transparent" | "accent" | "alert" | "brand" | "positive" | "warning" | "primary" | "secondary" | "white" | "black" | "elevation-1" | "elevation-2" | "elevation-3" | "elevation-3-inverse" | "overlay" | "accent-wash" | "alert-wash" | "brand-wash" | "positive-wash" | "warning-wash" | undefined;
|
121
|
+
backgroundColorOnHover?: "transparent" | "accent" | "alert" | "brand" | "positive" | "warning" | "primary" | "secondary" | "white" | "black" | "elevation-1" | "elevation-2" | "elevation-3" | "elevation-3-inverse" | "overlay" | "accent-wash" | "alert-wash" | "brand-wash" | "positive-wash" | "warning-wash" | undefined;
|
122
|
+
backgroundColorOnChecked?: "transparent" | "accent" | "alert" | "brand" | "positive" | "warning" | "primary" | "secondary" | "white" | "black" | "elevation-1" | "elevation-2" | "elevation-3" | "elevation-3-inverse" | "overlay" | "accent-wash" | "alert-wash" | "brand-wash" | "positive-wash" | "warning-wash" | undefined;
|
123
123
|
elevation?: "1" | "2" | "3" | undefined;
|
124
|
-
opacity?: "
|
125
|
-
borderColor?: "accent" | "alert" | "brand" | "positive" | "warning" | "primary" | "secondary" | "tertiary" | "muted" | "
|
126
|
-
borderColorOnActive?: "accent" | "alert" | "brand" | "positive" | "warning" | "primary" | "secondary" | "tertiary" | "muted" | "
|
127
|
-
borderColorOnFocus?: "accent" | "alert" | "brand" | "positive" | "warning" | "primary" | "secondary" | "tertiary" | "muted" | "
|
128
|
-
borderColorOnHover?: "accent" | "alert" | "brand" | "positive" | "warning" | "primary" | "secondary" | "tertiary" | "muted" | "
|
129
|
-
borderColorOnChecked?: "accent" | "alert" | "brand" | "positive" | "warning" | "primary" | "secondary" | "tertiary" | "muted" | "
|
130
|
-
borderStartColor?: "accent" | "alert" | "brand" | "positive" | "warning" | "primary" | "secondary" | "tertiary" | "muted" | "
|
131
|
-
borderEndColor?: "accent" | "alert" | "brand" | "positive" | "warning" | "primary" | "secondary" | "tertiary" | "muted" | "
|
132
|
-
borderBottomColor?: "accent" | "alert" | "brand" | "positive" | "warning" | "primary" | "secondary" | "tertiary" | "muted" | "
|
133
|
-
borderTopColor?: "accent" | "alert" | "brand" | "positive" | "warning" | "primary" | "secondary" | "tertiary" | "muted" | "
|
134
|
-
borderRadius?: "
|
135
|
-
borderTopStartRadius?: "
|
136
|
-
borderTopEndRadius?: "
|
137
|
-
borderBottomStartRadius?: "
|
138
|
-
borderBottomEndRadius?: "
|
124
|
+
opacity?: "10" | "5" | "100" | "0" | "20" | "30" | "40" | "50" | "25" | "60" | "70" | "75" | "80" | "90" | "95" | undefined;
|
125
|
+
borderColor?: "transparent" | "accent" | "alert" | "brand" | "positive" | "warning" | "primary" | "secondary" | "tertiary" | "muted" | "white" | "black" | undefined;
|
126
|
+
borderColorOnActive?: "transparent" | "accent" | "alert" | "brand" | "positive" | "warning" | "primary" | "secondary" | "tertiary" | "muted" | "white" | "black" | undefined;
|
127
|
+
borderColorOnFocus?: "transparent" | "accent" | "alert" | "brand" | "positive" | "warning" | "primary" | "secondary" | "tertiary" | "muted" | "white" | "black" | undefined;
|
128
|
+
borderColorOnHover?: "transparent" | "accent" | "alert" | "brand" | "positive" | "warning" | "primary" | "secondary" | "tertiary" | "muted" | "white" | "black" | undefined;
|
129
|
+
borderColorOnChecked?: "transparent" | "accent" | "alert" | "brand" | "positive" | "warning" | "primary" | "secondary" | "tertiary" | "muted" | "white" | "black" | undefined;
|
130
|
+
borderStartColor?: "transparent" | "accent" | "alert" | "brand" | "positive" | "warning" | "primary" | "secondary" | "tertiary" | "muted" | "white" | "black" | undefined;
|
131
|
+
borderEndColor?: "transparent" | "accent" | "alert" | "brand" | "positive" | "warning" | "primary" | "secondary" | "tertiary" | "muted" | "white" | "black" | undefined;
|
132
|
+
borderBottomColor?: "transparent" | "accent" | "alert" | "brand" | "positive" | "warning" | "primary" | "secondary" | "tertiary" | "muted" | "white" | "black" | undefined;
|
133
|
+
borderTopColor?: "transparent" | "accent" | "alert" | "brand" | "positive" | "warning" | "primary" | "secondary" | "tertiary" | "muted" | "white" | "black" | undefined;
|
134
|
+
borderRadius?: "square" | "xs" | "s" | "m" | "l" | "xl" | "xxl" | "circle" | undefined;
|
135
|
+
borderTopStartRadius?: "square" | "xs" | "s" | "m" | "l" | "xl" | "xxl" | "circle" | undefined;
|
136
|
+
borderTopEndRadius?: "square" | "xs" | "s" | "m" | "l" | "xl" | "xxl" | "circle" | undefined;
|
137
|
+
borderBottomStartRadius?: "square" | "xs" | "s" | "m" | "l" | "xl" | "xxl" | "circle" | undefined;
|
138
|
+
borderBottomEndRadius?: "square" | "xs" | "s" | "m" | "l" | "xl" | "xxl" | "circle" | undefined;
|
139
139
|
bordered?: boolean | undefined;
|
140
|
-
borderWidth?: "
|
141
|
-
borderVerticalWidth?: "
|
142
|
-
borderHorizontalWidth?: "
|
143
|
-
borderStartWidth?: "
|
144
|
-
borderEndWidth?: "
|
145
|
-
borderTopWidth?: "
|
146
|
-
borderBottomWidth?: "
|
140
|
+
borderWidth?: "1" | "2" | "4" | "8" | "0" | undefined;
|
141
|
+
borderVerticalWidth?: "1" | "2" | "4" | "8" | "0" | undefined;
|
142
|
+
borderHorizontalWidth?: "1" | "2" | "4" | "8" | "0" | undefined;
|
143
|
+
borderStartWidth?: "1" | "2" | "4" | "8" | "0" | undefined;
|
144
|
+
borderEndWidth?: "1" | "2" | "4" | "8" | "0" | undefined;
|
145
|
+
borderTopWidth?: "1" | "2" | "4" | "8" | "0" | undefined;
|
146
|
+
borderBottomWidth?: "1" | "2" | "4" | "8" | "0" | undefined;
|
147
147
|
borderedVertical?: boolean | undefined;
|
148
148
|
borderedTop?: boolean | undefined;
|
149
149
|
borderedBottom?: boolean | undefined;
|
150
150
|
borderedHorizontal?: boolean | undefined;
|
151
151
|
borderedEnd?: boolean | undefined;
|
152
152
|
borderedStart?: boolean | undefined;
|
153
|
-
height?: "auto" | "
|
154
|
-
minHeight?: "
|
155
|
-
maxHeight?: "none" | "
|
156
|
-
width?: "auto" | "
|
157
|
-
minWidth?: "
|
158
|
-
maxWidth?: "none" | "
|
153
|
+
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" | "full" | "screen" | "min" | "max" | "fit" | undefined;
|
154
|
+
minHeight?: "full" | "screen" | "min" | "max" | "fit" | undefined;
|
155
|
+
maxHeight?: "none" | "full" | "screen" | "min" | "max" | "fit" | undefined;
|
156
|
+
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" | "full" | "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;
|
157
|
+
minWidth?: "full" | "min" | "max" | "fit" | undefined;
|
158
|
+
maxWidth?: "none" | "full" | "min" | "max" | "fit" | undefined;
|
159
159
|
avatarSize?: "s" | "m" | "l" | undefined;
|
160
160
|
iconSize?: "s" | "m" | "l" | undefined;
|
161
161
|
alignContent?: "flex-start" | "flex-end" | "center" | "stretch" | "space-between" | "space-around" | undefined;
|
@@ -163,8 +163,8 @@ declare const getStyles: (props?: ({
|
|
163
163
|
alignSelf?: "auto" | "flex-start" | "flex-end" | "center" | "stretch" | "baseline" | undefined;
|
164
164
|
flex?: "1" | "none" | "auto" | "initial" | undefined;
|
165
165
|
flexDirection?: "row" | "column" | "row-reverse" | "column-reverse" | undefined;
|
166
|
-
flexGrow?: "
|
167
|
-
flexShrink?: "
|
166
|
+
flexGrow?: "1" | "0" | undefined;
|
167
|
+
flexShrink?: "1" | "0" | undefined;
|
168
168
|
flexWrap?: "wrap" | "nowrap" | "wrap-reverse" | undefined;
|
169
169
|
justifyContent?: "flex-start" | "flex-end" | "center" | "space-between" | "space-around" | "space-evenly" | undefined;
|
170
170
|
flexBasis?: "min-content" | undefined;
|
@@ -173,8 +173,8 @@ declare const getStyles: (props?: ({
|
|
173
173
|
overflowX?: "auto" | "hidden" | "clip" | "visible" | "scroll" | undefined;
|
174
174
|
overflowY?: "auto" | "hidden" | "clip" | "visible" | "scroll" | undefined;
|
175
175
|
position?: "static" | "fixed" | "absolute" | "relative" | "sticky" | undefined;
|
176
|
-
zIndex?: "
|
177
|
-
objectFit?: "
|
176
|
+
zIndex?: "10" | "auto" | "0" | "20" | "30" | "40" | "50" | undefined;
|
177
|
+
objectFit?: "none" | "cover" | "contain" | "fill" | "scale-down" | undefined;
|
178
178
|
} & {
|
179
179
|
className?: string | undefined;
|
180
180
|
}) | undefined) => string;
|