@elastic/eui-theme-borealis 3.6.0 → 5.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.
package/lib/cjs/index.js CHANGED
@@ -59,10 +59,6 @@ var euiThemeBorealis = exports.euiThemeBorealis = {
59
59
  focus: _states.focus,
60
60
  components: _components.components,
61
61
  flags: {
62
- hasGlobalFocusColor: true,
63
- hasVisColorAdjustment: false,
64
- buttonVariant: 'refresh',
65
- formVariant: 'refresh',
66
62
  shadowVariant: 'refresh'
67
63
  },
68
64
  overrides: _overrides.overrides
@@ -24,16 +24,6 @@ function _arrayWithHoles(r) { if (Array.isArray(r)) return r; } /*
24
24
  * in compliance with, at your election, the Elastic License 2.0 or the Server
25
25
  * Side Public License, v 1.
26
26
  */
27
- var getTokenByVariant = function getTokenByVariant(buttonVariant, tokens) {
28
- switch (buttonVariant) {
29
- case 'refresh':
30
- return tokens.refresh;
31
- default:
32
- {
33
- return tokens.classic;
34
- }
35
- }
36
- };
37
27
  var _buttons = {
38
28
  backgroundPrimary: (0, _euiThemeCommon.computed)(function (_ref) {
39
29
  var _ref2 = _slicedToArray(_ref, 1),
@@ -76,15 +66,10 @@ var _buttons = {
76
66
  return backgroundLightDanger;
77
67
  }, ['colors.backgroundLightDanger']),
78
68
  backgroundText: (0, _euiThemeCommon.computed)(function (_ref17) {
79
- var _ref18 = _slicedToArray(_ref17, 3),
80
- buttonVariant = _ref18[0],
81
- backgroundBasePlain = _ref18[1],
82
- backgroundLightText = _ref18[2];
83
- return getTokenByVariant(buttonVariant, {
84
- refresh: backgroundBasePlain,
85
- classic: backgroundLightText
86
- });
87
- }, ['flags.buttonVariant', 'colors.backgroundBasePlain', 'colors.backgroundLightText']),
69
+ var _ref18 = _slicedToArray(_ref17, 1),
70
+ backgroundBasePlain = _ref18[0];
71
+ return backgroundBasePlain;
72
+ }, ['colors.backgroundBasePlain']),
88
73
  backgroundDisabled: (0, _euiThemeCommon.computed)(function (_ref19) {
89
74
  var _ref20 = _slicedToArray(_ref19, 1),
90
75
  backgroundBaseDisabled = _ref20[0];
@@ -226,173 +226,168 @@ var component_colors = {
226
226
  headerDarkBackground: _colors_dark.dark_background_colors.backgroundBasePlain,
227
227
  headerDarkSearchBorderColor: _colors_dark.dark_border_colors.borderBasePlain,
228
228
  headerDarkSectionItemBackgroundFocus: _colors_dark.dark_background_colors.backgroundBasePrimary,
229
- keyPadMenuItemBackgroundDisabledSelect: (0, _euiThemeCommon.computed)(function (_ref67) {
229
+ listGroupItemBackgroundPrimaryActive: (0, _euiThemeCommon.computed)(function (_ref67) {
230
230
  var _ref68 = _slicedToArray(_ref67, 1),
231
- backgroundBaseDisabled = _ref68[0];
232
- return backgroundBaseDisabled;
233
- }, ['colors.backgroundBaseDisabled']),
234
- listGroupItemBackgroundPrimaryActive: (0, _euiThemeCommon.computed)(function (_ref69) {
231
+ backgroundBaseInteractiveSelect = _ref68[0];
232
+ return backgroundBaseInteractiveSelect;
233
+ }, ['colors.backgroundBaseInteractiveSelect']),
234
+ listGroupItemBackgroundSubduedActive: (0, _euiThemeCommon.computed)(function (_ref69) {
235
235
  var _ref70 = _slicedToArray(_ref69, 1),
236
236
  backgroundBaseInteractiveSelect = _ref70[0];
237
237
  return backgroundBaseInteractiveSelect;
238
238
  }, ['colors.backgroundBaseInteractiveSelect']),
239
- listGroupItemBackgroundSubduedActive: (0, _euiThemeCommon.computed)(function (_ref71) {
239
+ listGroupItemBackgroundHover: (0, _euiThemeCommon.computed)(function (_ref71) {
240
240
  var _ref72 = _slicedToArray(_ref71, 1),
241
- backgroundBaseInteractiveSelect = _ref72[0];
242
- return backgroundBaseInteractiveSelect;
243
- }, ['colors.backgroundBaseInteractiveSelect']),
244
- listGroupItemBackgroundHover: (0, _euiThemeCommon.computed)(function (_ref73) {
245
- var _ref74 = _slicedToArray(_ref73, 1),
246
- backgroundBaseInteractiveHover = _ref74[0];
241
+ backgroundBaseInteractiveHover = _ref72[0];
247
242
  return backgroundBaseInteractiveHover;
248
243
  }, ['colors.backgroundBaseInteractiveHover']),
249
- listGroupItemBackgroundPrimaryHover: (0, _euiThemeCommon.computed)(function (_ref75) {
250
- var _ref76 = _slicedToArray(_ref75, 1),
251
- backgroundBaseInteractiveHover = _ref76[0];
244
+ listGroupItemBackgroundPrimaryHover: (0, _euiThemeCommon.computed)(function (_ref73) {
245
+ var _ref74 = _slicedToArray(_ref73, 1),
246
+ backgroundBaseInteractiveHover = _ref74[0];
252
247
  return backgroundBaseInteractiveHover;
253
248
  }, ['colors.backgroundBaseInteractiveHover']),
254
249
  // we don't want to inherit overrides (e.g. HCM)
255
250
  loadingSpinnerBorder: _colors_light.border_colors.borderBasePlain,
256
- loadingSpinnerHighlight: (0, _euiThemeCommon.computed)(function (_ref77) {
257
- var _ref78 = _slicedToArray(_ref77, 1),
258
- borderStrongPrimary = _ref78[0];
251
+ loadingSpinnerHighlight: (0, _euiThemeCommon.computed)(function (_ref75) {
252
+ var _ref76 = _slicedToArray(_ref75, 1),
253
+ borderStrongPrimary = _ref76[0];
259
254
  return borderStrongPrimary;
260
255
  }, ['colors.borderStrongPrimary']),
261
256
  loadingChartMonoBackground0: _semantic_colors.SEMANTIC_COLORS.shade20,
262
257
  loadingChartMonoBackground1: _semantic_colors.SEMANTIC_COLORS.shade30,
263
258
  loadingChartMonoBackground2: _semantic_colors.SEMANTIC_COLORS.shade40,
264
259
  loadingChartMonoBackground3: _semantic_colors.SEMANTIC_COLORS.shade50,
265
- markBackground: (0, _euiThemeCommon.computed)(function (_ref79) {
266
- var _ref80 = _slicedToArray(_ref79, 1),
267
- backgroundLightPrimary = _ref80[0];
260
+ markBackground: (0, _euiThemeCommon.computed)(function (_ref77) {
261
+ var _ref78 = _slicedToArray(_ref77, 1),
262
+ backgroundLightPrimary = _ref78[0];
268
263
  return backgroundLightPrimary;
269
264
  }, ['colors.backgroundLightPrimary']),
270
- markdownFormatTableBorderColor: (0, _euiThemeCommon.computed)(function (_ref81) {
271
- var _ref82 = _slicedToArray(_ref81, 1),
272
- borderBasePlain = _ref82[0];
265
+ markdownFormatTableBorderColor: (0, _euiThemeCommon.computed)(function (_ref79) {
266
+ var _ref80 = _slicedToArray(_ref79, 1),
267
+ borderBasePlain = _ref80[0];
273
268
  return borderBasePlain;
274
269
  }, ['colors.borderBasePlain']),
275
- overlayMaskBackground: (0, _euiThemeCommon.computed)(function (_ref83) {
276
- var _ref84 = _slicedToArray(_ref83, 1),
277
- backgroundBaseInteractiveOverlay = _ref84[0];
270
+ overlayMaskBackground: (0, _euiThemeCommon.computed)(function (_ref81) {
271
+ var _ref82 = _slicedToArray(_ref81, 1),
272
+ backgroundBaseInteractiveOverlay = _ref82[0];
278
273
  return backgroundBaseInteractiveOverlay;
279
274
  }, ['colors.backgroundBaseInteractiveOverlay']),
280
275
  overlayMaskBackgroundHighContrast: "rgba(".concat(_semantic_colors.SEMANTIC_COLORS.shade140RGB, ", 0.9)"),
281
- popoverPanelBackground: (0, _euiThemeCommon.computed)(function (_ref85) {
282
- var _ref86 = _slicedToArray(_ref85, 1),
283
- backgroundBasePlain = _ref86[0];
276
+ popoverPanelBackground: (0, _euiThemeCommon.computed)(function (_ref83) {
277
+ var _ref84 = _slicedToArray(_ref83, 1),
278
+ backgroundBasePlain = _ref84[0];
284
279
  return backgroundBasePlain;
285
280
  }, ['colors.backgroundBasePlain']),
286
- popoverFooterBorderColor: (0, _euiThemeCommon.computed)(function (_ref87) {
287
- var _ref88 = _slicedToArray(_ref87, 1),
288
- borderBaseSubdued = _ref88[0];
281
+ popoverFooterBorderColor: (0, _euiThemeCommon.computed)(function (_ref85) {
282
+ var _ref86 = _slicedToArray(_ref85, 1),
283
+ borderBaseSubdued = _ref86[0];
289
284
  return borderBaseSubdued;
290
285
  }, ['colors.borderBaseSubdued']),
291
286
  scrollbarTrackColor: _semantic_colors.SEMANTIC_COLORS.shade15,
292
- sideNavItemEmphasizedBackground: (0, _euiThemeCommon.computed)(function (_ref89) {
293
- var _ref90 = _slicedToArray(_ref89, 1),
294
- backgroundBaseInteractiveSelect = _ref90[0];
287
+ sideNavItemEmphasizedBackground: (0, _euiThemeCommon.computed)(function (_ref87) {
288
+ var _ref88 = _slicedToArray(_ref87, 1),
289
+ backgroundBaseInteractiveSelect = _ref88[0];
295
290
  return backgroundBaseInteractiveSelect;
296
291
  }, ['colors.backgroundBaseInteractiveSelect']),
297
- selectableListItemBorderColor: (0, _euiThemeCommon.computed)(function (_ref91) {
298
- var _ref92 = _slicedToArray(_ref91, 1),
299
- borderBaseSubdued = _ref92[0];
292
+ selectableListItemBorderColor: (0, _euiThemeCommon.computed)(function (_ref89) {
293
+ var _ref90 = _slicedToArray(_ref89, 1),
294
+ borderBaseSubdued = _ref90[0];
300
295
  return borderBaseSubdued;
301
296
  }, ['colors.borderBaseSubdued']),
302
297
  skeletonBackgroundSkeletonMiddleHighContrast: "rgba(".concat(_semantic_colors.SEMANTIC_COLORS.shade100RGB, ", 0.04)"),
303
- superDatePickerBackgroundSuccees: (0, _euiThemeCommon.computed)(function (_ref93) {
304
- var _ref94 = _slicedToArray(_ref93, 1),
305
- backgroundBaseSuccess = _ref94[0];
298
+ superDatePickerBackgroundSuccees: (0, _euiThemeCommon.computed)(function (_ref91) {
299
+ var _ref92 = _slicedToArray(_ref91, 1),
300
+ backgroundBaseSuccess = _ref92[0];
306
301
  return backgroundBaseSuccess;
307
302
  }, ['colors.backgroundBaseSuccess']),
308
- switchBackgroundOn: (0, _euiThemeCommon.computed)(function (_ref95) {
309
- var _ref96 = _slicedToArray(_ref95, 1),
310
- backgroundFilledPrimary = _ref96[0];
303
+ switchBackgroundOn: (0, _euiThemeCommon.computed)(function (_ref93) {
304
+ var _ref94 = _slicedToArray(_ref93, 1),
305
+ backgroundFilledPrimary = _ref94[0];
311
306
  return backgroundFilledPrimary;
312
307
  }, ['colors.backgroundFilledPrimary']),
313
- switchBackgroundOff: (0, _euiThemeCommon.computed)(function (_ref97) {
314
- var _ref98 = _slicedToArray(_ref97, 1),
315
- backgroundFilledText = _ref98[0];
308
+ switchBackgroundOff: (0, _euiThemeCommon.computed)(function (_ref95) {
309
+ var _ref96 = _slicedToArray(_ref95, 1),
310
+ backgroundFilledText = _ref96[0];
316
311
  return backgroundFilledText;
317
312
  }, ['colors.backgroundFilledText']),
318
- switchUncompressedBackgroundDisabled: (0, _euiThemeCommon.computed)(function (_ref99) {
313
+ switchUncompressedBackgroundDisabled: (0, _euiThemeCommon.computed)(function (_ref97) {
314
+ var _ref98 = _slicedToArray(_ref97, 1),
315
+ backgroundBaseFormsControlDisabled = _ref98[0];
316
+ return backgroundBaseFormsControlDisabled;
317
+ }, ['colors.backgroundBaseFormsControlDisabled']),
318
+ switchCompressedBackgroundDisabled: (0, _euiThemeCommon.computed)(function (_ref99) {
319
319
  var _ref100 = _slicedToArray(_ref99, 1),
320
320
  backgroundBaseFormsControlDisabled = _ref100[0];
321
321
  return backgroundBaseFormsControlDisabled;
322
322
  }, ['colors.backgroundBaseFormsControlDisabled']),
323
- switchCompressedBackgroundDisabled: (0, _euiThemeCommon.computed)(function (_ref101) {
323
+ switchMiniBackgroundDisabled: (0, _euiThemeCommon.computed)(function (_ref101) {
324
324
  var _ref102 = _slicedToArray(_ref101, 1),
325
325
  backgroundBaseFormsControlDisabled = _ref102[0];
326
326
  return backgroundBaseFormsControlDisabled;
327
327
  }, ['colors.backgroundBaseFormsControlDisabled']),
328
- switchMiniBackgroundDisabled: (0, _euiThemeCommon.computed)(function (_ref103) {
328
+ switchThumbBackgroundDisabled: (0, _euiThemeCommon.computed)(function (_ref103) {
329
329
  var _ref104 = _slicedToArray(_ref103, 1),
330
- backgroundBaseFormsControlDisabled = _ref104[0];
331
- return backgroundBaseFormsControlDisabled;
332
- }, ['colors.backgroundBaseFormsControlDisabled']),
333
- switchThumbBackgroundDisabled: (0, _euiThemeCommon.computed)(function (_ref105) {
334
- var _ref106 = _slicedToArray(_ref105, 1),
335
- backgroundBasePlain = _ref106[0];
330
+ backgroundBasePlain = _ref104[0];
336
331
  return backgroundBasePlain;
337
332
  }, ['colors.backgroundBasePlain']),
338
- switchThumbBorderOn: (0, _euiThemeCommon.computed)(function (_ref107) {
339
- var _ref108 = _slicedToArray(_ref107, 1),
340
- backgroundFilledPrimary = _ref108[0];
333
+ switchThumbBorderOn: (0, _euiThemeCommon.computed)(function (_ref105) {
334
+ var _ref106 = _slicedToArray(_ref105, 1),
335
+ backgroundFilledPrimary = _ref106[0];
341
336
  return backgroundFilledPrimary;
342
337
  }, ['colors.backgroundFilledPrimary']),
343
- switchThumbBorderOff: (0, _euiThemeCommon.computed)(function (_ref109) {
344
- var _ref110 = _slicedToArray(_ref109, 1),
345
- backgroundFilledText = _ref110[0];
338
+ switchThumbBorderOff: (0, _euiThemeCommon.computed)(function (_ref107) {
339
+ var _ref108 = _slicedToArray(_ref107, 1),
340
+ backgroundFilledText = _ref108[0];
346
341
  return backgroundFilledText;
347
342
  }, ['colors.backgroundFilledText']),
348
343
  switchIconDisabled: _forms.forms.LIGHT.iconDisabled,
349
- tableRowBackgroundHover: (0, _euiThemeCommon.computed)(function (_ref111) {
350
- var _ref112 = _slicedToArray(_ref111, 1),
351
- backgroundBaseInteractiveHover = _ref112[0];
344
+ tableRowBackgroundHover: (0, _euiThemeCommon.computed)(function (_ref109) {
345
+ var _ref110 = _slicedToArray(_ref109, 1),
346
+ backgroundBaseInteractiveHover = _ref110[0];
352
347
  return backgroundBaseInteractiveHover;
353
348
  }, ['colors.backgroundBaseInteractiveHover']),
354
- tableRowBackgroundSelected: (0, _euiThemeCommon.computed)(function (_ref113) {
355
- var _ref114 = _slicedToArray(_ref113, 1),
356
- backgroundBaseInteractiveSelect = _ref114[0];
349
+ tableRowBackgroundSelected: (0, _euiThemeCommon.computed)(function (_ref111) {
350
+ var _ref112 = _slicedToArray(_ref111, 1),
351
+ backgroundBaseInteractiveSelect = _ref112[0];
357
352
  return backgroundBaseInteractiveSelect;
358
353
  }, ['colors.backgroundBaseInteractiveSelect']),
359
- tableRowBackgroundSelectedHover: (0, _euiThemeCommon.computed)(function (_ref115) {
360
- var _ref116 = _slicedToArray(_ref115, 1),
361
- backgroundBaseInteractiveSelectHover = _ref116[0];
354
+ tableRowBackgroundSelectedHover: (0, _euiThemeCommon.computed)(function (_ref113) {
355
+ var _ref114 = _slicedToArray(_ref113, 1),
356
+ backgroundBaseInteractiveSelectHover = _ref114[0];
362
357
  return backgroundBaseInteractiveSelectHover;
363
358
  }, ['colors.backgroundBaseInteractiveSelectHover']),
364
- tableRowInteractiveBackgroundHover: (0, _euiThemeCommon.computed)(function (_ref117) {
365
- var _ref118 = _slicedToArray(_ref117, 1),
366
- backgroundBaseInteractiveSelect = _ref118[0];
359
+ tableRowInteractiveBackgroundHover: (0, _euiThemeCommon.computed)(function (_ref115) {
360
+ var _ref116 = _slicedToArray(_ref115, 1),
361
+ backgroundBaseInteractiveSelect = _ref116[0];
367
362
  return backgroundBaseInteractiveSelect;
368
363
  }, ['colors.backgroundBaseInteractiveSelect']),
369
- tableRowInteractiveBackgroundFocus: (0, _euiThemeCommon.computed)(function (_ref119) {
370
- var _ref120 = _slicedToArray(_ref119, 1),
371
- backgroundBaseInteractiveHover = _ref120[0];
364
+ tableRowInteractiveBackgroundFocus: (0, _euiThemeCommon.computed)(function (_ref117) {
365
+ var _ref118 = _slicedToArray(_ref117, 1),
366
+ backgroundBaseInteractiveHover = _ref118[0];
372
367
  return backgroundBaseInteractiveHover;
373
368
  }, ['colors.backgroundBaseInteractiveHover']),
374
369
  tableRowBackgroundMarked: _semantic_colors.SEMANTIC_COLORS.warning10,
375
370
  tableRowBackgroundMarkedHover: _semantic_colors.SEMANTIC_COLORS.warning20,
376
- tableCellSortableIconColor: (0, _euiThemeCommon.computed)(function (_ref121) {
377
- var _ref122 = _slicedToArray(_ref121, 1),
378
- backgroundFilledText = _ref122[0];
371
+ tableCellSortableIconColor: (0, _euiThemeCommon.computed)(function (_ref119) {
372
+ var _ref120 = _slicedToArray(_ref119, 1),
373
+ backgroundFilledText = _ref120[0];
379
374
  return backgroundFilledText;
380
375
  }, ['colors.backgroundFilledText']),
381
376
  tooltipBackground: _colors_dark.dark_background_colors.backgroundBaseSubdued,
382
377
  tooltipBorder: _colors_dark.dark_border_colors.borderBaseSubdued,
383
- tooltipBorderFloating: (0, _euiThemeCommon.computed)(function (_ref123) {
384
- var _ref124 = _slicedToArray(_ref123, 1),
385
- borderBaseFloating = _ref124[0];
378
+ tooltipBorderFloating: (0, _euiThemeCommon.computed)(function (_ref121) {
379
+ var _ref122 = _slicedToArray(_ref121, 1),
380
+ borderBaseFloating = _ref122[0];
386
381
  return borderBaseFloating;
387
382
  }, ['colors.borderBaseFloating']),
388
- tourFooterBackground: (0, _euiThemeCommon.computed)(function (_ref125) {
389
- var _ref126 = _slicedToArray(_ref125, 1),
390
- backgroundBaseHighlighted = _ref126[0];
383
+ tourFooterBackground: (0, _euiThemeCommon.computed)(function (_ref123) {
384
+ var _ref124 = _slicedToArray(_ref123, 1),
385
+ backgroundBaseHighlighted = _ref124[0];
391
386
  return backgroundBaseHighlighted;
392
387
  }, ['colors.backgroundBaseHighlighted']),
393
- treeViewItemBackgroundHover: (0, _euiThemeCommon.computed)(function (_ref127) {
394
- var _ref128 = _slicedToArray(_ref127, 1),
395
- backgroundBaseInteractiveHover = _ref128[0];
388
+ treeViewItemBackgroundHover: (0, _euiThemeCommon.computed)(function (_ref125) {
389
+ var _ref126 = _slicedToArray(_ref125, 1),
390
+ backgroundBaseInteractiveHover = _ref126[0];
396
391
  return backgroundBaseInteractiveHover;
397
392
  }, ['colors.backgroundBaseInteractiveHover'])
398
393
  };
@@ -431,14 +426,14 @@ var components = exports.components = {
431
426
  skeletonBackgroundSkeletonMiddleHighContrast: "rgba(".concat(_semantic_colors.SEMANTIC_COLORS.plainLightRGB, ", 0.3)"),
432
427
  switchIconDisabled: _forms.forms.DARK.iconDisabled,
433
428
  // TODO: align table hover states
434
- tableRowInteractiveBackgroundHover: (0, _euiThemeCommon.computed)(function (_ref129) {
435
- var _ref130 = _slicedToArray(_ref129, 1),
436
- backgroundBaseInteractiveHover = _ref130[0];
429
+ tableRowInteractiveBackgroundHover: (0, _euiThemeCommon.computed)(function (_ref127) {
430
+ var _ref128 = _slicedToArray(_ref127, 1),
431
+ backgroundBaseInteractiveHover = _ref128[0];
437
432
  return backgroundBaseInteractiveHover;
438
433
  }, ['colors.backgroundBaseInteractiveHover']),
439
- tableRowInteractiveBackgroundFocus: (0, _euiThemeCommon.computed)(function (_ref131) {
440
- var _ref132 = _slicedToArray(_ref131, 1),
441
- backgroundBaseInteractiveHover = _ref132[0];
434
+ tableRowInteractiveBackgroundFocus: (0, _euiThemeCommon.computed)(function (_ref129) {
435
+ var _ref130 = _slicedToArray(_ref129, 1),
436
+ backgroundBaseInteractiveHover = _ref130[0];
442
437
  return backgroundBaseInteractiveHover;
443
438
  }, ['colors.backgroundBaseInteractiveHover']),
444
439
  tableRowBackgroundMarked: _semantic_colors.SEMANTIC_COLORS.warning140,
@@ -99,9 +99,9 @@ var _forms = {
99
99
  clearButtonBackground: _semantic_colors.SEMANTIC_COLORS.shade60,
100
100
  controlBorder: (0, _euiThemeCommon.computed)(function (_ref29) {
101
101
  var _ref30 = _slicedToArray(_ref29, 1),
102
- borderBaseFormsControl = _ref30[0];
103
- return borderBaseFormsControl;
104
- }, ['colors.borderBaseFormsControl']),
102
+ borderBaseProminent = _ref30[0];
103
+ return borderBaseProminent;
104
+ }, ['colors.borderBaseProminent']),
105
105
  controlBorderSelected: (0, _euiThemeCommon.computed)(function (_ref31) {
106
106
  var _ref32 = _slicedToArray(_ref31, 1),
107
107
  borderStrongPrimary = _ref32[0];
@@ -140,11 +140,12 @@ var dark_border_colors = exports.dark_border_colors = {
140
140
  borderBaseDanger: _semantic_colors.SEMANTIC_COLORS.danger120,
141
141
  borderBasePlain: _semantic_colors.SEMANTIC_COLORS.shade100,
142
142
  borderBaseSubdued: _semantic_colors.SEMANTIC_COLORS.shade120,
143
+ borderBaseProminent: _semantic_colors.SEMANTIC_COLORS.shade80,
143
144
  borderBaseDisabled: _semantic_colors.SEMANTIC_COLORS.shade100,
144
145
  borderBaseFloating: _semantic_colors.SEMANTIC_COLORS.shade120,
145
146
  borderBaseFormsColorSwatch: _semantic_colors.SEMANTIC_COLORS.plainLightAlpha32,
146
- borderBaseFormsControl: _semantic_colors.SEMANTIC_COLORS.shade80,
147
147
  borderInteractiveFormsHoverPlain: _semantic_colors.SEMANTIC_COLORS.shade90,
148
+ borderInteractiveFormsHoverProminent: _semantic_colors.SEMANTIC_COLORS.shade60,
148
149
  borderInteractiveFormsHoverDanger: _semantic_colors.SEMANTIC_COLORS.danger70,
149
150
  borderStrongPrimary: _semantic_colors.SEMANTIC_COLORS.primary60,
150
151
  borderStrongAccent: _semantic_colors.SEMANTIC_COLORS.accent60,
@@ -140,11 +140,12 @@ var border_colors = exports.border_colors = {
140
140
  borderBaseDanger: _semantic_colors.SEMANTIC_COLORS.danger30,
141
141
  borderBasePlain: _semantic_colors.SEMANTIC_COLORS.shade30,
142
142
  borderBaseSubdued: _semantic_colors.SEMANTIC_COLORS.shade20,
143
+ borderBaseProminent: _semantic_colors.SEMANTIC_COLORS.shade50,
143
144
  borderBaseDisabled: _semantic_colors.SEMANTIC_COLORS.shade30,
144
145
  borderBaseFloating: _primitive_colors.PRIMITIVE_COLORS.transparent,
145
146
  borderBaseFormsColorSwatch: _semantic_colors.SEMANTIC_COLORS.shade100Alpha24,
146
- borderBaseFormsControl: _semantic_colors.SEMANTIC_COLORS.shade60,
147
147
  borderInteractiveFormsHoverPlain: _semantic_colors.SEMANTIC_COLORS.shade40,
148
+ borderInteractiveFormsHoverProminent: _semantic_colors.SEMANTIC_COLORS.shade70,
148
149
  borderInteractiveFormsHoverDanger: _semantic_colors.SEMANTIC_COLORS.danger80,
149
150
  borderStrongPrimary: _semantic_colors.SEMANTIC_COLORS.primary90,
150
151
  borderStrongAccent: _semantic_colors.SEMANTIC_COLORS.accent90,
package/lib/esm/index.js CHANGED
@@ -34,10 +34,6 @@ export const euiThemeBorealis = {
34
34
  focus,
35
35
  components,
36
36
  flags: {
37
- hasGlobalFocusColor: true,
38
- hasVisColorAdjustment: false,
39
- buttonVariant: 'refresh',
40
- formVariant: 'refresh',
41
37
  shadowVariant: 'refresh',
42
38
  },
43
39
  overrides,
@@ -5,17 +5,8 @@
5
5
  * in compliance with, at your election, the Elastic License 2.0 or the Server
6
6
  * Side Public License, v 1.
7
7
  */
8
- import { computed, } from '@elastic/eui-theme-common';
8
+ import { computed } from '@elastic/eui-theme-common';
9
9
  import { SEMANTIC_COLORS } from './colors/_semantic_colors';
10
- const getTokenByVariant = (buttonVariant, tokens) => {
11
- switch (buttonVariant) {
12
- case 'refresh':
13
- return tokens.refresh;
14
- default: {
15
- return tokens.classic;
16
- }
17
- }
18
- };
19
10
  const _buttons = {
20
11
  backgroundPrimary: computed(([backgroundLightPrimary]) => backgroundLightPrimary, ['colors.backgroundLightPrimary']),
21
12
  backgroundAccent: computed(([backgroundLightAccent]) => backgroundLightAccent, ['colors.backgroundLightAccent']),
@@ -25,16 +16,7 @@ const _buttons = {
25
16
  backgroundWarning: computed(([backgroundLightWarning]) => backgroundLightWarning, ['colors.backgroundLightWarning']),
26
17
  backgroundRisk: computed(([backgroundLightRisk]) => backgroundLightRisk, ['colors.backgroundLightRisk']),
27
18
  backgroundDanger: computed(([backgroundLightDanger]) => backgroundLightDanger, ['colors.backgroundLightDanger']),
28
- backgroundText: computed(([buttonVariant, backgroundBasePlain, backgroundLightText]) => {
29
- return getTokenByVariant(buttonVariant, {
30
- refresh: backgroundBasePlain,
31
- classic: backgroundLightText,
32
- });
33
- }, [
34
- 'flags.buttonVariant',
35
- 'colors.backgroundBasePlain',
36
- 'colors.backgroundLightText',
37
- ]),
19
+ backgroundText: computed(([backgroundBasePlain]) => backgroundBasePlain, ['colors.backgroundBasePlain']),
38
20
  backgroundDisabled: computed(([backgroundBaseDisabled]) => backgroundBaseDisabled, ['colors.backgroundBaseDisabled']),
39
21
  backgroundPrimaryHover: SEMANTIC_COLORS.primary70Alpha12,
40
22
  backgroundAccentHover: SEMANTIC_COLORS.accent70Alpha12,
@@ -77,7 +77,6 @@ const component_colors = {
77
77
  headerDarkBackground: dark_background_colors.backgroundBasePlain,
78
78
  headerDarkSearchBorderColor: dark_border_colors.borderBasePlain,
79
79
  headerDarkSectionItemBackgroundFocus: dark_background_colors.backgroundBasePrimary,
80
- keyPadMenuItemBackgroundDisabledSelect: computed(([backgroundBaseDisabled]) => backgroundBaseDisabled, ['colors.backgroundBaseDisabled']),
81
80
  listGroupItemBackgroundPrimaryActive: computed(([backgroundBaseInteractiveSelect]) => backgroundBaseInteractiveSelect, ['colors.backgroundBaseInteractiveSelect']),
82
81
  listGroupItemBackgroundSubduedActive: computed(([backgroundBaseInteractiveSelect]) => backgroundBaseInteractiveSelect, ['colors.backgroundBaseInteractiveSelect']),
83
82
  listGroupItemBackgroundHover: computed(([backgroundBaseInteractiveHover]) => backgroundBaseInteractiveHover, ['colors.backgroundBaseInteractiveHover']),
@@ -24,7 +24,7 @@ const _forms = {
24
24
  borderAutofilled: computed(([borderBasePrimary]) => borderBasePrimary, ['colors.borderBasePrimary']),
25
25
  borderAutofilledHovered: computed(([borderStrongPrimary]) => borderStrongPrimary, ['colors.borderStrongPrimary']),
26
26
  clearButtonBackground: SEMANTIC_COLORS.shade60,
27
- controlBorder: computed(([borderBaseFormsControl]) => borderBaseFormsControl, ['colors.borderBaseFormsControl']),
27
+ controlBorder: computed(([borderBaseProminent]) => borderBaseProminent, ['colors.borderBaseProminent']),
28
28
  controlBorderSelected: computed(([borderStrongPrimary]) => borderStrongPrimary, ['colors.borderStrongPrimary']),
29
29
  controlBorderDisabled: computed(([borderBaseDisabled]) => borderBaseDisabled, ['colors.borderBaseDisabled']),
30
30
  controlBackgroundUnselected: 'transparent',
@@ -127,11 +127,12 @@ export const dark_border_colors = {
127
127
  borderBaseDanger: SEMANTIC_COLORS.danger120,
128
128
  borderBasePlain: SEMANTIC_COLORS.shade100,
129
129
  borderBaseSubdued: SEMANTIC_COLORS.shade120,
130
+ borderBaseProminent: SEMANTIC_COLORS.shade80,
130
131
  borderBaseDisabled: SEMANTIC_COLORS.shade100,
131
132
  borderBaseFloating: SEMANTIC_COLORS.shade120,
132
133
  borderBaseFormsColorSwatch: SEMANTIC_COLORS.plainLightAlpha32,
133
- borderBaseFormsControl: SEMANTIC_COLORS.shade80,
134
134
  borderInteractiveFormsHoverPlain: SEMANTIC_COLORS.shade90,
135
+ borderInteractiveFormsHoverProminent: SEMANTIC_COLORS.shade60,
135
136
  borderInteractiveFormsHoverDanger: SEMANTIC_COLORS.danger70,
136
137
  borderStrongPrimary: SEMANTIC_COLORS.primary60,
137
138
  borderStrongAccent: SEMANTIC_COLORS.accent60,
@@ -127,11 +127,12 @@ export const border_colors = {
127
127
  borderBaseDanger: SEMANTIC_COLORS.danger30,
128
128
  borderBasePlain: SEMANTIC_COLORS.shade30,
129
129
  borderBaseSubdued: SEMANTIC_COLORS.shade20,
130
+ borderBaseProminent: SEMANTIC_COLORS.shade50,
130
131
  borderBaseDisabled: SEMANTIC_COLORS.shade30,
131
132
  borderBaseFloating: PRIMITIVE_COLORS.transparent,
132
133
  borderBaseFormsColorSwatch: SEMANTIC_COLORS.shade100Alpha24,
133
- borderBaseFormsControl: SEMANTIC_COLORS.shade60,
134
134
  borderInteractiveFormsHoverPlain: SEMANTIC_COLORS.shade40,
135
+ borderInteractiveFormsHoverProminent: SEMANTIC_COLORS.shade70,
135
136
  borderInteractiveFormsHoverDanger: SEMANTIC_COLORS.danger80,
136
137
  borderStrongPrimary: SEMANTIC_COLORS.primary90,
137
138
  borderStrongAccent: SEMANTIC_COLORS.accent90,
@@ -445,11 +445,12 @@
445
445
  "euiColorBorderBaseDanger": "#5E2129",
446
446
  "euiColorBorderBasePlain": "#485975",
447
447
  "euiColorBorderBaseSubdued": "#2B394F",
448
+ "euiColorBorderBaseProminent": "#6A7FA0",
448
449
  "euiColorBorderBaseDisabled": "#485975",
449
450
  "euiColorBorderBaseFloating": "#2B394F",
450
451
  "euiColorBorderBaseFormsColorSwatch": "rgba(255,255,255, 0.32)",
451
- "euiColorBorderBaseFormsControl": "#6A7FA0",
452
452
  "euiColorBorderInteractiveFormsHoverPlain": "#5A6D8C",
453
+ "euiColorBorderInteractiveFormsHoverProminent": "#8E9FBC",
453
454
  "euiColorBorderInteractiveFormsHoverDanger": "#EE4C48",
454
455
  "euiColorBorderStrongPrimary": "#61A2FF",
455
456
  "euiColorBorderStrongAccent": "#EE72A6",
@@ -446,11 +446,12 @@ declare module '@elastic/eui-theme-borealis/lib/eui_theme_borealis_dark.json' {
446
446
  euiColorBorderBaseDanger: string;
447
447
  euiColorBorderBasePlain: string;
448
448
  euiColorBorderBaseSubdued: string;
449
+ euiColorBorderBaseProminent: string;
449
450
  euiColorBorderBaseDisabled: string;
450
451
  euiColorBorderBaseFloating: string;
451
452
  euiColorBorderBaseFormsColorSwatch: string;
452
- euiColorBorderBaseFormsControl: string;
453
453
  euiColorBorderInteractiveFormsHoverPlain: string;
454
+ euiColorBorderInteractiveFormsHoverProminent: string;
454
455
  euiColorBorderInteractiveFormsHoverDanger: string;
455
456
  euiColorBorderStrongPrimary: string;
456
457
  euiColorBorderStrongAccent: string;
@@ -445,11 +445,12 @@
445
445
  "euiColorBorderBaseDanger": "#FFC9C2",
446
446
  "euiColorBorderBasePlain": "#CAD3E2",
447
447
  "euiColorBorderBaseSubdued": "#E3E8F2",
448
+ "euiColorBorderBaseProminent": "#A2B1C9",
448
449
  "euiColorBorderBaseDisabled": "#CAD3E2",
449
450
  "euiColorBorderBaseFloating": "transparent",
450
451
  "euiColorBorderBaseFormsColorSwatch": "rgba(72,89,117, 0.24)",
451
- "euiColorBorderBaseFormsControl": "#8E9FBC",
452
452
  "euiColorBorderInteractiveFormsHoverPlain": "#B4C1D5",
453
+ "euiColorBorderInteractiveFormsHoverProminent": "#798EAF",
453
454
  "euiColorBorderInteractiveFormsHoverDanger": "#DA3737",
454
455
  "euiColorBorderStrongPrimary": "#0B64DD",
455
456
  "euiColorBorderStrongAccent": "#BC1E70",
@@ -446,11 +446,12 @@ declare module '@elastic/eui-theme-borealis/lib/eui_theme_borealis_light.json' {
446
446
  euiColorBorderBaseDanger: string;
447
447
  euiColorBorderBasePlain: string;
448
448
  euiColorBorderBaseSubdued: string;
449
+ euiColorBorderBaseProminent: string;
449
450
  euiColorBorderBaseDisabled: string;
450
451
  euiColorBorderBaseFloating: string;
451
452
  euiColorBorderBaseFormsColorSwatch: string;
452
- euiColorBorderBaseFormsControl: string;
453
453
  euiColorBorderInteractiveFormsHoverPlain: string;
454
+ euiColorBorderInteractiveFormsHoverProminent: string;
454
455
  euiColorBorderInteractiveFormsHoverDanger: string;
455
456
  euiColorBorderStrongPrimary: string;
456
457
  euiColorBorderStrongAccent: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elastic/eui-theme-borealis",
3
- "version": "3.6.0",
3
+ "version": "5.0.0",
4
4
  "description": "A visual theme for EUI",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "scripts": {
@@ -33,7 +33,7 @@
33
33
  "@babel/preset-env": "^7.21.5",
34
34
  "@babel/preset-react": "^7.18.6",
35
35
  "@babel/preset-typescript": "^7.21.5",
36
- "@elastic/eui-theme-common": "5.0.0",
36
+ "@elastic/eui-theme-common": "7.0.0",
37
37
  "@types/chroma-js": "^2.4.0",
38
38
  "@types/jest": "^29.5.12",
39
39
  "@types/prettier": "2.7.3",
@@ -116,12 +116,13 @@ $euiColorBorderBaseDanger: $euiColorDanger120 !default;
116
116
 
117
117
  $euiColorBorderBasePlain: $euiColorShade100 !default;
118
118
  $euiColorBorderBaseSubdued: $euiColorShade120 !default;
119
+ $euiColorBorderBaseProminent: $euiColorShade80 !default;
119
120
  $euiColorBorderBaseDisabled: $euiColorShade100 !default;
120
121
  $euiColorBorderBaseFloating: $euiColorShade120 !default;
121
122
  $euiColorBorderBaseFormsColorSwatch: $euiColorPlainLightAlpha32 !default;
122
- $euiColorBorderBaseFormsControl: $euiColorShade80 !default;
123
123
 
124
124
  $euiColorBorderInteractiveFormsHoverPlain: $euiColorShade90 !default;
125
+ $euiColorBorderInteractiveFormsHoverProminent: $euiColorShade60 !default;
125
126
  $euiColorBorderInteractiveFormsHoverDanger: $euiColorDanger70 !default;
126
127
 
127
128
  $euiColorBorderStrongPrimary: $euiColorPrimary60 !default;
@@ -117,13 +117,14 @@ $euiColorBorderBaseDanger: $euiColorDanger30 !default;
117
117
 
118
118
  $euiColorBorderBasePlain: $euiColorShade30 !default;
119
119
  $euiColorBorderBaseSubdued: $euiColorShade20 !default;
120
+ $euiColorBorderBaseProminent: $euiColorShade50 !default;
120
121
  $euiColorBorderBaseDisabled: $euiColorShade30 !default;
121
122
  $euiColorBorderBaseFloating: $euiColorTransparent !default;
122
123
 
123
124
  $euiColorBorderBaseFormsColorSwatch: $euiColorShade100Alpha24 !default;
124
- $euiColorBorderBaseFormsControl: $euiColorShade60 !default;
125
125
 
126
126
  $euiColorBorderInteractiveFormsHoverPlain: $euiColorShade40 !default;
127
+ $euiColorBorderInteractiveFormsHoverProminent: $euiColorShade70 !default;
127
128
  $euiColorBorderInteractiveFormsHoverDanger: $euiColorDanger80 !default;
128
129
 
129
130
  $euiColorBorderStrongPrimary: $euiColorPrimary90 !default;