@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
|
@@ -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;
|
|
@@ -117,7 +117,8 @@ EuiHeaderLink.propTypes = {
|
|
|
117
117
|
iconSide: _propTypes.default.oneOf(["left", "right"]),
|
|
118
118
|
|
|
119
119
|
/**
|
|
120
|
-
* Object of props passed to the <span/> wrapping the content's text
|
|
120
|
+
* Object of props passed to the <span/> wrapping the content's text (only if the children is a `string`)
|
|
121
|
+
* It doesn't apply to the icon.
|
|
121
122
|
*/
|
|
122
123
|
textProps: _propTypes.default.shape({
|
|
123
124
|
className: _propTypes.default.string,
|
|
@@ -5,7 +5,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
|
-
exports.TEXT_SIZES = exports.EuiHealth = void 0;
|
|
8
|
+
exports._EuiHealth = exports.TEXT_SIZES = exports.EuiHealth = void 0;
|
|
9
9
|
|
|
10
10
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
11
11
|
|
|
@@ -17,7 +17,7 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
|
17
17
|
|
|
18
18
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
19
19
|
|
|
20
|
-
var
|
|
20
|
+
var _system = require("../provider/system");
|
|
21
21
|
|
|
22
22
|
var _health = require("./health.styles");
|
|
23
23
|
|
|
@@ -27,18 +27,18 @@ var _flex = require("../flex");
|
|
|
27
27
|
|
|
28
28
|
var _react2 = require("@emotion/react");
|
|
29
29
|
|
|
30
|
-
var _excluded = ["children", "className", "color", "textSize"];
|
|
30
|
+
var _excluded = ["children", "className", "color", "euiTheme", "textSize"];
|
|
31
31
|
var TEXT_SIZES = ['xs', 's', 'm', 'inherit'];
|
|
32
32
|
exports.TEXT_SIZES = TEXT_SIZES;
|
|
33
33
|
|
|
34
|
-
var
|
|
34
|
+
var _EuiHealth = function _EuiHealth(_ref) {
|
|
35
35
|
var children = _ref.children,
|
|
36
36
|
className = _ref.className,
|
|
37
37
|
color = _ref.color,
|
|
38
|
+
euiTheme = _ref.euiTheme,
|
|
38
39
|
_ref$textSize = _ref.textSize,
|
|
39
40
|
textSize = _ref$textSize === void 0 ? 's' : _ref$textSize,
|
|
40
41
|
rest = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
41
|
-
var euiTheme = (0, _services.useEuiTheme)();
|
|
42
42
|
var styles = (0, _health.euiHealthStyles)(euiTheme);
|
|
43
43
|
var cssStyles = [styles.euiHealth, styles[textSize]];
|
|
44
44
|
var classes = (0, _classnames.default)('euiHealth', className);
|
|
@@ -59,8 +59,8 @@ var EuiHealth = function EuiHealth(_ref) {
|
|
|
59
59
|
}, children)));
|
|
60
60
|
};
|
|
61
61
|
|
|
62
|
-
exports.
|
|
63
|
-
|
|
62
|
+
exports._EuiHealth = _EuiHealth;
|
|
63
|
+
_EuiHealth.propTypes = {
|
|
64
64
|
className: _propTypes.default.string,
|
|
65
65
|
"aria-label": _propTypes.default.string,
|
|
66
66
|
"data-test-subj": _propTypes.default.string,
|
|
@@ -77,4 +77,6 @@ EuiHealth.propTypes = {
|
|
|
77
77
|
* The `inherit` style will get its font size from the parent element
|
|
78
78
|
*/
|
|
79
79
|
textSize: _propTypes.default.any
|
|
80
|
-
};
|
|
80
|
+
};
|
|
81
|
+
var EuiHealth = (0, _system.withEuiSystem)(_EuiHealth);
|
|
82
|
+
exports.EuiHealth = EuiHealth;
|
|
@@ -5,7 +5,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
|
-
exports.SIZES = exports.MARGINS = exports.EuiHorizontalRule = void 0;
|
|
8
|
+
exports._EuiHorizontalRule = exports.SIZES = exports.MARGINS = exports.EuiHorizontalRule = void 0;
|
|
9
9
|
|
|
10
10
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
11
11
|
|
|
@@ -19,13 +19,13 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
|
19
19
|
|
|
20
20
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
21
21
|
|
|
22
|
-
var
|
|
22
|
+
var _system = require("../provider/system");
|
|
23
23
|
|
|
24
24
|
var _horizontal_rule = require("./horizontal_rule.styles");
|
|
25
25
|
|
|
26
26
|
var _react2 = require("@emotion/react");
|
|
27
27
|
|
|
28
|
-
var _excluded = ["className", "size", "margin"];
|
|
28
|
+
var _excluded = ["className", "euiTheme", "size", "margin"];
|
|
29
29
|
var SIZES = ['full', 'half', 'quarter'];
|
|
30
30
|
exports.SIZES = SIZES;
|
|
31
31
|
var MARGINS = ['none', 'xs', 's', 'm', 'l', 'xl', 'xxl'];
|
|
@@ -40,16 +40,16 @@ var marginToClassNameMap = {
|
|
|
40
40
|
xxl: 'marginXXLarge'
|
|
41
41
|
};
|
|
42
42
|
|
|
43
|
-
var
|
|
43
|
+
var _EuiHorizontalRule = function _EuiHorizontalRule(_ref) {
|
|
44
44
|
var _classNames;
|
|
45
45
|
|
|
46
46
|
var className = _ref.className,
|
|
47
|
+
euiTheme = _ref.euiTheme,
|
|
47
48
|
_ref$size = _ref.size,
|
|
48
49
|
size = _ref$size === void 0 ? 'full' : _ref$size,
|
|
49
50
|
_ref$margin = _ref.margin,
|
|
50
51
|
margin = _ref$margin === void 0 ? 'l' : _ref$margin,
|
|
51
52
|
rest = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
52
|
-
var euiTheme = (0, _services.useEuiTheme)();
|
|
53
53
|
var styles = (0, _horizontal_rule.euiHorizontalRuleStyles)(euiTheme);
|
|
54
54
|
var classes = (0, _classnames.default)('euiHorizontalRule', (_classNames = {}, (0, _defineProperty2.default)(_classNames, "euiHorizontalRule--".concat(size), size), (0, _defineProperty2.default)(_classNames, "euiHorizontalRule--".concat(marginToClassNameMap[margin]), margin && margin !== 'none'), _classNames), className);
|
|
55
55
|
var cssStyles = [styles.euiHorizontalRule, styles[size], styles[margin]];
|
|
@@ -59,8 +59,8 @@ var EuiHorizontalRule = function EuiHorizontalRule(_ref) {
|
|
|
59
59
|
}, rest));
|
|
60
60
|
};
|
|
61
61
|
|
|
62
|
-
exports.
|
|
63
|
-
|
|
62
|
+
exports._EuiHorizontalRule = _EuiHorizontalRule;
|
|
63
|
+
_EuiHorizontalRule.propTypes = {
|
|
64
64
|
/**
|
|
65
65
|
* Defines the width of the HR.
|
|
66
66
|
*/
|
|
@@ -69,4 +69,6 @@ EuiHorizontalRule.propTypes = {
|
|
|
69
69
|
className: _propTypes.default.string,
|
|
70
70
|
"aria-label": _propTypes.default.string,
|
|
71
71
|
"data-test-subj": _propTypes.default.string
|
|
72
|
-
};
|
|
72
|
+
};
|
|
73
|
+
var EuiHorizontalRule = (0, _system.withEuiSystem)(_EuiHorizontalRule);
|
|
74
|
+
exports.EuiHorizontalRule = EuiHorizontalRule;
|
|
@@ -7,7 +7,7 @@ var _typeof = require("@babel/runtime/helpers/typeof");
|
|
|
7
7
|
Object.defineProperty(exports, "__esModule", {
|
|
8
8
|
value: true
|
|
9
9
|
});
|
|
10
|
-
exports.EuiLink = exports.COLORS = void 0;
|
|
10
|
+
exports._EuiLink = exports.EuiLink = exports.COLORS = void 0;
|
|
11
11
|
|
|
12
12
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
13
13
|
|
|
@@ -23,6 +23,8 @@ var _classnames = _interopRequireDefault(require("classnames"));
|
|
|
23
23
|
|
|
24
24
|
var _services = require("../../services");
|
|
25
25
|
|
|
26
|
+
var _system = require("../provider/system");
|
|
27
|
+
|
|
26
28
|
var _link = require("./link.styles");
|
|
27
29
|
|
|
28
30
|
var _icon = require("../icon");
|
|
@@ -35,7 +37,7 @@ var _href_validator = require("../../services/security/href_validator");
|
|
|
35
37
|
|
|
36
38
|
var _react2 = require("@emotion/react");
|
|
37
39
|
|
|
38
|
-
var _excluded = ["children", "color", "className", "href", "external", "target", "rel", "type", "onClick", "disabled"];
|
|
40
|
+
var _excluded = ["children", "color", "className", "href", "external", "target", "rel", "type", "onClick", "disabled", "euiTheme"];
|
|
39
41
|
|
|
40
42
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
41
43
|
|
|
@@ -47,7 +49,8 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
47
49
|
|
|
48
50
|
var COLORS = ['primary', 'subdued', 'success', 'accent', 'danger', 'warning', 'text', 'ghost'];
|
|
49
51
|
exports.COLORS = COLORS;
|
|
50
|
-
|
|
52
|
+
|
|
53
|
+
var _EuiLink = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
|
51
54
|
var children = _ref.children,
|
|
52
55
|
_ref$color = _ref.color,
|
|
53
56
|
color = _ref$color === void 0 ? 'primary' : _ref$color,
|
|
@@ -60,8 +63,8 @@ var EuiLink = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
|
|
60
63
|
type = _ref$type === void 0 ? 'button' : _ref$type,
|
|
61
64
|
onClick = _ref.onClick,
|
|
62
65
|
_disabled = _ref.disabled,
|
|
66
|
+
euiTheme = _ref.euiTheme,
|
|
63
67
|
rest = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
64
|
-
var euiTheme = (0, _services.useEuiTheme)();
|
|
65
68
|
var styles = (0, _link.euiLinkStyles)(euiTheme);
|
|
66
69
|
var cssStyles = [styles.euiLink];
|
|
67
70
|
var cssScreenReaderTextStyles = [styles.euiLink__screenReaderText];
|
|
@@ -115,8 +118,9 @@ var EuiLink = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
|
|
115
118
|
ref: ref
|
|
116
119
|
}, anchorProps), children, showExternalLinkIcon && externalLinkIcon, target === '_blank' && newTargetScreenreaderText);
|
|
117
120
|
});
|
|
118
|
-
|
|
119
|
-
|
|
121
|
+
|
|
122
|
+
exports._EuiLink = _EuiLink;
|
|
123
|
+
_EuiLink.propTypes = {
|
|
120
124
|
className: _propTypes.default.string,
|
|
121
125
|
"aria-label": _propTypes.default.string,
|
|
122
126
|
"data-test-subj": _propTypes.default.string,
|
|
@@ -138,4 +142,6 @@ EuiLink.propTypes = {
|
|
|
138
142
|
*/
|
|
139
143
|
external: _propTypes.default.bool
|
|
140
144
|
};
|
|
141
|
-
|
|
145
|
+
_EuiLink.displayName = 'EuiLink';
|
|
146
|
+
var EuiLink = (0, _system.withEuiSystem)(_EuiLink);
|
|
147
|
+
exports.EuiLink = EuiLink;
|
|
@@ -5,7 +5,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
|
-
exports.SIZES = exports.EuiLoadingChart = void 0;
|
|
8
|
+
exports._EuiLoadingChart = exports.SIZES = exports.EuiLoadingChart = void 0;
|
|
9
9
|
|
|
10
10
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
11
11
|
|
|
@@ -17,7 +17,7 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
|
17
17
|
|
|
18
18
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
19
19
|
|
|
20
|
-
var
|
|
20
|
+
var _system = require("../provider/system");
|
|
21
21
|
|
|
22
22
|
var _loading_chart = require("./loading_chart.styles");
|
|
23
23
|
|
|
@@ -25,20 +25,20 @@ var _i18n = require("../i18n");
|
|
|
25
25
|
|
|
26
26
|
var _react2 = require("@emotion/react");
|
|
27
27
|
|
|
28
|
-
var _excluded = ["size", "mono", "className", "aria-label"];
|
|
28
|
+
var _excluded = ["size", "mono", "className", "aria-label", "euiTheme"];
|
|
29
29
|
var SIZES = ['m', 'l', 'xl'];
|
|
30
30
|
exports.SIZES = SIZES;
|
|
31
31
|
|
|
32
|
-
var
|
|
32
|
+
var _EuiLoadingChart = function _EuiLoadingChart(_ref) {
|
|
33
33
|
var _ref$size = _ref.size,
|
|
34
34
|
size = _ref$size === void 0 ? 'm' : _ref$size,
|
|
35
35
|
_ref$mono = _ref.mono,
|
|
36
36
|
mono = _ref$mono === void 0 ? false : _ref$mono,
|
|
37
37
|
className = _ref.className,
|
|
38
38
|
ariaLabel = _ref['aria-label'],
|
|
39
|
+
euiTheme = _ref.euiTheme,
|
|
39
40
|
rest = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
40
41
|
var defaultAriaLabel = (0, _i18n.useEuiI18n)('euiLoadingChart.ariaLabel', 'Loading');
|
|
41
|
-
var euiTheme = (0, _services.useEuiTheme)();
|
|
42
42
|
var styles = (0, _loading_chart.euiLoadingChartStyles)(euiTheme);
|
|
43
43
|
var barStyles = (0, _loading_chart.euiLoadingChartBarStyles)(euiTheme);
|
|
44
44
|
var classes = (0, _classnames.default)('euiLoadingChart', {
|
|
@@ -67,11 +67,13 @@ var EuiLoadingChart = function EuiLoadingChart(_ref) {
|
|
|
67
67
|
}, rest), bars);
|
|
68
68
|
};
|
|
69
69
|
|
|
70
|
-
exports.
|
|
71
|
-
|
|
70
|
+
exports._EuiLoadingChart = _EuiLoadingChart;
|
|
71
|
+
_EuiLoadingChart.propTypes = {
|
|
72
72
|
className: _propTypes.default.string,
|
|
73
73
|
"aria-label": _propTypes.default.string,
|
|
74
74
|
"data-test-subj": _propTypes.default.string,
|
|
75
75
|
size: _propTypes.default.any,
|
|
76
76
|
mono: _propTypes.default.bool
|
|
77
|
-
};
|
|
77
|
+
};
|
|
78
|
+
var EuiLoadingChart = (0, _system.withEuiSystem)(_EuiLoadingChart);
|
|
79
|
+
exports.EuiLoadingChart = EuiLoadingChart;
|
|
@@ -5,7 +5,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
|
-
exports.EuiLoadingContent = void 0;
|
|
8
|
+
exports._EuiLoadingContent = exports.EuiLoadingContent = void 0;
|
|
9
9
|
|
|
10
10
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
11
11
|
|
|
@@ -17,7 +17,7 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
|
17
17
|
|
|
18
18
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
19
19
|
|
|
20
|
-
var
|
|
20
|
+
var _system = require("../provider/system");
|
|
21
21
|
|
|
22
22
|
var _loading_strings = require("./_loading_strings");
|
|
23
23
|
|
|
@@ -25,15 +25,15 @@ var _loading_content = require("./loading_content.styles");
|
|
|
25
25
|
|
|
26
26
|
var _react2 = require("@emotion/react");
|
|
27
27
|
|
|
28
|
-
var _excluded = ["lines", "className", "aria-label"];
|
|
28
|
+
var _excluded = ["lines", "className", "aria-label", "euiTheme"];
|
|
29
29
|
|
|
30
|
-
var
|
|
30
|
+
var _EuiLoadingContent = function _EuiLoadingContent(_ref) {
|
|
31
31
|
var _ref$lines = _ref.lines,
|
|
32
32
|
lines = _ref$lines === void 0 ? 3 : _ref$lines,
|
|
33
33
|
className = _ref.className,
|
|
34
34
|
ariaLabel = _ref['aria-label'],
|
|
35
|
+
euiTheme = _ref.euiTheme,
|
|
35
36
|
rest = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
36
|
-
var euiTheme = (0, _services.useEuiTheme)();
|
|
37
37
|
var styles = (0, _loading_content.euiLoadingContentStyles)(euiTheme);
|
|
38
38
|
var lineCssStyles = [styles.euiLoadingContent__singleLine];
|
|
39
39
|
var defaultLabel = (0, _loading_strings.useLoadingAriaLabel)();
|
|
@@ -54,10 +54,12 @@ var EuiLoadingContent = function EuiLoadingContent(_ref) {
|
|
|
54
54
|
}, rest), lineElements);
|
|
55
55
|
};
|
|
56
56
|
|
|
57
|
-
exports.
|
|
58
|
-
|
|
57
|
+
exports._EuiLoadingContent = _EuiLoadingContent;
|
|
58
|
+
_EuiLoadingContent.propTypes = {
|
|
59
59
|
className: _propTypes.default.string,
|
|
60
60
|
"aria-label": _propTypes.default.string,
|
|
61
61
|
"data-test-subj": _propTypes.default.string,
|
|
62
62
|
lines: _propTypes.default.oneOf([1, 2, 3, 4, 5, 6, 7, 8, 9, 10])
|
|
63
|
-
};
|
|
63
|
+
};
|
|
64
|
+
var EuiLoadingContent = (0, _system.withEuiSystem)(_EuiLoadingContent);
|
|
65
|
+
exports.EuiLoadingContent = EuiLoadingContent;
|
|
@@ -5,7 +5,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
|
-
exports.SIZES = exports.EuiLoadingLogo = void 0;
|
|
8
|
+
exports._EuiLoadingLogo = exports.SIZES = exports.EuiLoadingLogo = void 0;
|
|
9
9
|
|
|
10
10
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
11
11
|
|
|
@@ -19,7 +19,7 @@ var _classnames = _interopRequireDefault(require("classnames"));
|
|
|
19
19
|
|
|
20
20
|
var _icon = require("../icon");
|
|
21
21
|
|
|
22
|
-
var
|
|
22
|
+
var _system = require("../provider/system");
|
|
23
23
|
|
|
24
24
|
var _loading_strings = require("./_loading_strings");
|
|
25
25
|
|
|
@@ -27,19 +27,19 @@ var _loading_logo = require("./loading_logo.styles");
|
|
|
27
27
|
|
|
28
28
|
var _react2 = require("@emotion/react");
|
|
29
29
|
|
|
30
|
-
var _excluded = ["size", "logo", "aria-label", "className"];
|
|
30
|
+
var _excluded = ["size", "logo", "aria-label", "className", "euiTheme"];
|
|
31
31
|
var SIZES = ['m', 'l', 'xl'];
|
|
32
32
|
exports.SIZES = SIZES;
|
|
33
33
|
|
|
34
|
-
var
|
|
34
|
+
var _EuiLoadingLogo = function _EuiLoadingLogo(_ref) {
|
|
35
35
|
var _ref$size = _ref.size,
|
|
36
36
|
size = _ref$size === void 0 ? 'm' : _ref$size,
|
|
37
37
|
_ref$logo = _ref.logo,
|
|
38
38
|
logo = _ref$logo === void 0 ? 'logoKibana' : _ref$logo,
|
|
39
39
|
ariaLabel = _ref['aria-label'],
|
|
40
40
|
className = _ref.className,
|
|
41
|
+
euiTheme = _ref.euiTheme,
|
|
41
42
|
rest = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
42
|
-
var euiTheme = (0, _services.useEuiTheme)();
|
|
43
43
|
var defaultLabel = (0, _loading_strings.useLoadingAriaLabel)();
|
|
44
44
|
var styles = (0, _loading_logo.euiLoadingLogoStyles)(euiTheme);
|
|
45
45
|
var cssStyles = [styles.euiLoadingLogo, styles[size]];
|
|
@@ -59,8 +59,8 @@ var EuiLoadingLogo = function EuiLoadingLogo(_ref) {
|
|
|
59
59
|
})));
|
|
60
60
|
};
|
|
61
61
|
|
|
62
|
-
exports.
|
|
63
|
-
|
|
62
|
+
exports._EuiLoadingLogo = _EuiLoadingLogo;
|
|
63
|
+
_EuiLoadingLogo.propTypes = {
|
|
64
64
|
className: _propTypes.default.string,
|
|
65
65
|
"aria-label": _propTypes.default.string,
|
|
66
66
|
"data-test-subj": _propTypes.default.string,
|
|
@@ -70,4 +70,6 @@ EuiLoadingLogo.propTypes = {
|
|
|
70
70
|
* While this component should be restricted to using logo icons, it works with any IconType
|
|
71
71
|
*/
|
|
72
72
|
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])
|
|
73
|
-
};
|
|
73
|
+
};
|
|
74
|
+
var EuiLoadingLogo = (0, _system.withEuiSystem)(_EuiLoadingLogo);
|
|
75
|
+
exports.EuiLoadingLogo = EuiLoadingLogo;
|
|
@@ -5,7 +5,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
|
-
exports.SIZES = exports.EuiLoadingSpinner = void 0;
|
|
8
|
+
exports._EuiLoadingSpinner = exports.SIZES = exports.EuiLoadingSpinner = void 0;
|
|
9
9
|
|
|
10
10
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
11
11
|
|
|
@@ -17,7 +17,7 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
|
17
17
|
|
|
18
18
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
19
19
|
|
|
20
|
-
var
|
|
20
|
+
var _system = require("../provider/system");
|
|
21
21
|
|
|
22
22
|
var _loading_strings = require("./_loading_strings");
|
|
23
23
|
|
|
@@ -25,18 +25,19 @@ var _loading_spinner = require("./loading_spinner.styles");
|
|
|
25
25
|
|
|
26
26
|
var _react2 = require("@emotion/react");
|
|
27
27
|
|
|
28
|
-
var _excluded = ["size", "className", "aria-label"];
|
|
28
|
+
var _excluded = ["size", "className", "aria-label", "color", "euiTheme"];
|
|
29
29
|
var SIZES = ['s', 'm', 'l', 'xl', 'xxl'];
|
|
30
30
|
exports.SIZES = SIZES;
|
|
31
31
|
|
|
32
|
-
var
|
|
32
|
+
var _EuiLoadingSpinner = function _EuiLoadingSpinner(_ref) {
|
|
33
33
|
var _ref$size = _ref.size,
|
|
34
34
|
size = _ref$size === void 0 ? 'm' : _ref$size,
|
|
35
35
|
className = _ref.className,
|
|
36
36
|
ariaLabel = _ref['aria-label'],
|
|
37
|
+
color = _ref.color,
|
|
38
|
+
euiTheme = _ref.euiTheme,
|
|
37
39
|
rest = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
38
|
-
var
|
|
39
|
-
var styles = (0, _loading_spinner.euiLoadingSpinnerStyles)(euiTheme);
|
|
40
|
+
var styles = (0, _loading_spinner.euiLoadingSpinnerStyles)(euiTheme, color);
|
|
40
41
|
var cssStyles = [styles.euiLoadingSpinner, styles[size]];
|
|
41
42
|
var classes = (0, _classnames.default)('euiLoadingSpinner', className);
|
|
42
43
|
var defaultLabel = (0, _loading_strings.useLoadingAriaLabel)();
|
|
@@ -48,10 +49,22 @@ var EuiLoadingSpinner = function EuiLoadingSpinner(_ref) {
|
|
|
48
49
|
}, rest));
|
|
49
50
|
};
|
|
50
51
|
|
|
51
|
-
exports.
|
|
52
|
-
|
|
52
|
+
exports._EuiLoadingSpinner = _EuiLoadingSpinner;
|
|
53
|
+
_EuiLoadingSpinner.propTypes = {
|
|
53
54
|
className: _propTypes.default.string,
|
|
54
55
|
"aria-label": _propTypes.default.string,
|
|
55
56
|
"data-test-subj": _propTypes.default.string,
|
|
56
|
-
size: _propTypes.default.any
|
|
57
|
-
|
|
57
|
+
size: _propTypes.default.any,
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* Sets the color of the border and highlight.
|
|
61
|
+
* Each key accepts any valid CSS color value as a `string`
|
|
62
|
+
* See #EuiLoadingSpinnerColor
|
|
63
|
+
*/
|
|
64
|
+
color: _propTypes.default.shape({
|
|
65
|
+
border: _propTypes.default.any,
|
|
66
|
+
highlight: _propTypes.default.any
|
|
67
|
+
})
|
|
68
|
+
};
|
|
69
|
+
var EuiLoadingSpinner = (0, _system.withEuiSystem)(_EuiLoadingSpinner);
|
|
70
|
+
exports.EuiLoadingSpinner = EuiLoadingSpinner;
|
|
@@ -25,14 +25,14 @@ var spinnerSizes = {
|
|
|
25
25
|
xxl: 'xxl'
|
|
26
26
|
};
|
|
27
27
|
|
|
28
|
-
var
|
|
29
|
-
return "".concat(highlight, " ").concat(
|
|
28
|
+
var spinnerColorsCSS = function spinnerColorsCSS(border, highlight) {
|
|
29
|
+
return "\n border-color: ".concat(highlight, " ").concat(border, " ").concat(border, " ").concat(border, ";\n ");
|
|
30
30
|
};
|
|
31
31
|
|
|
32
|
-
var euiLoadingSpinnerStyles = function euiLoadingSpinnerStyles(_ref) {
|
|
32
|
+
var euiLoadingSpinnerStyles = function euiLoadingSpinnerStyles(_ref, color) {
|
|
33
33
|
var euiTheme = _ref.euiTheme;
|
|
34
34
|
return {
|
|
35
|
-
euiLoadingSpinner: /*#__PURE__*/(0, _react.css)("flex-shrink:0;display:inline-block;border-radius:50%;border:", euiTheme.border.thick, ";
|
|
35
|
+
euiLoadingSpinner: /*#__PURE__*/(0, _react.css)("flex-shrink:0;display:inline-block;border-radius:50%;border:", euiTheme.border.thick, ";", spinnerColorsCSS((color === null || color === void 0 ? void 0 : color.border) || euiTheme.colors.lightShade, (color === null || color === void 0 ? void 0 : color.highlight) || euiTheme.colors.primary), ";", _global_styling.euiCanAnimate, "{animation:", _loadingSpinner, " 0.6s infinite linear;};label:euiLoadingSpinner;"),
|
|
36
36
|
// Sizes
|
|
37
37
|
s: /*#__PURE__*/(0, _react.css)("width:", euiTheme.size[spinnerSizes.s], ";height:", euiTheme.size[spinnerSizes.s], ";border-width:calc(", euiTheme.border.width.thin, " * 1.5);;label:s;"),
|
|
38
38
|
m: /*#__PURE__*/(0, _react.css)("width:", euiTheme.size[spinnerSizes.m], ";height:", euiTheme.size[spinnerSizes.m], ";border-width:calc(", euiTheme.border.width.thin, " * 1.5);;label:m;"),
|
|
@@ -5,7 +5,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
|
-
exports.EuiMark = void 0;
|
|
8
|
+
exports._EuiMark = exports.EuiMark = void 0;
|
|
9
9
|
|
|
10
10
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
11
11
|
|
|
@@ -19,37 +19,37 @@ var _classnames = _interopRequireDefault(require("classnames"));
|
|
|
19
19
|
|
|
20
20
|
var _i18n = require("../i18n");
|
|
21
21
|
|
|
22
|
-
var
|
|
22
|
+
var _system = require("../provider/system");
|
|
23
23
|
|
|
24
24
|
var _mark = require("./mark.styles");
|
|
25
25
|
|
|
26
26
|
var _react2 = require("@emotion/react");
|
|
27
27
|
|
|
28
|
-
var _excluded = ["children", "className", "hasScreenReaderHelpText"];
|
|
28
|
+
var _excluded = ["children", "className", "euiTheme", "hasScreenReaderHelpText"];
|
|
29
29
|
|
|
30
|
-
var
|
|
30
|
+
var _EuiMark = function _EuiMark(_ref) {
|
|
31
31
|
var children = _ref.children,
|
|
32
32
|
className = _ref.className,
|
|
33
|
+
euiTheme = _ref.euiTheme,
|
|
33
34
|
_ref$hasScreenReaderH = _ref.hasScreenReaderHelpText,
|
|
34
35
|
hasScreenReaderHelpText = _ref$hasScreenReaderH === void 0 ? true : _ref$hasScreenReaderH,
|
|
35
36
|
rest = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
36
|
-
var useTheme = (0, _services.useEuiTheme)();
|
|
37
37
|
var highlightStart = (0, _i18n.useEuiI18n)('euiMark.highlightStart', 'highlight start');
|
|
38
38
|
var highlightEnd = (0, _i18n.useEuiI18n)('euiMark.highlightEnd', 'highlight end');
|
|
39
|
-
var styles = (0, _mark.euiMarkStyles)(
|
|
39
|
+
var styles = (0, _mark.euiMarkStyles)(euiTheme, {
|
|
40
40
|
hasScreenReaderHelpText: hasScreenReaderHelpText,
|
|
41
41
|
highlightStart: highlightStart,
|
|
42
42
|
highlightEnd: highlightEnd
|
|
43
43
|
});
|
|
44
44
|
var classes = (0, _classnames.default)('euiMark', className);
|
|
45
45
|
return (0, _react2.jsx)("mark", (0, _extends2.default)({
|
|
46
|
-
css: [styles
|
|
46
|
+
css: [styles],
|
|
47
47
|
className: classes
|
|
48
48
|
}, rest), children);
|
|
49
49
|
};
|
|
50
50
|
|
|
51
|
-
exports.
|
|
52
|
-
|
|
51
|
+
exports._EuiMark = _EuiMark;
|
|
52
|
+
_EuiMark.propTypes = {
|
|
53
53
|
className: _propTypes.default.string,
|
|
54
54
|
"aria-label": _propTypes.default.string,
|
|
55
55
|
"data-test-subj": _propTypes.default.string,
|
|
@@ -64,4 +64,6 @@ EuiMark.propTypes = {
|
|
|
64
64
|
* ReactNode to render as this component's content
|
|
65
65
|
*/
|
|
66
66
|
children: _propTypes.default.node.isRequired
|
|
67
|
-
};
|
|
67
|
+
};
|
|
68
|
+
var EuiMark = (0, _system.withEuiSystem)(_EuiMark);
|
|
69
|
+
exports.EuiMark = EuiMark;
|