@elastic/eui-theme-common 0.0.1
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/LICENSE.txt +6 -0
- package/README.md +11 -0
- package/lib/cjs/.tsbuildinfo +1 -0
- package/lib/cjs/global_styling/functions/index.d.ts +2 -0
- package/lib/cjs/global_styling/functions/index.d.ts.map +1 -0
- package/lib/cjs/global_styling/functions/index.js +22 -0
- package/lib/cjs/global_styling/functions/index.js.map +1 -0
- package/lib/cjs/global_styling/functions/size.d.ts +13 -0
- package/lib/cjs/global_styling/functions/size.d.ts.map +1 -0
- package/lib/cjs/global_styling/functions/size.js +42 -0
- package/lib/cjs/global_styling/functions/size.js.map +1 -0
- package/lib/cjs/global_styling/index.d.ts +4 -0
- package/lib/cjs/global_styling/index.d.ts.map +1 -0
- package/lib/cjs/global_styling/index.js +44 -0
- package/lib/cjs/global_styling/index.js.map +1 -0
- package/lib/cjs/global_styling/types.d.ts +66 -0
- package/lib/cjs/global_styling/types.d.ts.map +1 -0
- package/lib/cjs/global_styling/types.js +21 -0
- package/lib/cjs/global_styling/types.js.map +1 -0
- package/lib/cjs/global_styling/variables/_colors_vis.d.ts +13 -0
- package/lib/cjs/global_styling/variables/_colors_vis.d.ts.map +1 -0
- package/lib/cjs/global_styling/variables/_colors_vis.js +69 -0
- package/lib/cjs/global_styling/variables/_colors_vis.js.map +1 -0
- package/lib/cjs/global_styling/variables/animations.d.ts +36 -0
- package/lib/cjs/global_styling/variables/animations.d.ts.map +1 -0
- package/lib/cjs/global_styling/variables/animations.js +38 -0
- package/lib/cjs/global_styling/variables/animations.js.map +1 -0
- package/lib/cjs/global_styling/variables/borders.d.ts +61 -0
- package/lib/cjs/global_styling/variables/borders.d.ts.map +1 -0
- package/lib/cjs/global_styling/variables/borders.js +7 -0
- package/lib/cjs/global_styling/variables/borders.js.map +1 -0
- package/lib/cjs/global_styling/variables/breakpoint.d.ts +15 -0
- package/lib/cjs/global_styling/variables/breakpoint.d.ts.map +1 -0
- package/lib/cjs/global_styling/variables/breakpoint.js +23 -0
- package/lib/cjs/global_styling/variables/breakpoint.js.map +1 -0
- package/lib/cjs/global_styling/variables/buttons.d.ts +44 -0
- package/lib/cjs/global_styling/variables/buttons.d.ts.map +1 -0
- package/lib/cjs/global_styling/variables/buttons.js +7 -0
- package/lib/cjs/global_styling/variables/buttons.js.map +1 -0
- package/lib/cjs/global_styling/variables/colors.d.ts +245 -0
- package/lib/cjs/global_styling/variables/colors.d.ts.map +1 -0
- package/lib/cjs/global_styling/variables/colors.js +7 -0
- package/lib/cjs/global_styling/variables/colors.js.map +1 -0
- package/lib/cjs/global_styling/variables/components.d.ts +69 -0
- package/lib/cjs/global_styling/variables/components.d.ts.map +1 -0
- package/lib/cjs/global_styling/variables/components.js +7 -0
- package/lib/cjs/global_styling/variables/components.js.map +1 -0
- package/lib/cjs/global_styling/variables/forms.d.ts +20 -0
- package/lib/cjs/global_styling/variables/forms.d.ts.map +1 -0
- package/lib/cjs/global_styling/variables/forms.js +7 -0
- package/lib/cjs/global_styling/variables/forms.js.map +1 -0
- package/lib/cjs/global_styling/variables/index.d.ts +14 -0
- package/lib/cjs/global_styling/variables/index.d.ts.map +1 -0
- package/lib/cjs/global_styling/variables/index.js +154 -0
- package/lib/cjs/global_styling/variables/index.js.map +1 -0
- package/lib/cjs/global_styling/variables/levels.d.ts +39 -0
- package/lib/cjs/global_styling/variables/levels.d.ts.map +1 -0
- package/lib/cjs/global_styling/variables/levels.js +33 -0
- package/lib/cjs/global_styling/variables/levels.js.map +1 -0
- package/lib/cjs/global_styling/variables/shadow.d.ts +11 -0
- package/lib/cjs/global_styling/variables/shadow.d.ts.map +1 -0
- package/lib/cjs/global_styling/variables/shadow.js +27 -0
- package/lib/cjs/global_styling/variables/shadow.js.map +1 -0
- package/lib/cjs/global_styling/variables/size.d.ts +26 -0
- package/lib/cjs/global_styling/variables/size.d.ts.map +1 -0
- package/lib/cjs/global_styling/variables/size.js +17 -0
- package/lib/cjs/global_styling/variables/size.js.map +1 -0
- package/lib/cjs/global_styling/variables/states.d.ts +25 -0
- package/lib/cjs/global_styling/variables/states.d.ts.map +1 -0
- package/lib/cjs/global_styling/variables/states.js +7 -0
- package/lib/cjs/global_styling/variables/states.js.map +1 -0
- package/lib/cjs/global_styling/variables/typography.d.ts +93 -0
- package/lib/cjs/global_styling/variables/typography.d.ts.map +1 -0
- package/lib/cjs/global_styling/variables/typography.js +48 -0
- package/lib/cjs/global_styling/variables/typography.js.map +1 -0
- package/lib/cjs/index.d.ts +4 -0
- package/lib/cjs/index.d.ts.map +1 -0
- package/lib/cjs/index.js +44 -0
- package/lib/cjs/index.js.map +1 -0
- package/lib/cjs/types.d.ts +33 -0
- package/lib/cjs/types.d.ts.map +1 -0
- package/lib/cjs/types.js +7 -0
- package/lib/cjs/types.js.map +1 -0
- package/lib/cjs/utils.d.ts +104 -0
- package/lib/cjs/utils.d.ts.map +1 -0
- package/lib/cjs/utils.js +382 -0
- package/lib/cjs/utils.js.map +1 -0
- package/lib/cjs/utils.test.js +411 -0
- package/lib/cjs/utils.test.js.map +1 -0
- package/lib/esm/.tsbuildinfo +1 -0
- package/lib/esm/global_styling/functions/index.d.ts +1 -0
- package/lib/esm/global_styling/functions/index.js +9 -0
- package/lib/esm/global_styling/functions/index.js.map +1 -0
- package/lib/esm/global_styling/functions/size.d.ts +12 -0
- package/lib/esm/global_styling/functions/size.js +21 -0
- package/lib/esm/global_styling/functions/size.js.map +1 -0
- package/lib/esm/global_styling/index.d.ts +3 -0
- package/lib/esm/global_styling/index.js +11 -0
- package/lib/esm/global_styling/index.js.map +1 -0
- package/lib/esm/global_styling/types.d.ts +65 -0
- package/lib/esm/global_styling/types.js +13 -0
- package/lib/esm/global_styling/types.js.map +1 -0
- package/lib/esm/global_styling/variables/_colors_vis.d.ts +12 -0
- package/lib/esm/global_styling/variables/_colors_vis.js +60 -0
- package/lib/esm/global_styling/variables/_colors_vis.js.map +1 -0
- package/lib/esm/global_styling/variables/animations.d.ts +35 -0
- package/lib/esm/global_styling/variables/animations.js +25 -0
- package/lib/esm/global_styling/variables/animations.js.map +1 -0
- package/lib/esm/global_styling/variables/borders.d.ts +60 -0
- package/lib/esm/global_styling/variables/borders.js +9 -0
- package/lib/esm/global_styling/variables/borders.js.map +1 -0
- package/lib/esm/global_styling/variables/breakpoint.d.ts +14 -0
- package/lib/esm/global_styling/variables/breakpoint.js +9 -0
- package/lib/esm/global_styling/variables/breakpoint.js.map +1 -0
- package/lib/esm/global_styling/variables/buttons.d.ts +43 -0
- package/lib/esm/global_styling/variables/buttons.js +9 -0
- package/lib/esm/global_styling/variables/buttons.js.map +1 -0
- package/lib/esm/global_styling/variables/colors.d.ts +244 -0
- package/lib/esm/global_styling/variables/colors.js +9 -0
- package/lib/esm/global_styling/variables/colors.js.map +1 -0
- package/lib/esm/global_styling/variables/components.d.ts +68 -0
- package/lib/esm/global_styling/variables/components.js +9 -0
- package/lib/esm/global_styling/variables/components.js.map +1 -0
- package/lib/esm/global_styling/variables/forms.d.ts +19 -0
- package/lib/esm/global_styling/variables/forms.js +9 -0
- package/lib/esm/global_styling/variables/forms.js.map +1 -0
- package/lib/esm/global_styling/variables/index.d.ts +13 -0
- package/lib/esm/global_styling/variables/index.js +21 -0
- package/lib/esm/global_styling/variables/index.js.map +1 -0
- package/lib/esm/global_styling/variables/levels.d.ts +38 -0
- package/lib/esm/global_styling/variables/levels.js +34 -0
- package/lib/esm/global_styling/variables/levels.js.map +1 -0
- package/lib/esm/global_styling/variables/shadow.d.ts +10 -0
- package/lib/esm/global_styling/variables/shadow.js +19 -0
- package/lib/esm/global_styling/variables/shadow.js.map +1 -0
- package/lib/esm/global_styling/variables/size.d.ts +25 -0
- package/lib/esm/global_styling/variables/size.js +20 -0
- package/lib/esm/global_styling/variables/size.js.map +1 -0
- package/lib/esm/global_styling/variables/states.d.ts +24 -0
- package/lib/esm/global_styling/variables/states.js +9 -0
- package/lib/esm/global_styling/variables/states.js.map +1 -0
- package/lib/esm/global_styling/variables/typography.d.ts +92 -0
- package/lib/esm/global_styling/variables/typography.js +35 -0
- package/lib/esm/global_styling/variables/typography.js.map +1 -0
- package/lib/esm/index.d.ts +3 -0
- package/lib/esm/index.js +11 -0
- package/lib/esm/index.js.map +1 -0
- package/lib/esm/types.d.ts +32 -0
- package/lib/esm/types.js +9 -0
- package/lib/esm/types.js.map +1 -0
- package/lib/esm/utils.d.ts +103 -0
- package/lib/esm/utils.js +300 -0
- package/lib/esm/utils.js.map +1 -0
- package/lib/esm/utils.test.d.ts +1 -0
- package/lib/esm/utils.test.js +233 -0
- package/lib/esm/utils.test.js.map +1 -0
- package/licenses/ELASTIC-LICENSE-2.0.md +93 -0
- package/licenses/SSPL-LICENSE.md +557 -0
- package/package.json +78 -0
- package/src/global_styling/functions/_colors.scss +138 -0
- package/src/global_styling/functions/_index.scss +5 -0
- package/src/global_styling/functions/_math.scss +1 -0
- package/src/global_styling/functions/_math_pow.scss +82 -0
- package/src/global_styling/index.scss +18 -0
- package/src/global_styling/mixins/_button.scss +149 -0
- package/src/global_styling/mixins/_form.scss +273 -0
- package/src/global_styling/mixins/_helpers.scss +126 -0
- package/src/global_styling/mixins/_index.scss +14 -0
- package/src/global_styling/mixins/_link.scss +11 -0
- package/src/global_styling/mixins/_loading.scss +6 -0
- package/src/global_styling/mixins/_panel.scss +55 -0
- package/src/global_styling/mixins/_range.scss +62 -0
- package/src/global_styling/mixins/_responsive.scss +44 -0
- package/src/global_styling/mixins/_shadow.scss +108 -0
- package/src/global_styling/mixins/_size.scss +4 -0
- package/src/global_styling/mixins/_states.scss +50 -0
- package/src/global_styling/mixins/_tool_tip.scss +25 -0
- package/src/global_styling/mixins/_typography.scss +167 -0
- package/src/global_styling/react_date_picker/_date_picker.scss +772 -0
- package/src/global_styling/react_date_picker/_index.scss +2 -0
- package/src/global_styling/react_date_picker/_variables.scss +1 -0
- package/src/global_styling/utility/_animations.scss +55 -0
- package/src/global_styling/utility/_index.scss +1 -0
- package/src/global_styling/variables/_animations.scss +13 -0
- package/src/global_styling/variables/_borders.scss +11 -0
- package/src/global_styling/variables/_buttons.scss +18 -0
- package/src/global_styling/variables/_colors_vis.scss +72 -0
- package/src/global_styling/variables/_font_weight.scss +10 -0
- package/src/global_styling/variables/_form.scss +8 -0
- package/src/global_styling/variables/_index.scss +23 -0
- package/src/global_styling/variables/_responsive.scss +9 -0
- package/src/global_styling/variables/_shadows.scss +2 -0
- package/src/global_styling/variables/_size.scss +15 -0
- package/src/global_styling/variables/_states.scss +14 -0
- package/src/global_styling/variables/_typography.scss +75 -0
- package/src/global_styling/variables/_z_index.scss +34 -0
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { ColorModeSwitch } from '../types';
|
|
2
|
+
export declare type _EuiThemeFormColors = {
|
|
3
|
+
background: ColorModeSwitch;
|
|
4
|
+
backgroundDisabled: ColorModeSwitch;
|
|
5
|
+
backgroundReadOnly: ColorModeSwitch;
|
|
6
|
+
backgroundFocused: ColorModeSwitch;
|
|
7
|
+
backgroundAutofilled: ColorModeSwitch;
|
|
8
|
+
prependBackground: ColorModeSwitch;
|
|
9
|
+
border: ColorModeSwitch;
|
|
10
|
+
borderAutofilled: ColorModeSwitch;
|
|
11
|
+
controlBorder: ColorModeSwitch;
|
|
12
|
+
controlBorderSelected: ColorModeSwitch;
|
|
13
|
+
controlBorderDisabled: ColorModeSwitch;
|
|
14
|
+
controlBackgroundUnselected: ColorModeSwitch;
|
|
15
|
+
controlBackgroundDisabled: ColorModeSwitch;
|
|
16
|
+
colorHasPlaceholder: ColorModeSwitch;
|
|
17
|
+
colorDisabled: ColorModeSwitch;
|
|
18
|
+
iconDisabled: ColorModeSwitch;
|
|
19
|
+
};
|
|
20
|
+
//# sourceMappingURL=forms.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"forms.d.ts","sourceRoot":"","sources":["../../../../src/global_styling/variables/forms.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAE3C,oBAAY,mBAAmB,GAAG;IAChC,UAAU,EAAE,eAAe,CAAC;IAC5B,kBAAkB,EAAE,eAAe,CAAC;IACpC,kBAAkB,EAAE,eAAe,CAAC;IACpC,iBAAiB,EAAE,eAAe,CAAC;IACnC,oBAAoB,EAAE,eAAe,CAAC;IACtC,iBAAiB,EAAE,eAAe,CAAC;IACnC,MAAM,EAAE,eAAe,CAAC;IACxB,gBAAgB,EAAE,eAAe,CAAC;IAClC,aAAa,EAAE,eAAe,CAAC;IAC/B,qBAAqB,EAAE,eAAe,CAAC;IACvC,qBAAqB,EAAE,eAAe,CAAC;IACvC,2BAA2B,EAAE,eAAe,CAAC;IAC7C,yBAAyB,EAAE,eAAe,CAAC;IAC3C,mBAAmB,EAAE,eAAe,CAAC;IACrC,aAAa,EAAE,eAAe,CAAC;IAC/B,YAAY,EAAE,eAAe,CAAC;CAC/B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"forms.js","names":[],"sources":["../../../../src/global_styling/variables/forms.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 { ColorModeSwitch } from '../types';\n\nexport type _EuiThemeFormColors = {\n background: ColorModeSwitch;\n backgroundDisabled: ColorModeSwitch;\n backgroundReadOnly: ColorModeSwitch;\n backgroundFocused: ColorModeSwitch;\n backgroundAutofilled: ColorModeSwitch;\n prependBackground: ColorModeSwitch;\n border: ColorModeSwitch;\n borderAutofilled: ColorModeSwitch;\n controlBorder: ColorModeSwitch;\n controlBorderSelected: ColorModeSwitch;\n controlBorderDisabled: ColorModeSwitch;\n controlBackgroundUnselected: ColorModeSwitch;\n controlBackgroundDisabled: ColorModeSwitch;\n colorHasPlaceholder: ColorModeSwitch;\n colorDisabled: ColorModeSwitch;\n iconDisabled: ColorModeSwitch;\n};\n"],"mappings":"","ignoreList":[]}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export * from './animations';
|
|
2
|
+
export * from './borders';
|
|
3
|
+
export * from './breakpoint';
|
|
4
|
+
export * from './colors';
|
|
5
|
+
export * from './_colors_vis';
|
|
6
|
+
export * from './levels';
|
|
7
|
+
export * from './size';
|
|
8
|
+
export * from './shadow';
|
|
9
|
+
export * from './states';
|
|
10
|
+
export * from './typography';
|
|
11
|
+
export * from './buttons';
|
|
12
|
+
export * from './forms';
|
|
13
|
+
export * from './components';
|
|
14
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/global_styling/variables/index.ts"],"names":[],"mappings":"AAQA,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC;AACzB,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC"}
|
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
require("core-js/modules/es.array.for-each.js");
|
|
4
|
+
require("core-js/modules/es.object.define-property.js");
|
|
5
|
+
require("core-js/modules/es.object.keys.js");
|
|
6
|
+
require("core-js/modules/es.object.to-string.js");
|
|
7
|
+
require("core-js/modules/web.dom-collections.for-each.js");
|
|
8
|
+
Object.defineProperty(exports, "__esModule", {
|
|
9
|
+
value: true
|
|
10
|
+
});
|
|
11
|
+
var _animations = require("./animations");
|
|
12
|
+
Object.keys(_animations).forEach(function (key) {
|
|
13
|
+
if (key === "default" || key === "__esModule") return;
|
|
14
|
+
if (key in exports && exports[key] === _animations[key]) return;
|
|
15
|
+
Object.defineProperty(exports, key, {
|
|
16
|
+
enumerable: true,
|
|
17
|
+
get: function get() {
|
|
18
|
+
return _animations[key];
|
|
19
|
+
}
|
|
20
|
+
});
|
|
21
|
+
});
|
|
22
|
+
var _borders = require("./borders");
|
|
23
|
+
Object.keys(_borders).forEach(function (key) {
|
|
24
|
+
if (key === "default" || key === "__esModule") return;
|
|
25
|
+
if (key in exports && exports[key] === _borders[key]) return;
|
|
26
|
+
Object.defineProperty(exports, key, {
|
|
27
|
+
enumerable: true,
|
|
28
|
+
get: function get() {
|
|
29
|
+
return _borders[key];
|
|
30
|
+
}
|
|
31
|
+
});
|
|
32
|
+
});
|
|
33
|
+
var _breakpoint = require("./breakpoint");
|
|
34
|
+
Object.keys(_breakpoint).forEach(function (key) {
|
|
35
|
+
if (key === "default" || key === "__esModule") return;
|
|
36
|
+
if (key in exports && exports[key] === _breakpoint[key]) return;
|
|
37
|
+
Object.defineProperty(exports, key, {
|
|
38
|
+
enumerable: true,
|
|
39
|
+
get: function get() {
|
|
40
|
+
return _breakpoint[key];
|
|
41
|
+
}
|
|
42
|
+
});
|
|
43
|
+
});
|
|
44
|
+
var _colors = require("./colors");
|
|
45
|
+
Object.keys(_colors).forEach(function (key) {
|
|
46
|
+
if (key === "default" || key === "__esModule") return;
|
|
47
|
+
if (key in exports && exports[key] === _colors[key]) return;
|
|
48
|
+
Object.defineProperty(exports, key, {
|
|
49
|
+
enumerable: true,
|
|
50
|
+
get: function get() {
|
|
51
|
+
return _colors[key];
|
|
52
|
+
}
|
|
53
|
+
});
|
|
54
|
+
});
|
|
55
|
+
var _colors_vis = require("./_colors_vis");
|
|
56
|
+
Object.keys(_colors_vis).forEach(function (key) {
|
|
57
|
+
if (key === "default" || key === "__esModule") return;
|
|
58
|
+
if (key in exports && exports[key] === _colors_vis[key]) return;
|
|
59
|
+
Object.defineProperty(exports, key, {
|
|
60
|
+
enumerable: true,
|
|
61
|
+
get: function get() {
|
|
62
|
+
return _colors_vis[key];
|
|
63
|
+
}
|
|
64
|
+
});
|
|
65
|
+
});
|
|
66
|
+
var _levels = require("./levels");
|
|
67
|
+
Object.keys(_levels).forEach(function (key) {
|
|
68
|
+
if (key === "default" || key === "__esModule") return;
|
|
69
|
+
if (key in exports && exports[key] === _levels[key]) return;
|
|
70
|
+
Object.defineProperty(exports, key, {
|
|
71
|
+
enumerable: true,
|
|
72
|
+
get: function get() {
|
|
73
|
+
return _levels[key];
|
|
74
|
+
}
|
|
75
|
+
});
|
|
76
|
+
});
|
|
77
|
+
var _size = require("./size");
|
|
78
|
+
Object.keys(_size).forEach(function (key) {
|
|
79
|
+
if (key === "default" || key === "__esModule") return;
|
|
80
|
+
if (key in exports && exports[key] === _size[key]) return;
|
|
81
|
+
Object.defineProperty(exports, key, {
|
|
82
|
+
enumerable: true,
|
|
83
|
+
get: function get() {
|
|
84
|
+
return _size[key];
|
|
85
|
+
}
|
|
86
|
+
});
|
|
87
|
+
});
|
|
88
|
+
var _shadow = require("./shadow");
|
|
89
|
+
Object.keys(_shadow).forEach(function (key) {
|
|
90
|
+
if (key === "default" || key === "__esModule") return;
|
|
91
|
+
if (key in exports && exports[key] === _shadow[key]) return;
|
|
92
|
+
Object.defineProperty(exports, key, {
|
|
93
|
+
enumerable: true,
|
|
94
|
+
get: function get() {
|
|
95
|
+
return _shadow[key];
|
|
96
|
+
}
|
|
97
|
+
});
|
|
98
|
+
});
|
|
99
|
+
var _states = require("./states");
|
|
100
|
+
Object.keys(_states).forEach(function (key) {
|
|
101
|
+
if (key === "default" || key === "__esModule") return;
|
|
102
|
+
if (key in exports && exports[key] === _states[key]) return;
|
|
103
|
+
Object.defineProperty(exports, key, {
|
|
104
|
+
enumerable: true,
|
|
105
|
+
get: function get() {
|
|
106
|
+
return _states[key];
|
|
107
|
+
}
|
|
108
|
+
});
|
|
109
|
+
});
|
|
110
|
+
var _typography = require("./typography");
|
|
111
|
+
Object.keys(_typography).forEach(function (key) {
|
|
112
|
+
if (key === "default" || key === "__esModule") return;
|
|
113
|
+
if (key in exports && exports[key] === _typography[key]) return;
|
|
114
|
+
Object.defineProperty(exports, key, {
|
|
115
|
+
enumerable: true,
|
|
116
|
+
get: function get() {
|
|
117
|
+
return _typography[key];
|
|
118
|
+
}
|
|
119
|
+
});
|
|
120
|
+
});
|
|
121
|
+
var _buttons = require("./buttons");
|
|
122
|
+
Object.keys(_buttons).forEach(function (key) {
|
|
123
|
+
if (key === "default" || key === "__esModule") return;
|
|
124
|
+
if (key in exports && exports[key] === _buttons[key]) return;
|
|
125
|
+
Object.defineProperty(exports, key, {
|
|
126
|
+
enumerable: true,
|
|
127
|
+
get: function get() {
|
|
128
|
+
return _buttons[key];
|
|
129
|
+
}
|
|
130
|
+
});
|
|
131
|
+
});
|
|
132
|
+
var _forms = require("./forms");
|
|
133
|
+
Object.keys(_forms).forEach(function (key) {
|
|
134
|
+
if (key === "default" || key === "__esModule") return;
|
|
135
|
+
if (key in exports && exports[key] === _forms[key]) return;
|
|
136
|
+
Object.defineProperty(exports, key, {
|
|
137
|
+
enumerable: true,
|
|
138
|
+
get: function get() {
|
|
139
|
+
return _forms[key];
|
|
140
|
+
}
|
|
141
|
+
});
|
|
142
|
+
});
|
|
143
|
+
var _components = require("./components");
|
|
144
|
+
Object.keys(_components).forEach(function (key) {
|
|
145
|
+
if (key === "default" || key === "__esModule") return;
|
|
146
|
+
if (key in exports && exports[key] === _components[key]) return;
|
|
147
|
+
Object.defineProperty(exports, key, {
|
|
148
|
+
enumerable: true,
|
|
149
|
+
get: function get() {
|
|
150
|
+
return _components[key];
|
|
151
|
+
}
|
|
152
|
+
});
|
|
153
|
+
});
|
|
154
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":["_animations","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get","_borders","_breakpoint","_colors","_colors_vis","_levels","_size","_shadow","_states","_typography","_buttons","_forms","_components"],"sources":["../../../../src/global_styling/variables/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 './animations';\nexport * from './borders';\nexport * from './breakpoint';\nexport * from './colors';\nexport * from './_colors_vis';\nexport * from './levels';\nexport * from './size';\nexport * from './shadow';\nexport * from './states';\nexport * from './typography';\nexport * from './buttons';\nexport * from './forms';\nexport * from './components';\n"],"mappings":";;;;;;;;;;AAQA,IAAAA,WAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,WAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAL,WAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,IAAA;MAAA,OAAAT,WAAA,CAAAK,GAAA;IAAA;EAAA;AAAA;AACA,IAAAK,QAAA,GAAAT,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAO,QAAA,EAAAN,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAK,QAAA,CAAAL,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,IAAA;MAAA,OAAAC,QAAA,CAAAL,GAAA;IAAA;EAAA;AAAA;AACA,IAAAM,WAAA,GAAAV,OAAA;AAAAC,MAAA,CAAAC,IAAA,C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,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAgB,WAAA,CAAAhB,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,IAAA;MAAA,OAAAY,WAAA,CAAAhB,GAAA;IAAA;EAAA;AAAA","ignoreList":[]}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { CSSProperties } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Z-Index
|
|
4
|
+
*
|
|
5
|
+
* Remember that z-index is relative to parent and based on the stacking context.
|
|
6
|
+
* z-indexes only compete against other z-indexes when they exist as children of
|
|
7
|
+
* that shared parent.
|
|
8
|
+
*
|
|
9
|
+
* That means a popover with a settings of 2, will still show above a modal
|
|
10
|
+
* with a setting of 100, if it is within that modal and not besides it.
|
|
11
|
+
*
|
|
12
|
+
* Generally that means it's a good idea to consider things added to this file
|
|
13
|
+
* as competitive only as siblings.
|
|
14
|
+
*
|
|
15
|
+
* https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Positioning/Understanding_z_index/The_stacking_context
|
|
16
|
+
*/
|
|
17
|
+
export declare const EuiThemeLevels: readonly ["toast", "modal", "mask", "navigation", "menu", "header", "flyout", "maskBelowHeader", "content"];
|
|
18
|
+
export declare type _EuiThemeLevel = (typeof EuiThemeLevels)[number];
|
|
19
|
+
export declare type _EuiThemeLevels = {
|
|
20
|
+
/** - Default value: 9000 */
|
|
21
|
+
toast: NonNullable<CSSProperties['zIndex']>;
|
|
22
|
+
/** - Default value: 8000 */
|
|
23
|
+
modal: NonNullable<CSSProperties['zIndex']>;
|
|
24
|
+
/** - Default value: 6000 */
|
|
25
|
+
mask: NonNullable<CSSProperties['zIndex']>;
|
|
26
|
+
/** - Default value: 6000 */
|
|
27
|
+
navigation: NonNullable<CSSProperties['zIndex']>;
|
|
28
|
+
/** - Default value: 2000 */
|
|
29
|
+
menu: NonNullable<CSSProperties['zIndex']>;
|
|
30
|
+
/** - Default value: 1000 */
|
|
31
|
+
header: NonNullable<CSSProperties['zIndex']>;
|
|
32
|
+
/** - Default value: 1000 */
|
|
33
|
+
flyout: NonNullable<CSSProperties['zIndex']>;
|
|
34
|
+
/** - Default value: 1000 */
|
|
35
|
+
maskBelowHeader: NonNullable<CSSProperties['zIndex']>;
|
|
36
|
+
/** - Default value: 0 */
|
|
37
|
+
content: NonNullable<CSSProperties['zIndex']>;
|
|
38
|
+
};
|
|
39
|
+
//# sourceMappingURL=levels.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"levels.d.ts","sourceRoot":"","sources":["../../../../src/global_styling/variables/levels.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAEtC;;;;;;;;;;;;;;GAcG;AAEH,eAAO,MAAM,cAAc,6GAUjB,CAAC;AAEX,oBAAY,cAAc,GAAG,CAAC,OAAO,cAAc,CAAC,CAAC,MAAM,CAAC,CAAC;AAE7D,oBAAY,eAAe,GAAG;IAC5B,4BAA4B;IAC5B,KAAK,EAAE,WAAW,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC,CAAC;IAC5C,4BAA4B;IAC5B,KAAK,EAAE,WAAW,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC,CAAC;IAC5C,4BAA4B;IAC5B,IAAI,EAAE,WAAW,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC,CAAC;IAC3C,4BAA4B;IAC5B,UAAU,EAAE,WAAW,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC,CAAC;IACjD,4BAA4B;IAC5B,IAAI,EAAE,WAAW,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC,CAAC;IAC3C,4BAA4B;IAC5B,MAAM,EAAE,WAAW,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC,CAAC;IAC7C,4BAA4B;IAC5B,MAAM,EAAE,WAAW,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC,CAAC;IAC7C,4BAA4B;IAC5B,eAAe,EAAE,WAAW,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC,CAAC;IACtD,yBAAyB;IACzB,OAAO,EAAE,WAAW,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC,CAAC;CAC/C,CAAC"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
require("core-js/modules/es.object.define-property.js");
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.EuiThemeLevels = void 0;
|
|
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
|
+
* Z-Index
|
|
18
|
+
*
|
|
19
|
+
* Remember that z-index is relative to parent and based on the stacking context.
|
|
20
|
+
* z-indexes only compete against other z-indexes when they exist as children of
|
|
21
|
+
* that shared parent.
|
|
22
|
+
*
|
|
23
|
+
* That means a popover with a settings of 2, will still show above a modal
|
|
24
|
+
* with a setting of 100, if it is within that modal and not besides it.
|
|
25
|
+
*
|
|
26
|
+
* Generally that means it's a good idea to consider things added to this file
|
|
27
|
+
* as competitive only as siblings.
|
|
28
|
+
*
|
|
29
|
+
* https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Positioning/Understanding_z_index/The_stacking_context
|
|
30
|
+
*/
|
|
31
|
+
|
|
32
|
+
var EuiThemeLevels = exports.EuiThemeLevels = ['toast', 'modal', 'mask', 'navigation', 'menu', 'header', 'flyout', 'maskBelowHeader', 'content'];
|
|
33
|
+
//# sourceMappingURL=levels.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"levels.js","names":["EuiThemeLevels","exports"],"sources":["../../../../src/global_styling/variables/levels.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';\n\n/**\n * Z-Index\n *\n * Remember that z-index is relative to parent and based on the stacking context.\n * z-indexes only compete against other z-indexes when they exist as children of\n * that shared parent.\n *\n * That means a popover with a settings of 2, will still show above a modal\n * with a setting of 100, if it is within that modal and not besides it.\n *\n * Generally that means it's a good idea to consider things added to this file\n * as competitive only as siblings.\n *\n * https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Positioning/Understanding_z_index/The_stacking_context\n */\n\nexport const EuiThemeLevels = [\n 'toast',\n 'modal',\n 'mask',\n 'navigation',\n 'menu',\n 'header',\n 'flyout',\n 'maskBelowHeader',\n 'content',\n] as const;\n\nexport type _EuiThemeLevel = (typeof EuiThemeLevels)[number];\n\nexport type _EuiThemeLevels = {\n /** - Default value: 9000 */\n toast: NonNullable<CSSProperties['zIndex']>;\n /** - Default value: 8000 */\n modal: NonNullable<CSSProperties['zIndex']>;\n /** - Default value: 6000 */\n mask: NonNullable<CSSProperties['zIndex']>;\n /** - Default value: 6000 */\n navigation: NonNullable<CSSProperties['zIndex']>;\n /** - Default value: 2000 */\n menu: NonNullable<CSSProperties['zIndex']>;\n /** - Default value: 1000 */\n header: NonNullable<CSSProperties['zIndex']>;\n /** - Default value: 1000 */\n flyout: NonNullable<CSSProperties['zIndex']>;\n /** - Default value: 1000 */\n maskBelowHeader: NonNullable<CSSProperties['zIndex']>;\n /** - Default value: 0 */\n content: NonNullable<CSSProperties['zIndex']>;\n};\n"],"mappings":";;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;;AAIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEO,IAAMA,cAAc,GAAAC,OAAA,CAAAD,cAAA,GAAG,CAC5B,OAAO,EACP,OAAO,EACP,MAAM,EACN,YAAY,EACZ,MAAM,EACN,QAAQ,EACR,QAAQ,EACR,iBAAiB,EACjB,SAAS,CACD","ignoreList":[]}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export declare const EuiThemeShadowSizes: readonly ["xs", "s", "m", "l", "xl"];
|
|
2
|
+
export declare type _EuiThemeShadowSize = (typeof EuiThemeShadowSizes)[number];
|
|
3
|
+
/**
|
|
4
|
+
* Shadow t-shirt sizes descriptions
|
|
5
|
+
*/
|
|
6
|
+
export declare const _EuiShadowSizesDescriptions: Record<_EuiThemeShadowSize, string>;
|
|
7
|
+
export interface _EuiThemeShadowCustomColor {
|
|
8
|
+
color?: string;
|
|
9
|
+
property?: 'box-shadow' | 'filter';
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=shadow.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"shadow.d.ts","sourceRoot":"","sources":["../../../../src/global_styling/variables/shadow.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,mBAAmB,sCAAuC,CAAC;AAExE,oBAAY,mBAAmB,GAAG,CAAC,OAAO,mBAAmB,CAAC,CAAC,MAAM,CAAC,CAAC;AAEvE;;GAEG;AACH,eAAO,MAAM,2BAA2B,EAAE,MAAM,CAAC,mBAAmB,EAAE,MAAM,CAOzE,CAAC;AAEJ,MAAM,WAAW,0BAA0B;IACzC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,YAAY,GAAG,QAAQ,CAAC;CACpC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
require("core-js/modules/es.object.define-property.js");
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports._EuiShadowSizesDescriptions = exports.EuiThemeShadowSizes = void 0;
|
|
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
|
+
var EuiThemeShadowSizes = exports.EuiThemeShadowSizes = ['xs', 's', 'm', 'l', 'xl'];
|
|
17
|
+
/**
|
|
18
|
+
* Shadow t-shirt sizes descriptions
|
|
19
|
+
*/
|
|
20
|
+
var _EuiShadowSizesDescriptions = exports._EuiShadowSizesDescriptions = {
|
|
21
|
+
xs: 'Very subtle shadow used on small components.',
|
|
22
|
+
s: 'Adds subtle depth, usually used in conjunction with a border.',
|
|
23
|
+
m: 'Used on small sized portalled content like popovers.',
|
|
24
|
+
l: 'Primary shadow used in most cases to add visible depth.',
|
|
25
|
+
xl: 'Very large shadows used for large portalled style containers like modals and flyouts.'
|
|
26
|
+
};
|
|
27
|
+
//# sourceMappingURL=shadow.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"shadow.js","names":["EuiThemeShadowSizes","exports","_EuiShadowSizesDescriptions","xs","s","m","l","xl"],"sources":["../../../../src/global_styling/variables/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\nexport const EuiThemeShadowSizes = ['xs', 's', 'm', 'l', 'xl'] as const;\n\nexport type _EuiThemeShadowSize = (typeof EuiThemeShadowSizes)[number];\n\n/**\n * Shadow t-shirt sizes descriptions\n */\nexport const _EuiShadowSizesDescriptions: Record<_EuiThemeShadowSize, string> =\n {\n xs: 'Very subtle shadow used on small components.',\n s: 'Adds subtle depth, usually used in conjunction with a border.',\n m: 'Used on small sized portalled content like popovers.',\n l: 'Primary shadow used in most cases to add visible depth.',\n xl: 'Very large shadows used for large portalled style containers like modals and flyouts.',\n };\n\nexport interface _EuiThemeShadowCustomColor {\n color?: string;\n property?: 'box-shadow' | 'filter';\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;AAIvE;AACA;AACA;AACO,IAAME,2BAAgE,GAAAD,OAAA,CAAAC,2BAAA,GAC3E;EACEC,EAAE,EAAE,8CAA8C;EAClDC,CAAC,EAAE,+DAA+D;EAClEC,CAAC,EAAE,sDAAsD;EACzDC,CAAC,EAAE,yDAAyD;EAC5DC,EAAE,EAAE;AACN,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export declare type _EuiThemeBase = number;
|
|
2
|
+
export declare const EuiThemeSizes: readonly ["xxs", "xs", "s", "m", "base", "l", "xl", "xxl", "xxxl", "xxxxl"];
|
|
3
|
+
export declare type _EuiThemeSize = (typeof EuiThemeSizes)[number];
|
|
4
|
+
export declare type _EuiThemeSizes = {
|
|
5
|
+
/** - Default value: 2px */
|
|
6
|
+
xxs: string;
|
|
7
|
+
/** - Default value: 4px */
|
|
8
|
+
xs: string;
|
|
9
|
+
/** - Default value: 8px */
|
|
10
|
+
s: string;
|
|
11
|
+
/** - Default value: 12px */
|
|
12
|
+
m: string;
|
|
13
|
+
/** - Default value: 16px */
|
|
14
|
+
base: string;
|
|
15
|
+
/** - Default value: 24px */
|
|
16
|
+
l: string;
|
|
17
|
+
/** - Default value: 32px */
|
|
18
|
+
xl: string;
|
|
19
|
+
/** - Default value: 40px */
|
|
20
|
+
xxl: string;
|
|
21
|
+
/** - Default value: 48px */
|
|
22
|
+
xxxl: string;
|
|
23
|
+
/** - Default value: 64px */
|
|
24
|
+
xxxxl: string;
|
|
25
|
+
};
|
|
26
|
+
//# sourceMappingURL=size.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"size.d.ts","sourceRoot":"","sources":["../../../../src/global_styling/variables/size.ts"],"names":[],"mappings":"AAQA,oBAAY,aAAa,GAAG,MAAM,CAAC;AAEnC,eAAO,MAAM,aAAa,6EAWhB,CAAC;AAEX,oBAAY,aAAa,GAAG,CAAC,OAAO,aAAa,CAAC,CAAC,MAAM,CAAC,CAAC;AAE3D,oBAAY,cAAc,GAAG;IAC3B,2BAA2B;IAC3B,GAAG,EAAE,MAAM,CAAC;IACZ,2BAA2B;IAC3B,EAAE,EAAE,MAAM,CAAC;IACX,2BAA2B;IAC3B,CAAC,EAAE,MAAM,CAAC;IACV,4BAA4B;IAC5B,CAAC,EAAE,MAAM,CAAC;IACV,4BAA4B;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,4BAA4B;IAC5B,CAAC,EAAE,MAAM,CAAC;IACV,4BAA4B;IAC5B,EAAE,EAAE,MAAM,CAAC;IACX,4BAA4B;IAC5B,GAAG,EAAE,MAAM,CAAC;IACZ,4BAA4B;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,4BAA4B;IAC5B,KAAK,EAAE,MAAM,CAAC;CACf,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
require("core-js/modules/es.object.define-property.js");
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.EuiThemeSizes = void 0;
|
|
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
|
+
var EuiThemeSizes = exports.EuiThemeSizes = ['xxs', 'xs', 's', 'm', 'base', 'l', 'xl', 'xxl', 'xxxl', 'xxxxl'];
|
|
17
|
+
//# sourceMappingURL=size.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"size.js","names":["EuiThemeSizes","exports"],"sources":["../../../../src/global_styling/variables/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\nexport type _EuiThemeBase = number;\n\nexport const EuiThemeSizes = [\n 'xxs',\n 'xs',\n 's',\n 'm',\n 'base',\n 'l',\n 'xl',\n 'xxl',\n 'xxxl',\n 'xxxxl',\n] as const;\n\nexport type _EuiThemeSize = (typeof EuiThemeSizes)[number];\n\nexport type _EuiThemeSizes = {\n /** - Default value: 2px */\n xxs: string;\n /** - Default value: 4px */\n xs: string;\n /** - Default value: 8px */\n s: string;\n /** - Default value: 12px */\n m: string;\n /** - Default value: 16px */\n base: string;\n /** - Default value: 24px */\n l: string;\n /** - Default value: 32px */\n xl: string;\n /** - Default value: 40px */\n xxl: string;\n /** - Default value: 48px */\n xxxl: string;\n /** - Default value: 64px */\n xxxxl: string;\n};\n"],"mappings":";;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;;AAIO,IAAMA,aAAa,GAAAC,OAAA,CAAAD,aAAA,GAAG,CAC3B,KAAK,EACL,IAAI,EACJ,GAAG,EACH,GAAG,EACH,MAAM,EACN,GAAG,EACH,IAAI,EACJ,KAAK,EACL,MAAM,EACN,OAAO,CACC","ignoreList":[]}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { CSSProperties } from 'react';
|
|
2
|
+
import { ColorModeSwitch } from '../types';
|
|
3
|
+
export interface _EuiThemeFocus {
|
|
4
|
+
/**
|
|
5
|
+
* Default color of the focus ring, some components may override this property
|
|
6
|
+
* - Default value: currentColor
|
|
7
|
+
*/
|
|
8
|
+
color: ColorModeSwitch;
|
|
9
|
+
/**
|
|
10
|
+
* Thickness of the outline
|
|
11
|
+
* - Default value: 2px
|
|
12
|
+
*/
|
|
13
|
+
width: CSSProperties['borderWidth'];
|
|
14
|
+
/**
|
|
15
|
+
* Used to transparentize the focus background color
|
|
16
|
+
* - Default value: { LIGHT: 0.1, DARK: 0.2 }
|
|
17
|
+
*/
|
|
18
|
+
transparency: ColorModeSwitch<number>;
|
|
19
|
+
/**
|
|
20
|
+
* Default focus background color. Not all components set a background color on focus
|
|
21
|
+
* - Default value: `colors.primary` computed with `focus.transparency`
|
|
22
|
+
*/
|
|
23
|
+
backgroundColor: ColorModeSwitch;
|
|
24
|
+
}
|
|
25
|
+
//# sourceMappingURL=states.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"states.d.ts","sourceRoot":"","sources":["../../../../src/global_styling/variables/states.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AACtC,OAAO,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAE3C,MAAM,WAAW,cAAc;IAC7B;;;OAGG;IACH,KAAK,EAAE,eAAe,CAAC;IACvB;;;OAGG;IACH,KAAK,EAAE,aAAa,CAAC,aAAa,CAAC,CAAC;IACpC;;;OAGG;IACH,YAAY,EAAE,eAAe,CAAC,MAAM,CAAC,CAAC;IACtC;;;OAGG;IACH,eAAe,EAAE,eAAe,CAAC;CAClC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"states.js","names":[],"sources":["../../../../src/global_styling/variables/states.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 '../types';\n\nexport interface _EuiThemeFocus {\n /**\n * Default color of the focus ring, some components may override this property\n * - Default value: currentColor\n */\n color: ColorModeSwitch;\n /**\n * Thickness of the outline\n * - Default value: 2px\n */\n width: CSSProperties['borderWidth'];\n /**\n * Used to transparentize the focus background color\n * - Default value: { LIGHT: 0.1, DARK: 0.2 }\n */\n transparency: ColorModeSwitch<number>;\n /**\n * Default focus background color. Not all components set a background color on focus\n * - Default value: `colors.primary` computed with `focus.transparency`\n */\n backgroundColor: ColorModeSwitch;\n}\n"],"mappings":"","ignoreList":[]}
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import { CSSProperties } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Font units of measure
|
|
4
|
+
*/
|
|
5
|
+
export declare const EuiThemeFontUnits: readonly ["rem", "px", "em"];
|
|
6
|
+
export declare type _EuiThemeFontUnit = (typeof EuiThemeFontUnits)[number];
|
|
7
|
+
export declare const EuiThemeFontScales: readonly ["xxxs", "xxs", "xs", "s", "m", "l", "xl", "xxl"];
|
|
8
|
+
export declare type _EuiThemeFontScale = (typeof EuiThemeFontScales)[number];
|
|
9
|
+
export declare type _EuiThemeFontScales = Record<_EuiThemeFontScale, number>;
|
|
10
|
+
export declare type _EuiThemeFontBase = {
|
|
11
|
+
/**
|
|
12
|
+
* The whole font family stack for all parts of the UI.
|
|
13
|
+
* We encourage only customizing the first font in the stack.
|
|
14
|
+
*/
|
|
15
|
+
family: string;
|
|
16
|
+
/**
|
|
17
|
+
* The font family used for monospace UI elements like EuiCode
|
|
18
|
+
*/
|
|
19
|
+
familyCode?: string;
|
|
20
|
+
/**
|
|
21
|
+
* The font family used for serif UI elements like blockquotes within EuiText
|
|
22
|
+
*/
|
|
23
|
+
familySerif?: string;
|
|
24
|
+
/**
|
|
25
|
+
* Controls advanced features OpenType fonts.
|
|
26
|
+
* https://developer.mozilla.org/en-US/docs/Web/CSS/font-feature-settings
|
|
27
|
+
*/
|
|
28
|
+
featureSettings?: string;
|
|
29
|
+
/**
|
|
30
|
+
* Sets the default units used for font size & line height set by UI components
|
|
31
|
+
* like EuiText or EuiTitle. Defaults to `rem`.
|
|
32
|
+
*
|
|
33
|
+
* NOTE: This may overridden by some internal usages, e.g.
|
|
34
|
+
* EuiText's `relative` size which must use `em`.
|
|
35
|
+
*
|
|
36
|
+
* @default 'rem'
|
|
37
|
+
*/
|
|
38
|
+
defaultUnits: _EuiThemeFontUnit;
|
|
39
|
+
/**
|
|
40
|
+
* A computed number that is 1/4 of `base`
|
|
41
|
+
*/
|
|
42
|
+
baseline: number;
|
|
43
|
+
/**
|
|
44
|
+
* Establishes the ideal line-height percentage, but it is the `baseline` integer that establishes the final pixel/rem value
|
|
45
|
+
*/
|
|
46
|
+
lineHeightMultiplier: number;
|
|
47
|
+
};
|
|
48
|
+
export declare const EuiThemeFontWeights: readonly ["light", "regular", "medium", "semiBold", "bold"];
|
|
49
|
+
export declare type _EuiThemeFontWeight = (typeof EuiThemeFontWeights)[number];
|
|
50
|
+
export declare type _EuiThemeFontWeights = {
|
|
51
|
+
/** - Default value: 300 */
|
|
52
|
+
light: CSSProperties['fontWeight'];
|
|
53
|
+
/** - Default value: 400 */
|
|
54
|
+
regular: CSSProperties['fontWeight'];
|
|
55
|
+
/** - Default value: 500 */
|
|
56
|
+
medium: CSSProperties['fontWeight'];
|
|
57
|
+
/** - Default value: 600 */
|
|
58
|
+
semiBold: CSSProperties['fontWeight'];
|
|
59
|
+
/** - Default value: 700 */
|
|
60
|
+
bold: CSSProperties['fontWeight'];
|
|
61
|
+
};
|
|
62
|
+
/**
|
|
63
|
+
* Body / Base styles
|
|
64
|
+
*/
|
|
65
|
+
export interface _EuiThemeBody {
|
|
66
|
+
/**
|
|
67
|
+
* A sizing key from one of the font scales to set as the base body font-size
|
|
68
|
+
*/
|
|
69
|
+
scale: _EuiThemeFontScale;
|
|
70
|
+
/**
|
|
71
|
+
* A font weight key for setting the base body weight
|
|
72
|
+
*/
|
|
73
|
+
weight: keyof _EuiThemeFontWeights;
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* Title styles
|
|
77
|
+
*/
|
|
78
|
+
export interface _EuiThemeTitle {
|
|
79
|
+
/**
|
|
80
|
+
* A font weight key for setting the base weight for titles and headings
|
|
81
|
+
*/
|
|
82
|
+
weight: keyof _EuiThemeFontWeights;
|
|
83
|
+
}
|
|
84
|
+
export declare type _EuiThemeFont = _EuiThemeFontBase & {
|
|
85
|
+
scale: _EuiThemeFontScales;
|
|
86
|
+
/**
|
|
87
|
+
* @see {@link https://eui.elastic.co/#/theming/typography/values%23font-weight | Reference} for more information
|
|
88
|
+
*/
|
|
89
|
+
weight: _EuiThemeFontWeights;
|
|
90
|
+
body: _EuiThemeBody;
|
|
91
|
+
title: _EuiThemeTitle;
|
|
92
|
+
};
|
|
93
|
+
//# sourceMappingURL=typography.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"typography.d.ts","sourceRoot":"","sources":["../../../../src/global_styling/variables/typography.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAEtC;;GAEG;AAEH,eAAO,MAAM,iBAAiB,8BAA+B,CAAC;AAE9D,oBAAY,iBAAiB,GAAG,CAAC,OAAO,iBAAiB,CAAC,CAAC,MAAM,CAAC,CAAC;AAMnE,eAAO,MAAM,kBAAkB,4DASrB,CAAC;AAEX,oBAAY,kBAAkB,GAAG,CAAC,OAAO,kBAAkB,CAAC,CAAC,MAAM,CAAC,CAAC;AAErE,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;OAEG;IACH,MAAM,EAAE,oBAAoB,CAAC;IAC7B,IAAI,EAAE,aAAa,CAAC;IACpB,KAAK,EAAE,cAAc,CAAC;CACvB,CAAC"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
require("core-js/modules/es.object.define-property.js");
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.EuiThemeFontWeights = exports.EuiThemeFontUnits = exports.EuiThemeFontScales = void 0;
|
|
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
|
+
* Font units of measure
|
|
18
|
+
*/
|
|
19
|
+
|
|
20
|
+
var EuiThemeFontUnits = exports.EuiThemeFontUnits = ['rem', 'px', 'em'];
|
|
21
|
+
/*
|
|
22
|
+
* Font scale
|
|
23
|
+
*/
|
|
24
|
+
|
|
25
|
+
var EuiThemeFontScales = exports.EuiThemeFontScales = ['xxxs', 'xxs', 'xs', 's', 'm', 'l', 'xl', 'xxl'];
|
|
26
|
+
|
|
27
|
+
/*
|
|
28
|
+
* Font base settings
|
|
29
|
+
*/
|
|
30
|
+
|
|
31
|
+
/*
|
|
32
|
+
* Font weights
|
|
33
|
+
*/
|
|
34
|
+
|
|
35
|
+
var EuiThemeFontWeights = exports.EuiThemeFontWeights = ['light', 'regular', 'medium', 'semiBold', 'bold'];
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* Body / Base styles
|
|
39
|
+
*/
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* Title styles
|
|
43
|
+
*/
|
|
44
|
+
|
|
45
|
+
/*
|
|
46
|
+
* Font
|
|
47
|
+
*/
|
|
48
|
+
//# sourceMappingURL=typography.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"typography.js","names":["EuiThemeFontUnits","exports","EuiThemeFontScales","EuiThemeFontWeights"],"sources":["../../../../src/global_styling/variables/typography.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';\n\n/**\n * Font units of measure\n */\n\nexport const EuiThemeFontUnits = ['rem', 'px', 'em'] as const;\n\nexport type _EuiThemeFontUnit = (typeof EuiThemeFontUnits)[number];\n\n/*\n * Font scale\n */\n\nexport const EuiThemeFontScales = [\n 'xxxs',\n 'xxs',\n 'xs',\n 's',\n 'm',\n 'l',\n 'xl',\n 'xxl',\n] as const;\n\nexport type _EuiThemeFontScale = (typeof EuiThemeFontScales)[number];\n\nexport type _EuiThemeFontScales = Record<_EuiThemeFontScale, number>;\n\n/*\n * Font base settings\n */\n\nexport type _EuiThemeFontBase = {\n /**\n * The whole font family stack for all parts of the UI.\n * We encourage only customizing the first font in the stack.\n */\n family: string;\n /**\n * The font family used for monospace UI elements like EuiCode\n */\n familyCode?: string;\n /**\n * The font family used for serif UI elements like blockquotes within EuiText\n */\n familySerif?: string;\n /**\n * Controls advanced features OpenType fonts.\n * https://developer.mozilla.org/en-US/docs/Web/CSS/font-feature-settings\n */\n featureSettings?: string;\n /**\n * Sets the default units used for font size & line height set by UI components\n * like EuiText or EuiTitle. Defaults to `rem`.\n *\n * NOTE: This may overridden by some internal usages, e.g.\n * EuiText's `relative` size which must use `em`.\n *\n * @default 'rem'\n */\n defaultUnits: _EuiThemeFontUnit;\n /**\n * A computed number that is 1/4 of `base`\n */\n baseline: number;\n /**\n * Establishes the ideal line-height percentage, but it is the `baseline` integer that establishes the final pixel/rem value\n */\n lineHeightMultiplier: number;\n};\n\n/*\n * Font weights\n */\n\nexport const EuiThemeFontWeights = [\n 'light',\n 'regular',\n 'medium',\n 'semiBold',\n 'bold',\n] as const;\n\nexport type _EuiThemeFontWeight = (typeof EuiThemeFontWeights)[number];\n\nexport type _EuiThemeFontWeights = {\n /** - Default value: 300 */\n light: CSSProperties['fontWeight'];\n /** - Default value: 400 */\n regular: CSSProperties['fontWeight'];\n /** - Default value: 500 */\n medium: CSSProperties['fontWeight'];\n /** - Default value: 600 */\n semiBold: CSSProperties['fontWeight'];\n /** - Default value: 700 */\n bold: CSSProperties['fontWeight'];\n};\n\n/**\n * Body / Base styles\n */\n\nexport interface _EuiThemeBody {\n /**\n * A sizing key from one of the font scales to set as the base body font-size\n */\n scale: _EuiThemeFontScale;\n /**\n * A font weight key for setting the base body weight\n */\n weight: keyof _EuiThemeFontWeights;\n}\n\n/**\n * Title styles\n */\n\nexport interface _EuiThemeTitle {\n /**\n * A font weight key for setting the base weight for titles and headings\n */\n weight: keyof _EuiThemeFontWeights;\n}\n\n/*\n * Font\n */\n\nexport type _EuiThemeFont = _EuiThemeFontBase & {\n scale: _EuiThemeFontScales;\n /**\n * @see {@link https://eui.elastic.co/#/theming/typography/values%23font-weight | Reference} for more information\n */\n weight: _EuiThemeFontWeights;\n body: _EuiThemeBody;\n title: _EuiThemeTitle;\n};\n"],"mappings":";;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;;AAIA;AACA;AACA;;AAEO,IAAMA,iBAAiB,GAAAC,OAAA,CAAAD,iBAAA,GAAG,CAAC,KAAK,EAAE,IAAI,EAAE,IAAI,CAAU;AAI7D;AACA;AACA;;AAEO,IAAME,kBAAkB,GAAAD,OAAA,CAAAC,kBAAA,GAAG,CAChC,MAAM,EACN,KAAK,EACL,IAAI,EACJ,GAAG,EACH,GAAG,EACH,GAAG,EACH,IAAI,EACJ,KAAK,CACG;;AAMV;AACA;AACA;;AAyCA;AACA;AACA;;AAEO,IAAMC,mBAAmB,GAAAF,OAAA,CAAAE,mBAAA,GAAG,CACjC,OAAO,EACP,SAAS,EACT,QAAQ,EACR,UAAU,EACV,MAAM,CACE;;AAiBV;AACA;AACA;;AAaA;AACA;AACA;;AASA;AACA;AACA","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAQA,cAAc,kBAAkB,CAAC;AAEjC,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC"}
|