@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,19 +5,21 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
|
-
exports.
|
|
8
|
+
exports.POSITIONS = exports.EuiSkipLink = void 0;
|
|
9
9
|
|
|
10
10
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
11
11
|
|
|
12
|
+
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
13
|
+
|
|
12
14
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
13
15
|
|
|
14
16
|
var _react = _interopRequireDefault(require("react"));
|
|
15
17
|
|
|
16
18
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
17
19
|
|
|
18
|
-
var
|
|
20
|
+
var _services = require("../../../services");
|
|
19
21
|
|
|
20
|
-
var
|
|
22
|
+
var _button = require("../../button/button");
|
|
21
23
|
|
|
22
24
|
var _screen_reader_only = require("../screen_reader_only");
|
|
23
25
|
|
|
@@ -25,19 +27,25 @@ var _skip_link = require("./skip_link.styles");
|
|
|
25
27
|
|
|
26
28
|
var _react2 = require("@emotion/react");
|
|
27
29
|
|
|
28
|
-
var _excluded = ["destinationId", "tabIndex", "position", "children", "className"
|
|
30
|
+
var _excluded = ["destinationId", "overrideLinkBehavior", "tabIndex", "position", "children", "className"];
|
|
31
|
+
|
|
32
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
|
|
33
|
+
|
|
34
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
35
|
+
|
|
29
36
|
var POSITIONS = ['static', 'fixed', 'absolute'];
|
|
30
37
|
exports.POSITIONS = POSITIONS;
|
|
31
38
|
|
|
32
|
-
var
|
|
39
|
+
var EuiSkipLink = function EuiSkipLink(_ref) {
|
|
33
40
|
var destinationId = _ref.destinationId,
|
|
41
|
+
overrideLinkBehavior = _ref.overrideLinkBehavior,
|
|
34
42
|
tabIndex = _ref.tabIndex,
|
|
35
43
|
_ref$position = _ref.position,
|
|
36
44
|
position = _ref$position === void 0 ? 'static' : _ref$position,
|
|
37
45
|
children = _ref.children,
|
|
38
46
|
className = _ref.className,
|
|
39
|
-
euiTheme = _ref.euiTheme,
|
|
40
47
|
rest = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
48
|
+
var euiTheme = (0, _services.useEuiTheme)();
|
|
41
49
|
var styles = (0, _skip_link.euiSkipLinkStyles)(euiTheme);
|
|
42
50
|
var classes = (0, _classnames.default)('euiSkipLink', className);
|
|
43
51
|
var cssStyles = [styles.euiSkipLink, position !== 'static' ? styles[position] : undefined]; // Create the `href` from `destinationId`
|
|
@@ -50,6 +58,22 @@ var _EuiSkipLink = function _EuiSkipLink(_ref) {
|
|
|
50
58
|
};
|
|
51
59
|
}
|
|
52
60
|
|
|
61
|
+
if (overrideLinkBehavior) {
|
|
62
|
+
optionalProps = _objectSpread(_objectSpread({}, optionalProps), {}, {
|
|
63
|
+
onClick: function onClick(e) {
|
|
64
|
+
e.preventDefault();
|
|
65
|
+
var destinationEl = document.getElementById(destinationId);
|
|
66
|
+
if (!destinationEl) return;
|
|
67
|
+
destinationEl.scrollIntoView();
|
|
68
|
+
destinationEl.tabIndex = -1; // Ensure the destination content is focusable
|
|
69
|
+
|
|
70
|
+
destinationEl.focus({
|
|
71
|
+
preventScroll: true
|
|
72
|
+
}); // Scrolling is already handled above, and focus's autoscroll behaves oddly around fixed headers
|
|
73
|
+
}
|
|
74
|
+
});
|
|
75
|
+
}
|
|
76
|
+
|
|
53
77
|
return (0, _react2.jsx)(_screen_reader_only.EuiScreenReaderOnly, {
|
|
54
78
|
showOnFocus: true
|
|
55
79
|
}, (0, _react2.jsx)(_button.EuiButton, (0, _extends2.default)({
|
|
@@ -61,6 +85,4 @@ var _EuiSkipLink = function _EuiSkipLink(_ref) {
|
|
|
61
85
|
}, optionalProps, rest), children));
|
|
62
86
|
};
|
|
63
87
|
|
|
64
|
-
exports._EuiSkipLink = _EuiSkipLink;
|
|
65
|
-
var EuiSkipLink = (0, _system.withEuiSystem)(_EuiSkipLink);
|
|
66
88
|
exports.EuiSkipLink = EuiSkipLink;
|
|
@@ -35,7 +35,7 @@ var euiSkipLinkStyles = function euiSkipLinkStyles(_ref3) {
|
|
|
35
35
|
// Set positions on focus only as to not override screenReaderOnly position
|
|
36
36
|
// When positioned absolutely, consumers still need to tell it WHERE (top,left,etc...)
|
|
37
37
|
absolute: _ref,
|
|
38
|
-
fixed: /*#__PURE__*/(0, _react.css)("
|
|
38
|
+
fixed: /*#__PURE__*/(0, _react.css)("position:fixed!important;&:focus{inset-block-start:", euiTheme.size.xs, ";inset-inline-start:", euiTheme.size.xs, ";z-index:", Number(euiTheme.levels.header) + 1, ";};label:fixed;")
|
|
39
39
|
};
|
|
40
40
|
};
|
|
41
41
|
|
|
@@ -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.checkValidColor = exports.
|
|
8
|
+
exports.checkValidColor = exports.TYPES = exports.SIZES = exports.EuiAvatar = void 0;
|
|
9
9
|
|
|
10
10
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
11
11
|
|
|
@@ -21,8 +21,6 @@ var _classnames = _interopRequireDefault(require("classnames"));
|
|
|
21
21
|
|
|
22
22
|
var _color = require("../../services/color");
|
|
23
23
|
|
|
24
|
-
var _system = require("../provider/system");
|
|
25
|
-
|
|
26
24
|
var _services = require("../../services");
|
|
27
25
|
|
|
28
26
|
var _icon = require("../icon");
|
|
@@ -31,18 +29,17 @@ var _avatar = require("./avatar.styles");
|
|
|
31
29
|
|
|
32
30
|
var _react2 = require("@emotion/react");
|
|
33
31
|
|
|
34
|
-
var _excluded = ["className", "color", "
|
|
32
|
+
var _excluded = ["className", "color", "imageUrl", "initials", "initialsLength", "iconType", "iconSize", "iconColor", "name", "size", "type", "isDisabled", "style"];
|
|
35
33
|
var SIZES = ['s', 'm', 'l', 'xl'];
|
|
36
34
|
exports.SIZES = SIZES;
|
|
37
35
|
var TYPES = ['space', 'user'];
|
|
38
36
|
exports.TYPES = TYPES;
|
|
39
37
|
|
|
40
|
-
var
|
|
38
|
+
var EuiAvatar = function EuiAvatar(_ref) {
|
|
41
39
|
var _classNames;
|
|
42
40
|
|
|
43
41
|
var className = _ref.className,
|
|
44
42
|
color = _ref.color,
|
|
45
|
-
euiTheme = _ref.euiTheme,
|
|
46
43
|
imageUrl = _ref.imageUrl,
|
|
47
44
|
initials = _ref.initials,
|
|
48
45
|
initialsLength = _ref.initialsLength,
|
|
@@ -58,6 +55,7 @@ var _EuiAvatar = function _EuiAvatar(_ref) {
|
|
|
58
55
|
isDisabled = _ref$isDisabled === void 0 ? false : _ref$isDisabled,
|
|
59
56
|
style = _ref.style,
|
|
60
57
|
rest = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
58
|
+
var euiTheme = (0, _services.useEuiTheme)();
|
|
61
59
|
var styles = (0, _avatar.euiAvatarStyles)(euiTheme);
|
|
62
60
|
var visColors = (0, _services.euiPaletteColorBlindBehindText)();
|
|
63
61
|
var isPlain = color === 'plain';
|
|
@@ -110,10 +108,8 @@ var _EuiAvatar = function _EuiAvatar(_ref) {
|
|
|
110
108
|
role: isDisabled ? 'presentation' : 'img',
|
|
111
109
|
title: name
|
|
112
110
|
}, rest), content);
|
|
113
|
-
};
|
|
111
|
+
}; // TODO: Migrate to a service
|
|
114
112
|
|
|
115
|
-
exports._EuiAvatar = _EuiAvatar;
|
|
116
|
-
var EuiAvatar = (0, _system.withEuiSystem)(_EuiAvatar); // TODO: Migrate to a service
|
|
117
113
|
|
|
118
114
|
exports.EuiAvatar = EuiAvatar;
|
|
119
115
|
|
|
@@ -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.paddingSizeToClassNameMap = exports.
|
|
10
|
+
exports.paddingSizeToClassNameMap = exports.POSITIONS = exports.EuiBottomBar = void 0;
|
|
11
11
|
|
|
12
12
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
13
13
|
|
|
@@ -31,15 +31,13 @@ var _resize_observer = require("../observer/resize_observer");
|
|
|
31
31
|
|
|
32
32
|
var _portal = require("../portal");
|
|
33
33
|
|
|
34
|
-
var
|
|
34
|
+
var _bottom_bar = require("./bottom_bar.styles");
|
|
35
35
|
|
|
36
36
|
var _provider = require("../../services/theme/provider");
|
|
37
37
|
|
|
38
|
-
var _bottom_bar = require("./bottom_bar.styles");
|
|
39
|
-
|
|
40
38
|
var _react2 = require("@emotion/react");
|
|
41
39
|
|
|
42
|
-
var _excluded = ["position", "paddingSize", "affordForDisplacement", "children", "className", "bodyClassName", "landmarkHeading", "usePortal", "left", "right", "bottom", "top", "style"
|
|
40
|
+
var _excluded = ["position", "paddingSize", "affordForDisplacement", "children", "className", "bodyClassName", "landmarkHeading", "usePortal", "left", "right", "bottom", "top", "style"];
|
|
43
41
|
|
|
44
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); }
|
|
45
43
|
|
|
@@ -81,8 +79,8 @@ var _EuiBottomBar = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
|
|
81
79
|
bottom = _ref$bottom === void 0 ? 0 : _ref$bottom,
|
|
82
80
|
top = _ref.top,
|
|
83
81
|
style = _ref.style,
|
|
84
|
-
euiTheme = _ref.euiTheme,
|
|
85
82
|
rest = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
83
|
+
var euiTheme = (0, _services.useEuiTheme)();
|
|
86
84
|
var styles = (0, _bottom_bar.euiBottomBarStyles)(euiTheme); // Force some props if `fixed` position, but not if the user has supplied these
|
|
87
85
|
|
|
88
86
|
affordForDisplacement = position !== 'fixed' ? false : affordForDisplacement;
|
|
@@ -156,11 +154,10 @@ var _EuiBottomBar = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
|
|
156
154
|
return usePortal ? (0, _react2.jsx)(_portal.EuiPortal, null, bar) : bar;
|
|
157
155
|
});
|
|
158
156
|
|
|
159
|
-
exports._EuiBottomBar = _EuiBottomBar;
|
|
160
157
|
var EuiBottomBar = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
161
|
-
var BottomBar =
|
|
158
|
+
var BottomBar = _EuiBottomBar;
|
|
162
159
|
return (0, _react2.jsx)(_provider.EuiThemeProvider, {
|
|
163
|
-
colorMode:
|
|
160
|
+
colorMode: 'dark'
|
|
164
161
|
}, (0, _react2.jsx)(BottomBar, (0, _extends2.default)({
|
|
165
162
|
ref: ref
|
|
166
163
|
}, props)));
|
|
@@ -183,8 +183,7 @@ var EuiBreadcrumbs = function EuiBreadcrumbs(_ref) {
|
|
|
183
183
|
}, linkProps, breadcrumbRest), text);
|
|
184
184
|
}
|
|
185
185
|
|
|
186
|
-
return (0, _react2.jsx)(_link.EuiLink
|
|
187
|
-
, (0, _extends2.default)({
|
|
186
|
+
return (0, _react2.jsx)(_link.EuiLink, (0, _extends2.default)({
|
|
188
187
|
ref: ref,
|
|
189
188
|
color: isLastBreadcrumb ? 'text' : 'subdued',
|
|
190
189
|
onClick: onClick,
|
|
@@ -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.HEADINGS = exports.EuiCallOut = exports.COLORS = void 0;
|
|
11
11
|
|
|
12
12
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
13
13
|
|
|
@@ -23,7 +23,7 @@ var _icon = require("../icon");
|
|
|
23
23
|
|
|
24
24
|
var _text = require("../text");
|
|
25
25
|
|
|
26
|
-
var
|
|
26
|
+
var _services = require("../../services");
|
|
27
27
|
|
|
28
28
|
var _panel = require("../panel");
|
|
29
29
|
|
|
@@ -33,7 +33,7 @@ var _call_out = require("./call_out.styles");
|
|
|
33
33
|
|
|
34
34
|
var _react2 = require("@emotion/react");
|
|
35
35
|
|
|
36
|
-
var _excluded = ["title", "color", "size", "iconType", "children", "className", "heading"
|
|
36
|
+
var _excluded = ["title", "color", "size", "iconType", "children", "className", "heading"];
|
|
37
37
|
|
|
38
38
|
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); }
|
|
39
39
|
|
|
@@ -43,8 +43,7 @@ var COLORS = ['primary', 'success', 'warning', 'danger'];
|
|
|
43
43
|
exports.COLORS = COLORS;
|
|
44
44
|
var HEADINGS = ['h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'p'];
|
|
45
45
|
exports.HEADINGS = HEADINGS;
|
|
46
|
-
|
|
47
|
-
var _EuiCallOut = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
|
46
|
+
var EuiCallOut = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
|
48
47
|
var title = _ref.title,
|
|
49
48
|
_ref$color = _ref.color,
|
|
50
49
|
color = _ref$color === void 0 ? 'primary' : _ref$color,
|
|
@@ -55,13 +54,13 @@ var _EuiCallOut = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
|
|
55
54
|
className = _ref.className,
|
|
56
55
|
_ref$heading = _ref.heading,
|
|
57
56
|
heading = _ref$heading === void 0 ? 'p' : _ref$heading,
|
|
58
|
-
euiTheme = _ref.euiTheme,
|
|
59
57
|
rest = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
60
|
-
var
|
|
58
|
+
var theme = (0, _services.useEuiTheme)();
|
|
59
|
+
var styles = (0, _call_out.euiCallOutStyles)(theme);
|
|
61
60
|
var cssStyles = [styles.euiCallOut];
|
|
62
61
|
var cssIconStyle = [styles.euiCallOut__icon];
|
|
63
62
|
var cssDescriptionStyle = [styles.euiCallOut__description];
|
|
64
|
-
var headerStyles = (0, _call_out.euiCallOutHeadingStyles)(
|
|
63
|
+
var headerStyles = (0, _call_out.euiCallOutHeadingStyles)(theme);
|
|
65
64
|
var cssHeaderStyles = [headerStyles.euiCallOutHeader, headerStyles[color]];
|
|
66
65
|
var classes = (0, _classnames.default)('euiCallOut', (0, _defineProperty2.default)({}, "euiCallOut--".concat(color), color), className);
|
|
67
66
|
var headerIcon;
|
|
@@ -109,8 +108,5 @@ var _EuiCallOut = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
|
|
109
108
|
grow: false
|
|
110
109
|
}, rest), header, optionalChildren);
|
|
111
110
|
});
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
_EuiCallOut.displayName = 'EuiCallOut';
|
|
115
|
-
var EuiCallOut = (0, _system.withEuiSystem)(_EuiCallOut);
|
|
116
|
-
exports.EuiCallOut = EuiCallOut;
|
|
111
|
+
exports.EuiCallOut = EuiCallOut;
|
|
112
|
+
EuiCallOut.displayName = 'EuiCallOut';
|
|
@@ -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.EuiExpression = exports.COLORS = void 0;
|
|
9
9
|
|
|
10
10
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
11
11
|
|
|
@@ -19,13 +19,13 @@ 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 _expression = require("./expression.styles");
|
|
25
25
|
|
|
26
26
|
var _react2 = require("@emotion/react");
|
|
27
27
|
|
|
28
|
-
var _excluded = ["className", "description", "descriptionProps", "value", "valueProps", "color", "uppercase", "isActive", "display", "descriptionWidth", "onClick", "isInvalid", "textWrap"
|
|
28
|
+
var _excluded = ["className", "description", "descriptionProps", "value", "valueProps", "color", "uppercase", "isActive", "display", "descriptionWidth", "onClick", "isInvalid", "textWrap"];
|
|
29
29
|
|
|
30
30
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
|
|
31
31
|
|
|
@@ -34,7 +34,7 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
34
34
|
var COLORS = ['subdued', 'primary', 'success', 'accent', 'warning', 'danger'];
|
|
35
35
|
exports.COLORS = COLORS;
|
|
36
36
|
|
|
37
|
-
var
|
|
37
|
+
var EuiExpression = function EuiExpression(_ref) {
|
|
38
38
|
var className = _ref.className,
|
|
39
39
|
description = _ref.description,
|
|
40
40
|
descriptionProps = _ref.descriptionProps,
|
|
@@ -55,16 +55,16 @@ var _EuiExpression = function _EuiExpression(_ref) {
|
|
|
55
55
|
isInvalid = _ref$isInvalid === void 0 ? false : _ref$isInvalid,
|
|
56
56
|
_ref$textWrap = _ref.textWrap,
|
|
57
57
|
textWrap = _ref$textWrap === void 0 ? 'break-word' : _ref$textWrap,
|
|
58
|
-
euiTheme = _ref.euiTheme,
|
|
59
58
|
rest = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
60
59
|
var calculatedColor = isInvalid ? 'danger' : color;
|
|
61
|
-
var
|
|
60
|
+
var theme = (0, _services.useEuiTheme)();
|
|
61
|
+
var styles = (0, _expression.euiExpressionStyles)(theme);
|
|
62
62
|
var cssStyles = [styles.euiExpression, onClick && styles.isClickable, styles[color], isActive && styles.isActive.base, isActive && styles.isActive[color], display === 'columns' && styles.columns, textWrap === 'truncate' && styles.truncate];
|
|
63
|
-
var descriptionStyles = (0, _expression.euiExpressionDescriptionStyles)(
|
|
63
|
+
var descriptionStyles = (0, _expression.euiExpressionDescriptionStyles)(theme);
|
|
64
64
|
var cssDescriptionStyles = [descriptionStyles.euiExpression__description, isInvalid ? descriptionStyles.danger : descriptionStyles[color], uppercase && descriptionStyles.isUppercase, textWrap === 'truncate' && descriptionStyles.truncate, display === 'columns' && descriptionStyles.columns];
|
|
65
|
-
var valueStyles = (0, _expression.euiExpressionValueStyles)(
|
|
65
|
+
var valueStyles = (0, _expression.euiExpressionValueStyles)(theme);
|
|
66
66
|
var cssValueStyles = [valueStyles.euiExpression__value, textWrap === 'truncate' && valueStyles.truncate, display === 'columns' && valueStyles.columns];
|
|
67
|
-
var iconStyles = (0, _expression.euiExpressionIconStyles)(
|
|
67
|
+
var iconStyles = (0, _expression.euiExpressionIconStyles)(theme);
|
|
68
68
|
var cssIconStyles = [iconStyles.euiExpression__icon, display === 'columns' && iconStyles.columns];
|
|
69
69
|
var classes = (0, _classnames.default)('euiExpression', className);
|
|
70
70
|
var Component = onClick ? 'button' : 'span';
|
|
@@ -92,6 +92,4 @@ var _EuiExpression = function _EuiExpression(_ref) {
|
|
|
92
92
|
}, valueProps), value), invalidIcon);
|
|
93
93
|
};
|
|
94
94
|
|
|
95
|
-
exports._EuiExpression = _EuiExpression;
|
|
96
|
-
var EuiExpression = (0, _system.withEuiSystem)(_EuiExpression);
|
|
97
95
|
exports.EuiExpression = EuiExpression;
|
|
@@ -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.EuiFacetButton = void 0;
|
|
9
9
|
|
|
10
10
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
11
11
|
|
|
@@ -23,7 +23,7 @@ var _inner_text = require("../inner_text");
|
|
|
23
23
|
|
|
24
24
|
var _clone_element = require("../../services/theme/clone_element");
|
|
25
25
|
|
|
26
|
-
var
|
|
26
|
+
var _services = require("../../services");
|
|
27
27
|
|
|
28
28
|
var _facet_button = require("./facet_button.styles");
|
|
29
29
|
|
|
@@ -31,9 +31,9 @@ var _button_display = require("../button/button_display/_button_display");
|
|
|
31
31
|
|
|
32
32
|
var _react2 = require("@emotion/react");
|
|
33
33
|
|
|
34
|
-
var _excluded = ["children", "className", "icon", "isDisabled", "isLoading", "isSelected", "quantity", "buttonRef"
|
|
34
|
+
var _excluded = ["children", "className", "icon", "isDisabled", "isLoading", "isSelected", "quantity", "buttonRef"];
|
|
35
35
|
|
|
36
|
-
var
|
|
36
|
+
var EuiFacetButton = function EuiFacetButton(_ref) {
|
|
37
37
|
var children = _ref.children,
|
|
38
38
|
className = _ref.className,
|
|
39
39
|
icon = _ref.icon,
|
|
@@ -45,15 +45,15 @@ var _EuiFacetButton = function _EuiFacetButton(_ref) {
|
|
|
45
45
|
isSelected = _ref$isSelected === void 0 ? false : _ref$isSelected,
|
|
46
46
|
quantity = _ref.quantity,
|
|
47
47
|
buttonRef = _ref.buttonRef,
|
|
48
|
-
euiTheme = _ref.euiTheme,
|
|
49
48
|
rest = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
50
49
|
// If in the loading state, force disabled to true
|
|
51
50
|
isDisabled = isLoading ? true : isDisabled;
|
|
52
51
|
var selection = isSelected ? 'isSelected' : 'unSelected';
|
|
53
52
|
var classes = (0, _classnames.default)('euiFacetButton', className);
|
|
54
|
-
var
|
|
53
|
+
var theme = (0, _services.useEuiTheme)();
|
|
54
|
+
var styles = (0, _facet_button.euiFacetButtonStyles)(theme);
|
|
55
55
|
var cssStyles = [styles.euiFacetButton];
|
|
56
|
-
var textStyles = (0, _facet_button.euiFacetButtonTextStyles)(
|
|
56
|
+
var textStyles = (0, _facet_button.euiFacetButtonTextStyles)(theme);
|
|
57
57
|
var cssTextStyles = [textStyles.euiFacetButton__text, textStyles[selection]];
|
|
58
58
|
var quantityStyles = (0, _facet_button.euiFacetButtonQuantityStyles)();
|
|
59
59
|
var cssQuantityStyles = [quantityStyles.euiFacetButton__quantity, isDisabled && quantityStyles.isDisabled];
|
|
@@ -106,6 +106,4 @@ var _EuiFacetButton = function _EuiFacetButton(_ref) {
|
|
|
106
106
|
});
|
|
107
107
|
};
|
|
108
108
|
|
|
109
|
-
exports._EuiFacetButton = _EuiFacetButton;
|
|
110
|
-
var EuiFacetButton = (0, _system.withEuiSystem)(_EuiFacetButton);
|
|
111
109
|
exports.EuiFacetButton = EuiFacetButton;
|
|
@@ -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
|
|
|
@@ -15,28 +15,28 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
15
15
|
|
|
16
16
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
17
17
|
|
|
18
|
-
var
|
|
18
|
+
var _services = require("../../services");
|
|
19
19
|
|
|
20
20
|
var _facet_group = require("./facet_group.styles");
|
|
21
21
|
|
|
22
22
|
var _react2 = require("@emotion/react");
|
|
23
23
|
|
|
24
|
-
var _excluded = ["children", "className", "layout", "gutterSize"
|
|
24
|
+
var _excluded = ["children", "className", "layout", "gutterSize"];
|
|
25
25
|
var LAYOUTS = ['vertical', 'horizontal'];
|
|
26
26
|
exports.LAYOUTS = LAYOUTS;
|
|
27
27
|
var GUTTER_SIZES = ['none', 's', 'm', 'l'];
|
|
28
28
|
exports.GUTTER_SIZES = GUTTER_SIZES;
|
|
29
29
|
|
|
30
|
-
var
|
|
30
|
+
var EuiFacetGroup = function EuiFacetGroup(_ref) {
|
|
31
31
|
var children = _ref.children,
|
|
32
32
|
className = _ref.className,
|
|
33
33
|
_ref$layout = _ref.layout,
|
|
34
34
|
layout = _ref$layout === void 0 ? 'vertical' : _ref$layout,
|
|
35
35
|
_ref$gutterSize = _ref.gutterSize,
|
|
36
36
|
gutterSize = _ref$gutterSize === void 0 ? 'm' : _ref$gutterSize,
|
|
37
|
-
euiTheme = _ref.euiTheme,
|
|
38
37
|
rest = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
39
|
-
var
|
|
38
|
+
var theme = (0, _services.useEuiTheme)();
|
|
39
|
+
var styles = (0, _facet_group.euiFacetGroupStyles)(theme, layout);
|
|
40
40
|
var cssStyles = [styles.euiFacetGroup, styles[gutterSize], styles[layout]];
|
|
41
41
|
var classes = (0, _classnames.default)('euiFacetGroup', className);
|
|
42
42
|
return (0, _react2.jsx)("div", (0, _extends2.default)({
|
|
@@ -45,6 +45,4 @@ var _EuiFacetGroup = function _EuiFacetGroup(_ref) {
|
|
|
45
45
|
}, rest), children);
|
|
46
46
|
};
|
|
47
47
|
|
|
48
|
-
exports._EuiFacetGroup = _EuiFacetGroup;
|
|
49
|
-
var EuiFacetGroup = (0, _system.withEuiSystem)(_EuiFacetGroup);
|
|
50
48
|
exports.EuiFacetGroup = EuiFacetGroup;
|
|
@@ -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
|
|
|
@@ -15,7 +15,7 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
15
15
|
|
|
16
16
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
17
17
|
|
|
18
|
-
var
|
|
18
|
+
var _services = require("../../services");
|
|
19
19
|
|
|
20
20
|
var _health = require("./health.styles");
|
|
21
21
|
|
|
@@ -25,18 +25,18 @@ var _flex = require("../flex");
|
|
|
25
25
|
|
|
26
26
|
var _react2 = require("@emotion/react");
|
|
27
27
|
|
|
28
|
-
var _excluded = ["children", "className", "color", "
|
|
28
|
+
var _excluded = ["children", "className", "color", "textSize"];
|
|
29
29
|
var TEXT_SIZES = ['xs', 's', 'm', 'inherit'];
|
|
30
30
|
exports.TEXT_SIZES = TEXT_SIZES;
|
|
31
31
|
|
|
32
|
-
var
|
|
32
|
+
var EuiHealth = function EuiHealth(_ref) {
|
|
33
33
|
var children = _ref.children,
|
|
34
34
|
className = _ref.className,
|
|
35
35
|
color = _ref.color,
|
|
36
|
-
euiTheme = _ref.euiTheme,
|
|
37
36
|
_ref$textSize = _ref.textSize,
|
|
38
37
|
textSize = _ref$textSize === void 0 ? 's' : _ref$textSize,
|
|
39
38
|
rest = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
39
|
+
var euiTheme = (0, _services.useEuiTheme)();
|
|
40
40
|
var styles = (0, _health.euiHealthStyles)(euiTheme);
|
|
41
41
|
var cssStyles = [styles.euiHealth, styles[textSize]];
|
|
42
42
|
var classes = (0, _classnames.default)('euiHealth', className);
|
|
@@ -57,6 +57,4 @@ var _EuiHealth = function _EuiHealth(_ref) {
|
|
|
57
57
|
}, children)));
|
|
58
58
|
};
|
|
59
59
|
|
|
60
|
-
exports._EuiHealth = _EuiHealth;
|
|
61
|
-
var EuiHealth = (0, _system.withEuiSystem)(_EuiHealth);
|
|
62
60
|
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.
|
|
8
|
+
exports.SIZES = exports.MARGINS = exports.EuiHorizontalRule = void 0;
|
|
9
9
|
|
|
10
10
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
11
11
|
|
|
@@ -17,13 +17,13 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
17
17
|
|
|
18
18
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
19
19
|
|
|
20
|
-
var
|
|
20
|
+
var _services = require("../../services");
|
|
21
21
|
|
|
22
22
|
var _horizontal_rule = require("./horizontal_rule.styles");
|
|
23
23
|
|
|
24
24
|
var _react2 = require("@emotion/react");
|
|
25
25
|
|
|
26
|
-
var _excluded = ["className", "
|
|
26
|
+
var _excluded = ["className", "size", "margin"];
|
|
27
27
|
var SIZES = ['full', 'half', 'quarter'];
|
|
28
28
|
exports.SIZES = SIZES;
|
|
29
29
|
var MARGINS = ['none', 'xs', 's', 'm', 'l', 'xl', 'xxl'];
|
|
@@ -38,16 +38,16 @@ var marginToClassNameMap = {
|
|
|
38
38
|
xxl: 'marginXXLarge'
|
|
39
39
|
};
|
|
40
40
|
|
|
41
|
-
var
|
|
41
|
+
var EuiHorizontalRule = function EuiHorizontalRule(_ref) {
|
|
42
42
|
var _classNames;
|
|
43
43
|
|
|
44
44
|
var className = _ref.className,
|
|
45
|
-
euiTheme = _ref.euiTheme,
|
|
46
45
|
_ref$size = _ref.size,
|
|
47
46
|
size = _ref$size === void 0 ? 'full' : _ref$size,
|
|
48
47
|
_ref$margin = _ref.margin,
|
|
49
48
|
margin = _ref$margin === void 0 ? 'l' : _ref$margin,
|
|
50
49
|
rest = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
50
|
+
var euiTheme = (0, _services.useEuiTheme)();
|
|
51
51
|
var styles = (0, _horizontal_rule.euiHorizontalRuleStyles)(euiTheme);
|
|
52
52
|
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);
|
|
53
53
|
var cssStyles = [styles.euiHorizontalRule, styles[size], styles[margin]];
|
|
@@ -57,6 +57,4 @@ var _EuiHorizontalRule = function _EuiHorizontalRule(_ref) {
|
|
|
57
57
|
}, rest));
|
|
58
58
|
};
|
|
59
59
|
|
|
60
|
-
exports._EuiHorizontalRule = _EuiHorizontalRule;
|
|
61
|
-
var EuiHorizontalRule = (0, _system.withEuiSystem)(_EuiHorizontalRule);
|
|
62
60
|
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.
|
|
10
|
+
exports.EuiLink = exports.COLORS = void 0;
|
|
11
11
|
|
|
12
12
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
13
13
|
|
|
@@ -21,8 +21,6 @@ var _classnames = _interopRequireDefault(require("classnames"));
|
|
|
21
21
|
|
|
22
22
|
var _services = require("../../services");
|
|
23
23
|
|
|
24
|
-
var _system = require("../provider/system");
|
|
25
|
-
|
|
26
24
|
var _link = require("./link.styles");
|
|
27
25
|
|
|
28
26
|
var _icon = require("../icon");
|
|
@@ -35,7 +33,7 @@ var _href_validator = require("../../services/security/href_validator");
|
|
|
35
33
|
|
|
36
34
|
var _react2 = require("@emotion/react");
|
|
37
35
|
|
|
38
|
-
var _excluded = ["children", "color", "className", "href", "external", "target", "rel", "type", "onClick", "disabled"
|
|
36
|
+
var _excluded = ["children", "color", "className", "href", "external", "target", "rel", "type", "onClick", "disabled"];
|
|
39
37
|
|
|
40
38
|
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
39
|
|
|
@@ -47,8 +45,7 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
47
45
|
|
|
48
46
|
var COLORS = ['primary', 'subdued', 'success', 'accent', 'danger', 'warning', 'text', 'ghost'];
|
|
49
47
|
exports.COLORS = COLORS;
|
|
50
|
-
|
|
51
|
-
var _EuiLink = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
|
48
|
+
var EuiLink = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
|
52
49
|
var children = _ref.children,
|
|
53
50
|
_ref$color = _ref.color,
|
|
54
51
|
color = _ref$color === void 0 ? 'primary' : _ref$color,
|
|
@@ -61,8 +58,8 @@ var _EuiLink = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
|
|
61
58
|
type = _ref$type === void 0 ? 'button' : _ref$type,
|
|
62
59
|
onClick = _ref.onClick,
|
|
63
60
|
_disabled = _ref.disabled,
|
|
64
|
-
euiTheme = _ref.euiTheme,
|
|
65
61
|
rest = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
62
|
+
var euiTheme = (0, _services.useEuiTheme)();
|
|
66
63
|
var styles = (0, _link.euiLinkStyles)(euiTheme);
|
|
67
64
|
var cssStyles = [styles.euiLink];
|
|
68
65
|
var cssScreenReaderTextStyles = [styles.euiLink__screenReaderText];
|
|
@@ -116,8 +113,5 @@ var _EuiLink = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
|
|
116
113
|
ref: ref
|
|
117
114
|
}, anchorProps), children, showExternalLinkIcon && externalLinkIcon, target === '_blank' && newTargetScreenreaderText);
|
|
118
115
|
});
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
_EuiLink.displayName = 'EuiLink';
|
|
122
|
-
var EuiLink = (0, _system.withEuiSystem)(_EuiLink);
|
|
123
|
-
exports.EuiLink = EuiLink;
|
|
116
|
+
exports.EuiLink = EuiLink;
|
|
117
|
+
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
|
|
|
@@ -15,7 +15,7 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
15
15
|
|
|
16
16
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
17
17
|
|
|
18
|
-
var
|
|
18
|
+
var _services = require("../../services");
|
|
19
19
|
|
|
20
20
|
var _loading_chart = require("./loading_chart.styles");
|
|
21
21
|
|
|
@@ -23,20 +23,20 @@ var _i18n = require("../i18n");
|
|
|
23
23
|
|
|
24
24
|
var _react2 = require("@emotion/react");
|
|
25
25
|
|
|
26
|
-
var _excluded = ["size", "mono", "className", "aria-label"
|
|
26
|
+
var _excluded = ["size", "mono", "className", "aria-label"];
|
|
27
27
|
var SIZES = ['m', 'l', 'xl'];
|
|
28
28
|
exports.SIZES = SIZES;
|
|
29
29
|
|
|
30
|
-
var
|
|
30
|
+
var EuiLoadingChart = function EuiLoadingChart(_ref) {
|
|
31
31
|
var _ref$size = _ref.size,
|
|
32
32
|
size = _ref$size === void 0 ? 'm' : _ref$size,
|
|
33
33
|
_ref$mono = _ref.mono,
|
|
34
34
|
mono = _ref$mono === void 0 ? false : _ref$mono,
|
|
35
35
|
className = _ref.className,
|
|
36
36
|
ariaLabel = _ref['aria-label'],
|
|
37
|
-
euiTheme = _ref.euiTheme,
|
|
38
37
|
rest = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
39
38
|
var defaultAriaLabel = (0, _i18n.useEuiI18n)('euiLoadingChart.ariaLabel', 'Loading');
|
|
39
|
+
var euiTheme = (0, _services.useEuiTheme)();
|
|
40
40
|
var styles = (0, _loading_chart.euiLoadingChartStyles)(euiTheme);
|
|
41
41
|
var barStyles = (0, _loading_chart.euiLoadingChartBarStyles)(euiTheme);
|
|
42
42
|
var classes = (0, _classnames.default)('euiLoadingChart', {
|
|
@@ -65,6 +65,4 @@ var _EuiLoadingChart = function _EuiLoadingChart(_ref) {
|
|
|
65
65
|
}, rest), bars);
|
|
66
66
|
};
|
|
67
67
|
|
|
68
|
-
exports._EuiLoadingChart = _EuiLoadingChart;
|
|
69
|
-
var EuiLoadingChart = (0, _system.withEuiSystem)(_EuiLoadingChart);
|
|
70
68
|
exports.EuiLoadingChart = EuiLoadingChart;
|