@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
|
@@ -25,7 +25,7 @@ var _form_control_layout = require("../../form/form_control_layout");
|
|
|
25
25
|
var _num_icons = require("../../form/form_control_layout/_num_icons");
|
|
26
26
|
var _combo_box_pill = require("./combo_box_pill");
|
|
27
27
|
var _react2 = require("@emotion/react");
|
|
28
|
-
var _excluded = ["key", "label", "color", "onClick"];
|
|
28
|
+
var _excluded = ["key", "label", "color", "onClick", "append", "prepend"];
|
|
29
29
|
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); }
|
|
30
30
|
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; }
|
|
31
31
|
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); }; }
|
|
@@ -154,6 +154,8 @@ var EuiComboBoxInput = /*#__PURE__*/function (_Component) {
|
|
|
154
154
|
label = option.label,
|
|
155
155
|
color = option.color,
|
|
156
156
|
onClick = option.onClick,
|
|
157
|
+
append = option.append,
|
|
158
|
+
prepend = option.prepend,
|
|
157
159
|
rest = (0, _objectWithoutProperties2.default)(option, _excluded);
|
|
158
160
|
var pillOnClose = isDisabled || singleSelection || onClick ? undefined : onRemoveOption;
|
|
159
161
|
return (0, _react2.jsx)(_combo_box_pill.EuiComboBoxPill, (0, _extends2.default)({
|
|
@@ -72,6 +72,11 @@ var EuiComboBoxPill = /*#__PURE__*/function (_Component) {
|
|
|
72
72
|
onClick: onClick,
|
|
73
73
|
onClickAriaLabel: onClickAriaLabel
|
|
74
74
|
} : {};
|
|
75
|
+
var content = (0, _react2.jsx)(_react.default.Fragment, null, option.prepend && (0, _react2.jsx)("span", {
|
|
76
|
+
className: "euiComboBoxPill__prepend"
|
|
77
|
+
}, option.prepend), children, option.append && (0, _react2.jsx)("span", {
|
|
78
|
+
className: "euiComboBoxPill__append"
|
|
79
|
+
}, option.append));
|
|
75
80
|
if (onClose) {
|
|
76
81
|
return (0, _react2.jsx)(_i18n.EuiI18n, {
|
|
77
82
|
token: "euiComboBoxPill.removeSelection",
|
|
@@ -83,24 +88,27 @@ var EuiComboBoxPill = /*#__PURE__*/function (_Component) {
|
|
|
83
88
|
return (0, _react2.jsx)(_badge.EuiBadge, (0, _extends2.default)({
|
|
84
89
|
className: classes,
|
|
85
90
|
color: color,
|
|
91
|
+
"data-test-subj": "euiComboBoxPill",
|
|
86
92
|
iconOnClick: _this2.onCloseButtonClick,
|
|
87
93
|
iconOnClickAriaLabel: removeSelection,
|
|
88
94
|
iconSide: "right",
|
|
89
95
|
iconType: "cross",
|
|
90
96
|
title: children
|
|
91
|
-
}, onClickProps, rest),
|
|
97
|
+
}, onClickProps, rest), content);
|
|
92
98
|
});
|
|
93
99
|
}
|
|
94
100
|
if (asPlainText) {
|
|
95
101
|
return (0, _react2.jsx)("span", (0, _extends2.default)({
|
|
96
|
-
className: classes
|
|
97
|
-
|
|
102
|
+
className: classes,
|
|
103
|
+
"data-test-subj": "euiComboBoxPill"
|
|
104
|
+
}, rest), content);
|
|
98
105
|
}
|
|
99
106
|
return (0, _react2.jsx)(_badge.EuiBadge, (0, _extends2.default)({
|
|
100
107
|
className: classes,
|
|
101
108
|
color: color,
|
|
109
|
+
"data-test-subj": "euiComboBoxPill",
|
|
102
110
|
title: children
|
|
103
|
-
}, rest, onClickProps),
|
|
111
|
+
}, rest, onClickProps), content);
|
|
104
112
|
}
|
|
105
113
|
}]);
|
|
106
114
|
return EuiComboBoxPill;
|
|
@@ -28,7 +28,7 @@ var _filter_select_item = require("../../filter_group/filter_select_item");
|
|
|
28
28
|
var _badge = require("../../badge");
|
|
29
29
|
var _popover_panel = require("../../popover/popover_panel");
|
|
30
30
|
var _react2 = require("@emotion/react");
|
|
31
|
-
var _excluded = ["key", "isGroupLabelOption", "label", "value"],
|
|
31
|
+
var _excluded = ["key", "isGroupLabelOption", "label", "value", "prepend", "append"],
|
|
32
32
|
_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"];
|
|
33
33
|
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); }
|
|
34
34
|
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; }
|
|
@@ -101,6 +101,8 @@ var EuiComboBoxOptionsList = /*#__PURE__*/function (_Component) {
|
|
|
101
101
|
isGroupLabelOption = option.isGroupLabelOption,
|
|
102
102
|
label = option.label,
|
|
103
103
|
value = option.value,
|
|
104
|
+
prepend = option.prepend,
|
|
105
|
+
append = option.append,
|
|
104
106
|
rest = (0, _objectWithoutProperties2.default)(option, _excluded);
|
|
105
107
|
var _this$props = _this.props,
|
|
106
108
|
singleSelection = _this$props.singleSelection,
|
|
@@ -139,13 +141,17 @@ var EuiComboBoxOptionsList = /*#__PURE__*/function (_Component) {
|
|
|
139
141
|
title: label
|
|
140
142
|
}, rest), (0, _react2.jsx)("span", {
|
|
141
143
|
className: "euiComboBoxOption__contentWrapper"
|
|
142
|
-
},
|
|
144
|
+
}, prepend && (0, _react2.jsx)("span", {
|
|
145
|
+
className: "euiComboBoxOption__prepend"
|
|
146
|
+
}, prepend), renderOption ? (0, _react2.jsx)("span", {
|
|
143
147
|
className: OPTION_CONTENT_CLASSNAME
|
|
144
148
|
}, renderOption(option, searchValue, 'euiComboBoxOption__renderOption')) : (0, _react2.jsx)(_highlight.EuiHighlight, {
|
|
145
149
|
search: searchValue,
|
|
146
150
|
strict: _this.props.isCaseSensitive,
|
|
147
151
|
className: OPTION_CONTENT_CLASSNAME
|
|
148
|
-
}, label),
|
|
152
|
+
}, label), append && (0, _react2.jsx)("span", {
|
|
153
|
+
className: "euiComboBoxOption__append"
|
|
154
|
+
}, append), optionIsFocused && !optionIsDisabled ? hitEnterBadge : null));
|
|
149
155
|
});
|
|
150
156
|
return _this;
|
|
151
157
|
}
|
|
@@ -57,7 +57,7 @@ var EuiErrorBoundary = /*#__PURE__*/function (_Component) {
|
|
|
57
57
|
var message = error.message,
|
|
58
58
|
stack = error.stack;
|
|
59
59
|
var idx = (stack === null || stack === void 0 ? void 0 : stack.indexOf(message)) || -1;
|
|
60
|
-
var stackStr = idx > -1 ? stack === null || stack === void 0 ? void 0 : stack.
|
|
60
|
+
var stackStr = idx > -1 ? stack === null || stack === void 0 ? void 0 : stack.substring(idx + message.length + 1) : stack;
|
|
61
61
|
var errorMessage = "Error: ".concat(message, "\n").concat(stackStr);
|
|
62
62
|
this.setState({
|
|
63
63
|
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"));
|
|
@@ -17,10 +17,12 @@ var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/ge
|
|
|
17
17
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
18
18
|
var _react = _interopRequireWildcard(require("react"));
|
|
19
19
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
20
|
+
var _services = require("../../services");
|
|
20
21
|
var _flex = require("../flex");
|
|
21
22
|
var _icon = require("../icon");
|
|
23
|
+
var _filter_select_item = require("./filter_select_item.styles");
|
|
22
24
|
var _react2 = require("@emotion/react");
|
|
23
|
-
var _excluded = ["children", "className", "disabled", "checked", "isFocused", "showIcons"];
|
|
25
|
+
var _excluded = ["theme", "children", "className", "disabled", "checked", "isFocused", "showIcons"];
|
|
24
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); }
|
|
25
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; }
|
|
26
28
|
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); }; }
|
|
@@ -45,12 +47,19 @@ var resolveIconAndColor = function resolveIconAndColor(checked) {
|
|
|
45
47
|
color: 'text'
|
|
46
48
|
};
|
|
47
49
|
};
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* TODO: This component should removed in favor of EuiSelectable usage
|
|
53
|
+
* once EuiComboBox has been converted to dogfood EuiSelectable.
|
|
54
|
+
*
|
|
55
|
+
* @deprecated - Use EuiSelectable instead
|
|
56
|
+
*/
|
|
57
|
+
var EuiFilterSelectItemClass = /*#__PURE__*/function (_Component) {
|
|
58
|
+
(0, _inherits2.default)(EuiFilterSelectItemClass, _Component);
|
|
59
|
+
var _super = _createSuper(EuiFilterSelectItemClass);
|
|
60
|
+
function EuiFilterSelectItemClass() {
|
|
52
61
|
var _this;
|
|
53
|
-
(0, _classCallCheck2.default)(this,
|
|
62
|
+
(0, _classCallCheck2.default)(this, EuiFilterSelectItemClass);
|
|
54
63
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
55
64
|
args[_key] = arguments[_key];
|
|
56
65
|
}
|
|
@@ -69,11 +78,12 @@ var EuiFilterSelectItem = /*#__PURE__*/function (_Component) {
|
|
|
69
78
|
});
|
|
70
79
|
return _this;
|
|
71
80
|
}
|
|
72
|
-
(0, _createClass2.default)(
|
|
81
|
+
(0, _createClass2.default)(EuiFilterSelectItemClass, [{
|
|
73
82
|
key: "render",
|
|
74
83
|
value: function render() {
|
|
75
84
|
var _this2 = this;
|
|
76
85
|
var _this$props = this.props,
|
|
86
|
+
theme = _this$props.theme,
|
|
77
87
|
children = _this$props.children,
|
|
78
88
|
className = _this$props.className,
|
|
79
89
|
disabled = _this$props.disabled,
|
|
@@ -81,9 +91,9 @@ var EuiFilterSelectItem = /*#__PURE__*/function (_Component) {
|
|
|
81
91
|
isFocused = _this$props.isFocused,
|
|
82
92
|
showIcons = _this$props.showIcons,
|
|
83
93
|
rest = (0, _objectWithoutProperties2.default)(_this$props, _excluded);
|
|
84
|
-
var
|
|
85
|
-
|
|
86
|
-
|
|
94
|
+
var styles = (0, _filter_select_item.euiFilterSelectItemStyles)(theme);
|
|
95
|
+
var cssStyles = [styles.euiFilterSelectItem, isFocused && styles.isFocused];
|
|
96
|
+
var classes = (0, _classnames.default)('euiFilterSelectItem', className);
|
|
87
97
|
var iconNode;
|
|
88
98
|
if (showIcons) {
|
|
89
99
|
var _resolveIconAndColor = resolveIconAndColor(checked),
|
|
@@ -104,6 +114,7 @@ var EuiFilterSelectItem = /*#__PURE__*/function (_Component) {
|
|
|
104
114
|
type: "button",
|
|
105
115
|
"aria-selected": isFocused,
|
|
106
116
|
className: classes,
|
|
117
|
+
css: cssStyles,
|
|
107
118
|
disabled: disabled,
|
|
108
119
|
"aria-disabled": disabled
|
|
109
120
|
}, rest), (0, _react2.jsx)(_flex.EuiFlexGroup, {
|
|
@@ -112,14 +123,19 @@ var EuiFilterSelectItem = /*#__PURE__*/function (_Component) {
|
|
|
112
123
|
component: "span",
|
|
113
124
|
responsive: false
|
|
114
125
|
}, iconNode, (0, _react2.jsx)(_flex.EuiFlexItem, {
|
|
115
|
-
className: "euiFilterSelectItem__content",
|
|
126
|
+
className: "euiFilterSelectItem__content eui-textTruncate",
|
|
116
127
|
component: "span"
|
|
117
128
|
}, children)));
|
|
118
129
|
}
|
|
119
130
|
}]);
|
|
120
|
-
return
|
|
131
|
+
return EuiFilterSelectItemClass;
|
|
121
132
|
}(_react.Component);
|
|
122
|
-
|
|
123
|
-
|
|
133
|
+
/**
|
|
134
|
+
* @deprecated - Use EuiSelectable instead
|
|
135
|
+
*/
|
|
136
|
+
exports.EuiFilterSelectItemClass = EuiFilterSelectItemClass;
|
|
137
|
+
(0, _defineProperty2.default)(EuiFilterSelectItemClass, "defaultProps", {
|
|
124
138
|
showIcons: true
|
|
125
|
-
});
|
|
139
|
+
});
|
|
140
|
+
var EuiFilterSelectItem = (0, _services.withEuiTheme)(EuiFilterSelectItemClass);
|
|
141
|
+
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;
|
|
@@ -75,6 +75,7 @@ var EuiRangeHighlight = function EuiRangeHighlight(_ref) {
|
|
|
75
75
|
css: cssStyles,
|
|
76
76
|
onClick: onClick
|
|
77
77
|
}, (levels && levels.length === 0 || !levels) && (0, _react2.jsx)("div", {
|
|
78
|
+
"data-test-subj": "euiRangeHighlightProgress",
|
|
78
79
|
className: "euiRangeHighlight__progress",
|
|
79
80
|
css: cssProgressStyles,
|
|
80
81
|
style: progressStyle
|
|
@@ -34,7 +34,7 @@ var highlight = function highlight(searchSubject, searchValue, isStrict, highlig
|
|
|
34
34
|
var end = chunk.end,
|
|
35
35
|
highlight = chunk.highlight,
|
|
36
36
|
start = chunk.start;
|
|
37
|
-
var value = searchSubject.
|
|
37
|
+
var value = searchSubject.substring(start, end);
|
|
38
38
|
if (highlight) {
|
|
39
39
|
return (0, _react2.jsx)(_mark.EuiMark, {
|
|
40
40
|
key: start,
|
|
@@ -50,9 +50,9 @@ var highlight = function highlight(searchSubject, searchValue, isStrict, highlig
|
|
|
50
50
|
if (indexOfMatch === -1) {
|
|
51
51
|
return searchSubject;
|
|
52
52
|
}
|
|
53
|
-
var preMatch = searchSubject.
|
|
54
|
-
var match = searchSubject.
|
|
55
|
-
var postMatch = searchSubject.
|
|
53
|
+
var preMatch = searchSubject.substring(0, indexOfMatch);
|
|
54
|
+
var match = searchSubject.substring(indexOfMatch, indexOfMatch + searchValue.length);
|
|
55
|
+
var postMatch = searchSubject.substring(indexOfMatch + searchValue.length);
|
|
56
56
|
return (0, _react2.jsx)(_react.Fragment, null, preMatch, (0, _react2.jsx)(_mark.EuiMark, {
|
|
57
57
|
hasScreenReaderHelpText: hasScreenReaderHelpText
|
|
58
58
|
}, 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;
|
|
@@ -270,7 +270,8 @@ var EuiInlineEditForm = function EuiInlineEditForm(_ref) {
|
|
|
270
270
|
size: sizes.buttonSize,
|
|
271
271
|
"data-test-subj": "euiInlineReadModeButton",
|
|
272
272
|
disabled: isReadOnly,
|
|
273
|
-
css: readModeCssStyles
|
|
273
|
+
css: readModeCssStyles,
|
|
274
|
+
title: readModeValue || placeholder
|
|
274
275
|
}, readModeProps, {
|
|
275
276
|
buttonRef: setReadModeRefs,
|
|
276
277
|
"aria-describedby": (0, _classnames.default)(readModeDescribedById, readModeProps === null || readModeProps === void 0 ? void 0 : readModeProps['aria-describedby']),
|
|
@@ -158,8 +158,8 @@ var EuiMarkdownEditor = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref)
|
|
|
158
158
|
var isPreviewing = viewMode === _markdown_modes.MODE_VIEWING;
|
|
159
159
|
var isEditing = viewMode === _markdown_modes.MODE_EDITING;
|
|
160
160
|
var replaceNode = (0, _react.useCallback)(function (position, next) {
|
|
161
|
-
var leading = value.
|
|
162
|
-
var trailing = value.
|
|
161
|
+
var leading = value.substring(0, position.start.offset);
|
|
162
|
+
var trailing = value.substring(position.end.offset);
|
|
163
163
|
_onChange("".concat(leading).concat(next).concat(trailing));
|
|
164
164
|
}, [value, _onChange]);
|
|
165
165
|
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;
|
package/package.json
CHANGED
|
@@ -3,8 +3,9 @@
|
|
|
3
3
|
* that make sense in the input wrap.
|
|
4
4
|
*/
|
|
5
5
|
.euiComboBoxPill {
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
$pillHeight: $euiSizeL - 2px;
|
|
7
|
+
height: $pillHeight;
|
|
8
|
+
line-height: $pillHeight - ($euiBorderWidthThin * 2);
|
|
8
9
|
vertical-align: baseline;
|
|
9
10
|
|
|
10
11
|
&,
|
|
@@ -30,6 +31,26 @@
|
|
|
30
31
|
padding: 0;
|
|
31
32
|
color: $euiTextColor;
|
|
32
33
|
vertical-align: middle;
|
|
33
|
-
display: inline-
|
|
34
|
+
display: inline-flex;
|
|
35
|
+
align-items: center;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
&__prepend {
|
|
39
|
+
margin-right: $euiSizeXS;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
&__append {
|
|
43
|
+
margin-left: $euiSizeXS;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
/* Fix append/prepend vertical alignment */
|
|
47
|
+
&--plainText,
|
|
48
|
+
.euiBadge__text {
|
|
49
|
+
display: flex;
|
|
50
|
+
align-items: center;
|
|
51
|
+
|
|
52
|
+
.euiIcon {
|
|
53
|
+
display: block;
|
|
54
|
+
}
|
|
34
55
|
}
|
|
35
56
|
}
|
|
@@ -26,27 +26,47 @@
|
|
|
26
26
|
text-decoration: none;
|
|
27
27
|
}
|
|
28
28
|
}
|
|
29
|
-
}
|
|
30
29
|
|
|
31
|
-
|
|
32
|
-
|
|
30
|
+
&__contentWrapper {
|
|
31
|
+
display: flex;
|
|
32
|
+
align-items: center;
|
|
33
|
+
}
|
|
33
34
|
|
|
34
|
-
|
|
35
|
+
&__content {
|
|
36
|
+
text-overflow: ellipsis;
|
|
37
|
+
overflow: hidden;
|
|
38
|
+
white-space: nowrap;
|
|
35
39
|
flex: 1;
|
|
36
40
|
text-align: left;
|
|
37
|
-
margin-bottom: 0;
|
|
38
41
|
}
|
|
39
42
|
|
|
40
|
-
|
|
41
|
-
|
|
43
|
+
&__emptyStateText {
|
|
44
|
+
flex: 1;
|
|
45
|
+
text-align: left;
|
|
46
|
+
|
|
47
|
+
/* Extra specificity required to override EuiText's <p> styling */
|
|
48
|
+
.euiComboBoxOptionsList__empty & {
|
|
49
|
+
margin-bottom: 0;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
&__enterBadge {
|
|
42
54
|
margin-left: $euiSizeXS;
|
|
43
55
|
}
|
|
44
|
-
}
|
|
45
56
|
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
57
|
+
&__prepend {
|
|
58
|
+
margin-right: $euiSizeS;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
&__append {
|
|
62
|
+
margin-left: $euiSizeS;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
/* Fix vertical alignment of EuiIcons in prepend/append nodes */
|
|
66
|
+
&__prepend,
|
|
67
|
+
&__append {
|
|
68
|
+
.euiIcon {
|
|
69
|
+
display: block;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
52
72
|
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.EuiCollapsibleNavBeta = void 0;
|
|
8
|
+
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
9
|
+
var _react = _interopRequireDefault(require("react"));
|
|
10
|
+
var _services = require("../../services");
|
|
11
|
+
var _collapsible_nav = require("../collapsible_nav/collapsible_nav");
|
|
12
|
+
var _collapsible_nav_beta = require("./collapsible_nav_beta.styles");
|
|
13
|
+
var _react2 = require("@emotion/react");
|
|
14
|
+
/*
|
|
15
|
+
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
16
|
+
* or more contributor license agreements. Licensed under the Elastic License
|
|
17
|
+
* 2.0 and the Server Side Public License, v 1; you may not use this file except
|
|
18
|
+
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
|
19
|
+
* Side Public License, v 1.
|
|
20
|
+
*/
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* TODO: Actual component in a follow-up PR
|
|
24
|
+
*/
|
|
25
|
+
var EuiCollapsibleNavBeta = function EuiCollapsibleNavBeta(props) {
|
|
26
|
+
var euiTheme = (0, _services.useEuiTheme)();
|
|
27
|
+
var styles = (0, _collapsible_nav_beta.euiCollapsibleNavBetaStyles)(euiTheme);
|
|
28
|
+
return (0, _react2.jsx)(_collapsible_nav.EuiCollapsibleNav, (0, _extends2.default)({
|
|
29
|
+
css: styles.euiCollapsibleNavBeta,
|
|
30
|
+
size: 248
|
|
31
|
+
}, props));
|
|
32
|
+
};
|
|
33
|
+
exports.EuiCollapsibleNavBeta = EuiCollapsibleNavBeta;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.euiCollapsibleNavBetaStyles = void 0;
|
|
7
|
+
var _react = require("@emotion/react");
|
|
8
|
+
var _global_styling = require("../../global_styling");
|
|
9
|
+
/*
|
|
10
|
+
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
11
|
+
* or more contributor license agreements. Licensed under the Elastic License
|
|
12
|
+
* 2.0 and the Server Side Public License, v 1; you may not use this file except
|
|
13
|
+
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
|
14
|
+
* Side Public License, v 1.
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
var euiCollapsibleNavBetaStyles = function euiCollapsibleNavBetaStyles(euiThemeContext) {
|
|
18
|
+
var euiTheme = euiThemeContext.euiTheme;
|
|
19
|
+
return {
|
|
20
|
+
euiCollapsibleNavBeta: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('border-top', euiTheme.border.thin), " ", (0, _global_styling.logicalCSS)('border-right', euiTheme.border.thin), " .euiFlyoutFooter{background-color:", euiTheme.colors.emptyShade, ";", (0, _global_styling.logicalCSS)('border-top', euiTheme.border.thin), ";};label:euiCollapsibleNavBeta;")
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
exports.euiCollapsibleNavBetaStyles = euiCollapsibleNavBetaStyles;
|