@elastic/eui-theme-common 0.2.0 → 1.0.0-snapshot.1746441787383
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/global_styling/variables/buttons.d.ts +55 -0
- package/lib/cjs/global_styling/variables/buttons.d.ts.map +1 -1
- package/lib/cjs/global_styling/variables/buttons.js.map +1 -1
- package/lib/cjs/global_styling/variables/colors.d.ts +25 -15
- package/lib/cjs/global_styling/variables/colors.d.ts.map +1 -1
- package/lib/cjs/global_styling/variables/colors.js.map +1 -1
- package/lib/cjs/global_styling/variables/components.d.ts +3 -2
- package/lib/cjs/global_styling/variables/components.d.ts.map +1 -1
- package/lib/cjs/global_styling/variables/components.js.map +1 -1
- package/lib/cjs/global_styling/variables/flags.d.ts +4 -1
- package/lib/cjs/global_styling/variables/flags.d.ts.map +1 -1
- package/lib/cjs/global_styling/variables/flags.js.map +1 -1
- package/lib/cjs/utils.d.ts +1 -1
- package/lib/cjs/utils.d.ts.map +1 -1
- package/lib/cjs/utils.js +4 -1
- package/lib/cjs/utils.js.map +1 -1
- package/lib/esm/global_styling/variables/buttons.d.ts +55 -0
- package/lib/esm/global_styling/variables/colors.d.ts +25 -15
- package/lib/esm/global_styling/variables/components.d.ts +3 -2
- package/lib/esm/global_styling/variables/flags.d.ts +4 -1
- package/lib/esm/utils.d.ts +1 -1
- package/lib/esm/utils.js +4 -1
- package/lib/esm/utils.js.map +1 -1
- package/package.json +3 -2
|
@@ -3,39 +3,94 @@ export declare type _EuiThemeButtonColors = {
|
|
|
3
3
|
backgroundPrimary: ColorModeSwitch;
|
|
4
4
|
backgroundAccent: ColorModeSwitch;
|
|
5
5
|
backgroundAccentSecondary: ColorModeSwitch;
|
|
6
|
+
backgroundNeutral: ColorModeSwitch;
|
|
6
7
|
backgroundSuccess: ColorModeSwitch;
|
|
7
8
|
backgroundWarning: ColorModeSwitch;
|
|
9
|
+
backgroundRisk: ColorModeSwitch;
|
|
8
10
|
backgroundDanger: ColorModeSwitch;
|
|
9
11
|
backgroundText: ColorModeSwitch;
|
|
10
12
|
backgroundDisabled: ColorModeSwitch;
|
|
13
|
+
backgroundPrimaryHover: ColorModeSwitch;
|
|
14
|
+
backgroundAccentHover: ColorModeSwitch;
|
|
15
|
+
backgroundAccentSecondaryHover: ColorModeSwitch;
|
|
16
|
+
backgroundNeutralHover: ColorModeSwitch;
|
|
17
|
+
backgroundSuccessHover: ColorModeSwitch;
|
|
18
|
+
backgroundWarningHover: ColorModeSwitch;
|
|
19
|
+
backgroundRiskHover: ColorModeSwitch;
|
|
20
|
+
backgroundDangerHover: ColorModeSwitch;
|
|
21
|
+
backgroundTextHover: ColorModeSwitch;
|
|
22
|
+
backgroundPrimaryActive: ColorModeSwitch;
|
|
23
|
+
backgroundAccentActive: ColorModeSwitch;
|
|
24
|
+
backgroundAccentSecondaryActive: ColorModeSwitch;
|
|
25
|
+
backgroundNeutralActive: ColorModeSwitch;
|
|
26
|
+
backgroundSuccessActive: ColorModeSwitch;
|
|
27
|
+
backgroundWarningActive: ColorModeSwitch;
|
|
28
|
+
backgroundRiskActive: ColorModeSwitch;
|
|
29
|
+
backgroundDangerActive: ColorModeSwitch;
|
|
30
|
+
backgroundTextActive: ColorModeSwitch;
|
|
11
31
|
backgroundFilledPrimary: ColorModeSwitch;
|
|
12
32
|
backgroundFilledAccent: ColorModeSwitch;
|
|
13
33
|
backgroundFilledAccentSecondary: ColorModeSwitch;
|
|
34
|
+
backgroundFilledNeutral: ColorModeSwitch;
|
|
14
35
|
backgroundFilledSuccess: ColorModeSwitch;
|
|
15
36
|
backgroundFilledWarning: ColorModeSwitch;
|
|
37
|
+
backgroundFilledRisk: ColorModeSwitch;
|
|
16
38
|
backgroundFilledDanger: ColorModeSwitch;
|
|
17
39
|
backgroundFilledText: ColorModeSwitch;
|
|
18
40
|
backgroundFilledDisabled: ColorModeSwitch;
|
|
41
|
+
backgroundFilledPrimaryHover: ColorModeSwitch;
|
|
42
|
+
backgroundFilledAccentHover: ColorModeSwitch;
|
|
43
|
+
backgroundFilledAccentSecondaryHover: ColorModeSwitch;
|
|
44
|
+
backgroundFilledNeutralHover: ColorModeSwitch;
|
|
45
|
+
backgroundFilledSuccessHover: ColorModeSwitch;
|
|
46
|
+
backgroundFilledWarningHover: ColorModeSwitch;
|
|
47
|
+
backgroundFilledRiskHover: ColorModeSwitch;
|
|
48
|
+
backgroundFilledDangerHover: ColorModeSwitch;
|
|
49
|
+
backgroundFilledTextHover: ColorModeSwitch;
|
|
50
|
+
backgroundFilledPrimaryActive: ColorModeSwitch;
|
|
51
|
+
backgroundFilledAccentActive: ColorModeSwitch;
|
|
52
|
+
backgroundFilledAccentSecondaryActive: ColorModeSwitch;
|
|
53
|
+
backgroundFilledNeutralActive: ColorModeSwitch;
|
|
54
|
+
backgroundFilledSuccessActive: ColorModeSwitch;
|
|
55
|
+
backgroundFilledWarningActive: ColorModeSwitch;
|
|
56
|
+
backgroundFilledRiskActive: ColorModeSwitch;
|
|
57
|
+
backgroundFilledDangerActive: ColorModeSwitch;
|
|
58
|
+
backgroundFilledTextActive: ColorModeSwitch;
|
|
19
59
|
backgroundEmptyPrimaryHover: ColorModeSwitch;
|
|
20
60
|
backgroundEmptyAccentHover: ColorModeSwitch;
|
|
21
61
|
backgroundEmptyAccentSecondaryHover: ColorModeSwitch;
|
|
62
|
+
backgroundEmptyNeutralHover: ColorModeSwitch;
|
|
22
63
|
backgroundEmptySuccessHover: ColorModeSwitch;
|
|
23
64
|
backgroundEmptyWarningHover: ColorModeSwitch;
|
|
65
|
+
backgroundEmptyRiskHover: ColorModeSwitch;
|
|
24
66
|
backgroundEmptyDangerHover: ColorModeSwitch;
|
|
25
67
|
backgroundEmptyTextHover: ColorModeSwitch;
|
|
68
|
+
backgroundEmptyPrimaryActive: ColorModeSwitch;
|
|
69
|
+
backgroundEmptyAccentActive: ColorModeSwitch;
|
|
70
|
+
backgroundEmptyAccentSecondaryActive: ColorModeSwitch;
|
|
71
|
+
backgroundEmptyNeutralActive: ColorModeSwitch;
|
|
72
|
+
backgroundEmptySuccessActive: ColorModeSwitch;
|
|
73
|
+
backgroundEmptyWarningActive: ColorModeSwitch;
|
|
74
|
+
backgroundEmptyRiskActive: ColorModeSwitch;
|
|
75
|
+
backgroundEmptyDangerActive: ColorModeSwitch;
|
|
76
|
+
backgroundEmptyTextActive: ColorModeSwitch;
|
|
26
77
|
textColorPrimary: ColorModeSwitch;
|
|
27
78
|
textColorAccent: ColorModeSwitch;
|
|
28
79
|
textColorAccentSecondary: ColorModeSwitch;
|
|
80
|
+
textColorNeutral: ColorModeSwitch;
|
|
29
81
|
textColorSuccess: ColorModeSwitch;
|
|
30
82
|
textColorWarning: ColorModeSwitch;
|
|
83
|
+
textColorRisk: ColorModeSwitch;
|
|
31
84
|
textColorDanger: ColorModeSwitch;
|
|
32
85
|
textColorText: ColorModeSwitch;
|
|
33
86
|
textColorDisabled: ColorModeSwitch;
|
|
34
87
|
textColorFilledPrimary: ColorModeSwitch;
|
|
35
88
|
textColorFilledAccent: ColorModeSwitch;
|
|
36
89
|
textColorFilledAccentSecondary: ColorModeSwitch;
|
|
90
|
+
textColorFilledNeutral: ColorModeSwitch;
|
|
37
91
|
textColorFilledSuccess: ColorModeSwitch;
|
|
38
92
|
textColorFilledWarning: ColorModeSwitch;
|
|
93
|
+
textColorFilledRisk: ColorModeSwitch;
|
|
39
94
|
textColorFilledDanger: ColorModeSwitch;
|
|
40
95
|
textColorFilledText: ColorModeSwitch;
|
|
41
96
|
textColorFilledDisabled: ColorModeSwitch;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"buttons.d.ts","sourceRoot":"","sources":["../../../../src/global_styling/variables/buttons.ts"],"names":[],"mappings":"AAQA,OAAO,EACL,eAAe,EACf,qBAAqB,EACtB,MAAM,4BAA4B,CAAC;AAEpC,oBAAY,qBAAqB,GAAG;IAClC,iBAAiB,EAAE,eAAe,CAAC;IACnC,gBAAgB,EAAE,eAAe,CA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AAY,eAAe,GAAG,qBAAqB,CAAC,qBAAqB,CAAC,GAAG,EAAE,CAAC"}
|
|
1
|
+
{"version":3,"file":"buttons.d.ts","sourceRoot":"","sources":["../../../../src/global_styling/variables/buttons.ts"],"names":[],"mappings":"AAQA,OAAO,EACL,eAAe,EACf,qBAAqB,EACtB,MAAM,4BAA4B,CAAC;AAEpC,oBAAY,qBAAqB,GAAG;IAClC,iBAAiB,EAAE,eAAe,CAAC;IACnC,gBAAgB,EAAE,eAAe,CAAC;IAClC,yBAAyB,EAAE,eAAe,CAAC;IAC3C,iBAAiB,EAAE,eAAe,CAAC;IACnC,iBAAiB,EAAE,eAAe,CAAC;IACnC,iBAAiB,EAAE,eAAe,CAAC;IACnC,cAAc,EAAE,eAAe,CAAC;IAChC,gBAAgB,EAAE,eAAe,CAAC;IAClC,cAAc,EAAE,eAAe,CAAC;IAChC,kBAAkB,EAAE,eAAe,CAAC;IAEpC,sBAAsB,EAAE,eAAe,CAAC;IACxC,qBAAqB,EAAE,eAAe,CAAC;IACvC,8BAA8B,EAAE,eAAe,CAAC;IAChD,sBAAsB,EAAE,eAAe,CAAC;IACxC,sBAAsB,EAAE,eAAe,CAAC;IACxC,sBAAsB,EAAE,eAAe,CAAC;IACxC,mBAAmB,EAAE,eAAe,CAAC;IACrC,qBAAqB,EAAE,eAAe,CAAC;IACvC,mBAAmB,EAAE,eAAe,CAAC;IAErC,uBAAuB,EAAE,eAAe,CAAC;IACzC,sBAAsB,EAAE,eAAe,CAAC;IACxC,+BAA+B,EAAE,eAAe,CAAC;IACjD,uBAAuB,EAAE,eAAe,CAAC;IACzC,uBAAuB,EAAE,eAAe,CAAC;IACzC,uBAAuB,EAAE,eAAe,CAAC;IACzC,oBAAoB,EAAE,eAAe,CAAC;IACtC,sBAAsB,EAAE,eAAe,CAAC;IACxC,oBAAoB,EAAE,eAAe,CAAC;IAEtC,uBAAuB,EAAE,eAAe,CAAC;IACzC,sBAAsB,EAAE,eAAe,CAAC;IACxC,+BAA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AAoC,EAAE,eAAe,CAAC;IACtD,4BAA4B,EAAE,eAAe,CAAC;IAC9C,4BAA4B,EAAE,eAAe,CAAC;IAC9C,4BAA4B,EAAE,eAAe,CAAC;IAC9C,yBAAyB,EAAE,eAAe,CAAC;IAC3C,2BAA2B,EAAE,eAAe,CAAC;IAC7C,yBAAyB,EAAE,eAAe,CAAC;IAE3C,gBAAgB,EAAE,eAAe,CAAC;IAClC,eAAe,EAAE,eAAe,CAAC;IACjC,wBAAwB,EAAE,eAAe,CAAC;IAC1C,gBAAgB,EAAE,eAAe,CAAC;IAClC,gBAAgB,EAAE,eAAe,CAAC;IAClC,gBAAgB,EAAE,eAAe,CAAC;IAClC,aAAa,EAAE,eAAe,CAAC;IAC/B,eAAe,EAAE,eAAe,CAAC;IACjC,aAAa,EAAE,eAAe,CAAC;IAC/B,iBAAiB,EAAE,eAAe,CAAC;IAEnC,sBAAsB,EAAE,eAAe,CAAC;IACxC,qBAAqB,EAAE,eAAe,CAAC;IACvC,8BAA8B,EAAE,eAAe,CAAC;IAChD,sBAAsB,EAAE,eAAe,CAAC;IACxC,sBAAsB,EAAE,eAAe,CAAC;IACxC,sBAAsB,EAAE,eAAe,CAAC;IACxC,mBAAmB,EAAE,eAAe,CAAC;IACrC,qBAAqB,EAAE,eAAe,CAAC;IACvC,mBAAmB,EAAE,eAAe,CAAC;IACrC,uBAAuB,EAAE,eAAe,CAAC;CAC1C,CAAC;AAEF,oBAAY,eAAe,GAAG,qBAAqB,CAAC,qBAAqB,CAAC,GAAG,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"buttons.js","names":[],"sources":["../../../../src/global_styling/variables/buttons.ts"],"sourcesContent":["/*\n * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one\n * or more contributor license agreements. Licensed under the Elastic License\n * 2.0 and the Server Side Public License, v 1; you may not use this file except\n * in compliance with, at your election, the Elastic License 2.0 or the Server\n * Side Public License, v 1.\n */\n\nimport {\n ColorModeSwitch,\n StrictColorModeSwitch,\n} from '../../services/theme/types';\n\nexport type _EuiThemeButtonColors = {\n backgroundPrimary: ColorModeSwitch;\n backgroundAccent: ColorModeSwitch;\n backgroundAccentSecondary: ColorModeSwitch;\n backgroundSuccess: ColorModeSwitch;\n backgroundWarning: ColorModeSwitch;\n backgroundDanger: ColorModeSwitch;\n backgroundText: ColorModeSwitch;\n backgroundDisabled: ColorModeSwitch;\n\n backgroundFilledPrimary: ColorModeSwitch;\n backgroundFilledAccent: ColorModeSwitch;\n backgroundFilledAccentSecondary: ColorModeSwitch;\n backgroundFilledSuccess: ColorModeSwitch;\n backgroundFilledWarning: ColorModeSwitch;\n backgroundFilledDanger: ColorModeSwitch;\n backgroundFilledText: ColorModeSwitch;\n backgroundFilledDisabled: ColorModeSwitch;\n\n backgroundEmptyPrimaryHover: ColorModeSwitch;\n backgroundEmptyAccentHover: ColorModeSwitch;\n backgroundEmptyAccentSecondaryHover: ColorModeSwitch;\n backgroundEmptySuccessHover: ColorModeSwitch;\n backgroundEmptyWarningHover: ColorModeSwitch;\n backgroundEmptyDangerHover: ColorModeSwitch;\n backgroundEmptyTextHover: ColorModeSwitch;\n\n textColorPrimary: ColorModeSwitch;\n textColorAccent: ColorModeSwitch;\n textColorAccentSecondary: ColorModeSwitch;\n textColorSuccess: ColorModeSwitch;\n textColorWarning: ColorModeSwitch;\n textColorDanger: ColorModeSwitch;\n textColorText: ColorModeSwitch;\n textColorDisabled: ColorModeSwitch;\n\n textColorFilledPrimary: ColorModeSwitch;\n textColorFilledAccent: ColorModeSwitch;\n textColorFilledAccentSecondary: ColorModeSwitch;\n textColorFilledSuccess: ColorModeSwitch;\n textColorFilledWarning: ColorModeSwitch;\n textColorFilledDanger: ColorModeSwitch;\n textColorFilledText: ColorModeSwitch;\n textColorFilledDisabled: ColorModeSwitch;\n};\n\nexport type _EuiThemeButton = StrictColorModeSwitch<_EuiThemeButtonColors> & {};\n"],"mappings":"","ignoreList":[]}
|
|
1
|
+
{"version":3,"file":"buttons.js","names":[],"sources":["../../../../src/global_styling/variables/buttons.ts"],"sourcesContent":["/*\n * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one\n * or more contributor license agreements. Licensed under the Elastic License\n * 2.0 and the Server Side Public License, v 1; you may not use this file except\n * in compliance with, at your election, the Elastic License 2.0 or the Server\n * Side Public License, v 1.\n */\n\nimport {\n ColorModeSwitch,\n StrictColorModeSwitch,\n} from '../../services/theme/types';\n\nexport type _EuiThemeButtonColors = {\n backgroundPrimary: ColorModeSwitch;\n backgroundAccent: ColorModeSwitch;\n backgroundAccentSecondary: ColorModeSwitch;\n backgroundNeutral: ColorModeSwitch;\n backgroundSuccess: ColorModeSwitch;\n backgroundWarning: ColorModeSwitch;\n backgroundRisk: ColorModeSwitch;\n backgroundDanger: ColorModeSwitch;\n backgroundText: ColorModeSwitch;\n backgroundDisabled: ColorModeSwitch;\n\n backgroundPrimaryHover: ColorModeSwitch;\n backgroundAccentHover: ColorModeSwitch;\n backgroundAccentSecondaryHover: ColorModeSwitch;\n backgroundNeutralHover: ColorModeSwitch;\n backgroundSuccessHover: ColorModeSwitch;\n backgroundWarningHover: ColorModeSwitch;\n backgroundRiskHover: ColorModeSwitch;\n backgroundDangerHover: ColorModeSwitch;\n backgroundTextHover: ColorModeSwitch;\n\n backgroundPrimaryActive: ColorModeSwitch;\n backgroundAccentActive: ColorModeSwitch;\n backgroundAccentSecondaryActive: ColorModeSwitch;\n backgroundNeutralActive: ColorModeSwitch;\n backgroundSuccessActive: ColorModeSwitch;\n backgroundWarningActive: ColorModeSwitch;\n backgroundRiskActive: ColorModeSwitch;\n backgroundDangerActive: ColorModeSwitch;\n backgroundTextActive: ColorModeSwitch;\n\n backgroundFilledPrimary: ColorModeSwitch;\n backgroundFilledAccent: ColorModeSwitch;\n backgroundFilledAccentSecondary: ColorModeSwitch;\n backgroundFilledNeutral: ColorModeSwitch;\n backgroundFilledSuccess: ColorModeSwitch;\n backgroundFilledWarning: ColorModeSwitch;\n backgroundFilledRisk: ColorModeSwitch;\n backgroundFilledDanger: ColorModeSwitch;\n backgroundFilledText: ColorModeSwitch;\n backgroundFilledDisabled: ColorModeSwitch;\n\n backgroundFilledPrimaryHover: ColorModeSwitch;\n backgroundFilledAccentHover: ColorModeSwitch;\n backgroundFilledAccentSecondaryHover: ColorModeSwitch;\n backgroundFilledNeutralHover: ColorModeSwitch;\n backgroundFilledSuccessHover: ColorModeSwitch;\n backgroundFilledWarningHover: ColorModeSwitch;\n backgroundFilledRiskHover: ColorModeSwitch;\n backgroundFilledDangerHover: ColorModeSwitch;\n backgroundFilledTextHover: ColorModeSwitch;\n\n backgroundFilledPrimaryActive: ColorModeSwitch;\n backgroundFilledAccentActive: ColorModeSwitch;\n backgroundFilledAccentSecondaryActive: ColorModeSwitch;\n backgroundFilledNeutralActive: ColorModeSwitch;\n backgroundFilledSuccessActive: ColorModeSwitch;\n backgroundFilledWarningActive: ColorModeSwitch;\n backgroundFilledRiskActive: ColorModeSwitch;\n backgroundFilledDangerActive: ColorModeSwitch;\n backgroundFilledTextActive: ColorModeSwitch;\n\n backgroundEmptyPrimaryHover: ColorModeSwitch;\n backgroundEmptyAccentHover: ColorModeSwitch;\n backgroundEmptyAccentSecondaryHover: ColorModeSwitch;\n backgroundEmptyNeutralHover: ColorModeSwitch;\n backgroundEmptySuccessHover: ColorModeSwitch;\n backgroundEmptyWarningHover: ColorModeSwitch;\n backgroundEmptyRiskHover: ColorModeSwitch;\n backgroundEmptyDangerHover: ColorModeSwitch;\n backgroundEmptyTextHover: ColorModeSwitch;\n\n backgroundEmptyPrimaryActive: ColorModeSwitch;\n backgroundEmptyAccentActive: ColorModeSwitch;\n backgroundEmptyAccentSecondaryActive: ColorModeSwitch;\n backgroundEmptyNeutralActive: ColorModeSwitch;\n backgroundEmptySuccessActive: ColorModeSwitch;\n backgroundEmptyWarningActive: ColorModeSwitch;\n backgroundEmptyRiskActive: ColorModeSwitch;\n backgroundEmptyDangerActive: ColorModeSwitch;\n backgroundEmptyTextActive: ColorModeSwitch;\n\n textColorPrimary: ColorModeSwitch;\n textColorAccent: ColorModeSwitch;\n textColorAccentSecondary: ColorModeSwitch;\n textColorNeutral: ColorModeSwitch;\n textColorSuccess: ColorModeSwitch;\n textColorWarning: ColorModeSwitch;\n textColorRisk: ColorModeSwitch;\n textColorDanger: ColorModeSwitch;\n textColorText: ColorModeSwitch;\n textColorDisabled: ColorModeSwitch;\n\n textColorFilledPrimary: ColorModeSwitch;\n textColorFilledAccent: ColorModeSwitch;\n textColorFilledAccentSecondary: ColorModeSwitch;\n textColorFilledNeutral: ColorModeSwitch;\n textColorFilledSuccess: ColorModeSwitch;\n textColorFilledWarning: ColorModeSwitch;\n textColorFilledRisk: ColorModeSwitch;\n textColorFilledDanger: ColorModeSwitch;\n textColorFilledText: ColorModeSwitch;\n textColorFilledDisabled: ColorModeSwitch;\n};\n\nexport type _EuiThemeButton = StrictColorModeSwitch<_EuiThemeButtonColors> & {};\n"],"mappings":"","ignoreList":[]}
|
|
@@ -60,8 +60,10 @@ export declare type _EuiThemeBrandTextColors = {
|
|
|
60
60
|
textPrimary: ColorModeSwitch;
|
|
61
61
|
textAccent: ColorModeSwitch;
|
|
62
62
|
textAccentSecondary: ColorModeSwitch;
|
|
63
|
+
textNeutral: ColorModeSwitch;
|
|
63
64
|
textSuccess: ColorModeSwitch;
|
|
64
65
|
textWarning: ColorModeSwitch;
|
|
66
|
+
textRisk: ColorModeSwitch;
|
|
65
67
|
textDanger: ColorModeSwitch;
|
|
66
68
|
};
|
|
67
69
|
export declare type _EuiThemeShadeColors = {
|
|
@@ -158,8 +160,10 @@ export declare type _EuiThemeBackgroundColors = {
|
|
|
158
160
|
backgroundBasePrimary: ColorModeSwitch;
|
|
159
161
|
backgroundBaseAccent: ColorModeSwitch;
|
|
160
162
|
backgroundBaseAccentSecondary: ColorModeSwitch;
|
|
163
|
+
backgroundBaseNeutral: ColorModeSwitch;
|
|
161
164
|
backgroundBaseSuccess: ColorModeSwitch;
|
|
162
165
|
backgroundBaseWarning: ColorModeSwitch;
|
|
166
|
+
backgroundBaseRisk: ColorModeSwitch;
|
|
163
167
|
backgroundBaseDanger: ColorModeSwitch;
|
|
164
168
|
backgroundBaseSubdued: ColorModeSwitch;
|
|
165
169
|
backgroundBasePlain: ColorModeSwitch;
|
|
@@ -175,15 +179,19 @@ export declare type _EuiThemeBackgroundColors = {
|
|
|
175
179
|
backgroundLightPrimary: ColorModeSwitch;
|
|
176
180
|
backgroundLightAccent: ColorModeSwitch;
|
|
177
181
|
backgroundLightAccentSecondary: ColorModeSwitch;
|
|
182
|
+
backgroundLightNeutral: ColorModeSwitch;
|
|
178
183
|
backgroundLightSuccess: ColorModeSwitch;
|
|
179
184
|
backgroundLightWarning: ColorModeSwitch;
|
|
185
|
+
backgroundLightRisk: ColorModeSwitch;
|
|
180
186
|
backgroundLightDanger: ColorModeSwitch;
|
|
181
187
|
backgroundLightText: ColorModeSwitch;
|
|
182
188
|
backgroundFilledPrimary: ColorModeSwitch;
|
|
183
189
|
backgroundFilledAccent: ColorModeSwitch;
|
|
184
190
|
backgroundFilledAccentSecondary: ColorModeSwitch;
|
|
191
|
+
backgroundFilledNeutral: ColorModeSwitch;
|
|
185
192
|
backgroundFilledSuccess: ColorModeSwitch;
|
|
186
193
|
backgroundFilledWarning: ColorModeSwitch;
|
|
194
|
+
backgroundFilledRisk: ColorModeSwitch;
|
|
187
195
|
backgroundFilledDanger: ColorModeSwitch;
|
|
188
196
|
backgroundFilledText: ColorModeSwitch;
|
|
189
197
|
};
|
|
@@ -198,10 +206,14 @@ export declare type _EuiThemeTransparentBackgroundColors = {
|
|
|
198
206
|
/** @deprecated - temp. token, was never in use */
|
|
199
207
|
backgroundTransparentAccentSecondary: ColorModeSwitch;
|
|
200
208
|
/** @deprecated - temp. token, was never in use */
|
|
209
|
+
backgroundTransparentNeutral: ColorModeSwitch;
|
|
210
|
+
/** @deprecated - temp. token, was never in use */
|
|
201
211
|
backgroundTransparentSuccess: ColorModeSwitch;
|
|
202
212
|
/** @deprecated - temp. token, was never in use */
|
|
203
213
|
backgroundTransparentWarning: ColorModeSwitch;
|
|
204
214
|
/** @deprecated - temp. token, was never in use */
|
|
215
|
+
backgroundTransparentRisk: ColorModeSwitch;
|
|
216
|
+
/** @deprecated - temp. token, was never in use */
|
|
205
217
|
backgroundTransparentDanger: ColorModeSwitch;
|
|
206
218
|
/** @deprecated - temp. token, was never in use */
|
|
207
219
|
backgroundTransparentSubdued: ColorModeSwitch;
|
|
@@ -214,8 +226,10 @@ export declare type _EuiThemeBorderColors = {
|
|
|
214
226
|
borderBasePrimary: ColorModeSwitch;
|
|
215
227
|
borderBaseAccent: ColorModeSwitch;
|
|
216
228
|
borderBaseAccentSecondary: ColorModeSwitch;
|
|
229
|
+
borderBaseNeutral: ColorModeSwitch;
|
|
217
230
|
borderBaseSuccess: ColorModeSwitch;
|
|
218
231
|
borderBaseWarning: ColorModeSwitch;
|
|
232
|
+
borderBaseRisk: ColorModeSwitch;
|
|
219
233
|
borderBaseDanger: ColorModeSwitch;
|
|
220
234
|
borderBasePlain: ColorModeSwitch;
|
|
221
235
|
borderBaseSubdued: ColorModeSwitch;
|
|
@@ -230,8 +244,10 @@ export declare type _EuiThemeBorderColors = {
|
|
|
230
244
|
borderStrongPrimary: ColorModeSwitch;
|
|
231
245
|
borderStrongAccent: ColorModeSwitch;
|
|
232
246
|
borderStrongAccentSecondary: ColorModeSwitch;
|
|
247
|
+
borderStrongNeutral: ColorModeSwitch;
|
|
233
248
|
borderStrongSuccess: ColorModeSwitch;
|
|
234
249
|
borderStrongWarning: ColorModeSwitch;
|
|
250
|
+
borderStrongRisk: ColorModeSwitch;
|
|
235
251
|
borderStrongDanger: ColorModeSwitch;
|
|
236
252
|
};
|
|
237
253
|
export declare type _EuiThemeVisColors = {
|
|
@@ -285,21 +301,6 @@ export declare type _EuiThemeVisColors = {
|
|
|
285
301
|
euiColorVisDanger0: string;
|
|
286
302
|
euiColorVisDanger1: string;
|
|
287
303
|
euiColorVisNeutral0: string;
|
|
288
|
-
euiColorSeverity0: string;
|
|
289
|
-
euiColorSeverity1: string;
|
|
290
|
-
euiColorSeverity2: string;
|
|
291
|
-
euiColorSeverity3: string;
|
|
292
|
-
euiColorSeverity4: string;
|
|
293
|
-
euiColorSeverity5: string;
|
|
294
|
-
euiColorSeverity6: string;
|
|
295
|
-
euiColorSeverity7: string;
|
|
296
|
-
euiColorSeverity8: string;
|
|
297
|
-
euiColorSeverity9: string;
|
|
298
|
-
euiColorSeverity10: string;
|
|
299
|
-
euiColorSeverity11: string;
|
|
300
|
-
euiColorSeverity12: string;
|
|
301
|
-
euiColorSeverity13: string;
|
|
302
|
-
euiColorSeverity14: string;
|
|
303
304
|
euiColorVisGrey0: string;
|
|
304
305
|
euiColorVisGrey1: string;
|
|
305
306
|
euiColorVisGrey2: string;
|
|
@@ -313,12 +314,21 @@ export declare type _EuiThemeVisColors = {
|
|
|
313
314
|
euiColorVisComplementary0: string;
|
|
314
315
|
euiColorVisComplementary1: string;
|
|
315
316
|
};
|
|
317
|
+
export declare type _EuiThemeSeverityColors = {
|
|
318
|
+
unknown: string;
|
|
319
|
+
success: string;
|
|
320
|
+
neutral: string;
|
|
321
|
+
warning: string;
|
|
322
|
+
risk: string;
|
|
323
|
+
danger: string;
|
|
324
|
+
};
|
|
316
325
|
export declare type _EuiThemeConstantColors = {
|
|
317
326
|
ghost: string;
|
|
318
327
|
ink: string;
|
|
319
328
|
plainLight: string;
|
|
320
329
|
plainDark: string;
|
|
321
330
|
vis: _EuiThemeVisColors;
|
|
331
|
+
severity: _EuiThemeSeverityColors;
|
|
322
332
|
};
|
|
323
333
|
export declare type _EuiThemeColorsMode = _EuiThemeBrandColors & _EuiThemeBrandTextColors & _EuiThemeShadeColors & _EuiThemeSpecialColors & _EuiThemeTextColors & _EuiThemeBackgroundColors & _EuiThemeTransparentBackgroundColors & _EuiThemeBorderColors;
|
|
324
334
|
export declare type _EuiThemeColors = StrictColorModeSwitch<_EuiThemeColorsMode> & _EuiThemeConstantColors;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"colors.d.ts","sourceRoot":"","sources":["../../../../src/global_styling/variables/colors.ts"],"names":[],"mappings":"AAQA,OAAO,EACL,eAAe,EACf,qBAAqB,EACtB,MAAM,4BAA4B,CAAC;AAEpC;;GAEG;AACH,oBAAY,oBAAoB,GAAG;IACjC;;OAEG;IACH,OAAO,EAAE,eAAe,CAAC;IACzB;;OAEG;IACH,MAAM,EAAE,eAAe,CAAC;IACxB;;OAEG;IACH,eAAe,EAAE,eAAe,CAAC;IACjC;;OAEG;IACH,OAAO,EAAE,eAAe,CAAC;IACzB;;OAEG;IACH,OAAO,EAAE,eAAe,CAAC;IACzB;;OAEG;IACH,MAAM,EAAE,eAAe,CAAC;CACzB,CAAC;AAEF;;GAEG;AACH,oBAAY,wBAAwB,GAAG;IACrC;;;OAGG;IACH,WAAW,EAAE,eAAe,CAAC;IAC7B;;;OAGG;IACH,UAAU,EAAE,eAAe,CAAC;IAC5B;;;OAGG;IACH,WAAW,EAAE,eAAe,CAAC;IAC7B;;;OAGG;IACH,WAAW,EAAE,eAAe,CAAC;IAC7B;;;OAGG;IACH,UAAU,EAAE,eAAe,CAAC;IAE5B,WAAW,EAAE,eAAe,CAAC;IAC7B,UAAU,EAAE,eAAe,CAAC;IAC5B,mBAAmB,EAAE,eAAe,CAAC;IACrC,WAAW,EAAE,eAAe,CAAC;IAC7B,WAAW,EAAE,eAAe,CAAC;IAC7B,UAAU,EAAE,eAAe,CAAC;CAC7B,CAAC;AAEF,oBAAY,oBAAoB,GAAG;IACjC;;;OAGG;IACH,UAAU,EAAE,eAAe,CAAC;IAC5B;;;OAGG;IACH,aAAa,EAAE,eAAe,CAAC;IAC/B;;;OAGG;IACH,UAAU,EAAE,eAAe,CAAC;IAC5B;;;OAGG;IACH,WAAW,EAAE,eAAe,CAAC;IAC7B;;;OAGG;IACH,SAAS,EAAE,eAAe,CAA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C;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,oBAAY,uBAAuB,GAAG;IACpC,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,EAAE,MAAM,CAAC;IAEZ,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAElB,GAAG,EAAE,kBAAkB,CAAC;IACxB,QAAQ,EAAE,uBAAuB,CAAC;CACnC,CAAC;AAEF,oBAAY,mBAAmB,GAAG,oBAAoB,GACpD,wBAAwB,GACxB,oBAAoB,GACpB,sBAAsB,GACtB,mBAAmB,GACnB,yBAAyB,GACzB,oCAAoC,GACpC,qBAAqB,CAAC;AAExB,oBAAY,eAAe,GAAG,qBAAqB,CAAC,mBAAmB,CAAC,GACtE,uBAAuB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"colors.js","names":[],"sources":["../../../../src/global_styling/variables/colors.ts"],"sourcesContent":["/*\n * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one\n * or more contributor license agreements. Licensed under the Elastic License\n * 2.0 and the Server Side Public License, v 1; you may not use this file except\n * in compliance with, at your election, the Elastic License 2.0 or the Server\n * Side Public License, v 1.\n */\n\nimport {\n ColorModeSwitch,\n StrictColorModeSwitch,\n} from '../../services/theme/types';\n\n/**\n * Top 5 colors\n */\nexport type _EuiThemeBrandColors = {\n /**\n * Main brand color and used for most **call to actions** like buttons and links.\n */\n primary: ColorModeSwitch;\n /**\n * Pulls attention to key indicators like **notifications** or number of selections.\n */\n accent: ColorModeSwitch;\n /**\n * Secondary attention indicator with lower priority.\n */\n accentSecondary: ColorModeSwitch;\n /**\n * Used for **positive** messages/graphics and additive actions.\n */\n success: ColorModeSwitch;\n /**\n * Used for **warnings** and actions that have a potential to be destructive.\n */\n warning: ColorModeSwitch;\n /**\n * Used for **negative** messages/graphics like errors and destructive actions.\n */\n danger: ColorModeSwitch;\n};\n\n/**\n * Every brand color must have a contrast computed text equivelant\n */\nexport type _EuiThemeBrandTextColors = {\n /**\n * Typically computed against `colors.primary`\n * @deprecated - use `textPrimary` instead\n */\n primaryText: ColorModeSwitch;\n /**\n * Typically computed against `colors.accent`\n * @deprecated - use `textAccent` instead\n */\n accentText: ColorModeSwitch;\n /**\n * Typically computed against `colors.success`\n * @deprecated - use `textSuccess` instead\n */\n successText: ColorModeSwitch;\n /**\n * Typically computed against `colors.warning`\n * @deprecated - use `textWarning` instead\n */\n warningText: ColorModeSwitch;\n /**\n * Typically computed against `colors.danger`\n * @deprecated - use `textDanger` instead\n */\n dangerText: ColorModeSwitch;\n\n textPrimary: ColorModeSwitch;\n textAccent: ColorModeSwitch;\n textAccentSecondary: ColorModeSwitch;\n textSuccess: ColorModeSwitch;\n textWarning: ColorModeSwitch;\n textDanger: ColorModeSwitch;\n};\n\nexport type _EuiThemeShadeColors = {\n /**\n * Used as the background color of primary **page content and panels** including modals and flyouts.\n * @deprecated - use specific semantic color tokens instead\n */\n emptyShade: ColorModeSwitch;\n /**\n * Used to lightly shade areas that contain **secondary content** or contain panel-like components.\n * @deprecated - use specific semantic color tokens instead\n */\n lightestShade: ColorModeSwitch;\n /**\n * Used for most **borders** and dividers (horizontal rules).\n * @deprecated - use specific semantic color tokens instead\n */\n lightShade: ColorModeSwitch;\n /**\n * The middle gray for all themes; this is the base for `colors.subdued`.\n * @deprecated - use specific semantic color tokens instead\n */\n mediumShade: ColorModeSwitch;\n /**\n * Slightly subtle graphic color\n * @deprecated - use specific semantic color tokens instead\n */\n darkShade: ColorModeSwitch;\n /**\n * Used as the **text** color and the background color for **inverted components** like tooltips and the control bar.\n * @deprecated - use specific semantic color tokens instead\n */\n darkestShade: ColorModeSwitch;\n /**\n * The opposite of `emptyShade`\n * @deprecated - use specific semantic color tokens instead\n */\n fullShade: ColorModeSwitch;\n};\n\nexport type _EuiThemeTextColors = {\n /**\n * Computed against `colors.darkestShade`\n * @deprecated - use `textParagraph` instead\n */\n text: ColorModeSwitch;\n /**\n * Computed against `colors.text`\n * @deprecated - use `textHeading` instead\n */\n title: ColorModeSwitch;\n /**\n * Computed against `colors.mediumShade`\n * @deprecated - use `textSubdued` instead\n */\n subduedText: ColorModeSwitch;\n /**\n * Computed against `colors.textPrimary`\n */\n link: ColorModeSwitch;\n\n textParagraph: ColorModeSwitch;\n textHeading: ColorModeSwitch;\n textSubdued: ColorModeSwitch;\n textDisabled: ColorModeSwitch;\n textInverse: ColorModeSwitch;\n};\n\nexport type _EuiThemeSpecialColors = {\n /**\n * The background color for the **whole window (body)** and is a computed value of `colors.lightestShade`.\n * Provides denominator (background) value for **contrast calculations**.\n * @deprecated - use backgroundBasePlain or backgroundBaseSubdued instead\n */\n body: ColorModeSwitch;\n /**\n * Used to **highlight text** when matching against search strings\n */\n highlight: ColorModeSwitch;\n /**\n * Computed against `colors.darkestShade`\n * @deprecated - use specific semantic tokens instead (e.g. backgroundBaseDisabled, borderBaseDisabled etc)\n */\n disabled: ColorModeSwitch;\n /**\n * Computed against `colors.disabled`\n * @deprecated - use textDisabled instead\n */\n disabledText: ColorModeSwitch;\n /**\n * The base color for shadows that gets `transparentized`\n * at a value based on the `colorMode` and then layered.\n */\n shadow: ColorModeSwitch;\n};\n\nexport type _EuiThemeBackgroundColors = {\n backgroundBasePrimary: ColorModeSwitch;\n backgroundBaseAccent: ColorModeSwitch;\n backgroundBaseAccentSecondary: ColorModeSwitch;\n backgroundBaseSuccess: ColorModeSwitch;\n backgroundBaseWarning: ColorModeSwitch;\n backgroundBaseDanger: ColorModeSwitch;\n backgroundBaseSubdued: ColorModeSwitch;\n backgroundBasePlain: ColorModeSwitch;\n backgroundBaseDisabled: ColorModeSwitch;\n backgroundBaseHighlighted: ColorModeSwitch;\n backgroundBaseFormsPrepend: ColorModeSwitch;\n backgroundBaseFormsControlDisabled: ColorModeSwitch;\n backgroundBaseInteractiveHover: ColorModeSwitch;\n backgroundBaseInteractiveSelect: ColorModeSwitch;\n backgroundBaseInteractiveOverlay: ColorModeSwitch;\n backgroundBaseSkeletonEdge: ColorModeSwitch;\n backgroundBaseSkeletonMiddle: ColorModeSwitch;\n\n backgroundLightPrimary: ColorModeSwitch;\n backgroundLightAccent: ColorModeSwitch;\n backgroundLightAccentSecondary: ColorModeSwitch;\n backgroundLightSuccess: ColorModeSwitch;\n backgroundLightWarning: ColorModeSwitch;\n backgroundLightDanger: ColorModeSwitch;\n backgroundLightText: ColorModeSwitch;\n\n backgroundFilledPrimary: ColorModeSwitch;\n backgroundFilledAccent: ColorModeSwitch;\n backgroundFilledAccentSecondary: ColorModeSwitch;\n backgroundFilledSuccess: ColorModeSwitch;\n backgroundFilledWarning: ColorModeSwitch;\n backgroundFilledDanger: ColorModeSwitch;\n backgroundFilledText: ColorModeSwitch;\n};\n\n/** TODO: remove once usages are re-mapped */\nexport type _EuiThemeTransparentBackgroundColors = {\n /** @deprecated - temp. token, was never in use */\n backgroundTransparent: string;\n /** @deprecated - temp. token, was never in use */\n backgroundTransparentPrimary: ColorModeSwitch;\n /** @deprecated - temp. token, was never in use */\n backgroundTransparentAccent: ColorModeSwitch;\n /** @deprecated - temp. token, was never in use */\n backgroundTransparentAccentSecondary: ColorModeSwitch;\n /** @deprecated - temp. token, was never in use */\n backgroundTransparentSuccess: ColorModeSwitch;\n /** @deprecated - temp. token, was never in use */\n backgroundTransparentWarning: ColorModeSwitch;\n /** @deprecated - temp. token, was never in use */\n backgroundTransparentDanger: ColorModeSwitch;\n /** @deprecated - temp. token, was never in use */\n backgroundTransparentSubdued: ColorModeSwitch;\n /** @deprecated - temp. token, was never in use */\n backgroundTransparentHighlighted: ColorModeSwitch;\n /** @deprecated - temp. token, was never in use */\n backgroundTransparentPlain: ColorModeSwitch;\n};\n\nexport type _EuiThemeBorderColors = {\n borderBasePrimary: ColorModeSwitch;\n borderBaseAccent: ColorModeSwitch;\n borderBaseAccentSecondary: ColorModeSwitch;\n borderBaseSuccess: ColorModeSwitch;\n borderBaseWarning: ColorModeSwitch;\n borderBaseDanger: ColorModeSwitch;\n\n borderBasePlain: ColorModeSwitch;\n borderBaseSubdued: ColorModeSwitch;\n borderBaseDisabled: ColorModeSwitch;\n /**\n * Border used for floating elements on dark mode (e.g. popovers or tooltips)\n * to increase the contrast with the background.\n */\n borderBaseFloating: ColorModeSwitch;\n\n borderBaseFormsColorSwatch: ColorModeSwitch;\n borderBaseFormsControl: ColorModeSwitch;\n\n borderStrongPrimary: ColorModeSwitch;\n borderStrongAccent: ColorModeSwitch;\n borderStrongAccentSecondary: ColorModeSwitch;\n borderStrongSuccess: ColorModeSwitch;\n borderStrongWarning: ColorModeSwitch;\n borderStrongDanger: ColorModeSwitch;\n};\n\nexport type _EuiThemeVisColors = {\n euiColorVis0: string;\n euiColorVis1: string;\n euiColorVis2: string;\n euiColorVis3: string;\n euiColorVis4: string;\n euiColorVis5: string;\n euiColorVis6: string;\n euiColorVis7: string;\n euiColorVis8: string;\n euiColorVis9: string;\n\n /** @deprecated - temp token; used only during theme migration */\n euiColorVisBehindText0: string;\n /** @deprecated - temp token; used only during theme migration */\n euiColorVisBehindText1: string;\n /** @deprecated - temp token; used only during theme migration */\n euiColorVisBehindText2: string;\n /** @deprecated - temp token; used only during theme migration */\n euiColorVisBehindText3: string;\n /** @deprecated - temp token; used only during theme migration */\n euiColorVisBehindText4: string;\n /** @deprecated - temp token; used only during theme migration */\n euiColorVisBehindText5: string;\n /** @deprecated - temp token; used only during theme migration */\n euiColorVisBehindText6: string;\n /** @deprecated - temp token; used only during theme migration */\n euiColorVisBehindText7: string;\n /** @deprecated - temp token; used only during theme migration */\n euiColorVisBehindText8: string;\n /** @deprecated - temp token; used only during theme migration */\n euiColorVisBehindText9: string;\n\n euiColorVisAsTextLight0: string;\n euiColorVisAsTextLight1: string;\n euiColorVisAsTextLight2: string;\n euiColorVisAsTextLight3: string;\n euiColorVisAsTextLight4: string;\n euiColorVisAsTextLight5: string;\n euiColorVisAsTextLight6: string;\n\n euiColorVisAsTextDark0: string;\n euiColorVisAsTextDark1: string;\n euiColorVisAsTextDark2: string;\n euiColorVisAsTextDark3: string;\n euiColorVisAsTextDark4: string;\n euiColorVisAsTextDark5: string;\n euiColorVisAsTextDark6: string;\n\n euiColorVisSuccess0: string;\n euiColorVisSuccess1: string;\n euiColorVisWarning0: string;\n euiColorVisDanger0: string;\n euiColorVisDanger1: string;\n\n euiColorVisNeutral0: string;\n\n euiColorSeverity0: string;\n euiColorSeverity1: string;\n euiColorSeverity2: string;\n euiColorSeverity3: string;\n euiColorSeverity4: string;\n euiColorSeverity5: string;\n euiColorSeverity6: string;\n euiColorSeverity7: string;\n euiColorSeverity8: string;\n euiColorSeverity9: string;\n euiColorSeverity10: string;\n euiColorSeverity11: string;\n euiColorSeverity12: string;\n euiColorSeverity13: string;\n euiColorSeverity14: string;\n\n euiColorVisGrey0: string;\n euiColorVisGrey1: string;\n euiColorVisGrey2: string;\n euiColorVisGrey3: string;\n\n euiColorVisWarm0: string;\n euiColorVisWarm1: string;\n euiColorVisWarm2: string;\n\n euiColorVisCool0: string;\n euiColorVisCool1: string;\n euiColorVisCool2: string;\n\n euiColorVisComplementary0: string;\n euiColorVisComplementary1: string;\n};\n\nexport type _EuiThemeConstantColors = {\n ghost: string;\n ink: string;\n\n plainLight: string;\n plainDark: string;\n\n vis: _EuiThemeVisColors;\n};\n\nexport type _EuiThemeColorsMode = _EuiThemeBrandColors &\n _EuiThemeBrandTextColors &\n _EuiThemeShadeColors &\n _EuiThemeSpecialColors &\n _EuiThemeTextColors &\n _EuiThemeBackgroundColors &\n _EuiThemeTransparentBackgroundColors &\n _EuiThemeBorderColors;\n\nexport type _EuiThemeColors = StrictColorModeSwitch<_EuiThemeColorsMode> &\n _EuiThemeConstantColors;\n"],"mappings":"","ignoreList":[]}
|
|
1
|
+
{"version":3,"file":"colors.js","names":[],"sources":["../../../../src/global_styling/variables/colors.ts"],"sourcesContent":["/*\n * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one\n * or more contributor license agreements. Licensed under the Elastic License\n * 2.0 and the Server Side Public License, v 1; you may not use this file except\n * in compliance with, at your election, the Elastic License 2.0 or the Server\n * Side Public License, v 1.\n */\n\nimport {\n ColorModeSwitch,\n StrictColorModeSwitch,\n} from '../../services/theme/types';\n\n/**\n * Top 5 colors\n */\nexport type _EuiThemeBrandColors = {\n /**\n * Main brand color and used for most **call to actions** like buttons and links.\n */\n primary: ColorModeSwitch;\n /**\n * Pulls attention to key indicators like **notifications** or number of selections.\n */\n accent: ColorModeSwitch;\n /**\n * Secondary attention indicator with lower priority.\n */\n accentSecondary: ColorModeSwitch;\n /**\n * Used for **positive** messages/graphics and additive actions.\n */\n success: ColorModeSwitch;\n /**\n * Used for **warnings** and actions that have a potential to be destructive.\n */\n warning: ColorModeSwitch;\n /**\n * Used for **negative** messages/graphics like errors and destructive actions.\n */\n danger: ColorModeSwitch;\n};\n\n/**\n * Every brand color must have a contrast computed text equivelant\n */\nexport type _EuiThemeBrandTextColors = {\n /**\n * Typically computed against `colors.primary`\n * @deprecated - use `textPrimary` instead\n */\n primaryText: ColorModeSwitch;\n /**\n * Typically computed against `colors.accent`\n * @deprecated - use `textAccent` instead\n */\n accentText: ColorModeSwitch;\n /**\n * Typically computed against `colors.success`\n * @deprecated - use `textSuccess` instead\n */\n successText: ColorModeSwitch;\n /**\n * Typically computed against `colors.warning`\n * @deprecated - use `textWarning` instead\n */\n warningText: ColorModeSwitch;\n /**\n * Typically computed against `colors.danger`\n * @deprecated - use `textDanger` instead\n */\n dangerText: ColorModeSwitch;\n\n textPrimary: ColorModeSwitch;\n textAccent: ColorModeSwitch;\n textAccentSecondary: ColorModeSwitch;\n textNeutral: ColorModeSwitch;\n textSuccess: ColorModeSwitch;\n textWarning: ColorModeSwitch;\n textRisk: ColorModeSwitch;\n textDanger: ColorModeSwitch;\n};\n\nexport type _EuiThemeShadeColors = {\n /**\n * Used as the background color of primary **page content and panels** including modals and flyouts.\n * @deprecated - use specific semantic color tokens instead\n */\n emptyShade: ColorModeSwitch;\n /**\n * Used to lightly shade areas that contain **secondary content** or contain panel-like components.\n * @deprecated - use specific semantic color tokens instead\n */\n lightestShade: ColorModeSwitch;\n /**\n * Used for most **borders** and dividers (horizontal rules).\n * @deprecated - use specific semantic color tokens instead\n */\n lightShade: ColorModeSwitch;\n /**\n * The middle gray for all themes; this is the base for `colors.subdued`.\n * @deprecated - use specific semantic color tokens instead\n */\n mediumShade: ColorModeSwitch;\n /**\n * Slightly subtle graphic color\n * @deprecated - use specific semantic color tokens instead\n */\n darkShade: ColorModeSwitch;\n /**\n * Used as the **text** color and the background color for **inverted components** like tooltips and the control bar.\n * @deprecated - use specific semantic color tokens instead\n */\n darkestShade: ColorModeSwitch;\n /**\n * The opposite of `emptyShade`\n * @deprecated - use specific semantic color tokens instead\n */\n fullShade: ColorModeSwitch;\n};\n\nexport type _EuiThemeTextColors = {\n /**\n * Computed against `colors.darkestShade`\n * @deprecated - use `textParagraph` instead\n */\n text: ColorModeSwitch;\n /**\n * Computed against `colors.text`\n * @deprecated - use `textHeading` instead\n */\n title: ColorModeSwitch;\n /**\n * Computed against `colors.mediumShade`\n * @deprecated - use `textSubdued` instead\n */\n subduedText: ColorModeSwitch;\n /**\n * Computed against `colors.textPrimary`\n */\n link: ColorModeSwitch;\n\n textParagraph: ColorModeSwitch;\n textHeading: ColorModeSwitch;\n textSubdued: ColorModeSwitch;\n textDisabled: ColorModeSwitch;\n textInverse: ColorModeSwitch;\n};\n\nexport type _EuiThemeSpecialColors = {\n /**\n * The background color for the **whole window (body)** and is a computed value of `colors.lightestShade`.\n * Provides denominator (background) value for **contrast calculations**.\n * @deprecated - use backgroundBasePlain or backgroundBaseSubdued instead\n */\n body: ColorModeSwitch;\n /**\n * Used to **highlight text** when matching against search strings\n */\n highlight: ColorModeSwitch;\n /**\n * Computed against `colors.darkestShade`\n * @deprecated - use specific semantic tokens instead (e.g. backgroundBaseDisabled, borderBaseDisabled etc)\n */\n disabled: ColorModeSwitch;\n /**\n * Computed against `colors.disabled`\n * @deprecated - use textDisabled instead\n */\n disabledText: ColorModeSwitch;\n /**\n * The base color for shadows that gets `transparentized`\n * at a value based on the `colorMode` and then layered.\n */\n shadow: ColorModeSwitch;\n};\n\nexport type _EuiThemeBackgroundColors = {\n backgroundBasePrimary: ColorModeSwitch;\n backgroundBaseAccent: ColorModeSwitch;\n backgroundBaseAccentSecondary: ColorModeSwitch;\n backgroundBaseNeutral: ColorModeSwitch;\n backgroundBaseSuccess: ColorModeSwitch;\n backgroundBaseWarning: ColorModeSwitch;\n backgroundBaseRisk: ColorModeSwitch;\n backgroundBaseDanger: ColorModeSwitch;\n backgroundBaseSubdued: ColorModeSwitch;\n backgroundBasePlain: ColorModeSwitch;\n backgroundBaseDisabled: ColorModeSwitch;\n backgroundBaseHighlighted: ColorModeSwitch;\n backgroundBaseFormsPrepend: ColorModeSwitch;\n backgroundBaseFormsControlDisabled: ColorModeSwitch;\n backgroundBaseInteractiveHover: ColorModeSwitch;\n backgroundBaseInteractiveSelect: ColorModeSwitch;\n backgroundBaseInteractiveOverlay: ColorModeSwitch;\n backgroundBaseSkeletonEdge: ColorModeSwitch;\n backgroundBaseSkeletonMiddle: ColorModeSwitch;\n\n backgroundLightPrimary: ColorModeSwitch;\n backgroundLightAccent: ColorModeSwitch;\n backgroundLightAccentSecondary: ColorModeSwitch;\n backgroundLightNeutral: ColorModeSwitch;\n backgroundLightSuccess: ColorModeSwitch;\n backgroundLightWarning: ColorModeSwitch;\n backgroundLightRisk: ColorModeSwitch;\n backgroundLightDanger: ColorModeSwitch;\n backgroundLightText: ColorModeSwitch;\n\n backgroundFilledPrimary: ColorModeSwitch;\n backgroundFilledAccent: ColorModeSwitch;\n backgroundFilledAccentSecondary: ColorModeSwitch;\n backgroundFilledNeutral: ColorModeSwitch;\n backgroundFilledSuccess: ColorModeSwitch;\n backgroundFilledWarning: ColorModeSwitch;\n backgroundFilledRisk: ColorModeSwitch;\n backgroundFilledDanger: ColorModeSwitch;\n backgroundFilledText: ColorModeSwitch;\n};\n\n/** TODO: remove once usages are re-mapped */\nexport type _EuiThemeTransparentBackgroundColors = {\n /** @deprecated - temp. token, was never in use */\n backgroundTransparent: string;\n /** @deprecated - temp. token, was never in use */\n backgroundTransparentPrimary: ColorModeSwitch;\n /** @deprecated - temp. token, was never in use */\n backgroundTransparentAccent: ColorModeSwitch;\n /** @deprecated - temp. token, was never in use */\n backgroundTransparentAccentSecondary: ColorModeSwitch;\n /** @deprecated - temp. token, was never in use */\n backgroundTransparentNeutral: ColorModeSwitch;\n /** @deprecated - temp. token, was never in use */\n backgroundTransparentSuccess: ColorModeSwitch;\n /** @deprecated - temp. token, was never in use */\n backgroundTransparentWarning: ColorModeSwitch;\n /** @deprecated - temp. token, was never in use */\n backgroundTransparentRisk: ColorModeSwitch;\n /** @deprecated - temp. token, was never in use */\n backgroundTransparentDanger: ColorModeSwitch;\n /** @deprecated - temp. token, was never in use */\n backgroundTransparentSubdued: ColorModeSwitch;\n /** @deprecated - temp. token, was never in use */\n backgroundTransparentHighlighted: ColorModeSwitch;\n /** @deprecated - temp. token, was never in use */\n backgroundTransparentPlain: ColorModeSwitch;\n};\n\nexport type _EuiThemeBorderColors = {\n borderBasePrimary: ColorModeSwitch;\n borderBaseAccent: ColorModeSwitch;\n borderBaseAccentSecondary: ColorModeSwitch;\n borderBaseNeutral: ColorModeSwitch;\n borderBaseSuccess: ColorModeSwitch;\n borderBaseWarning: ColorModeSwitch;\n borderBaseRisk: ColorModeSwitch;\n borderBaseDanger: ColorModeSwitch;\n\n borderBasePlain: ColorModeSwitch;\n borderBaseSubdued: ColorModeSwitch;\n borderBaseDisabled: ColorModeSwitch;\n /**\n * Border used for floating elements on dark mode (e.g. popovers or tooltips)\n * to increase the contrast with the background.\n */\n borderBaseFloating: ColorModeSwitch;\n\n borderBaseFormsColorSwatch: ColorModeSwitch;\n borderBaseFormsControl: ColorModeSwitch;\n\n borderStrongPrimary: ColorModeSwitch;\n borderStrongAccent: ColorModeSwitch;\n borderStrongAccentSecondary: ColorModeSwitch;\n borderStrongNeutral: ColorModeSwitch;\n borderStrongSuccess: ColorModeSwitch;\n borderStrongWarning: ColorModeSwitch;\n borderStrongRisk: ColorModeSwitch;\n borderStrongDanger: ColorModeSwitch;\n};\n\nexport type _EuiThemeVisColors = {\n euiColorVis0: string;\n euiColorVis1: string;\n euiColorVis2: string;\n euiColorVis3: string;\n euiColorVis4: string;\n euiColorVis5: string;\n euiColorVis6: string;\n euiColorVis7: string;\n euiColorVis8: string;\n euiColorVis9: string;\n\n /** @deprecated - temp token; used only during theme migration */\n euiColorVisBehindText0: string;\n /** @deprecated - temp token; used only during theme migration */\n euiColorVisBehindText1: string;\n /** @deprecated - temp token; used only during theme migration */\n euiColorVisBehindText2: string;\n /** @deprecated - temp token; used only during theme migration */\n euiColorVisBehindText3: string;\n /** @deprecated - temp token; used only during theme migration */\n euiColorVisBehindText4: string;\n /** @deprecated - temp token; used only during theme migration */\n euiColorVisBehindText5: string;\n /** @deprecated - temp token; used only during theme migration */\n euiColorVisBehindText6: string;\n /** @deprecated - temp token; used only during theme migration */\n euiColorVisBehindText7: string;\n /** @deprecated - temp token; used only during theme migration */\n euiColorVisBehindText8: string;\n /** @deprecated - temp token; used only during theme migration */\n euiColorVisBehindText9: string;\n\n euiColorVisAsTextLight0: string;\n euiColorVisAsTextLight1: string;\n euiColorVisAsTextLight2: string;\n euiColorVisAsTextLight3: string;\n euiColorVisAsTextLight4: string;\n euiColorVisAsTextLight5: string;\n euiColorVisAsTextLight6: string;\n\n euiColorVisAsTextDark0: string;\n euiColorVisAsTextDark1: string;\n euiColorVisAsTextDark2: string;\n euiColorVisAsTextDark3: string;\n euiColorVisAsTextDark4: string;\n euiColorVisAsTextDark5: string;\n euiColorVisAsTextDark6: string;\n\n euiColorVisSuccess0: string;\n euiColorVisSuccess1: string;\n euiColorVisWarning0: string;\n euiColorVisDanger0: string;\n euiColorVisDanger1: string;\n\n euiColorVisNeutral0: string;\n\n euiColorVisGrey0: string;\n euiColorVisGrey1: string;\n euiColorVisGrey2: string;\n euiColorVisGrey3: string;\n\n euiColorVisWarm0: string;\n euiColorVisWarm1: string;\n euiColorVisWarm2: string;\n\n euiColorVisCool0: string;\n euiColorVisCool1: string;\n euiColorVisCool2: string;\n\n euiColorVisComplementary0: string;\n euiColorVisComplementary1: string;\n};\n\nexport type _EuiThemeSeverityColors = {\n unknown: string;\n success: string;\n neutral: string;\n warning: string;\n risk: string;\n danger: string;\n};\n\nexport type _EuiThemeConstantColors = {\n ghost: string;\n ink: string;\n\n plainLight: string;\n plainDark: string;\n\n vis: _EuiThemeVisColors;\n severity: _EuiThemeSeverityColors;\n};\n\nexport type _EuiThemeColorsMode = _EuiThemeBrandColors &\n _EuiThemeBrandTextColors &\n _EuiThemeShadeColors &\n _EuiThemeSpecialColors &\n _EuiThemeTextColors &\n _EuiThemeBackgroundColors &\n _EuiThemeTransparentBackgroundColors &\n _EuiThemeBorderColors;\n\nexport type _EuiThemeColors = StrictColorModeSwitch<_EuiThemeColorsMode> &\n _EuiThemeConstantColors;\n"],"mappings":"","ignoreList":[]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ColorModeSwitch, StrictColorModeSwitch } from '../../services/theme/types';
|
|
2
|
-
import {
|
|
2
|
+
import { _EuiThemeButton } from './buttons';
|
|
3
3
|
import { _EuiThemeForm, _EuiThemeFormColors } from './forms';
|
|
4
4
|
export declare type _EuiThemeComponentColors = {
|
|
5
5
|
badgeBackground: ColorModeSwitch;
|
|
@@ -50,6 +50,7 @@ export declare type _EuiThemeComponentColors = {
|
|
|
50
50
|
headerDarkBackground: ColorModeSwitch;
|
|
51
51
|
headerDarkSearchBorderColor: ColorModeSwitch;
|
|
52
52
|
headerDarkSectionItemBackgroundFocus: ColorModeSwitch;
|
|
53
|
+
filterButtonBadgeBackgroundHover: ColorModeSwitch;
|
|
53
54
|
filterSelectItemBackgroundFocusDisabled: ColorModeSwitch;
|
|
54
55
|
flyoutFooterBackground: ColorModeSwitch;
|
|
55
56
|
flyoutCloseButtonInsideBackground: ColorModeSwitch;
|
|
@@ -97,7 +98,7 @@ export declare type _EuiThemeComponentColors = {
|
|
|
97
98
|
treeViewItemBackgroundHover: ColorModeSwitch;
|
|
98
99
|
};
|
|
99
100
|
export declare type _EuiThemeComponents = {
|
|
100
|
-
buttons:
|
|
101
|
+
buttons: _EuiThemeButton;
|
|
101
102
|
forms: _EuiThemeForm & StrictColorModeSwitch<_EuiThemeFormColors>;
|
|
102
103
|
/**
|
|
103
104
|
* internal-only key that holds temporary tokens used while migrating themes
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"components.d.ts","sourceRoot":"","sources":["../../../../src/global_styling/variables/components.ts"],"names":[],"mappings":"AAQA,OAAO,EACL,eAAe,EACf,qBAAqB,EACtB,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"components.d.ts","sourceRoot":"","sources":["../../../../src/global_styling/variables/components.ts"],"names":[],"mappings":"AAQA,OAAO,EACL,eAAe,EACf,qBAAqB,EACtB,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAC5C,OAAO,EAAE,aAAa,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAE7D,oBAAY,wBAAwB,GAAG;IACrC,eAAe,EAAE,eAAe,CAAC;IACjC,sBAAsB,EAAE,eAAe,CAAC;IACxC,sBAAsB,EAAE,eAAe,CAAC;IACxC,8BAA8B,EAAE,eAAe,CAAC;IAEhD,mBAAmB,EAAE,eAAe,CAAC;IAErC,gCAAgC,EAAE,eAAe,CAAC;IAClD,2BAA2B,EAAE,eAAe,CAAC;IAE7C,qCAAqC,EAAE,eAAe,CAAC;IACvD,sBAAsB,EAAE,eAAe,CAAC;IACxC,8BAA8B,EAAE,eAAe,CAAC;IAChD,qBAAqB,EAAE,eAAe,CAAC;IAEvC,cAAc,EAAE,eAAe,CAAC;IAChC,sBAAsB,EAAE,eAA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BAA0B,EAAE,eAAe,CAAC;IAE5C,iBAAiB,EAAE,eAAe,CAAC;IACnC,aAAa,EAAE,eAAe,CAAC;IAC/B,qBAAqB,EAAE,eAAe,CAAC;IAEvC,oBAAoB,EAAE,eAAe,CAAC;IAEtC,2BAA2B,EAAE,eAAe,CAAC;CAC9C,CAAC;AAEF,oBAAY,mBAAmB,GAAG;IAChC,OAAO,EAAE,eAAe,CAAC;IACzB,KAAK,EAAE,aAAa,GAAG,qBAAqB,CAAC,mBAAmB,CAAC,CAAC;IAClE;;OAEG;IACH,KAAK,EAAE,wBAAwB,CAAC;IAChC,IAAI,EAAE,wBAAwB,CAAC;CAChC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"components.js","names":[],"sources":["../../../../src/global_styling/variables/components.ts"],"sourcesContent":["/*\n * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one\n * or more contributor license agreements. Licensed under the Elastic License\n * 2.0 and the Server Side Public License, v 1; you may not use this file except\n * in compliance with, at your election, the Elastic License 2.0 or the Server\n * Side Public License, v 1.\n */\n\nimport {\n ColorModeSwitch,\n StrictColorModeSwitch,\n} from '../../services/theme/types';\nimport {
|
|
1
|
+
{"version":3,"file":"components.js","names":[],"sources":["../../../../src/global_styling/variables/components.ts"],"sourcesContent":["/*\n * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one\n * or more contributor license agreements. Licensed under the Elastic License\n * 2.0 and the Server Side Public License, v 1; you may not use this file except\n * in compliance with, at your election, the Elastic License 2.0 or the Server\n * Side Public License, v 1.\n */\n\nimport {\n ColorModeSwitch,\n StrictColorModeSwitch,\n} from '../../services/theme/types';\nimport { _EuiThemeButton } from './buttons';\nimport { _EuiThemeForm, _EuiThemeFormColors } from './forms';\n\nexport type _EuiThemeComponentColors = {\n badgeBackground: ColorModeSwitch;\n badgeBackgroundSubdued: ColorModeSwitch;\n badgeBorderColorHollow: ColorModeSwitch;\n badgeIconButtonBackgroundHover: ColorModeSwitch;\n\n bottomBarBackground: ColorModeSwitch;\n\n breadcrumbsApplicationBackground: ColorModeSwitch;\n breadcrumbsApplicationColor: ColorModeSwitch;\n\n buttonGroupBackgroundDisabledSelected: ColorModeSwitch;\n buttonGroupBorderColor: ColorModeSwitch;\n buttonGroupBorderColorSelected: ColorModeSwitch;\n buttonGroupFocusColor: ColorModeSwitch;\n\n codeBackground: ColorModeSwitch;\n codeBackgroundSelected: ColorModeSwitch;\n codeColor: ColorModeSwitch;\n codeInlineColor: ColorModeSwitch;\n codeCommentColor: ColorModeSwitch;\n codeSelectorColor: ColorModeSwitch;\n codeStringColor: ColorModeSwitch;\n codeTagColor: ColorModeSwitch;\n codeNameColor: ColorModeSwitch;\n codeNumberColor: ColorModeSwitch;\n codeInlineCodeKeywordColor: ColorModeSwitch;\n codeKeywordColor: ColorModeSwitch;\n codeFunctionTitleColor: ColorModeSwitch;\n codeTypeColor: ColorModeSwitch;\n codeAttributeColor: ColorModeSwitch;\n codeSymbolColor: ColorModeSwitch;\n codeParamsColor: ColorModeSwitch;\n codeMetaColor: ColorModeSwitch;\n codeTitleColor: ColorModeSwitch;\n codeSectionColor: ColorModeSwitch;\n codeAdditionColor: ColorModeSwitch;\n codeDeletionColor: ColorModeSwitch;\n codeSelectorClassColor: ColorModeSwitch;\n codeSelectorIdColor: ColorModeSwitch;\n\n collapsibleNavGroupBackground: ColorModeSwitch;\n collapsibleNavGroupBackgroundDark: ColorModeSwitch;\n\n dataGridBorderColor: ColorModeSwitch;\n dataGridVerticalLineBorderColor: ColorModeSwitch;\n dataGridRowBackgroundStriped: ColorModeSwitch;\n dataGridRowBackgroundHover: ColorModeSwitch;\n dataGridRowBackgroundSelect: ColorModeSwitch;\n\n dragDropDraggingBackground: ColorModeSwitch;\n dragDropDraggingOverBackground: ColorModeSwitch;\n\n headerBackground: ColorModeSwitch;\n headerDarkBackground: ColorModeSwitch;\n headerDarkSearchBorderColor: ColorModeSwitch;\n headerDarkSectionItemBackgroundFocus: ColorModeSwitch;\n\n filterButtonBadgeBackgroundHover: ColorModeSwitch;\n\n filterSelectItemBackgroundFocusDisabled: ColorModeSwitch;\n\n flyoutFooterBackground: ColorModeSwitch;\n flyoutCloseButtonInsideBackground: ColorModeSwitch;\n\n keyPadMenuItemBackgroundDisabledSelect: ColorModeSwitch;\n\n listGroupItemBackgroundPrimaryActive: ColorModeSwitch;\n listGroupItemBackgroundSubduedActive: ColorModeSwitch;\n listGroupItemBackgroundHover: ColorModeSwitch;\n listGroupItemBackgroundPrimaryHover: ColorModeSwitch;\n\n loadingSpinnerBorder: ColorModeSwitch;\n loadingSpinnerHighlight: ColorModeSwitch;\n\n loadingChartMonoBackground0: ColorModeSwitch;\n loadingChartMonoBackground1: ColorModeSwitch;\n loadingChartMonoBackground2: ColorModeSwitch;\n loadingChartMonoBackground3: ColorModeSwitch;\n\n markBackground: ColorModeSwitch;\n\n markdownFormatTableBorderColor: ColorModeSwitch;\n\n overlayMaskBackground: ColorModeSwitch;\n overlayMaskBackgroundHighContrast: ColorModeSwitch;\n\n popoverPanelBackground: ColorModeSwitch;\n popoverFooterBorderColor: ColorModeSwitch;\n\n scrollbarTrackColor: ColorModeSwitch;\n\n sideNavItemEmphasizedBackground: ColorModeSwitch;\n\n selectableListItemBorderColor: ColorModeSwitch;\n\n skeletonBackgroundSkeletonMiddleHighContrast: ColorModeSwitch;\n\n superDatePickerBackgroundSuccees: ColorModeSwitch;\n\n switchBackgroundOn: ColorModeSwitch;\n switchBackgroundOff: ColorModeSwitch;\n switchUncompressedBackgroundDisabled: ColorModeSwitch;\n switchCompressedBackgroundDisabled: ColorModeSwitch;\n switchMiniBackgroundDisabled: ColorModeSwitch;\n switchThumbBackgroundDisabled: ColorModeSwitch;\n switchThumbBorderOn: ColorModeSwitch;\n switchThumbBorderOff: ColorModeSwitch;\n switchIconDisabled: ColorModeSwitch;\n\n tableRowBackgroundHover: ColorModeSwitch;\n tableRowBackgroundSelected: ColorModeSwitch;\n tableRowBackgroundSelectedHover: ColorModeSwitch;\n tableRowInteractiveBackgroundHover: ColorModeSwitch;\n tableRowInteractiveBackgroundFocus: ColorModeSwitch;\n tableCellSortableIconColor: ColorModeSwitch;\n\n tooltipBackground: ColorModeSwitch;\n tooltipBorder: ColorModeSwitch;\n tooltipBorderFloating: ColorModeSwitch;\n\n tourFooterBackground: ColorModeSwitch;\n\n treeViewItemBackgroundHover: ColorModeSwitch;\n};\n\nexport type _EuiThemeComponents = {\n buttons: _EuiThemeButton;\n forms: _EuiThemeForm & StrictColorModeSwitch<_EuiThemeFormColors>;\n /**\n * internal-only key that holds temporary tokens used while migrating themes\n */\n LIGHT: _EuiThemeComponentColors;\n DARK: _EuiThemeComponentColors;\n};\n"],"mappings":"","ignoreList":[]}
|
|
@@ -1,8 +1,11 @@
|
|
|
1
|
+
export declare type EuiThemeVariantFlags = {
|
|
2
|
+
buttonVariant: 'classic' | 'refresh';
|
|
3
|
+
};
|
|
1
4
|
/**
|
|
2
5
|
* Theme specific setting flags
|
|
3
6
|
*/
|
|
4
7
|
export declare type _EuiThemeFlags = {
|
|
5
8
|
hasGlobalFocusColor: boolean;
|
|
6
9
|
hasVisColorAdjustment: boolean;
|
|
7
|
-
};
|
|
10
|
+
} & EuiThemeVariantFlags;
|
|
8
11
|
//# sourceMappingURL=flags.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"flags.d.ts","sourceRoot":"","sources":["../../../../src/global_styling/variables/flags.ts"],"names":[],"mappings":"AAQA;;GAEG;AACH,oBAAY,cAAc,GAAG;IAC3B,mBAAmB,EAAE,OAAO,CAAC;IAC7B,qBAAqB,EAAE,OAAO,CAAC;CAChC,CAAC"}
|
|
1
|
+
{"version":3,"file":"flags.d.ts","sourceRoot":"","sources":["../../../../src/global_styling/variables/flags.ts"],"names":[],"mappings":"AAQA,oBAAY,oBAAoB,GAAG;IACjC,aAAa,EAAE,SAAS,GAAG,SAAS,CAAC;CACtC,CAAC;AAEF;;GAEG;AACH,oBAAY,cAAc,GAAG;IAC3B,mBAAmB,EAAE,OAAO,CAAC;IAC7B,qBAAqB,EAAE,OAAO,CAAC;CAChC,GAAG,oBAAoB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"flags.js","names":[],"sources":["../../../../src/global_styling/variables/flags.ts"],"sourcesContent":["/*\n * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one\n * or more contributor license agreements. Licensed under the Elastic License\n * 2.0 and the Server Side Public License, v 1; you may not use this file except\n * in compliance with, at your election, the Elastic License 2.0 or the Server\n * Side Public License, v 1.\n */\n\n/**\n * Theme specific setting flags\n */\nexport type _EuiThemeFlags = {\n hasGlobalFocusColor: boolean;\n hasVisColorAdjustment: boolean;\n};\n"],"mappings":"","ignoreList":[]}
|
|
1
|
+
{"version":3,"file":"flags.js","names":[],"sources":["../../../../src/global_styling/variables/flags.ts"],"sourcesContent":["/*\n * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one\n * or more contributor license agreements. Licensed under the Elastic License\n * 2.0 and the Server Side Public License, v 1; you may not use this file except\n * in compliance with, at your election, the Elastic License 2.0 or the Server\n * Side Public License, v 1.\n */\n\nexport type EuiThemeVariantFlags = {\n buttonVariant: 'classic' | 'refresh';\n};\n\n/**\n * Theme specific setting flags\n */\nexport type _EuiThemeFlags = {\n hasGlobalFocusColor: boolean;\n hasVisColorAdjustment: boolean;\n} & EuiThemeVariantFlags;\n"],"mappings":"","ignoreList":[]}
|
package/lib/cjs/utils.d.ts
CHANGED
|
@@ -103,5 +103,5 @@ export declare const mergeDeep: (_target: {
|
|
|
103
103
|
* Returns token name string based on passed dynamic variants
|
|
104
104
|
* and additional prefix/suffix
|
|
105
105
|
*/
|
|
106
|
-
export declare const getTokenName: (prefix: string, variant
|
|
106
|
+
export declare const getTokenName: (prefix: string, variant?: string | undefined, suffix?: string | undefined) => string;
|
|
107
107
|
//# sourceMappingURL=utils.d.ts.map
|
package/lib/cjs/utils.d.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AE,cAAc,GAAG,aAAa,GAAG,IAAI,EAC3C,aAAa;;kBAA4B,EACzC,OAAO,EAAE,OAAO,CAAC,gBAAgB,CAAC,EAClC,SAAS,CAAC,EAAE,yBAAyB;CAsBxC;AAED;;;;;GAKG;AACH,wBAAgB,QAAQ,CAAC,CAAC,EAAE,QAAQ,EAAE,CAAC,KAAK,EAAE,gBAAgB,KAAK,CAAC,GAAG,CAAC,CAAC;AACzE,wBAAgB,QAAQ,CAAC,CAAC,EACxB,QAAQ,EAAE,CAAC,KAAK,EAAE,GAAG,EAAE,KAAK,CAAC,EAC7B,YAAY,EAAE,MAAM,EAAE,GACrB,CAAC,CAAC;AACL,wBAAgB,QAAQ,CAAC,CAAC,EACxB,QAAQ,EAAE,CAAC,KAAK,EAAE,GAAG,KAAK,CAAC,EAC3B,YAAY,EAAE,MAAM,GACnB,CAAC,CAAC;AAkBL;;;;;;;;GAQG;AACH,eAAO,MAAM,WAAW,4FAGX,yBAAyB,iFAgGrC,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,UAAU,gCAAiC,MAAM;;;;CA+E7D,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,SAAS;;;;;;CAsBrB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,YAAY,WACf,MAAM,sEAgBf,CAAC"}
|
package/lib/cjs/utils.js
CHANGED
|
@@ -351,8 +351,11 @@ var getTokenName = exports.getTokenName = function getTokenName(prefix, variant,
|
|
|
351
351
|
var getCapitalized = function getCapitalized(str) {
|
|
352
352
|
return str.charAt(0).toUpperCase() + str.slice(1);
|
|
353
353
|
};
|
|
354
|
-
var colorName = variant.charAt(0).toUpperCase() + variant.slice(1);
|
|
355
354
|
var _suffix = suffix ? getCapitalized(suffix) : '';
|
|
355
|
+
if (!variant) {
|
|
356
|
+
return "".concat(prefix).concat(_suffix);
|
|
357
|
+
}
|
|
358
|
+
var colorName = variant.charAt(0).toUpperCase() + variant.slice(1);
|
|
356
359
|
return "".concat(prefix).concat(getCapitalized(colorName)).concat(_suffix);
|
|
357
360
|
};
|
|
358
361
|
//# sourceMappingURL=utils.js.map
|
package/lib/cjs/utils.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","names":["_global_styling","require","ownKeys","e","r","t","Object","keys","getOwnPropertySymbols","o","filter","getOwnPropertyDescriptor","enumerable","push","apply","_objectSpread","arguments","length","forEach","_defineProperty","getOwnPropertyDescriptors","defineProperties","defineProperty","_toPropertyKey","value","configurable","writable","_toConsumableArray","_arrayWithoutHoles","_iterableToArray","_unsupportedIterableToArray","_nonIterableSpread","TypeError","a","_arrayLikeToArray","toString","call","slice","constructor","name","Array","from","test","Symbol","iterator","isArray","n","_classCallCheck","_defineProperties","key","_createClass","prototype","i","_toPrimitive","_typeof","toPrimitive","String","Number","DEFAULT_COLOR_MODE","exports","COLOR_MODES_STANDARD","light","isObject","obj","isInverseColorMode","colorMode","COLOR_MODES_INVERSE","getColorMode","parentColorMode","isForced","mode","toUpperCase","dark","undefined","getOn","model","_path","path","split","node","segment","shift","hasOwnProperty","Computed","getValue","setOn","propertyName","pop","computer","dependencies","base","modifications","working","_ref","_getOn","map","dependency","_ref2","_getOn2","computed","comp","dep","isComputedLike","getComputed","over","highContrastMode","output","themeName","_hcmOverridesKey","concat","EUI_THEME_OVERRIDES_KEY","EUI_THEME_HIGH_CONTRAST_MODE_KEY","_hcmBaseOverrides","_hcmOverOverrides","loop","checkExisting","newPath","values","includes","colorModeSegment","RegExp","replace","existing","baseValue","root","overValue","hcmBaseValue","hcmOverValue","hcmCombinedOverValue","combinedOverValue","mergeDeep","buildTheme","handler","getPrototypeOf","target","Reflect","setPrototypeOf","isExtensible","preventExtensions","property","attributes","has","get","_target","Proxy","set","deleteProperty","construct","themeProxy","source","targetValue","sourceValue","getTokenName","prefix","variant","suffix","getCapitalized","str","charAt","colorName","_suffix"],"sources":["../../src/utils.ts"],"sourcesContent":["/*\n * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one\n * or more contributor license agreements. Licensed under the Elastic License\n * 2.0 and the Server Side Public License, v 1; you may not use this file except\n * in compliance with, at your election, the Elastic License 2.0 or the Server\n * Side Public License, v 1.\n */\n\nimport {\n EuiThemeColorMode,\n EuiThemeColorModeInverse,\n EuiThemeColorModeStandard,\n EuiThemeModifications,\n EuiThemeSystem,\n EuiThemeShape,\n EuiThemeComputed,\n COLOR_MODES_STANDARD,\n COLOR_MODES_INVERSE,\n EuiThemeHighContrastMode,\n EUI_THEME_OVERRIDES_KEY,\n EUI_THEME_HIGH_CONTRAST_MODE_KEY,\n} from './global_styling';\n\nexport const DEFAULT_COLOR_MODE = COLOR_MODES_STANDARD.light;\n\n/**\n * Returns whether the parameter is an object\n * @param {any} obj - Anything\n */\nconst isObject = (obj: any) => obj && typeof obj === 'object';\n\n/**\n * Returns whether the provided color mode is `inverse`\n * @param {string} colorMode - `light`, `dark`, or `inverse`\n */\nexport const isInverseColorMode = (\n colorMode?: string\n): colorMode is EuiThemeColorModeInverse => {\n return colorMode === COLOR_MODES_INVERSE;\n};\n\n/**\n * Returns the color mode configured in the current EuiThemeProvider.\n * Returns the parent color mode if none is explicity set.\n * @param {string} colorMode - `light`, `dark`, or `inverse`\n * @param {string} parentColorMode - `LIGHT` or `DARK`; used as the fallback\n * @param {boolean} isForced\n */\nexport const getColorMode = (\n colorMode?: EuiThemeColorMode,\n parentColorMode?: EuiThemeColorModeStandard,\n isForced?: boolean\n): EuiThemeColorModeStandard => {\n if (isForced || colorMode == null) {\n return parentColorMode || DEFAULT_COLOR_MODE;\n }\n const mode = colorMode.toUpperCase() as\n | EuiThemeColorModeInverse\n | EuiThemeColorModeStandard;\n if (isInverseColorMode(mode)) {\n return parentColorMode === COLOR_MODES_STANDARD.dark ||\n parentColorMode === undefined\n ? COLOR_MODES_STANDARD.light\n : COLOR_MODES_STANDARD.dark;\n } else {\n return mode;\n }\n};\n\n/**\n * Returns a value at a given path on an object.\n * If `colorMode` is provided, will scope the value to the appropriate color mode key (LIGHT\\DARK)\n * @param {object} model - Object\n * @param {string} _path - Dot-notated string to a path on the object\n * @param {string} colorMode - `light` or `dark`\n */\nexport const getOn = (\n model: { [key: string]: any },\n _path: string,\n colorMode?: EuiThemeColorModeStandard\n) => {\n const path = _path.split('.');\n let node = model;\n while (path.length) {\n const segment = path.shift()!;\n\n if (node.hasOwnProperty(segment) === false) {\n if (\n colorMode &&\n node.hasOwnProperty(colorMode) === true &&\n node[colorMode].hasOwnProperty(segment) === true\n ) {\n if (node[colorMode][segment] instanceof Computed) {\n node = node[colorMode][segment].getValue(null, {}, node, colorMode);\n } else {\n node = node[colorMode][segment];\n }\n } else {\n return undefined;\n }\n } else {\n if (node[segment] instanceof Computed) {\n node = node[segment].getValue(null, {}, node, colorMode);\n } else {\n node = node[segment];\n }\n }\n }\n\n return node;\n};\n\n/**\n * Sets a value at a given path on an object.\n * @param {object} model - Object\n * @param {string} _path - Dot-notated string to a path on the object\n * @param {any} string - The value to set\n */\nexport const setOn = (\n model: { [key: string]: any },\n _path: string,\n value: any\n) => {\n const path = _path.split('.');\n const propertyName = path.pop()!;\n let node = model;\n\n while (path.length) {\n const segment = path.shift()!;\n if (node.hasOwnProperty(segment) === false) {\n node[segment] = {};\n }\n node = node[segment];\n }\n\n node[propertyName] = value;\n return true;\n};\n\n/**\n * Creates a class to store the `computer` method and its eventual parameters.\n * Allows for on-demand computation with up-to-date parameters via `getValue` method.\n * @constructor\n * @param {function} computer - Function to be computed\n * @param {string | array} dependencies - Dependencies passed to the `computer` as parameters\n */\nexport class Computed<T> {\n constructor(\n public computer: (...values: any[]) => T,\n public dependencies: string | string[] = []\n ) {}\n\n /**\n * Executes the `computer` method with the current state of the theme\n * by taking into account previously computed values and modifications.\n * @param {Proxy | object} base - Computed or uncomputed theme\n * @param {Proxy | object} modifications - Theme value overrides\n * @param {object} working - Partially computed theme\n * @param {string} colorMode - `light` or `dark`\n */\n getValue(\n base: EuiThemeSystem | EuiThemeShape | null,\n modifications: EuiThemeModifications = {},\n working: Partial<EuiThemeComputed>,\n colorMode?: EuiThemeColorModeStandard\n ) {\n if (!this.dependencies.length) {\n return this.computer(working);\n }\n if (!Array.isArray(this.dependencies)) {\n return this.computer(\n getOn(working, this.dependencies) ??\n getOn(modifications, this.dependencies, colorMode) ??\n (base ? getOn(base, this.dependencies, colorMode) : working)\n );\n }\n return this.computer(\n this.dependencies.map((dependency) => {\n return (\n getOn(working, dependency) ??\n getOn(modifications, dependency, colorMode) ??\n (base ? getOn(base, dependency, colorMode) : working)\n );\n })\n );\n }\n}\n\n/**\n * Returns a Class (`Computed`) that stores the arbitrary computer method\n * and references to its optional dependecies.\n * @param {function} computer - Arbitrary method to be called at compute time.\n * @param {string | array} dependencies - Values that will be provided to `computer` at compute time.\n */\nexport function computed<T>(computer: (value: EuiThemeComputed) => T): T;\nexport function computed<T>(\n computer: (value: any[]) => T,\n dependencies: string[]\n): T;\nexport function computed<T>(\n computer: (value: any) => T,\n dependencies: string\n): T;\nexport function computed<T>(\n comp: ((value: T) => T) | ((value: any) => T) | ((value: any[]) => T),\n dep?: string | string[]\n) {\n return new Computed<T>(comp, dep);\n}\n\n/**\n * Type guard to check for a Computed object based on object shape\n * without relying on the Computed class directly\n */\nconst isComputedLike = <T>(key: object): key is Computed<T> => {\n if (typeof key !== 'object' || Array.isArray(key)) return false;\n\n return key.hasOwnProperty('dependencies') && key.hasOwnProperty('computer');\n};\n\n/**\n * Takes an uncomputed theme, and computes and returns all values taking\n * into consideration value overrides and configured color mode.\n * Overrides take precedence, and only values in the current color mode\n * are computed and returned.\n * @param {Proxy} base - Object to transform into Proxy\n * @param {Proxy | object} over - Unique identifier or name\n * @param {string} colorMode - `light` or `dark`\n */\nexport const getComputed = <T = EuiThemeShape>(\n base: EuiThemeSystem<T>,\n over: Partial<EuiThemeSystem<T>>,\n colorMode: EuiThemeColorModeStandard,\n highContrastMode?: EuiThemeHighContrastMode\n): EuiThemeComputed<T> => {\n const output: Partial<EuiThemeComputed> = { themeName: base.key };\n const _hcmOverridesKey = `${EUI_THEME_OVERRIDES_KEY}.${EUI_THEME_HIGH_CONTRAST_MODE_KEY}`;\n const _hcmBaseOverrides = highContrastMode\n ? getOn(base, _hcmOverridesKey)\n : undefined;\n const _hcmOverOverrides = highContrastMode\n ? getOn(over, _hcmOverridesKey)\n : undefined;\n\n function loop(\n base: { [key: string]: any },\n over: { [key: string]: any },\n checkExisting: boolean = false,\n path?: string\n ) {\n Object.keys(base).forEach((key) => {\n let newPath = path ? `${path}.${key}` : `${key}`;\n\n // remove the internal overrides key from the computed theme object\n // the override values are only used internally in getComputed()\n if (key === EUI_THEME_OVERRIDES_KEY) {\n return;\n }\n\n // @ts-expect-error `key` is not necessarily a colorMode key\n if ([...Object.values(COLOR_MODES_STANDARD), colorMode].includes(key)) {\n if (key !== colorMode) {\n return;\n } else {\n const colorModeSegment = new RegExp(\n `(\\\\.${colorMode}\\\\b)|(\\\\b${colorMode}\\\\.)`\n );\n newPath = newPath.replace(colorModeSegment, '');\n }\n }\n const existing = checkExisting && getOn(output, newPath);\n if (!existing || isObject(existing)) {\n // NOTE: the class type check for Computed is not true for themes created externally;\n // we additionally check on the object shape to confirm a Computed value\n const baseValue =\n base[key] instanceof Computed || isComputedLike<T>(base[key])\n ? base[key].getValue(base.root, over.root, output, colorMode)\n : base[key];\n const overValue =\n over[key] instanceof Computed || isComputedLike<T>(over[key])\n ? over[key].getValue(base.root, over.root, output, colorMode)\n : over[key];\n\n const hcmBaseValue = _hcmBaseOverrides\n ? _hcmBaseOverrides[key] instanceof Computed ||\n isComputedLike<T>(_hcmBaseOverrides[key])\n ? _hcmBaseOverrides[key].getValue(\n base.root,\n _hcmBaseOverrides.root,\n output,\n colorMode\n )\n : _hcmBaseOverrides[key]\n : undefined;\n const hcmOverValue = _hcmOverOverrides\n ? _hcmOverOverrides[key] instanceof Computed ||\n isComputedLike<T>(_hcmOverOverrides[key])\n ? _hcmOverOverrides[key].getValue(\n base.root,\n _hcmOverOverrides.root,\n output,\n colorMode\n )\n : _hcmOverOverrides[key]\n : undefined;\n\n const hcmCombinedOverValue = hcmOverValue ?? hcmBaseValue;\n\n // combine internal overrides with manual overrides\n const combinedOverValue =\n isObject(overValue) && isObject(hcmOverValue)\n ? mergeDeep(overValue, hcmCombinedOverValue)\n : // optional overrides e.g. on provider level should still override theme level\n overValue ?? hcmCombinedOverValue;\n\n if (isObject(baseValue) && !Array.isArray(baseValue)) {\n loop(baseValue, combinedOverValue ?? {}, checkExisting, newPath);\n } else {\n setOn(output, newPath, combinedOverValue ?? baseValue);\n }\n }\n });\n }\n // Compute standard theme values and apply overrides\n loop(base, over);\n // Compute and apply extension values only\n loop(over, {}, true);\n return output as EuiThemeComputed<T>;\n};\n\n/**\n * Builds a Proxy with a custom `handler` designed to self-reference values\n * and prevent arbitrary value overrides.\n * @param {object} model - Object to transform into Proxy\n * @param {string} key - Unique identifier or name\n */\nexport const buildTheme = <T extends {}>(model: T, key: string) => {\n const handler: ProxyHandler<EuiThemeSystem<T>> = {\n getPrototypeOf(target) {\n return Reflect.getPrototypeOf(target.model);\n },\n\n setPrototypeOf(target, prototype) {\n return Reflect.setPrototypeOf(target.model, prototype);\n },\n\n isExtensible(target) {\n return Reflect.isExtensible(target);\n },\n\n preventExtensions(target) {\n return Reflect.preventExtensions(target.model);\n },\n\n getOwnPropertyDescriptor(target, key) {\n return Reflect.getOwnPropertyDescriptor(target.model, key);\n },\n\n defineProperty(target, property, attributes) {\n return Reflect.defineProperty(target.model, property, attributes);\n },\n\n has(target, property) {\n return Reflect.has(target.model, property);\n },\n\n get(_target, property) {\n if (property === 'key') {\n return _target[property];\n }\n\n // prevent Safari from locking up when the proxy is used in dev tools\n // as it doesn't support getPrototypeOf\n if (property === '__proto__') return {};\n\n const target = property === 'root' ? _target : _target.model || _target;\n // @ts-ignore `string` index signature\n const value = target[property];\n if (isObject(value) && !Array.isArray(value)) {\n return new Proxy(\n {\n model: value,\n root: _target.root,\n key: `_${_target.key}`,\n },\n handler\n );\n } else {\n return value;\n }\n },\n\n set(target: any) {\n return target;\n },\n\n deleteProperty(target: any) {\n return target;\n },\n\n ownKeys(target) {\n return Reflect.ownKeys(target.model);\n },\n\n apply(target: any) {\n return target;\n },\n\n construct(target: any) {\n return target;\n },\n };\n const themeProxy = new Proxy({ model, root: model, key }, handler);\n\n return themeProxy;\n};\n\n/**\n * Deeply merges two objects, using `source` values whenever possible.\n * @param {object} _target - Object with fallback values\n * @param {object} source - Object with desired values\n */\nexport const mergeDeep = (\n _target: { [key: string]: any },\n source: { [key: string]: any } = {}\n) => {\n const target = { ..._target };\n\n if (!isObject(target) || !isObject(source)) {\n return source;\n }\n\n Object.keys(source).forEach((key) => {\n const targetValue = target[key];\n const sourceValue = source[key];\n\n if (isObject(targetValue) && isObject(sourceValue)) {\n target[key] = mergeDeep({ ...targetValue }, { ...sourceValue });\n } else {\n target[key] = sourceValue;\n }\n });\n\n return target;\n};\n\n/**\n * Returns token name string based on passed dynamic variants\n * and additional prefix/suffix\n */\nexport const getTokenName = (\n prefix: string,\n variant: string,\n suffix?: string\n) => {\n const getCapitalized = (str: string) =>\n str.charAt(0).toUpperCase() + str.slice(1);\n const colorName = variant.charAt(0).toUpperCase() + variant.slice(1);\n const _suffix = suffix ? getCapitalized(suffix) : '';\n\n return `${prefix}${getCapitalized(colorName)}${_suffix}`;\n};\n"],"mappings":";;;;;;;;AAQA,IAAAA,eAAA,GAAAC,OAAA;AAa0B,SAAAC,QAAAC,CAAA,EAAAC,CAAA,QAAAC,CAAA,GAAAC,MAAA,CAAAC,IAAA,CAAAJ,CAAA,OAAAG,MAAA,CAAAE,qBAAA,QAAAC,CAAA,GAAAH,MAAA,CAAAE,qBAAA,CAAAL,CAAA,GAAAC,CAAA,KAAAK,CAAA,GAAAA,CAAA,CAAAC,MAAA,WAAAN,CAAA,WAAAE,MAAA,CAAAK,wBAAA,CAAAR,CAAA,EAAAC,CAAA,EAAAQ,UAAA,OAAAP,CAAA,CAAAQ,IAAA,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AC,GAAGmF,OAAO,CAACrH,KAAK,CAAC,CAAC,CAAC;EACpE,IAAM2H,OAAO,GAAGL,MAAM,GAAGC,cAAc,CAACD,MAAM,CAAC,GAAG,EAAE;EAEpD,UAAA9C,MAAA,CAAU4C,MAAM,EAAA5C,MAAA,CAAG+C,cAAc,CAACG,SAAS,CAAC,EAAAlD,MAAA,CAAGmD,OAAO;AACxD,CAAC","ignoreList":[]}
|
|
1
|
+
{"version":3,"file":"utils.js","names":["_global_styling","require","ownKeys","e","r","t","Object","keys","getOwnPropertySymbols","o","filter","getOwnPropertyDescriptor","enumerable","push","apply","_objectSpread","arguments","length","forEach","_defineProperty","getOwnPropertyDescriptors","defineProperties","defineProperty","_toPropertyKey","value","configurable","writable","_toConsumableArray","_arrayWithoutHoles","_iterableToArray","_unsupportedIterableToArray","_nonIterableSpread","TypeError","a","_arrayLikeToArray","toString","call","slice","constructor","name","Array","from","test","Symbol","iterator","isArray","n","_classCallCheck","_defineProperties","key","_createClass","prototype","i","_toPrimitive","_typeof","toPrimitive","String","Number","DEFAULT_COLOR_MODE","exports","COLOR_MODES_STANDARD","light","isObject","obj","isInverseColorMode","colorMode","COLOR_MODES_INVERSE","getColorMode","parentColorMode","isForced","mode","toUpperCase","dark","undefined","getOn","model","_path","path","split","node","segment","shift","hasOwnProperty","Computed","getValue","setOn","propertyName","pop","computer","dependencies","base","modifications","working","_ref","_getOn","map","dependency","_ref2","_getOn2","computed","comp","dep","isComputedLike","getComputed","over","highContrastMode","output","themeName","_hcmOverridesKey","concat","EUI_THEME_OVERRIDES_KEY","EUI_THEME_HIGH_CONTRAST_MODE_KEY","_hcmBaseOverrides","_hcmOverOverrides","loop","checkExisting","newPath","values","includes","colorModeSegment","RegExp","replace","existing","baseValue","root","overValue","hcmBaseValue","hcmOverValue","hcmCombinedOverValue","combinedOverValue","mergeDeep","buildTheme","handler","getPrototypeOf","target","Reflect","setPrototypeOf","isExtensible","preventExtensions","property","attributes","has","get","_target","Proxy","set","deleteProperty","construct","themeProxy","source","targetValue","sourceValue","getTokenName","prefix","variant","suffix","getCapitalized","str","charAt","_suffix","colorName"],"sources":["../../src/utils.ts"],"sourcesContent":["/*\n * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one\n * or more contributor license agreements. Licensed under the Elastic License\n * 2.0 and the Server Side Public License, v 1; you may not use this file except\n * in compliance with, at your election, the Elastic License 2.0 or the Server\n * Side Public License, v 1.\n */\n\nimport {\n EuiThemeColorMode,\n EuiThemeColorModeInverse,\n EuiThemeColorModeStandard,\n EuiThemeModifications,\n EuiThemeSystem,\n EuiThemeShape,\n EuiThemeComputed,\n COLOR_MODES_STANDARD,\n COLOR_MODES_INVERSE,\n EuiThemeHighContrastMode,\n EUI_THEME_OVERRIDES_KEY,\n EUI_THEME_HIGH_CONTRAST_MODE_KEY,\n} from './global_styling';\n\nexport const DEFAULT_COLOR_MODE = COLOR_MODES_STANDARD.light;\n\n/**\n * Returns whether the parameter is an object\n * @param {any} obj - Anything\n */\nconst isObject = (obj: any) => obj && typeof obj === 'object';\n\n/**\n * Returns whether the provided color mode is `inverse`\n * @param {string} colorMode - `light`, `dark`, or `inverse`\n */\nexport const isInverseColorMode = (\n colorMode?: string\n): colorMode is EuiThemeColorModeInverse => {\n return colorMode === COLOR_MODES_INVERSE;\n};\n\n/**\n * Returns the color mode configured in the current EuiThemeProvider.\n * Returns the parent color mode if none is explicity set.\n * @param {string} colorMode - `light`, `dark`, or `inverse`\n * @param {string} parentColorMode - `LIGHT` or `DARK`; used as the fallback\n * @param {boolean} isForced\n */\nexport const getColorMode = (\n colorMode?: EuiThemeColorMode,\n parentColorMode?: EuiThemeColorModeStandard,\n isForced?: boolean\n): EuiThemeColorModeStandard => {\n if (isForced || colorMode == null) {\n return parentColorMode || DEFAULT_COLOR_MODE;\n }\n const mode = colorMode.toUpperCase() as\n | EuiThemeColorModeInverse\n | EuiThemeColorModeStandard;\n if (isInverseColorMode(mode)) {\n return parentColorMode === COLOR_MODES_STANDARD.dark ||\n parentColorMode === undefined\n ? COLOR_MODES_STANDARD.light\n : COLOR_MODES_STANDARD.dark;\n } else {\n return mode;\n }\n};\n\n/**\n * Returns a value at a given path on an object.\n * If `colorMode` is provided, will scope the value to the appropriate color mode key (LIGHT\\DARK)\n * @param {object} model - Object\n * @param {string} _path - Dot-notated string to a path on the object\n * @param {string} colorMode - `light` or `dark`\n */\nexport const getOn = (\n model: { [key: string]: any },\n _path: string,\n colorMode?: EuiThemeColorModeStandard\n) => {\n const path = _path.split('.');\n let node = model;\n while (path.length) {\n const segment = path.shift()!;\n\n if (node.hasOwnProperty(segment) === false) {\n if (\n colorMode &&\n node.hasOwnProperty(colorMode) === true &&\n node[colorMode].hasOwnProperty(segment) === true\n ) {\n if (node[colorMode][segment] instanceof Computed) {\n node = node[colorMode][segment].getValue(null, {}, node, colorMode);\n } else {\n node = node[colorMode][segment];\n }\n } else {\n return undefined;\n }\n } else {\n if (node[segment] instanceof Computed) {\n node = node[segment].getValue(null, {}, node, colorMode);\n } else {\n node = node[segment];\n }\n }\n }\n\n return node;\n};\n\n/**\n * Sets a value at a given path on an object.\n * @param {object} model - Object\n * @param {string} _path - Dot-notated string to a path on the object\n * @param {any} string - The value to set\n */\nexport const setOn = (\n model: { [key: string]: any },\n _path: string,\n value: any\n) => {\n const path = _path.split('.');\n const propertyName = path.pop()!;\n let node = model;\n\n while (path.length) {\n const segment = path.shift()!;\n if (node.hasOwnProperty(segment) === false) {\n node[segment] = {};\n }\n node = node[segment];\n }\n\n node[propertyName] = value;\n return true;\n};\n\n/**\n * Creates a class to store the `computer` method and its eventual parameters.\n * Allows for on-demand computation with up-to-date parameters via `getValue` method.\n * @constructor\n * @param {function} computer - Function to be computed\n * @param {string | array} dependencies - Dependencies passed to the `computer` as parameters\n */\nexport class Computed<T> {\n constructor(\n public computer: (...values: any[]) => T,\n public dependencies: string | string[] = []\n ) {}\n\n /**\n * Executes the `computer` method with the current state of the theme\n * by taking into account previously computed values and modifications.\n * @param {Proxy | object} base - Computed or uncomputed theme\n * @param {Proxy | object} modifications - Theme value overrides\n * @param {object} working - Partially computed theme\n * @param {string} colorMode - `light` or `dark`\n */\n getValue(\n base: EuiThemeSystem | EuiThemeShape | null,\n modifications: EuiThemeModifications = {},\n working: Partial<EuiThemeComputed>,\n colorMode?: EuiThemeColorModeStandard\n ) {\n if (!this.dependencies.length) {\n return this.computer(working);\n }\n if (!Array.isArray(this.dependencies)) {\n return this.computer(\n getOn(working, this.dependencies) ??\n getOn(modifications, this.dependencies, colorMode) ??\n (base ? getOn(base, this.dependencies, colorMode) : working)\n );\n }\n return this.computer(\n this.dependencies.map((dependency) => {\n return (\n getOn(working, dependency) ??\n getOn(modifications, dependency, colorMode) ??\n (base ? getOn(base, dependency, colorMode) : working)\n );\n })\n );\n }\n}\n\n/**\n * Returns a Class (`Computed`) that stores the arbitrary computer method\n * and references to its optional dependecies.\n * @param {function} computer - Arbitrary method to be called at compute time.\n * @param {string | array} dependencies - Values that will be provided to `computer` at compute time.\n */\nexport function computed<T>(computer: (value: EuiThemeComputed) => T): T;\nexport function computed<T>(\n computer: (value: any[]) => T,\n dependencies: string[]\n): T;\nexport function computed<T>(\n computer: (value: any) => T,\n dependencies: string\n): T;\nexport function computed<T>(\n comp: ((value: T) => T) | ((value: any) => T) | ((value: any[]) => T),\n dep?: string | string[]\n) {\n return new Computed<T>(comp, dep);\n}\n\n/**\n * Type guard to check for a Computed object based on object shape\n * without relying on the Computed class directly\n */\nconst isComputedLike = <T>(key: object): key is Computed<T> => {\n if (typeof key !== 'object' || Array.isArray(key)) return false;\n\n return key.hasOwnProperty('dependencies') && key.hasOwnProperty('computer');\n};\n\n/**\n * Takes an uncomputed theme, and computes and returns all values taking\n * into consideration value overrides and configured color mode.\n * Overrides take precedence, and only values in the current color mode\n * are computed and returned.\n * @param {Proxy} base - Object to transform into Proxy\n * @param {Proxy | object} over - Unique identifier or name\n * @param {string} colorMode - `light` or `dark`\n */\nexport const getComputed = <T = EuiThemeShape>(\n base: EuiThemeSystem<T>,\n over: Partial<EuiThemeSystem<T>>,\n colorMode: EuiThemeColorModeStandard,\n highContrastMode?: EuiThemeHighContrastMode\n): EuiThemeComputed<T> => {\n const output: Partial<EuiThemeComputed> = { themeName: base.key };\n const _hcmOverridesKey = `${EUI_THEME_OVERRIDES_KEY}.${EUI_THEME_HIGH_CONTRAST_MODE_KEY}`;\n const _hcmBaseOverrides = highContrastMode\n ? getOn(base, _hcmOverridesKey)\n : undefined;\n const _hcmOverOverrides = highContrastMode\n ? getOn(over, _hcmOverridesKey)\n : undefined;\n\n function loop(\n base: { [key: string]: any },\n over: { [key: string]: any },\n checkExisting: boolean = false,\n path?: string\n ) {\n Object.keys(base).forEach((key) => {\n let newPath = path ? `${path}.${key}` : `${key}`;\n\n // remove the internal overrides key from the computed theme object\n // the override values are only used internally in getComputed()\n if (key === EUI_THEME_OVERRIDES_KEY) {\n return;\n }\n\n // @ts-expect-error `key` is not necessarily a colorMode key\n if ([...Object.values(COLOR_MODES_STANDARD), colorMode].includes(key)) {\n if (key !== colorMode) {\n return;\n } else {\n const colorModeSegment = new RegExp(\n `(\\\\.${colorMode}\\\\b)|(\\\\b${colorMode}\\\\.)`\n );\n newPath = newPath.replace(colorModeSegment, '');\n }\n }\n const existing = checkExisting && getOn(output, newPath);\n if (!existing || isObject(existing)) {\n // NOTE: the class type check for Computed is not true for themes created externally;\n // we additionally check on the object shape to confirm a Computed value\n const baseValue =\n base[key] instanceof Computed || isComputedLike<T>(base[key])\n ? base[key].getValue(base.root, over.root, output, colorMode)\n : base[key];\n const overValue =\n over[key] instanceof Computed || isComputedLike<T>(over[key])\n ? over[key].getValue(base.root, over.root, output, colorMode)\n : over[key];\n\n const hcmBaseValue = _hcmBaseOverrides\n ? _hcmBaseOverrides[key] instanceof Computed ||\n isComputedLike<T>(_hcmBaseOverrides[key])\n ? _hcmBaseOverrides[key].getValue(\n base.root,\n _hcmBaseOverrides.root,\n output,\n colorMode\n )\n : _hcmBaseOverrides[key]\n : undefined;\n const hcmOverValue = _hcmOverOverrides\n ? _hcmOverOverrides[key] instanceof Computed ||\n isComputedLike<T>(_hcmOverOverrides[key])\n ? _hcmOverOverrides[key].getValue(\n base.root,\n _hcmOverOverrides.root,\n output,\n colorMode\n )\n : _hcmOverOverrides[key]\n : undefined;\n\n const hcmCombinedOverValue = hcmOverValue ?? hcmBaseValue;\n\n // combine internal overrides with manual overrides\n const combinedOverValue =\n isObject(overValue) && isObject(hcmOverValue)\n ? mergeDeep(overValue, hcmCombinedOverValue)\n : // optional overrides e.g. on provider level should still override theme level\n overValue ?? hcmCombinedOverValue;\n\n if (isObject(baseValue) && !Array.isArray(baseValue)) {\n loop(baseValue, combinedOverValue ?? {}, checkExisting, newPath);\n } else {\n setOn(output, newPath, combinedOverValue ?? baseValue);\n }\n }\n });\n }\n // Compute standard theme values and apply overrides\n loop(base, over);\n // Compute and apply extension values only\n loop(over, {}, true);\n return output as EuiThemeComputed<T>;\n};\n\n/**\n * Builds a Proxy with a custom `handler` designed to self-reference values\n * and prevent arbitrary value overrides.\n * @param {object} model - Object to transform into Proxy\n * @param {string} key - Unique identifier or name\n */\nexport const buildTheme = <T extends {}>(model: T, key: string) => {\n const handler: ProxyHandler<EuiThemeSystem<T>> = {\n getPrototypeOf(target) {\n return Reflect.getPrototypeOf(target.model);\n },\n\n setPrototypeOf(target, prototype) {\n return Reflect.setPrototypeOf(target.model, prototype);\n },\n\n isExtensible(target) {\n return Reflect.isExtensible(target);\n },\n\n preventExtensions(target) {\n return Reflect.preventExtensions(target.model);\n },\n\n getOwnPropertyDescriptor(target, key) {\n return Reflect.getOwnPropertyDescriptor(target.model, key);\n },\n\n defineProperty(target, property, attributes) {\n return Reflect.defineProperty(target.model, property, attributes);\n },\n\n has(target, property) {\n return Reflect.has(target.model, property);\n },\n\n get(_target, property) {\n if (property === 'key') {\n return _target[property];\n }\n\n // prevent Safari from locking up when the proxy is used in dev tools\n // as it doesn't support getPrototypeOf\n if (property === '__proto__') return {};\n\n const target = property === 'root' ? _target : _target.model || _target;\n // @ts-ignore `string` index signature\n const value = target[property];\n if (isObject(value) && !Array.isArray(value)) {\n return new Proxy(\n {\n model: value,\n root: _target.root,\n key: `_${_target.key}`,\n },\n handler\n );\n } else {\n return value;\n }\n },\n\n set(target: any) {\n return target;\n },\n\n deleteProperty(target: any) {\n return target;\n },\n\n ownKeys(target) {\n return Reflect.ownKeys(target.model);\n },\n\n apply(target: any) {\n return target;\n },\n\n construct(target: any) {\n return target;\n },\n };\n const themeProxy = new Proxy({ model, root: model, key }, handler);\n\n return themeProxy;\n};\n\n/**\n * Deeply merges two objects, using `source` values whenever possible.\n * @param {object} _target - Object with fallback values\n * @param {object} source - Object with desired values\n */\nexport const mergeDeep = (\n _target: { [key: string]: any },\n source: { [key: string]: any } = {}\n) => {\n const target = { ..._target };\n\n if (!isObject(target) || !isObject(source)) {\n return source;\n }\n\n Object.keys(source).forEach((key) => {\n const targetValue = target[key];\n const sourceValue = source[key];\n\n if (isObject(targetValue) && isObject(sourceValue)) {\n target[key] = mergeDeep({ ...targetValue }, { ...sourceValue });\n } else {\n target[key] = sourceValue;\n }\n });\n\n return target;\n};\n\n/**\n * Returns token name string based on passed dynamic variants\n * and additional prefix/suffix\n */\nexport const getTokenName = (\n prefix: string,\n variant?: string,\n suffix?: string\n) => {\n const getCapitalized = (str: string) =>\n str.charAt(0).toUpperCase() + str.slice(1);\n\n const _suffix = suffix ? getCapitalized(suffix) : '';\n\n if (!variant) {\n return `${prefix}${_suffix}`;\n }\n\n const colorName = variant.charAt(0).toUpperCase() + variant.slice(1);\n\n return `${prefix}${getCapitalized(colorName)}${_suffix}`;\n};\n"],"mappings":";;;;;;;;AAQA,IAAAA,eAAA,GAAAC,OAAA;AAa0B,SAAAC,QAAAC,CAAA,EAAAC,CAAA,QAAAC,CAAA,GAAAC,MAAA,CAAAC,IAAA,CAAAJ,CAAA,OAAAG,MAAA,CAAAE,qBAAA,QAAAC,CAAA,GAAAH,MAAA,CAAAE,q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M,CAAC,CAAC,CAAC,CAACvF,WAAW,CAAC,CAAC,GAAGsF,GAAG,CAACxH,KAAK,CAAC,CAAC,CAAC;EAAA;EAE5C,IAAM0H,OAAO,GAAGJ,MAAM,GAAGC,cAAc,CAACD,MAAM,CAAC,GAAG,EAAE;EAEpD,IAAI,CAACD,OAAO,EAAE;IACZ,UAAA7C,MAAA,CAAU4C,MAAM,EAAA5C,MAAA,CAAGkD,OAAO;EAC5B;EAEA,IAAMC,SAAS,GAAGN,OAAO,CAACI,MAAM,CAAC,CAAC,CAAC,CAACvF,WAAW,CAAC,CAAC,GAAGmF,OAAO,CAACrH,KAAK,CAAC,CAAC,CAAC;EAEpE,UAAAwE,MAAA,CAAU4C,MAAM,EAAA5C,MAAA,CAAG+C,cAAc,CAACI,SAAS,CAAC,EAAAnD,MAAA,CAAGkD,OAAO;AACxD,CAAC","ignoreList":[]}
|
|
@@ -3,39 +3,94 @@ export declare type _EuiThemeButtonColors = {
|
|
|
3
3
|
backgroundPrimary: ColorModeSwitch;
|
|
4
4
|
backgroundAccent: ColorModeSwitch;
|
|
5
5
|
backgroundAccentSecondary: ColorModeSwitch;
|
|
6
|
+
backgroundNeutral: ColorModeSwitch;
|
|
6
7
|
backgroundSuccess: ColorModeSwitch;
|
|
7
8
|
backgroundWarning: ColorModeSwitch;
|
|
9
|
+
backgroundRisk: ColorModeSwitch;
|
|
8
10
|
backgroundDanger: ColorModeSwitch;
|
|
9
11
|
backgroundText: ColorModeSwitch;
|
|
10
12
|
backgroundDisabled: ColorModeSwitch;
|
|
13
|
+
backgroundPrimaryHover: ColorModeSwitch;
|
|
14
|
+
backgroundAccentHover: ColorModeSwitch;
|
|
15
|
+
backgroundAccentSecondaryHover: ColorModeSwitch;
|
|
16
|
+
backgroundNeutralHover: ColorModeSwitch;
|
|
17
|
+
backgroundSuccessHover: ColorModeSwitch;
|
|
18
|
+
backgroundWarningHover: ColorModeSwitch;
|
|
19
|
+
backgroundRiskHover: ColorModeSwitch;
|
|
20
|
+
backgroundDangerHover: ColorModeSwitch;
|
|
21
|
+
backgroundTextHover: ColorModeSwitch;
|
|
22
|
+
backgroundPrimaryActive: ColorModeSwitch;
|
|
23
|
+
backgroundAccentActive: ColorModeSwitch;
|
|
24
|
+
backgroundAccentSecondaryActive: ColorModeSwitch;
|
|
25
|
+
backgroundNeutralActive: ColorModeSwitch;
|
|
26
|
+
backgroundSuccessActive: ColorModeSwitch;
|
|
27
|
+
backgroundWarningActive: ColorModeSwitch;
|
|
28
|
+
backgroundRiskActive: ColorModeSwitch;
|
|
29
|
+
backgroundDangerActive: ColorModeSwitch;
|
|
30
|
+
backgroundTextActive: ColorModeSwitch;
|
|
11
31
|
backgroundFilledPrimary: ColorModeSwitch;
|
|
12
32
|
backgroundFilledAccent: ColorModeSwitch;
|
|
13
33
|
backgroundFilledAccentSecondary: ColorModeSwitch;
|
|
34
|
+
backgroundFilledNeutral: ColorModeSwitch;
|
|
14
35
|
backgroundFilledSuccess: ColorModeSwitch;
|
|
15
36
|
backgroundFilledWarning: ColorModeSwitch;
|
|
37
|
+
backgroundFilledRisk: ColorModeSwitch;
|
|
16
38
|
backgroundFilledDanger: ColorModeSwitch;
|
|
17
39
|
backgroundFilledText: ColorModeSwitch;
|
|
18
40
|
backgroundFilledDisabled: ColorModeSwitch;
|
|
41
|
+
backgroundFilledPrimaryHover: ColorModeSwitch;
|
|
42
|
+
backgroundFilledAccentHover: ColorModeSwitch;
|
|
43
|
+
backgroundFilledAccentSecondaryHover: ColorModeSwitch;
|
|
44
|
+
backgroundFilledNeutralHover: ColorModeSwitch;
|
|
45
|
+
backgroundFilledSuccessHover: ColorModeSwitch;
|
|
46
|
+
backgroundFilledWarningHover: ColorModeSwitch;
|
|
47
|
+
backgroundFilledRiskHover: ColorModeSwitch;
|
|
48
|
+
backgroundFilledDangerHover: ColorModeSwitch;
|
|
49
|
+
backgroundFilledTextHover: ColorModeSwitch;
|
|
50
|
+
backgroundFilledPrimaryActive: ColorModeSwitch;
|
|
51
|
+
backgroundFilledAccentActive: ColorModeSwitch;
|
|
52
|
+
backgroundFilledAccentSecondaryActive: ColorModeSwitch;
|
|
53
|
+
backgroundFilledNeutralActive: ColorModeSwitch;
|
|
54
|
+
backgroundFilledSuccessActive: ColorModeSwitch;
|
|
55
|
+
backgroundFilledWarningActive: ColorModeSwitch;
|
|
56
|
+
backgroundFilledRiskActive: ColorModeSwitch;
|
|
57
|
+
backgroundFilledDangerActive: ColorModeSwitch;
|
|
58
|
+
backgroundFilledTextActive: ColorModeSwitch;
|
|
19
59
|
backgroundEmptyPrimaryHover: ColorModeSwitch;
|
|
20
60
|
backgroundEmptyAccentHover: ColorModeSwitch;
|
|
21
61
|
backgroundEmptyAccentSecondaryHover: ColorModeSwitch;
|
|
62
|
+
backgroundEmptyNeutralHover: ColorModeSwitch;
|
|
22
63
|
backgroundEmptySuccessHover: ColorModeSwitch;
|
|
23
64
|
backgroundEmptyWarningHover: ColorModeSwitch;
|
|
65
|
+
backgroundEmptyRiskHover: ColorModeSwitch;
|
|
24
66
|
backgroundEmptyDangerHover: ColorModeSwitch;
|
|
25
67
|
backgroundEmptyTextHover: ColorModeSwitch;
|
|
68
|
+
backgroundEmptyPrimaryActive: ColorModeSwitch;
|
|
69
|
+
backgroundEmptyAccentActive: ColorModeSwitch;
|
|
70
|
+
backgroundEmptyAccentSecondaryActive: ColorModeSwitch;
|
|
71
|
+
backgroundEmptyNeutralActive: ColorModeSwitch;
|
|
72
|
+
backgroundEmptySuccessActive: ColorModeSwitch;
|
|
73
|
+
backgroundEmptyWarningActive: ColorModeSwitch;
|
|
74
|
+
backgroundEmptyRiskActive: ColorModeSwitch;
|
|
75
|
+
backgroundEmptyDangerActive: ColorModeSwitch;
|
|
76
|
+
backgroundEmptyTextActive: ColorModeSwitch;
|
|
26
77
|
textColorPrimary: ColorModeSwitch;
|
|
27
78
|
textColorAccent: ColorModeSwitch;
|
|
28
79
|
textColorAccentSecondary: ColorModeSwitch;
|
|
80
|
+
textColorNeutral: ColorModeSwitch;
|
|
29
81
|
textColorSuccess: ColorModeSwitch;
|
|
30
82
|
textColorWarning: ColorModeSwitch;
|
|
83
|
+
textColorRisk: ColorModeSwitch;
|
|
31
84
|
textColorDanger: ColorModeSwitch;
|
|
32
85
|
textColorText: ColorModeSwitch;
|
|
33
86
|
textColorDisabled: ColorModeSwitch;
|
|
34
87
|
textColorFilledPrimary: ColorModeSwitch;
|
|
35
88
|
textColorFilledAccent: ColorModeSwitch;
|
|
36
89
|
textColorFilledAccentSecondary: ColorModeSwitch;
|
|
90
|
+
textColorFilledNeutral: ColorModeSwitch;
|
|
37
91
|
textColorFilledSuccess: ColorModeSwitch;
|
|
38
92
|
textColorFilledWarning: ColorModeSwitch;
|
|
93
|
+
textColorFilledRisk: ColorModeSwitch;
|
|
39
94
|
textColorFilledDanger: ColorModeSwitch;
|
|
40
95
|
textColorFilledText: ColorModeSwitch;
|
|
41
96
|
textColorFilledDisabled: ColorModeSwitch;
|
|
@@ -60,8 +60,10 @@ export declare type _EuiThemeBrandTextColors = {
|
|
|
60
60
|
textPrimary: ColorModeSwitch;
|
|
61
61
|
textAccent: ColorModeSwitch;
|
|
62
62
|
textAccentSecondary: ColorModeSwitch;
|
|
63
|
+
textNeutral: ColorModeSwitch;
|
|
63
64
|
textSuccess: ColorModeSwitch;
|
|
64
65
|
textWarning: ColorModeSwitch;
|
|
66
|
+
textRisk: ColorModeSwitch;
|
|
65
67
|
textDanger: ColorModeSwitch;
|
|
66
68
|
};
|
|
67
69
|
export declare type _EuiThemeShadeColors = {
|
|
@@ -158,8 +160,10 @@ export declare type _EuiThemeBackgroundColors = {
|
|
|
158
160
|
backgroundBasePrimary: ColorModeSwitch;
|
|
159
161
|
backgroundBaseAccent: ColorModeSwitch;
|
|
160
162
|
backgroundBaseAccentSecondary: ColorModeSwitch;
|
|
163
|
+
backgroundBaseNeutral: ColorModeSwitch;
|
|
161
164
|
backgroundBaseSuccess: ColorModeSwitch;
|
|
162
165
|
backgroundBaseWarning: ColorModeSwitch;
|
|
166
|
+
backgroundBaseRisk: ColorModeSwitch;
|
|
163
167
|
backgroundBaseDanger: ColorModeSwitch;
|
|
164
168
|
backgroundBaseSubdued: ColorModeSwitch;
|
|
165
169
|
backgroundBasePlain: ColorModeSwitch;
|
|
@@ -175,15 +179,19 @@ export declare type _EuiThemeBackgroundColors = {
|
|
|
175
179
|
backgroundLightPrimary: ColorModeSwitch;
|
|
176
180
|
backgroundLightAccent: ColorModeSwitch;
|
|
177
181
|
backgroundLightAccentSecondary: ColorModeSwitch;
|
|
182
|
+
backgroundLightNeutral: ColorModeSwitch;
|
|
178
183
|
backgroundLightSuccess: ColorModeSwitch;
|
|
179
184
|
backgroundLightWarning: ColorModeSwitch;
|
|
185
|
+
backgroundLightRisk: ColorModeSwitch;
|
|
180
186
|
backgroundLightDanger: ColorModeSwitch;
|
|
181
187
|
backgroundLightText: ColorModeSwitch;
|
|
182
188
|
backgroundFilledPrimary: ColorModeSwitch;
|
|
183
189
|
backgroundFilledAccent: ColorModeSwitch;
|
|
184
190
|
backgroundFilledAccentSecondary: ColorModeSwitch;
|
|
191
|
+
backgroundFilledNeutral: ColorModeSwitch;
|
|
185
192
|
backgroundFilledSuccess: ColorModeSwitch;
|
|
186
193
|
backgroundFilledWarning: ColorModeSwitch;
|
|
194
|
+
backgroundFilledRisk: ColorModeSwitch;
|
|
187
195
|
backgroundFilledDanger: ColorModeSwitch;
|
|
188
196
|
backgroundFilledText: ColorModeSwitch;
|
|
189
197
|
};
|
|
@@ -198,10 +206,14 @@ export declare type _EuiThemeTransparentBackgroundColors = {
|
|
|
198
206
|
/** @deprecated - temp. token, was never in use */
|
|
199
207
|
backgroundTransparentAccentSecondary: ColorModeSwitch;
|
|
200
208
|
/** @deprecated - temp. token, was never in use */
|
|
209
|
+
backgroundTransparentNeutral: ColorModeSwitch;
|
|
210
|
+
/** @deprecated - temp. token, was never in use */
|
|
201
211
|
backgroundTransparentSuccess: ColorModeSwitch;
|
|
202
212
|
/** @deprecated - temp. token, was never in use */
|
|
203
213
|
backgroundTransparentWarning: ColorModeSwitch;
|
|
204
214
|
/** @deprecated - temp. token, was never in use */
|
|
215
|
+
backgroundTransparentRisk: ColorModeSwitch;
|
|
216
|
+
/** @deprecated - temp. token, was never in use */
|
|
205
217
|
backgroundTransparentDanger: ColorModeSwitch;
|
|
206
218
|
/** @deprecated - temp. token, was never in use */
|
|
207
219
|
backgroundTransparentSubdued: ColorModeSwitch;
|
|
@@ -214,8 +226,10 @@ export declare type _EuiThemeBorderColors = {
|
|
|
214
226
|
borderBasePrimary: ColorModeSwitch;
|
|
215
227
|
borderBaseAccent: ColorModeSwitch;
|
|
216
228
|
borderBaseAccentSecondary: ColorModeSwitch;
|
|
229
|
+
borderBaseNeutral: ColorModeSwitch;
|
|
217
230
|
borderBaseSuccess: ColorModeSwitch;
|
|
218
231
|
borderBaseWarning: ColorModeSwitch;
|
|
232
|
+
borderBaseRisk: ColorModeSwitch;
|
|
219
233
|
borderBaseDanger: ColorModeSwitch;
|
|
220
234
|
borderBasePlain: ColorModeSwitch;
|
|
221
235
|
borderBaseSubdued: ColorModeSwitch;
|
|
@@ -230,8 +244,10 @@ export declare type _EuiThemeBorderColors = {
|
|
|
230
244
|
borderStrongPrimary: ColorModeSwitch;
|
|
231
245
|
borderStrongAccent: ColorModeSwitch;
|
|
232
246
|
borderStrongAccentSecondary: ColorModeSwitch;
|
|
247
|
+
borderStrongNeutral: ColorModeSwitch;
|
|
233
248
|
borderStrongSuccess: ColorModeSwitch;
|
|
234
249
|
borderStrongWarning: ColorModeSwitch;
|
|
250
|
+
borderStrongRisk: ColorModeSwitch;
|
|
235
251
|
borderStrongDanger: ColorModeSwitch;
|
|
236
252
|
};
|
|
237
253
|
export declare type _EuiThemeVisColors = {
|
|
@@ -285,21 +301,6 @@ export declare type _EuiThemeVisColors = {
|
|
|
285
301
|
euiColorVisDanger0: string;
|
|
286
302
|
euiColorVisDanger1: string;
|
|
287
303
|
euiColorVisNeutral0: string;
|
|
288
|
-
euiColorSeverity0: string;
|
|
289
|
-
euiColorSeverity1: string;
|
|
290
|
-
euiColorSeverity2: string;
|
|
291
|
-
euiColorSeverity3: string;
|
|
292
|
-
euiColorSeverity4: string;
|
|
293
|
-
euiColorSeverity5: string;
|
|
294
|
-
euiColorSeverity6: string;
|
|
295
|
-
euiColorSeverity7: string;
|
|
296
|
-
euiColorSeverity8: string;
|
|
297
|
-
euiColorSeverity9: string;
|
|
298
|
-
euiColorSeverity10: string;
|
|
299
|
-
euiColorSeverity11: string;
|
|
300
|
-
euiColorSeverity12: string;
|
|
301
|
-
euiColorSeverity13: string;
|
|
302
|
-
euiColorSeverity14: string;
|
|
303
304
|
euiColorVisGrey0: string;
|
|
304
305
|
euiColorVisGrey1: string;
|
|
305
306
|
euiColorVisGrey2: string;
|
|
@@ -313,12 +314,21 @@ export declare type _EuiThemeVisColors = {
|
|
|
313
314
|
euiColorVisComplementary0: string;
|
|
314
315
|
euiColorVisComplementary1: string;
|
|
315
316
|
};
|
|
317
|
+
export declare type _EuiThemeSeverityColors = {
|
|
318
|
+
unknown: string;
|
|
319
|
+
success: string;
|
|
320
|
+
neutral: string;
|
|
321
|
+
warning: string;
|
|
322
|
+
risk: string;
|
|
323
|
+
danger: string;
|
|
324
|
+
};
|
|
316
325
|
export declare type _EuiThemeConstantColors = {
|
|
317
326
|
ghost: string;
|
|
318
327
|
ink: string;
|
|
319
328
|
plainLight: string;
|
|
320
329
|
plainDark: string;
|
|
321
330
|
vis: _EuiThemeVisColors;
|
|
331
|
+
severity: _EuiThemeSeverityColors;
|
|
322
332
|
};
|
|
323
333
|
export declare type _EuiThemeColorsMode = _EuiThemeBrandColors & _EuiThemeBrandTextColors & _EuiThemeShadeColors & _EuiThemeSpecialColors & _EuiThemeTextColors & _EuiThemeBackgroundColors & _EuiThemeTransparentBackgroundColors & _EuiThemeBorderColors;
|
|
324
334
|
export declare type _EuiThemeColors = StrictColorModeSwitch<_EuiThemeColorsMode> & _EuiThemeConstantColors;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ColorModeSwitch, StrictColorModeSwitch } from '../../services/theme/types';
|
|
2
|
-
import {
|
|
2
|
+
import { _EuiThemeButton } from './buttons';
|
|
3
3
|
import { _EuiThemeForm, _EuiThemeFormColors } from './forms';
|
|
4
4
|
export declare type _EuiThemeComponentColors = {
|
|
5
5
|
badgeBackground: ColorModeSwitch;
|
|
@@ -50,6 +50,7 @@ export declare type _EuiThemeComponentColors = {
|
|
|
50
50
|
headerDarkBackground: ColorModeSwitch;
|
|
51
51
|
headerDarkSearchBorderColor: ColorModeSwitch;
|
|
52
52
|
headerDarkSectionItemBackgroundFocus: ColorModeSwitch;
|
|
53
|
+
filterButtonBadgeBackgroundHover: ColorModeSwitch;
|
|
53
54
|
filterSelectItemBackgroundFocusDisabled: ColorModeSwitch;
|
|
54
55
|
flyoutFooterBackground: ColorModeSwitch;
|
|
55
56
|
flyoutCloseButtonInsideBackground: ColorModeSwitch;
|
|
@@ -97,7 +98,7 @@ export declare type _EuiThemeComponentColors = {
|
|
|
97
98
|
treeViewItemBackgroundHover: ColorModeSwitch;
|
|
98
99
|
};
|
|
99
100
|
export declare type _EuiThemeComponents = {
|
|
100
|
-
buttons:
|
|
101
|
+
buttons: _EuiThemeButton;
|
|
101
102
|
forms: _EuiThemeForm & StrictColorModeSwitch<_EuiThemeFormColors>;
|
|
102
103
|
/**
|
|
103
104
|
* internal-only key that holds temporary tokens used while migrating themes
|
|
@@ -1,7 +1,10 @@
|
|
|
1
|
+
export declare type EuiThemeVariantFlags = {
|
|
2
|
+
buttonVariant: 'classic' | 'refresh';
|
|
3
|
+
};
|
|
1
4
|
/**
|
|
2
5
|
* Theme specific setting flags
|
|
3
6
|
*/
|
|
4
7
|
export declare type _EuiThemeFlags = {
|
|
5
8
|
hasGlobalFocusColor: boolean;
|
|
6
9
|
hasVisColorAdjustment: boolean;
|
|
7
|
-
};
|
|
10
|
+
} & EuiThemeVariantFlags;
|
package/lib/esm/utils.d.ts
CHANGED
|
@@ -103,4 +103,4 @@ export declare const mergeDeep: (_target: {
|
|
|
103
103
|
* Returns token name string based on passed dynamic variants
|
|
104
104
|
* and additional prefix/suffix
|
|
105
105
|
*/
|
|
106
|
-
export declare const getTokenName: (prefix: string, variant
|
|
106
|
+
export declare const getTokenName: (prefix: string, variant?: string | undefined, suffix?: string | undefined) => string;
|
package/lib/esm/utils.js
CHANGED
|
@@ -324,8 +324,11 @@ export const mergeDeep = (_target, source = {}) => {
|
|
|
324
324
|
*/
|
|
325
325
|
export const getTokenName = (prefix, variant, suffix) => {
|
|
326
326
|
const getCapitalized = (str) => str.charAt(0).toUpperCase() + str.slice(1);
|
|
327
|
-
const colorName = variant.charAt(0).toUpperCase() + variant.slice(1);
|
|
328
327
|
const _suffix = suffix ? getCapitalized(suffix) : '';
|
|
328
|
+
if (!variant) {
|
|
329
|
+
return `${prefix}${_suffix}`;
|
|
330
|
+
}
|
|
331
|
+
const colorName = variant.charAt(0).toUpperCase() + variant.slice(1);
|
|
329
332
|
return `${prefix}${getCapitalized(colorName)}${_suffix}`;
|
|
330
333
|
};
|
|
331
334
|
//# sourceMappingURL=utils.js.map
|
package/lib/esm/utils.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../src/utils.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAQL,oBAAoB,EACpB,mBAAmB,EAEnB,uBAAuB,EACvB,gCAAgC,GACjC,MAAM,kBAAkB,CAAC;AAE1B,MAAM,CAAC,MAAM,kBAAkB,GAAG,oBAAoB,CAAC,KAAK,CAAC;AAE7D;;;GAGG;AACH,MAAM,QAAQ,GAAG,CAAC,GAAQ,EAAE,EAAE,CAAC,GAAG,IAAI,OAAO,GAAG,KAAK,QAAQ,CAAC;AAE9D;;;GAGG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAChC,SAAkB,EACqB,EAAE;IACzC,OAAO,S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GAAG,SAAS,CAAC,EAAE,GAAG,WAAW,EAAE,EAAE,EAAE,GAAG,WAAW,EAAE,CAAC,CAAC;SACjE;aAAM;YACL,MAAM,CAAC,GAAG,CAAC,GAAG,WAAW,CAAC;SAC3B;IACH,CAAC,CAAC,CAAC;IAEH,OAAO,MAAM,CAAC;AAChB,CAAC,CAAC;AAEF;;;GAGG;AACH,MAAM,CAAC,MAAM,YAAY,GAAG,CAC1B,MAAc,EACd,OAAgB,EAChB,MAAe,EACf,EAAE;IACF,MAAM,cAAc,GAAG,CAAC,GAAW,EAAE,EAAE,CACrC,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,GAAG,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;IAE7C,MAAM,OAAO,GAAG,MAAM,CAAC,CAAC,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;IAErD,IAAI,CAAC,OAAO,EAAE;QACZ,OAAO,GAAG,MAAM,GAAG,OAAO,EAAE,CAAC;KAC9B;IAED,MAAM,SAAS,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,GAAG,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;IAErE,OAAO,GAAG,MAAM,GAAG,cAAc,CAAC,SAAS,CAAC,GAAG,OAAO,EAAE,CAAC;AAC3D,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elastic/eui-theme-common",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "1.0.0-snapshot.1746441787383",
|
|
4
4
|
"description": "EUI theme common",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"scripts": {
|
|
@@ -81,5 +81,6 @@
|
|
|
81
81
|
],
|
|
82
82
|
"installConfig": {
|
|
83
83
|
"hoistingLimits": "workspaces"
|
|
84
|
-
}
|
|
84
|
+
},
|
|
85
|
+
"stableVersion": "1.0.0"
|
|
85
86
|
}
|