@elastic/eui-theme-common 0.0.7 → 0.0.9-snapshot.1741113124250
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 +1 -0
- package/lib/cjs/global_styling/functions/index.d.ts.map +1 -1
- package/lib/cjs/global_styling/functions/index.js +11 -0
- package/lib/cjs/global_styling/functions/index.js.map +1 -1
- package/lib/cjs/global_styling/functions/shadows.d.ts +3 -0
- package/lib/cjs/global_styling/functions/shadows.d.ts.map +1 -0
- package/lib/cjs/global_styling/functions/shadows.js +25 -0
- package/lib/cjs/global_styling/functions/shadows.js.map +1 -0
- package/lib/cjs/global_styling/index.d.ts +2 -1
- package/lib/cjs/global_styling/index.d.ts.map +1 -1
- package/lib/cjs/global_styling/index.js +12 -1
- package/lib/cjs/global_styling/index.js.map +1 -1
- package/lib/cjs/global_styling/mixins/index.d.ts +2 -0
- package/lib/cjs/global_styling/mixins/index.d.ts.map +1 -0
- package/lib/cjs/global_styling/mixins/index.js +17 -0
- package/lib/cjs/global_styling/mixins/index.js.map +1 -0
- package/lib/cjs/global_styling/mixins/shadow.d.ts +41 -0
- package/lib/cjs/global_styling/mixins/shadow.d.ts.map +1 -0
- package/lib/cjs/global_styling/mixins/shadow.js +140 -0
- package/lib/cjs/global_styling/mixins/shadow.js.map +1 -0
- package/lib/cjs/global_styling/variables/_breakpoint.d.ts +3 -0
- package/lib/cjs/global_styling/variables/_breakpoint.d.ts.map +1 -0
- package/lib/cjs/global_styling/variables/_breakpoint.js +22 -0
- package/lib/cjs/global_styling/variables/_breakpoint.js.map +1 -0
- package/lib/cjs/global_styling/variables/borders.d.ts +1 -1
- package/lib/cjs/global_styling/variables/borders.d.ts.map +1 -1
- package/lib/cjs/global_styling/variables/borders.js.map +1 -1
- package/lib/cjs/global_styling/variables/buttons.d.ts +1 -1
- 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 -1
- 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 +4 -1
- 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/forms.d.ts +1 -1
- package/lib/cjs/global_styling/variables/forms.d.ts.map +1 -1
- package/lib/cjs/global_styling/variables/forms.js.map +1 -1
- package/lib/cjs/global_styling/variables/index.d.ts +2 -0
- package/lib/cjs/global_styling/variables/index.d.ts.map +1 -1
- package/lib/cjs/global_styling/variables/index.js +11 -0
- package/lib/cjs/global_styling/variables/index.js.map +1 -1
- package/lib/cjs/global_styling/variables/states.d.ts +1 -1
- package/lib/cjs/global_styling/variables/states.d.ts.map +1 -1
- package/lib/cjs/global_styling/variables/states.js.map +1 -1
- package/lib/{esm/global_styling → cjs/services/theme}/types.d.ts +17 -11
- package/lib/cjs/services/theme/types.d.ts.map +1 -0
- package/lib/cjs/services/theme/types.js.map +1 -0
- package/lib/esm/global_styling/functions/index.d.ts +1 -0
- package/lib/esm/global_styling/functions/index.js +1 -0
- package/lib/esm/global_styling/functions/index.js.map +1 -1
- package/lib/esm/global_styling/functions/shadows.d.ts +2 -0
- package/lib/esm/global_styling/functions/shadows.js +17 -0
- package/lib/esm/global_styling/functions/shadows.js.map +1 -0
- package/lib/esm/global_styling/index.d.ts +2 -1
- package/lib/esm/global_styling/index.js +2 -1
- package/lib/esm/global_styling/index.js.map +1 -1
- package/lib/esm/global_styling/mixins/index.d.ts +1 -0
- package/lib/esm/global_styling/mixins/index.js +9 -0
- package/lib/esm/global_styling/mixins/index.js.map +1 -0
- package/lib/esm/global_styling/mixins/shadow.d.ts +40 -0
- package/lib/esm/global_styling/mixins/shadow.js +117 -0
- package/lib/esm/global_styling/mixins/shadow.js.map +1 -0
- package/lib/esm/global_styling/variables/_breakpoint.d.ts +2 -0
- package/lib/esm/global_styling/variables/_breakpoint.js +15 -0
- package/lib/esm/global_styling/variables/_breakpoint.js.map +1 -0
- package/lib/esm/global_styling/variables/borders.d.ts +1 -1
- package/lib/esm/global_styling/variables/buttons.d.ts +1 -1
- package/lib/esm/global_styling/variables/colors.d.ts +25 -1
- package/lib/esm/global_styling/variables/components.d.ts +4 -1
- package/lib/esm/global_styling/variables/forms.d.ts +1 -1
- package/lib/esm/global_styling/variables/index.d.ts +2 -0
- package/lib/esm/global_styling/variables/index.js +2 -0
- package/lib/esm/global_styling/variables/index.js.map +1 -1
- package/lib/esm/global_styling/variables/states.d.ts +1 -1
- package/lib/{cjs/global_styling → esm/services/theme}/types.d.ts +16 -12
- package/lib/esm/services/theme/types.js.map +1 -0
- package/package.json +6 -3
- package/src/global_styling/functions/_colors.scss +3 -3
- package/src/global_styling/mixins/_form.scss +3 -3
- package/src/global_styling/mixins/_shadow.scss +1 -1
- package/src/global_styling/mixins/_typography.scss +2 -2
- package/lib/cjs/global_styling/types.d.ts.map +0 -1
- package/lib/cjs/global_styling/types.js.map +0 -1
- package/lib/esm/global_styling/types.js.map +0 -1
- /package/lib/cjs/{global_styling → services/theme}/types.js +0 -0
- /package/lib/esm/{global_styling → services/theme}/types.js +0 -0
|
@@ -1 +1 @@
|
|
|
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"}
|
|
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"}
|
|
@@ -25,4 +25,15 @@ Object.keys(_math).forEach(function (key) {
|
|
|
25
25
|
}
|
|
26
26
|
});
|
|
27
27
|
});
|
|
28
|
+
var _shadows = require("./shadows");
|
|
29
|
+
Object.keys(_shadows).forEach(function (key) {
|
|
30
|
+
if (key === "default" || key === "__esModule") return;
|
|
31
|
+
if (key in exports && exports[key] === _shadows[key]) return;
|
|
32
|
+
Object.defineProperty(exports, key, {
|
|
33
|
+
enumerable: true,
|
|
34
|
+
get: function get() {
|
|
35
|
+
return _shadows[key];
|
|
36
|
+
}
|
|
37
|
+
});
|
|
38
|
+
});
|
|
28
39
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["_size","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get","_math"],"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';\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","ignoreList":[]}
|
|
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":[]}
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.getShadowColor = void 0;
|
|
7
|
+
var _chromaJs = _interopRequireDefault(require("chroma-js"));
|
|
8
|
+
var _types = require("../../services/theme/types");
|
|
9
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
10
|
+
/*
|
|
11
|
+
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
12
|
+
* or more contributor license agreements. Licensed under the Elastic License
|
|
13
|
+
* 2.0 and the Server Side Public License, v 1; you may not use this file except
|
|
14
|
+
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
|
15
|
+
* Side Public License, v 1.
|
|
16
|
+
*/
|
|
17
|
+
|
|
18
|
+
// Create a CSS color value using whose opacity is determined based
|
|
19
|
+
// on either a light or dark theme. We use a multiplier
|
|
20
|
+
// of 1 for light themes and 2.5 for dark themes
|
|
21
|
+
var getShadowColor = exports.getShadowColor = function getShadowColor(color, opacity, colorMode) {
|
|
22
|
+
var themeOpacity = colorMode === _types.COLOR_MODES_STANDARD.dark ? opacity * 3.5 : opacity * 1;
|
|
23
|
+
return (0, _chromaJs["default"])(color).alpha(themeOpacity).css();
|
|
24
|
+
};
|
|
25
|
+
//# sourceMappingURL=shadows.js.map
|
|
@@ -0,0 +1 @@
|
|
|
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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/global_styling/index.ts"],"names":[],"mappings":"AAQA,cAAc,
|
|
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"}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
var _types = require("
|
|
6
|
+
var _types = require("../services/theme/types");
|
|
7
7
|
Object.keys(_types).forEach(function (key) {
|
|
8
8
|
if (key === "default" || key === "__esModule") return;
|
|
9
9
|
if (key in exports && exports[key] === _types[key]) return;
|
|
@@ -36,4 +36,15 @@ Object.keys(_variables).forEach(function (key) {
|
|
|
36
36
|
}
|
|
37
37
|
});
|
|
38
38
|
});
|
|
39
|
+
var _mixins = require("./mixins");
|
|
40
|
+
Object.keys(_mixins).forEach(function (key) {
|
|
41
|
+
if (key === "default" || key === "__esModule") return;
|
|
42
|
+
if (key in exports && exports[key] === _mixins[key]) return;
|
|
43
|
+
Object.defineProperty(exports, key, {
|
|
44
|
+
enumerable: true,
|
|
45
|
+
get: function get() {
|
|
46
|
+
return _mixins[key];
|
|
47
|
+
}
|
|
48
|
+
});
|
|
49
|
+
});
|
|
39
50
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["_types","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get","_functions","_variables"],"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 '
|
|
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":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/global_styling/mixins/index.ts"],"names":[],"mappings":"AAQA,cAAc,UAAU,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
var _shadow = require("./shadow");
|
|
7
|
+
Object.keys(_shadow).forEach(function (key) {
|
|
8
|
+
if (key === "default" || key === "__esModule") return;
|
|
9
|
+
if (key in exports && exports[key] === _shadow[key]) return;
|
|
10
|
+
Object.defineProperty(exports, key, {
|
|
11
|
+
enumerable: true,
|
|
12
|
+
get: function get() {
|
|
13
|
+
return _shadow[key];
|
|
14
|
+
}
|
|
15
|
+
});
|
|
16
|
+
});
|
|
17
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
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":[]}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import type { UseEuiTheme } from '../../services/theme/types';
|
|
2
|
+
import { _EuiThemeShadowSize, _EuiThemeShadowCustomColor } from '../variables/shadow';
|
|
3
|
+
export interface EuiShadowCustomColor {
|
|
4
|
+
color?: string;
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* euiSlightShadow
|
|
8
|
+
*/
|
|
9
|
+
export declare const euiShadowXSmall: ({ euiTheme, colorMode }: UseEuiTheme, { color: _color }?: _EuiThemeShadowCustomColor) => string;
|
|
10
|
+
/**
|
|
11
|
+
* bottomShadowSmall
|
|
12
|
+
*/
|
|
13
|
+
export declare const euiShadowSmall: ({ euiTheme, colorMode }: UseEuiTheme, { color: _color }?: _EuiThemeShadowCustomColor) => string;
|
|
14
|
+
/**
|
|
15
|
+
* bottomShadowMedium
|
|
16
|
+
*/
|
|
17
|
+
export declare const euiShadowMedium: ({ euiTheme, colorMode }: UseEuiTheme, { color: _color, property }?: _EuiThemeShadowCustomColor) => string;
|
|
18
|
+
/**
|
|
19
|
+
* bottomShadow
|
|
20
|
+
*/
|
|
21
|
+
export declare const euiShadowLarge: ({ euiTheme, colorMode }: UseEuiTheme, { color: _color }?: _EuiThemeShadowCustomColor) => string;
|
|
22
|
+
/**
|
|
23
|
+
* bottomShadowLarge
|
|
24
|
+
*/
|
|
25
|
+
export interface EuiShadowXLarge extends _EuiThemeShadowCustomColor {
|
|
26
|
+
reverse?: boolean;
|
|
27
|
+
}
|
|
28
|
+
export declare const euiShadowXLarge: ({ euiTheme, colorMode }: UseEuiTheme, { color: _color, reverse }?: EuiShadowXLarge) => string;
|
|
29
|
+
/**
|
|
30
|
+
* slightShadowHover
|
|
31
|
+
*/
|
|
32
|
+
export declare const euiSlightShadowHover: ({ euiTheme, colorMode }: UseEuiTheme, { color: _color }?: _EuiThemeShadowCustomColor) => string;
|
|
33
|
+
/**
|
|
34
|
+
* bottomShadowFlat
|
|
35
|
+
*
|
|
36
|
+
* Similar to shadow medium but without the bottom depth.
|
|
37
|
+
* Useful for popovers that drop UP rather than DOWN.
|
|
38
|
+
*/
|
|
39
|
+
export declare const euiShadowFlat: ({ euiTheme, colorMode }: UseEuiTheme, { color: _color }?: _EuiThemeShadowCustomColor) => string;
|
|
40
|
+
export declare const euiShadow: (euiThemeContext: UseEuiTheme, size?: _EuiThemeShadowSize, { color }?: _EuiThemeShadowCustomColor) => string;
|
|
41
|
+
//# sourceMappingURL=shadow.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
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,EACL,mBAAmB,EACnB,0BAA0B,EAC3B,MAAM,qBAAqB,CAAC;AAE7B,MAAM,WAAW,oBAAoB;IACnC,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED;;GAEG;AACH,eAAO,MAAM,eAAe,4BACD,WAAW,sBACjB,0BAA0B,WAQ9C,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,cAAc,4BACA,WAAW,sBACjB,0BAA0B,WAS9C,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,eAAe,4BACD,WAAW,gCACP,0BAA0B,WAkBxD,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,cAAc,4BACA,WAAW,sBACjB,0BAA0B,WAU9C,CAAC;AAEF;;GAEG;AACH,MAAM,WAAW,eAAgB,SAAQ,0BAA0B;IACjE,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AACD,eAAO,MAAM,eAAe,4BACD,WAAW,+BACR,eAAe,WAS5C,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,oBAAoB,4BACN,WAAW,sBACjB,0BAA0B,WAU9C,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,aAAa,4BACC,WAAW,sBACjB,0BAA0B,WAU9C,CAAC;AAEF,eAAO,MAAM,SAAS,oBACH,WAAW,SACtB,mBAAmB,cACd,0BAA0B,WAkBtC,CAAC"}
|
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.euiSlightShadowHover = exports.euiShadowXSmall = exports.euiShadowXLarge = exports.euiShadowSmall = exports.euiShadowMedium = exports.euiShadowLarge = exports.euiShadowFlat = exports.euiShadow = void 0;
|
|
7
|
+
var _functions = require("../functions");
|
|
8
|
+
/*
|
|
9
|
+
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
10
|
+
* or more contributor license agreements. Licensed under the Elastic License
|
|
11
|
+
* 2.0 and the Server Side Public License, v 1; you may not use this file except
|
|
12
|
+
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
|
13
|
+
* Side Public License, v 1.
|
|
14
|
+
*/
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* euiSlightShadow
|
|
18
|
+
*/
|
|
19
|
+
var euiShadowXSmall = exports.euiShadowXSmall = function euiShadowXSmall(_ref) {
|
|
20
|
+
var euiTheme = _ref.euiTheme,
|
|
21
|
+
colorMode = _ref.colorMode;
|
|
22
|
+
var _ref2 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
|
|
23
|
+
_color = _ref2.color;
|
|
24
|
+
var color = _color || euiTheme.colors.shadow;
|
|
25
|
+
return "\nbox-shadow:\n 0 .8px .8px ".concat((0, _functions.getShadowColor)(color, 0.04, colorMode), ",\n 0 2.3px 2px ").concat((0, _functions.getShadowColor)(color, 0.03, colorMode), ";\n");
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* bottomShadowSmall
|
|
30
|
+
*/
|
|
31
|
+
var euiShadowSmall = exports.euiShadowSmall = function euiShadowSmall(_ref3) {
|
|
32
|
+
var euiTheme = _ref3.euiTheme,
|
|
33
|
+
colorMode = _ref3.colorMode;
|
|
34
|
+
var _ref4 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
|
|
35
|
+
_color = _ref4.color;
|
|
36
|
+
var color = _color || euiTheme.colors.shadow;
|
|
37
|
+
return "\nbox-shadow:\n 0 .7px 1.4px ".concat((0, _functions.getShadowColor)(color, 0.07, colorMode), ",\n 0 1.9px 4px ").concat((0, _functions.getShadowColor)(color, 0.05, colorMode), ",\n 0 4.5px 10px ").concat((0, _functions.getShadowColor)(color, 0.05, colorMode), ";\n");
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* bottomShadowMedium
|
|
42
|
+
*/
|
|
43
|
+
var euiShadowMedium = exports.euiShadowMedium = function euiShadowMedium(_ref5) {
|
|
44
|
+
var euiTheme = _ref5.euiTheme,
|
|
45
|
+
colorMode = _ref5.colorMode;
|
|
46
|
+
var _ref6 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
|
|
47
|
+
_color = _ref6.color,
|
|
48
|
+
property = _ref6.property;
|
|
49
|
+
var color = _color || euiTheme.colors.shadow;
|
|
50
|
+
if (property === 'filter') {
|
|
51
|
+
// Using only one drop-shadow filter instead of multiple is more performant & prevents Safari bugs
|
|
52
|
+
return "filter: drop-shadow(0 5.7px 9px ".concat((0, _functions.getShadowColor)(color, 0.2, colorMode), ");");
|
|
53
|
+
} else {
|
|
54
|
+
return "box-shadow:\n 0 .9px 4px ".concat((0, _functions.getShadowColor)(color, 0.08, colorMode), ",\n 0 2.6px 8px ").concat((0, _functions.getShadowColor)(color, 0.06, colorMode), ",\n 0 5.7px 12px ").concat((0, _functions.getShadowColor)(color, 0.05, colorMode), ",\n 0 15px 15px ").concat((0, _functions.getShadowColor)(color, 0.04, colorMode), ";");
|
|
55
|
+
}
|
|
56
|
+
};
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* bottomShadow
|
|
60
|
+
*/
|
|
61
|
+
var euiShadowLarge = exports.euiShadowLarge = function euiShadowLarge(_ref7) {
|
|
62
|
+
var euiTheme = _ref7.euiTheme,
|
|
63
|
+
colorMode = _ref7.colorMode;
|
|
64
|
+
var _ref8 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
|
|
65
|
+
_color = _ref8.color;
|
|
66
|
+
var color = _color || euiTheme.colors.shadow;
|
|
67
|
+
return "\nbox-shadow:\n 0 1px 5px ".concat((0, _functions.getShadowColor)(color, 0.1, colorMode), ",\n 0 3.6px 13px ").concat((0, _functions.getShadowColor)(color, 0.07, colorMode), ",\n 0 8.4px 23px ").concat((0, _functions.getShadowColor)(color, 0.06, colorMode), ",\n 0 23px 35px ").concat((0, _functions.getShadowColor)(color, 0.05, colorMode), ";\n");
|
|
68
|
+
};
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* bottomShadowLarge
|
|
72
|
+
*/
|
|
73
|
+
|
|
74
|
+
var euiShadowXLarge = exports.euiShadowXLarge = function euiShadowXLarge(_ref9) {
|
|
75
|
+
var euiTheme = _ref9.euiTheme,
|
|
76
|
+
colorMode = _ref9.colorMode;
|
|
77
|
+
var _ref10 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
|
|
78
|
+
_color = _ref10.color,
|
|
79
|
+
reverse = _ref10.reverse;
|
|
80
|
+
var color = _color || euiTheme.colors.shadow;
|
|
81
|
+
return "\nbox-shadow:\n 0 ".concat(reverse ? '-' : '', "2.7px 9px ").concat((0, _functions.getShadowColor)(color, 0.13, colorMode), ",\n 0 ").concat(reverse ? '-' : '', "9.4px 24px ").concat((0, _functions.getShadowColor)(color, 0.09, colorMode), ",\n 0 ").concat(reverse ? '-' : '', "21.8px 43px ").concat((0, _functions.getShadowColor)(color, 0.08, colorMode), ";\n");
|
|
82
|
+
};
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* slightShadowHover
|
|
86
|
+
*/
|
|
87
|
+
var euiSlightShadowHover = exports.euiSlightShadowHover = function euiSlightShadowHover(_ref11) {
|
|
88
|
+
var euiTheme = _ref11.euiTheme,
|
|
89
|
+
colorMode = _ref11.colorMode;
|
|
90
|
+
var _ref12 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
|
|
91
|
+
_color = _ref12.color;
|
|
92
|
+
var color = _color || euiTheme.colors.shadow;
|
|
93
|
+
return "\nbox-shadow:\n 0 1px 5px ".concat((0, _functions.getShadowColor)(color, 0.1, colorMode), ",\n 0 3.6px 13px ").concat((0, _functions.getShadowColor)(color, 0.07, colorMode), ",\n 0 8.4px 23px ").concat((0, _functions.getShadowColor)(color, 0.06, colorMode), ",\n 0 23px 35px ").concat((0, _functions.getShadowColor)(color, 0.05, colorMode), ";\n");
|
|
94
|
+
};
|
|
95
|
+
|
|
96
|
+
/**
|
|
97
|
+
* bottomShadowFlat
|
|
98
|
+
*
|
|
99
|
+
* Similar to shadow medium but without the bottom depth.
|
|
100
|
+
* Useful for popovers that drop UP rather than DOWN.
|
|
101
|
+
*/
|
|
102
|
+
var euiShadowFlat = exports.euiShadowFlat = function euiShadowFlat(_ref13) {
|
|
103
|
+
var euiTheme = _ref13.euiTheme,
|
|
104
|
+
colorMode = _ref13.colorMode;
|
|
105
|
+
var _ref14 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
|
|
106
|
+
_color = _ref14.color;
|
|
107
|
+
var color = _color || euiTheme.colors.shadow;
|
|
108
|
+
return "\nbox-shadow:\n 0 0 .8px ".concat((0, _functions.getShadowColor)(color, 0.06, colorMode), ",\n 0 0 2px ").concat((0, _functions.getShadowColor)(color, 0.04, colorMode), ",\n 0 0 5px ").concat((0, _functions.getShadowColor)(color, 0.04, colorMode), ",\n 0 0 17px ").concat((0, _functions.getShadowColor)(color, 0.03, colorMode), ";\n");
|
|
109
|
+
};
|
|
110
|
+
var euiShadow = exports.euiShadow = function euiShadow(euiThemeContext) {
|
|
111
|
+
var size = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'l';
|
|
112
|
+
var _ref15 = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {},
|
|
113
|
+
color = _ref15.color;
|
|
114
|
+
switch (size) {
|
|
115
|
+
case 'xs':
|
|
116
|
+
return euiShadowXSmall(euiThemeContext, {
|
|
117
|
+
color: color
|
|
118
|
+
});
|
|
119
|
+
case 's':
|
|
120
|
+
return euiShadowSmall(euiThemeContext, {
|
|
121
|
+
color: color
|
|
122
|
+
});
|
|
123
|
+
case 'm':
|
|
124
|
+
return euiShadowMedium(euiThemeContext, {
|
|
125
|
+
color: color
|
|
126
|
+
});
|
|
127
|
+
case 'l':
|
|
128
|
+
return euiShadowLarge(euiThemeContext, {
|
|
129
|
+
color: color
|
|
130
|
+
});
|
|
131
|
+
case 'xl':
|
|
132
|
+
return euiShadowXLarge(euiThemeContext, {
|
|
133
|
+
color: color
|
|
134
|
+
});
|
|
135
|
+
default:
|
|
136
|
+
console.warn('Please provide a valid size option to useEuiShadow');
|
|
137
|
+
return '';
|
|
138
|
+
}
|
|
139
|
+
};
|
|
140
|
+
//# sourceMappingURL=shadow.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"shadow.js","names":["_functions","require","euiShadowXSmall","exports","_ref","euiTheme","colorMode","_ref2","arguments","length","undefined","_color","color","colors","shadow","concat","getShadowColor","euiShadowSmall","_ref3","_ref4","euiShadowMedium","_ref5","_ref6","property","euiShadowLarge","_ref7","_ref8","euiShadowXLarge","_ref9","_ref10","reverse","euiSlightShadowHover","_ref11","_ref12","euiShadowFlat","_ref13","_ref14","euiShadow","euiThemeContext","size","_ref15","console","warn"],"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 {\n _EuiThemeShadowSize,\n _EuiThemeShadowCustomColor,\n} from '../variables/shadow';\n\nexport interface EuiShadowCustomColor {\n color?: string;\n}\n\n/**\n * euiSlightShadow\n */\nexport const euiShadowXSmall = (\n { euiTheme, colorMode }: UseEuiTheme,\n { color: _color }: _EuiThemeShadowCustomColor = {}\n) => {\n const color = _color || euiTheme.colors.shadow;\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 }: UseEuiTheme,\n { color: _color }: _EuiThemeShadowCustomColor = {}\n) => {\n const color = _color || euiTheme.colors.shadow;\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 }: UseEuiTheme,\n { color: _color, property }: _EuiThemeShadowCustomColor = {}\n) => {\n const color = _color || euiTheme.colors.shadow;\n\n if (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 }: UseEuiTheme,\n { color: _color }: _EuiThemeShadowCustomColor = {}\n) => {\n const color = _color || euiTheme.colors.shadow;\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 _EuiThemeShadowCustomColor {\n reverse?: boolean;\n}\nexport const euiShadowXLarge = (\n { euiTheme, colorMode }: UseEuiTheme,\n { color: _color, reverse }: EuiShadowXLarge = {}\n) => {\n const color = _color || euiTheme.colors.shadow;\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 }: UseEuiTheme,\n { color: _color }: _EuiThemeShadowCustomColor = {}\n) => {\n const color = _color || euiTheme.colors.shadow;\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 }: UseEuiTheme,\n { color: _color }: _EuiThemeShadowCustomColor = {}\n) => {\n const color = _color || euiTheme.colors.shadow;\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 { color }: _EuiThemeShadowCustomColor = {}\n) => {\n switch (size) {\n case 'xs':\n return euiShadowXSmall(euiThemeContext, { color });\n case 's':\n return euiShadowSmall(euiThemeContext, { color });\n case 'm':\n return euiShadowMedium(euiThemeContext, { color });\n case 'l':\n return euiShadowLarge(euiThemeContext, { color });\n case 'xl':\n return euiShadowXLarge(euiThemeContext, { color });\n\n default:\n console.warn('Please provide a valid size option to useEuiShadow');\n return '';\n }\n};\n"],"mappings":";;;;;;AASA,IAAAA,UAAA,GAAAC,OAAA;AATA;AACA;AACA;AACA;AACA;AACA;AACA;;AAaA;AACA;AACA;AACO,IAAMC,eAAe,GAAAC,OAAA,CAAAD,eAAA,GAAG,SAAlBA,eAAeA,CAAAE,IAAA,EAGvB;EAAA,IAFDC,QAAQ,GAAAD,IAAA,CAARC,QAAQ;IAAEC,SAAS,GAAAF,IAAA,CAATE,SAAS;EAAA,IAAAC,KAAA,GAAAC,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAC2B,CAAC,CAAC;IAAzCG,MAAM,GAAAJ,KAAA,CAAbK,KAAK;EAEP,IAAMA,KAAK,GAAGD,MAAM,IAAIN,QAAQ,CAACQ,MAAM,CAACC,MAAM;EAC9C,uCAAAC,MAAA,CAEc,IAAAC,yBAAc,EAACJ,KAAK,EAAE,IAAI,EAAEN,SAAS,CAAC,uBAAAS,MAAA,CACtC,IAAAC,yBAAc,EAACJ,KAAK,EAAE,IAAI,EAAEN,SAAS,CAAC;AAEtD,CAAC;;AAED;AACA;AACA;AACO,IAAMW,cAAc,GAAAd,OAAA,CAAAc,cAAA,GAAG,SAAjBA,cAAcA,CAAAC,KAAA,EAGtB;EAAA,IAFDb,QAAQ,GAAAa,KAAA,CAARb,QAAQ;IAAEC,SAAS,GAAAY,KAAA,CAATZ,SAAS;EAAA,IAAAa,KAAA,GAAAX,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAC2B,CAAC,CAAC;IAAzCG,MAAM,GAAAQ,KAAA,CAAbP,KAAK;EAEP,IAAMA,KAAK,GAAGD,MAAM,IAAIN,QAAQ,CAACQ,MAAM,CAACC,MAAM;EAC9C,wCAAAC,MAAA,CAE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ACkB,eAAe,EAAE;QAAE1B,KAAK,EAALA;MAAM,CAAC,CAAC;IACpD,KAAK,GAAG;MACN,OAAOY,cAAc,CAACc,eAAe,EAAE;QAAE1B,KAAK,EAALA;MAAM,CAAC,CAAC;IACnD,KAAK,IAAI;MACP,OAAOe,eAAe,CAACW,eAAe,EAAE;QAAE1B,KAAK,EAALA;MAAM,CAAC,CAAC;IAEpD;MACE6B,OAAO,CAACC,IAAI,CAAC,oDAAoD,CAAC;MAClE,OAAO,EAAE;EACb;AACF,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.breakpoint = void 0;
|
|
7
|
+
/*
|
|
8
|
+
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
9
|
+
* or more contributor license agreements. Licensed under the Elastic License
|
|
10
|
+
* 2.0 and the Server Side Public License, v 1; you may not use this file except
|
|
11
|
+
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
|
12
|
+
* Side Public License, v 1.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
var breakpoint = exports.breakpoint = {
|
|
16
|
+
xl: 1200,
|
|
17
|
+
l: 992,
|
|
18
|
+
m: 768,
|
|
19
|
+
s: 575,
|
|
20
|
+
xs: 0
|
|
21
|
+
};
|
|
22
|
+
//# sourceMappingURL=_breakpoint.js.map
|
|
@@ -0,0 +1 @@
|
|
|
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 +1 @@
|
|
|
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,
|
|
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;;OAEG;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 +1 @@
|
|
|
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 '
|
|
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: 6px\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 */\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,4 +1,4 @@
|
|
|
1
|
-
import { ColorModeSwitch, StrictColorModeSwitch } from '
|
|
1
|
+
import { ColorModeSwitch, StrictColorModeSwitch } from '../../services/theme/types';
|
|
2
2
|
export declare type _EuiThemeButtonColors = {
|
|
3
3
|
backgroundPrimary: ColorModeSwitch;
|
|
4
4
|
backgroundAccent: ColorModeSwitch;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"buttons.d.ts","sourceRoot":"","sources":["../../../../src/global_styling/variables/buttons.ts"],"names":[],"mappings":"AAQA,OAAO,
|
|
1
|
+
{"version":3,"file":"buttons.d.ts","sourceRoot":"","sources":["../../../../src/global_styling/variables/buttons.ts"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AE,eAAe,CAAC;IACxC,sBAAsB,EAAE,eAAe,CAAC;IACxC,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 {
|
|
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,4 +1,4 @@
|
|
|
1
|
-
import { ColorModeSwitch, StrictColorModeSwitch } from '
|
|
1
|
+
import { ColorModeSwitch, StrictColorModeSwitch } from '../../services/theme/types';
|
|
2
2
|
/**
|
|
3
3
|
* Top 5 colors
|
|
4
4
|
*/
|
|
@@ -220,6 +220,10 @@ export declare type _EuiThemeBorderColors = {
|
|
|
220
220
|
borderBasePlain: ColorModeSwitch;
|
|
221
221
|
borderBaseSubdued: ColorModeSwitch;
|
|
222
222
|
borderBaseDisabled: ColorModeSwitch;
|
|
223
|
+
/**
|
|
224
|
+
* Border used for floating elements on dark mode (e.g. popovers or tooltips)
|
|
225
|
+
* to increase the contrast with the background.
|
|
226
|
+
*/
|
|
223
227
|
borderBaseFloating: ColorModeSwitch;
|
|
224
228
|
borderBaseFormsColorSwatch: ColorModeSwitch;
|
|
225
229
|
borderBaseFormsControl: ColorModeSwitch;
|
|
@@ -241,6 +245,26 @@ export declare type _EuiThemeVisColors = {
|
|
|
241
245
|
euiColorVis7: string;
|
|
242
246
|
euiColorVis8: string;
|
|
243
247
|
euiColorVis9: string;
|
|
248
|
+
/** @deprecated - temp token; used only during theme migration */
|
|
249
|
+
euiColorVisBehindText0: string;
|
|
250
|
+
/** @deprecated - temp token; used only during theme migration */
|
|
251
|
+
euiColorVisBehindText1: string;
|
|
252
|
+
/** @deprecated - temp token; used only during theme migration */
|
|
253
|
+
euiColorVisBehindText2: string;
|
|
254
|
+
/** @deprecated - temp token; used only during theme migration */
|
|
255
|
+
euiColorVisBehindText3: string;
|
|
256
|
+
/** @deprecated - temp token; used only during theme migration */
|
|
257
|
+
euiColorVisBehindText4: string;
|
|
258
|
+
/** @deprecated - temp token; used only during theme migration */
|
|
259
|
+
euiColorVisBehindText5: string;
|
|
260
|
+
/** @deprecated - temp token; used only during theme migration */
|
|
261
|
+
euiColorVisBehindText6: string;
|
|
262
|
+
/** @deprecated - temp token; used only during theme migration */
|
|
263
|
+
euiColorVisBehindText7: string;
|
|
264
|
+
/** @deprecated - temp token; used only during theme migration */
|
|
265
|
+
euiColorVisBehindText8: string;
|
|
266
|
+
/** @deprecated - temp token; used only during theme migration */
|
|
267
|
+
euiColorVisBehindText9: string;
|
|
244
268
|
euiColorVisAsTextLight0: string;
|
|
245
269
|
euiColorVisAsTextLight1: string;
|
|
246
270
|
euiColorVisAsTextLight2: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"colors.d.ts","sourceRoot":"","sources":["../../../../src/global_styling/variables/colors.ts"],"names":[],"mappings":"AAQA,OAAO,
|
|
1
|
+
{"version":3,"file":"colors.d.ts","sourceRoot":"","sources":["../../../../src/global_styling/variables/colors.ts"],"names":[],"mappings":"AAQA,OAAO,EACL,eAAe,EACf,qBAAqB,EACtB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