@elastic/eui 91.3.1 → 92.0.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.map +1 -1
- package/dist/eui_theme_dark.css +0 -513
- package/dist/eui_theme_dark.min.css +1 -1
- package/dist/eui_theme_light.css +0 -513
- package/dist/eui_theme_light.min.css +1 -1
- package/es/components/basic_table/basic_table.js +5 -5
- package/es/components/drag_and_drop/drag_and_drop.a11y.js +1 -1
- package/es/components/filter_group/filter_button.js +20 -13
- package/es/components/filter_group/filter_button.styles.js +11 -20
- package/es/components/flyout/flyout.js +4 -4
- package/es/components/flyout/flyout_resizable.js +127 -0
- package/es/components/flyout/flyout_resizable.styles.js +27 -0
- package/es/components/flyout/index.js +2 -1
- package/es/components/form/range/dual_range.js +15 -66
- package/es/components/form/range/range.js +6 -5
- package/es/components/form/range/range_slider.js +28 -22
- package/es/components/form/text_area/text_area.js +39 -3
- package/es/components/index.js +0 -2
- package/es/components/markdown_editor/markdown_editor.js +12 -13
- package/es/components/page_template/bottom_bar/page_bottom_bar.js +1 -1
- package/es/components/selectable/selectable_list/selectable_list_item.js +1 -1
- package/es/components/selectable/selectable_templates/selectable_template_sitewide.js +5 -0
- package/es/components/tree_view/tree_view.js +23 -25
- package/es/utils/prop_types/is.js +2 -2
- package/eui.d.ts +825 -1141
- package/i18ntokens.json +68 -338
- package/lib/components/basic_table/basic_table.js +5 -5
- package/lib/components/drag_and_drop/drag_and_drop.a11y.js +1 -1
- package/lib/components/filter_group/filter_button.js +20 -13
- package/lib/components/filter_group/filter_button.styles.js +11 -20
- package/lib/components/flyout/flyout.js +4 -4
- package/lib/components/flyout/flyout_resizable.js +136 -0
- package/lib/components/flyout/flyout_resizable.styles.js +32 -0
- package/lib/components/flyout/index.js +8 -1
- package/lib/components/form/range/dual_range.js +15 -66
- package/lib/components/form/range/range.js +6 -5
- package/lib/components/form/range/range_slider.js +27 -21
- package/lib/components/form/text_area/text_area.js +42 -3
- package/lib/components/index.js +0 -22
- package/lib/components/markdown_editor/markdown_editor.js +12 -13
- package/lib/components/page_template/bottom_bar/page_bottom_bar.js +1 -1
- package/lib/components/pagination/pagination_button.js +79 -2
- package/lib/components/selectable/selectable_list/selectable_list_item.js +1 -1
- package/lib/components/tree_view/tree_view.js +23 -25
- package/lib/utils/prop_types/is.js +2 -2
- package/optimize/es/components/basic_table/basic_table.js +5 -5
- package/optimize/es/components/drag_and_drop/drag_and_drop.a11y.js +1 -1
- package/optimize/es/components/filter_group/filter_button.js +20 -13
- package/optimize/es/components/filter_group/filter_button.styles.js +11 -20
- package/optimize/es/components/flyout/flyout.js +4 -4
- package/optimize/es/components/flyout/flyout_resizable.js +121 -0
- package/optimize/es/components/flyout/flyout_resizable.styles.js +27 -0
- package/optimize/es/components/flyout/index.js +2 -1
- package/optimize/es/components/form/range/dual_range.js +15 -66
- package/optimize/es/components/form/range/range.js +6 -5
- package/optimize/es/components/form/range/range_slider.js +26 -21
- package/optimize/es/components/form/text_area/text_area.js +29 -3
- package/optimize/es/components/index.js +0 -2
- package/optimize/es/components/markdown_editor/markdown_editor.js +12 -13
- package/optimize/es/components/page_template/bottom_bar/page_bottom_bar.js +1 -1
- package/optimize/es/components/selectable/selectable_list/selectable_list_item.js +1 -1
- package/optimize/es/components/tree_view/tree_view.js +23 -25
- package/optimize/es/utils/prop_types/is.js +2 -2
- package/optimize/lib/components/basic_table/basic_table.js +5 -5
- package/optimize/lib/components/drag_and_drop/drag_and_drop.a11y.js +1 -1
- package/optimize/lib/components/filter_group/filter_button.js +20 -13
- package/optimize/lib/components/filter_group/filter_button.styles.js +11 -20
- package/optimize/lib/components/flyout/flyout.js +4 -4
- package/optimize/lib/components/flyout/flyout_resizable.js +131 -0
- package/optimize/lib/components/flyout/flyout_resizable.styles.js +32 -0
- package/optimize/lib/components/flyout/index.js +8 -1
- package/optimize/lib/components/form/range/dual_range.js +15 -66
- package/optimize/lib/components/form/range/range.js +6 -5
- package/optimize/lib/components/form/range/range_slider.js +26 -21
- package/optimize/lib/components/form/text_area/text_area.js +32 -3
- package/optimize/lib/components/index.js +0 -22
- package/optimize/lib/components/markdown_editor/markdown_editor.js +12 -13
- package/optimize/lib/components/page_template/bottom_bar/page_bottom_bar.js +1 -1
- package/optimize/lib/components/selectable/selectable_list/selectable_list_item.js +1 -1
- package/optimize/lib/components/tree_view/tree_view.js +23 -25
- package/optimize/lib/utils/prop_types/is.js +2 -2
- package/package.json +2 -2
- package/src/components/index.scss +0 -2
- package/test-env/components/basic_table/basic_table.js +5 -5
- package/test-env/components/drag_and_drop/drag_and_drop.a11y.js +1 -1
- package/test-env/components/filter_group/filter_button.js +20 -13
- package/test-env/components/filter_group/filter_button.styles.js +11 -20
- package/test-env/components/flyout/flyout_resizable.js +131 -0
- package/test-env/components/flyout/flyout_resizable.styles.js +32 -0
- package/test-env/components/flyout/index.js +8 -1
- package/test-env/components/form/range/dual_range.js +15 -66
- package/test-env/components/form/range/range.js +6 -5
- package/test-env/components/form/range/range_slider.js +27 -21
- package/test-env/components/form/text_area/text_area.js +42 -3
- package/test-env/components/index.js +0 -22
- package/test-env/components/markdown_editor/markdown_editor.js +12 -13
- package/test-env/components/page_template/bottom_bar/page_bottom_bar.js +1 -1
- package/test-env/components/pagination/pagination_button.js +79 -2
- package/test-env/components/selectable/selectable_list/selectable_list_item.js +1 -1
- package/test-env/components/tree_view/tree_view.js +23 -25
- package/test-env/utils/prop_types/is.js +2 -2
- package/es/components/control_bar/control_bar.a11y.js +0 -133
- package/es/components/control_bar/control_bar.js +0 -609
- package/es/components/control_bar/index.js +0 -9
- package/es/components/notification/index.js +0 -9
- package/es/components/notification/notification_event.a11y.js +0 -104
- package/es/components/notification/notification_event.js +0 -288
- package/es/components/notification/notification_event_messages.js +0 -79
- package/es/components/notification/notification_event_meta.js +0 -148
- package/es/components/notification/notification_event_read_button.js +0 -86
- package/es/components/notification/notification_event_read_icon.js +0 -77
- package/lib/components/control_bar/control_bar.a11y.js +0 -134
- package/lib/components/control_bar/control_bar.js +0 -441
- package/lib/components/control_bar/index.js +0 -12
- package/lib/components/notification/index.js +0 -12
- package/lib/components/notification/notification_event.a11y.js +0 -105
- package/lib/components/notification/notification_event.js +0 -297
- package/lib/components/notification/notification_event_messages.js +0 -88
- package/lib/components/notification/notification_event_meta.js +0 -157
- package/lib/components/notification/notification_event_read_button.js +0 -93
- package/lib/components/notification/notification_event_read_icon.js +0 -64
- package/optimize/es/components/control_bar/control_bar.a11y.js +0 -128
- package/optimize/es/components/control_bar/control_bar.js +0 -308
- package/optimize/es/components/control_bar/index.js +0 -9
- package/optimize/es/components/notification/index.js +0 -9
- package/optimize/es/components/notification/notification_event.a11y.js +0 -99
- package/optimize/es/components/notification/notification_event.js +0 -114
- package/optimize/es/components/notification/notification_event_messages.js +0 -63
- package/optimize/es/components/notification/notification_event_meta.js +0 -106
- package/optimize/es/components/notification/notification_event_read_button.js +0 -44
- package/optimize/es/components/notification/notification_event_read_icon.js +0 -44
- package/optimize/lib/components/control_bar/control_bar.a11y.js +0 -134
- package/optimize/lib/components/control_bar/control_bar.js +0 -301
- package/optimize/lib/components/control_bar/index.js +0 -12
- package/optimize/lib/components/notification/index.js +0 -12
- package/optimize/lib/components/notification/notification_event.a11y.js +0 -105
- package/optimize/lib/components/notification/notification_event.js +0 -123
- package/optimize/lib/components/notification/notification_event_messages.js +0 -74
- package/optimize/lib/components/notification/notification_event_meta.js +0 -117
- package/optimize/lib/components/notification/notification_event_read_button.js +0 -51
- package/optimize/lib/components/notification/notification_event_read_icon.js +0 -51
- package/src/components/control_bar/_control_bar.scss +0 -232
- package/src/components/control_bar/_index.scss +0 -2
- package/src/components/control_bar/_variables.scss +0 -12
- package/src/components/notification/_index.scss +0 -5
- package/src/components/notification/_notification_event.scss +0 -40
- package/src/components/notification/_notification_event_messages.scss +0 -17
- package/src/components/notification/_notification_event_meta.scss +0 -44
- package/src/components/notification/_notification_event_read_button.scss +0 -5
- package/src/components/notification/_notification_event_read_icon.scss +0 -12
- package/test-env/components/control_bar/control_bar.a11y.js +0 -134
- package/test-env/components/control_bar/control_bar.js +0 -436
- package/test-env/components/control_bar/index.js +0 -12
- package/test-env/components/notification/index.js +0 -12
- package/test-env/components/notification/notification_event.a11y.js +0 -105
- package/test-env/components/notification/notification_event.js +0 -296
- package/test-env/components/notification/notification_event_messages.js +0 -85
- package/test-env/components/notification/notification_event_meta.js +0 -154
- package/test-env/components/notification/notification_event_read_button.js +0 -92
- package/test-env/components/notification/notification_event_read_icon.js +0 -63
|
@@ -13,10 +13,11 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
13
13
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
14
14
|
var _services = require("../../../services");
|
|
15
15
|
var _global_styling = require("../../../global_styling");
|
|
16
|
+
var _resize_observer = require("../../observer/resize_observer");
|
|
16
17
|
var _range_levels_colors = require("./range_levels_colors");
|
|
17
18
|
var _range_slider = require("./range_slider.styles");
|
|
18
19
|
var _react2 = require("@emotion/react");
|
|
19
|
-
var _excluded = ["className", "disabled", "id", "max", "min", "name", "step", "onChange", "tabIndex", "value", "style", "showTicks", "showRange", "thumbColor"];
|
|
20
|
+
var _excluded = ["className", "disabled", "id", "max", "min", "name", "step", "onChange", "tabIndex", "value", "style", "showTicks", "showRange", "thumbColor", "onResize"];
|
|
20
21
|
/*
|
|
21
22
|
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
22
23
|
* or more contributor license agreements. Licensed under the Elastic License
|
|
@@ -28,7 +29,7 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
28
29
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
29
30
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
30
31
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
31
|
-
var EuiRangeSlider =
|
|
32
|
+
var EuiRangeSlider = function EuiRangeSlider(_ref) {
|
|
32
33
|
var className = _ref.className,
|
|
33
34
|
disabled = _ref.disabled,
|
|
34
35
|
id = _ref.id,
|
|
@@ -43,6 +44,7 @@ var EuiRangeSlider = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
|
|
43
44
|
showTicks = _ref.showTicks,
|
|
44
45
|
showRange = _ref.showRange,
|
|
45
46
|
thumbColor = _ref.thumbColor,
|
|
47
|
+
onResize = _ref.onResize,
|
|
46
48
|
rest = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
47
49
|
var classes = (0, _classnames.default)('euiRangeSlider', className);
|
|
48
50
|
var euiTheme = (0, _services.useEuiTheme)();
|
|
@@ -54,22 +56,25 @@ var EuiRangeSlider = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
|
|
54
56
|
color: thumbColor && (0, _range_levels_colors.euiRangeLevelColor)(thumbColor, euiTheme.euiTheme)
|
|
55
57
|
}, style));
|
|
56
58
|
}, [thumbColor, euiTheme, style]);
|
|
57
|
-
return (0, _react2.jsx)(
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
59
|
+
return (0, _react2.jsx)(_resize_observer.EuiResizeObserver, {
|
|
60
|
+
onResize: onResize
|
|
61
|
+
}, function (resizeRef) {
|
|
62
|
+
return (0, _react2.jsx)("input", (0, _extends2.default)({
|
|
63
|
+
ref: resizeRef,
|
|
64
|
+
type: "range",
|
|
65
|
+
id: id,
|
|
66
|
+
name: name,
|
|
67
|
+
className: classes,
|
|
68
|
+
css: cssStyles,
|
|
69
|
+
min: min,
|
|
70
|
+
max: max,
|
|
71
|
+
step: step,
|
|
72
|
+
value: value,
|
|
73
|
+
disabled: disabled,
|
|
74
|
+
onChange: onChange,
|
|
75
|
+
style: sliderStyle,
|
|
76
|
+
tabIndex: tabIndex
|
|
77
|
+
}, rest));
|
|
78
|
+
});
|
|
79
|
+
};
|
|
80
|
+
exports.EuiRangeSlider = EuiRangeSlider;
|
|
@@ -1,19 +1,21 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
4
5
|
Object.defineProperty(exports, "__esModule", {
|
|
5
6
|
value: true
|
|
6
7
|
});
|
|
7
8
|
exports.RESIZE = exports.EuiTextArea = void 0;
|
|
8
9
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
9
10
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
10
|
-
var _react =
|
|
11
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
11
12
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
13
|
+
var _services = require("../../../services");
|
|
12
14
|
var _form_control_layout = require("../form_control_layout");
|
|
13
15
|
var _validatable_control = require("../validatable_control");
|
|
14
16
|
var _eui_form_context = require("../eui_form_context");
|
|
15
17
|
var _react2 = require("@emotion/react");
|
|
16
|
-
var _excluded = ["children", "className", "compressed", "fullWidth", "id", "inputRef", "isLoading", "isInvalid", "name", "placeholder", "resize", "rows"];
|
|
18
|
+
var _excluded = ["children", "className", "compressed", "fullWidth", "id", "icon", "inputRef", "isLoading", "isInvalid", "isClearable", "name", "placeholder", "resize", "rows"];
|
|
17
19
|
/*
|
|
18
20
|
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
19
21
|
* or more contributor license agreements. Licensed under the Elastic License
|
|
@@ -21,6 +23,8 @@ var _excluded = ["children", "className", "compressed", "fullWidth", "id", "inpu
|
|
|
21
23
|
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
|
22
24
|
* Side Public License, v 1.
|
|
23
25
|
*/
|
|
26
|
+
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); }
|
|
27
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
24
28
|
var resizeToClassNameMap = {
|
|
25
29
|
vertical: 'euiTextArea--resizeVertical',
|
|
26
30
|
horizontal: 'euiTextArea--resizeHorizontal',
|
|
@@ -38,9 +42,11 @@ var EuiTextArea = function EuiTextArea(props) {
|
|
|
38
42
|
_props$fullWidth = props.fullWidth,
|
|
39
43
|
fullWidth = _props$fullWidth === void 0 ? defaultFullWidth : _props$fullWidth,
|
|
40
44
|
id = props.id,
|
|
45
|
+
icon = props.icon,
|
|
41
46
|
inputRef = props.inputRef,
|
|
42
47
|
isLoading = props.isLoading,
|
|
43
48
|
isInvalid = props.isInvalid,
|
|
49
|
+
isClearable = props.isClearable,
|
|
44
50
|
name = props.name,
|
|
45
51
|
placeholder = props.placeholder,
|
|
46
52
|
_props$resize = props.resize,
|
|
@@ -59,10 +65,33 @@ var EuiTextArea = function EuiTextArea(props) {
|
|
|
59
65
|
} else {
|
|
60
66
|
definedRows = 6;
|
|
61
67
|
}
|
|
68
|
+
var ref = (0, _react.useRef)(null);
|
|
69
|
+
var refs = (0, _services.useCombinedRefs)([ref, inputRef]);
|
|
70
|
+
var clear = (0, _react.useMemo)(function () {
|
|
71
|
+
if (isClearable) {
|
|
72
|
+
return {
|
|
73
|
+
onClick: function onClick() {
|
|
74
|
+
if (ref.current) {
|
|
75
|
+
ref.current.value = '';
|
|
76
|
+
var event = new Event('input', {
|
|
77
|
+
bubbles: true,
|
|
78
|
+
cancelable: false
|
|
79
|
+
});
|
|
80
|
+
ref.current.dispatchEvent(event);
|
|
81
|
+
ref.current.focus(); // set focus back to the textarea
|
|
82
|
+
}
|
|
83
|
+
},
|
|
84
|
+
|
|
85
|
+
'data-test-subj': 'clearTextAreaButton'
|
|
86
|
+
};
|
|
87
|
+
}
|
|
88
|
+
}, [isClearable]);
|
|
62
89
|
return (0, _react2.jsx)(_form_control_layout.EuiFormControlLayout, {
|
|
63
90
|
fullWidth: fullWidth,
|
|
64
91
|
isLoading: isLoading,
|
|
65
92
|
isInvalid: isInvalid,
|
|
93
|
+
clear: clear,
|
|
94
|
+
icon: icon,
|
|
66
95
|
className: "euiFormControlLayout--euiTextArea"
|
|
67
96
|
}, (0, _react2.jsx)(_validatable_control.EuiValidatableControl, {
|
|
68
97
|
isInvalid: isInvalid
|
|
@@ -72,7 +101,7 @@ var EuiTextArea = function EuiTextArea(props) {
|
|
|
72
101
|
rows: definedRows,
|
|
73
102
|
name: name,
|
|
74
103
|
id: id,
|
|
75
|
-
ref:
|
|
104
|
+
ref: refs,
|
|
76
105
|
placeholder: placeholder
|
|
77
106
|
}), children)));
|
|
78
107
|
};
|
|
@@ -223,17 +223,6 @@ Object.keys(_context_menu).forEach(function (key) {
|
|
|
223
223
|
}
|
|
224
224
|
});
|
|
225
225
|
});
|
|
226
|
-
var _control_bar = require("./control_bar");
|
|
227
|
-
Object.keys(_control_bar).forEach(function (key) {
|
|
228
|
-
if (key === "default" || key === "__esModule") return;
|
|
229
|
-
if (key in exports && exports[key] === _control_bar[key]) return;
|
|
230
|
-
Object.defineProperty(exports, key, {
|
|
231
|
-
enumerable: true,
|
|
232
|
-
get: function get() {
|
|
233
|
-
return _control_bar[key];
|
|
234
|
-
}
|
|
235
|
-
});
|
|
236
|
-
});
|
|
237
226
|
var _copy = require("./copy");
|
|
238
227
|
Object.keys(_copy).forEach(function (key) {
|
|
239
228
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -597,17 +586,6 @@ Object.keys(_mutation_observer).forEach(function (key) {
|
|
|
597
586
|
}
|
|
598
587
|
});
|
|
599
588
|
});
|
|
600
|
-
var _notification = require("./notification");
|
|
601
|
-
Object.keys(_notification).forEach(function (key) {
|
|
602
|
-
if (key === "default" || key === "__esModule") return;
|
|
603
|
-
if (key in exports && exports[key] === _notification[key]) return;
|
|
604
|
-
Object.defineProperty(exports, key, {
|
|
605
|
-
enumerable: true,
|
|
606
|
-
get: function get() {
|
|
607
|
-
return _notification[key];
|
|
608
|
-
}
|
|
609
|
-
});
|
|
610
|
-
});
|
|
611
589
|
var _outside_click_detector = require("./outside_click_detector");
|
|
612
590
|
Object.keys(_outside_click_detector).forEach(function (key) {
|
|
613
591
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -266,20 +266,19 @@ var EuiMarkdownEditor = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref)
|
|
|
266
266
|
setEditorToolbarHeight(editorToolbarRef.current.offsetHeight);
|
|
267
267
|
}, [setEditorToolbarHeight]);
|
|
268
268
|
(0, _react.useEffect)(function () {
|
|
269
|
-
if (
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
269
|
+
if (height === 'full' || currentHeight === 'full') return;
|
|
270
|
+
if (isPreviewing && autoExpandPreview && previewRef.current.scrollHeight > currentHeight) {
|
|
271
|
+
// scrollHeight does not include the border or margin
|
|
272
|
+
// so we ask for the computed value for those,
|
|
273
|
+
// which is always in pixels because getComputedValue
|
|
274
|
+
// returns the resolved values
|
|
275
|
+
var elementComputedStyle = window.getComputedStyle(previewRef.current);
|
|
276
|
+
var borderWidth = parseFloat(elementComputedStyle.borderTopWidth) + parseFloat(elementComputedStyle.borderBottomWidth);
|
|
277
|
+
var marginWidth = parseFloat(elementComputedStyle.marginTop) + parseFloat(elementComputedStyle.marginBottom);
|
|
278
278
|
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
}
|
|
279
|
+
// then add an extra pixel for safety and because the scrollHeight value is rounded
|
|
280
|
+
var extraHeight = borderWidth + marginWidth + 1;
|
|
281
|
+
setCurrentHeight(previewRef.current.scrollHeight + extraHeight);
|
|
283
282
|
}
|
|
284
283
|
}, [currentHeight, isPreviewing, height, autoExpandPreview]);
|
|
285
284
|
var previewHeight = height === 'full' ? "calc(100% - ".concat(editorFooterHeight, "px)") : currentHeight;
|
|
@@ -62,7 +62,7 @@ var _EuiPageBottomBar = function _EuiPageBottomBar(_ref2) {
|
|
|
62
62
|
// Hide the overflow in case of larger flex margins than padding
|
|
63
63
|
,
|
|
64
64
|
css: _ref
|
|
65
|
-
// Using
|
|
65
|
+
// Using object here because of the possible conflict with overriding props and position `sticky`
|
|
66
66
|
}, rest), (0, _react.jsx)(_page_section.EuiPageSection, {
|
|
67
67
|
paddingSize: paddingSize,
|
|
68
68
|
restrictWidth: restrictWidth
|
|
@@ -217,7 +217,7 @@ var EuiSelectableListItem = /*#__PURE__*/function (_Component) {
|
|
|
217
217
|
onFocusBadgeNode = (0, _react2.jsx)(_badge.EuiBadge, (0, _extends2.default)({
|
|
218
218
|
className: "euiSelectableListItem__onFocusBadge"
|
|
219
219
|
}, defaultOnFocusBadgeProps));
|
|
220
|
-
} else if (
|
|
220
|
+
} else if (typeof onFocusBadge !== 'boolean' && !!onFocusBadge) {
|
|
221
221
|
var _children = onFocusBadge.children,
|
|
222
222
|
_className = onFocusBadge.className,
|
|
223
223
|
restBadgeProps = (0, _objectWithoutProperties2.default)(onFocusBadge, _excluded2);
|
|
@@ -50,34 +50,12 @@ var displayToClassNameMap = {
|
|
|
50
50
|
var EuiTreeView = /*#__PURE__*/function (_Component) {
|
|
51
51
|
(0, _inherits2.default)(EuiTreeView, _Component);
|
|
52
52
|
var _super = _createSuper(EuiTreeView);
|
|
53
|
-
function EuiTreeView() {
|
|
53
|
+
function EuiTreeView(props, context) {
|
|
54
54
|
var _this;
|
|
55
55
|
(0, _classCallCheck2.default)(this, EuiTreeView);
|
|
56
|
-
|
|
57
|
-
args[_key] = arguments[_key];
|
|
58
|
-
}
|
|
59
|
-
_this = _super.call.apply(_super, [this].concat(args));
|
|
56
|
+
_this = _super.call(this, props, context);
|
|
60
57
|
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "treeIdGenerator", (0, _services.htmlIdGenerator)('euiTreeView'));
|
|
61
|
-
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "isNested",
|
|
62
|
-
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "state", {
|
|
63
|
-
openItems: _this.props.expandByDefault ? _this.props.items.map(function (_ref) {
|
|
64
|
-
var id = _ref.id,
|
|
65
|
-
children = _ref.children;
|
|
66
|
-
return children ? id : null;
|
|
67
|
-
}).filter(function (x) {
|
|
68
|
-
return x != null;
|
|
69
|
-
}) : _this.props.items.map(function (_ref2) {
|
|
70
|
-
var id = _ref2.id,
|
|
71
|
-
children = _ref2.children,
|
|
72
|
-
isExpanded = _ref2.isExpanded;
|
|
73
|
-
return children && isExpanded ? id : null;
|
|
74
|
-
}).filter(function (x) {
|
|
75
|
-
return x != null;
|
|
76
|
-
}),
|
|
77
|
-
activeItem: '',
|
|
78
|
-
treeID: getTreeId(_this.props.id, _this.context, _this.treeIdGenerator),
|
|
79
|
-
expandChildNodes: _this.props.expandByDefault || false
|
|
80
|
-
});
|
|
58
|
+
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "isNested", void 0);
|
|
81
59
|
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "buttonRef", []);
|
|
82
60
|
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "setButtonRef", function (ref, index) {
|
|
83
61
|
_this.buttonRef[index] = ref;
|
|
@@ -172,6 +150,26 @@ var EuiTreeView = /*#__PURE__*/function (_Component) {
|
|
|
172
150
|
_this.buttonRef[index].focus();
|
|
173
151
|
}
|
|
174
152
|
});
|
|
153
|
+
_this.isNested = !!_this.context;
|
|
154
|
+
_this.state = {
|
|
155
|
+
openItems: _this.props.expandByDefault ? _this.props.items.map(function (_ref) {
|
|
156
|
+
var id = _ref.id,
|
|
157
|
+
children = _ref.children;
|
|
158
|
+
return children ? id : null;
|
|
159
|
+
}).filter(function (x) {
|
|
160
|
+
return x != null;
|
|
161
|
+
}) : _this.props.items.map(function (_ref2) {
|
|
162
|
+
var id = _ref2.id,
|
|
163
|
+
children = _ref2.children,
|
|
164
|
+
isExpanded = _ref2.isExpanded;
|
|
165
|
+
return children && isExpanded ? id : null;
|
|
166
|
+
}).filter(function (x) {
|
|
167
|
+
return x != null;
|
|
168
|
+
}),
|
|
169
|
+
activeItem: '',
|
|
170
|
+
treeID: getTreeId(_this.props.id, context, _this.treeIdGenerator),
|
|
171
|
+
expandChildNodes: _this.props.expandByDefault || false
|
|
172
|
+
};
|
|
175
173
|
return _this;
|
|
176
174
|
}
|
|
177
175
|
(0, _createClass2.default)(EuiTreeView, [{
|
|
@@ -18,7 +18,7 @@ var is = function is(expectedValue) {
|
|
|
18
18
|
var compName = componentName || 'ANONYMOUS';
|
|
19
19
|
var value = props[propName];
|
|
20
20
|
if (value !== expectedValue) {
|
|
21
|
-
return new Error("[".concat(propName, "] property in [").concat(compName, "] component is expected to equal [").concat(expectedValue, "] but\n [").concat(value, "] was provided instead."));
|
|
21
|
+
return new Error("[".concat(propName.toString(), "] property in [").concat(compName, "] component is expected to equal [").concat(expectedValue, "] but\n [").concat(value, "] was provided instead."));
|
|
22
22
|
}
|
|
23
23
|
return null;
|
|
24
24
|
};
|
|
@@ -26,7 +26,7 @@ var is = function is(expectedValue) {
|
|
|
26
26
|
var compName = componentName || 'ANONYMOUS';
|
|
27
27
|
var value = props[propName];
|
|
28
28
|
if ((0, _predicate.isNil)(value)) {
|
|
29
|
-
return new Error("[".concat(propName, "] property in [").concat(compName, "] component is required but seems to be missing"));
|
|
29
|
+
return new Error("[".concat(propName.toString(), "] property in [").concat(compName, "] component is required but seems to be missing"));
|
|
30
30
|
}
|
|
31
31
|
return validator(props, propName, componentName);
|
|
32
32
|
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elastic/eui",
|
|
3
3
|
"description": "Elastic UI Component Library",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "92.0.0",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"main": "lib",
|
|
7
7
|
"module": "es",
|
|
@@ -109,7 +109,7 @@
|
|
|
109
109
|
"@cypress/react": "^7.0.3",
|
|
110
110
|
"@cypress/react18": "^2.0.0",
|
|
111
111
|
"@cypress/webpack-dev-server": "^1.7.0",
|
|
112
|
-
"@elastic/charts": "^
|
|
112
|
+
"@elastic/charts": "^61.2.0",
|
|
113
113
|
"@elastic/datemath": "^5.0.3",
|
|
114
114
|
"@emotion/babel-preset-css-prop": "^11.11.0",
|
|
115
115
|
"@emotion/cache": "^11.11.0",
|
|
@@ -2,13 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
@import 'color_picker/index';
|
|
4
4
|
@import 'combo_box/index';
|
|
5
|
-
@import 'control_bar/index';
|
|
6
5
|
@import 'date_picker/index';
|
|
7
6
|
@import 'datagrid/index';
|
|
8
7
|
@import 'empty_prompt/index';
|
|
9
8
|
@import 'form/index';
|
|
10
9
|
@import 'markdown_editor/index';
|
|
11
|
-
@import 'notification/index';
|
|
12
10
|
@import 'tree_view/index';
|
|
13
11
|
@import 'side_nav/index';
|
|
14
12
|
@import 'search_bar/index';
|
|
@@ -431,7 +431,7 @@ var EuiBasicTable = /*#__PURE__*/function (_Component) {
|
|
|
431
431
|
var sortDirection = _this2.resolveColumnSortDirection(column);
|
|
432
432
|
items.push({
|
|
433
433
|
name: column.name,
|
|
434
|
-
key: "_data_s_".concat(column.field, "_").concat(index),
|
|
434
|
+
key: "_data_s_".concat(String(column.field), "_").concat(index),
|
|
435
435
|
onSort: _this2.resolveColumnOnSort(column),
|
|
436
436
|
isSorted: !!sortDirection,
|
|
437
437
|
isSortAscending: sortDirection ? _services.SortDirection.isAsc(sortDirection) : undefined
|
|
@@ -584,11 +584,11 @@ var EuiBasicTable = /*#__PURE__*/function (_Component) {
|
|
|
584
584
|
}
|
|
585
585
|
}
|
|
586
586
|
headers.push((0, _react2.jsx)(_table.EuiTableHeaderCell, (0, _extends2.default)({
|
|
587
|
-
key: "_data_h_".concat(field, "_").concat(index),
|
|
587
|
+
key: "_data_h_".concat(String(field), "_").concat(index),
|
|
588
588
|
align: columnAlign,
|
|
589
589
|
width: width,
|
|
590
590
|
mobileOptions: mobileOptions,
|
|
591
|
-
"data-test-subj": "tableHeaderCell_".concat(field, "_").concat(index),
|
|
591
|
+
"data-test-subj": "tableHeaderCell_".concat(String(field), "_").concat(index),
|
|
592
592
|
description: description
|
|
593
593
|
}, sorting), name));
|
|
594
594
|
});
|
|
@@ -625,7 +625,7 @@ var EuiBasicTable = /*#__PURE__*/function (_Component) {
|
|
|
625
625
|
|
|
626
626
|
if (footer) {
|
|
627
627
|
footers.push((0, _react2.jsx)(_table.EuiTableFooterCell, {
|
|
628
|
-
key: "footer_".concat(field, "_").concat(footers.length - 1),
|
|
628
|
+
key: "footer_".concat(String(field), "_").concat(footers.length - 1),
|
|
629
629
|
align: align
|
|
630
630
|
}, footer));
|
|
631
631
|
hasDefinedFooter = true;
|
|
@@ -865,7 +865,7 @@ var EuiBasicTable = /*#__PURE__*/function (_Component) {
|
|
|
865
865
|
var field = column.field,
|
|
866
866
|
render = column.render,
|
|
867
867
|
dataType = column.dataType;
|
|
868
|
-
var key = "_data_column_".concat(field, "_").concat(itemId, "_").concat(columnIndex);
|
|
868
|
+
var key = "_data_column_".concat(String(field), "_").concat(itemId, "_").concat(columnIndex);
|
|
869
869
|
var contentRenderer = render || this.getRendererForDataType(dataType);
|
|
870
870
|
var value = (0, _objects.get)(item, field);
|
|
871
871
|
var content = contentRenderer(value, item);
|
|
@@ -77,7 +77,7 @@ var DragAndDrop = function DragAndDrop() {
|
|
|
77
77
|
beforeEach(function () {
|
|
78
78
|
cy.realMount((0, _react2.jsx)(DragAndDrop, null));
|
|
79
79
|
});
|
|
80
|
-
describe('
|
|
80
|
+
describe('EuiDragDrop', function () {
|
|
81
81
|
describe('Automated accessibility check', function () {
|
|
82
82
|
it('has zero violations on render', function () {
|
|
83
83
|
cy.checkAxe();
|
|
@@ -5,8 +5,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
7
|
exports.EuiFilterButton = void 0;
|
|
8
|
-
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
9
8
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
9
|
+
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
10
10
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
11
11
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
12
12
|
var _react = _interopRequireDefault(require("react"));
|
|
@@ -66,6 +66,10 @@ var EuiFilterButton = function EuiFilterButton(_ref) {
|
|
|
66
66
|
'euiFilterButton-hasActiveFilters': hasActiveFilters,
|
|
67
67
|
'euiFilterButton-hasNotification': numFiltersDefined
|
|
68
68
|
}, className);
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* Badge
|
|
72
|
+
*/
|
|
69
73
|
var showBadge = numFiltersDefined || numActiveFiltersDefined;
|
|
70
74
|
var badgeCount = numActiveFilters || numFilters;
|
|
71
75
|
var activeBadgeLabel = (0, _i18n.useEuiI18n)('euiFilterButton.filterBadgeActiveAriaLabel', '{count} active filters', {
|
|
@@ -74,9 +78,6 @@ var EuiFilterButton = function EuiFilterButton(_ref) {
|
|
|
74
78
|
var availableBadgeLabel = (0, _i18n.useEuiI18n)('euiFilterButton.filterBadgeAvailableAriaLabel', '{count} available filters', {
|
|
75
79
|
count: badgeCount
|
|
76
80
|
});
|
|
77
|
-
var buttonTextClassNames = (0, _classnames.default)('euiFilterButton__text', {
|
|
78
|
-
'euiFilterButton__text-hasNotification': showBadge
|
|
79
|
-
}, textProps && textProps.className);
|
|
80
81
|
var badgeContent = showBadge && (0, _react2.jsx)(_badge.EuiNotificationBadge, {
|
|
81
82
|
className: "euiFilterButton__notification",
|
|
82
83
|
css: [notificationStyles.euiFilterButton__notification, isDisabled && notificationStyles.disabled, ";label:badgeContent;"],
|
|
@@ -84,18 +85,27 @@ var EuiFilterButton = function EuiFilterButton(_ref) {
|
|
|
84
85
|
color: isDisabled || !hasActiveFilters ? 'subdued' : badgeColor,
|
|
85
86
|
role: "marquee" // https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles/marquee_role
|
|
86
87
|
}, badgeCount);
|
|
88
|
+
|
|
89
|
+
/**
|
|
90
|
+
* Text
|
|
91
|
+
*/
|
|
92
|
+
var buttonTextClassNames = (0, _classnames.default)('euiFilterButton__text', {
|
|
93
|
+
'euiFilterButton__text-hasNotification': showBadge
|
|
94
|
+
}, textProps && textProps.className);
|
|
95
|
+
var textCssStyles = [textStyles.euiFilterButton__text, showBadge && textStyles.hasNotification, textProps && textProps.css];
|
|
87
96
|
var _useInnerText = (0, _inner_text.useInnerText)(),
|
|
88
97
|
_useInnerText2 = (0, _slicedToArray2.default)(_useInnerText, 2),
|
|
89
98
|
ref = _useInnerText2[0],
|
|
90
99
|
innerText = _useInnerText2[1];
|
|
91
100
|
var dataText = children && typeof children === 'string' ? children : innerText;
|
|
92
|
-
var
|
|
101
|
+
var textContent = (0, _react2.jsx)("span", (0, _extends2.default)({
|
|
93
102
|
ref: ref,
|
|
94
|
-
className: "euiFilterButton__textShift",
|
|
95
|
-
css: textStyles.euiFilterButton__textShift,
|
|
96
103
|
"data-text": dataText,
|
|
97
104
|
title: dataText
|
|
98
|
-
},
|
|
105
|
+
}, textProps, {
|
|
106
|
+
className: buttonTextClassNames,
|
|
107
|
+
css: textCssStyles
|
|
108
|
+
}), children);
|
|
99
109
|
return (0, _react2.jsx)(_button_empty.EuiButtonEmpty, (0, _extends2.default)({
|
|
100
110
|
className: classes,
|
|
101
111
|
css: cssStyles,
|
|
@@ -104,14 +114,11 @@ var EuiFilterButton = function EuiFilterButton(_ref) {
|
|
|
104
114
|
iconSide: iconSide,
|
|
105
115
|
iconType: iconType,
|
|
106
116
|
type: type,
|
|
107
|
-
textProps:
|
|
108
|
-
className: buttonTextClassNames,
|
|
109
|
-
css: [textStyles.euiFilterButton__text, showBadge && textStyles.hasNotification, textProps && textProps.css]
|
|
110
|
-
}),
|
|
117
|
+
textProps: false,
|
|
111
118
|
contentProps: _objectSpread(_objectSpread({}, contentProps), {}, {
|
|
112
119
|
css: [contentStyles.euiFilterButton__content, iconType && contentStyles.hasIcon, contentProps === null || contentProps === void 0 ? void 0 : contentProps.css]
|
|
113
120
|
})
|
|
114
|
-
}, rest),
|
|
121
|
+
}, rest), textContent, badgeContent);
|
|
115
122
|
};
|
|
116
123
|
exports.EuiFilterButton = EuiFilterButton;
|
|
117
124
|
EuiFilterButton.propTypes = {
|
|
@@ -14,8 +14,8 @@ function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringif
|
|
|
14
14
|
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
|
15
15
|
* Side Public License, v 1.
|
|
16
16
|
*/
|
|
17
|
-
var euiFilterButtonDisplay = function euiFilterButtonDisplay(
|
|
18
|
-
var euiTheme =
|
|
17
|
+
var euiFilterButtonDisplay = function euiFilterButtonDisplay(_ref4) {
|
|
18
|
+
var euiTheme = _ref4.euiTheme;
|
|
19
19
|
return {
|
|
20
20
|
flex: '1 1 auto',
|
|
21
21
|
minInlineSize: (0, _global_styling.mathWithUnits)(euiTheme.size.base, function (x) {
|
|
@@ -24,7 +24,7 @@ var euiFilterButtonDisplay = function euiFilterButtonDisplay(_ref5) {
|
|
|
24
24
|
};
|
|
25
25
|
};
|
|
26
26
|
exports.euiFilterButtonDisplay = euiFilterButtonDisplay;
|
|
27
|
-
var
|
|
27
|
+
var _ref3 = process.env.NODE_ENV === "production" ? {
|
|
28
28
|
name: "jkp921-noGrow",
|
|
29
29
|
styles: "flex-grow:0;label:noGrow;"
|
|
30
30
|
} : {
|
|
@@ -43,9 +43,9 @@ var euiFilterButtonStyles = function euiFilterButtonStyles(euiThemeContext) {
|
|
|
43
43
|
// Bottom borders are needed for responsive flex-wrap behavior
|
|
44
44
|
var bottomBoxShadow = "0 ".concat(euiTheme.border.width.thin, " 0 0 ").concat(borderColor);
|
|
45
45
|
return {
|
|
46
|
-
euiFilterButton: /*#__PURE__*/(0, _react.css)(euiFilterButtonDisplay(euiThemeContext), " ", (0, _global_styling.logicalCSS)('height', controlHeight), " border-radius:0;box-shadow:", leftBoxShadow, ",", bottomBoxShadow, ";&:hover:not(:disabled),&:focus:not(:disabled){text-decoration:none;.
|
|
46
|
+
euiFilterButton: /*#__PURE__*/(0, _react.css)(euiFilterButtonDisplay(euiThemeContext), " ", (0, _global_styling.logicalCSS)('height', controlHeight), " border-radius:0;box-shadow:", leftBoxShadow, ",", bottomBoxShadow, ";&:hover:not(:disabled),&:focus:not(:disabled){text-decoration:none;.euiFilterButton__text{text-decoration:underline;}}&:focus-visible{outline-offset:-", euiTheme.focus.width, ";};label:euiFilterButton;"),
|
|
47
47
|
withNext: /*#__PURE__*/(0, _react.css)("&+.euiFilterButton{", (0, _global_styling.logicalCSS)('margin-left', "-".concat(euiTheme.size.xs)), "box-shadow:", bottomBoxShadow, ";};label:withNext;"),
|
|
48
|
-
noGrow:
|
|
48
|
+
noGrow: _ref3,
|
|
49
49
|
hasNotification: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('min-width', (0, _global_styling.mathWithUnits)(euiTheme.size.base, function (x) {
|
|
50
50
|
return x * 6;
|
|
51
51
|
})), ";;label:hasNotification;"),
|
|
@@ -69,27 +69,18 @@ var _ref2 = process.env.NODE_ENV === "production" ? {
|
|
|
69
69
|
styles: "cursor:inherit;label:euiFilterButton__notification;",
|
|
70
70
|
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
71
71
|
};
|
|
72
|
-
var
|
|
73
|
-
|
|
74
|
-
styles: "justify-content:space-between;label:hasIcon;"
|
|
75
|
-
} : {
|
|
76
|
-
name: "f0jxzj-hasIcon",
|
|
77
|
-
styles: "justify-content:space-between;label:hasIcon;",
|
|
78
|
-
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
79
|
-
};
|
|
80
|
-
var euiFilterButtonChildStyles = function euiFilterButtonChildStyles(_ref6) {
|
|
81
|
-
var euiTheme = _ref6.euiTheme;
|
|
72
|
+
var euiFilterButtonChildStyles = function euiFilterButtonChildStyles(_ref5) {
|
|
73
|
+
var euiTheme = _ref5.euiTheme;
|
|
82
74
|
return {
|
|
83
75
|
content: {
|
|
84
76
|
euiFilterButton__content: /*#__PURE__*/(0, _react.css)(";label:euiFilterButton__content;"),
|
|
85
|
-
hasIcon:
|
|
77
|
+
hasIcon: /*#__PURE__*/(0, _react.css)("&>.euiIcon:last-child{", (0, _global_styling.logicalCSS)('margin-left', 'auto'), ";};label:hasIcon;")
|
|
86
78
|
},
|
|
87
79
|
text: {
|
|
88
|
-
euiFilterButton__text: /*#__PURE__*/(0, _react.css)("
|
|
89
|
-
hasNotification: /*#__PURE__*/(0, _react.css)(
|
|
90
|
-
euiFilterButton__textShift: /*#__PURE__*/(0, _react.css)((0, _global_styling.euiTextShift)('bold', 'data-text', euiTheme), " ", (0, _global_styling.euiTextTruncate)(), " ", (0, _global_styling.logicalCSS)('min-width', (0, _global_styling.mathWithUnits)(euiTheme.size.base, function (x) {
|
|
80
|
+
euiFilterButton__text: /*#__PURE__*/(0, _react.css)((0, _global_styling.euiTextShift)('bold', 'data-text', euiTheme), " ", (0, _global_styling.euiTextTruncate)(), ";;label:euiFilterButton__text;"),
|
|
81
|
+
hasNotification: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('min-width', (0, _global_styling.mathWithUnits)(euiTheme.size.base, function (x) {
|
|
91
82
|
return x * 3;
|
|
92
|
-
})), ";;label:
|
|
83
|
+
})), ";;label:hasNotification;")
|
|
93
84
|
},
|
|
94
85
|
notification: {
|
|
95
86
|
euiFilterButton__notification: _ref2,
|