@ckbox/components 1.1.1 → 1.2.0-dev.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -3
- package/dist/index.d.ts +1380 -437
- package/dist/index.js +1 -1
- package/dist/styles/ckbox.css +3 -3
- package/dist/styles/themes/aqua.css +1 -1
- package/dist/styles/themes/dark.css +1 -1
- package/package.json +5 -5
package/dist/index.d.ts
CHANGED
|
@@ -2,29 +2,33 @@
|
|
|
2
2
|
/**
|
|
3
3
|
* @license Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
|
|
4
4
|
*/
|
|
5
|
-
import * as React from 'react';
|
|
5
|
+
import * as React$1 from 'react';
|
|
6
6
|
import React__default, { useEffect } from 'react';
|
|
7
7
|
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.ForwardRefExoticComponent<Props$
|
|
12
|
-
interface Props$
|
|
11
|
+
declare const Bottombar: React$1.ForwardRefExoticComponent<Props$1Q & React$1.RefAttributes<HTMLDivElement>>;
|
|
12
|
+
interface Props$1Q {
|
|
13
13
|
/**
|
|
14
14
|
* Main content of the component.
|
|
15
15
|
*/
|
|
16
|
-
children: React.ReactNode;
|
|
16
|
+
children: React$1.ReactNode;
|
|
17
17
|
/**
|
|
18
18
|
* Content rendered on the right side of the bar.
|
|
19
19
|
*/
|
|
20
|
-
sideContent: React.ReactNode;
|
|
20
|
+
sideContent: React$1.ReactNode;
|
|
21
21
|
/**
|
|
22
22
|
* Content rendered as status summary in a absolute left-positioned container
|
|
23
23
|
*/
|
|
24
|
-
statusContent?: React.ReactNode;
|
|
24
|
+
statusContent?: React$1.ReactNode;
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
-
|
|
27
|
+
declare type ButtonSize = 'small' | 'medium' | 'large';
|
|
28
|
+
declare type ButtonType = 'fill' | 'outline' | 'plain';
|
|
29
|
+
declare type ButtonColor = 'action' | 'danger' | 'neutral';
|
|
30
|
+
|
|
31
|
+
interface Props$1P {
|
|
28
32
|
/**
|
|
29
33
|
* Sets root class.
|
|
30
34
|
*/
|
|
@@ -35,65 +39,73 @@ interface Props$16 {
|
|
|
35
39
|
onClick?: () => void;
|
|
36
40
|
}
|
|
37
41
|
|
|
38
|
-
declare const ArrowLeftEnd: React.FC<Props$
|
|
42
|
+
declare const ArrowLeftEnd: React$1.FC<Props$1P>;
|
|
43
|
+
|
|
44
|
+
declare const ArrowRightEnd: React$1.FC<Props$1P>;
|
|
45
|
+
|
|
46
|
+
declare const ArrowLeft: React$1.FC<Props$1P>;
|
|
47
|
+
|
|
48
|
+
declare const ArrowRight: React$1.FC<Props$1P>;
|
|
49
|
+
|
|
50
|
+
declare const Cabinet: React$1.FC<Props$1P>;
|
|
39
51
|
|
|
40
|
-
declare const
|
|
52
|
+
declare const Check: React$1.FC<Props$1P>;
|
|
41
53
|
|
|
42
|
-
declare const
|
|
54
|
+
declare const ChevronDown: React$1.FC<Props$1P>;
|
|
43
55
|
|
|
44
|
-
declare const
|
|
56
|
+
declare const ChevronLeft: React$1.FC<Props$1P>;
|
|
45
57
|
|
|
46
|
-
declare const
|
|
58
|
+
declare const ChevronRight: React$1.FC<Props$1P>;
|
|
47
59
|
|
|
48
|
-
declare const
|
|
60
|
+
declare const ClockTwo: React$1.FC<Props$1P>;
|
|
49
61
|
|
|
50
|
-
declare const
|
|
62
|
+
declare const Close: React$1.FC<Props$1P>;
|
|
51
63
|
|
|
52
|
-
declare const
|
|
64
|
+
declare const Cog: React$1.FC<Props$1P>;
|
|
53
65
|
|
|
54
|
-
declare const
|
|
66
|
+
declare const Copy: React$1.FC<Props$1P>;
|
|
55
67
|
|
|
56
|
-
declare const
|
|
68
|
+
declare const Docs: React$1.FC<Props$1P>;
|
|
57
69
|
|
|
58
|
-
declare const
|
|
70
|
+
declare const DotsVertical: React$1.FC<Props$1P>;
|
|
59
71
|
|
|
60
|
-
declare const
|
|
72
|
+
declare const Download: React$1.FC<Props$1P>;
|
|
61
73
|
|
|
62
|
-
declare const
|
|
74
|
+
declare const DragHandle: React$1.FC<Props$1P>;
|
|
63
75
|
|
|
64
|
-
declare const
|
|
76
|
+
declare const Filter: React$1.FC<Props$1P>;
|
|
65
77
|
|
|
66
|
-
declare const
|
|
78
|
+
declare const Folder: React$1.FC<Props$1P>;
|
|
67
79
|
|
|
68
|
-
declare const
|
|
80
|
+
declare const Image: React$1.FC<Props$1P>;
|
|
69
81
|
|
|
70
|
-
declare const
|
|
82
|
+
declare const Info: React$1.FC<Props$1P>;
|
|
71
83
|
|
|
72
|
-
declare const
|
|
84
|
+
declare const InfoSquare: React$1.FC<Props$1P>;
|
|
73
85
|
|
|
74
|
-
declare const
|
|
86
|
+
declare const Pencil: React$1.FC<Props$1P>;
|
|
75
87
|
|
|
76
|
-
declare const
|
|
88
|
+
declare const Plus: React$1.FC<Props$1P>;
|
|
77
89
|
|
|
78
|
-
declare const
|
|
90
|
+
declare const Settings: React$1.FC<Props$1P>;
|
|
79
91
|
|
|
80
|
-
declare const
|
|
92
|
+
declare const Sort: React$1.FC<Props$1P>;
|
|
81
93
|
|
|
82
|
-
declare const
|
|
94
|
+
declare const Spinner: React$1.FC<Props$1P>;
|
|
83
95
|
|
|
84
|
-
declare const
|
|
96
|
+
declare const Trash: React$1.FC<Props$1P>;
|
|
85
97
|
|
|
86
|
-
declare const
|
|
98
|
+
declare const Upload: React$1.FC<Props$1P>;
|
|
87
99
|
|
|
88
|
-
declare const
|
|
100
|
+
declare const Warning: React$1.FC<Props$1P>;
|
|
89
101
|
|
|
90
|
-
declare const
|
|
102
|
+
declare const WarningFill: React$1.FC<Props$1P>;
|
|
91
103
|
|
|
92
|
-
declare const
|
|
104
|
+
declare const Search: React$1.FC<Props$1P>;
|
|
93
105
|
|
|
94
|
-
declare const
|
|
106
|
+
declare const SearchMissingResults: React$1.FC<Props$1P>;
|
|
95
107
|
|
|
96
|
-
declare const XCircle: React.FC<Props$
|
|
108
|
+
declare const XCircle: React$1.FC<Props$1P>;
|
|
97
109
|
|
|
98
110
|
declare const icons$1_ArrowLeftEnd: typeof ArrowLeftEnd;
|
|
99
111
|
declare const icons$1_ArrowRightEnd: typeof ArrowRightEnd;
|
|
@@ -111,18 +123,22 @@ declare const icons$1_Docs: typeof Docs;
|
|
|
111
123
|
declare const icons$1_DotsVertical: typeof DotsVertical;
|
|
112
124
|
declare const icons$1_Download: typeof Download;
|
|
113
125
|
declare const icons$1_DragHandle: typeof DragHandle;
|
|
126
|
+
declare const icons$1_Filter: typeof Filter;
|
|
114
127
|
declare const icons$1_Folder: typeof Folder;
|
|
115
128
|
declare const icons$1_Image: typeof Image;
|
|
116
129
|
declare const icons$1_Info: typeof Info;
|
|
130
|
+
declare const icons$1_InfoSquare: typeof InfoSquare;
|
|
117
131
|
declare const icons$1_Pencil: typeof Pencil;
|
|
118
132
|
declare const icons$1_Plus: typeof Plus;
|
|
119
133
|
declare const icons$1_Settings: typeof Settings;
|
|
120
134
|
declare const icons$1_Sort: typeof Sort;
|
|
135
|
+
declare const icons$1_Spinner: typeof Spinner;
|
|
121
136
|
declare const icons$1_Trash: typeof Trash;
|
|
122
137
|
declare const icons$1_Upload: typeof Upload;
|
|
123
138
|
declare const icons$1_Warning: typeof Warning;
|
|
124
139
|
declare const icons$1_WarningFill: typeof WarningFill;
|
|
125
140
|
declare const icons$1_Search: typeof Search;
|
|
141
|
+
declare const icons$1_SearchMissingResults: typeof SearchMissingResults;
|
|
126
142
|
declare const icons$1_XCircle: typeof XCircle;
|
|
127
143
|
declare namespace icons$1 {
|
|
128
144
|
export {
|
|
@@ -143,18 +159,22 @@ declare namespace icons$1 {
|
|
|
143
159
|
icons$1_DotsVertical as DotsVertical,
|
|
144
160
|
icons$1_Download as Download,
|
|
145
161
|
icons$1_DragHandle as DragHandle,
|
|
162
|
+
icons$1_Filter as Filter,
|
|
146
163
|
icons$1_Folder as Folder,
|
|
147
164
|
icons$1_Image as Image,
|
|
148
165
|
icons$1_Info as Info,
|
|
166
|
+
icons$1_InfoSquare as InfoSquare,
|
|
149
167
|
icons$1_Pencil as Pencil,
|
|
150
168
|
icons$1_Plus as Plus,
|
|
151
169
|
icons$1_Settings as Settings,
|
|
152
170
|
icons$1_Sort as Sort,
|
|
171
|
+
icons$1_Spinner as Spinner,
|
|
153
172
|
icons$1_Trash as Trash,
|
|
154
173
|
icons$1_Upload as Upload,
|
|
155
174
|
icons$1_Warning as Warning,
|
|
156
175
|
icons$1_WarningFill as WarningFill,
|
|
157
176
|
icons$1_Search as Search,
|
|
177
|
+
icons$1_SearchMissingResults as SearchMissingResults,
|
|
158
178
|
icons$1_XCircle as XCircle,
|
|
159
179
|
};
|
|
160
180
|
}
|
|
@@ -167,8 +187,8 @@ declare type IconName = keyof typeof icons$1;
|
|
|
167
187
|
declare type IconSize = 'small' | 'base' | 'medium' | 'big' | 'bigger' | 'humongous';
|
|
168
188
|
declare type IconColor = 'accent' | 'disabled' | 'danger' | 'warning';
|
|
169
189
|
|
|
170
|
-
declare const Icon: React.FC<Props$
|
|
171
|
-
interface Props$
|
|
190
|
+
declare const Icon: React$1.FC<Props$1O>;
|
|
191
|
+
interface Props$1O {
|
|
172
192
|
/**
|
|
173
193
|
* Sets root class.
|
|
174
194
|
*/
|
|
@@ -194,8 +214,12 @@ interface Props$15 {
|
|
|
194
214
|
size?: IconSize;
|
|
195
215
|
}
|
|
196
216
|
|
|
197
|
-
declare const Button: React.ForwardRefExoticComponent<Props$
|
|
198
|
-
interface Props$
|
|
217
|
+
declare const Button: React$1.ForwardRefExoticComponent<Props$1N & React$1.RefAttributes<HTMLButtonElement>>;
|
|
218
|
+
interface Props$1N {
|
|
219
|
+
/**
|
|
220
|
+
* Applies active styling.
|
|
221
|
+
*/
|
|
222
|
+
active?: boolean;
|
|
199
223
|
/**
|
|
200
224
|
* Sets root class.
|
|
201
225
|
*/
|
|
@@ -203,11 +227,11 @@ interface Props$14 {
|
|
|
203
227
|
/**
|
|
204
228
|
* Sets color type. Use in combination with `type` to achieve desired styling.
|
|
205
229
|
*/
|
|
206
|
-
color?:
|
|
230
|
+
color?: ButtonColor;
|
|
207
231
|
/**
|
|
208
232
|
* Main content of the component.
|
|
209
233
|
*/
|
|
210
|
-
children?: React.ReactNode;
|
|
234
|
+
children?: React$1.ReactNode;
|
|
211
235
|
/**
|
|
212
236
|
* Displays as disabled.
|
|
213
237
|
*/
|
|
@@ -229,9 +253,13 @@ interface Props$14 {
|
|
|
229
253
|
*/
|
|
230
254
|
label?: string;
|
|
231
255
|
/**
|
|
232
|
-
*
|
|
256
|
+
* Icon to show next to content.
|
|
233
257
|
*/
|
|
234
258
|
icon?: IconName;
|
|
259
|
+
/**
|
|
260
|
+
* Allows to pass custom content.
|
|
261
|
+
*/
|
|
262
|
+
content?: React$1.ReactNode;
|
|
235
263
|
/**
|
|
236
264
|
* Icon placement.
|
|
237
265
|
*/
|
|
@@ -239,23 +267,35 @@ interface Props$14 {
|
|
|
239
267
|
/**
|
|
240
268
|
* Sets `click` event handler.
|
|
241
269
|
*/
|
|
242
|
-
onClick?: React.MouseEventHandler;
|
|
270
|
+
onClick?: React$1.MouseEventHandler;
|
|
243
271
|
/**
|
|
244
272
|
* Sets `mouseleave` event handler.
|
|
245
273
|
*/
|
|
246
|
-
onMouseLeave?: React.MouseEventHandler;
|
|
274
|
+
onMouseLeave?: React$1.MouseEventHandler;
|
|
275
|
+
/**
|
|
276
|
+
* Allows to make text color transparent.
|
|
277
|
+
*/
|
|
278
|
+
textColor?: 'default' | 'transparent';
|
|
247
279
|
/**
|
|
248
280
|
* Sets styling type. Use in combination with `color` to achieve desired styling.
|
|
249
281
|
*/
|
|
250
|
-
type?:
|
|
282
|
+
type?: ButtonType;
|
|
283
|
+
/**
|
|
284
|
+
* Specifies tab index for the button.
|
|
285
|
+
*/
|
|
286
|
+
tabIndex?: number;
|
|
251
287
|
/**
|
|
252
288
|
* Sets sizing of the button.
|
|
253
289
|
*/
|
|
254
|
-
sizing?:
|
|
290
|
+
sizing?: ButtonSize;
|
|
291
|
+
/**
|
|
292
|
+
* Disables line wrapping for label text
|
|
293
|
+
*/
|
|
294
|
+
disabledLabelWrapping?: boolean;
|
|
255
295
|
}
|
|
256
296
|
|
|
257
|
-
declare const CircularLoader: React.
|
|
258
|
-
interface Props$
|
|
297
|
+
declare const CircularLoader: React$1.ForwardRefExoticComponent<Props$1M & React$1.RefAttributes<HTMLButtonElement>>;
|
|
298
|
+
interface Props$1M {
|
|
259
299
|
/**
|
|
260
300
|
* Component's label.
|
|
261
301
|
*/
|
|
@@ -274,45 +314,45 @@ interface Props$13 {
|
|
|
274
314
|
onClick?: () => void;
|
|
275
315
|
}
|
|
276
316
|
|
|
277
|
-
declare const DialogActions: React.FC<Props$
|
|
278
|
-
interface Props$
|
|
317
|
+
declare const DialogActions: React$1.FC<Props$1L>;
|
|
318
|
+
interface Props$1L {
|
|
279
319
|
/**
|
|
280
320
|
* Main content of the component.
|
|
281
321
|
*/
|
|
282
|
-
children: React.ReactNode;
|
|
322
|
+
children: React$1.ReactNode;
|
|
283
323
|
}
|
|
284
324
|
|
|
285
|
-
declare const DialogColumn: React.ForwardRefExoticComponent<Props$
|
|
286
|
-
interface Props$
|
|
325
|
+
declare const DialogColumn: React$1.ForwardRefExoticComponent<Props$1K & React$1.RefAttributes<HTMLDivElement>>;
|
|
326
|
+
interface Props$1K extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
287
327
|
/**
|
|
288
328
|
* Main content of the component.
|
|
289
329
|
*/
|
|
290
|
-
children: React.ReactNode;
|
|
330
|
+
children: React$1.ReactNode;
|
|
291
331
|
/**
|
|
292
332
|
* Allows its content to overflow.
|
|
293
333
|
*/
|
|
294
334
|
overflow?: boolean;
|
|
295
335
|
}
|
|
296
336
|
|
|
297
|
-
declare const DialogFooter: React.FC<Props$
|
|
298
|
-
interface Props$
|
|
337
|
+
declare const DialogFooter: React$1.FC<Props$1J>;
|
|
338
|
+
interface Props$1J {
|
|
299
339
|
/**
|
|
300
340
|
* Main content of the component.
|
|
301
341
|
*/
|
|
302
|
-
children: React.ReactNode;
|
|
342
|
+
children: React$1.ReactNode;
|
|
303
343
|
/**
|
|
304
344
|
* Content placed on a right-side of the footer.
|
|
305
345
|
*/
|
|
306
346
|
sideContent?: {
|
|
307
|
-
label: React.ReactNode;
|
|
347
|
+
label: React$1.ReactNode;
|
|
308
348
|
error?: boolean;
|
|
309
349
|
warning?: boolean;
|
|
310
350
|
onClick?: () => void;
|
|
311
351
|
}[];
|
|
312
352
|
}
|
|
313
353
|
|
|
314
|
-
declare const DialogHeader: React.FC<Props
|
|
315
|
-
interface Props
|
|
354
|
+
declare const DialogHeader: React$1.FC<Props$1I>;
|
|
355
|
+
interface Props$1I {
|
|
316
356
|
/**
|
|
317
357
|
* Sets focus on close button on mount.
|
|
318
358
|
*/
|
|
@@ -336,7 +376,7 @@ interface Props$$ {
|
|
|
336
376
|
/**
|
|
337
377
|
* Secondary title.
|
|
338
378
|
*/
|
|
339
|
-
subTitle?: React.ReactNode;
|
|
379
|
+
subTitle?: React$1.ReactNode;
|
|
340
380
|
/**
|
|
341
381
|
* Dialog title.
|
|
342
382
|
*/
|
|
@@ -345,6 +385,10 @@ interface Props$$ {
|
|
|
345
385
|
* Dialog title size.
|
|
346
386
|
*/
|
|
347
387
|
titleSize?: 'sm' | 'md';
|
|
388
|
+
/**
|
|
389
|
+
* Sets ID of dialog header description element.
|
|
390
|
+
*/
|
|
391
|
+
descriptionId?: string;
|
|
348
392
|
/**
|
|
349
393
|
* Causes header height to be based on font size, even if title is not provided.
|
|
350
394
|
*/
|
|
@@ -355,20 +399,20 @@ interface Props$$ {
|
|
|
355
399
|
type?: 'success' | 'error' | 'info';
|
|
356
400
|
}
|
|
357
401
|
|
|
358
|
-
declare const DialogRow: React.FC<Props$
|
|
359
|
-
interface Props$
|
|
402
|
+
declare const DialogRow: React$1.FC<Props$1H>;
|
|
403
|
+
interface Props$1H extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
360
404
|
/**
|
|
361
405
|
* Main content of the component.
|
|
362
406
|
*/
|
|
363
|
-
children: React.ReactNode;
|
|
407
|
+
children: React$1.ReactNode;
|
|
364
408
|
}
|
|
365
409
|
|
|
366
|
-
declare const DialogSection: React.FC<Props$
|
|
367
|
-
interface Props$
|
|
410
|
+
declare const DialogSection: React$1.FC<Props$1G>;
|
|
411
|
+
interface Props$1G {
|
|
368
412
|
/**
|
|
369
413
|
* Main content of the component.
|
|
370
414
|
*/
|
|
371
|
-
children: React.ReactNode;
|
|
415
|
+
children: React$1.ReactNode;
|
|
372
416
|
/**
|
|
373
417
|
* Removes top spacing.
|
|
374
418
|
*/
|
|
@@ -377,6 +421,10 @@ interface Props$Z {
|
|
|
377
421
|
* Makes component full height of its container.
|
|
378
422
|
*/
|
|
379
423
|
fullHeight?: boolean;
|
|
424
|
+
/**
|
|
425
|
+
* Sets dialog section height.
|
|
426
|
+
*/
|
|
427
|
+
height?: 'md';
|
|
380
428
|
/**
|
|
381
429
|
* Turns on accent background color.
|
|
382
430
|
*/
|
|
@@ -388,7 +436,7 @@ interface Props$Z {
|
|
|
388
436
|
/**
|
|
389
437
|
* Accepts ref.
|
|
390
438
|
*/
|
|
391
|
-
ref?: React.Ref<HTMLDivElement>;
|
|
439
|
+
ref?: React$1.Ref<HTMLDivElement>;
|
|
392
440
|
/**
|
|
393
441
|
* Shows content as an error.
|
|
394
442
|
*/
|
|
@@ -397,67 +445,121 @@ interface Props$Z {
|
|
|
397
445
|
* Shows content as a header.
|
|
398
446
|
*/
|
|
399
447
|
header?: boolean;
|
|
448
|
+
/**
|
|
449
|
+
* Sets the dialog section ID.
|
|
450
|
+
*/
|
|
451
|
+
id?: string;
|
|
400
452
|
}
|
|
401
453
|
|
|
402
|
-
|
|
403
|
-
interface Props$Y {
|
|
454
|
+
interface DialogRootProps {
|
|
404
455
|
/**
|
|
405
456
|
* Main content of the component.
|
|
406
457
|
*/
|
|
407
458
|
children: React.ReactNode;
|
|
408
459
|
/**
|
|
409
|
-
* Sets dialog
|
|
460
|
+
* Sets dialog height.
|
|
410
461
|
*/
|
|
411
|
-
|
|
462
|
+
height?: 'md' | 'lg';
|
|
463
|
+
/**
|
|
464
|
+
* Shows dialog as a modal.
|
|
465
|
+
*/
|
|
466
|
+
modal?: boolean;
|
|
467
|
+
/**
|
|
468
|
+
* Marks dialog as an alert.
|
|
469
|
+
*/
|
|
470
|
+
alert?: boolean;
|
|
412
471
|
/**
|
|
413
472
|
* Callback invoked when dialog is closed.
|
|
414
473
|
*/
|
|
415
474
|
onClose?: () => void;
|
|
416
475
|
/**
|
|
417
|
-
* Callback invoked on
|
|
418
|
-
* Consider throttling the callback invocation.
|
|
476
|
+
* Callback invoked on `keydown` event.
|
|
419
477
|
*/
|
|
420
|
-
|
|
478
|
+
onKeyDown?: React.KeyboardEventHandler<HTMLElement>;
|
|
421
479
|
/**
|
|
422
|
-
* Sets dialog
|
|
480
|
+
* Sets dialog width.
|
|
423
481
|
*/
|
|
424
|
-
|
|
482
|
+
width?: 'sm' | 'md' | 'lg' | 'xl';
|
|
425
483
|
/**
|
|
426
|
-
* Sets dialog
|
|
484
|
+
* Sets the dialog label.
|
|
427
485
|
*/
|
|
428
|
-
|
|
486
|
+
label?: string;
|
|
487
|
+
/**
|
|
488
|
+
* Sets the ID of label element.
|
|
489
|
+
*/
|
|
490
|
+
labelledBy?: string;
|
|
491
|
+
/**
|
|
492
|
+
* Sets the ID of description element.
|
|
493
|
+
*/
|
|
494
|
+
describedBy?: string;
|
|
495
|
+
}
|
|
496
|
+
interface DialogSwitchProps extends DialogRootProps {
|
|
497
|
+
/**
|
|
498
|
+
* Dialog's minimize / maximize action will be animated if set to `true`.
|
|
499
|
+
* Dialogs in `modal` mode cannot be animated.
|
|
500
|
+
*/
|
|
501
|
+
animated?: boolean;
|
|
502
|
+
/**
|
|
503
|
+
* Element associated with dialog's minimize / maximize action. Use in combination with `animated` prop.
|
|
504
|
+
*/
|
|
505
|
+
animationAnchor?: HTMLElement | null;
|
|
429
506
|
/**
|
|
430
|
-
*
|
|
507
|
+
* Shows dialog as a modal.
|
|
431
508
|
*/
|
|
432
509
|
modal?: boolean;
|
|
510
|
+
/**
|
|
511
|
+
* Callback invoked when dialog is closed.
|
|
512
|
+
*/
|
|
513
|
+
onClose?: () => void;
|
|
514
|
+
/**
|
|
515
|
+
* Opens dialog. Use in combination with `onClose`.
|
|
516
|
+
*/
|
|
517
|
+
open?: boolean;
|
|
518
|
+
}
|
|
519
|
+
interface DialogProps extends DialogSwitchProps {
|
|
520
|
+
/**
|
|
521
|
+
* Makes dialog draggable. Dialogs in `modal` mode cannot be draggable.
|
|
522
|
+
*/
|
|
523
|
+
draggable?: boolean;
|
|
524
|
+
/**
|
|
525
|
+
* Callback invoked on dragging the dialog. Use in combination with `draggable`.
|
|
526
|
+
*/
|
|
527
|
+
onDrag?: () => void;
|
|
433
528
|
}
|
|
434
529
|
|
|
435
|
-
|
|
530
|
+
/**
|
|
531
|
+
* Entry component for the dialog.
|
|
532
|
+
* Initializes selected dialog mode and optionally adds common options and draggability if needed.
|
|
533
|
+
*/
|
|
534
|
+
declare const Dialog: React$1.FC<Props$1F>;
|
|
535
|
+
declare type Props$1F = DialogProps;
|
|
536
|
+
|
|
537
|
+
interface Props$1E {
|
|
436
538
|
/**
|
|
437
539
|
* Sets root class.
|
|
438
540
|
*/
|
|
439
541
|
className: string;
|
|
440
542
|
}
|
|
441
543
|
|
|
442
|
-
declare const Zip: React.FC<Props$
|
|
544
|
+
declare const Zip: React$1.FC<Props$1E>;
|
|
443
545
|
|
|
444
|
-
declare const Empty: React.FC<Props$
|
|
546
|
+
declare const Empty: React$1.FC<Props$1E>;
|
|
445
547
|
|
|
446
|
-
declare const Excel: React.FC<Props$
|
|
548
|
+
declare const Excel: React$1.FC<Props$1E>;
|
|
447
549
|
|
|
448
|
-
declare const Img: React.FC<Props$
|
|
550
|
+
declare const Img: React$1.FC<Props$1E>;
|
|
449
551
|
|
|
450
|
-
declare const Movie: React.FC<Props$
|
|
552
|
+
declare const Movie: React$1.FC<Props$1E>;
|
|
451
553
|
|
|
452
|
-
declare const Music: React.FC<Props$
|
|
554
|
+
declare const Music: React$1.FC<Props$1E>;
|
|
453
555
|
|
|
454
|
-
declare const Pdf: React.FC<Props$
|
|
556
|
+
declare const Pdf: React$1.FC<Props$1E>;
|
|
455
557
|
|
|
456
|
-
declare const Ppt: React.FC<Props$
|
|
558
|
+
declare const Ppt: React$1.FC<Props$1E>;
|
|
457
559
|
|
|
458
|
-
declare const Txt: React.FC<Props$
|
|
560
|
+
declare const Txt: React$1.FC<Props$1E>;
|
|
459
561
|
|
|
460
|
-
declare const Word: React.FC<Props$
|
|
562
|
+
declare const Word: React$1.FC<Props$1E>;
|
|
461
563
|
|
|
462
564
|
declare const icons_Empty: typeof Empty;
|
|
463
565
|
declare const icons_Excel: typeof Excel;
|
|
@@ -483,29 +585,29 @@ declare namespace icons {
|
|
|
483
585
|
};
|
|
484
586
|
}
|
|
485
587
|
|
|
486
|
-
declare const DocIcon: React.FC<Props$
|
|
588
|
+
declare const DocIcon: React$1.FC<Props$1D>;
|
|
487
589
|
declare type DocIconName = keyof typeof icons;
|
|
488
|
-
interface Props$
|
|
590
|
+
interface Props$1D {
|
|
489
591
|
/**
|
|
490
592
|
* Name of selected icon.
|
|
491
593
|
*/
|
|
492
594
|
name: DocIconName;
|
|
493
595
|
}
|
|
494
596
|
|
|
495
|
-
declare const GalleryFigure: React.FC<Props$
|
|
496
|
-
interface Props$
|
|
597
|
+
declare const GalleryFigure: React$1.FC<Props$1C>;
|
|
598
|
+
interface Props$1C {
|
|
497
599
|
/**
|
|
498
600
|
* Main content of the component.
|
|
499
601
|
*/
|
|
500
|
-
children?: React.ReactNode;
|
|
602
|
+
children?: React$1.ReactNode;
|
|
501
603
|
/**
|
|
502
604
|
* Figure caption.
|
|
503
605
|
*/
|
|
504
606
|
caption: string;
|
|
505
607
|
}
|
|
506
608
|
|
|
507
|
-
declare const GalleryItem: React.ForwardRefExoticComponent<Props$
|
|
508
|
-
interface Props$
|
|
609
|
+
declare const GalleryItem: React$1.ForwardRefExoticComponent<Props$1B & React$1.RefAttributes<HTMLDivElement>>;
|
|
610
|
+
interface Props$1B {
|
|
509
611
|
/**
|
|
510
612
|
* Sets item as active.
|
|
511
613
|
*/
|
|
@@ -517,31 +619,35 @@ interface Props$U {
|
|
|
517
619
|
/**
|
|
518
620
|
* Main content of the component.
|
|
519
621
|
*/
|
|
520
|
-
children?: React.ReactNode;
|
|
622
|
+
children?: React$1.ReactNode;
|
|
521
623
|
/**
|
|
522
624
|
* Item name.
|
|
523
625
|
*/
|
|
524
626
|
name: string;
|
|
525
627
|
/**
|
|
526
|
-
* Sets `
|
|
628
|
+
* Sets `click` event handler.
|
|
527
629
|
*/
|
|
528
|
-
|
|
630
|
+
onClick?: React$1.MouseEventHandler<HTMLDivElement>;
|
|
529
631
|
/**
|
|
530
632
|
* Sets `keydown` event handler.
|
|
531
633
|
*/
|
|
532
|
-
onKeyDown?: React.KeyboardEventHandler<HTMLDivElement>;
|
|
634
|
+
onKeyDown?: React$1.KeyboardEventHandler<HTMLDivElement>;
|
|
533
635
|
/**
|
|
534
636
|
* Sets `dblclick` event handler.
|
|
535
637
|
*/
|
|
536
|
-
onDoubleClick?: React.MouseEventHandler<HTMLDivElement>;
|
|
638
|
+
onDoubleClick?: React$1.MouseEventHandler<HTMLDivElement>;
|
|
639
|
+
/**
|
|
640
|
+
* Sets `click` event handler for checkbox.
|
|
641
|
+
*/
|
|
642
|
+
onCheckboxClick?: React$1.MouseEventHandler<HTMLButtonElement>;
|
|
537
643
|
}
|
|
538
644
|
|
|
539
|
-
declare const Gallery: React.FC<Props$
|
|
540
|
-
interface Props$
|
|
645
|
+
declare const Gallery: React$1.FC<Props$1A>;
|
|
646
|
+
interface Props$1A {
|
|
541
647
|
/**
|
|
542
648
|
* Main content of the component.
|
|
543
649
|
*/
|
|
544
|
-
children: React.ReactNode;
|
|
650
|
+
children: React$1.ReactNode;
|
|
545
651
|
/**
|
|
546
652
|
* Represents zoom value. Pass value in range 0 .. 1.
|
|
547
653
|
*/
|
|
@@ -556,8 +662,8 @@ interface Props$T {
|
|
|
556
662
|
* Polymorphism for `ref` is tricky. Let's type it as `any` for now.
|
|
557
663
|
*/
|
|
558
664
|
|
|
559
|
-
declare const Input: React.ForwardRefExoticComponent<Pick<Props$
|
|
560
|
-
interface Props$
|
|
665
|
+
declare const Input: React$1.ForwardRefExoticComponent<Pick<Props$1z, "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$1z {
|
|
561
667
|
/**
|
|
562
668
|
* Input's class name.
|
|
563
669
|
*/
|
|
@@ -585,19 +691,19 @@ interface Props$S {
|
|
|
585
691
|
/**
|
|
586
692
|
* Callback invoked when the blur event is fired.
|
|
587
693
|
*/
|
|
588
|
-
onBlur?: (evt: React.ChangeEvent<any>) => void;
|
|
694
|
+
onBlur?: (evt: React$1.ChangeEvent<any>) => void;
|
|
589
695
|
/**
|
|
590
696
|
* Callback invoked when the value is changed.
|
|
591
697
|
*/
|
|
592
|
-
onChange?: (evt: React.ChangeEvent<any>) => void;
|
|
698
|
+
onChange?: (evt: React$1.ChangeEvent<any>) => void;
|
|
593
699
|
/**
|
|
594
700
|
* Callback invoked when the element receives focus.
|
|
595
701
|
*/
|
|
596
|
-
onFocus?: (evt: React.ChangeEvent<any>) => void;
|
|
702
|
+
onFocus?: (evt: React$1.ChangeEvent<any>) => void;
|
|
597
703
|
/**
|
|
598
704
|
* Callback invoked when the element is clicked.
|
|
599
705
|
*/
|
|
600
|
-
onClick?: (evt: React.ChangeEvent<any>) => void;
|
|
706
|
+
onClick?: (evt: React$1.ChangeEvent<any>) => void;
|
|
601
707
|
/**
|
|
602
708
|
* Input's type.
|
|
603
709
|
*/
|
|
@@ -613,7 +719,7 @@ interface Props$S {
|
|
|
613
719
|
/**
|
|
614
720
|
* Input's ref object.
|
|
615
721
|
*/
|
|
616
|
-
ref?: React.Ref<any>;
|
|
722
|
+
ref?: React$1.Ref<any>;
|
|
617
723
|
/**
|
|
618
724
|
* Sizing variant.
|
|
619
725
|
*/
|
|
@@ -640,8 +746,8 @@ interface Props$S {
|
|
|
640
746
|
variant?: 'default' | 'underline';
|
|
641
747
|
}
|
|
642
748
|
|
|
643
|
-
declare const MenuItem: React.FC<Props$
|
|
644
|
-
interface Props$
|
|
749
|
+
declare const MenuItem: React$1.FC<Props$1y>;
|
|
750
|
+
interface Props$1y {
|
|
645
751
|
/**
|
|
646
752
|
* Associated icon.
|
|
647
753
|
*/
|
|
@@ -664,12 +770,12 @@ interface Props$R {
|
|
|
664
770
|
disabled?: boolean;
|
|
665
771
|
}
|
|
666
772
|
|
|
667
|
-
declare const MenuSubSection: React.FC<Props$
|
|
668
|
-
interface Props$
|
|
773
|
+
declare const MenuSubSection: React$1.FC<Props$1x>;
|
|
774
|
+
interface Props$1x {
|
|
669
775
|
/**
|
|
670
776
|
* Main content of the component.
|
|
671
777
|
*/
|
|
672
|
-
children: React.ReactNode;
|
|
778
|
+
children: React$1.ReactNode;
|
|
673
779
|
/**
|
|
674
780
|
* Indicates how content and title should be aligned.
|
|
675
781
|
*/
|
|
@@ -692,12 +798,12 @@ interface Props$Q {
|
|
|
692
798
|
title: string;
|
|
693
799
|
}
|
|
694
800
|
|
|
695
|
-
declare const MenuSection: React.FC<Props$
|
|
696
|
-
interface Props$
|
|
801
|
+
declare const MenuSection: React$1.FC<Props$1w>;
|
|
802
|
+
interface Props$1w {
|
|
697
803
|
/**
|
|
698
804
|
* Main content of the component.
|
|
699
805
|
*/
|
|
700
|
-
children: React.ReactNode;
|
|
806
|
+
children: React$1.ReactNode;
|
|
701
807
|
/**
|
|
702
808
|
* Adds bottom border.
|
|
703
809
|
*/
|
|
@@ -708,21 +814,33 @@ interface Props$P {
|
|
|
708
814
|
title: string;
|
|
709
815
|
}
|
|
710
816
|
|
|
817
|
+
interface PopperContext {
|
|
818
|
+
/**
|
|
819
|
+
* Forces synchronous popper position update.
|
|
820
|
+
*/
|
|
821
|
+
forceUpdate?: () => void;
|
|
822
|
+
}
|
|
823
|
+
/**
|
|
824
|
+
* Defines React context for `Popper` component.
|
|
825
|
+
*/
|
|
826
|
+
declare const PopperContext: React$1.Context<PopperContext>;
|
|
827
|
+
declare const usePopperCtx: () => PopperContext;
|
|
828
|
+
|
|
711
829
|
declare type PopperPlacement = Placement;
|
|
712
830
|
declare type PopperAnchorRef = HTMLElement | null | undefined;
|
|
713
831
|
declare type PopperOffsetValue = 'none' | 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
714
832
|
declare type PopperOffset = [PopperOffsetValue, PopperOffsetValue];
|
|
715
833
|
|
|
716
|
-
declare const PopperArrow: React__default.FC<Props$
|
|
717
|
-
interface Props$
|
|
834
|
+
declare const PopperArrow: React__default.FC<Props$1v>;
|
|
835
|
+
interface Props$1v {
|
|
718
836
|
/**
|
|
719
837
|
* Sets arrow size.
|
|
720
838
|
*/
|
|
721
839
|
size?: 'sm' | 'md';
|
|
722
840
|
}
|
|
723
841
|
|
|
724
|
-
declare const Popper: React__default.ForwardRefExoticComponent<Props$
|
|
725
|
-
interface Props$
|
|
842
|
+
declare const Popper: React__default.ForwardRefExoticComponent<Props$1u & React__default.RefAttributes<HTMLElement>>;
|
|
843
|
+
interface Props$1u {
|
|
726
844
|
/**
|
|
727
845
|
* Anchor element. Popper will be mounted to this element.
|
|
728
846
|
*/
|
|
@@ -757,8 +875,8 @@ interface Props$N {
|
|
|
757
875
|
sameWidth?: boolean;
|
|
758
876
|
}
|
|
759
877
|
|
|
760
|
-
declare const Menu: React.
|
|
761
|
-
interface Props$
|
|
878
|
+
declare const Menu: React$1.ForwardRefExoticComponent<Props$1t & React$1.RefAttributes<HTMLDivElement>>;
|
|
879
|
+
interface Props$1t {
|
|
762
880
|
/**
|
|
763
881
|
* Anchor element.
|
|
764
882
|
*/
|
|
@@ -770,7 +888,7 @@ interface Props$M {
|
|
|
770
888
|
/**
|
|
771
889
|
* Main content of the component.
|
|
772
890
|
*/
|
|
773
|
-
children: React.ReactNode;
|
|
891
|
+
children: React$1.ReactNode;
|
|
774
892
|
/**
|
|
775
893
|
* Offsets popper element.
|
|
776
894
|
*/
|
|
@@ -793,8 +911,8 @@ interface Props$M {
|
|
|
793
911
|
spacing?: boolean;
|
|
794
912
|
}
|
|
795
913
|
|
|
796
|
-
declare const NavbarItem: React.FC<Props$
|
|
797
|
-
interface Props$
|
|
914
|
+
declare const NavbarItem: React$1.FC<Props$1s>;
|
|
915
|
+
interface Props$1s {
|
|
798
916
|
/**
|
|
799
917
|
* Applies active styling.
|
|
800
918
|
*/
|
|
@@ -811,10 +929,6 @@ interface Props$L {
|
|
|
811
929
|
* Separator for the special element.
|
|
812
930
|
*/
|
|
813
931
|
separated?: boolean;
|
|
814
|
-
/**
|
|
815
|
-
* Fixing the element to bottom of the navbar.
|
|
816
|
-
*/
|
|
817
|
-
bottomFixed?: boolean;
|
|
818
932
|
/**
|
|
819
933
|
* Displayed icon.
|
|
820
934
|
*/
|
|
@@ -837,11 +951,59 @@ interface Props$L {
|
|
|
837
951
|
/**
|
|
838
952
|
* Optional click handler.
|
|
839
953
|
*/
|
|
840
|
-
onClick?: React.MouseEventHandler<HTMLButtonElement>;
|
|
954
|
+
onClick?: React$1.MouseEventHandler<HTMLButtonElement>;
|
|
955
|
+
/**
|
|
956
|
+
* Optional buttons to be shown inside the navbar item.
|
|
957
|
+
*/
|
|
958
|
+
buttons?: React$1.ReactNode;
|
|
841
959
|
}
|
|
842
960
|
|
|
843
|
-
declare const
|
|
844
|
-
interface Props$
|
|
961
|
+
declare const NavbarItemFixed: React$1.FC<Props$1r>;
|
|
962
|
+
interface Props$1r {
|
|
963
|
+
/**
|
|
964
|
+
* Main content of the component.
|
|
965
|
+
*/
|
|
966
|
+
children: React$1.ReactNode;
|
|
967
|
+
}
|
|
968
|
+
|
|
969
|
+
declare const NavbarButton: React$1.FC<Props$1q>;
|
|
970
|
+
interface Props$1q {
|
|
971
|
+
/**
|
|
972
|
+
* Button's aria label.
|
|
973
|
+
*/
|
|
974
|
+
label?: string;
|
|
975
|
+
/**
|
|
976
|
+
* Icon to show.
|
|
977
|
+
*/
|
|
978
|
+
icon?: IconName;
|
|
979
|
+
/**
|
|
980
|
+
* Sets `click` event handler.
|
|
981
|
+
*/
|
|
982
|
+
onClick?: React$1.MouseEventHandler;
|
|
983
|
+
}
|
|
984
|
+
|
|
985
|
+
declare const NavbarCreditLink: React$1.FC<Props$1p>;
|
|
986
|
+
interface Props$1p {
|
|
987
|
+
/**
|
|
988
|
+
* Renders the content of the credit link.
|
|
989
|
+
*/
|
|
990
|
+
content: React$1.ReactNode;
|
|
991
|
+
/**
|
|
992
|
+
* Flag indicating if the link is collapsed.
|
|
993
|
+
*/
|
|
994
|
+
collapsed?: boolean;
|
|
995
|
+
/**
|
|
996
|
+
* The URL that the hyperlink points to.
|
|
997
|
+
*/
|
|
998
|
+
href?: string;
|
|
999
|
+
/**
|
|
1000
|
+
* Describes the purpose of a link.
|
|
1001
|
+
*/
|
|
1002
|
+
ariaLabel?: string;
|
|
1003
|
+
}
|
|
1004
|
+
|
|
1005
|
+
declare const Navbar: React$1.FC<Props$1o>;
|
|
1006
|
+
interface Props$1o {
|
|
845
1007
|
/**
|
|
846
1008
|
* Labels navigation element.
|
|
847
1009
|
*/
|
|
@@ -849,19 +1011,19 @@ interface Props$K {
|
|
|
849
1011
|
/**
|
|
850
1012
|
* Main content of the component.
|
|
851
1013
|
*/
|
|
852
|
-
children: React.ReactNode;
|
|
1014
|
+
children: React$1.ReactNode;
|
|
853
1015
|
}
|
|
854
1016
|
|
|
855
|
-
declare const Overlay: React.FC<Props$
|
|
856
|
-
interface Props$
|
|
1017
|
+
declare const Overlay: React$1.FC<Props$1n>;
|
|
1018
|
+
interface Props$1n {
|
|
857
1019
|
/**
|
|
858
1020
|
* Optional children.
|
|
859
1021
|
*/
|
|
860
|
-
children?: React.ReactNode;
|
|
1022
|
+
children?: React$1.ReactNode;
|
|
861
1023
|
/**
|
|
862
1024
|
* Callback invoked upon clicking on the overlay.
|
|
863
1025
|
*/
|
|
864
|
-
onClick?: React.MouseEventHandler;
|
|
1026
|
+
onClick?: React$1.MouseEventHandler;
|
|
865
1027
|
/**
|
|
866
1028
|
* Color variant.
|
|
867
1029
|
*/
|
|
@@ -872,48 +1034,36 @@ interface Props$J {
|
|
|
872
1034
|
className?: string;
|
|
873
1035
|
}
|
|
874
1036
|
|
|
875
|
-
declare const
|
|
876
|
-
interface Props$
|
|
877
|
-
/**
|
|
878
|
-
* Main content.
|
|
879
|
-
*/
|
|
880
|
-
children: React.ReactNode;
|
|
881
|
-
/**
|
|
882
|
-
* Optional toolbar rendered on top of the list.
|
|
883
|
-
*/
|
|
884
|
-
toolbar?: React.ReactNode;
|
|
1037
|
+
declare const PanelActions: React$1.FC<Props$1m>;
|
|
1038
|
+
interface Props$1m {
|
|
885
1039
|
/**
|
|
886
|
-
*
|
|
1040
|
+
* Main content of the component.
|
|
887
1041
|
*/
|
|
888
|
-
|
|
1042
|
+
children?: React$1.ReactNode;
|
|
889
1043
|
}
|
|
890
1044
|
|
|
891
|
-
declare const
|
|
892
|
-
interface Props$
|
|
1045
|
+
declare const PanelColumn: React$1.FC<Props$1l>;
|
|
1046
|
+
interface Props$1l {
|
|
893
1047
|
/**
|
|
894
1048
|
* Main content of the component.
|
|
895
1049
|
*/
|
|
896
|
-
children
|
|
1050
|
+
children: React$1.ReactNode;
|
|
897
1051
|
}
|
|
898
1052
|
|
|
899
|
-
declare const PanelContent: React.ForwardRefExoticComponent<Props$
|
|
900
|
-
interface Props$
|
|
1053
|
+
declare const PanelContent: React$1.ForwardRefExoticComponent<Props$1k & React$1.RefAttributes<HTMLDivElement>>;
|
|
1054
|
+
interface Props$1k {
|
|
901
1055
|
/**
|
|
902
1056
|
* Main content of the component.
|
|
903
1057
|
*/
|
|
904
|
-
children?: React.ReactNode;
|
|
1058
|
+
children?: React$1.ReactNode;
|
|
905
1059
|
/**
|
|
906
1060
|
* Optional panel content's class name in non-edit mode.
|
|
907
1061
|
*/
|
|
908
1062
|
className?: string;
|
|
909
|
-
/**
|
|
910
|
-
* Optional panel content's class name in edit mode.
|
|
911
|
-
*/
|
|
912
|
-
editClassName?: string;
|
|
913
1063
|
/**
|
|
914
1064
|
* Component shown in edit mode. By default, regular input field is shown in edit mode.
|
|
915
1065
|
*/
|
|
916
|
-
editComponent?: React.ReactNode;
|
|
1066
|
+
editComponent?: React$1.ReactNode;
|
|
917
1067
|
/**
|
|
918
1068
|
* Optional header in edit mode.
|
|
919
1069
|
*/
|
|
@@ -924,8 +1074,8 @@ interface Props$G {
|
|
|
924
1074
|
header?: string;
|
|
925
1075
|
}
|
|
926
1076
|
|
|
927
|
-
declare const PanelContentProp: React.FC<Props$
|
|
928
|
-
interface Props$
|
|
1077
|
+
declare const PanelContentProp: React$1.FC<Props$1j>;
|
|
1078
|
+
interface Props$1j {
|
|
929
1079
|
/**
|
|
930
1080
|
* Property label.
|
|
931
1081
|
*/
|
|
@@ -936,10 +1086,49 @@ interface Props$F {
|
|
|
936
1086
|
value: string;
|
|
937
1087
|
}
|
|
938
1088
|
|
|
939
|
-
declare const PanelDragHandle: React.ForwardRefExoticComponent<React.RefAttributes<HTMLDivElement>>;
|
|
1089
|
+
declare const PanelDragHandle: React$1.ForwardRefExoticComponent<React$1.RefAttributes<HTMLDivElement>>;
|
|
940
1090
|
|
|
941
|
-
declare const
|
|
942
|
-
interface Props$
|
|
1091
|
+
declare const PanelList: React$1.FC<Props$1i>;
|
|
1092
|
+
interface Props$1i {
|
|
1093
|
+
/**
|
|
1094
|
+
* Main content.
|
|
1095
|
+
*/
|
|
1096
|
+
children: React$1.ReactNode;
|
|
1097
|
+
/**
|
|
1098
|
+
* Optional toolbar rendered on top of the list.
|
|
1099
|
+
*/
|
|
1100
|
+
toolbar?: React$1.ReactNode;
|
|
1101
|
+
/**
|
|
1102
|
+
* Toggles loading effect for the toolbar.
|
|
1103
|
+
*/
|
|
1104
|
+
toolbarLoading?: boolean;
|
|
1105
|
+
}
|
|
1106
|
+
|
|
1107
|
+
declare const PanelListDivider: React$1.FC<Props$1h>;
|
|
1108
|
+
interface Props$1h {
|
|
1109
|
+
/**
|
|
1110
|
+
* Toggles component opacity.
|
|
1111
|
+
*/
|
|
1112
|
+
opaque?: boolean;
|
|
1113
|
+
}
|
|
1114
|
+
|
|
1115
|
+
declare const PanelSide: React$1.FC<Props$1g>;
|
|
1116
|
+
interface Props$1g {
|
|
1117
|
+
/**
|
|
1118
|
+
* Icon to display.
|
|
1119
|
+
*/
|
|
1120
|
+
icon?: IconName;
|
|
1121
|
+
/**
|
|
1122
|
+
* Renders custom icon.
|
|
1123
|
+
*
|
|
1124
|
+
* Pass either a React component or raw markup as string.
|
|
1125
|
+
* Passed string must be sanitized beforehand so that it's safe to use.
|
|
1126
|
+
*/
|
|
1127
|
+
iconRender?: IconRenderProp;
|
|
1128
|
+
}
|
|
1129
|
+
|
|
1130
|
+
declare const PanelSkeleton: React$1.FC<Props$1f>;
|
|
1131
|
+
interface Props$1f {
|
|
943
1132
|
/**
|
|
944
1133
|
* Number of loading blocks.
|
|
945
1134
|
*/
|
|
@@ -950,8 +1139,8 @@ interface Props$E {
|
|
|
950
1139
|
size?: 'sm' | 'md' | 'lg';
|
|
951
1140
|
}
|
|
952
1141
|
|
|
953
|
-
declare const PanelTitle: React.ForwardRefExoticComponent<Props$
|
|
954
|
-
interface Props$
|
|
1142
|
+
declare const PanelTitle: React$1.ForwardRefExoticComponent<Props$1e & React$1.RefAttributes<HTMLDivElement>>;
|
|
1143
|
+
interface Props$1e extends Omit<Props$1k, 'children'> {
|
|
955
1144
|
/**
|
|
956
1145
|
* Panel's title.
|
|
957
1146
|
*/
|
|
@@ -1037,12 +1226,12 @@ interface ListDndChildProps {
|
|
|
1037
1226
|
declare const useListDnd: (initItems: ListDndItem[]) => {
|
|
1038
1227
|
items: ListDndItem[];
|
|
1039
1228
|
moveItem: ListDndMoveItem;
|
|
1040
|
-
setItems: React.Dispatch<React.SetStateAction<ListDndItem[]>>;
|
|
1229
|
+
setItems: React$1.Dispatch<React$1.SetStateAction<ListDndItem[]>>;
|
|
1041
1230
|
setDraggable: ListDndSetDraggable;
|
|
1042
1231
|
};
|
|
1043
1232
|
|
|
1044
|
-
declare const SortableDndListItem: React.FC<Props$
|
|
1045
|
-
interface Props$
|
|
1233
|
+
declare const SortableDndListItem: React$1.FC<Props$1d>;
|
|
1234
|
+
interface Props$1d {
|
|
1046
1235
|
/**
|
|
1047
1236
|
* Current item's index in a list.
|
|
1048
1237
|
*/
|
|
@@ -1062,7 +1251,7 @@ interface Props$C {
|
|
|
1062
1251
|
/**
|
|
1063
1252
|
* Accepts a single child.
|
|
1064
1253
|
*/
|
|
1065
|
-
children: React.
|
|
1254
|
+
children: React$1.ReactElement | null;
|
|
1066
1255
|
}
|
|
1067
1256
|
|
|
1068
1257
|
interface SortableDndListContextShape {
|
|
@@ -1084,12 +1273,12 @@ interface SortableDndListContextShape {
|
|
|
1084
1273
|
onDragEnd?: ListDndOnDragEnd;
|
|
1085
1274
|
}
|
|
1086
1275
|
|
|
1087
|
-
declare const SortableDndList: React.FC<Props$
|
|
1088
|
-
interface Props$
|
|
1276
|
+
declare const SortableDndList: React$1.FC<Props$1c>;
|
|
1277
|
+
interface Props$1c extends SortableDndListContextShape {
|
|
1089
1278
|
/**
|
|
1090
1279
|
* Main content of the component.
|
|
1091
1280
|
*/
|
|
1092
|
-
children: React.ReactNode;
|
|
1281
|
+
children: React$1.ReactNode;
|
|
1093
1282
|
/**
|
|
1094
1283
|
* Container element to scroll while dragging.
|
|
1095
1284
|
*/
|
|
@@ -1103,34 +1292,12 @@ interface PanelContextShape extends Partial<ListDndChildProps> {
|
|
|
1103
1292
|
edit?: boolean;
|
|
1104
1293
|
}
|
|
1105
1294
|
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
*/
|
|
1109
|
-
declare const Panel: React.ForwardRefExoticComponent<Props$A & React.RefAttributes<any>>;
|
|
1110
|
-
interface Props$A extends PanelContextShape {
|
|
1111
|
-
/**
|
|
1112
|
-
* Adds border to the bottom of the panel.
|
|
1113
|
-
*/
|
|
1114
|
-
border?: boolean;
|
|
1295
|
+
declare const Panel: React$1.ForwardRefExoticComponent<Props$1b & React$1.RefAttributes<HTMLDivElement>>;
|
|
1296
|
+
interface Props$1b extends PanelContextShape {
|
|
1115
1297
|
/**
|
|
1116
1298
|
* Main content of the component.
|
|
1117
1299
|
*/
|
|
1118
|
-
children: React.ReactNode;
|
|
1119
|
-
/**
|
|
1120
|
-
* Icon to display.
|
|
1121
|
-
*/
|
|
1122
|
-
icon?: IconName;
|
|
1123
|
-
/**
|
|
1124
|
-
* Renders custom icon.
|
|
1125
|
-
*
|
|
1126
|
-
* Pass either a React component or raw markup as string.
|
|
1127
|
-
* Passed string must be sanitized beforehand so that it's safe to use.
|
|
1128
|
-
*/
|
|
1129
|
-
iconRender?: IconRenderProp;
|
|
1130
|
-
/**
|
|
1131
|
-
* Callback invoked when panel changes are submitted. Use with `edit`.
|
|
1132
|
-
*/
|
|
1133
|
-
onSubmit?: React.FormEventHandler<HTMLFormElement>;
|
|
1300
|
+
children: React$1.ReactNode;
|
|
1134
1301
|
/**
|
|
1135
1302
|
* Toggles component opacity.
|
|
1136
1303
|
*/
|
|
@@ -1141,52 +1308,8 @@ interface Props$A extends PanelContextShape {
|
|
|
1141
1308
|
elevated?: boolean;
|
|
1142
1309
|
}
|
|
1143
1310
|
|
|
1144
|
-
declare
|
|
1145
|
-
|
|
1146
|
-
declare type PageChangeCallback = (page: number) => void;
|
|
1147
|
-
interface PaginationState {
|
|
1148
|
-
/**
|
|
1149
|
-
* Indicates if current `page` is the first one.
|
|
1150
|
-
*/
|
|
1151
|
-
isFirstPage: boolean;
|
|
1152
|
-
/**
|
|
1153
|
-
* Indicates if current `page` is the last one.
|
|
1154
|
-
*/
|
|
1155
|
-
isLastPage: boolean;
|
|
1156
|
-
/**
|
|
1157
|
-
* Callback invoked upon selecting the first page.
|
|
1158
|
-
*/
|
|
1159
|
-
onFirstPageClick: PaginationClickCallback;
|
|
1160
|
-
/**
|
|
1161
|
-
* Callback invoked upon selecting the last page.
|
|
1162
|
-
*/
|
|
1163
|
-
onLastPageClick: PaginationClickCallback;
|
|
1164
|
-
/**
|
|
1165
|
-
* Callback invoked upon selecting the next page.
|
|
1166
|
-
*/
|
|
1167
|
-
onNextPageClick: PaginationClickCallback;
|
|
1168
|
-
/**
|
|
1169
|
-
* Callback invoked upon changing page to a provided page number.
|
|
1170
|
-
*/
|
|
1171
|
-
onPageChange: PaginationChangeCallback;
|
|
1172
|
-
/**
|
|
1173
|
-
* Callback invoked upon selecting the previous page.
|
|
1174
|
-
*/
|
|
1175
|
-
onPrevPageClick: PaginationClickCallback;
|
|
1176
|
-
}
|
|
1177
|
-
/**
|
|
1178
|
-
* Manages state of pagination using passed current page number and a callback to change it.
|
|
1179
|
-
* Minimum page number value is 1.
|
|
1180
|
-
*
|
|
1181
|
-
* @param page current page number
|
|
1182
|
-
* @param setPage callback executed to set the current page number
|
|
1183
|
-
* @param totalPagesCount total number of pages
|
|
1184
|
-
* @returns state of pagination
|
|
1185
|
-
*/
|
|
1186
|
-
declare const usePagination: (page: number, setPage: PageChangeCallback, totalPagesCount: number) => PaginationState;
|
|
1187
|
-
|
|
1188
|
-
declare const Pagination: React.FC<Props$z>;
|
|
1189
|
-
interface Props$z extends PaginationState {
|
|
1311
|
+
declare const Pagination: React$1.FC<Props$1a>;
|
|
1312
|
+
interface Props$1a {
|
|
1190
1313
|
/**
|
|
1191
1314
|
* Disables interaction with pagination.
|
|
1192
1315
|
*/
|
|
@@ -1203,18 +1326,22 @@ interface Props$z extends PaginationState {
|
|
|
1203
1326
|
* Label indicating total number of pages.
|
|
1204
1327
|
*/
|
|
1205
1328
|
totalPagesLabel: string;
|
|
1329
|
+
/**
|
|
1330
|
+
* Callback invoked when page is changed.
|
|
1331
|
+
*/
|
|
1332
|
+
onPageChange: (page: number) => void;
|
|
1206
1333
|
/**
|
|
1207
1334
|
* Currently selected page.
|
|
1208
1335
|
*/
|
|
1209
1336
|
page: number;
|
|
1210
1337
|
}
|
|
1211
1338
|
|
|
1212
|
-
declare const ProgressPanel: React.ForwardRefExoticComponent<Props$
|
|
1213
|
-
interface Props$
|
|
1339
|
+
declare const ProgressPanel: React$1.ForwardRefExoticComponent<Props$19 & React$1.RefAttributes<HTMLDivElement>>;
|
|
1340
|
+
interface Props$19 {
|
|
1214
1341
|
/**
|
|
1215
1342
|
* Additional info rendered close to a title.
|
|
1216
1343
|
*/
|
|
1217
|
-
additionalInfo?: React.ReactNode;
|
|
1344
|
+
additionalInfo?: React$1.ReactNode;
|
|
1218
1345
|
/**
|
|
1219
1346
|
* Applies error styling.
|
|
1220
1347
|
*/
|
|
@@ -1230,7 +1357,7 @@ interface Props$y {
|
|
|
1230
1357
|
/**
|
|
1231
1358
|
* Help text displayed below the bar.
|
|
1232
1359
|
*/
|
|
1233
|
-
helpText?: React.ReactNode;
|
|
1360
|
+
helpText?: React$1.ReactNode;
|
|
1234
1361
|
/**
|
|
1235
1362
|
* Unique identifier of a panel.
|
|
1236
1363
|
*/
|
|
@@ -1245,8 +1372,8 @@ interface Props$y {
|
|
|
1245
1372
|
value: number;
|
|
1246
1373
|
}
|
|
1247
1374
|
|
|
1248
|
-
declare const PropertiesTableRow: React.FC<Props$
|
|
1249
|
-
interface Props$
|
|
1375
|
+
declare const PropertiesTableRow: React$1.FC<Props$18>;
|
|
1376
|
+
interface Props$18 {
|
|
1250
1377
|
/**
|
|
1251
1378
|
* Item's label.
|
|
1252
1379
|
*/
|
|
@@ -1254,15 +1381,15 @@ interface Props$x {
|
|
|
1254
1381
|
/**
|
|
1255
1382
|
* Item's value.
|
|
1256
1383
|
*/
|
|
1257
|
-
value: React.ReactNode;
|
|
1384
|
+
value: React$1.ReactNode;
|
|
1258
1385
|
}
|
|
1259
1386
|
|
|
1260
|
-
declare const PropertiesTable: React.FC<Props$
|
|
1261
|
-
interface Props$
|
|
1387
|
+
declare const PropertiesTable: React$1.FC<Props$17>;
|
|
1388
|
+
interface Props$17 {
|
|
1262
1389
|
/**
|
|
1263
1390
|
* Main content of the component.
|
|
1264
1391
|
*/
|
|
1265
|
-
children: React.ReactNode;
|
|
1392
|
+
children: React$1.ReactNode;
|
|
1266
1393
|
}
|
|
1267
1394
|
|
|
1268
1395
|
/**
|
|
@@ -1290,8 +1417,8 @@ interface Props$w {
|
|
|
1290
1417
|
* As a loader, a blurred version of the image can be shown if `blurHash` value is passed.
|
|
1291
1418
|
*/
|
|
1292
1419
|
|
|
1293
|
-
declare const ResponsiveImage: React.FC<Props$
|
|
1294
|
-
interface Props$
|
|
1420
|
+
declare const ResponsiveImage: React$1.FC<Props$16>;
|
|
1421
|
+
interface Props$16 {
|
|
1295
1422
|
/**
|
|
1296
1423
|
* Image's description.
|
|
1297
1424
|
*
|
|
@@ -1346,11 +1473,11 @@ interface Props$v {
|
|
|
1346
1473
|
/**
|
|
1347
1474
|
* Callback invoked when a resource failed to load, or can't be used.
|
|
1348
1475
|
*/
|
|
1349
|
-
onError?: (event: React.SyntheticEvent<HTMLImageElement>) => void;
|
|
1476
|
+
onError?: (event: React$1.SyntheticEvent<HTMLImageElement>) => void;
|
|
1350
1477
|
}
|
|
1351
1478
|
|
|
1352
|
-
declare const Skeleton: React.FC<Props$
|
|
1353
|
-
interface Props$
|
|
1479
|
+
declare const Skeleton: React$1.FC<Props$15>;
|
|
1480
|
+
interface Props$15 {
|
|
1354
1481
|
/**
|
|
1355
1482
|
* Optional class name. It overrides class responsible for background color.
|
|
1356
1483
|
*/
|
|
@@ -1365,8 +1492,8 @@ interface Props$u {
|
|
|
1365
1492
|
width?: string;
|
|
1366
1493
|
}
|
|
1367
1494
|
|
|
1368
|
-
declare const SortButton: React.FC<Props$
|
|
1369
|
-
interface Props$
|
|
1495
|
+
declare const SortButton: React$1.FC<Props$14>;
|
|
1496
|
+
interface Props$14 {
|
|
1370
1497
|
/**
|
|
1371
1498
|
* Button's aria label.
|
|
1372
1499
|
*/
|
|
@@ -1385,32 +1512,32 @@ interface Props$t {
|
|
|
1385
1512
|
onClick?: () => void;
|
|
1386
1513
|
}
|
|
1387
1514
|
|
|
1388
|
-
declare const SwitchView: React.FC<Props$
|
|
1389
|
-
interface Props$
|
|
1515
|
+
declare const SwitchView: React$1.FC<Props$13>;
|
|
1516
|
+
interface Props$13 {
|
|
1390
1517
|
/**
|
|
1391
1518
|
* Main content of the component.
|
|
1392
1519
|
*/
|
|
1393
|
-
children: React.ReactNode;
|
|
1520
|
+
children: React$1.ReactNode;
|
|
1394
1521
|
/**
|
|
1395
1522
|
* View id.
|
|
1396
1523
|
*/
|
|
1397
1524
|
id: string;
|
|
1398
1525
|
}
|
|
1399
1526
|
|
|
1400
|
-
declare const Switch: React.FC<Props$
|
|
1401
|
-
interface Props$
|
|
1527
|
+
declare const Switch: React$1.FC<Props$12>;
|
|
1528
|
+
interface Props$12 {
|
|
1402
1529
|
/**
|
|
1403
1530
|
* Main content of the component.
|
|
1404
1531
|
*/
|
|
1405
|
-
children: React.ReactNode;
|
|
1532
|
+
children: React$1.ReactNode;
|
|
1406
1533
|
/**
|
|
1407
1534
|
* View id to match.
|
|
1408
1535
|
*/
|
|
1409
1536
|
match?: string;
|
|
1410
1537
|
}
|
|
1411
1538
|
|
|
1412
|
-
declare const SwitchInput: React.FC<Props$
|
|
1413
|
-
interface Props$
|
|
1539
|
+
declare const SwitchInput: React$1.FC<Props$11>;
|
|
1540
|
+
interface Props$11 {
|
|
1414
1541
|
/**
|
|
1415
1542
|
* Sets current input's value.
|
|
1416
1543
|
*/
|
|
@@ -1429,32 +1556,52 @@ interface Props$q {
|
|
|
1429
1556
|
onChange: (checked: boolean) => void;
|
|
1430
1557
|
}
|
|
1431
1558
|
|
|
1432
|
-
declare const TagList: React.FC<Props$
|
|
1433
|
-
interface Props$
|
|
1559
|
+
declare const TagList: React$1.FC<Props$10>;
|
|
1560
|
+
interface Props$10 {
|
|
1434
1561
|
/**
|
|
1435
1562
|
* Main content of the component.
|
|
1436
1563
|
*/
|
|
1437
|
-
children: React.ReactNode;
|
|
1564
|
+
children: React$1.ReactNode;
|
|
1438
1565
|
/**
|
|
1439
1566
|
* Optional root class name.
|
|
1440
1567
|
*/
|
|
1441
1568
|
className?: string;
|
|
1569
|
+
/**
|
|
1570
|
+
* Indicates whether tag list should hide overflown items.
|
|
1571
|
+
*/
|
|
1572
|
+
itemOverflow?: boolean;
|
|
1442
1573
|
}
|
|
1443
1574
|
|
|
1444
|
-
declare const
|
|
1445
|
-
interface Props
|
|
1575
|
+
declare const TagLabel: React$1.FC<Props$$>;
|
|
1576
|
+
interface Props$$ {
|
|
1446
1577
|
/**
|
|
1447
1578
|
* Emphasizes tag content.
|
|
1448
1579
|
*/
|
|
1449
1580
|
bold?: boolean;
|
|
1450
1581
|
/**
|
|
1451
|
-
*
|
|
1582
|
+
* Sets component's children.
|
|
1452
1583
|
*/
|
|
1453
|
-
|
|
1584
|
+
children: React$1.ReactNode;
|
|
1585
|
+
}
|
|
1586
|
+
|
|
1587
|
+
declare const Tag: React$1.ForwardRefExoticComponent<Props$_ & React$1.RefAttributes<HTMLDivElement>>;
|
|
1588
|
+
interface Props$_ {
|
|
1454
1589
|
/**
|
|
1455
|
-
*
|
|
1590
|
+
* Sets component's children.
|
|
1456
1591
|
*/
|
|
1457
|
-
|
|
1592
|
+
children?: React$1.ReactNode;
|
|
1593
|
+
/**
|
|
1594
|
+
* Disables focusability of any focusable element.
|
|
1595
|
+
*/
|
|
1596
|
+
disableFocusability?: boolean;
|
|
1597
|
+
/**
|
|
1598
|
+
* Callback invoked upon clicking on remove icon.
|
|
1599
|
+
*/
|
|
1600
|
+
onRemove?: React$1.MouseEventHandler;
|
|
1601
|
+
/**
|
|
1602
|
+
* Sets tag radius.
|
|
1603
|
+
*/
|
|
1604
|
+
radius?: 'md' | 'lg' | 'xl';
|
|
1458
1605
|
/**
|
|
1459
1606
|
* Sets tag as removable.
|
|
1460
1607
|
*/
|
|
@@ -1465,8 +1612,8 @@ interface Props$o {
|
|
|
1465
1612
|
removeLabel?: string;
|
|
1466
1613
|
}
|
|
1467
1614
|
|
|
1468
|
-
declare const TagInput: React.FC<Props$
|
|
1469
|
-
interface Props$
|
|
1615
|
+
declare const TagInput: React$1.FC<Props$Z>;
|
|
1616
|
+
interface Props$Z {
|
|
1470
1617
|
/**
|
|
1471
1618
|
* Input's class name.
|
|
1472
1619
|
*/
|
|
@@ -1474,11 +1621,11 @@ interface Props$n {
|
|
|
1474
1621
|
/**
|
|
1475
1622
|
* Label displayed in the popup when hovering over copy button.
|
|
1476
1623
|
*/
|
|
1477
|
-
copyBtnLabel
|
|
1624
|
+
copyBtnLabel?: string;
|
|
1478
1625
|
/**
|
|
1479
1626
|
* Label displayed in the popup upon clicking on the copy button.
|
|
1480
1627
|
*/
|
|
1481
|
-
copyBtnLabelCopied
|
|
1628
|
+
copyBtnLabelCopied?: string;
|
|
1482
1629
|
/**
|
|
1483
1630
|
* Input field id.
|
|
1484
1631
|
*/
|
|
@@ -1514,12 +1661,12 @@ interface Props$n {
|
|
|
1514
1661
|
}[];
|
|
1515
1662
|
}
|
|
1516
1663
|
|
|
1517
|
-
declare const Tab: React.FC<Props$
|
|
1518
|
-
interface Props$
|
|
1664
|
+
declare const Tab: React$1.FC<Props$Y>;
|
|
1665
|
+
interface Props$Y {
|
|
1519
1666
|
/**
|
|
1520
1667
|
* Main content.
|
|
1521
1668
|
*/
|
|
1522
|
-
children: React.ReactNode;
|
|
1669
|
+
children: React$1.ReactNode;
|
|
1523
1670
|
/**
|
|
1524
1671
|
* Tab id.
|
|
1525
1672
|
*/
|
|
@@ -1530,8 +1677,8 @@ interface Props$m {
|
|
|
1530
1677
|
label: string;
|
|
1531
1678
|
}
|
|
1532
1679
|
|
|
1533
|
-
declare const Tabs: React.FC<Props$
|
|
1534
|
-
interface Props$
|
|
1680
|
+
declare const Tabs: React$1.FC<Props$X>;
|
|
1681
|
+
interface Props$X {
|
|
1535
1682
|
/**
|
|
1536
1683
|
* Currently selected tab.
|
|
1537
1684
|
*/
|
|
@@ -1539,20 +1686,40 @@ interface Props$l {
|
|
|
1539
1686
|
/**
|
|
1540
1687
|
* Main content of the component.
|
|
1541
1688
|
*/
|
|
1542
|
-
children: React.ReactNode;
|
|
1689
|
+
children: React$1.ReactNode;
|
|
1543
1690
|
/**
|
|
1544
1691
|
* Callback invoked upon selecting a tab.
|
|
1545
1692
|
*/
|
|
1546
1693
|
onTabSelect?: (tab: string) => void;
|
|
1547
1694
|
}
|
|
1548
1695
|
|
|
1549
|
-
declare const
|
|
1550
|
-
interface Props$
|
|
1696
|
+
declare const TooltipIcon: React$1.FC<Props$W>;
|
|
1697
|
+
interface Props$W {
|
|
1698
|
+
/**
|
|
1699
|
+
* Icon to display.
|
|
1700
|
+
*/
|
|
1701
|
+
iconName: IconName;
|
|
1702
|
+
/**
|
|
1703
|
+
* Delay before displaying the tooltip.
|
|
1704
|
+
*/
|
|
1705
|
+
delay?: number;
|
|
1706
|
+
/**
|
|
1707
|
+
* Tooltip placement.
|
|
1708
|
+
*/
|
|
1709
|
+
placement?: PopperPlacement;
|
|
1710
|
+
/**
|
|
1711
|
+
* Tooltip helper text.
|
|
1712
|
+
*/
|
|
1713
|
+
title: string;
|
|
1714
|
+
}
|
|
1715
|
+
|
|
1716
|
+
declare const Tooltip: React$1.FC<Props$V>;
|
|
1717
|
+
interface Props$V {
|
|
1551
1718
|
/**
|
|
1552
1719
|
* Main content of the component.
|
|
1553
1720
|
* It must be a single child that accepts `ref`.
|
|
1554
1721
|
*/
|
|
1555
|
-
children: React.
|
|
1722
|
+
children: React$1.ReactNode;
|
|
1556
1723
|
/**
|
|
1557
1724
|
* Delay before displaying the tooltip.
|
|
1558
1725
|
*/
|
|
@@ -1570,8 +1737,12 @@ interface Props$k {
|
|
|
1570
1737
|
/**
|
|
1571
1738
|
* `TopbarAction` component acts as a props carrier only.
|
|
1572
1739
|
*/
|
|
1573
|
-
declare const TopbarAction: React.FC<Props$
|
|
1574
|
-
interface Props$
|
|
1740
|
+
declare const TopbarAction: React$1.FC<Props$U>;
|
|
1741
|
+
interface Props$U {
|
|
1742
|
+
/**
|
|
1743
|
+
* Applies active styling.
|
|
1744
|
+
*/
|
|
1745
|
+
active?: boolean;
|
|
1575
1746
|
/**
|
|
1576
1747
|
* Associated icon.
|
|
1577
1748
|
*/
|
|
@@ -1584,6 +1755,10 @@ interface Props$j {
|
|
|
1584
1755
|
* Action label.
|
|
1585
1756
|
*/
|
|
1586
1757
|
label: string;
|
|
1758
|
+
/**
|
|
1759
|
+
* Indicates if loading is in progress.
|
|
1760
|
+
*/
|
|
1761
|
+
loading?: boolean;
|
|
1587
1762
|
/**
|
|
1588
1763
|
* Displays as disabled.
|
|
1589
1764
|
*/
|
|
@@ -1598,16 +1773,16 @@ interface Props$j {
|
|
|
1598
1773
|
downloadUrl?: string;
|
|
1599
1774
|
}
|
|
1600
1775
|
|
|
1601
|
-
declare const Topbar: React.FC<Props$
|
|
1602
|
-
interface Props$
|
|
1776
|
+
declare const Topbar: React$1.FC<Props$T>;
|
|
1777
|
+
interface Props$T {
|
|
1603
1778
|
/**
|
|
1604
1779
|
* Main content of the component.
|
|
1605
1780
|
*/
|
|
1606
|
-
children?: React.ReactNode;
|
|
1781
|
+
children?: React$1.ReactNode;
|
|
1607
1782
|
/**
|
|
1608
1783
|
* Content rendered on the right side of the bar.
|
|
1609
1784
|
*/
|
|
1610
|
-
sideContent: React.ReactNode;
|
|
1785
|
+
sideContent: React$1.ReactNode;
|
|
1611
1786
|
}
|
|
1612
1787
|
|
|
1613
1788
|
interface UIContext {
|
|
@@ -1645,7 +1820,7 @@ interface UIContext {
|
|
|
1645
1820
|
/**
|
|
1646
1821
|
* Defines React context for i18n and sets defaults.
|
|
1647
1822
|
*/
|
|
1648
|
-
declare const UIContext: React.Context<UIContext>;
|
|
1823
|
+
declare const UIContext: React$1.Context<UIContext>;
|
|
1649
1824
|
declare const useUIContext: () => UIContext;
|
|
1650
1825
|
|
|
1651
1826
|
/**
|
|
@@ -1681,6 +1856,19 @@ declare const copyToClipboard: (text: string) => Promise<void>;
|
|
|
1681
1856
|
*/
|
|
1682
1857
|
declare const clsx: (...classes: (string | undefined | null | number | boolean)[]) => string;
|
|
1683
1858
|
|
|
1859
|
+
/**
|
|
1860
|
+
* Values representing mouse button.
|
|
1861
|
+
*
|
|
1862
|
+
* https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/button
|
|
1863
|
+
*/
|
|
1864
|
+
declare enum MouseEventButton {
|
|
1865
|
+
Main = 0,
|
|
1866
|
+
Auxiliary = 1,
|
|
1867
|
+
Secondary = 2,
|
|
1868
|
+
Fourth = 3,
|
|
1869
|
+
Fifth = 4
|
|
1870
|
+
}
|
|
1871
|
+
|
|
1684
1872
|
/**
|
|
1685
1873
|
* Given time distance in s, formats it by rounding to nearest time unit in accordance with predefined buckets.
|
|
1686
1874
|
*
|
|
@@ -1692,7 +1880,24 @@ declare const formatTimeDistance: (t: number) => {
|
|
|
1692
1880
|
s: number;
|
|
1693
1881
|
};
|
|
1694
1882
|
|
|
1695
|
-
|
|
1883
|
+
/**
|
|
1884
|
+
* Retrieves amount of pixels in a blob if it's an image.
|
|
1885
|
+
* If given blob is an invalid image, returns undefined.
|
|
1886
|
+
*
|
|
1887
|
+
* @param data blob data to measure
|
|
1888
|
+
* @returns amount of pixels
|
|
1889
|
+
*/
|
|
1890
|
+
declare const getPixelCountFromImageBlob: (data: Blob) => Promise<number | undefined>;
|
|
1891
|
+
|
|
1892
|
+
/**
|
|
1893
|
+
* Calculates standard deviation based on provided list of numbers.
|
|
1894
|
+
*
|
|
1895
|
+
* @param array list of numbers
|
|
1896
|
+
* @returns standard deviation
|
|
1897
|
+
*/
|
|
1898
|
+
declare const getStandardDeviation: (array: number[]) => number | undefined;
|
|
1899
|
+
|
|
1900
|
+
declare const getValidChildren: <ChildProps>(children: React$1.ReactNode) => React$1.ReactElement<ChildProps, string | React$1.JSXElementConstructor<any>>[];
|
|
1696
1901
|
|
|
1697
1902
|
/**
|
|
1698
1903
|
* Shorthand for recommended use of hasOwnProperty (see https://eslint.org/docs/rules/no-prototype-builtins).
|
|
@@ -1702,6 +1907,55 @@ declare const getValidChildren: <ChildProps>(children: React.ReactNode) => React
|
|
|
1702
1907
|
*/
|
|
1703
1908
|
declare const hasOwnProperty: (object: Record<string, unknown>, propertyKey: string) => boolean;
|
|
1704
1909
|
|
|
1910
|
+
declare type KeyModifier = 'altKey' | 'ctrlKey' | 'metaKey' | 'shiftKey';
|
|
1911
|
+
declare type KeyAction = () => void;
|
|
1912
|
+
interface KeyCombination {
|
|
1913
|
+
value: string;
|
|
1914
|
+
mod?: KeyModifier;
|
|
1915
|
+
}
|
|
1916
|
+
/**
|
|
1917
|
+
* `KeyboardEvent`-like interface that will allow to use generated handlers as React's synthetic event handlers.
|
|
1918
|
+
* Only a subset of event properties are used.
|
|
1919
|
+
*/
|
|
1920
|
+
declare type KeyEventLike = Pick<KeyboardEvent, 'altKey' | 'ctrlKey' | 'metaKey' | 'shiftKey' | 'code' | 'key' | 'preventDefault' | 'stopPropagation'>;
|
|
1921
|
+
interface KeyProps {
|
|
1922
|
+
/**
|
|
1923
|
+
* Defines which code will invoke the `onKeyDown` callback.
|
|
1924
|
+
* `code.value` corresponds to `evt.code`.
|
|
1925
|
+
*
|
|
1926
|
+
* Provide either `code` or `key`.
|
|
1927
|
+
*/
|
|
1928
|
+
code?: KeyCombination;
|
|
1929
|
+
/**
|
|
1930
|
+
* Defines which key will invoke the `onKeyDown` callback.
|
|
1931
|
+
* `key.value` corresponds to `evt.key`.
|
|
1932
|
+
*
|
|
1933
|
+
* Provide either `code` or `key`.
|
|
1934
|
+
*/
|
|
1935
|
+
key?: KeyCombination;
|
|
1936
|
+
/**
|
|
1937
|
+
* Callback to invoke when proper key code is detected.
|
|
1938
|
+
*/
|
|
1939
|
+
action?: KeyAction;
|
|
1940
|
+
}
|
|
1941
|
+
|
|
1942
|
+
/**
|
|
1943
|
+
* Checks if event matches a single key combination.
|
|
1944
|
+
*
|
|
1945
|
+
* @param evt keyboard event
|
|
1946
|
+
* @param currentValue event key or code value
|
|
1947
|
+
* @param combination key combination
|
|
1948
|
+
* @returns flag indicating if combination is matched
|
|
1949
|
+
*/
|
|
1950
|
+
declare const matchesCombination: (evt: KeyEventLike, currentValue: string, { value, mod }: KeyCombination) => boolean;
|
|
1951
|
+
/**
|
|
1952
|
+
* Creates `keydown` event listener for configured key combination(s).
|
|
1953
|
+
*
|
|
1954
|
+
* @param props key props
|
|
1955
|
+
* @returns event listener
|
|
1956
|
+
*/
|
|
1957
|
+
declare const getKeyHandler: (props: KeyProps[] | KeyProps) => (evt: KeyEventLike) => void;
|
|
1958
|
+
|
|
1705
1959
|
declare const noOp: () => void;
|
|
1706
1960
|
|
|
1707
1961
|
interface RInterval {
|
|
@@ -1747,7 +2001,7 @@ interface BatchUpdateBatch<Payload> {
|
|
|
1747
2001
|
* @returns actions and batch
|
|
1748
2002
|
*/
|
|
1749
2003
|
declare const useBatchUpdate: <Payload extends BatchUpdatePayload>(updateCb: (batch: BatchUpdateBatch<Payload>) => void, batchUpdateInterval: number) => {
|
|
1750
|
-
batch: React.MutableRefObject<BatchUpdateBatch<Payload>>;
|
|
2004
|
+
batch: React$1.MutableRefObject<BatchUpdateBatch<Payload>>;
|
|
1751
2005
|
pushUpdate: (payload: Payload) => void;
|
|
1752
2006
|
};
|
|
1753
2007
|
|
|
@@ -1815,9 +2069,9 @@ interface ResizeOptions {
|
|
|
1815
2069
|
* @returns resize state and utils
|
|
1816
2070
|
*/
|
|
1817
2071
|
declare const useResize: (opts: ResizeOptions) => {
|
|
1818
|
-
onMouseDown: React.MouseEventHandler<HTMLElement
|
|
1819
|
-
setResizableEl:
|
|
1820
|
-
isResizing: boolean;
|
|
2072
|
+
onMouseDown: React$1.MouseEventHandler<HTMLElement> | undefined;
|
|
2073
|
+
setResizableEl: (el: HTMLElement | null) => void;
|
|
2074
|
+
isResizing: boolean | undefined;
|
|
1821
2075
|
};
|
|
1822
2076
|
|
|
1823
2077
|
declare type DragHandler = (diff: {
|
|
@@ -1858,6 +2112,7 @@ declare type DragHandler = (diff: {
|
|
|
1858
2112
|
*/
|
|
1859
2113
|
clientVY: number;
|
|
1860
2114
|
}) => void;
|
|
2115
|
+
declare type DragDimensionsHandler = (dimensions: Dimensions) => void;
|
|
1861
2116
|
interface DraggableOptions {
|
|
1862
2117
|
/**
|
|
1863
2118
|
* Callback invoked on dragging. Passes most recent drag vectors.
|
|
@@ -1866,7 +2121,29 @@ interface DraggableOptions {
|
|
|
1866
2121
|
/**
|
|
1867
2122
|
* Callback invoked on drag end.
|
|
1868
2123
|
*/
|
|
1869
|
-
onDragEnd?:
|
|
2124
|
+
onDragEnd?: DragDimensionsHandler;
|
|
2125
|
+
/**
|
|
2126
|
+
* Callback invoked on drag start.
|
|
2127
|
+
*/
|
|
2128
|
+
onDragStart?: React.MouseEventHandler<HTMLElement>;
|
|
2129
|
+
}
|
|
2130
|
+
interface DraggableState {
|
|
2131
|
+
/**
|
|
2132
|
+
* Dragged element.
|
|
2133
|
+
*/
|
|
2134
|
+
draggableEl: HTMLElement | null;
|
|
2135
|
+
/**
|
|
2136
|
+
* Indicates if dragging is happening.
|
|
2137
|
+
*/
|
|
2138
|
+
isDragging?: boolean;
|
|
2139
|
+
/**
|
|
2140
|
+
* Event handler that should be attached to drag handle.
|
|
2141
|
+
*/
|
|
2142
|
+
onMouseDown?: React.MouseEventHandler<HTMLElement>;
|
|
2143
|
+
/**
|
|
2144
|
+
* Setter for element that will be dragged.
|
|
2145
|
+
*/
|
|
2146
|
+
setDraggableEl: (el: HTMLElement | null) => void;
|
|
1870
2147
|
}
|
|
1871
2148
|
|
|
1872
2149
|
/**
|
|
@@ -1875,12 +2152,7 @@ interface DraggableOptions {
|
|
|
1875
2152
|
* @param opts dragging options
|
|
1876
2153
|
* @returns dragging state and utils
|
|
1877
2154
|
*/
|
|
1878
|
-
declare const useDraggable: (opts?: DraggableOptions) =>
|
|
1879
|
-
draggableEl: HTMLElement | null;
|
|
1880
|
-
isDragging: boolean;
|
|
1881
|
-
onMouseDown: React.MouseEventHandler<HTMLElement>;
|
|
1882
|
-
setDraggableEl: React.Dispatch<React.SetStateAction<HTMLElement | null>>;
|
|
1883
|
-
};
|
|
2155
|
+
declare const useDraggable: (opts?: DraggableOptions) => DraggableState;
|
|
1884
2156
|
|
|
1885
2157
|
/**
|
|
1886
2158
|
* Keeps info about mount state.
|
|
@@ -1913,7 +2185,7 @@ interface ItemsOverflowOptions {
|
|
|
1913
2185
|
*/
|
|
1914
2186
|
declare const useItemsOverflow: (opts: ItemsOverflowOptions) => {
|
|
1915
2187
|
init: boolean;
|
|
1916
|
-
setContainer: React.Dispatch<React.SetStateAction<HTMLDivElement | null>>;
|
|
2188
|
+
setContainer: React$1.Dispatch<React$1.SetStateAction<HTMLDivElement | null>>;
|
|
1917
2189
|
visibleItems: number;
|
|
1918
2190
|
};
|
|
1919
2191
|
|
|
@@ -1944,7 +2216,7 @@ declare const useResettableTimeout: (onTimeout: () => void, delay: number) => {
|
|
|
1944
2216
|
*/
|
|
1945
2217
|
declare const useResponsiveSizes: (breakpoints: number[], enabled?: boolean) => {
|
|
1946
2218
|
sizes: number | undefined;
|
|
1947
|
-
setContainer: React.Dispatch<React.SetStateAction<HTMLElement | null>>;
|
|
2219
|
+
setContainer: React$1.Dispatch<React$1.SetStateAction<HTMLElement | null>>;
|
|
1948
2220
|
pixelAdjSizes: number;
|
|
1949
2221
|
};
|
|
1950
2222
|
|
|
@@ -1955,7 +2227,7 @@ declare const useResponsiveSizes: (breakpoints: number[], enabled?: boolean) =>
|
|
|
1955
2227
|
* @returns hook state and methods
|
|
1956
2228
|
*/
|
|
1957
2229
|
declare const useElementVisibility: (container?: HTMLElement | null) => {
|
|
1958
|
-
setElement: React.Dispatch<React.SetStateAction<HTMLElement | null>>;
|
|
2230
|
+
setElement: React$1.Dispatch<React$1.SetStateAction<HTMLElement | null>>;
|
|
1959
2231
|
visible: boolean;
|
|
1960
2232
|
};
|
|
1961
2233
|
|
|
@@ -1976,6 +2248,35 @@ declare const useFilesDrop: ({ onDrop }: UseFilesDropProps) => {
|
|
|
1976
2248
|
isActive: boolean;
|
|
1977
2249
|
};
|
|
1978
2250
|
|
|
2251
|
+
declare type Selected = Set<string>;
|
|
2252
|
+
|
|
2253
|
+
/**
|
|
2254
|
+
* This hook is responsible for selecting elements in a grid.
|
|
2255
|
+
* A list of cells with unique IDs must be provided along with a getter for column numbers.
|
|
2256
|
+
*
|
|
2257
|
+
* @param cells list of cell ids
|
|
2258
|
+
* @param getColumns getter for column number
|
|
2259
|
+
* @returns state setters / state slices
|
|
2260
|
+
*/
|
|
2261
|
+
declare const useGridSelection: (cells: string[], getColumns: () => number) => {
|
|
2262
|
+
deselectAll: () => void;
|
|
2263
|
+
toggleSelection: (id: string) => void;
|
|
2264
|
+
selectAll: () => void;
|
|
2265
|
+
selectDown: () => void;
|
|
2266
|
+
selectLeft: () => void;
|
|
2267
|
+
selectRange: (id: string) => void;
|
|
2268
|
+
selectRangeDown: () => void;
|
|
2269
|
+
selectRangeLeft: () => void;
|
|
2270
|
+
selectRangeRight: () => void;
|
|
2271
|
+
selectRangeUp: () => void;
|
|
2272
|
+
selectRight: () => void;
|
|
2273
|
+
selectSingle: (id: string) => void;
|
|
2274
|
+
selectSome: (ids: string[]) => void;
|
|
2275
|
+
selectUp: () => void;
|
|
2276
|
+
lastSelectedId: string | undefined;
|
|
2277
|
+
selectedIds: Selected;
|
|
2278
|
+
};
|
|
2279
|
+
|
|
1979
2280
|
/**
|
|
1980
2281
|
* A helper hook for a building a simple state machine. Useful for togglable popper-based components such as menus.
|
|
1981
2282
|
*
|
|
@@ -2001,8 +2302,8 @@ declare const useToggle: (initValue?: boolean) => {
|
|
|
2001
2302
|
* @returns ref setters
|
|
2002
2303
|
*/
|
|
2003
2304
|
declare const useScaleDown: (originalWidth?: number, originalHeight?: number, enabled?: boolean) => {
|
|
2004
|
-
setSrcElement: React.Dispatch<React.SetStateAction<HTMLElement | null>>;
|
|
2005
|
-
setTargetElement: React.Dispatch<React.SetStateAction<HTMLElement | null>>;
|
|
2305
|
+
setSrcElement: React$1.Dispatch<React$1.SetStateAction<HTMLElement | null>>;
|
|
2306
|
+
setTargetElement: React$1.Dispatch<React$1.SetStateAction<HTMLElement | null>>;
|
|
2006
2307
|
};
|
|
2007
2308
|
|
|
2008
2309
|
interface XYCoord {
|
|
@@ -2179,12 +2480,12 @@ declare namespace validators_d {
|
|
|
2179
2480
|
};
|
|
2180
2481
|
}
|
|
2181
2482
|
|
|
2182
|
-
declare const ViewDialog: React.FC<Props$
|
|
2183
|
-
interface Props$
|
|
2483
|
+
declare const ViewDialog: React$1.FC<Props$S>;
|
|
2484
|
+
interface Props$S {
|
|
2184
2485
|
/**
|
|
2185
2486
|
* Main content of the component.
|
|
2186
2487
|
*/
|
|
2187
|
-
children: React.ReactNode;
|
|
2488
|
+
children: React$1.ReactNode;
|
|
2188
2489
|
/**
|
|
2189
2490
|
* Label of close button.
|
|
2190
2491
|
*/
|
|
@@ -2237,14 +2538,18 @@ interface Props$h {
|
|
|
2237
2538
|
* Initial width of dialog window.
|
|
2238
2539
|
*/
|
|
2239
2540
|
width: number | string;
|
|
2541
|
+
/**
|
|
2542
|
+
* Label of the root dialog element.
|
|
2543
|
+
*/
|
|
2544
|
+
label?: string;
|
|
2240
2545
|
}
|
|
2241
2546
|
|
|
2242
|
-
declare const UIProvider: React.FC<Props$
|
|
2243
|
-
interface Props$
|
|
2547
|
+
declare const UIProvider: React$1.FC<Props$R>;
|
|
2548
|
+
interface Props$R {
|
|
2244
2549
|
/**
|
|
2245
2550
|
* Main content.
|
|
2246
2551
|
*/
|
|
2247
|
-
children: React.ReactNode;
|
|
2552
|
+
children: React$1.ReactNode;
|
|
2248
2553
|
/**
|
|
2249
2554
|
* Initial navbar mode.
|
|
2250
2555
|
*/
|
|
@@ -2264,51 +2569,107 @@ interface Props$g {
|
|
|
2264
2569
|
/**
|
|
2265
2570
|
* Dialog mode options.
|
|
2266
2571
|
*/
|
|
2267
|
-
dialog?: Omit<Props$
|
|
2572
|
+
dialog?: Omit<Props$S, 'children'>;
|
|
2268
2573
|
/**
|
|
2269
2574
|
* Name of selected theme.
|
|
2270
2575
|
*/
|
|
2271
2576
|
theme?: string;
|
|
2577
|
+
/**
|
|
2578
|
+
* Aria label to set on root element.
|
|
2579
|
+
*/
|
|
2580
|
+
label?: string;
|
|
2272
2581
|
}
|
|
2273
2582
|
|
|
2274
|
-
declare const View: React.
|
|
2275
|
-
interface Props$
|
|
2583
|
+
declare const View: React$1.FC<Props$Q>;
|
|
2584
|
+
interface Props$Q {
|
|
2276
2585
|
/**
|
|
2277
|
-
*
|
|
2586
|
+
* Sets component's children.
|
|
2278
2587
|
*/
|
|
2279
|
-
children
|
|
2588
|
+
children?: React$1.ReactNode;
|
|
2280
2589
|
/**
|
|
2281
|
-
* Indicates
|
|
2590
|
+
* Indicates whether view contains side content.
|
|
2282
2591
|
*/
|
|
2283
|
-
|
|
2592
|
+
sideContent?: boolean;
|
|
2593
|
+
}
|
|
2594
|
+
|
|
2595
|
+
declare const ViewContent: React$1.ForwardRefExoticComponent<Props$P & React$1.RefAttributes<HTMLDivElement>>;
|
|
2596
|
+
interface Props$P {
|
|
2284
2597
|
/**
|
|
2285
|
-
* Sets component's
|
|
2598
|
+
* Sets component's children.
|
|
2286
2599
|
*/
|
|
2287
|
-
|
|
2600
|
+
children?: React$1.ReactNode;
|
|
2288
2601
|
/**
|
|
2289
|
-
*
|
|
2602
|
+
* Indicates if content's area is active.
|
|
2290
2603
|
*/
|
|
2291
|
-
|
|
2604
|
+
active?: boolean;
|
|
2292
2605
|
/**
|
|
2293
2606
|
* Sets content `mousedown` event handler.
|
|
2294
2607
|
*/
|
|
2295
|
-
|
|
2608
|
+
onMouseDown?: React$1.MouseEventHandler<HTMLDivElement>;
|
|
2609
|
+
/**
|
|
2610
|
+
* Sets content `keydown` event handler.
|
|
2611
|
+
*/
|
|
2612
|
+
onKeyDown?: React$1.KeyboardEventHandler;
|
|
2613
|
+
/**
|
|
2614
|
+
* Indicates if content contains bar.
|
|
2615
|
+
*/
|
|
2616
|
+
contentBar?: boolean;
|
|
2296
2617
|
}
|
|
2297
2618
|
|
|
2298
|
-
declare const
|
|
2299
|
-
interface Props$
|
|
2619
|
+
declare const ViewContentBar: React$1.FC<Props$O>;
|
|
2620
|
+
interface Props$O {
|
|
2621
|
+
/**
|
|
2622
|
+
* Sets component's children.
|
|
2623
|
+
*/
|
|
2624
|
+
children?: React$1.ReactNode;
|
|
2625
|
+
}
|
|
2626
|
+
|
|
2627
|
+
declare const ViewFooter: React$1.FC<Props$N>;
|
|
2628
|
+
interface Props$N {
|
|
2629
|
+
/**
|
|
2630
|
+
* Sets component's children.
|
|
2631
|
+
*/
|
|
2632
|
+
children?: React$1.ReactNode;
|
|
2633
|
+
}
|
|
2634
|
+
|
|
2635
|
+
declare const ViewHeader: React$1.FC<Props$M>;
|
|
2636
|
+
interface Props$M {
|
|
2637
|
+
/**
|
|
2638
|
+
* Sets component's children.
|
|
2639
|
+
*/
|
|
2640
|
+
children?: React$1.ReactNode;
|
|
2641
|
+
}
|
|
2642
|
+
|
|
2643
|
+
declare const ViewSideContent: React$1.FC<Props$L>;
|
|
2644
|
+
interface Props$L {
|
|
2645
|
+
/**
|
|
2646
|
+
* Sets component's children.
|
|
2647
|
+
*/
|
|
2648
|
+
children?: React$1.ReactNode;
|
|
2649
|
+
}
|
|
2650
|
+
|
|
2651
|
+
declare const ViewContentWrapper: React$1.FC<Props$K>;
|
|
2652
|
+
interface Props$K {
|
|
2653
|
+
/**
|
|
2654
|
+
* Sets component's children.
|
|
2655
|
+
*/
|
|
2656
|
+
children?: React$1.ReactNode;
|
|
2657
|
+
}
|
|
2658
|
+
|
|
2659
|
+
declare const ViewWrapper: React$1.FC<Props$J>;
|
|
2660
|
+
interface Props$J {
|
|
2300
2661
|
/**
|
|
2301
2662
|
* Main content of the component.
|
|
2302
2663
|
*/
|
|
2303
|
-
children: React.ReactNode;
|
|
2664
|
+
children: React$1.ReactNode;
|
|
2304
2665
|
/**
|
|
2305
2666
|
* Sets navbar.
|
|
2306
2667
|
*/
|
|
2307
|
-
navbar?: React.ReactNode;
|
|
2668
|
+
navbar?: React$1.ReactNode;
|
|
2308
2669
|
}
|
|
2309
2670
|
|
|
2310
|
-
declare const RangeSlider: React.FC<Props$
|
|
2311
|
-
declare type Props$
|
|
2671
|
+
declare const RangeSlider: React$1.FC<Props$I>;
|
|
2672
|
+
declare type Props$I = {
|
|
2312
2673
|
/**
|
|
2313
2674
|
* Toggles animation, e.g. width transition.
|
|
2314
2675
|
*/
|
|
@@ -2349,12 +2710,12 @@ declare type Props$d = {
|
|
|
2349
2710
|
showLabels?: boolean;
|
|
2350
2711
|
};
|
|
2351
2712
|
|
|
2352
|
-
declare const FormFeedback: React.FC<Props$
|
|
2353
|
-
declare type Props$
|
|
2713
|
+
declare const FormFeedback: React$1.FC<Props$H>;
|
|
2714
|
+
declare type Props$H = {
|
|
2354
2715
|
/**
|
|
2355
2716
|
* Main content of the component.
|
|
2356
2717
|
*/
|
|
2357
|
-
children: React.ReactNode;
|
|
2718
|
+
children: React$1.ReactNode;
|
|
2358
2719
|
/**
|
|
2359
2720
|
* Feedback error.
|
|
2360
2721
|
*/
|
|
@@ -2365,24 +2726,40 @@ declare type Props$c = {
|
|
|
2365
2726
|
warning?: boolean;
|
|
2366
2727
|
};
|
|
2367
2728
|
|
|
2368
|
-
declare const FormGroup: React.FC<Props$
|
|
2369
|
-
interface Props$
|
|
2729
|
+
declare const FormGroup: React$1.FC<Props$G>;
|
|
2730
|
+
interface Props$G {
|
|
2370
2731
|
/**
|
|
2371
2732
|
* Main content of the component.
|
|
2372
2733
|
*/
|
|
2373
|
-
children: React.ReactNode;
|
|
2734
|
+
children: React$1.ReactNode;
|
|
2374
2735
|
/**
|
|
2375
2736
|
* Applies offset.
|
|
2376
2737
|
*/
|
|
2377
2738
|
offset?: 'base' | 'md';
|
|
2378
2739
|
}
|
|
2379
2740
|
|
|
2380
|
-
declare const
|
|
2381
|
-
|
|
2741
|
+
declare const FormGroupColumn: React$1.FC<Props$F>;
|
|
2742
|
+
interface Props$F {
|
|
2382
2743
|
/**
|
|
2383
2744
|
* Main content of the component.
|
|
2384
2745
|
*/
|
|
2385
|
-
children: React.ReactNode;
|
|
2746
|
+
children: React$1.ReactNode;
|
|
2747
|
+
}
|
|
2748
|
+
|
|
2749
|
+
declare const FormGroupInfo: React$1.FC<Props$E>;
|
|
2750
|
+
interface Props$E {
|
|
2751
|
+
/**
|
|
2752
|
+
* Main content of the component.
|
|
2753
|
+
*/
|
|
2754
|
+
children: React$1.ReactNode;
|
|
2755
|
+
}
|
|
2756
|
+
|
|
2757
|
+
declare const FormInputLabel: React$1.FC<Props$D>;
|
|
2758
|
+
declare type Props$D = {
|
|
2759
|
+
/**
|
|
2760
|
+
* Main content of the component.
|
|
2761
|
+
*/
|
|
2762
|
+
children: React$1.ReactNode;
|
|
2386
2763
|
/**
|
|
2387
2764
|
* Input id.
|
|
2388
2765
|
*/
|
|
@@ -2393,12 +2770,12 @@ declare type Props$a = {
|
|
|
2393
2770
|
hidden?: boolean;
|
|
2394
2771
|
};
|
|
2395
2772
|
|
|
2396
|
-
declare const Form: React.ForwardRefExoticComponent<Props$
|
|
2397
|
-
declare type Props$
|
|
2773
|
+
declare const Form: React$1.ForwardRefExoticComponent<Props$C & React$1.RefAttributes<HTMLFormElement>>;
|
|
2774
|
+
declare type Props$C = {
|
|
2398
2775
|
/**
|
|
2399
2776
|
* Main content of the component.
|
|
2400
2777
|
*/
|
|
2401
|
-
children: React.ReactNode;
|
|
2778
|
+
children: React$1.ReactNode;
|
|
2402
2779
|
/**
|
|
2403
2780
|
* Form class.
|
|
2404
2781
|
*/
|
|
@@ -2410,31 +2787,43 @@ declare type Props$9 = {
|
|
|
2410
2787
|
/**
|
|
2411
2788
|
* Form submit callback.
|
|
2412
2789
|
*/
|
|
2413
|
-
onSubmit: React.FormEventHandler<HTMLFormElement>;
|
|
2790
|
+
onSubmit: React$1.FormEventHandler<HTMLFormElement>;
|
|
2414
2791
|
};
|
|
2415
2792
|
|
|
2416
|
-
declare const
|
|
2417
|
-
interface Props$
|
|
2793
|
+
declare const EmptyViewLabel: React$1.FC<Props$B>;
|
|
2794
|
+
interface Props$B {
|
|
2795
|
+
/**
|
|
2796
|
+
* Main content of the component.
|
|
2797
|
+
*/
|
|
2798
|
+
children?: React$1.ReactNode;
|
|
2799
|
+
/**
|
|
2800
|
+
* Adds styling for muted label.
|
|
2801
|
+
*/
|
|
2802
|
+
muted?: boolean;
|
|
2803
|
+
}
|
|
2804
|
+
|
|
2805
|
+
declare const EmptyView: React$1.ForwardRefExoticComponent<Props$A & React$1.RefAttributes<HTMLDivElement>>;
|
|
2806
|
+
interface Props$A {
|
|
2418
2807
|
/**
|
|
2419
2808
|
* Adds active styling.
|
|
2420
2809
|
*/
|
|
2421
2810
|
active?: boolean;
|
|
2422
2811
|
/**
|
|
2423
|
-
*
|
|
2812
|
+
* Main content of the component.
|
|
2424
2813
|
*/
|
|
2425
|
-
|
|
2814
|
+
children?: React$1.ReactNode;
|
|
2426
2815
|
/**
|
|
2427
2816
|
* Empty view icon.
|
|
2428
2817
|
*/
|
|
2429
2818
|
icon: IconName;
|
|
2430
2819
|
/**
|
|
2431
|
-
*
|
|
2820
|
+
* Sets styling mode.
|
|
2432
2821
|
*/
|
|
2433
|
-
|
|
2822
|
+
type?: 'dropzone' | 'default';
|
|
2434
2823
|
}
|
|
2435
2824
|
|
|
2436
|
-
declare const FileInputButton: React.ForwardRefExoticComponent<Props$
|
|
2437
|
-
interface Props$
|
|
2825
|
+
declare const FileInputButton: React$1.ForwardRefExoticComponent<Props$z & React$1.RefAttributes<HTMLInputElement>>;
|
|
2826
|
+
interface Props$z extends Omit<Props$1N, 'onClick'> {
|
|
2438
2827
|
/**
|
|
2439
2828
|
* Unique input's id.
|
|
2440
2829
|
*/
|
|
@@ -2442,7 +2831,7 @@ interface Props$7 extends Omit<Props$14, 'onClick'> {
|
|
|
2442
2831
|
/**
|
|
2443
2832
|
* Main content of the component.
|
|
2444
2833
|
*/
|
|
2445
|
-
children: React.ReactNode;
|
|
2834
|
+
children: React$1.ReactNode;
|
|
2446
2835
|
/**
|
|
2447
2836
|
* Input's name to register.
|
|
2448
2837
|
*/
|
|
@@ -2450,7 +2839,7 @@ interface Props$7 extends Omit<Props$14, 'onClick'> {
|
|
|
2450
2839
|
/**
|
|
2451
2840
|
* Callback invoked when the value is changed.
|
|
2452
2841
|
*/
|
|
2453
|
-
onChange?: (evt: React.ChangeEvent<HTMLInputElement>) => Promise<void>;
|
|
2842
|
+
onChange?: (evt: React$1.ChangeEvent<HTMLInputElement>) => Promise<void>;
|
|
2454
2843
|
/**
|
|
2455
2844
|
* Input's value.
|
|
2456
2845
|
*/
|
|
@@ -2461,106 +2850,292 @@ interface Props$7 extends Omit<Props$14, 'onClick'> {
|
|
|
2461
2850
|
accept?: string;
|
|
2462
2851
|
}
|
|
2463
2852
|
|
|
2464
|
-
|
|
2465
|
-
|
|
2466
|
-
* All coordinates are in relation to container's top left corner.
|
|
2467
|
-
*/
|
|
2468
|
-
interface SelectionAreaCoords {
|
|
2853
|
+
declare const FilePreviewActions: React$1.FC<Props$y>;
|
|
2854
|
+
interface Props$y {
|
|
2469
2855
|
/**
|
|
2470
|
-
*
|
|
2856
|
+
* Label of the back button.
|
|
2471
2857
|
*/
|
|
2472
|
-
|
|
2858
|
+
backBtnLabel: string;
|
|
2473
2859
|
/**
|
|
2474
|
-
*
|
|
2860
|
+
* Main content of the component.
|
|
2475
2861
|
*/
|
|
2476
|
-
|
|
2862
|
+
children?: React$1.ReactNode;
|
|
2477
2863
|
/**
|
|
2478
|
-
*
|
|
2864
|
+
* Label of the close button.
|
|
2479
2865
|
*/
|
|
2480
|
-
|
|
2866
|
+
closeBtnLabel: string;
|
|
2481
2867
|
/**
|
|
2482
|
-
*
|
|
2868
|
+
* Text displayed as title in the action bar.
|
|
2483
2869
|
*/
|
|
2484
|
-
|
|
2870
|
+
title: string;
|
|
2485
2871
|
}
|
|
2486
2872
|
|
|
2487
|
-
declare const
|
|
2488
|
-
interface Props$
|
|
2489
|
-
/**
|
|
2490
|
-
* Selection area container.
|
|
2491
|
-
*/
|
|
2492
|
-
container?: HTMLDivElement | null;
|
|
2493
|
-
/**
|
|
2494
|
-
* Area selection change handler.
|
|
2495
|
-
*/
|
|
2496
|
-
onSelectionChange?: (area: SelectionAreaCoords) => void;
|
|
2873
|
+
declare const FilePreviewContent: React$1.ForwardRefExoticComponent<Props$x & React$1.RefAttributes<HTMLDivElement>>;
|
|
2874
|
+
interface Props$x {
|
|
2497
2875
|
/**
|
|
2498
|
-
*
|
|
2876
|
+
* Main content of the component.
|
|
2499
2877
|
*/
|
|
2500
|
-
|
|
2878
|
+
children: React$1.ReactNode;
|
|
2501
2879
|
}
|
|
2502
2880
|
|
|
2503
|
-
declare const
|
|
2504
|
-
interface Props$
|
|
2505
|
-
/**
|
|
2506
|
-
* Container's position will be adjusted in accordance with provided element's height.
|
|
2507
|
-
*/
|
|
2508
|
-
bottomOffsetEl?: HTMLElement | null;
|
|
2881
|
+
declare const FilePreviewHoverable: React$1.ForwardRefExoticComponent<Props$w & React$1.RefAttributes<HTMLDivElement>>;
|
|
2882
|
+
interface Props$w {
|
|
2509
2883
|
/**
|
|
2510
2884
|
* Main content of the component.
|
|
2511
2885
|
*/
|
|
2512
|
-
children: React.ReactNode;
|
|
2886
|
+
children: React$1.ReactNode;
|
|
2513
2887
|
}
|
|
2514
2888
|
|
|
2515
|
-
declare const
|
|
2516
|
-
|
|
2889
|
+
declare const FilePreviewNavigationButtons: React$1.FC<Props$v>;
|
|
2890
|
+
declare type Side = 'left' | 'right';
|
|
2891
|
+
interface Props$v {
|
|
2517
2892
|
/**
|
|
2518
|
-
*
|
|
2893
|
+
* Disables button.
|
|
2519
2894
|
*/
|
|
2520
|
-
|
|
2895
|
+
disabled?: boolean;
|
|
2521
2896
|
/**
|
|
2522
|
-
*
|
|
2897
|
+
* Button's aria label.
|
|
2523
2898
|
*/
|
|
2524
|
-
|
|
2899
|
+
label: string;
|
|
2525
2900
|
/**
|
|
2526
|
-
*
|
|
2901
|
+
* Callback invoked on click.
|
|
2527
2902
|
*/
|
|
2528
|
-
|
|
2903
|
+
onClick?: () => void;
|
|
2529
2904
|
/**
|
|
2530
|
-
*
|
|
2905
|
+
* Places button on the specified side of the `FilePreview`.
|
|
2531
2906
|
*/
|
|
2532
|
-
|
|
2907
|
+
side?: Side;
|
|
2908
|
+
}
|
|
2909
|
+
|
|
2910
|
+
declare const FilePreviewTooltip: React$1.FC<Props$u>;
|
|
2911
|
+
interface Props$u {
|
|
2533
2912
|
/**
|
|
2534
|
-
*
|
|
2913
|
+
* Main content of the tooltip.
|
|
2535
2914
|
*/
|
|
2536
|
-
|
|
2915
|
+
children?: React$1.ReactNode;
|
|
2537
2916
|
}
|
|
2538
2917
|
|
|
2539
|
-
declare const
|
|
2540
|
-
|
|
2541
|
-
* `Notification` component is rendered as part of `TransitionGroup` and therefore gets transition props in addition to its regular props.
|
|
2542
|
-
*/
|
|
2543
|
-
declare type Props$3 = Partial<TransitionProps> & {
|
|
2918
|
+
declare const FilePreview: React$1.ForwardRefExoticComponent<Props$t & React$1.RefAttributes<HTMLDivElement>>;
|
|
2919
|
+
interface Props$t {
|
|
2544
2920
|
/**
|
|
2545
|
-
*
|
|
2921
|
+
* Main content of the component.
|
|
2546
2922
|
*/
|
|
2547
|
-
|
|
2923
|
+
children: React$1.ReactNode;
|
|
2548
2924
|
/**
|
|
2549
|
-
* Label
|
|
2925
|
+
* Label of the dialog element.
|
|
2550
2926
|
*/
|
|
2551
|
-
|
|
2927
|
+
label?: string;
|
|
2552
2928
|
/**
|
|
2553
|
-
*
|
|
2929
|
+
* Callback invoked when file preview is closed.
|
|
2554
2930
|
*/
|
|
2555
|
-
|
|
2931
|
+
onClose?: () => void;
|
|
2556
2932
|
/**
|
|
2557
|
-
*
|
|
2933
|
+
* Callback invoked when left arrow is clicked.
|
|
2558
2934
|
*/
|
|
2559
|
-
|
|
2935
|
+
onLeftArrowDown?: () => void;
|
|
2560
2936
|
/**
|
|
2561
|
-
*
|
|
2937
|
+
* Callback invoked when right arrow is clicked.
|
|
2562
2938
|
*/
|
|
2563
|
-
|
|
2939
|
+
onRightArrowDown?: () => void;
|
|
2940
|
+
/**
|
|
2941
|
+
* Opens file preview.
|
|
2942
|
+
*/
|
|
2943
|
+
open?: boolean;
|
|
2944
|
+
}
|
|
2945
|
+
|
|
2946
|
+
/**
|
|
2947
|
+
* Selection rectangle's coordinates.
|
|
2948
|
+
* All coordinates are in relation to container's top left corner.
|
|
2949
|
+
*/
|
|
2950
|
+
interface SelectionAreaCoords {
|
|
2951
|
+
/**
|
|
2952
|
+
* Selection rectangle's `x` position.
|
|
2953
|
+
*/
|
|
2954
|
+
x: number;
|
|
2955
|
+
/**
|
|
2956
|
+
* Selection rectangle's `y` position.
|
|
2957
|
+
*/
|
|
2958
|
+
y: number;
|
|
2959
|
+
/**
|
|
2960
|
+
* Selection rectangle's width.
|
|
2961
|
+
*/
|
|
2962
|
+
width: number;
|
|
2963
|
+
/**
|
|
2964
|
+
* Selection rectangle's height.
|
|
2965
|
+
*/
|
|
2966
|
+
height: number;
|
|
2967
|
+
}
|
|
2968
|
+
|
|
2969
|
+
declare const SelectionArea: React$1.FC<Props$s>;
|
|
2970
|
+
interface Props$s {
|
|
2971
|
+
/**
|
|
2972
|
+
* Selection area container.
|
|
2973
|
+
*/
|
|
2974
|
+
container?: HTMLDivElement | null;
|
|
2975
|
+
/**
|
|
2976
|
+
* Area selection change handler.
|
|
2977
|
+
*/
|
|
2978
|
+
onSelectionChange?: (area: SelectionAreaCoords) => void;
|
|
2979
|
+
/**
|
|
2980
|
+
* Selector for ignoring areas started within passed selector.
|
|
2981
|
+
*/
|
|
2982
|
+
ignoredSelector?: string;
|
|
2983
|
+
}
|
|
2984
|
+
|
|
2985
|
+
interface SelectOption {
|
|
2986
|
+
/**
|
|
2987
|
+
* Unique ID of an option.
|
|
2988
|
+
*/
|
|
2989
|
+
id: string;
|
|
2990
|
+
/**
|
|
2991
|
+
* Value displayed for the user.
|
|
2992
|
+
*/
|
|
2993
|
+
label: string;
|
|
2994
|
+
}
|
|
2995
|
+
interface SelectKeyboardNavProps {
|
|
2996
|
+
/**
|
|
2997
|
+
* Listbox element.
|
|
2998
|
+
*/
|
|
2999
|
+
listboxEl: HTMLElement | null;
|
|
3000
|
+
/**
|
|
3001
|
+
* Flag indicating if listbox is currently open.
|
|
3002
|
+
*/
|
|
3003
|
+
listboxOpen: boolean;
|
|
3004
|
+
/**
|
|
3005
|
+
* Callback that is called whenever listbox opening is requested.
|
|
3006
|
+
*/
|
|
3007
|
+
onListboxOpen: () => void;
|
|
3008
|
+
/**
|
|
3009
|
+
* Toggles selection of an option.
|
|
3010
|
+
*/
|
|
3011
|
+
onSelectToggle: SelectToggleHandler;
|
|
3012
|
+
/**
|
|
3013
|
+
* List of options to navigate.
|
|
3014
|
+
*/
|
|
3015
|
+
options: SelectOption[];
|
|
3016
|
+
}
|
|
3017
|
+
/**
|
|
3018
|
+
* Toggles selection of a provided option.
|
|
3019
|
+
*/
|
|
3020
|
+
declare type SelectToggleHandler = (opt: SelectOption) => void;
|
|
3021
|
+
/**
|
|
3022
|
+
* Gets next / previous option (for keyboard selection).
|
|
3023
|
+
*/
|
|
3024
|
+
declare type SelectKeyboardNextIdGetter = (options: SelectOption[], currentIndex: number) => SelectOption | undefined;
|
|
3025
|
+
|
|
3026
|
+
declare const Select: React$1.FC<Props$r>;
|
|
3027
|
+
interface Props$r {
|
|
3028
|
+
/**
|
|
3029
|
+
* Indicate error in input element.
|
|
3030
|
+
*/
|
|
3031
|
+
error?: boolean;
|
|
3032
|
+
/**
|
|
3033
|
+
* ID of the input element.
|
|
3034
|
+
*/
|
|
3035
|
+
id?: string;
|
|
3036
|
+
/**
|
|
3037
|
+
* Allows to select multiple options.
|
|
3038
|
+
*/
|
|
3039
|
+
multiSelect?: boolean;
|
|
3040
|
+
/**
|
|
3041
|
+
* Callback invoked when component loses focus.
|
|
3042
|
+
*/
|
|
3043
|
+
onBlur?: () => void;
|
|
3044
|
+
/**
|
|
3045
|
+
* Callback invoked whenever an item is selected or deselected.
|
|
3046
|
+
*/
|
|
3047
|
+
onSelectToggle: SelectToggleHandler;
|
|
3048
|
+
/**
|
|
3049
|
+
* Message displayed if listbox is empty.
|
|
3050
|
+
*/
|
|
3051
|
+
noOptionsLabel?: string;
|
|
3052
|
+
/**
|
|
3053
|
+
* List of options.
|
|
3054
|
+
*/
|
|
3055
|
+
options: SelectOption[];
|
|
3056
|
+
/**
|
|
3057
|
+
* Textual placeholder if there are no options selected.
|
|
3058
|
+
*/
|
|
3059
|
+
placeholder?: string;
|
|
3060
|
+
/**
|
|
3061
|
+
* List of selected options.
|
|
3062
|
+
*/
|
|
3063
|
+
selected: SelectOption[];
|
|
3064
|
+
/**
|
|
3065
|
+
* Allows to search through options.
|
|
3066
|
+
*/
|
|
3067
|
+
searchable?: boolean;
|
|
3068
|
+
}
|
|
3069
|
+
|
|
3070
|
+
declare const Notifications: React$1.FC<Props$q>;
|
|
3071
|
+
interface Props$q {
|
|
3072
|
+
/**
|
|
3073
|
+
* Container's position will be adjusted in accordance with provided element's height.
|
|
3074
|
+
*/
|
|
3075
|
+
bottomOffsetEl?: HTMLElement | null;
|
|
3076
|
+
/**
|
|
3077
|
+
* Main content of the component.
|
|
3078
|
+
*/
|
|
3079
|
+
children: React$1.ReactNode;
|
|
3080
|
+
/**
|
|
3081
|
+
* Controls if bottom-offset should be applied to notifications container.
|
|
3082
|
+
*/
|
|
3083
|
+
offsetBottom?: boolean;
|
|
3084
|
+
}
|
|
3085
|
+
|
|
3086
|
+
declare const NotificationDetails: React$1.FC<Props$p>;
|
|
3087
|
+
interface Props$p {
|
|
3088
|
+
/**
|
|
3089
|
+
* Main content of the component.
|
|
3090
|
+
*/
|
|
3091
|
+
children: React$1.ReactNode;
|
|
3092
|
+
/**
|
|
3093
|
+
* Label for close button.
|
|
3094
|
+
*/
|
|
3095
|
+
closeLabel?: string;
|
|
3096
|
+
/**
|
|
3097
|
+
* Notification details close callback.
|
|
3098
|
+
*/
|
|
3099
|
+
onClose?: () => void;
|
|
3100
|
+
/**
|
|
3101
|
+
* Toggles dialog.
|
|
3102
|
+
*/
|
|
3103
|
+
open?: boolean;
|
|
3104
|
+
/**
|
|
3105
|
+
* Notification title.
|
|
3106
|
+
*/
|
|
3107
|
+
title: string;
|
|
3108
|
+
/**
|
|
3109
|
+
* Notification type.
|
|
3110
|
+
*/
|
|
3111
|
+
type: 'success' | 'error' | 'info';
|
|
3112
|
+
}
|
|
3113
|
+
|
|
3114
|
+
declare const Notification: React$1.FC<Props$o>;
|
|
3115
|
+
/**
|
|
3116
|
+
* `Notification` component is rendered as part of `TransitionGroup` and therefore gets transition props in addition to its regular props.
|
|
3117
|
+
*/
|
|
3118
|
+
declare type Props$o = Partial<TransitionProps> & {
|
|
3119
|
+
/**
|
|
3120
|
+
* Label for "Close" button.
|
|
3121
|
+
*/
|
|
3122
|
+
closeLabel: string;
|
|
3123
|
+
/**
|
|
3124
|
+
* Label for "Close Details" button.
|
|
3125
|
+
*/
|
|
3126
|
+
closeDetailsLabel?: string;
|
|
3127
|
+
/**
|
|
3128
|
+
* Optional notification details.
|
|
3129
|
+
*/
|
|
3130
|
+
details?: React$1.ReactNode;
|
|
3131
|
+
/**
|
|
3132
|
+
* Notification close callback.
|
|
3133
|
+
*/
|
|
3134
|
+
onClose?: () => void;
|
|
3135
|
+
/**
|
|
3136
|
+
* Label for "Open Details" button.
|
|
3137
|
+
*/
|
|
3138
|
+
openDetailsLabel?: string;
|
|
2564
3139
|
/**
|
|
2565
3140
|
* Notification title.
|
|
2566
3141
|
*/
|
|
@@ -2571,8 +3146,8 @@ declare type Props$3 = Partial<TransitionProps> & {
|
|
|
2571
3146
|
type: 'success' | 'error' | 'info';
|
|
2572
3147
|
};
|
|
2573
3148
|
|
|
2574
|
-
declare const CopyableInput: React.FC<Props$
|
|
2575
|
-
interface Props$
|
|
3149
|
+
declare const CopyableInput: React$1.FC<Props$n>;
|
|
3150
|
+
interface Props$n {
|
|
2576
3151
|
/**
|
|
2577
3152
|
* Unique input's id.
|
|
2578
3153
|
*/
|
|
@@ -2595,8 +3170,8 @@ interface Props$2 {
|
|
|
2595
3170
|
labelCopied: string;
|
|
2596
3171
|
}
|
|
2597
3172
|
|
|
2598
|
-
declare const CopyButton: React.FC<Props$
|
|
2599
|
-
interface Props$
|
|
3173
|
+
declare const CopyButton: React$1.FC<Props$m>;
|
|
3174
|
+
interface Props$m {
|
|
2600
3175
|
/**
|
|
2601
3176
|
* Value to be copied to clipboard.
|
|
2602
3177
|
*/
|
|
@@ -2611,12 +3186,380 @@ interface Props$1 {
|
|
|
2611
3186
|
labelCopied: string;
|
|
2612
3187
|
}
|
|
2613
3188
|
|
|
2614
|
-
declare
|
|
2615
|
-
|
|
3189
|
+
declare type BreakpointKey = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
3190
|
+
declare type BreakpointMap = Record<BreakpointKey, number>;
|
|
3191
|
+
/**
|
|
3192
|
+
* Encapsulates logic that allows to compare specified breakpoints.
|
|
3193
|
+
* Breakpoint values are treated as equivalent of CSS `min-width` property.
|
|
3194
|
+
* For instance, key `md` with value `900` means that breakpoint `md` is achieved for at least 900px of width.
|
|
3195
|
+
*/
|
|
3196
|
+
declare class Breakpoints {
|
|
3197
|
+
breakpoints: BreakpointMap;
|
|
3198
|
+
constructor(breakpoints: BreakpointMap);
|
|
3199
|
+
/**
|
|
3200
|
+
* Checks if requested key is lower than reference breakpoint.
|
|
3201
|
+
* Matches [0px, {key}) (`key` exclusive).
|
|
3202
|
+
*
|
|
3203
|
+
* @param key maximum requested breakpoint
|
|
3204
|
+
* @param breakpoint reference breakpoint
|
|
3205
|
+
* @returns flag indicating if requested key is lower than reference breakpoint
|
|
3206
|
+
*/
|
|
3207
|
+
down(key: BreakpointKey, breakpoint: BreakpointKey): boolean;
|
|
3208
|
+
/**
|
|
3209
|
+
* Gets matching breakpoint key for the specified width.
|
|
3210
|
+
*
|
|
3211
|
+
* @param width width in px
|
|
3212
|
+
* @returns matching breakpoint key
|
|
3213
|
+
*/
|
|
3214
|
+
toKey(width: number): BreakpointKey;
|
|
3215
|
+
/**
|
|
3216
|
+
* Checks if requested key is greater than or equal reference breakpoint.
|
|
3217
|
+
* Matches [{key}, ∞) (`key` inclusive).
|
|
3218
|
+
*
|
|
3219
|
+
* @param key minimum requested key
|
|
3220
|
+
* @param breakpoint reference breakpoint
|
|
3221
|
+
* @returns flag indicating if requested key is greater than or equal reference breakpoint
|
|
3222
|
+
*/
|
|
3223
|
+
up(key: BreakpointKey, breakpoint: BreakpointKey): boolean;
|
|
3224
|
+
}
|
|
3225
|
+
|
|
3226
|
+
interface ContainerQueryContext {
|
|
3227
|
+
/**
|
|
3228
|
+
* Current breakpoint key of the container.
|
|
3229
|
+
*/
|
|
3230
|
+
key?: BreakpointKey;
|
|
3231
|
+
/**
|
|
3232
|
+
* Current vertical breakpoint key of the container.
|
|
3233
|
+
*/
|
|
3234
|
+
keyVertical?: BreakpointKey;
|
|
3235
|
+
/**
|
|
3236
|
+
* Breakpoint utils.
|
|
3237
|
+
*/
|
|
3238
|
+
breakpoints?: Breakpoints;
|
|
3239
|
+
}
|
|
3240
|
+
declare const ContainerQueryContext: React$1.Context<ContainerQueryContext>;
|
|
3241
|
+
declare const useContainerQuery: () => ContainerQueryContext;
|
|
3242
|
+
|
|
3243
|
+
declare const ContainerQueryProvider: React$1.FC<Props$l>;
|
|
3244
|
+
interface Props$l {
|
|
3245
|
+
/**
|
|
3246
|
+
* Maps breakpoint keys to width values. Each key corresponds to minimum value (in px).
|
|
3247
|
+
*/
|
|
3248
|
+
breakpointValues: BreakpointMap;
|
|
2616
3249
|
/**
|
|
2617
3250
|
* Main content of the component.
|
|
2618
3251
|
*/
|
|
2619
|
-
children: React.ReactNode;
|
|
3252
|
+
children: React$1.ReactNode;
|
|
3253
|
+
/**
|
|
3254
|
+
* Element used as container.
|
|
3255
|
+
*/
|
|
3256
|
+
containerEl?: HTMLElement | null;
|
|
3257
|
+
}
|
|
3258
|
+
|
|
3259
|
+
declare const ContainerQuery: React$1.FC<Props$k>;
|
|
3260
|
+
interface Props$k {
|
|
3261
|
+
/**
|
|
3262
|
+
* Main content of the component.
|
|
3263
|
+
*/
|
|
3264
|
+
children: React$1.ReactNode;
|
|
3265
|
+
/**
|
|
3266
|
+
* Specifies maximum breakpoint key at which component should be still shown.
|
|
3267
|
+
*/
|
|
3268
|
+
down?: BreakpointKey;
|
|
3269
|
+
/**
|
|
3270
|
+
* Specifies minimum breakpoint key starting from which component should be shown.
|
|
3271
|
+
*/
|
|
3272
|
+
up?: BreakpointKey;
|
|
3273
|
+
}
|
|
3274
|
+
|
|
3275
|
+
interface FixedContext {
|
|
3276
|
+
/**
|
|
3277
|
+
* Element used a root for fixed UI components within the context.
|
|
3278
|
+
*/
|
|
3279
|
+
rootEl?: HTMLElement | null;
|
|
3280
|
+
}
|
|
3281
|
+
declare const FixedContext: React$1.Context<FixedContext>;
|
|
3282
|
+
declare const useFixedCtx: () => FixedContext;
|
|
3283
|
+
|
|
3284
|
+
declare const FixedProvider: React$1.FC<Props$j>;
|
|
3285
|
+
interface Props$j {
|
|
3286
|
+
/**
|
|
3287
|
+
* Main content of the component.
|
|
3288
|
+
*/
|
|
3289
|
+
children: React$1.ReactNode;
|
|
3290
|
+
/**
|
|
3291
|
+
* By default fixed components will be mounted at main UI root.
|
|
3292
|
+
* Provide a different element to use as a root.
|
|
3293
|
+
*/
|
|
3294
|
+
rootEl?: HTMLElement | null;
|
|
3295
|
+
}
|
|
3296
|
+
|
|
3297
|
+
declare const Fixed: React$1.FC<Props$i>;
|
|
3298
|
+
interface Props$i {
|
|
3299
|
+
/**
|
|
3300
|
+
* Main content of the component.
|
|
3301
|
+
*/
|
|
3302
|
+
children: React$1.ReactNode;
|
|
3303
|
+
}
|
|
3304
|
+
|
|
3305
|
+
declare const LoadingButton: React$1.ForwardRefExoticComponent<Props$h & React$1.RefAttributes<HTMLButtonElement>>;
|
|
3306
|
+
interface Props$h extends Props$1N {
|
|
3307
|
+
/**
|
|
3308
|
+
* Delays loader appearance. Defaults to `true`.
|
|
3309
|
+
*/
|
|
3310
|
+
delay?: boolean;
|
|
3311
|
+
/**
|
|
3312
|
+
* Toggles loading state.
|
|
3313
|
+
*/
|
|
3314
|
+
loading?: boolean;
|
|
3315
|
+
/**
|
|
3316
|
+
* Positions loader. Defaults to `center`.
|
|
3317
|
+
*/
|
|
3318
|
+
loaderPosition?: 'left' | 'center' | 'right';
|
|
3319
|
+
}
|
|
3320
|
+
|
|
3321
|
+
declare const ListItem: React$1.ForwardRefExoticComponent<Props$g & React$1.RefAttributes<HTMLLIElement>>;
|
|
3322
|
+
interface Props$g {
|
|
3323
|
+
/**
|
|
3324
|
+
* Main content of the component.
|
|
3325
|
+
*/
|
|
3326
|
+
children?: React$1.ReactNode;
|
|
3327
|
+
/**
|
|
3328
|
+
* Placeholder label for the component.
|
|
3329
|
+
*/
|
|
3330
|
+
placeholderLabel?: string;
|
|
3331
|
+
/**
|
|
3332
|
+
* Callback invoked when clicking on list item content.
|
|
3333
|
+
*/
|
|
3334
|
+
onContentClick?: () => void;
|
|
3335
|
+
/**
|
|
3336
|
+
* Action buttons displayed in list item.
|
|
3337
|
+
*/
|
|
3338
|
+
actionButtons?: React$1.ReactNode;
|
|
3339
|
+
/**
|
|
3340
|
+
* List item's class name.
|
|
3341
|
+
*/
|
|
3342
|
+
className?: string;
|
|
3343
|
+
}
|
|
3344
|
+
|
|
3345
|
+
declare const List: React$1.FC<Props$f>;
|
|
3346
|
+
interface Props$f {
|
|
3347
|
+
/**
|
|
3348
|
+
* Main content of the component.
|
|
3349
|
+
*/
|
|
3350
|
+
children: React$1.ReactNode;
|
|
3351
|
+
/**
|
|
3352
|
+
* List's class name.
|
|
3353
|
+
*/
|
|
3354
|
+
className?: string;
|
|
3355
|
+
}
|
|
3356
|
+
|
|
3357
|
+
declare const SearchDialogActions: React$1.FC<Props$e>;
|
|
3358
|
+
interface Props$e {
|
|
3359
|
+
/**
|
|
3360
|
+
* Main content of the component.
|
|
3361
|
+
*/
|
|
3362
|
+
children: React$1.ReactNode;
|
|
3363
|
+
}
|
|
3364
|
+
|
|
3365
|
+
declare const SearchDialogContent: React$1.FC<Props$d>;
|
|
3366
|
+
interface Props$d {
|
|
3367
|
+
/**
|
|
3368
|
+
* Main content of the component.
|
|
3369
|
+
*/
|
|
3370
|
+
children: React$1.ReactNode;
|
|
3371
|
+
}
|
|
3372
|
+
|
|
3373
|
+
declare const SearchDialogFallback: React$1.FC<Props$c>;
|
|
3374
|
+
interface Props$c {
|
|
3375
|
+
/**
|
|
3376
|
+
* Main content of the component.
|
|
3377
|
+
*/
|
|
3378
|
+
children: React$1.ReactNode;
|
|
3379
|
+
}
|
|
3380
|
+
|
|
3381
|
+
declare const SearchDialogHeader: React$1.FC<Props$b>;
|
|
3382
|
+
interface Props$b {
|
|
3383
|
+
/**
|
|
3384
|
+
* Optional action rendered next to close button.
|
|
3385
|
+
*/
|
|
3386
|
+
action?: React$1.ReactNode;
|
|
3387
|
+
/**
|
|
3388
|
+
* Main content of the component.
|
|
3389
|
+
*/
|
|
3390
|
+
children: React$1.ReactNode;
|
|
3391
|
+
/**
|
|
3392
|
+
* Aria label for the close button.
|
|
3393
|
+
*/
|
|
3394
|
+
closeBtnLabel: string;
|
|
3395
|
+
/**
|
|
3396
|
+
* Aria label for the input.
|
|
3397
|
+
*/
|
|
3398
|
+
inputLabel: string;
|
|
3399
|
+
/**
|
|
3400
|
+
* Callback invoked when form is submitted.
|
|
3401
|
+
*/
|
|
3402
|
+
onSubmit?: React$1.FormEventHandler;
|
|
3403
|
+
}
|
|
3404
|
+
|
|
3405
|
+
declare const SearchDialogInput: React$1.ForwardRefExoticComponent<Props$a & React$1.RefAttributes<HTMLInputElement>>;
|
|
3406
|
+
interface Props$a {
|
|
3407
|
+
/**
|
|
3408
|
+
* Input's name to register.
|
|
3409
|
+
*/
|
|
3410
|
+
name?: string;
|
|
3411
|
+
/**
|
|
3412
|
+
* Callback invoked when the blur event is fired.
|
|
3413
|
+
*/
|
|
3414
|
+
onBlur?: (evt: React$1.ChangeEvent) => void;
|
|
3415
|
+
/**
|
|
3416
|
+
* Callback invoked when the value is changed.
|
|
3417
|
+
*/
|
|
3418
|
+
onChange?: (evt: React$1.ChangeEvent) => void;
|
|
3419
|
+
/**
|
|
3420
|
+
* Callback invoked when the element receives focus.
|
|
3421
|
+
*/
|
|
3422
|
+
onFocus?: (evt: React$1.ChangeEvent) => void;
|
|
3423
|
+
/**
|
|
3424
|
+
* Input's placeholder text.
|
|
3425
|
+
*/
|
|
3426
|
+
placeholder?: string;
|
|
3427
|
+
/**
|
|
3428
|
+
* Input's value.
|
|
3429
|
+
*/
|
|
3430
|
+
value?: string;
|
|
3431
|
+
}
|
|
3432
|
+
|
|
3433
|
+
declare const SearchDialogSection: React$1.FC<Props$9>;
|
|
3434
|
+
interface Props$9 {
|
|
3435
|
+
/**
|
|
3436
|
+
* Main content of the component.
|
|
3437
|
+
*/
|
|
3438
|
+
children: React$1.ReactNode;
|
|
3439
|
+
/**
|
|
3440
|
+
* Header of the section.
|
|
3441
|
+
*/
|
|
3442
|
+
header?: string;
|
|
3443
|
+
}
|
|
3444
|
+
|
|
3445
|
+
declare const SearchDialog: React$1.FC<Props$8>;
|
|
3446
|
+
interface Props$8 {
|
|
3447
|
+
/**
|
|
3448
|
+
* Main content of the component.
|
|
3449
|
+
*/
|
|
3450
|
+
children: React$1.ReactNode;
|
|
3451
|
+
/**
|
|
3452
|
+
* Label of the dialog element.
|
|
3453
|
+
*/
|
|
3454
|
+
label?: string;
|
|
3455
|
+
/**
|
|
3456
|
+
* Callback invoked when dialog is closed.
|
|
3457
|
+
*/
|
|
3458
|
+
onClose?: () => void;
|
|
3459
|
+
/**
|
|
3460
|
+
* Opens file preview.
|
|
3461
|
+
*/
|
|
3462
|
+
open?: boolean;
|
|
3463
|
+
}
|
|
3464
|
+
|
|
3465
|
+
declare const DrawerActions: React$1.FC<Props$7>;
|
|
3466
|
+
interface Props$7 {
|
|
3467
|
+
/**
|
|
3468
|
+
* Main content of the component.
|
|
3469
|
+
*/
|
|
3470
|
+
children: React$1.ReactNode;
|
|
3471
|
+
}
|
|
3472
|
+
|
|
3473
|
+
declare const DrawerContent: React$1.FC<Props$6>;
|
|
3474
|
+
interface Props$6 {
|
|
3475
|
+
/**
|
|
3476
|
+
* Main content of the component.
|
|
3477
|
+
*/
|
|
3478
|
+
children: React$1.ReactNode;
|
|
3479
|
+
}
|
|
3480
|
+
|
|
3481
|
+
declare const DrawerHeader: React$1.FC<Props$5>;
|
|
3482
|
+
interface Props$5 {
|
|
3483
|
+
/**
|
|
3484
|
+
* Text displayed as title in the bar.
|
|
3485
|
+
*/
|
|
3486
|
+
title: string;
|
|
3487
|
+
/**
|
|
3488
|
+
* Label of the close button.
|
|
3489
|
+
*/
|
|
3490
|
+
closeBtnLabel: string;
|
|
3491
|
+
}
|
|
3492
|
+
|
|
3493
|
+
declare const DrawerSection: React$1.ForwardRefExoticComponent<Props$4 & React$1.RefAttributes<HTMLDivElement>>;
|
|
3494
|
+
interface Props$4 {
|
|
3495
|
+
/**
|
|
3496
|
+
* Main content of the component.
|
|
3497
|
+
*/
|
|
3498
|
+
children: React$1.ReactNode;
|
|
3499
|
+
/**
|
|
3500
|
+
* Fixes section's height.
|
|
3501
|
+
*/
|
|
3502
|
+
fixedHeight?: boolean;
|
|
3503
|
+
/**
|
|
3504
|
+
* Centers section's content.
|
|
3505
|
+
*/
|
|
3506
|
+
centeredContent?: boolean;
|
|
3507
|
+
}
|
|
3508
|
+
|
|
3509
|
+
declare const Drawer: React$1.FC<Props$3>;
|
|
3510
|
+
interface Props$3 {
|
|
3511
|
+
/**
|
|
3512
|
+
* Main content of the component.
|
|
3513
|
+
*/
|
|
3514
|
+
children: React$1.ReactNode;
|
|
3515
|
+
/**
|
|
3516
|
+
* Label of the dialog element.
|
|
3517
|
+
*/
|
|
3518
|
+
label?: string;
|
|
3519
|
+
/**
|
|
3520
|
+
* Callback invoked when drawer is closed.
|
|
3521
|
+
*/
|
|
3522
|
+
onClose?: () => void;
|
|
3523
|
+
/**
|
|
3524
|
+
* Opens drawer.
|
|
3525
|
+
*/
|
|
3526
|
+
open?: boolean;
|
|
3527
|
+
/**
|
|
3528
|
+
* Mounts drawer in a fixed mode. Defaults to `true`.
|
|
3529
|
+
*/
|
|
3530
|
+
fixed?: boolean;
|
|
3531
|
+
}
|
|
3532
|
+
|
|
3533
|
+
declare const SearchResultsBarPhrase: React$1.FC<Props$2>;
|
|
3534
|
+
interface Props$2 {
|
|
3535
|
+
/**
|
|
3536
|
+
* Sets the placeholder.
|
|
3537
|
+
*/
|
|
3538
|
+
placeholder: string;
|
|
3539
|
+
/**
|
|
3540
|
+
* Sets the search phrase.
|
|
3541
|
+
*/
|
|
3542
|
+
searchPhrase: string;
|
|
3543
|
+
/**
|
|
3544
|
+
* Sets the search results total count.
|
|
3545
|
+
*/
|
|
3546
|
+
count: number;
|
|
3547
|
+
}
|
|
3548
|
+
|
|
3549
|
+
declare const SearchResultsBarFilters: React$1.FC<Props$1>;
|
|
3550
|
+
interface Props$1 {
|
|
3551
|
+
/**
|
|
3552
|
+
* Sets component's children.
|
|
3553
|
+
*/
|
|
3554
|
+
children: React$1.ReactNode;
|
|
3555
|
+
}
|
|
3556
|
+
|
|
3557
|
+
declare const SearchResultsBar: React$1.FC<Props>;
|
|
3558
|
+
interface Props {
|
|
3559
|
+
/**
|
|
3560
|
+
* Sets component's children.
|
|
3561
|
+
*/
|
|
3562
|
+
children: React$1.ReactNode;
|
|
2620
3563
|
}
|
|
2621
3564
|
|
|
2622
|
-
export { Bottombar, Button, CircularLoader, CopyButton, CopyableInput, Dialog, DialogActions, DialogColumn, DialogFooter, DialogHeader, DialogRow, DialogSection, Dimensions, DocIcon, DocIconName, DragHandler, DraggableOptions, EmptyView, FileInputButton, Fixed, Form, FormFeedback, FormGroup, FormInputLabel, Gallery, GalleryFigure, GalleryItem, Icon, IconColor, IconName, IconRenderProp, IconRenderer, IconSize, Input, Props$
|
|
3565
|
+
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$1z as InputProps, List, ListDndChildProps, ListDndItem, ListDndItemHookProps, ListDndMoveItem, ListDndOnDragEnd, ListDndSetDraggable, ListDndSetDraggablePartial, ListItem, LoadingButton, Menu, MenuItem, MenuSection, MenuSubSection, MouseEventButton, Navbar, NavbarButton, NavbarCreditLink, NavbarItem, NavbarItemFixed, Notification, NotificationDetails, Notifications, OnScrollHandler, 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, TooltipIcon, Topbar, TopbarAction, UIContext, UIProvider, Props$R as UIProviderProps, View, ViewContent, ViewContentBar, ViewContentWrapper, ViewDialog, Props$S as ViewDialogProps, ViewFooter, ViewHeader, ViewSideContent, ViewWrapper, XYCoord, 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 };
|