@elastic/eui 101.4.0 → 102.0.0-amsterdam.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/dist/eui_theme_amsterdam_dark.json +20 -15
- package/dist/eui_theme_amsterdam_dark.json.d.ts +20 -15
- package/dist/eui_theme_amsterdam_light.json +20 -15
- package/dist/eui_theme_amsterdam_light.json.d.ts +20 -15
- package/dist/eui_theme_borealis_dark.json +20 -15
- package/dist/eui_theme_borealis_dark.json.d.ts +20 -15
- package/dist/eui_theme_borealis_light.json +20 -15
- package/dist/eui_theme_borealis_light.json.d.ts +20 -15
- package/es/components/badge/badge.js +1 -1
- package/es/components/badge/badge.styles.js +3 -1
- package/es/components/badge/color_utils.js +2 -0
- package/es/components/datagrid/body/header/column_sorting.js +10 -9
- package/es/components/datagrid/body/header/data_grid_header_cell.js +1 -2
- package/es/components/empty_prompt/empty_prompt.styles.js +3 -1
- package/es/components/form/form_control_layout/form_control_layout_icons.styles.js +4 -2
- package/es/components/icon/icon.styles.js +5 -3
- package/es/components/icon/named_colors.js +1 -1
- package/es/components/provider/provider.js +2 -2
- package/es/global_styling/mixins/_button.js +2 -2
- package/es/global_styling/mixins/_color.js +1 -1
- package/es/services/color/vis_color_store.js +1 -1
- package/es/services/theme/context.js +2 -2
- package/es/themes/amsterdam/global_styling/variables/_buttons.js +189 -142
- package/es/themes/amsterdam/global_styling/variables/_colors.js +218 -176
- package/es/themes/amsterdam/global_styling/variables/_colors_severity.js +20 -0
- package/es/themes/amsterdam/global_styling/variables/_colors_vis.js +0 -15
- package/eui.d.ts +386 -348
- package/lib/components/badge/badge.js +1 -1
- package/lib/components/badge/badge.styles.js +3 -1
- package/lib/components/badge/color_utils.js +2 -0
- package/lib/components/datagrid/body/header/column_sorting.js +10 -9
- package/lib/components/datagrid/body/header/data_grid_header_cell.js +1 -2
- package/lib/components/empty_prompt/empty_prompt.styles.js +3 -1
- package/lib/components/form/form_control_layout/form_control_layout_icons.styles.js +4 -2
- package/lib/components/icon/icon.styles.js +5 -3
- package/lib/components/icon/named_colors.js +1 -1
- package/lib/components/provider/provider.js +2 -2
- package/lib/global_styling/mixins/_button.js +2 -2
- package/lib/global_styling/mixins/_color.js +1 -1
- package/lib/services/color/vis_color_store.js +2 -2
- package/lib/services/theme/context.js +2 -2
- package/lib/themes/amsterdam/global_styling/variables/_buttons.js +189 -142
- package/lib/themes/amsterdam/global_styling/variables/_colors.js +218 -176
- package/lib/themes/amsterdam/global_styling/variables/_colors_severity.js +26 -0
- package/lib/themes/amsterdam/global_styling/variables/_colors_vis.js +0 -15
- package/optimize/es/components/badge/badge.js +1 -1
- package/optimize/es/components/badge/badge.styles.js +3 -1
- package/optimize/es/components/badge/color_utils.js +2 -0
- package/optimize/es/components/datagrid/body/header/column_sorting.js +10 -9
- package/optimize/es/components/datagrid/body/header/data_grid_header_cell.js +1 -2
- package/optimize/es/components/empty_prompt/empty_prompt.styles.js +3 -1
- package/optimize/es/components/form/form_control_layout/form_control_layout_icons.styles.js +4 -2
- package/optimize/es/components/icon/icon.styles.js +5 -3
- package/optimize/es/components/icon/named_colors.js +1 -1
- package/optimize/es/components/provider/provider.js +2 -2
- package/optimize/es/global_styling/mixins/_button.js +2 -2
- package/optimize/es/global_styling/mixins/_color.js +1 -1
- package/optimize/es/services/color/vis_color_store.js +1 -1
- package/optimize/es/services/theme/context.js +2 -2
- package/optimize/es/themes/amsterdam/global_styling/variables/_buttons.js +189 -142
- package/optimize/es/themes/amsterdam/global_styling/variables/_colors.js +218 -176
- package/optimize/es/themes/amsterdam/global_styling/variables/_colors_severity.js +20 -0
- package/optimize/es/themes/amsterdam/global_styling/variables/_colors_vis.js +0 -15
- package/optimize/lib/components/badge/badge.js +1 -1
- package/optimize/lib/components/badge/badge.styles.js +3 -1
- package/optimize/lib/components/badge/color_utils.js +2 -0
- package/optimize/lib/components/datagrid/body/header/column_sorting.js +10 -9
- package/optimize/lib/components/datagrid/body/header/data_grid_header_cell.js +1 -2
- package/optimize/lib/components/empty_prompt/empty_prompt.styles.js +3 -1
- package/optimize/lib/components/form/form_control_layout/form_control_layout_icons.styles.js +4 -2
- package/optimize/lib/components/icon/icon.styles.js +5 -3
- package/optimize/lib/components/icon/named_colors.js +1 -1
- package/optimize/lib/components/provider/provider.js +2 -2
- package/optimize/lib/global_styling/mixins/_button.js +2 -2
- package/optimize/lib/global_styling/mixins/_color.js +1 -1
- package/optimize/lib/services/color/vis_color_store.js +2 -2
- package/optimize/lib/services/theme/context.js +2 -2
- package/optimize/lib/themes/amsterdam/global_styling/variables/_buttons.js +189 -142
- package/optimize/lib/themes/amsterdam/global_styling/variables/_colors.js +218 -176
- package/optimize/lib/themes/amsterdam/global_styling/variables/_colors_severity.js +26 -0
- package/optimize/lib/themes/amsterdam/global_styling/variables/_colors_vis.js +0 -15
- package/package.json +4 -4
- package/src/themes/amsterdam/_colors_dark.scss +13 -0
- package/src/themes/amsterdam/_colors_light.scss +13 -0
- package/src/themes/amsterdam/global_styling/variables/_colors_severity.scss +9 -0
- package/test-env/components/badge/badge.js +1 -1
- package/test-env/components/badge/badge.styles.js +3 -1
- package/test-env/components/badge/color_utils.js +2 -0
- package/test-env/components/datagrid/body/header/column_sorting.js +10 -9
- package/test-env/components/datagrid/body/header/data_grid_header_cell.js +1 -2
- package/test-env/components/empty_prompt/empty_prompt.styles.js +3 -1
- package/test-env/components/form/form_control_layout/form_control_layout_icons.styles.js +4 -2
- package/test-env/components/icon/icon.styles.js +5 -3
- package/test-env/components/icon/named_colors.js +1 -1
- package/test-env/components/provider/provider.js +2 -2
- package/test-env/global_styling/mixins/_button.js +2 -2
- package/test-env/global_styling/mixins/_color.js +1 -1
- package/test-env/services/color/vis_color_store.js +2 -2
- package/test-env/services/theme/context.js +2 -2
- package/test-env/themes/amsterdam/global_styling/variables/_buttons.js +189 -142
- package/test-env/themes/amsterdam/global_styling/variables/_colors.js +218 -176
- package/test-env/themes/amsterdam/global_styling/variables/_colors_severity.js +26 -0
- package/test-env/themes/amsterdam/global_styling/variables/_colors_vis.js +0 -15
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.severityColors = void 0;
|
|
7
|
+
/*
|
|
8
|
+
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
9
|
+
* or more contributor license agreements. Licensed under the Elastic License
|
|
10
|
+
* 2.0 and the Server Side Public License, v 1; you may not use this file except
|
|
11
|
+
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
|
12
|
+
* Side Public License, v 1.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* These are not actually used, but we map them to ensure token parity.
|
|
17
|
+
* They are mapped to other vis colors
|
|
18
|
+
*/
|
|
19
|
+
var severityColors = exports.severityColors = {
|
|
20
|
+
unknown: '#D3DAE6',
|
|
21
|
+
neutral: '#BECFE3',
|
|
22
|
+
success: '#54B399',
|
|
23
|
+
warning: '#D6BF57',
|
|
24
|
+
risk: '#DA8B45',
|
|
25
|
+
danger: '#E7664C'
|
|
26
|
+
};
|
|
@@ -109,21 +109,6 @@ var colorVis = exports.colorVis = {
|
|
|
109
109
|
euiColorVisDanger0: '#CC5642',
|
|
110
110
|
euiColorVisDanger1: euiPaletteColorBlind.euiColorVis9.graphic,
|
|
111
111
|
euiColorVisNeutral0: '#FFFFFF',
|
|
112
|
-
euiColorSeverity0: '#D3DAE6',
|
|
113
|
-
euiColorSeverity1: '#6092C0',
|
|
114
|
-
euiColorSeverity2: '#78A2C9',
|
|
115
|
-
euiColorSeverity3: '#90B0D1',
|
|
116
|
-
euiColorSeverity4: '#A6C0DA',
|
|
117
|
-
euiColorSeverity5: '#BECFE3',
|
|
118
|
-
euiColorSeverity6: '#DECC79',
|
|
119
|
-
euiColorSeverity7: '#D6BF57',
|
|
120
|
-
euiColorSeverity8: '#E69D8F',
|
|
121
|
-
euiColorSeverity9: '#E2907F',
|
|
122
|
-
euiColorSeverity10: '#E18773',
|
|
123
|
-
euiColorSeverity11: '#DD7B67',
|
|
124
|
-
euiColorSeverity12: '#D66E5C',
|
|
125
|
-
euiColorSeverity13: '#D2634E',
|
|
126
|
-
euiColorSeverity14: '#CC5642',
|
|
127
112
|
euiColorVisGrey0: '#d3dae6',
|
|
128
113
|
euiColorVisGrey1: '#98a2b3',
|
|
129
114
|
euiColorVisGrey2: '#69707d',
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elastic/eui",
|
|
3
3
|
"description": "Elastic UI Component Library",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "102.0.0-amsterdam.0",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"main": "lib",
|
|
7
7
|
"module": "es",
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"url": "https://github.com/elastic/eui.git"
|
|
53
53
|
},
|
|
54
54
|
"dependencies": {
|
|
55
|
-
"@elastic/eui-theme-common": "0.
|
|
55
|
+
"@elastic/eui-theme-common": "1.0.0",
|
|
56
56
|
"@elastic/prismjs-esql": "^1.1.0",
|
|
57
57
|
"@hello-pangea/dnd": "^16.6.0",
|
|
58
58
|
"@types/lodash": "^4.14.202",
|
|
@@ -106,7 +106,7 @@
|
|
|
106
106
|
"@cypress/webpack-dev-server": "^1.7.0",
|
|
107
107
|
"@elastic/charts": "^64.1.0",
|
|
108
108
|
"@elastic/datemath": "^5.0.3",
|
|
109
|
-
"@elastic/eui-theme-borealis": "0.
|
|
109
|
+
"@elastic/eui-theme-borealis": "1.0.0",
|
|
110
110
|
"@emotion/babel-preset-css-prop": "^11.11.0",
|
|
111
111
|
"@emotion/cache": "^11.11.0",
|
|
112
112
|
"@emotion/css": "^11.11.0",
|
|
@@ -259,7 +259,7 @@
|
|
|
259
259
|
},
|
|
260
260
|
"peerDependencies": {
|
|
261
261
|
"@elastic/datemath": "^5.0.2",
|
|
262
|
-
"@elastic/eui-theme-borealis": "0.
|
|
262
|
+
"@elastic/eui-theme-borealis": "1.0.0",
|
|
263
263
|
"@emotion/css": "11.x",
|
|
264
264
|
"@emotion/react": "11.x",
|
|
265
265
|
"@types/react": "^16.9 || ^17.0 || ^18.0",
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
// This extra import allows any variables that are created via functions to work when loaded into JS
|
|
4
4
|
@import 'node_modules/@elastic/eui-theme-common/src/global_styling/functions/index';
|
|
5
|
+
@import './global_styling/variables/colors_severity';
|
|
5
6
|
|
|
6
7
|
// Constants
|
|
7
8
|
$euiColorGhost: #FFF !default;
|
|
@@ -34,8 +35,10 @@ $euiColorHighlight: #2E2D25 !default;
|
|
|
34
35
|
$euiColorBackgroundBasePrimary: shade($euiColorPrimary, 80%) !default;
|
|
35
36
|
$euiColorBackgroundBaseAccent: shade($euiColorAccent, 80%) !default;
|
|
36
37
|
$euiColorBackgroundBaseAccentSecondary: shade($euiColorAccentSecondary, 80%) !default;
|
|
38
|
+
$euiColorBackgroundBaseNeutral: shade($euiColorSeverityNeutral, 80%) !default;
|
|
37
39
|
$euiColorBackgroundBaseSuccess: shade($euiColorSuccess, 80%) !default;
|
|
38
40
|
$euiColorBackgroundBaseWarning: shade($euiColorWarning, 80%) !default;
|
|
41
|
+
$euiColorBackgroundBaseRisk: shade($euiColorSeverityRisk, 80%) !default;
|
|
39
42
|
$euiColorBackgroundBaseDanger: shade($euiColorDanger, 80%) !default;
|
|
40
43
|
$euiColorBackgroundBaseSubdued: shade($euiPageBackgroundColor, 80%) !default;
|
|
41
44
|
$euiColorBackgroundBaseDisabled: transparentize($euiColorLightShade, 0.15)!default;
|
|
@@ -52,16 +55,20 @@ $euiColorBackgroundBaseSkeletonMiddle: shade($euiColorLightShade, 0.24) !default
|
|
|
52
55
|
$euiColorBackgroundLightPrimary: shade($euiColorPrimary, 0.7) !default;
|
|
53
56
|
$euiColorBackgroundLightAccent: shade($euiColorAccent, 0.7) !default;
|
|
54
57
|
$euiColorBackgroundLightAccentSecondary: shade($euiColorAccentSecondary, 0.7) !default;
|
|
58
|
+
$euiColorBackgroundLightNeutral: shade($euiColorSeverityNeutral, 0.7) !default;
|
|
55
59
|
$euiColorBackgroundLightSuccess: shade($euiColorSuccess, 0.7) !default;
|
|
56
60
|
$euiColorBackgroundLightWarning: shade($euiColorWarning, 0.7) !default;
|
|
61
|
+
$euiColorBackgroundLightRisk: shade($euiColorSeverityRisk, 0.7) !default;
|
|
57
62
|
$euiColorBackgroundLightDanger: shade($euiColorDanger, 0.7) !default;
|
|
58
63
|
$euiColorBackgroundLightText: shade($euiColorLightShade, 0.2) !default;
|
|
59
64
|
|
|
60
65
|
$euiColorBackgroundFilledPrimary: $euiColorPrimary !default;
|
|
61
66
|
$euiColorBackgroundFilledAccent: $euiColorAccent !default;
|
|
62
67
|
$euiColorBackgroundFilledAccentSecondary: $euiColorAccentSecondary !default;
|
|
68
|
+
$euiColorBackgroundFilledNeutral: $euiColorSeverityNeutral !default;
|
|
63
69
|
$euiColorBackgroundFilledSuccess: $euiColorSuccess !default;
|
|
64
70
|
$euiColorBackgroundFilledWarning: $euiColorWarning !default;
|
|
71
|
+
$euiColorBackgroundFilledRisk: $euiColorSeverityRisk !default;
|
|
65
72
|
$euiColorBackgroundFilledDanger: $euiColorDanger !default;
|
|
66
73
|
$euiColorBackgroundFilledText: #DFE5EF !default;
|
|
67
74
|
|
|
@@ -88,8 +95,10 @@ $euiColorDisabledText: makeDisabledContrastColor($euiColorDisabled) !default;
|
|
|
88
95
|
$euiColorTextPrimary: $euiColorPrimaryText !default;
|
|
89
96
|
$euiColorTextAccent: $euiColorAccentText !default;
|
|
90
97
|
$euiColorTextAccentSecondary: $euiColorSuccessText !default;
|
|
98
|
+
$euiColorTextNeutral: makeHighContrastColor($euiColorSeverityNeutral) !default;
|
|
91
99
|
$euiColorTextSuccess: $euiColorSuccessText !default;
|
|
92
100
|
$euiColorTextWarning: $euiColorWarningText !default;
|
|
101
|
+
$euiColorTextRisk: makeHighContrastColor($euiColorSeverityRisk) !default;
|
|
93
102
|
$euiColorTextDanger: $euiColorDangerText !default;
|
|
94
103
|
|
|
95
104
|
$euiLinkColor: $euiColorPrimaryText !default;
|
|
@@ -98,8 +107,10 @@ $euiLinkColor: $euiColorPrimaryText !default;
|
|
|
98
107
|
$euiColorBorderBasePrimary: shade($euiColorPrimary, 0.6) !default;
|
|
99
108
|
$euiColorBorderBaseAccent: shade($euiColorAccent, 0.6) !default;
|
|
100
109
|
$euiColorBorderBaseAccentSecondary: shade($euiColorAccentSecondary, 0.6) !default;
|
|
110
|
+
$euiColorBorderBaseNeutral: shade($euiColorSeverityNeutral, 0.6) !default;
|
|
101
111
|
$euiColorBorderBaseSuccess: shade($euiColorSuccess, 0.6) !default;
|
|
102
112
|
$euiColorBorderBaseWarning: shade($euiColorWarning, 0.6) !default;
|
|
113
|
+
$euiColorBorderBaseRisk: shade($euiColorSeverityRisk, 0.6) !default;
|
|
103
114
|
$euiColorBorderBaseDanger: shade($euiColorDanger, 0.6) !default;
|
|
104
115
|
|
|
105
116
|
$euiColorBorderBasePlain: $euiColorLightShade !default;
|
|
@@ -112,8 +123,10 @@ $euiColorBorderBaseFormsControl: tint($euiColorLightestShade, 0.31) !default;
|
|
|
112
123
|
$euiColorBorderStrongPrimary: $euiColorBorderBasePrimary !default;
|
|
113
124
|
$euiColorBorderStrongAccent: $euiColorBorderBaseAccent !default;
|
|
114
125
|
$euiColorBorderStrongAccentSecondary: $euiColorBorderBaseAccentSecondary !default;
|
|
126
|
+
$euiColorBorderStrongNeutral: $euiColorBorderBasePrimary !default;
|
|
115
127
|
$euiColorBorderStrongSuccess: $euiColorBorderBaseSuccess !default;
|
|
116
128
|
$euiColorBorderStrongWarning: $euiColorBorderBaseWarning !default;
|
|
129
|
+
$euiColorBorderStrongRisk: $euiColorBorderBaseWarning !default;
|
|
117
130
|
$euiColorBorderStrongDanger: $euiColorBorderBaseDanger !default;
|
|
118
131
|
|
|
119
132
|
// Charts
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
// This extra import allows any variables that are created via functions to work when loaded into JS
|
|
4
4
|
@import 'node_modules/@elastic/eui-theme-common/src/global_styling/functions/index';
|
|
5
|
+
@import './global_styling/variables/colors_severity';
|
|
5
6
|
|
|
6
7
|
// Constants
|
|
7
8
|
$euiColorGhost: #FFF !default;
|
|
@@ -34,8 +35,10 @@ $euiColorHighlight: tint($euiColorWarning, 90%) !default;
|
|
|
34
35
|
$euiColorBackgroundBasePrimary: tint($euiColorPrimary, 90%) !default;
|
|
35
36
|
$euiColorBackgroundBaseAccent: tint($euiColorAccent, 90%) !default;
|
|
36
37
|
$euiColorBackgroundBaseAccentSecondary: tint($euiColorAccentSecondary, 90%) !default;
|
|
38
|
+
$euiColorBackgroundBaseNeutral: tint($euiColorSeverityNeutral, 90%) !default;
|
|
37
39
|
$euiColorBackgroundBaseSuccess: tint($euiColorSuccess, 90%) !default;
|
|
38
40
|
$euiColorBackgroundBaseWarning: tint($euiColorWarning, 90%) !default;
|
|
41
|
+
$euiColorBackgroundBaseRisk: tint($euiColorSeverityRisk, 90%) !default;
|
|
39
42
|
$euiColorBackgroundBaseDanger: tint($euiColorDanger, 90%) !default;
|
|
40
43
|
$euiColorBackgroundBaseSubdued: $euiPageBackgroundColor !default;
|
|
41
44
|
$euiColorBackgroundBaseDisabled: transparentize($euiColorLightShade, 0.15) !default;
|
|
@@ -52,16 +55,20 @@ $euiColorBackgroundBaseSkeletonMiddle: tint($euiColorLightShade, 0.8) !default;
|
|
|
52
55
|
$euiColorBackgroundLightPrimary: tint($euiColorPrimary, 0.8) !default;
|
|
53
56
|
$euiColorBackgroundLightAccent: tint($euiColorAccent, 0.8) !default;
|
|
54
57
|
$euiColorBackgroundLightAccentSecondary: tint($euiColorAccentSecondary, 0.8) !default;
|
|
58
|
+
$euiColorBackgroundLightNeutral: tint($euiColorSeverityNeutral, 0.8) !default;
|
|
55
59
|
$euiColorBackgroundLightSuccess: tint($euiColorSuccess, 0.8) !default;
|
|
56
60
|
$euiColorBackgroundLightWarning: tint($euiColorWarning, 0.8) !default;
|
|
61
|
+
$euiColorBackgroundLightRisk: tint($euiColorSeverityRisk, 0.8) !default;
|
|
57
62
|
$euiColorBackgroundLightDanger: tint($euiColorDanger, 0.8) !default;
|
|
58
63
|
$euiColorBackgroundLightText: tint($euiColorLightShade, 0.5) !default;
|
|
59
64
|
|
|
60
65
|
$euiColorBackgroundFilledPrimary: $euiColorPrimary !default;
|
|
61
66
|
$euiColorBackgroundFilledAccent: tint($euiColorAccent, 0.3) !default;
|
|
62
67
|
$euiColorBackgroundFilledAccentSecondary: tint($euiColorAccentSecondary, 0.3) !default;
|
|
68
|
+
$euiColorBackgroundFilledNeutral: $euiColorSeverityNeutral !default;
|
|
63
69
|
$euiColorBackgroundFilledSuccess: tint($euiColorSuccess, 0.3) !default;
|
|
64
70
|
$euiColorBackgroundFilledWarning: $euiColorWarning !default;
|
|
71
|
+
$euiColorBackgroundFilledRisk: $euiColorSeverityRisk !default;
|
|
65
72
|
$euiColorBackgroundFilledDanger: $euiColorDanger !default;
|
|
66
73
|
$euiColorBackgroundFilledText: $euiColorDarkShade !default;
|
|
67
74
|
|
|
@@ -88,8 +95,10 @@ $euiColorDisabledText: makeDisabledContrastColor($euiColorDisabled) !default;
|
|
|
88
95
|
$euiColorTextPrimary: $euiColorPrimaryText !default;
|
|
89
96
|
$euiColorTextAccent: $euiColorAccentText !default;
|
|
90
97
|
$euiColorTextAccentSecondary: $euiColorSuccessText !default;
|
|
98
|
+
$euiColorTextNeutral: makeHighContrastColor($euiColorSeverityNeutral) !default;
|
|
91
99
|
$euiColorTextSuccess: $euiColorSuccessText !default;
|
|
92
100
|
$euiColorTextWarning: $euiColorWarningText !default;
|
|
101
|
+
$euiColorTextRisk: makeHighContrastColor($euiColorSeverityRisk) !default;
|
|
93
102
|
$euiColorTextDanger: $euiColorDangerText !default;
|
|
94
103
|
|
|
95
104
|
$euiLinkColor: $euiColorPrimaryText !default;
|
|
@@ -98,8 +107,10 @@ $euiLinkColor: $euiColorPrimaryText !default;
|
|
|
98
107
|
$euiColorBorderBasePrimary: tint($euiColorPrimary, 0.6) !default;
|
|
99
108
|
$euiColorBorderBaseAccent: tint($euiColorAccent, 0.6) !default;
|
|
100
109
|
$euiColorBorderBaseAccentSecondary: tint($euiColorAccentSecondary, 0.6) !default;
|
|
110
|
+
$euiColorBorderBaseNeutral: tint($euiColorSeverityNeutral, 0.6) !default;
|
|
101
111
|
$euiColorBorderBaseSuccess: tint($euiColorSuccess, 0.6) !default;
|
|
102
112
|
$euiColorBorderBaseWarning: tint($euiColorWarning, 0.6) !default;
|
|
113
|
+
$euiColorBorderBaseRisk: tint($euiColorSeverityRisk, 0.6) !default;
|
|
103
114
|
$euiColorBorderBaseDanger: tint($euiColorDanger, 0.6) !default;
|
|
104
115
|
|
|
105
116
|
$euiColorBorderBasePlain: $euiColorLightShade !default;
|
|
@@ -112,8 +123,10 @@ $euiColorBorderBaseFormsControl: shade($euiColorLightestShade, 0.4) !default;
|
|
|
112
123
|
$euiColorBorderStrongPrimary: $euiColorBorderBasePrimary !default;
|
|
113
124
|
$euiColorBorderStrongAccent: $euiColorBorderBaseAccent !default;
|
|
114
125
|
$euiColorBorderStrongAccentSecondary: $euiColorBorderBaseAccentSecondary !default;
|
|
126
|
+
$euiColorBorderStrongNeutral: $euiColorBorderBasePrimary !default;
|
|
115
127
|
$euiColorBorderStrongSuccess: $euiColorBorderBaseSuccess !default;
|
|
116
128
|
$euiColorBorderStrongWarning: $euiColorBorderBaseWarning !default;
|
|
129
|
+
$euiColorBorderStrongRisk: $euiColorBorderBaseWarning !default;
|
|
117
130
|
$euiColorBorderStrongDanger: $euiColorBorderBaseDanger !default;
|
|
118
131
|
|
|
119
132
|
// Charts
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
// Severity colors
|
|
2
|
+
// stylelint-disable color-no-hex
|
|
3
|
+
|
|
4
|
+
$euiColorSeverityUnknown: #D3DAE6 !default;
|
|
5
|
+
$euiColorSeverityNeutral: #BECFE3 !default;
|
|
6
|
+
$euiColorSeveritySuccess: #54B399 !default;
|
|
7
|
+
$euiColorSeverityWarning: #D6BF57 !default;
|
|
8
|
+
$euiColorSeverityRisk: #DA8B45 !default;
|
|
9
|
+
$euiColorSeverityDanger: #E7664C !default;
|
|
@@ -33,7 +33,7 @@ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e;
|
|
|
33
33
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
34
34
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
35
35
|
var ICON_SIDES = exports.ICON_SIDES = ['left', 'right'];
|
|
36
|
-
var COLORS = exports.COLORS = ['default', 'hollow', 'primary', '
|
|
36
|
+
var COLORS = exports.COLORS = ['default', 'hollow', 'primary', 'accent', 'neutral', 'success', 'warning', 'risk', 'danger'];
|
|
37
37
|
var EuiBadge = exports.EuiBadge = function EuiBadge(_ref) {
|
|
38
38
|
var children = _ref.children,
|
|
39
39
|
_ref$color = _ref.color,
|
|
@@ -42,9 +42,11 @@ var euiBadgeStyles = exports.euiBadgeStyles = function euiBadgeStyles(euiThemeCo
|
|
|
42
42
|
hollow: /*#__PURE__*/(0, _react.css)(setBadgeColorVars(badgeColors.hollow), " border-color:", badgeColors.hollow.borderColor, ";;label:hollow;"),
|
|
43
43
|
primary: /*#__PURE__*/(0, _react.css)(setBadgeColorVars(badgeColors.primary), ";label:primary;"),
|
|
44
44
|
accent: /*#__PURE__*/(0, _react.css)(setBadgeColorVars(badgeColors.accent), ";label:accent;"),
|
|
45
|
+
neutral: /*#__PURE__*/(0, _react.css)(setBadgeColorVars(badgeColors.neutral), ";label:neutral;"),
|
|
46
|
+
success: /*#__PURE__*/(0, _react.css)(setBadgeColorVars(badgeColors.success), ";label:success;"),
|
|
45
47
|
warning: /*#__PURE__*/(0, _react.css)(setBadgeColorVars(badgeColors.warning), ";label:warning;"),
|
|
48
|
+
risk: /*#__PURE__*/(0, _react.css)(setBadgeColorVars(badgeColors.risk), ";label:risk;"),
|
|
46
49
|
danger: /*#__PURE__*/(0, _react.css)(setBadgeColorVars(badgeColors.danger), ";label:danger;"),
|
|
47
|
-
success: /*#__PURE__*/(0, _react.css)(setBadgeColorVars(badgeColors.success), ";label:success;"),
|
|
48
50
|
disabled: /*#__PURE__*/(0, _react.css)(setBadgeColorVars(badgeColors.disabled), " border-color:", badgeColors.disabled.borderColor, ";*::selection{color:", euiTheme.colors.emptyShade, ";};label:disabled;"),
|
|
49
51
|
// Content wrapper
|
|
50
52
|
euiBadge__content: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)(
|
|
@@ -26,8 +26,10 @@ var euiBadgeColors = exports.euiBadgeColors = function euiBadgeColors(euiThemeCo
|
|
|
26
26
|
return {
|
|
27
27
|
// Colors shared between buttons and badges
|
|
28
28
|
primary: (0, _button.euiButtonFillColor)(euiThemeContext, 'primary'),
|
|
29
|
+
neutral: (0, _button.euiButtonFillColor)(euiThemeContext, 'neutral'),
|
|
29
30
|
success: (0, _button.euiButtonFillColor)(euiThemeContext, 'success'),
|
|
30
31
|
warning: (0, _button.euiButtonFillColor)(euiThemeContext, 'warning'),
|
|
32
|
+
risk: (0, _button.euiButtonFillColor)(euiThemeContext, 'risk'),
|
|
31
33
|
danger: (0, _button.euiButtonFillColor)(euiThemeContext, 'danger'),
|
|
32
34
|
accent: (0, _button.euiButtonFillColor)(euiThemeContext, 'accent'),
|
|
33
35
|
accentSecondary: (0, _button.euiButtonFillColor)(euiThemeContext, 'accentSecondary'),
|
|
@@ -29,8 +29,7 @@ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e;
|
|
|
29
29
|
var useColumnSorting = exports.useColumnSorting = function useColumnSorting(_ref) {
|
|
30
30
|
var _sorting$columns;
|
|
31
31
|
var sorting = _ref.sorting,
|
|
32
|
-
id = _ref.id
|
|
33
|
-
hasColumnActions = _ref.hasColumnActions;
|
|
32
|
+
id = _ref.id;
|
|
34
33
|
var sortedColumn = (0, _react.useMemo)(function () {
|
|
35
34
|
return sorting === null || sorting === void 0 ? void 0 : sorting.columns.find(function (col) {
|
|
36
35
|
return col.id === id;
|
|
@@ -52,26 +51,28 @@ var useColumnSorting = exports.useColumnSorting = function useColumnSorting(_ref
|
|
|
52
51
|
}, [id, isColumnSorted, sortedColumn]);
|
|
53
52
|
|
|
54
53
|
/**
|
|
55
|
-
* aria-sort attribute - should only be used when a single column is being sorted
|
|
54
|
+
* `aria-sort` attribute - should only be used when a single column is being sorted
|
|
56
55
|
* @see https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-sort
|
|
57
56
|
* @see https://www.w3.org/WAI/ARIA/apg/example-index/table/sortable-table.html
|
|
58
57
|
* @see https://github.com/w3c/aria/issues/283 for potential future multi-column usage
|
|
59
58
|
*/
|
|
60
|
-
var
|
|
59
|
+
var hasAriaSortOnly = isColumnSorted && hasOnlyOneSort;
|
|
60
|
+
var ariaSort = hasAriaSortOnly ? sorting.columns[0].direction === 'asc' ? 'ascending' : 'descending' : undefined;
|
|
61
61
|
|
|
62
|
-
|
|
62
|
+
/**
|
|
63
|
+
* `aria-describedby` ID for when `aria-sort` cannot be used
|
|
64
|
+
*/
|
|
63
65
|
var sortingAriaId = (0, _services.useGeneratedHtmlId)({
|
|
64
66
|
prefix: 'euiDataGridCellHeader',
|
|
65
67
|
suffix: 'sorting'
|
|
66
68
|
});
|
|
67
69
|
|
|
68
70
|
/**
|
|
69
|
-
*
|
|
71
|
+
* Screen-reader-only sorting status, an alternative to `aria-sort` for multi-column sorting
|
|
70
72
|
*/
|
|
71
73
|
var sortingScreenReaderText = (0, _react.useMemo)(function () {
|
|
72
74
|
var _sorting$columns2;
|
|
73
|
-
if (!isColumnSorted) return null;
|
|
74
|
-
if (!hasColumnActions && hasOnlyOneSort) return null; // in this scenario, the `aria-sort` attribute will be used by screen readers
|
|
75
|
+
if (!isColumnSorted || hasAriaSortOnly) return null;
|
|
75
76
|
return (0, _react2.jsx)("p", {
|
|
76
77
|
id: sortingAriaId,
|
|
77
78
|
hidden: true
|
|
@@ -134,7 +135,7 @@ var useColumnSorting = exports.useColumnSorting = function useColumnSorting(_ref
|
|
|
134
135
|
}
|
|
135
136
|
}
|
|
136
137
|
}), ".");
|
|
137
|
-
}, [isColumnSorted,
|
|
138
|
+
}, [isColumnSorted, hasAriaSortOnly, sortingAriaId, sorting === null || sorting === void 0 ? void 0 : sorting.columns, hasOnlyOneSort]);
|
|
138
139
|
return {
|
|
139
140
|
sortingArrow: sortingArrow,
|
|
140
141
|
ariaSort: ariaSort,
|
|
@@ -68,8 +68,7 @@ var EuiDataGridHeaderCell = exports.EuiDataGridHeaderCell = /*#__PURE__*/(0, _re
|
|
|
68
68
|
var actionsButtonRef = (0, _react.useRef)(null);
|
|
69
69
|
var _useColumnSorting = (0, _column_sorting.useColumnSorting)({
|
|
70
70
|
sorting: sorting,
|
|
71
|
-
id: id
|
|
72
|
-
hasColumnActions: hasColumnActions
|
|
71
|
+
id: id
|
|
73
72
|
}),
|
|
74
73
|
sortingArrow = _useColumnSorting.sortingArrow,
|
|
75
74
|
ariaSort = _useColumnSorting.ariaSort,
|
|
@@ -119,8 +119,10 @@ var euiEmptyPromptStyles = exports.euiEmptyPromptStyles = function euiEmptyPromp
|
|
|
119
119
|
accent: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('border-top', generateFooterBorder('accent')), ";;label:accent;"),
|
|
120
120
|
accentSecondary: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('border-top', generateFooterBorder('accentSecondary')), ";;label:accentSecondary;"),
|
|
121
121
|
danger: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('border-top', generateFooterBorder('danger')), ";;label:danger;"),
|
|
122
|
+
risk: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('border-top', generateFooterBorder('risk')), ";;label:risk;"),
|
|
122
123
|
warning: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('border-top', generateFooterBorder('warning')), ";;label:warning;"),
|
|
123
|
-
success: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('border-top', generateFooterBorder('success')), ";;label:success;")
|
|
124
|
+
success: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('border-top', generateFooterBorder('success')), ";;label:success;"),
|
|
125
|
+
neutral: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('border-top', generateFooterBorder('neutral')), ";;label:neutral;")
|
|
124
126
|
}, generatePaddingStyles())
|
|
125
127
|
};
|
|
126
128
|
};
|
|
@@ -24,6 +24,8 @@ var _ref = process.env.NODE_ENV === "production" ? {
|
|
|
24
24
|
};
|
|
25
25
|
var euiFormControlLayoutIconsStyles = exports.euiFormControlLayoutIconsStyles = function euiFormControlLayoutIconsStyles(euiThemeContext) {
|
|
26
26
|
var _euiFormVariables = (0, _form.euiFormVariables)(euiThemeContext),
|
|
27
|
+
controlHeight = _euiFormVariables.controlHeight,
|
|
28
|
+
controlCompressedHeight = _euiFormVariables.controlCompressedHeight,
|
|
27
29
|
controlPadding = _euiFormVariables.controlPadding,
|
|
28
30
|
controlCompressedPadding = _euiFormVariables.controlCompressedPadding,
|
|
29
31
|
controlDisabledColor = _euiFormVariables.controlDisabledColor;
|
|
@@ -31,10 +33,10 @@ var euiFormControlLayoutIconsStyles = exports.euiFormControlLayoutIconsStyles =
|
|
|
31
33
|
euiFormControlLayoutIcons: _ref,
|
|
32
34
|
uncompressed: "\n gap: ".concat((0, _global_styling.mathWithUnits)(controlPadding, function (x) {
|
|
33
35
|
return x / 2;
|
|
34
|
-
}), ";\n "),
|
|
36
|
+
}), ";\n max-block-size: ").concat(controlHeight, ";\n "),
|
|
35
37
|
compressed: /*#__PURE__*/(0, _react.css)("gap:", (0, _global_styling.mathWithUnits)(controlCompressedPadding, function (x) {
|
|
36
38
|
return x / 2;
|
|
37
|
-
}), ";;label:compressed;"),
|
|
39
|
+
}), ";max-block-size:", controlCompressedHeight, ";;label:compressed;"),
|
|
38
40
|
disabled: /*#__PURE__*/(0, _react.css)("cursor:not-allowed;color:", controlDisabledColor, ";;label:disabled;"),
|
|
39
41
|
position: {
|
|
40
42
|
absolute: {
|
|
@@ -40,15 +40,17 @@ var euiIconStyles = exports.euiIconStyles = function euiIconStyles(_ref3) {
|
|
|
40
40
|
// Base
|
|
41
41
|
euiIcon: /*#__PURE__*/(0, _react.css)("flex-shrink:0;display:inline-block;vertical-align:middle;fill:currentColor;transform:translate(0, 0);.euiIcon__fillNegative{fill:", euiTheme.colors.darkestShade, ";};label:euiIcon;"),
|
|
42
42
|
// Colors
|
|
43
|
+
primary: /*#__PURE__*/(0, _react.css)("color:", euiTheme.colors.textPrimary, ";;label:primary;"),
|
|
43
44
|
accent: /*#__PURE__*/(0, _react.css)("color:", euiTheme.colors.textAccent, ";;label:accent;"),
|
|
44
45
|
accentSecondary: /*#__PURE__*/(0, _react.css)("color:", euiTheme.colors.textAccentSecondary, ";;label:accentSecondary;"),
|
|
45
|
-
danger: /*#__PURE__*/(0, _react.css)("color:", euiTheme.colors.textDanger, ";;label:danger;"),
|
|
46
46
|
ghost: /*#__PURE__*/(0, _react.css)("color:", euiTheme.colors.ghost, ";*[fill],.euiIcon__fillNegative{fill:currentColor!important;};label:ghost;"),
|
|
47
|
-
primary: /*#__PURE__*/(0, _react.css)("color:", euiTheme.colors.textPrimary, ";;label:primary;"),
|
|
48
|
-
success: /*#__PURE__*/(0, _react.css)("color:", euiTheme.colors.textSuccess, ";;label:success;"),
|
|
49
47
|
subdued: /*#__PURE__*/(0, _react.css)("color:", euiTheme.colors.textSubdued, ";;label:subdued;"),
|
|
50
48
|
text: /*#__PURE__*/(0, _react.css)("color:", euiTheme.colors.textHeading, ";*[fill],.euiIcon__fillNegative{fill:currentColor!important;};label:text;"),
|
|
49
|
+
neutral: /*#__PURE__*/(0, _react.css)("color:", euiTheme.colors.textNeutral, ";;label:neutral;"),
|
|
50
|
+
success: /*#__PURE__*/(0, _react.css)("color:", euiTheme.colors.textSuccess, ";;label:success;"),
|
|
51
51
|
warning: /*#__PURE__*/(0, _react.css)("color:", euiTheme.colors.textWarning, ";;label:warning;"),
|
|
52
|
+
risk: /*#__PURE__*/(0, _react.css)("color:", euiTheme.colors.textRisk, ";;label:risk;"),
|
|
53
|
+
danger: /*#__PURE__*/(0, _react.css)("color:", euiTheme.colors.textDanger, ";;label:danger;"),
|
|
52
54
|
inherit: _ref2,
|
|
53
55
|
default: /*#__PURE__*/(0, _react.css)(";label:default;"),
|
|
54
56
|
customColor: /*#__PURE__*/(0, _react.css)(";label:customColor;"),
|
|
@@ -13,7 +13,7 @@ exports.isNamedColor = isNamedColor;
|
|
|
13
13
|
* Side Public License, v 1.
|
|
14
14
|
*/
|
|
15
15
|
|
|
16
|
-
var COLORS = exports.COLORS = ['default', 'primary', 'success', 'accent', 'accentSecondary', 'warning', 'danger', 'text', 'subdued', 'ghost', 'inherit'];
|
|
16
|
+
var COLORS = exports.COLORS = ['default', 'primary', 'neutral', 'success', 'accent', 'accentSecondary', 'warning', 'risk', 'danger', 'text', 'subdued', 'ghost', 'inherit'];
|
|
17
17
|
function isNamedColor(name) {
|
|
18
18
|
return COLORS.includes(name);
|
|
19
19
|
}
|
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
});
|
|
7
7
|
exports.EuiProvider = void 0;
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
var
|
|
9
|
+
var _themes = require("../../themes");
|
|
10
10
|
var _services = require("../../services");
|
|
11
11
|
var _warning = require("../../services/theme/warning");
|
|
12
12
|
var _css = require("../../services/emotion/css");
|
|
@@ -33,7 +33,7 @@ var EuiProvider = exports.EuiProvider = function EuiProvider(_ref) {
|
|
|
33
33
|
var _ref$cache = _ref.cache,
|
|
34
34
|
cache = _ref$cache === void 0 ? _css.cache : _ref$cache,
|
|
35
35
|
_ref$theme = _ref.theme,
|
|
36
|
-
theme = _ref$theme === void 0 ?
|
|
36
|
+
theme = _ref$theme === void 0 ? _themes.EuiThemeAmsterdam : _ref$theme,
|
|
37
37
|
_ref$globalStyles = _ref.globalStyles,
|
|
38
38
|
Globals = _ref$globalStyles === void 0 ? _global_styles.EuiGlobalStyles : _ref$globalStyles,
|
|
39
39
|
_ref$utilityClasses = _ref.utilityClasses,
|
|
@@ -19,7 +19,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
19
19
|
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
|
20
20
|
* Side Public License, v 1.
|
|
21
21
|
*/
|
|
22
|
-
var BUTTON_COLORS = exports.BUTTON_COLORS = ['text', 'accent', 'accentSecondary', 'primary', 'success', 'warning', 'danger'];
|
|
22
|
+
var BUTTON_COLORS = exports.BUTTON_COLORS = ['text', 'accent', 'accentSecondary', 'primary', 'neutral', 'success', 'warning', 'risk', 'danger'];
|
|
23
23
|
var BUTTON_DISPLAYS = exports.BUTTON_DISPLAYS = ['base', 'fill', 'empty'];
|
|
24
24
|
/**
|
|
25
25
|
* Creates the `base` version of button styles with proper text contrast.
|
|
@@ -50,7 +50,7 @@ var euiButtonFillColor = exports.euiButtonFillColor = function euiButtonFillColo
|
|
|
50
50
|
highContrastMode = euiThemeContext.highContrastMode;
|
|
51
51
|
var backgroundTokenName = (0, _euiThemeCommon.getTokenName)('backgroundFilled', color);
|
|
52
52
|
var textColorTokenName = (0, _euiThemeCommon.getTokenName)('textColorFilled', color);
|
|
53
|
-
var highContrastForeground =
|
|
53
|
+
var highContrastForeground = ['warning', 'neutral', 'risk'].includes(color) ? euiTheme.colors.ink : color === 'disabled' ? euiTheme.components.buttons[textColorTokenName] : euiTheme.colors.textInverse;
|
|
54
54
|
var foreground = highContrastMode ? highContrastForeground : euiTheme.components.buttons[textColorTokenName];
|
|
55
55
|
var background = euiTheme.components.buttons[backgroundTokenName];
|
|
56
56
|
return _objectSpread({
|
|
@@ -17,7 +17,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
17
17
|
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
|
18
18
|
* Side Public License, v 1.
|
|
19
19
|
*/
|
|
20
|
-
var BACKGROUND_COLORS = exports.BACKGROUND_COLORS = ['transparent', 'plain', 'subdued', 'highlighted', 'accent', 'accentSecondary', 'primary', 'success', 'warning', 'danger'];
|
|
20
|
+
var BACKGROUND_COLORS = exports.BACKGROUND_COLORS = ['transparent', 'plain', 'subdued', 'highlighted', 'accent', 'accentSecondary', 'primary', 'neutral', 'success', 'warning', 'risk', 'danger'];
|
|
21
21
|
/**
|
|
22
22
|
* @deprecated - use background tokens directly
|
|
23
23
|
* @returns A single background color with optional alpha transparency
|
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.EUI_VIS_COLOR_STORE = void 0;
|
|
7
7
|
var _euiThemeCommon = require("@elastic/eui-theme-common");
|
|
8
|
-
var
|
|
8
|
+
var _colors_vis = require("../../themes/amsterdam/global_styling/variables/_colors_vis");
|
|
9
9
|
/*
|
|
10
10
|
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
11
11
|
* or more contributor license agreements. Licensed under the Elastic License
|
|
@@ -15,4 +15,4 @@ var _euiThemeBorealis = require("@elastic/eui-theme-borealis");
|
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
17
|
// initialsetup of Vis color storage with default colors
|
|
18
|
-
var EUI_VIS_COLOR_STORE = exports.EUI_VIS_COLOR_STORE = _euiThemeCommon.EuiVisColorStore.getInstance(
|
|
18
|
+
var EUI_VIS_COLOR_STORE = exports.EUI_VIS_COLOR_STORE = _euiThemeCommon.EuiVisColorStore.getInstance(_colors_vis.colorVis, true);
|
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.defaultComputedTheme = exports.EuiThemeContext = exports.EuiSystemContext = exports.EuiNestedThemeContext = exports.EuiModificationsContext = exports.EuiHighContrastModeContext = exports.EuiColorModeContext = exports.DEFAULTS = void 0;
|
|
7
7
|
var _react = require("react");
|
|
8
|
-
var
|
|
8
|
+
var _theme = require("../../themes/amsterdam/theme");
|
|
9
9
|
var _utils = require("./utils");
|
|
10
10
|
/*
|
|
11
11
|
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
@@ -16,7 +16,7 @@ var _utils = require("./utils");
|
|
|
16
16
|
*/
|
|
17
17
|
|
|
18
18
|
var DEFAULTS = exports.DEFAULTS = {
|
|
19
|
-
system:
|
|
19
|
+
system: _theme.EuiThemeAmsterdam,
|
|
20
20
|
modifications: {},
|
|
21
21
|
colorMode: _utils.DEFAULT_COLOR_MODE,
|
|
22
22
|
highContrastMode: false
|