@ckbox/components 1.2.1 → 1.3.0-dev.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
@@ -8,8 +8,8 @@ import { Placement } from '@popperjs/core';
8
8
  import { TransitionProps } from 'react-transition-group/Transition';
9
9
  import * as react_dnd from 'react-dnd';
10
10
 
11
- declare const Bottombar: React$1.ForwardRefExoticComponent<Props$1R & React$1.RefAttributes<HTMLDivElement>>;
12
- interface Props$1R {
11
+ declare const Bottombar: React$1.ForwardRefExoticComponent<Props$1$ & React$1.RefAttributes<HTMLDivElement>>;
12
+ interface Props$1$ {
13
13
  /**
14
14
  * Main content of the component.
15
15
  */
@@ -24,98 +24,118 @@ interface Props$1R {
24
24
  statusContent?: React$1.ReactNode;
25
25
  }
26
26
 
27
- declare type ButtonSize = 'small' | 'medium' | 'large';
28
- declare type ButtonType = 'fill' | 'outline' | 'plain';
29
- declare type ButtonColor = 'action' | 'danger' | 'neutral';
27
+ type ButtonSize = 'small' | 'medium' | 'large';
28
+ type ButtonType = 'fill' | 'outline' | 'plain' | 'link';
29
+ type ButtonColor = 'action' | 'danger' | 'neutral';
30
30
 
31
- interface Props$1Q {
31
+ interface Props$1_ {
32
32
  /**
33
- * Sets root class.
33
+ * Toggles optional icon animation.
34
+ */
35
+ animateIn?: boolean;
36
+ /**
37
+ * Sets root class name.
34
38
  */
35
39
  className: string;
36
40
  /**
37
- * Callback invoked upon clicking on icon.
41
+ * Optional test ID.
38
42
  */
39
- onClick?: () => void;
43
+ 'data-testid'?: string;
40
44
  }
41
45
 
42
- declare const ArrowLeftEnd: React$1.FC<Props$1Q>;
46
+ declare const ArrowLeftEnd: React$1.FC<Props$1_>;
47
+
48
+ declare const ArrowRightEnd: React$1.FC<Props$1_>;
49
+
50
+ declare const ArrowLeft: React$1.FC<Props$1_>;
43
51
 
44
- declare const ArrowRightEnd: React$1.FC<Props$1Q>;
52
+ declare const ArrowRight: React$1.FC<Props$1_>;
45
53
 
46
- declare const ArrowLeft: React$1.FC<Props$1Q>;
54
+ declare const Cabinet: React$1.FC<Props$1_>;
47
55
 
48
- declare const ArrowRight: React$1.FC<Props$1Q>;
56
+ declare const CaretRight: React$1.FC<Props$1_>;
49
57
 
50
- declare const Cabinet: React$1.FC<Props$1Q>;
58
+ declare const Check: React$1.FC<Props$1_>;
51
59
 
52
- declare const Check: React$1.FC<Props$1Q>;
60
+ declare const ChevronDoubleLeft: React$1.FC<Props$1_>;
53
61
 
54
- declare const ChevronDown: React$1.FC<Props$1Q>;
62
+ declare const ChevronDoubleRight: React$1.FC<Props$1_>;
55
63
 
56
- declare const ChevronLeft: React$1.FC<Props$1Q>;
64
+ declare const ChevronDown: React$1.FC<Props$1_>;
57
65
 
58
- declare const ChevronRight: React$1.FC<Props$1Q>;
66
+ declare const ChevronLeft: React$1.FC<Props$1_>;
59
67
 
60
- declare const ClockTwo: React$1.FC<Props$1Q>;
68
+ declare const ChevronRight: React$1.FC<Props$1_>;
61
69
 
62
- declare const Close: React$1.FC<Props$1Q>;
70
+ declare const Clock: React$1.FC<Props$1_>;
63
71
 
64
- declare const Cog: React$1.FC<Props$1Q>;
72
+ declare const Close: React$1.FC<Props$1_>;
65
73
 
66
- declare const Copy: React$1.FC<Props$1Q>;
74
+ declare const Cog: React$1.FC<Props$1_>;
67
75
 
68
- declare const Docs: React$1.FC<Props$1Q>;
76
+ declare const Copy: React$1.FC<Props$1_>;
69
77
 
70
- declare const DotsVertical: React$1.FC<Props$1Q>;
78
+ declare const Docs: React$1.FC<Props$1_>;
71
79
 
72
- declare const Download: React$1.FC<Props$1Q>;
80
+ declare const DotsVertical: React$1.FC<Props$1_>;
73
81
 
74
- declare const DragHandle: React$1.FC<Props$1Q>;
82
+ declare const Download: React$1.FC<Props$1_>;
75
83
 
76
- declare const Filter: React$1.FC<Props$1Q>;
84
+ declare const DragHandle: React$1.FC<Props$1_>;
77
85
 
78
- declare const Folder: React$1.FC<Props$1Q>;
86
+ declare const Filter: React$1.FC<Props$1_>;
79
87
 
80
- declare const Image: React$1.FC<Props$1Q>;
88
+ declare const Folder: React$1.FC<Props$1_>;
81
89
 
82
- declare const Info: React$1.FC<Props$1Q>;
90
+ declare const FolderAdd: React$1.FC<Props$1_>;
83
91
 
84
- declare const InfoSquare: React$1.FC<Props$1Q>;
92
+ declare const FolderFill: React$1.FC<Props$1_>;
85
93
 
86
- declare const Pencil: React$1.FC<Props$1Q>;
94
+ declare const FolderRemove: React$1.FC<Props$1_>;
87
95
 
88
- declare const Plus: React$1.FC<Props$1Q>;
96
+ declare const FolderRename: React$1.FC<Props$1_>;
89
97
 
90
- declare const Settings: React$1.FC<Props$1Q>;
98
+ declare const Image: React$1.FC<Props$1_>;
91
99
 
92
- declare const Sort: React$1.FC<Props$1Q>;
100
+ declare const Info: React$1.FC<Props$1_>;
93
101
 
94
- declare const Spinner: React$1.FC<Props$1Q>;
102
+ declare const InfoSquare: React$1.FC<Props$1_>;
95
103
 
96
- declare const Trash: React$1.FC<Props$1Q>;
104
+ declare const Pencil: React$1.FC<Props$1_>;
97
105
 
98
- declare const Upload: React$1.FC<Props$1Q>;
106
+ declare const Plus: React$1.FC<Props$1_>;
99
107
 
100
- declare const Warning: React$1.FC<Props$1Q>;
108
+ declare const Settings: React$1.FC<Props$1_>;
101
109
 
102
- declare const WarningFill: React$1.FC<Props$1Q>;
110
+ declare const Sort: React$1.FC<Props$1_>;
103
111
 
104
- declare const Search: React$1.FC<Props$1Q>;
112
+ declare const Spinner: React$1.FC<Props$1_>;
105
113
 
106
- declare const SearchMissingResults: React$1.FC<Props$1Q>;
114
+ declare const Trash: React$1.FC<Props$1_>;
107
115
 
108
- declare const XCircle: React$1.FC<Props$1Q>;
116
+ declare const Upload: React$1.FC<Props$1_>;
117
+
118
+ declare const WarningFill: React$1.FC<Props$1_>;
119
+
120
+ declare const Search: React$1.FC<Props$1_>;
121
+
122
+ declare const SearchMissingResults: React$1.FC<Props$1_>;
123
+
124
+ declare const XCircle: React$1.FC<Props$1_>;
109
125
 
110
126
  declare const icons$1_ArrowLeftEnd: typeof ArrowLeftEnd;
111
127
  declare const icons$1_ArrowRightEnd: typeof ArrowRightEnd;
112
128
  declare const icons$1_ArrowLeft: typeof ArrowLeft;
113
129
  declare const icons$1_ArrowRight: typeof ArrowRight;
114
130
  declare const icons$1_Cabinet: typeof Cabinet;
131
+ declare const icons$1_CaretRight: typeof CaretRight;
115
132
  declare const icons$1_Check: typeof Check;
133
+ declare const icons$1_ChevronDoubleLeft: typeof ChevronDoubleLeft;
134
+ declare const icons$1_ChevronDoubleRight: typeof ChevronDoubleRight;
116
135
  declare const icons$1_ChevronDown: typeof ChevronDown;
117
136
  declare const icons$1_ChevronLeft: typeof ChevronLeft;
118
137
  declare const icons$1_ChevronRight: typeof ChevronRight;
138
+ declare const icons$1_Clock: typeof Clock;
119
139
  declare const icons$1_Close: typeof Close;
120
140
  declare const icons$1_Cog: typeof Cog;
121
141
  declare const icons$1_Copy: typeof Copy;
@@ -125,6 +145,10 @@ declare const icons$1_Download: typeof Download;
125
145
  declare const icons$1_DragHandle: typeof DragHandle;
126
146
  declare const icons$1_Filter: typeof Filter;
127
147
  declare const icons$1_Folder: typeof Folder;
148
+ declare const icons$1_FolderAdd: typeof FolderAdd;
149
+ declare const icons$1_FolderFill: typeof FolderFill;
150
+ declare const icons$1_FolderRemove: typeof FolderRemove;
151
+ declare const icons$1_FolderRename: typeof FolderRename;
128
152
  declare const icons$1_Image: typeof Image;
129
153
  declare const icons$1_Info: typeof Info;
130
154
  declare const icons$1_InfoSquare: typeof InfoSquare;
@@ -135,7 +159,6 @@ declare const icons$1_Sort: typeof Sort;
135
159
  declare const icons$1_Spinner: typeof Spinner;
136
160
  declare const icons$1_Trash: typeof Trash;
137
161
  declare const icons$1_Upload: typeof Upload;
138
- declare const icons$1_Warning: typeof Warning;
139
162
  declare const icons$1_WarningFill: typeof WarningFill;
140
163
  declare const icons$1_Search: typeof Search;
141
164
  declare const icons$1_SearchMissingResults: typeof SearchMissingResults;
@@ -147,11 +170,14 @@ declare namespace icons$1 {
147
170
  icons$1_ArrowLeft as ArrowLeft,
148
171
  icons$1_ArrowRight as ArrowRight,
149
172
  icons$1_Cabinet as Cabinet,
173
+ icons$1_CaretRight as CaretRight,
150
174
  icons$1_Check as Check,
175
+ icons$1_ChevronDoubleLeft as ChevronDoubleLeft,
176
+ icons$1_ChevronDoubleRight as ChevronDoubleRight,
151
177
  icons$1_ChevronDown as ChevronDown,
152
178
  icons$1_ChevronLeft as ChevronLeft,
153
179
  icons$1_ChevronRight as ChevronRight,
154
- ClockTwo as Clock,
180
+ icons$1_Clock as Clock,
155
181
  icons$1_Close as Close,
156
182
  icons$1_Cog as Cog,
157
183
  icons$1_Copy as Copy,
@@ -161,6 +187,10 @@ declare namespace icons$1 {
161
187
  icons$1_DragHandle as DragHandle,
162
188
  icons$1_Filter as Filter,
163
189
  icons$1_Folder as Folder,
190
+ icons$1_FolderAdd as FolderAdd,
191
+ icons$1_FolderFill as FolderFill,
192
+ icons$1_FolderRemove as FolderRemove,
193
+ icons$1_FolderRename as FolderRename,
164
194
  icons$1_Image as Image,
165
195
  icons$1_Info as Info,
166
196
  icons$1_InfoSquare as InfoSquare,
@@ -171,7 +201,6 @@ declare namespace icons$1 {
171
201
  icons$1_Spinner as Spinner,
172
202
  icons$1_Trash as Trash,
173
203
  icons$1_Upload as Upload,
174
- icons$1_Warning as Warning,
175
204
  icons$1_WarningFill as WarningFill,
176
205
  icons$1_Search as Search,
177
206
  icons$1_SearchMissingResults as SearchMissingResults,
@@ -179,16 +208,20 @@ declare namespace icons$1 {
179
208
  };
180
209
  }
181
210
 
182
- declare type IconRenderer = (props: {
211
+ type IconRenderer = (props: {
183
212
  className?: string;
184
213
  }) => JSX.Element;
185
- declare type IconRenderProp = string | IconRenderer;
186
- declare type IconName = keyof typeof icons$1;
187
- declare type IconSize = 'small' | 'base' | 'medium' | 'big' | 'bigger' | 'humongous';
188
- declare type IconColor = 'accent' | 'disabled' | 'danger' | 'muted' | 'warning';
214
+ type IconRenderProp = string | IconRenderer;
215
+ type IconName = keyof typeof icons$1;
216
+ type IconSize = 'small' | 'base' | 'medium' | 'big' | 'bigger' | 'humongous';
217
+ type IconColor = 'accent' | 'disabled' | 'danger' | 'muted' | 'warning';
189
218
 
190
- declare const Icon: React$1.FC<Props$1P>;
191
- interface Props$1P {
219
+ declare const Icon: React$1.FC<Props$1Z>;
220
+ interface Props$1Z {
221
+ /**
222
+ * Toggles animation.
223
+ */
224
+ animateIn?: boolean;
192
225
  /**
193
226
  * Sets root class.
194
227
  */
@@ -214,8 +247,8 @@ interface Props$1P {
214
247
  size?: IconSize;
215
248
  }
216
249
 
217
- declare const Button: React$1.ForwardRefExoticComponent<Props$1O & React$1.RefAttributes<HTMLButtonElement>>;
218
- interface Props$1O {
250
+ declare const Button: React$1.ForwardRefExoticComponent<Props$1Y & React$1.RefAttributes<HTMLButtonElement>>;
251
+ interface Props$1Y {
219
252
  /**
220
253
  * Applies active styling.
221
254
  */
@@ -256,10 +289,18 @@ interface Props$1O {
256
289
  * Icon to show next to content.
257
290
  */
258
291
  icon?: IconName;
292
+ /**
293
+ * Render method for icon to be shown next to content.
294
+ */
295
+ iconRender?: IconRenderProp;
259
296
  /**
260
297
  * Allows to pass custom content.
261
298
  */
262
299
  content?: React$1.ReactNode;
300
+ /**
301
+ * Toggles icon animation.
302
+ */
303
+ iconAnimateIn?: boolean;
263
304
  /**
264
305
  * Icon placement.
265
306
  */
@@ -294,8 +335,8 @@ interface Props$1O {
294
335
  disabledLabelWrapping?: boolean;
295
336
  }
296
337
 
297
- declare const CircularLoader: React$1.ForwardRefExoticComponent<Props$1N & React$1.RefAttributes<HTMLButtonElement>>;
298
- interface Props$1N {
338
+ declare const CircularLoader: React$1.ForwardRefExoticComponent<Props$1X & React$1.RefAttributes<HTMLButtonElement>>;
339
+ interface Props$1X {
299
340
  /**
300
341
  * Component's label.
301
342
  */
@@ -314,16 +355,16 @@ interface Props$1N {
314
355
  onClick?: () => void;
315
356
  }
316
357
 
317
- declare const DialogActions: React$1.FC<Props$1M>;
318
- interface Props$1M {
358
+ declare const DialogActions: React$1.FC<Props$1W>;
359
+ interface Props$1W {
319
360
  /**
320
361
  * Main content of the component.
321
362
  */
322
363
  children: React$1.ReactNode;
323
364
  }
324
365
 
325
- declare const DialogColumn: React$1.ForwardRefExoticComponent<Props$1L & React$1.RefAttributes<HTMLDivElement>>;
326
- interface Props$1L extends React$1.HTMLAttributes<HTMLDivElement> {
366
+ declare const DialogColumn: React$1.ForwardRefExoticComponent<Props$1V & React$1.RefAttributes<HTMLDivElement>>;
367
+ interface Props$1V extends React$1.HTMLAttributes<HTMLDivElement> {
327
368
  /**
328
369
  * Main content of the component.
329
370
  */
@@ -334,8 +375,8 @@ interface Props$1L extends React$1.HTMLAttributes<HTMLDivElement> {
334
375
  overflow?: boolean;
335
376
  }
336
377
 
337
- declare const DialogFooter: React$1.FC<Props$1K>;
338
- interface Props$1K {
378
+ declare const DialogFooter: React$1.FC<Props$1U>;
379
+ interface Props$1U {
339
380
  /**
340
381
  * Main content of the component.
341
382
  */
@@ -351,8 +392,8 @@ interface Props$1K {
351
392
  }[];
352
393
  }
353
394
 
354
- declare const DialogHeader: React$1.FC<Props$1J>;
355
- interface Props$1J {
395
+ declare const DialogHeader: React$1.FC<Props$1T>;
396
+ interface Props$1T {
356
397
  /**
357
398
  * Sets focus on close button on mount.
358
399
  */
@@ -362,53 +403,61 @@ interface Props$1J {
362
403
  */
363
404
  closeLabel?: string;
364
405
  /**
365
- * Indicates that progress is ongoing.
366
- */
367
- inProgress?: boolean;
368
- /**
369
- * Turns on progress in header.
406
+ * Sets ID of dialog header description element.
370
407
  */
371
- progress?: boolean;
408
+ descriptionId?: string;
372
409
  /**
373
- * Progress value. Works only if `progress` is enabled.
410
+ * Dialog title.
374
411
  */
375
- progressValue?: number;
412
+ title?: string;
376
413
  /**
377
- * Secondary title.
414
+ * Dialog header type.
378
415
  */
379
- subTitle?: React$1.ReactNode;
416
+ type?: 'success' | 'error' | 'info';
417
+ }
418
+
419
+ declare const DialogProgressHeader: React$1.FC<Props$1S>;
420
+ interface Props$1S {
380
421
  /**
381
- * Dialog title.
422
+ * Sets focus on close button on mount.
382
423
  */
383
- title?: string;
424
+ autofocus?: boolean;
384
425
  /**
385
- * Dialog title size.
426
+ * Close button's label.
386
427
  */
387
- titleSize?: 'sm' | 'md';
428
+ closeLabel?: string;
388
429
  /**
389
430
  * Sets ID of dialog header description element.
390
431
  */
391
432
  descriptionId?: string;
392
433
  /**
393
- * Causes header height to be based on font size, even if title is not provided.
434
+ * Indicates that progress is ongoing.
394
435
  */
395
- useFontBasedHeaderHeight?: boolean;
436
+ inProgress?: boolean;
396
437
  /**
397
- * Dialog header type.
438
+ * Progress value.
398
439
  */
399
- type?: 'success' | 'error' | 'info';
440
+ progressValue?: number;
441
+ /**
442
+ * Secondary title.
443
+ */
444
+ subTitle?: React$1.ReactNode;
445
+ /**
446
+ * Dialog title.
447
+ */
448
+ title?: string;
400
449
  }
401
450
 
402
- declare const DialogRow: React$1.FC<Props$1I>;
403
- interface Props$1I extends React$1.HTMLAttributes<HTMLDivElement> {
451
+ declare const DialogRow: React$1.FC<Props$1R>;
452
+ interface Props$1R extends React$1.HTMLAttributes<HTMLDivElement> {
404
453
  /**
405
454
  * Main content of the component.
406
455
  */
407
456
  children: React$1.ReactNode;
408
457
  }
409
458
 
410
- declare const DialogSection: React$1.FC<Props$1H>;
411
- interface Props$1H {
459
+ declare const DialogSection: React$1.FC<Props$1Q>;
460
+ interface Props$1Q {
412
461
  /**
413
462
  * Main content of the component.
414
463
  */
@@ -531,35 +580,35 @@ interface DialogProps extends DialogSwitchProps {
531
580
  * Entry component for the dialog.
532
581
  * Initializes selected dialog mode and optionally adds common options and draggability if needed.
533
582
  */
534
- declare const Dialog: React$1.FC<Props$1G>;
535
- declare type Props$1G = DialogProps;
583
+ declare const Dialog: React$1.FC<Props$1P>;
584
+ type Props$1P = DialogProps;
536
585
 
537
- interface Props$1F {
586
+ interface Props$1O {
538
587
  /**
539
588
  * Sets root class.
540
589
  */
541
590
  className: string;
542
591
  }
543
592
 
544
- declare const Zip: React$1.FC<Props$1F>;
593
+ declare const Zip: React$1.FC<Props$1O>;
545
594
 
546
- declare const Empty: React$1.FC<Props$1F>;
595
+ declare const Empty: React$1.FC<Props$1O>;
547
596
 
548
- declare const Excel: React$1.FC<Props$1F>;
597
+ declare const Excel: React$1.FC<Props$1O>;
549
598
 
550
- declare const Img: React$1.FC<Props$1F>;
599
+ declare const Img: React$1.FC<Props$1O>;
551
600
 
552
- declare const Movie: React$1.FC<Props$1F>;
601
+ declare const Movie: React$1.FC<Props$1O>;
553
602
 
554
- declare const Music: React$1.FC<Props$1F>;
603
+ declare const Music: React$1.FC<Props$1O>;
555
604
 
556
- declare const Pdf: React$1.FC<Props$1F>;
605
+ declare const Pdf: React$1.FC<Props$1O>;
557
606
 
558
- declare const Ppt: React$1.FC<Props$1F>;
607
+ declare const Ppt: React$1.FC<Props$1O>;
559
608
 
560
- declare const Txt: React$1.FC<Props$1F>;
609
+ declare const Txt: React$1.FC<Props$1O>;
561
610
 
562
- declare const Word: React$1.FC<Props$1F>;
611
+ declare const Word: React$1.FC<Props$1O>;
563
612
 
564
613
  declare const icons_Empty: typeof Empty;
565
614
  declare const icons_Excel: typeof Excel;
@@ -585,17 +634,17 @@ declare namespace icons {
585
634
  };
586
635
  }
587
636
 
588
- declare const DocIcon: React$1.FC<Props$1E>;
589
- declare type DocIconName = keyof typeof icons;
590
- interface Props$1E {
637
+ declare const DocIcon: React$1.FC<Props$1N>;
638
+ type DocIconName = keyof typeof icons;
639
+ interface Props$1N {
591
640
  /**
592
641
  * Name of selected icon.
593
642
  */
594
643
  name: DocIconName;
595
644
  }
596
645
 
597
- declare const GalleryFigure: React$1.FC<Props$1D>;
598
- interface Props$1D {
646
+ declare const GalleryFigure: React$1.ForwardRefExoticComponent<Props$1M & React$1.RefAttributes<HTMLElement>>;
647
+ interface Props$1M {
599
648
  /**
600
649
  * Main content of the component.
601
650
  */
@@ -604,10 +653,14 @@ interface Props$1D {
604
653
  * Figure caption.
605
654
  */
606
655
  caption: string;
656
+ /**
657
+ * Use `data-visible` attribute for testing purposes.
658
+ */
659
+ 'data-visible'?: boolean;
607
660
  }
608
661
 
609
- declare const GalleryItem: React$1.ForwardRefExoticComponent<Props$1C & React$1.RefAttributes<HTMLDivElement>>;
610
- interface Props$1C {
662
+ declare const GalleryItem: React$1.ForwardRefExoticComponent<Props$1L & React$1.RefAttributes<HTMLDivElement>>;
663
+ interface Props$1L {
611
664
  /**
612
665
  * Sets item as active.
613
666
  */
@@ -642,8 +695,8 @@ interface Props$1C {
642
695
  onCheckboxClick?: React$1.MouseEventHandler<HTMLButtonElement>;
643
696
  }
644
697
 
645
- declare const Gallery: React$1.FC<Props$1B>;
646
- interface Props$1B {
698
+ declare const Gallery: React$1.FC<Props$1K>;
699
+ interface Props$1K {
647
700
  /**
648
701
  * Main content of the component.
649
702
  */
@@ -662,8 +715,8 @@ interface Props$1B {
662
715
  * Polymorphism for `ref` is tricky. Let's type it as `any` for now.
663
716
  */
664
717
 
665
- declare const Input: React$1.ForwardRefExoticComponent<Pick<Props$1A, "label" | "className" | "type" | "value" | "error" | "id" | "disabled" | "name" | "size" | "onClick" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "max" | "variant" | "readOnly" | "multiline" | "min"> & React$1.RefAttributes<any>>;
666
- interface Props$1A {
718
+ declare const Input: React$1.ForwardRefExoticComponent<Pick<Props$1J, "label" | "className" | "type" | "value" | "error" | "id" | "disabled" | "name" | "size" | "onClick" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "max" | "variant" | "readOnly" | "multiline" | "min"> & React$1.RefAttributes<any>>;
719
+ interface Props$1J {
667
720
  /**
668
721
  * Input's class name.
669
722
  */
@@ -746,8 +799,8 @@ interface Props$1A {
746
799
  variant?: 'default' | 'underline';
747
800
  }
748
801
 
749
- declare const MenuItem: React$1.FC<Props$1z>;
750
- interface Props$1z {
802
+ declare const MenuItem: React$1.FC<Props$1I>;
803
+ interface Props$1I {
751
804
  /**
752
805
  * Associated icon.
753
806
  */
@@ -770,8 +823,8 @@ interface Props$1z {
770
823
  disabled?: boolean;
771
824
  }
772
825
 
773
- declare const MenuSubSection: React$1.FC<Props$1y>;
774
- interface Props$1y {
826
+ declare const MenuSubSection: React$1.FC<Props$1H>;
827
+ interface Props$1H {
775
828
  /**
776
829
  * Main content of the component.
777
830
  */
@@ -798,8 +851,8 @@ interface Props$1y {
798
851
  title: string;
799
852
  }
800
853
 
801
- declare const MenuSection: React$1.FC<Props$1x>;
802
- interface Props$1x {
854
+ declare const MenuSection: React$1.FC<Props$1G>;
855
+ interface Props$1G {
803
856
  /**
804
857
  * Main content of the component.
805
858
  */
@@ -826,21 +879,21 @@ interface PopperContext {
826
879
  declare const PopperContext: React$1.Context<PopperContext>;
827
880
  declare const usePopperCtx: () => PopperContext;
828
881
 
829
- declare type PopperPlacement = Placement;
830
- declare type PopperAnchorRef = HTMLElement | null | undefined;
831
- declare type PopperOffsetValue = 'none' | 'xs' | 'sm' | 'md' | 'lg' | 'xl';
832
- declare type PopperOffset = [PopperOffsetValue, PopperOffsetValue];
882
+ type PopperPlacement = Placement;
883
+ type PopperAnchorRef = HTMLElement | null | undefined;
884
+ type PopperOffsetValue = 'none' | 'xs' | 'sm' | 'md' | 'lg' | 'xl';
885
+ type PopperOffset = [PopperOffsetValue, PopperOffsetValue];
833
886
 
834
- declare const PopperArrow: React__default.FC<Props$1w>;
835
- interface Props$1w {
887
+ declare const PopperArrow: React__default.FC<Props$1F>;
888
+ interface Props$1F {
836
889
  /**
837
890
  * Sets arrow size.
838
891
  */
839
892
  size?: 'sm' | 'md';
840
893
  }
841
894
 
842
- declare const Popper: React__default.ForwardRefExoticComponent<Props$1v & React__default.RefAttributes<HTMLElement>>;
843
- interface Props$1v {
895
+ declare const Popper: React__default.ForwardRefExoticComponent<Props$1E & React__default.RefAttributes<HTMLElement>>;
896
+ interface Props$1E {
844
897
  /**
845
898
  * Anchor element. Popper will be mounted to this element.
846
899
  */
@@ -875,8 +928,8 @@ interface Props$1v {
875
928
  sameWidth?: boolean;
876
929
  }
877
930
 
878
- declare const Menu: React$1.ForwardRefExoticComponent<Props$1u & React$1.RefAttributes<HTMLDivElement>>;
879
- interface Props$1u {
931
+ declare const Menu: React$1.ForwardRefExoticComponent<Props$1D & React$1.RefAttributes<HTMLDivElement>>;
932
+ interface Props$1D {
880
933
  /**
881
934
  * Anchor element.
882
935
  */
@@ -911,99 +964,215 @@ interface Props$1u {
911
964
  spacing?: boolean;
912
965
  }
913
966
 
914
- declare const NavbarItem: React$1.FC<Props$1t>;
915
- interface Props$1t {
967
+ /**
968
+ * Width of the collapsed navbar.
969
+ */
970
+ declare const NAVBAR_COLLAPSED_WIDTH = 58;
971
+ /**
972
+ * Minimum width of navbar in non-collapsed mode.
973
+ */
974
+ declare const NAVBAR_MIN_WIDTH = 200;
975
+ /**
976
+ * Maximum width of navbar in non-collapsed mode.
977
+ */
978
+ declare const NAVBAR_MAX_WIDTH = 400;
979
+ /**
980
+ * Defines how far user must scroll left or right to trigger navbar mode change.
981
+ */
982
+ declare const COLLAPSE_THRESHOLD = 40;
983
+ /**
984
+ * Delay for the purposes of toggling navbar preview.
985
+ */
986
+ declare const NAVBAR_PREVIEW_TIMEOUT = 250;
987
+
988
+ declare const navbarContextInitProps: NavbarContext;
989
+ interface NavbarContext {
990
+ /**
991
+ * Indicates if navbar is in collapsed mode.
992
+ */
993
+ navbarCollapsed?: boolean;
994
+ /**
995
+ * Indicates if collapsed navbar is in preview mode.
996
+ */
997
+ navbarPreviewed?: boolean;
998
+ /**
999
+ * Callback invoked whenever navbar collapse mode is changed.
1000
+ */
1001
+ onNavbarCollapseChange: (collapsed: boolean) => void;
1002
+ /**
1003
+ * Callback invoked whenever navbar preview mode is changed.
1004
+ */
1005
+ onNavbarPreviewChange: (previewed: boolean) => void;
1006
+ }
1007
+ declare const NavbarContext: React$1.Context<NavbarContext>;
1008
+ declare const useNavbarCtx: () => NavbarContext;
1009
+
1010
+ declare const NavbarItem: React$1.FC<Props$1C>;
1011
+ interface Props$1C {
916
1012
  /**
917
1013
  * Applies active styling.
918
1014
  */
919
1015
  active?: boolean;
920
1016
  /**
921
- * Toggles icon animation.
1017
+ * Main content of the component.
1018
+ */
1019
+ children?: React$1.ReactNode;
1020
+ /**
1021
+ * Indicates if item is collapsible.
1022
+ */
1023
+ collapsible?: boolean;
1024
+ /**
1025
+ * Indicates if item is collapsed.
1026
+ */
1027
+ collapsed?: boolean;
1028
+ /**
1029
+ * Label used by toggle button in expanded state.
1030
+ */
1031
+ collapseLabel?: string;
1032
+ /**
1033
+ * Applies compact spacing.
922
1034
  */
923
- animateIcon?: boolean;
1035
+ compact?: boolean;
924
1036
  /**
925
1037
  * Marks item as disabled.
926
1038
  */
927
1039
  disabled?: boolean;
928
1040
  /**
929
- * Separator for the special element.
1041
+ * Label used by toggle button in collapsed state.
930
1042
  */
931
- separated?: boolean;
1043
+ expandLabel?: string;
932
1044
  /**
933
- * Displayed icon.
1045
+ * Marks item as loading.
934
1046
  */
935
- icon?: IconName;
1047
+ loading?: boolean;
936
1048
  /**
937
- * Renders custom icon.
938
- *
939
- * Pass either a React component or raw markup as string.
940
- * Passed string must be sanitized beforehand so that it's safe to use.
1049
+ * Click handler.
941
1050
  */
942
- iconRender?: IconRenderProp;
1051
+ onClick?: () => void;
943
1052
  /**
944
- * Displayed label.
1053
+ * Handler invoked on collapsing an item.
945
1054
  */
946
- label: string;
1055
+ onCollapse?: () => void;
947
1056
  /**
948
- * Toggles loader.
1057
+ * Handler invoked on expanding an item.
949
1058
  */
950
- loading?: boolean;
1059
+ onExpand?: () => void;
951
1060
  /**
952
- * Optional click handler.
1061
+ * Handler invoked on toggling an item.
953
1062
  */
954
- onClick?: React$1.MouseEventHandler<HTMLButtonElement>;
1063
+ onToggle?: () => void;
1064
+ }
1065
+
1066
+ declare const NavbarItemContainer: React$1.FC<Props$1B>;
1067
+ interface Props$1B {
955
1068
  /**
956
- * Optional buttons to be shown inside the navbar item.
1069
+ * Marks container as active.
957
1070
  */
958
- buttons?: React$1.ReactNode;
1071
+ active?: boolean;
1072
+ /**
1073
+ * Main content of the component.
1074
+ */
1075
+ children: React$1.ReactNode;
959
1076
  }
960
1077
 
961
- declare const NavbarItemFixed: React$1.FC<Props$1s>;
962
- interface Props$1s {
1078
+ declare const NavbarItemContent: React$1.FC<Props$1A>;
1079
+ interface Props$1A {
1080
+ /**
1081
+ * Adds enter / exit animation.
1082
+ */
1083
+ animate?: boolean;
1084
+ /**
1085
+ * Aligns navbar item content.
1086
+ */
1087
+ align?: 'start' | 'end';
963
1088
  /**
964
1089
  * Main content of the component.
965
1090
  */
966
1091
  children: React$1.ReactNode;
1092
+ /**
1093
+ * Hides component visually.
1094
+ */
1095
+ hidden?: boolean;
967
1096
  }
968
1097
 
969
- declare const NavbarButton: React$1.FC<Props$1r>;
970
- interface Props$1r {
1098
+ declare const NavbarItemLabel: React$1.FC<Props$1z>;
1099
+ interface Props$1z {
971
1100
  /**
972
- * Button's aria label.
1101
+ * Toggles icon animation if parent item is hovered.
973
1102
  */
974
- label?: string;
1103
+ animateIconOnItemHover?: boolean;
975
1104
  /**
976
- * Icon to show.
1105
+ * Main content of the component.
977
1106
  */
978
- icon?: IconName;
1107
+ children: React$1.ReactNode;
979
1108
  /**
980
- * Sets `click` event handler.
1109
+ * Displayed icon.
981
1110
  */
982
- onClick?: React$1.MouseEventHandler;
1111
+ icon?: React$1.ReactElement<Props$1Z>;
983
1112
  }
984
1113
 
985
- declare const NavbarCreditLink: React$1.FC<Props$1q>;
986
- interface Props$1q {
1114
+ declare const NavbarItemsGroup: React$1.FC<Props$1y>;
1115
+ interface Props$1y {
987
1116
  /**
988
- * Renders the content of the credit link.
1117
+ * Animates group on collapse.
989
1118
  */
990
- content: React$1.ReactNode;
1119
+ animated?: boolean;
991
1120
  /**
992
- * Flag indicating if the link is collapsed.
1121
+ * Toggles animation.
993
1122
  */
994
- collapsed?: boolean;
1123
+ animateIn?: boolean;
1124
+ /**
1125
+ * Main content of the component.
1126
+ */
1127
+ children: React$1.ReactNode;
995
1128
  /**
996
- * The URL that the hyperlink points to.
1129
+ * Nesting level. Starts at 1.
1130
+ */
1131
+ level?: number;
1132
+ }
1133
+
1134
+ declare const NavbarLink: React$1.FC<Props$1x>;
1135
+ interface Props$1x {
1136
+ /**
1137
+ * Renders link content.
1138
+ */
1139
+ children: React$1.ReactNode | (({ collapsed }: {
1140
+ collapsed?: boolean;
1141
+ }) => React$1.ReactNode);
1142
+ /**
1143
+ * The URL that the link points to.
997
1144
  */
998
1145
  href?: string;
1146
+ }
1147
+
1148
+ declare const NavbarScrollableContent: React$1.FC<Props$1w>;
1149
+ interface Props$1w {
999
1150
  /**
1000
- * Describes the purpose of a link.
1151
+ * Main content of the component.
1001
1152
  */
1002
- ariaLabel?: string;
1153
+ children: React$1.ReactNode;
1003
1154
  }
1004
1155
 
1005
- declare const Navbar: React$1.FC<Props$1p>;
1006
- interface Props$1p {
1156
+ declare const NavbarSeparator: React$1.FC;
1157
+
1158
+ declare const NavbarToggleButton: React$1.FC<Props$1v>;
1159
+ interface Props$1v {
1160
+ /**
1161
+ * Label shown when navbar will collapse.
1162
+ */
1163
+ closeLabel?: string;
1164
+ /**
1165
+ * Label shown when navbar will lock expanded state.
1166
+ */
1167
+ lockLabel?: string;
1168
+ /**
1169
+ * Label shown when navbar will expand or will be in preview mode.
1170
+ */
1171
+ openLabel?: string;
1172
+ }
1173
+
1174
+ declare const Navbar: React$1.FC<Props$1u>;
1175
+ interface Props$1u {
1007
1176
  /**
1008
1177
  * Labels navigation element.
1009
1178
  */
@@ -1014,8 +1183,8 @@ interface Props$1p {
1014
1183
  children: React$1.ReactNode;
1015
1184
  }
1016
1185
 
1017
- declare const Modal: React$1.FC<Props$1o>;
1018
- interface Props$1o {
1186
+ declare const Modal: React$1.FC<Props$1t>;
1187
+ interface Props$1t {
1019
1188
  /**
1020
1189
  * Optional children.
1021
1190
  */
@@ -1038,24 +1207,24 @@ interface Props$1o {
1038
1207
  variant?: 'transparent' | 'semi-transparent';
1039
1208
  }
1040
1209
 
1041
- declare const PanelActions: React$1.FC<Props$1n>;
1042
- interface Props$1n {
1210
+ declare const PanelActions: React$1.FC<Props$1s>;
1211
+ interface Props$1s {
1043
1212
  /**
1044
1213
  * Main content of the component.
1045
1214
  */
1046
1215
  children?: React$1.ReactNode;
1047
1216
  }
1048
1217
 
1049
- declare const PanelColumn: React$1.FC<Props$1m>;
1050
- interface Props$1m {
1218
+ declare const PanelColumn: React$1.FC<Props$1r>;
1219
+ interface Props$1r {
1051
1220
  /**
1052
1221
  * Main content of the component.
1053
1222
  */
1054
1223
  children: React$1.ReactNode;
1055
1224
  }
1056
1225
 
1057
- declare const PanelContent: React$1.ForwardRefExoticComponent<Props$1l & React$1.RefAttributes<HTMLDivElement>>;
1058
- interface Props$1l {
1226
+ declare const PanelContent: React$1.ForwardRefExoticComponent<Props$1q & React$1.RefAttributes<HTMLDivElement>>;
1227
+ interface Props$1q {
1059
1228
  /**
1060
1229
  * Main content of the component.
1061
1230
  */
@@ -1074,8 +1243,8 @@ interface Props$1l {
1074
1243
  header?: string;
1075
1244
  }
1076
1245
 
1077
- declare const PanelContentProp: React$1.FC<Props$1k>;
1078
- interface Props$1k {
1246
+ declare const PanelContentProp: React$1.FC<Props$1p>;
1247
+ interface Props$1p {
1079
1248
  /**
1080
1249
  * Property label.
1081
1250
  */
@@ -1088,8 +1257,8 @@ interface Props$1k {
1088
1257
 
1089
1258
  declare const PanelDragHandle: React$1.ForwardRefExoticComponent<React$1.RefAttributes<HTMLDivElement>>;
1090
1259
 
1091
- declare const PanelList: React$1.FC<Props$1j>;
1092
- interface Props$1j {
1260
+ declare const PanelList: React$1.FC<Props$1o>;
1261
+ interface Props$1o {
1093
1262
  /**
1094
1263
  * Main content.
1095
1264
  */
@@ -1104,16 +1273,16 @@ interface Props$1j {
1104
1273
  toolbarLoading?: boolean;
1105
1274
  }
1106
1275
 
1107
- declare const PanelListDivider: React$1.FC<Props$1i>;
1108
- interface Props$1i {
1276
+ declare const PanelListDivider: React$1.FC<Props$1n>;
1277
+ interface Props$1n {
1109
1278
  /**
1110
1279
  * Toggles component opacity.
1111
1280
  */
1112
1281
  opaque?: boolean;
1113
1282
  }
1114
1283
 
1115
- declare const PanelSide: React$1.FC<Props$1h>;
1116
- interface Props$1h {
1284
+ declare const PanelSide: React$1.FC<Props$1m>;
1285
+ interface Props$1m {
1117
1286
  /**
1118
1287
  * Icon to display.
1119
1288
  */
@@ -1127,8 +1296,8 @@ interface Props$1h {
1127
1296
  iconRender?: IconRenderProp;
1128
1297
  }
1129
1298
 
1130
- declare const PanelSkeleton: React$1.FC<Props$1g>;
1131
- interface Props$1g {
1299
+ declare const PanelSkeleton: React$1.FC<Props$1l>;
1300
+ interface Props$1l {
1132
1301
  /**
1133
1302
  * Number of loading blocks.
1134
1303
  */
@@ -1139,8 +1308,8 @@ interface Props$1g {
1139
1308
  size?: 'sm' | 'md' | 'lg';
1140
1309
  }
1141
1310
 
1142
- declare const PanelTitle: React$1.ForwardRefExoticComponent<Props$1f & React$1.RefAttributes<HTMLDivElement>>;
1143
- interface Props$1f extends Omit<Props$1l, 'children'> {
1311
+ declare const PanelTitle: React$1.ForwardRefExoticComponent<Props$1k & React$1.RefAttributes<HTMLDivElement>>;
1312
+ interface Props$1k extends Omit<Props$1q, 'children'> {
1144
1313
  /**
1145
1314
  * Panel's title.
1146
1315
  */
@@ -1175,10 +1344,10 @@ interface ListDndItemHookProps extends ListDndItem {
1175
1344
  */
1176
1345
  itemRoot?: HTMLElement | null;
1177
1346
  }
1178
- declare type ListDndMoveItem = (dragIndex: number, hoverIndex: number) => void;
1179
- declare type ListDndSetDraggable = (id: string) => ListDndSetDraggablePartial;
1180
- declare type ListDndSetDraggablePartial = (isDraggable: boolean) => void;
1181
- declare type ListDndOnDragEnd = () => void;
1347
+ type ListDndMoveItem = (dragIndex: number, hoverIndex: number) => void;
1348
+ type ListDndSetDraggable = (id: string) => ListDndSetDraggablePartial;
1349
+ type ListDndSetDraggablePartial = (isDraggable: boolean) => void;
1350
+ type ListDndOnDragEnd = () => void;
1182
1351
  /**
1183
1352
  * List of props that a child of `SortableListItem` receives.
1184
1353
  * This type is intended to be used by components that want to be aware that they are dragged.
@@ -1226,8 +1395,8 @@ declare const useListDnd: (initItems: ListDndItem[]) => {
1226
1395
  setDraggable: ListDndSetDraggable;
1227
1396
  };
1228
1397
 
1229
- declare const SortableDndListItem: React$1.FC<Props$1e>;
1230
- interface Props$1e {
1398
+ declare const SortableDndListItem: React$1.FC<Props$1j>;
1399
+ interface Props$1j {
1231
1400
  /**
1232
1401
  * Current item's index in a list.
1233
1402
  */
@@ -1269,8 +1438,8 @@ interface SortableDndListContextShape {
1269
1438
  onDragEnd?: ListDndOnDragEnd;
1270
1439
  }
1271
1440
 
1272
- declare const SortableDndList: React$1.FC<Props$1d>;
1273
- interface Props$1d extends SortableDndListContextShape {
1441
+ declare const SortableDndList: React$1.FC<Props$1i>;
1442
+ interface Props$1i extends SortableDndListContextShape {
1274
1443
  /**
1275
1444
  * Main content of the component.
1276
1445
  */
@@ -1288,8 +1457,8 @@ interface PanelContextShape extends Partial<ListDndChildProps> {
1288
1457
  edit?: boolean;
1289
1458
  }
1290
1459
 
1291
- declare const Panel: React$1.ForwardRefExoticComponent<Props$1c & React$1.RefAttributes<HTMLDivElement>>;
1292
- interface Props$1c extends PanelContextShape {
1460
+ declare const Panel: React$1.ForwardRefExoticComponent<Props$1h & React$1.RefAttributes<HTMLDivElement>>;
1461
+ interface Props$1h extends PanelContextShape {
1293
1462
  /**
1294
1463
  * Main content of the component.
1295
1464
  */
@@ -1304,8 +1473,8 @@ interface Props$1c extends PanelContextShape {
1304
1473
  elevated?: boolean;
1305
1474
  }
1306
1475
 
1307
- declare const Pagination: React$1.FC<Props$1b>;
1308
- interface Props$1b {
1476
+ declare const Pagination: React$1.FC<Props$1g>;
1477
+ interface Props$1g {
1309
1478
  /**
1310
1479
  * Disables interaction with pagination.
1311
1480
  */
@@ -1332,8 +1501,8 @@ interface Props$1b {
1332
1501
  page: number;
1333
1502
  }
1334
1503
 
1335
- declare const ProgressPanel: React$1.ForwardRefExoticComponent<Props$1a & React$1.RefAttributes<HTMLDivElement>>;
1336
- interface Props$1a {
1504
+ declare const ProgressPanel: React$1.ForwardRefExoticComponent<Props$1f & React$1.RefAttributes<HTMLDivElement>>;
1505
+ interface Props$1f {
1337
1506
  /**
1338
1507
  * Additional info rendered close to a title.
1339
1508
  */
@@ -1368,8 +1537,8 @@ interface Props$1a {
1368
1537
  value: number;
1369
1538
  }
1370
1539
 
1371
- declare const PropertiesTableRow: React$1.FC<Props$19>;
1372
- interface Props$19 {
1540
+ declare const PropertiesTableRow: React$1.FC<Props$1e>;
1541
+ interface Props$1e {
1373
1542
  /**
1374
1543
  * Item's label.
1375
1544
  */
@@ -1380,100 +1549,152 @@ interface Props$19 {
1380
1549
  value: React$1.ReactNode;
1381
1550
  }
1382
1551
 
1383
- declare const PropertiesTable: React$1.FC<Props$18>;
1384
- interface Props$18 {
1552
+ declare const PropertiesTable: React$1.FC<Props$1d>;
1553
+ interface Props$1d {
1385
1554
  /**
1386
1555
  * Main content of the component.
1387
1556
  */
1388
1557
  children: React$1.ReactNode;
1389
1558
  }
1390
1559
 
1391
- /**
1392
- * The `ResponsiveImage` component is responsible for displaying images in a responsive manner.
1393
- *
1394
- * Noteworthy, it is impossible to use a purely native approach based on `img`'s attributes such as `srcset` and `sizes`,
1395
- * since those require media queries to be defined upfront. It is not guaranteed that `ResponsiveImage` component will be used in a manner
1396
- * that allows for media queries to be defined at all. Most likely, the component will be used in a fluid environment
1397
- * in which size of the image's container changes frequently.
1398
- *
1399
- * Therefore, a hybrid approach is used. Native `srcset` and `sizes` attributes are used in combination with a mechanism that
1400
- * updates `sizes` attribute under the hood based on current size of the image's container and a list of available breakpoints.
1401
- * As soon as a fitting breakpoint value is found, it gets assigned to `sizes` attribute. From that moment onwards,
1402
- * the browser takes over and its native features are used to ensure responsiveness and related features:
1403
- *
1404
- * 1. Art direction is possible to achieve via `srcSet` prop. Therefore, different images can be displayed based on current display size.
1405
- *
1406
- * 2. Various image formats can be passed within `srcSet`. The browser will choose the first one supported.
1407
- * For instance, `webp` sources can be supplied via `srcSet.optional` prop and browsers supporting `webp` format will default to that.
1408
- *
1409
- * 3. The `sizes` attribute is leveraged to force the browser to choose the most suitable source.
1410
- * The `sizes` attribtue is set internally by the component in the form of `${ breakpoint }px` value.
1411
- *
1412
- * The images are loaded lazily. A visibility check is used to ensure that only images visible within a given container will be loaded.
1413
- * As a loader, a blurred version of the image can be shown if `blurHash` value is passed.
1414
- */
1415
-
1416
- declare const ResponsiveImage: React$1.FC<Props$17>;
1417
- interface Props$17 {
1560
+ declare const ResponsiveImageFit: React$1.FC<Props$1c>;
1561
+ interface Props$1c {
1418
1562
  /**
1419
- * Image's description.
1420
- *
1421
- * Used for accessibilty purposes and in case of image loading errors.
1563
+ * Image alt text.
1422
1564
  */
1423
1565
  alt: string;
1566
+ /**
1567
+ * Turns on cover mode.
1568
+ */
1569
+ allowCover?: boolean;
1570
+ /**
1571
+ * Set of default image sources.
1572
+ */
1573
+ defaultSrcSet?: string;
1574
+ /**
1575
+ * Visually hides image.
1576
+ */
1577
+ hidden?: boolean;
1578
+ /**
1579
+ * Callback invoked when resource failed to load.
1580
+ */
1581
+ onError?: () => void;
1582
+ /**
1583
+ * Callback invoked when resource has been loaded.
1584
+ */
1585
+ onLoad?: () => void;
1586
+ /**
1587
+ * Mime type of the optional source.
1588
+ */
1589
+ optionalSrcMimeType?: string;
1590
+ /**
1591
+ * Set of optional image sources.
1592
+ */
1593
+ optionalSrcSet?: string;
1594
+ /**
1595
+ * Current `sizes` value based on container size.
1596
+ */
1597
+ sizes?: number;
1598
+ }
1599
+
1600
+ declare const ResponsiveImageFallback: React$1.FC<Props$1b>;
1601
+ interface Props$1b {
1602
+ /**
1603
+ * Indicates if cover is allowed for the image.
1604
+ */
1605
+ allowCover?: boolean;
1424
1606
  /**
1425
1607
  * Original image's blurhash. Blurhash will be decoded under the hood into base64.
1426
- *
1427
- * It will be displayed as long as image is being loaded.
1428
1608
  */
1429
1609
  blurHash?: string;
1430
1610
  /**
1431
- * List of available image widths.
1611
+ * Container element.
1432
1612
  */
1433
- breakpoints: number[];
1613
+ containerEl?: HTMLElement | null;
1434
1614
  /**
1435
- * Reference to a scrollable container that contains the image.
1436
- *
1437
- * It is used to detect image's visibility.
1615
+ * Original image's height.
1438
1616
  */
1439
- container?: HTMLDivElement | null;
1617
+ originalHeight?: number;
1440
1618
  /**
1441
- * Maps breakpoint value to a flag indicating if it is possible to display thumbnail as a cover for that breakpoint.
1619
+ * Original image's width.
1442
1620
  */
1443
- cover?: Record<number, boolean>;
1621
+ originalWidth?: number;
1622
+ }
1623
+
1624
+ declare const ResponsiveImageScalable: React$1.FC<Props$1a>;
1625
+ interface Props$1a {
1444
1626
  /**
1445
- * Original image's height.
1627
+ * Image alt text.
1446
1628
  */
1447
- height?: number;
1629
+ alt: string;
1448
1630
  /**
1449
- * Available sources for the image.
1631
+ * Element that contains responsive image.
1450
1632
  */
1451
- srcSet: {
1452
- /**
1453
- * Optional source.
1454
- */
1455
- optional?: string[];
1456
- /**
1457
- * Required default source.
1458
- */
1459
- default: string[];
1460
- };
1633
+ containerEl?: HTMLElement | null;
1634
+ /**
1635
+ * Set of default image sources.
1636
+ */
1637
+ defaultSrcSet?: string;
1638
+ /**
1639
+ * Visually hides image.
1640
+ */
1641
+ hidden?: boolean;
1642
+ /**
1643
+ * Callback invoked when resource failed to load.
1644
+ */
1645
+ onError?: () => void;
1461
1646
  /**
1462
- * Optional sources' mime type.
1647
+ * Callback invoked when resource has been loaded.
1648
+ */
1649
+ onLoad?: () => void;
1650
+ /**
1651
+ * Mime type of the optional source.
1463
1652
  */
1464
1653
  optionalSrcMimeType?: string;
1465
1654
  /**
1466
- * Original image's width.
1655
+ * Set of optional image sources.
1467
1656
  */
1468
- width?: number;
1657
+ optionalSrcSet?: string;
1469
1658
  /**
1470
- * Callback invoked when a resource failed to load, or can't be used.
1659
+ * Original width of the image.
1471
1660
  */
1472
- onError?: (event: React$1.SyntheticEvent<HTMLImageElement>) => void;
1661
+ originalWidth?: number;
1662
+ /**
1663
+ * Original height of the image.
1664
+ */
1665
+ originalHeight?: number;
1666
+ /**
1667
+ * Current `sizes` value based on container size.
1668
+ */
1669
+ sizes?: number;
1473
1670
  }
1474
1671
 
1475
- declare const Skeleton: React$1.FC<Props$16>;
1476
- interface Props$16 {
1672
+ declare const ResponsiveImage: React$1.FC<Props$19>;
1673
+ interface Props$19 {
1674
+ /**
1675
+ * List of available breakpoints.
1676
+ */
1677
+ breakpoints?: number[];
1678
+ /**
1679
+ * Responsive image.
1680
+ */
1681
+ children: React$1.ReactNode;
1682
+ /**
1683
+ * Element that contains responsive image.
1684
+ */
1685
+ containerEl?: HTMLElement | null;
1686
+ /**
1687
+ * Maps breakpoint value to a flag indicating if it is possible to display thumbnail as a cover for that breakpoint.
1688
+ */
1689
+ cover?: Record<number, boolean>;
1690
+ /**
1691
+ * Optional loader to show when image loading is in progress.
1692
+ */
1693
+ loader?: React$1.ReactNode;
1694
+ }
1695
+
1696
+ declare const Skeleton: React$1.FC<Props$18>;
1697
+ interface Props$18 {
1477
1698
  /**
1478
1699
  * Optional class name. It overrides class responsible for background color.
1479
1700
  */
@@ -1488,8 +1709,8 @@ interface Props$16 {
1488
1709
  width?: string;
1489
1710
  }
1490
1711
 
1491
- declare const SortButton: React$1.FC<Props$15>;
1492
- interface Props$15 {
1712
+ declare const SortButton: React$1.FC<Props$17>;
1713
+ interface Props$17 {
1493
1714
  /**
1494
1715
  * Button's aria label.
1495
1716
  */
@@ -1508,8 +1729,8 @@ interface Props$15 {
1508
1729
  onClick?: () => void;
1509
1730
  }
1510
1731
 
1511
- declare const SwitchView: React$1.FC<Props$14>;
1512
- interface Props$14 {
1732
+ declare const SwitchView: React$1.FC<Props$16>;
1733
+ interface Props$16 {
1513
1734
  /**
1514
1735
  * Main content of the component.
1515
1736
  */
@@ -1517,11 +1738,15 @@ interface Props$14 {
1517
1738
  /**
1518
1739
  * View id.
1519
1740
  */
1520
- id: string;
1741
+ id?: string;
1742
+ /**
1743
+ * Use `fallback` type to show a fallback view if no other `SwitchView` is matched.
1744
+ */
1745
+ type?: 'default' | 'fallback';
1521
1746
  }
1522
1747
 
1523
- declare const Switch: React$1.FC<Props$13>;
1524
- interface Props$13 {
1748
+ declare const Switch: React$1.FC<Props$15>;
1749
+ interface Props$15 {
1525
1750
  /**
1526
1751
  * Main content of the component.
1527
1752
  */
@@ -1532,8 +1757,8 @@ interface Props$13 {
1532
1757
  match?: string;
1533
1758
  }
1534
1759
 
1535
- declare const SwitchInput: React$1.FC<Props$12>;
1536
- interface Props$12 {
1760
+ declare const SwitchInput: React$1.FC<Props$14>;
1761
+ interface Props$14 {
1537
1762
  /**
1538
1763
  * Sets current input's value.
1539
1764
  */
@@ -1552,8 +1777,8 @@ interface Props$12 {
1552
1777
  onChange: (checked: boolean) => void;
1553
1778
  }
1554
1779
 
1555
- declare const TagList: React$1.FC<Props$11>;
1556
- interface Props$11 {
1780
+ declare const TagList: React$1.FC<Props$13>;
1781
+ interface Props$13 {
1557
1782
  /**
1558
1783
  * Main content of the component.
1559
1784
  */
@@ -1562,14 +1787,10 @@ interface Props$11 {
1562
1787
  * Optional root class name.
1563
1788
  */
1564
1789
  className?: string;
1565
- /**
1566
- * Indicates whether tag list should hide overflown items.
1567
- */
1568
- itemOverflow?: boolean;
1569
1790
  }
1570
1791
 
1571
- declare const TagLabel: React$1.FC<Props$10>;
1572
- interface Props$10 {
1792
+ declare const TagLabel: React$1.FC<Props$12>;
1793
+ interface Props$12 {
1573
1794
  /**
1574
1795
  * Emphasizes tag content.
1575
1796
  */
@@ -1580,8 +1801,8 @@ interface Props$10 {
1580
1801
  children: React$1.ReactNode;
1581
1802
  }
1582
1803
 
1583
- declare const Tag: React$1.ForwardRefExoticComponent<Props$$ & React$1.RefAttributes<HTMLDivElement>>;
1584
- interface Props$$ {
1804
+ declare const Tag: React$1.ForwardRefExoticComponent<Props$11 & React$1.RefAttributes<HTMLDivElement>>;
1805
+ interface Props$11 {
1585
1806
  /**
1586
1807
  * Sets component's children.
1587
1808
  */
@@ -1598,6 +1819,10 @@ interface Props$$ {
1598
1819
  * Sets tag radius.
1599
1820
  */
1600
1821
  radius?: 'md' | 'lg' | 'xl';
1822
+ /**
1823
+ * Sets tag size.
1824
+ */
1825
+ size?: 'sm' | 'md';
1601
1826
  /**
1602
1827
  * Sets tag as removable.
1603
1828
  */
@@ -1608,8 +1833,8 @@ interface Props$$ {
1608
1833
  removeLabel?: string;
1609
1834
  }
1610
1835
 
1611
- declare const TagInput: React$1.FC<Props$_>;
1612
- interface Props$_ {
1836
+ declare const TagInput: React$1.FC<Props$10>;
1837
+ interface Props$10 {
1613
1838
  /**
1614
1839
  * Input's class name.
1615
1840
  */
@@ -1657,8 +1882,8 @@ interface Props$_ {
1657
1882
  }[];
1658
1883
  }
1659
1884
 
1660
- declare const Tab: React$1.FC<Props$Z>;
1661
- interface Props$Z {
1885
+ declare const Tab: React$1.FC<Props$$>;
1886
+ interface Props$$ {
1662
1887
  /**
1663
1888
  * Main content.
1664
1889
  */
@@ -1673,8 +1898,8 @@ interface Props$Z {
1673
1898
  label: string;
1674
1899
  }
1675
1900
 
1676
- declare const Tabs: React$1.FC<Props$Y>;
1677
- interface Props$Y {
1901
+ declare const Tabs: React$1.FC<Props$_>;
1902
+ interface Props$_ {
1678
1903
  /**
1679
1904
  * Currently selected tab.
1680
1905
  */
@@ -1689,8 +1914,8 @@ interface Props$Y {
1689
1914
  onTabSelect?: (tab: string) => void;
1690
1915
  }
1691
1916
 
1692
- declare const Tooltip: React$1.FC<Props$X>;
1693
- interface Props$X {
1917
+ declare const Tooltip: React$1.FC<Props$Z>;
1918
+ interface Props$Z {
1694
1919
  /**
1695
1920
  * Main content of the component.
1696
1921
  * It must be a single child that accepts `ref`.
@@ -1713,8 +1938,8 @@ interface Props$X {
1713
1938
  /**
1714
1939
  * `TopbarAction` component acts as a props carrier only.
1715
1940
  */
1716
- declare const TopbarAction: React$1.FC<Props$W>;
1717
- interface Props$W {
1941
+ declare const TopbarAction: React$1.FC<Props$Y>;
1942
+ interface Props$Y {
1718
1943
  /**
1719
1944
  * Applies active styling.
1720
1945
  */
@@ -1749,8 +1974,8 @@ interface Props$W {
1749
1974
  downloadUrl?: string;
1750
1975
  }
1751
1976
 
1752
- declare const Topbar: React$1.FC<Props$V>;
1753
- interface Props$V {
1977
+ declare const Topbar: React$1.FC<Props$X>;
1978
+ interface Props$X {
1754
1979
  /**
1755
1980
  * Main content of the component.
1756
1981
  */
@@ -1761,6 +1986,25 @@ interface Props$V {
1761
1986
  sideContent: React$1.ReactNode;
1762
1987
  }
1763
1988
 
1989
+ declare const CONTAINER_QUERY_BREAKPOINTS: {
1990
+ xs: number;
1991
+ sm: number;
1992
+ md: number;
1993
+ lg: number;
1994
+ xl: number;
1995
+ };
1996
+
1997
+ declare const uiContextInitProps: {
1998
+ rootEl: null;
1999
+ animationDuration: {
2000
+ primary: number;
2001
+ secondary: number;
2002
+ };
2003
+ navbarCollapsed: boolean;
2004
+ onNavbarCollapseChange: () => void;
2005
+ onNavbarPreviewChange: () => void;
2006
+ onNavbarWidthChange: () => void;
2007
+ };
1764
2008
  interface UIContext {
1765
2009
  /**
1766
2010
  * Represents UI's root element.
@@ -1780,14 +2024,22 @@ interface UIContext {
1780
2024
  * Indicates if navbar should be collapsed.
1781
2025
  */
1782
2026
  navbarCollapsed?: boolean;
2027
+ /**
2028
+ * Indicates if collapsed navbar is in preview mode.
2029
+ */
2030
+ navbarPreviewed?: boolean;
1783
2031
  /**
1784
2032
  * Initial navbar width.
1785
2033
  */
1786
2034
  navbarWidth?: number;
1787
2035
  /**
1788
- * Callback invoked whenever navbar is collapsed.
2036
+ * Callback invoked whenever navbar collapse mode is changed.
2037
+ */
2038
+ onNavbarCollapseChange: (collapsed: boolean) => void;
2039
+ /**
2040
+ * Callback invoked whenever navbar preview mode is changed.
1789
2041
  */
1790
- onNavbarCollapse: (collapsed: boolean) => void;
2042
+ onNavbarPreviewChange: (previewed: boolean) => void;
1791
2043
  /**
1792
2044
  * Callback invoked whenever navbar width changes.
1793
2045
  */
@@ -1892,8 +2144,8 @@ declare const getValidChildren: <ChildProps>(children: React$1.ReactNode) => Rea
1892
2144
  */
1893
2145
  declare const hasOwnProperty: (object: Record<string, unknown>, propertyKey: string) => boolean;
1894
2146
 
1895
- declare type KeyModifier = 'altKey' | 'ctrlKey' | 'metaKey' | 'shiftKey';
1896
- declare type KeyAction = () => void;
2147
+ type KeyModifier = 'altKey' | 'ctrlKey' | 'metaKey' | 'shiftKey';
2148
+ type KeyAction = () => void;
1897
2149
  interface KeyCombination {
1898
2150
  value: string;
1899
2151
  mod?: KeyModifier;
@@ -1902,7 +2154,7 @@ interface KeyCombination {
1902
2154
  * `KeyboardEvent`-like interface that will allow to use generated handlers as React's synthetic event handlers.
1903
2155
  * Only a subset of event properties are used.
1904
2156
  */
1905
- declare type KeyEventLike = Pick<KeyboardEvent, 'altKey' | 'ctrlKey' | 'metaKey' | 'shiftKey' | 'code' | 'key' | 'preventDefault' | 'stopPropagation'>;
2157
+ type KeyEventLike = Pick<KeyboardEvent, 'altKey' | 'ctrlKey' | 'metaKey' | 'shiftKey' | 'code' | 'key' | 'preventDefault' | 'stopPropagation'>;
1906
2158
  interface KeyProps {
1907
2159
  /**
1908
2160
  * Defines which code will invoke the `onKeyDown` callback.
@@ -2059,7 +2311,7 @@ declare const useResize: (opts: ResizeOptions) => {
2059
2311
  isResizing: boolean | undefined;
2060
2312
  };
2061
2313
 
2062
- declare type DragHandler = (diff: {
2314
+ type DragHandler = (diff: {
2063
2315
  /**
2064
2316
  * Dragged element.
2065
2317
  */
@@ -2097,7 +2349,7 @@ declare type DragHandler = (diff: {
2097
2349
  */
2098
2350
  clientVY: number;
2099
2351
  }) => void;
2100
- declare type DragDimensionsHandler = (dimensions: Dimensions) => void;
2352
+ type DragDimensionsHandler = (dimensions: Dimensions) => void;
2101
2353
  interface DraggableOptions {
2102
2354
  /**
2103
2355
  * Callback invoked on dragging. Passes most recent drag vectors.
@@ -2196,23 +2448,24 @@ declare const useResettableTimeout: (onTimeout: () => void, delay: number) => {
2196
2448
  * Container's size changes are observed via `ResizeObserver`. Observer's callback invocation is throttled.
2197
2449
  *
2198
2450
  * @param breakpoints list of possible image widths
2451
+ * @param containerEl container element
2199
2452
  * @param enabled toggles `ResizeObserver`
2200
2453
  * @returns state and ref setters
2201
2454
  */
2202
- declare const useResponsiveSizes: (breakpoints: number[], enabled?: boolean) => {
2455
+ declare const useResponsiveSizes: (breakpoints: number[], containerEl?: HTMLElement | null, enabled?: boolean) => {
2203
2456
  sizes: number | undefined;
2204
- setContainer: React$1.Dispatch<React$1.SetStateAction<HTMLElement | null>>;
2205
- pixelAdjSizes: number;
2457
+ pixelAdjSizes: number | undefined;
2206
2458
  };
2207
2459
 
2208
2460
  /**
2209
2461
  * Detects visibility of an element inside a scrollable container.
2210
2462
  *
2211
- * @param container scrollable container
2463
+ * @param element element to observe
2464
+ * @param scrollableContainerEl scrollable container
2465
+ * @param enabled toggles observer
2212
2466
  * @returns hook state and methods
2213
2467
  */
2214
- declare const useElementVisibility: (container?: HTMLElement | null) => {
2215
- setElement: React$1.Dispatch<React$1.SetStateAction<HTMLElement | null>>;
2468
+ declare const useElementVisibility: (element?: HTMLElement | null, scrollableContainerEl?: HTMLElement | null, enabled?: boolean) => {
2216
2469
  visible: boolean;
2217
2470
  };
2218
2471
 
@@ -2233,7 +2486,7 @@ declare const useFilesDrop: ({ onDrop }: UseFilesDropProps) => {
2233
2486
  isActive: boolean;
2234
2487
  };
2235
2488
 
2236
- declare type Selected = Set<string>;
2489
+ type Selected = Set<string>;
2237
2490
 
2238
2491
  /**
2239
2492
  * This hook is responsible for selecting elements in a grid.
@@ -2276,7 +2529,7 @@ declare const useToggle: (initValue?: boolean) => {
2276
2529
  };
2277
2530
 
2278
2531
  /**
2279
- * Listens to source element's size changes and sets target's width and height accordingly.
2532
+ * Listens to container element's size changes and sets target's width and height accordingly.
2280
2533
  *
2281
2534
  * This hook is useful if `object-fit: scale-down` CSS rule cannot be used,
2282
2535
  * e.g. if image's placeholder has different size than the original image
@@ -2284,10 +2537,11 @@ declare const useToggle: (initValue?: boolean) => {
2284
2537
  *
2285
2538
  * @param originalWidth original image's width
2286
2539
  * @param originalHeight original image's height
2540
+ * @param containerEl container element
2541
+ * @param enabled toggles `ResizeObserver`
2287
2542
  * @returns ref setters
2288
2543
  */
2289
- declare const useScaleDown: (originalWidth?: number, originalHeight?: number, enabled?: boolean) => {
2290
- setSrcElement: React$1.Dispatch<React$1.SetStateAction<HTMLElement | null>>;
2544
+ declare const useScaleDown: (originalWidth?: number, originalHeight?: number, containerEl?: HTMLElement | null, enabled?: boolean) => {
2291
2545
  setTargetElement: React$1.Dispatch<React$1.SetStateAction<HTMLElement | null>>;
2292
2546
  };
2293
2547
 
@@ -2313,7 +2567,7 @@ interface ScrollCoordsConfig {
2313
2567
  */
2314
2568
  initThresh?: number;
2315
2569
  }
2316
- declare type OnScrollHandler = (vStart: {
2570
+ type OnScrollHandler = (vStart: {
2317
2571
  startX: number;
2318
2572
  startY: number;
2319
2573
  }, vCurrent: {
@@ -2465,8 +2719,8 @@ declare namespace validators_d {
2465
2719
  };
2466
2720
  }
2467
2721
 
2468
- declare const ViewDialog: React$1.FC<Props$U>;
2469
- interface Props$U {
2722
+ declare const ViewDialog: React$1.FC<Props$W>;
2723
+ interface Props$W {
2470
2724
  /**
2471
2725
  * Main content of the component.
2472
2726
  */
@@ -2529,8 +2783,8 @@ interface Props$U {
2529
2783
  label?: string;
2530
2784
  }
2531
2785
 
2532
- declare const UIProvider: React$1.FC<Props$T>;
2533
- interface Props$T {
2786
+ declare const UIProvider: React$1.FC<Props$V>;
2787
+ interface Props$V {
2534
2788
  /**
2535
2789
  * Main content.
2536
2790
  */
@@ -2550,7 +2804,7 @@ interface Props$T {
2550
2804
  /**
2551
2805
  * Callback invoked whenever navbar mode changes.
2552
2806
  */
2553
- onNavbarCollapse?: (collapsed: boolean) => void;
2807
+ onNavbarCollapseChange?: (collapsed: boolean) => void;
2554
2808
  /**
2555
2809
  * Callback invoked whenever navbar resize ends.
2556
2810
  */
@@ -2558,7 +2812,7 @@ interface Props$T {
2558
2812
  /**
2559
2813
  * Dialog mode options.
2560
2814
  */
2561
- dialog?: Omit<Props$U, 'children'>;
2815
+ dialog?: Omit<Props$W, 'children'>;
2562
2816
  /**
2563
2817
  * Name of selected theme.
2564
2818
  */
@@ -2569,16 +2823,16 @@ interface Props$T {
2569
2823
  label?: string;
2570
2824
  }
2571
2825
 
2572
- declare const View: React$1.FC<Props$S>;
2573
- interface Props$S {
2826
+ declare const View: React$1.FC<Props$U>;
2827
+ interface Props$U {
2574
2828
  /**
2575
2829
  * Sets component's children.
2576
2830
  */
2577
2831
  children?: React$1.ReactNode;
2578
2832
  }
2579
2833
 
2580
- declare const ViewContent: React$1.ForwardRefExoticComponent<Props$R & React$1.RefAttributes<HTMLDivElement>>;
2581
- interface Props$R {
2834
+ declare const ViewContent: React$1.ForwardRefExoticComponent<Props$T & React$1.RefAttributes<HTMLDivElement>>;
2835
+ interface Props$T {
2582
2836
  /**
2583
2837
  * Sets component's children.
2584
2838
  */
@@ -2601,48 +2855,48 @@ interface Props$R {
2601
2855
  contentBar?: boolean;
2602
2856
  }
2603
2857
 
2604
- declare const ViewContentBar: React$1.FC<Props$Q>;
2605
- interface Props$Q {
2858
+ declare const ViewContentBar: React$1.FC<Props$S>;
2859
+ interface Props$S {
2606
2860
  /**
2607
2861
  * Sets component's children.
2608
2862
  */
2609
2863
  children?: React$1.ReactNode;
2610
2864
  }
2611
2865
 
2612
- declare const ViewFooter: React$1.FC<Props$P>;
2613
- interface Props$P {
2866
+ declare const ViewFooter: React$1.FC<Props$R>;
2867
+ interface Props$R {
2614
2868
  /**
2615
2869
  * Sets component's children.
2616
2870
  */
2617
2871
  children?: React$1.ReactNode;
2618
2872
  }
2619
2873
 
2620
- declare const ViewHeader: React$1.FC<Props$O>;
2621
- interface Props$O {
2874
+ declare const ViewHeader: React$1.FC<Props$Q>;
2875
+ interface Props$Q {
2622
2876
  /**
2623
2877
  * Sets component's children.
2624
2878
  */
2625
2879
  children?: React$1.ReactNode;
2626
2880
  }
2627
2881
 
2628
- declare const ViewSideContent: React$1.FC<Props$N>;
2629
- interface Props$N {
2882
+ declare const ViewSideContent: React$1.FC<Props$P>;
2883
+ interface Props$P {
2630
2884
  /**
2631
2885
  * Sets component's children.
2632
2886
  */
2633
2887
  children?: React$1.ReactNode;
2634
2888
  }
2635
2889
 
2636
- declare const ViewContentWrapper: React$1.FC<Props$M>;
2637
- interface Props$M {
2890
+ declare const ViewContentWrapper: React$1.FC<Props$O>;
2891
+ interface Props$O {
2638
2892
  /**
2639
2893
  * Sets component's children.
2640
2894
  */
2641
2895
  children?: React$1.ReactNode;
2642
2896
  }
2643
2897
 
2644
- declare const ViewWrapper: React$1.FC<Props$L>;
2645
- interface Props$L {
2898
+ declare const ViewWrapper: React$1.FC<Props$N>;
2899
+ interface Props$N {
2646
2900
  /**
2647
2901
  * Main content of the component.
2648
2902
  */
@@ -2653,8 +2907,8 @@ interface Props$L {
2653
2907
  navbar?: React$1.ReactNode;
2654
2908
  }
2655
2909
 
2656
- declare const RangeSlider: React$1.FC<Props$K>;
2657
- declare type Props$K = {
2910
+ declare const RangeSlider: React$1.FC<Props$M>;
2911
+ type Props$M = {
2658
2912
  /**
2659
2913
  * Slider value.
2660
2914
  */
@@ -2687,8 +2941,8 @@ declare type Props$K = {
2687
2941
  showLabels?: boolean;
2688
2942
  };
2689
2943
 
2690
- declare const FormFeedback: React$1.FC<Props$J>;
2691
- declare type Props$J = {
2944
+ declare const FormFeedback: React$1.FC<Props$L>;
2945
+ type Props$L = {
2692
2946
  /**
2693
2947
  * Main content of the component.
2694
2948
  */
@@ -2703,8 +2957,8 @@ declare type Props$J = {
2703
2957
  warning?: boolean;
2704
2958
  };
2705
2959
 
2706
- declare const FormGroup: React$1.FC<Props$I>;
2707
- interface Props$I {
2960
+ declare const FormGroup: React$1.FC<Props$K>;
2961
+ interface Props$K {
2708
2962
  /**
2709
2963
  * Main content of the component.
2710
2964
  */
@@ -2715,24 +2969,24 @@ interface Props$I {
2715
2969
  halfWidth?: boolean;
2716
2970
  }
2717
2971
 
2718
- declare const FormGroupColumn: React$1.FC<Props$H>;
2719
- interface Props$H {
2972
+ declare const FormGroupColumn: React$1.FC<Props$J>;
2973
+ interface Props$J {
2720
2974
  /**
2721
2975
  * Main content of the component.
2722
2976
  */
2723
2977
  children: React$1.ReactNode;
2724
2978
  }
2725
2979
 
2726
- declare const FormGroupInfo: React$1.FC<Props$G>;
2727
- interface Props$G {
2980
+ declare const FormGroupInfo: React$1.FC<Props$I>;
2981
+ interface Props$I {
2728
2982
  /**
2729
2983
  * Main content of the component.
2730
2984
  */
2731
2985
  children: React$1.ReactNode;
2732
2986
  }
2733
2987
 
2734
- declare const FormInputLabel: React$1.FC<Props$F>;
2735
- declare type Props$F = {
2988
+ declare const FormInputLabel: React$1.FC<Props$H>;
2989
+ type Props$H = {
2736
2990
  /**
2737
2991
  * Main content of the component.
2738
2992
  */
@@ -2747,8 +3001,8 @@ declare type Props$F = {
2747
3001
  hidden?: boolean;
2748
3002
  };
2749
3003
 
2750
- declare const Form: React$1.ForwardRefExoticComponent<Props$E & React$1.RefAttributes<HTMLFormElement>>;
2751
- declare type Props$E = {
3004
+ declare const Form: React$1.ForwardRefExoticComponent<Props$G & React$1.RefAttributes<HTMLFormElement>>;
3005
+ type Props$G = {
2752
3006
  /**
2753
3007
  * Main content of the component.
2754
3008
  */
@@ -2771,8 +3025,8 @@ declare type Props$E = {
2771
3025
  onSubmit: React$1.FormEventHandler<HTMLFormElement>;
2772
3026
  };
2773
3027
 
2774
- declare const EmptyViewLabel: React$1.FC<Props$D>;
2775
- interface Props$D {
3028
+ declare const EmptyViewLabel: React$1.FC<Props$F>;
3029
+ interface Props$F {
2776
3030
  /**
2777
3031
  * Main content of the component.
2778
3032
  */
@@ -2783,8 +3037,8 @@ interface Props$D {
2783
3037
  muted?: boolean;
2784
3038
  }
2785
3039
 
2786
- declare const EmptyView: React$1.ForwardRefExoticComponent<Props$C & React$1.RefAttributes<HTMLDivElement>>;
2787
- interface Props$C {
3040
+ declare const EmptyView: React$1.ForwardRefExoticComponent<Props$E & React$1.RefAttributes<HTMLDivElement>>;
3041
+ interface Props$E {
2788
3042
  /**
2789
3043
  * Adds active styling.
2790
3044
  */
@@ -2807,36 +3061,36 @@ interface Props$C {
2807
3061
  type?: 'dropzone' | 'default';
2808
3062
  }
2809
3063
 
2810
- declare const FileInputButton: React$1.ForwardRefExoticComponent<Props$B & React$1.RefAttributes<HTMLInputElement>>;
2811
- interface Props$B extends Omit<Props$1O, 'onClick'> {
2812
- /**
2813
- * Unique input's id.
2814
- */
2815
- id: string;
3064
+ declare const Ellipsis: React$1.FC<Props$D>;
3065
+ interface Props$D {
2816
3066
  /**
2817
- * Main content of the component.
3067
+ * Items to display.
2818
3068
  */
2819
- children: React$1.ReactNode;
3069
+ items: string[] | React$1.ReactNode[];
2820
3070
  /**
2821
- * Input's name to register.
3071
+ * Maximum items to display before shortening.
2822
3072
  */
2823
- name?: string;
3073
+ maxVisibleItems?: number;
3074
+ }
3075
+
3076
+ declare const FileInputButton: React$1.FC<Props$C>;
3077
+ interface Props$C extends Omit<Props$1Y, 'onClick'> {
2824
3078
  /**
2825
- * Callback invoked when the value is changed.
3079
+ * Input's `accept` attribute.
2826
3080
  */
2827
- onChange?: (evt: React$1.ChangeEvent<HTMLInputElement>) => Promise<void>;
3081
+ accept?: string;
2828
3082
  /**
2829
- * Input's value.
3083
+ * Main content of the component.
2830
3084
  */
2831
- value?: string;
3085
+ children: React$1.ReactNode;
2832
3086
  /**
2833
- * Input's accept attribute.
3087
+ * Callback invoked when the value is changed.
2834
3088
  */
2835
- accept?: string;
3089
+ onChange?: React$1.ChangeEventHandler<HTMLInputElement>;
2836
3090
  }
2837
3091
 
2838
- declare const FilePreviewActions: React$1.FC<Props$A>;
2839
- interface Props$A {
3092
+ declare const FilePreviewActions: React$1.FC<Props$B>;
3093
+ interface Props$B {
2840
3094
  /**
2841
3095
  * Label of the back button.
2842
3096
  */
@@ -2845,16 +3099,20 @@ interface Props$A {
2845
3099
  * Main content of the component.
2846
3100
  */
2847
3101
  children?: React$1.ReactNode;
2848
- /**
2849
- * Label of the close button.
2850
- */
2851
- closeBtnLabel: string;
2852
3102
  /**
2853
3103
  * Text displayed as title in the action bar.
2854
3104
  */
2855
3105
  title: string;
2856
3106
  }
2857
3107
 
3108
+ declare const FilePreviewColumn: React$1.FC<Props$A>;
3109
+ interface Props$A {
3110
+ /**
3111
+ * Main content of the component.
3112
+ */
3113
+ children: React$1.ReactNode;
3114
+ }
3115
+
2858
3116
  declare const FilePreviewContent: React$1.ForwardRefExoticComponent<Props$z & React$1.RefAttributes<HTMLDivElement>>;
2859
3117
  interface Props$z {
2860
3118
  /**
@@ -2871,8 +3129,8 @@ interface Props$y {
2871
3129
  children: React$1.ReactNode;
2872
3130
  }
2873
3131
 
2874
- declare const FilePreviewNavigationButtons: React$1.FC<Props$x>;
2875
- declare type Side = 'left' | 'right';
3132
+ declare const FilePreviewNavButton: React$1.FC<Props$x>;
3133
+ type Side = 'left' | 'right';
2876
3134
  interface Props$x {
2877
3135
  /**
2878
3136
  * Disables button.
@@ -2915,13 +3173,13 @@ interface Props$v {
2915
3173
  */
2916
3174
  onClose?: () => void;
2917
3175
  /**
2918
- * Callback invoked when left arrow is clicked.
3176
+ * Callback invoked when next item is requested.
2919
3177
  */
2920
- onLeftArrowDown?: () => void;
3178
+ onNext?: () => void;
2921
3179
  /**
2922
- * Callback invoked when right arrow is clicked.
3180
+ * Callback invoked when previous item is requested.
2923
3181
  */
2924
- onRightArrowDown?: () => void;
3182
+ onPrev?: () => void;
2925
3183
  /**
2926
3184
  * Opens file preview.
2927
3185
  */
@@ -3002,11 +3260,11 @@ interface SelectKeyboardNavProps {
3002
3260
  /**
3003
3261
  * Toggles selection of a provided option.
3004
3262
  */
3005
- declare type SelectToggleHandler = (opt: SelectOption) => void;
3263
+ type SelectToggleHandler = (opt: SelectOption) => void;
3006
3264
  /**
3007
3265
  * Gets next / previous option (for keyboard selection).
3008
3266
  */
3009
- declare type SelectKeyboardNextIdGetter = (options: SelectOption[], currentIndex: number) => SelectOption | undefined;
3267
+ type SelectKeyboardNextIdGetter = (options: SelectOption[], currentIndex: number) => SelectOption | undefined;
3010
3268
 
3011
3269
  declare const Select: React$1.FC<Props$t>;
3012
3270
  interface Props$t {
@@ -3050,6 +3308,10 @@ interface Props$t {
3050
3308
  * Allows to search through options.
3051
3309
  */
3052
3310
  searchable?: boolean;
3311
+ /**
3312
+ * Sizing variant.
3313
+ */
3314
+ size?: 'small' | 'medium';
3053
3315
  }
3054
3316
 
3055
3317
  declare const Notifications: React$1.FC<Props$s>;
@@ -3100,7 +3362,7 @@ declare const Notification: React$1.FC<Props$q>;
3100
3362
  /**
3101
3363
  * `Notification` component is rendered as part of `TransitionGroup` and therefore gets transition props in addition to its regular props.
3102
3364
  */
3103
- declare type Props$q = Partial<TransitionProps> & {
3365
+ type Props$q = Partial<TransitionProps> & {
3104
3366
  /**
3105
3367
  * Label for "Close" button.
3106
3368
  */
@@ -3171,8 +3433,8 @@ interface Props$o {
3171
3433
  labelCopied: string;
3172
3434
  }
3173
3435
 
3174
- declare type BreakpointKey = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
3175
- declare type BreakpointMap = Record<BreakpointKey, number>;
3436
+ type BreakpointKey = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
3437
+ type BreakpointMap = Record<BreakpointKey, number>;
3176
3438
  /**
3177
3439
  * Encapsulates logic that allows to compare specified breakpoints.
3178
3440
  * Breakpoint values are treated as equivalent of CSS `min-width` property.
@@ -3288,7 +3550,7 @@ interface Props$k {
3288
3550
  }
3289
3551
 
3290
3552
  declare const LoadingButton: React$1.ForwardRefExoticComponent<Props$j & React$1.RefAttributes<HTMLButtonElement>>;
3291
- interface Props$j extends Props$1O {
3553
+ interface Props$j extends Props$1Y {
3292
3554
  /**
3293
3555
  * Delays loader appearance. Defaults to `true`.
3294
3556
  */
@@ -3481,6 +3743,14 @@ interface Props$5 {
3481
3743
  * Label of the close button.
3482
3744
  */
3483
3745
  closeBtnLabel: string;
3746
+ /**
3747
+ * Name of selected icon.
3748
+ */
3749
+ iconName?: IconName;
3750
+ /**
3751
+ * Renders custom icon.
3752
+ */
3753
+ iconRender?: IconRenderProp;
3484
3754
  }
3485
3755
 
3486
3756
  declare const DrawerSection: React$1.ForwardRefExoticComponent<Props$4 & React$1.RefAttributes<HTMLDivElement>>;
@@ -3551,4 +3821,4 @@ interface Props {
3551
3821
  children: React$1.ReactNode;
3552
3822
  }
3553
3823
 
3554
- export { Bottombar, Button, ButtonColor, ButtonSize, ButtonType, CircularLoader, ContainerQuery, ContainerQueryProvider, CopyButton, CopyableInput, Dialog, DialogActions, DialogColumn, DialogFooter, DialogHeader, DialogRow, DialogSection, Dimensions, DocIcon, DocIconName, DragDimensionsHandler, DragHandler, DraggableOptions, DraggableState, Drawer, DrawerActions, DrawerContent, DrawerHeader, DrawerSection, EmptyView, EmptyViewLabel, FileInputButton, FilePreview, FilePreviewActions, FilePreviewContent, FilePreviewHoverable, FilePreviewNavigationButtons as FilePreviewNavButton, FilePreviewTooltip, Fixed, FixedContext, FixedProvider, Form, FormFeedback, FormGroup, FormGroupColumn, FormGroupInfo, FormInputLabel, Gallery, GalleryFigure, GalleryItem, Icon, IconColor, IconName, IconRenderProp, IconRenderer, IconSize, Input, Props$1A as InputProps, List, ListDndChildProps, ListDndItem, ListDndItemHookProps, ListDndMoveItem, ListDndOnDragEnd, ListDndSetDraggable, ListDndSetDraggablePartial, ListItem, ListItemActions, ListItemContent, LoadingButton, Menu, MenuItem, MenuSection, MenuSubSection, MouseEventButton, Navbar, NavbarButton, NavbarCreditLink, NavbarItem, NavbarItemFixed, Notification, NotificationDetails, Notifications, OnScrollHandler, Modal as Overlay, Pagination, Panel, PanelActions, PanelColumn, PanelContent, PanelContentProp, PanelDragHandle, PanelList, PanelListDivider, PanelSide, PanelSkeleton, PanelTitle, Popper, PopperAnchorRef, PopperArrow, PopperContext, PopperOffset, PopperOffsetValue, PopperPlacement, ProgressPanel, PropertiesTable, PropertiesTableRow, RInterval, RangeSlider, ResizeOptions, ResponsiveImage, ScrollCoordsConfig, ScrollOptions, SearchDialog, SearchDialogActions, SearchDialogContent, SearchDialogFallback, SearchDialogHeader, SearchDialogInput, SearchDialogSection, SearchResultsBar, SearchResultsBarFilters, SearchResultsBarPhrase, Select, SelectKeyboardNavProps, SelectKeyboardNextIdGetter, SelectOption, SelectToggleHandler, SelectionArea, SelectionAreaCoords, Skeleton, SortButton, SortableDndList, SortableDndListItem, Switch, SwitchInput, SwitchView, Tab, Tabs, Tag, TagInput, TagLabel, TagList, Tooltip, Topbar, TopbarAction, UIContext, UIProvider, Props$T as UIProviderProps, View, ViewContent, ViewContentBar, ViewContentWrapper, ViewDialog, Props$U as ViewDialogProps, ViewFooter, ViewHeader, ViewSideContent, ViewWrapper, XYCoord, areItemsIdentical, base64FromBlurHash, clamp, clsx, copyToClipboard, formatTimeDistance, getKeyHandler, getPixelCountFromImageBlob, getScrollVectors, getStandardDeviation, getValidChildren, hasOwnProperty, matchesCombination, noOp, rInterval, useBatchUpdate, useClickAway, useClipboard, useContainerQuery, useDeferredUnmount, useDelay, useDownload, useDraggable, useElementVisibility, useFilesDrop, useFixedCtx, useGridSelection, useIsMounted, useIsomorphicLayoutEffect, useItemsOverflow, useListDnd, usePopperCtx, useResettableTimeout, useResize, useResponsiveSizes, useScaleDown, useScroll, useScrollDnd, useToggle, useUIContext, validators_d as validators };
3824
+ export { Bottombar, Button, ButtonColor, ButtonSize, ButtonType, COLLAPSE_THRESHOLD, CONTAINER_QUERY_BREAKPOINTS, CircularLoader, ContainerQuery, ContainerQueryProvider, CopyButton, CopyableInput, Dialog, DialogActions, DialogColumn, DialogFooter, DialogHeader, DialogProgressHeader, DialogRow, DialogSection, Dimensions, DocIcon, DocIconName, DragDimensionsHandler, DragHandler, DraggableOptions, DraggableState, Drawer, DrawerActions, DrawerContent, DrawerHeader, DrawerSection, Ellipsis, EmptyView, EmptyViewLabel, FileInputButton, FilePreview, FilePreviewActions, FilePreviewColumn, FilePreviewContent, FilePreviewHoverable, FilePreviewNavButton, FilePreviewTooltip, Fixed, FixedContext, FixedProvider, Form, FormFeedback, FormGroup, FormGroupColumn, FormGroupInfo, FormInputLabel, Gallery, GalleryFigure, GalleryItem, Icon, IconColor, IconName, IconRenderProp, IconRenderer, IconSize, Input, Props$1J as InputProps, List, ListDndChildProps, ListDndItem, ListDndItemHookProps, ListDndMoveItem, ListDndOnDragEnd, ListDndSetDraggable, ListDndSetDraggablePartial, ListItem, ListItemActions, ListItemContent, LoadingButton, Menu, MenuItem, MenuSection, MenuSubSection, MouseEventButton, NAVBAR_COLLAPSED_WIDTH, NAVBAR_MAX_WIDTH, NAVBAR_MIN_WIDTH, NAVBAR_PREVIEW_TIMEOUT, Navbar, NavbarContext, NavbarItem, NavbarItemContainer, NavbarItemContent, NavbarItemLabel, NavbarItemsGroup, NavbarLink, NavbarScrollableContent, NavbarSeparator, NavbarToggleButton, Notification, NotificationDetails, Notifications, OnScrollHandler, Modal as Overlay, Pagination, Panel, PanelActions, PanelColumn, PanelContent, PanelContentProp, PanelDragHandle, PanelList, PanelListDivider, PanelSide, PanelSkeleton, PanelTitle, Popper, PopperAnchorRef, PopperArrow, PopperContext, PopperOffset, PopperOffsetValue, PopperPlacement, ProgressPanel, PropertiesTable, PropertiesTableRow, Props$1Z as Props, RInterval, RangeSlider, ResizeOptions, ResponsiveImage, ResponsiveImageFallback, ResponsiveImageFit, ResponsiveImageScalable, ScrollCoordsConfig, ScrollOptions, SearchDialog, SearchDialogActions, SearchDialogContent, SearchDialogFallback, SearchDialogHeader, SearchDialogInput, SearchDialogSection, SearchResultsBar, SearchResultsBarFilters, SearchResultsBarPhrase, Select, SelectKeyboardNavProps, SelectKeyboardNextIdGetter, SelectOption, SelectToggleHandler, SelectionArea, SelectionAreaCoords, Skeleton, SortButton, SortableDndList, SortableDndListItem, Switch, SwitchInput, SwitchView, Tab, Tabs, Tag, TagInput, TagLabel, TagList, Tooltip, Topbar, TopbarAction, UIContext, UIProvider, Props$V as UIProviderProps, View, ViewContent, ViewContentBar, ViewContentWrapper, ViewDialog, Props$W as ViewDialogProps, ViewFooter, ViewHeader, ViewSideContent, ViewWrapper, XYCoord, areItemsIdentical, base64FromBlurHash, clamp, clsx, copyToClipboard, formatTimeDistance, getKeyHandler, getPixelCountFromImageBlob, getScrollVectors, getStandardDeviation, getValidChildren, hasOwnProperty, matchesCombination, navbarContextInitProps, noOp, rInterval, uiContextInitProps, useBatchUpdate, useClickAway, useClipboard, useContainerQuery, useDeferredUnmount, useDelay, useDownload, useDraggable, useElementVisibility, useFilesDrop, useFixedCtx, useGridSelection, useIsMounted, useIsomorphicLayoutEffect, useItemsOverflow, useListDnd, useNavbarCtx, usePopperCtx, useResettableTimeout, useResize, useResponsiveSizes, useScaleDown, useScroll, useScrollDnd, useToggle, useUIContext, validators_d as validators };