@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
|
@@ -62,7 +62,7 @@ var EuiLiveAnnouncer = exports.EuiLiveAnnouncer = function EuiLiveAnnouncer(_ref
|
|
|
62
62
|
(0, _react.useEffect)(function () {
|
|
63
63
|
var timeout;
|
|
64
64
|
if (children) {
|
|
65
|
-
setContent(
|
|
65
|
+
setContent(/*#__PURE__*/(0, _react.isValidElement)(children) ? children : (0, _react2.jsx)(_react.default.Fragment, null, children));
|
|
66
66
|
}
|
|
67
67
|
if (clearAfterMs) {
|
|
68
68
|
timeout = setTimeout(function () {
|
|
@@ -37,7 +37,7 @@ for (var i = 0; i < 20; i++) {
|
|
|
37
37
|
id: i + 1,
|
|
38
38
|
firstName: _faker.faker.person.firstName(),
|
|
39
39
|
lastName: _faker.faker.person.lastName(),
|
|
40
|
-
github: _faker.faker.internet.
|
|
40
|
+
github: _faker.faker.internet.username(),
|
|
41
41
|
dateOfBirth: _faker.faker.date.past(),
|
|
42
42
|
online: _faker.faker.datatype.boolean(),
|
|
43
43
|
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: {
|
|
@@ -17,7 +17,7 @@ var _component_defaults = require("../provider/component_defaults");
|
|
|
17
17
|
var _react2 = require("@emotion/react");
|
|
18
18
|
var _excluded = ["schema"],
|
|
19
19
|
_excluded2 = ["onChange"],
|
|
20
|
-
_excluded3 = ["columns", "loading", "noItemsMessage", "error", "selection", "compressed", "pagination", "sorting", "itemIdToExpandedRowMap", "itemId", "rowProps", "cellProps", "tableLayout", "items", "search", "searchFormat", "onTableChange", "executeQueryOptions", "allowNeutralSort", "childrenBetween"];
|
|
20
|
+
_excluded3 = ["columns", "loading", "noItemsMessage", "error", "selection", "compressed", "pagination", "sorting", "itemIdToExpandedRowMap", "itemId", "rowProps", "cellProps", "tableLayout", "items", "search", "searchFormat", "onTableChange", "executeQueryOptions", "allowNeutralSort", "childrenBetween", "tableCaption"];
|
|
21
21
|
var cache;
|
|
22
22
|
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; }
|
|
23
23
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
@@ -440,6 +440,7 @@ var EuiInMemoryTable = exports.EuiInMemoryTable = /*#__PURE__*/function (_Compon
|
|
|
440
440
|
executeQueryOptions = _this$props2.executeQueryOptions,
|
|
441
441
|
allowNeutralSort = _this$props2.allowNeutralSort,
|
|
442
442
|
childrenBetween = _this$props2.childrenBetween,
|
|
443
|
+
tableCaption = _this$props2.tableCaption,
|
|
443
444
|
rest = _objectWithoutProperties(_this$props2, _excluded3);
|
|
444
445
|
var _this$state3 = this.state,
|
|
445
446
|
pageIndex = _this$state3.pageIndex,
|
|
@@ -487,7 +488,8 @@ var EuiInMemoryTable = exports.EuiInMemoryTable = /*#__PURE__*/function (_Compon
|
|
|
487
488
|
noItemsMessage: noItemsMessage,
|
|
488
489
|
tableLayout: tableLayout,
|
|
489
490
|
compressed: compressed,
|
|
490
|
-
itemIdToExpandedRowMap: itemIdToExpandedRowMap
|
|
491
|
+
itemIdToExpandedRowMap: itemIdToExpandedRowMap,
|
|
492
|
+
tableCaption: tableCaption
|
|
491
493
|
}, rest));
|
|
492
494
|
if (!searchBar) {
|
|
493
495
|
return table;
|
|
@@ -24,7 +24,7 @@ var euiBottomBarStyles = exports.euiBottomBarStyles = function euiBottomBarStyle
|
|
|
24
24
|
// Base
|
|
25
25
|
// `color` is inherited from the wrapping `EuiThemeProvider colorMode="dark"`
|
|
26
26
|
euiBottomBar: /*#__PURE__*/(0, _react.css)("background-color:", euiTheme.components.bottomBarBackground, ";", (0, _global_styling.logicalCSS)('border-top', euiTheme.border.thin), " ", (0, _high_contrast.highContrastModeStyles)(euiThemeContext, {
|
|
27
|
-
none: (0, _euiThemeCommon.
|
|
27
|
+
none: (0, _euiThemeCommon.euiShadowXSmall)(euiThemeContext, {
|
|
28
28
|
border: 'none'
|
|
29
29
|
})
|
|
30
30
|
}), "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: {
|
|
@@ -72,6 +72,8 @@ var EuiButtonDisplayContent = exports.EuiButtonDisplayContent = function EuiButt
|
|
|
72
72
|
type: iconType,
|
|
73
73
|
size: iconSize,
|
|
74
74
|
color: "inherit" // forces the icon to inherit its parent color
|
|
75
|
+
,
|
|
76
|
+
"aria-hidden": true
|
|
75
77
|
});
|
|
76
78
|
}
|
|
77
79
|
}, [iconType, iconSize, isLoading, isDisabled]);
|
|
@@ -43,7 +43,7 @@ function flattenButtonGroupChildren(children) {
|
|
|
43
43
|
if (! /*#__PURE__*/_react.default.isValidElement(child)) return;
|
|
44
44
|
if (child.type === _react.default.Fragment) {
|
|
45
45
|
_react.default.Children.forEach(child.props.children, function (fragmentChild) {
|
|
46
|
-
if (
|
|
46
|
+
if (/*#__PURE__*/_react.default.isValidElement(fragmentChild)) result.push(fragmentChild);
|
|
47
47
|
});
|
|
48
48
|
} else {
|
|
49
49
|
result.push(child);
|
|
@@ -19,22 +19,13 @@ function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread n
|
|
|
19
19
|
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
20
20
|
function _iterableToArray(r) { if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r); }
|
|
21
21
|
function _arrayWithoutHoles(r) { if (Array.isArray(r)) return _arrayLikeToArray(r); }
|
|
22
|
-
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
23
|
-
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)."; } /*
|
|
22
|
+
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; } /*
|
|
24
23
|
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
25
24
|
* or more contributor license agreements. Licensed under the Elastic License
|
|
26
25
|
* 2.0 and the Server Side Public License, v 1; you may not use this file except
|
|
27
26
|
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
|
28
27
|
* Side Public License, v 1.
|
|
29
28
|
*/
|
|
30
|
-
var _ref = process.env.NODE_ENV === "production" ? {
|
|
31
|
-
name: "1ockoqy-tooltipWrapper",
|
|
32
|
-
styles: "min-inline-size:0;&:has(:focus-visible){z-index:1;};label:tooltipWrapper;"
|
|
33
|
-
} : {
|
|
34
|
-
name: "1ockoqy-tooltipWrapper",
|
|
35
|
-
styles: "min-inline-size:0;&:has(:focus-visible){z-index:1;};label:tooltipWrapper;",
|
|
36
|
-
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
37
|
-
};
|
|
38
29
|
var euiButtonGroupButtonStyles = exports.euiButtonGroupButtonStyles = function euiButtonGroupButtonStyles(euiThemeContext) {
|
|
39
30
|
var euiTheme = euiThemeContext.euiTheme,
|
|
40
31
|
highContrastMode = euiThemeContext.highContrastMode;
|
|
@@ -72,7 +63,7 @@ var euiButtonGroupButtonStyles = exports.euiButtonGroupButtonStyles = function e
|
|
|
72
63
|
}), ";};label:isSelected;"),
|
|
73
64
|
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;"),
|
|
74
65
|
// Tooltip anchor wrapper
|
|
75
|
-
tooltipWrapper:
|
|
66
|
+
tooltipWrapper: /*#__PURE__*/(0, _react.css)("min-inline-size:0;&:has(:focus-visible){z-index:", Number(euiTheme.levels.content) + 1, ";};label:tooltipWrapper;"),
|
|
76
67
|
// Text wrapper
|
|
77
68
|
text: {
|
|
78
69
|
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.",
|
|
@@ -116,7 +116,7 @@ var EuiCard = exports.EuiCard = function EuiCard(_ref) {
|
|
|
116
116
|
|
|
117
117
|
var imageNode;
|
|
118
118
|
if (image && layout === 'vertical') {
|
|
119
|
-
if (
|
|
119
|
+
if (/*#__PURE__*/(0, _react.isValidElement)(image) || typeof image === 'string') {
|
|
120
120
|
var imageStyles = [styles.image.euiCard__image, display === 'transparent' && styles.image.transparent];
|
|
121
121
|
imageNode = (0, _react2.jsx)("div", {
|
|
122
122
|
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
|
};
|
|
@@ -69,7 +69,8 @@ var EuiCodeBlockAnnotation = exports.EuiCodeBlockAnnotation = function EuiCodeBl
|
|
|
69
69
|
}, (0, _react2.jsx)(_icon.EuiIcon, {
|
|
70
70
|
type: AnnotationInfoIcon,
|
|
71
71
|
size: "s",
|
|
72
|
-
color: iconColor
|
|
72
|
+
color: iconColor,
|
|
73
|
+
"aria-hidden": true
|
|
73
74
|
})),
|
|
74
75
|
zIndex: Number(euiTheme.levels.mask) + 1 // Ensure fullscreen annotation popovers sit above the mask
|
|
75
76
|
,
|
|
@@ -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 ")
|
|
@@ -70,6 +70,8 @@ var EuiContextMenuItem = exports.EuiContextMenuItem = function EuiContextMenuIte
|
|
|
70
70
|
className: "euiContextMenu__icon",
|
|
71
71
|
css: styles.euiContextMenu__icon,
|
|
72
72
|
color: "inherit" // forces the icon to inherit its parent color
|
|
73
|
+
,
|
|
74
|
+
"aria-hidden": true
|
|
73
75
|
}) :
|
|
74
76
|
// Assume it's already an instance of an icon.
|
|
75
77
|
(0, _services.cloneElementWithCss)(icon, {
|
|
@@ -79,7 +81,8 @@ var EuiContextMenuItem = exports.EuiContextMenuItem = function EuiContextMenuIte
|
|
|
79
81
|
type: "chevronSingleRight",
|
|
80
82
|
size: "m",
|
|
81
83
|
className: "euiContextMenu__arrow",
|
|
82
|
-
css: styles.euiContextMenuItem__arrow
|
|
84
|
+
css: styles.euiContextMenuItem__arrow,
|
|
85
|
+
"aria-hidden": true
|
|
83
86
|
});
|
|
84
87
|
var isLink = href && !disabled;
|
|
85
88
|
var isButton = !isLink && (href || rest.onClick || toolTipContent);
|
|
@@ -1604,7 +1604,7 @@ RenderTruncatedCellContent.displayName = 'RenderTruncatedCellContent';
|
|
|
1604
1604
|
* Function component utilities for easier hook usage
|
|
1605
1605
|
*/
|
|
1606
1606
|
|
|
1607
|
-
var GridCellDiv = /*#__PURE__*/(0, _react.memo)(
|
|
1607
|
+
var GridCellDiv = /*#__PURE__*/(0, _react.memo)(/*#__PURE__*/(0, _react.forwardRef)(function (_ref4, ref) {
|
|
1608
1608
|
var columnId = _ref4.columnId,
|
|
1609
1609
|
columnIndex = _ref4.columnIndex,
|
|
1610
1610
|
rowIndex = _ref4.rowIndex,
|
|
@@ -69,7 +69,7 @@ var DataGridWrapperRowsContext = exports.DataGridWrapperRowsContext = /*#__PURE_
|
|
|
69
69
|
headerRowHeight: 0,
|
|
70
70
|
footerRow: null
|
|
71
71
|
});
|
|
72
|
-
var InnerElement = /*#__PURE__*/(0, _react.memo)(
|
|
72
|
+
var InnerElement = /*#__PURE__*/(0, _react.memo)(/*#__PURE__*/(0, _react.forwardRef)(function (_ref2, ref) {
|
|
73
73
|
var children = _ref2.children,
|
|
74
74
|
style = _ref2.style,
|
|
75
75
|
rest = _objectWithoutProperties(_ref2, _excluded);
|
|
@@ -27,7 +27,7 @@ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t =
|
|
|
27
27
|
var renderEmpty = function renderEmpty() {
|
|
28
28
|
return null;
|
|
29
29
|
};
|
|
30
|
-
var EuiDataGridFooterRow = exports.EuiDataGridFooterRow = /*#__PURE__*/(0, _react.memo)(
|
|
30
|
+
var EuiDataGridFooterRow = exports.EuiDataGridFooterRow = /*#__PURE__*/(0, _react.memo)(/*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
|
31
31
|
var leadingControlColumns = _ref.leadingControlColumns,
|
|
32
32
|
trailingControlColumns = _ref.trailingControlColumns,
|
|
33
33
|
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
|
|
|
@@ -115,7 +115,8 @@ var EuiDataGridHeaderCell = exports.EuiDataGridHeaderCell = /*#__PURE__*/(0, _re
|
|
|
115
115
|
}, (0, _react2.jsx)(_icon.EuiIcon, {
|
|
116
116
|
type: "drag",
|
|
117
117
|
size: "s",
|
|
118
|
-
css: [styles.euiDataGridHeaderCell__actions.action, styles.euiDataGridHeaderCell__actions.start, ";label:EuiDataGridHeaderCell;"]
|
|
118
|
+
css: [styles.euiDataGridHeaderCell__actions.action, styles.euiDataGridHeaderCell__actions.start, ";label:EuiDataGridHeaderCell;"],
|
|
119
|
+
"aria-hidden": true
|
|
119
120
|
})), (0, _react2.jsx)("div", {
|
|
120
121
|
css: contentStyles,
|
|
121
122
|
className: "euiDataGridHeaderCell__content",
|
|
@@ -27,7 +27,7 @@ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e
|
|
|
27
27
|
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
28
28
|
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
29
29
|
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
30
|
-
var EuiDataGridHeaderRow = exports.EuiDataGridHeaderRow = /*#__PURE__*/(0, _react.memo)(
|
|
30
|
+
var EuiDataGridHeaderRow = exports.EuiDataGridHeaderRow = /*#__PURE__*/(0, _react.memo)(/*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
31
31
|
var _leadingControlColumn;
|
|
32
32
|
var className = props.className,
|
|
33
33
|
_dataTestSubj = props['data-test-subj'],
|
|
@@ -243,7 +243,8 @@ var useDataGridColumnSelector = exports.useDataGridColumnSelector = function use
|
|
|
243
243
|
"aria-label": "".concat(label, " ").concat(dragHandleAriaLabel)
|
|
244
244
|
}), (0, _react2.jsx)(_icon.EuiIcon, {
|
|
245
245
|
type: "dragVertical",
|
|
246
|
-
color: "subdued"
|
|
246
|
+
color: "subdued",
|
|
247
|
+
"aria-hidden": true
|
|
247
248
|
}))));
|
|
248
249
|
});
|
|
249
250
|
})))), allowColumnHiding && (0, _react2.jsx)(_popover.EuiPopoverFooter, {
|
|
@@ -277,7 +278,7 @@ var useDataGridColumnSelector = exports.useDataGridColumnSelector = function use
|
|
|
277
278
|
token: "euiColumnSelector.hideAll",
|
|
278
279
|
default: "Hide all"
|
|
279
280
|
})))))) : null;
|
|
280
|
-
}, [styles,
|
|
281
|
+
}, [styles, numberOfHiddenFields, orderedVisibleColumns.length, allowColumnHiding, allowColumnReorder, isOpen, columnSearchText, displayValues, visibleColumnIds, sortedColumns, setVisibleColumns, setIsOpen, onDragEnd, isDragEnabled, dragHandleAriaLabel, filteredColumns]);
|
|
281
282
|
|
|
282
283
|
/**
|
|
283
284
|
* Used for moving columns left/right, available in the headers actions menu
|
|
@@ -195,7 +195,8 @@ var EuiDataGridColumnSortingDraggable = exports.EuiDataGridColumnSortingDraggabl
|
|
|
195
195
|
"aria-label": dragHandleAriaLabel
|
|
196
196
|
}), (0, _react2.jsx)(_icon.EuiIcon, {
|
|
197
197
|
type: "dragVertical",
|
|
198
|
-
color: "subdued"
|
|
198
|
+
color: "subdued",
|
|
199
|
+
"aria-hidden": true
|
|
199
200
|
})));
|
|
200
201
|
});
|
|
201
202
|
};
|
|
@@ -97,7 +97,7 @@ var renderAdditionalControls = exports.renderAdditionalControls = function rende
|
|
|
97
97
|
|
|
98
98
|
// API backwards compatability: if the consumer passed a single ReactNode
|
|
99
99
|
// to `additionalControls`, default to the left append position.
|
|
100
|
-
if (
|
|
100
|
+
if (/*#__PURE__*/(0, _react.isValidElement)(additionalControls) && position === 'left.append') {
|
|
101
101
|
return additionalControls;
|
|
102
102
|
}
|
|
103
103
|
if (_typeof(additionalControls) !== 'object') {
|
|
@@ -117,7 +117,7 @@ var renderAdditionalControls = exports.renderAdditionalControls = function rende
|
|
|
117
117
|
}
|
|
118
118
|
// API backwards compatability: If the consumer passed a single ReactNode
|
|
119
119
|
// to `additionalControls.left`, default to the left append position
|
|
120
|
-
if (
|
|
120
|
+
if (/*#__PURE__*/(0, _react.isValidElement)(additionalControls.left) && position === 'left.append') {
|
|
121
121
|
return additionalControls.left;
|
|
122
122
|
}
|
|
123
123
|
if (additionalControls.left && _typeof(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
|
};
|
|
@@ -90,7 +90,7 @@ var emptyVirtualizationOptions = {};
|
|
|
90
90
|
/**
|
|
91
91
|
* @see {@link https://eui.elastic.co/docs/components/data-grid/|EuiDataGrid documentation}
|
|
92
92
|
*/
|
|
93
|
-
var EuiDataGrid = exports.EuiDataGrid = /*#__PURE__*/(0, _react.memo)(
|
|
93
|
+
var EuiDataGrid = exports.EuiDataGrid = /*#__PURE__*/(0, _react.memo)(/*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
94
94
|
var _props$leadingControl = props.leadingControlColumns,
|
|
95
95
|
leadingControlColumns = _props$leadingControl === void 0 ? _data_grid_types.emptyControlColumns : _props$leadingControl,
|
|
96
96
|
_props$trailingContro = props.trailingControlColumns,
|
|
@@ -179,7 +179,7 @@ var RenderCellValue = function RenderCellValue(_ref5) {
|
|
|
179
179
|
var column = row[columnName];
|
|
180
180
|
var getFormatted = function getFormatted() {
|
|
181
181
|
if (_typeof(column) === 'object') {
|
|
182
|
-
var hasFormatted =
|
|
182
|
+
var hasFormatted = 'formatted' in column;
|
|
183
183
|
return hasFormatted ? column.formatted : column;
|
|
184
184
|
}
|
|
185
185
|
return typeof column === 'string' ? column : null;
|
|
@@ -59,7 +59,10 @@ var euiDataGridStyles = exports.euiDataGridStyles = function euiDataGridStyles(e
|
|
|
59
59
|
};
|
|
60
60
|
var border = "".concat(euiTheme.border.width.thin, " solid ").concat(borderColors.default);
|
|
61
61
|
return {
|
|
62
|
+
/* eslint-disable @elastic/eui/no-static-z-index -- the row hover background
|
|
63
|
+
(::before) has to stay behind the row's cells, which use z-index: auto */
|
|
62
64
|
euiDataGrid: /*#__PURE__*/(0, _react.css)("display:flex;flex-direction:column;align-items:stretch;", (0, _global_styling.logicalCSS)('height', '100%'), " overflow:hidden;*:where(& .euiDataGridRow){background-color:", euiTheme.components.dataGridRowBackground, ";}*:where(&.euiDataGrid--rowHoverHighlight .euiDataGridRow:hover){background-color:", euiTheme.components.dataGridRowBackgroundHover, ";}*:where(& .euiDataGridRow--selected){background-color:", euiTheme.components.dataGridRowBackgroundSelect, ";}*:where(& .euiDataGridRow--marked){background-color:", euiTheme.components.dataGridRowBackgroundMarked, ";.euiDataGridRowCell.euiDataGridRowCell{", outlineSelectors.marked, "{", (0, _data_grid_cell.euiDataGridCellOutlineStyles)(euiThemeContext).markedStyles, ";}}}*:where(&.euiDataGrid--rowHoverHighlight .euiDataGridRow--marked){&:hover{background-color:", euiTheme.components.dataGridRowBackgroundMarkedHover, ";}}*:where(\n &.euiDataGrid--rowHoverHighlight .euiDataGridRow--selected:hover\n ){background-color:", euiTheme.components.dataGridRowBackgroundSelectHover, ";}*:where(&.euiDataGrid--stripes .euiDataGridRow){background-color:", euiTheme.components.dataGridRowStripesBackground, ";}*:where(&.euiDataGrid--stripes .euiDataGridRow--striped){background-color:", euiTheme.components.dataGridRowStripesBackgroundStriped, ";}*:where(\n &.euiDataGrid--stripes.euiDataGrid--rowHoverHighlight\n .euiDataGridRow:hover\n ){background-color:", euiTheme.components.dataGridRowStripesBackgroundHover, ";}*:where(\n &.euiDataGrid--stripes.euiDataGrid--rowHoverHighlight\n .euiDataGridRow--striped:hover\n ){background-color:", euiTheme.components.dataGridRowStripesBackgroundStripedHover, ";}*:where(&.euiDataGrid--stripes .euiDataGridRow--selected){background-color:", euiTheme.components.dataGridRowStripesBackgroundSelect, ";}*:where(&.euiDataGrid--stripes .euiDataGridRow--marked){background-color:", euiTheme.components.dataGridRowBackgroundMarked, ";}*:where(\n &.euiDataGrid--stripes.euiDataGrid--rowHoverHighlight\n .euiDataGridRow--selected:hover\n ){background-color:", euiTheme.components.dataGridRowStripesBackgroundSelectHover, ";}*:where(&.euiDataGrid--rowHoverHighlight .euiDataGridRow)::before{content:'';position:absolute;z-index:-1;pointer-events:none;inset:0;background-color:", euiTheme.components.dataGridRowBackground, ";};label:euiDataGrid;"),
|
|
65
|
+
/* eslint-enable @elastic/eui/no-static-z-index */
|
|
63
66
|
cellPadding: {
|
|
64
67
|
cellPadding: function cellPadding(size) {
|
|
65
68
|
return /*#__PURE__*/(0, _react.css)(".euiDataGridHeaderCell,.euiDataGridRowCell__content{padding:", _cellPadding[size], ";}.euiDataGridRowCell__content--lineCountHeight,.euiDataGridRowCell__content--autoBelowLineCountHeight{", (0, _high_contrast.highContrastModeStyles)(euiThemeContext, {
|
|
@@ -104,7 +107,7 @@ var euiDataGridStyles = exports.euiDataGridStyles = function euiDataGridStyles(e
|
|
|
104
107
|
"".concat(euiTheme.border.width.thin, " solid ").concat(borderColors.vertical)), ";}&--firstColumn{", (0, _global_styling.logicalCSS)('border-left', border), ";}&--lastColumn{", (0, _global_styling.logicalCSS)('border-right-color', euiTheme.components.dataGridBorderColor), ";}}.euiDataGridFooterCell,.euiDataGridHeaderCell{", (0, _global_styling.logicalCSS)('border-right', border), " &:first-of-type{", (0, _global_styling.logicalCSS)('border-left', border), ";}}.euiDataGridFooter{", (0, _global_styling.logicalCSS)('border-bottom', border), ";}&:not(.euiDataGrid--footerOverline) .euiDataGridFooter{", (0, _global_styling.logicalCSS)('border-top', border), " ", (0, _global_styling.logicalCSS)('margin-top', "-".concat(euiTheme.border.width.thin)), ";}&:not(.euiDataGrid--headerUnderline) .euiDataGridHeader{", (0, _global_styling.logicalCSS)('border-bottom', border), ";}&:is(.euiDataGrid--noControls) .euiDataGridHeader{", (0, _global_styling.logicalCSS)('border-top', border), ";}&:is(.euiDataGrid--noHeader.euiDataGrid--noControls) .euiDataGridRow:first-of-type .euiDataGridRowCell{", (0, _global_styling.logicalCSS)('border-top', border), ";}.euiDataGrid__controls{border:", border, ";background-color:", euiTheme.colors.body, ";};label:all;")
|
|
105
108
|
},
|
|
106
109
|
// Sits below the controls above it and pagination below it
|
|
107
|
-
euiDataGrid__content: /*#__PURE__*/(0, _react.css)("z-index:1;position:relative;flex-grow:1;", (0, _global_styling.logicalSizeCSS)('100%'), " ", (0, _global_styling.logicalCSS)('max-width', '100%'), " overflow:hidden;font-feature-settings:'tnum' 1;;label:euiDataGrid__content;"),
|
|
110
|
+
euiDataGrid__content: /*#__PURE__*/(0, _react.css)("z-index:", Number(euiTheme.levels.content) + 1, ";position:relative;flex-grow:1;", (0, _global_styling.logicalSizeCSS)('100%'), " ", (0, _global_styling.logicalCSS)('max-width', '100%'), " overflow:hidden;font-feature-settings:'tnum' 1;;label:euiDataGrid__content;"),
|
|
108
111
|
// Wrapper around EuiDataGrid
|
|
109
112
|
euiDataGrid__focusWrap: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('height', '100%'), ";;label:euiDataGrid__focusWrap;")
|
|
110
113
|
};
|
|
@@ -17,6 +17,6 @@ var _global_styling = require("../../../global_styling");
|
|
|
17
17
|
var euiDataGridPaginationStyles = exports.euiDataGridPaginationStyles = function euiDataGridPaginationStyles(_ref) {
|
|
18
18
|
var euiTheme = _ref.euiTheme;
|
|
19
19
|
return {
|
|
20
|
-
euiDataGrid__pagination: /*#__PURE__*/(0, _react.css)("z-index:2;flex-grow:0;", (0, _global_styling.logicalCSS)('padding-top', euiTheme.size.xs), " .euiDataGrid--fullScreen &{position:relative;", (0, _global_styling.logicalCSS)('padding-bottom', euiTheme.size.xs), " background-color:", euiTheme.colors.lightestShade, ";&::before{content:'';position:absolute;", (0, _global_styling.logicalCSS)('top', "-".concat(euiTheme.border.width.thin)), " ", (0, _global_styling.logicalCSS)('horizontal', 0), " ", (0, _global_styling.logicalCSS)('border-top', euiTheme.border.thin), " pointer-events:none;}};label:euiDataGrid__pagination;")
|
|
20
|
+
euiDataGrid__pagination: /*#__PURE__*/(0, _react.css)("z-index:", Number(euiTheme.levels.content) + 2, ";flex-grow:0;", (0, _global_styling.logicalCSS)('padding-top', euiTheme.size.xs), " .euiDataGrid--fullScreen &{position:relative;", (0, _global_styling.logicalCSS)('padding-bottom', euiTheme.size.xs), " background-color:", euiTheme.colors.lightestShade, ";&::before{content:'';position:absolute;", (0, _global_styling.logicalCSS)('top', "-".concat(euiTheme.border.width.thin)), " ", (0, _global_styling.logicalCSS)('horizontal', 0), " ", (0, _global_styling.logicalCSS)('border-top', euiTheme.border.thin), " pointer-events:none;}};label:euiDataGrid__pagination;")
|
|
21
21
|
};
|
|
22
22
|
};
|
|
@@ -21,7 +21,7 @@ function _regeneratorKeys(e) { var n = Object(e), r = []; for (var t in n) r.uns
|
|
|
21
21
|
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(); }); }
|
|
22
22
|
function _regeneratorAsyncGen(r, e, t, o, n) { return new _regeneratorAsyncIterator(_regenerator().w(r, e, t, o), n || Promise); }
|
|
23
23
|
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); }
|
|
24
|
-
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 ?
|
|
24
|
+
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 }; })(); }
|
|
25
25
|
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); }
|
|
26
26
|
function _OverloadYield(e, d) { this.v = e, this.k = d; }
|
|
27
27
|
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); }
|
|
@@ -127,7 +127,7 @@ var useScrollCellIntoView = exports.useScrollCellIntoView = function useScrollCe
|
|
|
127
127
|
// the `rowIndex` arg expected is actually our internal `visibleRowIndex`,
|
|
128
128
|
// not the `rowIndex` from the raw unsorted/unpaginated user data
|
|
129
129
|
function () {
|
|
130
|
-
var _ref3 = _asyncToGenerator(
|
|
130
|
+
var _ref3 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(_ref2) {
|
|
131
131
|
var _adjustedScrollLeft;
|
|
132
132
|
var rowIndex, colIndex, getCell, cell, cellIsInView, isStickyHeader, isStickyFooter, isDraggableHeader, isDraggableHeaderCell, _outerGridRef$current, scrollTop, scrollLeft, adjustedScrollTop, adjustedScrollLeft, cellLeftPos, cellRightPos, rightScrollBound, rightWidthOutOfView, leftScrollBound, leftWidthOutOfView, _adjustedScrollTop, parentRow, cellBottomPos, bottomScrollBound, bottomHeightOutOfView, cellTopPos, topScrollBound, topHeightOutOfView, _adjustedScrollLeft2, _adjustedScrollTop2;
|
|
133
133
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
@@ -80,7 +80,7 @@ var euiReactDatePickerStyles = exports.euiReactDatePickerStyles = function euiRe
|
|
|
80
80
|
paddingSize = datePickerVars.paddingSize,
|
|
81
81
|
headerOffset = datePickerVars.headerOffset;
|
|
82
82
|
return {
|
|
83
|
-
euiReactDatePicker: /*#__PURE__*/(0, _css.css)("display:flex;justify-content:center;padding:", paddingSize, ";font-size:", (0, _global_styling.euiFontSize)(euiThemeContext, 'xs').fontSize, ";color:", euiTheme.colors.textParagraph, ";&.react-datepicker--non-interactive{pointer-events:none;}.react-datepicker__focusTrap{display:flex;justify-content:center;gap:", paddingSize, ";}", (0, _global_styling.euiMaxBreakpoint)(euiThemeContext, 's'), "{&,.react-datepicker__focusTrap{flex-direction:column;}}.react-datepicker__header__dropdown{position:absolute;", (0, _global_styling.logicalCSS)('top', 0), " ", (0, _global_styling.logicalCSS)('horizontal', headerOffset), " padding:", paddingSize, ";display:flex;justify-content:center;gap:", gapSize, ";}.react-datepicker__navigation{z-index:1;position:absolute;", (0, _global_styling.logicalCSS)('top', paddingSize), "&:hover,&:focus{transform:none;}}.react-datepicker__navigation--previous{", (0, _global_styling.logicalCSS)('left', paddingSize), ";}.react-datepicker__navigation--next{", (0, _global_styling.logicalCSS)('right', paddingSize), ";}.react-datepicker__month-container{flex-grow:1;", (0, _global_styling.logicalCSS)('margin-top', headerOffset), ";}.react-datepicker__time-container{flex-grow:1;", (0, _global_styling.logicalCSS)('margin-top',
|
|
83
|
+
euiReactDatePicker: /*#__PURE__*/(0, _css.css)("display:flex;justify-content:center;padding:", paddingSize, ";font-size:", (0, _global_styling.euiFontSize)(euiThemeContext, 'xs').fontSize, ";color:", euiTheme.colors.textParagraph, ";&.react-datepicker--non-interactive{pointer-events:none;}.react-datepicker__focusTrap{display:flex;justify-content:center;gap:", paddingSize, ";}", (0, _global_styling.euiMaxBreakpoint)(euiThemeContext, 's'), "{&,.react-datepicker__focusTrap{flex-direction:column;}}.react-datepicker__header__dropdown{position:absolute;", (0, _global_styling.logicalCSS)('top', 0), " ", (0, _global_styling.logicalCSS)('horizontal', headerOffset), " padding:", paddingSize, ";display:flex;justify-content:center;gap:", gapSize, ";}.react-datepicker__navigation{z-index:", Number(euiTheme.levels.content) + 1, ";position:absolute;", (0, _global_styling.logicalCSS)('top', paddingSize), "&:hover,&:focus{transform:none;}}.react-datepicker__navigation--previous{", (0, _global_styling.logicalCSS)('left', paddingSize), ";}.react-datepicker__navigation--next{", (0, _global_styling.logicalCSS)('right', paddingSize), ";}.react-datepicker__month-container{flex-grow:1;", (0, _global_styling.logicalCSS)('margin-top', headerOffset), ";}.react-datepicker__time-container{flex-grow:1;", (0, _global_styling.logicalCSS)('margin-top',
|
|
84
84
|
// The time select gets a little extra offset
|
|
85
85
|
(0, _global_styling.mathWithUnits)([headerOffset, gapSize], function (x, y) {
|
|
86
86
|
return x + y;
|
|
@@ -91,7 +91,7 @@ var _monthYearDropdowns = function _monthYearDropdowns(euiThemeContext, _ref) {
|
|
|
91
91
|
var colors = _ref.colors;
|
|
92
92
|
var euiTheme = euiThemeContext.euiTheme;
|
|
93
93
|
var formStyles = (0, _form.euiFormControlStyles)(euiThemeContext);
|
|
94
|
-
return /*#__PURE__*/(0, _css.css)(".react-datepicker__year-read-view,.react-datepicker__month-read-view,.react-datepicker__month-year-read-view{display:flex;justify-content:space-between;align-items:center;", formStyles.compressed, " ", (0, _form.euiFormControlText)(euiThemeContext), " font-weight:", euiTheme.font.weight.medium, ";", (0, _form.euiFormControlDefaultShadow)(euiThemeContext), " &:hover{cursor:pointer;text-decoration:underline;}}.react-datepicker__year-dropdown-container{position:relative;flex-grow:1;}.react-datepicker__month-dropdown-container{position:relative;flex-grow:2;}.react-datepicker__year-dropdown,.react-datepicker__month-dropdown{z-index:1;position:absolute;", (0, _global_styling.euiYScroll)(euiThemeContext, {
|
|
94
|
+
return /*#__PURE__*/(0, _css.css)(".react-datepicker__year-read-view,.react-datepicker__month-read-view,.react-datepicker__month-year-read-view{display:flex;justify-content:space-between;align-items:center;", formStyles.compressed, " ", (0, _form.euiFormControlText)(euiThemeContext), " font-weight:", euiTheme.font.weight.medium, ";", (0, _form.euiFormControlDefaultShadow)(euiThemeContext), " &:hover{cursor:pointer;text-decoration:underline;}}.react-datepicker__year-dropdown-container{position:relative;flex-grow:1;}.react-datepicker__month-dropdown-container{position:relative;flex-grow:2;}.react-datepicker__year-dropdown,.react-datepicker__month-dropdown{z-index:", Number(euiTheme.levels.content) + 1, ";position:absolute;", (0, _global_styling.euiYScroll)(euiThemeContext, {
|
|
95
95
|
height: 'auto'
|
|
96
96
|
}), " ", (0, _global_styling.logicalCSS)('max-height', '250px'), " ", (0, _global_styling.logicalCSS)('width', '100%'), " padding:", euiTheme.size.xs, ";background-color:", euiTheme.colors.emptyShade, ";border-radius:", euiTheme.border.radius.panel, ";", (0, _euiThemeCommon.euiShadowSmall)(euiThemeContext, {
|
|
97
97
|
borderAllInHighContrastMode: true
|
|
@@ -11,7 +11,7 @@ function _regeneratorKeys(e) { var n = Object(e), r = []; for (var t in n) r.uns
|
|
|
11
11
|
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(); }); }
|
|
12
12
|
function _regeneratorAsyncGen(r, e, t, o, n) { return new _regeneratorAsyncIterator(_regenerator().w(r, e, t, o), n || Promise); }
|
|
13
13
|
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); }
|
|
14
|
-
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 ?
|
|
14
|
+
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 }; })(); }
|
|
15
15
|
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); }
|
|
16
16
|
function _OverloadYield(e, d) { this.v = e, this.k = d; }
|
|
17
17
|
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); }
|
|
@@ -37,7 +37,7 @@ var AsyncInterval = exports.AsyncInterval = /*#__PURE__*/_createClass(function A
|
|
|
37
37
|
_defineProperty(this, "__pendingFn", function () {});
|
|
38
38
|
_defineProperty(this, "setAsyncInterval", function (fn, milliseconds) {
|
|
39
39
|
if (!_this.isStopped) {
|
|
40
|
-
_this.timeoutId = window.setTimeout(
|
|
40
|
+
_this.timeoutId = window.setTimeout(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
41
41
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
42
42
|
while (1) switch (_context.prev = _context.next) {
|
|
43
43
|
case 0:
|
|
@@ -47,7 +47,8 @@ var EuiTimeZoneDisplay = exports.EuiTimeZoneDisplay = function EuiTimeZoneDispla
|
|
|
47
47
|
var label = !name ? utc : "".concat(utc, " (").concat(name, ")");
|
|
48
48
|
var nameDisplay = (0, _react2.jsx)(_react.default.Fragment, null, (0, _react2.jsx)(_icon.EuiIcon, {
|
|
49
49
|
type: "globe",
|
|
50
|
-
color: color
|
|
50
|
+
color: color,
|
|
51
|
+
"aria-hidden": true
|
|
51
52
|
}), (0, _react2.jsx)(_text.EuiText, {
|
|
52
53
|
component: "span",
|
|
53
54
|
color: color,
|
|
@@ -73,7 +73,8 @@ var EuiEmptyPrompt = exports.EuiEmptyPrompt = function EuiEmptyPrompt(_ref) {
|
|
|
73
73
|
}, iconType ? (0, _react2.jsx)(_icon.EuiIcon, {
|
|
74
74
|
type: iconType,
|
|
75
75
|
size: "xxl",
|
|
76
|
-
color: iconColor
|
|
76
|
+
color: iconColor,
|
|
77
|
+
"aria-hidden": true
|
|
77
78
|
}) : icon);
|
|
78
79
|
}, [icon, iconType, iconColor, layout, styles.icon]);
|
|
79
80
|
var actionsNode = (0, _react.useMemo)(function () {
|