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