@elastic/eui 59.1.0-rc1 → 59.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/eui_charts_theme.js +330 -330
- package/dist/eui_charts_theme.js.map +1 -1
- package/es/components/accessibility/skip_link/skip_link.js +42 -7
- package/es/components/accessibility/skip_link/skip_link.styles.js +1 -1
- package/es/components/avatar/avatar.js +7 -9
- package/es/components/bottom_bar/bottom_bar.js +9 -8
- package/es/components/breadcrumbs/breadcrumbs.js +1 -2
- package/es/components/call_out/call_out.js +8 -9
- package/es/components/expression/expression.js +10 -11
- package/es/components/facet/facet_button.js +8 -9
- package/es/components/facet/facet_group.js +7 -8
- package/es/components/health/health.js +6 -7
- package/es/components/horizontal_rule/horizontal_rule.js +6 -7
- package/es/components/link/link.js +7 -8
- package/es/components/loading/loading_chart.js +6 -7
- package/es/components/loading/loading_content.js +6 -7
- package/es/components/loading/loading_logo.js +6 -7
- package/es/components/loading/loading_spinner.js +6 -7
- package/es/components/mark/mark.js +8 -9
- package/es/components/markdown_editor/markdown_format.js +6 -7
- package/es/components/panel/panel.js +7 -8
- package/es/components/provider/index.js +1 -1
- package/es/components/provider/provider.js +5 -39
- package/es/components/spacer/spacer.js +6 -7
- package/es/components/text/text.js +6 -7
- package/es/components/text/text_color.js +6 -7
- package/es/components/timeline/timeline_item.js +6 -7
- package/es/components/timeline/timeline_item_icon.js +6 -7
- package/es/components/title/title.js +6 -7
- package/es/services/theme/hooks.js +2 -2
- package/es/services/theme/provider.js +5 -1
- package/{optimize/es/components/provider/cache → es/themes/amsterdam}/index.js +2 -2
- package/es/themes/index.js +2 -1
- package/eui.d.ts +337 -827
- package/i18ntokens.json +12 -12
- package/lib/components/accessibility/skip_link/skip_link.js +45 -11
- package/lib/components/accessibility/skip_link/skip_link.styles.js +1 -1
- package/lib/components/avatar/avatar.js +8 -12
- package/lib/components/bottom_bar/bottom_bar.js +6 -9
- package/lib/components/breadcrumbs/breadcrumbs.js +1 -2
- package/lib/components/call_out/call_out.js +10 -14
- package/lib/components/expression/expression.js +12 -14
- package/lib/components/facet/facet_button.js +10 -12
- package/lib/components/facet/facet_group.js +9 -11
- package/lib/components/health/health.js +8 -10
- package/lib/components/horizontal_rule/horizontal_rule.js +8 -10
- package/lib/components/link/link.js +7 -13
- package/lib/components/loading/loading_chart.js +8 -10
- package/lib/components/loading/loading_content.js +8 -10
- package/lib/components/loading/loading_logo.js +8 -10
- package/lib/components/loading/loading_spinner.js +8 -10
- package/lib/components/mark/mark.js +10 -12
- package/lib/components/markdown_editor/markdown_format.js +8 -10
- package/lib/components/panel/panel.js +9 -11
- package/lib/components/provider/index.js +7 -12
- package/lib/components/provider/provider.js +5 -40
- package/lib/components/spacer/spacer.js +8 -10
- package/lib/components/text/text.js +8 -10
- package/lib/components/text/text_color.js +8 -10
- package/lib/components/timeline/timeline_item.js +8 -10
- package/lib/components/timeline/timeline_item_icon.js +8 -10
- package/lib/components/title/title.js +9 -11
- package/lib/services/theme/hooks.js +2 -2
- package/lib/services/theme/provider.js +6 -3
- package/{test-env/components/provider/system → lib/themes/amsterdam}/index.js +4 -4
- package/lib/themes/index.js +21 -1
- package/optimize/es/components/accessibility/skip_link/skip_link.js +27 -6
- package/optimize/es/components/accessibility/skip_link/skip_link.styles.js +1 -1
- package/optimize/es/components/avatar/avatar.js +5 -7
- package/optimize/es/components/bottom_bar/bottom_bar.js +9 -8
- package/optimize/es/components/breadcrumbs/breadcrumbs.js +1 -2
- package/optimize/es/components/call_out/call_out.js +7 -8
- package/optimize/es/components/expression/expression.js +9 -10
- package/optimize/es/components/facet/facet_button.js +7 -8
- package/optimize/es/components/facet/facet_group.js +6 -7
- package/optimize/es/components/health/health.js +5 -6
- package/optimize/es/components/horizontal_rule/horizontal_rule.js +5 -6
- package/optimize/es/components/link/link.js +6 -7
- package/optimize/es/components/loading/loading_chart.js +5 -6
- package/optimize/es/components/loading/loading_content.js +5 -6
- package/optimize/es/components/loading/loading_logo.js +5 -6
- package/optimize/es/components/loading/loading_spinner.js +5 -6
- package/optimize/es/components/mark/mark.js +7 -8
- package/optimize/es/components/markdown_editor/markdown_format.js +5 -6
- package/optimize/es/components/panel/panel.js +6 -7
- package/optimize/es/components/provider/index.js +1 -1
- package/optimize/es/components/provider/provider.js +5 -39
- package/optimize/es/components/spacer/spacer.js +5 -6
- package/optimize/es/components/text/text.js +5 -6
- package/optimize/es/components/text/text_color.js +5 -6
- package/optimize/es/components/timeline/timeline_item.js +5 -6
- package/optimize/es/components/timeline/timeline_item_icon.js +5 -6
- package/optimize/es/components/title/title.js +5 -6
- package/optimize/es/services/theme/hooks.js +2 -2
- package/optimize/es/services/theme/provider.js +5 -1
- package/optimize/es/{components/provider/system → themes/amsterdam}/index.js +2 -1
- package/optimize/es/themes/index.js +2 -1
- package/optimize/lib/components/accessibility/skip_link/skip_link.js +30 -8
- package/optimize/lib/components/accessibility/skip_link/skip_link.styles.js +1 -1
- package/optimize/lib/components/avatar/avatar.js +5 -9
- package/optimize/lib/components/bottom_bar/bottom_bar.js +6 -9
- package/optimize/lib/components/breadcrumbs/breadcrumbs.js +1 -2
- package/optimize/lib/components/call_out/call_out.js +9 -13
- package/optimize/lib/components/expression/expression.js +9 -11
- package/optimize/lib/components/facet/facet_button.js +7 -9
- package/optimize/lib/components/facet/facet_group.js +6 -8
- package/optimize/lib/components/health/health.js +5 -7
- package/optimize/lib/components/horizontal_rule/horizontal_rule.js +5 -7
- package/optimize/lib/components/link/link.js +6 -12
- package/optimize/lib/components/loading/loading_chart.js +5 -7
- package/optimize/lib/components/loading/loading_content.js +5 -7
- package/optimize/lib/components/loading/loading_logo.js +5 -7
- package/optimize/lib/components/loading/loading_spinner.js +5 -7
- package/optimize/lib/components/mark/mark.js +7 -9
- package/optimize/lib/components/markdown_editor/markdown_format.js +5 -7
- package/optimize/lib/components/panel/panel.js +6 -8
- package/optimize/lib/components/provider/index.js +7 -12
- package/optimize/lib/components/provider/provider.js +5 -40
- package/optimize/lib/components/spacer/spacer.js +5 -7
- package/optimize/lib/components/text/text.js +5 -7
- package/optimize/lib/components/text/text_color.js +5 -7
- package/optimize/lib/components/timeline/timeline_item.js +5 -7
- package/optimize/lib/components/timeline/timeline_item_icon.js +5 -7
- package/optimize/lib/components/title/title.js +6 -8
- package/optimize/lib/services/theme/hooks.js +2 -2
- package/optimize/lib/services/theme/provider.js +6 -3
- package/{lib/components/provider/system → optimize/lib/themes/amsterdam}/index.js +4 -4
- package/optimize/lib/themes/index.js +21 -1
- package/package.json +1 -1
- package/test-env/components/accessibility/skip_link/skip_link.js +46 -11
- package/test-env/components/accessibility/skip_link/skip_link.styles.js +1 -1
- package/test-env/components/avatar/avatar.js +8 -12
- package/test-env/components/bottom_bar/bottom_bar.js +6 -9
- package/test-env/components/breadcrumbs/breadcrumbs.js +1 -2
- package/test-env/components/call_out/call_out.js +10 -14
- package/test-env/components/expression/expression.js +12 -14
- package/test-env/components/facet/facet_button.js +10 -12
- package/test-env/components/facet/facet_group.js +9 -11
- package/test-env/components/health/health.js +8 -10
- package/test-env/components/horizontal_rule/horizontal_rule.js +8 -10
- package/test-env/components/link/link.js +7 -13
- package/test-env/components/loading/loading_chart.js +8 -10
- package/test-env/components/loading/loading_content.js +8 -10
- package/test-env/components/loading/loading_logo.js +8 -10
- package/test-env/components/loading/loading_spinner.js +8 -10
- package/test-env/components/mark/mark.js +10 -12
- package/test-env/components/markdown_editor/markdown_format.js +8 -10
- package/test-env/components/panel/panel.js +9 -11
- package/test-env/components/provider/index.js +7 -12
- package/test-env/components/provider/provider.js +5 -40
- package/test-env/components/spacer/spacer.js +8 -10
- package/test-env/components/text/text.js +8 -10
- package/test-env/components/text/text_color.js +8 -10
- package/test-env/components/timeline/timeline_item.js +8 -10
- package/test-env/components/timeline/timeline_item_icon.js +8 -10
- package/test-env/components/title/title.js +9 -11
- package/test-env/services/theme/hooks.js +2 -2
- package/test-env/services/theme/provider.js +6 -3
- package/{optimize/lib/components/provider/system → test-env/themes/amsterdam}/index.js +4 -4
- package/test-env/themes/index.js +21 -1
- package/es/components/provider/cache/cache_context.js +0 -12
- package/es/components/provider/cache/cache_provider.js +0 -17
- package/es/components/provider/cache/index.js +0 -9
- package/es/components/provider/system/index.js +0 -8
- package/es/components/provider/system/system.js +0 -33
- package/es/global_styling/utility/utility.js +0 -27
- package/lib/components/provider/cache/cache_context.js +0 -24
- package/lib/components/provider/cache/cache_provider.js +0 -29
- package/lib/components/provider/cache/index.js +0 -31
- package/lib/components/provider/system/system.js +0 -45
- package/lib/global_styling/utility/utility.js +0 -31
- package/optimize/es/components/provider/cache/cache_context.js +0 -12
- package/optimize/es/components/provider/cache/cache_provider.js +0 -17
- package/optimize/es/components/provider/system/system.js +0 -33
- package/optimize/es/global_styling/utility/utility.js +0 -27
- package/optimize/lib/components/provider/cache/cache_context.js +0 -24
- package/optimize/lib/components/provider/cache/cache_provider.js +0 -29
- package/optimize/lib/components/provider/cache/index.js +0 -31
- package/optimize/lib/components/provider/system/system.js +0 -54
- package/optimize/lib/global_styling/utility/utility.js +0 -31
- package/test-env/components/provider/cache/cache_context.js +0 -24
- package/test-env/components/provider/cache/cache_provider.js +0 -29
- package/test-env/components/provider/cache/index.js +0 -31
- package/test-env/components/provider/system/system.js +0 -54
- package/test-env/global_styling/utility/utility.js +0 -31
|
@@ -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.
|
|
8
|
+
exports.LAYOUTS = exports.GUTTER_SIZES = exports.EuiFacetGroup = void 0;
|
|
9
9
|
|
|
10
10
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
11
11
|
|
|
@@ -17,28 +17,28 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
|
17
17
|
|
|
18
18
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
19
19
|
|
|
20
|
-
var
|
|
20
|
+
var _services = require("../../services");
|
|
21
21
|
|
|
22
22
|
var _facet_group = require("./facet_group.styles");
|
|
23
23
|
|
|
24
24
|
var _react2 = require("@emotion/react");
|
|
25
25
|
|
|
26
|
-
var _excluded = ["children", "className", "layout", "gutterSize"
|
|
26
|
+
var _excluded = ["children", "className", "layout", "gutterSize"];
|
|
27
27
|
var LAYOUTS = ['vertical', 'horizontal'];
|
|
28
28
|
exports.LAYOUTS = LAYOUTS;
|
|
29
29
|
var GUTTER_SIZES = ['none', 's', 'm', 'l'];
|
|
30
30
|
exports.GUTTER_SIZES = GUTTER_SIZES;
|
|
31
31
|
|
|
32
|
-
var
|
|
32
|
+
var EuiFacetGroup = function EuiFacetGroup(_ref) {
|
|
33
33
|
var children = _ref.children,
|
|
34
34
|
className = _ref.className,
|
|
35
35
|
_ref$layout = _ref.layout,
|
|
36
36
|
layout = _ref$layout === void 0 ? 'vertical' : _ref$layout,
|
|
37
37
|
_ref$gutterSize = _ref.gutterSize,
|
|
38
38
|
gutterSize = _ref$gutterSize === void 0 ? 'm' : _ref$gutterSize,
|
|
39
|
-
euiTheme = _ref.euiTheme,
|
|
40
39
|
rest = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
41
|
-
var
|
|
40
|
+
var theme = (0, _services.useEuiTheme)();
|
|
41
|
+
var styles = (0, _facet_group.euiFacetGroupStyles)(theme, layout);
|
|
42
42
|
var cssStyles = [styles.euiFacetGroup, styles[gutterSize], styles[layout]];
|
|
43
43
|
var classes = (0, _classnames.default)('euiFacetGroup', className);
|
|
44
44
|
return (0, _react2.jsx)("div", (0, _extends2.default)({
|
|
@@ -47,8 +47,8 @@ var _EuiFacetGroup = function _EuiFacetGroup(_ref) {
|
|
|
47
47
|
}, rest), children);
|
|
48
48
|
};
|
|
49
49
|
|
|
50
|
-
exports.
|
|
51
|
-
|
|
50
|
+
exports.EuiFacetGroup = EuiFacetGroup;
|
|
51
|
+
EuiFacetGroup.propTypes = {
|
|
52
52
|
className: _propTypes.default.string,
|
|
53
53
|
"aria-label": _propTypes.default.string,
|
|
54
54
|
"data-test-subj": _propTypes.default.string,
|
|
@@ -63,6 +63,4 @@ _EuiFacetGroup.propTypes = {
|
|
|
63
63
|
* Horizontal layout always adds more distance horizontally between buttons.
|
|
64
64
|
*/
|
|
65
65
|
gutterSize: _propTypes.default.any
|
|
66
|
-
};
|
|
67
|
-
var EuiFacetGroup = (0, _system.withEuiSystem)(_EuiFacetGroup);
|
|
68
|
-
exports.EuiFacetGroup = EuiFacetGroup;
|
|
66
|
+
};
|
|
@@ -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.
|
|
8
|
+
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 _services = require("../../services");
|
|
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", "
|
|
30
|
+
var _excluded = ["children", "className", "color", "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,
|
|
39
38
|
_ref$textSize = _ref.textSize,
|
|
40
39
|
textSize = _ref$textSize === void 0 ? 's' : _ref$textSize,
|
|
41
40
|
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,6 +77,4 @@ _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
|
-
};
|
|
81
|
-
var EuiHealth = (0, _system.withEuiSystem)(_EuiHealth);
|
|
82
|
-
exports.EuiHealth = EuiHealth;
|
|
80
|
+
};
|
|
@@ -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.
|
|
8
|
+
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 _services = require("../../services");
|
|
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", "
|
|
28
|
+
var _excluded = ["className", "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,
|
|
48
47
|
_ref$size = _ref.size,
|
|
49
48
|
size = _ref$size === void 0 ? 'full' : _ref$size,
|
|
50
49
|
_ref$margin = _ref.margin,
|
|
51
50
|
margin = _ref$margin === void 0 ? 'l' : _ref$margin,
|
|
52
51
|
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,6 +69,4 @@ _EuiHorizontalRule.propTypes = {
|
|
|
69
69
|
className: _propTypes.default.string,
|
|
70
70
|
"aria-label": _propTypes.default.string,
|
|
71
71
|
"data-test-subj": _propTypes.default.string
|
|
72
|
-
};
|
|
73
|
-
var EuiHorizontalRule = (0, _system.withEuiSystem)(_EuiHorizontalRule);
|
|
74
|
-
exports.EuiHorizontalRule = EuiHorizontalRule;
|
|
72
|
+
};
|
|
@@ -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.
|
|
10
|
+
exports.EuiLink = exports.COLORS = void 0;
|
|
11
11
|
|
|
12
12
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
13
13
|
|
|
@@ -23,8 +23,6 @@ var _classnames = _interopRequireDefault(require("classnames"));
|
|
|
23
23
|
|
|
24
24
|
var _services = require("../../services");
|
|
25
25
|
|
|
26
|
-
var _system = require("../provider/system");
|
|
27
|
-
|
|
28
26
|
var _link = require("./link.styles");
|
|
29
27
|
|
|
30
28
|
var _icon = require("../icon");
|
|
@@ -37,7 +35,7 @@ var _href_validator = require("../../services/security/href_validator");
|
|
|
37
35
|
|
|
38
36
|
var _react2 = require("@emotion/react");
|
|
39
37
|
|
|
40
|
-
var _excluded = ["children", "color", "className", "href", "external", "target", "rel", "type", "onClick", "disabled"
|
|
38
|
+
var _excluded = ["children", "color", "className", "href", "external", "target", "rel", "type", "onClick", "disabled"];
|
|
41
39
|
|
|
42
40
|
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); }
|
|
43
41
|
|
|
@@ -49,8 +47,7 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
49
47
|
|
|
50
48
|
var COLORS = ['primary', 'subdued', 'success', 'accent', 'danger', 'warning', 'text', 'ghost'];
|
|
51
49
|
exports.COLORS = COLORS;
|
|
52
|
-
|
|
53
|
-
var _EuiLink = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
|
50
|
+
var EuiLink = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
|
54
51
|
var children = _ref.children,
|
|
55
52
|
_ref$color = _ref.color,
|
|
56
53
|
color = _ref$color === void 0 ? 'primary' : _ref$color,
|
|
@@ -63,8 +60,8 @@ var _EuiLink = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
|
|
63
60
|
type = _ref$type === void 0 ? 'button' : _ref$type,
|
|
64
61
|
onClick = _ref.onClick,
|
|
65
62
|
_disabled = _ref.disabled,
|
|
66
|
-
euiTheme = _ref.euiTheme,
|
|
67
63
|
rest = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
64
|
+
var euiTheme = (0, _services.useEuiTheme)();
|
|
68
65
|
var styles = (0, _link.euiLinkStyles)(euiTheme);
|
|
69
66
|
var cssStyles = [styles.euiLink];
|
|
70
67
|
var cssScreenReaderTextStyles = [styles.euiLink__screenReaderText];
|
|
@@ -118,9 +115,8 @@ var _EuiLink = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
|
|
118
115
|
ref: ref
|
|
119
116
|
}, anchorProps), children, showExternalLinkIcon && externalLinkIcon, target === '_blank' && newTargetScreenreaderText);
|
|
120
117
|
});
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
_EuiLink.propTypes = {
|
|
118
|
+
exports.EuiLink = EuiLink;
|
|
119
|
+
EuiLink.propTypes = {
|
|
124
120
|
className: _propTypes.default.string,
|
|
125
121
|
"aria-label": _propTypes.default.string,
|
|
126
122
|
"data-test-subj": _propTypes.default.string,
|
|
@@ -142,6 +138,4 @@ _EuiLink.propTypes = {
|
|
|
142
138
|
*/
|
|
143
139
|
external: _propTypes.default.bool
|
|
144
140
|
};
|
|
145
|
-
|
|
146
|
-
var EuiLink = (0, _system.withEuiSystem)(_EuiLink);
|
|
147
|
-
exports.EuiLink = EuiLink;
|
|
141
|
+
EuiLink.displayName = '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.
|
|
8
|
+
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 _services = require("../../services");
|
|
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"];
|
|
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,
|
|
40
39
|
rest = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
41
40
|
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,13 +67,11 @@ 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
|
-
};
|
|
78
|
-
var EuiLoadingChart = (0, _system.withEuiSystem)(_EuiLoadingChart);
|
|
79
|
-
exports.EuiLoadingChart = EuiLoadingChart;
|
|
77
|
+
};
|
|
@@ -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.
|
|
8
|
+
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 _services = require("../../services");
|
|
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"];
|
|
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,
|
|
36
35
|
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,12 +54,10 @@ 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
|
-
};
|
|
64
|
-
var EuiLoadingContent = (0, _system.withEuiSystem)(_EuiLoadingContent);
|
|
65
|
-
exports.EuiLoadingContent = EuiLoadingContent;
|
|
63
|
+
};
|
|
@@ -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.
|
|
8
|
+
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 _services = require("../../services");
|
|
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"];
|
|
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,
|
|
42
41
|
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,6 +70,4 @@ _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
|
-
};
|
|
74
|
-
var EuiLoadingLogo = (0, _system.withEuiSystem)(_EuiLoadingLogo);
|
|
75
|
-
exports.EuiLoadingLogo = EuiLoadingLogo;
|
|
73
|
+
};
|
|
@@ -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.
|
|
8
|
+
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 _services = require("../..//services");
|
|
21
21
|
|
|
22
22
|
var _loading_strings = require("./_loading_strings");
|
|
23
23
|
|
|
@@ -25,18 +25,18 @@ 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", "color"
|
|
28
|
+
var _excluded = ["size", "className", "aria-label", "color"];
|
|
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
37
|
color = _ref.color,
|
|
38
|
-
euiTheme = _ref.euiTheme,
|
|
39
38
|
rest = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
39
|
+
var euiTheme = (0, _services.useEuiTheme)();
|
|
40
40
|
var styles = (0, _loading_spinner.euiLoadingSpinnerStyles)(euiTheme, color);
|
|
41
41
|
var cssStyles = [styles.euiLoadingSpinner, styles[size]];
|
|
42
42
|
var classes = (0, _classnames.default)('euiLoadingSpinner', className);
|
|
@@ -49,8 +49,8 @@ var _EuiLoadingSpinner = function _EuiLoadingSpinner(_ref) {
|
|
|
49
49
|
}, rest));
|
|
50
50
|
};
|
|
51
51
|
|
|
52
|
-
exports.
|
|
53
|
-
|
|
52
|
+
exports.EuiLoadingSpinner = EuiLoadingSpinner;
|
|
53
|
+
EuiLoadingSpinner.propTypes = {
|
|
54
54
|
className: _propTypes.default.string,
|
|
55
55
|
"aria-label": _propTypes.default.string,
|
|
56
56
|
"data-test-subj": _propTypes.default.string,
|
|
@@ -65,6 +65,4 @@ _EuiLoadingSpinner.propTypes = {
|
|
|
65
65
|
border: _propTypes.default.any,
|
|
66
66
|
highlight: _propTypes.default.any
|
|
67
67
|
})
|
|
68
|
-
};
|
|
69
|
-
var EuiLoadingSpinner = (0, _system.withEuiSystem)(_EuiLoadingSpinner);
|
|
70
|
-
exports.EuiLoadingSpinner = EuiLoadingSpinner;
|
|
68
|
+
};
|
|
@@ -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.
|
|
8
|
+
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 _services = require("../../services");
|
|
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", "
|
|
28
|
+
var _excluded = ["children", "className", "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,
|
|
34
33
|
_ref$hasScreenReaderH = _ref.hasScreenReaderHelpText,
|
|
35
34
|
hasScreenReaderHelpText = _ref$hasScreenReaderH === void 0 ? true : _ref$hasScreenReaderH,
|
|
36
35
|
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)(useTheme, {
|
|
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, ";label:EuiMark;"],
|
|
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,6 +64,4 @@ _EuiMark.propTypes = {
|
|
|
64
64
|
* ReactNode to render as this component's content
|
|
65
65
|
*/
|
|
66
66
|
children: _propTypes.default.node.isRequired
|
|
67
|
-
};
|
|
68
|
-
var EuiMark = (0, _system.withEuiSystem)(_EuiMark);
|
|
69
|
-
exports.EuiMark = EuiMark;
|
|
67
|
+
};
|
|
@@ -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.
|
|
10
|
+
exports.EuiMarkdownFormat = void 0;
|
|
11
11
|
|
|
12
12
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
13
13
|
|
|
@@ -23,7 +23,7 @@ var _classnames = _interopRequireDefault(require("classnames"));
|
|
|
23
23
|
|
|
24
24
|
var _text = require("../text/text");
|
|
25
25
|
|
|
26
|
-
var
|
|
26
|
+
var _services = require("../../services");
|
|
27
27
|
|
|
28
28
|
var _markdown_format = require("./markdown_format.styles");
|
|
29
29
|
|
|
@@ -31,13 +31,13 @@ var _markdown_default_plugins = require("./plugins/markdown_default_plugins");
|
|
|
31
31
|
|
|
32
32
|
var _react2 = require("@emotion/react");
|
|
33
33
|
|
|
34
|
-
var _excluded = ["children", "className", "parsingPluginList", "processingPluginList", "textSize"
|
|
34
|
+
var _excluded = ["children", "className", "parsingPluginList", "processingPluginList", "textSize"];
|
|
35
35
|
|
|
36
36
|
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); }
|
|
37
37
|
|
|
38
38
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
39
39
|
|
|
40
|
-
var
|
|
40
|
+
var EuiMarkdownFormat = function EuiMarkdownFormat(_ref) {
|
|
41
41
|
var children = _ref.children,
|
|
42
42
|
className = _ref.className,
|
|
43
43
|
_ref$parsingPluginLis = _ref.parsingPluginList,
|
|
@@ -46,7 +46,6 @@ var _EuiMarkdownFormat = function _EuiMarkdownFormat(_ref) {
|
|
|
46
46
|
processingPluginList = _ref$processingPlugin === void 0 ? _markdown_default_plugins.defaultProcessingPlugins : _ref$processingPlugin,
|
|
47
47
|
_ref$textSize = _ref.textSize,
|
|
48
48
|
textSize = _ref$textSize === void 0 ? 'm' : _ref$textSize,
|
|
49
|
-
euiTheme = _ref.euiTheme,
|
|
50
49
|
rest = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
51
50
|
var processor = (0, _react.useMemo)(function () {
|
|
52
51
|
return (0, _unified.default)().use(parsingPluginList).use(processingPluginList);
|
|
@@ -63,6 +62,7 @@ var _EuiMarkdownFormat = function _EuiMarkdownFormat(_ref) {
|
|
|
63
62
|
return children;
|
|
64
63
|
}
|
|
65
64
|
}, [children, processor]);
|
|
65
|
+
var euiTheme = (0, _services.useEuiTheme)();
|
|
66
66
|
var styles = (0, _markdown_format.euiMarkdownFormatStyles)(euiTheme);
|
|
67
67
|
var cssStyles = [styles.euiMarkdownFormat, styles[textSize]];
|
|
68
68
|
var classes = (0, _classnames.default)('euiMarkdownFormat', className);
|
|
@@ -73,8 +73,8 @@ var _EuiMarkdownFormat = function _EuiMarkdownFormat(_ref) {
|
|
|
73
73
|
}, rest), result);
|
|
74
74
|
};
|
|
75
75
|
|
|
76
|
-
exports.
|
|
77
|
-
|
|
76
|
+
exports.EuiMarkdownFormat = EuiMarkdownFormat;
|
|
77
|
+
EuiMarkdownFormat.propTypes = {
|
|
78
78
|
className: _propTypes.default.string,
|
|
79
79
|
"aria-label": _propTypes.default.string,
|
|
80
80
|
"data-test-subj": _propTypes.default.string,
|
|
@@ -90,6 +90,4 @@ _EuiMarkdownFormat.propTypes = {
|
|
|
90
90
|
* Determines the text size. Choose `relative` to control the `font-size` based on the value of a parent container.
|
|
91
91
|
*/
|
|
92
92
|
textSize: _propTypes.default.any
|
|
93
|
-
};
|
|
94
|
-
var EuiMarkdownFormat = (0, _system.withEuiSystem)(_EuiMarkdownFormat);
|
|
95
|
-
exports.EuiMarkdownFormat = EuiMarkdownFormat;
|
|
93
|
+
};
|