@elastic/eui 84.0.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 +0 -150
- package/dist/eui_theme_dark.min.css +1 -1
- package/dist/eui_theme_light.css +0 -150
- 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/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 +1 -1
- package/es/components/comment_list/comment.js +2 -2
- package/es/components/comment_list/comment_event.js +1 -1
- package/es/components/comment_list/comment_list.js +2 -2
- package/es/components/comment_list/comment_timeline.js +1 -1
- package/es/components/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/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/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/search_bar/filters/field_value_selection_filter.js +37 -31
- 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 +1125 -1017
- package/i18ntokens.json +12 -12
- package/lib/components/accessibility/screen_reader_only/screen_reader_only.js +2 -2
- 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 +1 -1
- package/lib/components/comment_list/comment.js +2 -2
- package/lib/components/comment_list/comment_event.js +1 -1
- package/lib/components/comment_list/comment_list.js +2 -2
- package/lib/components/comment_list/comment_timeline.js +1 -1
- package/lib/components/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/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/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/search_bar/filters/field_value_selection_filter.js +37 -31
- 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/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/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/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/search_bar/filters/field_value_selection_filter.js +37 -31
- 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/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/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/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/search_bar/filters/field_value_selection_filter.js +37 -31
- 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 +1 -1
- package/src/components/filter_group/_index.scss +0 -2
- 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/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 +1 -1
- package/test-env/components/comment_list/comment.js +2 -2
- package/test-env/components/comment_list/comment_event.js +1 -1
- package/test-env/components/comment_list/comment_list.js +2 -2
- package/test-env/components/comment_list/comment_timeline.js +1 -1
- package/test-env/components/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/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/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/search_bar/filters/field_value_selection_filter.js +37 -31
- 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 -59
- 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
|
*/
|
|
@@ -6726,450 +7255,125 @@ declare module '@elastic/eui/src/services/color/manipulation' {
|
|
|
6726
7255
|
* @param color - Color to mix with black
|
|
6727
7256
|
* @param ratio - Mix weight. From 0-1. Larger value indicates more black.
|
|
6728
7257
|
*/
|
|
6729
|
-
export const shade: (color: string, ratio: number) => string;
|
|
6730
|
-
/**
|
|
6731
|
-
* Returns the tinted color for light mode and shaded color for dark mode
|
|
6732
|
-
* @param color - Color to mix with white
|
|
6733
|
-
* @param ratio - Mix weight. From 0-1. Larger value indicates more white.
|
|
6734
|
-
* @param colorMode - Light or dark only
|
|
6735
|
-
*/
|
|
6736
|
-
export const tintOrShade: (color: string, ratio: number, colorMode: EuiThemeColorModeStandard) => string;
|
|
6737
|
-
/**
|
|
6738
|
-
* Returns the shaded color for light mode and tinted color for dark mode
|
|
6739
|
-
* @param color - Color to mix with white
|
|
6740
|
-
* @param ratio - Mix weight. From 0-1. Larger value indicates more white.
|
|
6741
|
-
* @param colorMode - Light or dark only
|
|
6742
|
-
*/
|
|
6743
|
-
export const shadeOrTint: (color: string, ratio: number, colorMode: EuiThemeColorModeStandard) => string;
|
|
6744
|
-
/**
|
|
6745
|
-
* Increases the saturation of a color by manipulating the hsl saturation.
|
|
6746
|
-
* @param color - Color to manipulate
|
|
6747
|
-
* @param amount - Amount to change in absolute terms. 0-1.
|
|
6748
|
-
*/
|
|
6749
|
-
export const saturate: (color: string, amount: number) => string;
|
|
6750
|
-
/**
|
|
6751
|
-
* Decreases the saturation of a color by manipulating the hsl saturation.
|
|
6752
|
-
* @param color - Color to manipulate
|
|
6753
|
-
* @param amount - Amount to change in absolute terms. 0-1.
|
|
6754
|
-
*/
|
|
6755
|
-
export const desaturate: (color: string, amount: number) => string;
|
|
6756
|
-
/**
|
|
6757
|
-
* Returns the lightness value of a color. 0-100
|
|
6758
|
-
* @param color
|
|
6759
|
-
*/
|
|
6760
|
-
export const lightness: (color: string) => number;
|
|
6761
|
-
/**
|
|
6762
|
-
* Returns the darken value of a color. 0-100
|
|
6763
|
-
* @param color - Color to manipulate
|
|
6764
|
-
* @param amount - Amount to change in absolute terms. 0-1.
|
|
6765
|
-
*/
|
|
6766
|
-
export const darken: (color: string, amount: number) => string;
|
|
6767
|
-
/**
|
|
6768
|
-
* Returns the brighten value of a color. 0-100
|
|
6769
|
-
* @param color - Color to manipulate
|
|
6770
|
-
* @param amount - Amount to change in absolute terms. 0-1.
|
|
6771
|
-
*/
|
|
6772
|
-
export const brighten: (color: string, amount: number) => string;
|
|
6773
|
-
|
|
6774
|
-
}
|
|
6775
|
-
declare module '@elastic/eui/src/services/color/contrast' {
|
|
6776
|
-
export const wcagContrastMin = 4.5;
|
|
6777
|
-
/**
|
|
6778
|
-
* Creates a new color that meets or exceeds WCAG level AA
|
|
6779
|
-
* @param foreground - Color to manipulate
|
|
6780
|
-
* @param ratio - Amount to change in absolute terms. 0-10.
|
|
6781
|
-
* *
|
|
6782
|
-
* @param themeOrBackground - Color to use as the contrast basis or just pass EuiTheme
|
|
6783
|
-
*/
|
|
6784
|
-
export const makeHighContrastColor: (_foreground: string, ratio?: number) => (themeOrBackground: string | {
|
|
6785
|
-
[key: string]: any;
|
|
6786
|
-
colors: {
|
|
6787
|
-
body: string;
|
|
6788
|
-
};
|
|
6789
|
-
}) => string;
|
|
6790
|
-
/**
|
|
6791
|
-
* Creates a new color with increased contrast
|
|
6792
|
-
* Disabled content only needs a contrast of at least 2 because there is no interaction available
|
|
6793
|
-
* @param foreground - Color to manipulate
|
|
6794
|
-
* @param ratio - Amount to change in absolute terms. 0-10.
|
|
6795
|
-
* *
|
|
6796
|
-
* @param themeOrBackground - Color to use as the contrast basis
|
|
6797
|
-
*/
|
|
6798
|
-
export const makeDisabledContrastColor: (color: string, ratio?: number) => (themeOrBackground: string | {
|
|
6799
|
-
[key: string]: any;
|
|
6800
|
-
colors: {
|
|
6801
|
-
body: string;
|
|
6802
|
-
};
|
|
6803
|
-
}) => string;
|
|
6804
|
-
|
|
6805
|
-
}
|
|
6806
|
-
declare module '@elastic/eui/src/services/color' {
|
|
6807
|
-
export { isColorDark } from '@elastic/eui/src/services/color/is_color_dark';
|
|
6808
|
-
export { isValidHex } from '@elastic/eui/src/services/color/is_valid_hex';
|
|
6809
|
-
export { hexToHsv } from '@elastic/eui/src/services/color/hex_to_hsv';
|
|
6810
|
-
export { hexToRgb } from '@elastic/eui/src/services/color/hex_to_rgb';
|
|
6811
|
-
export { hsvToHex } from '@elastic/eui/src/services/color/hsv_to_hex';
|
|
6812
|
-
export { hsvToRgb } from '@elastic/eui/src/services/color/hsv_to_rgb';
|
|
6813
|
-
export { rgbToHex } from '@elastic/eui/src/services/color/rgb_to_hex';
|
|
6814
|
-
export { rgbToHsv } from '@elastic/eui/src/services/color/rgb_to_hsv';
|
|
6815
|
-
export { calculateContrast, calculateLuminance, } from '@elastic/eui/src/services/color/luminance_and_contrast';
|
|
6816
|
-
export { VISUALIZATION_COLORS, DEFAULT_VISUALIZATION_COLOR, } from '@elastic/eui/src/services/color/visualization_colors';
|
|
6817
|
-
export { colorPalette } from '@elastic/eui/src/services/color/color_palette';
|
|
6818
|
-
export { euiPaletteForLightBackground, euiPaletteForDarkBackground, euiPaletteColorBlind, euiPaletteColorBlindBehindText, euiPaletteForStatus, euiPaletteForTemperature, euiPaletteComplimentary, euiPaletteNegative, euiPalettePositive, euiPaletteCool, euiPaletteWarm, euiPaletteGray, } from '@elastic/eui/src/services/color/eui_palettes';
|
|
6819
|
-
export type { rgbDef, HSV, RGB } from '@elastic/eui/src/services/color/color_types';
|
|
6820
|
-
export { getSteppedGradient } from '@elastic/eui/src/services/color/stepped_gradient';
|
|
6821
|
-
export * from '@elastic/eui/src/services/color/manipulation';
|
|
6822
|
-
export * from '@elastic/eui/src/services/color/contrast';
|
|
6823
|
-
|
|
6824
|
-
}
|
|
6825
|
-
declare module '@elastic/eui/src/themes/amsterdam/global_styling/variables/_colors' {
|
|
6826
|
-
import { _EuiThemeColors, _EuiThemeBrandColors, _EuiThemeBrandTextColors, _EuiThemeShadeColors, _EuiThemeSpecialColors, _EuiThemeTextColors, _EuiThemeColorsMode } from '@elastic/eui/src/global_styling/variables/colors';
|
|
6827
|
-
export const brand_colors: _EuiThemeBrandColors;
|
|
6828
|
-
export const brand_text_colors: _EuiThemeBrandTextColors;
|
|
6829
|
-
export const shade_colors: _EuiThemeShadeColors;
|
|
6830
|
-
export const special_colors: _EuiThemeSpecialColors;
|
|
6831
|
-
export const text_colors: _EuiThemeTextColors;
|
|
6832
|
-
export const light_colors: _EuiThemeColorsMode;
|
|
6833
|
-
export const dark_shades: _EuiThemeShadeColors;
|
|
6834
|
-
export const dark_colors_ams: _EuiThemeColorsMode;
|
|
6835
|
-
export const colors: _EuiThemeColors;
|
|
6836
|
-
|
|
6837
|
-
}
|
|
6838
|
-
declare module '@elastic/eui/src/themes/amsterdam/global_styling/variables/_animation' {
|
|
6839
|
-
import { _EuiThemeAnimationSpeeds, _EuiThemeAnimationEasings, _EuiThemeAnimation } from '@elastic/eui/src/global_styling/variables/animations';
|
|
6840
|
-
export const animation_speed: _EuiThemeAnimationSpeeds;
|
|
6841
|
-
export const animation_ease: _EuiThemeAnimationEasings;
|
|
6842
|
-
export const animation: _EuiThemeAnimation;
|
|
6843
|
-
|
|
6844
|
-
}
|
|
6845
|
-
declare module '@elastic/eui/src/global_styling/variables' {
|
|
6846
|
-
export * from '@elastic/eui/src/global_styling/variables/animations';
|
|
6847
|
-
export * from '@elastic/eui/src/global_styling/variables/borders';
|
|
6848
|
-
export * from '@elastic/eui/src/global_styling/variables/breakpoint';
|
|
6849
|
-
export * from '@elastic/eui/src/global_styling/variables/colors';
|
|
6850
|
-
export * from '@elastic/eui/src/global_styling/variables/levels';
|
|
6851
|
-
export * from '@elastic/eui/src/global_styling/variables/size';
|
|
6852
|
-
export * from '@elastic/eui/src/global_styling/variables/shadow';
|
|
6853
|
-
export * from '@elastic/eui/src/global_styling/variables/states';
|
|
6854
|
-
export * from '@elastic/eui/src/global_styling/variables/typography';
|
|
6855
|
-
|
|
6856
|
-
}
|
|
6857
|
-
declare module '@elastic/eui/src/themes/amsterdam/global_styling/variables/_breakpoint' {
|
|
6858
|
-
import { _EuiThemeBreakpoints } from '@elastic/eui/src/global_styling/variables';
|
|
6859
|
-
export const breakpoint: _EuiThemeBreakpoints;
|
|
6860
|
-
|
|
6861
|
-
}
|
|
6862
|
-
declare module '@elastic/eui/src/global_styling/functions/logicals' {
|
|
6863
|
-
import { CSSProperties } from 'react';
|
|
6864
|
-
/**
|
|
6865
|
-
* EUI utilizes logical CSS properties to enable directional writing-modes.
|
|
6866
|
-
* To encourage use of logical properties, we provide a few helper utilities to
|
|
6867
|
-
* convert certain directional properties to logical properties.
|
|
6868
|
-
* https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Logical_Properties
|
|
6869
|
-
*/
|
|
6870
|
-
export const logicalSide: {
|
|
6871
|
-
left: string;
|
|
6872
|
-
right: string;
|
|
6873
|
-
top: string;
|
|
6874
|
-
bottom: string;
|
|
6875
|
-
horizontal: string;
|
|
6876
|
-
vertical: string;
|
|
6877
|
-
};
|
|
6878
|
-
export const LOGICAL_SIDES: ("left" | "right" | "top" | "bottom" | "horizontal" | "vertical")[];
|
|
6879
|
-
export type LogicalSides = (typeof LOGICAL_SIDES)[number];
|
|
6880
|
-
export const logicals: {
|
|
6881
|
-
height: string;
|
|
6882
|
-
width: string;
|
|
6883
|
-
"max-height": string;
|
|
6884
|
-
"max-width": string;
|
|
6885
|
-
"min-height": string;
|
|
6886
|
-
"min-width": string;
|
|
6887
|
-
top: string;
|
|
6888
|
-
right: string;
|
|
6889
|
-
bottom: string;
|
|
6890
|
-
left: string;
|
|
6891
|
-
horizontal: string;
|
|
6892
|
-
vertical: string;
|
|
6893
|
-
"margin-left": string;
|
|
6894
|
-
"margin-right": string;
|
|
6895
|
-
"margin-top": string;
|
|
6896
|
-
"margin-bottom": string;
|
|
6897
|
-
"margin-horizontal": string;
|
|
6898
|
-
"margin-vertical": string;
|
|
6899
|
-
"padding-left": string;
|
|
6900
|
-
"padding-right": string;
|
|
6901
|
-
"padding-top": string;
|
|
6902
|
-
"padding-bottom": string;
|
|
6903
|
-
"padding-horizontal": string;
|
|
6904
|
-
"padding-vertical": string;
|
|
6905
|
-
"overflow-x": string;
|
|
6906
|
-
"overflow-y": string;
|
|
6907
|
-
"border-horizontal": string;
|
|
6908
|
-
"border-horizontal-color": string;
|
|
6909
|
-
"border-horizontal-width": string;
|
|
6910
|
-
"border-horizontal-style": string;
|
|
6911
|
-
"border-vertical": string;
|
|
6912
|
-
"border-vertical-color": string;
|
|
6913
|
-
"border-vertical-width": string;
|
|
6914
|
-
"border-vertical-style": string;
|
|
6915
|
-
"border-bottom": string;
|
|
6916
|
-
"border-bottom-color": string;
|
|
6917
|
-
"border-bottom-style": string;
|
|
6918
|
-
"border-bottom-width": string;
|
|
6919
|
-
"border-top": string;
|
|
6920
|
-
"border-top-color": string;
|
|
6921
|
-
"border-top-style": string;
|
|
6922
|
-
"border-top-width": string;
|
|
6923
|
-
"border-right": string;
|
|
6924
|
-
"border-right-color": string;
|
|
6925
|
-
"border-right-style": string;
|
|
6926
|
-
"border-right-width": string;
|
|
6927
|
-
"border-left": string;
|
|
6928
|
-
"border-left-color": string;
|
|
6929
|
-
"border-left-style": string;
|
|
6930
|
-
"border-left-width": string;
|
|
6931
|
-
"border-top-left-radius": string;
|
|
6932
|
-
"border-top-right-radius": string;
|
|
6933
|
-
"border-bottom-left-radius": string;
|
|
6934
|
-
"border-bottom-right-radius": string;
|
|
6935
|
-
_shorthands: string[];
|
|
6936
|
-
};
|
|
6937
|
-
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")[];
|
|
6938
|
-
export type LogicalProperties = (typeof LOGICAL_PROPERTIES)[number];
|
|
6939
|
-
/**
|
|
6940
|
-
*
|
|
6941
|
-
* @param property A string that is a valid CSS logical property
|
|
6942
|
-
* @param value String to output as the property value
|
|
6943
|
-
* @returns `string` Returns the logical CSS property version for the given `property: value` pair
|
|
6944
|
-
*/
|
|
6945
|
-
export const logicalCSS: (property: LogicalProperties, value?: any) => string;
|
|
6946
|
-
/**
|
|
6947
|
-
* Some logical properties are not yet fully supported by all browsers.
|
|
6948
|
-
* For those cases, we should use the old property as a fallback for
|
|
6949
|
-
* browsers missing support, while allowing supporting browsers to use
|
|
6950
|
-
* the logical properties.
|
|
6951
|
-
*
|
|
6952
|
-
* Examples:
|
|
6953
|
-
* https://caniuse.com/?search=overflow-block
|
|
6954
|
-
* https://caniuse.com/mdn-css_properties_float_flow_relative_values
|
|
6955
|
-
*/
|
|
6956
|
-
export const logicalCSSWithFallback: (property: LogicalProperties, value?: any) => string;
|
|
6957
|
-
/**
|
|
6958
|
-
*
|
|
6959
|
-
* @param property A string that is a valid CSS logical property
|
|
6960
|
-
* @param value String to output as the property value
|
|
6961
|
-
* @returns `object` Returns the logical CSS property version for the given `property: value` pair
|
|
6962
|
-
*/
|
|
6963
|
-
export const logicalStyle: (property: LogicalProperties, value?: any) => {
|
|
6964
|
-
[x: string]: any;
|
|
6965
|
-
};
|
|
7258
|
+
export const shade: (color: string, ratio: number) => string;
|
|
6966
7259
|
/**
|
|
6967
|
-
*
|
|
6968
|
-
*
|
|
6969
|
-
*
|
|
6970
|
-
* @param
|
|
6971
|
-
* @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
|
|
6972
7264
|
*/
|
|
6973
|
-
export const
|
|
7265
|
+
export const tintOrShade: (color: string, ratio: number, colorMode: EuiThemeColorModeStandard) => string;
|
|
6974
7266
|
/**
|
|
6975
|
-
*
|
|
6976
|
-
* @param
|
|
6977
|
-
* @param
|
|
6978
|
-
* @
|
|
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
|
|
6979
7271
|
*/
|
|
6980
|
-
export const
|
|
7272
|
+
export const shadeOrTint: (color: string, ratio: number, colorMode: EuiThemeColorModeStandard) => string;
|
|
6981
7273
|
/**
|
|
6982
|
-
*
|
|
6983
|
-
* @param
|
|
6984
|
-
* @param
|
|
6985
|
-
* @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.
|
|
6986
7277
|
*/
|
|
6987
|
-
export const
|
|
6988
|
-
[x: string]: any;
|
|
6989
|
-
};
|
|
6990
|
-
export const logicalText: {
|
|
6991
|
-
'text-align': {
|
|
6992
|
-
left: string;
|
|
6993
|
-
center: string;
|
|
6994
|
-
right: string;
|
|
6995
|
-
};
|
|
6996
|
-
};
|
|
6997
|
-
export const LOGICAL_TEXT_ALIGNMENT: ("left" | "right" | "center")[];
|
|
6998
|
-
export type LogicalText = (typeof LOGICAL_TEXT_ALIGNMENT)[number];
|
|
7278
|
+
export const saturate: (color: string, amount: number) => string;
|
|
6999
7279
|
/**
|
|
7000
|
-
*
|
|
7001
|
-
* @param
|
|
7002
|
-
* @param
|
|
7003
|
-
* @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.
|
|
7004
7283
|
*/
|
|
7005
|
-
export const
|
|
7284
|
+
export const desaturate: (color: string, amount: number) => string;
|
|
7006
7285
|
/**
|
|
7007
|
-
*
|
|
7008
|
-
* @param
|
|
7009
|
-
* @param value String to output as the property value
|
|
7010
|
-
* @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
|
|
7011
7288
|
*/
|
|
7012
|
-
export const
|
|
7013
|
-
textAlign: string;
|
|
7014
|
-
};
|
|
7015
|
-
|
|
7016
|
-
}
|
|
7017
|
-
declare module '@elastic/eui/src/global_styling/functions/logical_shorthands' {
|
|
7018
|
-
export const LOGICAL_SHORTHANDS: string[];
|
|
7019
|
-
export type LogicalShorthands = (typeof LOGICAL_SHORTHANDS)[number];
|
|
7289
|
+
export const lightness: (color: string) => number;
|
|
7020
7290
|
/**
|
|
7021
|
-
*
|
|
7022
|
-
*
|
|
7023
|
-
*
|
|
7024
|
-
* (@see https://github.com/w3c/csswg-drafts/issues/1282)
|
|
7025
|
-
*
|
|
7026
|
-
* This utility is essentially a stop-gap for those shorthand properties,
|
|
7027
|
-
* converting them to corresponding longer logical `-inline` and `-block` properties
|
|
7028
|
-
*
|
|
7029
|
-
* 🗑 NOTE: This file is in a separate util file from logicals.ts due to its relatively
|
|
7030
|
-
* 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.
|
|
7031
7294
|
*/
|
|
7032
|
-
export const
|
|
7295
|
+
export const darken: (color: string, amount: number) => string;
|
|
7033
7296
|
/**
|
|
7034
|
-
*
|
|
7035
|
-
*
|
|
7036
|
-
*
|
|
7037
|
-
*
|
|
7038
|
-
* It also needs to account for `/` syntax (horizontal vs vertical radii)
|
|
7039
|
-
* @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.
|
|
7040
7300
|
*/
|
|
7041
|
-
export const
|
|
7042
|
-
|
|
7043
|
-
}
|
|
7044
|
-
declare module '@elastic/eui/src/global_styling/functions/math' {
|
|
7045
|
-
type ValueTypes = string | number | undefined;
|
|
7046
|
-
export const mathWithUnits: (values: ValueTypes | ValueTypes[], callback: (...args: number[]) => number, unit?: string) => string;
|
|
7047
|
-
export {};
|
|
7301
|
+
export const brighten: (color: string, amount: number) => string;
|
|
7048
7302
|
|
|
7049
7303
|
}
|
|
7050
|
-
declare module '@elastic/eui/src/
|
|
7304
|
+
declare module '@elastic/eui/src/services/color/contrast' {
|
|
7305
|
+
export const wcagContrastMin = 4.5;
|
|
7051
7306
|
/**
|
|
7052
|
-
*
|
|
7053
|
-
* @param
|
|
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.
|
|
7054
7310
|
* *
|
|
7055
|
-
* @param
|
|
7311
|
+
* @param themeOrBackground - Color to use as the contrast basis or just pass EuiTheme
|
|
7312
|
+
*/
|
|
7313
|
+
export const makeHighContrastColor: (_foreground: string, ratio?: number) => (themeOrBackground: string | {
|
|
7314
|
+
[key: string]: any;
|
|
7315
|
+
colors: {
|
|
7316
|
+
body: string;
|
|
7317
|
+
};
|
|
7318
|
+
}) => string;
|
|
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.
|
|
7056
7324
|
* *
|
|
7057
|
-
* @
|
|
7325
|
+
* @param themeOrBackground - Color to use as the contrast basis
|
|
7058
7326
|
*/
|
|
7059
|
-
export const
|
|
7327
|
+
export const makeDisabledContrastColor: (color: string, ratio?: number) => (themeOrBackground: string | {
|
|
7060
7328
|
[key: string]: any;
|
|
7061
|
-
|
|
7329
|
+
colors: {
|
|
7330
|
+
body: string;
|
|
7331
|
+
};
|
|
7062
7332
|
}) => string;
|
|
7063
7333
|
|
|
7064
7334
|
}
|
|
7065
|
-
declare module '@elastic/eui/src/services/
|
|
7066
|
-
|
|
7067
|
-
|
|
7068
|
-
|
|
7069
|
-
export
|
|
7070
|
-
export
|
|
7071
|
-
export
|
|
7072
|
-
|
|
7073
|
-
|
|
7074
|
-
|
|
7075
|
-
|
|
7076
|
-
|
|
7077
|
-
|
|
7078
|
-
|
|
7079
|
-
|
|
7080
|
-
|
|
7081
|
-
|
|
7082
|
-
*
|
|
7083
|
-
* The parent level `EuiProvider`/`EuiThemeProvider` will **not** render a wrapper element, as
|
|
7084
|
-
* the default inherited text color will be set on the page `body`.
|
|
7085
|
-
*/
|
|
7086
|
-
wrapperProps?: HTMLAttributes<HTMLElement> & CommonProps & {
|
|
7087
|
-
cloneElement?: boolean;
|
|
7088
|
-
};
|
|
7089
|
-
}
|
|
7090
|
-
export const EuiThemeProvider: <T extends {} = {}>({ theme: _system, colorMode: _colorMode, modify: _modifications, children, wrapperProps, }: React.PropsWithChildren<EuiThemeProviderProps<T>>) => JSX.Element;
|
|
7091
|
-
export {};
|
|
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';
|
|
7092
7352
|
|
|
7093
7353
|
}
|
|
7094
|
-
declare module '@elastic/eui/src/
|
|
7095
|
-
import
|
|
7096
|
-
|
|
7097
|
-
|
|
7098
|
-
|
|
7099
|
-
|
|
7100
|
-
export
|
|
7101
|
-
|
|
7102
|
-
|
|
7103
|
-
|
|
7104
|
-
|
|
7105
|
-
export const useEuiTheme: <T extends {} = {}>() => UseEuiTheme<T>;
|
|
7106
|
-
/**
|
|
7107
|
-
* HOC for class components
|
|
7108
|
-
*/
|
|
7109
|
-
export interface WithEuiThemeProps<P extends {} = {}> {
|
|
7110
|
-
theme: UseEuiTheme<P>;
|
|
7111
|
-
}
|
|
7112
|
-
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">>>;
|
|
7113
|
-
/**
|
|
7114
|
-
* Render prop alternative for complex class components
|
|
7115
|
-
* Most useful for scenarios where a HOC may interfere with typing
|
|
7116
|
-
*/
|
|
7117
|
-
export const RenderWithEuiTheme: <T extends {} = {}>({ children, }: {
|
|
7118
|
-
children: (theme: UseEuiTheme) => React.ReactElement;
|
|
7119
|
-
}) => React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
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;
|
|
7120
7365
|
|
|
7121
7366
|
}
|
|
7122
|
-
declare module '@elastic/eui/src/global_styling/
|
|
7123
|
-
import {
|
|
7124
|
-
|
|
7125
|
-
export
|
|
7126
|
-
|
|
7127
|
-
* The returned string measurement
|
|
7128
|
-
*/
|
|
7129
|
-
measurement?: _EuiThemeFontSizeMeasurement;
|
|
7130
|
-
/**
|
|
7131
|
-
* An additional custom scale multiplier to use against the current scale
|
|
7132
|
-
* This parameter can be used (e.g. by EuiText sizes) to get sizes of text smaller than the default
|
|
7133
|
-
*/
|
|
7134
|
-
customScale?: _EuiThemeFontScale;
|
|
7135
|
-
}
|
|
7136
|
-
/**
|
|
7137
|
-
* Calculates the font-size value based on the provided scale key
|
|
7138
|
-
* @param scale - The font scale key
|
|
7139
|
-
* @param theme - Requires the `base` and `font` keys
|
|
7140
|
-
* @param options - Optional parameters - see _FontScaleOptions
|
|
7141
|
-
*
|
|
7142
|
-
* @returns string - Calculated font-size value
|
|
7143
|
-
*/
|
|
7144
|
-
export function euiFontSizeFromScale(scale: _EuiThemeFontScale, { base, font }: UseEuiTheme['euiTheme'], { measurement, customScale }?: _FontScaleOptions): string;
|
|
7145
|
-
/**
|
|
7146
|
-
* Calculates the line-height to the closest multiple of the baseline
|
|
7147
|
-
* EX: A proper line-height for text is 1.5 times the font-size.
|
|
7148
|
-
* If our base font size (euiFontSize) is 16, and our baseline is 4. To ensure the
|
|
7149
|
-
* text stays on the baseline, we pass a multiplier to calculate a line-height.
|
|
7150
|
-
* @param scale - The font scale key
|
|
7151
|
-
* @param theme - Requires the `base` and `font` keys
|
|
7152
|
-
* @param options - Optional parameters - see _FontScaleOptions
|
|
7153
|
-
*
|
|
7154
|
-
* @returns string - Calculated line-height value aligned to baseline
|
|
7155
|
-
*/
|
|
7156
|
-
export function euiLineHeightFromBaseline(scale: _EuiThemeFontScale, { base, font }: UseEuiTheme['euiTheme'], { measurement, customScale }?: _FontScaleOptions): string;
|
|
7157
|
-
/**
|
|
7158
|
-
* Text weight shifting
|
|
7159
|
-
*
|
|
7160
|
-
* When changing the font-weight based on the state of the component,
|
|
7161
|
-
* this mixin will ensure that the sizing is dependent on the boldest
|
|
7162
|
-
* weight so it doesn't shift sibling content.
|
|
7163
|
-
*/
|
|
7164
|
-
export const euiTextShift: (fontWeight: keyof _EuiThemeFontWeights | undefined, attribute: string | undefined, euiTheme: UseEuiTheme['euiTheme']) => string;
|
|
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;
|
|
7165
7372
|
|
|
7166
7373
|
}
|
|
7167
|
-
declare module '@elastic/eui/src/global_styling/
|
|
7168
|
-
|
|
7169
|
-
export
|
|
7170
|
-
export * from '@elastic/eui/src/global_styling/functions/math';
|
|
7171
|
-
export * from '@elastic/eui/src/global_styling/functions/size';
|
|
7172
|
-
export * from '@elastic/eui/src/global_styling/functions/typography';
|
|
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;
|
|
7173
7377
|
|
|
7174
7378
|
}
|
|
7175
7379
|
declare module '@elastic/eui/src/themes/amsterdam/global_styling/variables/_size' {
|
|
@@ -7222,13 +7426,54 @@ declare module '@elastic/eui/src/services/theme/context' {
|
|
|
7222
7426
|
export const EuiThemeContext: import("react").Context<EuiThemeComputed<{}>>;
|
|
7223
7427
|
export const EuiNestedThemeContext: import("react").Context<EuiThemeNested>;
|
|
7224
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
|
+
|
|
7225
7469
|
}
|
|
7226
7470
|
declare module '@elastic/eui/src/services/theme' {
|
|
7227
7471
|
export { EuiSystemContext, EuiThemeContext, EuiNestedThemeContext, EuiModificationsContext, EuiColorModeContext, } from '@elastic/eui/src/services/theme/context';
|
|
7228
7472
|
export type { UseEuiTheme, WithEuiThemeProps } from '@elastic/eui/src/services/theme/hooks';
|
|
7229
7473
|
export { useEuiTheme, withEuiTheme, RenderWithEuiTheme } from '@elastic/eui/src/services/theme/hooks';
|
|
7230
7474
|
export type { EuiThemeProviderProps } from '@elastic/eui/src/services/theme/provider';
|
|
7231
|
-
export { EuiThemeProvider
|
|
7475
|
+
export { EuiThemeProvider } from '@elastic/eui/src/services/theme/provider';
|
|
7476
|
+
export { getEuiDevProviderWarning, setEuiDevProviderWarning } from '@elastic/eui/src/services/theme/warning';
|
|
7232
7477
|
export { buildTheme, computed, isInverseColorMode, getColorMode, getComputed, getOn, mergeDeep, setOn, Computed, } from '@elastic/eui/src/services/theme/utils';
|
|
7233
7478
|
export type { ComputedThemeShape, EuiThemeColorMode, EuiThemeColorModeStandard, EuiThemeComputed, EuiThemeModifications, EuiThemeShape, EuiThemeSystem, } from '@elastic/eui/src/services/theme/types';
|
|
7234
7479
|
export { COLOR_MODES_STANDARD } from '@elastic/eui/src/services/theme/types';
|
|
@@ -7237,12 +7482,6 @@ declare module '@elastic/eui/src/services/theme' {
|
|
|
7237
7482
|
declare module '@elastic/eui/src/services/throttle' {
|
|
7238
7483
|
export const throttle: (fn: (...args: any[]) => void, wait?: number) => (...args: any[]) => void;
|
|
7239
7484
|
|
|
7240
|
-
}
|
|
7241
|
-
declare module '@elastic/eui/src/services/breakpoint/_sorting' {
|
|
7242
|
-
import { _EuiThemeBreakpoints } from '@elastic/eui/src/global_styling/variables/breakpoint';
|
|
7243
|
-
export const sortMapByLargeToSmallValues: (breakpointsMap: _EuiThemeBreakpoints) => _EuiThemeBreakpoints;
|
|
7244
|
-
export const sortMapBySmallToLargeValues: (breakpointsMap: _EuiThemeBreakpoints) => _EuiThemeBreakpoints;
|
|
7245
|
-
|
|
7246
7485
|
}
|
|
7247
7486
|
declare module '@elastic/eui/src/services/breakpoint/current_breakpoint' {
|
|
7248
7487
|
import React, { FunctionComponent } from 'react';
|
|
@@ -7336,6 +7575,20 @@ declare module '@elastic/eui/src/services/console' {
|
|
|
7336
7575
|
declare module '@elastic/eui/src/services/copy_to_clipboard' {
|
|
7337
7576
|
export function copyToClipboard(text: string): boolean;
|
|
7338
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
|
+
|
|
7339
7592
|
}
|
|
7340
7593
|
declare module '@elastic/eui/src/services/findElement' {
|
|
7341
7594
|
/**
|
|
@@ -7530,472 +7783,239 @@ declare module '@elastic/eui/src/services/random' {
|
|
|
7530
7783
|
declare module '@elastic/eui/src/services/security/get_secure_rel_for_target' {
|
|
7531
7784
|
/**
|
|
7532
7785
|
* Secures outbound links. For more info:
|
|
7533
|
-
* https://www.jitbit.com/alexblog/256-targetblank---the-most-underestimated-vulnerability-ever/
|
|
7534
|
-
*/
|
|
7535
|
-
export const getSecureRelForTarget: ({ target, rel, }: {
|
|
7536
|
-
href?: string | undefined;
|
|
7537
|
-
target?: string | undefined;
|
|
7538
|
-
rel?: string | undefined;
|
|
7539
|
-
}) => string;
|
|
7540
|
-
|
|
7541
|
-
}
|
|
7542
|
-
declare module '@elastic/eui/src/services/security' {
|
|
7543
|
-
export { getSecureRelForTarget } from '@elastic/eui/src/services/security/get_secure_rel_for_target';
|
|
7544
|
-
|
|
7545
|
-
}
|
|
7546
|
-
declare module '@elastic/eui/src/services/sort/sort_direction' {
|
|
7547
|
-
import PropTypes from 'prop-types'; const ASC: "asc"; const DESC: "desc";
|
|
7548
|
-
export type Direction = typeof ASC | typeof DESC;
|
|
7549
|
-
export const SortDirection: Readonly<{
|
|
7550
|
-
ASC: "asc";
|
|
7551
|
-
DESC: "desc";
|
|
7552
|
-
isAsc(direction: Direction): boolean;
|
|
7553
|
-
reverse(direction: Direction): "desc" | "asc";
|
|
7554
|
-
}>;
|
|
7555
|
-
export const SortDirectionType: PropTypes.Requireable<"desc" | "asc">;
|
|
7556
|
-
export {};
|
|
7557
|
-
|
|
7558
|
-
}
|
|
7559
|
-
declare module '@elastic/eui/src/services/sort/comparators' {
|
|
7560
|
-
export type Primitive = string | boolean | number | null | undefined; type Comparator<T = Primitive> = (a: T, b: T) => number;
|
|
7561
|
-
export const Comparators: Readonly<{
|
|
7562
|
-
default: (direction?: 'asc' | 'desc') => (v1: Primitive, v2: Primitive) => number;
|
|
7563
|
-
reverse: <T>(comparator: Comparator<T>) => Comparator<T>;
|
|
7564
|
-
value<T_1>(valueCallback: (value: T_1) => Primitive, comparator?: Comparator<Primitive> | undefined): Comparator<T_1>;
|
|
7565
|
-
property<T_2>(prop: string, comparator?: Comparator<Primitive> | undefined): Comparator<T_2>;
|
|
7566
|
-
}>;
|
|
7567
|
-
export {};
|
|
7568
|
-
|
|
7569
|
-
}
|
|
7570
|
-
declare module '@elastic/eui/src/services/sort/sortable_properties' {
|
|
7571
|
-
import { Primitive } from '@elastic/eui/src/services/sort/comparators';
|
|
7572
|
-
export interface SortableProperty<T> {
|
|
7573
|
-
name: string;
|
|
7574
|
-
getValue: (obj: T) => Primitive;
|
|
7575
|
-
isAscending: boolean;
|
|
7576
|
-
}
|
|
7577
|
-
/**
|
|
7578
|
-
* @typedef {Object} SortableProperty
|
|
7579
|
-
* @property {string} sortableProperty.name - Name of the property.
|
|
7580
|
-
* @property {function} sortableProperty.getValue - A function that takes in an object and returns a value to sort
|
|
7581
|
-
* by.
|
|
7582
|
-
* @property {boolean} sortableProperty.isAscending - The direction of the last sort by this property. Used to preserve
|
|
7583
|
-
* past sort orders.
|
|
7584
|
-
*/
|
|
7585
|
-
/**
|
|
7586
|
-
* Stores sort information for a set of SortableProperties, including which property is currently being sorted on, as
|
|
7587
|
-
* well as the last sort order for each property.
|
|
7588
|
-
*/
|
|
7589
|
-
export class SortableProperties<T> {
|
|
7590
|
-
sortableProperties: Array<SortableProperty<T>>;
|
|
7591
|
-
currentSortedProperty: SortableProperty<T>;
|
|
7592
|
-
/**
|
|
7593
|
-
* @param {Array<SortableProperty>} sortableProperties - a set of sortable properties.
|
|
7594
|
-
* @param {string} initialSortablePropertyName - Which sort property should be sorted on by default.
|
|
7595
|
-
*/
|
|
7596
|
-
constructor(sortableProperties: Array<SortableProperty<T>>, initialSortablePropertyName: string);
|
|
7597
|
-
/**
|
|
7598
|
-
* @returns {SortableProperty} The current property that is being sorted on. Undefined if no sort order is applied.
|
|
7599
|
-
*/
|
|
7600
|
-
getSortedProperty(): SortableProperty<T>;
|
|
7601
|
-
/**
|
|
7602
|
-
* Sorts the items passed in and returns a newly sorted array.
|
|
7603
|
-
* @param items {Array.<Object>}
|
|
7604
|
-
* @returns {Array.<Object>} sorted array of items, based off the sort properties.
|
|
7605
|
-
*/
|
|
7606
|
-
sortItems(items: T[]): T[];
|
|
7607
|
-
/**
|
|
7608
|
-
* Returns the SortProperty with the given name, if found.
|
|
7609
|
-
* @param {String} propertyName
|
|
7610
|
-
* @returns {SortableProperty|undefined}
|
|
7611
|
-
*/
|
|
7612
|
-
getSortablePropertyByName(propertyName: string): SortableProperty<T> | undefined;
|
|
7613
|
-
/**
|
|
7614
|
-
* Updates the sort property, potentially flipping the sort order based on whether the same
|
|
7615
|
-
* property was already being sorted.
|
|
7616
|
-
* @param propertyName {String}
|
|
7617
|
-
*/
|
|
7618
|
-
sortOn(propertyName: string): void;
|
|
7619
|
-
/**
|
|
7620
|
-
* @returns {boolean} True if the current sortable property is sorted in ascending order.
|
|
7621
|
-
*/
|
|
7622
|
-
isCurrentSortAscending(): boolean;
|
|
7623
|
-
/**
|
|
7624
|
-
* @param {string} propertyName
|
|
7625
|
-
* @returns {boolean} True if the given sort property is sorted in ascending order.
|
|
7626
|
-
*/
|
|
7627
|
-
isAscendingByName(propertyName: string): boolean;
|
|
7628
|
-
/**
|
|
7629
|
-
* Flips the current sorted property sort order.
|
|
7630
|
-
*/
|
|
7631
|
-
flipCurrentSortOrder(): void;
|
|
7632
|
-
}
|
|
7633
|
-
|
|
7634
|
-
}
|
|
7635
|
-
declare module '@elastic/eui/src/services/sort/property_sort' {
|
|
7636
|
-
import PropTypes from 'prop-types';
|
|
7637
|
-
import { Direction } from '@elastic/eui/src/services/sort/sort_direction';
|
|
7638
|
-
export const PropertySortType: PropTypes.Requireable<PropTypes.InferProps<{
|
|
7639
|
-
field: PropTypes.Validator<string>;
|
|
7640
|
-
direction: PropTypes.Validator<"desc" | "asc">;
|
|
7641
|
-
}>>;
|
|
7642
|
-
export interface PropertySort {
|
|
7643
|
-
field: string;
|
|
7644
|
-
direction: Direction;
|
|
7645
|
-
}
|
|
7646
|
-
|
|
7647
|
-
}
|
|
7648
|
-
declare module '@elastic/eui/src/services/sort' {
|
|
7649
|
-
export { SortableProperties } from '@elastic/eui/src/services/sort/sortable_properties';
|
|
7650
|
-
export type { Direction } from '@elastic/eui/src/services/sort/sort_direction';
|
|
7651
|
-
export { SortDirectionType, SortDirection } from '@elastic/eui/src/services/sort/sort_direction';
|
|
7652
|
-
export type { PropertySort } from '@elastic/eui/src/services/sort/property_sort';
|
|
7653
|
-
export { PropertySortType } from '@elastic/eui/src/services/sort/property_sort';
|
|
7654
|
-
export { Comparators } from '@elastic/eui/src/services/sort/comparators';
|
|
7655
|
-
|
|
7656
|
-
}
|
|
7657
|
-
declare module '@elastic/eui/src/services/string/to_initials' {
|
|
7658
|
-
/**
|
|
7659
|
-
* This function calculates the initials/acronym for a given name.
|
|
7660
|
-
* It defaults to only 2 characters and will take the first character (of each word).
|
|
7661
|
-
* If only one word is supplied for the name, it will only pass back the first letter of the word,
|
|
7662
|
-
* unless forced to 2 letters by setting `initialsLength` to `2`.
|
|
7663
|
-
* It will pass back the characters with the same casing as the original string
|
|
7664
|
-
* unless otherwise specified.
|
|
7665
|
-
*
|
|
7666
|
-
* @param {string} name The full name of the item to turn into initials
|
|
7667
|
-
* @param {number} initialsLength (Optional) How many characters to show (max 2 allowed)
|
|
7668
|
-
* @param {string} initials (Optional) Custom initials (max 2 characters)
|
|
7669
|
-
* @returns {string} True if the color is dark, false otherwise.
|
|
7670
|
-
*/
|
|
7671
|
-
export const MAX_INITIALS = 2;
|
|
7672
|
-
export function toInitials(name: string, initialsLength?: 1 | 2, initials?: string): string | null;
|
|
7673
|
-
|
|
7674
|
-
}
|
|
7675
|
-
declare module '@elastic/eui/src/services/string/to_case' {
|
|
7676
|
-
/**
|
|
7677
|
-
* This function returns the same string with the first letter of the first word capitalized.
|
|
7678
|
-
*
|
|
7679
|
-
* @param {string} string The input string
|
|
7680
|
-
*/
|
|
7681
|
-
export function toSentenceCase(string: string): string;
|
|
7682
|
-
|
|
7683
|
-
}
|
|
7684
|
-
declare module '@elastic/eui/src/services/string/slugify' {
|
|
7685
|
-
/**
|
|
7686
|
-
* Lowercases input and replaces spaces with hyphens:
|
|
7687
|
-
* e.g. 'GridView Example' -> 'gridview-example'
|
|
7688
|
-
*
|
|
7689
|
-
* @param {string} string The starting string
|
|
7690
|
-
* @returns {string} Lowercase, dashed version of the starting staring
|
|
7691
|
-
*/
|
|
7692
|
-
export function slugify(str: string): string;
|
|
7693
|
-
|
|
7694
|
-
}
|
|
7695
|
-
declare module '@elastic/eui/src/services/string' {
|
|
7696
|
-
export { toInitials } from '@elastic/eui/src/services/string/to_initials';
|
|
7697
|
-
export { toSentenceCase } from '@elastic/eui/src/services/string/to_case';
|
|
7698
|
-
export { slugify } from '@elastic/eui/src/services/string/slugify';
|
|
7699
|
-
|
|
7700
|
-
}
|
|
7701
|
-
declare module '@elastic/eui/src/services/transition/transition' {
|
|
7702
|
-
export const getTransitionTimings: (element: Element) => {
|
|
7703
|
-
durationMatch: number;
|
|
7704
|
-
delayMatch: number;
|
|
7705
|
-
};
|
|
7706
|
-
export const getWaitDuration: (records: MutationRecord[]) => number;
|
|
7707
|
-
export const performOnFrame: (waitDuration: number, toPerform: () => void) => void;
|
|
7708
|
-
export const getDurationAndPerformOnFrame: (records: MutationRecord[], toPerform: () => void) => void;
|
|
7709
|
-
|
|
7710
|
-
}
|
|
7711
|
-
declare module '@elastic/eui/src/services/transition' {
|
|
7712
|
-
export { getDurationAndPerformOnFrame, getTransitionTimings, getWaitDuration, performOnFrame, } from '@elastic/eui/src/services/transition/transition';
|
|
7713
|
-
|
|
7714
|
-
}
|
|
7715
|
-
declare module '@elastic/eui/src/services/window_event/window_event' {
|
|
7716
|
-
import { Component } from 'react'; type EventNames = keyof WindowEventMap;
|
|
7717
|
-
interface Props<Ev extends EventNames> {
|
|
7718
|
-
event: Ev;
|
|
7719
|
-
handler: (this: Window, ev: WindowEventMap[Ev]) => any;
|
|
7720
|
-
}
|
|
7721
|
-
export class EuiWindowEvent<E extends EventNames> extends Component<Props<E>> {
|
|
7722
|
-
componentDidMount(): void;
|
|
7723
|
-
componentDidUpdate(prevProps: Props<E>): void;
|
|
7724
|
-
componentWillUnmount(): void;
|
|
7725
|
-
addEvent<Ev extends EventNames>({ event, handler }: Props<Ev>): void;
|
|
7726
|
-
removeEvent<Ev extends EventNames>({ event, handler }: Props<Ev>): void;
|
|
7727
|
-
render(): null;
|
|
7728
|
-
}
|
|
7729
|
-
export {};
|
|
7786
|
+
* https://www.jitbit.com/alexblog/256-targetblank---the-most-underestimated-vulnerability-ever/
|
|
7787
|
+
*/
|
|
7788
|
+
export const getSecureRelForTarget: ({ target, rel, }: {
|
|
7789
|
+
href?: string | undefined;
|
|
7790
|
+
target?: string | undefined;
|
|
7791
|
+
rel?: string | undefined;
|
|
7792
|
+
}) => string;
|
|
7730
7793
|
|
|
7731
7794
|
}
|
|
7732
|
-
declare module '@elastic/eui/src/services/
|
|
7733
|
-
export {
|
|
7795
|
+
declare module '@elastic/eui/src/services/security' {
|
|
7796
|
+
export { getSecureRelForTarget } from '@elastic/eui/src/services/security/get_secure_rel_for_target';
|
|
7734
7797
|
|
|
7735
7798
|
}
|
|
7736
|
-
declare module '@elastic/eui/src/services' {
|
|
7737
|
-
import
|
|
7738
|
-
export
|
|
7739
|
-
export
|
|
7740
|
-
|
|
7741
|
-
|
|
7742
|
-
|
|
7743
|
-
|
|
7744
|
-
|
|
7745
|
-
export
|
|
7746
|
-
export
|
|
7747
|
-
export * from '@elastic/eui/src/services/console';
|
|
7748
|
-
export { copyToClipboard } from '@elastic/eui/src/services/copy_to_clipboard';
|
|
7749
|
-
export * from '@elastic/eui/src/services/findElement';
|
|
7750
|
-
export { dateFormatAliases, formatAuto, formatBoolean, formatDate, formatNumber, formatText, } from '@elastic/eui/src/services/format';
|
|
7751
|
-
export * from '@elastic/eui/src/services/hooks';
|
|
7752
|
-
export { isEvenlyDivisibleBy, isWithinRange } from '@elastic/eui/src/services/number';
|
|
7753
|
-
export { Pager } from '@elastic/eui/src/services/paging';
|
|
7754
|
-
export { calculatePopoverPosition, findPopoverPosition } from '@elastic/eui/src/services/popover';
|
|
7755
|
-
export { Random } from '@elastic/eui/src/services/random';
|
|
7756
|
-
export { getSecureRelForTarget } from '@elastic/eui/src/services/security';
|
|
7757
|
-
export { Comparators, PropertySortType, SortableProperties, SortDirection, SortDirectionType, } from '@elastic/eui/src/services/sort';
|
|
7758
|
-
export type { Direction, PropertySort } from '@elastic/eui/src/services/sort';
|
|
7759
|
-
export { slugify, toInitials, toSentenceCase } from '@elastic/eui/src/services/string';
|
|
7760
|
-
export * from '@elastic/eui/src/services/theme';
|
|
7761
|
-
export { throttle } from '@elastic/eui/src/services/throttle';
|
|
7762
|
-
export { getDurationAndPerformOnFrame, getTransitionTimings, getWaitDuration, performOnFrame, } from '@elastic/eui/src/services/transition';
|
|
7763
|
-
export { EuiWindowEvent } from '@elastic/eui/src/services/window_event';
|
|
7764
|
-
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 {};
|
|
7765
7810
|
|
|
7766
7811
|
}
|
|
7767
|
-
declare module '@elastic/eui/src/
|
|
7768
|
-
|
|
7769
|
-
export const
|
|
7770
|
-
|
|
7771
|
-
|
|
7772
|
-
|
|
7773
|
-
|
|
7774
|
-
|
|
7775
|
-
|
|
7776
|
-
method?: 'opaque' | 'transparent';
|
|
7777
|
-
}
|
|
7778
|
-
export const euiBackgroundColor: ({ euiTheme, colorMode }: UseEuiTheme, color: _EuiBackgroundColor, { method }?: _EuiBackgroundColorOptions) => string;
|
|
7779
|
-
export const useEuiBackgroundColor: (color: _EuiBackgroundColor, { method }?: _EuiBackgroundColorOptions) => string;
|
|
7780
|
-
export const useEuiBackgroundColorCSS: () => {
|
|
7781
|
-
transparent: import("@emotion/utils").SerializedStyles;
|
|
7782
|
-
plain: import("@emotion/utils").SerializedStyles;
|
|
7783
|
-
subdued: import("@emotion/utils").SerializedStyles;
|
|
7784
|
-
accent: import("@emotion/utils").SerializedStyles;
|
|
7785
|
-
primary: import("@emotion/utils").SerializedStyles;
|
|
7786
|
-
success: import("@emotion/utils").SerializedStyles;
|
|
7787
|
-
warning: import("@emotion/utils").SerializedStyles;
|
|
7788
|
-
danger: import("@emotion/utils").SerializedStyles;
|
|
7789
|
-
};
|
|
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 {};
|
|
7790
7821
|
|
|
7791
7822
|
}
|
|
7792
|
-
declare module '@elastic/eui/src/
|
|
7793
|
-
import {
|
|
7794
|
-
|
|
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
|
+
}
|
|
7795
7830
|
/**
|
|
7796
|
-
*
|
|
7797
|
-
*
|
|
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.
|
|
7798
7837
|
*/
|
|
7799
|
-
|
|
7800
|
-
|
|
7801
|
-
|
|
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>;
|
|
7802
7845
|
/**
|
|
7803
|
-
*
|
|
7846
|
+
* @param {Array<SortableProperty>} sortableProperties - a set of sortable properties.
|
|
7847
|
+
* @param {string} initialSortablePropertyName - Which sort property should be sorted on by default.
|
|
7804
7848
|
*/
|
|
7805
|
-
|
|
7849
|
+
constructor(sortableProperties: Array<SortableProperty<T>>, initialSortablePropertyName: string);
|
|
7806
7850
|
/**
|
|
7807
|
-
*
|
|
7851
|
+
* @returns {SortableProperty} The current property that is being sorted on. Undefined if no sort order is applied.
|
|
7808
7852
|
*/
|
|
7809
|
-
|
|
7853
|
+
getSortedProperty(): SortableProperty<T>;
|
|
7810
7854
|
/**
|
|
7811
|
-
*
|
|
7812
|
-
*
|
|
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.
|
|
7813
7858
|
*/
|
|
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
|
-
|
|
7839
|
-
|
|
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;
|
|
7840
7885
|
}
|
|
7841
|
-
export const euiOverflowScroll: (euiTheme: UseEuiTheme, { direction, mask }?: EuiScrollOverflowStyles) => string;
|
|
7842
|
-
export const useEuiOverflowScroll: (direction: EuiScrollOverflowStyles['direction'], mask?: EuiScrollOverflowStyles['mask']) => string;
|
|
7843
|
-
/**
|
|
7844
|
-
* For quickly applying a full-height element whether using flex or not
|
|
7845
|
-
*/
|
|
7846
|
-
export const euiFullHeight: () => string;
|
|
7847
|
-
/**
|
|
7848
|
-
* A constant storing the support for the `:has()` selector through a
|
|
7849
|
-
* media query that will only apply the content it is supported.
|
|
7850
|
-
*/
|
|
7851
|
-
export const euiSupportsHas = "@supports(selector(:has(p)))";
|
|
7852
|
-
export {};
|
|
7853
|
-
|
|
7854
|
-
}
|
|
7855
|
-
declare module '@elastic/eui/src/global_styling/mixins/_padding' {
|
|
7856
|
-
import { UseEuiTheme } from '@elastic/eui/src/services/theme';
|
|
7857
|
-
export const PADDING_SIZES: readonly ["none", "xs", "s", "m", "l", "xl"];
|
|
7858
|
-
export type EuiPaddingSize = (typeof PADDING_SIZES)[number];
|
|
7859
|
-
export const euiPaddingSize: ({ euiTheme }: UseEuiTheme, size: EuiPaddingSize) => string | null;
|
|
7860
|
-
export const euiPaddingSizeCSS: (euiThemeContext: UseEuiTheme, side?: "left" | "right" | "top" | "bottom" | "horizontal" | "vertical" | undefined) => {
|
|
7861
|
-
none: null;
|
|
7862
|
-
xs: import("@emotion/utils").SerializedStyles;
|
|
7863
|
-
s: import("@emotion/utils").SerializedStyles;
|
|
7864
|
-
m: import("@emotion/utils").SerializedStyles;
|
|
7865
|
-
l: import("@emotion/utils").SerializedStyles;
|
|
7866
|
-
xl: import("@emotion/utils").SerializedStyles;
|
|
7867
|
-
};
|
|
7868
|
-
export const useEuiPaddingSize: (size: EuiPaddingSize) => string | null;
|
|
7869
|
-
export const useEuiPaddingCSS: (side?: "left" | "right" | "top" | "bottom" | "horizontal" | "vertical" | undefined) => {
|
|
7870
|
-
none: null;
|
|
7871
|
-
xs: import("@emotion/utils").SerializedStyles;
|
|
7872
|
-
s: import("@emotion/utils").SerializedStyles;
|
|
7873
|
-
m: import("@emotion/utils").SerializedStyles;
|
|
7874
|
-
l: import("@emotion/utils").SerializedStyles;
|
|
7875
|
-
xl: import("@emotion/utils").SerializedStyles;
|
|
7876
|
-
};
|
|
7877
|
-
|
|
7878
|
-
}
|
|
7879
|
-
declare module '@elastic/eui/src/global_styling/mixins/_states' {
|
|
7880
|
-
import { CSSProperties } from 'react';
|
|
7881
|
-
import { UseEuiTheme } from '@elastic/eui/src/services';
|
|
7882
|
-
export type _EuiFocusRingOffset = 'inset' | 'outset' | 'center' | CSSProperties['outlineOffset'];
|
|
7883
|
-
/**
|
|
7884
|
-
* It is best practice to utilize the browser's default `outline` property for handling focus rings.
|
|
7885
|
-
* However, some components need to be forced to have the same behavior, or adjust the display.
|
|
7886
|
-
* This function re-applies the same default outline with a couple parameters
|
|
7887
|
-
* @param euiTheme UseEuiTheme
|
|
7888
|
-
* @param offset Accepts a specific measurement or 'inset', 'outset' or 'center' to adjust outline position
|
|
7889
|
-
* @param color Accepts any CSS color
|
|
7890
|
-
*/
|
|
7891
|
-
export const euiOutline: ({ euiTheme }: UseEuiTheme, offset?: _EuiFocusRingOffset, color?: CSSProperties['outlineColor']) => string;
|
|
7892
|
-
export const euiFocusRing: (euiThemeContext: UseEuiTheme, offset?: _EuiFocusRingOffset, options?: {
|
|
7893
|
-
color?: CSSProperties['outlineColor'];
|
|
7894
|
-
} | undefined) => string;
|
|
7895
|
-
export const useEuiFocusRing: (offset?: _EuiFocusRingOffset, color?: CSSProperties['outlineColor']) => string;
|
|
7896
7886
|
|
|
7897
7887
|
}
|
|
7898
|
-
declare module '@elastic/eui/src/
|
|
7899
|
-
import
|
|
7900
|
-
import {
|
|
7901
|
-
|
|
7902
|
-
|
|
7903
|
-
|
|
7904
|
-
|
|
7905
|
-
|
|
7906
|
-
|
|
7907
|
-
|
|
7908
|
-
|
|
7909
|
-
|
|
7910
|
-
|
|
7911
|
-
|
|
7912
|
-
|
|
7913
|
-
|
|
7914
|
-
|
|
7915
|
-
|
|
7916
|
-
export
|
|
7917
|
-
|
|
7918
|
-
|
|
7919
|
-
|
|
7920
|
-
|
|
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' {
|
|
7921
7911
|
/**
|
|
7922
|
-
*
|
|
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.
|
|
7923
7923
|
*/
|
|
7924
|
-
export const
|
|
7925
|
-
export
|
|
7924
|
+
export const MAX_INITIALS = 2;
|
|
7925
|
+
export function toInitials(name: string, initialsLength?: 1 | 2, initials?: string): string | null;
|
|
7926
7926
|
|
|
7927
7927
|
}
|
|
7928
|
-
declare module '@elastic/eui/src/
|
|
7929
|
-
import { UseEuiTheme } from '@elastic/eui/src/services/theme/hooks';
|
|
7930
|
-
import { _EuiThemeBreakpoint } from '@elastic/eui/src/global_styling/variables';
|
|
7928
|
+
declare module '@elastic/eui/src/services/string/to_case' {
|
|
7931
7929
|
/**
|
|
7932
|
-
*
|
|
7933
|
-
* Examples with default theme breakpoints:
|
|
7934
|
-
*
|
|
7935
|
-
* euiBreakpoint(['s']) becomes `@media only screen and (min-width: 575px) and (max-width: 767px)`
|
|
7936
|
-
* euiBreakpoint(['s', 'l']) becomes `@media only screen and (min-width: 575px) and (max-width: 1199px)`
|
|
7937
|
-
*
|
|
7938
|
-
* Use the smallest and largest sizes to generate media queries with only min/max-width.
|
|
7939
|
-
* Examples with default theme breakpoints:
|
|
7930
|
+
* This function returns the same string with the first letter of the first word capitalized.
|
|
7940
7931
|
*
|
|
7941
|
-
*
|
|
7942
|
-
* euiBreakpoint(['l', 'xl']) becomes `@media only screen and (min-width: 992px)`
|
|
7932
|
+
* @param {string} string The input string
|
|
7943
7933
|
*/
|
|
7944
|
-
export
|
|
7945
|
-
|
|
7934
|
+
export function toSentenceCase(string: string): string;
|
|
7935
|
+
|
|
7936
|
+
}
|
|
7937
|
+
declare module '@elastic/eui/src/services/string/slugify' {
|
|
7946
7938
|
/**
|
|
7947
|
-
*
|
|
7948
|
-
*
|
|
7949
|
-
* *Unlike the above euiBreakpoint utility*, these utilities treat breakpoint
|
|
7950
|
-
* sizes as a one-dimensional point, rather than a two-dimensional *screen range*.
|
|
7951
|
-
* Examples with default theme breakpoints:
|
|
7952
|
-
*
|
|
7953
|
-
* euiMaxBreakpoint('m') becomes `@media only screen and (max-width: 767px)`
|
|
7954
|
-
* 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'
|
|
7955
7941
|
*
|
|
7956
|
-
*
|
|
7957
|
-
*
|
|
7958
|
-
* 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
|
|
7959
7944
|
*/
|
|
7960
|
-
export
|
|
7961
|
-
export const useEuiMinBreakpoint: (size: _EuiThemeBreakpoint) => string;
|
|
7962
|
-
export const euiMaxBreakpoint: ({ euiTheme }: UseEuiTheme, size: _EuiThemeBreakpoint) => string;
|
|
7963
|
-
export const useEuiMaxBreakpoint: (size: _EuiThemeBreakpoint) => string;
|
|
7945
|
+
export function slugify(str: string): string;
|
|
7964
7946
|
|
|
7965
7947
|
}
|
|
7966
|
-
declare module '@elastic/eui/src/
|
|
7967
|
-
export
|
|
7968
|
-
export
|
|
7969
|
-
export
|
|
7970
|
-
export * from '@elastic/eui/src/global_styling/mixins/_states';
|
|
7971
|
-
export * from '@elastic/eui/src/global_styling/mixins/_typography';
|
|
7972
|
-
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';
|
|
7973
7952
|
|
|
7974
7953
|
}
|
|
7975
|
-
declare module '@elastic/eui/src/
|
|
7976
|
-
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;
|
|
7977
7962
|
|
|
7978
7963
|
}
|
|
7979
|
-
declare module '@elastic/eui/src/
|
|
7980
|
-
|
|
7981
|
-
|
|
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;
|
|
7982
7973
|
}
|
|
7983
|
-
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 {};
|
|
7984
7983
|
|
|
7985
7984
|
}
|
|
7986
|
-
declare module '@elastic/eui/src/
|
|
7987
|
-
export
|
|
7988
|
-
export const euiAnimSlideInUp: (size: string) => import("@emotion/serialize").Keyframes;
|
|
7989
|
-
export const euiAnimSlideX: (size: string) => import("@emotion/serialize").Keyframes;
|
|
7990
|
-
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';
|
|
7991
7987
|
|
|
7992
7988
|
}
|
|
7993
|
-
declare module '@elastic/eui/src/
|
|
7994
|
-
|
|
7995
|
-
export
|
|
7996
|
-
export
|
|
7997
|
-
export
|
|
7998
|
-
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 };
|
|
7999
8019
|
|
|
8000
8020
|
}
|
|
8001
8021
|
declare module '@elastic/eui/src/components/accessibility/screen_reader_only/screen_reader_only.styles' {
|
|
@@ -10066,7 +10086,7 @@ declare module '@elastic/eui/src/components/color_picker/color_palette_display/c
|
|
|
10066
10086
|
s: string;
|
|
10067
10087
|
m: string;
|
|
10068
10088
|
};
|
|
10069
|
-
export const SIZES: ("
|
|
10089
|
+
export const SIZES: ("xs" | "s" | "m")[];
|
|
10070
10090
|
export type EuiColorPaletteDisplaySize = keyof typeof sizeToClassNameMap;
|
|
10071
10091
|
export interface EuiColorPaletteDisplayShared {
|
|
10072
10092
|
/**
|
|
@@ -10516,6 +10536,52 @@ declare module '@elastic/eui/src/components/combo_box/combo_box_input/combo_box_
|
|
|
10516
10536
|
}
|
|
10517
10537
|
export {};
|
|
10518
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
|
+
|
|
10519
10585
|
}
|
|
10520
10586
|
declare module '@elastic/eui/src/components/filter_group/filter_group' {
|
|
10521
10587
|
import { HTMLAttributes, ReactNode, FunctionComponent } from 'react';
|
|
@@ -10536,9 +10602,9 @@ declare module '@elastic/eui/src/components/filter_group/filter_group' {
|
|
|
10536
10602
|
}
|
|
10537
10603
|
declare module '@elastic/eui/src/components/filter_group/filter_button' {
|
|
10538
10604
|
import { FunctionComponent } from 'react';
|
|
10605
|
+
import { DistributiveOmit } from '@elastic/eui/src/components/common';
|
|
10539
10606
|
import { BadgeNotificationColor } from '@elastic/eui/src/components/badge/notification_badge/badge_notification';
|
|
10540
10607
|
import { EuiButtonEmptyProps } from '@elastic/eui/src/components/button/button_empty';
|
|
10541
|
-
import { DistributiveOmit } from '@elastic/eui/src/components/common';
|
|
10542
10608
|
export type EuiFilterButtonProps = {
|
|
10543
10609
|
/**
|
|
10544
10610
|
* Bolds the button if true
|
|
@@ -13896,8 +13962,6 @@ declare module '@elastic/eui/src/components/tabs/tab.styles' {
|
|
|
13896
13962
|
m: import("@emotion/utils").SerializedStyles;
|
|
13897
13963
|
l: import("@emotion/utils").SerializedStyles;
|
|
13898
13964
|
xl: import("@emotion/utils").SerializedStyles;
|
|
13899
|
-
selected: import("@emotion/utils").SerializedStyles;
|
|
13900
|
-
disabled: import("@emotion/utils").SerializedStyles;
|
|
13901
13965
|
};
|
|
13902
13966
|
|
|
13903
13967
|
}
|
|
@@ -17867,13 +17931,30 @@ declare module '@elastic/eui/src/components/provider/cache/cache_provider' {
|
|
|
17867
17931
|
declare module '@elastic/eui/src/components/provider/cache' {
|
|
17868
17932
|
export * from '@elastic/eui/src/components/provider/cache/cache_provider';
|
|
17869
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
|
+
|
|
17870
17951
|
}
|
|
17871
17952
|
declare module '@elastic/eui/src/components/provider/provider' {
|
|
17872
17953
|
import React, { PropsWithChildren } from 'react';
|
|
17873
17954
|
import { EmotionCache } from '@emotion/css';
|
|
17874
17955
|
import { EuiGlobalStylesProps } from '@elastic/eui/src/global_styling/reset/global_styles';
|
|
17875
17956
|
import { EuiThemeProviderProps, EuiThemeSystem } from '@elastic/eui/src/services';
|
|
17876
|
-
export interface EuiProviderProps<T> extends
|
|
17957
|
+
export interface EuiProviderProps<T> extends Pick<EuiThemeProviderProps<T>, 'colorMode' | 'modify'>, EuiGlobalStylesProps {
|
|
17877
17958
|
/**
|
|
17878
17959
|
* Provide a specific EuiTheme; Defaults to EuiThemeAmsterdam;
|
|
17879
17960
|
* Pass `null` to remove all theming including global reset
|
|
@@ -17904,7 +17985,7 @@ declare module '@elastic/eui/src/components/provider/provider' {
|
|
|
17904
17985
|
utility?: EmotionCache;
|
|
17905
17986
|
};
|
|
17906
17987
|
}
|
|
17907
|
-
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;
|
|
17908
17989
|
|
|
17909
17990
|
}
|
|
17910
17991
|
declare module '@elastic/eui/src/components/provider' {
|
|
@@ -19859,11 +19940,36 @@ declare module '@elastic/eui/src/components/steps/sub_steps' {
|
|
|
19859
19940
|
export type EuiSubStepsProps = FunctionComponent<HTMLAttributes<HTMLDivElement> & CommonProps>;
|
|
19860
19941
|
export const EuiSubSteps: EuiSubStepsProps;
|
|
19861
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
|
+
|
|
19862
19966
|
}
|
|
19863
19967
|
declare module '@elastic/eui/src/components/steps/step_horizontal.styles' {
|
|
19864
19968
|
import { UseEuiTheme } from '@elastic/eui/src/services';
|
|
19865
19969
|
export const euiStepHorizontalStyles: (euiThemeContext: UseEuiTheme) => {
|
|
19866
19970
|
euiStepHorizontal: import("@emotion/utils").SerializedStyles;
|
|
19971
|
+
m: import("@emotion/utils").SerializedStyles;
|
|
19972
|
+
s: import("@emotion/utils").SerializedStyles;
|
|
19867
19973
|
enabled: import("@emotion/utils").SerializedStyles;
|
|
19868
19974
|
disabled: import("@emotion/utils").SerializedStyles;
|
|
19869
19975
|
};
|
|
@@ -19880,6 +19986,7 @@ declare module '@elastic/eui/src/components/steps/step_horizontal' {
|
|
|
19880
19986
|
import { ButtonHTMLAttributes, FunctionComponent, MouseEventHandler } from 'react';
|
|
19881
19987
|
import { CommonProps } from '@elastic/eui/src/components/common';
|
|
19882
19988
|
import { EuiStepStatus } from '@elastic/eui/src/components/steps/step_number';
|
|
19989
|
+
import { EuiStepsHorizontalSizes } from '@elastic/eui/src/components/steps/steps_horizontal';
|
|
19883
19990
|
export interface EuiStepHorizontalProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'onClick'>, CommonProps {
|
|
19884
19991
|
onClick: MouseEventHandler<HTMLButtonElement>;
|
|
19885
19992
|
/**
|
|
@@ -19897,29 +20004,10 @@ declare module '@elastic/eui/src/components/steps/step_horizontal' {
|
|
|
19897
20004
|
* The `disabled` prop will override this.
|
|
19898
20005
|
*/
|
|
19899
20006
|
status?: EuiStepStatus;
|
|
20007
|
+
size?: EuiStepsHorizontalSizes;
|
|
19900
20008
|
}
|
|
19901
20009
|
export const EuiStepHorizontal: FunctionComponent<EuiStepHorizontalProps>;
|
|
19902
20010
|
|
|
19903
|
-
}
|
|
19904
|
-
declare module '@elastic/eui/src/components/steps/steps_horizontal.styles' {
|
|
19905
|
-
export const euiStepsHorizontalStyles: () => {
|
|
19906
|
-
euiStepsHorizontal: import("@emotion/utils").SerializedStyles;
|
|
19907
|
-
euiStepsHorizontal__item: import("@emotion/utils").SerializedStyles;
|
|
19908
|
-
};
|
|
19909
|
-
|
|
19910
|
-
}
|
|
19911
|
-
declare module '@elastic/eui/src/components/steps/steps_horizontal' {
|
|
19912
|
-
import { FunctionComponent, OlHTMLAttributes } from 'react';
|
|
19913
|
-
import { CommonProps } from '@elastic/eui/src/components/common';
|
|
19914
|
-
import { EuiStepHorizontalProps } from '@elastic/eui/src/components/steps/step_horizontal';
|
|
19915
|
-
export interface EuiStepsHorizontalProps extends OlHTMLAttributes<HTMLOListElement>, CommonProps {
|
|
19916
|
-
/**
|
|
19917
|
-
* An array of `EuiStepHorizontal` objects excluding the `step` prop
|
|
19918
|
-
*/
|
|
19919
|
-
steps: Array<Omit<EuiStepHorizontalProps, 'step'>>;
|
|
19920
|
-
}
|
|
19921
|
-
export const EuiStepsHorizontal: FunctionComponent<EuiStepsHorizontalProps>;
|
|
19922
|
-
|
|
19923
20011
|
}
|
|
19924
20012
|
declare module '@elastic/eui/src/components/steps' {
|
|
19925
20013
|
export type { EuiStepProps } from '@elastic/eui/src/components/steps/step';
|
|
@@ -19929,7 +20017,7 @@ declare module '@elastic/eui/src/components/steps' {
|
|
|
19929
20017
|
export type { EuiSubStepsProps } from '@elastic/eui/src/components/steps/sub_steps';
|
|
19930
20018
|
export { EuiSubSteps } from '@elastic/eui/src/components/steps/sub_steps';
|
|
19931
20019
|
export { EuiStepHorizontal } from '@elastic/eui/src/components/steps/step_horizontal';
|
|
19932
|
-
export type { EuiStepsHorizontalProps } from '@elastic/eui/src/components/steps/steps_horizontal';
|
|
20020
|
+
export type { EuiStepsHorizontalProps, EuiStepsHorizontalSizes, } from '@elastic/eui/src/components/steps/steps_horizontal';
|
|
19933
20021
|
export { EuiStepsHorizontal } from '@elastic/eui/src/components/steps/steps_horizontal';
|
|
19934
20022
|
export type { EuiStepStatus, EuiStepNumberProps } from '@elastic/eui/src/components/steps/step_number';
|
|
19935
20023
|
export { EuiStepNumber } from '@elastic/eui/src/components/steps/step_number';
|
|
@@ -22562,6 +22650,16 @@ declare module '@elastic/eui/src/components/icon/assets/asterisk' {
|
|
|
22562
22650
|
export const icon: ({ title, titleId, ...props }: SVGProps<SVGSVGElement> & SVGRProps) => JSX.Element;
|
|
22563
22651
|
export {};
|
|
22564
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
|
+
|
|
22565
22663
|
}
|
|
22566
22664
|
declare module '@elastic/eui/src/components/icon/assets/beaker' {
|
|
22567
22665
|
import type { SVGProps } from 'react';
|
|
@@ -23912,6 +24010,16 @@ declare module '@elastic/eui/src/components/icon/assets/issue' {
|
|
|
23912
24010
|
export const icon: ({ title, titleId, ...props }: React.SVGProps<SVGSVGElement> & SVGRProps) => JSX.Element;
|
|
23913
24011
|
export {};
|
|
23914
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
|
+
|
|
23915
24023
|
}
|
|
23916
24024
|
declare module '@elastic/eui/src/components/icon/assets/keyboard' {
|
|
23917
24025
|
import type { SVGProps } from 'react';
|