@vacano/ui 1.13.0 → 1.15.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 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, ref, border, shadow, ...rest }: PropsWithChildren<CardProps>) => JSX.Element;
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
+ };
92
253
 
93
- export declare type CardProps = VacanoComponentProps<HTMLDivElement> & Omit<HTMLAttributes<HTMLDivElement>, 'className'> & {
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;
262
+
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
- shadow?: boolean;
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 Panel: ({ children, className, classnames, description, ref, title, variant, ...rest }: PanelProps) => JSX.Element;
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
  };
@@ -722,6 +1071,20 @@ export declare type PanelVariant = 'light' | 'dark';
722
1071
 
723
1072
  declare const password: (message?: string) => StringSchema<string | undefined, AnyObject, undefined, "">;
724
1073
 
1074
+ export declare const PendingScreen: ({ className, classnames, description, interval, phrases: phrasesProp, ref, ...rest }: PendingScreenProps) => JSX.Element;
1075
+
1076
+ export declare type PendingScreenClassNames = {
1077
+ board?: string;
1078
+ description?: string;
1079
+ indicator?: string;
1080
+ };
1081
+
1082
+ export declare type PendingScreenProps = VacanoComponentProps<HTMLDivElement, PendingScreenClassNames> & {
1083
+ description?: string;
1084
+ interval?: number;
1085
+ phrases?: string[];
1086
+ };
1087
+
725
1088
  declare const phone: (message?: string) => StringSchema<string | undefined, AnyObject, undefined, "">;
726
1089
 
727
1090
  export declare const Progress: ({ value, size, className, classnames, ref, ...rest }: ProgressProps) => JSX.Element;
@@ -843,6 +1206,41 @@ export declare type SelectProps = VacanoComponentProps<HTMLDivElement, SelectCla
843
1206
 
844
1207
  export declare type SelectVariant = 'normal' | 'error';
845
1208
 
1209
+ export declare const ShellScreen: ({ children, className, classnames, description, footer, gridSize, icon, logo, ref, title, ...rest }: ShellScreenProps) => JSX.Element;
1210
+
1211
+ export declare type ShellScreenClassNames = {
1212
+ grid?: string;
1213
+ header?: string;
1214
+ title?: string;
1215
+ description?: string;
1216
+ content?: string;
1217
+ footer?: string;
1218
+ };
1219
+
1220
+ export declare type ShellScreenProps = VacanoComponentProps<HTMLDivElement, ShellScreenClassNames> & {
1221
+ logo?: ReactNode;
1222
+ icon?: ReactNode;
1223
+ title?: ReactNode;
1224
+ description?: ReactNode;
1225
+ children?: ReactNode;
1226
+ footer?: ReactNode;
1227
+ gridSize?: number;
1228
+ };
1229
+
1230
+ export declare const Skeleton: ({ animation, circle, className, height, radius, ref, width, ...rest }: SkeletonProps) => JSX.Element;
1231
+
1232
+ export declare type SkeletonAnimation = 'pulse' | 'wave' | 'none';
1233
+
1234
+ export declare type SkeletonProps = VacanoComponentProps<HTMLDivElement> & Omit<HTMLAttributes<HTMLDivElement>, 'className'> & {
1235
+ width?: number | string;
1236
+ height?: number | string;
1237
+ radius?: SkeletonRadius;
1238
+ animation?: SkeletonAnimation;
1239
+ circle?: boolean;
1240
+ };
1241
+
1242
+ export declare type SkeletonRadius = 'none' | 'sm' | 'md' | 'lg' | 'full';
1243
+
846
1244
  declare const slug: (message?: string) => StringSchema<string | undefined, AnyObject, undefined, "">;
847
1245
 
848
1246
  export declare const Spinner: ({ "aria-label": ariaLabel, className, ref, size, ...rest }: SpinnerProps) => JSX.Element;
@@ -856,11 +1254,61 @@ export declare type SpinnerProps = VacanoComponentProps<HTMLDivElement, SpinnerC
856
1254
 
857
1255
  export declare type SpinnerSize = 'xs' | 'sm' | 'md' | 'lg';
858
1256
 
1257
+ export declare const SplitFlapText: ({ className, ref, text, ...rest }: SplitFlapTextProps) => JSX.Element;
1258
+
1259
+ export declare type SplitFlapTextClassNames = Record<string, never>;
1260
+
1261
+ export declare type SplitFlapTextProps = VacanoComponentProps<HTMLDivElement, SplitFlapTextClassNames> & {
1262
+ text: string;
1263
+ };
1264
+
1265
+ export declare const Stat: ({ className, classnames, label, ref, value, ...rest }: StatProps) => JSX.Element;
1266
+
1267
+ export declare type StatClassNames = {
1268
+ value?: string;
1269
+ label?: string;
1270
+ };
1271
+
1272
+ export declare type StatProps = VacanoComponentProps<HTMLSpanElement, StatClassNames> & Omit<HTMLAttributes<HTMLSpanElement>, 'className'> & {
1273
+ value: ReactNode;
1274
+ label: string;
1275
+ };
1276
+
859
1277
  export declare type StepItem = {
860
1278
  value: string;
861
1279
  label: string;
862
1280
  };
863
1281
 
1282
+ export declare const StepLog: ({ className, classnames, defaultValue, onChange, ref, steps, value: controlledValue, ...rest }: StepLogProps) => JSX.Element;
1283
+
1284
+ export declare type StepLogClassNames = {
1285
+ step?: string;
1286
+ header?: string;
1287
+ log?: string;
1288
+ };
1289
+
1290
+ export declare type StepLogItem = {
1291
+ value: string;
1292
+ title: ReactNode;
1293
+ status?: StepLogStatus;
1294
+ duration?: string;
1295
+ lines?: StepLogLine[];
1296
+ };
1297
+
1298
+ export declare type StepLogLine = {
1299
+ line: number;
1300
+ text: string;
1301
+ };
1302
+
1303
+ export declare type StepLogProps = VacanoComponentProps<HTMLDivElement, StepLogClassNames> & {
1304
+ steps: StepLogItem[];
1305
+ value?: string[];
1306
+ defaultValue?: string[];
1307
+ onChange?: (value: string[]) => void;
1308
+ };
1309
+
1310
+ export declare type StepLogStatus = 'success' | 'error' | 'running' | 'pending';
1311
+
864
1312
  export declare const Stepper: ({ className, classnames, onChange, orientation, ref, steps, value, ...rest }: StepperProps) => JSX.Element;
865
1313
 
866
1314
  export declare type StepperClassNames = {
@@ -949,6 +1397,28 @@ export declare type TextareaProps = VacanoComponentProps<HTMLTextAreaElement, Te
949
1397
 
950
1398
  export declare type TextareaVariant = 'normal' | 'error';
951
1399
 
1400
+ export declare const Timeline: ({ className, classnames, items, ref, ...rest }: TimelineProps) => JSX.Element;
1401
+
1402
+ export declare type TimelineClassNames = {
1403
+ item?: string;
1404
+ dot?: string;
1405
+ line?: string;
1406
+ content?: string;
1407
+ title?: string;
1408
+ description?: string;
1409
+ body?: string;
1410
+ };
1411
+
1412
+ export declare type TimelineItem = {
1413
+ title: string;
1414
+ description?: ReactNode;
1415
+ children?: ReactNode;
1416
+ };
1417
+
1418
+ export declare type TimelineProps = VacanoComponentProps<HTMLDivElement, TimelineClassNames> & Omit<HTMLAttributes<HTMLDivElement>, 'className'> & {
1419
+ items: TimelineItem[];
1420
+ };
1421
+
952
1422
  export declare type Toast = {
953
1423
  id: string;
954
1424
  message: string;
@@ -1101,6 +1571,22 @@ export declare const useNotification: () => NotificationContextValue;
1101
1571
 
1102
1572
  export declare const useNotifyConfirmation: () => NotifyConfirmationContextValue;
1103
1573
 
1574
+ export declare const User: ({ avatarPosition, avatarProps, className, classnames, description, name, ref, src, ...rest }: UserProps) => JSX.Element;
1575
+
1576
+ export declare type UserClassNames = {
1577
+ avatar?: string;
1578
+ name?: string;
1579
+ description?: string;
1580
+ };
1581
+
1582
+ export declare type UserProps = VacanoComponentProps<HTMLDivElement, UserClassNames> & Omit<HTMLAttributes<HTMLDivElement>, 'className'> & {
1583
+ name: ReactNode;
1584
+ description?: ReactNode;
1585
+ src?: string;
1586
+ avatarProps?: Omit<AvatarProps, 'ref'>;
1587
+ avatarPosition?: 'left' | 'right';
1588
+ };
1589
+
1104
1590
  export declare const useSaveProgress: () => SaveProgressContextValue;
1105
1591
 
1106
1592
  export declare const useToastr: () => ToastContextValue;