@elastic/eui 66.0.0 → 67.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/eui_theme_dark.css +0 -345
- package/dist/eui_theme_dark.json +0 -6
- package/dist/eui_theme_dark.json.d.ts +0 -6
- package/dist/eui_theme_dark.min.css +1 -1
- package/dist/eui_theme_light.css +0 -345
- package/dist/eui_theme_light.json +0 -6
- package/dist/eui_theme_light.json.d.ts +0 -6
- package/dist/eui_theme_light.min.css +1 -1
- package/es/components/badge/badge.js +84 -78
- package/es/components/badge/badge.styles.js +56 -0
- package/es/components/basic_table/in_memory_table.js +8 -0
- package/es/components/button/button.js +0 -1
- package/es/components/button/button_display/_button_display.js +20 -6
- package/es/components/button/button_display/_button_display.styles.js +2 -2
- package/es/components/button/button_display/_button_display_content.js +5 -3
- package/es/components/button/button_display/_button_display_content.styles.js +4 -1
- package/es/components/button/button_empty/button_empty.js +10 -1
- package/es/components/card/card.js +2 -2
- package/es/components/card/card.styles.js +5 -2
- package/es/components/collapsible_nav/collapsible_nav.js +0 -5
- package/es/components/date_picker/auto_refresh/auto_refresh.js +6 -1
- package/es/components/date_picker/super_date_picker/date_popover/date_popover_button.js +6 -2
- package/es/components/expression/expression.js +12 -2
- package/es/components/header/header_links/header_link.js +10 -1
- package/es/components/image/image.js +6 -1
- package/es/components/image/image_fullscreen_wrapper.js +2 -3
- package/es/components/notification/notification_event.js +25 -6
- package/es/components/notification/notification_event_meta.js +1 -1
- package/es/components/overlay_mask/overlay_mask.js +27 -65
- package/es/components/overlay_mask/overlay_mask.styles.js +28 -0
- package/es/components/page/page_content/page_content.js +1 -2
- package/es/components/page/page_content/page_content_body.js +1 -2
- package/es/components/page/page_content/page_content_header.js +1 -2
- package/es/components/page/page_content/page_content_header_section.js +1 -2
- package/es/components/page/page_section/page_section.js +15 -3
- package/es/components/page/page_side_bar/page_side_bar.js +1 -2
- package/es/components/page/page_template.js +3 -1
- package/es/components/page_template/empty_prompt/page_empty_prompt.js +11 -1
- package/es/components/page_template/page_template.js +18 -2
- package/es/components/pagination/pagination.js +17 -4
- package/es/components/pagination/pagination.styles.js +31 -0
- package/es/components/pagination/pagination_button.js +17 -5
- package/es/components/pagination/pagination_button.styles.js +30 -0
- package/es/components/pagination/pagination_button_arrow.js +5 -0
- package/es/components/popover/popover_title.js +2 -2
- package/es/components/popover/popover_title.styles.js +18 -6
- package/es/components/progress/progress.js +6 -1
- package/es/components/provider/cache/cache_provider.js +3 -9
- package/es/components/provider/provider.js +25 -2
- package/es/components/resizable_container/resizable_panel.js +6 -1
- package/es/components/search_bar/filters/custom_component_filter.js +16 -0
- package/es/components/search_bar/filters/filters.js +6 -0
- package/es/components/search_bar/query/ast.js +12 -0
- package/es/components/search_bar/query/ast_to_es_query_dsl.js +15 -10
- package/es/components/search_bar/query/query.js +17 -0
- package/es/components/search_bar/search_bar.js +4 -0
- package/es/components/search_bar/search_filters.js +4 -0
- package/es/components/selectable/selectable_list/selectable_list.js +2 -2
- package/es/components/selectable/selectable_list/selectable_list_item.js +2 -2
- package/es/components/side_nav/side_nav.js +5 -0
- package/es/components/suggest/suggest.js +10 -1
- package/es/components/tool_tip/tool_tip.js +42 -66
- package/es/components/tool_tip/tool_tip.styles.js +107 -0
- package/es/components/tool_tip/tool_tip_anchor.js +73 -0
- package/es/components/tool_tip/tool_tip_arrow.js +20 -0
- package/es/components/tool_tip/tool_tip_popover.js +48 -101
- package/es/global_styling/index.js +2 -1
- package/es/global_styling/utility/animations.js +13 -0
- package/es/services/color/contrast.js +2 -0
- package/es/services/index.js +1 -1
- package/es/services/theme/context.js +2 -1
- package/es/services/theme/hooks.js +27 -1
- package/es/services/theme/index.js +1 -1
- package/es/services/theme/provider.js +15 -1
- package/eui.d.ts +232 -79
- package/i18ntokens.json +54 -54
- package/lib/components/badge/badge.js +92 -80
- package/lib/components/badge/badge.styles.js +61 -0
- package/lib/components/basic_table/in_memory_table.js +8 -0
- package/lib/components/button/button.js +0 -1
- package/lib/components/button/button_display/_button_display.js +20 -6
- package/lib/components/button/button_display/_button_display.styles.js +2 -2
- package/lib/components/button/button_display/_button_display_content.js +9 -4
- package/lib/components/button/button_display/_button_display_content.styles.js +4 -1
- package/lib/components/button/button_empty/button_empty.js +10 -1
- package/lib/components/card/card.js +2 -2
- package/lib/components/card/card.styles.js +5 -2
- package/lib/components/collapsible_nav/collapsible_nav.js +0 -5
- package/lib/components/date_picker/auto_refresh/auto_refresh.js +6 -1
- package/lib/components/date_picker/super_date_picker/date_popover/date_popover_button.js +6 -1
- package/lib/components/expression/expression.js +12 -2
- package/lib/components/header/header_links/header_link.js +10 -1
- package/lib/components/image/image.js +6 -1
- package/lib/components/image/image_fullscreen_wrapper.js +2 -3
- package/lib/components/notification/notification_event.js +28 -9
- package/lib/components/notification/notification_event_meta.js +1 -1
- package/lib/components/overlay_mask/overlay_mask.js +27 -65
- package/lib/components/overlay_mask/overlay_mask.styles.js +34 -0
- package/lib/components/page/page_content/page_content.js +1 -2
- package/lib/components/page/page_content/page_content_body.js +1 -2
- package/lib/components/page/page_content/page_content_header.js +1 -2
- package/lib/components/page/page_content/page_content_header_section.js +1 -2
- package/lib/components/page/page_section/page_section.js +15 -3
- package/lib/components/page/page_side_bar/page_side_bar.js +1 -2
- package/lib/components/page/page_template.js +3 -1
- package/lib/components/page_template/empty_prompt/page_empty_prompt.js +11 -1
- package/lib/components/page_template/page_template.js +18 -2
- package/lib/components/pagination/pagination.js +18 -3
- package/lib/components/pagination/pagination.styles.js +34 -0
- package/lib/components/pagination/pagination_button.js +9 -4
- package/lib/components/pagination/pagination_button.styles.js +45 -0
- package/lib/components/pagination/pagination_button_arrow.js +7 -0
- package/lib/components/popover/popover_title.js +2 -2
- package/lib/components/popover/popover_title.styles.js +19 -7
- package/lib/components/progress/progress.js +6 -1
- package/lib/components/provider/cache/cache_provider.js +3 -11
- package/lib/components/provider/provider.js +31 -6
- package/lib/components/resizable_container/resizable_panel.js +6 -1
- package/lib/components/search_bar/filters/custom_component_filter.js +29 -0
- package/lib/components/search_bar/filters/filters.js +7 -0
- package/lib/components/search_bar/query/ast.js +12 -0
- package/lib/components/search_bar/query/ast_to_es_query_dsl.js +16 -11
- package/lib/components/search_bar/query/query.js +17 -0
- package/lib/components/search_bar/search_bar.js +4 -0
- package/lib/components/search_bar/search_filters.js +4 -0
- package/lib/components/selectable/selectable_list/selectable_list.js +2 -2
- package/lib/components/selectable/selectable_list/selectable_list_item.js +2 -2
- package/lib/components/side_nav/side_nav.js +5 -0
- package/lib/components/suggest/suggest.js +10 -1
- package/lib/components/tool_tip/tool_tip.js +43 -64
- package/lib/components/tool_tip/tool_tip.styles.js +123 -0
- package/lib/components/tool_tip/tool_tip_anchor.js +87 -0
- package/lib/components/tool_tip/tool_tip_arrow.js +28 -0
- package/lib/components/tool_tip/tool_tip_popover.js +49 -98
- package/lib/global_styling/index.js +13 -0
- package/lib/global_styling/utility/animations.js +15 -0
- package/lib/services/color/contrast.js +6 -1
- package/lib/services/index.js +7 -0
- package/lib/services/theme/context.js +4 -2
- package/lib/services/theme/hooks.js +28 -0
- package/lib/services/theme/index.js +12 -0
- package/lib/services/theme/provider.js +23 -2
- package/optimize/es/components/badge/badge.js +82 -76
- package/optimize/es/components/badge/badge.styles.js +56 -0
- package/optimize/es/components/basic_table/in_memory_table.js +4 -0
- package/optimize/es/components/button/button.js +0 -1
- package/optimize/es/components/button/button_display/_button_display.js +8 -3
- package/optimize/es/components/button/button_display/_button_display.styles.js +2 -2
- package/optimize/es/components/button/button_display/_button_display_content.js +3 -1
- package/optimize/es/components/button/button_display/_button_display_content.styles.js +4 -1
- package/optimize/es/components/card/card.js +2 -2
- package/optimize/es/components/card/card.styles.js +5 -2
- package/optimize/es/components/date_picker/super_date_picker/date_popover/date_popover_button.js +0 -1
- package/optimize/es/components/image/image_fullscreen_wrapper.js +2 -3
- package/optimize/es/components/notification/notification_event.js +10 -4
- package/optimize/es/components/overlay_mask/overlay_mask.js +27 -60
- package/optimize/es/components/overlay_mask/overlay_mask.styles.js +28 -0
- package/optimize/es/components/page/page_content/page_content.js +1 -2
- package/optimize/es/components/page/page_content/page_content_body.js +1 -2
- package/optimize/es/components/page/page_content/page_content_header.js +1 -2
- package/optimize/es/components/page/page_content/page_content_header_section.js +1 -2
- package/optimize/es/components/page/page_section/page_section.js +4 -2
- package/optimize/es/components/page/page_side_bar/page_side_bar.js +1 -2
- package/optimize/es/components/page/page_template.js +3 -1
- package/optimize/es/components/pagination/pagination.js +17 -4
- package/optimize/es/components/pagination/pagination.styles.js +31 -0
- package/optimize/es/components/pagination/pagination_button.js +7 -4
- package/optimize/es/components/pagination/pagination_button.styles.js +30 -0
- package/optimize/es/components/pagination/pagination_button_arrow.js +5 -0
- package/optimize/es/components/popover/popover_title.js +2 -2
- package/optimize/es/components/popover/popover_title.styles.js +18 -6
- package/optimize/es/components/provider/cache/cache_provider.js +3 -9
- package/optimize/es/components/provider/provider.js +25 -2
- package/optimize/es/components/search_bar/filters/custom_component_filter.js +16 -0
- package/optimize/es/components/search_bar/filters/filters.js +6 -0
- package/optimize/es/components/search_bar/query/ast.js +12 -0
- package/optimize/es/components/search_bar/query/ast_to_es_query_dsl.js +14 -9
- package/optimize/es/components/search_bar/query/query.js +17 -0
- package/optimize/es/components/suggest/suggest.js +4 -1
- package/optimize/es/components/tool_tip/tool_tip.js +42 -66
- package/optimize/es/components/tool_tip/tool_tip.styles.js +107 -0
- package/optimize/es/components/tool_tip/tool_tip_anchor.js +60 -0
- package/optimize/es/components/tool_tip/tool_tip_arrow.js +20 -0
- package/optimize/es/components/tool_tip/tool_tip_popover.js +46 -87
- package/optimize/es/global_styling/index.js +2 -1
- package/optimize/es/global_styling/utility/animations.js +13 -0
- package/optimize/es/services/color/contrast.js +2 -0
- package/optimize/es/services/index.js +1 -1
- package/optimize/es/services/theme/context.js +2 -1
- package/optimize/es/services/theme/hooks.js +27 -1
- package/optimize/es/services/theme/index.js +1 -1
- package/optimize/es/services/theme/provider.js +14 -1
- package/optimize/lib/components/badge/badge.js +90 -78
- package/optimize/lib/components/badge/badge.styles.js +61 -0
- package/optimize/lib/components/basic_table/in_memory_table.js +4 -0
- package/optimize/lib/components/button/button.js +0 -1
- package/optimize/lib/components/button/button_display/_button_display.js +8 -3
- package/optimize/lib/components/button/button_display/_button_display.styles.js +2 -2
- 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 +4 -1
- package/optimize/lib/components/card/card.js +2 -2
- package/optimize/lib/components/card/card.styles.js +5 -2
- package/optimize/lib/components/image/image_fullscreen_wrapper.js +2 -3
- package/optimize/lib/components/notification/notification_event.js +11 -11
- package/optimize/lib/components/overlay_mask/overlay_mask.js +27 -59
- package/optimize/lib/components/overlay_mask/overlay_mask.styles.js +34 -0
- package/optimize/lib/components/page/page_content/page_content.js +1 -2
- package/optimize/lib/components/page/page_content/page_content_body.js +1 -2
- package/optimize/lib/components/page/page_content/page_content_header.js +1 -2
- package/optimize/lib/components/page/page_content/page_content_header_section.js +1 -2
- package/optimize/lib/components/page/page_section/page_section.js +4 -2
- package/optimize/lib/components/page/page_side_bar/page_side_bar.js +1 -2
- package/optimize/lib/components/page/page_template.js +3 -1
- package/optimize/lib/components/pagination/pagination.js +18 -3
- package/optimize/lib/components/pagination/pagination.styles.js +34 -0
- package/optimize/lib/components/pagination/pagination_button.js +9 -4
- package/optimize/lib/components/pagination/pagination_button.styles.js +45 -0
- package/optimize/lib/components/pagination/pagination_button_arrow.js +7 -0
- package/optimize/lib/components/popover/popover_title.js +2 -2
- package/optimize/lib/components/popover/popover_title.styles.js +19 -7
- package/optimize/lib/components/provider/cache/cache_provider.js +3 -11
- package/optimize/lib/components/provider/provider.js +31 -6
- package/optimize/lib/components/search_bar/filters/custom_component_filter.js +29 -0
- package/optimize/lib/components/search_bar/filters/filters.js +7 -0
- package/optimize/lib/components/search_bar/query/ast.js +12 -0
- package/optimize/lib/components/search_bar/query/ast_to_es_query_dsl.js +16 -11
- package/optimize/lib/components/search_bar/query/query.js +17 -0
- package/optimize/lib/components/suggest/suggest.js +4 -1
- package/optimize/lib/components/tool_tip/tool_tip.js +42 -64
- package/optimize/lib/components/tool_tip/tool_tip.styles.js +125 -0
- package/optimize/lib/components/tool_tip/tool_tip_anchor.js +75 -0
- package/optimize/lib/components/tool_tip/tool_tip_arrow.js +35 -0
- package/optimize/lib/components/tool_tip/tool_tip_popover.js +47 -88
- package/optimize/lib/global_styling/index.js +13 -0
- package/optimize/lib/global_styling/utility/animations.js +17 -0
- package/optimize/lib/services/color/contrast.js +5 -1
- package/optimize/lib/services/index.js +7 -0
- package/optimize/lib/services/theme/context.js +4 -2
- package/optimize/lib/services/theme/hooks.js +28 -0
- package/optimize/lib/services/theme/index.js +12 -0
- package/optimize/lib/services/theme/provider.js +23 -9
- package/package.json +5 -5
- package/src/components/badge/_index.scss +0 -1
- package/src/components/index.scss +0 -4
- package/src/global_styling/mixins/_tool_tip.scss +3 -6
- package/src/themes/amsterdam/overrides/_index.scss +0 -2
- package/test-env/components/badge/badge.js +92 -80
- package/test-env/components/badge/badge.styles.js +61 -0
- package/test-env/components/basic_table/in_memory_table.js +8 -0
- package/test-env/components/button/button.js +0 -1
- package/test-env/components/button/button_display/_button_display.js +20 -6
- package/test-env/components/button/button_display/_button_display.styles.js +2 -2
- package/test-env/components/button/button_display/_button_display_content.js +8 -4
- package/test-env/components/button/button_display/_button_display_content.styles.js +4 -1
- package/test-env/components/button/button_empty/button_empty.js +10 -1
- package/test-env/components/card/card.js +2 -2
- package/test-env/components/card/card.styles.js +5 -2
- package/test-env/components/collapsible_nav/collapsible_nav.js +0 -5
- package/test-env/components/date_picker/auto_refresh/auto_refresh.js +6 -1
- package/test-env/components/date_picker/super_date_picker/date_popover/date_popover_button.js +6 -1
- package/test-env/components/expression/expression.js +12 -2
- package/test-env/components/header/header_links/header_link.js +10 -1
- package/test-env/components/image/image.js +6 -1
- package/test-env/components/image/image_fullscreen_wrapper.js +2 -3
- package/test-env/components/notification/notification_event.js +25 -16
- package/test-env/components/notification/notification_event_meta.js +1 -1
- package/test-env/components/overlay_mask/overlay_mask.js +27 -64
- package/test-env/components/overlay_mask/overlay_mask.styles.js +34 -0
- package/test-env/components/page/page_content/page_content.js +1 -2
- package/test-env/components/page/page_content/page_content_body.js +1 -2
- package/test-env/components/page/page_content/page_content_header.js +1 -2
- package/test-env/components/page/page_content/page_content_header_section.js +1 -2
- package/test-env/components/page/page_section/page_section.js +15 -3
- package/test-env/components/page/page_side_bar/page_side_bar.js +1 -2
- package/test-env/components/page/page_template.js +3 -1
- package/test-env/components/page_template/empty_prompt/page_empty_prompt.js +11 -1
- package/test-env/components/page_template/page_template.js +18 -2
- package/test-env/components/pagination/pagination.js +18 -3
- package/test-env/components/pagination/pagination.styles.js +34 -0
- package/test-env/components/pagination/pagination_button.js +9 -4
- package/test-env/components/pagination/pagination_button.styles.js +45 -0
- package/test-env/components/pagination/pagination_button_arrow.js +7 -0
- package/test-env/components/popover/popover_title.js +2 -2
- package/test-env/components/popover/popover_title.styles.js +19 -7
- package/test-env/components/progress/progress.js +6 -1
- package/test-env/components/provider/cache/cache_provider.js +3 -11
- package/test-env/components/provider/provider.js +31 -6
- package/test-env/components/resizable_container/resizable_panel.js +6 -1
- package/test-env/components/search_bar/filters/custom_component_filter.js +29 -0
- package/test-env/components/search_bar/filters/filters.js +7 -0
- package/test-env/components/search_bar/query/ast.js +12 -0
- package/test-env/components/search_bar/query/ast_to_es_query_dsl.js +16 -11
- package/test-env/components/search_bar/query/query.js +17 -0
- package/test-env/components/search_bar/search_bar.js +4 -0
- package/test-env/components/search_bar/search_filters.js +4 -0
- package/test-env/components/selectable/selectable_list/selectable_list.js +2 -2
- package/test-env/components/selectable/selectable_list/selectable_list_item.js +2 -2
- package/test-env/components/side_nav/side_nav.js +5 -0
- package/test-env/components/suggest/suggest.js +10 -1
- package/test-env/components/tool_tip/tool_tip.js +42 -64
- package/test-env/components/tool_tip/tool_tip.styles.js +125 -0
- package/test-env/components/tool_tip/tool_tip_anchor.js +84 -0
- package/test-env/components/tool_tip/tool_tip_arrow.js +35 -0
- package/test-env/components/tool_tip/tool_tip_popover.js +49 -89
- package/test-env/global_styling/index.js +13 -0
- package/test-env/global_styling/utility/animations.js +17 -0
- package/test-env/services/color/contrast.js +5 -1
- package/test-env/services/index.js +7 -0
- package/test-env/services/theme/context.js +4 -2
- package/test-env/services/theme/hooks.js +28 -0
- package/test-env/services/theme/index.js +12 -0
- package/test-env/services/theme/provider.js +23 -9
- package/src/components/badge/_badge.scss +0 -133
- package/src/components/call_out/_index.scss +0 -3
- package/src/components/call_out/_mixins.scss +0 -23
- package/src/components/call_out/_variables.scss +0 -7
- package/src/components/overlay_mask/_index.scss +0 -1
- package/src/components/overlay_mask/_overlay_mask.scss +0 -33
- package/src/components/pagination/_index.scss +0 -2
- package/src/components/pagination/_pagination.scss +0 -30
- package/src/components/pagination/_pagination_button.scss +0 -37
- package/src/components/tool_tip/_index.scss +0 -1
- package/src/components/tool_tip/_tool_tip.scss +0 -121
- package/src/themes/amsterdam/overrides/_overlay_mask.scss +0 -3
- package/src/themes/amsterdam/overrides/_tooltip.scss +0 -7
package/eui.d.ts
CHANGED
|
@@ -1886,7 +1886,7 @@ declare module '@elastic/eui/src/themes/amsterdam/global_styling/mixins/button'
|
|
|
1886
1886
|
declare module '@elastic/eui/src/components/button/button_display/_button_display.styles' {
|
|
1887
1887
|
import { UseEuiTheme } from '@elastic/eui/src/services';
|
|
1888
1888
|
export const euiButtonBaseCSS: () => string;
|
|
1889
|
-
export const euiButtonDisplayStyles: (euiThemeContext: UseEuiTheme
|
|
1889
|
+
export const euiButtonDisplayStyles: (euiThemeContext: UseEuiTheme) => {
|
|
1890
1890
|
euiButtonDisplay: import("@emotion/utils").SerializedStyles;
|
|
1891
1891
|
isDisabled: import("@emotion/utils").SerializedStyles;
|
|
1892
1892
|
fullWidth: import("@emotion/utils").SerializedStyles;
|
|
@@ -1904,6 +1904,8 @@ declare module '@elastic/eui/src/components/button/button_display/_button_displa
|
|
|
1904
1904
|
right: import("@emotion/utils").SerializedStyles;
|
|
1905
1905
|
euiButtonDisplayContent__spinner: import("@emotion/utils").SerializedStyles;
|
|
1906
1906
|
euiButtonDisplayContent__icon: import("@emotion/utils").SerializedStyles;
|
|
1907
|
+
s: import("@emotion/utils").SerializedStyles;
|
|
1908
|
+
m: import("@emotion/utils").SerializedStyles;
|
|
1907
1909
|
};
|
|
1908
1910
|
|
|
1909
1911
|
}
|
|
@@ -1911,7 +1913,10 @@ declare module '@elastic/eui/src/components/button/button_display/_button_displa
|
|
|
1911
1913
|
import { HTMLAttributes, FunctionComponent, Ref } from 'react';
|
|
1912
1914
|
import { CommonProps } from '@elastic/eui/src/components/common';
|
|
1913
1915
|
import { IconType } from '@elastic/eui/src/components/icon';
|
|
1914
|
-
export
|
|
1916
|
+
export const ICON_SIZES: readonly ["s", "m"];
|
|
1917
|
+
export type ButtonContentIconSize = typeof ICON_SIZES[number];
|
|
1918
|
+
export const ICON_SIDES: readonly ["left", "right"];
|
|
1919
|
+
export type ButtonContentIconSide = typeof ICON_SIDES[number] | undefined;
|
|
1915
1920
|
export type EuiButtonDisplayContentType = HTMLAttributes<HTMLSpanElement>;
|
|
1916
1921
|
/**
|
|
1917
1922
|
* *INTERNAL ONLY*
|
|
@@ -1934,7 +1939,7 @@ declare module '@elastic/eui/src/components/button/button_display/_button_displa
|
|
|
1934
1939
|
ref?: Ref<HTMLSpanElement>;
|
|
1935
1940
|
'data-text'?: string;
|
|
1936
1941
|
};
|
|
1937
|
-
iconSize?:
|
|
1942
|
+
iconSize?: ButtonContentIconSize;
|
|
1938
1943
|
isDisabled?: boolean;
|
|
1939
1944
|
}
|
|
1940
1945
|
export const EuiButtonDisplayContent: FunctionComponent<EuiButtonDisplayContentType & EuiButtonDisplayContentProps>;
|
|
@@ -2050,7 +2055,7 @@ declare module '@elastic/eui/src/components/button/button_display/_button_displa
|
|
|
2050
2055
|
/**
|
|
2051
2056
|
* Object of props passed to the <span/> wrapping the button's content
|
|
2052
2057
|
*/
|
|
2053
|
-
contentProps?: EuiButtonDisplayContentType;
|
|
2058
|
+
contentProps?: CommonProps & EuiButtonDisplayContentType;
|
|
2054
2059
|
style?: CSSProperties;
|
|
2055
2060
|
}
|
|
2056
2061
|
export type EuiButtonDisplayPropsForAnchor = PropsForAnchor<EuiButtonDisplayCommonProps, {
|
|
@@ -2216,7 +2221,7 @@ declare module '@elastic/eui/src/components/button/button_empty/button_empty' {
|
|
|
2216
2221
|
/**
|
|
2217
2222
|
* Object of props passed to the <span/> wrapping the button's content
|
|
2218
2223
|
*/
|
|
2219
|
-
contentProps?: EuiButtonContentType;
|
|
2224
|
+
contentProps?: CommonProps & EuiButtonContentType;
|
|
2220
2225
|
} type EuiButtonEmptyPropsForAnchor = PropsForAnchor<CommonEuiButtonEmptyProps>; type EuiButtonEmptyPropsForButton = PropsForButton<CommonEuiButtonEmptyProps>;
|
|
2221
2226
|
export type EuiButtonEmptyProps = ExclusiveUnion<EuiButtonEmptyPropsForAnchor, EuiButtonEmptyPropsForButton>;
|
|
2222
2227
|
export const EuiButtonEmpty: FunctionComponent<EuiButtonEmptyProps>;
|
|
@@ -3474,7 +3479,7 @@ declare module '@elastic/eui/src/components/progress/progress' {
|
|
|
3474
3479
|
/**
|
|
3475
3480
|
* Object of props passed to the <span/> wrapping the determinate progress's label
|
|
3476
3481
|
*/
|
|
3477
|
-
labelProps?: HTMLAttributes<HTMLSpanElement>;
|
|
3482
|
+
labelProps?: CommonProps & HTMLAttributes<HTMLSpanElement>;
|
|
3478
3483
|
};
|
|
3479
3484
|
export const EuiProgress: FunctionComponent<ExclusiveUnion<Determinate, Indeterminate>>;
|
|
3480
3485
|
export {};
|
|
@@ -4645,10 +4650,17 @@ declare module '@elastic/eui/src/components/popover/input_popover' {
|
|
|
4645
4650
|
|
|
4646
4651
|
}
|
|
4647
4652
|
declare module '@elastic/eui/src/components/popover/popover_title.styles' {
|
|
4648
|
-
import { EuiPaddingSize } from '@elastic/eui/src/global_styling';
|
|
4649
4653
|
import { UseEuiTheme } from '@elastic/eui/src/services';
|
|
4650
|
-
export const euiPopoverTitleStyles: (euiThemeContext: UseEuiTheme
|
|
4654
|
+
export const euiPopoverTitleStyles: (euiThemeContext: UseEuiTheme) => {
|
|
4651
4655
|
euiPopoverTitle: import("@emotion/utils").SerializedStyles;
|
|
4656
|
+
panelPaddingSizes: {
|
|
4657
|
+
none: import("@emotion/utils").SerializedStyles;
|
|
4658
|
+
xs: import("@emotion/utils").SerializedStyles;
|
|
4659
|
+
s: import("@emotion/utils").SerializedStyles;
|
|
4660
|
+
m: import("@emotion/utils").SerializedStyles;
|
|
4661
|
+
l: import("@emotion/utils").SerializedStyles;
|
|
4662
|
+
xl: import("@emotion/utils").SerializedStyles;
|
|
4663
|
+
};
|
|
4652
4664
|
};
|
|
4653
4665
|
|
|
4654
4666
|
}
|
|
@@ -5239,30 +5251,69 @@ declare module '@elastic/eui/src/components/form/super_select/super_select_contr
|
|
|
5239
5251
|
}
|
|
5240
5252
|
export const EuiSuperSelectControl: <T extends string>(props: EuiSuperSelectControlProps<T>) => ReturnType<FunctionComponent<EuiSuperSelectControlProps<T>>>;
|
|
5241
5253
|
|
|
5254
|
+
}
|
|
5255
|
+
declare module '@elastic/eui/src/themes/amsterdam' {
|
|
5256
|
+
export * from '@elastic/eui/src/themes/amsterdam/global_styling/mixins/shadow';
|
|
5257
|
+
|
|
5258
|
+
}
|
|
5259
|
+
declare module '@elastic/eui/src/components/tool_tip/tool_tip.styles' {
|
|
5260
|
+
import { UseEuiTheme } from '@elastic/eui/src/services';
|
|
5261
|
+
export const euiToolTipBackgroundColor: (euiTheme: UseEuiTheme['euiTheme'], colorMode: UseEuiTheme['colorMode']) => string;
|
|
5262
|
+
export const euiToolTipBorderColor: (euiTheme: UseEuiTheme['euiTheme'], colorMode: UseEuiTheme['colorMode']) => string;
|
|
5263
|
+
export const euiToolTipStyles: (euiThemeContext: UseEuiTheme) => {
|
|
5264
|
+
euiToolTip: import("@emotion/utils").SerializedStyles;
|
|
5265
|
+
s: import("@emotion/utils").SerializedStyles;
|
|
5266
|
+
top: import("@emotion/utils").SerializedStyles;
|
|
5267
|
+
bottom: import("@emotion/utils").SerializedStyles;
|
|
5268
|
+
left: import("@emotion/utils").SerializedStyles;
|
|
5269
|
+
right: import("@emotion/utils").SerializedStyles;
|
|
5270
|
+
euiToolTip__arrow: import("@emotion/utils").SerializedStyles;
|
|
5271
|
+
};
|
|
5272
|
+
export const euiToolTipPopoverStyles: ({ euiTheme, colorMode, }: UseEuiTheme) => {
|
|
5273
|
+
euiToolTip__title: import("@emotion/utils").SerializedStyles;
|
|
5274
|
+
};
|
|
5275
|
+
export const euiToolTipAnchorStyles: () => {
|
|
5276
|
+
euiToolTipAnchor: import("@emotion/utils").SerializedStyles;
|
|
5277
|
+
block: import("@emotion/utils").SerializedStyles;
|
|
5278
|
+
inlineBlock: import("@emotion/utils").SerializedStyles;
|
|
5279
|
+
};
|
|
5280
|
+
|
|
5242
5281
|
}
|
|
5243
5282
|
declare module '@elastic/eui/src/components/tool_tip/tool_tip_popover' {
|
|
5244
|
-
import { HTMLAttributes,
|
|
5245
|
-
import { CommonProps } from '@elastic/eui/src/components/common';
|
|
5283
|
+
import { HTMLAttributes, FunctionComponent, ReactNode } from 'react';
|
|
5284
|
+
import { CommonProps } from '@elastic/eui/src/components/common';
|
|
5285
|
+
export type ToolTipPositions = 'top' | 'right' | 'bottom' | 'left'; type Props = CommonProps & Omit<HTMLAttributes<HTMLDivElement>, 'title'> & {
|
|
5246
5286
|
positionToolTip: () => void;
|
|
5247
5287
|
children?: ReactNode;
|
|
5248
5288
|
title?: ReactNode;
|
|
5249
5289
|
popoverRef?: (ref: HTMLDivElement) => void;
|
|
5290
|
+
calculatedPosition?: ToolTipPositions;
|
|
5250
5291
|
};
|
|
5251
|
-
export
|
|
5252
|
-
private popover;
|
|
5253
|
-
updateDimensions: () => void;
|
|
5254
|
-
setPopoverRef: (ref: HTMLDivElement) => void;
|
|
5255
|
-
componentDidMount(): void;
|
|
5256
|
-
componentWillUnmount(): void;
|
|
5257
|
-
render(): JSX.Element;
|
|
5258
|
-
}
|
|
5292
|
+
export const EuiToolTipPopover: FunctionComponent<Props>;
|
|
5259
5293
|
export {};
|
|
5260
5294
|
|
|
5295
|
+
}
|
|
5296
|
+
declare module '@elastic/eui/src/components/tool_tip/tool_tip_anchor' {
|
|
5297
|
+
import React, { HTMLAttributes, ReactElement } from 'react';
|
|
5298
|
+
export interface EuiToolTipAnchorProps extends Omit<HTMLAttributes<HTMLSpanElement>, 'onBlur' | 'onFocus' | 'children'> {
|
|
5299
|
+
onBlur: () => void;
|
|
5300
|
+
onFocus: () => void;
|
|
5301
|
+
children: ReactElement;
|
|
5302
|
+
isVisible: boolean;
|
|
5303
|
+
display: 'block' | 'inlineBlock';
|
|
5304
|
+
}
|
|
5305
|
+
export const EuiToolTipAnchor: React.ForwardRefExoticComponent<EuiToolTipAnchorProps & React.RefAttributes<HTMLSpanElement>>;
|
|
5306
|
+
|
|
5307
|
+
}
|
|
5308
|
+
declare module '@elastic/eui/src/components/tool_tip/tool_tip_arrow' {
|
|
5309
|
+
import { HTMLAttributes, FunctionComponent } from 'react';
|
|
5310
|
+
export const EuiToolTipArrow: FunctionComponent<HTMLAttributes<HTMLDivElement>>;
|
|
5311
|
+
|
|
5261
5312
|
}
|
|
5262
5313
|
declare module '@elastic/eui/src/components/tool_tip/tool_tip' {
|
|
5263
5314
|
import { Component, ReactElement, ReactNode, MouseEvent as ReactMouseEvent, HTMLAttributes } from 'react';
|
|
5264
5315
|
import { CommonProps } from '@elastic/eui/src/components/common';
|
|
5265
|
-
|
|
5316
|
+
import { ToolTipPositions } from '@elastic/eui/src/components/tool_tip/tool_tip_popover';
|
|
5266
5317
|
export const POSITIONS: ToolTipPositions[];
|
|
5267
5318
|
export type ToolTipDelay = 'regular' | 'long';
|
|
5268
5319
|
interface ToolTipStyles {
|
|
@@ -5345,7 +5396,8 @@ declare module '@elastic/eui/src/components/tool_tip/tool_tip' {
|
|
|
5345
5396
|
componentWillUnmount(): void;
|
|
5346
5397
|
componentDidUpdate(prevProps: EuiToolTipProps, prevState: State): void;
|
|
5347
5398
|
testAnchor: () => void;
|
|
5348
|
-
|
|
5399
|
+
setAnchorRef: (ref: HTMLElement) => HTMLElement;
|
|
5400
|
+
setPopoverRef: (ref: HTMLElement) => HTMLElement;
|
|
5349
5401
|
showToolTip: () => void;
|
|
5350
5402
|
positionToolTip: () => void;
|
|
5351
5403
|
hideToolTip: () => void;
|
|
@@ -5398,7 +5450,8 @@ declare module '@elastic/eui/src/components/tool_tip/icon_tip' {
|
|
|
5398
5450
|
|
|
5399
5451
|
}
|
|
5400
5452
|
declare module '@elastic/eui/src/components/tool_tip' {
|
|
5401
|
-
export type { ToolTipPositions
|
|
5453
|
+
export type { ToolTipPositions } from '@elastic/eui/src/components/tool_tip/tool_tip_popover';
|
|
5454
|
+
export type { EuiToolTipProps } from '@elastic/eui/src/components/tool_tip/tool_tip';
|
|
5402
5455
|
export { EuiToolTip } from '@elastic/eui/src/components/tool_tip/tool_tip';
|
|
5403
5456
|
export type { EuiIconTipProps } from '@elastic/eui/src/components/tool_tip/icon_tip';
|
|
5404
5457
|
export { EuiIconTip } from '@elastic/eui/src/components/tool_tip/icon_tip';
|
|
@@ -6137,6 +6190,7 @@ declare module '@elastic/eui/src/services/color/manipulation' {
|
|
|
6137
6190
|
|
|
6138
6191
|
}
|
|
6139
6192
|
declare module '@elastic/eui/src/services/color/contrast' {
|
|
6193
|
+
export const wcagContrastMin = 4.5;
|
|
6140
6194
|
/**
|
|
6141
6195
|
* Creates a new color that meets or exceeds WCAG level AA
|
|
6142
6196
|
* @param foreground - Color to manipulate
|
|
@@ -6381,6 +6435,21 @@ declare module '@elastic/eui/src/global_styling/functions/size' {
|
|
|
6381
6435
|
base: number;
|
|
6382
6436
|
}) => string;
|
|
6383
6437
|
|
|
6438
|
+
}
|
|
6439
|
+
declare module '@elastic/eui/src/services/theme/provider' {
|
|
6440
|
+
import React, { PropsWithChildren } from 'react';
|
|
6441
|
+
import { EuiThemeColorMode, EuiThemeSystem, EuiThemeModifications } from '@elastic/eui/src/services/theme/types'; type LEVELS = 'log' | 'warn' | 'error';
|
|
6442
|
+
export const setEuiDevProviderWarning: (level: LEVELS) => LEVELS;
|
|
6443
|
+
export const getEuiDevProviderWarning: () => LEVELS | undefined;
|
|
6444
|
+
export interface EuiThemeProviderProps<T> {
|
|
6445
|
+
theme?: EuiThemeSystem<T>;
|
|
6446
|
+
colorMode?: EuiThemeColorMode;
|
|
6447
|
+
modify?: EuiThemeModifications<T>;
|
|
6448
|
+
children: any;
|
|
6449
|
+
}
|
|
6450
|
+
export const EuiThemeProvider: <T extends {} = {}>({ theme: _system, colorMode: _colorMode, modify: _modifications, children, }: React.PropsWithChildren<EuiThemeProviderProps<T>>) => JSX.Element;
|
|
6451
|
+
export {};
|
|
6452
|
+
|
|
6384
6453
|
}
|
|
6385
6454
|
declare module '@elastic/eui/src/services/theme/hooks' {
|
|
6386
6455
|
import React from 'react';
|
|
@@ -6391,7 +6460,7 @@ declare module '@elastic/eui/src/services/theme/hooks' {
|
|
|
6391
6460
|
modifications: EuiThemeModifications<T>;
|
|
6392
6461
|
}
|
|
6393
6462
|
export const useEuiTheme: <T extends {} = {}>() => UseEuiTheme<T>;
|
|
6394
|
-
export interface WithEuiThemeProps<P = {}> {
|
|
6463
|
+
export interface WithEuiThemeProps<P extends {} = {}> {
|
|
6395
6464
|
theme: UseEuiTheme<P>;
|
|
6396
6465
|
}
|
|
6397
6466
|
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">>>;
|
|
@@ -6494,27 +6563,16 @@ declare module '@elastic/eui/src/services/theme/context' {
|
|
|
6494
6563
|
export const EuiSystemContext: import("react").Context<EuiThemeSystem<{}>>;
|
|
6495
6564
|
export const EuiModificationsContext: import("react").Context<import ("@elastic/eui").RecursivePartial<import ("@elastic/eui/src/services/theme/types").EuiThemeShape>>;
|
|
6496
6565
|
export const EuiColorModeContext: import("react").Context<EuiThemeColorModeStandard>;
|
|
6566
|
+
export const defaultComputedTheme: EuiThemeComputed<import ("@elastic/eui/src/services/theme/types").EuiThemeShape>;
|
|
6497
6567
|
export const EuiThemeContext: import("react").Context<EuiThemeComputed<{}>>;
|
|
6498
6568
|
|
|
6499
|
-
}
|
|
6500
|
-
declare module '@elastic/eui/src/services/theme/provider' {
|
|
6501
|
-
import React, { PropsWithChildren } from 'react';
|
|
6502
|
-
import { EuiThemeColorMode, EuiThemeSystem, EuiThemeModifications } from '@elastic/eui/src/services/theme/types';
|
|
6503
|
-
export interface EuiThemeProviderProps<T> {
|
|
6504
|
-
theme?: EuiThemeSystem<T>;
|
|
6505
|
-
colorMode?: EuiThemeColorMode;
|
|
6506
|
-
modify?: EuiThemeModifications<T>;
|
|
6507
|
-
children: any;
|
|
6508
|
-
}
|
|
6509
|
-
export const EuiThemeProvider: <T extends {} = {}>({ theme: _system, colorMode: _colorMode, modify: _modifications, children, }: React.PropsWithChildren<EuiThemeProviderProps<T>>) => JSX.Element;
|
|
6510
|
-
|
|
6511
6569
|
}
|
|
6512
6570
|
declare module '@elastic/eui/src/services/theme' {
|
|
6513
6571
|
export { EuiSystemContext, EuiThemeContext, EuiModificationsContext, EuiColorModeContext, } from '@elastic/eui/src/services/theme/context';
|
|
6514
6572
|
export type { UseEuiTheme, WithEuiThemeProps } from '@elastic/eui/src/services/theme/hooks';
|
|
6515
6573
|
export { useEuiTheme, withEuiTheme } from '@elastic/eui/src/services/theme/hooks';
|
|
6516
6574
|
export type { EuiThemeProviderProps } from '@elastic/eui/src/services/theme/provider';
|
|
6517
|
-
export { EuiThemeProvider } from '@elastic/eui/src/services/theme/provider';
|
|
6575
|
+
export { EuiThemeProvider, getEuiDevProviderWarning, setEuiDevProviderWarning, } from '@elastic/eui/src/services/theme/provider';
|
|
6518
6576
|
export { buildTheme, computed, isInverseColorMode, getColorMode, getComputed, getOn, mergeDeep, setOn, Computed, } from '@elastic/eui/src/services/theme/utils';
|
|
6519
6577
|
export type { ComputedThemeShape, EuiThemeColorMode, EuiThemeColorModeStandard, EuiThemeComputed, EuiThemeModifications, EuiThemeShape, EuiThemeSystem, } from '@elastic/eui/src/services/theme/types';
|
|
6520
6578
|
export { COLOR_MODES_STANDARD } from '@elastic/eui/src/services/theme/types';
|
|
@@ -7032,7 +7090,7 @@ declare module '@elastic/eui/src/services' {
|
|
|
7032
7090
|
export type { EuiBreakpointSize } from '@elastic/eui/src/services/breakpoint';
|
|
7033
7091
|
export { useIsWithinBreakpoints, useIsWithinMaxBreakpoint, useIsWithinMinBreakpoint, CurrentEuiBreakpointContext, CurrentEuiBreakpointProvider, useCurrentEuiBreakpoint, } from '@elastic/eui/src/services/breakpoint';
|
|
7034
7092
|
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';
|
|
7093
|
+
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, wcagContrastMin, } from '@elastic/eui/src/services/color';
|
|
7036
7094
|
export type { EuiSetColorMethod } from '@elastic/eui/src/services/color_picker';
|
|
7037
7095
|
export { useColorPickerState, useColorStopsState } from '@elastic/eui/src/services/color_picker';
|
|
7038
7096
|
export * from '@elastic/eui/src/services/console';
|
|
@@ -7242,12 +7300,17 @@ declare module '@elastic/eui/src/global_styling/reset/global_styles' {
|
|
|
7242
7300
|
}
|
|
7243
7301
|
export const EuiGlobalStyles: ({}: EuiGlobalStylesProps) => JSX.Element;
|
|
7244
7302
|
|
|
7303
|
+
}
|
|
7304
|
+
declare module '@elastic/eui/src/global_styling/utility/animations' {
|
|
7305
|
+
export const euiAnimFadeIn: import("@emotion/serialize").Keyframes;
|
|
7306
|
+
|
|
7245
7307
|
}
|
|
7246
7308
|
declare module '@elastic/eui/src/global_styling' {
|
|
7247
7309
|
export * from '@elastic/eui/src/global_styling/reset/global_styles';
|
|
7248
7310
|
export * from '@elastic/eui/src/global_styling/functions';
|
|
7249
7311
|
export * from '@elastic/eui/src/global_styling/variables';
|
|
7250
7312
|
export * from '@elastic/eui/src/global_styling/mixins';
|
|
7313
|
+
export * from '@elastic/eui/src/global_styling/utility/animations';
|
|
7251
7314
|
|
|
7252
7315
|
}
|
|
7253
7316
|
declare module '@elastic/eui/src/components/accessibility/screen_reader_only/screen_reader_only.styles' {
|
|
@@ -7653,11 +7716,39 @@ declare module '@elastic/eui/src/components/avatar' {
|
|
|
7653
7716
|
export type { EuiAvatarProps } from '@elastic/eui/src/components/avatar/avatar';
|
|
7654
7717
|
export { EuiAvatar, checkValidColor } from '@elastic/eui/src/components/avatar/avatar';
|
|
7655
7718
|
|
|
7719
|
+
}
|
|
7720
|
+
declare module '@elastic/eui/src/components/badge/badge.styles' {
|
|
7721
|
+
import { UseEuiTheme } from '@elastic/eui/src/services';
|
|
7722
|
+
export const euiBadgeStyles: (euiThemeContext: UseEuiTheme) => {
|
|
7723
|
+
euiBadge: import("@emotion/utils").SerializedStyles;
|
|
7724
|
+
clickable: import("@emotion/utils").SerializedStyles;
|
|
7725
|
+
disabled: import("@emotion/utils").SerializedStyles;
|
|
7726
|
+
hollow: import("@emotion/utils").SerializedStyles;
|
|
7727
|
+
euiBadge__content: import("@emotion/utils").SerializedStyles;
|
|
7728
|
+
text: {
|
|
7729
|
+
euiBadge__text: import("@emotion/utils").SerializedStyles;
|
|
7730
|
+
clickable: import("@emotion/utils").SerializedStyles;
|
|
7731
|
+
};
|
|
7732
|
+
icon: {
|
|
7733
|
+
euiBadge__icon: import("@emotion/utils").SerializedStyles;
|
|
7734
|
+
right: import("@emotion/utils").SerializedStyles;
|
|
7735
|
+
left: import("@emotion/utils").SerializedStyles;
|
|
7736
|
+
};
|
|
7737
|
+
iconButton: {
|
|
7738
|
+
euiBadge__iconButton: import("@emotion/utils").SerializedStyles;
|
|
7739
|
+
right: import("@emotion/utils").SerializedStyles;
|
|
7740
|
+
left: import("@emotion/utils").SerializedStyles;
|
|
7741
|
+
};
|
|
7742
|
+
euiBadge__childButton: import("@emotion/utils").SerializedStyles;
|
|
7743
|
+
};
|
|
7744
|
+
|
|
7656
7745
|
}
|
|
7657
7746
|
declare module '@elastic/eui/src/components/badge/badge' {
|
|
7658
7747
|
import { AriaAttributes, FunctionComponent, HTMLAttributes, MouseEventHandler } from 'react';
|
|
7659
7748
|
import { CommonProps, ExclusiveUnion, PropsOf } from '@elastic/eui/src/components/common';
|
|
7660
|
-
import { EuiIcon,
|
|
7749
|
+
import { EuiIcon, IconType } from '@elastic/eui/src/components/icon';
|
|
7750
|
+
export const ICON_SIDES: readonly ["left", "right"]; type IconSide = typeof ICON_SIDES[number];
|
|
7751
|
+
export const COLORS: readonly ["default", "hollow", "primary", "success", "accent", "warning", "danger"]; type BadgeColor = typeof COLORS[number]; type WithButtonProps = {
|
|
7661
7752
|
/**
|
|
7662
7753
|
* Will apply an onclick to the badge itself
|
|
7663
7754
|
*/
|
|
@@ -7693,7 +7784,7 @@ declare module '@elastic/eui/src/components/badge/badge' {
|
|
|
7693
7784
|
/**
|
|
7694
7785
|
* Accepts either our palette colors (primary, success ..etc) or a hex value `#FFFFFF`, `#000`.
|
|
7695
7786
|
*/
|
|
7696
|
-
color?:
|
|
7787
|
+
color?: BadgeColor | string;
|
|
7697
7788
|
/**
|
|
7698
7789
|
* Will override any color passed through the `color` prop.
|
|
7699
7790
|
*/
|
|
@@ -7703,8 +7794,6 @@ declare module '@elastic/eui/src/components/badge/badge' {
|
|
|
7703
7794
|
*/
|
|
7704
7795
|
closeButtonProps?: Partial<PropsOf<typeof EuiIcon>>;
|
|
7705
7796
|
} & CommonProps & ExclusiveUnion<WithIconOnClick, {}> & ExclusiveUnion<ExclusiveUnion<WithButtonProps, WithAnchorProps>, WithSpanProps>;
|
|
7706
|
-
export const COLORS: string[];
|
|
7707
|
-
export const ICON_SIDES: IconSide[];
|
|
7708
7797
|
export const EuiBadge: FunctionComponent<EuiBadgeProps>;
|
|
7709
7798
|
export {};
|
|
7710
7799
|
|
|
@@ -8163,7 +8252,7 @@ declare module '@elastic/eui/src/components/card/card.styles' {
|
|
|
8163
8252
|
* 3. Horizontal layouts should always top left align no matter the textAlign prop
|
|
8164
8253
|
* 4. Ensures the contents always stretch no matter the flex layout
|
|
8165
8254
|
*/
|
|
8166
|
-
export const euiCardStyles: (euiThemeContext: UseEuiTheme, paddingSize: EuiCardProps['paddingSize']
|
|
8255
|
+
export const euiCardStyles: (euiThemeContext: UseEuiTheme, paddingSize: EuiCardProps['paddingSize']) => {
|
|
8167
8256
|
card: {
|
|
8168
8257
|
euiCard: import("@emotion/utils").SerializedStyles;
|
|
8169
8258
|
aligned: {
|
|
@@ -8195,7 +8284,10 @@ declare module '@elastic/eui/src/components/card/card.styles' {
|
|
|
8195
8284
|
};
|
|
8196
8285
|
disabled: import("@emotion/utils").SerializedStyles;
|
|
8197
8286
|
};
|
|
8198
|
-
|
|
8287
|
+
image: {
|
|
8288
|
+
euiCard__image: import("@emotion/utils").SerializedStyles;
|
|
8289
|
+
transparent: import("@emotion/utils").SerializedStyles;
|
|
8290
|
+
};
|
|
8199
8291
|
icon: {
|
|
8200
8292
|
euiCard__icon: import("@emotion/utils").SerializedStyles;
|
|
8201
8293
|
withImage: import("@emotion/utils").SerializedStyles;
|
|
@@ -8443,6 +8535,16 @@ declare module '@elastic/eui/src/components/copy' {
|
|
|
8443
8535
|
export type { EuiCopyProps } from '@elastic/eui/src/components/copy/copy';
|
|
8444
8536
|
export { EuiCopy } from '@elastic/eui/src/components/copy/copy';
|
|
8445
8537
|
|
|
8538
|
+
}
|
|
8539
|
+
declare module '@elastic/eui/src/components/overlay_mask/overlay_mask.styles' {
|
|
8540
|
+
import { UseEuiTheme } from '@elastic/eui/src/services';
|
|
8541
|
+
export const euiOverlayMaskStyles: ({ euiTheme }: UseEuiTheme) => {
|
|
8542
|
+
euiOverlayMask: import("@emotion/utils").SerializedStyles;
|
|
8543
|
+
aboveHeader: import("@emotion/utils").SerializedStyles;
|
|
8544
|
+
belowHeader: import("@emotion/utils").SerializedStyles;
|
|
8545
|
+
};
|
|
8546
|
+
export const euiOverlayMaskBodyStyles: import("@emotion/utils").SerializedStyles;
|
|
8547
|
+
|
|
8446
8548
|
}
|
|
8447
8549
|
declare module '@elastic/eui/src/components/overlay_mask/overlay_mask' {
|
|
8448
8550
|
/**
|
|
@@ -8452,10 +8554,6 @@ declare module '@elastic/eui/src/components/overlay_mask/overlay_mask' {
|
|
|
8452
8554
|
import { FunctionComponent, HTMLAttributes, MutableRefObject, ReactNode, Ref } from 'react';
|
|
8453
8555
|
import { CommonProps } from '@elastic/eui/src/components/common';
|
|
8454
8556
|
export interface EuiOverlayMaskInterface {
|
|
8455
|
-
/**
|
|
8456
|
-
* Function that applies to clicking the mask itself and not the children
|
|
8457
|
-
*/
|
|
8458
|
-
onClick?: () => void;
|
|
8459
8557
|
/**
|
|
8460
8558
|
* ReactNode to render as this component's content
|
|
8461
8559
|
*/
|
|
@@ -11732,6 +11830,18 @@ declare module '@elastic/eui/src/components/datagrid/utils/row_count' {
|
|
|
11732
11830
|
rowCount: EuiDataGridProps['rowCount'];
|
|
11733
11831
|
}) => EuiDataGridVisibleRows;
|
|
11734
11832
|
|
|
11833
|
+
}
|
|
11834
|
+
declare module '@elastic/eui/src/components/pagination/pagination_button.styles' {
|
|
11835
|
+
import { UseEuiTheme } from '@elastic/eui/src/services';
|
|
11836
|
+
export const euiPaginationButtonStyles: (euiThemeContext: UseEuiTheme) => {
|
|
11837
|
+
euiPaginationButton: import("@emotion/utils").SerializedStyles;
|
|
11838
|
+
isActive: import("@emotion/utils").SerializedStyles;
|
|
11839
|
+
isPlaceholder: import("@emotion/utils").SerializedStyles;
|
|
11840
|
+
};
|
|
11841
|
+
export const euiPaginationButtonArrowStyles: ({ euiTheme }: UseEuiTheme) => {
|
|
11842
|
+
euiPaginationArrowButton: import("@emotion/utils").SerializedStyles;
|
|
11843
|
+
};
|
|
11844
|
+
|
|
11735
11845
|
}
|
|
11736
11846
|
declare module '@elastic/eui/src/components/pagination/pagination_button' {
|
|
11737
11847
|
import { FunctionComponent } from 'react';
|
|
@@ -11762,6 +11872,15 @@ declare module '@elastic/eui/src/components/pagination/pagination_button_arrow'
|
|
|
11762
11872
|
};
|
|
11763
11873
|
export const EuiPaginationButtonArrow: FunctionComponent<Props>;
|
|
11764
11874
|
|
|
11875
|
+
}
|
|
11876
|
+
declare module '@elastic/eui/src/components/pagination/pagination.styles' {
|
|
11877
|
+
import { UseEuiTheme } from '@elastic/eui/src/services';
|
|
11878
|
+
export const euiPaginationStyles: (euiThemeContext: UseEuiTheme) => {
|
|
11879
|
+
euiPagination: import("@emotion/utils").SerializedStyles;
|
|
11880
|
+
euiPagination__compressedText: import("@emotion/utils").SerializedStyles;
|
|
11881
|
+
euiPagination__list: import("@emotion/utils").SerializedStyles;
|
|
11882
|
+
};
|
|
11883
|
+
|
|
11765
11884
|
}
|
|
11766
11885
|
declare module '@elastic/eui/src/components/pagination/pagination' {
|
|
11767
11886
|
import { FunctionComponent, HTMLAttributes, MouseEvent } from 'react';
|
|
@@ -12551,12 +12670,13 @@ declare module '@elastic/eui/src/components/date_picker/super_date_picker/pretty
|
|
|
12551
12670
|
declare module '@elastic/eui/src/components/date_picker/super_date_picker/date_popover/date_popover_button' {
|
|
12552
12671
|
import { FunctionComponent, ButtonHTMLAttributes, MouseEventHandler } from 'react';
|
|
12553
12672
|
import { LocaleSpecifier } from 'moment';
|
|
12673
|
+
import { CommonProps } from '@elastic/eui/src/components/common';
|
|
12554
12674
|
import { EuiPopoverProps } from '@elastic/eui/src/components/popover';
|
|
12555
12675
|
import { TimeOptions } from '@elastic/eui/src/components/date_picker/super_date_picker/time_options';
|
|
12556
12676
|
import { EuiDatePopoverContentProps } from '@elastic/eui/src/components/date_picker/super_date_picker/date_popover/date_popover_content';
|
|
12557
12677
|
export interface EuiDatePopoverButtonProps {
|
|
12558
12678
|
className?: string;
|
|
12559
|
-
buttonProps?: ButtonHTMLAttributes<HTMLButtonElement>;
|
|
12679
|
+
buttonProps?: CommonProps & ButtonHTMLAttributes<HTMLButtonElement>;
|
|
12560
12680
|
dateFormat: string;
|
|
12561
12681
|
isDisabled?: boolean;
|
|
12562
12682
|
isInvalid?: boolean;
|
|
@@ -12855,10 +12975,10 @@ declare module '@elastic/eui/src/components/responsive' {
|
|
|
12855
12975
|
|
|
12856
12976
|
}
|
|
12857
12977
|
declare module '@elastic/eui/src/components/date_picker/super_date_picker/super_update_button' {
|
|
12858
|
-
import { Component, MouseEventHandler,
|
|
12978
|
+
import { Component, MouseEventHandler, ElementRef } from 'react';
|
|
12859
12979
|
import { EuiButtonProps } from '@elastic/eui/src/components/button';
|
|
12860
12980
|
import { EuiToolTip, EuiToolTipProps } from '@elastic/eui/src/components/tool_tip';
|
|
12861
|
-
import { EuiBreakpointSize } from '@elastic/eui/src/services/breakpoint'; type EuiSuperUpdateButtonInternalProps = {
|
|
12981
|
+
import { EuiBreakpointSize } from '@elastic/eui/src/services/breakpoint'; type ToolTipRef = ElementRef<typeof EuiToolTip> | null; type EuiSuperUpdateButtonInternalProps = {
|
|
12862
12982
|
isDisabled?: boolean;
|
|
12863
12983
|
isLoading?: boolean;
|
|
12864
12984
|
needsUpdate?: boolean;
|
|
@@ -12894,11 +13014,11 @@ declare module '@elastic/eui/src/components/date_picker/super_date_picker/super_
|
|
|
12894
13014
|
};
|
|
12895
13015
|
_isMounted: boolean;
|
|
12896
13016
|
tooltipTimeout: number | undefined;
|
|
12897
|
-
tooltip:
|
|
13017
|
+
tooltip: ToolTipRef;
|
|
12898
13018
|
componentWillUnmount(): void;
|
|
12899
13019
|
componentDidMount(): void;
|
|
12900
13020
|
componentDidUpdate(): void;
|
|
12901
|
-
setTootipRef:
|
|
13021
|
+
setTootipRef: (node: ToolTipRef) => void;
|
|
12902
13022
|
showTooltip: () => void;
|
|
12903
13023
|
hideTooltip: () => void;
|
|
12904
13024
|
render(): JSX.Element;
|
|
@@ -13492,12 +13612,12 @@ declare module '@elastic/eui/src/components/expression/expression' {
|
|
|
13492
13612
|
* First part of the expression
|
|
13493
13613
|
*/
|
|
13494
13614
|
description: ReactNode;
|
|
13495
|
-
descriptionProps?: HTMLAttributes<HTMLSpanElement>;
|
|
13615
|
+
descriptionProps?: CommonProps & HTMLAttributes<HTMLSpanElement>;
|
|
13496
13616
|
/**
|
|
13497
13617
|
* Second part of the expression
|
|
13498
13618
|
*/
|
|
13499
13619
|
value?: ReactNode;
|
|
13500
|
-
valueProps?: HTMLAttributes<HTMLSpanElement>;
|
|
13620
|
+
valueProps?: CommonProps & HTMLAttributes<HTMLSpanElement>;
|
|
13501
13621
|
/**
|
|
13502
13622
|
* Color of the `description`
|
|
13503
13623
|
*/
|
|
@@ -13968,7 +14088,7 @@ declare module '@elastic/eui/src/components/image/image_types' {
|
|
|
13968
14088
|
/**
|
|
13969
14089
|
* Props to add to the wrapping figure element
|
|
13970
14090
|
*/
|
|
13971
|
-
wrapperProps?: HTMLAttributes<HTMLDivElement>;
|
|
14091
|
+
wrapperProps?: CommonProps & HTMLAttributes<HTMLDivElement>;
|
|
13972
14092
|
};
|
|
13973
14093
|
export type EuiImageWrapperProps = Pick<EuiImageProps, 'alt' | 'caption' | 'float' | 'margin' | 'hasShadow' | 'wrapperProps' | 'fullScreenIconColor' | 'allowFullScreen'> & {
|
|
13974
14094
|
isFullWidth: boolean;
|
|
@@ -14945,14 +15065,15 @@ declare module '@elastic/eui/src/components/notification/notification_event_read
|
|
|
14945
15065
|
|
|
14946
15066
|
}
|
|
14947
15067
|
declare module '@elastic/eui/src/components/notification/notification_event' {
|
|
14948
|
-
import { FunctionComponent, ReactElement } from 'react';
|
|
15068
|
+
import { FunctionComponent, ReactElement, HTMLAttributes } from 'react';
|
|
15069
|
+
import { CommonProps } from '@elastic/eui/src/components/common';
|
|
14949
15070
|
import { EuiNotificationEventMetaProps } from '@elastic/eui/src/components/notification/notification_event_meta';
|
|
14950
15071
|
import { EuiNotificationEventMessagesProps } from '@elastic/eui/src/components/notification/notification_event_messages';
|
|
14951
15072
|
import { EuiNotificationEventReadButtonProps } from '@elastic/eui/src/components/notification/notification_event_read_button';
|
|
14952
15073
|
import { EuiButtonEmptyProps } from '@elastic/eui/src/components/button';
|
|
14953
15074
|
import { EuiContextMenuItem, EuiContextMenuItemProps } from '@elastic/eui/src/components/context_menu';
|
|
14954
15075
|
export type EuiNotificationHeadingLevel = 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
|
|
14955
|
-
export type EuiNotificationEventProps = Omit<EuiNotificationEventMetaProps, 'onOpenContextMenu' | 'onRead' | 'eventName' | 'id'> & Omit<EuiNotificationEventReadButtonProps, 'onClick' | 'color' | 'eventName' | 'isRead' | 'id'> & {
|
|
15076
|
+
export type EuiNotificationEventProps = Omit<EuiNotificationEventMetaProps, 'onOpenContextMenu' | 'onRead' | 'eventName' | 'id'> & Omit<EuiNotificationEventReadButtonProps, 'onClick' | 'color' | 'eventName' | 'isRead' | 'id'> & CommonProps & Omit<HTMLAttributes<HTMLDivElement>, 'title'> & {
|
|
14956
15077
|
/**
|
|
14957
15078
|
* A unique identifier
|
|
14958
15079
|
*/
|
|
@@ -15141,8 +15262,7 @@ declare module '@elastic/eui/src/components/page/page_content/page_content' {
|
|
|
15141
15262
|
role?: HTMLAttributes['role'] | null;
|
|
15142
15263
|
};
|
|
15143
15264
|
/**
|
|
15144
|
-
*
|
|
15145
|
-
* Use EuiPageSection instead
|
|
15265
|
+
* @deprecated Use EuiPageSection instead
|
|
15146
15266
|
*/
|
|
15147
15267
|
export const EuiPageContent_Deprecated: FunctionComponent<EuiPageContentProps>;
|
|
15148
15268
|
|
|
@@ -15160,8 +15280,7 @@ declare module '@elastic/eui/src/components/page/page_content/page_content_body'
|
|
|
15160
15280
|
paddingSize?: typeof PADDING_SIZES[number];
|
|
15161
15281
|
}
|
|
15162
15282
|
/**
|
|
15163
|
-
*
|
|
15164
|
-
* Use EuiPageSection instead
|
|
15283
|
+
* @deprecated Use EuiPageSection instead
|
|
15165
15284
|
*/
|
|
15166
15285
|
export const EuiPageContentBody_Deprecated: FunctionComponent<EuiPageContentBodyProps>;
|
|
15167
15286
|
|
|
@@ -15177,8 +15296,7 @@ declare module '@elastic/eui/src/components/page/page_content/page_content_heade
|
|
|
15177
15296
|
responsive?: boolean;
|
|
15178
15297
|
}
|
|
15179
15298
|
/**
|
|
15180
|
-
*
|
|
15181
|
-
* Use EuiPageHeader instead
|
|
15299
|
+
* @deprecated Use EuiPageHeader instead
|
|
15182
15300
|
*/
|
|
15183
15301
|
export const EuiPageContentHeader_Deprecated: FunctionComponent<EuiPageContentHeaderProps>;
|
|
15184
15302
|
|
|
@@ -15189,8 +15307,7 @@ declare module '@elastic/eui/src/components/page/page_content/page_content_heade
|
|
|
15189
15307
|
export interface EuiPageContentHeaderSectionProps extends CommonProps, HTMLAttributes<HTMLDivElement> {
|
|
15190
15308
|
}
|
|
15191
15309
|
/**
|
|
15192
|
-
*
|
|
15193
|
-
* Use EuiPageHeader instead
|
|
15310
|
+
* @deprecated Use EuiPageHeader instead
|
|
15194
15311
|
*/
|
|
15195
15312
|
export const EuiPageContentHeaderSection_Deprecated: FunctionComponent<EuiPageContentHeaderSectionProps>;
|
|
15196
15313
|
|
|
@@ -15400,7 +15517,7 @@ declare module '@elastic/eui/src/components/page/page_section/page_section.style
|
|
|
15400
15517
|
|
|
15401
15518
|
}
|
|
15402
15519
|
declare module '@elastic/eui/src/components/page/page_section/page_section' {
|
|
15403
|
-
import { FunctionComponent, HTMLAttributes } from 'react';
|
|
15520
|
+
import { FunctionComponent, ComponentType, HTMLAttributes } from 'react';
|
|
15404
15521
|
import { CommonProps } from '@elastic/eui/src/components/common';
|
|
15405
15522
|
import { _EuiPageRestrictWidth } from '@elastic/eui/src/components/page/_restrict_width';
|
|
15406
15523
|
import { _EuiPageBottomBorder } from '@elastic/eui/src/components/page/_bottom_border';
|
|
@@ -15427,8 +15544,12 @@ declare module '@elastic/eui/src/components/page/page_section/page_section' {
|
|
|
15427
15544
|
/**
|
|
15428
15545
|
* Passed down to the div wrapper of the section contents
|
|
15429
15546
|
*/
|
|
15430
|
-
contentProps?: HTMLAttributes<HTMLDivElement>;
|
|
15431
|
-
|
|
15547
|
+
contentProps?: CommonProps & HTMLAttributes<HTMLDivElement>;
|
|
15548
|
+
/**
|
|
15549
|
+
* Sets which HTML element to render.
|
|
15550
|
+
*/
|
|
15551
|
+
component?: keyof JSX.IntrinsicElements | ComponentType;
|
|
15552
|
+
} & Omit<HTMLAttributes<Element>, 'color'>;
|
|
15432
15553
|
export const EuiPageSection: FunctionComponent<EuiPageSectionProps>;
|
|
15433
15554
|
|
|
15434
15555
|
}
|
|
@@ -15452,8 +15573,7 @@ declare module '@elastic/eui/src/components/page/page_side_bar/page_side_bar' {
|
|
|
15452
15573
|
paddingSize?: typeof PADDING_SIZES[number];
|
|
15453
15574
|
}
|
|
15454
15575
|
/**
|
|
15455
|
-
*
|
|
15456
|
-
* Use the new EuiPageSidebar instead
|
|
15576
|
+
* @deprecated Use the new EuiPageSidebar in page/page_sidebar instead
|
|
15457
15577
|
*/
|
|
15458
15578
|
export const EuiPageSideBar_Deprecated: FunctionComponent<EuiPageSideBarProps>;
|
|
15459
15579
|
|
|
@@ -15581,7 +15701,9 @@ declare module '@elastic/eui/src/components/page/page_template' {
|
|
|
15581
15701
|
/**
|
|
15582
15702
|
* This component has been deprecated in favor of the new
|
|
15583
15703
|
* namespaced version. You can still import this component
|
|
15584
|
-
*
|
|
15704
|
+
* until August 2023 by importing `as EuiPageTemplate`.
|
|
15705
|
+
*
|
|
15706
|
+
* @deprecated use EuiPageTemplate from page_template/page_template instead
|
|
15585
15707
|
*/
|
|
15586
15708
|
export const EuiPageTemplate_Deprecated: FunctionComponent<EuiPageTemplateProps_Deprecated>;
|
|
15587
15709
|
|
|
@@ -15788,10 +15910,6 @@ declare module '@elastic/eui/src/themes/themes' {
|
|
|
15788
15910
|
export const EUI_THEMES: EUI_THEME[];
|
|
15789
15911
|
export const isDefaultTheme: (name: string) => boolean;
|
|
15790
15912
|
|
|
15791
|
-
}
|
|
15792
|
-
declare module '@elastic/eui/src/themes/amsterdam' {
|
|
15793
|
-
export * from '@elastic/eui/src/themes/amsterdam/global_styling/mixins/shadow';
|
|
15794
|
-
|
|
15795
15913
|
}
|
|
15796
15914
|
declare module '@elastic/eui/src/themes' {
|
|
15797
15915
|
export type { EUI_THEME } from '@elastic/eui/src/themes/themes';
|
|
@@ -15804,7 +15922,7 @@ declare module '@elastic/eui/src/components/provider/cache/cache_provider' {
|
|
|
15804
15922
|
import { PropsWithChildren } from 'react';
|
|
15805
15923
|
import { EmotionCache } from '@emotion/cache';
|
|
15806
15924
|
export interface EuiCacheProviderProps {
|
|
15807
|
-
cache?: EmotionCache;
|
|
15925
|
+
cache?: false | EmotionCache;
|
|
15808
15926
|
}
|
|
15809
15927
|
export const EuiCacheProvider: ({ cache, children, }: PropsWithChildren<EuiCacheProviderProps>) => JSX.Element;
|
|
15810
15928
|
|
|
@@ -16114,6 +16232,8 @@ declare module '@elastic/eui/src/components/search_bar/query/ast' {
|
|
|
16114
16232
|
getIsClauses(): IsClause[];
|
|
16115
16233
|
getIsClause(flag: string): IsClause;
|
|
16116
16234
|
removeIsClause(flag: string): _AST;
|
|
16235
|
+
removeIsClauses(): _AST;
|
|
16236
|
+
removeAllClauses(): _AST;
|
|
16117
16237
|
getGroupClauses(): GroupClause[];
|
|
16118
16238
|
/**
|
|
16119
16239
|
* Creates and returns a new AST with the given clause added to the current clauses. If
|
|
@@ -16357,7 +16477,7 @@ declare module '@elastic/eui/src/components/search_bar/query/execute_ast' {
|
|
|
16357
16477
|
|
|
16358
16478
|
}
|
|
16359
16479
|
declare module '@elastic/eui/src/components/search_bar/query/ast_to_es_query_dsl' {
|
|
16360
|
-
import {
|
|
16480
|
+
import { OperatorType, Value, _AST } from '@elastic/eui/src/components/search_bar/query/ast';
|
|
16361
16481
|
export interface QueryContainer {
|
|
16362
16482
|
bool?: BoolQuery;
|
|
16363
16483
|
match_all?: {};
|
|
@@ -16426,6 +16546,7 @@ declare module '@elastic/eui/src/components/search_bar/query/query' {
|
|
|
16426
16546
|
text: string;
|
|
16427
16547
|
private syntax;
|
|
16428
16548
|
constructor(ast: _AST, syntax?: Syntax, text?: string);
|
|
16549
|
+
hasClauses(): boolean;
|
|
16429
16550
|
hasSimpleFieldClause(field: string, value?: string): boolean;
|
|
16430
16551
|
getSimpleFieldClause(field: string, value?: Value): import ("@elastic/eui/src/components/search_bar/query/ast").FieldClause | undefined;
|
|
16431
16552
|
removeSimpleFieldClauses(field: string): Query;
|
|
@@ -16436,11 +16557,13 @@ declare module '@elastic/eui/src/components/search_bar/query/query' {
|
|
|
16436
16557
|
addOrFieldValue(field: string, value: Value, must?: boolean, operator?: OperatorType): Query;
|
|
16437
16558
|
removeOrFieldValue(field: string, value: Value): Query;
|
|
16438
16559
|
removeOrFieldClauses(field: string): Query;
|
|
16560
|
+
removeAllClauses(): Query;
|
|
16439
16561
|
hasIsClause(flag: string): boolean;
|
|
16440
16562
|
getIsClause(flag: string): import ("@elastic/eui/src/components/search_bar/query/ast").IsClause;
|
|
16441
16563
|
addMustIsClause(flag: string): Query;
|
|
16442
16564
|
addMustNotIsClause(flag: string): Query;
|
|
16443
16565
|
removeIsClause(flag: string): Query;
|
|
16566
|
+
removeIsClauses(): Query;
|
|
16444
16567
|
/**
|
|
16445
16568
|
* Executes this query over the given iterable item and returns
|
|
16446
16569
|
* an new array of all items that matched this query. Options:
|
|
@@ -17217,6 +17340,30 @@ declare module '@elastic/eui/src/components/search_bar/filters/field_value_toggl
|
|
|
17217
17340
|
render(): JSX.Element[];
|
|
17218
17341
|
}
|
|
17219
17342
|
|
|
17343
|
+
}
|
|
17344
|
+
declare module '@elastic/eui/src/components/search_bar/filters/custom_component_filter' {
|
|
17345
|
+
import React, { FC } from 'react';
|
|
17346
|
+
import { Query } from '@elastic/eui/src/components/search_bar/query';
|
|
17347
|
+
/**
|
|
17348
|
+
* The props that are passed down to the custom component
|
|
17349
|
+
*/
|
|
17350
|
+
export interface CustomComponentProps {
|
|
17351
|
+
query: Query;
|
|
17352
|
+
onChange?: (query: Query) => void;
|
|
17353
|
+
}
|
|
17354
|
+
export interface CustomComponentFilterConfigType<T extends CustomComponentProps = CustomComponentProps> {
|
|
17355
|
+
type: 'custom_component';
|
|
17356
|
+
component: React.ComponentType<T>;
|
|
17357
|
+
available?: () => boolean;
|
|
17358
|
+
}
|
|
17359
|
+
export interface CustomComponentFilterProps<T extends CustomComponentProps = CustomComponentProps> {
|
|
17360
|
+
index: number;
|
|
17361
|
+
config: CustomComponentFilterConfigType<T>;
|
|
17362
|
+
query: Query;
|
|
17363
|
+
onChange?: (query: Query) => void;
|
|
17364
|
+
}
|
|
17365
|
+
export const CustomComponentFilter: FC<CustomComponentFilterProps>;
|
|
17366
|
+
|
|
17220
17367
|
}
|
|
17221
17368
|
declare module '@elastic/eui/src/components/search_bar/filters/filters' {
|
|
17222
17369
|
|
|
@@ -17224,9 +17371,10 @@ declare module '@elastic/eui/src/components/search_bar/filters/filters' {
|
|
|
17224
17371
|
import { FieldValueSelectionFilterConfigType } from '@elastic/eui/src/components/search_bar/filters/field_value_selection_filter';
|
|
17225
17372
|
import { FieldValueToggleFilterConfigType } from '@elastic/eui/src/components/search_bar/filters/field_value_toggle_filter';
|
|
17226
17373
|
import { FieldValueToggleGroupFilterConfigType } from '@elastic/eui/src/components/search_bar/filters/field_value_toggle_group_filter';
|
|
17374
|
+
import { CustomComponentFilterConfigType } from '@elastic/eui/src/components/search_bar/filters/custom_component_filter';
|
|
17227
17375
|
import { Query } from '@elastic/eui/src/components/search_bar/query';
|
|
17228
17376
|
export const createFilter: (index: number, config: SearchFilterConfig, query: Query, onChange: (query: Query) => void) => JSX.Element;
|
|
17229
|
-
export type SearchFilterConfig = IsFilterConfigType | FieldValueSelectionFilterConfigType | FieldValueToggleFilterConfigType | FieldValueToggleGroupFilterConfigType;
|
|
17377
|
+
export type SearchFilterConfig = IsFilterConfigType | FieldValueSelectionFilterConfigType | FieldValueToggleFilterConfigType | FieldValueToggleGroupFilterConfigType | CustomComponentFilterConfigType;
|
|
17230
17378
|
|
|
17231
17379
|
}
|
|
17232
17380
|
declare module '@elastic/eui/src/components/search_bar/filters' {
|
|
@@ -17460,7 +17608,7 @@ declare module '@elastic/eui/src/components/side_nav/side_nav' {
|
|
|
17460
17608
|
/**
|
|
17461
17609
|
* Adds a couple extra #EuiSideNavHeading props and extends the props of EuiTitle that wraps the `heading`
|
|
17462
17610
|
*/
|
|
17463
|
-
headingProps?: EuiSideNavHeadingProps;
|
|
17611
|
+
headingProps?: CommonProps & EuiSideNavHeadingProps;
|
|
17464
17612
|
/**
|
|
17465
17613
|
* When called, toggles visibility of the navigation menu at mobile responsive widths. The callback should set the `isOpenOnMobile` prop to actually toggle navigation visibility.
|
|
17466
17614
|
*/
|
|
@@ -17849,6 +17997,11 @@ declare module '@elastic/eui/src/components/suggest/suggest' {
|
|
|
17849
17997
|
* Default is `60vh`
|
|
17850
17998
|
*/
|
|
17851
17999
|
maxHeight?: CSSProperties['maxHeight'];
|
|
18000
|
+
/**
|
|
18001
|
+
* Control whether or not options get filtered internally or if consumer will filter.
|
|
18002
|
+
* Default `false`
|
|
18003
|
+
*/
|
|
18004
|
+
isPreFiltered?: boolean;
|
|
17852
18005
|
};
|
|
17853
18006
|
export type EuiSuggestProps = _EuiSuggestProps & ExclusiveUnion<{
|
|
17854
18007
|
'aria-label': string;
|
|
@@ -19455,7 +19608,7 @@ declare module '@elastic/eui/src/components/resizable_container/resizable_panel'
|
|
|
19455
19608
|
/**
|
|
19456
19609
|
* Props to add to the wrapping `.euiResizablePanel` div
|
|
19457
19610
|
*/
|
|
19458
|
-
wrapperProps?: HTMLAttributes<HTMLDivElement>;
|
|
19611
|
+
wrapperProps?: CommonProps & HTMLAttributes<HTMLDivElement>;
|
|
19459
19612
|
/**
|
|
19460
19613
|
* Padding to add directly to the wrapping `.euiResizablePanel` div
|
|
19461
19614
|
* Gives space around the actual panel.
|