@yahoo/uds 0.1.5 → 0.1.8
Sign up to get free protection for your applications and to get access to all the features.
- package/bin/uds +0 -0
- package/dist/chunk-DMEYYZHA.js +1 -0
- package/dist/index.cjs +2 -1
- package/dist/index.d.cts +520 -92
- package/dist/index.d.ts +520 -92
- package/dist/index.js +2 -1
- package/dist/styles/fonts.css +1 -1
- package/dist/styles/globals.css +1 -0
- package/dist/styles/globals.d.cts +2 -0
- package/dist/styles/globals.d.ts +2 -0
- package/dist/tailwindPlugin.cjs +1 -0
- package/dist/tailwindPlugin.d.cts +15 -0
- package/dist/tailwindPlugin.d.ts +15 -0
- package/dist/tailwindPlugin.js +1 -0
- package/package.json +42 -10
- package/dist/chunk-RK4NHJLQ.js +0 -1
- package/dist/fixtures.cjs +0 -1
- package/dist/fixtures.d.cts +0 -45
- package/dist/fixtures.d.ts +0 -45
- package/dist/fixtures.js +0 -1
- package/dist/types-y_uPBR2j.d.cts +0 -34564
- package/dist/types-y_uPBR2j.d.ts +0 -34564
package/dist/index.d.cts
CHANGED
@@ -1,61 +1,498 @@
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
2
|
+
import { UniversalAvatarProps, UniversalBoxProps, UniversalPressableProps, UniversalButtonProps, IconName, Overflow, UniversalTextProps, ButtonVariant, ButtonSize, UniversalStackProps, UniversalIconProps, UniversalIconButtonProps, ForegroundColor, UniversalImageProps, UniversalTextInputProps } from '@yahoo/uds-tokens';
|
3
|
+
export * from '@yahoo/uds-tokens';
|
2
4
|
import * as react from 'react';
|
3
|
-
import react__default from 'react';
|
4
|
-
import
|
5
|
-
|
6
|
-
|
7
|
-
import '
|
5
|
+
import react__default, { PropsWithChildren, Dispatch, SetStateAction } from 'react';
|
6
|
+
import * as _ariakit_react from '@ariakit/react';
|
7
|
+
import { PopoverProps, PopoverProviderProps, 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
|
+
export { DialogStore as ModalStore, TabListProps, TabPanelProps, TabProviderProps as TabsProps, usePopoverStore } from '@ariakit/react';
|
9
|
+
import { ToastContainerProps } from 'react-toastify';
|
10
|
+
export { toast } from 'react-toastify';
|
8
11
|
|
9
|
-
|
10
|
-
|
12
|
+
interface AccordionProps extends React.PropsWithChildren {
|
13
|
+
label: string;
|
14
|
+
open?: boolean;
|
15
|
+
onClick?: () => void;
|
16
|
+
}
|
17
|
+
declare function Accordion({ label, children, onClick, open }: AccordionProps): react_jsx_runtime.JSX.Element;
|
18
|
+
|
19
|
+
type NativeImageProps$1 = Omit<react__default.ImgHTMLAttributes<HTMLImageElement>, 'size' | 'color' | 'height' | 'width' | 'alt' | 'src'>;
|
20
|
+
interface AvatarProps extends NativeImageProps$1, UniversalAvatarProps {
|
11
21
|
}
|
12
22
|
/**
|
13
23
|
* Avatar can be used for profile images.
|
14
24
|
*/
|
15
25
|
declare function Avatar({ size: avatarSize, shape: borderRadius, src, alt, ...props }: AvatarProps): react_jsx_runtime.JSX.Element;
|
16
26
|
|
17
|
-
type DivProps = React.HTMLAttributes<HTMLDivElement>;
|
18
|
-
interface BoxProps extends UniversalBoxProps, DivProps {
|
27
|
+
type DivProps$1 = React.HTMLAttributes<HTMLDivElement>;
|
28
|
+
interface BoxProps extends UniversalBoxProps, DivProps$1 {
|
19
29
|
}
|
20
30
|
/**
|
21
|
-
* A
|
31
|
+
* A layout primitive that can be used to compose other components.
|
32
|
+
* @example
|
33
|
+
```tsx
|
34
|
+
import { Box } from "@yahoo/uds"
|
35
|
+
|
36
|
+
export function Demo() {
|
37
|
+
return (
|
38
|
+
<Box
|
39
|
+
bordered
|
40
|
+
backgroundColor="primary"
|
41
|
+
borderRadius="md"
|
42
|
+
spacing='6'
|
43
|
+
>
|
44
|
+
Any kind of content can go here!
|
45
|
+
</Box>
|
46
|
+
)
|
47
|
+
}
|
48
|
+
```
|
22
49
|
*/
|
23
50
|
declare const Box: react.ForwardRefExoticComponent<BoxProps & react.RefAttributes<HTMLDivElement>>;
|
24
51
|
|
25
|
-
type HtmlButtonProps = Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, 'color'>;
|
52
|
+
type HtmlButtonProps = Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, 'color' | 'name'>;
|
26
53
|
interface PressableProps extends UniversalPressableProps, HtmlButtonProps {
|
27
54
|
}
|
28
55
|
/**
|
29
|
-
*
|
56
|
+
* Provides press interactions with accessibility support.
|
57
|
+
* @example
|
58
|
+
```tsx
|
59
|
+
import { Pressable, Text } from "@yahoo/uds"
|
60
|
+
|
61
|
+
export function Demo() {
|
62
|
+
return (
|
63
|
+
<Pressable
|
64
|
+
onClick={console.log}
|
65
|
+
backgroundColor="secondary"
|
66
|
+
bordered
|
67
|
+
borderColor="primary"
|
68
|
+
borderRadius="l"
|
69
|
+
>
|
70
|
+
<Text variant="body1" spacingHorizontal="7" spacingVertical="5">Click me...</Text>
|
71
|
+
</Pressable>
|
72
|
+
)
|
73
|
+
}
|
74
|
+
```
|
30
75
|
*/
|
31
76
|
declare const Pressable: react.ForwardRefExoticComponent<PressableProps & react.RefAttributes<HTMLButtonElement>>;
|
32
77
|
|
33
78
|
interface ButtonProps extends PressableProps, UniversalButtonProps {
|
34
79
|
}
|
35
80
|
/**
|
36
|
-
*
|
81
|
+
* A button element that can be used to trigger an action.
|
82
|
+
* @example
|
83
|
+
```tsx
|
84
|
+
import { Button, HStack } from "@yahoo/uds"
|
85
|
+
|
86
|
+
export function Demo() {
|
87
|
+
return (
|
88
|
+
<HStack gap="2">
|
89
|
+
<Button variant="accent" onClick={console.log}>Save</Button>
|
90
|
+
<Button variant="accent-outline" onClick={console.log}>Cancel</Button>
|
91
|
+
</HStack>
|
92
|
+
)
|
93
|
+
}
|
94
|
+
```
|
37
95
|
*/
|
38
96
|
declare const Button: react.ForwardRefExoticComponent<ButtonProps & react.RefAttributes<HTMLButtonElement>>;
|
39
97
|
|
40
|
-
|
98
|
+
interface ChipProps {
|
99
|
+
children?: string;
|
100
|
+
startContent?: React.ReactNode;
|
101
|
+
startIcon?: IconName;
|
102
|
+
endIcon?: IconName;
|
103
|
+
endContent?: React.ReactNode;
|
104
|
+
variant: 'accent' | 'secondary';
|
105
|
+
}
|
106
|
+
declare function Chip({ children, variant, startIcon, startContent, endIcon, endContent, }: ChipProps): react_jsx_runtime.JSX.Element;
|
107
|
+
|
108
|
+
interface DropdownItemsProps extends React.PropsWithChildren, Omit<PopoverProps, 'children'> {
|
109
|
+
overflow?: Overflow;
|
110
|
+
}
|
111
|
+
declare const DropdownItems: react.ForwardRefExoticComponent<Omit<DropdownItemsProps, "ref"> & react.RefAttributes<HTMLDivElement>>;
|
112
|
+
interface DropdownItemPressableProps extends Omit<PressableProps, 'onClick'> {
|
113
|
+
onClick?: (close: () => void) => void;
|
114
|
+
}
|
115
|
+
declare const DropdownItemPressable: react.ForwardRefExoticComponent<DropdownItemPressableProps & react.RefAttributes<HTMLButtonElement>>;
|
116
|
+
interface DropdownItemProps extends DropdownItemPressableProps {
|
117
|
+
startIcon?: IconName;
|
118
|
+
endIcon?: IconName;
|
119
|
+
title?: string;
|
120
|
+
description?: string;
|
121
|
+
_title?: UniversalTextProps;
|
122
|
+
_description?: UniversalTextProps;
|
123
|
+
}
|
124
|
+
declare function DropdownItem({ title, description, _title, _description, startIcon, endIcon, ...props }: DropdownItemProps): react_jsx_runtime.JSX.Element;
|
125
|
+
declare function DropdownTrigger({ children, variant, size, ...props }: {
|
126
|
+
children: React.ReactNode;
|
127
|
+
variant?: ButtonVariant;
|
128
|
+
size?: ButtonSize;
|
129
|
+
} & PressableProps): react_jsx_runtime.JSX.Element;
|
130
|
+
interface DropdownProps extends PopoverProviderProps {
|
131
|
+
children: React.ReactNode;
|
132
|
+
}
|
133
|
+
declare const Dropdown: typeof _ariakit_react.PopoverProvider;
|
134
|
+
|
135
|
+
type HStackProps = UniversalStackProps & DivProps$1;
|
136
|
+
/**
|
137
|
+
* @example
|
138
|
+
A layout primitive that can be used to compose other components.
|
139
|
+
The HStack is essentially the same component as [Box](/components/box) where it uses [flexbox](https://developer.mozilla.org/en-US/docs/Learn/CSS/CSS_layout/Flexbox) to lay content out in a row. Where it differs is HStack also allows for gaps between children via the `gap` prop.
|
140
|
+
|
141
|
+
You should use HStack when:
|
142
|
+
|
143
|
+
- you want to lay content out in columns that are sized to their content
|
144
|
+
- you want to add gaps between columns
|
145
|
+
- you want to lay content out in columns that fill the available space within the parent container
|
146
|
+
- you need columns of proportionate size to each other (also known as a ratio-based layout)
|
147
|
+
|
148
|
+
|
149
|
+
#### Columns Sized to Content
|
150
|
+
|
151
|
+
```tsx
|
152
|
+
import { Box, HStack } from "@yahoo/uds"
|
153
|
+
|
154
|
+
export function Demo() {
|
155
|
+
return (
|
156
|
+
<HStack>
|
157
|
+
<Box spacing="6" backgroundColor="secondary">
|
158
|
+
First
|
159
|
+
</Box>
|
160
|
+
<Box spacing="6" backgroundColor="secondary">
|
161
|
+
Second
|
162
|
+
</Box>
|
163
|
+
<Box spacing="6" backgroundColor="secondary">
|
164
|
+
Third
|
165
|
+
</Box>
|
166
|
+
</HStack>
|
167
|
+
)
|
168
|
+
}
|
169
|
+
```
|
170
|
+
|
171
|
+
#### Columns with Gaps
|
172
|
+
|
173
|
+
```tsx
|
174
|
+
import { Box, HStack } from "@yahoo/uds"
|
175
|
+
|
176
|
+
export function Demo() {
|
177
|
+
return (
|
178
|
+
<HStack gap="1">
|
179
|
+
<Box spacing="6" backgroundColor="secondary">
|
180
|
+
First
|
181
|
+
</Box>
|
182
|
+
<Box spacing="6" backgroundColor="secondary">
|
183
|
+
Second
|
184
|
+
</Box>
|
185
|
+
<Box spacing="6" backgroundColor="secondary">
|
186
|
+
Third
|
187
|
+
</Box>
|
188
|
+
</HStack>
|
189
|
+
)
|
190
|
+
}
|
191
|
+
```
|
192
|
+
|
193
|
+
#### Columns that Fill the Available Space
|
194
|
+
|
195
|
+
```tsx
|
196
|
+
import { Box, HStack } from "@yahoo/uds"
|
197
|
+
|
198
|
+
export function Demo() {
|
199
|
+
return (
|
200
|
+
<HStack gap="1">
|
201
|
+
<Box spacing="6" flexGrow="1" backgroundColor="secondary">
|
202
|
+
First
|
203
|
+
</Box>
|
204
|
+
<Box spacing="6" flexGrow="1" backgroundColor="secondary">
|
205
|
+
Second
|
206
|
+
</Box>
|
207
|
+
<Box spacing="6" flexGrow="1" backgroundColor="secondary">
|
208
|
+
Third
|
209
|
+
</Box>
|
210
|
+
</HStack>
|
211
|
+
)
|
212
|
+
```
|
213
|
+
|
214
|
+
#### Columns that Have Proportionate Sizes
|
215
|
+
|
216
|
+
```tsx
|
217
|
+
import { Box, HStack } from "@yahoo/uds"
|
218
|
+
|
219
|
+
export function Demo() {
|
220
|
+
return (
|
221
|
+
<HStack gap="1">
|
222
|
+
<Box spacing="6" flexGrow="1" backgroundColor="secondary">
|
223
|
+
First
|
224
|
+
</Box>
|
225
|
+
<Box spacing="6" flexGrow="2" backgroundColor="secondary">
|
226
|
+
Second
|
227
|
+
</Box>
|
228
|
+
<Box spacing="6" flexGrow="3" backgroundColor="secondary">
|
229
|
+
Third
|
230
|
+
</Box>
|
231
|
+
</HStack>
|
232
|
+
)
|
233
|
+
}
|
234
|
+
```
|
235
|
+
*/
|
236
|
+
declare const HStack: react.ForwardRefExoticComponent<UniversalStackProps & DivProps$1 & react.RefAttributes<HTMLDivElement>>;
|
237
|
+
|
238
|
+
type HtmlSpanProps = Omit<React.HTMLAttributes<HTMLSpanElement>, 'color'>;
|
239
|
+
interface IconProps extends UniversalIconProps, HtmlSpanProps {
|
240
|
+
}
|
241
|
+
/**
|
242
|
+
* For an icon to render, it requires a unique name that maps to an upstream asset in Figma (this will autocomplete when using TypeScript), and a target size (s, m, l).
|
243
|
+
|
244
|
+
@example
|
245
|
+
```tsx
|
246
|
+
import { Icon } from "@yahoo/uds"
|
247
|
+
|
248
|
+
export function Demo() {
|
249
|
+
return <Icon name="academicCap" size="m" />
|
250
|
+
}
|
251
|
+
```
|
252
|
+
*/
|
253
|
+
declare const Icon: react.ForwardRefExoticComponent<IconProps & react.RefAttributes<HTMLSpanElement>>;
|
254
|
+
|
255
|
+
interface IconButtonProps extends PressableProps, UniversalIconButtonProps {
|
256
|
+
color?: ForegroundColor;
|
257
|
+
}
|
41
258
|
/**
|
42
|
-
*
|
259
|
+
* An icon button element that can be used to trigger an action.
|
260
|
+
* @example
|
261
|
+
```tsx
|
262
|
+
import { IconButton } from "@yahoo/uds"
|
263
|
+
|
264
|
+
export function IconButtonDemo() {
|
265
|
+
return (
|
266
|
+
<IconButton variant="accent-outline" name="close" onPress={console.log} />
|
267
|
+
)
|
268
|
+
}
|
269
|
+
```
|
43
270
|
*/
|
44
|
-
declare const
|
271
|
+
declare const IconButton: react.ForwardRefExoticComponent<IconButtonProps & react.RefAttributes<HTMLButtonElement>>;
|
272
|
+
|
273
|
+
type NativeImageProps = Omit<React.ImgHTMLAttributes<HTMLImageElement>, 'size' | 'color' | 'height' | 'width' | 'alt' | 'src'>;
|
274
|
+
interface ImageProps extends NativeImageProps, UniversalImageProps {
|
275
|
+
}
|
276
|
+
/**
|
277
|
+
* An image element with a fallback for representing the user.
|
278
|
+
*/
|
279
|
+
declare function Image({ width: imageWidth, height: imageHeight, src, alt, contentFit, elevation, backgroundColor, backgroundColorOnActive, backgroundColorOnHover, backgroundColorOnChecked, opacity, bordered, borderedTop, borderedBottom, borderedStart, borderedEnd, borderedHorizontal, borderedVertical, 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, zIndex, 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;
|
280
|
+
|
281
|
+
interface ModalProps extends DialogProps {
|
282
|
+
}
|
283
|
+
declare function useModalStore(params?: Parameters<typeof useDialogStore>[0]): DialogStore;
|
284
|
+
interface ModalHeaderProps extends React.PropsWithChildren {
|
285
|
+
handleClose?: () => void;
|
286
|
+
}
|
287
|
+
declare function ModalHeader({ children, handleClose }: ModalHeaderProps): react_jsx_runtime.JSX.Element;
|
288
|
+
declare function Modal({ className, ...props }: ModalProps): react_jsx_runtime.JSX.Element;
|
289
|
+
declare const ModalDismiss: typeof DialogDismiss;
|
290
|
+
|
291
|
+
interface PopoverHeadingProps extends PropsWithChildren {
|
292
|
+
leading?: react__default.ReactNode;
|
293
|
+
trailing?: react__default.ReactNode;
|
294
|
+
}
|
295
|
+
declare function PopoverHeading({ children, leading, trailing }: PopoverHeadingProps): react_jsx_runtime.JSX.Element;
|
296
|
+
declare const Popover: typeof Popover$1;
|
297
|
+
declare const PopoverArrow: typeof PopoverArrow$1;
|
298
|
+
declare const PopoverAnchor: typeof PopoverAnchor$1;
|
299
|
+
declare const PopoverDescription: typeof PopoverDescription$1;
|
300
|
+
declare const PopoverDismiss: typeof PopoverDismiss$1;
|
301
|
+
declare const PopoverProvider: typeof PopoverProvider$1;
|
302
|
+
declare const PopoverDisclosure: typeof PopoverDisclosure$1;
|
303
|
+
declare const PopoverDisclosureArrow: typeof PopoverDisclosureArrow$1;
|
45
304
|
|
46
|
-
type
|
47
|
-
interface
|
305
|
+
type DivProps = React.HTMLAttributes<HTMLDivElement>;
|
306
|
+
interface SpinnerProps extends DivProps {
|
48
307
|
}
|
308
|
+
declare function Spinner({ className, ...props }: SpinnerProps): react_jsx_runtime.JSX.Element;
|
309
|
+
|
310
|
+
interface TabProps extends React.PropsWithChildren {
|
311
|
+
asChild?: boolean;
|
312
|
+
value: string;
|
313
|
+
label: string;
|
314
|
+
startIcon?: IconName;
|
315
|
+
}
|
316
|
+
declare function Tabs(props: TabProviderProps): react_jsx_runtime.JSX.Element;
|
317
|
+
declare const TabList: react.ForwardRefExoticComponent<Omit<TabListProps, "ref"> & react.RefAttributes<HTMLDivElement>>;
|
318
|
+
declare const Tab: ({ asChild, label, value, startIcon }: TabProps) => react_jsx_runtime.JSX.Element;
|
319
|
+
declare const TabPanel: react.ForwardRefExoticComponent<Omit<TabPanelProps, "ref"> & react.RefAttributes<HTMLDivElement>>;
|
320
|
+
|
321
|
+
type TextElement = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'p' | 'strong' | 'span' | 'label' | 'li';
|
322
|
+
type TextProps<As extends TextElement = TextElement> = UniversalTextProps & {
|
323
|
+
as?: As;
|
324
|
+
} & Omit<JSX.IntrinsicElements[As], 'color'>;
|
49
325
|
/**
|
50
|
-
*
|
326
|
+
* A text element that can be used to display text.
|
327
|
+
* @example
|
328
|
+
#### Display1
|
329
|
+
|
330
|
+
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.
|
331
|
+
The default html text element rendered for this variant is `h1`.
|
332
|
+
|
333
|
+
```tsx
|
334
|
+
import { Text, VStack } from "@yahoo/uds"
|
335
|
+
|
336
|
+
export function Demo() {
|
337
|
+
return (
|
338
|
+
<VStack>
|
339
|
+
<Text variant="display1">Display 1</Text>
|
340
|
+
</VStack>
|
341
|
+
)
|
342
|
+
}
|
343
|
+
```
|
344
|
+
|
345
|
+
#### Title
|
346
|
+
|
347
|
+
Title styles are used to establish the primary hierarchy in a layout. They should be used to label sections.
|
348
|
+
The default html text element rendered for this variant is `h1` for `title1`, `h2` for `title2`, `h3` for `title3` and `h4` for `headline1`.
|
349
|
+
|
350
|
+
```tsx
|
351
|
+
import { Text, VStack } from "@yahoo/uds"
|
352
|
+
|
353
|
+
export function Demo() {
|
354
|
+
return (
|
355
|
+
<VStack gap="6">
|
356
|
+
<Text variant="title1">Title 1</Text>
|
357
|
+
<Text variant="title2">Title 2</Text>
|
358
|
+
<Text variant="title3">Title 3</Text>
|
359
|
+
</VStack>
|
360
|
+
)
|
361
|
+
}
|
362
|
+
```
|
363
|
+
|
364
|
+
#### Headline & Body
|
365
|
+
|
366
|
+
Headline and body styles are your essential content styles. They’re versatile styles that can be used for paragraphs, data, labels for buttons.
|
367
|
+
The default html text element rendered for this variant is `p`.
|
368
|
+
|
369
|
+
```tsx
|
370
|
+
import { Text, VStack } from "@yahoo/uds"
|
371
|
+
|
372
|
+
export function Demo() {
|
373
|
+
return (
|
374
|
+
<VStack gap="6">
|
375
|
+
<Text variant="headline1">Headline 1</Text>
|
376
|
+
<Text variant="body1">Body 1</Text>
|
377
|
+
</VStack>
|
378
|
+
)
|
379
|
+
}
|
380
|
+
```
|
381
|
+
|
382
|
+
#### Label & Caption
|
383
|
+
|
384
|
+
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.
|
385
|
+
The default html text element rendered for this variant is `p`.
|
386
|
+
|
387
|
+
```tsx
|
388
|
+
import { Text, VStack } from "@yahoo/uds"
|
389
|
+
|
390
|
+
export function Demo() {
|
391
|
+
return (
|
392
|
+
<VStack gap="6">
|
393
|
+
<Text variant="label1">Label 1</Text>
|
394
|
+
<Text variant="label2">Label 2</Text>
|
395
|
+
<Text variant="caption1">Caption 1</Text>
|
396
|
+
<Text variant="caption2">Caption 2</Text>
|
397
|
+
</VStack>
|
398
|
+
)
|
399
|
+
}
|
400
|
+
```
|
401
|
+
|
402
|
+
#### Legal
|
403
|
+
|
404
|
+
Legal styles are used for legal disclaimers and fine print.
|
405
|
+
The default html text element rendered for this variant is `p`.
|
406
|
+
|
407
|
+
```tsx
|
408
|
+
import { Text, VStack } from "@yahoo/uds"
|
409
|
+
|
410
|
+
export function Demo() {
|
411
|
+
return (
|
412
|
+
<VStack>
|
413
|
+
<Text variant="legal1">Legal 1</Text>
|
414
|
+
</VStack>
|
415
|
+
)
|
416
|
+
}
|
417
|
+
```
|
51
418
|
*/
|
52
|
-
declare const Text: react.ForwardRefExoticComponent<TextProps & react.RefAttributes<HTMLParagraphElement>>;
|
419
|
+
declare const Text: react.ForwardRefExoticComponent<Omit<TextProps<TextElement>, "ref"> & react.RefAttributes<HTMLParagraphElement>>;
|
420
|
+
|
421
|
+
type NativeTextInputProps = Omit<React.InputHTMLAttributes<HTMLInputElement>, 'height' | 'size' | 'width' | ''>;
|
422
|
+
interface TextInputProps extends NativeTextInputProps, UniversalTextInputProps {
|
423
|
+
}
|
424
|
+
interface TextInputLabelProps extends React.PropsWithChildren {
|
425
|
+
required?: boolean;
|
426
|
+
}
|
427
|
+
interface TextInputGroupProps extends TextInputProps {
|
428
|
+
label?: string;
|
429
|
+
}
|
430
|
+
declare function TextInputLabel({ children, required }: TextInputLabelProps): react_jsx_runtime.JSX.Element;
|
431
|
+
declare function TextInput({ className, disabled, ...props }: TextInputProps): react_jsx_runtime.JSX.Element;
|
432
|
+
declare function TextInputGroup({ label, required, ...props }: TextInputGroupProps): react_jsx_runtime.JSX.Element;
|
433
|
+
|
434
|
+
interface ToastProps extends ToastContainerProps {
|
435
|
+
}
|
436
|
+
declare function ToastContainer(props: ToastProps): react_jsx_runtime.JSX.Element;
|
53
437
|
|
54
|
-
type VStackProps = UniversalStackProps & DivProps;
|
438
|
+
type VStackProps = UniversalStackProps & DivProps$1;
|
55
439
|
/**
|
56
|
-
*
|
440
|
+
* @example
|
441
|
+
The VStack is essentially the same component as [Box](/components/box) where it uses [flexbox](https://developer.mozilla.org/en-US/docs/Learn/CSS/CSS_layout/Flexbox) but it lays out content in a column. VStack also allows for gaps between children via the `gap` prop.
|
442
|
+
|
443
|
+
You should use VStack when:
|
444
|
+
|
445
|
+
- you want to lay content out in rows that are sized to their content (height only, by default each child will fill the width of the VStack)
|
446
|
+
- you want to add gaps between columns
|
447
|
+
- you want to lay content out in columns that fill the available space within the parent container
|
448
|
+
- you need columns of proportionate size to each other (also known as a ratio-based layout)
|
449
|
+
|
450
|
+
#### Rows with Gaps
|
451
|
+
|
452
|
+
```tsx
|
453
|
+
import { Box, VStack } from "@yahoo/uds"
|
454
|
+
|
455
|
+
export function Demo() {
|
456
|
+
return (
|
457
|
+
<VStack gap="6">
|
458
|
+
<Box spacing="6" backgroundColor="secondary">
|
459
|
+
First
|
460
|
+
</Box>
|
461
|
+
<Box spacing="6" backgroundColor="secondary">
|
462
|
+
Second
|
463
|
+
</Box>
|
464
|
+
<Box spacing="6" backgroundColor="secondary">
|
465
|
+
Third
|
466
|
+
</Box>
|
467
|
+
</VStack>
|
468
|
+
)
|
469
|
+
}
|
470
|
+
```
|
471
|
+
|
472
|
+
#### Rows that Have Proportionate Sizes
|
473
|
+
|
474
|
+
```tsx
|
475
|
+
import { Box, VStack } from "@yahoo/uds"
|
476
|
+
|
477
|
+
export function Demo() {
|
478
|
+
return (
|
479
|
+
<VStack gap="6">
|
480
|
+
<Box spacing="6" flexGrow="1" backgroundColor="secondary">
|
481
|
+
First
|
482
|
+
</Box>
|
483
|
+
<Box spacing="6" flexGrow="2" backgroundColor="secondary">
|
484
|
+
Second
|
485
|
+
</Box>
|
486
|
+
<Box spacing="6" flexGrow="3" backgroundColor="secondary">
|
487
|
+
Third
|
488
|
+
</Box>
|
489
|
+
</VStack>
|
490
|
+
)
|
491
|
+
}
|
492
|
+
```
|
493
|
+
|
57
494
|
*/
|
58
|
-
declare const VStack: react.ForwardRefExoticComponent<UniversalStackProps & DivProps & react.RefAttributes<HTMLDivElement>>;
|
495
|
+
declare const VStack: react.ForwardRefExoticComponent<UniversalStackProps & DivProps$1 & react.RefAttributes<HTMLDivElement>>;
|
59
496
|
|
60
497
|
type StringToBoolean<T> = T extends 'true' | 'false' ? boolean : T;
|
61
498
|
type CvaStyleValue<T> = T | CvaStyleArray<T> | Record<string, unknown> | null | boolean | undefined;
|
@@ -93,50 +530,50 @@ interface CX<T> {
|
|
93
530
|
declare const cx: CX<string>;
|
94
531
|
declare const cva: CVA<string>;
|
95
532
|
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" | "
|
98
|
-
fontFamily?: "icons" | "sans" | "sans-condensed" | "serif-text" | "serif-display" | undefined;
|
533
|
+
color?: "accent" | "alert" | "brand" | "positive" | "warning" | "primary" | "secondary" | "tertiary" | "muted" | "on-color" | "white" | "black" | "transparent" | undefined;
|
534
|
+
colorChecked?: "accent" | "alert" | "brand" | "positive" | "warning" | "primary" | "secondary" | "tertiary" | "muted" | "on-color" | "white" | "black" | "transparent" | undefined;
|
535
|
+
fontFamily?: "icons" | "display1" | "title1" | "title2" | "title3" | "title4" | "headline1" | "body1" | "label1" | "label2" | "caption1" | "caption2" | "legal1" | "sans" | "sans-beta" | "sans-condensed" | "serif-text" | "serif-display" | "display2" | undefined;
|
99
536
|
fontSize?: "display1" | "title1" | "title2" | "title3" | "title4" | "headline1" | "body1" | "label1" | "label2" | "caption1" | "caption2" | "legal1" | "display2" | undefined;
|
100
|
-
fontWeight?: "
|
537
|
+
fontWeight?: "bold" | "black" | "display1" | "title1" | "title2" | "title3" | "title4" | "headline1" | "body1" | "label1" | "label2" | "caption1" | "caption2" | "legal1" | "display2" | "thin" | "extralight" | "light" | "regular" | "medium" | "semibold" | "extrabold" | undefined;
|
101
538
|
lineHeight?: "display1" | "title1" | "title2" | "title3" | "title4" | "headline1" | "body1" | "label1" | "label2" | "caption1" | "caption2" | "legal1" | "display2" | undefined;
|
102
|
-
textAlign?: "
|
103
|
-
textTransform?: "display1" | "title1" | "title2" | "title3" | "title4" | "headline1" | "body1" | "label1" | "label2" | "caption1" | "caption2" | "legal1" | "display2" | undefined;
|
104
|
-
spacing?: "0" | "1" | "2" | "
|
105
|
-
spacingHorizontal?: "0" | "1" | "2" | "
|
106
|
-
spacingVertical?: "0" | "1" | "2" | "
|
107
|
-
spacingBottom?: "0" | "1" | "2" | "
|
108
|
-
spacingEnd?: "0" | "1" | "2" | "
|
109
|
-
spacingStart?: "0" | "1" | "2" | "
|
110
|
-
spacingTop?: "0" | "1" | "2" | "
|
111
|
-
offset?: "0" | "1" | "2" | "
|
112
|
-
offsetVertical?: "0" | "1" | "2" | "
|
113
|
-
offsetHorizontal?: "0" | "1" | "2" | "
|
114
|
-
offsetBottom?: "0" | "1" | "2" | "
|
115
|
-
offsetEnd?: "0" | "1" | "2" | "
|
116
|
-
offsetStart?: "0" | "1" | "2" | "
|
117
|
-
offsetTop?: "0" | "1" | "2" | "
|
118
|
-
columnGap?: "0" | "1" | "2" | "
|
119
|
-
rowGap?: "0" | "1" | "2" | "
|
120
|
-
backgroundColor?: "accent" | "alert" | "brand" | "positive" | "warning" | "primary" | "secondary" | "
|
121
|
-
backgroundColorOnActive?: "accent" | "alert" | "brand" | "positive" | "warning" | "primary" | "secondary" | "
|
122
|
-
backgroundColorOnHover?: "accent" | "alert" | "brand" | "positive" | "warning" | "primary" | "secondary" | "
|
123
|
-
backgroundColorOnChecked?: "accent" | "alert" | "brand" | "positive" | "warning" | "primary" | "secondary" | "
|
539
|
+
textAlign?: "end" | "start" | "center" | "justify" | undefined;
|
540
|
+
textTransform?: "display1" | "title1" | "title2" | "title3" | "title4" | "headline1" | "body1" | "label1" | "label2" | "caption1" | "caption2" | "legal1" | "display2" | "none" | "uppercase" | "lowercase" | "capitalize" | undefined;
|
541
|
+
spacing?: "0" | "1" | "2" | "4" | "8" | "3" | "5" | "6" | "7" | "9" | "10" | "11" | "12" | "13" | "14" | undefined;
|
542
|
+
spacingHorizontal?: "0" | "1" | "2" | "4" | "8" | "3" | "5" | "6" | "7" | "9" | "10" | "11" | "12" | "13" | "14" | undefined;
|
543
|
+
spacingVertical?: "0" | "1" | "2" | "4" | "8" | "3" | "5" | "6" | "7" | "9" | "10" | "11" | "12" | "13" | "14" | undefined;
|
544
|
+
spacingBottom?: "0" | "1" | "2" | "4" | "8" | "3" | "5" | "6" | "7" | "9" | "10" | "11" | "12" | "13" | "14" | undefined;
|
545
|
+
spacingEnd?: "0" | "1" | "2" | "4" | "8" | "3" | "5" | "6" | "7" | "9" | "10" | "11" | "12" | "13" | "14" | undefined;
|
546
|
+
spacingStart?: "0" | "1" | "2" | "4" | "8" | "3" | "5" | "6" | "7" | "9" | "10" | "11" | "12" | "13" | "14" | undefined;
|
547
|
+
spacingTop?: "0" | "1" | "2" | "4" | "8" | "3" | "5" | "6" | "7" | "9" | "10" | "11" | "12" | "13" | "14" | undefined;
|
548
|
+
offset?: "0" | "1" | "2" | "4" | "8" | "3" | "5" | "6" | "7" | "9" | "10" | "11" | "12" | "13" | "14" | undefined;
|
549
|
+
offsetVertical?: "0" | "1" | "2" | "4" | "8" | "3" | "5" | "6" | "7" | "9" | "10" | "11" | "12" | "13" | "14" | undefined;
|
550
|
+
offsetHorizontal?: "0" | "1" | "2" | "4" | "8" | "3" | "5" | "6" | "7" | "9" | "10" | "11" | "12" | "13" | "14" | undefined;
|
551
|
+
offsetBottom?: "0" | "1" | "2" | "4" | "8" | "3" | "5" | "6" | "7" | "9" | "10" | "11" | "12" | "13" | "14" | undefined;
|
552
|
+
offsetEnd?: "0" | "1" | "2" | "4" | "8" | "3" | "5" | "6" | "7" | "9" | "10" | "11" | "12" | "13" | "14" | undefined;
|
553
|
+
offsetStart?: "0" | "1" | "2" | "4" | "8" | "3" | "5" | "6" | "7" | "9" | "10" | "11" | "12" | "13" | "14" | undefined;
|
554
|
+
offsetTop?: "0" | "1" | "2" | "4" | "8" | "3" | "5" | "6" | "7" | "9" | "10" | "11" | "12" | "13" | "14" | undefined;
|
555
|
+
columnGap?: "0" | "1" | "2" | "4" | "8" | "3" | "5" | "6" | "7" | "9" | "10" | "11" | "12" | "13" | "14" | undefined;
|
556
|
+
rowGap?: "0" | "1" | "2" | "4" | "8" | "3" | "5" | "6" | "7" | "9" | "10" | "11" | "12" | "13" | "14" | undefined;
|
557
|
+
backgroundColor?: "accent" | "alert" | "brand" | "positive" | "warning" | "primary" | "secondary" | "white" | "black" | "transparent" | "accent-wash" | "alert-wash" | "brand-wash" | "positive-wash" | "warning-wash" | "elevation-1" | "elevation-2" | "elevation-3" | "elevation-3-inverse" | "overlay" | undefined;
|
558
|
+
backgroundColorOnActive?: "accent" | "alert" | "brand" | "positive" | "warning" | "primary" | "secondary" | "white" | "black" | "transparent" | "accent-wash" | "alert-wash" | "brand-wash" | "positive-wash" | "warning-wash" | "elevation-1" | "elevation-2" | "elevation-3" | "elevation-3-inverse" | "overlay" | undefined;
|
559
|
+
backgroundColorOnHover?: "accent" | "alert" | "brand" | "positive" | "warning" | "primary" | "secondary" | "white" | "black" | "transparent" | "accent-wash" | "alert-wash" | "brand-wash" | "positive-wash" | "warning-wash" | "elevation-1" | "elevation-2" | "elevation-3" | "elevation-3-inverse" | "overlay" | undefined;
|
560
|
+
backgroundColorOnChecked?: "accent" | "alert" | "brand" | "positive" | "warning" | "primary" | "secondary" | "white" | "black" | "transparent" | "accent-wash" | "alert-wash" | "brand-wash" | "positive-wash" | "warning-wash" | "elevation-1" | "elevation-2" | "elevation-3" | "elevation-3-inverse" | "overlay" | undefined;
|
124
561
|
elevation?: "1" | "2" | "3" | undefined;
|
125
|
-
opacity?: "0" | "5" | "10" | "
|
126
|
-
borderColor?: "accent" | "alert" | "brand" | "positive" | "warning" | "primary" | "secondary" | "tertiary" | "muted" | "
|
127
|
-
borderColorOnActive?: "accent" | "alert" | "brand" | "positive" | "warning" | "primary" | "secondary" | "tertiary" | "muted" | "
|
128
|
-
borderColorOnFocus?: "accent" | "alert" | "brand" | "positive" | "warning" | "primary" | "secondary" | "tertiary" | "muted" | "
|
129
|
-
borderColorOnHover?: "accent" | "alert" | "brand" | "positive" | "warning" | "primary" | "secondary" | "tertiary" | "muted" | "
|
130
|
-
borderColorOnChecked?: "accent" | "alert" | "brand" | "positive" | "warning" | "primary" | "secondary" | "tertiary" | "muted" | "
|
131
|
-
borderStartColor?: "accent" | "alert" | "brand" | "positive" | "warning" | "primary" | "secondary" | "tertiary" | "muted" | "
|
132
|
-
borderEndColor?: "accent" | "alert" | "brand" | "positive" | "warning" | "primary" | "secondary" | "tertiary" | "muted" | "
|
133
|
-
borderBottomColor?: "accent" | "alert" | "brand" | "positive" | "warning" | "primary" | "secondary" | "tertiary" | "muted" | "
|
134
|
-
borderTopColor?: "accent" | "alert" | "brand" | "positive" | "warning" | "primary" | "secondary" | "tertiary" | "muted" | "
|
135
|
-
borderRadius?: "
|
136
|
-
borderTopStartRadius?: "
|
137
|
-
borderTopEndRadius?: "
|
138
|
-
borderBottomStartRadius?: "
|
139
|
-
borderBottomEndRadius?: "
|
562
|
+
opacity?: "0" | "5" | "10" | "20" | "25" | "30" | "40" | "50" | "60" | "70" | "75" | "80" | "90" | "95" | "100" | undefined;
|
563
|
+
borderColor?: "accent" | "alert" | "brand" | "positive" | "warning" | "primary" | "secondary" | "tertiary" | "muted" | "white" | "black" | "transparent" | undefined;
|
564
|
+
borderColorOnActive?: "accent" | "alert" | "brand" | "positive" | "warning" | "primary" | "secondary" | "tertiary" | "muted" | "white" | "black" | "transparent" | undefined;
|
565
|
+
borderColorOnFocus?: "accent" | "alert" | "brand" | "positive" | "warning" | "primary" | "secondary" | "tertiary" | "muted" | "white" | "black" | "transparent" | undefined;
|
566
|
+
borderColorOnHover?: "accent" | "alert" | "brand" | "positive" | "warning" | "primary" | "secondary" | "tertiary" | "muted" | "white" | "black" | "transparent" | undefined;
|
567
|
+
borderColorOnChecked?: "accent" | "alert" | "brand" | "positive" | "warning" | "primary" | "secondary" | "tertiary" | "muted" | "white" | "black" | "transparent" | undefined;
|
568
|
+
borderStartColor?: "accent" | "alert" | "brand" | "positive" | "warning" | "primary" | "secondary" | "tertiary" | "muted" | "white" | "black" | "transparent" | undefined;
|
569
|
+
borderEndColor?: "accent" | "alert" | "brand" | "positive" | "warning" | "primary" | "secondary" | "tertiary" | "muted" | "white" | "black" | "transparent" | undefined;
|
570
|
+
borderBottomColor?: "accent" | "alert" | "brand" | "positive" | "warning" | "primary" | "secondary" | "tertiary" | "muted" | "white" | "black" | "transparent" | undefined;
|
571
|
+
borderTopColor?: "accent" | "alert" | "brand" | "positive" | "warning" | "primary" | "secondary" | "tertiary" | "muted" | "white" | "black" | "transparent" | undefined;
|
572
|
+
borderRadius?: "m" | "square" | "xs" | "s" | "l" | "xl" | "xxl" | "circle" | undefined;
|
573
|
+
borderTopStartRadius?: "m" | "square" | "xs" | "s" | "l" | "xl" | "xxl" | "circle" | undefined;
|
574
|
+
borderTopEndRadius?: "m" | "square" | "xs" | "s" | "l" | "xl" | "xxl" | "circle" | undefined;
|
575
|
+
borderBottomStartRadius?: "m" | "square" | "xs" | "s" | "l" | "xl" | "xxl" | "circle" | undefined;
|
576
|
+
borderBottomEndRadius?: "m" | "square" | "xs" | "s" | "l" | "xl" | "xxl" | "circle" | undefined;
|
140
577
|
bordered?: boolean | undefined;
|
141
578
|
borderWidth?: "0" | "1" | "2" | "4" | "8" | undefined;
|
142
579
|
borderVerticalWidth?: "0" | "1" | "2" | "4" | "8" | undefined;
|
@@ -151,44 +588,35 @@ declare const getStyles: (props?: ({
|
|
151
588
|
borderedHorizontal?: boolean | undefined;
|
152
589
|
borderedEnd?: boolean | undefined;
|
153
590
|
borderedStart?: boolean | undefined;
|
154
|
-
height?: "auto" | "min" | "max" | "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" |
|
155
|
-
minHeight?: "
|
156
|
-
maxHeight?: "none" | "
|
157
|
-
width?: "auto" | "min" | "max" | "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" | "
|
158
|
-
minWidth?: "
|
159
|
-
maxWidth?: "none" | "
|
160
|
-
avatarSize?: "
|
161
|
-
iconSize?: "
|
162
|
-
alignContent?: "
|
163
|
-
alignItems?: "
|
164
|
-
alignSelf?: "auto" | "flex-start" | "flex-end" | "
|
591
|
+
height?: "auto" | "full" | "screen" | "min" | "max" | "fit" | "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" | undefined;
|
592
|
+
minHeight?: "full" | "screen" | "min" | "max" | "fit" | undefined;
|
593
|
+
maxHeight?: "none" | "full" | "screen" | "min" | "max" | "fit" | undefined;
|
594
|
+
width?: "auto" | "full" | "screen" | "min" | "max" | "fit" | "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" | "1/12" | "2/12" | "3/12" | "4/12" | "5/12" | "6/12" | "7/12" | "8/12" | "9/12" | "10/12" | "11/12" | undefined;
|
595
|
+
minWidth?: "full" | "screen" | "min" | "max" | "fit" | undefined;
|
596
|
+
maxWidth?: "none" | "full" | "min" | "max" | "fit" | undefined;
|
597
|
+
avatarSize?: "m" | "s" | "l" | undefined;
|
598
|
+
iconSize?: "m" | "s" | "l" | undefined;
|
599
|
+
alignContent?: "center" | "flex-start" | "flex-end" | "stretch" | "space-between" | "space-around" | undefined;
|
600
|
+
alignItems?: "center" | "flex-start" | "flex-end" | "stretch" | "baseline" | undefined;
|
601
|
+
alignSelf?: "center" | "auto" | "flex-start" | "flex-end" | "stretch" | "baseline" | undefined;
|
165
602
|
flex?: "1" | "none" | "auto" | "initial" | undefined;
|
166
603
|
flexDirection?: "row" | "column" | "row-reverse" | "column-reverse" | undefined;
|
167
|
-
flexGrow?: "0" | "1" | undefined;
|
604
|
+
flexGrow?: "0" | "1" | "2" | "3" | undefined;
|
168
605
|
flexShrink?: "0" | "1" | undefined;
|
169
|
-
flexWrap?: "wrap" | "
|
170
|
-
justifyContent?: "
|
606
|
+
flexWrap?: "wrap" | "wrap-reverse" | "nowrap" | undefined;
|
607
|
+
justifyContent?: "center" | "flex-start" | "flex-end" | "space-between" | "space-around" | "space-evenly" | undefined;
|
171
608
|
flexBasis?: "min-content" | undefined;
|
172
|
-
display?: "
|
609
|
+
display?: "flex" | "block" | "inline-block" | "inline" | "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" | "grid" | "contents" | undefined;
|
173
610
|
overflow?: "auto" | "hidden" | "clip" | "visible" | "scroll" | undefined;
|
174
611
|
overflowX?: "auto" | "hidden" | "clip" | "visible" | "scroll" | undefined;
|
175
612
|
overflowY?: "auto" | "hidden" | "clip" | "visible" | "scroll" | undefined;
|
176
|
-
position?: "
|
613
|
+
position?: "fixed" | "static" | "absolute" | "relative" | "sticky" | undefined;
|
177
614
|
zIndex?: "0" | "10" | "20" | "30" | "40" | "50" | "auto" | undefined;
|
178
|
-
|
615
|
+
contentFit?: "fill" | "none" | "contain" | "cover" | "scale-down" | undefined;
|
179
616
|
} & {
|
180
617
|
className?: string | undefined;
|
181
618
|
}) | undefined) => string;
|
182
619
|
|
183
|
-
|
184
|
-
config?: UniversalTokensConfig;
|
185
|
-
}
|
186
|
-
declare const tailwindPlugin: {
|
187
|
-
(options: TailwindPluginOptions): {
|
188
|
-
handler: tailwindcss_types_config.PluginCreator;
|
189
|
-
config?: Partial<tailwindcss_types_config.Config> | undefined;
|
190
|
-
};
|
191
|
-
__isOptionsFunction: true;
|
192
|
-
};
|
620
|
+
type SetState<T> = Dispatch<SetStateAction<T>>;
|
193
621
|
|
194
|
-
export { Avatar, type AvatarProps, Box, type BoxProps, Button, type ButtonProps, HStack, type HStackProps, Pressable, type PressableProps,
|
622
|
+
export { Accordion, type AccordionProps, Avatar, type AvatarProps, Box, type BoxProps, Button, type ButtonProps, Chip, type ChipProps, Dropdown, DropdownItem, DropdownItemPressable, type DropdownItemProps, DropdownItems, type DropdownItemsProps, type DropdownProps, DropdownTrigger, HStack, type HStackProps, Icon, IconButton, type IconButtonProps, type IconProps, Image, type ImageProps, Modal, ModalDismiss, ModalHeader, type ModalProps, Popover, PopoverAnchor, PopoverArrow, PopoverDescription, PopoverDisclosure, PopoverDisclosureArrow, PopoverDismiss, PopoverHeading, type PopoverHeadingProps, PopoverProvider, Pressable, type PressableProps, type SetState, Spinner, type SpinnerProps, Tab, TabList, TabPanel, type TabProps, Tabs, Text, TextInput, TextInputGroup, type TextInputGroupProps, TextInputLabel, type TextInputLabelProps, type TextInputProps, type TextProps, ToastContainer, VStack, type VStackProps, cva, cx, getStyles, useModalStore };
|