carbon-react 106.1.1 → 106.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm/__internal__/input/input-presentation.component.d.ts +2 -2
- package/esm/__internal__/validations/index.d.ts +1 -1
- package/esm/__internal__/validations/validation-icon.component.d.ts +50 -40
- package/esm/__internal__/validations/validation-icon.component.js +12 -64
- package/esm/__internal__/validations/validation-icon.style.d.ts +5 -1
- package/esm/__internal__/validations/validation-icon.style.js +0 -1
- package/esm/components/accordion/accordion.component.js +1 -1
- package/esm/components/duelling-picklist/picklist-item/picklist-item.component.js +7 -3
- package/esm/components/icon/icon.d.ts +4 -0
- package/esm/components/link/link.style.js +4 -0
- package/esm/components/modal/modal.component.js +7 -1
- package/esm/components/pages/page/page.component.js +7 -3
- package/esm/components/popover-container/popover-container.component.js +5 -2
- package/esm/components/portal/portal.js +12 -8
- package/esm/components/show-edit-pod/show-edit-pod.component.js +10 -4
- package/esm/components/toast/toast.component.js +6 -2
- package/esm/style/themes/base/base-theme.config.d.ts +78 -10
- package/esm/style/themes/sage/index.d.ts +78 -10
- package/lib/__internal__/input/input-presentation.component.d.ts +2 -2
- package/lib/__internal__/validations/index.d.ts +1 -1
- package/lib/__internal__/validations/validation-icon.component.d.ts +50 -40
- package/lib/__internal__/validations/validation-icon.component.js +13 -65
- package/lib/__internal__/validations/validation-icon.style.d.ts +5 -1
- package/lib/__internal__/validations/validation-icon.style.js +0 -1
- package/lib/components/accordion/accordion.component.js +1 -1
- package/lib/components/duelling-picklist/picklist-item/picklist-item.component.js +6 -2
- package/lib/components/icon/icon.d.ts +4 -0
- package/lib/components/link/link.style.js +4 -0
- package/lib/components/modal/modal.component.js +7 -1
- package/lib/components/pages/page/page.component.js +11 -3
- package/lib/components/popover-container/popover-container.component.js +5 -2
- package/lib/components/portal/portal.js +15 -8
- package/lib/components/show-edit-pod/show-edit-pod.component.js +10 -4
- package/lib/components/toast/toast.component.js +6 -2
- package/lib/style/themes/base/base-theme.config.d.ts +78 -10
- package/lib/style/themes/sage/index.d.ts +78 -10
- package/package.json +2 -2
- package/esm/__internal__/validations/validation-icon.d.ts +0 -38
- package/esm/__internal__/validations/validations.d.ts +0 -17
- package/lib/__internal__/validations/validation-icon.d.ts +0 -38
- package/lib/__internal__/validations/validations.d.ts +0 -17
|
@@ -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
|
-
|
|
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
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
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;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "carbon-react",
|
|
3
|
-
"version": "106.1.
|
|
3
|
+
"version": "106.1.4",
|
|
4
4
|
"description": "A library of reusable React components for easily building user interfaces.",
|
|
5
5
|
"engineStrict": true,
|
|
6
6
|
"engines": {
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
"@commitlint/config-conventional": "^11.0.0",
|
|
71
71
|
"@cypress/react": "^5.12.0",
|
|
72
72
|
"@cypress/webpack-dev-server": "^1.8.4",
|
|
73
|
-
"@sage/design-tokens": "^2.
|
|
73
|
+
"@sage/design-tokens": "^2.24.0",
|
|
74
74
|
"@semantic-release/changelog": "^6.0.1",
|
|
75
75
|
"@semantic-release/exec": "^6.0.2",
|
|
76
76
|
"@semantic-release/git": "^10.0.1",
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
|
|
3
|
-
import { ValidationPropTypes } from ".";
|
|
4
|
-
|
|
5
|
-
export interface ValidationIconProps extends ValidationPropTypes {
|
|
6
|
-
/** A small string to indicate the size of the icon */
|
|
7
|
-
size?: "small" | "medium" | "large";
|
|
8
|
-
/** The unique id of the component (used with aria-describedby for accessibility) */
|
|
9
|
-
iconId?: string;
|
|
10
|
-
/** Define position of the tooltip */
|
|
11
|
-
tooltipPosition?: string;
|
|
12
|
-
/**
|
|
13
|
-
* Overrides the default flip behaviour of the Tooltip,
|
|
14
|
-
* must be an array containing some or all of ["top", "bottom", "left", "right"]
|
|
15
|
-
* (see https://popper.js.org/docs/v2/modifiers/flip/#fallbackplacements)
|
|
16
|
-
*/
|
|
17
|
-
tooltipFlipOverrides?: ["top" | "bottom" | "left" | "right"];
|
|
18
|
-
/** Id passed to the tooltip container, used for accessibility purposes */
|
|
19
|
-
tooltipId?: string;
|
|
20
|
-
/** An onClick handler */
|
|
21
|
-
onClick?: (ev: React.MouseEvent<HTMLElement>) => void;
|
|
22
|
-
/** An onBlur handler */
|
|
23
|
-
onBlur?: (ev: React.FocusEvent<HTMLElement>) => void;
|
|
24
|
-
/** An onFocus handler */
|
|
25
|
-
onFocus?: (ev: React.FocusEvent<HTMLElement>) => void;
|
|
26
|
-
/** A boolean to indicate if the icon is part of an input */
|
|
27
|
-
isPartOfInput?: boolean;
|
|
28
|
-
/** Overrides the default tabindex of the component */
|
|
29
|
-
tabIndex?: number;
|
|
30
|
-
/** Margin right, given number will be multiplied by base spacing unit (8) */
|
|
31
|
-
mr?: number;
|
|
32
|
-
/** Margin left, given number will be multiplied by base spacing unit (8) */
|
|
33
|
-
ml?: number;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
declare function ValidationIcon(props: ValidationIconProps): JSX.Element;
|
|
37
|
-
|
|
38
|
-
export default ValidationIcon;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
export interface ValidationPropTypes {
|
|
2
|
-
/** Indicate that error has occurred
|
|
3
|
-
* Pass string to display icon, tooltip and red border
|
|
4
|
-
* Pass true boolean to only display red border
|
|
5
|
-
*/
|
|
6
|
-
error?: boolean | string;
|
|
7
|
-
/** Indicate additional information
|
|
8
|
-
* Pass string to display icon, tooltip and blue border
|
|
9
|
-
* Pass true boolean to only display blue border
|
|
10
|
-
*/
|
|
11
|
-
info?: boolean | string;
|
|
12
|
-
/** Indicate that warning has occurred
|
|
13
|
-
* Pass string to display icon, tooltip and orange border
|
|
14
|
-
* Pass true boolean to only display orange border
|
|
15
|
-
*/
|
|
16
|
-
warning?: boolean | string;
|
|
17
|
-
}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
|
|
3
|
-
import { ValidationPropTypes } from ".";
|
|
4
|
-
|
|
5
|
-
export interface ValidationIconProps extends ValidationPropTypes {
|
|
6
|
-
/** A small string to indicate the size of the icon */
|
|
7
|
-
size?: "small" | "medium" | "large";
|
|
8
|
-
/** The unique id of the component (used with aria-describedby for accessibility) */
|
|
9
|
-
iconId?: string;
|
|
10
|
-
/** Define position of the tooltip */
|
|
11
|
-
tooltipPosition?: string;
|
|
12
|
-
/**
|
|
13
|
-
* Overrides the default flip behaviour of the Tooltip,
|
|
14
|
-
* must be an array containing some or all of ["top", "bottom", "left", "right"]
|
|
15
|
-
* (see https://popper.js.org/docs/v2/modifiers/flip/#fallbackplacements)
|
|
16
|
-
*/
|
|
17
|
-
tooltipFlipOverrides?: ["top" | "bottom" | "left" | "right"];
|
|
18
|
-
/** Id passed to the tooltip container, used for accessibility purposes */
|
|
19
|
-
tooltipId?: string;
|
|
20
|
-
/** An onClick handler */
|
|
21
|
-
onClick?: (ev: React.MouseEvent<HTMLElement>) => void;
|
|
22
|
-
/** An onBlur handler */
|
|
23
|
-
onBlur?: (ev: React.FocusEvent<HTMLElement>) => void;
|
|
24
|
-
/** An onFocus handler */
|
|
25
|
-
onFocus?: (ev: React.FocusEvent<HTMLElement>) => void;
|
|
26
|
-
/** A boolean to indicate if the icon is part of an input */
|
|
27
|
-
isPartOfInput?: boolean;
|
|
28
|
-
/** Overrides the default tabindex of the component */
|
|
29
|
-
tabIndex?: number;
|
|
30
|
-
/** Margin right, given number will be multiplied by base spacing unit (8) */
|
|
31
|
-
mr?: number;
|
|
32
|
-
/** Margin left, given number will be multiplied by base spacing unit (8) */
|
|
33
|
-
ml?: number;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
declare function ValidationIcon(props: ValidationIconProps): JSX.Element;
|
|
37
|
-
|
|
38
|
-
export default ValidationIcon;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
export interface ValidationPropTypes {
|
|
2
|
-
/** Indicate that error has occurred
|
|
3
|
-
* Pass string to display icon, tooltip and red border
|
|
4
|
-
* Pass true boolean to only display red border
|
|
5
|
-
*/
|
|
6
|
-
error?: boolean | string;
|
|
7
|
-
/** Indicate additional information
|
|
8
|
-
* Pass string to display icon, tooltip and blue border
|
|
9
|
-
* Pass true boolean to only display blue border
|
|
10
|
-
*/
|
|
11
|
-
info?: boolean | string;
|
|
12
|
-
/** Indicate that warning has occurred
|
|
13
|
-
* Pass string to display icon, tooltip and orange border
|
|
14
|
-
* Pass true boolean to only display orange border
|
|
15
|
-
*/
|
|
16
|
-
warning?: boolean | string;
|
|
17
|
-
}
|