@elastic/eui 123.4.0 → 123.5.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 -86
- package/dist/svgs/logo_elastic_mono.svg +3 -0
- package/dist/svgs/moon.svg +2 -2
- package/dist/svgs/product_nightshift.svg +4 -3
- package/es/components/avatar/avatar.js +1 -1
- package/es/components/badge/badge.js +1 -1
- package/es/components/badge/beta_badge/beta_badge.js +1 -1
- package/es/components/badge/notification_badge/badge_notification.js +1 -1
- package/es/components/badge/notification_badge/badge_notification.styles.js +1 -0
- package/es/components/basic_table/basic_table.js +34 -34
- package/es/components/basic_table/in_memory_table.js +9 -9
- 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/button/split_button/split_button.js +9 -9
- package/es/components/button/split_button/split_button.styles.js +11 -5
- package/es/components/button/split_button/split_button_actions.js +6 -12
- package/es/components/call_out/call_out.js +2 -2
- 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/combo_box/combo_box.js +41 -41
- 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/datagrid/body/cell/data_grid_cell.js +24 -24
- package/es/components/datagrid/body/cell/data_grid_cell_popover.js +7 -7
- package/es/components/datagrid/body/data_grid_body.js +13 -13
- package/es/components/datagrid/body/data_grid_body_custom.js +13 -13
- package/es/components/datagrid/body/data_grid_body_virtualized.js +13 -13
- package/es/components/datagrid/body/header/data_grid_header_cell.js +12 -12
- package/es/components/datagrid/body/header/draggable_columns.js +2 -2
- package/es/components/datagrid/controls/column_sorting.js +13 -13
- 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 +3 -3
- package/es/components/datagrid/utils/in_memory.js +12 -12
- 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/react-datepicker/src/date_utils.js +3 -3
- package/es/components/date_picker/super_date_picker/date_popover/absolute_tab.js +3 -3
- package/es/components/date_picker/super_date_picker/pretty_duration.js +30 -30
- package/es/components/date_picker/super_date_picker/super_date_picker.a11y.js +2 -2
- package/es/components/empty_prompt/empty_prompt.js +1 -1
- package/es/components/filter_group/filter_button.js +1 -1
- package/es/components/filter_group/filter_group.a11y.js +13 -13
- package/es/components/flex/flex_grid.styles.js +4 -4
- package/es/components/flex/flex_group.styles.js +16 -16
- package/es/components/flyout/flyout.component.js +43 -36
- package/es/components/flyout/flyout_menu/flyout_menu.js +2 -2
- package/es/components/form/field_number/field_number.js +2 -2
- 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_row/form_row.styles.js +1 -1
- package/es/components/form/text_area/text_area.js +2 -2
- package/es/components/header/header.a11y.js +3 -3
- 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/elastic_logo_full.js +6 -2
- package/es/components/header/header_logo/header_logo.js +6 -3
- package/es/components/header/header_section/header_section_item_button.js +1 -1
- package/es/components/icon/assets/logo_elastic_mono.js +35 -0
- package/es/components/icon/assets/moon.js +1 -1
- package/es/components/icon/assets/product_nightshift.js +6 -2
- package/es/components/icon/icon.js +1 -1
- package/es/components/icon/icon_map.js +5 -0
- package/es/components/icon/svgs/logo_elastic_mono.svg +3 -0
- package/es/components/icon/svgs/moon.svg +2 -2
- package/es/components/icon/svgs/product_nightshift.svg +4 -3
- 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/loading/loading_logo.js +1 -1
- package/es/components/markdown_editor/markdown_editor.js +8 -8
- 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_toolbar.js +1 -1
- package/es/components/modal/modal.styles.js +1 -1
- package/es/components/modal/modal_body.styles.js +1 -1
- package/es/components/page/page_header/page_header_content.js +1 -1
- package/es/components/pagination/pagination_button.js +1 -1
- package/es/components/search_bar/filters/field_value_selection_filter.js +3 -3
- package/es/components/search_bar/search_bar.js +3 -3
- package/es/components/selectable/selectable_list/selectable_list.js +47 -48
- package/es/components/selectable/selectable_list/selectable_list_item.js +1 -1
- package/es/components/selectable/selectable_templates/selectable_template_sitewide.js +1 -1
- package/es/components/steps/step.js +4 -5
- package/es/components/steps/steps_horizontal.js +2 -1
- package/es/components/steps/sub_steps.js +2 -3
- package/es/components/table/table_header_cell.js +1 -1
- package/es/components/timeline/timeline_item_icon.js +1 -1
- package/es/components/toast/global_toast_list.js +2 -2
- package/es/components/toast/toast.js +2 -2
- package/es/components/tool_tip/icon_tip.js +1 -1
- package/es/components/tool_tip/tool_tip.js +7 -7
- package/es/test/index.d.ts +3 -3
- package/eui.d.ts +46 -19
- package/lib/components/avatar/avatar.js +1 -1
- package/lib/components/badge/badge.js +1 -1
- package/lib/components/badge/beta_badge/beta_badge.js +1 -1
- package/lib/components/badge/notification_badge/badge_notification.js +1 -1
- package/lib/components/badge/notification_badge/badge_notification.styles.js +1 -0
- package/lib/components/basic_table/basic_table.js +34 -34
- package/lib/components/basic_table/in_memory_table.js +9 -9
- 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/button/split_button/split_button.js +8 -8
- package/lib/components/button/split_button/split_button.styles.js +11 -5
- package/lib/components/button/split_button/split_button_actions.js +4 -10
- package/lib/components/call_out/call_out.js +2 -2
- 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/combo_box/combo_box.js +41 -41
- 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/datagrid/body/cell/data_grid_cell.js +24 -24
- package/lib/components/datagrid/body/cell/data_grid_cell_popover.js +7 -7
- package/lib/components/datagrid/body/data_grid_body.js +13 -13
- package/lib/components/datagrid/body/data_grid_body_custom.js +13 -13
- package/lib/components/datagrid/body/data_grid_body_virtualized.js +13 -13
- package/lib/components/datagrid/body/header/data_grid_header_cell.js +12 -12
- package/lib/components/datagrid/body/header/draggable_columns.js +2 -2
- package/lib/components/datagrid/controls/column_sorting.js +13 -13
- 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 +3 -3
- package/lib/components/datagrid/utils/in_memory.js +12 -12
- 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/react-datepicker/src/date_utils.js +3 -3
- package/lib/components/date_picker/super_date_picker/date_popover/absolute_tab.js +3 -3
- package/lib/components/date_picker/super_date_picker/pretty_duration.js +30 -30
- package/lib/components/date_picker/super_date_picker/super_date_picker.a11y.js +2 -2
- package/lib/components/empty_prompt/empty_prompt.js +1 -1
- package/lib/components/filter_group/filter_button.js +1 -1
- package/lib/components/filter_group/filter_group.a11y.js +13 -13
- package/lib/components/flex/flex_grid.styles.js +4 -4
- package/lib/components/flex/flex_group.styles.js +16 -16
- package/lib/components/flyout/flyout.component.js +43 -36
- package/lib/components/flyout/flyout_menu/flyout_menu.js +2 -2
- package/lib/components/form/field_number/field_number.js +2 -2
- 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_row/form_row.styles.js +1 -1
- package/lib/components/form/text_area/text_area.js +2 -2
- package/lib/components/header/header.a11y.js +3 -3
- 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/elastic_logo_full.js +6 -2
- package/lib/components/header/header_logo/header_logo.js +6 -3
- package/lib/components/header/header_section/header_section_item_button.js +1 -1
- package/lib/components/icon/assets/logo_elastic_mono.js +41 -0
- package/lib/components/icon/assets/moon.js +1 -1
- package/lib/components/icon/assets/product_nightshift.js +6 -2
- package/lib/components/icon/icon.js +1 -1
- package/lib/components/icon/icon_map.js +7 -0
- package/lib/components/icon/svgs/logo_elastic_mono.svg +3 -0
- package/lib/components/icon/svgs/moon.svg +2 -2
- package/lib/components/icon/svgs/product_nightshift.svg +4 -3
- 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/loading/loading_logo.js +1 -1
- package/lib/components/markdown_editor/markdown_editor.js +8 -8
- 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_toolbar.js +1 -1
- package/lib/components/modal/modal.styles.js +1 -1
- package/lib/components/modal/modal_body.styles.js +1 -1
- package/lib/components/page/page_header/page_header_content.js +1 -1
- package/lib/components/pagination/pagination_button.js +1 -1
- package/lib/components/search_bar/filters/field_value_selection_filter.js +2 -2
- package/lib/components/search_bar/search_bar.js +3 -3
- package/lib/components/selectable/selectable_list/selectable_list.js +47 -48
- package/lib/components/selectable/selectable_list/selectable_list_item.js +1 -1
- package/lib/components/selectable/selectable_templates/selectable_template_sitewide.js +1 -1
- package/lib/components/steps/step.js +3 -4
- package/lib/components/steps/steps_horizontal.js +2 -1
- package/lib/components/steps/sub_steps.js +1 -2
- package/lib/components/table/table_header_cell.js +1 -1
- package/lib/components/timeline/timeline_item_icon.js +1 -1
- package/lib/components/toast/global_toast_list.js +2 -2
- package/lib/components/toast/toast.js +2 -2
- package/lib/components/tool_tip/icon_tip.js +1 -1
- package/lib/components/tool_tip/tool_tip.js +7 -7
- package/lib/test/index.d.ts +3 -3
- package/optimize/es/components/badge/notification_badge/badge_notification.js +1 -1
- package/optimize/es/components/badge/notification_badge/badge_notification.styles.js +1 -0
- package/optimize/es/components/basic_table/basic_table.js +30 -30
- package/optimize/es/components/basic_table/in_memory_table.js +5 -5
- package/optimize/es/components/button/split_button/split_button.js +9 -9
- package/optimize/es/components/button/split_button/split_button.styles.js +11 -5
- package/optimize/es/components/button/split_button/split_button_actions.js +6 -12
- package/optimize/es/components/combo_box/combo_box.js +41 -41
- package/optimize/es/components/datagrid/body/cell/data_grid_cell_popover.js +7 -7
- package/optimize/es/components/datagrid/body/header/draggable_columns.js +2 -2
- package/optimize/es/components/datagrid/controls/display_selector.js +3 -3
- package/optimize/es/components/date_picker/react-datepicker/src/date_utils.js +3 -3
- package/optimize/es/components/date_picker/super_date_picker/date_popover/absolute_tab.js +3 -3
- package/optimize/es/components/date_picker/super_date_picker/pretty_duration.js +30 -30
- package/optimize/es/components/date_picker/super_date_picker/super_date_picker.a11y.js +2 -2
- package/optimize/es/components/filter_group/filter_button.js +1 -1
- package/optimize/es/components/filter_group/filter_group.a11y.js +13 -13
- package/optimize/es/components/flex/flex_grid.styles.js +4 -4
- package/optimize/es/components/flex/flex_group.styles.js +16 -16
- package/optimize/es/components/flyout/flyout.component.js +43 -36
- package/optimize/es/components/form/form_row/form_row.styles.js +1 -1
- package/optimize/es/components/header/header.a11y.js +3 -3
- package/optimize/es/components/header/header_logo/elastic_logo_full.js +6 -2
- package/optimize/es/components/header/header_logo/header_logo.js +6 -3
- package/optimize/es/components/icon/assets/logo_elastic_mono.js +34 -0
- package/optimize/es/components/icon/assets/moon.js +1 -1
- package/optimize/es/components/icon/assets/product_nightshift.js +6 -2
- package/optimize/es/components/icon/icon_map.js +5 -0
- package/optimize/es/components/icon/svgs/logo_elastic_mono.svg +3 -0
- package/optimize/es/components/icon/svgs/moon.svg +2 -2
- package/optimize/es/components/icon/svgs/product_nightshift.svg +4 -3
- package/optimize/es/components/markdown_editor/markdown_editor.js +7 -7
- package/optimize/es/components/modal/modal.styles.js +1 -1
- package/optimize/es/components/modal/modal_body.styles.js +1 -1
- package/optimize/es/components/search_bar/filters/field_value_selection_filter.js +3 -3
- package/optimize/es/components/search_bar/search_bar.js +3 -3
- package/optimize/es/components/selectable/selectable_list/selectable_list.js +46 -47
- package/optimize/es/components/steps/step.js +4 -5
- package/optimize/es/components/steps/steps_horizontal.js +2 -1
- package/optimize/es/components/steps/sub_steps.js +2 -3
- package/optimize/es/components/tool_tip/tool_tip.js +7 -7
- package/optimize/es/test/index.d.ts +3 -3
- package/optimize/lib/components/badge/notification_badge/badge_notification.js +1 -1
- package/optimize/lib/components/badge/notification_badge/badge_notification.styles.js +1 -0
- package/optimize/lib/components/basic_table/basic_table.js +30 -30
- package/optimize/lib/components/basic_table/in_memory_table.js +5 -5
- package/optimize/lib/components/button/split_button/split_button.js +8 -8
- package/optimize/lib/components/button/split_button/split_button.styles.js +11 -5
- package/optimize/lib/components/button/split_button/split_button_actions.js +4 -10
- package/optimize/lib/components/combo_box/combo_box.js +41 -41
- package/optimize/lib/components/datagrid/body/cell/data_grid_cell_popover.js +7 -7
- package/optimize/lib/components/datagrid/body/header/draggable_columns.js +2 -2
- package/optimize/lib/components/datagrid/controls/display_selector.js +3 -3
- package/optimize/lib/components/date_picker/react-datepicker/src/date_utils.js +3 -3
- package/optimize/lib/components/date_picker/super_date_picker/date_popover/absolute_tab.js +3 -3
- package/optimize/lib/components/date_picker/super_date_picker/pretty_duration.js +30 -30
- package/optimize/lib/components/date_picker/super_date_picker/super_date_picker.a11y.js +2 -2
- package/optimize/lib/components/filter_group/filter_button.js +1 -1
- package/optimize/lib/components/filter_group/filter_group.a11y.js +13 -13
- package/optimize/lib/components/flex/flex_grid.styles.js +4 -4
- package/optimize/lib/components/flex/flex_group.styles.js +16 -16
- package/optimize/lib/components/flyout/flyout.component.js +43 -36
- package/optimize/lib/components/form/form_row/form_row.styles.js +1 -1
- package/optimize/lib/components/header/header.a11y.js +3 -3
- package/optimize/lib/components/header/header_logo/elastic_logo_full.js +6 -2
- package/optimize/lib/components/header/header_logo/header_logo.js +6 -3
- package/optimize/lib/components/icon/assets/logo_elastic_mono.js +41 -0
- package/optimize/lib/components/icon/assets/moon.js +1 -1
- package/optimize/lib/components/icon/assets/product_nightshift.js +6 -2
- package/optimize/lib/components/icon/icon_map.js +7 -0
- package/optimize/lib/components/icon/svgs/logo_elastic_mono.svg +3 -0
- package/optimize/lib/components/icon/svgs/moon.svg +2 -2
- package/optimize/lib/components/icon/svgs/product_nightshift.svg +4 -3
- package/optimize/lib/components/markdown_editor/markdown_editor.js +7 -7
- package/optimize/lib/components/modal/modal.styles.js +1 -1
- package/optimize/lib/components/modal/modal_body.styles.js +1 -1
- package/optimize/lib/components/search_bar/filters/field_value_selection_filter.js +2 -2
- package/optimize/lib/components/search_bar/search_bar.js +3 -3
- package/optimize/lib/components/selectable/selectable_list/selectable_list.js +46 -47
- package/optimize/lib/components/steps/step.js +3 -4
- package/optimize/lib/components/steps/steps_horizontal.js +2 -1
- package/optimize/lib/components/steps/sub_steps.js +1 -2
- package/optimize/lib/components/tool_tip/tool_tip.js +7 -7
- package/optimize/lib/test/index.d.ts +3 -3
- package/package.json +5 -27
- package/test-env/components/avatar/avatar.js +1 -1
- 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/badge/notification_badge/badge_notification.js +1 -1
- package/test-env/components/badge/notification_badge/badge_notification.styles.js +1 -0
- package/test-env/components/basic_table/basic_table.js +34 -34
- package/test-env/components/basic_table/in_memory_table.js +9 -9
- 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/button/split_button/split_button.js +8 -8
- package/test-env/components/button/split_button/split_button.styles.js +11 -5
- package/test-env/components/button/split_button/split_button_actions.js +4 -10
- package/test-env/components/call_out/call_out.js +2 -2
- 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/combo_box/combo_box.js +41 -41
- 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/datagrid/body/cell/data_grid_cell.js +24 -24
- package/test-env/components/datagrid/body/cell/data_grid_cell_popover.js +7 -7
- package/test-env/components/datagrid/body/data_grid_body.js +13 -13
- package/test-env/components/datagrid/body/data_grid_body_custom.js +13 -13
- package/test-env/components/datagrid/body/data_grid_body_virtualized.js +13 -13
- package/test-env/components/datagrid/body/header/data_grid_header_cell.js +12 -12
- package/test-env/components/datagrid/body/header/draggable_columns.js +2 -2
- package/test-env/components/datagrid/controls/column_sorting.js +13 -13
- 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 +3 -3
- package/test-env/components/datagrid/utils/in_memory.js +12 -12
- 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/react-datepicker/src/date_utils.js +3 -3
- package/test-env/components/date_picker/super_date_picker/date_popover/absolute_tab.js +3 -3
- package/test-env/components/date_picker/super_date_picker/pretty_duration.js +30 -30
- package/test-env/components/date_picker/super_date_picker/super_date_picker.a11y.js +2 -2
- package/test-env/components/empty_prompt/empty_prompt.js +1 -1
- package/test-env/components/filter_group/filter_button.js +1 -1
- package/test-env/components/filter_group/filter_group.a11y.js +13 -13
- package/test-env/components/flex/flex_grid.styles.js +4 -4
- package/test-env/components/flex/flex_group.styles.js +16 -16
- package/test-env/components/flyout/flyout.component.js +43 -36
- package/test-env/components/flyout/flyout_menu/flyout_menu.js +2 -2
- package/test-env/components/form/field_number/field_number.js +2 -2
- 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_row/form_row.styles.js +1 -1
- package/test-env/components/form/text_area/text_area.js +2 -2
- package/test-env/components/header/header.a11y.js +3 -3
- 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/elastic_logo_full.js +6 -2
- package/test-env/components/header/header_logo/header_logo.js +6 -3
- package/test-env/components/header/header_section/header_section_item_button.js +1 -1
- package/test-env/components/icon/assets/logo_elastic_mono.js +41 -0
- package/test-env/components/icon/assets/moon.js +1 -1
- package/test-env/components/icon/assets/product_nightshift.js +6 -2
- package/test-env/components/icon/icon_map.js +7 -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/loading/loading_logo.js +1 -1
- package/test-env/components/markdown_editor/markdown_editor.js +8 -8
- 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_toolbar.js +1 -1
- package/test-env/components/modal/modal.styles.js +1 -1
- package/test-env/components/modal/modal_body.styles.js +1 -1
- 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/search_bar/filters/field_value_selection_filter.js +2 -2
- package/test-env/components/search_bar/search_bar.js +3 -3
- package/test-env/components/selectable/selectable_list/selectable_list.js +47 -48
- package/test-env/components/selectable/selectable_list/selectable_list_item.js +1 -1
- package/test-env/components/selectable/selectable_templates/selectable_template_sitewide.js +1 -1
- package/test-env/components/steps/step.js +3 -4
- package/test-env/components/steps/steps_horizontal.js +2 -1
- package/test-env/components/steps/sub_steps.js +1 -2
- package/test-env/components/table/table_header_cell.js +1 -1
- package/test-env/components/timeline/timeline_item_icon.js +1 -1
- package/test-env/components/toast/global_toast_list.js +2 -2
- package/test-env/components/toast/toast.js +2 -2
- package/test-env/components/tool_tip/icon_tip.js +1 -1
- package/test-env/components/tool_tip/tool_tip.js +7 -7
- package/es/components/date_picker/react-datepicker/test/helper_components/custom_input.js +0 -74
- package/es/components/date_picker/react-datepicker/test/test_wrapper.js +0 -38
- package/es/components/date_picker/react-datepicker/test/timezone_date_picker.js +0 -75
- package/lib/components/date_picker/react-datepicker/test/helper_components/custom_input.js +0 -80
- package/lib/components/date_picker/react-datepicker/test/test_wrapper.js +0 -46
- package/lib/components/date_picker/react-datepicker/test/timezone_date_picker.js +0 -83
- package/optimize/es/components/date_picker/react-datepicker/test/helper_components/custom_input.js +0 -68
- package/optimize/es/components/date_picker/react-datepicker/test/test_wrapper.js +0 -38
- package/optimize/es/components/date_picker/react-datepicker/test/timezone_date_picker.js +0 -69
- package/optimize/lib/components/date_picker/react-datepicker/test/helper_components/custom_input.js +0 -74
- package/optimize/lib/components/date_picker/react-datepicker/test/test_wrapper.js +0 -46
- package/optimize/lib/components/date_picker/react-datepicker/test/timezone_date_picker.js +0 -77
- package/test-env/components/date_picker/react-datepicker/test/helper_components/custom_input.js +0 -74
- package/test-env/components/date_picker/react-datepicker/test/test_wrapper.js +0 -46
- package/test-env/components/date_picker/react-datepicker/test/timezone_date_picker.js +0 -77
|
@@ -436,9 +436,9 @@ export var EuiComboBox = /*#__PURE__*/function (_Component) {
|
|
|
436
436
|
(_this$searchInputRefI6 = _this.searchInputRefInstance) === null || _this$searchInputRefI6 === void 0 || _this$searchInputRefI6.focus();
|
|
437
437
|
});
|
|
438
438
|
_defineProperty(_this, "onSearchChange", function (searchValue) {
|
|
439
|
-
var _this$
|
|
440
|
-
onSearchChange = _this$
|
|
441
|
-
delimiter = _this$
|
|
439
|
+
var _this$props0 = _this.props,
|
|
440
|
+
onSearchChange = _this$props0.onSearchChange,
|
|
441
|
+
delimiter = _this$props0.delimiter;
|
|
442
442
|
_this.setState({
|
|
443
443
|
searchValue: searchValue
|
|
444
444
|
}, function () {
|
|
@@ -461,44 +461,44 @@ export var EuiComboBox = /*#__PURE__*/function (_Component) {
|
|
|
461
461
|
key: "render",
|
|
462
462
|
value: function render() {
|
|
463
463
|
var _this2 = this;
|
|
464
|
-
var _this$
|
|
465
|
-
dataTestSubj = _this$
|
|
466
|
-
async = _this$
|
|
467
|
-
className = _this$
|
|
468
|
-
compressed = _this$
|
|
469
|
-
customOptionText = _this$
|
|
470
|
-
fullWidth = _this$
|
|
471
|
-
id = _this$
|
|
472
|
-
inputRef = _this$
|
|
473
|
-
isCaseSensitive = _this$
|
|
474
|
-
isClearable = _this$
|
|
475
|
-
isDisabled = _this$
|
|
476
|
-
isInvalid = _this$
|
|
477
|
-
isLoading = _this$
|
|
478
|
-
noSuggestions = _this$
|
|
479
|
-
onBlur = _this$
|
|
480
|
-
onChange = _this$
|
|
481
|
-
onCreateOption = _this$
|
|
482
|
-
onSearchChange = _this$
|
|
483
|
-
options = _this$
|
|
484
|
-
placeholder = _this$
|
|
485
|
-
renderOption = _this$
|
|
486
|
-
rowHeight = _this$
|
|
487
|
-
selectedOptions = _this$
|
|
488
|
-
singleSelection = _this$
|
|
489
|
-
prepend = _this$
|
|
490
|
-
sortMatchesBy = _this$
|
|
491
|
-
delimiter = _this$
|
|
492
|
-
append = _this$
|
|
493
|
-
autoFocus = _this$
|
|
494
|
-
onFocusBadge = _this$
|
|
495
|
-
truncationProps = _this$
|
|
496
|
-
inputPopoverProps = _this$
|
|
497
|
-
optionMatcher = _this$
|
|
498
|
-
ariaLabel = _this$
|
|
499
|
-
ariaLabelledby = _this$
|
|
500
|
-
ariaDescribedby = _this$
|
|
501
|
-
rest = _objectWithoutProperties(_this$
|
|
464
|
+
var _this$props1 = this.props,
|
|
465
|
+
dataTestSubj = _this$props1['data-test-subj'],
|
|
466
|
+
async = _this$props1.async,
|
|
467
|
+
className = _this$props1.className,
|
|
468
|
+
compressed = _this$props1.compressed,
|
|
469
|
+
customOptionText = _this$props1.customOptionText,
|
|
470
|
+
fullWidth = _this$props1.fullWidth,
|
|
471
|
+
id = _this$props1.id,
|
|
472
|
+
inputRef = _this$props1.inputRef,
|
|
473
|
+
isCaseSensitive = _this$props1.isCaseSensitive,
|
|
474
|
+
isClearable = _this$props1.isClearable,
|
|
475
|
+
isDisabled = _this$props1.isDisabled,
|
|
476
|
+
isInvalid = _this$props1.isInvalid,
|
|
477
|
+
isLoading = _this$props1.isLoading,
|
|
478
|
+
noSuggestions = _this$props1.noSuggestions,
|
|
479
|
+
onBlur = _this$props1.onBlur,
|
|
480
|
+
onChange = _this$props1.onChange,
|
|
481
|
+
onCreateOption = _this$props1.onCreateOption,
|
|
482
|
+
onSearchChange = _this$props1.onSearchChange,
|
|
483
|
+
options = _this$props1.options,
|
|
484
|
+
placeholder = _this$props1.placeholder,
|
|
485
|
+
renderOption = _this$props1.renderOption,
|
|
486
|
+
rowHeight = _this$props1.rowHeight,
|
|
487
|
+
selectedOptions = _this$props1.selectedOptions,
|
|
488
|
+
singleSelection = _this$props1.singleSelection,
|
|
489
|
+
prepend = _this$props1.prepend,
|
|
490
|
+
sortMatchesBy = _this$props1.sortMatchesBy,
|
|
491
|
+
delimiter = _this$props1.delimiter,
|
|
492
|
+
append = _this$props1.append,
|
|
493
|
+
autoFocus = _this$props1.autoFocus,
|
|
494
|
+
onFocusBadge = _this$props1.onFocusBadge,
|
|
495
|
+
truncationProps = _this$props1.truncationProps,
|
|
496
|
+
inputPopoverProps = _this$props1.inputPopoverProps,
|
|
497
|
+
optionMatcher = _this$props1.optionMatcher,
|
|
498
|
+
ariaLabel = _this$props1['aria-label'],
|
|
499
|
+
ariaLabelledby = _this$props1['aria-labelledby'],
|
|
500
|
+
ariaDescribedby = _this$props1['aria-describedby'],
|
|
501
|
+
rest = _objectWithoutProperties(_this$props1, _excluded);
|
|
502
502
|
var _this$state3 = this.state,
|
|
503
503
|
activeOptionIndex = _this$state3.activeOptionIndex,
|
|
504
504
|
hasFocus = _this$state3.hasFocus,
|
|
@@ -52,14 +52,14 @@ export var useCellPopover = function useCellPopover() {
|
|
|
52
52
|
popoverAnchorPosition = _useState8[0],
|
|
53
53
|
setPopoverAnchorPosition = _useState8[1];
|
|
54
54
|
var _useState9 = useState(),
|
|
55
|
-
|
|
56
|
-
popoverContent =
|
|
57
|
-
setPopoverContent =
|
|
55
|
+
_useState0 = _slicedToArray(_useState9, 2),
|
|
56
|
+
popoverContent = _useState0[0],
|
|
57
|
+
setPopoverContent = _useState0[1];
|
|
58
58
|
// Allow customization of most (not all) popover props by consumers
|
|
59
|
-
var
|
|
60
|
-
|
|
61
|
-
cellPopoverProps =
|
|
62
|
-
setCellPopoverProps =
|
|
59
|
+
var _useState1 = useState({}),
|
|
60
|
+
_useState10 = _slicedToArray(_useState1, 2),
|
|
61
|
+
cellPopoverProps = _useState10[0],
|
|
62
|
+
setCellPopoverProps = _useState10[1];
|
|
63
63
|
var closeCellPopover = useCallback(function () {
|
|
64
64
|
return setPopoverIsOpen(false);
|
|
65
65
|
}, []);
|
|
@@ -207,7 +207,7 @@ ConditionalDraggableColumn.displayName = 'ConditionalDraggableColumn';
|
|
|
207
207
|
*
|
|
208
208
|
* TODO: If this is useful elsewhere, consider moving it to `src/services`
|
|
209
209
|
*/
|
|
210
|
-
var
|
|
210
|
+
var _ref0 = process.env.NODE_ENV === "production" ? {
|
|
211
211
|
name: "q8wbl-DragOverlay",
|
|
212
212
|
styles: "position:fixed;inset:0;label:DragOverlay;"
|
|
213
213
|
} : {
|
|
@@ -221,7 +221,7 @@ export var DragOverlay = /*#__PURE__*/memo(function (_ref9) {
|
|
|
221
221
|
_ref9$zIndex = _ref9.zIndex,
|
|
222
222
|
zIndex = _ref9$zIndex === void 0 ? 9999 : _ref9$zIndex;
|
|
223
223
|
return isDragging ? ___EmotionJSX(EuiPortal, null, ___EmotionJSX("div", {
|
|
224
|
-
css:
|
|
224
|
+
css: _ref0,
|
|
225
225
|
style: {
|
|
226
226
|
cursor: cursor,
|
|
227
227
|
zIndex: zIndex
|
|
@@ -339,9 +339,9 @@ export var useDataGridDisplaySelector = function useDataGridDisplaySelector(show
|
|
|
339
339
|
* Display settings popover
|
|
340
340
|
*/
|
|
341
341
|
var _useState9 = useState(false),
|
|
342
|
-
|
|
343
|
-
isOpen =
|
|
344
|
-
setIsOpen =
|
|
342
|
+
_useState0 = _slicedToArray(_useState9, 2),
|
|
343
|
+
isOpen = _useState0[0],
|
|
344
|
+
setIsOpen = _useState0[1];
|
|
345
345
|
var buttonLabel = useEuiI18n('euiDisplaySelector.buttonText', 'Display options');
|
|
346
346
|
var additionalDisplaySettings = typeof showDisplaySelector === 'boolean' ? null : (_showDisplaySelector$ = showDisplaySelector === null || showDisplaySelector === void 0 ? void 0 : showDisplaySelector.additionalDisplaySettings) !== null && _showDisplaySelector$ !== void 0 ? _showDisplaySelector$ : null;
|
|
347
347
|
var customRender = typeof showDisplaySelector === 'boolean' ? undefined : showDisplaySelector === null || showDisplaySelector === void 0 ? void 0 : showDisplaySelector.customRender;
|
|
@@ -399,9 +399,9 @@ export function getEffectiveMinDate(_ref9) {
|
|
|
399
399
|
return minDate;
|
|
400
400
|
}
|
|
401
401
|
}
|
|
402
|
-
export function getEffectiveMaxDate(
|
|
403
|
-
var maxDate =
|
|
404
|
-
includeDates =
|
|
402
|
+
export function getEffectiveMaxDate(_ref0) {
|
|
403
|
+
var maxDate = _ref0.maxDate,
|
|
404
|
+
includeDates = _ref0.includeDates;
|
|
405
405
|
if (includeDates && maxDate) {
|
|
406
406
|
return moment.max(includeDates.filter(function (includeDate) {
|
|
407
407
|
return maxDate.isSameOrAfter(includeDate, "day");
|
|
@@ -79,9 +79,9 @@ export var EuiAbsoluteTab = function EuiAbsoluteTab(_ref) {
|
|
|
79
79
|
isReadyToParse = _useState8[0],
|
|
80
80
|
setIsReadyToParse = _useState8[1];
|
|
81
81
|
var _useState9 = useState(false),
|
|
82
|
-
|
|
83
|
-
isTextInvalid =
|
|
84
|
-
setIsTextInvalid =
|
|
82
|
+
_useState0 = _slicedToArray(_useState9, 2),
|
|
83
|
+
isTextInvalid = _useState0[0],
|
|
84
|
+
setIsTextInvalid = _useState0[1];
|
|
85
85
|
var handleTextChange = useCallback(function (event) {
|
|
86
86
|
if (isReadyToParse) return; // Text paste event, don't continue
|
|
87
87
|
|
|
@@ -76,32 +76,32 @@ var useRelativeDurationI18n = function useRelativeDurationI18n(duration) {
|
|
|
76
76
|
}, {
|
|
77
77
|
duration: duration
|
|
78
78
|
}),
|
|
79
|
-
'w+': useEuiI18n('euiPrettyDuration.nextDurationWeeks', function (
|
|
80
|
-
var duration =
|
|
79
|
+
'w+': useEuiI18n('euiPrettyDuration.nextDurationWeeks', function (_ref0) {
|
|
80
|
+
var duration = _ref0.duration;
|
|
81
81
|
return "Next ".concat(duration, " week").concat(duration === 1 ? '' : 's');
|
|
82
82
|
}, {
|
|
83
83
|
duration: duration
|
|
84
84
|
}),
|
|
85
|
-
M: useEuiI18n('euiPrettyDuration.lastDurationMonths', function (
|
|
86
|
-
var duration =
|
|
85
|
+
M: useEuiI18n('euiPrettyDuration.lastDurationMonths', function (_ref1) {
|
|
86
|
+
var duration = _ref1.duration;
|
|
87
87
|
return "Last ".concat(duration, " month").concat(duration === 1 ? '' : 's');
|
|
88
88
|
}, {
|
|
89
89
|
duration: duration
|
|
90
90
|
}),
|
|
91
|
-
'M+': useEuiI18n('euiPrettyDuration.nextDurationMonths', function (
|
|
92
|
-
var duration =
|
|
91
|
+
'M+': useEuiI18n('euiPrettyDuration.nextDurationMonths', function (_ref10) {
|
|
92
|
+
var duration = _ref10.duration;
|
|
93
93
|
return "Next ".concat(duration, " month").concat(duration === 1 ? '' : 's');
|
|
94
94
|
}, {
|
|
95
95
|
duration: duration
|
|
96
96
|
}),
|
|
97
|
-
y: useEuiI18n('euiPrettyDuration.lastDurationYears', function (
|
|
98
|
-
var duration =
|
|
97
|
+
y: useEuiI18n('euiPrettyDuration.lastDurationYears', function (_ref11) {
|
|
98
|
+
var duration = _ref11.duration;
|
|
99
99
|
return "Last ".concat(duration, " year").concat(duration === 1 ? '' : 's');
|
|
100
100
|
}, {
|
|
101
101
|
duration: duration
|
|
102
102
|
}),
|
|
103
|
-
'y+': useEuiI18n('euiPrettyDuration.nextDurationYears', function (
|
|
104
|
-
var duration =
|
|
103
|
+
'y+': useEuiI18n('euiPrettyDuration.nextDurationYears', function (_ref12) {
|
|
104
|
+
var duration = _ref12.duration;
|
|
105
105
|
return "Next ".concat(duration, " year").concat(duration === 1 ? '' : 's');
|
|
106
106
|
}, {
|
|
107
107
|
duration: duration
|
|
@@ -140,13 +140,13 @@ var useRelativeDurationRoundedI18n = function useRelativeDurationRoundedI18n(pre
|
|
|
140
140
|
|
|
141
141
|
var ISO_FORMAT = 'YYYY-MM-DDTHH:mm:ss.SSSZ';
|
|
142
142
|
export var useFormatTimeString = function useFormatTimeString(timeString, dateFormat, options) {
|
|
143
|
-
var
|
|
144
|
-
|
|
145
|
-
locale =
|
|
146
|
-
|
|
147
|
-
roundUp =
|
|
148
|
-
|
|
149
|
-
canRoundRelativeUnits =
|
|
143
|
+
var _ref13 = options || {},
|
|
144
|
+
_ref13$locale = _ref13.locale,
|
|
145
|
+
locale = _ref13$locale === void 0 ? 'en' : _ref13$locale,
|
|
146
|
+
_ref13$roundUp = _ref13.roundUp,
|
|
147
|
+
roundUp = _ref13$roundUp === void 0 ? false : _ref13$roundUp,
|
|
148
|
+
_ref13$canRoundRelati = _ref13.canRoundRelativeUnits,
|
|
149
|
+
canRoundRelativeUnits = _ref13$canRoundRelati === void 0 ? true : _ref13$canRoundRelati;
|
|
150
150
|
|
|
151
151
|
// i18n'd strings
|
|
152
152
|
var nowDisplay = useEuiI18n('euiPrettyDuration.now', 'now');
|
|
@@ -192,11 +192,11 @@ export var useFormatTimeString = function useFormatTimeString(timeString, dateFo
|
|
|
192
192
|
* Pretty duration hook+component
|
|
193
193
|
*/
|
|
194
194
|
|
|
195
|
-
export var usePrettyDuration = function usePrettyDuration(
|
|
196
|
-
var timeFrom =
|
|
197
|
-
timeTo =
|
|
198
|
-
quickRanges =
|
|
199
|
-
dateFormat =
|
|
195
|
+
export var usePrettyDuration = function usePrettyDuration(_ref14) {
|
|
196
|
+
var timeFrom = _ref14.timeFrom,
|
|
197
|
+
timeTo = _ref14.timeTo,
|
|
198
|
+
quickRanges = _ref14.quickRanges,
|
|
199
|
+
dateFormat = _ref14.dateFormat;
|
|
200
200
|
var prettyDuration = '';
|
|
201
201
|
|
|
202
202
|
/**
|
|
@@ -247,11 +247,11 @@ export var usePrettyDuration = function usePrettyDuration(_ref16) {
|
|
|
247
247
|
}
|
|
248
248
|
return prettyDuration;
|
|
249
249
|
};
|
|
250
|
-
export var PrettyDuration = function PrettyDuration(
|
|
251
|
-
var timeFrom =
|
|
252
|
-
timeTo =
|
|
253
|
-
quickRanges =
|
|
254
|
-
dateFormat =
|
|
250
|
+
export var PrettyDuration = function PrettyDuration(_ref15) {
|
|
251
|
+
var timeFrom = _ref15.timeFrom,
|
|
252
|
+
timeTo = _ref15.timeTo,
|
|
253
|
+
quickRanges = _ref15.quickRanges,
|
|
254
|
+
dateFormat = _ref15.dateFormat;
|
|
255
255
|
var prettyDuration = usePrettyDuration({
|
|
256
256
|
timeFrom: timeFrom,
|
|
257
257
|
timeTo: timeTo,
|
|
@@ -266,9 +266,9 @@ export var PrettyDuration = function PrettyDuration(_ref17) {
|
|
|
266
266
|
*/
|
|
267
267
|
|
|
268
268
|
var hasRangeMatch = function hasRangeMatch(timeFrom, timeTo, ranges) {
|
|
269
|
-
return ranges.find(function (
|
|
270
|
-
var start =
|
|
271
|
-
end =
|
|
269
|
+
return ranges.find(function (_ref16) {
|
|
270
|
+
var start = _ref16.start,
|
|
271
|
+
end = _ref16.end;
|
|
272
272
|
return timeFrom === start && timeTo === end;
|
|
273
273
|
});
|
|
274
274
|
};
|
|
@@ -32,8 +32,8 @@ var SuperDatePicker = function SuperDatePicker() {
|
|
|
32
32
|
end = _useState8[0],
|
|
33
33
|
setEnd = _useState8[1];
|
|
34
34
|
var _useState9 = useState(true),
|
|
35
|
-
|
|
36
|
-
showFill =
|
|
35
|
+
_useState0 = _slicedToArray(_useState9, 1),
|
|
36
|
+
showFill = _useState0[0];
|
|
37
37
|
var onTimeChange = function onTimeChange(_ref) {
|
|
38
38
|
var start = _ref.start,
|
|
39
39
|
end = _ref.end;
|
|
@@ -34,7 +34,7 @@ export var EuiFilterButton = function EuiFilterButton(_ref) {
|
|
|
34
34
|
_ref$color = _ref.color,
|
|
35
35
|
color = _ref$color === void 0 ? 'text' : _ref$color,
|
|
36
36
|
_ref$badgeColor = _ref.badgeColor,
|
|
37
|
-
badgeColor = _ref$badgeColor === void 0 ? '
|
|
37
|
+
badgeColor = _ref$badgeColor === void 0 ? 'primary' : _ref$badgeColor,
|
|
38
38
|
hasActiveFilters = _ref.hasActiveFilters,
|
|
39
39
|
numFilters = _ref.numFilters,
|
|
40
40
|
numActiveFilters = _ref.numActiveFilters,
|
|
@@ -119,16 +119,16 @@ describe('EuiFilterGroup two filter example', function () {
|
|
|
119
119
|
describe('EuiFilterGroup multiselect example', function () {
|
|
120
120
|
var MultiSelectFilter = function MultiSelectFilter() {
|
|
121
121
|
var _useState9 = useState(false),
|
|
122
|
-
|
|
123
|
-
isPopoverOpen =
|
|
124
|
-
setIsPopoverOpen =
|
|
122
|
+
_useState0 = _slicedToArray(_useState9, 2),
|
|
123
|
+
isPopoverOpen = _useState0[0],
|
|
124
|
+
setIsPopoverOpen = _useState0[1];
|
|
125
|
+
var _useState1 = useState(false),
|
|
126
|
+
_useState10 = _slicedToArray(_useState1, 1),
|
|
127
|
+
withLoading = _useState10[0];
|
|
125
128
|
var _useState11 = useState(false),
|
|
126
|
-
_useState12 = _slicedToArray(_useState11,
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
_useState14 = _slicedToArray(_useState13, 2),
|
|
130
|
-
isLoading = _useState14[0],
|
|
131
|
-
setIsLoading = _useState14[1];
|
|
129
|
+
_useState12 = _slicedToArray(_useState11, 2),
|
|
130
|
+
isLoading = _useState12[0],
|
|
131
|
+
setIsLoading = _useState12[1];
|
|
132
132
|
var onButtonClick = function onButtonClick() {
|
|
133
133
|
if (withLoading && !isPopoverOpen) {
|
|
134
134
|
setIsLoading(true);
|
|
@@ -141,7 +141,7 @@ describe('EuiFilterGroup multiselect example', function () {
|
|
|
141
141
|
var filterGroupPopoverId = useGeneratedHtmlId({
|
|
142
142
|
prefix: 'filterGroupPopover'
|
|
143
143
|
});
|
|
144
|
-
var
|
|
144
|
+
var _useState13 = useState([{
|
|
145
145
|
label: 'Johann Sebastian Bach',
|
|
146
146
|
checked: 'on'
|
|
147
147
|
}, {
|
|
@@ -165,9 +165,9 @@ describe('EuiFilterGroup multiselect example', function () {
|
|
|
165
165
|
}, {
|
|
166
166
|
label: 'Giuseppe Verdi'
|
|
167
167
|
}]),
|
|
168
|
-
|
|
169
|
-
items =
|
|
170
|
-
setItems =
|
|
168
|
+
_useState14 = _slicedToArray(_useState13, 2),
|
|
169
|
+
items = _useState14[0],
|
|
170
|
+
setItems = _useState14[1];
|
|
171
171
|
var button = ___EmotionJSX(EuiFilterButton, {
|
|
172
172
|
iconType: "chevronSingleDown",
|
|
173
173
|
onClick: onButtonClick,
|
|
@@ -81,7 +81,7 @@ var _ref9 = process.env.NODE_ENV === "production" ? {
|
|
|
81
81
|
styles: "grid-template-columns:repeat(1, 1fr);label:1;",
|
|
82
82
|
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
83
83
|
};
|
|
84
|
-
var
|
|
84
|
+
var _ref0 = process.env.NODE_ENV === "production" ? {
|
|
85
85
|
name: "1t690q7-column",
|
|
86
86
|
styles: "grid-auto-flow:column;label:column;"
|
|
87
87
|
} : {
|
|
@@ -89,7 +89,7 @@ var _ref10 = process.env.NODE_ENV === "production" ? {
|
|
|
89
89
|
styles: "grid-auto-flow:column;label:column;",
|
|
90
90
|
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
91
91
|
};
|
|
92
|
-
var
|
|
92
|
+
var _ref1 = process.env.NODE_ENV === "production" ? {
|
|
93
93
|
name: "1uinx0j-euiFlexGrid",
|
|
94
94
|
styles: "display:grid;label:euiFlexGrid;"
|
|
95
95
|
} : {
|
|
@@ -100,14 +100,14 @@ var _ref11 = process.env.NODE_ENV === "production" ? {
|
|
|
100
100
|
export var euiFlexGridStyles = function euiFlexGridStyles(euiThemeContext) {
|
|
101
101
|
var euiTheme = euiThemeContext.euiTheme;
|
|
102
102
|
return {
|
|
103
|
-
euiFlexGrid:
|
|
103
|
+
euiFlexGrid: _ref1,
|
|
104
104
|
responsive: /*#__PURE__*/css(euiMaxBreakpoint(euiThemeContext, 'm'), "{grid-template-columns:repeat(1, 1fr);grid-auto-flow:row;};label:responsive;"),
|
|
105
105
|
direction: {
|
|
106
106
|
row: /*#__PURE__*/css(";label:row;"),
|
|
107
107
|
// Note: the only way to get column direction working with `display: grid`
|
|
108
108
|
// the same way `display: flex` works is to manually set `grid-template-rows`,
|
|
109
109
|
// calculated based on the number of children in the grid
|
|
110
|
-
column:
|
|
110
|
+
column: _ref0
|
|
111
111
|
},
|
|
112
112
|
columnCount: {
|
|
113
113
|
'1': _ref9,
|
|
@@ -81,7 +81,7 @@ var _ref9 = process.env.NODE_ENV === "production" ? {
|
|
|
81
81
|
styles: "align-items:stretch;label:stretch;",
|
|
82
82
|
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
83
83
|
};
|
|
84
|
-
var
|
|
84
|
+
var _ref0 = process.env.NODE_ENV === "production" ? {
|
|
85
85
|
name: "1m1byq-center",
|
|
86
86
|
styles: "justify-content:center;label:center;"
|
|
87
87
|
} : {
|
|
@@ -89,7 +89,7 @@ var _ref10 = process.env.NODE_ENV === "production" ? {
|
|
|
89
89
|
styles: "justify-content:center;label:center;",
|
|
90
90
|
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
91
91
|
};
|
|
92
|
-
var
|
|
92
|
+
var _ref1 = process.env.NODE_ENV === "production" ? {
|
|
93
93
|
name: "16lku54-spaceAround",
|
|
94
94
|
styles: "justify-content:space-around;label:spaceAround;"
|
|
95
95
|
} : {
|
|
@@ -97,7 +97,7 @@ var _ref11 = process.env.NODE_ENV === "production" ? {
|
|
|
97
97
|
styles: "justify-content:space-around;label:spaceAround;",
|
|
98
98
|
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
99
99
|
};
|
|
100
|
-
var
|
|
100
|
+
var _ref10 = process.env.NODE_ENV === "production" ? {
|
|
101
101
|
name: "1h16bgr-spaceBetween",
|
|
102
102
|
styles: "justify-content:space-between;label:spaceBetween;"
|
|
103
103
|
} : {
|
|
@@ -105,7 +105,7 @@ var _ref12 = process.env.NODE_ENV === "production" ? {
|
|
|
105
105
|
styles: "justify-content:space-between;label:spaceBetween;",
|
|
106
106
|
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
107
107
|
};
|
|
108
|
-
var
|
|
108
|
+
var _ref11 = process.env.NODE_ENV === "production" ? {
|
|
109
109
|
name: "jykwsi-spaceEvenly",
|
|
110
110
|
styles: "justify-content:space-evenly;label:spaceEvenly;"
|
|
111
111
|
} : {
|
|
@@ -113,7 +113,7 @@ var _ref13 = process.env.NODE_ENV === "production" ? {
|
|
|
113
113
|
styles: "justify-content:space-evenly;label:spaceEvenly;",
|
|
114
114
|
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
115
115
|
};
|
|
116
|
-
var
|
|
116
|
+
var _ref12 = process.env.NODE_ENV === "production" ? {
|
|
117
117
|
name: "1nfuqww-flexEnd",
|
|
118
118
|
styles: "justify-content:flex-end;label:flexEnd;"
|
|
119
119
|
} : {
|
|
@@ -121,7 +121,7 @@ var _ref14 = process.env.NODE_ENV === "production" ? {
|
|
|
121
121
|
styles: "justify-content:flex-end;label:flexEnd;",
|
|
122
122
|
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
123
123
|
};
|
|
124
|
-
var
|
|
124
|
+
var _ref13 = process.env.NODE_ENV === "production" ? {
|
|
125
125
|
name: "e9miiv-flexStart",
|
|
126
126
|
styles: "justify-content:flex-start;label:flexStart;"
|
|
127
127
|
} : {
|
|
@@ -129,7 +129,7 @@ var _ref15 = process.env.NODE_ENV === "production" ? {
|
|
|
129
129
|
styles: "justify-content:flex-start;label:flexStart;",
|
|
130
130
|
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
131
131
|
};
|
|
132
|
-
var
|
|
132
|
+
var _ref14 = process.env.NODE_ENV === "production" ? {
|
|
133
133
|
name: "qg5yc9-wrap",
|
|
134
134
|
styles: "flex-wrap:wrap;label:wrap;"
|
|
135
135
|
} : {
|
|
@@ -137,7 +137,7 @@ var _ref16 = process.env.NODE_ENV === "production" ? {
|
|
|
137
137
|
styles: "flex-wrap:wrap;label:wrap;",
|
|
138
138
|
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
139
139
|
};
|
|
140
|
-
var
|
|
140
|
+
var _ref15 = process.env.NODE_ENV === "production" ? {
|
|
141
141
|
name: "4quxm4-euiFlexGroup",
|
|
142
142
|
styles: "display:flex;align-items:stretch;flex-grow:1;label:euiFlexGroup;"
|
|
143
143
|
} : {
|
|
@@ -148,9 +148,9 @@ var _ref17 = process.env.NODE_ENV === "production" ? {
|
|
|
148
148
|
export var euiFlexGroupStyles = function euiFlexGroupStyles(euiThemeContext) {
|
|
149
149
|
var euiTheme = euiThemeContext.euiTheme;
|
|
150
150
|
return {
|
|
151
|
-
euiFlexGroup:
|
|
151
|
+
euiFlexGroup: _ref15,
|
|
152
152
|
responsive: /*#__PURE__*/css(euiMaxBreakpoint(euiThemeContext, 'm'), "{flex-wrap:wrap;&>.euiFlexItem{", logicalCSS('width', '100%'), " flex-basis:100%;}};label:responsive;"),
|
|
153
|
-
wrap:
|
|
153
|
+
wrap: _ref14,
|
|
154
154
|
gutterSizes: {
|
|
155
155
|
none: /*#__PURE__*/css(";label:none;"),
|
|
156
156
|
xs: /*#__PURE__*/css("gap:", euiTheme.size.xs, ";;label:xs;"),
|
|
@@ -160,12 +160,12 @@ export var euiFlexGroupStyles = function euiFlexGroupStyles(euiThemeContext) {
|
|
|
160
160
|
xl: /*#__PURE__*/css("gap:", euiTheme.size.xxl, ";;label:xl;")
|
|
161
161
|
},
|
|
162
162
|
justifyContent: {
|
|
163
|
-
flexStart:
|
|
164
|
-
flexEnd:
|
|
165
|
-
spaceEvenly:
|
|
166
|
-
spaceBetween:
|
|
167
|
-
spaceAround:
|
|
168
|
-
center:
|
|
163
|
+
flexStart: _ref13,
|
|
164
|
+
flexEnd: _ref12,
|
|
165
|
+
spaceEvenly: _ref11,
|
|
166
|
+
spaceBetween: _ref10,
|
|
167
|
+
spaceAround: _ref1,
|
|
168
|
+
center: _ref0
|
|
169
169
|
},
|
|
170
170
|
alignItems: {
|
|
171
171
|
stretch: _ref9,
|
|
@@ -132,25 +132,25 @@ export var EuiFlyoutComponent = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
132
132
|
_usePropsWithComponen9 = _usePropsWithComponen.maxWidth,
|
|
133
133
|
maxWidth = _usePropsWithComponen9 === void 0 ? false : _usePropsWithComponen9,
|
|
134
134
|
style = _usePropsWithComponen.style,
|
|
135
|
-
|
|
136
|
-
hasChildBackground =
|
|
135
|
+
_usePropsWithComponen0 = _usePropsWithComponen.hasChildBackground,
|
|
136
|
+
hasChildBackground = _usePropsWithComponen0 === void 0 ? false : _usePropsWithComponen0,
|
|
137
137
|
maskProps = _usePropsWithComponen.maskProps,
|
|
138
|
-
|
|
139
|
-
type =
|
|
138
|
+
_usePropsWithComponen1 = _usePropsWithComponen.type,
|
|
139
|
+
type = _usePropsWithComponen1 === void 0 ? DEFAULT_TYPE : _usePropsWithComponen1,
|
|
140
140
|
outsideClickCloses = _usePropsWithComponen.outsideClickCloses,
|
|
141
|
-
|
|
142
|
-
pushMinBreakpoint =
|
|
141
|
+
_usePropsWithComponen10 = _usePropsWithComponen.pushMinBreakpoint,
|
|
142
|
+
pushMinBreakpoint = _usePropsWithComponen10 === void 0 ? DEFAULT_PUSH_MIN_BREAKPOINT : _usePropsWithComponen10,
|
|
143
143
|
_pushAnimation = _usePropsWithComponen.pushAnimation,
|
|
144
144
|
_hasAnimation = _usePropsWithComponen.hasAnimation,
|
|
145
145
|
_focusTrapProps = _usePropsWithComponen.focusTrapProps,
|
|
146
|
-
|
|
147
|
-
includeFixedHeadersInFocusTrap =
|
|
146
|
+
_usePropsWithComponen11 = _usePropsWithComponen.includeFixedHeadersInFocusTrap,
|
|
147
|
+
includeFixedHeadersInFocusTrap = _usePropsWithComponen11 === void 0 ? true : _usePropsWithComponen11,
|
|
148
148
|
includeSelectorInFocusTrap = _usePropsWithComponen.includeSelectorInFocusTrap,
|
|
149
149
|
_ariaDescribedBy = _usePropsWithComponen['aria-describedby'],
|
|
150
150
|
_ariaLabelledBy = _usePropsWithComponen['aria-labelledby'],
|
|
151
151
|
id = _usePropsWithComponen.id,
|
|
152
|
-
|
|
153
|
-
resizable =
|
|
152
|
+
_usePropsWithComponen12 = _usePropsWithComponen.resizable,
|
|
153
|
+
resizable = _usePropsWithComponen12 === void 0 ? false : _usePropsWithComponen12,
|
|
154
154
|
minWidth = _usePropsWithComponen.minWidth,
|
|
155
155
|
onResize = _usePropsWithComponen.onResize,
|
|
156
156
|
onAnimationEnd = _usePropsWithComponen.onAnimationEnd,
|
|
@@ -762,7 +762,7 @@ export var EuiFlyoutComponent = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
762
762
|
var focusTrapSelectors = useMemo(function () {
|
|
763
763
|
var selectors = [];
|
|
764
764
|
if (includeSelectorInFocusTrap) {
|
|
765
|
-
selectors =
|
|
765
|
+
selectors = selectors.concat(includeSelectorInFocusTrap);
|
|
766
766
|
}
|
|
767
767
|
if (includeFixedHeadersInFocusTrap) {
|
|
768
768
|
selectors.push('.euiHeader[data-fixed-header]');
|
|
@@ -775,44 +775,50 @@ export var EuiFlyoutComponent = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
775
775
|
}
|
|
776
776
|
return selectors;
|
|
777
777
|
}, [includeSelectorInFocusTrap, includeFixedHeadersInFocusTrap, isSideBySideChild]);
|
|
778
|
-
|
|
779
|
-
/**
|
|
780
|
-
* Finds the shards to include in the focus trap by querying by `focusTrapSelectors`.
|
|
781
|
-
*
|
|
782
|
-
* @param shouldAutoFocus Whether to auto-focus the flyout wrapper when the focus trap is activated.
|
|
783
|
-
* This is necessary because when a flyout is toggled from within a shard, the focus trap's `autoFocus`
|
|
784
|
-
* feature doesn't work. This logic manually focuses the flyout as a workaround.
|
|
785
|
-
*/
|
|
786
778
|
var findShards = useCallback(function () {
|
|
787
|
-
var shouldAutoFocus = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
|
|
788
779
|
if (focusTrapSelectors.length > 0) {
|
|
789
780
|
var shardsEls = focusTrapSelectors.flatMap(function (selector) {
|
|
790
781
|
return Array.from(document.querySelectorAll(selector));
|
|
791
782
|
});
|
|
792
|
-
setFocusTrapShards(
|
|
793
|
-
if (shouldAutoFocus) {
|
|
794
|
-
shardsEls.forEach(function (shard) {
|
|
795
|
-
if (shard.contains(flyoutToggle.current)) {
|
|
796
|
-
resizeRef === null || resizeRef === void 0 || resizeRef.focus();
|
|
797
|
-
}
|
|
798
|
-
});
|
|
799
|
-
}
|
|
783
|
+
setFocusTrapShards(shardsEls);
|
|
800
784
|
} else {
|
|
801
785
|
// Clear existing shards if necessary, e.g. switching to `false`
|
|
802
786
|
setFocusTrapShards(function (shards) {
|
|
803
787
|
return shards.length ? [] : shards;
|
|
804
788
|
});
|
|
805
789
|
}
|
|
806
|
-
}, [focusTrapSelectors
|
|
790
|
+
}, [focusTrapSelectors]);
|
|
807
791
|
useEffect(function () {
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
findShards(true);
|
|
811
|
-
var unsubscribe = focusTrapPubSub.subscribe(function () {
|
|
812
|
-
return findShards();
|
|
813
|
-
});
|
|
792
|
+
findShards();
|
|
793
|
+
var unsubscribe = focusTrapPubSub.subscribe(findShards);
|
|
814
794
|
return unsubscribe;
|
|
815
795
|
}, [findShards]);
|
|
796
|
+
|
|
797
|
+
/**
|
|
798
|
+
* When a flyout is toggled from within a shard, focus is already inside
|
|
799
|
+
* the trap, so its `autoFocus` doesn't move focus to the flyout. The
|
|
800
|
+
* wrapper is focused here because the trap records its return focus
|
|
801
|
+
* target before calling `onActivation`; focusing it any earlier would make
|
|
802
|
+
* the wrapper that target.
|
|
803
|
+
*
|
|
804
|
+
* Only the first activation of a trap auto-focuses: the trap reactivates
|
|
805
|
+
* when a child flyout closes, and focus belongs on the child's trigger
|
|
806
|
+
* then. A pushed flyout has no active trap, and the trap is remounted when
|
|
807
|
+
* the flyout becomes an overlay again, so that counts as a first activation.
|
|
808
|
+
*/
|
|
809
|
+
var hasActivatedFocusTrap = useRef(false);
|
|
810
|
+
if (isPushed) hasActivatedFocusTrap.current = false;
|
|
811
|
+
var onFocusTrapActivation = useCallback(function () {
|
|
812
|
+
if (hasActivatedFocusTrap.current) return;
|
|
813
|
+
hasActivatedFocusTrap.current = true;
|
|
814
|
+
var toggle = flyoutToggle.current;
|
|
815
|
+
if (focusTrapSelectors.some(function (selector) {
|
|
816
|
+
return toggle === null || toggle === void 0 ? void 0 : toggle.closest(selector);
|
|
817
|
+
})) {
|
|
818
|
+
var _internalParentFlyout;
|
|
819
|
+
(_internalParentFlyout = internalParentFlyoutRef.current) === null || _internalParentFlyout === void 0 || _internalParentFlyout.focus();
|
|
820
|
+
}
|
|
821
|
+
}, [focusTrapSelectors]);
|
|
816
822
|
var focusTrapProps = useMemo(function () {
|
|
817
823
|
return _objectSpread(_objectSpread({}, _focusTrapProps), {}, {
|
|
818
824
|
shards: [].concat(_toConsumableArray(focusTrapShards), _toConsumableArray((_focusTrapProps === null || _focusTrapProps === void 0 ? void 0 : _focusTrapProps.shards) || []))
|
|
@@ -894,7 +900,8 @@ export var EuiFlyoutComponent = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
894
900
|
disabled: isPushed,
|
|
895
901
|
scrollLock: shouldUseScrollLock,
|
|
896
902
|
clickOutsideDisables: !ownFocus,
|
|
897
|
-
onClickOutside: onClickOutside
|
|
903
|
+
onClickOutside: onClickOutside,
|
|
904
|
+
onActivation: onFocusTrapActivation
|
|
898
905
|
}, focusTrapProps), ___EmotionJSX(Element, _extends({
|
|
899
906
|
className: classes,
|
|
900
907
|
css: cssStyles,
|
|
@@ -21,7 +21,7 @@ export var euiFormRowStyles = function euiFormRowStyles(euiThemeContext) {
|
|
|
21
21
|
formWidth: "\n ".concat(logicalCSS('max-width', maxWidth), "\n "),
|
|
22
22
|
fullWidth: /*#__PURE__*/css(logicalCSS('max-width', '100%'), ";;label:fullWidth;"),
|
|
23
23
|
// Skip css`` to avoid generating an extra className
|
|
24
|
-
row: "\n flex-direction: column;\n row-gap: ".concat(euiTheme.size.xs, ";\n\n .euiFormRow__labelWrapper {\n display: flex;\n flex-wrap: wrap;\n justify-content: space-between;\n }\n\n + .euiFormRow {\n ").concat(logicalCSS('margin-top', euiTheme.size.base), "\n }\n "),
|
|
24
|
+
row: "\n flex-direction: column;\n row-gap: ".concat(euiTheme.size.xs, ";\n\n .euiFormRow__labelWrapper {\n display: flex;\n flex-wrap: wrap;\n justify-content: space-between;\n align-items: flex-end;\n }\n\n + .euiFormRow {\n ").concat(logicalCSS('margin-top', euiTheme.size.base), "\n }\n "),
|
|
25
25
|
// No difference from the uncompressed row for the current EUI theme
|
|
26
26
|
get rowCompressed() {
|
|
27
27
|
return this.row;
|