@elastic/eui 85.0.0 → 85.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/eui_charts_theme.js +13 -16
- package/dist/eui_charts_theme.js.map +1 -1
- package/dist/eui_theme_dark.css +47 -90
- package/dist/eui_theme_dark.min.css +1 -1
- package/dist/eui_theme_light.css +47 -90
- package/dist/eui_theme_light.min.css +1 -1
- package/es/components/collapsible_nav_beta/collapsible_nav_beta.js +26 -0
- package/es/components/collapsible_nav_beta/collapsible_nav_beta.styles.js +16 -0
- package/es/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_accordion.js +202 -0
- package/es/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_accordion.styles.js +33 -0
- package/es/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_item.js +296 -0
- package/es/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_item.styles.js +58 -0
- package/es/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_link.js +93 -0
- package/es/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_link.styles.js +28 -0
- package/es/components/collapsible_nav_beta/collapsible_nav_item/index.js +9 -0
- package/es/components/collapsible_nav_beta/index.js +15 -0
- package/es/components/color_picker/saturation.js +2 -1
- package/es/components/combo_box/combo_box_input/combo_box_input.js +7 -1
- package/es/components/combo_box/combo_box_input/combo_box_pill.js +16 -4
- package/es/components/combo_box/combo_box_options_list/combo_box_option.js +4 -0
- package/es/components/combo_box/combo_box_options_list/combo_box_options_list.js +21 -3
- package/es/components/error_boundary/error_boundary.js +1 -1
- package/es/components/filter_group/filter_group.styles.js +2 -2
- package/es/components/filter_group/filter_select_item.js +31 -15
- package/es/components/filter_group/filter_select_item.styles.js +19 -0
- package/es/components/form/range/range_highlight.js +1 -0
- package/es/components/highlight/highlight.js +4 -4
- package/es/components/index.js +1 -0
- package/es/components/inline_edit/inline_edit_form.js +2 -1
- package/es/components/markdown_editor/markdown_editor.js +2 -2
- package/es/themes/amsterdam/global_styling/variables/_states.js +13 -16
- package/eui.d.ts +362 -129
- package/i18ntokens.json +50 -50
- package/lib/components/collapsible_nav_beta/collapsible_nav_beta.js +30 -0
- package/lib/components/collapsible_nav_beta/collapsible_nav_beta.styles.js +23 -0
- package/lib/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_accordion.js +211 -0
- package/lib/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_accordion.styles.js +40 -0
- package/lib/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_item.js +304 -0
- package/lib/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_item.styles.js +63 -0
- package/lib/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_link.js +100 -0
- package/lib/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_link.styles.js +35 -0
- package/lib/components/collapsible_nav_beta/collapsible_nav_item/index.js +12 -0
- package/lib/components/collapsible_nav_beta/index.js +19 -0
- package/lib/components/color_picker/saturation.js +2 -1
- package/lib/components/combo_box/combo_box_input/combo_box_input.js +7 -1
- package/lib/components/combo_box/combo_box_input/combo_box_pill.js +16 -4
- package/lib/components/combo_box/combo_box_options_list/combo_box_option.js +4 -0
- package/lib/components/combo_box/combo_box_options_list/combo_box_options_list.js +21 -3
- package/lib/components/error_boundary/error_boundary.js +1 -1
- package/lib/components/filter_group/filter_group.styles.js +1 -1
- package/lib/components/filter_group/filter_select_item.js +33 -17
- package/lib/components/filter_group/filter_select_item.styles.js +26 -0
- package/lib/components/form/range/range_highlight.js +1 -0
- package/lib/components/highlight/highlight.js +4 -4
- package/lib/components/index.js +11 -0
- package/lib/components/inline_edit/inline_edit_form.js +2 -1
- package/lib/components/markdown_editor/markdown_editor.js +2 -2
- package/lib/themes/amsterdam/global_styling/variables/_states.js +13 -16
- package/optimize/es/components/collapsible_nav_beta/collapsible_nav_beta.js +26 -0
- package/optimize/es/components/collapsible_nav_beta/collapsible_nav_beta.styles.js +16 -0
- package/optimize/es/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_accordion.js +113 -0
- package/optimize/es/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_accordion.styles.js +33 -0
- package/optimize/es/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_item.js +117 -0
- package/optimize/es/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_item.styles.js +55 -0
- package/optimize/es/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_link.js +59 -0
- package/optimize/es/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_link.styles.js +28 -0
- package/optimize/es/components/collapsible_nav_beta/collapsible_nav_item/index.js +9 -0
- package/optimize/es/components/collapsible_nav_beta/index.js +15 -0
- package/optimize/es/components/color_picker/saturation.js +2 -1
- package/optimize/es/components/combo_box/combo_box_input/combo_box_input.js +3 -1
- package/optimize/es/components/combo_box/combo_box_input/combo_box_pill.js +12 -4
- package/optimize/es/components/combo_box/combo_box_options_list/combo_box_options_list.js +9 -3
- package/optimize/es/components/error_boundary/error_boundary.js +1 -1
- package/optimize/es/components/filter_group/filter_group.styles.js +2 -2
- package/optimize/es/components/filter_group/filter_select_item.js +30 -14
- package/optimize/es/components/filter_group/filter_select_item.styles.js +19 -0
- package/optimize/es/components/form/range/range_highlight.js +1 -0
- package/optimize/es/components/highlight/highlight.js +4 -4
- package/optimize/es/components/index.js +1 -0
- package/optimize/es/components/inline_edit/inline_edit_form.js +2 -1
- package/optimize/es/components/markdown_editor/markdown_editor.js +2 -2
- package/optimize/es/themes/amsterdam/global_styling/variables/_states.js +13 -16
- package/optimize/lib/components/collapsible_nav_beta/collapsible_nav_beta.js +33 -0
- package/optimize/lib/components/collapsible_nav_beta/collapsible_nav_beta.styles.js +23 -0
- package/optimize/lib/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_accordion.js +123 -0
- package/optimize/lib/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_accordion.styles.js +40 -0
- package/optimize/lib/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_item.js +124 -0
- package/optimize/lib/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_item.styles.js +61 -0
- package/optimize/lib/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_link.js +66 -0
- package/optimize/lib/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_link.styles.js +35 -0
- package/optimize/lib/components/collapsible_nav_beta/collapsible_nav_item/index.js +12 -0
- package/optimize/lib/components/collapsible_nav_beta/index.js +19 -0
- package/optimize/lib/components/color_picker/saturation.js +2 -1
- package/optimize/lib/components/combo_box/combo_box_input/combo_box_input.js +3 -1
- package/optimize/lib/components/combo_box/combo_box_input/combo_box_pill.js +12 -4
- package/optimize/lib/components/combo_box/combo_box_options_list/combo_box_options_list.js +9 -3
- package/optimize/lib/components/error_boundary/error_boundary.js +1 -1
- package/optimize/lib/components/filter_group/filter_group.styles.js +1 -1
- package/optimize/lib/components/filter_group/filter_select_item.js +32 -16
- package/optimize/lib/components/filter_group/filter_select_item.styles.js +26 -0
- package/optimize/lib/components/form/range/range_highlight.js +1 -0
- package/optimize/lib/components/highlight/highlight.js +4 -4
- package/optimize/lib/components/index.js +11 -0
- package/optimize/lib/components/inline_edit/inline_edit_form.js +2 -1
- package/optimize/lib/components/markdown_editor/markdown_editor.js +2 -2
- package/optimize/lib/themes/amsterdam/global_styling/variables/_states.js +13 -16
- package/package.json +1 -1
- package/src/components/combo_box/combo_box_input/_combo_box_pill.scss +24 -3
- package/src/components/combo_box/combo_box_options_list/_combo_box_option.scss +34 -14
- package/src/components/index.scss +0 -1
- package/test-env/components/collapsible_nav_beta/collapsible_nav_beta.js +33 -0
- package/test-env/components/collapsible_nav_beta/collapsible_nav_beta.styles.js +23 -0
- package/test-env/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_accordion.js +208 -0
- package/test-env/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_accordion.styles.js +40 -0
- package/test-env/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_item.js +303 -0
- package/test-env/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_item.styles.js +61 -0
- package/test-env/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_link.js +96 -0
- package/test-env/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_link.styles.js +35 -0
- package/test-env/components/collapsible_nav_beta/collapsible_nav_item/index.js +12 -0
- package/test-env/components/collapsible_nav_beta/index.js +19 -0
- package/test-env/components/color_picker/saturation.js +2 -1
- package/test-env/components/combo_box/combo_box_input/combo_box_input.js +7 -1
- package/test-env/components/combo_box/combo_box_input/combo_box_pill.js +16 -4
- package/test-env/components/combo_box/combo_box_options_list/combo_box_option.js +4 -0
- package/test-env/components/combo_box/combo_box_options_list/combo_box_options_list.js +21 -3
- package/test-env/components/error_boundary/error_boundary.js +1 -1
- package/test-env/components/filter_group/filter_group.styles.js +1 -1
- package/test-env/components/filter_group/filter_select_item.js +33 -17
- package/test-env/components/filter_group/filter_select_item.styles.js +26 -0
- package/test-env/components/form/range/range_highlight.js +1 -0
- package/test-env/components/highlight/highlight.js +4 -4
- package/test-env/components/index.js +11 -0
- package/test-env/components/inline_edit/inline_edit_form.js +2 -1
- package/test-env/components/markdown_editor/markdown_editor.js +2 -2
- package/test-env/themes/amsterdam/global_styling/variables/_states.js +13 -16
- package/src/components/filter_group/_filter_select_item.scss +0 -43
- package/src/components/filter_group/_index.scss +0 -1
|
@@ -26,7 +26,7 @@ var _form_control_layout = require("../../form/form_control_layout");
|
|
|
26
26
|
var _num_icons = require("../../form/form_control_layout/_num_icons");
|
|
27
27
|
var _combo_box_pill = require("./combo_box_pill");
|
|
28
28
|
var _react2 = require("@emotion/react");
|
|
29
|
-
var _excluded = ["key", "label", "color", "onClick"];
|
|
29
|
+
var _excluded = ["key", "label", "color", "onClick", "append", "prepend"];
|
|
30
30
|
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); }
|
|
31
31
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof3(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; }
|
|
32
32
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
|
|
@@ -155,6 +155,8 @@ var EuiComboBoxInput = /*#__PURE__*/function (_Component) {
|
|
|
155
155
|
label = option.label,
|
|
156
156
|
color = option.color,
|
|
157
157
|
onClick = option.onClick,
|
|
158
|
+
append = option.append,
|
|
159
|
+
prepend = option.prepend,
|
|
158
160
|
rest = (0, _objectWithoutProperties2.default)(option, _excluded);
|
|
159
161
|
var pillOnClose = isDisabled || singleSelection || onClick ? undefined : onRemoveOption;
|
|
160
162
|
return (0, _react2.jsx)(_combo_box_pill.EuiComboBoxPill, (0, _extends2.default)({
|
|
@@ -298,12 +300,16 @@ EuiComboBoxInput.propTypes = {
|
|
|
298
300
|
key: _propTypes.default.string,
|
|
299
301
|
options: _propTypes.default.arrayOf(_propTypes.default.any.isRequired),
|
|
300
302
|
value: _propTypes.default.any,
|
|
303
|
+
prepend: _propTypes.default.node,
|
|
304
|
+
append: _propTypes.default.node,
|
|
301
305
|
className: _propTypes.default.string,
|
|
302
306
|
"aria-label": _propTypes.default.string,
|
|
303
307
|
"data-test-subj": _propTypes.default.string,
|
|
304
308
|
css: _propTypes.default.any
|
|
305
309
|
}).isRequired),
|
|
306
310
|
value: _propTypes.default.any,
|
|
311
|
+
prepend: _propTypes.default.node,
|
|
312
|
+
append: _propTypes.default.node,
|
|
307
313
|
className: _propTypes.default.string,
|
|
308
314
|
"aria-label": _propTypes.default.string,
|
|
309
315
|
"data-test-subj": _propTypes.default.string,
|
|
@@ -73,6 +73,11 @@ var EuiComboBoxPill = /*#__PURE__*/function (_Component) {
|
|
|
73
73
|
onClick: onClick,
|
|
74
74
|
onClickAriaLabel: onClickAriaLabel
|
|
75
75
|
} : {};
|
|
76
|
+
var content = (0, _react2.jsx)(_react.default.Fragment, null, option.prepend && (0, _react2.jsx)("span", {
|
|
77
|
+
className: "euiComboBoxPill__prepend"
|
|
78
|
+
}, option.prepend), children, option.append && (0, _react2.jsx)("span", {
|
|
79
|
+
className: "euiComboBoxPill__append"
|
|
80
|
+
}, option.append));
|
|
76
81
|
if (onClose) {
|
|
77
82
|
return (0, _react2.jsx)(_i18n.EuiI18n, {
|
|
78
83
|
token: "euiComboBoxPill.removeSelection",
|
|
@@ -84,24 +89,27 @@ var EuiComboBoxPill = /*#__PURE__*/function (_Component) {
|
|
|
84
89
|
return (0, _react2.jsx)(_badge.EuiBadge, (0, _extends2.default)({
|
|
85
90
|
className: classes,
|
|
86
91
|
color: color,
|
|
92
|
+
"data-test-subj": "euiComboBoxPill",
|
|
87
93
|
iconOnClick: _this2.onCloseButtonClick,
|
|
88
94
|
iconOnClickAriaLabel: removeSelection,
|
|
89
95
|
iconSide: "right",
|
|
90
96
|
iconType: "cross",
|
|
91
97
|
title: children
|
|
92
|
-
}, onClickProps, rest),
|
|
98
|
+
}, onClickProps, rest), content);
|
|
93
99
|
});
|
|
94
100
|
}
|
|
95
101
|
if (asPlainText) {
|
|
96
102
|
return (0, _react2.jsx)("span", (0, _extends2.default)({
|
|
97
|
-
className: classes
|
|
98
|
-
|
|
103
|
+
className: classes,
|
|
104
|
+
"data-test-subj": "euiComboBoxPill"
|
|
105
|
+
}, rest), content);
|
|
99
106
|
}
|
|
100
107
|
return (0, _react2.jsx)(_badge.EuiBadge, (0, _extends2.default)({
|
|
101
108
|
className: classes,
|
|
102
109
|
color: color,
|
|
110
|
+
"data-test-subj": "euiComboBoxPill",
|
|
103
111
|
title: children
|
|
104
|
-
}, rest, onClickProps),
|
|
112
|
+
}, rest, onClickProps), content);
|
|
105
113
|
}
|
|
106
114
|
}]);
|
|
107
115
|
return EuiComboBoxPill;
|
|
@@ -128,12 +136,16 @@ EuiComboBoxPill.propTypes = {
|
|
|
128
136
|
key: _propTypes.default.string,
|
|
129
137
|
options: _propTypes.default.arrayOf(_propTypes.default.any.isRequired),
|
|
130
138
|
value: _propTypes.default.any,
|
|
139
|
+
prepend: _propTypes.default.node,
|
|
140
|
+
append: _propTypes.default.node,
|
|
131
141
|
className: _propTypes.default.string,
|
|
132
142
|
"aria-label": _propTypes.default.string,
|
|
133
143
|
"data-test-subj": _propTypes.default.string,
|
|
134
144
|
css: _propTypes.default.any
|
|
135
145
|
}).isRequired),
|
|
136
146
|
value: _propTypes.default.any,
|
|
147
|
+
prepend: _propTypes.default.node,
|
|
148
|
+
append: _propTypes.default.node,
|
|
137
149
|
className: _propTypes.default.string,
|
|
138
150
|
"aria-label": _propTypes.default.string,
|
|
139
151
|
"data-test-subj": _propTypes.default.string,
|
|
@@ -118,12 +118,16 @@ EuiComboBoxOption.propTypes = {
|
|
|
118
118
|
key: _propTypes.default.string,
|
|
119
119
|
options: _propTypes.default.arrayOf(_propTypes.default.any.isRequired),
|
|
120
120
|
value: _propTypes.default.any,
|
|
121
|
+
prepend: _propTypes.default.node,
|
|
122
|
+
append: _propTypes.default.node,
|
|
121
123
|
className: _propTypes.default.string,
|
|
122
124
|
"aria-label": _propTypes.default.string,
|
|
123
125
|
"data-test-subj": _propTypes.default.string,
|
|
124
126
|
css: _propTypes.default.any
|
|
125
127
|
}).isRequired),
|
|
126
128
|
value: _propTypes.default.any,
|
|
129
|
+
prepend: _propTypes.default.node,
|
|
130
|
+
append: _propTypes.default.node,
|
|
127
131
|
className: _propTypes.default.string,
|
|
128
132
|
"aria-label": _propTypes.default.string,
|
|
129
133
|
"data-test-subj": _propTypes.default.string,
|
|
@@ -29,7 +29,7 @@ var _filter_select_item = require("../../filter_group/filter_select_item");
|
|
|
29
29
|
var _badge = require("../../badge");
|
|
30
30
|
var _popover_panel = require("../../popover/popover_panel");
|
|
31
31
|
var _react2 = require("@emotion/react");
|
|
32
|
-
var _excluded = ["key", "isGroupLabelOption", "label", "value"],
|
|
32
|
+
var _excluded = ["key", "isGroupLabelOption", "label", "value", "prepend", "append"],
|
|
33
33
|
_excluded2 = ["data-test-subj", "activeOptionIndex", "areAllOptionsSelected", "customOptionText", "fullWidth", "getSelectedOptionForSearchValue", "isCaseSensitive", "isLoading", "listRef", "matchingOptions", "onCloseList", "onCreateOption", "onOptionClick", "onOptionEnterKey", "onScroll", "optionRef", "options", "position", "renderOption", "rootId", "rowHeight", "scrollToIndex", "searchValue", "selectedOptions", "singleSelection", "updatePosition", "width", "delimiter", "zIndex", "style", "listboxAriaLabel"];
|
|
34
34
|
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); }
|
|
35
35
|
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; }
|
|
@@ -102,6 +102,8 @@ var EuiComboBoxOptionsList = /*#__PURE__*/function (_Component) {
|
|
|
102
102
|
isGroupLabelOption = option.isGroupLabelOption,
|
|
103
103
|
label = option.label,
|
|
104
104
|
value = option.value,
|
|
105
|
+
prepend = option.prepend,
|
|
106
|
+
append = option.append,
|
|
105
107
|
rest = (0, _objectWithoutProperties2.default)(option, _excluded);
|
|
106
108
|
var _this$props = _this.props,
|
|
107
109
|
singleSelection = _this$props.singleSelection,
|
|
@@ -140,13 +142,17 @@ var EuiComboBoxOptionsList = /*#__PURE__*/function (_Component) {
|
|
|
140
142
|
title: label
|
|
141
143
|
}, rest), (0, _react2.jsx)("span", {
|
|
142
144
|
className: "euiComboBoxOption__contentWrapper"
|
|
143
|
-
},
|
|
145
|
+
}, prepend && (0, _react2.jsx)("span", {
|
|
146
|
+
className: "euiComboBoxOption__prepend"
|
|
147
|
+
}, prepend), renderOption ? (0, _react2.jsx)("span", {
|
|
144
148
|
className: OPTION_CONTENT_CLASSNAME
|
|
145
149
|
}, renderOption(option, searchValue, 'euiComboBoxOption__renderOption')) : (0, _react2.jsx)(_highlight.EuiHighlight, {
|
|
146
150
|
search: searchValue,
|
|
147
151
|
strict: _this.props.isCaseSensitive,
|
|
148
152
|
className: OPTION_CONTENT_CLASSNAME
|
|
149
|
-
}, label),
|
|
153
|
+
}, label), append && (0, _react2.jsx)("span", {
|
|
154
|
+
className: "euiComboBoxOption__append"
|
|
155
|
+
}, append), optionIsFocused && !optionIsDisabled ? hitEnterBadge : null));
|
|
150
156
|
});
|
|
151
157
|
return _this;
|
|
152
158
|
}
|
|
@@ -401,12 +407,16 @@ EuiComboBoxOptionsList.propTypes = {
|
|
|
401
407
|
key: _propTypes.default.string,
|
|
402
408
|
options: _propTypes.default.arrayOf(_propTypes.default.any.isRequired),
|
|
403
409
|
value: _propTypes.default.any,
|
|
410
|
+
prepend: _propTypes.default.node,
|
|
411
|
+
append: _propTypes.default.node,
|
|
404
412
|
className: _propTypes.default.string,
|
|
405
413
|
"aria-label": _propTypes.default.string,
|
|
406
414
|
"data-test-subj": _propTypes.default.string,
|
|
407
415
|
css: _propTypes.default.any
|
|
408
416
|
}).isRequired),
|
|
409
417
|
value: _propTypes.default.any,
|
|
418
|
+
prepend: _propTypes.default.node,
|
|
419
|
+
append: _propTypes.default.node,
|
|
410
420
|
className: _propTypes.default.string,
|
|
411
421
|
"aria-label": _propTypes.default.string,
|
|
412
422
|
"data-test-subj": _propTypes.default.string,
|
|
@@ -431,12 +441,16 @@ EuiComboBoxOptionsList.propTypes = {
|
|
|
431
441
|
key: _propTypes.default.string,
|
|
432
442
|
options: _propTypes.default.arrayOf(_propTypes.default.any.isRequired),
|
|
433
443
|
value: _propTypes.default.any,
|
|
444
|
+
prepend: _propTypes.default.node,
|
|
445
|
+
append: _propTypes.default.node,
|
|
434
446
|
className: _propTypes.default.string,
|
|
435
447
|
"aria-label": _propTypes.default.string,
|
|
436
448
|
"data-test-subj": _propTypes.default.string,
|
|
437
449
|
css: _propTypes.default.any
|
|
438
450
|
}).isRequired),
|
|
439
451
|
value: _propTypes.default.any,
|
|
452
|
+
prepend: _propTypes.default.node,
|
|
453
|
+
append: _propTypes.default.node,
|
|
440
454
|
className: _propTypes.default.string,
|
|
441
455
|
"aria-label": _propTypes.default.string,
|
|
442
456
|
"data-test-subj": _propTypes.default.string,
|
|
@@ -458,12 +472,16 @@ EuiComboBoxOptionsList.propTypes = {
|
|
|
458
472
|
key: _propTypes.default.string,
|
|
459
473
|
options: _propTypes.default.arrayOf(_propTypes.default.any.isRequired),
|
|
460
474
|
value: _propTypes.default.any,
|
|
475
|
+
prepend: _propTypes.default.node,
|
|
476
|
+
append: _propTypes.default.node,
|
|
461
477
|
className: _propTypes.default.string,
|
|
462
478
|
"aria-label": _propTypes.default.string,
|
|
463
479
|
"data-test-subj": _propTypes.default.string,
|
|
464
480
|
css: _propTypes.default.any
|
|
465
481
|
}).isRequired),
|
|
466
482
|
value: _propTypes.default.any,
|
|
483
|
+
prepend: _propTypes.default.node,
|
|
484
|
+
append: _propTypes.default.node,
|
|
467
485
|
className: _propTypes.default.string,
|
|
468
486
|
"aria-label": _propTypes.default.string,
|
|
469
487
|
"data-test-subj": _propTypes.default.string,
|
|
@@ -58,7 +58,7 @@ var EuiErrorBoundary = /*#__PURE__*/function (_Component) {
|
|
|
58
58
|
var message = error.message,
|
|
59
59
|
stack = error.stack;
|
|
60
60
|
var idx = (stack === null || stack === void 0 ? void 0 : stack.indexOf(message)) || -1;
|
|
61
|
-
var stackStr = idx > -1 ? stack === null || stack === void 0 ? void 0 : stack.
|
|
61
|
+
var stackStr = idx > -1 ? stack === null || stack === void 0 ? void 0 : stack.substring(idx + message.length + 1) : stack;
|
|
62
62
|
var errorMessage = "Error: ".concat(message, "\n").concat(stackStr);
|
|
63
63
|
this.setState({
|
|
64
64
|
hasError: true,
|
|
@@ -32,7 +32,7 @@ var euiFilterGroupStyles = function euiFilterGroupStyles(euiThemeContext) {
|
|
|
32
32
|
controlCompressedBorderRadius = _euiFormVariables.controlCompressedBorderRadius,
|
|
33
33
|
controlCompressedHeight = _euiFormVariables.controlCompressedHeight;
|
|
34
34
|
return {
|
|
35
|
-
euiFilterGroup: /*#__PURE__*/(0, _react.css)("display:inline-flex;", (0, _global_styling.logicalCSS)('max-width', '100%'), " overflow:hidden;background-color:", backgroundColor, ";box-shadow:inset 0 0 0 ", euiTheme.border.width.thin, " ", borderColor, ";>*:not(.euiFilterButton){", (0, _filter_button.euiFilterButtonDisplay)(euiThemeContext), ";}.euiPopover__anchor{display:block;.euiFilterButton{", (0, _global_styling.logicalCSS)('width', '100%'), ";}}", (0, _global_styling.
|
|
35
|
+
euiFilterGroup: /*#__PURE__*/(0, _react.css)("display:inline-flex;", (0, _global_styling.logicalCSS)('max-width', '100%'), " overflow:hidden;background-color:", backgroundColor, ";box-shadow:inset 0 0 0 ", euiTheme.border.width.thin, " ", borderColor, ";>*:not(.euiFilterButton){", (0, _filter_button.euiFilterButtonDisplay)(euiThemeContext), ";}.euiPopover__anchor{display:block;.euiFilterButton{", (0, _global_styling.logicalCSS)('width', '100%'), ";}}", (0, _global_styling.euiBreakpoint)(euiThemeContext, ['xs', 's']), "{flex-wrap:wrap;}", (0, _global_styling.euiBreakpoint)(euiThemeContext, ['xs']), "{display:flex;.euiFilterButton{flex-grow:1;}};label:euiFilterGroup;"),
|
|
36
36
|
fullWidth: _ref,
|
|
37
37
|
uncompressed: /*#__PURE__*/(0, _react.css)("border-radius:", controlBorderRadius, ";", buttonChildrenBorderRadii(controlBorderRadius), ";;label:uncompressed;"),
|
|
38
38
|
compressed: /*#__PURE__*/(0, _react.css)("border-radius:", controlCompressedBorderRadius, ";", buttonChildrenBorderRadii(controlCompressedBorderRadius), " .euiFilterButton{", (0, _global_styling.logicalCSS)('height', controlCompressedHeight), ";};label:compressed;"),
|
|
@@ -5,7 +5,7 @@ var _typeof = require("@babel/runtime/helpers/typeof");
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
|
-
exports.EuiFilterSelectItem = void 0;
|
|
8
|
+
exports.EuiFilterSelectItemClass = exports.EuiFilterSelectItem = void 0;
|
|
9
9
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
10
10
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
11
11
|
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
@@ -18,10 +18,12 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de
|
|
|
18
18
|
var _react = _interopRequireWildcard(require("react"));
|
|
19
19
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
20
20
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
21
|
+
var _services = require("../../services");
|
|
21
22
|
var _flex = require("../flex");
|
|
22
23
|
var _icon = require("../icon");
|
|
24
|
+
var _filter_select_item = require("./filter_select_item.styles");
|
|
23
25
|
var _react2 = require("@emotion/react");
|
|
24
|
-
var _excluded = ["children", "className", "disabled", "checked", "isFocused", "showIcons"];
|
|
26
|
+
var _excluded = ["theme", "children", "className", "disabled", "checked", "isFocused", "showIcons"];
|
|
25
27
|
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); }
|
|
26
28
|
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; }
|
|
27
29
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
|
|
@@ -46,12 +48,19 @@ var resolveIconAndColor = function resolveIconAndColor(checked) {
|
|
|
46
48
|
color: 'text'
|
|
47
49
|
};
|
|
48
50
|
};
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* TODO: This component should removed in favor of EuiSelectable usage
|
|
54
|
+
* once EuiComboBox has been converted to dogfood EuiSelectable.
|
|
55
|
+
*
|
|
56
|
+
* @deprecated - Use EuiSelectable instead
|
|
57
|
+
*/
|
|
58
|
+
var EuiFilterSelectItemClass = /*#__PURE__*/function (_Component) {
|
|
59
|
+
(0, _inherits2.default)(EuiFilterSelectItemClass, _Component);
|
|
60
|
+
var _super = _createSuper(EuiFilterSelectItemClass);
|
|
61
|
+
function EuiFilterSelectItemClass() {
|
|
53
62
|
var _this;
|
|
54
|
-
(0, _classCallCheck2.default)(this,
|
|
63
|
+
(0, _classCallCheck2.default)(this, EuiFilterSelectItemClass);
|
|
55
64
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
56
65
|
args[_key] = arguments[_key];
|
|
57
66
|
}
|
|
@@ -70,11 +79,12 @@ var EuiFilterSelectItem = /*#__PURE__*/function (_Component) {
|
|
|
70
79
|
});
|
|
71
80
|
return _this;
|
|
72
81
|
}
|
|
73
|
-
(0, _createClass2.default)(
|
|
82
|
+
(0, _createClass2.default)(EuiFilterSelectItemClass, [{
|
|
74
83
|
key: "render",
|
|
75
84
|
value: function render() {
|
|
76
85
|
var _this2 = this;
|
|
77
86
|
var _this$props = this.props,
|
|
87
|
+
theme = _this$props.theme,
|
|
78
88
|
children = _this$props.children,
|
|
79
89
|
className = _this$props.className,
|
|
80
90
|
disabled = _this$props.disabled,
|
|
@@ -82,9 +92,9 @@ var EuiFilterSelectItem = /*#__PURE__*/function (_Component) {
|
|
|
82
92
|
isFocused = _this$props.isFocused,
|
|
83
93
|
showIcons = _this$props.showIcons,
|
|
84
94
|
rest = (0, _objectWithoutProperties2.default)(_this$props, _excluded);
|
|
85
|
-
var
|
|
86
|
-
|
|
87
|
-
|
|
95
|
+
var styles = (0, _filter_select_item.euiFilterSelectItemStyles)(theme);
|
|
96
|
+
var cssStyles = [styles.euiFilterSelectItem, isFocused && styles.isFocused];
|
|
97
|
+
var classes = (0, _classnames.default)('euiFilterSelectItem', className);
|
|
88
98
|
var iconNode;
|
|
89
99
|
if (showIcons) {
|
|
90
100
|
var _resolveIconAndColor = resolveIconAndColor(checked),
|
|
@@ -105,6 +115,7 @@ var EuiFilterSelectItem = /*#__PURE__*/function (_Component) {
|
|
|
105
115
|
type: "button",
|
|
106
116
|
"aria-selected": isFocused,
|
|
107
117
|
className: classes,
|
|
118
|
+
css: cssStyles,
|
|
108
119
|
disabled: disabled,
|
|
109
120
|
"aria-disabled": disabled
|
|
110
121
|
}, rest), (0, _react2.jsx)(_flex.EuiFlexGroup, {
|
|
@@ -113,18 +124,21 @@ var EuiFilterSelectItem = /*#__PURE__*/function (_Component) {
|
|
|
113
124
|
component: "span",
|
|
114
125
|
responsive: false
|
|
115
126
|
}, iconNode, (0, _react2.jsx)(_flex.EuiFlexItem, {
|
|
116
|
-
className: "euiFilterSelectItem__content",
|
|
127
|
+
className: "euiFilterSelectItem__content eui-textTruncate",
|
|
117
128
|
component: "span"
|
|
118
129
|
}, children)));
|
|
119
130
|
}
|
|
120
131
|
}]);
|
|
121
|
-
return
|
|
132
|
+
return EuiFilterSelectItemClass;
|
|
122
133
|
}(_react.Component);
|
|
123
|
-
|
|
124
|
-
|
|
134
|
+
/**
|
|
135
|
+
* @deprecated - Use EuiSelectable instead
|
|
136
|
+
*/
|
|
137
|
+
exports.EuiFilterSelectItemClass = EuiFilterSelectItemClass;
|
|
138
|
+
(0, _defineProperty2.default)(EuiFilterSelectItemClass, "defaultProps", {
|
|
125
139
|
showIcons: true
|
|
126
140
|
});
|
|
127
|
-
|
|
141
|
+
EuiFilterSelectItemClass.propTypes = {
|
|
128
142
|
checked: _propTypes.default.oneOf(["on", "off"]),
|
|
129
143
|
showIcons: _propTypes.default.bool,
|
|
130
144
|
isFocused: _propTypes.default.bool,
|
|
@@ -132,4 +146,6 @@ EuiFilterSelectItem.propTypes = {
|
|
|
132
146
|
"aria-label": _propTypes.default.string,
|
|
133
147
|
"data-test-subj": _propTypes.default.string,
|
|
134
148
|
css: _propTypes.default.any
|
|
135
|
-
};
|
|
149
|
+
};
|
|
150
|
+
var EuiFilterSelectItem = (0, _services.withEuiTheme)(EuiFilterSelectItemClass);
|
|
151
|
+
exports.EuiFilterSelectItem = EuiFilterSelectItem;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.euiFilterSelectItemStyles = void 0;
|
|
7
|
+
var _react = require("@emotion/react");
|
|
8
|
+
var _services = require("../../services");
|
|
9
|
+
var _global_styling = require("../../global_styling");
|
|
10
|
+
/*
|
|
11
|
+
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
12
|
+
* or more contributor license agreements. Licensed under the Elastic License
|
|
13
|
+
* 2.0 and the Server Side Public License, v 1; you may not use this file except
|
|
14
|
+
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
|
15
|
+
* Side Public License, v 1.
|
|
16
|
+
*/
|
|
17
|
+
|
|
18
|
+
var euiFilterSelectItemStyles = function euiFilterSelectItemStyles(euiThemeContext) {
|
|
19
|
+
var euiTheme = euiThemeContext.euiTheme;
|
|
20
|
+
var focusStyles = "\n color: ".concat(euiTheme.colors.primary, ";\n background-color: ").concat(euiTheme.focus.backgroundColor, ";\n outline-offset: -").concat(euiTheme.focus.width, ";\n text-decoration: underline;\n\n &:disabled {\n background-color: ").concat((0, _services.transparentize)(euiTheme.colors.disabled, 0.1), ";\n }\n ");
|
|
21
|
+
return {
|
|
22
|
+
euiFilterSelectItem: /*#__PURE__*/(0, _react.css)("display:block;", (0, _global_styling.logicalCSS)('width', '100%'), " ", (0, _global_styling.logicalShorthandCSS)('padding', "".concat(euiTheme.size.xs, " ").concat(euiTheme.size.m)), " ", (0, _global_styling.euiFontSize)(euiThemeContext, 's'), " ", (0, _global_styling.logicalTextAlignCSS)('left'), " color:", euiTheme.colors.text, ";", (0, _global_styling.logicalCSS)('border-bottom', "".concat(euiTheme.border.width.thin, " solid ").concat(euiTheme.colors.lightestShade)), " &:hover{cursor:pointer;text-decoration:underline;}&:focus{", focusStyles, ";}&:disabled{cursor:not-allowed;text-decoration:none;color:", euiTheme.colors.disabledText, ";};label:euiFilterSelectItem;"),
|
|
23
|
+
isFocused: /*#__PURE__*/(0, _react.css)(focusStyles, ";;label:isFocused;")
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
exports.euiFilterSelectItemStyles = euiFilterSelectItemStyles;
|
|
@@ -76,6 +76,7 @@ var EuiRangeHighlight = function EuiRangeHighlight(_ref) {
|
|
|
76
76
|
css: cssStyles,
|
|
77
77
|
onClick: onClick
|
|
78
78
|
}, (levels && levels.length === 0 || !levels) && (0, _react2.jsx)("div", {
|
|
79
|
+
"data-test-subj": "euiRangeHighlightProgress",
|
|
79
80
|
className: "euiRangeHighlight__progress",
|
|
80
81
|
css: cssProgressStyles,
|
|
81
82
|
style: progressStyle
|
|
@@ -35,7 +35,7 @@ var highlight = function highlight(searchSubject, searchValue, isStrict, highlig
|
|
|
35
35
|
var end = chunk.end,
|
|
36
36
|
highlight = chunk.highlight,
|
|
37
37
|
start = chunk.start;
|
|
38
|
-
var value = searchSubject.
|
|
38
|
+
var value = searchSubject.substring(start, end);
|
|
39
39
|
if (highlight) {
|
|
40
40
|
return (0, _react2.jsx)(_mark.EuiMark, {
|
|
41
41
|
key: start,
|
|
@@ -51,9 +51,9 @@ var highlight = function highlight(searchSubject, searchValue, isStrict, highlig
|
|
|
51
51
|
if (indexOfMatch === -1) {
|
|
52
52
|
return searchSubject;
|
|
53
53
|
}
|
|
54
|
-
var preMatch = searchSubject.
|
|
55
|
-
var match = searchSubject.
|
|
56
|
-
var postMatch = searchSubject.
|
|
54
|
+
var preMatch = searchSubject.substring(0, indexOfMatch);
|
|
55
|
+
var match = searchSubject.substring(indexOfMatch, indexOfMatch + searchValue.length);
|
|
56
|
+
var postMatch = searchSubject.substring(indexOfMatch + searchValue.length);
|
|
57
57
|
return (0, _react2.jsx)(_react.Fragment, null, preMatch, (0, _react2.jsx)(_mark.EuiMark, {
|
|
58
58
|
hasScreenReaderHelpText: hasScreenReaderHelpText
|
|
59
59
|
}, match), postMatch);
|
|
@@ -157,6 +157,17 @@ Object.keys(_collapsible_nav).forEach(function (key) {
|
|
|
157
157
|
}
|
|
158
158
|
});
|
|
159
159
|
});
|
|
160
|
+
var _collapsible_nav_beta = require("./collapsible_nav_beta");
|
|
161
|
+
Object.keys(_collapsible_nav_beta).forEach(function (key) {
|
|
162
|
+
if (key === "default" || key === "__esModule") return;
|
|
163
|
+
if (key in exports && exports[key] === _collapsible_nav_beta[key]) return;
|
|
164
|
+
Object.defineProperty(exports, key, {
|
|
165
|
+
enumerable: true,
|
|
166
|
+
get: function get() {
|
|
167
|
+
return _collapsible_nav_beta[key];
|
|
168
|
+
}
|
|
169
|
+
});
|
|
170
|
+
});
|
|
160
171
|
var _color_picker = require("./color_picker");
|
|
161
172
|
Object.keys(_color_picker).forEach(function (key) {
|
|
162
173
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -271,7 +271,8 @@ var EuiInlineEditForm = function EuiInlineEditForm(_ref) {
|
|
|
271
271
|
size: sizes.buttonSize,
|
|
272
272
|
"data-test-subj": "euiInlineReadModeButton",
|
|
273
273
|
disabled: isReadOnly,
|
|
274
|
-
css: readModeCssStyles
|
|
274
|
+
css: readModeCssStyles,
|
|
275
|
+
title: readModeValue || placeholder
|
|
275
276
|
}, readModeProps, {
|
|
276
277
|
buttonRef: setReadModeRefs,
|
|
277
278
|
"aria-describedby": (0, _classnames.default)(readModeDescribedById, readModeProps === null || readModeProps === void 0 ? void 0 : readModeProps['aria-describedby']),
|
|
@@ -159,8 +159,8 @@ var EuiMarkdownEditor = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref)
|
|
|
159
159
|
var isPreviewing = viewMode === _markdown_modes.MODE_VIEWING;
|
|
160
160
|
var isEditing = viewMode === _markdown_modes.MODE_EDITING;
|
|
161
161
|
var replaceNode = (0, _react.useCallback)(function (position, next) {
|
|
162
|
-
var leading = value.
|
|
163
|
-
var trailing = value.
|
|
162
|
+
var leading = value.substring(0, position.start.offset);
|
|
163
|
+
var trailing = value.substring(position.end.offset);
|
|
164
164
|
_onChange("".concat(leading).concat(next).concat(trailing));
|
|
165
165
|
}, [value, _onChange]);
|
|
166
166
|
var contextValue = (0, _react.useMemo)(function () {
|
|
@@ -5,6 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.focus = void 0;
|
|
7
7
|
var _utils = require("../../../../services/theme/utils");
|
|
8
|
+
var _manipulation = require("../../../../services/color/manipulation");
|
|
8
9
|
var _size = require("../../../../global_styling/functions/size");
|
|
9
10
|
/*
|
|
10
11
|
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
@@ -14,23 +15,19 @@ var _size = require("../../../../global_styling/functions/size");
|
|
|
14
15
|
* Side Public License, v 1.
|
|
15
16
|
*/
|
|
16
17
|
|
|
17
|
-
/**
|
|
18
|
-
* NOTE: These were quick conversions of their Sass counterparts.
|
|
19
|
-
* The commented out keys have not been established as necessary yet.
|
|
20
|
-
*/
|
|
21
|
-
|
|
22
18
|
var focus = {
|
|
19
|
+
// Focus ring
|
|
23
20
|
color: 'currentColor',
|
|
24
|
-
width: (0, _utils.computed)((0, _size.sizeToPixel)(0.125))
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
21
|
+
width: (0, _utils.computed)((0, _size.sizeToPixel)(0.125)),
|
|
22
|
+
// Focus background
|
|
23
|
+
transparency: {
|
|
24
|
+
LIGHT: 0.1,
|
|
25
|
+
DARK: 0.2
|
|
26
|
+
},
|
|
27
|
+
backgroundColor: (0, _utils.computed)(function (_ref) {
|
|
28
|
+
var colors = _ref.colors,
|
|
29
|
+
focus = _ref.focus;
|
|
30
|
+
return (0, _manipulation.transparentize)(colors.primary, focus.transparency);
|
|
31
|
+
})
|
|
35
32
|
};
|
|
36
33
|
exports.focus = focus;
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
.euiFilterSelectItem {
|
|
2
|
-
@include euiFontSizeS;
|
|
3
|
-
@include euiInteractiveStates;
|
|
4
|
-
|
|
5
|
-
padding: $euiSizeXS $euiSizeM;
|
|
6
|
-
display: block; // Necessary to make sure it doesn't force the whole popover to be too wide
|
|
7
|
-
width: 100%;
|
|
8
|
-
text-align: left;
|
|
9
|
-
color: $euiTextColor;
|
|
10
|
-
border-bottom: $euiBorderThin;
|
|
11
|
-
border-color: darken($euiColorLightestShade, 2%);
|
|
12
|
-
outline-offset: -$euiFocusRingSize;
|
|
13
|
-
|
|
14
|
-
&:focus,
|
|
15
|
-
&-isFocused {
|
|
16
|
-
@include euiFocusBackground;
|
|
17
|
-
color: $euiColorPrimary;
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
.euiFilterSelectItem__content {
|
|
22
|
-
@include euiTextTruncate;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
.euiFilterSelect__items {
|
|
26
|
-
@include euiScrollBar;
|
|
27
|
-
|
|
28
|
-
overflow-y: auto;
|
|
29
|
-
max-height: $euiSize * 30;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
.euiFilterSelect__note {
|
|
33
|
-
height: $euiSize * 4;
|
|
34
|
-
text-align: center;
|
|
35
|
-
display: flex;
|
|
36
|
-
align-items: center;
|
|
37
|
-
justify-content: space-around;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
.euiFilterSelect__noteContent {
|
|
41
|
-
color: $euiColorDarkShade;
|
|
42
|
-
font-size: $euiFontSizeS;
|
|
43
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
@import 'filter_select_item';
|