@ultraviolet/ui 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (115) hide show
  1. package/LICENSE +189 -0
  2. package/README.md +64 -0
  3. package/dist/index.d.ts +2427 -0
  4. package/dist/react-datepicker/dist/react-datepicker.min.css.js +3 -0
  5. package/dist/react-toastify/dist/ReactToastify.min.css.js +3 -0
  6. package/dist/src/components/ActionBar/index.js +55 -0
  7. package/dist/src/components/Alert/index.js +144 -0
  8. package/dist/src/components/Avatar/index.js +90 -0
  9. package/dist/src/components/Badge/index.js +143 -0
  10. package/dist/src/components/Banner/index.js +117 -0
  11. package/dist/src/components/BarChart/Tooltip.js +63 -0
  12. package/dist/src/components/BarChart/index.js +94 -0
  13. package/dist/src/components/BarStack/index.js +223 -0
  14. package/dist/src/components/Breadcrumbs/index.js +89 -0
  15. package/dist/src/components/Bullet/index.js +137 -0
  16. package/dist/src/components/Button/index.js +303 -0
  17. package/dist/src/components/Card/index.js +81 -0
  18. package/dist/src/components/Carousel/index.js +162 -0
  19. package/dist/src/components/Checkbox/index.js +338 -0
  20. package/dist/src/components/CopyButton/index.js +92 -0
  21. package/dist/src/components/DateInput/index.js +250 -0
  22. package/dist/src/components/EmptyState/index.js +124 -0
  23. package/dist/src/components/Expandable/index.js +84 -0
  24. package/dist/src/components/Icon/index.js +350 -0
  25. package/dist/src/components/LineChart/CustomLegend.js +147 -0
  26. package/dist/src/components/LineChart/Tooltip.js +58 -0
  27. package/dist/src/components/LineChart/helpers.js +75 -0
  28. package/dist/src/components/LineChart/index.js +139 -0
  29. package/dist/src/components/Link/index.js +159 -0
  30. package/dist/src/components/List/Body.js +22 -0
  31. package/dist/src/components/List/Cell.js +38 -0
  32. package/dist/src/components/List/HeaderCell.js +118 -0
  33. package/dist/src/components/List/HeaderRow.js +47 -0
  34. package/dist/src/components/List/ListContext.js +120 -0
  35. package/dist/src/components/List/Row.js +211 -0
  36. package/dist/src/components/List/SelectBar.js +52 -0
  37. package/dist/src/components/List/SkeletonRows.js +54 -0
  38. package/dist/src/components/List/constants.js +3 -0
  39. package/dist/src/components/List/index.js +77 -0
  40. package/dist/src/components/Loader/index.js +87 -0
  41. package/dist/src/components/Menu/Item.js +122 -0
  42. package/dist/src/components/Menu/index.js +143 -0
  43. package/dist/src/components/Modal/index.js +279 -0
  44. package/dist/src/components/Notice/index.js +33 -0
  45. package/dist/src/components/NumberInput/helpers.js +6 -0
  46. package/dist/src/components/NumberInput/index.js +366 -0
  47. package/dist/src/components/Pagination/getPageNumbers.js +32 -0
  48. package/dist/src/components/Pagination/index.js +118 -0
  49. package/dist/src/components/PasswordCheck/index.js +42 -0
  50. package/dist/src/components/PasswordStrengthMeter/index.js +116 -0
  51. package/dist/src/components/PieChart/Legends.js +183 -0
  52. package/dist/src/components/PieChart/Tooltip.js +64 -0
  53. package/dist/src/components/PieChart/index.js +133 -0
  54. package/dist/src/components/PieChart/patterns.js +9 -0
  55. package/dist/src/components/Popover/index.js +131 -0
  56. package/dist/src/components/ProgressBar/index.js +72 -0
  57. package/dist/src/components/Radio/index.js +231 -0
  58. package/dist/src/components/Row/index.js +43 -0
  59. package/dist/src/components/SelectInput/index.js +662 -0
  60. package/dist/src/components/SelectableCard/index.js +154 -0
  61. package/dist/src/components/Separator/index.js +91 -0
  62. package/dist/src/components/Skeleton/Block.js +53 -0
  63. package/dist/src/components/Skeleton/Blocks.js +52 -0
  64. package/dist/src/components/Skeleton/BoxWithIcon.js +47 -0
  65. package/dist/src/components/Skeleton/Donut.js +58 -0
  66. package/dist/src/components/Skeleton/IconSkeleton.js +37 -0
  67. package/dist/src/components/Skeleton/Line.js +19 -0
  68. package/dist/src/components/Skeleton/List.js +60 -0
  69. package/dist/src/components/Skeleton/Slider.js +57 -0
  70. package/dist/src/components/Skeleton/index.js +85 -0
  71. package/dist/src/components/Snippet/index.js +250 -0
  72. package/dist/src/components/Stack/index.js +24 -0
  73. package/dist/src/components/Status/index.js +101 -0
  74. package/dist/src/components/StepList/index.js +81 -0
  75. package/dist/src/components/Stepper/index.js +217 -0
  76. package/dist/src/components/SwitchButton/FocusOverlay.js +47 -0
  77. package/dist/src/components/SwitchButton/index.js +131 -0
  78. package/dist/src/components/Table/Body.js +12 -0
  79. package/dist/src/components/Table/Cell.js +27 -0
  80. package/dist/src/components/Table/Header.js +21 -0
  81. package/dist/src/components/Table/HeaderCell.js +119 -0
  82. package/dist/src/components/Table/HeaderRow.js +35 -0
  83. package/dist/src/components/Table/Row.js +70 -0
  84. package/dist/src/components/Table/SelectBar.js +52 -0
  85. package/dist/src/components/Table/SkeletonRows.js +52 -0
  86. package/dist/src/components/Table/TableContext.js +91 -0
  87. package/dist/src/components/Table/index.js +84 -0
  88. package/dist/src/components/Tabs/Tab.js +165 -0
  89. package/dist/src/components/Tabs/TabMenu.js +46 -0
  90. package/dist/src/components/Tabs/TabMenuItem.js +40 -0
  91. package/dist/src/components/Tabs/TabsContext.js +6 -0
  92. package/dist/src/components/Tabs/index.js +117 -0
  93. package/dist/src/components/Tag/index.js +177 -0
  94. package/dist/src/components/TagInput/index.js +277 -0
  95. package/dist/src/components/TagList/index.js +110 -0
  96. package/dist/src/components/Text/index.js +106 -0
  97. package/dist/src/components/TextInput/index.js +529 -0
  98. package/dist/src/components/TimeInput/index.js +38 -0
  99. package/dist/src/components/Toaster/index.js +116 -0
  100. package/dist/src/components/Toggle/index.js +192 -0
  101. package/dist/src/components/Tooltip/helpers.js +131 -0
  102. package/dist/src/components/Tooltip/index.js +275 -0
  103. package/dist/src/components/VerificationCode/index.js +203 -0
  104. package/dist/src/helpers/isJSON.js +11 -0
  105. package/dist/src/helpers/legend.js +13 -0
  106. package/dist/src/helpers/recursivelyGetChildrenString.js +12 -0
  107. package/dist/src/index.js +63 -0
  108. package/dist/src/theme/index.js +25 -0
  109. package/dist/src/utils/animations.js +250 -0
  110. package/dist/src/utils/capitalize.js +4 -0
  111. package/dist/src/utils/ids.js +12 -0
  112. package/dist/src/utils/normalize.js +36 -0
  113. package/dist/src/utils/responsive/Breakpoint.js +12 -0
  114. package/dist/src/utils/responsive/utilities.js +12 -0
  115. package/package.json +70 -0
@@ -0,0 +1,2427 @@
1
+ import * as react from 'react';
2
+ import { ReactNode, SVGProps, ComponentProps, ButtonHTMLAttributes, AriaRole, MouseEventHandler, JSX, MouseEvent, InputHTMLAttributes, HTMLAttributeAnchorTarget, AnchorHTMLAttributes, ReactElement, Ref, ForwardRefExoticComponent, ForwardedRef, ChangeEventHandler, FocusEventHandler, CSSProperties, HTMLAttributes, ElementType, KeyboardEventHandler, TextareaHTMLAttributes, RefObject } from 'react';
3
+ import * as _emotion_react_types_jsx_namespace from '@emotion/react/types/jsx-namespace';
4
+ import * as _emotion_styled from '@emotion/styled';
5
+ import * as _emotion_react from '@emotion/react';
6
+ import { Theme, CSSObject, css } from '@emotion/react';
7
+ import { consoleLightTheme } from '@ultraviolet/themes';
8
+ export { consoleDarkTheme as darkTheme, consoleLightTheme as theme } from '@ultraviolet/themes';
9
+ import { BarDatum, BarTooltipProps, BarSvgProps, ResponsiveBar } from '@nivo/bar';
10
+ import { Box, ValueFormat, DatumValue } from '@nivo/core';
11
+ import { ReactDatePickerProps } from 'react-datepicker';
12
+ import { Serie, LineSvgProps } from '@nivo/line';
13
+ import { ScaleSpec } from '@nivo/scales';
14
+ import { PopoverStateReturn } from 'reakit/Popover';
15
+ import { DialogProps, DialogStateReturn } from 'reakit/Dialog';
16
+ import Select, { OptionProps, Props, CommonProps as CommonProps$1, GroupBase } from 'react-select';
17
+ import { ToastOptions } from 'react-toastify';
18
+
19
+ type ActionBarProps = {
20
+ children: ReactNode;
21
+ /**
22
+ * The position of the bar (start at 0)
23
+ */
24
+ rank?: number;
25
+ role?: string;
26
+ 'aria-modal'?: 'true' | 'false';
27
+ className?: string;
28
+ 'data-testid'?: string;
29
+ };
30
+ declare const ActionBar: ({ children, role, rank, "aria-modal": ariaModal, className, "data-testid": dataTestId, }: ActionBarProps) => react.ReactPortal;
31
+
32
+ type ScreenSize = keyof typeof consoleLightTheme.screens;
33
+ type SCWUITheme = typeof consoleLightTheme;
34
+ declare const typography: {
35
+ body: {
36
+ fontFamily: string;
37
+ fontSize: string;
38
+ fontWeight: string;
39
+ letterSpacing: string;
40
+ lineHeight: string;
41
+ paragraphSpacing: string;
42
+ textCase: string;
43
+ textDecoration: string;
44
+ weight: string;
45
+ };
46
+ bodySmall: {
47
+ fontFamily: string;
48
+ fontSize: string;
49
+ fontWeight: string;
50
+ letterSpacing: string;
51
+ lineHeight: string;
52
+ paragraphSpacing: string;
53
+ textCase: string;
54
+ textDecoration: string;
55
+ weight: string;
56
+ };
57
+ bodySmallStrong: {
58
+ fontFamily: string;
59
+ fontSize: string;
60
+ fontWeight: string;
61
+ letterSpacing: string;
62
+ lineHeight: string;
63
+ paragraphSpacing: string;
64
+ textCase: string;
65
+ textDecoration: string;
66
+ weight: string;
67
+ };
68
+ bodySmallStronger: {
69
+ fontFamily: string;
70
+ fontSize: string;
71
+ fontWeight: string;
72
+ letterSpacing: string;
73
+ lineHeight: string;
74
+ paragraphSpacing: string;
75
+ textCase: string;
76
+ textDecoration: string;
77
+ weight: string;
78
+ };
79
+ bodyStrong: {
80
+ fontFamily: string;
81
+ fontSize: string;
82
+ fontWeight: string;
83
+ letterSpacing: string;
84
+ lineHeight: string;
85
+ paragraphSpacing: string;
86
+ textCase: string;
87
+ textDecoration: string;
88
+ weight: string;
89
+ };
90
+ bodyStronger: {
91
+ fontFamily: string;
92
+ fontSize: string;
93
+ fontWeight: string;
94
+ letterSpacing: string;
95
+ lineHeight: string;
96
+ paragraphSpacing: string;
97
+ textCase: string;
98
+ textDecoration: string;
99
+ weight: string;
100
+ };
101
+ caption: {
102
+ fontFamily: string;
103
+ fontSize: string;
104
+ fontWeight: string;
105
+ letterSpacing: string;
106
+ lineHeight: string;
107
+ paragraphSpacing: string;
108
+ textCase: string;
109
+ textDecoration: string;
110
+ weight: string;
111
+ };
112
+ captionSmall: {
113
+ fontFamily: string;
114
+ fontSize: string;
115
+ fontWeight: string;
116
+ letterSpacing: string;
117
+ lineHeight: string;
118
+ paragraphSpacing: string;
119
+ textCase: string;
120
+ textDecoration: string;
121
+ weight: string;
122
+ };
123
+ code: {
124
+ fontFamily: string;
125
+ fontSize: string;
126
+ fontWeight: string;
127
+ letterSpacing: string;
128
+ lineHeight: string;
129
+ paragraphSpacing: string;
130
+ textCase: string;
131
+ textDecoration: string;
132
+ weight: string;
133
+ };
134
+ heading: {
135
+ fontFamily: string;
136
+ fontSize: string;
137
+ fontWeight: string;
138
+ letterSpacing: string;
139
+ lineHeight: string;
140
+ paragraphSpacing: string;
141
+ textCase: string;
142
+ textDecoration: string;
143
+ weight: string;
144
+ };
145
+ headingLarge: {
146
+ fontFamily: string;
147
+ fontSize: string;
148
+ fontWeight: string;
149
+ letterSpacing: string;
150
+ lineHeight: string;
151
+ paragraphSpacing: string;
152
+ textCase: string;
153
+ textDecoration: string;
154
+ weight: string;
155
+ };
156
+ headingSmall: {
157
+ fontFamily: string;
158
+ fontSize: string;
159
+ fontWeight: string;
160
+ letterSpacing: string;
161
+ lineHeight: string;
162
+ paragraphSpacing: string;
163
+ textCase: string;
164
+ textDecoration: string;
165
+ weight: string;
166
+ };
167
+ };
168
+ type RecursivePartial<T> = {
169
+ [P in keyof T]?: RecursivePartial<T[P]>;
170
+ };
171
+ /**
172
+ * Will extend theme with new theme properties
173
+ * @param {SCWUITheme} baseTheme the theme you want to extend from, by default it is set to light theme
174
+ * @param {RecursivePartial<SCWUITheme>} extendedTheme the properties of a new theme you want to apply from baseTheme
175
+ */
176
+ declare const extendTheme: (extendedTheme: RecursivePartial<SCWUITheme>) => {
177
+ colors: {
178
+ danger: {
179
+ background: string;
180
+ backgroundDisabled: string;
181
+ backgroundHover: string;
182
+ backgroundStrong: string;
183
+ backgroundStrongDisabled: string;
184
+ backgroundStrongHover: string;
185
+ backgroundWeak: string;
186
+ backgroundWeakDisabled: string;
187
+ backgroundWeakHover: string;
188
+ border: string;
189
+ borderDisabled: string;
190
+ borderHover: string;
191
+ borderStrong: string;
192
+ borderStrongDisabled: string;
193
+ borderStrongHover: string;
194
+ borderWeak: string;
195
+ borderWeakDisabled: string;
196
+ borderWeakHover: string;
197
+ icon: string;
198
+ iconDisabled: string;
199
+ iconHover: string;
200
+ iconStrong: string;
201
+ iconStrongDisabled: string;
202
+ iconStrongHover: string;
203
+ iconWeak: string;
204
+ iconWeakDisabled: string;
205
+ iconWeakHover: string;
206
+ text: string;
207
+ textDisabled: string;
208
+ textHover: string;
209
+ textStrong: string;
210
+ textStrongDisabled: string;
211
+ textStrongHover: string;
212
+ textWeak: string;
213
+ textWeakDisabled: string;
214
+ textWeakHover: string;
215
+ };
216
+ info: {
217
+ background: string;
218
+ backgroundDisabled: string;
219
+ backgroundHover: string;
220
+ backgroundStrong: string;
221
+ backgroundStrongDisabled: string;
222
+ backgroundStrongHover: string;
223
+ backgroundWeak: string;
224
+ backgroundWeakDisabled: string;
225
+ backgroundWeakHover: string;
226
+ border: string;
227
+ borderDisabled: string;
228
+ borderHover: string;
229
+ borderStrong: string;
230
+ borderStrongDisabled: string;
231
+ borderStrongHover: string;
232
+ borderWeak: string;
233
+ borderWeakDisabled: string;
234
+ borderWeakHover: string;
235
+ icon: string;
236
+ iconDisabled: string;
237
+ iconHover: string;
238
+ iconStrong: string;
239
+ iconStrongDisabled: string;
240
+ iconStrongHover: string;
241
+ iconWeak: string;
242
+ iconWeakDisabled: string;
243
+ iconWeakHover: string;
244
+ text: string;
245
+ textDisabled: string;
246
+ textHover: string;
247
+ textStrong: string;
248
+ textStrongDisabled: string;
249
+ textStrongHover: string;
250
+ textWeak: string;
251
+ textWeakDisabled: string;
252
+ textWeakHover: string;
253
+ };
254
+ neutral: {
255
+ background: string;
256
+ backgroundDisabled: string;
257
+ backgroundHover: string;
258
+ backgroundStrong: string;
259
+ backgroundStrongDisabled: string;
260
+ backgroundStrongHover: string;
261
+ backgroundStronger: string;
262
+ backgroundStrongerDisabled: string;
263
+ backgroundWeak: string;
264
+ backgroundWeakDisabled: string;
265
+ backgroundWeakElevated: string;
266
+ backgroundWeakHover: string;
267
+ border: string;
268
+ borderDisabled: string;
269
+ borderHover: string;
270
+ borderStrong: string;
271
+ borderStrongDisabled: string;
272
+ borderStrongHover: string;
273
+ borderStronger: string;
274
+ borderStrongerDisabled: string;
275
+ borderWeak: string;
276
+ borderWeakDisabled: string;
277
+ borderWeakHover: string;
278
+ icon: string;
279
+ iconDisabled: string;
280
+ iconHover: string;
281
+ iconStrong: string;
282
+ iconStrongDisabled: string;
283
+ iconStrongHover: string;
284
+ iconStronger: string;
285
+ iconStrongerDisabled: string;
286
+ iconWeak: string;
287
+ iconWeakDisabled: string;
288
+ iconWeakHover: string;
289
+ text: string;
290
+ textDisabled: string;
291
+ textHover: string;
292
+ textStrong: string;
293
+ textStrongDisabled: string;
294
+ textStrongHover: string;
295
+ textStronger: string;
296
+ textStrongerDisabled: string;
297
+ textWeak: string;
298
+ textWeakDisabled: string;
299
+ textWeakHover: string;
300
+ };
301
+ other: {
302
+ data: {
303
+ charts: {
304
+ danger: string;
305
+ data1: string;
306
+ data10: string;
307
+ data11: string;
308
+ data12: string;
309
+ data13: string;
310
+ data14: string;
311
+ data2: string;
312
+ data3: string;
313
+ data4: string;
314
+ data5: string;
315
+ data6: string;
316
+ data7: string;
317
+ data8: string;
318
+ data9: string;
319
+ success: string;
320
+ };
321
+ };
322
+ gradients: {
323
+ background: {
324
+ aqua: string;
325
+ blue: string;
326
+ fuschia: string;
327
+ green: string;
328
+ orange: string;
329
+ pink: string;
330
+ primary: string;
331
+ purple: string;
332
+ };
333
+ };
334
+ icon: {
335
+ category: {
336
+ primary: {
337
+ fill: string;
338
+ fillStrong: string;
339
+ };
340
+ };
341
+ product: {
342
+ danger: {
343
+ fill: string;
344
+ fillDisabled: string;
345
+ fillStrong: string;
346
+ fillStrongDisabled: string;
347
+ fillWeak: string;
348
+ fillWeakDisabled: string;
349
+ };
350
+ primary: {
351
+ fill: string;
352
+ fillDisabled: string;
353
+ fillStrong: string;
354
+ fillStrongDisabled: string;
355
+ fillWeak: string;
356
+ fillWeakDisabled: string;
357
+ };
358
+ warning: {
359
+ fill: string;
360
+ fillDisabled: string;
361
+ fillStrong: string;
362
+ fillStrongDisabled: string;
363
+ fillWeak: string;
364
+ fillWeakDisabled: string;
365
+ };
366
+ };
367
+ };
368
+ };
369
+ overlay: string;
370
+ primary: {
371
+ background: string;
372
+ backgroundDisabled: string;
373
+ backgroundHover: string;
374
+ backgroundStrong: string;
375
+ backgroundStrongDisabled: string;
376
+ backgroundStrongHover: string;
377
+ backgroundWeak: string;
378
+ backgroundWeakDisabled: string;
379
+ backgroundWeakHover: string;
380
+ border: string;
381
+ borderDisabled: string;
382
+ borderHover: string;
383
+ borderStrong: string;
384
+ borderStrongDisabled: string;
385
+ borderStrongHover: string;
386
+ borderWeak: string;
387
+ borderWeakDisabled: string;
388
+ borderWeakHover: string;
389
+ icon: string;
390
+ iconDisabled: string;
391
+ iconHover: string;
392
+ iconStrong: string;
393
+ iconStrongDisabled: string;
394
+ iconStrongHover: string;
395
+ iconWeak: string;
396
+ iconWeakDisabled: string;
397
+ iconWeakHover: string;
398
+ text: string;
399
+ textDisabled: string;
400
+ textHover: string;
401
+ textStrong: string;
402
+ textStrongDisabled: string;
403
+ textStrongHover: string;
404
+ textWeak: string;
405
+ textWeakDisabled: string;
406
+ textWeakHover: string;
407
+ };
408
+ secondary: {
409
+ backgroundStrong: string;
410
+ };
411
+ success: {
412
+ background: string;
413
+ backgroundDisabled: string;
414
+ backgroundHover: string;
415
+ backgroundStrong: string;
416
+ backgroundStrongDisabled: string;
417
+ backgroundStrongHover: string;
418
+ backgroundWeak: string;
419
+ backgroundWeakDisabled: string;
420
+ backgroundWeakHover: string;
421
+ border: string;
422
+ borderDisabled: string;
423
+ borderHover: string;
424
+ borderStrong: string;
425
+ borderStrongDisabled: string;
426
+ borderStrongHover: string;
427
+ borderWeak: string;
428
+ borderWeakDisabled: string;
429
+ borderWeakHover: string;
430
+ icon: string;
431
+ iconDisabled: string;
432
+ iconHover: string;
433
+ iconStrong: string;
434
+ iconStrongDisabled: string;
435
+ iconStrongHover: string;
436
+ iconWeak: string;
437
+ iconWeakDisabled: string;
438
+ iconWeakHover: string;
439
+ text: string;
440
+ textDisabled: string;
441
+ textHover: string;
442
+ textStrong: string;
443
+ textStrongDisabled: string;
444
+ textStrongHover: string;
445
+ textWeak: string;
446
+ textWeakDisabled: string;
447
+ textWeakHover: string;
448
+ };
449
+ warning: {
450
+ background: string;
451
+ backgroundDisabled: string;
452
+ backgroundHover: string;
453
+ backgroundStrong: string;
454
+ backgroundStrongDisabled: string;
455
+ backgroundStrongHover: string;
456
+ backgroundWeak: string;
457
+ backgroundWeakDisabled: string;
458
+ backgroundWeakHover: string;
459
+ border: string;
460
+ borderDisabled: string;
461
+ borderHover: string;
462
+ borderStrong: string;
463
+ borderStrongDisabled: string;
464
+ borderStrongHover: string;
465
+ borderWeak: string;
466
+ borderWeakDisabled: string;
467
+ borderWeakHover: string;
468
+ icon: string;
469
+ iconDisabled: string;
470
+ iconHover: string;
471
+ iconStrong: string;
472
+ iconStrongDisabled: string;
473
+ iconStrongHover: string;
474
+ iconWeak: string;
475
+ iconWeakDisabled: string;
476
+ iconWeakHover: string;
477
+ text: string;
478
+ textDisabled: string;
479
+ textHover: string;
480
+ textStrong: string;
481
+ textStrongDisabled: string;
482
+ textStrongHover: string;
483
+ textWeak: string;
484
+ textWeakDisabled: string;
485
+ textWeakHover: string;
486
+ };
487
+ };
488
+ radii: {
489
+ circle: string;
490
+ default: string;
491
+ large: string;
492
+ none: string;
493
+ small: string;
494
+ xlarge: string;
495
+ };
496
+ shadows: {
497
+ bulk: string;
498
+ defaultShadow: string;
499
+ drawer: string;
500
+ dropdown: string;
501
+ focusDanger: string;
502
+ focusInfo: string;
503
+ focusNeutral: string;
504
+ focusPrimary: string;
505
+ focusSuccess: string;
506
+ focusWarning: string;
507
+ hoverDanger: string;
508
+ hoverPrimary: string;
509
+ hoverWarning: string;
510
+ menu: string;
511
+ modal: string;
512
+ popover: string;
513
+ tooltip: string;
514
+ };
515
+ space: {
516
+ '0': string;
517
+ '0.25': string;
518
+ '0.5': string;
519
+ '1': string;
520
+ '1.5': string;
521
+ '10': string;
522
+ '2': string;
523
+ '3': string;
524
+ '4': string;
525
+ '5': string;
526
+ '6': string;
527
+ '7': string;
528
+ '8': string;
529
+ '9': string;
530
+ };
531
+ theme: string;
532
+ typography: {
533
+ body: {
534
+ fontFamily: string;
535
+ fontSize: string;
536
+ fontWeight: string;
537
+ letterSpacing: string;
538
+ lineHeight: string;
539
+ paragraphSpacing: string;
540
+ textCase: string;
541
+ textDecoration: string;
542
+ weight: string;
543
+ };
544
+ bodySmall: {
545
+ fontFamily: string;
546
+ fontSize: string;
547
+ fontWeight: string;
548
+ letterSpacing: string;
549
+ lineHeight: string;
550
+ paragraphSpacing: string;
551
+ textCase: string;
552
+ textDecoration: string;
553
+ weight: string;
554
+ };
555
+ bodySmallStrong: {
556
+ fontFamily: string;
557
+ fontSize: string;
558
+ fontWeight: string;
559
+ letterSpacing: string;
560
+ lineHeight: string;
561
+ paragraphSpacing: string;
562
+ textCase: string;
563
+ textDecoration: string;
564
+ weight: string;
565
+ };
566
+ bodySmallStronger: {
567
+ fontFamily: string;
568
+ fontSize: string;
569
+ fontWeight: string;
570
+ letterSpacing: string;
571
+ lineHeight: string;
572
+ paragraphSpacing: string;
573
+ textCase: string;
574
+ textDecoration: string;
575
+ weight: string;
576
+ };
577
+ bodyStrong: {
578
+ fontFamily: string;
579
+ fontSize: string;
580
+ fontWeight: string;
581
+ letterSpacing: string;
582
+ lineHeight: string;
583
+ paragraphSpacing: string;
584
+ textCase: string;
585
+ textDecoration: string;
586
+ weight: string;
587
+ };
588
+ bodyStronger: {
589
+ fontFamily: string;
590
+ fontSize: string;
591
+ fontWeight: string;
592
+ letterSpacing: string;
593
+ lineHeight: string;
594
+ paragraphSpacing: string;
595
+ textCase: string;
596
+ textDecoration: string;
597
+ weight: string;
598
+ };
599
+ caption: {
600
+ fontFamily: string;
601
+ fontSize: string;
602
+ fontWeight: string;
603
+ letterSpacing: string;
604
+ lineHeight: string;
605
+ paragraphSpacing: string;
606
+ textCase: string;
607
+ textDecoration: string;
608
+ weight: string;
609
+ };
610
+ captionSmall: {
611
+ fontFamily: string;
612
+ fontSize: string;
613
+ fontWeight: string;
614
+ letterSpacing: string;
615
+ lineHeight: string;
616
+ paragraphSpacing: string;
617
+ textCase: string;
618
+ textDecoration: string;
619
+ weight: string;
620
+ };
621
+ code: {
622
+ fontFamily: string;
623
+ fontSize: string;
624
+ fontWeight: string;
625
+ letterSpacing: string;
626
+ lineHeight: string;
627
+ paragraphSpacing: string;
628
+ textCase: string;
629
+ textDecoration: string;
630
+ weight: string;
631
+ };
632
+ heading: {
633
+ fontFamily: string;
634
+ fontSize: string;
635
+ fontWeight: string;
636
+ letterSpacing: string;
637
+ lineHeight: string;
638
+ paragraphSpacing: string;
639
+ textCase: string;
640
+ textDecoration: string;
641
+ weight: string;
642
+ };
643
+ headingLarge: {
644
+ fontFamily: string;
645
+ fontSize: string;
646
+ fontWeight: string;
647
+ letterSpacing: string;
648
+ lineHeight: string;
649
+ paragraphSpacing: string;
650
+ textCase: string;
651
+ textDecoration: string;
652
+ weight: string;
653
+ };
654
+ headingSmall: {
655
+ fontFamily: string;
656
+ fontSize: string;
657
+ fontWeight: string;
658
+ letterSpacing: string;
659
+ lineHeight: string;
660
+ paragraphSpacing: string;
661
+ textCase: string;
662
+ textDecoration: string;
663
+ weight: string;
664
+ };
665
+ };
666
+ screens: {
667
+ xsmall: number;
668
+ small: number;
669
+ medium: number;
670
+ large: number;
671
+ xlarge: number;
672
+ };
673
+ };
674
+ type Color = Extract<keyof typeof consoleLightTheme.colors, 'primary' | 'neutral' | 'success' | 'danger' | 'warning' | 'info'>;
675
+ declare const SENTIMENTS: readonly ["primary", "neutral", "success", "danger", "warning", "info"];
676
+
677
+ declare const ICONS: {
678
+ readonly alert: () => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
679
+ readonly anchor: () => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
680
+ readonly 'arrow-down': () => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
681
+ readonly 'arrow-left': () => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
682
+ readonly 'arrow-left-double': () => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
683
+ readonly 'arrow-right': () => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
684
+ readonly 'arrow-right-bottom': () => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
685
+ readonly 'arrow-right-double': () => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
686
+ readonly 'arrow-up': () => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
687
+ readonly asterisk: () => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
688
+ readonly 'auto-fix': () => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
689
+ readonly bullhorn: () => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
690
+ readonly burger: () => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
691
+ readonly 'book-open-outline': () => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
692
+ readonly calculator: () => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
693
+ readonly 'calendar-range': () => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
694
+ readonly cancel: () => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
695
+ readonly id: () => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
696
+ readonly check: () => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
697
+ readonly 'checkbox-circle-outline': () => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
698
+ readonly 'clock-outline': () => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
699
+ readonly close: () => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
700
+ readonly 'close-circle-outline': () => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
701
+ readonly 'copy-content': () => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
702
+ readonly credentials: () => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
703
+ readonly 'credit-card': () => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
704
+ readonly delete: () => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
705
+ readonly detach: () => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
706
+ readonly doc: () => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
707
+ readonly 'dots-horizontal': () => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
708
+ readonly 'dots-vertical': () => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
709
+ readonly download: () => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
710
+ readonly 'drag-variant': () => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
711
+ readonly 'drag-vertical': () => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
712
+ readonly east: () => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
713
+ readonly 'email-outline': () => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
714
+ readonly expand: () => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
715
+ readonly eye: () => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
716
+ readonly 'eye-off': () => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
717
+ readonly filter: () => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
718
+ readonly github: () => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
719
+ readonly 'help-circle-outline': () => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
720
+ readonly 'information-outline': () => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
721
+ readonly lock: () => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
722
+ readonly logout: () => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
723
+ readonly members: () => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
724
+ readonly minus: () => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
725
+ readonly moon: () => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
726
+ readonly 'open-in-new': () => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
727
+ readonly organization: () => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
728
+ readonly pencil: () => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
729
+ readonly 'play-circle-outline': () => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
730
+ readonly plus: () => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
731
+ readonly privacy: () => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
732
+ readonly profile: () => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
733
+ readonly 'progress-check': () => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
734
+ readonly 'ray-end-arrow': () => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
735
+ readonly 'ray-start-arrow': () => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
736
+ readonly 'ray-start-end': () => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
737
+ readonly 'ray-top-arrow': () => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
738
+ readonly reboot: () => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
739
+ readonly restore: () => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
740
+ readonly revoke: () => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
741
+ readonly rocket: () => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
742
+ readonly search: () => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
743
+ readonly send: () => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
744
+ readonly settings: () => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
745
+ readonly sort: () => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
746
+ readonly sun: () => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
747
+ readonly support: () => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
748
+ readonly switch_orga: () => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
749
+ readonly unlock: () => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
750
+ readonly upload: () => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
751
+ readonly view: () => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
752
+ readonly 'weather-night': () => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
753
+ readonly attach: () => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
754
+ readonly phone: () => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
755
+ readonly earth: () => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
756
+ readonly 'email-remove-outline': () => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
757
+ };
758
+ type IconName = keyof typeof ICONS;
759
+ declare const Icon: react.ForwardRefExoticComponent<{
760
+ size?: string | number | undefined;
761
+ name?: "filter" | "view" | "sort" | "id" | "alert" | "search" | "anchor" | "arrow-down" | "arrow-left" | "arrow-left-double" | "arrow-right" | "arrow-right-bottom" | "arrow-right-double" | "arrow-up" | "asterisk" | "auto-fix" | "bullhorn" | "burger" | "book-open-outline" | "calculator" | "calendar-range" | "cancel" | "check" | "checkbox-circle-outline" | "clock-outline" | "close" | "close-circle-outline" | "copy-content" | "credentials" | "credit-card" | "delete" | "detach" | "doc" | "dots-horizontal" | "dots-vertical" | "download" | "drag-variant" | "drag-vertical" | "east" | "email-outline" | "expand" | "eye" | "eye-off" | "github" | "help-circle-outline" | "information-outline" | "lock" | "logout" | "members" | "minus" | "moon" | "open-in-new" | "organization" | "pencil" | "play-circle-outline" | "plus" | "privacy" | "profile" | "progress-check" | "ray-end-arrow" | "ray-start-arrow" | "ray-start-end" | "ray-top-arrow" | "reboot" | "restore" | "revoke" | "rocket" | "send" | "settings" | "sun" | "support" | "switch_orga" | "unlock" | "upload" | "weather-night" | "attach" | "phone" | "earth" | "email-remove-outline" | undefined;
762
+ prominence?: "default" | "strong" | "stronger" | "weak" | undefined;
763
+ color?: Color | undefined;
764
+ 'data-testid'?: string | undefined;
765
+ disabled?: boolean | undefined;
766
+ } & Pick<SVGProps<SVGSVGElement>, "cursor" | "stroke" | "strokeWidth" | "className"> & react.RefAttributes<SVGSVGElement>>;
767
+
768
+ type SENTIMENT = (typeof SENTIMENTS)[number];
769
+ declare const SIZE_HEIGHT: {
770
+ readonly large: 48;
771
+ readonly medium: 40;
772
+ readonly small: 32;
773
+ readonly xsmall: 24;
774
+ };
775
+ type ButtonSize = keyof typeof SIZE_HEIGHT;
776
+ declare const VARIANTS_COMPONENTS: {
777
+ filled: {
778
+ button: _emotion_styled.StyledComponent<{
779
+ theme?: Theme | undefined;
780
+ as?: react.ElementType<any> | undefined;
781
+ } & Required<Pick<FinalProps, "size" | "disabled" | "sentiment" | "iconPosition" | "fullWidth">> & {
782
+ iconOnly: boolean;
783
+ }, react.DetailedHTMLProps<ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, {}>;
784
+ link: _emotion_styled.StyledComponent<{
785
+ theme?: Theme | undefined;
786
+ as?: react.ElementType<any> | undefined;
787
+ } & Required<Pick<FinalProps, "size" | "disabled" | "sentiment" | "iconPosition" | "fullWidth">> & {
788
+ iconOnly: boolean;
789
+ }, react.DetailedHTMLProps<react.AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, {}>;
790
+ };
791
+ outlined: {
792
+ button: _emotion_styled.StyledComponent<{
793
+ theme?: Theme | undefined;
794
+ as?: react.ElementType<any> | undefined;
795
+ } & Required<Pick<FinalProps, "size" | "disabled" | "sentiment" | "iconPosition" | "fullWidth">> & {
796
+ iconOnly: boolean;
797
+ }, react.DetailedHTMLProps<ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, {}>;
798
+ link: _emotion_styled.StyledComponent<{
799
+ theme?: Theme | undefined;
800
+ as?: react.ElementType<any> | undefined;
801
+ } & Required<Pick<FinalProps, "size" | "disabled" | "sentiment" | "iconPosition" | "fullWidth">> & {
802
+ iconOnly: boolean;
803
+ }, react.DetailedHTMLProps<react.AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, {}>;
804
+ };
805
+ ghost: {
806
+ button: _emotion_styled.StyledComponent<{
807
+ theme?: Theme | undefined;
808
+ as?: react.ElementType<any> | undefined;
809
+ } & Required<Pick<FinalProps, "size" | "disabled" | "sentiment" | "iconPosition" | "fullWidth">> & {
810
+ iconOnly: boolean;
811
+ }, react.DetailedHTMLProps<ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, {}>;
812
+ link: _emotion_styled.StyledComponent<{
813
+ theme?: Theme | undefined;
814
+ as?: react.ElementType<any> | undefined;
815
+ } & Required<Pick<FinalProps, "size" | "disabled" | "sentiment" | "iconPosition" | "fullWidth">> & {
816
+ iconOnly: boolean;
817
+ }, react.DetailedHTMLProps<react.AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, {}>;
818
+ };
819
+ };
820
+ type ButtonVariant = keyof typeof VARIANTS_COMPONENTS;
821
+ type CommonProps = {
822
+ type?: ButtonHTMLAttributes<HTMLButtonElement>['type'];
823
+ variant?: ButtonVariant;
824
+ role?: AriaRole;
825
+ size?: ButtonSize;
826
+ className?: string;
827
+ 'data-testid'?: string;
828
+ sentiment?: SENTIMENT;
829
+ disabled?: boolean;
830
+ iconPosition?: 'left' | 'right';
831
+ fullWidth?: boolean;
832
+ isLoading?: boolean;
833
+ 'aria-label'?: string;
834
+ 'aria-current'?: boolean;
835
+ onClick?: MouseEventHandler<HTMLElement>;
836
+ tooltip?: string;
837
+ };
838
+ type FinalProps = CommonProps & ({
839
+ children: ReactNode;
840
+ icon?: ComponentProps<typeof Icon>['name'];
841
+ name?: string;
842
+ href?: never;
843
+ target?: never;
844
+ download?: never;
845
+ } | {
846
+ children?: never;
847
+ icon: ComponentProps<typeof Icon>['name'];
848
+ name?: string;
849
+ href?: never;
850
+ target?: never;
851
+ download?: never;
852
+ } | {
853
+ children: ReactNode;
854
+ icon?: ComponentProps<typeof Icon>['name'];
855
+ name?: never;
856
+ href: string;
857
+ target?: string;
858
+ download?: string;
859
+ } | {
860
+ children?: never;
861
+ icon: ComponentProps<typeof Icon>['name'];
862
+ name?: never;
863
+ href: string;
864
+ target?: string;
865
+ download?: string;
866
+ });
867
+ declare const Button: react.ForwardRefExoticComponent<FinalProps & react.RefAttributes<Element>>;
868
+
869
+ declare const ALERT_SENTIMENTS: readonly ["danger", "info", "success", "warning"];
870
+ type AlertSentiment = (typeof ALERT_SENTIMENTS)[number];
871
+ type AlertProps = {
872
+ children: ReactNode;
873
+ /**
874
+ * Add a title at the top of your alert.
875
+ */
876
+ title?: string;
877
+ sentiment?: AlertSentiment;
878
+ buttonText?: ComponentProps<typeof Button>['children'];
879
+ onClickButton?: () => void;
880
+ onClose?: () => void;
881
+ closable?: boolean;
882
+ className?: string;
883
+ 'data-testid'?: string;
884
+ /**
885
+ * Disabled the alert button.
886
+ */
887
+ disabled?: boolean;
888
+ };
889
+ declare const Alert: ({ children, title, sentiment, buttonText, onClickButton, closable, onClose, className, disabled, "data-testid": dataTestId, }: AlertProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element | null;
890
+
891
+ type Without<T, U> = {
892
+ [P in Exclude<keyof T, keyof U>]?: never;
893
+ };
894
+ type SingleXOR<T, U> = T | U extends object ? (Without<T, U> & U) | (Without<U, T> & T) : T | U;
895
+ type XOR<T extends unknown[]> = T extends [infer Only] ? Only : T extends [infer A, infer B, ...infer Rest] ? XOR<[SingleXOR<A, B>, ...Rest]> : never;
896
+
897
+ type AvatarProps = {
898
+ /**
899
+ * Size of the component
900
+ */
901
+ size?: number;
902
+ /**
903
+ * Background color when `text` prop is specified
904
+ */
905
+ textBgColor?: string;
906
+ /**
907
+ * Text color when `text` prop is specified
908
+ */
909
+ textColor?: string;
910
+ /**
911
+ * Text size when `text` prop is specified or size of the lock when `lock` is true
912
+ */
913
+ textSize?: number;
914
+ /**
915
+ * Used only when `text` prop is specified
916
+ */
917
+ lock?: boolean;
918
+ className?: string;
919
+ 'data-testid'?: string;
920
+ } & XOR<[
921
+ {
922
+ /**
923
+ * **`image` or `text` property is required**
924
+ */
925
+ image: string;
926
+ },
927
+ {
928
+ /**
929
+ * **`image` or `text` property is required**
930
+ */
931
+ text: string;
932
+ }
933
+ ]>;
934
+ declare const Avatar: ({ image, size, text, textBgColor, textColor, textSize, lock, className, "data-testid": dataTestId, }: AvatarProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
935
+
936
+ declare const SIZES$1: {
937
+ large: number;
938
+ medium: number;
939
+ small: number;
940
+ };
941
+ declare const PROMINENCES$2: {
942
+ default: string;
943
+ strong: string;
944
+ };
945
+ type BadgeProps = {
946
+ sentiment?: Color;
947
+ size?: keyof typeof SIZES$1;
948
+ prominence?: keyof typeof PROMINENCES$2;
949
+ /**
950
+ * Defines icon to display on left side of badge. **Only available on medium and large sizes**.
951
+ */
952
+ icon?: IconName;
953
+ disabled?: boolean;
954
+ className?: string;
955
+ children: ReactNode;
956
+ 'data-testid'?: string;
957
+ };
958
+ declare const Badge: ({ sentiment, size, prominence, icon, disabled, className, children, "data-testid": dataTestId, }: BadgeProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
959
+
960
+ type BarChartToolTipProps = {
961
+ color: string;
962
+ indexValue: string;
963
+ formattedValue: string;
964
+ className?: string;
965
+ 'data-testid'?: string;
966
+ };
967
+ declare const BarChartToolTip: ({ formattedValue, indexValue, color, className, "data-testid": dataTestId, }: BarChartToolTipProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
968
+
969
+ type Formatter = ValueFormat<DatumValue>;
970
+ type TickSpec = NonNullable<ComponentProps<typeof ResponsiveBar>['axisBottom']>['tickValues'];
971
+ type BarChartProps = {
972
+ height?: string | number;
973
+ margin?: Box;
974
+ data?: BarDatum[];
975
+ axisFormatters?: Partial<Record<'bottom' | 'left' | 'right' | 'top', Formatter>>;
976
+ pointFormatters?: Partial<Record<'x' | 'y', Formatter>>;
977
+ tickValues?: Partial<Record<'bottom' | 'left' | 'right' | 'top', TickSpec>>;
978
+ keys?: string[];
979
+ className?: string;
980
+ tooltipFunction?: (props: BarTooltipProps<BarDatum>) => ComponentProps<typeof BarChartToolTip>;
981
+ chartProps?: Partial<BarSvgProps<BarDatum>>;
982
+ 'data-testid'?: string;
983
+ };
984
+ /**
985
+ * @experimental This component is experimental and may be subject to breaking changes in the future.
986
+ */
987
+ declare const BarChart: ({ height, margin, data, axisFormatters, tickValues, keys, tooltipFunction, chartProps, className, "data-testid": dataTestId, }: BarChartProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
988
+
989
+ type BarProps = {
990
+ /**
991
+ * Unique id of the bar
992
+ */
993
+ id: string;
994
+ /**
995
+ * The value of the bar
996
+ */
997
+ value: number;
998
+ /**
999
+ * Text to display inside the bar
1000
+ */
1001
+ text?: string;
1002
+ onClick?: MouseEventHandler<HTMLDivElement>;
1003
+ onDoubleClick?: MouseEventHandler<HTMLDivElement>;
1004
+ onMouseDown?: MouseEventHandler<HTMLDivElement>;
1005
+ onMouseUp?: MouseEventHandler<HTMLDivElement>;
1006
+ onMouseEnter?: MouseEventHandler<HTMLDivElement>;
1007
+ onMouseLeave?: MouseEventHandler<HTMLDivElement>;
1008
+ /**
1009
+ * A tooltip to display when hovering the bar
1010
+ */
1011
+ tooltip?: ReactNode;
1012
+ };
1013
+ type BarStackProps = {
1014
+ data: BarProps[];
1015
+ total?: number;
1016
+ className?: string;
1017
+ 'data-testid'?: string;
1018
+ };
1019
+ declare const BarStack: ({ data, total, className, "data-testid": dataTestId, }: BarStackProps) => JSX.Element;
1020
+
1021
+ type ItemProps$1 = {
1022
+ children: ReactNode;
1023
+ 'aria-current'?: boolean | 'false' | 'true' | 'page' | 'step' | 'location' | 'date' | 'time';
1024
+ /**
1025
+ * Make the component act a `Link` tag
1026
+ */
1027
+ to?: string;
1028
+ disabled?: boolean;
1029
+ /**
1030
+ * ID of the step, automatically injected by Breadcrumbs parent tag
1031
+ */
1032
+ step?: number;
1033
+ onClick?: (event: MouseEvent<HTMLLIElement>, step: number) => void;
1034
+ };
1035
+ declare const Item: ({ to, children, disabled, "aria-current": ariaCurrent, onClick, step, }: ItemProps$1) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
1036
+ type BreadcrumbsProps = {
1037
+ selected?: number;
1038
+ children: ReactNode;
1039
+ className?: string;
1040
+ 'data-testid'?: string;
1041
+ };
1042
+ type BreadcrumbsType = ((props: BreadcrumbsProps) => JSX.Element) & {
1043
+ Item: typeof Item;
1044
+ };
1045
+ declare const Breadcrumbs: BreadcrumbsType;
1046
+
1047
+ type Variant$1 = 'intro' | 'promotional';
1048
+ type BannerProps = {
1049
+ variant?: Variant$1;
1050
+ size?: 'small' | 'medium';
1051
+ title: string;
1052
+ children: ReactNode;
1053
+ direction?: 'row' | 'column';
1054
+ onClose?: () => void;
1055
+ buttonText?: string;
1056
+ onClickButton?: ComponentProps<typeof Button>['onClick'];
1057
+ linkText?: string;
1058
+ linkHref?: string;
1059
+ image?: ReactNode;
1060
+ className?: string;
1061
+ };
1062
+ declare const Banner: ({ variant, size, title, children, direction, onClose, buttonText, onClickButton, linkText, linkHref, image, className, }: BannerProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element | null;
1063
+
1064
+ declare const sentiments$1: {
1065
+ readonly danger: ({ theme }: {
1066
+ theme: Theme;
1067
+ }) => string;
1068
+ readonly neutral: ({ theme }: {
1069
+ theme: Theme;
1070
+ }) => string;
1071
+ readonly disabled: ({ theme }: {
1072
+ theme: Theme;
1073
+ }) => string;
1074
+ readonly info: ({ theme }: {
1075
+ theme: Theme;
1076
+ }) => string;
1077
+ readonly primary: ({ theme }: {
1078
+ theme: Theme;
1079
+ }) => string;
1080
+ readonly success: ({ theme }: {
1081
+ theme: Theme;
1082
+ }) => string;
1083
+ readonly warning: ({ theme }: {
1084
+ theme: Theme;
1085
+ }) => string;
1086
+ };
1087
+ type BulletSentiment = keyof typeof sentiments$1;
1088
+ declare const sizes: {
1089
+ readonly medium: "\n width: 32px;\n height: 32px;\n font-size: 16px;\n ";
1090
+ readonly small: "\n width: 24px;\n height: 24px;\n font-size: 14px;\n ";
1091
+ };
1092
+ type BulletSize = keyof typeof sizes;
1093
+ type ContentProps$1 = {
1094
+ icon: ComponentProps<typeof Icon>['name'];
1095
+ text?: never;
1096
+ } | {
1097
+ icon?: never;
1098
+ text: string;
1099
+ };
1100
+ type BulletProps = {
1101
+ className?: string;
1102
+ size?: BulletSize;
1103
+ tooltip?: string;
1104
+ tooltipBaseId?: string;
1105
+ sentiment?: BulletSentiment;
1106
+ 'data-testid'?: string;
1107
+ } & ContentProps$1;
1108
+ declare const Bullet: ({ className, sentiment, size, icon, text, tooltip, tooltipBaseId, "data-testid": dataTestId, }: BulletProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
1109
+
1110
+ type CheckboxProps = {
1111
+ error?: string | ReactNode;
1112
+ size?: number;
1113
+ progress?: boolean;
1114
+ disabled?: boolean;
1115
+ checked?: boolean | 'indeterminate';
1116
+ className?: string;
1117
+ ['data-visibility']?: string;
1118
+ required?: boolean;
1119
+ 'data-testid'?: string;
1120
+ } & Pick<InputHTMLAttributes<HTMLInputElement>, 'onFocus' | 'onBlur' | 'name' | 'value' | 'autoFocus' | 'id' | 'onChange'> & XOR<[
1121
+ {
1122
+ /**
1123
+ * **`children` or `aria-label` property is required**
1124
+ */
1125
+ 'aria-label': string;
1126
+ },
1127
+ {
1128
+ children: ReactNode;
1129
+ }
1130
+ ]>;
1131
+ declare const Checkbox: react.ForwardRefExoticComponent<CheckboxProps & react.RefAttributes<HTMLInputElement>>;
1132
+
1133
+ declare const SIZES: {
1134
+ readonly small: 32;
1135
+ readonly large: 48;
1136
+ };
1137
+ type CopyButtonProps = {
1138
+ size?: keyof typeof SIZES;
1139
+ value: string;
1140
+ copyText?: string;
1141
+ copiedText?: string;
1142
+ sentiment?: 'primary' | 'neutral';
1143
+ noBorder?: boolean;
1144
+ className?: string;
1145
+ 'data-testid'?: string;
1146
+ };
1147
+ declare const CopyButton: ({ size, value, copyText, copiedText, sentiment, noBorder, className, "data-testid": dataTestId, }: CopyButtonProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
1148
+
1149
+ type DateInputProps = Pick<ReactDatePickerProps<string>, 'autoFocus' | 'disabled' | 'locale' | 'maxDate' | 'minDate' | 'name' | 'onBlur' | 'onChange' | 'onFocus' | 'required'> & {
1150
+ error?: string;
1151
+ format?: (value?: Date | string) => string | undefined;
1152
+ /**
1153
+ * Label of the field
1154
+ */
1155
+ label?: string;
1156
+ value?: Date | string;
1157
+ className?: string;
1158
+ 'data-testid'?: string;
1159
+ };
1160
+ declare const DateInput: ({ autoFocus, disabled, error, format, label, locale, maxDate, minDate, name, onBlur, onChange, onFocus, required, value, className, "data-testid": dataTestId, }: DateInputProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
1161
+
1162
+ type ExpandableProps = {
1163
+ /**
1164
+ * The content to display
1165
+ */
1166
+ children: ReactNode;
1167
+ /**
1168
+ * To display or not the content
1169
+ */
1170
+ opened?: boolean;
1171
+ /**
1172
+ * The minimum height of the content
1173
+ */
1174
+ minHeight?: number;
1175
+ className?: string;
1176
+ 'data-testid'?: string;
1177
+ };
1178
+ declare const Expandable: ({ children, opened, minHeight, className, "data-testid": dataTestId, }: ExpandableProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
1179
+
1180
+ declare const CONTAINER_SIZES: {
1181
+ readonly small: 720;
1182
+ readonly medium: 720;
1183
+ readonly large: 1140;
1184
+ };
1185
+ type SizesTypes = keyof typeof CONTAINER_SIZES;
1186
+ type EmptyStateProps = {
1187
+ title?: string;
1188
+ description: ReactNode;
1189
+ /**
1190
+ * Container size will be same on `small` and `medium`
1191
+ * only the image size will change on those properties.
1192
+ * `small` and `medium` container is 720px wide
1193
+ * `large` container is 1080px wide
1194
+ */
1195
+ size?: SizesTypes;
1196
+ /**
1197
+ * You can give the path of an image or a component that will render an image.
1198
+ */
1199
+ image?: ReactNode;
1200
+ primaryButton?: ReactNode;
1201
+ secondaryButton?: ReactNode;
1202
+ learnMore?: {
1203
+ link: string;
1204
+ text: string;
1205
+ target?: string;
1206
+ };
1207
+ bordered?: boolean;
1208
+ className?: string;
1209
+ children?: ReactNode;
1210
+ 'data-testid'?: string;
1211
+ };
1212
+ declare const EmptyState: ({ image, title, size, description, primaryButton, secondaryButton, learnMore, className, bordered, children, "data-testid": dataTestId, }: EmptyStateProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
1213
+
1214
+ type Transformer = (value: DatumValue) => string;
1215
+ type CustomLegendProps = {
1216
+ axisTransformer?: Transformer;
1217
+ data?: Serie[];
1218
+ selected: string[];
1219
+ setSelected: (selected: string[]) => void;
1220
+ className?: string;
1221
+ 'data-testid'?: string;
1222
+ };
1223
+ declare const CustomLegend: ({ axisTransformer, data, selected, setSelected, className, "data-testid": dataTestId, }: CustomLegendProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
1224
+
1225
+ type LineChartProps = {
1226
+ height?: string | number;
1227
+ margin?: Box;
1228
+ xScale?: ScaleSpec;
1229
+ yScale?: ScaleSpec;
1230
+ data?: Serie[];
1231
+ withLegend?: boolean;
1232
+ axisFormatters?: Partial<Record<'bottom' | 'left' | 'right' | 'top', ComponentProps<typeof CustomLegend>['axisTransformer']>>;
1233
+ pointFormatters?: Partial<Record<'x' | 'y', ValueFormat<DatumValue>>>;
1234
+ tickValues?: Partial<Record<'bottom' | 'left' | 'right' | 'top', number | string>>;
1235
+ chartProps?: Partial<LineSvgProps>;
1236
+ 'data-testid'?: string;
1237
+ };
1238
+ /**
1239
+ * @experimental This component is experimental and may be subject to breaking changes in the future.
1240
+ */
1241
+ declare const LineChart: ({ height, margin, xScale, yScale, data, withLegend, axisFormatters, pointFormatters, tickValues, chartProps, "data-testid": dataTestId, }: LineChartProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
1242
+
1243
+ declare const PROMINENCES$1: {
1244
+ default: string;
1245
+ weak: string;
1246
+ strong: string;
1247
+ };
1248
+ type ProminenceProps$1 = keyof typeof PROMINENCES$1;
1249
+ type LinkSizes = 'large' | 'small';
1250
+ type LinkIconPosition = 'left' | 'right';
1251
+ type LinkProps = {
1252
+ children: ReactNode;
1253
+ target?: HTMLAttributeAnchorTarget;
1254
+ download?: string | boolean;
1255
+ sentiment?: Color;
1256
+ prominence?: ProminenceProps$1;
1257
+ size?: LinkSizes;
1258
+ iconPosition?: LinkIconPosition;
1259
+ rel?: AnchorHTMLAttributes<HTMLAnchorElement>['rel'];
1260
+ className?: string;
1261
+ href: string;
1262
+ onClick?: MouseEventHandler<HTMLAnchorElement>;
1263
+ 'aria-label'?: string;
1264
+ oneLine?: boolean;
1265
+ 'data-testid'?: string;
1266
+ };
1267
+ declare const Link: react.ForwardRefExoticComponent<LinkProps & react.RefAttributes<HTMLAnchorElement>>;
1268
+
1269
+ type HeaderCellProps$1 = {
1270
+ children: ReactNode;
1271
+ className?: string;
1272
+ isOrdered?: boolean;
1273
+ orderDirection?: 'asc' | 'desc' | 'none';
1274
+ onOrder?: (newOrder: 'asc' | 'desc') => void;
1275
+ info?: string;
1276
+ };
1277
+ declare const HeaderCell$1: ({ children, isOrdered, orderDirection, onOrder, className, info, }: HeaderCellProps$1) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
1278
+
1279
+ type SelectBarProps$1<T> = {
1280
+ className?: string;
1281
+ children: (p: {
1282
+ selectedItems: T[];
1283
+ unselectAll: () => void;
1284
+ }) => ReactNode;
1285
+ data: T[];
1286
+ /**
1287
+ * The idKey of each data entry
1288
+ * */
1289
+ idKey: keyof T;
1290
+ };
1291
+ declare function SelectBar$1<T>({ children, data, idKey, className, }: SelectBarProps$1<T>): _emotion_react_types_jsx_namespace.EmotionJSX.Element | null;
1292
+
1293
+ type ColumnProps$1 = Pick<ComponentProps<typeof HeaderCell$1>, 'isOrdered' | 'onOrder' | 'orderDirection'> & {
1294
+ label?: string;
1295
+ width?: string;
1296
+ info?: string;
1297
+ };
1298
+ type ListProps = {
1299
+ selectable?: boolean;
1300
+ columns: ColumnProps$1[];
1301
+ children: ReactNode;
1302
+ /**
1303
+ * Set it to true if you want to display a placeholder during loading
1304
+ * */
1305
+ loading?: boolean;
1306
+ /**
1307
+ * Auto collapse is collapsing expandable row when another is expanding
1308
+ * */
1309
+ autoCollapse?: boolean;
1310
+ };
1311
+ declare const List: react.ForwardRefExoticComponent<ListProps & react.RefAttributes<HTMLDivElement>> & {
1312
+ Row: react.ForwardRefExoticComponent<{
1313
+ children: ReactNode;
1314
+ id: string;
1315
+ expandable?: ReactNode;
1316
+ selectDisabled?: string | boolean | undefined;
1317
+ disabled?: boolean | undefined;
1318
+ sentiment?: "primary" | "neutral" | "success" | "danger" | "warning" | "info" | undefined;
1319
+ className?: string | undefined;
1320
+ 'data-testid'?: string | undefined;
1321
+ } & react.RefAttributes<HTMLDivElement>>;
1322
+ Cell: react.ForwardRefExoticComponent<{
1323
+ children?: ReactNode;
1324
+ className?: string | undefined;
1325
+ preventClick?: boolean | undefined;
1326
+ 'data-testid'?: string | undefined;
1327
+ } & react.RefAttributes<HTMLDivElement>>;
1328
+ SelectBar: typeof SelectBar$1;
1329
+ useListContext: () => {
1330
+ registerExpandableRow: (rowId: string) => () => void;
1331
+ expandedRowIds: {
1332
+ [x: string]: boolean;
1333
+ };
1334
+ expandRow: (rowId: string) => void;
1335
+ collapseRow: (rowId: string) => void;
1336
+ registerSelectableRow: (rowId: string) => () => void;
1337
+ selectedRowIds: {
1338
+ [x: string]: boolean;
1339
+ };
1340
+ selectRow: (rowId: string) => void;
1341
+ unselectRow: (rowId: string) => void;
1342
+ selectable: boolean;
1343
+ allRowSelectValue: boolean | "indeterminate" | undefined;
1344
+ selectAll: () => void;
1345
+ unselectAll: () => void;
1346
+ };
1347
+ };
1348
+
1349
+ type LoaderProps = {
1350
+ active?: boolean;
1351
+ color?: Color | string;
1352
+ percentage?: number;
1353
+ size?: number | string;
1354
+ strokeWidth?: number;
1355
+ /**
1356
+ * Text is placed in center of ProgressCircle.
1357
+ */
1358
+ text?: string;
1359
+ trailColor?: Color | string;
1360
+ /**
1361
+ * Label should be defined for accessibility, to indicate what is loading
1362
+ */
1363
+ label?: string;
1364
+ };
1365
+ declare const Loader: ({ percentage, text, size, strokeWidth, color, trailColor, active, label, }: LoaderProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
1366
+
1367
+ type DisclosureElement = ((popover: Partial<PopoverStateReturn>) => ReactElement) | (ReactElement & {
1368
+ ref?: Ref<HTMLButtonElement>;
1369
+ });
1370
+ declare const arrowPlacementStyles: {
1371
+ readonly bottom: (theme: Theme) => _emotion_react.SerializedStyles;
1372
+ readonly 'bottom-end': (theme: Theme) => _emotion_react.SerializedStyles;
1373
+ readonly 'bottom-start': (theme: Theme) => _emotion_react.SerializedStyles;
1374
+ readonly top: (theme: Theme) => _emotion_react.SerializedStyles;
1375
+ readonly 'top-end': (theme: Theme) => _emotion_react.SerializedStyles;
1376
+ readonly 'top-start': (theme: Theme) => _emotion_react.SerializedStyles;
1377
+ };
1378
+ type ArrowPlacement = keyof typeof arrowPlacementStyles;
1379
+ type MenuProps = {
1380
+ ariaLabel?: string;
1381
+ id?: string;
1382
+ placement?: ArrowPlacement;
1383
+ children?: ((props: PopoverStateReturn) => ReactNode) | ReactNode;
1384
+ className?: string;
1385
+ disclosure: DisclosureElement;
1386
+ hasArrow?: boolean;
1387
+ visible?: boolean;
1388
+ 'data-testid'?: string;
1389
+ };
1390
+ declare const Menu: react.ForwardRefExoticComponent<MenuProps & react.RefAttributes<HTMLButtonElement>> & {
1391
+ Item: react.ForwardRefExoticComponent<{
1392
+ href?: string | undefined;
1393
+ disabled?: boolean | undefined;
1394
+ tooltip?: string | undefined;
1395
+ className?: string | undefined;
1396
+ children: ReactNode;
1397
+ onClick?: react.MouseEventHandler<HTMLElement> | undefined;
1398
+ borderless?: boolean | undefined;
1399
+ sentiment?: ("neutral" | "danger") | undefined;
1400
+ 'data-testid'?: string | undefined;
1401
+ } & react.RefAttributes<HTMLElement>>;
1402
+ };
1403
+
1404
+ declare const MODAL_WIDTH: {
1405
+ large: number;
1406
+ medium: number;
1407
+ small: number;
1408
+ xsmall: number;
1409
+ xxsmall: number;
1410
+ };
1411
+ type ModalWidth = keyof typeof MODAL_WIDTH;
1412
+ declare const MODAL_PLACEMENT: {
1413
+ bottom: string;
1414
+ 'bottom-left': string;
1415
+ 'bottom-right': string;
1416
+ center: string;
1417
+ left: string;
1418
+ right: string;
1419
+ top: string;
1420
+ 'top-left': string;
1421
+ 'top-right': string;
1422
+ };
1423
+ type ModalPlacement = keyof typeof MODAL_PLACEMENT;
1424
+ declare const MODAL_ANIMATION: {
1425
+ fold: {
1426
+ enter: _emotion_react.Keyframes;
1427
+ leave: _emotion_react.Keyframes;
1428
+ };
1429
+ scaleBack: {
1430
+ enter: _emotion_react.Keyframes;
1431
+ leave: _emotion_react.Keyframes;
1432
+ };
1433
+ scaleUp: {
1434
+ enter: _emotion_react.Keyframes;
1435
+ leave: _emotion_react.Keyframes;
1436
+ };
1437
+ sketch: {
1438
+ enter: _emotion_react.Keyframes;
1439
+ leave: _emotion_react.Keyframes;
1440
+ };
1441
+ slideBottom: {
1442
+ enter: _emotion_react.Keyframes;
1443
+ leave: _emotion_react.Keyframes;
1444
+ };
1445
+ slideLeft: {
1446
+ enter: _emotion_react.Keyframes;
1447
+ leave: _emotion_react.Keyframes;
1448
+ };
1449
+ slideRight: {
1450
+ enter: _emotion_react.Keyframes;
1451
+ leave: _emotion_react.Keyframes;
1452
+ };
1453
+ slideTop: {
1454
+ enter: _emotion_react.Keyframes;
1455
+ leave: _emotion_react.Keyframes;
1456
+ };
1457
+ zoom: {
1458
+ enter: _emotion_react.Keyframes;
1459
+ leave: _emotion_react.Keyframes;
1460
+ };
1461
+ };
1462
+ type ModalAnimation = keyof typeof MODAL_ANIMATION;
1463
+ type DisclosureParam = ((dialog?: Partial<DialogStateReturn>) => ReactElement) | ReactElement;
1464
+ type ModalProps = Partial<Pick<DialogProps, 'animated' | 'id' | 'hideOnEsc' | 'hideOnClickOutside' | 'preventBodyScroll'>> & {
1465
+ animation?: ModalAnimation;
1466
+ ariaLabel?: string;
1467
+ bordered?: boolean;
1468
+ customDialogBackdropStyles?: JSX.IntrinsicAttributes['css'];
1469
+ customDialogStyles?: JSX.IntrinsicAttributes['css'];
1470
+ disclosure?: DisclosureParam;
1471
+ height?: string;
1472
+ isClosable?: boolean;
1473
+ modal?: boolean;
1474
+ onClose?: () => void;
1475
+ onBeforeClose?: () => Promise<void> | void;
1476
+ opened?: boolean;
1477
+ placement?: ModalPlacement;
1478
+ width?: ModalWidth;
1479
+ children: ReactNode | ((args: DialogStateReturn) => ReactNode);
1480
+ className?: string;
1481
+ 'data-testid'?: string;
1482
+ };
1483
+ declare const Modal: react.MemoExoticComponent<({ animated, animation, ariaLabel, id, bordered, children, customDialogBackdropStyles, customDialogStyles, disclosure, height, hideOnClickOutside, hideOnEsc, isClosable, modal, onClose, onBeforeClose, opened, placement, preventBodyScroll, width, className, "data-testid": dataTestId, }: ModalProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element>;
1484
+
1485
+ type NoticeProps = {
1486
+ children: ReactNode;
1487
+ className?: string;
1488
+ 'data-testid'?: string;
1489
+ };
1490
+ declare const Notice: ({ children, className, "data-testid": dataTestId, }: NoticeProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
1491
+
1492
+ type PaginationProps = {
1493
+ /**
1494
+ Event function called when changing the page
1495
+ */
1496
+ onChange: (newPage: number) => void;
1497
+ /**
1498
+ The current page
1499
+ */
1500
+ page: number;
1501
+ /**
1502
+ Number of page you have
1503
+ */
1504
+ pageCount: number;
1505
+ /**
1506
+ How many page button you want to have
1507
+ */
1508
+ pageTabCount?: number;
1509
+ /**
1510
+ Disable all buttons
1511
+ */
1512
+ disabled?: boolean;
1513
+ className?: string;
1514
+ 'data-testid'?: string;
1515
+ };
1516
+ /**
1517
+ * Display multiple buttons to allow navigation between a paginated resource
1518
+ */
1519
+ declare const Pagination: ({ disabled, page, pageCount, onChange, pageTabCount, className, "data-testid": dataTestId, }: PaginationProps) => JSX.Element;
1520
+
1521
+ type Rule = {
1522
+ name: string;
1523
+ text: string;
1524
+ valid: boolean;
1525
+ };
1526
+ type PasswordCheckProps = {
1527
+ /**
1528
+ * Is an array of object that contains password rules. `name` is the name of the rule, `text` the text associated
1529
+ * with the rule and `valid` is a boolean that determine if the rule is respected or not.
1530
+ */
1531
+ rules: Rule[];
1532
+ className?: string;
1533
+ 'data-testid'?: string;
1534
+ };
1535
+ declare const PasswordCheck: ({ rules, className, "data-testid": dataTestId, }: PasswordCheckProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
1536
+
1537
+ type Strength = {
1538
+ /**
1539
+ * Color to display
1540
+ */
1541
+ color: string;
1542
+ /**
1543
+ * Text to display
1544
+ */
1545
+ t: string;
1546
+ };
1547
+ type Score = 0 | 1 | 2 | 3 | 4;
1548
+ type ResponseEstimate = {
1549
+ score: Score;
1550
+ };
1551
+ type PasswordStrengthMeterProps = {
1552
+ /**
1553
+ * A function that should return a score based on password (index of strength array). The higher score is the stronger password is.
1554
+ */
1555
+ estimate?: ((passwordToTest: string, userInputs: string[]) => Promise<ResponseEstimate>) | ((passwordToTest: string, userInputs: string[]) => ResponseEstimate);
1556
+ onChange?: (score: number) => unknown;
1557
+ password?: string;
1558
+ /**
1559
+ * Strength is used for defining different color and text associated with it.
1560
+ */
1561
+ strength: Strength[];
1562
+ title: string;
1563
+ /**
1564
+ * An array of string that defines what word shouldn't be used in the password.
1565
+ */
1566
+ forbiddenInputs?: string[];
1567
+ className?: string;
1568
+ 'data-testid'?: string;
1569
+ };
1570
+ declare const PasswordStrengthMeter: ({ password, onChange, strength, title, estimate, forbiddenInputs, className, "data-testid": dataTestId, }: PasswordStrengthMeterProps) => JSX.Element;
1571
+
1572
+ type Data = {
1573
+ name?: string | null;
1574
+ needPattern?: boolean | null;
1575
+ percent: number;
1576
+ id: string;
1577
+ value?: string | null;
1578
+ };
1579
+
1580
+ type PieChartProps = {
1581
+ chartProps?: Record<string, unknown>;
1582
+ data?: Data[];
1583
+ height?: number;
1584
+ width?: number;
1585
+ emptyLegend?: string;
1586
+ content?: ReactNode;
1587
+ withLegend?: boolean;
1588
+ margin?: Box;
1589
+ };
1590
+ /**
1591
+ * @experimental This component is experimental and may be subject to breaking changes in the future.
1592
+ */
1593
+ declare const PieChart: ({ height, width, data, emptyLegend, content, withLegend, margin, chartProps, }: PieChartProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
1594
+
1595
+ declare const variants$1: {
1596
+ readonly block: ({ length }: {
1597
+ length?: number | undefined;
1598
+ }) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
1599
+ readonly blocks: ({ col, length, }: {
1600
+ col?: number | undefined;
1601
+ length?: number | undefined;
1602
+ }) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
1603
+ readonly box: ({ col, length, }: {
1604
+ col?: number | undefined;
1605
+ length?: number | undefined;
1606
+ }) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
1607
+ readonly donut: () => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
1608
+ readonly line: _emotion_styled.StyledComponent<{
1609
+ theme?: _emotion_react.Theme | undefined;
1610
+ as?: react.ElementType<any> | undefined;
1611
+ }, react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
1612
+ readonly list: ({ length, col, }: {
1613
+ length?: number | undefined;
1614
+ col?: number | undefined;
1615
+ }) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
1616
+ readonly slider: ({ length }: {
1617
+ length?: number | undefined;
1618
+ }) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
1619
+ };
1620
+ type SkeletonVariant = keyof typeof variants$1;
1621
+ type SkeletonProps = {
1622
+ variant?: SkeletonVariant;
1623
+ length?: number;
1624
+ col?: number;
1625
+ className?: string;
1626
+ };
1627
+ declare const Skeleton: ({ variant, length, col, className, }: SkeletonProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
1628
+
1629
+ declare const progressBarSentiments: readonly ["primary", "success", "warning", "info"];
1630
+ type ProgressBarProps = {
1631
+ sentiment?: (typeof progressBarSentiments)[number];
1632
+ value?: number;
1633
+ /** Put ProgressBar in a loading state */
1634
+ progress?: boolean;
1635
+ className?: string;
1636
+ 'data-testid'?: string;
1637
+ };
1638
+ declare const ProgressBar: ({ progress, value, sentiment, className, "data-testid": dataTestId, }: ProgressBarProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
1639
+
1640
+ type RadioProps = {
1641
+ error?: string | ReactNode;
1642
+ checked?: boolean;
1643
+ size?: number;
1644
+ value: string | number;
1645
+ className?: string;
1646
+ 'data-testid'?: string;
1647
+ } & Required<Pick<InputHTMLAttributes<HTMLInputElement>, 'onChange'>> & Pick<InputHTMLAttributes<HTMLInputElement>, 'onFocus' | 'onBlur' | 'disabled' | 'autoFocus' | 'onKeyDown' | 'id' | 'name' | 'required'> & ({
1648
+ 'aria-label': string;
1649
+ children?: never;
1650
+ } | {
1651
+ 'aria-label'?: never;
1652
+ children: ReactNode;
1653
+ });
1654
+ declare const Radio: react.ForwardRefExoticComponent<RadioProps & react.RefAttributes<HTMLInputElement>>;
1655
+
1656
+ type SelectOption = {
1657
+ value: string;
1658
+ label: ReactNode;
1659
+ disabled?: boolean;
1660
+ description?: string;
1661
+ inlineDescription?: string;
1662
+ };
1663
+ type SelectStyleProps = {
1664
+ error?: string;
1665
+ /**
1666
+ * Custom styles of the SelectInput. See [React select documentation](https://react-select.com/styles)
1667
+ */
1668
+ customStyle: (state: SelectProps & WithSelectProps) => Record<string, CSSObject>;
1669
+ animation?: string;
1670
+ /**
1671
+ * Time of the animation
1672
+ */
1673
+ animationDuration: number;
1674
+ /**
1675
+ * Show/hide the label inside the component
1676
+ */
1677
+ noTopLabel?: boolean;
1678
+ theme: Theme;
1679
+ };
1680
+ type WithSelectProps = {
1681
+ selectProps: SelectProps;
1682
+ };
1683
+ type SelectProps = StyledContainerProps & Omit<Props<SelectOption>, 'value'> & CommonProps$1<SelectOption, boolean, GroupBase<SelectOption>> & {
1684
+ value?: string | SelectOption;
1685
+ checked?: boolean;
1686
+ error?: string;
1687
+ labelId?: string;
1688
+ required?: boolean;
1689
+ time?: boolean;
1690
+ };
1691
+ type StyledContainerProps = {
1692
+ isDisabled?: boolean;
1693
+ additionalStyles?: Parameters<typeof css>[0];
1694
+ };
1695
+ type StateManagedSelect = typeof Select;
1696
+ type SelectInputProps = SelectProps & SelectStyleProps & {
1697
+ /**
1698
+ * Name of the animation
1699
+ */
1700
+ animation?: string;
1701
+ /**
1702
+ * Play the animation when the value change
1703
+ */
1704
+ animationOnChange?: boolean;
1705
+ disabled?: boolean;
1706
+ readOnly?: boolean;
1707
+ innerRef?: ForwardedRef<StateManagedSelect>;
1708
+ /**
1709
+ * Custom components of the SelectInput. See [React select documentation](https://react-select.com/components)
1710
+ */
1711
+ customComponents?: SelectProps['components'];
1712
+ children: ReactNode;
1713
+ emptyState?: ComponentProps<Select>['noOptionsMessage'];
1714
+ 'data-testid'?: string;
1715
+ };
1716
+ type OptionComponent = (props: Partial<OptionProps<SelectOption> & SelectOption>) => JSX.Element;
1717
+ declare const SelectInput: ForwardRefExoticComponent<Partial<SelectInputProps>> & {
1718
+ Option: OptionComponent;
1719
+ };
1720
+
1721
+ type SelectableCardProps = {
1722
+ name?: string;
1723
+ children?: (({ disabled, checked, }: Pick<SelectableCardProps, 'checked' | 'disabled'>) => ReactNode) | ReactNode;
1724
+ value: string | number;
1725
+ onChange: ChangeEventHandler<HTMLInputElement>;
1726
+ showTick?: boolean;
1727
+ type?: 'radio' | 'checkbox';
1728
+ disabled?: boolean;
1729
+ checked?: boolean;
1730
+ className?: string;
1731
+ isError?: boolean;
1732
+ onFocus?: FocusEventHandler<HTMLInputElement>;
1733
+ onBlur?: FocusEventHandler<HTMLInputElement>;
1734
+ id?: string;
1735
+ tooltip?: string;
1736
+ label?: ReactNode;
1737
+ 'data-testid'?: string;
1738
+ };
1739
+ declare const SelectableCard: react.ForwardRefExoticComponent<SelectableCardProps & react.RefAttributes<HTMLDivElement>>;
1740
+
1741
+ declare const containerSizes: {
1742
+ large: number;
1743
+ medium: number;
1744
+ small: number;
1745
+ };
1746
+ type ContainerSizesType = keyof typeof containerSizes;
1747
+ type NumberInputProps = {
1748
+ disabled?: boolean;
1749
+ maxValue?: number;
1750
+ minValue?: number;
1751
+ name?: string;
1752
+ onChange?: (input: number | undefined) => void;
1753
+ onMaxCrossed?(): void;
1754
+ onMinCrossed?(): void;
1755
+ size?: ContainerSizesType;
1756
+ /**
1757
+ * Define how much will stepper increase / decrease each time you click on + / - button.
1758
+ */
1759
+ step?: number;
1760
+ /**
1761
+ * Text displayed into component at the right of number value.
1762
+ */
1763
+ text?: string;
1764
+ defaultValue?: number;
1765
+ value?: number;
1766
+ disabledTooltip?: string;
1767
+ className?: string;
1768
+ 'data-testid'?: string;
1769
+ label?: string;
1770
+ 'aria-label'?: string;
1771
+ 'aria-describedby'?: string;
1772
+ id?: string;
1773
+ placeholder?: string;
1774
+ error?: string | boolean;
1775
+ } & Omit<InputHTMLAttributes<HTMLInputElement>, 'size' | 'onChange' | 'value' | 'defaultValue'>;
1776
+ declare const NumberInput: ({ disabled, maxValue, minValue, name, onChange, onFocus, onBlur, onMaxCrossed, onMinCrossed, size, step, text, defaultValue, value, disabledTooltip, className, label, id, placeholder, error, "aria-label": ariaLabel, "aria-describedby": ariaDescribedBy, "data-testid": dataTestId, }: NumberInputProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
1777
+
1778
+ type Direction = 'horizontal' | 'vertical';
1779
+ type SeparatorProps = {
1780
+ icon?: ComponentProps<typeof Icon>['name'];
1781
+ direction?: Direction;
1782
+ thickness?: number;
1783
+ color?: Color;
1784
+ className?: string;
1785
+ 'data-testid'?: string;
1786
+ };
1787
+ declare const Separator: ({ direction, thickness, color, icon, className, "data-testid": dataTestId, }: SeparatorProps) => JSX.Element;
1788
+
1789
+ type CarouselItemProps = {
1790
+ children: ReactNode;
1791
+ };
1792
+ type CarouselProps = {
1793
+ className?: string;
1794
+ children?: ReactNode;
1795
+ 'data-testid'?: string;
1796
+ };
1797
+ declare const Carousel: {
1798
+ ({ children, className, "data-testid": dataTestId, }: CarouselProps): JSX.Element;
1799
+ Item: ({ children }: CarouselItemProps) => JSX.Element;
1800
+ };
1801
+
1802
+ type Prefixes = 'lines' | 'command';
1803
+ type SnippetProps = {
1804
+ className?: string;
1805
+ children: string;
1806
+ /**
1807
+ * prefix display an element at the beginning of the snippet that is not copiable or selectable.
1808
+ * For `lines` prefix it will display the line number.
1809
+ * For `command` prefix it will display a `$` sign.
1810
+ */
1811
+ prefix?: Prefixes;
1812
+ showText?: string;
1813
+ hideText?: string;
1814
+ 'data-testid'?: string;
1815
+ } & Pick<ComponentProps<typeof CopyButton>, 'copyText' | 'copiedText'>;
1816
+ declare const Snippet: ({ children, copyText, copiedText, showText, hideText, prefix, className, "data-testid": dataTestId, }: SnippetProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
1817
+
1818
+ type StackProps = {
1819
+ gap?: keyof SCWUITheme['space'] | number;
1820
+ direction?: 'row' | 'column';
1821
+ alignItems?: CSSProperties['alignItems'];
1822
+ justifyContent?: CSSProperties['justifyContent'];
1823
+ wrap?: boolean | CSSProperties['flexWrap'];
1824
+ className?: string;
1825
+ children: ReactNode;
1826
+ 'data-testid'?: string;
1827
+ };
1828
+ declare const Stack: _emotion_styled.StyledComponent<{
1829
+ theme?: _emotion_react.Theme | undefined;
1830
+ as?: react.ElementType<any> | undefined;
1831
+ } & StackProps, react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
1832
+
1833
+ declare const sentiments: {
1834
+ readonly danger: ({ theme }: {
1835
+ theme: Theme;
1836
+ }) => string;
1837
+ readonly info: ({ theme }: {
1838
+ theme: Theme;
1839
+ }) => string;
1840
+ readonly neutral: ({ theme }: {
1841
+ theme: Theme;
1842
+ }) => string;
1843
+ readonly success: ({ theme }: {
1844
+ theme: Theme;
1845
+ }) => string;
1846
+ readonly warning: ({ theme }: {
1847
+ theme: Theme;
1848
+ }) => string;
1849
+ };
1850
+ type StatusSentiment = keyof typeof sentiments;
1851
+ type StatusProps = {
1852
+ animated?: boolean;
1853
+ className?: string;
1854
+ sentiment: StatusSentiment;
1855
+ tooltip?: string;
1856
+ 'data-testid'?: string;
1857
+ };
1858
+ declare const Status: ({ animated, className, tooltip, sentiment, "data-testid": dataTestId, }: StatusProps) => JSX.Element;
1859
+
1860
+ type Sizes = 'small' | 'medium';
1861
+ type ContentProps = {
1862
+ bulletIcon: ComponentProps<typeof Bullet>['icon'];
1863
+ bulletText?: never;
1864
+ } | {
1865
+ bulletIcon?: never;
1866
+ bulletText: string;
1867
+ };
1868
+ type ItemProps = {
1869
+ sentiment?: ComponentProps<typeof Bullet>['sentiment'];
1870
+ size?: Sizes;
1871
+ disabled?: boolean;
1872
+ children: ReactNode;
1873
+ className?: string;
1874
+ } & ContentProps;
1875
+ type StepListProps = {
1876
+ children: ReactNode;
1877
+ className?: string;
1878
+ 'data-testid'?: string;
1879
+ };
1880
+ /**
1881
+ * @experimental This component is experimental and may be subject to breaking changes in the future.
1882
+ */
1883
+ declare const StepList: {
1884
+ ({ children, className, "data-testid": dataTestId, }: StepListProps): _emotion_react_types_jsx_namespace.EmotionJSX.Element;
1885
+ Item: ({ bulletText, bulletIcon, sentiment, children, size, disabled, className, }: ItemProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
1886
+ };
1887
+
1888
+ type StepperProps = {
1889
+ animated?: boolean;
1890
+ selected?: number;
1891
+ children: ReactNode[];
1892
+ className?: string;
1893
+ 'data-testid'?: string;
1894
+ };
1895
+ declare const Stepper: ({ children, selected, animated, className, "data-testid": dataTestId, }: StepperProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
1896
+
1897
+ type SwitchButtonProps = {
1898
+ name: string;
1899
+ onBlur?: FocusEventHandler;
1900
+ onChange: ChangeEventHandler;
1901
+ onFocus?: FocusEventHandler;
1902
+ tooltip?: string;
1903
+ value?: string | number;
1904
+ leftButton: {
1905
+ label: string;
1906
+ value: string;
1907
+ disabled?: boolean;
1908
+ };
1909
+ rightButton: {
1910
+ label: string;
1911
+ value: string;
1912
+ disabled?: boolean;
1913
+ };
1914
+ className?: string;
1915
+ 'data-testid'?: string;
1916
+ };
1917
+ declare const SwitchButton: ({ value, onChange, onFocus, onBlur, name, leftButton, rightButton, tooltip, className, "data-testid": dataTestId, }: SwitchButtonProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
1918
+
1919
+ type HeaderCellProps = {
1920
+ children: ReactNode;
1921
+ className?: string;
1922
+ isOrdered?: boolean;
1923
+ orderDirection?: 'asc' | 'desc' | 'none';
1924
+ onOrder?: (newOrder: 'asc' | 'desc') => void;
1925
+ width?: string;
1926
+ minWidth?: string;
1927
+ maxWidth?: string;
1928
+ info?: string;
1929
+ };
1930
+ declare const HeaderCell: ({ children, className, isOrdered, onOrder, orderDirection, width, maxWidth, minWidth, info, }: HeaderCellProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
1931
+
1932
+ type SelectBarProps<T> = {
1933
+ className?: string;
1934
+ children: (p: {
1935
+ selectedItems: T[];
1936
+ unselectAll: () => void;
1937
+ }) => ReactNode;
1938
+ data: T[];
1939
+ /**
1940
+ * The idKey of each data entry
1941
+ * */
1942
+ idKey: keyof T;
1943
+ };
1944
+ declare function SelectBar<T>({ children, data, idKey, className, }: SelectBarProps<T>): _emotion_react_types_jsx_namespace.EmotionJSX.Element | null;
1945
+
1946
+ type ColumnProps = Pick<ComponentProps<typeof HeaderCell>, 'isOrdered' | 'onOrder' | 'orderDirection'> & {
1947
+ label?: string;
1948
+ width?: string;
1949
+ minWidth?: string;
1950
+ maxWidth?: string;
1951
+ info?: string;
1952
+ };
1953
+ type TableProps = {
1954
+ selectable?: boolean;
1955
+ columns: ColumnProps[];
1956
+ children: ReactNode;
1957
+ /**
1958
+ * Set it to true if you want to display a placeholder during loading
1959
+ * */
1960
+ loading?: boolean;
1961
+ bordered?: boolean;
1962
+ stripped?: boolean;
1963
+ };
1964
+ declare const Table: react.ForwardRefExoticComponent<TableProps & react.RefAttributes<HTMLTableElement>> & {
1965
+ Body: ({ children }: {
1966
+ children: ReactNode;
1967
+ }) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
1968
+ Row: ({ children, className, id, selectDisabled, "data-testid": dataTestid, }: {
1969
+ children: ReactNode;
1970
+ className?: string | undefined;
1971
+ id: string;
1972
+ 'data-testid'?: string | undefined;
1973
+ selectDisabled?: string | boolean | undefined;
1974
+ }) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
1975
+ Cell: ({ children, className, colSpan, rowSpan }: {
1976
+ children?: ReactNode;
1977
+ className?: string | undefined;
1978
+ colSpan?: number | undefined;
1979
+ rowSpan?: number | undefined;
1980
+ }) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
1981
+ useTableContext: () => {
1982
+ bordered: boolean;
1983
+ stripped: boolean;
1984
+ selectedRowIds: {
1985
+ [x: string]: boolean;
1986
+ };
1987
+ selectRow: (rowId: string) => void;
1988
+ unselectRow: (rowId: string) => void;
1989
+ selectable: boolean;
1990
+ allRowSelectValue: boolean | "indeterminate" | undefined;
1991
+ selectAll: () => void;
1992
+ unselectAll: () => void;
1993
+ registerSelectableRow: (rowId: string) => () => void;
1994
+ };
1995
+ SelectBar: typeof SelectBar;
1996
+ };
1997
+
1998
+ type TabsProps = {
1999
+ selected?: string | number;
2000
+ onChange: (data: string | number) => void;
2001
+ moreDisclosure?: ReactNode;
2002
+ className?: string;
2003
+ 'data-testid'?: string;
2004
+ } & Omit<HTMLAttributes<HTMLElement>, 'onChange' | 'role'>;
2005
+ declare const Tabs: {
2006
+ ({ children, onChange, moreDisclosure, selected, className, "data-testid": dataTestId, ...props }: TabsProps): _emotion_react_types_jsx_namespace.EmotionJSX.Element;
2007
+ Tab: react.ForwardRefExoticComponent<Omit<{
2008
+ as?: react.ElementType | undefined;
2009
+ badge?: ReactNode;
2010
+ children?: ReactNode;
2011
+ className?: string | undefined;
2012
+ counter?: string | number | undefined;
2013
+ disabled?: boolean | undefined;
2014
+ value?: string | number | undefined;
2015
+ onClick?: react.MouseEventHandler<HTMLElement> | undefined;
2016
+ onKeyDown?: react.KeyboardEventHandler<HTMLElement> | undefined;
2017
+ tooltip?: string | undefined;
2018
+ } & Omit<any, "tooltip" | "children" | "role" | "className" | "as" | "disabled" | "value" | "badge" | "counter">, "ref"> & react.RefAttributes<HTMLElement>>;
2019
+ Menu: react.ForwardRefExoticComponent<{
2020
+ children: ReactNode;
2021
+ disclosure: ReactNode;
2022
+ visible?: boolean | undefined;
2023
+ id?: string | undefined;
2024
+ } & Omit<react.ButtonHTMLAttributes<HTMLButtonElement>, "aria-disabled"> & react.RefAttributes<HTMLButtonElement>>;
2025
+ MenuItem: ({ value, children, onClick, ...props }: {
2026
+ value?: string | number | undefined;
2027
+ } & {
2028
+ href?: string | undefined;
2029
+ disabled?: boolean | undefined;
2030
+ tooltip?: string | undefined;
2031
+ className?: string | undefined;
2032
+ children: ReactNode;
2033
+ onClick?: react.MouseEventHandler<HTMLElement> | undefined;
2034
+ borderless?: boolean | undefined;
2035
+ sentiment?: ("neutral" | "danger") | undefined;
2036
+ 'data-testid'?: string | undefined;
2037
+ } & react.RefAttributes<HTMLElement> & {
2038
+ theme?: _emotion_react.Theme | undefined;
2039
+ }) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
2040
+ };
2041
+
2042
+ type TagProps = {
2043
+ isLoading?: boolean;
2044
+ onClose?: MouseEventHandler<HTMLButtonElement>;
2045
+ sentiment?: Color;
2046
+ disabled?: boolean;
2047
+ /**
2048
+ * Defines icon to display on left side of badge. **Only available on medium and large sizes**.
2049
+ */
2050
+ icon?: IconName;
2051
+ copiable?: boolean;
2052
+ copyText?: string;
2053
+ copiedText?: string;
2054
+ className?: string;
2055
+ children: ReactNode;
2056
+ 'data-testid'?: string;
2057
+ };
2058
+ declare const Tag: ({ children, isLoading, onClose, icon, copiable, copyText, copiedText, disabled, sentiment, className, "data-testid": dataTestId, }: TagProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
2059
+
2060
+ declare const variants: {
2061
+ readonly base: ({ theme: { colors, shadows, radii } }: {
2062
+ theme: Theme;
2063
+ }) => string;
2064
+ readonly bordered: ({ theme: { shadows } }: {
2065
+ theme: Theme;
2066
+ }) => string;
2067
+ readonly 'no-border': ({ theme: { shadows } }: {
2068
+ theme: Theme;
2069
+ }) => string;
2070
+ };
2071
+ type Variant = keyof typeof variants;
2072
+ type TagInputProp = (string | {
2073
+ label: string;
2074
+ index: string;
2075
+ })[];
2076
+ type TagInputProps = {
2077
+ disabled?: boolean;
2078
+ id?: string;
2079
+ manualInput?: boolean;
2080
+ name?: string;
2081
+ onChange?: (tags: string[]) => void;
2082
+ onChangeError?: (error: Error | string) => void;
2083
+ placeholder?: string;
2084
+ tags?: TagInputProp;
2085
+ variant?: Variant;
2086
+ className?: string;
2087
+ 'data-testid'?: string;
2088
+ };
2089
+ /**
2090
+ * @experimental This component is experimental and may be subject to breaking changes in the future.
2091
+ */
2092
+ declare const TagInput: ({ disabled, id, manualInput, name, onChange, onChangeError, placeholder, tags, variant, className, "data-testid": dataTestId, }: TagInputProps) => JSX.Element;
2093
+
2094
+ type TagListProps = {
2095
+ /**
2096
+ * This property define maximum characters length of all tags until it hide tags into tooltip.
2097
+ */
2098
+ maxLength?: number;
2099
+ tags?: string[];
2100
+ /**
2101
+ * This property define maximum characters length of all tags until it hide tags into tooltip.
2102
+ */
2103
+ threshold?: number;
2104
+ /**
2105
+ * This property define maximum width of each tag. This doesn't apply for tags in tooltip.
2106
+ */
2107
+ multiline?: boolean;
2108
+ /**
2109
+ * This property define the title of the Popover, when some tags are hidden because of the threshold.
2110
+ */
2111
+ popoverTitle: string;
2112
+ className?: string;
2113
+ 'data-testid'?: string;
2114
+ } & Pick<ComponentProps<typeof Tag>, 'copiable' | 'copyText' | 'copiedText'>;
2115
+ declare const TagList: ({ maxLength, tags, threshold, multiline, popoverTitle, copiable, copyText, copiedText, className, "data-testid": dataTestId, }: TagListProps) => JSX.Element | null;
2116
+
2117
+ declare const PROMINENCES: {
2118
+ default: string;
2119
+ strong: string;
2120
+ stronger: string;
2121
+ weak: string;
2122
+ };
2123
+ type ProminenceProps = keyof typeof PROMINENCES;
2124
+ type TextVariant = keyof typeof typography;
2125
+ type TextProps = {
2126
+ className?: string;
2127
+ children: ReactNode;
2128
+ variant: TextVariant;
2129
+ color?: Color;
2130
+ prominence?: ProminenceProps;
2131
+ as: ElementType;
2132
+ oneLine?: boolean;
2133
+ disabled?: boolean;
2134
+ italic?: boolean;
2135
+ underline?: boolean;
2136
+ id?: string;
2137
+ dir?: 'ltr' | 'rtl' | 'auto';
2138
+ htmlFor?: string;
2139
+ 'data-testid'?: string;
2140
+ };
2141
+ declare const Text: ({ variant, children, as, color, oneLine, prominence, className, disabled, italic, underline, id, dir, htmlFor, "data-testid": dataTestId, }: TextProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
2142
+
2143
+ declare const inputSizes: {
2144
+ medium: {
2145
+ default: string;
2146
+ full: string;
2147
+ };
2148
+ small: {
2149
+ default: string;
2150
+ full: string;
2151
+ };
2152
+ };
2153
+ type TextInputSizes = keyof typeof inputSizes;
2154
+ type StyledInputProps = {
2155
+ disabled?: boolean;
2156
+ error?: boolean;
2157
+ fillAvailable?: boolean;
2158
+ hasLabel?: boolean;
2159
+ paddingRightFactor: number;
2160
+ isPlaceholderVisible?: boolean;
2161
+ multiline?: boolean;
2162
+ resizable?: boolean;
2163
+ inputSize: TextInputSizes;
2164
+ } & (InputHTMLAttributes<HTMLInputElement> | TextareaHTMLAttributes<HTMLTextAreaElement>);
2165
+ type InputProps = Omit<Exclude<StyledInputProps, TextareaHTMLAttributes<HTMLTextAreaElement>>, 'inputSize'>;
2166
+ type TextInputProps = {
2167
+ 'data-testid'?: string;
2168
+ ariaControls?: string;
2169
+ autoComplete?: string;
2170
+ autoFocus?: boolean;
2171
+ className?: string;
2172
+ cols?: number;
2173
+ defaultValue?: string;
2174
+ disabled?: boolean;
2175
+ edit?: boolean;
2176
+ error?: string;
2177
+ fillAvailable?: boolean;
2178
+ generated?: boolean;
2179
+ height?: string | number;
2180
+ id?: string;
2181
+ label?: string;
2182
+ multiline?: boolean;
2183
+ name?: string;
2184
+ notice?: string;
2185
+ noTopLabel?: boolean;
2186
+ onBlur?: FocusEventHandler<HTMLInputElement | HTMLTextAreaElement>;
2187
+ onChange?: (value: string) => void;
2188
+ onFocus?: FocusEventHandler<HTMLInputElement | HTMLTextAreaElement>;
2189
+ onKeyUp?: KeyboardEventHandler<HTMLInputElement | HTMLTextAreaElement>;
2190
+ onKeyDown?: KeyboardEventHandler<HTMLInputElement | HTMLTextAreaElement>;
2191
+ placeholder?: string;
2192
+ random?: string;
2193
+ readOnly?: boolean;
2194
+ required?: boolean;
2195
+ resizable?: boolean;
2196
+ rows?: number;
2197
+ size?: TextInputSizes;
2198
+ tabIndex?: number;
2199
+ type?: string;
2200
+ unit?: string;
2201
+ valid?: boolean;
2202
+ value?: string | number;
2203
+ wrap?: string;
2204
+ inputProps?: InputProps;
2205
+ max?: InputHTMLAttributes<HTMLInputElement>['max'];
2206
+ min?: InputHTMLAttributes<HTMLInputElement>['min'];
2207
+ } & (Omit<InputHTMLAttributes<HTMLInputElement>, 'onChange'> | Omit<TextareaHTMLAttributes<HTMLTextAreaElement>, 'onChange'>);
2208
+ declare const TextInput: react.ForwardRefExoticComponent<TextInputProps & react.RefAttributes<HTMLInputElement | HTMLTextAreaElement | null>>;
2209
+
2210
+ declare const schedules: {
2211
+ half: readonly ["00:00", "00:30", "01:00", "01:30", "02:00", "02:30", "03:00", "03:30", "04:00", "04:30", "05:00", "05:30", "06:00", "06:30", "07:00", "07:30", "08:00", "08:30", "09:00", "09:30", "10:00", "10:30", "11:00", "11:30", "12:00", "12:30", "13:00", "13:30", "14:00", "14:30", "15:00", "15:30", "16:00", "16:30", "17:00", "17:30", "18:00", "18:30", "19:00", "19:30", "20:00", "20:30", "21:00", "21:30", "22:00", "22:30", "23:00", "23:30"];
2212
+ hours: readonly ["00:00", "01:00", "02:00", "03:00", "04:00", "05:00", "06:00", "07:00", "08:00", "09:00", "10:00", "11:00", "12:00", "13:00", "14:00", "15:00", "16:00", "17:00", "18:00", "19:00", "20:00", "21:00", "22:00", "23:00"];
2213
+ quarter: readonly ["00:00", "00:15", "00:30", "00:45", "01:00", "01:15", "01:30", "01:45", "02:00", "02:15", "02:30", "02:45", "03:00", "03:15", "03:30", "03:45", "04:00", "04:15", "04:30", "04:45", "05:00", "05:15", "05:30", "05:45", "06:00", "06:15", "06:30", "06:45", "07:00", "07:15", "07:30", "07:45", "08:00", "08:15", "08:30", "08:45", "09:00", "09:15", "09:30", "09:45", "10:00", "10:15", "10:30", "10:45", "11:00", "11:15", "11:30", "11:45", "12:00", "12:15", "12:30", "12:45", "13:00", "13:15", "13:30", "13:45", "14:00", "14:15", "14:30", "14:45", "15:00", "15:15", "15:30", "15:45", "16:00", "16:15", "16:30", "16:45", "17:00", "17:15", "17:30", "17:45", "18:00", "18:15", "18:30", "18:45", "19:00", "19:15", "19:30", "19:45", "20:00", "20:15", "20:30", "20:45", "21:00", "21:15", "21:30", "21:45", "22:00", "22:15", "22:30", "22:45", "23:00", "23:15", "23:30", "23:45"];
2214
+ };
2215
+ type ScheduleType = keyof typeof schedules;
2216
+ declare const options: (schedule: ScheduleType) => {
2217
+ label: "00:00" | "01:00" | "02:00" | "03:00" | "04:00" | "05:00" | "06:00" | "07:00" | "08:00" | "09:00" | "10:00" | "11:00" | "12:00" | "13:00" | "14:00" | "15:00" | "16:00" | "17:00" | "18:00" | "19:00" | "20:00" | "21:00" | "22:00" | "23:00" | "00:30" | "01:30" | "02:30" | "03:30" | "04:30" | "05:30" | "06:30" | "07:30" | "08:30" | "09:30" | "10:30" | "11:30" | "12:30" | "13:30" | "14:30" | "15:30" | "16:30" | "17:30" | "18:30" | "19:30" | "20:30" | "21:30" | "22:30" | "23:30" | "00:15" | "00:45" | "01:15" | "01:45" | "02:15" | "02:45" | "03:15" | "03:45" | "04:15" | "04:45" | "05:15" | "05:45" | "06:15" | "06:45" | "07:15" | "07:45" | "08:15" | "08:45" | "09:15" | "09:45" | "10:15" | "10:45" | "11:15" | "11:45" | "12:15" | "12:45" | "13:15" | "13:45" | "14:15" | "14:45" | "15:15" | "15:45" | "16:15" | "16:45" | "17:15" | "17:45" | "18:15" | "18:45" | "19:15" | "19:45" | "20:15" | "20:45" | "21:15" | "21:45" | "22:15" | "22:45" | "23:15" | "23:45";
2218
+ value: "00:00" | "01:00" | "02:00" | "03:00" | "04:00" | "05:00" | "06:00" | "07:00" | "08:00" | "09:00" | "10:00" | "11:00" | "12:00" | "13:00" | "14:00" | "15:00" | "16:00" | "17:00" | "18:00" | "19:00" | "20:00" | "21:00" | "22:00" | "23:00" | "00:30" | "01:30" | "02:30" | "03:30" | "04:30" | "05:30" | "06:30" | "07:30" | "08:30" | "09:30" | "10:30" | "11:30" | "12:30" | "13:30" | "14:30" | "15:30" | "16:30" | "17:30" | "18:30" | "19:30" | "20:30" | "21:30" | "22:30" | "23:30" | "00:15" | "00:45" | "01:15" | "01:45" | "02:15" | "02:45" | "03:15" | "03:45" | "04:15" | "04:45" | "05:15" | "05:45" | "06:15" | "06:45" | "07:15" | "07:45" | "08:15" | "08:45" | "09:15" | "09:45" | "10:15" | "10:45" | "11:15" | "11:45" | "12:15" | "12:45" | "13:15" | "13:45" | "14:15" | "14:45" | "15:15" | "15:45" | "16:15" | "16:45" | "17:15" | "17:45" | "18:15" | "18:45" | "19:15" | "19:45" | "20:15" | "20:45" | "21:15" | "21:45" | "22:15" | "22:45" | "23:15" | "23:45";
2219
+ }[];
2220
+ type TimeInputProps = Partial<ComponentProps<typeof SelectInput>> & {
2221
+ schedule?: ScheduleType;
2222
+ };
2223
+ type TimeInputType = ((props: TimeInputProps) => JSX.Element) & {
2224
+ options: typeof options;
2225
+ };
2226
+ /**
2227
+ * @experimental This component is experimental and may be subject to breaking changes in the future.
2228
+ */
2229
+ declare const TimeInput: TimeInputType;
2230
+
2231
+ declare const toast: {
2232
+ error: (children: ReactNode, options?: ToastOptions) => number | string;
2233
+ info: (children: ReactNode, options?: ToastOptions) => number | string;
2234
+ success: (children: ReactNode, options?: ToastOptions) => number | string;
2235
+ };
2236
+ type ToastContainerProps = {
2237
+ /**
2238
+ * Whether to display the newest toast on top.
2239
+ * `Default: false`
2240
+ */
2241
+ newestOnTop?: boolean;
2242
+ /**
2243
+ * Limit the number of toast displayed at the same time
2244
+ */
2245
+ limit?: number;
2246
+ /**
2247
+ * Position of the toast container
2248
+ */
2249
+ position?: ToastOptions['position'];
2250
+ 'data-testid'?: string;
2251
+ };
2252
+ declare const ToastContainer: ({ newestOnTop, limit, position, "data-testid": dataTestId, }: ToastContainerProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
2253
+
2254
+ type ToggleProps = {
2255
+ id?: string;
2256
+ checked?: boolean;
2257
+ name: string;
2258
+ tooltip?: string;
2259
+ /**
2260
+ * If `onChange` is given component will work as a controlled component if not it will work as an uncontrolled component.
2261
+ */
2262
+ onChange?: ChangeEventHandler<HTMLInputElement>;
2263
+ size?: 'large' | 'small';
2264
+ labelPosition?: 'left' | 'right';
2265
+ label?: ReactNode;
2266
+ disabled?: boolean;
2267
+ className?: string;
2268
+ required?: boolean;
2269
+ 'data-testid'?: string;
2270
+ };
2271
+ declare const Toggle: react.ForwardRefExoticComponent<ToggleProps & react.RefAttributes<HTMLInputElement>>;
2272
+
2273
+ type TooltipPlacement = 'top' | 'right' | 'bottom' | 'left' | 'auto';
2274
+
2275
+ type TooltipProps = {
2276
+ /**
2277
+ * Id is automatically generated if not set. It is used for associating tooltip wrapper with tooltip portal.
2278
+ */
2279
+ id?: string;
2280
+ children: ReactNode | ((renderProps: {
2281
+ className?: string;
2282
+ onBlur: () => void;
2283
+ onFocus: () => void;
2284
+ onPointerEnter: () => void;
2285
+ onPointerLeave: () => void;
2286
+ ref: RefObject<HTMLDivElement>;
2287
+ }) => ReactNode);
2288
+ maxWidth?: number;
2289
+ /**
2290
+ * `auto` placement will change the position of the tooltip if it doesn't fit in the viewport.
2291
+ */
2292
+ placement?: TooltipPlacement;
2293
+ /**
2294
+ * Content of the tooltip, preferably text inside.
2295
+ */
2296
+ text?: ReactNode;
2297
+ className?: string;
2298
+ /**
2299
+ * It will force display tooltip. This can be useful if you need to always display the tooltip without hover needed.
2300
+ */
2301
+ visible?: boolean;
2302
+ innerRef?: Ref<HTMLDivElement | null>;
2303
+ role?: string;
2304
+ 'data-testid'?: string;
2305
+ };
2306
+ declare const Tooltip: react.ForwardRefExoticComponent<TooltipProps & react.RefAttributes<HTMLDivElement>>;
2307
+
2308
+ type VerificationCodeProps = {
2309
+ disabled?: boolean;
2310
+ error?: boolean;
2311
+ className?: string;
2312
+ /**
2313
+ * Amount of field you want
2314
+ */
2315
+ fields?: number;
2316
+ initialValue?: string;
2317
+ inputId?: string;
2318
+ inputStyle?: string;
2319
+ /**
2320
+ * Triggered when a field change
2321
+ */
2322
+ onChange?: (data: unknown) => void;
2323
+ /**
2324
+ * Triggered when all fields are completed
2325
+ */
2326
+ onComplete?: (data: unknown) => void;
2327
+ placeholder?: string;
2328
+ required?: boolean;
2329
+ /**
2330
+ * Type of the fields
2331
+ */
2332
+ type?: 'text' | 'number';
2333
+ 'data-testid'?: string;
2334
+ 'aria-label'?: string;
2335
+ };
2336
+ declare const VerificationCode: ({ disabled, className, error, fields, initialValue, inputId, inputStyle, onChange, onComplete, placeholder, required, type, "data-testid": dataTestId, "aria-label": ariaLabel, }: VerificationCodeProps) => JSX.Element;
2337
+
2338
+ type RowProps = {
2339
+ className?: string;
2340
+ 'data-testid'?: string;
2341
+ children: ReactNode;
2342
+ templateColumns: string;
2343
+ gap?: keyof SCWUITheme['space'] | number;
2344
+ alignItems?: CSSProperties['alignItems'];
2345
+ justifyContent?: CSSProperties['justifyContent'];
2346
+ };
2347
+ declare const Row: ({ className, "data-testid": dataTestId, children, templateColumns, alignItems, justifyContent, gap, }: RowProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
2348
+
2349
+ type CardProps = {
2350
+ children: ReactNode;
2351
+ /**
2352
+ * Header can be a string but also a component if you need more complex header.
2353
+ */
2354
+ header?: ReactNode;
2355
+ /**
2356
+ * isActive enable a primary style on Card component for when you need to highlight it.
2357
+ */
2358
+ isActive?: boolean;
2359
+ disabled?: boolean;
2360
+ className?: string;
2361
+ 'data-testid'?: string;
2362
+ };
2363
+ declare const Card: react.ForwardRefExoticComponent<CardProps & react.RefAttributes<HTMLDivElement>>;
2364
+
2365
+ type SentimentType = 'neutral' | 'primary';
2366
+ declare const SIZES_WIDTH: {
2367
+ small: number;
2368
+ medium: number;
2369
+ large: number;
2370
+ };
2371
+ type PopoverProps = {
2372
+ children: ReactNode;
2373
+ content: ReactNode;
2374
+ title: string;
2375
+ sentiment?: SentimentType;
2376
+ visible?: boolean;
2377
+ size?: keyof typeof SIZES_WIDTH;
2378
+ onClose: () => void;
2379
+ className?: string;
2380
+ 'data-testid'?: string;
2381
+ } & Pick<ComponentProps<typeof Tooltip>, 'placement'>;
2382
+ declare const Popover: ({ visible, children, placement, content, title, sentiment, size, onClose, className, "data-testid": dataTestId, }: PopoverProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
2383
+
2384
+ declare const getUUID: (prefix?: string) => string;
2385
+
2386
+ declare const bounce: _emotion_react.Keyframes;
2387
+ declare const ping: _emotion_react.Keyframes;
2388
+ declare const flash: _emotion_react.Keyframes;
2389
+ declare const zoomIn: _emotion_react.Keyframes;
2390
+ declare const zoomOut: _emotion_react.Keyframes;
2391
+ declare const unfoldIn: _emotion_react.Keyframes;
2392
+ declare const unfoldOut: _emotion_react.Keyframes;
2393
+ declare const fadeIn: _emotion_react.Keyframes;
2394
+ declare const fadeOut: _emotion_react.Keyframes;
2395
+ declare const scaleUp: _emotion_react.Keyframes;
2396
+ declare const scaleDown: _emotion_react.Keyframes;
2397
+ declare const quickScaleDown: _emotion_react.Keyframes;
2398
+ declare const scaleBack: _emotion_react.Keyframes;
2399
+ declare const scaleForward: _emotion_react.Keyframes;
2400
+ declare const sketchIn: _emotion_react.Keyframes;
2401
+ declare const sketchOut: _emotion_react.Keyframes;
2402
+ declare const slideDownLarge: _emotion_react.Keyframes;
2403
+ declare const slideUpLarge: _emotion_react.Keyframes;
2404
+ declare const slideFromBottom: _emotion_react.Keyframes;
2405
+ declare const slideFromTop: _emotion_react.Keyframes;
2406
+ declare const slideFromRight: _emotion_react.Keyframes;
2407
+ declare const slideFromLeft: _emotion_react.Keyframes;
2408
+ declare const slideToBottom: _emotion_react.Keyframes;
2409
+ declare const slideToTop: _emotion_react.Keyframes;
2410
+ declare const slideToRight: _emotion_react.Keyframes;
2411
+ declare const slideToLeft: _emotion_react.Keyframes;
2412
+ declare const pulse: _emotion_react.Keyframes;
2413
+
2414
+ declare const Breakpoint: _emotion_styled.StyledComponent<{
2415
+ theme?: _emotion_react.Theme | undefined;
2416
+ as?: react.ElementType<any> | undefined;
2417
+ } & {
2418
+ down?: "large" | "small" | "xlarge" | "xsmall" | "medium" | undefined;
2419
+ up?: "large" | "small" | "xlarge" | "xsmall" | "medium" | undefined;
2420
+ }, react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
2421
+
2422
+ declare const up: (size: ScreenSize, rules: string) => string;
2423
+ declare const down: (size: ScreenSize, rules: string) => string;
2424
+
2425
+ declare const normalize: () => string;
2426
+
2427
+ export { ActionBar, Alert, Avatar, Badge, Banner, BarChart, BarStack, Breadcrumbs, Breakpoint, Bullet, Button, Card, Carousel, Checkbox, CopyButton, DateInput, EmptyState, Expandable, Icon, LineChart, Link, List, Loader, Menu, Modal, Notice, NumberInput, Pagination, PasswordCheck, PasswordStrengthMeter, PieChart, Popover, ProgressBar, Radio, Row, SCWUITheme, SelectInput, SelectableCard, Separator, Skeleton, Snippet, Stack, Status, StepList, Stepper, SwitchButton, Table, Tabs, Tag, TagInput, TagList, Text, TextInput, TimeInput, ToastContainer, Toggle, Tooltip, VerificationCode, bounce, down, extendTheme, fadeIn, fadeOut, flash, getUUID, normalize, ping, pulse, quickScaleDown, scaleBack, scaleDown, scaleForward, scaleUp, sketchIn, sketchOut, slideDownLarge, slideFromBottom, slideFromLeft, slideFromRight, slideFromTop, slideToBottom, slideToLeft, slideToRight, slideToTop, slideUpLarge, toast, unfoldIn, unfoldOut, up, zoomIn, zoomOut };