@elastic/eui 104.1.0 → 105.0.0-amsterdam.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/avatar/avatar.js +1 -1
- package/es/components/badge/badge.js +1 -1
- package/es/components/badge/beta_badge/beta_badge.js +1 -1
- package/es/components/basic_table/basic_table.js +4 -4
- package/es/components/basic_table/in_memory_table.js +4 -4
- package/es/components/button/button.js +1 -1
- package/es/components/button/button_display/_button_display.js +1 -1
- package/es/components/button/button_display/_button_display_content.js +1 -1
- package/es/components/button/button_empty/button_empty.js +1 -1
- package/es/components/button/button_group/button_group.js +1 -1
- package/es/components/button/button_group/button_group_button.js +1 -1
- package/es/components/button/button_icon/button_icon.js +1 -1
- package/es/components/call_out/call_out.js +1 -1
- package/es/components/card/card.js +2 -2
- package/es/components/card/card_select/card_select.js +1 -1
- package/es/components/collapsible_nav/collapsible_nav_group/collapsible_nav_group.js +1 -1
- package/es/components/collapsible_nav_beta/_kibana_solution/collapsible_nav_kibana_solution.js +1 -1
- package/es/components/collapsible_nav_beta/collapsible_nav_item/collapsed/collapsed_nav_button.js +1 -1
- package/es/components/collapsible_nav_beta/collapsible_nav_item/collapsed/collapsed_nav_item.js +2 -2
- package/es/components/collapsible_nav_beta/collapsible_nav_item/collapsed/collapsed_nav_popover.js +2 -2
- package/es/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_item.js +4 -4
- package/es/components/combo_box/combo_box.a11y.js +53 -2
- package/es/components/combo_box/combo_box.js +26 -8
- package/es/components/combo_box/combo_box_options_list/combo_box_options_list.js +9 -3
- package/es/components/comment_list/comment.js +2 -2
- package/es/components/comment_list/comment_event.js +1 -1
- package/es/components/comment_list/comment_list.js +2 -2
- package/es/components/comment_list/comment_timeline.js +1 -1
- package/es/components/context_menu/context_menu_item.js +1 -1
- package/es/components/datagrid/body/cell/data_grid_cell.js +12 -12
- package/es/components/datagrid/body/cell/data_grid_cell.styles.js +9 -4
- package/es/components/datagrid/body/data_grid_body.js +7 -7
- package/es/components/datagrid/body/data_grid_body_custom.js +7 -7
- package/es/components/datagrid/body/data_grid_body_virtualized.js +7 -7
- package/es/components/datagrid/body/header/data_grid_header_cell.js +6 -6
- package/es/components/datagrid/controls/column_sorting.js +7 -7
- package/es/components/datagrid/controls/column_sorting_draggable.js +1 -1
- package/es/components/datagrid/controls/data_grid_toolbar_control.js +1 -1
- package/es/components/datagrid/data_grid.styles.js +4 -1
- package/es/components/datagrid/utils/in_memory.js +6 -6
- package/es/components/date_picker/date_picker.js +2 -2
- package/es/components/date_picker/date_picker_range.js +1 -1
- package/es/components/empty_prompt/empty_prompt.js +1 -1
- package/es/components/facet/facet_button.js +1 -1
- package/es/components/filter_group/filter_select_item.js +21 -17
- package/es/components/flyout/flyout.js +88 -21
- package/es/components/flyout/flyout.styles.js +9 -5
- package/es/components/flyout/flyout_child.js +209 -0
- package/es/components/flyout/flyout_child.styles.js +31 -0
- package/es/components/flyout/flyout_child_manager.js +112 -0
- package/es/components/flyout/flyout_context.js +16 -0
- package/es/components/flyout/index.js +3 -1
- package/es/components/flyout/sessions/flyout_provider.js +109 -0
- package/es/components/flyout/sessions/flyout_reducer.js +217 -0
- package/es/components/flyout/sessions/index.js +10 -0
- package/es/components/flyout/sessions/types.js +1 -0
- package/es/components/flyout/sessions/use_eui_flyout.js +94 -0
- package/es/components/form/field_number/field_number.js +2 -2
- package/es/components/form/field_text/field_text.js +2 -2
- package/es/components/form/form_control_layout/form_control_layout.js +2 -2
- package/es/components/form/form_control_layout/form_control_layout_custom_icon.js +1 -1
- package/es/components/form/form_control_layout/form_control_layout_icons.js +2 -2
- package/es/components/form/text_area/text_area.js +2 -2
- package/es/components/header/header_links/header_link.js +1 -1
- package/es/components/header/header_links/header_links.js +1 -1
- package/es/components/header/header_logo/header_logo.js +1 -1
- package/es/components/header/header_section/header_section_item_button.js +1 -1
- package/es/components/icon/icon.js +1 -1
- package/es/components/icon/icon_map.js +1 -4
- package/es/components/key_pad_menu/key_pad_menu_item.js +1 -1
- package/es/components/list_group/list_group.js +2 -2
- package/es/components/list_group/list_group_item.js +2 -2
- package/es/components/list_group/list_group_item_extra_action.js +1 -1
- package/es/components/list_group/pinnable_list_group/pinnable_list_group.js +4 -4
- package/es/components/loading/loading_logo.js +1 -1
- package/es/components/markdown_editor/markdown_editor.js +1 -1
- package/es/components/markdown_editor/markdown_editor_drop_zone.js +1 -1
- package/es/components/markdown_editor/markdown_editor_footer.js +1 -1
- package/es/components/markdown_editor/markdown_editor_toolbar.js +1 -1
- package/es/components/page/page_header/page_header_content.js +1 -1
- package/es/components/pagination/pagination_button.js +1 -1
- package/es/components/progress/progress.js +51 -11
- package/es/components/provider/provider.js +2 -2
- package/es/components/selectable/selectable_list/selectable_list.js +1 -1
- package/es/components/selectable/selectable_list/selectable_list_item.js +1 -1
- package/es/components/selectable/selectable_templates/selectable_template_sitewide.js +1 -1
- package/es/components/table/table_header_cell.js +1 -1
- package/es/components/table/table_row.styles.js +11 -6
- package/es/components/timeline/timeline_item_icon.js +1 -1
- package/es/components/toast/global_toast_list.js +1 -1
- package/es/components/toast/toast.js +1 -1
- package/es/components/tool_tip/icon_tip.js +1 -1
- package/es/services/color/vis_color_store.js +1 -1
- package/es/services/theme/context.js +2 -2
- package/es/themes/amsterdam/global_styling/variables/_components.js +305 -270
- package/eui.d.ts +786 -463
- package/lib/components/avatar/avatar.js +1 -1
- package/lib/components/badge/badge.js +1 -1
- package/lib/components/badge/beta_badge/beta_badge.js +1 -1
- package/lib/components/basic_table/basic_table.js +4 -4
- package/lib/components/basic_table/in_memory_table.js +4 -4
- package/lib/components/button/button.js +1 -1
- package/lib/components/button/button_display/_button_display.js +1 -1
- package/lib/components/button/button_display/_button_display_content.js +1 -1
- package/lib/components/button/button_empty/button_empty.js +1 -1
- package/lib/components/button/button_group/button_group.js +1 -1
- package/lib/components/button/button_group/button_group_button.js +1 -1
- package/lib/components/button/button_icon/button_icon.js +1 -1
- package/lib/components/call_out/call_out.js +1 -1
- package/lib/components/card/card.js +2 -2
- package/lib/components/card/card_select/card_select.js +1 -1
- package/lib/components/collapsible_nav/collapsible_nav_group/collapsible_nav_group.js +1 -1
- package/lib/components/collapsible_nav_beta/_kibana_solution/collapsible_nav_kibana_solution.js +1 -1
- package/lib/components/collapsible_nav_beta/collapsible_nav_item/collapsed/collapsed_nav_button.js +1 -1
- package/lib/components/collapsible_nav_beta/collapsible_nav_item/collapsed/collapsed_nav_item.js +2 -2
- package/lib/components/collapsible_nav_beta/collapsible_nav_item/collapsed/collapsed_nav_popover.js +2 -2
- package/lib/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_item.js +4 -4
- package/lib/components/combo_box/combo_box.a11y.js +53 -2
- package/lib/components/combo_box/combo_box.js +26 -8
- package/lib/components/combo_box/combo_box_options_list/combo_box_options_list.js +9 -3
- package/lib/components/comment_list/comment.js +2 -2
- package/lib/components/comment_list/comment_event.js +1 -1
- package/lib/components/comment_list/comment_list.js +2 -2
- package/lib/components/comment_list/comment_timeline.js +1 -1
- package/lib/components/context_menu/context_menu_item.js +1 -1
- package/lib/components/datagrid/body/cell/data_grid_cell.js +12 -12
- package/lib/components/datagrid/body/cell/data_grid_cell.styles.js +9 -4
- package/lib/components/datagrid/body/data_grid_body.js +7 -7
- package/lib/components/datagrid/body/data_grid_body_custom.js +7 -7
- package/lib/components/datagrid/body/data_grid_body_virtualized.js +7 -7
- package/lib/components/datagrid/body/header/data_grid_header_cell.js +6 -6
- package/lib/components/datagrid/controls/column_sorting.js +7 -7
- package/lib/components/datagrid/controls/column_sorting_draggable.js +1 -1
- package/lib/components/datagrid/controls/data_grid_toolbar_control.js +1 -1
- package/lib/components/datagrid/data_grid.styles.js +4 -1
- package/lib/components/datagrid/utils/in_memory.js +6 -6
- package/lib/components/date_picker/date_picker.js +2 -2
- package/lib/components/date_picker/date_picker_range.js +1 -1
- package/lib/components/empty_prompt/empty_prompt.js +1 -1
- package/lib/components/facet/facet_button.js +1 -1
- package/lib/components/filter_group/filter_select_item.js +21 -17
- package/lib/components/flyout/flyout.js +88 -21
- package/lib/components/flyout/flyout.styles.js +10 -6
- package/lib/components/flyout/flyout_child.js +217 -0
- package/lib/components/flyout/flyout_child.styles.js +37 -0
- package/lib/components/flyout/flyout_child_manager.js +120 -0
- package/lib/components/flyout/flyout_context.js +21 -0
- package/lib/components/flyout/index.js +21 -1
- package/lib/components/flyout/sessions/flyout_provider.js +116 -0
- package/lib/components/flyout/sessions/flyout_reducer.js +224 -0
- package/lib/components/flyout/sessions/index.js +25 -0
- package/lib/components/flyout/sessions/types.js +5 -0
- package/lib/components/flyout/sessions/use_eui_flyout.js +99 -0
- package/lib/components/form/field_number/field_number.js +2 -2
- package/lib/components/form/field_text/field_text.js +2 -2
- package/lib/components/form/form_control_layout/form_control_layout.js +2 -2
- package/lib/components/form/form_control_layout/form_control_layout_custom_icon.js +1 -1
- package/lib/components/form/form_control_layout/form_control_layout_icons.js +2 -2
- package/lib/components/form/text_area/text_area.js +2 -2
- package/lib/components/header/header_links/header_link.js +1 -1
- package/lib/components/header/header_links/header_links.js +1 -1
- package/lib/components/header/header_logo/header_logo.js +1 -1
- package/lib/components/header/header_section/header_section_item_button.js +1 -1
- package/lib/components/icon/icon.js +1 -1
- package/lib/components/icon/icon_map.js +1 -4
- package/lib/components/key_pad_menu/key_pad_menu_item.js +1 -1
- package/lib/components/list_group/list_group.js +2 -2
- package/lib/components/list_group/list_group_item.js +2 -2
- package/lib/components/list_group/list_group_item_extra_action.js +1 -1
- package/lib/components/list_group/pinnable_list_group/pinnable_list_group.js +4 -4
- package/lib/components/loading/loading_logo.js +1 -1
- package/lib/components/markdown_editor/markdown_editor.js +1 -1
- package/lib/components/markdown_editor/markdown_editor_drop_zone.js +1 -1
- package/lib/components/markdown_editor/markdown_editor_footer.js +1 -1
- package/lib/components/markdown_editor/markdown_editor_toolbar.js +1 -1
- package/lib/components/page/page_header/page_header_content.js +1 -1
- package/lib/components/pagination/pagination_button.js +1 -1
- package/lib/components/progress/progress.js +54 -11
- package/lib/components/provider/provider.js +2 -2
- package/lib/components/selectable/selectable_list/selectable_list.js +1 -1
- package/lib/components/selectable/selectable_list/selectable_list_item.js +1 -1
- package/lib/components/selectable/selectable_templates/selectable_template_sitewide.js +1 -1
- package/lib/components/table/table_header_cell.js +1 -1
- package/lib/components/table/table_row.styles.js +11 -6
- package/lib/components/timeline/timeline_item_icon.js +1 -1
- package/lib/components/toast/global_toast_list.js +1 -1
- package/lib/components/toast/toast.js +1 -1
- package/lib/components/tool_tip/icon_tip.js +1 -1
- package/lib/services/color/vis_color_store.js +2 -2
- package/lib/services/theme/context.js +2 -2
- package/lib/themes/amsterdam/global_styling/variables/_components.js +305 -270
- package/optimize/es/components/combo_box/combo_box.a11y.js +53 -2
- package/optimize/es/components/combo_box/combo_box.js +26 -8
- package/optimize/es/components/combo_box/combo_box_options_list/combo_box_options_list.js +8 -3
- package/optimize/es/components/datagrid/body/cell/data_grid_cell.styles.js +9 -4
- package/optimize/es/components/datagrid/data_grid.styles.js +4 -1
- package/optimize/es/components/filter_group/filter_select_item.js +20 -17
- package/optimize/es/components/flyout/flyout.js +88 -21
- package/optimize/es/components/flyout/flyout.styles.js +9 -5
- package/optimize/es/components/flyout/flyout_child.js +168 -0
- package/optimize/es/components/flyout/flyout_child.styles.js +31 -0
- package/optimize/es/components/flyout/flyout_child_manager.js +98 -0
- package/optimize/es/components/flyout/flyout_context.js +16 -0
- package/optimize/es/components/flyout/index.js +3 -1
- package/optimize/es/components/flyout/sessions/flyout_provider.js +104 -0
- package/optimize/es/components/flyout/sessions/flyout_reducer.js +209 -0
- package/optimize/es/components/flyout/sessions/index.js +10 -0
- package/optimize/es/components/flyout/sessions/types.js +1 -0
- package/optimize/es/components/flyout/sessions/use_eui_flyout.js +94 -0
- package/optimize/es/components/icon/icon_map.js +1 -4
- package/optimize/es/components/progress/progress.js +38 -9
- package/optimize/es/components/provider/provider.js +2 -2
- package/optimize/es/components/table/table_row.styles.js +11 -6
- package/optimize/es/services/color/vis_color_store.js +1 -1
- package/optimize/es/services/theme/context.js +2 -2
- package/optimize/es/themes/amsterdam/global_styling/variables/_components.js +305 -270
- package/optimize/lib/components/combo_box/combo_box.a11y.js +53 -2
- package/optimize/lib/components/combo_box/combo_box.js +26 -8
- package/optimize/lib/components/combo_box/combo_box_options_list/combo_box_options_list.js +8 -3
- package/optimize/lib/components/datagrid/body/cell/data_grid_cell.styles.js +9 -4
- package/optimize/lib/components/datagrid/data_grid.styles.js +4 -1
- package/optimize/lib/components/filter_group/filter_select_item.js +20 -17
- package/optimize/lib/components/flyout/flyout.js +88 -21
- package/optimize/lib/components/flyout/flyout.styles.js +10 -6
- package/optimize/lib/components/flyout/flyout_child.js +176 -0
- package/optimize/lib/components/flyout/flyout_child.styles.js +37 -0
- package/optimize/lib/components/flyout/flyout_child_manager.js +108 -0
- package/optimize/lib/components/flyout/flyout_context.js +21 -0
- package/optimize/lib/components/flyout/index.js +21 -1
- package/optimize/lib/components/flyout/sessions/flyout_provider.js +114 -0
- package/optimize/lib/components/flyout/sessions/flyout_reducer.js +217 -0
- package/optimize/lib/components/flyout/sessions/index.js +25 -0
- package/optimize/lib/components/flyout/sessions/types.js +5 -0
- package/optimize/lib/components/flyout/sessions/use_eui_flyout.js +99 -0
- package/optimize/lib/components/icon/icon_map.js +1 -4
- package/optimize/lib/components/progress/progress.js +41 -9
- package/optimize/lib/components/provider/provider.js +2 -2
- package/optimize/lib/components/table/table_row.styles.js +11 -6
- package/optimize/lib/services/color/vis_color_store.js +2 -2
- package/optimize/lib/services/theme/context.js +2 -2
- package/optimize/lib/themes/amsterdam/global_styling/variables/_components.js +305 -270
- package/package.json +4 -4
- package/test-env/components/avatar/avatar.js +1 -1
- package/test-env/components/badge/badge.js +1 -1
- package/test-env/components/badge/beta_badge/beta_badge.js +1 -1
- package/test-env/components/basic_table/basic_table.js +4 -4
- package/test-env/components/basic_table/in_memory_table.js +4 -4
- package/test-env/components/button/button.js +1 -1
- package/test-env/components/button/button_display/_button_display.js +1 -1
- package/test-env/components/button/button_display/_button_display_content.js +1 -1
- package/test-env/components/button/button_empty/button_empty.js +1 -1
- package/test-env/components/button/button_group/button_group.js +1 -1
- package/test-env/components/button/button_group/button_group_button.js +1 -1
- package/test-env/components/button/button_icon/button_icon.js +1 -1
- package/test-env/components/call_out/call_out.js +1 -1
- package/test-env/components/card/card.js +2 -2
- package/test-env/components/card/card_select/card_select.js +1 -1
- package/test-env/components/collapsible_nav/collapsible_nav_group/collapsible_nav_group.js +1 -1
- package/test-env/components/collapsible_nav_beta/_kibana_solution/collapsible_nav_kibana_solution.js +1 -1
- package/test-env/components/collapsible_nav_beta/collapsible_nav_item/collapsed/collapsed_nav_button.js +1 -1
- package/test-env/components/collapsible_nav_beta/collapsible_nav_item/collapsed/collapsed_nav_item.js +2 -2
- package/test-env/components/collapsible_nav_beta/collapsible_nav_item/collapsed/collapsed_nav_popover.js +2 -2
- package/test-env/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_item.js +4 -4
- package/test-env/components/combo_box/combo_box.a11y.js +53 -2
- package/test-env/components/combo_box/combo_box.js +26 -8
- package/test-env/components/combo_box/combo_box_options_list/combo_box_options_list.js +9 -3
- package/test-env/components/comment_list/comment.js +2 -2
- package/test-env/components/comment_list/comment_event.js +1 -1
- package/test-env/components/comment_list/comment_list.js +2 -2
- package/test-env/components/comment_list/comment_timeline.js +1 -1
- package/test-env/components/context_menu/context_menu_item.js +1 -1
- package/test-env/components/datagrid/body/cell/data_grid_cell.js +12 -12
- package/test-env/components/datagrid/body/cell/data_grid_cell.styles.js +9 -4
- package/test-env/components/datagrid/body/data_grid_body.js +7 -7
- package/test-env/components/datagrid/body/data_grid_body_custom.js +7 -7
- package/test-env/components/datagrid/body/data_grid_body_virtualized.js +7 -7
- package/test-env/components/datagrid/body/header/data_grid_header_cell.js +6 -6
- package/test-env/components/datagrid/controls/column_sorting.js +7 -7
- package/test-env/components/datagrid/controls/column_sorting_draggable.js +1 -1
- package/test-env/components/datagrid/controls/data_grid_toolbar_control.js +1 -1
- package/test-env/components/datagrid/data_grid.styles.js +4 -1
- package/test-env/components/datagrid/utils/in_memory.js +6 -6
- package/test-env/components/date_picker/date_picker.js +2 -2
- package/test-env/components/date_picker/date_picker_range.js +1 -1
- package/test-env/components/empty_prompt/empty_prompt.js +1 -1
- package/test-env/components/facet/facet_button.js +1 -1
- package/test-env/components/filter_group/filter_select_item.js +21 -17
- package/test-env/components/flyout/flyout.styles.js +10 -6
- package/test-env/components/flyout/flyout_child.js +216 -0
- package/test-env/components/flyout/flyout_child.styles.js +37 -0
- package/test-env/components/flyout/flyout_child_manager.js +117 -0
- package/test-env/components/flyout/flyout_context.js +21 -0
- package/test-env/components/flyout/index.js +21 -1
- package/test-env/components/flyout/sessions/flyout_provider.js +114 -0
- package/test-env/components/flyout/sessions/flyout_reducer.js +217 -0
- package/test-env/components/flyout/sessions/index.js +25 -0
- package/test-env/components/flyout/sessions/types.js +5 -0
- package/test-env/components/flyout/sessions/use_eui_flyout.js +99 -0
- package/test-env/components/form/field_number/field_number.js +2 -2
- package/test-env/components/form/field_text/field_text.js +2 -2
- package/test-env/components/form/form_control_layout/form_control_layout.js +2 -2
- package/test-env/components/form/form_control_layout/form_control_layout_custom_icon.js +1 -1
- package/test-env/components/form/form_control_layout/form_control_layout_icons.js +2 -2
- package/test-env/components/form/text_area/text_area.js +2 -2
- package/test-env/components/header/header_links/header_link.js +1 -1
- package/test-env/components/header/header_links/header_links.js +1 -1
- package/test-env/components/header/header_logo/header_logo.js +1 -1
- package/test-env/components/header/header_section/header_section_item_button.js +1 -1
- package/test-env/components/icon/icon_map.js +1 -4
- package/test-env/components/key_pad_menu/key_pad_menu_item.js +1 -1
- package/test-env/components/list_group/list_group.js +2 -2
- package/test-env/components/list_group/list_group_item.js +2 -2
- package/test-env/components/list_group/list_group_item_extra_action.js +1 -1
- package/test-env/components/list_group/pinnable_list_group/pinnable_list_group.js +4 -4
- package/test-env/components/loading/loading_logo.js +1 -1
- package/test-env/components/markdown_editor/markdown_editor.js +1 -1
- package/test-env/components/markdown_editor/markdown_editor_drop_zone.js +1 -1
- package/test-env/components/markdown_editor/markdown_editor_footer.js +1 -1
- package/test-env/components/markdown_editor/markdown_editor_toolbar.js +1 -1
- package/test-env/components/page/page_header/page_header_content.js +1 -1
- package/test-env/components/pagination/pagination_button.js +1 -1
- package/test-env/components/progress/progress.js +49 -11
- package/test-env/components/provider/provider.js +2 -2
- package/test-env/components/selectable/selectable_list/selectable_list.js +1 -1
- package/test-env/components/selectable/selectable_list/selectable_list_item.js +1 -1
- package/test-env/components/selectable/selectable_templates/selectable_template_sitewide.js +1 -1
- package/test-env/components/table/table_header_cell.js +1 -1
- package/test-env/components/table/table_row.styles.js +11 -6
- package/test-env/components/timeline/timeline_item_icon.js +1 -1
- package/test-env/components/toast/global_toast_list.js +1 -1
- package/test-env/components/toast/toast.js +1 -1
- package/test-env/components/tool_tip/icon_tip.js +1 -1
- package/test-env/services/color/vis_color_store.js +2 -2
- package/test-env/services/theme/context.js +2 -2
- package/test-env/themes/amsterdam/global_styling/variables/_components.js +305 -270
package/eui.d.ts
CHANGED
|
@@ -171,124 +171,13 @@ declare module '@elastic/eui/src/components/common' {
|
|
|
171
171
|
onClick?: MouseEventHandler<HTMLButtonElement>;
|
|
172
172
|
} & ButtonHTMLAttributes<HTMLButtonElement> & P;
|
|
173
173
|
|
|
174
|
-
}
|
|
175
|
-
declare module '@elastic/eui/src/services/theme/types' {
|
|
176
|
-
export { COLOR_MODES_STANDARD, COLOR_MODES_INVERSE, type EuiThemeColorModeInverse, type EuiThemeColorModeStandard, type EuiThemeColorMode, type ColorModeSwitch, type StrictColorModeSwitch, type EuiThemeShape, type EuiThemeSystem, type EuiThemeModifications, type ComputedThemeShape, type EuiThemeComputed, type EuiThemeNested, type EuiThemeHighContrastMode, type EuiThemeHighContrastModeProp, } from '@elastic/eui-theme-common';
|
|
177
|
-
|
|
178
174
|
}
|
|
179
175
|
declare module '@elastic/eui/src/services/theme/utils' {
|
|
180
176
|
export { DEFAULT_COLOR_MODE, isInverseColorMode, getColorMode, getOn, setOn, Computed, computed, getComputed, buildTheme, mergeDeep, } from '@elastic/eui-theme-common';
|
|
181
177
|
|
|
182
178
|
}
|
|
183
|
-
declare module '@elastic/eui/src/services/theme/
|
|
184
|
-
|
|
185
|
-
export const DEFAULTS: {
|
|
186
|
-
system: {
|
|
187
|
-
model: import("@elastic/eui-theme-common/lib/cjs/services/theme/types").EuiThemeShape;
|
|
188
|
-
root: import("@elastic/eui-theme-common/lib/cjs/services/theme/types").EuiThemeShape;
|
|
189
|
-
key: string;
|
|
190
|
-
};
|
|
191
|
-
modifications: {};
|
|
192
|
-
colorMode: "LIGHT";
|
|
193
|
-
highContrastMode: false;
|
|
194
|
-
};
|
|
195
|
-
export const EuiSystemContext: import("react").Context<EuiThemeSystem>;
|
|
196
|
-
export const EuiModificationsContext: import("react").Context<import("@elastic/eui-theme-common").RecursivePartial<import("@elastic/eui-theme-common").EuiThemeShapeBase & {
|
|
197
|
-
overrides?: import("@elastic/eui-theme-common")._EuiThemeOverrides;
|
|
198
|
-
}>>;
|
|
199
|
-
export const EuiColorModeContext: import("react").Context<EuiThemeColorModeStandard>;
|
|
200
|
-
export const EuiHighContrastModeContext: import("react").Context<EuiThemeHighContrastMode>;
|
|
201
|
-
export const defaultComputedTheme: EuiThemeComputed<import("@elastic/eui-theme-common/lib/cjs/services/theme/types").EuiThemeShape>;
|
|
202
|
-
export const EuiThemeContext: import("react").Context<EuiThemeComputed>;
|
|
203
|
-
export const EuiNestedThemeContext: import("react").Context<EuiThemeNested>;
|
|
204
|
-
|
|
205
|
-
}
|
|
206
|
-
declare module '@elastic/eui/src/services/theme/warning' {
|
|
207
|
-
type LEVELS = 'log' | 'warn' | 'error';
|
|
208
|
-
type ProviderCallback = (message: string | Error) => void; let providerWarning: LEVELS | ProviderCallback | undefined;
|
|
209
|
-
export const setEuiDevProviderWarning: (warningType: typeof providerWarning) => LEVELS | ProviderCallback | undefined;
|
|
210
|
-
export const getEuiDevProviderWarning: () => LEVELS | ProviderCallback | undefined;
|
|
211
|
-
export const emitEuiProviderWarning: (providerMessage: string) => void;
|
|
212
|
-
export {};
|
|
213
|
-
|
|
214
|
-
}
|
|
215
|
-
declare module '@elastic/eui/src/services/theme/hooks' {
|
|
216
|
-
import React from 'react';
|
|
217
|
-
import { type EuiThemeColorModeStandard, type EuiThemeHighContrastMode, type EuiThemeModifications, type EuiThemeComputed } from '@elastic/eui-theme-common';
|
|
218
|
-
/**
|
|
219
|
-
* Hook for function components
|
|
220
|
-
*/
|
|
221
|
-
export interface UseEuiTheme<T extends {} = {}> {
|
|
222
|
-
euiTheme: EuiThemeComputed<T>;
|
|
223
|
-
colorMode: EuiThemeColorModeStandard;
|
|
224
|
-
highContrastMode: EuiThemeHighContrastMode;
|
|
225
|
-
modifications: EuiThemeModifications<T>;
|
|
226
|
-
}
|
|
227
|
-
export const useEuiTheme: <T extends {} = {}>() => UseEuiTheme<T>;
|
|
228
|
-
/**
|
|
229
|
-
* HOC for class components
|
|
230
|
-
*/
|
|
231
|
-
export interface WithEuiThemeProps<P extends {} = {}> {
|
|
232
|
-
theme: UseEuiTheme<P>;
|
|
233
|
-
}
|
|
234
|
-
export const withEuiTheme: <T extends {} = {}, U extends {} = {}>(Component: React.ComponentType<T & WithEuiThemeProps<U>>) => React.ForwardRefExoticComponent<React.PropsWithoutRef<Omit<T, "theme">> & React.RefAttributes<Omit<T, "theme">>>;
|
|
235
|
-
/**
|
|
236
|
-
* Render prop alternative for complex class components
|
|
237
|
-
* Most useful for scenarios where a HOC may interfere with typing
|
|
238
|
-
*/
|
|
239
|
-
export const RenderWithEuiTheme: <T extends {} = {}>({ children, }: {
|
|
240
|
-
children: (theme: UseEuiTheme) => React.ReactElement;
|
|
241
|
-
}) => React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
242
|
-
/**
|
|
243
|
-
* Minor syntactical sugar hook for theme CSS variables.
|
|
244
|
-
* Primarily meant for internal EUI usage.
|
|
245
|
-
*/
|
|
246
|
-
export const useEuiThemeCSSVariables: () => {
|
|
247
|
-
setGlobalCSSVariables: Function;
|
|
248
|
-
globalCSSVariables: import("@emotion/serialize").CSSObject | undefined;
|
|
249
|
-
setNearestThemeCSSVariables: Function;
|
|
250
|
-
themeCSSVariables: import("@emotion/serialize").CSSObject | undefined;
|
|
251
|
-
};
|
|
252
|
-
/**
|
|
253
|
-
* Checks whether the current active `colorMode` is set to `DARK`;
|
|
254
|
-
* In case of nested providers this returns the value of the nearest provider context.
|
|
255
|
-
*/
|
|
256
|
-
export const useIsDarkMode: () => boolean;
|
|
257
|
-
|
|
258
|
-
}
|
|
259
|
-
declare module '@elastic/eui/src/services/throttle' {
|
|
260
|
-
export const throttle: (fn: (...args: any[]) => void, wait?: number) => (...args: any[]) => void;
|
|
261
|
-
|
|
262
|
-
}
|
|
263
|
-
declare module '@elastic/eui/src/services/breakpoint/_sorting' {
|
|
264
|
-
import { _EuiThemeBreakpoints } from '@elastic/eui/src/global_styling/variables/breakpoint';
|
|
265
|
-
export const sortMapByLargeToSmallValues: (breakpointsMap: _EuiThemeBreakpoints) => _EuiThemeBreakpoints;
|
|
266
|
-
export const sortMapBySmallToLargeValues: (breakpointsMap: _EuiThemeBreakpoints) => _EuiThemeBreakpoints;
|
|
267
|
-
|
|
268
|
-
}
|
|
269
|
-
declare module '@elastic/eui/src/services/breakpoint/current_breakpoint' {
|
|
270
|
-
import React, { FunctionComponent, PropsWithChildren } from 'react';
|
|
271
|
-
import { _EuiThemeBreakpoint } from '@elastic/eui/src/global_styling/variables/breakpoint';
|
|
272
|
-
type CurrentEuiBreakpoint = _EuiThemeBreakpoint | undefined;
|
|
273
|
-
export const CurrentEuiBreakpointContext: React.Context<CurrentEuiBreakpoint>;
|
|
274
|
-
/**
|
|
275
|
-
* Returns the current breakpoint based on window width.
|
|
276
|
-
* Typically only called by the top-level `EuiProvider` (to reduce the number
|
|
277
|
-
* of window resize listeners on the page). Also conditionally called if a
|
|
278
|
-
* nested `EuiThemeProvider` defines a `modify.breakpoint` override
|
|
279
|
-
*/
|
|
280
|
-
export const CurrentEuiBreakpointProvider: FunctionComponent<PropsWithChildren>;
|
|
281
|
-
export {};
|
|
282
|
-
|
|
283
|
-
}
|
|
284
|
-
declare module '@elastic/eui/src/services/breakpoint/current_breakpoint_hook' {
|
|
285
|
-
/**
|
|
286
|
-
* Hook util / syntactical sugar for useContext()
|
|
287
|
-
*
|
|
288
|
-
* This hook is in its own separate file to make mocking it
|
|
289
|
-
* as a testenv easy for Jest unit tests
|
|
290
|
-
*/
|
|
291
|
-
export const useCurrentEuiBreakpoint: () => string | undefined;
|
|
179
|
+
declare module '@elastic/eui/src/services/theme/types' {
|
|
180
|
+
export { COLOR_MODES_STANDARD, COLOR_MODES_INVERSE, type EuiThemeColorModeInverse, type EuiThemeColorModeStandard, type EuiThemeColorMode, type ColorModeSwitch, type StrictColorModeSwitch, type EuiThemeShape, type EuiThemeSystem, type EuiThemeModifications, type ComputedThemeShape, type EuiThemeComputed, type EuiThemeNested, type EuiThemeHighContrastMode, type EuiThemeHighContrastModeProp, } from '@elastic/eui-theme-common';
|
|
292
181
|
|
|
293
182
|
}
|
|
294
183
|
declare module '@elastic/eui/src/services/emotion/clone_element' {
|
|
@@ -387,6 +276,10 @@ declare module '@elastic/eui/src/services/hooks/useDeepEqual' {
|
|
|
387
276
|
*/
|
|
388
277
|
export const useDeepEqual: <T = Record<string, any> | any[] | undefined>(object: T) => T;
|
|
389
278
|
|
|
279
|
+
}
|
|
280
|
+
declare module '@elastic/eui/src/services/throttle' {
|
|
281
|
+
export const throttle: (fn: (...args: any[]) => void, wait?: number) => (...args: any[]) => void;
|
|
282
|
+
|
|
390
283
|
}
|
|
391
284
|
declare module '@elastic/eui/src/services/hooks/useMouseMove' {
|
|
392
285
|
import { MouseEvent, TouchEvent } from 'react';
|
|
@@ -409,6 +302,15 @@ declare module '@elastic/eui/src/services/hooks' {
|
|
|
409
302
|
export * from '@elastic/eui/src/services/hooks/useMouseMove';
|
|
410
303
|
export * from '@elastic/eui/src/services/hooks/useUpdateEffect';
|
|
411
304
|
|
|
305
|
+
}
|
|
306
|
+
declare module '@elastic/eui/src/services/theme/warning' {
|
|
307
|
+
type LEVELS = 'log' | 'warn' | 'error';
|
|
308
|
+
type ProviderCallback = (message: string | Error) => void; let providerWarning: LEVELS | ProviderCallback | undefined;
|
|
309
|
+
export const setEuiDevProviderWarning: (warningType: typeof providerWarning) => LEVELS | ProviderCallback | undefined;
|
|
310
|
+
export const getEuiDevProviderWarning: () => LEVELS | ProviderCallback | undefined;
|
|
311
|
+
export const emitEuiProviderWarning: (providerMessage: string) => void;
|
|
312
|
+
export {};
|
|
313
|
+
|
|
412
314
|
}
|
|
413
315
|
declare module '@elastic/eui/src/services/theme/style_memoization' {
|
|
414
316
|
import React, { FunctionComponent, PropsWithChildren } from 'react';
|
|
@@ -605,6 +507,11 @@ declare module '@elastic/eui/src/services/color/color_palette' {
|
|
|
605
507
|
*/
|
|
606
508
|
categorical?: boolean): string[];
|
|
607
509
|
|
|
510
|
+
}
|
|
511
|
+
declare module '@elastic/eui/src/themes/amsterdam/global_styling/variables/_colors_vis_light' {
|
|
512
|
+
import { _EuiThemeVisColors } from '@elastic/eui-theme-common';
|
|
513
|
+
export const colorVisLight: _EuiThemeVisColors;
|
|
514
|
+
|
|
608
515
|
}
|
|
609
516
|
declare module '@elastic/eui/src/services/color/vis_color_store' {
|
|
610
517
|
import { _EuiVisColorStore } from '@elastic/eui-theme-common';
|
|
@@ -1243,7 +1150,7 @@ declare module '@elastic/eui/src/global_styling/mixins/_padding' {
|
|
|
1243
1150
|
*/
|
|
1244
1151
|
export const euiPaddingSize: ({ euiTheme }: UseEuiTheme, size: EuiPaddingSize) => string | null;
|
|
1245
1152
|
export const useEuiPaddingSize: (size: EuiPaddingSize) => string;
|
|
1246
|
-
export const useEuiPaddingCSS: (side?: LogicalSides) => Record<"s" | "
|
|
1153
|
+
export const useEuiPaddingCSS: (side?: LogicalSides) => Record<"s" | "none" | "xs" | "m" | "l" | "xl", SerializedStyles>;
|
|
1247
1154
|
|
|
1248
1155
|
}
|
|
1249
1156
|
declare module '@elastic/eui/src/global_styling/mixins/_states' {
|
|
@@ -1293,6 +1200,12 @@ declare module '@elastic/eui/src/global_styling/mixins/_typography' {
|
|
|
1293
1200
|
*/
|
|
1294
1201
|
export const euiNumberFormat: ({ euiTheme }: UseEuiTheme) => string;
|
|
1295
1202
|
|
|
1203
|
+
}
|
|
1204
|
+
declare module '@elastic/eui/src/services/breakpoint/_sorting' {
|
|
1205
|
+
import { _EuiThemeBreakpoints } from '@elastic/eui/src/global_styling/variables/breakpoint';
|
|
1206
|
+
export const sortMapByLargeToSmallValues: (breakpointsMap: _EuiThemeBreakpoints) => _EuiThemeBreakpoints;
|
|
1207
|
+
export const sortMapBySmallToLargeValues: (breakpointsMap: _EuiThemeBreakpoints) => _EuiThemeBreakpoints;
|
|
1208
|
+
|
|
1296
1209
|
}
|
|
1297
1210
|
declare module '@elastic/eui/src/global_styling/variables/animations' {
|
|
1298
1211
|
export { euiCanAnimate, euiCantAnimate, EuiThemeAnimationSpeeds, EuiThemeAnimationEasings, type _EuiThemeAnimationSpeed, type _EuiThemeAnimationSpeeds, type _EuiThemeAnimationEasing, type _EuiThemeAnimationEasings, type _EuiThemeAnimation, } from '@elastic/eui-theme-common';
|
|
@@ -2613,7 +2526,6 @@ declare module '@elastic/eui/src/components/icon/icon_map' {
|
|
|
2613
2526
|
heatmap: string;
|
|
2614
2527
|
help: string;
|
|
2615
2528
|
home: string;
|
|
2616
|
-
iInCircle: string;
|
|
2617
2529
|
info: string;
|
|
2618
2530
|
image: string;
|
|
2619
2531
|
importAction: string;
|
|
@@ -2781,7 +2693,6 @@ declare module '@elastic/eui/src/components/icon/icon_map' {
|
|
|
2781
2693
|
plusInSquare: string;
|
|
2782
2694
|
popout: string;
|
|
2783
2695
|
push: string;
|
|
2784
|
-
questionInCircle: string;
|
|
2785
2696
|
question: string;
|
|
2786
2697
|
quote: string;
|
|
2787
2698
|
readOnly: string;
|
|
@@ -3015,7 +2926,7 @@ declare module '@elastic/eui/src/components/icon/icon' {
|
|
|
3015
2926
|
import { WithEuiStylesMemoizerProps } from '@elastic/eui/src/services';
|
|
3016
2927
|
export { COLORS } from '@elastic/eui/src/components/icon/named_colors';
|
|
3017
2928
|
import { NamedColor } from '@elastic/eui/src/components/icon/named_colors';
|
|
3018
|
-
export const TYPES: ("string" | "number" | "function" | "article" | "code" | "link" | "menu" | "search" | "section" | "filter" | "image" | "stop" | "at" | "key" | "
|
|
2929
|
+
export const TYPES: ("string" | "number" | "function" | "article" | "code" | "link" | "menu" | "search" | "section" | "filter" | "image" | "stop" | "at" | "key" | "copy" | "cut" | "error" | "pause" | "play" | "warning" | "color" | "push" | "temperature" | "refresh" | "scale" | "wordWrap" | "grid" | "empty" | "invert" | "grab" | "help" | "move" | "spaces" | "dot" | "alert" | "document" | "list" | "email" | "annotation" | "container" | "accessibility" | "aggregate" | "analyzeEvent" | "apps" | "arrowStart" | "arrowEnd" | "asterisk" | "flask" | "bell" | "bellSlash" | "beta" | "bolt" | "branch" | "branchUser" | "broom" | "brush" | "bug" | "bullseye" | "calendar" | "check" | "checkCircle" | "checkInCircleFilled" | "cheer" | "clickLeft" | "clickRight" | "clock" | "clockCounter" | "cloudDrizzle" | "cloudStormy" | "cloudSunny" | "cluster" | "comment" | "compute" | "console" | "continuityAbove" | "continuityAboveBelow" | "continuityBelow" | "continuityWithin" | "contrast" | "contrastHigh" | "controls" | "cross" | "crosshairs" | "currency" | "database" | "desktop" | "diff" | "documentEdit" | "documentation" | "documents" | "dotInCircle" | "doubleArrowLeft" | "doubleArrowRight" | "download" | "editorDistributeHorizontal" | "editorDistributeVertical" | "editorItemAlignBottom" | "editorItemAlignCenter" | "editorItemAlignLeft" | "editorItemAlignMiddle" | "editorItemAlignRight" | "editorItemAlignTop" | "editorPositionBottomLeft" | "editorPositionBottomRight" | "editorPositionTopLeft" | "editorPositionTopRight" | "endpoint" | "eql" | "eraser" | "errorFilled" | "esqlVis" | "exit" | "expand" | "expandMini" | "export" | "eye" | "filterExclude" | "filterIgnore" | "filterInclude" | "filterInCircle" | "flag" | "fold" | "frameNext" | "framePrevious" | "fullScreenExit" | "gear" | "readOnly" | "globe" | "grabOmnidirectional" | "gradient" | "heart" | "heatmap" | "home" | "info" | "index" | "indexTemporary" | "infinity" | "inputOutput" | "inspect" | "ip" | "keyboard" | "kubernetesNode" | "kubernetesPod" | "launch" | "layers" | "lettering" | "lineDashed" | "lineDotted" | "lineSolid" | "lock" | "lockOpen" | "magnet" | "magnifyWithExclamation" | "magnifyWithMinus" | "magnifyWithPlus" | "memory" | "menuDown" | "menuLeft" | "menuRight" | "menuUp" | "merge" | "minimize" | "minus" | "mobile" | "moon" | "namespace" | "nested" | "node" | "offline" | "online" | "package" | "pageSelect" | "pagesSelect" | "palette" | "partial" | "payment" | "pencil" | "percent" | "pin" | "pipeBreaks" | "pipeNoBreaks" | "pivot" | "playFilled" | "plugs" | "plus" | "popout" | "question" | "quote" | "reporter" | "save" | "securitySignal" | "securitySignalDetected" | "securitySignalResolved" | "sessionViewer" | "shard" | "share" | "snowflake" | "sortAscending" | "sortDescending" | "sortLeft" | "sortRight" | "sortable" | "sparkles" | "starPlusEmpty" | "starPlusFilled" | "stats" | "storage" | "submodule" | "sun" | "symlink" | "tableOfContents" | "tag" | "tear" | "timeline" | "timelineWithArrow" | "timeRefresh" | "timeslider" | "training" | "transitionLeftIn" | "transitionLeftOut" | "transitionTopIn" | "transitionTopOut" | "trash" | "unfold" | "unlink" | "user" | "users" | "vector" | "videoPlayer" | "warningFilled" | "web" | "wordWrapDisabled" | "wrench" | "tokenAlias" | "tokenAnnotation" | "tokenArray" | "tokenBinary" | "tokenBoolean" | "tokenClass" | "tokenCompletionSuggester" | "tokenConstant" | "tokenDate" | "tokenDimension" | "tokenElement" | "tokenEnum" | "tokenEnumMember" | "tokenEvent" | "tokenException" | "tokenField" | "tokenFile" | "tokenFlattened" | "tokenFunction" | "tokenGeo" | "tokenHistogram" | "tokenInterface" | "tokenIP" | "tokenJoin" | "tokenKey" | "tokenKeyword" | "tokenMethod" | "tokenMetricCounter" | "tokenMetricGauge" | "tokenModule" | "tokenNamespace" | "tokenNested" | "tokenNull" | "tokenNumber" | "tokenObject" | "tokenOperator" | "tokenPackage" | "tokenParameter" | "tokenPercolator" | "tokenProperty" | "tokenRange" | "tokenRankFeature" | "tokenRankFeatures" | "tokenRepo" | "tokenSearchType" | "tokenSemanticText" | "tokenShape" | "tokenString" | "tokenStruct" | "tokenSymbol" | "tokenTag" | "tokenText" | "tokenTokenCount" | "tokenVariable" | "tokenVectorDense" | "tokenVectorSparse" | "addDataApp" | "advancedSettingsApp" | "agentApp" | "anomalyChart" | "anomalySwimLane" | "apmApp" | "apmTrace" | "appSearchApp" | "arrowDown" | "arrowLeft" | "arrowRight" | "arrowUp" | "auditbeatApp" | "beaker" | "boxesHorizontal" | "boxesVertical" | "canvasApp" | "casesApp" | "changePointDetection" | "classificationJob" | "codeApp" | "consoleApp" | "controlsHorizontal" | "controlsVertical" | "copyClipboard" | "createAdvancedJob" | "createGenericJob" | "createGeoJob" | "createMultiMetricJob" | "createPopulationJob" | "createSingleMetricJob" | "crossClusterReplicationApp" | "crossInCircle" | "dashboardApp" | "dataVisualizer" | "devToolsApp" | "discoverApp" | "discuss" | "editorAlignCenter" | "editorAlignLeft" | "editorAlignRight" | "editorBold" | "editorChecklist" | "editorCodeBlock" | "editorComment" | "editorHeading" | "editorItalic" | "editorLink" | "editorOrderedList" | "editorRedo" | "editorStrike" | "editorTable" | "editorUnderline" | "editorUndo" | "editorUnorderedList" | "emsApp" | "exportAction" | "eyeClosed" | "faceHappy" | "faceNeutral" | "faceSad" | "fieldStatistics" | "filebeatApp" | "fleetApp" | "folderCheck" | "folderClosed" | "folderExclamation" | "folderOpen" | "fullScreen" | "gisApp" | "glasses" | "grabHorizontal" | "graphApp" | "grokApp" | "heartbeatApp" | "importAction" | "indexClose" | "indexEdit" | "indexFlush" | "indexManagementApp" | "indexMapping" | "indexOpen" | "indexPatternApp" | "indexRollupApp" | "indexRuntime" | "indexSettings" | "kqlField" | "kqlFunction" | "kqlOperand" | "kqlSelector" | "kqlValue" | "lensApp" | "listAdd" | "logPatternAnalysis" | "logRateAnalysis" | "logoAWS" | "logoAWSMono" | "logoAerospike" | "logoApache" | "logoAppSearch" | "logoAzure" | "logoAzureMono" | "logoBeats" | "logoBusinessAnalytics" | "logoCeph" | "logoCloud" | "logoCloudEnterprise" | "logoCode" | "logoCodesandbox" | "logoCouchbase" | "logoDocker" | "logoDropwizard" | "logoElastic" | "logoElasticStack" | "logoElasticsearch" | "logoEnterpriseSearch" | "logoEtcd" | "logoGCP" | "logoGCPMono" | "logoGithub" | "logoGmail" | "logoGolang" | "logoGoogleG" | "logoHAproxy" | "logoIBM" | "logoIBMMono" | "logoKafka" | "logoKibana" | "logoKubernetes" | "logoLogging" | "logoLogstash" | "logoMaps" | "logoMemcached" | "logoMetrics" | "logoMongodb" | "logoMySQL" | "logoNginx" | "logoObservability" | "logoOsquery" | "logoPhp" | "logoPostgres" | "logoPrometheus" | "logoRabbitmq" | "logoRedis" | "logoSecurity" | "logoSiteSearch" | "logoSketch" | "logoSlack" | "logoUptime" | "logoVulnerabilityManagement" | "logoWebhook" | "logoWindows" | "logoWorkplaceSearch" | "logsApp" | "logstashFilter" | "logstashIf" | "logstashInput" | "logstashOutput" | "logstashQueue" | "machineLearningApp" | "managementApp" | "mapMarker" | "metricbeatApp" | "metricsApp" | "minusInCircle" | "minusInCircleFilled" | "minusInSquare" | "monitoringApp" | "newChat" | "notebookApp" | "outlierDetectionJob" | "packetbeatApp" | "paperClip" | "pinFilled" | "pipelineApp" | "plusInCircle" | "plusInCircleFilled" | "plusInSquare" | "recentlyViewedApp" | "regressionJob" | "reportingApp" | "returnKey" | "savedObjectsApp" | "searchProfilerApp" | "securityAnalyticsApp" | "securityApp" | "singleMetricViewer" | "sortDown" | "sortUp" | "spacesApp" | "sqlApp" | "starEmpty" | "starEmptySpace" | "starFilled" | "starFilledSpace" | "starMinusEmpty" | "starMinusFilled" | "stopFilled" | "stopSlash" | "swatchInput" | "tableDensityCompact" | "tableDensityExpanded" | "tableDensityNormal" | "timelionApp" | "upgradeAssistantApp" | "uptimeApp" | "userAvatar" | "usersRolesApp" | "visArea" | "visAreaStacked" | "visBarHorizontal" | "visBarHorizontalStacked" | "visBarVertical" | "visBarVerticalStacked" | "visGauge" | "visGoal" | "visLine" | "visMapCoordinate" | "visMapRegion" | "visMetric" | "visPie" | "visTable" | "visTagCloud" | "visText" | "visTimelion" | "visVega" | "visVisualBuilder" | "visualizeApp" | "vulnerabilityManagementApp" | "watchesApp" | "workplaceSearchApp" | "tokenDenseVector")[];
|
|
3019
2930
|
export type EuiIconType = keyof typeof typeToPathMap;
|
|
3020
2931
|
export type IconType = EuiIconType | string | ComponentType;
|
|
3021
2932
|
export type IconColor = string | NamedColor;
|
|
@@ -5843,7 +5754,7 @@ declare module '@elastic/eui/src/components/panel/panel' {
|
|
|
5843
5754
|
import { ButtonHTMLAttributes, FunctionComponent, HTMLAttributes, Ref } from 'react';
|
|
5844
5755
|
import { _EuiBackgroundColor, EuiPaddingSize } from '@elastic/eui/src/global_styling';
|
|
5845
5756
|
import { CommonProps, ExclusiveUnion } from '@elastic/eui/src/components/common';
|
|
5846
|
-
export const SIZES: readonly ["none", "xs", "s", "m", "l", "xl"]; const _SIZES: ("s" | "
|
|
5757
|
+
export const SIZES: readonly ["none", "xs", "s", "m", "l", "xl"]; const _SIZES: ("s" | "none" | "xs" | "m" | "l" | "xl")[];
|
|
5847
5758
|
export type PanelPaddingSize = (typeof _SIZES)[number];
|
|
5848
5759
|
export const BORDER_RADII: readonly ["none", "m"];
|
|
5849
5760
|
export type PanelBorderRadius = (typeof BORDER_RADII)[number];
|
|
@@ -6953,71 +6864,6 @@ declare module '@elastic/eui/src/services/color/stepped_gradient' {
|
|
|
6953
6864
|
import { PaletteColorStop } from '@elastic/eui/src/components/color_picker/color_palette_picker';
|
|
6954
6865
|
export const getSteppedGradient: (colors: PaletteColorStop[], steps: number) => string[];
|
|
6955
6866
|
|
|
6956
|
-
}
|
|
6957
|
-
declare module '@elastic/eui/src/services/color/manipulation' {
|
|
6958
|
-
import { EuiThemeColorModeStandard } from '@elastic/eui/src/services/theme';
|
|
6959
|
-
/**
|
|
6960
|
-
* Makes a color more transparent.
|
|
6961
|
-
* @param color - Color to manipulate
|
|
6962
|
-
* @param alpha - alpha channel value. From 0-1.
|
|
6963
|
-
*/
|
|
6964
|
-
export const transparentize: (color: string, alpha: number) => string;
|
|
6965
|
-
/**
|
|
6966
|
-
* Mixes a provided color with white.
|
|
6967
|
-
* @param color - Color to mix with white
|
|
6968
|
-
* @param ratio - Mix weight. From 0-1. Larger value indicates more white.
|
|
6969
|
-
*/
|
|
6970
|
-
export const tint: (color: string, ratio: number) => string;
|
|
6971
|
-
/**
|
|
6972
|
-
* Mixes a provided color with black.
|
|
6973
|
-
* @param color - Color to mix with black
|
|
6974
|
-
* @param ratio - Mix weight. From 0-1. Larger value indicates more black.
|
|
6975
|
-
*/
|
|
6976
|
-
export const shade: (color: string, ratio: number) => string;
|
|
6977
|
-
/**
|
|
6978
|
-
* Returns the tinted color for light mode and shaded color for dark mode
|
|
6979
|
-
* @param color - Color to mix with white
|
|
6980
|
-
* @param ratio - Mix weight. From 0-1. Larger value indicates more white.
|
|
6981
|
-
* @param colorMode - Light or dark only
|
|
6982
|
-
*/
|
|
6983
|
-
export const tintOrShade: (color: string, ratio: number, colorMode: EuiThemeColorModeStandard) => string;
|
|
6984
|
-
/**
|
|
6985
|
-
* Returns the shaded color for light mode and tinted color for dark mode
|
|
6986
|
-
* @param color - Color to mix with white
|
|
6987
|
-
* @param ratio - Mix weight. From 0-1. Larger value indicates more white.
|
|
6988
|
-
* @param colorMode - Light or dark only
|
|
6989
|
-
*/
|
|
6990
|
-
export const shadeOrTint: (color: string, ratio: number, colorMode: EuiThemeColorModeStandard) => string;
|
|
6991
|
-
/**
|
|
6992
|
-
* Increases the saturation of a color by manipulating the hsl saturation.
|
|
6993
|
-
* @param color - Color to manipulate
|
|
6994
|
-
* @param amount - Amount to change in absolute terms. 0-1.
|
|
6995
|
-
*/
|
|
6996
|
-
export const saturate: (color: string, amount: number) => string;
|
|
6997
|
-
/**
|
|
6998
|
-
* Decreases the saturation of a color by manipulating the hsl saturation.
|
|
6999
|
-
* @param color - Color to manipulate
|
|
7000
|
-
* @param amount - Amount to change in absolute terms. 0-1.
|
|
7001
|
-
*/
|
|
7002
|
-
export const desaturate: (color: string, amount: number) => string;
|
|
7003
|
-
/**
|
|
7004
|
-
* Returns the lightness value of a color. 0-100
|
|
7005
|
-
* @param color
|
|
7006
|
-
*/
|
|
7007
|
-
export const lightness: (color: string) => number;
|
|
7008
|
-
/**
|
|
7009
|
-
* Returns the darken value of a color. 0-100
|
|
7010
|
-
* @param color - Color to manipulate
|
|
7011
|
-
* @param amount - Amount to change in absolute terms. 0-1.
|
|
7012
|
-
*/
|
|
7013
|
-
export const darken: (color: string, amount: number) => string;
|
|
7014
|
-
/**
|
|
7015
|
-
* Returns the brighten value of a color. 0-100
|
|
7016
|
-
* @param color - Color to manipulate
|
|
7017
|
-
* @param amount - Amount to change in absolute terms. 0-1.
|
|
7018
|
-
*/
|
|
7019
|
-
export const brighten: (color: string, amount: number) => string;
|
|
7020
|
-
|
|
7021
6867
|
}
|
|
7022
6868
|
declare module '@elastic/eui/src/services/color/contrast' {
|
|
7023
6869
|
export const wcagContrastMin = 4.5;
|
|
@@ -7122,51 +6968,350 @@ declare module '@elastic/eui/src/services/theme' {
|
|
|
7122
6968
|
export * from '@elastic/eui/src/services/theme/theme_variant';
|
|
7123
6969
|
|
|
7124
6970
|
}
|
|
7125
|
-
declare module '@elastic/eui/src/services/
|
|
7126
|
-
import {
|
|
6971
|
+
declare module '@elastic/eui/src/services/color/manipulation' {
|
|
6972
|
+
import { EuiThemeColorModeStandard } from '@elastic/eui/src/services/theme';
|
|
7127
6973
|
/**
|
|
7128
|
-
*
|
|
7129
|
-
*
|
|
7130
|
-
*
|
|
7131
|
-
*
|
|
7132
|
-
* @param {EuiThemeBreakpoint[]} sizes An array of named EUI breakpoints
|
|
7133
|
-
* @param {boolean} isResponsive Some components have the option to turn off responsive behavior.
|
|
7134
|
-
* Since hooks can't be called conditionally, it's easier to pass the condition into the hook
|
|
7135
|
-
* @returns {boolean} Returns `true` if current breakpoint name is included in `sizes`
|
|
6974
|
+
* Makes a color more transparent.
|
|
6975
|
+
* @param color - Color to manipulate
|
|
6976
|
+
* @param alpha - alpha channel value. From 0-1.
|
|
7136
6977
|
*/
|
|
7137
|
-
export const
|
|
6978
|
+
export const transparentize: (color: string, alpha: number) => string;
|
|
7138
6979
|
/**
|
|
7139
|
-
*
|
|
7140
|
-
*
|
|
7141
|
-
*
|
|
7142
|
-
*
|
|
7143
|
-
* @param {EuiThemeBreakpoint} max The named max breakpoint to check against
|
|
7144
|
-
* @returns {boolean} Will return `false` if it can't find a value for the `max` breakpoint
|
|
6980
|
+
* Mixes a provided color with white.
|
|
6981
|
+
* @param color - Color to mix with white
|
|
6982
|
+
* @param ratio - Mix weight. From 0-1. Larger value indicates more white.
|
|
7145
6983
|
*/
|
|
7146
|
-
export
|
|
6984
|
+
export const tint: (color: string, ratio: number) => string;
|
|
7147
6985
|
/**
|
|
7148
|
-
*
|
|
7149
|
-
*
|
|
7150
|
-
*
|
|
7151
|
-
*
|
|
7152
|
-
* @param {EuiThemeBreakpoint} min The named min breakpoint to check against
|
|
7153
|
-
* @returns {boolean} Will return `false` if it can't find a value for the `min` breakpoint
|
|
6986
|
+
* Mixes a provided color with black.
|
|
6987
|
+
* @param color - Color to mix with black
|
|
6988
|
+
* @param ratio - Mix weight. From 0-1. Larger value indicates more black.
|
|
7154
6989
|
*/
|
|
7155
|
-
export
|
|
7156
|
-
|
|
7157
|
-
|
|
7158
|
-
|
|
7159
|
-
|
|
7160
|
-
|
|
7161
|
-
|
|
7162
|
-
export
|
|
7163
|
-
|
|
7164
|
-
|
|
7165
|
-
|
|
7166
|
-
|
|
7167
|
-
|
|
7168
|
-
|
|
7169
|
-
|
|
6990
|
+
export const shade: (color: string, ratio: number) => string;
|
|
6991
|
+
/**
|
|
6992
|
+
* Returns the tinted color for light mode and shaded color for dark mode
|
|
6993
|
+
* @param color - Color to mix with white
|
|
6994
|
+
* @param ratio - Mix weight. From 0-1. Larger value indicates more white.
|
|
6995
|
+
* @param colorMode - Light or dark only
|
|
6996
|
+
*/
|
|
6997
|
+
export const tintOrShade: (color: string, ratio: number, colorMode: EuiThemeColorModeStandard) => string;
|
|
6998
|
+
/**
|
|
6999
|
+
* Returns the shaded color for light mode and tinted color for dark mode
|
|
7000
|
+
* @param color - Color to mix with white
|
|
7001
|
+
* @param ratio - Mix weight. From 0-1. Larger value indicates more white.
|
|
7002
|
+
* @param colorMode - Light or dark only
|
|
7003
|
+
*/
|
|
7004
|
+
export const shadeOrTint: (color: string, ratio: number, colorMode: EuiThemeColorModeStandard) => string;
|
|
7005
|
+
/**
|
|
7006
|
+
* Increases the saturation of a color by manipulating the hsl saturation.
|
|
7007
|
+
* @param color - Color to manipulate
|
|
7008
|
+
* @param amount - Amount to change in absolute terms. 0-1.
|
|
7009
|
+
*/
|
|
7010
|
+
export const saturate: (color: string, amount: number) => string;
|
|
7011
|
+
/**
|
|
7012
|
+
* Decreases the saturation of a color by manipulating the hsl saturation.
|
|
7013
|
+
* @param color - Color to manipulate
|
|
7014
|
+
* @param amount - Amount to change in absolute terms. 0-1.
|
|
7015
|
+
*/
|
|
7016
|
+
export const desaturate: (color: string, amount: number) => string;
|
|
7017
|
+
/**
|
|
7018
|
+
* Returns the lightness value of a color. 0-100
|
|
7019
|
+
* @param color
|
|
7020
|
+
*/
|
|
7021
|
+
export const lightness: (color: string) => number;
|
|
7022
|
+
/**
|
|
7023
|
+
* Returns the darken value of a color. 0-100
|
|
7024
|
+
* @param color - Color to manipulate
|
|
7025
|
+
* @param amount - Amount to change in absolute terms. 0-1.
|
|
7026
|
+
*/
|
|
7027
|
+
export const darken: (color: string, amount: number) => string;
|
|
7028
|
+
/**
|
|
7029
|
+
* Returns the brighten value of a color. 0-100
|
|
7030
|
+
* @param color - Color to manipulate
|
|
7031
|
+
* @param amount - Amount to change in absolute terms. 0-1.
|
|
7032
|
+
*/
|
|
7033
|
+
export const brighten: (color: string, amount: number) => string;
|
|
7034
|
+
|
|
7035
|
+
}
|
|
7036
|
+
declare module '@elastic/eui/src/themes/amsterdam/global_styling/variables/_colors_vis_dark' {
|
|
7037
|
+
import { _EuiThemeVisColors } from '@elastic/eui-theme-common';
|
|
7038
|
+
export const colorVisDark: _EuiThemeVisColors;
|
|
7039
|
+
|
|
7040
|
+
}
|
|
7041
|
+
declare module '@elastic/eui/src/themes/amsterdam/global_styling/variables/_colors_severity' {
|
|
7042
|
+
/**
|
|
7043
|
+
* These are not actually used, but we map them to ensure token parity.
|
|
7044
|
+
* They are mapped to other vis colors
|
|
7045
|
+
*/
|
|
7046
|
+
export const severityColors: {
|
|
7047
|
+
unknown: string;
|
|
7048
|
+
neutral: string;
|
|
7049
|
+
success: string;
|
|
7050
|
+
warning: string;
|
|
7051
|
+
risk: string;
|
|
7052
|
+
danger: string;
|
|
7053
|
+
};
|
|
7054
|
+
|
|
7055
|
+
}
|
|
7056
|
+
declare module '@elastic/eui/src/themes/amsterdam/global_styling/variables/_colors' {
|
|
7057
|
+
import { _EuiThemeColors, _EuiThemeBrandColors, _EuiThemeBrandTextColors, _EuiThemeShadeColors, _EuiThemeSpecialColors, _EuiThemeTextColors, _EuiThemeColorsMode, _EuiThemeBackgroundColors, _EuiThemeBorderColors, _EuiThemeTransparentBackgroundColors } from '@elastic/eui-theme-common';
|
|
7058
|
+
export const brand_colors: _EuiThemeBrandColors;
|
|
7059
|
+
export const brand_text_colors: _EuiThemeBrandTextColors;
|
|
7060
|
+
export const shade_colors: _EuiThemeShadeColors;
|
|
7061
|
+
export const special_colors: _EuiThemeSpecialColors;
|
|
7062
|
+
export const text_colors: _EuiThemeTextColors;
|
|
7063
|
+
export const background_colors: _EuiThemeBackgroundColors;
|
|
7064
|
+
export const transparent_background_colors: _EuiThemeTransparentBackgroundColors;
|
|
7065
|
+
export const border_colors: _EuiThemeBorderColors;
|
|
7066
|
+
export const light_colors: _EuiThemeColorsMode;
|
|
7067
|
+
export const dark_shades: _EuiThemeShadeColors;
|
|
7068
|
+
export const dark_background_colors: _EuiThemeBackgroundColors;
|
|
7069
|
+
export const dark_transparent_background_colors: _EuiThemeTransparentBackgroundColors;
|
|
7070
|
+
export const dark_border_colors: _EuiThemeBorderColors;
|
|
7071
|
+
export const dark_colors_ams: _EuiThemeColorsMode;
|
|
7072
|
+
export const colors: _EuiThemeColors;
|
|
7073
|
+
|
|
7074
|
+
}
|
|
7075
|
+
declare module '@elastic/eui/src/themes/amsterdam/global_styling/variables/_animation' {
|
|
7076
|
+
import { _EuiThemeAnimationSpeeds, _EuiThemeAnimationEasings, _EuiThemeAnimation } from '@elastic/eui/src/global_styling/variables/animations';
|
|
7077
|
+
export const animation_speed: _EuiThemeAnimationSpeeds;
|
|
7078
|
+
export const animation_ease: _EuiThemeAnimationEasings;
|
|
7079
|
+
export const animation: _EuiThemeAnimation;
|
|
7080
|
+
|
|
7081
|
+
}
|
|
7082
|
+
declare module '@elastic/eui/src/themes/amsterdam/global_styling/variables/_breakpoint' {
|
|
7083
|
+
export { breakpoint } from '@elastic/eui-theme-common';
|
|
7084
|
+
|
|
7085
|
+
}
|
|
7086
|
+
declare module '@elastic/eui/src/themes/amsterdam/global_styling/variables/_size' {
|
|
7087
|
+
import { _EuiThemeBase, _EuiThemeSizes } from '@elastic/eui/src/global_styling/variables';
|
|
7088
|
+
export const base: _EuiThemeBase;
|
|
7089
|
+
export const size: _EuiThemeSizes;
|
|
7090
|
+
|
|
7091
|
+
}
|
|
7092
|
+
declare module '@elastic/eui/src/themes/amsterdam/global_styling/variables/_borders' {
|
|
7093
|
+
import { _EuiThemeBorder } from '@elastic/eui/src/global_styling/variables';
|
|
7094
|
+
export const border: _EuiThemeBorder;
|
|
7095
|
+
|
|
7096
|
+
}
|
|
7097
|
+
declare module '@elastic/eui/src/themes/amsterdam/global_styling/variables/_levels' {
|
|
7098
|
+
import { _EuiThemeLevels } from '@elastic/eui/src/global_styling/variables';
|
|
7099
|
+
export const levels: _EuiThemeLevels;
|
|
7100
|
+
|
|
7101
|
+
}
|
|
7102
|
+
declare module '@elastic/eui/src/themes/amsterdam/global_styling/variables/_typography' {
|
|
7103
|
+
import { _EuiThemeFont, _EuiThemeFontBase, _EuiThemeFontScales, _EuiThemeFontWeights } from '@elastic/eui/src/global_styling/variables/typography';
|
|
7104
|
+
export const fontScale: _EuiThemeFontScales;
|
|
7105
|
+
export const fontBase: _EuiThemeFontBase;
|
|
7106
|
+
export const fontWeight: _EuiThemeFontWeights;
|
|
7107
|
+
export const font: _EuiThemeFont;
|
|
7108
|
+
|
|
7109
|
+
}
|
|
7110
|
+
declare module '@elastic/eui/src/themes/amsterdam/global_styling/variables/_states' {
|
|
7111
|
+
import { _EuiThemeFocus } from '@elastic/eui/src/global_styling/variables/states';
|
|
7112
|
+
export const focus: _EuiThemeFocus;
|
|
7113
|
+
|
|
7114
|
+
}
|
|
7115
|
+
declare module '@elastic/eui/src/themes/amsterdam/global_styling/variables/_buttons' {
|
|
7116
|
+
import { _EuiThemeButton } from '@elastic/eui-theme-common';
|
|
7117
|
+
export const buttons: _EuiThemeButton;
|
|
7118
|
+
|
|
7119
|
+
}
|
|
7120
|
+
declare module '@elastic/eui/src/themes/amsterdam/global_styling/variables/_forms' {
|
|
7121
|
+
export const forms: {
|
|
7122
|
+
maxWidth: string;
|
|
7123
|
+
LIGHT: {
|
|
7124
|
+
background: string;
|
|
7125
|
+
backgroundDisabled: string;
|
|
7126
|
+
backgroundReadOnly: any;
|
|
7127
|
+
backgroundFocused: any;
|
|
7128
|
+
backgroundAutofilled: string;
|
|
7129
|
+
prependBackground: string;
|
|
7130
|
+
border: string;
|
|
7131
|
+
borderAutofilled: string;
|
|
7132
|
+
controlBorder: string;
|
|
7133
|
+
controlBorderSelected: string;
|
|
7134
|
+
controlBorderDisabled: string;
|
|
7135
|
+
controlBackgroundUnselected: any;
|
|
7136
|
+
controlBackgroundDisabled: any;
|
|
7137
|
+
colorHasPlaceholder: string;
|
|
7138
|
+
colorDisabled: any;
|
|
7139
|
+
iconDisabled: any;
|
|
7140
|
+
};
|
|
7141
|
+
DARK: {
|
|
7142
|
+
background: string;
|
|
7143
|
+
backgroundFocused: string;
|
|
7144
|
+
backgroundAutofilled: string;
|
|
7145
|
+
prependBackground: string;
|
|
7146
|
+
border: string;
|
|
7147
|
+
controlBorder: string;
|
|
7148
|
+
controlBorderSelected: string;
|
|
7149
|
+
controlBorderDisabled: string;
|
|
7150
|
+
backgroundDisabled: string;
|
|
7151
|
+
backgroundReadOnly: any;
|
|
7152
|
+
borderAutofilled: string;
|
|
7153
|
+
controlBackgroundUnselected: any;
|
|
7154
|
+
controlBackgroundDisabled: any;
|
|
7155
|
+
colorHasPlaceholder: string;
|
|
7156
|
+
colorDisabled: any;
|
|
7157
|
+
iconDisabled: any;
|
|
7158
|
+
};
|
|
7159
|
+
};
|
|
7160
|
+
|
|
7161
|
+
}
|
|
7162
|
+
declare module '@elastic/eui/src/themes/amsterdam/global_styling/variables/_components' {
|
|
7163
|
+
import { _EuiThemeComponents } from '@elastic/eui-theme-common';
|
|
7164
|
+
export const components: _EuiThemeComponents;
|
|
7165
|
+
|
|
7166
|
+
}
|
|
7167
|
+
declare module '@elastic/eui/src/themes/amsterdam/theme' {
|
|
7168
|
+
import { EuiThemeShape } from '@elastic/eui/src/services/theme/types';
|
|
7169
|
+
export const AMSTERDAM_NAME_KEY = "EUI_THEME_AMSTERDAM";
|
|
7170
|
+
export const euiThemeAmsterdam: EuiThemeShape;
|
|
7171
|
+
export const EuiThemeAmsterdam: {
|
|
7172
|
+
model: EuiThemeShape;
|
|
7173
|
+
root: EuiThemeShape;
|
|
7174
|
+
key: string;
|
|
7175
|
+
};
|
|
7176
|
+
|
|
7177
|
+
}
|
|
7178
|
+
declare module '@elastic/eui/src/services/theme/context' {
|
|
7179
|
+
import { EuiThemeColorModeStandard, EuiThemeHighContrastMode, EuiThemeSystem, EuiThemeComputed, EuiThemeNested } from '@elastic/eui/src/services/theme/types';
|
|
7180
|
+
export const DEFAULTS: {
|
|
7181
|
+
system: {
|
|
7182
|
+
model: import("@elastic/eui-theme-common/lib/cjs/services/theme/types").EuiThemeShape;
|
|
7183
|
+
root: import("@elastic/eui-theme-common/lib/cjs/services/theme/types").EuiThemeShape;
|
|
7184
|
+
key: string;
|
|
7185
|
+
};
|
|
7186
|
+
modifications: {};
|
|
7187
|
+
colorMode: "LIGHT";
|
|
7188
|
+
highContrastMode: false;
|
|
7189
|
+
};
|
|
7190
|
+
export const EuiSystemContext: import("react").Context<EuiThemeSystem>;
|
|
7191
|
+
export const EuiModificationsContext: import("react").Context<import("@elastic/eui-theme-common").RecursivePartial<import("@elastic/eui-theme-common").EuiThemeShapeBase & {
|
|
7192
|
+
overrides?: import("@elastic/eui-theme-common")._EuiThemeOverrides;
|
|
7193
|
+
}>>;
|
|
7194
|
+
export const EuiColorModeContext: import("react").Context<EuiThemeColorModeStandard>;
|
|
7195
|
+
export const EuiHighContrastModeContext: import("react").Context<EuiThemeHighContrastMode>;
|
|
7196
|
+
export const defaultComputedTheme: EuiThemeComputed<import("@elastic/eui-theme-common/lib/cjs/services/theme/types").EuiThemeShape>;
|
|
7197
|
+
export const EuiThemeContext: import("react").Context<EuiThemeComputed>;
|
|
7198
|
+
export const EuiNestedThemeContext: import("react").Context<EuiThemeNested>;
|
|
7199
|
+
|
|
7200
|
+
}
|
|
7201
|
+
declare module '@elastic/eui/src/services/theme/hooks' {
|
|
7202
|
+
import React from 'react';
|
|
7203
|
+
import { type EuiThemeColorModeStandard, type EuiThemeHighContrastMode, type EuiThemeModifications, type EuiThemeComputed } from '@elastic/eui-theme-common';
|
|
7204
|
+
/**
|
|
7205
|
+
* Hook for function components
|
|
7206
|
+
*/
|
|
7207
|
+
export interface UseEuiTheme<T extends {} = {}> {
|
|
7208
|
+
euiTheme: EuiThemeComputed<T>;
|
|
7209
|
+
colorMode: EuiThemeColorModeStandard;
|
|
7210
|
+
highContrastMode: EuiThemeHighContrastMode;
|
|
7211
|
+
modifications: EuiThemeModifications<T>;
|
|
7212
|
+
}
|
|
7213
|
+
export const useEuiTheme: <T extends {} = {}>() => UseEuiTheme<T>;
|
|
7214
|
+
/**
|
|
7215
|
+
* HOC for class components
|
|
7216
|
+
*/
|
|
7217
|
+
export interface WithEuiThemeProps<P extends {} = {}> {
|
|
7218
|
+
theme: UseEuiTheme<P>;
|
|
7219
|
+
}
|
|
7220
|
+
export const withEuiTheme: <T extends {} = {}, U extends {} = {}>(Component: React.ComponentType<T & WithEuiThemeProps<U>>) => React.ForwardRefExoticComponent<React.PropsWithoutRef<Omit<T, "theme">> & React.RefAttributes<Omit<T, "theme">>>;
|
|
7221
|
+
/**
|
|
7222
|
+
* Render prop alternative for complex class components
|
|
7223
|
+
* Most useful for scenarios where a HOC may interfere with typing
|
|
7224
|
+
*/
|
|
7225
|
+
export const RenderWithEuiTheme: <T extends {} = {}>({ children, }: {
|
|
7226
|
+
children: (theme: UseEuiTheme) => React.ReactElement;
|
|
7227
|
+
}) => React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
7228
|
+
/**
|
|
7229
|
+
* Minor syntactical sugar hook for theme CSS variables.
|
|
7230
|
+
* Primarily meant for internal EUI usage.
|
|
7231
|
+
*/
|
|
7232
|
+
export const useEuiThemeCSSVariables: () => {
|
|
7233
|
+
setGlobalCSSVariables: Function;
|
|
7234
|
+
globalCSSVariables: import("@emotion/serialize").CSSObject | undefined;
|
|
7235
|
+
setNearestThemeCSSVariables: Function;
|
|
7236
|
+
themeCSSVariables: import("@emotion/serialize").CSSObject | undefined;
|
|
7237
|
+
};
|
|
7238
|
+
/**
|
|
7239
|
+
* Checks whether the current active `colorMode` is set to `DARK`;
|
|
7240
|
+
* In case of nested providers this returns the value of the nearest provider context.
|
|
7241
|
+
*/
|
|
7242
|
+
export const useIsDarkMode: () => boolean;
|
|
7243
|
+
|
|
7244
|
+
}
|
|
7245
|
+
declare module '@elastic/eui/src/services/breakpoint/current_breakpoint' {
|
|
7246
|
+
import React, { FunctionComponent, PropsWithChildren } from 'react';
|
|
7247
|
+
import { _EuiThemeBreakpoint } from '@elastic/eui/src/global_styling/variables/breakpoint';
|
|
7248
|
+
type CurrentEuiBreakpoint = _EuiThemeBreakpoint | undefined;
|
|
7249
|
+
export const CurrentEuiBreakpointContext: React.Context<CurrentEuiBreakpoint>;
|
|
7250
|
+
/**
|
|
7251
|
+
* Returns the current breakpoint based on window width.
|
|
7252
|
+
* Typically only called by the top-level `EuiProvider` (to reduce the number
|
|
7253
|
+
* of window resize listeners on the page). Also conditionally called if a
|
|
7254
|
+
* nested `EuiThemeProvider` defines a `modify.breakpoint` override
|
|
7255
|
+
*/
|
|
7256
|
+
export const CurrentEuiBreakpointProvider: FunctionComponent<PropsWithChildren>;
|
|
7257
|
+
export {};
|
|
7258
|
+
|
|
7259
|
+
}
|
|
7260
|
+
declare module '@elastic/eui/src/services/breakpoint/current_breakpoint_hook' {
|
|
7261
|
+
/**
|
|
7262
|
+
* Hook util / syntactical sugar for useContext()
|
|
7263
|
+
*
|
|
7264
|
+
* This hook is in its own separate file to make mocking it
|
|
7265
|
+
* as a testenv easy for Jest unit tests
|
|
7266
|
+
*/
|
|
7267
|
+
export const useCurrentEuiBreakpoint: () => string | undefined;
|
|
7268
|
+
|
|
7269
|
+
}
|
|
7270
|
+
declare module '@elastic/eui/src/services/breakpoint/is_within_hooks' {
|
|
7271
|
+
import { _EuiThemeBreakpoint } from '@elastic/eui/src/global_styling/variables/breakpoint';
|
|
7272
|
+
/**
|
|
7273
|
+
* Given an array of breakpoint keys, this hook returns true or false
|
|
7274
|
+
* if the breakpoint size of the current window width falls within
|
|
7275
|
+
* any of the named breakpoints.
|
|
7276
|
+
*
|
|
7277
|
+
* @param {EuiThemeBreakpoint[]} sizes An array of named EUI breakpoints
|
|
7278
|
+
* @param {boolean} isResponsive Some components have the option to turn off responsive behavior.
|
|
7279
|
+
* Since hooks can't be called conditionally, it's easier to pass the condition into the hook
|
|
7280
|
+
* @returns {boolean} Returns `true` if current breakpoint name is included in `sizes`
|
|
7281
|
+
*/
|
|
7282
|
+
export const useIsWithinBreakpoints: (sizes: _EuiThemeBreakpoint[], isResponsive?: boolean) => boolean;
|
|
7283
|
+
/**
|
|
7284
|
+
* Given a max breakpoint key, this hook returns true if the breakpoint size
|
|
7285
|
+
* of the current window width falls within the max breakpoint or any below,
|
|
7286
|
+
* and false otherwise
|
|
7287
|
+
*
|
|
7288
|
+
* @param {EuiThemeBreakpoint} max The named max breakpoint to check against
|
|
7289
|
+
* @returns {boolean} Will return `false` if it can't find a value for the `max` breakpoint
|
|
7290
|
+
*/
|
|
7291
|
+
export function useIsWithinMaxBreakpoint(max: _EuiThemeBreakpoint): boolean;
|
|
7292
|
+
/**
|
|
7293
|
+
* Given a min breakpoint key, this hook returns true if the breakpoint size
|
|
7294
|
+
* of the current window width falls within the min breakpoint or any above,
|
|
7295
|
+
* and false otherwise
|
|
7296
|
+
*
|
|
7297
|
+
* @param {EuiThemeBreakpoint} min The named min breakpoint to check against
|
|
7298
|
+
* @returns {boolean} Will return `false` if it can't find a value for the `min` breakpoint
|
|
7299
|
+
*/
|
|
7300
|
+
export function useIsWithinMinBreakpoint(min: _EuiThemeBreakpoint): boolean;
|
|
7301
|
+
|
|
7302
|
+
}
|
|
7303
|
+
declare module '@elastic/eui/src/services/breakpoint' {
|
|
7304
|
+
export type { _EuiThemeBreakpoint as EuiBreakpointSize } from '@elastic/eui/src/global_styling/variables/breakpoint';
|
|
7305
|
+
export * from '@elastic/eui/src/services/breakpoint/current_breakpoint';
|
|
7306
|
+
export * from '@elastic/eui/src/services/breakpoint/current_breakpoint_hook';
|
|
7307
|
+
export * from '@elastic/eui/src/services/breakpoint/is_within_hooks';
|
|
7308
|
+
|
|
7309
|
+
}
|
|
7310
|
+
declare module '@elastic/eui/src/services/color_picker/color_picker' {
|
|
7311
|
+
interface colorStopsType {
|
|
7312
|
+
stop: number;
|
|
7313
|
+
color: string;
|
|
7314
|
+
}
|
|
7170
7315
|
/**
|
|
7171
7316
|
* @deprecated
|
|
7172
7317
|
*/
|
|
@@ -9804,7 +9949,16 @@ declare module '@elastic/eui/src/components/progress/progress' {
|
|
|
9804
9949
|
};
|
|
9805
9950
|
type Indeterminate = EuiProgressProps & HTMLAttributes<HTMLDivElement>;
|
|
9806
9951
|
type Determinate = EuiProgressProps & Omit<ProgressHTMLAttributes<HTMLProgressElement>, 'max'> & {
|
|
9952
|
+
/**
|
|
9953
|
+
* When set, creates determinate progress with a value/max ratio
|
|
9954
|
+
*/
|
|
9807
9955
|
max?: number;
|
|
9956
|
+
/**
|
|
9957
|
+
* Displays custom text or percentage
|
|
9958
|
+
* Pass `true` to display the percentage value
|
|
9959
|
+
* Pass a ReactNode for custom text
|
|
9960
|
+
* @default false
|
|
9961
|
+
*/
|
|
9808
9962
|
valueText?: boolean | ReactNode;
|
|
9809
9963
|
label?: ReactNode;
|
|
9810
9964
|
/**
|
|
@@ -11644,6 +11798,7 @@ declare module '@elastic/eui/src/components/collapsible_nav/collapsible_nav_grou
|
|
|
11644
11798
|
|
|
11645
11799
|
}
|
|
11646
11800
|
declare module '@elastic/eui/src/components/flyout/flyout.styles' {
|
|
11801
|
+
import { EuiFlyoutSize } from '@elastic/eui/src/components/flyout/flyout';
|
|
11647
11802
|
import { UseEuiTheme } from '@elastic/eui/src/services';
|
|
11648
11803
|
export const FLYOUT_BREAKPOINT: "m";
|
|
11649
11804
|
export const euiFlyoutSlideInRight: import("@emotion/serialize").Keyframes;
|
|
@@ -11674,6 +11829,8 @@ declare module '@elastic/eui/src/components/flyout/flyout.styles' {
|
|
|
11674
11829
|
l: import("@emotion/react").SerializedStyles;
|
|
11675
11830
|
};
|
|
11676
11831
|
};
|
|
11832
|
+
export const maxedFlyoutWidth: (euiThemeContext: UseEuiTheme) => string;
|
|
11833
|
+
export const composeFlyoutSizing: (euiThemeContext: UseEuiTheme, size: EuiFlyoutSize) => string;
|
|
11677
11834
|
|
|
11678
11835
|
}
|
|
11679
11836
|
declare module '@elastic/eui/src/components/flyout/_flyout_close_button.styles' {
|
|
@@ -11696,6 +11853,143 @@ declare module '@elastic/eui/src/components/flyout/_flyout_close_button' {
|
|
|
11696
11853
|
export const EuiFlyoutCloseButton: FunctionComponent<EuiFlyoutCloseButtonProps>;
|
|
11697
11854
|
export {};
|
|
11698
11855
|
|
|
11856
|
+
}
|
|
11857
|
+
declare module '@elastic/eui/src/components/flyout/flyout_child.styles' {
|
|
11858
|
+
import { UseEuiTheme } from '@elastic/eui/src/services';
|
|
11859
|
+
export const euiFlyoutChildStyles: (euiThemeContext: UseEuiTheme) => {
|
|
11860
|
+
euiFlyoutChild: import("@emotion/react").SerializedStyles;
|
|
11861
|
+
sidePosition: import("@emotion/react").SerializedStyles;
|
|
11862
|
+
stackedPosition: import("@emotion/react").SerializedStyles;
|
|
11863
|
+
s: import("@emotion/react").SerializedStyles;
|
|
11864
|
+
m: import("@emotion/react").SerializedStyles;
|
|
11865
|
+
closeButton: import("@emotion/react").SerializedStyles;
|
|
11866
|
+
overflow: {
|
|
11867
|
+
overflow: import("@emotion/react").SerializedStyles;
|
|
11868
|
+
wrapper: import("@emotion/react").SerializedStyles;
|
|
11869
|
+
};
|
|
11870
|
+
banner: import("@emotion/react").SerializedStyles;
|
|
11871
|
+
};
|
|
11872
|
+
|
|
11873
|
+
}
|
|
11874
|
+
declare module '@elastic/eui/src/components/flyout/flyout_context' {
|
|
11875
|
+
import { RefObject } from 'react';
|
|
11876
|
+
import { EuiFlyoutSize } from '@elastic/eui/src/components/flyout/flyout';
|
|
11877
|
+
/**
|
|
11878
|
+
* Context shared between the main and child flyouts
|
|
11879
|
+
* @internal
|
|
11880
|
+
*/
|
|
11881
|
+
export interface EuiFlyoutContextValue {
|
|
11882
|
+
parentSize?: EuiFlyoutSize | string | number;
|
|
11883
|
+
parentFlyoutRef?: RefObject<HTMLDivElement>;
|
|
11884
|
+
isChildFlyoutOpen?: boolean;
|
|
11885
|
+
setIsChildFlyoutOpen?: (isOpen: boolean) => void;
|
|
11886
|
+
childLayoutMode?: 'side-by-side' | 'stacked';
|
|
11887
|
+
}
|
|
11888
|
+
export const EuiFlyoutContext: import("react").Context<EuiFlyoutContextValue | null>;
|
|
11889
|
+
|
|
11890
|
+
}
|
|
11891
|
+
declare module '@elastic/eui/src/components/flyout/flyout_body.styles' {
|
|
11892
|
+
import { UseEuiTheme } from '@elastic/eui/src/services';
|
|
11893
|
+
export const euiFlyoutBodyStyles: (euiThemeContext: UseEuiTheme) => {
|
|
11894
|
+
euiFlyoutBody: import("@emotion/react").SerializedStyles;
|
|
11895
|
+
overflow: {
|
|
11896
|
+
euiFlyoutBody__overflow: import("@emotion/react").SerializedStyles;
|
|
11897
|
+
noBanner: import("@emotion/react").SerializedStyles;
|
|
11898
|
+
hasBanner: import("@emotion/react").SerializedStyles;
|
|
11899
|
+
};
|
|
11900
|
+
euiFlyoutBody__banner: import("@emotion/react").SerializedStyles;
|
|
11901
|
+
};
|
|
11902
|
+
|
|
11903
|
+
}
|
|
11904
|
+
declare module '@elastic/eui/src/components/flyout/flyout_body' {
|
|
11905
|
+
import { FunctionComponent, HTMLAttributes, ReactNode } from 'react';
|
|
11906
|
+
import { CommonProps } from '@elastic/eui/src/components/common';
|
|
11907
|
+
export type EuiFlyoutBodyProps = FunctionComponent<HTMLAttributes<HTMLDivElement> & CommonProps & {
|
|
11908
|
+
/**
|
|
11909
|
+
* Use to display a banner at the top of the body. It is suggested to use `EuiCallOut` for it.
|
|
11910
|
+
*/
|
|
11911
|
+
banner?: ReactNode;
|
|
11912
|
+
/**
|
|
11913
|
+
* [Scrollable regions (or their children) should be focusable](https://dequeuniversity.com/rules/axe/4.0/scrollable-region-focusable)
|
|
11914
|
+
* to allow keyboard users to scroll the region via arrow keys.
|
|
11915
|
+
*
|
|
11916
|
+
* By default, EuiFlyoutBody's scroll overflow wrapper sets a `tabIndex` of `0`.
|
|
11917
|
+
* If you know your flyout body content already contains focusable children
|
|
11918
|
+
* that satisfy keyboard accessibility requirements, you can use this prop
|
|
11919
|
+
* to override this default.
|
|
11920
|
+
*/
|
|
11921
|
+
scrollableTabIndex?: number;
|
|
11922
|
+
}>;
|
|
11923
|
+
export const EuiFlyoutBody: EuiFlyoutBodyProps;
|
|
11924
|
+
|
|
11925
|
+
}
|
|
11926
|
+
declare module '@elastic/eui/src/components/flyout/flyout_child' {
|
|
11927
|
+
import { FunctionComponent, HTMLAttributes, ReactNode } from 'react';
|
|
11928
|
+
import { CommonProps } from '@elastic/eui/src/components/common';
|
|
11929
|
+
/**
|
|
11930
|
+
* Props used to render and configure the child flyout panel
|
|
11931
|
+
*/
|
|
11932
|
+
export interface EuiFlyoutChildProps extends HTMLAttributes<HTMLDivElement>, CommonProps {
|
|
11933
|
+
/**
|
|
11934
|
+
* Called when the child panel's close button is clicked
|
|
11935
|
+
*/
|
|
11936
|
+
onClose: (event: MouseEvent | TouchEvent | KeyboardEvent) => void;
|
|
11937
|
+
/**
|
|
11938
|
+
* Use to display a banner at the top of the child. It is suggested to use `EuiCallOut` for it.
|
|
11939
|
+
*/
|
|
11940
|
+
banner?: ReactNode;
|
|
11941
|
+
/**
|
|
11942
|
+
* Hides the default close button. You must provide another close button somewhere within the child flyout.
|
|
11943
|
+
* @default false
|
|
11944
|
+
*/
|
|
11945
|
+
hideCloseButton?: boolean;
|
|
11946
|
+
/**
|
|
11947
|
+
* [Scrollable regions (or their children) should be focusable](https://dequeuniversity.com/rules/axe/4.0/scrollable-region-focusable)
|
|
11948
|
+
* to allow keyboard users to scroll the region via arrow keys.
|
|
11949
|
+
*
|
|
11950
|
+
* By default, EuiFlyoutChild's scroll overflow wrapper sets a `tabIndex` of `0`.
|
|
11951
|
+
* If you know your flyout child content already contains focusable children
|
|
11952
|
+
* that satisfy keyboard accessibility requirements, you can use this prop
|
|
11953
|
+
* to override this default.
|
|
11954
|
+
*/
|
|
11955
|
+
scrollableTabIndex?: number;
|
|
11956
|
+
/**
|
|
11957
|
+
* Size of the child flyout panel.
|
|
11958
|
+
* When the parent flyout is 'm', child is limited to 's'.
|
|
11959
|
+
* @default 's'
|
|
11960
|
+
*/
|
|
11961
|
+
size?: 's' | 'm';
|
|
11962
|
+
/**
|
|
11963
|
+
* Children are implicitly part of FunctionComponent, but good to have if props type is standalone.
|
|
11964
|
+
*/
|
|
11965
|
+
children?: ReactNode;
|
|
11966
|
+
}
|
|
11967
|
+
/**
|
|
11968
|
+
* The child flyout is a panel that appears to the left of the parent flyout.
|
|
11969
|
+
* It is only visible when the parent flyout is open.
|
|
11970
|
+
*/
|
|
11971
|
+
export const EuiFlyoutChild: FunctionComponent<EuiFlyoutChildProps>;
|
|
11972
|
+
|
|
11973
|
+
}
|
|
11974
|
+
declare module '@elastic/eui/src/components/flyout/flyout_child_manager' {
|
|
11975
|
+
import React, { ComponentProps, FunctionComponent, ReactNode } from 'react';
|
|
11976
|
+
import { EuiFlyoutChild } from '@elastic/eui/src/components/flyout/flyout_child';
|
|
11977
|
+
interface EuiFlyoutChildProviderProps {
|
|
11978
|
+
parentSize: 's' | 'm';
|
|
11979
|
+
parentFlyoutRef: React.RefObject<HTMLDivElement>;
|
|
11980
|
+
childElement: React.ReactElement<ComponentProps<typeof EuiFlyoutChild>>;
|
|
11981
|
+
childrenToRender: ReactNode;
|
|
11982
|
+
reportIsChildOpen: (isOpen: boolean) => void;
|
|
11983
|
+
reportChildLayoutMode: (mode: 'side-by-side' | 'stacked') => void;
|
|
11984
|
+
}
|
|
11985
|
+
/**
|
|
11986
|
+
* An intermediate component between EuiFlyout and EuiFlyoutChild.
|
|
11987
|
+
* It is responsible for managing the state of the child flyout, and passing it to EuiFlyoutContext.
|
|
11988
|
+
* It removes the responsibility of managing child flyout state from EuiFlyout, which is especially important there might not be a child flyout.
|
|
11989
|
+
*/
|
|
11990
|
+
export const EuiFlyoutChildProvider: FunctionComponent<EuiFlyoutChildProviderProps>;
|
|
11991
|
+
export {};
|
|
11992
|
+
|
|
11699
11993
|
}
|
|
11700
11994
|
declare module '@elastic/eui/src/components/flyout/flyout' {
|
|
11701
11995
|
import { ComponentPropsWithRef, CSSProperties, ElementType, JSX } from 'react';
|
|
@@ -11813,41 +12107,6 @@ declare module '@elastic/eui/src/components/flyout/flyout' {
|
|
|
11813
12107
|
export const EuiFlyout: <T extends ElementType = typeof defaultElement>(props: EuiFlyoutProps<T>) => JSX.Element;
|
|
11814
12108
|
export {};
|
|
11815
12109
|
|
|
11816
|
-
}
|
|
11817
|
-
declare module '@elastic/eui/src/components/flyout/flyout_body.styles' {
|
|
11818
|
-
import { UseEuiTheme } from '@elastic/eui/src/services';
|
|
11819
|
-
export const euiFlyoutBodyStyles: (euiThemeContext: UseEuiTheme) => {
|
|
11820
|
-
euiFlyoutBody: import("@emotion/react").SerializedStyles;
|
|
11821
|
-
overflow: {
|
|
11822
|
-
euiFlyoutBody__overflow: import("@emotion/react").SerializedStyles;
|
|
11823
|
-
noBanner: import("@emotion/react").SerializedStyles;
|
|
11824
|
-
hasBanner: import("@emotion/react").SerializedStyles;
|
|
11825
|
-
};
|
|
11826
|
-
euiFlyoutBody__banner: import("@emotion/react").SerializedStyles;
|
|
11827
|
-
};
|
|
11828
|
-
|
|
11829
|
-
}
|
|
11830
|
-
declare module '@elastic/eui/src/components/flyout/flyout_body' {
|
|
11831
|
-
import { FunctionComponent, HTMLAttributes, ReactNode } from 'react';
|
|
11832
|
-
import { CommonProps } from '@elastic/eui/src/components/common';
|
|
11833
|
-
export type EuiFlyoutBodyProps = FunctionComponent<HTMLAttributes<HTMLDivElement> & CommonProps & {
|
|
11834
|
-
/**
|
|
11835
|
-
* Use to display a banner at the top of the body. It is suggested to use `EuiCallOut` for it.
|
|
11836
|
-
*/
|
|
11837
|
-
banner?: ReactNode;
|
|
11838
|
-
/**
|
|
11839
|
-
* [Scrollable regions (or their children) should be focusable](https://dequeuniversity.com/rules/axe/4.0/scrollable-region-focusable)
|
|
11840
|
-
* to allow keyboard users to scroll the region via arrow keys.
|
|
11841
|
-
*
|
|
11842
|
-
* By default, EuiFlyoutBody's scroll overflow wrapper sets a `tabIndex` of `0`.
|
|
11843
|
-
* If you know your flyout body content already contains focusable children
|
|
11844
|
-
* that satisfy keyboard accessibility requirements, you can use this prop
|
|
11845
|
-
* to override this default.
|
|
11846
|
-
*/
|
|
11847
|
-
scrollableTabIndex?: number;
|
|
11848
|
-
}>;
|
|
11849
|
-
export const EuiFlyoutBody: EuiFlyoutBodyProps;
|
|
11850
|
-
|
|
11851
12110
|
}
|
|
11852
12111
|
declare module '@elastic/eui/src/components/flyout/flyout_footer.styles' {
|
|
11853
12112
|
import { UseEuiTheme } from '@elastic/eui/src/services';
|
|
@@ -12428,26 +12687,225 @@ declare module '@elastic/eui/src/components/flyout/flyout_resizable.styles' {
|
|
|
12428
12687
|
left: import("@emotion/react").SerializedStyles;
|
|
12429
12688
|
right: import("@emotion/react").SerializedStyles;
|
|
12430
12689
|
};
|
|
12431
|
-
noOverlay: {
|
|
12432
|
-
noOverlay: import("@emotion/react").SerializedStyles;
|
|
12433
|
-
left: import("@emotion/react").SerializedStyles;
|
|
12434
|
-
right: import("@emotion/react").SerializedStyles;
|
|
12690
|
+
noOverlay: {
|
|
12691
|
+
noOverlay: import("@emotion/react").SerializedStyles;
|
|
12692
|
+
left: import("@emotion/react").SerializedStyles;
|
|
12693
|
+
right: import("@emotion/react").SerializedStyles;
|
|
12694
|
+
};
|
|
12695
|
+
};
|
|
12696
|
+
|
|
12697
|
+
}
|
|
12698
|
+
declare module '@elastic/eui/src/components/flyout/flyout_resizable' {
|
|
12699
|
+
import React from 'react';
|
|
12700
|
+
import { EuiFlyoutProps } from '@elastic/eui/src/components/flyout/flyout';
|
|
12701
|
+
export type EuiFlyoutResizableProps = {
|
|
12702
|
+
maxWidth?: number;
|
|
12703
|
+
minWidth?: number;
|
|
12704
|
+
/**
|
|
12705
|
+
* Optional callback that fires on user resize with the new flyout width
|
|
12706
|
+
*/
|
|
12707
|
+
onResize?: (width: number) => void;
|
|
12708
|
+
} & Omit<EuiFlyoutProps, 'maxWidth' | 'onResize'>;
|
|
12709
|
+
export const EuiFlyoutResizable: React.ForwardRefExoticComponent<Omit<EuiFlyoutResizableProps, "ref"> & React.RefAttributes<unknown>>;
|
|
12710
|
+
|
|
12711
|
+
}
|
|
12712
|
+
declare module '@elastic/eui/src/components/flyout/sessions/types' {
|
|
12713
|
+
import { EuiFlyoutProps, EuiFlyoutSize } from '@elastic/eui/src/components/flyout/flyout';
|
|
12714
|
+
import { EuiFlyoutChildProps } from '@elastic/eui/src/components/flyout/flyout_child';
|
|
12715
|
+
/**
|
|
12716
|
+
* Configuration used for setting display options for main and child flyouts in a session.
|
|
12717
|
+
*/
|
|
12718
|
+
export interface EuiFlyoutSessionConfig {
|
|
12719
|
+
mainSize: EuiFlyoutSize;
|
|
12720
|
+
childSize: 's' | 'm';
|
|
12721
|
+
mainFlyoutProps?: Partial<Omit<EuiFlyoutProps, 'children'>>;
|
|
12722
|
+
childFlyoutProps?: Partial<Omit<EuiFlyoutChildProps, 'children'>>;
|
|
12723
|
+
}
|
|
12724
|
+
/**
|
|
12725
|
+
* A configuration user state for past and current main and child flyouts in a session
|
|
12726
|
+
* @internal
|
|
12727
|
+
*/
|
|
12728
|
+
export interface EuiFlyoutSessionGroup<FlyoutMeta> {
|
|
12729
|
+
isMainOpen: boolean;
|
|
12730
|
+
isChildOpen: boolean;
|
|
12731
|
+
config: EuiFlyoutSessionConfig;
|
|
12732
|
+
mainOnUnmount?: () => void;
|
|
12733
|
+
childOnUnmount?: () => void;
|
|
12734
|
+
meta?: FlyoutMeta;
|
|
12735
|
+
}
|
|
12736
|
+
/**
|
|
12737
|
+
* State used for tracking various EuiFlyoutSessionGroups
|
|
12738
|
+
* @internal
|
|
12739
|
+
*/
|
|
12740
|
+
export interface EuiFlyoutSessionHistoryState<FlyoutMeta = unknown> {
|
|
12741
|
+
activeFlyoutGroup: EuiFlyoutSessionGroup<FlyoutMeta> | null;
|
|
12742
|
+
history: Array<EuiFlyoutSessionGroup<FlyoutMeta>>;
|
|
12743
|
+
}
|
|
12744
|
+
export type EuiFlyoutSessionAction<FlyoutMeta = unknown> = {
|
|
12745
|
+
type: 'UPDATE_ACTIVE_FLYOUT_CONFIG';
|
|
12746
|
+
payload: {
|
|
12747
|
+
configChanges: Partial<EuiFlyoutSessionConfig>;
|
|
12748
|
+
newMainOnUnmount?: () => void;
|
|
12749
|
+
newChildOnUnmount?: () => void;
|
|
12750
|
+
};
|
|
12751
|
+
} | {
|
|
12752
|
+
type: 'OPEN_MAIN_FLYOUT';
|
|
12753
|
+
payload: {
|
|
12754
|
+
size: EuiFlyoutSize;
|
|
12755
|
+
flyoutProps?: Partial<Omit<EuiFlyoutProps, 'children'>>;
|
|
12756
|
+
onUnmount?: () => void;
|
|
12757
|
+
meta?: FlyoutMeta;
|
|
12758
|
+
};
|
|
12759
|
+
} | {
|
|
12760
|
+
type: 'OPEN_CHILD_FLYOUT';
|
|
12761
|
+
payload: {
|
|
12762
|
+
size: 's' | 'm';
|
|
12763
|
+
flyoutProps?: Partial<Omit<EuiFlyoutChildProps, 'children'>>;
|
|
12764
|
+
onUnmount?: () => void;
|
|
12765
|
+
meta?: FlyoutMeta;
|
|
12766
|
+
};
|
|
12767
|
+
} | {
|
|
12768
|
+
type: 'OPEN_FLYOUT_GROUP';
|
|
12769
|
+
payload: {
|
|
12770
|
+
main: {
|
|
12771
|
+
size: EuiFlyoutSize;
|
|
12772
|
+
flyoutProps?: Partial<Omit<EuiFlyoutProps, 'children'>>;
|
|
12773
|
+
onUnmount?: () => void;
|
|
12774
|
+
};
|
|
12775
|
+
child: {
|
|
12776
|
+
size: 's' | 'm';
|
|
12777
|
+
flyoutProps?: Partial<Omit<EuiFlyoutChildProps, 'children'>>;
|
|
12778
|
+
onUnmount?: () => void;
|
|
12779
|
+
};
|
|
12780
|
+
meta?: FlyoutMeta;
|
|
12781
|
+
};
|
|
12782
|
+
} | {
|
|
12783
|
+
type: 'GO_BACK';
|
|
12784
|
+
} | {
|
|
12785
|
+
type: 'CLOSE_CHILD_FLYOUT';
|
|
12786
|
+
} | {
|
|
12787
|
+
type: 'CLEAR_HISTORY';
|
|
12788
|
+
};
|
|
12789
|
+
/**
|
|
12790
|
+
* Flyout session context managed by `EuiFlyoutSessionProvider`, and passed to the `renderMainFlyoutContent` and `renderChildFlyoutContent` functions.
|
|
12791
|
+
*/
|
|
12792
|
+
export interface EuiFlyoutSessionRenderContext<FlyoutMeta = unknown> {
|
|
12793
|
+
flyoutProps: Partial<EuiFlyoutProps | EuiFlyoutChildProps>;
|
|
12794
|
+
flyoutSize: EuiFlyoutProps['size'] | EuiFlyoutChildProps['size'];
|
|
12795
|
+
flyoutType: 'main' | 'child';
|
|
12796
|
+
dispatch: React.Dispatch<EuiFlyoutSessionAction<FlyoutMeta>>;
|
|
12797
|
+
activeFlyoutGroup: EuiFlyoutSessionGroup<FlyoutMeta> | null;
|
|
12798
|
+
onCloseFlyout: () => void;
|
|
12799
|
+
onCloseChildFlyout: () => void;
|
|
12800
|
+
meta?: FlyoutMeta;
|
|
12801
|
+
}
|
|
12802
|
+
/**
|
|
12803
|
+
* Props that can be passed to `EuiFlyoutSessionProvider` to render the main and child flyouts in a session.
|
|
12804
|
+
*/
|
|
12805
|
+
export interface EuiFlyoutSessionProviderComponentProps<FlyoutMeta = any> {
|
|
12806
|
+
children: React.ReactNode;
|
|
12807
|
+
renderMainFlyoutContent: (context: EuiFlyoutSessionRenderContext<FlyoutMeta>) => React.ReactNode;
|
|
12808
|
+
renderChildFlyoutContent?: (context: EuiFlyoutSessionRenderContext<FlyoutMeta>) => React.ReactNode;
|
|
12809
|
+
}
|
|
12810
|
+
|
|
12811
|
+
}
|
|
12812
|
+
declare module '@elastic/eui/src/components/flyout/sessions/flyout_reducer' {
|
|
12813
|
+
import { EuiFlyoutSessionAction, EuiFlyoutSessionHistoryState } from '@elastic/eui/src/components/flyout/sessions/types';
|
|
12814
|
+
/**
|
|
12815
|
+
* Initial state for the flyout session
|
|
12816
|
+
* @internal
|
|
12817
|
+
*/
|
|
12818
|
+
export const initialFlyoutState: EuiFlyoutSessionHistoryState<unknown>;
|
|
12819
|
+
/**
|
|
12820
|
+
* Flyout reducer
|
|
12821
|
+
* Controls state changes for flyout groups
|
|
12822
|
+
*/
|
|
12823
|
+
export function flyoutReducer<FlyoutMeta>(state: EuiFlyoutSessionHistoryState<FlyoutMeta>, action: EuiFlyoutSessionAction<FlyoutMeta>): EuiFlyoutSessionHistoryState<FlyoutMeta>;
|
|
12824
|
+
|
|
12825
|
+
}
|
|
12826
|
+
declare module '@elastic/eui/src/components/flyout/sessions/flyout_provider' {
|
|
12827
|
+
import React from 'react';
|
|
12828
|
+
import { EuiFlyoutSessionAction, EuiFlyoutSessionHistoryState, EuiFlyoutSessionProviderComponentProps } from '@elastic/eui/src/components/flyout/sessions/types';
|
|
12829
|
+
interface FlyoutSessionContextProps {
|
|
12830
|
+
state: EuiFlyoutSessionHistoryState;
|
|
12831
|
+
dispatch: React.Dispatch<EuiFlyoutSessionAction>;
|
|
12832
|
+
}
|
|
12833
|
+
/**
|
|
12834
|
+
* Accesses the state data and dispatch function from the context of EuiFlyoutSessionProvider
|
|
12835
|
+
* Use this if you need to debug the state or need direct access to the dispatch function, otherwise use useEuiFlyoutSession hook.
|
|
12836
|
+
*/
|
|
12837
|
+
export const useEuiFlyoutSessionContext: () => FlyoutSessionContextProps;
|
|
12838
|
+
/**
|
|
12839
|
+
* FlyoutProvider is a component that provides a context for Flyout components.
|
|
12840
|
+
* It is used to manage the state of the Flyout and its child.
|
|
12841
|
+
* It also renders the Flyout and FlyoutChild components.
|
|
12842
|
+
*
|
|
12843
|
+
* @param children - The children of the FlyoutProvider component.
|
|
12844
|
+
* @param renderMainFlyoutContent - A function that renders the content of the main Flyout.
|
|
12845
|
+
* @param renderChildFlyoutContent - A function that renders the content of the child Flyout.
|
|
12846
|
+
* @returns The FlyoutProvider component.
|
|
12847
|
+
*/
|
|
12848
|
+
export const EuiFlyoutSessionProvider: React.FC<EuiFlyoutSessionProviderComponentProps>;
|
|
12849
|
+
export {};
|
|
12850
|
+
|
|
12851
|
+
}
|
|
12852
|
+
declare module '@elastic/eui/src/components/flyout/sessions/use_eui_flyout' {
|
|
12853
|
+
import { EuiFlyoutSize } from '@elastic/eui/src/components/flyout/flyout';
|
|
12854
|
+
import { EuiFlyoutSessionConfig } from '@elastic/eui/src/components/flyout/sessions/types';
|
|
12855
|
+
/**
|
|
12856
|
+
* Options that control a main flyout in a session
|
|
12857
|
+
*/
|
|
12858
|
+
export interface EuiFlyoutSessionOpenMainOptions<Meta = unknown> {
|
|
12859
|
+
size: EuiFlyoutSize;
|
|
12860
|
+
flyoutProps?: EuiFlyoutSessionConfig['mainFlyoutProps'];
|
|
12861
|
+
onUnmount?: () => void;
|
|
12862
|
+
meta?: Meta;
|
|
12863
|
+
}
|
|
12864
|
+
/**
|
|
12865
|
+
* Options that control a child flyout in a session
|
|
12866
|
+
*/
|
|
12867
|
+
export interface EuiFlyoutSessionOpenChildOptions<Meta = unknown> {
|
|
12868
|
+
size: 's' | 'm';
|
|
12869
|
+
flyoutProps?: EuiFlyoutSessionConfig['childFlyoutProps'];
|
|
12870
|
+
onUnmount?: () => void;
|
|
12871
|
+
meta?: Meta;
|
|
12872
|
+
}
|
|
12873
|
+
/**
|
|
12874
|
+
* Options for opening both a main flyout and child flyout simultaneously
|
|
12875
|
+
*/
|
|
12876
|
+
export interface EuiFlyoutSessionOpenGroupOptions<Meta = unknown> {
|
|
12877
|
+
main: {
|
|
12878
|
+
size: EuiFlyoutSize;
|
|
12879
|
+
flyoutProps?: EuiFlyoutSessionConfig['mainFlyoutProps'];
|
|
12880
|
+
onUnmount?: () => void;
|
|
12881
|
+
};
|
|
12882
|
+
child: {
|
|
12883
|
+
size: 's' | 'm';
|
|
12884
|
+
flyoutProps?: EuiFlyoutSessionConfig['childFlyoutProps'];
|
|
12885
|
+
onUnmount?: () => void;
|
|
12435
12886
|
};
|
|
12887
|
+
meta?: Meta;
|
|
12888
|
+
}
|
|
12889
|
+
/**
|
|
12890
|
+
* Hook for accessing the flyout API
|
|
12891
|
+
*/
|
|
12892
|
+
export function useEuiFlyoutSession(): {
|
|
12893
|
+
openFlyout: (options: EuiFlyoutSessionOpenMainOptions) => void;
|
|
12894
|
+
openChildFlyout: (options: EuiFlyoutSessionOpenChildOptions) => void;
|
|
12895
|
+
openFlyoutGroup: (options: EuiFlyoutSessionOpenGroupOptions) => void;
|
|
12896
|
+
closeChildFlyout: () => void;
|
|
12897
|
+
goBack: () => void;
|
|
12898
|
+
canGoBack: boolean;
|
|
12899
|
+
isFlyoutOpen: boolean;
|
|
12900
|
+
isChildFlyoutOpen: boolean;
|
|
12901
|
+
clearHistory: () => void;
|
|
12436
12902
|
};
|
|
12437
12903
|
|
|
12438
12904
|
}
|
|
12439
|
-
declare module '@elastic/eui/src/components/flyout/
|
|
12440
|
-
|
|
12441
|
-
|
|
12442
|
-
export type
|
|
12443
|
-
maxWidth?: number;
|
|
12444
|
-
minWidth?: number;
|
|
12445
|
-
/**
|
|
12446
|
-
* Optional callback that fires on user resize with the new flyout width
|
|
12447
|
-
*/
|
|
12448
|
-
onResize?: (width: number) => void;
|
|
12449
|
-
} & Omit<EuiFlyoutProps, 'maxWidth' | 'onResize'>;
|
|
12450
|
-
export const EuiFlyoutResizable: React.ForwardRefExoticComponent<Omit<EuiFlyoutResizableProps, "ref"> & React.RefAttributes<unknown>>;
|
|
12905
|
+
declare module '@elastic/eui/src/components/flyout/sessions' {
|
|
12906
|
+
export { EuiFlyoutSessionProvider, useEuiFlyoutSessionContext, } from '@elastic/eui/src/components/flyout/sessions/flyout_provider';
|
|
12907
|
+
export type { EuiFlyoutSessionConfig, EuiFlyoutSessionProviderComponentProps, EuiFlyoutSessionRenderContext, } from '@elastic/eui/src/components/flyout/sessions/types';
|
|
12908
|
+
export { useEuiFlyoutSession, type EuiFlyoutSessionOpenChildOptions, type EuiFlyoutSessionOpenMainOptions, } from '@elastic/eui/src/components/flyout/sessions/use_eui_flyout';
|
|
12451
12909
|
|
|
12452
12910
|
}
|
|
12453
12911
|
declare module '@elastic/eui/src/components/flyout' {
|
|
@@ -12462,6 +12920,10 @@ declare module '@elastic/eui/src/components/flyout' {
|
|
|
12462
12920
|
export { euiFlyoutSlideInRight, euiFlyoutSlideInLeft } from '@elastic/eui/src/components/flyout/flyout.styles';
|
|
12463
12921
|
export type { EuiFlyoutResizableProps } from '@elastic/eui/src/components/flyout/flyout_resizable';
|
|
12464
12922
|
export { EuiFlyoutResizable } from '@elastic/eui/src/components/flyout/flyout_resizable';
|
|
12923
|
+
export { EuiFlyoutChild } from '@elastic/eui/src/components/flyout/flyout_child';
|
|
12924
|
+
export type { EuiFlyoutChildProps } from '@elastic/eui/src/components/flyout/flyout_child';
|
|
12925
|
+
export type { EuiFlyoutSessionConfig, EuiFlyoutSessionOpenChildOptions, EuiFlyoutSessionOpenMainOptions, EuiFlyoutSessionProviderComponentProps, EuiFlyoutSessionRenderContext, } from '@elastic/eui/src/components/flyout/sessions';
|
|
12926
|
+
export { EuiFlyoutSessionProvider, useEuiFlyoutSession } from '@elastic/eui/src/components/flyout/sessions';
|
|
12465
12927
|
|
|
12466
12928
|
}
|
|
12467
12929
|
declare module '@elastic/eui/src/components/collapsible_nav/collapsible_nav.styles' {
|
|
@@ -12563,16 +13025,6 @@ declare module '@elastic/eui/src/components/collapsible_nav_beta/collapsible_nav
|
|
|
12563
13025
|
declare module '@elastic/eui/src/components/collapsible_nav_beta/collapsible_nav_button' {
|
|
12564
13026
|
export { EuiCollapsibleNavButton } from '@elastic/eui/src/components/collapsible_nav_beta/collapsible_nav_button/collapsible_nav_button';
|
|
12565
13027
|
|
|
12566
|
-
}
|
|
12567
|
-
declare module '@elastic/eui/src/themes/amsterdam/global_styling/variables/_colors_vis_light' {
|
|
12568
|
-
import { _EuiThemeVisColors } from '@elastic/eui-theme-common';
|
|
12569
|
-
export const colorVisLight: _EuiThemeVisColors;
|
|
12570
|
-
|
|
12571
|
-
}
|
|
12572
|
-
declare module '@elastic/eui/src/themes/amsterdam/global_styling/variables/_colors_vis_dark' {
|
|
12573
|
-
import { _EuiThemeVisColors } from '@elastic/eui-theme-common';
|
|
12574
|
-
export const colorVisDark: _EuiThemeVisColors;
|
|
12575
|
-
|
|
12576
13028
|
}
|
|
12577
13029
|
declare module '@elastic/eui/src/themes/themes' {
|
|
12578
13030
|
import { EuiThemeSystem } from '@elastic/eui/src/services';
|
|
@@ -12582,143 +13034,6 @@ declare module '@elastic/eui/src/themes/themes' {
|
|
|
12582
13034
|
provider?: EuiThemeSystem;
|
|
12583
13035
|
}
|
|
12584
13036
|
|
|
12585
|
-
}
|
|
12586
|
-
declare module '@elastic/eui/src/themes/amsterdam/global_styling/variables/_colors_severity' {
|
|
12587
|
-
/**
|
|
12588
|
-
* These are not actually used, but we map them to ensure token parity.
|
|
12589
|
-
* They are mapped to other vis colors
|
|
12590
|
-
*/
|
|
12591
|
-
export const severityColors: {
|
|
12592
|
-
unknown: string;
|
|
12593
|
-
neutral: string;
|
|
12594
|
-
success: string;
|
|
12595
|
-
warning: string;
|
|
12596
|
-
risk: string;
|
|
12597
|
-
danger: string;
|
|
12598
|
-
};
|
|
12599
|
-
|
|
12600
|
-
}
|
|
12601
|
-
declare module '@elastic/eui/src/themes/amsterdam/global_styling/variables/_colors' {
|
|
12602
|
-
import { _EuiThemeColors, _EuiThemeBrandColors, _EuiThemeBrandTextColors, _EuiThemeShadeColors, _EuiThemeSpecialColors, _EuiThemeTextColors, _EuiThemeColorsMode, _EuiThemeBackgroundColors, _EuiThemeBorderColors, _EuiThemeTransparentBackgroundColors } from '@elastic/eui-theme-common';
|
|
12603
|
-
export const brand_colors: _EuiThemeBrandColors;
|
|
12604
|
-
export const brand_text_colors: _EuiThemeBrandTextColors;
|
|
12605
|
-
export const shade_colors: _EuiThemeShadeColors;
|
|
12606
|
-
export const special_colors: _EuiThemeSpecialColors;
|
|
12607
|
-
export const text_colors: _EuiThemeTextColors;
|
|
12608
|
-
export const background_colors: _EuiThemeBackgroundColors;
|
|
12609
|
-
export const transparent_background_colors: _EuiThemeTransparentBackgroundColors;
|
|
12610
|
-
export const border_colors: _EuiThemeBorderColors;
|
|
12611
|
-
export const light_colors: _EuiThemeColorsMode;
|
|
12612
|
-
export const dark_shades: _EuiThemeShadeColors;
|
|
12613
|
-
export const dark_background_colors: _EuiThemeBackgroundColors;
|
|
12614
|
-
export const dark_transparent_background_colors: _EuiThemeTransparentBackgroundColors;
|
|
12615
|
-
export const dark_border_colors: _EuiThemeBorderColors;
|
|
12616
|
-
export const dark_colors_ams: _EuiThemeColorsMode;
|
|
12617
|
-
export const colors: _EuiThemeColors;
|
|
12618
|
-
|
|
12619
|
-
}
|
|
12620
|
-
declare module '@elastic/eui/src/themes/amsterdam/global_styling/variables/_animation' {
|
|
12621
|
-
import { _EuiThemeAnimationSpeeds, _EuiThemeAnimationEasings, _EuiThemeAnimation } from '@elastic/eui/src/global_styling/variables/animations';
|
|
12622
|
-
export const animation_speed: _EuiThemeAnimationSpeeds;
|
|
12623
|
-
export const animation_ease: _EuiThemeAnimationEasings;
|
|
12624
|
-
export const animation: _EuiThemeAnimation;
|
|
12625
|
-
|
|
12626
|
-
}
|
|
12627
|
-
declare module '@elastic/eui/src/themes/amsterdam/global_styling/variables/_breakpoint' {
|
|
12628
|
-
export { breakpoint } from '@elastic/eui-theme-common';
|
|
12629
|
-
|
|
12630
|
-
}
|
|
12631
|
-
declare module '@elastic/eui/src/themes/amsterdam/global_styling/variables/_size' {
|
|
12632
|
-
import { _EuiThemeBase, _EuiThemeSizes } from '@elastic/eui/src/global_styling/variables';
|
|
12633
|
-
export const base: _EuiThemeBase;
|
|
12634
|
-
export const size: _EuiThemeSizes;
|
|
12635
|
-
|
|
12636
|
-
}
|
|
12637
|
-
declare module '@elastic/eui/src/themes/amsterdam/global_styling/variables/_borders' {
|
|
12638
|
-
import { _EuiThemeBorder } from '@elastic/eui/src/global_styling/variables';
|
|
12639
|
-
export const border: _EuiThemeBorder;
|
|
12640
|
-
|
|
12641
|
-
}
|
|
12642
|
-
declare module '@elastic/eui/src/themes/amsterdam/global_styling/variables/_levels' {
|
|
12643
|
-
import { _EuiThemeLevels } from '@elastic/eui/src/global_styling/variables';
|
|
12644
|
-
export const levels: _EuiThemeLevels;
|
|
12645
|
-
|
|
12646
|
-
}
|
|
12647
|
-
declare module '@elastic/eui/src/themes/amsterdam/global_styling/variables/_typography' {
|
|
12648
|
-
import { _EuiThemeFont, _EuiThemeFontBase, _EuiThemeFontScales, _EuiThemeFontWeights } from '@elastic/eui/src/global_styling/variables/typography';
|
|
12649
|
-
export const fontScale: _EuiThemeFontScales;
|
|
12650
|
-
export const fontBase: _EuiThemeFontBase;
|
|
12651
|
-
export const fontWeight: _EuiThemeFontWeights;
|
|
12652
|
-
export const font: _EuiThemeFont;
|
|
12653
|
-
|
|
12654
|
-
}
|
|
12655
|
-
declare module '@elastic/eui/src/themes/amsterdam/global_styling/variables/_states' {
|
|
12656
|
-
import { _EuiThemeFocus } from '@elastic/eui/src/global_styling/variables/states';
|
|
12657
|
-
export const focus: _EuiThemeFocus;
|
|
12658
|
-
|
|
12659
|
-
}
|
|
12660
|
-
declare module '@elastic/eui/src/themes/amsterdam/global_styling/variables/_buttons' {
|
|
12661
|
-
import { _EuiThemeButton } from '@elastic/eui-theme-common';
|
|
12662
|
-
export const buttons: _EuiThemeButton;
|
|
12663
|
-
|
|
12664
|
-
}
|
|
12665
|
-
declare module '@elastic/eui/src/themes/amsterdam/global_styling/variables/_forms' {
|
|
12666
|
-
export const forms: {
|
|
12667
|
-
maxWidth: string;
|
|
12668
|
-
LIGHT: {
|
|
12669
|
-
background: string;
|
|
12670
|
-
backgroundDisabled: string;
|
|
12671
|
-
backgroundReadOnly: any;
|
|
12672
|
-
backgroundFocused: any;
|
|
12673
|
-
backgroundAutofilled: string;
|
|
12674
|
-
prependBackground: string;
|
|
12675
|
-
border: string;
|
|
12676
|
-
borderAutofilled: string;
|
|
12677
|
-
controlBorder: string;
|
|
12678
|
-
controlBorderSelected: string;
|
|
12679
|
-
controlBorderDisabled: string;
|
|
12680
|
-
controlBackgroundUnselected: any;
|
|
12681
|
-
controlBackgroundDisabled: any;
|
|
12682
|
-
colorHasPlaceholder: string;
|
|
12683
|
-
colorDisabled: any;
|
|
12684
|
-
iconDisabled: any;
|
|
12685
|
-
};
|
|
12686
|
-
DARK: {
|
|
12687
|
-
background: string;
|
|
12688
|
-
backgroundFocused: string;
|
|
12689
|
-
backgroundAutofilled: string;
|
|
12690
|
-
prependBackground: string;
|
|
12691
|
-
border: string;
|
|
12692
|
-
controlBorder: string;
|
|
12693
|
-
controlBorderSelected: string;
|
|
12694
|
-
controlBorderDisabled: string;
|
|
12695
|
-
backgroundDisabled: string;
|
|
12696
|
-
backgroundReadOnly: any;
|
|
12697
|
-
borderAutofilled: string;
|
|
12698
|
-
controlBackgroundUnselected: any;
|
|
12699
|
-
controlBackgroundDisabled: any;
|
|
12700
|
-
colorHasPlaceholder: string;
|
|
12701
|
-
colorDisabled: any;
|
|
12702
|
-
iconDisabled: any;
|
|
12703
|
-
};
|
|
12704
|
-
};
|
|
12705
|
-
|
|
12706
|
-
}
|
|
12707
|
-
declare module '@elastic/eui/src/themes/amsterdam/global_styling/variables/_components' {
|
|
12708
|
-
import { _EuiThemeComponents } from '@elastic/eui-theme-common';
|
|
12709
|
-
export const components: _EuiThemeComponents;
|
|
12710
|
-
|
|
12711
|
-
}
|
|
12712
|
-
declare module '@elastic/eui/src/themes/amsterdam/theme' {
|
|
12713
|
-
import { EuiThemeShape } from '@elastic/eui/src/services/theme/types';
|
|
12714
|
-
export const AMSTERDAM_NAME_KEY = "EUI_THEME_AMSTERDAM";
|
|
12715
|
-
export const euiThemeAmsterdam: EuiThemeShape;
|
|
12716
|
-
export const EuiThemeAmsterdam: {
|
|
12717
|
-
model: EuiThemeShape;
|
|
12718
|
-
root: EuiThemeShape;
|
|
12719
|
-
key: string;
|
|
12720
|
-
};
|
|
12721
|
-
|
|
12722
13037
|
}
|
|
12723
13038
|
declare module '@elastic/eui/src/themes/amsterdam/global_styling/mixins/shadow' {
|
|
12724
13039
|
export * from '@elastic/eui/src/global_styling/mixins/_shadow';
|
|
@@ -14020,6 +14335,7 @@ declare module '@elastic/eui/src/components/filter_group/filter_select_item' {
|
|
|
14020
14335
|
isFocused?: boolean;
|
|
14021
14336
|
toolTipContent?: EuiComboBoxOptionOption['toolTipContent'];
|
|
14022
14337
|
toolTipProps?: EuiComboBoxOptionOption['toolTipProps'];
|
|
14338
|
+
forwardRef?: (ref: HTMLButtonElement | null) => void;
|
|
14023
14339
|
}
|
|
14024
14340
|
/**
|
|
14025
14341
|
* TODO: This component should removed in favor of EuiSelectable usage
|
|
@@ -14036,6 +14352,7 @@ declare module '@elastic/eui/src/components/filter_group/filter_select_item' {
|
|
|
14036
14352
|
state: {
|
|
14037
14353
|
hasFocus: boolean;
|
|
14038
14354
|
};
|
|
14355
|
+
setButtonRef: (node: HTMLButtonElement | null) => void;
|
|
14039
14356
|
focus: () => void;
|
|
14040
14357
|
toggleToolTip: (isFocused: boolean) => void;
|
|
14041
14358
|
hasFocus: () => boolean;
|
|
@@ -14088,6 +14405,7 @@ declare module '@elastic/eui/src/components/combo_box/combo_box_options_list/com
|
|
|
14088
14405
|
isCaseSensitive?: boolean;
|
|
14089
14406
|
isLoading?: boolean;
|
|
14090
14407
|
listRef: RefCallback<HTMLDivElement>;
|
|
14408
|
+
setListOptionRefs: (ref: HTMLButtonElement | null, index: number) => void;
|
|
14091
14409
|
matchingOptions: Array<EuiComboBoxOptionOption<T>>;
|
|
14092
14410
|
onCloseList: (event: Event) => void;
|
|
14093
14411
|
onCreateOption?: (searchValue: string, options: Array<EuiComboBoxOptionOption<T>>) => boolean | void;
|
|
@@ -14294,6 +14612,7 @@ declare module '@elastic/eui/src/components/combo_box/combo_box' {
|
|
|
14294
14612
|
hasFocus: boolean;
|
|
14295
14613
|
isListOpen: boolean;
|
|
14296
14614
|
matchingOptions: Array<EuiComboBoxOptionOption<T>>;
|
|
14615
|
+
listOptionRefs: Array<HTMLButtonElement | null>;
|
|
14297
14616
|
searchValue: string;
|
|
14298
14617
|
}
|
|
14299
14618
|
export class EuiComboBox<T> extends Component<_EuiComboBoxProps<T>, EuiComboBoxState<T>> {
|
|
@@ -14318,6 +14637,7 @@ declare module '@elastic/eui/src/components/combo_box/combo_box' {
|
|
|
14318
14637
|
searchInputRefCallback: RefCallback<HTMLInputElement>;
|
|
14319
14638
|
listRefInstance: RefInstance<HTMLDivElement>;
|
|
14320
14639
|
listRefCallback: RefCallback<HTMLDivElement>;
|
|
14640
|
+
setListOptionRefs: (node: HTMLButtonElement | null, index: number) => void;
|
|
14321
14641
|
openList: () => void;
|
|
14322
14642
|
closeList: () => void;
|
|
14323
14643
|
incrementActiveOptionIndex: (amount: number) => void;
|
|
@@ -14656,7 +14976,7 @@ declare module '@elastic/eui/src/components/datagrid/utils/row_heights' {
|
|
|
14656
14976
|
/**
|
|
14657
14977
|
* Height types
|
|
14658
14978
|
*/
|
|
14659
|
-
getHeightType: (option?: EuiDataGridRowHeightOption) => "
|
|
14979
|
+
getHeightType: (option?: EuiDataGridRowHeightOption) => "default" | "auto" | "lineCount" | "numerical";
|
|
14660
14980
|
/**
|
|
14661
14981
|
* Line count utils
|
|
14662
14982
|
*/
|
|
@@ -16065,6 +16385,48 @@ declare module '@elastic/eui/src/components/datagrid/utils/focus' {
|
|
|
16065
16385
|
export const getParentCellContent: (_element: Node | HTMLElement) => HTMLElement | null;
|
|
16066
16386
|
export {};
|
|
16067
16387
|
|
|
16388
|
+
}
|
|
16389
|
+
declare module '@elastic/eui/src/components/datagrid/body/cell/data_grid_cell.styles' {
|
|
16390
|
+
import { UseEuiTheme } from '@elastic/eui/src/services';
|
|
16391
|
+
export const euiDataGridCellOutlineStyles: ({ euiTheme }: UseEuiTheme) => {
|
|
16392
|
+
borderRadius: string;
|
|
16393
|
+
focusColor: string;
|
|
16394
|
+
focusStyles: string;
|
|
16395
|
+
hoverColor: string;
|
|
16396
|
+
hoverStyles: string;
|
|
16397
|
+
markedColor: string;
|
|
16398
|
+
markedStyles: string;
|
|
16399
|
+
};
|
|
16400
|
+
export const euiDataGridCellOutlineSelectors: (parentSelector?: string) => {
|
|
16401
|
+
outline: {
|
|
16402
|
+
show: string;
|
|
16403
|
+
hover: string;
|
|
16404
|
+
focusTrapped: string;
|
|
16405
|
+
marked: string;
|
|
16406
|
+
};
|
|
16407
|
+
actions: {
|
|
16408
|
+
hoverZone: string;
|
|
16409
|
+
hoverColor: string;
|
|
16410
|
+
showAnimation: string;
|
|
16411
|
+
hoverAnimation: string;
|
|
16412
|
+
};
|
|
16413
|
+
header: {
|
|
16414
|
+
focus: string;
|
|
16415
|
+
focusTrapped: string;
|
|
16416
|
+
showActions: string;
|
|
16417
|
+
hideActions: string;
|
|
16418
|
+
};
|
|
16419
|
+
};
|
|
16420
|
+
export const euiDataGridRowCellStyles: (euiThemeContext: UseEuiTheme) => {
|
|
16421
|
+
euiDataGridRowCell: import("@emotion/react").SerializedStyles;
|
|
16422
|
+
content: {
|
|
16423
|
+
euiDataGridRowCell__content: import("@emotion/react").SerializedStyles;
|
|
16424
|
+
autoHeight: import("@emotion/react").SerializedStyles;
|
|
16425
|
+
defaultHeight: import("@emotion/react").SerializedStyles;
|
|
16426
|
+
controlColumn: import("@emotion/react").SerializedStyles;
|
|
16427
|
+
};
|
|
16428
|
+
};
|
|
16429
|
+
|
|
16068
16430
|
}
|
|
16069
16431
|
declare module '@elastic/eui/src/components/datagrid/data_grid.styles' {
|
|
16070
16432
|
import { UseEuiTheme } from '@elastic/eui/src/services';
|
|
@@ -16249,45 +16611,6 @@ declare module '@elastic/eui/src/components/datagrid/body/cell/focus_utils' {
|
|
|
16249
16611
|
cellEl: HTMLElement;
|
|
16250
16612
|
}>;
|
|
16251
16613
|
|
|
16252
|
-
}
|
|
16253
|
-
declare module '@elastic/eui/src/components/datagrid/body/cell/data_grid_cell.styles' {
|
|
16254
|
-
import { UseEuiTheme } from '@elastic/eui/src/services';
|
|
16255
|
-
export const euiDataGridCellOutlineStyles: ({ euiTheme }: UseEuiTheme) => {
|
|
16256
|
-
borderRadius: string;
|
|
16257
|
-
focusColor: string;
|
|
16258
|
-
focusStyles: string;
|
|
16259
|
-
hoverColor: string;
|
|
16260
|
-
hoverStyles: string;
|
|
16261
|
-
};
|
|
16262
|
-
export const euiDataGridCellOutlineSelectors: (parentSelector?: string) => {
|
|
16263
|
-
outline: {
|
|
16264
|
-
show: string;
|
|
16265
|
-
hover: string;
|
|
16266
|
-
focusTrapped: string;
|
|
16267
|
-
};
|
|
16268
|
-
actions: {
|
|
16269
|
-
hoverZone: string;
|
|
16270
|
-
hoverColor: string;
|
|
16271
|
-
showAnimation: string;
|
|
16272
|
-
hoverAnimation: string;
|
|
16273
|
-
};
|
|
16274
|
-
header: {
|
|
16275
|
-
focus: string;
|
|
16276
|
-
focusTrapped: string;
|
|
16277
|
-
showActions: string;
|
|
16278
|
-
hideActions: string;
|
|
16279
|
-
};
|
|
16280
|
-
};
|
|
16281
|
-
export const euiDataGridRowCellStyles: (euiThemeContext: UseEuiTheme) => {
|
|
16282
|
-
euiDataGridRowCell: import("@emotion/react").SerializedStyles;
|
|
16283
|
-
content: {
|
|
16284
|
-
euiDataGridRowCell__content: import("@emotion/react").SerializedStyles;
|
|
16285
|
-
autoHeight: import("@emotion/react").SerializedStyles;
|
|
16286
|
-
defaultHeight: import("@emotion/react").SerializedStyles;
|
|
16287
|
-
controlColumn: import("@emotion/react").SerializedStyles;
|
|
16288
|
-
};
|
|
16289
|
-
};
|
|
16290
|
-
|
|
16291
16614
|
}
|
|
16292
16615
|
declare module '@elastic/eui/src/components/datagrid/body/header/data_grid_header_cell_wrapper.styles' {
|
|
16293
16616
|
import { UseEuiTheme } from '@elastic/eui/src/services';
|
|
@@ -21845,7 +22168,7 @@ declare module '@elastic/eui/src/components/provider/provider' {
|
|
|
21845
22168
|
import { EuiComponentDefaults } from '@elastic/eui/src/components/provider/component_defaults';
|
|
21846
22169
|
export interface EuiProviderProps<T> extends PropsWithChildren, EuiGlobalStylesProps, Pick<EuiThemeProviderProps<T>, 'modify'> {
|
|
21847
22170
|
/**
|
|
21848
|
-
* Provide a specific EuiTheme; Defaults to
|
|
22171
|
+
* Provide a specific EuiTheme; Defaults to EuiThemeAmsterdam;
|
|
21849
22172
|
* Pass `null` to remove all theming including global reset
|
|
21850
22173
|
*/
|
|
21851
22174
|
theme?: EuiThemeSystem | null;
|
|
@@ -23104,13 +23427,13 @@ declare module '@elastic/eui/src/components/selectable/selectable_list/selectabl
|
|
|
23104
23427
|
slot?: string | undefined;
|
|
23105
23428
|
style?: CSSProperties | undefined;
|
|
23106
23429
|
title?: string | undefined;
|
|
23430
|
+
css?: import("@emotion/serialize").Interpolation<import("@emotion/react").Theme>;
|
|
23107
23431
|
width: number;
|
|
23108
23432
|
color?: string | undefined;
|
|
23109
23433
|
content?: string | undefined;
|
|
23110
|
-
hidden?: boolean | undefined;
|
|
23111
|
-
css?: import("@emotion/serialize").Interpolation<import("@emotion/react").Theme>;
|
|
23112
23434
|
translate?: "yes" | "no" | undefined;
|
|
23113
23435
|
property?: string | undefined;
|
|
23436
|
+
hidden?: boolean | undefined;
|
|
23114
23437
|
className?: string | undefined;
|
|
23115
23438
|
defaultChecked?: boolean | undefined;
|
|
23116
23439
|
defaultValue?: string | number | readonly string[] | undefined;
|