@elastic/eui-theme-common 1.0.0 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/global_styling/functions/index.d.ts +0 -1
- package/lib/cjs/global_styling/functions/index.js +1 -2
- package/lib/cjs/global_styling/functions/math.d.ts +0 -1
- package/lib/cjs/global_styling/functions/math.js +1 -2
- package/lib/cjs/global_styling/functions/math.test.js +1 -2
- package/lib/cjs/global_styling/functions/shadows.d.ts +0 -1
- package/lib/cjs/global_styling/functions/shadows.js +1 -2
- package/lib/cjs/global_styling/functions/size.d.ts +0 -1
- package/lib/cjs/global_styling/functions/size.js +1 -2
- package/lib/cjs/global_styling/index.d.ts +0 -1
- package/lib/cjs/global_styling/index.js +1 -2
- package/lib/cjs/global_styling/mixins/index.d.ts +0 -1
- package/lib/cjs/global_styling/mixins/index.js +1 -2
- package/lib/cjs/global_styling/mixins/shadow.d.ts +0 -1
- package/lib/cjs/global_styling/mixins/shadow.js +1 -2
- package/lib/cjs/global_styling/variables/_breakpoint.d.ts +0 -1
- package/lib/cjs/global_styling/variables/_breakpoint.js +1 -2
- package/lib/cjs/global_styling/variables/animations.d.ts +0 -1
- package/lib/cjs/global_styling/variables/animations.js +1 -2
- package/lib/cjs/global_styling/variables/borders.d.ts +0 -1
- package/lib/cjs/global_styling/variables/borders.js +1 -2
- package/lib/cjs/global_styling/variables/breakpoint.d.ts +0 -1
- package/lib/cjs/global_styling/variables/breakpoint.js +1 -2
- package/lib/cjs/global_styling/variables/buttons.d.ts +45 -1
- package/lib/cjs/global_styling/variables/buttons.js +1 -2
- package/lib/cjs/global_styling/variables/colors.d.ts +6 -2
- package/lib/cjs/global_styling/variables/colors.js +1 -2
- package/lib/cjs/global_styling/variables/components.d.ts +3 -3
- package/lib/cjs/global_styling/variables/components.js +1 -2
- package/lib/cjs/global_styling/variables/flags.d.ts +4 -2
- package/lib/cjs/global_styling/variables/flags.js +1 -2
- package/lib/cjs/global_styling/variables/forms.d.ts +0 -1
- package/lib/cjs/global_styling/variables/forms.js +1 -2
- package/lib/cjs/global_styling/variables/index.d.ts +0 -1
- package/lib/cjs/global_styling/variables/index.js +1 -2
- package/lib/cjs/global_styling/variables/levels.d.ts +0 -1
- package/lib/cjs/global_styling/variables/levels.js +1 -2
- package/lib/cjs/global_styling/variables/overrides.d.ts +0 -1
- package/lib/cjs/global_styling/variables/overrides.js +1 -2
- package/lib/cjs/global_styling/variables/shadow.d.ts +0 -1
- package/lib/cjs/global_styling/variables/shadow.js +1 -2
- package/lib/cjs/global_styling/variables/size.d.ts +0 -1
- package/lib/cjs/global_styling/variables/size.js +1 -2
- package/lib/cjs/global_styling/variables/states.d.ts +0 -1
- package/lib/cjs/global_styling/variables/states.js +1 -2
- package/lib/cjs/global_styling/variables/typography.d.ts +1 -2
- package/lib/cjs/global_styling/variables/typography.js +1 -2
- package/lib/cjs/index.d.ts +0 -1
- package/lib/cjs/index.js +1 -2
- package/lib/cjs/services/index.d.ts +0 -1
- package/lib/cjs/services/index.js +1 -2
- package/lib/cjs/services/theme/types.d.ts +1 -2
- package/lib/cjs/services/theme/types.js +1 -2
- package/lib/cjs/services/vis_color_store.d.ts +0 -1
- package/lib/cjs/services/vis_color_store.js +1 -2
- package/lib/cjs/services/vis_color_store.test.js +1 -2
- package/lib/cjs/types.d.ts +0 -1
- package/lib/cjs/types.js +1 -2
- package/lib/cjs/utils.d.ts +1 -2
- package/lib/cjs/utils.js +5 -3
- package/lib/cjs/utils.test.js +1 -2
- package/lib/esm/global_styling/functions/index.js +0 -1
- package/lib/esm/global_styling/functions/math.js +0 -1
- package/lib/esm/global_styling/functions/math.test.js +0 -1
- package/lib/esm/global_styling/functions/shadows.js +0 -1
- package/lib/esm/global_styling/functions/size.js +0 -1
- package/lib/esm/global_styling/index.js +0 -1
- package/lib/esm/global_styling/mixins/index.js +0 -1
- package/lib/esm/global_styling/mixins/shadow.js +0 -1
- package/lib/esm/global_styling/variables/_breakpoint.js +0 -1
- package/lib/esm/global_styling/variables/animations.js +0 -1
- package/lib/esm/global_styling/variables/borders.js +0 -1
- package/lib/esm/global_styling/variables/breakpoint.js +0 -1
- package/lib/esm/global_styling/variables/buttons.d.ts +45 -0
- package/lib/esm/global_styling/variables/buttons.js +0 -1
- package/lib/esm/global_styling/variables/colors.d.ts +6 -1
- package/lib/esm/global_styling/variables/colors.js +0 -1
- package/lib/esm/global_styling/variables/components.d.ts +3 -2
- package/lib/esm/global_styling/variables/components.js +0 -1
- package/lib/esm/global_styling/variables/flags.d.ts +4 -1
- package/lib/esm/global_styling/variables/flags.js +0 -1
- package/lib/esm/global_styling/variables/forms.js +0 -1
- package/lib/esm/global_styling/variables/index.js +0 -1
- package/lib/esm/global_styling/variables/levels.js +0 -1
- package/lib/esm/global_styling/variables/overrides.js +0 -1
- package/lib/esm/global_styling/variables/shadow.js +0 -1
- package/lib/esm/global_styling/variables/size.js +0 -1
- package/lib/esm/global_styling/variables/states.js +0 -1
- package/lib/esm/global_styling/variables/typography.d.ts +1 -1
- package/lib/esm/global_styling/variables/typography.js +0 -1
- package/lib/esm/index.js +0 -1
- package/lib/esm/services/index.js +0 -1
- package/lib/esm/services/theme/types.d.ts +1 -1
- package/lib/esm/services/theme/types.js +0 -1
- package/lib/esm/services/vis_color_store.js +0 -1
- package/lib/esm/services/vis_color_store.test.js +0 -1
- package/lib/esm/types.js +0 -1
- package/lib/esm/utils.d.ts +1 -1
- package/lib/esm/utils.js +4 -2
- package/lib/esm/utils.test.js +0 -1
- package/package.json +2 -2
- package/lib/cjs/global_styling/functions/index.d.ts.map +0 -1
- package/lib/cjs/global_styling/functions/index.js.map +0 -1
- package/lib/cjs/global_styling/functions/math.d.ts.map +0 -1
- package/lib/cjs/global_styling/functions/math.js.map +0 -1
- package/lib/cjs/global_styling/functions/math.test.js.map +0 -1
- package/lib/cjs/global_styling/functions/shadows.d.ts.map +0 -1
- package/lib/cjs/global_styling/functions/shadows.js.map +0 -1
- package/lib/cjs/global_styling/functions/size.d.ts.map +0 -1
- package/lib/cjs/global_styling/functions/size.js.map +0 -1
- package/lib/cjs/global_styling/index.d.ts.map +0 -1
- package/lib/cjs/global_styling/index.js.map +0 -1
- package/lib/cjs/global_styling/mixins/index.d.ts.map +0 -1
- package/lib/cjs/global_styling/mixins/index.js.map +0 -1
- package/lib/cjs/global_styling/mixins/shadow.d.ts.map +0 -1
- package/lib/cjs/global_styling/mixins/shadow.js.map +0 -1
- package/lib/cjs/global_styling/variables/_breakpoint.d.ts.map +0 -1
- package/lib/cjs/global_styling/variables/_breakpoint.js.map +0 -1
- package/lib/cjs/global_styling/variables/animations.d.ts.map +0 -1
- package/lib/cjs/global_styling/variables/animations.js.map +0 -1
- package/lib/cjs/global_styling/variables/borders.d.ts.map +0 -1
- package/lib/cjs/global_styling/variables/borders.js.map +0 -1
- package/lib/cjs/global_styling/variables/breakpoint.d.ts.map +0 -1
- package/lib/cjs/global_styling/variables/breakpoint.js.map +0 -1
- package/lib/cjs/global_styling/variables/buttons.d.ts.map +0 -1
- package/lib/cjs/global_styling/variables/buttons.js.map +0 -1
- package/lib/cjs/global_styling/variables/colors.d.ts.map +0 -1
- package/lib/cjs/global_styling/variables/colors.js.map +0 -1
- package/lib/cjs/global_styling/variables/components.d.ts.map +0 -1
- package/lib/cjs/global_styling/variables/components.js.map +0 -1
- package/lib/cjs/global_styling/variables/flags.d.ts.map +0 -1
- package/lib/cjs/global_styling/variables/flags.js.map +0 -1
- package/lib/cjs/global_styling/variables/forms.d.ts.map +0 -1
- package/lib/cjs/global_styling/variables/forms.js.map +0 -1
- package/lib/cjs/global_styling/variables/index.d.ts.map +0 -1
- package/lib/cjs/global_styling/variables/index.js.map +0 -1
- package/lib/cjs/global_styling/variables/levels.d.ts.map +0 -1
- package/lib/cjs/global_styling/variables/levels.js.map +0 -1
- package/lib/cjs/global_styling/variables/overrides.d.ts.map +0 -1
- package/lib/cjs/global_styling/variables/overrides.js.map +0 -1
- package/lib/cjs/global_styling/variables/shadow.d.ts.map +0 -1
- package/lib/cjs/global_styling/variables/shadow.js.map +0 -1
- package/lib/cjs/global_styling/variables/size.d.ts.map +0 -1
- package/lib/cjs/global_styling/variables/size.js.map +0 -1
- package/lib/cjs/global_styling/variables/states.d.ts.map +0 -1
- package/lib/cjs/global_styling/variables/states.js.map +0 -1
- package/lib/cjs/global_styling/variables/typography.d.ts.map +0 -1
- package/lib/cjs/global_styling/variables/typography.js.map +0 -1
- package/lib/cjs/index.d.ts.map +0 -1
- package/lib/cjs/index.js.map +0 -1
- package/lib/cjs/services/index.d.ts.map +0 -1
- package/lib/cjs/services/index.js.map +0 -1
- package/lib/cjs/services/theme/types.d.ts.map +0 -1
- package/lib/cjs/services/theme/types.js.map +0 -1
- package/lib/cjs/services/vis_color_store.d.ts.map +0 -1
- package/lib/cjs/services/vis_color_store.js.map +0 -1
- package/lib/cjs/services/vis_color_store.test.js.map +0 -1
- package/lib/cjs/types.d.ts.map +0 -1
- package/lib/cjs/types.js.map +0 -1
- package/lib/cjs/utils.d.ts.map +0 -1
- package/lib/cjs/utils.js.map +0 -1
- package/lib/cjs/utils.test.js.map +0 -1
- package/lib/esm/global_styling/functions/index.js.map +0 -1
- package/lib/esm/global_styling/functions/math.js.map +0 -1
- package/lib/esm/global_styling/functions/math.test.js.map +0 -1
- package/lib/esm/global_styling/functions/shadows.js.map +0 -1
- package/lib/esm/global_styling/functions/size.js.map +0 -1
- package/lib/esm/global_styling/index.js.map +0 -1
- package/lib/esm/global_styling/mixins/index.js.map +0 -1
- package/lib/esm/global_styling/mixins/shadow.js.map +0 -1
- package/lib/esm/global_styling/variables/_breakpoint.js.map +0 -1
- package/lib/esm/global_styling/variables/animations.js.map +0 -1
- package/lib/esm/global_styling/variables/borders.js.map +0 -1
- package/lib/esm/global_styling/variables/breakpoint.js.map +0 -1
- package/lib/esm/global_styling/variables/buttons.js.map +0 -1
- package/lib/esm/global_styling/variables/colors.js.map +0 -1
- package/lib/esm/global_styling/variables/components.js.map +0 -1
- package/lib/esm/global_styling/variables/flags.js.map +0 -1
- package/lib/esm/global_styling/variables/forms.js.map +0 -1
- package/lib/esm/global_styling/variables/index.js.map +0 -1
- package/lib/esm/global_styling/variables/levels.js.map +0 -1
- package/lib/esm/global_styling/variables/overrides.js.map +0 -1
- package/lib/esm/global_styling/variables/shadow.js.map +0 -1
- package/lib/esm/global_styling/variables/size.js.map +0 -1
- package/lib/esm/global_styling/variables/states.js.map +0 -1
- package/lib/esm/global_styling/variables/typography.js.map +0 -1
- package/lib/esm/index.js.map +0 -1
- package/lib/esm/services/index.js.map +0 -1
- package/lib/esm/services/theme/types.js.map +0 -1
- package/lib/esm/services/vis_color_store.js.map +0 -1
- package/lib/esm/services/vis_color_store.test.js.map +0 -1
- package/lib/esm/types.js.map +0 -1
- package/lib/esm/utils.js.map +0 -1
- package/lib/esm/utils.test.js.map +0 -1
|
@@ -10,6 +10,24 @@ export declare type _EuiThemeButtonColors = {
|
|
|
10
10
|
backgroundDanger: ColorModeSwitch;
|
|
11
11
|
backgroundText: ColorModeSwitch;
|
|
12
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;
|
|
13
31
|
backgroundFilledPrimary: ColorModeSwitch;
|
|
14
32
|
backgroundFilledAccent: ColorModeSwitch;
|
|
15
33
|
backgroundFilledAccentSecondary: ColorModeSwitch;
|
|
@@ -20,6 +38,24 @@ export declare type _EuiThemeButtonColors = {
|
|
|
20
38
|
backgroundFilledDanger: ColorModeSwitch;
|
|
21
39
|
backgroundFilledText: ColorModeSwitch;
|
|
22
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;
|
|
23
59
|
backgroundEmptyPrimaryHover: ColorModeSwitch;
|
|
24
60
|
backgroundEmptyAccentHover: ColorModeSwitch;
|
|
25
61
|
backgroundEmptyAccentSecondaryHover: ColorModeSwitch;
|
|
@@ -29,6 +65,15 @@ export declare type _EuiThemeButtonColors = {
|
|
|
29
65
|
backgroundEmptyRiskHover: ColorModeSwitch;
|
|
30
66
|
backgroundEmptyDangerHover: ColorModeSwitch;
|
|
31
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;
|
|
32
77
|
textColorPrimary: ColorModeSwitch;
|
|
33
78
|
textColorAccent: ColorModeSwitch;
|
|
34
79
|
textColorAccentSecondary: ColorModeSwitch;
|
|
@@ -295,12 +295,17 @@ export declare type _EuiThemeVisColors = {
|
|
|
295
295
|
euiColorVisAsTextDark4: string;
|
|
296
296
|
euiColorVisAsTextDark5: string;
|
|
297
297
|
euiColorVisAsTextDark6: string;
|
|
298
|
+
euiColorVisNeutral0: string;
|
|
299
|
+
euiColorVisNeutral1: string;
|
|
298
300
|
euiColorVisSuccess0: string;
|
|
299
301
|
euiColorVisSuccess1: string;
|
|
300
302
|
euiColorVisWarning0: string;
|
|
303
|
+
euiColorVisWarning1: string;
|
|
304
|
+
euiColorVisRisk0: string;
|
|
305
|
+
euiColorVisRisk1: string;
|
|
301
306
|
euiColorVisDanger0: string;
|
|
302
307
|
euiColorVisDanger1: string;
|
|
303
|
-
|
|
308
|
+
euiColorVisBase0: string;
|
|
304
309
|
euiColorVisGrey0: string;
|
|
305
310
|
euiColorVisGrey1: string;
|
|
306
311
|
euiColorVisGrey2: string;
|
|
@@ -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;
|
|
@@ -84,7 +84,7 @@ export interface _EuiThemeTitle {
|
|
|
84
84
|
export declare type _EuiThemeFont = _EuiThemeFontBase & {
|
|
85
85
|
scale: _EuiThemeFontScales;
|
|
86
86
|
/**
|
|
87
|
-
*
|
|
87
|
+
* See {@link https://eui.elastic.co/#/theming/typography/values%23font-weight | Reference} for more information
|
|
88
88
|
*/
|
|
89
89
|
weight: _EuiThemeFontWeights;
|
|
90
90
|
body: _EuiThemeBody;
|
package/lib/esm/index.js
CHANGED
|
@@ -34,7 +34,7 @@ export declare type EuiThemeShapeBase = {
|
|
|
34
34
|
/** - Default value: 16 */
|
|
35
35
|
base: _EuiThemeBase;
|
|
36
36
|
/**
|
|
37
|
-
*
|
|
37
|
+
* See {@link https://eui.elastic.co/#/theming/sizing | Reference} for more information
|
|
38
38
|
*/
|
|
39
39
|
size: _EuiThemeSizes;
|
|
40
40
|
font: _EuiThemeFont;
|
package/lib/esm/types.js
CHANGED
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,10 @@ 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
|
-
//# sourceMappingURL=utils.js.map
|
package/lib/esm/utils.test.js
CHANGED
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elastic/eui-theme-common",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.0",
|
|
4
4
|
"description": "EUI theme common",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"build:clean": "rimraf lib/",
|
|
8
8
|
"build": "yarn build:clean && yarn build:compile && yarn build:compile:cjs && yarn build:types",
|
|
9
9
|
"build:compile": "tsc --project ./tsconfig.json",
|
|
10
|
-
"build:compile:cjs": "NODE_ENV=production NO_COREJS_POLYFILL=true babel src --out-dir=lib/cjs --extensions .js,.ts,.tsx
|
|
10
|
+
"build:compile:cjs": "NODE_ENV=production NO_COREJS_POLYFILL=true babel src --out-dir=lib/cjs --extensions .js,.ts,.tsx",
|
|
11
11
|
"build:types": "NODE_ENV=production tsc --project tsconfig.types.json",
|
|
12
12
|
"build-pack": "yarn build && npm pack",
|
|
13
13
|
"lint": "yarn tsc --noEmit && yarn lint-es && yarn lint-sass",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/global_styling/functions/index.ts"],"names":[],"mappings":"AAQA,cAAc,QAAQ,CAAC;AACvB,cAAc,QAAQ,CAAC;AACvB,cAAc,WAAW,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["_size","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get","_math","_shadows"],"sources":["../../../../src/global_styling/functions/index.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 * from './size';\nexport * from './math';\nexport * from './shadows';\n"],"mappings":";;;;;AAQA,IAAAA,KAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,KAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAL,KAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,IAAA;MAAA,OAAAT,KAAA,CAAAK,GAAA;IAAA;EAAA;AAAA;AACA,IAAAK,KAAA,GAAAT,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAO,KAAA,EAAAN,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAK,KAAA,CAAAL,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,IAAA;MAAA,OAAAC,KAAA,CAAAL,GAAA;IAAA;EAAA;AAAA;AACA,IAAAM,QAAA,GAAAV,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAQ,QAAA,EAAAP,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAM,QAAA,CAAAN,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,IAAA;MAAA,OAAAE,QAAA,CAAAN,GAAA;IAAA;EAAA;AAAA","ignoreList":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"math.d.ts","sourceRoot":"","sources":["../../../../src/global_styling/functions/math.ts"],"names":[],"mappings":"AAQA;;;;;;;;GAQG;AACH,aAAK,UAAU,GAAG,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;AAE9C,eAAO,MAAM,aAAa,WAChB,UAAU,GAAG,UAAU,EAAE,sBACb,MAAM,EAAE,KAAK,MAAM,SACjC,MAAM,WAqCb,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"math.js","names":["mathWithUnits","exports","values","callback","unit","arguments","length","undefined","Array","isArray","foundNumericValues","foundUnit","forEach","value","_matches$groups","_matches$groups2","regex","_wrapRegExp","matches","exec","numericValue","Number","groups","isNaN","push","Error","concat","apply"],"sources":["../../../../src/global_styling/functions/math.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 * Utility for performing math callbacks on a string with CSS units\n * and returning a string with its unit preserved.\n *\n * Example usage:\n * mathWithUnits('4px', (x) => x / 2) = '2px';\n * mathWithUnits(euiTheme.size.xs, (x) => x + 2) = '6px';\n * mathWithUnits([euiTheme.size.l, euiTheme.size.s], (x, y) => x - y) = '16px';\n */\ntype ValueTypes = string | number | undefined; // Unfortunately, this is the CSSProperties[] type used for several euiTheme vars\n\nexport const mathWithUnits = (\n values: ValueTypes | ValueTypes[], // Can accept a single input or array of inputs\n callback: (...args: number[]) => number, // Can be multiplication, division, addition, etc.\n unit: string = '' // Optional: allow specifying an override unit to return\n) => {\n if (!Array.isArray(values)) values = [values];\n\n const foundNumericValues: number[] = [];\n let foundUnit = '';\n\n values.forEach((value) => {\n if (typeof value === 'string') {\n const regex = /(?<value>-?[\\d.]+)(?<unit>%|[a-zA-Z]*)/;\n const matches = regex.exec(value);\n\n const numericValue = Number(matches?.groups?.value);\n\n if (!isNaN(numericValue)) {\n foundNumericValues.push(numericValue);\n } else {\n throw new Error('No valid numeric value found');\n }\n\n if (!unit && matches?.groups?.unit) {\n if (!foundUnit) {\n foundUnit = matches.groups.unit;\n } else if (foundUnit !== matches.groups.unit) {\n throw new Error(\n 'Multiple units found. Use `calc()` to mix and math multiple unit types (e.g. `%` & `px`) instead'\n );\n }\n }\n } else if (typeof value === 'number') {\n foundNumericValues.push(value);\n } else {\n throw new Error('Invalid value type - pass a string or number');\n }\n });\n\n return `${callback(...foundNumericValues)}${unit || foundUnit}`;\n};\n"],"mappings":";;;;;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAC+C;;AAExC,IAAMA,aAAa,GAAAC,OAAA,CAAAD,aAAA,GAAG,SAAhBA,aAAaA,CACxBE,MAAiC,EACjCC,QAAuC,EAEpC;EAAA,IADHC,IAAY,GAAAC,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAG,EAAE;EAEjB,IAAI,CAACG,KAAK,CAACC,OAAO,CAACP,MAAM,CAAC,EAAEA,MAAM,GAAG,CAACA,MAAM,CAAC;EAE7C,IAAMQ,kBAA4B,GAAG,EAAE;EACvC,IAAIC,SAAS,GAAG,EAAE;EAElBT,MAAM,CAACU,OAAO,CAAC,UAACC,KAAK,EAAK;IACxB,IAAI,OAAOA,KAAK,KAAK,QAAQ,EAAE;MAAA,IAAAC,eAAA,EAAAC,gBAAA;MAC7B,IAAMC,KAAK,gBAAAC,WAAA,CAAG,4BAAwC;QAAAJ,KAAA;QAAAT,IAAA;MAAA;MACtD,IAAMc,OAAO,GAAGF,KAAK,CAACG,IAAI,CAACN,KAAK,CAAC;MAEjC,IAAMO,YAAY,GAAGC,MAAM,CAACH,OAAO,aAAPA,OAAO,gBAAAJ,eAAA,GAAPI,OAAO,CAAEI,MAAM,cAAAR,eAAA,uBAAfA,eAAA,CAAiBD,KAAK,CAAC;MAEnD,IAAI,CAACU,KAAK,CAACH,YAAY,CAAC,EAAE;QACxBV,kBAAkB,CAACc,IAAI,CAACJ,YAAY,CAAC;MACvC,CAAC,MAAM;QACL,MAAM,IAAIK,KAAK,CAAC,8BAA8B,CAAC;MACjD;MAEA,IAAI,CAACrB,IAAI,IAAIc,OAAO,aAAPA,OAAO,gBAAAH,gBAAA,GAAPG,OAAO,CAAEI,MAAM,cAAAP,gBAAA,eAAfA,gBAAA,CAAiBX,IAAI,EAAE;QAClC,IAAI,CAACO,SAAS,EAAE;UACdA,SAAS,GAAGO,OAAO,CAACI,MAAM,CAAClB,IAAI;QACjC,CAAC,MAAM,IAAIO,SAAS,KAAKO,OAAO,CAACI,MAAM,CAAClB,IAAI,EAAE;UAC5C,MAAM,IAAIqB,KAAK,CACb,kGACF,CAAC;QACH;MACF;IACF,CAAC,MAAM,IAAI,OAAOZ,KAAK,KAAK,QAAQ,EAAE;MACpCH,kBAAkB,CAACc,IAAI,CAACX,KAAK,CAAC;IAChC,CAAC,MAAM;MACL,MAAM,IAAIY,KAAK,CAAC,8CAA8C,CAAC;IACjE;EACF,CAAC,CAAC;EAEF,UAAAC,MAAA,CAAUvB,QAAQ,CAAAwB,KAAA,SAAIjB,kBAAkB,CAAC,EAAAgB,MAAA,CAAGtB,IAAI,IAAIO,SAAS;AAC/D,CAAC","ignoreList":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"math.test.js","names":["_math","require","describe","test","expect","mathWithUnits","x","toEqual","Math","pow","it","y","z","toThrow","undefined"],"sources":["../../../../src/global_styling/functions/math.test.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 { mathWithUnits } from './math';\n\ndescribe('mathWithUnits', () => {\n describe('extracts numerical values from CSS strings with units, performs math callbacks, and returns units as is', () => {\n test('px and multiplication', () => {\n expect(mathWithUnits('10px', (x) => x * 10)).toEqual('100px');\n });\n test('em and division', () => {\n expect(mathWithUnits('40%', (x) => x / 2)).toEqual('20%');\n });\n test('rem and addition', () => {\n expect(mathWithUnits('1rem', (x) => x + 2)).toEqual('3rem');\n });\n test('unitless and negative values', () => {\n expect(mathWithUnits('-5.5', (x) => x - 1.2)).toEqual('-6.7');\n });\n test('allows passing an optional unit if none is passed', () => {\n expect(mathWithUnits('0', (x) => x, 'vh')).toEqual('0vh');\n });\n });\n\n describe('handles numeric input types', () => {\n test('unitless', () => {\n expect(mathWithUnits(6, (x) => Math.pow(x, 2))).toEqual('36');\n });\n test('allows passing an optional unit', () => {\n expect(mathWithUnits(3.5, (x) => x % 1.5, 'px')).toEqual('0.5px');\n });\n });\n\n describe('multiple inputs', () => {\n it('accepts an array of inputs, parses each input, and returns them as a separate arg to the callback', () => {\n expect(\n mathWithUnits(['3px', '4px', '5px'], (x, y, z) => x + y + z)\n ).toEqual('12px');\n });\n it('allows mixing strings and numbers', () => {\n expect(mathWithUnits(['6px', 3], (x, y) => x / y)).toEqual('2px');\n });\n it('throws on multiple different unit types', () => {\n expect(() => mathWithUnits(['1px', '1em'], (x, y) => x + y)).toThrow(\n 'Multiple units found'\n );\n });\n it('allows different unit types if an override unit is passed', () => {\n expect(mathWithUnits(['50%', '5rem'], (x, y) => x / y, 'px')).toEqual(\n '10px'\n );\n });\n });\n\n describe('weird edge cases', () => {\n it('throws on undefined', () => {\n expect(() => mathWithUnits(undefined, (x) => x * 3)).toThrow(\n 'Invalid value type'\n );\n });\n it('throws on strings that do not contain numbers', () => {\n expect(() => mathWithUnits('no number', (x) => x * 3)).toThrow(\n 'No valid numeric value found'\n );\n });\n it('throws on strings with numbers that are actually NaNs', () => {\n expect(() => mathWithUnits('34.23.12', (x) => x * 3)).toThrow(\n 'No valid numeric value found'\n );\n });\n it('ignores multiple values/units, only using the first match', () => {\n expect(mathWithUnits('10px 20px', (x) => x)).toEqual('10px');\n });\n it('ignores multiple percentage signs', () => {\n expect(mathWithUnits('100%%%', (x) => x)).toEqual('100%');\n });\n });\n});\n"],"mappings":";;AAQA,IAAAA,KAAA,GAAAC,OAAA;AARA;AACA;AACA;AACA;AACA;AACA;AACA;;AAIAC,QAAQ,CAAC,eAAe,EAAE,YAAM;EAC9BA,QAAQ,CAAC,yGAAyG,EAAE,YAAM;IACxHC,IAAI,CAAC,uBAAuB,EAAE,YAAM;MAClCC,MAAM,CAAC,IAAAC,mBAAa,EAAC,MAAM,EAAE,UAACC,CAAC;QAAA,OAAKA,CAAC,GAAG,EAAE;MAAA,EAAC,CAAC,CAACC,OAAO,CAAC,OAAO,CAAC;IAC/D,CAAC,CAAC;IACFJ,IAAI,CAAC,iBAAiB,EAAE,YAAM;MAC5BC,MAAM,CAAC,IAAAC,mBAAa,EAAC,KAAK,EAAE,UAACC,CAAC;QAAA,OAAKA,CAAC,GAAG,CAAC;MAAA,EAAC,CAAC,CAACC,OAAO,CAAC,KAAK,CAAC;IAC3D,CAAC,CAAC;IACFJ,IAAI,CAAC,kBAAkB,EAAE,YAAM;MAC7BC,MAAM,CAAC,IAAAC,mBAAa,EAAC,MAAM,EAAE,UAACC,CAAC;QAAA,OAAKA,CAAC,GAAG,CAAC;MAAA,EAAC,CAAC,CAACC,OAAO,CAAC,MAAM,CAAC;IAC7D,CAAC,CAAC;IACFJ,IAAI,CAAC,8BAA8B,EAAE,YAAM;MACzCC,MAAM,CAAC,IAAAC,mBAAa,EAAC,MAAM,EAAE,UAACC,CAAC;QAAA,OAAKA,CAAC,GAAG,GAAG;MAAA,EAAC,CAAC,CAACC,OAAO,CAAC,MAAM,CAAC;IAC/D,CAAC,CAAC;IACFJ,IAA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C3D,8BACF,CAAC;IACH,CAAC,CAAC;IACFH,EAAE,CAAC,2DAA2D,EAAE,YAAM;MACpEN,MAAM,CAAC,IAAAC,mBAAa,EAAC,WAAW,EAAE,UAACC,CAAC;QAAA,OAAKA,CAAC;MAAA,EAAC,CAAC,CAACC,OAAO,CAAC,MAAM,CAAC;IAC9D,CAAC,CAAC;IACFG,EAAE,CAAC,mCAAmC,EAAE,YAAM;MAC5CN,MAAM,CAAC,IAAAC,mBAAa,EAAC,QAAQ,EAAE,UAACC,CAAC;QAAA,OAAKA,CAAC;MAAA,EAAC,CAAC,CAACC,OAAO,CAAC,MAAM,CAAC;IAC3D,CAAC,CAAC;EACJ,CAAC,CAAC;AACJ,CAAC,CAAC","ignoreList":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"shadows.d.ts","sourceRoot":"","sources":["../../../../src/global_styling/functions/shadows.ts"],"names":[],"mappings":"AASA,OAAO,EAEL,yBAAyB,EAC1B,MAAM,4BAA4B,CAAC;AAKpC,eAAO,MAAM,cAAc,UAClB,MAAM,WACJ,MAAM,aACJ,yBAAyB,WAKrC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"shadows.js","names":["_chromaJs","_interopRequireDefault","require","_types","e","__esModule","getShadowColor","exports","color","opacity","colorMode","themeOpacity","COLOR_MODES_STANDARD","dark","chroma","alpha","css"],"sources":["../../../../src/global_styling/functions/shadows.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 chroma from 'chroma-js';\nimport {\n COLOR_MODES_STANDARD,\n EuiThemeColorModeStandard,\n} from '../../services/theme/types';\n\n// Create a CSS color value using whose opacity is determined based\n// on either a light or dark theme. We use a multiplier\n// of 1 for light themes and 2.5 for dark themes\nexport const getShadowColor = (\n color: string,\n opacity: number,\n colorMode: EuiThemeColorModeStandard\n) => {\n const themeOpacity =\n colorMode === COLOR_MODES_STANDARD.dark ? opacity * 3.5 : opacity * 1;\n return chroma(color).alpha(themeOpacity).css();\n};\n"],"mappings":";;;;;;AAQA,IAAAA,SAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,MAAA,GAAAD,OAAA;AAGoC,SAAAD,uBAAAG,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,gBAAAA,CAAA;AAZpC;AACA;AACA;AACA;AACA;AACA;AACA;;AAQA;AACA;AACA;AACO,IAAME,cAAc,GAAAC,OAAA,CAAAD,cAAA,GAAG,SAAjBA,cAAcA,CACzBE,KAAa,EACbC,OAAe,EACfC,SAAoC,EACjC;EACH,IAAMC,YAAY,GAChBD,SAAS,KAAKE,2BAAoB,CAACC,IAAI,GAAGJ,OAAO,GAAG,GAAG,GAAGA,OAAO,GAAG,CAAC;EACvE,OAAO,IAAAK,oBAAM,EAACN,KAAK,CAAC,CAACO,KAAK,CAACJ,YAAY,CAAC,CAACK,GAAG,CAAC,CAAC;AAChD,CAAC","ignoreList":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"size.d.ts","sourceRoot":"","sources":["../../../../src/global_styling/functions/size.ts"],"names":[],"mappings":"AAUA;;;;;;;GAOG;AAEH,eAAO,MAAM,WAAW,WACd,MAAM;;UACiB,MAAM;YAIpC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"size.js","names":["sizeToPixel","exports","scale","arguments","length","undefined","themeOrBase","base","_typeof","concat"],"sources":["../../../../src/global_styling/functions/size.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/* TODO: move to a shared module package */\n\n/**\n * Calculates the `px` value based on a scale multiplier\n * @param scale - The font scale multiplier\n * *\n * @param themeOrBase - Theme base value\n * *\n * @returns string - Rem unit aligned to baseline\n */\n\nexport const sizeToPixel =\n (scale: number = 1) =>\n (themeOrBase: number | { base: number; [key: string]: any }) => {\n const base =\n typeof themeOrBase === 'object' ? themeOrBase.base : themeOrBase;\n return `${base * scale}px`;\n };\n"],"mappings":";;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEO,IAAMA,WAAW,GAAAC,OAAA,CAAAD,WAAA,GACtB,SADWA,WAAWA,CAAA;EAAA,IACrBE,KAAa,GAAAC,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAG,CAAC;EAAA,OAClB,UAACG,WAA0D,EAAK;IAC9D,IAAMC,IAAI,GACRC,OAAA,CAAOF,WAAW,MAAK,QAAQ,GAAGA,WAAW,CAACC,IAAI,GAAGD,WAAW;IAClE,UAAAG,MAAA,CAAUF,IAAI,GAAGL,KAAK;EACxB,CAAC;AAAA","ignoreList":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/global_styling/index.ts"],"names":[],"mappings":"AAQA,cAAc,yBAAyB,CAAC;AACxC,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["_types","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get","_functions","_variables","_mixins"],"sources":["../../../src/global_styling/index.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 * from '../services/theme/types';\nexport * from './functions';\nexport * from './variables';\nexport * from './mixins';\n"],"mappings":";;;;;AAQA,IAAAA,MAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,MAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAL,MAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,IAAA;MAAA,OAAAT,MAAA,CAAAK,GAAA;IAAA;EAAA;AAAA;AACA,IAAAK,UAAA,GAAAT,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAO,UAAA,EAAAN,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAK,UAAA,CAAAL,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,IAAA;MAAA,OAAAC,UAAA,CAAAL,GAAA;IAAA;EAAA;AAAA;AACA,IAAAM,UAAA,GAAAV,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAQ,UAAA,EAAAP,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAM,UAAA,CAAAN,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,IAAA;MAAA,OAAAE,UAAA,CAAAN,GAAA;IAAA;EAAA;AAAA;AACA,IAAAO,OAAA,GAAAX,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAS,OAAA,EAAAR,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAO,OAAA,CAAAP,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,IAAA;MAAA,OAAAG,OAAA,CAAAP,GAAA;IAAA;EAAA;AAAA","ignoreList":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/global_styling/mixins/index.ts"],"names":[],"mappings":"AAQA,cAAc,UAAU,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["_shadow","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get"],"sources":["../../../../src/global_styling/mixins/index.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 * from './shadow';\n"],"mappings":";;;;;AAQA,IAAAA,OAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,OAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAL,OAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,IAAA;MAAA,OAAAT,OAAA,CAAAK,GAAA;IAAA;EAAA;AAAA","ignoreList":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"shadow.d.ts","sourceRoot":"","sources":["../../../../src/global_styling/mixins/shadow.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AAE9D,OAAO,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAE1D,MAAM,WAAW,gBAAgB;IAC/B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,QAAQ,CAAC,EAAE,YAAY,GAAG,QAAQ,CAAC;IACnC,2BAA2B,CAAC,EAAE,OAAO,CAAC;CACvC;AAED;;GAEG;AACH,eAAO,MAAM,eAAe,8CACiB,WAAW,mDAcvD,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,cAAc,8CACkB,WAAW,mDAevD,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,eAAe,8CACiB,WAAW,mDAuBvD,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,cAAc,8CACkB,WAAW,mDAgBvD,CAAC;AAEF;;GAEG;AACH,MAAM,WAAW,eAAgB,SAAQ,gBAAgB;IACvD,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AACD,eAAO,MAAM,eAAe,8CACiB,WAAW,kDAiBvD,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,oBAAoB,8CACY,WAAW,mDAgBvD,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,aAAa,8CACmB,WAAW,mDAgBvD,CAAC;AAEF,eAAO,MAAM,SAAS,oBACH,WAAW,SACtB,mBAAmB,mDAuB1B,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"shadow.js","names":["_functions","require","euiShadowXSmall","exports","_ref","options","euiTheme","colorMode","highContrastMode","_highContrastBorder","color","colors","shadow","concat","getShadowColor","euiShadowSmall","_ref2","euiShadowMedium","_ref3","property","euiShadowLarge","_ref4","euiShadowXLarge","_ref5","_options$reverse","reverse","euiSlightShadowHover","_ref6","euiShadowFlat","_ref7","euiShadow","euiThemeContext","size","arguments","length","undefined","console","warn","_ref8","border","_ref9","borderAllInHighContrastMode","thin"],"sources":["../../../../src/global_styling/mixins/shadow.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 type { UseEuiTheme } from '../../services/theme/types';\nimport { getShadowColor } from '../functions';\nimport { _EuiThemeShadowSize } from '../variables/shadow';\n\nexport interface EuiShadowOptions {\n color?: string;\n /**\n * Note: not supported by all shadow utilities.\n */\n property?: 'box-shadow' | 'filter';\n borderAllInHighContrastMode?: boolean;\n}\n\n/**\n * euiSlightShadow\n */\nexport const euiShadowXSmall = (\n { euiTheme, colorMode, highContrastMode }: UseEuiTheme,\n options?: EuiShadowOptions\n) => {\n if (highContrastMode) {\n return _highContrastBorder(euiTheme, options);\n }\n\n const color = options?.color || euiTheme.colors.shadow;\n\n return `\nbox-shadow:\n 0 .8px .8px ${getShadowColor(color, 0.04, colorMode)},\n 0 2.3px 2px ${getShadowColor(color, 0.03, colorMode)};\n`;\n};\n\n/**\n * bottomShadowSmall\n */\nexport const euiShadowSmall = (\n { euiTheme, colorMode, highContrastMode }: UseEuiTheme,\n options?: EuiShadowOptions\n) => {\n if (highContrastMode) {\n return _highContrastBorder(euiTheme, options);\n }\n\n const color = options?.color || euiTheme.colors.shadow;\n\n return `\nbox-shadow:\n 0 .7px 1.4px ${getShadowColor(color, 0.07, colorMode)},\n 0 1.9px 4px ${getShadowColor(color, 0.05, colorMode)},\n 0 4.5px 10px ${getShadowColor(color, 0.05, colorMode)};\n`;\n};\n\n/**\n * bottomShadowMedium\n */\nexport const euiShadowMedium = (\n { euiTheme, colorMode, highContrastMode }: UseEuiTheme,\n options?: EuiShadowOptions\n) => {\n if (highContrastMode) {\n return _highContrastBorder(euiTheme, options);\n }\n\n const color = options?.color || euiTheme.colors.shadow;\n\n if (options?.property === 'filter') {\n // Using only one drop-shadow filter instead of multiple is more performant & prevents Safari bugs\n return `filter: drop-shadow(0 5.7px 9px ${getShadowColor(\n color,\n 0.2,\n colorMode\n )});`;\n } else {\n return `box-shadow:\n 0 .9px 4px ${getShadowColor(color, 0.08, colorMode)},\n 0 2.6px 8px ${getShadowColor(color, 0.06, colorMode)},\n 0 5.7px 12px ${getShadowColor(color, 0.05, colorMode)},\n 0 15px 15px ${getShadowColor(color, 0.04, colorMode)};`;\n }\n};\n\n/**\n * bottomShadow\n */\nexport const euiShadowLarge = (\n { euiTheme, colorMode, highContrastMode }: UseEuiTheme,\n options?: EuiShadowOptions\n) => {\n if (highContrastMode) {\n return _highContrastBorder(euiTheme, options);\n }\n\n const color = options?.color || euiTheme.colors.shadow;\n\n return `\nbox-shadow:\n 0 1px 5px ${getShadowColor(color, 0.1, colorMode)},\n 0 3.6px 13px ${getShadowColor(color, 0.07, colorMode)},\n 0 8.4px 23px ${getShadowColor(color, 0.06, colorMode)},\n 0 23px 35px ${getShadowColor(color, 0.05, colorMode)};\n`;\n};\n\n/**\n * bottomShadowLarge\n */\nexport interface EuiShadowXLarge extends EuiShadowOptions {\n reverse?: boolean;\n}\nexport const euiShadowXLarge = (\n { euiTheme, colorMode, highContrastMode }: UseEuiTheme,\n options?: EuiShadowXLarge\n) => {\n if (highContrastMode) {\n return _highContrastBorder(euiTheme, options);\n }\n\n const color = options?.color || euiTheme.colors.shadow;\n\n const reverse = options?.reverse ?? false;\n\n return `\nbox-shadow:\n 0 ${reverse ? '-' : ''}2.7px 9px ${getShadowColor(color, 0.13, colorMode)},\n 0 ${reverse ? '-' : ''}9.4px 24px ${getShadowColor(color, 0.09, colorMode)},\n 0 ${reverse ? '-' : ''}21.8px 43px ${getShadowColor(color, 0.08, colorMode)};\n`;\n};\n\n/**\n * slightShadowHover\n */\nexport const euiSlightShadowHover = (\n { euiTheme, colorMode, highContrastMode }: UseEuiTheme,\n options?: EuiShadowOptions\n) => {\n if (highContrastMode) {\n return _highContrastBorder(euiTheme, options);\n }\n\n const color = options?.color || euiTheme.colors.shadow;\n\n return `\nbox-shadow:\n 0 1px 5px ${getShadowColor(color, 0.1, colorMode)},\n 0 3.6px 13px ${getShadowColor(color, 0.07, colorMode)},\n 0 8.4px 23px ${getShadowColor(color, 0.06, colorMode)},\n 0 23px 35px ${getShadowColor(color, 0.05, colorMode)};\n`;\n};\n\n/**\n * bottomShadowFlat\n *\n * Similar to shadow medium but without the bottom depth.\n * Useful for popovers that drop UP rather than DOWN.\n */\nexport const euiShadowFlat = (\n { euiTheme, colorMode, highContrastMode }: UseEuiTheme,\n options?: EuiShadowOptions\n) => {\n if (highContrastMode) {\n return _highContrastBorder(euiTheme, options);\n }\n\n const color = options?.color || euiTheme.colors.shadow;\n\n return `\nbox-shadow:\n 0 0 .8px ${getShadowColor(color, 0.06, colorMode)},\n 0 0 2px ${getShadowColor(color, 0.04, colorMode)},\n 0 0 5px ${getShadowColor(color, 0.04, colorMode)},\n 0 0 17px ${getShadowColor(color, 0.03, colorMode)};\n`;\n};\n\nexport const euiShadow = (\n euiThemeContext: UseEuiTheme,\n size: _EuiThemeShadowSize = 'l',\n options?: EuiShadowOptions\n) => {\n if (euiThemeContext.highContrastMode) {\n return _highContrastBorder(euiThemeContext.euiTheme, options);\n }\n\n switch (size) {\n case 'xs':\n return euiShadowXSmall(euiThemeContext, options);\n case 's':\n return euiShadowSmall(euiThemeContext, options);\n case 'm':\n return euiShadowMedium(euiThemeContext, options);\n case 'l':\n return euiShadowLarge(euiThemeContext, options);\n case 'xl':\n return euiShadowXLarge(euiThemeContext, options);\n\n default:\n console.warn('Please provide a valid size option to useEuiShadow');\n return '';\n }\n};\n\n/**\n * Internal utilities for replacing shadows with high contrast borders instead.\n * NOTE: Windows' high contrast themes ignore *all* `box-shadow` CSS,\n * so we use `border` CSS explicitly instead of shadows\n */\n\nconst _highContrastBorder = (\n { border }: UseEuiTheme['euiTheme'],\n { borderAllInHighContrastMode }: EuiShadowOptions = {}\n) => {\n return borderAllInHighContrastMode\n ? `border: ${border.thin};`\n : `border-block-end: ${border.thin};`;\n};\n"],"mappings":";;;;;;AASA,IAAAA,UAAA,GAAAC,OAAA;AATA;AACA;AACA;AACA;AACA;AACA;AACA;;AAeA;AACA;AACA;AACO,IAAMC,eAAe,GAAAC,OAAA,CAAAD,eAAA,GAAG,SAAlBA,eAAeA,CAAAE,IAAA,EAE1BC,OAA0B,EACvB;EAAA,IAFDC,QAAQ,GAAAF,IAAA,CAARE,QAAQ;IAAEC,SAAS,GAAAH,IAAA,CAATG,SAAS;IAAEC,gBAAgB,GAAAJ,IAAA,CAAhBI,gBAAgB;EAGvC,IAAIA,gBAAgB,EAAE;IACpB,OAAOC,mBAAmB,CAACH,QAAQ,EAAED,OAAO,CAAC;EAC/C;EAEA,IAAMK,KAAK,GAAG,CAAAL,OAAO,aAAPA,OAAO,uBAAPA,OAAO,CAAEK,KAAK,KAAIJ,QAAQ,CAACK,MAAM,CAACC,MAAM;EAEtD,uCAAAC,MAAA,CAEc,IAAAC,yBAAc,EAACJ,KAAK,EAAE,IAAI,EAAEH,SAAS,CAAC,uBAAAM,MAAA,CACtC,IAAAC,yBAAc,EAACJ,KAAK,EAAE,IAAI,EAAEH,SAAS,CAAC;AAEtD,CAAC;;AAED;AACA;AACA;AACO,IAAMQ,cAAc,GAAAZ,OAAA,CAAAY,cAAA,GAAG,SAAjBA,cAAcA,CAAAC,KAAA,EAEzBX,OAA0B,EACvB;EAAA,IAFDC,QAAQ,GAAAU,KAAA,CAARV,QAAQ;IAAEC,SAAS,GAAAS,KAAA,CAATT,SAAS;IAAEC,gBAAgB,GAAAQ,KAAA,CAAhBR,gBAAgB;EAGvC,IAAIA,gBAAgB,EAAE;IACpB,OAAOC,mBAAmB,CAACH,QAAQ,EAAED,OAAO,CAAC;EAC/C;EAEA,IAAMK,KAAK,GAAG,CAAAL,OAAO,aAAPA,O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AD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAG,GAAG;EAAA,IAC/B5B,OAA0B,GAAA4B,SAAA,CAAAC,MAAA,OAAAD,SAAA,MAAAE,SAAA;EAE1B,IAAIJ,eAAe,CAACvB,gBAAgB,EAAE;IACpC,OAAOC,mBAAmB,CAACsB,eAAe,CAACzB,QAAQ,EAAED,OAAO,CAAC;EAC/D;EAEA,QAAQ2B,IAAI;IACV,KAAK,IAAI;MACP,OAAO9B,eAAe,CAAC6B,eAAe,EAAE1B,OAAO,CAAC;IAClD,KAAK,GAAG;MACN,OAAOU,cAAc,CAACgB,eAAe,EAAE1B,OAAO,CAAC;IACjD,KAAK,GAAG;MACN,OAAOY,eAAe,CAACc,eAAe,EAAE1B,OAAO,CAAC;IAClD,KAAK,GAAG;MACN,OAAOe,cAAc,CAACW,eAAe,EAAE1B,OAAO,CAAC;IACjD,KAAK,IAAI;MACP,OAAOiB,eAAe,CAACS,eAAe,EAAE1B,OAAO,CAAC;IAElD;MACE+B,OAAO,CAACC,IAAI,CAAC,oDAAoD,CAAC;MAClE,OAAO,EAAE;EACb;AACF,CAAC;;AAED;AACA;AACA;AACA;AACA;;AAEA,IAAM5B,mBAAmB,GAAG,SAAtBA,mBAAmBA,CAAA6B,KAAA,EAGpB;EAAA,IAFDC,MAAM,GAAAD,KAAA,CAANC,MAAM;EAAA,IAAAC,KAAA,GAAAP,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAC4C,CAAC,CAAC;IAApDQ,2BAA2B,GAAAD,KAAA,CAA3BC,2BAA2B;EAE7B,OAAOA,2BAA2B,cAAA5B,MAAA,CACnB0B,MAAM,CAACG,IAAI,8BAAA7B,MAAA,CACD0B,MAAM,CAACG,IAAI,MAAG;AACzC,CAAC","ignoreList":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"_breakpoint.d.ts","sourceRoot":"","sources":["../../../../src/global_styling/variables/_breakpoint.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AAEpD,eAAO,MAAM,UAAU,EAAE,oBAMxB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"_breakpoint.js","names":["breakpoint","exports","xl","l","m","s","xs"],"sources":["../../../../src/global_styling/variables/_breakpoint.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 { _EuiThemeBreakpoints } from './breakpoint';\n\nexport const breakpoint: _EuiThemeBreakpoints = {\n xl: 1200,\n l: 992,\n m: 768,\n s: 575,\n xs: 0,\n};\n"],"mappings":";;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;;AAIO,IAAMA,UAAgC,GAAAC,OAAA,CAAAD,UAAA,GAAG;EAC9CE,EAAE,EAAE,IAAI;EACRC,CAAC,EAAE,GAAG;EACNC,CAAC,EAAE,GAAG;EACNC,CAAC,EAAE,GAAG;EACNC,EAAE,EAAE;AACN,CAAC","ignoreList":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"animations.d.ts","sourceRoot":"","sources":["../../../../src/global_styling/variables/animations.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAEtC;;;GAGG;AACH,eAAO,MAAM,aAAa,8DACmC,CAAC;AAE9D;;;GAGG;AACH,eAAO,MAAM,cAAc,uDAC2B,CAAC;AAEvD;;GAEG;AAEH,eAAO,MAAM,uBAAuB,+DAM1B,CAAC;AAEX,oBAAY,uBAAuB,GAAG,CAAC,OAAO,uBAAuB,CAAC,CAAC,MAAM,CAAC,CAAC;AAE/E,oBAAY,wBAAwB,GAAG;IACrC,4BAA4B;IAC5B,SAAS,EAAE,aAAa,CAAC,mBAAmB,CAAC,CAAC;IAC9C,6BAA6B;IAC7B,IAAI,EAAE,aAAa,CAAC,mBAAmB,CAAC,CAAC;IACzC,6BAA6B;IAC7B,MAAM,EAAE,aAAa,CAAC,mBAAmB,CAAC,CAAC;IAC3C,6BAA6B;IAC7B,IAAI,EAAE,aAAa,CAAC,mBAAmB,CAAC,CAAC;IACzC,6BAA6B;IAC7B,SAAS,EAAE,aAAa,CAAC,mBAAmB,CAAC,CAAC;CAC/C,CAAC;AAEF;;GAEG;AAEH,eAAO,MAAM,wBAAwB,mCAAoC,CAAC;AAE1E,oBAAY,wBAAwB,GAClC,CAAC,OAAO,wBAAwB,CAAC,CAAC,MAAM,CAAC,CAAC;AAE5C,oBAAY,yBAAyB,GAAG,MAAM,CAC5C,wBAAwB,EACxB,aAAa,CAAC,yBAAyB,CAAC,CACzC,CAAC;AAEF,oBAAY,kBAAkB,GAAG,yBAAyB,GACxD,wBAAwB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"animations.js","names":["euiCanAnimate","exports","euiCantAnimate","EuiThemeAnimationSpeeds","EuiThemeAnimationEasings"],"sources":["../../../../src/global_styling/variables/animations.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 */\nimport { CSSProperties } from 'react';\n\n/**\n * A constant storing the `prefers-reduced-motion` media query\n * so that when it is turned off, animations are not run.\n */\nexport const euiCanAnimate =\n '@media screen and (prefers-reduced-motion: no-preference)';\n\n/**\n * A constant storing the `prefers-reduced-motion` media query that will\n * only apply the content if the setting is off (reduce).\n */\nexport const euiCantAnimate =\n '@media screen and (prefers-reduced-motion: reduce)';\n\n/**\n * Speeds / Durations / Delays\n */\n\nexport const EuiThemeAnimationSpeeds = [\n 'extraFast',\n 'fast',\n 'normal',\n 'slow',\n 'extraSlow',\n] as const;\n\nexport type _EuiThemeAnimationSpeed = (typeof EuiThemeAnimationSpeeds)[number];\n\nexport type _EuiThemeAnimationSpeeds = {\n /** - Default value: 90ms */\n extraFast: CSSProperties['animationDuration'];\n /** - Default value: 150ms */\n fast: CSSProperties['animationDuration'];\n /** - Default value: 250ms */\n normal: CSSProperties['animationDuration'];\n /** - Default value: 350ms */\n slow: CSSProperties['animationDuration'];\n /** - Default value: 500ms */\n extraSlow: CSSProperties['animationDuration'];\n};\n\n/**\n * Easings / Timing functions\n */\n\nexport const EuiThemeAnimationEasings = ['bounce', 'resistance'] as const;\n\nexport type _EuiThemeAnimationEasing =\n (typeof EuiThemeAnimationEasings)[number];\n\nexport type _EuiThemeAnimationEasings = Record<\n _EuiThemeAnimationEasing,\n CSSProperties['animationTimingFunction']\n>;\n\nexport type _EuiThemeAnimation = _EuiThemeAnimationEasings &\n _EuiThemeAnimationSpeeds;\n"],"mappings":";;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;;AAGA;AACA;AACA;AACA;AACO,IAAMA,aAAa,GAAAC,OAAA,CAAAD,aAAA,GACxB,2DAA2D;;AAE7D;AACA;AACA;AACA;AACO,IAAME,cAAc,GAAAD,OAAA,CAAAC,cAAA,GACzB,oDAAoD;;AAEtD;AACA;AACA;;AAEO,IAAMC,uBAAuB,GAAAF,OAAA,CAAAE,uBAAA,GAAG,CACrC,WAAW,EACX,MAAM,EACN,QAAQ,EACR,MAAM,EACN,WAAW,CACH;AAiBV;AACA;AACA;;AAEO,IAAMC,wBAAwB,GAAAH,OAAA,CAAAG,wBAAA,GAAG,CAAC,QAAQ,EAAE,YAAY,CAAU","ignoreList":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"borders.d.ts","sourceRoot":"","sources":["../../../../src/global_styling/variables/borders.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AACtC,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAE7D,MAAM,WAAW,0BAA0B;IACzC;;;OAGG;IACH,IAAI,EAAE,aAAa,CAAC,aAAa,CAAC,CAAC;IACnC;;;OAGG;IACH,KAAK,EAAE,aAAa,CAAC,aAAa,CAAC,CAAC;CACrC;AAED,MAAM,WAAW,2BAA2B;IAC1C;;;OAGG;IACH,MAAM,EAAE,aAAa,CAAC,cAAc,CAAC,CAAC;IACtC;;;OAGG;IACH,KAAK,EAAE,aAAa,CAAC,cAAc,CAAC,CAAC;CACtC;AAED,MAAM,WAAW,0BAA0B;IACzC;;;OAGG;IACH,KAAK,EAAE,eAAe,CAAC;CACxB;AAED,MAAM,WAAW,qBAAsB,SAAQ,0BAA0B;IACvE;;OAEG;IACH,KAAK,EAAE,0BAA0B,CAAC;IAClC;;OAEG;IACH,MAAM,EAAE,2BAA2B,CAAC;CACrC;AAED,MAAM,WAAW,oBAAoB;IACnC;;;OAGG;IACH,IAAI,EAAE,aAAa,CAAC,QAAQ,CAAC,CAAC;IAC9B;;;OAGG;IACH,KAAK,EAAE,aAAa,CAAC,QAAQ,CAAC,CAAC;IAC/B;;;OAGG;IACH,QAAQ,EAAE,aAAa,CAAC,QAAQ,CAAC,CAAC;CACnC;AAED,oBAAY,eAAe,GAAG,qBAAqB,GAAG,oBAAoB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"borders.js","names":[],"sources":["../../../../src/global_styling/variables/borders.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 { CSSProperties } from 'react';\nimport { ColorModeSwitch } from '../../services/theme/types';\n\nexport interface _EuiThemeBorderWidthValues {\n /**\n * Thinnest width for border\n * - Default value: 1px\n */\n thin: CSSProperties['borderWidth'];\n /**\n * Thickest width for border\n * - Default value: 2px\n */\n thick: CSSProperties['borderWidth'];\n}\n\nexport interface _EuiThemeBorderRadiusValues {\n /**\n * Primary corner radius size\n * - Default value: 4px (6px in Amsterdam)\n */\n medium: CSSProperties['borderRadius'];\n /**\n * Small corner radius size\n * - Default value: 4px\n */\n small: CSSProperties['borderRadius'];\n}\n\nexport interface _EuiThemeBorderColorValues {\n /**\n * Color for all borders; Default is `colors.lightShade`.\n * In high contrast mode, this value becomes `colors.fullShade` and cannot be overridden.\n */\n color: ColorModeSwitch;\n}\n\nexport interface _EuiThemeBorderValues extends _EuiThemeBorderColorValues {\n /**\n * Varied thicknesses for borders\n */\n width: _EuiThemeBorderWidthValues;\n /**\n * Varied border radii\n */\n radius: _EuiThemeBorderRadiusValues;\n}\n\nexport interface _EuiThemeBorderTypes {\n /**\n * Full `border` property string computed using `border.width.thin` and `border.color`\n * - Default value: 1px solid [colors.lightShade]\n */\n thin: CSSProperties['border'];\n /**\n * Full `border` property string computed using `border.width.thick` and `border.color`\n * - Default value: 2px solid [colors.lightShade]\n */\n thick: CSSProperties['border'];\n /**\n * Full editable style `border` property string computed using `border.width.thick` and `border.color`\n * - Default value: 2px dotted [colors.lightShade]\n */\n editable: CSSProperties['border'];\n}\n\nexport type _EuiThemeBorder = _EuiThemeBorderValues & _EuiThemeBorderTypes;\n"],"mappings":"","ignoreList":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"breakpoint.d.ts","sourceRoot":"","sources":["../../../../src/global_styling/variables/breakpoint.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,mBAAmB,sCAAuC,CAAC;AAIxE,oBAAY,mBAAmB,GAAG,MAAM,CAAC;AAIzC,oBAAY,oBAAoB,GAAG,MAAM,CAAC,mBAAmB,EAAE,MAAM,CAAC,GAAG;IACvE,yBAAyB;IACzB,EAAE,EAAE,MAAM,CAAC;IACX,2BAA2B;IAC3B,CAAC,EAAE,MAAM,CAAC;IACV,2BAA2B;IAC3B,CAAC,EAAE,MAAM,CAAC;IACV,2BAA2B;IAC3B,CAAC,EAAE,MAAM,CAAC;IACV,4BAA4B;IAC5B,EAAE,EAAE,MAAM,CAAC;CACZ,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"breakpoint.js","names":["EuiThemeBreakpoints","exports"],"sources":["../../../../src/global_styling/variables/breakpoint.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 const EuiThemeBreakpoints = ['xs', 's', 'm', 'l', 'xl'] as const;\n\n// This type cannot be a string enum / must be a generic string\n// in case consumers add custom breakpoint sizes, such as xxl or xxs\nexport type _EuiThemeBreakpoint = string;\n\n// Explicitly list out each key so we can document default values\n// via JSDoc (which is available to devs in IDE via intellisense)\nexport type _EuiThemeBreakpoints = Record<_EuiThemeBreakpoint, number> & {\n /** - Default value: 0 */\n xs: number;\n /** - Default value: 575 */\n s: number;\n /** - Default value: 768 */\n m: number;\n /** - Default value: 992 */\n l: number;\n /** - Default value: 1200 */\n xl: number;\n};\n"],"mappings":";;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEO,IAAMA,mBAAmB,GAAAC,OAAA,CAAAD,mBAAA,GAAG,CAAC,IAAI,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,IAAI,CAAU;;AAEvE;AACA;;AAGA;AACA","ignoreList":[]}
|
|
@@ -1 +0,0 @@
|
|
|
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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,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 +0,0 @@
|
|
|
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 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 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 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":[]}
|
|
@@ -1 +0,0 @@
|
|
|
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;;OA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AgB,EAAE,MAAM,CAAC;IACzB,gBAAgB,EAAE,MAAM,CAAC;IAEzB,yBAAyB,EAAE,MAAM,CAAC;IAClC,yBAAyB,EAAE,MAAM,CAAC;CACnC,CAAC;AAEF,oBAAY,uBAAuB,GAAG;IACpC,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;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 +0,0 @@
|
|
|
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 +0,0 @@
|
|
|
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,qBAAqB,EAAE,MAAM,WAAW,CAAC;AAClD,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,eAAe,CAAC;IACxC,SAAS,EAAE,eAAe,CAAC;IAC3B,eAAe,EAAE,eAAe,CAAC;IACjC,gBAAgB,EAAE,eAAe,CAA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