@elastic/eui 71.0.0 → 72.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/README.md +0 -7
- package/dist/eui_theme_dark.css +7747 -5854
- package/dist/eui_theme_dark.min.css +1 -1
- package/dist/eui_theme_light.css +7737 -5844
- package/dist/eui_theme_light.min.css +1 -1
- package/es/components/datagrid/data_grid.a11y.js +251 -0
- package/es/components/date_picker/auto_refresh/refresh_interval.js +3 -1
- package/es/components/date_picker/date_picker.a11y.js +83 -0
- package/es/components/date_picker/super_date_picker/quick_select_popover/commonly_used_time_ranges.js +5 -2
- package/es/components/date_picker/super_date_picker/quick_select_popover/quick_select.js +3 -1
- package/es/components/date_picker/super_date_picker/quick_select_popover/quick_select_popover.js +160 -173
- package/es/components/date_picker/super_date_picker/quick_select_popover/recently_used.js +5 -2
- package/es/components/date_picker/super_date_picker/super_date_picker.js +16 -0
- package/es/components/delay_hide/delay_hide.a11y.js +106 -0
- package/es/components/delay_render/delay_render.a11y.js +106 -0
- package/es/components/empty_prompt/empty_prompt.a11y.js +63 -0
- package/es/components/error_boundary/error_boundary.a11y.js +67 -0
- package/es/components/error_boundary/error_boundary.js +45 -27
- package/es/components/expression/expression.a11y.js +254 -0
- package/es/components/filter_group/filter_group.a11y.js +281 -0
- package/es/components/focus_trap/focus_trap.a11y.js +131 -0
- package/es/components/form/file_picker/file_picker.js +1 -0
- package/es/components/header/header.a11y.js +374 -0
- package/es/components/icon/icon_ML.a11y.js +33 -0
- package/es/components/icon/icon_apps.a11y.js +33 -0
- package/es/components/icon/icon_editor.a11y.js +33 -0
- package/es/components/icon/icon_elastic.a11y.js +33 -0
- package/es/components/icon/icon_glyphs.a11y.js +33 -0
- package/es/components/icon/icon_tokens.a11y.js +33 -0
- package/es/components/markdown_editor/plugins/markdown_default_plugins/parsing_plugins.js +1 -1
- package/es/components/page/page_side_bar/page_side_bar.js +3 -0
- package/es/components/page/page_template.js +1 -15
- package/es/components/selectable/selectable.js +4 -3
- package/es/components/selectable/selectable_list/selectable_list.js +17 -5
- package/es/components/tabs/tab.js +7 -17
- package/es/components/tabs/tabbed_content/tabbed_content.js +0 -16
- package/es/components/tabs/tabs.js +7 -11
- package/es/components/tabs/tabs_context.js +13 -0
- package/eui.d.ts +60 -43
- package/i18ntokens.json +34 -18
- package/lib/components/datagrid/data_grid.a11y.js +255 -0
- package/lib/components/date_picker/auto_refresh/refresh_interval.js +3 -1
- package/lib/components/date_picker/date_picker.a11y.js +89 -0
- package/lib/components/date_picker/super_date_picker/quick_select_popover/commonly_used_time_ranges.js +5 -2
- package/lib/components/date_picker/super_date_picker/quick_select_popover/quick_select.js +3 -1
- package/lib/components/date_picker/super_date_picker/quick_select_popover/quick_select_popover.js +155 -168
- package/lib/components/date_picker/super_date_picker/quick_select_popover/recently_used.js +5 -2
- package/lib/components/date_picker/super_date_picker/super_date_picker.js +16 -0
- package/lib/components/delay_hide/delay_hide.a11y.js +111 -0
- package/lib/components/delay_render/delay_render.a11y.js +111 -0
- package/lib/components/empty_prompt/empty_prompt.a11y.js +72 -0
- package/lib/components/error_boundary/error_boundary.a11y.js +75 -0
- package/lib/components/error_boundary/error_boundary.js +49 -29
- package/lib/components/expression/expression.a11y.js +262 -0
- package/lib/components/filter_group/filter_group.a11y.js +287 -0
- package/lib/components/focus_trap/focus_trap.a11y.js +140 -0
- package/lib/components/form/file_picker/file_picker.js +1 -0
- package/lib/components/header/header.a11y.js +385 -0
- package/lib/components/icon/icon_ML.a11y.js +40 -0
- package/lib/components/icon/icon_apps.a11y.js +40 -0
- package/lib/components/icon/icon_editor.a11y.js +40 -0
- package/lib/components/icon/icon_elastic.a11y.js +40 -0
- package/lib/components/icon/icon_glyphs.a11y.js +40 -0
- package/lib/components/icon/icon_tokens.a11y.js +40 -0
- package/lib/components/markdown_editor/plugins/markdown_default_plugins/parsing_plugins.js +2 -2
- package/lib/components/page/page_side_bar/page_side_bar.js +4 -0
- package/lib/components/page/page_template.js +1 -15
- package/lib/components/selectable/selectable.js +4 -3
- package/lib/components/selectable/selectable_list/selectable_list.js +17 -5
- package/lib/components/tabs/tab.js +14 -17
- package/lib/components/tabs/tabbed_content/tabbed_content.js +0 -16
- package/lib/components/tabs/tabs.js +8 -14
- package/lib/components/tabs/tabs_context.js +23 -0
- package/optimize/es/components/datagrid/data_grid.a11y.js +234 -0
- package/optimize/es/components/date_picker/auto_refresh/refresh_interval.js +3 -1
- package/optimize/es/components/date_picker/date_picker.a11y.js +73 -0
- package/optimize/es/components/date_picker/super_date_picker/quick_select_popover/commonly_used_time_ranges.js +5 -2
- package/optimize/es/components/date_picker/super_date_picker/quick_select_popover/quick_select.js +3 -1
- package/optimize/es/components/date_picker/super_date_picker/quick_select_popover/quick_select_popover.js +145 -169
- package/optimize/es/components/date_picker/super_date_picker/quick_select_popover/recently_used.js +5 -2
- package/optimize/es/components/date_picker/super_date_picker/super_date_picker.js +2 -0
- package/optimize/es/components/delay_hide/delay_hide.a11y.js +96 -0
- package/optimize/es/components/delay_render/delay_render.a11y.js +96 -0
- package/optimize/es/components/empty_prompt/empty_prompt.a11y.js +63 -0
- package/optimize/es/components/error_boundary/error_boundary.a11y.js +67 -0
- package/optimize/es/components/error_boundary/error_boundary.js +37 -26
- package/optimize/es/components/expression/expression.a11y.js +243 -0
- package/optimize/es/components/filter_group/filter_group.a11y.js +271 -0
- package/optimize/es/components/focus_trap/focus_trap.a11y.js +120 -0
- package/optimize/es/components/form/file_picker/file_picker.js +1 -0
- package/optimize/es/components/header/header.a11y.js +364 -0
- package/optimize/es/components/icon/icon_ML.a11y.js +33 -0
- package/optimize/es/components/icon/icon_apps.a11y.js +33 -0
- package/optimize/es/components/icon/icon_editor.a11y.js +33 -0
- package/optimize/es/components/icon/icon_elastic.a11y.js +33 -0
- package/optimize/es/components/icon/icon_glyphs.a11y.js +33 -0
- package/optimize/es/components/icon/icon_tokens.a11y.js +33 -0
- package/optimize/es/components/markdown_editor/plugins/markdown_default_plugins/parsing_plugins.js +1 -1
- package/optimize/es/components/page/page_side_bar/page_side_bar.js +3 -0
- package/optimize/es/components/selectable/selectable.js +2 -2
- package/optimize/es/components/selectable/selectable_list/selectable_list.js +15 -4
- package/optimize/es/components/tabs/tab.js +7 -5
- package/optimize/es/components/tabs/tabs.js +7 -11
- package/optimize/es/components/tabs/tabs_context.js +13 -0
- package/optimize/lib/components/datagrid/data_grid.a11y.js +248 -0
- package/optimize/lib/components/date_picker/auto_refresh/refresh_interval.js +3 -1
- package/optimize/lib/components/date_picker/date_picker.a11y.js +87 -0
- package/optimize/lib/components/date_picker/super_date_picker/quick_select_popover/commonly_used_time_ranges.js +5 -2
- package/optimize/lib/components/date_picker/super_date_picker/quick_select_popover/quick_select.js +3 -1
- package/optimize/lib/components/date_picker/super_date_picker/quick_select_popover/quick_select_popover.js +146 -167
- package/optimize/lib/components/date_picker/super_date_picker/quick_select_popover/recently_used.js +5 -2
- package/optimize/lib/components/date_picker/super_date_picker/super_date_picker.js +2 -0
- package/optimize/lib/components/delay_hide/delay_hide.a11y.js +111 -0
- package/optimize/lib/components/delay_render/delay_render.a11y.js +111 -0
- package/optimize/lib/components/empty_prompt/empty_prompt.a11y.js +72 -0
- package/optimize/lib/components/error_boundary/error_boundary.a11y.js +75 -0
- package/optimize/lib/components/error_boundary/error_boundary.js +41 -28
- package/optimize/lib/components/expression/expression.a11y.js +254 -0
- package/optimize/lib/components/filter_group/filter_group.a11y.js +287 -0
- package/optimize/lib/components/focus_trap/focus_trap.a11y.js +140 -0
- package/optimize/lib/components/form/file_picker/file_picker.js +1 -0
- package/optimize/lib/components/header/header.a11y.js +385 -0
- package/optimize/lib/components/icon/icon_ML.a11y.js +40 -0
- package/optimize/lib/components/icon/icon_apps.a11y.js +40 -0
- package/optimize/lib/components/icon/icon_editor.a11y.js +40 -0
- package/optimize/lib/components/icon/icon_elastic.a11y.js +40 -0
- package/optimize/lib/components/icon/icon_glyphs.a11y.js +40 -0
- package/optimize/lib/components/icon/icon_tokens.a11y.js +40 -0
- package/optimize/lib/components/markdown_editor/plugins/markdown_default_plugins/parsing_plugins.js +2 -2
- package/optimize/lib/components/page/page_side_bar/page_side_bar.js +4 -0
- package/optimize/lib/components/selectable/selectable.js +2 -2
- package/optimize/lib/components/selectable/selectable_list/selectable_list.js +15 -4
- package/optimize/lib/components/tabs/tab.js +15 -5
- package/optimize/lib/components/tabs/tabs.js +8 -14
- package/optimize/lib/components/tabs/tabs_context.js +23 -0
- package/package.json +14 -19
- package/src/components/basic_table/_basic_table.scss +1 -4
- package/src/components/button/button_empty/_button_empty.scss +2 -4
- package/src/components/button/button_group/_button_group.scss +1 -1
- package/src/components/button/button_group/_button_group_button.scss +3 -4
- package/src/components/button/button_icon/_button_icon.scss +0 -3
- package/src/components/collapsible_nav/_collapsible_nav.scss +1 -1
- package/src/components/collapsible_nav/collapsible_nav_group/_collapsible_nav_group.scss +1 -1
- package/src/components/color_picker/_color_picker.scss +3 -2
- package/src/components/color_picker/_hue.scss +7 -7
- package/src/components/color_picker/_saturation.scss +1 -1
- package/src/components/color_picker/color_palette_display/_mixins.scss +1 -1
- package/src/components/color_picker/color_stops/_color_stops.scss +2 -3
- package/src/components/combo_box/_combo_box.scss +7 -6
- package/src/components/combo_box/combo_box_input/_combo_box_input.scss +2 -1
- package/src/components/combo_box/combo_box_input/_combo_box_placeholder.scss +1 -1
- package/src/components/combo_box/combo_box_options_list/_combo_box_options_list.scss +2 -3
- package/src/components/control_bar/_variables.scss +0 -1
- package/src/components/datagrid/_data_grid_data_row.scss +4 -5
- package/src/components/datagrid/_mixins.scss +1 -1
- package/src/components/datagrid/body/_data_grid_footer_row.scss +2 -1
- package/src/components/datagrid/body/header/_data_grid_column_resizer.scss +3 -4
- package/src/components/datagrid/body/header/_data_grid_header_row.scss +1 -1
- package/src/components/datagrid/controls/_data_grid_column_sorting.scss +1 -2
- package/src/components/date_picker/_date_picker_range.scss +1 -1
- package/src/components/date_picker/super_date_picker/_super_date_picker.scss +1 -4
- package/src/components/date_picker/super_date_picker/quick_select_popover/_quick_select_popover.scss +15 -1
- package/src/components/drag_and_drop/_draggable.scss +3 -5
- package/src/components/drag_and_drop/_droppable.scss +1 -1
- package/src/components/empty_prompt/_empty_prompt.scss +1 -1
- package/src/components/filter_group/_filter_group.scss +2 -2
- package/src/components/filter_group/_filter_select_item.scss +0 -1
- package/src/components/form/checkbox/_checkbox.scss +5 -3
- package/src/components/form/described_form_group/_described_form_group.scss +0 -1
- package/src/components/form/field_password/_field_password.scss +1 -1
- package/src/components/form/field_search/_field_search.scss +1 -1
- package/src/components/form/file_picker/_file_picker.scss +15 -16
- package/src/components/form/form_control_layout/_form_control_layout.scss +6 -7
- package/src/components/form/form_control_layout/_form_control_layout_delimited.scss +4 -6
- package/src/components/form/form_row/_form_row.scss +3 -0
- package/src/components/form/radio/_radio.scss +5 -3
- package/src/components/form/select/_select.scss +1 -1
- package/src/components/form/switch/_switch.scss +3 -1
- package/src/components/header/_mixins.scss +1 -1
- package/src/components/header/header_section/_header_section_item.scss +4 -4
- package/src/components/header/header_section/_header_section_item_button.scss +0 -1
- package/src/components/key_pad_menu/_key_pad_menu_item.scss +2 -7
- package/src/components/markdown_editor/_markdown_editor_drop_zone.scss +4 -4
- package/src/components/markdown_editor/_markdown_editor_footer.scss +1 -1
- package/src/components/markdown_editor/_markdown_editor_text_area.scss +2 -3
- package/src/components/markdown_editor/_markdown_format.scss +4 -2
- package/src/components/notification/_notification_event.scss +2 -2
- package/src/components/page/page_content/_page_content_body.scss +0 -1
- package/src/components/page/page_content/_page_content_header_section.scss +0 -1
- package/src/components/page/page_side_bar/_page_side_bar.scss +0 -1
- package/src/components/panel/split_panel/_split_panel.scss +2 -2
- package/src/components/resizable_container/_resizable_button.scss +31 -31
- package/src/components/resizable_container/_resizable_collapse_button.scss +9 -9
- package/src/components/selectable/selectable_templates/_selectable_template_sitewide_option.scss +1 -1
- package/src/components/side_nav/_mixins.scss +1 -1
- package/src/components/side_nav/_side_nav.scss +2 -1
- package/src/components/side_nav/_side_nav_item.scss +2 -3
- package/src/components/steps/_steps.scss +2 -1
- package/src/components/suggest/_suggest_input.scss +1 -1
- package/src/components/suggest/_suggest_item.scss +4 -3
- package/src/components/table/_responsive.scss +5 -3
- package/src/components/table/_table.scss +2 -4
- package/src/components/table/mobile/_mobile.scss +0 -2
- package/src/components/tree_view/tree_view.scss +2 -2
- package/src/global_styling/mixins/_form.scss +7 -18
- package/src/global_styling/mixins/_header.scss +2 -2
- package/src/global_styling/mixins/_helpers.scss +1 -2
- package/src/global_styling/mixins/_icons.scss +1 -1
- package/src/global_styling/mixins/_range.scss +4 -8
- package/src/global_styling/mixins/_responsive.scss +3 -8
- package/src/global_styling/mixins/_shadow.scss +5 -9
- package/src/global_styling/mixins/_states.scss +2 -2
- package/src/global_styling/mixins/_typography.scss +16 -19
- package/src/global_styling/variables/_colors_vis.scss +1 -1
- package/src/global_styling/variables/_typography.scss +1 -3
- package/src/themes/amsterdam/_colors_dark.scss +2 -1
- package/src/themes/amsterdam/_colors_light.scss +2 -0
- package/src/themes/amsterdam/global_styling/mixins/_link.scss +1 -1
- package/src/themes/amsterdam/global_styling/mixins/_states.scss +0 -1
- package/src/themes/amsterdam/global_styling/mixins/_typography.scss +1 -2
- package/src/themes/amsterdam/global_styling/react_date_picker/_date_picker_days.scss +0 -1
- package/src/themes/amsterdam/global_styling/react_date_picker/_date_picker_month_year.scss +0 -1
- package/src/themes/amsterdam/global_styling/react_date_picker/_date_picker_times.scss +3 -4
- package/src/themes/amsterdam/global_styling/react_date_picker/_mixins.scss +0 -1
- package/src/themes/amsterdam/global_styling/variables/_typography.scss +1 -2
- package/src/themes/amsterdam/overrides/_color_stops.scss +4 -5
- package/src/themes/amsterdam/overrides/_combo_box.scss +3 -0
- package/src/themes/amsterdam/overrides/_form_control_layout.scss +3 -0
- package/src/themes/amsterdam/overrides/_form_control_layout_delimited.scss +5 -4
- package/src/themes/amsterdam/overrides/_header.scss +2 -2
- package/src/themes/amsterdam/overrides/_hue.scss +6 -6
- package/src/themes/amsterdam/overrides/_key_pad_menu.scss +2 -2
- package/src/themes/amsterdam/overrides/_steps.scss +1 -2
- package/src/themes/legacy/_colors_dark.scss +2 -1
- package/src/themes/legacy/_colors_light.scss +2 -0
- package/src/themes/legacy/reset/_reset.scss +8 -7
- package/test-env/components/datagrid/data_grid.a11y.js +248 -0
- package/test-env/components/date_picker/auto_refresh/refresh_interval.js +3 -1
- package/test-env/components/date_picker/date_picker.a11y.js +87 -0
- package/test-env/components/date_picker/super_date_picker/quick_select_popover/commonly_used_time_ranges.js +5 -2
- package/test-env/components/date_picker/super_date_picker/quick_select_popover/quick_select.js +3 -1
- package/test-env/components/date_picker/super_date_picker/quick_select_popover/quick_select_popover.js +153 -166
- package/test-env/components/date_picker/super_date_picker/quick_select_popover/recently_used.js +5 -2
- package/test-env/components/date_picker/super_date_picker/super_date_picker.js +16 -0
- package/test-env/components/delay_hide/delay_hide.a11y.js +111 -0
- package/test-env/components/delay_render/delay_render.a11y.js +111 -0
- package/test-env/components/empty_prompt/empty_prompt.a11y.js +72 -0
- package/test-env/components/error_boundary/error_boundary.a11y.js +75 -0
- package/test-env/components/error_boundary/error_boundary.js +48 -28
- package/test-env/components/expression/expression.a11y.js +254 -0
- package/test-env/components/filter_group/filter_group.a11y.js +287 -0
- package/test-env/components/focus_trap/focus_trap.a11y.js +140 -0
- package/test-env/components/form/file_picker/file_picker.js +1 -0
- package/test-env/components/header/header.a11y.js +385 -0
- package/test-env/components/icon/icon_ML.a11y.js +40 -0
- package/test-env/components/icon/icon_apps.a11y.js +40 -0
- package/test-env/components/icon/icon_editor.a11y.js +40 -0
- package/test-env/components/icon/icon_elastic.a11y.js +40 -0
- package/test-env/components/icon/icon_glyphs.a11y.js +40 -0
- package/test-env/components/icon/icon_tokens.a11y.js +40 -0
- package/test-env/components/markdown_editor/plugins/markdown_default_plugins/parsing_plugins.js +2 -2
- package/test-env/components/page/page_side_bar/page_side_bar.js +4 -0
- package/test-env/components/page/page_template.js +1 -15
- package/test-env/components/selectable/selectable.js +4 -3
- package/test-env/components/selectable/selectable_list/selectable_list.js +17 -5
- package/test-env/components/tabs/tab.js +15 -17
- package/test-env/components/tabs/tabbed_content/tabbed_content.js +0 -16
- package/test-env/components/tabs/tabs.js +8 -14
- package/test-env/components/tabs/tabs_context.js +23 -0
- package/scripts/postinstall.js +0 -9
|
@@ -261,7 +261,7 @@ var EuiSelectable = /*#__PURE__*/function (_Component) {
|
|
|
261
261
|
isFocused: false
|
|
262
262
|
});
|
|
263
263
|
});
|
|
264
|
-
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "onOptionClick", function (options, event) {
|
|
264
|
+
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "onOptionClick", function (options, event, clickedOption) {
|
|
265
265
|
var _this$props = _this.props,
|
|
266
266
|
isPreFiltered = _this$props.isPreFiltered,
|
|
267
267
|
onChange = _this$props.onChange;
|
|
@@ -273,7 +273,7 @@ var EuiSelectable = /*#__PURE__*/function (_Component) {
|
|
|
273
273
|
});
|
|
274
274
|
|
|
275
275
|
if (onChange) {
|
|
276
|
-
onChange(options, event);
|
|
276
|
+
onChange(options, event, clickedOption);
|
|
277
277
|
}
|
|
278
278
|
});
|
|
279
279
|
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "scrollToItem", function (index, align) {
|
|
@@ -223,6 +223,9 @@ var EuiSelectableList = /*#__PURE__*/function (_Component) {
|
|
|
223
223
|
onOptionClick = _this$props4.onOptionClick,
|
|
224
224
|
options = _this$props4.options,
|
|
225
225
|
singleSelection = _this$props4.singleSelection;
|
|
226
|
+
|
|
227
|
+
var changedOption = _objectSpread({}, addedOption);
|
|
228
|
+
|
|
226
229
|
var updatedOptions = options.map(function (option) {
|
|
227
230
|
// if singleSelection is enabled, uncheck any selected option(s)
|
|
228
231
|
var updatedOption = _objectSpread({}, option);
|
|
@@ -234,43 +237,51 @@ var EuiSelectableList = /*#__PURE__*/function (_Component) {
|
|
|
234
237
|
|
|
235
238
|
if (option === addedOption) {
|
|
236
239
|
updatedOption.checked = 'on';
|
|
240
|
+
changedOption = updatedOption;
|
|
237
241
|
}
|
|
238
242
|
|
|
239
243
|
return updatedOption;
|
|
240
244
|
});
|
|
241
|
-
onOptionClick(updatedOptions, event);
|
|
245
|
+
onOptionClick(updatedOptions, event, changedOption);
|
|
242
246
|
});
|
|
243
247
|
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "onRemoveOption", function (removedOption, event) {
|
|
244
248
|
var _this$props5 = _this.props,
|
|
245
249
|
onOptionClick = _this$props5.onOptionClick,
|
|
246
250
|
singleSelection = _this$props5.singleSelection,
|
|
247
251
|
options = _this$props5.options;
|
|
252
|
+
|
|
253
|
+
var changedOption = _objectSpread({}, removedOption);
|
|
254
|
+
|
|
248
255
|
var updatedOptions = options.map(function (option) {
|
|
249
256
|
var updatedOption = _objectSpread({}, option);
|
|
250
257
|
|
|
251
258
|
if (option === removedOption && singleSelection !== 'always') {
|
|
252
259
|
delete updatedOption.checked;
|
|
260
|
+
changedOption = updatedOption;
|
|
253
261
|
}
|
|
254
262
|
|
|
255
263
|
return updatedOption;
|
|
256
264
|
});
|
|
257
|
-
onOptionClick(updatedOptions, event);
|
|
265
|
+
onOptionClick(updatedOptions, event, changedOption);
|
|
258
266
|
});
|
|
259
267
|
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "onExcludeOption", function (excludedOption, event) {
|
|
260
268
|
var _this$props6 = _this.props,
|
|
261
269
|
onOptionClick = _this$props6.onOptionClick,
|
|
262
270
|
options = _this$props6.options;
|
|
263
|
-
|
|
271
|
+
|
|
272
|
+
var changedOption = _objectSpread({}, excludedOption);
|
|
273
|
+
|
|
264
274
|
var updatedOptions = options.map(function (option) {
|
|
265
275
|
var updatedOption = _objectSpread({}, option);
|
|
266
276
|
|
|
267
277
|
if (option === excludedOption) {
|
|
268
278
|
updatedOption.checked = 'off';
|
|
279
|
+
changedOption = updatedOption;
|
|
269
280
|
}
|
|
270
281
|
|
|
271
282
|
return updatedOption;
|
|
272
283
|
});
|
|
273
|
-
onOptionClick(updatedOptions, event);
|
|
284
|
+
onOptionClick(updatedOptions, event, changedOption);
|
|
274
285
|
});
|
|
275
286
|
return _this;
|
|
276
287
|
}
|
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
4
|
|
|
5
|
+
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
6
|
+
|
|
5
7
|
Object.defineProperty(exports, "__esModule", {
|
|
6
8
|
value: true
|
|
7
9
|
});
|
|
@@ -11,7 +13,7 @@ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends")
|
|
|
11
13
|
|
|
12
14
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
13
15
|
|
|
14
|
-
var _react =
|
|
16
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
15
17
|
|
|
16
18
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
17
19
|
|
|
@@ -21,9 +23,15 @@ var _href_validator = require("../../services/security/href_validator");
|
|
|
21
23
|
|
|
22
24
|
var _tab = require("./tab.styles");
|
|
23
25
|
|
|
26
|
+
var _tabs_context = require("./tabs_context");
|
|
27
|
+
|
|
24
28
|
var _react2 = require("@emotion/react");
|
|
25
29
|
|
|
26
|
-
var _excluded = ["isSelected", "children", "className", "disabled", "href", "target", "rel", "prepend", "append"
|
|
30
|
+
var _excluded = ["isSelected", "children", "className", "disabled", "href", "target", "rel", "prepend", "append"];
|
|
31
|
+
|
|
32
|
+
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); }
|
|
33
|
+
|
|
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; }
|
|
27
35
|
|
|
28
36
|
var EuiTab = function EuiTab(_ref) {
|
|
29
37
|
var isSelected = _ref.isSelected,
|
|
@@ -35,10 +43,12 @@ var EuiTab = function EuiTab(_ref) {
|
|
|
35
43
|
rel = _ref.rel,
|
|
36
44
|
prepend = _ref.prepend,
|
|
37
45
|
append = _ref.append,
|
|
38
|
-
_ref$size = _ref.size,
|
|
39
|
-
size = _ref$size === void 0 ? 'm' : _ref$size,
|
|
40
|
-
expand = _ref.expand,
|
|
41
46
|
rest = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
47
|
+
|
|
48
|
+
var _useContext = (0, _react.useContext)(_tabs_context.EuiTabsContext),
|
|
49
|
+
size = _useContext.size,
|
|
50
|
+
expand = _useContext.expand;
|
|
51
|
+
|
|
42
52
|
var euiTheme = (0, _services.useEuiTheme)();
|
|
43
53
|
var isHrefValid = !href || (0, _href_validator.validateHref)(href);
|
|
44
54
|
var disabled = _disabled || !isHrefValid; // Keep CSS classnames for reference
|
|
@@ -19,10 +19,10 @@ var _classnames = _interopRequireDefault(require("classnames"));
|
|
|
19
19
|
|
|
20
20
|
var _services = require("../../services");
|
|
21
21
|
|
|
22
|
-
var _clone_element = require("../../services/theme/clone_element");
|
|
23
|
-
|
|
24
22
|
var _tabs = require("./tabs.styles");
|
|
25
23
|
|
|
24
|
+
var _tabs_context = require("./tabs_context");
|
|
25
|
+
|
|
26
26
|
var _react2 = require("@emotion/react");
|
|
27
27
|
|
|
28
28
|
var _excluded = ["children", "className", "bottomBorder", "expand", "size"];
|
|
@@ -47,24 +47,18 @@ var EuiTabs = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
|
|
47
47
|
var classes = (0, _classnames.default)('euiTabs', className);
|
|
48
48
|
var styles = (0, _tabs.euiTabsStyles)(euiTheme);
|
|
49
49
|
var cssStyles = [styles.euiTabs, styles[size], bottomBorder && styles.bottomBorder];
|
|
50
|
-
|
|
51
|
-
var tabItems = _react.default.Children.map(children, function (child) {
|
|
52
|
-
if ( /*#__PURE__*/_react.default.isValidElement(child)) {
|
|
53
|
-
return (0, _clone_element.cloneElementWithCss)(child, {
|
|
54
|
-
// we're passing the parent `size` and `expand` down to the children
|
|
55
|
-
size: size,
|
|
56
|
-
expand: expand
|
|
57
|
-
});
|
|
58
|
-
}
|
|
59
|
-
});
|
|
60
|
-
|
|
61
50
|
return (0, _react2.jsx)("div", (0, _extends2.default)({
|
|
62
51
|
ref: ref,
|
|
63
52
|
className: classes,
|
|
64
53
|
css: cssStyles
|
|
65
54
|
}, children && {
|
|
66
55
|
role: 'tablist'
|
|
67
|
-
}, rest),
|
|
56
|
+
}, rest), (0, _react2.jsx)(_tabs_context.EuiTabsContext.Provider, {
|
|
57
|
+
value: {
|
|
58
|
+
expand: expand,
|
|
59
|
+
size: size
|
|
60
|
+
}
|
|
61
|
+
}, children));
|
|
68
62
|
});
|
|
69
63
|
exports.EuiTabs = EuiTabs;
|
|
70
64
|
EuiTabs.displayName = 'EuiTabs';
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.contextDefaults = exports.EuiTabsContext = void 0;
|
|
7
|
+
|
|
8
|
+
var _react = require("react");
|
|
9
|
+
|
|
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
|
+
var contextDefaults = {
|
|
18
|
+
expand: false,
|
|
19
|
+
size: 'm'
|
|
20
|
+
};
|
|
21
|
+
exports.contextDefaults = contextDefaults;
|
|
22
|
+
var EuiTabsContext = /*#__PURE__*/(0, _react.createContext)(contextDefaults);
|
|
23
|
+
exports.EuiTabsContext = EuiTabsContext;
|
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": "72.0.0",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"main": "lib",
|
|
7
7
|
"module": "es",
|
|
@@ -26,8 +26,8 @@
|
|
|
26
26
|
"lint-fix": "yarn lint-es-fix",
|
|
27
27
|
"lint-es": "eslint --cache \"{src,src-docs}/**/*.{ts,tsx,js}\" --max-warnings 0",
|
|
28
28
|
"lint-es-fix": "yarn lint-es --fix",
|
|
29
|
-
"lint-sass": "
|
|
30
|
-
"lint-sass-fix": "
|
|
29
|
+
"lint-sass": "yarn stylelint \"**/*.scss\"",
|
|
30
|
+
"lint-sass-fix": "yarn stylelint \"**/*.scss\" --fix",
|
|
31
31
|
"test": "yarn lint && yarn test-unit",
|
|
32
32
|
"test-ci": "yarn test && yarn test-cypress",
|
|
33
33
|
"test-unit": "cross-env NODE_ENV=test jest --config ./scripts/jest/config.json",
|
|
@@ -44,8 +44,7 @@
|
|
|
44
44
|
"start-test-server-and-a11y-test": "cross-env WAIT_ON_TIMEOUT=600000 start-server-and-test start-test-server http-get://localhost:9999 test-a11y",
|
|
45
45
|
"yo-doc": "yo ./generator-eui/app/documentation.js",
|
|
46
46
|
"yo-changelog": "yo ./generator-eui/changelog/index.js",
|
|
47
|
-
"release": "node ./scripts/release.js"
|
|
48
|
-
"postinstall": "node ./scripts/postinstall.js"
|
|
47
|
+
"release": "node ./scripts/release.js"
|
|
49
48
|
},
|
|
50
49
|
"repository": {
|
|
51
50
|
"type": "git",
|
|
@@ -53,10 +52,7 @@
|
|
|
53
52
|
},
|
|
54
53
|
"resolutions": {
|
|
55
54
|
"**/prismjs": "1.27.0",
|
|
56
|
-
"**/
|
|
57
|
-
"**/node-sass": "^6.0.1",
|
|
58
|
-
"**/react": "^17.0.0",
|
|
59
|
-
"**/known-css-properties": "0.24.0"
|
|
55
|
+
"**/react": "^17.0.0"
|
|
60
56
|
},
|
|
61
57
|
"pre-commit": [
|
|
62
58
|
"test-staged"
|
|
@@ -92,7 +88,7 @@
|
|
|
92
88
|
"rehype-stringify": "^8.0.0",
|
|
93
89
|
"remark-breaks": "^2.0.2",
|
|
94
90
|
"remark-emoji": "^2.1.0",
|
|
95
|
-
"remark-parse": "^8.0.
|
|
91
|
+
"remark-parse-no-trim": "^8.0.4",
|
|
96
92
|
"remark-rehype": "^8.0.0",
|
|
97
93
|
"tabbable": "^5.2.1",
|
|
98
94
|
"text-diff": "^1.0.1",
|
|
@@ -117,7 +113,7 @@
|
|
|
117
113
|
"@cypress/code-coverage": "^3.10.0",
|
|
118
114
|
"@cypress/react": "^5.10.3",
|
|
119
115
|
"@cypress/webpack-dev-server": "^1.7.0",
|
|
120
|
-
"@elastic/charts": "^51.
|
|
116
|
+
"@elastic/charts": "^51.2.0",
|
|
121
117
|
"@elastic/datemath": "^5.0.3",
|
|
122
118
|
"@elastic/eslint-config-kibana": "^0.15.0",
|
|
123
119
|
"@emotion/babel-preset-css-prop": "^11.10.0",
|
|
@@ -202,22 +198,20 @@
|
|
|
202
198
|
"glob": "^7.1.6",
|
|
203
199
|
"html-format": "^1.0.1",
|
|
204
200
|
"html-webpack-plugin": "^5.5.0",
|
|
201
|
+
"inquirer": "^9.1.4",
|
|
205
202
|
"jest": "^24.1.0",
|
|
206
203
|
"jest-cli": "^24.1.0",
|
|
207
204
|
"moment": "^2.27.0",
|
|
208
205
|
"moment-timezone": "^0.5.31",
|
|
209
|
-
"node-sass": "^6.0.1",
|
|
210
|
-
"nodegit": "^0.28.0-alpha.10",
|
|
211
206
|
"path": "^0.12.7",
|
|
212
207
|
"pegjs": "^0.10.0",
|
|
208
|
+
"postcss": "^8.4.19",
|
|
213
209
|
"postcss-cli": "^7.1.2",
|
|
214
210
|
"postcss-inline-svg": "^4.1.0",
|
|
215
211
|
"postcss-loader": "^7.0.1",
|
|
216
212
|
"pre-commit": "^1.2.2",
|
|
217
213
|
"prettier": "^2.1.2",
|
|
218
|
-
"prettier-stylelint": "^0.4.2",
|
|
219
214
|
"process": "^0.11.10",
|
|
220
|
-
"prompt": "^1.0.0",
|
|
221
215
|
"prop-types": "^15.6.0",
|
|
222
216
|
"puppeteer": "^5.5.0",
|
|
223
217
|
"raw-loader": "^4.0.1",
|
|
@@ -235,12 +229,14 @@
|
|
|
235
229
|
"redux-thunk": "^2.3.0",
|
|
236
230
|
"resolve": "^1.17.0",
|
|
237
231
|
"rimraf": "^3.0.2",
|
|
238
|
-
"sass
|
|
239
|
-
"sass-
|
|
240
|
-
"sass-loader": "^13.0.2",
|
|
232
|
+
"sass": "^1.56.1",
|
|
233
|
+
"sass-loader": "^13.2.0",
|
|
241
234
|
"shelljs": "^0.8.4",
|
|
242
235
|
"start-server-and-test": "^1.11.3",
|
|
243
236
|
"style-loader": "^3.3.1",
|
|
237
|
+
"stylelint": "^14.15.0",
|
|
238
|
+
"stylelint-config-prettier-scss": "^0.0.1",
|
|
239
|
+
"stylelint-config-standard-scss": "^6.1.0",
|
|
244
240
|
"terser-webpack-plugin": "^5.3.5",
|
|
245
241
|
"typescript": "4.5.3",
|
|
246
242
|
"uglifyjs-webpack-plugin": "^2.2.0",
|
|
@@ -270,7 +266,6 @@
|
|
|
270
266
|
"lib",
|
|
271
267
|
"licenses",
|
|
272
268
|
"optimize",
|
|
273
|
-
"scripts/postinstall.js",
|
|
274
269
|
"src/**/*.scss",
|
|
275
270
|
"test-env",
|
|
276
271
|
"eui.d.ts",
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
.euiBasicTable {
|
|
2
|
-
|
|
3
2
|
&-loading {
|
|
4
3
|
position: relative;
|
|
5
4
|
|
|
@@ -7,7 +6,7 @@
|
|
|
7
6
|
overflow: hidden;
|
|
8
7
|
}
|
|
9
8
|
|
|
10
|
-
tbody
|
|
9
|
+
tbody::before {
|
|
11
10
|
position: absolute;
|
|
12
11
|
content: '';
|
|
13
12
|
width: 100%;
|
|
@@ -16,11 +15,9 @@
|
|
|
16
15
|
animation: euiBasicTableLoading 1000ms linear;
|
|
17
16
|
animation-iteration-count: infinite;
|
|
18
17
|
}
|
|
19
|
-
|
|
20
18
|
}
|
|
21
19
|
}
|
|
22
20
|
|
|
23
|
-
|
|
24
21
|
@keyframes euiBasicTableLoading {
|
|
25
22
|
from {
|
|
26
23
|
left: 0;
|
|
@@ -7,9 +7,8 @@
|
|
|
7
7
|
@include euiButton;
|
|
8
8
|
border-radius: $euiBorderRadius;
|
|
9
9
|
|
|
10
|
-
//
|
|
11
|
-
|
|
12
|
-
animation: none !important; /* 1 */
|
|
10
|
+
transform: none !important; /* 1 */ // stylelint-disable-line declaration-no-important
|
|
11
|
+
animation: none !important; /* 1 */ // stylelint-disable-line declaration-no-important
|
|
13
12
|
transition-timing-function: ease-in; /* 2 */
|
|
14
13
|
transition-duration: $euiAnimSpeedFast; /* 2 */
|
|
15
14
|
|
|
@@ -43,7 +42,6 @@
|
|
|
43
42
|
}
|
|
44
43
|
}
|
|
45
44
|
|
|
46
|
-
|
|
47
45
|
.euiButtonEmpty--flushLeft,
|
|
48
46
|
.euiButtonEmpty--flushRight,
|
|
49
47
|
.euiButtonEmpty--flushBoth {
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
|
|
30
30
|
.euiButtonGroup--compressed {
|
|
31
31
|
.euiButtonGroup__buttons {
|
|
32
|
-
box-shadow: none !important; //
|
|
32
|
+
box-shadow: none !important; // stylelint-disable-line declaration-no-important
|
|
33
33
|
border-radius: $euiFormControlCompressedBorderRadius;
|
|
34
34
|
background-color: $euiFormBackgroundColor;
|
|
35
35
|
height: $euiFormControlCompressedHeight;
|
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
// This file has lots of modifiers and is somewhat nesty by nature
|
|
2
|
-
//
|
|
2
|
+
// stylelint-disable max-nesting-depth
|
|
3
3
|
|
|
4
4
|
.euiButtonGroupButton {
|
|
5
5
|
@include euiButtonBase;
|
|
6
6
|
@include euiFont;
|
|
7
7
|
@include euiFontSize;
|
|
8
8
|
|
|
9
|
-
// sass-lint:disable-block indentation
|
|
10
9
|
transition: background-color $euiAnimSpeedNormal ease-in-out,
|
|
11
|
-
color $euiAnimSpeedNormal ease-in-out;
|
|
10
|
+
color $euiAnimSpeedNormal ease-in-out; // stylelint-disable-line indentation
|
|
12
11
|
|
|
13
12
|
// Allow button to shrink and truncate
|
|
14
13
|
min-width: 0;
|
|
@@ -58,7 +57,7 @@
|
|
|
58
57
|
.euiButtonGroup--medium,
|
|
59
58
|
.euiButtonGroup--small {
|
|
60
59
|
.euiButtonGroupButton {
|
|
61
|
-
border-radius: 0 !important; //
|
|
60
|
+
border-radius: 0 !important; // stylelint-disable-line declaration-no-important
|
|
62
61
|
font-weight: $euiButtonFontWeight;
|
|
63
62
|
|
|
64
63
|
&:focus,
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
// Forcing better contrast of focus state on EuiAccordion toggle icon
|
|
23
23
|
.euiCollapsibleNavGroup__heading:focus .euiAccordion__iconWrapper {
|
|
24
24
|
color: $euiCollapsibleNavGroupDarkHighContrastColor;
|
|
25
|
-
animation-name: euiCollapsibleNavGroupDarkFocusRingAnimate !important; //
|
|
25
|
+
animation-name: euiCollapsibleNavGroupDarkFocusRingAnimate !important; // stylelint-disable-line declaration-no-important
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
.euiCollapsibleNavGroup__title {
|
|
@@ -37,11 +37,11 @@
|
|
|
37
37
|
|
|
38
38
|
.euiColorPicker__popoverPanel--pickerOnly {
|
|
39
39
|
// Override of EuiPanel padding
|
|
40
|
-
//
|
|
40
|
+
// stylelint-disable-next-line declaration-no-important
|
|
41
41
|
padding-bottom: 0 !important;
|
|
42
42
|
}
|
|
43
43
|
|
|
44
|
-
//
|
|
44
|
+
// stylelint-disable declaration-no-important
|
|
45
45
|
.euiColorPicker__input--inGroup {
|
|
46
46
|
height: $euiFormControlLayoutGroupInputHeight !important;
|
|
47
47
|
box-shadow: none !important;
|
|
@@ -52,6 +52,7 @@
|
|
|
52
52
|
border-radius: 0;
|
|
53
53
|
}
|
|
54
54
|
}
|
|
55
|
+
// stylelint-enable declaration-no-important
|
|
55
56
|
|
|
56
57
|
.euiColorPicker__alphaRange {
|
|
57
58
|
.euiRangeInput {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// This wraps the range. It is needed because there is no way to do a linear gradient in ie11 for the track
|
|
2
2
|
.euiHue {
|
|
3
|
-
//
|
|
3
|
+
// stylelint-disable color-no-hex
|
|
4
4
|
background: linear-gradient(to right,
|
|
5
5
|
#FF3232 0%,
|
|
6
6
|
#FFF130 20%,
|
|
@@ -9,14 +9,15 @@
|
|
|
9
9
|
#282CFF 71%,
|
|
10
10
|
#FF28FB 88%,
|
|
11
11
|
#FF0094 100%
|
|
12
|
-
|
|
12
|
+
);
|
|
13
|
+
// stylelint-enable color-no-hex
|
|
13
14
|
height: $euiSizeL;
|
|
14
15
|
margin: $euiSizeXS 0;
|
|
15
16
|
position: relative;
|
|
16
17
|
|
|
17
18
|
// To make our fake range skinny, we add some pseudo borders to fake the height of the gradient
|
|
18
|
-
|
|
19
|
-
|
|
19
|
+
&::before,
|
|
20
|
+
&::after {
|
|
20
21
|
content: '';
|
|
21
22
|
left: 0;
|
|
22
23
|
position: absolute;
|
|
@@ -25,7 +26,7 @@
|
|
|
25
26
|
width: 100%;
|
|
26
27
|
}
|
|
27
28
|
|
|
28
|
-
|
|
29
|
+
&::after {
|
|
29
30
|
bottom: 0;
|
|
30
31
|
}
|
|
31
32
|
}
|
|
@@ -45,11 +46,10 @@
|
|
|
45
46
|
background: transparent;
|
|
46
47
|
z-index: 2; // Needed to place the thumb above the :after pseudo border from .euiRange
|
|
47
48
|
|
|
48
|
-
|
|
49
49
|
// Resets for the range
|
|
50
50
|
|
|
51
51
|
// Disable linter for these very unique vendor controls
|
|
52
|
-
//
|
|
52
|
+
// stylelint-disable property-no-vendor-prefix, selector-no-vendor-prefix
|
|
53
53
|
&::-webkit-slider-thumb {
|
|
54
54
|
-webkit-appearance: none;
|
|
55
55
|
margin-top: 0;
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
|
|
59
59
|
// Background color can potentially have opacity
|
|
60
60
|
// Pseudo element placed below the thumb to prevent the track from showing through
|
|
61
|
-
|
|
61
|
+
&::before {
|
|
62
62
|
content: '';
|
|
63
63
|
display: block;
|
|
64
64
|
position: absolute;
|
|
@@ -72,7 +72,6 @@
|
|
|
72
72
|
}
|
|
73
73
|
|
|
74
74
|
.euiColorStopThumb.euiRangeThumb:not(:disabled) {
|
|
75
|
-
// sass-lint:disable-block no-color-literals, indentation
|
|
76
75
|
top: 0;
|
|
77
76
|
margin-top: 0;
|
|
78
77
|
pointer-events: auto;
|
|
@@ -89,7 +88,7 @@
|
|
|
89
88
|
}
|
|
90
89
|
|
|
91
90
|
.euiColorStopPopover-isLoadingPanel {
|
|
92
|
-
//
|
|
91
|
+
// stylelint-disable-next-line declaration-no-important
|
|
93
92
|
visibility: hidden !important; // Overrides a stateful class on EuiPopover -> EuiPanel
|
|
94
93
|
}
|
|
95
94
|
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
// TODO: Address nesting during Emotion conversion, if possible
|
|
2
|
+
// stylelint-disable max-nesting-depth
|
|
3
|
+
|
|
1
4
|
.euiComboBox {
|
|
2
5
|
@include euiFormControlSize(auto, $includeAlternates: true);
|
|
3
6
|
position: relative;
|
|
@@ -21,7 +24,6 @@
|
|
|
21
24
|
display: flex; /* 1 */
|
|
22
25
|
outline: none; // Fixes an intermittent focus ring in Firefox
|
|
23
26
|
|
|
24
|
-
// sass-lint:disable-block mixins-before-declarations
|
|
25
27
|
// to override the padding added above
|
|
26
28
|
@include euiFormControlLayoutPadding(1); /* 2 */
|
|
27
29
|
|
|
@@ -71,7 +73,7 @@
|
|
|
71
73
|
* 5. Prevent a lot of input from causing the react-input-autosize to overflow the container.
|
|
72
74
|
*/
|
|
73
75
|
.euiComboBox__input {
|
|
74
|
-
//
|
|
76
|
+
// stylelint-disable-next-line declaration-no-important
|
|
75
77
|
display: inline-flex !important; /* 1 */
|
|
76
78
|
height: $euiSizeXL; /* 2 */
|
|
77
79
|
overflow: hidden; /* 5 */
|
|
@@ -107,9 +109,9 @@
|
|
|
107
109
|
|
|
108
110
|
&.euiComboBox-isDisabled {
|
|
109
111
|
.euiComboBox__inputWrap {
|
|
110
|
-
//
|
|
112
|
+
// stylelint-disable property-no-vendor-prefix
|
|
111
113
|
@include euiFormControlDisabledStyle;
|
|
112
|
-
-webkit-text-fill-color: unset; // overrides $euiFormControlDisabledColor because the color doesn't work with multiple background colors
|
|
114
|
+
-webkit-text-fill-color: unset; // overrides $euiFormControlDisabledColor because the color doesn't work with multiple background colors
|
|
113
115
|
}
|
|
114
116
|
|
|
115
117
|
.euiComboBoxPlaceholder,
|
|
@@ -129,7 +131,6 @@
|
|
|
129
131
|
padding-top: 0;
|
|
130
132
|
padding-bottom: 0;
|
|
131
133
|
|
|
132
|
-
// sass-lint:disable-block mixins-before-declarations
|
|
133
134
|
@include euiFormControlLayoutPadding(1, $compressed: true); /* 2 */
|
|
134
135
|
|
|
135
136
|
&.euiComboBox__inputWrap-isClearable {
|
|
@@ -153,7 +154,7 @@
|
|
|
153
154
|
// Overrides the euiFormControlLayout prepend and append height that is 100%
|
|
154
155
|
.euiFormControlLayout__prepend,
|
|
155
156
|
.euiFormControlLayout__append {
|
|
156
|
-
//
|
|
157
|
+
// stylelint-disable-next-line declaration-no-important
|
|
157
158
|
height: auto !important;
|
|
158
159
|
}
|
|
159
160
|
}
|
|
@@ -3,9 +3,10 @@
|
|
|
3
3
|
|
|
4
4
|
// Ensure that no input states are visible on the hidden input
|
|
5
5
|
input {
|
|
6
|
-
//
|
|
6
|
+
// stylelint-disable declaration-no-important
|
|
7
7
|
border: none !important;
|
|
8
8
|
box-shadow: none !important;
|
|
9
9
|
outline: none !important;
|
|
10
|
+
// stylelint-enable declaration-no-important
|
|
10
11
|
}
|
|
11
12
|
}
|
|
@@ -4,12 +4,11 @@
|
|
|
4
4
|
*/
|
|
5
5
|
.euiComboBoxOptionsList {
|
|
6
6
|
// Remove transforms from popover panel
|
|
7
|
-
transform: none !important; //
|
|
7
|
+
transform: none !important; // stylelint-disable-line declaration-no-important
|
|
8
8
|
top: 0;
|
|
9
9
|
|
|
10
10
|
.euiFilterSelectItem__content {
|
|
11
|
-
//
|
|
12
|
-
margin-block: 0 !important;
|
|
11
|
+
margin-block: 0 !important; // stylelint-disable-line declaration-no-important
|
|
13
12
|
}
|
|
14
13
|
}
|
|
15
14
|
|