@elastic/eui 59.1.0-rc1 → 60.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/eui_charts_theme.js +330 -330
- package/dist/eui_charts_theme.js.map +1 -1
- package/dist/eui_theme_dark.css +0 -48
- package/dist/eui_theme_dark.min.css +1 -1
- package/dist/eui_theme_light.css +0 -48
- package/dist/eui_theme_light.min.css +1 -1
- package/es/components/accessibility/skip_link/skip_link.js +42 -7
- package/es/components/accessibility/skip_link/skip_link.styles.js +1 -1
- package/es/components/avatar/avatar.js +7 -9
- package/es/components/bottom_bar/bottom_bar.js +9 -8
- package/es/components/breadcrumbs/breadcrumbs.js +1 -2
- package/es/components/call_out/call_out.js +8 -9
- package/es/components/combo_box/matching_options.js +3 -2
- package/es/components/expression/expression.js +10 -11
- package/es/components/facet/facet_button.js +8 -9
- package/es/components/facet/facet_group.js +7 -8
- package/es/components/health/health.js +6 -7
- package/es/components/horizontal_rule/horizontal_rule.js +6 -7
- package/es/components/link/link.js +7 -8
- package/es/components/loading/loading_chart.js +6 -7
- package/es/components/loading/loading_content.js +6 -7
- package/es/components/loading/loading_logo.js +6 -7
- package/es/components/loading/loading_spinner.js +6 -7
- package/es/components/mark/mark.js +8 -9
- package/es/components/markdown_editor/markdown_format.js +6 -7
- package/es/components/panel/panel.js +7 -8
- package/es/components/provider/cache/index.js +0 -1
- package/es/components/provider/index.js +1 -1
- package/es/components/provider/provider.js +3 -7
- package/es/components/selectable/selectable.js +39 -22
- package/es/components/spacer/spacer.js +6 -7
- package/es/components/stat/stat.js +28 -35
- package/es/components/stat/stat.styles.js +38 -0
- package/es/components/text/text.js +6 -7
- package/es/components/text/text_color.js +6 -7
- package/es/components/timeline/timeline.js +15 -8
- package/es/components/timeline/timeline.styles.js +29 -0
- package/es/components/timeline/timeline_item.js +7 -20
- package/es/components/timeline/timeline_item.styles.js +18 -3
- package/es/components/timeline/timeline_item_icon.js +6 -7
- package/es/components/timeline/timeline_item_icon.styles.js +14 -4
- package/es/components/title/title.js +6 -7
- package/es/global_styling/functions/logicals.js +2 -2
- package/es/global_styling/utility/utility.js +1 -13
- package/es/test/emotion-prefix.js +29 -0
- package/es/test/index.d.ts +5 -0
- package/es/test/index.js +2 -1
- package/es/{components/provider/system → themes/amsterdam}/index.js +2 -1
- package/es/themes/index.js +2 -1
- package/eui.d.ts +507 -941
- package/i18ntokens.json +28 -28
- package/lib/components/accessibility/skip_link/skip_link.js +45 -11
- package/lib/components/accessibility/skip_link/skip_link.styles.js +1 -1
- package/lib/components/avatar/avatar.js +8 -12
- package/lib/components/bottom_bar/bottom_bar.js +6 -9
- package/lib/components/breadcrumbs/breadcrumbs.js +1 -2
- package/lib/components/call_out/call_out.js +10 -14
- package/lib/components/combo_box/matching_options.js +3 -2
- package/lib/components/expression/expression.js +12 -14
- package/lib/components/facet/facet_button.js +10 -12
- package/lib/components/facet/facet_group.js +9 -11
- package/lib/components/health/health.js +8 -10
- package/lib/components/horizontal_rule/horizontal_rule.js +8 -10
- package/lib/components/link/link.js +7 -13
- package/lib/components/loading/loading_chart.js +8 -10
- package/lib/components/loading/loading_content.js +8 -10
- package/lib/components/loading/loading_logo.js +8 -10
- package/lib/components/loading/loading_spinner.js +8 -10
- package/lib/components/mark/mark.js +10 -12
- package/lib/components/markdown_editor/markdown_format.js +8 -10
- package/lib/components/panel/panel.js +9 -11
- package/lib/components/provider/cache/index.js +0 -13
- package/lib/components/provider/index.js +7 -12
- package/lib/components/provider/provider.js +2 -6
- package/lib/components/selectable/selectable.js +39 -22
- package/lib/components/spacer/spacer.js +8 -10
- package/lib/components/stat/stat.js +30 -40
- package/lib/components/stat/stat.styles.js +45 -0
- package/lib/components/text/text.js +8 -10
- package/lib/components/text/text_color.js +8 -10
- package/lib/components/timeline/timeline.js +20 -9
- package/lib/components/timeline/timeline.styles.js +39 -0
- package/lib/components/timeline/timeline_item.js +9 -24
- package/lib/components/timeline/timeline_item.styles.js +17 -10
- package/lib/components/timeline/timeline_item_icon.js +8 -10
- package/lib/components/timeline/timeline_item_icon.styles.js +15 -4
- package/lib/components/title/title.js +9 -11
- package/lib/global_styling/functions/logicals.js +2 -2
- package/lib/global_styling/utility/utility.js +8 -12
- package/lib/test/emotion-prefix.js +38 -0
- package/lib/test/index.d.ts +5 -0
- package/lib/test/index.js +23 -1
- package/lib/{components/provider/system → themes/amsterdam}/index.js +4 -4
- package/lib/themes/index.js +21 -1
- package/optimize/es/components/accessibility/skip_link/skip_link.js +27 -6
- package/optimize/es/components/accessibility/skip_link/skip_link.styles.js +1 -1
- package/optimize/es/components/avatar/avatar.js +5 -7
- package/optimize/es/components/bottom_bar/bottom_bar.js +9 -8
- package/optimize/es/components/breadcrumbs/breadcrumbs.js +1 -2
- package/optimize/es/components/call_out/call_out.js +7 -8
- package/optimize/es/components/combo_box/matching_options.js +3 -2
- package/optimize/es/components/expression/expression.js +9 -10
- package/optimize/es/components/facet/facet_button.js +7 -8
- package/optimize/es/components/facet/facet_group.js +6 -7
- package/optimize/es/components/health/health.js +5 -6
- package/optimize/es/components/horizontal_rule/horizontal_rule.js +5 -6
- package/optimize/es/components/link/link.js +6 -7
- package/optimize/es/components/loading/loading_chart.js +5 -6
- package/optimize/es/components/loading/loading_content.js +5 -6
- package/optimize/es/components/loading/loading_logo.js +5 -6
- package/optimize/es/components/loading/loading_spinner.js +5 -6
- package/optimize/es/components/mark/mark.js +7 -8
- package/optimize/es/components/markdown_editor/markdown_format.js +5 -6
- package/optimize/es/components/panel/panel.js +6 -7
- package/optimize/es/components/provider/cache/index.js +0 -1
- package/optimize/es/components/provider/index.js +1 -1
- package/optimize/es/components/provider/provider.js +3 -7
- package/optimize/es/components/selectable/selectable.js +33 -22
- package/optimize/es/components/spacer/spacer.js +5 -6
- package/optimize/es/components/stat/stat.js +25 -33
- package/optimize/es/components/stat/stat.styles.js +38 -0
- package/optimize/es/components/text/text.js +5 -6
- package/optimize/es/components/text/text_color.js +5 -6
- package/optimize/es/components/timeline/timeline.js +10 -1
- package/optimize/es/components/timeline/timeline.styles.js +29 -0
- package/optimize/es/components/timeline/timeline_item.js +6 -12
- package/optimize/es/components/timeline/timeline_item.styles.js +18 -3
- package/optimize/es/components/timeline/timeline_item_icon.js +5 -6
- package/optimize/es/components/timeline/timeline_item_icon.styles.js +14 -4
- package/optimize/es/components/title/title.js +5 -6
- package/optimize/es/global_styling/functions/logicals.js +2 -2
- package/optimize/es/global_styling/utility/utility.js +1 -13
- package/optimize/es/test/emotion-prefix.js +27 -0
- package/optimize/es/test/index.d.ts +5 -0
- package/optimize/es/test/index.js +2 -1
- package/optimize/es/{components/provider/system → themes/amsterdam}/index.js +2 -1
- package/optimize/es/themes/index.js +2 -1
- package/optimize/lib/components/accessibility/skip_link/skip_link.js +30 -8
- package/optimize/lib/components/accessibility/skip_link/skip_link.styles.js +1 -1
- package/optimize/lib/components/avatar/avatar.js +5 -9
- package/optimize/lib/components/bottom_bar/bottom_bar.js +6 -9
- package/optimize/lib/components/breadcrumbs/breadcrumbs.js +1 -2
- package/optimize/lib/components/call_out/call_out.js +9 -13
- package/optimize/lib/components/combo_box/matching_options.js +3 -2
- package/optimize/lib/components/expression/expression.js +9 -11
- package/optimize/lib/components/facet/facet_button.js +7 -9
- package/optimize/lib/components/facet/facet_group.js +6 -8
- package/optimize/lib/components/health/health.js +5 -7
- package/optimize/lib/components/horizontal_rule/horizontal_rule.js +5 -7
- package/optimize/lib/components/link/link.js +6 -12
- package/optimize/lib/components/loading/loading_chart.js +5 -7
- package/optimize/lib/components/loading/loading_content.js +5 -7
- package/optimize/lib/components/loading/loading_logo.js +5 -7
- package/optimize/lib/components/loading/loading_spinner.js +5 -7
- package/optimize/lib/components/mark/mark.js +7 -9
- package/optimize/lib/components/markdown_editor/markdown_format.js +5 -7
- package/optimize/lib/components/panel/panel.js +6 -8
- package/optimize/lib/components/provider/cache/index.js +0 -13
- package/optimize/lib/components/provider/index.js +7 -12
- package/optimize/lib/components/provider/provider.js +2 -6
- package/optimize/lib/components/selectable/selectable.js +33 -22
- package/optimize/lib/components/spacer/spacer.js +5 -7
- package/optimize/lib/components/stat/stat.js +27 -37
- package/optimize/lib/components/stat/stat.styles.js +47 -0
- package/optimize/lib/components/text/text.js +5 -7
- package/optimize/lib/components/text/text_color.js +5 -7
- package/optimize/lib/components/timeline/timeline.js +14 -2
- package/optimize/lib/components/timeline/timeline.styles.js +39 -0
- package/optimize/lib/components/timeline/timeline_item.js +6 -14
- package/optimize/lib/components/timeline/timeline_item.styles.js +17 -10
- package/optimize/lib/components/timeline/timeline_item_icon.js +5 -7
- package/optimize/lib/components/timeline/timeline_item_icon.styles.js +15 -4
- package/optimize/lib/components/title/title.js +6 -8
- package/optimize/lib/global_styling/functions/logicals.js +2 -2
- package/optimize/lib/global_styling/utility/utility.js +8 -12
- package/optimize/lib/test/emotion-prefix.js +40 -0
- package/optimize/lib/test/index.d.ts +5 -0
- package/optimize/lib/test/index.js +23 -1
- package/{test-env/components/provider/system → optimize/lib/themes/amsterdam}/index.js +4 -4
- package/optimize/lib/themes/index.js +21 -1
- package/package.json +2 -2
- package/src/components/index.scss +0 -1
- package/test-env/components/accessibility/skip_link/skip_link.js +46 -11
- package/test-env/components/accessibility/skip_link/skip_link.styles.js +1 -1
- package/test-env/components/avatar/avatar.js +8 -12
- package/test-env/components/bottom_bar/bottom_bar.js +6 -9
- package/test-env/components/breadcrumbs/breadcrumbs.js +1 -2
- package/test-env/components/call_out/call_out.js +10 -14
- package/test-env/components/combo_box/matching_options.js +3 -2
- package/test-env/components/expression/expression.js +12 -14
- package/test-env/components/facet/facet_button.js +10 -12
- package/test-env/components/facet/facet_group.js +9 -11
- package/test-env/components/health/health.js +8 -10
- package/test-env/components/horizontal_rule/horizontal_rule.js +8 -10
- package/test-env/components/link/link.js +7 -13
- package/test-env/components/loading/loading_chart.js +8 -10
- package/test-env/components/loading/loading_content.js +8 -10
- package/test-env/components/loading/loading_logo.js +8 -10
- package/test-env/components/loading/loading_spinner.js +8 -10
- package/test-env/components/mark/mark.js +10 -12
- package/test-env/components/markdown_editor/markdown_format.js +8 -10
- package/test-env/components/panel/panel.js +9 -11
- package/test-env/components/provider/cache/index.js +0 -13
- package/test-env/components/provider/index.js +7 -12
- package/test-env/components/provider/provider.js +2 -6
- package/test-env/components/selectable/selectable.js +39 -22
- package/test-env/components/spacer/spacer.js +8 -10
- package/test-env/components/stat/stat.js +29 -39
- package/test-env/components/stat/stat.styles.js +47 -0
- package/test-env/components/text/text.js +8 -10
- package/test-env/components/text/text_color.js +8 -10
- package/test-env/components/timeline/timeline.js +19 -9
- package/test-env/components/timeline/timeline.styles.js +39 -0
- package/test-env/components/timeline/timeline_item.js +9 -24
- package/test-env/components/timeline/timeline_item.styles.js +17 -10
- package/test-env/components/timeline/timeline_item_icon.js +8 -10
- package/test-env/components/timeline/timeline_item_icon.styles.js +15 -4
- package/test-env/components/title/title.js +9 -11
- package/test-env/global_styling/functions/logicals.js +2 -2
- package/test-env/global_styling/utility/utility.js +8 -12
- package/test-env/test/emotion-prefix.js +40 -0
- package/test-env/test/index.js +23 -1
- package/{optimize/lib/components/provider/system → test-env/themes/amsterdam}/index.js +4 -4
- package/test-env/themes/index.js +21 -1
- package/es/components/provider/cache/cache_context.js +0 -12
- package/es/components/provider/system/system.js +0 -33
- package/lib/components/provider/cache/cache_context.js +0 -24
- package/lib/components/provider/system/system.js +0 -45
- package/optimize/es/components/provider/cache/cache_context.js +0 -12
- package/optimize/es/components/provider/system/system.js +0 -33
- package/optimize/lib/components/provider/cache/cache_context.js +0 -24
- package/optimize/lib/components/provider/system/system.js +0 -54
- package/src/components/stat/_index.scss +0 -1
- package/src/components/stat/_stat.scss +0 -50
- package/test-env/components/provider/cache/cache_context.js +0 -24
- package/test-env/components/provider/system/system.js +0 -54
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
6
|
+
exports.EuiFacetButton = void 0;
|
|
7
7
|
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
|
|
@@ -19,7 +19,7 @@ var _inner_text = require("../inner_text");
|
|
|
19
19
|
|
|
20
20
|
var _clone_element = require("../../services/theme/clone_element");
|
|
21
21
|
|
|
22
|
-
var
|
|
22
|
+
var _services = require("../../services");
|
|
23
23
|
|
|
24
24
|
var _facet_button = require("./facet_button.styles");
|
|
25
25
|
|
|
@@ -27,7 +27,7 @@ var _button_display = require("../button/button_display/_button_display");
|
|
|
27
27
|
|
|
28
28
|
var _react2 = require("@emotion/react");
|
|
29
29
|
|
|
30
|
-
var _excluded = ["children", "className", "icon", "isDisabled", "isLoading", "isSelected", "quantity", "buttonRef"
|
|
30
|
+
var _excluded = ["children", "className", "icon", "isDisabled", "isLoading", "isSelected", "quantity", "buttonRef"];
|
|
31
31
|
|
|
32
32
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
33
33
|
|
|
@@ -37,7 +37,7 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
|
|
|
37
37
|
|
|
38
38
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
39
39
|
|
|
40
|
-
var
|
|
40
|
+
var EuiFacetButton = function EuiFacetButton(_ref) {
|
|
41
41
|
var children = _ref.children,
|
|
42
42
|
className = _ref.className,
|
|
43
43
|
icon = _ref.icon,
|
|
@@ -49,16 +49,16 @@ var _EuiFacetButton = function _EuiFacetButton(_ref) {
|
|
|
49
49
|
isSelected = _ref$isSelected === void 0 ? false : _ref$isSelected,
|
|
50
50
|
quantity = _ref.quantity,
|
|
51
51
|
buttonRef = _ref.buttonRef,
|
|
52
|
-
euiTheme = _ref.euiTheme,
|
|
53
52
|
rest = _objectWithoutProperties(_ref, _excluded);
|
|
54
53
|
|
|
55
54
|
// If in the loading state, force disabled to true
|
|
56
55
|
isDisabled = isLoading ? true : isDisabled;
|
|
57
56
|
var selection = isSelected ? 'isSelected' : 'unSelected';
|
|
58
57
|
var classes = (0, _classnames.default)('euiFacetButton', className);
|
|
59
|
-
var
|
|
58
|
+
var theme = (0, _services.useEuiTheme)();
|
|
59
|
+
var styles = (0, _facet_button.euiFacetButtonStyles)(theme);
|
|
60
60
|
var cssStyles = [styles.euiFacetButton];
|
|
61
|
-
var textStyles = (0, _facet_button.euiFacetButtonTextStyles)(
|
|
61
|
+
var textStyles = (0, _facet_button.euiFacetButtonTextStyles)(theme);
|
|
62
62
|
var cssTextStyles = [textStyles.euiFacetButton__text, textStyles[selection]];
|
|
63
63
|
var quantityStyles = (0, _facet_button.euiFacetButtonQuantityStyles)();
|
|
64
64
|
var cssQuantityStyles = [quantityStyles.euiFacetButton__quantity, isDisabled && quantityStyles.isDisabled];
|
|
@@ -111,8 +111,8 @@ var _EuiFacetButton = function _EuiFacetButton(_ref) {
|
|
|
111
111
|
});
|
|
112
112
|
};
|
|
113
113
|
|
|
114
|
-
exports.
|
|
115
|
-
|
|
114
|
+
exports.EuiFacetButton = EuiFacetButton;
|
|
115
|
+
EuiFacetButton.propTypes = {
|
|
116
116
|
buttonRef: _propTypes.default.any,
|
|
117
117
|
|
|
118
118
|
/**
|
|
@@ -144,6 +144,4 @@ _EuiFacetButton.propTypes = {
|
|
|
144
144
|
className: _propTypes.default.string,
|
|
145
145
|
"aria-label": _propTypes.default.string,
|
|
146
146
|
"data-test-subj": _propTypes.default.string
|
|
147
|
-
};
|
|
148
|
-
var EuiFacetButton = (0, _system.withEuiSystem)(_EuiFacetButton);
|
|
149
|
-
exports.EuiFacetButton = EuiFacetButton;
|
|
147
|
+
};
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
6
|
+
exports.LAYOUTS = exports.GUTTER_SIZES = exports.EuiFacetGroup = void 0;
|
|
7
7
|
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
|
|
@@ -11,13 +11,13 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
|
11
11
|
|
|
12
12
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _services = require("../../services");
|
|
15
15
|
|
|
16
16
|
var _facet_group = require("./facet_group.styles");
|
|
17
17
|
|
|
18
18
|
var _react2 = require("@emotion/react");
|
|
19
19
|
|
|
20
|
-
var _excluded = ["children", "className", "layout", "gutterSize"
|
|
20
|
+
var _excluded = ["children", "className", "layout", "gutterSize"];
|
|
21
21
|
|
|
22
22
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
23
23
|
|
|
@@ -32,17 +32,17 @@ exports.LAYOUTS = LAYOUTS;
|
|
|
32
32
|
var GUTTER_SIZES = ['none', 's', 'm', 'l'];
|
|
33
33
|
exports.GUTTER_SIZES = GUTTER_SIZES;
|
|
34
34
|
|
|
35
|
-
var
|
|
35
|
+
var EuiFacetGroup = function EuiFacetGroup(_ref) {
|
|
36
36
|
var children = _ref.children,
|
|
37
37
|
className = _ref.className,
|
|
38
38
|
_ref$layout = _ref.layout,
|
|
39
39
|
layout = _ref$layout === void 0 ? 'vertical' : _ref$layout,
|
|
40
40
|
_ref$gutterSize = _ref.gutterSize,
|
|
41
41
|
gutterSize = _ref$gutterSize === void 0 ? 'm' : _ref$gutterSize,
|
|
42
|
-
euiTheme = _ref.euiTheme,
|
|
43
42
|
rest = _objectWithoutProperties(_ref, _excluded);
|
|
44
43
|
|
|
45
|
-
var
|
|
44
|
+
var theme = (0, _services.useEuiTheme)();
|
|
45
|
+
var styles = (0, _facet_group.euiFacetGroupStyles)(theme, layout);
|
|
46
46
|
var cssStyles = [styles.euiFacetGroup, styles[gutterSize], styles[layout]];
|
|
47
47
|
var classes = (0, _classnames.default)('euiFacetGroup', className);
|
|
48
48
|
return (0, _react2.jsx)("div", _extends({
|
|
@@ -51,8 +51,8 @@ var _EuiFacetGroup = function _EuiFacetGroup(_ref) {
|
|
|
51
51
|
}, rest), children);
|
|
52
52
|
};
|
|
53
53
|
|
|
54
|
-
exports.
|
|
55
|
-
|
|
54
|
+
exports.EuiFacetGroup = EuiFacetGroup;
|
|
55
|
+
EuiFacetGroup.propTypes = {
|
|
56
56
|
className: _propTypes.default.string,
|
|
57
57
|
"aria-label": _propTypes.default.string,
|
|
58
58
|
"data-test-subj": _propTypes.default.string,
|
|
@@ -67,6 +67,4 @@ _EuiFacetGroup.propTypes = {
|
|
|
67
67
|
* Horizontal layout always adds more distance horizontally between buttons.
|
|
68
68
|
*/
|
|
69
69
|
gutterSize: _propTypes.default.any
|
|
70
|
-
};
|
|
71
|
-
var EuiFacetGroup = (0, _system.withEuiSystem)(_EuiFacetGroup);
|
|
72
|
-
exports.EuiFacetGroup = EuiFacetGroup;
|
|
70
|
+
};
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
6
|
+
exports.TEXT_SIZES = exports.EuiHealth = void 0;
|
|
7
7
|
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
|
|
@@ -11,7 +11,7 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
|
11
11
|
|
|
12
12
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _services = require("../../services");
|
|
15
15
|
|
|
16
16
|
var _health = require("./health.styles");
|
|
17
17
|
|
|
@@ -21,7 +21,7 @@ var _flex = require("../flex");
|
|
|
21
21
|
|
|
22
22
|
var _react2 = require("@emotion/react");
|
|
23
23
|
|
|
24
|
-
var _excluded = ["children", "className", "color", "
|
|
24
|
+
var _excluded = ["children", "className", "color", "textSize"];
|
|
25
25
|
|
|
26
26
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
27
27
|
|
|
@@ -34,15 +34,15 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
|
|
|
34
34
|
var TEXT_SIZES = ['xs', 's', 'm', 'inherit'];
|
|
35
35
|
exports.TEXT_SIZES = TEXT_SIZES;
|
|
36
36
|
|
|
37
|
-
var
|
|
37
|
+
var EuiHealth = function EuiHealth(_ref) {
|
|
38
38
|
var children = _ref.children,
|
|
39
39
|
className = _ref.className,
|
|
40
40
|
color = _ref.color,
|
|
41
|
-
euiTheme = _ref.euiTheme,
|
|
42
41
|
_ref$textSize = _ref.textSize,
|
|
43
42
|
textSize = _ref$textSize === void 0 ? 's' : _ref$textSize,
|
|
44
43
|
rest = _objectWithoutProperties(_ref, _excluded);
|
|
45
44
|
|
|
45
|
+
var euiTheme = (0, _services.useEuiTheme)();
|
|
46
46
|
var styles = (0, _health.euiHealthStyles)(euiTheme);
|
|
47
47
|
var cssStyles = [styles.euiHealth, styles[textSize]];
|
|
48
48
|
var classes = (0, _classnames.default)('euiHealth', className);
|
|
@@ -63,8 +63,8 @@ var _EuiHealth = function _EuiHealth(_ref) {
|
|
|
63
63
|
}, children)));
|
|
64
64
|
};
|
|
65
65
|
|
|
66
|
-
exports.
|
|
67
|
-
|
|
66
|
+
exports.EuiHealth = EuiHealth;
|
|
67
|
+
EuiHealth.propTypes = {
|
|
68
68
|
className: _propTypes.default.string,
|
|
69
69
|
"aria-label": _propTypes.default.string,
|
|
70
70
|
"data-test-subj": _propTypes.default.string,
|
|
@@ -81,6 +81,4 @@ _EuiHealth.propTypes = {
|
|
|
81
81
|
* The `inherit` style will get its font size from the parent element
|
|
82
82
|
*/
|
|
83
83
|
textSize: _propTypes.default.any
|
|
84
|
-
};
|
|
85
|
-
var EuiHealth = (0, _system.withEuiSystem)(_EuiHealth);
|
|
86
|
-
exports.EuiHealth = EuiHealth;
|
|
84
|
+
};
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
6
|
+
exports.SIZES = exports.MARGINS = exports.EuiHorizontalRule = void 0;
|
|
7
7
|
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
|
|
@@ -11,13 +11,13 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
|
11
11
|
|
|
12
12
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _services = require("../../services");
|
|
15
15
|
|
|
16
16
|
var _horizontal_rule = require("./horizontal_rule.styles");
|
|
17
17
|
|
|
18
18
|
var _react2 = require("@emotion/react");
|
|
19
19
|
|
|
20
|
-
var _excluded = ["className", "
|
|
20
|
+
var _excluded = ["className", "size", "margin"];
|
|
21
21
|
|
|
22
22
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
23
23
|
|
|
@@ -43,17 +43,17 @@ var marginToClassNameMap = {
|
|
|
43
43
|
xxl: 'marginXXLarge'
|
|
44
44
|
};
|
|
45
45
|
|
|
46
|
-
var
|
|
46
|
+
var EuiHorizontalRule = function EuiHorizontalRule(_ref) {
|
|
47
47
|
var _classNames;
|
|
48
48
|
|
|
49
49
|
var className = _ref.className,
|
|
50
|
-
euiTheme = _ref.euiTheme,
|
|
51
50
|
_ref$size = _ref.size,
|
|
52
51
|
size = _ref$size === void 0 ? 'full' : _ref$size,
|
|
53
52
|
_ref$margin = _ref.margin,
|
|
54
53
|
margin = _ref$margin === void 0 ? 'l' : _ref$margin,
|
|
55
54
|
rest = _objectWithoutProperties(_ref, _excluded);
|
|
56
55
|
|
|
56
|
+
var euiTheme = (0, _services.useEuiTheme)();
|
|
57
57
|
var styles = (0, _horizontal_rule.euiHorizontalRuleStyles)(euiTheme);
|
|
58
58
|
var classes = (0, _classnames.default)('euiHorizontalRule', (_classNames = {}, _defineProperty(_classNames, "euiHorizontalRule--".concat(size), size), _defineProperty(_classNames, "euiHorizontalRule--".concat(marginToClassNameMap[margin]), margin && margin !== 'none'), _classNames), className);
|
|
59
59
|
var cssStyles = [styles.euiHorizontalRule, styles[size], styles[margin]];
|
|
@@ -63,8 +63,8 @@ var _EuiHorizontalRule = function _EuiHorizontalRule(_ref) {
|
|
|
63
63
|
}, rest));
|
|
64
64
|
};
|
|
65
65
|
|
|
66
|
-
exports.
|
|
67
|
-
|
|
66
|
+
exports.EuiHorizontalRule = EuiHorizontalRule;
|
|
67
|
+
EuiHorizontalRule.propTypes = {
|
|
68
68
|
/**
|
|
69
69
|
* Defines the width of the HR.
|
|
70
70
|
*/
|
|
@@ -73,6 +73,4 @@ _EuiHorizontalRule.propTypes = {
|
|
|
73
73
|
className: _propTypes.default.string,
|
|
74
74
|
"aria-label": _propTypes.default.string,
|
|
75
75
|
"data-test-subj": _propTypes.default.string
|
|
76
|
-
};
|
|
77
|
-
var EuiHorizontalRule = (0, _system.withEuiSystem)(_EuiHorizontalRule);
|
|
78
|
-
exports.EuiHorizontalRule = EuiHorizontalRule;
|
|
76
|
+
};
|
|
@@ -5,7 +5,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
|
-
exports.
|
|
8
|
+
exports.EuiLink = exports.COLORS = void 0;
|
|
9
9
|
|
|
10
10
|
var _react = _interopRequireWildcard(require("react"));
|
|
11
11
|
|
|
@@ -15,8 +15,6 @@ var _classnames = _interopRequireDefault(require("classnames"));
|
|
|
15
15
|
|
|
16
16
|
var _services = require("../../services");
|
|
17
17
|
|
|
18
|
-
var _system = require("../provider/system");
|
|
19
|
-
|
|
20
18
|
var _link = require("./link.styles");
|
|
21
19
|
|
|
22
20
|
var _icon = require("../icon");
|
|
@@ -29,7 +27,7 @@ var _href_validator = require("../../services/security/href_validator");
|
|
|
29
27
|
|
|
30
28
|
var _react2 = require("@emotion/react");
|
|
31
29
|
|
|
32
|
-
var _excluded = ["children", "color", "className", "href", "external", "target", "rel", "type", "onClick", "disabled"
|
|
30
|
+
var _excluded = ["children", "color", "className", "href", "external", "target", "rel", "type", "onClick", "disabled"];
|
|
33
31
|
|
|
34
32
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
35
33
|
|
|
@@ -51,8 +49,7 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
|
|
|
51
49
|
|
|
52
50
|
var COLORS = ['primary', 'subdued', 'success', 'accent', 'danger', 'warning', 'text', 'ghost'];
|
|
53
51
|
exports.COLORS = COLORS;
|
|
54
|
-
|
|
55
|
-
var _EuiLink = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
|
52
|
+
var EuiLink = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
|
56
53
|
var children = _ref.children,
|
|
57
54
|
_ref$color = _ref.color,
|
|
58
55
|
color = _ref$color === void 0 ? 'primary' : _ref$color,
|
|
@@ -65,9 +62,9 @@ var _EuiLink = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
|
|
65
62
|
type = _ref$type === void 0 ? 'button' : _ref$type,
|
|
66
63
|
onClick = _ref.onClick,
|
|
67
64
|
_disabled = _ref.disabled,
|
|
68
|
-
euiTheme = _ref.euiTheme,
|
|
69
65
|
rest = _objectWithoutProperties(_ref, _excluded);
|
|
70
66
|
|
|
67
|
+
var euiTheme = (0, _services.useEuiTheme)();
|
|
71
68
|
var styles = (0, _link.euiLinkStyles)(euiTheme);
|
|
72
69
|
var cssStyles = [styles.euiLink];
|
|
73
70
|
var cssScreenReaderTextStyles = [styles.euiLink__screenReaderText];
|
|
@@ -121,9 +118,8 @@ var _EuiLink = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
|
|
121
118
|
ref: ref
|
|
122
119
|
}, anchorProps), children, showExternalLinkIcon && externalLinkIcon, target === '_blank' && newTargetScreenreaderText);
|
|
123
120
|
});
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
_EuiLink.propTypes = {
|
|
121
|
+
exports.EuiLink = EuiLink;
|
|
122
|
+
EuiLink.propTypes = {
|
|
127
123
|
className: _propTypes.default.string,
|
|
128
124
|
"aria-label": _propTypes.default.string,
|
|
129
125
|
"data-test-subj": _propTypes.default.string,
|
|
@@ -145,6 +141,4 @@ _EuiLink.propTypes = {
|
|
|
145
141
|
*/
|
|
146
142
|
external: _propTypes.default.bool
|
|
147
143
|
};
|
|
148
|
-
|
|
149
|
-
var EuiLink = (0, _system.withEuiSystem)(_EuiLink);
|
|
150
|
-
exports.EuiLink = EuiLink;
|
|
144
|
+
EuiLink.displayName = 'EuiLink';
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
6
|
+
exports.SIZES = exports.EuiLoadingChart = void 0;
|
|
7
7
|
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
|
|
@@ -11,7 +11,7 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
|
11
11
|
|
|
12
12
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _services = require("../../services");
|
|
15
15
|
|
|
16
16
|
var _loading_chart = require("./loading_chart.styles");
|
|
17
17
|
|
|
@@ -19,7 +19,7 @@ var _i18n = require("../i18n");
|
|
|
19
19
|
|
|
20
20
|
var _react2 = require("@emotion/react");
|
|
21
21
|
|
|
22
|
-
var _excluded = ["size", "mono", "className", "aria-label"
|
|
22
|
+
var _excluded = ["size", "mono", "className", "aria-label"];
|
|
23
23
|
|
|
24
24
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
25
25
|
|
|
@@ -32,17 +32,17 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
|
|
|
32
32
|
var SIZES = ['m', 'l', 'xl'];
|
|
33
33
|
exports.SIZES = SIZES;
|
|
34
34
|
|
|
35
|
-
var
|
|
35
|
+
var EuiLoadingChart = function EuiLoadingChart(_ref) {
|
|
36
36
|
var _ref$size = _ref.size,
|
|
37
37
|
size = _ref$size === void 0 ? 'm' : _ref$size,
|
|
38
38
|
_ref$mono = _ref.mono,
|
|
39
39
|
mono = _ref$mono === void 0 ? false : _ref$mono,
|
|
40
40
|
className = _ref.className,
|
|
41
41
|
ariaLabel = _ref['aria-label'],
|
|
42
|
-
euiTheme = _ref.euiTheme,
|
|
43
42
|
rest = _objectWithoutProperties(_ref, _excluded);
|
|
44
43
|
|
|
45
44
|
var defaultAriaLabel = (0, _i18n.useEuiI18n)('euiLoadingChart.ariaLabel', 'Loading');
|
|
45
|
+
var euiTheme = (0, _services.useEuiTheme)();
|
|
46
46
|
var styles = (0, _loading_chart.euiLoadingChartStyles)(euiTheme);
|
|
47
47
|
var barStyles = (0, _loading_chart.euiLoadingChartBarStyles)(euiTheme);
|
|
48
48
|
var classes = (0, _classnames.default)('euiLoadingChart', {
|
|
@@ -71,13 +71,11 @@ var _EuiLoadingChart = function _EuiLoadingChart(_ref) {
|
|
|
71
71
|
}, rest), bars);
|
|
72
72
|
};
|
|
73
73
|
|
|
74
|
-
exports.
|
|
75
|
-
|
|
74
|
+
exports.EuiLoadingChart = EuiLoadingChart;
|
|
75
|
+
EuiLoadingChart.propTypes = {
|
|
76
76
|
className: _propTypes.default.string,
|
|
77
77
|
"aria-label": _propTypes.default.string,
|
|
78
78
|
"data-test-subj": _propTypes.default.string,
|
|
79
79
|
size: _propTypes.default.any,
|
|
80
80
|
mono: _propTypes.default.bool
|
|
81
|
-
};
|
|
82
|
-
var EuiLoadingChart = (0, _system.withEuiSystem)(_EuiLoadingChart);
|
|
83
|
-
exports.EuiLoadingChart = EuiLoadingChart;
|
|
81
|
+
};
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
6
|
+
exports.EuiLoadingContent = void 0;
|
|
7
7
|
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
|
|
@@ -11,7 +11,7 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
|
11
11
|
|
|
12
12
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _services = require("../../services");
|
|
15
15
|
|
|
16
16
|
var _loading_strings = require("./_loading_strings");
|
|
17
17
|
|
|
@@ -19,7 +19,7 @@ var _loading_content = require("./loading_content.styles");
|
|
|
19
19
|
|
|
20
20
|
var _react2 = require("@emotion/react");
|
|
21
21
|
|
|
22
|
-
var _excluded = ["lines", "className", "aria-label"
|
|
22
|
+
var _excluded = ["lines", "className", "aria-label"];
|
|
23
23
|
|
|
24
24
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
25
25
|
|
|
@@ -29,14 +29,14 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
|
|
|
29
29
|
|
|
30
30
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
31
31
|
|
|
32
|
-
var
|
|
32
|
+
var EuiLoadingContent = function EuiLoadingContent(_ref) {
|
|
33
33
|
var _ref$lines = _ref.lines,
|
|
34
34
|
lines = _ref$lines === void 0 ? 3 : _ref$lines,
|
|
35
35
|
className = _ref.className,
|
|
36
36
|
ariaLabel = _ref['aria-label'],
|
|
37
|
-
euiTheme = _ref.euiTheme,
|
|
38
37
|
rest = _objectWithoutProperties(_ref, _excluded);
|
|
39
38
|
|
|
39
|
+
var euiTheme = (0, _services.useEuiTheme)();
|
|
40
40
|
var styles = (0, _loading_content.euiLoadingContentStyles)(euiTheme);
|
|
41
41
|
var lineCssStyles = [styles.euiLoadingContent__singleLine];
|
|
42
42
|
var defaultLabel = (0, _loading_strings.useLoadingAriaLabel)();
|
|
@@ -57,12 +57,10 @@ var _EuiLoadingContent = function _EuiLoadingContent(_ref) {
|
|
|
57
57
|
}, rest), lineElements);
|
|
58
58
|
};
|
|
59
59
|
|
|
60
|
-
exports.
|
|
61
|
-
|
|
60
|
+
exports.EuiLoadingContent = EuiLoadingContent;
|
|
61
|
+
EuiLoadingContent.propTypes = {
|
|
62
62
|
className: _propTypes.default.string,
|
|
63
63
|
"aria-label": _propTypes.default.string,
|
|
64
64
|
"data-test-subj": _propTypes.default.string,
|
|
65
65
|
lines: _propTypes.default.oneOf([1, 2, 3, 4, 5, 6, 7, 8, 9, 10])
|
|
66
|
-
};
|
|
67
|
-
var EuiLoadingContent = (0, _system.withEuiSystem)(_EuiLoadingContent);
|
|
68
|
-
exports.EuiLoadingContent = EuiLoadingContent;
|
|
66
|
+
};
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
6
|
+
exports.SIZES = exports.EuiLoadingLogo = void 0;
|
|
7
7
|
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
|
|
@@ -13,7 +13,7 @@ var _classnames = _interopRequireDefault(require("classnames"));
|
|
|
13
13
|
|
|
14
14
|
var _icon = require("../icon");
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _services = require("../../services");
|
|
17
17
|
|
|
18
18
|
var _loading_strings = require("./_loading_strings");
|
|
19
19
|
|
|
@@ -21,7 +21,7 @@ var _loading_logo = require("./loading_logo.styles");
|
|
|
21
21
|
|
|
22
22
|
var _react2 = require("@emotion/react");
|
|
23
23
|
|
|
24
|
-
var _excluded = ["size", "logo", "aria-label", "className"
|
|
24
|
+
var _excluded = ["size", "logo", "aria-label", "className"];
|
|
25
25
|
|
|
26
26
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
27
27
|
|
|
@@ -34,16 +34,16 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
|
|
|
34
34
|
var SIZES = ['m', 'l', 'xl'];
|
|
35
35
|
exports.SIZES = SIZES;
|
|
36
36
|
|
|
37
|
-
var
|
|
37
|
+
var EuiLoadingLogo = function EuiLoadingLogo(_ref) {
|
|
38
38
|
var _ref$size = _ref.size,
|
|
39
39
|
size = _ref$size === void 0 ? 'm' : _ref$size,
|
|
40
40
|
_ref$logo = _ref.logo,
|
|
41
41
|
logo = _ref$logo === void 0 ? 'logoKibana' : _ref$logo,
|
|
42
42
|
ariaLabel = _ref['aria-label'],
|
|
43
43
|
className = _ref.className,
|
|
44
|
-
euiTheme = _ref.euiTheme,
|
|
45
44
|
rest = _objectWithoutProperties(_ref, _excluded);
|
|
46
45
|
|
|
46
|
+
var euiTheme = (0, _services.useEuiTheme)();
|
|
47
47
|
var defaultLabel = (0, _loading_strings.useLoadingAriaLabel)();
|
|
48
48
|
var styles = (0, _loading_logo.euiLoadingLogoStyles)(euiTheme);
|
|
49
49
|
var cssStyles = [styles.euiLoadingLogo, styles[size]];
|
|
@@ -63,8 +63,8 @@ var _EuiLoadingLogo = function _EuiLoadingLogo(_ref) {
|
|
|
63
63
|
})));
|
|
64
64
|
};
|
|
65
65
|
|
|
66
|
-
exports.
|
|
67
|
-
|
|
66
|
+
exports.EuiLoadingLogo = EuiLoadingLogo;
|
|
67
|
+
EuiLoadingLogo.propTypes = {
|
|
68
68
|
className: _propTypes.default.string,
|
|
69
69
|
"aria-label": _propTypes.default.string,
|
|
70
70
|
"data-test-subj": _propTypes.default.string,
|
|
@@ -74,6 +74,4 @@ _EuiLoadingLogo.propTypes = {
|
|
|
74
74
|
* While this component should be restricted to using logo icons, it works with any IconType
|
|
75
75
|
*/
|
|
76
76
|
logo: _propTypes.default.oneOfType([_propTypes.default.oneOf(["accessibility", "addDataApp", "advancedSettingsApp", "agentApp", "aggregate", "alert", "analyzeEvent", "annotation", "apmApp", "apmTrace", "appSearchApp", "apps", "arrowDown", "arrowLeft", "arrowRight", "arrowUp", "arrowStart", "arrowEnd", "asterisk", "auditbeatApp", "beaker", "bell", "bellSlash", "bolt", "boxesHorizontal", "boxesVertical", "branch", "branchUser", "broom", "brush", "bug", "bullseye", "calendar", "canvasApp", "casesApp", "check", "checkInCircleFilled", "cheer", "classificationJob", "clock", "cloudDrizzle", "cloudStormy", "cloudSunny", "codeApp", "color", "compute", "console", "consoleApp", "continuityAbove", "continuityAboveBelow", "continuityBelow", "continuityWithin", "controlsHorizontal", "controlsVertical", "copy", "copyClipboard", "createAdvancedJob", "createMultiMetricJob", "createPopulationJob", "createSingleMetricJob", "cross", "crossClusterReplicationApp", "crossInACircleFilled", "crosshairs", "currency", "cut", "dashboardApp", "dataVisualizer", "database", "desktop", "devToolsApp", "discoverApp", "document", "documentEdit", "documentation", "documents", "dot", "doubleArrowLeft", "doubleArrowRight", "download", "editorAlignCenter", "editorAlignLeft", "editorAlignRight", "editorBold", "editorChecklist", "editorCodeBlock", "editorComment", "editorDistributeHorizontal", "editorDistributeVertical", "editorHeading", "editorItalic", "editorItemAlignBottom", "editorItemAlignCenter", "editorItemAlignLeft", "editorItemAlignMiddle", "editorItemAlignRight", "editorItemAlignTop", "editorLink", "editorOrderedList", "editorPositionBottomLeft", "editorPositionBottomRight", "editorPositionTopLeft", "editorPositionTopRight", "editorRedo", "editorStrike", "editorTable", "editorUnderline", "editorUndo", "editorUnorderedList", "email", "empty", "emsApp", "eql", "eraser", "exit", "expand", "expandMini", "exportAction", "eye", "eyeClosed", "faceHappy", "faceNeutral", "faceSad", "filebeatApp", "filter", "flag", "fleetApp", "fold", "folderCheck", "folderClosed", "folderExclamation", "folderOpen", "frameNext", "framePrevious", "fullScreen", "fullScreenExit", "function", "gear", "gisApp", "glasses", "globe", "grab", "grabHorizontal", "graphApp", "grid", "grokApp", "heart", "heartbeatApp", "heatmap", "help", "home", "iInCircle", "image", "importAction", "indexClose", "indexEdit", "indexFlush", "indexManagementApp", "indexMapping", "indexOpen", "indexPatternApp", "indexRollupApp", "indexRuntime", "indexSettings", "inputOutput", "inspect", "invert", "ip", "keyboardShortcut", "kqlField", "kqlFunction", "kqlOperand", "kqlSelector", "kqlValue", "layers", "lensApp", "lettering", "lineDashed", "lineDotted", "lineSolid", "link", "list", "listAdd", "lock", "lockOpen", "logoAWS", "logoAWSMono", "logoAerospike", "logoApache", "logoAppSearch", "logoAzure", "logoAzureMono", "logoBeats", "logoBusinessAnalytics", "logoCeph", "logoCloud", "logoCloudEnterprise", "logoCode", "logoCodesandbox", "logoCouchbase", "logoDocker", "logoDropwizard", "logoElastic", "logoElasticStack", "logoElasticsearch", "logoEnterpriseSearch", "logoEtcd", "logoGCP", "logoGCPMono", "logoGithub", "logoGmail", "logoGolang", "logoGoogleG", "logoHAproxy", "logoIBM", "logoIBMMono", "logoKafka", "logoKibana", "logoKubernetes", "logoLogging", "logoLogstash", "logoMaps", "logoMemcached", "logoMetrics", "logoMongodb", "logoMySQL", "logoNginx", "logoObservability", "logoOsquery", "logoPhp", "logoPostgres", "logoPrometheus", "logoRabbitmq", "logoRedis", "logoSecurity", "logoSiteSearch", "logoSketch", "logoSlack", "logoUptime", "logoWebhook", "logoWindows", "logoWorkplaceSearch", "logsApp", "logstashFilter", "logstashIf", "logstashInput", "logstashOutput", "logstashQueue", "machineLearningApp", "magnet", "magnifyWithExclamation", "magnifyWithMinus", "magnifyWithPlus", "managementApp", "mapMarker", "memory", "menu", "menuDown", "menuLeft", "menuRight", "menuUp", "merge", "metricbeatApp", "metricsApp", "minimize", "minus", "minusInCircle", "minusInCircleFilled", "mobile", "monitoringApp", "moon", "nested", "node", "notebookApp", "number", "offline", "online", "outlierDetectionJob", "package", "packetbeatApp", "pageSelect", "pagesSelect", "paperClip", "partial", "pause", "payment", "pencil", "percent", "pin", "pinFilled", "pipelineApp", "play", "playFilled", "plus", "plusInCircle", "plusInCircleFilled", "popout", "push", "questionInCircle", "quote", "recentlyViewedApp", "refresh", "regressionJob", "reporter", "reportingApp", "returnKey", "save", "savedObjectsApp", "scale", "search", "searchProfilerApp", "securityAnalyticsApp", "securityApp", "securitySignal", "securitySignalDetected", "securitySignalResolved", "sessionViewer", "shard", "share", "snowflake", "sortDown", "sortLeft", "sortRight", "sortUp", "sortable", "spacesApp", "sqlApp", "starEmpty", "starEmptySpace", "starFilled", "starFilledSpace", "starMinusEmpty", "starMinusFilled", "starPlusEmpty", "starPlusFilled", "stats", "stop", "stopFilled", "stopSlash", "storage", "string", "submodule", "sun", "swatchInput", "symlink", "tableDensityCompact", "tableDensityExpanded", "tableDensityNormal", "tableOfContents", "tag", "tear", "temperature", "timeline", "timelionApp", "timeRefresh", "timeslider", "training", "trash", "unfold", "unlink", "upgradeAssistantApp", "uptimeApp", "user", "userAvatar", "users", "usersRolesApp", "vector", "videoPlayer", "visArea", "visAreaStacked", "visBarHorizontal", "visBarHorizontalStacked", "visBarVertical", "visBarVerticalStacked", "visGauge", "visGoal", "visLine", "visMapCoordinate", "visMapRegion", "visMetric", "visPie", "visTable", "visTagCloud", "visText", "visTimelion", "visVega", "visVisualBuilder", "visualizeApp", "watchesApp", "wordWrap", "wordWrapDisabled", "workplaceSearchApp", "wrench", "tokenClass", "tokenProperty", "tokenEnum", "tokenVariable", "tokenMethod", "tokenAnnotation", "tokenException", "tokenInterface", "tokenParameter", "tokenField", "tokenElement", "tokenFunction", "tokenBoolean", "tokenString", "tokenArray", "tokenNumber", "tokenConstant", "tokenObject", "tokenEvent", "tokenKey", "tokenNull", "tokenStruct", "tokenPackage", "tokenOperator", "tokenEnumMember", "tokenRepo", "tokenSymbol", "tokenFile", "tokenModule", "tokenNamespace", "tokenDate", "tokenIP", "tokenNested", "tokenAlias", "tokenShape", "tokenGeo", "tokenRange", "tokenBinary", "tokenJoin", "tokenPercolator", "tokenFlattened", "tokenRankFeature", "tokenRankFeatures", "tokenKeyword", "tokenTag", "tokenCompletionSuggester", "tokenDenseVector", "tokenText", "tokenTokenCount", "tokenSearchType", "tokenHistogram"]).isRequired, _propTypes.default.string.isRequired, _propTypes.default.elementType.isRequired])
|
|
77
|
-
};
|
|
78
|
-
var EuiLoadingLogo = (0, _system.withEuiSystem)(_EuiLoadingLogo);
|
|
79
|
-
exports.EuiLoadingLogo = EuiLoadingLogo;
|
|
77
|
+
};
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
6
|
+
exports.SIZES = exports.EuiLoadingSpinner = void 0;
|
|
7
7
|
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
|
|
@@ -11,7 +11,7 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
|
11
11
|
|
|
12
12
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _services = require("../..//services");
|
|
15
15
|
|
|
16
16
|
var _loading_strings = require("./_loading_strings");
|
|
17
17
|
|
|
@@ -19,7 +19,7 @@ var _loading_spinner = require("./loading_spinner.styles");
|
|
|
19
19
|
|
|
20
20
|
var _react2 = require("@emotion/react");
|
|
21
21
|
|
|
22
|
-
var _excluded = ["size", "className", "aria-label", "color"
|
|
22
|
+
var _excluded = ["size", "className", "aria-label", "color"];
|
|
23
23
|
|
|
24
24
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
25
25
|
|
|
@@ -32,15 +32,15 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
|
|
|
32
32
|
var SIZES = ['s', 'm', 'l', 'xl', 'xxl'];
|
|
33
33
|
exports.SIZES = SIZES;
|
|
34
34
|
|
|
35
|
-
var
|
|
35
|
+
var EuiLoadingSpinner = function EuiLoadingSpinner(_ref) {
|
|
36
36
|
var _ref$size = _ref.size,
|
|
37
37
|
size = _ref$size === void 0 ? 'm' : _ref$size,
|
|
38
38
|
className = _ref.className,
|
|
39
39
|
ariaLabel = _ref['aria-label'],
|
|
40
40
|
color = _ref.color,
|
|
41
|
-
euiTheme = _ref.euiTheme,
|
|
42
41
|
rest = _objectWithoutProperties(_ref, _excluded);
|
|
43
42
|
|
|
43
|
+
var euiTheme = (0, _services.useEuiTheme)();
|
|
44
44
|
var styles = (0, _loading_spinner.euiLoadingSpinnerStyles)(euiTheme, color);
|
|
45
45
|
var cssStyles = [styles.euiLoadingSpinner, styles[size]];
|
|
46
46
|
var classes = (0, _classnames.default)('euiLoadingSpinner', className);
|
|
@@ -53,8 +53,8 @@ var _EuiLoadingSpinner = function _EuiLoadingSpinner(_ref) {
|
|
|
53
53
|
}, rest));
|
|
54
54
|
};
|
|
55
55
|
|
|
56
|
-
exports.
|
|
57
|
-
|
|
56
|
+
exports.EuiLoadingSpinner = EuiLoadingSpinner;
|
|
57
|
+
EuiLoadingSpinner.propTypes = {
|
|
58
58
|
className: _propTypes.default.string,
|
|
59
59
|
"aria-label": _propTypes.default.string,
|
|
60
60
|
"data-test-subj": _propTypes.default.string,
|
|
@@ -69,6 +69,4 @@ _EuiLoadingSpinner.propTypes = {
|
|
|
69
69
|
border: _propTypes.default.any,
|
|
70
70
|
highlight: _propTypes.default.any
|
|
71
71
|
})
|
|
72
|
-
};
|
|
73
|
-
var EuiLoadingSpinner = (0, _system.withEuiSystem)(_EuiLoadingSpinner);
|
|
74
|
-
exports.EuiLoadingSpinner = EuiLoadingSpinner;
|
|
72
|
+
};
|