@elastic/eui 85.0.0 → 85.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_charts_theme.js +13 -16
- package/dist/eui_charts_theme.js.map +1 -1
- package/dist/eui_theme_dark.css +47 -90
- package/dist/eui_theme_dark.min.css +1 -1
- package/dist/eui_theme_light.css +47 -90
- package/dist/eui_theme_light.min.css +1 -1
- package/es/components/collapsible_nav_beta/collapsible_nav_beta.js +26 -0
- package/es/components/collapsible_nav_beta/collapsible_nav_beta.styles.js +16 -0
- package/es/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_accordion.js +202 -0
- package/es/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_accordion.styles.js +33 -0
- package/es/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_item.js +296 -0
- package/es/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_item.styles.js +58 -0
- package/es/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_link.js +93 -0
- package/es/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_link.styles.js +28 -0
- package/es/components/collapsible_nav_beta/collapsible_nav_item/index.js +9 -0
- package/es/components/collapsible_nav_beta/index.js +15 -0
- package/es/components/color_picker/saturation.js +2 -1
- package/es/components/combo_box/combo_box_input/combo_box_input.js +7 -1
- package/es/components/combo_box/combo_box_input/combo_box_pill.js +16 -4
- package/es/components/combo_box/combo_box_options_list/combo_box_option.js +4 -0
- package/es/components/combo_box/combo_box_options_list/combo_box_options_list.js +21 -3
- package/es/components/error_boundary/error_boundary.js +1 -1
- package/es/components/filter_group/filter_group.styles.js +2 -2
- package/es/components/filter_group/filter_select_item.js +31 -15
- package/es/components/filter_group/filter_select_item.styles.js +19 -0
- package/es/components/form/range/range_highlight.js +1 -0
- package/es/components/highlight/highlight.js +4 -4
- package/es/components/index.js +1 -0
- package/es/components/inline_edit/inline_edit_form.js +2 -1
- package/es/components/markdown_editor/markdown_editor.js +2 -2
- package/es/themes/amsterdam/global_styling/variables/_states.js +13 -16
- package/eui.d.ts +362 -129
- package/i18ntokens.json +50 -50
- package/lib/components/collapsible_nav_beta/collapsible_nav_beta.js +30 -0
- package/lib/components/collapsible_nav_beta/collapsible_nav_beta.styles.js +23 -0
- package/lib/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_accordion.js +211 -0
- package/lib/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_accordion.styles.js +40 -0
- package/lib/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_item.js +304 -0
- package/lib/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_item.styles.js +63 -0
- package/lib/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_link.js +100 -0
- package/lib/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_link.styles.js +35 -0
- package/lib/components/collapsible_nav_beta/collapsible_nav_item/index.js +12 -0
- package/lib/components/collapsible_nav_beta/index.js +19 -0
- package/lib/components/color_picker/saturation.js +2 -1
- package/lib/components/combo_box/combo_box_input/combo_box_input.js +7 -1
- package/lib/components/combo_box/combo_box_input/combo_box_pill.js +16 -4
- package/lib/components/combo_box/combo_box_options_list/combo_box_option.js +4 -0
- package/lib/components/combo_box/combo_box_options_list/combo_box_options_list.js +21 -3
- package/lib/components/error_boundary/error_boundary.js +1 -1
- package/lib/components/filter_group/filter_group.styles.js +1 -1
- package/lib/components/filter_group/filter_select_item.js +33 -17
- package/lib/components/filter_group/filter_select_item.styles.js +26 -0
- package/lib/components/form/range/range_highlight.js +1 -0
- package/lib/components/highlight/highlight.js +4 -4
- package/lib/components/index.js +11 -0
- package/lib/components/inline_edit/inline_edit_form.js +2 -1
- package/lib/components/markdown_editor/markdown_editor.js +2 -2
- package/lib/themes/amsterdam/global_styling/variables/_states.js +13 -16
- package/optimize/es/components/collapsible_nav_beta/collapsible_nav_beta.js +26 -0
- package/optimize/es/components/collapsible_nav_beta/collapsible_nav_beta.styles.js +16 -0
- package/optimize/es/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_accordion.js +113 -0
- package/optimize/es/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_accordion.styles.js +33 -0
- package/optimize/es/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_item.js +117 -0
- package/optimize/es/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_item.styles.js +55 -0
- package/optimize/es/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_link.js +59 -0
- package/optimize/es/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_link.styles.js +28 -0
- package/optimize/es/components/collapsible_nav_beta/collapsible_nav_item/index.js +9 -0
- package/optimize/es/components/collapsible_nav_beta/index.js +15 -0
- package/optimize/es/components/color_picker/saturation.js +2 -1
- package/optimize/es/components/combo_box/combo_box_input/combo_box_input.js +3 -1
- package/optimize/es/components/combo_box/combo_box_input/combo_box_pill.js +12 -4
- package/optimize/es/components/combo_box/combo_box_options_list/combo_box_options_list.js +9 -3
- package/optimize/es/components/error_boundary/error_boundary.js +1 -1
- package/optimize/es/components/filter_group/filter_group.styles.js +2 -2
- package/optimize/es/components/filter_group/filter_select_item.js +30 -14
- package/optimize/es/components/filter_group/filter_select_item.styles.js +19 -0
- package/optimize/es/components/form/range/range_highlight.js +1 -0
- package/optimize/es/components/highlight/highlight.js +4 -4
- package/optimize/es/components/index.js +1 -0
- package/optimize/es/components/inline_edit/inline_edit_form.js +2 -1
- package/optimize/es/components/markdown_editor/markdown_editor.js +2 -2
- package/optimize/es/themes/amsterdam/global_styling/variables/_states.js +13 -16
- package/optimize/lib/components/collapsible_nav_beta/collapsible_nav_beta.js +33 -0
- package/optimize/lib/components/collapsible_nav_beta/collapsible_nav_beta.styles.js +23 -0
- package/optimize/lib/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_accordion.js +123 -0
- package/optimize/lib/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_accordion.styles.js +40 -0
- package/optimize/lib/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_item.js +124 -0
- package/optimize/lib/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_item.styles.js +61 -0
- package/optimize/lib/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_link.js +66 -0
- package/optimize/lib/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_link.styles.js +35 -0
- package/optimize/lib/components/collapsible_nav_beta/collapsible_nav_item/index.js +12 -0
- package/optimize/lib/components/collapsible_nav_beta/index.js +19 -0
- package/optimize/lib/components/color_picker/saturation.js +2 -1
- package/optimize/lib/components/combo_box/combo_box_input/combo_box_input.js +3 -1
- package/optimize/lib/components/combo_box/combo_box_input/combo_box_pill.js +12 -4
- package/optimize/lib/components/combo_box/combo_box_options_list/combo_box_options_list.js +9 -3
- package/optimize/lib/components/error_boundary/error_boundary.js +1 -1
- package/optimize/lib/components/filter_group/filter_group.styles.js +1 -1
- package/optimize/lib/components/filter_group/filter_select_item.js +32 -16
- package/optimize/lib/components/filter_group/filter_select_item.styles.js +26 -0
- package/optimize/lib/components/form/range/range_highlight.js +1 -0
- package/optimize/lib/components/highlight/highlight.js +4 -4
- package/optimize/lib/components/index.js +11 -0
- package/optimize/lib/components/inline_edit/inline_edit_form.js +2 -1
- package/optimize/lib/components/markdown_editor/markdown_editor.js +2 -2
- package/optimize/lib/themes/amsterdam/global_styling/variables/_states.js +13 -16
- package/package.json +1 -1
- package/src/components/combo_box/combo_box_input/_combo_box_pill.scss +24 -3
- package/src/components/combo_box/combo_box_options_list/_combo_box_option.scss +34 -14
- package/src/components/index.scss +0 -1
- package/test-env/components/collapsible_nav_beta/collapsible_nav_beta.js +33 -0
- package/test-env/components/collapsible_nav_beta/collapsible_nav_beta.styles.js +23 -0
- package/test-env/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_accordion.js +208 -0
- package/test-env/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_accordion.styles.js +40 -0
- package/test-env/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_item.js +303 -0
- package/test-env/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_item.styles.js +61 -0
- package/test-env/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_link.js +96 -0
- package/test-env/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_link.styles.js +35 -0
- package/test-env/components/collapsible_nav_beta/collapsible_nav_item/index.js +12 -0
- package/test-env/components/collapsible_nav_beta/index.js +19 -0
- package/test-env/components/color_picker/saturation.js +2 -1
- package/test-env/components/combo_box/combo_box_input/combo_box_input.js +7 -1
- package/test-env/components/combo_box/combo_box_input/combo_box_pill.js +16 -4
- package/test-env/components/combo_box/combo_box_options_list/combo_box_option.js +4 -0
- package/test-env/components/combo_box/combo_box_options_list/combo_box_options_list.js +21 -3
- package/test-env/components/error_boundary/error_boundary.js +1 -1
- package/test-env/components/filter_group/filter_group.styles.js +1 -1
- package/test-env/components/filter_group/filter_select_item.js +33 -17
- package/test-env/components/filter_group/filter_select_item.styles.js +26 -0
- package/test-env/components/form/range/range_highlight.js +1 -0
- package/test-env/components/highlight/highlight.js +4 -4
- package/test-env/components/index.js +11 -0
- package/test-env/components/inline_edit/inline_edit_form.js +2 -1
- package/test-env/components/markdown_editor/markdown_editor.js +2 -2
- package/test-env/themes/amsterdam/global_styling/variables/_states.js +13 -16
- package/src/components/filter_group/_filter_select_item.scss +0 -43
- package/src/components/filter_group/_index.scss +0 -1
package/eui.d.ts
CHANGED
|
@@ -597,16 +597,6 @@ declare module '@elastic/eui/src/global_styling/variables/typography' {
|
|
|
597
597
|
declare module '@elastic/eui/src/global_styling/variables/states' {
|
|
598
598
|
import { ColorModeSwitch } from '@elastic/eui/src/services/theme/types';
|
|
599
599
|
import { CSSProperties } from 'react';
|
|
600
|
-
/**
|
|
601
|
-
* NOTE: These were quick conversions of their Sass counterparts.
|
|
602
|
-
* The commented out keys have not been established as necessary yet.
|
|
603
|
-
*/
|
|
604
|
-
export interface _EuiThemeFocusOutline {
|
|
605
|
-
/**
|
|
606
|
-
* A single CSS property: value
|
|
607
|
-
*/
|
|
608
|
-
[key: string]: ColorModeSwitch;
|
|
609
|
-
}
|
|
610
600
|
export interface _EuiThemeFocus {
|
|
611
601
|
/**
|
|
612
602
|
* Default color of the focus ring, some components may override this property
|
|
@@ -618,6 +608,16 @@ declare module '@elastic/eui/src/global_styling/variables/states' {
|
|
|
618
608
|
* - Default value: 2px
|
|
619
609
|
*/
|
|
620
610
|
width: CSSProperties['borderWidth'];
|
|
611
|
+
/**
|
|
612
|
+
* Used to transparentize the focus background color
|
|
613
|
+
* - Default value: { LIGHT: 0.1, DARK: 0.2 }
|
|
614
|
+
*/
|
|
615
|
+
transparency: ColorModeSwitch<number>;
|
|
616
|
+
/**
|
|
617
|
+
* Default focus background color. Not all components set a background color on focus
|
|
618
|
+
* - Default value: `colors.primary` computed with `focus.transparency`
|
|
619
|
+
*/
|
|
620
|
+
backgroundColor: ColorModeSwitch;
|
|
621
621
|
}
|
|
622
622
|
|
|
623
623
|
}
|
|
@@ -10057,6 +10057,217 @@ declare module '@elastic/eui/src/components/collapsible_nav' {
|
|
|
10057
10057
|
export type { EuiCollapsibleNavProps } from '@elastic/eui/src/components/collapsible_nav/collapsible_nav';
|
|
10058
10058
|
export { EuiCollapsibleNav } from '@elastic/eui/src/components/collapsible_nav/collapsible_nav';
|
|
10059
10059
|
|
|
10060
|
+
}
|
|
10061
|
+
declare module '@elastic/eui/src/components/collapsible_nav_beta/collapsible_nav_beta.styles' {
|
|
10062
|
+
import { UseEuiTheme } from '@elastic/eui/src/services';
|
|
10063
|
+
export const euiCollapsibleNavBetaStyles: (euiThemeContext: UseEuiTheme) => {
|
|
10064
|
+
euiCollapsibleNavBeta: import("@emotion/utils").SerializedStyles;
|
|
10065
|
+
};
|
|
10066
|
+
|
|
10067
|
+
}
|
|
10068
|
+
declare module '@elastic/eui/src/components/collapsible_nav_beta/collapsible_nav_beta' {
|
|
10069
|
+
|
|
10070
|
+
import { EuiCollapsibleNavProps } from '@elastic/eui/src/components/collapsible_nav/collapsible_nav';
|
|
10071
|
+
/**
|
|
10072
|
+
* TODO: Actual component in a follow-up PR
|
|
10073
|
+
*/
|
|
10074
|
+
export const EuiCollapsibleNavBeta: (props: EuiCollapsibleNavProps) => JSX.Element;
|
|
10075
|
+
|
|
10076
|
+
}
|
|
10077
|
+
declare module '@elastic/eui/src/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_item.styles' {
|
|
10078
|
+
import { UseEuiTheme } from '@elastic/eui/src/services';
|
|
10079
|
+
/**
|
|
10080
|
+
* Style variables shared between accordion, link, and sub items
|
|
10081
|
+
*/
|
|
10082
|
+
export const euiCollapsibleNavItemVariables: (euiThemeContext: UseEuiTheme) => {
|
|
10083
|
+
animation: string;
|
|
10084
|
+
borderRadius: import("csstype").Property.BorderRadius<string | number> | undefined;
|
|
10085
|
+
backgroundHoverColor: string;
|
|
10086
|
+
backgroundSelectedColor: string;
|
|
10087
|
+
color: string;
|
|
10088
|
+
rightIconColor: string;
|
|
10089
|
+
fontSize: import("csstype").Property.FontSize<string | number> | undefined;
|
|
10090
|
+
lineHeight: import("csstype").Property.LineHeight<string | number> | undefined;
|
|
10091
|
+
height: string;
|
|
10092
|
+
padding: string;
|
|
10093
|
+
};
|
|
10094
|
+
/**
|
|
10095
|
+
* Title styles
|
|
10096
|
+
*/
|
|
10097
|
+
export const euiCollapsibleNavItemTitleStyles: {
|
|
10098
|
+
euiCollapsibleNavItem__title: import("@emotion/utils").SerializedStyles;
|
|
10099
|
+
};
|
|
10100
|
+
export const euiCollapsibleNavSubItemGroupTitleStyles: ({ euiTheme, }: UseEuiTheme) => {
|
|
10101
|
+
euiCollapsibleNavItem__groupTitle: import("@emotion/utils").SerializedStyles;
|
|
10102
|
+
};
|
|
10103
|
+
|
|
10104
|
+
}
|
|
10105
|
+
declare module '@elastic/eui/src/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_link.styles' {
|
|
10106
|
+
import { UseEuiTheme } from '@elastic/eui/src/services';
|
|
10107
|
+
export const euiCollapsibleNavLinkStyles: (euiThemeContext: UseEuiTheme) => {
|
|
10108
|
+
euiCollapsibleNavLink: import("@emotion/utils").SerializedStyles;
|
|
10109
|
+
isSelected: import("@emotion/utils").SerializedStyles;
|
|
10110
|
+
isTopItem: {
|
|
10111
|
+
isTopItem: import("@emotion/utils").SerializedStyles;
|
|
10112
|
+
isNotAccordion: import("@emotion/utils").SerializedStyles;
|
|
10113
|
+
isInteractive: import("@emotion/utils").SerializedStyles;
|
|
10114
|
+
};
|
|
10115
|
+
isSubItem: import("@emotion/utils").SerializedStyles;
|
|
10116
|
+
};
|
|
10117
|
+
|
|
10118
|
+
}
|
|
10119
|
+
declare module '@elastic/eui/src/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_link' {
|
|
10120
|
+
import { FunctionComponent, ReactNode } from 'react';
|
|
10121
|
+
import { EuiLinkProps } from '@elastic/eui/src/components/link';
|
|
10122
|
+
import type { _SharedEuiCollapsibleNavItemProps, _EuiCollapsibleNavItemDisplayProps } from '@elastic/eui/src/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_item'; type EuiCollapsibleNavLinkProps = Omit<EuiLinkProps, 'children'> & Omit<_SharedEuiCollapsibleNavItemProps, 'items' | 'accordionProps'> & _EuiCollapsibleNavItemDisplayProps & {
|
|
10123
|
+
children: ReactNode;
|
|
10124
|
+
isInteractive?: boolean;
|
|
10125
|
+
isNotAccordion?: boolean;
|
|
10126
|
+
};
|
|
10127
|
+
/**
|
|
10128
|
+
* Internal nav link component.
|
|
10129
|
+
*
|
|
10130
|
+
* Can be rendered as a standalone nav item, or as part of an accordion header.
|
|
10131
|
+
* Can also be rendered as top-level item (has a background hover) or as a
|
|
10132
|
+
* sub-item (renders closer to plain text).
|
|
10133
|
+
*
|
|
10134
|
+
* In terms of DOM output, follows the same logic as EuiLink (renders either
|
|
10135
|
+
* an `a` tag or a `button` if no valid link exists), and can also additionally
|
|
10136
|
+
* rendered a plain `span` if the item is not interactive.
|
|
10137
|
+
*/
|
|
10138
|
+
export const EuiCollapsibleNavLink: FunctionComponent<EuiCollapsibleNavLinkProps>;
|
|
10139
|
+
export {};
|
|
10140
|
+
|
|
10141
|
+
}
|
|
10142
|
+
declare module '@elastic/eui/src/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_accordion.styles' {
|
|
10143
|
+
import { UseEuiTheme } from '@elastic/eui/src/services';
|
|
10144
|
+
export const euiCollapsibleNavAccordionStyles: (euiThemeContext: UseEuiTheme) => {
|
|
10145
|
+
euiCollapsibleNavAccordion: import("@emotion/utils").SerializedStyles;
|
|
10146
|
+
isTopItem: import("@emotion/utils").SerializedStyles;
|
|
10147
|
+
isSelected: import("@emotion/utils").SerializedStyles;
|
|
10148
|
+
isSubItem: import("@emotion/utils").SerializedStyles;
|
|
10149
|
+
euiCollapsibleNavAccordion__arrow: import("@emotion/utils").SerializedStyles;
|
|
10150
|
+
children: {
|
|
10151
|
+
euiCollapsibleNavAccordion__children: import("@emotion/utils").SerializedStyles;
|
|
10152
|
+
isTopItem: import("@emotion/utils").SerializedStyles;
|
|
10153
|
+
isSubItem: import("@emotion/utils").SerializedStyles;
|
|
10154
|
+
};
|
|
10155
|
+
};
|
|
10156
|
+
|
|
10157
|
+
}
|
|
10158
|
+
declare module '@elastic/eui/src/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_accordion' {
|
|
10159
|
+
import { FunctionComponent, ReactNode } from 'react';
|
|
10160
|
+
import { _SharedEuiCollapsibleNavItemProps, _EuiCollapsibleNavItemDisplayProps, EuiCollapsibleNavItemProps } from '@elastic/eui/src/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_item'; type EuiCollapsibleNavAccordionProps = Omit<_SharedEuiCollapsibleNavItemProps, 'items'> & _EuiCollapsibleNavItemDisplayProps & {
|
|
10161
|
+
buttonContent: ReactNode;
|
|
10162
|
+
items: EuiCollapsibleNavItemProps[];
|
|
10163
|
+
};
|
|
10164
|
+
/**
|
|
10165
|
+
* Internal nav accordion component.
|
|
10166
|
+
*
|
|
10167
|
+
* Renders children as either a nav link or any number/nesting of more nav accordions.
|
|
10168
|
+
* Triggering the open/closed state is handled only by the accordion `arrow` for
|
|
10169
|
+
* UX consistency, as accordion/nav titles can be their own links to pages.
|
|
10170
|
+
*/
|
|
10171
|
+
export const EuiCollapsibleNavAccordion: FunctionComponent<EuiCollapsibleNavAccordionProps>;
|
|
10172
|
+
export {};
|
|
10173
|
+
|
|
10174
|
+
}
|
|
10175
|
+
declare module '@elastic/eui/src/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_item' {
|
|
10176
|
+
import { FunctionComponent, ReactNode, HTMLAttributes } from 'react';
|
|
10177
|
+
import { CommonProps, ExclusiveUnion } from '@elastic/eui/src/components/common';
|
|
10178
|
+
import { IconType, EuiIconProps } from '@elastic/eui/src/components/icon';
|
|
10179
|
+
import { EuiLinkProps } from '@elastic/eui/src/components/link';
|
|
10180
|
+
import { EuiAccordionProps } from '@elastic/eui/src/components/accordion';
|
|
10181
|
+
export type _SharedEuiCollapsibleNavItemProps = HTMLAttributes<HTMLElement> & CommonProps & {
|
|
10182
|
+
/**
|
|
10183
|
+
* The nav item link.
|
|
10184
|
+
* If not included, and no `onClick` is specified, the nav item
|
|
10185
|
+
* will render as an non-interactive `<span>`.
|
|
10186
|
+
*/
|
|
10187
|
+
href?: string;
|
|
10188
|
+
/**
|
|
10189
|
+
* When passed, an `EuiAccordion` with nested child item links will be rendered.
|
|
10190
|
+
*
|
|
10191
|
+
* Accepts any #EuiCollapsibleNavItem prop, and also accepts an
|
|
10192
|
+
* #EuiCollapsibleNavSubItemGroupTitle
|
|
10193
|
+
*/
|
|
10194
|
+
items?: EuiCollapsibleNavSubItemProps[];
|
|
10195
|
+
/**
|
|
10196
|
+
* If `items` is specified, use this prop to pass any prop that `EuiAccordion`
|
|
10197
|
+
* accepts, including props that control the toggled state of the accordion
|
|
10198
|
+
* (e.g. `initialIsOpen`, `forceState`)
|
|
10199
|
+
*/
|
|
10200
|
+
accordionProps?: Partial<EuiAccordionProps>;
|
|
10201
|
+
/**
|
|
10202
|
+
* If a `href` is specified, use this prop to pass any prop that `EuiLink` accepts
|
|
10203
|
+
*/
|
|
10204
|
+
linkProps?: Partial<EuiLinkProps>;
|
|
10205
|
+
/**
|
|
10206
|
+
* Highlights whether an item is currently selected, e.g.
|
|
10207
|
+
* if the user is on the same page as the nav link
|
|
10208
|
+
*/
|
|
10209
|
+
isSelected?: boolean;
|
|
10210
|
+
};
|
|
10211
|
+
export type EuiCollapsibleNavItemProps = {
|
|
10212
|
+
/**
|
|
10213
|
+
* ReactNode to render as this component's title
|
|
10214
|
+
*/
|
|
10215
|
+
title: ReactNode;
|
|
10216
|
+
/**
|
|
10217
|
+
* Allows customizing title's element.
|
|
10218
|
+
* Consider using a heading element for better accessibility.
|
|
10219
|
+
* Defaults to an unsemantic `span` or `div`, depending on context.
|
|
10220
|
+
*/
|
|
10221
|
+
titleElement?: 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'span' | 'div';
|
|
10222
|
+
/**
|
|
10223
|
+
* Optional icon to render to the left of title content
|
|
10224
|
+
*/
|
|
10225
|
+
icon?: IconType;
|
|
10226
|
+
/**
|
|
10227
|
+
* Optional props to pass to the title icon
|
|
10228
|
+
*/
|
|
10229
|
+
iconProps?: Partial<EuiIconProps>;
|
|
10230
|
+
} & _SharedEuiCollapsibleNavItemProps;
|
|
10231
|
+
export type EuiCollapsibleNavSubItemGroupTitle = Pick<EuiCollapsibleNavItemProps, 'title' | 'titleElement'> & {
|
|
10232
|
+
/**
|
|
10233
|
+
* Pass this flag to seperate links by group title headings.
|
|
10234
|
+
* Strongly consider using the `titleElement` prop for accessibility.
|
|
10235
|
+
*/
|
|
10236
|
+
isGroupTitle?: boolean;
|
|
10237
|
+
};
|
|
10238
|
+
export type EuiCollapsibleNavSubItemProps = ExclusiveUnion<EuiCollapsibleNavItemProps, EuiCollapsibleNavSubItemGroupTitle>;
|
|
10239
|
+
export type _EuiCollapsibleNavItemDisplayProps = {
|
|
10240
|
+
/**
|
|
10241
|
+
* Determines whether the item should render as a top-level nav item
|
|
10242
|
+
* or a nested nav subitem. Set internally by EUI
|
|
10243
|
+
*/
|
|
10244
|
+
isSubItem?: boolean;
|
|
10245
|
+
};
|
|
10246
|
+
/**
|
|
10247
|
+
* Sub-items can either be a group title, to visually separate sections
|
|
10248
|
+
* of nav links, or they can simply be more links or accordions
|
|
10249
|
+
*/
|
|
10250
|
+
export const EuiCollapsibleNavSubItem: FunctionComponent<EuiCollapsibleNavSubItemProps>;
|
|
10251
|
+
/**
|
|
10252
|
+
* The actual exported component
|
|
10253
|
+
*/
|
|
10254
|
+
export const EuiCollapsibleNavItem: FunctionComponent<EuiCollapsibleNavItemProps>;
|
|
10255
|
+
|
|
10256
|
+
}
|
|
10257
|
+
declare module '@elastic/eui/src/components/collapsible_nav_beta/collapsible_nav_item' {
|
|
10258
|
+
export type { EuiCollapsibleNavItemProps, EuiCollapsibleNavSubItemProps, EuiCollapsibleNavSubItemGroupTitle, } from '@elastic/eui/src/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_item';
|
|
10259
|
+
export { EuiCollapsibleNavItem } from '@elastic/eui/src/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_item';
|
|
10260
|
+
|
|
10261
|
+
}
|
|
10262
|
+
declare module '@elastic/eui/src/components/collapsible_nav_beta' {
|
|
10263
|
+
/**
|
|
10264
|
+
* NOTE: This is currently still a beta component, being exported for Kibana
|
|
10265
|
+
* development usage. It is not yet fully documented or supported.
|
|
10266
|
+
*/
|
|
10267
|
+
export { EuiCollapsibleNavBeta } from '@elastic/eui/src/components/collapsible_nav_beta/collapsible_nav_beta';
|
|
10268
|
+
export type { EuiCollapsibleNavItemProps, EuiCollapsibleNavSubItemProps, EuiCollapsibleNavSubItemGroupTitle, } from '@elastic/eui/src/components/collapsible_nav_beta/collapsible_nav_item';
|
|
10269
|
+
export { EuiCollapsibleNavItem } from '@elastic/eui/src/components/collapsible_nav_beta/collapsible_nav_item';
|
|
10270
|
+
|
|
10060
10271
|
}
|
|
10061
10272
|
declare module '@elastic/eui/src/components/color_picker/color_palette_display/color_palette_display_fixed' {
|
|
10062
10273
|
import { FunctionComponent, HTMLAttributes } from 'react';
|
|
@@ -10288,9 +10499,18 @@ declare module '@elastic/eui/src/components/combo_box/combo_box_options_list/com
|
|
|
10288
10499
|
import { FunctionComponent } from 'react';
|
|
10289
10500
|
export const EuiComboBoxTitle: FunctionComponent<{}>;
|
|
10290
10501
|
|
|
10502
|
+
}
|
|
10503
|
+
declare module '@elastic/eui/src/components/filter_group/filter_select_item.styles' {
|
|
10504
|
+
import { UseEuiTheme } from '@elastic/eui/src/services';
|
|
10505
|
+
export const euiFilterSelectItemStyles: (euiThemeContext: UseEuiTheme) => {
|
|
10506
|
+
euiFilterSelectItem: import("@emotion/utils").SerializedStyles;
|
|
10507
|
+
isFocused: import("@emotion/utils").SerializedStyles;
|
|
10508
|
+
};
|
|
10509
|
+
|
|
10291
10510
|
}
|
|
10292
10511
|
declare module '@elastic/eui/src/components/filter_group/filter_select_item' {
|
|
10293
|
-
import { ButtonHTMLAttributes, Component } from 'react';
|
|
10512
|
+
import React, { ButtonHTMLAttributes, Component } from 'react';
|
|
10513
|
+
import { WithEuiThemeProps } from '@elastic/eui/src/services';
|
|
10294
10514
|
import { CommonProps } from '@elastic/eui/src/components/common';
|
|
10295
10515
|
export type FilterChecked = 'on' | 'off';
|
|
10296
10516
|
export interface EuiFilterSelectItemProps extends CommonProps, ButtonHTMLAttributes<HTMLButtonElement> {
|
|
@@ -10298,7 +10518,13 @@ declare module '@elastic/eui/src/components/filter_group/filter_select_item' {
|
|
|
10298
10518
|
showIcons?: boolean;
|
|
10299
10519
|
isFocused?: boolean;
|
|
10300
10520
|
}
|
|
10301
|
-
|
|
10521
|
+
/**
|
|
10522
|
+
* TODO: This component should removed in favor of EuiSelectable usage
|
|
10523
|
+
* once EuiComboBox has been converted to dogfood EuiSelectable.
|
|
10524
|
+
*
|
|
10525
|
+
* @deprecated - Use EuiSelectable instead
|
|
10526
|
+
*/
|
|
10527
|
+
export class EuiFilterSelectItemClass extends Component<WithEuiThemeProps & EuiFilterSelectItemProps> {
|
|
10302
10528
|
static defaultProps: {
|
|
10303
10529
|
showIcons: boolean;
|
|
10304
10530
|
};
|
|
@@ -10310,10 +10536,14 @@ declare module '@elastic/eui/src/components/filter_group/filter_select_item' {
|
|
|
10310
10536
|
hasFocus: () => boolean;
|
|
10311
10537
|
render(): JSX.Element;
|
|
10312
10538
|
}
|
|
10539
|
+
/**
|
|
10540
|
+
* @deprecated - Use EuiSelectable instead
|
|
10541
|
+
*/
|
|
10542
|
+
export const EuiFilterSelectItem: React.ForwardRefExoticComponent<Omit<EuiFilterSelectItemProps, "theme"> & React.RefAttributes<Omit<EuiFilterSelectItemProps, "theme">>>;
|
|
10313
10543
|
|
|
10314
10544
|
}
|
|
10315
10545
|
declare module '@elastic/eui/src/components/combo_box/types' {
|
|
10316
|
-
import { ButtonHTMLAttributes } from 'react';
|
|
10546
|
+
import { ButtonHTMLAttributes, ReactNode } from 'react';
|
|
10317
10547
|
import { CommonProps } from '@elastic/eui/src/components/common';
|
|
10318
10548
|
export interface EuiComboBoxOptionOption<T = string | number | string[] | undefined> extends CommonProps, Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'value'> {
|
|
10319
10549
|
isGroupLabelOption?: boolean;
|
|
@@ -10321,6 +10551,8 @@ declare module '@elastic/eui/src/components/combo_box/types' {
|
|
|
10321
10551
|
key?: string;
|
|
10322
10552
|
options?: Array<EuiComboBoxOptionOption<T>>;
|
|
10323
10553
|
value?: T;
|
|
10554
|
+
prepend?: ReactNode;
|
|
10555
|
+
append?: ReactNode;
|
|
10324
10556
|
}
|
|
10325
10557
|
export type UpdatePositionHandler = (listElement?: RefInstance<HTMLDivElement>) => void;
|
|
10326
10558
|
export type OptionHandler<T> = (option: EuiComboBoxOptionOption<T>) => void;
|
|
@@ -10334,7 +10566,7 @@ declare module '@elastic/eui/src/components/combo_box/types' {
|
|
|
10334
10566
|
declare module '@elastic/eui/src/components/combo_box/combo_box_options_list/combo_box_options_list' {
|
|
10335
10567
|
import { Component, ComponentProps, ReactNode, RefCallback } from 'react';
|
|
10336
10568
|
import { FixedSizeList, ListProps, ListChildComponentProps } from 'react-window';
|
|
10337
|
-
import {
|
|
10569
|
+
import { EuiFilterSelectItemClass } from '@elastic/eui/src/components/filter_group/filter_select_item';
|
|
10338
10570
|
import { htmlIdGenerator } from '@elastic/eui/src/services';
|
|
10339
10571
|
import { EuiComboBoxOptionOption, EuiComboBoxOptionsListPosition, EuiComboBoxSingleSelectionShape, OptionHandler, RefInstance, UpdatePositionHandler } from '@elastic/eui/src/components/combo_box/types';
|
|
10340
10572
|
import { CommonProps } from '@elastic/eui/src/components/common';
|
|
@@ -10364,7 +10596,7 @@ declare module '@elastic/eui/src/components/combo_box/combo_box_options_list/com
|
|
|
10364
10596
|
onOptionClick?: OptionHandler<T>;
|
|
10365
10597
|
onOptionEnterKey?: OptionHandler<T>;
|
|
10366
10598
|
onScroll?: ListProps['onScroll'];
|
|
10367
|
-
optionRef: (index: number, node: RefInstance<
|
|
10599
|
+
optionRef: (index: number, node: RefInstance<EuiFilterSelectItemClass>) => void;
|
|
10368
10600
|
/**
|
|
10369
10601
|
* Array of EuiComboBoxOptionOption objects. See #EuiComboBoxOptionOption
|
|
10370
10602
|
*/
|
|
@@ -10536,118 +10768,6 @@ declare module '@elastic/eui/src/components/combo_box/combo_box_input/combo_box_
|
|
|
10536
10768
|
}
|
|
10537
10769
|
export {};
|
|
10538
10770
|
|
|
10539
|
-
}
|
|
10540
|
-
declare module '@elastic/eui/src/components/filter_group/filter_button.styles' {
|
|
10541
|
-
import { UseEuiTheme } from '@elastic/eui/src/services';
|
|
10542
|
-
export const euiFilterButtonDisplay: ({ euiTheme }: UseEuiTheme) => {
|
|
10543
|
-
flex: string;
|
|
10544
|
-
minInlineSize: string;
|
|
10545
|
-
};
|
|
10546
|
-
export const euiFilterButtonStyles: (euiThemeContext: UseEuiTheme) => {
|
|
10547
|
-
euiFilterButton: import("@emotion/utils").SerializedStyles;
|
|
10548
|
-
withNext: import("@emotion/utils").SerializedStyles;
|
|
10549
|
-
noGrow: import("@emotion/utils").SerializedStyles;
|
|
10550
|
-
hasNotification: import("@emotion/utils").SerializedStyles;
|
|
10551
|
-
hasActiveFilters: import("@emotion/utils").SerializedStyles;
|
|
10552
|
-
};
|
|
10553
|
-
export const euiFilterButtonChildStyles: ({ euiTheme }: UseEuiTheme) => {
|
|
10554
|
-
content: {
|
|
10555
|
-
euiFilterButton__content: import("@emotion/utils").SerializedStyles;
|
|
10556
|
-
hasIcon: import("@emotion/utils").SerializedStyles;
|
|
10557
|
-
};
|
|
10558
|
-
text: {
|
|
10559
|
-
euiFilterButton__text: import("@emotion/utils").SerializedStyles;
|
|
10560
|
-
hasNotification: import("@emotion/utils").SerializedStyles;
|
|
10561
|
-
euiFilterButton__textShift: import("@emotion/utils").SerializedStyles;
|
|
10562
|
-
};
|
|
10563
|
-
notification: {
|
|
10564
|
-
euiFilterButton__notification: import("@emotion/utils").SerializedStyles;
|
|
10565
|
-
disabled: import("@emotion/utils").SerializedStyles;
|
|
10566
|
-
};
|
|
10567
|
-
};
|
|
10568
|
-
|
|
10569
|
-
}
|
|
10570
|
-
declare module '@elastic/eui/src/components/filter_group/filter_group.styles' {
|
|
10571
|
-
import { UseEuiTheme } from '@elastic/eui/src/services';
|
|
10572
|
-
export const euiFilterGroupStyles: (euiThemeContext: UseEuiTheme) => {
|
|
10573
|
-
euiFilterGroup: import("@emotion/utils").SerializedStyles;
|
|
10574
|
-
fullWidth: import("@emotion/utils").SerializedStyles;
|
|
10575
|
-
uncompressed: import("@emotion/utils").SerializedStyles;
|
|
10576
|
-
compressed: import("@emotion/utils").SerializedStyles;
|
|
10577
|
-
/**
|
|
10578
|
-
* Not used in EuiFilterGroup directly, but used by EuiSearchBar and consumers
|
|
10579
|
-
* A fixed width is required because of the shift in widths that can be caused
|
|
10580
|
-
* by the loading animation that precedes the results.
|
|
10581
|
-
*/
|
|
10582
|
-
euiFilterGroup__popoverPanel: import("@emotion/utils").SerializedStyles;
|
|
10583
|
-
};
|
|
10584
|
-
|
|
10585
|
-
}
|
|
10586
|
-
declare module '@elastic/eui/src/components/filter_group/filter_group' {
|
|
10587
|
-
import { HTMLAttributes, ReactNode, FunctionComponent } from 'react';
|
|
10588
|
-
import { CommonProps } from '@elastic/eui/src/components/common';
|
|
10589
|
-
export type EuiFilterGroupProps = HTMLAttributes<HTMLDivElement> & CommonProps & {
|
|
10590
|
-
children?: ReactNode;
|
|
10591
|
-
/**
|
|
10592
|
-
* Expand the whole bar to fill its parent's width
|
|
10593
|
-
*/
|
|
10594
|
-
fullWidth?: boolean;
|
|
10595
|
-
/**
|
|
10596
|
-
* When `true`, creates a shorter height filter group matching that of `compressed` form controls
|
|
10597
|
-
*/
|
|
10598
|
-
compressed?: boolean;
|
|
10599
|
-
};
|
|
10600
|
-
export const EuiFilterGroup: FunctionComponent<EuiFilterGroupProps>;
|
|
10601
|
-
|
|
10602
|
-
}
|
|
10603
|
-
declare module '@elastic/eui/src/components/filter_group/filter_button' {
|
|
10604
|
-
import { FunctionComponent } from 'react';
|
|
10605
|
-
import { DistributiveOmit } from '@elastic/eui/src/components/common';
|
|
10606
|
-
import { BadgeNotificationColor } from '@elastic/eui/src/components/badge/notification_badge/badge_notification';
|
|
10607
|
-
import { EuiButtonEmptyProps } from '@elastic/eui/src/components/button/button_empty';
|
|
10608
|
-
export type EuiFilterButtonProps = {
|
|
10609
|
-
/**
|
|
10610
|
-
* Bolds the button if true
|
|
10611
|
-
*/
|
|
10612
|
-
hasActiveFilters?: boolean;
|
|
10613
|
-
/**
|
|
10614
|
-
* Pass the total number of filters available and it will
|
|
10615
|
-
* add a subdued notification badge showing the number
|
|
10616
|
-
*/
|
|
10617
|
-
numFilters?: number;
|
|
10618
|
-
/**
|
|
10619
|
-
* Pass the number of selected filters and it will
|
|
10620
|
-
* add a bright notification badge showing the number
|
|
10621
|
-
*/
|
|
10622
|
-
numActiveFilters?: number;
|
|
10623
|
-
/**
|
|
10624
|
-
* Applies a visual state to the button useful when using with a popover.
|
|
10625
|
-
*/
|
|
10626
|
-
isSelected?: boolean;
|
|
10627
|
-
/**
|
|
10628
|
-
* Should the button grow to fill its container, best used for dropdown buttons
|
|
10629
|
-
*/
|
|
10630
|
-
grow?: boolean;
|
|
10631
|
-
/**
|
|
10632
|
-
* Remove border after button, good for opposite filters
|
|
10633
|
-
*/
|
|
10634
|
-
withNext?: boolean;
|
|
10635
|
-
/**
|
|
10636
|
-
* Change color of the counter badge
|
|
10637
|
-
*/
|
|
10638
|
-
badgeColor?: BadgeNotificationColor;
|
|
10639
|
-
} & DistributiveOmit<EuiButtonEmptyProps, 'flush' | 'size'>;
|
|
10640
|
-
export const EuiFilterButton: FunctionComponent<EuiFilterButtonProps>;
|
|
10641
|
-
|
|
10642
|
-
}
|
|
10643
|
-
declare module '@elastic/eui/src/components/filter_group' {
|
|
10644
|
-
export type { EuiFilterGroupProps } from '@elastic/eui/src/components/filter_group/filter_group';
|
|
10645
|
-
export { EuiFilterGroup } from '@elastic/eui/src/components/filter_group/filter_group';
|
|
10646
|
-
export type { EuiFilterButtonProps } from '@elastic/eui/src/components/filter_group/filter_button';
|
|
10647
|
-
export { EuiFilterButton } from '@elastic/eui/src/components/filter_group/filter_button';
|
|
10648
|
-
export type { EuiFilterSelectItemProps, FilterChecked, } from '@elastic/eui/src/components/filter_group/filter_select_item';
|
|
10649
|
-
export { EuiFilterSelectItem } from '@elastic/eui/src/components/filter_group/filter_select_item';
|
|
10650
|
-
|
|
10651
10771
|
}
|
|
10652
10772
|
declare module '@elastic/eui/src/components/combo_box/combo_box' {
|
|
10653
10773
|
/**
|
|
@@ -10659,7 +10779,7 @@ declare module '@elastic/eui/src/components/combo_box/combo_box' {
|
|
|
10659
10779
|
import { EuiComboBoxInputProps } from '@elastic/eui/src/components/combo_box/combo_box_input/combo_box_input';
|
|
10660
10780
|
import { EuiComboBoxOptionsListProps } from '@elastic/eui/src/components/combo_box/combo_box_options_list/combo_box_options_list';
|
|
10661
10781
|
import { UpdatePositionHandler, OptionHandler, RefInstance, EuiComboBoxOptionOption, EuiComboBoxOptionsListPosition, EuiComboBoxSingleSelectionShape } from '@elastic/eui/src/components/combo_box/types';
|
|
10662
|
-
import {
|
|
10782
|
+
import { EuiFilterSelectItemClass } from '@elastic/eui/src/components/filter_group/filter_select_item';
|
|
10663
10783
|
import AutosizeInput from 'react-input-autosize';
|
|
10664
10784
|
import { CommonProps } from '@elastic/eui/src/components/common';
|
|
10665
10785
|
import { EuiFormControlLayoutProps } from '@elastic/eui/src/components/form'; type DrillProps<T> = Pick<EuiComboBoxOptionsListProps<T>, 'customOptionText' | 'onCreateOption' | 'options' | 'renderOption' | 'selectedOptions'>;
|
|
@@ -10799,7 +10919,7 @@ declare module '@elastic/eui/src/components/combo_box/combo_box' {
|
|
|
10799
10919
|
listRefCallback: RefCallback<HTMLDivElement>;
|
|
10800
10920
|
toggleButtonRefInstance: RefInstance<HTMLButtonElement | HTMLSpanElement>;
|
|
10801
10921
|
toggleButtonRefCallback: RefCallback<HTMLButtonElement | HTMLSpanElement>;
|
|
10802
|
-
optionsRefInstances: Array<RefInstance<
|
|
10922
|
+
optionsRefInstances: Array<RefInstance<EuiFilterSelectItemClass>>;
|
|
10803
10923
|
optionRefCallback: EuiComboBoxOptionsListProps<T>['optionRef'];
|
|
10804
10924
|
openList: () => void;
|
|
10805
10925
|
closeList: (event?: Event | undefined) => void;
|
|
@@ -15232,6 +15352,118 @@ declare module '@elastic/eui/src/components/expression' {
|
|
|
15232
15352
|
export type { EuiExpressionProps } from '@elastic/eui/src/components/expression/expression';
|
|
15233
15353
|
export { EuiExpression } from '@elastic/eui/src/components/expression/expression';
|
|
15234
15354
|
|
|
15355
|
+
}
|
|
15356
|
+
declare module '@elastic/eui/src/components/filter_group/filter_button.styles' {
|
|
15357
|
+
import { UseEuiTheme } from '@elastic/eui/src/services';
|
|
15358
|
+
export const euiFilterButtonDisplay: ({ euiTheme }: UseEuiTheme) => {
|
|
15359
|
+
flex: string;
|
|
15360
|
+
minInlineSize: string;
|
|
15361
|
+
};
|
|
15362
|
+
export const euiFilterButtonStyles: (euiThemeContext: UseEuiTheme) => {
|
|
15363
|
+
euiFilterButton: import("@emotion/utils").SerializedStyles;
|
|
15364
|
+
withNext: import("@emotion/utils").SerializedStyles;
|
|
15365
|
+
noGrow: import("@emotion/utils").SerializedStyles;
|
|
15366
|
+
hasNotification: import("@emotion/utils").SerializedStyles;
|
|
15367
|
+
hasActiveFilters: import("@emotion/utils").SerializedStyles;
|
|
15368
|
+
};
|
|
15369
|
+
export const euiFilterButtonChildStyles: ({ euiTheme }: UseEuiTheme) => {
|
|
15370
|
+
content: {
|
|
15371
|
+
euiFilterButton__content: import("@emotion/utils").SerializedStyles;
|
|
15372
|
+
hasIcon: import("@emotion/utils").SerializedStyles;
|
|
15373
|
+
};
|
|
15374
|
+
text: {
|
|
15375
|
+
euiFilterButton__text: import("@emotion/utils").SerializedStyles;
|
|
15376
|
+
hasNotification: import("@emotion/utils").SerializedStyles;
|
|
15377
|
+
euiFilterButton__textShift: import("@emotion/utils").SerializedStyles;
|
|
15378
|
+
};
|
|
15379
|
+
notification: {
|
|
15380
|
+
euiFilterButton__notification: import("@emotion/utils").SerializedStyles;
|
|
15381
|
+
disabled: import("@emotion/utils").SerializedStyles;
|
|
15382
|
+
};
|
|
15383
|
+
};
|
|
15384
|
+
|
|
15385
|
+
}
|
|
15386
|
+
declare module '@elastic/eui/src/components/filter_group/filter_group.styles' {
|
|
15387
|
+
import { UseEuiTheme } from '@elastic/eui/src/services';
|
|
15388
|
+
export const euiFilterGroupStyles: (euiThemeContext: UseEuiTheme) => {
|
|
15389
|
+
euiFilterGroup: import("@emotion/utils").SerializedStyles;
|
|
15390
|
+
fullWidth: import("@emotion/utils").SerializedStyles;
|
|
15391
|
+
uncompressed: import("@emotion/utils").SerializedStyles;
|
|
15392
|
+
compressed: import("@emotion/utils").SerializedStyles;
|
|
15393
|
+
/**
|
|
15394
|
+
* Not used in EuiFilterGroup directly, but used by EuiSearchBar and consumers
|
|
15395
|
+
* A fixed width is required because of the shift in widths that can be caused
|
|
15396
|
+
* by the loading animation that precedes the results.
|
|
15397
|
+
*/
|
|
15398
|
+
euiFilterGroup__popoverPanel: import("@emotion/utils").SerializedStyles;
|
|
15399
|
+
};
|
|
15400
|
+
|
|
15401
|
+
}
|
|
15402
|
+
declare module '@elastic/eui/src/components/filter_group/filter_group' {
|
|
15403
|
+
import { HTMLAttributes, ReactNode, FunctionComponent } from 'react';
|
|
15404
|
+
import { CommonProps } from '@elastic/eui/src/components/common';
|
|
15405
|
+
export type EuiFilterGroupProps = HTMLAttributes<HTMLDivElement> & CommonProps & {
|
|
15406
|
+
children?: ReactNode;
|
|
15407
|
+
/**
|
|
15408
|
+
* Expand the whole bar to fill its parent's width
|
|
15409
|
+
*/
|
|
15410
|
+
fullWidth?: boolean;
|
|
15411
|
+
/**
|
|
15412
|
+
* When `true`, creates a shorter height filter group matching that of `compressed` form controls
|
|
15413
|
+
*/
|
|
15414
|
+
compressed?: boolean;
|
|
15415
|
+
};
|
|
15416
|
+
export const EuiFilterGroup: FunctionComponent<EuiFilterGroupProps>;
|
|
15417
|
+
|
|
15418
|
+
}
|
|
15419
|
+
declare module '@elastic/eui/src/components/filter_group/filter_button' {
|
|
15420
|
+
import { FunctionComponent } from 'react';
|
|
15421
|
+
import { DistributiveOmit } from '@elastic/eui/src/components/common';
|
|
15422
|
+
import { BadgeNotificationColor } from '@elastic/eui/src/components/badge/notification_badge/badge_notification';
|
|
15423
|
+
import { EuiButtonEmptyProps } from '@elastic/eui/src/components/button/button_empty';
|
|
15424
|
+
export type EuiFilterButtonProps = {
|
|
15425
|
+
/**
|
|
15426
|
+
* Bolds the button if true
|
|
15427
|
+
*/
|
|
15428
|
+
hasActiveFilters?: boolean;
|
|
15429
|
+
/**
|
|
15430
|
+
* Pass the total number of filters available and it will
|
|
15431
|
+
* add a subdued notification badge showing the number
|
|
15432
|
+
*/
|
|
15433
|
+
numFilters?: number;
|
|
15434
|
+
/**
|
|
15435
|
+
* Pass the number of selected filters and it will
|
|
15436
|
+
* add a bright notification badge showing the number
|
|
15437
|
+
*/
|
|
15438
|
+
numActiveFilters?: number;
|
|
15439
|
+
/**
|
|
15440
|
+
* Applies a visual state to the button useful when using with a popover.
|
|
15441
|
+
*/
|
|
15442
|
+
isSelected?: boolean;
|
|
15443
|
+
/**
|
|
15444
|
+
* Should the button grow to fill its container, best used for dropdown buttons
|
|
15445
|
+
*/
|
|
15446
|
+
grow?: boolean;
|
|
15447
|
+
/**
|
|
15448
|
+
* Remove border after button, good for opposite filters
|
|
15449
|
+
*/
|
|
15450
|
+
withNext?: boolean;
|
|
15451
|
+
/**
|
|
15452
|
+
* Change color of the counter badge
|
|
15453
|
+
*/
|
|
15454
|
+
badgeColor?: BadgeNotificationColor;
|
|
15455
|
+
} & DistributiveOmit<EuiButtonEmptyProps, 'flush' | 'size'>;
|
|
15456
|
+
export const EuiFilterButton: FunctionComponent<EuiFilterButtonProps>;
|
|
15457
|
+
|
|
15458
|
+
}
|
|
15459
|
+
declare module '@elastic/eui/src/components/filter_group' {
|
|
15460
|
+
export type { EuiFilterGroupProps } from '@elastic/eui/src/components/filter_group/filter_group';
|
|
15461
|
+
export { EuiFilterGroup } from '@elastic/eui/src/components/filter_group/filter_group';
|
|
15462
|
+
export type { EuiFilterButtonProps } from '@elastic/eui/src/components/filter_group/filter_button';
|
|
15463
|
+
export { EuiFilterButton } from '@elastic/eui/src/components/filter_group/filter_button';
|
|
15464
|
+
export type { EuiFilterSelectItemProps, FilterChecked, } from '@elastic/eui/src/components/filter_group/filter_select_item';
|
|
15465
|
+
export { EuiFilterSelectItem } from '@elastic/eui/src/components/filter_group/filter_select_item';
|
|
15466
|
+
|
|
15235
15467
|
}
|
|
15236
15468
|
declare module '@elastic/eui/src/components/facet/facet_button.styles' {
|
|
15237
15469
|
import { UseEuiTheme } from '@elastic/eui/src/services';
|
|
@@ -21897,6 +22129,7 @@ declare module '@elastic/eui/src/components' {
|
|
|
21897
22129
|
export * from '@elastic/eui/src/components/card';
|
|
21898
22130
|
export * from '@elastic/eui/src/components/code';
|
|
21899
22131
|
export * from '@elastic/eui/src/components/collapsible_nav';
|
|
22132
|
+
export * from '@elastic/eui/src/components/collapsible_nav_beta';
|
|
21900
22133
|
export * from '@elastic/eui/src/components/color_picker';
|
|
21901
22134
|
export * from '@elastic/eui/src/components/combo_box';
|
|
21902
22135
|
export * from '@elastic/eui/src/components/comment_list';
|