@elastic/eui 123.5.0 → 123.6.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-icons.json +87 -87
- package/es/components/accessibility/live_announcer/live_announcer.js +1 -1
- package/es/components/badge/badge.js +2 -0
- package/es/components/basic_table/basic_table.a11y.js +1 -1
- package/es/components/basic_table/in_memory_table.a11y.js +1 -1
- package/es/components/basic_table/in_memory_table.js +4 -2
- package/es/components/bottom_bar/bottom_bar.styles.js +2 -2
- package/es/components/breadcrumbs/_breadcrumb_content.styles.js +1 -1
- package/es/components/button/button_display/_button_display_content.js +2 -0
- package/es/components/button/button_group/button_group.js +1 -1
- package/es/components/button/button_group/button_group_button.styles.js +1 -10
- package/es/components/card/card.a11y.js +6 -3
- package/es/components/card/card.js +1 -1
- package/es/components/card/card.styles.js +1 -1
- package/es/components/code/code_block_annotations.js +2 -1
- package/es/components/color_picker/saturation.styles.js +2 -2
- package/es/components/context_menu/context_menu_item.js +4 -1
- package/es/components/datagrid/body/cell/data_grid_cell.js +1 -1
- package/es/components/datagrid/body/data_grid_body_virtualized.js +1 -1
- package/es/components/datagrid/body/footer/data_grid_footer_row.js +1 -1
- package/es/components/datagrid/body/header/column_resizer.styles.js +1 -1
- package/es/components/datagrid/body/header/column_sorting.js +2 -1
- package/es/components/datagrid/body/header/data_grid_header_cell.js +2 -1
- package/es/components/datagrid/body/header/data_grid_header_row.js +1 -1
- package/es/components/datagrid/controls/column_selector.js +3 -2
- package/es/components/datagrid/controls/column_sorting_draggable.js +2 -1
- package/es/components/datagrid/controls/data_grid_toolbar.js +2 -2
- package/es/components/datagrid/controls/data_grid_toolbar.styles.js +1 -1
- package/es/components/datagrid/data_grid.js +1 -1
- package/es/components/datagrid/data_grid.stories.utils.js +1 -1
- package/es/components/datagrid/data_grid.styles.js +4 -1
- package/es/components/datagrid/pagination/data_grid_pagination.styles.js +1 -1
- package/es/components/datagrid/utils/scrolling.js +2 -2
- package/es/components/date_picker/react_date_picker.styles.js +2 -2
- package/es/components/date_picker/super_date_picker/async_interval.js +2 -2
- package/es/components/date_picker/super_date_picker/date_popover/timezone_display.js +2 -1
- package/es/components/empty_prompt/empty_prompt.js +2 -1
- package/es/components/expression/expression.js +4 -1
- package/es/components/facet/facet_button.js +1 -1
- package/es/components/filter_group/filter_group.styles.js +1 -1
- package/es/components/flyout/_flyout_close_button.styles.js +1 -1
- package/es/components/form/checkbox/checkbox_control.js +2 -1
- package/es/components/form/form_control_layout/append_prepend/form_append_prepend.js +4 -2
- package/es/components/form/form_control_layout/form_control_layout.styles.js +10 -1
- package/es/components/form/form_control_layout/form_control_layout_clear_button.js +2 -1
- package/es/components/form/form_control_layout/form_control_layout_icons.js +2 -1
- package/es/components/form/form_control_layout/form_control_layout_icons.styles.js +4 -12
- package/es/components/form/radio/radio.js +2 -0
- package/es/components/form/switch/switch.js +4 -2
- package/es/components/header/header.a11y.js +10 -5
- package/es/components/header/header_links/header_links.js +2 -1
- package/es/components/header/header_section/header_section_item_button.js +2 -1
- package/es/components/health/health.js +2 -1
- package/es/components/i18n/i18n_util.js +1 -1
- package/es/components/icon/icon_ML.a11y.js +4 -3
- package/es/components/icon/icon_apps.a11y.js +4 -3
- package/es/components/icon/icon_elastic.a11y.js +4 -3
- package/es/components/icon/icon_glyphs.a11y.js +5 -3
- package/es/components/icon/icon_tokens.a11y.js +4 -3
- package/es/components/image/image_button.js +2 -1
- package/es/components/image/image_fullscreen_wrapper.js +2 -1
- package/es/components/inline_edit/inline_edit_form.js +2 -2
- package/es/components/key_pad_menu/key_pad_menu.a11y.js +12 -6
- package/es/components/list_group/list_group.js +1 -1
- package/es/components/list_item_layout/_list_item_layout.js +2 -1
- package/es/components/loading/loading_elastic.js +2 -1
- package/es/components/loading/loading_logo.js +2 -1
- package/es/components/loading/loading_logo.styles.js +1 -1
- package/es/components/markdown_editor/plugins/markdown_tooltip/renderer.js +2 -1
- package/es/components/modal/modal.styles.js +1 -1
- package/es/components/outside_click_detector/outside_click_detector.js +3 -3
- package/es/components/popover/popover_arrow/_popover_arrow.styles.js +1 -1
- package/es/components/popover/popover_panel/_popover_panel.styles.js +2 -2
- package/es/components/resizable_container/resizable_button.styles.js +1 -1
- package/es/components/resizable_container/resizable_collapse_button.styles.js +3 -12
- package/es/components/search_bar/filters/field_value_selection_filter.js +2 -2
- package/es/components/search_bar/search_bar.a11y.js +1 -0
- package/es/components/selectable/selectable_list/selectable_list.js +1 -1
- package/es/components/selectable/selectable_list/selectable_list.styles.js +3 -0
- package/es/components/side_nav/side_nav.a11y.js +12 -6
- package/es/components/side_nav/side_nav_item.js +4 -2
- package/es/components/table/table_header_cell.js +4 -1
- package/es/components/text/text_align.js +1 -1
- package/es/components/text/text_color.js +1 -1
- package/es/components/text_truncate/text_block_truncate.js +1 -1
- package/es/components/tool_tip/tool_tip.js +6 -6
- package/es/components/tour/tour.styles.js +1 -1
- package/es/components/tree_view/tree_view_item.js +2 -1
- package/es/global_styling/mixins/_shadow.js +2 -2
- package/es/services/container_query/match_container.js +2 -2
- package/es/test/cypress/test_reposition_on_scroll.js +1 -0
- package/es/test/emotion-prefix.js +1 -1
- package/es/test/rtl/component_helpers.js +5 -5
- package/es/test/rtl/custom_render.d.ts +29 -8
- package/es/test/rtl/data_test_subj_queries.d.ts +18 -3
- package/eui.d.ts +147 -146
- package/i18ntokens.json +2701 -2683
- package/lib/components/accessibility/live_announcer/live_announcer.js +1 -1
- package/lib/components/badge/badge.js +2 -0
- package/lib/components/basic_table/basic_table.a11y.js +1 -1
- package/lib/components/basic_table/in_memory_table.a11y.js +1 -1
- package/lib/components/basic_table/in_memory_table.js +4 -2
- package/lib/components/bottom_bar/bottom_bar.styles.js +1 -1
- package/lib/components/breadcrumbs/_breadcrumb_content.styles.js +1 -1
- package/lib/components/button/button_display/_button_display_content.js +2 -0
- package/lib/components/button/button_group/button_group.js +1 -1
- package/lib/components/button/button_group/button_group_button.styles.js +2 -11
- package/lib/components/card/card.a11y.js +6 -3
- package/lib/components/card/card.js +1 -1
- package/lib/components/card/card.styles.js +1 -1
- package/lib/components/code/code_block_annotations.js +2 -1
- package/lib/components/color_picker/saturation.styles.js +2 -2
- package/lib/components/context_menu/context_menu_item.js +4 -1
- package/lib/components/datagrid/body/cell/data_grid_cell.js +1 -1
- package/lib/components/datagrid/body/data_grid_body_virtualized.js +1 -1
- package/lib/components/datagrid/body/footer/data_grid_footer_row.js +1 -1
- package/lib/components/datagrid/body/header/column_resizer.styles.js +1 -1
- package/lib/components/datagrid/body/header/column_sorting.js +2 -1
- package/lib/components/datagrid/body/header/data_grid_header_cell.js +2 -1
- package/lib/components/datagrid/body/header/data_grid_header_row.js +1 -1
- package/lib/components/datagrid/controls/column_selector.js +3 -2
- package/lib/components/datagrid/controls/column_sorting_draggable.js +2 -1
- package/lib/components/datagrid/controls/data_grid_toolbar.js +2 -2
- package/lib/components/datagrid/controls/data_grid_toolbar.styles.js +1 -1
- package/lib/components/datagrid/data_grid.js +1 -1
- package/lib/components/datagrid/data_grid.stories.utils.js +1 -1
- package/lib/components/datagrid/data_grid.styles.js +4 -1
- package/lib/components/datagrid/pagination/data_grid_pagination.styles.js +1 -1
- package/lib/components/datagrid/utils/scrolling.js +2 -2
- package/lib/components/date_picker/react_date_picker.styles.js +2 -2
- package/lib/components/date_picker/super_date_picker/async_interval.js +2 -2
- package/lib/components/date_picker/super_date_picker/date_popover/timezone_display.js +2 -1
- package/lib/components/empty_prompt/empty_prompt.js +2 -1
- package/lib/components/expression/expression.js +4 -1
- package/lib/components/facet/facet_button.js +1 -1
- package/lib/components/filter_group/filter_group.styles.js +1 -1
- package/lib/components/flyout/_flyout_close_button.styles.js +1 -1
- package/lib/components/form/checkbox/checkbox_control.js +2 -1
- package/lib/components/form/form_control_layout/append_prepend/form_append_prepend.js +4 -2
- package/lib/components/form/form_control_layout/form_control_layout.styles.js +10 -1
- package/lib/components/form/form_control_layout/form_control_layout_clear_button.js +2 -1
- package/lib/components/form/form_control_layout/form_control_layout_icons.js +2 -1
- package/lib/components/form/form_control_layout/form_control_layout_icons.styles.js +6 -12
- package/lib/components/form/radio/radio.js +2 -0
- package/lib/components/form/switch/switch.js +4 -2
- package/lib/components/header/header.a11y.js +10 -5
- package/lib/components/header/header_links/header_links.js +2 -1
- package/lib/components/header/header_section/header_section_item_button.js +2 -1
- package/lib/components/health/health.js +2 -1
- package/lib/components/i18n/i18n_util.js +1 -1
- package/lib/components/icon/icon_ML.a11y.js +4 -3
- package/lib/components/icon/icon_apps.a11y.js +4 -3
- package/lib/components/icon/icon_elastic.a11y.js +4 -3
- package/lib/components/icon/icon_glyphs.a11y.js +5 -3
- package/lib/components/icon/icon_tokens.a11y.js +4 -3
- package/lib/components/image/image_button.js +2 -1
- package/lib/components/image/image_fullscreen_wrapper.js +2 -1
- package/lib/components/inline_edit/inline_edit_form.js +2 -2
- package/lib/components/key_pad_menu/key_pad_menu.a11y.js +12 -6
- package/lib/components/list_group/list_group.js +1 -1
- package/lib/components/list_item_layout/_list_item_layout.js +2 -1
- package/lib/components/loading/loading_elastic.js +2 -1
- package/lib/components/loading/loading_logo.js +2 -1
- package/lib/components/loading/loading_logo.styles.js +1 -1
- package/lib/components/markdown_editor/plugins/markdown_tooltip/renderer.js +2 -1
- package/lib/components/modal/modal.styles.js +1 -1
- package/lib/components/outside_click_detector/outside_click_detector.js +3 -3
- package/lib/components/popover/popover_arrow/_popover_arrow.styles.js +1 -1
- package/lib/components/popover/popover_panel/_popover_panel.styles.js +1 -1
- package/lib/components/resizable_container/resizable_button.styles.js +1 -1
- package/lib/components/resizable_container/resizable_collapse_button.styles.js +4 -11
- package/lib/components/search_bar/filters/field_value_selection_filter.js +2 -2
- package/lib/components/search_bar/search_bar.a11y.js +1 -0
- package/lib/components/selectable/selectable_list/selectable_list.js +1 -1
- package/lib/components/selectable/selectable_list/selectable_list.styles.js +3 -0
- package/lib/components/side_nav/side_nav.a11y.js +12 -6
- package/lib/components/side_nav/side_nav_item.js +4 -2
- package/lib/components/table/table_header_cell.js +4 -1
- package/lib/components/text/text_align.js +1 -1
- package/lib/components/text/text_color.js +1 -1
- package/lib/components/text_truncate/text_block_truncate.js +1 -1
- package/lib/components/tool_tip/tool_tip.js +6 -6
- package/lib/components/tour/tour.styles.js +1 -1
- package/lib/components/tree_view/tree_view_item.js +2 -1
- package/lib/global_styling/mixins/_shadow.js +2 -2
- package/lib/services/container_query/match_container.js +2 -2
- package/lib/test/cypress/test_reposition_on_scroll.js +1 -0
- package/lib/test/emotion-prefix.js +1 -1
- package/lib/test/rtl/component_helpers.js +5 -5
- package/lib/test/rtl/custom_render.d.ts +29 -8
- package/lib/test/rtl/data_test_subj_queries.d.ts +18 -3
- package/optimize/es/components/accessibility/live_announcer/live_announcer.js +1 -1
- package/optimize/es/components/badge/badge.js +2 -0
- package/optimize/es/components/basic_table/basic_table.a11y.js +1 -1
- package/optimize/es/components/basic_table/in_memory_table.a11y.js +1 -1
- package/optimize/es/components/basic_table/in_memory_table.js +4 -2
- package/optimize/es/components/bottom_bar/bottom_bar.styles.js +2 -2
- package/optimize/es/components/breadcrumbs/_breadcrumb_content.styles.js +1 -1
- package/optimize/es/components/button/button_display/_button_display_content.js +2 -0
- package/optimize/es/components/button/button_group/button_group.js +1 -1
- package/optimize/es/components/button/button_group/button_group_button.styles.js +1 -10
- package/optimize/es/components/card/card.a11y.js +6 -3
- package/optimize/es/components/card/card.js +1 -1
- package/optimize/es/components/card/card.styles.js +1 -1
- package/optimize/es/components/code/code_block_annotations.js +2 -1
- package/optimize/es/components/color_picker/saturation.styles.js +2 -2
- package/optimize/es/components/context_menu/context_menu_item.js +4 -1
- package/optimize/es/components/datagrid/body/cell/data_grid_cell.js +1 -1
- package/optimize/es/components/datagrid/body/data_grid_body_virtualized.js +1 -1
- package/optimize/es/components/datagrid/body/footer/data_grid_footer_row.js +1 -1
- package/optimize/es/components/datagrid/body/header/column_resizer.styles.js +1 -1
- package/optimize/es/components/datagrid/body/header/column_sorting.js +2 -1
- package/optimize/es/components/datagrid/body/header/data_grid_header_cell.js +2 -1
- package/optimize/es/components/datagrid/body/header/data_grid_header_row.js +1 -1
- package/optimize/es/components/datagrid/controls/column_selector.js +3 -2
- package/optimize/es/components/datagrid/controls/column_sorting_draggable.js +2 -1
- package/optimize/es/components/datagrid/controls/data_grid_toolbar.js +2 -2
- package/optimize/es/components/datagrid/controls/data_grid_toolbar.styles.js +1 -1
- package/optimize/es/components/datagrid/data_grid.js +1 -1
- package/optimize/es/components/datagrid/data_grid.stories.utils.js +1 -1
- package/optimize/es/components/datagrid/data_grid.styles.js +4 -1
- package/optimize/es/components/datagrid/pagination/data_grid_pagination.styles.js +1 -1
- package/optimize/es/components/datagrid/utils/scrolling.js +1 -1
- package/optimize/es/components/date_picker/react_date_picker.styles.js +2 -2
- package/optimize/es/components/date_picker/super_date_picker/async_interval.js +1 -1
- package/optimize/es/components/date_picker/super_date_picker/date_popover/timezone_display.js +2 -1
- package/optimize/es/components/empty_prompt/empty_prompt.js +2 -1
- package/optimize/es/components/expression/expression.js +4 -1
- package/optimize/es/components/facet/facet_button.js +1 -1
- package/optimize/es/components/filter_group/filter_group.styles.js +1 -1
- package/optimize/es/components/flyout/_flyout_close_button.styles.js +1 -1
- package/optimize/es/components/form/checkbox/checkbox_control.js +2 -1
- package/optimize/es/components/form/form_control_layout/append_prepend/form_append_prepend.js +4 -2
- package/optimize/es/components/form/form_control_layout/form_control_layout.styles.js +10 -1
- package/optimize/es/components/form/form_control_layout/form_control_layout_clear_button.js +2 -1
- package/optimize/es/components/form/form_control_layout/form_control_layout_icons.js +2 -1
- package/optimize/es/components/form/form_control_layout/form_control_layout_icons.styles.js +4 -12
- package/optimize/es/components/form/radio/radio.js +2 -0
- package/optimize/es/components/form/switch/switch.js +4 -2
- package/optimize/es/components/header/header.a11y.js +10 -5
- package/optimize/es/components/header/header_links/header_links.js +2 -1
- package/optimize/es/components/header/header_section/header_section_item_button.js +2 -1
- package/optimize/es/components/health/health.js +2 -1
- package/optimize/es/components/i18n/i18n_util.js +1 -1
- package/optimize/es/components/icon/icon_ML.a11y.js +4 -3
- package/optimize/es/components/icon/icon_apps.a11y.js +4 -3
- package/optimize/es/components/icon/icon_elastic.a11y.js +4 -3
- package/optimize/es/components/icon/icon_glyphs.a11y.js +5 -3
- package/optimize/es/components/icon/icon_tokens.a11y.js +4 -3
- package/optimize/es/components/image/image_button.js +2 -1
- package/optimize/es/components/image/image_fullscreen_wrapper.js +2 -1
- package/optimize/es/components/inline_edit/inline_edit_form.js +1 -1
- package/optimize/es/components/key_pad_menu/key_pad_menu.a11y.js +12 -6
- package/optimize/es/components/list_group/list_group.js +1 -1
- package/optimize/es/components/list_item_layout/_list_item_layout.js +2 -1
- package/optimize/es/components/loading/loading_elastic.js +2 -1
- package/optimize/es/components/loading/loading_logo.js +2 -1
- package/optimize/es/components/loading/loading_logo.styles.js +1 -1
- package/optimize/es/components/markdown_editor/plugins/markdown_tooltip/renderer.js +2 -1
- package/optimize/es/components/modal/modal.styles.js +1 -1
- package/optimize/es/components/outside_click_detector/outside_click_detector.js +3 -3
- package/optimize/es/components/popover/popover_arrow/_popover_arrow.styles.js +1 -1
- package/optimize/es/components/popover/popover_panel/_popover_panel.styles.js +2 -2
- package/optimize/es/components/resizable_container/resizable_button.styles.js +1 -1
- package/optimize/es/components/resizable_container/resizable_collapse_button.styles.js +3 -12
- package/optimize/es/components/search_bar/filters/field_value_selection_filter.js +1 -1
- package/optimize/es/components/search_bar/search_bar.a11y.js +1 -0
- package/optimize/es/components/selectable/selectable_list/selectable_list.js +1 -1
- package/optimize/es/components/selectable/selectable_list/selectable_list.styles.js +3 -0
- package/optimize/es/components/side_nav/side_nav.a11y.js +12 -6
- package/optimize/es/components/side_nav/side_nav_item.js +4 -2
- package/optimize/es/components/table/table_header_cell.js +4 -1
- package/optimize/es/components/text/text_align.js +1 -1
- package/optimize/es/components/text/text_color.js +1 -1
- package/optimize/es/components/text_truncate/text_block_truncate.js +1 -1
- package/optimize/es/components/tool_tip/tool_tip.js +6 -6
- package/optimize/es/components/tour/tour.styles.js +1 -1
- package/optimize/es/components/tree_view/tree_view_item.js +2 -1
- package/optimize/es/global_styling/mixins/_shadow.js +2 -2
- package/optimize/es/services/container_query/match_container.js +2 -2
- package/optimize/es/test/cypress/test_reposition_on_scroll.js +1 -0
- package/optimize/es/test/emotion-prefix.js +1 -1
- package/optimize/es/test/rtl/component_helpers.js +4 -4
- package/optimize/es/test/rtl/custom_render.d.ts +29 -8
- package/optimize/es/test/rtl/data_test_subj_queries.d.ts +18 -3
- package/optimize/lib/components/accessibility/live_announcer/live_announcer.js +1 -1
- package/optimize/lib/components/badge/badge.js +2 -0
- package/optimize/lib/components/basic_table/basic_table.a11y.js +1 -1
- package/optimize/lib/components/basic_table/in_memory_table.a11y.js +1 -1
- package/optimize/lib/components/basic_table/in_memory_table.js +4 -2
- package/optimize/lib/components/bottom_bar/bottom_bar.styles.js +1 -1
- package/optimize/lib/components/breadcrumbs/_breadcrumb_content.styles.js +1 -1
- package/optimize/lib/components/button/button_display/_button_display_content.js +2 -0
- package/optimize/lib/components/button/button_group/button_group.js +1 -1
- package/optimize/lib/components/button/button_group/button_group_button.styles.js +2 -11
- package/optimize/lib/components/card/card.a11y.js +6 -3
- package/optimize/lib/components/card/card.js +1 -1
- package/optimize/lib/components/card/card.styles.js +1 -1
- package/optimize/lib/components/code/code_block_annotations.js +2 -1
- package/optimize/lib/components/color_picker/saturation.styles.js +2 -2
- package/optimize/lib/components/context_menu/context_menu_item.js +4 -1
- package/optimize/lib/components/datagrid/body/cell/data_grid_cell.js +1 -1
- package/optimize/lib/components/datagrid/body/data_grid_body_virtualized.js +1 -1
- package/optimize/lib/components/datagrid/body/footer/data_grid_footer_row.js +1 -1
- package/optimize/lib/components/datagrid/body/header/column_resizer.styles.js +1 -1
- package/optimize/lib/components/datagrid/body/header/column_sorting.js +2 -1
- package/optimize/lib/components/datagrid/body/header/data_grid_header_cell.js +2 -1
- package/optimize/lib/components/datagrid/body/header/data_grid_header_row.js +1 -1
- package/optimize/lib/components/datagrid/controls/column_selector.js +3 -2
- package/optimize/lib/components/datagrid/controls/column_sorting_draggable.js +2 -1
- package/optimize/lib/components/datagrid/controls/data_grid_toolbar.js +2 -2
- package/optimize/lib/components/datagrid/controls/data_grid_toolbar.styles.js +1 -1
- package/optimize/lib/components/datagrid/data_grid.js +1 -1
- package/optimize/lib/components/datagrid/data_grid.stories.utils.js +1 -1
- package/optimize/lib/components/datagrid/data_grid.styles.js +4 -1
- package/optimize/lib/components/datagrid/pagination/data_grid_pagination.styles.js +1 -1
- package/optimize/lib/components/datagrid/utils/scrolling.js +1 -1
- package/optimize/lib/components/date_picker/react_date_picker.styles.js +2 -2
- package/optimize/lib/components/date_picker/super_date_picker/async_interval.js +1 -1
- package/optimize/lib/components/date_picker/super_date_picker/date_popover/timezone_display.js +2 -1
- package/optimize/lib/components/empty_prompt/empty_prompt.js +2 -1
- package/optimize/lib/components/expression/expression.js +4 -1
- package/optimize/lib/components/facet/facet_button.js +1 -1
- package/optimize/lib/components/filter_group/filter_group.styles.js +1 -1
- package/optimize/lib/components/flyout/_flyout_close_button.styles.js +1 -1
- package/optimize/lib/components/form/checkbox/checkbox_control.js +2 -1
- package/optimize/lib/components/form/form_control_layout/append_prepend/form_append_prepend.js +4 -2
- package/optimize/lib/components/form/form_control_layout/form_control_layout.styles.js +10 -1
- package/optimize/lib/components/form/form_control_layout/form_control_layout_clear_button.js +2 -1
- package/optimize/lib/components/form/form_control_layout/form_control_layout_icons.js +2 -1
- package/optimize/lib/components/form/form_control_layout/form_control_layout_icons.styles.js +6 -12
- package/optimize/lib/components/form/radio/radio.js +2 -0
- package/optimize/lib/components/form/switch/switch.js +4 -2
- package/optimize/lib/components/header/header.a11y.js +10 -5
- package/optimize/lib/components/header/header_links/header_links.js +2 -1
- package/optimize/lib/components/header/header_section/header_section_item_button.js +2 -1
- package/optimize/lib/components/health/health.js +2 -1
- package/optimize/lib/components/i18n/i18n_util.js +1 -1
- package/optimize/lib/components/icon/icon_ML.a11y.js +4 -3
- package/optimize/lib/components/icon/icon_apps.a11y.js +4 -3
- package/optimize/lib/components/icon/icon_elastic.a11y.js +4 -3
- package/optimize/lib/components/icon/icon_glyphs.a11y.js +5 -3
- package/optimize/lib/components/icon/icon_tokens.a11y.js +4 -3
- package/optimize/lib/components/image/image_button.js +2 -1
- package/optimize/lib/components/image/image_fullscreen_wrapper.js +2 -1
- package/optimize/lib/components/inline_edit/inline_edit_form.js +1 -1
- package/optimize/lib/components/key_pad_menu/key_pad_menu.a11y.js +12 -6
- package/optimize/lib/components/list_group/list_group.js +1 -1
- package/optimize/lib/components/list_item_layout/_list_item_layout.js +2 -1
- package/optimize/lib/components/loading/loading_elastic.js +2 -1
- package/optimize/lib/components/loading/loading_logo.js +2 -1
- package/optimize/lib/components/loading/loading_logo.styles.js +1 -1
- package/optimize/lib/components/markdown_editor/plugins/markdown_tooltip/renderer.js +2 -1
- package/optimize/lib/components/modal/modal.styles.js +1 -1
- package/optimize/lib/components/outside_click_detector/outside_click_detector.js +3 -3
- package/optimize/lib/components/popover/popover_arrow/_popover_arrow.styles.js +1 -1
- package/optimize/lib/components/popover/popover_panel/_popover_panel.styles.js +1 -1
- package/optimize/lib/components/resizable_container/resizable_button.styles.js +1 -1
- package/optimize/lib/components/resizable_container/resizable_collapse_button.styles.js +4 -11
- package/optimize/lib/components/search_bar/filters/field_value_selection_filter.js +1 -1
- package/optimize/lib/components/search_bar/search_bar.a11y.js +1 -0
- package/optimize/lib/components/selectable/selectable_list/selectable_list.js +1 -1
- package/optimize/lib/components/selectable/selectable_list/selectable_list.styles.js +3 -0
- package/optimize/lib/components/side_nav/side_nav.a11y.js +12 -6
- package/optimize/lib/components/side_nav/side_nav_item.js +4 -2
- package/optimize/lib/components/table/table_header_cell.js +4 -1
- package/optimize/lib/components/text/text_align.js +1 -1
- package/optimize/lib/components/text/text_color.js +1 -1
- package/optimize/lib/components/text_truncate/text_block_truncate.js +1 -1
- package/optimize/lib/components/tool_tip/tool_tip.js +6 -6
- package/optimize/lib/components/tour/tour.styles.js +1 -1
- package/optimize/lib/components/tree_view/tree_view_item.js +2 -1
- package/optimize/lib/global_styling/mixins/_shadow.js +2 -2
- package/optimize/lib/services/container_query/match_container.js +2 -2
- package/optimize/lib/test/cypress/test_reposition_on_scroll.js +1 -0
- package/optimize/lib/test/emotion-prefix.js +1 -1
- package/optimize/lib/test/rtl/component_helpers.js +4 -4
- package/optimize/lib/test/rtl/custom_render.d.ts +29 -8
- package/optimize/lib/test/rtl/data_test_subj_queries.d.ts +18 -3
- package/package.json +9 -11
- package/test-env/components/accessibility/live_announcer/live_announcer.js +1 -1
- package/test-env/components/badge/badge.js +2 -0
- package/test-env/components/basic_table/basic_table.a11y.js +1 -1
- package/test-env/components/basic_table/in_memory_table.a11y.js +1 -1
- package/test-env/components/basic_table/in_memory_table.js +4 -2
- package/test-env/components/bottom_bar/bottom_bar.styles.js +1 -1
- package/test-env/components/breadcrumbs/_breadcrumb_content.styles.js +1 -1
- package/test-env/components/button/button_display/_button_display_content.js +2 -0
- package/test-env/components/button/button_group/button_group.js +1 -1
- package/test-env/components/button/button_group/button_group_button.styles.js +2 -11
- package/test-env/components/card/card.a11y.js +6 -3
- package/test-env/components/card/card.js +1 -1
- package/test-env/components/card/card.styles.js +1 -1
- package/test-env/components/code/code_block_annotations.js +2 -1
- package/test-env/components/color_picker/saturation.styles.js +2 -2
- package/test-env/components/context_menu/context_menu_item.js +4 -1
- package/test-env/components/datagrid/body/cell/data_grid_cell.js +1 -1
- package/test-env/components/datagrid/body/data_grid_body_virtualized.js +1 -1
- package/test-env/components/datagrid/body/footer/data_grid_footer_row.js +1 -1
- package/test-env/components/datagrid/body/header/column_resizer.styles.js +1 -1
- package/test-env/components/datagrid/body/header/column_sorting.js +2 -1
- package/test-env/components/datagrid/body/header/data_grid_header_cell.js +2 -1
- package/test-env/components/datagrid/body/header/data_grid_header_row.js +1 -1
- package/test-env/components/datagrid/controls/column_selector.js +3 -2
- package/test-env/components/datagrid/controls/column_sorting_draggable.js +2 -1
- package/test-env/components/datagrid/controls/data_grid_toolbar.js +2 -2
- package/test-env/components/datagrid/controls/data_grid_toolbar.styles.js +1 -1
- package/test-env/components/datagrid/data_grid.js +1 -1
- package/test-env/components/datagrid/data_grid.stories.utils.js +1 -1
- package/test-env/components/datagrid/data_grid.styles.js +4 -1
- package/test-env/components/datagrid/pagination/data_grid_pagination.styles.js +1 -1
- package/test-env/components/date_picker/react_date_picker.styles.js +2 -2
- package/test-env/components/date_picker/super_date_picker/async_interval.js +1 -1
- package/test-env/components/date_picker/super_date_picker/date_popover/timezone_display.js +2 -1
- package/test-env/components/empty_prompt/empty_prompt.js +2 -1
- package/test-env/components/expression/expression.js +4 -1
- package/test-env/components/facet/facet_button.js +1 -1
- package/test-env/components/filter_group/filter_group.styles.js +1 -1
- package/test-env/components/flyout/_flyout_close_button.styles.js +1 -1
- package/test-env/components/form/checkbox/checkbox_control.js +2 -1
- package/test-env/components/form/form_control_layout/append_prepend/form_append_prepend.js +4 -2
- package/test-env/components/form/form_control_layout/form_control_layout.styles.js +10 -1
- package/test-env/components/form/form_control_layout/form_control_layout_clear_button.js +2 -1
- package/test-env/components/form/form_control_layout/form_control_layout_icons.js +2 -1
- package/test-env/components/form/form_control_layout/form_control_layout_icons.styles.js +6 -12
- package/test-env/components/form/radio/radio.js +2 -0
- package/test-env/components/form/switch/switch.js +4 -2
- package/test-env/components/header/header.a11y.js +10 -5
- package/test-env/components/header/header_links/header_links.js +2 -1
- package/test-env/components/header/header_section/header_section_item_button.js +2 -1
- package/test-env/components/health/health.js +2 -1
- package/test-env/components/i18n/i18n_util.js +1 -1
- package/test-env/components/icon/icon_ML.a11y.js +4 -3
- package/test-env/components/icon/icon_apps.a11y.js +4 -3
- package/test-env/components/icon/icon_elastic.a11y.js +4 -3
- package/test-env/components/icon/icon_glyphs.a11y.js +5 -3
- package/test-env/components/icon/icon_tokens.a11y.js +4 -3
- package/test-env/components/image/image_button.js +2 -1
- package/test-env/components/image/image_fullscreen_wrapper.js +2 -1
- package/test-env/components/inline_edit/inline_edit_form.js +1 -1
- package/test-env/components/key_pad_menu/key_pad_menu.a11y.js +12 -6
- package/test-env/components/list_group/list_group.js +1 -1
- package/test-env/components/list_item_layout/_list_item_layout.js +2 -1
- package/test-env/components/loading/loading_elastic.js +2 -1
- package/test-env/components/loading/loading_logo.js +2 -1
- package/test-env/components/loading/loading_logo.styles.js +1 -1
- package/test-env/components/markdown_editor/plugins/markdown_tooltip/renderer.js +2 -1
- package/test-env/components/modal/modal.styles.js +1 -1
- package/test-env/components/outside_click_detector/outside_click_detector.js +3 -3
- package/test-env/components/popover/popover_arrow/_popover_arrow.styles.js +1 -1
- package/test-env/components/popover/popover_panel/_popover_panel.styles.js +1 -1
- package/test-env/components/resizable_container/resizable_button.styles.js +1 -1
- package/test-env/components/resizable_container/resizable_collapse_button.styles.js +4 -11
- package/test-env/components/search_bar/filters/field_value_selection_filter.js +1 -1
- package/test-env/components/search_bar/search_bar.a11y.js +1 -0
- package/test-env/components/selectable/selectable_list/selectable_list.js +1 -1
- package/test-env/components/selectable/selectable_list/selectable_list.styles.js +3 -0
- package/test-env/components/side_nav/side_nav.a11y.js +12 -6
- package/test-env/components/side_nav/side_nav_item.js +4 -2
- package/test-env/components/table/table_header_cell.js +4 -1
- package/test-env/components/text/text_align.js +1 -1
- package/test-env/components/text/text_color.js +1 -1
- package/test-env/components/text_truncate/text_block_truncate.js +1 -1
- package/test-env/components/tool_tip/tool_tip.js +6 -6
- package/test-env/components/tour/tour.styles.js +1 -1
- package/test-env/components/tree_view/tree_view_item.js +2 -1
- package/test-env/global_styling/mixins/_shadow.js +2 -2
- package/test-env/services/container_query/match_container.js +2 -2
- package/test-env/test/cypress/test_reposition_on_scroll.js +1 -0
- package/test-env/test/emotion-prefix.js +1 -1
- package/test-env/test/rtl/component_helpers.js +4 -4
|
@@ -21,6 +21,7 @@ import PropTypes from "prop-types";
|
|
|
21
21
|
import classNames from 'classnames';
|
|
22
22
|
import { useEuiMemoizedStyles } from '../../services';
|
|
23
23
|
import { EuiIcon } from '../icon';
|
|
24
|
+
import { useEuiI18n } from '../i18n';
|
|
24
25
|
import { euiExpressionStyles, euiExpressionDescriptionStyles, euiExpressionValueStyles as valueStyles, euiExpressionIconStyles } from './expression.styles';
|
|
25
26
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
26
27
|
export var COLORS = ['subdued', 'primary', 'success', 'accent', 'warning', 'danger'];
|
|
@@ -56,6 +57,7 @@ export var EuiExpression = function EuiExpression(_ref) {
|
|
|
56
57
|
var cssDescriptionStyles = [descriptionStyles.euiExpression__description, isInvalid ? descriptionStyles.danger : descriptionStyles[color], uppercase && descriptionStyles.isUppercase, textWrap === 'truncate' && descriptionStyles.truncate, display === 'columns' && descriptionStyles.columns];
|
|
57
58
|
var cssValueStyles = [valueStyles.euiExpression__value, textWrap === 'truncate' && valueStyles.truncate, display === 'columns' && valueStyles.columns];
|
|
58
59
|
var iconStyles = useEuiMemoizedStyles(euiExpressionIconStyles);
|
|
60
|
+
var invalidIconLabel = useEuiI18n('euiExpression.invalid', 'Invalid expression');
|
|
59
61
|
var cssIconStyles = [iconStyles.euiExpression__icon, display === 'columns' && iconStyles.columns];
|
|
60
62
|
var classes = classNames('euiExpression', className);
|
|
61
63
|
var Component = onClick ? 'button' : 'span';
|
|
@@ -77,7 +79,8 @@ export var EuiExpression = function EuiExpression(_ref) {
|
|
|
77
79
|
className: "euiExpression__icon",
|
|
78
80
|
type: "warning",
|
|
79
81
|
css: cssIconStyles,
|
|
80
|
-
color: calculatedColor
|
|
82
|
+
color: calculatedColor,
|
|
83
|
+
"aria-label": invalidIconLabel
|
|
81
84
|
}));
|
|
82
85
|
};
|
|
83
86
|
EuiExpression.propTypes = {
|
|
@@ -79,7 +79,7 @@ export var EuiFacetButton = function EuiFacetButton(_ref) {
|
|
|
79
79
|
|
|
80
80
|
// Add an icon to the button if one exists.
|
|
81
81
|
var buttonIcon = useMemo(function () {
|
|
82
|
-
if (
|
|
82
|
+
if (/*#__PURE__*/React.isValidElement(icon)) {
|
|
83
83
|
return cloneElementWithCss(icon, _objectSpread({
|
|
84
84
|
className: 'euiFacetButton__icon'
|
|
85
85
|
}, disabledStyles));
|
|
@@ -28,7 +28,7 @@ export var euiFilterGroupStyles = function euiFilterGroupStyles(euiThemeContext)
|
|
|
28
28
|
return {
|
|
29
29
|
euiFilterGroup: /*#__PURE__*/css("position:relative;display:inline-flex;", logicalCSS('max-width', '100%'), " overflow:hidden;background-color:", backgroundColor, ";&::after{content:'';position:absolute;inset:0;border:", euiTheme.border.width.thin, " solid ", euiTheme.colors.borderBasePlain, ";border-radius:inherit;pointer-events:none;}&:where([data-dividers='true']){gap:", euiTheme.border.width.thin, ";}.euiFilterButton-isToggle{padding-inline:", mathWithUnits([euiTheme.size.s, containerPadding], function (x, y) {
|
|
30
30
|
return x - y / 2;
|
|
31
|
-
}), ";}>*:not(.euiFilterButton__wrapper, .euiFilterButton){", euiFilterButtonDisplay(euiThemeContext), " &:has(.euiFilterButton-isIconOnly){min-inline-size:auto;}}.euiPopover>*:is(.euiToolTipAnchor, .euiFilterButton__wrapper, .euiFilterButton){", logicalCSS('width', '100%'), ";}", euiBreakpoint(euiThemeContext, ['xs', 's']), "{flex-wrap:wrap;}", euiBreakpoint(euiThemeContext, ['xs']), "{display:flex;.euiPopover:focus-within{z-index:1;}.euiFilterButton__wrapper{flex-grow:1;}};label:euiFilterGroup;"),
|
|
31
|
+
}), ";}>*:not(.euiFilterButton__wrapper, .euiFilterButton){", euiFilterButtonDisplay(euiThemeContext), " &:has(.euiFilterButton-isIconOnly){min-inline-size:auto;}}.euiPopover>*:is(.euiToolTipAnchor, .euiFilterButton__wrapper, .euiFilterButton){", logicalCSS('width', '100%'), ";}", euiBreakpoint(euiThemeContext, ['xs', 's']), "{flex-wrap:wrap;}", euiBreakpoint(euiThemeContext, ['xs']), "{display:flex;.euiPopover:focus-within{z-index:", Number(euiTheme.levels.content) + 1, ";}.euiFilterButton__wrapper{flex-grow:1;}};label:euiFilterGroup;"),
|
|
32
32
|
fullWidth: _ref,
|
|
33
33
|
uncompressed: /*#__PURE__*/css("border-radius:", buttonSizeMap.m.radius, ";;label:uncompressed;"),
|
|
34
34
|
compressed: /*#__PURE__*/css("border-radius:", buttonSizeMap.s.radius, ";;label:compressed;"),
|
|
@@ -22,7 +22,7 @@ var _ref = process.env.NODE_ENV === "production" ? {
|
|
|
22
22
|
export var euiFlyoutCloseButtonStyles = function euiFlyoutCloseButtonStyles(euiThemeContext) {
|
|
23
23
|
var euiTheme = euiThemeContext.euiTheme;
|
|
24
24
|
return {
|
|
25
|
-
euiFlyout__closeButton: /*#__PURE__*/css("position:absolute;", logicalCSS('right', euiTheme.size.s), " ", logicalCSS('top', euiTheme.size.s), " z-index:3;;label:euiFlyout__closeButton;"),
|
|
25
|
+
euiFlyout__closeButton: /*#__PURE__*/css("position:absolute;", logicalCSS('right', euiTheme.size.s), " ", logicalCSS('top', euiTheme.size.s), " z-index:", Number(euiTheme.levels.content) + 3, ";;label:euiFlyout__closeButton;"),
|
|
26
26
|
inside: _ref,
|
|
27
27
|
outside: /*#__PURE__*/css(euiShadowXLarge(euiThemeContext, {
|
|
28
28
|
borderAllInHighContrastMode: true
|
|
@@ -70,10 +70,12 @@ export var EuiFormAppendPrepend = function EuiFormAppendPrepend(_ref3) {
|
|
|
70
70
|
var isButton = element === 'button' || typeof rest.onClick === 'function';
|
|
71
71
|
var isDisabled = _isDisabled || disabled || !isButton && formLayoutIsDisabled;
|
|
72
72
|
var iconLeft = _iconLeft && ___EmotionJSX(EuiIcon, {
|
|
73
|
-
type: _iconLeft
|
|
73
|
+
type: _iconLeft,
|
|
74
|
+
"aria-hidden": true
|
|
74
75
|
});
|
|
75
76
|
var iconRight = _iconRight && ___EmotionJSX(EuiIcon, {
|
|
76
|
-
type: _iconRight
|
|
77
|
+
type: _iconRight,
|
|
78
|
+
"aria-hidden": true
|
|
77
79
|
});
|
|
78
80
|
var cssStyles = [styles.side, compressed ? styles.compressed : styles.uncompressed, isButton && !isDisabled && styles.isInteractive, isDisabled && styles.disabled];
|
|
79
81
|
var labelProps = isButton ? {
|
|
@@ -35,7 +35,12 @@ export var euiFormControlLayoutStyles = function euiFormControlLayoutStyles(euiT
|
|
|
35
35
|
highContrastMode = euiThemeContext.highContrastMode;
|
|
36
36
|
var form = euiFormVariables(euiThemeContext);
|
|
37
37
|
return {
|
|
38
|
+
/* eslint-disable @elastic/eui/no-static-z-index -- only isolates the layers
|
|
39
|
+
inside the control; stays at 0 so the control doesn't rise above
|
|
40
|
+
neighbouring layers that don't follow levels.content, such as the
|
|
41
|
+
EuiTable sticky header */
|
|
38
42
|
euiFormControlLayout: _ref2,
|
|
43
|
+
/* eslint-enable @elastic/eui/no-static-z-index */
|
|
39
44
|
// Skip the css`` on the default height to avoid generating a className
|
|
40
45
|
uncompressed: "\n ".concat(logicalCSS('height', form.controlHeight), "\n "),
|
|
41
46
|
compressed: /*#__PURE__*/css(logicalCSS('height', form.controlCompressedHeight), ";;label:compressed;"),
|
|
@@ -43,7 +48,11 @@ export var euiFormControlLayoutStyles = function euiFormControlLayoutStyles(euiT
|
|
|
43
48
|
formWidth: "\n ".concat(logicalCSS('max-width', form.maxWidth), "\n ").concat(logicalCSS('width', '100%'), "\n "),
|
|
44
49
|
fullWidth: /*#__PURE__*/css(logicalCSS('max-width', '100%'), " ", logicalCSS('width', '100%'), ";;label:fullWidth;"),
|
|
45
50
|
group: {
|
|
51
|
+
/* eslint-disable @elastic/eui/no-static-z-index -- the group border
|
|
52
|
+
(::after) has to stay below the focus and invalid outlines of the
|
|
53
|
+
controls inside, which use z-index: 1 (euiFormControlHighlightBorderStyles) */
|
|
46
54
|
group: /*#__PURE__*/css("position:relative;display:flex;align-items:stretch;border:none;background-color:", form.backgroundColor, ";overflow:hidden;&::after{content:'';position:absolute;inset:0;z-index:0;border:", euiTheme.border.width.thin, " solid ", form.borderColor, ";border-radius:inherit;pointer-events:none;}&:where(:not(:has(*:is(", euiDisabledSelector, "), [readOnly])):hover){&::after{border:", highContrastMode ? euiTheme.border.width.thick : euiTheme.border.width.thin, " solid ", highContrastMode ? form.borderColor : form.borderHovered, ";}}&:has(:autofill){background:", form.backgroundAutoFilled, ";&:not(:hover)::after{border-color:", form.borderAutofilled, ";}*:-webkit-autofill,*:autofill{--euiFormControlStateAutofillColor:", form.backgroundAutoFilled, ";background-clip:content-box;&:hover,&:focus{--euiFormControlStateAutofillColor:", form.backgroundAutoFilled, ";}}}.euiFilterGroup{border-radius:0;", logicalCSS('padding-right', euiTheme.border.width.thin), " &::after{display:none;}}.euiFilterButton__wrapper:first-of-type::before,.euiFilterButton__wrapper::after{display:none;}>*{", logicalCSS('height', '100%'), ";};label:group;"),
|
|
55
|
+
/* eslint-enable @elastic/eui/no-static-z-index */
|
|
47
56
|
// Skipping css`` to avoid repeated compressed/uncompressed classNames
|
|
48
57
|
uncompressed: "\n border-radius: ".concat(form.controlBorderRadius, ";\n "),
|
|
49
58
|
compressed: "\n border-radius: ".concat(form.controlCompressedBorderRadius, ";\n "),
|
|
@@ -78,7 +87,7 @@ export var euiFormControlLayoutSideNodeStyles = function euiFormControlLayoutSid
|
|
|
78
87
|
return "\n position: relative;\n ".concat("margin-inline-".concat(side), ": -", euiTheme.border.width.thin, ";\n\n &::before {\n content: '';\n position: absolute;\n inset-inline-").concat(side, ": 0;\n z-index: ").concat(side === 'end' ? 1 : 0, ";\n block-size: ").concat(compressed ? euiTheme.size.base : euiTheme.size.l, ";\n inline-size: ").concat(euiTheme.border.width.thin, ";\n pointer-events: none;\n border-inline-").concat(side, ": \n ").concat(euiTheme.border.width.thin, " solid ").concat(form.borderColor, ";\n }\n ");
|
|
79
88
|
};
|
|
80
89
|
return {
|
|
81
|
-
euiFormControlLayout__side: /*#__PURE__*/css(logicalCSS('height', '100%'), " ", euiTextTruncate('50%'), " flex-shrink:0;display:flex;align-items:center;gap:", euiTheme.size.s, ";padding:", euiTheme.size.xs, ";", buttons, "{block-size:100%;border-radius:", form.controlLayoutInnerBorderRadius, ";transform:none!important;&:focus-visible{z-index:1;outline-offset:", euiTheme.focus.width, ";}}", text, "{cursor:default;overflow:hidden;text-overflow:ellipsis;}&:where(:has(", buttons, ":focus-visible):has(> *:only-child)){*:not(", appendPrepend, "){outline:none;}&::after{", euiFormControlFocusStyles(euiThemeContext), " content:'';position:absolute;inset:0;border-radius:", form.controlLayoutBorderRadius, ";pointer-events:none;}}:where(:not(:has(:disabled))) label{color:", form.labelColor, ";}.euiFilterButton__wrapper{padding:0;};label:euiFormControlLayout__side;"),
|
|
90
|
+
euiFormControlLayout__side: /*#__PURE__*/css(logicalCSS('height', '100%'), " ", euiTextTruncate('50%'), " flex-shrink:0;display:flex;align-items:center;gap:", euiTheme.size.s, ";padding:", euiTheme.size.xs, ";", buttons, "{block-size:100%;border-radius:", form.controlLayoutInnerBorderRadius, ";transform:none!important;&:focus-visible{z-index:", Number(euiTheme.levels.content) + 1, ";outline-offset:", euiTheme.focus.width, ";}}", text, "{cursor:default;overflow:hidden;text-overflow:ellipsis;}&:where(:has(", buttons, ":focus-visible):has(> *:only-child)){*:not(", appendPrepend, "){outline:none;}&::after{", euiFormControlFocusStyles(euiThemeContext), " content:'';position:absolute;inset:0;border-radius:", form.controlLayoutBorderRadius, ";pointer-events:none;}}:where(:not(:has(:disabled))) label{color:", form.labelColor, ";}.euiFilterButton__wrapper{padding:0;};label:euiFormControlLayout__side;"),
|
|
82
91
|
uncompressed: {
|
|
83
92
|
uncompressed: "\n &:not(:has(> ".concat(buttons, ":first-child, > *:first-child ").concat(buttons, ")) {\n ").concat(logicalCSS('padding-left', euiTheme.size.s), "\n }\n\n &:not(:has(> ").concat(buttons, ":last-child, > *:last-child ").concat(buttons, ")) {\n ").concat(logicalCSS('padding-right', euiTheme.size.s), "\n }\n\n ").concat(text, " {\n line-height: ").concat(uncompressedHeight, ";\n\n &:first-child {\n ").concat(logicalCSS('padding-left', euiTheme.size.xs), "\n }\n\n &:last-child {\n ").concat(logicalCSS('padding-right', euiTheme.size.xs), "\n }\n }\n\n ").concat(buttons, " {\n ").concat(logicalCSS('height', uncompressedHeight), "\n ").concat(_buttonPadding('s'), "\n }\n\n .euiButtonIcon {\n flex-shrink: 0;\n ").concat(logicalCSS('width', uncompressedHeight), "\n }\n "),
|
|
84
93
|
append: "\n ".concat(dividerStyles('start'), "\n "),
|
|
@@ -39,7 +39,8 @@ export var EuiFormControlLayoutClearButton = function EuiFormControlLayoutClearB
|
|
|
39
39
|
css: iconStyles,
|
|
40
40
|
className: "euiFormControlLayoutClearButton__icon",
|
|
41
41
|
type: "cross",
|
|
42
|
-
size: size
|
|
42
|
+
size: size,
|
|
43
|
+
"aria-hidden": true
|
|
43
44
|
}));
|
|
44
45
|
};
|
|
45
46
|
EuiFormControlLayoutClearButton.propTypes = {
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
|
|
2
1
|
/*
|
|
3
2
|
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
4
3
|
* or more contributor license agreements. Licensed under the Elastic License
|
|
@@ -10,15 +9,8 @@ function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringif
|
|
|
10
9
|
import { css } from '@emotion/react';
|
|
11
10
|
import { logicalCSS, mathWithUnits } from '../../../global_styling';
|
|
12
11
|
import { euiFormVariables } from '../form.styles';
|
|
13
|
-
var _ref = process.env.NODE_ENV === "production" ? {
|
|
14
|
-
name: "oaqulw-euiFormControlLayoutIcons",
|
|
15
|
-
styles: "position:relative;z-index:1;display:flex;align-items:center;pointer-events:none;label:euiFormControlLayoutIcons;"
|
|
16
|
-
} : {
|
|
17
|
-
name: "oaqulw-euiFormControlLayoutIcons",
|
|
18
|
-
styles: "position:relative;z-index:1;display:flex;align-items:center;pointer-events:none;label:euiFormControlLayoutIcons;",
|
|
19
|
-
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
20
|
-
};
|
|
21
12
|
export var euiFormControlLayoutIconsStyles = function euiFormControlLayoutIconsStyles(euiThemeContext) {
|
|
13
|
+
var euiTheme = euiThemeContext.euiTheme;
|
|
22
14
|
var _euiFormVariables = euiFormVariables(euiThemeContext),
|
|
23
15
|
controlHeight = _euiFormVariables.controlHeight,
|
|
24
16
|
controlCompressedHeight = _euiFormVariables.controlCompressedHeight,
|
|
@@ -26,7 +18,7 @@ export var euiFormControlLayoutIconsStyles = function euiFormControlLayoutIconsS
|
|
|
26
18
|
controlCompressedPadding = _euiFormVariables.controlCompressedPadding,
|
|
27
19
|
controlDisabledColor = _euiFormVariables.controlDisabledColor;
|
|
28
20
|
return {
|
|
29
|
-
euiFormControlLayoutIcons:
|
|
21
|
+
euiFormControlLayoutIcons: /*#__PURE__*/css("position:relative;z-index:", Number(euiTheme.levels.content) + 1, ";display:flex;align-items:center;pointer-events:none;;label:euiFormControlLayoutIcons;"),
|
|
30
22
|
uncompressed: "\n gap: ".concat(mathWithUnits(controlPadding, function (x) {
|
|
31
23
|
return x / 2;
|
|
32
24
|
}), ";\n max-block-size: ").concat(controlHeight, ";\n "),
|
|
@@ -38,11 +30,11 @@ export var euiFormControlLayoutIconsStyles = function euiFormControlLayoutIconsS
|
|
|
38
30
|
absolute: {
|
|
39
31
|
absolute: /*#__PURE__*/css("position:absolute;", logicalCSS('vertical', 0), ";;label:absolute;"),
|
|
40
32
|
uncompressed: {
|
|
41
|
-
left: /*#__PURE__*/css("z-index:2;", logicalCSS('left', controlPadding), ";;label:left;"),
|
|
33
|
+
left: /*#__PURE__*/css("z-index:", Number(euiTheme.levels.content) + 2, ";", logicalCSS('left', controlPadding), ";;label:left;"),
|
|
42
34
|
right: /*#__PURE__*/css(logicalCSS('right', controlPadding), ";;label:right;")
|
|
43
35
|
},
|
|
44
36
|
compressed: {
|
|
45
|
-
left: /*#__PURE__*/css("z-index:2;", logicalCSS('left', controlCompressedPadding), ";;label:left;"),
|
|
37
|
+
left: /*#__PURE__*/css("z-index:", Number(euiTheme.levels.content) + 2, ";", logicalCSS('left', controlCompressedPadding), ";;label:left;"),
|
|
46
38
|
right: /*#__PURE__*/css(logicalCSS('right', controlCompressedPadding), ";;label:right;")
|
|
47
39
|
}
|
|
48
40
|
},
|
|
@@ -46,6 +46,8 @@ export var EuiRadio = function EuiRadio(_ref) {
|
|
|
46
46
|
}, ___EmotionJSX(EuiIcon, {
|
|
47
47
|
css: styles.input.euiRadio__icon,
|
|
48
48
|
type: checked ? 'dot' : 'empty' // Note that the icon does explicitly need to be empty for Windows high contrast themes
|
|
49
|
+
,
|
|
50
|
+
"aria-hidden": true
|
|
49
51
|
}), ___EmotionJSX("input", {
|
|
50
52
|
css: styles.input.euiRadio__input,
|
|
51
53
|
className: "euiRadio__input",
|
|
@@ -86,10 +86,12 @@ export var EuiSwitch = function EuiSwitch(_ref) {
|
|
|
86
86
|
className: "euiSwitch__icons"
|
|
87
87
|
}, ___EmotionJSX(EuiIcon, {
|
|
88
88
|
type: "check",
|
|
89
|
-
size: "m"
|
|
89
|
+
size: "m",
|
|
90
|
+
"aria-hidden": true
|
|
90
91
|
}), ___EmotionJSX(EuiIcon, {
|
|
91
92
|
type: "cross",
|
|
92
|
-
size: "m"
|
|
93
|
+
size: "m",
|
|
94
|
+
"aria-hidden": true
|
|
93
95
|
}))), ___EmotionJSX("span", {
|
|
94
96
|
css: thumbStyles,
|
|
95
97
|
className: "euiSwitch__thumb"
|
|
@@ -87,7 +87,8 @@ var Header = function Header() {
|
|
|
87
87
|
"aria-label": "Sitewide search"
|
|
88
88
|
}, ___EmotionJSX(EuiIcon, {
|
|
89
89
|
type: "magnify",
|
|
90
|
-
size: "m"
|
|
90
|
+
size: "m",
|
|
91
|
+
"aria-hidden": true
|
|
91
92
|
})),
|
|
92
93
|
emptyMessage: ___EmotionJSX(EuiSelectableMessage, {
|
|
93
94
|
style: {
|
|
@@ -270,7 +271,8 @@ var HeaderAppMenu = function HeaderAppMenu() {
|
|
|
270
271
|
onClick: onMenuButtonClick
|
|
271
272
|
}, ___EmotionJSX(EuiIcon, {
|
|
272
273
|
type: "apps",
|
|
273
|
-
size: "m"
|
|
274
|
+
size: "m",
|
|
275
|
+
"aria-hidden": true
|
|
274
276
|
}));
|
|
275
277
|
return ___EmotionJSX(EuiPopover, {
|
|
276
278
|
id: headerAppPopoverId,
|
|
@@ -288,17 +290,20 @@ var HeaderAppMenu = function HeaderAppMenu() {
|
|
|
288
290
|
label: "Discover"
|
|
289
291
|
}, ___EmotionJSX(EuiIcon, {
|
|
290
292
|
type: "discoverApp",
|
|
291
|
-
size: "l"
|
|
293
|
+
size: "l",
|
|
294
|
+
"aria-hidden": true
|
|
292
295
|
})), ___EmotionJSX(EuiKeyPadMenuItem, {
|
|
293
296
|
label: "Dashboard"
|
|
294
297
|
}, ___EmotionJSX(EuiIcon, {
|
|
295
298
|
type: "dashboardApp",
|
|
296
|
-
size: "l"
|
|
299
|
+
size: "l",
|
|
300
|
+
"aria-hidden": true
|
|
297
301
|
})), ___EmotionJSX(EuiKeyPadMenuItem, {
|
|
298
302
|
label: "Dev Tools"
|
|
299
303
|
}, ___EmotionJSX(EuiIcon, {
|
|
300
304
|
type: "devToolsApp",
|
|
301
|
-
size: "l"
|
|
305
|
+
size: "l",
|
|
306
|
+
"aria-hidden": true
|
|
302
307
|
}))));
|
|
303
308
|
};
|
|
304
309
|
beforeEach(function () {
|
|
@@ -46,7 +46,7 @@ export function processStringToChildren(input, values, i18nMappingFunc) {
|
|
|
46
46
|
} else if (isElement(value)) {
|
|
47
47
|
// an array with any ReactElements will be kept as an array
|
|
48
48
|
// so they need to be assigned a key
|
|
49
|
-
children.push(
|
|
49
|
+
children.push(/*#__PURE__*/cloneElement(value, {
|
|
50
50
|
key: children.length
|
|
51
51
|
}));
|
|
52
52
|
} else if (hasPropName(value)) {
|
|
@@ -20,15 +20,16 @@ describe('EuiIcons', function () {
|
|
|
20
20
|
return ___EmotionJSX("div", null, MLIcons.map(function (glyph) {
|
|
21
21
|
return ___EmotionJSX(EuiIcon, {
|
|
22
22
|
className: "eui-alignMiddle",
|
|
23
|
-
type: glyph
|
|
23
|
+
type: glyph,
|
|
24
|
+
title: glyph
|
|
24
25
|
});
|
|
25
26
|
}));
|
|
26
27
|
};
|
|
27
28
|
it('has zero violations on first render', function () {
|
|
28
29
|
cy.mount(___EmotionJSX(MLGrid, null));
|
|
29
|
-
cy.get('div[data-cy-root]').find('svg', {
|
|
30
|
+
cy.get('div[data-cy-root]').find('svg > title', {
|
|
30
31
|
timeout: 5000
|
|
31
|
-
}).should('have.length',
|
|
32
|
+
}).should('have.length', MLIcons.length);
|
|
32
33
|
cy.checkAxe();
|
|
33
34
|
});
|
|
34
35
|
});
|
|
@@ -20,15 +20,16 @@ describe('EuiIcons', function () {
|
|
|
20
20
|
return ___EmotionJSX("div", null, AppIcons.map(function (glyph) {
|
|
21
21
|
return ___EmotionJSX(EuiIcon, {
|
|
22
22
|
className: "eui-alignMiddle",
|
|
23
|
-
type: glyph
|
|
23
|
+
type: glyph,
|
|
24
|
+
title: glyph
|
|
24
25
|
});
|
|
25
26
|
}));
|
|
26
27
|
};
|
|
27
28
|
it('has zero violations on first render', function () {
|
|
28
29
|
cy.mount(___EmotionJSX(AppGrid, null));
|
|
29
|
-
cy.get('div[data-cy-root]').find('svg', {
|
|
30
|
+
cy.get('div[data-cy-root]').find('svg > title', {
|
|
30
31
|
timeout: 5000
|
|
31
|
-
}).should('have.length',
|
|
32
|
+
}).should('have.length', AppIcons.length);
|
|
32
33
|
cy.checkAxe();
|
|
33
34
|
});
|
|
34
35
|
});
|
|
@@ -20,15 +20,16 @@ describe('EuiIcons', function () {
|
|
|
20
20
|
return ___EmotionJSX("div", null, ElasticLogos.map(function (glyph) {
|
|
21
21
|
return ___EmotionJSX(EuiIcon, {
|
|
22
22
|
className: "eui-alignMiddle",
|
|
23
|
-
type: glyph
|
|
23
|
+
type: glyph,
|
|
24
|
+
title: glyph
|
|
24
25
|
});
|
|
25
26
|
}));
|
|
26
27
|
};
|
|
27
28
|
it('has zero violations on first render', function () {
|
|
28
29
|
cy.mount(___EmotionJSX(ElasticGrid, null));
|
|
29
|
-
cy.get('div[data-cy-root]').find('svg', {
|
|
30
|
+
cy.get('div[data-cy-root]').find('svg > title', {
|
|
30
31
|
timeout: 5000
|
|
31
|
-
}).should('have.length',
|
|
32
|
+
}).should('have.length', ElasticLogos.length);
|
|
32
33
|
cy.checkAxe();
|
|
33
34
|
});
|
|
34
35
|
});
|
|
@@ -20,15 +20,17 @@ describe('EuiIcons', function () {
|
|
|
20
20
|
return ___EmotionJSX("div", null, GlyphIcons.map(function (glyph) {
|
|
21
21
|
return ___EmotionJSX(EuiIcon, {
|
|
22
22
|
className: "eui-alignMiddle",
|
|
23
|
-
type: glyph
|
|
23
|
+
type: glyph,
|
|
24
|
+
title: glyph === 'empty' ? undefined : glyph,
|
|
25
|
+
"aria-hidden": glyph === 'empty' ? true : undefined
|
|
24
26
|
});
|
|
25
27
|
}));
|
|
26
28
|
};
|
|
27
29
|
it('has zero violations on first render', function () {
|
|
28
30
|
cy.mount(___EmotionJSX(GlyphGrid, null));
|
|
29
|
-
cy.get('
|
|
31
|
+
cy.get('div[data-cy-root]').find('svg > title', {
|
|
30
32
|
timeout: 5000
|
|
31
|
-
}).should('
|
|
33
|
+
}).should('have.length', GlyphIcons.length - 1);
|
|
32
34
|
cy.checkAxe();
|
|
33
35
|
});
|
|
34
36
|
});
|
|
@@ -20,15 +20,16 @@ describe('EuiIcons', function () {
|
|
|
20
20
|
return ___EmotionJSX("div", null, TokenIcons.map(function (glyph) {
|
|
21
21
|
return ___EmotionJSX(EuiIcon, {
|
|
22
22
|
className: "eui-alignMiddle",
|
|
23
|
-
type: glyph
|
|
23
|
+
type: glyph,
|
|
24
|
+
title: glyph
|
|
24
25
|
});
|
|
25
26
|
}));
|
|
26
27
|
};
|
|
27
28
|
it('has zero violations on first render', function () {
|
|
28
29
|
cy.mount(___EmotionJSX(TokenGrid, null));
|
|
29
|
-
cy.get('div[data-cy-root]').find('svg', {
|
|
30
|
+
cy.get('div[data-cy-root]').find('svg > title', {
|
|
30
31
|
timeout: 5000
|
|
31
|
-
}).should('have.length',
|
|
32
|
+
}).should('have.length', TokenIcons.length);
|
|
32
33
|
cy.checkAxe();
|
|
33
34
|
});
|
|
34
35
|
});
|
|
@@ -52,7 +52,8 @@ export var EuiImageButton = function EuiImageButton(_ref) {
|
|
|
52
52
|
css: cssIconStyles
|
|
53
53
|
}, ___EmotionJSX(EuiScreenReaderOnly, null, ___EmotionJSX("p", null, hasAlt && ' — ', openFullScreenInstructions)), ___EmotionJSX(EuiIcon, {
|
|
54
54
|
type: "fullScreen",
|
|
55
|
-
color: iconColor
|
|
55
|
+
color: iconColor,
|
|
56
|
+
"aria-hidden": true
|
|
56
57
|
})));
|
|
57
58
|
};
|
|
58
59
|
EuiImageButton.propTypes = {
|
|
@@ -82,7 +82,8 @@ export var EuiImageFullScreenWrapper = function EuiImageFullScreenWrapper(_ref)
|
|
|
82
82
|
})), ___EmotionJSX(EuiIcon, {
|
|
83
83
|
type: "fullScreenExit",
|
|
84
84
|
color: "ghost",
|
|
85
|
-
css: cssIconStyles
|
|
85
|
+
css: cssIconStyles,
|
|
86
|
+
"aria-hidden": true
|
|
86
87
|
})));
|
|
87
88
|
};
|
|
88
89
|
EuiImageFullScreenWrapper.propTypes = {
|
|
@@ -7,7 +7,7 @@ function _regeneratorKeys(e) { var n = Object(e), r = []; for (var t in n) r.uns
|
|
|
7
7
|
function _regeneratorAsync(n, e, r, t, o) { var a = _regeneratorAsyncGen(n, e, r, t, o); return a.next().then(function (n) { return n.done ? n.value : a.next(); }); }
|
|
8
8
|
function _regeneratorAsyncGen(r, e, t, o, n) { return new _regeneratorAsyncIterator(_regenerator().w(r, e, t, o), n || Promise); }
|
|
9
9
|
function _regeneratorAsyncIterator(t, e) { function n(r, o, i, f) { try { var c = t[r](o), u = c.value; return u instanceof _OverloadYield ? e.resolve(u.v).then(function (t) { n("next", t, i, f); }, function (t) { n("throw", t, i, f); }) : e.resolve(u).then(function (t) { c.value = t, i(c); }, function (t) { return n("throw", t, i, f); }); } catch (t) { f(t); } } var r; this.next || (_regeneratorDefine2(_regeneratorAsyncIterator.prototype), _regeneratorDefine2(_regeneratorAsyncIterator.prototype, "function" == typeof Symbol && Symbol.asyncIterator || "@asyncIterator", function () { return this; })), _regeneratorDefine2(this, "_invoke", function (t, o, i) { function f() { return new e(function (e, r) { n(t, i, e, r); }); } return r = r ? r.then(f, f) : f(); }, !0); }
|
|
10
|
-
function _regenerator() { /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */ var e, t, r = "function" == typeof Symbol ? Symbol : {}, n = r.iterator || "@@iterator", o = r.toStringTag || "@@toStringTag"; function i(r, n, o, i) { var c = n && n.prototype instanceof Generator ? n : Generator, u = Object.create(c.prototype); return _regeneratorDefine2(u, "_invoke", function (r, n, o) { var i, c, u, f = 0, p = o || [], y = !1, G = { p: 0, n: 0, v: e, a: d, f: d.bind(e, 4), d: function d(t, r) { return i = t, c = 0, u = e, G.n = r, a; } }; function d(r, n) { for (c = r, u = n, t = 0; !y && f && !o && t < p.length; t++) { var o, i = p[t], d = G.p, l = i[2]; r > 3 ? (o = l === n) && (u = i[(c = i[4]) ? 5 : (c = 3, 3)], i[4] = i[5] = e) : i[0] <= d && ((o = r < 2 && d < i[1]) ? (c = 0, G.v = n, G.n = i[1]) : d < l && (o = r < 3 || i[0] > n || n > l) && (i[4] = r, i[5] = n, G.n = l, c = 0)); } if (o || r > 1) return a; throw y = !0, n; } return function (o, p, l) { if (f > 1) throw TypeError("Generator is already running"); for (y && 1 === p && d(p, l), c = p, u = l; (t = c < 2 ? e : u) || !y;) { i || (c ?
|
|
10
|
+
function _regenerator() { /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */ var e, t, r = "function" == typeof Symbol ? Symbol : {}, n = r.iterator || "@@iterator", o = r.toStringTag || "@@toStringTag"; function i(r, n, o, i) { var c = n && n.prototype instanceof Generator ? n : Generator, u = Object.create(c.prototype); return _regeneratorDefine2(u, "_invoke", function (r, n, o) { var i, c, u, f = 0, p = o || [], y = !1, G = { p: 0, n: 0, v: e, a: d, f: d.bind(e, 4), d: function d(t, r) { return i = t, c = 0, u = e, G.n = r, a; } }; function d(r, n) { for (c = r, u = n, t = 0; !y && f && !o && t < p.length; t++) { var o, i = p[t], d = G.p, l = i[2]; r > 3 ? (o = l === n) && (u = i[(c = i[4]) ? 5 : (c = 3, 3)], i[4] = i[5] = e) : i[0] <= d && ((o = r < 2 && d < i[1]) ? (c = 0, G.v = n, G.n = i[1]) : d < l && (o = r < 3 || i[0] > n || n > l) && (i[4] = r, i[5] = n, G.n = l, c = 0)); } if (o || r > 1) return a; throw y = !0, n; } return function (o, p, l) { if (f > 1) throw TypeError("Generator is already running"); for (y && 1 === p && d(p, l), c = p, u = l; (t = c < 2 ? e : u) || !y;) { i || (c ? (c > 1 && (G.n = c < 3 ? -1 : u), d(c, u)) : G.v = u); try { if (f = 2, i) { if (c || (o = "next"), t = i[o]) { if (!(t = t.call(i, u))) throw TypeError("iterator result is not an object"); if (!t.done) return t; u = t.value, c < 2 && (c = 0); } else 1 === c && (t = i.return) && t.call(i), c < 2 && (u = TypeError("The iterator does not provide a '" + o + "' method"), c = 1); i = e; } else if ((t = (y = G.n < 0) ? u : r.call(n, G)) !== a) break; } catch (t) { i = e, c = 1, u = t; } finally { f = 1; } } return { value: t, done: y }; }; }(r, o, i), !0), u; } var a = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} t = Object.getPrototypeOf; var c = [][n] ? t(t([][n]())) : (_regeneratorDefine2(t = {}, n, function () { return this; }), t), u = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(c); function f(e) { return Object.setPrototypeOf ? Object.setPrototypeOf(e, GeneratorFunctionPrototype) : (e.__proto__ = GeneratorFunctionPrototype, _regeneratorDefine2(e, o, "GeneratorFunction")), e.prototype = Object.create(u), e; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, _regeneratorDefine2(u, "constructor", GeneratorFunctionPrototype), _regeneratorDefine2(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = "GeneratorFunction", _regeneratorDefine2(GeneratorFunctionPrototype, o, "GeneratorFunction"), _regeneratorDefine2(u), _regeneratorDefine2(u, o, "Generator"), _regeneratorDefine2(u, n, function () { return this; }), _regeneratorDefine2(u, "toString", function () { return "[object Generator]"; }), (_regenerator = function _regenerator() { return { w: i, m: f }; })(); }
|
|
11
11
|
function _regeneratorDefine2(e, r, n, t) { var i = Object.defineProperty; try { i({}, "", {}); } catch (e) { i = 0; } _regeneratorDefine2 = function _regeneratorDefine(e, r, n, t) { function o(r, n) { _regeneratorDefine2(e, r, function (e) { return this._invoke(r, n, e); }); } r ? i ? i(e, r, { value: n, enumerable: !t, configurable: !t, writable: !t }) : e[r] = n : (o("next", 0), o("throw", 1), o("return", 2)); }, _regeneratorDefine2(e, r, n, t); }
|
|
12
12
|
function _OverloadYield(e, d) { this.v = e, this.k = d; }
|
|
13
13
|
function asyncGeneratorStep(n, t, e, r, o, a, c) { try { var i = n[a](c), u = i.value; } catch (n) { return void e(n); } i.done ? t(u) : Promise.resolve(u).then(r, o); }
|
|
@@ -136,7 +136,7 @@ export var EuiInlineEditForm = function EuiInlineEditForm(_ref) {
|
|
|
136
136
|
});
|
|
137
137
|
};
|
|
138
138
|
var saveInlineEditValue = /*#__PURE__*/function () {
|
|
139
|
-
var _ref2 = _asyncToGenerator(
|
|
139
|
+
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
140
140
|
var onSaveReturn, awaitedReturn;
|
|
141
141
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
142
142
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -63,7 +63,8 @@ var KeyPadMenu = function KeyPadMenu() {
|
|
|
63
63
|
}
|
|
64
64
|
}, ___EmotionJSX(EuiIcon, {
|
|
65
65
|
type: "grid",
|
|
66
|
-
size: "l"
|
|
66
|
+
size: "l",
|
|
67
|
+
"aria-hidden": true
|
|
67
68
|
})), ___EmotionJSX(EuiKeyPadMenuItem, {
|
|
68
69
|
"data-test-subj": "cy-keypad-button-2",
|
|
69
70
|
id: keypadButtonId__2,
|
|
@@ -74,7 +75,8 @@ var KeyPadMenu = function KeyPadMenu() {
|
|
|
74
75
|
}
|
|
75
76
|
}, ___EmotionJSX(EuiIcon, {
|
|
76
77
|
type: "grid",
|
|
77
|
-
size: "l"
|
|
78
|
+
size: "l",
|
|
79
|
+
"aria-hidden": true
|
|
78
80
|
})), ___EmotionJSX(EuiKeyPadMenuItem, {
|
|
79
81
|
"data-test-subj": "cy-keypad-button-3",
|
|
80
82
|
id: keypadButtonId__3,
|
|
@@ -85,7 +87,8 @@ var KeyPadMenu = function KeyPadMenu() {
|
|
|
85
87
|
}
|
|
86
88
|
}, ___EmotionJSX(EuiIcon, {
|
|
87
89
|
type: "grid",
|
|
88
|
-
size: "l"
|
|
90
|
+
size: "l",
|
|
91
|
+
"aria-hidden": true
|
|
89
92
|
})), ___EmotionJSX(EuiKeyPadMenuItem, {
|
|
90
93
|
"data-test-subj": "cy-keypad-link-1",
|
|
91
94
|
id: keypadButtonId__4,
|
|
@@ -97,7 +100,8 @@ var KeyPadMenu = function KeyPadMenu() {
|
|
|
97
100
|
}
|
|
98
101
|
}, ___EmotionJSX(EuiIcon, {
|
|
99
102
|
type: "link",
|
|
100
|
-
size: "l"
|
|
103
|
+
size: "l",
|
|
104
|
+
"aria-hidden": true
|
|
101
105
|
})), ___EmotionJSX(EuiKeyPadMenuItem, {
|
|
102
106
|
"data-test-subj": "cy-keypad-link-2",
|
|
103
107
|
id: keypadButtonId__5,
|
|
@@ -109,7 +113,8 @@ var KeyPadMenu = function KeyPadMenu() {
|
|
|
109
113
|
}
|
|
110
114
|
}, ___EmotionJSX(EuiIcon, {
|
|
111
115
|
type: "link",
|
|
112
|
-
size: "l"
|
|
116
|
+
size: "l",
|
|
117
|
+
"aria-hidden": true
|
|
113
118
|
})), ___EmotionJSX(EuiKeyPadMenuItem, {
|
|
114
119
|
"data-test-subj": "cy-keypad-link-3",
|
|
115
120
|
id: keypadButtonId__6,
|
|
@@ -118,7 +123,8 @@ var KeyPadMenu = function KeyPadMenu() {
|
|
|
118
123
|
isSelected: selectedID === keypadButtonId__6
|
|
119
124
|
}, ___EmotionJSX(EuiIcon, {
|
|
120
125
|
type: "link",
|
|
121
|
-
size: "l"
|
|
126
|
+
size: "l",
|
|
127
|
+
"aria-hidden": true
|
|
122
128
|
}))));
|
|
123
129
|
};
|
|
124
130
|
beforeEach(function () {
|
|
@@ -70,7 +70,7 @@ export var EuiListGroup = function EuiListGroup(_ref) {
|
|
|
70
70
|
var listItemsOrChildren = renderedListItems ||
|
|
71
71
|
// Note that there's no point in memoizing `children`, as JSX changes every rerender
|
|
72
72
|
React.Children.map(children, function (child) {
|
|
73
|
-
if (
|
|
73
|
+
if (/*#__PURE__*/React.isValidElement(child)) {
|
|
74
74
|
return cloneElementWithCss(child, _objectSpread(_objectSpread({
|
|
75
75
|
// we're passing the parent `color` and `size` down to the children
|
|
76
76
|
// so that they can inherit it if they don't have one
|
|
@@ -285,7 +285,8 @@ export var EuiListItemLayout = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
285
285
|
css: styles.euiListItemLayout__icon,
|
|
286
286
|
className: "euiListItemLayout__icon",
|
|
287
287
|
color: color,
|
|
288
|
-
type: icon
|
|
288
|
+
type: icon,
|
|
289
|
+
"aria-hidden": true
|
|
289
290
|
});
|
|
290
291
|
}
|
|
291
292
|
}, [checked, isSingleSelection, showIndicator, isSelected, isDisabled, styles]);
|
|
@@ -33,7 +33,8 @@ export var EuiLoadingElastic = function EuiLoadingElastic(_ref) {
|
|
|
33
33
|
"aria-label": ariaLabel || defaultLabel
|
|
34
34
|
}, rest), ___EmotionJSX(EuiIcon, {
|
|
35
35
|
type: "logoElastic",
|
|
36
|
-
size: size
|
|
36
|
+
size: size,
|
|
37
|
+
"aria-hidden": true
|
|
37
38
|
}));
|
|
38
39
|
};
|
|
39
40
|
EuiLoadingElastic.propTypes = {
|
|
@@ -21,7 +21,7 @@ var loadingPadding = {
|
|
|
21
21
|
export var euiLoadingLogoStyles = function euiLoadingLogoStyles(_ref) {
|
|
22
22
|
var euiTheme = _ref.euiTheme;
|
|
23
23
|
return {
|
|
24
|
-
euiLoadingLogo: /*#__PURE__*/css("position:relative;display:inline-block;", euiCanAnimate, "{&::before,&::after{position:absolute;content:'';inline-size:90%;inset-inline-start:5%;border-radius:50%;opacity:0.2;z-index:1;}&::before{box-shadow:0 0 ", euiTheme.size.s, " ", euiTheme.colors.fullShade, ";animation:1s ", loadingPulsateAndFade, " ", euiTheme.animation.resistance, " infinite;}&::after{background-color:", euiTheme.colors.fullShade, ";animation:1s ", loadingPulsate, " ", euiTheme.animation.resistance, " infinite;}};label:euiLoadingLogo;"),
|
|
24
|
+
euiLoadingLogo: /*#__PURE__*/css("position:relative;display:inline-block;", euiCanAnimate, "{&::before,&::after{position:absolute;content:'';inline-size:90%;inset-inline-start:5%;border-radius:50%;opacity:0.2;z-index:", Number(euiTheme.levels.content) + 1, ";}&::before{box-shadow:0 0 ", euiTheme.size.s, " ", euiTheme.colors.fullShade, ";animation:1s ", loadingPulsateAndFade, " ", euiTheme.animation.resistance, " infinite;}&::after{background-color:", euiTheme.colors.fullShade, ";animation:1s ", loadingPulsate, " ", euiTheme.animation.resistance, " infinite;}};label:euiLoadingLogo;"),
|
|
25
25
|
euiLoadingLogo__icon: /*#__PURE__*/css("display:inline-block;", euiCanAnimate, "{animation:1s ", loadingBounce, " ", euiTheme.animation.resistance, " infinite;};label:euiLoadingLogo__icon;"),
|
|
26
26
|
/**
|
|
27
27
|
* 1. Requires pixel math for animation
|
|
@@ -31,7 +31,8 @@ export var tooltipMarkdownRenderer = function tooltipMarkdownRenderer(_ref) {
|
|
|
31
31
|
type: "question"
|
|
32
32
|
// This is to offset the tooltip icon, which isn't perfectly centered
|
|
33
33
|
,
|
|
34
|
-
css: _ref2
|
|
34
|
+
css: _ref2,
|
|
35
|
+
"aria-hidden": true
|
|
35
36
|
}))));
|
|
36
37
|
};
|
|
37
38
|
tooltipMarkdownRenderer.propTypes = {
|
|
@@ -22,6 +22,6 @@ export var euiModalStyles = function euiModalStyles(euiThemeContext) {
|
|
|
22
22
|
reverse: true,
|
|
23
23
|
borderAllInHighContrastMode: true
|
|
24
24
|
}), " inset-block-start:auto;};label:confirmation;"),
|
|
25
|
-
euiModal__closeIcon: /*#__PURE__*/css("position:absolute;inset-inline-end:", euiTheme.size.m, ";inset-block-start:", euiTheme.size.m, ";z-index:3;;label:euiModal__closeIcon;")
|
|
25
|
+
euiModal__closeIcon: /*#__PURE__*/css("position:absolute;inset-inline-end:", euiTheme.size.m, ";inset-block-start:", euiTheme.size.m, ";z-index:", Number(euiTheme.levels.content) + 3, ";;label:euiModal__closeIcon;")
|
|
26
26
|
};
|
|
27
27
|
};
|