@elastic/eui 59.0.1 → 59.1.0-rc1
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 +2 -136
- package/dist/eui_theme_dark.json +0 -6
- package/dist/eui_theme_dark.json.d.ts +0 -6
- package/dist/eui_theme_dark.min.css +1 -1
- package/dist/eui_theme_light.css +2 -136
- package/dist/eui_theme_light.json +0 -6
- package/dist/eui_theme_light.json.d.ts +0 -6
- package/dist/eui_theme_light.min.css +1 -1
- package/es/components/accessibility/skip_link/skip_link.js +9 -7
- package/es/components/avatar/avatar.js +9 -7
- package/es/components/bottom_bar/bottom_bar.js +8 -9
- package/es/components/breadcrumbs/breadcrumbs.js +2 -1
- package/es/components/button/{button_content.js → _button_content_deprecated.js} +4 -3
- package/es/components/button/button.js +16 -10
- package/es/components/button/button_display/_button_display.js +141 -0
- package/es/components/button/button_display/_button_display.styles.js +53 -0
- package/es/components/button/button_display/_button_display_content.js +100 -0
- package/es/components/button/button_display/_button_display_content.styles.js +61 -0
- package/es/components/button/button_empty/button_empty.js +3 -2
- package/es/components/button/button_group/button_group.js +2 -1
- package/es/components/button/button_group/button_group_button.js +3 -2
- package/es/components/call_out/call_out.js +9 -8
- package/es/components/card/card.js +2 -1
- package/es/components/card/card_select.js +2 -1
- package/es/components/date_picker/auto_refresh/auto_refresh.js +2 -1
- package/es/components/expression/expression.js +11 -10
- package/es/components/facet/facet_button.js +36 -19
- package/es/components/facet/facet_button.styles.js +64 -0
- package/es/components/facet/facet_group.js +17 -27
- package/es/components/facet/facet_group.styles.js +79 -0
- package/es/components/header/header_links/header_link.js +2 -1
- package/es/components/health/health.js +7 -6
- package/es/components/horizontal_rule/horizontal_rule.js +7 -6
- package/es/components/link/link.js +8 -7
- package/es/components/loading/loading_chart.js +7 -6
- package/es/components/loading/loading_content.js +7 -6
- package/es/components/loading/loading_logo.js +7 -6
- package/es/components/loading/loading_spinner.js +20 -8
- package/es/components/loading/loading_spinner.styles.js +4 -4
- package/es/components/mark/mark.js +9 -8
- package/es/components/markdown_editor/markdown_format.js +7 -6
- package/es/components/notification/notification_event.js +2 -1
- package/es/components/pagination/pagination_button.js +2 -1
- package/es/components/panel/panel.js +8 -7
- package/es/components/provider/cache/cache_context.js +12 -0
- package/es/components/provider/cache/cache_provider.js +17 -0
- package/es/components/provider/cache/index.js +9 -0
- package/es/components/provider/index.js +1 -1
- package/es/components/provider/provider.js +39 -5
- package/es/components/provider/system/index.js +8 -0
- package/es/components/provider/system/system.js +33 -0
- package/es/components/spacer/spacer.js +7 -6
- package/es/components/text/text.js +7 -6
- package/es/components/text/text_color.js +7 -6
- package/es/components/timeline/timeline_item.js +7 -6
- package/es/components/timeline/timeline_item_icon.js +7 -6
- package/es/components/title/title.js +7 -6
- package/es/global_styling/utility/utility.js +27 -0
- package/es/services/theme/hooks.js +2 -2
- package/es/services/theme/provider.js +1 -5
- package/eui.d.ts +1030 -357
- package/i18ntokens.json +12 -12
- package/lib/components/accessibility/skip_link/skip_link.js +13 -10
- package/lib/components/avatar/avatar.js +12 -8
- package/lib/components/bottom_bar/bottom_bar.js +9 -6
- package/lib/components/breadcrumbs/breadcrumbs.js +2 -1
- package/lib/components/button/{button_content.js → _button_content_deprecated.js} +6 -5
- package/lib/components/button/button.js +19 -13
- package/lib/components/button/button_display/_button_display.js +146 -0
- package/lib/components/button/button_display/_button_display.styles.js +59 -0
- package/lib/components/button/button_display/_button_display_content.js +111 -0
- package/lib/components/button/button_display/_button_display_content.styles.js +64 -0
- package/lib/components/button/button_empty/button_empty.js +4 -3
- package/lib/components/button/button_group/button_group.js +2 -1
- package/lib/components/button/button_group/button_group_button.js +3 -2
- package/lib/components/call_out/call_out.js +14 -10
- package/lib/components/card/card.js +2 -1
- package/lib/components/card/card_select.js +2 -1
- package/lib/components/date_picker/auto_refresh/auto_refresh.js +2 -1
- package/lib/components/expression/expression.js +14 -12
- package/lib/components/facet/facet_button.js +43 -21
- package/lib/components/facet/facet_button.styles.js +79 -0
- package/lib/components/facet/facet_group.js +20 -29
- package/lib/components/facet/facet_group.styles.js +82 -0
- package/lib/components/header/header_links/header_link.js +2 -1
- package/lib/components/health/health.js +10 -8
- package/lib/components/horizontal_rule/horizontal_rule.js +10 -8
- package/lib/components/link/link.js +13 -7
- package/lib/components/loading/loading_chart.js +10 -8
- package/lib/components/loading/loading_content.js +10 -8
- package/lib/components/loading/loading_logo.js +10 -8
- package/lib/components/loading/loading_spinner.js +23 -10
- package/lib/components/loading/loading_spinner.styles.js +4 -4
- package/lib/components/mark/mark.js +12 -10
- package/lib/components/markdown_editor/markdown_format.js +10 -8
- package/lib/components/notification/notification_event.js +2 -1
- package/lib/components/panel/panel.js +11 -9
- package/lib/components/provider/cache/cache_context.js +24 -0
- package/lib/components/provider/cache/cache_provider.js +29 -0
- package/lib/components/provider/cache/index.js +31 -0
- package/lib/components/provider/index.js +12 -7
- package/lib/components/provider/provider.js +40 -5
- package/lib/components/provider/system/index.js +18 -0
- package/lib/components/provider/system/system.js +45 -0
- package/lib/components/spacer/spacer.js +10 -8
- package/lib/components/text/text.js +10 -8
- package/lib/components/text/text_color.js +10 -8
- package/lib/components/timeline/timeline_item.js +10 -8
- package/lib/components/timeline/timeline_item_icon.js +10 -8
- package/lib/components/title/title.js +11 -9
- package/lib/global_styling/utility/utility.js +31 -0
- package/lib/services/theme/hooks.js +2 -2
- package/lib/services/theme/provider.js +3 -6
- package/optimize/es/components/accessibility/skip_link/skip_link.js +6 -5
- package/optimize/es/components/avatar/avatar.js +7 -5
- package/optimize/es/components/bottom_bar/bottom_bar.js +8 -9
- package/optimize/es/components/breadcrumbs/breadcrumbs.js +2 -1
- package/optimize/es/components/button/{button_content.js → _button_content_deprecated.js} +1 -1
- package/optimize/es/components/button/button.js +13 -8
- package/optimize/es/components/button/button_display/_button_display.js +73 -0
- package/optimize/es/components/button/button_display/_button_display.styles.js +53 -0
- package/optimize/es/components/button/button_display/_button_display_content.js +67 -0
- package/optimize/es/components/button/button_display/_button_display_content.styles.js +61 -0
- package/optimize/es/components/button/button_empty/button_empty.js +1 -1
- package/optimize/es/components/button/button_group/button_group_button.js +1 -1
- package/optimize/es/components/call_out/call_out.js +8 -7
- package/optimize/es/components/expression/expression.js +10 -9
- package/optimize/es/components/facet/facet_button.js +35 -18
- package/optimize/es/components/facet/facet_button.styles.js +64 -0
- package/optimize/es/components/facet/facet_group.js +14 -24
- package/optimize/es/components/facet/facet_group.styles.js +79 -0
- package/optimize/es/components/health/health.js +6 -5
- package/optimize/es/components/horizontal_rule/horizontal_rule.js +6 -5
- package/optimize/es/components/link/link.js +7 -6
- package/optimize/es/components/loading/loading_chart.js +6 -5
- package/optimize/es/components/loading/loading_content.js +6 -5
- package/optimize/es/components/loading/loading_logo.js +6 -5
- package/optimize/es/components/loading/loading_spinner.js +8 -6
- package/optimize/es/components/loading/loading_spinner.styles.js +4 -4
- package/optimize/es/components/mark/mark.js +8 -7
- package/optimize/es/components/markdown_editor/markdown_format.js +6 -5
- package/optimize/es/components/panel/panel.js +7 -6
- package/optimize/es/components/provider/cache/cache_context.js +12 -0
- package/optimize/es/components/provider/cache/cache_provider.js +17 -0
- package/optimize/es/components/provider/cache/index.js +9 -0
- package/optimize/es/components/provider/index.js +1 -1
- package/optimize/es/components/provider/provider.js +39 -5
- package/optimize/es/components/provider/system/index.js +8 -0
- package/optimize/es/components/provider/system/system.js +33 -0
- package/optimize/es/components/spacer/spacer.js +6 -5
- package/optimize/es/components/text/text.js +6 -5
- package/optimize/es/components/text/text_color.js +6 -5
- package/optimize/es/components/timeline/timeline_item.js +6 -5
- package/optimize/es/components/timeline/timeline_item_icon.js +6 -5
- package/optimize/es/components/title/title.js +6 -5
- package/optimize/es/global_styling/utility/utility.js +27 -0
- package/optimize/es/services/theme/hooks.js +2 -2
- package/optimize/es/services/theme/provider.js +1 -5
- package/optimize/lib/components/accessibility/skip_link/skip_link.js +8 -6
- package/optimize/lib/components/avatar/avatar.js +9 -5
- package/optimize/lib/components/bottom_bar/bottom_bar.js +9 -6
- package/optimize/lib/components/breadcrumbs/breadcrumbs.js +2 -1
- package/optimize/lib/components/button/{button_content.js → _button_content_deprecated.js} +3 -3
- package/optimize/lib/components/button/button.js +16 -11
- package/optimize/lib/components/button/button_display/_button_display.js +79 -0
- package/optimize/lib/components/button/button_display/_button_display.styles.js +59 -0
- package/optimize/lib/components/button/button_display/_button_display_content.js +78 -0
- package/optimize/lib/components/button/button_display/_button_display_content.styles.js +64 -0
- package/optimize/lib/components/button/button_empty/button_empty.js +2 -2
- package/optimize/lib/components/button/button_group/button_group_button.js +1 -1
- package/optimize/lib/components/call_out/call_out.js +13 -9
- package/optimize/lib/components/expression/expression.js +11 -9
- package/optimize/lib/components/facet/facet_button.js +40 -18
- package/optimize/lib/components/facet/facet_button.styles.js +79 -0
- package/optimize/lib/components/facet/facet_group.js +15 -24
- package/optimize/lib/components/facet/facet_group.styles.js +82 -0
- package/optimize/lib/components/health/health.js +7 -5
- package/optimize/lib/components/horizontal_rule/horizontal_rule.js +7 -5
- package/optimize/lib/components/link/link.js +12 -6
- package/optimize/lib/components/loading/loading_chart.js +7 -5
- package/optimize/lib/components/loading/loading_content.js +7 -5
- package/optimize/lib/components/loading/loading_logo.js +7 -5
- package/optimize/lib/components/loading/loading_spinner.js +9 -6
- package/optimize/lib/components/loading/loading_spinner.styles.js +4 -4
- package/optimize/lib/components/mark/mark.js +9 -7
- package/optimize/lib/components/markdown_editor/markdown_format.js +7 -5
- package/optimize/lib/components/panel/panel.js +8 -6
- package/optimize/lib/components/provider/cache/cache_context.js +24 -0
- package/optimize/lib/components/provider/cache/cache_provider.js +29 -0
- package/optimize/lib/components/provider/cache/index.js +31 -0
- package/optimize/lib/components/provider/index.js +12 -7
- package/optimize/lib/components/provider/provider.js +40 -5
- package/optimize/lib/components/provider/system/index.js +18 -0
- package/optimize/lib/components/provider/system/system.js +54 -0
- package/optimize/lib/components/spacer/spacer.js +7 -5
- package/optimize/lib/components/text/text.js +7 -5
- package/optimize/lib/components/text/text_color.js +7 -5
- package/optimize/lib/components/timeline/timeline_item.js +7 -5
- package/optimize/lib/components/timeline/timeline_item_icon.js +7 -5
- package/optimize/lib/components/title/title.js +8 -6
- package/optimize/lib/global_styling/utility/utility.js +31 -0
- package/optimize/lib/services/theme/hooks.js +2 -2
- package/optimize/lib/services/theme/provider.js +3 -6
- package/package.json +1 -1
- package/src/components/index.scss +0 -1
- package/src/components/selectable/selectable_message/_selectable_message.scss +1 -0
- package/src/themes/amsterdam/overrides/_index.scss +0 -1
- package/test-env/components/accessibility/skip_link/skip_link.js +13 -10
- package/test-env/components/avatar/avatar.js +12 -8
- package/test-env/components/bottom_bar/bottom_bar.js +9 -6
- package/test-env/components/breadcrumbs/breadcrumbs.js +2 -1
- package/test-env/components/button/{button_content.js → _button_content_deprecated.js} +6 -5
- package/test-env/components/button/button.js +19 -13
- package/test-env/components/button/button_display/_button_display.js +143 -0
- package/test-env/components/button/button_display/_button_display.styles.js +59 -0
- package/test-env/components/button/button_display/_button_display_content.js +108 -0
- package/test-env/components/button/button_display/_button_display_content.styles.js +64 -0
- package/test-env/components/button/button_empty/button_empty.js +4 -3
- package/test-env/components/button/button_group/button_group.js +2 -1
- package/test-env/components/button/button_group/button_group_button.js +3 -2
- package/test-env/components/call_out/call_out.js +14 -10
- package/test-env/components/card/card.js +2 -1
- package/test-env/components/card/card_select.js +2 -1
- package/test-env/components/date_picker/auto_refresh/auto_refresh.js +2 -1
- package/test-env/components/expression/expression.js +14 -12
- package/test-env/components/facet/facet_button.js +43 -21
- package/test-env/components/facet/facet_button.styles.js +79 -0
- package/test-env/components/facet/facet_group.js +20 -29
- package/test-env/components/facet/facet_group.styles.js +82 -0
- package/test-env/components/header/header_links/header_link.js +2 -1
- package/test-env/components/health/health.js +10 -8
- package/test-env/components/horizontal_rule/horizontal_rule.js +10 -8
- package/test-env/components/link/link.js +13 -7
- package/test-env/components/loading/loading_chart.js +10 -8
- package/test-env/components/loading/loading_content.js +10 -8
- package/test-env/components/loading/loading_logo.js +10 -8
- package/test-env/components/loading/loading_spinner.js +23 -10
- package/test-env/components/loading/loading_spinner.styles.js +4 -4
- package/test-env/components/mark/mark.js +12 -10
- package/test-env/components/markdown_editor/markdown_format.js +10 -8
- package/test-env/components/notification/notification_event.js +2 -1
- package/test-env/components/panel/panel.js +11 -9
- package/test-env/components/provider/cache/cache_context.js +24 -0
- package/test-env/components/provider/cache/cache_provider.js +29 -0
- package/test-env/components/provider/cache/index.js +31 -0
- package/test-env/components/provider/index.js +12 -7
- package/test-env/components/provider/provider.js +40 -5
- package/test-env/components/provider/system/index.js +18 -0
- package/test-env/components/provider/system/system.js +54 -0
- package/test-env/components/spacer/spacer.js +10 -8
- package/test-env/components/text/text.js +10 -8
- package/test-env/components/text/text_color.js +10 -8
- package/test-env/components/timeline/timeline_item.js +10 -8
- package/test-env/components/timeline/timeline_item_icon.js +10 -8
- package/test-env/components/title/title.js +11 -9
- package/test-env/global_styling/utility/utility.js +31 -0
- package/test-env/services/theme/hooks.js +2 -2
- package/test-env/services/theme/provider.js +3 -6
- package/src/components/facet/_facet_button.scss +0 -69
- package/src/components/facet/_facet_group.scss +0 -24
- package/src/components/facet/_index.scss +0 -4
- package/src/components/facet/_variables.scss +0 -6
- package/src/themes/amsterdam/overrides/_facet.scss +0 -10
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.LAYOUTS = exports.GUTTER_SIZES = exports.EuiFacetGroup = void 0;
|
|
6
|
+
exports._EuiFacetGroup = 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 _system = require("../provider/system");
|
|
15
15
|
|
|
16
|
-
var
|
|
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", "euiTheme"];
|
|
21
21
|
|
|
22
22
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
23
23
|
|
|
@@ -27,43 +27,32 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
|
|
|
27
27
|
|
|
28
28
|
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; }
|
|
29
29
|
|
|
30
|
-
var
|
|
31
|
-
vertical: 'euiFacetGroup--vertical',
|
|
32
|
-
horizontal: 'euiFacetGroup--horizontal'
|
|
33
|
-
};
|
|
34
|
-
var LAYOUTS = (0, _common.keysOf)(layoutToClassNameMap);
|
|
30
|
+
var LAYOUTS = ['vertical', 'horizontal'];
|
|
35
31
|
exports.LAYOUTS = LAYOUTS;
|
|
36
|
-
var
|
|
37
|
-
none: 'euiFacetGroup--gutterNone',
|
|
38
|
-
s: 'euiFacetGroup--gutterSmall',
|
|
39
|
-
m: 'euiFacetGroup--gutterMedium',
|
|
40
|
-
l: 'euiFacetGroup--gutterLarge'
|
|
41
|
-
};
|
|
42
|
-
var GUTTER_SIZES = (0, _common.keysOf)(gutterSizeToClassNameMap);
|
|
32
|
+
var GUTTER_SIZES = ['none', 's', 'm', 'l'];
|
|
43
33
|
exports.GUTTER_SIZES = GUTTER_SIZES;
|
|
44
34
|
|
|
45
|
-
var
|
|
35
|
+
var _EuiFacetGroup = function _EuiFacetGroup(_ref) {
|
|
46
36
|
var children = _ref.children,
|
|
47
37
|
className = _ref.className,
|
|
48
38
|
_ref$layout = _ref.layout,
|
|
49
39
|
layout = _ref$layout === void 0 ? 'vertical' : _ref$layout,
|
|
50
40
|
_ref$gutterSize = _ref.gutterSize,
|
|
51
41
|
gutterSize = _ref$gutterSize === void 0 ? 'm' : _ref$gutterSize,
|
|
42
|
+
euiTheme = _ref.euiTheme,
|
|
52
43
|
rest = _objectWithoutProperties(_ref, _excluded);
|
|
53
44
|
|
|
54
|
-
var
|
|
55
|
-
var
|
|
56
|
-
var
|
|
57
|
-
return (0, _react2.jsx)(
|
|
45
|
+
var styles = (0, _facet_group.euiFacetGroupStyles)(euiTheme, layout);
|
|
46
|
+
var cssStyles = [styles.euiFacetGroup, styles[gutterSize], styles[layout]];
|
|
47
|
+
var classes = (0, _classnames.default)('euiFacetGroup', className);
|
|
48
|
+
return (0, _react2.jsx)("div", _extends({
|
|
58
49
|
className: classes,
|
|
59
|
-
|
|
60
|
-
wrap: wrap,
|
|
61
|
-
gutterSize: "none"
|
|
50
|
+
css: cssStyles
|
|
62
51
|
}, rest), children);
|
|
63
52
|
};
|
|
64
53
|
|
|
65
|
-
exports.
|
|
66
|
-
|
|
54
|
+
exports._EuiFacetGroup = _EuiFacetGroup;
|
|
55
|
+
_EuiFacetGroup.propTypes = {
|
|
67
56
|
className: _propTypes.default.string,
|
|
68
57
|
"aria-label": _propTypes.default.string,
|
|
69
58
|
"data-test-subj": _propTypes.default.string,
|
|
@@ -71,11 +60,13 @@ EuiFacetGroup.propTypes = {
|
|
|
71
60
|
/**
|
|
72
61
|
* Vertically in a column, or horizontally in one wrapping line
|
|
73
62
|
*/
|
|
74
|
-
layout: _propTypes.default.
|
|
63
|
+
layout: _propTypes.default.any,
|
|
75
64
|
|
|
76
65
|
/**
|
|
77
66
|
* Distance between facet buttons.
|
|
78
67
|
* Horizontal layout always adds more distance horizontally between buttons.
|
|
79
68
|
*/
|
|
80
|
-
gutterSize: _propTypes.default.
|
|
81
|
-
};
|
|
69
|
+
gutterSize: _propTypes.default.any
|
|
70
|
+
};
|
|
71
|
+
var EuiFacetGroup = (0, _system.withEuiSystem)(_EuiFacetGroup);
|
|
72
|
+
exports.EuiFacetGroup = EuiFacetGroup;
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.euiFacetGroupStyles = void 0;
|
|
7
|
+
|
|
8
|
+
var _react = require("@emotion/react");
|
|
9
|
+
|
|
10
|
+
var _services = require("../../services");
|
|
11
|
+
|
|
12
|
+
function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
|
|
13
|
+
|
|
14
|
+
var _facetGroupGutterSize = function _facetGroupGutterSize(_ref4) {
|
|
15
|
+
var gutterSize = _ref4.gutterSize,
|
|
16
|
+
layout = _ref4.layout;
|
|
17
|
+
|
|
18
|
+
var _useEuiTheme = (0, _services.useEuiTheme)(),
|
|
19
|
+
euiTheme = _useEuiTheme.euiTheme;
|
|
20
|
+
|
|
21
|
+
var isHorizontalLayout = layout === 'horizontal';
|
|
22
|
+
var gutterHorizontal = "calc(".concat(euiTheme.size.m, " + ").concat(gutterSize, ")");
|
|
23
|
+
var gutterVertical = gutterSize;
|
|
24
|
+
return isHorizontalLayout ? "gap: ".concat(gutterVertical, " ").concat(gutterHorizontal, ";") : "gap: ".concat(gutterVertical, " 0;");
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
var _ref = process.env.NODE_ENV === "production" ? {
|
|
28
|
+
name: "omnk2l-vertical",
|
|
29
|
+
styles: "flex-direction:column;label:vertical;"
|
|
30
|
+
} : {
|
|
31
|
+
name: "omnk2l-vertical",
|
|
32
|
+
styles: "flex-direction:column;label:vertical;",
|
|
33
|
+
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
var _ref2 = process.env.NODE_ENV === "production" ? {
|
|
37
|
+
name: "envaaw-horizontal",
|
|
38
|
+
styles: "flex-direction:row;flex-wrap:wrap;label:horizontal;"
|
|
39
|
+
} : {
|
|
40
|
+
name: "envaaw-horizontal",
|
|
41
|
+
styles: "flex-direction:row;flex-wrap:wrap;label:horizontal;",
|
|
42
|
+
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
var _ref3 = process.env.NODE_ENV === "production" ? {
|
|
46
|
+
name: "1g68sie-euiFacetGroup",
|
|
47
|
+
styles: "display:flex;flex-grow:1;label:euiFacetGroup;"
|
|
48
|
+
} : {
|
|
49
|
+
name: "1g68sie-euiFacetGroup",
|
|
50
|
+
styles: "display:flex;flex-grow:1;label:euiFacetGroup;",
|
|
51
|
+
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
var euiFacetGroupStyles = function euiFacetGroupStyles(_ref5, layout) {
|
|
55
|
+
var euiTheme = _ref5.euiTheme;
|
|
56
|
+
return {
|
|
57
|
+
// Base
|
|
58
|
+
euiFacetGroup: _ref3,
|
|
59
|
+
// Gutter sizes
|
|
60
|
+
none: /*#__PURE__*/(0, _react.css)(_facetGroupGutterSize({
|
|
61
|
+
gutterSize: '0',
|
|
62
|
+
layout: layout
|
|
63
|
+
}), ";label:none;"),
|
|
64
|
+
s: /*#__PURE__*/(0, _react.css)(_facetGroupGutterSize({
|
|
65
|
+
gutterSize: euiTheme.size.xs,
|
|
66
|
+
layout: layout
|
|
67
|
+
}), ";label:s;"),
|
|
68
|
+
m: /*#__PURE__*/(0, _react.css)(_facetGroupGutterSize({
|
|
69
|
+
gutterSize: euiTheme.size.s,
|
|
70
|
+
layout: layout
|
|
71
|
+
}), ";label:m;"),
|
|
72
|
+
l: /*#__PURE__*/(0, _react.css)(_facetGroupGutterSize({
|
|
73
|
+
gutterSize: euiTheme.size.m,
|
|
74
|
+
layout: layout
|
|
75
|
+
}), ";label:l;"),
|
|
76
|
+
// layouts
|
|
77
|
+
horizontal: _ref2,
|
|
78
|
+
vertical: _ref
|
|
79
|
+
};
|
|
80
|
+
};
|
|
81
|
+
|
|
82
|
+
exports.euiFacetGroupStyles = euiFacetGroupStyles;
|
|
@@ -120,7 +120,8 @@ EuiHeaderLink.propTypes = {
|
|
|
120
120
|
iconSide: _propTypes.default.oneOf(["left", "right"]),
|
|
121
121
|
|
|
122
122
|
/**
|
|
123
|
-
* Object of props passed to the <span/> wrapping the content's text
|
|
123
|
+
* Object of props passed to the <span/> wrapping the content's text (only if the children is a `string`)
|
|
124
|
+
* It doesn't apply to the icon.
|
|
124
125
|
*/
|
|
125
126
|
textProps: _propTypes.default.shape({
|
|
126
127
|
className: _propTypes.default.string,
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.TEXT_SIZES = exports.EuiHealth = void 0;
|
|
6
|
+
exports._EuiHealth = 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 _system = require("../provider/system");
|
|
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", "textSize"];
|
|
24
|
+
var _excluded = ["children", "className", "color", "euiTheme", "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,
|
|
41
42
|
_ref$textSize = _ref.textSize,
|
|
42
43
|
textSize = _ref$textSize === void 0 ? 's' : _ref$textSize,
|
|
43
44
|
rest = _objectWithoutProperties(_ref, _excluded);
|
|
44
45
|
|
|
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,4 +81,6 @@ 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
|
-
};
|
|
84
|
+
};
|
|
85
|
+
var EuiHealth = (0, _system.withEuiSystem)(_EuiHealth);
|
|
86
|
+
exports.EuiHealth = EuiHealth;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.SIZES = exports.MARGINS = exports.EuiHorizontalRule = void 0;
|
|
6
|
+
exports._EuiHorizontalRule = 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 _system = require("../provider/system");
|
|
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", "size", "margin"];
|
|
20
|
+
var _excluded = ["className", "euiTheme", "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,
|
|
50
51
|
_ref$size = _ref.size,
|
|
51
52
|
size = _ref$size === void 0 ? 'full' : _ref$size,
|
|
52
53
|
_ref$margin = _ref.margin,
|
|
53
54
|
margin = _ref$margin === void 0 ? 'l' : _ref$margin,
|
|
54
55
|
rest = _objectWithoutProperties(_ref, _excluded);
|
|
55
56
|
|
|
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,4 +73,6 @@ EuiHorizontalRule.propTypes = {
|
|
|
73
73
|
className: _propTypes.default.string,
|
|
74
74
|
"aria-label": _propTypes.default.string,
|
|
75
75
|
"data-test-subj": _propTypes.default.string
|
|
76
|
-
};
|
|
76
|
+
};
|
|
77
|
+
var EuiHorizontalRule = (0, _system.withEuiSystem)(_EuiHorizontalRule);
|
|
78
|
+
exports.EuiHorizontalRule = EuiHorizontalRule;
|
|
@@ -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.EuiLink = exports.COLORS = void 0;
|
|
8
|
+
exports._EuiLink = exports.EuiLink = exports.COLORS = void 0;
|
|
9
9
|
|
|
10
10
|
var _react = _interopRequireWildcard(require("react"));
|
|
11
11
|
|
|
@@ -15,6 +15,8 @@ var _classnames = _interopRequireDefault(require("classnames"));
|
|
|
15
15
|
|
|
16
16
|
var _services = require("../../services");
|
|
17
17
|
|
|
18
|
+
var _system = require("../provider/system");
|
|
19
|
+
|
|
18
20
|
var _link = require("./link.styles");
|
|
19
21
|
|
|
20
22
|
var _icon = require("../icon");
|
|
@@ -27,7 +29,7 @@ var _href_validator = require("../../services/security/href_validator");
|
|
|
27
29
|
|
|
28
30
|
var _react2 = require("@emotion/react");
|
|
29
31
|
|
|
30
|
-
var _excluded = ["children", "color", "className", "href", "external", "target", "rel", "type", "onClick", "disabled"];
|
|
32
|
+
var _excluded = ["children", "color", "className", "href", "external", "target", "rel", "type", "onClick", "disabled", "euiTheme"];
|
|
31
33
|
|
|
32
34
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
33
35
|
|
|
@@ -49,7 +51,8 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
|
|
|
49
51
|
|
|
50
52
|
var COLORS = ['primary', 'subdued', 'success', 'accent', 'danger', 'warning', 'text', 'ghost'];
|
|
51
53
|
exports.COLORS = COLORS;
|
|
52
|
-
|
|
54
|
+
|
|
55
|
+
var _EuiLink = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
|
53
56
|
var children = _ref.children,
|
|
54
57
|
_ref$color = _ref.color,
|
|
55
58
|
color = _ref$color === void 0 ? 'primary' : _ref$color,
|
|
@@ -62,9 +65,9 @@ var EuiLink = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
|
|
62
65
|
type = _ref$type === void 0 ? 'button' : _ref$type,
|
|
63
66
|
onClick = _ref.onClick,
|
|
64
67
|
_disabled = _ref.disabled,
|
|
68
|
+
euiTheme = _ref.euiTheme,
|
|
65
69
|
rest = _objectWithoutProperties(_ref, _excluded);
|
|
66
70
|
|
|
67
|
-
var euiTheme = (0, _services.useEuiTheme)();
|
|
68
71
|
var styles = (0, _link.euiLinkStyles)(euiTheme);
|
|
69
72
|
var cssStyles = [styles.euiLink];
|
|
70
73
|
var cssScreenReaderTextStyles = [styles.euiLink__screenReaderText];
|
|
@@ -118,8 +121,9 @@ var EuiLink = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
|
|
118
121
|
ref: ref
|
|
119
122
|
}, anchorProps), children, showExternalLinkIcon && externalLinkIcon, target === '_blank' && newTargetScreenreaderText);
|
|
120
123
|
});
|
|
121
|
-
|
|
122
|
-
|
|
124
|
+
|
|
125
|
+
exports._EuiLink = _EuiLink;
|
|
126
|
+
_EuiLink.propTypes = {
|
|
123
127
|
className: _propTypes.default.string,
|
|
124
128
|
"aria-label": _propTypes.default.string,
|
|
125
129
|
"data-test-subj": _propTypes.default.string,
|
|
@@ -141,4 +145,6 @@ EuiLink.propTypes = {
|
|
|
141
145
|
*/
|
|
142
146
|
external: _propTypes.default.bool
|
|
143
147
|
};
|
|
144
|
-
|
|
148
|
+
_EuiLink.displayName = 'EuiLink';
|
|
149
|
+
var EuiLink = (0, _system.withEuiSystem)(_EuiLink);
|
|
150
|
+
exports.EuiLink = EuiLink;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.SIZES = exports.EuiLoadingChart = void 0;
|
|
6
|
+
exports._EuiLoadingChart = 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 _system = require("../provider/system");
|
|
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", "euiTheme"];
|
|
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,
|
|
42
43
|
rest = _objectWithoutProperties(_ref, _excluded);
|
|
43
44
|
|
|
44
45
|
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,11 +71,13 @@ 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
|
-
};
|
|
81
|
+
};
|
|
82
|
+
var EuiLoadingChart = (0, _system.withEuiSystem)(_EuiLoadingChart);
|
|
83
|
+
exports.EuiLoadingChart = EuiLoadingChart;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.EuiLoadingContent = void 0;
|
|
6
|
+
exports._EuiLoadingContent = 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 _system = require("../provider/system");
|
|
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", "euiTheme"];
|
|
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,
|
|
37
38
|
rest = _objectWithoutProperties(_ref, _excluded);
|
|
38
39
|
|
|
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,10 +57,12 @@ 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
|
-
};
|
|
66
|
+
};
|
|
67
|
+
var EuiLoadingContent = (0, _system.withEuiSystem)(_EuiLoadingContent);
|
|
68
|
+
exports.EuiLoadingContent = EuiLoadingContent;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.SIZES = exports.EuiLoadingLogo = void 0;
|
|
6
|
+
exports._EuiLoadingLogo = 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 _system = require("../provider/system");
|
|
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", "euiTheme"];
|
|
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,
|
|
44
45
|
rest = _objectWithoutProperties(_ref, _excluded);
|
|
45
46
|
|
|
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,4 +74,6 @@ 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
|
-
};
|
|
77
|
+
};
|
|
78
|
+
var EuiLoadingLogo = (0, _system.withEuiSystem)(_EuiLoadingLogo);
|
|
79
|
+
exports.EuiLoadingLogo = EuiLoadingLogo;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.SIZES = exports.EuiLoadingSpinner = void 0;
|
|
6
|
+
exports._EuiLoadingSpinner = 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 _system = require("../provider/system");
|
|
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"];
|
|
22
|
+
var _excluded = ["size", "className", "aria-label", "color", "euiTheme"];
|
|
23
23
|
|
|
24
24
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
25
25
|
|
|
@@ -32,15 +32,16 @@ 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
|
+
color = _ref.color,
|
|
41
|
+
euiTheme = _ref.euiTheme,
|
|
40
42
|
rest = _objectWithoutProperties(_ref, _excluded);
|
|
41
43
|
|
|
42
|
-
var
|
|
43
|
-
var styles = (0, _loading_spinner.euiLoadingSpinnerStyles)(euiTheme);
|
|
44
|
+
var styles = (0, _loading_spinner.euiLoadingSpinnerStyles)(euiTheme, color);
|
|
44
45
|
var cssStyles = [styles.euiLoadingSpinner, styles[size]];
|
|
45
46
|
var classes = (0, _classnames.default)('euiLoadingSpinner', className);
|
|
46
47
|
var defaultLabel = (0, _loading_strings.useLoadingAriaLabel)();
|
|
@@ -52,10 +53,22 @@ var EuiLoadingSpinner = function EuiLoadingSpinner(_ref) {
|
|
|
52
53
|
}, rest));
|
|
53
54
|
};
|
|
54
55
|
|
|
55
|
-
exports.
|
|
56
|
-
|
|
56
|
+
exports._EuiLoadingSpinner = _EuiLoadingSpinner;
|
|
57
|
+
_EuiLoadingSpinner.propTypes = {
|
|
57
58
|
className: _propTypes.default.string,
|
|
58
59
|
"aria-label": _propTypes.default.string,
|
|
59
60
|
"data-test-subj": _propTypes.default.string,
|
|
60
|
-
size: _propTypes.default.any
|
|
61
|
-
|
|
61
|
+
size: _propTypes.default.any,
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* Sets the color of the border and highlight.
|
|
65
|
+
* Each key accepts any valid CSS color value as a `string`
|
|
66
|
+
* See #EuiLoadingSpinnerColor
|
|
67
|
+
*/
|
|
68
|
+
color: _propTypes.default.shape({
|
|
69
|
+
border: _propTypes.default.any,
|
|
70
|
+
highlight: _propTypes.default.any
|
|
71
|
+
})
|
|
72
|
+
};
|
|
73
|
+
var EuiLoadingSpinner = (0, _system.withEuiSystem)(_EuiLoadingSpinner);
|
|
74
|
+
exports.EuiLoadingSpinner = EuiLoadingSpinner;
|