@umami/react-zen 0.113.0 → 0.115.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.css +1417 -1416
- package/dist/index.css.map +1 -0
- package/dist/index.d.mts +707 -0
- package/dist/index.d.ts +707 -1035
- package/dist/index.js +1406 -30564
- package/dist/index.js.map +1 -0
- package/dist/index.mjs +1399 -30604
- package/dist/index.mjs.map +1 -0
- package/package.json +4 -3
package/dist/index.d.mts
ADDED
|
@@ -0,0 +1,707 @@
|
|
|
1
|
+
import { ButtonProps as ButtonProps$1, DisclosureGroupProps, DisclosureProps, DialogProps as DialogProps$1, BreadcrumbsProps, BreadcrumbProps, CalendarProps as CalendarProps$1, CheckboxProps as CheckboxProps$1, TableProps, TooltipProps as TooltipProps$1, LabelProps as LabelProps$1, ListBoxProps, ListBoxItemProps, SeparatorProps, ListBoxSectionProps, MenuProps as MenuProps$1, MenuItemProps, MenuSectionProps, ModalOverlayProps, ModalRenderProps, TextFieldProps as TextFieldProps$1, PopoverProps, ProgressBarProps as ProgressBarProps$1, RadioProps, RadioGroupProps as RadioGroupProps$1, SearchFieldProps as SearchFieldProps$1, SelectProps as SelectProps$1, SelectValueRenderProps, SliderProps as SliderProps$1, SwitchProps as SwitchProps$1, TableHeaderProps, TableBodyProps, RowProps as RowProps$1, ColumnProps as ColumnProps$1, CellProps, TabsProps, TabListProps, TabProps, TabPanelProps, ToggleButtonProps, TagGroupProps, TagProps } from 'react-aria-components';
|
|
2
|
+
export { DialogTrigger, FileTrigger, Focusable, MenuTrigger, Pressable, RouterProvider, Selection, SubmenuTrigger, TooltipTrigger } from 'react-aria-components';
|
|
3
|
+
import * as react from 'react';
|
|
4
|
+
import { HTMLAttributes, ReactNode, ReactElement, Dispatch, SetStateAction } from 'react';
|
|
5
|
+
import { UseFormProps, SubmitHandler, UseFormReturn, RegisterOptions, FieldValues } from 'react-hook-form';
|
|
6
|
+
import * as react_icons_lib from 'react-icons/lib';
|
|
7
|
+
|
|
8
|
+
declare const Breakpoints: readonly ["", "xs", "sm", "md", "lg", "xl"];
|
|
9
|
+
type Breakpoint = (typeof Breakpoints)[number];
|
|
10
|
+
type Responsive<T> = T | Partial<Record<Breakpoint, T>>;
|
|
11
|
+
type BaseColor = '1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '9' | '10' | '11' | '12';
|
|
12
|
+
type AccentColor = 'gray' | 'gold' | 'bronze' | 'brown' | 'yellow' | 'amber' | 'orange' | 'tomato' | 'red' | 'ruby' | 'crimson' | 'pink' | 'plum' | 'purple' | 'violet' | 'iris' | 'indigo' | 'blue' | 'cyan' | 'teal' | 'jade' | 'green' | 'grass' | 'lime' | 'mint' | 'sky';
|
|
13
|
+
type FontColor = BaseColor | AccentColor | 'primary' | 'muted' | 'disabled' | true;
|
|
14
|
+
type BackgroundColor = BaseColor | AccentColor | 'primary' | 'transparent' | true;
|
|
15
|
+
type BorderColor = BaseColor | AccentColor | 'primary' | 'muted' | 'disabled' | 'transparent' | true;
|
|
16
|
+
type HoverColor = FontColor;
|
|
17
|
+
type Spacing = '1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '9' | '10' | '11' | '12';
|
|
18
|
+
type NegativeSpacing = '-1' | '-2' | '-3' | '-4' | '-5' | '-6' | '-7' | '-8' | '-9' | '-10' | '-11' | '-12';
|
|
19
|
+
type Padding = Spacing | NegativeSpacing | true;
|
|
20
|
+
type Position = 'static' | 'relative' | 'absolute' | 'fixed' | 'sticky';
|
|
21
|
+
type Top = Spacing | NegativeSpacing | string;
|
|
22
|
+
type Right = Spacing | NegativeSpacing | string;
|
|
23
|
+
type Bottom = Spacing | NegativeSpacing | string;
|
|
24
|
+
type Left = Spacing | NegativeSpacing | string;
|
|
25
|
+
type Overflow = 'visible' | 'hidden' | 'clip' | 'scroll' | 'auto';
|
|
26
|
+
type Display = 'none' | 'inline' | 'inline-block' | 'block';
|
|
27
|
+
type BorderPosition = true | 'top' | 'right' | 'bottom' | 'left';
|
|
28
|
+
type BorderRadius = true | '1' | '2' | '3' | '4' | 'full';
|
|
29
|
+
type BoxShadow = '1' | '2' | '3' | '4' | '5' | '6';
|
|
30
|
+
type FontSize = '1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '9' | '10' | '11' | '12';
|
|
31
|
+
type FontWeight = 'thin' | 'extra-light' | 'light' | 'regular' | 'medium' | 'semi-bold' | 'bold' | 'extra-bold' | 'black';
|
|
32
|
+
type TextWrap = 'wrap' | 'nowrap' | 'pretty' | 'balance';
|
|
33
|
+
type TextAlign = 'left' | 'center' | 'right';
|
|
34
|
+
type TextTransform = 'capitalize' | 'uppercase' | 'lowercase' | 'none';
|
|
35
|
+
type LetterSpacing = '1' | '2' | '3' | '4' | '5';
|
|
36
|
+
type FlexDisplay = 'none' | 'flex' | 'inline-flex';
|
|
37
|
+
type FlexDirection = 'column' | 'row' | 'row-reverse' | 'column-reverse';
|
|
38
|
+
type FlexWrap = 'wrap' | 'nowrap' | 'wrap-reverse';
|
|
39
|
+
type FlexGrow = string | number;
|
|
40
|
+
type FlexShrink = string | number;
|
|
41
|
+
type GridDisplay = 'none' | 'grid' | 'inline-grid';
|
|
42
|
+
type GridAutoFlow = 'row' | 'column' | 'dense' | 'row-dense' | 'column-dense';
|
|
43
|
+
type GridTemplateRows = string;
|
|
44
|
+
type GridTemplateColumns = string;
|
|
45
|
+
type GridTemplateAreas = string;
|
|
46
|
+
type JustifyContent = 'center' | 'start' | 'end' | 'flex-start' | 'flex-end' | 'left' | 'right' | 'space-between' | 'space-around' | 'space-evenly' | 'stretch';
|
|
47
|
+
type JustifyItems = 'stretch' | 'center' | 'start' | 'end' | 'flex-start' | 'flex-end' | 'self-start' | 'self-end' | 'left' | 'right' | 'baseline';
|
|
48
|
+
type JustifySelf = 'center' | 'start' | 'end' | 'self-start' | 'self-end' | 'flex-start' | 'flex-end' | 'baseline' | 'stretch';
|
|
49
|
+
type AlignContent = 'center' | 'start' | 'end' | 'flex-start' | 'flex-end' | 'baseline' | 'space-between' | 'space-around' | 'space-evenly' | 'stretch';
|
|
50
|
+
type AlignItems = 'center' | 'start' | 'end' | 'flex-start' | 'flex-end' | 'self-start' | 'self-end' | 'stretch' | 'baseline';
|
|
51
|
+
type AlignSelf = 'center' | 'start' | 'end' | 'self-start' | 'self-end' | 'flex-start' | 'flex-end' | 'baseline' | 'stretch';
|
|
52
|
+
type ObjectFit = 'fill' | 'contain' | 'cover' | 'scale-down' | 'none';
|
|
53
|
+
|
|
54
|
+
interface FormProps extends UseFormProps, Omit<HTMLAttributes<HTMLFormElement>, 'children'> {
|
|
55
|
+
gap?: Responsive<Spacing>;
|
|
56
|
+
autoComplete?: string;
|
|
57
|
+
onSubmit?: SubmitHandler<any>;
|
|
58
|
+
error?: ReactNode | Error;
|
|
59
|
+
preventSubmit?: boolean;
|
|
60
|
+
children?: ReactNode | ((e: UseFormReturn) => ReactNode);
|
|
61
|
+
}
|
|
62
|
+
declare function Form({ gap, autoComplete, onSubmit, error, preventSubmit, mode, disabled, reValidateMode, defaultValues, values, errors, resetOptions, resolver, context, shouldFocusError, shouldUnregister, shouldUseNativeValidation, progressive, criteriaMode, delayError, className, children, ...props }: FormProps): react.JSX.Element;
|
|
63
|
+
|
|
64
|
+
interface BoxProps extends Omit<HTMLAttributes<HTMLElement>, 'color'> {
|
|
65
|
+
display?: Responsive<Display>;
|
|
66
|
+
color?: FontColor;
|
|
67
|
+
backgroundColor?: BackgroundColor;
|
|
68
|
+
hoverColor?: HoverColor;
|
|
69
|
+
hoverBackgroundColor?: HoverColor;
|
|
70
|
+
hoverBorderColor?: HoverColor;
|
|
71
|
+
fontSize?: Responsive<FontSize>;
|
|
72
|
+
fontWeight?: Responsive<FontWeight>;
|
|
73
|
+
border?: Responsive<BorderPosition>;
|
|
74
|
+
borderColor?: BorderColor;
|
|
75
|
+
borderRadius?: Responsive<BorderRadius>;
|
|
76
|
+
shadow?: Responsive<BoxShadow>;
|
|
77
|
+
padding?: Responsive<Padding>;
|
|
78
|
+
paddingX?: Responsive<Padding>;
|
|
79
|
+
paddingY?: Responsive<Padding>;
|
|
80
|
+
paddingTop?: Responsive<Padding>;
|
|
81
|
+
paddingRight?: Responsive<Padding>;
|
|
82
|
+
paddingBottom?: Responsive<Padding>;
|
|
83
|
+
paddingLeft?: Responsive<Padding>;
|
|
84
|
+
margin?: Responsive<Spacing>;
|
|
85
|
+
marginX?: Responsive<Spacing>;
|
|
86
|
+
marginY?: Responsive<Spacing>;
|
|
87
|
+
marginTop?: Responsive<Spacing>;
|
|
88
|
+
marginRight?: Responsive<Spacing>;
|
|
89
|
+
marginBottom?: Responsive<Spacing>;
|
|
90
|
+
marginLeft?: Responsive<Spacing>;
|
|
91
|
+
width?: Responsive<string>;
|
|
92
|
+
minWidth?: Responsive<string>;
|
|
93
|
+
maxWidth?: Responsive<string>;
|
|
94
|
+
height?: Responsive<string>;
|
|
95
|
+
minHeight?: Responsive<string>;
|
|
96
|
+
maxHeight?: Responsive<string>;
|
|
97
|
+
position?: Responsive<Position>;
|
|
98
|
+
textAlign?: Responsive<TextAlign>;
|
|
99
|
+
top?: Responsive<Top>;
|
|
100
|
+
right?: Responsive<Right>;
|
|
101
|
+
bottom?: Responsive<Bottom>;
|
|
102
|
+
left?: Responsive<Left>;
|
|
103
|
+
overflow?: Responsive<Overflow>;
|
|
104
|
+
overflowX?: Responsive<Overflow>;
|
|
105
|
+
overflowY?: Responsive<Overflow>;
|
|
106
|
+
alignSelf?: Responsive<AlignSelf>;
|
|
107
|
+
justifySelf?: Responsive<JustifySelf>;
|
|
108
|
+
flexBasis?: Responsive<string>;
|
|
109
|
+
flexGrow?: Responsive<FlexGrow>;
|
|
110
|
+
flexShrink?: Responsive<FlexShrink>;
|
|
111
|
+
gridArea?: Responsive<string>;
|
|
112
|
+
gridRow?: Responsive<string>;
|
|
113
|
+
gridColumn?: Responsive<string>;
|
|
114
|
+
order?: Responsive<number>;
|
|
115
|
+
theme?: string;
|
|
116
|
+
as?: string;
|
|
117
|
+
asChild?: boolean;
|
|
118
|
+
}
|
|
119
|
+
declare function Box({ display, color, backgroundColor, hoverColor, hoverBackgroundColor, hoverBorderColor, fontSize, fontWeight, border, borderColor, borderRadius, shadow, padding, paddingX, paddingY, paddingTop, paddingRight, paddingBottom, paddingLeft, margin, marginX, marginY, marginTop, marginRight, marginBottom, marginLeft, width, minWidth, maxWidth, height, minHeight, maxHeight, position, textAlign, top, right, bottom, left, overflow, overflowX, overflowY, alignSelf, justifySelf, flexBasis, flexGrow, flexShrink, gridArea, gridRow, gridColumn, order, theme, as, asChild, className, style, children, ...props }: BoxProps): react.JSX.Element;
|
|
120
|
+
|
|
121
|
+
interface FlexboxProps extends Omit<BoxProps, 'display'> {
|
|
122
|
+
display?: Responsive<FlexDisplay>;
|
|
123
|
+
direction?: Responsive<FlexDirection>;
|
|
124
|
+
wrap?: Responsive<FlexWrap>;
|
|
125
|
+
justifyContent?: Responsive<JustifyContent>;
|
|
126
|
+
justifyItems?: Responsive<JustifyItems>;
|
|
127
|
+
alignContent?: AlignContent;
|
|
128
|
+
alignItems?: AlignItems;
|
|
129
|
+
gap?: Responsive<Spacing | true>;
|
|
130
|
+
gapX?: Responsive<Spacing | true>;
|
|
131
|
+
gapY?: Responsive<Spacing | true>;
|
|
132
|
+
}
|
|
133
|
+
declare function Flexbox({ display, direction, wrap, justifyContent, justifyItems, alignContent, alignItems, gap, gapX, gapY, className, style, children, ...props }: FlexboxProps): react.JSX.Element;
|
|
134
|
+
|
|
135
|
+
interface RowProps extends FlexboxProps {
|
|
136
|
+
reverse?: boolean;
|
|
137
|
+
}
|
|
138
|
+
declare function Row({ reverse, children, ...props }: RowProps): react.JSX.Element;
|
|
139
|
+
|
|
140
|
+
interface FormButtonsProps extends RowProps {
|
|
141
|
+
fill?: boolean;
|
|
142
|
+
}
|
|
143
|
+
declare function FormButtons({ fill, children, ...props }: FormButtonsProps): react.JSX.Element;
|
|
144
|
+
|
|
145
|
+
interface FormFieldProps extends HTMLAttributes<HTMLDivElement>, Partial<UseFormReturn> {
|
|
146
|
+
name: string;
|
|
147
|
+
description?: string;
|
|
148
|
+
label?: string;
|
|
149
|
+
rules?: RegisterOptions<FieldValues, string>;
|
|
150
|
+
children: any;
|
|
151
|
+
}
|
|
152
|
+
declare const FormField: react.ForwardRefExoticComponent<FormFieldProps & react.RefAttributes<any>>;
|
|
153
|
+
|
|
154
|
+
interface ButtonProps extends ButtonProps$1 {
|
|
155
|
+
variant?: 'primary' | 'secondary' | 'outline' | 'quiet' | 'danger' | 'zero';
|
|
156
|
+
size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
157
|
+
asChild?: boolean;
|
|
158
|
+
slot?: string;
|
|
159
|
+
children?: ReactNode;
|
|
160
|
+
}
|
|
161
|
+
declare const Button: react.ForwardRefExoticComponent<ButtonProps & react.RefAttributes<any>>;
|
|
162
|
+
|
|
163
|
+
interface FormResetButtonProps extends ButtonProps {
|
|
164
|
+
values?: FieldValues | {
|
|
165
|
+
[p: string]: any;
|
|
166
|
+
};
|
|
167
|
+
}
|
|
168
|
+
declare function FormResetButton({ values, children, onPress, ...props }: FormResetButtonProps): react.JSX.Element;
|
|
169
|
+
|
|
170
|
+
interface LoadingButtonProps extends ButtonProps {
|
|
171
|
+
isDisabled?: boolean;
|
|
172
|
+
isLoading?: boolean;
|
|
173
|
+
showText?: boolean;
|
|
174
|
+
}
|
|
175
|
+
declare function LoadingButton({ isLoading, isDisabled, showText, children, ...props }: LoadingButtonProps): react.JSX.Element;
|
|
176
|
+
|
|
177
|
+
declare function FormSubmitButton({ variant, isDisabled, isLoading, children, ...props }: LoadingButtonProps): react.JSX.Element;
|
|
178
|
+
|
|
179
|
+
interface ToastProps extends HTMLAttributes<HTMLDivElement> {
|
|
180
|
+
id: string;
|
|
181
|
+
message: string;
|
|
182
|
+
title?: string;
|
|
183
|
+
actions?: string[];
|
|
184
|
+
allowClose?: boolean;
|
|
185
|
+
variant?: 'info' | 'error';
|
|
186
|
+
onClose?: (action?: string) => void;
|
|
187
|
+
}
|
|
188
|
+
declare function Toast({ id, message, title, actions, allowClose, variant, className, children, onClose, ...props }: ToastProps): react.JSX.Element;
|
|
189
|
+
|
|
190
|
+
type ToastPosition = 'top-left' | 'top' | 'top-right' | 'bottom-left' | 'bottom' | 'bottom-right' | 'left' | 'right';
|
|
191
|
+
interface ToasterProps {
|
|
192
|
+
duration?: number;
|
|
193
|
+
position?: ToastPosition;
|
|
194
|
+
}
|
|
195
|
+
declare function Toaster({ duration, position }: ToasterProps): react.JSX.Element;
|
|
196
|
+
|
|
197
|
+
interface ToastProviderProps extends ToasterProps {
|
|
198
|
+
children: ReactNode;
|
|
199
|
+
}
|
|
200
|
+
declare function ToastProvider({ children, ...props }: ToastProviderProps): react.JSX.Element;
|
|
201
|
+
|
|
202
|
+
declare function useDebounce(value: string, delay: number): string;
|
|
203
|
+
|
|
204
|
+
declare function setTheme(theme: string): void;
|
|
205
|
+
declare function useTheme(defaultTheme?: string): {
|
|
206
|
+
theme: string;
|
|
207
|
+
setTheme: typeof setTheme;
|
|
208
|
+
};
|
|
209
|
+
|
|
210
|
+
interface ToastOptions {
|
|
211
|
+
duration?: number;
|
|
212
|
+
title?: string;
|
|
213
|
+
actions?: string[];
|
|
214
|
+
allowClose?: boolean;
|
|
215
|
+
variant?: 'info' | 'error';
|
|
216
|
+
onClose?: (action?: string) => void;
|
|
217
|
+
}
|
|
218
|
+
interface ToastState extends ToastOptions {
|
|
219
|
+
id: string;
|
|
220
|
+
message: string;
|
|
221
|
+
timestamp: number;
|
|
222
|
+
}
|
|
223
|
+
declare function useToast(): {
|
|
224
|
+
toast: (message: string, options?: ToastOptions) => void;
|
|
225
|
+
toasts: ToastState[];
|
|
226
|
+
};
|
|
227
|
+
|
|
228
|
+
interface AccordionProps extends DisclosureGroupProps {
|
|
229
|
+
type: 'single' | 'multiple';
|
|
230
|
+
className?: string;
|
|
231
|
+
children?: ReactNode;
|
|
232
|
+
}
|
|
233
|
+
interface AccordionItemProps extends DisclosureProps {
|
|
234
|
+
}
|
|
235
|
+
declare function Accordion({ className, children, ...props }: AccordionProps): react.JSX.Element;
|
|
236
|
+
declare function AccordionItem({ defaultExpanded, className, children, ...props }: AccordionItemProps): react.JSX.Element;
|
|
237
|
+
|
|
238
|
+
interface AlertBannerProps {
|
|
239
|
+
title?: ReactNode;
|
|
240
|
+
description?: ReactNode;
|
|
241
|
+
icon?: ReactNode;
|
|
242
|
+
variant?: 'error';
|
|
243
|
+
align?: 'start' | 'center' | 'end';
|
|
244
|
+
allowClose?: boolean;
|
|
245
|
+
onClose?: () => void;
|
|
246
|
+
className?: string;
|
|
247
|
+
children?: ReactNode;
|
|
248
|
+
}
|
|
249
|
+
declare function AlertBanner({ title, description, icon, variant, align, allowClose, onClose, children, className, ...props }: AlertBannerProps): react.JSX.Element;
|
|
250
|
+
|
|
251
|
+
interface DialogProps extends DialogProps$1 {
|
|
252
|
+
title?: ReactNode;
|
|
253
|
+
variant?: 'modal' | 'menu' | 'sheet' | 'none';
|
|
254
|
+
}
|
|
255
|
+
declare function Dialog({ title, variant, children, className, ...props }: DialogProps): react.JSX.Element;
|
|
256
|
+
|
|
257
|
+
interface AlertDialogProps extends DialogProps {
|
|
258
|
+
title?: ReactNode;
|
|
259
|
+
description?: ReactNode;
|
|
260
|
+
isDanger?: boolean;
|
|
261
|
+
isConfirmDisabled?: boolean;
|
|
262
|
+
confirmLabel?: ReactNode;
|
|
263
|
+
cancelLabel?: ReactNode;
|
|
264
|
+
onConfirm?: () => void;
|
|
265
|
+
onCancel?: () => void;
|
|
266
|
+
}
|
|
267
|
+
declare function AlertDialog({ title, description, isDanger, isConfirmDisabled, confirmLabel, cancelLabel, onConfirm, onCancel, className, children, ...props }: AlertDialogProps): react.JSX.Element;
|
|
268
|
+
|
|
269
|
+
interface BlockquoteProps extends HTMLAttributes<HTMLElement> {
|
|
270
|
+
asChild?: boolean;
|
|
271
|
+
weight?: Responsive<FontWeight>;
|
|
272
|
+
wrap?: Responsive<TextWrap>;
|
|
273
|
+
}
|
|
274
|
+
declare function Blockquote({ asChild, children }: BlockquoteProps): react.JSX.Element;
|
|
275
|
+
|
|
276
|
+
declare function Breadcrumbs({ children, className, ...props }: BreadcrumbsProps<any>): react.JSX.Element;
|
|
277
|
+
declare function Breadcrumb({ children, className, ...props }: BreadcrumbProps): react.JSX.Element;
|
|
278
|
+
|
|
279
|
+
interface CalendarProps extends Omit<CalendarProps$1<any>, 'value' | 'minValue' | 'maxValue' | 'defaultValue' | 'onChange'> {
|
|
280
|
+
value: Date;
|
|
281
|
+
minValue?: Date;
|
|
282
|
+
maxValue?: Date;
|
|
283
|
+
defaultValue?: Date;
|
|
284
|
+
onChange?: (date: Date) => void;
|
|
285
|
+
}
|
|
286
|
+
declare function Calendar({ className, value, minValue, maxValue, defaultValue, onChange, ...props }: CalendarProps): react.JSX.Element;
|
|
287
|
+
|
|
288
|
+
interface CheckboxProps extends CheckboxProps$1 {
|
|
289
|
+
label?: string;
|
|
290
|
+
}
|
|
291
|
+
declare const Checkbox: react.ForwardRefExoticComponent<CheckboxProps & react.RefAttributes<any>>;
|
|
292
|
+
|
|
293
|
+
interface CodeProps extends HTMLAttributes<HTMLElement> {
|
|
294
|
+
asChild?: boolean;
|
|
295
|
+
weight?: Responsive<FontWeight>;
|
|
296
|
+
wrap?: Responsive<TextWrap>;
|
|
297
|
+
}
|
|
298
|
+
declare function Code({ asChild, children }: CodeProps): react.JSX.Element;
|
|
299
|
+
|
|
300
|
+
interface ColumnProps extends FlexboxProps {
|
|
301
|
+
reverse?: boolean;
|
|
302
|
+
}
|
|
303
|
+
declare function Column({ reverse, children, ...props }: ColumnProps): react.JSX.Element;
|
|
304
|
+
|
|
305
|
+
interface ContainerProps extends BoxProps {
|
|
306
|
+
isFluid?: boolean;
|
|
307
|
+
isCentered?: boolean;
|
|
308
|
+
}
|
|
309
|
+
declare function Container({ isCentered, isFluid, className, children, ...props }: ContainerProps): react.JSX.Element;
|
|
310
|
+
|
|
311
|
+
interface ConfirmationDialogProps extends AlertDialogProps {
|
|
312
|
+
value?: string;
|
|
313
|
+
confirmMessage?: ReactNode;
|
|
314
|
+
}
|
|
315
|
+
declare function ConfirmationDialog({ value, confirmMessage, className, children, ...props }: ConfirmationDialogProps): react.JSX.Element;
|
|
316
|
+
|
|
317
|
+
interface DataTableProps extends TableProps {
|
|
318
|
+
data?: any[];
|
|
319
|
+
}
|
|
320
|
+
declare function DataTable({ data, className, children, ...props }: DataTableProps): react.JSX.Element;
|
|
321
|
+
interface DataColumnProps extends Omit<HTMLAttributes<any>, 'children'> {
|
|
322
|
+
id: string;
|
|
323
|
+
label?: ReactNode;
|
|
324
|
+
align?: 'start' | 'center' | 'end';
|
|
325
|
+
width?: string;
|
|
326
|
+
as?: string;
|
|
327
|
+
hidden?: boolean;
|
|
328
|
+
children?: ReactNode | ((props: DataColumnProps) => void);
|
|
329
|
+
}
|
|
330
|
+
declare function DataColumn(props: DataColumnProps): null;
|
|
331
|
+
|
|
332
|
+
interface DotsProps {
|
|
333
|
+
className?: string;
|
|
334
|
+
}
|
|
335
|
+
declare function Dots({ className, ...props }: DotsProps): react.JSX.Element;
|
|
336
|
+
|
|
337
|
+
interface TooltipProps extends TooltipProps$1 {
|
|
338
|
+
showArrow?: boolean;
|
|
339
|
+
}
|
|
340
|
+
declare function Tooltip({ children, className, showArrow, ...props }: TooltipProps): react.JSX.Element;
|
|
341
|
+
interface TooltipBubbleProps extends HTMLAttributes<HTMLDivElement> {
|
|
342
|
+
showArrow?: boolean;
|
|
343
|
+
}
|
|
344
|
+
declare function TooltipBubble({ showArrow, children, ...props }: TooltipBubbleProps): react.JSX.Element;
|
|
345
|
+
|
|
346
|
+
interface FloatingTooltipProps extends TooltipBubbleProps {
|
|
347
|
+
}
|
|
348
|
+
declare function FloatingTooltip({ className, style, children, ...props }: FloatingTooltipProps): react.JSX.Element;
|
|
349
|
+
|
|
350
|
+
interface GridProps extends Omit<BoxProps, 'display'> {
|
|
351
|
+
display?: Responsive<GridDisplay>;
|
|
352
|
+
justifyContent?: Responsive<JustifyContent>;
|
|
353
|
+
justifyItems?: Responsive<JustifyItems>;
|
|
354
|
+
alignContent?: AlignContent;
|
|
355
|
+
alignItems?: AlignItems;
|
|
356
|
+
gap?: Responsive<Spacing>;
|
|
357
|
+
gapX?: Responsive<Spacing>;
|
|
358
|
+
gapY?: Responsive<Spacing>;
|
|
359
|
+
autoFlow?: Responsive<GridAutoFlow>;
|
|
360
|
+
rows?: Responsive<GridTemplateRows>;
|
|
361
|
+
columns?: Responsive<GridTemplateColumns>;
|
|
362
|
+
areas?: Responsive<GridTemplateAreas>;
|
|
363
|
+
}
|
|
364
|
+
declare function Grid({ display, justifyContent, justifyItems, alignContent, alignItems, gap, gapX, gapY, autoFlow, rows, columns, areas, className, style, children, ...props }: GridProps): react.JSX.Element;
|
|
365
|
+
|
|
366
|
+
interface HeadingProps extends BoxProps {
|
|
367
|
+
size?: Responsive<FontSize>;
|
|
368
|
+
weight?: Responsive<FontWeight>;
|
|
369
|
+
spacing?: Responsive<LetterSpacing>;
|
|
370
|
+
align?: Responsive<TextAlign>;
|
|
371
|
+
}
|
|
372
|
+
declare function Heading({ size, weight, align, spacing, className, style, children, ...props }: HeadingProps): react.JSX.Element;
|
|
373
|
+
|
|
374
|
+
interface HoverButtonProps {
|
|
375
|
+
isOpen?: boolean;
|
|
376
|
+
onHoverStart?: () => void;
|
|
377
|
+
onHoverEnd?: () => void;
|
|
378
|
+
closeDelay?: number;
|
|
379
|
+
children: ReactElement[];
|
|
380
|
+
}
|
|
381
|
+
declare function HoverTrigger({ isOpen, onHoverStart, onHoverEnd, closeDelay, children, }: HoverButtonProps): react.JSX.Element;
|
|
382
|
+
|
|
383
|
+
interface IconProps extends Omit<HTMLAttributes<HTMLElement>, 'color'> {
|
|
384
|
+
color?: FontColor;
|
|
385
|
+
size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
386
|
+
variant?: 'input';
|
|
387
|
+
rotate?: number;
|
|
388
|
+
strokeWidth?: string;
|
|
389
|
+
strokeColor?: FontColor;
|
|
390
|
+
fillColor?: FontColor;
|
|
391
|
+
}
|
|
392
|
+
declare function Icon({ color, size, variant, rotate, strokeWidth, strokeColor, fillColor, style, className, children, ...props }: IconProps & HTMLAttributes<HTMLElement>): react.JSX.Element;
|
|
393
|
+
|
|
394
|
+
declare const Icons: {
|
|
395
|
+
Moon: react_icons_lib.IconType;
|
|
396
|
+
Sun: react_icons_lib.IconType;
|
|
397
|
+
Alert: react_icons_lib.IconType;
|
|
398
|
+
Arrow: react_icons_lib.IconType;
|
|
399
|
+
Check: react_icons_lib.IconType;
|
|
400
|
+
Chevron: react_icons_lib.IconType;
|
|
401
|
+
Close: react_icons_lib.IconType;
|
|
402
|
+
Copy: react_icons_lib.IconType;
|
|
403
|
+
Edit: react_icons_lib.IconType;
|
|
404
|
+
ExternalLink: react_icons_lib.IconType;
|
|
405
|
+
Eye: react_icons_lib.IconType;
|
|
406
|
+
EyeSlash: react_icons_lib.IconType;
|
|
407
|
+
Info: react_icons_lib.IconType;
|
|
408
|
+
Logout: react_icons_lib.IconType;
|
|
409
|
+
MagnifyingGlass: react_icons_lib.IconType;
|
|
410
|
+
Menu: react_icons_lib.IconType;
|
|
411
|
+
Minus: react_icons_lib.IconType;
|
|
412
|
+
More: react_icons_lib.IconType;
|
|
413
|
+
PanelLeft: react_icons_lib.IconType;
|
|
414
|
+
Plus: react_icons_lib.IconType;
|
|
415
|
+
Refresh: react_icons_lib.IconType;
|
|
416
|
+
Trash: react_icons_lib.IconType;
|
|
417
|
+
};
|
|
418
|
+
|
|
419
|
+
interface ImageProps extends HTMLAttributes<HTMLImageElement> {
|
|
420
|
+
src: string;
|
|
421
|
+
alt?: string;
|
|
422
|
+
objectFit?: ObjectFit;
|
|
423
|
+
isCentered?: boolean;
|
|
424
|
+
borderRadius?: Responsive<BorderRadius>;
|
|
425
|
+
shadow?: Responsive<BoxShadow>;
|
|
426
|
+
}
|
|
427
|
+
declare function Image({ src, alt, objectFit, isCentered, borderRadius, shadow, className, style, ...props }: ImageProps): react.JSX.Element;
|
|
428
|
+
|
|
429
|
+
interface InlineEditFieldProps extends HTMLAttributes<HTMLDivElement> {
|
|
430
|
+
name?: string;
|
|
431
|
+
value: string;
|
|
432
|
+
defaultEdit?: boolean;
|
|
433
|
+
onChange?: (value: any) => void;
|
|
434
|
+
onCommit?: (value: any) => void;
|
|
435
|
+
onCancel?: () => void;
|
|
436
|
+
}
|
|
437
|
+
declare function InlineEditField({ name, value: defaultValue, defaultEdit, className, children, onChange, onCommit, onCancel, ...props }: InlineEditFieldProps): react.JSX.Element;
|
|
438
|
+
|
|
439
|
+
interface LabelProps extends LabelProps$1 {
|
|
440
|
+
className?: string;
|
|
441
|
+
}
|
|
442
|
+
declare function Label({ className, ...props }: LabelProps): react.JSX.Element;
|
|
443
|
+
|
|
444
|
+
interface ListProps extends ListBoxProps<any> {
|
|
445
|
+
items?: any[];
|
|
446
|
+
idProperty?: string;
|
|
447
|
+
labelProperty?: string;
|
|
448
|
+
separatorProperty?: string;
|
|
449
|
+
highlightColor?: string;
|
|
450
|
+
showCheckmark?: boolean;
|
|
451
|
+
}
|
|
452
|
+
declare function List({ items, idProperty, labelProperty, separatorProperty, highlightColor, showCheckmark, className, style, children, ...props }: ListProps): react.JSX.Element;
|
|
453
|
+
interface ListItemProps extends ListBoxItemProps<any> {
|
|
454
|
+
showCheckmark?: boolean;
|
|
455
|
+
}
|
|
456
|
+
declare function ListItem({ id, children, className, showCheckmark, ...props }: ListItemProps): react.JSX.Element;
|
|
457
|
+
declare function ListSeparator({ className, ...props }: SeparatorProps): react.JSX.Element;
|
|
458
|
+
interface ListSectionProps extends ListBoxSectionProps<any> {
|
|
459
|
+
title?: string;
|
|
460
|
+
}
|
|
461
|
+
declare function ListSection({ title, className, children, ...props }: ListSectionProps): react.JSX.Element;
|
|
462
|
+
|
|
463
|
+
interface LoadingProps {
|
|
464
|
+
size?: 'sm' | 'md' | 'lg' | 'xl';
|
|
465
|
+
icon?: 'dots' | 'spinner';
|
|
466
|
+
position?: 'page' | 'center' | 'inline';
|
|
467
|
+
className?: string;
|
|
468
|
+
}
|
|
469
|
+
declare function Loading(props: LoadingProps): react.JSX.Element;
|
|
470
|
+
|
|
471
|
+
interface MenuProps extends MenuProps$1<any> {
|
|
472
|
+
className?: string;
|
|
473
|
+
children?: ReactNode;
|
|
474
|
+
}
|
|
475
|
+
declare function Menu({ className, children, ...props }: MenuProps): react.JSX.Element;
|
|
476
|
+
declare function MenuItem({ children, className, ...props }: MenuItemProps<any>): react.JSX.Element;
|
|
477
|
+
declare function MenuSeparator({ className, ...props }: SeparatorProps): react.JSX.Element;
|
|
478
|
+
declare function MenuSection({ title, className, children, ...props }: MenuSectionProps<any> & {
|
|
479
|
+
title?: string;
|
|
480
|
+
}): react.JSX.Element;
|
|
481
|
+
|
|
482
|
+
interface ModalProps extends ModalOverlayProps {
|
|
483
|
+
position?: 'center' | 'top' | 'bottom' | 'left' | 'right' | 'fullscreen';
|
|
484
|
+
offset?: string;
|
|
485
|
+
children?: ReactNode | ((values: ModalRenderProps & {
|
|
486
|
+
defaultChildren: ReactNode;
|
|
487
|
+
}) => ReactNode);
|
|
488
|
+
}
|
|
489
|
+
declare function Modal({ position, offset, children, className, style, ...props }: ModalProps): react.JSX.Element;
|
|
490
|
+
|
|
491
|
+
type NavigationContext = {
|
|
492
|
+
activeMenu: string;
|
|
493
|
+
setActiveMenu: Dispatch<SetStateAction<string>>;
|
|
494
|
+
};
|
|
495
|
+
declare const NavbarContext: react.Context<NavigationContext | undefined>;
|
|
496
|
+
interface NavbarProps extends HTMLAttributes<HTMLElement> {
|
|
497
|
+
showArrow?: boolean;
|
|
498
|
+
}
|
|
499
|
+
declare const useNavigationContext: () => NavigationContext;
|
|
500
|
+
declare function Navbar({ showArrow, className, children, ...props }: NavbarProps): react.JSX.Element;
|
|
501
|
+
interface NavbarItemProps extends HTMLAttributes<HTMLElement> {
|
|
502
|
+
label?: string;
|
|
503
|
+
children?: ReactNode;
|
|
504
|
+
}
|
|
505
|
+
declare function NavbarItem({ label, children, className, ...props }: NavbarItemProps): react.JSX.Element;
|
|
506
|
+
|
|
507
|
+
interface NavMenuProps extends ColumnProps {
|
|
508
|
+
highlightColor?: string;
|
|
509
|
+
}
|
|
510
|
+
declare function NavMenu({ highlightColor, className, style, children, ...props }: NavMenuProps): react.JSX.Element;
|
|
511
|
+
interface NavMenuItemProps extends RowProps {
|
|
512
|
+
isSelected?: boolean;
|
|
513
|
+
}
|
|
514
|
+
declare function NavMenuItem({ isSelected, className, children, ...props }: NavMenuItemProps): react.JSX.Element;
|
|
515
|
+
|
|
516
|
+
interface PasswordFieldProps extends TextFieldProps$1 {
|
|
517
|
+
label?: string;
|
|
518
|
+
}
|
|
519
|
+
declare const PasswordField: react.ForwardRefExoticComponent<PasswordFieldProps & react.RefAttributes<any>>;
|
|
520
|
+
|
|
521
|
+
declare function Popover({ children, className, ...props }: PopoverProps): react.JSX.Element;
|
|
522
|
+
|
|
523
|
+
interface ProgressBarProps extends ProgressBarProps$1 {
|
|
524
|
+
showValue?: boolean;
|
|
525
|
+
}
|
|
526
|
+
declare function ProgressBar({ className, showValue, ...props }: ProgressBarProps): react.JSX.Element;
|
|
527
|
+
|
|
528
|
+
interface ProgressCircleProps extends ProgressBarProps$1 {
|
|
529
|
+
showValue?: boolean;
|
|
530
|
+
}
|
|
531
|
+
declare function ProgressCircle({ className, showValue, ...props }: ProgressCircleProps): react.JSX.Element;
|
|
532
|
+
|
|
533
|
+
interface RadioGroupProps extends RadioGroupProps$1 {
|
|
534
|
+
label?: string;
|
|
535
|
+
}
|
|
536
|
+
declare const RadioGroup: react.ForwardRefExoticComponent<RadioGroupProps & react.RefAttributes<any>>;
|
|
537
|
+
declare function Radio({ children, className, ...props }: RadioProps): react.JSX.Element;
|
|
538
|
+
|
|
539
|
+
interface SearchFieldProps extends SearchFieldProps$1 {
|
|
540
|
+
label?: string;
|
|
541
|
+
placeholder?: string;
|
|
542
|
+
value?: string;
|
|
543
|
+
delay?: number;
|
|
544
|
+
onSearch?: (value: string) => void;
|
|
545
|
+
}
|
|
546
|
+
declare const SearchField: react.ForwardRefExoticComponent<SearchFieldProps & react.RefAttributes<any>>;
|
|
547
|
+
|
|
548
|
+
interface SelectProps extends SelectProps$1<HTMLSelectElement> {
|
|
549
|
+
items?: any[];
|
|
550
|
+
value?: string;
|
|
551
|
+
defaultValue?: string;
|
|
552
|
+
label?: string;
|
|
553
|
+
isLoading?: boolean;
|
|
554
|
+
allowSearch?: boolean;
|
|
555
|
+
searchValue?: string;
|
|
556
|
+
searchDelay?: number;
|
|
557
|
+
onSearch?: (value: string) => void;
|
|
558
|
+
onChange?: (e: any) => void;
|
|
559
|
+
buttonProps?: ButtonProps;
|
|
560
|
+
listProps?: ListProps;
|
|
561
|
+
popoverProps?: PopoverProps;
|
|
562
|
+
renderValue?: ReactNode | ((values: SelectValueRenderProps<object> & {
|
|
563
|
+
defaultChildren: ReactNode;
|
|
564
|
+
}) => ReactNode);
|
|
565
|
+
}
|
|
566
|
+
declare const Select: react.ForwardRefExoticComponent<SelectProps & react.RefAttributes<any>>;
|
|
567
|
+
|
|
568
|
+
interface SidebarProps extends ColumnProps {
|
|
569
|
+
variant?: '1' | '2' | '3' | 'quiet';
|
|
570
|
+
isCollapsed?: boolean;
|
|
571
|
+
muteItems?: boolean;
|
|
572
|
+
showBorder?: boolean;
|
|
573
|
+
children?: ReactNode;
|
|
574
|
+
}
|
|
575
|
+
declare function Sidebar({ variant, isCollapsed, muteItems, showBorder, className, children, ...props }: SidebarProps): react.JSX.Element;
|
|
576
|
+
declare function SidebarSection({ title, children, }: {
|
|
577
|
+
title?: string;
|
|
578
|
+
children: ReactNode;
|
|
579
|
+
} & ColumnProps): react.JSX.Element;
|
|
580
|
+
declare function SidebarHeader({ label, icon, className, children, ...props }: {
|
|
581
|
+
label: string;
|
|
582
|
+
icon?: ReactNode;
|
|
583
|
+
children?: ReactNode;
|
|
584
|
+
} & RowProps): react.JSX.Element;
|
|
585
|
+
interface SidebarItemProps extends RowProps {
|
|
586
|
+
isSelected?: boolean;
|
|
587
|
+
}
|
|
588
|
+
declare function SidebarItem({ label, icon, isSelected, className, children, ...props }: {
|
|
589
|
+
label?: string;
|
|
590
|
+
icon?: ReactNode;
|
|
591
|
+
} & SidebarItemProps): react.JSX.Element;
|
|
592
|
+
|
|
593
|
+
interface SliderProps extends SliderProps$1 {
|
|
594
|
+
label?: ReactNode;
|
|
595
|
+
showValue?: boolean;
|
|
596
|
+
}
|
|
597
|
+
declare const Slider: react.ForwardRefExoticComponent<SliderProps & react.RefAttributes<any>>;
|
|
598
|
+
|
|
599
|
+
declare function Slot({ children, ...props }: {
|
|
600
|
+
children: ReactElement | ReactNode;
|
|
601
|
+
[key: string]: any;
|
|
602
|
+
}): ReactElement<unknown, string | react.JSXElementConstructor<any>> | null;
|
|
603
|
+
|
|
604
|
+
interface SpinnerProps {
|
|
605
|
+
size?: 'sm' | 'md' | 'lg' | 'xl';
|
|
606
|
+
quiet?: boolean;
|
|
607
|
+
className?: string;
|
|
608
|
+
isDisabled?: boolean;
|
|
609
|
+
}
|
|
610
|
+
declare function Spinner(props: SpinnerProps): react.JSX.Element;
|
|
611
|
+
|
|
612
|
+
interface StatusLightProps {
|
|
613
|
+
color?: string;
|
|
614
|
+
variant?: 'success' | 'warning' | 'error' | 'active' | 'inactive' | 'none';
|
|
615
|
+
className?: string;
|
|
616
|
+
children?: ReactNode;
|
|
617
|
+
}
|
|
618
|
+
declare function StatusLight(props: StatusLightProps): react.JSX.Element;
|
|
619
|
+
|
|
620
|
+
interface SwitchProps extends SwitchProps$1 {
|
|
621
|
+
label?: string;
|
|
622
|
+
}
|
|
623
|
+
declare const Switch: react.ForwardRefExoticComponent<SwitchProps & react.RefAttributes<any>>;
|
|
624
|
+
|
|
625
|
+
interface TableColumnProps extends ColumnProps$1 {
|
|
626
|
+
align?: 'start' | 'center' | 'end';
|
|
627
|
+
}
|
|
628
|
+
interface TableCellProps extends CellProps {
|
|
629
|
+
align?: 'start' | 'center' | 'end';
|
|
630
|
+
}
|
|
631
|
+
declare function Table({ children, className, ...props }: TableProps): react.JSX.Element;
|
|
632
|
+
declare function TableHeader({ children, className, style, ...props }: TableHeaderProps<any>): react.JSX.Element;
|
|
633
|
+
declare function TableBody({ children, className, ...props }: TableBodyProps<any>): react.JSX.Element;
|
|
634
|
+
declare function TableRow({ children, className, style, ...props }: RowProps$1<any>): react.JSX.Element;
|
|
635
|
+
declare function TableColumn({ children, className, align, ...props }: TableColumnProps): react.JSX.Element;
|
|
636
|
+
declare function TableCell({ children, className, align, ...props }: TableCellProps): react.JSX.Element;
|
|
637
|
+
|
|
638
|
+
declare function Tabs({ children, ...props }: TabsProps): react.JSX.Element;
|
|
639
|
+
declare function TabList({ children, ...props }: TabListProps<any>): react.JSX.Element;
|
|
640
|
+
declare function Tab({ children, ...props }: TabProps): react.JSX.Element;
|
|
641
|
+
declare function TabPanel({ children, ...props }: TabPanelProps): react.JSX.Element;
|
|
642
|
+
|
|
643
|
+
interface TextProps extends Omit<HTMLAttributes<HTMLElement>, 'color'> {
|
|
644
|
+
color?: FontColor;
|
|
645
|
+
size?: Responsive<FontSize>;
|
|
646
|
+
spacing?: Responsive<LetterSpacing>;
|
|
647
|
+
weight?: Responsive<FontWeight>;
|
|
648
|
+
align?: Responsive<TextAlign>;
|
|
649
|
+
wrap?: Responsive<TextWrap>;
|
|
650
|
+
transform?: Responsive<TextTransform>;
|
|
651
|
+
truncate?: Responsive<boolean>;
|
|
652
|
+
italic?: Responsive<boolean>;
|
|
653
|
+
underline?: Responsive<boolean>;
|
|
654
|
+
strikethrough?: Responsive<boolean>;
|
|
655
|
+
as?: 'span' | 'div' | 'label' | 'p';
|
|
656
|
+
asChild?: boolean;
|
|
657
|
+
}
|
|
658
|
+
declare function Text({ color, size, spacing, weight, align, wrap, transform, truncate, italic, underline, strikethrough, as, asChild, className, style, children, ...props }: TextProps): react.JSX.Element;
|
|
659
|
+
|
|
660
|
+
interface TextFieldProps extends TextFieldProps$1 {
|
|
661
|
+
label?: string;
|
|
662
|
+
placeholder?: string;
|
|
663
|
+
allowCopy?: boolean;
|
|
664
|
+
asChild?: boolean;
|
|
665
|
+
onChange?: (e: any) => void;
|
|
666
|
+
}
|
|
667
|
+
declare const TextField: react.ForwardRefExoticComponent<TextFieldProps & react.RefAttributes<HTMLInputElement>>;
|
|
668
|
+
|
|
669
|
+
interface TextAreaProps extends TextFieldProps {
|
|
670
|
+
rows?: number;
|
|
671
|
+
cols?: number;
|
|
672
|
+
resize?: 'none' | 'vertical' | 'horizontal';
|
|
673
|
+
children?: React.ReactNode;
|
|
674
|
+
}
|
|
675
|
+
declare const TextArea: react.ForwardRefExoticComponent<TextAreaProps & react.RefAttributes<any>>;
|
|
676
|
+
|
|
677
|
+
interface ThemeButtonProps extends ButtonProps {
|
|
678
|
+
defaultTheme?: string;
|
|
679
|
+
}
|
|
680
|
+
declare function ThemeButton({ className, variant, defaultTheme, onPress, ...props }: ThemeButtonProps): react.JSX.Element;
|
|
681
|
+
|
|
682
|
+
interface ToggleProps extends ToggleButtonProps {
|
|
683
|
+
label?: string;
|
|
684
|
+
value?: string;
|
|
685
|
+
}
|
|
686
|
+
declare const Toggle: react.ForwardRefExoticComponent<ToggleProps & react.RefAttributes<any>>;
|
|
687
|
+
|
|
688
|
+
interface ToggleGroupProps extends TagGroupProps {
|
|
689
|
+
label?: string;
|
|
690
|
+
value?: string[];
|
|
691
|
+
defaultValue?: string[];
|
|
692
|
+
onChange?: (value: string[]) => void;
|
|
693
|
+
}
|
|
694
|
+
declare function ToggleGroup({ label, value, defaultValue, onChange, className, children, selectionMode, selectedKeys, defaultSelectedKeys, onSelectionChange, ...props }: ToggleGroupProps): react.JSX.Element;
|
|
695
|
+
interface ToggleGroupItemProps extends TagProps {
|
|
696
|
+
}
|
|
697
|
+
declare function ToggleGroupItem({ className, children, ...props }: ToggleGroupItemProps): react.JSX.Element;
|
|
698
|
+
|
|
699
|
+
interface ZenProviderProps {
|
|
700
|
+
theme?: string;
|
|
701
|
+
colorScheme?: 'light' | 'dark' | 'system';
|
|
702
|
+
toast?: ToasterProps;
|
|
703
|
+
children: ReactNode;
|
|
704
|
+
}
|
|
705
|
+
declare function ZenProvider({ children, ...props }: ZenProviderProps): react.JSX.Element;
|
|
706
|
+
|
|
707
|
+
export { Accordion, AccordionItem, AlertBanner, AlertDialog, Blockquote, Box, Breadcrumb, Breadcrumbs, Button, Calendar, Checkbox, Code, Column, ConfirmationDialog, Container, DataColumn, DataTable, Dialog, Dots, Flexbox, FloatingTooltip, Form, FormButtons, FormField, FormResetButton, FormSubmitButton, Grid, Heading, HoverTrigger, Icon, Icons, Image, InlineEditField, Label, List, ListItem, ListSection, ListSeparator, Loading, LoadingButton, Menu, MenuItem, MenuSection, MenuSeparator, Modal, NavMenu, NavMenuItem, Navbar, NavbarContext, NavbarItem, PasswordField, Popover, ProgressBar, ProgressCircle, Radio, RadioGroup, Row, SearchField, Select, Sidebar, SidebarHeader, SidebarItem, SidebarSection, Slider, Slot, Spinner, StatusLight, Switch, Tab, TabList, TabPanel, Table, TableBody, TableCell, TableColumn, TableHeader, TableRow, Tabs, Text, TextArea, TextField, ThemeButton, Toast, ToastProvider, Toaster, Toggle, ToggleGroup, ToggleGroupItem, Tooltip, TooltipBubble, ZenProvider, useDebounce, useNavigationContext, useTheme, useToast };
|