@elastic/eui 101.4.0 → 102.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/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/global_styling/mixins/_button.js +2 -2
- package/es/global_styling/mixins/_color.js +1 -1
- 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 +58 -20
- 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/global_styling/mixins/_button.js +2 -2
- package/lib/global_styling/mixins/_color.js +1 -1
- 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/global_styling/mixins/_button.js +2 -2
- package/optimize/es/global_styling/mixins/_color.js +1 -1
- 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/global_styling/mixins/_button.js +2 -2
- package/optimize/lib/global_styling/mixins/_color.js +1 -1
- 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/global_styling/mixins/_button.js +2 -2
- package/test-env/global_styling/mixins/_color.js +1 -1
- 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
|
@@ -15,6 +15,7 @@ import { computed } from '@elastic/eui-theme-common';
|
|
|
15
15
|
import { hexToRgb } from '../../../../services/color/hex_to_rgb';
|
|
16
16
|
import { isColorDark } from '../../../../services/color/is_color_dark';
|
|
17
17
|
import { tint, transparentize } from '../../../../services/color/manipulation';
|
|
18
|
+
import { severityColors } from './_colors_severity';
|
|
18
19
|
var isDark = function isDark(background) {
|
|
19
20
|
return background ? isColorDark.apply(void 0, _toConsumableArray(hexToRgb(background))) : false;
|
|
20
21
|
};
|
|
@@ -34,233 +35,279 @@ var _buttons = {
|
|
|
34
35
|
backgroundLightAccentSecondary = _ref6[0];
|
|
35
36
|
return backgroundLightAccentSecondary;
|
|
36
37
|
}, ['colors.backgroundLightAccentSecondary']),
|
|
37
|
-
|
|
38
|
+
backgroundNeutral: computed(function (_ref7) {
|
|
38
39
|
var _ref8 = _slicedToArray(_ref7, 1),
|
|
39
|
-
|
|
40
|
+
backgroundLightNeutral = _ref8[0];
|
|
41
|
+
return backgroundLightNeutral;
|
|
42
|
+
}, ['colors.backgroundLightNeutral']),
|
|
43
|
+
backgroundSuccess: computed(function (_ref9) {
|
|
44
|
+
var _ref10 = _slicedToArray(_ref9, 1),
|
|
45
|
+
backgroundLightSuccess = _ref10[0];
|
|
40
46
|
return backgroundLightSuccess;
|
|
41
47
|
}, ['colors.backgroundLightSuccess']),
|
|
42
|
-
backgroundWarning: computed(function (
|
|
43
|
-
var
|
|
44
|
-
backgroundLightWarning =
|
|
48
|
+
backgroundWarning: computed(function (_ref11) {
|
|
49
|
+
var _ref12 = _slicedToArray(_ref11, 1),
|
|
50
|
+
backgroundLightWarning = _ref12[0];
|
|
45
51
|
return backgroundLightWarning;
|
|
46
52
|
}, ['colors.backgroundLightWarning']),
|
|
47
|
-
|
|
48
|
-
var
|
|
49
|
-
|
|
53
|
+
backgroundRisk: computed(function (_ref13) {
|
|
54
|
+
var _ref14 = _slicedToArray(_ref13, 1),
|
|
55
|
+
backgroundLightRisk = _ref14[0];
|
|
56
|
+
return backgroundLightRisk;
|
|
57
|
+
}, ['colors.backgroundLightRisk']),
|
|
58
|
+
backgroundDanger: computed(function (_ref15) {
|
|
59
|
+
var _ref16 = _slicedToArray(_ref15, 1),
|
|
60
|
+
backgroundLightDanger = _ref16[0];
|
|
50
61
|
return backgroundLightDanger;
|
|
51
62
|
}, ['colors.backgroundLightDanger']),
|
|
52
|
-
backgroundText: computed(function (
|
|
53
|
-
var
|
|
54
|
-
backgroundLightText =
|
|
63
|
+
backgroundText: computed(function (_ref17) {
|
|
64
|
+
var _ref18 = _slicedToArray(_ref17, 1),
|
|
65
|
+
backgroundLightText = _ref18[0];
|
|
55
66
|
return backgroundLightText;
|
|
56
67
|
}, ['colors.backgroundLightText']),
|
|
57
|
-
backgroundDisabled: computed(function (
|
|
58
|
-
var
|
|
59
|
-
lightShade =
|
|
68
|
+
backgroundDisabled: computed(function (_ref19) {
|
|
69
|
+
var _ref20 = _slicedToArray(_ref19, 1),
|
|
70
|
+
lightShade = _ref20[0];
|
|
60
71
|
return transparentize(lightShade, 0.15);
|
|
61
72
|
}, ['colors.lightShade']),
|
|
62
|
-
backgroundFilledPrimary: computed(function (
|
|
63
|
-
var
|
|
64
|
-
backgroundFilledPrimary =
|
|
73
|
+
backgroundFilledPrimary: computed(function (_ref21) {
|
|
74
|
+
var _ref22 = _slicedToArray(_ref21, 1),
|
|
75
|
+
backgroundFilledPrimary = _ref22[0];
|
|
65
76
|
return backgroundFilledPrimary;
|
|
66
77
|
}, ['colors.backgroundFilledPrimary']),
|
|
67
|
-
backgroundFilledAccent: computed(function (
|
|
68
|
-
var
|
|
69
|
-
backgroundFilledAccent =
|
|
78
|
+
backgroundFilledAccent: computed(function (_ref23) {
|
|
79
|
+
var _ref24 = _slicedToArray(_ref23, 1),
|
|
80
|
+
backgroundFilledAccent = _ref24[0];
|
|
70
81
|
return backgroundFilledAccent;
|
|
71
82
|
}, ['colors.backgroundFilledAccent']),
|
|
72
|
-
backgroundFilledAccentSecondary: computed(function (
|
|
73
|
-
var
|
|
74
|
-
backgroundFilledAccent =
|
|
83
|
+
backgroundFilledAccentSecondary: computed(function (_ref25) {
|
|
84
|
+
var _ref26 = _slicedToArray(_ref25, 1),
|
|
85
|
+
backgroundFilledAccent = _ref26[0];
|
|
75
86
|
return backgroundFilledAccent;
|
|
76
87
|
}, ['colors.backgroundFilledAccent']),
|
|
77
|
-
|
|
78
|
-
var
|
|
79
|
-
|
|
88
|
+
backgroundFilledNeutral: computed(function (_ref27) {
|
|
89
|
+
var _ref28 = _slicedToArray(_ref27, 1),
|
|
90
|
+
backgroundFilledNeutral = _ref28[0];
|
|
91
|
+
return backgroundFilledNeutral;
|
|
92
|
+
}, ['colors.backgroundFilledNeutral']),
|
|
93
|
+
backgroundFilledSuccess: computed(function (_ref29) {
|
|
94
|
+
var _ref30 = _slicedToArray(_ref29, 1),
|
|
95
|
+
backgroundFilledSuccess = _ref30[0];
|
|
80
96
|
return backgroundFilledSuccess;
|
|
81
97
|
}, ['colors.backgroundFilledSuccess']),
|
|
82
|
-
backgroundFilledWarning: computed(function (
|
|
83
|
-
var
|
|
84
|
-
backgroundFilledWarning =
|
|
98
|
+
backgroundFilledWarning: computed(function (_ref31) {
|
|
99
|
+
var _ref32 = _slicedToArray(_ref31, 1),
|
|
100
|
+
backgroundFilledWarning = _ref32[0];
|
|
85
101
|
return backgroundFilledWarning;
|
|
86
102
|
}, ['colors.backgroundFilledWarning']),
|
|
87
|
-
|
|
88
|
-
var
|
|
89
|
-
|
|
103
|
+
backgroundFilledRisk: computed(function (_ref33) {
|
|
104
|
+
var _ref34 = _slicedToArray(_ref33, 1),
|
|
105
|
+
backgroundFilledRisk = _ref34[0];
|
|
106
|
+
return backgroundFilledRisk;
|
|
107
|
+
}, ['colors.backgroundFilledRisk']),
|
|
108
|
+
backgroundFilledDanger: computed(function (_ref35) {
|
|
109
|
+
var _ref36 = _slicedToArray(_ref35, 1),
|
|
110
|
+
backgroundFilledDanger = _ref36[0];
|
|
90
111
|
return backgroundFilledDanger;
|
|
91
112
|
}, ['colors.backgroundFilledDanger']),
|
|
92
|
-
backgroundFilledText: computed(function (
|
|
93
|
-
var
|
|
94
|
-
backgroundFilledText =
|
|
113
|
+
backgroundFilledText: computed(function (_ref37) {
|
|
114
|
+
var _ref38 = _slicedToArray(_ref37, 1),
|
|
115
|
+
backgroundFilledText = _ref38[0];
|
|
95
116
|
return backgroundFilledText;
|
|
96
117
|
}, ['colors.backgroundFilledText']),
|
|
97
|
-
backgroundFilledDisabled: computed(function (
|
|
98
|
-
var
|
|
99
|
-
lightShade =
|
|
118
|
+
backgroundFilledDisabled: computed(function (_ref39) {
|
|
119
|
+
var _ref40 = _slicedToArray(_ref39, 1),
|
|
120
|
+
lightShade = _ref40[0];
|
|
100
121
|
return transparentize(lightShade, 0.15);
|
|
101
122
|
}, ['colors.lightShade']),
|
|
102
|
-
backgroundEmptyPrimaryHover: computed(function (
|
|
103
|
-
var
|
|
104
|
-
primary =
|
|
123
|
+
backgroundEmptyPrimaryHover: computed(function (_ref41) {
|
|
124
|
+
var _ref42 = _slicedToArray(_ref41, 1),
|
|
125
|
+
primary = _ref42[0];
|
|
105
126
|
return transparentize(primary, 0.1);
|
|
106
127
|
}, ['colors.primary']),
|
|
107
|
-
backgroundEmptyAccentHover: computed(function (
|
|
108
|
-
var
|
|
109
|
-
accent =
|
|
128
|
+
backgroundEmptyAccentHover: computed(function (_ref43) {
|
|
129
|
+
var _ref44 = _slicedToArray(_ref43, 1),
|
|
130
|
+
accent = _ref44[0];
|
|
110
131
|
return transparentize(accent, 0.1);
|
|
111
132
|
}, ['colors.accent']),
|
|
112
|
-
backgroundEmptyAccentSecondaryHover: computed(function (
|
|
113
|
-
var
|
|
114
|
-
success =
|
|
133
|
+
backgroundEmptyAccentSecondaryHover: computed(function (_ref45) {
|
|
134
|
+
var _ref46 = _slicedToArray(_ref45, 1),
|
|
135
|
+
success = _ref46[0];
|
|
115
136
|
return transparentize(success, 0.1);
|
|
116
137
|
}, ['colors.success']),
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
138
|
+
backgroundEmptyNeutralHover: transparentize(severityColors.neutral, 0.1),
|
|
139
|
+
backgroundEmptySuccessHover: computed(function (_ref47) {
|
|
140
|
+
var _ref48 = _slicedToArray(_ref47, 1),
|
|
141
|
+
success = _ref48[0];
|
|
120
142
|
return transparentize(success, 0.1);
|
|
121
143
|
}, ['colors.success']),
|
|
122
|
-
backgroundEmptyWarningHover: computed(function (
|
|
123
|
-
var
|
|
124
|
-
warning =
|
|
144
|
+
backgroundEmptyWarningHover: computed(function (_ref49) {
|
|
145
|
+
var _ref50 = _slicedToArray(_ref49, 1),
|
|
146
|
+
warning = _ref50[0];
|
|
125
147
|
return transparentize(warning, 0.1);
|
|
126
148
|
}, ['colors.warning']),
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
149
|
+
backgroundEmptyRiskHover: transparentize(severityColors.risk, 0.1),
|
|
150
|
+
backgroundEmptyDangerHover: computed(function (_ref51) {
|
|
151
|
+
var _ref52 = _slicedToArray(_ref51, 1),
|
|
152
|
+
danger = _ref52[0];
|
|
130
153
|
return transparentize(danger, 0.1);
|
|
131
154
|
}, ['colors.danger']),
|
|
132
|
-
backgroundEmptyTextHover: computed(function (
|
|
133
|
-
var
|
|
134
|
-
lightShade =
|
|
155
|
+
backgroundEmptyTextHover: computed(function (_ref53) {
|
|
156
|
+
var _ref54 = _slicedToArray(_ref53, 1),
|
|
157
|
+
lightShade = _ref54[0];
|
|
135
158
|
return transparentize(lightShade, 0.2);
|
|
136
159
|
}, ['colors.lightShade']),
|
|
137
|
-
textColorPrimary: computed(function (
|
|
138
|
-
var
|
|
139
|
-
primaryText =
|
|
160
|
+
textColorPrimary: computed(function (_ref55) {
|
|
161
|
+
var _ref56 = _slicedToArray(_ref55, 1),
|
|
162
|
+
primaryText = _ref56[0];
|
|
140
163
|
return primaryText;
|
|
141
164
|
}, ['colors.primaryText']),
|
|
142
|
-
textColorAccent: computed(function (
|
|
143
|
-
var
|
|
144
|
-
accentText =
|
|
165
|
+
textColorAccent: computed(function (_ref57) {
|
|
166
|
+
var _ref58 = _slicedToArray(_ref57, 1),
|
|
167
|
+
accentText = _ref58[0];
|
|
145
168
|
return accentText;
|
|
146
169
|
}, ['colors.accentText']),
|
|
147
|
-
textColorAccentSecondary: computed(function (
|
|
148
|
-
var
|
|
149
|
-
successText =
|
|
170
|
+
textColorAccentSecondary: computed(function (_ref59) {
|
|
171
|
+
var _ref60 = _slicedToArray(_ref59, 1),
|
|
172
|
+
successText = _ref60[0];
|
|
150
173
|
return successText;
|
|
151
174
|
}, ['colors.successText']),
|
|
152
|
-
|
|
153
|
-
var
|
|
154
|
-
|
|
175
|
+
textColorNeutral: computed(function (_ref61) {
|
|
176
|
+
var _ref62 = _slicedToArray(_ref61, 1),
|
|
177
|
+
textNeutral = _ref62[0];
|
|
178
|
+
return textNeutral;
|
|
179
|
+
}, ['colors.textNeutral']),
|
|
180
|
+
textColorSuccess: computed(function (_ref63) {
|
|
181
|
+
var _ref64 = _slicedToArray(_ref63, 1),
|
|
182
|
+
successText = _ref64[0];
|
|
155
183
|
return successText;
|
|
156
184
|
}, ['colors.successText']),
|
|
157
|
-
textColorWarning: computed(function (
|
|
158
|
-
var
|
|
159
|
-
warningText =
|
|
185
|
+
textColorWarning: computed(function (_ref65) {
|
|
186
|
+
var _ref66 = _slicedToArray(_ref65, 1),
|
|
187
|
+
warningText = _ref66[0];
|
|
160
188
|
return warningText;
|
|
161
189
|
}, ['colors.warningText']),
|
|
162
|
-
|
|
163
|
-
var
|
|
164
|
-
|
|
190
|
+
textColorRisk: computed(function (_ref67) {
|
|
191
|
+
var _ref68 = _slicedToArray(_ref67, 1),
|
|
192
|
+
textRisk = _ref68[0];
|
|
193
|
+
return textRisk;
|
|
194
|
+
}, ['colors.textRisk']),
|
|
195
|
+
textColorDanger: computed(function (_ref69) {
|
|
196
|
+
var _ref70 = _slicedToArray(_ref69, 1),
|
|
197
|
+
dangerText = _ref70[0];
|
|
165
198
|
return dangerText;
|
|
166
199
|
}, ['colors.dangerText']),
|
|
167
|
-
textColorText: computed(function (
|
|
168
|
-
var
|
|
169
|
-
text =
|
|
200
|
+
textColorText: computed(function (_ref71) {
|
|
201
|
+
var _ref72 = _slicedToArray(_ref71, 1),
|
|
202
|
+
text = _ref72[0];
|
|
170
203
|
return text;
|
|
171
204
|
}, ['colors.text']),
|
|
172
|
-
textColorDisabled: computed(function (
|
|
173
|
-
var
|
|
174
|
-
disabledText =
|
|
205
|
+
textColorDisabled: computed(function (_ref73) {
|
|
206
|
+
var _ref74 = _slicedToArray(_ref73, 1),
|
|
207
|
+
disabledText = _ref74[0];
|
|
175
208
|
return disabledText;
|
|
176
209
|
}, ['colors.disabledText']),
|
|
177
|
-
textColorFilledPrimary: computed(function (
|
|
178
|
-
var
|
|
179
|
-
primary =
|
|
180
|
-
ghost =
|
|
181
|
-
ink =
|
|
210
|
+
textColorFilledPrimary: computed(function (_ref75) {
|
|
211
|
+
var _ref76 = _slicedToArray(_ref75, 3),
|
|
212
|
+
primary = _ref76[0],
|
|
213
|
+
ghost = _ref76[1],
|
|
214
|
+
ink = _ref76[2];
|
|
182
215
|
return isDark(primary) ? ghost : ink;
|
|
183
216
|
}, ['colors.primary', 'colors.ghost', 'colors.ink']),
|
|
184
|
-
textColorFilledAccent: computed(function (
|
|
185
|
-
var
|
|
186
|
-
accent =
|
|
187
|
-
ghost =
|
|
188
|
-
ink =
|
|
217
|
+
textColorFilledAccent: computed(function (_ref77) {
|
|
218
|
+
var _ref78 = _slicedToArray(_ref77, 3),
|
|
219
|
+
accent = _ref78[0],
|
|
220
|
+
ghost = _ref78[1],
|
|
221
|
+
ink = _ref78[2];
|
|
189
222
|
return isDark(accent) ? ghost : ink;
|
|
190
223
|
}, ['colors.accent', 'colors.ghost', 'colors.ink']),
|
|
191
|
-
textColorFilledAccentSecondary: computed(function (
|
|
192
|
-
var
|
|
193
|
-
success =
|
|
194
|
-
ghost =
|
|
195
|
-
ink =
|
|
224
|
+
textColorFilledAccentSecondary: computed(function (_ref79) {
|
|
225
|
+
var _ref80 = _slicedToArray(_ref79, 3),
|
|
226
|
+
success = _ref80[0],
|
|
227
|
+
ghost = _ref80[1],
|
|
228
|
+
ink = _ref80[2];
|
|
196
229
|
var background = tint(success, 0.3);
|
|
197
230
|
return isDark(background) ? ghost : ink;
|
|
198
231
|
}, ['colors.success', 'colors.ghost', 'colors.ink']),
|
|
199
|
-
|
|
200
|
-
var
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
232
|
+
textColorFilledNeutral: computed(function (_ref81) {
|
|
233
|
+
var _ref82 = _slicedToArray(_ref81, 2),
|
|
234
|
+
ghost = _ref82[0],
|
|
235
|
+
ink = _ref82[1];
|
|
236
|
+
var background = tint(severityColors.neutral, 0.3);
|
|
237
|
+
return isDark(background) ? ghost : ink;
|
|
238
|
+
}, ['colors.ghost', 'colors.ink']),
|
|
239
|
+
textColorFilledSuccess: computed(function (_ref83) {
|
|
240
|
+
var _ref84 = _slicedToArray(_ref83, 3),
|
|
241
|
+
success = _ref84[0],
|
|
242
|
+
ghost = _ref84[1],
|
|
243
|
+
ink = _ref84[2];
|
|
204
244
|
var background = tint(success, 0.3);
|
|
205
245
|
return isDark(background) ? ghost : ink;
|
|
206
246
|
}, ['colors.success', 'colors.ghost', 'colors.ink']),
|
|
207
|
-
textColorFilledWarning: computed(function (
|
|
208
|
-
var
|
|
209
|
-
warning =
|
|
210
|
-
ghost =
|
|
211
|
-
ink =
|
|
247
|
+
textColorFilledWarning: computed(function (_ref85) {
|
|
248
|
+
var _ref86 = _slicedToArray(_ref85, 3),
|
|
249
|
+
warning = _ref86[0],
|
|
250
|
+
ghost = _ref86[1],
|
|
251
|
+
ink = _ref86[2];
|
|
212
252
|
return isDark(warning) ? ghost : ink;
|
|
213
253
|
}, ['colors.warning', 'colors.ghost', 'colors.ink']),
|
|
214
|
-
|
|
215
|
-
var
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
254
|
+
textColorFilledRisk: computed(function (_ref87) {
|
|
255
|
+
var _ref88 = _slicedToArray(_ref87, 2),
|
|
256
|
+
ghost = _ref88[0],
|
|
257
|
+
ink = _ref88[1];
|
|
258
|
+
var background = tint(severityColors.risk, 0.3);
|
|
259
|
+
return isDark(background) ? ghost : ink;
|
|
260
|
+
}, ['colors.ghost', 'colors.ink']),
|
|
261
|
+
textColorFilledDanger: computed(function (_ref89) {
|
|
262
|
+
var _ref90 = _slicedToArray(_ref89, 3),
|
|
263
|
+
danger = _ref90[0],
|
|
264
|
+
ghost = _ref90[1],
|
|
265
|
+
ink = _ref90[2];
|
|
219
266
|
return isDark(danger) ? ghost : ink;
|
|
220
267
|
}, ['colors.danger', 'colors.ghost', 'colors.ink']),
|
|
221
|
-
textColorFilledText: computed(function (
|
|
222
|
-
var
|
|
223
|
-
darkShade =
|
|
224
|
-
ghost =
|
|
225
|
-
ink =
|
|
268
|
+
textColorFilledText: computed(function (_ref91) {
|
|
269
|
+
var _ref92 = _slicedToArray(_ref91, 3),
|
|
270
|
+
darkShade = _ref92[0],
|
|
271
|
+
ghost = _ref92[1],
|
|
272
|
+
ink = _ref92[2];
|
|
226
273
|
return isDark(darkShade) ? ghost : ink;
|
|
227
274
|
}, ['colors.darkShade', 'colors.ghost', 'colors.ink']),
|
|
228
|
-
textColorFilledDisabled: computed(function (
|
|
229
|
-
var
|
|
230
|
-
disabledText =
|
|
275
|
+
textColorFilledDisabled: computed(function (_ref93) {
|
|
276
|
+
var _ref94 = _slicedToArray(_ref93, 1),
|
|
277
|
+
disabledText = _ref94[0];
|
|
231
278
|
return disabledText;
|
|
232
279
|
}, ['colors.disabledText'])
|
|
233
280
|
};
|
|
234
281
|
var _dark_buttons = _objectSpread(_objectSpread({}, _buttons), {}, {
|
|
235
|
-
backgroundFilledDisabled: computed(function (
|
|
236
|
-
var
|
|
237
|
-
lightShade =
|
|
282
|
+
backgroundFilledDisabled: computed(function (_ref95) {
|
|
283
|
+
var _ref96 = _slicedToArray(_ref95, 1),
|
|
284
|
+
lightShade = _ref96[0];
|
|
238
285
|
return transparentize(lightShade, 0.15);
|
|
239
286
|
}, ['colors.lightShade']),
|
|
240
|
-
backgroundEmptyTextHover: computed(function (
|
|
241
|
-
var
|
|
242
|
-
lightShade =
|
|
287
|
+
backgroundEmptyTextHover: computed(function (_ref97) {
|
|
288
|
+
var _ref98 = _slicedToArray(_ref97, 1),
|
|
289
|
+
lightShade = _ref98[0];
|
|
243
290
|
return transparentize(lightShade, 0.4);
|
|
244
291
|
}, ['colors.lightShade']),
|
|
245
|
-
textColorFilledAccent: computed(function (
|
|
246
|
-
var
|
|
247
|
-
accent =
|
|
248
|
-
ghost =
|
|
249
|
-
ink =
|
|
292
|
+
textColorFilledAccent: computed(function (_ref99) {
|
|
293
|
+
var _ref100 = _slicedToArray(_ref99, 3),
|
|
294
|
+
accent = _ref100[0],
|
|
295
|
+
ghost = _ref100[1],
|
|
296
|
+
ink = _ref100[2];
|
|
250
297
|
return isDark(accent) ? ghost : ink;
|
|
251
298
|
}, ['colors.accent', 'colors.ghost', 'colors.ink']),
|
|
252
|
-
textColorFilledSuccess: computed(function (
|
|
253
|
-
var
|
|
254
|
-
success =
|
|
255
|
-
ghost =
|
|
256
|
-
ink =
|
|
299
|
+
textColorFilledSuccess: computed(function (_ref101) {
|
|
300
|
+
var _ref102 = _slicedToArray(_ref101, 3),
|
|
301
|
+
success = _ref102[0],
|
|
302
|
+
ghost = _ref102[1],
|
|
303
|
+
ink = _ref102[2];
|
|
257
304
|
return isDark(success) ? ghost : ink;
|
|
258
305
|
}, ['colors.success', 'colors.ghost', 'colors.ink']),
|
|
259
|
-
textColorFilledText: computed(function (
|
|
260
|
-
var
|
|
261
|
-
text =
|
|
262
|
-
ghost =
|
|
263
|
-
ink =
|
|
306
|
+
textColorFilledText: computed(function (_ref103) {
|
|
307
|
+
var _ref104 = _slicedToArray(_ref103, 3),
|
|
308
|
+
text = _ref104[0],
|
|
309
|
+
ghost = _ref104[1],
|
|
310
|
+
ink = _ref104[2];
|
|
264
311
|
return isDark(text) ? ghost : ink;
|
|
265
312
|
}, ['colors.text', 'colors.ghost', 'colors.ink'])
|
|
266
313
|
});
|