@elastic/eui 59.0.1 → 59.1.0-rc1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/eui_charts_theme.js +330 -330
- package/dist/eui_charts_theme.js.map +1 -1
- package/dist/eui_theme_dark.css +2 -136
- package/dist/eui_theme_dark.json +0 -6
- package/dist/eui_theme_dark.json.d.ts +0 -6
- package/dist/eui_theme_dark.min.css +1 -1
- package/dist/eui_theme_light.css +2 -136
- package/dist/eui_theme_light.json +0 -6
- package/dist/eui_theme_light.json.d.ts +0 -6
- package/dist/eui_theme_light.min.css +1 -1
- package/es/components/accessibility/skip_link/skip_link.js +9 -7
- package/es/components/avatar/avatar.js +9 -7
- package/es/components/bottom_bar/bottom_bar.js +8 -9
- package/es/components/breadcrumbs/breadcrumbs.js +2 -1
- package/es/components/button/{button_content.js → _button_content_deprecated.js} +4 -3
- package/es/components/button/button.js +16 -10
- package/es/components/button/button_display/_button_display.js +141 -0
- package/es/components/button/button_display/_button_display.styles.js +53 -0
- package/es/components/button/button_display/_button_display_content.js +100 -0
- package/es/components/button/button_display/_button_display_content.styles.js +61 -0
- package/es/components/button/button_empty/button_empty.js +3 -2
- package/es/components/button/button_group/button_group.js +2 -1
- package/es/components/button/button_group/button_group_button.js +3 -2
- package/es/components/call_out/call_out.js +9 -8
- package/es/components/card/card.js +2 -1
- package/es/components/card/card_select.js +2 -1
- package/es/components/date_picker/auto_refresh/auto_refresh.js +2 -1
- package/es/components/expression/expression.js +11 -10
- package/es/components/facet/facet_button.js +36 -19
- package/es/components/facet/facet_button.styles.js +64 -0
- package/es/components/facet/facet_group.js +17 -27
- package/es/components/facet/facet_group.styles.js +79 -0
- package/es/components/header/header_links/header_link.js +2 -1
- package/es/components/health/health.js +7 -6
- package/es/components/horizontal_rule/horizontal_rule.js +7 -6
- package/es/components/link/link.js +8 -7
- package/es/components/loading/loading_chart.js +7 -6
- package/es/components/loading/loading_content.js +7 -6
- package/es/components/loading/loading_logo.js +7 -6
- package/es/components/loading/loading_spinner.js +20 -8
- package/es/components/loading/loading_spinner.styles.js +4 -4
- package/es/components/mark/mark.js +9 -8
- package/es/components/markdown_editor/markdown_format.js +7 -6
- package/es/components/notification/notification_event.js +2 -1
- package/es/components/pagination/pagination_button.js +2 -1
- package/es/components/panel/panel.js +8 -7
- package/es/components/provider/cache/cache_context.js +12 -0
- package/es/components/provider/cache/cache_provider.js +17 -0
- package/es/components/provider/cache/index.js +9 -0
- package/es/components/provider/index.js +1 -1
- package/es/components/provider/provider.js +39 -5
- package/es/components/provider/system/index.js +8 -0
- package/es/components/provider/system/system.js +33 -0
- package/es/components/spacer/spacer.js +7 -6
- package/es/components/text/text.js +7 -6
- package/es/components/text/text_color.js +7 -6
- package/es/components/timeline/timeline_item.js +7 -6
- package/es/components/timeline/timeline_item_icon.js +7 -6
- package/es/components/title/title.js +7 -6
- package/es/global_styling/utility/utility.js +27 -0
- package/es/services/theme/hooks.js +2 -2
- package/es/services/theme/provider.js +1 -5
- package/eui.d.ts +1030 -357
- package/i18ntokens.json +12 -12
- package/lib/components/accessibility/skip_link/skip_link.js +13 -10
- package/lib/components/avatar/avatar.js +12 -8
- package/lib/components/bottom_bar/bottom_bar.js +9 -6
- package/lib/components/breadcrumbs/breadcrumbs.js +2 -1
- package/lib/components/button/{button_content.js → _button_content_deprecated.js} +6 -5
- package/lib/components/button/button.js +19 -13
- package/lib/components/button/button_display/_button_display.js +146 -0
- package/lib/components/button/button_display/_button_display.styles.js +59 -0
- package/lib/components/button/button_display/_button_display_content.js +111 -0
- package/lib/components/button/button_display/_button_display_content.styles.js +64 -0
- package/lib/components/button/button_empty/button_empty.js +4 -3
- package/lib/components/button/button_group/button_group.js +2 -1
- package/lib/components/button/button_group/button_group_button.js +3 -2
- package/lib/components/call_out/call_out.js +14 -10
- package/lib/components/card/card.js +2 -1
- package/lib/components/card/card_select.js +2 -1
- package/lib/components/date_picker/auto_refresh/auto_refresh.js +2 -1
- package/lib/components/expression/expression.js +14 -12
- package/lib/components/facet/facet_button.js +43 -21
- package/lib/components/facet/facet_button.styles.js +79 -0
- package/lib/components/facet/facet_group.js +20 -29
- package/lib/components/facet/facet_group.styles.js +82 -0
- package/lib/components/header/header_links/header_link.js +2 -1
- package/lib/components/health/health.js +10 -8
- package/lib/components/horizontal_rule/horizontal_rule.js +10 -8
- package/lib/components/link/link.js +13 -7
- package/lib/components/loading/loading_chart.js +10 -8
- package/lib/components/loading/loading_content.js +10 -8
- package/lib/components/loading/loading_logo.js +10 -8
- package/lib/components/loading/loading_spinner.js +23 -10
- package/lib/components/loading/loading_spinner.styles.js +4 -4
- package/lib/components/mark/mark.js +12 -10
- package/lib/components/markdown_editor/markdown_format.js +10 -8
- package/lib/components/notification/notification_event.js +2 -1
- package/lib/components/panel/panel.js +11 -9
- package/lib/components/provider/cache/cache_context.js +24 -0
- package/lib/components/provider/cache/cache_provider.js +29 -0
- package/lib/components/provider/cache/index.js +31 -0
- package/lib/components/provider/index.js +12 -7
- package/lib/components/provider/provider.js +40 -5
- package/lib/components/provider/system/index.js +18 -0
- package/lib/components/provider/system/system.js +45 -0
- package/lib/components/spacer/spacer.js +10 -8
- package/lib/components/text/text.js +10 -8
- package/lib/components/text/text_color.js +10 -8
- package/lib/components/timeline/timeline_item.js +10 -8
- package/lib/components/timeline/timeline_item_icon.js +10 -8
- package/lib/components/title/title.js +11 -9
- package/lib/global_styling/utility/utility.js +31 -0
- package/lib/services/theme/hooks.js +2 -2
- package/lib/services/theme/provider.js +3 -6
- package/optimize/es/components/accessibility/skip_link/skip_link.js +6 -5
- package/optimize/es/components/avatar/avatar.js +7 -5
- package/optimize/es/components/bottom_bar/bottom_bar.js +8 -9
- package/optimize/es/components/breadcrumbs/breadcrumbs.js +2 -1
- package/optimize/es/components/button/{button_content.js → _button_content_deprecated.js} +1 -1
- package/optimize/es/components/button/button.js +13 -8
- package/optimize/es/components/button/button_display/_button_display.js +73 -0
- package/optimize/es/components/button/button_display/_button_display.styles.js +53 -0
- package/optimize/es/components/button/button_display/_button_display_content.js +67 -0
- package/optimize/es/components/button/button_display/_button_display_content.styles.js +61 -0
- package/optimize/es/components/button/button_empty/button_empty.js +1 -1
- package/optimize/es/components/button/button_group/button_group_button.js +1 -1
- package/optimize/es/components/call_out/call_out.js +8 -7
- package/optimize/es/components/expression/expression.js +10 -9
- package/optimize/es/components/facet/facet_button.js +35 -18
- package/optimize/es/components/facet/facet_button.styles.js +64 -0
- package/optimize/es/components/facet/facet_group.js +14 -24
- package/optimize/es/components/facet/facet_group.styles.js +79 -0
- package/optimize/es/components/health/health.js +6 -5
- package/optimize/es/components/horizontal_rule/horizontal_rule.js +6 -5
- package/optimize/es/components/link/link.js +7 -6
- package/optimize/es/components/loading/loading_chart.js +6 -5
- package/optimize/es/components/loading/loading_content.js +6 -5
- package/optimize/es/components/loading/loading_logo.js +6 -5
- package/optimize/es/components/loading/loading_spinner.js +8 -6
- package/optimize/es/components/loading/loading_spinner.styles.js +4 -4
- package/optimize/es/components/mark/mark.js +8 -7
- package/optimize/es/components/markdown_editor/markdown_format.js +6 -5
- package/optimize/es/components/panel/panel.js +7 -6
- package/optimize/es/components/provider/cache/cache_context.js +12 -0
- package/optimize/es/components/provider/cache/cache_provider.js +17 -0
- package/optimize/es/components/provider/cache/index.js +9 -0
- package/optimize/es/components/provider/index.js +1 -1
- package/optimize/es/components/provider/provider.js +39 -5
- package/optimize/es/components/provider/system/index.js +8 -0
- package/optimize/es/components/provider/system/system.js +33 -0
- package/optimize/es/components/spacer/spacer.js +6 -5
- package/optimize/es/components/text/text.js +6 -5
- package/optimize/es/components/text/text_color.js +6 -5
- package/optimize/es/components/timeline/timeline_item.js +6 -5
- package/optimize/es/components/timeline/timeline_item_icon.js +6 -5
- package/optimize/es/components/title/title.js +6 -5
- package/optimize/es/global_styling/utility/utility.js +27 -0
- package/optimize/es/services/theme/hooks.js +2 -2
- package/optimize/es/services/theme/provider.js +1 -5
- package/optimize/lib/components/accessibility/skip_link/skip_link.js +8 -6
- package/optimize/lib/components/avatar/avatar.js +9 -5
- package/optimize/lib/components/bottom_bar/bottom_bar.js +9 -6
- package/optimize/lib/components/breadcrumbs/breadcrumbs.js +2 -1
- package/optimize/lib/components/button/{button_content.js → _button_content_deprecated.js} +3 -3
- package/optimize/lib/components/button/button.js +16 -11
- package/optimize/lib/components/button/button_display/_button_display.js +79 -0
- package/optimize/lib/components/button/button_display/_button_display.styles.js +59 -0
- package/optimize/lib/components/button/button_display/_button_display_content.js +78 -0
- package/optimize/lib/components/button/button_display/_button_display_content.styles.js +64 -0
- package/optimize/lib/components/button/button_empty/button_empty.js +2 -2
- package/optimize/lib/components/button/button_group/button_group_button.js +1 -1
- package/optimize/lib/components/call_out/call_out.js +13 -9
- package/optimize/lib/components/expression/expression.js +11 -9
- package/optimize/lib/components/facet/facet_button.js +40 -18
- package/optimize/lib/components/facet/facet_button.styles.js +79 -0
- package/optimize/lib/components/facet/facet_group.js +15 -24
- package/optimize/lib/components/facet/facet_group.styles.js +82 -0
- package/optimize/lib/components/health/health.js +7 -5
- package/optimize/lib/components/horizontal_rule/horizontal_rule.js +7 -5
- package/optimize/lib/components/link/link.js +12 -6
- package/optimize/lib/components/loading/loading_chart.js +7 -5
- package/optimize/lib/components/loading/loading_content.js +7 -5
- package/optimize/lib/components/loading/loading_logo.js +7 -5
- package/optimize/lib/components/loading/loading_spinner.js +9 -6
- package/optimize/lib/components/loading/loading_spinner.styles.js +4 -4
- package/optimize/lib/components/mark/mark.js +9 -7
- package/optimize/lib/components/markdown_editor/markdown_format.js +7 -5
- package/optimize/lib/components/panel/panel.js +8 -6
- package/optimize/lib/components/provider/cache/cache_context.js +24 -0
- package/optimize/lib/components/provider/cache/cache_provider.js +29 -0
- package/optimize/lib/components/provider/cache/index.js +31 -0
- package/optimize/lib/components/provider/index.js +12 -7
- package/optimize/lib/components/provider/provider.js +40 -5
- package/optimize/lib/components/provider/system/index.js +18 -0
- package/optimize/lib/components/provider/system/system.js +54 -0
- package/optimize/lib/components/spacer/spacer.js +7 -5
- package/optimize/lib/components/text/text.js +7 -5
- package/optimize/lib/components/text/text_color.js +7 -5
- package/optimize/lib/components/timeline/timeline_item.js +7 -5
- package/optimize/lib/components/timeline/timeline_item_icon.js +7 -5
- package/optimize/lib/components/title/title.js +8 -6
- package/optimize/lib/global_styling/utility/utility.js +31 -0
- package/optimize/lib/services/theme/hooks.js +2 -2
- package/optimize/lib/services/theme/provider.js +3 -6
- package/package.json +1 -1
- package/src/components/index.scss +0 -1
- package/src/components/selectable/selectable_message/_selectable_message.scss +1 -0
- package/src/themes/amsterdam/overrides/_index.scss +0 -1
- package/test-env/components/accessibility/skip_link/skip_link.js +13 -10
- package/test-env/components/avatar/avatar.js +12 -8
- package/test-env/components/bottom_bar/bottom_bar.js +9 -6
- package/test-env/components/breadcrumbs/breadcrumbs.js +2 -1
- package/test-env/components/button/{button_content.js → _button_content_deprecated.js} +6 -5
- package/test-env/components/button/button.js +19 -13
- package/test-env/components/button/button_display/_button_display.js +143 -0
- package/test-env/components/button/button_display/_button_display.styles.js +59 -0
- package/test-env/components/button/button_display/_button_display_content.js +108 -0
- package/test-env/components/button/button_display/_button_display_content.styles.js +64 -0
- package/test-env/components/button/button_empty/button_empty.js +4 -3
- package/test-env/components/button/button_group/button_group.js +2 -1
- package/test-env/components/button/button_group/button_group_button.js +3 -2
- package/test-env/components/call_out/call_out.js +14 -10
- package/test-env/components/card/card.js +2 -1
- package/test-env/components/card/card_select.js +2 -1
- package/test-env/components/date_picker/auto_refresh/auto_refresh.js +2 -1
- package/test-env/components/expression/expression.js +14 -12
- package/test-env/components/facet/facet_button.js +43 -21
- package/test-env/components/facet/facet_button.styles.js +79 -0
- package/test-env/components/facet/facet_group.js +20 -29
- package/test-env/components/facet/facet_group.styles.js +82 -0
- package/test-env/components/header/header_links/header_link.js +2 -1
- package/test-env/components/health/health.js +10 -8
- package/test-env/components/horizontal_rule/horizontal_rule.js +10 -8
- package/test-env/components/link/link.js +13 -7
- package/test-env/components/loading/loading_chart.js +10 -8
- package/test-env/components/loading/loading_content.js +10 -8
- package/test-env/components/loading/loading_logo.js +10 -8
- package/test-env/components/loading/loading_spinner.js +23 -10
- package/test-env/components/loading/loading_spinner.styles.js +4 -4
- package/test-env/components/mark/mark.js +12 -10
- package/test-env/components/markdown_editor/markdown_format.js +10 -8
- package/test-env/components/notification/notification_event.js +2 -1
- package/test-env/components/panel/panel.js +11 -9
- package/test-env/components/provider/cache/cache_context.js +24 -0
- package/test-env/components/provider/cache/cache_provider.js +29 -0
- package/test-env/components/provider/cache/index.js +31 -0
- package/test-env/components/provider/index.js +12 -7
- package/test-env/components/provider/provider.js +40 -5
- package/test-env/components/provider/system/index.js +18 -0
- package/test-env/components/provider/system/system.js +54 -0
- package/test-env/components/spacer/spacer.js +10 -8
- package/test-env/components/text/text.js +10 -8
- package/test-env/components/text/text_color.js +10 -8
- package/test-env/components/timeline/timeline_item.js +10 -8
- package/test-env/components/timeline/timeline_item_icon.js +10 -8
- package/test-env/components/title/title.js +11 -9
- package/test-env/global_styling/utility/utility.js +31 -0
- package/test-env/services/theme/hooks.js +2 -2
- package/test-env/services/theme/provider.js +3 -6
- package/src/components/facet/_facet_button.scss +0 -69
- package/src/components/facet/_facet_group.scss +0 -24
- package/src/components/facet/_index.scss +0 -4
- package/src/components/facet/_variables.scss +0 -6
- package/src/themes/amsterdam/overrides/_facet.scss +0 -10
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var _excluded = ["className", "size", "margin"];
|
|
1
|
+
var _excluded = ["className", "euiTheme", "size", "margin"];
|
|
2
2
|
|
|
3
3
|
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
4
4
|
|
|
@@ -18,7 +18,7 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
|
|
|
18
18
|
import React from 'react';
|
|
19
19
|
import PropTypes from "prop-types";
|
|
20
20
|
import classNames from 'classnames';
|
|
21
|
-
import {
|
|
21
|
+
import { withEuiSystem } from '../provider/system';
|
|
22
22
|
import { euiHorizontalRuleStyles } from './horizontal_rule.styles';
|
|
23
23
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
24
24
|
export var SIZES = ['full', 'half', 'quarter'];
|
|
@@ -32,17 +32,17 @@ var marginToClassNameMap = {
|
|
|
32
32
|
xl: 'marginXLarge',
|
|
33
33
|
xxl: 'marginXXLarge'
|
|
34
34
|
};
|
|
35
|
-
export var
|
|
35
|
+
export var _EuiHorizontalRule = function _EuiHorizontalRule(_ref) {
|
|
36
36
|
var _classNames;
|
|
37
37
|
|
|
38
38
|
var className = _ref.className,
|
|
39
|
+
euiTheme = _ref.euiTheme,
|
|
39
40
|
_ref$size = _ref.size,
|
|
40
41
|
size = _ref$size === void 0 ? 'full' : _ref$size,
|
|
41
42
|
_ref$margin = _ref.margin,
|
|
42
43
|
margin = _ref$margin === void 0 ? 'l' : _ref$margin,
|
|
43
44
|
rest = _objectWithoutProperties(_ref, _excluded);
|
|
44
45
|
|
|
45
|
-
var euiTheme = useEuiTheme();
|
|
46
46
|
var styles = euiHorizontalRuleStyles(euiTheme);
|
|
47
47
|
var classes = classNames('euiHorizontalRule', (_classNames = {}, _defineProperty(_classNames, "euiHorizontalRule--".concat(size), size), _defineProperty(_classNames, "euiHorizontalRule--".concat(marginToClassNameMap[margin]), margin && margin !== 'none'), _classNames), className);
|
|
48
48
|
var cssStyles = [styles.euiHorizontalRule, styles[size], styles[margin]];
|
|
@@ -51,7 +51,7 @@ export var EuiHorizontalRule = function EuiHorizontalRule(_ref) {
|
|
|
51
51
|
className: classes
|
|
52
52
|
}, rest));
|
|
53
53
|
};
|
|
54
|
-
|
|
54
|
+
_EuiHorizontalRule.propTypes = {
|
|
55
55
|
/**
|
|
56
56
|
* Defines the width of the HR.
|
|
57
57
|
*/
|
|
@@ -60,4 +60,5 @@ EuiHorizontalRule.propTypes = {
|
|
|
60
60
|
className: PropTypes.string,
|
|
61
61
|
"aria-label": PropTypes.string,
|
|
62
62
|
"data-test-subj": PropTypes.string
|
|
63
|
-
};
|
|
63
|
+
};
|
|
64
|
+
export var EuiHorizontalRule = withEuiSystem(_EuiHorizontalRule);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var _excluded = ["children", "color", "className", "href", "external", "target", "rel", "type", "onClick", "disabled"];
|
|
1
|
+
var _excluded = ["children", "color", "className", "href", "external", "target", "rel", "type", "onClick", "disabled", "euiTheme"];
|
|
2
2
|
|
|
3
3
|
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
4
4
|
|
|
@@ -22,7 +22,8 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
|
|
|
22
22
|
import React, { forwardRef } from 'react';
|
|
23
23
|
import PropTypes from "prop-types";
|
|
24
24
|
import classNames from 'classnames';
|
|
25
|
-
import { getSecureRelForTarget
|
|
25
|
+
import { getSecureRelForTarget } from '../../services';
|
|
26
|
+
import { withEuiSystem } from '../provider/system';
|
|
26
27
|
import { euiLinkStyles } from './link.styles';
|
|
27
28
|
import { EuiIcon } from '../icon';
|
|
28
29
|
import { EuiI18n, useEuiI18n } from '../i18n';
|
|
@@ -30,7 +31,7 @@ import { EuiScreenReaderOnly } from '../accessibility';
|
|
|
30
31
|
import { validateHref } from '../../services/security/href_validator';
|
|
31
32
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
32
33
|
export var COLORS = ['primary', 'subdued', 'success', 'accent', 'danger', 'warning', 'text', 'ghost'];
|
|
33
|
-
var
|
|
34
|
+
export var _EuiLink = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
34
35
|
var children = _ref.children,
|
|
35
36
|
_ref$color = _ref.color,
|
|
36
37
|
color = _ref$color === void 0 ? 'primary' : _ref$color,
|
|
@@ -43,9 +44,9 @@ var EuiLink = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
43
44
|
type = _ref$type === void 0 ? 'button' : _ref$type,
|
|
44
45
|
onClick = _ref.onClick,
|
|
45
46
|
_disabled = _ref.disabled,
|
|
47
|
+
euiTheme = _ref.euiTheme,
|
|
46
48
|
rest = _objectWithoutProperties(_ref, _excluded);
|
|
47
49
|
|
|
48
|
-
var euiTheme = useEuiTheme();
|
|
49
50
|
var styles = euiLinkStyles(euiTheme);
|
|
50
51
|
var cssStyles = [styles.euiLink];
|
|
51
52
|
var cssScreenReaderTextStyles = [styles.euiLink__screenReaderText];
|
|
@@ -101,7 +102,7 @@ var EuiLink = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
101
102
|
ref: ref
|
|
102
103
|
}, anchorProps), children, showExternalLinkIcon && externalLinkIcon, target === '_blank' && newTargetScreenreaderText);
|
|
103
104
|
});
|
|
104
|
-
|
|
105
|
+
_EuiLink.propTypes = {
|
|
105
106
|
className: PropTypes.string,
|
|
106
107
|
"aria-label": PropTypes.string,
|
|
107
108
|
"data-test-subj": PropTypes.string,
|
|
@@ -123,5 +124,5 @@ EuiLink.propTypes = {
|
|
|
123
124
|
*/
|
|
124
125
|
external: PropTypes.bool
|
|
125
126
|
};
|
|
126
|
-
|
|
127
|
-
export
|
|
127
|
+
_EuiLink.displayName = 'EuiLink';
|
|
128
|
+
export var EuiLink = withEuiSystem(_EuiLink);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var _excluded = ["size", "mono", "className", "aria-label"];
|
|
1
|
+
var _excluded = ["size", "mono", "className", "aria-label", "euiTheme"];
|
|
2
2
|
|
|
3
3
|
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
4
4
|
|
|
@@ -16,22 +16,22 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
|
|
|
16
16
|
import React from 'react';
|
|
17
17
|
import PropTypes from "prop-types";
|
|
18
18
|
import classNames from 'classnames';
|
|
19
|
-
import {
|
|
19
|
+
import { withEuiSystem } from '../provider/system';
|
|
20
20
|
import { euiLoadingChartStyles, euiLoadingChartBarStyles, _barIndex } from './loading_chart.styles';
|
|
21
21
|
import { useEuiI18n } from '../i18n';
|
|
22
22
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
23
23
|
export var SIZES = ['m', 'l', 'xl'];
|
|
24
|
-
export var
|
|
24
|
+
export var _EuiLoadingChart = function _EuiLoadingChart(_ref) {
|
|
25
25
|
var _ref$size = _ref.size,
|
|
26
26
|
size = _ref$size === void 0 ? 'm' : _ref$size,
|
|
27
27
|
_ref$mono = _ref.mono,
|
|
28
28
|
mono = _ref$mono === void 0 ? false : _ref$mono,
|
|
29
29
|
className = _ref.className,
|
|
30
30
|
ariaLabel = _ref['aria-label'],
|
|
31
|
+
euiTheme = _ref.euiTheme,
|
|
31
32
|
rest = _objectWithoutProperties(_ref, _excluded);
|
|
32
33
|
|
|
33
34
|
var defaultAriaLabel = useEuiI18n('euiLoadingChart.ariaLabel', 'Loading');
|
|
34
|
-
var euiTheme = useEuiTheme();
|
|
35
35
|
var styles = euiLoadingChartStyles(euiTheme);
|
|
36
36
|
var barStyles = euiLoadingChartBarStyles(euiTheme);
|
|
37
37
|
var classes = classNames('euiLoadingChart', {
|
|
@@ -59,10 +59,11 @@ export var EuiLoadingChart = function EuiLoadingChart(_ref) {
|
|
|
59
59
|
"aria-label": ariaLabel || defaultAriaLabel
|
|
60
60
|
}, rest), bars);
|
|
61
61
|
};
|
|
62
|
-
|
|
62
|
+
_EuiLoadingChart.propTypes = {
|
|
63
63
|
className: PropTypes.string,
|
|
64
64
|
"aria-label": PropTypes.string,
|
|
65
65
|
"data-test-subj": PropTypes.string,
|
|
66
66
|
size: PropTypes.any,
|
|
67
67
|
mono: PropTypes.bool
|
|
68
|
-
};
|
|
68
|
+
};
|
|
69
|
+
export var EuiLoadingChart = withEuiSystem(_EuiLoadingChart);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var _excluded = ["lines", "className", "aria-label"];
|
|
1
|
+
var _excluded = ["lines", "className", "aria-label", "euiTheme"];
|
|
2
2
|
|
|
3
3
|
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
4
4
|
|
|
@@ -16,18 +16,18 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
|
|
|
16
16
|
import React from 'react';
|
|
17
17
|
import PropTypes from "prop-types";
|
|
18
18
|
import classNames from 'classnames';
|
|
19
|
-
import {
|
|
19
|
+
import { withEuiSystem } from '../provider/system';
|
|
20
20
|
import { useLoadingAriaLabel } from './_loading_strings';
|
|
21
21
|
import { euiLoadingContentStyles } from './loading_content.styles';
|
|
22
22
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
23
|
-
export var
|
|
23
|
+
export var _EuiLoadingContent = function _EuiLoadingContent(_ref) {
|
|
24
24
|
var _ref$lines = _ref.lines,
|
|
25
25
|
lines = _ref$lines === void 0 ? 3 : _ref$lines,
|
|
26
26
|
className = _ref.className,
|
|
27
27
|
ariaLabel = _ref['aria-label'],
|
|
28
|
+
euiTheme = _ref.euiTheme,
|
|
28
29
|
rest = _objectWithoutProperties(_ref, _excluded);
|
|
29
30
|
|
|
30
|
-
var euiTheme = useEuiTheme();
|
|
31
31
|
var styles = euiLoadingContentStyles(euiTheme);
|
|
32
32
|
var lineCssStyles = [styles.euiLoadingContent__singleLine];
|
|
33
33
|
var defaultLabel = useLoadingAriaLabel();
|
|
@@ -47,9 +47,10 @@ export var EuiLoadingContent = function EuiLoadingContent(_ref) {
|
|
|
47
47
|
"aria-label": ariaLabel || defaultLabel
|
|
48
48
|
}, rest), lineElements);
|
|
49
49
|
};
|
|
50
|
-
|
|
50
|
+
_EuiLoadingContent.propTypes = {
|
|
51
51
|
className: PropTypes.string,
|
|
52
52
|
"aria-label": PropTypes.string,
|
|
53
53
|
"data-test-subj": PropTypes.string,
|
|
54
54
|
lines: PropTypes.oneOf([1, 2, 3, 4, 5, 6, 7, 8, 9, 10])
|
|
55
|
-
};
|
|
55
|
+
};
|
|
56
|
+
export var EuiLoadingContent = withEuiSystem(_EuiLoadingContent);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var _excluded = ["size", "logo", "aria-label", "className"];
|
|
1
|
+
var _excluded = ["size", "logo", "aria-label", "className", "euiTheme"];
|
|
2
2
|
|
|
3
3
|
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
4
4
|
|
|
@@ -17,21 +17,21 @@ import React from 'react';
|
|
|
17
17
|
import PropTypes from "prop-types";
|
|
18
18
|
import classNames from 'classnames';
|
|
19
19
|
import { EuiIcon } from '../icon';
|
|
20
|
-
import {
|
|
20
|
+
import { withEuiSystem } from '../provider/system';
|
|
21
21
|
import { useLoadingAriaLabel } from './_loading_strings';
|
|
22
22
|
import { euiLoadingLogoStyles, euiLoadingLogoIconStyles } from './loading_logo.styles';
|
|
23
23
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
24
24
|
export var SIZES = ['m', 'l', 'xl'];
|
|
25
|
-
export var
|
|
25
|
+
export var _EuiLoadingLogo = function _EuiLoadingLogo(_ref) {
|
|
26
26
|
var _ref$size = _ref.size,
|
|
27
27
|
size = _ref$size === void 0 ? 'm' : _ref$size,
|
|
28
28
|
_ref$logo = _ref.logo,
|
|
29
29
|
logo = _ref$logo === void 0 ? 'logoKibana' : _ref$logo,
|
|
30
30
|
ariaLabel = _ref['aria-label'],
|
|
31
31
|
className = _ref.className,
|
|
32
|
+
euiTheme = _ref.euiTheme,
|
|
32
33
|
rest = _objectWithoutProperties(_ref, _excluded);
|
|
33
34
|
|
|
34
|
-
var euiTheme = useEuiTheme();
|
|
35
35
|
var defaultLabel = useLoadingAriaLabel();
|
|
36
36
|
var styles = euiLoadingLogoStyles(euiTheme);
|
|
37
37
|
var cssStyles = [styles.euiLoadingLogo, styles[size]];
|
|
@@ -50,7 +50,7 @@ export var EuiLoadingLogo = function EuiLoadingLogo(_ref) {
|
|
|
50
50
|
size: size
|
|
51
51
|
})));
|
|
52
52
|
};
|
|
53
|
-
|
|
53
|
+
_EuiLoadingLogo.propTypes = {
|
|
54
54
|
className: PropTypes.string,
|
|
55
55
|
"aria-label": PropTypes.string,
|
|
56
56
|
"data-test-subj": PropTypes.string,
|
|
@@ -60,4 +60,5 @@ EuiLoadingLogo.propTypes = {
|
|
|
60
60
|
* While this component should be restricted to using logo icons, it works with any IconType
|
|
61
61
|
*/
|
|
62
62
|
logo: PropTypes.oneOfType([PropTypes.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.string.isRequired, PropTypes.elementType.isRequired])
|
|
63
|
-
};
|
|
63
|
+
};
|
|
64
|
+
export var EuiLoadingLogo = withEuiSystem(_EuiLoadingLogo);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var _excluded = ["size", "className", "aria-label"];
|
|
1
|
+
var _excluded = ["size", "className", "aria-label", "color", "euiTheme"];
|
|
2
2
|
|
|
3
3
|
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
4
4
|
|
|
@@ -16,20 +16,21 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
|
|
|
16
16
|
import React from 'react';
|
|
17
17
|
import PropTypes from "prop-types";
|
|
18
18
|
import classNames from 'classnames';
|
|
19
|
-
import {
|
|
19
|
+
import { withEuiSystem } from '../provider/system';
|
|
20
20
|
import { useLoadingAriaLabel } from './_loading_strings';
|
|
21
21
|
import { euiLoadingSpinnerStyles } from './loading_spinner.styles';
|
|
22
22
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
23
23
|
export var SIZES = ['s', 'm', 'l', 'xl', 'xxl'];
|
|
24
|
-
export var
|
|
24
|
+
export var _EuiLoadingSpinner = function _EuiLoadingSpinner(_ref) {
|
|
25
25
|
var _ref$size = _ref.size,
|
|
26
26
|
size = _ref$size === void 0 ? 'm' : _ref$size,
|
|
27
27
|
className = _ref.className,
|
|
28
28
|
ariaLabel = _ref['aria-label'],
|
|
29
|
+
color = _ref.color,
|
|
30
|
+
euiTheme = _ref.euiTheme,
|
|
29
31
|
rest = _objectWithoutProperties(_ref, _excluded);
|
|
30
32
|
|
|
31
|
-
var
|
|
32
|
-
var styles = euiLoadingSpinnerStyles(euiTheme);
|
|
33
|
+
var styles = euiLoadingSpinnerStyles(euiTheme, color);
|
|
33
34
|
var cssStyles = [styles.euiLoadingSpinner, styles[size]];
|
|
34
35
|
var classes = classNames('euiLoadingSpinner', className);
|
|
35
36
|
var defaultLabel = useLoadingAriaLabel();
|
|
@@ -40,9 +41,20 @@ export var EuiLoadingSpinner = function EuiLoadingSpinner(_ref) {
|
|
|
40
41
|
"aria-label": ariaLabel || defaultLabel
|
|
41
42
|
}, rest));
|
|
42
43
|
};
|
|
43
|
-
|
|
44
|
+
_EuiLoadingSpinner.propTypes = {
|
|
44
45
|
className: PropTypes.string,
|
|
45
46
|
"aria-label": PropTypes.string,
|
|
46
47
|
"data-test-subj": PropTypes.string,
|
|
47
|
-
size: PropTypes.any
|
|
48
|
-
|
|
48
|
+
size: PropTypes.any,
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* Sets the color of the border and highlight.
|
|
52
|
+
* Each key accepts any valid CSS color value as a `string`
|
|
53
|
+
* See #EuiLoadingSpinnerColor
|
|
54
|
+
*/
|
|
55
|
+
color: PropTypes.shape({
|
|
56
|
+
border: PropTypes.any,
|
|
57
|
+
highlight: PropTypes.any
|
|
58
|
+
})
|
|
59
|
+
};
|
|
60
|
+
export var EuiLoadingSpinner = withEuiSystem(_EuiLoadingSpinner);
|
|
@@ -22,14 +22,14 @@ var spinnerSizes = {
|
|
|
22
22
|
xxl: 'xxl'
|
|
23
23
|
};
|
|
24
24
|
|
|
25
|
-
var
|
|
26
|
-
return "".concat(highlight, " ").concat(
|
|
25
|
+
var spinnerColorsCSS = function spinnerColorsCSS(border, highlight) {
|
|
26
|
+
return "\n border-color: ".concat(highlight, " ").concat(border, " ").concat(border, " ").concat(border, ";\n ");
|
|
27
27
|
};
|
|
28
28
|
|
|
29
|
-
export var euiLoadingSpinnerStyles = function euiLoadingSpinnerStyles(_ref) {
|
|
29
|
+
export var euiLoadingSpinnerStyles = function euiLoadingSpinnerStyles(_ref, color) {
|
|
30
30
|
var euiTheme = _ref.euiTheme;
|
|
31
31
|
return {
|
|
32
|
-
euiLoadingSpinner: /*#__PURE__*/css("flex-shrink:0;display:inline-block;border-radius:50%;border:", euiTheme.border.thick, ";
|
|
32
|
+
euiLoadingSpinner: /*#__PURE__*/css("flex-shrink:0;display:inline-block;border-radius:50%;border:", euiTheme.border.thick, ";", spinnerColorsCSS((color === null || color === void 0 ? void 0 : color.border) || euiTheme.colors.lightShade, (color === null || color === void 0 ? void 0 : color.highlight) || euiTheme.colors.primary), ";", euiCanAnimate, "{animation:", _loadingSpinner, " 0.6s infinite linear;};label:euiLoadingSpinner;"),
|
|
33
33
|
// Sizes
|
|
34
34
|
s: /*#__PURE__*/css("width:", euiTheme.size[spinnerSizes.s], ";height:", euiTheme.size[spinnerSizes.s], ";border-width:calc(", euiTheme.border.width.thin, " * 1.5);;label:s;"),
|
|
35
35
|
m: /*#__PURE__*/css("width:", euiTheme.size[spinnerSizes.m], ";height:", euiTheme.size[spinnerSizes.m], ";border-width:calc(", euiTheme.border.width.thin, " * 1.5);;label:m;"),
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var _excluded = ["children", "className", "hasScreenReaderHelpText"];
|
|
1
|
+
var _excluded = ["children", "className", "euiTheme", "hasScreenReaderHelpText"];
|
|
2
2
|
|
|
3
3
|
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
4
4
|
|
|
@@ -17,31 +17,31 @@ import React from 'react';
|
|
|
17
17
|
import PropTypes from "prop-types";
|
|
18
18
|
import classNames from 'classnames';
|
|
19
19
|
import { useEuiI18n } from '../i18n';
|
|
20
|
-
import {
|
|
20
|
+
import { withEuiSystem } from '../provider/system';
|
|
21
21
|
import { euiMarkStyles } from './mark.styles';
|
|
22
22
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
23
|
-
export var
|
|
23
|
+
export var _EuiMark = function _EuiMark(_ref) {
|
|
24
24
|
var children = _ref.children,
|
|
25
25
|
className = _ref.className,
|
|
26
|
+
euiTheme = _ref.euiTheme,
|
|
26
27
|
_ref$hasScreenReaderH = _ref.hasScreenReaderHelpText,
|
|
27
28
|
hasScreenReaderHelpText = _ref$hasScreenReaderH === void 0 ? true : _ref$hasScreenReaderH,
|
|
28
29
|
rest = _objectWithoutProperties(_ref, _excluded);
|
|
29
30
|
|
|
30
|
-
var useTheme = useEuiTheme();
|
|
31
31
|
var highlightStart = useEuiI18n('euiMark.highlightStart', 'highlight start');
|
|
32
32
|
var highlightEnd = useEuiI18n('euiMark.highlightEnd', 'highlight end');
|
|
33
|
-
var styles = euiMarkStyles(
|
|
33
|
+
var styles = euiMarkStyles(euiTheme, {
|
|
34
34
|
hasScreenReaderHelpText: hasScreenReaderHelpText,
|
|
35
35
|
highlightStart: highlightStart,
|
|
36
36
|
highlightEnd: highlightEnd
|
|
37
37
|
});
|
|
38
38
|
var classes = classNames('euiMark', className);
|
|
39
39
|
return ___EmotionJSX("mark", _extends({
|
|
40
|
-
css: [styles
|
|
40
|
+
css: [styles],
|
|
41
41
|
className: classes
|
|
42
42
|
}, rest), children);
|
|
43
43
|
};
|
|
44
|
-
|
|
44
|
+
_EuiMark.propTypes = {
|
|
45
45
|
className: PropTypes.string,
|
|
46
46
|
"aria-label": PropTypes.string,
|
|
47
47
|
"data-test-subj": PropTypes.string,
|
|
@@ -56,4 +56,5 @@ EuiMark.propTypes = {
|
|
|
56
56
|
* ReactNode to render as this component's content
|
|
57
57
|
*/
|
|
58
58
|
children: PropTypes.node.isRequired
|
|
59
|
-
};
|
|
59
|
+
};
|
|
60
|
+
export var EuiMark = withEuiSystem(_EuiMark);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var _excluded = ["children", "className", "parsingPluginList", "processingPluginList", "textSize"];
|
|
1
|
+
var _excluded = ["children", "className", "parsingPluginList", "processingPluginList", "textSize", "euiTheme"];
|
|
2
2
|
|
|
3
3
|
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
4
4
|
|
|
@@ -18,11 +18,11 @@ import PropTypes from "prop-types";
|
|
|
18
18
|
import unified from 'unified';
|
|
19
19
|
import classNames from 'classnames';
|
|
20
20
|
import { EuiText } from '../text/text';
|
|
21
|
-
import {
|
|
21
|
+
import { withEuiSystem } from '../provider/system';
|
|
22
22
|
import { euiMarkdownFormatStyles } from './markdown_format.styles';
|
|
23
23
|
import { defaultProcessingPlugins, defaultParsingPlugins } from './plugins/markdown_default_plugins';
|
|
24
24
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
25
|
-
export var
|
|
25
|
+
export var _EuiMarkdownFormat = function _EuiMarkdownFormat(_ref) {
|
|
26
26
|
var children = _ref.children,
|
|
27
27
|
className = _ref.className,
|
|
28
28
|
_ref$parsingPluginLis = _ref.parsingPluginList,
|
|
@@ -31,6 +31,7 @@ export var EuiMarkdownFormat = function EuiMarkdownFormat(_ref) {
|
|
|
31
31
|
processingPluginList = _ref$processingPlugin === void 0 ? defaultProcessingPlugins : _ref$processingPlugin,
|
|
32
32
|
_ref$textSize = _ref.textSize,
|
|
33
33
|
textSize = _ref$textSize === void 0 ? 'm' : _ref$textSize,
|
|
34
|
+
euiTheme = _ref.euiTheme,
|
|
34
35
|
rest = _objectWithoutProperties(_ref, _excluded);
|
|
35
36
|
|
|
36
37
|
var processor = useMemo(function () {
|
|
@@ -48,7 +49,6 @@ export var EuiMarkdownFormat = function EuiMarkdownFormat(_ref) {
|
|
|
48
49
|
return children;
|
|
49
50
|
}
|
|
50
51
|
}, [children, processor]);
|
|
51
|
-
var euiTheme = useEuiTheme();
|
|
52
52
|
var styles = euiMarkdownFormatStyles(euiTheme);
|
|
53
53
|
var cssStyles = [styles.euiMarkdownFormat, styles[textSize]];
|
|
54
54
|
var classes = classNames('euiMarkdownFormat', className);
|
|
@@ -58,7 +58,7 @@ export var EuiMarkdownFormat = function EuiMarkdownFormat(_ref) {
|
|
|
58
58
|
className: classes
|
|
59
59
|
}, rest), result);
|
|
60
60
|
};
|
|
61
|
-
|
|
61
|
+
_EuiMarkdownFormat.propTypes = {
|
|
62
62
|
className: PropTypes.string,
|
|
63
63
|
"aria-label": PropTypes.string,
|
|
64
64
|
"data-test-subj": PropTypes.string,
|
|
@@ -74,4 +74,5 @@ EuiMarkdownFormat.propTypes = {
|
|
|
74
74
|
* Determines the text size. Choose `relative` to control the `font-size` based on the value of a parent container.
|
|
75
75
|
*/
|
|
76
76
|
textSize: PropTypes.any
|
|
77
|
-
};
|
|
77
|
+
};
|
|
78
|
+
export var EuiMarkdownFormat = withEuiSystem(_EuiMarkdownFormat);
|
|
@@ -254,7 +254,8 @@ EuiNotificationEvent.propTypes = {
|
|
|
254
254
|
iconSide: PropTypes.oneOf(["left", "right"]),
|
|
255
255
|
|
|
256
256
|
/**
|
|
257
|
-
* Object of props passed to the <span/> wrapping the content's text
|
|
257
|
+
* Object of props passed to the <span/> wrapping the content's text (only if the children is a `string`)
|
|
258
|
+
* It doesn't apply to the icon.
|
|
258
259
|
*/
|
|
259
260
|
textProps: PropTypes.shape({
|
|
260
261
|
className: PropTypes.string,
|
|
@@ -144,7 +144,8 @@ EuiPaginationButton.propTypes = {
|
|
|
144
144
|
iconSide: PropTypes.oneOf(["left", "right"]),
|
|
145
145
|
|
|
146
146
|
/**
|
|
147
|
-
* Object of props passed to the <span/> wrapping the content's text
|
|
147
|
+
* Object of props passed to the <span/> wrapping the content's text (only if the children is a `string`)
|
|
148
|
+
* It doesn't apply to the icon.
|
|
148
149
|
*/
|
|
149
150
|
textProps: PropTypes.shape({
|
|
150
151
|
className: PropTypes.string,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var _excluded = ["children", "className", "paddingSize", "borderRadius", "color", "hasShadow", "hasBorder", "grow", "panelRef", "element"];
|
|
1
|
+
var _excluded = ["children", "className", "paddingSize", "borderRadius", "color", "hasShadow", "hasBorder", "grow", "panelRef", "element", "euiTheme"];
|
|
2
2
|
|
|
3
3
|
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
4
4
|
|
|
@@ -18,7 +18,7 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
|
|
|
18
18
|
import React from 'react';
|
|
19
19
|
import PropTypes from "prop-types";
|
|
20
20
|
import classNames from 'classnames';
|
|
21
|
-
import {
|
|
21
|
+
import { withEuiSystem } from '../provider/system';
|
|
22
22
|
import { useEuiBackgroundColorCSS, useEuiPaddingCSS, BACKGROUND_COLORS, PADDING_SIZES } from '../../global_styling';
|
|
23
23
|
import { keysOf } from '../common';
|
|
24
24
|
import { euiPanelStyles } from './panel.style';
|
|
@@ -37,7 +37,7 @@ var _SIZES = keysOf(paddingSizeToClassNameMap);
|
|
|
37
37
|
|
|
38
38
|
export var BORDER_RADII = ['none', 'm'];
|
|
39
39
|
export var COLORS = BACKGROUND_COLORS;
|
|
40
|
-
export var
|
|
40
|
+
export var _EuiPanel = function _EuiPanel(_ref) {
|
|
41
41
|
var children = _ref.children,
|
|
42
42
|
className = _ref.className,
|
|
43
43
|
_ref$paddingSize = _ref.paddingSize,
|
|
@@ -54,10 +54,10 @@ export var EuiPanel = function EuiPanel(_ref) {
|
|
|
54
54
|
grow = _ref$grow === void 0 ? true : _ref$grow,
|
|
55
55
|
panelRef = _ref.panelRef,
|
|
56
56
|
element = _ref.element,
|
|
57
|
+
euiTheme = _ref.euiTheme,
|
|
57
58
|
rest = _objectWithoutProperties(_ref, _excluded);
|
|
58
59
|
|
|
59
|
-
|
|
60
|
-
|
|
60
|
+
// Shadows are only allowed when there's a white background (plain)
|
|
61
61
|
var canHaveShadow = !hasBorder && color === 'plain';
|
|
62
62
|
var canHaveBorder = color === 'plain' || color === 'transparent';
|
|
63
63
|
var styles = euiPanelStyles(euiTheme);
|
|
@@ -77,7 +77,7 @@ export var EuiPanel = function EuiPanel(_ref) {
|
|
|
77
77
|
css: cssStyles
|
|
78
78
|
}, rest), children);
|
|
79
79
|
};
|
|
80
|
-
|
|
80
|
+
_EuiPanel.propTypes = {
|
|
81
81
|
element: PropTypes.oneOfType([PropTypes.oneOf(["button"]), PropTypes.oneOf(["div"])]),
|
|
82
82
|
|
|
83
83
|
/**
|
|
@@ -143,4 +143,5 @@ EuiPanel.propTypes = {
|
|
|
143
143
|
className: PropTypes.string,
|
|
144
144
|
"aria-label": PropTypes.string,
|
|
145
145
|
"data-test-subj": PropTypes.string
|
|
146
|
-
};
|
|
146
|
+
};
|
|
147
|
+
export var EuiPanel = withEuiSystem(_EuiPanel);
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
3
|
+
* or more contributor license agreements. Licensed under the Elastic License
|
|
4
|
+
* 2.0 and the Server Side Public License, v 1; you may not use this file except
|
|
5
|
+
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
|
6
|
+
* Side Public License, v 1.
|
|
7
|
+
*/
|
|
8
|
+
import { createContext, useContext } from 'react';
|
|
9
|
+
export var EuiCacheContext = /*#__PURE__*/createContext(undefined);
|
|
10
|
+
export var useEuiCacheContext = function useEuiCacheContext() {
|
|
11
|
+
return useContext(EuiCacheContext);
|
|
12
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
3
|
+
* or more contributor license agreements. Licensed under the Elastic License
|
|
4
|
+
* 2.0 and the Server Side Public License, v 1; you may not use this file except
|
|
5
|
+
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
|
6
|
+
* Side Public License, v 1.
|
|
7
|
+
*/
|
|
8
|
+
import React from 'react';
|
|
9
|
+
import { CacheProvider } from '@emotion/react';
|
|
10
|
+
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
11
|
+
export var EuiCacheProvider = function EuiCacheProvider(_ref) {
|
|
12
|
+
var cache = _ref.cache,
|
|
13
|
+
children = _ref.children;
|
|
14
|
+
return children && cache ? ___EmotionJSX(CacheProvider, {
|
|
15
|
+
value: cache
|
|
16
|
+
}, children) : ___EmotionJSX(React.Fragment, null, children);
|
|
17
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
3
|
+
* or more contributor license agreements. Licensed under the Elastic License
|
|
4
|
+
* 2.0 and the Server Side Public License, v 1; you may not use this file except
|
|
5
|
+
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
|
6
|
+
* Side Public License, v 1.
|
|
7
|
+
*/
|
|
8
|
+
export * from './cache_context';
|
|
9
|
+
export * from './cache_provider';
|
|
@@ -7,22 +7,56 @@
|
|
|
7
7
|
*/
|
|
8
8
|
import React from 'react';
|
|
9
9
|
import { EuiGlobalStyles } from '../../global_styling/reset/global_styles';
|
|
10
|
+
import { EuiUtilityClasses } from '../../global_styling/utility/utility';
|
|
10
11
|
import { EuiThemeProvider } from '../../services';
|
|
11
12
|
import { EuiThemeAmsterdam } from '../../themes';
|
|
13
|
+
import { EuiCacheContext, EuiCacheProvider } from './cache';
|
|
12
14
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
15
|
+
|
|
16
|
+
var isEmotionCacheObject = function isEmotionCacheObject(obj) {
|
|
17
|
+
return obj.hasOwnProperty('key');
|
|
18
|
+
};
|
|
19
|
+
|
|
13
20
|
export var EuiProvider = function EuiProvider(_ref) {
|
|
14
21
|
var cache = _ref.cache,
|
|
15
22
|
_ref$theme = _ref.theme,
|
|
16
23
|
theme = _ref$theme === void 0 ? EuiThemeAmsterdam : _ref$theme,
|
|
17
24
|
_ref$globalStyles = _ref.globalStyles,
|
|
18
|
-
|
|
25
|
+
Globals = _ref$globalStyles === void 0 ? EuiGlobalStyles : _ref$globalStyles,
|
|
26
|
+
_ref$utilityClasses = _ref.utilityClasses,
|
|
27
|
+
Utilities = _ref$utilityClasses === void 0 ? EuiUtilityClasses : _ref$utilityClasses,
|
|
19
28
|
colorMode = _ref.colorMode,
|
|
20
29
|
modify = _ref.modify,
|
|
21
30
|
children = _ref.children;
|
|
22
|
-
|
|
31
|
+
var defaultCache;
|
|
32
|
+
var euiCache;
|
|
33
|
+
var globalCache;
|
|
34
|
+
var utilityCache;
|
|
35
|
+
|
|
36
|
+
if (cache) {
|
|
37
|
+
if (isEmotionCacheObject(cache)) {
|
|
38
|
+
defaultCache = cache;
|
|
39
|
+
} else {
|
|
40
|
+
defaultCache = cache.default;
|
|
41
|
+
euiCache = cache.eui;
|
|
42
|
+
globalCache = cache.global;
|
|
43
|
+
utilityCache = cache.utility;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
return ___EmotionJSX(EuiCacheProvider, {
|
|
48
|
+
cache: defaultCache
|
|
49
|
+
}, ___EmotionJSX(EuiCacheContext.Provider, {
|
|
50
|
+
value: euiCache
|
|
51
|
+
}, ___EmotionJSX(EuiThemeProvider, {
|
|
23
52
|
theme: theme !== null && theme !== void 0 ? theme : undefined,
|
|
24
53
|
colorMode: colorMode,
|
|
25
|
-
modify: modify
|
|
26
|
-
|
|
27
|
-
|
|
54
|
+
modify: modify
|
|
55
|
+
}, theme && ___EmotionJSX(React.Fragment, null, ___EmotionJSX(EuiCacheProvider, {
|
|
56
|
+
cache: globalCache || euiCache,
|
|
57
|
+
children: Globals && ___EmotionJSX(Globals, null)
|
|
58
|
+
}), ___EmotionJSX(EuiCacheProvider, {
|
|
59
|
+
cache: utilityCache,
|
|
60
|
+
children: Utilities && ___EmotionJSX(Utilities, null)
|
|
61
|
+
})), children)));
|
|
28
62
|
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
3
|
+
* or more contributor license agreements. Licensed under the Elastic License
|
|
4
|
+
* 2.0 and the Server Side Public License, v 1; you may not use this file except
|
|
5
|
+
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
|
6
|
+
* Side Public License, v 1.
|
|
7
|
+
*/
|
|
8
|
+
export * from './system';
|