@elastic/eui 113.1.0 → 113.2.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/es/components/accordion/accordion_trigger/accordion_arrow.js +1 -1
- package/es/components/badge/badge.js +12 -6
- package/es/components/badge/badge.styles.js +55 -4
- package/es/components/badge/color_utils.js +39 -17
- package/es/components/basic_table/basic_table.a11y.js +1 -1
- package/es/components/basic_table/basic_table.js +82 -16
- package/es/components/basic_table/collapsed_item_actions.js +1 -1
- package/es/components/basic_table/in_memory_table.js +47 -2
- package/es/components/breadcrumbs/_breadcrumb_content.js +1 -1
- package/es/components/button/split_button/split_button.js +3 -3
- package/es/components/button/split_button/split_button_actions.js +2 -2
- package/es/components/code/code_block_copy.js +1 -1
- package/es/components/collapsible_nav_beta/collapsible_nav_item/collapsed/collapsed_nav_popover.js +1 -1
- package/es/components/combo_box/combo_box_input/combo_box_input.js +1 -1
- package/es/components/combo_box/combo_box_options_list/combo_box_options_list.js +1 -1
- package/es/components/context_menu/context_menu_item.js +1 -1
- package/es/components/context_menu/context_menu_panel.js +1 -1
- package/es/components/datagrid/body/cell/data_grid_cell_actions.js +1 -1
- package/es/components/datagrid/body/header/column_actions.js +1 -1
- package/es/components/datagrid/body/header/data_grid_header_cell.js +1 -1
- package/es/components/datagrid/controls/column_selector.js +2 -2
- package/es/components/datagrid/controls/column_sorting.js +1 -1
- package/es/components/datagrid/controls/column_sorting_draggable.js +1 -1
- package/es/components/datagrid/data_grid.a11y.js +1 -1
- package/es/components/datagrid/data_grid.stories.utils.js +3 -3
- package/es/components/datagrid/utils/data_grid_schema.js +1 -1
- package/es/components/date_picker/auto_refresh/auto_refresh.js +2 -2
- package/es/components/date_picker/react-datepicker/src/month_dropdown.js +1 -1
- package/es/components/date_picker/react-datepicker/src/month_year_dropdown.js +1 -1
- package/es/components/date_picker/react-datepicker/src/year_dropdown.js +1 -1
- package/es/components/date_picker/super_date_picker/quick_select_popover/quick_select.js +2 -2
- package/es/components/date_picker/super_date_picker/quick_select_popover/quick_select_popover.js +1 -1
- package/es/components/date_picker/super_date_picker/time_window_buttons.js +4 -4
- package/es/components/filter_group/filter_button.js +2 -2
- package/es/components/filter_group/filter_group.a11y.js +1 -1
- package/es/components/flyout/_flyout_overlay.js +5 -2
- package/es/components/flyout/flyout.component.js +329 -81
- package/es/components/flyout/flyout.styles.js +57 -31
- package/es/components/flyout/flyout_menu.js +2 -2
- package/es/components/flyout/manager/actions.js +27 -1
- package/es/components/flyout/manager/activity_stage.js +18 -7
- package/es/components/flyout/manager/flyout_child.js +18 -5
- package/es/components/flyout/manager/flyout_managed.js +29 -12
- package/es/components/flyout/manager/layout_mode.js +93 -33
- package/es/components/flyout/manager/reducer.js +24 -2
- package/es/components/flyout/manager/selectors.js +6 -0
- package/es/components/flyout/manager/store.js +6 -3
- package/es/components/flyout/use_flyout_resizable.js +64 -10
- package/es/components/flyout/use_flyout_z_index.js +5 -7
- package/es/components/form/checkbox/checkbox.js +1 -1
- package/es/components/form/field_password/field_password.js +1 -1
- package/es/components/form/field_search/field_search.js +1 -1
- package/es/components/form/file_picker/file_picker.js +1 -1
- package/es/components/form/form_control_layout/form_control_layout_icons.js +1 -1
- package/es/components/header/header.a11y.js +1 -1
- package/es/components/link/external_link_icon.js +1 -1
- package/es/components/list_group/pinnable_list_group/pinnable_list_group.js +1 -1
- package/es/components/markdown_editor/markdown_editor_toolbar.js +6 -6
- package/es/components/pagination/pagination_button_arrow.js +4 -4
- package/es/components/provider/component_defaults/component_defaults.js +2 -2
- package/es/components/search_bar/filters/field_value_selection_filter.js +1 -1
- package/es/components/selectable/selectable.a11y.js +1 -1
- package/es/components/selectable/selectable_list/selectable_list_item.js +1 -1
- package/es/components/side_nav/side_nav_item.js +1 -1
- package/es/components/table/_table_cell_content.js +1 -1
- package/es/components/table/_table_cell_content.styles.js +2 -1
- package/es/components/table/const.js +15 -0
- package/es/components/table/index.js +2 -1
- package/es/components/table/mobile/responsive_context.js +2 -5
- package/es/components/table/mobile/table_header_mobile.js +10 -3
- package/es/components/table/mobile/table_sort_mobile.js +1 -1
- package/es/components/table/table.js +44 -15
- package/es/components/table/table.styles.js +27 -9
- package/es/components/table/table_cells_shared.styles.js +41 -1
- package/es/components/table/table_footer_cell.js +53 -8
- package/es/components/table/table_header_cell.js +47 -9
- package/es/components/table/table_header_cell_checkbox.js +15 -7
- package/es/components/table/table_pagination/table_pagination.js +1 -1
- package/es/components/table/table_row_cell.js +61 -12
- package/es/components/table/types.js +1 -0
- package/es/components/table/utils.js +50 -24
- package/es/components/tree_view/tree_view_item.js +1 -1
- package/es/global_styling/mixins/_button.js +14 -10
- package/es/global_styling/mixins/_container_query.js +1 -1
- package/eui.d.ts +474 -183
- package/i18ntokens.json +1043 -1043
- package/lib/components/accordion/accordion_trigger/accordion_arrow.js +1 -1
- package/lib/components/badge/badge.js +11 -5
- package/lib/components/badge/badge.styles.js +54 -3
- package/lib/components/badge/color_utils.js +39 -17
- package/lib/components/basic_table/basic_table.a11y.js +1 -1
- package/lib/components/basic_table/basic_table.js +82 -16
- package/lib/components/basic_table/collapsed_item_actions.js +1 -1
- package/lib/components/basic_table/in_memory_table.js +47 -2
- package/lib/components/breadcrumbs/_breadcrumb_content.js +1 -1
- package/lib/components/button/split_button/split_button.js +2 -2
- package/lib/components/button/split_button/split_button_actions.js +2 -2
- package/lib/components/code/code_block_copy.js +1 -1
- package/lib/components/collapsible_nav_beta/collapsible_nav_item/collapsed/collapsed_nav_popover.js +1 -1
- package/lib/components/combo_box/combo_box_input/combo_box_input.js +1 -1
- package/lib/components/combo_box/combo_box_options_list/combo_box_options_list.js +1 -1
- package/lib/components/context_menu/context_menu_item.js +1 -1
- package/lib/components/context_menu/context_menu_panel.js +1 -1
- package/lib/components/datagrid/body/cell/data_grid_cell_actions.js +1 -1
- package/lib/components/datagrid/body/header/column_actions.js +1 -1
- package/lib/components/datagrid/body/header/data_grid_header_cell.js +1 -1
- package/lib/components/datagrid/controls/column_selector.js +2 -2
- package/lib/components/datagrid/controls/column_sorting.js +1 -1
- package/lib/components/datagrid/controls/column_sorting_draggable.js +1 -1
- package/lib/components/datagrid/data_grid.a11y.js +1 -1
- package/lib/components/datagrid/data_grid.stories.utils.js +3 -3
- package/lib/components/datagrid/utils/data_grid_schema.js +1 -1
- package/lib/components/date_picker/auto_refresh/auto_refresh.js +2 -2
- package/lib/components/date_picker/react-datepicker/src/month_dropdown.js +1 -1
- package/lib/components/date_picker/react-datepicker/src/month_year_dropdown.js +1 -1
- package/lib/components/date_picker/react-datepicker/src/year_dropdown.js +1 -1
- package/lib/components/date_picker/super_date_picker/quick_select_popover/quick_select.js +2 -2
- package/lib/components/date_picker/super_date_picker/quick_select_popover/quick_select_popover.js +1 -1
- package/lib/components/date_picker/super_date_picker/time_window_buttons.js +4 -4
- package/lib/components/filter_group/filter_button.js +2 -2
- package/lib/components/filter_group/filter_group.a11y.js +1 -1
- package/lib/components/flyout/_flyout_overlay.js +5 -2
- package/lib/components/flyout/flyout.component.js +327 -79
- package/lib/components/flyout/flyout.styles.js +58 -32
- package/lib/components/flyout/flyout_menu.js +2 -2
- package/lib/components/flyout/manager/actions.js +28 -2
- package/lib/components/flyout/manager/activity_stage.js +18 -7
- package/lib/components/flyout/manager/flyout_child.js +17 -4
- package/lib/components/flyout/manager/flyout_managed.js +26 -9
- package/lib/components/flyout/manager/layout_mode.js +92 -32
- package/lib/components/flyout/manager/reducer.js +23 -1
- package/lib/components/flyout/manager/selectors.js +7 -1
- package/lib/components/flyout/manager/store.js +5 -2
- package/lib/components/flyout/use_flyout_resizable.js +64 -10
- package/lib/components/flyout/use_flyout_z_index.js +5 -7
- package/lib/components/form/checkbox/checkbox.js +1 -1
- package/lib/components/form/field_password/field_password.js +1 -1
- package/lib/components/form/field_search/field_search.js +1 -1
- package/lib/components/form/file_picker/file_picker.js +1 -1
- package/lib/components/form/form_control_layout/form_control_layout_icons.js +1 -1
- package/lib/components/header/header.a11y.js +1 -1
- package/lib/components/link/external_link_icon.js +1 -1
- package/lib/components/list_group/pinnable_list_group/pinnable_list_group.js +1 -1
- package/lib/components/markdown_editor/markdown_editor_toolbar.js +6 -6
- package/lib/components/pagination/pagination_button_arrow.js +4 -4
- package/lib/components/provider/component_defaults/component_defaults.js +2 -2
- package/lib/components/search_bar/filters/field_value_selection_filter.js +1 -1
- package/lib/components/selectable/selectable.a11y.js +1 -1
- package/lib/components/selectable/selectable_list/selectable_list_item.js +1 -1
- package/lib/components/side_nav/side_nav_item.js +1 -1
- package/lib/components/table/_table_cell_content.js +1 -1
- package/lib/components/table/_table_cell_content.styles.js +2 -1
- package/lib/components/table/const.js +21 -0
- package/lib/components/table/index.js +8 -1
- package/lib/components/table/mobile/responsive_context.js +2 -5
- package/lib/components/table/mobile/table_header_mobile.js +10 -3
- package/lib/components/table/mobile/table_sort_mobile.js +1 -1
- package/lib/components/table/table.js +44 -15
- package/lib/components/table/table.styles.js +26 -8
- package/lib/components/table/table_cells_shared.styles.js +43 -3
- package/lib/components/table/table_footer_cell.js +50 -6
- package/lib/components/table/table_header_cell.js +45 -7
- package/lib/components/table/table_header_cell_checkbox.js +14 -6
- package/lib/components/table/table_pagination/table_pagination.js +1 -1
- package/lib/components/table/table_row_cell.js +60 -11
- package/lib/components/table/types.js +5 -0
- package/lib/components/table/utils.js +51 -25
- package/lib/components/tree_view/tree_view_item.js +1 -1
- package/lib/global_styling/mixins/_button.js +15 -11
- package/lib/global_styling/mixins/_container_query.js +1 -1
- package/optimize/es/components/accordion/accordion_trigger/accordion_arrow.js +1 -1
- package/optimize/es/components/badge/badge.js +12 -6
- package/optimize/es/components/badge/badge.styles.js +55 -4
- package/optimize/es/components/badge/color_utils.js +39 -17
- package/optimize/es/components/basic_table/basic_table.a11y.js +1 -1
- package/optimize/es/components/basic_table/basic_table.js +35 -14
- package/optimize/es/components/basic_table/collapsed_item_actions.js +1 -1
- package/optimize/es/components/breadcrumbs/_breadcrumb_content.js +1 -1
- package/optimize/es/components/button/split_button/split_button.js +3 -3
- package/optimize/es/components/button/split_button/split_button_actions.js +2 -2
- package/optimize/es/components/code/code_block_copy.js +1 -1
- package/optimize/es/components/collapsible_nav_beta/collapsible_nav_item/collapsed/collapsed_nav_popover.js +1 -1
- package/optimize/es/components/combo_box/combo_box_input/combo_box_input.js +1 -1
- package/optimize/es/components/combo_box/combo_box_options_list/combo_box_options_list.js +1 -1
- package/optimize/es/components/context_menu/context_menu_item.js +1 -1
- package/optimize/es/components/context_menu/context_menu_panel.js +1 -1
- package/optimize/es/components/datagrid/body/cell/data_grid_cell_actions.js +1 -1
- package/optimize/es/components/datagrid/body/header/column_actions.js +1 -1
- package/optimize/es/components/datagrid/body/header/data_grid_header_cell.js +1 -1
- package/optimize/es/components/datagrid/controls/column_selector.js +2 -2
- package/optimize/es/components/datagrid/controls/column_sorting.js +1 -1
- package/optimize/es/components/datagrid/controls/column_sorting_draggable.js +1 -1
- package/optimize/es/components/datagrid/data_grid.a11y.js +1 -1
- package/optimize/es/components/datagrid/data_grid.stories.utils.js +3 -3
- package/optimize/es/components/datagrid/utils/data_grid_schema.js +1 -1
- package/optimize/es/components/date_picker/auto_refresh/auto_refresh.js +2 -2
- package/optimize/es/components/date_picker/react-datepicker/src/month_dropdown.js +1 -1
- package/optimize/es/components/date_picker/react-datepicker/src/month_year_dropdown.js +1 -1
- package/optimize/es/components/date_picker/react-datepicker/src/year_dropdown.js +1 -1
- package/optimize/es/components/date_picker/super_date_picker/quick_select_popover/quick_select.js +2 -2
- package/optimize/es/components/date_picker/super_date_picker/quick_select_popover/quick_select_popover.js +1 -1
- package/optimize/es/components/date_picker/super_date_picker/time_window_buttons.js +4 -4
- package/optimize/es/components/filter_group/filter_button.js +1 -1
- package/optimize/es/components/filter_group/filter_group.a11y.js +1 -1
- package/optimize/es/components/flyout/_flyout_overlay.js +5 -2
- package/optimize/es/components/flyout/flyout.component.js +329 -81
- package/optimize/es/components/flyout/flyout.styles.js +57 -31
- package/optimize/es/components/flyout/flyout_menu.js +2 -2
- package/optimize/es/components/flyout/manager/actions.js +27 -1
- package/optimize/es/components/flyout/manager/activity_stage.js +18 -7
- package/optimize/es/components/flyout/manager/flyout_child.js +18 -5
- package/optimize/es/components/flyout/manager/flyout_managed.js +29 -12
- package/optimize/es/components/flyout/manager/layout_mode.js +93 -33
- package/optimize/es/components/flyout/manager/reducer.js +24 -2
- package/optimize/es/components/flyout/manager/selectors.js +6 -0
- package/optimize/es/components/flyout/manager/store.js +6 -3
- package/optimize/es/components/flyout/use_flyout_resizable.js +64 -10
- package/optimize/es/components/flyout/use_flyout_z_index.js +5 -7
- package/optimize/es/components/form/checkbox/checkbox.js +1 -1
- package/optimize/es/components/form/field_password/field_password.js +1 -1
- package/optimize/es/components/form/field_search/field_search.js +1 -1
- package/optimize/es/components/form/file_picker/file_picker.js +1 -1
- package/optimize/es/components/form/form_control_layout/form_control_layout_icons.js +1 -1
- package/optimize/es/components/header/header.a11y.js +1 -1
- package/optimize/es/components/link/external_link_icon.js +1 -1
- package/optimize/es/components/list_group/pinnable_list_group/pinnable_list_group.js +1 -1
- package/optimize/es/components/markdown_editor/markdown_editor_toolbar.js +6 -6
- package/optimize/es/components/pagination/pagination_button_arrow.js +4 -4
- package/optimize/es/components/search_bar/filters/field_value_selection_filter.js +1 -1
- package/optimize/es/components/selectable/selectable.a11y.js +1 -1
- package/optimize/es/components/selectable/selectable_list/selectable_list_item.js +1 -1
- package/optimize/es/components/side_nav/side_nav_item.js +1 -1
- package/optimize/es/components/table/_table_cell_content.js +1 -1
- package/optimize/es/components/table/_table_cell_content.styles.js +2 -1
- package/optimize/es/components/table/const.js +15 -0
- package/optimize/es/components/table/index.js +2 -1
- package/optimize/es/components/table/mobile/responsive_context.js +2 -5
- package/optimize/es/components/table/mobile/table_header_mobile.js +10 -3
- package/optimize/es/components/table/mobile/table_sort_mobile.js +1 -1
- package/optimize/es/components/table/table.js +34 -15
- package/optimize/es/components/table/table.styles.js +27 -9
- package/optimize/es/components/table/table_cells_shared.styles.js +41 -1
- package/optimize/es/components/table/table_footer_cell.js +21 -7
- package/optimize/es/components/table/table_header_cell.js +17 -7
- package/optimize/es/components/table/table_header_cell_checkbox.js +11 -5
- package/optimize/es/components/table/table_pagination/table_pagination.js +1 -1
- package/optimize/es/components/table/table_row_cell.js +28 -9
- package/optimize/es/components/table/types.js +1 -0
- package/optimize/es/components/table/utils.js +50 -20
- package/optimize/es/components/tree_view/tree_view_item.js +1 -1
- package/optimize/es/global_styling/mixins/_button.js +14 -10
- package/optimize/es/global_styling/mixins/_container_query.js +1 -1
- package/optimize/lib/components/accordion/accordion_trigger/accordion_arrow.js +1 -1
- package/optimize/lib/components/badge/badge.js +11 -5
- package/optimize/lib/components/badge/badge.styles.js +54 -3
- package/optimize/lib/components/badge/color_utils.js +39 -17
- package/optimize/lib/components/basic_table/basic_table.a11y.js +1 -1
- package/optimize/lib/components/basic_table/basic_table.js +35 -14
- package/optimize/lib/components/basic_table/collapsed_item_actions.js +1 -1
- package/optimize/lib/components/breadcrumbs/_breadcrumb_content.js +1 -1
- package/optimize/lib/components/button/split_button/split_button.js +2 -2
- package/optimize/lib/components/button/split_button/split_button_actions.js +2 -2
- package/optimize/lib/components/code/code_block_copy.js +1 -1
- package/optimize/lib/components/collapsible_nav_beta/collapsible_nav_item/collapsed/collapsed_nav_popover.js +1 -1
- package/optimize/lib/components/combo_box/combo_box_input/combo_box_input.js +1 -1
- package/optimize/lib/components/combo_box/combo_box_options_list/combo_box_options_list.js +1 -1
- package/optimize/lib/components/context_menu/context_menu_item.js +1 -1
- package/optimize/lib/components/context_menu/context_menu_panel.js +1 -1
- package/optimize/lib/components/datagrid/body/cell/data_grid_cell_actions.js +1 -1
- package/optimize/lib/components/datagrid/body/header/column_actions.js +1 -1
- package/optimize/lib/components/datagrid/body/header/data_grid_header_cell.js +1 -1
- package/optimize/lib/components/datagrid/controls/column_selector.js +2 -2
- package/optimize/lib/components/datagrid/controls/column_sorting.js +1 -1
- package/optimize/lib/components/datagrid/controls/column_sorting_draggable.js +1 -1
- package/optimize/lib/components/datagrid/data_grid.a11y.js +1 -1
- package/optimize/lib/components/datagrid/data_grid.stories.utils.js +3 -3
- package/optimize/lib/components/datagrid/utils/data_grid_schema.js +1 -1
- package/optimize/lib/components/date_picker/auto_refresh/auto_refresh.js +2 -2
- package/optimize/lib/components/date_picker/react-datepicker/src/month_dropdown.js +1 -1
- package/optimize/lib/components/date_picker/react-datepicker/src/month_year_dropdown.js +1 -1
- package/optimize/lib/components/date_picker/react-datepicker/src/year_dropdown.js +1 -1
- package/optimize/lib/components/date_picker/super_date_picker/quick_select_popover/quick_select.js +2 -2
- package/optimize/lib/components/date_picker/super_date_picker/quick_select_popover/quick_select_popover.js +1 -1
- package/optimize/lib/components/date_picker/super_date_picker/time_window_buttons.js +4 -4
- package/optimize/lib/components/filter_group/filter_button.js +1 -1
- package/optimize/lib/components/filter_group/filter_group.a11y.js +1 -1
- package/optimize/lib/components/flyout/_flyout_overlay.js +5 -2
- package/optimize/lib/components/flyout/flyout.component.js +327 -79
- package/optimize/lib/components/flyout/flyout.styles.js +58 -32
- package/optimize/lib/components/flyout/flyout_menu.js +2 -2
- package/optimize/lib/components/flyout/manager/actions.js +28 -2
- package/optimize/lib/components/flyout/manager/activity_stage.js +18 -7
- package/optimize/lib/components/flyout/manager/flyout_child.js +17 -4
- package/optimize/lib/components/flyout/manager/flyout_managed.js +26 -9
- package/optimize/lib/components/flyout/manager/layout_mode.js +92 -32
- package/optimize/lib/components/flyout/manager/reducer.js +23 -1
- package/optimize/lib/components/flyout/manager/selectors.js +7 -1
- package/optimize/lib/components/flyout/manager/store.js +5 -2
- package/optimize/lib/components/flyout/use_flyout_resizable.js +64 -10
- package/optimize/lib/components/flyout/use_flyout_z_index.js +5 -7
- package/optimize/lib/components/form/checkbox/checkbox.js +1 -1
- package/optimize/lib/components/form/field_password/field_password.js +1 -1
- package/optimize/lib/components/form/field_search/field_search.js +1 -1
- package/optimize/lib/components/form/file_picker/file_picker.js +1 -1
- package/optimize/lib/components/form/form_control_layout/form_control_layout_icons.js +1 -1
- package/optimize/lib/components/header/header.a11y.js +1 -1
- package/optimize/lib/components/link/external_link_icon.js +1 -1
- package/optimize/lib/components/list_group/pinnable_list_group/pinnable_list_group.js +1 -1
- package/optimize/lib/components/markdown_editor/markdown_editor_toolbar.js +6 -6
- package/optimize/lib/components/pagination/pagination_button_arrow.js +4 -4
- package/optimize/lib/components/search_bar/filters/field_value_selection_filter.js +1 -1
- package/optimize/lib/components/selectable/selectable.a11y.js +1 -1
- package/optimize/lib/components/selectable/selectable_list/selectable_list_item.js +1 -1
- package/optimize/lib/components/side_nav/side_nav_item.js +1 -1
- package/optimize/lib/components/table/_table_cell_content.js +1 -1
- package/optimize/lib/components/table/_table_cell_content.styles.js +2 -1
- package/optimize/lib/components/table/const.js +21 -0
- package/optimize/lib/components/table/index.js +8 -1
- package/optimize/lib/components/table/mobile/responsive_context.js +2 -5
- package/optimize/lib/components/table/mobile/table_header_mobile.js +10 -3
- package/optimize/lib/components/table/mobile/table_sort_mobile.js +1 -1
- package/optimize/lib/components/table/table.js +34 -15
- package/optimize/lib/components/table/table.styles.js +26 -8
- package/optimize/lib/components/table/table_cells_shared.styles.js +42 -2
- package/optimize/lib/components/table/table_footer_cell.js +19 -5
- package/optimize/lib/components/table/table_header_cell.js +15 -5
- package/optimize/lib/components/table/table_header_cell_checkbox.js +10 -4
- package/optimize/lib/components/table/table_pagination/table_pagination.js +1 -1
- package/optimize/lib/components/table/table_row_cell.js +27 -8
- package/optimize/lib/components/table/types.js +5 -0
- package/optimize/lib/components/table/utils.js +51 -22
- package/optimize/lib/components/tree_view/tree_view_item.js +1 -1
- package/optimize/lib/global_styling/mixins/_button.js +15 -11
- package/optimize/lib/global_styling/mixins/_container_query.js +1 -1
- package/package.json +1 -1
- package/test-env/components/accordion/accordion_trigger/accordion_arrow.js +1 -1
- package/test-env/components/badge/badge.js +11 -5
- package/test-env/components/badge/badge.styles.js +54 -3
- package/test-env/components/badge/color_utils.js +39 -17
- package/test-env/components/basic_table/basic_table.a11y.js +1 -1
- package/test-env/components/basic_table/basic_table.js +82 -16
- package/test-env/components/basic_table/collapsed_item_actions.js +1 -1
- package/test-env/components/basic_table/in_memory_table.js +47 -2
- package/test-env/components/breadcrumbs/_breadcrumb_content.js +1 -1
- package/test-env/components/button/split_button/split_button.js +2 -2
- package/test-env/components/button/split_button/split_button_actions.js +2 -2
- package/test-env/components/code/code_block_copy.js +1 -1
- package/test-env/components/collapsible_nav_beta/collapsible_nav_item/collapsed/collapsed_nav_popover.js +1 -1
- package/test-env/components/combo_box/combo_box_input/combo_box_input.js +1 -1
- package/test-env/components/combo_box/combo_box_options_list/combo_box_options_list.js +1 -1
- package/test-env/components/context_menu/context_menu_item.js +1 -1
- package/test-env/components/context_menu/context_menu_panel.js +1 -1
- package/test-env/components/datagrid/body/cell/data_grid_cell_actions.js +1 -1
- package/test-env/components/datagrid/body/header/column_actions.js +1 -1
- package/test-env/components/datagrid/body/header/data_grid_header_cell.js +1 -1
- package/test-env/components/datagrid/controls/column_selector.js +2 -2
- package/test-env/components/datagrid/controls/column_sorting.js +1 -1
- package/test-env/components/datagrid/controls/column_sorting_draggable.js +1 -1
- package/test-env/components/datagrid/data_grid.a11y.js +1 -1
- package/test-env/components/datagrid/data_grid.stories.utils.js +3 -3
- package/test-env/components/datagrid/utils/data_grid_schema.js +1 -1
- package/test-env/components/date_picker/auto_refresh/auto_refresh.js +2 -2
- package/test-env/components/date_picker/react-datepicker/src/month_dropdown.js +1 -1
- package/test-env/components/date_picker/react-datepicker/src/month_year_dropdown.js +1 -1
- package/test-env/components/date_picker/react-datepicker/src/year_dropdown.js +1 -1
- package/test-env/components/date_picker/super_date_picker/quick_select_popover/quick_select.js +2 -2
- package/test-env/components/date_picker/super_date_picker/quick_select_popover/quick_select_popover.js +1 -1
- package/test-env/components/date_picker/super_date_picker/time_window_buttons.js +4 -4
- package/test-env/components/filter_group/filter_button.js +2 -2
- package/test-env/components/filter_group/filter_group.a11y.js +1 -1
- package/test-env/components/flyout/_flyout_overlay.js +5 -2
- package/test-env/components/flyout/flyout.component.js +327 -79
- package/test-env/components/flyout/flyout.styles.js +58 -32
- package/test-env/components/flyout/flyout_menu.js +2 -2
- package/test-env/components/flyout/manager/actions.js +28 -2
- package/test-env/components/flyout/manager/activity_stage.js +18 -7
- package/test-env/components/flyout/manager/flyout_child.js +17 -4
- package/test-env/components/flyout/manager/flyout_managed.js +26 -9
- package/test-env/components/flyout/manager/layout_mode.js +92 -32
- package/test-env/components/flyout/manager/reducer.js +23 -1
- package/test-env/components/flyout/manager/selectors.js +7 -1
- package/test-env/components/flyout/manager/store.js +5 -2
- package/test-env/components/flyout/use_flyout_resizable.js +64 -10
- package/test-env/components/flyout/use_flyout_z_index.js +5 -7
- package/test-env/components/form/checkbox/checkbox.js +1 -1
- package/test-env/components/form/field_password/field_password.js +1 -1
- package/test-env/components/form/field_search/field_search.js +1 -1
- package/test-env/components/form/file_picker/file_picker.js +1 -1
- package/test-env/components/form/form_control_layout/form_control_layout_icons.js +1 -1
- package/test-env/components/header/header.a11y.js +1 -1
- package/test-env/components/link/external_link_icon.js +1 -1
- package/test-env/components/list_group/pinnable_list_group/pinnable_list_group.js +1 -1
- package/test-env/components/markdown_editor/markdown_editor_toolbar.js +6 -6
- package/test-env/components/pagination/pagination_button_arrow.js +4 -4
- package/test-env/components/provider/component_defaults/component_defaults.js +2 -2
- package/test-env/components/search_bar/filters/field_value_selection_filter.js +1 -1
- package/test-env/components/selectable/selectable.a11y.js +1 -1
- package/test-env/components/selectable/selectable_list/selectable_list_item.js +1 -1
- package/test-env/components/side_nav/side_nav_item.js +1 -1
- package/test-env/components/table/_table_cell_content.js +1 -1
- package/test-env/components/table/_table_cell_content.styles.js +2 -1
- package/test-env/components/table/const.js +21 -0
- package/test-env/components/table/index.js +8 -1
- package/test-env/components/table/mobile/responsive_context.js +2 -5
- package/test-env/components/table/mobile/table_header_mobile.js +10 -3
- package/test-env/components/table/mobile/table_sort_mobile.js +1 -1
- package/test-env/components/table/table.js +44 -15
- package/test-env/components/table/table.styles.js +26 -8
- package/test-env/components/table/table_cells_shared.styles.js +42 -2
- package/test-env/components/table/table_footer_cell.js +48 -6
- package/test-env/components/table/table_header_cell.js +45 -7
- package/test-env/components/table/table_header_cell_checkbox.js +14 -6
- package/test-env/components/table/table_pagination/table_pagination.js +1 -1
- package/test-env/components/table/table_row_cell.js +60 -11
- package/test-env/components/table/types.js +5 -0
- package/test-env/components/table/utils.js +51 -22
- package/test-env/components/tree_view/tree_view_item.js +1 -1
- package/test-env/global_styling/mixins/_button.js +15 -11
- package/test-env/global_styling/mixins/_container_query.js +1 -1
package/eui.d.ts
CHANGED
|
@@ -1154,10 +1154,19 @@ declare module '@elastic/eui/src/global_styling/mixins/_button' {
|
|
|
1154
1154
|
export interface _EuiButtonOptions {
|
|
1155
1155
|
display?: _EuiButtonDisplay;
|
|
1156
1156
|
}
|
|
1157
|
-
|
|
1157
|
+
type ButtonVariantColors = {
|
|
1158
|
+
color: string;
|
|
1159
|
+
background: string;
|
|
1160
|
+
backgroundHover: string;
|
|
1161
|
+
backgroundActive: string;
|
|
1162
|
+
borderColor: string;
|
|
1163
|
+
};
|
|
1164
|
+
export const getEuiButtonColorValues: (euiThemeContext: UseEuiTheme, color: _EuiExtendedButtonColor | "disabled") => {
|
|
1158
1165
|
color: string;
|
|
1159
1166
|
backgroundColor: string;
|
|
1160
1167
|
borderColor: string;
|
|
1168
|
+
backgroundHover: string;
|
|
1169
|
+
backgroundActive: string;
|
|
1161
1170
|
};
|
|
1162
1171
|
/**
|
|
1163
1172
|
* Creates the `base` version of button styles with proper text contrast.
|
|
@@ -1174,10 +1183,12 @@ declare module '@elastic/eui/src/global_styling/mixins/_button' {
|
|
|
1174
1183
|
color: string;
|
|
1175
1184
|
backgroundColor: string;
|
|
1176
1185
|
};
|
|
1177
|
-
export const
|
|
1186
|
+
export const getEuiFilledButtonColorValues: (euiThemeContext: UseEuiTheme, color: _EuiExtendedButtonColor | "disabled") => {
|
|
1178
1187
|
color: string;
|
|
1179
1188
|
backgroundColor: string;
|
|
1180
1189
|
borderColor: string;
|
|
1190
|
+
backgroundHover: string;
|
|
1191
|
+
backgroundActive: string;
|
|
1181
1192
|
};
|
|
1182
1193
|
/**
|
|
1183
1194
|
* Creates the `fill` version of buttons styles with proper text contrast.
|
|
@@ -1243,10 +1254,15 @@ declare module '@elastic/eui/src/global_styling/mixins/_button' {
|
|
|
1243
1254
|
fontScale: "s";
|
|
1244
1255
|
};
|
|
1245
1256
|
};
|
|
1257
|
+
/**
|
|
1258
|
+
* internal styles util for applying button background color on hover
|
|
1259
|
+
*/
|
|
1260
|
+
export const euiButtonInteractionStyles: (euiThemeContext: UseEuiTheme, buttonColors: ButtonVariantColors, type?: "fill" | "overlay") => string;
|
|
1246
1261
|
/**
|
|
1247
1262
|
* creates a bottom border on hover/focus to ensure a visible change as forced mode removed background colors
|
|
1248
1263
|
*/
|
|
1249
1264
|
export const highContrastHoverIndicatorStyles: ({ euiTheme }: UseEuiTheme) => string;
|
|
1265
|
+
export {};
|
|
1250
1266
|
|
|
1251
1267
|
}
|
|
1252
1268
|
declare module '@elastic/eui/src/global_styling/mixins/_color' {
|
|
@@ -2141,7 +2157,7 @@ declare module '@elastic/eui/src/components/table/mobile/responsive_context' {
|
|
|
2141
2157
|
* Used by parent/top-level table components to determine isResponsive state
|
|
2142
2158
|
* based on the passed breakpoint
|
|
2143
2159
|
*/
|
|
2144
|
-
export const useIsEuiTableResponsive: (
|
|
2160
|
+
export const useIsEuiTableResponsive: (breakpoint?: EuiBreakpointSize | boolean) => boolean;
|
|
2145
2161
|
/**
|
|
2146
2162
|
* Context set by parent table components
|
|
2147
2163
|
* Hook used by cells to fetch parent isResponsive state
|
|
@@ -2175,6 +2191,7 @@ declare module '@elastic/eui/src/components/table/table.styles' {
|
|
|
2175
2191
|
};
|
|
2176
2192
|
export const euiTableStyles: (euiThemeContext: UseEuiTheme) => {
|
|
2177
2193
|
euiTable: import("@emotion/react").SerializedStyles;
|
|
2194
|
+
euiTableScrollableInline: import("@emotion/react").SerializedStyles;
|
|
2178
2195
|
layout: {
|
|
2179
2196
|
fixed: import("@emotion/react").SerializedStyles;
|
|
2180
2197
|
auto: import("@emotion/react").SerializedStyles;
|
|
@@ -2194,9 +2211,20 @@ declare module '@elastic/eui/src/components/table/table.styles' {
|
|
|
2194
2211
|
*/
|
|
2195
2212
|
desktop: import("@emotion/react").SerializedStyles;
|
|
2196
2213
|
mobile: import("@emotion/react").SerializedStyles;
|
|
2214
|
+
scrollableWrapper: import("@emotion/react").SerializedStyles;
|
|
2197
2215
|
};
|
|
2198
2216
|
export const euiTableCaptionStyles: import("@emotion/react").SerializedStyles;
|
|
2199
2217
|
|
|
2218
|
+
}
|
|
2219
|
+
declare module '@elastic/eui/src/components/table/const' {
|
|
2220
|
+
/**
|
|
2221
|
+
* CSS Container name of the `EuiTable` component.
|
|
2222
|
+
* It can be used for dimensional and scroll-state queries.
|
|
2223
|
+
*
|
|
2224
|
+
* @see {@link EuiTable}
|
|
2225
|
+
*/
|
|
2226
|
+
export const EUI_TABLE_CSS_CONTAINER_NAME = "EuiTable";
|
|
2227
|
+
|
|
2200
2228
|
}
|
|
2201
2229
|
declare module '@elastic/eui/src/components/table/table' {
|
|
2202
2230
|
import { FunctionComponent, TableHTMLAttributes } from 'react';
|
|
@@ -2224,7 +2252,27 @@ declare module '@elastic/eui/src/components/table/table' {
|
|
|
2224
2252
|
* @default true
|
|
2225
2253
|
*/
|
|
2226
2254
|
hasBackground?: boolean;
|
|
2255
|
+
/**
|
|
2256
|
+
* Allow the table to grow over 100% of the container inline size
|
|
2257
|
+
* (width in horizontal writing-mode) and enable scrolling on overflow.
|
|
2258
|
+
*
|
|
2259
|
+
* This should only be used with [`tableLayout`]{@link EuiTableProps#tableLayout}
|
|
2260
|
+
* set to `auto`.
|
|
2261
|
+
* @beta
|
|
2262
|
+
* @default false
|
|
2263
|
+
*/
|
|
2264
|
+
scrollableInline?: boolean;
|
|
2227
2265
|
}
|
|
2266
|
+
/**
|
|
2267
|
+
* EuiTable is a low-level building block component used to render tabular data
|
|
2268
|
+
* in a customized way.
|
|
2269
|
+
*
|
|
2270
|
+
* It should only be used when confirmed that [EuiBasicTable]{@link EuiBasicTable}
|
|
2271
|
+
* and [EuiInMemoryTable]{@link EuiInMemoryTable} are not flexible enough
|
|
2272
|
+
* for the purposes of the job.
|
|
2273
|
+
*
|
|
2274
|
+
* @see {@link https://eui.elastic.co/docs/components/tables/custom/|EuiTable documentation}
|
|
2275
|
+
*/
|
|
2228
2276
|
export const EuiTable: FunctionComponent<EuiTableProps>;
|
|
2229
2277
|
|
|
2230
2278
|
}
|
|
@@ -2242,11 +2290,48 @@ declare module '@elastic/eui/src/components/table/table_footer' {
|
|
|
2242
2290
|
import { CommonProps } from '@elastic/eui/src/components/common';
|
|
2243
2291
|
export const EuiTableFooter: FunctionComponent<PropsWithChildren & CommonProps>;
|
|
2244
2292
|
|
|
2293
|
+
}
|
|
2294
|
+
declare module '@elastic/eui/src/components/table/types' {
|
|
2295
|
+
/**
|
|
2296
|
+
* @internal
|
|
2297
|
+
*/
|
|
2298
|
+
export interface EuiTableSharedWidthProps {
|
|
2299
|
+
width?: string | number;
|
|
2300
|
+
minWidth?: string | number;
|
|
2301
|
+
maxWidth?: string | number;
|
|
2302
|
+
}
|
|
2303
|
+
/**
|
|
2304
|
+
* @internal
|
|
2305
|
+
*/
|
|
2306
|
+
export interface EuiTableStickyCellOptions {
|
|
2307
|
+
/**
|
|
2308
|
+
* The side the cell should stick to.
|
|
2309
|
+
* In horizontal writing-mode, `start` equals the left side and `end`
|
|
2310
|
+
* the right side.
|
|
2311
|
+
*/
|
|
2312
|
+
side: 'start' | 'end';
|
|
2313
|
+
}
|
|
2314
|
+
|
|
2245
2315
|
}
|
|
2246
2316
|
declare module '@elastic/eui/src/components/table/utils' {
|
|
2247
|
-
import { CSSProperties } from 'react';
|
|
2248
|
-
|
|
2249
|
-
|
|
2317
|
+
import type { CSSProperties } from 'react';
|
|
2318
|
+
import type { EuiTableSharedWidthProps } from '@elastic/eui/src/components/table/types';
|
|
2319
|
+
/**
|
|
2320
|
+
* @internal
|
|
2321
|
+
*/
|
|
2322
|
+
export const WARNING_MESSAGE_WIDTH = "Two `width` properties were provided. Provide only one of `style.width` or `width` to avoid conflicts.";
|
|
2323
|
+
/**
|
|
2324
|
+
* @internal
|
|
2325
|
+
*/
|
|
2326
|
+
export const WARNING_MESSAGE_MIN_WIDTH = "Two `minWidth` properties were provided. Provide only one of `style.minWidth` or `minWidth` to avoid conflicts.";
|
|
2327
|
+
/**
|
|
2328
|
+
* @internal
|
|
2329
|
+
*/
|
|
2330
|
+
export const WARNING_MESSAGE_MAX_WIDTH = "Two `maxWidth` properties were provided. Provide only one of `style.maxWidth` or `maxWidth` to avoid conflicts.";
|
|
2331
|
+
/**
|
|
2332
|
+
* @internal
|
|
2333
|
+
*/
|
|
2334
|
+
export const resolveWidthPropsAsStyle: (style: CSSProperties | undefined, { width: rawWidth, minWidth: rawMinWidth, maxWidth: rawMaxWidth, }: EuiTableSharedWidthProps) => CSSProperties;
|
|
2250
2335
|
|
|
2251
2336
|
}
|
|
2252
2337
|
declare module '@elastic/eui/src/services/canvas/canvas_text_utils' {
|
|
@@ -2481,12 +2566,37 @@ declare module '@elastic/eui/src/components/table/table_row_cell.styles' {
|
|
|
2481
2566
|
euiTableRowCell__mobileHeader: import("@emotion/react").SerializedStyles;
|
|
2482
2567
|
};
|
|
2483
2568
|
|
|
2569
|
+
}
|
|
2570
|
+
declare module '@elastic/eui/src/components/table/table_cells_shared.styles' {
|
|
2571
|
+
import { UseEuiTheme } from '@elastic/eui/src/services';
|
|
2572
|
+
import { EuiTableStickyCellOptions } from '@elastic/eui/src/components/table/types';
|
|
2573
|
+
export const euiTableHeaderFooterCellStyles: (euiThemeContext: UseEuiTheme) => {
|
|
2574
|
+
euiTableHeaderCell: import("@emotion/react").SerializedStyles;
|
|
2575
|
+
euiTableHeaderCell__content: import("@emotion/react").SerializedStyles;
|
|
2576
|
+
euiTableHeaderCell__button: import("@emotion/react").SerializedStyles;
|
|
2577
|
+
euiTableFooterCell: {
|
|
2578
|
+
euiTableFooterCell: import("@emotion/react").SerializedStyles;
|
|
2579
|
+
hasBackground: import("@emotion/react").SerializedStyles;
|
|
2580
|
+
};
|
|
2581
|
+
};
|
|
2582
|
+
export const euiTableCellCheckboxStyles: (euiThemeContext: UseEuiTheme) => {
|
|
2583
|
+
euiTableHeaderCellCheckbox: import("@emotion/react").SerializedStyles;
|
|
2584
|
+
euiTableRowCellCheckbox: import("@emotion/react").SerializedStyles;
|
|
2585
|
+
desktop: import("@emotion/react").SerializedStyles;
|
|
2586
|
+
mobile: import("@emotion/react").SerializedStyles;
|
|
2587
|
+
};
|
|
2588
|
+
/**
|
|
2589
|
+
* @internal
|
|
2590
|
+
*/
|
|
2591
|
+
export const _useEuiTableStickyCellStyles: (options?: EuiTableStickyCellOptions) => import("@emotion/react").SerializedStyles[] | undefined;
|
|
2592
|
+
|
|
2484
2593
|
}
|
|
2485
2594
|
declare module '@elastic/eui/src/components/table/table_row_cell' {
|
|
2486
2595
|
import { CSSProperties, FunctionComponent, ReactNode, TdHTMLAttributes } from 'react';
|
|
2487
2596
|
import { CommonProps } from '@elastic/eui/src/components/common';
|
|
2488
2597
|
import { HorizontalAlignment } from '@elastic/eui/src/services';
|
|
2489
|
-
|
|
2598
|
+
import type { EuiTableStickyCellOptions, EuiTableSharedWidthProps } from '@elastic/eui/src/components/table/types';
|
|
2599
|
+
interface EuiTableRowCellSharedPropsShape extends EuiTableSharedWidthProps {
|
|
2490
2600
|
/**
|
|
2491
2601
|
* Horizontal alignment of the text in the cell
|
|
2492
2602
|
*/
|
|
@@ -2507,7 +2617,6 @@ declare module '@elastic/eui/src/components/table/table_row_cell' {
|
|
|
2507
2617
|
truncateText?: boolean | {
|
|
2508
2618
|
lines: number;
|
|
2509
2619
|
};
|
|
2510
|
-
width?: CSSProperties['width'];
|
|
2511
2620
|
}
|
|
2512
2621
|
export interface EuiTableRowCellMobileOptionsShape extends EuiTableRowCellSharedPropsShape {
|
|
2513
2622
|
/**
|
|
@@ -2570,6 +2679,25 @@ declare module '@elastic/eui/src/components/table/table_row_cell' {
|
|
|
2570
2679
|
* Used by EuiBasicTable to render hidden copy markers
|
|
2571
2680
|
*/
|
|
2572
2681
|
append?: ReactNode;
|
|
2682
|
+
/**
|
|
2683
|
+
* Whether the cell should stick to a side of the table.
|
|
2684
|
+
*
|
|
2685
|
+
* This option is not applied in the responsive cards layout - see
|
|
2686
|
+
* {@link EuiTableProps#responsiveBreakpoint|`responsiveBreakpoint`}.
|
|
2687
|
+
*
|
|
2688
|
+
* Currently, it can only be used when the cell is in the first or the last
|
|
2689
|
+
* column of a table.
|
|
2690
|
+
*
|
|
2691
|
+
* When set to `true` and `hasBackground: false` is set on the table,
|
|
2692
|
+
* `--euiTableCellStickyBackgroundColor` CSS variable should be set to match
|
|
2693
|
+
* the background color of the element containing the table.
|
|
2694
|
+
* Otherwise, the sticky cell will use the default `backgroundBasePlain`
|
|
2695
|
+
* background color.
|
|
2696
|
+
* @internal
|
|
2697
|
+
* @beta
|
|
2698
|
+
* @default false
|
|
2699
|
+
*/
|
|
2700
|
+
sticky?: EuiTableStickyCellOptions;
|
|
2573
2701
|
}
|
|
2574
2702
|
type Props = CommonProps & Omit<TdHTMLAttributes<HTMLTableCellElement>, 'valign'> & EuiTableRowCellProps;
|
|
2575
2703
|
export const EuiTableRowCell: FunctionComponent<Props>;
|
|
@@ -2587,6 +2715,7 @@ declare module '@elastic/eui/src/components/table/_table_cell_content.styles' {
|
|
|
2587
2715
|
wrapText: import("@emotion/react").SerializedStyles;
|
|
2588
2716
|
hasActions: {
|
|
2589
2717
|
actions: import("@emotion/react").SerializedStyles;
|
|
2718
|
+
custom: import("@emotion/react").SerializedStyles;
|
|
2590
2719
|
desktop: import("@emotion/react").SerializedStyles;
|
|
2591
2720
|
mobile: import("@emotion/react").SerializedStyles;
|
|
2592
2721
|
};
|
|
@@ -2602,33 +2731,33 @@ declare module '@elastic/eui/src/components/table/_table_cell_content' {
|
|
|
2602
2731
|
};
|
|
2603
2732
|
export const EuiTableCellContent: FunctionComponent<EuiTableCellContentProps>;
|
|
2604
2733
|
|
|
2605
|
-
}
|
|
2606
|
-
declare module '@elastic/eui/src/components/table/table_cells_shared.styles' {
|
|
2607
|
-
import { UseEuiTheme } from '@elastic/eui/src/services';
|
|
2608
|
-
export const euiTableHeaderFooterCellStyles: (euiThemeContext: UseEuiTheme) => {
|
|
2609
|
-
euiTableHeaderCell: import("@emotion/react").SerializedStyles;
|
|
2610
|
-
euiTableHeaderCell__content: import("@emotion/react").SerializedStyles;
|
|
2611
|
-
euiTableHeaderCell__button: import("@emotion/react").SerializedStyles;
|
|
2612
|
-
euiTableFooterCell: {
|
|
2613
|
-
euiTableFooterCell: import("@emotion/react").SerializedStyles;
|
|
2614
|
-
hasBackground: import("@emotion/react").SerializedStyles;
|
|
2615
|
-
};
|
|
2616
|
-
};
|
|
2617
|
-
export const euiTableCellCheckboxStyles: (euiThemeContext: UseEuiTheme) => {
|
|
2618
|
-
euiTableHeaderCellCheckbox: import("@emotion/react").SerializedStyles;
|
|
2619
|
-
euiTableRowCellCheckbox: import("@emotion/react").SerializedStyles;
|
|
2620
|
-
desktop: import("@emotion/react").SerializedStyles;
|
|
2621
|
-
mobile: import("@emotion/react").SerializedStyles;
|
|
2622
|
-
};
|
|
2623
|
-
|
|
2624
2734
|
}
|
|
2625
2735
|
declare module '@elastic/eui/src/components/table/table_footer_cell' {
|
|
2626
2736
|
import { FunctionComponent, TdHTMLAttributes } from 'react';
|
|
2627
2737
|
import { HorizontalAlignment } from '@elastic/eui/src/services';
|
|
2628
2738
|
import { CommonProps } from '@elastic/eui/src/components/common';
|
|
2629
|
-
|
|
2739
|
+
import { EuiTableSharedWidthProps, EuiTableStickyCellOptions } from '@elastic/eui/src/components/table/types';
|
|
2740
|
+
export type EuiTableFooterCellProps = CommonProps & Omit<TdHTMLAttributes<HTMLTableCellElement>, 'width'> & EuiTableSharedWidthProps & {
|
|
2630
2741
|
align?: HorizontalAlignment;
|
|
2631
|
-
|
|
2742
|
+
/**
|
|
2743
|
+
* Whether the cell should stick to a side of the table.
|
|
2744
|
+
*
|
|
2745
|
+
* This option is not applied in the responsive cards layout - see
|
|
2746
|
+
* {@link EuiTableProps#responsiveBreakpoint|`responsiveBreakpoint`}.
|
|
2747
|
+
*
|
|
2748
|
+
* Currently, it can only be used when the cell is in the first or the last
|
|
2749
|
+
* column of a table.
|
|
2750
|
+
*
|
|
2751
|
+
* When set to `true` and `hasBackground: false` is set on the table,
|
|
2752
|
+
* `--euiTableCellStickyBackgroundColor` CSS variable should be set to match
|
|
2753
|
+
* the background color of the element containing the table.
|
|
2754
|
+
* Otherwise, the sticky cell will use the default `backgroundBasePlain`
|
|
2755
|
+
* background color.
|
|
2756
|
+
* @internal
|
|
2757
|
+
* @beta
|
|
2758
|
+
* @default false
|
|
2759
|
+
*/
|
|
2760
|
+
sticky?: EuiTableStickyCellOptions;
|
|
2632
2761
|
};
|
|
2633
2762
|
export const EuiTableFooterCell: FunctionComponent<EuiTableFooterCellProps>;
|
|
2634
2763
|
|
|
@@ -11687,9 +11816,35 @@ declare module '@elastic/eui/src/components/basic_table/table_types' {
|
|
|
11687
11816
|
*/
|
|
11688
11817
|
dataType?: EuiTableDataType;
|
|
11689
11818
|
/**
|
|
11690
|
-
*
|
|
11819
|
+
* Requested width of the column.
|
|
11820
|
+
*
|
|
11821
|
+
* Exact width settings are not guaranteed in certain table layouts
|
|
11822
|
+
* or configurations, and may be adjusted by browser's algorithm.
|
|
11823
|
+
* Consider this value a guidance.
|
|
11824
|
+
*
|
|
11825
|
+
* @see {@link https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/Properties/table-layout#values|table-layout algorithms on MDN}
|
|
11691
11826
|
*/
|
|
11692
11827
|
width?: string;
|
|
11828
|
+
/**
|
|
11829
|
+
* Requested minimum width of the column.
|
|
11830
|
+
*
|
|
11831
|
+
* Exact width settings are not guaranteed in certain table layouts
|
|
11832
|
+
* or configurations, and may be adjusted by browser's algorithm.
|
|
11833
|
+
* Consider this value a guidance.
|
|
11834
|
+
*
|
|
11835
|
+
* This property takes effect only when `tableLayout="auto"` is set on the table.
|
|
11836
|
+
*/
|
|
11837
|
+
minWidth?: string;
|
|
11838
|
+
/**
|
|
11839
|
+
* Requested maximum width of the column.
|
|
11840
|
+
*
|
|
11841
|
+
* Exact width settings are not guaranteed in certain table layouts
|
|
11842
|
+
* or configurations, and may be adjusted by browser's algorithm.
|
|
11843
|
+
* Consider this value a guidance.
|
|
11844
|
+
*
|
|
11845
|
+
* This property takes effect only when `tableLayout="auto"` is set on the table.
|
|
11846
|
+
*/
|
|
11847
|
+
maxWidth?: string;
|
|
11693
11848
|
/**
|
|
11694
11849
|
* Defines whether the user can sort on this column. If a function is provided, this function returns the value to sort against
|
|
11695
11850
|
*/
|
|
@@ -11758,7 +11913,7 @@ declare module '@elastic/eui/src/components/basic_table/table_types' {
|
|
|
11758
11913
|
* If provided, allows this column to be sorted on. Must return the value to sort against.
|
|
11759
11914
|
*/
|
|
11760
11915
|
sortable?: (item: T) => Primitive;
|
|
11761
|
-
} & Pick<EuiTableFieldDataColumnType<T>, 'readOnly' | 'description' | 'width' | 'align' | 'truncateText' | 'isExpander'>;
|
|
11916
|
+
} & Pick<EuiTableFieldDataColumnType<T>, 'readOnly' | 'description' | 'width' | 'minWidth' | 'maxWidth' | 'align' | 'truncateText' | 'isExpander'>;
|
|
11762
11917
|
export type EuiTableActionsColumnType<T extends object> = {
|
|
11763
11918
|
/**
|
|
11764
11919
|
* An array of one of the objects: {@link DefaultItemAction} or {@link CustomItemAction}
|
|
@@ -11772,7 +11927,26 @@ declare module '@elastic/eui/src/components/basic_table/table_types' {
|
|
|
11772
11927
|
* Allows configuring an icon with a tooltip, to be displayed next to the name
|
|
11773
11928
|
*/
|
|
11774
11929
|
nameTooltip?: EuiTableColumnNameTooltipProps;
|
|
11775
|
-
|
|
11930
|
+
/**
|
|
11931
|
+
* Whether the actions column should always stick to the right side
|
|
11932
|
+
* of the table no matter the inline (horizontal) scroll position.
|
|
11933
|
+
*
|
|
11934
|
+
* This option should be used in tables with `scrollableInline={true}`
|
|
11935
|
+
* and will be enabled by default in future versions of EUI.
|
|
11936
|
+
*
|
|
11937
|
+
* Currently, it can only be used when the actions column is the last column
|
|
11938
|
+
* of the table.
|
|
11939
|
+
*
|
|
11940
|
+
* When set to `true` and `hasBackground: false` is set on the table,
|
|
11941
|
+
* `--euiTableCellStickyBackgroundColor` CSS variable should be set to match
|
|
11942
|
+
* the background color of the element containing the table.
|
|
11943
|
+
* Otherwise, the sticky column will use the default `backgroundBasePlain`
|
|
11944
|
+
* background color.
|
|
11945
|
+
* @beta
|
|
11946
|
+
* @default false
|
|
11947
|
+
*/
|
|
11948
|
+
sticky?: boolean;
|
|
11949
|
+
} & Pick<EuiTableFieldDataColumnType<T>, 'description' | 'width' | 'minWidth' | 'maxWidth'>;
|
|
11776
11950
|
export interface EuiTableSortingType<T> {
|
|
11777
11951
|
/**
|
|
11778
11952
|
* Indicates the property/field to sort on
|
|
@@ -11836,15 +12010,15 @@ declare module '@elastic/eui/src/components/table/table_header_cell' {
|
|
|
11836
12010
|
import type { EuiTableRowCellMobileOptionsShape } from '@elastic/eui/src/components/table/table_row_cell';
|
|
11837
12011
|
import type { EuiTableColumnNameTooltipProps } from '@elastic/eui/src/components/basic_table/table_types';
|
|
11838
12012
|
import { HEADER_CELL_SCOPE } from '@elastic/eui/src/components/table/table_header_cell_shared';
|
|
12013
|
+
import type { EuiTableSharedWidthProps, EuiTableStickyCellOptions } from '@elastic/eui/src/components/table/types';
|
|
11839
12014
|
export type TableHeaderCellScope = (typeof HEADER_CELL_SCOPE)[number];
|
|
11840
|
-
export type EuiTableHeaderCellProps = CommonProps & Omit<ThHTMLAttributes<HTMLTableCellElement>, 'align' | 'scope'> & {
|
|
12015
|
+
export type EuiTableHeaderCellProps = CommonProps & Omit<ThHTMLAttributes<HTMLTableCellElement>, 'align' | 'scope' | 'width'> & EuiTableSharedWidthProps & {
|
|
11841
12016
|
align?: HorizontalAlignment;
|
|
11842
12017
|
isSortAscending?: boolean;
|
|
11843
12018
|
isSorted?: boolean;
|
|
11844
12019
|
mobileOptions?: Pick<EuiTableRowCellMobileOptionsShape, 'only' | 'show'>;
|
|
11845
12020
|
onSort?: NoArgCallback<void>;
|
|
11846
12021
|
scope?: TableHeaderCellScope;
|
|
11847
|
-
width?: string | number;
|
|
11848
12022
|
/** Allows adding an icon with a tooltip displayed next to the name */
|
|
11849
12023
|
tooltipProps?: EuiTableColumnNameTooltipProps;
|
|
11850
12024
|
description?: string;
|
|
@@ -11858,6 +12032,25 @@ declare module '@elastic/eui/src/components/table/table_header_cell' {
|
|
|
11858
12032
|
* Used by EuiBasicTable to render hidden copy markers
|
|
11859
12033
|
*/
|
|
11860
12034
|
append?: ReactNode;
|
|
12035
|
+
/**
|
|
12036
|
+
* Whether the cell should stick to a side of the table.
|
|
12037
|
+
*
|
|
12038
|
+
* This option is not applied in the responsive cards layout - see
|
|
12039
|
+
* {@link EuiTableProps#responsiveBreakpoint|`responsiveBreakpoint`}.
|
|
12040
|
+
*
|
|
12041
|
+
* Currently, it can only be used when the cell is in the first or the last
|
|
12042
|
+
* column of a table.
|
|
12043
|
+
*
|
|
12044
|
+
* When set to `true` and `hasBackground: false` is set on the table,
|
|
12045
|
+
* `--euiTableCellStickyBackgroundColor` CSS variable should be set to match
|
|
12046
|
+
* the background color of the element containing the table.
|
|
12047
|
+
* Otherwise, the sticky cell will use the default `backgroundBasePlain`
|
|
12048
|
+
* background color.
|
|
12049
|
+
* @internal
|
|
12050
|
+
* @beta
|
|
12051
|
+
* @default false
|
|
12052
|
+
*/
|
|
12053
|
+
sticky?: EuiTableStickyCellOptions;
|
|
11861
12054
|
};
|
|
11862
12055
|
export const EuiTableHeaderCell: FunctionComponent<EuiTableHeaderCellProps>;
|
|
11863
12056
|
|
|
@@ -11866,13 +12059,13 @@ declare module '@elastic/eui/src/components/table/table_header_cell_checkbox' {
|
|
|
11866
12059
|
import { FunctionComponent, ThHTMLAttributes, ReactNode } from 'react';
|
|
11867
12060
|
import { CommonProps } from '@elastic/eui/src/components/common';
|
|
11868
12061
|
import { HEADER_CELL_SCOPE } from '@elastic/eui/src/components/table/table_header_cell_shared';
|
|
12062
|
+
import type { EuiTableSharedWidthProps } from '@elastic/eui/src/components/table/types';
|
|
11869
12063
|
export type EuiTableHeaderCellCheckboxScope = (typeof HEADER_CELL_SCOPE)[number];
|
|
11870
|
-
export interface EuiTableHeaderCellCheckboxProps {
|
|
11871
|
-
width?: string | number;
|
|
12064
|
+
export interface EuiTableHeaderCellCheckboxProps extends EuiTableSharedWidthProps {
|
|
11872
12065
|
scope?: EuiTableHeaderCellCheckboxScope;
|
|
11873
12066
|
append?: ReactNode;
|
|
11874
12067
|
}
|
|
11875
|
-
export const EuiTableHeaderCellCheckbox: FunctionComponent<CommonProps & ThHTMLAttributes<HTMLTableCellElement> & EuiTableHeaderCellCheckboxProps>;
|
|
12068
|
+
export const EuiTableHeaderCellCheckbox: FunctionComponent<CommonProps & Omit<ThHTMLAttributes<HTMLTableCellElement>, 'width'> & EuiTableHeaderCellCheckboxProps>;
|
|
11876
12069
|
|
|
11877
12070
|
}
|
|
11878
12071
|
declare module '@elastic/eui/src/components/table/mobile/table_header_mobile.styles' {
|
|
@@ -12059,6 +12252,7 @@ declare module '@elastic/eui/src/components/table' {
|
|
|
12059
12252
|
export type { EuiTableRowCellProps } from '@elastic/eui/src/components/table/table_row_cell';
|
|
12060
12253
|
export { EuiTableRowCell } from '@elastic/eui/src/components/table/table_row_cell';
|
|
12061
12254
|
export { EuiTableRowCellCheckbox } from '@elastic/eui/src/components/table/table_row_cell_checkbox';
|
|
12255
|
+
export { EUI_TABLE_CSS_CONTAINER_NAME } from '@elastic/eui/src/components/table/const';
|
|
12062
12256
|
|
|
12063
12257
|
}
|
|
12064
12258
|
declare module '@elastic/eui/src/components/flyout/manager/const' {
|
|
@@ -12116,6 +12310,7 @@ declare module '@elastic/eui/src/components/flyout/manager/types' {
|
|
|
12116
12310
|
level: EuiFlyoutLevel;
|
|
12117
12311
|
width?: number;
|
|
12118
12312
|
size?: string;
|
|
12313
|
+
minWidth?: number;
|
|
12119
12314
|
activityStage?: EuiFlyoutActivityStage;
|
|
12120
12315
|
}
|
|
12121
12316
|
export interface FlyoutSession {
|
|
@@ -12142,6 +12337,13 @@ declare module '@elastic/eui/src/components/flyout/manager/types' {
|
|
|
12142
12337
|
pushPadding?: PushPaddingOffsets;
|
|
12143
12338
|
currentZIndex: number;
|
|
12144
12339
|
unmanagedFlyouts: string[];
|
|
12340
|
+
/** The container element that flyouts are positioned relative to (if any). */
|
|
12341
|
+
containerElement?: HTMLElement | null;
|
|
12342
|
+
/**
|
|
12343
|
+
* Reference width used for layout and resize clamping (container or viewport).
|
|
12344
|
+
* Set by the layout mode hook so flyouts use the same value for consistent clamping.
|
|
12345
|
+
*/
|
|
12346
|
+
referenceWidth?: number;
|
|
12145
12347
|
}
|
|
12146
12348
|
/**
|
|
12147
12349
|
* Public API surface provided through React context.
|
|
@@ -12150,12 +12352,13 @@ declare module '@elastic/eui/src/components/flyout/manager/types' {
|
|
|
12150
12352
|
export interface FlyoutManagerApi {
|
|
12151
12353
|
state: EuiFlyoutManagerState;
|
|
12152
12354
|
dispatch: (action: Action) => void;
|
|
12153
|
-
addFlyout: (flyoutId: string, title: string, level?: EuiFlyoutLevel, size?: string) => void;
|
|
12355
|
+
addFlyout: (flyoutId: string, title: string, level?: EuiFlyoutLevel, size?: string, minWidth?: number) => void;
|
|
12154
12356
|
closeFlyout: (flyoutId: string) => void;
|
|
12155
12357
|
closeAllFlyouts: () => void;
|
|
12156
12358
|
setActiveFlyout: (flyoutId: string | null) => void;
|
|
12157
12359
|
setFlyoutWidth: (flyoutId: string, width: number) => void;
|
|
12158
12360
|
setPushPadding: (side: 'left' | 'right', width: number) => void;
|
|
12361
|
+
setContainerElement: (element: HTMLElement | null) => void;
|
|
12159
12362
|
goBack: () => void;
|
|
12160
12363
|
goToFlyout: (flyoutId: string) => void;
|
|
12161
12364
|
addUnmanagedFlyout: (flyoutId: string) => void;
|
|
@@ -12192,6 +12395,10 @@ declare module '@elastic/eui/src/components/flyout/manager/actions' {
|
|
|
12192
12395
|
export const ACTION_GO_TO_FLYOUT: "eui/flyoutManager/goToFlyout";
|
|
12193
12396
|
/** Dispatched to set push padding offset for a side. */
|
|
12194
12397
|
export const ACTION_SET_PUSH_PADDING: "eui/flyoutManager/setPushPadding";
|
|
12398
|
+
/** Dispatched to set the container element for container-relative flyouts. */
|
|
12399
|
+
export const ACTION_SET_CONTAINER_ELEMENT: "eui/flyoutManager/setContainerElement";
|
|
12400
|
+
/** Dispatched to set the reference width used for layout and resize clamping. */
|
|
12401
|
+
export const ACTION_SET_REFERENCE_WIDTH: "eui/flyoutManager/setReferenceWidth";
|
|
12195
12402
|
export const ACTION_ADD_UNMANAGED_FLYOUT: "eui/flyoutManager/addUnmanagedFlyout";
|
|
12196
12403
|
export const ACTION_CLOSE_UNMANAGED_FLYOUT: "eui/flyoutManager/closeUnmanagedFlyout";
|
|
12197
12404
|
/**
|
|
@@ -12204,6 +12411,7 @@ declare module '@elastic/eui/src/components/flyout/manager/actions' {
|
|
|
12204
12411
|
title: string;
|
|
12205
12412
|
level: EuiFlyoutLevel;
|
|
12206
12413
|
size?: string;
|
|
12414
|
+
minWidth?: number;
|
|
12207
12415
|
}
|
|
12208
12416
|
/** Remove a flyout from manager state. Also updates the active session. */
|
|
12209
12417
|
export interface CloseFlyoutAction extends BaseAction {
|
|
@@ -12259,15 +12467,25 @@ declare module '@elastic/eui/src/components/flyout/manager/actions' {
|
|
|
12259
12467
|
type: typeof ACTION_CLOSE_UNMANAGED_FLYOUT;
|
|
12260
12468
|
flyoutId: string;
|
|
12261
12469
|
}
|
|
12470
|
+
/** Set the container element for container-relative positioning. */
|
|
12471
|
+
export interface SetContainerElementAction extends BaseAction {
|
|
12472
|
+
type: typeof ACTION_SET_CONTAINER_ELEMENT;
|
|
12473
|
+
element: HTMLElement | null;
|
|
12474
|
+
}
|
|
12475
|
+
/** Set the reference width for layout and resize clamping. */
|
|
12476
|
+
export interface SetReferenceWidthAction extends BaseAction {
|
|
12477
|
+
type: typeof ACTION_SET_REFERENCE_WIDTH;
|
|
12478
|
+
width: number;
|
|
12479
|
+
}
|
|
12262
12480
|
/** Union of all flyout manager actions. */
|
|
12263
|
-
export type Action = AddFlyoutAction | CloseFlyoutAction | CloseAllFlyoutsAction | SetActiveFlyoutAction | SetWidthAction | SetLayoutModeAction | SetActivityStageAction | GoBackAction | GoToFlyoutAction | SetPushPaddingAction | AddUnmanagedFlyoutAction | CloseUnmanagedFlyoutAction;
|
|
12481
|
+
export type Action = AddFlyoutAction | CloseFlyoutAction | CloseAllFlyoutsAction | SetActiveFlyoutAction | SetWidthAction | SetLayoutModeAction | SetActivityStageAction | GoBackAction | GoToFlyoutAction | SetPushPaddingAction | AddUnmanagedFlyoutAction | CloseUnmanagedFlyoutAction | SetContainerElementAction | SetReferenceWidthAction;
|
|
12264
12482
|
/**
|
|
12265
12483
|
* Register a flyout with the manager.
|
|
12266
12484
|
* - `title` is used for the flyout menu.
|
|
12267
12485
|
* - `level` determines whether the flyout is `main` or `child`.
|
|
12268
12486
|
* - Optional `size` is the named EUI size (e.g. `s`, `m`, `l`).
|
|
12269
12487
|
*/
|
|
12270
|
-
export const addFlyout: (flyoutId: string, title: string, level?: EuiFlyoutLevel, size?: string) => AddFlyoutAction;
|
|
12488
|
+
export const addFlyout: (flyoutId: string, title: string, level?: EuiFlyoutLevel, size?: string, minWidth?: number) => AddFlyoutAction;
|
|
12271
12489
|
/** Unregister a flyout and update the session accordingly. */
|
|
12272
12490
|
export const closeFlyout: (flyoutId: string) => CloseFlyoutAction;
|
|
12273
12491
|
/** Unregister all flyouts. */
|
|
@@ -12290,6 +12508,10 @@ declare module '@elastic/eui/src/components/flyout/manager/actions' {
|
|
|
12290
12508
|
export const addUnmanagedFlyout: (flyoutId: string) => AddUnmanagedFlyoutAction;
|
|
12291
12509
|
/** Unregister an unmanaged flyout */
|
|
12292
12510
|
export const closeUnmanagedFlyout: (flyoutId: string) => CloseUnmanagedFlyoutAction;
|
|
12511
|
+
/** Set the container element for container-relative flyout positioning. */
|
|
12512
|
+
export const setContainerElement: (element: HTMLElement | null) => SetContainerElementAction;
|
|
12513
|
+
/** Set the reference width for layout and resize clamping. */
|
|
12514
|
+
export const setReferenceWidth: (width: number) => SetReferenceWidthAction;
|
|
12293
12515
|
export {};
|
|
12294
12516
|
|
|
12295
12517
|
}
|
|
@@ -12323,12 +12545,13 @@ declare module '@elastic/eui/src/components/flyout/manager/store' {
|
|
|
12323
12545
|
subscribe: (listener: Listener) => () => void;
|
|
12324
12546
|
subscribeToEvents: (listener: EventListener) => () => void;
|
|
12325
12547
|
dispatch: (action: Action) => void;
|
|
12326
|
-
addFlyout: (flyoutId: string, title: string, level?: EuiFlyoutLevel, size?: string) => void;
|
|
12548
|
+
addFlyout: (flyoutId: string, title: string, level?: EuiFlyoutLevel, size?: string, minWidth?: number) => void;
|
|
12327
12549
|
closeFlyout: (flyoutId: string) => void;
|
|
12328
12550
|
closeAllFlyouts: () => void;
|
|
12329
12551
|
setActiveFlyout: (flyoutId: string | null) => void;
|
|
12330
12552
|
setFlyoutWidth: (flyoutId: string, width: number) => void;
|
|
12331
12553
|
setPushPadding: (side: 'left' | 'right', width: number) => void;
|
|
12554
|
+
setContainerElement: (element: HTMLElement | null) => void;
|
|
12332
12555
|
goBack: () => void;
|
|
12333
12556
|
goToFlyout: (flyoutId: string) => void;
|
|
12334
12557
|
addUnmanagedFlyout: (flyoutId: string) => void;
|
|
@@ -12366,6 +12589,8 @@ declare module '@elastic/eui/src/components/flyout/manager/selectors' {
|
|
|
12366
12589
|
export const useCurrentChildFlyout: () => import ("@elastic/eui/src/components/flyout/manager/types").EuiManagedFlyoutState | null;
|
|
12367
12590
|
/** The measured width (px) of the specified flyout, or `null` if unknown. */
|
|
12368
12591
|
export const useFlyoutWidth: (flyoutId?: string | null) => number | undefined;
|
|
12592
|
+
/** The configured minWidth (px) of the specified flyout, or `undefined` if not set. */
|
|
12593
|
+
export const useFlyoutMinWidth: (flyoutId?: string | null) => number | undefined;
|
|
12369
12594
|
/** The configured size of the parent (main) flyout for a given child flyout ID. */
|
|
12370
12595
|
export const useParentFlyoutSize: (childFlyoutId: string) => string | undefined;
|
|
12371
12596
|
/** True if the provided `flyoutId` is the main flyout and it currently has a child. */
|
|
@@ -12415,11 +12640,16 @@ declare module '@elastic/eui/src/components/flyout/manager/layout_mode' {
|
|
|
12415
12640
|
/**
|
|
12416
12641
|
* Hook to handle responsive layout mode for managed flyouts.
|
|
12417
12642
|
* Decides whether to place flyouts side-by-side or stacked based on
|
|
12418
|
-
*
|
|
12643
|
+
* the reference width (the reference container's width, defaulting to
|
|
12644
|
+
* document.body when not set) and flyout widths/sizes.
|
|
12419
12645
|
*/
|
|
12420
12646
|
export const useApplyFlyoutLayoutMode: () => void;
|
|
12421
|
-
/**
|
|
12422
|
-
|
|
12647
|
+
/**
|
|
12648
|
+
* Convert a flyout `size` value to a pixel width.
|
|
12649
|
+
* When `referenceWidth` is provided, named sizes are calculated as a percentage
|
|
12650
|
+
* of that width (container-relative). Otherwise falls back to `window.innerWidth`.
|
|
12651
|
+
*/
|
|
12652
|
+
export const getWidthFromSize: (size: string | number, referenceWidth?: number) => number;
|
|
12423
12653
|
/** Current layout mode for managed flyouts (`side-by-side` or `stacked`). */
|
|
12424
12654
|
export const useFlyoutLayoutMode: () => EuiFlyoutLayoutMode;
|
|
12425
12655
|
|
|
@@ -12800,18 +13030,17 @@ declare module '@elastic/eui/src/components/flyout/const' {
|
|
|
12800
13030
|
declare module '@elastic/eui/src/components/flyout/flyout.styles' {
|
|
12801
13031
|
import { EuiFlyoutSize } from '@elastic/eui/src/components/flyout/const';
|
|
12802
13032
|
import { UseEuiTheme } from '@elastic/eui/src/services';
|
|
12803
|
-
export const EUI_FLYOUT_CONTAINER_NAME: "euiFlyout";
|
|
12804
13033
|
export const FLYOUT_BREAKPOINT: "m";
|
|
12805
13034
|
export const euiFlyoutSlideInRight: import("@emotion/serialize").Keyframes;
|
|
12806
13035
|
export const euiFlyoutSlideOutRight: import("@emotion/serialize").Keyframes;
|
|
12807
13036
|
export const euiFlyoutSlideInLeft: import("@emotion/serialize").Keyframes;
|
|
12808
13037
|
export const euiFlyoutSlideOutLeft: import("@emotion/serialize").Keyframes;
|
|
13038
|
+
/**
|
|
13039
|
+
* When a `container` reference element is provided, the flyout's position
|
|
13040
|
+
* and dimensions are constrained to the container's bounding rect via
|
|
13041
|
+
* inline styles computed in JS.
|
|
13042
|
+
*/
|
|
12809
13043
|
export const euiFlyoutStyles: (euiThemeContext: UseEuiTheme) => {
|
|
12810
|
-
euiFlyout: import("@emotion/react").SerializedStyles;
|
|
12811
|
-
s: import("@emotion/react").SerializedStyles;
|
|
12812
|
-
m: import("@emotion/react").SerializedStyles;
|
|
12813
|
-
l: import("@emotion/react").SerializedStyles;
|
|
12814
|
-
fill: import("@emotion/react").SerializedStyles;
|
|
12815
13044
|
noMaxWidth: import("@emotion/react").SerializedStyles;
|
|
12816
13045
|
right: import("@emotion/react").SerializedStyles;
|
|
12817
13046
|
left: import("@emotion/react").SerializedStyles;
|
|
@@ -12832,11 +13061,36 @@ declare module '@elastic/eui/src/components/flyout/flyout.styles' {
|
|
|
12832
13061
|
m: import("@emotion/react").SerializedStyles;
|
|
12833
13062
|
l: import("@emotion/react").SerializedStyles;
|
|
12834
13063
|
};
|
|
13064
|
+
s: import("@emotion/react").SerializedStyles;
|
|
13065
|
+
m: import("@emotion/react").SerializedStyles;
|
|
13066
|
+
l: import("@emotion/react").SerializedStyles;
|
|
13067
|
+
fill: import("@emotion/react").SerializedStyles;
|
|
13068
|
+
euiFlyout: import("@emotion/react").SerializedStyles;
|
|
12835
13069
|
};
|
|
13070
|
+
/**
|
|
13071
|
+
* Applies a max-width constraint at the flyout breakpoint.
|
|
13072
|
+
*/
|
|
12836
13073
|
export const maxedFlyoutWidth: (euiThemeContext: UseEuiTheme) => string;
|
|
12837
|
-
export const composeFlyoutSizing: (euiThemeContext: UseEuiTheme, size: EuiFlyoutSize) => string;
|
|
12838
13074
|
/**
|
|
12839
|
-
* Composes
|
|
13075
|
+
* Composes the full set of named size styles (`s`, `m`, `l`, `fill`).
|
|
13076
|
+
*
|
|
13077
|
+
* Uses `%` units for widths. Media queries drive responsive breakpoints.
|
|
13078
|
+
*
|
|
13079
|
+
* When a child flyout is stacked on top of the parent, the parent flyout
|
|
13080
|
+
* size will match the child flyout size. The `s` and `m` sizes include
|
|
13081
|
+
* overrides for this stacked-child behavior.
|
|
13082
|
+
*/
|
|
13083
|
+
export const composeFlyoutSizing: (euiThemeContext: UseEuiTheme) => {
|
|
13084
|
+
s: import("@emotion/react").SerializedStyles;
|
|
13085
|
+
m: import("@emotion/react").SerializedStyles;
|
|
13086
|
+
l: import("@emotion/react").SerializedStyles;
|
|
13087
|
+
fill: import("@emotion/react").SerializedStyles;
|
|
13088
|
+
};
|
|
13089
|
+
/**
|
|
13090
|
+
* Composes all inline styles for a flyout based on its configuration.
|
|
13091
|
+
* Uses a CSS custom property (`--euiFlyoutMainWidth`) for synchronous
|
|
13092
|
+
* tracking of the main flyout width during resize drag, falling back to
|
|
13093
|
+
* the pixel value from manager state when the variable is not set.
|
|
12840
13094
|
*/
|
|
12841
13095
|
export const composeFlyoutInlineStyles: (size: EuiFlyoutSize | string | number, layoutMode: "side-by-side" | "stacked", siblingFlyoutId: string | null, siblingFlyoutWidth: number | null, maxWidth: boolean | number | string | undefined, zIndex?: number) => React.CSSProperties;
|
|
12842
13096
|
|
|
@@ -12995,6 +13249,10 @@ declare module '@elastic/eui/src/components/flyout/manager/activity_stage' {
|
|
|
12995
13249
|
/**
|
|
12996
13250
|
* Encapsulates all activity-stage transitions and animation-driven updates
|
|
12997
13251
|
* for managed flyouts.
|
|
13252
|
+
*
|
|
13253
|
+
* Performance: reads `useFlyoutManager()` once and derives isActive,
|
|
13254
|
+
* hasChild, and layoutMode inline (replaces useIsFlyoutActive,
|
|
13255
|
+
* useHasChildFlyout, useFlyoutLayoutMode hooks).
|
|
12998
13256
|
*/
|
|
12999
13257
|
export const useFlyoutActivityStage: ({ flyoutId, level, }: UseFlyoutActivityStageParams) => {
|
|
13000
13258
|
activityStage: EuiFlyoutActivityStage;
|
|
@@ -13206,6 +13464,11 @@ declare module '@elastic/eui/src/components/flyout/_flyout_overlay' {
|
|
|
13206
13464
|
maskProps: EuiFlyoutComponentProps['maskProps'];
|
|
13207
13465
|
isPushed: boolean;
|
|
13208
13466
|
maskZIndex: number;
|
|
13467
|
+
/**
|
|
13468
|
+
* Use 'above' to stack the flyout and mask above fixed headers (mask-level
|
|
13469
|
+
* z-index); 'below' to keep them in the flyout stacking level.
|
|
13470
|
+
*/
|
|
13471
|
+
headerZindexLocation?: 'above' | 'below';
|
|
13209
13472
|
}
|
|
13210
13473
|
/**
|
|
13211
13474
|
* Light wrapper for conditionally rendering portals or overlay masks:
|
|
@@ -13215,7 +13478,7 @@ declare module '@elastic/eui/src/components/flyout/_flyout_overlay' {
|
|
|
13215
13478
|
*
|
|
13216
13479
|
* @internal
|
|
13217
13480
|
*/
|
|
13218
|
-
export const EuiFlyoutOverlay: ({ children, isPushed, maskProps, hasOverlayMask, maskZIndex, }: EuiFlyoutOverlayProps) => React.JSX.Element;
|
|
13481
|
+
export const EuiFlyoutOverlay: ({ children, isPushed, maskProps, hasOverlayMask, maskZIndex, headerZindexLocation, }: EuiFlyoutOverlayProps) => React.JSX.Element;
|
|
13219
13482
|
|
|
13220
13483
|
}
|
|
13221
13484
|
declare module '@elastic/eui/src/components/resizable_container/types' {
|
|
@@ -13929,12 +14192,14 @@ declare module '@elastic/eui/src/components/flyout/use_flyout_resizable' {
|
|
|
13929
14192
|
enabled: boolean;
|
|
13930
14193
|
minWidth?: number;
|
|
13931
14194
|
maxWidth: number | undefined;
|
|
14195
|
+
siblingFlyoutWidth?: number | null;
|
|
14196
|
+
referenceWidth?: number;
|
|
13932
14197
|
size: string | number;
|
|
13933
14198
|
};
|
|
13934
14199
|
/**
|
|
13935
14200
|
* @internal
|
|
13936
14201
|
*/
|
|
13937
|
-
export const useEuiFlyoutResizable: ({ enabled, minWidth, maxWidth, onResize, side, size: _size, }: UseEuiFlyoutResizable) => {
|
|
14202
|
+
export const useEuiFlyoutResizable: ({ enabled, minWidth, maxWidth, siblingFlyoutWidth, referenceWidth, onResize, side, size: _size, }: UseEuiFlyoutResizable) => {
|
|
13938
14203
|
onKeyDown: (e: React.KeyboardEvent) => void;
|
|
13939
14204
|
onMouseDown: (e: React.MouseEvent | React.TouchEvent) => void;
|
|
13940
14205
|
setFlyoutRef: React.Dispatch<React.SetStateAction<HTMLElement | null>>;
|
|
@@ -13944,12 +14209,12 @@ declare module '@elastic/eui/src/components/flyout/use_flyout_resizable' {
|
|
|
13944
14209
|
|
|
13945
14210
|
}
|
|
13946
14211
|
declare module '@elastic/eui/src/components/flyout/use_flyout_z_index' {
|
|
13947
|
-
import type { EuiOverlayMaskProps } from '@elastic/eui/src/components/overlay_mask';
|
|
13948
14212
|
/**
|
|
13949
14213
|
* @internal
|
|
13950
14214
|
*/
|
|
13951
14215
|
export interface UseEuiFlyoutZIndex {
|
|
13952
|
-
|
|
14216
|
+
/** Use 'above' to stack the flyout above fixed headers (mask-level z-index); 'below' otherwise. */
|
|
14217
|
+
headerZindexLocation?: 'above' | 'below';
|
|
13953
14218
|
isPushed: boolean;
|
|
13954
14219
|
managedFlyoutIndex: number;
|
|
13955
14220
|
isChildFlyout: boolean;
|
|
@@ -13957,7 +14222,7 @@ declare module '@elastic/eui/src/components/flyout/use_flyout_z_index' {
|
|
|
13957
14222
|
/**
|
|
13958
14223
|
* @internal
|
|
13959
14224
|
*/
|
|
13960
|
-
export const useEuiFlyoutZIndex: ({
|
|
14225
|
+
export const useEuiFlyoutZIndex: ({ headerZindexLocation, isPushed, managedFlyoutIndex, isChildFlyout, }: UseEuiFlyoutZIndex) => {
|
|
13961
14226
|
flyoutZIndex: number;
|
|
13962
14227
|
maskZIndex: number;
|
|
13963
14228
|
};
|
|
@@ -14041,7 +14306,11 @@ declare module '@elastic/eui/src/components/flyout/flyout.component' {
|
|
|
14041
14306
|
*/
|
|
14042
14307
|
closeButtonPosition?: 'inside' | 'outside';
|
|
14043
14308
|
/**
|
|
14044
|
-
* Adjustments to the EuiOverlayMask that is added when `ownFocus = true
|
|
14309
|
+
* Adjustments to the EuiOverlayMask that is added when `ownFocus = true`.
|
|
14310
|
+
*
|
|
14311
|
+
* @deprecated Prefer the `container` prop to scope flyouts to an
|
|
14312
|
+
* application area. `maskProps` is still honored but may be removed
|
|
14313
|
+
* in a future major version.
|
|
14045
14314
|
*/
|
|
14046
14315
|
maskProps?: EuiOverlayMaskProps;
|
|
14047
14316
|
/**
|
|
@@ -14090,6 +14359,10 @@ declare module '@elastic/eui/src/components/flyout/flyout.component' {
|
|
|
14090
14359
|
* within fixed headers.
|
|
14091
14360
|
*
|
|
14092
14361
|
* Set this to `false` if you need to disable this behavior for a specific reason.
|
|
14362
|
+
*
|
|
14363
|
+
* @deprecated Prefer `includeSelectorInFocusTrap` when using the
|
|
14364
|
+
* `container` prop. `includeFixedHeadersInFocusTrap` is still honored
|
|
14365
|
+
* but may be removed in a future major version.
|
|
14093
14366
|
*/
|
|
14094
14367
|
includeFixedHeadersInFocusTrap?: boolean;
|
|
14095
14368
|
/**
|
|
@@ -14110,6 +14383,30 @@ declare module '@elastic/eui/src/components/flyout/flyout.component' {
|
|
|
14110
14383
|
* Optional callback that fires when the flyout is resized.
|
|
14111
14384
|
*/
|
|
14112
14385
|
onResize?: (width: number) => void;
|
|
14386
|
+
/**
|
|
14387
|
+
* Optional reference container element. When not specified or set to
|
|
14388
|
+
* `null`, the flyout uses standard viewport-relative `position: fixed`
|
|
14389
|
+
* behavior with no additional positioning styles.
|
|
14390
|
+
*
|
|
14391
|
+
* When a specific element is provided, the flyout is visually constrained
|
|
14392
|
+
* to that element's bounds (e.g. does not overlap side navigation,
|
|
14393
|
+
* toolbars). The flyout remains mounted in `document.body` with
|
|
14394
|
+
* `position: fixed`; the container's bounding rect is read (via
|
|
14395
|
+
* `ResizeObserver` and window scroll/resize listeners) to compute inline
|
|
14396
|
+
* positioning styles that pin the flyout inside the container. No DOM
|
|
14397
|
+
* mutations are applied to the container except push-mode padding.
|
|
14398
|
+
*
|
|
14399
|
+
* Resize clamping and responsive breakpoints use the container's width
|
|
14400
|
+
* when provided, or the viewport width otherwise.
|
|
14401
|
+
*
|
|
14402
|
+
* Can be set globally via `EuiProvider` component defaults so all
|
|
14403
|
+
* flyouts are scoped to the application container by default. Individual
|
|
14404
|
+
* flyouts can override with `container={null}` to force viewport mode.
|
|
14405
|
+
*
|
|
14406
|
+
* A getter function `() => HTMLElement | null` or a CSS selector string
|
|
14407
|
+
* (e.g. `'#app-main'`) can also be passed.
|
|
14408
|
+
*/
|
|
14409
|
+
container?: HTMLElement | null | (() => HTMLElement | null) | string;
|
|
14113
14410
|
}
|
|
14114
14411
|
type Props<T extends ElementType> = CommonProps & {
|
|
14115
14412
|
/**
|
|
@@ -14269,16 +14566,16 @@ declare module '@elastic/eui/src/components/provider/component_defaults/componen
|
|
|
14269
14566
|
*/
|
|
14270
14567
|
EuiTablePagination?: Pick<EuiTablePaginationProps, 'itemsPerPage' | 'itemsPerPageOptions' | 'showPerPageOptions'>;
|
|
14271
14568
|
/**
|
|
14272
|
-
* Provide a global configuration for EuiTable's
|
|
14569
|
+
* Provide a global configuration for EuiTable's.
|
|
14273
14570
|
*
|
|
14274
14571
|
* Defaults will be inherited by all `EuiBasicTable`s and `EuiInMemoryTable`s.
|
|
14275
14572
|
*/
|
|
14276
|
-
EuiTable?: Pick<EuiTableProps, 'responsiveBreakpoint'>;
|
|
14573
|
+
EuiTable?: Pick<EuiTableProps, 'responsiveBreakpoint' | 'scrollableInline' | 'tableLayout'>;
|
|
14277
14574
|
/**
|
|
14278
14575
|
* Provide a global configuration for `EuiFlyout`s.
|
|
14279
14576
|
* Defaults will be inherited by all `EuiFlyout`s.
|
|
14280
14577
|
*/
|
|
14281
|
-
EuiFlyout?: Pick<EuiFlyoutProps, 'includeSelectorInFocusTrap' | 'includeFixedHeadersInFocusTrap'>;
|
|
14578
|
+
EuiFlyout?: Pick<EuiFlyoutProps, 'includeSelectorInFocusTrap' | 'includeFixedHeadersInFocusTrap' | 'container'>;
|
|
14282
14579
|
/**
|
|
14283
14580
|
* Provide a global configuration for `EuiPopover`s.
|
|
14284
14581
|
* Defaults will be inherited by every `EuiPopover`.
|
|
@@ -16934,69 +17231,57 @@ declare module '@elastic/eui/src/components/badge/color_utils' {
|
|
|
16934
17231
|
export const euiBadgeColors: (euiThemeContext: UseEuiTheme) => {
|
|
16935
17232
|
fill: {
|
|
16936
17233
|
primary: {
|
|
16937
|
-
border: string;
|
|
16938
|
-
color: string;
|
|
16939
|
-
backgroundColor: string;
|
|
16940
|
-
} | {
|
|
16941
|
-
border?: undefined;
|
|
16942
17234
|
color: string;
|
|
16943
17235
|
backgroundColor: string;
|
|
17236
|
+
borderColor: string;
|
|
17237
|
+
backgroundHover: string;
|
|
17238
|
+
backgroundActive: string;
|
|
16944
17239
|
};
|
|
16945
17240
|
neutral: {
|
|
16946
|
-
border: string;
|
|
16947
|
-
color: string;
|
|
16948
|
-
backgroundColor: string;
|
|
16949
|
-
} | {
|
|
16950
|
-
border?: undefined;
|
|
16951
17241
|
color: string;
|
|
16952
17242
|
backgroundColor: string;
|
|
17243
|
+
borderColor: string;
|
|
17244
|
+
backgroundHover: string;
|
|
17245
|
+
backgroundActive: string;
|
|
16953
17246
|
};
|
|
16954
17247
|
success: {
|
|
16955
|
-
border: string;
|
|
16956
|
-
color: string;
|
|
16957
|
-
backgroundColor: string;
|
|
16958
|
-
} | {
|
|
16959
|
-
border?: undefined;
|
|
16960
17248
|
color: string;
|
|
16961
17249
|
backgroundColor: string;
|
|
17250
|
+
borderColor: string;
|
|
17251
|
+
backgroundHover: string;
|
|
17252
|
+
backgroundActive: string;
|
|
16962
17253
|
};
|
|
16963
17254
|
warning: {
|
|
16964
|
-
border: string;
|
|
16965
|
-
color: string;
|
|
16966
|
-
backgroundColor: string;
|
|
16967
|
-
} | {
|
|
16968
|
-
border?: undefined;
|
|
16969
17255
|
color: string;
|
|
16970
17256
|
backgroundColor: string;
|
|
17257
|
+
borderColor: string;
|
|
17258
|
+
backgroundHover: string;
|
|
17259
|
+
backgroundActive: string;
|
|
16971
17260
|
};
|
|
16972
17261
|
risk: {
|
|
16973
|
-
border: string;
|
|
16974
|
-
color: string;
|
|
16975
|
-
backgroundColor: string;
|
|
16976
|
-
} | {
|
|
16977
|
-
border?: undefined;
|
|
16978
17262
|
color: string;
|
|
16979
17263
|
backgroundColor: string;
|
|
17264
|
+
borderColor: string;
|
|
17265
|
+
backgroundHover: string;
|
|
17266
|
+
backgroundActive: string;
|
|
16980
17267
|
};
|
|
16981
17268
|
danger: {
|
|
16982
|
-
border: string;
|
|
16983
|
-
color: string;
|
|
16984
|
-
backgroundColor: string;
|
|
16985
|
-
} | {
|
|
16986
|
-
border?: undefined;
|
|
16987
17269
|
color: string;
|
|
16988
17270
|
backgroundColor: string;
|
|
17271
|
+
borderColor: string;
|
|
17272
|
+
backgroundHover: string;
|
|
17273
|
+
backgroundActive: string;
|
|
16989
17274
|
};
|
|
16990
17275
|
accent: {
|
|
16991
|
-
border: string;
|
|
16992
|
-
color: string;
|
|
16993
|
-
backgroundColor: string;
|
|
16994
|
-
} | {
|
|
16995
|
-
border?: undefined;
|
|
16996
17276
|
color: string;
|
|
16997
17277
|
backgroundColor: string;
|
|
17278
|
+
borderColor: string;
|
|
17279
|
+
backgroundHover: string;
|
|
17280
|
+
backgroundActive: string;
|
|
16998
17281
|
};
|
|
16999
17282
|
default: {
|
|
17283
|
+
backgroundHover: string;
|
|
17284
|
+
backgroundActive: string;
|
|
17000
17285
|
borderColor: string;
|
|
17001
17286
|
backgroundColor: string;
|
|
17002
17287
|
color: string;
|
|
@@ -17004,69 +17289,57 @@ declare module '@elastic/eui/src/components/badge/color_utils' {
|
|
|
17004
17289
|
};
|
|
17005
17290
|
base: {
|
|
17006
17291
|
primary: {
|
|
17007
|
-
border: string;
|
|
17008
|
-
color: string;
|
|
17009
|
-
backgroundColor: string;
|
|
17010
|
-
} | {
|
|
17011
|
-
border?: undefined;
|
|
17012
17292
|
color: string;
|
|
17013
17293
|
backgroundColor: string;
|
|
17294
|
+
borderColor: string;
|
|
17295
|
+
backgroundHover: string;
|
|
17296
|
+
backgroundActive: string;
|
|
17014
17297
|
};
|
|
17015
17298
|
neutral: {
|
|
17016
|
-
border: string;
|
|
17017
|
-
color: string;
|
|
17018
|
-
backgroundColor: string;
|
|
17019
|
-
} | {
|
|
17020
|
-
border?: undefined;
|
|
17021
17299
|
color: string;
|
|
17022
17300
|
backgroundColor: string;
|
|
17301
|
+
borderColor: string;
|
|
17302
|
+
backgroundHover: string;
|
|
17303
|
+
backgroundActive: string;
|
|
17023
17304
|
};
|
|
17024
17305
|
success: {
|
|
17025
|
-
border: string;
|
|
17026
|
-
color: string;
|
|
17027
|
-
backgroundColor: string;
|
|
17028
|
-
} | {
|
|
17029
|
-
border?: undefined;
|
|
17030
17306
|
color: string;
|
|
17031
17307
|
backgroundColor: string;
|
|
17308
|
+
borderColor: string;
|
|
17309
|
+
backgroundHover: string;
|
|
17310
|
+
backgroundActive: string;
|
|
17032
17311
|
};
|
|
17033
17312
|
warning: {
|
|
17034
|
-
border: string;
|
|
17035
|
-
color: string;
|
|
17036
|
-
backgroundColor: string;
|
|
17037
|
-
} | {
|
|
17038
|
-
border?: undefined;
|
|
17039
17313
|
color: string;
|
|
17040
17314
|
backgroundColor: string;
|
|
17315
|
+
borderColor: string;
|
|
17316
|
+
backgroundHover: string;
|
|
17317
|
+
backgroundActive: string;
|
|
17041
17318
|
};
|
|
17042
17319
|
risk: {
|
|
17043
|
-
border: string;
|
|
17044
|
-
color: string;
|
|
17045
|
-
backgroundColor: string;
|
|
17046
|
-
} | {
|
|
17047
|
-
border?: undefined;
|
|
17048
17320
|
color: string;
|
|
17049
17321
|
backgroundColor: string;
|
|
17322
|
+
borderColor: string;
|
|
17323
|
+
backgroundHover: string;
|
|
17324
|
+
backgroundActive: string;
|
|
17050
17325
|
};
|
|
17051
17326
|
danger: {
|
|
17052
|
-
border: string;
|
|
17053
|
-
color: string;
|
|
17054
|
-
backgroundColor: string;
|
|
17055
|
-
} | {
|
|
17056
|
-
border?: undefined;
|
|
17057
17327
|
color: string;
|
|
17058
17328
|
backgroundColor: string;
|
|
17329
|
+
borderColor: string;
|
|
17330
|
+
backgroundHover: string;
|
|
17331
|
+
backgroundActive: string;
|
|
17059
17332
|
};
|
|
17060
17333
|
accent: {
|
|
17061
|
-
border: string;
|
|
17062
|
-
color: string;
|
|
17063
|
-
backgroundColor: string;
|
|
17064
|
-
} | {
|
|
17065
|
-
border?: undefined;
|
|
17066
17334
|
color: string;
|
|
17067
17335
|
backgroundColor: string;
|
|
17336
|
+
borderColor: string;
|
|
17337
|
+
backgroundHover: string;
|
|
17338
|
+
backgroundActive: string;
|
|
17068
17339
|
};
|
|
17069
17340
|
default: {
|
|
17341
|
+
backgroundHover: string;
|
|
17342
|
+
backgroundActive: string;
|
|
17070
17343
|
borderColor: string;
|
|
17071
17344
|
backgroundColor: string;
|
|
17072
17345
|
color: string;
|
|
@@ -17074,16 +17347,14 @@ declare module '@elastic/eui/src/components/badge/color_utils' {
|
|
|
17074
17347
|
};
|
|
17075
17348
|
disabled: {
|
|
17076
17349
|
borderColor: string;
|
|
17077
|
-
border: string;
|
|
17078
|
-
color: string;
|
|
17079
|
-
backgroundColor: string;
|
|
17080
|
-
} | {
|
|
17081
|
-
borderColor: string;
|
|
17082
|
-
border?: undefined;
|
|
17083
17350
|
color: string;
|
|
17084
17351
|
backgroundColor: string;
|
|
17352
|
+
backgroundHover: string;
|
|
17353
|
+
backgroundActive: string;
|
|
17085
17354
|
};
|
|
17086
17355
|
hollow: {
|
|
17356
|
+
backgroundHover: string;
|
|
17357
|
+
backgroundActive: string;
|
|
17087
17358
|
borderColor: string;
|
|
17088
17359
|
backgroundColor: string;
|
|
17089
17360
|
color: string;
|
|
@@ -17104,6 +17375,15 @@ declare module '@elastic/eui/src/components/badge/color_utils' {
|
|
|
17104
17375
|
color: string;
|
|
17105
17376
|
};
|
|
17106
17377
|
export const getTextColor: ({ euiTheme }: UseEuiTheme, bgColor: string) => string;
|
|
17378
|
+
/**
|
|
17379
|
+
* Generates the background hover and active colors for custom interactive badges by mixing
|
|
17380
|
+
* the background color with black or white depending on the background color luminance.
|
|
17381
|
+
* @returns { backgroundHover: string, backgroundActive: string }
|
|
17382
|
+
*/
|
|
17383
|
+
export const getCustomInteractiveColors: ({ euiTheme }: UseEuiTheme, bgColor: string) => {
|
|
17384
|
+
backgroundHover: string;
|
|
17385
|
+
backgroundActive: string;
|
|
17386
|
+
};
|
|
17107
17387
|
export const getIsValidColor: (color?: string) => boolean;
|
|
17108
17388
|
|
|
17109
17389
|
}
|
|
@@ -17113,7 +17393,18 @@ declare module '@elastic/eui/src/components/badge/badge.styles' {
|
|
|
17113
17393
|
export const euiBadgeStyles: (euiThemeContext: UseEuiTheme) => {
|
|
17114
17394
|
euiBadge: SerializedStyles;
|
|
17115
17395
|
iconOnly: SerializedStyles;
|
|
17116
|
-
clickable:
|
|
17396
|
+
readonly clickable: {
|
|
17397
|
+
fill: SerializedStyles;
|
|
17398
|
+
base: SerializedStyles;
|
|
17399
|
+
hollow: SerializedStyles;
|
|
17400
|
+
custom: SerializedStyles;
|
|
17401
|
+
};
|
|
17402
|
+
readonly iconClickable: {
|
|
17403
|
+
fill: SerializedStyles;
|
|
17404
|
+
base: SerializedStyles;
|
|
17405
|
+
hollow: SerializedStyles;
|
|
17406
|
+
custom: SerializedStyles;
|
|
17407
|
+
};
|
|
17117
17408
|
colors: {
|
|
17118
17409
|
fill: {
|
|
17119
17410
|
default: SerializedStyles;
|
|
@@ -27006,7 +27297,7 @@ declare module '@elastic/eui/src/components/filter_group/filter_button' {
|
|
|
27006
27297
|
* Applies a visual state to the button.
|
|
27007
27298
|
* Automatically applies `aria-pressed` when used with `isToggle={true}`.
|
|
27008
27299
|
* Otherwise applies `aria-expanded` when used with `isToggle={false}` and
|
|
27009
|
-
* `iconType="
|
|
27300
|
+
* `iconType="chevronSingleDown"` as trigger button for e.g. a popover.
|
|
27010
27301
|
*/
|
|
27011
27302
|
isSelected?: boolean;
|
|
27012
27303
|
/**
|
|
@@ -34575,7 +34866,6 @@ declare module '@elastic/eui/src/services/container_query' {
|
|
|
34575
34866
|
declare module '@elastic/eui' {
|
|
34576
34867
|
export type EuiTokensObject = {
|
|
34577
34868
|
"euiTreeView.listNavigationInstructions": any;
|
|
34578
|
-
"euiIconTip.defaultAriaLabel": any;
|
|
34579
34869
|
"euiTourStepIndicator.isActive": any;
|
|
34580
34870
|
"euiTourStepIndicator.isComplete": any;
|
|
34581
34871
|
"euiTourStepIndicator.isIncomplete": any;
|
|
@@ -34583,12 +34873,14 @@ declare module '@elastic/eui' {
|
|
|
34583
34873
|
"euiTourFooter.endTour": any;
|
|
34584
34874
|
"euiTourFooter.skipTour": any;
|
|
34585
34875
|
"euiTourFooter.closeTour": any;
|
|
34876
|
+
"euiIconTip.defaultAriaLabel": any;
|
|
34586
34877
|
"euiToast.newNotification": any;
|
|
34587
34878
|
"euiToast.notification": any;
|
|
34588
34879
|
"euiToast.dismissToast": any;
|
|
34589
34880
|
"euiGlobalToastList.clearAllToastsButtonAriaLabel": any;
|
|
34590
34881
|
"euiGlobalToastList.clearAllToastsButtonDisplayText": any;
|
|
34591
34882
|
"euiTableHeaderCell.titleTextWithDesc": any;
|
|
34883
|
+
"euiStat.loadingText": any;
|
|
34592
34884
|
"euiStepStrings.step": any;
|
|
34593
34885
|
"euiStepStrings.simpleStep": any;
|
|
34594
34886
|
"euiStepStrings.complete": any;
|
|
@@ -34605,30 +34897,29 @@ declare module '@elastic/eui' {
|
|
|
34605
34897
|
"euiStepStrings.simpleLoading": any;
|
|
34606
34898
|
"euiStepStrings.current": any;
|
|
34607
34899
|
"euiStepStrings.simpleCurrent": any;
|
|
34608
|
-
"euiStat.loadingText": any;
|
|
34609
34900
|
"euiSkeletonLoading.loadedAriaText": any;
|
|
34610
34901
|
"euiSkeletonLoading.loadingAriaText": any;
|
|
34611
|
-
"euiSideNav.mobileToggleAriaLabel": any;
|
|
34612
|
-
"euiSearchBox.placeholder": any;
|
|
34613
|
-
"euiSearchBox.incrementalAriaLabel": any;
|
|
34614
|
-
"euiSearchBox.ariaLabel": any;
|
|
34615
34902
|
"euiSelectable.loadingOptions": any;
|
|
34616
34903
|
"euiSelectable.noMatchingOptions": any;
|
|
34617
34904
|
"euiSelectable.noAvailableOptions": any;
|
|
34618
34905
|
"euiSelectable.screenReaderInstructions": any;
|
|
34619
34906
|
"euiSelectable.placeholderName": any;
|
|
34620
34907
|
"euiSelectable.searchResults": any;
|
|
34908
|
+
"euiSideNav.mobileToggleAriaLabel": any;
|
|
34909
|
+
"euiSearchBox.placeholder": any;
|
|
34910
|
+
"euiSearchBox.incrementalAriaLabel": any;
|
|
34911
|
+
"euiSearchBox.ariaLabel": any;
|
|
34621
34912
|
"euiResizablePanel.toggleButtonAriaLabel": any;
|
|
34622
34913
|
"euiResizableButton.horizontalResizerAriaLabel": any;
|
|
34623
34914
|
"euiResizableButton.verticalResizerAriaLabel": any;
|
|
34624
34915
|
"euiProgress.valueText": any;
|
|
34625
34916
|
"euiPopover.screenReaderAnnouncement": any;
|
|
34626
|
-
"euiPaginationButton.longPageString": any;
|
|
34627
|
-
"euiPaginationButton.shortPageString": any;
|
|
34628
34917
|
"euiPaginationButtonArrow.firstPage": any;
|
|
34629
34918
|
"euiPaginationButtonArrow.previousPage": any;
|
|
34630
34919
|
"euiPaginationButtonArrow.nextPage": any;
|
|
34631
34920
|
"euiPaginationButtonArrow.lastPage": any;
|
|
34921
|
+
"euiPaginationButton.longPageString": any;
|
|
34922
|
+
"euiPaginationButton.shortPageString": any;
|
|
34632
34923
|
"euiPagination.pageOfTotalCompressed": any;
|
|
34633
34924
|
"euiPagination.firstRangeAriaLabel": any;
|
|
34634
34925
|
"euiPagination.lastRangeAriaLabel": any;
|
|
@@ -34637,10 +34928,10 @@ declare module '@elastic/eui' {
|
|
|
34637
34928
|
"euiPagination.of": any;
|
|
34638
34929
|
"euiPagination.collection": any;
|
|
34639
34930
|
"euiPagination.fromEndLabel": any;
|
|
34640
|
-
"euiModal.screenReaderModalDialog": any;
|
|
34641
|
-
"euiModal.closeModal": any;
|
|
34642
34931
|
"euiMark.highlightStart": any;
|
|
34643
34932
|
"euiMark.highlightEnd": any;
|
|
34933
|
+
"euiModal.screenReaderModalDialog": any;
|
|
34934
|
+
"euiModal.closeModal": any;
|
|
34644
34935
|
"euiMarkdownEditorToolbar.editor": any;
|
|
34645
34936
|
"euiMarkdownEditorToolbar.previewMarkdown": any;
|
|
34646
34937
|
"euiMarkdownEditorHelpButton.mdSyntaxLink": any;
|
|
@@ -34671,21 +34962,19 @@ declare module '@elastic/eui' {
|
|
|
34671
34962
|
"euiFlyoutMenu.back": any;
|
|
34672
34963
|
"euiFlyoutMenu.history": any;
|
|
34673
34964
|
"euiFlyout.screenReaderModalDialog": any;
|
|
34674
|
-
"euiFlyout.
|
|
34965
|
+
"euiFlyout.screenReaderNoOverlayMaskDialog": any;
|
|
34675
34966
|
"euiFlyout.screenReaderFocusTrapShards": any;
|
|
34676
34967
|
"euiFlyoutCloseButton.ariaLabel": any;
|
|
34677
34968
|
"euiErrorBoundary.error": any;
|
|
34678
34969
|
"euiDataGrid.ariaLabel": any;
|
|
34679
34970
|
"euiDataGrid.ariaLabelledBy": any;
|
|
34680
34971
|
"euiDataGrid.screenReaderNotice": any;
|
|
34681
|
-
"euiComboBox.listboxAriaLabel": any;
|
|
34682
|
-
"euiCollapsibleNavBeta.ariaLabel": any;
|
|
34683
|
-
"euiSaturation.ariaLabel": any;
|
|
34684
|
-
"euiSaturation.roleDescription": any;
|
|
34685
|
-
"euiSaturation.screenReaderInstructions": any;
|
|
34686
34972
|
"euiHue.ariaValueText": any;
|
|
34687
34973
|
"euiHue.ariaRoleDescription": any;
|
|
34688
34974
|
"euiHue.label": any;
|
|
34975
|
+
"euiSaturation.ariaLabel": any;
|
|
34976
|
+
"euiSaturation.roleDescription": any;
|
|
34977
|
+
"euiSaturation.screenReaderInstructions": any;
|
|
34689
34978
|
"euiColorPickerSwatch.ariaLabel": any;
|
|
34690
34979
|
"euiColorPicker.popoverLabel": any;
|
|
34691
34980
|
"euiColorPicker.colorLabel": any;
|
|
@@ -34695,13 +34984,15 @@ declare module '@elastic/eui' {
|
|
|
34695
34984
|
"euiColorPicker.alphaLabel": any;
|
|
34696
34985
|
"euiColorPicker.openLabel": any;
|
|
34697
34986
|
"euiColorPicker.closeLabel": any;
|
|
34698
|
-
"
|
|
34987
|
+
"euiCollapsibleNavBeta.ariaLabel": any;
|
|
34988
|
+
"euiComboBox.listboxAriaLabel": any;
|
|
34699
34989
|
"euiCodeBlockFullScreen.fullscreenCollapse": any;
|
|
34700
34990
|
"euiCodeBlockFullScreen.fullscreenExpand": any;
|
|
34701
34991
|
"euiCodeBlockFullScreen.ariaLabel": any;
|
|
34702
|
-
"euiCodeBlockCopy.copy": any;
|
|
34703
34992
|
"euiCodeBlockAnnotations.ariaLabel": any;
|
|
34993
|
+
"euiCodeBlockCopy.copy": any;
|
|
34704
34994
|
"euiCodeBlock.label": any;
|
|
34995
|
+
"euiCallOut.dismissAriaLabel": any;
|
|
34705
34996
|
"euiBreadcrumbs.nav.ariaLabel": any;
|
|
34706
34997
|
"euiBreadcrumb.collapsedBadge.ariaLabel": any;
|
|
34707
34998
|
"euiBreadcrumb.popoverAriaLabel": any;
|
|
@@ -34725,7 +35016,6 @@ declare module '@elastic/eui' {
|
|
|
34725
35016
|
"euiTablePagination.rowsPerPageOptionShowAllRows": any;
|
|
34726
35017
|
"euiTablePagination.rowsPerPageOption": any;
|
|
34727
35018
|
"euiTableSortMobile.sorting": any;
|
|
34728
|
-
"euiFieldValueSelectionFilter.buttonLabelHint": any;
|
|
34729
35019
|
"euiSelectableTemplateSitewide.searchPlaceholder": any;
|
|
34730
35020
|
"euiSelectableTemplateSitewide.loadingResults": any;
|
|
34731
35021
|
"euiSelectableTemplateSitewide.noResults": any;
|
|
@@ -34739,6 +35029,7 @@ declare module '@elastic/eui' {
|
|
|
34739
35029
|
"euiSelectableListItem.mixedOptionInstructions": any;
|
|
34740
35030
|
"euiSelectableListItem.mixedOptionUncheckInstructions": any;
|
|
34741
35031
|
"euiSelectableListItem.mixedOptionExcludeInstructions": any;
|
|
35032
|
+
"euiFieldValueSelectionFilter.buttonLabelHint": any;
|
|
34742
35033
|
"euiPinnableListGroup.pinExtraActionLabel": any;
|
|
34743
35034
|
"euiPinnableListGroup.pinnedExtraActionLabel": any;
|
|
34744
35035
|
"euiHeaderLinks.appNavigation": any;
|
|
@@ -34757,15 +35048,6 @@ declare module '@elastic/eui' {
|
|
|
34757
35048
|
"euiFieldPassword.showPassword": any;
|
|
34758
35049
|
"euiFieldPassword.maskPassword": any;
|
|
34759
35050
|
"euiFlyoutManaged.defaultTitle": any;
|
|
34760
|
-
"euiRefreshInterval.fullDescriptionOff": any;
|
|
34761
|
-
"euiRefreshInterval.fullDescriptionOn": any;
|
|
34762
|
-
"euiRefreshInterval.toggleLabel": any;
|
|
34763
|
-
"euiRefreshInterval.toggleAriaLabel": any;
|
|
34764
|
-
"euiRefreshInterval.valueAriaLabel": any;
|
|
34765
|
-
"euiRefreshInterval.unitsAriaLabel": any;
|
|
34766
|
-
"euiAutoRefresh.autoRefreshLabel": any;
|
|
34767
|
-
"euiAutoRefresh.buttonLabelOff": any;
|
|
34768
|
-
"euiAutoRefresh.buttonLabelOn": any;
|
|
34769
35051
|
"euiTimeWindowButtons.previousDescription": any;
|
|
34770
35052
|
"euiTimeWindowButtons.nextDescription": any;
|
|
34771
35053
|
"euiTimeWindowButtons.invalidShiftLabel": any;
|
|
@@ -34852,6 +35134,15 @@ declare module '@elastic/eui' {
|
|
|
34852
35134
|
"euiPrettyDuration.now": any;
|
|
34853
35135
|
"euiPrettyDuration.invalid": any;
|
|
34854
35136
|
"euiPrettyDuration.fallbackDuration": any;
|
|
35137
|
+
"euiRefreshInterval.fullDescriptionOff": any;
|
|
35138
|
+
"euiRefreshInterval.fullDescriptionOn": any;
|
|
35139
|
+
"euiRefreshInterval.toggleLabel": any;
|
|
35140
|
+
"euiRefreshInterval.toggleAriaLabel": any;
|
|
35141
|
+
"euiRefreshInterval.valueAriaLabel": any;
|
|
35142
|
+
"euiRefreshInterval.unitsAriaLabel": any;
|
|
35143
|
+
"euiAutoRefresh.autoRefreshLabel": any;
|
|
35144
|
+
"euiAutoRefresh.buttonLabelOff": any;
|
|
35145
|
+
"euiAutoRefresh.buttonLabelOn": any;
|
|
34855
35146
|
"euiDataGridSchema.booleanSortTextAsc": any;
|
|
34856
35147
|
"euiDataGridSchema.booleanSortTextDesc": any;
|
|
34857
35148
|
"euiDataGridSchema.currencySortTextAsc": any;
|
|
@@ -34890,6 +35181,7 @@ declare module '@elastic/eui' {
|
|
|
34890
35181
|
"euiKeyboardShortcuts.escapeDescription": any;
|
|
34891
35182
|
"euiFullscreenSelector.fullscreenButton": any;
|
|
34892
35183
|
"euiFullscreenSelector.fullscreenButtonActive": any;
|
|
35184
|
+
"euiDataGridToolbarControl.badgeAriaLabel": any;
|
|
34893
35185
|
"euiDisplaySelector.densityLabel": any;
|
|
34894
35186
|
"euiDisplaySelector.labelCompact": any;
|
|
34895
35187
|
"euiDisplaySelector.labelNormal": any;
|
|
@@ -34900,13 +35192,6 @@ declare module '@elastic/eui' {
|
|
|
34900
35192
|
"euiDisplaySelector.labelMax": any;
|
|
34901
35193
|
"euiDisplaySelector.buttonText": any;
|
|
34902
35194
|
"euiDisplaySelector.resetButtonText": any;
|
|
34903
|
-
"euiDataGridToolbarControl.badgeAriaLabel": any;
|
|
34904
|
-
"euiColumnSortingDraggable.defaultSortAsc": any;
|
|
34905
|
-
"euiColumnSortingDraggable.defaultSortDesc": any;
|
|
34906
|
-
"euiColumnSortingDraggable.dragHandleAriaLabel": any;
|
|
34907
|
-
"euiColumnSortingDraggable.activeSortLabel": any;
|
|
34908
|
-
"euiColumnSortingDraggable.removeSortLabel": any;
|
|
34909
|
-
"euiColumnSortingDraggable.toggleLegend": any;
|
|
34910
35195
|
"euiColumnSorting.button": any;
|
|
34911
35196
|
"euiColumnSorting.sortFieldAriaLabel": any;
|
|
34912
35197
|
"euiColumnSorting.emptySorting": any;
|
|
@@ -34918,6 +35203,19 @@ declare module '@elastic/eui' {
|
|
|
34918
35203
|
"euiColumnSelector.searchcolumns": any;
|
|
34919
35204
|
"euiColumnSelector.selectAll": any;
|
|
34920
35205
|
"euiColumnSelector.hideAll": any;
|
|
35206
|
+
"euiColumnSortingDraggable.defaultSortAsc": any;
|
|
35207
|
+
"euiColumnSortingDraggable.defaultSortDesc": any;
|
|
35208
|
+
"euiColumnSortingDraggable.dragHandleAriaLabel": any;
|
|
35209
|
+
"euiColumnSortingDraggable.activeSortLabel": any;
|
|
35210
|
+
"euiColumnSortingDraggable.removeSortLabel": any;
|
|
35211
|
+
"euiColumnSortingDraggable.toggleLegend": any;
|
|
35212
|
+
"euiCollapsibleNavButton.ariaLabelExpand": any;
|
|
35213
|
+
"euiCollapsibleNavButton.ariaLabelCollapse": any;
|
|
35214
|
+
"euiCollapsibleNavButton.ariaLabelOpen": any;
|
|
35215
|
+
"euiCollapsibleNavButton.ariaLabelClose": any;
|
|
35216
|
+
"euiCollapsibleNavKibanaSolution.switcherTitle": any;
|
|
35217
|
+
"euiCollapsibleNavKibanaSolution.switcherAriaLabel": any;
|
|
35218
|
+
"euiCollapsibleNavKibanaSolution.groupLabel": any;
|
|
34921
35219
|
"euiComboBoxOptionsList.loadingOptions": any;
|
|
34922
35220
|
"euiComboBoxOptionsList.delimiterMessage": any;
|
|
34923
35221
|
"euiComboBoxOptionsList.alreadyAdded": any;
|
|
@@ -34926,13 +35224,6 @@ declare module '@elastic/eui' {
|
|
|
34926
35224
|
"euiComboBoxOptionsList.noAvailableOptions": any;
|
|
34927
35225
|
"euiComboBoxOptionsList.allOptionsSelected": any;
|
|
34928
35226
|
"euiComboBoxPill.removeSelection": any;
|
|
34929
|
-
"euiCollapsibleNavButton.ariaLabelExpand": any;
|
|
34930
|
-
"euiCollapsibleNavButton.ariaLabelCollapse": any;
|
|
34931
|
-
"euiCollapsibleNavButton.ariaLabelOpen": any;
|
|
34932
|
-
"euiCollapsibleNavButton.ariaLabelClose": any;
|
|
34933
|
-
"euiCollapsibleNavKibanaSolution.switcherTitle": any;
|
|
34934
|
-
"euiCollapsibleNavKibanaSolution.switcherAriaLabel": any;
|
|
34935
|
-
"euiCollapsibleNavKibanaSolution.groupLabel": any;
|
|
34936
35227
|
"euiCardSelect.selected": any;
|
|
34937
35228
|
"euiCardSelect.unavailable": any;
|
|
34938
35229
|
"euiCardSelect.select": any;
|
|
@@ -34961,10 +35252,10 @@ declare module '@elastic/eui' {
|
|
|
34961
35252
|
"euiDatePopoverContent.nowTabContent": any;
|
|
34962
35253
|
"euiDatePopoverContent.nowTabButtonStart": any;
|
|
34963
35254
|
"euiDatePopoverContent.nowTabButtonEnd": any;
|
|
34964
|
-
"euiDatePopoverButton.invalidTitle": any;
|
|
34965
|
-
"euiDatePopoverButton.outdatedTitle": any;
|
|
34966
35255
|
"euiAbsoluteTab.dateFormatButtonLabel": any;
|
|
34967
35256
|
"euiAbsoluteTab.dateFormatError": any;
|
|
35257
|
+
"euiDatePopoverButton.invalidTitle": any;
|
|
35258
|
+
"euiDatePopoverButton.outdatedTitle": any;
|
|
34968
35259
|
"euiDataGridHeaderCell.sortedByAscendingSingle": any;
|
|
34969
35260
|
"euiDataGridHeaderCell.sortedByDescendingSingle": any;
|
|
34970
35261
|
"euiDataGridHeaderCell.sortedByAscendingFirst": any;
|