carbon-react 106.0.3 → 106.1.2

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 (43) hide show
  1. package/esm/__internal__/input/input-presentation.component.d.ts +2 -2
  2. package/esm/__internal__/validations/index.d.ts +1 -1
  3. package/esm/__internal__/validations/validation-icon.component.d.ts +50 -40
  4. package/esm/__internal__/validations/validation-icon.component.js +12 -64
  5. package/esm/__internal__/validations/validation-icon.style.d.ts +5 -1
  6. package/esm/__internal__/validations/validation-icon.style.js +0 -1
  7. package/esm/components/duelling-picklist/picklist-item/picklist-item.component.js +7 -3
  8. package/esm/components/icon/icon.d.ts +4 -0
  9. package/esm/components/modal/modal.component.js +7 -1
  10. package/esm/components/pages/page/page.component.js +7 -3
  11. package/esm/components/popover-container/popover-container.component.js +5 -2
  12. package/esm/components/portal/portal.js +12 -8
  13. package/esm/components/select/simple-select/simple-select.component.js +1 -1
  14. package/esm/components/show-edit-pod/show-edit-pod.component.js +10 -4
  15. package/esm/components/textarea/textarea-test.stories.js +21 -1
  16. package/esm/components/toast/toast.component.js +6 -2
  17. package/esm/style/fonts.css +22 -16
  18. package/esm/style/themes/base/base-theme.config.d.ts +78 -10
  19. package/esm/style/themes/sage/index.d.ts +78 -10
  20. package/lib/__internal__/input/input-presentation.component.d.ts +2 -2
  21. package/lib/__internal__/validations/index.d.ts +1 -1
  22. package/lib/__internal__/validations/validation-icon.component.d.ts +50 -40
  23. package/lib/__internal__/validations/validation-icon.component.js +13 -65
  24. package/lib/__internal__/validations/validation-icon.style.d.ts +5 -1
  25. package/lib/__internal__/validations/validation-icon.style.js +0 -1
  26. package/lib/components/duelling-picklist/picklist-item/picklist-item.component.js +6 -2
  27. package/lib/components/icon/icon.d.ts +4 -0
  28. package/lib/components/modal/modal.component.js +7 -1
  29. package/lib/components/pages/page/page.component.js +11 -3
  30. package/lib/components/popover-container/popover-container.component.js +5 -2
  31. package/lib/components/portal/portal.js +15 -8
  32. package/lib/components/select/simple-select/simple-select.component.js +1 -1
  33. package/lib/components/show-edit-pod/show-edit-pod.component.js +10 -4
  34. package/lib/components/textarea/textarea-test.stories.js +21 -1
  35. package/lib/components/toast/toast.component.js +6 -2
  36. package/lib/style/fonts.css +22 -16
  37. package/lib/style/themes/base/base-theme.config.d.ts +78 -10
  38. package/lib/style/themes/sage/index.d.ts +78 -10
  39. package/package.json +2 -2
  40. package/esm/__internal__/validations/validation-icon.d.ts +0 -38
  41. package/esm/__internal__/validations/validations.d.ts +0 -17
  42. package/lib/__internal__/validations/validation-icon.d.ts +0 -38
  43. package/lib/__internal__/validations/validations.d.ts +0 -17
@@ -56,6 +56,9 @@ declare function _default(palette: any): {
56
56
  colorsYang100: string;
57
57
  colorsYang030: string;
58
58
  colorsYang080: string;
59
+ colorsGray600: string;
60
+ colorsGray700: string;
61
+ colorsGray750: string;
59
62
  colorsGray850: string;
60
63
  colorsGray900: string;
61
64
  colorsGray1000: string;
@@ -75,19 +78,31 @@ declare function _default(palette: any): {
75
78
  colorsComponentsMenuSpringChild400: string;
76
79
  colorsComponentsMenuSpringChild500: string;
77
80
  colorsComponentsMenuSpringChild600: string;
81
+ colorsComponentsMenuSpringChildAlt400: string;
78
82
  colorsComponentsMenuSpringChildAlt500: string;
79
83
  colorsComponentsMenuSpringChildAlt600: string;
84
+ colorsComponentsMenuSummerStandard400: string;
80
85
  colorsComponentsMenuSummerStandard500: string;
81
86
  colorsComponentsMenuSummerStandard600: string;
82
87
  colorsComponentsMenuSummerStandard700: string;
88
+ colorsComponentsMenuSummerStandard800: string;
89
+ colorsComponentsMenuSummerParent400: string;
83
90
  colorsComponentsMenuSummerParent500: string;
84
91
  colorsComponentsMenuSummerParent600: string;
85
92
  colorsComponentsMenuSummerParent700: string;
93
+ colorsComponentsMenuSummerParent800: string;
94
+ colorsComponentsMenuSummerChild300: string;
86
95
  colorsComponentsMenuSummerChild400: string;
87
96
  colorsComponentsMenuSummerChild500: string;
88
97
  colorsComponentsMenuSummerChild600: string;
98
+ colorsComponentsMenuSummerChild700: string;
99
+ colorsComponentsMenuSummerChild800: string;
100
+ colorsComponentsMenuSummerChildAlt300: string;
101
+ colorsComponentsMenuSummerChildAlt400: string;
89
102
  colorsComponentsMenuSummerChildAlt500: string;
90
103
  colorsComponentsMenuSummerChildAlt600: string;
104
+ colorsComponentsMenuSummerChildAlt700: string;
105
+ colorsComponentsMenuSummerChildAlt800: string;
91
106
  colorsComponentsMenuAutumnStandard500: string;
92
107
  colorsComponentsMenuAutumnStandard600: string;
93
108
  colorsComponentsMenuAutumnStandard700: string;
@@ -97,24 +112,37 @@ declare function _default(palette: any): {
97
112
  colorsComponentsMenuAutumnChild400: string;
98
113
  colorsComponentsMenuAutumnChild500: string;
99
114
  colorsComponentsMenuAutumnChild600: string;
115
+ colorsComponentsMenuAutumnChildAlt400: string;
100
116
  colorsComponentsMenuAutumnChildAlt500: string;
101
117
  colorsComponentsMenuAutumnChildAlt600: string;
118
+ colorsComponentsMenuWinterStandard400: string;
102
119
  colorsComponentsMenuWinterStandard500: string;
103
120
  colorsComponentsMenuWinterStandard600: string;
104
121
  colorsComponentsMenuWinterStandard700: string;
122
+ colorsComponentsMenuWinterStandard800: string;
123
+ colorsComponentsMenuWinterParent400: string;
105
124
  colorsComponentsMenuWinterParent500: string;
106
125
  colorsComponentsMenuWinterParent600: string;
107
126
  colorsComponentsMenuWinterParent700: string;
127
+ colorsComponentsMenuWinterParent800: string;
128
+ colorsComponentsMenuWinterChild300: string;
108
129
  colorsComponentsMenuWinterChild400: string;
109
130
  colorsComponentsMenuWinterChild500: string;
110
131
  colorsComponentsMenuWinterChild600: string;
132
+ colorsComponentsMenuWinterChild700: string;
133
+ colorsComponentsMenuWinterChild800: string;
134
+ colorsComponentsMenuWinterChildAlt300: string;
135
+ colorsComponentsMenuWinterChildAlt400: string;
111
136
  colorsComponentsMenuWinterChildAlt500: string;
112
137
  colorsComponentsMenuWinterChildAlt600: string;
138
+ colorsComponentsMenuWinterChildAlt700: string;
139
+ colorsComponentsMenuWinterChildAlt800: string;
113
140
  colorsComponentsMenuYin100: string;
114
141
  colorsComponentsMenuYin065: string;
115
142
  colorsComponentsMenuYin090: string;
116
143
  colorsComponentsMenuYang100: string;
117
144
  colorsComponentsMenuYang080: string;
145
+ colorsComponentsMenuTransparent: string;
118
146
  colorsUtilityMajor100: string;
119
147
  colorsUtilityMajor150: string;
120
148
  colorsUtilityMajor200: string;
@@ -229,6 +257,7 @@ declare function _default(palette: any): {
229
257
  sizing400: string;
230
258
  sizing450: string;
231
259
  sizing500: string;
260
+ sizing525: string;
232
261
  sizing600: string;
233
262
  sizing700: string;
234
263
  sizing800: string;
@@ -236,12 +265,13 @@ declare function _default(palette: any): {
236
265
  sizing1000: string;
237
266
  sizing1300: string;
238
267
  sizing1600: string;
268
+ sizing010: string;
239
269
  sizing025: string;
240
270
  sizing050: string;
241
271
  sizing075: string;
242
272
  sizingLogowidth: string;
243
- sizing010: string;
244
273
  spacing100: string;
274
+ spacing110: string;
245
275
  spacing125: string;
246
276
  spacing150: string;
247
277
  spacing200: string;
@@ -255,8 +285,10 @@ declare function _default(palette: any): {
255
285
  spacing900: string;
256
286
  spacing1000: string;
257
287
  spacing000: string;
288
+ spacing010: string;
258
289
  spacing025: string;
259
290
  spacing050: string;
291
+ spacing060: string;
260
292
  spacing075: string;
261
293
  borderWidth100: string;
262
294
  borderWidth200: string;
@@ -281,8 +313,11 @@ declare function _default(palette: any): {
281
313
  boxShadow200: string;
282
314
  boxShadow300: string;
283
315
  boxShadow400: string;
284
- boxShadow075: string;
316
+ boxShadow010: string;
285
317
  boxShadow050: string;
318
+ boxShadow075: string;
319
+ boxShadow090: string;
320
+ boxShadow091: string;
286
321
  fontWeights400: string;
287
322
  fontWeights500: string;
288
323
  fontWeights700: string;
@@ -303,14 +338,29 @@ declare function _default(palette: any): {
303
338
  typographyButtonLabelS: string;
304
339
  typographyButtonLabelM: string;
305
340
  typographyButtonLabelL: string;
341
+ typographyCardParagraphM: string;
306
342
  typographyCardSelectTitleM: string;
307
343
  typographyCardSelectSubtitleM: string;
308
344
  typographyCardSelectParagraphM: string;
309
345
  typographyDatePickerCalendarDateM: string;
310
346
  typographyDatePickerCalendarDayM: string;
311
347
  typographyDatePickerCalendarMonthM: string;
348
+ typographyDialogTitleXs: string;
349
+ typographyDialogTitleS: string;
350
+ typographyDialogTitleMs: string;
312
351
  typographyDialogTitleM: string;
352
+ typographyDialogTitleMl: string;
353
+ typographyDialogTitleL: string;
354
+ typographyDialogTitleXl: string;
355
+ typographyDialogTitleXxl: string;
356
+ typographyDialogParagraphXs: string;
357
+ typographyDialogParagraphS: string;
358
+ typographyDialogParagraphMs: string;
313
359
  typographyDialogParagraphM: string;
360
+ typographyDialogParagraphMl: string;
361
+ typographyDialogParagraphL: string;
362
+ typographyDialogParagraphXl: string;
363
+ typographyDialogParagraphXxl: string;
314
364
  typographyDrawerTitleM: string;
315
365
  typographyDrawerParagraphM: string;
316
366
  typographyFlashTextM: string;
@@ -351,24 +401,31 @@ declare function _default(palette: any): {
351
401
  typographyLinkTextM: string;
352
402
  typographyLinkTextL: string;
353
403
  typographyMenuLabelM: string;
404
+ typographyMenuLabelL: string;
354
405
  typographyMenuSegmentTitleM: string;
355
406
  typographyMessageHeadingM: string;
356
407
  typographyMessageHeadingL: string;
357
408
  typographyMessageTextM: string;
358
409
  typographyMessageTextL: string;
359
410
  typographyPaginationLabelM: string;
360
- typographyTileParagraphM: string;
361
411
  typographyPillLabelS: string;
362
412
  typographyPillLabelM: string;
363
413
  typographyPillLabelL: string;
364
414
  typographyPillLabelXl: string;
365
- typographyProfileEmailXs: string;
366
- typographyProfileEmailS: string;
367
- typographyProfileEmailM: string;
368
- typographyProfileEmailMl: string;
369
- typographyProfileEmailL: string;
370
- typographyProfileEmailXl: string;
371
- typographyProfileEmailXxl: string;
415
+ typographyProfileEmailTextXs: string;
416
+ typographyProfileEmailTextS: string;
417
+ typographyProfileEmailTextM: string;
418
+ typographyProfileEmailTextMl: string;
419
+ typographyProfileEmailTextL: string;
420
+ typographyProfileEmailTextXl: string;
421
+ typographyProfileEmailTextXxl: string;
422
+ typographyProfileEmailLinkXs: string;
423
+ typographyProfileEmailLinkS: string;
424
+ typographyProfileEmailLinkM: string;
425
+ typographyProfileEmailLinkMl: string;
426
+ typographyProfileEmailLinkL: string;
427
+ typographyProfileEmailLinkXl: string;
428
+ typographyProfileEmailLinkXxl: string;
372
429
  typographyProfileInitialsXs: string;
373
430
  typographyProfileInitialsS: string;
374
431
  typographyProfileInitialsM: string;
@@ -387,10 +444,20 @@ declare function _default(palette: any): {
387
444
  typographyProgressTrackerValueLabelM: string;
388
445
  typographyProgressTrackerValueLabelL: string;
389
446
  typographySearchLabelM: string;
447
+ typographySidebarTitleXs: string;
390
448
  typographySidebarTitleS: string;
449
+ typographySidebarTitleMs: string;
391
450
  typographySidebarTitleM: string;
451
+ typographySidebarTitleMl: string;
392
452
  typographySidebarTitleL: string;
453
+ typographySidebarTitleXl: string;
454
+ typographySidebarParagraphXs: string;
455
+ typographySidebarParagraphS: string;
456
+ typographySidebarParagraphMs: string;
393
457
  typographySidebarParagraphM: string;
458
+ typographySidebarParagraphMl: string;
459
+ typographySidebarParagraphL: string;
460
+ typographySidebarParagraphXl: string;
394
461
  typographyStepFlowCompleteLabelM: string;
395
462
  typographyStepFlowCurrentLabelM: string;
396
463
  typographyStepFlowIncompleteLabelM: string;
@@ -406,6 +473,7 @@ declare function _default(palette: any): {
406
473
  typographyTableCellTextM: string;
407
474
  typographyTableCellTextL: string;
408
475
  typographyTableCellTextXl: string;
476
+ typographyTileParagraphM: string;
409
477
  typographyTooltipTextM: string;
410
478
  typographyTooltipTextL: string;
411
479
  opacity300: string;
@@ -12,6 +12,9 @@ declare var _default: {
12
12
  colorsYang100: string;
13
13
  colorsYang030: string;
14
14
  colorsYang080: string;
15
+ colorsGray600: string;
16
+ colorsGray700: string;
17
+ colorsGray750: string;
15
18
  colorsGray850: string;
16
19
  colorsGray900: string;
17
20
  colorsGray1000: string;
@@ -31,19 +34,31 @@ declare var _default: {
31
34
  colorsComponentsMenuSpringChild400: string;
32
35
  colorsComponentsMenuSpringChild500: string;
33
36
  colorsComponentsMenuSpringChild600: string;
37
+ colorsComponentsMenuSpringChildAlt400: string;
34
38
  colorsComponentsMenuSpringChildAlt500: string;
35
39
  colorsComponentsMenuSpringChildAlt600: string;
40
+ colorsComponentsMenuSummerStandard400: string;
36
41
  colorsComponentsMenuSummerStandard500: string;
37
42
  colorsComponentsMenuSummerStandard600: string;
38
43
  colorsComponentsMenuSummerStandard700: string;
44
+ colorsComponentsMenuSummerStandard800: string;
45
+ colorsComponentsMenuSummerParent400: string;
39
46
  colorsComponentsMenuSummerParent500: string;
40
47
  colorsComponentsMenuSummerParent600: string;
41
48
  colorsComponentsMenuSummerParent700: string;
49
+ colorsComponentsMenuSummerParent800: string;
50
+ colorsComponentsMenuSummerChild300: string;
42
51
  colorsComponentsMenuSummerChild400: string;
43
52
  colorsComponentsMenuSummerChild500: string;
44
53
  colorsComponentsMenuSummerChild600: string;
54
+ colorsComponentsMenuSummerChild700: string;
55
+ colorsComponentsMenuSummerChild800: string;
56
+ colorsComponentsMenuSummerChildAlt300: string;
57
+ colorsComponentsMenuSummerChildAlt400: string;
45
58
  colorsComponentsMenuSummerChildAlt500: string;
46
59
  colorsComponentsMenuSummerChildAlt600: string;
60
+ colorsComponentsMenuSummerChildAlt700: string;
61
+ colorsComponentsMenuSummerChildAlt800: string;
47
62
  colorsComponentsMenuAutumnStandard500: string;
48
63
  colorsComponentsMenuAutumnStandard600: string;
49
64
  colorsComponentsMenuAutumnStandard700: string;
@@ -53,24 +68,37 @@ declare var _default: {
53
68
  colorsComponentsMenuAutumnChild400: string;
54
69
  colorsComponentsMenuAutumnChild500: string;
55
70
  colorsComponentsMenuAutumnChild600: string;
71
+ colorsComponentsMenuAutumnChildAlt400: string;
56
72
  colorsComponentsMenuAutumnChildAlt500: string;
57
73
  colorsComponentsMenuAutumnChildAlt600: string;
74
+ colorsComponentsMenuWinterStandard400: string;
58
75
  colorsComponentsMenuWinterStandard500: string;
59
76
  colorsComponentsMenuWinterStandard600: string;
60
77
  colorsComponentsMenuWinterStandard700: string;
78
+ colorsComponentsMenuWinterStandard800: string;
79
+ colorsComponentsMenuWinterParent400: string;
61
80
  colorsComponentsMenuWinterParent500: string;
62
81
  colorsComponentsMenuWinterParent600: string;
63
82
  colorsComponentsMenuWinterParent700: string;
83
+ colorsComponentsMenuWinterParent800: string;
84
+ colorsComponentsMenuWinterChild300: string;
64
85
  colorsComponentsMenuWinterChild400: string;
65
86
  colorsComponentsMenuWinterChild500: string;
66
87
  colorsComponentsMenuWinterChild600: string;
88
+ colorsComponentsMenuWinterChild700: string;
89
+ colorsComponentsMenuWinterChild800: string;
90
+ colorsComponentsMenuWinterChildAlt300: string;
91
+ colorsComponentsMenuWinterChildAlt400: string;
67
92
  colorsComponentsMenuWinterChildAlt500: string;
68
93
  colorsComponentsMenuWinterChildAlt600: string;
94
+ colorsComponentsMenuWinterChildAlt700: string;
95
+ colorsComponentsMenuWinterChildAlt800: string;
69
96
  colorsComponentsMenuYin100: string;
70
97
  colorsComponentsMenuYin065: string;
71
98
  colorsComponentsMenuYin090: string;
72
99
  colorsComponentsMenuYang100: string;
73
100
  colorsComponentsMenuYang080: string;
101
+ colorsComponentsMenuTransparent: string;
74
102
  colorsUtilityMajor100: string;
75
103
  colorsUtilityMajor150: string;
76
104
  colorsUtilityMajor200: string;
@@ -194,6 +222,7 @@ declare var _default: {
194
222
  sizing400: string;
195
223
  sizing450: string;
196
224
  sizing500: string;
225
+ sizing525: string;
197
226
  sizing600: string;
198
227
  sizing700: string;
199
228
  sizing800: string;
@@ -201,12 +230,13 @@ declare var _default: {
201
230
  sizing1000: string;
202
231
  sizing1300: string;
203
232
  sizing1600: string;
233
+ sizing010: string;
204
234
  sizing025: string;
205
235
  sizing050: string;
206
236
  sizing075: string;
207
237
  sizingLogowidth: string;
208
- sizing010: string;
209
238
  spacing100: string;
239
+ spacing110: string;
210
240
  spacing125: string;
211
241
  spacing150: string;
212
242
  spacing200: string;
@@ -220,8 +250,10 @@ declare var _default: {
220
250
  spacing900: string;
221
251
  spacing1000: string;
222
252
  spacing000: string;
253
+ spacing010: string;
223
254
  spacing025: string;
224
255
  spacing050: string;
256
+ spacing060: string;
225
257
  spacing075: string;
226
258
  borderWidth100: string;
227
259
  borderWidth200: string;
@@ -246,8 +278,11 @@ declare var _default: {
246
278
  boxShadow200: string;
247
279
  boxShadow300: string;
248
280
  boxShadow400: string;
249
- boxShadow075: string;
281
+ boxShadow010: string;
250
282
  boxShadow050: string;
283
+ boxShadow075: string;
284
+ boxShadow090: string;
285
+ boxShadow091: string;
251
286
  fontWeights400: string;
252
287
  fontWeights500: string;
253
288
  fontWeights700: string;
@@ -268,14 +303,29 @@ declare var _default: {
268
303
  typographyButtonLabelS: string;
269
304
  typographyButtonLabelM: string;
270
305
  typographyButtonLabelL: string;
306
+ typographyCardParagraphM: string;
271
307
  typographyCardSelectTitleM: string;
272
308
  typographyCardSelectSubtitleM: string;
273
309
  typographyCardSelectParagraphM: string;
274
310
  typographyDatePickerCalendarDateM: string;
275
311
  typographyDatePickerCalendarDayM: string;
276
312
  typographyDatePickerCalendarMonthM: string;
313
+ typographyDialogTitleXs: string;
314
+ typographyDialogTitleS: string;
315
+ typographyDialogTitleMs: string;
277
316
  typographyDialogTitleM: string;
317
+ typographyDialogTitleMl: string;
318
+ typographyDialogTitleL: string;
319
+ typographyDialogTitleXl: string;
320
+ typographyDialogTitleXxl: string;
321
+ typographyDialogParagraphXs: string;
322
+ typographyDialogParagraphS: string;
323
+ typographyDialogParagraphMs: string;
278
324
  typographyDialogParagraphM: string;
325
+ typographyDialogParagraphMl: string;
326
+ typographyDialogParagraphL: string;
327
+ typographyDialogParagraphXl: string;
328
+ typographyDialogParagraphXxl: string;
279
329
  typographyDrawerTitleM: string;
280
330
  typographyDrawerParagraphM: string;
281
331
  typographyFlashTextM: string;
@@ -316,24 +366,31 @@ declare var _default: {
316
366
  typographyLinkTextM: string;
317
367
  typographyLinkTextL: string;
318
368
  typographyMenuLabelM: string;
369
+ typographyMenuLabelL: string;
319
370
  typographyMenuSegmentTitleM: string;
320
371
  typographyMessageHeadingM: string;
321
372
  typographyMessageHeadingL: string;
322
373
  typographyMessageTextM: string;
323
374
  typographyMessageTextL: string;
324
375
  typographyPaginationLabelM: string;
325
- typographyTileParagraphM: string;
326
376
  typographyPillLabelS: string;
327
377
  typographyPillLabelM: string;
328
378
  typographyPillLabelL: string;
329
379
  typographyPillLabelXl: string;
330
- typographyProfileEmailXs: string;
331
- typographyProfileEmailS: string;
332
- typographyProfileEmailM: string;
333
- typographyProfileEmailMl: string;
334
- typographyProfileEmailL: string;
335
- typographyProfileEmailXl: string;
336
- typographyProfileEmailXxl: string;
380
+ typographyProfileEmailTextXs: string;
381
+ typographyProfileEmailTextS: string;
382
+ typographyProfileEmailTextM: string;
383
+ typographyProfileEmailTextMl: string;
384
+ typographyProfileEmailTextL: string;
385
+ typographyProfileEmailTextXl: string;
386
+ typographyProfileEmailTextXxl: string;
387
+ typographyProfileEmailLinkXs: string;
388
+ typographyProfileEmailLinkS: string;
389
+ typographyProfileEmailLinkM: string;
390
+ typographyProfileEmailLinkMl: string;
391
+ typographyProfileEmailLinkL: string;
392
+ typographyProfileEmailLinkXl: string;
393
+ typographyProfileEmailLinkXxl: string;
337
394
  typographyProfileInitialsXs: string;
338
395
  typographyProfileInitialsS: string;
339
396
  typographyProfileInitialsM: string;
@@ -352,10 +409,20 @@ declare var _default: {
352
409
  typographyProgressTrackerValueLabelM: string;
353
410
  typographyProgressTrackerValueLabelL: string;
354
411
  typographySearchLabelM: string;
412
+ typographySidebarTitleXs: string;
355
413
  typographySidebarTitleS: string;
414
+ typographySidebarTitleMs: string;
356
415
  typographySidebarTitleM: string;
416
+ typographySidebarTitleMl: string;
357
417
  typographySidebarTitleL: string;
418
+ typographySidebarTitleXl: string;
419
+ typographySidebarParagraphXs: string;
420
+ typographySidebarParagraphS: string;
421
+ typographySidebarParagraphMs: string;
358
422
  typographySidebarParagraphM: string;
423
+ typographySidebarParagraphMl: string;
424
+ typographySidebarParagraphL: string;
425
+ typographySidebarParagraphXl: string;
359
426
  typographyStepFlowCompleteLabelM: string;
360
427
  typographyStepFlowCurrentLabelM: string;
361
428
  typographyStepFlowIncompleteLabelM: string;
@@ -371,6 +438,7 @@ declare var _default: {
371
438
  typographyTableCellTextM: string;
372
439
  typographyTableCellTextL: string;
373
440
  typographyTableCellTextXl: string;
441
+ typographyTileParagraphM: string;
374
442
  typographyTooltipTextM: string;
375
443
  typographyTooltipTextL: string;
376
444
  opacity300: string;
@@ -1,7 +1,7 @@
1
1
  import React from "react";
2
- import { ValidationPropTypes } from "../validations";
2
+ import { ValidationProps } from "../validations";
3
3
  export declare type Sizes = "small" | "medium" | "large";
4
- export interface CommonInputPresentationProps extends ValidationPropTypes {
4
+ export interface CommonInputPresentationProps extends ValidationProps {
5
5
  children: React.ReactNode;
6
6
  /** If true, the component will be disabled */
7
7
  disabled?: boolean;
@@ -1,2 +1,2 @@
1
1
  export { default } from "./validation-icon.component";
2
- export { ValidationPropTypes } from "./validations";
2
+ export type { ValidationProps, ValidationIconProps, } from "./validation-icon.component";
@@ -1,41 +1,51 @@
1
- export default ValidationIcon;
2
- declare function ValidationIcon({ error, warning, info, size, onFocus, onBlur, iconId, tooltipId, isPartOfInput, tabIndex, onClick, tooltipPosition, tooltipFlipOverrides, ...rest }: {
3
- [x: string]: any;
4
- error: any;
5
- warning: any;
6
- info: any;
7
- size: any;
8
- onFocus: any;
9
- onBlur: any;
10
- iconId: any;
11
- tooltipId: any;
12
- isPartOfInput: any;
13
- tabIndex: any;
14
- onClick: any;
15
- tooltipPosition: any;
16
- tooltipFlipOverrides: any;
17
- }): JSX.Element | null;
18
- declare namespace ValidationIcon {
19
- namespace propTypes {
20
- const size: PropTypes.Requireable<string>;
21
- const iconId: PropTypes.Requireable<string>;
22
- const tooltipPosition: PropTypes.Requireable<string>;
23
- function tooltipFlipOverrides(props: any, propName: any, componentName: any): Error | null;
24
- const tooltipId: PropTypes.Requireable<string>;
25
- const onClick: PropTypes.Requireable<(...args: any[]) => any>;
26
- const onFocus: PropTypes.Requireable<(...args: any[]) => any>;
27
- const onBlur: PropTypes.Requireable<(...args: any[]) => any>;
28
- const isPartOfInput: PropTypes.Requireable<boolean>;
29
- const tabIndex: PropTypes.Requireable<number>;
30
- const error: PropTypes.Requireable<string | boolean>;
31
- const warning: PropTypes.Requireable<string | boolean>;
32
- const info: PropTypes.Requireable<string | boolean>;
33
- }
34
- namespace defaultProps {
35
- const tooltipPosition_1: string;
36
- export { tooltipPosition_1 as tooltipPosition };
37
- const tabIndex_1: number;
38
- export { tabIndex_1 as tabIndex };
39
- }
1
+ import React from "react";
2
+ export interface ValidationProps {
3
+ /** Indicate that error has occurred
4
+ * Pass string to display icon, tooltip and red border
5
+ * Pass true boolean to only display red border
6
+ */
7
+ error?: boolean | string;
8
+ /** Indicate additional information
9
+ * Pass string to display icon, tooltip and blue border
10
+ * Pass true boolean to only display blue border
11
+ */
12
+ info?: boolean | string;
13
+ /** Indicate that warning has occurred
14
+ * Pass string to display icon, tooltip and orange border
15
+ * Pass true boolean to only display orange border
16
+ */
17
+ warning?: boolean | string;
18
+ }
19
+ declare type TooltipPositions = "top" | "bottom" | "left" | "right";
20
+ export interface ValidationIconProps extends ValidationProps {
21
+ /** A small string to indicate the size of the icon */
22
+ size?: "small" | "medium" | "large";
23
+ /** The unique id of the component (used with aria-describedby for accessibility) */
24
+ iconId?: string;
25
+ /** Define position of the tooltip */
26
+ tooltipPosition?: TooltipPositions;
27
+ /**
28
+ * Overrides the default flip behaviour of the Tooltip,
29
+ * must be an array containing some or all of ["top", "bottom", "left", "right"]
30
+ * (see https://popper.js.org/docs/v2/modifiers/flip/#fallbackplacements)
31
+ */
32
+ tooltipFlipOverrides?: TooltipPositions[];
33
+ /** Id passed to the tooltip container, used for accessibility purposes */
34
+ tooltipId?: string;
35
+ /** An onClick handler */
36
+ onClick?: (ev: React.MouseEvent<HTMLElement>) => void;
37
+ /** An onBlur handler */
38
+ onBlur?: (ev: React.FocusEvent<HTMLElement>) => void;
39
+ /** An onFocus handler */
40
+ onFocus?: (ev: React.FocusEvent<HTMLElement>) => void;
41
+ /** A boolean to indicate if the icon is part of an input */
42
+ isPartOfInput?: boolean;
43
+ /** Overrides the default tabindex of the component */
44
+ tabIndex?: number;
45
+ /** Margin right, given number will be multiplied by base spacing unit (8) */
46
+ mr?: number;
47
+ /** Margin left, given number will be multiplied by base spacing unit (8) */
48
+ ml?: number;
40
49
  }
41
- import PropTypes from "prop-types";
50
+ export declare const ValidationIcon: ({ error, warning, info, size, onFocus, onBlur, iconId, tooltipId, isPartOfInput, tabIndex, onClick, tooltipPosition, tooltipFlipOverrides, ...rest }: ValidationIconProps) => JSX.Element | null;
51
+ export default ValidationIcon;