@yahoo/uds 1.3.1 → 1.3.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (71) hide show
  1. package/cli/bin/uds-darwin-arm64-baseline +0 -0
  2. package/cli/bin/uds-linux-x64-baseline +0 -0
  3. package/cli/utils/client_secrets.json +15 -0
  4. package/dist/chunk-2JIYRTEY.js +3 -0
  5. package/dist/chunk-3VTRSTDI.cjs +2 -0
  6. package/dist/chunk-4IHRPERX.js +3 -0
  7. package/dist/chunk-4J7ZJHCN.js +2 -0
  8. package/dist/chunk-5TXG2NIQ.js +4 -0
  9. package/dist/chunk-67ZAMQTH.js +2 -0
  10. package/dist/chunk-6K5IORZA.cjs +2 -0
  11. package/dist/chunk-CE5NDFHI.js +2 -0
  12. package/dist/chunk-E3Z3A4MR.cjs +2 -0
  13. package/dist/chunk-PCSDVJE6.js +2 -0
  14. package/dist/chunk-PONXZVX3.cjs +3 -0
  15. package/dist/chunk-QSN7SKTX.cjs +4 -0
  16. package/dist/chunk-SISW7S7C.cjs +3 -0
  17. package/dist/chunk-SLCISFAV.cjs +3 -0
  18. package/dist/chunk-SQU6CISU.js +3 -0
  19. package/dist/chunk-SWXXMG77.cjs +1 -0
  20. package/dist/chunk-TWTUXY76.cjs +2 -0
  21. package/dist/chunk-Y2TGGXMH.js +3 -0
  22. package/dist/client/index.cjs +4 -0
  23. package/dist/client/index.d.cts +97 -0
  24. package/dist/client/index.d.ts +97 -0
  25. package/dist/client/index.js +6 -0
  26. package/dist/experimental/index.cjs +3 -0
  27. package/dist/experimental/index.d.cts +451 -0
  28. package/dist/experimental/index.d.ts +451 -0
  29. package/dist/experimental/index.js +3 -0
  30. package/dist/fixtures.cjs +1506 -0
  31. package/dist/fixtures.d.cts +94 -0
  32. package/dist/fixtures.d.ts +94 -0
  33. package/dist/fixtures.js +1449 -0
  34. package/dist/index.cjs +1 -0
  35. package/dist/index.d.cts +305 -0
  36. package/dist/index.d.ts +305 -0
  37. package/dist/index.js +2 -0
  38. package/dist/metafile-cjs.json +1 -0
  39. package/dist/metafile-esm.json +1 -0
  40. package/dist/motionFeatures-M3DOZMRC.cjs +1 -0
  41. package/dist/motionFeatures-QDISAARM.js +1 -0
  42. package/dist/styles/toast.css +3 -0
  43. package/dist/styles/toast.d.cts +2 -0
  44. package/dist/styles/toast.d.ts +2 -0
  45. package/dist/tailwind/plugin.cjs +3 -0
  46. package/dist/tailwind/plugin.d.cts +60 -0
  47. package/dist/tailwind/plugin.d.ts +60 -0
  48. package/dist/tailwind/plugin.js +3 -0
  49. package/dist/tailwind/purger.cjs +6 -0
  50. package/dist/tailwind/purger.d.cts +17 -0
  51. package/dist/tailwind/purger.d.ts +17 -0
  52. package/dist/tailwind/purger.js +6 -0
  53. package/dist/tailwind/tsMorph.cjs +3 -0
  54. package/dist/tailwind/tsMorph.d.cts +31 -0
  55. package/dist/tailwind/tsMorph.d.ts +31 -0
  56. package/dist/tailwind/tsMorph.js +2 -0
  57. package/dist/tailwind/utils.cjs +1 -0
  58. package/dist/tailwind/utils.d.cts +99 -0
  59. package/dist/tailwind/utils.d.ts +99 -0
  60. package/dist/tailwind/utils.js +1 -0
  61. package/dist/tokens/index.cjs +1 -0
  62. package/dist/tokens/index.d.cts +1127 -0
  63. package/dist/tokens/index.d.ts +1127 -0
  64. package/dist/tokens/index.js +1 -0
  65. package/dist/tokens/parseTokens.cjs +1 -0
  66. package/dist/tokens/parseTokens.d.cts +59 -0
  67. package/dist/tokens/parseTokens.d.ts +59 -0
  68. package/dist/tokens/parseTokens.js +1 -0
  69. package/dist/types-CpZ2ERLZ.d.cts +949 -0
  70. package/dist/types-CpZ2ERLZ.d.ts +949 -0
  71. package/package.json +8 -8
@@ -0,0 +1,451 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import { SvgIcon, IconSize, IconVariant } from '@yahoo/uds-icons/types';
3
+ import * as React$1 from 'react';
4
+ import React__default, { PropsWithChildren, Ref, FC, TableHTMLAttributes, TdHTMLAttributes } from 'react';
5
+ import * as _ariakit_react from '@ariakit/react';
6
+ import { PopoverProviderProps, PopoverProps as PopoverProps$1, DialogProps, useDialogStore, DialogStore, DialogDismiss, 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';
7
+ export { DialogStore as ModalStore, TabListProps, TabPanelProps, TabProviderProps as TabsProps, usePopoverStore } from '@ariakit/react';
8
+ import { ButtonProps } from '@yahoo/uds/client';
9
+ import { ToastContainerProps } from 'react-toastify';
10
+ export { toast } from 'react-toastify';
11
+
12
+ declare const alwaysPalette: {
13
+ white: string;
14
+ black: string;
15
+ transparent: string;
16
+ current: string;
17
+ };
18
+
19
+ type CorePaletteAlias = 'brand' | 'accent' | 'alert' | 'positive' | 'warning';
20
+ type BackgroundPaletteAlias = 'primary' | 'secondary';
21
+ type ForegroundPaletteAlias = 'primary' | 'secondary' | 'tertiary' | 'muted' | 'on-color';
22
+ type LinePaletteAlias = 'primary' | 'secondary' | 'tertiary' | 'muted';
23
+ type AlwaysPalette = typeof alwaysPalette;
24
+ type AlwaysPaletteAlias = keyof AlwaysPalette;
25
+ type ForegroundColor = CorePaletteAlias | ForegroundPaletteAlias | AlwaysPaletteAlias;
26
+ type LineColor = CorePaletteAlias | LinePaletteAlias | AlwaysPaletteAlias;
27
+ type BackgroundColor = CorePaletteAlias | BackgroundPaletteAlias | AlwaysPaletteAlias;
28
+ type TextVariant = 'display1' | 'display2' | 'display3' | 'title1' | 'title2' | 'title3' | 'title4' | 'headline1' | 'body1' | 'label1' | 'label2' | 'caption1' | 'caption2' | 'legal1';
29
+ type FontAlias = 'sans' | 'sans-alt' | 'serif' | 'serif-alt' | 'mono';
30
+ type FontWeightDescriptive = 'thin' | 'extralight' | 'light' | 'regular' | 'medium' | 'semibold' | 'bold' | 'extrabold' | 'black';
31
+ type TextTransform = 'none' | 'uppercase' | 'lowercase' | 'capitalize';
32
+ type TShirtSize = 'none' | 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'full';
33
+ type TShirtSizeCommon = Extract<TShirtSize, 'sm' | 'md' | 'lg'>;
34
+ type AvatarSize = TShirtSizeCommon;
35
+ type SpacingAlias = '0' | 'px' | '0.5' | '1' | '1.5' | '2' | '2.5' | '3' | '3.5' | '4' | '5' | '6' | '7' | '8' | '9' | '10' | '11' | '12' | '14' | '16' | '20' | '24' | '28' | '32' | '36' | '40' | '44' | '48' | '52' | '56' | '60' | '64' | '72' | '80' | '96';
36
+ type BorderRadius = TShirtSize;
37
+ type BorderWidth = 'none' | 'thin' | 'medium' | 'thick';
38
+ type Flex = '1' | 'auto' | 'initial' | 'none';
39
+ type FlexGrow = '0' | '1' | '2' | '3';
40
+ type FlexShrink = '0' | '1';
41
+ type FlexAlignContent = 'flex-start' | 'flex-end' | 'center' | 'stretch' | 'space-between' | 'space-around';
42
+ type FlexAlignItems = 'flex-start' | 'flex-end' | 'center' | 'stretch' | 'baseline';
43
+ type FlexAlignSelf = 'auto' | 'flex-start' | 'flex-end' | 'center' | 'stretch' | 'baseline';
44
+ type FlexDirection = 'row' | 'column' | 'row-reverse' | 'column-reverse';
45
+ type FlexWrap = 'wrap' | 'nowrap' | 'wrap-reverse';
46
+ type FlexJustifyContent = 'flex-start' | 'flex-end' | 'center' | 'space-between' | 'space-around' | 'space-evenly';
47
+ type FlexBasis = 'min-content';
48
+ type Display = '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' | 'grid' | 'contents';
49
+ type Overflow = 'auto' | 'hidden' | 'clip' | 'visible' | 'scroll';
50
+ type Position = 'static' | 'fixed' | 'absolute' | 'relative' | 'sticky';
51
+ type ImageStyleProps = {
52
+ /**
53
+ * Determines how the image should be resized to fit its container.
54
+ */
55
+ contentFit?: 'cover' | 'contain' | 'fill' | 'none' | 'scale-down';
56
+ };
57
+ interface BorderStyleProps {
58
+ /** Add a border radius to all corners of the box. */
59
+ borderRadius?: BorderRadius;
60
+ /** Add a border radius to top left corner of the box. */
61
+ borderTopStartRadius?: BorderRadius;
62
+ /** Add a border radius to top right corner of the box. */
63
+ borderTopEndRadius?: BorderRadius;
64
+ /** Add a border radius to bottom left corner of the box. */
65
+ borderBottomStartRadius?: BorderRadius;
66
+ /** Add a border radius to bottom right corner of the box. */
67
+ borderBottomEndRadius?: BorderRadius;
68
+ /** Adds a custom border color from the palette */
69
+ borderColor?: LineColor;
70
+ /** Start border color */
71
+ borderStartColor?: LineColor;
72
+ /** End border color */
73
+ borderEndColor?: LineColor;
74
+ /** Top border color */
75
+ borderTopColor?: LineColor;
76
+ /** Bottom border color */
77
+ borderBottomColor?: LineColor;
78
+ /** Shorthand property to the width of an element's border. */
79
+ borderWidth?: BorderWidth;
80
+ /** Sets the width of the top and bottom border of an element. */
81
+ borderVerticalWidth?: BorderWidth;
82
+ /** Sets the width of the start (left) and end (right) border of an element. */
83
+ borderHorizontalWidth?: BorderWidth;
84
+ /** Sets the width of the start (left) border of an element. */
85
+ borderStartWidth?: BorderWidth;
86
+ /** Sets the width of the end (right) border of an element. */
87
+ borderEndWidth?: BorderWidth;
88
+ /** Sets the width of the top border of an element. */
89
+ borderTopWidth?: BorderWidth;
90
+ /** Sets the width of the bottom border of an element. */
91
+ borderBottomWidth?: BorderWidth;
92
+ }
93
+ interface LayoutStyleProps {
94
+ /** Sets whether an element is treated as a block or inline box and the layout used for its children, such as flow layout, grid or flex. */
95
+ display?: Display;
96
+ /** Shorthand property which sets the desired behavior when content does not fit in the parent element box (overflows) in the horizontal and/or vertical direction. */
97
+ overflow?: Overflow;
98
+ /** Sets what shows when content overflows a block-level element's left and right edges. This may be nothing, a scroll bar, or the overflow content. This property may also be set by using the overflow shorthand property. */
99
+ overflowX?: Overflow;
100
+ /** sets what shows when content overflows a block-level element's top and bottom edges. This may be nothing, a scroll bar, or the overflow content. This property may also be set by using the overflow shorthand property. */
101
+ overflowY?: Overflow;
102
+ /** Sets how an element is positioned in a document. The top, right, bottom, and left properties determine the final location of positioned elements. */
103
+ position?: Position;
104
+ }
105
+ interface SpacingStyleProps {
106
+ /** Apply inner spacing on all sides. */
107
+ spacing?: SpacingAlias;
108
+ /** Apply inner spacing on the leading and trailing sides. */
109
+ spacingHorizontal?: SpacingAlias;
110
+ /** Apply inner spacing on the top and bottom sides. */
111
+ spacingVertical?: SpacingAlias;
112
+ /** Apply inner spacing on the bottom side. */
113
+ spacingBottom?: SpacingAlias;
114
+ /** Apply inner spacing on the trailing side. */
115
+ spacingEnd?: SpacingAlias;
116
+ /** Apply inner spacing on the leading side. */
117
+ spacingStart?: SpacingAlias;
118
+ /** Apply inner spacing on the top side. */
119
+ spacingTop?: SpacingAlias;
120
+ /** Apply negative outer spacing on all sides. */
121
+ offset?: SpacingAlias;
122
+ /** Apply negative outer spacing on the top and bottom sides. */
123
+ offsetVertical?: SpacingAlias;
124
+ /** Apply negative outer spacing on the leading and trailing sides. */
125
+ offsetHorizontal?: SpacingAlias;
126
+ /** Apply negative outer spacing on the bottom side. */
127
+ offsetBottom?: SpacingAlias;
128
+ /** Apply negative outer spacing on the trailing side. */
129
+ offsetEnd?: SpacingAlias;
130
+ /** Apply negative outer spacing on the leading side. */
131
+ offsetStart?: SpacingAlias;
132
+ /** Apply negative outer spacing on the top side. */
133
+ offsetTop?: SpacingAlias;
134
+ /** Control the horizontal gutters between grid and flexbox items. */
135
+ columnGap?: SpacingAlias;
136
+ /** Control the vertical gutters between grid and flexbox items. */
137
+ rowGap?: SpacingAlias;
138
+ }
139
+ interface FlexStyleProps {
140
+ /** Sets the distribution of space between and around content items along a flexbox's cross-axis or a grid's block axis. */
141
+ alignContent?: FlexAlignContent;
142
+ /** Sets the align-self value on all direct children as a group. In Flexbox, it controls the alignment of items on the Cross Axis. In Grid Layout, it controls the alignment of items on the Block Axis within their grid area. */
143
+ alignItems?: FlexAlignItems;
144
+ /** Overrides a grid or flex item's align-items value. In Grid, it aligns the item inside the grid area. In Flexbox, it aligns the item on the cross axis. */
145
+ alignSelf?: FlexAlignSelf;
146
+ /** Sets how a flex item will grow or shrink to fit the space available in its flex container. */
147
+ flex?: Flex;
148
+ /** Sets how flex items are placed in the flex container defining the main axis and the direction (normal or reversed). */
149
+ flexDirection?: FlexDirection;
150
+ /** Sets the flex grow factor, which specifies how much of the flex container's remaining space should be assigned to the flex item's main size. */
151
+ flexGrow?: FlexGrow;
152
+ /** Sets the flex shrink factor of a flex item. If the size of all flex items is larger than the flex container, items shrink to fit according to flex-shrink. */
153
+ flexShrink?: FlexShrink;
154
+ /** Sets whether flex items are forced onto one line or can wrap onto multiple lines. If wrapping is allowed, it sets the direction that lines are stacked. */
155
+ flexWrap?: FlexWrap;
156
+ /** Defines how the browser distributes space between and around content items along the main-axis of a flex container, and the inline axis of a grid container. */
157
+ justifyContent?: FlexJustifyContent;
158
+ /** Sets the initial main size of a flex item. It sets the size of the content box unless otherwise set with box-sizing. https://developer.mozilla.org/en-US/docs/Web/CSS/flex-basis */
159
+ flexBasis?: FlexBasis;
160
+ }
161
+ interface TextStyleProps {
162
+ /** Color of a Text or Icon element */
163
+ color?: ForegroundColor;
164
+ /** Color of placeholder text */
165
+ placeholderColor?: ForegroundColor;
166
+ /** Font family for the text */
167
+ fontFamily?: TextVariant | FontAlias;
168
+ /** Font size of the text */
169
+ fontSize?: TextVariant;
170
+ /** Font weight of the text */
171
+ fontWeight?: TextVariant | FontWeightDescriptive;
172
+ /** Line height of the text */
173
+ lineHeight?: TextVariant;
174
+ /** Text alignment of the text */
175
+ textAlign?: 'center' | 'justify' | 'start' | 'end';
176
+ /** Sets the text transform for the text */
177
+ textTransform?: TextVariant | TextTransform;
178
+ }
179
+ interface BackgroundStyleProps {
180
+ /** Sets the background color. */
181
+ backgroundColor?: BackgroundColor;
182
+ }
183
+ interface UniversalBoxProps extends PropsWithChildren, BackgroundStyleProps, BorderStyleProps, FlexStyleProps, LayoutStyleProps, SpacingStyleProps {
184
+ /**
185
+ * When asChild is set to true, the component's child will be cloned and passed
186
+ * the props and behavior required to make it functional.
187
+ */
188
+ asChild?: boolean;
189
+ }
190
+ interface UniversalStackProps extends Omit<UniversalBoxProps, 'flexDirection'> {
191
+ gap?: SpacingAlias;
192
+ }
193
+ interface UniversalTextProps extends PropsWithChildren, TextStyleProps, UniversalBoxProps {
194
+ /** Style of text. */
195
+ variant?: TextVariant;
196
+ /** Color of the text. */
197
+ color?: ForegroundColor;
198
+ }
199
+ interface UniversalIconProps {
200
+ /** Icon to render from the icons package. */
201
+ name: SvgIcon;
202
+ /** Size of the icon. */
203
+ size?: IconSize;
204
+ /** Variant for icon. Either fill or outline. */
205
+ variant?: IconVariant;
206
+ /** Color of the icon. */
207
+ color?: ForegroundColor;
208
+ }
209
+ interface UniversalPressableProps extends UniversalBoxProps {
210
+ onPress?: () => void;
211
+ }
212
+ interface UniversalImageProps extends Omit<UniversalBoxProps, 'width' | 'height'>, ImageStyleProps {
213
+ /** The source URL of the image. */
214
+ src: string;
215
+ /** Provides fallback (alternate) text to display when the image specified by the Image element is not loaded. */
216
+ alt?: string;
217
+ /** Width of the image in px. */
218
+ width?: number;
219
+ /** Height of the image in pixel. */
220
+ height?: number;
221
+ }
222
+ interface UniversalAvatarProps extends UniversalImageProps {
223
+ /** The size of the Avatar. */
224
+ size?: AvatarSize;
225
+ /** The shape of the Avatar. */
226
+ shape?: BorderRadius;
227
+ }
228
+ interface UniversalTextInputProps {
229
+ disabled?: boolean;
230
+ required?: boolean;
231
+ backgroundColor?: BackgroundColor;
232
+ borderColor?: LineColor;
233
+ borderWidth?: BorderWidth;
234
+ borderRadius?: BorderRadius;
235
+ color?: ForegroundColor;
236
+ fontSize?: TextVariant;
237
+ placeholderColor?: ForegroundColor;
238
+ spacingVertical?: SpacingAlias;
239
+ spacingHorizontal?: SpacingAlias;
240
+ }
241
+
242
+ type HtmlButtonProps = Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, 'color' | 'name'>;
243
+ interface PressableProps extends UniversalPressableProps, HtmlButtonProps {
244
+ }
245
+
246
+ type TextElementTagName = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'p' | 'strong' | 'span' | 'label' | 'li';
247
+ type TextProps = UniversalTextProps & {
248
+ /** Ref passed to the inner container. */
249
+ ref?: Ref<HTMLElement>;
250
+ /** Changes the HTML tag used to render text. Uses the most appropriate semantic tag based on the text style variant. */
251
+ as?: TextElementTagName;
252
+ } & Omit<JSX.IntrinsicElements[TextElementTagName], 'color'>;
253
+
254
+ type DivProps = React.HTMLAttributes<HTMLDivElement>;
255
+ interface BoxProps extends UniversalBoxProps, DivProps {
256
+ }
257
+
258
+ type VStackProps = UniversalStackProps & DivProps;
259
+
260
+ interface AccordionProps extends PressableProps {
261
+ label: string;
262
+ open?: boolean;
263
+ onClick?: () => void;
264
+ _content?: VStackProps;
265
+ textProps?: TextProps;
266
+ }
267
+ declare function Accordion({ label, children, onClick, open, spacingHorizontal, _content, className, textProps, ...props }: AccordionProps): react_jsx_runtime.JSX.Element;
268
+
269
+ type NativeImageProps = Omit<React__default.ImgHTMLAttributes<HTMLImageElement>, 'size' | 'color' | 'height' | 'width' | 'alt' | 'src'>;
270
+ interface AvatarProps extends NativeImageProps, UniversalAvatarProps {
271
+ }
272
+ /**
273
+ * Avatar can be used for profile images.
274
+ */
275
+ declare function Avatar({ size: avatarSize, shape: borderRadius, src, alt, ...props }: AvatarProps): react_jsx_runtime.JSX.Element;
276
+
277
+ interface CheckBoxProps {
278
+ label: string;
279
+ checked: boolean;
280
+ onChange: (checked: boolean) => void;
281
+ }
282
+ declare const CheckBox: FC<CheckBoxProps>;
283
+
284
+ type SVGElementProps = Omit<React.HTMLAttributes<SVGSVGElement>, 'color'>;
285
+ interface IconProps extends UniversalIconProps, SVGElementProps {
286
+ }
287
+
288
+ interface ChipProps {
289
+ children?: string;
290
+ startContent?: React.ReactNode;
291
+ startIcon?: IconProps['name'];
292
+ endIcon?: IconProps['name'];
293
+ endContent?: React.ReactNode;
294
+ variant: 'accent' | 'secondary';
295
+ }
296
+ declare function Chip({ children, variant, startIcon, startContent, endIcon, endContent, }: ChipProps): react_jsx_runtime.JSX.Element;
297
+
298
+ interface DropdownProps extends PopoverProviderProps {
299
+ children: React.ReactNode;
300
+ }
301
+ declare const Dropdown: typeof _ariakit_react.PopoverProvider;
302
+
303
+ interface DropdownItemPressableProps extends Omit<PressableProps, 'onClick'> {
304
+ onClick?: (close: () => void) => void;
305
+ }
306
+ declare const DropdownItemPressable: React$1.ForwardRefExoticComponent<DropdownItemPressableProps & React$1.RefAttributes<HTMLButtonElement>>;
307
+
308
+ interface DropdownItemProps extends DropdownItemPressableProps {
309
+ startIcon?: IconProps['name'];
310
+ endIcon?: IconProps['name'];
311
+ title?: string;
312
+ description?: string;
313
+ _title?: UniversalTextProps;
314
+ _description?: UniversalTextProps;
315
+ }
316
+ declare function DropdownItem({ title, description, _title, _description, startIcon, endIcon, ...props }: DropdownItemProps): react_jsx_runtime.JSX.Element;
317
+
318
+ interface DropdownItemsProps extends React.PropsWithChildren, Omit<PopoverProps$1, 'children'> {
319
+ overflow?: Overflow;
320
+ }
321
+ declare const DropdownItems: React$1.ForwardRefExoticComponent<Omit<DropdownItemsProps, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
322
+
323
+ type DropdownTriggerProps = ButtonProps;
324
+ declare function DropdownTrigger({ children, ...props }: DropdownTriggerProps): react_jsx_runtime.JSX.Element;
325
+
326
+ type ModalProps = DialogProps;
327
+ declare function useModalStore(params?: Parameters<typeof useDialogStore>[0]): DialogStore;
328
+ interface ModalHeaderProps extends React.PropsWithChildren {
329
+ handleClose?: () => void;
330
+ }
331
+ declare function ModalHeader({ children, handleClose }: ModalHeaderProps): react_jsx_runtime.JSX.Element;
332
+ declare function Modal({ className, ...props }: ModalProps): react_jsx_runtime.JSX.Element;
333
+ declare const ModalDismiss: typeof DialogDismiss;
334
+
335
+ interface PopoverHeadingProps extends PropsWithChildren {
336
+ leading?: React__default.ReactNode;
337
+ trailing?: React__default.ReactNode;
338
+ }
339
+ declare function PopoverHeading({ children, leading, trailing }: PopoverHeadingProps): react_jsx_runtime.JSX.Element;
340
+ type PopoverProps = Omit<PopoverProps$1, 'key'>;
341
+ declare const Popover: (props: PopoverProps$1<"div">) => react_jsx_runtime.JSX.Element | null;
342
+ declare const PopoverArrow: typeof PopoverArrow$1;
343
+ declare const PopoverAnchor: typeof PopoverAnchor$1;
344
+ declare const PopoverDescription: typeof PopoverDescription$1;
345
+ declare const PopoverDismiss: typeof PopoverDismiss$1;
346
+ declare const PopoverProvider: typeof PopoverProvider$1;
347
+ declare const PopoverDisclosure: typeof PopoverDisclosure$1;
348
+ declare const PopoverDisclosureArrow: typeof PopoverDisclosureArrow$1;
349
+
350
+ type SpinnerProps = React.HTMLAttributes<HTMLDivElement>;
351
+ declare function Spinner({ className, ...props }: SpinnerProps): react_jsx_runtime.JSX.Element;
352
+
353
+ /**
354
+ * TableColumn
355
+ * A TableColumn is a definition of a column in a table.
356
+ */
357
+ type TableColumn<T> = {
358
+ title?: string;
359
+ dataIndex: keyof T;
360
+ render?: (value: T[keyof T], record: T, index: number) => React__default.ReactNode;
361
+ };
362
+ type TableRootProps = TableHTMLAttributes<HTMLTableElement> & BoxProps & {
363
+ /** Sets whether an element is treated as a block or inline box and the
364
+ * layout used for its children, such as flow layout, grid or flex.
365
+ * @default "table"
366
+ */
367
+ display?: BoxProps['display'];
368
+ };
369
+ type HTMLTableCellProps = Omit<TdHTMLAttributes<HTMLTableCellElement>, 'color' | 'height' | 'width'>;
370
+ interface TableCellProps extends Omit<UniversalTextProps, 'color'>, HTMLTableCellProps {
371
+ /** asHeaderCell will return a th element instead of a td element.
372
+ * If asHeaderCell is row, it will return a th element with scope="row"
373
+ * @default false
374
+ */
375
+ asHeaderCell?: boolean | 'column' | 'row';
376
+ color?: TextProps['color'];
377
+ }
378
+ /**
379
+ * Table component props
380
+ * @template T The type of data in the table.
381
+ */
382
+ type TableProps<T> = {
383
+ /** An array of data for the table. Each item represents a row in the table.
384
+ * The keys of each item should match the `dataIndex` of the columns.
385
+ */
386
+ data: T[];
387
+ /** An array of columns for the table. Each item defines a column in the table.
388
+ * The `dataIndex` should match the key of the data item.
389
+ */
390
+ columns: TableColumn<T>[];
391
+ } & TableRootProps;
392
+ /**
393
+ * The Table component renders a table with the given data and columns.
394
+ * If you want more control over the table, or want to handle virtualization,
395
+ * drag-n-drop, etc, Please can use the sub-components directly and build your own!
396
+ */
397
+ declare function Table<T>({ data, columns, ...props }: TableProps<T>): react_jsx_runtime.JSX.Element;
398
+ declare namespace Table {
399
+ var Root: React__default.ForwardRefExoticComponent<React__default.TableHTMLAttributes<HTMLTableElement> & BoxProps & {
400
+ /** Sets whether an element is treated as a block or inline box and the
401
+ * layout used for its children, such as flow layout, grid or flex.
402
+ * @default "table"
403
+ */
404
+ display?: BoxProps["display"];
405
+ } & {
406
+ children?: React__default.ReactNode | undefined;
407
+ } & React__default.RefAttributes<HTMLTableElement>>;
408
+ var Row: React__default.ForwardRefExoticComponent<React__default.HTMLAttributes<HTMLTableRowElement> & BoxProps & {
409
+ children?: React__default.ReactNode | undefined;
410
+ } & React__default.RefAttributes<HTMLTableRowElement>>;
411
+ var Header: React__default.ForwardRefExoticComponent<React__default.HTMLAttributes<HTMLTableSectionElement> & BoxProps & {
412
+ children?: React__default.ReactNode | undefined;
413
+ } & React__default.RefAttributes<HTMLTableSectionElement>>;
414
+ var Body: React__default.ForwardRefExoticComponent<React__default.HTMLAttributes<HTMLTableSectionElement> & BoxProps & {
415
+ children?: React__default.ReactNode | undefined;
416
+ } & React__default.RefAttributes<HTMLTableSectionElement>>;
417
+ var Cell: React__default.ForwardRefExoticComponent<TableCellProps & {
418
+ children?: React__default.ReactNode | undefined;
419
+ } & React__default.RefAttributes<HTMLTableCellElement | HTMLTableHeaderCellElement>>;
420
+ }
421
+
422
+ interface TabProps extends React.PropsWithChildren {
423
+ asChild?: boolean;
424
+ value: string;
425
+ label: string;
426
+ startIcon?: IconProps['name'];
427
+ }
428
+ declare function Tabs(props: TabProviderProps): react_jsx_runtime.JSX.Element;
429
+ declare const TabList: React$1.ForwardRefExoticComponent<Omit<TabListProps, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
430
+ declare const Tab: ({ asChild, label, value, startIcon }: TabProps) => react_jsx_runtime.JSX.Element;
431
+ declare const TabPanel: React$1.ForwardRefExoticComponent<Omit<TabPanelProps, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
432
+
433
+ type NativeTextInputProps = Omit<React.InputHTMLAttributes<HTMLInputElement>, 'height' | 'size' | 'width' | 'color'>;
434
+ interface TextInputProps extends NativeTextInputProps, UniversalTextInputProps {
435
+ }
436
+ declare function TextInput({ className, disabled, backgroundColor, borderColor, borderWidth, borderRadius, color, placeholderColor, spacingVertical, spacingHorizontal, fontSize: textVariant, ...props }: TextInputProps): react_jsx_runtime.JSX.Element;
437
+
438
+ interface TextInputGroupProps extends TextInputProps {
439
+ label?: string;
440
+ }
441
+ declare function TextInputGroup({ label, required, ...props }: TextInputGroupProps): react_jsx_runtime.JSX.Element;
442
+
443
+ interface TextInputLabelProps extends React.PropsWithChildren {
444
+ required?: boolean;
445
+ }
446
+ declare function TextInputLabel({ children, required }: TextInputLabelProps): react_jsx_runtime.JSX.Element;
447
+
448
+ type ToastProps = ToastContainerProps;
449
+ declare function ToastContainer(props: ToastProps): react_jsx_runtime.JSX.Element;
450
+
451
+ export { Accordion, type AccordionProps, Avatar, type AvatarProps, CheckBox, Chip, type ChipProps, Dropdown, DropdownItem, DropdownItemPressable, type DropdownItemPressableProps, type DropdownItemProps, DropdownItems, type DropdownItemsProps, type DropdownProps, DropdownTrigger, type DropdownTriggerProps, Modal, ModalDismiss, ModalHeader, type ModalProps, Popover, PopoverAnchor, PopoverArrow, PopoverDescription, PopoverDisclosure, PopoverDisclosureArrow, PopoverDismiss, PopoverHeading, type PopoverHeadingProps, type PopoverProps, PopoverProvider, Spinner, type SpinnerProps, Tab, TabList, TabPanel, type TabProps, Table, type TableProps, Tabs, TextInput, TextInputGroup, type TextInputGroupProps, TextInputLabel, type TextInputLabelProps, type TextInputProps, ToastContainer, type ToastProps, useModalStore };