@elastic/eui 116.1.0 → 116.2.0-snapshot.1780495739173
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/es/components/avatar/avatar.js +15 -6
- package/es/components/badge/badge.js +1 -1
- package/es/components/badge/beta_badge/beta_badge.js +1 -1
- package/es/components/banner/banner.js +202 -0
- package/es/components/banner/banner.styles.js +76 -0
- package/es/components/banner/index.js +9 -0
- package/es/components/basic_table/basic_table.js +25 -14
- package/es/components/basic_table/collapsed_item_actions.js +5 -4
- package/es/components/basic_table/default_item_action.js +3 -5
- package/es/components/basic_table/in_memory_table.js +4 -4
- package/es/components/breadcrumbs/_breadcrumb_content.js +29 -19
- package/es/components/button/button_display/_button_display_content.js +1 -1
- package/es/components/button/button_empty/button_empty.js +1 -1
- package/es/components/button/button_icon/button_icon.js +1 -1
- package/es/components/call_out/call_out.js +1 -1
- package/es/components/card/card.js +1 -1
- package/es/components/collapsible_nav/collapsible_nav_group/collapsible_nav_group.js +1 -1
- package/es/components/collapsible_nav_beta/_kibana_solution/collapsible_nav_kibana_solution.js +1 -1
- package/es/components/collapsible_nav_beta/collapsible_nav_item/collapsed/collapsed_nav_button.js +1 -1
- package/es/components/collapsible_nav_beta/collapsible_nav_item/collapsed/collapsed_nav_item.js +2 -2
- package/es/components/collapsible_nav_beta/collapsible_nav_item/collapsed/collapsed_nav_popover.js +2 -2
- package/es/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_item.js +4 -4
- package/es/components/combo_box/combo_box_options_list/combo_box_options_list.js +2 -1
- package/es/components/comment_list/comment.js +2 -2
- package/es/components/comment_list/comment_event.js +1 -1
- package/es/components/comment_list/comment_list.js +2 -2
- package/es/components/comment_list/comment_timeline.js +1 -1
- package/es/components/context_menu/context_menu_item.js +1 -1
- package/es/components/context_menu/context_menu_panel_title.js +0 -12
- package/es/components/datagrid/body/cell/data_grid_cell.js +12 -12
- package/es/components/datagrid/body/cell/data_grid_cell_actions.js +11 -7
- package/es/components/datagrid/body/cell/data_grid_cell_actions.styles.js +2 -2
- package/es/components/datagrid/body/data_grid_body.js +7 -7
- package/es/components/datagrid/body/data_grid_body_custom.js +7 -7
- package/es/components/datagrid/body/data_grid_body_virtualized.js +7 -7
- package/es/components/datagrid/body/header/data_grid_header_cell.js +6 -6
- package/es/components/datagrid/controls/column_sorting.js +7 -7
- package/es/components/datagrid/controls/column_sorting_draggable.js +1 -1
- package/es/components/datagrid/controls/data_grid_toolbar_control.js +1 -1
- package/es/components/datagrid/controls/display_selector.js +2 -1
- package/es/components/datagrid/controls/keyboard_shortcuts.js +2 -1
- package/es/components/datagrid/utils/in_memory.js +6 -6
- package/es/components/date_picker/auto_refresh/auto_refresh.js +7 -4
- package/es/components/date_picker/date_picker.js +2 -2
- package/es/components/date_picker/date_picker_range.js +1 -1
- package/es/components/date_picker/super_date_picker/date_popover/absolute_tab.js +6 -3
- package/es/components/date_picker/super_date_picker/date_popover/date_popover_button.js +10 -2
- package/es/components/date_picker/super_date_picker/date_popover/date_popover_button.styles.js +2 -1
- package/es/components/date_picker/super_date_picker/quick_select_popover/quick_select_popover.js +8 -5
- package/es/components/empty_prompt/empty_prompt.js +1 -1
- package/es/components/flyout/flyout_menu.js +2 -2
- package/es/components/flyout/manager/flyout_child.js +1 -1
- package/es/components/flyout/manager/flyout_managed.js +1 -1
- package/es/components/form/field_number/field_number.js +2 -2
- package/es/components/form/field_password/field_password.js +6 -3
- package/es/components/form/field_text/field_text.js +2 -2
- package/es/components/form/form_control_button/form_control_button.js +1 -1
- package/es/components/form/form_control_layout/append_prepend/form_append_prepend.js +2 -2
- package/es/components/form/form_control_layout/form_control_layout.js +2 -2
- package/es/components/form/form_control_layout/form_control_layout_custom_icon.js +1 -1
- package/es/components/form/form_control_layout/form_control_layout_icons.js +2 -2
- package/es/components/form/text_area/text_area.js +2 -2
- package/es/components/header/header.a11y.js +1 -1
- package/es/components/header/header_links/header_link.js +1 -1
- package/es/components/header/header_links/header_links.js +1 -1
- package/es/components/header/header_logo/header_logo.js +1 -1
- package/es/components/header/header_section/header_section_item_button.js +1 -1
- package/es/components/icon/assets/significant_events.js +39 -0
- package/es/components/icon/icon.js +1 -1
- package/es/components/icon/icon_glyphs.a11y.js +1 -1
- package/es/components/icon/icon_map.js +3 -0
- package/es/components/index.js +1 -0
- package/es/components/key_pad_menu/key_pad_menu_item.js +1 -1
- package/es/components/list_group/list_group.js +2 -2
- package/es/components/list_group/list_group_item.js +2 -2
- package/es/components/list_group/list_group_item_extra_action.js +1 -1
- package/es/components/list_group/pinnable_list_group/pinnable_list_group.js +4 -4
- package/es/components/list_item_layout/_list_item_layout.styles.js +1 -1
- package/es/components/loading/loading_logo.js +1 -1
- package/es/components/markdown_editor/markdown_editor.js +1 -1
- package/es/components/markdown_editor/markdown_editor_drop_zone.js +1 -1
- package/es/components/markdown_editor/markdown_editor_footer.js +1 -1
- package/es/components/markdown_editor/markdown_editor_help_button.js +7 -4
- package/es/components/markdown_editor/markdown_editor_toolbar.js +1 -1
- package/es/components/outside_click_detector/outside_click_detector.js +71 -108
- package/es/components/page/page_header/page_header_content.js +1 -1
- package/es/components/pagination/pagination_button.js +1 -1
- package/es/components/pagination/pagination_button_arrow.js +6 -2
- package/es/components/search_bar/search_bar.js +20 -16
- package/es/components/search_bar/search_box.js +4 -2
- package/es/components/selectable/selectable_list/selectable_list.js +2 -2
- package/es/components/selectable/selectable_list/selectable_list.styles.js +1 -1
- package/es/components/selectable/selectable_list/selectable_list_item.js +1 -1
- package/es/components/selectable/selectable_templates/selectable_template_sitewide.js +3 -2
- package/es/components/table/sticky_scrollbar/index.js +9 -0
- package/es/components/table/sticky_scrollbar/sticky_scrollbar.js +141 -0
- package/es/components/table/sticky_scrollbar/sticky_scrollbar.styles.js +27 -0
- package/es/components/table/table.js +22 -5
- package/es/components/table/table_header_cell.js +1 -1
- package/es/components/text_truncate/text_truncate.js +8 -3
- package/es/components/timeline/timeline_item_icon.js +1 -1
- package/es/components/toast/global_toast_list.js +1 -1
- package/es/components/toast/toast.js +1 -1
- package/es/components/tool_tip/icon_tip.js +1 -1
- package/es/components/tool_tip/tool_tip.js +53 -27
- package/es/components/tool_tip/tool_tip.styles.js +14 -5
- package/es/components/tool_tip/tool_tip_anchor.js +5 -5
- package/es/components/tool_tip/tool_tip_manager.js +29 -2
- package/eui.d.ts +1120 -948
- package/i18ntokens.json +2390 -2372
- package/lib/components/avatar/avatar.js +15 -6
- package/lib/components/badge/badge.js +1 -1
- package/lib/components/badge/beta_badge/beta_badge.js +1 -1
- package/lib/components/banner/banner.js +211 -0
- package/lib/components/banner/banner.styles.js +80 -0
- package/lib/components/banner/index.js +12 -0
- package/lib/components/basic_table/basic_table.js +25 -14
- package/lib/components/basic_table/collapsed_item_actions.js +5 -4
- package/lib/components/basic_table/default_item_action.js +3 -5
- package/lib/components/basic_table/in_memory_table.js +4 -4
- package/lib/components/breadcrumbs/_breadcrumb_content.js +29 -19
- package/lib/components/button/button_display/_button_display_content.js +1 -1
- package/lib/components/button/button_empty/button_empty.js +1 -1
- package/lib/components/button/button_icon/button_icon.js +1 -1
- package/lib/components/call_out/call_out.js +1 -1
- package/lib/components/card/card.js +1 -1
- package/lib/components/collapsible_nav/collapsible_nav_group/collapsible_nav_group.js +1 -1
- package/lib/components/collapsible_nav_beta/_kibana_solution/collapsible_nav_kibana_solution.js +1 -1
- package/lib/components/collapsible_nav_beta/collapsible_nav_item/collapsed/collapsed_nav_button.js +1 -1
- package/lib/components/collapsible_nav_beta/collapsible_nav_item/collapsed/collapsed_nav_item.js +2 -2
- package/lib/components/collapsible_nav_beta/collapsible_nav_item/collapsed/collapsed_nav_popover.js +2 -2
- package/lib/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_item.js +4 -4
- package/lib/components/combo_box/combo_box_options_list/combo_box_options_list.js +2 -1
- package/lib/components/comment_list/comment.js +2 -2
- package/lib/components/comment_list/comment_event.js +1 -1
- package/lib/components/comment_list/comment_list.js +2 -2
- package/lib/components/comment_list/comment_timeline.js +1 -1
- package/lib/components/context_menu/context_menu_item.js +1 -1
- package/lib/components/context_menu/context_menu_panel_title.js +0 -12
- package/lib/components/datagrid/body/cell/data_grid_cell.js +12 -12
- package/lib/components/datagrid/body/cell/data_grid_cell_actions.js +11 -7
- package/lib/components/datagrid/body/cell/data_grid_cell_actions.styles.js +1 -1
- package/lib/components/datagrid/body/data_grid_body.js +7 -7
- package/lib/components/datagrid/body/data_grid_body_custom.js +7 -7
- package/lib/components/datagrid/body/data_grid_body_virtualized.js +7 -7
- package/lib/components/datagrid/body/header/data_grid_header_cell.js +6 -6
- package/lib/components/datagrid/controls/column_sorting.js +7 -7
- package/lib/components/datagrid/controls/column_sorting_draggable.js +1 -1
- package/lib/components/datagrid/controls/data_grid_toolbar_control.js +1 -1
- package/lib/components/datagrid/controls/display_selector.js +2 -1
- package/lib/components/datagrid/controls/keyboard_shortcuts.js +2 -1
- package/lib/components/datagrid/utils/in_memory.js +6 -6
- package/lib/components/date_picker/auto_refresh/auto_refresh.js +7 -4
- package/lib/components/date_picker/date_picker.js +2 -2
- package/lib/components/date_picker/date_picker_range.js +1 -1
- package/lib/components/date_picker/super_date_picker/date_popover/absolute_tab.js +6 -3
- package/lib/components/date_picker/super_date_picker/date_popover/date_popover_button.js +10 -2
- package/lib/components/date_picker/super_date_picker/date_popover/date_popover_button.styles.js +2 -1
- package/lib/components/date_picker/super_date_picker/quick_select_popover/quick_select_popover.js +8 -5
- package/lib/components/empty_prompt/empty_prompt.js +1 -1
- package/lib/components/flyout/flyout_menu.js +2 -2
- package/lib/components/flyout/manager/flyout_child.js +1 -1
- package/lib/components/form/field_number/field_number.js +2 -2
- package/lib/components/form/field_password/field_password.js +6 -3
- package/lib/components/form/field_text/field_text.js +2 -2
- package/lib/components/form/form_control_button/form_control_button.js +1 -1
- package/lib/components/form/form_control_layout/append_prepend/form_append_prepend.js +2 -2
- package/lib/components/form/form_control_layout/form_control_layout.js +2 -2
- package/lib/components/form/form_control_layout/form_control_layout_custom_icon.js +1 -1
- package/lib/components/form/form_control_layout/form_control_layout_icons.js +2 -2
- package/lib/components/form/text_area/text_area.js +2 -2
- package/lib/components/header/header.a11y.js +1 -1
- package/lib/components/header/header_links/header_link.js +1 -1
- package/lib/components/header/header_links/header_links.js +1 -1
- package/lib/components/header/header_logo/header_logo.js +1 -1
- package/lib/components/header/header_section/header_section_item_button.js +1 -1
- package/lib/components/icon/assets/significant_events.js +46 -0
- package/lib/components/icon/icon.js +1 -1
- package/lib/components/icon/icon_glyphs.a11y.js +1 -1
- package/lib/components/icon/icon_map.js +5 -0
- package/lib/components/icon/svgs/significant_events.svg +11 -0
- package/lib/components/index.js +11 -0
- package/lib/components/key_pad_menu/key_pad_menu_item.js +1 -1
- package/lib/components/list_group/list_group.js +2 -2
- package/lib/components/list_group/list_group_item.js +2 -2
- package/lib/components/list_group/list_group_item_extra_action.js +1 -1
- package/lib/components/list_group/pinnable_list_group/pinnable_list_group.js +4 -4
- package/lib/components/list_item_layout/_list_item_layout.styles.js +1 -1
- package/lib/components/loading/loading_logo.js +1 -1
- package/lib/components/markdown_editor/markdown_editor.js +1 -1
- package/lib/components/markdown_editor/markdown_editor_drop_zone.js +1 -1
- package/lib/components/markdown_editor/markdown_editor_footer.js +1 -1
- package/lib/components/markdown_editor/markdown_editor_help_button.js +7 -4
- package/lib/components/markdown_editor/markdown_editor_toolbar.js +1 -1
- package/lib/components/outside_click_detector/outside_click_detector.js +69 -106
- package/lib/components/page/page_header/page_header_content.js +1 -1
- package/lib/components/pagination/pagination_button.js +1 -1
- package/lib/components/pagination/pagination_button_arrow.js +6 -2
- package/lib/components/search_bar/search_bar.js +20 -16
- package/lib/components/search_bar/search_box.js +4 -2
- package/lib/components/selectable/selectable_list/selectable_list.js +2 -2
- package/lib/components/selectable/selectable_list/selectable_list.styles.js +1 -1
- package/lib/components/selectable/selectable_list/selectable_list_item.js +1 -1
- package/lib/components/selectable/selectable_templates/selectable_template_sitewide.js +3 -2
- package/lib/components/table/sticky_scrollbar/index.js +12 -0
- package/lib/components/table/sticky_scrollbar/sticky_scrollbar.js +148 -0
- package/lib/components/table/sticky_scrollbar/sticky_scrollbar.styles.js +31 -0
- package/lib/components/table/table.js +25 -5
- package/lib/components/table/table_header_cell.js +1 -1
- package/lib/components/text_truncate/text_truncate.js +8 -3
- package/lib/components/timeline/timeline_item_icon.js +1 -1
- package/lib/components/toast/global_toast_list.js +1 -1
- package/lib/components/toast/toast.js +1 -1
- package/lib/components/tool_tip/icon_tip.js +1 -1
- package/lib/components/tool_tip/tool_tip.js +52 -27
- package/lib/components/tool_tip/tool_tip.styles.js +14 -5
- package/lib/components/tool_tip/tool_tip_anchor.js +5 -5
- package/lib/components/tool_tip/tool_tip_manager.js +29 -2
- package/optimize/es/components/avatar/avatar.js +12 -4
- package/optimize/es/components/banner/banner.js +112 -0
- package/optimize/es/components/banner/banner.styles.js +76 -0
- package/optimize/es/components/banner/index.js +9 -0
- package/optimize/es/components/basic_table/basic_table.js +21 -10
- package/optimize/es/components/basic_table/collapsed_item_actions.js +5 -4
- package/optimize/es/components/basic_table/default_item_action.js +3 -5
- package/optimize/es/components/breadcrumbs/_breadcrumb_content.js +27 -18
- package/optimize/es/components/combo_box/combo_box_options_list/combo_box_options_list.js +2 -1
- package/optimize/es/components/datagrid/body/cell/data_grid_cell_actions.js +11 -7
- package/optimize/es/components/datagrid/body/cell/data_grid_cell_actions.styles.js +2 -2
- package/optimize/es/components/datagrid/controls/display_selector.js +2 -1
- package/optimize/es/components/datagrid/controls/keyboard_shortcuts.js +2 -1
- package/optimize/es/components/date_picker/auto_refresh/auto_refresh.js +7 -4
- package/optimize/es/components/date_picker/super_date_picker/date_popover/absolute_tab.js +6 -3
- package/optimize/es/components/date_picker/super_date_picker/date_popover/date_popover_button.js +10 -2
- package/optimize/es/components/date_picker/super_date_picker/date_popover/date_popover_button.styles.js +2 -1
- package/optimize/es/components/date_picker/super_date_picker/quick_select_popover/quick_select_popover.js +8 -5
- package/optimize/es/components/form/field_password/field_password.js +6 -3
- package/optimize/es/components/header/header.a11y.js +1 -1
- package/optimize/es/components/icon/assets/significant_events.js +38 -0
- package/optimize/es/components/icon/icon_glyphs.a11y.js +1 -1
- package/optimize/es/components/icon/icon_map.js +3 -0
- package/optimize/es/components/index.js +1 -0
- package/optimize/es/components/list_item_layout/_list_item_layout.styles.js +1 -1
- package/optimize/es/components/markdown_editor/markdown_editor_help_button.js +7 -4
- package/optimize/es/components/outside_click_detector/outside_click_detector.js +70 -104
- package/optimize/es/components/pagination/pagination_button_arrow.js +6 -2
- package/optimize/es/components/search_bar/search_bar.js +20 -16
- package/optimize/es/components/search_bar/search_box.js +4 -2
- package/optimize/es/components/selectable/selectable_list/selectable_list.js +1 -1
- package/optimize/es/components/selectable/selectable_list/selectable_list.styles.js +1 -1
- package/optimize/es/components/table/sticky_scrollbar/index.js +9 -0
- package/optimize/es/components/table/sticky_scrollbar/sticky_scrollbar.js +136 -0
- package/optimize/es/components/table/sticky_scrollbar/sticky_scrollbar.styles.js +27 -0
- package/optimize/es/components/table/table.js +12 -5
- package/optimize/es/components/text_truncate/text_truncate.js +8 -3
- package/optimize/es/components/tool_tip/tool_tip.js +50 -27
- package/optimize/es/components/tool_tip/tool_tip.styles.js +14 -5
- package/optimize/es/components/tool_tip/tool_tip_anchor.js +5 -5
- package/optimize/es/components/tool_tip/tool_tip_manager.js +29 -2
- package/optimize/lib/components/avatar/avatar.js +12 -4
- package/optimize/lib/components/banner/banner.js +121 -0
- package/optimize/lib/components/banner/banner.styles.js +80 -0
- package/optimize/lib/components/banner/index.js +12 -0
- package/optimize/lib/components/basic_table/basic_table.js +21 -10
- package/optimize/lib/components/basic_table/collapsed_item_actions.js +5 -4
- package/optimize/lib/components/basic_table/default_item_action.js +3 -5
- package/optimize/lib/components/breadcrumbs/_breadcrumb_content.js +27 -18
- package/optimize/lib/components/combo_box/combo_box_options_list/combo_box_options_list.js +2 -1
- package/optimize/lib/components/datagrid/body/cell/data_grid_cell_actions.js +11 -7
- package/optimize/lib/components/datagrid/body/cell/data_grid_cell_actions.styles.js +1 -1
- package/optimize/lib/components/datagrid/controls/display_selector.js +2 -1
- package/optimize/lib/components/datagrid/controls/keyboard_shortcuts.js +2 -1
- package/optimize/lib/components/date_picker/auto_refresh/auto_refresh.js +7 -4
- package/optimize/lib/components/date_picker/super_date_picker/date_popover/absolute_tab.js +6 -3
- package/optimize/lib/components/date_picker/super_date_picker/date_popover/date_popover_button.js +10 -2
- package/optimize/lib/components/date_picker/super_date_picker/date_popover/date_popover_button.styles.js +2 -1
- package/optimize/lib/components/date_picker/super_date_picker/quick_select_popover/quick_select_popover.js +8 -5
- package/optimize/lib/components/form/field_password/field_password.js +6 -3
- package/optimize/lib/components/header/header.a11y.js +1 -1
- package/optimize/lib/components/icon/assets/significant_events.js +46 -0
- package/optimize/lib/components/icon/icon_glyphs.a11y.js +1 -1
- package/optimize/lib/components/icon/icon_map.js +5 -0
- package/optimize/lib/components/icon/svgs/significant_events.svg +11 -0
- package/optimize/lib/components/index.js +11 -0
- package/optimize/lib/components/list_item_layout/_list_item_layout.styles.js +1 -1
- package/optimize/lib/components/markdown_editor/markdown_editor_help_button.js +7 -4
- package/optimize/lib/components/outside_click_detector/outside_click_detector.js +69 -103
- package/optimize/lib/components/pagination/pagination_button_arrow.js +6 -2
- package/optimize/lib/components/search_bar/search_bar.js +20 -16
- package/optimize/lib/components/search_bar/search_box.js +4 -2
- package/optimize/lib/components/selectable/selectable_list/selectable_list.js +1 -1
- package/optimize/lib/components/selectable/selectable_list/selectable_list.styles.js +1 -1
- package/optimize/lib/components/table/sticky_scrollbar/index.js +12 -0
- package/optimize/lib/components/table/sticky_scrollbar/sticky_scrollbar.js +146 -0
- package/optimize/lib/components/table/sticky_scrollbar/sticky_scrollbar.styles.js +31 -0
- package/optimize/lib/components/table/table.js +15 -5
- package/optimize/lib/components/text_truncate/text_truncate.js +8 -3
- package/optimize/lib/components/tool_tip/tool_tip.js +50 -27
- package/optimize/lib/components/tool_tip/tool_tip.styles.js +14 -5
- package/optimize/lib/components/tool_tip/tool_tip_anchor.js +5 -5
- package/optimize/lib/components/tool_tip/tool_tip_manager.js +29 -2
- package/package.json +4 -4
- package/test-env/components/avatar/avatar.js +15 -6
- package/test-env/components/badge/badge.js +1 -1
- package/test-env/components/badge/beta_badge/beta_badge.js +1 -1
- package/test-env/components/banner/banner.js +210 -0
- package/test-env/components/banner/banner.styles.js +80 -0
- package/test-env/components/banner/index.js +12 -0
- package/test-env/components/basic_table/basic_table.js +25 -14
- package/test-env/components/basic_table/collapsed_item_actions.js +5 -4
- package/test-env/components/basic_table/default_item_action.js +3 -5
- package/test-env/components/basic_table/in_memory_table.js +4 -4
- package/test-env/components/breadcrumbs/_breadcrumb_content.js +29 -19
- package/test-env/components/button/button_display/_button_display_content.js +1 -1
- package/test-env/components/button/button_empty/button_empty.js +1 -1
- package/test-env/components/button/button_icon/button_icon.js +1 -1
- package/test-env/components/call_out/call_out.js +1 -1
- package/test-env/components/card/card.js +1 -1
- package/test-env/components/collapsible_nav/collapsible_nav_group/collapsible_nav_group.js +1 -1
- package/test-env/components/collapsible_nav_beta/_kibana_solution/collapsible_nav_kibana_solution.js +1 -1
- package/test-env/components/collapsible_nav_beta/collapsible_nav_item/collapsed/collapsed_nav_button.js +1 -1
- package/test-env/components/collapsible_nav_beta/collapsible_nav_item/collapsed/collapsed_nav_item.js +2 -2
- package/test-env/components/collapsible_nav_beta/collapsible_nav_item/collapsed/collapsed_nav_popover.js +2 -2
- package/test-env/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_item.js +4 -4
- package/test-env/components/combo_box/combo_box_options_list/combo_box_options_list.js +2 -1
- package/test-env/components/comment_list/comment.js +2 -2
- package/test-env/components/comment_list/comment_event.js +1 -1
- package/test-env/components/comment_list/comment_list.js +2 -2
- package/test-env/components/comment_list/comment_timeline.js +1 -1
- package/test-env/components/context_menu/context_menu_item.js +1 -1
- package/test-env/components/context_menu/context_menu_panel_title.js +0 -12
- package/test-env/components/datagrid/body/cell/data_grid_cell.js +12 -12
- package/test-env/components/datagrid/body/cell/data_grid_cell_actions.js +11 -7
- package/test-env/components/datagrid/body/cell/data_grid_cell_actions.styles.js +1 -1
- package/test-env/components/datagrid/body/data_grid_body.js +7 -7
- package/test-env/components/datagrid/body/data_grid_body_custom.js +7 -7
- package/test-env/components/datagrid/body/data_grid_body_virtualized.js +7 -7
- package/test-env/components/datagrid/body/header/data_grid_header_cell.js +6 -6
- package/test-env/components/datagrid/controls/column_sorting.js +7 -7
- package/test-env/components/datagrid/controls/column_sorting_draggable.js +1 -1
- package/test-env/components/datagrid/controls/data_grid_toolbar_control.js +1 -1
- package/test-env/components/datagrid/controls/display_selector.js +2 -1
- package/test-env/components/datagrid/controls/keyboard_shortcuts.js +2 -1
- package/test-env/components/datagrid/utils/in_memory.js +6 -6
- package/test-env/components/date_picker/auto_refresh/auto_refresh.js +7 -4
- package/test-env/components/date_picker/date_picker.js +2 -2
- package/test-env/components/date_picker/date_picker_range.js +1 -1
- package/test-env/components/date_picker/super_date_picker/date_popover/absolute_tab.js +6 -3
- package/test-env/components/date_picker/super_date_picker/date_popover/date_popover_button.js +10 -2
- package/test-env/components/date_picker/super_date_picker/date_popover/date_popover_button.styles.js +2 -1
- package/test-env/components/date_picker/super_date_picker/quick_select_popover/quick_select_popover.js +8 -5
- package/test-env/components/empty_prompt/empty_prompt.js +1 -1
- package/test-env/components/flyout/flyout_menu.js +2 -2
- package/test-env/components/flyout/manager/flyout_child.js +1 -1
- package/test-env/components/form/field_number/field_number.js +2 -2
- package/test-env/components/form/field_password/field_password.js +6 -3
- package/test-env/components/form/field_text/field_text.js +2 -2
- package/test-env/components/form/form_control_button/form_control_button.js +1 -1
- package/test-env/components/form/form_control_layout/append_prepend/form_append_prepend.js +2 -2
- package/test-env/components/form/form_control_layout/form_control_layout.js +2 -2
- package/test-env/components/form/form_control_layout/form_control_layout_custom_icon.js +1 -1
- package/test-env/components/form/form_control_layout/form_control_layout_icons.js +2 -2
- package/test-env/components/form/text_area/text_area.js +2 -2
- package/test-env/components/header/header.a11y.js +1 -1
- package/test-env/components/header/header_links/header_link.js +1 -1
- package/test-env/components/header/header_links/header_links.js +1 -1
- package/test-env/components/header/header_logo/header_logo.js +1 -1
- package/test-env/components/header/header_section/header_section_item_button.js +1 -1
- package/test-env/components/icon/assets/significant_events.js +46 -0
- package/test-env/components/icon/icon_glyphs.a11y.js +1 -1
- package/test-env/components/icon/icon_map.js +5 -0
- package/test-env/components/index.js +11 -0
- package/test-env/components/key_pad_menu/key_pad_menu_item.js +1 -1
- package/test-env/components/list_group/list_group.js +2 -2
- package/test-env/components/list_group/list_group_item.js +2 -2
- package/test-env/components/list_group/list_group_item_extra_action.js +1 -1
- package/test-env/components/list_group/pinnable_list_group/pinnable_list_group.js +4 -4
- package/test-env/components/list_item_layout/_list_item_layout.styles.js +1 -1
- package/test-env/components/loading/loading_logo.js +1 -1
- package/test-env/components/markdown_editor/markdown_editor.js +1 -1
- package/test-env/components/markdown_editor/markdown_editor_drop_zone.js +1 -1
- package/test-env/components/markdown_editor/markdown_editor_footer.js +1 -1
- package/test-env/components/markdown_editor/markdown_editor_help_button.js +7 -4
- package/test-env/components/markdown_editor/markdown_editor_toolbar.js +1 -1
- package/test-env/components/outside_click_detector/outside_click_detector.js +70 -104
- package/test-env/components/page/page_header/page_header_content.js +1 -1
- package/test-env/components/pagination/pagination_button.js +1 -1
- package/test-env/components/pagination/pagination_button_arrow.js +6 -2
- package/test-env/components/search_bar/search_bar.js +20 -16
- package/test-env/components/search_bar/search_box.js +4 -2
- package/test-env/components/selectable/selectable_list/selectable_list.js +2 -2
- package/test-env/components/selectable/selectable_list/selectable_list.styles.js +1 -1
- package/test-env/components/selectable/selectable_list/selectable_list_item.js +1 -1
- package/test-env/components/selectable/selectable_templates/selectable_template_sitewide.js +3 -2
- package/test-env/components/table/sticky_scrollbar/index.js +12 -0
- package/test-env/components/table/sticky_scrollbar/sticky_scrollbar.js +146 -0
- package/test-env/components/table/sticky_scrollbar/sticky_scrollbar.styles.js +31 -0
- package/test-env/components/table/table.js +25 -5
- package/test-env/components/table/table_header_cell.js +1 -1
- package/test-env/components/text_truncate/text_truncate.js +8 -3
- package/test-env/components/timeline/timeline_item_icon.js +1 -1
- package/test-env/components/toast/global_toast_list.js +1 -1
- package/test-env/components/toast/toast.js +1 -1
- package/test-env/components/tool_tip/icon_tip.js +1 -1
- package/test-env/components/tool_tip/tool_tip.js +50 -27
- package/test-env/components/tool_tip/tool_tip.styles.js +14 -5
- package/test-env/components/tool_tip/tool_tip_anchor.js +5 -5
- package/test-env/components/tool_tip/tool_tip_manager.js +29 -2
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
|
|
2
|
+
/*
|
|
3
|
+
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
4
|
+
* or more contributor license agreements. Licensed under the Elastic License
|
|
5
|
+
* 2.0 and the Server Side Public License, v 1; you may not use this file except
|
|
6
|
+
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
|
7
|
+
* Side Public License, v 1.
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
import { css } from '@emotion/react';
|
|
11
|
+
var CONTAINER_NAME = 'euiBanner';
|
|
12
|
+
var CQC_LAYOUTS = ['narrow', 'wide'];
|
|
13
|
+
var CQC_BREAKPOINTS = {
|
|
14
|
+
s: {
|
|
15
|
+
narrow: '(min-width: 401px)',
|
|
16
|
+
wide: '(min-width: 800px)'
|
|
17
|
+
},
|
|
18
|
+
m: {
|
|
19
|
+
narrow: '(min-width: 601px)',
|
|
20
|
+
wide: '(min-width: 1000px)'
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
var CQC_BREAKPOINT_NARROWEST = '(max-width: 400px)';
|
|
24
|
+
|
|
25
|
+
/** Maximum reading width for `text` and `children` slots. */
|
|
26
|
+
var TEXT_MAX_WIDTH = 1200;
|
|
27
|
+
var withContainerQuery = function withContainerQuery(_ref2) {
|
|
28
|
+
var layout = _ref2.layout,
|
|
29
|
+
styles = _ref2.styles;
|
|
30
|
+
return Object.keys(CQC_BREAKPOINTS).map(function (sizeKey) {
|
|
31
|
+
return "\n @container ".concat(CONTAINER_NAME, "--").concat(sizeKey, " ").concat(CQC_BREAKPOINTS[sizeKey][layout], " {\n ").concat(styles, "\n }\n ");
|
|
32
|
+
}).join('\n');
|
|
33
|
+
};
|
|
34
|
+
var _ref = process.env.NODE_ENV === "production" ? {
|
|
35
|
+
name: "qd171g-title",
|
|
36
|
+
styles: "[data-size='s'] &{display:inline;};label:title;"
|
|
37
|
+
} : {
|
|
38
|
+
name: "qd171g-title",
|
|
39
|
+
styles: "[data-size='s'] &{display:inline;};label:title;",
|
|
40
|
+
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
41
|
+
};
|
|
42
|
+
export var euiBannerStyles = function euiBannerStyles(_ref3) {
|
|
43
|
+
var euiTheme = _ref3.euiTheme;
|
|
44
|
+
return {
|
|
45
|
+
euiBanner: /*#__PURE__*/css("container-name:", CONTAINER_NAME, ";container-type:inline-size;position:relative;border:", euiTheme.border.thin, ";border-radius:", euiTheme.border.radius.medium, ";&[data-size='s']{container-name:", CONTAINER_NAME, " ", CONTAINER_NAME, "--s;}&[data-size='m']{container-name:", CONTAINER_NAME, " ", CONTAINER_NAME, "--m;};label:euiBanner;"),
|
|
46
|
+
container: /*#__PURE__*/css("display:flex;flex-direction:column;align-items:stretch;gap:", euiTheme.size.m, ";padding-inline-start:", euiTheme.size.base, ";padding-inline-end:", euiTheme.size.base, ";[data-size='m'] &{padding-block:", euiTheme.size.base, ";}[data-size='s'] &{padding-block:", euiTheme.size.m, ";}", withContainerQuery({
|
|
47
|
+
layout: 'narrow',
|
|
48
|
+
styles: "\n flex-direction: row;\n align-items: flex-start;\n gap: ".concat(euiTheme.size.base, ";\n ")
|
|
49
|
+
}), ";;label:container;"),
|
|
50
|
+
media: /*#__PURE__*/css("--euiBannerMediaSize:", "calc(".concat(euiTheme.size.base, " * 5)"), ";flex-shrink:0;inline-size:var(--euiBannerMediaSize);block-size:var(--euiBannerMediaSize);aspect-ratio:1/1;[data-size='s'] &{--euiBannerMediaSize:", "calc(".concat(euiTheme.size.base, " * 2)"), ";}", withContainerQuery({
|
|
51
|
+
layout: 'wide',
|
|
52
|
+
styles: "\n align-self: center;\n "
|
|
53
|
+
}), " img,svg{block-size:100%;inline-size:100%;};label:media;"),
|
|
54
|
+
body: /*#__PURE__*/css("flex:1 1 auto;min-inline-size:0;display:flex;flex-direction:column;align-self:flex-start;inline-size:100%;gap:", euiTheme.size.m, ";", withContainerQuery({
|
|
55
|
+
layout: 'narrow',
|
|
56
|
+
styles: "\n align-self: center;\n inline-size: auto;\n "
|
|
57
|
+
}), " ", withContainerQuery({
|
|
58
|
+
layout: 'wide',
|
|
59
|
+
styles: "\n flex-direction: row;\n align-items: center;\n /* stretch to match the media's height so align-items has space to work */\n align-self: stretch;\n justify-content: space-between;\n gap: ".concat(euiTheme.size.xxl, ";\n ")
|
|
60
|
+
}), ";;label:body;"),
|
|
61
|
+
// At size `s` the content slot becomes a block container so the title and
|
|
62
|
+
// text flow inline. Other sizes keep the flex column with a fixed gap.
|
|
63
|
+
content: /*#__PURE__*/css("flex:1 1 auto;min-inline-size:0;max-inline-size:", TEXT_MAX_WIDTH, "px;display:flex;flex-direction:column;gap:", euiTheme.size.xs, ";[data-size='s'] &{display:block;>*+*:not(.euiButtonIcon){margin-block-start:", euiTheme.size.s, ";}};label:content;"),
|
|
64
|
+
title: _ref,
|
|
65
|
+
text: /*#__PURE__*/css("[data-size='s'] &{display:inline;&::before{content:'\xB7';display:inline-block;inline-size:calc(", euiTheme.size.s, " + ", euiTheme.size.xxs, ");text-align:center;color:", euiTheme.colors.textHeading, ";}};label:text;"),
|
|
66
|
+
actions: /*#__PURE__*/css("display:flex;flex-direction:row;align-items:center;flex-wrap:nowrap;gap:", euiTheme.size.s, ";@container ", CONTAINER_NAME, " ", CQC_BREAKPOINT_NARROWEST, "{flex-wrap:wrap;>*{inline-size:100%;}}", withContainerQuery({
|
|
67
|
+
layout: 'wide',
|
|
68
|
+
styles: "\n /* Reverses source order so primary appears last (rightmost). */\n flex-direction: row-reverse;\n flex-shrink: 0;\n align-self: center;\n "
|
|
69
|
+
}), ";;label:actions;"),
|
|
70
|
+
hasDismiss: /*#__PURE__*/css(withContainerQuery({
|
|
71
|
+
layout: 'narrow',
|
|
72
|
+
styles: "\n padding-inline-end: calc(".concat(euiTheme.size.s, " * 5);\n ")
|
|
73
|
+
}), ";;label:hasDismiss;"),
|
|
74
|
+
dismiss: /*#__PURE__*/css("position:absolute;inset-block-start:", euiTheme.size.s, ";inset-inline-end:", euiTheme.size.s, ";color:", euiTheme.colors.textSubdued, ";;label:dismiss;")
|
|
75
|
+
};
|
|
76
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
3
|
+
* or more contributor license agreements. Licensed under the Elastic License
|
|
4
|
+
* 2.0 and the Server Side Public License, v 1; you may not use this file except
|
|
5
|
+
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
|
6
|
+
* Side Public License, v 1.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
export { EuiBanner } from './banner';
|
|
@@ -8,7 +8,7 @@ import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstruct
|
|
|
8
8
|
import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
|
|
9
9
|
import _inherits from "@babel/runtime/helpers/inherits";
|
|
10
10
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
11
|
-
var _excluded = ["className", "loading", "items", "itemId", "columns", "pagination", "sorting", "selection", "onChange", "error", "noItemsMessage", "compressed", "itemIdToExpandedRowMap", "responsiveBreakpoint", "rowProps", "cellProps", "tableCaption", "rowHeader", "tableLayout", "hasBackground", "scrollableInline"],
|
|
11
|
+
var _excluded = ["className", "loading", "items", "itemId", "columns", "pagination", "sorting", "selection", "onChange", "error", "noItemsMessage", "compressed", "itemIdToExpandedRowMap", "responsiveBreakpoint", "rowProps", "cellProps", "tableCaption", "rowHeader", "tableLayout", "hasBackground", "scrollableInline", "stickyScrollbar"],
|
|
12
12
|
_excluded2 = ["align", "render", "dataType", "isExpander", "textOnly", "name", "field", "description", "sortable", "footer", "mobileOptions", "nameTooltip"];
|
|
13
13
|
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; }
|
|
14
14
|
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) { _defineProperty(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; }
|
|
@@ -41,6 +41,7 @@ import { EuiI18n } from '../i18n';
|
|
|
41
41
|
import { EuiDelayRender } from '../delay_render';
|
|
42
42
|
import { htmlIdGenerator } from '../../services/accessibility';
|
|
43
43
|
import { euiBasicTableBodyLoading, safariLoadingWorkaround } from './basic_table.styles';
|
|
44
|
+
import { EuiToolTip } from '../tool_tip';
|
|
44
45
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
45
46
|
var dataTypesProfiles = {
|
|
46
47
|
auto: {
|
|
@@ -155,7 +156,11 @@ export var EuiBasicTable = /*#__PURE__*/function (_Component) {
|
|
|
155
156
|
var _ref4 = _slicedToArray(_ref3, 2),
|
|
156
157
|
selectAllRows = _ref4[0],
|
|
157
158
|
deselectRows = _ref4[1];
|
|
158
|
-
return ___EmotionJSX(
|
|
159
|
+
return ___EmotionJSX(EuiToolTip, {
|
|
160
|
+
content: checked || indeterminate ? deselectRows : selectAllRows,
|
|
161
|
+
display: "block",
|
|
162
|
+
disableScreenReaderOutput: true
|
|
163
|
+
}, ___EmotionJSX(EuiCheckbox, {
|
|
159
164
|
id: _this.selectAllIdGenerator(),
|
|
160
165
|
checked: checked,
|
|
161
166
|
indeterminate: indeterminate,
|
|
@@ -163,9 +168,8 @@ export var EuiBasicTable = /*#__PURE__*/function (_Component) {
|
|
|
163
168
|
onChange: onChange,
|
|
164
169
|
"data-test-subj": "checkboxSelectAll",
|
|
165
170
|
"aria-label": checked || indeterminate ? deselectRows : selectAllRows,
|
|
166
|
-
title: checked || indeterminate ? deselectRows : selectAllRows,
|
|
167
171
|
label: isMobile ? selectAllRows : null
|
|
168
|
-
});
|
|
172
|
+
}));
|
|
169
173
|
});
|
|
170
174
|
});
|
|
171
175
|
_defineProperty(_this, "renderCopyChar", function (columnIndex) {
|
|
@@ -354,6 +358,7 @@ export var EuiBasicTable = /*#__PURE__*/function (_Component) {
|
|
|
354
358
|
tableLayout = _this$props2.tableLayout,
|
|
355
359
|
hasBackground = _this$props2.hasBackground,
|
|
356
360
|
scrollableInline = _this$props2.scrollableInline,
|
|
361
|
+
stickyScrollbar = _this$props2.stickyScrollbar,
|
|
357
362
|
rest = _objectWithoutProperties(_this$props2, _excluded);
|
|
358
363
|
var classes = classNames('euiBasicTable', {
|
|
359
364
|
'euiBasicTable-loading': loading
|
|
@@ -373,7 +378,8 @@ export var EuiBasicTable = /*#__PURE__*/function (_Component) {
|
|
|
373
378
|
tableLayout = _this$props3.tableLayout,
|
|
374
379
|
hasBackground = _this$props3.hasBackground,
|
|
375
380
|
loading = _this$props3.loading,
|
|
376
|
-
scrollableInline = _this$props3.scrollableInline
|
|
381
|
+
scrollableInline = _this$props3.scrollableInline,
|
|
382
|
+
stickyScrollbar = _this$props3.stickyScrollbar;
|
|
377
383
|
return ___EmotionJSX(React.Fragment, null, ___EmotionJSX(EuiTableHeaderMobile, {
|
|
378
384
|
responsiveBreakpoint: responsiveBreakpoint
|
|
379
385
|
}, this.renderSelectAll(true), this.renderTableMobileSort()), ___EmotionJSX(OverrideCopiedTabularContent, null, ___EmotionJSX(EuiTable, {
|
|
@@ -383,6 +389,7 @@ export var EuiBasicTable = /*#__PURE__*/function (_Component) {
|
|
|
383
389
|
compressed: compressed,
|
|
384
390
|
hasBackground: hasBackground,
|
|
385
391
|
scrollableInline: scrollableInline,
|
|
392
|
+
stickyScrollbar: stickyScrollbar,
|
|
386
393
|
css: loading && safariLoadingWorkaround
|
|
387
394
|
}, this.renderTableCaption(), this.renderTableHead(), this.renderTableBody(), this.renderTableFooter())));
|
|
388
395
|
}
|
|
@@ -651,8 +658,9 @@ export var EuiBasicTable = /*#__PURE__*/function (_Component) {
|
|
|
651
658
|
}
|
|
652
659
|
}, ___EmotionJSX(EuiIcon, {
|
|
653
660
|
type: "minusCircle",
|
|
654
|
-
color: "danger"
|
|
655
|
-
|
|
661
|
+
color: "danger",
|
|
662
|
+
"aria-hidden": true
|
|
663
|
+
}), ' ', error));
|
|
656
664
|
}
|
|
657
665
|
}, {
|
|
658
666
|
key: "renderEmptyMessage",
|
|
@@ -779,15 +787,18 @@ export var EuiBasicTable = /*#__PURE__*/function (_Component) {
|
|
|
779
787
|
index: displayedRowIndex + 1
|
|
780
788
|
}
|
|
781
789
|
}, function (selectThisRow) {
|
|
782
|
-
return ___EmotionJSX(
|
|
790
|
+
return ___EmotionJSX(EuiToolTip, {
|
|
791
|
+
content: title || selectThisRow,
|
|
792
|
+
display: "block",
|
|
793
|
+
disableScreenReaderOutput: true
|
|
794
|
+
}, ___EmotionJSX(EuiCheckbox, {
|
|
783
795
|
id: "".concat(_this6.tableId).concat(key, "-checkbox"),
|
|
784
796
|
disabled: disabled,
|
|
785
797
|
checked: checked,
|
|
786
798
|
onChange: onChange,
|
|
787
|
-
title: title || selectThisRow,
|
|
788
799
|
"aria-label": title || selectThisRow,
|
|
789
800
|
"data-test-subj": "checkboxSelectRow-".concat(itemId)
|
|
790
|
-
});
|
|
801
|
+
}));
|
|
791
802
|
})), disabled];
|
|
792
803
|
}
|
|
793
804
|
}, {
|
|
@@ -90,10 +90,10 @@ export var CollapsedItemActions = function CollapsedItemActions(_ref) {
|
|
|
90
90
|
var popoverButton = ___EmotionJSX(EuiButtonIcon, {
|
|
91
91
|
className: className,
|
|
92
92
|
"aria-label": actionsDisabled ? allActionsButtonDisabledAriaLabel : allActionsButtonAriaLabel,
|
|
93
|
-
title: actionsDisabled ? allActionsButtonDisabledAriaLabel : undefined,
|
|
94
93
|
iconType: "boxesVertical",
|
|
95
94
|
color: "text",
|
|
96
95
|
isDisabled: actionsDisabled,
|
|
96
|
+
hasAriaDisabled: actionsDisabled,
|
|
97
97
|
onClick: function onClick() {
|
|
98
98
|
return setPopoverOpen(function (isOpen) {
|
|
99
99
|
return !isOpen;
|
|
@@ -101,14 +101,15 @@ export var CollapsedItemActions = function CollapsedItemActions(_ref) {
|
|
|
101
101
|
},
|
|
102
102
|
"data-test-subj": "euiCollapsedItemActionsButton"
|
|
103
103
|
});
|
|
104
|
-
var withTooltip =
|
|
105
|
-
content: allActionsTooltip
|
|
104
|
+
var withTooltip = ___EmotionJSX(EuiToolTip, {
|
|
105
|
+
content: actionsDisabled ? allActionsButtonDisabledAriaLabel : allActionsTooltip,
|
|
106
|
+
disableScreenReaderOutput: true
|
|
106
107
|
}, popoverButton);
|
|
107
108
|
return ___EmotionJSX(EuiPopover, {
|
|
108
109
|
className: className,
|
|
109
110
|
id: "".concat(itemId, "-actions"),
|
|
110
111
|
isOpen: popoverOpen,
|
|
111
|
-
button: withTooltip
|
|
112
|
+
button: withTooltip,
|
|
112
113
|
closePopover: closePopover,
|
|
113
114
|
panelPaddingSize: "none",
|
|
114
115
|
anchorPosition: "leftCenter"
|
|
@@ -48,16 +48,13 @@ export var DefaultItemAction = function DefaultItemAction(_ref) {
|
|
|
48
48
|
className: className,
|
|
49
49
|
"aria-labelledby": ariaLabelId,
|
|
50
50
|
isDisabled: !enabled,
|
|
51
|
+
hasAriaDisabled: !enabled,
|
|
51
52
|
color: color,
|
|
52
53
|
iconType: icon,
|
|
53
54
|
onClick: onClick,
|
|
54
55
|
href: href,
|
|
55
56
|
target: action.target,
|
|
56
57
|
"data-test-subj": dataTestSubj
|
|
57
|
-
// If action is disabled, the normal tooltip can't show - attempt to
|
|
58
|
-
// provide some amount of affordance with a browser title tooltip
|
|
59
|
-
,
|
|
60
|
-
title: !enabled ? tooltipContent : undefined
|
|
61
58
|
});
|
|
62
59
|
// actionContent (action.name) is a ReactNode and must be rendered
|
|
63
60
|
// to an element and referenced by ID for screen readers
|
|
@@ -69,6 +66,7 @@ export var DefaultItemAction = function DefaultItemAction(_ref) {
|
|
|
69
66
|
className: className,
|
|
70
67
|
size: "s",
|
|
71
68
|
isDisabled: !enabled,
|
|
69
|
+
hasAriaDisabled: !enabled,
|
|
72
70
|
color: color,
|
|
73
71
|
iconType: icon,
|
|
74
72
|
onClick: onClick,
|
|
@@ -78,5 +76,5 @@ export var DefaultItemAction = function DefaultItemAction(_ref) {
|
|
|
78
76
|
flush: "right"
|
|
79
77
|
}, actionContent);
|
|
80
78
|
}
|
|
81
|
-
return
|
|
79
|
+
return ___EmotionJSX(React.Fragment, null, ___EmotionJSX(EuiToolTip, tooltipProps, button), ariaLabelledBy);
|
|
82
80
|
};
|
|
@@ -2,9 +2,9 @@ import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
|
|
|
2
2
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
3
3
|
import _extends from "@babel/runtime/helpers/extends";
|
|
4
4
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
5
|
-
var _excluded = ["text", "truncate", "type", "href", "rel", "onClick", "popoverContent", "popoverProps", "className", "color", "isFirstBreadcrumb", "isLastBreadcrumb", "isOnlyBreadcrumb", "highlightLastBreadcrumb", "truncateLastBreadcrumb"],
|
|
5
|
+
var _excluded = ["text", "truncate", "type", "href", "rel", "onClick", "popoverContent", "popoverProps", "className", "color", "isFirstBreadcrumb", "isLastBreadcrumb", "isOnlyBreadcrumb", "highlightLastBreadcrumb", "truncateLastBreadcrumb", "title"],
|
|
6
6
|
_excluded2 = ["css"],
|
|
7
|
-
_excluded3 = ["popoverContent", "popoverProps", "color", "type", "title", "aria-current", "className", "isLastBreadcrumb", "breadcrumbCss", "truncationCss", "children"];
|
|
7
|
+
_excluded3 = ["popoverContent", "popoverProps", "color", "type", "title", "hasExplicitTitle", "aria-current", "className", "isLastBreadcrumb", "breadcrumbCss", "truncationCss", "children"];
|
|
8
8
|
/*
|
|
9
9
|
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
10
10
|
* or more contributor license agreements. Licensed under the Elastic License
|
|
@@ -21,6 +21,7 @@ import { EuiLink } from '../link';
|
|
|
21
21
|
import { EuiPopover } from '../popover';
|
|
22
22
|
import { EuiIcon } from '../icon';
|
|
23
23
|
import { useEuiI18n } from '../i18n';
|
|
24
|
+
import { EuiToolTip } from '../tool_tip';
|
|
24
25
|
import { euiBreadcrumbContentStyles, euiBreadcrumbPopoverStyles } from './_breadcrumb_content.styles';
|
|
25
26
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
26
27
|
export var EuiBreadcrumbContent = function EuiBreadcrumbContent(_ref) {
|
|
@@ -39,6 +40,7 @@ export var EuiBreadcrumbContent = function EuiBreadcrumbContent(_ref) {
|
|
|
39
40
|
isOnlyBreadcrumb = _ref.isOnlyBreadcrumb,
|
|
40
41
|
highlightLastBreadcrumb = _ref.highlightLastBreadcrumb,
|
|
41
42
|
truncateLastBreadcrumb = _ref.truncateLastBreadcrumb,
|
|
43
|
+
propTitle = _ref.title,
|
|
42
44
|
rest = _objectWithoutProperties(_ref, _excluded);
|
|
43
45
|
var isApplication = type === 'application';
|
|
44
46
|
var classes = classNames('euiBreadcrumb__content', className);
|
|
@@ -61,8 +63,9 @@ export var EuiBreadcrumbContent = function EuiBreadcrumbContent(_ref) {
|
|
|
61
63
|
var linkColor = color || 'subdued';
|
|
62
64
|
var ariaCurrent = highlightLastBreadcrumb ? 'page' : undefined;
|
|
63
65
|
var interactionStyles = (isInteractiveBreadcrumb || isBreadcrumbWithPopover) && !isApplication && styles.isInteractive;
|
|
66
|
+
var hasExplicitTitle = propTitle != null && propTitle !== '';
|
|
64
67
|
return ___EmotionJSX(EuiInnerText, null, function (ref, innerText) {
|
|
65
|
-
var title = innerText === '' ? undefined : innerText;
|
|
68
|
+
var title = propTitle || (innerText === '' ? undefined : innerText);
|
|
66
69
|
var baseProps = {
|
|
67
70
|
ref: ref,
|
|
68
71
|
title: title,
|
|
@@ -74,6 +77,8 @@ export var EuiBreadcrumbContent = function EuiBreadcrumbContent(_ref) {
|
|
|
74
77
|
var _ = baseProps.css,
|
|
75
78
|
popoverButtonProps = _objectWithoutProperties(baseProps, _excluded2);
|
|
76
79
|
return ___EmotionJSX(EuiBreadcrumbPopover, _extends({}, popoverButtonProps, {
|
|
80
|
+
title: title,
|
|
81
|
+
hasExplicitTitle: hasExplicitTitle,
|
|
77
82
|
breadcrumbCss: [].concat(cssStyles, [interactionStyles]),
|
|
78
83
|
truncationCss: truncationStyles,
|
|
79
84
|
isLastBreadcrumb: isLastBreadcrumb,
|
|
@@ -100,6 +105,7 @@ var EuiBreadcrumbPopover = /*#__PURE__*/forwardRef(function (_ref2, ref) {
|
|
|
100
105
|
color = _ref2.color,
|
|
101
106
|
type = _ref2.type,
|
|
102
107
|
title = _ref2.title,
|
|
108
|
+
hasExplicitTitle = _ref2.hasExplicitTitle,
|
|
103
109
|
ariaCurrent = _ref2['aria-current'],
|
|
104
110
|
className = _ref2.className,
|
|
105
111
|
isLastBreadcrumb = _ref2.isLastBreadcrumb,
|
|
@@ -128,25 +134,28 @@ var EuiBreadcrumbPopover = /*#__PURE__*/forwardRef(function (_ref2, ref) {
|
|
|
128
134
|
var wrapperStyles = [styles.popoverWrapper.euiBreadcrumb__popoverWrapper, !isLastBreadcrumb && styles.popoverWrapper[type]];
|
|
129
135
|
var buttonStyles = [styles.euiBreadcrumb__popoverButton].concat(_toConsumableArray(breadcrumbCss));
|
|
130
136
|
var truncationStyles = [styles.euiBreadcrumb__popoverTruncation].concat(_toConsumableArray(truncationCss));
|
|
137
|
+
var linkButton = ___EmotionJSX(EuiLink, _extends({
|
|
138
|
+
ref: ref,
|
|
139
|
+
"aria-current": ariaCurrent,
|
|
140
|
+
className: className,
|
|
141
|
+
css: buttonStyles,
|
|
142
|
+
color: color,
|
|
143
|
+
onClick: togglePopover
|
|
144
|
+
}, rest), ___EmotionJSX("span", {
|
|
145
|
+
css: truncationStyles
|
|
146
|
+
}, children), ___EmotionJSX(EuiIcon, {
|
|
147
|
+
type: "chevronSingleDown",
|
|
148
|
+
size: "s",
|
|
149
|
+
"aria-label": " - ".concat(popoverAriaLabel)
|
|
150
|
+
}));
|
|
131
151
|
return ___EmotionJSX(EuiPopover, _extends({}, popoverProps, {
|
|
132
152
|
isOpen: isPopoverOpen,
|
|
133
153
|
closePopover: closePopover,
|
|
134
154
|
css: wrapperStyles,
|
|
135
|
-
button: ___EmotionJSX(
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
className: className,
|
|
140
|
-
css: buttonStyles,
|
|
141
|
-
color: color,
|
|
142
|
-
onClick: togglePopover
|
|
143
|
-
}, rest), ___EmotionJSX("span", {
|
|
144
|
-
css: truncationStyles
|
|
145
|
-
}, children), ___EmotionJSX(EuiIcon, {
|
|
146
|
-
type: "chevronSingleDown",
|
|
147
|
-
size: "s",
|
|
148
|
-
"aria-label": " - ".concat(popoverAriaLabel)
|
|
149
|
-
}))
|
|
155
|
+
button: title ? ___EmotionJSX(EuiToolTip, {
|
|
156
|
+
content: title,
|
|
157
|
+
disableScreenReaderOutput: !hasExplicitTitle
|
|
158
|
+
}, linkButton) : linkButton
|
|
150
159
|
}), typeof popoverContent === 'function' ? popoverContent(closePopover) : popoverContent);
|
|
151
160
|
});
|
|
152
161
|
EuiBreadcrumbPopover.displayName = 'EuiBreadcrumbPopover';
|
|
@@ -121,6 +121,7 @@ export var EuiComboBoxOptionsList = /*#__PURE__*/function (_Component) {
|
|
|
121
121
|
var optionIsFocused = activeOptionIndex === index;
|
|
122
122
|
var optionIsDisabled = option.hasOwnProperty('disabled') && option.disabled === true;
|
|
123
123
|
var hasOnFocusBadge = onFocusBadge && optionIsFocused && !optionIsDisabled;
|
|
124
|
+
var hasNativeTruncation = !hasTruncationProps && !searchValue && rowHeight !== 'auto';
|
|
124
125
|
return ___EmotionJSX(EuiListItemLayout, _extends({
|
|
125
126
|
element: "li",
|
|
126
127
|
role: "option"
|
|
@@ -135,8 +136,8 @@ export var EuiComboBoxOptionsList = /*#__PURE__*/function (_Component) {
|
|
|
135
136
|
// loses focus on selecting an option (due to actively removing it from the list)
|
|
136
137
|
,
|
|
137
138
|
id: rootId("_option-".concat(options.indexOf(option))),
|
|
139
|
+
title: hasNativeTruncation && !toolTipContent ? label : undefined,
|
|
138
140
|
key: (_option$key = option.key) !== null && _option$key !== void 0 ? _option$key : option.label,
|
|
139
|
-
title: label,
|
|
140
141
|
prepend: option.prepend,
|
|
141
142
|
append: hasOnFocusBadge ? ___EmotionJSX(React.Fragment, null, option.append, hitEnterBadge) : option.append,
|
|
142
143
|
checked: checked,
|
|
@@ -16,6 +16,7 @@ import { EuiButtonIcon } from '../../../button/button_icon';
|
|
|
16
16
|
import { EuiButtonEmpty } from '../../../button/button_empty';
|
|
17
17
|
import { EuiFlexGroup, EuiFlexItem } from '../../../flex';
|
|
18
18
|
import { EuiPopoverFooter } from '../../../popover';
|
|
19
|
+
import { EuiToolTip } from '../../../tool_tip';
|
|
19
20
|
import { euiDataGridCellActionsStyles } from './data_grid_cell_actions.styles';
|
|
20
21
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
21
22
|
export var EuiDataGridCellActions = function EuiDataGridCellActions(_ref) {
|
|
@@ -36,18 +37,21 @@ export var EuiDataGridCellActions = function EuiDataGridCellActions(_ref) {
|
|
|
36
37
|
token: "euiDataGridCellActions.expandButtonTitle",
|
|
37
38
|
default: "Click or hit enter to interact with cell content"
|
|
38
39
|
}, function (expandButtonTitle) {
|
|
39
|
-
return ___EmotionJSX(
|
|
40
|
-
|
|
40
|
+
return ___EmotionJSX(EuiToolTip, {
|
|
41
|
+
content: expandButtonTitle,
|
|
42
|
+
disableScreenReaderOutput: true,
|
|
43
|
+
display: "flex"
|
|
44
|
+
}, ___EmotionJSX(EuiButtonIcon, {
|
|
45
|
+
"aria-hidden": true,
|
|
41
46
|
className: "euiDataGridRowCell__actionButtonIcon euiDataGridRowCell__expandCell",
|
|
47
|
+
color: "primary",
|
|
48
|
+
css: styles.euiDataGridRowCell__actionButtonIcon,
|
|
42
49
|
"data-test-subj": "euiDataGridCellExpandButton",
|
|
43
50
|
display: "fill",
|
|
44
|
-
color: "primary",
|
|
45
51
|
iconSize: "s",
|
|
46
52
|
iconType: "maximize",
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
title: expandButtonTitle
|
|
50
|
-
});
|
|
53
|
+
onClick: onExpandClick
|
|
54
|
+
}));
|
|
51
55
|
});
|
|
52
56
|
}, [onExpandClick, styles]);
|
|
53
57
|
var additionalButtons = useMemo(function () {
|
|
@@ -9,7 +9,7 @@ var _templateObject;
|
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
import { css, keyframes } from '@emotion/react';
|
|
12
|
-
import { euiCanAnimate, logicalCSS, logicalSizeCSS, mathWithUnits } from '../../../../global_styling';
|
|
12
|
+
import { euiCanAnimate, euiDisabledSelector, logicalCSS, logicalSizeCSS, mathWithUnits } from '../../../../global_styling';
|
|
13
13
|
import { highContrastModeStyles } from '../../../../global_styling/functions/high_contrast';
|
|
14
14
|
import { euiDataGridVariables } from '../../data_grid.styles';
|
|
15
15
|
import { euiDataGridCellOutlineStyles, euiDataGridCellOutlineSelectors } from './data_grid_cell.styles';
|
|
@@ -28,7 +28,7 @@ export var euiDataGridCellActionsStyles = function euiDataGridCellActionsStyles(
|
|
|
28
28
|
})), " background-color:inherit;}", cellSelectors.hoverColor, " &{background-color:", cellOutline.hoverColor, ";border-color:", cellOutline.hoverColor, ";}", euiCanAnimate, "{transform:scaleY(0);transform-origin:bottom;", cellSelectors.showAnimation, " &{animation-duration:", euiTheme.animation.fast, ";animation-name:", slideUp, ";animation-iteration-count:1;animation-fill-mode:forwards;}", cellSelectors.hoverAnimation, " &{animation-delay:", euiTheme.animation.slow, ";}};label:euiDataGridRowCell__actions;"),
|
|
29
29
|
euiDataGridRowCell__actionButtonIcon: /*#__PURE__*/css(logicalCSS('width', euiTheme.size.base), " ", logicalCSS('height', mathWithUnits([euiTheme.size.base, euiTheme.size.xs], function (x, y) {
|
|
30
30
|
return x + y;
|
|
31
|
-
})), " border-radius:0
|
|
31
|
+
})), " border-radius:0;&,& svg{background-color:transparent!important;}&:not(", euiDisabledSelector, "),&:not(", euiDisabledSelector, ") svg{color:currentColor!important;fill:currentColor!important;}", highContrastModeStyles(euiThemeContext, {
|
|
32
32
|
preferred: 'border: none;'
|
|
33
33
|
}), ";;label:euiDataGridRowCell__actionButtonIcon;")
|
|
34
34
|
};
|
|
@@ -353,7 +353,8 @@ export var useDataGridDisplaySelector = function useDataGridDisplaySelector(show
|
|
|
353
353
|
},
|
|
354
354
|
panelClassName: "euiDataGrid__displayPopoverPanel",
|
|
355
355
|
button: ___EmotionJSX(EuiToolTip, {
|
|
356
|
-
content: buttonLabel
|
|
356
|
+
content: buttonLabel,
|
|
357
|
+
disableScreenReaderOutput: true
|
|
357
358
|
}, ___EmotionJSX(EuiButtonIcon, {
|
|
358
359
|
size: "xs",
|
|
359
360
|
iconType: "controls",
|
|
@@ -35,7 +35,8 @@ export var useDataGridKeyboardShortcuts = function useDataGridKeyboardShortcuts(
|
|
|
35
35
|
anchorPosition: "downRight",
|
|
36
36
|
panelPaddingSize: "none",
|
|
37
37
|
button: ___EmotionJSX(EuiToolTip, {
|
|
38
|
-
content: title
|
|
38
|
+
content: title,
|
|
39
|
+
disableScreenReaderOutput: true
|
|
39
40
|
}, ___EmotionJSX(EuiButtonIcon, {
|
|
40
41
|
size: "xs",
|
|
41
42
|
iconType: "keyboard",
|
|
@@ -16,6 +16,7 @@ import classNames from 'classnames';
|
|
|
16
16
|
import { EuiFieldText, EuiFormPrepend } from '../../form';
|
|
17
17
|
import { EuiButtonEmpty } from '../../button/button_empty/button_empty';
|
|
18
18
|
import { EuiInputPopover, EuiPopover } from '../../popover';
|
|
19
|
+
import { EuiToolTip } from '../../tool_tip';
|
|
19
20
|
import { useEuiI18n } from '../../i18n';
|
|
20
21
|
import { usePrettyInterval } from '../super_date_picker/pretty_interval';
|
|
21
22
|
import { EuiRefreshInterval } from './refresh_interval';
|
|
@@ -110,7 +111,9 @@ export var EuiAutoRefreshButton = function EuiAutoRefreshButton(_ref2) {
|
|
|
110
111
|
})
|
|
111
112
|
});
|
|
112
113
|
return ___EmotionJSX(EuiPopover, {
|
|
113
|
-
button: ___EmotionJSX(
|
|
114
|
+
button: ___EmotionJSX(EuiToolTip, {
|
|
115
|
+
content: isPaused ? autoRefeshLabelOff : autoRefeshLabelOn
|
|
116
|
+
}, ___EmotionJSX(EuiButtonEmpty, _extends({
|
|
114
117
|
onClick: function onClick() {
|
|
115
118
|
return setIsPopoverOpen(function (isOpen) {
|
|
116
119
|
return !isOpen;
|
|
@@ -120,12 +123,12 @@ export var EuiAutoRefreshButton = function EuiAutoRefreshButton(_ref2) {
|
|
|
120
123
|
size: size,
|
|
121
124
|
color: color,
|
|
122
125
|
iconType: "refreshTime",
|
|
123
|
-
|
|
124
|
-
|
|
126
|
+
isDisabled: isDisabled,
|
|
127
|
+
hasAriaDisabled: isDisabled
|
|
125
128
|
}, rest), usePrettyInterval(Boolean(isPaused), refreshInterval, {
|
|
126
129
|
shortHand: shortHand,
|
|
127
130
|
unit: intervalUnits
|
|
128
|
-
})),
|
|
131
|
+
}))),
|
|
129
132
|
isOpen: isPopoverOpen,
|
|
130
133
|
closePopover: function closePopover() {
|
|
131
134
|
setIsPopoverOpen(false);
|
|
@@ -16,6 +16,7 @@ import { useEuiI18n } from '../../../i18n';
|
|
|
16
16
|
import { EuiFormRow, EuiFieldText, EuiFormLabel } from '../../../form';
|
|
17
17
|
import { EuiFlexGroup } from '../../../flex';
|
|
18
18
|
import { EuiButtonIcon } from '../../../button';
|
|
19
|
+
import { EuiToolTip } from '../../../tool_tip';
|
|
19
20
|
import { EuiCode } from '../../../code';
|
|
20
21
|
import { EuiDatePicker } from '../../date_picker';
|
|
21
22
|
import { EuiTimeZoneDisplay } from './timezone_display';
|
|
@@ -174,16 +175,18 @@ export var EuiAbsoluteTab = function EuiAbsoluteTab(_ref) {
|
|
|
174
175
|
prepend: ___EmotionJSX(EuiFormLabel, {
|
|
175
176
|
id: textInputLabelId
|
|
176
177
|
}, labelPrefix)
|
|
177
|
-
})), hasUnparsedText && ___EmotionJSX(
|
|
178
|
+
})), hasUnparsedText && ___EmotionJSX(EuiToolTip, {
|
|
179
|
+
content: submitButtonLabel,
|
|
180
|
+
disableScreenReaderOutput: true
|
|
181
|
+
}, ___EmotionJSX(EuiButtonIcon, {
|
|
178
182
|
type: "submit",
|
|
179
183
|
css: styles.euiAbsoluteTabDateForm__submit,
|
|
180
184
|
size: "s",
|
|
181
185
|
display: "base",
|
|
182
186
|
iconType: "check",
|
|
183
187
|
"aria-label": submitButtonLabel,
|
|
184
|
-
title: submitButtonLabel,
|
|
185
188
|
"data-test-subj": "parseAbsoluteDateFormat"
|
|
186
|
-
})), ___EmotionJSX(EuiTimeZoneDisplay, _extends({
|
|
189
|
+
}))), ___EmotionJSX(EuiTimeZoneDisplay, _extends({
|
|
187
190
|
id: timeZomeDescriptionId
|
|
188
191
|
}, timeZoneDisplayProps)));
|
|
189
192
|
};
|
package/optimize/es/components/date_picker/super_date_picker/date_popover/date_popover_button.js
CHANGED
|
@@ -16,6 +16,7 @@ import classNames from 'classnames';
|
|
|
16
16
|
import { useEuiMemoizedStyles } from '../../../../services';
|
|
17
17
|
import { useEuiI18n } from '../../../i18n';
|
|
18
18
|
import { EuiPopover } from '../../../popover';
|
|
19
|
+
import { EuiToolTip } from '../../../tool_tip';
|
|
19
20
|
import { useFormatTimeString } from '../pretty_duration';
|
|
20
21
|
import { EuiDatePopoverContent } from './date_popover_content';
|
|
21
22
|
import { euiDatePopoverButtonStyles } from './date_popover_button.styles';
|
|
@@ -70,16 +71,23 @@ export var EuiDatePopoverButton = function EuiDatePopoverButton(props) {
|
|
|
70
71
|
} else if (needsUpdating) {
|
|
71
72
|
title = outdatedTitle;
|
|
72
73
|
}
|
|
73
|
-
var
|
|
74
|
+
var rawButton = ___EmotionJSX("button", _extends({
|
|
74
75
|
type: "button",
|
|
75
76
|
onClick: onPopoverToggle,
|
|
76
77
|
className: classes,
|
|
77
|
-
title: title,
|
|
78
78
|
disabled: isDisabled,
|
|
79
79
|
"data-test-subj": "superDatePicker".concat(position, "DatePopoverButton")
|
|
80
80
|
}, buttonProps, {
|
|
81
81
|
css: cssStyles
|
|
82
82
|
}), formattedValue);
|
|
83
|
+
var button = title ? ___EmotionJSX(EuiToolTip, {
|
|
84
|
+
content: title,
|
|
85
|
+
display: "block",
|
|
86
|
+
disableScreenReaderOutput: !isInvalid && !needsUpdating,
|
|
87
|
+
anchorProps: {
|
|
88
|
+
css: styles.tooltipAnchor
|
|
89
|
+
}
|
|
90
|
+
}, rawButton) : rawButton;
|
|
83
91
|
return ___EmotionJSX(EuiPopover, _extends({
|
|
84
92
|
button: button,
|
|
85
93
|
isOpen: isOpen,
|
|
@@ -21,7 +21,8 @@ var _ref = process.env.NODE_ENV === "production" ? {
|
|
|
21
21
|
export var euiDatePopoverButtonStyles = function euiDatePopoverButtonStyles(euiThemeContext) {
|
|
22
22
|
return {
|
|
23
23
|
euiDatePopoverButton: /*#__PURE__*/css(_buttonStyles(euiThemeContext), ";;label:euiDatePopoverButton;"),
|
|
24
|
-
now: _ref
|
|
24
|
+
now: _ref,
|
|
25
|
+
tooltipAnchor: /*#__PURE__*/css(logicalCSS('height', '100%'), " ", logicalCSS('width', '100%'), ";;label:tooltipAnchor;")
|
|
25
26
|
};
|
|
26
27
|
};
|
|
27
28
|
export var _buttonStyles = function _buttonStyles(euiThemeContext) {
|
|
@@ -16,6 +16,7 @@ import { useEuiMemoizedStyles } from '../../../../services';
|
|
|
16
16
|
import { useEuiI18n } from '../../../i18n';
|
|
17
17
|
import { EuiPopover } from '../../../popover';
|
|
18
18
|
import { EuiFormPrepend } from '../../../form';
|
|
19
|
+
import { EuiToolTip } from '../../../tool_tip';
|
|
19
20
|
import { euiQuickSelectPopoverStyles } from './quick_select_popover.styles';
|
|
20
21
|
import { EuiQuickSelectPanel } from './quick_select_panel';
|
|
21
22
|
import { EuiQuickSelect } from './quick_select';
|
|
@@ -63,21 +64,23 @@ export var EuiQuickSelectPopover = function EuiQuickSelectPopover(_ref) {
|
|
|
63
64
|
closePopover();
|
|
64
65
|
}
|
|
65
66
|
}, [_applyTime, closePopover]);
|
|
66
|
-
var
|
|
67
|
+
var buttonLabel = useEuiI18n('euiQuickSelectPopover.buttonLabel', 'Date quick select');
|
|
67
68
|
var quickSelectButtonOnClick = function quickSelectButtonOnClick(e) {
|
|
68
69
|
togglePopover();
|
|
69
70
|
buttonOnClick === null || buttonOnClick === void 0 || buttonOnClick(e);
|
|
70
71
|
};
|
|
71
|
-
var quickSelectButton = ___EmotionJSX(
|
|
72
|
+
var quickSelectButton = ___EmotionJSX(EuiToolTip, {
|
|
73
|
+
content: buttonLabel,
|
|
74
|
+
disableScreenReaderOutput: true
|
|
75
|
+
}, ___EmotionJSX(EuiFormPrepend, _extends({
|
|
72
76
|
element: "button",
|
|
73
77
|
iconLeft: "calendar",
|
|
74
78
|
iconRight: "chevronSingleDown",
|
|
75
79
|
isDisabled: props.isDisabled,
|
|
76
80
|
onClick: quickSelectButtonOnClick,
|
|
77
|
-
"aria-label":
|
|
78
|
-
title: buttonlabel,
|
|
81
|
+
"aria-label": buttonLabel,
|
|
79
82
|
"data-test-subj": "superDatePickerToggleQuickMenuButton"
|
|
80
|
-
}, quickSelectButtonProps));
|
|
83
|
+
}, quickSelectButtonProps)));
|
|
81
84
|
return ___EmotionJSX(EuiPopover, {
|
|
82
85
|
button: quickSelectButton,
|
|
83
86
|
isOpen: isOpen,
|
|
@@ -16,6 +16,7 @@ import classNames from 'classnames';
|
|
|
16
16
|
import { useCombinedRefs, useEuiMemoizedStyles } from '../../../services';
|
|
17
17
|
import { useEuiI18n } from '../../i18n';
|
|
18
18
|
import { EuiButtonIcon } from '../../button';
|
|
19
|
+
import { EuiToolTip } from '../../tool_tip';
|
|
19
20
|
import { EuiFormControlLayout } from '../form_control_layout';
|
|
20
21
|
import { EuiValidatableControl } from '../validatable_control';
|
|
21
22
|
import { useFormContext } from '../eui_form_context';
|
|
@@ -76,16 +77,18 @@ export var EuiFieldPassword = function EuiFieldPassword(props) {
|
|
|
76
77
|
var visibilityToggle = useMemo(function () {
|
|
77
78
|
if (type === 'dual') {
|
|
78
79
|
var isVisible = inputType === 'text';
|
|
79
|
-
return ___EmotionJSX(
|
|
80
|
+
return ___EmotionJSX(EuiToolTip, {
|
|
81
|
+
content: isVisible ? maskPasswordLabel : showPasswordLabel,
|
|
82
|
+
disableScreenReaderOutput: true
|
|
83
|
+
}, ___EmotionJSX(EuiButtonIcon, _extends({
|
|
80
84
|
iconType: isVisible ? 'eyeSlash' : 'eye',
|
|
81
85
|
"aria-label": isVisible ? maskPasswordLabel : showPasswordLabel,
|
|
82
|
-
title: isVisible ? maskPasswordLabel : showPasswordLabel,
|
|
83
86
|
disabled: disabled
|
|
84
87
|
}, dualToggleProps, {
|
|
85
88
|
onClick: function onClick(e) {
|
|
86
89
|
return handleToggle(e, isVisible);
|
|
87
90
|
}
|
|
88
|
-
}));
|
|
91
|
+
})));
|
|
89
92
|
}
|
|
90
93
|
}, [type, inputType, maskPasswordLabel, showPasswordLabel, dualToggleProps, handleToggle, disabled]);
|
|
91
94
|
var finalAppend = useMemo(function () {
|
|
@@ -327,7 +327,7 @@ describe('EuiHeader', function () {
|
|
|
327
327
|
cy.checkAxe();
|
|
328
328
|
});
|
|
329
329
|
it('has zero violations when a hidden breadcrumb is expanded', function () {
|
|
330
|
-
cy.get('
|
|
330
|
+
cy.get('[aria-label="See collapsed breadcrumbs"]').realClick();
|
|
331
331
|
cy.get('a[data-test-subj="cy-breadcrumb-hidden"]').should('exist');
|
|
332
332
|
cy.checkAxe();
|
|
333
333
|
});
|