@elastic/eui 63.0.3 → 65.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_charts_theme.js +330 -330
- package/dist/eui_charts_theme.js.map +1 -1
- package/dist/eui_theme_dark.css +211 -1652
- package/dist/eui_theme_dark.json +0 -33
- package/dist/eui_theme_dark.json.d.ts +0 -33
- package/dist/eui_theme_dark.min.css +1 -1
- package/dist/eui_theme_light.css +175 -1616
- package/dist/eui_theme_light.json +0 -33
- package/dist/eui_theme_light.json.d.ts +0 -33
- package/dist/eui_theme_light.min.css +1 -1
- package/es/components/accessibility/screen_reader_live/screen_reader_live.js +2 -2
- package/es/components/accessibility/screen_reader_only/screen_reader_only.styles.js +2 -1
- package/es/components/accessibility/skip_link/skip_link.js +5 -53
- package/es/components/accordion/accordion.js +20 -8
- package/es/components/accordion/accordion.styles.js +20 -27
- package/es/components/aspect_ratio/aspect_ratio.js +10 -18
- package/es/components/avatar/avatar.js +1 -0
- package/es/components/badge/badge.js +1 -0
- package/es/components/badge/badge_group/badge_group.js +1 -0
- package/es/components/badge/beta_badge/beta_badge.js +17 -3
- package/es/components/badge/notification_badge/badge_notification.js +2 -1
- package/es/components/basic_table/basic_table.js +6 -3
- package/es/components/basic_table/collapsed_item_actions.js +1 -1
- package/es/components/basic_table/in_memory_table.js +9 -4
- package/es/components/beacon/beacon.js +1 -0
- package/es/components/beacon/beacon.styles.js +2 -2
- package/es/components/bottom_bar/bottom_bar.js +2 -0
- package/es/components/breadcrumbs/breadcrumb.js +1 -0
- package/es/components/breadcrumbs/breadcrumb.styles.js +2 -2
- package/es/components/breadcrumbs/breadcrumbs.js +2 -0
- package/es/components/button/_button_content_deprecated.js +3 -1
- package/es/components/button/button.js +114 -213
- package/es/components/button/button_display/_button_display.js +92 -40
- package/es/components/button/button_display/_button_display.styles.js +7 -16
- package/es/components/button/button_display/_button_display_content.js +9 -4
- package/es/components/button/button_display/_button_display_content.styles.js +7 -17
- package/es/components/button/button_empty/button_empty.js +66 -54
- package/es/components/button/button_empty/index.js +1 -1
- package/es/components/button/button_group/button_group.js +8 -13
- package/es/components/button/button_group/button_group_button.js +16 -4
- package/es/components/button/button_icon/button_icon.js +62 -42
- package/es/components/call_out/call_out.js +1 -0
- package/es/components/call_out/call_out.styles.js +2 -1
- package/es/components/card/card.js +174 -88
- package/es/components/card/card.styles.js +136 -0
- package/es/components/card/card_select/card_select.js +133 -0
- package/es/components/card/card_select/card_select.styles.js +25 -0
- package/es/components/card/card_select/index.js +8 -0
- package/es/components/card/checkable_card/checkable_card.js +14 -9
- package/es/components/card/checkable_card/checkable_card.styles.js +22 -0
- package/es/components/code/code.js +1 -0
- package/es/components/code/code_block.js +1 -0
- package/es/components/collapsible_nav/collapsible_nav.js +8 -48
- package/es/components/collapsible_nav/collapsible_nav_group/collapsible_nav_group.js +9 -1
- package/es/components/color_picker/color_palette_display/color_palette_display.js +1 -0
- package/es/components/color_picker/color_palette_display/color_palette_display_fixed.js +1 -0
- package/es/components/color_picker/color_palette_display/color_palette_display_gradient.js +1 -0
- package/es/components/color_picker/color_palette_picker/color_palette_picker.js +7 -3
- package/es/components/color_picker/color_picker.js +1 -0
- package/es/components/color_picker/color_picker_swatch.js +1 -0
- package/es/components/color_picker/color_stops/color_stop_thumb.js +1 -0
- package/es/components/color_picker/color_stops/color_stops.js +2 -1
- package/es/components/color_picker/hue.js +1 -0
- package/es/components/color_picker/saturation.js +1 -0
- package/es/components/combo_box/combo_box.js +2 -1
- package/es/components/combo_box/combo_box_input/combo_box_input.js +6 -3
- package/es/components/combo_box/combo_box_input/combo_box_pill.js +6 -3
- package/es/components/combo_box/combo_box_options_list/combo_box_option.js +6 -3
- package/es/components/combo_box/combo_box_options_list/combo_box_options_list.js +13 -6
- package/es/components/comment_list/comment.js +1 -0
- package/es/components/comment_list/comment_event.js +2 -1
- package/es/components/comment_list/comment_event.styles.js +1 -1
- package/es/components/comment_list/comment_list.js +2 -0
- package/es/components/comment_list/comment_timeline.js +2 -1
- package/es/components/context_menu/context_menu.js +3 -1
- package/es/components/context_menu/context_menu_item.js +1 -0
- package/es/components/context_menu/context_menu_panel.js +1 -0
- package/es/components/control_bar/control_bar.js +3 -0
- package/es/components/copy/copy.js +2 -1
- package/es/components/datagrid/body/data_grid_body.js +19 -6
- package/es/components/datagrid/body/data_grid_cell.js +37 -12
- package/es/components/datagrid/body/header/data_grid_header_cell.js +19 -6
- package/es/components/datagrid/body/header/data_grid_header_row.js +20 -6
- package/es/components/datagrid/data_grid.js +20 -6
- package/es/components/datagrid/utils/in_memory.js +19 -6
- package/es/components/date_picker/auto_refresh/auto_refresh.js +6 -3
- package/es/components/date_picker/date_picker.js +1 -0
- package/es/components/date_picker/date_picker_range.js +45 -4
- package/es/components/date_picker/super_date_picker/super_date_picker.js +19 -1
- package/es/components/date_picker/super_date_picker/super_update_button.js +11 -1
- package/es/components/description_list/description_list.js +5 -2
- package/es/components/description_list/description_list_description.js +2 -1
- package/es/components/description_list/description_list_title.js +2 -1
- package/es/components/drag_and_drop/draggable.js +2 -1
- package/es/components/drag_and_drop/droppable.js +2 -1
- package/es/components/empty_prompt/empty_prompt.js +1 -0
- package/es/components/error_boundary/error_boundary.js +1 -0
- package/es/components/expression/expression.js +1 -0
- package/es/components/expression/expression.styles.js +13 -31
- package/es/components/facet/facet_button.js +7 -5
- package/es/components/facet/facet_group.js +1 -0
- package/es/components/filter_group/filter_group.js +1 -0
- package/es/components/filter_group/filter_select_item.js +2 -1
- package/es/components/flex/flex_grid.js +1 -0
- package/es/components/flex/flex_group.js +2 -1
- package/es/components/flex/flex_item.js +1 -0
- package/es/components/flyout/flyout.js +7 -34
- package/es/components/flyout/flyout_body.js +1 -0
- package/es/components/flyout/flyout_footer.js +2 -1
- package/es/components/flyout/flyout_header.js +1 -0
- package/es/components/focus_trap/focus_trap.js +1 -0
- package/es/components/form/checkbox/checkbox.js +4 -2
- package/es/components/form/checkbox/checkbox_group.js +2 -0
- package/es/components/form/described_form_group/described_form_group.js +1 -0
- package/es/components/form/field_number/field_number.js +1 -0
- package/es/components/form/field_password/field_password.js +1 -0
- package/es/components/form/field_search/field_search.js +2 -1
- package/es/components/form/field_text/field_text.js +1 -0
- package/es/components/form/file_picker/file_picker.js +2 -1
- package/es/components/form/form.js +1 -0
- package/es/components/form/form_control_layout/form_control_layout.js +2 -0
- package/es/components/form/form_control_layout/form_control_layout_clear_button.js +1 -0
- package/es/components/form/form_control_layout/form_control_layout_custom_icon.js +1 -0
- package/es/components/form/form_control_layout/form_control_layout_icons.js +1 -0
- package/es/components/form/form_error_text/form_error_text.js +2 -1
- package/es/components/form/form_fieldset/form_fieldset.js +3 -1
- package/es/components/form/form_fieldset/form_legend.js +1 -0
- package/es/components/form/form_help_text/form_help_text.js +2 -1
- package/es/components/form/form_label/form_label.js +2 -1
- package/es/components/form/form_row/form_row.js +1 -0
- package/es/components/form/radio/radio.js +3 -1
- package/es/components/form/radio/radio_group.js +2 -0
- package/es/components/form/range/dual_range.js +2 -1
- package/es/components/form/range/range.js +4 -2
- package/es/components/form/range/range_levels.js +2 -1
- package/es/components/form/range/range_slider.js +1 -0
- package/es/components/form/range/range_thumb.js +2 -1
- package/es/components/form/range/range_track.js +2 -1
- package/es/components/form/range/range_wrapper.js +2 -1
- package/es/components/form/select/select.js +1 -0
- package/es/components/form/super_select/super_select.js +1 -0
- package/es/components/form/switch/switch.js +3 -1
- package/es/components/form/text_area/text_area.js +1 -0
- package/es/components/form/validatable_control/validatable_control.js +1 -0
- package/es/components/header/header.js +3 -2
- package/es/components/header/header_alert/header_alert.js +1 -0
- package/es/components/header/header_breadcrumbs/header_breadcrumbs.js +2 -0
- package/es/components/header/header_links/header_link.js +7 -3
- package/es/components/header/header_links/header_links.js +8 -1
- package/es/components/header/header_logo.js +1 -0
- package/es/components/header/header_section/header_section.js +1 -0
- package/es/components/header/header_section/header_section_item.js +1 -0
- package/es/components/health/health.js +1 -0
- package/es/components/highlight/highlight.js +1 -0
- package/es/components/horizontal_rule/horizontal_rule.js +2 -1
- package/es/components/icon/icon.js +1 -0
- package/es/components/image/image.js +1 -0
- package/es/components/image/image_button.styles.js +1 -1
- package/es/components/image/image_wrapper.styles.js +3 -3
- package/es/components/key_pad_menu/key_pad_menu.js +1 -0
- package/es/components/key_pad_menu/key_pad_menu_item.js +1 -0
- package/es/components/link/link.js +1 -0
- package/es/components/link/link.styles.js +7 -6
- package/es/components/list_group/list_group.js +5 -1
- package/es/components/list_group/list_group_item.js +4 -1
- package/es/components/list_group/pinnable_list_group/pinnable_list_group.js +8 -2
- package/es/components/loading/loading_chart.js +1 -0
- package/es/components/loading/loading_chart.styles.js +16 -26
- package/es/components/loading/loading_content.js +1 -0
- package/es/components/loading/loading_content.styles.js +2 -2
- package/es/components/loading/loading_elastic.js +1 -0
- package/es/components/loading/loading_logo.js +1 -0
- package/es/components/loading/loading_logo.styles.js +4 -4
- package/es/components/loading/loading_spinner.js +1 -0
- package/es/components/loading/loading_spinner.styles.js +6 -6
- package/es/components/mark/mark.js +1 -0
- package/es/components/markdown_editor/markdown_editor.js +2 -0
- package/es/components/markdown_editor/markdown_editor_text_area.js +1 -0
- package/es/components/markdown_editor/markdown_editor_toolbar.js +3 -0
- package/es/components/markdown_editor/markdown_format.js +1 -0
- package/es/components/modal/confirm_modal.js +1 -1
- package/es/components/modal/modal_body.js +2 -1
- package/es/components/modal/modal_footer.js +2 -1
- package/es/components/modal/modal_header.js +2 -1
- package/es/components/modal/modal_header_title.js +2 -1
- package/es/components/notification/notification_event.js +9 -4
- package/es/components/notification/notification_event_read_button.js +3 -1
- package/es/components/notification/notification_event_read_icon.js +1 -0
- package/es/components/overlay_mask/overlay_mask.js +3 -1
- package/es/components/page/page.js +1 -0
- package/es/components/page/page_content/page_content.js +1 -0
- package/es/components/page/page_content/page_content_body.js +1 -0
- package/es/components/page/page_content/page_content_header.js +2 -1
- package/es/components/page/page_content/page_content_header_section.js +2 -1
- package/es/components/page/page_header/page_header.js +1 -0
- package/es/components/page/page_header/page_header_content.js +4 -0
- package/es/components/page/page_header/page_header_section.js +2 -1
- package/es/components/page/page_section/page_section.js +1 -0
- package/es/components/page/page_side_bar/page_side_bar.js +2 -1
- package/es/components/page/page_sidebar/page_sidebar.js +5 -2
- package/es/components/page/page_template.js +9 -3
- package/es/components/page_template/empty_prompt/page_empty_prompt.js +1 -0
- package/es/components/page_template/inner/page_inner.styles.js +2 -2
- package/es/components/page_template/outer/page_outer.js +2 -1
- package/es/components/page_template/outer/page_outer.styles.js +3 -1
- package/es/components/page_template/page_template.js +9 -2
- package/es/components/pagination/pagination.js +1 -0
- package/es/components/pagination/pagination_button.js +7 -3
- package/es/components/panel/panel.js +3 -2
- package/es/components/panel/{panel.style.js → panel.styles.js} +2 -2
- package/es/components/panel/split_panel/split_panel.js +2 -1
- package/es/components/popover/input_popover.js +1 -0
- package/es/components/popover/popover.js +10 -2
- package/es/components/popover/popover_arrow/_popover_arrow.js +1 -0
- package/es/components/popover/popover_footer.js +1 -0
- package/es/components/popover/popover_panel/_popover_panel.js +1 -0
- package/es/components/popover/popover_panel/_popover_panel.styles.js +3 -2
- package/es/components/popover/popover_title.js +1 -0
- package/es/components/progress/progress.js +1 -0
- package/es/components/progress/progress.styles.js +2 -2
- package/es/components/provider/cache/cache_provider.js +9 -3
- package/es/components/resizable_container/resizable_button.js +2 -1
- package/es/components/resizable_container/resizable_container.js +2 -1
- package/es/components/resizable_container/resizable_panel.js +2 -1
- package/es/components/search_bar/search_bar.js +3 -1
- package/es/components/selectable/selectable.js +2 -0
- package/es/components/selectable/selectable_list/selectable_list.js +4 -0
- package/es/components/selectable/selectable_list/selectable_list_item.js +2 -0
- package/es/components/selectable/selectable_message/selectable_message.js +1 -0
- package/es/components/selectable/selectable_templates/selectable_template_sitewide.js +5 -1
- package/es/components/side_nav/side_nav.js +1 -0
- package/es/components/spacer/spacer.js +1 -0
- package/es/components/stat/stat.js +1 -0
- package/es/components/steps/step.js +1 -0
- package/es/components/steps/step_horizontal.js +2 -1
- package/es/components/steps/step_number.js +2 -1
- package/es/components/steps/steps.js +2 -1
- package/es/components/steps/steps_horizontal.js +2 -1
- package/es/components/steps/sub_steps.js +2 -1
- package/es/components/suggest/suggest.js +2 -0
- package/es/components/suggest/suggest_item.js +1 -0
- package/es/components/table/mobile/table_header_mobile.js +2 -1
- package/es/components/table/mobile/table_sort_mobile_item.js +2 -1
- package/es/components/table/table.js +2 -1
- package/es/components/table/table_body.js +1 -0
- package/es/components/table/table_footer.js +2 -1
- package/es/components/table/table_footer_cell.js +1 -0
- package/es/components/table/table_header.js +1 -0
- package/es/components/table/table_header_button.js +1 -0
- package/es/components/table/table_header_cell.js +1 -0
- package/es/components/table/table_header_cell_checkbox.js +1 -0
- package/es/components/table/table_row.js +1 -0
- package/es/components/table/table_row_cell.js +1 -0
- package/es/components/table/table_row_cell_checkbox.js +2 -1
- package/es/components/tabs/tab.js +1 -0
- package/es/components/tabs/tabbed_content/tabbed_content.js +7 -3
- package/es/components/text/text.js +1 -0
- package/es/components/text/text.styles.js +1 -1
- package/es/components/text/text_align.js +1 -0
- package/es/components/text/text_color.js +1 -0
- package/es/components/timeline/timeline.js +4 -2
- package/es/components/timeline/timeline_item.js +2 -1
- package/es/components/title/title.js +1 -0
- package/es/components/title/title.styles.js +2 -2
- package/es/components/toast/global_toast_list.js +4 -2
- package/es/components/toast/global_toast_list.styles.js +2 -2
- package/es/components/toast/global_toast_list_item.js +1 -0
- package/es/components/toast/toast.js +2 -1
- package/es/components/toast/toast.styles.js +4 -4
- package/es/components/tool_tip/icon_tip.js +11 -1
- package/es/components/tool_tip/tool_tip.js +18 -6
- package/es/components/tool_tip/tool_tip_popover.js +1 -0
- package/es/components/tour/tour.js +1 -214
- package/es/components/tour/tour.styles.js +57 -0
- package/es/components/tour/tour_step.js +36 -6
- package/es/components/tour/tour_step_indicator.js +23 -14
- package/es/components/tree_view/tree_view.js +1 -0
- package/es/global_styling/functions/logicals.js +16 -72
- package/es/global_styling/functions/typography.js +2 -1
- package/es/global_styling/mixins/_color.js +1 -1
- package/es/global_styling/mixins/_helpers.js +18 -5
- package/es/global_styling/mixins/_responsive.js +18 -14
- package/es/global_styling/mixins/_states.js +3 -4
- package/es/global_styling/mixins/_typography.js +3 -1
- package/es/global_styling/reset/global_styles.js +2 -1
- package/es/global_styling/utility/utility.js +10 -2
- package/es/global_styling/variables/breakpoint.js +2 -1
- package/es/services/breakpoint/_sorting.js +41 -0
- package/es/services/breakpoint/current_breakpoint.js +19 -6
- package/es/services/breakpoint/index.js +2 -2
- package/es/services/breakpoint/is_within_hooks.js +67 -0
- package/es/services/index.js +1 -1
- package/es/themes/amsterdam/global_styling/mixins/button.js +165 -16
- package/eui.d.ts +1172 -1011
- package/i18ntokens.json +33 -33
- package/lib/components/accessibility/screen_reader_live/screen_reader_live.js +2 -2
- package/lib/components/accessibility/screen_reader_only/screen_reader_only.styles.js +3 -1
- package/lib/components/accessibility/skip_link/skip_link.js +5 -53
- package/lib/components/accordion/accordion.js +21 -8
- package/lib/components/accordion/accordion.styles.js +20 -26
- package/lib/components/aspect_ratio/aspect_ratio.js +10 -20
- package/lib/components/avatar/avatar.js +1 -0
- package/lib/components/badge/badge.js +1 -0
- package/lib/components/badge/badge_group/badge_group.js +1 -0
- package/lib/components/badge/beta_badge/beta_badge.js +17 -3
- package/lib/components/badge/notification_badge/badge_notification.js +2 -1
- package/lib/components/basic_table/basic_table.js +6 -3
- package/lib/components/basic_table/collapsed_item_actions.js +1 -1
- package/lib/components/basic_table/in_memory_table.js +9 -4
- package/lib/components/beacon/beacon.js +1 -0
- package/lib/components/beacon/beacon.styles.js +1 -1
- package/lib/components/bottom_bar/bottom_bar.js +2 -0
- package/lib/components/breadcrumbs/breadcrumb.js +1 -0
- package/lib/components/breadcrumbs/breadcrumb.styles.js +2 -2
- package/lib/components/breadcrumbs/breadcrumbs.js +2 -0
- package/lib/components/button/_button_content_deprecated.js +3 -1
- package/lib/components/button/button.js +124 -225
- package/lib/components/button/button_display/_button_display.js +96 -33
- package/lib/components/button/button_display/_button_display.styles.js +7 -16
- package/lib/components/button/button_display/_button_display_content.js +10 -4
- package/lib/components/button/button_display/_button_display_content.styles.js +7 -17
- package/lib/components/button/button_empty/button_empty.js +67 -55
- package/lib/components/button/button_empty/index.js +0 -6
- package/lib/components/button/button_group/button_group.js +8 -13
- package/lib/components/button/button_group/button_group_button.js +17 -4
- package/lib/components/button/button_icon/button_icon.js +62 -43
- package/lib/components/call_out/call_out.js +1 -0
- package/lib/components/call_out/call_out.styles.js +2 -1
- package/lib/components/card/card.js +175 -87
- package/lib/components/card/card.styles.js +146 -0
- package/lib/components/card/card_select/card_select.js +144 -0
- package/lib/components/card/card_select/card_select.styles.js +27 -0
- package/lib/components/card/card_select/index.js +19 -0
- package/lib/components/card/checkable_card/checkable_card.js +16 -9
- package/lib/components/card/checkable_card/checkable_card.styles.js +33 -0
- package/lib/components/code/code.js +1 -0
- package/lib/components/code/code_block.js +1 -0
- package/lib/components/collapsible_nav/collapsible_nav.js +6 -46
- package/lib/components/collapsible_nav/collapsible_nav_group/collapsible_nav_group.js +9 -1
- package/lib/components/color_picker/color_palette_display/color_palette_display.js +1 -0
- package/lib/components/color_picker/color_palette_display/color_palette_display_fixed.js +1 -0
- package/lib/components/color_picker/color_palette_display/color_palette_display_gradient.js +1 -0
- package/lib/components/color_picker/color_palette_picker/color_palette_picker.js +7 -3
- package/lib/components/color_picker/color_picker.js +1 -0
- package/lib/components/color_picker/color_picker_swatch.js +1 -0
- package/lib/components/color_picker/color_stops/color_stop_thumb.js +1 -0
- package/lib/components/color_picker/color_stops/color_stops.js +2 -1
- package/lib/components/color_picker/hue.js +1 -0
- package/lib/components/color_picker/saturation.js +1 -0
- package/lib/components/combo_box/combo_box.js +2 -1
- package/lib/components/combo_box/combo_box_input/combo_box_input.js +6 -3
- package/lib/components/combo_box/combo_box_input/combo_box_pill.js +6 -3
- package/lib/components/combo_box/combo_box_options_list/combo_box_option.js +6 -3
- package/lib/components/combo_box/combo_box_options_list/combo_box_options_list.js +13 -6
- package/lib/components/comment_list/comment.js +1 -0
- package/lib/components/comment_list/comment_event.js +2 -1
- package/lib/components/comment_list/comment_event.styles.js +1 -1
- package/lib/components/comment_list/comment_list.js +2 -0
- package/lib/components/comment_list/comment_timeline.js +2 -1
- package/lib/components/context_menu/context_menu.js +3 -1
- package/lib/components/context_menu/context_menu_item.js +1 -0
- package/lib/components/context_menu/context_menu_panel.js +1 -0
- package/lib/components/control_bar/control_bar.js +3 -0
- package/lib/components/copy/copy.js +2 -1
- package/lib/components/datagrid/body/data_grid_body.js +19 -6
- package/lib/components/datagrid/body/data_grid_cell.js +37 -12
- package/lib/components/datagrid/body/header/data_grid_header_cell.js +19 -6
- package/lib/components/datagrid/body/header/data_grid_header_row.js +20 -6
- package/lib/components/datagrid/data_grid.js +20 -6
- package/lib/components/datagrid/utils/in_memory.js +19 -6
- package/lib/components/date_picker/auto_refresh/auto_refresh.js +6 -3
- package/lib/components/date_picker/date_picker.js +1 -0
- package/lib/components/date_picker/date_picker_range.js +45 -4
- package/lib/components/date_picker/super_date_picker/super_date_picker.js +19 -1
- package/lib/components/date_picker/super_date_picker/super_update_button.js +11 -1
- package/lib/components/description_list/description_list.js +5 -2
- package/lib/components/description_list/description_list_description.js +2 -1
- package/lib/components/description_list/description_list_title.js +2 -1
- package/lib/components/drag_and_drop/draggable.js +2 -1
- package/lib/components/drag_and_drop/droppable.js +2 -1
- package/lib/components/empty_prompt/empty_prompt.js +1 -0
- package/lib/components/error_boundary/error_boundary.js +1 -0
- package/lib/components/expression/expression.js +1 -0
- package/lib/components/expression/expression.styles.js +12 -30
- package/lib/components/facet/facet_button.js +6 -4
- package/lib/components/facet/facet_group.js +1 -0
- package/lib/components/filter_group/filter_group.js +1 -0
- package/lib/components/filter_group/filter_select_item.js +2 -1
- package/lib/components/flex/flex_grid.js +1 -0
- package/lib/components/flex/flex_group.js +2 -1
- package/lib/components/flex/flex_item.js +1 -0
- package/lib/components/flyout/flyout.js +6 -33
- package/lib/components/flyout/flyout_body.js +1 -0
- package/lib/components/flyout/flyout_footer.js +2 -1
- package/lib/components/flyout/flyout_header.js +1 -0
- package/lib/components/focus_trap/focus_trap.js +1 -0
- package/lib/components/form/checkbox/checkbox.js +4 -2
- package/lib/components/form/checkbox/checkbox_group.js +2 -0
- package/lib/components/form/described_form_group/described_form_group.js +1 -0
- package/lib/components/form/field_number/field_number.js +1 -0
- package/lib/components/form/field_password/field_password.js +1 -0
- package/lib/components/form/field_search/field_search.js +2 -1
- package/lib/components/form/field_text/field_text.js +1 -0
- package/lib/components/form/file_picker/file_picker.js +2 -1
- package/lib/components/form/form.js +1 -0
- package/lib/components/form/form_control_layout/form_control_layout.js +2 -0
- package/lib/components/form/form_control_layout/form_control_layout_clear_button.js +1 -0
- package/lib/components/form/form_control_layout/form_control_layout_custom_icon.js +1 -0
- package/lib/components/form/form_control_layout/form_control_layout_icons.js +1 -0
- package/lib/components/form/form_error_text/form_error_text.js +2 -1
- package/lib/components/form/form_fieldset/form_fieldset.js +3 -1
- package/lib/components/form/form_fieldset/form_legend.js +1 -0
- package/lib/components/form/form_help_text/form_help_text.js +2 -1
- package/lib/components/form/form_label/form_label.js +2 -1
- package/lib/components/form/form_row/form_row.js +1 -0
- package/lib/components/form/radio/radio.js +3 -1
- package/lib/components/form/radio/radio_group.js +2 -0
- package/lib/components/form/range/dual_range.js +2 -1
- package/lib/components/form/range/range.js +4 -2
- package/lib/components/form/range/range_levels.js +2 -1
- package/lib/components/form/range/range_slider.js +1 -0
- package/lib/components/form/range/range_thumb.js +2 -1
- package/lib/components/form/range/range_track.js +2 -1
- package/lib/components/form/range/range_wrapper.js +2 -1
- package/lib/components/form/select/select.js +1 -0
- package/lib/components/form/super_select/super_select.js +1 -0
- package/lib/components/form/switch/switch.js +3 -1
- package/lib/components/form/text_area/text_area.js +1 -0
- package/lib/components/form/validatable_control/validatable_control.js +1 -0
- package/lib/components/header/header.js +3 -2
- package/lib/components/header/header_alert/header_alert.js +1 -0
- package/lib/components/header/header_breadcrumbs/header_breadcrumbs.js +2 -0
- package/lib/components/header/header_links/header_link.js +7 -3
- package/lib/components/header/header_links/header_links.js +8 -1
- package/lib/components/header/header_logo.js +1 -0
- package/lib/components/header/header_section/header_section.js +1 -0
- package/lib/components/header/header_section/header_section_item.js +1 -0
- package/lib/components/health/health.js +1 -0
- package/lib/components/highlight/highlight.js +1 -0
- package/lib/components/horizontal_rule/horizontal_rule.js +2 -1
- package/lib/components/icon/icon.js +1 -0
- package/lib/components/image/image.js +1 -0
- package/lib/components/image/image_button.styles.js +1 -1
- package/lib/components/image/image_wrapper.styles.js +2 -2
- package/lib/components/key_pad_menu/key_pad_menu.js +1 -0
- package/lib/components/key_pad_menu/key_pad_menu_item.js +1 -0
- package/lib/components/link/link.js +1 -0
- package/lib/components/link/link.styles.js +6 -5
- package/lib/components/list_group/list_group.js +5 -1
- package/lib/components/list_group/list_group_item.js +4 -1
- package/lib/components/list_group/pinnable_list_group/pinnable_list_group.js +8 -2
- package/lib/components/loading/loading_chart.js +1 -0
- package/lib/components/loading/loading_chart.styles.js +16 -25
- package/lib/components/loading/loading_content.js +1 -0
- package/lib/components/loading/loading_content.styles.js +1 -1
- package/lib/components/loading/loading_elastic.js +1 -0
- package/lib/components/loading/loading_logo.js +1 -0
- package/lib/components/loading/loading_logo.styles.js +4 -4
- package/lib/components/loading/loading_spinner.js +1 -0
- package/lib/components/loading/loading_spinner.styles.js +5 -5
- package/lib/components/mark/mark.js +1 -0
- package/lib/components/markdown_editor/markdown_editor.js +2 -0
- package/lib/components/markdown_editor/markdown_editor_text_area.js +1 -0
- package/lib/components/markdown_editor/markdown_editor_toolbar.js +3 -0
- package/lib/components/markdown_editor/markdown_format.js +1 -0
- package/lib/components/modal/confirm_modal.js +1 -1
- package/lib/components/modal/modal_body.js +2 -1
- package/lib/components/modal/modal_footer.js +2 -1
- package/lib/components/modal/modal_header.js +2 -1
- package/lib/components/modal/modal_header_title.js +2 -1
- package/lib/components/notification/notification_event.js +9 -4
- package/lib/components/notification/notification_event_read_button.js +3 -1
- package/lib/components/overlay_mask/overlay_mask.js +3 -1
- package/lib/components/page/page.js +1 -0
- package/lib/components/page/page_content/page_content.js +1 -0
- package/lib/components/page/page_content/page_content_body.js +1 -0
- package/lib/components/page/page_content/page_content_header.js +2 -1
- package/lib/components/page/page_content/page_content_header_section.js +2 -1
- package/lib/components/page/page_header/page_header.js +1 -0
- package/lib/components/page/page_header/page_header_content.js +4 -0
- package/lib/components/page/page_header/page_header_section.js +2 -1
- package/lib/components/page/page_section/page_section.js +1 -0
- package/lib/components/page/page_side_bar/page_side_bar.js +2 -1
- package/lib/components/page/page_sidebar/page_sidebar.js +5 -2
- package/lib/components/page/page_template.js +8 -2
- package/lib/components/page_template/empty_prompt/page_empty_prompt.js +1 -0
- package/lib/components/page_template/inner/page_inner.styles.js +2 -2
- package/lib/components/page_template/outer/page_outer.js +2 -1
- package/lib/components/page_template/outer/page_outer.styles.js +4 -1
- package/lib/components/page_template/page_template.js +9 -2
- package/lib/components/pagination/pagination.js +1 -0
- package/lib/components/panel/panel.js +3 -2
- package/lib/components/panel/{panel.style.js → panel.styles.js} +1 -1
- package/lib/components/panel/split_panel/split_panel.js +2 -1
- package/lib/components/popover/input_popover.js +1 -0
- package/lib/components/popover/popover.js +10 -2
- package/lib/components/popover/popover_arrow/_popover_arrow.js +1 -0
- package/lib/components/popover/popover_footer.js +1 -0
- package/lib/components/popover/popover_panel/_popover_panel.js +1 -0
- package/lib/components/popover/popover_panel/_popover_panel.styles.js +5 -3
- package/lib/components/popover/popover_title.js +1 -0
- package/lib/components/progress/progress.js +1 -0
- package/lib/components/progress/progress.styles.js +2 -2
- package/lib/components/provider/cache/cache_provider.js +11 -3
- package/lib/components/resizable_container/resizable_button.js +2 -1
- package/lib/components/resizable_container/resizable_container.js +2 -1
- package/lib/components/resizable_container/resizable_panel.js +2 -1
- package/lib/components/search_bar/search_bar.js +3 -1
- package/lib/components/selectable/selectable.js +2 -0
- package/lib/components/selectable/selectable_list/selectable_list.js +4 -0
- package/lib/components/selectable/selectable_list/selectable_list_item.js +2 -0
- package/lib/components/selectable/selectable_message/selectable_message.js +1 -0
- package/lib/components/selectable/selectable_templates/selectable_template_sitewide.js +5 -1
- package/lib/components/side_nav/side_nav.js +1 -0
- package/lib/components/spacer/spacer.js +1 -0
- package/lib/components/stat/stat.js +1 -0
- package/lib/components/steps/step.js +1 -0
- package/lib/components/steps/step_horizontal.js +2 -1
- package/lib/components/steps/step_number.js +2 -1
- package/lib/components/steps/steps.js +2 -1
- package/lib/components/steps/steps_horizontal.js +2 -1
- package/lib/components/steps/sub_steps.js +2 -1
- package/lib/components/suggest/suggest.js +2 -0
- package/lib/components/suggest/suggest_item.js +1 -0
- package/lib/components/table/mobile/table_header_mobile.js +2 -1
- package/lib/components/table/mobile/table_sort_mobile_item.js +2 -1
- package/lib/components/table/table.js +2 -1
- package/lib/components/table/table_body.js +1 -0
- package/lib/components/table/table_footer.js +2 -1
- package/lib/components/table/table_footer_cell.js +1 -0
- package/lib/components/table/table_header.js +1 -0
- package/lib/components/table/table_header_button.js +1 -0
- package/lib/components/table/table_header_cell.js +1 -0
- package/lib/components/table/table_header_cell_checkbox.js +1 -0
- package/lib/components/table/table_row.js +1 -0
- package/lib/components/table/table_row_cell.js +1 -0
- package/lib/components/table/table_row_cell_checkbox.js +2 -1
- package/lib/components/tabs/tab.js +1 -0
- package/lib/components/tabs/tabbed_content/tabbed_content.js +7 -3
- package/lib/components/text/text.js +1 -0
- package/lib/components/text/text.styles.js +1 -1
- package/lib/components/text/text_align.js +1 -0
- package/lib/components/text/text_color.js +1 -0
- package/lib/components/timeline/timeline.js +4 -2
- package/lib/components/timeline/timeline_item.js +2 -1
- package/lib/components/title/title.js +1 -0
- package/lib/components/title/title.styles.js +1 -1
- package/lib/components/toast/global_toast_list.js +4 -2
- package/lib/components/toast/global_toast_list.styles.js +1 -1
- package/lib/components/toast/global_toast_list_item.js +1 -0
- package/lib/components/toast/toast.js +2 -1
- package/lib/components/toast/toast.styles.js +4 -4
- package/lib/components/tool_tip/icon_tip.js +11 -1
- package/lib/components/tool_tip/tool_tip.js +18 -6
- package/lib/components/tool_tip/tool_tip_popover.js +1 -0
- package/lib/components/tour/tour.js +1 -71
- package/lib/components/tour/tour.styles.js +79 -0
- package/lib/components/tour/tour_step.js +31 -5
- package/lib/components/tour/tour_step_indicator.js +22 -19
- package/lib/components/tree_view/tree_view.js +1 -0
- package/lib/global_styling/functions/logicals.js +22 -74
- package/lib/global_styling/functions/typography.js +3 -1
- package/lib/global_styling/mixins/_color.js +1 -1
- package/lib/global_styling/mixins/_helpers.js +24 -6
- package/lib/global_styling/mixins/_responsive.js +18 -14
- package/lib/global_styling/mixins/_states.js +3 -4
- package/lib/global_styling/mixins/_typography.js +4 -1
- package/lib/global_styling/reset/global_styles.js +3 -1
- package/lib/global_styling/utility/utility.js +16 -3
- package/lib/global_styling/variables/breakpoint.js +3 -1
- package/lib/services/breakpoint/_sorting.js +53 -0
- package/lib/services/breakpoint/current_breakpoint.js +19 -5
- package/lib/services/breakpoint/index.js +4 -17
- package/lib/services/breakpoint/is_within_hooks.js +82 -0
- package/lib/services/index.js +14 -42
- package/lib/themes/amsterdam/global_styling/mixins/button.js +178 -24
- package/optimize/es/components/accessibility/screen_reader_live/screen_reader_live.js +2 -2
- package/optimize/es/components/accessibility/screen_reader_only/screen_reader_only.styles.js +2 -1
- package/optimize/es/components/accordion/accordion.js +11 -6
- package/optimize/es/components/accordion/accordion.styles.js +20 -27
- package/optimize/es/components/aspect_ratio/aspect_ratio.js +9 -18
- package/optimize/es/components/badge/beta_badge/beta_badge.js +6 -3
- package/optimize/es/components/beacon/beacon.styles.js +2 -2
- package/optimize/es/components/breadcrumbs/breadcrumb.styles.js +2 -2
- package/optimize/es/components/button/button.js +88 -100
- package/optimize/es/components/button/button_display/_button_display.js +67 -32
- package/optimize/es/components/button/button_display/_button_display.styles.js +7 -16
- package/optimize/es/components/button/button_display/_button_display_content.js +5 -2
- package/optimize/es/components/button/button_display/_button_display_content.styles.js +7 -17
- package/optimize/es/components/button/button_empty/button_empty.js +55 -47
- package/optimize/es/components/button/button_empty/index.js +1 -1
- package/optimize/es/components/button/button_group/button_group.js +2 -10
- package/optimize/es/components/button/button_group/button_group_button.js +13 -3
- package/optimize/es/components/button/button_icon/button_icon.js +54 -41
- package/optimize/es/components/call_out/call_out.styles.js +2 -1
- package/optimize/es/components/card/card.js +97 -31
- package/optimize/es/components/card/card.styles.js +136 -0
- package/optimize/es/components/card/{card_select.js → card_select/card_select.js} +16 -14
- package/optimize/es/components/card/card_select/card_select.styles.js +25 -0
- package/optimize/es/components/card/card_select/index.js +8 -0
- package/optimize/es/components/card/checkable_card/checkable_card.js +14 -9
- package/optimize/es/components/card/checkable_card/checkable_card.styles.js +22 -0
- package/optimize/es/components/collapsible_nav/collapsible_nav.js +3 -38
- package/optimize/es/components/comment_list/comment_event.styles.js +1 -1
- package/optimize/es/components/date_picker/date_picker_range.js +29 -3
- package/optimize/es/components/expression/expression.styles.js +13 -31
- package/optimize/es/components/facet/facet_button.js +5 -3
- package/optimize/es/components/flyout/flyout.js +7 -34
- package/optimize/es/components/header/header.js +2 -2
- package/optimize/es/components/image/image_button.styles.js +1 -1
- package/optimize/es/components/image/image_wrapper.styles.js +3 -3
- package/optimize/es/components/link/link.styles.js +7 -6
- package/optimize/es/components/loading/loading_chart.styles.js +16 -26
- package/optimize/es/components/loading/loading_content.styles.js +2 -2
- package/optimize/es/components/loading/loading_logo.styles.js +4 -4
- package/optimize/es/components/loading/loading_spinner.styles.js +6 -6
- package/optimize/es/components/markdown_editor/markdown_editor_toolbar.js +2 -0
- package/optimize/es/components/overlay_mask/overlay_mask.js +2 -1
- package/optimize/es/components/page/page_sidebar/page_sidebar.js +3 -1
- package/optimize/es/components/page/page_template.js +2 -2
- package/optimize/es/components/page_template/inner/page_inner.styles.js +2 -2
- package/optimize/es/components/page_template/outer/page_outer.styles.js +3 -1
- package/optimize/es/components/page_template/page_template.js +3 -1
- package/optimize/es/components/panel/panel.js +1 -1
- package/optimize/es/components/panel/{panel.style.js → panel.styles.js} +2 -2
- package/optimize/es/components/popover/popover.js +3 -1
- package/optimize/es/components/popover/popover_panel/_popover_panel.styles.js +3 -2
- package/optimize/es/components/progress/progress.styles.js +2 -2
- package/optimize/es/components/provider/cache/cache_provider.js +9 -3
- package/optimize/es/components/text/text.styles.js +1 -1
- package/optimize/es/components/title/title.styles.js +2 -2
- package/optimize/es/components/toast/global_toast_list.styles.js +2 -2
- package/optimize/es/components/toast/toast.styles.js +4 -4
- package/optimize/es/components/tool_tip/tool_tip.js +7 -5
- package/optimize/es/components/tour/tour.styles.js +57 -0
- package/optimize/es/components/tour/tour_step.js +30 -6
- package/optimize/es/components/tour/tour_step_indicator.js +19 -12
- package/optimize/es/global_styling/functions/logicals.js +16 -72
- package/optimize/es/global_styling/functions/typography.js +2 -1
- package/optimize/es/global_styling/mixins/_color.js +1 -1
- package/optimize/es/global_styling/mixins/_helpers.js +18 -5
- package/optimize/es/global_styling/mixins/_responsive.js +18 -14
- package/optimize/es/global_styling/mixins/_states.js +3 -4
- package/optimize/es/global_styling/mixins/_typography.js +3 -1
- package/optimize/es/global_styling/reset/global_styles.js +2 -1
- package/optimize/es/global_styling/utility/utility.js +10 -2
- package/optimize/es/global_styling/variables/breakpoint.js +2 -1
- package/optimize/es/services/breakpoint/_sorting.js +31 -0
- package/optimize/es/services/breakpoint/current_breakpoint.js +19 -6
- package/optimize/es/services/breakpoint/index.js +2 -2
- package/optimize/es/services/breakpoint/is_within_hooks.js +67 -0
- package/optimize/es/services/index.js +1 -1
- package/optimize/es/themes/amsterdam/global_styling/mixins/button.js +155 -16
- package/optimize/lib/components/accessibility/screen_reader_live/screen_reader_live.js +2 -2
- package/optimize/lib/components/accessibility/screen_reader_only/screen_reader_only.styles.js +3 -1
- package/optimize/lib/components/accordion/accordion.js +12 -6
- package/optimize/lib/components/accordion/accordion.styles.js +20 -26
- package/optimize/lib/components/aspect_ratio/aspect_ratio.js +9 -20
- package/optimize/lib/components/badge/beta_badge/beta_badge.js +6 -3
- package/optimize/lib/components/beacon/beacon.styles.js +1 -1
- package/optimize/lib/components/breadcrumbs/breadcrumb.styles.js +2 -2
- package/optimize/lib/components/button/button.js +92 -103
- package/optimize/lib/components/button/button_display/_button_display.js +71 -25
- package/optimize/lib/components/button/button_display/_button_display.styles.js +7 -16
- package/optimize/lib/components/button/button_display/_button_display_content.js +6 -2
- package/optimize/lib/components/button/button_display/_button_display_content.styles.js +7 -17
- package/optimize/lib/components/button/button_empty/button_empty.js +59 -50
- package/optimize/lib/components/button/button_empty/index.js +0 -6
- package/optimize/lib/components/button/button_group/button_group.js +2 -10
- package/optimize/lib/components/button/button_group/button_group_button.js +15 -3
- package/optimize/lib/components/button/button_icon/button_icon.js +54 -41
- package/optimize/lib/components/call_out/call_out.styles.js +2 -1
- package/optimize/lib/components/card/card.js +97 -30
- package/optimize/lib/components/card/card.styles.js +146 -0
- package/optimize/lib/components/card/{card_select.js → card_select/card_select.js} +16 -14
- package/optimize/lib/components/card/card_select/card_select.styles.js +27 -0
- package/optimize/lib/components/card/card_select/index.js +19 -0
- package/optimize/lib/components/card/checkable_card/checkable_card.js +16 -9
- package/optimize/lib/components/card/checkable_card/checkable_card.styles.js +33 -0
- package/optimize/lib/components/collapsible_nav/collapsible_nav.js +1 -37
- package/optimize/lib/components/comment_list/comment_event.styles.js +1 -1
- package/optimize/lib/components/date_picker/date_picker_range.js +29 -3
- package/optimize/lib/components/expression/expression.styles.js +12 -30
- package/optimize/lib/components/facet/facet_button.js +4 -2
- package/optimize/lib/components/flyout/flyout.js +6 -33
- package/optimize/lib/components/header/header.js +2 -2
- package/optimize/lib/components/image/image_button.styles.js +1 -1
- package/optimize/lib/components/image/image_wrapper.styles.js +2 -2
- package/optimize/lib/components/link/link.styles.js +6 -5
- package/optimize/lib/components/loading/loading_chart.styles.js +16 -25
- package/optimize/lib/components/loading/loading_content.styles.js +1 -1
- package/optimize/lib/components/loading/loading_logo.styles.js +4 -4
- package/optimize/lib/components/loading/loading_spinner.styles.js +5 -5
- package/optimize/lib/components/markdown_editor/markdown_editor_toolbar.js +2 -0
- package/optimize/lib/components/overlay_mask/overlay_mask.js +2 -1
- package/optimize/lib/components/page/page_sidebar/page_sidebar.js +3 -1
- package/optimize/lib/components/page/page_template.js +1 -1
- package/optimize/lib/components/page_template/inner/page_inner.styles.js +2 -2
- package/optimize/lib/components/page_template/outer/page_outer.styles.js +4 -1
- package/optimize/lib/components/page_template/page_template.js +3 -1
- package/optimize/lib/components/panel/panel.js +1 -1
- package/{test-env/components/panel/panel.style.js → optimize/lib/components/panel/panel.styles.js} +1 -1
- package/optimize/lib/components/popover/popover.js +3 -1
- package/optimize/lib/components/popover/popover_panel/_popover_panel.styles.js +5 -3
- package/optimize/lib/components/progress/progress.styles.js +2 -2
- package/optimize/lib/components/provider/cache/cache_provider.js +11 -3
- package/optimize/lib/components/text/text.styles.js +1 -1
- package/optimize/lib/components/title/title.styles.js +1 -1
- package/optimize/lib/components/toast/global_toast_list.styles.js +1 -1
- package/optimize/lib/components/toast/toast.styles.js +4 -4
- package/optimize/lib/components/tool_tip/tool_tip.js +7 -5
- package/optimize/lib/components/tour/tour.styles.js +79 -0
- package/optimize/lib/components/tour/tour_step.js +30 -5
- package/optimize/lib/components/tour/tour_step_indicator.js +20 -17
- package/optimize/lib/global_styling/functions/logicals.js +28 -74
- package/optimize/lib/global_styling/functions/typography.js +3 -1
- package/optimize/lib/global_styling/mixins/_color.js +1 -1
- package/optimize/lib/global_styling/mixins/_helpers.js +24 -6
- package/optimize/lib/global_styling/mixins/_responsive.js +18 -14
- package/optimize/lib/global_styling/mixins/_states.js +3 -4
- package/optimize/lib/global_styling/mixins/_typography.js +4 -1
- package/optimize/lib/global_styling/reset/global_styles.js +3 -1
- package/optimize/lib/global_styling/utility/utility.js +16 -3
- package/optimize/lib/global_styling/variables/breakpoint.js +3 -1
- package/optimize/lib/services/breakpoint/_sorting.js +45 -0
- package/optimize/lib/services/breakpoint/current_breakpoint.js +19 -5
- package/optimize/lib/services/breakpoint/index.js +4 -17
- package/optimize/lib/services/breakpoint/is_within_hooks.js +82 -0
- package/optimize/lib/services/index.js +14 -42
- package/optimize/lib/themes/amsterdam/global_styling/mixins/button.js +170 -17
- package/package.json +3 -2
- package/src/components/badge/beta_badge/_beta_badge.scss +5 -1
- package/src/components/button/_index.scss +0 -1
- package/src/components/button/button_empty/_button_empty.scss +4 -48
- package/src/components/button/button_group/_button_group.scss +0 -1
- package/src/components/button/button_group/_button_group_button.scss +55 -83
- package/src/components/button/button_icon/_button_icon.scss +3 -103
- package/src/components/control_bar/_control_bar.scss +2 -6
- package/src/components/flyout/_flyout.scss +4 -1
- package/src/components/index.scss +0 -2
- package/src/global_styling/mixins/_button.scss +55 -11
- package/src/global_styling/mixins/_helpers.scss +9 -0
- package/src/global_styling/mixins/_index.scss +0 -1
- package/src/global_styling/utility/_utility.scss +0 -127
- package/src/themes/amsterdam/global_styling/mixins/_index.scss +0 -2
- package/src/themes/amsterdam/overrides/_header.scss +0 -2
- package/src/themes/amsterdam/overrides/_index.scss +0 -4
- package/test-env/components/accessibility/screen_reader_live/screen_reader_live.js +2 -2
- package/test-env/components/accessibility/screen_reader_only/screen_reader_only.styles.js +3 -1
- package/test-env/components/accessibility/skip_link/skip_link.js +5 -53
- package/test-env/components/accordion/accordion.js +21 -8
- package/test-env/components/accordion/accordion.styles.js +20 -26
- package/test-env/components/aspect_ratio/aspect_ratio.js +10 -20
- package/test-env/components/avatar/avatar.js +1 -0
- package/test-env/components/badge/badge.js +1 -0
- package/test-env/components/badge/badge_group/badge_group.js +1 -0
- package/test-env/components/badge/beta_badge/beta_badge.js +17 -3
- package/test-env/components/badge/notification_badge/badge_notification.js +2 -1
- package/test-env/components/basic_table/basic_table.js +6 -3
- package/test-env/components/basic_table/collapsed_item_actions.js +1 -1
- package/test-env/components/basic_table/in_memory_table.js +9 -4
- package/test-env/components/beacon/beacon.js +1 -0
- package/test-env/components/beacon/beacon.styles.js +1 -1
- package/test-env/components/bottom_bar/bottom_bar.js +2 -0
- package/test-env/components/breadcrumbs/breadcrumb.js +1 -0
- package/test-env/components/breadcrumbs/breadcrumb.styles.js +2 -2
- package/test-env/components/breadcrumbs/breadcrumbs.js +2 -0
- package/test-env/components/button/_button_content_deprecated.js +3 -1
- package/test-env/components/button/button.js +111 -221
- package/test-env/components/button/button_display/_button_display.js +95 -32
- package/test-env/components/button/button_display/_button_display.styles.js +7 -16
- package/test-env/components/button/button_display/_button_display_content.js +10 -4
- package/test-env/components/button/button_display/_button_display_content.styles.js +7 -17
- package/test-env/components/button/button_empty/button_empty.js +67 -54
- package/test-env/components/button/button_empty/index.js +0 -6
- package/test-env/components/button/button_group/button_group.js +8 -13
- package/test-env/components/button/button_group/button_group_button.js +18 -4
- package/test-env/components/button/button_icon/button_icon.js +62 -42
- package/test-env/components/call_out/call_out.js +1 -0
- package/test-env/components/call_out/call_out.styles.js +2 -1
- package/test-env/components/card/card.js +173 -87
- package/test-env/components/card/card.styles.js +146 -0
- package/test-env/components/card/card_select/card_select.js +141 -0
- package/test-env/components/card/card_select/card_select.styles.js +27 -0
- package/test-env/components/card/card_select/index.js +19 -0
- package/test-env/components/card/checkable_card/checkable_card.js +16 -9
- package/test-env/components/card/checkable_card/checkable_card.styles.js +33 -0
- package/test-env/components/collapsible_nav/collapsible_nav.js +6 -40
- package/test-env/components/collapsible_nav/collapsible_nav_group/collapsible_nav_group.js +9 -1
- package/test-env/components/color_picker/color_palette_display/color_palette_display.js +1 -0
- package/test-env/components/color_picker/color_palette_display/color_palette_display_fixed.js +1 -0
- package/test-env/components/color_picker/color_palette_display/color_palette_display_gradient.js +1 -0
- package/test-env/components/color_picker/color_palette_picker/color_palette_picker.js +7 -3
- package/test-env/components/color_picker/color_picker.js +1 -0
- package/test-env/components/color_picker/color_picker_swatch.js +1 -0
- package/test-env/components/color_picker/color_stops/color_stop_thumb.js +1 -0
- package/test-env/components/color_picker/color_stops/color_stops.js +2 -1
- package/test-env/components/color_picker/hue.js +1 -0
- package/test-env/components/color_picker/saturation.js +1 -0
- package/test-env/components/combo_box/combo_box.js +2 -1
- package/test-env/components/combo_box/combo_box_input/combo_box_input.js +6 -3
- package/test-env/components/combo_box/combo_box_input/combo_box_pill.js +6 -3
- package/test-env/components/combo_box/combo_box_options_list/combo_box_option.js +6 -3
- package/test-env/components/combo_box/combo_box_options_list/combo_box_options_list.js +13 -6
- package/test-env/components/comment_list/comment.js +1 -0
- package/test-env/components/comment_list/comment_event.js +2 -1
- package/test-env/components/comment_list/comment_event.styles.js +1 -1
- package/test-env/components/comment_list/comment_list.js +2 -0
- package/test-env/components/comment_list/comment_timeline.js +2 -1
- package/test-env/components/context_menu/context_menu.js +3 -1
- package/test-env/components/context_menu/context_menu_item.js +1 -0
- package/test-env/components/context_menu/context_menu_panel.js +1 -0
- package/test-env/components/control_bar/control_bar.js +3 -0
- package/test-env/components/copy/copy.js +2 -1
- package/test-env/components/datagrid/body/data_grid_body.js +19 -6
- package/test-env/components/datagrid/body/data_grid_cell.js +37 -12
- package/test-env/components/datagrid/body/header/data_grid_header_cell.js +19 -6
- package/test-env/components/datagrid/body/header/data_grid_header_row.js +20 -6
- package/test-env/components/datagrid/data_grid.js +20 -6
- package/test-env/components/datagrid/utils/in_memory.js +19 -6
- package/test-env/components/date_picker/auto_refresh/auto_refresh.js +6 -3
- package/test-env/components/date_picker/date_picker.js +1 -0
- package/test-env/components/date_picker/date_picker_range.js +45 -4
- package/test-env/components/date_picker/super_date_picker/super_date_picker.js +19 -1
- package/test-env/components/date_picker/super_date_picker/super_update_button.js +11 -1
- package/test-env/components/description_list/description_list.js +5 -2
- package/test-env/components/description_list/description_list_description.js +2 -1
- package/test-env/components/description_list/description_list_title.js +2 -1
- package/test-env/components/drag_and_drop/draggable.js +2 -1
- package/test-env/components/drag_and_drop/droppable.js +2 -1
- package/test-env/components/empty_prompt/empty_prompt.js +1 -0
- package/test-env/components/error_boundary/error_boundary.js +1 -0
- package/test-env/components/expression/expression.js +1 -0
- package/test-env/components/expression/expression.styles.js +12 -30
- package/test-env/components/facet/facet_button.js +6 -4
- package/test-env/components/facet/facet_group.js +1 -0
- package/test-env/components/filter_group/filter_group.js +1 -0
- package/test-env/components/filter_group/filter_select_item.js +2 -1
- package/test-env/components/flex/flex_grid.js +1 -0
- package/test-env/components/flex/flex_group.js +2 -1
- package/test-env/components/flex/flex_item.js +1 -0
- package/test-env/components/flyout/flyout_body.js +1 -0
- package/test-env/components/flyout/flyout_footer.js +2 -1
- package/test-env/components/flyout/flyout_header.js +1 -0
- package/test-env/components/form/checkbox/checkbox.js +4 -2
- package/test-env/components/form/checkbox/checkbox_group.js +2 -0
- package/test-env/components/form/described_form_group/described_form_group.js +1 -0
- package/test-env/components/form/field_number/field_number.js +1 -0
- package/test-env/components/form/field_password/field_password.js +1 -0
- package/test-env/components/form/field_search/field_search.js +2 -1
- package/test-env/components/form/field_text/field_text.js +1 -0
- package/test-env/components/form/file_picker/file_picker.js +2 -1
- package/test-env/components/form/form.js +1 -0
- package/test-env/components/form/form_control_layout/form_control_layout.js +2 -0
- package/test-env/components/form/form_control_layout/form_control_layout_clear_button.js +1 -0
- package/test-env/components/form/form_control_layout/form_control_layout_custom_icon.js +1 -0
- package/test-env/components/form/form_control_layout/form_control_layout_icons.js +1 -0
- package/test-env/components/form/form_error_text/form_error_text.js +2 -1
- package/test-env/components/form/form_fieldset/form_fieldset.js +3 -1
- package/test-env/components/form/form_fieldset/form_legend.js +1 -0
- package/test-env/components/form/form_help_text/form_help_text.js +2 -1
- package/test-env/components/form/form_label/form_label.js +2 -1
- package/test-env/components/form/form_row/form_row.js +1 -0
- package/test-env/components/form/radio/radio.js +3 -1
- package/test-env/components/form/radio/radio_group.js +2 -0
- package/test-env/components/form/range/dual_range.js +2 -1
- package/test-env/components/form/range/range.js +4 -2
- package/test-env/components/form/range/range_levels.js +2 -1
- package/test-env/components/form/range/range_slider.js +1 -0
- package/test-env/components/form/range/range_thumb.js +2 -1
- package/test-env/components/form/range/range_track.js +2 -1
- package/test-env/components/form/range/range_wrapper.js +2 -1
- package/test-env/components/form/select/select.js +1 -0
- package/test-env/components/form/super_select/super_select.js +1 -0
- package/test-env/components/form/switch/switch.js +3 -1
- package/test-env/components/form/text_area/text_area.js +1 -0
- package/test-env/components/form/validatable_control/validatable_control.js +1 -0
- package/test-env/components/header/header.js +3 -2
- package/test-env/components/header/header_alert/header_alert.js +1 -0
- package/test-env/components/header/header_breadcrumbs/header_breadcrumbs.js +2 -0
- package/test-env/components/header/header_links/header_link.js +7 -3
- package/test-env/components/header/header_links/header_links.js +8 -1
- package/test-env/components/header/header_logo.js +1 -0
- package/test-env/components/header/header_section/header_section.js +1 -0
- package/test-env/components/header/header_section/header_section_item.js +1 -0
- package/test-env/components/health/health.js +1 -0
- package/test-env/components/highlight/highlight.js +1 -0
- package/test-env/components/horizontal_rule/horizontal_rule.js +2 -1
- package/test-env/components/image/image.js +1 -0
- package/test-env/components/image/image_button.styles.js +1 -1
- package/test-env/components/image/image_wrapper.styles.js +2 -2
- package/test-env/components/key_pad_menu/key_pad_menu.js +1 -0
- package/test-env/components/key_pad_menu/key_pad_menu_item.js +1 -0
- package/test-env/components/link/link.js +1 -0
- package/test-env/components/link/link.styles.js +6 -5
- package/test-env/components/list_group/list_group.js +5 -1
- package/test-env/components/list_group/list_group_item.js +4 -1
- package/test-env/components/list_group/pinnable_list_group/pinnable_list_group.js +8 -2
- package/test-env/components/loading/loading_chart.js +1 -0
- package/test-env/components/loading/loading_chart.styles.js +16 -25
- package/test-env/components/loading/loading_content.js +1 -0
- package/test-env/components/loading/loading_content.styles.js +1 -1
- package/test-env/components/loading/loading_elastic.js +1 -0
- package/test-env/components/loading/loading_logo.js +1 -0
- package/test-env/components/loading/loading_logo.styles.js +4 -4
- package/test-env/components/loading/loading_spinner.js +1 -0
- package/test-env/components/loading/loading_spinner.styles.js +5 -5
- package/test-env/components/mark/mark.js +1 -0
- package/test-env/components/markdown_editor/markdown_editor.js +2 -0
- package/test-env/components/markdown_editor/markdown_editor_text_area.js +1 -0
- package/test-env/components/markdown_editor/markdown_editor_toolbar.js +3 -0
- package/test-env/components/markdown_editor/markdown_format.js +1 -0
- package/test-env/components/modal/confirm_modal.js +1 -1
- package/test-env/components/modal/modal_body.js +2 -1
- package/test-env/components/modal/modal_footer.js +2 -1
- package/test-env/components/modal/modal_header.js +2 -1
- package/test-env/components/modal/modal_header_title.js +2 -1
- package/test-env/components/notification/notification_event.js +9 -4
- package/test-env/components/notification/notification_event_read_button.js +3 -1
- package/test-env/components/overlay_mask/overlay_mask.js +3 -1
- package/test-env/components/page/page.js +1 -0
- package/test-env/components/page/page_content/page_content.js +1 -0
- package/test-env/components/page/page_content/page_content_body.js +1 -0
- package/test-env/components/page/page_content/page_content_header.js +2 -1
- package/test-env/components/page/page_content/page_content_header_section.js +2 -1
- package/test-env/components/page/page_header/page_header.js +1 -0
- package/test-env/components/page/page_header/page_header_content.js +4 -0
- package/test-env/components/page/page_header/page_header_section.js +2 -1
- package/test-env/components/page/page_section/page_section.js +1 -0
- package/test-env/components/page/page_side_bar/page_side_bar.js +2 -1
- package/test-env/components/page/page_sidebar/page_sidebar.js +5 -2
- package/test-env/components/page/page_template.js +8 -2
- package/test-env/components/page_template/empty_prompt/page_empty_prompt.js +1 -0
- package/test-env/components/page_template/inner/page_inner.styles.js +2 -2
- package/test-env/components/page_template/outer/page_outer.js +2 -1
- package/test-env/components/page_template/outer/page_outer.styles.js +4 -1
- package/test-env/components/page_template/page_template.js +9 -2
- package/test-env/components/pagination/pagination.js +1 -0
- package/test-env/components/panel/panel.js +3 -2
- package/{optimize/lib/components/panel/panel.style.js → test-env/components/panel/panel.styles.js} +1 -1
- package/test-env/components/panel/split_panel/split_panel.js +2 -1
- package/test-env/components/popover/input_popover.js +1 -0
- package/test-env/components/popover/popover.js +10 -2
- package/test-env/components/popover/popover_arrow/_popover_arrow.js +1 -0
- package/test-env/components/popover/popover_footer.js +1 -0
- package/test-env/components/popover/popover_panel/_popover_panel.js +1 -0
- package/test-env/components/popover/popover_panel/_popover_panel.styles.js +5 -3
- package/test-env/components/popover/popover_title.js +1 -0
- package/test-env/components/progress/progress.js +1 -0
- package/test-env/components/progress/progress.styles.js +2 -2
- package/test-env/components/provider/cache/cache_provider.js +11 -3
- package/test-env/components/resizable_container/resizable_button.js +2 -1
- package/test-env/components/resizable_container/resizable_container.js +2 -1
- package/test-env/components/resizable_container/resizable_panel.js +2 -1
- package/test-env/components/search_bar/search_bar.js +3 -1
- package/test-env/components/selectable/selectable.js +2 -0
- package/test-env/components/selectable/selectable_list/selectable_list.js +4 -0
- package/test-env/components/selectable/selectable_list/selectable_list_item.js +2 -0
- package/test-env/components/selectable/selectable_message/selectable_message.js +1 -0
- package/test-env/components/selectable/selectable_templates/selectable_template_sitewide.js +5 -1
- package/test-env/components/side_nav/side_nav.js +1 -0
- package/test-env/components/spacer/spacer.js +1 -0
- package/test-env/components/stat/stat.js +1 -0
- package/test-env/components/steps/step.js +1 -0
- package/test-env/components/steps/step_horizontal.js +2 -1
- package/test-env/components/steps/step_number.js +2 -1
- package/test-env/components/steps/steps.js +2 -1
- package/test-env/components/steps/steps_horizontal.js +2 -1
- package/test-env/components/steps/sub_steps.js +2 -1
- package/test-env/components/suggest/suggest.js +2 -0
- package/test-env/components/suggest/suggest_item.js +1 -0
- package/test-env/components/table/mobile/table_header_mobile.js +2 -1
- package/test-env/components/table/mobile/table_sort_mobile_item.js +2 -1
- package/test-env/components/table/table.js +2 -1
- package/test-env/components/table/table_body.js +1 -0
- package/test-env/components/table/table_footer.js +2 -1
- package/test-env/components/table/table_footer_cell.js +1 -0
- package/test-env/components/table/table_header.js +1 -0
- package/test-env/components/table/table_header_button.js +1 -0
- package/test-env/components/table/table_header_cell.js +1 -0
- package/test-env/components/table/table_header_cell_checkbox.js +1 -0
- package/test-env/components/table/table_row.js +1 -0
- package/test-env/components/table/table_row_cell.js +1 -0
- package/test-env/components/table/table_row_cell_checkbox.js +2 -1
- package/test-env/components/tabs/tab.js +1 -0
- package/test-env/components/tabs/tabbed_content/tabbed_content.js +7 -3
- package/test-env/components/text/text.js +1 -0
- package/test-env/components/text/text.styles.js +1 -1
- package/test-env/components/text/text_align.js +1 -0
- package/test-env/components/text/text_color.js +1 -0
- package/test-env/components/timeline/timeline.js +4 -2
- package/test-env/components/timeline/timeline_item.js +2 -1
- package/test-env/components/title/title.js +1 -0
- package/test-env/components/title/title.styles.js +1 -1
- package/test-env/components/toast/global_toast_list.js +4 -2
- package/test-env/components/toast/global_toast_list.styles.js +1 -1
- package/test-env/components/toast/global_toast_list_item.js +1 -0
- package/test-env/components/toast/toast.js +2 -1
- package/test-env/components/toast/toast.styles.js +4 -4
- package/test-env/components/tool_tip/icon_tip.js +11 -1
- package/test-env/components/tool_tip/tool_tip.js +18 -6
- package/test-env/components/tool_tip/tool_tip_popover.js +1 -0
- package/test-env/components/tour/tour.js +1 -71
- package/test-env/components/tour/tour.styles.js +79 -0
- package/test-env/components/tour/tour_step.js +31 -5
- package/test-env/components/tour/tour_step_indicator.js +24 -20
- package/test-env/components/tree_view/tree_view.js +1 -0
- package/test-env/global_styling/functions/logicals.js +28 -74
- package/test-env/global_styling/functions/typography.js +3 -1
- package/test-env/global_styling/mixins/_color.js +1 -1
- package/test-env/global_styling/mixins/_helpers.js +24 -6
- package/test-env/global_styling/mixins/_responsive.js +18 -14
- package/test-env/global_styling/mixins/_states.js +3 -4
- package/test-env/global_styling/mixins/_typography.js +4 -1
- package/test-env/global_styling/reset/global_styles.js +3 -1
- package/test-env/global_styling/utility/utility.js +16 -3
- package/test-env/global_styling/variables/breakpoint.js +3 -1
- package/test-env/services/breakpoint/_sorting.js +45 -0
- package/test-env/services/breakpoint/current_breakpoint.js +19 -5
- package/test-env/services/breakpoint/current_breakpoint_hook.js +9 -2
- package/test-env/services/breakpoint/index.js +4 -17
- package/test-env/services/breakpoint/is_within_hooks.js +82 -0
- package/test-env/services/index.js +14 -42
- package/test-env/themes/amsterdam/global_styling/mixins/button.js +170 -17
- package/es/components/card/card_select.js +0 -174
- package/es/services/breakpoint/breakpoint.js +0 -86
- package/es/services/breakpoint/useIsWithinBreakpoints.js +0 -24
- package/lib/components/card/card_select.js +0 -185
- package/lib/services/breakpoint/breakpoint.js +0 -105
- package/lib/services/breakpoint/useIsWithinBreakpoints.js +0 -34
- package/optimize/es/services/breakpoint/breakpoint.js +0 -86
- package/optimize/es/services/breakpoint/useIsWithinBreakpoints.js +0 -24
- package/optimize/lib/services/breakpoint/breakpoint.js +0 -105
- package/optimize/lib/services/breakpoint/useIsWithinBreakpoints.js +0 -34
- package/src/components/button/_button.scss +0 -143
- package/src/components/button/button_icon/_variables.scss +0 -11
- package/src/components/card/_card.scss +0 -239
- package/src/components/card/_card_select.scss +0 -21
- package/src/components/card/_index.scss +0 -5
- package/src/components/card/_mixins.scss +0 -11
- package/src/components/card/_variables.scss +0 -25
- package/src/components/card/checkable_card/_checkable_card.scss +0 -29
- package/src/components/card/checkable_card/_index.scss +0 -1
- package/src/components/tour/_index.scss +0 -2
- package/src/components/tour/_tour.scss +0 -68
- package/src/components/tour/_tour_step_indicator.scss +0 -3
- package/src/global_styling/mixins/_beta_badge.scss +0 -30
- package/src/themes/amsterdam/global_styling/mixins/_button.scss +0 -60
- package/src/themes/amsterdam/overrides/_button.scss +0 -119
- package/src/themes/amsterdam/overrides/_button_empty.scss +0 -20
- package/src/themes/amsterdam/overrides/_button_group.scss +0 -91
- package/src/themes/amsterdam/overrides/_card.scss +0 -6
- package/test-env/components/card/card_select.js +0 -182
- package/test-env/services/breakpoint/breakpoint.js +0 -105
- package/test-env/services/breakpoint/useIsWithinBreakpoints.js +0 -34
package/eui.d.ts
CHANGED
|
@@ -9,72 +9,6 @@ declare module '@elastic/eui/src/services/theme/clone_element' {
|
|
|
9
9
|
*/
|
|
10
10
|
export const cloneElementWithCss: (element: any, props: any) => React.ReactElement;
|
|
11
11
|
|
|
12
|
-
}
|
|
13
|
-
declare module '@elastic/eui/src/components/accessibility/screen_reader_only/screen_reader_only.styles' {
|
|
14
|
-
export const euiScreenReaderOnly: () => string;
|
|
15
|
-
export const euiScreenReaderOnlyStyles: (showOnFocus?: boolean | undefined) => {
|
|
16
|
-
euiScreenReaderOnly: import("@emotion/utils").SerializedStyles;
|
|
17
|
-
};
|
|
18
|
-
|
|
19
|
-
}
|
|
20
|
-
declare module '@elastic/eui/src/components/accessibility/screen_reader_only/screen_reader_only' {
|
|
21
|
-
import { ReactElement, FunctionComponent } from 'react';
|
|
22
|
-
export interface EuiScreenReaderOnlyProps {
|
|
23
|
-
/**
|
|
24
|
-
* ReactElement to render as this component's content
|
|
25
|
-
*/
|
|
26
|
-
children: ReactElement;
|
|
27
|
-
/**
|
|
28
|
-
* For keyboard navigation, force content to display visually upon focus.
|
|
29
|
-
*/
|
|
30
|
-
showOnFocus?: boolean;
|
|
31
|
-
className?: string;
|
|
32
|
-
}
|
|
33
|
-
export const EuiScreenReaderOnly: FunctionComponent<EuiScreenReaderOnlyProps>;
|
|
34
|
-
|
|
35
|
-
}
|
|
36
|
-
declare module '@elastic/eui/src/components/accessibility/screen_reader_only' {
|
|
37
|
-
export type { EuiScreenReaderOnlyProps } from '@elastic/eui/src/components/accessibility/screen_reader_only/screen_reader_only';
|
|
38
|
-
export { EuiScreenReaderOnly } from '@elastic/eui/src/components/accessibility/screen_reader_only/screen_reader_only';
|
|
39
|
-
export { euiScreenReaderOnly } from '@elastic/eui/src/components/accessibility/screen_reader_only/screen_reader_only.styles';
|
|
40
|
-
|
|
41
|
-
}
|
|
42
|
-
declare module '@elastic/eui/src/components/accessibility/screen_reader_live/screen_reader_live' {
|
|
43
|
-
import { AriaAttributes, HTMLAttributes, FunctionComponent, ReactNode } from 'react';
|
|
44
|
-
export interface EuiScreenReaderLiveProps {
|
|
45
|
-
/**
|
|
46
|
-
* Whether to make screen readers aware of the content
|
|
47
|
-
*/
|
|
48
|
-
isActive?: boolean;
|
|
49
|
-
/**
|
|
50
|
-
* Content for screen readers to announce
|
|
51
|
-
*/
|
|
52
|
-
children?: ReactNode;
|
|
53
|
-
/**
|
|
54
|
-
* `role` attribute for both live regions.
|
|
55
|
-
*
|
|
56
|
-
* https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/ARIA_Live_Regions#roles_with_implicit_live_region_attributes
|
|
57
|
-
*/
|
|
58
|
-
role?: HTMLAttributes<HTMLDivElement>['role'];
|
|
59
|
-
/**
|
|
60
|
-
* `aria-live` attribute for both live regions
|
|
61
|
-
*/
|
|
62
|
-
'aria-live'?: AriaAttributes['aria-live'];
|
|
63
|
-
/**
|
|
64
|
-
* On `children`/text change, the region will auto-focus itself, causing screen readers
|
|
65
|
-
* to automatically read out the text content. This prop should primarily be used for
|
|
66
|
-
* navigation or page changes, where programmatically resetting focus location back to
|
|
67
|
-
* a certain part of the page is desired.
|
|
68
|
-
*/
|
|
69
|
-
focusRegionOnTextChange?: boolean;
|
|
70
|
-
}
|
|
71
|
-
export const EuiScreenReaderLive: FunctionComponent<EuiScreenReaderLiveProps>;
|
|
72
|
-
|
|
73
|
-
}
|
|
74
|
-
declare module '@elastic/eui/src/components/accessibility/screen_reader_live' {
|
|
75
|
-
export { EuiScreenReaderLive } from '@elastic/eui/src/components/accessibility/screen_reader_live/screen_reader_live';
|
|
76
|
-
export type { EuiScreenReaderLiveProps } from '@elastic/eui/src/components/accessibility/screen_reader_live/screen_reader_live';
|
|
77
|
-
|
|
78
12
|
}
|
|
79
13
|
declare module '@elastic/eui/src/services/keys' {
|
|
80
14
|
export const ENTER = "Enter";
|
|
@@ -189,13 +123,21 @@ declare module '@elastic/eui/src/services/alignment' {
|
|
|
189
123
|
export const CENTER_ALIGNMENT = "center";
|
|
190
124
|
export type HorizontalAlignment = 'left' | 'right' | 'center';
|
|
191
125
|
|
|
126
|
+
}
|
|
127
|
+
declare module '@elastic/eui/src/global_styling/variables/breakpoint' {
|
|
128
|
+
export const EuiThemeBreakpoints: readonly ["xs", "s", "m", "l", "xl"];
|
|
129
|
+
export type _EuiThemeBreakpoint = string;
|
|
130
|
+
export type _EuiThemeBreakpoints = Record<_EuiThemeBreakpoint, number>;
|
|
131
|
+
|
|
192
132
|
}
|
|
193
133
|
declare module '@elastic/eui/src/components/common' {
|
|
194
134
|
import { AnchorHTMLAttributes, ButtonHTMLAttributes, ComponentProps, Component, FunctionComponent, JSXElementConstructor, MouseEventHandler, SFC } from 'react';
|
|
135
|
+
import { Interpolation, Theme } from '@emotion/react';
|
|
195
136
|
export interface CommonProps {
|
|
196
137
|
className?: string;
|
|
197
138
|
'aria-label'?: string;
|
|
198
139
|
'data-test-subj'?: string;
|
|
140
|
+
css?: Interpolation<Theme>;
|
|
199
141
|
}
|
|
200
142
|
export type NoArgCallback<T> = () => T;
|
|
201
143
|
export const assertNever: (x: never) => never;
|
|
@@ -300,14 +242,6 @@ declare module '@elastic/eui/src/components/common' {
|
|
|
300
242
|
}; type NonAny = number | boolean | string | symbol | null;
|
|
301
243
|
export {};
|
|
302
244
|
|
|
303
|
-
}
|
|
304
|
-
declare module '@elastic/eui/src/global_styling/variables/breakpoint' {
|
|
305
|
-
export const EuiThemeBreakpoints: readonly ["xs", "s", "m", "l", "xl"];
|
|
306
|
-
export type _EuiThemeBreakpoint = typeof EuiThemeBreakpoints[number];
|
|
307
|
-
export type _EuiThemeBreakpoints = {
|
|
308
|
-
[key in _EuiThemeBreakpoint]: number;
|
|
309
|
-
};
|
|
310
|
-
|
|
311
245
|
}
|
|
312
246
|
declare module '@elastic/eui/src/global_styling/variables/animations' {
|
|
313
247
|
import { CSSProperties } from 'react';
|
|
@@ -335,6 +269,62 @@ declare module '@elastic/eui/src/global_styling/variables/animations' {
|
|
|
335
269
|
export type _EuiThemeAnimationEasings = Record<_EuiThemeAnimationEasing, CSSProperties['animationTimingFunction']>;
|
|
336
270
|
export type _EuiThemeAnimation = _EuiThemeAnimationEasings & _EuiThemeAnimationSpeeds;
|
|
337
271
|
|
|
272
|
+
}
|
|
273
|
+
declare module '@elastic/eui/src/global_styling/variables/borders' {
|
|
274
|
+
import { CSSProperties } from 'react';
|
|
275
|
+
import { ColorModeSwitch } from '@elastic/eui/src/services/theme/types';
|
|
276
|
+
export interface _EuiThemeBorderWidthValues {
|
|
277
|
+
/**
|
|
278
|
+
* Thinnest width for border
|
|
279
|
+
*/
|
|
280
|
+
thin: CSSProperties['borderWidth'];
|
|
281
|
+
/**
|
|
282
|
+
* Thickest width for border
|
|
283
|
+
*/
|
|
284
|
+
thick: CSSProperties['borderWidth'];
|
|
285
|
+
}
|
|
286
|
+
export interface _EuiThemeBorderRadiusValues {
|
|
287
|
+
/**
|
|
288
|
+
* Primary corner radius size
|
|
289
|
+
*/
|
|
290
|
+
medium: CSSProperties['borderRadius'];
|
|
291
|
+
/**
|
|
292
|
+
* Small corner radius size
|
|
293
|
+
*/
|
|
294
|
+
small: CSSProperties['borderRadius'];
|
|
295
|
+
}
|
|
296
|
+
export interface _EuiThemeBorderColorValues {
|
|
297
|
+
/**
|
|
298
|
+
* Color for all borders; Default is `colors.lightShade`
|
|
299
|
+
*/
|
|
300
|
+
color: ColorModeSwitch;
|
|
301
|
+
}
|
|
302
|
+
export interface _EuiThemeBorderValues extends _EuiThemeBorderColorValues {
|
|
303
|
+
/**
|
|
304
|
+
* Varied thicknesses for borders
|
|
305
|
+
*/
|
|
306
|
+
width: _EuiThemeBorderWidthValues;
|
|
307
|
+
/**
|
|
308
|
+
* Varied border radii
|
|
309
|
+
*/
|
|
310
|
+
radius: _EuiThemeBorderRadiusValues;
|
|
311
|
+
}
|
|
312
|
+
export interface _EuiThemeBorderTypes {
|
|
313
|
+
/**
|
|
314
|
+
* Full `border` property string computed using `border.width.thin` and `border.color`
|
|
315
|
+
*/
|
|
316
|
+
thin: CSSProperties['border'];
|
|
317
|
+
/**
|
|
318
|
+
* Full `border` property string computed using `border.width.thick` and `border.color`
|
|
319
|
+
*/
|
|
320
|
+
thick: CSSProperties['border'];
|
|
321
|
+
/**
|
|
322
|
+
* Full editable style `border` property string computed using `border.width.thick` and `border.color`
|
|
323
|
+
*/
|
|
324
|
+
editable: CSSProperties['border'];
|
|
325
|
+
}
|
|
326
|
+
export type _EuiThemeBorder = _EuiThemeBorderValues & _EuiThemeBorderTypes;
|
|
327
|
+
|
|
338
328
|
}
|
|
339
329
|
declare module '@elastic/eui/src/global_styling/variables/colors' {
|
|
340
330
|
import { ColorModeSwitch, StrictColorModeSwitch } from '@elastic/eui/src/services/theme/types';
|
|
@@ -649,143 +639,6 @@ declare module '@elastic/eui/src/services/theme/types' {
|
|
|
649
639
|
themeName: string;
|
|
650
640
|
};
|
|
651
641
|
|
|
652
|
-
}
|
|
653
|
-
declare module '@elastic/eui/src/global_styling/variables/borders' {
|
|
654
|
-
import { CSSProperties } from 'react';
|
|
655
|
-
import { ColorModeSwitch } from '@elastic/eui/src/services/theme/types';
|
|
656
|
-
export interface _EuiThemeBorderWidthValues {
|
|
657
|
-
/**
|
|
658
|
-
* Thinnest width for border
|
|
659
|
-
*/
|
|
660
|
-
thin: CSSProperties['borderWidth'];
|
|
661
|
-
/**
|
|
662
|
-
* Thickest width for border
|
|
663
|
-
*/
|
|
664
|
-
thick: CSSProperties['borderWidth'];
|
|
665
|
-
}
|
|
666
|
-
export interface _EuiThemeBorderRadiusValues {
|
|
667
|
-
/**
|
|
668
|
-
* Primary corner radius size
|
|
669
|
-
*/
|
|
670
|
-
medium: CSSProperties['borderRadius'];
|
|
671
|
-
/**
|
|
672
|
-
* Small corner radius size
|
|
673
|
-
*/
|
|
674
|
-
small: CSSProperties['borderRadius'];
|
|
675
|
-
}
|
|
676
|
-
export interface _EuiThemeBorderColorValues {
|
|
677
|
-
/**
|
|
678
|
-
* Color for all borders; Default is `colors.lightShade`
|
|
679
|
-
*/
|
|
680
|
-
color: ColorModeSwitch;
|
|
681
|
-
}
|
|
682
|
-
export interface _EuiThemeBorderValues extends _EuiThemeBorderColorValues {
|
|
683
|
-
/**
|
|
684
|
-
* Varied thicknesses for borders
|
|
685
|
-
*/
|
|
686
|
-
width: _EuiThemeBorderWidthValues;
|
|
687
|
-
/**
|
|
688
|
-
* Varied border radii
|
|
689
|
-
*/
|
|
690
|
-
radius: _EuiThemeBorderRadiusValues;
|
|
691
|
-
}
|
|
692
|
-
export interface _EuiThemeBorderTypes {
|
|
693
|
-
/**
|
|
694
|
-
* Full `border` property string computed using `border.width.thin` and `border.color`
|
|
695
|
-
*/
|
|
696
|
-
thin: CSSProperties['border'];
|
|
697
|
-
/**
|
|
698
|
-
* Full `border` property string computed using `border.width.thick` and `border.color`
|
|
699
|
-
*/
|
|
700
|
-
thick: CSSProperties['border'];
|
|
701
|
-
/**
|
|
702
|
-
* Full editable style `border` property string computed using `border.width.thick` and `border.color`
|
|
703
|
-
*/
|
|
704
|
-
editable: CSSProperties['border'];
|
|
705
|
-
}
|
|
706
|
-
export type _EuiThemeBorder = _EuiThemeBorderValues & _EuiThemeBorderTypes;
|
|
707
|
-
|
|
708
|
-
}
|
|
709
|
-
declare module '@elastic/eui/src/global_styling/variables/shadow' {
|
|
710
|
-
export const EuiThemeShadowSizes: readonly ["xs", "s", "m", "l", "xl"];
|
|
711
|
-
export type _EuiThemeShadowSize = typeof EuiThemeShadowSizes[number];
|
|
712
|
-
/**
|
|
713
|
-
* Shadow t-shirt sizes descriptions
|
|
714
|
-
*/
|
|
715
|
-
export const _EuiShadowSizesDescriptions: Record<_EuiThemeShadowSize, string>;
|
|
716
|
-
export interface _EuiThemeShadowCustomColor {
|
|
717
|
-
color?: string;
|
|
718
|
-
property?: 'box-shadow' | 'filter';
|
|
719
|
-
}
|
|
720
|
-
|
|
721
|
-
}
|
|
722
|
-
declare module '@elastic/eui/src/global_styling/variables' {
|
|
723
|
-
export * from '@elastic/eui/src/global_styling/variables/animations';
|
|
724
|
-
export * from '@elastic/eui/src/global_styling/variables/borders';
|
|
725
|
-
export * from '@elastic/eui/src/global_styling/variables/breakpoint';
|
|
726
|
-
export * from '@elastic/eui/src/global_styling/variables/colors';
|
|
727
|
-
export * from '@elastic/eui/src/global_styling/variables/levels';
|
|
728
|
-
export * from '@elastic/eui/src/global_styling/variables/size';
|
|
729
|
-
export * from '@elastic/eui/src/global_styling/variables/shadow';
|
|
730
|
-
export * from '@elastic/eui/src/global_styling/variables/states';
|
|
731
|
-
export * from '@elastic/eui/src/global_styling/variables/typography';
|
|
732
|
-
|
|
733
|
-
}
|
|
734
|
-
declare module '@elastic/eui/src/themes/amsterdam/global_styling/variables/_breakpoint' {
|
|
735
|
-
import { _EuiThemeBreakpoints } from '@elastic/eui/src/global_styling/variables';
|
|
736
|
-
export const breakpoint: _EuiThemeBreakpoints;
|
|
737
|
-
|
|
738
|
-
}
|
|
739
|
-
declare module '@elastic/eui/src/services/breakpoint/breakpoint' {
|
|
740
|
-
import { _EuiThemeBreakpoint, _EuiThemeBreakpoints } from '@elastic/eui/src/global_styling/variables/breakpoint';
|
|
741
|
-
export type EuiBreakpointSize = _EuiThemeBreakpoint;
|
|
742
|
-
export type EuiBreakpoints = _EuiThemeBreakpoints;
|
|
743
|
-
export const BREAKPOINTS: _EuiThemeBreakpoints;
|
|
744
|
-
export const BREAKPOINT_KEYS: ("s" | "xs" | "m" | "l" | "xl")[];
|
|
745
|
-
/**
|
|
746
|
-
* Given the current `width` and an object of `EuiBreakpoints`,
|
|
747
|
-
* this function returns the string that is the name of the breakpoint key
|
|
748
|
-
* that is less than or equal to the width
|
|
749
|
-
*
|
|
750
|
-
* @param {number} width Can either be the full window width or any width
|
|
751
|
-
* @param {EuiBreakpoints} breakpoints An object with keys for sizing and values for minimum width
|
|
752
|
-
* @returns {string | undefined} Name of the breakpoint key or `undefined` if a key doesn't exist
|
|
753
|
-
*/
|
|
754
|
-
export function getBreakpoint(width: number, breakpoints?: EuiBreakpoints): EuiBreakpointSize | undefined;
|
|
755
|
-
/**
|
|
756
|
-
* Given the current `width` and a max breakpoint key,
|
|
757
|
-
* this function returns true or false if the `width` falls within the max
|
|
758
|
-
* breakpoint or any breakpoints below
|
|
759
|
-
*
|
|
760
|
-
* @param {number} width Can either be the full window width or any width
|
|
761
|
-
* @param {EuiBreakpointSize | number} max The named breakpoint or custom number to check against
|
|
762
|
-
* @param {EuiBreakpoints} breakpoints An object with keys for sizing and values for minimum width
|
|
763
|
-
* @returns {boolean} Will return `false` if it can't find a value for the `max` breakpoint
|
|
764
|
-
*/
|
|
765
|
-
export function isWithinMaxBreakpoint(width: number, max: EuiBreakpointSize | number, breakpoints?: EuiBreakpoints): boolean;
|
|
766
|
-
/**
|
|
767
|
-
* Given the current `width` and a min breakpoint key,
|
|
768
|
-
* this function returns true or false if the `width` falls within the min
|
|
769
|
-
* breakpoint or any breakpoints above
|
|
770
|
-
*
|
|
771
|
-
* @param {number} width Can either be the full window width or any width
|
|
772
|
-
* @param {EuiBreakpointSize | number} min The named breakpoint or custom number to check against
|
|
773
|
-
* @param {EuiBreakpoints} breakpoints An object with keys for sizing and values for minimum width
|
|
774
|
-
* @returns {boolean} Will return `false` if it can't find a value for the `min` breakpoint
|
|
775
|
-
*/
|
|
776
|
-
export function isWithinMinBreakpoint(width: number, min: EuiBreakpointSize | number, breakpoints?: EuiBreakpoints): boolean;
|
|
777
|
-
/**
|
|
778
|
-
* Given the current `width` and an array of breakpoint keys,
|
|
779
|
-
* this function returns true or false if the `width` falls within
|
|
780
|
-
* any of the named breakpoints
|
|
781
|
-
*
|
|
782
|
-
* @param {number} width Can either be the full window width or any width
|
|
783
|
-
* @param {EuiBreakpointSize[]} sizes An array of named breakpoints
|
|
784
|
-
* @param {EuiBreakpoints} breakpoints An object with keys for sizing and values for minimum width
|
|
785
|
-
* @returns {boolean} Returns `true` if current breakpoint name is included in `sizes`
|
|
786
|
-
*/
|
|
787
|
-
export function isWithinBreakpoints(width: number, sizes: EuiBreakpointSize[], breakpoints?: EuiBreakpoints): boolean;
|
|
788
|
-
|
|
789
642
|
}
|
|
790
643
|
declare module '@elastic/eui/src/services/theme/utils' {
|
|
791
644
|
import { EuiThemeColorMode, EuiThemeColorModeStandard, EuiThemeSystem, EuiThemeShape, EuiThemeComputed } from '@elastic/eui/src/services/theme/types';
|
|
@@ -1557,415 +1410,14 @@ declare module '@elastic/eui/src/components/icon/named_colors' {
|
|
|
1557
1410
|
export function isNamedColor(name: string): boolean;
|
|
1558
1411
|
|
|
1559
1412
|
}
|
|
1560
|
-
declare module '@elastic/eui/src/
|
|
1413
|
+
declare module '@elastic/eui/src/components/icon/icon.styles' {
|
|
1561
1414
|
import { UseEuiTheme } from '@elastic/eui/src/services';
|
|
1562
|
-
export const
|
|
1563
|
-
export
|
|
1564
|
-
|
|
1565
|
-
/**
|
|
1566
|
-
* Use `opaque` for containers of unknown content.
|
|
1567
|
-
* Use `transparent` for interactive states like hover and focus.
|
|
1568
|
-
*/
|
|
1569
|
-
method?: 'opaque' | 'transparent';
|
|
1570
|
-
}
|
|
1571
|
-
export const euiBackgroundColor: ({ euiTheme, colorMode }: UseEuiTheme, color: _EuiBackgroundColor, { method }?: _EuiBackgroundColorOptions) => string;
|
|
1572
|
-
export const useEuiBackgroundColor: (color: _EuiBackgroundColor, { method }?: _EuiBackgroundColorOptions) => string;
|
|
1573
|
-
export const useEuiBackgroundColorCSS: () => {
|
|
1574
|
-
transparent: import("@emotion/utils").SerializedStyles;
|
|
1575
|
-
plain: import("@emotion/utils").SerializedStyles;
|
|
1576
|
-
subdued: import("@emotion/utils").SerializedStyles;
|
|
1415
|
+
export const iconLoadingOpacity = 0.05;
|
|
1416
|
+
export const euiIconStyles: ({ euiTheme }: UseEuiTheme) => {
|
|
1417
|
+
euiIcon: import("@emotion/utils").SerializedStyles;
|
|
1577
1418
|
accent: import("@emotion/utils").SerializedStyles;
|
|
1578
|
-
|
|
1579
|
-
|
|
1580
|
-
warning: import("@emotion/utils").SerializedStyles;
|
|
1581
|
-
danger: import("@emotion/utils").SerializedStyles;
|
|
1582
|
-
};
|
|
1583
|
-
|
|
1584
|
-
}
|
|
1585
|
-
declare module '@elastic/eui/src/global_styling/mixins/_helpers' {
|
|
1586
|
-
import { CSSProperties } from 'react';
|
|
1587
|
-
import { UseEuiTheme } from '@elastic/eui/src/services/theme';
|
|
1588
|
-
/**
|
|
1589
|
-
* Set scroll bar appearance on Chrome (and firefox).
|
|
1590
|
-
* All parameters are optional and default to specific global settings.
|
|
1591
|
-
*/
|
|
1592
|
-
export interface EuiScrollBarStyles {
|
|
1593
|
-
thumbColor?: CSSProperties['backgroundColor'];
|
|
1594
|
-
trackColor?: CSSProperties['backgroundColor'];
|
|
1595
|
-
/**
|
|
1596
|
-
* Defaults to `thin`. Use `auto` only for large page scrollbars
|
|
1597
|
-
*/
|
|
1598
|
-
width?: CSSProperties['scrollbarWidth'];
|
|
1599
|
-
/**
|
|
1600
|
-
* Overall width (height for horizontal scrollbars)
|
|
1601
|
-
*/
|
|
1602
|
-
size?: CSSProperties['width'];
|
|
1603
|
-
/**
|
|
1604
|
-
* Corner sizes are usually determined by `width` and
|
|
1605
|
-
* are used as an inset border and therefore a smaller corner size means a larger thumb
|
|
1606
|
-
*/
|
|
1607
|
-
corner?: CSSProperties['borderWidth'];
|
|
1608
|
-
}
|
|
1609
|
-
export const euiScrollBarStyles: ({ euiTheme: { colors, size } }: UseEuiTheme, { thumbColor: _thumbColor, trackColor, width, size: _size, corner: _corner, }?: EuiScrollBarStyles) => string;
|
|
1610
|
-
export const useEuiScrollBar: (options?: EuiScrollBarStyles | undefined) => string;
|
|
1611
|
-
/**
|
|
1612
|
-
* 1. Focus rings shouldn't be visible on scrollable regions, but a11y requires them to be focusable.
|
|
1613
|
-
* Browser's supporting `:focus-visible` will still show outline on keyboard focus only.
|
|
1614
|
-
* Others like Safari, won't show anything at all.
|
|
1615
|
-
*/
|
|
1616
|
-
interface _EuiYScroll {
|
|
1617
|
-
height?: CSSProperties['height'];
|
|
1618
|
-
}
|
|
1619
|
-
export const euiYScroll: (euiTheme: UseEuiTheme, { height }?: _EuiYScroll) => string;
|
|
1620
|
-
export const useEuiYScroll: ({ height }?: _EuiYScroll) => string;
|
|
1621
|
-
export const euiYScrollWithShadows: (euiTheme: UseEuiTheme, { height }?: _EuiYScroll) => string;
|
|
1622
|
-
export const useEuiYScrollWithShadows: ({ height }?: _EuiYScroll) => string;
|
|
1623
|
-
export const euiXScroll: (euiTheme: UseEuiTheme) => string;
|
|
1624
|
-
export const useEuiXScroll: () => string;
|
|
1625
|
-
export const euiXScrollWithShadows: (euiTheme: UseEuiTheme) => string;
|
|
1626
|
-
export const useEuiXScrollWithShadows: () => string;
|
|
1627
|
-
interface EuiScrollOverflowStyles {
|
|
1628
|
-
direction?: 'y' | 'x';
|
|
1629
|
-
mask?: boolean;
|
|
1630
|
-
}
|
|
1631
|
-
export const euiOverflowScroll: (euiTheme: UseEuiTheme, { direction, mask }?: EuiScrollOverflowStyles) => string;
|
|
1632
|
-
export const useEuiOverflowScroll: (direction: EuiScrollOverflowStyles['direction'], mask?: EuiScrollOverflowStyles['mask']) => string;
|
|
1633
|
-
export {};
|
|
1634
|
-
|
|
1635
|
-
}
|
|
1636
|
-
declare module '@elastic/eui/src/global_styling/functions/logicals' {
|
|
1637
|
-
/**
|
|
1638
|
-
* EUI utilizes logical CSS properties to enable directional writing-modes.
|
|
1639
|
-
* To encourage use of logical properties, we provide a few helper utilities to
|
|
1640
|
-
* convert certain directional properties to logical properties.
|
|
1641
|
-
* https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Logical_Properties
|
|
1642
|
-
*/
|
|
1643
|
-
export const logicalSide: {
|
|
1644
|
-
left: string;
|
|
1645
|
-
right: string;
|
|
1646
|
-
top: string;
|
|
1647
|
-
bottom: string;
|
|
1648
|
-
horizontal: string;
|
|
1649
|
-
vertical: string;
|
|
1650
|
-
};
|
|
1651
|
-
export const LOGICAL_SIDES: ("left" | "right" | "top" | "bottom" | "horizontal" | "vertical")[];
|
|
1652
|
-
export type LogicalSides = typeof LOGICAL_SIDES[number];
|
|
1653
|
-
export const logicals: {
|
|
1654
|
-
'border-horizontal': string;
|
|
1655
|
-
'border-horizontal-color': string;
|
|
1656
|
-
'border-horizontal-width': string;
|
|
1657
|
-
'border-horizontal-style': string;
|
|
1658
|
-
'border-vertical': string;
|
|
1659
|
-
'border-vertical-color': string;
|
|
1660
|
-
'border-vertical-width': string;
|
|
1661
|
-
'border-vertical-style': string;
|
|
1662
|
-
'border-bottom': string;
|
|
1663
|
-
'border-bottom-color': string;
|
|
1664
|
-
'border-bottom-style': string;
|
|
1665
|
-
'border-bottom-width': string;
|
|
1666
|
-
'border-top': string;
|
|
1667
|
-
'border-top-color': string;
|
|
1668
|
-
'border-top-style': string;
|
|
1669
|
-
'border-top-width': string;
|
|
1670
|
-
'border-right': string;
|
|
1671
|
-
'border-right-color': string;
|
|
1672
|
-
'border-right-style': string;
|
|
1673
|
-
'border-right-width': string;
|
|
1674
|
-
'border-left': string;
|
|
1675
|
-
'border-left-color': string;
|
|
1676
|
-
'border-left-style': string;
|
|
1677
|
-
'border-left-width': string;
|
|
1678
|
-
'border-top-left-radius': string;
|
|
1679
|
-
'border-top-right-radius': string;
|
|
1680
|
-
'border-bottom-left-radius': string;
|
|
1681
|
-
'border-bottom-right-radius': string;
|
|
1682
|
-
'overflow-x': string;
|
|
1683
|
-
'overflow-y': string;
|
|
1684
|
-
height: string;
|
|
1685
|
-
width: string;
|
|
1686
|
-
'max-height': string;
|
|
1687
|
-
'max-width': string;
|
|
1688
|
-
'min-height': string;
|
|
1689
|
-
'min-width': string;
|
|
1690
|
-
top: string;
|
|
1691
|
-
right: string;
|
|
1692
|
-
bottom: string;
|
|
1693
|
-
left: string;
|
|
1694
|
-
horizontal: string;
|
|
1695
|
-
vertical: string;
|
|
1696
|
-
inset: string;
|
|
1697
|
-
'padding-left': string;
|
|
1698
|
-
'padding-right': string;
|
|
1699
|
-
'padding-top': string;
|
|
1700
|
-
'padding-bottom': string;
|
|
1701
|
-
'padding-horizontal': string;
|
|
1702
|
-
'padding-vertical': string;
|
|
1703
|
-
'margin-left': string;
|
|
1704
|
-
'margin-right': string;
|
|
1705
|
-
'margin-top': string;
|
|
1706
|
-
'margin-bottom': string;
|
|
1707
|
-
'margin-horizontal': string;
|
|
1708
|
-
'margin-vertical': string;
|
|
1709
|
-
};
|
|
1710
|
-
export const LOGICAL_PROPERTIES: ("left" | "right" | "inset" | "top" | "width" | "height" | "bottom" | "horizontal" | "vertical" | "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" | "overflow-x" | "overflow-y" | "max-height" | "max-width" | "min-height" | "min-width" | "padding-left" | "padding-right" | "padding-top" | "padding-bottom" | "padding-horizontal" | "padding-vertical" | "margin-left" | "margin-right" | "margin-top" | "margin-bottom" | "margin-horizontal" | "margin-vertical")[];
|
|
1711
|
-
export type LogicalProperties = typeof LOGICAL_PROPERTIES[number];
|
|
1712
|
-
/**
|
|
1713
|
-
*
|
|
1714
|
-
* @param property A string that is a valid CSS logical property
|
|
1715
|
-
* @param value String to output as the property value
|
|
1716
|
-
* @returns `string` Returns the logical CSS property version for the given `property: value` pair
|
|
1717
|
-
*/
|
|
1718
|
-
export const logicalCSS: (property: LogicalProperties, value?: any) => string;
|
|
1719
|
-
/**
|
|
1720
|
-
*
|
|
1721
|
-
* @param property A string that is a valid CSS logical property
|
|
1722
|
-
* @param value String to output as the property value
|
|
1723
|
-
* @returns `object` Returns the logical CSS property version for the given `property: value` pair
|
|
1724
|
-
*/
|
|
1725
|
-
export const logicalStyle: (property: LogicalProperties, value?: any) => {
|
|
1726
|
-
[x: string]: any;
|
|
1727
|
-
};
|
|
1728
|
-
/**
|
|
1729
|
-
*
|
|
1730
|
-
* @param width A string value for the LTR width
|
|
1731
|
-
* @param height A string value for the LTR height
|
|
1732
|
-
* @returns `string` Returns the logical CSS properties for height and width
|
|
1733
|
-
*/
|
|
1734
|
-
export const logicalSizeCSS: (width: any, height: any) => string;
|
|
1735
|
-
/**
|
|
1736
|
-
*
|
|
1737
|
-
* @param width A string value for the LTR width
|
|
1738
|
-
* @param height A string value for the LTR height
|
|
1739
|
-
* @returns `object` Returns the logical CSS properties for height and width
|
|
1740
|
-
*/
|
|
1741
|
-
export const logicalSizeStyle: (width: any, height: any) => {
|
|
1742
|
-
[x: string]: any;
|
|
1743
|
-
};
|
|
1744
|
-
export const logicalText: {
|
|
1745
|
-
'text-align': {
|
|
1746
|
-
left: string;
|
|
1747
|
-
center: string;
|
|
1748
|
-
right: string;
|
|
1749
|
-
};
|
|
1750
|
-
};
|
|
1751
|
-
export const LOGICAL_TEXT_ALIGNMENT: ("left" | "right" | "center")[];
|
|
1752
|
-
export type LogicalText = typeof LOGICAL_TEXT_ALIGNMENT[number];
|
|
1753
|
-
/**
|
|
1754
|
-
*
|
|
1755
|
-
* @param property A string that is a valid CSS logical property
|
|
1756
|
-
* @param value String to output as the property value
|
|
1757
|
-
* @returns `string` Returns the logical CSS property version for the given `property: value` pair
|
|
1758
|
-
*/
|
|
1759
|
-
export const logicalTextAlignCSS: (value: LogicalText) => string;
|
|
1760
|
-
/**
|
|
1761
|
-
*
|
|
1762
|
-
* @param property A string that is a valid CSS logical property
|
|
1763
|
-
* @param value String to output as the property value
|
|
1764
|
-
* @returns `object` Returns the logical CSS property version for the given `property: value` pair
|
|
1765
|
-
*/
|
|
1766
|
-
export const logicalTextAlignStyle: (value: LogicalText) => {
|
|
1767
|
-
textAlign: string;
|
|
1768
|
-
};
|
|
1769
|
-
|
|
1770
|
-
}
|
|
1771
|
-
declare module '@elastic/eui/src/global_styling/functions/size' {
|
|
1772
|
-
/**
|
|
1773
|
-
* Calculates the `px` value based on a scale multiplier
|
|
1774
|
-
* @param scale - The font scale multiplier
|
|
1775
|
-
* *
|
|
1776
|
-
* @param themeOrBase - Theme base value
|
|
1777
|
-
* *
|
|
1778
|
-
* @returns string - Rem unit aligned to baseline
|
|
1779
|
-
*/
|
|
1780
|
-
export const sizeToPixel: (scale?: number) => (themeOrBase: number | {
|
|
1781
|
-
[key: string]: any;
|
|
1782
|
-
base: number;
|
|
1783
|
-
}) => string;
|
|
1784
|
-
|
|
1785
|
-
}
|
|
1786
|
-
declare module '@elastic/eui/src/services/theme/hooks' {
|
|
1787
|
-
import React from 'react';
|
|
1788
|
-
import { EuiThemeColorModeStandard, EuiThemeModifications, EuiThemeComputed } from '@elastic/eui/src/services/theme/types';
|
|
1789
|
-
export interface UseEuiTheme<T extends {} = {}> {
|
|
1790
|
-
euiTheme: EuiThemeComputed<T>;
|
|
1791
|
-
colorMode: EuiThemeColorModeStandard;
|
|
1792
|
-
modifications: EuiThemeModifications<T>;
|
|
1793
|
-
}
|
|
1794
|
-
export const useEuiTheme: <T extends {} = {}>() => UseEuiTheme<T>;
|
|
1795
|
-
export interface WithEuiThemeProps<P = {}> {
|
|
1796
|
-
theme: UseEuiTheme<P>;
|
|
1797
|
-
}
|
|
1798
|
-
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">>>;
|
|
1799
|
-
|
|
1800
|
-
}
|
|
1801
|
-
declare module '@elastic/eui/src/global_styling/functions/typography' {
|
|
1802
|
-
import { _EuiThemeFontScale, _EuiThemeFontSizeMeasurement } from '@elastic/eui/src/global_styling/variables/typography';
|
|
1803
|
-
import { UseEuiTheme } from '@elastic/eui/src/services/theme/hooks';
|
|
1804
|
-
export interface _FontScaleOptions {
|
|
1805
|
-
/**
|
|
1806
|
-
* The returned string measurement
|
|
1807
|
-
*/
|
|
1808
|
-
measurement?: _EuiThemeFontSizeMeasurement;
|
|
1809
|
-
/**
|
|
1810
|
-
* An additional custom scale multiplier to use against the current scale
|
|
1811
|
-
* This parameter can be used (e.g. by EuiText sizes) to get sizes of text smaller than the default
|
|
1812
|
-
*/
|
|
1813
|
-
customScale?: _EuiThemeFontScale;
|
|
1814
|
-
}
|
|
1815
|
-
/**
|
|
1816
|
-
* Calculates the font-size value based on the provided scale key
|
|
1817
|
-
* @param scale - The font scale key
|
|
1818
|
-
* @param theme - Requires the `base` and `font` keys
|
|
1819
|
-
* @param options - Optional parameters - see _FontScaleOptions
|
|
1820
|
-
*
|
|
1821
|
-
* @returns string - Calculated font-size value
|
|
1822
|
-
*/
|
|
1823
|
-
export function euiFontSizeFromScale(scale: _EuiThemeFontScale, { base, font }: UseEuiTheme['euiTheme'], { measurement, customScale }?: _FontScaleOptions): string;
|
|
1824
|
-
/**
|
|
1825
|
-
* Calculates the line-height to the closest multiple of the baseline
|
|
1826
|
-
* EX: A proper line-height for text is 1.5 times the font-size.
|
|
1827
|
-
* If our base font size (euiFontSize) is 16, and our baseline is 4. To ensure the
|
|
1828
|
-
* text stays on the baseline, we pass a multiplier to calculate a line-height.
|
|
1829
|
-
* @param scale - The font scale key
|
|
1830
|
-
* @param theme - Requires the `base` and `font` keys
|
|
1831
|
-
* @param options - Optional parameters - see _FontScaleOptions
|
|
1832
|
-
*
|
|
1833
|
-
* @returns string - Calculated line-height value aligned to baseline
|
|
1834
|
-
*/
|
|
1835
|
-
export function euiLineHeightFromBaseline(scale: _EuiThemeFontScale, { base, font }: UseEuiTheme['euiTheme'], { measurement, customScale }?: _FontScaleOptions): string;
|
|
1836
|
-
/**
|
|
1837
|
-
* Text weight shifting
|
|
1838
|
-
*
|
|
1839
|
-
* When changing the font-weight based on the state of the component,
|
|
1840
|
-
* this mixin will ensure that the sizing is dependent on the boldest
|
|
1841
|
-
* weight so it doesn't shift sibling content.
|
|
1842
|
-
*/
|
|
1843
|
-
export const euiTextShift: (fontWeight: "bold" | "light" | "regular" | "medium" | "semiBold" | undefined, attribute: string | undefined, euiTheme: UseEuiTheme['euiTheme']) => string;
|
|
1844
|
-
|
|
1845
|
-
}
|
|
1846
|
-
declare module '@elastic/eui/src/global_styling/functions' {
|
|
1847
|
-
export * from '@elastic/eui/src/global_styling/functions/logicals';
|
|
1848
|
-
export * from '@elastic/eui/src/global_styling/functions/size';
|
|
1849
|
-
export * from '@elastic/eui/src/global_styling/functions/typography';
|
|
1850
|
-
|
|
1851
|
-
}
|
|
1852
|
-
declare module '@elastic/eui/src/global_styling/mixins/_padding' {
|
|
1853
|
-
import { UseEuiTheme } from '@elastic/eui/src/services/theme';
|
|
1854
|
-
export const PADDING_SIZES: readonly ["none", "xs", "s", "m", "l", "xl"];
|
|
1855
|
-
export type EuiPaddingSize = typeof PADDING_SIZES[number];
|
|
1856
|
-
export const euiPaddingSize: ({ euiTheme }: UseEuiTheme, size: EuiPaddingSize) => string | null;
|
|
1857
|
-
export const useEuiPaddingSize: (size: EuiPaddingSize) => string | null;
|
|
1858
|
-
export const useEuiPaddingCSS: (side?: "left" | "right" | "top" | "bottom" | "horizontal" | "vertical" | undefined) => {
|
|
1859
|
-
none: null;
|
|
1860
|
-
xs: import("@emotion/utils").SerializedStyles;
|
|
1861
|
-
s: import("@emotion/utils").SerializedStyles;
|
|
1862
|
-
m: import("@emotion/utils").SerializedStyles;
|
|
1863
|
-
l: import("@emotion/utils").SerializedStyles;
|
|
1864
|
-
xl: import("@emotion/utils").SerializedStyles;
|
|
1865
|
-
};
|
|
1866
|
-
|
|
1867
|
-
}
|
|
1868
|
-
declare module '@elastic/eui/src/global_styling/mixins/_states' {
|
|
1869
|
-
import { CSSProperties } from 'react';
|
|
1870
|
-
import { UseEuiTheme } from '@elastic/eui/src/services';
|
|
1871
|
-
export type _EuiFocusRingOffset = 'inset' | 'outset' | 'center' | CSSProperties['outlineOffset'];
|
|
1872
|
-
/**
|
|
1873
|
-
* It is best practice to utilize the browser's default `outline` property for handling focus rings.
|
|
1874
|
-
* However, some components need to be forced to have the same behavior, or adjust the display.
|
|
1875
|
-
* This function re-applies the same default outline with a couple parameters
|
|
1876
|
-
* @param euiTheme UseEuiTheme.euiTheme
|
|
1877
|
-
* @param offset Accepts a specific measurement or 'inset', 'outset' or 'center' to adjust outline position
|
|
1878
|
-
* @param color Accepts any CSS color, **Note: only works in -webkit-**
|
|
1879
|
-
*/
|
|
1880
|
-
export const euiFocusRing: (euiTheme: UseEuiTheme['euiTheme'], offset?: _EuiFocusRingOffset, options?: {
|
|
1881
|
-
color?: CSSProperties['outlineColor'];
|
|
1882
|
-
} | undefined) => string;
|
|
1883
|
-
export const useEuiFocusRing: (offset?: _EuiFocusRingOffset, color?: CSSProperties['outlineColor']) => string;
|
|
1884
|
-
|
|
1885
|
-
}
|
|
1886
|
-
declare module '@elastic/eui/src/global_styling/mixins/_typography' {
|
|
1887
|
-
import { CSSProperties } from 'react';
|
|
1888
|
-
import { _FontScaleOptions } from '@elastic/eui/src/global_styling/functions/typography';
|
|
1889
|
-
import { UseEuiTheme } from '@elastic/eui/src/services/theme/hooks';
|
|
1890
|
-
import { _EuiThemeFontScale } from '@elastic/eui/src/global_styling/variables/typography';
|
|
1891
|
-
export type EuiThemeFontSize = {
|
|
1892
|
-
fontSize: CSSProperties['fontSize'];
|
|
1893
|
-
lineHeight: CSSProperties['lineHeight'];
|
|
1894
|
-
};
|
|
1895
|
-
/**
|
|
1896
|
-
* Returns font-size and line-height
|
|
1897
|
-
*/
|
|
1898
|
-
export const euiFontSize: ({ euiTheme }: UseEuiTheme, scale: _EuiThemeFontScale, options?: _FontScaleOptions | undefined) => EuiThemeFontSize;
|
|
1899
|
-
export const useEuiFontSize: (scale: _EuiThemeFontScale, options?: _FontScaleOptions | undefined) => EuiThemeFontSize;
|
|
1900
|
-
/**
|
|
1901
|
-
* Force text to wrap on natural word breaks (e.g. spaces & hyphens)
|
|
1902
|
-
* https://css-tricks.com/snippets/css/prevent-long-urls-from-breaking-out-of-container/
|
|
1903
|
-
*/
|
|
1904
|
-
export const euiTextBreakWord: () => string;
|
|
1905
|
-
/**
|
|
1906
|
-
* Prevent text from wrapping onto multiple lines, and truncate with an ellipsis.
|
|
1907
|
-
*/
|
|
1908
|
-
export const euiTextTruncate: (maxWidth?: CSSProperties['maxWidth']) => string;
|
|
1909
|
-
/**
|
|
1910
|
-
* Fixed-width numbers for tabular data
|
|
1911
|
-
*/
|
|
1912
|
-
export const euiNumberFormat: ({ euiTheme }: UseEuiTheme) => string;
|
|
1913
|
-
export const useEuiNumberFormat: () => string;
|
|
1914
|
-
|
|
1915
|
-
}
|
|
1916
|
-
declare module '@elastic/eui/src/global_styling/mixins/_responsive' {
|
|
1917
|
-
import { UseEuiTheme } from '@elastic/eui/src/services/theme/hooks';
|
|
1918
|
-
import { _EuiThemeBreakpoint } from '@elastic/eui/src/global_styling/variables';
|
|
1919
|
-
/**
|
|
1920
|
-
* Generates a CSS media query rule string based on the input breakpoint ranges.
|
|
1921
|
-
* Examples:
|
|
1922
|
-
* euiBreakpoint(['s']) becomes `@media only screen and (min-width: 575px) and (max-width: 767px)`
|
|
1923
|
-
* euiBreakpoint(['s', 'l']) becomes `@media only screen and (min-width: 575px) and (max-width: 1199px)`
|
|
1924
|
-
*
|
|
1925
|
-
* Use the `xs` and `xl` sizes to generate media queries with only min/max-width.
|
|
1926
|
-
* Examples:
|
|
1927
|
-
* euiBreakpoint(['xs', 'm']) becomes `@media only screen and (max-width: 991px)`
|
|
1928
|
-
* euiBreakpoint(['l', 'xl']) becomes `@media only screen and (min-width: 992px)`
|
|
1929
|
-
*/
|
|
1930
|
-
export const euiBreakpoint: ({ euiTheme }: UseEuiTheme, sizes: [_EuiThemeBreakpoint, ..._EuiThemeBreakpoint[]]) => string;
|
|
1931
|
-
export const useEuiBreakpoint: (sizes: [_EuiThemeBreakpoint, ..._EuiThemeBreakpoint[]]) => string;
|
|
1932
|
-
|
|
1933
|
-
}
|
|
1934
|
-
declare module '@elastic/eui/src/global_styling/mixins' {
|
|
1935
|
-
export * from '@elastic/eui/src/global_styling/mixins/_color';
|
|
1936
|
-
export * from '@elastic/eui/src/global_styling/mixins/_helpers';
|
|
1937
|
-
export * from '@elastic/eui/src/global_styling/mixins/_padding';
|
|
1938
|
-
export * from '@elastic/eui/src/global_styling/mixins/_states';
|
|
1939
|
-
export * from '@elastic/eui/src/global_styling/mixins/_typography';
|
|
1940
|
-
export * from '@elastic/eui/src/global_styling/mixins/_responsive';
|
|
1941
|
-
|
|
1942
|
-
}
|
|
1943
|
-
declare module '@elastic/eui/src/global_styling/reset/reset' {
|
|
1944
|
-
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}";
|
|
1945
|
-
|
|
1946
|
-
}
|
|
1947
|
-
declare module '@elastic/eui/src/global_styling/reset/global_styles' {
|
|
1948
|
-
|
|
1949
|
-
export interface EuiGlobalStylesProps {
|
|
1950
|
-
}
|
|
1951
|
-
export const EuiGlobalStyles: ({}: EuiGlobalStylesProps) => JSX.Element;
|
|
1952
|
-
|
|
1953
|
-
}
|
|
1954
|
-
declare module '@elastic/eui/src/global_styling' {
|
|
1955
|
-
export * from '@elastic/eui/src/global_styling/reset/global_styles';
|
|
1956
|
-
export * from '@elastic/eui/src/global_styling/functions';
|
|
1957
|
-
export * from '@elastic/eui/src/global_styling/variables';
|
|
1958
|
-
export * from '@elastic/eui/src/global_styling/mixins';
|
|
1959
|
-
|
|
1960
|
-
}
|
|
1961
|
-
declare module '@elastic/eui/src/components/icon/icon.styles' {
|
|
1962
|
-
import { UseEuiTheme } from '@elastic/eui/src/services';
|
|
1963
|
-
export const iconLoadingOpacity = 0.05;
|
|
1964
|
-
export const euiIconStyles: ({ euiTheme }: UseEuiTheme) => {
|
|
1965
|
-
euiIcon: import("@emotion/utils").SerializedStyles;
|
|
1966
|
-
accent: import("@emotion/utils").SerializedStyles;
|
|
1967
|
-
danger: import("@emotion/utils").SerializedStyles;
|
|
1968
|
-
ghost: import("@emotion/utils").SerializedStyles;
|
|
1419
|
+
danger: import("@emotion/utils").SerializedStyles;
|
|
1420
|
+
ghost: import("@emotion/utils").SerializedStyles;
|
|
1969
1421
|
primary: import("@emotion/utils").SerializedStyles;
|
|
1970
1422
|
success: import("@emotion/utils").SerializedStyles;
|
|
1971
1423
|
subdued: import("@emotion/utils").SerializedStyles;
|
|
@@ -1995,7 +1447,7 @@ declare module '@elastic/eui/src/components/icon/icon' {
|
|
|
1995
1447
|
import { WithEuiThemeProps } from '@elastic/eui/src/services';
|
|
1996
1448
|
export { COLORS } from '@elastic/eui/src/components/icon/named_colors';
|
|
1997
1449
|
import { NamedColor } from '@elastic/eui/src/components/icon/named_colors';
|
|
1998
|
-
export const TYPES: ("string" | "number" | "function" | "link" | "menu" | "filter" | "image" | "stop" | "
|
|
1450
|
+
export const TYPES: ("string" | "number" | "function" | "link" | "menu" | "filter" | "image" | "stop" | "search" | "temperature" | "color" | "accessibility" | "aggregate" | "alert" | "analyzeEvent" | "annotation" | "apps" | "arrowStart" | "arrowEnd" | "asterisk" | "beaker" | "bell" | "bellSlash" | "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" | "crossInACircleFilled" | "crosshairs" | "currency" | "cut" | "database" | "desktop" | "document" | "documentEdit" | "documentation" | "documents" | "dot" | "doubleArrowLeft" | "doubleArrowRight" | "download" | "editorDistributeHorizontal" | "editorDistributeVertical" | "editorItemAlignBottom" | "editorItemAlignCenter" | "editorItemAlignLeft" | "editorItemAlignMiddle" | "editorItemAlignRight" | "editorItemAlignTop" | "editorPositionBottomLeft" | "editorPositionBottomRight" | "editorPositionTopLeft" | "editorPositionTopRight" | "email" | "empty" | "eql" | "eraser" | "exit" | "expand" | "expandMini" | "eye" | "flag" | "fold" | "frameNext" | "framePrevious" | "fullScreenExit" | "gear" | "glasses" | "globe" | "grab" | "grid" | "heart" | "heatmap" | "help" | "home" | "iInCircle" | "inputOutput" | "inspect" | "invert" | "ip" | "keyboard" | "kubernetesNode" | "kubernetesPod" | "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" | "play" | "playFilled" | "plus" | "popout" | "push" | "quote" | "refresh" | "reporter" | "save" | "scale" | "securitySignal" | "securitySignalDetected" | "securitySignalResolved" | "sessionViewer" | "shard" | "share" | "snowflake" | "sortLeft" | "sortRight" | "sortable" | "starPlusEmpty" | "starPlusFilled" | "stats" | "storage" | "submodule" | "sun" | "symlink" | "tableOfContents" | "tag" | "tear" | "timeline" | "timeRefresh" | "timeslider" | "training" | "trash" | "unfold" | "unlink" | "user" | "userAvatar" | "users" | "vector" | "videoPlayer" | "wordWrap" | "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" | "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" | "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" | "watchesApp" | "workplaceSearchApp")[];
|
|
1999
1451
|
export type EuiIconType = keyof typeof typeToPathMap;
|
|
2000
1452
|
export type IconType = EuiIconType | string | ComponentType;
|
|
2001
1453
|
export type IconColor = string | NamedColor;
|
|
@@ -2038,7 +1490,7 @@ declare module '@elastic/eui/src/components/icon/icon' {
|
|
|
2038
1490
|
isLoading: boolean;
|
|
2039
1491
|
neededLoading: boolean;
|
|
2040
1492
|
}
|
|
2041
|
-
export const clearIconComponentCache: (iconType?: "string" | "number" | "function" | "link" | "menu" | "filter" | "image" | "stop" | "
|
|
1493
|
+
export const clearIconComponentCache: (iconType?: "string" | "number" | "function" | "link" | "menu" | "filter" | "image" | "stop" | "search" | "temperature" | "color" | "accessibility" | "aggregate" | "alert" | "analyzeEvent" | "annotation" | "apps" | "arrowStart" | "arrowEnd" | "asterisk" | "beaker" | "bell" | "bellSlash" | "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" | "crossInACircleFilled" | "crosshairs" | "currency" | "cut" | "database" | "desktop" | "document" | "documentEdit" | "documentation" | "documents" | "dot" | "doubleArrowLeft" | "doubleArrowRight" | "download" | "editorDistributeHorizontal" | "editorDistributeVertical" | "editorItemAlignBottom" | "editorItemAlignCenter" | "editorItemAlignLeft" | "editorItemAlignMiddle" | "editorItemAlignRight" | "editorItemAlignTop" | "editorPositionBottomLeft" | "editorPositionBottomRight" | "editorPositionTopLeft" | "editorPositionTopRight" | "email" | "empty" | "eql" | "eraser" | "exit" | "expand" | "expandMini" | "eye" | "flag" | "fold" | "frameNext" | "framePrevious" | "fullScreenExit" | "gear" | "glasses" | "globe" | "grab" | "grid" | "heart" | "heatmap" | "help" | "home" | "iInCircle" | "inputOutput" | "inspect" | "invert" | "ip" | "keyboard" | "kubernetesNode" | "kubernetesPod" | "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" | "play" | "playFilled" | "plus" | "popout" | "push" | "quote" | "refresh" | "reporter" | "save" | "scale" | "securitySignal" | "securitySignalDetected" | "securitySignalResolved" | "sessionViewer" | "shard" | "share" | "snowflake" | "sortLeft" | "sortRight" | "sortable" | "starPlusEmpty" | "starPlusFilled" | "stats" | "storage" | "submodule" | "sun" | "symlink" | "tableOfContents" | "tag" | "tear" | "timeline" | "timeRefresh" | "timeslider" | "training" | "trash" | "unfold" | "unlink" | "user" | "userAvatar" | "users" | "vector" | "videoPlayer" | "wordWrap" | "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" | "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" | "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" | "watchesApp" | "workplaceSearchApp" | undefined) => void;
|
|
2042
1494
|
export const appendIconComponentCache: (iconTypeToIconComponentMap: {
|
|
2043
1495
|
[iconType: string]: React.ComponentType<{}>;
|
|
2044
1496
|
}) => void;
|
|
@@ -2327,20 +1779,145 @@ declare module '@elastic/eui/src/components/loading' {
|
|
|
2327
1779
|
export { EuiLoadingLogo } from '@elastic/eui/src/components/loading/loading_logo';
|
|
2328
1780
|
|
|
2329
1781
|
}
|
|
2330
|
-
declare module '@elastic/eui/src/components/button/_button_content_deprecated' {
|
|
1782
|
+
declare module '@elastic/eui/src/components/button/_button_content_deprecated' {
|
|
1783
|
+
import { HTMLAttributes, FunctionComponent, Ref } from 'react';
|
|
1784
|
+
import { CommonProps } from '@elastic/eui/src/components/common';
|
|
1785
|
+
import { IconType } from '@elastic/eui/src/components/icon';
|
|
1786
|
+
export type ButtonContentIconSide = 'left' | 'right';
|
|
1787
|
+
export const ICON_SIDES: ButtonContentIconSide[];
|
|
1788
|
+
export type EuiButtonContentType = HTMLAttributes<HTMLSpanElement>;
|
|
1789
|
+
/**
|
|
1790
|
+
* *INTERNAL ONLY / DEPRECATED*
|
|
1791
|
+
* This component is simply a helper component for reuse within other button components
|
|
1792
|
+
* This component has been deprecated in favor of the new EuiButtonDisplayContent
|
|
1793
|
+
* that can be found in `src/components/button/button_display/_button_display_content.tsx`.
|
|
1794
|
+
*/
|
|
1795
|
+
export interface EuiButtonContentProps extends CommonProps {
|
|
1796
|
+
/**
|
|
1797
|
+
* Any `type` accepted by EuiIcon
|
|
1798
|
+
*/
|
|
1799
|
+
iconType?: IconType;
|
|
1800
|
+
/**
|
|
1801
|
+
* Can only be one side `left` or `right`
|
|
1802
|
+
*/
|
|
1803
|
+
iconSide?: ButtonContentIconSide;
|
|
1804
|
+
isLoading?: boolean;
|
|
1805
|
+
/**
|
|
1806
|
+
* Object of props passed to the <span/> wrapping the content's text (only if the children is a `string`)
|
|
1807
|
+
* It doesn't apply to the icon.
|
|
1808
|
+
*/
|
|
1809
|
+
textProps?: HTMLAttributes<HTMLSpanElement> & CommonProps & {
|
|
1810
|
+
ref?: Ref<HTMLSpanElement>;
|
|
1811
|
+
'data-text'?: string;
|
|
1812
|
+
};
|
|
1813
|
+
iconSize?: 's' | 'm';
|
|
1814
|
+
}
|
|
1815
|
+
export const EuiButtonContentDeprecated: FunctionComponent<EuiButtonContentType & EuiButtonContentProps>;
|
|
1816
|
+
|
|
1817
|
+
}
|
|
1818
|
+
declare module '@elastic/eui/src/themes/amsterdam/global_styling/mixins/button' {
|
|
1819
|
+
import { UseEuiTheme } from '@elastic/eui/src/services';
|
|
1820
|
+
export const BUTTON_COLORS: readonly ["text", "accent", "primary", "success", "warning", "danger"];
|
|
1821
|
+
export type _EuiButtonColor = typeof BUTTON_COLORS[number];
|
|
1822
|
+
export type _EuiButtonDisplay = 'base' | 'fill' | 'empty';
|
|
1823
|
+
export interface _EuiButtonOptions {
|
|
1824
|
+
display?: _EuiButtonDisplay;
|
|
1825
|
+
}
|
|
1826
|
+
/**
|
|
1827
|
+
* Creates the `base` version of button styles with proper text contrast.
|
|
1828
|
+
* @param euiThemeContext
|
|
1829
|
+
* @param color One of the named button colors or 'disabled'
|
|
1830
|
+
* @returns Style object `{ backgroundColor, color }`
|
|
1831
|
+
*/
|
|
1832
|
+
export const euiButtonColor: (euiThemeContext: UseEuiTheme, color: _EuiButtonColor | 'disabled') => {
|
|
1833
|
+
color: string;
|
|
1834
|
+
backgroundColor: string;
|
|
1835
|
+
};
|
|
1836
|
+
/**
|
|
1837
|
+
* Creates the `fill` version of buttons styles with proper text contrast.
|
|
1838
|
+
* @param euiThemeContext
|
|
1839
|
+
* @param color One of the named button colors or 'disabled'
|
|
1840
|
+
* @returns Style object `{ backgroundColor, color }`
|
|
1841
|
+
*/
|
|
1842
|
+
export const euiButtonFillColor: (euiThemeContext: UseEuiTheme, color: _EuiButtonColor | 'disabled') => {
|
|
1843
|
+
color: string;
|
|
1844
|
+
backgroundColor: string;
|
|
1845
|
+
};
|
|
1846
|
+
/**
|
|
1847
|
+
* Creates the `empty` version of button styles using the text-variant and adding interactive styles.
|
|
1848
|
+
* @param euiThemeContext
|
|
1849
|
+
* @param color One of the named button colors or 'disabled'
|
|
1850
|
+
* @returns Style object `{ backgroundColor, color }` where `background` is typically used for interactive states
|
|
1851
|
+
*/
|
|
1852
|
+
export const euiButtonEmptyColor: (euiThemeContext: UseEuiTheme, color: _EuiButtonColor | 'disabled') => {
|
|
1853
|
+
color: string;
|
|
1854
|
+
backgroundColor: string;
|
|
1855
|
+
};
|
|
1856
|
+
/**
|
|
1857
|
+
* Given the button display type, returns the Emotion based color keys.
|
|
1858
|
+
* @param options Button display type
|
|
1859
|
+
* @returns An object of `_EuiButtonColor` keys including `disabled`
|
|
1860
|
+
*/
|
|
1861
|
+
export const useEuiButtonColorCSS: (options?: _EuiButtonOptions) => {
|
|
1862
|
+
text: import("@emotion/utils").SerializedStyles;
|
|
1863
|
+
accent: import("@emotion/utils").SerializedStyles;
|
|
1864
|
+
primary: import("@emotion/utils").SerializedStyles;
|
|
1865
|
+
success: import("@emotion/utils").SerializedStyles;
|
|
1866
|
+
warning: import("@emotion/utils").SerializedStyles;
|
|
1867
|
+
danger: import("@emotion/utils").SerializedStyles;
|
|
1868
|
+
disabled: import("@emotion/utils").SerializedStyles;
|
|
1869
|
+
};
|
|
1870
|
+
/**
|
|
1871
|
+
* Based on the button size, creates the style properties.
|
|
1872
|
+
* @returns An object of button size keys with Emption styles for `border-radius`
|
|
1873
|
+
*/
|
|
1874
|
+
export const useEuiButtonRadiusCSS: () => {
|
|
1875
|
+
xs: import("@emotion/utils").SerializedStyles;
|
|
1876
|
+
s: import("@emotion/utils").SerializedStyles;
|
|
1877
|
+
m: import("@emotion/utils").SerializedStyles;
|
|
1878
|
+
};
|
|
1879
|
+
/**
|
|
1880
|
+
* Creates the translate animation when button is in focus.
|
|
1881
|
+
* @returns string
|
|
1882
|
+
*/
|
|
1883
|
+
export const useEuiButtonFocusCSS: () => string;
|
|
1884
|
+
|
|
1885
|
+
}
|
|
1886
|
+
declare module '@elastic/eui/src/components/button/button_display/_button_display.styles' {
|
|
1887
|
+
import { UseEuiTheme } from '@elastic/eui/src/services';
|
|
1888
|
+
export const euiButtonBaseCSS: () => string;
|
|
1889
|
+
export const euiButtonDisplayStyles: (euiThemeContext: UseEuiTheme, minWidth: string) => {
|
|
1890
|
+
euiButtonDisplay: import("@emotion/utils").SerializedStyles;
|
|
1891
|
+
isDisabled: import("@emotion/utils").SerializedStyles;
|
|
1892
|
+
fullWidth: import("@emotion/utils").SerializedStyles;
|
|
1893
|
+
xs: import("@emotion/utils").SerializedStyles;
|
|
1894
|
+
s: import("@emotion/utils").SerializedStyles;
|
|
1895
|
+
m: import("@emotion/utils").SerializedStyles;
|
|
1896
|
+
};
|
|
1897
|
+
|
|
1898
|
+
}
|
|
1899
|
+
declare module '@elastic/eui/src/components/button/button_display/_button_display_content.styles' {
|
|
1900
|
+
import { UseEuiTheme } from '@elastic/eui/src/services';
|
|
1901
|
+
export const euiButtonDisplayContentStyles: ({ euiTheme }: UseEuiTheme) => {
|
|
1902
|
+
euiButtonDisplayContent: import("@emotion/utils").SerializedStyles;
|
|
1903
|
+
left: import("@emotion/utils").SerializedStyles;
|
|
1904
|
+
right: import("@emotion/utils").SerializedStyles;
|
|
1905
|
+
euiButtonDisplayContent__spinner: import("@emotion/utils").SerializedStyles;
|
|
1906
|
+
euiButtonDisplayContent__icon: import("@emotion/utils").SerializedStyles;
|
|
1907
|
+
};
|
|
1908
|
+
|
|
1909
|
+
}
|
|
1910
|
+
declare module '@elastic/eui/src/components/button/button_display/_button_display_content' {
|
|
2331
1911
|
import { HTMLAttributes, FunctionComponent, Ref } from 'react';
|
|
2332
1912
|
import { CommonProps } from '@elastic/eui/src/components/common';
|
|
2333
1913
|
import { IconType } from '@elastic/eui/src/components/icon';
|
|
2334
|
-
export type ButtonContentIconSide = 'left' | 'right';
|
|
2335
|
-
export
|
|
2336
|
-
export type EuiButtonContentType = HTMLAttributes<HTMLSpanElement>;
|
|
1914
|
+
export type ButtonContentIconSide = 'left' | 'right' | undefined;
|
|
1915
|
+
export type EuiButtonDisplayContentType = HTMLAttributes<HTMLSpanElement>;
|
|
2337
1916
|
/**
|
|
2338
|
-
* *INTERNAL ONLY
|
|
2339
|
-
* This component is simply a helper component for reuse within other button components
|
|
2340
|
-
* This component has been deprecated in favor of the new EuiButtonDisplayContent
|
|
2341
|
-
* that can be found in `src/components/button/button_display/_button_display_content.tsx`.
|
|
1917
|
+
* *INTERNAL ONLY*
|
|
1918
|
+
* This component is simply a helper component for reuse within other button components.
|
|
2342
1919
|
*/
|
|
2343
|
-
export interface
|
|
1920
|
+
export interface EuiButtonDisplayContentProps extends CommonProps {
|
|
2344
1921
|
/**
|
|
2345
1922
|
* Any `type` accepted by EuiIcon
|
|
2346
1923
|
*/
|
|
@@ -2351,58 +1928,108 @@ declare module '@elastic/eui/src/components/button/_button_content_deprecated' {
|
|
|
2351
1928
|
iconSide?: ButtonContentIconSide;
|
|
2352
1929
|
isLoading?: boolean;
|
|
2353
1930
|
/**
|
|
2354
|
-
* Object of props passed to the <span/> wrapping the content's text
|
|
2355
|
-
* It doesn't apply to the icon.
|
|
1931
|
+
* Object of props passed to the <span/> wrapping the content's text/children only (not icon)
|
|
2356
1932
|
*/
|
|
2357
1933
|
textProps?: HTMLAttributes<HTMLSpanElement> & CommonProps & {
|
|
2358
1934
|
ref?: Ref<HTMLSpanElement>;
|
|
2359
1935
|
'data-text'?: string;
|
|
2360
1936
|
};
|
|
2361
1937
|
iconSize?: 's' | 'm';
|
|
1938
|
+
isDisabled?: boolean;
|
|
2362
1939
|
}
|
|
2363
|
-
export const
|
|
1940
|
+
export const EuiButtonDisplayContent: FunctionComponent<EuiButtonDisplayContentType & EuiButtonDisplayContentProps>;
|
|
2364
1941
|
|
|
2365
1942
|
}
|
|
2366
1943
|
declare module '@elastic/eui/src/services/security/href_validator' {
|
|
2367
1944
|
export function validateHref(href: string): boolean;
|
|
2368
1945
|
|
|
2369
1946
|
}
|
|
2370
|
-
declare module '@elastic/eui/src/
|
|
2371
|
-
import
|
|
1947
|
+
declare module '@elastic/eui/src/themes/amsterdam/global_styling/functions/shadows' {
|
|
1948
|
+
import { EuiThemeColorModeStandard } from '@elastic/eui/src/services/theme/types';
|
|
1949
|
+
export const getShadowColor: (color: string, opacity: number, colorMode: EuiThemeColorModeStandard) => string;
|
|
1950
|
+
|
|
1951
|
+
}
|
|
1952
|
+
declare module '@elastic/eui/src/themes/amsterdam/global_styling/functions' {
|
|
1953
|
+
export * from '@elastic/eui/src/themes/amsterdam/global_styling/functions/shadows';
|
|
1954
|
+
|
|
1955
|
+
}
|
|
1956
|
+
declare module '@elastic/eui/src/global_styling/variables/shadow' {
|
|
1957
|
+
export const EuiThemeShadowSizes: readonly ["xs", "s", "m", "l", "xl"];
|
|
1958
|
+
export type _EuiThemeShadowSize = typeof EuiThemeShadowSizes[number];
|
|
1959
|
+
/**
|
|
1960
|
+
* Shadow t-shirt sizes descriptions
|
|
1961
|
+
*/
|
|
1962
|
+
export const _EuiShadowSizesDescriptions: Record<_EuiThemeShadowSize, string>;
|
|
1963
|
+
export interface _EuiThemeShadowCustomColor {
|
|
1964
|
+
color?: string;
|
|
1965
|
+
property?: 'box-shadow' | 'filter';
|
|
1966
|
+
}
|
|
1967
|
+
|
|
1968
|
+
}
|
|
1969
|
+
declare module '@elastic/eui/src/themes/amsterdam/global_styling/mixins/shadow' {
|
|
1970
|
+
import { UseEuiTheme } from '@elastic/eui/src/services/theme';
|
|
1971
|
+
import { _EuiThemeShadowSize, _EuiThemeShadowCustomColor } from '@elastic/eui/src/global_styling/variables/shadow';
|
|
1972
|
+
export interface EuiShadowCustomColor {
|
|
1973
|
+
color?: string;
|
|
1974
|
+
}
|
|
1975
|
+
/**
|
|
1976
|
+
* euiSlightShadow
|
|
1977
|
+
*/
|
|
1978
|
+
export const euiShadowXSmall: ({ euiTheme, colorMode }: UseEuiTheme, { color: _color }?: _EuiThemeShadowCustomColor) => string;
|
|
1979
|
+
/**
|
|
1980
|
+
* bottomShadowSmall
|
|
1981
|
+
*/
|
|
1982
|
+
export const euiShadowSmall: ({ euiTheme, colorMode }: UseEuiTheme, { color: _color }?: _EuiThemeShadowCustomColor) => string;
|
|
1983
|
+
/**
|
|
1984
|
+
* bottomShadowMedium
|
|
1985
|
+
*/
|
|
1986
|
+
export const euiShadowMedium: ({ euiTheme, colorMode }: UseEuiTheme, { color: _color, property }?: _EuiThemeShadowCustomColor) => string;
|
|
1987
|
+
/**
|
|
1988
|
+
* bottomShadow
|
|
1989
|
+
*/
|
|
1990
|
+
export const euiShadowLarge: ({ euiTheme, colorMode }: UseEuiTheme, { color: _color }?: _EuiThemeShadowCustomColor) => string;
|
|
1991
|
+
/**
|
|
1992
|
+
* bottomShadowLarge
|
|
1993
|
+
*/
|
|
1994
|
+
export interface EuiShadowXLarge extends _EuiThemeShadowCustomColor {
|
|
1995
|
+
reverse?: boolean;
|
|
1996
|
+
}
|
|
1997
|
+
export const euiShadowXLarge: ({ euiTheme, colorMode }: UseEuiTheme, { color: _color, reverse }?: EuiShadowXLarge) => string;
|
|
1998
|
+
/**
|
|
1999
|
+
* slightShadowHover
|
|
2000
|
+
* TODO: I think this is only used by panels/cards in the Amsterdam theme, move there
|
|
2001
|
+
*/
|
|
2002
|
+
export const euiSlightShadowHover: ({ euiTheme, colorMode }: UseEuiTheme, { color: _color }?: _EuiThemeShadowCustomColor) => string;
|
|
2003
|
+
export const useEuiSlightShadowHover: (color?: _EuiThemeShadowCustomColor['color']) => string;
|
|
2004
|
+
/**
|
|
2005
|
+
* bottomShadowFlat
|
|
2006
|
+
*
|
|
2007
|
+
* Similar to shadow medium but without the bottom depth.
|
|
2008
|
+
* Useful for popovers that drop UP rather than DOWN.
|
|
2009
|
+
*/
|
|
2010
|
+
export const euiShadowFlat: ({ euiTheme, colorMode }: UseEuiTheme, { color: _color }?: _EuiThemeShadowCustomColor) => string;
|
|
2011
|
+
export const useEuiShadowFlat: (color?: _EuiThemeShadowCustomColor['color']) => string;
|
|
2012
|
+
export const euiShadow: (euiThemeContext: UseEuiTheme, size?: _EuiThemeShadowSize, { color }?: _EuiThemeShadowCustomColor) => string;
|
|
2013
|
+
export const useEuiShadow: (size?: _EuiThemeShadowSize, color?: _EuiThemeShadowCustomColor['color']) => string;
|
|
2014
|
+
|
|
2015
|
+
}
|
|
2016
|
+
declare module '@elastic/eui/src/themes/amsterdam/global_styling/mixins' {
|
|
2017
|
+
export * from '@elastic/eui/src/themes/amsterdam/global_styling/mixins/button';
|
|
2018
|
+
export * from '@elastic/eui/src/themes/amsterdam/global_styling/mixins/shadow';
|
|
2019
|
+
|
|
2020
|
+
}
|
|
2021
|
+
declare module '@elastic/eui/src/components/button/button_display/_button_display' {
|
|
2022
|
+
import React, { CSSProperties, ReactNode, Ref } from 'react';
|
|
2372
2023
|
import { CommonProps, ExclusiveUnion, PropsForAnchor, PropsForButton } from '@elastic/eui/src/components/common';
|
|
2373
|
-
import {
|
|
2374
|
-
export type
|
|
2375
|
-
export type ButtonSize = 's' | 'm';
|
|
2376
|
-
export const colorToClassNameMap: {
|
|
2377
|
-
[color in ButtonColor]: string;
|
|
2378
|
-
};
|
|
2379
|
-
export const COLORS: ButtonColor[];
|
|
2380
|
-
export const sizeToClassNameMap: {
|
|
2381
|
-
[size in ButtonSize]: string | null;
|
|
2382
|
-
};
|
|
2383
|
-
export const SIZES: ButtonSize[];
|
|
2024
|
+
import { EuiButtonDisplayContentProps, EuiButtonDisplayContentType } from '@elastic/eui/src/components/button/button_display/_button_display_content'; const SIZES: readonly ["xs", "s", "m"];
|
|
2025
|
+
export type EuiButtonDisplaySizes = typeof SIZES[number];
|
|
2384
2026
|
/**
|
|
2385
|
-
* Extends
|
|
2027
|
+
* Extends EuiButtonDisplayContentProps which provides
|
|
2386
2028
|
* `iconType`, `iconSide`, and `textProps`
|
|
2387
2029
|
*/
|
|
2388
|
-
export interface
|
|
2030
|
+
export interface EuiButtonDisplayCommonProps extends EuiButtonDisplayContentProps, CommonProps {
|
|
2389
2031
|
children?: ReactNode;
|
|
2390
|
-
|
|
2391
|
-
* Make button a solid color for prominence
|
|
2392
|
-
*/
|
|
2393
|
-
fill?: boolean;
|
|
2394
|
-
/**
|
|
2395
|
-
* Any of our named colors.
|
|
2396
|
-
*/
|
|
2397
|
-
color?: ButtonColor;
|
|
2398
|
-
/**
|
|
2399
|
-
* Use size `s` in confined spaces
|
|
2400
|
-
*/
|
|
2401
|
-
size?: ButtonSize;
|
|
2402
|
-
/**
|
|
2403
|
-
* `disabled` is also allowed
|
|
2404
|
-
*/
|
|
2405
|
-
isDisabled?: boolean;
|
|
2032
|
+
size?: EuiButtonDisplaySizes;
|
|
2406
2033
|
/**
|
|
2407
2034
|
* Applies the boolean state as the `aria-pressed` property to create a toggle button.
|
|
2408
2035
|
* *Only use when the readable text does not change between states.*
|
|
@@ -2423,9 +2050,69 @@ declare module '@elastic/eui/src/components/button/button' {
|
|
|
2423
2050
|
/**
|
|
2424
2051
|
* Object of props passed to the <span/> wrapping the button's content
|
|
2425
2052
|
*/
|
|
2426
|
-
contentProps?:
|
|
2053
|
+
contentProps?: EuiButtonDisplayContentType;
|
|
2427
2054
|
style?: CSSProperties;
|
|
2428
2055
|
}
|
|
2056
|
+
export type EuiButtonDisplayPropsForAnchor = PropsForAnchor<EuiButtonDisplayCommonProps, {
|
|
2057
|
+
buttonRef?: Ref<HTMLAnchorElement>;
|
|
2058
|
+
}>;
|
|
2059
|
+
export type EuiButtonDisplayPropsForButton = PropsForButton<EuiButtonDisplayCommonProps, {
|
|
2060
|
+
buttonRef?: Ref<HTMLButtonElement>;
|
|
2061
|
+
}>;
|
|
2062
|
+
export type EuiButtonDisplayProps = ExclusiveUnion<EuiButtonDisplayPropsForAnchor, EuiButtonDisplayPropsForButton>;
|
|
2063
|
+
export function isButtonDisabled({ href, isDisabled, isLoading, }: {
|
|
2064
|
+
href?: string;
|
|
2065
|
+
isDisabled?: boolean;
|
|
2066
|
+
isLoading?: boolean;
|
|
2067
|
+
}): boolean;
|
|
2068
|
+
/**
|
|
2069
|
+
* EuiButtonDisplay is an internal-only component used for displaying
|
|
2070
|
+
* any element as a button.
|
|
2071
|
+
*/
|
|
2072
|
+
export const EuiButtonDisplay: React.ForwardRefExoticComponent<((import ("@elastic/eui/src/components/common").DisambiguateSet<EuiButtonDisplayPropsForAnchor, EuiButtonDisplayPropsForButton> & EuiButtonDisplayCommonProps & {
|
|
2073
|
+
onClick?: React.MouseEventHandler<HTMLButtonElement> | undefined;
|
|
2074
|
+
} & React.ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
2075
|
+
buttonRef?: React.Ref<HTMLButtonElement> | undefined;
|
|
2076
|
+
}) | (import ("@elastic/eui/src/components/common").DisambiguateSet<EuiButtonDisplayPropsForButton, EuiButtonDisplayPropsForAnchor> & EuiButtonDisplayCommonProps & {
|
|
2077
|
+
href?: string | undefined;
|
|
2078
|
+
onClick?: React.MouseEventHandler<HTMLAnchorElement> | undefined;
|
|
2079
|
+
} & React.AnchorHTMLAttributes<HTMLAnchorElement> & {
|
|
2080
|
+
buttonRef?: React.Ref<HTMLAnchorElement> | undefined;
|
|
2081
|
+
})) & React.RefAttributes<HTMLElement>>;
|
|
2082
|
+
export {};
|
|
2083
|
+
|
|
2084
|
+
}
|
|
2085
|
+
declare module '@elastic/eui/src/components/button/button' {
|
|
2086
|
+
import React, { FunctionComponent, Ref, HTMLAttributes, ReactNode } from 'react';
|
|
2087
|
+
import { CommonProps, ExclusiveUnion, PropsForAnchor, PropsForButton } from '@elastic/eui/src/components/common';
|
|
2088
|
+
import { _EuiButtonColor } from '@elastic/eui/src/themes/amsterdam/global_styling/mixins/button';
|
|
2089
|
+
import { EuiButtonDisplayCommonProps } from '@elastic/eui/src/components/button/button_display/_button_display';
|
|
2090
|
+
export const COLORS: readonly ["text", "accent", "primary", "success", "warning", "danger", "ghost"];
|
|
2091
|
+
export type EuiButtonColor = _EuiButtonColor | 'ghost';
|
|
2092
|
+
export const SIZES: readonly ["s", "m"];
|
|
2093
|
+
export type EuiButtonSize = typeof SIZES[number];
|
|
2094
|
+
interface BaseProps {
|
|
2095
|
+
children?: ReactNode;
|
|
2096
|
+
/**
|
|
2097
|
+
* Make button a solid color for prominence
|
|
2098
|
+
*/
|
|
2099
|
+
fill?: boolean;
|
|
2100
|
+
/**
|
|
2101
|
+
* Any of the named color palette options.
|
|
2102
|
+
* **`'ghost'` is set for deprecation. Use EuiThemeProvide.colorMode = 'dark' instead.**
|
|
2103
|
+
*/
|
|
2104
|
+
color?: EuiButtonColor;
|
|
2105
|
+
/**
|
|
2106
|
+
* Use size `s` in confined spaces
|
|
2107
|
+
*/
|
|
2108
|
+
size?: EuiButtonSize;
|
|
2109
|
+
/**
|
|
2110
|
+
* `disabled` is also allowed
|
|
2111
|
+
*/
|
|
2112
|
+
isDisabled?: boolean;
|
|
2113
|
+
}
|
|
2114
|
+
export interface EuiButtonProps extends BaseProps, Omit<EuiButtonDisplayCommonProps, 'size'>, CommonProps {
|
|
2115
|
+
}
|
|
2429
2116
|
export type EuiButtonPropsForAnchor = PropsForAnchor<EuiButtonProps, {
|
|
2430
2117
|
buttonRef?: Ref<HTMLAnchorElement>;
|
|
2431
2118
|
}>;
|
|
@@ -2448,6 +2135,12 @@ declare module '@elastic/eui/src/components/button/button' {
|
|
|
2448
2135
|
*/
|
|
2449
2136
|
baseClassName: string;
|
|
2450
2137
|
};
|
|
2138
|
+
export const sizeToClassNameMap: {
|
|
2139
|
+
[size in EuiButtonSize]: string | null;
|
|
2140
|
+
};
|
|
2141
|
+
export const colorToClassNameMap: {
|
|
2142
|
+
[color in EuiButtonColor]: string | null;
|
|
2143
|
+
};
|
|
2451
2144
|
/**
|
|
2452
2145
|
* *DEPRECATED*
|
|
2453
2146
|
* EuiButtonDisplay is an internal-only component used for displaying
|
|
@@ -2468,14 +2161,14 @@ declare module '@elastic/eui/src/components/button/button' {
|
|
|
2468
2161
|
*/
|
|
2469
2162
|
baseClassName: string;
|
|
2470
2163
|
} & React.RefAttributes<HTMLElement>>;
|
|
2164
|
+
export {};
|
|
2471
2165
|
|
|
2472
2166
|
}
|
|
2473
2167
|
declare module '@elastic/eui/src/components/button/button_empty/button_empty' {
|
|
2474
2168
|
import { FunctionComponent, Ref } from 'react';
|
|
2475
2169
|
import { CommonProps, ExclusiveUnion, PropsForAnchor, PropsForButton } from '@elastic/eui/src/components/common';
|
|
2476
2170
|
import { EuiButtonContentProps, EuiButtonContentType } from '@elastic/eui/src/components/button/_button_content_deprecated';
|
|
2477
|
-
|
|
2478
|
-
export const COLORS: EuiButtonEmptyColor[]; const sizeToClassNameMap: {
|
|
2171
|
+
import { _EuiButtonColor } from '@elastic/eui/src/themes/amsterdam/global_styling/mixins/button'; const sizeToClassNameMap: {
|
|
2479
2172
|
xs: string;
|
|
2480
2173
|
s: string;
|
|
2481
2174
|
m: null;
|
|
@@ -2493,9 +2186,10 @@ declare module '@elastic/eui/src/components/button/button_empty/button_empty' {
|
|
|
2493
2186
|
*/
|
|
2494
2187
|
export interface CommonEuiButtonEmptyProps extends EuiButtonContentProps, CommonProps {
|
|
2495
2188
|
/**
|
|
2496
|
-
* Any of
|
|
2189
|
+
* Any of the named color palette options.
|
|
2190
|
+
* **`'ghost'` is set for deprecation. Use EuiThemeProvide.colorMode = 'dark' instead.**
|
|
2497
2191
|
*/
|
|
2498
|
-
color?:
|
|
2192
|
+
color?: _EuiButtonColor | 'ghost';
|
|
2499
2193
|
size?: EuiButtonEmptySizes;
|
|
2500
2194
|
/**
|
|
2501
2195
|
* Ensure the text of the button sits flush to the left, right, or both sides of its container
|
|
@@ -2530,16 +2224,15 @@ declare module '@elastic/eui/src/components/button/button_empty/button_empty' {
|
|
|
2530
2224
|
|
|
2531
2225
|
}
|
|
2532
2226
|
declare module '@elastic/eui/src/components/button/button_empty' {
|
|
2533
|
-
export type {
|
|
2534
|
-
export {
|
|
2227
|
+
export type { EuiButtonEmptyProps, EuiButtonEmptySizes } from '@elastic/eui/src/components/button/button_empty/button_empty';
|
|
2228
|
+
export { EuiButtonEmpty } from '@elastic/eui/src/components/button/button_empty/button_empty';
|
|
2535
2229
|
|
|
2536
2230
|
}
|
|
2537
2231
|
declare module '@elastic/eui/src/components/button/button_icon/button_icon' {
|
|
2538
2232
|
import { FunctionComponent, Ref } from 'react';
|
|
2539
2233
|
import { CommonProps, ExclusiveUnion, PropsForAnchor, PropsForButton } from '@elastic/eui/src/components/common';
|
|
2540
2234
|
import { IconType, IconSize } from '@elastic/eui/src/components/icon';
|
|
2541
|
-
import {
|
|
2542
|
-
export type EuiButtonIconColor = ButtonColor; const displayToClassNameMap: {
|
|
2235
|
+
import { _EuiButtonColor } from '@elastic/eui/src/themes/amsterdam/global_styling/mixins/button'; const displayToClassNameMap: {
|
|
2543
2236
|
base: null;
|
|
2544
2237
|
empty: string;
|
|
2545
2238
|
fill: string;
|
|
@@ -2549,8 +2242,9 @@ declare module '@elastic/eui/src/components/button/button_icon/button_icon' {
|
|
|
2549
2242
|
iconType: IconType;
|
|
2550
2243
|
/**
|
|
2551
2244
|
* Any of the named color palette options.
|
|
2245
|
+
* **`'ghost'` is set for deprecation. Use EuiThemeProvide.colorMode = 'dark' instead.**
|
|
2552
2246
|
*/
|
|
2553
|
-
color?:
|
|
2247
|
+
color?: _EuiButtonColor | 'ghost';
|
|
2554
2248
|
'aria-label'?: string;
|
|
2555
2249
|
'aria-labelledby'?: string;
|
|
2556
2250
|
isDisabled?: boolean;
|
|
@@ -2590,8 +2284,7 @@ declare module '@elastic/eui/src/components/button/button_icon/button_icon' {
|
|
|
2590
2284
|
type?: 'submit' | 'reset' | 'button';
|
|
2591
2285
|
} & PropsForButton<EuiButtonIconProps, {
|
|
2592
2286
|
buttonRef?: Ref<HTMLButtonElement>;
|
|
2593
|
-
}>; type Props = ExclusiveUnion<EuiButtonIconPropsForAnchor, EuiButtonIconPropsForButton>;
|
|
2594
|
-
export const COLORS: ButtonColor[]; const sizeToClassNameMap: {
|
|
2287
|
+
}>; type Props = ExclusiveUnion<EuiButtonIconPropsForAnchor, EuiButtonIconPropsForButton>; const sizeToClassNameMap: {
|
|
2595
2288
|
xs: string;
|
|
2596
2289
|
s: string;
|
|
2597
2290
|
m: string;
|
|
@@ -2603,7 +2296,7 @@ declare module '@elastic/eui/src/components/button/button_icon/button_icon' {
|
|
|
2603
2296
|
|
|
2604
2297
|
}
|
|
2605
2298
|
declare module '@elastic/eui/src/components/button/button_icon' {
|
|
2606
|
-
export type {
|
|
2299
|
+
export type { EuiButtonIconProps, EuiButtonIconPropsForButton, EuiButtonIconPropsForAnchor, } from '@elastic/eui/src/components/button/button_icon/button_icon';
|
|
2607
2300
|
export { EuiButtonIcon } from '@elastic/eui/src/components/button/button_icon/button_icon';
|
|
2608
2301
|
|
|
2609
2302
|
}
|
|
@@ -2674,9 +2367,9 @@ declare module '@elastic/eui/src/components/button/button_group/button_group_but
|
|
|
2674
2367
|
}
|
|
2675
2368
|
declare module '@elastic/eui/src/components/button/button_group/button_group' {
|
|
2676
2369
|
import { FunctionComponent, HTMLAttributes, ReactNode } from 'react';
|
|
2677
|
-
import { ButtonColor } from '@elastic/eui/src/components/button/button';
|
|
2678
2370
|
import { EuiButtonContentProps } from '@elastic/eui/src/components/button/_button_content_deprecated';
|
|
2679
2371
|
import { CommonProps } from '@elastic/eui/src/components/common';
|
|
2372
|
+
import { _EuiButtonColor } from '@elastic/eui/src/themes/amsterdam/global_styling/mixins';
|
|
2680
2373
|
export interface EuiButtonGroupOptionProps extends EuiButtonContentProps, CommonProps {
|
|
2681
2374
|
/**
|
|
2682
2375
|
* Each option must have a unique `id` for maintaining selection
|
|
@@ -2717,9 +2410,9 @@ declare module '@elastic/eui/src/components/button/button_group/button_group' {
|
|
|
2717
2410
|
*/
|
|
2718
2411
|
legend: string;
|
|
2719
2412
|
/**
|
|
2720
|
-
*
|
|
2413
|
+
* Any of the named color palette options.
|
|
2721
2414
|
*/
|
|
2722
|
-
color?:
|
|
2415
|
+
color?: _EuiButtonColor;
|
|
2723
2416
|
/**
|
|
2724
2417
|
* Actual type is `'single' | 'multi'`.
|
|
2725
2418
|
* Determines how the selection of the group should be handled.
|
|
@@ -2777,11 +2470,11 @@ declare module '@elastic/eui/src/components/button/button_group' {
|
|
|
2777
2470
|
|
|
2778
2471
|
}
|
|
2779
2472
|
declare module '@elastic/eui/src/components/button' {
|
|
2780
|
-
export type {
|
|
2473
|
+
export type { EuiButtonColor, EuiButtonSize, EuiButtonProps } from '@elastic/eui/src/components/button/button';
|
|
2781
2474
|
export { COLORS, EuiButton } from '@elastic/eui/src/components/button/button';
|
|
2782
|
-
export type {
|
|
2475
|
+
export type { EuiButtonEmptyProps, EuiButtonEmptySizes } from '@elastic/eui/src/components/button/button_empty';
|
|
2783
2476
|
export { EuiButtonEmpty } from '@elastic/eui/src/components/button/button_empty';
|
|
2784
|
-
export type {
|
|
2477
|
+
export type { EuiButtonIconProps, EuiButtonIconPropsForButton, } from '@elastic/eui/src/components/button/button_icon';
|
|
2785
2478
|
export { EuiButtonIcon } from '@elastic/eui/src/components/button/button_icon';
|
|
2786
2479
|
export type { EuiButtonGroupOptionProps, EuiButtonGroupProps, } from '@elastic/eui/src/components/button/button_group';
|
|
2787
2480
|
export { EuiButtonGroup } from '@elastic/eui/src/components/button/button_group';
|
|
@@ -2962,8 +2655,8 @@ declare module '@elastic/eui/src/components/link/link.styles' {
|
|
|
2962
2655
|
import { UseEuiTheme } from '@elastic/eui/src/services';
|
|
2963
2656
|
export const euiLinkHoverCSS: () => string;
|
|
2964
2657
|
export const euiLinkFocusCSS: (euiTheme: UseEuiTheme['euiTheme']) => string;
|
|
2965
|
-
export const euiLinkCSS: (
|
|
2966
|
-
export const euiLinkStyles: (
|
|
2658
|
+
export const euiLinkCSS: (euiThemeContext: UseEuiTheme) => string;
|
|
2659
|
+
export const euiLinkStyles: (euiThemeContext: UseEuiTheme) => {
|
|
2967
2660
|
euiLink: import("@emotion/utils").SerializedStyles;
|
|
2968
2661
|
disabled: import("@emotion/utils").SerializedStyles;
|
|
2969
2662
|
primary: import("@emotion/utils").SerializedStyles;
|
|
@@ -3124,7 +2817,7 @@ declare module '@elastic/eui/src/components/flex/flex_group' {
|
|
|
3124
2817
|
l: string;
|
|
3125
2818
|
xl: string;
|
|
3126
2819
|
};
|
|
3127
|
-
export const GUTTER_SIZES: ("s" | "
|
|
2820
|
+
export const GUTTER_SIZES: ("s" | "xs" | "m" | "l" | "xl" | "none")[];
|
|
3128
2821
|
export type EuiFlexGroupGutterSize = keyof typeof gutterSizeToClassNameMap; const alignItemsToClassNameMap: {
|
|
3129
2822
|
stretch: null;
|
|
3130
2823
|
flexStart: string;
|
|
@@ -3819,118 +3512,41 @@ declare module '@elastic/eui/src/components/form/file_picker/file_picker' {
|
|
|
3819
3512
|
/**
|
|
3820
3513
|
* Size or type of display;
|
|
3821
3514
|
* `default` for normal height, similar to other controls;
|
|
3822
|
-
* `large` for taller size
|
|
3823
|
-
*/
|
|
3824
|
-
display?: EuiFilePickerDisplay;
|
|
3825
|
-
fullWidth?: boolean;
|
|
3826
|
-
isInvalid?: boolean;
|
|
3827
|
-
isLoading?: boolean;
|
|
3828
|
-
disabled?: boolean;
|
|
3829
|
-
}
|
|
3830
|
-
export class EuiFilePicker extends Component<EuiFilePickerProps> {
|
|
3831
|
-
static defaultProps: {
|
|
3832
|
-
initialPromptText: JSX.Element;
|
|
3833
|
-
compressed: boolean;
|
|
3834
|
-
display: string;
|
|
3835
|
-
};
|
|
3836
|
-
state: {
|
|
3837
|
-
promptText: null;
|
|
3838
|
-
isHoveringDrop: boolean;
|
|
3839
|
-
};
|
|
3840
|
-
fileInput: HTMLInputElement | null;
|
|
3841
|
-
generatedId: string;
|
|
3842
|
-
handleChange: () => void;
|
|
3843
|
-
removeFiles: (e?: React.MouseEvent<HTMLButtonElement, MouseEvent> | undefined) => void;
|
|
3844
|
-
showDrop: () => void;
|
|
3845
|
-
hideDrop: () => void;
|
|
3846
|
-
render(): JSX.Element;
|
|
3847
|
-
}
|
|
3848
|
-
export {};
|
|
3849
|
-
|
|
3850
|
-
}
|
|
3851
|
-
declare module '@elastic/eui/src/components/form/file_picker' {
|
|
3852
|
-
export type { EuiFilePickerProps } from '@elastic/eui/src/components/form/file_picker/file_picker';
|
|
3853
|
-
export { EuiFilePicker } from '@elastic/eui/src/components/form/file_picker/file_picker';
|
|
3854
|
-
|
|
3855
|
-
}
|
|
3856
|
-
declare module '@elastic/eui/src/themes/amsterdam/global_styling/mixins/button' {
|
|
3857
|
-
import { UseEuiTheme } from '@elastic/eui/src/services';
|
|
3858
|
-
export const BUTTON_COLORS: readonly ["text", "accent", "primary", "success", "warning", "danger", "disabled"];
|
|
3859
|
-
export type _EuiButtonColor = typeof BUTTON_COLORS[number];
|
|
3860
|
-
export const euiButtonColor: (color: _EuiButtonColor, { euiTheme, colorMode }: UseEuiTheme) => string;
|
|
3861
|
-
export const useEuiButtonColorCSS: () => {
|
|
3862
|
-
text: import("@emotion/utils").SerializedStyles;
|
|
3863
|
-
accent: import("@emotion/utils").SerializedStyles;
|
|
3864
|
-
primary: import("@emotion/utils").SerializedStyles;
|
|
3865
|
-
success: import("@emotion/utils").SerializedStyles;
|
|
3866
|
-
warning: import("@emotion/utils").SerializedStyles;
|
|
3867
|
-
danger: import("@emotion/utils").SerializedStyles;
|
|
3868
|
-
disabled: import("@emotion/utils").SerializedStyles;
|
|
3869
|
-
};
|
|
3870
|
-
|
|
3871
|
-
}
|
|
3872
|
-
declare module '@elastic/eui/src/themes/amsterdam/global_styling/functions/shadows' {
|
|
3873
|
-
import { EuiThemeColorModeStandard } from '@elastic/eui/src/services/theme/types';
|
|
3874
|
-
export const getShadowColor: (color: string, opacity: number, colorMode: EuiThemeColorModeStandard) => string;
|
|
3875
|
-
|
|
3876
|
-
}
|
|
3877
|
-
declare module '@elastic/eui/src/themes/amsterdam/global_styling/functions' {
|
|
3878
|
-
export * from '@elastic/eui/src/themes/amsterdam/global_styling/functions/shadows';
|
|
3879
|
-
|
|
3880
|
-
}
|
|
3881
|
-
declare module '@elastic/eui/src/themes/amsterdam/global_styling/mixins/shadow' {
|
|
3882
|
-
import { UseEuiTheme } from '@elastic/eui/src/services/theme';
|
|
3883
|
-
import { _EuiThemeShadowSize, _EuiThemeShadowCustomColor } from '@elastic/eui/src/global_styling/variables/shadow';
|
|
3884
|
-
export interface EuiShadowCustomColor {
|
|
3885
|
-
color?: string;
|
|
3886
|
-
}
|
|
3887
|
-
/**
|
|
3888
|
-
* euiSlightShadow
|
|
3889
|
-
*/
|
|
3890
|
-
export const euiShadowXSmall: ({ euiTheme, colorMode }: UseEuiTheme, { color: _color }?: _EuiThemeShadowCustomColor) => string;
|
|
3891
|
-
/**
|
|
3892
|
-
* bottomShadowSmall
|
|
3893
|
-
*/
|
|
3894
|
-
export const euiShadowSmall: ({ euiTheme, colorMode }: UseEuiTheme, { color: _color }?: _EuiThemeShadowCustomColor) => string;
|
|
3895
|
-
/**
|
|
3896
|
-
* bottomShadowMedium
|
|
3897
|
-
*/
|
|
3898
|
-
export const euiShadowMedium: ({ euiTheme, colorMode }: UseEuiTheme, { color: _color, property }?: _EuiThemeShadowCustomColor) => string;
|
|
3899
|
-
/**
|
|
3900
|
-
* bottomShadow
|
|
3901
|
-
*/
|
|
3902
|
-
export const euiShadowLarge: ({ euiTheme, colorMode }: UseEuiTheme, { color: _color }?: _EuiThemeShadowCustomColor) => string;
|
|
3903
|
-
/**
|
|
3904
|
-
* bottomShadowLarge
|
|
3905
|
-
*/
|
|
3906
|
-
export interface EuiShadowXLarge extends _EuiThemeShadowCustomColor {
|
|
3907
|
-
reverse?: boolean;
|
|
3515
|
+
* `large` for taller size
|
|
3516
|
+
*/
|
|
3517
|
+
display?: EuiFilePickerDisplay;
|
|
3518
|
+
fullWidth?: boolean;
|
|
3519
|
+
isInvalid?: boolean;
|
|
3520
|
+
isLoading?: boolean;
|
|
3521
|
+
disabled?: boolean;
|
|
3908
3522
|
}
|
|
3909
|
-
export
|
|
3910
|
-
|
|
3911
|
-
|
|
3912
|
-
|
|
3913
|
-
|
|
3914
|
-
|
|
3915
|
-
|
|
3916
|
-
|
|
3917
|
-
|
|
3918
|
-
|
|
3919
|
-
|
|
3920
|
-
|
|
3921
|
-
|
|
3922
|
-
|
|
3923
|
-
|
|
3924
|
-
|
|
3925
|
-
|
|
3523
|
+
export class EuiFilePicker extends Component<EuiFilePickerProps> {
|
|
3524
|
+
static defaultProps: {
|
|
3525
|
+
initialPromptText: JSX.Element;
|
|
3526
|
+
compressed: boolean;
|
|
3527
|
+
display: string;
|
|
3528
|
+
};
|
|
3529
|
+
state: {
|
|
3530
|
+
promptText: null;
|
|
3531
|
+
isHoveringDrop: boolean;
|
|
3532
|
+
};
|
|
3533
|
+
fileInput: HTMLInputElement | null;
|
|
3534
|
+
generatedId: string;
|
|
3535
|
+
handleChange: () => void;
|
|
3536
|
+
removeFiles: (e?: React.MouseEvent<HTMLButtonElement, MouseEvent> | undefined) => void;
|
|
3537
|
+
showDrop: () => void;
|
|
3538
|
+
hideDrop: () => void;
|
|
3539
|
+
render(): JSX.Element;
|
|
3540
|
+
}
|
|
3541
|
+
export {};
|
|
3926
3542
|
|
|
3927
3543
|
}
|
|
3928
|
-
declare module '@elastic/eui/src/
|
|
3929
|
-
export
|
|
3930
|
-
export
|
|
3544
|
+
declare module '@elastic/eui/src/components/form/file_picker' {
|
|
3545
|
+
export type { EuiFilePickerProps } from '@elastic/eui/src/components/form/file_picker/file_picker';
|
|
3546
|
+
export { EuiFilePicker } from '@elastic/eui/src/components/form/file_picker/file_picker';
|
|
3931
3547
|
|
|
3932
3548
|
}
|
|
3933
|
-
declare module '@elastic/eui/src/components/panel/panel.
|
|
3549
|
+
declare module '@elastic/eui/src/components/panel/panel.styles' {
|
|
3934
3550
|
import { UseEuiTheme } from '@elastic/eui/src/services';
|
|
3935
3551
|
export const euiPanelStyles: (euiThemeContext: UseEuiTheme) => {
|
|
3936
3552
|
euiPanel: import("@emotion/utils").SerializedStyles;
|
|
@@ -3949,7 +3565,7 @@ declare module '@elastic/eui/src/components/panel/panel' {
|
|
|
3949
3565
|
import { ButtonHTMLAttributes, FunctionComponent, HTMLAttributes, Ref } from 'react';
|
|
3950
3566
|
import { _EuiBackgroundColor, EuiPaddingSize } from '@elastic/eui/src/global_styling';
|
|
3951
3567
|
import { CommonProps, ExclusiveUnion } from '@elastic/eui/src/components/common';
|
|
3952
|
-
export const SIZES: readonly ["none", "xs", "s", "m", "l", "xl"]; const _SIZES: ("s" | "
|
|
3568
|
+
export const SIZES: readonly ["none", "xs", "s", "m", "l", "xl"]; const _SIZES: ("s" | "xs" | "m" | "l" | "xl" | "none")[];
|
|
3953
3569
|
export type PanelPaddingSize = typeof _SIZES[number];
|
|
3954
3570
|
export const BORDER_RADII: readonly ["none", "m"];
|
|
3955
3571
|
export type PanelBorderRadius = typeof BORDER_RADII[number];
|
|
@@ -4149,7 +3765,7 @@ declare module '@elastic/eui/src/components/form/form_row/form_row' {
|
|
|
4149
3765
|
centerCompressed: string;
|
|
4150
3766
|
columnCompressedSwitch: string;
|
|
4151
3767
|
};
|
|
4152
|
-
export const DISPLAYS: ("
|
|
3768
|
+
export const DISPLAYS: ("center" | "row" | "rowCompressed" | "columnCompressed" | "centerCompressed" | "columnCompressedSwitch")[];
|
|
4153
3769
|
export type EuiFormRowDisplayKeys = keyof typeof displayToClassNameMap;
|
|
4154
3770
|
interface EuiFormRowState {
|
|
4155
3771
|
isFocused: boolean;
|
|
@@ -4528,7 +4144,7 @@ declare module '@elastic/eui/src/services/popover/popover_positioning' {
|
|
|
4528
4144
|
interface FindPopoverPositionResult {
|
|
4529
4145
|
top: number;
|
|
4530
4146
|
left: number;
|
|
4531
|
-
position:
|
|
4147
|
+
position: EuiPopoverPosition;
|
|
4532
4148
|
fit: number;
|
|
4533
4149
|
arrow?: {
|
|
4534
4150
|
left: number;
|
|
@@ -4727,6 +4343,7 @@ declare module '@elastic/eui/src/components/popover/popover.styles' {
|
|
|
4727
4343
|
}
|
|
4728
4344
|
declare module '@elastic/eui/src/components/popover/popover_panel/_popover_panel.styles' {
|
|
4729
4345
|
import { UseEuiTheme } from '@elastic/eui/src/services';
|
|
4346
|
+
export const openAnimationTiming = "slow";
|
|
4730
4347
|
/**
|
|
4731
4348
|
* 1. Can expand further, but it looks weird if it's smaller than the originating button.
|
|
4732
4349
|
* 2. Animation happens on the panel. But don't animate position when using the attached mode like for inputs
|
|
@@ -4915,6 +4532,10 @@ declare module '@elastic/eui/src/components/popover/popover' {
|
|
|
4915
4532
|
* Usually takes the `id` of the popover title
|
|
4916
4533
|
*/
|
|
4917
4534
|
'aria-labelledby'?: string;
|
|
4535
|
+
/**
|
|
4536
|
+
* Function callback for when the popover positon changes
|
|
4537
|
+
*/
|
|
4538
|
+
onPositionChange?: (position: EuiPopoverPosition) => void;
|
|
4918
4539
|
}
|
|
4919
4540
|
export function getPopoverPositionFromAnchorPosition(anchorPosition: PopoverAnchorPosition): EuiPopoverPosition;
|
|
4920
4541
|
export function getPopoverAlignFromAnchorPosition(anchorPosition: PopoverAnchorPosition): EuiPopoverPosition;
|
|
@@ -5639,7 +5260,8 @@ declare module '@elastic/eui/src/components/tool_tip/tool_tip_popover' {
|
|
|
5639
5260
|
|
|
5640
5261
|
}
|
|
5641
5262
|
declare module '@elastic/eui/src/components/tool_tip/tool_tip' {
|
|
5642
|
-
import { Component, ReactElement, ReactNode, MouseEvent as ReactMouseEvent } from 'react';
|
|
5263
|
+
import { Component, ReactElement, ReactNode, MouseEvent as ReactMouseEvent, HTMLAttributes } from 'react';
|
|
5264
|
+
import { CommonProps } from '@elastic/eui/src/components/common';
|
|
5643
5265
|
export type ToolTipPositions = 'top' | 'right' | 'bottom' | 'left';
|
|
5644
5266
|
export const POSITIONS: ToolTipPositions[];
|
|
5645
5267
|
export type ToolTipDelay = 'regular' | 'long';
|
|
@@ -5655,9 +5277,13 @@ declare module '@elastic/eui/src/components/tool_tip/tool_tip' {
|
|
|
5655
5277
|
};
|
|
5656
5278
|
export interface EuiToolTipProps {
|
|
5657
5279
|
/**
|
|
5658
|
-
* Passes onto the the trigger.
|
|
5280
|
+
* Passes onto the span wrapping the trigger.
|
|
5659
5281
|
*/
|
|
5660
5282
|
anchorClassName?: string;
|
|
5283
|
+
/**
|
|
5284
|
+
* Passes onto the span wrapping the trigger.
|
|
5285
|
+
*/
|
|
5286
|
+
anchorProps?: CommonProps & HTMLAttributes<HTMLSpanElement>;
|
|
5661
5287
|
/**
|
|
5662
5288
|
* The in-view trigger for your tooltip.
|
|
5663
5289
|
*/
|
|
@@ -6578,6 +6204,249 @@ declare module '@elastic/eui/src/themes/amsterdam/global_styling/variables/_anim
|
|
|
6578
6204
|
export const animation_ease: _EuiThemeAnimationEasings;
|
|
6579
6205
|
export const animation: _EuiThemeAnimation;
|
|
6580
6206
|
|
|
6207
|
+
}
|
|
6208
|
+
declare module '@elastic/eui/src/global_styling/variables' {
|
|
6209
|
+
export * from '@elastic/eui/src/global_styling/variables/animations';
|
|
6210
|
+
export * from '@elastic/eui/src/global_styling/variables/borders';
|
|
6211
|
+
export * from '@elastic/eui/src/global_styling/variables/breakpoint';
|
|
6212
|
+
export * from '@elastic/eui/src/global_styling/variables/colors';
|
|
6213
|
+
export * from '@elastic/eui/src/global_styling/variables/levels';
|
|
6214
|
+
export * from '@elastic/eui/src/global_styling/variables/size';
|
|
6215
|
+
export * from '@elastic/eui/src/global_styling/variables/shadow';
|
|
6216
|
+
export * from '@elastic/eui/src/global_styling/variables/states';
|
|
6217
|
+
export * from '@elastic/eui/src/global_styling/variables/typography';
|
|
6218
|
+
|
|
6219
|
+
}
|
|
6220
|
+
declare module '@elastic/eui/src/themes/amsterdam/global_styling/variables/_breakpoint' {
|
|
6221
|
+
import { _EuiThemeBreakpoints } from '@elastic/eui/src/global_styling/variables';
|
|
6222
|
+
export const breakpoint: _EuiThemeBreakpoints;
|
|
6223
|
+
|
|
6224
|
+
}
|
|
6225
|
+
declare module '@elastic/eui/src/global_styling/functions/logicals' {
|
|
6226
|
+
/**
|
|
6227
|
+
* EUI utilizes logical CSS properties to enable directional writing-modes.
|
|
6228
|
+
* To encourage use of logical properties, we provide a few helper utilities to
|
|
6229
|
+
* convert certain directional properties to logical properties.
|
|
6230
|
+
* https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Logical_Properties
|
|
6231
|
+
*/
|
|
6232
|
+
export const logicalSide: {
|
|
6233
|
+
left: string;
|
|
6234
|
+
right: string;
|
|
6235
|
+
top: string;
|
|
6236
|
+
bottom: string;
|
|
6237
|
+
horizontal: string;
|
|
6238
|
+
vertical: string;
|
|
6239
|
+
};
|
|
6240
|
+
export const LOGICAL_SIDES: ("left" | "right" | "top" | "bottom" | "horizontal" | "vertical")[];
|
|
6241
|
+
export type LogicalSides = typeof LOGICAL_SIDES[number];
|
|
6242
|
+
export const logicals: {
|
|
6243
|
+
height: string;
|
|
6244
|
+
width: string;
|
|
6245
|
+
"max-height": string;
|
|
6246
|
+
"max-width": string;
|
|
6247
|
+
"min-height": string;
|
|
6248
|
+
"min-width": string;
|
|
6249
|
+
top: string;
|
|
6250
|
+
right: string;
|
|
6251
|
+
bottom: string;
|
|
6252
|
+
left: string;
|
|
6253
|
+
horizontal: string;
|
|
6254
|
+
vertical: string;
|
|
6255
|
+
"margin-left": string;
|
|
6256
|
+
"margin-right": string;
|
|
6257
|
+
"margin-top": string;
|
|
6258
|
+
"margin-bottom": string;
|
|
6259
|
+
"margin-horizontal": string;
|
|
6260
|
+
"margin-vertical": string;
|
|
6261
|
+
"padding-left": string;
|
|
6262
|
+
"padding-right": string;
|
|
6263
|
+
"padding-top": string;
|
|
6264
|
+
"padding-bottom": string;
|
|
6265
|
+
"padding-horizontal": string;
|
|
6266
|
+
"padding-vertical": string;
|
|
6267
|
+
"overflow-x": string;
|
|
6268
|
+
"overflow-y": string;
|
|
6269
|
+
"border-horizontal": string;
|
|
6270
|
+
"border-horizontal-color": string;
|
|
6271
|
+
"border-horizontal-width": string;
|
|
6272
|
+
"border-horizontal-style": string;
|
|
6273
|
+
"border-vertical": string;
|
|
6274
|
+
"border-vertical-color": string;
|
|
6275
|
+
"border-vertical-width": string;
|
|
6276
|
+
"border-vertical-style": string;
|
|
6277
|
+
"border-bottom": string;
|
|
6278
|
+
"border-bottom-color": string;
|
|
6279
|
+
"border-bottom-style": string;
|
|
6280
|
+
"border-bottom-width": string;
|
|
6281
|
+
"border-top": string;
|
|
6282
|
+
"border-top-color": string;
|
|
6283
|
+
"border-top-style": string;
|
|
6284
|
+
"border-top-width": string;
|
|
6285
|
+
"border-right": string;
|
|
6286
|
+
"border-right-color": string;
|
|
6287
|
+
"border-right-style": string;
|
|
6288
|
+
"border-right-width": string;
|
|
6289
|
+
"border-left": string;
|
|
6290
|
+
"border-left-color": string;
|
|
6291
|
+
"border-left-style": string;
|
|
6292
|
+
"border-left-width": string;
|
|
6293
|
+
"border-top-left-radius": string;
|
|
6294
|
+
"border-top-right-radius": string;
|
|
6295
|
+
"border-bottom-left-radius": string;
|
|
6296
|
+
"border-bottom-right-radius": string;
|
|
6297
|
+
};
|
|
6298
|
+
export const LOGICAL_PROPERTIES: ("left" | "right" | "top" | "width" | "height" | "max-height" | "max-width" | "min-height" | "min-width" | "bottom" | "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")[];
|
|
6299
|
+
export type LogicalProperties = typeof LOGICAL_PROPERTIES[number];
|
|
6300
|
+
/**
|
|
6301
|
+
*
|
|
6302
|
+
* @param property A string that is a valid CSS logical property
|
|
6303
|
+
* @param value String to output as the property value
|
|
6304
|
+
* @returns `string` Returns the logical CSS property version for the given `property: value` pair
|
|
6305
|
+
*/
|
|
6306
|
+
export const logicalCSS: (property: LogicalProperties, value?: any) => string;
|
|
6307
|
+
/**
|
|
6308
|
+
* Some logical properties are not yet fully supported by all browsers.
|
|
6309
|
+
* For those cases, we should use the old property as a fallback for
|
|
6310
|
+
* browsers missing support, while allowing supporting browsers to use
|
|
6311
|
+
* the logical properties.
|
|
6312
|
+
*
|
|
6313
|
+
* Examples:
|
|
6314
|
+
* https://caniuse.com/?search=overflow-block
|
|
6315
|
+
* https://caniuse.com/mdn-css_properties_float_flow_relative_values
|
|
6316
|
+
*/
|
|
6317
|
+
export const logicalCSSWithFallback: (property: LogicalProperties, value?: any) => string;
|
|
6318
|
+
/**
|
|
6319
|
+
*
|
|
6320
|
+
* @param property A string that is a valid CSS logical property
|
|
6321
|
+
* @param value String to output as the property value
|
|
6322
|
+
* @returns `object` Returns the logical CSS property version for the given `property: value` pair
|
|
6323
|
+
*/
|
|
6324
|
+
export const logicalStyle: (property: LogicalProperties, value?: any) => {
|
|
6325
|
+
[x: string]: any;
|
|
6326
|
+
};
|
|
6327
|
+
/**
|
|
6328
|
+
*
|
|
6329
|
+
* @param width A string value for the LTR width
|
|
6330
|
+
* @param height A string value for the LTR height
|
|
6331
|
+
* @returns `string` Returns the logical CSS properties for height and width
|
|
6332
|
+
*/
|
|
6333
|
+
export const logicalSizeCSS: (width: any, height: any) => string;
|
|
6334
|
+
/**
|
|
6335
|
+
*
|
|
6336
|
+
* @param width A string value for the LTR width
|
|
6337
|
+
* @param height A string value for the LTR height
|
|
6338
|
+
* @returns `object` Returns the logical CSS properties for height and width
|
|
6339
|
+
*/
|
|
6340
|
+
export const logicalSizeStyle: (width: any, height: any) => {
|
|
6341
|
+
[x: string]: any;
|
|
6342
|
+
};
|
|
6343
|
+
export const logicalText: {
|
|
6344
|
+
'text-align': {
|
|
6345
|
+
left: string;
|
|
6346
|
+
center: string;
|
|
6347
|
+
right: string;
|
|
6348
|
+
};
|
|
6349
|
+
};
|
|
6350
|
+
export const LOGICAL_TEXT_ALIGNMENT: ("left" | "right" | "center")[];
|
|
6351
|
+
export type LogicalText = typeof LOGICAL_TEXT_ALIGNMENT[number];
|
|
6352
|
+
/**
|
|
6353
|
+
*
|
|
6354
|
+
* @param property A string that is a valid CSS logical property
|
|
6355
|
+
* @param value String to output as the property value
|
|
6356
|
+
* @returns `string` Returns the logical CSS property version for the given `property: value` pair
|
|
6357
|
+
*/
|
|
6358
|
+
export const logicalTextAlignCSS: (value: LogicalText) => string;
|
|
6359
|
+
/**
|
|
6360
|
+
*
|
|
6361
|
+
* @param property A string that is a valid CSS logical property
|
|
6362
|
+
* @param value String to output as the property value
|
|
6363
|
+
* @returns `object` Returns the logical CSS property version for the given `property: value` pair
|
|
6364
|
+
*/
|
|
6365
|
+
export const logicalTextAlignStyle: (value: LogicalText) => {
|
|
6366
|
+
textAlign: string;
|
|
6367
|
+
};
|
|
6368
|
+
|
|
6369
|
+
}
|
|
6370
|
+
declare module '@elastic/eui/src/global_styling/functions/size' {
|
|
6371
|
+
/**
|
|
6372
|
+
* Calculates the `px` value based on a scale multiplier
|
|
6373
|
+
* @param scale - The font scale multiplier
|
|
6374
|
+
* *
|
|
6375
|
+
* @param themeOrBase - Theme base value
|
|
6376
|
+
* *
|
|
6377
|
+
* @returns string - Rem unit aligned to baseline
|
|
6378
|
+
*/
|
|
6379
|
+
export const sizeToPixel: (scale?: number) => (themeOrBase: number | {
|
|
6380
|
+
[key: string]: any;
|
|
6381
|
+
base: number;
|
|
6382
|
+
}) => string;
|
|
6383
|
+
|
|
6384
|
+
}
|
|
6385
|
+
declare module '@elastic/eui/src/services/theme/hooks' {
|
|
6386
|
+
import React from 'react';
|
|
6387
|
+
import { EuiThemeColorModeStandard, EuiThemeModifications, EuiThemeComputed } from '@elastic/eui/src/services/theme/types';
|
|
6388
|
+
export interface UseEuiTheme<T extends {} = {}> {
|
|
6389
|
+
euiTheme: EuiThemeComputed<T>;
|
|
6390
|
+
colorMode: EuiThemeColorModeStandard;
|
|
6391
|
+
modifications: EuiThemeModifications<T>;
|
|
6392
|
+
}
|
|
6393
|
+
export const useEuiTheme: <T extends {} = {}>() => UseEuiTheme<T>;
|
|
6394
|
+
export interface WithEuiThemeProps<P = {}> {
|
|
6395
|
+
theme: UseEuiTheme<P>;
|
|
6396
|
+
}
|
|
6397
|
+
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">>>;
|
|
6398
|
+
|
|
6399
|
+
}
|
|
6400
|
+
declare module '@elastic/eui/src/global_styling/functions/typography' {
|
|
6401
|
+
import { _EuiThemeFontScale, _EuiThemeFontSizeMeasurement } from '@elastic/eui/src/global_styling/variables/typography';
|
|
6402
|
+
import { UseEuiTheme } from '@elastic/eui/src/services/theme/hooks';
|
|
6403
|
+
export interface _FontScaleOptions {
|
|
6404
|
+
/**
|
|
6405
|
+
* The returned string measurement
|
|
6406
|
+
*/
|
|
6407
|
+
measurement?: _EuiThemeFontSizeMeasurement;
|
|
6408
|
+
/**
|
|
6409
|
+
* An additional custom scale multiplier to use against the current scale
|
|
6410
|
+
* This parameter can be used (e.g. by EuiText sizes) to get sizes of text smaller than the default
|
|
6411
|
+
*/
|
|
6412
|
+
customScale?: _EuiThemeFontScale;
|
|
6413
|
+
}
|
|
6414
|
+
/**
|
|
6415
|
+
* Calculates the font-size value based on the provided scale key
|
|
6416
|
+
* @param scale - The font scale key
|
|
6417
|
+
* @param theme - Requires the `base` and `font` keys
|
|
6418
|
+
* @param options - Optional parameters - see _FontScaleOptions
|
|
6419
|
+
*
|
|
6420
|
+
* @returns string - Calculated font-size value
|
|
6421
|
+
*/
|
|
6422
|
+
export function euiFontSizeFromScale(scale: _EuiThemeFontScale, { base, font }: UseEuiTheme['euiTheme'], { measurement, customScale }?: _FontScaleOptions): string;
|
|
6423
|
+
/**
|
|
6424
|
+
* Calculates the line-height to the closest multiple of the baseline
|
|
6425
|
+
* EX: A proper line-height for text is 1.5 times the font-size.
|
|
6426
|
+
* If our base font size (euiFontSize) is 16, and our baseline is 4. To ensure the
|
|
6427
|
+
* text stays on the baseline, we pass a multiplier to calculate a line-height.
|
|
6428
|
+
* @param scale - The font scale key
|
|
6429
|
+
* @param theme - Requires the `base` and `font` keys
|
|
6430
|
+
* @param options - Optional parameters - see _FontScaleOptions
|
|
6431
|
+
*
|
|
6432
|
+
* @returns string - Calculated line-height value aligned to baseline
|
|
6433
|
+
*/
|
|
6434
|
+
export function euiLineHeightFromBaseline(scale: _EuiThemeFontScale, { base, font }: UseEuiTheme['euiTheme'], { measurement, customScale }?: _FontScaleOptions): string;
|
|
6435
|
+
/**
|
|
6436
|
+
* Text weight shifting
|
|
6437
|
+
*
|
|
6438
|
+
* When changing the font-weight based on the state of the component,
|
|
6439
|
+
* this mixin will ensure that the sizing is dependent on the boldest
|
|
6440
|
+
* weight so it doesn't shift sibling content.
|
|
6441
|
+
*/
|
|
6442
|
+
export const euiTextShift: (fontWeight: "bold" | "medium" | "light" | "regular" | "semiBold" | undefined, attribute: string | undefined, euiTheme: UseEuiTheme['euiTheme']) => string;
|
|
6443
|
+
|
|
6444
|
+
}
|
|
6445
|
+
declare module '@elastic/eui/src/global_styling/functions' {
|
|
6446
|
+
export * from '@elastic/eui/src/global_styling/functions/logicals';
|
|
6447
|
+
export * from '@elastic/eui/src/global_styling/functions/size';
|
|
6448
|
+
export * from '@elastic/eui/src/global_styling/functions/typography';
|
|
6449
|
+
|
|
6581
6450
|
}
|
|
6582
6451
|
declare module '@elastic/eui/src/themes/amsterdam/global_styling/variables/_size' {
|
|
6583
6452
|
import { _EuiThemeBase, _EuiThemeSizes } from '@elastic/eui/src/global_styling/variables';
|
|
@@ -6654,6 +6523,16 @@ declare module '@elastic/eui/src/services/theme' {
|
|
|
6654
6523
|
declare module '@elastic/eui/src/services/throttle' {
|
|
6655
6524
|
export const throttle: (fn: (...args: any[]) => void, wait?: number) => (...args: any[]) => void;
|
|
6656
6525
|
|
|
6526
|
+
}
|
|
6527
|
+
declare module '@elastic/eui/src/services/breakpoint/_sorting' {
|
|
6528
|
+
import { _EuiThemeBreakpoints } from '@elastic/eui/src/global_styling/variables/breakpoint';
|
|
6529
|
+
export const sortMapByLargeToSmallValues: (breakpointsMap: _EuiThemeBreakpoints) => {
|
|
6530
|
+
[k: string]: number;
|
|
6531
|
+
};
|
|
6532
|
+
export const sortMapBySmallToLargeValues: (breakpointsMap: _EuiThemeBreakpoints) => {
|
|
6533
|
+
[k: string]: number;
|
|
6534
|
+
};
|
|
6535
|
+
|
|
6657
6536
|
}
|
|
6658
6537
|
declare module '@elastic/eui/src/services/breakpoint/current_breakpoint' {
|
|
6659
6538
|
import React, { FunctionComponent } from 'react';
|
|
@@ -6674,29 +6553,47 @@ declare module '@elastic/eui/src/services/breakpoint/current_breakpoint_hook' {
|
|
|
6674
6553
|
* This hook is in its own separate file to make mocking it
|
|
6675
6554
|
* as a testenv easy for Jest unit tests
|
|
6676
6555
|
*/
|
|
6677
|
-
export const useCurrentEuiBreakpoint: () =>
|
|
6556
|
+
export const useCurrentEuiBreakpoint: () => string | undefined;
|
|
6678
6557
|
|
|
6679
6558
|
}
|
|
6680
|
-
declare module '@elastic/eui/src/services/breakpoint/
|
|
6559
|
+
declare module '@elastic/eui/src/services/breakpoint/is_within_hooks' {
|
|
6681
6560
|
import { _EuiThemeBreakpoint } from '@elastic/eui/src/global_styling/variables/breakpoint';
|
|
6682
6561
|
/**
|
|
6683
|
-
* Given
|
|
6684
|
-
*
|
|
6685
|
-
*
|
|
6562
|
+
* Given an array of breakpoint keys, this hook returns true or false
|
|
6563
|
+
* if the breakpoint size of the current window width falls within
|
|
6564
|
+
* any of the named breakpoints.
|
|
6686
6565
|
*
|
|
6687
|
-
* @param {
|
|
6566
|
+
* @param {EuiThemeBreakpoint[]} sizes An array of named EUI breakpoints
|
|
6688
6567
|
* @param {boolean} isResponsive Some components have the option to turn off responsive behavior.
|
|
6689
6568
|
* Since hooks can't be called conditionally, it's easier to pass the condition into the hook
|
|
6690
6569
|
* @returns {boolean} Returns `true` if current breakpoint name is included in `sizes`
|
|
6691
6570
|
*/
|
|
6692
|
-
export const useIsWithinBreakpoints: (sizes: _EuiThemeBreakpoint[], isResponsive?: boolean) => boolean;
|
|
6571
|
+
export const useIsWithinBreakpoints: (sizes: _EuiThemeBreakpoint[], isResponsive?: boolean) => boolean;
|
|
6572
|
+
/**
|
|
6573
|
+
* Given a max breakpoint key, this hook returns true if the breakpoint size
|
|
6574
|
+
* of the current window width falls within the max breakpoint or any below,
|
|
6575
|
+
* and false otherwise
|
|
6576
|
+
*
|
|
6577
|
+
* @param {EuiThemeBreakpoint} max The named max breakpoint to check against
|
|
6578
|
+
* @returns {boolean} Will return `false` if it can't find a value for the `max` breakpoint
|
|
6579
|
+
*/
|
|
6580
|
+
export function useIsWithinMaxBreakpoint(max: _EuiThemeBreakpoint): boolean;
|
|
6581
|
+
/**
|
|
6582
|
+
* Given a min breakpoint key, this hook returns true if the breakpoint size
|
|
6583
|
+
* of the current window width falls within the min breakpoint or any above,
|
|
6584
|
+
* and false otherwise
|
|
6585
|
+
*
|
|
6586
|
+
* @param {EuiThemeBreakpoint} min The named min breakpoint to check against
|
|
6587
|
+
* @returns {boolean} Will return `false` if it can't find a value for the `min` breakpoint
|
|
6588
|
+
*/
|
|
6589
|
+
export function useIsWithinMinBreakpoint(min: _EuiThemeBreakpoint): boolean;
|
|
6693
6590
|
|
|
6694
6591
|
}
|
|
6695
6592
|
declare module '@elastic/eui/src/services/breakpoint' {
|
|
6696
|
-
export
|
|
6593
|
+
export type { _EuiThemeBreakpoint as EuiBreakpointSize } from '@elastic/eui/src/global_styling/variables/breakpoint';
|
|
6697
6594
|
export * from '@elastic/eui/src/services/breakpoint/current_breakpoint';
|
|
6698
6595
|
export * from '@elastic/eui/src/services/breakpoint/current_breakpoint_hook';
|
|
6699
|
-
export * from '@elastic/eui/src/services/breakpoint/
|
|
6596
|
+
export * from '@elastic/eui/src/services/breakpoint/is_within_hooks';
|
|
6700
6597
|
|
|
6701
6598
|
}
|
|
6702
6599
|
declare module '@elastic/eui/src/services/color_picker/color_picker' {
|
|
@@ -7117,44 +7014,306 @@ declare module '@elastic/eui/src/services/hooks/useMouseMove' {
|
|
|
7117
7014
|
];
|
|
7118
7015
|
|
|
7119
7016
|
}
|
|
7120
|
-
declare module '@elastic/eui/src/services/hooks' {
|
|
7121
|
-
export * from '@elastic/eui/src/services/hooks/useDependentState';
|
|
7122
|
-
export * from '@elastic/eui/src/services/hooks/useCombinedRefs';
|
|
7123
|
-
export * from '@elastic/eui/src/services/hooks/useForceRender';
|
|
7124
|
-
export * from '@elastic/eui/src/services/hooks/useLatest';
|
|
7125
|
-
export * from '@elastic/eui/src/services/hooks/useMouseMove';
|
|
7126
|
-
export * from '@elastic/eui/src/services/hooks/useUpdateEffect';
|
|
7017
|
+
declare module '@elastic/eui/src/services/hooks' {
|
|
7018
|
+
export * from '@elastic/eui/src/services/hooks/useDependentState';
|
|
7019
|
+
export * from '@elastic/eui/src/services/hooks/useCombinedRefs';
|
|
7020
|
+
export * from '@elastic/eui/src/services/hooks/useForceRender';
|
|
7021
|
+
export * from '@elastic/eui/src/services/hooks/useLatest';
|
|
7022
|
+
export * from '@elastic/eui/src/services/hooks/useMouseMove';
|
|
7023
|
+
export * from '@elastic/eui/src/services/hooks/useUpdateEffect';
|
|
7024
|
+
|
|
7025
|
+
}
|
|
7026
|
+
declare module '@elastic/eui/src/services' {
|
|
7027
|
+
import * as keys from '@elastic/eui/src/services/keys';
|
|
7028
|
+
export { keys };
|
|
7029
|
+
export { accessibleClickKeys, cascadingMenuKeys, comboBoxKeys, htmlIdGenerator, useGeneratedHtmlId, } from '@elastic/eui/src/services/accessibility';
|
|
7030
|
+
export type { HorizontalAlignment } from '@elastic/eui/src/services/alignment';
|
|
7031
|
+
export { LEFT_ALIGNMENT, RIGHT_ALIGNMENT, CENTER_ALIGNMENT } from '@elastic/eui/src/services/alignment';
|
|
7032
|
+
export type { EuiBreakpointSize } from '@elastic/eui/src/services/breakpoint';
|
|
7033
|
+
export { useIsWithinBreakpoints, useIsWithinMaxBreakpoint, useIsWithinMinBreakpoint, CurrentEuiBreakpointContext, CurrentEuiBreakpointProvider, useCurrentEuiBreakpoint, } from '@elastic/eui/src/services/breakpoint';
|
|
7034
|
+
export type { HSV } from '@elastic/eui/src/services/color';
|
|
7035
|
+
export { isColorDark, isValidHex, calculateContrast, calculateLuminance, hexToHsv, hexToRgb, hsvToHex, hsvToRgb, rgbToHex, rgbToHsv, VISUALIZATION_COLORS, DEFAULT_VISUALIZATION_COLOR, colorPalette, euiPaletteForLightBackground, euiPaletteForDarkBackground, euiPaletteColorBlind, euiPaletteColorBlindBehindText, euiPaletteForStatus, euiPaletteForTemperature, euiPaletteComplimentary, euiPaletteNegative, euiPalettePositive, euiPaletteCool, euiPaletteWarm, euiPaletteGray, getSteppedGradient, transparentize, tint, shade, tintOrShade, shadeOrTint, saturate, desaturate, lightness, makeHighContrastColor, makeDisabledContrastColor, } from '@elastic/eui/src/services/color';
|
|
7036
|
+
export type { EuiSetColorMethod } from '@elastic/eui/src/services/color_picker';
|
|
7037
|
+
export { useColorPickerState, useColorStopsState } from '@elastic/eui/src/services/color_picker';
|
|
7038
|
+
export * from '@elastic/eui/src/services/console';
|
|
7039
|
+
export { copyToClipboard } from '@elastic/eui/src/services/copy_to_clipboard';
|
|
7040
|
+
export * from '@elastic/eui/src/services/findElement';
|
|
7041
|
+
export { formatAuto, formatBoolean, formatDate, formatNumber, formatText, dateFormatAliases, } from '@elastic/eui/src/services/format';
|
|
7042
|
+
export { isEvenlyDivisibleBy, isWithinRange } from '@elastic/eui/src/services/number';
|
|
7043
|
+
export { Pager } from '@elastic/eui/src/services/paging';
|
|
7044
|
+
export { Random } from '@elastic/eui/src/services/random';
|
|
7045
|
+
export { getSecureRelForTarget } from '@elastic/eui/src/services/security';
|
|
7046
|
+
export { toSentenceCase, toInitials, slugify } from '@elastic/eui/src/services/string';
|
|
7047
|
+
export type { PropertySort, Direction } from '@elastic/eui/src/services/sort';
|
|
7048
|
+
export { PropertySortType, SortDirectionType, SortDirection, SortableProperties, Comparators, } from '@elastic/eui/src/services/sort';
|
|
7049
|
+
export { calculatePopoverPosition, findPopoverPosition } from '@elastic/eui/src/services/popover';
|
|
7050
|
+
export { getDurationAndPerformOnFrame, getTransitionTimings, getWaitDuration, performOnFrame, } from '@elastic/eui/src/services/transition';
|
|
7051
|
+
export { EuiWindowEvent } from '@elastic/eui/src/services/window_event';
|
|
7052
|
+
export * from '@elastic/eui/src/services/hooks';
|
|
7053
|
+
export { throttle } from '@elastic/eui/src/services/throttle';
|
|
7054
|
+
export * from '@elastic/eui/src/services/theme';
|
|
7055
|
+
|
|
7056
|
+
}
|
|
7057
|
+
declare module '@elastic/eui/src/global_styling/mixins/_color' {
|
|
7058
|
+
import { UseEuiTheme } from '@elastic/eui/src/services';
|
|
7059
|
+
export const BACKGROUND_COLORS: readonly ["transparent", "plain", "subdued", "accent", "primary", "success", "warning", "danger"];
|
|
7060
|
+
export type _EuiBackgroundColor = typeof BACKGROUND_COLORS[number];
|
|
7061
|
+
export interface _EuiBackgroundColorOptions {
|
|
7062
|
+
/**
|
|
7063
|
+
* Use `opaque` for containers of unknown content.
|
|
7064
|
+
* Use `transparent` for interactive states like hover and focus.
|
|
7065
|
+
*/
|
|
7066
|
+
method?: 'opaque' | 'transparent';
|
|
7067
|
+
}
|
|
7068
|
+
export const euiBackgroundColor: ({ euiTheme, colorMode }: UseEuiTheme, color: _EuiBackgroundColor, { method }?: _EuiBackgroundColorOptions) => string;
|
|
7069
|
+
export const useEuiBackgroundColor: (color: _EuiBackgroundColor, { method }?: _EuiBackgroundColorOptions) => string;
|
|
7070
|
+
export const useEuiBackgroundColorCSS: () => {
|
|
7071
|
+
transparent: import("@emotion/utils").SerializedStyles;
|
|
7072
|
+
plain: import("@emotion/utils").SerializedStyles;
|
|
7073
|
+
subdued: import("@emotion/utils").SerializedStyles;
|
|
7074
|
+
accent: import("@emotion/utils").SerializedStyles;
|
|
7075
|
+
primary: import("@emotion/utils").SerializedStyles;
|
|
7076
|
+
success: import("@emotion/utils").SerializedStyles;
|
|
7077
|
+
warning: import("@emotion/utils").SerializedStyles;
|
|
7078
|
+
danger: import("@emotion/utils").SerializedStyles;
|
|
7079
|
+
};
|
|
7080
|
+
|
|
7081
|
+
}
|
|
7082
|
+
declare module '@elastic/eui/src/global_styling/mixins/_helpers' {
|
|
7083
|
+
import { CSSProperties } from 'react';
|
|
7084
|
+
import { UseEuiTheme } from '@elastic/eui/src/services/theme';
|
|
7085
|
+
/**
|
|
7086
|
+
* Set scroll bar appearance on Chrome (and firefox).
|
|
7087
|
+
* All parameters are optional and default to specific global settings.
|
|
7088
|
+
*/
|
|
7089
|
+
export interface EuiScrollBarStyles {
|
|
7090
|
+
thumbColor?: CSSProperties['backgroundColor'];
|
|
7091
|
+
trackColor?: CSSProperties['backgroundColor'];
|
|
7092
|
+
/**
|
|
7093
|
+
* Defaults to `thin`. Use `auto` only for large page scrollbars
|
|
7094
|
+
*/
|
|
7095
|
+
width?: CSSProperties['scrollbarWidth'];
|
|
7096
|
+
/**
|
|
7097
|
+
* Overall width (height for horizontal scrollbars)
|
|
7098
|
+
*/
|
|
7099
|
+
size?: CSSProperties['width'];
|
|
7100
|
+
/**
|
|
7101
|
+
* Corner sizes are usually determined by `width` and
|
|
7102
|
+
* are used as an inset border and therefore a smaller corner size means a larger thumb
|
|
7103
|
+
*/
|
|
7104
|
+
corner?: CSSProperties['borderWidth'];
|
|
7105
|
+
}
|
|
7106
|
+
export const euiScrollBarStyles: ({ euiTheme: { colors, size } }: UseEuiTheme, { thumbColor: _thumbColor, trackColor, width, size: _size, corner: _corner, }?: EuiScrollBarStyles) => string;
|
|
7107
|
+
export const useEuiScrollBar: (options?: EuiScrollBarStyles | undefined) => string;
|
|
7108
|
+
/**
|
|
7109
|
+
* 1. Focus rings shouldn't be visible on scrollable regions, but a11y requires them to be focusable.
|
|
7110
|
+
* Browser's supporting `:focus-visible` will still show outline on keyboard focus only.
|
|
7111
|
+
* Others like Safari, won't show anything at all.
|
|
7112
|
+
*/
|
|
7113
|
+
interface _EuiYScroll {
|
|
7114
|
+
height?: CSSProperties['height'];
|
|
7115
|
+
}
|
|
7116
|
+
export const euiYScroll: (euiTheme: UseEuiTheme, { height }?: _EuiYScroll) => string;
|
|
7117
|
+
export const useEuiYScroll: ({ height }?: _EuiYScroll) => string;
|
|
7118
|
+
export const euiYScrollWithShadows: (euiTheme: UseEuiTheme, { height }?: _EuiYScroll) => string;
|
|
7119
|
+
export const useEuiYScrollWithShadows: ({ height }?: _EuiYScroll) => string;
|
|
7120
|
+
export const euiXScroll: (euiTheme: UseEuiTheme) => string;
|
|
7121
|
+
export const useEuiXScroll: () => string;
|
|
7122
|
+
export const euiXScrollWithShadows: (euiTheme: UseEuiTheme) => string;
|
|
7123
|
+
export const useEuiXScrollWithShadows: () => string;
|
|
7124
|
+
interface EuiScrollOverflowStyles {
|
|
7125
|
+
direction?: 'y' | 'x';
|
|
7126
|
+
mask?: boolean;
|
|
7127
|
+
}
|
|
7128
|
+
export const euiOverflowScroll: (euiTheme: UseEuiTheme, { direction, mask }?: EuiScrollOverflowStyles) => string;
|
|
7129
|
+
export const useEuiOverflowScroll: (direction: EuiScrollOverflowStyles['direction'], mask?: EuiScrollOverflowStyles['mask']) => string;
|
|
7130
|
+
/**
|
|
7131
|
+
* For quickly applying a full-height element whether using flex or not
|
|
7132
|
+
*/
|
|
7133
|
+
export const euiFullHeight: () => string;
|
|
7134
|
+
/**
|
|
7135
|
+
* A constant storing the support for the `:has()` selector through a
|
|
7136
|
+
* media query that will only apply the content it is supported.
|
|
7137
|
+
*/
|
|
7138
|
+
export const euiSupportsHas = "@supports(selector(:has(p)))";
|
|
7139
|
+
export {};
|
|
7140
|
+
|
|
7141
|
+
}
|
|
7142
|
+
declare module '@elastic/eui/src/global_styling/mixins/_padding' {
|
|
7143
|
+
import { UseEuiTheme } from '@elastic/eui/src/services/theme';
|
|
7144
|
+
export const PADDING_SIZES: readonly ["none", "xs", "s", "m", "l", "xl"];
|
|
7145
|
+
export type EuiPaddingSize = typeof PADDING_SIZES[number];
|
|
7146
|
+
export const euiPaddingSize: ({ euiTheme }: UseEuiTheme, size: EuiPaddingSize) => string | null;
|
|
7147
|
+
export const useEuiPaddingSize: (size: EuiPaddingSize) => string | null;
|
|
7148
|
+
export const useEuiPaddingCSS: (side?: "left" | "right" | "top" | "bottom" | "horizontal" | "vertical" | undefined) => {
|
|
7149
|
+
none: null;
|
|
7150
|
+
xs: import("@emotion/utils").SerializedStyles;
|
|
7151
|
+
s: import("@emotion/utils").SerializedStyles;
|
|
7152
|
+
m: import("@emotion/utils").SerializedStyles;
|
|
7153
|
+
l: import("@emotion/utils").SerializedStyles;
|
|
7154
|
+
xl: import("@emotion/utils").SerializedStyles;
|
|
7155
|
+
};
|
|
7156
|
+
|
|
7157
|
+
}
|
|
7158
|
+
declare module '@elastic/eui/src/global_styling/mixins/_states' {
|
|
7159
|
+
import { CSSProperties } from 'react';
|
|
7160
|
+
import { UseEuiTheme } from '@elastic/eui/src/services';
|
|
7161
|
+
export type _EuiFocusRingOffset = 'inset' | 'outset' | 'center' | CSSProperties['outlineOffset'];
|
|
7162
|
+
/**
|
|
7163
|
+
* It is best practice to utilize the browser's default `outline` property for handling focus rings.
|
|
7164
|
+
* However, some components need to be forced to have the same behavior, or adjust the display.
|
|
7165
|
+
* This function re-applies the same default outline with a couple parameters
|
|
7166
|
+
* @param euiTheme UseEuiTheme.euiTheme
|
|
7167
|
+
* @param offset Accepts a specific measurement or 'inset', 'outset' or 'center' to adjust outline position
|
|
7168
|
+
* @param color Accepts any CSS color, **Note: only works in -webkit-**
|
|
7169
|
+
*/
|
|
7170
|
+
export const euiFocusRing: ({ euiTheme }: UseEuiTheme, offset?: _EuiFocusRingOffset, options?: {
|
|
7171
|
+
color?: CSSProperties['outlineColor'];
|
|
7172
|
+
} | undefined) => string;
|
|
7173
|
+
export const useEuiFocusRing: (offset?: _EuiFocusRingOffset, color?: CSSProperties['outlineColor']) => string;
|
|
7174
|
+
|
|
7175
|
+
}
|
|
7176
|
+
declare module '@elastic/eui/src/global_styling/mixins/_typography' {
|
|
7177
|
+
import { CSSProperties } from 'react';
|
|
7178
|
+
import { _FontScaleOptions } from '@elastic/eui/src/global_styling/functions/typography';
|
|
7179
|
+
import { UseEuiTheme } from '@elastic/eui/src/services/theme/hooks';
|
|
7180
|
+
import { _EuiThemeFontScale } from '@elastic/eui/src/global_styling/variables/typography';
|
|
7181
|
+
export type EuiThemeFontSize = {
|
|
7182
|
+
fontSize: CSSProperties['fontSize'];
|
|
7183
|
+
lineHeight: CSSProperties['lineHeight'];
|
|
7184
|
+
};
|
|
7185
|
+
/**
|
|
7186
|
+
* Returns font-size and line-height
|
|
7187
|
+
*/
|
|
7188
|
+
export const euiFontSize: ({ euiTheme }: UseEuiTheme, scale: _EuiThemeFontScale, options?: _FontScaleOptions | undefined) => EuiThemeFontSize;
|
|
7189
|
+
export const useEuiFontSize: (scale: _EuiThemeFontScale, options?: _FontScaleOptions | undefined) => EuiThemeFontSize;
|
|
7190
|
+
/**
|
|
7191
|
+
* Force text to wrap on natural word breaks (e.g. spaces & hyphens)
|
|
7192
|
+
* https://css-tricks.com/snippets/css/prevent-long-urls-from-breaking-out-of-container/
|
|
7193
|
+
*/
|
|
7194
|
+
export const euiTextBreakWord: () => string;
|
|
7195
|
+
/**
|
|
7196
|
+
* Prevent text from wrapping onto multiple lines, and truncate with an ellipsis.
|
|
7197
|
+
*/
|
|
7198
|
+
export const euiTextTruncate: (maxWidth?: CSSProperties['maxWidth']) => string;
|
|
7199
|
+
/**
|
|
7200
|
+
* Fixed-width numbers for tabular data
|
|
7201
|
+
*/
|
|
7202
|
+
export const euiNumberFormat: ({ euiTheme }: UseEuiTheme) => string;
|
|
7203
|
+
export const useEuiNumberFormat: () => string;
|
|
7204
|
+
|
|
7205
|
+
}
|
|
7206
|
+
declare module '@elastic/eui/src/global_styling/mixins/_responsive' {
|
|
7207
|
+
import { UseEuiTheme } from '@elastic/eui/src/services/theme/hooks';
|
|
7208
|
+
import { _EuiThemeBreakpoint } from '@elastic/eui/src/global_styling/variables';
|
|
7209
|
+
/**
|
|
7210
|
+
* Generates a CSS media query rule string based on the input breakpoint ranges.
|
|
7211
|
+
* Examples with default theme breakpoints:
|
|
7212
|
+
*
|
|
7213
|
+
* euiBreakpoint(['s']) becomes `@media only screen and (min-width: 575px) and (max-width: 767px)`
|
|
7214
|
+
* euiBreakpoint(['s', 'l']) becomes `@media only screen and (min-width: 575px) and (max-width: 1199px)`
|
|
7215
|
+
*
|
|
7216
|
+
* Use the smallest and largest sizes to generate media queries with only min/max-width.
|
|
7217
|
+
* Examples with default theme breakpoints:
|
|
7218
|
+
*
|
|
7219
|
+
* euiBreakpoint(['xs', 'm']) becomes `@media only screen and (max-width: 991px)`
|
|
7220
|
+
* euiBreakpoint(['l', 'xl']) becomes `@media only screen and (min-width: 992px)`
|
|
7221
|
+
*/
|
|
7222
|
+
export const euiBreakpoint: ({ euiTheme }: UseEuiTheme, sizes: [_EuiThemeBreakpoint, ..._EuiThemeBreakpoint[]]) => string;
|
|
7223
|
+
export const useEuiBreakpoint: (sizes: [_EuiThemeBreakpoint, ..._EuiThemeBreakpoint[]]) => string;
|
|
7224
|
+
|
|
7225
|
+
}
|
|
7226
|
+
declare module '@elastic/eui/src/global_styling/mixins' {
|
|
7227
|
+
export * from '@elastic/eui/src/global_styling/mixins/_color';
|
|
7228
|
+
export * from '@elastic/eui/src/global_styling/mixins/_helpers';
|
|
7229
|
+
export * from '@elastic/eui/src/global_styling/mixins/_padding';
|
|
7230
|
+
export * from '@elastic/eui/src/global_styling/mixins/_states';
|
|
7231
|
+
export * from '@elastic/eui/src/global_styling/mixins/_typography';
|
|
7232
|
+
export * from '@elastic/eui/src/global_styling/mixins/_responsive';
|
|
7233
|
+
|
|
7234
|
+
}
|
|
7235
|
+
declare module '@elastic/eui/src/global_styling/reset/reset' {
|
|
7236
|
+
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}";
|
|
7237
|
+
|
|
7238
|
+
}
|
|
7239
|
+
declare module '@elastic/eui/src/global_styling/reset/global_styles' {
|
|
7240
|
+
|
|
7241
|
+
export interface EuiGlobalStylesProps {
|
|
7242
|
+
}
|
|
7243
|
+
export const EuiGlobalStyles: ({}: EuiGlobalStylesProps) => JSX.Element;
|
|
7244
|
+
|
|
7245
|
+
}
|
|
7246
|
+
declare module '@elastic/eui/src/global_styling' {
|
|
7247
|
+
export * from '@elastic/eui/src/global_styling/reset/global_styles';
|
|
7248
|
+
export * from '@elastic/eui/src/global_styling/functions';
|
|
7249
|
+
export * from '@elastic/eui/src/global_styling/variables';
|
|
7250
|
+
export * from '@elastic/eui/src/global_styling/mixins';
|
|
7251
|
+
|
|
7252
|
+
}
|
|
7253
|
+
declare module '@elastic/eui/src/components/accessibility/screen_reader_only/screen_reader_only.styles' {
|
|
7254
|
+
export const euiScreenReaderOnly: () => string;
|
|
7255
|
+
export const euiScreenReaderOnlyStyles: (showOnFocus?: boolean | undefined) => {
|
|
7256
|
+
euiScreenReaderOnly: import("@emotion/utils").SerializedStyles;
|
|
7257
|
+
};
|
|
7258
|
+
|
|
7259
|
+
}
|
|
7260
|
+
declare module '@elastic/eui/src/components/accessibility/screen_reader_only/screen_reader_only' {
|
|
7261
|
+
import { ReactElement, FunctionComponent } from 'react';
|
|
7262
|
+
export interface EuiScreenReaderOnlyProps {
|
|
7263
|
+
/**
|
|
7264
|
+
* ReactElement to render as this component's content
|
|
7265
|
+
*/
|
|
7266
|
+
children: ReactElement;
|
|
7267
|
+
/**
|
|
7268
|
+
* For keyboard navigation, force content to display visually upon focus.
|
|
7269
|
+
*/
|
|
7270
|
+
showOnFocus?: boolean;
|
|
7271
|
+
className?: string;
|
|
7272
|
+
}
|
|
7273
|
+
export const EuiScreenReaderOnly: FunctionComponent<EuiScreenReaderOnlyProps>;
|
|
7274
|
+
|
|
7275
|
+
}
|
|
7276
|
+
declare module '@elastic/eui/src/components/accessibility/screen_reader_only' {
|
|
7277
|
+
export type { EuiScreenReaderOnlyProps } from '@elastic/eui/src/components/accessibility/screen_reader_only/screen_reader_only';
|
|
7278
|
+
export { EuiScreenReaderOnly } from '@elastic/eui/src/components/accessibility/screen_reader_only/screen_reader_only';
|
|
7279
|
+
export { euiScreenReaderOnly } from '@elastic/eui/src/components/accessibility/screen_reader_only/screen_reader_only.styles';
|
|
7280
|
+
|
|
7281
|
+
}
|
|
7282
|
+
declare module '@elastic/eui/src/components/accessibility/screen_reader_live/screen_reader_live' {
|
|
7283
|
+
import { AriaAttributes, HTMLAttributes, FunctionComponent, ReactNode } from 'react';
|
|
7284
|
+
export interface EuiScreenReaderLiveProps {
|
|
7285
|
+
/**
|
|
7286
|
+
* Whether to make screen readers aware of the content
|
|
7287
|
+
*/
|
|
7288
|
+
isActive?: boolean;
|
|
7289
|
+
/**
|
|
7290
|
+
* Content for screen readers to announce
|
|
7291
|
+
*/
|
|
7292
|
+
children?: ReactNode;
|
|
7293
|
+
/**
|
|
7294
|
+
* `role` attribute for both live regions.
|
|
7295
|
+
*
|
|
7296
|
+
* https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/ARIA_Live_Regions#roles_with_implicit_live_region_attributes
|
|
7297
|
+
*/
|
|
7298
|
+
role?: HTMLAttributes<HTMLDivElement>['role'];
|
|
7299
|
+
/**
|
|
7300
|
+
* `aria-live` attribute for both live regions
|
|
7301
|
+
*/
|
|
7302
|
+
'aria-live'?: AriaAttributes['aria-live'];
|
|
7303
|
+
/**
|
|
7304
|
+
* On `children`/text change, the region will auto-focus itself, causing screen readers
|
|
7305
|
+
* to automatically read out the text content. This prop should primarily be used for
|
|
7306
|
+
* navigation or page changes, where programmatically resetting focus location back to
|
|
7307
|
+
* a certain part of the page is desired.
|
|
7308
|
+
*/
|
|
7309
|
+
focusRegionOnTextChange?: boolean;
|
|
7310
|
+
}
|
|
7311
|
+
export const EuiScreenReaderLive: FunctionComponent<EuiScreenReaderLiveProps>;
|
|
7127
7312
|
|
|
7128
7313
|
}
|
|
7129
|
-
declare module '@elastic/eui/src/
|
|
7130
|
-
|
|
7131
|
-
export {
|
|
7132
|
-
export { accessibleClickKeys, cascadingMenuKeys, comboBoxKeys, htmlIdGenerator, useGeneratedHtmlId, } from '@elastic/eui/src/services/accessibility';
|
|
7133
|
-
export type { HorizontalAlignment } from '@elastic/eui/src/services/alignment';
|
|
7134
|
-
export { LEFT_ALIGNMENT, RIGHT_ALIGNMENT, CENTER_ALIGNMENT } from '@elastic/eui/src/services/alignment';
|
|
7135
|
-
export type { EuiBreakpointSize } from '@elastic/eui/src/services/breakpoint';
|
|
7136
|
-
export { BREAKPOINTS, BREAKPOINT_KEYS, getBreakpoint, isWithinBreakpoints, useIsWithinBreakpoints, isWithinMaxBreakpoint, isWithinMinBreakpoint, CurrentEuiBreakpointContext, CurrentEuiBreakpointProvider, useCurrentEuiBreakpoint, } from '@elastic/eui/src/services/breakpoint';
|
|
7137
|
-
export type { HSV } from '@elastic/eui/src/services/color';
|
|
7138
|
-
export { isColorDark, isValidHex, calculateContrast, calculateLuminance, hexToHsv, hexToRgb, hsvToHex, hsvToRgb, rgbToHex, rgbToHsv, VISUALIZATION_COLORS, DEFAULT_VISUALIZATION_COLOR, colorPalette, euiPaletteForLightBackground, euiPaletteForDarkBackground, euiPaletteColorBlind, euiPaletteColorBlindBehindText, euiPaletteForStatus, euiPaletteForTemperature, euiPaletteComplimentary, euiPaletteNegative, euiPalettePositive, euiPaletteCool, euiPaletteWarm, euiPaletteGray, getSteppedGradient, transparentize, tint, shade, tintOrShade, shadeOrTint, saturate, desaturate, lightness, makeHighContrastColor, makeDisabledContrastColor, } from '@elastic/eui/src/services/color';
|
|
7139
|
-
export type { EuiSetColorMethod } from '@elastic/eui/src/services/color_picker';
|
|
7140
|
-
export { useColorPickerState, useColorStopsState } from '@elastic/eui/src/services/color_picker';
|
|
7141
|
-
export * from '@elastic/eui/src/services/console';
|
|
7142
|
-
export { copyToClipboard } from '@elastic/eui/src/services/copy_to_clipboard';
|
|
7143
|
-
export * from '@elastic/eui/src/services/findElement';
|
|
7144
|
-
export { formatAuto, formatBoolean, formatDate, formatNumber, formatText, dateFormatAliases, } from '@elastic/eui/src/services/format';
|
|
7145
|
-
export { isEvenlyDivisibleBy, isWithinRange } from '@elastic/eui/src/services/number';
|
|
7146
|
-
export { Pager } from '@elastic/eui/src/services/paging';
|
|
7147
|
-
export { Random } from '@elastic/eui/src/services/random';
|
|
7148
|
-
export { getSecureRelForTarget } from '@elastic/eui/src/services/security';
|
|
7149
|
-
export { toSentenceCase, toInitials, slugify } from '@elastic/eui/src/services/string';
|
|
7150
|
-
export type { PropertySort, Direction } from '@elastic/eui/src/services/sort';
|
|
7151
|
-
export { PropertySortType, SortDirectionType, SortDirection, SortableProperties, Comparators, } from '@elastic/eui/src/services/sort';
|
|
7152
|
-
export { calculatePopoverPosition, findPopoverPosition } from '@elastic/eui/src/services/popover';
|
|
7153
|
-
export { getDurationAndPerformOnFrame, getTransitionTimings, getWaitDuration, performOnFrame, } from '@elastic/eui/src/services/transition';
|
|
7154
|
-
export { EuiWindowEvent } from '@elastic/eui/src/services/window_event';
|
|
7155
|
-
export * from '@elastic/eui/src/services/hooks';
|
|
7156
|
-
export { throttle } from '@elastic/eui/src/services/throttle';
|
|
7157
|
-
export * from '@elastic/eui/src/services/theme';
|
|
7314
|
+
declare module '@elastic/eui/src/components/accessibility/screen_reader_live' {
|
|
7315
|
+
export { EuiScreenReaderLive } from '@elastic/eui/src/components/accessibility/screen_reader_live/screen_reader_live';
|
|
7316
|
+
export type { EuiScreenReaderLiveProps } from '@elastic/eui/src/components/accessibility/screen_reader_live/screen_reader_live';
|
|
7158
7317
|
|
|
7159
7318
|
}
|
|
7160
7319
|
declare module '@elastic/eui/src/components/accessibility/skip_link/skip_link.styles' {
|
|
@@ -7220,6 +7379,7 @@ declare module '@elastic/eui/src/components/accordion/accordion.styles' {
|
|
|
7220
7379
|
import { UseEuiTheme } from '@elastic/eui/src/services';
|
|
7221
7380
|
export const euiAccordionButtonStyles: (euiThemeContext: UseEuiTheme) => {
|
|
7222
7381
|
euiAccordion__button: import("@emotion/utils").SerializedStyles;
|
|
7382
|
+
disabled: import("@emotion/utils").SerializedStyles;
|
|
7223
7383
|
};
|
|
7224
7384
|
export const euiAccordionChildrenStyles: ({ euiTheme }: UseEuiTheme) => {
|
|
7225
7385
|
euiAccordion__children: import("@emotion/utils").SerializedStyles;
|
|
@@ -7262,7 +7422,7 @@ declare module '@elastic/eui/src/components/accordion/accordion' {
|
|
|
7262
7422
|
l: string;
|
|
7263
7423
|
xl: string;
|
|
7264
7424
|
};
|
|
7265
|
-
export const PADDING_SIZES: ("s" | "
|
|
7425
|
+
export const PADDING_SIZES: ("s" | "xs" | "m" | "l" | "xl" | "none")[];
|
|
7266
7426
|
export type EuiAccordionSize = keyof typeof paddingSizeToClassNameMap;
|
|
7267
7427
|
export type EuiAccordionProps = CommonProps & Omit<HTMLAttributes<HTMLElement>, 'id'> & {
|
|
7268
7428
|
id: string;
|
|
@@ -7328,6 +7488,10 @@ declare module '@elastic/eui/src/components/accordion/accordion' {
|
|
|
7328
7488
|
* Choose whether the loading message replaces the content. Customize the message by passing a node
|
|
7329
7489
|
*/
|
|
7330
7490
|
isLoadingMessage?: boolean | ReactNode;
|
|
7491
|
+
/**
|
|
7492
|
+
* Disable the open/close interaction and visually subdues the trigger
|
|
7493
|
+
*/
|
|
7494
|
+
isDisabled?: boolean;
|
|
7331
7495
|
};
|
|
7332
7496
|
export class EuiAccordionClass extends Component<WithEuiThemeProps & EuiAccordionProps, {
|
|
7333
7497
|
isOpen: boolean;
|
|
@@ -7337,6 +7501,7 @@ declare module '@elastic/eui/src/components/accordion/accordion' {
|
|
|
7337
7501
|
paddingSize: "none";
|
|
7338
7502
|
arrowDisplay: "left";
|
|
7339
7503
|
isLoading: boolean;
|
|
7504
|
+
isDisabled: boolean;
|
|
7340
7505
|
isLoadingMessage: boolean;
|
|
7341
7506
|
element: "div";
|
|
7342
7507
|
buttonElement: "button";
|
|
@@ -7547,7 +7712,7 @@ declare module '@elastic/eui/src/components/badge/badge' {
|
|
|
7547
7712
|
declare module '@elastic/eui/src/components/badge/beta_badge/beta_badge' {
|
|
7548
7713
|
import { AriaAttributes, FunctionComponent, HTMLAttributes, MouseEventHandler, ReactNode } from 'react';
|
|
7549
7714
|
import { CommonProps, ExclusiveUnion } from '@elastic/eui/src/components/common';
|
|
7550
|
-
import { ToolTipPositions } from '@elastic/eui/src/components/tool_tip';
|
|
7715
|
+
import { EuiToolTipProps, ToolTipPositions } from '@elastic/eui/src/components/tool_tip';
|
|
7551
7716
|
import { IconType } from '@elastic/eui/src/components/icon'; const colorToClassMap: {
|
|
7552
7717
|
accent: string;
|
|
7553
7718
|
subdued: string;
|
|
@@ -7602,6 +7767,10 @@ declare module '@elastic/eui/src/components/badge/beta_badge/beta_badge' {
|
|
|
7602
7767
|
* Custom position of the tooltip
|
|
7603
7768
|
*/
|
|
7604
7769
|
tooltipPosition?: ToolTipPositions;
|
|
7770
|
+
/**
|
|
7771
|
+
* Passes onto the span wrapping the badge
|
|
7772
|
+
*/
|
|
7773
|
+
anchorProps?: EuiToolTipProps['anchorProps'];
|
|
7605
7774
|
/**
|
|
7606
7775
|
* Optional title will be supplied as tooltip title or title attribute
|
|
7607
7776
|
* otherwise the label will be used
|
|
@@ -7660,7 +7829,7 @@ declare module '@elastic/eui/src/components/badge/badge_group/badge_group' {
|
|
|
7660
7829
|
xs: string;
|
|
7661
7830
|
s: string;
|
|
7662
7831
|
};
|
|
7663
|
-
export const GUTTER_SIZES: ("s" | "
|
|
7832
|
+
export const GUTTER_SIZES: ("s" | "xs" | "none")[]; type BadgeGroupGutterSize = keyof typeof gutterSizeToClassNameMap;
|
|
7664
7833
|
export interface EuiBadgeGroupProps {
|
|
7665
7834
|
/**
|
|
7666
7835
|
* Space between badges
|
|
@@ -7967,18 +8136,90 @@ declare module '@elastic/eui/src/components/breadcrumbs' {
|
|
|
7967
8136
|
export { EuiBreadcrumbs } from '@elastic/eui/src/components/breadcrumbs/breadcrumbs';
|
|
7968
8137
|
|
|
7969
8138
|
}
|
|
7970
|
-
declare module '@elastic/eui/src/components/card/card_select' {
|
|
7971
|
-
|
|
7972
|
-
|
|
7973
|
-
export type EuiCardSelectProps = EuiButtonEmptyProps & {
|
|
7974
|
-
/**
|
|
7975
|
-
* Is in the selected state
|
|
7976
|
-
*/
|
|
7977
|
-
isSelected?: boolean;
|
|
7978
|
-
isDisabled?: boolean;
|
|
8139
|
+
declare module '@elastic/eui/src/components/card/card_select/card_select.styles' {
|
|
8140
|
+
export const euiCardSelectStyles: () => {
|
|
8141
|
+
euiCardSelect: import("@emotion/utils").SerializedStyles;
|
|
7979
8142
|
};
|
|
8143
|
+
|
|
8144
|
+
}
|
|
8145
|
+
declare module '@elastic/eui/src/components/card/card_select/card_select' {
|
|
8146
|
+
import { FunctionComponent } from 'react';
|
|
8147
|
+
import { Props } from '@elastic/eui/src/components/button/button';
|
|
8148
|
+
export type EuiCardSelectProps = Props;
|
|
7980
8149
|
export const EuiCardSelect: FunctionComponent<EuiCardSelectProps>;
|
|
7981
|
-
export function euiCardSelectableColor(color:
|
|
8150
|
+
export function euiCardSelectableColor(color: Props['color'], isSelected: boolean | undefined): Props['color'];
|
|
8151
|
+
|
|
8152
|
+
}
|
|
8153
|
+
declare module '@elastic/eui/src/components/card/card_select' {
|
|
8154
|
+
export type { EuiCardSelectProps } from '@elastic/eui/src/components/card/card_select/card_select';
|
|
8155
|
+
export { EuiCardSelect, euiCardSelectableColor } from '@elastic/eui/src/components/card/card_select/card_select';
|
|
8156
|
+
|
|
8157
|
+
}
|
|
8158
|
+
declare module '@elastic/eui/src/components/card/card.styles' {
|
|
8159
|
+
import { EuiCardProps } from '@elastic/eui/src/components';
|
|
8160
|
+
import { UseEuiTheme } from '@elastic/eui/src/services';
|
|
8161
|
+
/**
|
|
8162
|
+
* 1. Footer is always at the bottom.
|
|
8163
|
+
* 3. Horizontal layouts should always top left align no matter the textAlign prop
|
|
8164
|
+
* 4. Ensures the contents always stretch no matter the flex layout
|
|
8165
|
+
*/
|
|
8166
|
+
export const euiCardStyles: (euiThemeContext: UseEuiTheme, paddingSize: EuiCardProps['paddingSize'], color: EuiCardProps['display']) => {
|
|
8167
|
+
card: {
|
|
8168
|
+
euiCard: import("@emotion/utils").SerializedStyles;
|
|
8169
|
+
aligned: {
|
|
8170
|
+
center: import("@emotion/utils").SerializedStyles;
|
|
8171
|
+
left: import("@emotion/utils").SerializedStyles;
|
|
8172
|
+
right: import("@emotion/utils").SerializedStyles;
|
|
8173
|
+
};
|
|
8174
|
+
layout: {
|
|
8175
|
+
vertical: import("@emotion/utils").SerializedStyles;
|
|
8176
|
+
horizontal: import("@emotion/utils").SerializedStyles;
|
|
8177
|
+
};
|
|
8178
|
+
disabled: import("@emotion/utils").SerializedStyles;
|
|
8179
|
+
};
|
|
8180
|
+
content: {
|
|
8181
|
+
euiCard__content: import("@emotion/utils").SerializedStyles;
|
|
8182
|
+
layout: {
|
|
8183
|
+
vertical: import("@emotion/utils").SerializedStyles;
|
|
8184
|
+
horizontal: import("@emotion/utils").SerializedStyles;
|
|
8185
|
+
};
|
|
8186
|
+
};
|
|
8187
|
+
euiCard__children: import("@emotion/utils").SerializedStyles;
|
|
8188
|
+
euiCard__description: import("@emotion/utils").SerializedStyles;
|
|
8189
|
+
euiCard__footer: import("@emotion/utils").SerializedStyles;
|
|
8190
|
+
top: {
|
|
8191
|
+
euiCard__top: import("@emotion/utils").SerializedStyles;
|
|
8192
|
+
layout: {
|
|
8193
|
+
vertical: import("@emotion/utils").SerializedStyles;
|
|
8194
|
+
horizontal: import("@emotion/utils").SerializedStyles;
|
|
8195
|
+
};
|
|
8196
|
+
disabled: import("@emotion/utils").SerializedStyles;
|
|
8197
|
+
};
|
|
8198
|
+
euiCard__image: import("@emotion/utils").SerializedStyles;
|
|
8199
|
+
icon: {
|
|
8200
|
+
euiCard__icon: import("@emotion/utils").SerializedStyles;
|
|
8201
|
+
withImage: import("@emotion/utils").SerializedStyles;
|
|
8202
|
+
layout: {
|
|
8203
|
+
vertical: import("@emotion/utils").SerializedStyles;
|
|
8204
|
+
horizontal: import("@emotion/utils").SerializedStyles;
|
|
8205
|
+
};
|
|
8206
|
+
};
|
|
8207
|
+
};
|
|
8208
|
+
export const euiCardTextStyles: (euiThemeContext: UseEuiTheme) => {
|
|
8209
|
+
euiCard__text: import("@emotion/utils").SerializedStyles;
|
|
8210
|
+
interactive: import("@emotion/utils").SerializedStyles;
|
|
8211
|
+
aligned: {
|
|
8212
|
+
center: import("@emotion/utils").SerializedStyles;
|
|
8213
|
+
left: import("@emotion/utils").SerializedStyles;
|
|
8214
|
+
right: import("@emotion/utils").SerializedStyles;
|
|
8215
|
+
};
|
|
8216
|
+
disabled: import("@emotion/utils").SerializedStyles;
|
|
8217
|
+
};
|
|
8218
|
+
export const euiCardBetaBadgeStyles: (euiThemeContext: UseEuiTheme, paddingSize: EuiCardProps['paddingSize']) => {
|
|
8219
|
+
hasBetaBadge: import("@emotion/utils").SerializedStyles;
|
|
8220
|
+
euiCard__betaBadgeAnchor: import("@emotion/utils").SerializedStyles;
|
|
8221
|
+
euiCard__betaBadge: import("@emotion/utils").SerializedStyles;
|
|
8222
|
+
};
|
|
7982
8223
|
|
|
7983
8224
|
}
|
|
7984
8225
|
declare module '@elastic/eui/src/components/card/card' {
|
|
@@ -8018,7 +8259,7 @@ declare module '@elastic/eui/src/components/card/card' {
|
|
|
8018
8259
|
/**
|
|
8019
8260
|
* Determines the title's heading element
|
|
8020
8261
|
*/
|
|
8021
|
-
titleElement?: 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'span';
|
|
8262
|
+
titleElement?: 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'span' | 'p';
|
|
8022
8263
|
/**
|
|
8023
8264
|
* Determines the title's size, matching that of EuiTitle.
|
|
8024
8265
|
* Though, card titles can't be too large or small relative to the description text.
|
|
@@ -8048,7 +8289,7 @@ declare module '@elastic/eui/src/components/card/card' {
|
|
|
8048
8289
|
* Adds a badge to top of the card to label it as "Beta" or other non-GA state.
|
|
8049
8290
|
* Accepts all the props of [EuiBetaBadge](#/display/badge#beta-badge-type), where `label` is required.
|
|
8050
8291
|
*/
|
|
8051
|
-
betaBadgeProps?:
|
|
8292
|
+
betaBadgeProps?: EuiBetaBadgeProps;
|
|
8052
8293
|
/**
|
|
8053
8294
|
* Matches to the color property of EuiPanel. If defined, removes any border & shadow.
|
|
8054
8295
|
* Leave as `undefined` to display as a default panel.
|
|
@@ -8067,15 +8308,23 @@ declare module '@elastic/eui/src/components/card/card' {
|
|
|
8067
8308
|
* Use a border style of card instead of shadow
|
|
8068
8309
|
*/
|
|
8069
8310
|
hasBorder?: EuiPanelProps['hasBorder'];
|
|
8070
|
-
}
|
|
8071
|
-
description?: NonNullable<ReactNode>;
|
|
8072
|
-
children: ReactNode;
|
|
8073
|
-
} | {
|
|
8074
|
-
description: NonNullable<ReactNode>;
|
|
8075
|
-
});
|
|
8311
|
+
};
|
|
8076
8312
|
export const EuiCard: FunctionComponent<EuiCardProps>;
|
|
8077
8313
|
export {};
|
|
8078
8314
|
|
|
8315
|
+
}
|
|
8316
|
+
declare module '@elastic/eui/src/components/card/checkable_card/checkable_card.styles' {
|
|
8317
|
+
import { UseEuiTheme } from '@elastic/eui/src/services';
|
|
8318
|
+
export const euiCheckableCardStyles: (euiThemeContext: UseEuiTheme) => {
|
|
8319
|
+
euiCheckableCard: import("@emotion/utils").SerializedStyles;
|
|
8320
|
+
isChecked: import("@emotion/utils").SerializedStyles;
|
|
8321
|
+
label: {
|
|
8322
|
+
euiCheckableCard__label: import("@emotion/utils").SerializedStyles;
|
|
8323
|
+
isDisabled: import("@emotion/utils").SerializedStyles;
|
|
8324
|
+
};
|
|
8325
|
+
euiCheckableCard__children: import("@emotion/utils").SerializedStyles;
|
|
8326
|
+
};
|
|
8327
|
+
|
|
8079
8328
|
}
|
|
8080
8329
|
declare module '@elastic/eui/src/components/card/checkable_card/checkable_card' {
|
|
8081
8330
|
import { FunctionComponent, ReactNode } from 'react';
|
|
@@ -8379,7 +8628,7 @@ declare module '@elastic/eui/src/components/flyout/flyout' {
|
|
|
8379
8628
|
export const SIDES: ("left" | "right")[]; type _EuiFlyoutSide = typeof SIDES[number];
|
|
8380
8629
|
export const SIZES: ("s" | "m" | "l")[];
|
|
8381
8630
|
export type EuiFlyoutSize = typeof SIZES[number];
|
|
8382
|
-
export const PADDING_SIZES: ("s" | "
|
|
8631
|
+
export const PADDING_SIZES: ("s" | "m" | "l" | "none")[]; type _EuiFlyoutPaddingSize = typeof PADDING_SIZES[number];
|
|
8383
8632
|
interface _EuiFlyoutProps {
|
|
8384
8633
|
onClose: (event: MouseEvent | TouchEvent | KeyboardEvent) => void;
|
|
8385
8634
|
/**
|
|
@@ -8447,9 +8696,9 @@ declare module '@elastic/eui/src/components/flyout/flyout' {
|
|
|
8447
8696
|
*/
|
|
8448
8697
|
role?: null | string;
|
|
8449
8698
|
/**
|
|
8450
|
-
* Named breakpoint
|
|
8699
|
+
* Named breakpoint (`xs` through `xl`) for customizing the minimum window width to enable the `push` type
|
|
8451
8700
|
*/
|
|
8452
|
-
pushMinBreakpoint?: EuiBreakpointSize
|
|
8701
|
+
pushMinBreakpoint?: EuiBreakpointSize;
|
|
8453
8702
|
style?: CSSProperties;
|
|
8454
8703
|
/**
|
|
8455
8704
|
* Object of props passed to EuiFocusTrap.
|
|
@@ -8524,7 +8773,7 @@ declare module '@elastic/eui/src/components/collapsible_nav/collapsible_nav' {
|
|
|
8524
8773
|
*/
|
|
8525
8774
|
isDocked?: boolean;
|
|
8526
8775
|
/**
|
|
8527
|
-
* Named breakpoint
|
|
8776
|
+
* Named breakpoint (`xs` through `xl`) for customizing the minimum window width to enable docking
|
|
8528
8777
|
*/
|
|
8529
8778
|
dockedBreakpoint?: EuiFlyoutProps['pushMinBreakpoint'];
|
|
8530
8779
|
/**
|
|
@@ -12507,7 +12756,7 @@ declare module '@elastic/eui/src/components/date_picker/super_date_picker/async_
|
|
|
12507
12756
|
|
|
12508
12757
|
}
|
|
12509
12758
|
declare module '@elastic/eui/src/components/date_picker/date_picker_range' {
|
|
12510
|
-
import { FunctionComponent, ReactNode, ReactElement } from 'react';
|
|
12759
|
+
import { FocusEventHandler, FunctionComponent, ReactNode, ReactElement } from 'react';
|
|
12511
12760
|
import { IconType } from '@elastic/eui/src/components/icon';
|
|
12512
12761
|
import { CommonProps } from '@elastic/eui/src/components/common';
|
|
12513
12762
|
export type EuiDatePickerRangeProps = CommonProps & {
|
|
@@ -12543,7 +12792,18 @@ declare module '@elastic/eui/src/components/date_picker/date_picker_range' {
|
|
|
12543
12792
|
* Passes through to each control
|
|
12544
12793
|
*/
|
|
12545
12794
|
readOnly?: boolean;
|
|
12795
|
+
/**
|
|
12796
|
+
* Passes through to each control
|
|
12797
|
+
*/
|
|
12546
12798
|
fullWidth?: boolean;
|
|
12799
|
+
/**
|
|
12800
|
+
* Triggered whenever the start or end controls are blurred
|
|
12801
|
+
*/
|
|
12802
|
+
onBlur?: FocusEventHandler<HTMLInputElement>;
|
|
12803
|
+
/**
|
|
12804
|
+
* Triggered whenever the start or end controls are focused
|
|
12805
|
+
*/
|
|
12806
|
+
onFocus?: FocusEventHandler<HTMLInputElement>;
|
|
12547
12807
|
};
|
|
12548
12808
|
export const EuiDatePickerRange: FunctionComponent<EuiDatePickerRangeProps>;
|
|
12549
12809
|
|
|
@@ -13076,7 +13336,7 @@ declare module '@elastic/eui/src/components/empty_prompt/empty_prompt' {
|
|
|
13076
13336
|
import { EuiTitleSize } from '@elastic/eui/src/components/title';
|
|
13077
13337
|
import { IconColor, IconType } from '@elastic/eui/src/components/icon';
|
|
13078
13338
|
import { _EuiPanelDivlike } from '@elastic/eui/src/components/panel/panel';
|
|
13079
|
-
export const PADDING_SIZES: ("s" | "
|
|
13339
|
+
export const PADDING_SIZES: ("s" | "m" | "l" | "none")[];
|
|
13080
13340
|
export type PaddingSize = typeof PADDING_SIZES[number];
|
|
13081
13341
|
export type EuiEmptyPromptProps = CommonProps & Omit<_EuiPanelDivlike, 'borderRadius' | 'grow' | 'panelRef' | 'paddingSize' | 'title'> & {
|
|
13082
13342
|
iconType?: IconType;
|
|
@@ -13294,128 +13554,11 @@ declare module '@elastic/eui/src/components/facet/facet_button.styles' {
|
|
|
13294
13554
|
isDisabled: import("@emotion/utils").SerializedStyles;
|
|
13295
13555
|
};
|
|
13296
13556
|
|
|
13297
|
-
}
|
|
13298
|
-
declare module '@elastic/eui/src/components/button/button_display/_button_display.styles' {
|
|
13299
|
-
import { UseEuiTheme } from '@elastic/eui/src/services';
|
|
13300
|
-
export const euiButtonBaseCSS: () => string;
|
|
13301
|
-
export const euiButtonDisplayStyles: (euiThemeContext: UseEuiTheme, minWidth: string) => {
|
|
13302
|
-
euiButtonDisplay: import("@emotion/utils").SerializedStyles;
|
|
13303
|
-
isDisabled: import("@emotion/utils").SerializedStyles;
|
|
13304
|
-
fullWidth: import("@emotion/utils").SerializedStyles;
|
|
13305
|
-
xs: import("@emotion/utils").SerializedStyles;
|
|
13306
|
-
s: import("@emotion/utils").SerializedStyles;
|
|
13307
|
-
m: import("@emotion/utils").SerializedStyles;
|
|
13308
|
-
};
|
|
13309
|
-
|
|
13310
|
-
}
|
|
13311
|
-
declare module '@elastic/eui/src/components/button/button_display/_button_display_content.styles' {
|
|
13312
|
-
import { UseEuiTheme } from '@elastic/eui/src/services';
|
|
13313
|
-
export const euiButtonDisplayContentStyles: ({ euiTheme }: UseEuiTheme) => {
|
|
13314
|
-
euiButtonDisplayContent: import("@emotion/utils").SerializedStyles;
|
|
13315
|
-
left: import("@emotion/utils").SerializedStyles;
|
|
13316
|
-
right: import("@emotion/utils").SerializedStyles;
|
|
13317
|
-
euiButtonDisplayContent__spinner: import("@emotion/utils").SerializedStyles;
|
|
13318
|
-
euiButtonDisplayContent__icon: import("@emotion/utils").SerializedStyles;
|
|
13319
|
-
isDisabled: import("@emotion/utils").SerializedStyles;
|
|
13320
|
-
};
|
|
13321
|
-
|
|
13322
|
-
}
|
|
13323
|
-
declare module '@elastic/eui/src/components/button/button_display/_button_display_content' {
|
|
13324
|
-
import { HTMLAttributes, FunctionComponent, Ref } from 'react';
|
|
13325
|
-
import { CommonProps } from '@elastic/eui/src/components/common';
|
|
13326
|
-
import { IconType } from '@elastic/eui/src/components/icon';
|
|
13327
|
-
export type ButtonContentIconSide = 'left' | 'right' | undefined;
|
|
13328
|
-
export type EuiButtonDisplayContentType = HTMLAttributes<HTMLSpanElement>;
|
|
13329
|
-
/**
|
|
13330
|
-
* *INTERNAL ONLY*
|
|
13331
|
-
* This component is simply a helper component for reuse within other button components.
|
|
13332
|
-
*/
|
|
13333
|
-
export interface EuiButtonDisplayContentProps extends CommonProps {
|
|
13334
|
-
/**
|
|
13335
|
-
* Any `type` accepted by EuiIcon
|
|
13336
|
-
*/
|
|
13337
|
-
iconType?: IconType;
|
|
13338
|
-
/**
|
|
13339
|
-
* Can only be one side `left` or `right`
|
|
13340
|
-
*/
|
|
13341
|
-
iconSide?: ButtonContentIconSide;
|
|
13342
|
-
isLoading?: boolean;
|
|
13343
|
-
/**
|
|
13344
|
-
* Object of props passed to the <span/> wrapping the content's text/children only (not icon)
|
|
13345
|
-
*/
|
|
13346
|
-
textProps?: HTMLAttributes<HTMLSpanElement> & CommonProps & {
|
|
13347
|
-
ref?: Ref<HTMLSpanElement>;
|
|
13348
|
-
'data-text'?: string;
|
|
13349
|
-
};
|
|
13350
|
-
iconSize?: 's' | 'm';
|
|
13351
|
-
isDisabled: boolean;
|
|
13352
|
-
}
|
|
13353
|
-
export const EuiButtonDisplayContent: FunctionComponent<EuiButtonDisplayContentType & EuiButtonDisplayContentProps>;
|
|
13354
|
-
|
|
13355
|
-
}
|
|
13356
|
-
declare module '@elastic/eui/src/components/button/button_display/_button_display' {
|
|
13357
|
-
import React, { CSSProperties, HTMLAttributes, ReactNode, Ref } from 'react';
|
|
13358
|
-
import { CommonProps, ExclusiveUnion, PropsForAnchor, PropsForButton } from '@elastic/eui/src/components/common';
|
|
13359
|
-
import { EuiButtonDisplayContentProps, EuiButtonDisplayContentType } from '@elastic/eui/src/components/button/button_display/_button_display_content';
|
|
13360
|
-
/**
|
|
13361
|
-
* Extends EuiButtonDisplayContentProps which provides
|
|
13362
|
-
* `iconType`, `iconSide`, and `textProps`
|
|
13363
|
-
*/
|
|
13364
|
-
export interface EuiButtonDisplayCommonProps extends EuiButtonDisplayContentProps, CommonProps {
|
|
13365
|
-
children?: ReactNode;
|
|
13366
|
-
size?: 'xs' | 's' | 'm';
|
|
13367
|
-
/**
|
|
13368
|
-
* Applies the boolean state as the `aria-pressed` property to create a toggle button.
|
|
13369
|
-
* *Only use when the readable text does not change between states.*
|
|
13370
|
-
*/
|
|
13371
|
-
isSelected?: boolean;
|
|
13372
|
-
/**
|
|
13373
|
-
* Extends the button to 100% width
|
|
13374
|
-
*/
|
|
13375
|
-
fullWidth?: boolean;
|
|
13376
|
-
/**
|
|
13377
|
-
* Override the default minimum width
|
|
13378
|
-
*/
|
|
13379
|
-
minWidth?: CSSProperties['minWidth'];
|
|
13380
|
-
/**
|
|
13381
|
-
* Force disables the button and changes the icon to a loading spinner
|
|
13382
|
-
*/
|
|
13383
|
-
isLoading?: boolean;
|
|
13384
|
-
/**
|
|
13385
|
-
* Object of props passed to the <span/> wrapping the button's content
|
|
13386
|
-
*/
|
|
13387
|
-
contentProps?: EuiButtonDisplayContentType;
|
|
13388
|
-
style?: CSSProperties;
|
|
13389
|
-
}
|
|
13390
|
-
export type EuiButtonDisplayPropsForAnchor = PropsForAnchor<EuiButtonDisplayCommonProps, {
|
|
13391
|
-
buttonRef?: Ref<HTMLAnchorElement>;
|
|
13392
|
-
}>;
|
|
13393
|
-
export type EuiButtonDisplayPropsForButton = PropsForButton<EuiButtonDisplayCommonProps, {
|
|
13394
|
-
buttonRef?: Ref<HTMLButtonElement>;
|
|
13395
|
-
}>;
|
|
13396
|
-
export type Props = ExclusiveUnion<EuiButtonDisplayPropsForAnchor, EuiButtonDisplayPropsForButton>;
|
|
13397
|
-
export type EuiButtonDisplayProps = EuiButtonDisplayCommonProps & HTMLAttributes<HTMLElement> & {
|
|
13398
|
-
/**
|
|
13399
|
-
* Provide a valid element to render the element as
|
|
13400
|
-
*/
|
|
13401
|
-
element?: 'a' | 'button' | 'span' | 'label';
|
|
13402
|
-
};
|
|
13403
|
-
/**
|
|
13404
|
-
* EuiButtonDisplay is an internal-only component used for displaying
|
|
13405
|
-
* any element as a button.
|
|
13406
|
-
*/
|
|
13407
|
-
export const EuiButtonDisplay: React.ForwardRefExoticComponent<EuiButtonDisplayCommonProps & React.HTMLAttributes<HTMLElement> & {
|
|
13408
|
-
/**
|
|
13409
|
-
* Provide a valid element to render the element as
|
|
13410
|
-
*/
|
|
13411
|
-
element?: "a" | "button" | "label" | "span" | undefined;
|
|
13412
|
-
} & React.RefAttributes<HTMLElement>>;
|
|
13413
|
-
|
|
13414
13557
|
}
|
|
13415
13558
|
declare module '@elastic/eui/src/components/facet/facet_button' {
|
|
13416
|
-
import { FunctionComponent, HTMLAttributes,
|
|
13559
|
+
import { FunctionComponent, HTMLAttributes, ReactNode, RefCallback } from 'react';
|
|
13417
13560
|
import { CommonProps } from '@elastic/eui/src/components/common';
|
|
13418
|
-
export interface EuiFacetButtonProps extends CommonProps,
|
|
13561
|
+
export interface EuiFacetButtonProps extends CommonProps, HTMLAttributes<HTMLButtonElement> {
|
|
13419
13562
|
buttonRef?: RefCallback<HTMLButtonElement>;
|
|
13420
13563
|
/**
|
|
13421
13564
|
* ReactNode to render as this component's content
|
|
@@ -13434,7 +13577,6 @@ declare module '@elastic/eui/src/components/facet/facet_button' {
|
|
|
13434
13577
|
* Changes visual of button to indicate it's currently selected
|
|
13435
13578
|
*/
|
|
13436
13579
|
isSelected?: boolean;
|
|
13437
|
-
onClick?: MouseEventHandler<HTMLButtonElement>;
|
|
13438
13580
|
/**
|
|
13439
13581
|
* Adds a notification indicator for displaying the quantity provided
|
|
13440
13582
|
*/
|
|
@@ -14517,7 +14659,7 @@ declare module '@elastic/eui/src/components/modal/modal_body' {
|
|
|
14517
14659
|
declare module '@elastic/eui/src/components/modal/confirm_modal' {
|
|
14518
14660
|
import React, { FunctionComponent, ReactNode } from 'react';
|
|
14519
14661
|
import { EuiModalProps } from '@elastic/eui/src/components/modal/modal';
|
|
14520
|
-
import {
|
|
14662
|
+
import { EuiButtonColor } from '@elastic/eui/src/components/button';
|
|
14521
14663
|
export interface EuiConfirmModalProps extends Omit<EuiModalProps, 'children' | 'initialFocus' | 'onClose' | 'title'> {
|
|
14522
14664
|
/**
|
|
14523
14665
|
* ReactNode to render as this component's content
|
|
@@ -14531,7 +14673,7 @@ declare module '@elastic/eui/src/components/modal/confirm_modal' {
|
|
|
14531
14673
|
confirmButtonDisabled?: boolean;
|
|
14532
14674
|
className?: string;
|
|
14533
14675
|
defaultFocusedButton?: typeof CONFIRM_BUTTON | typeof CANCEL_BUTTON;
|
|
14534
|
-
buttonColor?:
|
|
14676
|
+
buttonColor?: EuiButtonColor;
|
|
14535
14677
|
/**
|
|
14536
14678
|
* Sets the max-width of the modal.
|
|
14537
14679
|
* Set to `true` to use the default (`euiBreakpoints 'm'`),
|
|
@@ -14996,7 +15138,7 @@ declare module '@elastic/eui/src/components/page/page_content/page_content_body'
|
|
|
14996
15138
|
import { FunctionComponent, HTMLAttributes } from 'react';
|
|
14997
15139
|
import { CommonProps } from '@elastic/eui/src/components/common';
|
|
14998
15140
|
import { _EuiPageRestrictWidth } from '@elastic/eui/src/components/page/_restrict_width';
|
|
14999
|
-
export const PADDING_SIZES: ("s" | "
|
|
15141
|
+
export const PADDING_SIZES: ("s" | "m" | "l" | "none")[];
|
|
15000
15142
|
export interface EuiPageContentBodyProps extends CommonProps, HTMLAttributes<HTMLDivElement>, _EuiPageRestrictWidth {
|
|
15001
15143
|
/**
|
|
15002
15144
|
* Adjust the padding.
|
|
@@ -15285,7 +15427,7 @@ declare module '@elastic/eui/src/components/page/page_section' {
|
|
|
15285
15427
|
declare module '@elastic/eui/src/components/page/page_side_bar/page_side_bar' {
|
|
15286
15428
|
import { FunctionComponent, HTMLAttributes } from 'react';
|
|
15287
15429
|
import { CommonProps } from '@elastic/eui/src/components/common';
|
|
15288
|
-
export const PADDING_SIZES: ("s" | "
|
|
15430
|
+
export const PADDING_SIZES: ("s" | "m" | "l" | "none")[];
|
|
15289
15431
|
export interface EuiPageSideBarProps extends CommonProps, HTMLAttributes<HTMLDivElement> {
|
|
15290
15432
|
/**
|
|
15291
15433
|
* Adds `position: sticky`
|
|
@@ -15618,6 +15760,8 @@ declare module '@elastic/eui/src/components/page_template' {
|
|
|
15618
15760
|
}
|
|
15619
15761
|
declare module '@elastic/eui/src/global_styling/utility/utility' {
|
|
15620
15762
|
|
|
15763
|
+
import { UseEuiTheme } from '@elastic/eui/src/services/theme/hooks';
|
|
15764
|
+
export const globalStyles: (euiThemeContext: UseEuiTheme) => import("@emotion/utils").SerializedStyles;
|
|
15621
15765
|
export const EuiUtilityClasses: () => JSX.Element;
|
|
15622
15766
|
|
|
15623
15767
|
}
|
|
@@ -15647,7 +15791,7 @@ declare module '@elastic/eui/src/components/provider/cache/cache_provider' {
|
|
|
15647
15791
|
import { PropsWithChildren } from 'react';
|
|
15648
15792
|
import { EmotionCache } from '@emotion/cache';
|
|
15649
15793
|
export interface EuiCacheProviderProps {
|
|
15650
|
-
cache?:
|
|
15794
|
+
cache?: EmotionCache;
|
|
15651
15795
|
}
|
|
15652
15796
|
export const EuiCacheProvider: ({ cache, children, }: PropsWithChildren<EuiCacheProviderProps>) => JSX.Element;
|
|
15653
15797
|
|
|
@@ -18037,19 +18181,35 @@ declare module '@elastic/eui/src/components/table' {
|
|
|
18037
18181
|
}
|
|
18038
18182
|
declare module '@elastic/eui/src/components/tour/tour_step_indicator' {
|
|
18039
18183
|
import { FunctionComponent, HTMLAttributes } from 'react';
|
|
18040
|
-
import { CommonProps } from '@elastic/eui/src/components/common';
|
|
18041
|
-
|
|
18042
|
-
incomplete: string;
|
|
18043
|
-
active: string;
|
|
18044
|
-
};
|
|
18045
|
-
export const STATUS: ("active" | "incomplete" | "complete")[];
|
|
18046
|
-
export type EuiTourStepStatus = keyof typeof statusToClassNameMap;
|
|
18184
|
+
import { CommonProps } from '@elastic/eui/src/components/common';
|
|
18185
|
+
export type EuiTourStepStatus = 'complete' | 'incomplete' | 'active';
|
|
18047
18186
|
export interface EuiTourStepIndicatorProps extends CommonProps, HTMLAttributes<HTMLLIElement> {
|
|
18048
18187
|
number: number;
|
|
18049
18188
|
status: EuiTourStepStatus;
|
|
18050
18189
|
}
|
|
18051
18190
|
export const EuiTourStepIndicator: FunctionComponent<EuiTourStepIndicatorProps>;
|
|
18052
|
-
|
|
18191
|
+
|
|
18192
|
+
}
|
|
18193
|
+
declare module '@elastic/eui/src/components/tour/tour.styles' {
|
|
18194
|
+
import { UseEuiTheme } from '@elastic/eui/src/services';
|
|
18195
|
+
export const euiTourStyles: ({ euiTheme, colorMode }: UseEuiTheme) => {
|
|
18196
|
+
euiTour: import("@emotion/utils").SerializedStyles;
|
|
18197
|
+
};
|
|
18198
|
+
export const euiTourBeaconStyles: ({ euiTheme }: UseEuiTheme) => {
|
|
18199
|
+
euiTourBeacon: import("@emotion/utils").SerializedStyles;
|
|
18200
|
+
right: import("@emotion/utils").SerializedStyles;
|
|
18201
|
+
left: import("@emotion/utils").SerializedStyles;
|
|
18202
|
+
top: import("@emotion/utils").SerializedStyles;
|
|
18203
|
+
bottom: import("@emotion/utils").SerializedStyles;
|
|
18204
|
+
};
|
|
18205
|
+
export const euiTourHeaderStyles: ({ euiTheme }: UseEuiTheme) => {
|
|
18206
|
+
euiTourHeader: import("@emotion/utils").SerializedStyles;
|
|
18207
|
+
euiTourHeader__title: import("@emotion/utils").SerializedStyles;
|
|
18208
|
+
euiTourHeader__subtitle: import("@emotion/utils").SerializedStyles;
|
|
18209
|
+
};
|
|
18210
|
+
export const euiTourFooterStyles: ({ euiTheme, colorMode }: UseEuiTheme) => {
|
|
18211
|
+
euiTourFooter: import("@emotion/utils").SerializedStyles;
|
|
18212
|
+
};
|
|
18053
18213
|
|
|
18054
18214
|
}
|
|
18055
18215
|
declare module '@elastic/eui/src/components/tour/tour_step' {
|
|
@@ -18168,17 +18328,18 @@ declare module '@elastic/eui/src/components/tour/useEuiTour' {
|
|
|
18168
18328
|
import { EuiTourStepProps } from '@elastic/eui/src/components/tour/tour_step';
|
|
18169
18329
|
import { EuiTourActions, EuiTourState } from '@elastic/eui/src/components/tour/types';
|
|
18170
18330
|
export type EuiStatelessTourStep = EuiTourStepProps & Partial<EuiTourState>;
|
|
18171
|
-
export
|
|
18331
|
+
export type EuiStatelessTourSteps = Array<Exclude<EuiStatelessTourStep, 'onFinish'>>;
|
|
18332
|
+
export const useEuiTour: (stepsArray: EuiStatelessTourSteps, initialState: EuiTourState) => [EuiTourStepProps[], EuiTourActions, EuiTourState];
|
|
18172
18333
|
|
|
18173
18334
|
}
|
|
18174
18335
|
declare module '@elastic/eui/src/components/tour/tour' {
|
|
18175
18336
|
import { FunctionComponent, ReactElement } from 'react';
|
|
18176
|
-
import {
|
|
18337
|
+
import { EuiStatelessTourSteps } from '@elastic/eui/src/components/tour/useEuiTour';
|
|
18177
18338
|
import { EuiTourStepProps } from '@elastic/eui/src/components/tour/tour_step';
|
|
18178
18339
|
import { EuiTourActions, EuiTourState } from '@elastic/eui/src/components/tour/types';
|
|
18179
18340
|
export interface EuiTourProps {
|
|
18180
18341
|
children: (steps: EuiTourStepProps[], actions: EuiTourActions, state: EuiTourState) => ReactElement;
|
|
18181
|
-
steps:
|
|
18342
|
+
steps: EuiStatelessTourSteps;
|
|
18182
18343
|
initialState: EuiTourState;
|
|
18183
18344
|
}
|
|
18184
18345
|
export const EuiTour: FunctionComponent<EuiTourProps>;
|
|
@@ -18191,7 +18352,7 @@ declare module '@elastic/eui/src/components/tour' {
|
|
|
18191
18352
|
export { EuiTourStep } from '@elastic/eui/src/components/tour/tour_step';
|
|
18192
18353
|
export type { EuiTourStepIndicatorProps } from '@elastic/eui/src/components/tour/tour_step_indicator';
|
|
18193
18354
|
export { EuiTourStepIndicator } from '@elastic/eui/src/components/tour/tour_step_indicator';
|
|
18194
|
-
export type { EuiStatelessTourStep } from '@elastic/eui/src/components/tour/useEuiTour';
|
|
18355
|
+
export type { EuiStatelessTourStep, EuiStatelessTourSteps } from '@elastic/eui/src/components/tour/useEuiTour';
|
|
18195
18356
|
export { useEuiTour } from '@elastic/eui/src/components/tour/useEuiTour';
|
|
18196
18357
|
export * from '@elastic/eui/src/components/tour/types';
|
|
18197
18358
|
|
|
@@ -18199,9 +18360,9 @@ declare module '@elastic/eui/src/components/tour' {
|
|
|
18199
18360
|
declare module '@elastic/eui/src/components/basic_table/action_types' {
|
|
18200
18361
|
import { ReactElement, ReactNode } from 'react';
|
|
18201
18362
|
import { EuiIconType } from '@elastic/eui/src/components/icon/icon';
|
|
18202
|
-
import {
|
|
18203
|
-
import {
|
|
18204
|
-
import { ExclusiveUnion } from '@elastic/eui/src/components/common'; type IconFunction<T> = (item: T) => EuiIconType; type ButtonColor =
|
|
18363
|
+
import { EuiButtonIconProps } from '@elastic/eui/src/components/button/button_icon/button_icon';
|
|
18364
|
+
import { EuiButtonEmptyProps } from '@elastic/eui/src/components/button/button_empty';
|
|
18365
|
+
import { ExclusiveUnion } from '@elastic/eui/src/components/common'; type IconFunction<T> = (item: T) => EuiIconType; type ButtonColor = EuiButtonIconProps['color'] | EuiButtonEmptyProps['color']; type EuiButtonIconColorFunction<T> = (item: T) => ButtonColor;
|
|
18205
18366
|
export interface DefaultItemActionBase<T> {
|
|
18206
18367
|
/**
|
|
18207
18368
|
* The display name of the action (will be the button caption)
|
|
@@ -18233,7 +18394,7 @@ declare module '@elastic/eui/src/components/basic_table/action_types' {
|
|
|
18233
18394
|
* The type of action
|
|
18234
18395
|
*/
|
|
18235
18396
|
type?: 'button';
|
|
18236
|
-
color?:
|
|
18397
|
+
color?: EuiButtonEmptyProps['color'] | EuiButtonIconColorFunction<T>;
|
|
18237
18398
|
}
|
|
18238
18399
|
export interface DefaultItemIconButtonAction<T> extends DefaultItemActionBase<T> {
|
|
18239
18400
|
type: 'icon';
|
|
@@ -18244,7 +18405,7 @@ declare module '@elastic/eui/src/components/basic_table/action_types' {
|
|
|
18244
18405
|
/**
|
|
18245
18406
|
* Defines the color of the button
|
|
18246
18407
|
*/
|
|
18247
|
-
color?:
|
|
18408
|
+
color?: EuiButtonIconProps['color'] | EuiButtonIconColorFunction<T>;
|
|
18248
18409
|
}
|
|
18249
18410
|
export type DefaultItemAction<T> = ExclusiveUnion<DefaultItemEmptyButtonAction<T>, DefaultItemIconButtonAction<T>>;
|
|
18250
18411
|
export interface CustomItemAction<T> {
|