@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
|
@@ -24,7 +24,7 @@ var _custom_render = require("./custom_render");
|
|
|
24
24
|
* instead of the `container` returned by RTL's render()
|
|
25
25
|
*/
|
|
26
26
|
var waitForEuiPopoverOpen = exports.waitForEuiPopoverOpen = /*#__PURE__*/function () {
|
|
27
|
-
var _ref = (0, _asyncToGenerator2.default)(
|
|
27
|
+
var _ref = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee() {
|
|
28
28
|
return _regenerator.default.wrap(function _callee$(_context) {
|
|
29
29
|
while (1) switch (_context.prev = _context.next) {
|
|
30
30
|
case 0:
|
|
@@ -46,7 +46,7 @@ var waitForEuiPopoverOpen = exports.waitForEuiPopoverOpen = /*#__PURE__*/functio
|
|
|
46
46
|
};
|
|
47
47
|
}();
|
|
48
48
|
var waitForEuiPopoverClose = exports.waitForEuiPopoverClose = /*#__PURE__*/function () {
|
|
49
|
-
var _ref2 = (0, _asyncToGenerator2.default)(
|
|
49
|
+
var _ref2 = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee2() {
|
|
50
50
|
return _regenerator.default.wrap(function _callee2$(_context2) {
|
|
51
51
|
while (1) switch (_context2.prev = _context2.next) {
|
|
52
52
|
case 0:
|
|
@@ -102,7 +102,7 @@ var focusEuiToolTipTrigger = exports.focusEuiToolTipTrigger = function focusEuiT
|
|
|
102
102
|
*/
|
|
103
103
|
|
|
104
104
|
var showEuiComboBoxOptions = exports.showEuiComboBoxOptions = /*#__PURE__*/function () {
|
|
105
|
-
var _ref3 = (0, _asyncToGenerator2.default)(
|
|
105
|
+
var _ref3 = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee3() {
|
|
106
106
|
return _regenerator.default.wrap(function _callee3$(_context3) {
|
|
107
107
|
while (1) switch (_context3.prev = _context3.next) {
|
|
108
108
|
case 0:
|
|
@@ -130,7 +130,7 @@ var showEuiComboBoxOptions = exports.showEuiComboBoxOptions = /*#__PURE__*/funct
|
|
|
130
130
|
*/
|
|
131
131
|
|
|
132
132
|
var waitForEuiContextMenuPanelTransition = exports.waitForEuiContextMenuPanelTransition = /*#__PURE__*/function () {
|
|
133
|
-
var _ref4 = (0, _asyncToGenerator2.default)(
|
|
133
|
+
var _ref4 = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee4() {
|
|
134
134
|
var getPanels;
|
|
135
135
|
return _regenerator.default.wrap(function _callee4$(_context4) {
|
|
136
136
|
while (1) switch (_context4.prev = _context4.next) {
|
|
@@ -7,7 +7,11 @@ import * as dataTestSubjQueries from './data_test_subj_queries';
|
|
|
7
7
|
* @see https://testing-library.com/docs/react-testing-library/setup#custom-render
|
|
8
8
|
* @see https://testing-library.com/docs/react-testing-library/setup#add-custom-queries
|
|
9
9
|
*/
|
|
10
|
-
declare const customRender: (
|
|
10
|
+
declare const customRender: (
|
|
11
|
+
ui: ReactElement,
|
|
12
|
+
{ queries: renderQueries, ...options }?: RenderOptions
|
|
13
|
+
) => import('@testing-library/react').RenderResult<
|
|
14
|
+
{
|
|
11
15
|
getByLabelText: typeof queries.getByLabelText;
|
|
12
16
|
getAllByLabelText: typeof queries.getAllByLabelText;
|
|
13
17
|
queryByLabelText: typeof queries.queryByLabelText;
|
|
@@ -56,13 +60,30 @@ declare const customRender: (ui: ReactElement, { queries: renderQueries, ...opti
|
|
|
56
60
|
queryAllByTestId: typeof queries.queryAllByTestId;
|
|
57
61
|
findByTestId: typeof queries.findByTestId;
|
|
58
62
|
findAllByTestId: typeof queries.findAllByTestId;
|
|
59
|
-
queryByTestSubject: import(
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
63
|
+
queryByTestSubject: import('@testing-library/react').QueryBy<
|
|
64
|
+
[import('@testing-library/react').Matcher]
|
|
65
|
+
>;
|
|
66
|
+
queryAllByTestSubject: (
|
|
67
|
+
container: HTMLElement,
|
|
68
|
+
id: import('@testing-library/react').Matcher,
|
|
69
|
+
options?: import('@testing-library/react').MatcherOptions | undefined
|
|
70
|
+
) => HTMLElement[];
|
|
71
|
+
getByTestSubject: import('@testing-library/react').GetBy<
|
|
72
|
+
[import('@testing-library/react').Matcher]
|
|
73
|
+
>;
|
|
74
|
+
getAllByTestSubject: import('@testing-library/react').GetAllBy<
|
|
75
|
+
[import('@testing-library/react').Matcher]
|
|
76
|
+
>;
|
|
77
|
+
findAllByTestSubject: import('@testing-library/react').FindAllBy<
|
|
78
|
+
[import('@testing-library/react').Matcher]
|
|
79
|
+
>;
|
|
80
|
+
findByTestSubject: import('@testing-library/react').FindBy<
|
|
81
|
+
[import('@testing-library/react').Matcher]
|
|
82
|
+
>;
|
|
83
|
+
},
|
|
84
|
+
HTMLElement,
|
|
85
|
+
HTMLElement
|
|
86
|
+
>;
|
|
66
87
|
export { customRender as render };
|
|
67
88
|
/**
|
|
68
89
|
* Custom screen util with EUI query helpers
|
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
import type { Matcher, MatcherOptions } from '@testing-library/react';
|
|
2
2
|
import { queryHelpers } from '@testing-library/react';
|
|
3
|
-
declare const queryAllByTestSubject: (
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
declare const queryAllByTestSubject: (
|
|
4
|
+
container: HTMLElement,
|
|
5
|
+
id: Matcher,
|
|
6
|
+
options?: MatcherOptions | undefined
|
|
7
|
+
) => HTMLElement[];
|
|
8
|
+
declare const queryByTestSubject: queryHelpers.QueryBy<[Matcher]>,
|
|
9
|
+
getAllByTestSubject: queryHelpers.GetAllBy<[Matcher]>,
|
|
10
|
+
getByTestSubject: queryHelpers.GetBy<[Matcher]>,
|
|
11
|
+
findAllByTestSubject: queryHelpers.FindAllBy<[Matcher]>,
|
|
12
|
+
findByTestSubject: queryHelpers.FindBy<[Matcher]>;
|
|
13
|
+
export {
|
|
14
|
+
queryByTestSubject,
|
|
15
|
+
queryAllByTestSubject,
|
|
16
|
+
getByTestSubject,
|
|
17
|
+
getAllByTestSubject,
|
|
18
|
+
findAllByTestSubject,
|
|
19
|
+
findByTestSubject,
|
|
20
|
+
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elastic/eui",
|
|
3
3
|
"description": "Elastic UI Component Library",
|
|
4
|
-
"version": "123.
|
|
4
|
+
"version": "123.6.0",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"main": "lib",
|
|
7
7
|
"module": "es",
|
|
@@ -33,7 +33,6 @@
|
|
|
33
33
|
"test": "yarn lint && yarn test-unit",
|
|
34
34
|
"test-ci": "yarn test && yarn test-cypress",
|
|
35
35
|
"test-unit": "node ./scripts/test-unit",
|
|
36
|
-
"test-staged": "yarn build:workspaces && yarn lint && node scripts/test-staged.js",
|
|
37
36
|
"test-cypress": "node ./scripts/test-cypress",
|
|
38
37
|
"test-cypress-dev": "yarn test-cypress --dev",
|
|
39
38
|
"test-cypress-a11y": "yarn test-cypress --a11y",
|
|
@@ -43,7 +42,6 @@
|
|
|
43
42
|
"build-storybook": "NODE_OPTIONS=--max-old-space-size=4096 storybook build",
|
|
44
43
|
"serve-storybook": "http-server storybook-static --port 6006 --silent",
|
|
45
44
|
"test-storybook": "test-storybook",
|
|
46
|
-
"pre-push": "yarn test-staged",
|
|
47
45
|
"prerelease": "node ./scripts/prerelease.mjs"
|
|
48
46
|
},
|
|
49
47
|
"repository": {
|
|
@@ -107,7 +105,7 @@
|
|
|
107
105
|
"@elastic/datemath": "^5.0.3",
|
|
108
106
|
"@elastic/eslint-plugin-eui": "4.0.0",
|
|
109
107
|
"@elastic/eui-illustrations": "1.1.0",
|
|
110
|
-
"@elastic/eui-theme-borealis": "8.
|
|
108
|
+
"@elastic/eui-theme-borealis": "8.3.0",
|
|
111
109
|
"@emotion/babel-plugin": "^11.11.0",
|
|
112
110
|
"@emotion/babel-preset-css-prop": "^11.11.0",
|
|
113
111
|
"@emotion/cache": "^11.11.0",
|
|
@@ -115,7 +113,7 @@
|
|
|
115
113
|
"@emotion/eslint-plugin": "^11.11.0",
|
|
116
114
|
"@emotion/jest": "^11.11.0",
|
|
117
115
|
"@emotion/react": "^11.11.0",
|
|
118
|
-
"@faker-js/faker": "^
|
|
116
|
+
"@faker-js/faker": "^10.3.0",
|
|
119
117
|
"@fontsource-variable/inter": "^5.3.0",
|
|
120
118
|
"@fontsource-variable/roboto-mono": "^5.3.0",
|
|
121
119
|
"@playwright/test": "^1.44.0",
|
|
@@ -146,7 +144,7 @@
|
|
|
146
144
|
"@typescript-eslint/eslint-plugin": "^5.59.7",
|
|
147
145
|
"@typescript-eslint/parser": "^5.59.7",
|
|
148
146
|
"@vitejs/plugin-react": "^5.2.0",
|
|
149
|
-
"autoprefixer": "^
|
|
147
|
+
"autoprefixer": "^10.4.27",
|
|
150
148
|
"axe-core": "^4.9.0",
|
|
151
149
|
"babel-jest": "^29.7.0",
|
|
152
150
|
"babel-loader": "^9.1.2",
|
|
@@ -157,10 +155,10 @@
|
|
|
157
155
|
"buildkite-test-collector": "^1.7.2",
|
|
158
156
|
"core-js": "^3.6.5",
|
|
159
157
|
"cross-env": "^7.0.2",
|
|
160
|
-
"cypress": "^
|
|
161
|
-
"cypress-axe": "^1.
|
|
158
|
+
"cypress": "^15.21.2",
|
|
159
|
+
"cypress-axe": "^1.7.0",
|
|
162
160
|
"cypress-plugin-tab": "^1.0.5",
|
|
163
|
-
"cypress-real-events": "
|
|
161
|
+
"cypress-real-events": "1.7.0",
|
|
164
162
|
"dedent": "^0.7.0",
|
|
165
163
|
"dts-generator": "^3.0.0",
|
|
166
164
|
"eslint": "^8.41.0",
|
|
@@ -186,7 +184,7 @@
|
|
|
186
184
|
"moment": "^2.27.0",
|
|
187
185
|
"pegjs": "^0.10.0",
|
|
188
186
|
"postcss": "^8.4.19",
|
|
189
|
-
"postcss-styled-syntax": "^0.4
|
|
187
|
+
"postcss-styled-syntax": "^0.7.4",
|
|
190
188
|
"prettier": "^2.8.8",
|
|
191
189
|
"process": "^0.11.10",
|
|
192
190
|
"react": "^18.2.0",
|
|
@@ -210,7 +208,7 @@
|
|
|
210
208
|
},
|
|
211
209
|
"peerDependencies": {
|
|
212
210
|
"@elastic/datemath": "^5.0.2",
|
|
213
|
-
"@elastic/eui-theme-borealis": "8.
|
|
211
|
+
"@elastic/eui-theme-borealis": "8.3.0",
|
|
214
212
|
"@emotion/css": "11.x",
|
|
215
213
|
"@emotion/react": "11.x",
|
|
216
214
|
"@types/react": "^17.0 || ^18.0",
|
|
@@ -56,7 +56,7 @@ var EuiLiveAnnouncer = exports.EuiLiveAnnouncer = function EuiLiveAnnouncer(_ref
|
|
|
56
56
|
(0, _react.useEffect)(function () {
|
|
57
57
|
var timeout;
|
|
58
58
|
if (children) {
|
|
59
|
-
setContent(
|
|
59
|
+
setContent(/*#__PURE__*/(0, _react.isValidElement)(children) ? children : (0, _react2.jsx)(_react.default.Fragment, null, children));
|
|
60
60
|
}
|
|
61
61
|
if (clearAfterMs) {
|
|
62
62
|
timeout = setTimeout(function () {
|
|
@@ -30,7 +30,7 @@ for (var i = 0; i < 20; i++) {
|
|
|
30
30
|
id: i + 1,
|
|
31
31
|
firstName: _faker.faker.person.firstName(),
|
|
32
32
|
lastName: _faker.faker.person.lastName(),
|
|
33
|
-
github: _faker.faker.internet.
|
|
33
|
+
github: _faker.faker.internet.username(),
|
|
34
34
|
dateOfBirth: _faker.faker.date.past(),
|
|
35
35
|
online: _faker.faker.datatype.boolean(),
|
|
36
36
|
location: {
|
|
@@ -26,7 +26,7 @@ for (var i = 0; i < 20; i++) {
|
|
|
26
26
|
id: i + 1,
|
|
27
27
|
firstName: _faker.faker.person.firstName(),
|
|
28
28
|
lastName: _faker.faker.person.lastName(),
|
|
29
|
-
github: _faker.faker.internet.
|
|
29
|
+
github: _faker.faker.internet.username(),
|
|
30
30
|
dateOfBirth: _faker.faker.date.past(),
|
|
31
31
|
online: _faker.faker.datatype.boolean(),
|
|
32
32
|
location: {
|
|
@@ -26,7 +26,7 @@ var _component_defaults = require("../provider/component_defaults");
|
|
|
26
26
|
var _react2 = require("@emotion/react");
|
|
27
27
|
var _excluded = ["schema"],
|
|
28
28
|
_excluded2 = ["onChange"],
|
|
29
|
-
_excluded3 = ["columns", "loading", "noItemsMessage", "error", "selection", "compressed", "pagination", "sorting", "itemIdToExpandedRowMap", "itemId", "rowProps", "cellProps", "tableLayout", "items", "search", "searchFormat", "onTableChange", "executeQueryOptions", "allowNeutralSort", "childrenBetween"];
|
|
29
|
+
_excluded3 = ["columns", "loading", "noItemsMessage", "error", "selection", "compressed", "pagination", "sorting", "itemIdToExpandedRowMap", "itemId", "rowProps", "cellProps", "tableLayout", "items", "search", "searchFormat", "onTableChange", "executeQueryOptions", "allowNeutralSort", "childrenBetween", "tableCaption"];
|
|
30
30
|
var cache;
|
|
31
31
|
function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var r, c, a = Object.defineProperty, n = { __proto__: null, default: e }; if (Object(e) !== e) return n; if (cache || "function" != typeof WeakMap || (cache = new WeakMap()), cache) { if (cache.has(e)) return cache.get(e); cache.set(e, n); } for (c in e) "default" !== c && {}.hasOwnProperty.call(e, c) && ((r = a && Object.getOwnPropertyDescriptor(e, c)) && (r.get || r.set) ? a(n, c, r) : n[c] = e[c]); return n; }
|
|
32
32
|
function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); }
|
|
@@ -433,6 +433,7 @@ var EuiInMemoryTable = exports.EuiInMemoryTable = /*#__PURE__*/function (_Compon
|
|
|
433
433
|
executeQueryOptions = _this$props2.executeQueryOptions,
|
|
434
434
|
allowNeutralSort = _this$props2.allowNeutralSort,
|
|
435
435
|
childrenBetween = _this$props2.childrenBetween,
|
|
436
|
+
tableCaption = _this$props2.tableCaption,
|
|
436
437
|
rest = (0, _objectWithoutProperties2.default)(_this$props2, _excluded3);
|
|
437
438
|
var _this$state3 = this.state,
|
|
438
439
|
pageIndex = _this$state3.pageIndex,
|
|
@@ -480,7 +481,8 @@ var EuiInMemoryTable = exports.EuiInMemoryTable = /*#__PURE__*/function (_Compon
|
|
|
480
481
|
noItemsMessage: noItemsMessage,
|
|
481
482
|
tableLayout: tableLayout,
|
|
482
483
|
compressed: compressed,
|
|
483
|
-
itemIdToExpandedRowMap: itemIdToExpandedRowMap
|
|
484
|
+
itemIdToExpandedRowMap: itemIdToExpandedRowMap,
|
|
485
|
+
tableCaption: tableCaption
|
|
484
486
|
}, rest));
|
|
485
487
|
if (!searchBar) {
|
|
486
488
|
return table;
|
|
@@ -25,7 +25,7 @@ var euiBottomBarStyles = exports.euiBottomBarStyles = function euiBottomBarStyle
|
|
|
25
25
|
// Base
|
|
26
26
|
// `color` is inherited from the wrapping `EuiThemeProvider colorMode="dark"`
|
|
27
27
|
euiBottomBar: /*#__PURE__*/(0, _react.css)("background-color:", euiTheme.components.bottomBarBackground, ";", (0, _global_styling.logicalCSS)('border-top', euiTheme.border.thin), " ", (0, _high_contrast.highContrastModeStyles)(euiThemeContext, {
|
|
28
|
-
none: (0, _euiThemeCommon.
|
|
28
|
+
none: (0, _euiThemeCommon.euiShadowXSmall)(euiThemeContext, {
|
|
29
29
|
border: 'none'
|
|
30
30
|
})
|
|
31
31
|
}), "clip-path:polygon(0 -100vh, 100% -100vh, 100% 100%, 0 100%);", _global_styling.euiCanAnimate, "{animation:", euiBottomBarAppear, " ", euiTheme.animation.slow, " ", euiTheme.animation.resistance, ";};label:euiBottomBar;"),
|
|
@@ -57,7 +57,7 @@ var euiBreadcrumbContentStyles = exports.euiBreadcrumbContentStyles = function e
|
|
|
57
57
|
page: /*#__PURE__*/(0, _react.css)("&:is(a):focus{", (0, _global_styling.euiFocusRing)(euiThemeContext, 'inset'), ";}&:is(button):focus{", (0, _global_styling.euiFocusRing)(euiThemeContext, 'center'), ";};label:page;"),
|
|
58
58
|
application: /*#__PURE__*/(0, _react.css)((0, _global_styling.euiFontSize)(euiThemeContext, 'xs'), " font-weight:", euiTheme.font.weight.medium, ";background-color:", applicationTextColors.backgroundColor, ";", (0, _high_contrast.highContrastModeStyles)(euiThemeContext, {
|
|
59
59
|
preferred: "border: ".concat(euiTheme.border.width.thin, " solid currentColor;")
|
|
60
|
-
}), " color:", applicationTextColors.color, ";line-height:", euiTheme.size.base, ";", (0, _global_styling.logicalCSS)('padding-vertical', euiTheme.size.xs), " ", (0, _global_styling.logicalCSS)('padding-horizontal', euiTheme.size.base), " &:is(a, button){background-color:", applicationButtonColors.backgroundColor, ";color:", applicationButtonColors.color, ";text-decoration:none;}&:focus{", (0, _global_styling.euiFocusRing)(euiThemeContext, 'inset'), ";}&:focus-visible{border-radius:", euiTheme.border.radius.control, ";clip-path:none;.euiBreadcrumb:has(&){z-index:2;", (0, _high_contrast.highContrastModeStyles)(euiThemeContext, {
|
|
60
|
+
}), " color:", applicationTextColors.color, ";line-height:", euiTheme.size.base, ";", (0, _global_styling.logicalCSS)('padding-vertical', euiTheme.size.xs), " ", (0, _global_styling.logicalCSS)('padding-horizontal', euiTheme.size.base), " &:is(a, button){background-color:", applicationButtonColors.backgroundColor, ";color:", applicationButtonColors.color, ";text-decoration:none;}&:focus{", (0, _global_styling.euiFocusRing)(euiThemeContext, 'inset'), ";}&:focus-visible{border-radius:", euiTheme.border.radius.control, ";clip-path:none;.euiBreadcrumb:has(&){z-index:", Number(euiTheme.levels.content) + 2, ";", (0, _high_contrast.highContrastModeStyles)(euiThemeContext, {
|
|
61
61
|
preferred: 'filter: none;'
|
|
62
62
|
}), ";}};label:application;"),
|
|
63
63
|
applicationStyles: {
|
|
@@ -71,6 +71,8 @@ var EuiButtonDisplayContent = exports.EuiButtonDisplayContent = function EuiButt
|
|
|
71
71
|
type: iconType,
|
|
72
72
|
size: iconSize,
|
|
73
73
|
color: "inherit" // forces the icon to inherit its parent color
|
|
74
|
+
,
|
|
75
|
+
"aria-hidden": true
|
|
74
76
|
});
|
|
75
77
|
}
|
|
76
78
|
}, [iconType, iconSize, isLoading, isDisabled]);
|
|
@@ -39,7 +39,7 @@ function flattenButtonGroupChildren(children) {
|
|
|
39
39
|
if (! /*#__PURE__*/_react.default.isValidElement(child)) return;
|
|
40
40
|
if (child.type === _react.default.Fragment) {
|
|
41
41
|
_react.default.Children.forEach(child.props.children, function (fragmentChild) {
|
|
42
|
-
if (
|
|
42
|
+
if (/*#__PURE__*/_react.default.isValidElement(fragmentChild)) result.push(fragmentChild);
|
|
43
43
|
});
|
|
44
44
|
} else {
|
|
45
45
|
result.push(child);
|
|
@@ -12,22 +12,13 @@ var _global_styling = require("../../../global_styling");
|
|
|
12
12
|
var _button = require("../../../global_styling/mixins/_button");
|
|
13
13
|
var _accessibility = require("../../accessibility");
|
|
14
14
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
15
|
-
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
16
|
-
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)."; } /*
|
|
15
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } /*
|
|
17
16
|
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
18
17
|
* or more contributor license agreements. Licensed under the Elastic License
|
|
19
18
|
* 2.0 and the Server Side Public License, v 1; you may not use this file except
|
|
20
19
|
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
|
21
20
|
* Side Public License, v 1.
|
|
22
21
|
*/
|
|
23
|
-
var _ref = process.env.NODE_ENV === "production" ? {
|
|
24
|
-
name: "1ockoqy-tooltipWrapper",
|
|
25
|
-
styles: "min-inline-size:0;&:has(:focus-visible){z-index:1;};label:tooltipWrapper;"
|
|
26
|
-
} : {
|
|
27
|
-
name: "1ockoqy-tooltipWrapper",
|
|
28
|
-
styles: "min-inline-size:0;&:has(:focus-visible){z-index:1;};label:tooltipWrapper;",
|
|
29
|
-
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
30
|
-
};
|
|
31
22
|
var euiButtonGroupButtonStyles = exports.euiButtonGroupButtonStyles = function euiButtonGroupButtonStyles(euiThemeContext) {
|
|
32
23
|
var euiTheme = euiThemeContext.euiTheme,
|
|
33
24
|
highContrastMode = euiThemeContext.highContrastMode;
|
|
@@ -65,7 +56,7 @@ var euiButtonGroupButtonStyles = exports.euiButtonGroupButtonStyles = function e
|
|
|
65
56
|
}), ";};label:isSelected;"),
|
|
66
57
|
disabledAndSelected: /*#__PURE__*/(0, _react.css)("color:", euiTheme.colors.textDisabled, ";background-color:", euiTheme.components.buttonGroupBackgroundDisabledSelected, ";border:", highContrastMode ? "".concat(euiTheme.border.width.thin, " solid ").concat(euiTheme.components.buttonGroupBackgroundDisabledSelected) : "".concat(euiTheme.border.width.thin, " solid ").concat(euiTheme.colors.borderBasePlain), ";;label:disabledAndSelected;"),
|
|
67
58
|
// Tooltip anchor wrapper
|
|
68
|
-
tooltipWrapper:
|
|
59
|
+
tooltipWrapper: /*#__PURE__*/(0, _react.css)("min-inline-size:0;&:has(:focus-visible){z-index:", Number(euiTheme.levels.content) + 1, ";};label:tooltipWrapper;"),
|
|
69
60
|
// Text wrapper
|
|
70
61
|
text: {
|
|
71
62
|
euiButtonGroupButton__text: /*#__PURE__*/(0, _react.css)((0, _global_styling.euiTextShift)('bold', 'data-text', euiTheme), ";;label:euiButtonGroupButton__text;"),
|
|
@@ -53,7 +53,8 @@ var Card = function Card() {
|
|
|
53
53
|
"data-test-subj": "cy-card-1",
|
|
54
54
|
icon: (0, _react2.jsx)(_icon.EuiIcon, {
|
|
55
55
|
size: "xxl",
|
|
56
|
-
type: "logoSketch"
|
|
56
|
+
type: "logoSketch",
|
|
57
|
+
"aria-hidden": true
|
|
57
58
|
}),
|
|
58
59
|
title: "Sketch",
|
|
59
60
|
description: "Example of a short card description.",
|
|
@@ -70,7 +71,8 @@ var Card = function Card() {
|
|
|
70
71
|
})), (0, _react2.jsx)(_flex.EuiFlexItem, null, (0, _react2.jsx)(_card.EuiCard, {
|
|
71
72
|
icon: (0, _react2.jsx)(_icon.EuiIcon, {
|
|
72
73
|
size: "xxl",
|
|
73
|
-
type: "logoGCP"
|
|
74
|
+
type: "logoGCP",
|
|
75
|
+
"aria-hidden": true
|
|
74
76
|
}),
|
|
75
77
|
title: "Google",
|
|
76
78
|
description: "Example of a longer card description. See how the footers stay lined up.",
|
|
@@ -87,7 +89,8 @@ var Card = function Card() {
|
|
|
87
89
|
})), (0, _react2.jsx)(_flex.EuiFlexItem, null, (0, _react2.jsx)(_card.EuiCard, {
|
|
88
90
|
icon: (0, _react2.jsx)(_icon.EuiIcon, {
|
|
89
91
|
size: "xxl",
|
|
90
|
-
type: "logoAerospike"
|
|
92
|
+
type: "logoAerospike",
|
|
93
|
+
"aria-hidden": true
|
|
91
94
|
}),
|
|
92
95
|
title: "Not Adobe",
|
|
93
96
|
description: "Example of a short card description.",
|
|
@@ -112,7 +112,7 @@ var EuiCard = exports.EuiCard = function EuiCard(_ref) {
|
|
|
112
112
|
|
|
113
113
|
var imageNode;
|
|
114
114
|
if (image && layout === 'vertical') {
|
|
115
|
-
if (
|
|
115
|
+
if (/*#__PURE__*/(0, _react.isValidElement)(image) || typeof image === 'string') {
|
|
116
116
|
var imageStyles = [styles.image.euiCard__image, display === 'transparent' && styles.image.transparent];
|
|
117
117
|
imageNode = (0, _react2.jsx)("div", {
|
|
118
118
|
className: "euiCard__image",
|
|
@@ -164,7 +164,7 @@ var euiCardBetaBadgeStyles = exports.euiCardBetaBadgeStyles = function euiCardBe
|
|
|
164
164
|
var padding = (0, _global_styling.euiPaddingSize)(euiThemeContext, paddingSize);
|
|
165
165
|
return {
|
|
166
166
|
hasBetaBadge: /*#__PURE__*/(0, _react.css)("position:relative;overflow:visible;", (0, _global_styling.logicalCSS)('padding-top', "calc(".concat(padding, " + ").concat(euiTheme.size.s, ")")), ";;label:hasBetaBadge;"),
|
|
167
|
-
euiCard__betaBadgeAnchor: /*#__PURE__*/(0, _react.css)("line-height:0;position:absolute;", (0, _global_styling.logicalCSS)('top', '0'), " ", (0, _global_styling.logicalCSS)('left', '50%'), " transform:translateX(-50%) translateY(-50%);z-index:3;", (0, _global_styling.logicalCSS)('min-width', "min(30%, ".concat(euiTheme.base * 7, "px)")), " ", (0, _global_styling.logicalCSS)('max-width', "calc(100% - (".concat(padding, " * 2))")), ";;label:euiCard__betaBadgeAnchor;"),
|
|
167
|
+
euiCard__betaBadgeAnchor: /*#__PURE__*/(0, _react.css)("line-height:0;position:absolute;", (0, _global_styling.logicalCSS)('top', '0'), " ", (0, _global_styling.logicalCSS)('left', '50%'), " transform:translateX(-50%) translateY(-50%);z-index:", Number(euiTheme.levels.content) + 3, ";", (0, _global_styling.logicalCSS)('min-width', "min(30%, ".concat(euiTheme.base * 7, "px)")), " ", (0, _global_styling.logicalCSS)('max-width', "calc(100% - (".concat(padding, " * 2))")), ";;label:euiCard__betaBadgeAnchor;"),
|
|
168
168
|
euiCard__betaBadge: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('width', '100%'), ";;label:euiCard__betaBadge;")
|
|
169
169
|
};
|
|
170
170
|
};
|
|
@@ -63,7 +63,8 @@ var EuiCodeBlockAnnotation = exports.EuiCodeBlockAnnotation = function EuiCodeBl
|
|
|
63
63
|
}, (0, _react2.jsx)(_icon.EuiIcon, {
|
|
64
64
|
type: AnnotationInfoIcon,
|
|
65
65
|
size: "s",
|
|
66
|
-
color: iconColor
|
|
66
|
+
color: iconColor,
|
|
67
|
+
"aria-hidden": true
|
|
67
68
|
})),
|
|
68
69
|
zIndex: Number(euiTheme.levels.mask) + 1 // Ensure fullscreen annotation popovers sit above the mask
|
|
69
70
|
,
|
|
@@ -25,7 +25,7 @@ var euiSaturationStyles = exports.euiSaturationStyles = function euiSaturationSt
|
|
|
25
25
|
return x - 1;
|
|
26
26
|
});
|
|
27
27
|
return {
|
|
28
|
-
euiSaturation: /*#__PURE__*/(0, _react.css)("z-index:3;position:relative;aspect-ratio:1/1;", (0, _global_styling.logicalCSS)('width', '100%'), " border-radius:", borderRadius, ";touch-action:none;&:focus,&:focus-within{outline:none;.euiSaturation__indicator{", (0, _high_contrast.highContrastModeStyles)(euiThemeContext, {
|
|
28
|
+
euiSaturation: /*#__PURE__*/(0, _react.css)("z-index:", Number(euiTheme.levels.content) + 3, ";position:relative;aspect-ratio:1/1;", (0, _global_styling.logicalCSS)('width', '100%'), " border-radius:", borderRadius, ";touch-action:none;&:focus,&:focus-within{outline:none;.euiSaturation__indicator{", (0, _high_contrast.highContrastModeStyles)(euiThemeContext, {
|
|
29
29
|
none: "\n outline: none; /* Standardize indicator focus ring */\n box-shadow: 0 0 0 ".concat(euiTheme.focus.width, " ").concat(euiTheme.colors.primary, ";\n border-color: ").concat(euiTheme.colors.primary, ";\n "),
|
|
30
30
|
preferred: "\n outline: ".concat(euiTheme.border.width.thin, " solid ").concat(euiTheme.colors.plainDark, ";\n outline-offset: 0;\n ")
|
|
31
31
|
}), ";}}", (0, _high_contrast.highContrastModeStyles)(euiThemeContext, {
|
|
@@ -36,7 +36,7 @@ var euiSaturationStyles = exports.euiSaturationStyles = function euiSaturationSt
|
|
|
36
36
|
}), ";;label:euiSaturation;"),
|
|
37
37
|
euiSaturation__lightness: /*#__PURE__*/(0, _react.css)("position:absolute;inset:0;border-radius:", gradientBorderRadius, ";background:linear-gradient(\n to right,\n rgba(255, 255, 255, 1),\n rgba(255, 255, 255, 0)\n );;label:euiSaturation__lightness;"),
|
|
38
38
|
euiSaturation__saturation: /*#__PURE__*/(0, _react.css)("position:absolute;inset:0;border-radius:", gradientBorderRadius, ";background:linear-gradient(to top, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0));;label:euiSaturation__saturation;"),
|
|
39
|
-
euiSaturation__tooltip: /*#__PURE__*/(0, _react.css)("z-index:2;position:absolute;", (0, _global_styling.logicalSizeCSS)(indicatorSize), " transform:translateX(-50%) translateY(-50%);border-radius:100%;;label:euiSaturation__tooltip;"),
|
|
39
|
+
euiSaturation__tooltip: /*#__PURE__*/(0, _react.css)("z-index:", Number(euiTheme.levels.content) + 2, ";position:absolute;", (0, _global_styling.logicalSizeCSS)(indicatorSize), " transform:translateX(-50%) translateY(-50%);border-radius:100%;;label:euiSaturation__tooltip;"),
|
|
40
40
|
euiSaturation__indicator: /*#__PURE__*/(0, _react.css)("position:absolute;inset:0;", (0, _global_styling.logicalSizeCSS)(indicatorSize), " border-radius:100%;", (0, _high_contrast.highContrastModeStyles)(euiThemeContext, {
|
|
41
41
|
none: "\n border: ".concat(euiTheme.border.width.thin, " solid ").concat(euiTheme.colors.darkestShade, ";\n\n &::before {\n content: '';\n position: absolute;\n inset: 0;\n border-radius: 100%;\n border: ").concat(euiTheme.border.width.thin, " solid\n ").concat(euiTheme.colors.lightestShade, ";\n }\n "),
|
|
42
42
|
preferred: "\n border: ".concat(euiTheme.border.width.thick, " solid ").concat(euiTheme.colors.plainDark, ";\n background-color: ").concat(euiTheme.colors.plainLight, ";\n ")
|
|
@@ -66,6 +66,8 @@ var EuiContextMenuItem = exports.EuiContextMenuItem = function EuiContextMenuIte
|
|
|
66
66
|
className: "euiContextMenu__icon",
|
|
67
67
|
css: styles.euiContextMenu__icon,
|
|
68
68
|
color: "inherit" // forces the icon to inherit its parent color
|
|
69
|
+
,
|
|
70
|
+
"aria-hidden": true
|
|
69
71
|
}) :
|
|
70
72
|
// Assume it's already an instance of an icon.
|
|
71
73
|
(0, _services.cloneElementWithCss)(icon, {
|
|
@@ -75,7 +77,8 @@ var EuiContextMenuItem = exports.EuiContextMenuItem = function EuiContextMenuIte
|
|
|
75
77
|
type: "chevronSingleRight",
|
|
76
78
|
size: "m",
|
|
77
79
|
className: "euiContextMenu__arrow",
|
|
78
|
-
css: styles.euiContextMenuItem__arrow
|
|
80
|
+
css: styles.euiContextMenuItem__arrow,
|
|
81
|
+
"aria-hidden": true
|
|
79
82
|
});
|
|
80
83
|
var isLink = href && !disabled;
|
|
81
84
|
var isButton = !isLink && (href || rest.onClick || toolTipContent);
|
|
@@ -1592,7 +1592,7 @@ RenderTruncatedCellContent.displayName = 'RenderTruncatedCellContent';
|
|
|
1592
1592
|
* Function component utilities for easier hook usage
|
|
1593
1593
|
*/
|
|
1594
1594
|
|
|
1595
|
-
var GridCellDiv = /*#__PURE__*/(0, _react.memo)(
|
|
1595
|
+
var GridCellDiv = /*#__PURE__*/(0, _react.memo)(/*#__PURE__*/(0, _react.forwardRef)(function (_ref4, ref) {
|
|
1596
1596
|
var columnId = _ref4.columnId,
|
|
1597
1597
|
columnIndex = _ref4.columnIndex,
|
|
1598
1598
|
rowIndex = _ref4.rowIndex,
|
|
@@ -65,7 +65,7 @@ var DataGridWrapperRowsContext = exports.DataGridWrapperRowsContext = /*#__PURE_
|
|
|
65
65
|
headerRowHeight: 0,
|
|
66
66
|
footerRow: null
|
|
67
67
|
});
|
|
68
|
-
var InnerElement = /*#__PURE__*/(0, _react.memo)(
|
|
68
|
+
var InnerElement = /*#__PURE__*/(0, _react.memo)(/*#__PURE__*/(0, _react.forwardRef)(function (_ref2, ref) {
|
|
69
69
|
var children = _ref2.children,
|
|
70
70
|
style = _ref2.style,
|
|
71
71
|
rest = (0, _objectWithoutProperties2.default)(_ref2, _excluded);
|
|
@@ -26,7 +26,7 @@ function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e;
|
|
|
26
26
|
var renderEmpty = function renderEmpty() {
|
|
27
27
|
return null;
|
|
28
28
|
};
|
|
29
|
-
var EuiDataGridFooterRow = exports.EuiDataGridFooterRow = /*#__PURE__*/(0, _react.memo)(
|
|
29
|
+
var EuiDataGridFooterRow = exports.EuiDataGridFooterRow = /*#__PURE__*/(0, _react.memo)(/*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
|
30
30
|
var leadingControlColumns = _ref.leadingControlColumns,
|
|
31
31
|
trailingControlColumns = _ref.trailingControlColumns,
|
|
32
32
|
columns = _ref.columns,
|
|
@@ -33,7 +33,7 @@ var euiDataGridColumnResizerStyles = exports.euiDataGridColumnResizerStyles = fu
|
|
|
33
33
|
}); // Odd number because it straddles a border
|
|
34
34
|
var indicatorOffset = "-".concat(euiTheme.border.width.thin);
|
|
35
35
|
return {
|
|
36
|
-
euiDataGridColumnResizer: /*#__PURE__*/(0, _react.css)("z-index:2;position:absolute;", (0, _global_styling.logicalCSS)('vertical', 0), " ", (0, _global_styling.logicalCSS)('right', positionOffset), " cursor:ew-resize;opacity:0;&:hover,&:active{opacity:1;}&::after{content:'';position:absolute;", (0, _global_styling.logicalCSS)('vertical', 0), " ", (0, _global_styling.logicalCSS)('left', positionOffset), " ", (0, _global_styling.logicalCSS)('margin-left', indicatorOffset), " ", (0, _global_styling.logicalCSS)('width', indicatorWidth), " background-color:", euiTheme.colors.primary, ";};label:euiDataGridColumnResizer;"),
|
|
36
|
+
euiDataGridColumnResizer: /*#__PURE__*/(0, _react.css)("z-index:", Number(euiTheme.levels.content) + 2, ";position:absolute;", (0, _global_styling.logicalCSS)('vertical', 0), " ", (0, _global_styling.logicalCSS)('right', positionOffset), " cursor:ew-resize;opacity:0;&:hover,&:active{opacity:1;}&::after{content:'';position:absolute;", (0, _global_styling.logicalCSS)('vertical', 0), " ", (0, _global_styling.logicalCSS)('left', positionOffset), " ", (0, _global_styling.logicalCSS)('margin-left', indicatorOffset), " ", (0, _global_styling.logicalCSS)('width', indicatorWidth), " background-color:", euiTheme.colors.primary, ";};label:euiDataGridColumnResizer;"),
|
|
37
37
|
/* Because the resizer sits in the negative space to the right of the column,
|
|
38
38
|
* it can cause the full grid to be a few pixels longer than it actually is.
|
|
39
39
|
* So for the last cell, we don't use negative positioning and the borders from
|
|
@@ -45,7 +45,8 @@ var useColumnSorting = exports.useColumnSorting = function useColumnSorting(_ref
|
|
|
45
45
|
type: sortedColumn.direction === 'asc' ? 'sortUp' : 'sortDown',
|
|
46
46
|
color: "text",
|
|
47
47
|
className: "euiDataGridHeaderCell__sortingArrow",
|
|
48
|
-
"data-test-subj": "dataGridHeaderCellSortingIcon-".concat(id)
|
|
48
|
+
"data-test-subj": "dataGridHeaderCellSortingIcon-".concat(id),
|
|
49
|
+
"aria-hidden": true
|
|
49
50
|
}) : null;
|
|
50
51
|
}, [id, isColumnSorted, sortedColumn]);
|
|
51
52
|
|
|
@@ -109,7 +109,8 @@ var EuiDataGridHeaderCell = exports.EuiDataGridHeaderCell = /*#__PURE__*/(0, _re
|
|
|
109
109
|
}, (0, _react2.jsx)(_icon.EuiIcon, {
|
|
110
110
|
type: "drag",
|
|
111
111
|
size: "s",
|
|
112
|
-
css: [styles.euiDataGridHeaderCell__actions.action, styles.euiDataGridHeaderCell__actions.start, ";label:EuiDataGridHeaderCell;"]
|
|
112
|
+
css: [styles.euiDataGridHeaderCell__actions.action, styles.euiDataGridHeaderCell__actions.start, ";label:EuiDataGridHeaderCell;"],
|
|
113
|
+
"aria-hidden": true
|
|
113
114
|
})), (0, _react2.jsx)("div", {
|
|
114
115
|
css: contentStyles,
|
|
115
116
|
className: "euiDataGridHeaderCell__content",
|
|
@@ -26,7 +26,7 @@ var _excluded = ["className", "data-test-subj", "leadingControlColumns", "traili
|
|
|
26
26
|
*/
|
|
27
27
|
var cache;
|
|
28
28
|
function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var r, c, a = Object.defineProperty, n = { __proto__: null, default: e }; if (Object(e) !== e) return n; if (cache || "function" != typeof WeakMap || (cache = new WeakMap()), cache) { if (cache.has(e)) return cache.get(e); cache.set(e, n); } for (c in e) "default" !== c && {}.hasOwnProperty.call(e, c) && ((r = a && Object.getOwnPropertyDescriptor(e, c)) && (r.get || r.set) ? a(n, c, r) : n[c] = e[c]); return n; }
|
|
29
|
-
var EuiDataGridHeaderRow = exports.EuiDataGridHeaderRow = /*#__PURE__*/(0, _react.memo)(
|
|
29
|
+
var EuiDataGridHeaderRow = exports.EuiDataGridHeaderRow = /*#__PURE__*/(0, _react.memo)(/*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
30
30
|
var _leadingControlColumn;
|
|
31
31
|
var className = props.className,
|
|
32
32
|
_dataTestSubj = props['data-test-subj'],
|
|
@@ -237,7 +237,8 @@ var useDataGridColumnSelector = exports.useDataGridColumnSelector = function use
|
|
|
237
237
|
"aria-label": "".concat(label, " ").concat(dragHandleAriaLabel)
|
|
238
238
|
}), (0, _react2.jsx)(_icon.EuiIcon, {
|
|
239
239
|
type: "dragVertical",
|
|
240
|
-
color: "subdued"
|
|
240
|
+
color: "subdued",
|
|
241
|
+
"aria-hidden": true
|
|
241
242
|
}))));
|
|
242
243
|
});
|
|
243
244
|
})))), allowColumnHiding && (0, _react2.jsx)(_popover.EuiPopoverFooter, {
|
|
@@ -271,7 +272,7 @@ var useDataGridColumnSelector = exports.useDataGridColumnSelector = function use
|
|
|
271
272
|
token: "euiColumnSelector.hideAll",
|
|
272
273
|
default: "Hide all"
|
|
273
274
|
})))))) : null;
|
|
274
|
-
}, [styles,
|
|
275
|
+
}, [styles, numberOfHiddenFields, orderedVisibleColumns.length, allowColumnHiding, allowColumnReorder, isOpen, columnSearchText, displayValues, visibleColumnIds, sortedColumns, setVisibleColumns, setIsOpen, onDragEnd, isDragEnabled, dragHandleAriaLabel, filteredColumns]);
|
|
275
276
|
|
|
276
277
|
/**
|
|
277
278
|
* Used for moving columns left/right, available in the headers actions menu
|
|
@@ -189,7 +189,8 @@ var EuiDataGridColumnSortingDraggable = exports.EuiDataGridColumnSortingDraggabl
|
|
|
189
189
|
"aria-label": dragHandleAriaLabel
|
|
190
190
|
}), (0, _react2.jsx)(_icon.EuiIcon, {
|
|
191
191
|
type: "dragVertical",
|
|
192
|
-
color: "subdued"
|
|
192
|
+
color: "subdued",
|
|
193
|
+
"aria-hidden": true
|
|
193
194
|
})));
|
|
194
195
|
});
|
|
195
196
|
};
|
|
@@ -101,7 +101,7 @@ var renderAdditionalControls = exports.renderAdditionalControls = function rende
|
|
|
101
101
|
|
|
102
102
|
// API backwards compatability: if the consumer passed a single ReactNode
|
|
103
103
|
// to `additionalControls`, default to the left append position.
|
|
104
|
-
if (
|
|
104
|
+
if (/*#__PURE__*/(0, _react.isValidElement)(additionalControls) && position === 'left.append') {
|
|
105
105
|
return additionalControls;
|
|
106
106
|
}
|
|
107
107
|
if ((0, _typeof2.default)(additionalControls) !== 'object') {
|
|
@@ -121,7 +121,7 @@ var renderAdditionalControls = exports.renderAdditionalControls = function rende
|
|
|
121
121
|
}
|
|
122
122
|
// API backwards compatability: If the consumer passed a single ReactNode
|
|
123
123
|
// to `additionalControls.left`, default to the left append position
|
|
124
|
-
if (
|
|
124
|
+
if (/*#__PURE__*/(0, _react.isValidElement)(additionalControls.left) && position === 'left.append') {
|
|
125
125
|
return additionalControls.left;
|
|
126
126
|
}
|
|
127
127
|
if (additionalControls.left && (0, _typeof2.default)(additionalControls.left) === 'object') {
|
|
@@ -17,7 +17,7 @@ var _global_styling = require("../../../global_styling");
|
|
|
17
17
|
var euiDataGridToolbarStyles = exports.euiDataGridToolbarStyles = function euiDataGridToolbarStyles(_ref) {
|
|
18
18
|
var euiTheme = _ref.euiTheme;
|
|
19
19
|
return {
|
|
20
|
-
euiDataGrid__controls: /*#__PURE__*/(0, _react.css)("z-index:2;position:relative;display:flex;justify-content:space-between;align-items:center;gap:", euiTheme.size.base, ";", (0, _global_styling.logicalCSS)('padding-vertical', euiTheme.size.xs), " background-color:", euiTheme.colors.emptyShade, ";;label:euiDataGrid__controls;"),
|
|
20
|
+
euiDataGrid__controls: /*#__PURE__*/(0, _react.css)("z-index:", Number(euiTheme.levels.content) + 2, ";position:relative;display:flex;justify-content:space-between;align-items:center;gap:", euiTheme.size.base, ";", (0, _global_styling.logicalCSS)('padding-vertical', euiTheme.size.xs), " background-color:", euiTheme.colors.emptyShade, ";;label:euiDataGrid__controls;"),
|
|
21
21
|
euiDataGrid__rightControls: /*#__PURE__*/(0, _react.css)("display:flex;justify-content:flex-end;align-items:center;flex-wrap:wrap;column-gap:", euiTheme.size.s, ";", (0, _global_styling.logicalCSS)('padding-right', euiTheme.size.xs), "&:only-child{", (0, _global_styling.logicalCSS)('margin-left', 'auto'), ";};label:euiDataGrid__rightControls;"),
|
|
22
22
|
euiDataGrid__leftControls: /*#__PURE__*/(0, _react.css)("display:flex;flex-wrap:wrap;align-items:center;gap:", euiTheme.size.xxs, ";;label:euiDataGrid__leftControls;")
|
|
23
23
|
};
|
|
@@ -78,7 +78,7 @@ var emptyVirtualizationOptions = {};
|
|
|
78
78
|
/**
|
|
79
79
|
* @see {@link https://eui.elastic.co/docs/components/data-grid/|EuiDataGrid documentation}
|
|
80
80
|
*/
|
|
81
|
-
var EuiDataGrid = exports.EuiDataGrid = /*#__PURE__*/(0, _react.memo)(
|
|
81
|
+
var EuiDataGrid = exports.EuiDataGrid = /*#__PURE__*/(0, _react.memo)(/*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
82
82
|
var _props$leadingControl = props.leadingControlColumns,
|
|
83
83
|
leadingControlColumns = _props$leadingControl === void 0 ? _data_grid_types.emptyControlColumns : _props$leadingControl,
|
|
84
84
|
_props$trailingContro = props.trailingControlColumns,
|
|
@@ -172,7 +172,7 @@ var RenderCellValue = function RenderCellValue(_ref5) {
|
|
|
172
172
|
var column = row[columnName];
|
|
173
173
|
var getFormatted = function getFormatted() {
|
|
174
174
|
if ((0, _typeof2.default)(column) === 'object') {
|
|
175
|
-
var hasFormatted =
|
|
175
|
+
var hasFormatted = 'formatted' in column;
|
|
176
176
|
return hasFormatted ? column.formatted : column;
|
|
177
177
|
}
|
|
178
178
|
return typeof column === 'string' ? column : null;
|