@umami/react-zen 0.2.0 → 0.3.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.d.ts +624 -0
- package/dist/index.js +22637 -26311
- package/dist/index.mjs +23299 -26702
- package/dist/styles.css +1882 -2
- package/package.json +3 -3
- package/dist/styles.css.map +0 -1
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,624 @@
|
|
|
1
|
+
declare module "Icon" {
|
|
2
|
+
import { CSSProperties, HTMLAttributes, ReactNode } from 'react';
|
|
3
|
+
export interface IconProps {
|
|
4
|
+
size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
5
|
+
variant?: 'input';
|
|
6
|
+
rotate?: number;
|
|
7
|
+
style?: CSSProperties;
|
|
8
|
+
className?: string;
|
|
9
|
+
children: ReactNode;
|
|
10
|
+
}
|
|
11
|
+
export function Icon({ size, variant, rotate, style, className, children, ...props }: IconProps & HTMLAttributes<HTMLElement>): import("react").JSX.Element;
|
|
12
|
+
}
|
|
13
|
+
declare module "Icons" {
|
|
14
|
+
export const Icons: {
|
|
15
|
+
Alert: import("react-icons/lib").IconType;
|
|
16
|
+
Arrow: import("react-icons/lib").IconType;
|
|
17
|
+
Check: import("react-icons/lib").IconType;
|
|
18
|
+
Chevron: import("react-icons/lib").IconType;
|
|
19
|
+
Close: import("react-icons/lib").IconType;
|
|
20
|
+
Copy: import("react-icons/lib").IconType;
|
|
21
|
+
Edit: import("react-icons/lib").IconType;
|
|
22
|
+
ExternalLink: import("react-icons/lib").IconType;
|
|
23
|
+
Eye: import("react-icons/lib").IconType;
|
|
24
|
+
EyeSlash: import("react-icons/lib").IconType;
|
|
25
|
+
Info: import("react-icons/lib").IconType;
|
|
26
|
+
Logout: import("react-icons/lib").IconType;
|
|
27
|
+
MagnifyingGlass: import("react-icons/lib").IconType;
|
|
28
|
+
Menu: import("react-icons/lib").IconType;
|
|
29
|
+
Minus: import("react-icons/lib").IconType;
|
|
30
|
+
More: import("react-icons/lib").IconType;
|
|
31
|
+
Plus: import("react-icons/lib").IconType;
|
|
32
|
+
Refresh: import("react-icons/lib").IconType;
|
|
33
|
+
Trash: import("react-icons/lib").IconType;
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
declare module "Accordion" {
|
|
37
|
+
import { ReactNode } from 'react';
|
|
38
|
+
import { AccordionItemProps, AccordionContentProps, AccordionHeaderProps } from '@radix-ui/react-accordion';
|
|
39
|
+
interface AccordionProps {
|
|
40
|
+
type: 'single' | 'multiple';
|
|
41
|
+
className?: string;
|
|
42
|
+
children?: ReactNode;
|
|
43
|
+
}
|
|
44
|
+
function Accordion({ className, children, ...props }: AccordionProps): import("react").JSX.Element;
|
|
45
|
+
function AccordionItem({ className, children, ...props }: AccordionItemProps): import("react").JSX.Element;
|
|
46
|
+
function AccordionHeader({ children, className, ...props }: AccordionHeaderProps): import("react").JSX.Element;
|
|
47
|
+
function AccordionContent({ children, className, ...props }: AccordionContentProps): import("react").JSX.Element;
|
|
48
|
+
export { Accordion, AccordionItem, AccordionHeader, AccordionContent };
|
|
49
|
+
}
|
|
50
|
+
declare module "AlertBanner" {
|
|
51
|
+
import React, { ReactNode } from 'react';
|
|
52
|
+
interface AlertBannerProps {
|
|
53
|
+
title: string;
|
|
54
|
+
description?: string;
|
|
55
|
+
icon?: ReactNode;
|
|
56
|
+
variant?: 'error' | 'info';
|
|
57
|
+
allowClose?: boolean;
|
|
58
|
+
onClose?: () => void;
|
|
59
|
+
className?: string;
|
|
60
|
+
children?: ReactNode;
|
|
61
|
+
}
|
|
62
|
+
function AlertBanner({ title, description, icon, variant, allowClose, onClose, children, className, ...props }: AlertBannerProps): React.JSX.Element;
|
|
63
|
+
const AlertIcons: {
|
|
64
|
+
error: import("react-icons/lib").IconType;
|
|
65
|
+
info: import("react-icons/lib").IconType;
|
|
66
|
+
};
|
|
67
|
+
export { AlertBanner };
|
|
68
|
+
export type { AlertIcons };
|
|
69
|
+
}
|
|
70
|
+
declare module "Dialog" {
|
|
71
|
+
import { ReactNode } from 'react';
|
|
72
|
+
import { DialogProps } from 'react-aria-components';
|
|
73
|
+
interface _DialogProps extends DialogProps {
|
|
74
|
+
title?: ReactNode;
|
|
75
|
+
}
|
|
76
|
+
function _Dialog({ title, children, className, ...props }: _DialogProps): import("react").JSX.Element;
|
|
77
|
+
export { _Dialog as Dialog };
|
|
78
|
+
export type { _DialogProps as DialogProps };
|
|
79
|
+
}
|
|
80
|
+
declare module "Text" {
|
|
81
|
+
import { ReactNode } from 'react';
|
|
82
|
+
interface TextProps {
|
|
83
|
+
size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
84
|
+
spacing?: 'tighter' | 'tight' | 'wide' | 'wider';
|
|
85
|
+
type?: 'muted' | 'faded';
|
|
86
|
+
weight?: 'lighter' | 'light' | 'bold' | 'bolder';
|
|
87
|
+
asChild?: boolean;
|
|
88
|
+
className?: string;
|
|
89
|
+
children?: ReactNode;
|
|
90
|
+
}
|
|
91
|
+
function Text({ children, type, size, spacing, weight, asChild, className, ...props }: TextProps): import("react").JSX.Element;
|
|
92
|
+
export { Text };
|
|
93
|
+
export type { TextProps };
|
|
94
|
+
}
|
|
95
|
+
declare module "Flexbox" {
|
|
96
|
+
import { CSSProperties, ReactNode } from 'react';
|
|
97
|
+
export interface FlexboxProps {
|
|
98
|
+
direction?: 'row' | 'column' | 'row-reverse' | 'column-reverse';
|
|
99
|
+
wrap?: 'wrap' | 'nowrap' | 'wrap-reverse';
|
|
100
|
+
justifyContent?: 'center' | 'start' | 'end' | 'flex-start' | 'flex-end' | 'left' | 'right' | 'space-between' | 'space-around' | 'space-evenly' | 'stretch' | 'safe center' | 'unsafe center';
|
|
101
|
+
justifyItems?: 'stretch' | 'center' | 'start' | 'end' | 'flex-start' | 'flex-end' | 'self-start' | 'self-end' | 'left' | 'right' | 'baseline' | 'first baseline' | 'last baseline' | 'safe center' | 'unsafe center';
|
|
102
|
+
alignContent?: 'center' | 'start' | 'end' | 'flex-start' | 'flex-end' | 'baseline' | 'first baseline' | 'last baseline' | 'space-between' | 'space-around' | 'space-evenly' | 'stretch' | 'safe center' | 'unsafe center';
|
|
103
|
+
alignItems?: 'center' | 'start' | 'end' | 'flex-start' | 'flex-end' | 'self-start' | 'self-end' | 'stretch' | 'baseline' | 'first baseline' | 'last baseline' | 'safe center' | 'unsafe center';
|
|
104
|
+
alignSelf?: 'center' | 'start' | 'end' | 'self-start' | 'self-end' | 'flex-start' | 'flex-end' | 'baseline' | 'first baseline' | 'last baseline' | 'stretch' | 'safe center' | 'unsafe center';
|
|
105
|
+
inline?: boolean;
|
|
106
|
+
gap?: string | number;
|
|
107
|
+
order?: number;
|
|
108
|
+
grow?: number;
|
|
109
|
+
shrink?: number;
|
|
110
|
+
basis?: string | number;
|
|
111
|
+
spacing?: number;
|
|
112
|
+
style?: CSSProperties;
|
|
113
|
+
className?: string;
|
|
114
|
+
children?: ReactNode;
|
|
115
|
+
}
|
|
116
|
+
export function Flexbox({ inline, direction, wrap, justifyContent, justifyItems, alignContent, alignItems, alignSelf, gap, order, grow, shrink, basis, spacing, style, className, children, ...attributes }: FlexboxProps): import("react").JSX.Element;
|
|
117
|
+
}
|
|
118
|
+
declare module "Column" {
|
|
119
|
+
import { FlexboxProps } from "Flexbox";
|
|
120
|
+
interface ColumnProps extends FlexboxProps {
|
|
121
|
+
reverse?: boolean;
|
|
122
|
+
}
|
|
123
|
+
function Column({ reverse, children, ...props }: ColumnProps): import("react").JSX.Element;
|
|
124
|
+
export { Column };
|
|
125
|
+
export type { ColumnProps };
|
|
126
|
+
}
|
|
127
|
+
declare module "Row" {
|
|
128
|
+
import { FlexboxProps } from "Flexbox";
|
|
129
|
+
interface RowProps extends FlexboxProps {
|
|
130
|
+
reverse?: boolean;
|
|
131
|
+
}
|
|
132
|
+
function Row({ reverse, children, ...props }: RowProps): import("react").JSX.Element;
|
|
133
|
+
export { Row };
|
|
134
|
+
export type { RowProps };
|
|
135
|
+
}
|
|
136
|
+
declare module "Button" {
|
|
137
|
+
import React from 'react';
|
|
138
|
+
import { ButtonProps } from 'react-aria-components';
|
|
139
|
+
interface _ButtonProps extends ButtonProps {
|
|
140
|
+
variant?: 'primary' | 'secondary' | 'outline' | 'quiet' | 'danger' | 'zero';
|
|
141
|
+
size?: 'xs' | 'sm' | 'md' | 'lg';
|
|
142
|
+
asChild?: boolean;
|
|
143
|
+
slot?: string;
|
|
144
|
+
}
|
|
145
|
+
function _Button({ variant, size, preventFocusOnPress, asChild, className, children, ...props }: _ButtonProps): React.JSX.Element;
|
|
146
|
+
export { _Button as Button };
|
|
147
|
+
export type { _ButtonProps as ButtonProps };
|
|
148
|
+
}
|
|
149
|
+
declare module "AlertDialog" {
|
|
150
|
+
import { ReactNode } from 'react';
|
|
151
|
+
import { DialogProps } from "Dialog";
|
|
152
|
+
interface AlertDialogProps extends DialogProps {
|
|
153
|
+
title?: ReactNode;
|
|
154
|
+
description?: ReactNode;
|
|
155
|
+
isDanger?: boolean;
|
|
156
|
+
isConfirmDisabled?: boolean;
|
|
157
|
+
confirmLabel?: ReactNode;
|
|
158
|
+
cancelLabel?: ReactNode;
|
|
159
|
+
onConfirm?: () => void;
|
|
160
|
+
onCancel?: () => void;
|
|
161
|
+
}
|
|
162
|
+
function AlertDialog({ title, description, isDanger, isConfirmDisabled, confirmLabel, cancelLabel, onConfirm, onCancel, className, children, ...props }: AlertDialogProps): import("react").JSX.Element;
|
|
163
|
+
export { AlertDialog };
|
|
164
|
+
export type { AlertDialogProps };
|
|
165
|
+
}
|
|
166
|
+
declare module "Breadcrumbs" {
|
|
167
|
+
import { BreadcrumbsProps, BreadcrumbProps } from 'react-aria-components';
|
|
168
|
+
function _Breadcrumbs({ children, className, ...props }: BreadcrumbsProps<any>): import("react").JSX.Element;
|
|
169
|
+
function _Breadcrumb({ children, className, ...props }: BreadcrumbProps): import("react").JSX.Element;
|
|
170
|
+
export { _Breadcrumb as Breadcrumb, _Breadcrumbs as Breadcrumbs };
|
|
171
|
+
export type { BreadcrumbProps, BreadcrumbsProps };
|
|
172
|
+
}
|
|
173
|
+
declare module "Calendar" {
|
|
174
|
+
import { CalendarProps } from 'react-aria-components';
|
|
175
|
+
function _Calendar({ className, ...props }: CalendarProps<any>): import("react").JSX.Element;
|
|
176
|
+
export { _Calendar as Calendar };
|
|
177
|
+
export type { CalendarProps };
|
|
178
|
+
}
|
|
179
|
+
declare module "Checkbox" {
|
|
180
|
+
import { CheckboxProps } from 'react-aria-components';
|
|
181
|
+
function _Checkbox({ className, children, ...props }: CheckboxProps): import("react").JSX.Element;
|
|
182
|
+
export { _Checkbox as Checkbox };
|
|
183
|
+
export type { CheckboxProps };
|
|
184
|
+
}
|
|
185
|
+
declare module "ListItem" {
|
|
186
|
+
import { ListBoxItemProps } from 'react-aria-components';
|
|
187
|
+
function ListItem({ children, className, ...props }: ListBoxItemProps<any>): import("react").JSX.Element;
|
|
188
|
+
export { ListItem };
|
|
189
|
+
export type { ListBoxItemProps as ListItemProps };
|
|
190
|
+
export default ListItem;
|
|
191
|
+
}
|
|
192
|
+
declare module "List" {
|
|
193
|
+
import { ReactNode } from 'react';
|
|
194
|
+
import { ListBoxProps } from 'react-aria-components';
|
|
195
|
+
interface ListProps extends ListBoxProps<any> {
|
|
196
|
+
items?: any[];
|
|
197
|
+
className?: string;
|
|
198
|
+
children?: ReactNode;
|
|
199
|
+
}
|
|
200
|
+
function List({ items, className, children, ...props }: ListProps): import("react").JSX.Element;
|
|
201
|
+
export { List };
|
|
202
|
+
export type { ListProps };
|
|
203
|
+
}
|
|
204
|
+
declare module "Popover" {
|
|
205
|
+
import { PopoverProps } from 'react-aria-components';
|
|
206
|
+
function _Popover({ children, className, ...props }: PopoverProps): import("react").JSX.Element;
|
|
207
|
+
export { _Popover as Popover };
|
|
208
|
+
export type { PopoverProps };
|
|
209
|
+
}
|
|
210
|
+
declare module "Combobox" {
|
|
211
|
+
import { ComboBoxProps } from 'react-aria-components';
|
|
212
|
+
interface ComboboxProps extends ComboBoxProps<any> {
|
|
213
|
+
items: any[];
|
|
214
|
+
className?: string;
|
|
215
|
+
}
|
|
216
|
+
function Combobox({ items, className, ...props }: ComboboxProps): import("react").JSX.Element;
|
|
217
|
+
export { Combobox };
|
|
218
|
+
export type { ComboboxProps };
|
|
219
|
+
}
|
|
220
|
+
declare module "CopyButton" {
|
|
221
|
+
import { ReactNode, HTMLAttributes } from 'react';
|
|
222
|
+
interface CopyButtonProps extends HTMLAttributes<HTMLDivElement> {
|
|
223
|
+
value?: string;
|
|
224
|
+
className?: string;
|
|
225
|
+
children?: ReactNode;
|
|
226
|
+
}
|
|
227
|
+
function CopyButton({ value, className, children, ...props }: CopyButtonProps): import("react").JSX.Element;
|
|
228
|
+
export { CopyButton };
|
|
229
|
+
export type { CopyButtonProps };
|
|
230
|
+
}
|
|
231
|
+
declare module "TextField" {
|
|
232
|
+
import { TextFieldProps } from 'react-aria-components';
|
|
233
|
+
interface _TextFieldProps extends TextFieldProps {
|
|
234
|
+
asTextArea?: boolean;
|
|
235
|
+
allowCopy?: boolean;
|
|
236
|
+
onChange?: (e: any) => void;
|
|
237
|
+
}
|
|
238
|
+
function _TextField({ value, defaultValue, asTextArea, allowCopy, className, onChange, ...props }: _TextFieldProps): import("react").JSX.Element;
|
|
239
|
+
export { _TextField as TextField };
|
|
240
|
+
export type { _TextFieldProps as TextFieldProps };
|
|
241
|
+
}
|
|
242
|
+
declare module "ConfirmationDialog" {
|
|
243
|
+
import { ReactNode } from 'react';
|
|
244
|
+
import { AlertDialogProps } from "AlertDialog";
|
|
245
|
+
interface ConfirmationDialogProps extends AlertDialogProps {
|
|
246
|
+
value?: string;
|
|
247
|
+
confirmMessage?: ReactNode;
|
|
248
|
+
}
|
|
249
|
+
function ConfirmationDialog({ value, confirmMessage, className, children, ...props }: ConfirmationDialogProps): import("react").JSX.Element;
|
|
250
|
+
export { ConfirmationDialog };
|
|
251
|
+
export type { ConfirmationDialogProps };
|
|
252
|
+
}
|
|
253
|
+
declare module "Table" {
|
|
254
|
+
import { CellProps, ColumnProps, RowProps, TableProps, TableBodyProps, TableHeaderProps } from 'react-aria-components';
|
|
255
|
+
interface TableColumnProps extends ColumnProps {
|
|
256
|
+
alignment?: 'start' | 'center' | 'end';
|
|
257
|
+
}
|
|
258
|
+
interface TableCellProps extends CellProps {
|
|
259
|
+
alignment?: 'start' | 'center' | 'end';
|
|
260
|
+
}
|
|
261
|
+
function _Table({ children, className, ...props }: TableProps): import("react").JSX.Element;
|
|
262
|
+
function _TableHeader({ children, className, ...props }: TableHeaderProps<any>): import("react").JSX.Element;
|
|
263
|
+
function _TableBody({ children, className, ...props }: TableBodyProps<any>): import("react").JSX.Element;
|
|
264
|
+
function TableRow({ children, className, ...props }: RowProps<any>): import("react").JSX.Element;
|
|
265
|
+
function TableColumn({ children, className, alignment, ...props }: TableColumnProps): import("react").JSX.Element;
|
|
266
|
+
function TableCell({ children, className, alignment, ...props }: TableCellProps): import("react").JSX.Element;
|
|
267
|
+
export { _Table as Table, _TableHeader as TableHeader, _TableBody as TableBody, TableRow, TableColumn, TableCell, };
|
|
268
|
+
}
|
|
269
|
+
declare module "DataTable" {
|
|
270
|
+
import { ReactNode } from 'react';
|
|
271
|
+
import { ColumnProps, TableProps } from 'react-aria-components';
|
|
272
|
+
interface DataTableProps extends TableProps {
|
|
273
|
+
data?: any[];
|
|
274
|
+
}
|
|
275
|
+
function DataTable({ data, className, children, ...props }: DataTableProps): import("react").JSX.Element;
|
|
276
|
+
interface DataColumnProps extends ColumnProps {
|
|
277
|
+
id: string;
|
|
278
|
+
label?: ReactNode;
|
|
279
|
+
}
|
|
280
|
+
function DataColumn(props: DataColumnProps): null;
|
|
281
|
+
export { DataTable, DataColumn };
|
|
282
|
+
}
|
|
283
|
+
declare module "Dots" {
|
|
284
|
+
interface DotsProps {
|
|
285
|
+
className?: string;
|
|
286
|
+
}
|
|
287
|
+
function Dots({ className, ...props }: DotsProps): import("react").JSX.Element;
|
|
288
|
+
export { Dots };
|
|
289
|
+
export type { DotsProps };
|
|
290
|
+
}
|
|
291
|
+
declare module "Heading" {
|
|
292
|
+
import { HTMLAttributes, ReactNode } from 'react';
|
|
293
|
+
interface HeadingProps extends HTMLAttributes<any> {
|
|
294
|
+
size?: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9;
|
|
295
|
+
asChild?: boolean;
|
|
296
|
+
children: ReactNode;
|
|
297
|
+
}
|
|
298
|
+
function Heading({ size, className, children, asChild, ...props }: HeadingProps): import("react").JSX.Element;
|
|
299
|
+
export { Heading };
|
|
300
|
+
export type { HeadingProps };
|
|
301
|
+
}
|
|
302
|
+
declare module "InlineEditField" {
|
|
303
|
+
import { ReactNode } from 'react';
|
|
304
|
+
interface InlineEditFieldProps {
|
|
305
|
+
value: string;
|
|
306
|
+
defaultEdit?: boolean;
|
|
307
|
+
onChange?: (value: string) => void;
|
|
308
|
+
onCommit?: (value: string) => void;
|
|
309
|
+
onCancel?: () => void;
|
|
310
|
+
className?: string;
|
|
311
|
+
children?: ReactNode;
|
|
312
|
+
}
|
|
313
|
+
function InlineEditField({ value: defaultValue, defaultEdit, className, children, onChange, onCommit, onCancel, ...props }: InlineEditFieldProps): import("react").JSX.Element;
|
|
314
|
+
export { InlineEditField };
|
|
315
|
+
export type { InlineEditFieldProps };
|
|
316
|
+
}
|
|
317
|
+
declare module "Label" {
|
|
318
|
+
import { LabelProps } from 'react-aria-components';
|
|
319
|
+
interface _LabelProps extends LabelProps {
|
|
320
|
+
asChild?: boolean;
|
|
321
|
+
}
|
|
322
|
+
function _Label({ asChild, className, ...props }: _LabelProps): import("react").JSX.Element;
|
|
323
|
+
export { _Label as Label };
|
|
324
|
+
export type { _LabelProps as LabelProps };
|
|
325
|
+
}
|
|
326
|
+
declare module "Spinner" {
|
|
327
|
+
export interface SpinnerProps {
|
|
328
|
+
size?: 'sm' | 'md' | 'lg' | 'xl';
|
|
329
|
+
quiet?: boolean;
|
|
330
|
+
className?: string;
|
|
331
|
+
}
|
|
332
|
+
export function Spinner(props: SpinnerProps): import("react").JSX.Element;
|
|
333
|
+
}
|
|
334
|
+
declare module "Loading" {
|
|
335
|
+
export interface LoadingProps {
|
|
336
|
+
size?: 'sm' | 'md' | 'lg' | 'xl';
|
|
337
|
+
icon?: 'dots' | 'spinner';
|
|
338
|
+
position?: 'page' | 'center' | 'inline';
|
|
339
|
+
className?: string;
|
|
340
|
+
}
|
|
341
|
+
export function Loading(props: LoadingProps): import("react").JSX.Element;
|
|
342
|
+
}
|
|
343
|
+
declare module "LoadingButton" {
|
|
344
|
+
import { ButtonProps } from "Button";
|
|
345
|
+
interface LoadingButtonProps extends ButtonProps {
|
|
346
|
+
isLoading?: boolean;
|
|
347
|
+
}
|
|
348
|
+
function LoadingButton({ isLoading, children, ...props }: LoadingButtonProps): import("react").JSX.Element;
|
|
349
|
+
export { LoadingButton };
|
|
350
|
+
}
|
|
351
|
+
declare module "MenuItem" {
|
|
352
|
+
import { MenuItemProps } from 'react-aria-components';
|
|
353
|
+
function _MenuItem({ children, className, ...props }: MenuItemProps<any>): import("react").JSX.Element;
|
|
354
|
+
export { _MenuItem as MenuItem };
|
|
355
|
+
export type { MenuItemProps };
|
|
356
|
+
}
|
|
357
|
+
declare module "Menu" {
|
|
358
|
+
import { ReactNode } from 'react';
|
|
359
|
+
import { MenuProps } from 'react-aria-components';
|
|
360
|
+
interface _MenuProps extends MenuProps<any> {
|
|
361
|
+
items?: any[];
|
|
362
|
+
className?: string;
|
|
363
|
+
children?: ReactNode;
|
|
364
|
+
}
|
|
365
|
+
function _Menu({ items, className, children, ...props }: _MenuProps): import("react").JSX.Element;
|
|
366
|
+
export { _Menu as Menu };
|
|
367
|
+
export type { _MenuProps as MenuProps };
|
|
368
|
+
}
|
|
369
|
+
declare module "Modal" {
|
|
370
|
+
interface ModalProps {
|
|
371
|
+
className?: string;
|
|
372
|
+
children?: React.ReactNode;
|
|
373
|
+
}
|
|
374
|
+
function _Modal({ children, className, ...props }: ModalProps): import("react").JSX.Element;
|
|
375
|
+
export { _Modal as Modal };
|
|
376
|
+
export type { ModalProps };
|
|
377
|
+
}
|
|
378
|
+
declare module "Page" {
|
|
379
|
+
import { ReactNode } from 'react';
|
|
380
|
+
interface PageProps {
|
|
381
|
+
className?: string;
|
|
382
|
+
children?: ReactNode;
|
|
383
|
+
}
|
|
384
|
+
function Page({ className, children, ...props }: PageProps): import("react").JSX.Element;
|
|
385
|
+
export { Page };
|
|
386
|
+
export type { PageProps };
|
|
387
|
+
}
|
|
388
|
+
declare module "PasswordField" {
|
|
389
|
+
import { TextFieldProps } from 'react-aria-components';
|
|
390
|
+
function PasswordField({ ...props }: TextFieldProps): import("react").JSX.Element;
|
|
391
|
+
export { PasswordField };
|
|
392
|
+
}
|
|
393
|
+
declare module "ProgressBar" {
|
|
394
|
+
import { ProgressBarProps } from 'react-aria-components';
|
|
395
|
+
interface _ProgressBarProps extends ProgressBarProps {
|
|
396
|
+
showValue?: boolean;
|
|
397
|
+
}
|
|
398
|
+
function _ProgressBar({ className, showValue, ...props }: _ProgressBarProps): import("react").JSX.Element;
|
|
399
|
+
export { _ProgressBar as ProgressBar };
|
|
400
|
+
}
|
|
401
|
+
declare module "ProgressCircle" {
|
|
402
|
+
import { ProgressBarProps } from 'react-aria-components';
|
|
403
|
+
interface ProgressCircleProps extends ProgressBarProps {
|
|
404
|
+
showValue?: boolean;
|
|
405
|
+
}
|
|
406
|
+
function ProgressCircle({ className, showValue, ...props }: ProgressCircleProps): import("react").JSX.Element;
|
|
407
|
+
export { ProgressCircle };
|
|
408
|
+
}
|
|
409
|
+
declare module "RadioGroup" {
|
|
410
|
+
import { RadioGroupProps, RadioProps } from 'react-aria-components';
|
|
411
|
+
function _RadioGroup({ children, className, ...props }: RadioGroupProps): import("react").JSX.Element;
|
|
412
|
+
function _Radio({ children, className, ...props }: RadioProps): import("react").JSX.Element;
|
|
413
|
+
export { _RadioGroup as RadioGroup, _Radio as Radio };
|
|
414
|
+
export type { RadioProps, RadioGroupProps };
|
|
415
|
+
}
|
|
416
|
+
declare module "hooks/useDebounce" {
|
|
417
|
+
function useDebounce(value: string, delay: number): string;
|
|
418
|
+
export { useDebounce };
|
|
419
|
+
}
|
|
420
|
+
declare module "SearchField" {
|
|
421
|
+
import { SearchFieldProps } from 'react-aria-components';
|
|
422
|
+
interface _SearchFieldProps extends SearchFieldProps {
|
|
423
|
+
value?: string;
|
|
424
|
+
delay?: number;
|
|
425
|
+
onSearch?: (value: string) => void;
|
|
426
|
+
}
|
|
427
|
+
function _SearchField({ value, delay, onSearch, className, ...props }: _SearchFieldProps): import("react").JSX.Element;
|
|
428
|
+
export { _SearchField as SearchField };
|
|
429
|
+
export type { SearchFieldProps };
|
|
430
|
+
}
|
|
431
|
+
declare module "Select" {
|
|
432
|
+
import { ReactNode } from 'react';
|
|
433
|
+
export interface SelectProps {
|
|
434
|
+
items: any[];
|
|
435
|
+
value: string;
|
|
436
|
+
className?: string;
|
|
437
|
+
children?: ReactNode;
|
|
438
|
+
}
|
|
439
|
+
export function _Select({ children, items, value, className, ...props }: SelectProps): import("react").JSX.Element;
|
|
440
|
+
export { _Select as Select };
|
|
441
|
+
}
|
|
442
|
+
declare module "Slider" {
|
|
443
|
+
import { ReactNode } from 'react';
|
|
444
|
+
import { SliderProps } from 'react-aria-components';
|
|
445
|
+
interface _SliderProps extends SliderProps {
|
|
446
|
+
label?: ReactNode;
|
|
447
|
+
showValue?: boolean;
|
|
448
|
+
}
|
|
449
|
+
function _Slider({ className, showValue, label, ...props }: _SliderProps): import("react").JSX.Element;
|
|
450
|
+
export { _Slider as Slider };
|
|
451
|
+
export type { _SliderProps as SliderProps };
|
|
452
|
+
}
|
|
453
|
+
declare module "StatusLight" {
|
|
454
|
+
import { ReactNode } from 'react';
|
|
455
|
+
interface StatusLightProps {
|
|
456
|
+
color?: string;
|
|
457
|
+
variant?: 'success' | 'warning' | 'error' | 'active' | 'inactive' | 'none';
|
|
458
|
+
className?: string;
|
|
459
|
+
children?: ReactNode;
|
|
460
|
+
}
|
|
461
|
+
function StatusLight(props: StatusLightProps): import("react").JSX.Element;
|
|
462
|
+
export { StatusLight };
|
|
463
|
+
export type { StatusLightProps };
|
|
464
|
+
}
|
|
465
|
+
declare module "Switch" {
|
|
466
|
+
import { SwitchProps } from 'react-aria-components';
|
|
467
|
+
function _Switch({ children, className, ...props }: SwitchProps): import("react").JSX.Element;
|
|
468
|
+
export { _Switch as Switch };
|
|
469
|
+
export type { SwitchProps };
|
|
470
|
+
}
|
|
471
|
+
declare module "Tabs" {
|
|
472
|
+
import { TabProps, TabsProps, TabPanelProps, TabListProps } from 'react-aria-components';
|
|
473
|
+
function _Tabs({ children, ...props }: TabsProps): import("react").JSX.Element;
|
|
474
|
+
function _TabList({ children, ...props }: TabListProps<any>): import("react").JSX.Element;
|
|
475
|
+
function _Tab({ children, ...props }: TabProps): import("react").JSX.Element;
|
|
476
|
+
function _TabPanel({ children, ...props }: TabPanelProps): import("react").JSX.Element;
|
|
477
|
+
export { _Tabs as Tabs, _TabList as TabList, _Tab as Tab, _TabPanel as TabPanel };
|
|
478
|
+
export type { TabsProps, TabListProps, TabProps, TabPanelProps };
|
|
479
|
+
}
|
|
480
|
+
declare module "TextArea" {
|
|
481
|
+
import { TextFieldProps } from "TextField";
|
|
482
|
+
interface TextAreaProps extends TextFieldProps {
|
|
483
|
+
resize?: 'none' | 'vertical' | 'horizontal';
|
|
484
|
+
}
|
|
485
|
+
function TextArea({ resize, className, ...props }: TextAreaProps): import("react").JSX.Element;
|
|
486
|
+
export { TextArea };
|
|
487
|
+
export type { TextAreaProps };
|
|
488
|
+
}
|
|
489
|
+
declare module "TextOverflow" {
|
|
490
|
+
import { HTMLAttributes } from 'react';
|
|
491
|
+
interface TextOverflowProps extends HTMLAttributes<HTMLDivElement> {
|
|
492
|
+
asChild?: boolean;
|
|
493
|
+
}
|
|
494
|
+
function TextOverflow({ asChild, children, className, ...props }: TextOverflowProps): import("react").JSX.Element;
|
|
495
|
+
export { TextOverflow };
|
|
496
|
+
export type { TextOverflowProps };
|
|
497
|
+
}
|
|
498
|
+
declare module "hooks/useToast" {
|
|
499
|
+
import { ToastProps } from "Toast";
|
|
500
|
+
interface ToastState {
|
|
501
|
+
id: number;
|
|
502
|
+
message: string;
|
|
503
|
+
props: ToastProps;
|
|
504
|
+
}
|
|
505
|
+
function toast(message: string, props?: ToastProps): void;
|
|
506
|
+
function useToast(): {
|
|
507
|
+
toast: typeof toast;
|
|
508
|
+
toasts: ToastState[];
|
|
509
|
+
};
|
|
510
|
+
export { useToast, toast };
|
|
511
|
+
}
|
|
512
|
+
declare module "Toast" {
|
|
513
|
+
import { ToastProvider, ToastProviderProps, ToastProps, ToastViewportProps } from '@radix-ui/react-toast';
|
|
514
|
+
interface _ToastProps extends ToastProps {
|
|
515
|
+
title?: string;
|
|
516
|
+
description?: string;
|
|
517
|
+
actionText?: string;
|
|
518
|
+
allowClose?: boolean;
|
|
519
|
+
variant?: 'info' | 'error';
|
|
520
|
+
}
|
|
521
|
+
function Toast({ title, description, actionText, allowClose, variant, className, children, ...props }: _ToastProps): import("react").JSX.Element;
|
|
522
|
+
function Toaster(props: ToastViewportProps): import("react").JSX.Element;
|
|
523
|
+
export { Toast, ToastProvider, Toaster };
|
|
524
|
+
export type { _ToastProps as ToastProps, ToastProviderProps, ToastViewportProps as ToasterProps };
|
|
525
|
+
}
|
|
526
|
+
declare module "Toggle" {
|
|
527
|
+
import { ToggleButtonProps } from 'react-aria-components';
|
|
528
|
+
function Toggle({ children, className, ...props }: ToggleButtonProps): import("react").JSX.Element;
|
|
529
|
+
export { Toggle };
|
|
530
|
+
export type { ToggleButtonProps as ToggleProps };
|
|
531
|
+
}
|
|
532
|
+
declare module "ToggleGroup" {
|
|
533
|
+
import { ToggleGroupItemProps } from '@radix-ui/react-toggle-group';
|
|
534
|
+
import { ToggleGroupProps } from '@radix-ui/react-toolbar';
|
|
535
|
+
function _ToggleGroup({ className, children, ...props }: ToggleGroupProps): import("react").JSX.Element;
|
|
536
|
+
function _ToggleGroupItem({ className, children, ...props }: ToggleGroupItemProps): import("react").JSX.Element;
|
|
537
|
+
export { _ToggleGroup as ToggleGroup, _ToggleGroupItem as ToggleGroupItem };
|
|
538
|
+
}
|
|
539
|
+
declare module "Tooltip" {
|
|
540
|
+
import { TooltipProps } from 'react-aria-components';
|
|
541
|
+
function _Tooltip({ children, className, ...props }: TooltipProps): import("react").JSX.Element;
|
|
542
|
+
export { _Tooltip as Tooltip };
|
|
543
|
+
export type { TooltipProps };
|
|
544
|
+
}
|
|
545
|
+
declare module "ZenProvider" {
|
|
546
|
+
import { ReactNode } from 'react';
|
|
547
|
+
import { ToastProviderProps } from "Toast";
|
|
548
|
+
interface ZenProviderProps {
|
|
549
|
+
config?: {
|
|
550
|
+
toast?: ToastProviderProps;
|
|
551
|
+
};
|
|
552
|
+
children: ReactNode;
|
|
553
|
+
}
|
|
554
|
+
function ZenProvider({ config, children }: ZenProviderProps): import("react").JSX.Element;
|
|
555
|
+
export { ZenProvider };
|
|
556
|
+
export type { ZenProviderProps };
|
|
557
|
+
}
|
|
558
|
+
declare module "hooks/useTheme" {
|
|
559
|
+
function setTheme(name: string): void;
|
|
560
|
+
function useTheme(): {
|
|
561
|
+
theme: {
|
|
562
|
+
name: string;
|
|
563
|
+
};
|
|
564
|
+
setTheme: typeof setTheme;
|
|
565
|
+
};
|
|
566
|
+
export { useTheme, setTheme };
|
|
567
|
+
}
|
|
568
|
+
declare module "index" {
|
|
569
|
+
import { DialogTrigger, FileTrigger, MenuTrigger, TooltipTrigger } from 'react-aria-components';
|
|
570
|
+
import { useDebounce } from "hooks/useDebounce";
|
|
571
|
+
import { useTheme } from "hooks/useTheme";
|
|
572
|
+
import { useToast } from "hooks/useToast";
|
|
573
|
+
import { Accordion, AccordionItem, AccordionHeader, AccordionContent } from "Accordion";
|
|
574
|
+
import { AlertBanner } from "AlertBanner";
|
|
575
|
+
import { AlertDialog } from "AlertDialog";
|
|
576
|
+
import { Breadcrumbs, Breadcrumb } from "Breadcrumbs";
|
|
577
|
+
import { Button } from "Button";
|
|
578
|
+
import { Calendar } from "Calendar";
|
|
579
|
+
import { Checkbox } from "Checkbox";
|
|
580
|
+
import { Column } from "Column";
|
|
581
|
+
import { Combobox } from "Combobox";
|
|
582
|
+
import { ConfirmationDialog } from "ConfirmationDialog";
|
|
583
|
+
import { Dialog } from "Dialog";
|
|
584
|
+
import { DataTable, DataColumn } from "DataTable";
|
|
585
|
+
import { Dots } from "Dots";
|
|
586
|
+
import { Flexbox } from "Flexbox";
|
|
587
|
+
import { Heading } from "Heading";
|
|
588
|
+
import { Icon } from "Icon";
|
|
589
|
+
import { Icons } from "Icons";
|
|
590
|
+
import { InlineEditField } from "InlineEditField";
|
|
591
|
+
import { Label } from "Label";
|
|
592
|
+
import { List } from "List";
|
|
593
|
+
import { ListItem } from "ListItem";
|
|
594
|
+
import { Loading } from "Loading";
|
|
595
|
+
import { LoadingButton } from "LoadingButton";
|
|
596
|
+
import { Menu } from "Menu";
|
|
597
|
+
import { MenuItem } from "MenuItem";
|
|
598
|
+
import { Modal } from "Modal";
|
|
599
|
+
import { PasswordField } from "PasswordField";
|
|
600
|
+
import { Page } from "Page";
|
|
601
|
+
import { Popover } from "Popover";
|
|
602
|
+
import { ProgressBar } from "ProgressBar";
|
|
603
|
+
import { ProgressCircle } from "ProgressCircle";
|
|
604
|
+
import { Radio, RadioGroup } from "RadioGroup";
|
|
605
|
+
import { Row } from "Row";
|
|
606
|
+
import { SearchField } from "SearchField";
|
|
607
|
+
import { Select } from "Select";
|
|
608
|
+
import { Slider } from "Slider";
|
|
609
|
+
import { Spinner } from "Spinner";
|
|
610
|
+
import { StatusLight } from "StatusLight";
|
|
611
|
+
import { Switch } from "Switch";
|
|
612
|
+
import { Table, TableHeader, TableBody, TableRow, TableColumn, TableCell } from "Table";
|
|
613
|
+
import { Tabs, TabList, Tab, TabPanel } from "Tabs";
|
|
614
|
+
import { Text } from "Text";
|
|
615
|
+
import { TextOverflow } from "TextOverflow";
|
|
616
|
+
import { TextField } from "TextField";
|
|
617
|
+
import { TextArea } from "TextArea";
|
|
618
|
+
import { Toast, ToastProvider, Toaster } from "Toast";
|
|
619
|
+
import { Toggle } from "Toggle";
|
|
620
|
+
import { ToggleGroup, ToggleGroupItem } from "ToggleGroup";
|
|
621
|
+
import { Tooltip } from "Tooltip";
|
|
622
|
+
import { ZenProvider } from "ZenProvider";
|
|
623
|
+
export { useDebounce, useTheme, useToast, Accordion, AccordionContent, AccordionItem, AccordionHeader, AlertBanner, AlertDialog, Breadcrumb, Breadcrumbs, Button, Calendar, Checkbox, Column, Combobox, ConfirmationDialog, DataTable, DataColumn, Dialog, DialogTrigger, Dots, FileTrigger, Flexbox, Heading, Icon, Icons, InlineEditField, Label, List, ListItem, Loading, LoadingButton, Menu, MenuItem, MenuTrigger, Modal, PasswordField, Page, Popover, ProgressBar, ProgressCircle, Radio, RadioGroup, Row, SearchField, Select, Slider, Spinner, StatusLight, Switch, Table, TableHeader, TableBody, TableRow, TableColumn, TableCell, Tab, Tabs, TabList, TabPanel, Text, TextOverflow, TextField, TextArea, Toast, ToastProvider, Toaster, Toggle, ToggleGroup, ToggleGroupItem, Tooltip, TooltipTrigger, ZenProvider, };
|
|
624
|
+
}
|