@elastic/eui 67.0.0 → 67.1.1
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 -390
- package/dist/eui_theme_dark.json +0 -24
- package/dist/eui_theme_dark.json.d.ts +0 -24
- package/dist/eui_theme_dark.min.css +1 -1
- package/dist/eui_theme_light.css +0 -390
- package/dist/eui_theme_light.json +0 -24
- package/dist/eui_theme_light.json.d.ts +0 -24
- package/dist/eui_theme_light.min.css +1 -1
- package/es/components/accordion/accordion.js +5 -4
- package/es/components/accordion/accordion.styles.js +1 -1
- package/es/components/badge/badge.js +84 -78
- package/es/components/badge/badge.styles.js +62 -0
- package/es/components/basic_table/in_memory_table.js +8 -0
- package/es/components/breadcrumbs/breadcrumb.styles.js +4 -2
- package/es/components/button/button.js +0 -1
- package/es/components/button/button_display/_button_display.js +10 -5
- 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_icon/button_icon.js +11 -7
- 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 +8 -0
- package/es/components/expression/expression.styles.js +4 -2
- package/es/components/flyout/flyout.js +27 -48
- package/es/components/flyout/flyout.styles.js +111 -0
- package/es/components/flyout/flyout_body.js +14 -6
- package/es/components/flyout/flyout_body.styles.js +21 -0
- package/es/components/flyout/flyout_footer.js +8 -1
- package/es/components/flyout/flyout_footer.styles.js +14 -0
- package/es/components/flyout/flyout_header.js +9 -4
- package/es/components/flyout/flyout_header.styles.js +28 -0
- package/es/components/image/image_wrapper.js +3 -3
- package/es/components/markdown_editor/markdown_format.styles.js +11 -6
- package/es/components/notification/notification_event.js +1 -1
- package/es/components/notification/notification_event_meta.js +1 -1
- package/es/components/page/page_header/page_header_content.js +1 -1
- package/es/components/page/page_section/page_section.js +3 -4
- package/es/components/pagination/pagination_button.styles.js +5 -3
- 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 +2 -2
- 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/text/text.styles.js +6 -3
- package/es/components/tool_tip/tool_tip.styles.js +7 -6
- package/es/components/tour/tour.styles.js +11 -6
- package/es/global_styling/functions/index.js +1 -0
- package/es/global_styling/functions/math.js +46 -0
- package/es/global_styling/mixins/_helpers.js +5 -2
- 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 +199 -35
- package/i18ntokens.json +2 -2
- package/lib/components/accordion/accordion.js +5 -4
- package/lib/components/accordion/accordion.styles.js +1 -1
- package/lib/components/badge/badge.js +92 -80
- package/lib/components/badge/badge.styles.js +67 -0
- package/lib/components/basic_table/in_memory_table.js +8 -0
- package/lib/components/breadcrumbs/breadcrumb.styles.js +3 -1
- package/lib/components/button/button.js +0 -1
- package/lib/components/button/button_display/_button_display.js +10 -5
- 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_icon/button_icon.js +11 -7
- 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 +8 -0
- package/lib/components/expression/expression.styles.js +3 -1
- package/lib/components/flyout/flyout.js +27 -47
- package/lib/components/flyout/flyout.styles.js +122 -0
- package/lib/components/flyout/flyout_body.js +16 -6
- package/lib/components/flyout/flyout_body.styles.js +32 -0
- package/lib/components/flyout/flyout_footer.js +10 -1
- package/lib/components/flyout/flyout_footer.styles.js +24 -0
- package/lib/components/flyout/flyout_header.js +11 -4
- package/lib/components/flyout/flyout_header.styles.js +31 -0
- package/lib/components/image/image_wrapper.js +3 -3
- package/lib/components/markdown_editor/markdown_format.styles.js +10 -5
- package/lib/components/notification/notification_event.js +1 -1
- package/lib/components/notification/notification_event_meta.js +1 -1
- package/lib/components/page/page_header/page_header_content.js +1 -1
- package/lib/components/page/page_section/page_section.js +3 -4
- package/lib/components/pagination/pagination_button.styles.js +4 -2
- 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 +2 -2
- 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/text/text.styles.js +5 -2
- package/lib/components/tool_tip/tool_tip.styles.js +6 -5
- package/lib/components/tour/tour.styles.js +10 -5
- package/lib/global_styling/functions/index.js +13 -0
- package/lib/global_styling/functions/math.js +55 -0
- package/lib/global_styling/mixins/_helpers.js +5 -2
- 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/accordion/accordion.js +5 -4
- package/optimize/es/components/accordion/accordion.styles.js +1 -1
- package/optimize/es/components/badge/badge.js +82 -76
- package/optimize/es/components/badge/badge.styles.js +62 -0
- package/optimize/es/components/basic_table/in_memory_table.js +4 -0
- package/optimize/es/components/breadcrumbs/breadcrumb.styles.js +4 -2
- 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/button/button_icon/button_icon.js +11 -7
- package/optimize/es/components/card/card.js +2 -2
- package/optimize/es/components/card/card.styles.js +5 -2
- package/optimize/es/components/expression/expression.styles.js +4 -2
- package/optimize/es/components/flyout/flyout.js +27 -48
- package/optimize/es/components/flyout/flyout.styles.js +111 -0
- package/optimize/es/components/flyout/flyout_body.js +14 -6
- package/optimize/es/components/flyout/flyout_body.styles.js +21 -0
- package/optimize/es/components/flyout/flyout_footer.js +8 -1
- package/optimize/es/components/flyout/flyout_footer.styles.js +14 -0
- package/optimize/es/components/flyout/flyout_header.js +9 -4
- package/optimize/es/components/flyout/flyout_header.styles.js +28 -0
- package/optimize/es/components/image/image_wrapper.js +3 -3
- package/optimize/es/components/markdown_editor/markdown_format.styles.js +11 -6
- package/optimize/es/components/page/page_header/page_header_content.js +1 -1
- package/optimize/es/components/page/page_section/page_section.js +3 -4
- package/optimize/es/components/pagination/pagination_button.styles.js +5 -3
- 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/progress/progress.js +2 -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/text/text.styles.js +6 -3
- package/optimize/es/components/tool_tip/tool_tip.styles.js +7 -6
- package/optimize/es/components/tour/tour.styles.js +11 -6
- package/optimize/es/global_styling/functions/index.js +1 -0
- package/optimize/es/global_styling/functions/math.js +44 -0
- package/optimize/es/global_styling/mixins/_helpers.js +5 -2
- 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/accordion/accordion.js +5 -4
- package/optimize/lib/components/accordion/accordion.styles.js +1 -1
- package/optimize/lib/components/badge/badge.js +90 -78
- package/optimize/lib/components/badge/badge.styles.js +67 -0
- package/optimize/lib/components/basic_table/in_memory_table.js +4 -0
- package/optimize/lib/components/breadcrumbs/breadcrumb.styles.js +3 -1
- 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/button/button_icon/button_icon.js +11 -7
- package/optimize/lib/components/card/card.js +2 -2
- package/optimize/lib/components/card/card.styles.js +5 -2
- package/optimize/lib/components/expression/expression.styles.js +3 -1
- package/optimize/lib/components/flyout/flyout.js +27 -47
- package/optimize/lib/components/flyout/flyout.styles.js +124 -0
- package/optimize/lib/components/flyout/flyout_body.js +16 -6
- package/optimize/lib/components/flyout/flyout_body.styles.js +32 -0
- package/optimize/lib/components/flyout/flyout_footer.js +10 -1
- package/optimize/lib/components/flyout/flyout_footer.styles.js +24 -0
- package/optimize/lib/components/flyout/flyout_header.js +11 -4
- package/optimize/lib/components/flyout/flyout_header.styles.js +31 -0
- package/optimize/lib/components/image/image_wrapper.js +3 -3
- package/optimize/lib/components/markdown_editor/markdown_format.styles.js +10 -5
- package/optimize/lib/components/page/page_header/page_header_content.js +1 -1
- package/optimize/lib/components/page/page_section/page_section.js +3 -4
- package/optimize/lib/components/pagination/pagination_button.styles.js +4 -2
- 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/progress/progress.js +2 -2
- 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/text/text.styles.js +5 -2
- package/optimize/lib/components/tool_tip/tool_tip.styles.js +6 -5
- package/optimize/lib/components/tour/tour.styles.js +10 -5
- package/optimize/lib/global_styling/functions/index.js +13 -0
- package/optimize/lib/global_styling/functions/math.js +57 -0
- package/optimize/lib/global_styling/mixins/_helpers.js +5 -2
- 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 -1
- package/src/themes/amsterdam/global_styling/variables/_index.scss +0 -1
- package/test-env/components/accordion/accordion.js +5 -4
- package/test-env/components/accordion/accordion.styles.js +1 -1
- package/test-env/components/badge/badge.js +92 -80
- package/test-env/components/badge/badge.styles.js +67 -0
- package/test-env/components/basic_table/in_memory_table.js +8 -0
- package/test-env/components/breadcrumbs/breadcrumb.styles.js +3 -1
- package/test-env/components/button/button.js +0 -1
- package/test-env/components/button/button_display/_button_display.js +10 -5
- 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_icon/button_icon.js +11 -7
- 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 +8 -0
- package/test-env/components/expression/expression.styles.js +3 -1
- package/test-env/components/flyout/flyout.styles.js +124 -0
- package/test-env/components/flyout/flyout_body.js +16 -6
- package/test-env/components/flyout/flyout_body.styles.js +32 -0
- package/test-env/components/flyout/flyout_footer.js +10 -1
- package/test-env/components/flyout/flyout_footer.styles.js +24 -0
- package/test-env/components/flyout/flyout_header.js +11 -4
- package/test-env/components/flyout/flyout_header.styles.js +31 -0
- package/test-env/components/image/image_wrapper.js +3 -3
- package/test-env/components/markdown_editor/markdown_format.styles.js +10 -5
- package/test-env/components/notification/notification_event.js +1 -1
- package/test-env/components/notification/notification_event_meta.js +1 -1
- package/test-env/components/page/page_header/page_header_content.js +1 -1
- package/test-env/components/page/page_section/page_section.js +3 -4
- package/test-env/components/pagination/pagination_button.styles.js +4 -2
- 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 +2 -2
- 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/text/text.styles.js +5 -2
- package/test-env/components/tool_tip/tool_tip.styles.js +6 -5
- package/test-env/components/tour/tour.styles.js +10 -5
- package/test-env/global_styling/functions/index.js +13 -0
- package/test-env/global_styling/functions/math.js +57 -0
- package/test-env/global_styling/mixins/_helpers.js +5 -2
- 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/flyout/_flyout.scss +0 -196
- package/src/components/flyout/_flyout_body.scss +0 -18
- package/src/components/flyout/_flyout_footer.scss +0 -4
- package/src/components/flyout/_flyout_header.scss +0 -7
- package/src/components/flyout/_index.scss +0 -7
- package/src/components/flyout/_mixins.scss +0 -18
- package/src/components/flyout/_variables.scss +0 -8
- package/src/themes/amsterdam/global_styling/variables/_flyout.scss +0 -1
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>;
|
|
@@ -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
|
}
|
|
@@ -6178,6 +6190,7 @@ declare module '@elastic/eui/src/services/color/manipulation' {
|
|
|
6178
6190
|
|
|
6179
6191
|
}
|
|
6180
6192
|
declare module '@elastic/eui/src/services/color/contrast' {
|
|
6193
|
+
export const wcagContrastMin = 4.5;
|
|
6181
6194
|
/**
|
|
6182
6195
|
* Creates a new color that meets or exceeds WCAG level AA
|
|
6183
6196
|
* @param foreground - Color to manipulate
|
|
@@ -6407,6 +6420,18 @@ declare module '@elastic/eui/src/global_styling/functions/logicals' {
|
|
|
6407
6420
|
textAlign: string;
|
|
6408
6421
|
};
|
|
6409
6422
|
|
|
6423
|
+
}
|
|
6424
|
+
declare module '@elastic/eui/src/global_styling/functions/math' {
|
|
6425
|
+
/**
|
|
6426
|
+
* Utility for performing math callbacks on a string with CSS units
|
|
6427
|
+
* and returning a string with its unit preserved.
|
|
6428
|
+
*
|
|
6429
|
+
* Example usage:
|
|
6430
|
+
* mathWithUnits('4px', (x) => x / 2) = '2px';
|
|
6431
|
+
* mathWithUnits(euiTheme.size.xs, (x) => x + 2) = '6px';
|
|
6432
|
+
*/
|
|
6433
|
+
export const mathWithUnits: (value: string | number | undefined, callback: (x: number) => number, unit?: string) => string | undefined;
|
|
6434
|
+
|
|
6410
6435
|
}
|
|
6411
6436
|
declare module '@elastic/eui/src/global_styling/functions/size' {
|
|
6412
6437
|
/**
|
|
@@ -6422,6 +6447,21 @@ declare module '@elastic/eui/src/global_styling/functions/size' {
|
|
|
6422
6447
|
base: number;
|
|
6423
6448
|
}) => string;
|
|
6424
6449
|
|
|
6450
|
+
}
|
|
6451
|
+
declare module '@elastic/eui/src/services/theme/provider' {
|
|
6452
|
+
import React, { PropsWithChildren } from 'react';
|
|
6453
|
+
import { EuiThemeColorMode, EuiThemeSystem, EuiThemeModifications } from '@elastic/eui/src/services/theme/types'; type LEVELS = 'log' | 'warn' | 'error';
|
|
6454
|
+
export const setEuiDevProviderWarning: (level: LEVELS) => LEVELS;
|
|
6455
|
+
export const getEuiDevProviderWarning: () => LEVELS | undefined;
|
|
6456
|
+
export interface EuiThemeProviderProps<T> {
|
|
6457
|
+
theme?: EuiThemeSystem<T>;
|
|
6458
|
+
colorMode?: EuiThemeColorMode;
|
|
6459
|
+
modify?: EuiThemeModifications<T>;
|
|
6460
|
+
children: any;
|
|
6461
|
+
}
|
|
6462
|
+
export const EuiThemeProvider: <T extends {} = {}>({ theme: _system, colorMode: _colorMode, modify: _modifications, children, }: React.PropsWithChildren<EuiThemeProviderProps<T>>) => JSX.Element;
|
|
6463
|
+
export {};
|
|
6464
|
+
|
|
6425
6465
|
}
|
|
6426
6466
|
declare module '@elastic/eui/src/services/theme/hooks' {
|
|
6427
6467
|
import React from 'react';
|
|
@@ -6432,7 +6472,7 @@ declare module '@elastic/eui/src/services/theme/hooks' {
|
|
|
6432
6472
|
modifications: EuiThemeModifications<T>;
|
|
6433
6473
|
}
|
|
6434
6474
|
export const useEuiTheme: <T extends {} = {}>() => UseEuiTheme<T>;
|
|
6435
|
-
export interface WithEuiThemeProps<P = {}> {
|
|
6475
|
+
export interface WithEuiThemeProps<P extends {} = {}> {
|
|
6436
6476
|
theme: UseEuiTheme<P>;
|
|
6437
6477
|
}
|
|
6438
6478
|
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">>>;
|
|
@@ -6485,6 +6525,7 @@ declare module '@elastic/eui/src/global_styling/functions/typography' {
|
|
|
6485
6525
|
}
|
|
6486
6526
|
declare module '@elastic/eui/src/global_styling/functions' {
|
|
6487
6527
|
export * from '@elastic/eui/src/global_styling/functions/logicals';
|
|
6528
|
+
export * from '@elastic/eui/src/global_styling/functions/math';
|
|
6488
6529
|
export * from '@elastic/eui/src/global_styling/functions/size';
|
|
6489
6530
|
export * from '@elastic/eui/src/global_styling/functions/typography';
|
|
6490
6531
|
|
|
@@ -6535,27 +6576,16 @@ declare module '@elastic/eui/src/services/theme/context' {
|
|
|
6535
6576
|
export const EuiSystemContext: import("react").Context<EuiThemeSystem<{}>>;
|
|
6536
6577
|
export const EuiModificationsContext: import("react").Context<import ("@elastic/eui").RecursivePartial<import ("@elastic/eui/src/services/theme/types").EuiThemeShape>>;
|
|
6537
6578
|
export const EuiColorModeContext: import("react").Context<EuiThemeColorModeStandard>;
|
|
6579
|
+
export const defaultComputedTheme: EuiThemeComputed<import ("@elastic/eui/src/services/theme/types").EuiThemeShape>;
|
|
6538
6580
|
export const EuiThemeContext: import("react").Context<EuiThemeComputed<{}>>;
|
|
6539
6581
|
|
|
6540
|
-
}
|
|
6541
|
-
declare module '@elastic/eui/src/services/theme/provider' {
|
|
6542
|
-
import React, { PropsWithChildren } from 'react';
|
|
6543
|
-
import { EuiThemeColorMode, EuiThemeSystem, EuiThemeModifications } from '@elastic/eui/src/services/theme/types';
|
|
6544
|
-
export interface EuiThemeProviderProps<T> {
|
|
6545
|
-
theme?: EuiThemeSystem<T>;
|
|
6546
|
-
colorMode?: EuiThemeColorMode;
|
|
6547
|
-
modify?: EuiThemeModifications<T>;
|
|
6548
|
-
children: any;
|
|
6549
|
-
}
|
|
6550
|
-
export const EuiThemeProvider: <T extends {} = {}>({ theme: _system, colorMode: _colorMode, modify: _modifications, children, }: React.PropsWithChildren<EuiThemeProviderProps<T>>) => JSX.Element;
|
|
6551
|
-
|
|
6552
6582
|
}
|
|
6553
6583
|
declare module '@elastic/eui/src/services/theme' {
|
|
6554
6584
|
export { EuiSystemContext, EuiThemeContext, EuiModificationsContext, EuiColorModeContext, } from '@elastic/eui/src/services/theme/context';
|
|
6555
6585
|
export type { UseEuiTheme, WithEuiThemeProps } from '@elastic/eui/src/services/theme/hooks';
|
|
6556
6586
|
export { useEuiTheme, withEuiTheme } from '@elastic/eui/src/services/theme/hooks';
|
|
6557
6587
|
export type { EuiThemeProviderProps } from '@elastic/eui/src/services/theme/provider';
|
|
6558
|
-
export { EuiThemeProvider } from '@elastic/eui/src/services/theme/provider';
|
|
6588
|
+
export { EuiThemeProvider, getEuiDevProviderWarning, setEuiDevProviderWarning, } from '@elastic/eui/src/services/theme/provider';
|
|
6559
6589
|
export { buildTheme, computed, isInverseColorMode, getColorMode, getComputed, getOn, mergeDeep, setOn, Computed, } from '@elastic/eui/src/services/theme/utils';
|
|
6560
6590
|
export type { ComputedThemeShape, EuiThemeColorMode, EuiThemeColorModeStandard, EuiThemeComputed, EuiThemeModifications, EuiThemeShape, EuiThemeSystem, } from '@elastic/eui/src/services/theme/types';
|
|
6561
6591
|
export { COLOR_MODES_STANDARD } from '@elastic/eui/src/services/theme/types';
|
|
@@ -7073,7 +7103,7 @@ declare module '@elastic/eui/src/services' {
|
|
|
7073
7103
|
export type { EuiBreakpointSize } from '@elastic/eui/src/services/breakpoint';
|
|
7074
7104
|
export { useIsWithinBreakpoints, useIsWithinMaxBreakpoint, useIsWithinMinBreakpoint, CurrentEuiBreakpointContext, CurrentEuiBreakpointProvider, useCurrentEuiBreakpoint, } from '@elastic/eui/src/services/breakpoint';
|
|
7075
7105
|
export type { HSV } from '@elastic/eui/src/services/color';
|
|
7076
|
-
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';
|
|
7106
|
+
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';
|
|
7077
7107
|
export type { EuiSetColorMethod } from '@elastic/eui/src/services/color_picker';
|
|
7078
7108
|
export { useColorPickerState, useColorStopsState } from '@elastic/eui/src/services/color_picker';
|
|
7079
7109
|
export * from '@elastic/eui/src/services/console';
|
|
@@ -7156,7 +7186,10 @@ declare module '@elastic/eui/src/global_styling/mixins/_helpers' {
|
|
|
7156
7186
|
}
|
|
7157
7187
|
export const euiYScroll: (euiTheme: UseEuiTheme, { height }?: _EuiYScroll) => string;
|
|
7158
7188
|
export const useEuiYScroll: ({ height }?: _EuiYScroll) => string;
|
|
7159
|
-
|
|
7189
|
+
interface _EuiYScrollWithShadows extends _EuiYScroll {
|
|
7190
|
+
side?: 'both' | 'start' | 'end';
|
|
7191
|
+
}
|
|
7192
|
+
export const euiYScrollWithShadows: (euiTheme: UseEuiTheme, { height, side }?: _EuiYScrollWithShadows) => string;
|
|
7160
7193
|
export const useEuiYScrollWithShadows: ({ height }?: _EuiYScroll) => string;
|
|
7161
7194
|
export const euiXScroll: (euiTheme: UseEuiTheme) => string;
|
|
7162
7195
|
export const useEuiXScroll: () => string;
|
|
@@ -7699,11 +7732,39 @@ declare module '@elastic/eui/src/components/avatar' {
|
|
|
7699
7732
|
export type { EuiAvatarProps } from '@elastic/eui/src/components/avatar/avatar';
|
|
7700
7733
|
export { EuiAvatar, checkValidColor } from '@elastic/eui/src/components/avatar/avatar';
|
|
7701
7734
|
|
|
7735
|
+
}
|
|
7736
|
+
declare module '@elastic/eui/src/components/badge/badge.styles' {
|
|
7737
|
+
import { UseEuiTheme } from '@elastic/eui/src/services';
|
|
7738
|
+
export const euiBadgeStyles: (euiThemeContext: UseEuiTheme) => {
|
|
7739
|
+
euiBadge: import("@emotion/utils").SerializedStyles;
|
|
7740
|
+
clickable: import("@emotion/utils").SerializedStyles;
|
|
7741
|
+
disabled: import("@emotion/utils").SerializedStyles;
|
|
7742
|
+
hollow: import("@emotion/utils").SerializedStyles;
|
|
7743
|
+
euiBadge__content: import("@emotion/utils").SerializedStyles;
|
|
7744
|
+
text: {
|
|
7745
|
+
euiBadge__text: import("@emotion/utils").SerializedStyles;
|
|
7746
|
+
clickable: import("@emotion/utils").SerializedStyles;
|
|
7747
|
+
};
|
|
7748
|
+
icon: {
|
|
7749
|
+
euiBadge__icon: import("@emotion/utils").SerializedStyles;
|
|
7750
|
+
right: import("@emotion/utils").SerializedStyles;
|
|
7751
|
+
left: import("@emotion/utils").SerializedStyles;
|
|
7752
|
+
};
|
|
7753
|
+
iconButton: {
|
|
7754
|
+
euiBadge__iconButton: import("@emotion/utils").SerializedStyles;
|
|
7755
|
+
right: import("@emotion/utils").SerializedStyles;
|
|
7756
|
+
left: import("@emotion/utils").SerializedStyles;
|
|
7757
|
+
};
|
|
7758
|
+
euiBadge__childButton: import("@emotion/utils").SerializedStyles;
|
|
7759
|
+
};
|
|
7760
|
+
|
|
7702
7761
|
}
|
|
7703
7762
|
declare module '@elastic/eui/src/components/badge/badge' {
|
|
7704
7763
|
import { AriaAttributes, FunctionComponent, HTMLAttributes, MouseEventHandler } from 'react';
|
|
7705
7764
|
import { CommonProps, ExclusiveUnion, PropsOf } from '@elastic/eui/src/components/common';
|
|
7706
|
-
import { EuiIcon,
|
|
7765
|
+
import { EuiIcon, IconType } from '@elastic/eui/src/components/icon';
|
|
7766
|
+
export const ICON_SIDES: readonly ["left", "right"]; type IconSide = typeof ICON_SIDES[number];
|
|
7767
|
+
export const COLORS: readonly ["default", "hollow", "primary", "success", "accent", "warning", "danger"]; type BadgeColor = typeof COLORS[number]; type WithButtonProps = {
|
|
7707
7768
|
/**
|
|
7708
7769
|
* Will apply an onclick to the badge itself
|
|
7709
7770
|
*/
|
|
@@ -7739,7 +7800,7 @@ declare module '@elastic/eui/src/components/badge/badge' {
|
|
|
7739
7800
|
/**
|
|
7740
7801
|
* Accepts either our palette colors (primary, success ..etc) or a hex value `#FFFFFF`, `#000`.
|
|
7741
7802
|
*/
|
|
7742
|
-
color?:
|
|
7803
|
+
color?: BadgeColor | string;
|
|
7743
7804
|
/**
|
|
7744
7805
|
* Will override any color passed through the `color` prop.
|
|
7745
7806
|
*/
|
|
@@ -7749,8 +7810,6 @@ declare module '@elastic/eui/src/components/badge/badge' {
|
|
|
7749
7810
|
*/
|
|
7750
7811
|
closeButtonProps?: Partial<PropsOf<typeof EuiIcon>>;
|
|
7751
7812
|
} & CommonProps & ExclusiveUnion<WithIconOnClick, {}> & ExclusiveUnion<ExclusiveUnion<WithButtonProps, WithAnchorProps>, WithSpanProps>;
|
|
7752
|
-
export const COLORS: string[];
|
|
7753
|
-
export const ICON_SIDES: IconSide[];
|
|
7754
7813
|
export const EuiBadge: FunctionComponent<EuiBadgeProps>;
|
|
7755
7814
|
export {};
|
|
7756
7815
|
|
|
@@ -8209,7 +8268,7 @@ declare module '@elastic/eui/src/components/card/card.styles' {
|
|
|
8209
8268
|
* 3. Horizontal layouts should always top left align no matter the textAlign prop
|
|
8210
8269
|
* 4. Ensures the contents always stretch no matter the flex layout
|
|
8211
8270
|
*/
|
|
8212
|
-
export const euiCardStyles: (euiThemeContext: UseEuiTheme, paddingSize: EuiCardProps['paddingSize']
|
|
8271
|
+
export const euiCardStyles: (euiThemeContext: UseEuiTheme, paddingSize: EuiCardProps['paddingSize']) => {
|
|
8213
8272
|
card: {
|
|
8214
8273
|
euiCard: import("@emotion/utils").SerializedStyles;
|
|
8215
8274
|
aligned: {
|
|
@@ -8241,7 +8300,10 @@ declare module '@elastic/eui/src/components/card/card.styles' {
|
|
|
8241
8300
|
};
|
|
8242
8301
|
disabled: import("@emotion/utils").SerializedStyles;
|
|
8243
8302
|
};
|
|
8244
|
-
|
|
8303
|
+
image: {
|
|
8304
|
+
euiCard__image: import("@emotion/utils").SerializedStyles;
|
|
8305
|
+
transparent: import("@emotion/utils").SerializedStyles;
|
|
8306
|
+
};
|
|
8245
8307
|
icon: {
|
|
8246
8308
|
euiCard__icon: import("@emotion/utils").SerializedStyles;
|
|
8247
8309
|
withImage: import("@emotion/utils").SerializedStyles;
|
|
@@ -8668,6 +8730,40 @@ declare module '@elastic/eui/src/components/collapsible_nav/collapsible_nav_grou
|
|
|
8668
8730
|
export type { EuiCollapsibleNavGroupProps } from '@elastic/eui/src/components/collapsible_nav/collapsible_nav_group/collapsible_nav_group';
|
|
8669
8731
|
export { EuiCollapsibleNavGroup } from '@elastic/eui/src/components/collapsible_nav/collapsible_nav_group/collapsible_nav_group';
|
|
8670
8732
|
|
|
8733
|
+
}
|
|
8734
|
+
declare module '@elastic/eui/src/components/flyout/flyout.styles' {
|
|
8735
|
+
import { UseEuiTheme } from '@elastic/eui/src/services';
|
|
8736
|
+
export const euiFlyoutCloseButtonStyles: (euiThemeContext: UseEuiTheme) => {
|
|
8737
|
+
euiFlyout__closeButton: import("@emotion/utils").SerializedStyles;
|
|
8738
|
+
inside: import("@emotion/utils").SerializedStyles;
|
|
8739
|
+
outside: import("@emotion/utils").SerializedStyles;
|
|
8740
|
+
outsideSide: {
|
|
8741
|
+
right: import("@emotion/utils").SerializedStyles;
|
|
8742
|
+
left: import("@emotion/utils").SerializedStyles;
|
|
8743
|
+
};
|
|
8744
|
+
};
|
|
8745
|
+
export const euiFlyoutStyles: (euiThemeContext: UseEuiTheme) => {
|
|
8746
|
+
euiFlyout: import("@emotion/utils").SerializedStyles;
|
|
8747
|
+
s: import("@emotion/utils").SerializedStyles;
|
|
8748
|
+
m: import("@emotion/utils").SerializedStyles;
|
|
8749
|
+
l: import("@emotion/utils").SerializedStyles;
|
|
8750
|
+
noMaxWidth: import("@emotion/utils").SerializedStyles;
|
|
8751
|
+
right: import("@emotion/utils").SerializedStyles;
|
|
8752
|
+
left: import("@emotion/utils").SerializedStyles;
|
|
8753
|
+
overlay: import("@emotion/utils").SerializedStyles;
|
|
8754
|
+
push: import("@emotion/utils").SerializedStyles;
|
|
8755
|
+
pushSide: {
|
|
8756
|
+
right: import("@emotion/utils").SerializedStyles;
|
|
8757
|
+
left: import("@emotion/utils").SerializedStyles;
|
|
8758
|
+
};
|
|
8759
|
+
paddingSizes: {
|
|
8760
|
+
none: import("@emotion/utils").SerializedStyles;
|
|
8761
|
+
s: import("@emotion/utils").SerializedStyles;
|
|
8762
|
+
m: import("@emotion/utils").SerializedStyles;
|
|
8763
|
+
l: import("@emotion/utils").SerializedStyles;
|
|
8764
|
+
};
|
|
8765
|
+
};
|
|
8766
|
+
|
|
8671
8767
|
}
|
|
8672
8768
|
declare module '@elastic/eui/src/components/flyout/flyout' {
|
|
8673
8769
|
import React, { ComponentPropsWithRef, CSSProperties, ElementType } from 'react';
|
|
@@ -8676,16 +8772,18 @@ declare module '@elastic/eui/src/components/flyout/flyout' {
|
|
|
8676
8772
|
import { EuiFocusTrapProps } from '@elastic/eui/src/components/focus_trap';
|
|
8677
8773
|
import { EuiOverlayMaskProps } from '@elastic/eui/src/components/overlay_mask';
|
|
8678
8774
|
import { EuiButtonIconPropsForButton } from '@elastic/eui/src/components/button';
|
|
8679
|
-
export const TYPES:
|
|
8680
|
-
export const SIDES:
|
|
8681
|
-
export const SIZES:
|
|
8775
|
+
export const TYPES: readonly ["push", "overlay"]; type _EuiFlyoutType = typeof TYPES[number];
|
|
8776
|
+
export const SIDES: readonly ["left", "right"]; type _EuiFlyoutSide = typeof SIDES[number];
|
|
8777
|
+
export const SIZES: readonly ["s", "m", "l"];
|
|
8682
8778
|
export type EuiFlyoutSize = typeof SIZES[number];
|
|
8683
|
-
export const PADDING_SIZES:
|
|
8779
|
+
export const PADDING_SIZES: readonly ["none", "s", "m", "l"];
|
|
8780
|
+
export type _EuiFlyoutPaddingSize = typeof PADDING_SIZES[number];
|
|
8684
8781
|
interface _EuiFlyoutProps {
|
|
8685
8782
|
onClose: (event: MouseEvent | TouchEvent | KeyboardEvent) => void;
|
|
8686
8783
|
/**
|
|
8687
8784
|
* Defines the width of the panel.
|
|
8688
8785
|
* Pass a predefined size of `s | m | l`, or pass any number/string compatible with the CSS `width` attribute
|
|
8786
|
+
* @default m
|
|
8689
8787
|
*/
|
|
8690
8788
|
size?: EuiFlyoutSize | CSSProperties['width'];
|
|
8691
8789
|
/**
|
|
@@ -8694,23 +8792,27 @@ declare module '@elastic/eui/src/components/flyout/flyout' {
|
|
|
8694
8792
|
* set to `false` to not restrict the width,
|
|
8695
8793
|
* set to a number for a custom width in px,
|
|
8696
8794
|
* set to a string for a custom width in custom measurement.
|
|
8795
|
+
* @default false
|
|
8697
8796
|
*/
|
|
8698
8797
|
maxWidth?: boolean | number | string;
|
|
8699
8798
|
/**
|
|
8700
8799
|
* Customize the padding around the content of the flyout header, body and footer
|
|
8800
|
+
* @default l
|
|
8701
8801
|
*/
|
|
8702
8802
|
paddingSize?: _EuiFlyoutPaddingSize;
|
|
8703
8803
|
/**
|
|
8704
8804
|
* Adds an EuiOverlayMask and wraps in an EuiPortal
|
|
8805
|
+
* @default true
|
|
8705
8806
|
*/
|
|
8706
8807
|
ownFocus?: boolean;
|
|
8707
8808
|
/**
|
|
8708
8809
|
* Hides the default close button. You must provide another close button somewhere within the flyout.
|
|
8810
|
+
* @default false
|
|
8709
8811
|
*/
|
|
8710
8812
|
hideCloseButton?: boolean;
|
|
8711
8813
|
/**
|
|
8712
|
-
* Specify
|
|
8713
|
-
*
|
|
8814
|
+
* Specify a custom aria-label for the close button of the flyout.
|
|
8815
|
+
* @default "Close this dialog"
|
|
8714
8816
|
*/
|
|
8715
8817
|
closeButtonAriaLabel?: string;
|
|
8716
8818
|
/**
|
|
@@ -8721,6 +8823,7 @@ declare module '@elastic/eui/src/components/flyout/flyout' {
|
|
|
8721
8823
|
* Position of close button.
|
|
8722
8824
|
* `inside`: Floating to just inside the flyout, always top right;
|
|
8723
8825
|
* `outside`: Floating just outside the flyout near the top (side dependent on `side`). Helpful when the close button may cover other interactable content.
|
|
8826
|
+
* @default inside
|
|
8724
8827
|
*/
|
|
8725
8828
|
closeButtonPosition?: 'inside' | 'outside';
|
|
8726
8829
|
/**
|
|
@@ -8730,6 +8833,7 @@ declare module '@elastic/eui/src/components/flyout/flyout' {
|
|
|
8730
8833
|
/**
|
|
8731
8834
|
* How to display the the flyout in relation to the body content;
|
|
8732
8835
|
* `push` keeps it visible, pushing the `<body>` content via padding
|
|
8836
|
+
* @default overlay
|
|
8733
8837
|
*/
|
|
8734
8838
|
type?: _EuiFlyoutType;
|
|
8735
8839
|
/**
|
|
@@ -8740,15 +8844,18 @@ declare module '@elastic/eui/src/components/flyout/flyout' {
|
|
|
8740
8844
|
/**
|
|
8741
8845
|
* Which side of the window to attach to.
|
|
8742
8846
|
* The `left` option should only be used for navigation.
|
|
8847
|
+
* @default right
|
|
8743
8848
|
*/
|
|
8744
8849
|
side?: _EuiFlyoutSide;
|
|
8745
8850
|
/**
|
|
8746
8851
|
* Defaults to `dialog` which is best for most cases of the flyout.
|
|
8747
8852
|
* Otherwise pass in your own, aria-role, or `null` to remove it and use the semantic `as` element instead
|
|
8853
|
+
* @default dialog
|
|
8748
8854
|
*/
|
|
8749
8855
|
role?: null | string;
|
|
8750
8856
|
/**
|
|
8751
8857
|
* Named breakpoint (`xs` through `xl`) for customizing the minimum window width to enable the `push` type
|
|
8858
|
+
* @default l
|
|
8752
8859
|
*/
|
|
8753
8860
|
pushMinBreakpoint?: EuiBreakpointSize;
|
|
8754
8861
|
style?: CSSProperties;
|
|
@@ -8768,6 +8875,18 @@ declare module '@elastic/eui/src/components/flyout/flyout' {
|
|
|
8768
8875
|
export const EuiFlyout: <T extends React.ElementType<any> = "div">(props: EuiFlyoutProps<T>) => JSX.Element;
|
|
8769
8876
|
export {};
|
|
8770
8877
|
|
|
8878
|
+
}
|
|
8879
|
+
declare module '@elastic/eui/src/components/flyout/flyout_body.styles' {
|
|
8880
|
+
import { UseEuiTheme } from '@elastic/eui/src/services';
|
|
8881
|
+
export const euiFlyoutBodyStyles: (euiThemeContext: UseEuiTheme) => {
|
|
8882
|
+
euiFlyoutBody: import("@emotion/utils").SerializedStyles;
|
|
8883
|
+
euiFlyoutBody__overflow: {
|
|
8884
|
+
noBanner: import("@emotion/utils").SerializedStyles;
|
|
8885
|
+
hasBanner: import("@emotion/utils").SerializedStyles;
|
|
8886
|
+
};
|
|
8887
|
+
euiFlyoutBody__banner: import("@emotion/utils").SerializedStyles;
|
|
8888
|
+
};
|
|
8889
|
+
|
|
8771
8890
|
}
|
|
8772
8891
|
declare module '@elastic/eui/src/components/flyout/flyout_body' {
|
|
8773
8892
|
import { FunctionComponent, HTMLAttributes, ReactNode } from 'react';
|
|
@@ -8780,6 +8899,13 @@ declare module '@elastic/eui/src/components/flyout/flyout_body' {
|
|
|
8780
8899
|
}>;
|
|
8781
8900
|
export const EuiFlyoutBody: EuiFlyoutBodyProps;
|
|
8782
8901
|
|
|
8902
|
+
}
|
|
8903
|
+
declare module '@elastic/eui/src/components/flyout/flyout_footer.styles' {
|
|
8904
|
+
import { UseEuiTheme } from '@elastic/eui/src/services';
|
|
8905
|
+
export const euiFlyoutFooterStyles: (euiThemeContext: UseEuiTheme) => {
|
|
8906
|
+
euiFlyoutFooter: import("@emotion/utils").SerializedStyles;
|
|
8907
|
+
};
|
|
8908
|
+
|
|
8783
8909
|
}
|
|
8784
8910
|
declare module '@elastic/eui/src/components/flyout/flyout_footer' {
|
|
8785
8911
|
import { FunctionComponent, HTMLAttributes } from 'react';
|
|
@@ -8787,6 +8913,14 @@ declare module '@elastic/eui/src/components/flyout/flyout_footer' {
|
|
|
8787
8913
|
export type EuiFlyoutFooterProps = FunctionComponent<HTMLAttributes<HTMLDivElement> & CommonProps>;
|
|
8788
8914
|
export const EuiFlyoutFooter: EuiFlyoutFooterProps;
|
|
8789
8915
|
|
|
8916
|
+
}
|
|
8917
|
+
declare module '@elastic/eui/src/components/flyout/flyout_header.styles' {
|
|
8918
|
+
import { UseEuiTheme } from '@elastic/eui/src/services';
|
|
8919
|
+
export const euiFlyoutHeaderStyles: (euiThemeContext: UseEuiTheme) => {
|
|
8920
|
+
euiFlyoutHeader: import("@emotion/utils").SerializedStyles;
|
|
8921
|
+
hasBorder: import("@emotion/utils").SerializedStyles;
|
|
8922
|
+
};
|
|
8923
|
+
|
|
8790
8924
|
}
|
|
8791
8925
|
declare module '@elastic/eui/src/components/flyout/flyout_header' {
|
|
8792
8926
|
import { FunctionComponent, HTMLAttributes } from 'react';
|
|
@@ -16186,6 +16320,8 @@ declare module '@elastic/eui/src/components/search_bar/query/ast' {
|
|
|
16186
16320
|
getIsClauses(): IsClause[];
|
|
16187
16321
|
getIsClause(flag: string): IsClause;
|
|
16188
16322
|
removeIsClause(flag: string): _AST;
|
|
16323
|
+
removeIsClauses(): _AST;
|
|
16324
|
+
removeAllClauses(): _AST;
|
|
16189
16325
|
getGroupClauses(): GroupClause[];
|
|
16190
16326
|
/**
|
|
16191
16327
|
* Creates and returns a new AST with the given clause added to the current clauses. If
|
|
@@ -16429,7 +16565,7 @@ declare module '@elastic/eui/src/components/search_bar/query/execute_ast' {
|
|
|
16429
16565
|
|
|
16430
16566
|
}
|
|
16431
16567
|
declare module '@elastic/eui/src/components/search_bar/query/ast_to_es_query_dsl' {
|
|
16432
|
-
import {
|
|
16568
|
+
import { OperatorType, Value, _AST } from '@elastic/eui/src/components/search_bar/query/ast';
|
|
16433
16569
|
export interface QueryContainer {
|
|
16434
16570
|
bool?: BoolQuery;
|
|
16435
16571
|
match_all?: {};
|
|
@@ -16498,6 +16634,7 @@ declare module '@elastic/eui/src/components/search_bar/query/query' {
|
|
|
16498
16634
|
text: string;
|
|
16499
16635
|
private syntax;
|
|
16500
16636
|
constructor(ast: _AST, syntax?: Syntax, text?: string);
|
|
16637
|
+
hasClauses(): boolean;
|
|
16501
16638
|
hasSimpleFieldClause(field: string, value?: string): boolean;
|
|
16502
16639
|
getSimpleFieldClause(field: string, value?: Value): import ("@elastic/eui/src/components/search_bar/query/ast").FieldClause | undefined;
|
|
16503
16640
|
removeSimpleFieldClauses(field: string): Query;
|
|
@@ -16508,11 +16645,13 @@ declare module '@elastic/eui/src/components/search_bar/query/query' {
|
|
|
16508
16645
|
addOrFieldValue(field: string, value: Value, must?: boolean, operator?: OperatorType): Query;
|
|
16509
16646
|
removeOrFieldValue(field: string, value: Value): Query;
|
|
16510
16647
|
removeOrFieldClauses(field: string): Query;
|
|
16648
|
+
removeAllClauses(): Query;
|
|
16511
16649
|
hasIsClause(flag: string): boolean;
|
|
16512
16650
|
getIsClause(flag: string): import ("@elastic/eui/src/components/search_bar/query/ast").IsClause;
|
|
16513
16651
|
addMustIsClause(flag: string): Query;
|
|
16514
16652
|
addMustNotIsClause(flag: string): Query;
|
|
16515
16653
|
removeIsClause(flag: string): Query;
|
|
16654
|
+
removeIsClauses(): Query;
|
|
16516
16655
|
/**
|
|
16517
16656
|
* Executes this query over the given iterable item and returns
|
|
16518
16657
|
* an new array of all items that matched this query. Options:
|
|
@@ -17289,6 +17428,30 @@ declare module '@elastic/eui/src/components/search_bar/filters/field_value_toggl
|
|
|
17289
17428
|
render(): JSX.Element[];
|
|
17290
17429
|
}
|
|
17291
17430
|
|
|
17431
|
+
}
|
|
17432
|
+
declare module '@elastic/eui/src/components/search_bar/filters/custom_component_filter' {
|
|
17433
|
+
import React, { FC } from 'react';
|
|
17434
|
+
import { Query } from '@elastic/eui/src/components/search_bar/query';
|
|
17435
|
+
/**
|
|
17436
|
+
* The props that are passed down to the custom component
|
|
17437
|
+
*/
|
|
17438
|
+
export interface CustomComponentProps {
|
|
17439
|
+
query: Query;
|
|
17440
|
+
onChange?: (query: Query) => void;
|
|
17441
|
+
}
|
|
17442
|
+
export interface CustomComponentFilterConfigType<T extends CustomComponentProps = CustomComponentProps> {
|
|
17443
|
+
type: 'custom_component';
|
|
17444
|
+
component: React.ComponentType<T>;
|
|
17445
|
+
available?: () => boolean;
|
|
17446
|
+
}
|
|
17447
|
+
export interface CustomComponentFilterProps<T extends CustomComponentProps = CustomComponentProps> {
|
|
17448
|
+
index: number;
|
|
17449
|
+
config: CustomComponentFilterConfigType<T>;
|
|
17450
|
+
query: Query;
|
|
17451
|
+
onChange?: (query: Query) => void;
|
|
17452
|
+
}
|
|
17453
|
+
export const CustomComponentFilter: FC<CustomComponentFilterProps>;
|
|
17454
|
+
|
|
17292
17455
|
}
|
|
17293
17456
|
declare module '@elastic/eui/src/components/search_bar/filters/filters' {
|
|
17294
17457
|
|
|
@@ -17296,9 +17459,10 @@ declare module '@elastic/eui/src/components/search_bar/filters/filters' {
|
|
|
17296
17459
|
import { FieldValueSelectionFilterConfigType } from '@elastic/eui/src/components/search_bar/filters/field_value_selection_filter';
|
|
17297
17460
|
import { FieldValueToggleFilterConfigType } from '@elastic/eui/src/components/search_bar/filters/field_value_toggle_filter';
|
|
17298
17461
|
import { FieldValueToggleGroupFilterConfigType } from '@elastic/eui/src/components/search_bar/filters/field_value_toggle_group_filter';
|
|
17462
|
+
import { CustomComponentFilterConfigType } from '@elastic/eui/src/components/search_bar/filters/custom_component_filter';
|
|
17299
17463
|
import { Query } from '@elastic/eui/src/components/search_bar/query';
|
|
17300
17464
|
export const createFilter: (index: number, config: SearchFilterConfig, query: Query, onChange: (query: Query) => void) => JSX.Element;
|
|
17301
|
-
export type SearchFilterConfig = IsFilterConfigType | FieldValueSelectionFilterConfigType | FieldValueToggleFilterConfigType | FieldValueToggleGroupFilterConfigType;
|
|
17465
|
+
export type SearchFilterConfig = IsFilterConfigType | FieldValueSelectionFilterConfigType | FieldValueToggleFilterConfigType | FieldValueToggleGroupFilterConfigType | CustomComponentFilterConfigType;
|
|
17302
17466
|
|
|
17303
17467
|
}
|
|
17304
17468
|
declare module '@elastic/eui/src/components/search_bar/filters' {
|
package/i18ntokens.json
CHANGED
|
@@ -229,10 +229,10 @@ var EuiAccordionClass = /*#__PURE__*/function (_Component) {
|
|
|
229
229
|
|
|
230
230
|
if (_arrowDisplay !== 'none') {
|
|
231
231
|
iconButton = (0, _react2.jsx)(_button.EuiButtonIcon, _extends({
|
|
232
|
-
color: "text"
|
|
232
|
+
color: "text",
|
|
233
|
+
css: cssIconButtonStyles
|
|
233
234
|
}, arrowProps, {
|
|
234
235
|
className: iconButtonClasses,
|
|
235
|
-
css: cssIconButtonStyles,
|
|
236
236
|
iconType: "arrowRight",
|
|
237
237
|
onClick: this.onToggle,
|
|
238
238
|
"aria-controls": id,
|
|
@@ -268,10 +268,11 @@ var EuiAccordionClass = /*#__PURE__*/function (_Component) {
|
|
|
268
268
|
childrenContent = children;
|
|
269
269
|
}
|
|
270
270
|
|
|
271
|
-
var button = (0, _react2.jsx)(ButtonElement, _extends({
|
|
271
|
+
var button = (0, _react2.jsx)(ButtonElement, _extends({
|
|
272
|
+
css: cssButtonStyles
|
|
273
|
+
}, buttonProps, {
|
|
272
274
|
id: buttonId,
|
|
273
275
|
className: buttonClasses,
|
|
274
|
-
css: cssButtonStyles,
|
|
275
276
|
"aria-controls": id,
|
|
276
277
|
"aria-expanded": isOpen,
|
|
277
278
|
onClick: isDisabled ? undefined : this.onToggle,
|
|
@@ -50,7 +50,7 @@ exports.euiAccordionChildrenStyles = euiAccordionChildrenStyles;
|
|
|
50
50
|
var euiAccordionChildWrapperStyles = function euiAccordionChildWrapperStyles(_ref6) {
|
|
51
51
|
var euiTheme = _ref6.euiTheme;
|
|
52
52
|
return {
|
|
53
|
-
euiAccordion__childWrapper: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('height', 0), " opacity:0;overflow:hidden;transition:", _global_styling.logicals.height, " ", euiTheme.animation.normal, " ", euiTheme.animation.resistance, ",opacity ", euiTheme.animation.normal, " ", euiTheme.animation.resistance, ";visibility:hidden
|
|
53
|
+
euiAccordion__childWrapper: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('height', 0), " opacity:0;overflow:hidden;transition:", _global_styling.logicals.height, " ", euiTheme.animation.normal, " ", euiTheme.animation.resistance, ",opacity ", euiTheme.animation.normal, " ", euiTheme.animation.resistance, ";visibility:hidden;&:focus{outline:none;};label:euiAccordion__childWrapper;"),
|
|
54
54
|
isOpen: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('height', 'auto'), " opacity:1;visibility:visible;;label:isOpen;")
|
|
55
55
|
};
|
|
56
56
|
};
|