@yahoo/uds 0.3.0 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- package/cli/README.md +78 -131
- package/cli/commands/purge.ts +7 -3
- package/cli/env.d.ts +1 -0
- package/cli/utils/purgeCSS.test.ts +43 -3
- package/cli/utils/purgeCSS.ts +100 -14
- package/dist/Image.native-B3I4JoH3.d.cts +38 -0
- package/dist/Image.native-DUAFJodS.d.ts +38 -0
- package/dist/VStack-BHlRUsOR.d.cts +103 -0
- package/dist/VStack-DMb_RGRS.d.ts +103 -0
- package/dist/experimental/index.cjs +1 -1
- package/dist/experimental/index.d.cts +8 -8
- package/dist/experimental/index.d.ts +8 -8
- package/dist/experimental/index.js +1 -1
- package/dist/experimental/index.native.cjs +1 -1
- package/dist/experimental/index.native.d.cts +3 -3
- package/dist/experimental/index.native.d.ts +3 -3
- package/dist/experimental/index.native.js +1 -1
- package/dist/fixtures.cjs +1990 -0
- package/dist/fixtures.d.ts +81 -0
- package/dist/fixtures.js +1954 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +42 -237
- package/dist/index.d.ts +42 -237
- package/dist/index.js +1 -1
- package/dist/{index.native-CisPq4BI.d.ts → index.native-BTfOSmUx.d.ts} +1 -1
- package/dist/{index.native-DJlx-bfM.d.cts → index.native-Bm-r2Dpa.d.cts} +1 -1
- package/dist/index.native.cjs +1 -1
- package/dist/index.native.d.cts +21 -84
- package/dist/index.native.d.ts +21 -84
- package/dist/index.native.js +1 -1
- package/dist/styles/globals.css +0 -1
- package/dist/styles/toast.css +1 -0
- package/dist/styles/toast.d.cts +2 -0
- package/dist/styles/toast.d.ts +2 -0
- package/dist/tailwindPlugin.cjs +1 -1
- package/dist/tailwindPlugin.d.cts +8 -2
- package/dist/tailwindPlugin.d.ts +8 -2
- 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 +8 -3
- package/dist/tokens/index.d.ts +8 -3
- 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 -18
- package/dist/tokens/parseTokens.d.ts +8 -18
- package/dist/tokens/parseTokens.js +1 -1
- package/dist/tokens/parseTokens.native.cjs +1 -1
- package/dist/tokens/parseTokens.native.d.cts +4 -21
- package/dist/tokens/parseTokens.native.d.ts +4 -21
- package/dist/tokens/parseTokens.native.js +1 -1
- package/dist/{types-CzJpH_Oi.d.cts → types-COiuE8XK.d.cts} +49 -138
- package/dist/{types-CzJpH_Oi.d.ts → types-COiuE8XK.d.ts} +49 -138
- package/package.json +14 -13
- package/dist/Image.native-C6kOWgnf.d.ts +0 -38
- package/dist/Image.native-VeXt5aeI.d.cts +0 -38
- package/dist/VStack-BSD9TbBd.d.cts +0 -114
- package/dist/VStack-Dk3-8IyU.d.ts +0 -114
- package/dist/fixtures/index.cjs +0 -1
- package/dist/fixtures/index.d.cts +0 -154
- package/dist/fixtures/index.d.ts +0 -154
- package/dist/fixtures/index.js +0 -1
package/dist/index.d.cts
CHANGED
@@ -1,115 +1,36 @@
|
|
1
|
-
import { D as DivProps } from './VStack-
|
2
|
-
export { B as Box, a as BoxProps, P as Pressable, b as PressableProps, V as VStack,
|
1
|
+
import { D as DivProps } from './VStack-BHlRUsOR.cjs';
|
2
|
+
export { B as Box, a as BoxProps, P as Pressable, b as PressableProps, T as Text, c as TextProps, V as VStack, d as VStackProps } from './VStack-BHlRUsOR.cjs';
|
3
3
|
import * as react from 'react';
|
4
|
-
import {
|
5
|
-
|
6
|
-
export { A as AlwaysPalette, s as AlwaysPaletteAlias, t as Animation, u as AriaAttribute, v as AspectRatio, w as AspectRatioConfig, x as AvatarShape, y as AvatarSize, z as AvatarSizeConfig, D as BackgroundColor, B as BackgroundPalette, G as BackgroundPaletteAlias, I as BackgroundStyleProps, d as BackgroundWashPalette, J as BackgroundWashPaletteAlias, K as BorderRadius, M as BorderRadiusConfig, N as BorderStyleProps, O as BorderWidth, Q as BorderWidthConfig, R as BoxShadowConfig, T as ButtonSize, V as ButtonVariant, C as ColorMode, W as ColorModeForApp, a as ColorsConfig, X as ConfigurableTextProperty, c as CorePalette, Y as CorePaletteAlias, Z as CustomSizingStyleProps, _ as DataAttribute, $ as Display, g as Elevation, E as ElevationConfig, a0 as ElevationPaletteAlias, 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 FontFamilyConfig, ad as FontFamilyGlobalAlias, h as FontFamilyGlobalConfig, ae as FontSize, af as FontSizeConfig, e as FontWeightConfig, ag as FontWeightDescriptive, f as FontWeightNumeric, ah as ForegroundColor, F as ForegroundPalette, ai as ForegroundPaletteAlias, aj as Height, ak as HighContrastMode, H as Hue, b as HueStep, al as IconName, am as IconSize, an as IconSizeConfig, ao as ImageStyleProps, ap as LayoutStyleProps, aq as LetterSpacing, ar as LineClampAlias, as as LineColor, at as LineHeight, au as LineHeightConfig, L as LinePalette, av as LinePaletteAlias, aw as MaxHeight, ax as MaxWidth, ay as MinHeight, az as MinWidth, aA as Modes, aB as Opacity, aC as OpacityStyleProps, aD as Overflow, aE as Palette, aF as PaletteConfig, aG as PaletteType, P as PaletteValue, aH as PlatformMode, aI as Position, aJ as RegionMode, aK as ScaleConfig, S as ScaleMode, aL as ScaleModeConfig, aM as ScaleModeForApp, aN as SizingStyleProps, aO as SpacingAlias, aP as SpacingConfig, aQ as SpacingStyleProps, aR as SpectrumColor, aS as SpectrumConfig, aT as StateStyleProps, aU as StyleProps, aV as TextStyleProps, aW as TextTransform, aX as TextTransformConfig, aY as TextVariant, aZ as TransitionDelay, a_ as TransitionDuration, a$ as TransitionTiming, i as UniversalAvatarProps, k as UniversalBoxProps, j as UniversalButtonProps, n as UniversalIconButtonProps, l as UniversalPressableProps, b0 as UniversalTextInputProps, U as UniversalTokensConfig, b1 as Width, b2 as ZIndex, b3 as ZIndexConfig, r as alwaysPalette } from './types-CzJpH_Oi.cjs';
|
4
|
+
import { l as UniversalStackProps, m as UniversalIconProps, k as UniversalImageProps } from './types-COiuE8XK.cjs';
|
5
|
+
export { A as AlwaysPalette, o as AlwaysPaletteAlias, p as Animation, q as AriaAttribute, r as AvatarShape, s as AvatarSize, t as AvatarSizeConfig, u as BackgroundColor, v as BackgroundPalette, B as BackgroundPaletteAlias, w as BackgroundStyleProps, x as BorderRadius, y as BorderRadiusConfig, z as BorderStyleProps, D as BorderWidth, E as BorderWidthConfig, G as BoxShadowConfig, I as ButtonSize, J as ButtonVariant, C as ColorMode, K as ColorModeConfig, M as ColorModeForApp, a as ColorsConfig, N as ConfigurableTextProperty, O as CorePalette, c as CorePaletteAlias, P as CustomSizingStyleProps, Q as DataAttribute, R as Display, T as Flex, V as FlexAlignContent, W as FlexAlignItems, X as FlexAlignSelf, Y as FlexBasis, Z as FlexDirection, _ as FlexGrow, $ as FlexJustifyContent, a0 as FlexShrink, a1 as FlexStyleProps, a2 as FlexWrap, a3 as FontFamilyConfig, a4 as FontFamilyGlobalAlias, f as FontFamilyGlobalConfig, a5 as FontSize, a6 as FontSizeConfig, d as FontWeightConfig, a7 as FontWeightDescriptive, e as FontWeightNumeric, a8 as ForegroundColor, a9 as ForegroundPalette, F as ForegroundPaletteAlias, aa as Height, ab as HighContrastMode, H as Hue, b as HueStep, ac as IconName, ad as IconSize, ae as IconSizeConfig, af as ImageStyleProps, ag as LayoutStyleProps, ah as LetterSpacing, ai as LineClampAlias, aj as LineColor, ak as LineHeight, al as LineHeightConfig, am as LinePalette, L as LinePaletteAlias, an as MaxHeight, ao as MaxWidth, ap as MinHeight, aq as MinWidth, ar as Modes, as as Overflow, at as Palette, au as PaletteConfig, av as PaletteType, aw as PaletteValue, ax as PlatformMode, ay as Position, az as RegionMode, aA as ScaleConfig, S as ScaleMode, aB as ScaleModeConfig, aC as ScaleModeForApp, aD as SizingStyleProps, aE as SpacingAlias, aF as SpacingConfig, aG as SpacingStyleProps, aH as SpectrumColor, aI as SpectrumConfig, aJ as StateStyleProps, aK as StyleProps, aL as TextStyleProps, aM as TextTransform, aN as TextTransformConfig, aO as TextVariant, aP as TransitionDelay, aQ as TransitionDuration, aR as TransitionTiming, g as UniversalAvatarProps, aS as UniversalBoxProps, h as UniversalButtonProps, j as UniversalIconButtonProps, i as UniversalPressableProps, aT as UniversalTextInputProps, aU as UniversalTextProps, U as UniversalTokensConfig, aV as Width, n as alwaysPalette } from './types-COiuE8XK.cjs';
|
7
6
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
8
7
|
import { C as CX, a as CVA } from './types-FO65RM-W.cjs';
|
9
8
|
export { S as SetState } from './types-FO65RM-W.cjs';
|
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-
|
11
|
-
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';
|
9
|
+
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-Bm-r2Dpa.cjs';
|
10
|
+
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, fromEntries, mapValues } from './tokens/index.cjs';
|
12
11
|
|
13
12
|
interface HStackProps extends UniversalStackProps, DivProps {
|
14
13
|
}
|
15
14
|
/**
|
16
|
-
*
|
17
|
-
*
|
15
|
+
* HStack is a layout primative that arranges its children in a columns [flexbox](https://developer.mozilla.org/en-US/docs/Learn/CSS/CSS_layout/Flexbox)
|
16
|
+
* and can be used to compose larger layouts. HStack is similiar to [Box](./box) but provides additional features like a `gap` property to
|
17
|
+
* add spacing between children.
|
18
18
|
*
|
19
|
-
*
|
20
|
-
*
|
21
|
-
* -
|
22
|
-
* -
|
23
|
-
* -
|
24
|
-
* - you need columns of proportionate size to each other (also known as a ratio-based layout)
|
25
|
-
*
|
26
|
-
*
|
27
|
-
* @example
|
28
|
-
* #### Columns Sized to Content
|
29
|
-
*
|
30
|
-
* ```tsx
|
31
|
-
* import { Box, HStack } from "@yahoo/uds"
|
32
|
-
*
|
33
|
-
* export function Demo() {
|
34
|
-
* return (
|
35
|
-
* <HStack>
|
36
|
-
* <Box spacing="6" backgroundColor="secondary">
|
37
|
-
* First
|
38
|
-
* </Box>
|
39
|
-
* <Box spacing="6" backgroundColor="secondary">
|
40
|
-
* Second
|
41
|
-
* </Box>
|
42
|
-
* <Box spacing="6" backgroundColor="secondary">
|
43
|
-
* Third
|
44
|
-
* </Box>
|
45
|
-
* </HStack>
|
46
|
-
* )
|
47
|
-
* }
|
48
|
-
* ```
|
49
|
-
*
|
50
|
-
* #### Columns with Gaps
|
19
|
+
* **When to use**
|
20
|
+
* - create a row of items, optionally with gaps between items.
|
21
|
+
* - create columns that are sized to their content.
|
22
|
+
* - create columns that fill the available space within the parent container.
|
23
|
+
* - create columns of proportionate size to each other (also known as a ratio-based layout).
|
51
24
|
*
|
25
|
+
* **Basic usage**
|
52
26
|
* ```tsx
|
53
|
-
* import {
|
54
|
-
|
55
|
-
*
|
56
|
-
*
|
57
|
-
*
|
58
|
-
*
|
59
|
-
*
|
60
|
-
* </Box>
|
61
|
-
* <Box spacing="6" backgroundColor="secondary">
|
62
|
-
* Second
|
63
|
-
* </Box>
|
64
|
-
* <Box spacing="6" backgroundColor="secondary">
|
65
|
-
* Third
|
66
|
-
* </Box>
|
67
|
-
* </HStack>
|
68
|
-
* )
|
69
|
-
* }
|
70
|
-
* ```
|
71
|
-
*
|
72
|
-
* #### Columns that Fill the Available Space
|
73
|
-
*
|
74
|
-
* ```tsx
|
75
|
-
* import { Box, HStack } from "@yahoo/uds"
|
76
|
-
*
|
77
|
-
* export function Demo() {
|
78
|
-
* return (
|
79
|
-
* <HStack gap="1">
|
80
|
-
* <Box spacing="6" flexGrow="1" backgroundColor="secondary">
|
81
|
-
* First
|
82
|
-
* </Box>
|
83
|
-
* <Box spacing="6" flexGrow="1" backgroundColor="secondary">
|
84
|
-
* Second
|
85
|
-
* </Box>
|
86
|
-
* <Box spacing="6" flexGrow="1" backgroundColor="secondary">
|
87
|
-
* Third
|
88
|
-
* </Box>
|
89
|
-
* </HStack>
|
90
|
-
* )
|
91
|
-
* ```
|
92
|
-
*
|
93
|
-
* #### Columns that Have Proportionate Sizes
|
94
|
-
*
|
95
|
-
* ```tsx
|
96
|
-
* import { Box, HStack } from "@yahoo/uds"
|
97
|
-
*
|
98
|
-
* export function Demo() {
|
99
|
-
* return (
|
100
|
-
* <HStack gap="1">
|
101
|
-
* <Box spacing="6" flexGrow="1" backgroundColor="secondary">
|
102
|
-
* First
|
103
|
-
* </Box>
|
104
|
-
* <Box spacing="6" flexGrow="2" backgroundColor="secondary">
|
105
|
-
* Second
|
106
|
-
* </Box>
|
107
|
-
* <Box spacing="6" flexGrow="3" backgroundColor="secondary">
|
108
|
-
* Third
|
109
|
-
* </Box>
|
110
|
-
* </HStack>
|
111
|
-
* )
|
112
|
-
* }
|
27
|
+
* import { HStack, Text } from '@yahoo/uds';
|
28
|
+
|
29
|
+
* <HStack gap="6">
|
30
|
+
* <Text variant="body1" color="primary">First</Text>
|
31
|
+
* <Text variant="body1" color="primary">Second</Text>
|
32
|
+
* <Text variant="body1" color="primary">Third</Text>
|
33
|
+
* </HStack>
|
113
34
|
* ```
|
114
35
|
**/
|
115
36
|
declare const HStack: react.ForwardRefExoticComponent<HStackProps & react.RefAttributes<HTMLDivElement>>;
|
@@ -121,11 +42,11 @@ interface IconProps extends UniversalIconProps, HtmlSpanProps {
|
|
121
42
|
* Icon are available in an outline and fill variant. Each variant supports
|
122
43
|
* three different sizes: small, medium, and large.
|
123
44
|
*
|
124
|
-
*
|
45
|
+
* **Basic usage**
|
125
46
|
* ```tsx
|
126
47
|
* import { Icon } from "@yahoo/uds";
|
127
48
|
*
|
128
|
-
* <Icon name="academicCap" size="
|
49
|
+
* <Icon name="academicCap" size="md" color="primary" />
|
129
50
|
* ```
|
130
51
|
*/
|
131
52
|
declare const Icon: react.ForwardRefExoticComponent<IconProps & react.RefAttributes<HTMLSpanElement>>;
|
@@ -143,115 +64,13 @@ interface ImageProps extends NativeImageProps, UniversalImageProps {
|
|
143
64
|
* <Image src="/images/profile.png" width={580} height={334} />;
|
144
65
|
* ```
|
145
66
|
*/
|
146
|
-
declare function Image({ width: imageWidth, height: imageHeight, src, alt, contentFit,
|
147
|
-
|
148
|
-
type TextElementTagName = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'p' | 'strong' | 'span' | 'label' | 'li';
|
149
|
-
type TextProps<As extends TextElementTagName = TextElementTagName> = UniversalTextProps & {
|
150
|
-
ref?: Ref<HTMLElement>;
|
151
|
-
as?: As;
|
152
|
-
} & Omit<JSX.IntrinsicElements[As], 'color'>;
|
153
|
-
/**
|
154
|
-
* A text element that can be used to display text.
|
155
|
-
* @example
|
156
|
-
#### Display1
|
157
|
-
|
158
|
-
Display1 styles are to be used very sparingly. Display styles supersede Title styles, so they are there for when you need to layer on more hierarchy.
|
159
|
-
The default html text element rendered for this variant is `h1`.
|
160
|
-
|
161
|
-
```tsx
|
162
|
-
import { Text, VStack } from "@yahoo/uds"
|
163
|
-
|
164
|
-
export function Demo() {
|
165
|
-
return (
|
166
|
-
<VStack>
|
167
|
-
<Text variant="display1">Display 1</Text>
|
168
|
-
</VStack>
|
169
|
-
)
|
170
|
-
}
|
171
|
-
```
|
172
|
-
|
173
|
-
#### Title
|
174
|
-
|
175
|
-
Title styles are used to establish the primary hierarchy in a layout. They should be used to label sections.
|
176
|
-
The default html text element rendered for this variant is `h1` for `title1`, `h2` for `title2`, `h3` for `title3` and `h4` for `headline1`.
|
177
|
-
|
178
|
-
```tsx
|
179
|
-
import { Text, VStack } from "@yahoo/uds"
|
180
|
-
|
181
|
-
export function Demo() {
|
182
|
-
return (
|
183
|
-
<VStack gap="6">
|
184
|
-
<Text variant="title1">Title 1</Text>
|
185
|
-
<Text variant="title2">Title 2</Text>
|
186
|
-
<Text variant="title3">Title 3</Text>
|
187
|
-
</VStack>
|
188
|
-
)
|
189
|
-
}
|
190
|
-
```
|
191
|
-
|
192
|
-
#### Headline & Body
|
193
|
-
|
194
|
-
Headline and body styles are your essential content styles. They’re versatile styles that can be used for paragraphs, data, labels for buttons.
|
195
|
-
The default html text element rendered for this variant is `p`.
|
196
|
-
|
197
|
-
```tsx
|
198
|
-
import { Text, VStack } from "@yahoo/uds"
|
199
|
-
|
200
|
-
export function Demo() {
|
201
|
-
return (
|
202
|
-
<VStack gap="6">
|
203
|
-
<Text variant="headline1">Headline 1</Text>
|
204
|
-
<Text variant="body1">Body 1</Text>
|
205
|
-
</VStack>
|
206
|
-
)
|
207
|
-
}
|
208
|
-
```
|
209
|
-
|
210
|
-
#### Label & Caption
|
211
|
-
|
212
|
-
Label and caption styles are when you need to add hierarchy in your content. They ideally are used in conjunction with Headline and Body styles, but in extraordinarily dense interfaces they can replace Headline & Body should you need to present large data sets to users. They’re also great candidates for presenting numbers to the user as they have tabular numbers by default.
|
213
|
-
The default html text element rendered for this variant is `p`.
|
214
|
-
|
215
|
-
```tsx
|
216
|
-
import { Text, VStack } from "@yahoo/uds"
|
217
|
-
|
218
|
-
export function Demo() {
|
219
|
-
return (
|
220
|
-
<VStack gap="6">
|
221
|
-
<Text variant="label1">Label 1</Text>
|
222
|
-
<Text variant="label2">Label 2</Text>
|
223
|
-
<Text variant="caption1">Caption 1</Text>
|
224
|
-
<Text variant="caption2">Caption 2</Text>
|
225
|
-
</VStack>
|
226
|
-
)
|
227
|
-
}
|
228
|
-
```
|
229
|
-
|
230
|
-
#### Legal
|
231
|
-
|
232
|
-
Legal styles are used for legal disclaimers and fine print.
|
233
|
-
The default html text element rendered for this variant is `p`.
|
234
|
-
|
235
|
-
```tsx
|
236
|
-
import { Text, VStack } from "@yahoo/uds"
|
237
|
-
|
238
|
-
export function Demo() {
|
239
|
-
return (
|
240
|
-
<VStack>
|
241
|
-
<Text variant="legal1">Legal 1</Text>
|
242
|
-
</VStack>
|
243
|
-
)
|
244
|
-
}
|
245
|
-
```
|
246
|
-
*/
|
247
|
-
declare const Text: react.ForwardRefExoticComponent<Omit<TextProps<TextElementTagName>, "ref"> & react.RefAttributes<HTMLElement>>;
|
67
|
+
declare function Image({ width: imageWidth, height: imageHeight, src, alt, contentFit, backgroundColor, borderRadius, borderTopStartRadius, borderTopEndRadius, borderBottomStartRadius, borderBottomEndRadius, borderColor, borderColorOnActive, borderColorOnFocus, borderColorOnChecked, borderColorOnHover, borderStartColor, borderEndColor, borderTopColor, borderBottomColor, borderWidth, borderVerticalWidth, borderHorizontalWidth, borderStartWidth, borderEndWidth, borderTopWidth, borderBottomWidth, alignContent, alignItems, alignSelf, flex, flexDirection, flexGrow, flexShrink, flexWrap, justifyContent, flexBasis, display, overflow, overflowX, overflowY, position, spacing, spacingHorizontal, spacingVertical, spacingBottom, spacingEnd, spacingStart, spacingTop, offset, offsetVertical, offsetHorizontal, offsetBottom, offsetEnd, offsetStart, offsetTop, columnGap, rowGap, minHeight, maxHeight, minWidth, maxWidth, ...props }: ImageProps): react_jsx_runtime.JSX.Element;
|
248
68
|
|
249
69
|
declare const cx: CX<string>;
|
250
70
|
declare const cva: CVA<string>;
|
251
71
|
declare const getStyles: (props?: ({
|
252
|
-
color?: "
|
253
|
-
|
254
|
-
placeholderColor?: "transparent" | "accent" | "alert" | "brand" | "positive" | "warning" | "primary" | "secondary" | "tertiary" | "muted" | "on-color" | "white" | "black" | undefined;
|
72
|
+
color?: "accent" | "alert" | "brand" | "positive" | "warning" | "primary" | "secondary" | "tertiary" | "muted" | "on-color" | "transparent" | "white" | "black" | undefined;
|
73
|
+
placeholderColor?: "accent" | "alert" | "brand" | "positive" | "warning" | "primary" | "secondary" | "tertiary" | "muted" | "on-color" | "transparent" | "white" | "black" | undefined;
|
255
74
|
fontFamily?: "display1" | "display2" | "display3" | "title1" | "title2" | "title3" | "title4" | "headline1" | "body1" | "label1" | "label2" | "caption1" | "caption2" | "legal1" | "icons" | "sans" | "sans-beta" | "sans-condensed" | "serif-text" | "serif-display" | undefined;
|
256
75
|
fontSize?: "display1" | "display2" | "display3" | "title1" | "title2" | "title3" | "title4" | "headline1" | "body1" | "label1" | "label2" | "caption1" | "caption2" | "legal1" | undefined;
|
257
76
|
fontWeight?: "bold" | "black" | "display1" | "display2" | "display3" | "title1" | "title2" | "title3" | "title4" | "headline1" | "body1" | "label1" | "label2" | "caption1" | "caption2" | "legal1" | "thin" | "extralight" | "light" | "regular" | "medium" | "semibold" | "extrabold" | undefined;
|
@@ -274,28 +93,21 @@ declare const getStyles: (props?: ({
|
|
274
93
|
offsetTop?: "9" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "10" | "11" | "12" | "13" | "14" | "none" | undefined;
|
275
94
|
columnGap?: "9" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "10" | "11" | "12" | "13" | "14" | "none" | undefined;
|
276
95
|
rowGap?: "9" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "10" | "11" | "12" | "13" | "14" | "none" | undefined;
|
277
|
-
backgroundColor?: "
|
278
|
-
|
279
|
-
|
280
|
-
|
281
|
-
|
282
|
-
|
283
|
-
|
284
|
-
|
285
|
-
|
286
|
-
|
287
|
-
borderColorOnHover?: "transparent" | "accent" | "alert" | "brand" | "positive" | "warning" | "primary" | "secondary" | "tertiary" | "muted" | "white" | "black" | undefined;
|
288
|
-
borderColorOnChecked?: "transparent" | "accent" | "alert" | "brand" | "positive" | "warning" | "primary" | "secondary" | "tertiary" | "muted" | "white" | "black" | undefined;
|
289
|
-
borderStartColor?: "transparent" | "accent" | "alert" | "brand" | "positive" | "warning" | "primary" | "secondary" | "tertiary" | "muted" | "white" | "black" | undefined;
|
290
|
-
borderEndColor?: "transparent" | "accent" | "alert" | "brand" | "positive" | "warning" | "primary" | "secondary" | "tertiary" | "muted" | "white" | "black" | undefined;
|
291
|
-
borderBottomColor?: "transparent" | "accent" | "alert" | "brand" | "positive" | "warning" | "primary" | "secondary" | "tertiary" | "muted" | "white" | "black" | undefined;
|
292
|
-
borderTopColor?: "transparent" | "accent" | "alert" | "brand" | "positive" | "warning" | "primary" | "secondary" | "tertiary" | "muted" | "white" | "black" | undefined;
|
96
|
+
backgroundColor?: "accent" | "alert" | "brand" | "positive" | "warning" | "primary" | "secondary" | "transparent" | "white" | "black" | undefined;
|
97
|
+
borderColor?: "accent" | "alert" | "brand" | "positive" | "warning" | "primary" | "secondary" | "tertiary" | "muted" | "transparent" | "white" | "black" | undefined;
|
98
|
+
borderColorOnActive?: "accent" | "alert" | "brand" | "positive" | "warning" | "primary" | "secondary" | "tertiary" | "muted" | "transparent" | "white" | "black" | undefined;
|
99
|
+
borderColorOnFocus?: "accent" | "alert" | "brand" | "positive" | "warning" | "primary" | "secondary" | "tertiary" | "muted" | "transparent" | "white" | "black" | undefined;
|
100
|
+
borderColorOnHover?: "accent" | "alert" | "brand" | "positive" | "warning" | "primary" | "secondary" | "tertiary" | "muted" | "transparent" | "white" | "black" | undefined;
|
101
|
+
borderColorOnChecked?: "accent" | "alert" | "brand" | "positive" | "warning" | "primary" | "secondary" | "tertiary" | "muted" | "transparent" | "white" | "black" | undefined;
|
102
|
+
borderStartColor?: "accent" | "alert" | "brand" | "positive" | "warning" | "primary" | "secondary" | "tertiary" | "muted" | "transparent" | "white" | "black" | undefined;
|
103
|
+
borderEndColor?: "accent" | "alert" | "brand" | "positive" | "warning" | "primary" | "secondary" | "tertiary" | "muted" | "transparent" | "white" | "black" | undefined;
|
104
|
+
borderBottomColor?: "accent" | "alert" | "brand" | "positive" | "warning" | "primary" | "secondary" | "tertiary" | "muted" | "transparent" | "white" | "black" | undefined;
|
105
|
+
borderTopColor?: "accent" | "alert" | "brand" | "positive" | "warning" | "primary" | "secondary" | "tertiary" | "muted" | "transparent" | "white" | "black" | undefined;
|
293
106
|
borderRadius?: "none" | "xs" | "sm" | "md" | "lg" | "xl" | "full" | undefined;
|
294
107
|
borderTopStartRadius?: "none" | "xs" | "sm" | "md" | "lg" | "xl" | "full" | undefined;
|
295
108
|
borderTopEndRadius?: "none" | "xs" | "sm" | "md" | "lg" | "xl" | "full" | undefined;
|
296
109
|
borderBottomStartRadius?: "none" | "xs" | "sm" | "md" | "lg" | "xl" | "full" | undefined;
|
297
110
|
borderBottomEndRadius?: "none" | "xs" | "sm" | "md" | "lg" | "xl" | "full" | undefined;
|
298
|
-
bordered?: boolean | undefined;
|
299
111
|
borderWidth?: "thin" | "medium" | "none" | "thick" | undefined;
|
300
112
|
borderVerticalWidth?: "thin" | "medium" | "none" | "thick" | undefined;
|
301
113
|
borderHorizontalWidth?: "thin" | "medium" | "none" | "thick" | undefined;
|
@@ -303,12 +115,6 @@ declare const getStyles: (props?: ({
|
|
303
115
|
borderEndWidth?: "thin" | "medium" | "none" | "thick" | undefined;
|
304
116
|
borderTopWidth?: "thin" | "medium" | "none" | "thick" | undefined;
|
305
117
|
borderBottomWidth?: "thin" | "medium" | "none" | "thick" | undefined;
|
306
|
-
borderedVertical?: boolean | undefined;
|
307
|
-
borderedTop?: boolean | undefined;
|
308
|
-
borderedBottom?: boolean | undefined;
|
309
|
-
borderedHorizontal?: boolean | undefined;
|
310
|
-
borderedEnd?: boolean | undefined;
|
311
|
-
borderedStart?: boolean | undefined;
|
312
118
|
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;
|
313
119
|
minHeight?: "full" | "screen" | "min" | "max" | "fit" | undefined;
|
314
120
|
maxHeight?: "none" | "full" | "screen" | "min" | "max" | "fit" | undefined;
|
@@ -316,7 +122,7 @@ declare const getStyles: (props?: ({
|
|
316
122
|
minWidth?: "full" | "screen" | "min" | "max" | "fit" | undefined;
|
317
123
|
maxWidth?: "none" | "full" | "min" | "max" | "fit" | undefined;
|
318
124
|
avatarSize?: "s" | "m" | "l" | undefined;
|
319
|
-
iconSize?: "
|
125
|
+
iconSize?: "sm" | "md" | "lg" | undefined;
|
320
126
|
alignContent?: "flex-start" | "flex-end" | "center" | "stretch" | "space-between" | "space-around" | undefined;
|
321
127
|
alignItems?: "flex-start" | "flex-end" | "center" | "stretch" | "baseline" | undefined;
|
322
128
|
alignSelf?: "auto" | "flex-start" | "flex-end" | "center" | "stretch" | "baseline" | undefined;
|
@@ -328,11 +134,10 @@ declare const getStyles: (props?: ({
|
|
328
134
|
justifyContent?: "flex-start" | "flex-end" | "center" | "space-between" | "space-around" | "space-evenly" | undefined;
|
329
135
|
flexBasis?: "min-content" | undefined;
|
330
136
|
display?: "grid" | "block" | "inline-block" | "inline" | "flex" | "inline-flex" | "table" | "inline-table" | "table-caption" | "table-cell" | "table-column" | "table-column-group" | "table-footer-group" | "table-header-group" | "table-row-group" | "table-row" | "flow-root" | "contents" | undefined;
|
331
|
-
overflow?: "
|
332
|
-
overflowX?: "
|
333
|
-
overflowY?: "
|
137
|
+
overflow?: "hidden" | "auto" | "clip" | "visible" | "scroll" | undefined;
|
138
|
+
overflowX?: "hidden" | "auto" | "clip" | "visible" | "scroll" | undefined;
|
139
|
+
overflowY?: "hidden" | "auto" | "clip" | "visible" | "scroll" | undefined;
|
334
140
|
position?: "static" | "fixed" | "absolute" | "relative" | "sticky" | undefined;
|
335
|
-
zIndex?: "0" | "10" | "auto" | "20" | "30" | "40" | "50" | undefined;
|
336
141
|
contentFit?: "none" | "cover" | "contain" | "fill" | "scale-down" | undefined;
|
337
142
|
colorMode?: "light" | "dark" | undefined;
|
338
143
|
scaleMode?: "medium" | "xSmall" | "small" | "large" | "xLarge" | "xxLarge" | "xxxLarge" | undefined;
|
@@ -340,4 +145,4 @@ declare const getStyles: (props?: ({
|
|
340
145
|
className?: string | undefined;
|
341
146
|
}) | undefined) => string;
|
342
147
|
|
343
|
-
export { HStack, type HStackProps, Icon, type IconProps, Image, type ImageProps,
|
148
|
+
export { HStack, type HStackProps, Icon, type IconProps, Image, type ImageProps, UniversalIconProps, UniversalImageProps, UniversalStackProps, cva, cx, getStyles };
|