@vacano/ui 1.13.0 → 1.14.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/README.md +7 -7
- package/dist/CircleX-BzaN6v37.cjs +2 -0
- package/dist/CircleX-BzaN6v37.cjs.map +1 -0
- package/dist/CircleX-RQVijA2m.js +75 -0
- package/dist/CircleX-RQVijA2m.js.map +1 -0
- package/dist/{ToggleGroup-DYePk1bM.js → ToggleGroup-C44x4Sx1.js} +403 -390
- package/dist/ToggleGroup-C44x4Sx1.js.map +1 -0
- package/dist/{ToggleGroup-DCWH4ngK.cjs → ToggleGroup-COFNoVg9.cjs} +127 -116
- package/dist/ToggleGroup-COFNoVg9.cjs.map +1 -0
- package/dist/{X-Cm-i8Bh7.js → X-DAuAfjix.js} +4 -4
- package/dist/{X-Cm-i8Bh7.js.map → X-DAuAfjix.js.map} +1 -1
- package/dist/form.cjs +1 -1
- package/dist/form.js +2 -2
- package/dist/icons.cjs +1 -1
- package/dist/icons.cjs.map +1 -1
- package/dist/icons.js +4595 -4661
- package/dist/icons.js.map +1 -1
- package/dist/index.cjs +1239 -185
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +469 -5
- package/dist/index.js +3247 -1104
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/dist/ToggleGroup-DCWH4ngK.cjs.map +0 -1
- package/dist/ToggleGroup-DYePk1bM.js.map +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -12,6 +12,53 @@ import { Ref } from 'react';
|
|
|
12
12
|
import { StringSchema } from 'yup';
|
|
13
13
|
import { TextareaHTMLAttributes } from 'react';
|
|
14
14
|
|
|
15
|
+
export declare const Accordion: ({ className, classnames, defaultValue, items, multiple, onChange, ref, value: controlledValue, variant, ...rest }: AccordionProps) => JSX.Element;
|
|
16
|
+
|
|
17
|
+
export declare type AccordionClassNames = {
|
|
18
|
+
item?: string;
|
|
19
|
+
trigger?: string;
|
|
20
|
+
content?: string;
|
|
21
|
+
icon?: string;
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
export declare type AccordionItem = {
|
|
25
|
+
value: string;
|
|
26
|
+
title: ReactNode;
|
|
27
|
+
content: ReactNode;
|
|
28
|
+
disabled?: boolean;
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
export declare type AccordionProps = VacanoComponentProps<HTMLDivElement, AccordionClassNames> & {
|
|
32
|
+
items: AccordionItem[];
|
|
33
|
+
value?: string[];
|
|
34
|
+
defaultValue?: string[];
|
|
35
|
+
onChange?: (value: string[]) => void;
|
|
36
|
+
multiple?: boolean;
|
|
37
|
+
variant?: AccordionVariant;
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
export declare type AccordionVariant = 'outlined' | 'splitted';
|
|
41
|
+
|
|
42
|
+
export declare const Alert: ({ className, classnames, description, icon, radius, ref, title, variant, ...rest }: AlertProps) => JSX.Element;
|
|
43
|
+
|
|
44
|
+
export declare type AlertClassNames = {
|
|
45
|
+
icon?: string;
|
|
46
|
+
title?: string;
|
|
47
|
+
description?: string;
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
export declare type AlertProps = VacanoComponentProps<HTMLDivElement, AlertClassNames> & Omit<React.HTMLAttributes<HTMLDivElement>, 'title' | 'className'> & {
|
|
51
|
+
icon?: ReactNode;
|
|
52
|
+
title?: ReactNode;
|
|
53
|
+
description?: ReactNode;
|
|
54
|
+
variant?: AlertVariant;
|
|
55
|
+
radius?: AlertRadius;
|
|
56
|
+
};
|
|
57
|
+
|
|
58
|
+
export declare type AlertRadius = 'none' | 'sm' | 'md' | 'lg' | 'full';
|
|
59
|
+
|
|
60
|
+
export declare type AlertVariant = 'normal' | 'success' | 'warning' | 'danger';
|
|
61
|
+
|
|
15
62
|
export declare const alpha: (hexColor: string, percentage: number) => string;
|
|
16
63
|
|
|
17
64
|
export declare const Autocomplete: ({ className, classnames, disabled, fullWidth, label, ref, message, size, variant, value, onChange, onSearch, debounceMs, minChars, noResultsMessage, ...rest }: AutocompleteProps) => JSX.Element;
|
|
@@ -50,6 +97,108 @@ export declare type AutocompleteValue = {
|
|
|
50
97
|
|
|
51
98
|
export declare type AutocompleteVariant = 'normal' | 'error';
|
|
52
99
|
|
|
100
|
+
export declare const Avatar: ({ bordered, className, classnames, color, disabled, icon, name, radius, ref, size, src, ...rest }: AvatarProps) => JSX.Element;
|
|
101
|
+
|
|
102
|
+
export declare type AvatarClassNames = {
|
|
103
|
+
image?: string;
|
|
104
|
+
fallback?: string;
|
|
105
|
+
initials?: string;
|
|
106
|
+
};
|
|
107
|
+
|
|
108
|
+
export declare type AvatarColor = 'default' | 'primary' | 'success' | 'warning' | 'danger';
|
|
109
|
+
|
|
110
|
+
export declare const AvatarGroup: ({ children, className, classnames, max, ref, size, ...rest }: AvatarGroupProps) => JSX.Element;
|
|
111
|
+
|
|
112
|
+
export declare type AvatarGroupClassNames = {
|
|
113
|
+
count?: string;
|
|
114
|
+
};
|
|
115
|
+
|
|
116
|
+
export declare type AvatarGroupProps = VacanoComponentProps<HTMLDivElement, AvatarGroupClassNames> & Omit<HTMLAttributes<HTMLDivElement>, 'className'> & {
|
|
117
|
+
max?: number;
|
|
118
|
+
size?: AvatarSize;
|
|
119
|
+
};
|
|
120
|
+
|
|
121
|
+
export declare type AvatarProps = VacanoComponentProps<HTMLDivElement, AvatarClassNames> & Omit<HTMLAttributes<HTMLDivElement>, 'className'> & {
|
|
122
|
+
bordered?: boolean;
|
|
123
|
+
color?: AvatarColor;
|
|
124
|
+
disabled?: boolean;
|
|
125
|
+
icon?: ReactNode;
|
|
126
|
+
name?: string;
|
|
127
|
+
radius?: AvatarRadius;
|
|
128
|
+
size?: AvatarSize;
|
|
129
|
+
src?: string;
|
|
130
|
+
};
|
|
131
|
+
|
|
132
|
+
export declare type AvatarRadius = 'sm' | 'md' | 'lg' | 'full';
|
|
133
|
+
|
|
134
|
+
export declare type AvatarSize = 'sm' | 'md' | 'lg';
|
|
135
|
+
|
|
136
|
+
export declare const Badge: ({ children, className, classnames, color, content, dot, invisible, placement, ref, shape, showOutline, size, variant, ...rest }: BadgeProps) => JSX.Element;
|
|
137
|
+
|
|
138
|
+
export declare type BadgeClassNames = {
|
|
139
|
+
badge?: string;
|
|
140
|
+
};
|
|
141
|
+
|
|
142
|
+
export declare type BadgeColor = 'default' | 'success' | 'warning' | 'danger';
|
|
143
|
+
|
|
144
|
+
export declare type BadgePlacement = 'top-right' | 'top-left' | 'bottom-right' | 'bottom-left';
|
|
145
|
+
|
|
146
|
+
export declare type BadgeProps = VacanoComponentProps<HTMLDivElement, BadgeClassNames> & Omit<HTMLAttributes<HTMLDivElement>, 'className' | 'content'> & {
|
|
147
|
+
children?: ReactNode;
|
|
148
|
+
color?: BadgeColor;
|
|
149
|
+
content?: ReactNode;
|
|
150
|
+
dot?: boolean;
|
|
151
|
+
invisible?: boolean;
|
|
152
|
+
placement?: BadgePlacement;
|
|
153
|
+
shape?: BadgeShape;
|
|
154
|
+
showOutline?: boolean;
|
|
155
|
+
size?: BadgeSize;
|
|
156
|
+
variant?: BadgeVariant;
|
|
157
|
+
};
|
|
158
|
+
|
|
159
|
+
export declare type BadgeShape = 'circle' | 'rectangle';
|
|
160
|
+
|
|
161
|
+
export declare type BadgeSize = 'sm' | 'md' | 'lg';
|
|
162
|
+
|
|
163
|
+
export declare type BadgeVariant = 'solid' | 'flat' | 'bordered';
|
|
164
|
+
|
|
165
|
+
export declare const BreadcrumbItem: ({ children, ...rest }: BreadcrumbItemProps) => JSX.Element;
|
|
166
|
+
|
|
167
|
+
export declare type BreadcrumbItemClassNames = {
|
|
168
|
+
separator?: string;
|
|
169
|
+
};
|
|
170
|
+
|
|
171
|
+
export declare type BreadcrumbItemProps = VacanoComponentProps<HTMLLIElement, BreadcrumbItemClassNames> & Omit<HTMLAttributes<HTMLLIElement>, 'className'> & {
|
|
172
|
+
current?: boolean;
|
|
173
|
+
disabled?: boolean;
|
|
174
|
+
href?: string;
|
|
175
|
+
separator?: ReactNode;
|
|
176
|
+
startContent?: ReactNode;
|
|
177
|
+
endContent?: ReactNode;
|
|
178
|
+
};
|
|
179
|
+
|
|
180
|
+
export declare const Breadcrumbs: ({ children, className, classnames, disabled, itemsAfterCollapse, itemsBeforeCollapse, maxItems, ref, separator, size, variant, ...rest }: BreadcrumbsProps) => JSX.Element;
|
|
181
|
+
|
|
182
|
+
export declare type BreadcrumbsClassNames = {
|
|
183
|
+
list?: string;
|
|
184
|
+
separator?: string;
|
|
185
|
+
ellipsis?: string;
|
|
186
|
+
};
|
|
187
|
+
|
|
188
|
+
export declare type BreadcrumbsProps = VacanoComponentProps<HTMLElement, BreadcrumbsClassNames> & Omit<HTMLAttributes<HTMLElement>, 'className'> & {
|
|
189
|
+
disabled?: boolean;
|
|
190
|
+
itemsAfterCollapse?: number;
|
|
191
|
+
itemsBeforeCollapse?: number;
|
|
192
|
+
maxItems?: number;
|
|
193
|
+
separator?: ReactNode;
|
|
194
|
+
size?: BreadcrumbsSize;
|
|
195
|
+
variant?: BreadcrumbsVariant;
|
|
196
|
+
};
|
|
197
|
+
|
|
198
|
+
export declare type BreadcrumbsSize = 'sm' | 'md' | 'lg';
|
|
199
|
+
|
|
200
|
+
export declare type BreadcrumbsVariant = 'light' | 'solid' | 'bordered';
|
|
201
|
+
|
|
53
202
|
declare type Breakpoint = keyof typeof BREAKPOINTS;
|
|
54
203
|
|
|
55
204
|
export declare const BREAKPOINTS: {
|
|
@@ -88,13 +237,49 @@ export declare type ButtonVariant = 'normal' | 'system' | 'success' | 'warning'
|
|
|
88
237
|
|
|
89
238
|
export declare type CalendarView = 'days' | 'months' | 'years';
|
|
90
239
|
|
|
91
|
-
export declare const Card: ({ children, className,
|
|
240
|
+
export declare const Card: ({ blurred, border, children, className, disabled, footerBlurred, fullWidth, hoverable, pressable, radius, ref, shadow, ...rest }: CardProps) => JSX.Element;
|
|
241
|
+
|
|
242
|
+
export declare const CardBody: ({ children, className, ref, ...rest }: CardBodyProps) => JSX.Element;
|
|
243
|
+
|
|
244
|
+
export declare type CardBodyProps = VacanoComponentProps<HTMLDivElement> & Omit<HTMLAttributes<HTMLDivElement>, 'className'> & {
|
|
245
|
+
children?: ReactNode;
|
|
246
|
+
};
|
|
247
|
+
|
|
248
|
+
export declare type CardClassNames = {
|
|
249
|
+
header?: string;
|
|
250
|
+
body?: string;
|
|
251
|
+
footer?: string;
|
|
252
|
+
};
|
|
253
|
+
|
|
254
|
+
export declare const CardFooter: ({ blurred, children, className, ref, ...rest }: CardFooterProps) => JSX.Element;
|
|
255
|
+
|
|
256
|
+
export declare type CardFooterProps = VacanoComponentProps<HTMLDivElement> & Omit<HTMLAttributes<HTMLDivElement>, 'className'> & {
|
|
257
|
+
blurred?: boolean;
|
|
258
|
+
children?: ReactNode;
|
|
259
|
+
};
|
|
260
|
+
|
|
261
|
+
export declare const CardHeader: ({ children, className, ref, ...rest }: CardHeaderProps) => JSX.Element;
|
|
92
262
|
|
|
93
|
-
export declare type
|
|
263
|
+
export declare type CardHeaderProps = VacanoComponentProps<HTMLDivElement> & Omit<HTMLAttributes<HTMLDivElement>, 'className'> & {
|
|
264
|
+
children?: ReactNode;
|
|
265
|
+
};
|
|
266
|
+
|
|
267
|
+
export declare type CardProps = VacanoComponentProps<HTMLDivElement, CardClassNames> & Omit<HTMLAttributes<HTMLDivElement>, 'className'> & {
|
|
268
|
+
blurred?: boolean;
|
|
94
269
|
border?: boolean;
|
|
95
|
-
|
|
270
|
+
disabled?: boolean;
|
|
271
|
+
footerBlurred?: boolean;
|
|
272
|
+
fullWidth?: boolean;
|
|
273
|
+
hoverable?: boolean;
|
|
274
|
+
pressable?: boolean;
|
|
275
|
+
radius?: CardRadius;
|
|
276
|
+
shadow?: CardShadow | boolean;
|
|
96
277
|
};
|
|
97
278
|
|
|
279
|
+
export declare type CardRadius = 'none' | 'sm' | 'md' | 'lg';
|
|
280
|
+
|
|
281
|
+
export declare type CardShadow = 'none' | 'sm' | 'md' | 'lg';
|
|
282
|
+
|
|
98
283
|
export declare const Checkbox: ({ checked, className, classnames, disabled, indeterminate, label, onChange, ref, variant, ...rest }: CheckboxProps) => JSX.Element;
|
|
99
284
|
|
|
100
285
|
export declare const CheckboxCard: ({ checked, className, classnames, description, disabled, fullWidth, label, onChange, ref, variant, ...rest }: CheckboxCardProps) => JSX.Element;
|
|
@@ -156,15 +341,17 @@ export declare type CheckboxProps = VacanoComponentProps<HTMLInputElement, Check
|
|
|
156
341
|
|
|
157
342
|
export declare type CheckboxVariant = 'normal' | 'error';
|
|
158
343
|
|
|
159
|
-
export declare const Chip: ({ children, className, classnames, deletable, onDelete, ref, variant, ...rest }: ChipProps) => JSX.Element;
|
|
344
|
+
export declare const Chip: ({ children, className, classnames, deletable, icon, onDelete, ref, variant, ...rest }: ChipProps) => JSX.Element;
|
|
160
345
|
|
|
161
346
|
export declare type ChipClassNames = {
|
|
347
|
+
icon?: string;
|
|
162
348
|
delete?: string;
|
|
163
349
|
label?: string;
|
|
164
350
|
};
|
|
165
351
|
|
|
166
352
|
export declare type ChipProps = VacanoComponentProps<HTMLSpanElement, ChipClassNames> & Omit<HTMLAttributes<HTMLSpanElement>, 'className'> & {
|
|
167
353
|
children: ReactNode;
|
|
354
|
+
icon?: ReactNode;
|
|
168
355
|
variant?: ChipVariant;
|
|
169
356
|
deletable?: boolean;
|
|
170
357
|
onDelete?: () => void;
|
|
@@ -267,6 +454,21 @@ export declare type DatePickerProps = VacanoComponentProps<HTMLDivElement, DateP
|
|
|
267
454
|
|
|
268
455
|
export declare type DatePickerVariant = 'normal' | 'error';
|
|
269
456
|
|
|
457
|
+
export declare const DateRange: ({ className, classnames, from, presentLabel, ref, to, ...rest }: DateRangeProps) => JSX.Element;
|
|
458
|
+
|
|
459
|
+
export declare type DateRangeClassNames = {
|
|
460
|
+
hash?: string;
|
|
461
|
+
from?: string;
|
|
462
|
+
separator?: string;
|
|
463
|
+
to?: string;
|
|
464
|
+
};
|
|
465
|
+
|
|
466
|
+
export declare type DateRangeProps = VacanoComponentProps<HTMLSpanElement, DateRangeClassNames> & Omit<HTMLAttributes<HTMLSpanElement>, 'className'> & {
|
|
467
|
+
from: Date;
|
|
468
|
+
to?: Date;
|
|
469
|
+
presentLabel?: string;
|
|
470
|
+
};
|
|
471
|
+
|
|
270
472
|
export declare const Divider: ({ children, className, classnames, ref, spacing, ...rest }: DividerProps) => JSX.Element;
|
|
271
473
|
|
|
272
474
|
export declare type DividerClassNames = {
|
|
@@ -315,6 +517,22 @@ export declare type DropdownProps = VacanoComponentProps<HTMLDivElement, Dropdow
|
|
|
315
517
|
|
|
316
518
|
declare const email: (options?: string) => StringSchema<string | undefined, AnyObject, undefined, "">;
|
|
317
519
|
|
|
520
|
+
export declare const EmptyState: ({ actions, className, classnames, description, icon, ref, title, ...rest }: EmptyStateProps) => JSX.Element;
|
|
521
|
+
|
|
522
|
+
export declare type EmptyStateClassNames = {
|
|
523
|
+
icon?: string;
|
|
524
|
+
title?: string;
|
|
525
|
+
description?: string;
|
|
526
|
+
actions?: string;
|
|
527
|
+
};
|
|
528
|
+
|
|
529
|
+
export declare type EmptyStateProps = VacanoComponentProps<HTMLDivElement, EmptyStateClassNames> & {
|
|
530
|
+
icon?: ReactNode;
|
|
531
|
+
title: ReactNode;
|
|
532
|
+
description?: ReactNode;
|
|
533
|
+
actions?: ReactNode;
|
|
534
|
+
};
|
|
535
|
+
|
|
318
536
|
export declare const FieldLabel: ({ children, className, ref, required, variant, ...rest }: FieldLabelProps) => JSX.Element | null;
|
|
319
537
|
|
|
320
538
|
export declare type FieldLabelProps = VacanoComponentProps<HTMLSpanElement> & {
|
|
@@ -340,6 +558,61 @@ export declare type FieldRowProps = VacanoComponentProps<HTMLDivElement> & Omit<
|
|
|
340
558
|
gap?: number | string;
|
|
341
559
|
};
|
|
342
560
|
|
|
561
|
+
export declare const FileUpload: ({ accept, children, className, classnames, description, disabled, hint, icon, maxSize, multiple, onChange, onReject, ref, ...rest }: FileUploadProps) => JSX.Element;
|
|
562
|
+
|
|
563
|
+
export declare type FileUploadClassNames = {
|
|
564
|
+
dropzone?: string;
|
|
565
|
+
icon?: string;
|
|
566
|
+
text?: string;
|
|
567
|
+
hint?: string;
|
|
568
|
+
list?: string;
|
|
569
|
+
};
|
|
570
|
+
|
|
571
|
+
export declare type FileUploadFile = {
|
|
572
|
+
id: string;
|
|
573
|
+
name: string;
|
|
574
|
+
size: number;
|
|
575
|
+
progress?: number;
|
|
576
|
+
status: FileUploadItemStatus;
|
|
577
|
+
file?: File;
|
|
578
|
+
};
|
|
579
|
+
|
|
580
|
+
export declare const FileUploadItem: ({ name, size, status, progress, icon, onRemove, onRetry, className, classnames, ref, }: FileUploadItemProps) => JSX.Element;
|
|
581
|
+
|
|
582
|
+
export declare type FileUploadItemClassNames = {
|
|
583
|
+
icon?: string;
|
|
584
|
+
info?: string;
|
|
585
|
+
name?: string;
|
|
586
|
+
size?: string;
|
|
587
|
+
progress?: string;
|
|
588
|
+
action?: string;
|
|
589
|
+
};
|
|
590
|
+
|
|
591
|
+
export declare type FileUploadItemProps = VacanoComponentProps<HTMLDivElement, FileUploadItemClassNames> & {
|
|
592
|
+
name: string;
|
|
593
|
+
size: number;
|
|
594
|
+
status?: FileUploadItemStatus;
|
|
595
|
+
progress?: number;
|
|
596
|
+
icon?: ReactNode;
|
|
597
|
+
onRemove?: () => void;
|
|
598
|
+
onRetry?: () => void;
|
|
599
|
+
};
|
|
600
|
+
|
|
601
|
+
export declare type FileUploadItemStatus = 'uploading' | 'complete' | 'failed';
|
|
602
|
+
|
|
603
|
+
export declare type FileUploadProps = VacanoComponentProps<HTMLDivElement, FileUploadClassNames> & Omit<HTMLAttributes<HTMLDivElement>, 'className' | 'onChange'> & {
|
|
604
|
+
accept?: string;
|
|
605
|
+
children?: ReactNode;
|
|
606
|
+
description?: ReactNode;
|
|
607
|
+
disabled?: boolean;
|
|
608
|
+
hint?: ReactNode;
|
|
609
|
+
icon?: ReactNode;
|
|
610
|
+
maxSize?: number;
|
|
611
|
+
multiple?: boolean;
|
|
612
|
+
onChange?: (files: File[]) => void;
|
|
613
|
+
onReject?: (files: File[], reason: 'type' | 'size') => void;
|
|
614
|
+
};
|
|
615
|
+
|
|
343
616
|
/**
|
|
344
617
|
* Go-style date formatting
|
|
345
618
|
* Reference time: Mon Jan 2 15:04:05 MST 2006
|
|
@@ -366,6 +639,8 @@ export declare type FieldRowProps = VacanoComponentProps<HTMLDivElement> & Omit<
|
|
|
366
639
|
*/
|
|
367
640
|
export declare const formatDateGo: (date: Date, format: string, locale?: string) => string;
|
|
368
641
|
|
|
642
|
+
export declare const formatFileSize: (bytes: number) => string;
|
|
643
|
+
|
|
369
644
|
export declare const getBrowser: () => Browser;
|
|
370
645
|
|
|
371
646
|
export declare const getKeySymbols: (keys?: KeyboardEventKey[]) => string[];
|
|
@@ -374,6 +649,28 @@ export declare const getOperatingSystem: () => OperatingSystem;
|
|
|
374
649
|
|
|
375
650
|
export declare const GlobalStyle: () => JSX.Element;
|
|
376
651
|
|
|
652
|
+
export declare const Hashtag: ({ children, className, classnames, href, onClick, ref, ...rest }: HashtagProps) => JSX.Element;
|
|
653
|
+
|
|
654
|
+
export declare type HashtagClassNames = {
|
|
655
|
+
hash?: string;
|
|
656
|
+
label?: string;
|
|
657
|
+
};
|
|
658
|
+
|
|
659
|
+
export declare type HashtagProps = VacanoComponentProps<HTMLSpanElement, HashtagClassNames> & Omit<HTMLAttributes<HTMLSpanElement>, 'className'> & {
|
|
660
|
+
children: ReactNode;
|
|
661
|
+
href?: string;
|
|
662
|
+
};
|
|
663
|
+
|
|
664
|
+
export declare const Heading: ({ as, children, className, level, ref, ...rest }: HeadingProps) => JSX.Element;
|
|
665
|
+
|
|
666
|
+
export declare type HeadingLevel = 1 | 2 | 3 | 4 | 5 | 6;
|
|
667
|
+
|
|
668
|
+
export declare type HeadingProps = VacanoComponentProps<HTMLHeadingElement> & Omit<HTMLAttributes<HTMLHeadingElement>, 'className'> & {
|
|
669
|
+
children: ReactNode;
|
|
670
|
+
level?: HeadingLevel;
|
|
671
|
+
as?: HeadingLevel;
|
|
672
|
+
};
|
|
673
|
+
|
|
377
674
|
declare const hexColor: (message?: string) => StringSchema<string | undefined, AnyObject, undefined, "">;
|
|
378
675
|
|
|
379
676
|
export declare const ImageCropper: ({ allowedTypes, applyLabel, buttonLabel, cancelLabel, className, classnames, compression, maxFileSize, onCrop, onError, outputSize, portalSize, previewSize, ref, type, value, ...rest }: ImageCropperProps) => JSX.Element;
|
|
@@ -570,6 +867,20 @@ export declare const mediaDown: (bp: Breakpoint) => string;
|
|
|
570
867
|
|
|
571
868
|
export declare const mediaUp: (bp: Breakpoint) => string;
|
|
572
869
|
|
|
870
|
+
export declare const MenuButton: ({ className, classnames, defaultOpen, disabled, onOpenChange, open: controlledOpen, ref, size, ...rest }: MenuButtonProps) => JSX.Element;
|
|
871
|
+
|
|
872
|
+
export declare type MenuButtonClassNames = {
|
|
873
|
+
line?: string;
|
|
874
|
+
};
|
|
875
|
+
|
|
876
|
+
export declare type MenuButtonProps = VacanoComponentProps<HTMLButtonElement, MenuButtonClassNames> & Omit<React.HTMLAttributes<HTMLButtonElement>, 'children' | 'className'> & {
|
|
877
|
+
open?: boolean;
|
|
878
|
+
defaultOpen?: boolean;
|
|
879
|
+
onOpenChange?: (open: boolean) => void;
|
|
880
|
+
size?: VacanoComponentSize;
|
|
881
|
+
disabled?: boolean;
|
|
882
|
+
};
|
|
883
|
+
|
|
573
884
|
declare const minAge: (years: number, message?: string) => DateSchema<Date | undefined, AnyObject, undefined, "">;
|
|
574
885
|
|
|
575
886
|
export declare const Modal: ({ animated, children, className, classnames, open, ref, width, ...rest }: ModalProps) => ReactPortal | null;
|
|
@@ -703,9 +1014,46 @@ export declare type OtpCodeProps = VacanoComponentProps<HTMLDivElement, OtpCodeC
|
|
|
703
1014
|
|
|
704
1015
|
export declare type OtpCodeVariant = 'normal' | 'error';
|
|
705
1016
|
|
|
706
|
-
export declare const
|
|
1017
|
+
export declare const Overline: ({ children, className, classnames, description, ref, ...rest }: OverlineProps) => JSX.Element;
|
|
1018
|
+
|
|
1019
|
+
export declare type OverlineClassNames = {
|
|
1020
|
+
label?: string;
|
|
1021
|
+
description?: string;
|
|
1022
|
+
};
|
|
1023
|
+
|
|
1024
|
+
export declare type OverlineProps = VacanoComponentProps<HTMLDivElement, OverlineClassNames> & Omit<HTMLAttributes<HTMLDivElement>, 'className'> & {
|
|
1025
|
+
children: ReactNode;
|
|
1026
|
+
description?: ReactNode;
|
|
1027
|
+
};
|
|
1028
|
+
|
|
1029
|
+
export declare const Pagination: ({ boundaries, className, classnames, disabled, initialPage, loop, onChange, page: controlledPage, ref, showControls, siblings, total, variant, ...rest }: PaginationProps) => JSX.Element;
|
|
1030
|
+
|
|
1031
|
+
export declare type PaginationClassNames = {
|
|
1032
|
+
item?: string;
|
|
1033
|
+
cursor?: string;
|
|
1034
|
+
controls?: string;
|
|
1035
|
+
ellipsis?: string;
|
|
1036
|
+
};
|
|
1037
|
+
|
|
1038
|
+
export declare type PaginationProps = VacanoComponentProps<HTMLElement, PaginationClassNames> & Omit<HTMLAttributes<HTMLElement>, 'className' | 'onChange'> & {
|
|
1039
|
+
boundaries?: number;
|
|
1040
|
+
disabled?: boolean;
|
|
1041
|
+
initialPage?: number;
|
|
1042
|
+
loop?: boolean;
|
|
1043
|
+
onChange?: (page: number) => void;
|
|
1044
|
+
page?: number;
|
|
1045
|
+
showControls?: boolean;
|
|
1046
|
+
siblings?: number;
|
|
1047
|
+
total: number;
|
|
1048
|
+
variant?: PaginationVariant;
|
|
1049
|
+
};
|
|
1050
|
+
|
|
1051
|
+
export declare type PaginationVariant = 'flat' | 'bordered' | 'light';
|
|
1052
|
+
|
|
1053
|
+
export declare const Panel: ({ children, className, classnames, description, label, ref, title, variant, ...rest }: PanelProps) => JSX.Element;
|
|
707
1054
|
|
|
708
1055
|
export declare type PanelClassNames = {
|
|
1056
|
+
label?: string;
|
|
709
1057
|
title?: string;
|
|
710
1058
|
description?: string;
|
|
711
1059
|
content?: string;
|
|
@@ -714,6 +1062,7 @@ export declare type PanelClassNames = {
|
|
|
714
1062
|
export declare type PanelProps = VacanoComponentProps<HTMLDivElement, PanelClassNames> & Omit<HTMLAttributes<HTMLDivElement>, 'className' | 'title'> & {
|
|
715
1063
|
children: ReactNode;
|
|
716
1064
|
description?: string;
|
|
1065
|
+
label?: ReactNode;
|
|
717
1066
|
title?: string;
|
|
718
1067
|
variant?: PanelVariant;
|
|
719
1068
|
};
|
|
@@ -843,6 +1192,41 @@ export declare type SelectProps = VacanoComponentProps<HTMLDivElement, SelectCla
|
|
|
843
1192
|
|
|
844
1193
|
export declare type SelectVariant = 'normal' | 'error';
|
|
845
1194
|
|
|
1195
|
+
export declare const ShellScreen: ({ children, className, classnames, description, footer, gridSize, icon, logo, ref, title, ...rest }: ShellScreenProps) => JSX.Element;
|
|
1196
|
+
|
|
1197
|
+
export declare type ShellScreenClassNames = {
|
|
1198
|
+
grid?: string;
|
|
1199
|
+
header?: string;
|
|
1200
|
+
title?: string;
|
|
1201
|
+
description?: string;
|
|
1202
|
+
content?: string;
|
|
1203
|
+
footer?: string;
|
|
1204
|
+
};
|
|
1205
|
+
|
|
1206
|
+
export declare type ShellScreenProps = VacanoComponentProps<HTMLDivElement, ShellScreenClassNames> & {
|
|
1207
|
+
logo?: ReactNode;
|
|
1208
|
+
icon?: ReactNode;
|
|
1209
|
+
title?: ReactNode;
|
|
1210
|
+
description?: ReactNode;
|
|
1211
|
+
children?: ReactNode;
|
|
1212
|
+
footer?: ReactNode;
|
|
1213
|
+
gridSize?: number;
|
|
1214
|
+
};
|
|
1215
|
+
|
|
1216
|
+
export declare const Skeleton: ({ animation, circle, className, height, radius, ref, width, ...rest }: SkeletonProps) => JSX.Element;
|
|
1217
|
+
|
|
1218
|
+
export declare type SkeletonAnimation = 'pulse' | 'wave' | 'none';
|
|
1219
|
+
|
|
1220
|
+
export declare type SkeletonProps = VacanoComponentProps<HTMLDivElement> & Omit<HTMLAttributes<HTMLDivElement>, 'className'> & {
|
|
1221
|
+
width?: number | string;
|
|
1222
|
+
height?: number | string;
|
|
1223
|
+
radius?: SkeletonRadius;
|
|
1224
|
+
animation?: SkeletonAnimation;
|
|
1225
|
+
circle?: boolean;
|
|
1226
|
+
};
|
|
1227
|
+
|
|
1228
|
+
export declare type SkeletonRadius = 'none' | 'sm' | 'md' | 'lg' | 'full';
|
|
1229
|
+
|
|
846
1230
|
declare const slug: (message?: string) => StringSchema<string | undefined, AnyObject, undefined, "">;
|
|
847
1231
|
|
|
848
1232
|
export declare const Spinner: ({ "aria-label": ariaLabel, className, ref, size, ...rest }: SpinnerProps) => JSX.Element;
|
|
@@ -856,11 +1240,53 @@ export declare type SpinnerProps = VacanoComponentProps<HTMLDivElement, SpinnerC
|
|
|
856
1240
|
|
|
857
1241
|
export declare type SpinnerSize = 'xs' | 'sm' | 'md' | 'lg';
|
|
858
1242
|
|
|
1243
|
+
export declare const Stat: ({ className, classnames, label, ref, value, ...rest }: StatProps) => JSX.Element;
|
|
1244
|
+
|
|
1245
|
+
export declare type StatClassNames = {
|
|
1246
|
+
value?: string;
|
|
1247
|
+
label?: string;
|
|
1248
|
+
};
|
|
1249
|
+
|
|
1250
|
+
export declare type StatProps = VacanoComponentProps<HTMLSpanElement, StatClassNames> & Omit<HTMLAttributes<HTMLSpanElement>, 'className'> & {
|
|
1251
|
+
value: ReactNode;
|
|
1252
|
+
label: string;
|
|
1253
|
+
};
|
|
1254
|
+
|
|
859
1255
|
export declare type StepItem = {
|
|
860
1256
|
value: string;
|
|
861
1257
|
label: string;
|
|
862
1258
|
};
|
|
863
1259
|
|
|
1260
|
+
export declare const StepLog: ({ className, classnames, defaultValue, onChange, ref, steps, value: controlledValue, ...rest }: StepLogProps) => JSX.Element;
|
|
1261
|
+
|
|
1262
|
+
export declare type StepLogClassNames = {
|
|
1263
|
+
step?: string;
|
|
1264
|
+
header?: string;
|
|
1265
|
+
log?: string;
|
|
1266
|
+
};
|
|
1267
|
+
|
|
1268
|
+
export declare type StepLogItem = {
|
|
1269
|
+
value: string;
|
|
1270
|
+
title: ReactNode;
|
|
1271
|
+
status?: StepLogStatus;
|
|
1272
|
+
duration?: string;
|
|
1273
|
+
lines?: StepLogLine[];
|
|
1274
|
+
};
|
|
1275
|
+
|
|
1276
|
+
export declare type StepLogLine = {
|
|
1277
|
+
line: number;
|
|
1278
|
+
text: string;
|
|
1279
|
+
};
|
|
1280
|
+
|
|
1281
|
+
export declare type StepLogProps = VacanoComponentProps<HTMLDivElement, StepLogClassNames> & {
|
|
1282
|
+
steps: StepLogItem[];
|
|
1283
|
+
value?: string[];
|
|
1284
|
+
defaultValue?: string[];
|
|
1285
|
+
onChange?: (value: string[]) => void;
|
|
1286
|
+
};
|
|
1287
|
+
|
|
1288
|
+
export declare type StepLogStatus = 'success' | 'error' | 'running' | 'pending';
|
|
1289
|
+
|
|
864
1290
|
export declare const Stepper: ({ className, classnames, onChange, orientation, ref, steps, value, ...rest }: StepperProps) => JSX.Element;
|
|
865
1291
|
|
|
866
1292
|
export declare type StepperClassNames = {
|
|
@@ -949,6 +1375,28 @@ export declare type TextareaProps = VacanoComponentProps<HTMLTextAreaElement, Te
|
|
|
949
1375
|
|
|
950
1376
|
export declare type TextareaVariant = 'normal' | 'error';
|
|
951
1377
|
|
|
1378
|
+
export declare const Timeline: ({ className, classnames, items, ref, ...rest }: TimelineProps) => JSX.Element;
|
|
1379
|
+
|
|
1380
|
+
export declare type TimelineClassNames = {
|
|
1381
|
+
item?: string;
|
|
1382
|
+
dot?: string;
|
|
1383
|
+
line?: string;
|
|
1384
|
+
content?: string;
|
|
1385
|
+
title?: string;
|
|
1386
|
+
description?: string;
|
|
1387
|
+
body?: string;
|
|
1388
|
+
};
|
|
1389
|
+
|
|
1390
|
+
export declare type TimelineItem = {
|
|
1391
|
+
title: string;
|
|
1392
|
+
description?: ReactNode;
|
|
1393
|
+
children?: ReactNode;
|
|
1394
|
+
};
|
|
1395
|
+
|
|
1396
|
+
export declare type TimelineProps = VacanoComponentProps<HTMLDivElement, TimelineClassNames> & Omit<HTMLAttributes<HTMLDivElement>, 'className'> & {
|
|
1397
|
+
items: TimelineItem[];
|
|
1398
|
+
};
|
|
1399
|
+
|
|
952
1400
|
export declare type Toast = {
|
|
953
1401
|
id: string;
|
|
954
1402
|
message: string;
|
|
@@ -1101,6 +1549,22 @@ export declare const useNotification: () => NotificationContextValue;
|
|
|
1101
1549
|
|
|
1102
1550
|
export declare const useNotifyConfirmation: () => NotifyConfirmationContextValue;
|
|
1103
1551
|
|
|
1552
|
+
export declare const User: ({ avatarPosition, avatarProps, className, classnames, description, name, ref, src, ...rest }: UserProps) => JSX.Element;
|
|
1553
|
+
|
|
1554
|
+
export declare type UserClassNames = {
|
|
1555
|
+
avatar?: string;
|
|
1556
|
+
name?: string;
|
|
1557
|
+
description?: string;
|
|
1558
|
+
};
|
|
1559
|
+
|
|
1560
|
+
export declare type UserProps = VacanoComponentProps<HTMLDivElement, UserClassNames> & Omit<HTMLAttributes<HTMLDivElement>, 'className'> & {
|
|
1561
|
+
name: ReactNode;
|
|
1562
|
+
description?: ReactNode;
|
|
1563
|
+
src?: string;
|
|
1564
|
+
avatarProps?: Omit<AvatarProps, 'ref'>;
|
|
1565
|
+
avatarPosition?: 'left' | 'right';
|
|
1566
|
+
};
|
|
1567
|
+
|
|
1104
1568
|
export declare const useSaveProgress: () => SaveProgressContextValue;
|
|
1105
1569
|
|
|
1106
1570
|
export declare const useToastr: () => ToastContextValue;
|