@elastic/eui 83.1.1-rc1.0 → 85.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/eui_theme_dark.css +4 -153
- package/dist/eui_theme_dark.min.css +1 -1
- package/dist/eui_theme_light.css +4 -153
- package/dist/eui_theme_light.min.css +1 -1
- package/es/components/accessibility/screen_reader_only/screen_reader_only.js +1 -1
- package/es/components/accordion/accordion.js +4 -14
- 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 +1 -1
- package/es/components/basic_table/collapsed_item_actions.js +1 -1
- package/es/components/basic_table/in_memory_table.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 -3
- package/es/components/collapsible_nav/collapsible_nav_group/collapsible_nav_group.js +2 -2
- 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/datagrid/body/data_grid_body.js +13 -13
- package/es/components/datagrid/body/data_grid_body_custom.js +13 -13
- package/es/components/datagrid/body/data_grid_body_virtualized.js +13 -13
- package/es/components/datagrid/body/data_grid_cell.js +24 -24
- package/es/components/datagrid/body/header/data_grid_header_cell.js +12 -12
- package/es/components/datagrid/body/header/data_grid_header_row.js +13 -13
- package/es/components/datagrid/controls/column_sorting_draggable.js +1 -1
- package/es/components/datagrid/data_grid.js +13 -13
- package/es/components/datagrid/utils/grid_height_width.js +18 -11
- package/es/components/datagrid/utils/in_memory.js +12 -12
- package/es/components/date_picker/date_picker.js +2 -2
- package/es/components/date_picker/date_picker_range.js +1 -1
- package/es/components/empty_prompt/empty_prompt.js +1 -1
- package/es/components/facet/facet_button.js +2 -3
- package/es/components/filter_group/filter_button.js +29 -18
- package/es/components/filter_group/filter_button.styles.js +93 -0
- package/es/components/filter_group/filter_group.js +8 -5
- package/es/components/filter_group/filter_group.styles.js +55 -0
- package/es/components/form/field_number/field_number.js +1 -1
- 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/range/dual_range.js +86 -30
- package/es/components/header/header_links/header_link.js +1 -1
- package/es/components/header/header_links/header_links.js +1 -5
- package/es/components/header/header_logo/header_logo.js +1 -1
- package/es/components/icon/assets/at.js +34 -0
- package/es/components/icon/assets/key.js +36 -0
- package/es/components/icon/icon.js +1 -1
- package/es/components/icon/icon_map.js +2 -0
- package/es/components/key_pad_menu/key_pad_menu_item.js +1 -1
- package/es/components/link/link.styles.js +2 -2
- package/es/components/list_group/list_group.js +3 -4
- package/es/components/list_group/list_group_item.js +3 -4
- 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/notification/notification_event.js +2 -2
- package/es/components/notification/notification_event_meta.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/popover/input_popover.js +4 -3
- package/es/components/popover/popover.js +3 -10
- package/es/components/provider/nested/index.js +9 -0
- package/es/components/provider/nested/nested_context.js +27 -0
- package/es/components/provider/provider.js +10 -2
- package/es/components/resizable_container/resizable_collapse_button.js +2 -2
- package/es/components/search_bar/filters/field_value_selection_filter.js +37 -31
- package/es/components/search_bar/index.js +2 -1
- package/es/components/search_bar/search_bar.js +2 -2
- package/es/components/search_bar/search_filters.js +9 -9
- 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/steps/step_horizontal.js +7 -2
- package/es/components/steps/step_horizontal.styles.js +9 -3
- package/es/components/steps/steps_horizontal.js +7 -2
- package/es/components/suggest/suggest.js +1 -1
- package/es/components/suggest/suggest_item.js +1 -1
- package/es/components/table/table_header_button.js +1 -1
- package/es/components/tabs/tab.js +1 -1
- package/es/components/tabs/tab.styles.js +13 -25
- package/es/components/text/text_align.js +1 -1
- package/es/components/text/text_color.js +1 -2
- package/es/components/timeline/timeline_item_icon.js +1 -1
- package/es/components/title/title.js +1 -2
- package/es/components/toast/global_toast_list.js +1 -1
- package/es/components/toast/global_toast_list_item.js +1 -2
- package/es/components/toast/toast.js +1 -1
- package/es/components/tool_tip/icon_tip.js +1 -1
- package/es/components/tour/tour_step.js +0 -4
- package/es/services/{theme → emotion}/clone_element.js +0 -2
- package/es/services/emotion/index.js +9 -0
- package/es/services/index.js +1 -0
- package/es/services/theme/emotion.js +29 -0
- package/es/services/theme/hooks.js +3 -15
- package/es/services/theme/index.js +2 -1
- package/es/services/theme/provider.js +2 -8
- package/es/services/theme/warning.js +32 -0
- package/eui.d.ts +1148 -1046
- package/i18ntokens.json +20 -20
- package/lib/components/accessibility/screen_reader_only/screen_reader_only.js +2 -2
- package/lib/components/accordion/accordion.js +4 -14
- 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 +1 -1
- package/lib/components/basic_table/collapsed_item_actions.js +1 -1
- package/lib/components/basic_table/in_memory_table.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 -3
- package/lib/components/collapsible_nav/collapsible_nav_group/collapsible_nav_group.js +2 -2
- 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/datagrid/body/data_grid_body.js +13 -13
- package/lib/components/datagrid/body/data_grid_body_custom.js +13 -13
- package/lib/components/datagrid/body/data_grid_body_virtualized.js +13 -13
- package/lib/components/datagrid/body/data_grid_cell.js +24 -24
- package/lib/components/datagrid/body/header/data_grid_header_cell.js +12 -12
- package/lib/components/datagrid/body/header/data_grid_header_row.js +13 -13
- package/lib/components/datagrid/controls/column_sorting_draggable.js +1 -1
- package/lib/components/datagrid/data_grid.js +13 -13
- package/lib/components/datagrid/utils/grid_height_width.js +18 -11
- package/lib/components/datagrid/utils/in_memory.js +12 -12
- package/lib/components/date_picker/date_picker.js +2 -2
- package/lib/components/date_picker/date_picker_range.js +1 -1
- package/lib/components/empty_prompt/empty_prompt.js +1 -1
- package/lib/components/facet/facet_button.js +2 -3
- package/lib/components/filter_group/filter_button.js +29 -20
- package/lib/components/filter_group/filter_button.styles.js +100 -0
- package/lib/components/filter_group/filter_group.js +8 -5
- package/lib/components/filter_group/filter_group.styles.js +60 -0
- package/lib/components/form/field_number/field_number.js +1 -1
- 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/range/dual_range.js +86 -30
- package/lib/components/header/header_links/header_link.js +1 -1
- package/lib/components/header/header_links/header_links.js +1 -5
- package/lib/components/header/header_logo/header_logo.js +1 -1
- package/lib/components/icon/assets/at.js +42 -0
- package/lib/components/icon/assets/key.js +44 -0
- package/lib/components/icon/icon.js +1 -1
- package/lib/components/icon/icon_map.js +2 -0
- package/lib/components/icon/svgs/at.svg +3 -0
- package/lib/components/icon/svgs/key.svg +4 -0
- package/lib/components/key_pad_menu/key_pad_menu_item.js +1 -1
- package/lib/components/link/link.styles.js +2 -2
- package/lib/components/list_group/list_group.js +3 -4
- package/lib/components/list_group/list_group_item.js +3 -4
- 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/notification/notification_event.js +2 -2
- package/lib/components/notification/notification_event_meta.js +1 -1
- package/lib/components/page/page_header/page_header_content.js +1 -1
- package/lib/components/popover/input_popover.js +4 -3
- package/lib/components/popover/popover.js +3 -10
- package/lib/components/provider/nested/index.js +16 -0
- package/lib/components/provider/nested/nested_context.js +39 -0
- package/lib/components/provider/provider.js +10 -2
- package/lib/components/resizable_container/resizable_collapse_button.js +2 -2
- package/lib/components/search_bar/filters/field_value_selection_filter.js +37 -31
- package/lib/components/search_bar/index.js +8 -1
- package/lib/components/search_bar/search_bar.js +1 -1
- package/lib/components/search_bar/search_filters.js +11 -11
- 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/steps/step_horizontal.js +7 -2
- package/lib/components/steps/step_horizontal.styles.js +9 -3
- package/lib/components/steps/steps_horizontal.js +9 -3
- package/lib/components/suggest/suggest.js +1 -1
- package/lib/components/suggest/suggest_item.js +1 -1
- package/lib/components/table/table_header_button.js +1 -1
- package/lib/components/tabs/tab.js +1 -1
- package/lib/components/tabs/tab.styles.js +12 -24
- package/lib/components/text/text_align.js +2 -2
- package/lib/components/text/text_color.js +1 -2
- package/lib/components/timeline/timeline_item_icon.js +1 -1
- package/lib/components/title/title.js +1 -2
- package/lib/components/toast/global_toast_list.js +1 -1
- package/lib/components/toast/global_toast_list_item.js +1 -2
- package/lib/components/toast/toast.js +1 -1
- package/lib/components/tool_tip/icon_tip.js +1 -1
- package/lib/services/{theme → emotion}/clone_element.js +0 -2
- package/lib/services/emotion/index.js +16 -0
- package/lib/services/index.js +12 -0
- package/lib/services/theme/emotion.js +35 -0
- package/lib/services/theme/hooks.js +3 -15
- package/lib/services/theme/index.js +3 -2
- package/lib/services/theme/provider.js +3 -11
- package/lib/services/theme/warning.js +41 -0
- package/optimize/es/components/accessibility/screen_reader_only/screen_reader_only.js +1 -1
- package/optimize/es/components/accordion/accordion.js +3 -13
- package/optimize/es/components/card/card.js +1 -2
- package/optimize/es/components/datagrid/utils/grid_height_width.js +18 -11
- package/optimize/es/components/facet/facet_button.js +1 -2
- package/optimize/es/components/filter_group/filter_button.js +29 -18
- package/optimize/es/components/filter_group/filter_button.styles.js +93 -0
- package/optimize/es/components/filter_group/filter_group.js +8 -5
- package/optimize/es/components/filter_group/filter_group.styles.js +55 -0
- package/optimize/es/components/form/range/dual_range.js +86 -30
- package/optimize/es/components/icon/assets/at.js +33 -0
- package/optimize/es/components/icon/assets/key.js +35 -0
- package/optimize/es/components/icon/icon_map.js +2 -0
- package/optimize/es/components/link/link.styles.js +2 -2
- package/optimize/es/components/list_group/list_group.js +1 -2
- package/optimize/es/components/list_group/list_group_item.js +1 -2
- package/optimize/es/components/popover/input_popover.js +4 -3
- package/optimize/es/components/popover/popover.js +3 -6
- package/optimize/es/components/provider/nested/index.js +9 -0
- package/optimize/es/components/provider/nested/nested_context.js +27 -0
- package/optimize/es/components/provider/provider.js +10 -2
- package/optimize/es/components/resizable_container/resizable_collapse_button.js +2 -2
- package/optimize/es/components/search_bar/filters/field_value_selection_filter.js +37 -31
- package/optimize/es/components/search_bar/index.js +2 -1
- package/optimize/es/components/search_bar/search_bar.js +2 -2
- package/optimize/es/components/search_bar/search_filters.js +8 -8
- package/optimize/es/components/steps/step_horizontal.js +6 -2
- package/optimize/es/components/steps/step_horizontal.styles.js +9 -3
- package/optimize/es/components/steps/steps_horizontal.js +6 -2
- package/optimize/es/components/tabs/tab.js +1 -1
- package/optimize/es/components/tabs/tab.styles.js +13 -25
- package/optimize/es/components/text/text_align.js +1 -1
- package/optimize/es/components/text/text_color.js +1 -2
- package/optimize/es/components/title/title.js +1 -2
- package/optimize/es/components/toast/global_toast_list_item.js +1 -2
- package/optimize/es/services/{theme → emotion}/clone_element.js +0 -2
- package/optimize/es/services/emotion/index.js +9 -0
- package/optimize/es/services/index.js +1 -0
- package/optimize/es/services/theme/emotion.js +29 -0
- package/optimize/es/services/theme/hooks.js +3 -15
- package/optimize/es/services/theme/index.js +2 -1
- package/optimize/es/services/theme/provider.js +2 -8
- package/optimize/es/services/theme/warning.js +32 -0
- package/optimize/lib/components/accessibility/screen_reader_only/screen_reader_only.js +2 -2
- package/optimize/lib/components/accordion/accordion.js +3 -13
- package/optimize/lib/components/card/card.js +1 -2
- package/optimize/lib/components/datagrid/utils/grid_height_width.js +18 -11
- package/optimize/lib/components/facet/facet_button.js +1 -2
- package/optimize/lib/components/filter_group/filter_button.js +29 -21
- package/optimize/lib/components/filter_group/filter_button.styles.js +100 -0
- package/optimize/lib/components/filter_group/filter_group.js +8 -5
- package/optimize/lib/components/filter_group/filter_group.styles.js +60 -0
- package/optimize/lib/components/form/range/dual_range.js +86 -30
- package/optimize/lib/components/icon/assets/at.js +42 -0
- package/optimize/lib/components/icon/assets/key.js +44 -0
- package/optimize/lib/components/icon/icon_map.js +2 -0
- package/optimize/lib/components/icon/svgs/at.svg +3 -0
- package/optimize/lib/components/icon/svgs/key.svg +4 -0
- package/optimize/lib/components/link/link.styles.js +2 -2
- package/optimize/lib/components/list_group/list_group.js +1 -2
- package/optimize/lib/components/list_group/list_group_item.js +1 -2
- package/optimize/lib/components/popover/input_popover.js +4 -3
- package/optimize/lib/components/popover/popover.js +3 -6
- package/optimize/lib/components/provider/nested/index.js +16 -0
- package/optimize/lib/components/provider/nested/nested_context.js +39 -0
- package/optimize/lib/components/provider/provider.js +10 -2
- package/optimize/lib/components/resizable_container/resizable_collapse_button.js +2 -2
- package/optimize/lib/components/search_bar/filters/field_value_selection_filter.js +37 -31
- package/optimize/lib/components/search_bar/index.js +8 -1
- package/optimize/lib/components/search_bar/search_bar.js +1 -1
- package/optimize/lib/components/search_bar/search_filters.js +10 -10
- package/optimize/lib/components/steps/step_horizontal.js +6 -2
- package/optimize/lib/components/steps/step_horizontal.styles.js +9 -3
- package/optimize/lib/components/steps/steps_horizontal.js +8 -3
- package/optimize/lib/components/tabs/tab.js +1 -1
- package/optimize/lib/components/tabs/tab.styles.js +12 -24
- package/optimize/lib/components/text/text_align.js +2 -2
- package/optimize/lib/components/text/text_color.js +1 -2
- package/optimize/lib/components/title/title.js +1 -2
- package/optimize/lib/components/toast/global_toast_list_item.js +1 -2
- package/{test-env/services/theme → optimize/lib/services/emotion}/clone_element.js +0 -2
- package/optimize/lib/services/emotion/index.js +16 -0
- package/optimize/lib/services/index.js +12 -0
- package/optimize/lib/services/theme/emotion.js +35 -0
- package/optimize/lib/services/theme/hooks.js +3 -15
- package/optimize/lib/services/theme/index.js +3 -2
- package/optimize/lib/services/theme/provider.js +3 -11
- package/optimize/lib/services/theme/warning.js +41 -0
- package/package.json +5 -4
- package/src/components/combo_box/combo_box_input/_combo_box_pill.scss +4 -0
- package/src/components/filter_group/_index.scss +0 -2
- package/src/components/resizable_container/_resizable_collapse_button.scss +1 -0
- package/src/themes/amsterdam/overrides/_index.scss +0 -1
- package/test-env/components/accessibility/screen_reader_only/screen_reader_only.js +2 -2
- package/test-env/components/accordion/accordion.js +4 -14
- 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 +1 -1
- package/test-env/components/basic_table/collapsed_item_actions.js +1 -1
- package/test-env/components/basic_table/in_memory_table.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 -3
- package/test-env/components/collapsible_nav/collapsible_nav_group/collapsible_nav_group.js +2 -2
- 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/datagrid/body/data_grid_body.js +13 -13
- package/test-env/components/datagrid/body/data_grid_body_custom.js +13 -13
- package/test-env/components/datagrid/body/data_grid_body_virtualized.js +13 -13
- package/test-env/components/datagrid/body/data_grid_cell.js +24 -24
- package/test-env/components/datagrid/body/header/data_grid_header_cell.js +12 -12
- package/test-env/components/datagrid/body/header/data_grid_header_row.js +13 -13
- package/test-env/components/datagrid/controls/column_sorting_draggable.js +1 -1
- package/test-env/components/datagrid/data_grid.js +13 -13
- package/test-env/components/datagrid/utils/grid_height_width.js +18 -11
- package/test-env/components/datagrid/utils/in_memory.js +12 -12
- package/test-env/components/date_picker/date_picker.js +2 -2
- package/test-env/components/date_picker/date_picker_range.js +1 -1
- package/test-env/components/empty_prompt/empty_prompt.js +1 -1
- package/test-env/components/facet/facet_button.js +2 -3
- package/test-env/components/filter_group/filter_button.js +29 -21
- package/test-env/components/filter_group/filter_button.styles.js +100 -0
- package/test-env/components/filter_group/filter_group.js +8 -5
- package/test-env/components/filter_group/filter_group.styles.js +60 -0
- package/test-env/components/form/field_number/field_number.js +1 -1
- 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/range/dual_range.js +86 -30
- package/test-env/components/header/header_links/header_link.js +1 -1
- package/test-env/components/header/header_links/header_links.js +1 -5
- package/test-env/components/header/header_logo/header_logo.js +1 -1
- package/test-env/components/icon/assets/at.js +42 -0
- package/test-env/components/icon/assets/key.js +44 -0
- package/test-env/components/icon/icon_map.js +2 -0
- package/test-env/components/key_pad_menu/key_pad_menu_item.js +1 -1
- package/test-env/components/link/link.styles.js +2 -2
- package/test-env/components/list_group/list_group.js +3 -4
- package/test-env/components/list_group/list_group_item.js +3 -4
- 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/notification/notification_event.js +2 -2
- package/test-env/components/notification/notification_event_meta.js +1 -1
- package/test-env/components/page/page_header/page_header_content.js +1 -1
- package/test-env/components/popover/input_popover.js +4 -3
- package/test-env/components/popover/popover.js +3 -10
- package/test-env/components/provider/nested/index.js +16 -0
- package/test-env/components/provider/nested/nested_context.js +39 -0
- package/test-env/components/provider/provider.js +10 -2
- package/test-env/components/resizable_container/resizable_collapse_button.js +2 -2
- package/test-env/components/search_bar/filters/field_value_selection_filter.js +37 -31
- package/test-env/components/search_bar/index.js +8 -1
- package/test-env/components/search_bar/search_bar.js +1 -1
- package/test-env/components/search_bar/search_filters.js +11 -11
- 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/steps/step_horizontal.js +7 -2
- package/test-env/components/steps/step_horizontal.styles.js +9 -3
- package/test-env/components/steps/steps_horizontal.js +9 -3
- package/test-env/components/suggest/suggest.js +1 -1
- package/test-env/components/suggest/suggest_item.js +1 -1
- package/test-env/components/table/table_header_button.js +1 -1
- package/test-env/components/tabs/tab.js +1 -1
- package/test-env/components/tabs/tab.styles.js +12 -24
- package/test-env/components/text/text_align.js +2 -2
- package/test-env/components/text/text_color.js +1 -2
- package/test-env/components/timeline/timeline_item_icon.js +1 -1
- package/test-env/components/title/title.js +1 -2
- package/test-env/components/toast/global_toast_list.js +1 -1
- package/test-env/components/toast/global_toast_list_item.js +1 -2
- package/test-env/components/toast/toast.js +1 -1
- package/test-env/components/tool_tip/icon_tip.js +1 -1
- package/{optimize/lib/services/theme → test-env/services/emotion}/clone_element.js +0 -2
- package/test-env/services/emotion/index.js +16 -0
- package/test-env/services/index.js +12 -0
- package/test-env/services/theme/emotion.js +35 -0
- package/test-env/services/theme/hooks.js +3 -15
- package/test-env/services/theme/index.js +3 -2
- package/test-env/services/theme/provider.js +3 -11
- package/test-env/services/theme/warning.js +41 -0
- package/src/components/filter_group/_filter_button.scss +0 -61
- package/src/components/filter_group/_filter_group.scss +0 -63
- package/src/themes/amsterdam/overrides/_filter_group.scss +0 -27
package/eui.d.ts
CHANGED
|
@@ -1,15 +1,3 @@
|
|
|
1
|
-
declare module '@elastic/eui/src/services/theme/clone_element' {
|
|
2
|
-
import React from 'react';
|
|
3
|
-
/**
|
|
4
|
-
* React.cloneElement does not work if the cloned element does not already have the
|
|
5
|
-
* `css` prop - as a result, we need to use `jsx()` to manually clone the element
|
|
6
|
-
* See https://github.com/emotion-js/emotion/issues/1404
|
|
7
|
-
*
|
|
8
|
-
* NOTE: We're still using/testing this utility internally, so this is not yet a public API
|
|
9
|
-
*/
|
|
10
|
-
export const cloneElementWithCss: (element: any, props: any) => React.ReactElement;
|
|
11
|
-
|
|
12
|
-
}
|
|
13
1
|
declare module '@elastic/eui/src/services/keys' {
|
|
14
2
|
export const ENTER = "Enter";
|
|
15
3
|
export const SPACE = " ";
|
|
@@ -1029,153 +1017,697 @@ declare module '@elastic/eui/src/components/color_picker/color_stops/utils' {
|
|
|
1029
1017
|
export const getPositionFromStop: (stop: ColorStop['stop'], ref: HTMLDivElement, min: number, max: number) => number;
|
|
1030
1018
|
|
|
1031
1019
|
}
|
|
1032
|
-
declare module '@elastic/eui/src/
|
|
1020
|
+
declare module '@elastic/eui/src/global_styling/mixins/_color' {
|
|
1033
1021
|
import { UseEuiTheme } from '@elastic/eui/src/services';
|
|
1034
|
-
export const
|
|
1035
|
-
export type
|
|
1036
|
-
export
|
|
1037
|
-
|
|
1038
|
-
|
|
1022
|
+
export const BACKGROUND_COLORS: readonly ["transparent", "plain", "subdued", "accent", "primary", "success", "warning", "danger"];
|
|
1023
|
+
export type _EuiBackgroundColor = (typeof BACKGROUND_COLORS)[number];
|
|
1024
|
+
export interface _EuiBackgroundColorOptions {
|
|
1025
|
+
/**
|
|
1026
|
+
* Use `opaque` for containers of unknown content.
|
|
1027
|
+
* Use `transparent` for interactive states like hover and focus.
|
|
1028
|
+
*/
|
|
1029
|
+
method?: 'opaque' | 'transparent';
|
|
1039
1030
|
}
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
export const euiButtonColor: (euiThemeContext: UseEuiTheme, color: _EuiButtonColor | 'disabled') => {
|
|
1047
|
-
color: string;
|
|
1048
|
-
backgroundColor: string;
|
|
1049
|
-
};
|
|
1050
|
-
/**
|
|
1051
|
-
* Creates the `fill` version of buttons styles with proper text contrast.
|
|
1052
|
-
* @param euiThemeContext
|
|
1053
|
-
* @param color One of the named button colors or 'disabled'
|
|
1054
|
-
* @returns Style object `{ backgroundColor, color }`
|
|
1055
|
-
*/
|
|
1056
|
-
export const euiButtonFillColor: (euiThemeContext: UseEuiTheme, color: _EuiButtonColor | 'disabled') => {
|
|
1057
|
-
color: string;
|
|
1058
|
-
backgroundColor: string;
|
|
1059
|
-
};
|
|
1060
|
-
/**
|
|
1061
|
-
* Creates the `empty` version of button styles using the text-variant and adding interactive styles.
|
|
1062
|
-
* @param euiThemeContext
|
|
1063
|
-
* @param color One of the named button colors or 'disabled'
|
|
1064
|
-
* @returns Style object `{ backgroundColor, color }` where `background` is typically used for interactive states
|
|
1065
|
-
*/
|
|
1066
|
-
export const euiButtonEmptyColor: (euiThemeContext: UseEuiTheme, color: _EuiButtonColor | 'disabled') => {
|
|
1067
|
-
color: string;
|
|
1068
|
-
backgroundColor: string;
|
|
1069
|
-
};
|
|
1070
|
-
/**
|
|
1071
|
-
* Given the button display type, returns the Emotion based color keys.
|
|
1072
|
-
* @param options Button display type
|
|
1073
|
-
* @returns An object of `_EuiButtonColor` keys including `disabled`
|
|
1074
|
-
*/
|
|
1075
|
-
export const useEuiButtonColorCSS: (options?: _EuiButtonOptions) => {
|
|
1076
|
-
text: import("@emotion/utils").SerializedStyles;
|
|
1031
|
+
export const euiBackgroundColor: ({ euiTheme, colorMode }: UseEuiTheme, color: _EuiBackgroundColor, { method }?: _EuiBackgroundColorOptions) => string;
|
|
1032
|
+
export const useEuiBackgroundColor: (color: _EuiBackgroundColor, { method }?: _EuiBackgroundColorOptions) => string;
|
|
1033
|
+
export const useEuiBackgroundColorCSS: () => {
|
|
1034
|
+
transparent: import("@emotion/utils").SerializedStyles;
|
|
1035
|
+
plain: import("@emotion/utils").SerializedStyles;
|
|
1036
|
+
subdued: import("@emotion/utils").SerializedStyles;
|
|
1077
1037
|
accent: import("@emotion/utils").SerializedStyles;
|
|
1078
1038
|
primary: import("@emotion/utils").SerializedStyles;
|
|
1079
1039
|
success: import("@emotion/utils").SerializedStyles;
|
|
1080
1040
|
warning: import("@emotion/utils").SerializedStyles;
|
|
1081
1041
|
danger: import("@emotion/utils").SerializedStyles;
|
|
1082
|
-
disabled: import("@emotion/utils").SerializedStyles;
|
|
1083
|
-
};
|
|
1084
|
-
/**
|
|
1085
|
-
* Creates the translate animation when button is in focus.
|
|
1086
|
-
* @returns string
|
|
1087
|
-
*/
|
|
1088
|
-
export const useEuiButtonFocusCSS: () => string;
|
|
1089
|
-
/**
|
|
1090
|
-
* Map of `size` props to various sizings/scales
|
|
1091
|
-
* that should remain consistent across all buttons
|
|
1092
|
-
*/
|
|
1093
|
-
export const euiButtonSizeMap: ({ euiTheme }: UseEuiTheme) => {
|
|
1094
|
-
xs: {
|
|
1095
|
-
height: string;
|
|
1096
|
-
radius: import("csstype").Property.BorderRadius<string | number> | undefined;
|
|
1097
|
-
fontScale: "xs";
|
|
1098
|
-
};
|
|
1099
|
-
s: {
|
|
1100
|
-
height: string;
|
|
1101
|
-
radius: import("csstype").Property.BorderRadius<string | number> | undefined;
|
|
1102
|
-
fontScale: "s";
|
|
1103
|
-
};
|
|
1104
|
-
m: {
|
|
1105
|
-
height: string;
|
|
1106
|
-
radius: import("csstype").Property.BorderRadius<string | number> | undefined;
|
|
1107
|
-
fontScale: "s";
|
|
1108
|
-
};
|
|
1109
1042
|
};
|
|
1110
1043
|
|
|
1111
1044
|
}
|
|
1112
|
-
declare module '@elastic/eui/src/
|
|
1113
|
-
import {
|
|
1114
|
-
export const getShadowColor: (color: string, opacity: number, colorMode: EuiThemeColorModeStandard) => string;
|
|
1115
|
-
|
|
1116
|
-
}
|
|
1117
|
-
declare module '@elastic/eui/src/themes/amsterdam/global_styling/functions' {
|
|
1118
|
-
export * from '@elastic/eui/src/themes/amsterdam/global_styling/functions/shadows';
|
|
1119
|
-
|
|
1120
|
-
}
|
|
1121
|
-
declare module '@elastic/eui/src/global_styling/variables/shadow' {
|
|
1122
|
-
export const EuiThemeShadowSizes: readonly ["xs", "s", "m", "l", "xl"];
|
|
1123
|
-
export type _EuiThemeShadowSize = (typeof EuiThemeShadowSizes)[number];
|
|
1124
|
-
/**
|
|
1125
|
-
* Shadow t-shirt sizes descriptions
|
|
1126
|
-
*/
|
|
1127
|
-
export const _EuiShadowSizesDescriptions: Record<_EuiThemeShadowSize, string>;
|
|
1128
|
-
export interface _EuiThemeShadowCustomColor {
|
|
1129
|
-
color?: string;
|
|
1130
|
-
property?: 'box-shadow' | 'filter';
|
|
1131
|
-
}
|
|
1132
|
-
|
|
1133
|
-
}
|
|
1134
|
-
declare module '@elastic/eui/src/themes/amsterdam/global_styling/mixins/shadow' {
|
|
1135
|
-
import { UseEuiTheme } from '@elastic/eui/src/services/theme';
|
|
1136
|
-
import { _EuiThemeShadowSize, _EuiThemeShadowCustomColor } from '@elastic/eui/src/global_styling/variables/shadow';
|
|
1137
|
-
export interface EuiShadowCustomColor {
|
|
1138
|
-
color?: string;
|
|
1139
|
-
}
|
|
1045
|
+
declare module '@elastic/eui/src/global_styling/functions/logicals' {
|
|
1046
|
+
import { CSSProperties } from 'react';
|
|
1140
1047
|
/**
|
|
1141
|
-
*
|
|
1048
|
+
* EUI utilizes logical CSS properties to enable directional writing-modes.
|
|
1049
|
+
* To encourage use of logical properties, we provide a few helper utilities to
|
|
1050
|
+
* convert certain directional properties to logical properties.
|
|
1051
|
+
* https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Logical_Properties
|
|
1142
1052
|
*/
|
|
1143
|
-
export const
|
|
1053
|
+
export const logicalSide: {
|
|
1054
|
+
left: string;
|
|
1055
|
+
right: string;
|
|
1056
|
+
top: string;
|
|
1057
|
+
bottom: string;
|
|
1058
|
+
horizontal: string;
|
|
1059
|
+
vertical: string;
|
|
1060
|
+
};
|
|
1061
|
+
export const LOGICAL_SIDES: ("left" | "right" | "top" | "bottom" | "horizontal" | "vertical")[];
|
|
1062
|
+
export type LogicalSides = (typeof LOGICAL_SIDES)[number];
|
|
1063
|
+
export const logicals: {
|
|
1064
|
+
height: string;
|
|
1065
|
+
width: string;
|
|
1066
|
+
"max-height": string;
|
|
1067
|
+
"max-width": string;
|
|
1068
|
+
"min-height": string;
|
|
1069
|
+
"min-width": string;
|
|
1070
|
+
top: string;
|
|
1071
|
+
right: string;
|
|
1072
|
+
bottom: string;
|
|
1073
|
+
left: string;
|
|
1074
|
+
horizontal: string;
|
|
1075
|
+
vertical: string;
|
|
1076
|
+
"margin-left": string;
|
|
1077
|
+
"margin-right": string;
|
|
1078
|
+
"margin-top": string;
|
|
1079
|
+
"margin-bottom": string;
|
|
1080
|
+
"margin-horizontal": string;
|
|
1081
|
+
"margin-vertical": string;
|
|
1082
|
+
"padding-left": string;
|
|
1083
|
+
"padding-right": string;
|
|
1084
|
+
"padding-top": string;
|
|
1085
|
+
"padding-bottom": string;
|
|
1086
|
+
"padding-horizontal": string;
|
|
1087
|
+
"padding-vertical": string;
|
|
1088
|
+
"overflow-x": string;
|
|
1089
|
+
"overflow-y": string;
|
|
1090
|
+
"border-horizontal": string;
|
|
1091
|
+
"border-horizontal-color": string;
|
|
1092
|
+
"border-horizontal-width": string;
|
|
1093
|
+
"border-horizontal-style": string;
|
|
1094
|
+
"border-vertical": string;
|
|
1095
|
+
"border-vertical-color": string;
|
|
1096
|
+
"border-vertical-width": string;
|
|
1097
|
+
"border-vertical-style": string;
|
|
1098
|
+
"border-bottom": string;
|
|
1099
|
+
"border-bottom-color": string;
|
|
1100
|
+
"border-bottom-style": string;
|
|
1101
|
+
"border-bottom-width": string;
|
|
1102
|
+
"border-top": string;
|
|
1103
|
+
"border-top-color": string;
|
|
1104
|
+
"border-top-style": string;
|
|
1105
|
+
"border-top-width": string;
|
|
1106
|
+
"border-right": string;
|
|
1107
|
+
"border-right-color": string;
|
|
1108
|
+
"border-right-style": string;
|
|
1109
|
+
"border-right-width": string;
|
|
1110
|
+
"border-left": string;
|
|
1111
|
+
"border-left-color": string;
|
|
1112
|
+
"border-left-style": string;
|
|
1113
|
+
"border-left-width": string;
|
|
1114
|
+
"border-top-left-radius": string;
|
|
1115
|
+
"border-top-right-radius": string;
|
|
1116
|
+
"border-bottom-left-radius": string;
|
|
1117
|
+
"border-bottom-right-radius": string;
|
|
1118
|
+
_shorthands: string[];
|
|
1119
|
+
};
|
|
1120
|
+
export const LOGICAL_PROPERTIES: ("left" | "right" | "top" | "width" | "height" | "bottom" | "horizontal" | "vertical" | "max-height" | "max-width" | "min-height" | "min-width" | "margin-left" | "margin-right" | "margin-top" | "margin-bottom" | "margin-horizontal" | "margin-vertical" | "padding-left" | "padding-right" | "padding-top" | "padding-bottom" | "padding-horizontal" | "padding-vertical" | "overflow-x" | "overflow-y" | "border-horizontal" | "border-horizontal-color" | "border-horizontal-width" | "border-horizontal-style" | "border-vertical" | "border-vertical-color" | "border-vertical-width" | "border-vertical-style" | "border-bottom" | "border-bottom-color" | "border-bottom-style" | "border-bottom-width" | "border-top" | "border-top-color" | "border-top-style" | "border-top-width" | "border-right" | "border-right-color" | "border-right-style" | "border-right-width" | "border-left" | "border-left-color" | "border-left-style" | "border-left-width" | "border-top-left-radius" | "border-top-right-radius" | "border-bottom-left-radius" | "border-bottom-right-radius")[];
|
|
1121
|
+
export type LogicalProperties = (typeof LOGICAL_PROPERTIES)[number];
|
|
1144
1122
|
/**
|
|
1145
|
-
*
|
|
1123
|
+
*
|
|
1124
|
+
* @param property A string that is a valid CSS logical property
|
|
1125
|
+
* @param value String to output as the property value
|
|
1126
|
+
* @returns `string` Returns the logical CSS property version for the given `property: value` pair
|
|
1146
1127
|
*/
|
|
1147
|
-
export const
|
|
1128
|
+
export const logicalCSS: (property: LogicalProperties, value?: any) => string;
|
|
1148
1129
|
/**
|
|
1149
|
-
*
|
|
1130
|
+
* Some logical properties are not yet fully supported by all browsers.
|
|
1131
|
+
* For those cases, we should use the old property as a fallback for
|
|
1132
|
+
* browsers missing support, while allowing supporting browsers to use
|
|
1133
|
+
* the logical properties.
|
|
1134
|
+
*
|
|
1135
|
+
* Examples:
|
|
1136
|
+
* https://caniuse.com/?search=overflow-block
|
|
1137
|
+
* https://caniuse.com/mdn-css_properties_float_flow_relative_values
|
|
1150
1138
|
*/
|
|
1151
|
-
export const
|
|
1139
|
+
export const logicalCSSWithFallback: (property: LogicalProperties, value?: any) => string;
|
|
1152
1140
|
/**
|
|
1153
|
-
*
|
|
1141
|
+
*
|
|
1142
|
+
* @param property A string that is a valid CSS logical property
|
|
1143
|
+
* @param value String to output as the property value
|
|
1144
|
+
* @returns `object` Returns the logical CSS property version for the given `property: value` pair
|
|
1154
1145
|
*/
|
|
1155
|
-
export const
|
|
1146
|
+
export const logicalStyle: (property: LogicalProperties, value?: any) => {
|
|
1147
|
+
[x: string]: any;
|
|
1148
|
+
};
|
|
1156
1149
|
/**
|
|
1157
|
-
*
|
|
1150
|
+
* Given a style object with any amount of unknown CSS properties,
|
|
1151
|
+
* find ones that can be converted to logical properties and convert them
|
|
1152
|
+
*
|
|
1153
|
+
* @param styleObject - A React object of camelCased styles
|
|
1154
|
+
* @returns `object`
|
|
1158
1155
|
*/
|
|
1159
|
-
export
|
|
1160
|
-
reverse?: boolean;
|
|
1161
|
-
}
|
|
1162
|
-
export const euiShadowXLarge: ({ euiTheme, colorMode }: UseEuiTheme, { color: _color, reverse }?: EuiShadowXLarge) => string;
|
|
1156
|
+
export const logicalStyles: (styleObject: CSSProperties) => Record<string, string | number | undefined>;
|
|
1163
1157
|
/**
|
|
1164
|
-
*
|
|
1165
|
-
*
|
|
1158
|
+
*
|
|
1159
|
+
* @param width A string value for the LTR width
|
|
1160
|
+
* @param height A string value for the LTR height
|
|
1161
|
+
* @returns `string` Returns the logical CSS properties for height and width
|
|
1166
1162
|
*/
|
|
1167
|
-
export const
|
|
1168
|
-
export const useEuiSlightShadowHover: (color?: _EuiThemeShadowCustomColor['color']) => string;
|
|
1163
|
+
export const logicalSizeCSS: (width: any, height?: any) => string;
|
|
1169
1164
|
/**
|
|
1170
|
-
* bottomShadowFlat
|
|
1171
1165
|
*
|
|
1172
|
-
*
|
|
1173
|
-
*
|
|
1166
|
+
* @param width A string value for the LTR width
|
|
1167
|
+
* @param height A string value for the LTR height
|
|
1168
|
+
* @returns `object` Returns the logical CSS properties for height and width
|
|
1174
1169
|
*/
|
|
1175
|
-
export const
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
export const
|
|
1170
|
+
export const logicalSizeStyle: (width: any, height: any) => {
|
|
1171
|
+
[x: string]: any;
|
|
1172
|
+
};
|
|
1173
|
+
export const logicalText: {
|
|
1174
|
+
'text-align': {
|
|
1175
|
+
left: string;
|
|
1176
|
+
center: string;
|
|
1177
|
+
right: string;
|
|
1178
|
+
};
|
|
1179
|
+
};
|
|
1180
|
+
export const LOGICAL_TEXT_ALIGNMENT: ("left" | "right" | "center")[];
|
|
1181
|
+
export type LogicalText = (typeof LOGICAL_TEXT_ALIGNMENT)[number];
|
|
1182
|
+
/**
|
|
1183
|
+
*
|
|
1184
|
+
* @param property A string that is a valid CSS logical property
|
|
1185
|
+
* @param value String to output as the property value
|
|
1186
|
+
* @returns `string` Returns the logical CSS property version for the given `property: value` pair
|
|
1187
|
+
*/
|
|
1188
|
+
export const logicalTextAlignCSS: (value: LogicalText) => string;
|
|
1189
|
+
/**
|
|
1190
|
+
*
|
|
1191
|
+
* @param property A string that is a valid CSS logical property
|
|
1192
|
+
* @param value String to output as the property value
|
|
1193
|
+
* @returns `object` Returns the logical CSS property version for the given `property: value` pair
|
|
1194
|
+
*/
|
|
1195
|
+
export const logicalTextAlignStyle: (value: LogicalText) => {
|
|
1196
|
+
textAlign: string;
|
|
1197
|
+
};
|
|
1198
|
+
|
|
1199
|
+
}
|
|
1200
|
+
declare module '@elastic/eui/src/global_styling/functions/logical_shorthands' {
|
|
1201
|
+
export const LOGICAL_SHORTHANDS: string[];
|
|
1202
|
+
export type LogicalShorthands = (typeof LOGICAL_SHORTHANDS)[number];
|
|
1203
|
+
/**
|
|
1204
|
+
* Unfortunately, shorthand properties that describe boxes
|
|
1205
|
+
* (@see https://developer.mozilla.org/en-US/docs/Web/CSS/Shorthand_properties#edges_of_a_box)
|
|
1206
|
+
* do not currently automatically respond to logical changes in display direction
|
|
1207
|
+
* (@see https://github.com/w3c/csswg-drafts/issues/1282)
|
|
1208
|
+
*
|
|
1209
|
+
* This utility is essentially a stop-gap for those shorthand properties,
|
|
1210
|
+
* converting them to corresponding longer logical `-inline` and `-block` properties
|
|
1211
|
+
*
|
|
1212
|
+
* 🗑 NOTE: This file is in a separate util file from logicals.ts due to its relatively
|
|
1213
|
+
* convoluted logic, & to make deleting it easier when an official CSS spec is implemented.
|
|
1214
|
+
*/
|
|
1215
|
+
export const logicalShorthandCSS: (property: LogicalShorthands, value: string | number) => string;
|
|
1216
|
+
/**
|
|
1217
|
+
* Logical border radius is unfortunately a very special case as it handles corners
|
|
1218
|
+
* and not sides (@see https://developer.mozilla.org/en-US/docs/Web/CSS/Shorthand_properties#corners_of_a_box)
|
|
1219
|
+
* and does not have `-inline` or `-block` shorthands.
|
|
1220
|
+
*
|
|
1221
|
+
* It also needs to account for `/` syntax (horizontal vs vertical radii)
|
|
1222
|
+
* @see https://www.sitepoint.com/setting-css3-border-radius-with-slash-syntax/
|
|
1223
|
+
*/
|
|
1224
|
+
export const logicalBorderRadiusCSS: (value: string, ignoreZeroes?: boolean) => string;
|
|
1225
|
+
|
|
1226
|
+
}
|
|
1227
|
+
declare module '@elastic/eui/src/global_styling/functions/math' {
|
|
1228
|
+
type ValueTypes = string | number | undefined;
|
|
1229
|
+
export const mathWithUnits: (values: ValueTypes | ValueTypes[], callback: (...args: number[]) => number, unit?: string) => string;
|
|
1230
|
+
export {};
|
|
1231
|
+
|
|
1232
|
+
}
|
|
1233
|
+
declare module '@elastic/eui/src/global_styling/functions/size' {
|
|
1234
|
+
/**
|
|
1235
|
+
* Calculates the `px` value based on a scale multiplier
|
|
1236
|
+
* @param scale - The font scale multiplier
|
|
1237
|
+
* *
|
|
1238
|
+
* @param themeOrBase - Theme base value
|
|
1239
|
+
* *
|
|
1240
|
+
* @returns string - Rem unit aligned to baseline
|
|
1241
|
+
*/
|
|
1242
|
+
export const sizeToPixel: (scale?: number) => (themeOrBase: number | {
|
|
1243
|
+
[key: string]: any;
|
|
1244
|
+
base: number;
|
|
1245
|
+
}) => string;
|
|
1246
|
+
|
|
1247
|
+
}
|
|
1248
|
+
declare module '@elastic/eui/src/services/theme/warning' {
|
|
1249
|
+
type LEVELS = 'log' | 'warn' | 'error';
|
|
1250
|
+
export const setEuiDevProviderWarning: (level: LEVELS | undefined) => LEVELS | undefined;
|
|
1251
|
+
export const getEuiDevProviderWarning: () => LEVELS | undefined;
|
|
1252
|
+
export const emitEuiProviderWarning: (providerMessage: string) => void;
|
|
1253
|
+
export {};
|
|
1254
|
+
|
|
1255
|
+
}
|
|
1256
|
+
declare module '@elastic/eui/src/services/theme/hooks' {
|
|
1257
|
+
import React from 'react';
|
|
1258
|
+
import { EuiThemeColorModeStandard, EuiThemeModifications, EuiThemeComputed } from '@elastic/eui/src/services/theme/types';
|
|
1259
|
+
/**
|
|
1260
|
+
* Hook for function components
|
|
1261
|
+
*/
|
|
1262
|
+
export interface UseEuiTheme<T extends {} = {}> {
|
|
1263
|
+
euiTheme: EuiThemeComputed<T>;
|
|
1264
|
+
colorMode: EuiThemeColorModeStandard;
|
|
1265
|
+
modifications: EuiThemeModifications<T>;
|
|
1266
|
+
}
|
|
1267
|
+
export const useEuiTheme: <T extends {} = {}>() => UseEuiTheme<T>;
|
|
1268
|
+
/**
|
|
1269
|
+
* HOC for class components
|
|
1270
|
+
*/
|
|
1271
|
+
export interface WithEuiThemeProps<P extends {} = {}> {
|
|
1272
|
+
theme: UseEuiTheme<P>;
|
|
1273
|
+
}
|
|
1274
|
+
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">>>;
|
|
1275
|
+
/**
|
|
1276
|
+
* Render prop alternative for complex class components
|
|
1277
|
+
* Most useful for scenarios where a HOC may interfere with typing
|
|
1278
|
+
*/
|
|
1279
|
+
export const RenderWithEuiTheme: <T extends {} = {}>({ children, }: {
|
|
1280
|
+
children: (theme: UseEuiTheme) => React.ReactElement;
|
|
1281
|
+
}) => React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
1282
|
+
|
|
1283
|
+
}
|
|
1284
|
+
declare module '@elastic/eui/src/global_styling/functions/typography' {
|
|
1285
|
+
import { _EuiThemeFontScale, _EuiThemeFontSizeMeasurement, _EuiThemeFontWeights } from '@elastic/eui/src/global_styling/variables/typography';
|
|
1286
|
+
import { UseEuiTheme } from '@elastic/eui/src/services/theme/hooks';
|
|
1287
|
+
export interface _FontScaleOptions {
|
|
1288
|
+
/**
|
|
1289
|
+
* The returned string measurement
|
|
1290
|
+
*/
|
|
1291
|
+
measurement?: _EuiThemeFontSizeMeasurement;
|
|
1292
|
+
/**
|
|
1293
|
+
* An additional custom scale multiplier to use against the current scale
|
|
1294
|
+
* This parameter can be used (e.g. by EuiText sizes) to get sizes of text smaller than the default
|
|
1295
|
+
*/
|
|
1296
|
+
customScale?: _EuiThemeFontScale;
|
|
1297
|
+
}
|
|
1298
|
+
/**
|
|
1299
|
+
* Calculates the font-size value based on the provided scale key
|
|
1300
|
+
* @param scale - The font scale key
|
|
1301
|
+
* @param theme - Requires the `base` and `font` keys
|
|
1302
|
+
* @param options - Optional parameters - see _FontScaleOptions
|
|
1303
|
+
*
|
|
1304
|
+
* @returns string - Calculated font-size value
|
|
1305
|
+
*/
|
|
1306
|
+
export function euiFontSizeFromScale(scale: _EuiThemeFontScale, { base, font }: UseEuiTheme['euiTheme'], { measurement, customScale }?: _FontScaleOptions): string;
|
|
1307
|
+
/**
|
|
1308
|
+
* Calculates the line-height to the closest multiple of the baseline
|
|
1309
|
+
* EX: A proper line-height for text is 1.5 times the font-size.
|
|
1310
|
+
* If our base font size (euiFontSize) is 16, and our baseline is 4. To ensure the
|
|
1311
|
+
* text stays on the baseline, we pass a multiplier to calculate a line-height.
|
|
1312
|
+
* @param scale - The font scale key
|
|
1313
|
+
* @param theme - Requires the `base` and `font` keys
|
|
1314
|
+
* @param options - Optional parameters - see _FontScaleOptions
|
|
1315
|
+
*
|
|
1316
|
+
* @returns string - Calculated line-height value aligned to baseline
|
|
1317
|
+
*/
|
|
1318
|
+
export function euiLineHeightFromBaseline(scale: _EuiThemeFontScale, { base, font }: UseEuiTheme['euiTheme'], { measurement, customScale }?: _FontScaleOptions): string;
|
|
1319
|
+
/**
|
|
1320
|
+
* Text weight shifting
|
|
1321
|
+
*
|
|
1322
|
+
* When changing the font-weight based on the state of the component,
|
|
1323
|
+
* this mixin will ensure that the sizing is dependent on the boldest
|
|
1324
|
+
* weight so it doesn't shift sibling content.
|
|
1325
|
+
*/
|
|
1326
|
+
export const euiTextShift: (fontWeight: keyof _EuiThemeFontWeights | undefined, attribute: string | undefined, euiTheme: UseEuiTheme['euiTheme']) => string;
|
|
1327
|
+
|
|
1328
|
+
}
|
|
1329
|
+
declare module '@elastic/eui/src/global_styling/functions' {
|
|
1330
|
+
export * from '@elastic/eui/src/global_styling/functions/logicals';
|
|
1331
|
+
export * from '@elastic/eui/src/global_styling/functions/logical_shorthands';
|
|
1332
|
+
export * from '@elastic/eui/src/global_styling/functions/math';
|
|
1333
|
+
export * from '@elastic/eui/src/global_styling/functions/size';
|
|
1334
|
+
export * from '@elastic/eui/src/global_styling/functions/typography';
|
|
1335
|
+
|
|
1336
|
+
}
|
|
1337
|
+
declare module '@elastic/eui/src/global_styling/mixins/_helpers' {
|
|
1338
|
+
import { CSSProperties } from 'react';
|
|
1339
|
+
import { UseEuiTheme } from '@elastic/eui/src/services/theme';
|
|
1340
|
+
/**
|
|
1341
|
+
* Set scroll bar appearance on Chrome (and firefox).
|
|
1342
|
+
* All parameters are optional and default to specific global settings.
|
|
1343
|
+
*/
|
|
1344
|
+
export interface EuiScrollBarStyles {
|
|
1345
|
+
thumbColor?: CSSProperties['backgroundColor'];
|
|
1346
|
+
trackColor?: CSSProperties['backgroundColor'];
|
|
1347
|
+
/**
|
|
1348
|
+
* Defaults to `thin`. Use `auto` only for large page scrollbars
|
|
1349
|
+
*/
|
|
1350
|
+
width?: CSSProperties['scrollbarWidth'];
|
|
1351
|
+
/**
|
|
1352
|
+
* Overall width (height for horizontal scrollbars)
|
|
1353
|
+
*/
|
|
1354
|
+
size?: CSSProperties['width'];
|
|
1355
|
+
/**
|
|
1356
|
+
* Corner sizes are usually determined by `width` and
|
|
1357
|
+
* are used as an inset border and therefore a smaller corner size means a larger thumb
|
|
1358
|
+
*/
|
|
1359
|
+
corner?: CSSProperties['borderWidth'];
|
|
1360
|
+
}
|
|
1361
|
+
export const euiScrollBarStyles: ({ euiTheme: { colors, size } }: UseEuiTheme, { thumbColor: _thumbColor, trackColor, width, size: _size, corner: _corner, }?: EuiScrollBarStyles) => string;
|
|
1362
|
+
export const useEuiScrollBar: (options?: EuiScrollBarStyles | undefined) => string;
|
|
1363
|
+
/**
|
|
1364
|
+
* 1. Focus rings shouldn't be visible on scrollable regions, but a11y requires them to be focusable.
|
|
1365
|
+
* Browser's supporting `:focus-visible` will still show outline on keyboard focus only.
|
|
1366
|
+
* Others like Safari, won't show anything at all.
|
|
1367
|
+
*/
|
|
1368
|
+
interface _EuiYScroll {
|
|
1369
|
+
height?: CSSProperties['height'];
|
|
1370
|
+
}
|
|
1371
|
+
export const euiYScroll: (euiTheme: UseEuiTheme, { height }?: _EuiYScroll) => string;
|
|
1372
|
+
export const useEuiYScroll: ({ height }?: _EuiYScroll) => string;
|
|
1373
|
+
interface _EuiYScrollWithShadows extends _EuiYScroll {
|
|
1374
|
+
side?: 'both' | 'start' | 'end';
|
|
1375
|
+
}
|
|
1376
|
+
export const euiYScrollWithShadows: (euiTheme: UseEuiTheme, { height, side }?: _EuiYScrollWithShadows) => string;
|
|
1377
|
+
export const useEuiYScrollWithShadows: ({ height }?: _EuiYScroll) => string;
|
|
1378
|
+
export const euiXScroll: (euiTheme: UseEuiTheme) => string;
|
|
1379
|
+
export const useEuiXScroll: () => string;
|
|
1380
|
+
export const euiXScrollWithShadows: (euiTheme: UseEuiTheme) => string;
|
|
1381
|
+
export const useEuiXScrollWithShadows: () => string;
|
|
1382
|
+
interface EuiScrollOverflowStyles {
|
|
1383
|
+
direction?: 'y' | 'x';
|
|
1384
|
+
mask?: boolean;
|
|
1385
|
+
}
|
|
1386
|
+
export const euiOverflowScroll: (euiTheme: UseEuiTheme, { direction, mask }?: EuiScrollOverflowStyles) => string;
|
|
1387
|
+
export const useEuiOverflowScroll: (direction: EuiScrollOverflowStyles['direction'], mask?: EuiScrollOverflowStyles['mask']) => string;
|
|
1388
|
+
/**
|
|
1389
|
+
* For quickly applying a full-height element whether using flex or not
|
|
1390
|
+
*/
|
|
1391
|
+
export const euiFullHeight: () => string;
|
|
1392
|
+
/**
|
|
1393
|
+
* A constant storing the support for the `:has()` selector through a
|
|
1394
|
+
* media query that will only apply the content it is supported.
|
|
1395
|
+
*/
|
|
1396
|
+
export const euiSupportsHas = "@supports(selector(:has(p)))";
|
|
1397
|
+
export {};
|
|
1398
|
+
|
|
1399
|
+
}
|
|
1400
|
+
declare module '@elastic/eui/src/global_styling/mixins/_padding' {
|
|
1401
|
+
import { UseEuiTheme } from '@elastic/eui/src/services/theme';
|
|
1402
|
+
export const PADDING_SIZES: readonly ["none", "xs", "s", "m", "l", "xl"];
|
|
1403
|
+
export type EuiPaddingSize = (typeof PADDING_SIZES)[number];
|
|
1404
|
+
export const euiPaddingSize: ({ euiTheme }: UseEuiTheme, size: EuiPaddingSize) => string | null;
|
|
1405
|
+
export const euiPaddingSizeCSS: (euiThemeContext: UseEuiTheme, side?: "left" | "right" | "top" | "bottom" | "horizontal" | "vertical" | undefined) => {
|
|
1406
|
+
none: null;
|
|
1407
|
+
xs: import("@emotion/utils").SerializedStyles;
|
|
1408
|
+
s: import("@emotion/utils").SerializedStyles;
|
|
1409
|
+
m: import("@emotion/utils").SerializedStyles;
|
|
1410
|
+
l: import("@emotion/utils").SerializedStyles;
|
|
1411
|
+
xl: import("@emotion/utils").SerializedStyles;
|
|
1412
|
+
};
|
|
1413
|
+
export const useEuiPaddingSize: (size: EuiPaddingSize) => string | null;
|
|
1414
|
+
export const useEuiPaddingCSS: (side?: "left" | "right" | "top" | "bottom" | "horizontal" | "vertical" | undefined) => {
|
|
1415
|
+
none: null;
|
|
1416
|
+
xs: import("@emotion/utils").SerializedStyles;
|
|
1417
|
+
s: import("@emotion/utils").SerializedStyles;
|
|
1418
|
+
m: import("@emotion/utils").SerializedStyles;
|
|
1419
|
+
l: import("@emotion/utils").SerializedStyles;
|
|
1420
|
+
xl: import("@emotion/utils").SerializedStyles;
|
|
1421
|
+
};
|
|
1422
|
+
|
|
1423
|
+
}
|
|
1424
|
+
declare module '@elastic/eui/src/global_styling/mixins/_states' {
|
|
1425
|
+
import { CSSProperties } from 'react';
|
|
1426
|
+
import { UseEuiTheme } from '@elastic/eui/src/services';
|
|
1427
|
+
export type _EuiFocusRingOffset = 'inset' | 'outset' | 'center' | CSSProperties['outlineOffset'];
|
|
1428
|
+
/**
|
|
1429
|
+
* It is best practice to utilize the browser's default `outline` property for handling focus rings.
|
|
1430
|
+
* However, some components need to be forced to have the same behavior, or adjust the display.
|
|
1431
|
+
* This function re-applies the same default outline with a couple parameters
|
|
1432
|
+
* @param euiTheme UseEuiTheme
|
|
1433
|
+
* @param offset Accepts a specific measurement or 'inset', 'outset' or 'center' to adjust outline position
|
|
1434
|
+
* @param color Accepts any CSS color
|
|
1435
|
+
*/
|
|
1436
|
+
export const euiOutline: ({ euiTheme }: UseEuiTheme, offset?: _EuiFocusRingOffset, color?: CSSProperties['outlineColor']) => string;
|
|
1437
|
+
export const euiFocusRing: (euiThemeContext: UseEuiTheme, offset?: _EuiFocusRingOffset, options?: {
|
|
1438
|
+
color?: CSSProperties['outlineColor'];
|
|
1439
|
+
} | undefined) => string;
|
|
1440
|
+
export const useEuiFocusRing: (offset?: _EuiFocusRingOffset, color?: CSSProperties['outlineColor']) => string;
|
|
1441
|
+
|
|
1442
|
+
}
|
|
1443
|
+
declare module '@elastic/eui/src/global_styling/mixins/_typography' {
|
|
1444
|
+
import { CSSProperties } from 'react';
|
|
1445
|
+
import { _FontScaleOptions } from '@elastic/eui/src/global_styling/functions/typography';
|
|
1446
|
+
import { UseEuiTheme } from '@elastic/eui/src/services/theme/hooks';
|
|
1447
|
+
import { _EuiThemeFontScale } from '@elastic/eui/src/global_styling/variables/typography';
|
|
1448
|
+
export type EuiThemeFontSize = {
|
|
1449
|
+
fontSize: CSSProperties['fontSize'];
|
|
1450
|
+
lineHeight: CSSProperties['lineHeight'];
|
|
1451
|
+
};
|
|
1452
|
+
/**
|
|
1453
|
+
* Returns font-size and line-height
|
|
1454
|
+
*/
|
|
1455
|
+
export const euiFontSize: ({ euiTheme }: UseEuiTheme, scale: _EuiThemeFontScale, options?: _FontScaleOptions | undefined) => EuiThemeFontSize;
|
|
1456
|
+
export const useEuiFontSize: (scale: _EuiThemeFontScale, options?: _FontScaleOptions | undefined) => EuiThemeFontSize;
|
|
1457
|
+
/**
|
|
1458
|
+
* Force text to wrap on natural word breaks (e.g. spaces & hyphens)
|
|
1459
|
+
* https://css-tricks.com/snippets/css/prevent-long-urls-from-breaking-out-of-container/
|
|
1460
|
+
*/
|
|
1461
|
+
export const euiTextBreakWord: () => string;
|
|
1462
|
+
/**
|
|
1463
|
+
* Prevent text from wrapping onto multiple lines, and truncate with an ellipsis.
|
|
1464
|
+
*/
|
|
1465
|
+
export const euiTextTruncate: (maxWidth?: CSSProperties['maxWidth']) => string;
|
|
1466
|
+
/**
|
|
1467
|
+
* Fixed-width numbers for tabular data
|
|
1468
|
+
*/
|
|
1469
|
+
export const euiNumberFormat: ({ euiTheme }: UseEuiTheme) => string;
|
|
1470
|
+
export const useEuiNumberFormat: () => string;
|
|
1471
|
+
|
|
1472
|
+
}
|
|
1473
|
+
declare module '@elastic/eui/src/services/breakpoint/_sorting' {
|
|
1474
|
+
import { _EuiThemeBreakpoints } from '@elastic/eui/src/global_styling/variables/breakpoint';
|
|
1475
|
+
export const sortMapByLargeToSmallValues: (breakpointsMap: _EuiThemeBreakpoints) => _EuiThemeBreakpoints;
|
|
1476
|
+
export const sortMapBySmallToLargeValues: (breakpointsMap: _EuiThemeBreakpoints) => _EuiThemeBreakpoints;
|
|
1477
|
+
|
|
1478
|
+
}
|
|
1479
|
+
declare module '@elastic/eui/src/global_styling/variables/shadow' {
|
|
1480
|
+
export const EuiThemeShadowSizes: readonly ["xs", "s", "m", "l", "xl"];
|
|
1481
|
+
export type _EuiThemeShadowSize = (typeof EuiThemeShadowSizes)[number];
|
|
1482
|
+
/**
|
|
1483
|
+
* Shadow t-shirt sizes descriptions
|
|
1484
|
+
*/
|
|
1485
|
+
export const _EuiShadowSizesDescriptions: Record<_EuiThemeShadowSize, string>;
|
|
1486
|
+
export interface _EuiThemeShadowCustomColor {
|
|
1487
|
+
color?: string;
|
|
1488
|
+
property?: 'box-shadow' | 'filter';
|
|
1489
|
+
}
|
|
1490
|
+
|
|
1491
|
+
}
|
|
1492
|
+
declare module '@elastic/eui/src/global_styling/variables' {
|
|
1493
|
+
export * from '@elastic/eui/src/global_styling/variables/animations';
|
|
1494
|
+
export * from '@elastic/eui/src/global_styling/variables/borders';
|
|
1495
|
+
export * from '@elastic/eui/src/global_styling/variables/breakpoint';
|
|
1496
|
+
export * from '@elastic/eui/src/global_styling/variables/colors';
|
|
1497
|
+
export * from '@elastic/eui/src/global_styling/variables/levels';
|
|
1498
|
+
export * from '@elastic/eui/src/global_styling/variables/size';
|
|
1499
|
+
export * from '@elastic/eui/src/global_styling/variables/shadow';
|
|
1500
|
+
export * from '@elastic/eui/src/global_styling/variables/states';
|
|
1501
|
+
export * from '@elastic/eui/src/global_styling/variables/typography';
|
|
1502
|
+
|
|
1503
|
+
}
|
|
1504
|
+
declare module '@elastic/eui/src/global_styling/mixins/_responsive' {
|
|
1505
|
+
import { UseEuiTheme } from '@elastic/eui/src/services/theme/hooks';
|
|
1506
|
+
import { _EuiThemeBreakpoint } from '@elastic/eui/src/global_styling/variables';
|
|
1507
|
+
/**
|
|
1508
|
+
* Generates a CSS media query rule string based on the input breakpoint *ranges*.
|
|
1509
|
+
* Examples with default theme breakpoints:
|
|
1510
|
+
*
|
|
1511
|
+
* euiBreakpoint(['s']) becomes `@media only screen and (min-width: 575px) and (max-width: 767px)`
|
|
1512
|
+
* euiBreakpoint(['s', 'l']) becomes `@media only screen and (min-width: 575px) and (max-width: 1199px)`
|
|
1513
|
+
*
|
|
1514
|
+
* Use the smallest and largest sizes to generate media queries with only min/max-width.
|
|
1515
|
+
* Examples with default theme breakpoints:
|
|
1516
|
+
*
|
|
1517
|
+
* euiBreakpoint(['xs', 'm']) becomes `@media only screen and (max-width: 991px)`
|
|
1518
|
+
* euiBreakpoint(['l', 'xl']) becomes `@media only screen and (min-width: 992px)`
|
|
1519
|
+
*/
|
|
1520
|
+
export const euiBreakpoint: ({ euiTheme }: UseEuiTheme, sizes: [_EuiThemeBreakpoint, ..._EuiThemeBreakpoint[]]) => string;
|
|
1521
|
+
export const useEuiBreakpoint: (sizes: [_EuiThemeBreakpoint, ..._EuiThemeBreakpoint[]]) => string;
|
|
1522
|
+
/**
|
|
1523
|
+
* Min/Max width breakpoint utilities that generate only a single min/max query/bound
|
|
1524
|
+
*
|
|
1525
|
+
* *Unlike the above euiBreakpoint utility*, these utilities treat breakpoint
|
|
1526
|
+
* sizes as a one-dimensional point, rather than a two-dimensional *screen range*.
|
|
1527
|
+
* Examples with default theme breakpoints:
|
|
1528
|
+
*
|
|
1529
|
+
* euiMaxBreakpoint('m') becomes `@media only screen and (max-width: 767px)`
|
|
1530
|
+
* euiMinBreakpoint('m') becomes `@media only screen and (min-width: 768px)`
|
|
1531
|
+
*
|
|
1532
|
+
* This is safer and more intentional to use than euiBreakpoint(['xs', 's']) / euiBreakpoint(['m', 'xl'])
|
|
1533
|
+
* in the event that consumers add larger or smaller custom breakpoints (e.g 'xxs' or `xxl`)
|
|
1534
|
+
* and if the intention of the media query is actually "m and below/above" vs. "only screens m/l/xl".
|
|
1535
|
+
*/
|
|
1536
|
+
export const euiMinBreakpoint: ({ euiTheme }: UseEuiTheme, size: _EuiThemeBreakpoint) => string;
|
|
1537
|
+
export const useEuiMinBreakpoint: (size: _EuiThemeBreakpoint) => string;
|
|
1538
|
+
export const euiMaxBreakpoint: ({ euiTheme }: UseEuiTheme, size: _EuiThemeBreakpoint) => string;
|
|
1539
|
+
export const useEuiMaxBreakpoint: (size: _EuiThemeBreakpoint) => string;
|
|
1540
|
+
|
|
1541
|
+
}
|
|
1542
|
+
declare module '@elastic/eui/src/global_styling/mixins' {
|
|
1543
|
+
export * from '@elastic/eui/src/global_styling/mixins/_color';
|
|
1544
|
+
export * from '@elastic/eui/src/global_styling/mixins/_helpers';
|
|
1545
|
+
export * from '@elastic/eui/src/global_styling/mixins/_padding';
|
|
1546
|
+
export * from '@elastic/eui/src/global_styling/mixins/_states';
|
|
1547
|
+
export * from '@elastic/eui/src/global_styling/mixins/_typography';
|
|
1548
|
+
export * from '@elastic/eui/src/global_styling/mixins/_responsive';
|
|
1549
|
+
|
|
1550
|
+
}
|
|
1551
|
+
declare module '@elastic/eui/src/global_styling/reset/reset' {
|
|
1552
|
+
export const resetStyles = "\n/* // Adapted from Eric Meyer's reset (http://meyerweb.com/eric/tools/css/reset/, v2.0 | 20110126). */\n\n\n*, *:before, *:after {\n box-sizing: border-box;\n}\n\nhtml, body, div, span, applet, object, iframe,\nh1, h2, h3, h4, h5, h6, p, blockquote, pre,\na, abbr, acronym, address, big, cite, code,\ndel, dfn, em, img, ins, kbd, q, s, samp,\nsmall, strike, strong, sub, sup, tt, var,\nb, u, i, center,\ndl, dt, dd, ol, ul, li,\nfieldset, form, label, legend,\ntable, caption, tbody, tfoot, thead, tr, th, td,\narticle, aside, canvas, details, embed,\nfigure, figcaption, footer, header, hgroup,\nmenu, nav, output, ruby, section, summary,\ntime, mark, audio, video {\n margin: 0;\n padding: 0;\n border: none;\n vertical-align: baseline;\n}\n\nh1, h2, h3, h4, h5, h6, p {\n font-family: inherit;\n font-weight: inherit;\n font-size: inherit;\n}\n\n/* HTML5 display-role reset for older browsers */\narticle, aside, details, figcaption, figure,\nfooter, header, hgroup, menu, nav, section {\n display: block;\n}\n\na[href],\nbutton,\n[role='button'] {\n cursor: pointer;\n}\n\nbutton {\n background: none;\n border: none;\n padding: 0;\n margin: 0;\n color: inherit;\n border-radius: 0;\n font-size: inherit;\n}\n\ninput {\n margin: 0;\n padding: 0;\n}\n\ninput:disabled {\n opacity: 1; /* required on iOS */\n}\n\nol,\nul {\n list-style: none;\n}\n\nblockquote,\nq {\n quotes: none;\n}\n\nblockquote:before,\nblockquote:after,\nq:before,\nq:after {\n content: '';\n}\n\ntable {\n border-collapse: collapse;\n border-spacing: 0;\n}\n\nhr {\n margin: 0;\n}\n\nfieldset {\n min-inline-size: auto;\n}\n\n/* Chrome has an issue around RTL languages in SVGs when letter-spacing is negative\n * https://bugs.chromium.org/p/chromium/issues/detail?id=966480\n */\nsvg text {\n letter-spacing: normal !important;\n}";
|
|
1553
|
+
|
|
1554
|
+
}
|
|
1555
|
+
declare module '@elastic/eui/src/global_styling/reset/global_styles' {
|
|
1556
|
+
|
|
1557
|
+
export interface EuiGlobalStylesProps {
|
|
1558
|
+
}
|
|
1559
|
+
export const EuiGlobalStyles: ({}: EuiGlobalStylesProps) => JSX.Element;
|
|
1560
|
+
|
|
1561
|
+
}
|
|
1562
|
+
declare module '@elastic/eui/src/global_styling/utility/animations' {
|
|
1563
|
+
export const euiAnimFadeIn: import("@emotion/serialize").Keyframes;
|
|
1564
|
+
export const euiAnimSlideInUp: (size: string) => import("@emotion/serialize").Keyframes;
|
|
1565
|
+
export const euiAnimSlideX: (size: string) => import("@emotion/serialize").Keyframes;
|
|
1566
|
+
export const euiAnimScale: import("@emotion/serialize").Keyframes;
|
|
1567
|
+
|
|
1568
|
+
}
|
|
1569
|
+
declare module '@elastic/eui/src/global_styling' {
|
|
1570
|
+
export * from '@elastic/eui/src/global_styling/reset/global_styles';
|
|
1571
|
+
export * from '@elastic/eui/src/global_styling/functions';
|
|
1572
|
+
export * from '@elastic/eui/src/global_styling/variables';
|
|
1573
|
+
export * from '@elastic/eui/src/global_styling/mixins';
|
|
1574
|
+
export * from '@elastic/eui/src/global_styling/utility/animations';
|
|
1575
|
+
|
|
1576
|
+
}
|
|
1577
|
+
declare module '@elastic/eui/src/themes/amsterdam/global_styling/mixins/button' {
|
|
1578
|
+
import { UseEuiTheme } from '@elastic/eui/src/services';
|
|
1579
|
+
export const BUTTON_COLORS: readonly ["text", "accent", "primary", "success", "warning", "danger"];
|
|
1580
|
+
export type _EuiButtonColor = (typeof BUTTON_COLORS)[number];
|
|
1581
|
+
export type _EuiButtonDisplay = 'base' | 'fill' | 'empty';
|
|
1582
|
+
export interface _EuiButtonOptions {
|
|
1583
|
+
display?: _EuiButtonDisplay;
|
|
1584
|
+
}
|
|
1585
|
+
/**
|
|
1586
|
+
* Creates the `base` version of button styles with proper text contrast.
|
|
1587
|
+
* @param euiThemeContext
|
|
1588
|
+
* @param color One of the named button colors or 'disabled'
|
|
1589
|
+
* @returns Style object `{ backgroundColor, color }`
|
|
1590
|
+
*/
|
|
1591
|
+
export const euiButtonColor: (euiThemeContext: UseEuiTheme, color: _EuiButtonColor | 'disabled') => {
|
|
1592
|
+
color: string;
|
|
1593
|
+
backgroundColor: string;
|
|
1594
|
+
};
|
|
1595
|
+
/**
|
|
1596
|
+
* Creates the `fill` version of buttons styles with proper text contrast.
|
|
1597
|
+
* @param euiThemeContext
|
|
1598
|
+
* @param color One of the named button colors or 'disabled'
|
|
1599
|
+
* @returns Style object `{ backgroundColor, color }`
|
|
1600
|
+
*/
|
|
1601
|
+
export const euiButtonFillColor: (euiThemeContext: UseEuiTheme, color: _EuiButtonColor | 'disabled') => {
|
|
1602
|
+
color: string;
|
|
1603
|
+
backgroundColor: string;
|
|
1604
|
+
};
|
|
1605
|
+
/**
|
|
1606
|
+
* Creates the `empty` version of button styles using the text-variant and adding interactive styles.
|
|
1607
|
+
* @param euiThemeContext
|
|
1608
|
+
* @param color One of the named button colors or 'disabled'
|
|
1609
|
+
* @returns Style object `{ backgroundColor, color }` where `background` is typically used for interactive states
|
|
1610
|
+
*/
|
|
1611
|
+
export const euiButtonEmptyColor: (euiThemeContext: UseEuiTheme, color: _EuiButtonColor | 'disabled') => {
|
|
1612
|
+
color: string;
|
|
1613
|
+
backgroundColor: string;
|
|
1614
|
+
};
|
|
1615
|
+
/**
|
|
1616
|
+
* Given the button display type, returns the Emotion based color keys.
|
|
1617
|
+
* @param options Button display type
|
|
1618
|
+
* @returns An object of `_EuiButtonColor` keys including `disabled`
|
|
1619
|
+
*/
|
|
1620
|
+
export const useEuiButtonColorCSS: (options?: _EuiButtonOptions) => {
|
|
1621
|
+
text: import("@emotion/utils").SerializedStyles;
|
|
1622
|
+
accent: import("@emotion/utils").SerializedStyles;
|
|
1623
|
+
primary: import("@emotion/utils").SerializedStyles;
|
|
1624
|
+
success: import("@emotion/utils").SerializedStyles;
|
|
1625
|
+
warning: import("@emotion/utils").SerializedStyles;
|
|
1626
|
+
danger: import("@emotion/utils").SerializedStyles;
|
|
1627
|
+
disabled: import("@emotion/utils").SerializedStyles;
|
|
1628
|
+
};
|
|
1629
|
+
/**
|
|
1630
|
+
* Creates the translate animation when button is in focus.
|
|
1631
|
+
* @returns string
|
|
1632
|
+
*/
|
|
1633
|
+
export const useEuiButtonFocusCSS: () => string;
|
|
1634
|
+
/**
|
|
1635
|
+
* Map of `size` props to various sizings/scales
|
|
1636
|
+
* that should remain consistent across all buttons
|
|
1637
|
+
*/
|
|
1638
|
+
export const euiButtonSizeMap: ({ euiTheme }: UseEuiTheme) => {
|
|
1639
|
+
xs: {
|
|
1640
|
+
height: string;
|
|
1641
|
+
radius: import("csstype").Property.BorderRadius<string | number> | undefined;
|
|
1642
|
+
fontScale: "xs";
|
|
1643
|
+
};
|
|
1644
|
+
s: {
|
|
1645
|
+
height: string;
|
|
1646
|
+
radius: import("csstype").Property.BorderRadius<string | number> | undefined;
|
|
1647
|
+
fontScale: "s";
|
|
1648
|
+
};
|
|
1649
|
+
m: {
|
|
1650
|
+
height: string;
|
|
1651
|
+
radius: import("csstype").Property.BorderRadius<string | number> | undefined;
|
|
1652
|
+
fontScale: "s";
|
|
1653
|
+
};
|
|
1654
|
+
};
|
|
1655
|
+
|
|
1656
|
+
}
|
|
1657
|
+
declare module '@elastic/eui/src/themes/amsterdam/global_styling/functions/shadows' {
|
|
1658
|
+
import { EuiThemeColorModeStandard } from '@elastic/eui/src/services/theme/types';
|
|
1659
|
+
export const getShadowColor: (color: string, opacity: number, colorMode: EuiThemeColorModeStandard) => string;
|
|
1660
|
+
|
|
1661
|
+
}
|
|
1662
|
+
declare module '@elastic/eui/src/themes/amsterdam/global_styling/functions' {
|
|
1663
|
+
export * from '@elastic/eui/src/themes/amsterdam/global_styling/functions/shadows';
|
|
1664
|
+
|
|
1665
|
+
}
|
|
1666
|
+
declare module '@elastic/eui/src/themes/amsterdam/global_styling/mixins/shadow' {
|
|
1667
|
+
import { UseEuiTheme } from '@elastic/eui/src/services/theme';
|
|
1668
|
+
import { _EuiThemeShadowSize, _EuiThemeShadowCustomColor } from '@elastic/eui/src/global_styling/variables/shadow';
|
|
1669
|
+
export interface EuiShadowCustomColor {
|
|
1670
|
+
color?: string;
|
|
1671
|
+
}
|
|
1672
|
+
/**
|
|
1673
|
+
* euiSlightShadow
|
|
1674
|
+
*/
|
|
1675
|
+
export const euiShadowXSmall: ({ euiTheme, colorMode }: UseEuiTheme, { color: _color }?: _EuiThemeShadowCustomColor) => string;
|
|
1676
|
+
/**
|
|
1677
|
+
* bottomShadowSmall
|
|
1678
|
+
*/
|
|
1679
|
+
export const euiShadowSmall: ({ euiTheme, colorMode }: UseEuiTheme, { color: _color }?: _EuiThemeShadowCustomColor) => string;
|
|
1680
|
+
/**
|
|
1681
|
+
* bottomShadowMedium
|
|
1682
|
+
*/
|
|
1683
|
+
export const euiShadowMedium: ({ euiTheme, colorMode }: UseEuiTheme, { color: _color, property }?: _EuiThemeShadowCustomColor) => string;
|
|
1684
|
+
/**
|
|
1685
|
+
* bottomShadow
|
|
1686
|
+
*/
|
|
1687
|
+
export const euiShadowLarge: ({ euiTheme, colorMode }: UseEuiTheme, { color: _color }?: _EuiThemeShadowCustomColor) => string;
|
|
1688
|
+
/**
|
|
1689
|
+
* bottomShadowLarge
|
|
1690
|
+
*/
|
|
1691
|
+
export interface EuiShadowXLarge extends _EuiThemeShadowCustomColor {
|
|
1692
|
+
reverse?: boolean;
|
|
1693
|
+
}
|
|
1694
|
+
export const euiShadowXLarge: ({ euiTheme, colorMode }: UseEuiTheme, { color: _color, reverse }?: EuiShadowXLarge) => string;
|
|
1695
|
+
/**
|
|
1696
|
+
* slightShadowHover
|
|
1697
|
+
* TODO: I think this is only used by panels/cards in the Amsterdam theme, move there
|
|
1698
|
+
*/
|
|
1699
|
+
export const euiSlightShadowHover: ({ euiTheme, colorMode }: UseEuiTheme, { color: _color }?: _EuiThemeShadowCustomColor) => string;
|
|
1700
|
+
export const useEuiSlightShadowHover: (color?: _EuiThemeShadowCustomColor['color']) => string;
|
|
1701
|
+
/**
|
|
1702
|
+
* bottomShadowFlat
|
|
1703
|
+
*
|
|
1704
|
+
* Similar to shadow medium but without the bottom depth.
|
|
1705
|
+
* Useful for popovers that drop UP rather than DOWN.
|
|
1706
|
+
*/
|
|
1707
|
+
export const euiShadowFlat: ({ euiTheme, colorMode }: UseEuiTheme, { color: _color }?: _EuiThemeShadowCustomColor) => string;
|
|
1708
|
+
export const useEuiShadowFlat: (color?: _EuiThemeShadowCustomColor['color']) => string;
|
|
1709
|
+
export const euiShadow: (euiThemeContext: UseEuiTheme, size?: _EuiThemeShadowSize, { color }?: _EuiThemeShadowCustomColor) => string;
|
|
1710
|
+
export const useEuiShadow: (size?: _EuiThemeShadowSize, color?: _EuiThemeShadowCustomColor['color']) => string;
|
|
1179
1711
|
|
|
1180
1712
|
}
|
|
1181
1713
|
declare module '@elastic/eui/src/themes/amsterdam/global_styling/mixins' {
|
|
@@ -1218,6 +1750,7 @@ declare module '@elastic/eui/src/components/icon/icon_map' {
|
|
|
1218
1750
|
arrowEnd: string;
|
|
1219
1751
|
article: string;
|
|
1220
1752
|
asterisk: string;
|
|
1753
|
+
at: string;
|
|
1221
1754
|
auditbeatApp: string;
|
|
1222
1755
|
beaker: string;
|
|
1223
1756
|
bell: string;
|
|
@@ -1378,6 +1911,7 @@ declare module '@elastic/eui/src/components/icon/icon_map' {
|
|
|
1378
1911
|
inspect: string;
|
|
1379
1912
|
invert: string;
|
|
1380
1913
|
ip: string;
|
|
1914
|
+
key: string;
|
|
1381
1915
|
keyboard: string;
|
|
1382
1916
|
kqlField: string;
|
|
1383
1917
|
kqlFunction: string;
|
|
@@ -1730,7 +2264,7 @@ declare module '@elastic/eui/src/components/icon/icon' {
|
|
|
1730
2264
|
import { WithEuiThemeProps } from '@elastic/eui/src/services';
|
|
1731
2265
|
export { COLORS } from '@elastic/eui/src/components/icon/named_colors';
|
|
1732
2266
|
import { NamedColor } from '@elastic/eui/src/components/icon/named_colors';
|
|
1733
|
-
export const TYPES: ("string" | "number" | "function" | "
|
|
2267
|
+
export const TYPES: ("string" | "number" | "function" | "search" | "link" | "article" | "menu" | "filter" | "image" | "stop" | "key" | "temperature" | "color" | "warning" | "scale" | "wordWrap" | "grid" | "error" | "invert" | "empty" | "accessibility" | "aggregate" | "analyzeEvent" | "annotation" | "apps" | "arrowStart" | "arrowEnd" | "asterisk" | "at" | "beaker" | "bell" | "bellSlash" | "beta" | "bolt" | "branch" | "branchUser" | "broom" | "brush" | "bug" | "bullseye" | "calendar" | "check" | "checkInCircleFilled" | "cheer" | "clock" | "cloudDrizzle" | "cloudStormy" | "cloudSunny" | "cluster" | "compute" | "console" | "container" | "continuityAbove" | "continuityAboveBelow" | "continuityBelow" | "continuityWithin" | "copy" | "cross" | "crosshairs" | "currency" | "cut" | "database" | "desktop" | "discuss" | "document" | "documentEdit" | "documentation" | "documents" | "dot" | "dotInCircle" | "doubleArrowLeft" | "doubleArrowRight" | "download" | "editorDistributeHorizontal" | "editorDistributeVertical" | "editorItemAlignBottom" | "editorItemAlignCenter" | "editorItemAlignLeft" | "editorItemAlignMiddle" | "editorItemAlignRight" | "editorItemAlignTop" | "editorPositionBottomLeft" | "editorPositionBottomRight" | "editorPositionTopLeft" | "editorPositionTopRight" | "email" | "eql" | "eraser" | "exit" | "expand" | "expandMini" | "eye" | "filterExclude" | "filterIgnore" | "filterInclude" | "filterInCircle" | "flag" | "fold" | "frameNext" | "framePrevious" | "fullScreenExit" | "gear" | "glasses" | "globe" | "grab" | "heart" | "heatmap" | "help" | "home" | "iInCircle" | "indexTemporary" | "infinity" | "inputOutput" | "inspect" | "ip" | "keyboard" | "kubernetesNode" | "kubernetesPod" | "launch" | "layers" | "lettering" | "lineDashed" | "lineDotted" | "lineSolid" | "list" | "lock" | "lockOpen" | "magnet" | "magnifyWithExclamation" | "magnifyWithMinus" | "magnifyWithPlus" | "memory" | "menuDown" | "menuLeft" | "menuRight" | "menuUp" | "merge" | "minimize" | "minus" | "mobile" | "moon" | "namespace" | "nested" | "node" | "offline" | "online" | "package" | "pageSelect" | "pagesSelect" | "partial" | "pause" | "payment" | "pencil" | "percent" | "pin" | "pivot" | "play" | "playFilled" | "plus" | "popout" | "push" | "quote" | "refresh" | "reporter" | "save" | "securitySignal" | "securitySignalDetected" | "securitySignalResolved" | "sessionViewer" | "shard" | "share" | "snowflake" | "sortAscending" | "sortDescending" | "sortLeft" | "sortRight" | "sortable" | "spaces" | "sparkles" | "starPlusEmpty" | "starPlusFilled" | "stats" | "storage" | "submodule" | "sun" | "symlink" | "tableOfContents" | "tag" | "tear" | "timeline" | "timelineWithArrow" | "timeRefresh" | "timeslider" | "training" | "trash" | "unfold" | "unlink" | "user" | "userAvatar" | "users" | "vector" | "videoPlayer" | "wordWrapDisabled" | "wrench" | "tokenAlias" | "tokenAnnotation" | "tokenArray" | "tokenBinary" | "tokenBoolean" | "tokenClass" | "tokenCompletionSuggester" | "tokenConstant" | "tokenDate" | "tokenDenseVector" | "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" | "tokenShape" | "tokenString" | "tokenStruct" | "tokenSymbol" | "tokenTag" | "tokenText" | "tokenTokenCount" | "tokenVariable" | "alert" | "addDataApp" | "advancedSettingsApp" | "agentApp" | "apmApp" | "apmTrace" | "appSearchApp" | "arrowDown" | "arrowLeft" | "arrowRight" | "arrowUp" | "auditbeatApp" | "boxesHorizontal" | "boxesVertical" | "canvasApp" | "casesApp" | "classificationJob" | "codeApp" | "consoleApp" | "controlsHorizontal" | "controlsVertical" | "copyClipboard" | "createAdvancedJob" | "createMultiMetricJob" | "createPopulationJob" | "createSingleMetricJob" | "crossClusterReplicationApp" | "dashboardApp" | "dataVisualizer" | "devToolsApp" | "discoverApp" | "editorAlignCenter" | "editorAlignLeft" | "editorAlignRight" | "editorBold" | "editorChecklist" | "editorCodeBlock" | "editorComment" | "editorHeading" | "editorItalic" | "editorLink" | "editorOrderedList" | "editorRedo" | "editorStrike" | "editorTable" | "editorUnderline" | "editorUndo" | "editorUnorderedList" | "emsApp" | "exportAction" | "eyeClosed" | "faceHappy" | "faceNeutral" | "faceSad" | "filebeatApp" | "fleetApp" | "folderCheck" | "folderClosed" | "folderExclamation" | "folderOpen" | "fullScreen" | "gisApp" | "grabHorizontal" | "graphApp" | "grokApp" | "heartbeatApp" | "importAction" | "indexClose" | "indexEdit" | "indexFlush" | "indexManagementApp" | "indexMapping" | "indexOpen" | "indexPatternApp" | "indexRollupApp" | "indexRuntime" | "indexSettings" | "kqlField" | "kqlFunction" | "kqlOperand" | "kqlSelector" | "kqlValue" | "lensApp" | "listAdd" | "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" | "monitoringApp" | "notebookApp" | "outlierDetectionJob" | "packetbeatApp" | "paperClip" | "pinFilled" | "pipelineApp" | "plusInCircle" | "plusInCircleFilled" | "questionInCircle" | "recentlyViewedApp" | "regressionJob" | "reportingApp" | "returnKey" | "savedObjectsApp" | "searchProfilerApp" | "securityAnalyticsApp" | "securityApp" | "sortDown" | "sortUp" | "spacesApp" | "sqlApp" | "starEmpty" | "starEmptySpace" | "starFilled" | "starFilledSpace" | "starMinusEmpty" | "starMinusFilled" | "stopFilled" | "stopSlash" | "swatchInput" | "tableDensityCompact" | "tableDensityExpanded" | "tableDensityNormal" | "timelionApp" | "upgradeAssistantApp" | "uptimeApp" | "usersRolesApp" | "visArea" | "visAreaStacked" | "visBarHorizontal" | "visBarHorizontalStacked" | "visBarVertical" | "visBarVerticalStacked" | "visGauge" | "visGoal" | "visLine" | "visMapCoordinate" | "visMapRegion" | "visMetric" | "visPie" | "visTable" | "visTagCloud" | "visText" | "visTimelion" | "visVega" | "visVisualBuilder" | "visualizeApp" | "vulnerabilityManagementApp" | "watchesApp" | "workplaceSearchApp")[];
|
|
1734
2268
|
export type EuiIconType = keyof typeof typeToPathMap;
|
|
1735
2269
|
export type IconType = EuiIconType | string | ComponentType;
|
|
1736
2270
|
export type IconColor = string | NamedColor;
|
|
@@ -1773,7 +2307,7 @@ declare module '@elastic/eui/src/components/icon/icon' {
|
|
|
1773
2307
|
isLoading: boolean;
|
|
1774
2308
|
neededLoading: boolean;
|
|
1775
2309
|
}
|
|
1776
|
-
export const clearIconComponentCache: (iconType?: "string" | "number" | "function" | "
|
|
2310
|
+
export const clearIconComponentCache: (iconType?: "string" | "number" | "function" | "search" | "link" | "article" | "menu" | "filter" | "image" | "stop" | "key" | "temperature" | "color" | "warning" | "scale" | "wordWrap" | "grid" | "error" | "invert" | "empty" | "accessibility" | "aggregate" | "analyzeEvent" | "annotation" | "apps" | "arrowStart" | "arrowEnd" | "asterisk" | "at" | "beaker" | "bell" | "bellSlash" | "beta" | "bolt" | "branch" | "branchUser" | "broom" | "brush" | "bug" | "bullseye" | "calendar" | "check" | "checkInCircleFilled" | "cheer" | "clock" | "cloudDrizzle" | "cloudStormy" | "cloudSunny" | "cluster" | "compute" | "console" | "container" | "continuityAbove" | "continuityAboveBelow" | "continuityBelow" | "continuityWithin" | "copy" | "cross" | "crosshairs" | "currency" | "cut" | "database" | "desktop" | "discuss" | "document" | "documentEdit" | "documentation" | "documents" | "dot" | "dotInCircle" | "doubleArrowLeft" | "doubleArrowRight" | "download" | "editorDistributeHorizontal" | "editorDistributeVertical" | "editorItemAlignBottom" | "editorItemAlignCenter" | "editorItemAlignLeft" | "editorItemAlignMiddle" | "editorItemAlignRight" | "editorItemAlignTop" | "editorPositionBottomLeft" | "editorPositionBottomRight" | "editorPositionTopLeft" | "editorPositionTopRight" | "email" | "eql" | "eraser" | "exit" | "expand" | "expandMini" | "eye" | "filterExclude" | "filterIgnore" | "filterInclude" | "filterInCircle" | "flag" | "fold" | "frameNext" | "framePrevious" | "fullScreenExit" | "gear" | "glasses" | "globe" | "grab" | "heart" | "heatmap" | "help" | "home" | "iInCircle" | "indexTemporary" | "infinity" | "inputOutput" | "inspect" | "ip" | "keyboard" | "kubernetesNode" | "kubernetesPod" | "launch" | "layers" | "lettering" | "lineDashed" | "lineDotted" | "lineSolid" | "list" | "lock" | "lockOpen" | "magnet" | "magnifyWithExclamation" | "magnifyWithMinus" | "magnifyWithPlus" | "memory" | "menuDown" | "menuLeft" | "menuRight" | "menuUp" | "merge" | "minimize" | "minus" | "mobile" | "moon" | "namespace" | "nested" | "node" | "offline" | "online" | "package" | "pageSelect" | "pagesSelect" | "partial" | "pause" | "payment" | "pencil" | "percent" | "pin" | "pivot" | "play" | "playFilled" | "plus" | "popout" | "push" | "quote" | "refresh" | "reporter" | "save" | "securitySignal" | "securitySignalDetected" | "securitySignalResolved" | "sessionViewer" | "shard" | "share" | "snowflake" | "sortAscending" | "sortDescending" | "sortLeft" | "sortRight" | "sortable" | "spaces" | "sparkles" | "starPlusEmpty" | "starPlusFilled" | "stats" | "storage" | "submodule" | "sun" | "symlink" | "tableOfContents" | "tag" | "tear" | "timeline" | "timelineWithArrow" | "timeRefresh" | "timeslider" | "training" | "trash" | "unfold" | "unlink" | "user" | "userAvatar" | "users" | "vector" | "videoPlayer" | "wordWrapDisabled" | "wrench" | "tokenAlias" | "tokenAnnotation" | "tokenArray" | "tokenBinary" | "tokenBoolean" | "tokenClass" | "tokenCompletionSuggester" | "tokenConstant" | "tokenDate" | "tokenDenseVector" | "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" | "tokenShape" | "tokenString" | "tokenStruct" | "tokenSymbol" | "tokenTag" | "tokenText" | "tokenTokenCount" | "tokenVariable" | "alert" | "addDataApp" | "advancedSettingsApp" | "agentApp" | "apmApp" | "apmTrace" | "appSearchApp" | "arrowDown" | "arrowLeft" | "arrowRight" | "arrowUp" | "auditbeatApp" | "boxesHorizontal" | "boxesVertical" | "canvasApp" | "casesApp" | "classificationJob" | "codeApp" | "consoleApp" | "controlsHorizontal" | "controlsVertical" | "copyClipboard" | "createAdvancedJob" | "createMultiMetricJob" | "createPopulationJob" | "createSingleMetricJob" | "crossClusterReplicationApp" | "dashboardApp" | "dataVisualizer" | "devToolsApp" | "discoverApp" | "editorAlignCenter" | "editorAlignLeft" | "editorAlignRight" | "editorBold" | "editorChecklist" | "editorCodeBlock" | "editorComment" | "editorHeading" | "editorItalic" | "editorLink" | "editorOrderedList" | "editorRedo" | "editorStrike" | "editorTable" | "editorUnderline" | "editorUndo" | "editorUnorderedList" | "emsApp" | "exportAction" | "eyeClosed" | "faceHappy" | "faceNeutral" | "faceSad" | "filebeatApp" | "fleetApp" | "folderCheck" | "folderClosed" | "folderExclamation" | "folderOpen" | "fullScreen" | "gisApp" | "grabHorizontal" | "graphApp" | "grokApp" | "heartbeatApp" | "importAction" | "indexClose" | "indexEdit" | "indexFlush" | "indexManagementApp" | "indexMapping" | "indexOpen" | "indexPatternApp" | "indexRollupApp" | "indexRuntime" | "indexSettings" | "kqlField" | "kqlFunction" | "kqlOperand" | "kqlSelector" | "kqlValue" | "lensApp" | "listAdd" | "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" | "monitoringApp" | "notebookApp" | "outlierDetectionJob" | "packetbeatApp" | "paperClip" | "pinFilled" | "pipelineApp" | "plusInCircle" | "plusInCircleFilled" | "questionInCircle" | "recentlyViewedApp" | "regressionJob" | "reportingApp" | "returnKey" | "savedObjectsApp" | "searchProfilerApp" | "securityAnalyticsApp" | "securityApp" | "sortDown" | "sortUp" | "spacesApp" | "sqlApp" | "starEmpty" | "starEmptySpace" | "starFilled" | "starFilledSpace" | "starMinusEmpty" | "starMinusFilled" | "stopFilled" | "stopSlash" | "swatchInput" | "tableDensityCompact" | "tableDensityExpanded" | "tableDensityNormal" | "timelionApp" | "upgradeAssistantApp" | "uptimeApp" | "usersRolesApp" | "visArea" | "visAreaStacked" | "visBarHorizontal" | "visBarHorizontalStacked" | "visBarVertical" | "visBarVerticalStacked" | "visGauge" | "visGoal" | "visLine" | "visMapCoordinate" | "visMapRegion" | "visMetric" | "visPie" | "visTable" | "visTagCloud" | "visText" | "visTimelion" | "visVega" | "visVisualBuilder" | "visualizeApp" | "vulnerabilityManagementApp" | "watchesApp" | "workplaceSearchApp" | undefined) => void;
|
|
1777
2311
|
export const appendIconComponentCache: (iconTypeToIconComponentMap: {
|
|
1778
2312
|
[iconType: string]: React.ComponentType<{}>;
|
|
1779
2313
|
}) => void;
|
|
@@ -3830,7 +4364,7 @@ declare module '@elastic/eui/src/components/panel/panel' {
|
|
|
3830
4364
|
import { ButtonHTMLAttributes, FunctionComponent, HTMLAttributes, Ref } from 'react';
|
|
3831
4365
|
import { _EuiBackgroundColor, EuiPaddingSize } from '@elastic/eui/src/global_styling';
|
|
3832
4366
|
import { CommonProps, ExclusiveUnion } from '@elastic/eui/src/components/common';
|
|
3833
|
-
export const SIZES: readonly ["none", "xs", "s", "m", "l", "xl"]; const _SIZES: ("
|
|
4367
|
+
export const SIZES: readonly ["none", "xs", "s", "m", "l", "xl"]; const _SIZES: ("xs" | "s" | "m" | "l" | "xl" | "none")[];
|
|
3834
4368
|
export type PanelPaddingSize = (typeof _SIZES)[number];
|
|
3835
4369
|
export const BORDER_RADII: readonly ["none", "m"];
|
|
3836
4370
|
export type PanelBorderRadius = (typeof BORDER_RADII)[number];
|
|
@@ -4692,7 +5226,6 @@ declare module '@elastic/eui/src/components/popover/popover' {
|
|
|
4692
5226
|
import { Component, KeyboardEvent, CSSProperties, HTMLAttributes, ReactNode, Ref, RefCallback } from 'react';
|
|
4693
5227
|
import { CommonProps, NoArgCallback } from '@elastic/eui/src/components/common';
|
|
4694
5228
|
import { FocusTarget, EuiFocusTrapProps } from '@elastic/eui/src/components/focus_trap';
|
|
4695
|
-
import { ReactFocusOnProps } from 'react-focus-on/dist/es5/types';
|
|
4696
5229
|
import { EuiPopoverPosition } from '@elastic/eui/src/services/popover';
|
|
4697
5230
|
import { EuiPopoverArrowPositions } from '@elastic/eui/src/components/popover/popover_arrow';
|
|
4698
5231
|
import { EuiPopoverPanelProps } from '@elastic/eui/src/components/popover/popover_panel/_popover_panel';
|
|
@@ -4734,7 +5267,7 @@ declare module '@elastic/eui/src/components/popover/popover' {
|
|
|
4734
5267
|
/**
|
|
4735
5268
|
* Object of props passed to EuiFocusTrap
|
|
4736
5269
|
*/
|
|
4737
|
-
focusTrapProps?:
|
|
5270
|
+
focusTrapProps?: Partial<EuiFocusTrapProps>;
|
|
4738
5271
|
/**
|
|
4739
5272
|
* Show arrow indicating to originating button
|
|
4740
5273
|
*/
|
|
@@ -4805,10 +5338,6 @@ declare module '@elastic/eui/src/components/popover/popover' {
|
|
|
4805
5338
|
* component; pass `zIndex` to override
|
|
4806
5339
|
*/
|
|
4807
5340
|
zIndex?: number;
|
|
4808
|
-
/**
|
|
4809
|
-
* Function callback for when the focus trap is deactivated
|
|
4810
|
-
*/
|
|
4811
|
-
onTrapDeactivation?: ReactFocusOnProps['onDeactivation'];
|
|
4812
5341
|
/**
|
|
4813
5342
|
* Distance away from the anchor that the popover will render
|
|
4814
5343
|
*/
|
|
@@ -5044,12 +5573,30 @@ declare module '@elastic/eui/src/components/form/range/range_levels_colors' {
|
|
|
5044
5573
|
export const euiRangeLevelColor: (color: EuiRangeLevelColor | string, euiTheme: UseEuiTheme['euiTheme']) => string;
|
|
5045
5574
|
export const getLevelColor: (levels: EuiRangeLevel[], value: number) => "primary" | "success" | "warning" | "danger" | import("csstype").Property.Color | undefined;
|
|
5046
5575
|
|
|
5576
|
+
}
|
|
5577
|
+
declare module '@elastic/eui/src/components/form/range/range_input.styles' {
|
|
5578
|
+
import { UseEuiTheme } from '@elastic/eui/src/services';
|
|
5579
|
+
export const euiRangeInputStyles: ({ euiTheme }: UseEuiTheme) => {
|
|
5580
|
+
euiRangeInput: import("@emotion/utils").SerializedStyles;
|
|
5581
|
+
};
|
|
5582
|
+
|
|
5583
|
+
}
|
|
5584
|
+
declare module '@elastic/eui/src/components/form/range/range_input' {
|
|
5585
|
+
import { FunctionComponent } from 'react';
|
|
5586
|
+
import { EuiFieldNumberProps } from '@elastic/eui/src/components/form/field_number';
|
|
5587
|
+
import type { _SingleRangeValue, _SharedRangeInputSide } from '@elastic/eui/src/components/form/range/types';
|
|
5588
|
+
export interface EuiRangeInputProps extends Omit<EuiFieldNumberProps, 'max' | 'min' | 'value' | 'step'>, Omit<_SingleRangeValue, 'onChange'>, _SharedRangeInputSide {
|
|
5589
|
+
autoSize?: boolean;
|
|
5590
|
+
}
|
|
5591
|
+
export const EuiRangeInput: FunctionComponent<EuiRangeInputProps>;
|
|
5592
|
+
|
|
5047
5593
|
}
|
|
5048
5594
|
declare module '@elastic/eui/src/components/form/range/types' {
|
|
5049
5595
|
import type { ReactNode, CSSProperties, InputHTMLAttributes } from 'react';
|
|
5050
5596
|
import type { CommonProps } from '@elastic/eui/src/components/common';
|
|
5051
5597
|
import type { EuiFormControlLayoutProps } from '@elastic/eui/src/components/form/form_control_layout';
|
|
5052
5598
|
import type { EuiRangeLevelColor } from '@elastic/eui/src/components/form/range/range_levels_colors';
|
|
5599
|
+
import { EuiRangeInputProps } from '@elastic/eui/src/components/form/range/range_input';
|
|
5053
5600
|
/**
|
|
5054
5601
|
* Internal type atoms split up both for easier categorization
|
|
5055
5602
|
* and for easier reusing/picking
|
|
@@ -5194,7 +5741,7 @@ declare module '@elastic/eui/src/components/form/range/types' {
|
|
|
5194
5741
|
/**
|
|
5195
5742
|
* Intended to be used with aria attributes. Some attributes may be overwritten.
|
|
5196
5743
|
*/
|
|
5197
|
-
minInputProps?: Omit<
|
|
5744
|
+
minInputProps?: Partial<Omit<EuiRangeInputProps, 'max' | 'min' | 'step' | 'compressed' | 'autoSize' | 'fullWidth' | 'controlOnly'>>;
|
|
5198
5745
|
/**
|
|
5199
5746
|
* Intended to be used with aria attributes. Some attributes may be overwritten.
|
|
5200
5747
|
*/
|
|
@@ -5338,23 +5885,6 @@ declare module '@elastic/eui/src/components/form/range/range_highlight' {
|
|
|
5338
5885
|
}
|
|
5339
5886
|
export const EuiRangeHighlight: FunctionComponent<EuiRangeHighlightProps>;
|
|
5340
5887
|
|
|
5341
|
-
}
|
|
5342
|
-
declare module '@elastic/eui/src/components/form/range/range_input.styles' {
|
|
5343
|
-
import { UseEuiTheme } from '@elastic/eui/src/services';
|
|
5344
|
-
export const euiRangeInputStyles: ({ euiTheme }: UseEuiTheme) => {
|
|
5345
|
-
euiRangeInput: import("@emotion/utils").SerializedStyles;
|
|
5346
|
-
};
|
|
5347
|
-
|
|
5348
|
-
}
|
|
5349
|
-
declare module '@elastic/eui/src/components/form/range/range_input' {
|
|
5350
|
-
import { FunctionComponent } from 'react';
|
|
5351
|
-
import { EuiFieldNumberProps } from '@elastic/eui/src/components/form/field_number';
|
|
5352
|
-
import type { _SingleRangeValue, _SharedRangeInputSide } from '@elastic/eui/src/components/form/range/types';
|
|
5353
|
-
export interface EuiRangeInputProps extends Omit<EuiFieldNumberProps, 'max' | 'min' | 'value' | 'step'>, Omit<_SingleRangeValue, 'onChange'>, _SharedRangeInputSide {
|
|
5354
|
-
autoSize?: boolean;
|
|
5355
|
-
}
|
|
5356
|
-
export const EuiRangeInput: FunctionComponent<EuiRangeInputProps>;
|
|
5357
|
-
|
|
5358
5888
|
}
|
|
5359
5889
|
declare module '@elastic/eui/src/components/form/range/range_label.styles' {
|
|
5360
5890
|
import { UseEuiTheme } from '@elastic/eui/src/services';
|
|
@@ -6722,453 +7252,128 @@ declare module '@elastic/eui/src/services/color/manipulation' {
|
|
|
6722
7252
|
export const tint: (color: string, ratio: number) => string;
|
|
6723
7253
|
/**
|
|
6724
7254
|
* Mixes a provided color with black.
|
|
6725
|
-
* @param color - Color to mix with black
|
|
6726
|
-
* @param ratio - Mix weight. From 0-1. Larger value indicates more black.
|
|
6727
|
-
*/
|
|
6728
|
-
export const shade: (color: string, ratio: number) => string;
|
|
6729
|
-
/**
|
|
6730
|
-
* Returns the tinted color for light mode and shaded color for dark mode
|
|
6731
|
-
* @param color - Color to mix with white
|
|
6732
|
-
* @param ratio - Mix weight. From 0-1. Larger value indicates more white.
|
|
6733
|
-
* @param colorMode - Light or dark only
|
|
6734
|
-
*/
|
|
6735
|
-
export const tintOrShade: (color: string, ratio: number, colorMode: EuiThemeColorModeStandard) => string;
|
|
6736
|
-
/**
|
|
6737
|
-
* Returns the shaded color for light mode and tinted color for dark mode
|
|
6738
|
-
* @param color - Color to mix with white
|
|
6739
|
-
* @param ratio - Mix weight. From 0-1. Larger value indicates more white.
|
|
6740
|
-
* @param colorMode - Light or dark only
|
|
6741
|
-
*/
|
|
6742
|
-
export const shadeOrTint: (color: string, ratio: number, colorMode: EuiThemeColorModeStandard) => string;
|
|
6743
|
-
/**
|
|
6744
|
-
* Increases the saturation of a color by manipulating the hsl saturation.
|
|
6745
|
-
* @param color - Color to manipulate
|
|
6746
|
-
* @param amount - Amount to change in absolute terms. 0-1.
|
|
6747
|
-
*/
|
|
6748
|
-
export const saturate: (color: string, amount: number) => string;
|
|
6749
|
-
/**
|
|
6750
|
-
* Decreases the saturation of a color by manipulating the hsl saturation.
|
|
6751
|
-
* @param color - Color to manipulate
|
|
6752
|
-
* @param amount - Amount to change in absolute terms. 0-1.
|
|
6753
|
-
*/
|
|
6754
|
-
export const desaturate: (color: string, amount: number) => string;
|
|
6755
|
-
/**
|
|
6756
|
-
* Returns the lightness value of a color. 0-100
|
|
6757
|
-
* @param color
|
|
6758
|
-
*/
|
|
6759
|
-
export const lightness: (color: string) => number;
|
|
6760
|
-
/**
|
|
6761
|
-
* Returns the darken value of a color. 0-100
|
|
6762
|
-
* @param color - Color to manipulate
|
|
6763
|
-
* @param amount - Amount to change in absolute terms. 0-1.
|
|
6764
|
-
*/
|
|
6765
|
-
export const darken: (color: string, amount: number) => string;
|
|
6766
|
-
/**
|
|
6767
|
-
* Returns the brighten value of a color. 0-100
|
|
6768
|
-
* @param color - Color to manipulate
|
|
6769
|
-
* @param amount - Amount to change in absolute terms. 0-1.
|
|
6770
|
-
*/
|
|
6771
|
-
export const brighten: (color: string, amount: number) => string;
|
|
6772
|
-
|
|
6773
|
-
}
|
|
6774
|
-
declare module '@elastic/eui/src/services/color/contrast' {
|
|
6775
|
-
export const wcagContrastMin = 4.5;
|
|
6776
|
-
/**
|
|
6777
|
-
* Creates a new color that meets or exceeds WCAG level AA
|
|
6778
|
-
* @param foreground - Color to manipulate
|
|
6779
|
-
* @param ratio - Amount to change in absolute terms. 0-10.
|
|
6780
|
-
* *
|
|
6781
|
-
* @param themeOrBackground - Color to use as the contrast basis or just pass EuiTheme
|
|
6782
|
-
*/
|
|
6783
|
-
export const makeHighContrastColor: (_foreground: string, ratio?: number) => (themeOrBackground: string | {
|
|
6784
|
-
[key: string]: any;
|
|
6785
|
-
colors: {
|
|
6786
|
-
body: string;
|
|
6787
|
-
};
|
|
6788
|
-
}) => string;
|
|
6789
|
-
/**
|
|
6790
|
-
* Creates a new color with increased contrast
|
|
6791
|
-
* Disabled content only needs a contrast of at least 2 because there is no interaction available
|
|
6792
|
-
* @param foreground - Color to manipulate
|
|
6793
|
-
* @param ratio - Amount to change in absolute terms. 0-10.
|
|
6794
|
-
* *
|
|
6795
|
-
* @param themeOrBackground - Color to use as the contrast basis
|
|
6796
|
-
*/
|
|
6797
|
-
export const makeDisabledContrastColor: (color: string, ratio?: number) => (themeOrBackground: string | {
|
|
6798
|
-
[key: string]: any;
|
|
6799
|
-
colors: {
|
|
6800
|
-
body: string;
|
|
6801
|
-
};
|
|
6802
|
-
}) => string;
|
|
6803
|
-
|
|
6804
|
-
}
|
|
6805
|
-
declare module '@elastic/eui/src/services/color' {
|
|
6806
|
-
export { isColorDark } from '@elastic/eui/src/services/color/is_color_dark';
|
|
6807
|
-
export { isValidHex } from '@elastic/eui/src/services/color/is_valid_hex';
|
|
6808
|
-
export { hexToHsv } from '@elastic/eui/src/services/color/hex_to_hsv';
|
|
6809
|
-
export { hexToRgb } from '@elastic/eui/src/services/color/hex_to_rgb';
|
|
6810
|
-
export { hsvToHex } from '@elastic/eui/src/services/color/hsv_to_hex';
|
|
6811
|
-
export { hsvToRgb } from '@elastic/eui/src/services/color/hsv_to_rgb';
|
|
6812
|
-
export { rgbToHex } from '@elastic/eui/src/services/color/rgb_to_hex';
|
|
6813
|
-
export { rgbToHsv } from '@elastic/eui/src/services/color/rgb_to_hsv';
|
|
6814
|
-
export { calculateContrast, calculateLuminance, } from '@elastic/eui/src/services/color/luminance_and_contrast';
|
|
6815
|
-
export { VISUALIZATION_COLORS, DEFAULT_VISUALIZATION_COLOR, } from '@elastic/eui/src/services/color/visualization_colors';
|
|
6816
|
-
export { colorPalette } from '@elastic/eui/src/services/color/color_palette';
|
|
6817
|
-
export { euiPaletteForLightBackground, euiPaletteForDarkBackground, euiPaletteColorBlind, euiPaletteColorBlindBehindText, euiPaletteForStatus, euiPaletteForTemperature, euiPaletteComplimentary, euiPaletteNegative, euiPalettePositive, euiPaletteCool, euiPaletteWarm, euiPaletteGray, } from '@elastic/eui/src/services/color/eui_palettes';
|
|
6818
|
-
export type { rgbDef, HSV, RGB } from '@elastic/eui/src/services/color/color_types';
|
|
6819
|
-
export { getSteppedGradient } from '@elastic/eui/src/services/color/stepped_gradient';
|
|
6820
|
-
export * from '@elastic/eui/src/services/color/manipulation';
|
|
6821
|
-
export * from '@elastic/eui/src/services/color/contrast';
|
|
6822
|
-
|
|
6823
|
-
}
|
|
6824
|
-
declare module '@elastic/eui/src/themes/amsterdam/global_styling/variables/_colors' {
|
|
6825
|
-
import { _EuiThemeColors, _EuiThemeBrandColors, _EuiThemeBrandTextColors, _EuiThemeShadeColors, _EuiThemeSpecialColors, _EuiThemeTextColors, _EuiThemeColorsMode } from '@elastic/eui/src/global_styling/variables/colors';
|
|
6826
|
-
export const brand_colors: _EuiThemeBrandColors;
|
|
6827
|
-
export const brand_text_colors: _EuiThemeBrandTextColors;
|
|
6828
|
-
export const shade_colors: _EuiThemeShadeColors;
|
|
6829
|
-
export const special_colors: _EuiThemeSpecialColors;
|
|
6830
|
-
export const text_colors: _EuiThemeTextColors;
|
|
6831
|
-
export const light_colors: _EuiThemeColorsMode;
|
|
6832
|
-
export const dark_shades: _EuiThemeShadeColors;
|
|
6833
|
-
export const dark_colors_ams: _EuiThemeColorsMode;
|
|
6834
|
-
export const colors: _EuiThemeColors;
|
|
6835
|
-
|
|
6836
|
-
}
|
|
6837
|
-
declare module '@elastic/eui/src/themes/amsterdam/global_styling/variables/_animation' {
|
|
6838
|
-
import { _EuiThemeAnimationSpeeds, _EuiThemeAnimationEasings, _EuiThemeAnimation } from '@elastic/eui/src/global_styling/variables/animations';
|
|
6839
|
-
export const animation_speed: _EuiThemeAnimationSpeeds;
|
|
6840
|
-
export const animation_ease: _EuiThemeAnimationEasings;
|
|
6841
|
-
export const animation: _EuiThemeAnimation;
|
|
6842
|
-
|
|
6843
|
-
}
|
|
6844
|
-
declare module '@elastic/eui/src/global_styling/variables' {
|
|
6845
|
-
export * from '@elastic/eui/src/global_styling/variables/animations';
|
|
6846
|
-
export * from '@elastic/eui/src/global_styling/variables/borders';
|
|
6847
|
-
export * from '@elastic/eui/src/global_styling/variables/breakpoint';
|
|
6848
|
-
export * from '@elastic/eui/src/global_styling/variables/colors';
|
|
6849
|
-
export * from '@elastic/eui/src/global_styling/variables/levels';
|
|
6850
|
-
export * from '@elastic/eui/src/global_styling/variables/size';
|
|
6851
|
-
export * from '@elastic/eui/src/global_styling/variables/shadow';
|
|
6852
|
-
export * from '@elastic/eui/src/global_styling/variables/states';
|
|
6853
|
-
export * from '@elastic/eui/src/global_styling/variables/typography';
|
|
6854
|
-
|
|
6855
|
-
}
|
|
6856
|
-
declare module '@elastic/eui/src/themes/amsterdam/global_styling/variables/_breakpoint' {
|
|
6857
|
-
import { _EuiThemeBreakpoints } from '@elastic/eui/src/global_styling/variables';
|
|
6858
|
-
export const breakpoint: _EuiThemeBreakpoints;
|
|
6859
|
-
|
|
6860
|
-
}
|
|
6861
|
-
declare module '@elastic/eui/src/global_styling/functions/logicals' {
|
|
6862
|
-
import { CSSProperties } from 'react';
|
|
6863
|
-
/**
|
|
6864
|
-
* EUI utilizes logical CSS properties to enable directional writing-modes.
|
|
6865
|
-
* To encourage use of logical properties, we provide a few helper utilities to
|
|
6866
|
-
* convert certain directional properties to logical properties.
|
|
6867
|
-
* https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Logical_Properties
|
|
6868
|
-
*/
|
|
6869
|
-
export const logicalSide: {
|
|
6870
|
-
left: string;
|
|
6871
|
-
right: string;
|
|
6872
|
-
top: string;
|
|
6873
|
-
bottom: string;
|
|
6874
|
-
horizontal: string;
|
|
6875
|
-
vertical: string;
|
|
6876
|
-
};
|
|
6877
|
-
export const LOGICAL_SIDES: ("left" | "right" | "top" | "bottom" | "horizontal" | "vertical")[];
|
|
6878
|
-
export type LogicalSides = (typeof LOGICAL_SIDES)[number];
|
|
6879
|
-
export const logicals: {
|
|
6880
|
-
height: string;
|
|
6881
|
-
width: string;
|
|
6882
|
-
"max-height": string;
|
|
6883
|
-
"max-width": string;
|
|
6884
|
-
"min-height": string;
|
|
6885
|
-
"min-width": string;
|
|
6886
|
-
top: string;
|
|
6887
|
-
right: string;
|
|
6888
|
-
bottom: string;
|
|
6889
|
-
left: string;
|
|
6890
|
-
horizontal: string;
|
|
6891
|
-
vertical: string;
|
|
6892
|
-
"margin-left": string;
|
|
6893
|
-
"margin-right": string;
|
|
6894
|
-
"margin-top": string;
|
|
6895
|
-
"margin-bottom": string;
|
|
6896
|
-
"margin-horizontal": string;
|
|
6897
|
-
"margin-vertical": string;
|
|
6898
|
-
"padding-left": string;
|
|
6899
|
-
"padding-right": string;
|
|
6900
|
-
"padding-top": string;
|
|
6901
|
-
"padding-bottom": string;
|
|
6902
|
-
"padding-horizontal": string;
|
|
6903
|
-
"padding-vertical": string;
|
|
6904
|
-
"overflow-x": string;
|
|
6905
|
-
"overflow-y": string;
|
|
6906
|
-
"border-horizontal": string;
|
|
6907
|
-
"border-horizontal-color": string;
|
|
6908
|
-
"border-horizontal-width": string;
|
|
6909
|
-
"border-horizontal-style": string;
|
|
6910
|
-
"border-vertical": string;
|
|
6911
|
-
"border-vertical-color": string;
|
|
6912
|
-
"border-vertical-width": string;
|
|
6913
|
-
"border-vertical-style": string;
|
|
6914
|
-
"border-bottom": string;
|
|
6915
|
-
"border-bottom-color": string;
|
|
6916
|
-
"border-bottom-style": string;
|
|
6917
|
-
"border-bottom-width": string;
|
|
6918
|
-
"border-top": string;
|
|
6919
|
-
"border-top-color": string;
|
|
6920
|
-
"border-top-style": string;
|
|
6921
|
-
"border-top-width": string;
|
|
6922
|
-
"border-right": string;
|
|
6923
|
-
"border-right-color": string;
|
|
6924
|
-
"border-right-style": string;
|
|
6925
|
-
"border-right-width": string;
|
|
6926
|
-
"border-left": string;
|
|
6927
|
-
"border-left-color": string;
|
|
6928
|
-
"border-left-style": string;
|
|
6929
|
-
"border-left-width": string;
|
|
6930
|
-
"border-top-left-radius": string;
|
|
6931
|
-
"border-top-right-radius": string;
|
|
6932
|
-
"border-bottom-left-radius": string;
|
|
6933
|
-
"border-bottom-right-radius": string;
|
|
6934
|
-
_shorthands: string[];
|
|
6935
|
-
};
|
|
6936
|
-
export const LOGICAL_PROPERTIES: ("left" | "right" | "top" | "width" | "height" | "bottom" | "max-height" | "max-width" | "min-height" | "min-width" | "horizontal" | "vertical" | "margin-left" | "margin-right" | "margin-top" | "margin-bottom" | "margin-horizontal" | "margin-vertical" | "padding-left" | "padding-right" | "padding-top" | "padding-bottom" | "padding-horizontal" | "padding-vertical" | "overflow-x" | "overflow-y" | "border-horizontal" | "border-horizontal-color" | "border-horizontal-width" | "border-horizontal-style" | "border-vertical" | "border-vertical-color" | "border-vertical-width" | "border-vertical-style" | "border-bottom" | "border-bottom-color" | "border-bottom-style" | "border-bottom-width" | "border-top" | "border-top-color" | "border-top-style" | "border-top-width" | "border-right" | "border-right-color" | "border-right-style" | "border-right-width" | "border-left" | "border-left-color" | "border-left-style" | "border-left-width" | "border-top-left-radius" | "border-top-right-radius" | "border-bottom-left-radius" | "border-bottom-right-radius")[];
|
|
6937
|
-
export type LogicalProperties = (typeof LOGICAL_PROPERTIES)[number];
|
|
6938
|
-
/**
|
|
6939
|
-
*
|
|
6940
|
-
* @param property A string that is a valid CSS logical property
|
|
6941
|
-
* @param value String to output as the property value
|
|
6942
|
-
* @returns `string` Returns the logical CSS property version for the given `property: value` pair
|
|
6943
|
-
*/
|
|
6944
|
-
export const logicalCSS: (property: LogicalProperties, value?: any) => string;
|
|
6945
|
-
/**
|
|
6946
|
-
* Some logical properties are not yet fully supported by all browsers.
|
|
6947
|
-
* For those cases, we should use the old property as a fallback for
|
|
6948
|
-
* browsers missing support, while allowing supporting browsers to use
|
|
6949
|
-
* the logical properties.
|
|
6950
|
-
*
|
|
6951
|
-
* Examples:
|
|
6952
|
-
* https://caniuse.com/?search=overflow-block
|
|
6953
|
-
* https://caniuse.com/mdn-css_properties_float_flow_relative_values
|
|
6954
|
-
*/
|
|
6955
|
-
export const logicalCSSWithFallback: (property: LogicalProperties, value?: any) => string;
|
|
6956
|
-
/**
|
|
6957
|
-
*
|
|
6958
|
-
* @param property A string that is a valid CSS logical property
|
|
6959
|
-
* @param value String to output as the property value
|
|
6960
|
-
* @returns `object` Returns the logical CSS property version for the given `property: value` pair
|
|
7255
|
+
* @param color - Color to mix with black
|
|
7256
|
+
* @param ratio - Mix weight. From 0-1. Larger value indicates more black.
|
|
6961
7257
|
*/
|
|
6962
|
-
export const
|
|
6963
|
-
[x: string]: any;
|
|
6964
|
-
};
|
|
7258
|
+
export const shade: (color: string, ratio: number) => string;
|
|
6965
7259
|
/**
|
|
6966
|
-
*
|
|
6967
|
-
*
|
|
6968
|
-
*
|
|
6969
|
-
* @param
|
|
6970
|
-
* @returns `object`
|
|
7260
|
+
* Returns the tinted color for light mode and shaded color for dark mode
|
|
7261
|
+
* @param color - Color to mix with white
|
|
7262
|
+
* @param ratio - Mix weight. From 0-1. Larger value indicates more white.
|
|
7263
|
+
* @param colorMode - Light or dark only
|
|
6971
7264
|
*/
|
|
6972
|
-
export const
|
|
7265
|
+
export const tintOrShade: (color: string, ratio: number, colorMode: EuiThemeColorModeStandard) => string;
|
|
6973
7266
|
/**
|
|
6974
|
-
*
|
|
6975
|
-
* @param
|
|
6976
|
-
* @param
|
|
6977
|
-
* @
|
|
7267
|
+
* Returns the shaded color for light mode and tinted color for dark mode
|
|
7268
|
+
* @param color - Color to mix with white
|
|
7269
|
+
* @param ratio - Mix weight. From 0-1. Larger value indicates more white.
|
|
7270
|
+
* @param colorMode - Light or dark only
|
|
6978
7271
|
*/
|
|
6979
|
-
export const
|
|
7272
|
+
export const shadeOrTint: (color: string, ratio: number, colorMode: EuiThemeColorModeStandard) => string;
|
|
6980
7273
|
/**
|
|
6981
|
-
*
|
|
6982
|
-
* @param
|
|
6983
|
-
* @param
|
|
6984
|
-
* @returns `object` Returns the logical CSS properties for height and width
|
|
7274
|
+
* Increases the saturation of a color by manipulating the hsl saturation.
|
|
7275
|
+
* @param color - Color to manipulate
|
|
7276
|
+
* @param amount - Amount to change in absolute terms. 0-1.
|
|
6985
7277
|
*/
|
|
6986
|
-
export const
|
|
6987
|
-
[x: string]: any;
|
|
6988
|
-
};
|
|
6989
|
-
export const logicalText: {
|
|
6990
|
-
'text-align': {
|
|
6991
|
-
left: string;
|
|
6992
|
-
center: string;
|
|
6993
|
-
right: string;
|
|
6994
|
-
};
|
|
6995
|
-
};
|
|
6996
|
-
export const LOGICAL_TEXT_ALIGNMENT: ("left" | "right" | "center")[];
|
|
6997
|
-
export type LogicalText = (typeof LOGICAL_TEXT_ALIGNMENT)[number];
|
|
7278
|
+
export const saturate: (color: string, amount: number) => string;
|
|
6998
7279
|
/**
|
|
6999
|
-
*
|
|
7000
|
-
* @param
|
|
7001
|
-
* @param
|
|
7002
|
-
* @returns `string` Returns the logical CSS property version for the given `property: value` pair
|
|
7280
|
+
* Decreases the saturation of a color by manipulating the hsl saturation.
|
|
7281
|
+
* @param color - Color to manipulate
|
|
7282
|
+
* @param amount - Amount to change in absolute terms. 0-1.
|
|
7003
7283
|
*/
|
|
7004
|
-
export const
|
|
7284
|
+
export const desaturate: (color: string, amount: number) => string;
|
|
7005
7285
|
/**
|
|
7006
|
-
*
|
|
7007
|
-
* @param
|
|
7008
|
-
* @param value String to output as the property value
|
|
7009
|
-
* @returns `object` Returns the logical CSS property version for the given `property: value` pair
|
|
7286
|
+
* Returns the lightness value of a color. 0-100
|
|
7287
|
+
* @param color
|
|
7010
7288
|
*/
|
|
7011
|
-
export const
|
|
7012
|
-
textAlign: string;
|
|
7013
|
-
};
|
|
7014
|
-
|
|
7015
|
-
}
|
|
7016
|
-
declare module '@elastic/eui/src/global_styling/functions/logical_shorthands' {
|
|
7017
|
-
export const LOGICAL_SHORTHANDS: string[];
|
|
7018
|
-
export type LogicalShorthands = (typeof LOGICAL_SHORTHANDS)[number];
|
|
7289
|
+
export const lightness: (color: string) => number;
|
|
7019
7290
|
/**
|
|
7020
|
-
*
|
|
7021
|
-
*
|
|
7022
|
-
*
|
|
7023
|
-
* (@see https://github.com/w3c/csswg-drafts/issues/1282)
|
|
7024
|
-
*
|
|
7025
|
-
* This utility is essentially a stop-gap for those shorthand properties,
|
|
7026
|
-
* converting them to corresponding longer logical `-inline` and `-block` properties
|
|
7027
|
-
*
|
|
7028
|
-
* 🗑 NOTE: This file is in a separate util file from logicals.ts due to its relatively
|
|
7029
|
-
* convoluted logic, & to make deleting it easier when an official CSS spec is implemented.
|
|
7291
|
+
* Returns the darken value of a color. 0-100
|
|
7292
|
+
* @param color - Color to manipulate
|
|
7293
|
+
* @param amount - Amount to change in absolute terms. 0-1.
|
|
7030
7294
|
*/
|
|
7031
|
-
export const
|
|
7295
|
+
export const darken: (color: string, amount: number) => string;
|
|
7032
7296
|
/**
|
|
7033
|
-
*
|
|
7034
|
-
*
|
|
7035
|
-
*
|
|
7036
|
-
*
|
|
7037
|
-
* It also needs to account for `/` syntax (horizontal vs vertical radii)
|
|
7038
|
-
* @see https://www.sitepoint.com/setting-css3-border-radius-with-slash-syntax/
|
|
7297
|
+
* Returns the brighten value of a color. 0-100
|
|
7298
|
+
* @param color - Color to manipulate
|
|
7299
|
+
* @param amount - Amount to change in absolute terms. 0-1.
|
|
7039
7300
|
*/
|
|
7040
|
-
export const
|
|
7041
|
-
|
|
7042
|
-
}
|
|
7043
|
-
declare module '@elastic/eui/src/global_styling/functions/math' {
|
|
7044
|
-
type ValueTypes = string | number | undefined;
|
|
7045
|
-
export const mathWithUnits: (values: ValueTypes | ValueTypes[], callback: (...args: number[]) => number, unit?: string) => string;
|
|
7046
|
-
export {};
|
|
7301
|
+
export const brighten: (color: string, amount: number) => string;
|
|
7047
7302
|
|
|
7048
7303
|
}
|
|
7049
|
-
declare module '@elastic/eui/src/
|
|
7304
|
+
declare module '@elastic/eui/src/services/color/contrast' {
|
|
7305
|
+
export const wcagContrastMin = 4.5;
|
|
7050
7306
|
/**
|
|
7051
|
-
*
|
|
7052
|
-
* @param
|
|
7053
|
-
*
|
|
7054
|
-
* @param themeOrBase - Theme base value
|
|
7307
|
+
* Creates a new color that meets or exceeds WCAG level AA
|
|
7308
|
+
* @param foreground - Color to manipulate
|
|
7309
|
+
* @param ratio - Amount to change in absolute terms. 0-10.
|
|
7055
7310
|
* *
|
|
7056
|
-
* @
|
|
7311
|
+
* @param themeOrBackground - Color to use as the contrast basis or just pass EuiTheme
|
|
7057
7312
|
*/
|
|
7058
|
-
export const
|
|
7313
|
+
export const makeHighContrastColor: (_foreground: string, ratio?: number) => (themeOrBackground: string | {
|
|
7059
7314
|
[key: string]: any;
|
|
7060
|
-
|
|
7315
|
+
colors: {
|
|
7316
|
+
body: string;
|
|
7317
|
+
};
|
|
7061
7318
|
}) => string;
|
|
7062
|
-
|
|
7063
|
-
|
|
7064
|
-
|
|
7065
|
-
|
|
7066
|
-
|
|
7067
|
-
|
|
7068
|
-
|
|
7069
|
-
|
|
7070
|
-
export
|
|
7071
|
-
|
|
7072
|
-
|
|
7073
|
-
|
|
7074
|
-
children: any;
|
|
7075
|
-
/**
|
|
7076
|
-
* Nested theme providers will receive a wrapping `span` tag in order to correctly
|
|
7077
|
-
* set the default text `color` that all nested children will inherit.
|
|
7078
|
-
*
|
|
7079
|
-
* If an extra wrapper is not desired, pass `{ cloneElement: true }`.
|
|
7080
|
-
* This requires a **single** child component that the correct color class can be passed to.
|
|
7081
|
-
*
|
|
7082
|
-
* The parent level `EuiProvider`/`EuiThemeProvider` will **not** render a wrapper element, as
|
|
7083
|
-
* the default inherited text color will be set on the page `body`.
|
|
7084
|
-
*/
|
|
7085
|
-
wrapperProps?: HTMLAttributes<HTMLElement> & CommonProps & {
|
|
7086
|
-
cloneElement?: boolean;
|
|
7319
|
+
/**
|
|
7320
|
+
* Creates a new color with increased contrast
|
|
7321
|
+
* Disabled content only needs a contrast of at least 2 because there is no interaction available
|
|
7322
|
+
* @param foreground - Color to manipulate
|
|
7323
|
+
* @param ratio - Amount to change in absolute terms. 0-10.
|
|
7324
|
+
* *
|
|
7325
|
+
* @param themeOrBackground - Color to use as the contrast basis
|
|
7326
|
+
*/
|
|
7327
|
+
export const makeDisabledContrastColor: (color: string, ratio?: number) => (themeOrBackground: string | {
|
|
7328
|
+
[key: string]: any;
|
|
7329
|
+
colors: {
|
|
7330
|
+
body: string;
|
|
7087
7331
|
};
|
|
7088
|
-
}
|
|
7089
|
-
export const EuiThemeProvider: <T extends {} = {}>({ theme: _system, colorMode: _colorMode, modify: _modifications, children, wrapperProps, }: React.PropsWithChildren<EuiThemeProviderProps<T>>) => JSX.Element;
|
|
7090
|
-
export {};
|
|
7332
|
+
}) => string;
|
|
7091
7333
|
|
|
7092
7334
|
}
|
|
7093
|
-
declare module '@elastic/eui/src/services/
|
|
7094
|
-
|
|
7095
|
-
|
|
7096
|
-
|
|
7097
|
-
|
|
7098
|
-
|
|
7099
|
-
export
|
|
7100
|
-
|
|
7101
|
-
|
|
7102
|
-
|
|
7103
|
-
}
|
|
7104
|
-
export
|
|
7105
|
-
|
|
7106
|
-
|
|
7107
|
-
|
|
7108
|
-
export
|
|
7109
|
-
|
|
7110
|
-
}
|
|
7111
|
-
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">>>;
|
|
7112
|
-
/**
|
|
7113
|
-
* Render prop alternative for complex class components
|
|
7114
|
-
* Most useful for scenarios where a HOC may interfere with typing
|
|
7115
|
-
*/
|
|
7116
|
-
export const RenderWithEuiTheme: <T extends {} = {}>({ children, }: {
|
|
7117
|
-
children: (theme: UseEuiTheme) => React.ReactElement;
|
|
7118
|
-
}) => React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
7335
|
+
declare module '@elastic/eui/src/services/color' {
|
|
7336
|
+
export { isColorDark } from '@elastic/eui/src/services/color/is_color_dark';
|
|
7337
|
+
export { isValidHex } from '@elastic/eui/src/services/color/is_valid_hex';
|
|
7338
|
+
export { hexToHsv } from '@elastic/eui/src/services/color/hex_to_hsv';
|
|
7339
|
+
export { hexToRgb } from '@elastic/eui/src/services/color/hex_to_rgb';
|
|
7340
|
+
export { hsvToHex } from '@elastic/eui/src/services/color/hsv_to_hex';
|
|
7341
|
+
export { hsvToRgb } from '@elastic/eui/src/services/color/hsv_to_rgb';
|
|
7342
|
+
export { rgbToHex } from '@elastic/eui/src/services/color/rgb_to_hex';
|
|
7343
|
+
export { rgbToHsv } from '@elastic/eui/src/services/color/rgb_to_hsv';
|
|
7344
|
+
export { calculateContrast, calculateLuminance, } from '@elastic/eui/src/services/color/luminance_and_contrast';
|
|
7345
|
+
export { VISUALIZATION_COLORS, DEFAULT_VISUALIZATION_COLOR, } from '@elastic/eui/src/services/color/visualization_colors';
|
|
7346
|
+
export { colorPalette } from '@elastic/eui/src/services/color/color_palette';
|
|
7347
|
+
export { euiPaletteForLightBackground, euiPaletteForDarkBackground, euiPaletteColorBlind, euiPaletteColorBlindBehindText, euiPaletteForStatus, euiPaletteForTemperature, euiPaletteComplimentary, euiPaletteNegative, euiPalettePositive, euiPaletteCool, euiPaletteWarm, euiPaletteGray, } from '@elastic/eui/src/services/color/eui_palettes';
|
|
7348
|
+
export type { rgbDef, HSV, RGB } from '@elastic/eui/src/services/color/color_types';
|
|
7349
|
+
export { getSteppedGradient } from '@elastic/eui/src/services/color/stepped_gradient';
|
|
7350
|
+
export * from '@elastic/eui/src/services/color/manipulation';
|
|
7351
|
+
export * from '@elastic/eui/src/services/color/contrast';
|
|
7119
7352
|
|
|
7120
7353
|
}
|
|
7121
|
-
declare module '@elastic/eui/src/global_styling/
|
|
7122
|
-
import {
|
|
7123
|
-
|
|
7124
|
-
export
|
|
7125
|
-
|
|
7126
|
-
|
|
7127
|
-
|
|
7128
|
-
|
|
7129
|
-
|
|
7130
|
-
|
|
7131
|
-
|
|
7132
|
-
*/
|
|
7133
|
-
customScale?: _EuiThemeFontScale;
|
|
7134
|
-
}
|
|
7135
|
-
/**
|
|
7136
|
-
* Calculates the font-size value based on the provided scale key
|
|
7137
|
-
* @param scale - The font scale key
|
|
7138
|
-
* @param theme - Requires the `base` and `font` keys
|
|
7139
|
-
* @param options - Optional parameters - see _FontScaleOptions
|
|
7140
|
-
*
|
|
7141
|
-
* @returns string - Calculated font-size value
|
|
7142
|
-
*/
|
|
7143
|
-
export function euiFontSizeFromScale(scale: _EuiThemeFontScale, { base, font }: UseEuiTheme['euiTheme'], { measurement, customScale }?: _FontScaleOptions): string;
|
|
7144
|
-
/**
|
|
7145
|
-
* Calculates the line-height to the closest multiple of the baseline
|
|
7146
|
-
* EX: A proper line-height for text is 1.5 times the font-size.
|
|
7147
|
-
* If our base font size (euiFontSize) is 16, and our baseline is 4. To ensure the
|
|
7148
|
-
* text stays on the baseline, we pass a multiplier to calculate a line-height.
|
|
7149
|
-
* @param scale - The font scale key
|
|
7150
|
-
* @param theme - Requires the `base` and `font` keys
|
|
7151
|
-
* @param options - Optional parameters - see _FontScaleOptions
|
|
7152
|
-
*
|
|
7153
|
-
* @returns string - Calculated line-height value aligned to baseline
|
|
7154
|
-
*/
|
|
7155
|
-
export function euiLineHeightFromBaseline(scale: _EuiThemeFontScale, { base, font }: UseEuiTheme['euiTheme'], { measurement, customScale }?: _FontScaleOptions): string;
|
|
7156
|
-
/**
|
|
7157
|
-
* Text weight shifting
|
|
7158
|
-
*
|
|
7159
|
-
* When changing the font-weight based on the state of the component,
|
|
7160
|
-
* this mixin will ensure that the sizing is dependent on the boldest
|
|
7161
|
-
* weight so it doesn't shift sibling content.
|
|
7162
|
-
*/
|
|
7163
|
-
export const euiTextShift: (fontWeight: keyof _EuiThemeFontWeights | undefined, attribute: string | undefined, euiTheme: UseEuiTheme['euiTheme']) => string;
|
|
7354
|
+
declare module '@elastic/eui/src/themes/amsterdam/global_styling/variables/_colors' {
|
|
7355
|
+
import { _EuiThemeColors, _EuiThemeBrandColors, _EuiThemeBrandTextColors, _EuiThemeShadeColors, _EuiThemeSpecialColors, _EuiThemeTextColors, _EuiThemeColorsMode } from '@elastic/eui/src/global_styling/variables/colors';
|
|
7356
|
+
export const brand_colors: _EuiThemeBrandColors;
|
|
7357
|
+
export const brand_text_colors: _EuiThemeBrandTextColors;
|
|
7358
|
+
export const shade_colors: _EuiThemeShadeColors;
|
|
7359
|
+
export const special_colors: _EuiThemeSpecialColors;
|
|
7360
|
+
export const text_colors: _EuiThemeTextColors;
|
|
7361
|
+
export const light_colors: _EuiThemeColorsMode;
|
|
7362
|
+
export const dark_shades: _EuiThemeShadeColors;
|
|
7363
|
+
export const dark_colors_ams: _EuiThemeColorsMode;
|
|
7364
|
+
export const colors: _EuiThemeColors;
|
|
7164
7365
|
|
|
7165
7366
|
}
|
|
7166
|
-
declare module '@elastic/eui/src/global_styling/
|
|
7167
|
-
|
|
7168
|
-
export
|
|
7169
|
-
export
|
|
7170
|
-
export
|
|
7171
|
-
|
|
7367
|
+
declare module '@elastic/eui/src/themes/amsterdam/global_styling/variables/_animation' {
|
|
7368
|
+
import { _EuiThemeAnimationSpeeds, _EuiThemeAnimationEasings, _EuiThemeAnimation } from '@elastic/eui/src/global_styling/variables/animations';
|
|
7369
|
+
export const animation_speed: _EuiThemeAnimationSpeeds;
|
|
7370
|
+
export const animation_ease: _EuiThemeAnimationEasings;
|
|
7371
|
+
export const animation: _EuiThemeAnimation;
|
|
7372
|
+
|
|
7373
|
+
}
|
|
7374
|
+
declare module '@elastic/eui/src/themes/amsterdam/global_styling/variables/_breakpoint' {
|
|
7375
|
+
import { _EuiThemeBreakpoints } from '@elastic/eui/src/global_styling/variables';
|
|
7376
|
+
export const breakpoint: _EuiThemeBreakpoints;
|
|
7172
7377
|
|
|
7173
7378
|
}
|
|
7174
7379
|
declare module '@elastic/eui/src/themes/amsterdam/global_styling/variables/_size' {
|
|
@@ -7221,13 +7426,54 @@ declare module '@elastic/eui/src/services/theme/context' {
|
|
|
7221
7426
|
export const EuiThemeContext: import("react").Context<EuiThemeComputed<{}>>;
|
|
7222
7427
|
export const EuiNestedThemeContext: import("react").Context<EuiThemeNested>;
|
|
7223
7428
|
|
|
7429
|
+
}
|
|
7430
|
+
declare module '@elastic/eui/src/services/theme/emotion' {
|
|
7431
|
+
import { FunctionComponent, PropsWithChildren } from 'react';
|
|
7432
|
+
/**
|
|
7433
|
+
* @see https://emotion.sh/docs/theming
|
|
7434
|
+
* This Emotion theme provider is added for *consumer usage* & convenience only.
|
|
7435
|
+
*
|
|
7436
|
+
* EUI should stick to using our own context/`useEuiTheme` internally
|
|
7437
|
+
* instead of Emotion's shorthand `css={theme => {}}` API. If consumers
|
|
7438
|
+
* set their own theme via <ThemeProvider>; EUI's styles should continue
|
|
7439
|
+
* working as-is.
|
|
7440
|
+
*/
|
|
7441
|
+
export const EuiEmotionThemeProvider: FunctionComponent<PropsWithChildren<{}>>;
|
|
7442
|
+
|
|
7443
|
+
}
|
|
7444
|
+
declare module '@elastic/eui/src/services/theme/provider' {
|
|
7445
|
+
import React, { PropsWithChildren, HTMLAttributes } from 'react';
|
|
7446
|
+
import type { CommonProps } from '@elastic/eui/src/components/common';
|
|
7447
|
+
import { EuiThemeColorMode, EuiThemeSystem, EuiThemeModifications } from '@elastic/eui/src/services/theme/types';
|
|
7448
|
+
export interface EuiThemeProviderProps<T> {
|
|
7449
|
+
theme?: EuiThemeSystem<T>;
|
|
7450
|
+
colorMode?: EuiThemeColorMode;
|
|
7451
|
+
modify?: EuiThemeModifications<T>;
|
|
7452
|
+
children: any;
|
|
7453
|
+
/**
|
|
7454
|
+
* Nested theme providers will receive a wrapping `span` tag in order to correctly
|
|
7455
|
+
* set the default text `color` that all nested children will inherit.
|
|
7456
|
+
*
|
|
7457
|
+
* If an extra wrapper is not desired, pass `{ cloneElement: true }`.
|
|
7458
|
+
* This requires a **single** child component that the correct color class can be passed to.
|
|
7459
|
+
*
|
|
7460
|
+
* The parent level `EuiProvider`/`EuiThemeProvider` will **not** render a wrapper element, as
|
|
7461
|
+
* the default inherited text color will be set on the page `body`.
|
|
7462
|
+
*/
|
|
7463
|
+
wrapperProps?: HTMLAttributes<HTMLElement> & CommonProps & {
|
|
7464
|
+
cloneElement?: boolean;
|
|
7465
|
+
};
|
|
7466
|
+
}
|
|
7467
|
+
export const EuiThemeProvider: <T extends {} = {}>({ theme: _system, colorMode: _colorMode, modify: _modifications, children, wrapperProps, }: React.PropsWithChildren<EuiThemeProviderProps<T>>) => JSX.Element;
|
|
7468
|
+
|
|
7224
7469
|
}
|
|
7225
7470
|
declare module '@elastic/eui/src/services/theme' {
|
|
7226
7471
|
export { EuiSystemContext, EuiThemeContext, EuiNestedThemeContext, EuiModificationsContext, EuiColorModeContext, } from '@elastic/eui/src/services/theme/context';
|
|
7227
7472
|
export type { UseEuiTheme, WithEuiThemeProps } from '@elastic/eui/src/services/theme/hooks';
|
|
7228
7473
|
export { useEuiTheme, withEuiTheme, RenderWithEuiTheme } from '@elastic/eui/src/services/theme/hooks';
|
|
7229
7474
|
export type { EuiThemeProviderProps } from '@elastic/eui/src/services/theme/provider';
|
|
7230
|
-
export { EuiThemeProvider
|
|
7475
|
+
export { EuiThemeProvider } from '@elastic/eui/src/services/theme/provider';
|
|
7476
|
+
export { getEuiDevProviderWarning, setEuiDevProviderWarning } from '@elastic/eui/src/services/theme/warning';
|
|
7231
7477
|
export { buildTheme, computed, isInverseColorMode, getColorMode, getComputed, getOn, mergeDeep, setOn, Computed, } from '@elastic/eui/src/services/theme/utils';
|
|
7232
7478
|
export type { ComputedThemeShape, EuiThemeColorMode, EuiThemeColorModeStandard, EuiThemeComputed, EuiThemeModifications, EuiThemeShape, EuiThemeSystem, } from '@elastic/eui/src/services/theme/types';
|
|
7233
7479
|
export { COLOR_MODES_STANDARD } from '@elastic/eui/src/services/theme/types';
|
|
@@ -7236,12 +7482,6 @@ declare module '@elastic/eui/src/services/theme' {
|
|
|
7236
7482
|
declare module '@elastic/eui/src/services/throttle' {
|
|
7237
7483
|
export const throttle: (fn: (...args: any[]) => void, wait?: number) => (...args: any[]) => void;
|
|
7238
7484
|
|
|
7239
|
-
}
|
|
7240
|
-
declare module '@elastic/eui/src/services/breakpoint/_sorting' {
|
|
7241
|
-
import { _EuiThemeBreakpoints } from '@elastic/eui/src/global_styling/variables/breakpoint';
|
|
7242
|
-
export const sortMapByLargeToSmallValues: (breakpointsMap: _EuiThemeBreakpoints) => _EuiThemeBreakpoints;
|
|
7243
|
-
export const sortMapBySmallToLargeValues: (breakpointsMap: _EuiThemeBreakpoints) => _EuiThemeBreakpoints;
|
|
7244
|
-
|
|
7245
7485
|
}
|
|
7246
7486
|
declare module '@elastic/eui/src/services/breakpoint/current_breakpoint' {
|
|
7247
7487
|
import React, { FunctionComponent } from 'react';
|
|
@@ -7335,6 +7575,20 @@ declare module '@elastic/eui/src/services/console' {
|
|
|
7335
7575
|
declare module '@elastic/eui/src/services/copy_to_clipboard' {
|
|
7336
7576
|
export function copyToClipboard(text: string): boolean;
|
|
7337
7577
|
|
|
7578
|
+
}
|
|
7579
|
+
declare module '@elastic/eui/src/services/emotion/clone_element' {
|
|
7580
|
+
import React from 'react';
|
|
7581
|
+
/**
|
|
7582
|
+
* React.cloneElement does not work if the cloned element does not already have the
|
|
7583
|
+
* `css` prop - as a result, we need to use `jsx()` to manually clone the element
|
|
7584
|
+
* See https://github.com/emotion-js/emotion/issues/1404
|
|
7585
|
+
*/
|
|
7586
|
+
export const cloneElementWithCss: (element: any, props: any) => React.ReactElement;
|
|
7587
|
+
|
|
7588
|
+
}
|
|
7589
|
+
declare module '@elastic/eui/src/services/emotion' {
|
|
7590
|
+
export * from '@elastic/eui/src/services/emotion/clone_element';
|
|
7591
|
+
|
|
7338
7592
|
}
|
|
7339
7593
|
declare module '@elastic/eui/src/services/findElement' {
|
|
7340
7594
|
/**
|
|
@@ -7539,462 +7793,229 @@ declare module '@elastic/eui/src/services/security/get_secure_rel_for_target' {
|
|
|
7539
7793
|
|
|
7540
7794
|
}
|
|
7541
7795
|
declare module '@elastic/eui/src/services/security' {
|
|
7542
|
-
export { getSecureRelForTarget } from '@elastic/eui/src/services/security/get_secure_rel_for_target';
|
|
7543
|
-
|
|
7544
|
-
}
|
|
7545
|
-
declare module '@elastic/eui/src/services/sort/sort_direction' {
|
|
7546
|
-
import PropTypes from 'prop-types'; const ASC: "asc"; const DESC: "desc";
|
|
7547
|
-
export type Direction = typeof ASC | typeof DESC;
|
|
7548
|
-
export const SortDirection: Readonly<{
|
|
7549
|
-
ASC: "asc";
|
|
7550
|
-
DESC: "desc";
|
|
7551
|
-
isAsc(direction: Direction): boolean;
|
|
7552
|
-
reverse(direction: Direction): "desc" | "asc";
|
|
7553
|
-
}>;
|
|
7554
|
-
export const SortDirectionType: PropTypes.Requireable<"desc" | "asc">;
|
|
7555
|
-
export {};
|
|
7556
|
-
|
|
7557
|
-
}
|
|
7558
|
-
declare module '@elastic/eui/src/services/sort/comparators' {
|
|
7559
|
-
export type Primitive = string | boolean | number | null | undefined; type Comparator<T = Primitive> = (a: T, b: T) => number;
|
|
7560
|
-
export const Comparators: Readonly<{
|
|
7561
|
-
default: (direction?: 'asc' | 'desc') => (v1: Primitive, v2: Primitive) => number;
|
|
7562
|
-
reverse: <T>(comparator: Comparator<T>) => Comparator<T>;
|
|
7563
|
-
value<T_1>(valueCallback: (value: T_1) => Primitive, comparator?: Comparator<Primitive> | undefined): Comparator<T_1>;
|
|
7564
|
-
property<T_2>(prop: string, comparator?: Comparator<Primitive> | undefined): Comparator<T_2>;
|
|
7565
|
-
}>;
|
|
7566
|
-
export {};
|
|
7567
|
-
|
|
7568
|
-
}
|
|
7569
|
-
declare module '@elastic/eui/src/services/sort/sortable_properties' {
|
|
7570
|
-
import { Primitive } from '@elastic/eui/src/services/sort/comparators';
|
|
7571
|
-
export interface SortableProperty<T> {
|
|
7572
|
-
name: string;
|
|
7573
|
-
getValue: (obj: T) => Primitive;
|
|
7574
|
-
isAscending: boolean;
|
|
7575
|
-
}
|
|
7576
|
-
/**
|
|
7577
|
-
* @typedef {Object} SortableProperty
|
|
7578
|
-
* @property {string} sortableProperty.name - Name of the property.
|
|
7579
|
-
* @property {function} sortableProperty.getValue - A function that takes in an object and returns a value to sort
|
|
7580
|
-
* by.
|
|
7581
|
-
* @property {boolean} sortableProperty.isAscending - The direction of the last sort by this property. Used to preserve
|
|
7582
|
-
* past sort orders.
|
|
7583
|
-
*/
|
|
7584
|
-
/**
|
|
7585
|
-
* Stores sort information for a set of SortableProperties, including which property is currently being sorted on, as
|
|
7586
|
-
* well as the last sort order for each property.
|
|
7587
|
-
*/
|
|
7588
|
-
export class SortableProperties<T> {
|
|
7589
|
-
sortableProperties: Array<SortableProperty<T>>;
|
|
7590
|
-
currentSortedProperty: SortableProperty<T>;
|
|
7591
|
-
/**
|
|
7592
|
-
* @param {Array<SortableProperty>} sortableProperties - a set of sortable properties.
|
|
7593
|
-
* @param {string} initialSortablePropertyName - Which sort property should be sorted on by default.
|
|
7594
|
-
*/
|
|
7595
|
-
constructor(sortableProperties: Array<SortableProperty<T>>, initialSortablePropertyName: string);
|
|
7596
|
-
/**
|
|
7597
|
-
* @returns {SortableProperty} The current property that is being sorted on. Undefined if no sort order is applied.
|
|
7598
|
-
*/
|
|
7599
|
-
getSortedProperty(): SortableProperty<T>;
|
|
7600
|
-
/**
|
|
7601
|
-
* Sorts the items passed in and returns a newly sorted array.
|
|
7602
|
-
* @param items {Array.<Object>}
|
|
7603
|
-
* @returns {Array.<Object>} sorted array of items, based off the sort properties.
|
|
7604
|
-
*/
|
|
7605
|
-
sortItems(items: T[]): T[];
|
|
7606
|
-
/**
|
|
7607
|
-
* Returns the SortProperty with the given name, if found.
|
|
7608
|
-
* @param {String} propertyName
|
|
7609
|
-
* @returns {SortableProperty|undefined}
|
|
7610
|
-
*/
|
|
7611
|
-
getSortablePropertyByName(propertyName: string): SortableProperty<T> | undefined;
|
|
7612
|
-
/**
|
|
7613
|
-
* Updates the sort property, potentially flipping the sort order based on whether the same
|
|
7614
|
-
* property was already being sorted.
|
|
7615
|
-
* @param propertyName {String}
|
|
7616
|
-
*/
|
|
7617
|
-
sortOn(propertyName: string): void;
|
|
7618
|
-
/**
|
|
7619
|
-
* @returns {boolean} True if the current sortable property is sorted in ascending order.
|
|
7620
|
-
*/
|
|
7621
|
-
isCurrentSortAscending(): boolean;
|
|
7622
|
-
/**
|
|
7623
|
-
* @param {string} propertyName
|
|
7624
|
-
* @returns {boolean} True if the given sort property is sorted in ascending order.
|
|
7625
|
-
*/
|
|
7626
|
-
isAscendingByName(propertyName: string): boolean;
|
|
7627
|
-
/**
|
|
7628
|
-
* Flips the current sorted property sort order.
|
|
7629
|
-
*/
|
|
7630
|
-
flipCurrentSortOrder(): void;
|
|
7631
|
-
}
|
|
7632
|
-
|
|
7633
|
-
}
|
|
7634
|
-
declare module '@elastic/eui/src/services/sort/property_sort' {
|
|
7635
|
-
import PropTypes from 'prop-types';
|
|
7636
|
-
import { Direction } from '@elastic/eui/src/services/sort/sort_direction';
|
|
7637
|
-
export const PropertySortType: PropTypes.Requireable<PropTypes.InferProps<{
|
|
7638
|
-
field: PropTypes.Validator<string>;
|
|
7639
|
-
direction: PropTypes.Validator<"desc" | "asc">;
|
|
7640
|
-
}>>;
|
|
7641
|
-
export interface PropertySort {
|
|
7642
|
-
field: string;
|
|
7643
|
-
direction: Direction;
|
|
7644
|
-
}
|
|
7645
|
-
|
|
7646
|
-
}
|
|
7647
|
-
declare module '@elastic/eui/src/services/sort' {
|
|
7648
|
-
export { SortableProperties } from '@elastic/eui/src/services/sort/sortable_properties';
|
|
7649
|
-
export type { Direction } from '@elastic/eui/src/services/sort/sort_direction';
|
|
7650
|
-
export { SortDirectionType, SortDirection } from '@elastic/eui/src/services/sort/sort_direction';
|
|
7651
|
-
export type { PropertySort } from '@elastic/eui/src/services/sort/property_sort';
|
|
7652
|
-
export { PropertySortType } from '@elastic/eui/src/services/sort/property_sort';
|
|
7653
|
-
export { Comparators } from '@elastic/eui/src/services/sort/comparators';
|
|
7654
|
-
|
|
7655
|
-
}
|
|
7656
|
-
declare module '@elastic/eui/src/services/string/to_initials' {
|
|
7657
|
-
/**
|
|
7658
|
-
* This function calculates the initials/acronym for a given name.
|
|
7659
|
-
* It defaults to only 2 characters and will take the first character (of each word).
|
|
7660
|
-
* If only one word is supplied for the name, it will only pass back the first letter of the word,
|
|
7661
|
-
* unless forced to 2 letters by setting `initialsLength` to `2`.
|
|
7662
|
-
* It will pass back the characters with the same casing as the original string
|
|
7663
|
-
* unless otherwise specified.
|
|
7664
|
-
*
|
|
7665
|
-
* @param {string} name The full name of the item to turn into initials
|
|
7666
|
-
* @param {number} initialsLength (Optional) How many characters to show (max 2 allowed)
|
|
7667
|
-
* @param {string} initials (Optional) Custom initials (max 2 characters)
|
|
7668
|
-
* @returns {string} True if the color is dark, false otherwise.
|
|
7669
|
-
*/
|
|
7670
|
-
export const MAX_INITIALS = 2;
|
|
7671
|
-
export function toInitials(name: string, initialsLength?: 1 | 2, initials?: string): string | null;
|
|
7672
|
-
|
|
7673
|
-
}
|
|
7674
|
-
declare module '@elastic/eui/src/services/string/to_case' {
|
|
7675
|
-
/**
|
|
7676
|
-
* This function returns the same string with the first letter of the first word capitalized.
|
|
7677
|
-
*
|
|
7678
|
-
* @param {string} string The input string
|
|
7679
|
-
*/
|
|
7680
|
-
export function toSentenceCase(string: string): string;
|
|
7681
|
-
|
|
7682
|
-
}
|
|
7683
|
-
declare module '@elastic/eui/src/services/string/slugify' {
|
|
7684
|
-
/**
|
|
7685
|
-
* Lowercases input and replaces spaces with hyphens:
|
|
7686
|
-
* e.g. 'GridView Example' -> 'gridview-example'
|
|
7687
|
-
*
|
|
7688
|
-
* @param {string} string The starting string
|
|
7689
|
-
* @returns {string} Lowercase, dashed version of the starting staring
|
|
7690
|
-
*/
|
|
7691
|
-
export function slugify(str: string): string;
|
|
7692
|
-
|
|
7693
|
-
}
|
|
7694
|
-
declare module '@elastic/eui/src/services/string' {
|
|
7695
|
-
export { toInitials } from '@elastic/eui/src/services/string/to_initials';
|
|
7696
|
-
export { toSentenceCase } from '@elastic/eui/src/services/string/to_case';
|
|
7697
|
-
export { slugify } from '@elastic/eui/src/services/string/slugify';
|
|
7698
|
-
|
|
7699
|
-
}
|
|
7700
|
-
declare module '@elastic/eui/src/services/transition/transition' {
|
|
7701
|
-
export const getTransitionTimings: (element: Element) => {
|
|
7702
|
-
durationMatch: number;
|
|
7703
|
-
delayMatch: number;
|
|
7704
|
-
};
|
|
7705
|
-
export const getWaitDuration: (records: MutationRecord[]) => number;
|
|
7706
|
-
export const performOnFrame: (waitDuration: number, toPerform: () => void) => void;
|
|
7707
|
-
export const getDurationAndPerformOnFrame: (records: MutationRecord[], toPerform: () => void) => void;
|
|
7708
|
-
|
|
7709
|
-
}
|
|
7710
|
-
declare module '@elastic/eui/src/services/transition' {
|
|
7711
|
-
export { getDurationAndPerformOnFrame, getTransitionTimings, getWaitDuration, performOnFrame, } from '@elastic/eui/src/services/transition/transition';
|
|
7712
|
-
|
|
7713
|
-
}
|
|
7714
|
-
declare module '@elastic/eui/src/services/window_event/window_event' {
|
|
7715
|
-
import { Component } from 'react'; type EventNames = keyof WindowEventMap;
|
|
7716
|
-
interface Props<Ev extends EventNames> {
|
|
7717
|
-
event: Ev;
|
|
7718
|
-
handler: (this: Window, ev: WindowEventMap[Ev]) => any;
|
|
7719
|
-
}
|
|
7720
|
-
export class EuiWindowEvent<E extends EventNames> extends Component<Props<E>> {
|
|
7721
|
-
componentDidMount(): void;
|
|
7722
|
-
componentDidUpdate(prevProps: Props<E>): void;
|
|
7723
|
-
componentWillUnmount(): void;
|
|
7724
|
-
addEvent<Ev extends EventNames>({ event, handler }: Props<Ev>): void;
|
|
7725
|
-
removeEvent<Ev extends EventNames>({ event, handler }: Props<Ev>): void;
|
|
7726
|
-
render(): null;
|
|
7727
|
-
}
|
|
7728
|
-
export {};
|
|
7729
|
-
|
|
7730
|
-
}
|
|
7731
|
-
declare module '@elastic/eui/src/services/window_event' {
|
|
7732
|
-
export { EuiWindowEvent } from '@elastic/eui/src/services/window_event/window_event';
|
|
7796
|
+
export { getSecureRelForTarget } from '@elastic/eui/src/services/security/get_secure_rel_for_target';
|
|
7733
7797
|
|
|
7734
7798
|
}
|
|
7735
|
-
declare module '@elastic/eui/src/services' {
|
|
7736
|
-
import
|
|
7737
|
-
export
|
|
7738
|
-
export
|
|
7739
|
-
|
|
7740
|
-
|
|
7741
|
-
|
|
7742
|
-
|
|
7743
|
-
|
|
7744
|
-
export
|
|
7745
|
-
export
|
|
7746
|
-
export * from '@elastic/eui/src/services/console';
|
|
7747
|
-
export { copyToClipboard } from '@elastic/eui/src/services/copy_to_clipboard';
|
|
7748
|
-
export * from '@elastic/eui/src/services/findElement';
|
|
7749
|
-
export { dateFormatAliases, formatAuto, formatBoolean, formatDate, formatNumber, formatText, } from '@elastic/eui/src/services/format';
|
|
7750
|
-
export * from '@elastic/eui/src/services/hooks';
|
|
7751
|
-
export { isEvenlyDivisibleBy, isWithinRange } from '@elastic/eui/src/services/number';
|
|
7752
|
-
export { Pager } from '@elastic/eui/src/services/paging';
|
|
7753
|
-
export { calculatePopoverPosition, findPopoverPosition } from '@elastic/eui/src/services/popover';
|
|
7754
|
-
export { Random } from '@elastic/eui/src/services/random';
|
|
7755
|
-
export { getSecureRelForTarget } from '@elastic/eui/src/services/security';
|
|
7756
|
-
export { Comparators, PropertySortType, SortableProperties, SortDirection, SortDirectionType, } from '@elastic/eui/src/services/sort';
|
|
7757
|
-
export type { Direction, PropertySort } from '@elastic/eui/src/services/sort';
|
|
7758
|
-
export { slugify, toInitials, toSentenceCase } from '@elastic/eui/src/services/string';
|
|
7759
|
-
export * from '@elastic/eui/src/services/theme';
|
|
7760
|
-
export { throttle } from '@elastic/eui/src/services/throttle';
|
|
7761
|
-
export { getDurationAndPerformOnFrame, getTransitionTimings, getWaitDuration, performOnFrame, } from '@elastic/eui/src/services/transition';
|
|
7762
|
-
export { EuiWindowEvent } from '@elastic/eui/src/services/window_event';
|
|
7763
|
-
export { keys };
|
|
7799
|
+
declare module '@elastic/eui/src/services/sort/sort_direction' {
|
|
7800
|
+
import PropTypes from 'prop-types'; const ASC: "asc"; const DESC: "desc";
|
|
7801
|
+
export type Direction = typeof ASC | typeof DESC;
|
|
7802
|
+
export const SortDirection: Readonly<{
|
|
7803
|
+
ASC: "asc";
|
|
7804
|
+
DESC: "desc";
|
|
7805
|
+
isAsc(direction: Direction): boolean;
|
|
7806
|
+
reverse(direction: Direction): "desc" | "asc";
|
|
7807
|
+
}>;
|
|
7808
|
+
export const SortDirectionType: PropTypes.Requireable<"desc" | "asc">;
|
|
7809
|
+
export {};
|
|
7764
7810
|
|
|
7765
7811
|
}
|
|
7766
|
-
declare module '@elastic/eui/src/
|
|
7767
|
-
|
|
7768
|
-
export const
|
|
7769
|
-
|
|
7770
|
-
|
|
7771
|
-
|
|
7772
|
-
|
|
7773
|
-
|
|
7774
|
-
|
|
7775
|
-
method?: 'opaque' | 'transparent';
|
|
7776
|
-
}
|
|
7777
|
-
export const euiBackgroundColor: ({ euiTheme, colorMode }: UseEuiTheme, color: _EuiBackgroundColor, { method }?: _EuiBackgroundColorOptions) => string;
|
|
7778
|
-
export const useEuiBackgroundColor: (color: _EuiBackgroundColor, { method }?: _EuiBackgroundColorOptions) => string;
|
|
7779
|
-
export const useEuiBackgroundColorCSS: () => {
|
|
7780
|
-
transparent: import("@emotion/utils").SerializedStyles;
|
|
7781
|
-
plain: import("@emotion/utils").SerializedStyles;
|
|
7782
|
-
subdued: import("@emotion/utils").SerializedStyles;
|
|
7783
|
-
accent: import("@emotion/utils").SerializedStyles;
|
|
7784
|
-
primary: import("@emotion/utils").SerializedStyles;
|
|
7785
|
-
success: import("@emotion/utils").SerializedStyles;
|
|
7786
|
-
warning: import("@emotion/utils").SerializedStyles;
|
|
7787
|
-
danger: import("@emotion/utils").SerializedStyles;
|
|
7788
|
-
};
|
|
7812
|
+
declare module '@elastic/eui/src/services/sort/comparators' {
|
|
7813
|
+
export type Primitive = string | boolean | number | null | undefined; type Comparator<T = Primitive> = (a: T, b: T) => number;
|
|
7814
|
+
export const Comparators: Readonly<{
|
|
7815
|
+
default: (direction?: 'asc' | 'desc') => (v1: Primitive, v2: Primitive) => number;
|
|
7816
|
+
reverse: <T>(comparator: Comparator<T>) => Comparator<T>;
|
|
7817
|
+
value<T_1>(valueCallback: (value: T_1) => Primitive, comparator?: Comparator<Primitive> | undefined): Comparator<T_1>;
|
|
7818
|
+
property<T_2>(prop: string, comparator?: Comparator<Primitive> | undefined): Comparator<T_2>;
|
|
7819
|
+
}>;
|
|
7820
|
+
export {};
|
|
7789
7821
|
|
|
7790
7822
|
}
|
|
7791
|
-
declare module '@elastic/eui/src/
|
|
7792
|
-
import {
|
|
7793
|
-
|
|
7823
|
+
declare module '@elastic/eui/src/services/sort/sortable_properties' {
|
|
7824
|
+
import { Primitive } from '@elastic/eui/src/services/sort/comparators';
|
|
7825
|
+
export interface SortableProperty<T> {
|
|
7826
|
+
name: string;
|
|
7827
|
+
getValue: (obj: T) => Primitive;
|
|
7828
|
+
isAscending: boolean;
|
|
7829
|
+
}
|
|
7794
7830
|
/**
|
|
7795
|
-
*
|
|
7796
|
-
*
|
|
7831
|
+
* @typedef {Object} SortableProperty
|
|
7832
|
+
* @property {string} sortableProperty.name - Name of the property.
|
|
7833
|
+
* @property {function} sortableProperty.getValue - A function that takes in an object and returns a value to sort
|
|
7834
|
+
* by.
|
|
7835
|
+
* @property {boolean} sortableProperty.isAscending - The direction of the last sort by this property. Used to preserve
|
|
7836
|
+
* past sort orders.
|
|
7797
7837
|
*/
|
|
7798
|
-
|
|
7799
|
-
|
|
7800
|
-
|
|
7838
|
+
/**
|
|
7839
|
+
* Stores sort information for a set of SortableProperties, including which property is currently being sorted on, as
|
|
7840
|
+
* well as the last sort order for each property.
|
|
7841
|
+
*/
|
|
7842
|
+
export class SortableProperties<T> {
|
|
7843
|
+
sortableProperties: Array<SortableProperty<T>>;
|
|
7844
|
+
currentSortedProperty: SortableProperty<T>;
|
|
7801
7845
|
/**
|
|
7802
|
-
*
|
|
7846
|
+
* @param {Array<SortableProperty>} sortableProperties - a set of sortable properties.
|
|
7847
|
+
* @param {string} initialSortablePropertyName - Which sort property should be sorted on by default.
|
|
7803
7848
|
*/
|
|
7804
|
-
|
|
7849
|
+
constructor(sortableProperties: Array<SortableProperty<T>>, initialSortablePropertyName: string);
|
|
7805
7850
|
/**
|
|
7806
|
-
*
|
|
7851
|
+
* @returns {SortableProperty} The current property that is being sorted on. Undefined if no sort order is applied.
|
|
7807
7852
|
*/
|
|
7808
|
-
|
|
7853
|
+
getSortedProperty(): SortableProperty<T>;
|
|
7809
7854
|
/**
|
|
7810
|
-
*
|
|
7811
|
-
*
|
|
7855
|
+
* Sorts the items passed in and returns a newly sorted array.
|
|
7856
|
+
* @param items {Array.<Object>}
|
|
7857
|
+
* @returns {Array.<Object>} sorted array of items, based off the sort properties.
|
|
7812
7858
|
*/
|
|
7813
|
-
|
|
7814
|
-
|
|
7815
|
-
|
|
7816
|
-
|
|
7817
|
-
|
|
7818
|
-
|
|
7819
|
-
|
|
7820
|
-
|
|
7821
|
-
|
|
7822
|
-
|
|
7823
|
-
|
|
7824
|
-
|
|
7825
|
-
|
|
7826
|
-
|
|
7827
|
-
|
|
7828
|
-
|
|
7829
|
-
|
|
7830
|
-
|
|
7831
|
-
|
|
7832
|
-
|
|
7833
|
-
|
|
7834
|
-
|
|
7835
|
-
|
|
7836
|
-
|
|
7837
|
-
|
|
7838
|
-
|
|
7859
|
+
sortItems(items: T[]): T[];
|
|
7860
|
+
/**
|
|
7861
|
+
* Returns the SortProperty with the given name, if found.
|
|
7862
|
+
* @param {String} propertyName
|
|
7863
|
+
* @returns {SortableProperty|undefined}
|
|
7864
|
+
*/
|
|
7865
|
+
getSortablePropertyByName(propertyName: string): SortableProperty<T> | undefined;
|
|
7866
|
+
/**
|
|
7867
|
+
* Updates the sort property, potentially flipping the sort order based on whether the same
|
|
7868
|
+
* property was already being sorted.
|
|
7869
|
+
* @param propertyName {String}
|
|
7870
|
+
*/
|
|
7871
|
+
sortOn(propertyName: string): void;
|
|
7872
|
+
/**
|
|
7873
|
+
* @returns {boolean} True if the current sortable property is sorted in ascending order.
|
|
7874
|
+
*/
|
|
7875
|
+
isCurrentSortAscending(): boolean;
|
|
7876
|
+
/**
|
|
7877
|
+
* @param {string} propertyName
|
|
7878
|
+
* @returns {boolean} True if the given sort property is sorted in ascending order.
|
|
7879
|
+
*/
|
|
7880
|
+
isAscendingByName(propertyName: string): boolean;
|
|
7881
|
+
/**
|
|
7882
|
+
* Flips the current sorted property sort order.
|
|
7883
|
+
*/
|
|
7884
|
+
flipCurrentSortOrder(): void;
|
|
7839
7885
|
}
|
|
7840
|
-
export const euiOverflowScroll: (euiTheme: UseEuiTheme, { direction, mask }?: EuiScrollOverflowStyles) => string;
|
|
7841
|
-
export const useEuiOverflowScroll: (direction: EuiScrollOverflowStyles['direction'], mask?: EuiScrollOverflowStyles['mask']) => string;
|
|
7842
|
-
/**
|
|
7843
|
-
* For quickly applying a full-height element whether using flex or not
|
|
7844
|
-
*/
|
|
7845
|
-
export const euiFullHeight: () => string;
|
|
7846
|
-
/**
|
|
7847
|
-
* A constant storing the support for the `:has()` selector through a
|
|
7848
|
-
* media query that will only apply the content it is supported.
|
|
7849
|
-
*/
|
|
7850
|
-
export const euiSupportsHas = "@supports(selector(:has(p)))";
|
|
7851
|
-
export {};
|
|
7852
|
-
|
|
7853
|
-
}
|
|
7854
|
-
declare module '@elastic/eui/src/global_styling/mixins/_padding' {
|
|
7855
|
-
import { UseEuiTheme } from '@elastic/eui/src/services/theme';
|
|
7856
|
-
export const PADDING_SIZES: readonly ["none", "xs", "s", "m", "l", "xl"];
|
|
7857
|
-
export type EuiPaddingSize = (typeof PADDING_SIZES)[number];
|
|
7858
|
-
export const euiPaddingSize: ({ euiTheme }: UseEuiTheme, size: EuiPaddingSize) => string | null;
|
|
7859
|
-
export const euiPaddingSizeCSS: (euiThemeContext: UseEuiTheme, side?: "left" | "right" | "top" | "bottom" | "horizontal" | "vertical" | undefined) => {
|
|
7860
|
-
none: null;
|
|
7861
|
-
xs: import("@emotion/utils").SerializedStyles;
|
|
7862
|
-
s: import("@emotion/utils").SerializedStyles;
|
|
7863
|
-
m: import("@emotion/utils").SerializedStyles;
|
|
7864
|
-
l: import("@emotion/utils").SerializedStyles;
|
|
7865
|
-
xl: import("@emotion/utils").SerializedStyles;
|
|
7866
|
-
};
|
|
7867
|
-
export const useEuiPaddingSize: (size: EuiPaddingSize) => string | null;
|
|
7868
|
-
export const useEuiPaddingCSS: (side?: "left" | "right" | "top" | "bottom" | "horizontal" | "vertical" | undefined) => {
|
|
7869
|
-
none: null;
|
|
7870
|
-
xs: import("@emotion/utils").SerializedStyles;
|
|
7871
|
-
s: import("@emotion/utils").SerializedStyles;
|
|
7872
|
-
m: import("@emotion/utils").SerializedStyles;
|
|
7873
|
-
l: import("@emotion/utils").SerializedStyles;
|
|
7874
|
-
xl: import("@emotion/utils").SerializedStyles;
|
|
7875
|
-
};
|
|
7876
|
-
|
|
7877
|
-
}
|
|
7878
|
-
declare module '@elastic/eui/src/global_styling/mixins/_states' {
|
|
7879
|
-
import { CSSProperties } from 'react';
|
|
7880
|
-
import { UseEuiTheme } from '@elastic/eui/src/services';
|
|
7881
|
-
export type _EuiFocusRingOffset = 'inset' | 'outset' | 'center' | CSSProperties['outlineOffset'];
|
|
7882
|
-
/**
|
|
7883
|
-
* It is best practice to utilize the browser's default `outline` property for handling focus rings.
|
|
7884
|
-
* However, some components need to be forced to have the same behavior, or adjust the display.
|
|
7885
|
-
* This function re-applies the same default outline with a couple parameters
|
|
7886
|
-
* @param euiTheme UseEuiTheme
|
|
7887
|
-
* @param offset Accepts a specific measurement or 'inset', 'outset' or 'center' to adjust outline position
|
|
7888
|
-
* @param color Accepts any CSS color
|
|
7889
|
-
*/
|
|
7890
|
-
export const euiOutline: ({ euiTheme }: UseEuiTheme, offset?: _EuiFocusRingOffset, color?: CSSProperties['outlineColor']) => string;
|
|
7891
|
-
export const euiFocusRing: (euiThemeContext: UseEuiTheme, offset?: _EuiFocusRingOffset, options?: {
|
|
7892
|
-
color?: CSSProperties['outlineColor'];
|
|
7893
|
-
} | undefined) => string;
|
|
7894
|
-
export const useEuiFocusRing: (offset?: _EuiFocusRingOffset, color?: CSSProperties['outlineColor']) => string;
|
|
7895
7886
|
|
|
7896
7887
|
}
|
|
7897
|
-
declare module '@elastic/eui/src/
|
|
7898
|
-
import
|
|
7899
|
-
import {
|
|
7900
|
-
|
|
7901
|
-
|
|
7902
|
-
|
|
7903
|
-
|
|
7904
|
-
|
|
7905
|
-
|
|
7906
|
-
|
|
7907
|
-
|
|
7908
|
-
|
|
7909
|
-
|
|
7910
|
-
|
|
7911
|
-
|
|
7912
|
-
|
|
7913
|
-
|
|
7914
|
-
|
|
7915
|
-
export
|
|
7916
|
-
|
|
7917
|
-
|
|
7918
|
-
|
|
7919
|
-
|
|
7888
|
+
declare module '@elastic/eui/src/services/sort/property_sort' {
|
|
7889
|
+
import PropTypes from 'prop-types';
|
|
7890
|
+
import { Direction } from '@elastic/eui/src/services/sort/sort_direction';
|
|
7891
|
+
export const PropertySortType: PropTypes.Requireable<PropTypes.InferProps<{
|
|
7892
|
+
field: PropTypes.Validator<string>;
|
|
7893
|
+
direction: PropTypes.Validator<"desc" | "asc">;
|
|
7894
|
+
}>>;
|
|
7895
|
+
export interface PropertySort {
|
|
7896
|
+
field: string;
|
|
7897
|
+
direction: Direction;
|
|
7898
|
+
}
|
|
7899
|
+
|
|
7900
|
+
}
|
|
7901
|
+
declare module '@elastic/eui/src/services/sort' {
|
|
7902
|
+
export { SortableProperties } from '@elastic/eui/src/services/sort/sortable_properties';
|
|
7903
|
+
export type { Direction } from '@elastic/eui/src/services/sort/sort_direction';
|
|
7904
|
+
export { SortDirectionType, SortDirection } from '@elastic/eui/src/services/sort/sort_direction';
|
|
7905
|
+
export type { PropertySort } from '@elastic/eui/src/services/sort/property_sort';
|
|
7906
|
+
export { PropertySortType } from '@elastic/eui/src/services/sort/property_sort';
|
|
7907
|
+
export { Comparators } from '@elastic/eui/src/services/sort/comparators';
|
|
7908
|
+
|
|
7909
|
+
}
|
|
7910
|
+
declare module '@elastic/eui/src/services/string/to_initials' {
|
|
7920
7911
|
/**
|
|
7921
|
-
*
|
|
7912
|
+
* This function calculates the initials/acronym for a given name.
|
|
7913
|
+
* It defaults to only 2 characters and will take the first character (of each word).
|
|
7914
|
+
* If only one word is supplied for the name, it will only pass back the first letter of the word,
|
|
7915
|
+
* unless forced to 2 letters by setting `initialsLength` to `2`.
|
|
7916
|
+
* It will pass back the characters with the same casing as the original string
|
|
7917
|
+
* unless otherwise specified.
|
|
7918
|
+
*
|
|
7919
|
+
* @param {string} name The full name of the item to turn into initials
|
|
7920
|
+
* @param {number} initialsLength (Optional) How many characters to show (max 2 allowed)
|
|
7921
|
+
* @param {string} initials (Optional) Custom initials (max 2 characters)
|
|
7922
|
+
* @returns {string} True if the color is dark, false otherwise.
|
|
7922
7923
|
*/
|
|
7923
|
-
export const
|
|
7924
|
-
export
|
|
7924
|
+
export const MAX_INITIALS = 2;
|
|
7925
|
+
export function toInitials(name: string, initialsLength?: 1 | 2, initials?: string): string | null;
|
|
7925
7926
|
|
|
7926
7927
|
}
|
|
7927
|
-
declare module '@elastic/eui/src/
|
|
7928
|
-
import { UseEuiTheme } from '@elastic/eui/src/services/theme/hooks';
|
|
7929
|
-
import { _EuiThemeBreakpoint } from '@elastic/eui/src/global_styling/variables';
|
|
7928
|
+
declare module '@elastic/eui/src/services/string/to_case' {
|
|
7930
7929
|
/**
|
|
7931
|
-
*
|
|
7932
|
-
* Examples with default theme breakpoints:
|
|
7933
|
-
*
|
|
7934
|
-
* euiBreakpoint(['s']) becomes `@media only screen and (min-width: 575px) and (max-width: 767px)`
|
|
7935
|
-
* euiBreakpoint(['s', 'l']) becomes `@media only screen and (min-width: 575px) and (max-width: 1199px)`
|
|
7936
|
-
*
|
|
7937
|
-
* Use the smallest and largest sizes to generate media queries with only min/max-width.
|
|
7938
|
-
* Examples with default theme breakpoints:
|
|
7930
|
+
* This function returns the same string with the first letter of the first word capitalized.
|
|
7939
7931
|
*
|
|
7940
|
-
*
|
|
7941
|
-
* euiBreakpoint(['l', 'xl']) becomes `@media only screen and (min-width: 992px)`
|
|
7932
|
+
* @param {string} string The input string
|
|
7942
7933
|
*/
|
|
7943
|
-
export
|
|
7944
|
-
|
|
7934
|
+
export function toSentenceCase(string: string): string;
|
|
7935
|
+
|
|
7936
|
+
}
|
|
7937
|
+
declare module '@elastic/eui/src/services/string/slugify' {
|
|
7945
7938
|
/**
|
|
7946
|
-
*
|
|
7947
|
-
*
|
|
7948
|
-
* *Unlike the above euiBreakpoint utility*, these utilities treat breakpoint
|
|
7949
|
-
* sizes as a one-dimensional point, rather than a two-dimensional *screen range*.
|
|
7950
|
-
* Examples with default theme breakpoints:
|
|
7951
|
-
*
|
|
7952
|
-
* euiMaxBreakpoint('m') becomes `@media only screen and (max-width: 767px)`
|
|
7953
|
-
* euiMinBreakpoint('m') becomes `@media only screen and (min-width: 768px)`
|
|
7939
|
+
* Lowercases input and replaces spaces with hyphens:
|
|
7940
|
+
* e.g. 'GridView Example' -> 'gridview-example'
|
|
7954
7941
|
*
|
|
7955
|
-
*
|
|
7956
|
-
*
|
|
7957
|
-
* and if the intention of the media query is actually "m and below/above" vs. "only screens m/l/xl".
|
|
7942
|
+
* @param {string} string The starting string
|
|
7943
|
+
* @returns {string} Lowercase, dashed version of the starting staring
|
|
7958
7944
|
*/
|
|
7959
|
-
export
|
|
7960
|
-
export const useEuiMinBreakpoint: (size: _EuiThemeBreakpoint) => string;
|
|
7961
|
-
export const euiMaxBreakpoint: ({ euiTheme }: UseEuiTheme, size: _EuiThemeBreakpoint) => string;
|
|
7962
|
-
export const useEuiMaxBreakpoint: (size: _EuiThemeBreakpoint) => string;
|
|
7945
|
+
export function slugify(str: string): string;
|
|
7963
7946
|
|
|
7964
7947
|
}
|
|
7965
|
-
declare module '@elastic/eui/src/
|
|
7966
|
-
export
|
|
7967
|
-
export
|
|
7968
|
-
export
|
|
7969
|
-
export * from '@elastic/eui/src/global_styling/mixins/_states';
|
|
7970
|
-
export * from '@elastic/eui/src/global_styling/mixins/_typography';
|
|
7971
|
-
export * from '@elastic/eui/src/global_styling/mixins/_responsive';
|
|
7948
|
+
declare module '@elastic/eui/src/services/string' {
|
|
7949
|
+
export { toInitials } from '@elastic/eui/src/services/string/to_initials';
|
|
7950
|
+
export { toSentenceCase } from '@elastic/eui/src/services/string/to_case';
|
|
7951
|
+
export { slugify } from '@elastic/eui/src/services/string/slugify';
|
|
7972
7952
|
|
|
7973
7953
|
}
|
|
7974
|
-
declare module '@elastic/eui/src/
|
|
7975
|
-
export const
|
|
7954
|
+
declare module '@elastic/eui/src/services/transition/transition' {
|
|
7955
|
+
export const getTransitionTimings: (element: Element) => {
|
|
7956
|
+
durationMatch: number;
|
|
7957
|
+
delayMatch: number;
|
|
7958
|
+
};
|
|
7959
|
+
export const getWaitDuration: (records: MutationRecord[]) => number;
|
|
7960
|
+
export const performOnFrame: (waitDuration: number, toPerform: () => void) => void;
|
|
7961
|
+
export const getDurationAndPerformOnFrame: (records: MutationRecord[], toPerform: () => void) => void;
|
|
7976
7962
|
|
|
7977
7963
|
}
|
|
7978
|
-
declare module '@elastic/eui/src/
|
|
7979
|
-
|
|
7980
|
-
|
|
7964
|
+
declare module '@elastic/eui/src/services/transition' {
|
|
7965
|
+
export { getDurationAndPerformOnFrame, getTransitionTimings, getWaitDuration, performOnFrame, } from '@elastic/eui/src/services/transition/transition';
|
|
7966
|
+
|
|
7967
|
+
}
|
|
7968
|
+
declare module '@elastic/eui/src/services/window_event/window_event' {
|
|
7969
|
+
import { Component } from 'react'; type EventNames = keyof WindowEventMap;
|
|
7970
|
+
interface Props<Ev extends EventNames> {
|
|
7971
|
+
event: Ev;
|
|
7972
|
+
handler: (this: Window, ev: WindowEventMap[Ev]) => any;
|
|
7981
7973
|
}
|
|
7982
|
-
export
|
|
7974
|
+
export class EuiWindowEvent<E extends EventNames> extends Component<Props<E>> {
|
|
7975
|
+
componentDidMount(): void;
|
|
7976
|
+
componentDidUpdate(prevProps: Props<E>): void;
|
|
7977
|
+
componentWillUnmount(): void;
|
|
7978
|
+
addEvent<Ev extends EventNames>({ event, handler }: Props<Ev>): void;
|
|
7979
|
+
removeEvent<Ev extends EventNames>({ event, handler }: Props<Ev>): void;
|
|
7980
|
+
render(): null;
|
|
7981
|
+
}
|
|
7982
|
+
export {};
|
|
7983
7983
|
|
|
7984
7984
|
}
|
|
7985
|
-
declare module '@elastic/eui/src/
|
|
7986
|
-
export
|
|
7987
|
-
export const euiAnimSlideInUp: (size: string) => import("@emotion/serialize").Keyframes;
|
|
7988
|
-
export const euiAnimSlideX: (size: string) => import("@emotion/serialize").Keyframes;
|
|
7989
|
-
export const euiAnimScale: import("@emotion/serialize").Keyframes;
|
|
7985
|
+
declare module '@elastic/eui/src/services/window_event' {
|
|
7986
|
+
export { EuiWindowEvent } from '@elastic/eui/src/services/window_event/window_event';
|
|
7990
7987
|
|
|
7991
7988
|
}
|
|
7992
|
-
declare module '@elastic/eui/src/
|
|
7993
|
-
|
|
7994
|
-
export
|
|
7995
|
-
export
|
|
7996
|
-
export
|
|
7997
|
-
export
|
|
7989
|
+
declare module '@elastic/eui/src/services' {
|
|
7990
|
+
import * as keys from '@elastic/eui/src/services/keys';
|
|
7991
|
+
export { accessibleClickKeys, cascadingMenuKeys, comboBoxKeys, htmlIdGenerator, useGeneratedHtmlId, } from '@elastic/eui/src/services/accessibility';
|
|
7992
|
+
export { CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT } from '@elastic/eui/src/services/alignment';
|
|
7993
|
+
export type { HorizontalAlignment } from '@elastic/eui/src/services/alignment';
|
|
7994
|
+
export { CurrentEuiBreakpointContext, CurrentEuiBreakpointProvider, useCurrentEuiBreakpoint, useIsWithinBreakpoints, useIsWithinMaxBreakpoint, useIsWithinMinBreakpoint, } from '@elastic/eui/src/services/breakpoint';
|
|
7995
|
+
export type { EuiBreakpointSize } from '@elastic/eui/src/services/breakpoint';
|
|
7996
|
+
export { brighten, calculateContrast, calculateLuminance, colorPalette, darken, DEFAULT_VISUALIZATION_COLOR, desaturate, euiPaletteColorBlind, euiPaletteColorBlindBehindText, euiPaletteComplimentary, euiPaletteCool, euiPaletteForDarkBackground, euiPaletteForLightBackground, euiPaletteForStatus, euiPaletteForTemperature, euiPaletteGray, euiPaletteNegative, euiPalettePositive, euiPaletteWarm, getSteppedGradient, hexToHsv, hexToRgb, hsvToHex, hsvToRgb, isColorDark, isValidHex, lightness, makeDisabledContrastColor, makeHighContrastColor, rgbToHex, rgbToHsv, saturate, shade, shadeOrTint, tint, tintOrShade, transparentize, VISUALIZATION_COLORS, wcagContrastMin, } from '@elastic/eui/src/services/color';
|
|
7997
|
+
export type { HSV } from '@elastic/eui/src/services/color';
|
|
7998
|
+
export { useColorPickerState, useColorStopsState } from '@elastic/eui/src/services/color_picker';
|
|
7999
|
+
export type { EuiSetColorMethod } from '@elastic/eui/src/services/color_picker';
|
|
8000
|
+
export * from '@elastic/eui/src/services/console';
|
|
8001
|
+
export { copyToClipboard } from '@elastic/eui/src/services/copy_to_clipboard';
|
|
8002
|
+
export * from '@elastic/eui/src/services/emotion';
|
|
8003
|
+
export * from '@elastic/eui/src/services/findElement';
|
|
8004
|
+
export { dateFormatAliases, formatAuto, formatBoolean, formatDate, formatNumber, formatText, } from '@elastic/eui/src/services/format';
|
|
8005
|
+
export * from '@elastic/eui/src/services/hooks';
|
|
8006
|
+
export { isEvenlyDivisibleBy, isWithinRange } from '@elastic/eui/src/services/number';
|
|
8007
|
+
export { Pager } from '@elastic/eui/src/services/paging';
|
|
8008
|
+
export { calculatePopoverPosition, findPopoverPosition } from '@elastic/eui/src/services/popover';
|
|
8009
|
+
export { Random } from '@elastic/eui/src/services/random';
|
|
8010
|
+
export { getSecureRelForTarget } from '@elastic/eui/src/services/security';
|
|
8011
|
+
export { Comparators, PropertySortType, SortableProperties, SortDirection, SortDirectionType, } from '@elastic/eui/src/services/sort';
|
|
8012
|
+
export type { Direction, PropertySort } from '@elastic/eui/src/services/sort';
|
|
8013
|
+
export { slugify, toInitials, toSentenceCase } from '@elastic/eui/src/services/string';
|
|
8014
|
+
export * from '@elastic/eui/src/services/theme';
|
|
8015
|
+
export { throttle } from '@elastic/eui/src/services/throttle';
|
|
8016
|
+
export { getDurationAndPerformOnFrame, getTransitionTimings, getWaitDuration, performOnFrame, } from '@elastic/eui/src/services/transition';
|
|
8017
|
+
export { EuiWindowEvent } from '@elastic/eui/src/services/window_event';
|
|
8018
|
+
export { keys };
|
|
7998
8019
|
|
|
7999
8020
|
}
|
|
8000
8021
|
declare module '@elastic/eui/src/components/accessibility/screen_reader_only/screen_reader_only.styles' {
|
|
@@ -8169,16 +8190,9 @@ declare module '@elastic/eui/src/components/accordion/accordion' {
|
|
|
8169
8190
|
import React, { Component, HTMLAttributes, ReactNode } from 'react';
|
|
8170
8191
|
import { CommonProps } from '@elastic/eui/src/components/common';
|
|
8171
8192
|
import { WithEuiThemeProps } from '@elastic/eui/src/services';
|
|
8172
|
-
import { EuiButtonIconProps } from '@elastic/eui/src/components/button';
|
|
8173
|
-
|
|
8174
|
-
|
|
8175
|
-
s: string;
|
|
8176
|
-
m: string;
|
|
8177
|
-
l: string;
|
|
8178
|
-
xl: string;
|
|
8179
|
-
};
|
|
8180
|
-
export const PADDING_SIZES: ("s" | "xs" | "m" | "l" | "xl" | "none")[];
|
|
8181
|
-
export type EuiAccordionSize = keyof typeof paddingSizeToClassNameMap;
|
|
8193
|
+
import { EuiButtonIconProps } from '@elastic/eui/src/components/button';
|
|
8194
|
+
export const PADDING_SIZES: readonly ["none", "xs", "s", "m", "l", "xl"];
|
|
8195
|
+
export type EuiAccordionPaddingSize = (typeof PADDING_SIZES)[number];
|
|
8182
8196
|
export type EuiAccordionProps = CommonProps & Omit<HTMLAttributes<HTMLElement>, 'id'> & {
|
|
8183
8197
|
id: string;
|
|
8184
8198
|
/**
|
|
@@ -8226,7 +8240,7 @@ declare module '@elastic/eui/src/components/accordion/accordion' {
|
|
|
8226
8240
|
/**
|
|
8227
8241
|
* The padding around the exposed accordion content.
|
|
8228
8242
|
*/
|
|
8229
|
-
paddingSize?:
|
|
8243
|
+
paddingSize?: EuiAccordionPaddingSize;
|
|
8230
8244
|
/**
|
|
8231
8245
|
* Placement of the arrow indicator, or 'none' to hide it.
|
|
8232
8246
|
*/
|
|
@@ -8277,7 +8291,6 @@ declare module '@elastic/eui/src/components/accordion/accordion' {
|
|
|
8277
8291
|
render(): JSX.Element;
|
|
8278
8292
|
}
|
|
8279
8293
|
export const EuiAccordion: React.ForwardRefExoticComponent<Omit<EuiAccordionProps, "theme"> & React.RefAttributes<Omit<EuiAccordionProps, "theme">>>;
|
|
8280
|
-
export {};
|
|
8281
8294
|
|
|
8282
8295
|
}
|
|
8283
8296
|
declare module '@elastic/eui/src/components/accordion' {
|
|
@@ -10073,7 +10086,7 @@ declare module '@elastic/eui/src/components/color_picker/color_palette_display/c
|
|
|
10073
10086
|
s: string;
|
|
10074
10087
|
m: string;
|
|
10075
10088
|
};
|
|
10076
|
-
export const SIZES: ("
|
|
10089
|
+
export const SIZES: ("xs" | "s" | "m")[];
|
|
10077
10090
|
export type EuiColorPaletteDisplaySize = keyof typeof sizeToClassNameMap;
|
|
10078
10091
|
export interface EuiColorPaletteDisplayShared {
|
|
10079
10092
|
/**
|
|
@@ -10523,6 +10536,52 @@ declare module '@elastic/eui/src/components/combo_box/combo_box_input/combo_box_
|
|
|
10523
10536
|
}
|
|
10524
10537
|
export {};
|
|
10525
10538
|
|
|
10539
|
+
}
|
|
10540
|
+
declare module '@elastic/eui/src/components/filter_group/filter_button.styles' {
|
|
10541
|
+
import { UseEuiTheme } from '@elastic/eui/src/services';
|
|
10542
|
+
export const euiFilterButtonDisplay: ({ euiTheme }: UseEuiTheme) => {
|
|
10543
|
+
flex: string;
|
|
10544
|
+
minInlineSize: string;
|
|
10545
|
+
};
|
|
10546
|
+
export const euiFilterButtonStyles: (euiThemeContext: UseEuiTheme) => {
|
|
10547
|
+
euiFilterButton: import("@emotion/utils").SerializedStyles;
|
|
10548
|
+
withNext: import("@emotion/utils").SerializedStyles;
|
|
10549
|
+
noGrow: import("@emotion/utils").SerializedStyles;
|
|
10550
|
+
hasNotification: import("@emotion/utils").SerializedStyles;
|
|
10551
|
+
hasActiveFilters: import("@emotion/utils").SerializedStyles;
|
|
10552
|
+
};
|
|
10553
|
+
export const euiFilterButtonChildStyles: ({ euiTheme }: UseEuiTheme) => {
|
|
10554
|
+
content: {
|
|
10555
|
+
euiFilterButton__content: import("@emotion/utils").SerializedStyles;
|
|
10556
|
+
hasIcon: import("@emotion/utils").SerializedStyles;
|
|
10557
|
+
};
|
|
10558
|
+
text: {
|
|
10559
|
+
euiFilterButton__text: import("@emotion/utils").SerializedStyles;
|
|
10560
|
+
hasNotification: import("@emotion/utils").SerializedStyles;
|
|
10561
|
+
euiFilterButton__textShift: import("@emotion/utils").SerializedStyles;
|
|
10562
|
+
};
|
|
10563
|
+
notification: {
|
|
10564
|
+
euiFilterButton__notification: import("@emotion/utils").SerializedStyles;
|
|
10565
|
+
disabled: import("@emotion/utils").SerializedStyles;
|
|
10566
|
+
};
|
|
10567
|
+
};
|
|
10568
|
+
|
|
10569
|
+
}
|
|
10570
|
+
declare module '@elastic/eui/src/components/filter_group/filter_group.styles' {
|
|
10571
|
+
import { UseEuiTheme } from '@elastic/eui/src/services';
|
|
10572
|
+
export const euiFilterGroupStyles: (euiThemeContext: UseEuiTheme) => {
|
|
10573
|
+
euiFilterGroup: import("@emotion/utils").SerializedStyles;
|
|
10574
|
+
fullWidth: import("@emotion/utils").SerializedStyles;
|
|
10575
|
+
uncompressed: import("@emotion/utils").SerializedStyles;
|
|
10576
|
+
compressed: import("@emotion/utils").SerializedStyles;
|
|
10577
|
+
/**
|
|
10578
|
+
* Not used in EuiFilterGroup directly, but used by EuiSearchBar and consumers
|
|
10579
|
+
* A fixed width is required because of the shift in widths that can be caused
|
|
10580
|
+
* by the loading animation that precedes the results.
|
|
10581
|
+
*/
|
|
10582
|
+
euiFilterGroup__popoverPanel: import("@emotion/utils").SerializedStyles;
|
|
10583
|
+
};
|
|
10584
|
+
|
|
10526
10585
|
}
|
|
10527
10586
|
declare module '@elastic/eui/src/components/filter_group/filter_group' {
|
|
10528
10587
|
import { HTMLAttributes, ReactNode, FunctionComponent } from 'react';
|
|
@@ -10543,9 +10602,9 @@ declare module '@elastic/eui/src/components/filter_group/filter_group' {
|
|
|
10543
10602
|
}
|
|
10544
10603
|
declare module '@elastic/eui/src/components/filter_group/filter_button' {
|
|
10545
10604
|
import { FunctionComponent } from 'react';
|
|
10605
|
+
import { DistributiveOmit } from '@elastic/eui/src/components/common';
|
|
10546
10606
|
import { BadgeNotificationColor } from '@elastic/eui/src/components/badge/notification_badge/badge_notification';
|
|
10547
10607
|
import { EuiButtonEmptyProps } from '@elastic/eui/src/components/button/button_empty';
|
|
10548
|
-
import { DistributiveOmit } from '@elastic/eui/src/components/common';
|
|
10549
10608
|
export type EuiFilterButtonProps = {
|
|
10550
10609
|
/**
|
|
10551
10610
|
* Bolds the button if true
|
|
@@ -13903,8 +13962,6 @@ declare module '@elastic/eui/src/components/tabs/tab.styles' {
|
|
|
13903
13962
|
m: import("@emotion/utils").SerializedStyles;
|
|
13904
13963
|
l: import("@emotion/utils").SerializedStyles;
|
|
13905
13964
|
xl: import("@emotion/utils").SerializedStyles;
|
|
13906
|
-
selected: import("@emotion/utils").SerializedStyles;
|
|
13907
|
-
disabled: import("@emotion/utils").SerializedStyles;
|
|
13908
13965
|
};
|
|
13909
13966
|
|
|
13910
13967
|
}
|
|
@@ -17874,13 +17931,30 @@ declare module '@elastic/eui/src/components/provider/cache/cache_provider' {
|
|
|
17874
17931
|
declare module '@elastic/eui/src/components/provider/cache' {
|
|
17875
17932
|
export * from '@elastic/eui/src/components/provider/cache/cache_provider';
|
|
17876
17933
|
|
|
17934
|
+
}
|
|
17935
|
+
declare module '@elastic/eui/src/components/provider/nested/nested_context' {
|
|
17936
|
+
import React, { PropsWithChildren } from 'react';
|
|
17937
|
+
/**
|
|
17938
|
+
* This util creates a context for EuiProviders to use and determine if they're
|
|
17939
|
+
* the only (top-most) EuiProvider in the app. If they aren't (i.e., they're
|
|
17940
|
+
* nested within another EuiProvider) we should throw a warning and not
|
|
17941
|
+
* render instantiate the nested EuiProvider.
|
|
17942
|
+
*/
|
|
17943
|
+
export const EuiNestedProviderContext: React.Context<boolean>;
|
|
17944
|
+
export const EuiProviderNestedCheck: ({ children }: PropsWithChildren<{}>) => JSX.Element;
|
|
17945
|
+
export const useIsNestedEuiProvider: () => boolean;
|
|
17946
|
+
|
|
17947
|
+
}
|
|
17948
|
+
declare module '@elastic/eui/src/components/provider/nested' {
|
|
17949
|
+
export * from '@elastic/eui/src/components/provider/nested/nested_context';
|
|
17950
|
+
|
|
17877
17951
|
}
|
|
17878
17952
|
declare module '@elastic/eui/src/components/provider/provider' {
|
|
17879
17953
|
import React, { PropsWithChildren } from 'react';
|
|
17880
17954
|
import { EmotionCache } from '@emotion/css';
|
|
17881
17955
|
import { EuiGlobalStylesProps } from '@elastic/eui/src/global_styling/reset/global_styles';
|
|
17882
17956
|
import { EuiThemeProviderProps, EuiThemeSystem } from '@elastic/eui/src/services';
|
|
17883
|
-
export interface EuiProviderProps<T> extends
|
|
17957
|
+
export interface EuiProviderProps<T> extends Pick<EuiThemeProviderProps<T>, 'colorMode' | 'modify'>, EuiGlobalStylesProps {
|
|
17884
17958
|
/**
|
|
17885
17959
|
* Provide a specific EuiTheme; Defaults to EuiThemeAmsterdam;
|
|
17886
17960
|
* Pass `null` to remove all theming including global reset
|
|
@@ -17911,7 +17985,7 @@ declare module '@elastic/eui/src/components/provider/provider' {
|
|
|
17911
17985
|
utility?: EmotionCache;
|
|
17912
17986
|
};
|
|
17913
17987
|
}
|
|
17914
|
-
export const EuiProvider: <T extends {} = {}>({ cache, theme, globalStyles: Globals, utilityClasses: Utilities, colorMode, modify, children, }: React.PropsWithChildren<EuiProviderProps<T>>) =>
|
|
17988
|
+
export const EuiProvider: <T extends {} = {}>({ cache, theme, globalStyles: Globals, utilityClasses: Utilities, colorMode, modify, children, }: React.PropsWithChildren<EuiProviderProps<T>>) => any;
|
|
17915
17989
|
|
|
17916
17990
|
}
|
|
17917
17991
|
declare module '@elastic/eui/src/components/provider' {
|
|
@@ -19352,12 +19426,12 @@ declare module '@elastic/eui/src/components/search_bar/search_filters' {
|
|
|
19352
19426
|
import { SearchFilterConfig } from '@elastic/eui/src/components/search_bar/filters';
|
|
19353
19427
|
import { Query } from '@elastic/eui/src/components/search_bar/query';
|
|
19354
19428
|
export type { SearchFilterConfig } from '@elastic/eui/src/components/search_bar/filters';
|
|
19355
|
-
interface
|
|
19429
|
+
interface EuiSearchBarFiltersProps {
|
|
19356
19430
|
query: Query;
|
|
19357
19431
|
onChange: (query: Query) => void;
|
|
19358
19432
|
filters: SearchFilterConfig[];
|
|
19359
|
-
} type DefaultProps = Pick<
|
|
19360
|
-
export class
|
|
19433
|
+
} type DefaultProps = Pick<EuiSearchBarFiltersProps, 'filters'>;
|
|
19434
|
+
export class EuiSearchBarFilters extends Component<EuiSearchBarFiltersProps> {
|
|
19361
19435
|
static defaultProps: DefaultProps;
|
|
19362
19436
|
render(): JSX.Element;
|
|
19363
19437
|
}
|
|
@@ -19448,6 +19522,7 @@ declare module '@elastic/eui/src/components/search_bar/search_bar' {
|
|
|
19448
19522
|
declare module '@elastic/eui/src/components/search_bar' {
|
|
19449
19523
|
export type { EuiSearchBarProps, EuiSearchBarOnChangeArgs, QueryType, } from '@elastic/eui/src/components/search_bar/search_bar';
|
|
19450
19524
|
export { EuiSearchBar, Query, Ast } from '@elastic/eui/src/components/search_bar/search_bar';
|
|
19525
|
+
export { EuiSearchBarFilters } from '@elastic/eui/src/components/search_bar/search_filters';
|
|
19451
19526
|
export type { SearchFilterConfig } from '@elastic/eui/src/components/search_bar/search_filters';
|
|
19452
19527
|
export type { FieldValueOptionType } from '@elastic/eui/src/components/search_bar/filters/field_value_selection_filter';
|
|
19453
19528
|
|
|
@@ -19865,11 +19940,36 @@ declare module '@elastic/eui/src/components/steps/sub_steps' {
|
|
|
19865
19940
|
export type EuiSubStepsProps = FunctionComponent<HTMLAttributes<HTMLDivElement> & CommonProps>;
|
|
19866
19941
|
export const EuiSubSteps: EuiSubStepsProps;
|
|
19867
19942
|
|
|
19943
|
+
}
|
|
19944
|
+
declare module '@elastic/eui/src/components/steps/steps_horizontal.styles' {
|
|
19945
|
+
export const euiStepsHorizontalStyles: () => {
|
|
19946
|
+
euiStepsHorizontal: import("@emotion/utils").SerializedStyles;
|
|
19947
|
+
euiStepsHorizontal__item: import("@emotion/utils").SerializedStyles;
|
|
19948
|
+
};
|
|
19949
|
+
|
|
19950
|
+
}
|
|
19951
|
+
declare module '@elastic/eui/src/components/steps/steps_horizontal' {
|
|
19952
|
+
import { FunctionComponent, OlHTMLAttributes } from 'react';
|
|
19953
|
+
import { CommonProps } from '@elastic/eui/src/components/common';
|
|
19954
|
+
import { EuiStepHorizontalProps } from '@elastic/eui/src/components/steps/step_horizontal';
|
|
19955
|
+
export const SIZES: readonly ["s", "m"];
|
|
19956
|
+
export type EuiStepsHorizontalSizes = (typeof SIZES)[number];
|
|
19957
|
+
export interface EuiStepsHorizontalProps extends OlHTMLAttributes<HTMLOListElement>, CommonProps {
|
|
19958
|
+
/**
|
|
19959
|
+
* An array of `EuiStepHorizontal` objects excluding the `step` prop
|
|
19960
|
+
*/
|
|
19961
|
+
steps: Array<Omit<EuiStepHorizontalProps, 'step'>>;
|
|
19962
|
+
size?: EuiStepsHorizontalSizes;
|
|
19963
|
+
}
|
|
19964
|
+
export const EuiStepsHorizontal: FunctionComponent<EuiStepsHorizontalProps>;
|
|
19965
|
+
|
|
19868
19966
|
}
|
|
19869
19967
|
declare module '@elastic/eui/src/components/steps/step_horizontal.styles' {
|
|
19870
19968
|
import { UseEuiTheme } from '@elastic/eui/src/services';
|
|
19871
19969
|
export const euiStepHorizontalStyles: (euiThemeContext: UseEuiTheme) => {
|
|
19872
19970
|
euiStepHorizontal: import("@emotion/utils").SerializedStyles;
|
|
19971
|
+
m: import("@emotion/utils").SerializedStyles;
|
|
19972
|
+
s: import("@emotion/utils").SerializedStyles;
|
|
19873
19973
|
enabled: import("@emotion/utils").SerializedStyles;
|
|
19874
19974
|
disabled: import("@emotion/utils").SerializedStyles;
|
|
19875
19975
|
};
|
|
@@ -19886,6 +19986,7 @@ declare module '@elastic/eui/src/components/steps/step_horizontal' {
|
|
|
19886
19986
|
import { ButtonHTMLAttributes, FunctionComponent, MouseEventHandler } from 'react';
|
|
19887
19987
|
import { CommonProps } from '@elastic/eui/src/components/common';
|
|
19888
19988
|
import { EuiStepStatus } from '@elastic/eui/src/components/steps/step_number';
|
|
19989
|
+
import { EuiStepsHorizontalSizes } from '@elastic/eui/src/components/steps/steps_horizontal';
|
|
19889
19990
|
export interface EuiStepHorizontalProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'onClick'>, CommonProps {
|
|
19890
19991
|
onClick: MouseEventHandler<HTMLButtonElement>;
|
|
19891
19992
|
/**
|
|
@@ -19903,29 +20004,10 @@ declare module '@elastic/eui/src/components/steps/step_horizontal' {
|
|
|
19903
20004
|
* The `disabled` prop will override this.
|
|
19904
20005
|
*/
|
|
19905
20006
|
status?: EuiStepStatus;
|
|
20007
|
+
size?: EuiStepsHorizontalSizes;
|
|
19906
20008
|
}
|
|
19907
20009
|
export const EuiStepHorizontal: FunctionComponent<EuiStepHorizontalProps>;
|
|
19908
20010
|
|
|
19909
|
-
}
|
|
19910
|
-
declare module '@elastic/eui/src/components/steps/steps_horizontal.styles' {
|
|
19911
|
-
export const euiStepsHorizontalStyles: () => {
|
|
19912
|
-
euiStepsHorizontal: import("@emotion/utils").SerializedStyles;
|
|
19913
|
-
euiStepsHorizontal__item: import("@emotion/utils").SerializedStyles;
|
|
19914
|
-
};
|
|
19915
|
-
|
|
19916
|
-
}
|
|
19917
|
-
declare module '@elastic/eui/src/components/steps/steps_horizontal' {
|
|
19918
|
-
import { FunctionComponent, OlHTMLAttributes } from 'react';
|
|
19919
|
-
import { CommonProps } from '@elastic/eui/src/components/common';
|
|
19920
|
-
import { EuiStepHorizontalProps } from '@elastic/eui/src/components/steps/step_horizontal';
|
|
19921
|
-
export interface EuiStepsHorizontalProps extends OlHTMLAttributes<HTMLOListElement>, CommonProps {
|
|
19922
|
-
/**
|
|
19923
|
-
* An array of `EuiStepHorizontal` objects excluding the `step` prop
|
|
19924
|
-
*/
|
|
19925
|
-
steps: Array<Omit<EuiStepHorizontalProps, 'step'>>;
|
|
19926
|
-
}
|
|
19927
|
-
export const EuiStepsHorizontal: FunctionComponent<EuiStepsHorizontalProps>;
|
|
19928
|
-
|
|
19929
20011
|
}
|
|
19930
20012
|
declare module '@elastic/eui/src/components/steps' {
|
|
19931
20013
|
export type { EuiStepProps } from '@elastic/eui/src/components/steps/step';
|
|
@@ -19935,7 +20017,7 @@ declare module '@elastic/eui/src/components/steps' {
|
|
|
19935
20017
|
export type { EuiSubStepsProps } from '@elastic/eui/src/components/steps/sub_steps';
|
|
19936
20018
|
export { EuiSubSteps } from '@elastic/eui/src/components/steps/sub_steps';
|
|
19937
20019
|
export { EuiStepHorizontal } from '@elastic/eui/src/components/steps/step_horizontal';
|
|
19938
|
-
export type { EuiStepsHorizontalProps } from '@elastic/eui/src/components/steps/steps_horizontal';
|
|
20020
|
+
export type { EuiStepsHorizontalProps, EuiStepsHorizontalSizes, } from '@elastic/eui/src/components/steps/steps_horizontal';
|
|
19939
20021
|
export { EuiStepsHorizontal } from '@elastic/eui/src/components/steps/steps_horizontal';
|
|
19940
20022
|
export type { EuiStepStatus, EuiStepNumberProps } from '@elastic/eui/src/components/steps/step_number';
|
|
19941
20023
|
export { EuiStepNumber } from '@elastic/eui/src/components/steps/step_number';
|
|
@@ -22568,6 +22650,16 @@ declare module '@elastic/eui/src/components/icon/assets/asterisk' {
|
|
|
22568
22650
|
export const icon: ({ title, titleId, ...props }: SVGProps<SVGSVGElement> & SVGRProps) => JSX.Element;
|
|
22569
22651
|
export {};
|
|
22570
22652
|
|
|
22653
|
+
}
|
|
22654
|
+
declare module '@elastic/eui/src/components/icon/assets/at' {
|
|
22655
|
+
import type { SVGProps } from 'react';
|
|
22656
|
+
interface SVGRProps {
|
|
22657
|
+
title?: string;
|
|
22658
|
+
titleId?: string;
|
|
22659
|
+
}
|
|
22660
|
+
export const icon: ({ title, titleId, ...props }: SVGProps<SVGSVGElement> & SVGRProps) => JSX.Element;
|
|
22661
|
+
export {};
|
|
22662
|
+
|
|
22571
22663
|
}
|
|
22572
22664
|
declare module '@elastic/eui/src/components/icon/assets/beaker' {
|
|
22573
22665
|
import type { SVGProps } from 'react';
|
|
@@ -23918,6 +24010,16 @@ declare module '@elastic/eui/src/components/icon/assets/issue' {
|
|
|
23918
24010
|
export const icon: ({ title, titleId, ...props }: React.SVGProps<SVGSVGElement> & SVGRProps) => JSX.Element;
|
|
23919
24011
|
export {};
|
|
23920
24012
|
|
|
24013
|
+
}
|
|
24014
|
+
declare module '@elastic/eui/src/components/icon/assets/key' {
|
|
24015
|
+
import type { SVGProps } from 'react';
|
|
24016
|
+
interface SVGRProps {
|
|
24017
|
+
title?: string;
|
|
24018
|
+
titleId?: string;
|
|
24019
|
+
}
|
|
24020
|
+
export const icon: ({ title, titleId, ...props }: SVGProps<SVGSVGElement> & SVGRProps) => JSX.Element;
|
|
24021
|
+
export {};
|
|
24022
|
+
|
|
23921
24023
|
}
|
|
23922
24024
|
declare module '@elastic/eui/src/components/icon/assets/keyboard' {
|
|
23923
24025
|
import type { SVGProps } from 'react';
|