@umami/react-zen 0.7.0 → 0.9.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 +9 -4
- package/dist/index.d.ts +751 -747
- package/dist/index.js +1851 -1839
- package/dist/index.mjs +1816 -1858
- package/dist/zen.css +4 -0
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -1,747 +1,751 @@
|
|
|
1
|
-
// Generated by dts-bundle v0.7.3
|
|
2
|
-
// Dependencies for this module:
|
|
3
|
-
//
|
|
4
|
-
//
|
|
5
|
-
//
|
|
6
|
-
//
|
|
7
|
-
//
|
|
8
|
-
//
|
|
9
|
-
//
|
|
10
|
-
|
|
11
|
-
declare module '@umami/react-zen' {
|
|
12
|
-
import { DialogTrigger, FileTrigger, MenuTrigger, SubmenuTrigger, TooltipTrigger } from 'react-aria-components';
|
|
13
|
-
import { Slot } from '@radix-ui/react-slot';
|
|
14
|
-
import { Form } from '@umami/react-zen/form/Form';
|
|
15
|
-
import { FormField } from '@umami/react-zen/form/FormField';
|
|
16
|
-
import { FormResetButton } from '@umami/react-zen/form/FormResetButton';
|
|
17
|
-
import { FormSubmitButton } from '@umami/react-zen/form/FormSubmitButton';
|
|
18
|
-
import { useDebounce } from '@umami/react-zen/hooks/useDebounce';
|
|
19
|
-
import { useTheme } from '@umami/react-zen/hooks/useTheme';
|
|
20
|
-
import { useToast } from '@umami/react-zen/hooks/useToast';
|
|
21
|
-
import { Accordion, AccordionItem, AccordionHeader, AccordionContent } from '@umami/react-zen/Accordion';
|
|
22
|
-
import { AlertBanner } from '@umami/react-zen/AlertBanner';
|
|
23
|
-
import { AlertDialog } from '@umami/react-zen/AlertDialog';
|
|
24
|
-
import { Box } from '@umami/react-zen/Box';
|
|
25
|
-
import { Breadcrumbs, Breadcrumb } from '@umami/react-zen/Breadcrumbs';
|
|
26
|
-
import { Button } from '@umami/react-zen/Button';
|
|
27
|
-
import { Calendar } from '@umami/react-zen/Calendar';
|
|
28
|
-
import { Checkbox } from '@umami/react-zen/Checkbox';
|
|
29
|
-
import { Column } from '@umami/react-zen/Column';
|
|
30
|
-
import { Combobox } from '@umami/react-zen/Combobox';
|
|
31
|
-
import { ConfirmationDialog } from '@umami/react-zen/ConfirmationDialog';
|
|
32
|
-
import { Dialog } from '@umami/react-zen/Dialog';
|
|
33
|
-
import { DataTable, DataColumn } from '@umami/react-zen/DataTable';
|
|
34
|
-
import { Dots } from '@umami/react-zen/Dots';
|
|
35
|
-
import { Flexbox } from '@umami/react-zen/Flexbox';
|
|
36
|
-
import { Heading } from '@umami/react-zen/Heading';
|
|
37
|
-
import { Icon } from '@umami/react-zen/Icon';
|
|
38
|
-
import { Icons } from '@umami/react-zen/Icons';
|
|
39
|
-
import { InlineEditField } from '@umami/react-zen/InlineEditField';
|
|
40
|
-
import { Label } from '@umami/react-zen/Label';
|
|
41
|
-
import { List } from '@umami/react-zen/List';
|
|
42
|
-
import { ListItem } from '@umami/react-zen/ListItem';
|
|
43
|
-
import { Loading } from '@umami/react-zen/Loading';
|
|
44
|
-
import { LoadingButton } from '@umami/react-zen/LoadingButton';
|
|
45
|
-
import { Menu } from '@umami/react-zen/Menu';
|
|
46
|
-
import { MenuItem } from '@umami/react-zen/MenuItem';
|
|
47
|
-
import { Modal } from '@umami/react-zen/Modal';
|
|
48
|
-
import { PasswordField } from '@umami/react-zen/PasswordField';
|
|
49
|
-
import { Page } from '@umami/react-zen/Page';
|
|
50
|
-
import { Popover } from '@umami/react-zen/Popover';
|
|
51
|
-
import { ProgressBar } from '@umami/react-zen/ProgressBar';
|
|
52
|
-
import { ProgressCircle } from '@umami/react-zen/ProgressCircle';
|
|
53
|
-
import { Radio, RadioGroup } from '@umami/react-zen/RadioGroup';
|
|
54
|
-
import { Row } from '@umami/react-zen/Row';
|
|
55
|
-
import { SearchField } from '@umami/react-zen/SearchField';
|
|
56
|
-
import { Select } from '@umami/react-zen/Select';
|
|
57
|
-
import { Slider } from '@umami/react-zen/Slider';
|
|
58
|
-
import { Spinner } from '@umami/react-zen/Spinner';
|
|
59
|
-
import { StatusLight } from '@umami/react-zen/StatusLight';
|
|
60
|
-
import { Switch } from '@umami/react-zen/Switch';
|
|
61
|
-
import { Table, TableHeader, TableBody, TableRow, TableColumn, TableCell } from '@umami/react-zen/Table';
|
|
62
|
-
import { Tabs, TabList, Tab, TabPanel } from '@umami/react-zen/Tabs';
|
|
63
|
-
import { Text } from '@umami/react-zen/Text';
|
|
64
|
-
import { TextOverflow } from '@umami/react-zen/TextOverflow';
|
|
65
|
-
import { TextField } from '@umami/react-zen/TextField';
|
|
66
|
-
import { TextArea } from '@umami/react-zen/TextArea';
|
|
67
|
-
import { Toast, ToastProvider, Toaster } from '@umami/react-zen/Toast';
|
|
68
|
-
import { Toggle } from '@umami/react-zen/Toggle';
|
|
69
|
-
import { ToggleGroup, ToggleGroupItem } from '@umami/react-zen/ToggleGroup';
|
|
70
|
-
import { Tooltip } from '@umami/react-zen/Tooltip';
|
|
71
|
-
import { ZenProvider } from '@umami/react-zen/ZenProvider';
|
|
72
|
-
export { Form, FormField, FormResetButton, FormSubmitButton, useDebounce, useTheme, useToast, Accordion, AccordionContent, AccordionItem, AccordionHeader, AlertBanner, AlertDialog, Box, 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, Slot, Spinner, StatusLight, SubmenuTrigger, Switch, Table, TableHeader, TableBody, TableRow, TableColumn, TableCell, Tab, Tabs, TabList, TabPanel, Text, TextOverflow, TextField, TextArea, Toast, ToastProvider, Toaster, Toggle, ToggleGroup, ToggleGroupItem, Tooltip, TooltipTrigger, ZenProvider, };
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
declare module '@umami/react-zen/form/Form' {
|
|
76
|
-
import { HTMLAttributes, ReactNode } from 'react';
|
|
77
|
-
import { UseFormProps, SubmitHandler } from 'react-hook-form';
|
|
78
|
-
interface FormProps extends UseFormProps, HTMLAttributes<HTMLFormElement> {
|
|
79
|
-
values?: object;
|
|
80
|
-
autoComplete?: string;
|
|
81
|
-
onSubmit?: SubmitHandler<any>;
|
|
82
|
-
error?: ReactNode;
|
|
83
|
-
preventSubmit?: boolean;
|
|
84
|
-
}
|
|
85
|
-
function Form(props: FormProps): import("react").JSX.Element;
|
|
86
|
-
export { Form };
|
|
87
|
-
export type { FormProps };
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
declare module '@umami/react-zen/form/FormField' {
|
|
91
|
-
import { HTMLAttributes } from 'react';
|
|
92
|
-
import { RegisterOptions, UseFormReturn, FieldValues } from 'react-hook-form';
|
|
93
|
-
interface FormFieldProps extends HTMLAttributes<HTMLDivElement>, Partial<UseFormReturn> {
|
|
94
|
-
name: string;
|
|
95
|
-
description?: string;
|
|
96
|
-
rules?: RegisterOptions<FieldValues, string>;
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
export
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
function
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
function
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
import {
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
function
|
|
156
|
-
function
|
|
157
|
-
function
|
|
158
|
-
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
export
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
import {
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
export
|
|
198
|
-
}
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
export
|
|
216
|
-
}
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
function
|
|
222
|
-
|
|
223
|
-
export
|
|
224
|
-
}
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
export
|
|
237
|
-
}
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
export
|
|
244
|
-
}
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
export
|
|
251
|
-
}
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
export
|
|
261
|
-
}
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
export
|
|
272
|
-
}
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
import {
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
export
|
|
284
|
-
}
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
import {
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
export
|
|
295
|
-
}
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
import {
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
}
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
export
|
|
319
|
-
}
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
import {
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
}
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
export
|
|
353
|
-
}
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
}
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
}
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
export
|
|
406
|
-
}
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
export
|
|
416
|
-
}
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
import {
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
export
|
|
429
|
-
}
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
export
|
|
436
|
-
}
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
export
|
|
457
|
-
}
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
import {
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
export
|
|
470
|
-
}
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
export
|
|
477
|
-
export
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
import {
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
export
|
|
492
|
-
}
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
}
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
export
|
|
512
|
-
}
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
export
|
|
519
|
-
}
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
}
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
}
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
function
|
|
543
|
-
|
|
544
|
-
export
|
|
545
|
-
}
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
export
|
|
555
|
-
}
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
}
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
}
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
}
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
}
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
}
|
|
627
|
-
interface
|
|
628
|
-
alignment?: 'start' | 'center' | 'end';
|
|
629
|
-
}
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
function
|
|
634
|
-
function
|
|
635
|
-
function
|
|
636
|
-
|
|
637
|
-
}
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
function
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
}
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
}
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
}
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
}
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
}
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
}
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
}
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
}
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
}
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
}
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
}
|
|
747
|
-
|
|
1
|
+
// Generated by dts-bundle v0.7.3
|
|
2
|
+
// Dependencies for this module:
|
|
3
|
+
// ../../react-aria-components
|
|
4
|
+
// ../../@radix-ui/react-slot
|
|
5
|
+
// ../../react
|
|
6
|
+
// ../../react-hook-form
|
|
7
|
+
// ../../@radix-ui/react-accordion
|
|
8
|
+
// ../../@radix-ui/react-toast
|
|
9
|
+
// ../../@radix-ui/react-toggle-group
|
|
10
|
+
|
|
11
|
+
declare module '@umami/react-zen' {
|
|
12
|
+
import { DialogTrigger, FileTrigger, MenuTrigger, SubmenuTrigger, TooltipTrigger } from 'react-aria-components';
|
|
13
|
+
import { Slot } from '@radix-ui/react-slot';
|
|
14
|
+
import { Form } from '@umami/react-zen/form/Form';
|
|
15
|
+
import { FormField } from '@umami/react-zen/form/FormField';
|
|
16
|
+
import { FormResetButton } from '@umami/react-zen/form/FormResetButton';
|
|
17
|
+
import { FormSubmitButton } from '@umami/react-zen/form/FormSubmitButton';
|
|
18
|
+
import { useDebounce } from '@umami/react-zen/hooks/useDebounce';
|
|
19
|
+
import { useTheme } from '@umami/react-zen/hooks/useTheme';
|
|
20
|
+
import { useToast } from '@umami/react-zen/hooks/useToast';
|
|
21
|
+
import { Accordion, AccordionItem, AccordionHeader, AccordionContent } from '@umami/react-zen/Accordion';
|
|
22
|
+
import { AlertBanner } from '@umami/react-zen/AlertBanner';
|
|
23
|
+
import { AlertDialog } from '@umami/react-zen/AlertDialog';
|
|
24
|
+
import { Box } from '@umami/react-zen/Box';
|
|
25
|
+
import { Breadcrumbs, Breadcrumb } from '@umami/react-zen/Breadcrumbs';
|
|
26
|
+
import { Button } from '@umami/react-zen/Button';
|
|
27
|
+
import { Calendar } from '@umami/react-zen/Calendar';
|
|
28
|
+
import { Checkbox } from '@umami/react-zen/Checkbox';
|
|
29
|
+
import { Column } from '@umami/react-zen/Column';
|
|
30
|
+
import { Combobox } from '@umami/react-zen/Combobox';
|
|
31
|
+
import { ConfirmationDialog } from '@umami/react-zen/ConfirmationDialog';
|
|
32
|
+
import { Dialog } from '@umami/react-zen/Dialog';
|
|
33
|
+
import { DataTable, DataColumn } from '@umami/react-zen/DataTable';
|
|
34
|
+
import { Dots } from '@umami/react-zen/Dots';
|
|
35
|
+
import { Flexbox } from '@umami/react-zen/Flexbox';
|
|
36
|
+
import { Heading } from '@umami/react-zen/Heading';
|
|
37
|
+
import { Icon } from '@umami/react-zen/Icon';
|
|
38
|
+
import { Icons } from '@umami/react-zen/Icons';
|
|
39
|
+
import { InlineEditField } from '@umami/react-zen/InlineEditField';
|
|
40
|
+
import { Label } from '@umami/react-zen/Label';
|
|
41
|
+
import { List } from '@umami/react-zen/List';
|
|
42
|
+
import { ListItem } from '@umami/react-zen/ListItem';
|
|
43
|
+
import { Loading } from '@umami/react-zen/Loading';
|
|
44
|
+
import { LoadingButton } from '@umami/react-zen/LoadingButton';
|
|
45
|
+
import { Menu } from '@umami/react-zen/Menu';
|
|
46
|
+
import { MenuItem } from '@umami/react-zen/MenuItem';
|
|
47
|
+
import { Modal } from '@umami/react-zen/Modal';
|
|
48
|
+
import { PasswordField } from '@umami/react-zen/PasswordField';
|
|
49
|
+
import { Page } from '@umami/react-zen/Page';
|
|
50
|
+
import { Popover } from '@umami/react-zen/Popover';
|
|
51
|
+
import { ProgressBar } from '@umami/react-zen/ProgressBar';
|
|
52
|
+
import { ProgressCircle } from '@umami/react-zen/ProgressCircle';
|
|
53
|
+
import { Radio, RadioGroup } from '@umami/react-zen/RadioGroup';
|
|
54
|
+
import { Row } from '@umami/react-zen/Row';
|
|
55
|
+
import { SearchField } from '@umami/react-zen/SearchField';
|
|
56
|
+
import { Select } from '@umami/react-zen/Select';
|
|
57
|
+
import { Slider } from '@umami/react-zen/Slider';
|
|
58
|
+
import { Spinner } from '@umami/react-zen/Spinner';
|
|
59
|
+
import { StatusLight } from '@umami/react-zen/StatusLight';
|
|
60
|
+
import { Switch } from '@umami/react-zen/Switch';
|
|
61
|
+
import { Table, TableHeader, TableBody, TableRow, TableColumn, TableCell } from '@umami/react-zen/Table';
|
|
62
|
+
import { Tabs, TabList, Tab, TabPanel } from '@umami/react-zen/Tabs';
|
|
63
|
+
import { Text } from '@umami/react-zen/Text';
|
|
64
|
+
import { TextOverflow } from '@umami/react-zen/TextOverflow';
|
|
65
|
+
import { TextField } from '@umami/react-zen/TextField';
|
|
66
|
+
import { TextArea } from '@umami/react-zen/TextArea';
|
|
67
|
+
import { Toast, ToastProvider, Toaster } from '@umami/react-zen/Toast';
|
|
68
|
+
import { Toggle } from '@umami/react-zen/Toggle';
|
|
69
|
+
import { ToggleGroup, ToggleGroupItem } from '@umami/react-zen/ToggleGroup';
|
|
70
|
+
import { Tooltip } from '@umami/react-zen/Tooltip';
|
|
71
|
+
import { ZenProvider } from '@umami/react-zen/ZenProvider';
|
|
72
|
+
export { Form, FormField, FormResetButton, FormSubmitButton, useDebounce, useTheme, useToast, Accordion, AccordionContent, AccordionItem, AccordionHeader, AlertBanner, AlertDialog, Box, 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, Slot, Spinner, StatusLight, SubmenuTrigger, Switch, Table, TableHeader, TableBody, TableRow, TableColumn, TableCell, Tab, Tabs, TabList, TabPanel, Text, TextOverflow, TextField, TextArea, Toast, ToastProvider, Toaster, Toggle, ToggleGroup, ToggleGroupItem, Tooltip, TooltipTrigger, ZenProvider, };
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
declare module '@umami/react-zen/form/Form' {
|
|
76
|
+
import { HTMLAttributes, ReactNode } from 'react';
|
|
77
|
+
import { UseFormProps, SubmitHandler } from 'react-hook-form';
|
|
78
|
+
interface FormProps extends UseFormProps, HTMLAttributes<HTMLFormElement> {
|
|
79
|
+
values?: object;
|
|
80
|
+
autoComplete?: string;
|
|
81
|
+
onSubmit?: SubmitHandler<any>;
|
|
82
|
+
error?: ReactNode;
|
|
83
|
+
preventSubmit?: boolean;
|
|
84
|
+
}
|
|
85
|
+
function Form(props: FormProps): import("react").JSX.Element;
|
|
86
|
+
export { Form };
|
|
87
|
+
export type { FormProps };
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
declare module '@umami/react-zen/form/FormField' {
|
|
91
|
+
import { HTMLAttributes } from 'react';
|
|
92
|
+
import { RegisterOptions, UseFormReturn, FieldValues } from 'react-hook-form';
|
|
93
|
+
interface FormFieldProps extends HTMLAttributes<HTMLDivElement>, Partial<UseFormReturn> {
|
|
94
|
+
name: string;
|
|
95
|
+
description?: string;
|
|
96
|
+
rules?: RegisterOptions<FieldValues, string>;
|
|
97
|
+
children: any;
|
|
98
|
+
}
|
|
99
|
+
function FormField({ name, description, rules, className, children, ...props }: FormFieldProps): import("react").JSX.Element;
|
|
100
|
+
export { FormField };
|
|
101
|
+
export type { FormFieldProps };
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
declare module '@umami/react-zen/form/FormResetButton' {
|
|
105
|
+
import { ButtonProps } from '@umami/react-zen/Button';
|
|
106
|
+
function FormResetButton(props: ButtonProps): import("react").JSX.Element;
|
|
107
|
+
export { FormResetButton };
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
declare module '@umami/react-zen/form/FormSubmitButton' {
|
|
111
|
+
import { LoadingButtonProps } from '@umami/react-zen/LoadingButton';
|
|
112
|
+
function FormSubmitButton({ children, disabled, isLoading, ...props }: LoadingButtonProps): import("react").JSX.Element;
|
|
113
|
+
export { FormSubmitButton };
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
declare module '@umami/react-zen/hooks/useDebounce' {
|
|
117
|
+
function useDebounce(value: string, delay: number): string;
|
|
118
|
+
export { useDebounce };
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
declare module '@umami/react-zen/hooks/useTheme' {
|
|
122
|
+
function setTheme(name: string): void;
|
|
123
|
+
function useTheme(): {
|
|
124
|
+
theme: {
|
|
125
|
+
name: string;
|
|
126
|
+
};
|
|
127
|
+
setTheme: typeof setTheme;
|
|
128
|
+
};
|
|
129
|
+
export { useTheme, setTheme };
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
declare module '@umami/react-zen/hooks/useToast' {
|
|
133
|
+
import { ToastProps } from '@umami/react-zen/Toast';
|
|
134
|
+
interface ToastState {
|
|
135
|
+
id: number;
|
|
136
|
+
message: string;
|
|
137
|
+
props: ToastProps;
|
|
138
|
+
}
|
|
139
|
+
function toast(message: string, props?: ToastProps): void;
|
|
140
|
+
function useToast(): {
|
|
141
|
+
toast: typeof toast;
|
|
142
|
+
toasts: ToastState[];
|
|
143
|
+
};
|
|
144
|
+
export { useToast, toast };
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
declare module '@umami/react-zen/Accordion' {
|
|
148
|
+
import { ReactNode } from 'react';
|
|
149
|
+
import { AccordionItemProps, AccordionContentProps, AccordionHeaderProps } from '@radix-ui/react-accordion';
|
|
150
|
+
interface AccordionProps {
|
|
151
|
+
type: 'single' | 'multiple';
|
|
152
|
+
className?: string;
|
|
153
|
+
children?: ReactNode;
|
|
154
|
+
}
|
|
155
|
+
function Accordion({ className, children, ...props }: AccordionProps): import("react").JSX.Element;
|
|
156
|
+
function AccordionItem({ className, children, ...props }: AccordionItemProps): import("react").JSX.Element;
|
|
157
|
+
function AccordionHeader({ children, className, ...props }: AccordionHeaderProps): import("react").JSX.Element;
|
|
158
|
+
function AccordionContent({ children, className, ...props }: AccordionContentProps): import("react").JSX.Element;
|
|
159
|
+
export { Accordion, AccordionItem, AccordionHeader, AccordionContent };
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
declare module '@umami/react-zen/AlertBanner' {
|
|
163
|
+
import React, { ReactNode } from 'react';
|
|
164
|
+
interface AlertBannerProps {
|
|
165
|
+
title?: string;
|
|
166
|
+
description?: string;
|
|
167
|
+
icon?: ReactNode;
|
|
168
|
+
variant?: 'error' | 'info';
|
|
169
|
+
allowClose?: boolean;
|
|
170
|
+
onClose?: () => void;
|
|
171
|
+
className?: string;
|
|
172
|
+
children?: ReactNode;
|
|
173
|
+
}
|
|
174
|
+
function AlertBanner({ title, description, icon, variant, allowClose, onClose, children, className, ...props }: AlertBannerProps): React.JSX.Element;
|
|
175
|
+
const AlertIcons: {
|
|
176
|
+
error: import("react-icons/lib").IconType;
|
|
177
|
+
info: import("react-icons/lib").IconType;
|
|
178
|
+
};
|
|
179
|
+
export { AlertBanner, AlertIcons };
|
|
180
|
+
export type { AlertBannerProps };
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
declare module '@umami/react-zen/AlertDialog' {
|
|
184
|
+
import { ReactNode } from 'react';
|
|
185
|
+
import { DialogProps } from '@umami/react-zen/Dialog';
|
|
186
|
+
interface AlertDialogProps extends DialogProps {
|
|
187
|
+
title?: ReactNode;
|
|
188
|
+
description?: ReactNode;
|
|
189
|
+
isDanger?: boolean;
|
|
190
|
+
isConfirmDisabled?: boolean;
|
|
191
|
+
confirmLabel?: ReactNode;
|
|
192
|
+
cancelLabel?: ReactNode;
|
|
193
|
+
onConfirm?: () => void;
|
|
194
|
+
onCancel?: () => void;
|
|
195
|
+
}
|
|
196
|
+
function AlertDialog({ title, description, isDanger, isConfirmDisabled, confirmLabel, cancelLabel, onConfirm, onCancel, className, children, ...props }: AlertDialogProps): import("react").JSX.Element;
|
|
197
|
+
export { AlertDialog };
|
|
198
|
+
export type { AlertDialogProps };
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
declare module '@umami/react-zen/Box' {
|
|
202
|
+
import { ReactNode, HTMLProps } from 'react';
|
|
203
|
+
interface BoxProps extends HTMLProps<HTMLDivElement> {
|
|
204
|
+
className?: string;
|
|
205
|
+
fontSize?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
206
|
+
gap?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
207
|
+
border?: 'thin' | 'medium' | 'thick';
|
|
208
|
+
borderRadius?: 'sm' | 'md' | 'lg' | 'full';
|
|
209
|
+
shadow?: 1 | 2 | 3 | 4 | 5 | 6;
|
|
210
|
+
spacing?: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12;
|
|
211
|
+
asChild?: boolean;
|
|
212
|
+
children?: ReactNode;
|
|
213
|
+
}
|
|
214
|
+
function Box({ className, spacing, fontSize, border, borderRadius, shadow, gap, asChild, children, ...props }: BoxProps): import("react").JSX.Element;
|
|
215
|
+
export { Box };
|
|
216
|
+
export type { BoxProps };
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
declare module '@umami/react-zen/Breadcrumbs' {
|
|
220
|
+
import { BreadcrumbsProps, BreadcrumbProps } from 'react-aria-components';
|
|
221
|
+
function Breadcrumbs({ children, className, ...props }: BreadcrumbsProps<any>): import("react").JSX.Element;
|
|
222
|
+
function Breadcrumb({ children, className, ...props }: BreadcrumbProps): import("react").JSX.Element;
|
|
223
|
+
export { Breadcrumb, Breadcrumbs };
|
|
224
|
+
export type { BreadcrumbProps, BreadcrumbsProps };
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
declare module '@umami/react-zen/Button' {
|
|
228
|
+
import { ButtonProps as _ButtonProps } from 'react-aria-components';
|
|
229
|
+
interface ButtonProps extends _ButtonProps {
|
|
230
|
+
variant?: 'primary' | 'secondary' | 'outline' | 'quiet' | 'danger' | 'zero';
|
|
231
|
+
size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
232
|
+
asChild?: boolean;
|
|
233
|
+
slot?: string;
|
|
234
|
+
}
|
|
235
|
+
function Button({ variant, size, preventFocusOnPress, asChild, className, children, ...props }: ButtonProps): import("react").JSX.Element;
|
|
236
|
+
export { Button };
|
|
237
|
+
export type { ButtonProps };
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
declare module '@umami/react-zen/Calendar' {
|
|
241
|
+
import { CalendarProps } from 'react-aria-components';
|
|
242
|
+
function Calendar({ className, ...props }: CalendarProps<any>): import("react").JSX.Element;
|
|
243
|
+
export { Calendar };
|
|
244
|
+
export type { CalendarProps };
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
declare module '@umami/react-zen/Checkbox' {
|
|
248
|
+
import { CheckboxProps } from 'react-aria-components';
|
|
249
|
+
function Checkbox({ className, children, ...props }: CheckboxProps): import("react").JSX.Element;
|
|
250
|
+
export { Checkbox };
|
|
251
|
+
export type { CheckboxProps };
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
declare module '@umami/react-zen/Column' {
|
|
255
|
+
import { FlexboxProps } from '@umami/react-zen/Flexbox';
|
|
256
|
+
interface ColumnProps extends FlexboxProps {
|
|
257
|
+
reverse?: boolean;
|
|
258
|
+
}
|
|
259
|
+
function Column({ reverse, children, ...props }: ColumnProps): import("react").JSX.Element;
|
|
260
|
+
export { Column };
|
|
261
|
+
export type { ColumnProps };
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
declare module '@umami/react-zen/Combobox' {
|
|
265
|
+
import { ComboBoxProps } from 'react-aria-components';
|
|
266
|
+
interface ComboboxProps extends ComboBoxProps<any> {
|
|
267
|
+
items: any[];
|
|
268
|
+
className?: string;
|
|
269
|
+
}
|
|
270
|
+
function Combobox({ items, className, ...props }: ComboboxProps): import("react").JSX.Element;
|
|
271
|
+
export { Combobox };
|
|
272
|
+
export type { ComboboxProps };
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
declare module '@umami/react-zen/ConfirmationDialog' {
|
|
276
|
+
import { ReactNode } from 'react';
|
|
277
|
+
import { AlertDialogProps } from '@umami/react-zen/AlertDialog';
|
|
278
|
+
interface ConfirmationDialogProps extends AlertDialogProps {
|
|
279
|
+
value?: string;
|
|
280
|
+
confirmMessage?: ReactNode;
|
|
281
|
+
}
|
|
282
|
+
function ConfirmationDialog({ value, confirmMessage, className, children, ...props }: ConfirmationDialogProps): import("react").JSX.Element;
|
|
283
|
+
export { ConfirmationDialog };
|
|
284
|
+
export type { ConfirmationDialogProps };
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
declare module '@umami/react-zen/Dialog' {
|
|
288
|
+
import { ReactNode } from 'react';
|
|
289
|
+
import { DialogProps as AriaDialogProps } from 'react-aria-components';
|
|
290
|
+
interface DialogProps extends AriaDialogProps {
|
|
291
|
+
title?: ReactNode;
|
|
292
|
+
}
|
|
293
|
+
function Dialog({ title, children, className, ...props }: DialogProps): import("react").JSX.Element;
|
|
294
|
+
export { Dialog };
|
|
295
|
+
export type { DialogProps };
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
declare module '@umami/react-zen/DataTable' {
|
|
299
|
+
import { ReactNode } from 'react';
|
|
300
|
+
import { ColumnProps, TableProps } from 'react-aria-components';
|
|
301
|
+
interface DataTableProps extends TableProps {
|
|
302
|
+
data?: any[];
|
|
303
|
+
}
|
|
304
|
+
function DataTable({ data, className, children, ...props }: DataTableProps): import("react").JSX.Element;
|
|
305
|
+
interface DataColumnProps extends ColumnProps {
|
|
306
|
+
id: string;
|
|
307
|
+
label?: ReactNode;
|
|
308
|
+
}
|
|
309
|
+
function DataColumn(props: DataColumnProps): null;
|
|
310
|
+
export { DataTable, DataColumn };
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
declare module '@umami/react-zen/Dots' {
|
|
314
|
+
interface DotsProps {
|
|
315
|
+
className?: string;
|
|
316
|
+
}
|
|
317
|
+
function Dots({ className, ...props }: DotsProps): import("react").JSX.Element;
|
|
318
|
+
export { Dots };
|
|
319
|
+
export type { DotsProps };
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
declare module '@umami/react-zen/Flexbox' {
|
|
323
|
+
import { CSSProperties, ReactNode } from 'react';
|
|
324
|
+
import { BoxProps } from '@umami/react-zen/Box';
|
|
325
|
+
export interface FlexboxProps extends BoxProps {
|
|
326
|
+
direction?: 'row' | 'column' | 'row-reverse' | 'column-reverse';
|
|
327
|
+
wrap?: 'wrap' | 'nowrap' | 'wrap-reverse';
|
|
328
|
+
justifyContent?: 'center' | 'start' | 'end' | 'flex-start' | 'flex-end' | 'left' | 'right' | 'space-between' | 'space-around' | 'space-evenly' | 'stretch' | 'safe center' | 'unsafe center';
|
|
329
|
+
justifyItems?: 'stretch' | 'center' | 'start' | 'end' | 'flex-start' | 'flex-end' | 'self-start' | 'self-end' | 'left' | 'right' | 'baseline' | 'first baseline' | 'last baseline' | 'safe center' | 'unsafe center';
|
|
330
|
+
alignContent?: 'center' | 'start' | 'end' | 'flex-start' | 'flex-end' | 'baseline' | 'first baseline' | 'last baseline' | 'space-between' | 'space-around' | 'space-evenly' | 'stretch' | 'safe center' | 'unsafe center';
|
|
331
|
+
alignItems?: 'center' | 'start' | 'end' | 'flex-start' | 'flex-end' | 'self-start' | 'self-end' | 'stretch' | 'baseline' | 'first baseline' | 'last baseline' | 'safe center' | 'unsafe center';
|
|
332
|
+
alignSelf?: 'center' | 'start' | 'end' | 'self-start' | 'self-end' | 'flex-start' | 'flex-end' | 'baseline' | 'first baseline' | 'last baseline' | 'stretch' | 'safe center' | 'unsafe center';
|
|
333
|
+
inline?: boolean;
|
|
334
|
+
grow?: number;
|
|
335
|
+
shrink?: number;
|
|
336
|
+
basis?: string | number;
|
|
337
|
+
style?: CSSProperties;
|
|
338
|
+
className?: string;
|
|
339
|
+
children?: ReactNode;
|
|
340
|
+
}
|
|
341
|
+
export function Flexbox({ inline, direction, wrap, justifyContent, justifyItems, alignContent, alignItems, alignSelf, grow, shrink, basis, spacing, style, className, children, ...props }: FlexboxProps): import("react").JSX.Element;
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
declare module '@umami/react-zen/Heading' {
|
|
345
|
+
import { HTMLAttributes, ReactNode } from 'react';
|
|
346
|
+
interface HeadingProps extends HTMLAttributes<any> {
|
|
347
|
+
size?: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9;
|
|
348
|
+
asChild?: boolean;
|
|
349
|
+
children: ReactNode;
|
|
350
|
+
}
|
|
351
|
+
function Heading({ size, className, children, asChild, ...props }: HeadingProps): import("react").JSX.Element;
|
|
352
|
+
export { Heading };
|
|
353
|
+
export type { HeadingProps };
|
|
354
|
+
}
|
|
355
|
+
|
|
356
|
+
declare module '@umami/react-zen/Icon' {
|
|
357
|
+
import { CSSProperties, HTMLAttributes, ReactNode } from 'react';
|
|
358
|
+
export interface IconProps {
|
|
359
|
+
size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
360
|
+
variant?: 'input';
|
|
361
|
+
rotate?: number;
|
|
362
|
+
style?: CSSProperties;
|
|
363
|
+
className?: string;
|
|
364
|
+
children: ReactNode;
|
|
365
|
+
}
|
|
366
|
+
export function Icon({ size, variant, rotate, style, className, children, ...props }: IconProps & HTMLAttributes<HTMLElement>): import("react").JSX.Element;
|
|
367
|
+
}
|
|
368
|
+
|
|
369
|
+
declare module '@umami/react-zen/Icons' {
|
|
370
|
+
export const Icons: {
|
|
371
|
+
Alert: import("react-icons/lib").IconType;
|
|
372
|
+
Arrow: import("react-icons/lib").IconType;
|
|
373
|
+
Check: import("react-icons/lib").IconType;
|
|
374
|
+
Chevron: import("react-icons/lib").IconType;
|
|
375
|
+
Close: import("react-icons/lib").IconType;
|
|
376
|
+
Copy: import("react-icons/lib").IconType;
|
|
377
|
+
Edit: import("react-icons/lib").IconType;
|
|
378
|
+
ExternalLink: import("react-icons/lib").IconType;
|
|
379
|
+
Eye: import("react-icons/lib").IconType;
|
|
380
|
+
EyeSlash: import("react-icons/lib").IconType;
|
|
381
|
+
Info: import("react-icons/lib").IconType;
|
|
382
|
+
Logout: import("react-icons/lib").IconType;
|
|
383
|
+
MagnifyingGlass: import("react-icons/lib").IconType;
|
|
384
|
+
Menu: import("react-icons/lib").IconType;
|
|
385
|
+
Minus: import("react-icons/lib").IconType;
|
|
386
|
+
More: import("react-icons/lib").IconType;
|
|
387
|
+
Plus: import("react-icons/lib").IconType;
|
|
388
|
+
Refresh: import("react-icons/lib").IconType;
|
|
389
|
+
Trash: import("react-icons/lib").IconType;
|
|
390
|
+
};
|
|
391
|
+
}
|
|
392
|
+
|
|
393
|
+
declare module '@umami/react-zen/InlineEditField' {
|
|
394
|
+
import { ReactNode } from 'react';
|
|
395
|
+
interface InlineEditFieldProps {
|
|
396
|
+
value: string;
|
|
397
|
+
defaultEdit?: boolean;
|
|
398
|
+
onChange?: (value: string) => void;
|
|
399
|
+
onCommit?: (value: string) => void;
|
|
400
|
+
onCancel?: () => void;
|
|
401
|
+
className?: string;
|
|
402
|
+
children?: ReactNode;
|
|
403
|
+
}
|
|
404
|
+
function InlineEditField({ value: defaultValue, defaultEdit, className, children, onChange, onCommit, onCancel, ...props }: InlineEditFieldProps): import("react").JSX.Element;
|
|
405
|
+
export { InlineEditField };
|
|
406
|
+
export type { InlineEditFieldProps };
|
|
407
|
+
}
|
|
408
|
+
|
|
409
|
+
declare module '@umami/react-zen/Label' {
|
|
410
|
+
import { LabelProps as AriaLabelProps } from 'react-aria-components';
|
|
411
|
+
interface LabelProps extends AriaLabelProps {
|
|
412
|
+
asChild?: boolean;
|
|
413
|
+
}
|
|
414
|
+
function Label({ asChild, className, ...props }: LabelProps): import("react").JSX.Element;
|
|
415
|
+
export { Label };
|
|
416
|
+
export type { LabelProps };
|
|
417
|
+
}
|
|
418
|
+
|
|
419
|
+
declare module '@umami/react-zen/List' {
|
|
420
|
+
import { ReactNode } from 'react';
|
|
421
|
+
import { ListBoxProps } from 'react-aria-components';
|
|
422
|
+
interface ListProps extends ListBoxProps<any> {
|
|
423
|
+
items?: any[];
|
|
424
|
+
className?: string;
|
|
425
|
+
children?: ReactNode;
|
|
426
|
+
}
|
|
427
|
+
function List({ items, className, children, ...props }: ListProps): import("react").JSX.Element;
|
|
428
|
+
export { List };
|
|
429
|
+
export type { ListProps };
|
|
430
|
+
}
|
|
431
|
+
|
|
432
|
+
declare module '@umami/react-zen/ListItem' {
|
|
433
|
+
import { ListBoxItemProps } from 'react-aria-components';
|
|
434
|
+
function ListItem({ children, className, ...props }: ListBoxItemProps<any>): import("react").JSX.Element;
|
|
435
|
+
export { ListItem };
|
|
436
|
+
export type { ListBoxItemProps as ListItemProps };
|
|
437
|
+
}
|
|
438
|
+
|
|
439
|
+
declare module '@umami/react-zen/Loading' {
|
|
440
|
+
export interface LoadingProps {
|
|
441
|
+
size?: 'sm' | 'md' | 'lg' | 'xl';
|
|
442
|
+
icon?: 'dots' | 'spinner';
|
|
443
|
+
position?: 'page' | 'center' | 'inline';
|
|
444
|
+
className?: string;
|
|
445
|
+
}
|
|
446
|
+
export function Loading(props: LoadingProps): import("react").JSX.Element;
|
|
447
|
+
}
|
|
448
|
+
|
|
449
|
+
declare module '@umami/react-zen/LoadingButton' {
|
|
450
|
+
import { ButtonProps } from '@umami/react-zen/Button';
|
|
451
|
+
interface LoadingButtonProps extends ButtonProps {
|
|
452
|
+
disabled?: boolean;
|
|
453
|
+
isLoading?: boolean;
|
|
454
|
+
}
|
|
455
|
+
function LoadingButton({ isLoading, children, ...props }: LoadingButtonProps): import("react").JSX.Element;
|
|
456
|
+
export { LoadingButton };
|
|
457
|
+
export type { LoadingButtonProps };
|
|
458
|
+
}
|
|
459
|
+
|
|
460
|
+
declare module '@umami/react-zen/Menu' {
|
|
461
|
+
import { ReactNode } from 'react';
|
|
462
|
+
import { MenuProps as AriaMenuProps } from 'react-aria-components';
|
|
463
|
+
interface MenuProps extends AriaMenuProps<any> {
|
|
464
|
+
items?: any[];
|
|
465
|
+
className?: string;
|
|
466
|
+
children?: ReactNode;
|
|
467
|
+
}
|
|
468
|
+
function Menu({ items, className, children, ...props }: MenuProps): import("react").JSX.Element;
|
|
469
|
+
export { Menu };
|
|
470
|
+
export type { MenuProps };
|
|
471
|
+
}
|
|
472
|
+
|
|
473
|
+
declare module '@umami/react-zen/MenuItem' {
|
|
474
|
+
import { MenuItemProps } from 'react-aria-components';
|
|
475
|
+
function MenuItem({ children, className, ...props }: MenuItemProps<any>): import("react").JSX.Element;
|
|
476
|
+
export { MenuItem };
|
|
477
|
+
export type { MenuItemProps };
|
|
478
|
+
export default MenuItem;
|
|
479
|
+
}
|
|
480
|
+
|
|
481
|
+
declare module '@umami/react-zen/Modal' {
|
|
482
|
+
import { ReactNode } from 'react';
|
|
483
|
+
import { ModalRenderProps } from 'react-aria-components';
|
|
484
|
+
interface ModalProps {
|
|
485
|
+
className?: string;
|
|
486
|
+
children?: ReactNode | ((values: ModalRenderProps & {
|
|
487
|
+
defaultChildren: ReactNode;
|
|
488
|
+
}) => ReactNode);
|
|
489
|
+
}
|
|
490
|
+
function Modal({ children, className, ...props }: ModalProps): import("react").JSX.Element;
|
|
491
|
+
export { Modal };
|
|
492
|
+
export type { ModalProps };
|
|
493
|
+
}
|
|
494
|
+
|
|
495
|
+
declare module '@umami/react-zen/PasswordField' {
|
|
496
|
+
import { TextFieldProps } from 'react-aria-components';
|
|
497
|
+
interface PasswordFieldProps extends TextFieldProps {
|
|
498
|
+
label?: string;
|
|
499
|
+
}
|
|
500
|
+
function PasswordField({ label, className, ...props }: PasswordFieldProps): import("react").JSX.Element;
|
|
501
|
+
export { PasswordField };
|
|
502
|
+
}
|
|
503
|
+
|
|
504
|
+
declare module '@umami/react-zen/Page' {
|
|
505
|
+
import { ReactNode } from 'react';
|
|
506
|
+
interface PageProps {
|
|
507
|
+
className?: string;
|
|
508
|
+
children?: ReactNode;
|
|
509
|
+
}
|
|
510
|
+
function Page({ className, children, ...props }: PageProps): import("react").JSX.Element;
|
|
511
|
+
export { Page };
|
|
512
|
+
export type { PageProps };
|
|
513
|
+
}
|
|
514
|
+
|
|
515
|
+
declare module '@umami/react-zen/Popover' {
|
|
516
|
+
import { PopoverProps } from 'react-aria-components';
|
|
517
|
+
function Popover({ children, className, ...props }: PopoverProps): import("react").JSX.Element;
|
|
518
|
+
export { Popover };
|
|
519
|
+
export type { PopoverProps };
|
|
520
|
+
}
|
|
521
|
+
|
|
522
|
+
declare module '@umami/react-zen/ProgressBar' {
|
|
523
|
+
import { ProgressBarProps as AriaProgressBarProps } from 'react-aria-components';
|
|
524
|
+
interface ProgressBarProps extends AriaProgressBarProps {
|
|
525
|
+
showValue?: boolean;
|
|
526
|
+
}
|
|
527
|
+
function ProgressBar({ className, showValue, ...props }: ProgressBarProps): import("react").JSX.Element;
|
|
528
|
+
export { ProgressBar };
|
|
529
|
+
}
|
|
530
|
+
|
|
531
|
+
declare module '@umami/react-zen/ProgressCircle' {
|
|
532
|
+
import { ProgressBarProps } from 'react-aria-components';
|
|
533
|
+
interface ProgressCircleProps extends ProgressBarProps {
|
|
534
|
+
showValue?: boolean;
|
|
535
|
+
}
|
|
536
|
+
function ProgressCircle({ className, showValue, ...props }: ProgressCircleProps): import("react").JSX.Element;
|
|
537
|
+
export { ProgressCircle };
|
|
538
|
+
}
|
|
539
|
+
|
|
540
|
+
declare module '@umami/react-zen/RadioGroup' {
|
|
541
|
+
import { RadioGroupProps, RadioProps } from 'react-aria-components';
|
|
542
|
+
function RadioGroup({ children, className, ...props }: RadioGroupProps): import("react").JSX.Element;
|
|
543
|
+
function Radio({ children, className, ...props }: RadioProps): import("react").JSX.Element;
|
|
544
|
+
export { RadioGroup, Radio };
|
|
545
|
+
export type { RadioProps, RadioGroupProps };
|
|
546
|
+
}
|
|
547
|
+
|
|
548
|
+
declare module '@umami/react-zen/Row' {
|
|
549
|
+
import { FlexboxProps } from '@umami/react-zen/Flexbox';
|
|
550
|
+
interface RowProps extends FlexboxProps {
|
|
551
|
+
reverse?: boolean;
|
|
552
|
+
}
|
|
553
|
+
function Row({ reverse, children, ...props }: RowProps): import("react").JSX.Element;
|
|
554
|
+
export { Row };
|
|
555
|
+
export type { RowProps };
|
|
556
|
+
}
|
|
557
|
+
|
|
558
|
+
declare module '@umami/react-zen/SearchField' {
|
|
559
|
+
import { SearchFieldProps as AriaSearchFieldProps } from 'react-aria-components';
|
|
560
|
+
interface SearchFieldProps extends AriaSearchFieldProps {
|
|
561
|
+
label?: string;
|
|
562
|
+
value?: string;
|
|
563
|
+
delay?: number;
|
|
564
|
+
onSearch?: (value: string) => void;
|
|
565
|
+
}
|
|
566
|
+
function SearchField({ label, value, delay, onSearch, className, ...props }: SearchFieldProps): import("react").JSX.Element;
|
|
567
|
+
export { SearchField };
|
|
568
|
+
export type { SearchFieldProps };
|
|
569
|
+
}
|
|
570
|
+
|
|
571
|
+
declare module '@umami/react-zen/Select' {
|
|
572
|
+
import { SelectProps as AriaSelectProps } from 'react-aria-components';
|
|
573
|
+
interface SelectProps extends AriaSelectProps<HTMLSelectElement> {
|
|
574
|
+
items: any[];
|
|
575
|
+
value?: string;
|
|
576
|
+
label?: string;
|
|
577
|
+
onChange?: (e: any) => void;
|
|
578
|
+
}
|
|
579
|
+
function Select({ children, items, value, label, className, onSelectionChange, onChange, ...props }: SelectProps): import("react").JSX.Element;
|
|
580
|
+
export { Select };
|
|
581
|
+
export type { SelectProps };
|
|
582
|
+
}
|
|
583
|
+
|
|
584
|
+
declare module '@umami/react-zen/Slider' {
|
|
585
|
+
import { ReactNode } from 'react';
|
|
586
|
+
import { SliderProps as AriaSliderProps } from 'react-aria-components';
|
|
587
|
+
interface SliderProps extends AriaSliderProps {
|
|
588
|
+
label?: ReactNode;
|
|
589
|
+
showValue?: boolean;
|
|
590
|
+
}
|
|
591
|
+
function Slider({ className, showValue, label, ...props }: SliderProps): import("react").JSX.Element;
|
|
592
|
+
export { Slider };
|
|
593
|
+
export type { SliderProps };
|
|
594
|
+
}
|
|
595
|
+
|
|
596
|
+
declare module '@umami/react-zen/Spinner' {
|
|
597
|
+
export interface SpinnerProps {
|
|
598
|
+
size?: 'sm' | 'md' | 'lg' | 'xl';
|
|
599
|
+
quiet?: boolean;
|
|
600
|
+
className?: string;
|
|
601
|
+
}
|
|
602
|
+
export function Spinner(props: SpinnerProps): import("react").JSX.Element;
|
|
603
|
+
}
|
|
604
|
+
|
|
605
|
+
declare module '@umami/react-zen/StatusLight' {
|
|
606
|
+
import { ReactNode } from 'react';
|
|
607
|
+
interface StatusLightProps {
|
|
608
|
+
color?: string;
|
|
609
|
+
variant?: 'success' | 'warning' | 'error' | 'active' | 'inactive' | 'none';
|
|
610
|
+
className?: string;
|
|
611
|
+
children?: ReactNode;
|
|
612
|
+
}
|
|
613
|
+
function StatusLight(props: StatusLightProps): import("react").JSX.Element;
|
|
614
|
+
export { StatusLight };
|
|
615
|
+
export type { StatusLightProps };
|
|
616
|
+
}
|
|
617
|
+
|
|
618
|
+
declare module '@umami/react-zen/Switch' {
|
|
619
|
+
import { SwitchProps } from 'react-aria-components';
|
|
620
|
+
function Switch({ children, className, ...props }: SwitchProps): import("react").JSX.Element;
|
|
621
|
+
export { Switch };
|
|
622
|
+
export type { SwitchProps };
|
|
623
|
+
}
|
|
624
|
+
|
|
625
|
+
declare module '@umami/react-zen/Table' {
|
|
626
|
+
import { CellProps, ColumnProps, RowProps, TableProps, TableBodyProps, TableHeaderProps } from 'react-aria-components';
|
|
627
|
+
interface TableColumnProps extends ColumnProps {
|
|
628
|
+
alignment?: 'start' | 'center' | 'end';
|
|
629
|
+
}
|
|
630
|
+
interface TableCellProps extends CellProps {
|
|
631
|
+
alignment?: 'start' | 'center' | 'end';
|
|
632
|
+
}
|
|
633
|
+
function Table({ children, className, ...props }: TableProps): import("react").JSX.Element;
|
|
634
|
+
function TableHeader({ children, className, ...props }: TableHeaderProps<any>): import("react").JSX.Element;
|
|
635
|
+
function TableBody({ children, className, ...props }: TableBodyProps<any>): import("react").JSX.Element;
|
|
636
|
+
function TableRow({ children, className, ...props }: RowProps<any>): import("react").JSX.Element;
|
|
637
|
+
function TableColumn({ children, className, alignment, ...props }: TableColumnProps): import("react").JSX.Element;
|
|
638
|
+
function TableCell({ children, className, alignment, ...props }: TableCellProps): import("react").JSX.Element;
|
|
639
|
+
export { Table, TableHeader, TableBody, TableRow, TableColumn, TableCell };
|
|
640
|
+
}
|
|
641
|
+
|
|
642
|
+
declare module '@umami/react-zen/Tabs' {
|
|
643
|
+
import { TabProps, TabsProps, TabPanelProps, TabListProps } from 'react-aria-components';
|
|
644
|
+
function Tabs({ children, ...props }: TabsProps): import("react").JSX.Element;
|
|
645
|
+
function TabList({ children, ...props }: TabListProps<any>): import("react").JSX.Element;
|
|
646
|
+
function Tab({ children, ...props }: TabProps): import("react").JSX.Element;
|
|
647
|
+
function TabPanel({ children, ...props }: TabPanelProps): import("react").JSX.Element;
|
|
648
|
+
export { Tabs, TabList, Tab, TabPanel };
|
|
649
|
+
export type { TabsProps, TabListProps, TabProps, TabPanelProps };
|
|
650
|
+
}
|
|
651
|
+
|
|
652
|
+
declare module '@umami/react-zen/Text' {
|
|
653
|
+
import { ReactNode } from 'react';
|
|
654
|
+
interface TextProps {
|
|
655
|
+
size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
656
|
+
spacing?: 'tighter' | 'tight' | 'wide' | 'wider';
|
|
657
|
+
type?: 'muted' | 'faded';
|
|
658
|
+
weight?: 'lighter' | 'light' | 'bold' | 'bolder';
|
|
659
|
+
asChild?: boolean;
|
|
660
|
+
className?: string;
|
|
661
|
+
children?: ReactNode;
|
|
662
|
+
}
|
|
663
|
+
function Text({ children, type, size, spacing, weight, asChild, className, ...props }: TextProps): import("react").JSX.Element;
|
|
664
|
+
export { Text };
|
|
665
|
+
export type { TextProps };
|
|
666
|
+
}
|
|
667
|
+
|
|
668
|
+
declare module '@umami/react-zen/TextOverflow' {
|
|
669
|
+
import { HTMLAttributes } from 'react';
|
|
670
|
+
interface TextOverflowProps extends HTMLAttributes<HTMLDivElement> {
|
|
671
|
+
asChild?: boolean;
|
|
672
|
+
}
|
|
673
|
+
function TextOverflow({ asChild, children, className, ...props }: TextOverflowProps): import("react").JSX.Element;
|
|
674
|
+
export { TextOverflow };
|
|
675
|
+
export type { TextOverflowProps };
|
|
676
|
+
}
|
|
677
|
+
|
|
678
|
+
declare module '@umami/react-zen/TextField' {
|
|
679
|
+
import { TextFieldProps as AriaTextFieldProps } from 'react-aria-components';
|
|
680
|
+
interface TextFieldProps extends AriaTextFieldProps {
|
|
681
|
+
label?: string;
|
|
682
|
+
placeholder?: string;
|
|
683
|
+
asTextArea?: boolean;
|
|
684
|
+
allowCopy?: boolean;
|
|
685
|
+
onChange?: (e: any) => void;
|
|
686
|
+
}
|
|
687
|
+
const TextField: import("react").ForwardRefExoticComponent<TextFieldProps & import("react").RefAttributes<HTMLInputElement>>;
|
|
688
|
+
export { TextField };
|
|
689
|
+
export type { TextFieldProps };
|
|
690
|
+
}
|
|
691
|
+
|
|
692
|
+
declare module '@umami/react-zen/TextArea' {
|
|
693
|
+
import { TextFieldProps } from '@umami/react-zen/TextField';
|
|
694
|
+
interface TextAreaProps extends TextFieldProps {
|
|
695
|
+
resize?: 'none' | 'vertical' | 'horizontal';
|
|
696
|
+
}
|
|
697
|
+
function TextArea({ resize, className, ...props }: TextAreaProps): import("react").JSX.Element;
|
|
698
|
+
export { TextArea };
|
|
699
|
+
export type { TextAreaProps };
|
|
700
|
+
}
|
|
701
|
+
|
|
702
|
+
declare module '@umami/react-zen/Toast' {
|
|
703
|
+
import { ToastProvider, ToastProviderProps, ToastProps, ToastViewportProps } from '@radix-ui/react-toast';
|
|
704
|
+
interface _ToastProps extends ToastProps {
|
|
705
|
+
title?: string;
|
|
706
|
+
description?: string;
|
|
707
|
+
actionText?: string;
|
|
708
|
+
allowClose?: boolean;
|
|
709
|
+
variant?: 'info' | 'error';
|
|
710
|
+
}
|
|
711
|
+
function Toast({ title, description, actionText, allowClose, variant, className, children, ...props }: _ToastProps): import("react").JSX.Element;
|
|
712
|
+
function Toaster(props: ToastViewportProps): import("react").JSX.Element;
|
|
713
|
+
export { Toast, ToastProvider, Toaster };
|
|
714
|
+
export type { _ToastProps as ToastProps, ToastProviderProps, ToastViewportProps as ToasterProps };
|
|
715
|
+
}
|
|
716
|
+
|
|
717
|
+
declare module '@umami/react-zen/Toggle' {
|
|
718
|
+
import { ToggleButtonProps } from 'react-aria-components';
|
|
719
|
+
function Toggle({ children, className, ...props }: ToggleButtonProps): import("react").JSX.Element;
|
|
720
|
+
export { Toggle };
|
|
721
|
+
export type { ToggleButtonProps as ToggleProps };
|
|
722
|
+
}
|
|
723
|
+
|
|
724
|
+
declare module '@umami/react-zen/ToggleGroup' {
|
|
725
|
+
import { ToggleGroupItemProps, ToggleGroupMultipleProps } from '@radix-ui/react-toggle-group';
|
|
726
|
+
function ToggleGroup({ className, children, ...props }: ToggleGroupMultipleProps): import("react").JSX.Element;
|
|
727
|
+
function ToggleGroupItem({ className, children, ...props }: ToggleGroupItemProps): import("react").JSX.Element;
|
|
728
|
+
export { ToggleGroup, ToggleGroupItem };
|
|
729
|
+
}
|
|
730
|
+
|
|
731
|
+
declare module '@umami/react-zen/Tooltip' {
|
|
732
|
+
import { TooltipProps } from 'react-aria-components';
|
|
733
|
+
function Tooltip({ children, className, ...props }: TooltipProps): import("react").JSX.Element;
|
|
734
|
+
export { Tooltip };
|
|
735
|
+
export type { TooltipProps };
|
|
736
|
+
}
|
|
737
|
+
|
|
738
|
+
declare module '@umami/react-zen/ZenProvider' {
|
|
739
|
+
import { ReactNode } from 'react';
|
|
740
|
+
import { ToastProviderProps } from '@umami/react-zen/Toast';
|
|
741
|
+
interface ZenProviderProps {
|
|
742
|
+
config?: {
|
|
743
|
+
toast?: ToastProviderProps;
|
|
744
|
+
};
|
|
745
|
+
children: ReactNode;
|
|
746
|
+
}
|
|
747
|
+
function ZenProvider({ config, children }: ZenProviderProps): import("react").JSX.Element;
|
|
748
|
+
export { ZenProvider };
|
|
749
|
+
export type { ZenProviderProps };
|
|
750
|
+
}
|
|
751
|
+
|