carbon-react 104.53.0 → 104.53.3

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 (27) hide show
  1. package/esm/components/flat-table/flat-table-row/flat-table-row.style.js +1 -1
  2. package/esm/components/select/multi-select/multi-select.component.js +5 -6
  3. package/esm/components/select/simple-select/simple-select-test.stories.js +127 -117
  4. package/esm/components/tooltip/tooltip.component.js +4 -0
  5. package/esm/style/themes/aegean/aegean-theme.config.d.ts +0 -8
  6. package/esm/style/themes/aegean/aegean-theme.config.js +0 -10
  7. package/esm/style/themes/base/base-theme.config.d.ts +1 -296
  8. package/esm/style/themes/base/base-theme.config.js +2 -303
  9. package/esm/style/themes/base/index.d.ts +1 -303
  10. package/esm/style/themes/mint/mint-theme.config.d.ts +0 -7
  11. package/esm/style/themes/mint/mint-theme.config.js +0 -7
  12. package/esm/style/themes/sage/index.d.ts +0 -241
  13. package/esm/style/themes/sage/index.js +1 -1
  14. package/lib/components/flat-table/flat-table-row/flat-table-row.style.js +1 -1
  15. package/lib/components/select/multi-select/multi-select.component.js +5 -6
  16. package/lib/components/select/simple-select/simple-select-test.stories.js +126 -115
  17. package/lib/components/tooltip/tooltip.component.js +5 -0
  18. package/lib/style/themes/aegean/aegean-theme.config.d.ts +0 -8
  19. package/lib/style/themes/aegean/aegean-theme.config.js +0 -13
  20. package/lib/style/themes/base/base-theme.config.d.ts +1 -296
  21. package/lib/style/themes/base/base-theme.config.js +2 -304
  22. package/lib/style/themes/base/index.d.ts +1 -303
  23. package/lib/style/themes/mint/mint-theme.config.d.ts +0 -7
  24. package/lib/style/themes/mint/mint-theme.config.js +0 -7
  25. package/lib/style/themes/sage/index.d.ts +0 -241
  26. package/lib/style/themes/sage/index.js +1 -1
  27. package/package.json +1 -1
@@ -5,316 +5,21 @@ declare function _default(palette: any): {
5
5
  spacing: number;
6
6
  space: string[];
7
7
  colors: {
8
- base: any;
9
8
  primary: any;
10
9
  secondary: any;
11
10
  tertiary: any;
12
- brand: any;
13
- disabled: any;
14
- whiteMix: any;
15
- withOpacity: string;
16
11
  loadingBarBackground: any;
17
- black: string;
18
- slate: string;
19
12
  white: string;
20
- border: any;
21
- dashedBorder: string;
22
- dashedButtonText: string;
23
- dashedHoverBackground: string;
24
- focusedIcon: any;
25
- focusedLinkBackground: any;
26
- previewBackground: any;
27
- hoveredTabKeyline: any;
28
13
  error: any;
29
14
  focus: any;
30
15
  info: any;
31
- success: any;
32
16
  warning: any;
33
17
  destructive: {
34
18
  hover: any;
35
19
  };
36
- asterisk: any;
37
- };
38
- progressTracker: {
39
- background: any;
40
- innerBackground: any;
41
- trafficNeutral: any;
42
- };
43
- anchorNavigation: {
44
- divider: any;
45
- navItemHoverBackground: any;
46
- };
47
- accordion: {
48
- border: any;
49
- background: any;
50
- };
51
- tileSelect: {
52
- border: any;
53
- disabledBackground: any;
54
- hoverBackground: any;
55
- descriptionColor: any;
56
- disabledText: any;
57
- };
58
- batchSelection: {
59
- lightTheme: any;
60
- };
61
- hr: {
62
- background: any;
63
- };
64
- editor: {
65
- border: any;
66
- counter: string;
67
- placeholder: string;
68
- button: {
69
- hover: any;
70
- };
71
- toolbar: {
72
- background: any;
73
- };
74
- };
75
- menu: {
76
- focus: any;
77
- divider: any;
78
- itemColor: any;
79
- itemColorDisabled: any;
80
- light: {
81
- text: string;
82
- background: any;
83
- selected: any;
84
- divider: any;
85
- alternate: any;
86
- title: any;
87
- submenuBackground: string;
88
- searchIcon: any;
89
- searchIconHover: any;
90
- };
91
- dark: {
92
- text: string;
93
- background: any;
94
- divider: any;
95
- submenuBackground: any;
96
- selected: any;
97
- alternate: any;
98
- title: any;
99
- searchIcon: any;
100
- searchIconHover: any;
101
- };
102
- black: {
103
- text: string;
104
- background: any;
105
- submenuBackground: any;
106
- selected: any;
107
- divider: any;
108
- alternate: any;
109
- title: any;
110
- searchIcon: any;
111
- searchIconHover: any;
112
- };
113
- white: {
114
- text: string;
115
- background: string;
116
- selected: any;
117
- divider: any;
118
- alternate: any;
119
- submenuBackground: any;
120
- title: any;
121
- searchIcon: any;
122
- searchIconHover: any;
123
- };
124
- };
125
- card: {
126
- footerBackground: any;
127
- footerBorder: any;
128
- };
129
- carousel: {
130
- activeSelectorBackground: any;
131
- inactiveSelectorBackground: any;
132
- };
133
- flatTable: {
134
- light: {
135
- headerBackground: any;
136
- border: any;
137
- };
138
- dark: {
139
- headerBackground: any;
140
- border: any;
141
- };
142
- subRow: {
143
- background: any;
144
- shadow: string;
145
- };
146
- transparentWhite: {
147
- headerBackground: string;
148
- border: string;
149
- };
150
- transparentBase: {
151
- headerBackground: any;
152
- border: any;
153
- };
154
- drawerSidebar: {
155
- headerBackground: any;
156
- hover: any;
157
- highlighted: any;
158
- selected: any;
159
- };
160
- hover: any;
161
- headerIconColor: any;
162
- headerAlternativeBackground: any;
163
- selected: any;
164
- highlighted: any;
165
- };
166
- help: {
167
- color: any;
168
- hover: any;
169
- };
170
- text: {
171
- color: any;
172
- placeholder: any;
173
- size: string;
174
- };
175
- readOnly: {
176
- textboxBackground: any;
177
- textboxBorder: any;
178
- textboxText: any;
179
- };
180
- content: {
181
- secondaryColor: any;
182
20
  };
183
21
  disabled: {
184
- border: any;
185
- button: any;
186
- disabled: any;
187
- input: any;
188
- text: any;
189
- buttonText: string;
190
22
  background: any;
191
- switch: any;
192
- };
193
- draggableItem: {
194
- border: any;
195
- };
196
- checkable: {
197
- checked: string;
198
- };
199
- table: {
200
- primary: any;
201
- secondary: any;
202
- tertiary: any;
203
- header: any;
204
- hover: any;
205
- selected: any;
206
- zebra: any;
207
- dragging: any;
208
- };
209
- drawer: {
210
- background: any;
211
- divider: any;
212
- };
213
- pager: {
214
- active: string;
215
- disabled: string;
216
- alternate: any;
217
- };
218
- icon: {
219
- default: string;
220
- defaultHover: string;
221
- onLightBackground: any;
222
- onLightBackgroundHover: any;
223
- disabled: string;
224
- };
225
- popoverContainer: {
226
- iconColor: string;
227
- };
228
- navigationBar: {
229
- light: {
230
- background: any;
231
- borderBottom: any;
232
- };
233
- dark: {
234
- background: string;
235
- borderBottom: string;
236
- };
237
- black: {
238
- background: any;
239
- };
240
- white: {
241
- borderBottom: any;
242
- };
243
- };
244
- numeralDate: {
245
- passive: string;
246
- error: string;
247
- };
248
- portrait: {
249
- border: any;
250
- background: any;
251
- initials: string;
252
- };
253
- picklist: {
254
- locked: any;
255
- lockedContent: any;
256
- lockedText: any;
257
- };
258
- pill: {
259
- neutral: any;
260
- warning: any;
261
- neutralBackgroundFocus: any;
262
- warningButtonFocus: any;
263
- errorButtonFocus: any;
264
- };
265
- search: {
266
- active: any;
267
- button: string;
268
- passive: any;
269
- icon: any;
270
- iconHover: any;
271
- searchActive: string;
272
- darkVariantPlaceholder: any;
273
- darkVariantBorder: any;
274
- darkVariantText: string;
275
- iconDarkVariant: any;
276
- iconDarkVariantHover: any;
277
- };
278
- select: {
279
- border: string;
280
- selected: any;
281
- optionHeader: any;
282
- tableHeaderBorder: any;
283
- };
284
- shadows: {
285
- depth1: string;
286
- depth2: string;
287
- depth3: string;
288
- depth4: string;
289
- cards: string;
290
- cardsIE: string;
291
- };
292
- stepSequence: {
293
- completedText: any;
294
- };
295
- switch: {
296
- off: any;
297
- offDisabled: any;
298
- offHover: any;
299
- on: any;
300
- onDisabled: any;
301
- onHover: any;
302
- disabledFontColor: string;
303
- };
304
- tile: {
305
- border: any;
306
- footerBackground: any;
307
- separator: any;
308
- };
309
- tab: {
310
- background: any;
311
- altHover: any;
312
- };
313
- editorLinkPreview: {
314
- background: any;
315
- hoverBackground: any;
316
- border: any;
317
- url: any;
318
23
  };
319
24
  zIndex: {
320
25
  smallOverlay: number;
@@ -337,7 +42,6 @@ declare function _default(palette: any): {
337
42
  colorsSemanticNegative600: any;
338
43
  colorsSemanticCaution500: any;
339
44
  colorsSemanticInfo500: any;
340
- fontSizes100: string;
341
45
  metaName: string;
342
46
  metaPublic: string;
343
47
  colorsLogo: string;
@@ -553,6 +257,7 @@ declare function _default(palette: any): {
553
257
  borderWidth300: string;
554
258
  borderWidth400: string;
555
259
  borderWidth000: string;
260
+ fontSizes100: string;
556
261
  fontSizes200: string;
557
262
  fontSizes300: string;
558
263
  fontSizes400: string;
@@ -7,15 +7,12 @@ exports.default = exports.space = void 0;
7
7
 
8
8
  var _common = _interopRequireDefault(require("@sage/design-tokens/js/base/common"));
9
9
 
10
- var _atOpacity = _interopRequireDefault(require("../../utils/at-opacity"));
11
-
12
10
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
13
11
 
14
12
  const space = ["var(--spacing000)", "var(--spacing100)", "var(--spacing200)", "var(--spacing300)", "var(--spacing400)", "var(--spacing500)", "var(--spacing600)", "var(--spacing700)", "var(--spacing800)", "var(--spacing900)", "var(--spacing1000)"];
15
13
  exports.space = space;
16
14
 
17
15
  var _default = palette => {
18
- const baseWithOpacity = (0, _atOpacity.default)(palette.productGreen);
19
16
  return {
20
17
  name: "base",
21
18
  palette,
@@ -23,321 +20,23 @@ var _default = palette => {
23
20
  space,
24
21
  colors: {
25
22
  // main
26
- base: palette.productGreen,
27
23
  primary: palette.genericGreenShade(15),
28
24
  secondary: palette.genericGreenShade(35),
29
25
  tertiary: palette.genericGreenShade(55),
30
- brand: palette.brilliantGreen,
31
- disabled: palette.genericGreenTint(40),
32
- whiteMix: palette.genericGreenTint(90),
33
- withOpacity: baseWithOpacity(0.55),
34
26
  loadingBarBackground: palette.genericGreenTint(70),
35
27
  // generic
36
- black: "#000000",
37
- slate: "#003349",
38
28
  white: "#FFFFFF",
39
- // element
40
- border: palette.slateTint(40),
41
- dashedBorder: "#99ADB6",
42
- dashedButtonText: "rgba(0, 0, 0, 0.9)",
43
- dashedHoverBackground: "#CCD6DB",
44
- focusedIcon: palette.slateTint(20),
45
- focusedLinkBackground: palette.goldTint(50),
46
- previewBackground: palette.slateTint(75),
47
- hoveredTabKeyline: palette.genericGreenTint(30),
48
29
  // status
49
30
  error: palette.errorRed,
50
31
  focus: palette.gold,
51
32
  info: palette.productBlueShade(3),
52
- success: palette.brilliantGreenShade(20),
53
33
  warning: palette.carrotOrange,
54
34
  destructive: {
55
35
  hover: palette.errorRedShade(20)
56
- },
57
- asterisk: palette.errorRed
58
- },
59
- progressTracker: {
60
- background: palette.slateTint(90),
61
- innerBackground: palette.slateTint(40),
62
- trafficNeutral: palette.productBlueShade(3)
63
- },
64
- anchorNavigation: {
65
- divider: palette.slateTint(80),
66
- navItemHoverBackground: palette.slateTint(90)
67
- },
68
- accordion: {
69
- border: palette.slateTint(80),
70
- background: palette.slateTint(90)
71
- },
72
- tileSelect: {
73
- border: palette.slateTint(75),
74
- disabledBackground: palette.slateTint(90),
75
- hoverBackground: palette.slateTint(95),
76
- descriptionColor: palette.blackOpacity(0.55),
77
- disabledText: palette.blackOpacity(0.3)
78
- },
79
- batchSelection: {
80
- lightTheme: palette.slateTint(70)
81
- },
82
- hr: {
83
- background: palette.slateTint(80)
84
- },
85
- editor: {
86
- border: palette.slateTint(40),
87
- counter: "rgba(0,0,0,0.55)",
88
- placeholder: "rgba(0,0,0,0.30)",
89
- button: {
90
- hover: palette.slateTint(80)
91
- },
92
- toolbar: {
93
- background: palette.slateTint(95)
94
- }
95
- },
96
- menu: {
97
- focus: palette.slateTint(95),
98
- divider: palette.slateTint(90),
99
- itemColor: palette.blackOpacity(0.9),
100
- itemColorDisabled: palette.blackOpacity(0.3),
101
- light: {
102
- text: "#000000",
103
- background: palette.slateTint(90),
104
- selected: palette.slateTint(85),
105
- divider: palette.slateTint(80),
106
- alternate: palette.slateTint(90),
107
- title: palette.slateTint(25),
108
- submenuBackground: "#FFFFFF",
109
- searchIcon: palette.slateTint(55),
110
- searchIconHover: palette.slateTint(75)
111
- },
112
- dark: {
113
- text: "#FFFFFF",
114
- background: palette.slate,
115
- divider: palette.slateTint(10),
116
- submenuBackground: palette.slateShade(50),
117
- selected: palette.slateTint(10),
118
- alternate: palette.slate,
119
- title: palette.slateTint(60),
120
- searchIcon: palette.slateTint(55),
121
- searchIconHover: palette.slateTint(75)
122
- },
123
- black: {
124
- text: "#FFFFFF",
125
- background: palette.black,
126
- submenuBackground: palette.black,
127
- selected: palette.blackTint(15),
128
- divider: palette.blackTint(15),
129
- alternate: palette.blackTint(10),
130
- title: palette.slateTint(60),
131
- searchIcon: palette.slateTint(55),
132
- searchIconHover: palette.slateTint(75)
133
- },
134
- white: {
135
- text: "#000000",
136
- background: "#FFFFFF",
137
- selected: palette.slateTint(95),
138
- divider: palette.slateTint(70),
139
- alternate: palette.slateTint(80),
140
- submenuBackground: palette.slateTint(90),
141
- title: palette.slateTint(25),
142
- searchIcon: palette.slateTint(55),
143
- searchIconHover: palette.slateTint(75)
144
36
  }
145
37
  },
146
- card: {
147
- footerBackground: palette.slateTint(95),
148
- footerBorder: palette.slateTint(80)
149
- },
150
- carousel: {
151
- activeSelectorBackground: palette.slateTint(40),
152
- inactiveSelectorBackground: palette.slateTint(80)
153
- },
154
- flatTable: {
155
- light: {
156
- headerBackground: palette.slateTint(80),
157
- border: palette.slateTint(70)
158
- },
159
- dark: {
160
- headerBackground: palette.slateTint(20),
161
- border: palette.slateTint(40)
162
- },
163
- subRow: {
164
- background: palette.slateTint(98),
165
- shadow: "rgba(0, 20, 29, 0.1)"
166
- },
167
- transparentWhite: {
168
- headerBackground: "#fff",
169
- border: "#fff"
170
- },
171
- transparentBase: {
172
- headerBackground: palette.slateTint(95),
173
- border: palette.slateTint(95)
174
- },
175
- drawerSidebar: {
176
- headerBackground: palette.slateTint(93),
177
- hover: palette.slateTint(85),
178
- highlighted: palette.slateTint(80),
179
- selected: palette.slateTint(70)
180
- },
181
- hover: palette.slateTint(95),
182
- headerIconColor: palette.slateTint(60),
183
- headerAlternativeBackground: palette.slateTint(10),
184
- selected: palette.slateTint(85),
185
- highlighted: palette.slateTint(90)
186
- },
187
- help: {
188
- color: palette.blackOpacity(0.65),
189
- hover: palette.blackOpacity(0.9)
190
- },
191
- text: {
192
- color: palette.blackOpacity(0.9),
193
- placeholder: palette.blackOpacity(0.55),
194
- size: "14px"
195
- },
196
- readOnly: {
197
- textboxBackground: palette.slateTint(98),
198
- textboxBorder: palette.slateTint(80),
199
- textboxText: palette.blackOpacity(0.74)
200
- },
201
- content: {
202
- secondaryColor: palette.slateTint(40)
203
- },
204
38
  disabled: {
205
- border: palette.slateTint(80),
206
- button: palette.slateTint(90),
207
- disabled: palette.blackOpacity(0.55),
208
- input: palette.slateTint(95),
209
- text: palette.blackOpacity(0.3),
210
- buttonText: "rgba(0,0,0,.2)",
211
- background: palette.slateTint(90),
212
- switch: palette.slateTint(89.5)
213
- },
214
- draggableItem: {
215
- border: palette.slateTint(90)
216
- },
217
- checkable: {
218
- checked: "rgba(0,0,0,0.90)"
219
- },
220
- table: {
221
- primary: palette.slateTint(95),
222
- secondary: palette.slateTint(80),
223
- tertiary: palette.slateTint(10),
224
- header: palette.slateTint(20),
225
- hover: palette.slateTint(90),
226
- selected: palette.slateTint(85),
227
- zebra: palette.slateTint(98),
228
- dragging: palette.slateTint(90)
229
- },
230
- drawer: {
231
- background: palette.slateTint(93),
232
- divider: palette.slateTint(85)
233
- },
234
- pager: {
235
- active: "rgba(0,0,0,0.90)",
236
- disabled: "rgba(0,0,0,0.3)",
237
- alternate: palette.slateTint(93)
238
- },
239
- icon: {
240
- default: "rgba(0,0,0,0.65)",
241
- defaultHover: "rgba(0,0,0,0.90)",
242
- onLightBackground: palette.slateTint(40),
243
- onLightBackgroundHover: palette.slateTint(20),
244
- disabled: "rgba(0,0,0,0.30)"
245
- },
246
- popoverContainer: {
247
- iconColor: "rgba(0,0,0,0.90)"
248
- },
249
- navigationBar: {
250
- light: {
251
- background: palette.slateTint(90),
252
- borderBottom: palette.slateTint(85)
253
- },
254
- dark: {
255
- background: "#003349",
256
- borderBottom: "#003349"
257
- },
258
- black: {
259
- background: palette.blackOpacity(1)
260
- },
261
- white: {
262
- borderBottom: palette.slateTint(85)
263
- }
264
- },
265
- numeralDate: {
266
- passive: "#668592",
267
- error: "#C7384F"
268
- },
269
- portrait: {
270
- border: palette.slateTint(50),
271
- background: palette.slateTint(95),
272
- initials: "rgba(0,0,0,0.65)"
273
- },
274
- picklist: {
275
- locked: palette.slateTint(95),
276
- lockedContent: palette.slateTint(45),
277
- lockedText: palette.blackOpacity(0.6)
278
- },
279
- pill: {
280
- neutral: palette.slateTint(30),
281
- warning: palette.carrotOrangeTint(20),
282
- neutralBackgroundFocus: palette.slateTint(10),
283
- warningButtonFocus: palette.carrotOrange,
284
- errorButtonFocus: palette.errorRedShade(20)
285
- },
286
- search: {
287
- active: palette.gold,
288
- button: "#255BC7",
289
- passive: palette.slateTint(45),
290
- icon: palette.slateTint(55),
291
- iconHover: palette.slateTint(20),
292
- searchActive: "#668592",
293
- darkVariantPlaceholder: palette.slateTint(55),
294
- darkVariantBorder: palette.slateTint(55),
295
- darkVariantText: "#FFFFFF",
296
- iconDarkVariant: palette.slateTint(55),
297
- iconDarkVariantHover: palette.slateTint(75)
298
- },
299
- select: {
300
- border: "#bfccd2",
301
- selected: palette.slateTint(95),
302
- optionHeader: palette.blackOpacity(0.55),
303
- tableHeaderBorder: palette.slateTint(80)
304
- },
305
- shadows: {
306
- depth1: "0 5px 5px 0 rgba(0,20,29,0.2), 0 10px 10px 0 rgba(0,20,29,0.1)",
307
- depth2: "0 10px 20px 0 rgba(0,20,29,0.2), 0 20px 40px 0 rgba(0,20,29,0.1)",
308
- depth3: "0 10px 30px 0 rgba(0,20,29,0.1), 0 30px 60px 0 rgba(0,20,29,0.1)",
309
- depth4: "0 10px 40px 0 rgba(0,20,29,0.04), 0 50px 80px 0 rgba(0,20,29,0.1)",
310
-
311
- /* no space after comma as it is stripped from the variable when used in the spec */
312
- cards: "0 3px 3px 0 rgba(0,20,29,0.2),0 2px 4px 0 rgba(0,20,29,0.15)",
313
- cardsIE: "0 3px 3px 0 rgba(0,20,29,0.2),0 2px 4px 0 rgba(0,20,29,0.15), 0 0 1px 0 rgba(0,20,29,0.15)"
314
- },
315
- stepSequence: {
316
- completedText: palette.genericGreenShade(15)
317
- },
318
- switch: {
319
- off: palette.slateTint(80),
320
- offDisabled: palette.slateTint(90),
321
- offHover: palette.slateTint(60),
322
- on: palette.slateTint(20),
323
- onDisabled: palette.slateTint(60),
324
- onHover: palette.slateTint(0),
325
- disabledFontColor: "rgba(0,0,0,0.30)"
326
- },
327
- tile: {
328
- border: palette.slateTint(80),
329
- footerBackground: palette.slateTint(95),
330
- separator: palette.slateTint(90)
331
- },
332
- tab: {
333
- background: palette.slateTint(80),
334
- altHover: palette.slateTint(85)
335
- },
336
- editorLinkPreview: {
337
- background: palette.slateTint(95),
338
- hoverBackground: palette.slateTint(80),
339
- border: palette.slateTint(90),
340
- url: palette.slateTint(10)
39
+ background: palette.slateTint(90)
341
40
  },
342
41
  zIndex: {
343
42
  smallOverlay: 10,
@@ -361,8 +60,7 @@ var _default = palette => {
361
60
  colorsSemanticNegative500: this.colors.error,
362
61
  colorsSemanticNegative600: this.colors.destructive.hover,
363
62
  colorsSemanticCaution500: this.colors.warning,
364
- colorsSemanticInfo500: this.colors.info,
365
- fontSizes100: this.text.size
63
+ colorsSemanticInfo500: this.colors.info
366
64
  };
367
65
  }
368
66