@elastic/eui 102.0.0 → 102.1.0-snapshot.1746441787383
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_borealis_dark.json +1 -1
- package/es/components/accessibility/skip_link/skip_link.js +7 -0
- package/es/components/badge/color_utils.js +1 -3
- package/es/components/badge/notification_badge/badge_notification.styles.js +6 -1
- package/es/components/breadcrumbs/_breadcrumb_content.styles.js +6 -3
- package/es/components/button/button.js +7 -0
- package/es/components/button/button_display/_button_display.js +1 -1
- package/es/components/button/button_display/_button_display.styles.js +11 -2
- package/es/components/button/button_display/_button_display_content.styles.js +6 -3
- package/es/components/button/button_empty/button_empty.js +7 -0
- package/es/components/button/button_empty/button_empty.styles.js +9 -12
- package/es/components/button/button_group/button_group.js +5 -0
- package/es/components/button/button_group/button_group.styles.js +5 -3
- package/es/components/button/button_group/button_group_button.js +19 -9
- package/es/components/button/button_group/button_group_button.styles.js +43 -19
- package/es/components/button/button_icon/button_icon.js +11 -2
- package/es/components/card/card.js +7 -0
- package/es/components/card/card_select/card_select.js +7 -0
- package/es/components/collapsible_nav_beta/_kibana_solution/collapsible_nav_kibana_solution.js +7 -0
- package/es/components/color_picker/color_picker.js +13 -8
- package/es/components/color_picker/hue.js +27 -6
- package/es/components/color_picker/hue.styles.js +3 -2
- package/es/components/color_picker/saturation.js +16 -11
- package/es/components/color_picker/saturation.styles.js +2 -1
- package/es/components/datagrid/body/cell/data_grid_cell.js +7 -0
- package/es/components/datagrid/body/cell/data_grid_cell_actions.js +2 -2
- package/es/components/datagrid/body/cell/data_grid_cell_actions.styles.js +1 -1
- package/es/components/datagrid/body/data_grid_body.js +7 -0
- package/es/components/datagrid/body/data_grid_body_custom.js +7 -0
- package/es/components/datagrid/body/data_grid_body_virtualized.js +7 -0
- package/es/components/datagrid/body/header/data_grid_header_cell.js +7 -0
- package/es/components/datagrid/controls/column_sorting.js +7 -0
- package/es/components/datagrid/controls/data_grid_toolbar_control.js +18 -1
- package/es/components/datagrid/utils/in_memory.js +7 -0
- package/es/components/date_picker/auto_refresh/auto_refresh.js +7 -0
- package/es/components/filter_group/filter_button.js +98 -24
- package/es/components/filter_group/filter_button.styles.js +51 -15
- package/es/components/filter_group/filter_group.styles.js +18 -6
- package/es/components/header/header_links/header_link.js +7 -0
- package/es/components/header/header_section/header_section_item_button.js +7 -0
- package/es/components/list_group/list_group.js +7 -0
- package/es/components/list_group/list_group_item.js +7 -0
- package/es/components/list_group/list_group_item_extra_action.js +7 -0
- package/es/components/list_group/pinnable_list_group/pinnable_list_group.js +7 -0
- package/es/components/pagination/pagination_button.js +7 -0
- package/es/components/search_bar/filters/field_value_selection_filter.js +1 -0
- package/es/components/search_bar/filters/field_value_toggle_filter.js +3 -1
- package/es/components/search_bar/filters/field_value_toggle_group_filter.js +3 -1
- package/es/components/search_bar/filters/is_filter.js +3 -1
- package/es/components/search_bar/search_bar.a11y.js +3 -3
- package/es/components/table/table_header_cell.js +30 -12
- package/es/components/tool_tip/tool_tip.js +4 -1
- package/es/global_styling/mixins/_button.js +108 -31
- package/es/global_styling/mixins/_color.js +9 -2
- package/es/services/theme/index.js +2 -1
- package/es/services/theme/provider.js +28 -2
- package/es/services/theme/theme_variant.js +22 -0
- package/es/test/index.d.ts +2 -1
- package/es/themes/amsterdam/global_styling/variables/_buttons.js +348 -147
- package/es/themes/amsterdam/global_styling/variables/_components.js +229 -224
- package/es/themes/amsterdam/theme.js +2 -1
- package/eui.d.ts +919 -701
- package/lib/components/accessibility/skip_link/skip_link.js +7 -0
- package/lib/components/badge/color_utils.js +1 -3
- package/lib/components/badge/notification_badge/badge_notification.styles.js +6 -1
- package/lib/components/breadcrumbs/_breadcrumb_content.styles.js +5 -2
- package/lib/components/button/button.js +7 -0
- package/lib/components/button/button_display/_button_display.js +1 -1
- package/lib/components/button/button_display/_button_display.styles.js +11 -2
- package/lib/components/button/button_display/_button_display_content.styles.js +6 -3
- package/lib/components/button/button_empty/button_empty.js +7 -0
- package/lib/components/button/button_empty/button_empty.styles.js +10 -11
- package/lib/components/button/button_group/button_group.js +5 -0
- package/lib/components/button/button_group/button_group.styles.js +5 -3
- package/lib/components/button/button_group/button_group_button.js +18 -8
- package/lib/components/button/button_group/button_group_button.styles.js +41 -17
- package/lib/components/button/button_icon/button_icon.js +10 -1
- package/lib/components/card/card.js +7 -0
- package/lib/components/card/card_select/card_select.js +7 -0
- package/lib/components/collapsible_nav_beta/_kibana_solution/collapsible_nav_kibana_solution.js +7 -0
- package/lib/components/color_picker/color_picker.js +13 -8
- package/lib/components/color_picker/hue.js +26 -5
- package/lib/components/color_picker/hue.styles.js +3 -2
- package/lib/components/color_picker/saturation.js +16 -11
- package/lib/components/color_picker/saturation.styles.js +2 -1
- package/lib/components/datagrid/body/cell/data_grid_cell.js +7 -0
- package/lib/components/datagrid/body/cell/data_grid_cell_actions.js +2 -2
- package/lib/components/datagrid/body/cell/data_grid_cell_actions.styles.js +1 -1
- package/lib/components/datagrid/body/data_grid_body.js +7 -0
- package/lib/components/datagrid/body/data_grid_body_custom.js +7 -0
- package/lib/components/datagrid/body/data_grid_body_virtualized.js +7 -0
- package/lib/components/datagrid/body/header/data_grid_header_cell.js +7 -0
- package/lib/components/datagrid/controls/column_sorting.js +7 -0
- package/lib/components/datagrid/controls/data_grid_toolbar_control.js +18 -1
- package/lib/components/datagrid/utils/in_memory.js +7 -0
- package/lib/components/date_picker/auto_refresh/auto_refresh.js +7 -0
- package/lib/components/filter_group/filter_button.js +96 -22
- package/lib/components/filter_group/filter_button.styles.js +51 -15
- package/lib/components/filter_group/filter_group.styles.js +18 -6
- package/lib/components/header/header_links/header_link.js +7 -0
- package/lib/components/header/header_section/header_section_item_button.js +7 -0
- package/lib/components/list_group/list_group.js +7 -0
- package/lib/components/list_group/list_group_item.js +7 -0
- package/lib/components/list_group/list_group_item_extra_action.js +7 -0
- package/lib/components/list_group/pinnable_list_group/pinnable_list_group.js +7 -0
- package/lib/components/pagination/pagination_button.js +7 -0
- package/lib/components/search_bar/filters/field_value_selection_filter.js +1 -0
- package/lib/components/search_bar/filters/field_value_toggle_filter.js +3 -1
- package/lib/components/search_bar/filters/field_value_toggle_group_filter.js +3 -1
- package/lib/components/search_bar/filters/is_filter.js +3 -1
- package/lib/components/search_bar/search_bar.a11y.js +3 -3
- package/lib/components/table/table_header_cell.js +28 -10
- package/lib/components/tool_tip/tool_tip.js +4 -1
- package/lib/global_styling/mixins/_button.js +106 -30
- package/lib/global_styling/mixins/_color.js +11 -4
- package/lib/services/theme/index.js +41 -1
- package/lib/services/theme/provider.js +28 -2
- package/lib/services/theme/theme_variant.js +28 -0
- package/lib/test/index.d.ts +2 -1
- package/lib/themes/amsterdam/global_styling/variables/_buttons.js +348 -147
- package/lib/themes/amsterdam/global_styling/variables/_components.js +229 -224
- package/lib/themes/amsterdam/theme.js +2 -1
- package/optimize/es/components/badge/color_utils.js +1 -3
- package/optimize/es/components/badge/notification_badge/badge_notification.styles.js +6 -1
- package/optimize/es/components/breadcrumbs/_breadcrumb_content.styles.js +6 -3
- package/optimize/es/components/button/button_display/_button_display.js +1 -1
- package/optimize/es/components/button/button_display/_button_display.styles.js +11 -2
- package/optimize/es/components/button/button_display/_button_display_content.styles.js +6 -3
- package/optimize/es/components/button/button_empty/button_empty.styles.js +9 -12
- package/optimize/es/components/button/button_group/button_group.styles.js +5 -3
- package/optimize/es/components/button/button_group/button_group_button.js +12 -8
- package/optimize/es/components/button/button_group/button_group_button.styles.js +43 -19
- package/optimize/es/components/button/button_icon/button_icon.js +4 -2
- package/optimize/es/components/color_picker/color_picker.js +13 -8
- package/optimize/es/components/color_picker/hue.js +22 -6
- package/optimize/es/components/color_picker/hue.styles.js +3 -2
- package/optimize/es/components/color_picker/saturation.js +16 -11
- package/optimize/es/components/color_picker/saturation.styles.js +2 -1
- package/optimize/es/components/datagrid/body/cell/data_grid_cell_actions.js +2 -2
- package/optimize/es/components/datagrid/body/cell/data_grid_cell_actions.styles.js +1 -1
- package/optimize/es/components/datagrid/controls/data_grid_toolbar_control.js +11 -1
- package/optimize/es/components/filter_group/filter_button.js +78 -21
- package/optimize/es/components/filter_group/filter_button.styles.js +51 -15
- package/optimize/es/components/filter_group/filter_group.styles.js +18 -6
- package/optimize/es/components/search_bar/filters/field_value_selection_filter.js +1 -0
- package/optimize/es/components/search_bar/filters/field_value_toggle_filter.js +3 -1
- package/optimize/es/components/search_bar/filters/field_value_toggle_group_filter.js +3 -1
- package/optimize/es/components/search_bar/filters/is_filter.js +3 -1
- package/optimize/es/components/search_bar/search_bar.a11y.js +3 -3
- package/optimize/es/components/table/table_header_cell.js +26 -11
- package/optimize/es/components/tool_tip/tool_tip.js +4 -1
- package/optimize/es/global_styling/mixins/_button.js +103 -31
- package/optimize/es/global_styling/mixins/_color.js +4 -2
- package/optimize/es/services/theme/index.js +2 -1
- package/optimize/es/services/theme/provider.js +28 -2
- package/optimize/es/services/theme/theme_variant.js +22 -0
- package/optimize/es/test/index.d.ts +2 -1
- package/optimize/es/themes/amsterdam/global_styling/variables/_buttons.js +348 -147
- package/optimize/es/themes/amsterdam/global_styling/variables/_components.js +229 -224
- package/optimize/es/themes/amsterdam/theme.js +2 -1
- package/optimize/lib/components/badge/color_utils.js +1 -3
- package/optimize/lib/components/badge/notification_badge/badge_notification.styles.js +6 -1
- package/optimize/lib/components/breadcrumbs/_breadcrumb_content.styles.js +5 -2
- package/optimize/lib/components/button/button_display/_button_display.js +1 -1
- package/optimize/lib/components/button/button_display/_button_display.styles.js +11 -2
- package/optimize/lib/components/button/button_display/_button_display_content.styles.js +6 -3
- package/optimize/lib/components/button/button_empty/button_empty.styles.js +10 -11
- package/optimize/lib/components/button/button_group/button_group.styles.js +5 -3
- package/optimize/lib/components/button/button_group/button_group_button.js +11 -7
- package/optimize/lib/components/button/button_group/button_group_button.styles.js +41 -17
- package/optimize/lib/components/button/button_icon/button_icon.js +3 -1
- package/optimize/lib/components/color_picker/color_picker.js +13 -8
- package/optimize/lib/components/color_picker/hue.js +21 -5
- package/optimize/lib/components/color_picker/hue.styles.js +3 -2
- package/optimize/lib/components/color_picker/saturation.js +16 -11
- package/optimize/lib/components/color_picker/saturation.styles.js +2 -1
- package/optimize/lib/components/datagrid/body/cell/data_grid_cell_actions.js +2 -2
- package/optimize/lib/components/datagrid/body/cell/data_grid_cell_actions.styles.js +1 -1
- package/optimize/lib/components/datagrid/controls/data_grid_toolbar_control.js +11 -1
- package/optimize/lib/components/filter_group/filter_button.js +76 -19
- package/optimize/lib/components/filter_group/filter_button.styles.js +51 -15
- package/optimize/lib/components/filter_group/filter_group.styles.js +18 -6
- package/optimize/lib/components/search_bar/filters/field_value_selection_filter.js +1 -0
- package/optimize/lib/components/search_bar/filters/field_value_toggle_filter.js +3 -1
- package/optimize/lib/components/search_bar/filters/field_value_toggle_group_filter.js +3 -1
- package/optimize/lib/components/search_bar/filters/is_filter.js +3 -1
- package/optimize/lib/components/search_bar/search_bar.a11y.js +3 -3
- package/optimize/lib/components/table/table_header_cell.js +25 -11
- package/optimize/lib/components/tool_tip/tool_tip.js +4 -1
- package/optimize/lib/global_styling/mixins/_button.js +101 -30
- package/optimize/lib/global_styling/mixins/_color.js +4 -2
- package/optimize/lib/services/theme/index.js +41 -1
- package/optimize/lib/services/theme/provider.js +28 -2
- package/optimize/lib/services/theme/theme_variant.js +28 -0
- package/optimize/lib/test/index.d.ts +2 -1
- package/optimize/lib/themes/amsterdam/global_styling/variables/_buttons.js +348 -147
- package/optimize/lib/themes/amsterdam/global_styling/variables/_components.js +229 -224
- package/optimize/lib/themes/amsterdam/theme.js +2 -1
- package/package.json +7 -6
- package/test-env/components/accessibility/skip_link/skip_link.js +7 -0
- package/test-env/components/badge/color_utils.js +1 -3
- package/test-env/components/badge/notification_badge/badge_notification.styles.js +6 -1
- package/test-env/components/breadcrumbs/_breadcrumb_content.styles.js +5 -2
- package/test-env/components/button/button.js +7 -0
- package/test-env/components/button/button_display/_button_display.js +1 -1
- package/test-env/components/button/button_display/_button_display.styles.js +11 -2
- package/test-env/components/button/button_display/_button_display_content.styles.js +6 -3
- package/test-env/components/button/button_empty/button_empty.js +7 -0
- package/test-env/components/button/button_empty/button_empty.styles.js +10 -11
- package/test-env/components/button/button_group/button_group.js +5 -0
- package/test-env/components/button/button_group/button_group.styles.js +5 -3
- package/test-env/components/button/button_group/button_group_button.js +18 -8
- package/test-env/components/button/button_group/button_group_button.styles.js +41 -17
- package/test-env/components/button/button_icon/button_icon.js +10 -1
- package/test-env/components/card/card.js +7 -0
- package/test-env/components/card/card_select/card_select.js +7 -0
- package/test-env/components/collapsible_nav_beta/_kibana_solution/collapsible_nav_kibana_solution.js +7 -0
- package/test-env/components/color_picker/color_picker.js +13 -8
- package/test-env/components/color_picker/hue.js +21 -5
- package/test-env/components/color_picker/hue.styles.js +3 -2
- package/test-env/components/color_picker/saturation.js +16 -11
- package/test-env/components/color_picker/saturation.styles.js +2 -1
- package/test-env/components/datagrid/body/cell/data_grid_cell.js +7 -0
- package/test-env/components/datagrid/body/cell/data_grid_cell_actions.js +2 -2
- package/test-env/components/datagrid/body/cell/data_grid_cell_actions.styles.js +1 -1
- package/test-env/components/datagrid/body/data_grid_body.js +7 -0
- package/test-env/components/datagrid/body/data_grid_body_custom.js +7 -0
- package/test-env/components/datagrid/body/data_grid_body_virtualized.js +7 -0
- package/test-env/components/datagrid/body/header/data_grid_header_cell.js +7 -0
- package/test-env/components/datagrid/controls/column_sorting.js +7 -0
- package/test-env/components/datagrid/controls/data_grid_toolbar_control.js +18 -1
- package/test-env/components/datagrid/utils/in_memory.js +7 -0
- package/test-env/components/date_picker/auto_refresh/auto_refresh.js +7 -0
- package/test-env/components/filter_group/filter_button.js +96 -22
- package/test-env/components/filter_group/filter_button.styles.js +51 -15
- package/test-env/components/filter_group/filter_group.styles.js +18 -6
- package/test-env/components/header/header_links/header_link.js +7 -0
- package/test-env/components/header/header_section/header_section_item_button.js +7 -0
- package/test-env/components/list_group/list_group.js +7 -0
- package/test-env/components/list_group/list_group_item.js +7 -0
- package/test-env/components/list_group/list_group_item_extra_action.js +7 -0
- package/test-env/components/list_group/pinnable_list_group/pinnable_list_group.js +7 -0
- package/test-env/components/pagination/pagination_button.js +7 -0
- package/test-env/components/search_bar/filters/field_value_selection_filter.js +1 -0
- package/test-env/components/search_bar/filters/field_value_toggle_filter.js +3 -1
- package/test-env/components/search_bar/filters/field_value_toggle_group_filter.js +3 -1
- package/test-env/components/search_bar/filters/is_filter.js +3 -1
- package/test-env/components/search_bar/search_bar.a11y.js +3 -3
- package/test-env/components/table/table_header_cell.js +26 -12
- package/test-env/components/tool_tip/tool_tip.js +4 -1
- package/test-env/global_styling/mixins/_button.js +101 -30
- package/test-env/global_styling/mixins/_color.js +4 -2
- package/test-env/services/theme/index.js +41 -1
- package/test-env/services/theme/provider.js +28 -2
- package/test-env/services/theme/theme_variant.js +28 -0
- package/test-env/themes/amsterdam/global_styling/variables/_buttons.js +348 -147
- package/test-env/themes/amsterdam/global_styling/variables/_components.js +229 -224
- package/test-env/themes/amsterdam/theme.js +2 -1
package/eui.d.ts
CHANGED
|
@@ -27,7 +27,7 @@ declare module '@elastic/eui/src/services/keys' {
|
|
|
27
27
|
ALT = "Alt",
|
|
28
28
|
SHIFT = "Shift",
|
|
29
29
|
CTRL = "Control",
|
|
30
|
-
META = "Meta",
|
|
30
|
+
META = "Meta",// Windows, Command, Option
|
|
31
31
|
ARROW_DOWN = "ArrowDown",
|
|
32
32
|
ARROW_UP = "ArrowUp",
|
|
33
33
|
ARROW_LEFT = "ArrowLeft",
|
|
@@ -116,9 +116,11 @@ declare module '@elastic/eui/src/components/common' {
|
|
|
116
116
|
*/
|
|
117
117
|
export function keysOf<T extends object, K extends keyof T>(obj: T): K[];
|
|
118
118
|
export type PropsOf<C> = C extends FunctionComponent<infer SFCProps> ? SFCProps : C extends FunctionComponent<infer FunctionProps> ? FunctionProps : C extends Component<infer ComponentProps> ? ComponentProps : never;
|
|
119
|
-
export type PropsOfElement<C extends keyof JSX.IntrinsicElements | JSXElementConstructor<any>> = JSX.LibraryManagedAttributes<C, ComponentProps<C>>;
|
|
119
|
+
export type PropsOfElement<C extends keyof JSX.IntrinsicElements | JSXElementConstructor<any>> = JSX.LibraryManagedAttributes<C, ComponentProps<C>>;
|
|
120
|
+
type ExtractDefaultProps<T> = T extends {
|
|
120
121
|
defaultProps: infer D;
|
|
121
|
-
} ? D : never;
|
|
122
|
+
} ? D : never;
|
|
123
|
+
type ExtractProps<C extends new (...args: any) => any, IT = InstanceType<C>> = IT extends Component<infer P> ? P : never;
|
|
122
124
|
/**
|
|
123
125
|
* Because of how TypeScript's LibraryManagedAttributes is designed to handle defaultProps (https://www.typescriptlang.org/docs/handbook/release-notes/typescript-3-0.html#support-for-defaultprops-in-jsx)
|
|
124
126
|
* we can't directly export the props definition as the defaulted values are not made optional,
|
|
@@ -128,9 +130,11 @@ declare module '@elastic/eui/src/components/common' {
|
|
|
128
130
|
*/
|
|
129
131
|
export type ApplyClassComponentDefaults<C extends new (...args: any) => any, D = ExtractDefaultProps<C>, P = ExtractProps<C>> = Omit<P, keyof D> & {
|
|
130
132
|
[K in keyof D]?: K extends keyof P ? P[K] : never;
|
|
131
|
-
};
|
|
133
|
+
};
|
|
134
|
+
type UnionKeys<T> = T extends any ? keyof T : never;
|
|
132
135
|
export type DistributivePick<T, K extends UnionKeys<T>> = T extends any ? Pick<T, Extract<keyof T, K>> : never;
|
|
133
|
-
export type DistributiveOmit<T, K extends UnionKeys<T>> = T extends any ? Omit<T, Extract<keyof T, K>> : never;
|
|
136
|
+
export type DistributiveOmit<T, K extends UnionKeys<T>> = T extends any ? Omit<T, Extract<keyof T, K>> : never;
|
|
137
|
+
type RecursiveDistributiveOmit<T, K extends PropertyKey> = T extends any ? T extends object ? RecursiveOmit<T, K> : T : never;
|
|
134
138
|
export type RecursiveOmit<T, K extends PropertyKey> = Omit<{
|
|
135
139
|
[P in keyof T]: RecursiveDistributiveOmit<T[P], K>;
|
|
136
140
|
}, K>;
|
|
@@ -188,19 +192,20 @@ declare module '@elastic/eui/src/services/theme/context' {
|
|
|
188
192
|
colorMode: "LIGHT";
|
|
189
193
|
highContrastMode: false;
|
|
190
194
|
};
|
|
191
|
-
export const EuiSystemContext: import("react").Context<EuiThemeSystem
|
|
195
|
+
export const EuiSystemContext: import("react").Context<EuiThemeSystem>;
|
|
192
196
|
export const EuiModificationsContext: import("react").Context<import("@elastic/eui-theme-common").RecursivePartial<import("@elastic/eui-theme-common").EuiThemeShapeBase & {
|
|
193
|
-
overrides?: import("@elastic/eui-theme-common")._EuiThemeOverrides
|
|
197
|
+
overrides?: import("@elastic/eui-theme-common")._EuiThemeOverrides;
|
|
194
198
|
}>>;
|
|
195
199
|
export const EuiColorModeContext: import("react").Context<EuiThemeColorModeStandard>;
|
|
196
200
|
export const EuiHighContrastModeContext: import("react").Context<EuiThemeHighContrastMode>;
|
|
197
201
|
export const defaultComputedTheme: EuiThemeComputed<import("@elastic/eui-theme-common/lib/cjs/services/theme/types").EuiThemeShape>;
|
|
198
|
-
export const EuiThemeContext: import("react").Context<EuiThemeComputed
|
|
202
|
+
export const EuiThemeContext: import("react").Context<EuiThemeComputed>;
|
|
199
203
|
export const EuiNestedThemeContext: import("react").Context<EuiThemeNested>;
|
|
200
204
|
|
|
201
205
|
}
|
|
202
206
|
declare module '@elastic/eui/src/services/theme/warning' {
|
|
203
|
-
|
|
207
|
+
type LEVELS = 'log' | 'warn' | 'error';
|
|
208
|
+
type ProviderCallback = (message: string | Error) => void; let providerWarning: LEVELS | ProviderCallback | undefined;
|
|
204
209
|
export const setEuiDevProviderWarning: (warningType: typeof providerWarning) => LEVELS | ProviderCallback | undefined;
|
|
205
210
|
export const getEuiDevProviderWarning: () => LEVELS | ProviderCallback | undefined;
|
|
206
211
|
export const emitEuiProviderWarning: (providerMessage: string) => void;
|
|
@@ -258,7 +263,8 @@ declare module '@elastic/eui/src/services/breakpoint/_sorting' {
|
|
|
258
263
|
}
|
|
259
264
|
declare module '@elastic/eui/src/services/breakpoint/current_breakpoint' {
|
|
260
265
|
import React, { FunctionComponent, PropsWithChildren } from 'react';
|
|
261
|
-
import { _EuiThemeBreakpoint } from '@elastic/eui/src/global_styling/variables/breakpoint';
|
|
266
|
+
import { _EuiThemeBreakpoint } from '@elastic/eui/src/global_styling/variables/breakpoint';
|
|
267
|
+
type CurrentEuiBreakpoint = _EuiThemeBreakpoint | undefined;
|
|
262
268
|
export const CurrentEuiBreakpointContext: React.Context<CurrentEuiBreakpoint>;
|
|
263
269
|
/**
|
|
264
270
|
* Returns the current breakpoint based on window width.
|
|
@@ -287,7 +293,7 @@ declare module '@elastic/eui/src/services/emotion/clone_element' {
|
|
|
287
293
|
* `css` prop - as a result, we need to use `jsx()` to manually clone the element
|
|
288
294
|
* See https://github.com/emotion-js/emotion/issues/1404
|
|
289
295
|
*/
|
|
290
|
-
export const cloneElementWithCss: (element: any, props: any, cssOrder?:
|
|
296
|
+
export const cloneElementWithCss: (element: any, props: any, cssOrder?: "before" | "after") => React.ReactElement;
|
|
291
297
|
|
|
292
298
|
}
|
|
293
299
|
declare module '@elastic/eui/src/services/emotion/prefixer' {
|
|
@@ -316,9 +322,9 @@ declare module '@elastic/eui/src/services/emotion/css' {
|
|
|
316
322
|
* and is not yet intended to be a public export
|
|
317
323
|
*/
|
|
318
324
|
export const css: {
|
|
319
|
-
(template: TemplateStringsArray, ...args: import("@emotion/serialize").CSSInterpolation
|
|
320
|
-
(...args: import("@emotion/serialize").CSSInterpolation
|
|
321
|
-
}, cx: (...classNames: import("@emotion/css/create-instance").ClassNamesArg
|
|
325
|
+
(template: TemplateStringsArray, ...args: Array<import("@emotion/serialize").CSSInterpolation>): string;
|
|
326
|
+
(...args: Array<import("@emotion/serialize").CSSInterpolation>): string;
|
|
327
|
+
}, cx: (...classNames: Array<import("@emotion/css/create-instance").ClassNamesArg>) => string, cache: import("@emotion/css/create-instance").EmotionCache;
|
|
322
328
|
|
|
323
329
|
}
|
|
324
330
|
declare module '@elastic/eui/src/services/theme/emotion' {
|
|
@@ -344,7 +350,8 @@ declare module '@elastic/eui/src/services/hooks/useDependentState' {
|
|
|
344
350
|
|
|
345
351
|
}
|
|
346
352
|
declare module '@elastic/eui/src/services/hooks/useCombinedRefs' {
|
|
347
|
-
import { MutableRefObject, Ref } from 'react';
|
|
353
|
+
import { MutableRefObject, Ref } from 'react';
|
|
354
|
+
type Refs<T> = Array<Ref<T> | MutableRefObject<T | undefined> | undefined>;
|
|
348
355
|
export const useCombinedRefs: <T>(refs: Refs<T>) => (node: T) => void;
|
|
349
356
|
/**
|
|
350
357
|
* Non-hook util for setting multiple refs/ref types.
|
|
@@ -373,7 +380,7 @@ declare module '@elastic/eui/src/services/hooks/useDeepEqual' {
|
|
|
373
380
|
* has no control over and may not be correctly memoized (i.e., will create a new
|
|
374
381
|
* reference on every rerender unless passed through this hook).
|
|
375
382
|
*/
|
|
376
|
-
export const useDeepEqual: <T =
|
|
383
|
+
export const useDeepEqual: <T = Record<string, any> | any[] | undefined>(object: T) => T;
|
|
377
384
|
|
|
378
385
|
}
|
|
379
386
|
declare module '@elastic/eui/src/services/hooks/useMouseMove' {
|
|
@@ -400,7 +407,9 @@ declare module '@elastic/eui/src/services/hooks' {
|
|
|
400
407
|
}
|
|
401
408
|
declare module '@elastic/eui/src/services/theme/style_memoization' {
|
|
402
409
|
import React, { FunctionComponent, PropsWithChildren } from 'react';
|
|
403
|
-
import { UseEuiTheme } from '@elastic/eui/src/services/theme/hooks';
|
|
410
|
+
import { UseEuiTheme } from '@elastic/eui/src/services/theme/hooks';
|
|
411
|
+
type StylesMap = Record<string, any>;
|
|
412
|
+
type MemoizedStylesMap = WeakMap<Function, StylesMap>;
|
|
404
413
|
export const EuiThemeMemoizedStylesContext: React.Context<MemoizedStylesMap>;
|
|
405
414
|
export const EuiThemeMemoizedStylesProvider: FunctionComponent<PropsWithChildren>;
|
|
406
415
|
/**
|
|
@@ -434,7 +443,7 @@ declare module '@elastic/eui/src/services/theme/high_contrast_overrides' {
|
|
|
434
443
|
system: EuiThemeSystem;
|
|
435
444
|
modifications: EuiThemeModifications;
|
|
436
445
|
}) => import("@elastic/eui-theme-common").RecursivePartial<import("@elastic/eui-theme-common").EuiThemeShapeBase & {
|
|
437
|
-
overrides?: import("@elastic/eui-theme-common")._EuiThemeOverrides
|
|
446
|
+
overrides?: import("@elastic/eui-theme-common")._EuiThemeOverrides;
|
|
438
447
|
}> | {
|
|
439
448
|
colors: {
|
|
440
449
|
LIGHT: {
|
|
@@ -713,8 +722,8 @@ declare module '@elastic/eui/src/services/color/visualization_colors' {
|
|
|
713
722
|
}
|
|
714
723
|
declare module '@elastic/eui/src/services/color/eui_palettes_hooks' {
|
|
715
724
|
import { EuiPalette, EuiPaletteColorBlindProps } from '@elastic/eui/src/services/color/eui_palettes';
|
|
716
|
-
export const useEuiPaletteColorBlind: (args?: EuiPaletteColorBlindProps
|
|
717
|
-
export const useEuiPaletteColorBlindBehindText: (args?: EuiPaletteColorBlindProps
|
|
725
|
+
export const useEuiPaletteColorBlind: (args?: EuiPaletteColorBlindProps) => EuiPalette;
|
|
726
|
+
export const useEuiPaletteColorBlindBehindText: (args?: EuiPaletteColorBlindProps) => EuiPalette;
|
|
718
727
|
export const useEuiPaletteForStatus: (steps: number) => EuiPalette;
|
|
719
728
|
export const useEuiPaletteForTemperature: (steps: number) => EuiPalette;
|
|
720
729
|
export const useEuiPaletteComplementary: (steps: number) => EuiPalette;
|
|
@@ -724,47 +733,6 @@ declare module '@elastic/eui/src/services/color/eui_palettes_hooks' {
|
|
|
724
733
|
export const useEuiPaletteWarm: (steps: number) => EuiPalette;
|
|
725
734
|
export const useEuiPaletteGray: (steps: number) => EuiPalette;
|
|
726
735
|
|
|
727
|
-
}
|
|
728
|
-
declare module '@elastic/eui/src/global_styling/mixins/_color' {
|
|
729
|
-
import { SerializedStyles } from '@emotion/react';
|
|
730
|
-
import { UseEuiTheme } from '@elastic/eui/src/services';
|
|
731
|
-
export const BACKGROUND_COLORS: readonly ["transparent", "plain", "subdued", "highlighted", "accent", "accentSecondary", "primary", "neutral", "success", "warning", "risk", "danger"];
|
|
732
|
-
export type _EuiBackgroundColor = (typeof BACKGROUND_COLORS)[number];
|
|
733
|
-
export interface _EuiBackgroundColorOptions {
|
|
734
|
-
/**
|
|
735
|
-
* Use `opaque` for containers of unknown content.
|
|
736
|
-
* Use `transparent` for interactive states like hover and focus.
|
|
737
|
-
*/
|
|
738
|
-
method?: 'opaque' | 'transparent';
|
|
739
|
-
}
|
|
740
|
-
/**
|
|
741
|
-
* @deprecated - use background tokens directly
|
|
742
|
-
* @returns A single background color with optional alpha transparency
|
|
743
|
-
*/
|
|
744
|
-
export const euiBackgroundColor: ({ euiTheme }: UseEuiTheme, color: _EuiBackgroundColor, { method }?: _EuiBackgroundColorOptions) => string;
|
|
745
|
-
/**
|
|
746
|
-
* @deprecated
|
|
747
|
-
*/
|
|
748
|
-
export const useEuiBackgroundColor: (color: _EuiBackgroundColor, { method }?: _EuiBackgroundColorOptions) => string;
|
|
749
|
-
/**
|
|
750
|
-
* Hook to retrieve background style for a background color variant
|
|
751
|
-
* @returns An object map of color keys to CSS,
|
|
752
|
-
* e.g. { danger: css``, success: css``, ... }
|
|
753
|
-
*/
|
|
754
|
-
export const useEuiBackgroundColorCSS: () => Record<"primary" | "accent" | "accentSecondary" | "success" | "warning" | "danger" | "neutral" | "risk" | "transparent" | "plain" | "subdued" | "highlighted", SerializedStyles>;
|
|
755
|
-
/**
|
|
756
|
-
* Border colors
|
|
757
|
-
* @deprecated - use border tokens directly or use
|
|
758
|
-
* `useEuiBorderColorCSS()` for composed styles
|
|
759
|
-
*/
|
|
760
|
-
export const euiBorderColor: ({ euiTheme }: UseEuiTheme, color: _EuiBackgroundColor) => string;
|
|
761
|
-
/**
|
|
762
|
-
* Hook to retrieve border style for a border variant
|
|
763
|
-
* @returns An object map of color keys to CSS,
|
|
764
|
-
* e.g. { danger: css``, success: css``, ... }
|
|
765
|
-
*/
|
|
766
|
-
export const useEuiBorderColorCSS: () => Record<"primary" | "accent" | "accentSecondary" | "success" | "warning" | "danger" | "neutral" | "risk" | "transparent" | "plain" | "subdued" | "highlighted", SerializedStyles>;
|
|
767
|
-
|
|
768
736
|
}
|
|
769
737
|
declare module '@elastic/eui/src/global_styling/functions/high_contrast' {
|
|
770
738
|
import type { UseEuiTheme } from '@elastic/eui/src/services';
|
|
@@ -1031,7 +999,7 @@ declare module '@elastic/eui/src/global_styling/functions/typography' {
|
|
|
1031
999
|
* this mixin will ensure that the sizing is dependent on the boldest
|
|
1032
1000
|
* weight so it doesn't shift sibling content.
|
|
1033
1001
|
*/
|
|
1034
|
-
export const euiTextShift: (fontWeight: keyof _EuiThemeFontWeights | undefined, attribute: string | undefined, euiTheme: UseEuiTheme[
|
|
1002
|
+
export const euiTextShift: (fontWeight: keyof _EuiThemeFontWeights | undefined, attribute: string | undefined, euiTheme: UseEuiTheme["euiTheme"]) => string;
|
|
1035
1003
|
|
|
1036
1004
|
}
|
|
1037
1005
|
declare module '@elastic/eui/src/global_styling/functions' {
|
|
@@ -1042,6 +1010,142 @@ declare module '@elastic/eui/src/global_styling/functions' {
|
|
|
1042
1010
|
export * from '@elastic/eui/src/global_styling/functions/size';
|
|
1043
1011
|
export * from '@elastic/eui/src/global_styling/functions/typography';
|
|
1044
1012
|
|
|
1013
|
+
}
|
|
1014
|
+
declare module '@elastic/eui/src/global_styling/mixins/_button' {
|
|
1015
|
+
import { type SerializedStyles } from '@emotion/react';
|
|
1016
|
+
import { UseEuiTheme } from '@elastic/eui/src/services';
|
|
1017
|
+
/** Tentative usage; these exist only to be used as button directly when used within other components */
|
|
1018
|
+
export const SEVERITY_COLORS: readonly ["neutral", "risk"];
|
|
1019
|
+
export const BUTTON_COLORS: readonly ["text", "accent", "accentSecondary", "primary", "success", "warning", "danger"];
|
|
1020
|
+
export const EXTENDED_BUTTON_COLORS: readonly ["text", "accent", "accentSecondary", "primary", "success", "warning", "danger", "neutral", "risk"];
|
|
1021
|
+
export type _EuiButtonColor = (typeof BUTTON_COLORS)[number];
|
|
1022
|
+
export type _EuiExtendedButtonColor = (typeof EXTENDED_BUTTON_COLORS)[number];
|
|
1023
|
+
export const BUTTON_DISPLAYS: readonly ["base", "fill", "empty"];
|
|
1024
|
+
export type _EuiButtonDisplay = (typeof BUTTON_DISPLAYS)[number];
|
|
1025
|
+
export interface _EuiButtonOptions {
|
|
1026
|
+
display?: _EuiButtonDisplay;
|
|
1027
|
+
}
|
|
1028
|
+
/**
|
|
1029
|
+
* Creates the `base` version of button styles with proper text contrast.
|
|
1030
|
+
* @param euiThemeContext
|
|
1031
|
+
* @param color One of the named button colors or 'disabled'
|
|
1032
|
+
* @returns Style object `{ backgroundColor, color }`
|
|
1033
|
+
*/
|
|
1034
|
+
export const euiButtonColor: (euiThemeContext: UseEuiTheme, color: _EuiExtendedButtonColor | "disabled") => {
|
|
1035
|
+
border: string;
|
|
1036
|
+
color: string;
|
|
1037
|
+
backgroundColor: string;
|
|
1038
|
+
} | {
|
|
1039
|
+
border?: undefined;
|
|
1040
|
+
color: string;
|
|
1041
|
+
backgroundColor: string;
|
|
1042
|
+
};
|
|
1043
|
+
/**
|
|
1044
|
+
* Creates the `fill` version of buttons styles with proper text contrast.
|
|
1045
|
+
* @param euiThemeContext
|
|
1046
|
+
* @param color One of the named button colors or 'disabled'
|
|
1047
|
+
* @returns Style object `{ backgroundColor, color }`
|
|
1048
|
+
*/
|
|
1049
|
+
export const euiButtonFillColor: (euiThemeContext: UseEuiTheme, color: _EuiExtendedButtonColor | "disabled") => {
|
|
1050
|
+
border: string;
|
|
1051
|
+
color: string;
|
|
1052
|
+
backgroundColor: string;
|
|
1053
|
+
} | {
|
|
1054
|
+
border?: undefined;
|
|
1055
|
+
color: string;
|
|
1056
|
+
backgroundColor: string;
|
|
1057
|
+
};
|
|
1058
|
+
/**
|
|
1059
|
+
* Creates the `empty` version of button styles using the text-variant and adding interactive styles.
|
|
1060
|
+
* @param euiThemeContext
|
|
1061
|
+
* @param color One of the named button colors or 'disabled'
|
|
1062
|
+
* @returns Style object `{ backgroundColor, color }` where `background` is typically used for interactive states
|
|
1063
|
+
*/
|
|
1064
|
+
export const euiButtonEmptyColor: (euiThemeContext: UseEuiTheme, color: _EuiExtendedButtonColor | "disabled") => {
|
|
1065
|
+
color: string;
|
|
1066
|
+
backgroundColor: string;
|
|
1067
|
+
};
|
|
1068
|
+
/**
|
|
1069
|
+
* Given the button display type, returns the Emotion based color keys.
|
|
1070
|
+
* @param options Button display type
|
|
1071
|
+
* @returns An object of `_EuiExtendedButtonColor` keys including `disabled`
|
|
1072
|
+
*/
|
|
1073
|
+
export const useEuiButtonColorCSS: (options?: _EuiButtonOptions) => Record<"text" | "primary" | "accent" | "accentSecondary" | "success" | "warning" | "danger" | "disabled" | "neutral" | "risk", SerializedStyles>;
|
|
1074
|
+
/**
|
|
1075
|
+
* Creates the translate animation when button is in focus.
|
|
1076
|
+
* @returns string
|
|
1077
|
+
*/
|
|
1078
|
+
export const useEuiButtonFocusCSS: () => SerializedStyles;
|
|
1079
|
+
/**
|
|
1080
|
+
* Map of `size` props to various sizings/scales
|
|
1081
|
+
* that should remain consistent across all buttons
|
|
1082
|
+
*/
|
|
1083
|
+
export const euiButtonSizeMap: (euiThemeContext: UseEuiTheme) => {
|
|
1084
|
+
xs: {
|
|
1085
|
+
minWidth: number;
|
|
1086
|
+
height: string;
|
|
1087
|
+
radius: import("csstype").Property.BorderRadius<string | number> | undefined;
|
|
1088
|
+
fontScale: "xs";
|
|
1089
|
+
};
|
|
1090
|
+
s: {
|
|
1091
|
+
minWidth: number;
|
|
1092
|
+
height: string;
|
|
1093
|
+
radius: import("csstype").Property.BorderRadius<string | number> | undefined;
|
|
1094
|
+
fontScale: "s";
|
|
1095
|
+
};
|
|
1096
|
+
m: {
|
|
1097
|
+
minWidth: number;
|
|
1098
|
+
height: string;
|
|
1099
|
+
radius: string | number | undefined;
|
|
1100
|
+
fontScale: "s";
|
|
1101
|
+
};
|
|
1102
|
+
};
|
|
1103
|
+
/**
|
|
1104
|
+
* creates a bottom border on hover/focus to ensure a visible change as forced mode removed background colors
|
|
1105
|
+
*/
|
|
1106
|
+
export const highContrastHoverIndicatorStyles: ({ euiTheme }: UseEuiTheme) => string;
|
|
1107
|
+
|
|
1108
|
+
}
|
|
1109
|
+
declare module '@elastic/eui/src/global_styling/mixins/_color' {
|
|
1110
|
+
import { SerializedStyles } from '@emotion/react';
|
|
1111
|
+
import { UseEuiTheme } from '@elastic/eui/src/services';
|
|
1112
|
+
export const BACKGROUND_COLORS: readonly ["transparent", "plain", "subdued", "highlighted", "accent", "accentSecondary", "primary", "success", "warning", "danger", "neutral", "risk"];
|
|
1113
|
+
export type _EuiBackgroundColor = (typeof BACKGROUND_COLORS)[number];
|
|
1114
|
+
export interface _EuiBackgroundColorOptions {
|
|
1115
|
+
/**
|
|
1116
|
+
* Use `opaque` for containers of unknown content.
|
|
1117
|
+
* Use `transparent` for interactive states like hover and focus.
|
|
1118
|
+
*/
|
|
1119
|
+
method?: 'opaque' | 'transparent';
|
|
1120
|
+
}
|
|
1121
|
+
/**
|
|
1122
|
+
* @deprecated - use background tokens directly
|
|
1123
|
+
* @returns A single background color with optional alpha transparency
|
|
1124
|
+
*/
|
|
1125
|
+
export const euiBackgroundColor: ({ euiTheme }: UseEuiTheme, color: _EuiBackgroundColor, { method }?: _EuiBackgroundColorOptions) => string;
|
|
1126
|
+
/**
|
|
1127
|
+
* @deprecated
|
|
1128
|
+
*/
|
|
1129
|
+
export const useEuiBackgroundColor: (color: _EuiBackgroundColor, { method }?: _EuiBackgroundColorOptions) => string;
|
|
1130
|
+
/**
|
|
1131
|
+
* Hook to retrieve background style for a background color variant
|
|
1132
|
+
* @returns An object map of color keys to CSS,
|
|
1133
|
+
* e.g. { danger: css``, success: css``, ... }
|
|
1134
|
+
*/
|
|
1135
|
+
export const useEuiBackgroundColorCSS: () => Record<"primary" | "accent" | "accentSecondary" | "success" | "warning" | "danger" | "neutral" | "risk" | "transparent" | "plain" | "subdued" | "highlighted", SerializedStyles>;
|
|
1136
|
+
/**
|
|
1137
|
+
* Border colors
|
|
1138
|
+
* @deprecated - use border tokens directly or use
|
|
1139
|
+
* `useEuiBorderColorCSS()` for composed styles
|
|
1140
|
+
*/
|
|
1141
|
+
export const euiBorderColor: ({ euiTheme }: UseEuiTheme, color: _EuiBackgroundColor) => string;
|
|
1142
|
+
/**
|
|
1143
|
+
* Hook to retrieve border style for a border variant
|
|
1144
|
+
* @returns An object map of color keys to CSS,
|
|
1145
|
+
* e.g. { danger: css``, success: css``, ... }
|
|
1146
|
+
*/
|
|
1147
|
+
export const useEuiBorderColorCSS: () => Record<"primary" | "accent" | "accentSecondary" | "success" | "warning" | "danger" | "neutral" | "risk" | "transparent" | "plain" | "subdued" | "highlighted", SerializedStyles>;
|
|
1148
|
+
|
|
1045
1149
|
}
|
|
1046
1150
|
declare module '@elastic/eui/src/global_styling/mixins/_helpers' {
|
|
1047
1151
|
import { CSSProperties } from 'react';
|
|
@@ -1068,7 +1172,7 @@ declare module '@elastic/eui/src/global_styling/mixins/_helpers' {
|
|
|
1068
1172
|
corner?: CSSProperties['borderWidth'];
|
|
1069
1173
|
}
|
|
1070
1174
|
export const euiScrollBarStyles: ({ euiTheme: { colors, size } }: UseEuiTheme, { thumbColor: _thumbColor, trackColor, width, size: _size, corner: _corner, }?: EuiScrollBarStyles) => string;
|
|
1071
|
-
export const useEuiScrollBar: (options?: EuiScrollBarStyles
|
|
1175
|
+
export const useEuiScrollBar: (options?: EuiScrollBarStyles) => string;
|
|
1072
1176
|
/**
|
|
1073
1177
|
* 1. Focus rings shouldn't be visible on scrollable regions, but a11y requires them to be focusable.
|
|
1074
1178
|
* Browser's supporting `:focus-visible` will still show outline on keyboard focus only.
|
|
@@ -1093,7 +1197,7 @@ declare module '@elastic/eui/src/global_styling/mixins/_helpers' {
|
|
|
1093
1197
|
mask?: boolean;
|
|
1094
1198
|
}
|
|
1095
1199
|
export const euiOverflowScroll: (euiTheme: UseEuiTheme, { direction, mask }?: EuiScrollOverflowStyles) => string;
|
|
1096
|
-
export const useEuiOverflowScroll: (direction: EuiScrollOverflowStyles[
|
|
1200
|
+
export const useEuiOverflowScroll: (direction: EuiScrollOverflowStyles["direction"], mask?: EuiScrollOverflowStyles["mask"]) => string;
|
|
1097
1201
|
/**
|
|
1098
1202
|
* For quickly applying a full-height element whether using flex or not
|
|
1099
1203
|
*/
|
|
@@ -1104,6 +1208,7 @@ declare module '@elastic/eui/src/global_styling/mixins/_helpers' {
|
|
|
1104
1208
|
declare module '@elastic/eui/src/global_styling/mixins/_padding' {
|
|
1105
1209
|
import { SerializedStyles } from '@emotion/react';
|
|
1106
1210
|
import { UseEuiTheme } from '@elastic/eui/src/services/theme';
|
|
1211
|
+
import { LogicalSides } from '@elastic/eui/src/global_styling/functions';
|
|
1107
1212
|
export const PADDING_SIZES: readonly ["none", "xs", "s", "m", "l", "xl"];
|
|
1108
1213
|
export type EuiPaddingSize = (typeof PADDING_SIZES)[number];
|
|
1109
1214
|
/**
|
|
@@ -1111,7 +1216,7 @@ declare module '@elastic/eui/src/global_styling/mixins/_padding' {
|
|
|
1111
1216
|
*/
|
|
1112
1217
|
export const euiPaddingSize: ({ euiTheme }: UseEuiTheme, size: EuiPaddingSize) => string | null;
|
|
1113
1218
|
export const useEuiPaddingSize: (size: EuiPaddingSize) => string;
|
|
1114
|
-
export const useEuiPaddingCSS: (side?:
|
|
1219
|
+
export const useEuiPaddingCSS: (side?: LogicalSides) => Record<"s" | "xs" | "m" | "l" | "xl" | "none", SerializedStyles>;
|
|
1115
1220
|
|
|
1116
1221
|
}
|
|
1117
1222
|
declare module '@elastic/eui/src/global_styling/mixins/_states' {
|
|
@@ -1126,11 +1231,11 @@ declare module '@elastic/eui/src/global_styling/mixins/_states' {
|
|
|
1126
1231
|
* @param offset Accepts a specific measurement or 'inset', 'outset' or 'center' to adjust outline position
|
|
1127
1232
|
* @param color Accepts any CSS color
|
|
1128
1233
|
*/
|
|
1129
|
-
export const euiOutline: ({ euiTheme }: UseEuiTheme, offset?: _EuiFocusRingOffset, color?: CSSProperties[
|
|
1234
|
+
export const euiOutline: ({ euiTheme }: UseEuiTheme, offset?: _EuiFocusRingOffset, color?: CSSProperties["outlineColor"]) => string;
|
|
1130
1235
|
export const euiFocusRing: (euiThemeContext: UseEuiTheme, offset?: _EuiFocusRingOffset, options?: {
|
|
1131
|
-
color?: CSSProperties[
|
|
1132
|
-
}
|
|
1133
|
-
export const useEuiFocusRing: (offset?: _EuiFocusRingOffset, color?: CSSProperties[
|
|
1236
|
+
color?: CSSProperties["outlineColor"];
|
|
1237
|
+
}) => string;
|
|
1238
|
+
export const useEuiFocusRing: (offset?: _EuiFocusRingOffset, color?: CSSProperties["outlineColor"]) => string;
|
|
1134
1239
|
|
|
1135
1240
|
}
|
|
1136
1241
|
declare module '@elastic/eui/src/global_styling/mixins/_typography' {
|
|
@@ -1145,8 +1250,8 @@ declare module '@elastic/eui/src/global_styling/mixins/_typography' {
|
|
|
1145
1250
|
/**
|
|
1146
1251
|
* Returns font-size and line-height
|
|
1147
1252
|
*/
|
|
1148
|
-
export const euiFontSize: ({ euiTheme }: UseEuiTheme, scale: _EuiThemeFontScale, options?: _FontScaleOptions
|
|
1149
|
-
export const useEuiFontSize: (scale: _EuiThemeFontScale, options?: _FontScaleOptions
|
|
1253
|
+
export const euiFontSize: ({ euiTheme }: UseEuiTheme, scale: _EuiThemeFontScale, options?: _FontScaleOptions) => EuiThemeFontSize;
|
|
1254
|
+
export const useEuiFontSize: (scale: _EuiThemeFontScale, options?: _FontScaleOptions) => EuiThemeFontSize;
|
|
1150
1255
|
/**
|
|
1151
1256
|
* Force text to wrap on natural word breaks (e.g. spaces & hyphens)
|
|
1152
1257
|
* https://css-tricks.com/snippets/css/prevent-long-urls-from-breaking-out-of-container/
|
|
@@ -1155,7 +1260,7 @@ declare module '@elastic/eui/src/global_styling/mixins/_typography' {
|
|
|
1155
1260
|
/**
|
|
1156
1261
|
* Prevent text from wrapping onto multiple lines, and truncate with an ellipsis.
|
|
1157
1262
|
*/
|
|
1158
|
-
export const euiTextTruncate: (maxWidth?: CSSProperties[
|
|
1263
|
+
export const euiTextTruncate: (maxWidth?: CSSProperties["maxWidth"]) => string;
|
|
1159
1264
|
/**
|
|
1160
1265
|
* Fixed-width numbers for tabular data
|
|
1161
1266
|
*/
|
|
@@ -1239,90 +1344,6 @@ declare module '@elastic/eui/src/global_styling/mixins/_responsive' {
|
|
|
1239
1344
|
export const euiMaxBreakpoint: ({ euiTheme }: UseEuiTheme, size: _EuiThemeBreakpoint) => string;
|
|
1240
1345
|
export const useEuiMaxBreakpoint: (size: _EuiThemeBreakpoint) => string;
|
|
1241
1346
|
|
|
1242
|
-
}
|
|
1243
|
-
declare module '@elastic/eui/src/global_styling/mixins/_button' {
|
|
1244
|
-
import { type SerializedStyles } from '@emotion/react';
|
|
1245
|
-
import { UseEuiTheme } from '@elastic/eui/src/services';
|
|
1246
|
-
export const BUTTON_COLORS: readonly ["text", "accent", "accentSecondary", "primary", "neutral", "success", "warning", "risk", "danger"];
|
|
1247
|
-
export type _EuiButtonColor = (typeof BUTTON_COLORS)[number];
|
|
1248
|
-
export const BUTTON_DISPLAYS: readonly ["base", "fill", "empty"];
|
|
1249
|
-
export type _EuiButtonDisplay = (typeof BUTTON_DISPLAYS)[number];
|
|
1250
|
-
export interface _EuiButtonOptions {
|
|
1251
|
-
display?: _EuiButtonDisplay;
|
|
1252
|
-
}
|
|
1253
|
-
/**
|
|
1254
|
-
* Creates the `base` version of button styles with proper text contrast.
|
|
1255
|
-
* @param euiThemeContext
|
|
1256
|
-
* @param color One of the named button colors or 'disabled'
|
|
1257
|
-
* @returns Style object `{ backgroundColor, color }`
|
|
1258
|
-
*/
|
|
1259
|
-
export const euiButtonColor: (euiThemeContext: UseEuiTheme, color: _EuiButtonColor | 'disabled') => {
|
|
1260
|
-
border: string;
|
|
1261
|
-
color: string;
|
|
1262
|
-
backgroundColor: string;
|
|
1263
|
-
} | {
|
|
1264
|
-
border?: undefined;
|
|
1265
|
-
color: string;
|
|
1266
|
-
backgroundColor: string;
|
|
1267
|
-
};
|
|
1268
|
-
/**
|
|
1269
|
-
* Creates the `fill` version of buttons styles with proper text contrast.
|
|
1270
|
-
* @param euiThemeContext
|
|
1271
|
-
* @param color One of the named button colors or 'disabled'
|
|
1272
|
-
* @returns Style object `{ backgroundColor, color }`
|
|
1273
|
-
*/
|
|
1274
|
-
export const euiButtonFillColor: (euiThemeContext: UseEuiTheme, color: _EuiButtonColor | 'disabled') => {
|
|
1275
|
-
border: string;
|
|
1276
|
-
color: string;
|
|
1277
|
-
backgroundColor: string;
|
|
1278
|
-
} | {
|
|
1279
|
-
border?: undefined;
|
|
1280
|
-
color: string;
|
|
1281
|
-
backgroundColor: string;
|
|
1282
|
-
};
|
|
1283
|
-
/**
|
|
1284
|
-
* Creates the `empty` version of button styles using the text-variant and adding interactive styles.
|
|
1285
|
-
* @param euiThemeContext
|
|
1286
|
-
* @param color One of the named button colors or 'disabled'
|
|
1287
|
-
* @returns Style object `{ backgroundColor, color }` where `background` is typically used for interactive states
|
|
1288
|
-
*/
|
|
1289
|
-
export const euiButtonEmptyColor: (euiThemeContext: UseEuiTheme, color: _EuiButtonColor | 'disabled') => {
|
|
1290
|
-
color: string;
|
|
1291
|
-
backgroundColor: string;
|
|
1292
|
-
};
|
|
1293
|
-
/**
|
|
1294
|
-
* Given the button display type, returns the Emotion based color keys.
|
|
1295
|
-
* @param options Button display type
|
|
1296
|
-
* @returns An object of `_EuiButtonColor` keys including `disabled`
|
|
1297
|
-
*/
|
|
1298
|
-
export const useEuiButtonColorCSS: (options?: _EuiButtonOptions) => Record<"text" | "primary" | "accent" | "accentSecondary" | "success" | "warning" | "danger" | "disabled" | "neutral" | "risk", SerializedStyles>;
|
|
1299
|
-
/**
|
|
1300
|
-
* Creates the translate animation when button is in focus.
|
|
1301
|
-
* @returns string
|
|
1302
|
-
*/
|
|
1303
|
-
export const useEuiButtonFocusCSS: () => SerializedStyles;
|
|
1304
|
-
/**
|
|
1305
|
-
* Map of `size` props to various sizings/scales
|
|
1306
|
-
* that should remain consistent across all buttons
|
|
1307
|
-
*/
|
|
1308
|
-
export const euiButtonSizeMap: ({ euiTheme }: UseEuiTheme) => {
|
|
1309
|
-
xs: {
|
|
1310
|
-
height: string;
|
|
1311
|
-
radius: import("csstype").Property.BorderRadius<string | number> | undefined;
|
|
1312
|
-
fontScale: "xs";
|
|
1313
|
-
};
|
|
1314
|
-
s: {
|
|
1315
|
-
height: string;
|
|
1316
|
-
radius: import("csstype").Property.BorderRadius<string | number> | undefined;
|
|
1317
|
-
fontScale: "s";
|
|
1318
|
-
};
|
|
1319
|
-
m: {
|
|
1320
|
-
height: string;
|
|
1321
|
-
radius: import("csstype").Property.BorderRadius<string | number> | undefined;
|
|
1322
|
-
fontScale: "s";
|
|
1323
|
-
};
|
|
1324
|
-
};
|
|
1325
|
-
|
|
1326
1347
|
}
|
|
1327
1348
|
declare module '@elastic/eui/src/global_styling/mixins/_shadow' {
|
|
1328
1349
|
import { euiShadowFlat, euiShadow, euiSlightShadowHover, euiShadowXSmall, euiShadowSmall, euiShadowMedium, euiShadowLarge, euiShadowXLarge, type _EuiThemeShadowSize, type EuiShadowOptions } from '@elastic/eui-theme-common';
|
|
@@ -1330,9 +1351,9 @@ declare module '@elastic/eui/src/global_styling/mixins/_shadow' {
|
|
|
1330
1351
|
export interface EuiShadowCustomColor {
|
|
1331
1352
|
color?: string;
|
|
1332
1353
|
}
|
|
1333
|
-
export const useEuiSlightShadowHover: (options?: EuiShadowOptions
|
|
1334
|
-
export const useEuiShadowFlat: (options?: EuiShadowOptions
|
|
1335
|
-
export const useEuiShadow: (size?: _EuiThemeShadowSize, options?: EuiShadowOptions
|
|
1354
|
+
export const useEuiSlightShadowHover: (options?: EuiShadowOptions) => string;
|
|
1355
|
+
export const useEuiShadowFlat: (options?: EuiShadowOptions) => string;
|
|
1356
|
+
export const useEuiShadow: (size?: _EuiThemeShadowSize, options?: EuiShadowOptions) => string;
|
|
1336
1357
|
|
|
1337
1358
|
}
|
|
1338
1359
|
declare module '@elastic/eui/src/global_styling/mixins' {
|
|
@@ -1423,7 +1444,7 @@ declare module '@elastic/eui/src/components/text/text_color' {
|
|
|
1423
1444
|
import type { SharedTextProps, CloneElement, EuiTextColors } from '@elastic/eui/src/components/text/types';
|
|
1424
1445
|
export const COLORS: readonly ["default", "subdued", "success", "accent", "accentSecondary", "danger", "warning", "ghost", "inherit"];
|
|
1425
1446
|
export type TextColor = (typeof COLORS)[number];
|
|
1426
|
-
export const _isNamedColor: (color: any) => color is
|
|
1447
|
+
export const _isNamedColor: (color: any) => color is TextColor;
|
|
1427
1448
|
export type EuiTextColorProps = SharedTextProps & CloneElement & EuiTextColors;
|
|
1428
1449
|
export const EuiTextColor: FunctionComponent<EuiTextColorProps>;
|
|
1429
1450
|
|
|
@@ -1523,13 +1544,17 @@ declare module '@elastic/eui/src/components/title/title.styles' {
|
|
|
1523
1544
|
import { CSSProperties } from 'react';
|
|
1524
1545
|
import { UseEuiTheme } from '@elastic/eui/src/services';
|
|
1525
1546
|
import { _FontScaleOptions } from '@elastic/eui/src/global_styling';
|
|
1526
|
-
import { EuiTitleSize } from '@elastic/eui/src/components/title/title';
|
|
1547
|
+
import { EuiTitleSize } from '@elastic/eui/src/components/title/title';
|
|
1548
|
+
/**
|
|
1549
|
+
* Mixin
|
|
1550
|
+
*/
|
|
1551
|
+
type EuiThemeTitle = {
|
|
1527
1552
|
fontSize: CSSProperties['fontSize'];
|
|
1528
1553
|
lineHeight: CSSProperties['lineHeight'];
|
|
1529
1554
|
fontWeight: CSSProperties['fontWeight'];
|
|
1530
1555
|
color: CSSProperties['color'];
|
|
1531
1556
|
};
|
|
1532
|
-
export const euiTitle: (euiThemeContext: UseEuiTheme, scale?: EuiTitleSize, options?: _FontScaleOptions
|
|
1557
|
+
export const euiTitle: (euiThemeContext: UseEuiTheme, scale?: EuiTitleSize, options?: _FontScaleOptions) => EuiThemeTitle;
|
|
1533
1558
|
/**
|
|
1534
1559
|
* Styles
|
|
1535
1560
|
*/
|
|
@@ -1593,7 +1618,7 @@ declare module '@elastic/eui/src/components/text/text.styles' {
|
|
|
1593
1618
|
/**
|
|
1594
1619
|
* Mixins
|
|
1595
1620
|
*/
|
|
1596
|
-
export const euiText: (euiTheme: UseEuiTheme[
|
|
1621
|
+
export const euiText: (euiTheme: UseEuiTheme["euiTheme"], inheritColor?: boolean) => {
|
|
1597
1622
|
color: string;
|
|
1598
1623
|
fontWeight: import("csstype").Property.FontWeight | undefined;
|
|
1599
1624
|
};
|
|
@@ -1676,9 +1701,9 @@ declare module '@elastic/eui/src/services/predicate/common_predicates' {
|
|
|
1676
1701
|
export const isUndefined: (value: any) => value is undefined;
|
|
1677
1702
|
export const isNull: (value: any) => value is null;
|
|
1678
1703
|
export const isNil: (value: any) => value is null | undefined;
|
|
1679
|
-
export const isMoment: (value: any) =>
|
|
1704
|
+
export const isMoment: (value: any) => value is moment.Moment;
|
|
1680
1705
|
export const isDate: (value: any) => value is Date;
|
|
1681
|
-
export const isDateLike: (value: any) => value is
|
|
1706
|
+
export const isDateLike: (value: any) => value is moment.Moment | Date;
|
|
1682
1707
|
|
|
1683
1708
|
}
|
|
1684
1709
|
declare module '@elastic/eui/src/services/predicate/lodash_predicates' {
|
|
@@ -1713,7 +1738,8 @@ declare module '@elastic/eui/src/components/i18n/i18n_util' {
|
|
|
1713
1738
|
declare module '@elastic/eui/src/components/i18n/i18n' {
|
|
1714
1739
|
import React, { ReactElement, ReactNode } from 'react';
|
|
1715
1740
|
import { ExclusiveUnion } from '@elastic/eui/src/components/common';
|
|
1716
|
-
import { Renderable } from '@elastic/eui/src/components/context/context';
|
|
1741
|
+
import { Renderable } from '@elastic/eui/src/components/context/context';
|
|
1742
|
+
type ResolvedType<T> = T extends (...args: any[]) => any ? ReturnType<T> : T;
|
|
1717
1743
|
interface I18nTokenShape<T, DEFAULT extends Renderable<T>> {
|
|
1718
1744
|
token: string;
|
|
1719
1745
|
default: DEFAULT;
|
|
@@ -1732,7 +1758,9 @@ declare module '@elastic/eui/src/components/i18n/i18n' {
|
|
|
1732
1758
|
children: (x: Array<T[number]>) => ReactNode;
|
|
1733
1759
|
values?: Record<string, ReactNode>;
|
|
1734
1760
|
}
|
|
1735
|
-
export type EuiI18nProps<T, DEFAULT extends Renderable<T>, DEFAULTS extends any[]> = ExclusiveUnion<I18nTokenShape<T, DEFAULT>, I18nTokensShape<DEFAULTS>>; const EuiI18n: <T extends {}, DEFAULT extends Renderable<T>, DEFAULTS extends any[]>(props:
|
|
1761
|
+
export type EuiI18nProps<T, DEFAULT extends Renderable<T>, DEFAULTS extends any[]> = ExclusiveUnion<I18nTokenShape<T, DEFAULT>, I18nTokensShape<DEFAULTS>>; const EuiI18n: <T extends {}, DEFAULT extends Renderable<T>, DEFAULTS extends any[]>(props: EuiI18nProps<T, DEFAULT, DEFAULTS>) => React.JSX.Element;
|
|
1762
|
+
type DefaultRenderType<T, K extends Renderable<T>> = K extends ReactNode ? K : K extends () => infer RetValue ? RetValue : never;
|
|
1763
|
+
type DefaultsRenderType<K extends Array<string | ReactElement>> = K extends Array<infer Item> ? Item : never; function useEuiI18n<T extends {}, DEFAULT extends Renderable<T>>(token: string, defaultValue: DEFAULT, values?: T): DefaultRenderType<T, DEFAULT>; function useEuiI18n<DEFAULTS extends Array<string | ReactElement>>(tokens: string[], defaultValues: DEFAULTS): Array<DefaultsRenderType<DEFAULTS>>;
|
|
1736
1764
|
export { EuiI18n, useEuiI18n };
|
|
1737
1765
|
|
|
1738
1766
|
}
|
|
@@ -1811,7 +1839,7 @@ declare module '@elastic/eui/src/components/observer/resize_observer/resize_obse
|
|
|
1811
1839
|
onResize: ResizeObserverCallback;
|
|
1812
1840
|
beginObserve: () => void;
|
|
1813
1841
|
}
|
|
1814
|
-
export const useResizeObserver: (container: Element | null, dimension?: "width" | "height"
|
|
1842
|
+
export const useResizeObserver: (container: Element | null, dimension?: "width" | "height") => {
|
|
1815
1843
|
width: number;
|
|
1816
1844
|
height: number;
|
|
1817
1845
|
};
|
|
@@ -1828,7 +1856,8 @@ declare module '@elastic/eui/src/components/portal/portal' {
|
|
|
1828
1856
|
* into portals.
|
|
1829
1857
|
*/
|
|
1830
1858
|
import React, { FunctionComponent, Component, ContextType, ReactNode } from 'react';
|
|
1831
|
-
import { EuiNestedThemeContext } from '@elastic/eui/src/services'; const INSERT_POSITIONS: readonly ["after", "before"];
|
|
1859
|
+
import { EuiNestedThemeContext } from '@elastic/eui/src/services'; const INSERT_POSITIONS: readonly ["after", "before"];
|
|
1860
|
+
type EuiPortalInsertPosition = (typeof INSERT_POSITIONS)[number];
|
|
1832
1861
|
export interface EuiPortalProps {
|
|
1833
1862
|
/**
|
|
1834
1863
|
* ReactNode to render as this component's content
|
|
@@ -1876,7 +1905,7 @@ declare module '@elastic/eui/src/components/table/mobile/responsive_context' {
|
|
|
1876
1905
|
* Used by parent/top-level table components to determine isResponsive state
|
|
1877
1906
|
* based on the passed breakpoint
|
|
1878
1907
|
*/
|
|
1879
|
-
export const useIsEuiTableResponsive: (componentProp?:
|
|
1908
|
+
export const useIsEuiTableResponsive: (componentProp?: EuiBreakpointSize | boolean) => boolean;
|
|
1880
1909
|
/**
|
|
1881
1910
|
* Context set by parent table components
|
|
1882
1911
|
* Hook used by cells to fetch parent isResponsive state
|
|
@@ -1968,7 +1997,7 @@ declare module '@elastic/eui/src/components/table/table_footer' {
|
|
|
1968
1997
|
declare module '@elastic/eui/src/components/table/utils' {
|
|
1969
1998
|
import { CSSProperties } from 'react';
|
|
1970
1999
|
export const WARNING_MESSAGE = "Two `width` properties were provided. Provide only one of `style.width` or `width` to avoid conflicts.";
|
|
1971
|
-
export const resolveWidthAsStyle: (style?: CSSProperties, width?: string | number
|
|
2000
|
+
export const resolveWidthAsStyle: (style?: CSSProperties, width?: string | number) => CSSProperties;
|
|
1972
2001
|
|
|
1973
2002
|
}
|
|
1974
2003
|
declare module '@elastic/eui/src/services/canvas/canvas_text_utils' {
|
|
@@ -2006,7 +2035,8 @@ declare module '@elastic/eui/src/services/canvas' {
|
|
|
2006
2035
|
|
|
2007
2036
|
}
|
|
2008
2037
|
declare module '@elastic/eui/src/components/text_truncate/utils' {
|
|
2009
|
-
import { CanvasTextParams, CanvasTextUtils } from '@elastic/eui/src/services/canvas';
|
|
2038
|
+
import { CanvasTextParams, CanvasTextUtils } from '@elastic/eui/src/services/canvas';
|
|
2039
|
+
type TruncationParams = CanvasTextParams & {
|
|
2010
2040
|
fullText: string;
|
|
2011
2041
|
ellipsis: string;
|
|
2012
2042
|
availableWidth: number;
|
|
@@ -2035,7 +2065,7 @@ declare module '@elastic/eui/src/components/text_truncate/utils' {
|
|
|
2035
2065
|
*/
|
|
2036
2066
|
widthRatio: number;
|
|
2037
2067
|
setTextWidthRatio: (text?: string, textToOffset?: string) => void;
|
|
2038
|
-
getTextFromRatio: (text: string, type:
|
|
2068
|
+
getTextFromRatio: (text: string, type: "start" | "end") => string;
|
|
2039
2069
|
/**
|
|
2040
2070
|
* Early return checks
|
|
2041
2071
|
*/
|
|
@@ -2045,8 +2075,8 @@ declare module '@elastic/eui/src/components/text_truncate/utils' {
|
|
|
2045
2075
|
/**
|
|
2046
2076
|
* Truncation types logic. This is where the magic happens
|
|
2047
2077
|
*/
|
|
2048
|
-
truncateStart: (truncationOffset?: number
|
|
2049
|
-
truncateEnd: (truncationOffset?: number
|
|
2078
|
+
truncateStart: (truncationOffset?: number) => string;
|
|
2079
|
+
truncateEnd: (truncationOffset?: number) => string;
|
|
2050
2080
|
truncateStartEndAtPosition: (truncationPosition: number) => string;
|
|
2051
2081
|
truncateStartEndAtMiddle: () => string;
|
|
2052
2082
|
truncateMiddle: () => string;
|
|
@@ -2291,7 +2321,8 @@ declare module '@elastic/eui/src/components/table/table_row_cell' {
|
|
|
2291
2321
|
* Used by EuiBasicTable to render hidden copy markers
|
|
2292
2322
|
*/
|
|
2293
2323
|
append?: ReactNode;
|
|
2294
|
-
}
|
|
2324
|
+
}
|
|
2325
|
+
type Props = CommonProps & Omit<TdHTMLAttributes<HTMLTableCellElement>, 'valign'> & EuiTableRowCellProps;
|
|
2295
2326
|
export const EuiTableRowCell: FunctionComponent<Props>;
|
|
2296
2327
|
export {};
|
|
2297
2328
|
|
|
@@ -2954,7 +2985,7 @@ declare module '@elastic/eui/src/components/icon/icon' {
|
|
|
2954
2985
|
import { WithEuiStylesMemoizerProps } from '@elastic/eui/src/services';
|
|
2955
2986
|
export { COLORS } from '@elastic/eui/src/components/icon/named_colors';
|
|
2956
2987
|
import { NamedColor } from '@elastic/eui/src/components/icon/named_colors';
|
|
2957
|
-
export const TYPES: ("string" | "number" | "function" | "
|
|
2988
|
+
export const TYPES: ("string" | "number" | "function" | "article" | "code" | "link" | "menu" | "search" | "section" | "filter" | "image" | "stop" | "at" | "key" | "error" | "warning" | "scale" | "color" | "refresh" | "push" | "copy" | "cut" | "pause" | "play" | "offline" | "online" | "storage" | "temperature" | "wordWrap" | "grid" | "empty" | "invert" | "grab" | "help" | "move" | "spaces" | "dot" | "alert" | "document" | "list" | "email" | "annotation" | "container" | "accessibility" | "aggregate" | "analyzeEvent" | "apps" | "arrowStart" | "arrowEnd" | "asterisk" | "flask" | "bell" | "bellSlash" | "beta" | "bolt" | "branch" | "branchUser" | "broom" | "brush" | "bug" | "bullseye" | "calendar" | "check" | "checkCircle" | "checkInCircleFilled" | "cheer" | "clickLeft" | "clickRight" | "clock" | "clockCounter" | "cloudDrizzle" | "cloudStormy" | "cloudSunny" | "cluster" | "comment" | "compute" | "console" | "continuityAbove" | "continuityAboveBelow" | "continuityBelow" | "continuityWithin" | "contrast" | "contrastHigh" | "controls" | "cross" | "crosshairs" | "currency" | "database" | "desktop" | "diff" | "documentEdit" | "documentation" | "documents" | "dotInCircle" | "doubleArrowLeft" | "doubleArrowRight" | "download" | "editorDistributeHorizontal" | "editorDistributeVertical" | "editorItemAlignBottom" | "editorItemAlignCenter" | "editorItemAlignLeft" | "editorItemAlignMiddle" | "editorItemAlignRight" | "editorItemAlignTop" | "editorPositionBottomLeft" | "editorPositionBottomRight" | "editorPositionTopLeft" | "editorPositionTopRight" | "endpoint" | "eql" | "eraser" | "errorFilled" | "esqlVis" | "exit" | "expand" | "expandMini" | "export" | "eye" | "filterExclude" | "filterIgnore" | "filterInclude" | "filterInCircle" | "flag" | "fold" | "frameNext" | "framePrevious" | "fullScreenExit" | "gear" | "readOnly" | "globe" | "grabOmnidirectional" | "gradient" | "heart" | "heatmap" | "home" | "iInCircle" | "index" | "indexTemporary" | "infinity" | "inputOutput" | "inspect" | "ip" | "keyboard" | "kubernetesNode" | "kubernetesPod" | "launch" | "layers" | "lettering" | "lineDashed" | "lineDotted" | "lineSolid" | "lock" | "lockOpen" | "magnet" | "magnifyWithExclamation" | "magnifyWithMinus" | "magnifyWithPlus" | "memory" | "menuDown" | "menuLeft" | "menuRight" | "menuUp" | "merge" | "minimize" | "minus" | "mobile" | "moon" | "namespace" | "nested" | "node" | "package" | "pageSelect" | "pagesSelect" | "palette" | "partial" | "payment" | "pencil" | "percent" | "pin" | "pipeBreaks" | "pipeNoBreaks" | "pivot" | "playFilled" | "plugs" | "plus" | "popout" | "quote" | "reporter" | "save" | "securitySignal" | "securitySignalDetected" | "securitySignalResolved" | "sessionViewer" | "shard" | "share" | "snowflake" | "sortAscending" | "sortDescending" | "sortLeft" | "sortRight" | "sortable" | "sparkles" | "starPlusEmpty" | "starPlusFilled" | "stats" | "submodule" | "sun" | "symlink" | "tableOfContents" | "tag" | "tear" | "timeline" | "timelineWithArrow" | "timeRefresh" | "timeslider" | "training" | "transitionLeftIn" | "transitionLeftOut" | "transitionTopIn" | "transitionTopOut" | "trash" | "unfold" | "unlink" | "user" | "users" | "vector" | "videoPlayer" | "warningFilled" | "web" | "wordWrapDisabled" | "wrench" | "tokenAlias" | "tokenAnnotation" | "tokenArray" | "tokenBinary" | "tokenBoolean" | "tokenClass" | "tokenCompletionSuggester" | "tokenConstant" | "tokenDate" | "tokenDimension" | "tokenElement" | "tokenEnum" | "tokenEnumMember" | "tokenEvent" | "tokenException" | "tokenField" | "tokenFile" | "tokenFlattened" | "tokenFunction" | "tokenGeo" | "tokenHistogram" | "tokenInterface" | "tokenIP" | "tokenJoin" | "tokenKey" | "tokenKeyword" | "tokenMethod" | "tokenMetricCounter" | "tokenMetricGauge" | "tokenModule" | "tokenNamespace" | "tokenNested" | "tokenNull" | "tokenNumber" | "tokenObject" | "tokenOperator" | "tokenPackage" | "tokenParameter" | "tokenPercolator" | "tokenProperty" | "tokenRange" | "tokenRankFeature" | "tokenRankFeatures" | "tokenRepo" | "tokenSearchType" | "tokenSemanticText" | "tokenShape" | "tokenString" | "tokenStruct" | "tokenSymbol" | "tokenTag" | "tokenText" | "tokenTokenCount" | "tokenVariable" | "tokenVectorDense" | "tokenVectorSparse" | "addDataApp" | "advancedSettingsApp" | "agentApp" | "anomalyChart" | "anomalySwimLane" | "apmApp" | "apmTrace" | "appSearchApp" | "arrowDown" | "arrowLeft" | "arrowRight" | "arrowUp" | "auditbeatApp" | "beaker" | "boxesHorizontal" | "boxesVertical" | "canvasApp" | "casesApp" | "changePointDetection" | "classificationJob" | "codeApp" | "consoleApp" | "controlsHorizontal" | "controlsVertical" | "copyClipboard" | "createAdvancedJob" | "createGenericJob" | "createGeoJob" | "createMultiMetricJob" | "createPopulationJob" | "createSingleMetricJob" | "crossClusterReplicationApp" | "crossInCircle" | "dashboardApp" | "dataVisualizer" | "devToolsApp" | "discoverApp" | "discuss" | "editorAlignCenter" | "editorAlignLeft" | "editorAlignRight" | "editorBold" | "editorChecklist" | "editorCodeBlock" | "editorComment" | "editorHeading" | "editorItalic" | "editorLink" | "editorOrderedList" | "editorRedo" | "editorStrike" | "editorTable" | "editorUnderline" | "editorUndo" | "editorUnorderedList" | "emsApp" | "exportAction" | "eyeClosed" | "faceHappy" | "faceNeutral" | "faceSad" | "fieldStatistics" | "filebeatApp" | "fleetApp" | "folderCheck" | "folderClosed" | "folderExclamation" | "folderOpen" | "fullScreen" | "gisApp" | "glasses" | "grabHorizontal" | "graphApp" | "grokApp" | "heartbeatApp" | "importAction" | "indexClose" | "indexEdit" | "indexFlush" | "indexManagementApp" | "indexMapping" | "indexOpen" | "indexPatternApp" | "indexRollupApp" | "indexRuntime" | "indexSettings" | "kqlField" | "kqlFunction" | "kqlOperand" | "kqlSelector" | "kqlValue" | "lensApp" | "listAdd" | "logPatternAnalysis" | "logRateAnalysis" | "logoAWS" | "logoAWSMono" | "logoAerospike" | "logoApache" | "logoAppSearch" | "logoAzure" | "logoAzureMono" | "logoBeats" | "logoBusinessAnalytics" | "logoCeph" | "logoCloud" | "logoCloudEnterprise" | "logoCode" | "logoCodesandbox" | "logoCouchbase" | "logoDocker" | "logoDropwizard" | "logoElastic" | "logoElasticStack" | "logoElasticsearch" | "logoEnterpriseSearch" | "logoEtcd" | "logoGCP" | "logoGCPMono" | "logoGithub" | "logoGmail" | "logoGolang" | "logoGoogleG" | "logoHAproxy" | "logoIBM" | "logoIBMMono" | "logoKafka" | "logoKibana" | "logoKubernetes" | "logoLogging" | "logoLogstash" | "logoMaps" | "logoMemcached" | "logoMetrics" | "logoMongodb" | "logoMySQL" | "logoNginx" | "logoObservability" | "logoOsquery" | "logoPhp" | "logoPostgres" | "logoPrometheus" | "logoRabbitmq" | "logoRedis" | "logoSecurity" | "logoSiteSearch" | "logoSketch" | "logoSlack" | "logoUptime" | "logoVulnerabilityManagement" | "logoWebhook" | "logoWindows" | "logoWorkplaceSearch" | "logsApp" | "logstashFilter" | "logstashIf" | "logstashInput" | "logstashOutput" | "logstashQueue" | "machineLearningApp" | "managementApp" | "mapMarker" | "metricbeatApp" | "metricsApp" | "minusInCircle" | "minusInCircleFilled" | "minusInSquare" | "monitoringApp" | "newChat" | "notebookApp" | "outlierDetectionJob" | "packetbeatApp" | "paperClip" | "pinFilled" | "pipelineApp" | "plusInCircle" | "plusInCircleFilled" | "plusInSquare" | "questionInCircle" | "recentlyViewedApp" | "regressionJob" | "reportingApp" | "returnKey" | "savedObjectsApp" | "searchProfilerApp" | "securityAnalyticsApp" | "securityApp" | "singleMetricViewer" | "sortDown" | "sortUp" | "spacesApp" | "sqlApp" | "starEmpty" | "starEmptySpace" | "starFilled" | "starFilledSpace" | "starMinusEmpty" | "starMinusFilled" | "stopFilled" | "stopSlash" | "swatchInput" | "tableDensityCompact" | "tableDensityExpanded" | "tableDensityNormal" | "timelionApp" | "upgradeAssistantApp" | "uptimeApp" | "userAvatar" | "usersRolesApp" | "visArea" | "visAreaStacked" | "visBarHorizontal" | "visBarHorizontalStacked" | "visBarVertical" | "visBarVerticalStacked" | "visGauge" | "visGoal" | "visLine" | "visMapCoordinate" | "visMapRegion" | "visMetric" | "visPie" | "visTable" | "visTagCloud" | "visText" | "visTimelion" | "visVega" | "visVisualBuilder" | "visualizeApp" | "vulnerabilityManagementApp" | "watchesApp" | "workplaceSearchApp" | "tokenDenseVector")[];
|
|
2958
2989
|
export type EuiIconType = keyof typeof typeToPathMap;
|
|
2959
2990
|
export type IconType = EuiIconType | string | ComponentType;
|
|
2960
2991
|
export type IconColor = string | NamedColor;
|
|
@@ -2997,9 +3028,9 @@ declare module '@elastic/eui/src/components/icon/icon' {
|
|
|
2997
3028
|
isLoading: boolean;
|
|
2998
3029
|
neededLoading: boolean;
|
|
2999
3030
|
}
|
|
3000
|
-
export const clearIconComponentCache: (iconType?:
|
|
3031
|
+
export const clearIconComponentCache: (iconType?: EuiIconType) => void;
|
|
3001
3032
|
export const appendIconComponentCache: (iconTypeToIconComponentMap: {
|
|
3002
|
-
[iconType: string]:
|
|
3033
|
+
[iconType: string]: ComponentType;
|
|
3003
3034
|
}) => void;
|
|
3004
3035
|
export class EuiIconClass extends PureComponent<EuiIconProps & WithEuiStylesMemoizerProps, State> {
|
|
3005
3036
|
isMounted: boolean;
|
|
@@ -3020,7 +3051,8 @@ declare module '@elastic/eui/src/components/icon' {
|
|
|
3020
3051
|
|
|
3021
3052
|
}
|
|
3022
3053
|
declare module '@elastic/eui/src/components/inner_text/inner_text' {
|
|
3023
|
-
import { FunctionComponent, ReactElement } from 'react';
|
|
3054
|
+
import { FunctionComponent, ReactElement } from 'react';
|
|
3055
|
+
type RefT = HTMLElement | Element | undefined | null;
|
|
3024
3056
|
export function useInnerText(innerTextFallback?: string): [(node: RefT) => void, string | undefined];
|
|
3025
3057
|
export interface EuiInnerTextProps {
|
|
3026
3058
|
/**
|
|
@@ -3251,9 +3283,9 @@ declare module '@elastic/eui/src/services/popover' {
|
|
|
3251
3283
|
declare module '@elastic/eui/src/components/panel/panel.styles' {
|
|
3252
3284
|
import { UseEuiTheme } from '@elastic/eui/src/services';
|
|
3253
3285
|
export const euiPanelBorderStyles: (euiThemeContext: UseEuiTheme, options?: {
|
|
3254
|
-
borderColor?: string
|
|
3255
|
-
hasFloatingBorder?: boolean
|
|
3256
|
-
}
|
|
3286
|
+
borderColor?: string;
|
|
3287
|
+
hasFloatingBorder?: boolean;
|
|
3288
|
+
}) => string;
|
|
3257
3289
|
export const euiPanelStyles: (euiThemeContext: UseEuiTheme) => {
|
|
3258
3290
|
euiPanel: import("@emotion/react").SerializedStyles;
|
|
3259
3291
|
grow: import("@emotion/react").SerializedStyles;
|
|
@@ -3269,8 +3301,8 @@ declare module '@elastic/eui/src/components/panel/panel.styles' {
|
|
|
3269
3301
|
}
|
|
3270
3302
|
declare module '@elastic/eui/src/components/tool_tip/tool_tip.styles' {
|
|
3271
3303
|
import { UseEuiTheme } from '@elastic/eui/src/services';
|
|
3272
|
-
export const euiToolTipBackgroundColor: (euiTheme: UseEuiTheme[
|
|
3273
|
-
export const euiToolTipBorderColor: (euiTheme: UseEuiTheme[
|
|
3304
|
+
export const euiToolTipBackgroundColor: (euiTheme: UseEuiTheme["euiTheme"]) => string;
|
|
3305
|
+
export const euiToolTipBorderColor: (euiTheme: UseEuiTheme["euiTheme"]) => string;
|
|
3274
3306
|
export const euiToolTipStyles: (euiThemeContext: UseEuiTheme) => {
|
|
3275
3307
|
euiToolTip: import("@emotion/react").SerializedStyles;
|
|
3276
3308
|
s: import("@emotion/react").SerializedStyles;
|
|
@@ -3297,7 +3329,8 @@ declare module '@elastic/eui/src/components/tool_tip/tool_tip.styles' {
|
|
|
3297
3329
|
declare module '@elastic/eui/src/components/tool_tip/tool_tip_popover' {
|
|
3298
3330
|
import { HTMLAttributes, FunctionComponent, ReactNode } from 'react';
|
|
3299
3331
|
import { CommonProps } from '@elastic/eui/src/components/common';
|
|
3300
|
-
export type ToolTipPositions = 'top' | 'right' | 'bottom' | 'left';
|
|
3332
|
+
export type ToolTipPositions = 'top' | 'right' | 'bottom' | 'left';
|
|
3333
|
+
type Props = CommonProps & Omit<HTMLAttributes<HTMLDivElement>, 'title'> & {
|
|
3301
3334
|
positionToolTip: () => void;
|
|
3302
3335
|
children?: ReactNode;
|
|
3303
3336
|
title?: ReactNode;
|
|
@@ -3505,7 +3538,12 @@ declare module '@elastic/eui/src/components/button/button_display/_button_displa
|
|
|
3505
3538
|
euiButtonDisplay: import("@emotion/react").SerializedStyles;
|
|
3506
3539
|
isDisabled: import("@emotion/react").SerializedStyles;
|
|
3507
3540
|
fullWidth: import("@emotion/react").SerializedStyles;
|
|
3508
|
-
defaultMinWidth:
|
|
3541
|
+
defaultMinWidth: {
|
|
3542
|
+
defaultMinWidth: import("@emotion/react").SerializedStyles;
|
|
3543
|
+
xs: string;
|
|
3544
|
+
s: string;
|
|
3545
|
+
m: string;
|
|
3546
|
+
};
|
|
3509
3547
|
xs: import("@emotion/react").SerializedStyles;
|
|
3510
3548
|
s: import("@emotion/react").SerializedStyles;
|
|
3511
3549
|
m: import("@emotion/react").SerializedStyles;
|
|
@@ -3640,7 +3678,7 @@ declare module '@elastic/eui/src/components/loading' {
|
|
|
3640
3678
|
}
|
|
3641
3679
|
declare module '@elastic/eui/src/components/button/button_display/_button_display_content.styles' {
|
|
3642
3680
|
import { UseEuiTheme } from '@elastic/eui/src/services';
|
|
3643
|
-
export const euiButtonDisplayContentStyles: (
|
|
3681
|
+
export const euiButtonDisplayContentStyles: (euiThemeContext: UseEuiTheme) => {
|
|
3644
3682
|
euiButtonDisplayContent: import("@emotion/react").SerializedStyles;
|
|
3645
3683
|
};
|
|
3646
3684
|
|
|
@@ -3741,14 +3779,14 @@ declare module '@elastic/eui/src/components/button/button_display/_button_displa
|
|
|
3741
3779
|
* any element as a button.
|
|
3742
3780
|
*/
|
|
3743
3781
|
export const EuiButtonDisplay: React.ForwardRefExoticComponent<((import ("@elastic/eui/src/components/common").DisambiguateSet<EuiButtonDisplayPropsForAnchor, EuiButtonDisplayPropsForButton> & EuiButtonDisplayCommonProps & {
|
|
3744
|
-
onClick?: React.MouseEventHandler<HTMLButtonElement
|
|
3782
|
+
onClick?: React.MouseEventHandler<HTMLButtonElement>;
|
|
3745
3783
|
} & React.ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
3746
|
-
buttonRef?:
|
|
3784
|
+
buttonRef?: Ref<HTMLButtonElement>;
|
|
3747
3785
|
}) | (import ("@elastic/eui/src/components/common").DisambiguateSet<EuiButtonDisplayPropsForButton, EuiButtonDisplayPropsForAnchor> & EuiButtonDisplayCommonProps & {
|
|
3748
|
-
href?: string
|
|
3749
|
-
onClick?: React.MouseEventHandler<HTMLAnchorElement
|
|
3786
|
+
href?: string;
|
|
3787
|
+
onClick?: React.MouseEventHandler<HTMLAnchorElement>;
|
|
3750
3788
|
} & React.AnchorHTMLAttributes<HTMLAnchorElement> & {
|
|
3751
|
-
buttonRef?:
|
|
3789
|
+
buttonRef?: Ref<HTMLAnchorElement>;
|
|
3752
3790
|
})) & React.RefAttributes<HTMLElement>>;
|
|
3753
3791
|
export {};
|
|
3754
3792
|
|
|
@@ -3756,10 +3794,10 @@ declare module '@elastic/eui/src/components/button/button_display/_button_displa
|
|
|
3756
3794
|
declare module '@elastic/eui/src/components/button/button' {
|
|
3757
3795
|
import { FunctionComponent, Ref, ReactNode } from 'react';
|
|
3758
3796
|
import { CommonProps, ExclusiveUnion, PropsForAnchor, PropsForButton } from '@elastic/eui/src/components/common';
|
|
3759
|
-
import {
|
|
3797
|
+
import { _EuiExtendedButtonColor } from '@elastic/eui/src/global_styling/mixins/_button';
|
|
3760
3798
|
import { EuiButtonDisplayCommonProps } from '@elastic/eui/src/components/button/button_display/_button_display';
|
|
3761
|
-
export const COLORS: readonly ["text", "accent", "accentSecondary", "primary", "
|
|
3762
|
-
export type EuiButtonColor =
|
|
3799
|
+
export const COLORS: readonly ["text", "accent", "accentSecondary", "primary", "success", "warning", "danger"];
|
|
3800
|
+
export type EuiButtonColor = _EuiExtendedButtonColor;
|
|
3763
3801
|
export const SIZES: readonly ["s", "m"];
|
|
3764
3802
|
export type EuiButtonSize = (typeof SIZES)[number];
|
|
3765
3803
|
interface BaseProps {
|
|
@@ -3770,6 +3808,13 @@ declare module '@elastic/eui/src/components/button/button' {
|
|
|
3770
3808
|
fill?: boolean;
|
|
3771
3809
|
/**
|
|
3772
3810
|
* Any of the named color palette options.
|
|
3811
|
+
*
|
|
3812
|
+
* Do not use the following colors for standalone buttons directly,
|
|
3813
|
+
* they exist to serve other components:
|
|
3814
|
+
* - accent
|
|
3815
|
+
* - warning
|
|
3816
|
+
* - neutral
|
|
3817
|
+
* - risk
|
|
3773
3818
|
*/
|
|
3774
3819
|
color?: EuiButtonColor;
|
|
3775
3820
|
/**
|
|
@@ -3805,7 +3850,7 @@ declare module '@elastic/eui/src/components/button/button_empty/button_empty.sty
|
|
|
3805
3850
|
isDisabled: import("@emotion/react").SerializedStyles;
|
|
3806
3851
|
xs: import("@emotion/react").SerializedStyles;
|
|
3807
3852
|
s: import("@emotion/react").SerializedStyles;
|
|
3808
|
-
m: import("@emotion/react").SerializedStyles;
|
|
3853
|
+
m: (string | false | import("@emotion/react").SerializedStyles)[];
|
|
3809
3854
|
flush: import("@emotion/react").SerializedStyles;
|
|
3810
3855
|
left: import("@emotion/react").SerializedStyles;
|
|
3811
3856
|
right: import("@emotion/react").SerializedStyles;
|
|
@@ -3817,7 +3862,7 @@ declare module '@elastic/eui/src/components/button/button_empty/button_empty' {
|
|
|
3817
3862
|
import { FunctionComponent, Ref, ButtonHTMLAttributes } from 'react';
|
|
3818
3863
|
import { CommonProps, ExclusiveUnion, PropsForAnchor, PropsForButton } from '@elastic/eui/src/components/common';
|
|
3819
3864
|
import { EuiButtonDisplayContentProps, EuiButtonDisplayContentType } from '@elastic/eui/src/components/button/button_display/_button_display_content';
|
|
3820
|
-
import {
|
|
3865
|
+
import { _EuiExtendedButtonColor } from '@elastic/eui/src/global_styling/mixins/_button';
|
|
3821
3866
|
export const SIZES: readonly ["xs", "s", "m"];
|
|
3822
3867
|
export type EuiButtonEmptySizes = (typeof SIZES)[number];
|
|
3823
3868
|
export const FLUSH_TYPES: readonly ["left", "right", "both"];
|
|
@@ -3829,8 +3874,15 @@ declare module '@elastic/eui/src/components/button/button_empty/button_empty' {
|
|
|
3829
3874
|
export interface CommonEuiButtonEmptyProps extends EuiButtonDisplayContentProps, CommonProps {
|
|
3830
3875
|
/**
|
|
3831
3876
|
* Any of the named color palette options.
|
|
3832
|
-
|
|
3833
|
-
|
|
3877
|
+
*
|
|
3878
|
+
* Do not use the following colors for standalone buttons directly,
|
|
3879
|
+
* they exist to serve other components:
|
|
3880
|
+
* - accent
|
|
3881
|
+
* - warning
|
|
3882
|
+
* - neutral
|
|
3883
|
+
* - risk
|
|
3884
|
+
*/
|
|
3885
|
+
color?: _EuiExtendedButtonColor;
|
|
3834
3886
|
size?: EuiButtonEmptySizes;
|
|
3835
3887
|
/**
|
|
3836
3888
|
* Ensure the text of the button sits flush to the left, right, or both sides of its container
|
|
@@ -3858,7 +3910,8 @@ declare module '@elastic/eui/src/components/button/button_empty/button_empty' {
|
|
|
3858
3910
|
* Object of props passed to the `<span>` wrapping the button's content
|
|
3859
3911
|
*/
|
|
3860
3912
|
contentProps?: CommonProps & EuiButtonDisplayContentType;
|
|
3861
|
-
}
|
|
3913
|
+
}
|
|
3914
|
+
type EuiButtonEmptyPropsForAnchor = PropsForAnchor<CommonEuiButtonEmptyProps>;
|
|
3862
3915
|
export type EuiButtonEmptyPropsForButton = PropsForButton<CommonEuiButtonEmptyProps>;
|
|
3863
3916
|
export type EuiButtonEmptyProps = ExclusiveUnion<EuiButtonEmptyPropsForAnchor, EuiButtonEmptyPropsForButton>;
|
|
3864
3917
|
export const EuiButtonEmpty: FunctionComponent<EuiButtonEmptyProps>;
|
|
@@ -3887,16 +3940,24 @@ declare module '@elastic/eui/src/components/button/button_icon/button_icon' {
|
|
|
3887
3940
|
import { AnchorHTMLAttributes, ButtonHTMLAttributes, FunctionComponent, Ref } from 'react';
|
|
3888
3941
|
import { CommonProps, ExclusiveUnion, PropsForAnchor, PropsForButton } from '@elastic/eui/src/components/common';
|
|
3889
3942
|
import { IconType, IconSize } from '@elastic/eui/src/components/icon';
|
|
3890
|
-
import {
|
|
3943
|
+
import { _EuiExtendedButtonColor } from '@elastic/eui/src/global_styling/mixins/_button';
|
|
3891
3944
|
export const SIZES: readonly ["xs", "s", "m"];
|
|
3892
3945
|
export type EuiButtonIconSizes = (typeof SIZES)[number];
|
|
3893
|
-
export const DISPLAYS: readonly ["base", "empty", "fill"];
|
|
3946
|
+
export const DISPLAYS: readonly ["base", "empty", "fill"];
|
|
3947
|
+
type EuiButtonIconDisplay = (typeof DISPLAYS)[number];
|
|
3894
3948
|
export interface EuiButtonIconProps extends CommonProps {
|
|
3895
3949
|
iconType: IconType;
|
|
3896
3950
|
/**
|
|
3897
3951
|
* Any of the named color palette options.
|
|
3898
|
-
|
|
3899
|
-
|
|
3952
|
+
*
|
|
3953
|
+
* Do not use the following colors for standalone buttons directly,
|
|
3954
|
+
* they exist to serve other components:
|
|
3955
|
+
* - accent
|
|
3956
|
+
* - warning
|
|
3957
|
+
* - neutral
|
|
3958
|
+
* - risk
|
|
3959
|
+
*/
|
|
3960
|
+
color?: _EuiExtendedButtonColor;
|
|
3900
3961
|
'aria-label'?: string;
|
|
3901
3962
|
'aria-labelledby'?: string;
|
|
3902
3963
|
isDisabled?: boolean;
|
|
@@ -3936,7 +3997,8 @@ declare module '@elastic/eui/src/components/button/button_icon/button_icon' {
|
|
|
3936
3997
|
type?: ButtonHTMLAttributes<HTMLButtonElement>['type'];
|
|
3937
3998
|
} & PropsForButton<EuiButtonIconProps, {
|
|
3938
3999
|
buttonRef?: Ref<HTMLButtonElement>;
|
|
3939
|
-
}>;
|
|
4000
|
+
}>;
|
|
4001
|
+
type Props = ExclusiveUnion<EuiButtonIconPropsForAnchor, EuiButtonIconPropsForButton>;
|
|
3940
4002
|
export const EuiButtonIcon: FunctionComponent<Props>;
|
|
3941
4003
|
export {};
|
|
3942
4004
|
|
|
@@ -3997,10 +4059,10 @@ declare module '@elastic/eui/src/components/form/form.styles' {
|
|
|
3997
4059
|
};
|
|
3998
4060
|
export const euiFormControlText: (euiThemeContext: UseEuiTheme) => string;
|
|
3999
4061
|
export const euiFormControlDefaultShadow: (euiThemeContext: UseEuiTheme, { withBorder, withBackground, withBackgroundColor, withBackgroundAnimation, }?: {
|
|
4000
|
-
withBorder?: boolean
|
|
4001
|
-
withBackground?: boolean
|
|
4002
|
-
withBackgroundColor?: boolean
|
|
4003
|
-
withBackgroundAnimation?: boolean
|
|
4062
|
+
withBorder?: boolean;
|
|
4063
|
+
withBackground?: boolean;
|
|
4064
|
+
withBackgroundColor?: boolean;
|
|
4065
|
+
withBackgroundAnimation?: boolean;
|
|
4004
4066
|
}) => string;
|
|
4005
4067
|
export const euiFormControlFocusStyles: (euiThemeContext: UseEuiTheme) => string;
|
|
4006
4068
|
export const euiFormControlInvalidStyles: (euiThemeContext: UseEuiTheme) => string;
|
|
@@ -4073,6 +4135,7 @@ declare module '@elastic/eui/src/components/button/button_group/button_group_but
|
|
|
4073
4135
|
};
|
|
4074
4136
|
compressed: SerializedStyles;
|
|
4075
4137
|
disabledAndSelected: SerializedStyles;
|
|
4138
|
+
hasBorder: string;
|
|
4076
4139
|
tooltipWrapper: SerializedStyles;
|
|
4077
4140
|
content: {
|
|
4078
4141
|
euiButtonGroupButton__content: SerializedStyles;
|
|
@@ -4083,12 +4146,14 @@ declare module '@elastic/eui/src/components/button/button_group/button_group_but
|
|
|
4083
4146
|
euiButtonGroupButton__iconOnly: SerializedStyles;
|
|
4084
4147
|
};
|
|
4085
4148
|
};
|
|
4086
|
-
export const _compressedButtonFocusColors: (euiThemeContext: UseEuiTheme) => Record<"text" | "primary" | "accent" | "accentSecondary" | "success" | "warning" | "danger" | "disabled"
|
|
4149
|
+
export const _compressedButtonFocusColors: (euiThemeContext: UseEuiTheme) => Record<"text" | "primary" | "accent" | "accentSecondary" | "success" | "warning" | "danger" | "disabled", SerializedStyles>;
|
|
4087
4150
|
|
|
4088
4151
|
}
|
|
4089
4152
|
declare module '@elastic/eui/src/components/button/button_group/button_group_button' {
|
|
4090
4153
|
import { FunctionComponent, MouseEventHandler } from 'react';
|
|
4091
|
-
import {
|
|
4154
|
+
import { EuiButtonDisplayCommonProps } from '@elastic/eui/src/components/button/button_display/_button_display';
|
|
4155
|
+
import { EuiButtonGroupOptionProps, EuiButtonGroupProps } from '@elastic/eui/src/components/button/button_group/button_group';
|
|
4156
|
+
type Props = EuiButtonGroupOptionProps & {
|
|
4092
4157
|
/**
|
|
4093
4158
|
* Styles the selected button to look selected (usually with `fill`)
|
|
4094
4159
|
*/
|
|
@@ -4109,6 +4174,7 @@ declare module '@elastic/eui/src/components/button/button_group/button_group_but
|
|
|
4109
4174
|
* Inherit from EuiButtonGroup
|
|
4110
4175
|
*/
|
|
4111
4176
|
onClick: MouseEventHandler<HTMLButtonElement>;
|
|
4177
|
+
contentProps?: EuiButtonDisplayCommonProps['contentProps'];
|
|
4112
4178
|
};
|
|
4113
4179
|
export const EuiButtonGroupButton: FunctionComponent<Props>;
|
|
4114
4180
|
export {};
|
|
@@ -4190,6 +4256,11 @@ declare module '@elastic/eui/src/components/button/button_group/button_group' {
|
|
|
4190
4256
|
legend: string;
|
|
4191
4257
|
/**
|
|
4192
4258
|
* Any of the named color palette options.
|
|
4259
|
+
*
|
|
4260
|
+
* Do not use the following colors for standalone buttons directly,
|
|
4261
|
+
* they exist to serve other components:
|
|
4262
|
+
* - accent
|
|
4263
|
+
* - warning
|
|
4193
4264
|
*/
|
|
4194
4265
|
color?: _EuiButtonColor;
|
|
4195
4266
|
/**
|
|
@@ -4240,7 +4311,8 @@ declare module '@elastic/eui/src/components/button/button_group/button_group' {
|
|
|
4240
4311
|
* @deprecated
|
|
4241
4312
|
*/
|
|
4242
4313
|
name?: never;
|
|
4243
|
-
});
|
|
4314
|
+
});
|
|
4315
|
+
type Props = Omit<HTMLAttributes<HTMLFieldSetElement>, 'onChange' | 'color'> & EuiButtonGroupProps;
|
|
4244
4316
|
export const EuiButtonGroup: FunctionComponent<Props>;
|
|
4245
4317
|
export {};
|
|
4246
4318
|
|
|
@@ -4357,7 +4429,8 @@ declare module '@elastic/eui/src/components/context_menu/context_menu_item' {
|
|
|
4357
4429
|
* Reduce the size to `s` when in need of a more compressed menu
|
|
4358
4430
|
*/
|
|
4359
4431
|
size?: (typeof SIZES)[number];
|
|
4360
|
-
}
|
|
4432
|
+
}
|
|
4433
|
+
type Props = CommonProps & Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'type' | 'onClick' | 'disabled'> & EuiContextMenuItemProps;
|
|
4361
4434
|
export const LAYOUT_ALIGN: EuiContextMenuItemLayoutAlignment[];
|
|
4362
4435
|
export const EuiContextMenuItem: FunctionComponent<Props>;
|
|
4363
4436
|
export {};
|
|
@@ -4421,7 +4494,8 @@ declare module '@elastic/eui/src/components/context_menu/context_menu_panel' {
|
|
|
4421
4494
|
* Alters the size of the items and the title
|
|
4422
4495
|
*/
|
|
4423
4496
|
size?: (typeof SIZES)[number];
|
|
4424
|
-
};
|
|
4497
|
+
};
|
|
4498
|
+
type Props = EuiContextMenuPanelProps;
|
|
4425
4499
|
interface State {
|
|
4426
4500
|
prevProps: {
|
|
4427
4501
|
items: Props['items'];
|
|
@@ -4441,7 +4515,7 @@ declare module '@elastic/eui/src/components/context_menu/context_menu_panel' {
|
|
|
4441
4515
|
private initialPopoverParent?;
|
|
4442
4516
|
constructor(props: WithEuiStylesMemoizerProps & Props);
|
|
4443
4517
|
findMenuItems: () => void;
|
|
4444
|
-
focusMenuItem: (direction:
|
|
4518
|
+
focusMenuItem: (direction: "up" | "down") => void;
|
|
4445
4519
|
onKeyDown: (event: React.KeyboardEvent<HTMLDivElement>) => void;
|
|
4446
4520
|
takeInitialFocus(): void;
|
|
4447
4521
|
reclaimPopoverFocus: () => void;
|
|
@@ -4547,7 +4621,7 @@ declare module '@elastic/eui/src/components/context_menu/context_menu' {
|
|
|
4547
4621
|
componentDidUpdate(prevProps: EuiContextMenuProps): void;
|
|
4548
4622
|
hasPreviousPanel: (panelId: EuiContextMenuPanelId) => boolean;
|
|
4549
4623
|
showPanel(panelId: EuiContextMenuPanelId, direction?: EuiContextMenuPanelTransitionDirection): void;
|
|
4550
|
-
showNextPanel: (itemIndex?: number
|
|
4624
|
+
showNextPanel: (itemIndex?: number) => void;
|
|
4551
4625
|
showPreviousPanel: () => void;
|
|
4552
4626
|
onIncomingPanelHeightChange: (height: number) => void;
|
|
4553
4627
|
onOutGoingPanelTransitionComplete: () => void;
|
|
@@ -4611,14 +4685,16 @@ declare module '@elastic/eui/src/components/flex/flex_group.styles' {
|
|
|
4611
4685
|
|
|
4612
4686
|
}
|
|
4613
4687
|
declare module '@elastic/eui/src/components/flex/flex_group' {
|
|
4614
|
-
import
|
|
4688
|
+
import { ComponentPropsWithoutRef, ElementType, PropsWithChildren, ReactElement, Ref } from 'react';
|
|
4615
4689
|
import { CommonProps } from '@elastic/eui/src/components/common';
|
|
4616
4690
|
export const GUTTER_SIZES: readonly ["none", "xs", "s", "m", "l", "xl"];
|
|
4617
4691
|
export type EuiFlexGroupGutterSize = (typeof GUTTER_SIZES)[number];
|
|
4618
4692
|
export const ALIGN_ITEMS: readonly ["stretch", "flexStart", "flexEnd", "center", "baseline"];
|
|
4619
4693
|
export type FlexGroupAlignItems = (typeof ALIGN_ITEMS)[number];
|
|
4620
|
-
export const JUSTIFY_CONTENTS: readonly ["flexStart", "flexEnd", "center", "spaceBetween", "spaceAround", "spaceEvenly"];
|
|
4621
|
-
|
|
4694
|
+
export const JUSTIFY_CONTENTS: readonly ["flexStart", "flexEnd", "center", "spaceBetween", "spaceAround", "spaceEvenly"];
|
|
4695
|
+
type FlexGroupJustifyContent = (typeof JUSTIFY_CONTENTS)[number];
|
|
4696
|
+
export const DIRECTIONS: readonly ["row", "rowReverse", "column", "columnReverse"];
|
|
4697
|
+
type FlexGroupDirection = (typeof DIRECTIONS)[number];
|
|
4622
4698
|
export type EuiFlexGroupProps<TComponent extends ElementType = 'div'> = PropsWithChildren & CommonProps & ComponentPropsWithoutRef<TComponent> & {
|
|
4623
4699
|
alignItems?: FlexGroupAlignItems;
|
|
4624
4700
|
/**
|
|
@@ -4640,32 +4716,10 @@ declare module '@elastic/eui/src/components/flex/flex_group' {
|
|
|
4640
4716
|
responsive?: boolean;
|
|
4641
4717
|
wrap?: boolean;
|
|
4642
4718
|
};
|
|
4643
|
-
export const EuiFlexGroup: (<TComponent extends
|
|
4644
|
-
|
|
4645
|
-
} & CommonProps & React.PropsWithoutRef<React.ComponentProps<TComponent>> & {
|
|
4646
|
-
alignItems?: "center" | "baseline" | "stretch" | "flexStart" | "flexEnd" | undefined;
|
|
4647
|
-
/**
|
|
4648
|
-
* Customize the component type that is rendered.
|
|
4649
|
-
*
|
|
4650
|
-
* It can be any valid React component type like a tag name string
|
|
4651
|
-
* such as `'div'` or `'span'`, a React component (a function, a class,
|
|
4652
|
-
* or an exotic component like `memo()`).
|
|
4653
|
-
*
|
|
4654
|
-
* `EuiFlexGroup` accepts and forwards all extra props to the custom
|
|
4655
|
-
* component.
|
|
4656
|
-
*
|
|
4657
|
-
* @default "div"
|
|
4658
|
-
*/
|
|
4659
|
-
component?: TComponent | undefined;
|
|
4660
|
-
direction?: "row" | "column" | "rowReverse" | "columnReverse" | undefined;
|
|
4661
|
-
gutterSize?: "s" | "xs" | "m" | "l" | "xl" | "none" | undefined;
|
|
4662
|
-
justifyContent?: "center" | "flexStart" | "flexEnd" | "spaceBetween" | "spaceAround" | "spaceEvenly" | undefined;
|
|
4663
|
-
responsive?: boolean | undefined;
|
|
4664
|
-
wrap?: boolean | undefined;
|
|
4665
|
-
} & {
|
|
4666
|
-
ref?: React.Ref<TComponentRef> | undefined;
|
|
4719
|
+
export const EuiFlexGroup: (<TComponent extends ElementType = "div", TComponentRef = ReactElement<any, TComponent>>(props: EuiFlexGroupProps<TComponent> & {
|
|
4720
|
+
ref?: Ref<TComponentRef>;
|
|
4667
4721
|
}) => ReactElement) & {
|
|
4668
|
-
displayName?: string
|
|
4722
|
+
displayName?: string;
|
|
4669
4723
|
};
|
|
4670
4724
|
export {};
|
|
4671
4725
|
|
|
@@ -4767,7 +4821,7 @@ declare module '@elastic/eui/src/components/flex/flex_item.styles' {
|
|
|
4767
4821
|
|
|
4768
4822
|
}
|
|
4769
4823
|
declare module '@elastic/eui/src/components/flex/flex_item' {
|
|
4770
|
-
import
|
|
4824
|
+
import { ElementType, ComponentPropsWithoutRef, PropsWithChildren, Ref, ReactElement } from 'react';
|
|
4771
4825
|
import { CommonProps } from '@elastic/eui/src/components/common';
|
|
4772
4826
|
export type EuiFlexItemProps<TComponent extends ElementType = 'div'> = PropsWithChildren & CommonProps & ComponentPropsWithoutRef<TComponent> & {
|
|
4773
4827
|
grow?: boolean | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | null;
|
|
@@ -4790,32 +4844,10 @@ declare module '@elastic/eui/src/components/flex/flex_item' {
|
|
|
4790
4844
|
*/
|
|
4791
4845
|
component?: TComponent;
|
|
4792
4846
|
};
|
|
4793
|
-
export const EuiFlexItem: (<TComponent extends
|
|
4794
|
-
|
|
4795
|
-
} & CommonProps & React.PropsWithoutRef<React.ComponentProps<TComponent>> & {
|
|
4796
|
-
grow?: boolean | 0 | 2 | 1 | 3 | 8 | 6 | 4 | 5 | 7 | 9 | 10 | null | undefined;
|
|
4797
|
-
/**
|
|
4798
|
-
* Customize the component type that is rendered.
|
|
4799
|
-
*
|
|
4800
|
-
* It can be any valid React component type like a tag name string
|
|
4801
|
-
* such as `'div'` or `'span'`, a React component (a function, a class,
|
|
4802
|
-
* or an exotic component like `memo()`).
|
|
4803
|
-
*
|
|
4804
|
-
* `<EuiFlexItem>` accepts and forwards all extra props to the custom
|
|
4805
|
-
* component.
|
|
4806
|
-
*
|
|
4807
|
-
* @example
|
|
4808
|
-
* // Renders a <button> element
|
|
4809
|
-
* <EuiFlexItem component="button">
|
|
4810
|
-
* Submit form
|
|
4811
|
-
* </EuiFlexItem>
|
|
4812
|
-
* @default "div"
|
|
4813
|
-
*/
|
|
4814
|
-
component?: TComponent | undefined;
|
|
4815
|
-
} & {
|
|
4816
|
-
ref?: React.Ref<TComponentRef> | undefined;
|
|
4847
|
+
export const EuiFlexItem: (<TComponent extends ElementType, TComponentRef = ReactElement<any, TComponent>>(props: EuiFlexItemProps<TComponent> & {
|
|
4848
|
+
ref?: Ref<TComponentRef>;
|
|
4817
4849
|
}) => ReactElement) & {
|
|
4818
|
-
displayName?: string
|
|
4850
|
+
displayName?: string;
|
|
4819
4851
|
};
|
|
4820
4852
|
|
|
4821
4853
|
}
|
|
@@ -4844,7 +4876,10 @@ declare module '@elastic/eui/src/components/pagination/pagination_button' {
|
|
|
4844
4876
|
isActive?: boolean;
|
|
4845
4877
|
pageIndex: number;
|
|
4846
4878
|
totalPages?: number;
|
|
4847
|
-
};
|
|
4879
|
+
};
|
|
4880
|
+
type EuiPaginationButtonPropsForAnchor = PropsForAnchor<EuiPaginationButtonProps>;
|
|
4881
|
+
type EuiPaginationButtonPropsForButton = PropsForButton<EuiPaginationButtonProps>;
|
|
4882
|
+
type Props = ExclusiveUnion<EuiPaginationButtonPropsForAnchor, EuiPaginationButtonPropsForButton>;
|
|
4848
4883
|
export const EuiPaginationButton: FunctionComponent<Props>;
|
|
4849
4884
|
export {};
|
|
4850
4885
|
|
|
@@ -4907,7 +4942,8 @@ declare module '@elastic/eui/src/components/pagination/pagination' {
|
|
|
4907
4942
|
* Remove completely with `false` or provide your own list of responsive breakpoints.
|
|
4908
4943
|
*/
|
|
4909
4944
|
responsive?: false | EuiBreakpointSize[];
|
|
4910
|
-
}
|
|
4945
|
+
}
|
|
4946
|
+
type Props = CommonProps & HTMLAttributes<HTMLDivElement> & EuiPaginationProps;
|
|
4911
4947
|
export const EuiPagination: FunctionComponent<Props>;
|
|
4912
4948
|
export {};
|
|
4913
4949
|
|
|
@@ -5030,7 +5066,10 @@ declare module '@elastic/eui/src/components/basic_table/action_types' {
|
|
|
5030
5066
|
import { EuiIconType } from '@elastic/eui/src/components/icon/icon';
|
|
5031
5067
|
import { EuiButtonIconProps } from '@elastic/eui/src/components/button/button_icon/button_icon';
|
|
5032
5068
|
import { EuiButtonEmptyProps } from '@elastic/eui/src/components/button/button_empty';
|
|
5033
|
-
import { ExclusiveUnion } from '@elastic/eui/src/components/common';
|
|
5069
|
+
import { ExclusiveUnion } from '@elastic/eui/src/components/common';
|
|
5070
|
+
type IconFunction<T extends object> = (item: T) => EuiIconType;
|
|
5071
|
+
type ButtonColor = EuiButtonIconProps['color'] | EuiButtonEmptyProps['color'];
|
|
5072
|
+
type EuiButtonIconColorFunction<T> = (item: T) => ButtonColor;
|
|
5034
5073
|
export interface DefaultItemActionBase<T extends object> {
|
|
5035
5074
|
/**
|
|
5036
5075
|
* The display name of the action (will render as visible text if rendered within a collapsed menu)
|
|
@@ -5106,7 +5145,7 @@ declare module '@elastic/eui/src/components/basic_table/action_types' {
|
|
|
5106
5145
|
enabled?: (item: T) => boolean;
|
|
5107
5146
|
} & Pick<DefaultItemActionBase<{}>, 'isPrimary' | 'showOnHover'>;
|
|
5108
5147
|
export type Action<T extends object> = DefaultItemAction<T> | CustomItemAction<T>;
|
|
5109
|
-
export const isCustomItemAction: <T extends object>(action:
|
|
5148
|
+
export const isCustomItemAction: <T extends object>(action: DefaultItemAction<T> | CustomItemAction<T>) => action is CustomItemAction<T>;
|
|
5110
5149
|
export const callWithItemIfFunction: <T>(item: T) => <U>(prop: U | ((item: T) => U)) => U;
|
|
5111
5150
|
export {};
|
|
5112
5151
|
|
|
@@ -5117,7 +5156,7 @@ declare module '@elastic/eui/src/services/sort/sort_direction' {
|
|
|
5117
5156
|
export const SortDirection: Readonly<{
|
|
5118
5157
|
ASC: "asc";
|
|
5119
5158
|
DESC: "desc";
|
|
5120
|
-
isAsc(direction: Direction):
|
|
5159
|
+
isAsc(direction: Direction): direction is "asc";
|
|
5121
5160
|
reverse(direction: Direction): "desc" | "asc";
|
|
5122
5161
|
}>;
|
|
5123
5162
|
export const SortDirectionType: PropTypes.Requireable<"desc" | "asc">;
|
|
@@ -5130,12 +5169,13 @@ declare module '@elastic/eui/src/services/objects' {
|
|
|
5130
5169
|
|
|
5131
5170
|
}
|
|
5132
5171
|
declare module '@elastic/eui/src/services/sort/comparators' {
|
|
5133
|
-
export type Primitive = string | boolean | number | null | undefined;
|
|
5172
|
+
export type Primitive = string | boolean | number | null | undefined;
|
|
5173
|
+
type Comparator<T = Primitive> = (a: T, b: T) => number;
|
|
5134
5174
|
export const Comparators: Readonly<{
|
|
5135
|
-
default: (direction?:
|
|
5175
|
+
default: (direction?: "asc" | "desc") => (v1: Primitive, v2: Primitive) => number;
|
|
5136
5176
|
reverse: <T>(comparator: Comparator<T>) => Comparator<T>;
|
|
5137
|
-
value<
|
|
5138
|
-
property<
|
|
5177
|
+
value<T>(valueCallback: (value: T) => Primitive, comparator?: Comparator): Comparator<T>;
|
|
5178
|
+
property<T extends object>(prop: string, comparator?: Comparator): Comparator<T>;
|
|
5139
5179
|
}>;
|
|
5140
5180
|
export {};
|
|
5141
5181
|
|
|
@@ -5520,7 +5560,8 @@ declare module '@elastic/eui/src/components/table/table_row' {
|
|
|
5520
5560
|
*/
|
|
5521
5561
|
isExpandedRow?: boolean;
|
|
5522
5562
|
onClick?: MouseEventHandler<HTMLTableRowElement> & KeyboardEventHandler<HTMLTableRowElement>;
|
|
5523
|
-
}
|
|
5563
|
+
}
|
|
5564
|
+
type Props = CommonProps & HTMLAttributes<HTMLTableRowElement> & EuiTableRowProps;
|
|
5524
5565
|
export const EuiTableRow: FunctionComponent<Props>;
|
|
5525
5566
|
export {};
|
|
5526
5567
|
|
|
@@ -5687,7 +5728,7 @@ declare module '@elastic/eui/src/components/observer/mutation_observer/mutation_
|
|
|
5687
5728
|
onMutation: MutationCallback;
|
|
5688
5729
|
beginObserve: () => void;
|
|
5689
5730
|
}
|
|
5690
|
-
export const useMutationObserver: (container: Element | null, callback: MutationCallback, observerOptions?: MutationObserverInit
|
|
5731
|
+
export const useMutationObserver: (container: Element | null, callback: MutationCallback, observerOptions?: MutationObserverInit) => void;
|
|
5691
5732
|
|
|
5692
5733
|
}
|
|
5693
5734
|
declare module '@elastic/eui/src/components/observer/mutation_observer' {
|
|
@@ -5773,7 +5814,7 @@ declare module '@elastic/eui/src/components/panel/panel' {
|
|
|
5773
5814
|
export type PanelPaddingSize = (typeof _SIZES)[number];
|
|
5774
5815
|
export const BORDER_RADII: readonly ["none", "m"];
|
|
5775
5816
|
export type PanelBorderRadius = (typeof BORDER_RADII)[number];
|
|
5776
|
-
export const COLORS: readonly ["transparent", "plain", "subdued", "highlighted", "accent", "accentSecondary", "primary", "
|
|
5817
|
+
export const COLORS: readonly ["transparent", "plain", "subdued", "highlighted", "accent", "accentSecondary", "primary", "success", "warning", "danger", "neutral", "risk"];
|
|
5777
5818
|
export type PanelColor = _EuiBackgroundColor | 'highlighted';
|
|
5778
5819
|
export interface _EuiPanelProps extends CommonProps {
|
|
5779
5820
|
/**
|
|
@@ -5813,7 +5854,7 @@ declare module '@elastic/eui/src/components/panel/panel' {
|
|
|
5813
5854
|
}
|
|
5814
5855
|
export type EuiPanelProps = ExclusiveUnion<_EuiPanelButtonlike, _EuiPanelDivlike>;
|
|
5815
5856
|
export const EuiPanel: FunctionComponent<EuiPanelProps>;
|
|
5816
|
-
export const _canRenderHighContrastBorder: ({ color, hasBorder, }: Pick<_EuiPanelProps,
|
|
5857
|
+
export const _canRenderHighContrastBorder: ({ color, hasBorder, }: Pick<_EuiPanelProps, "color" | "hasBorder">) => boolean;
|
|
5817
5858
|
export {};
|
|
5818
5859
|
|
|
5819
5860
|
}
|
|
@@ -5856,7 +5897,8 @@ declare module '@elastic/eui/src/components/popover/popover_panel/_popover_panel
|
|
|
5856
5897
|
export const EuiPopoverPanelContext: React.Context<{
|
|
5857
5898
|
paddingSize: EuiPaddingSize;
|
|
5858
5899
|
}>;
|
|
5859
|
-
export type EuiPopoverPanelProps = _EuiPanelDivlike;
|
|
5900
|
+
export type EuiPopoverPanelProps = _EuiPanelDivlike;
|
|
5901
|
+
type EuiPopoverPanelInternalProps = {
|
|
5860
5902
|
isOpen?: boolean;
|
|
5861
5903
|
isAttached?: boolean;
|
|
5862
5904
|
position?: EuiPopoverArrowPositions | null;
|
|
@@ -6034,7 +6076,8 @@ declare module '@elastic/eui/src/components/popover/popover' {
|
|
|
6034
6076
|
arrowPosition: EuiPopoverArrowPositions | null;
|
|
6035
6077
|
openPosition: any;
|
|
6036
6078
|
isOpenStable: boolean;
|
|
6037
|
-
}
|
|
6079
|
+
}
|
|
6080
|
+
type PropsWithDefaults = Props & {
|
|
6038
6081
|
anchorPosition: PopoverAnchorPosition;
|
|
6039
6082
|
hasArrow: boolean;
|
|
6040
6083
|
isOpen: boolean;
|
|
@@ -6327,7 +6370,7 @@ declare module '@elastic/eui/src/components/form/form_control_layout/form_contro
|
|
|
6327
6370
|
color?: IconColor;
|
|
6328
6371
|
ref?: EuiFormControlLayoutCustomIconProps['iconRef'];
|
|
6329
6372
|
};
|
|
6330
|
-
export const isIconShape: (icon: EuiFormControlLayoutIconsProps[
|
|
6373
|
+
export const isIconShape: (icon: EuiFormControlLayoutIconsProps["icon"]) => icon is IconShape;
|
|
6331
6374
|
export interface EuiFormControlLayoutIconsProps {
|
|
6332
6375
|
icon?: IconType | IconShape;
|
|
6333
6376
|
side?: (typeof ICON_SIDES)[number];
|
|
@@ -6351,13 +6394,13 @@ declare module '@elastic/eui/src/components/form/form_control_layout/form_contro
|
|
|
6351
6394
|
}
|
|
6352
6395
|
declare module '@elastic/eui/src/components/form/form_control_layout/_num_icons' {
|
|
6353
6396
|
import { type EuiFormControlLayoutIconsProps } from '@elastic/eui/src/components/form/form_control_layout/form_control_layout_icons';
|
|
6354
|
-
export const isRightSideIcon: (icon?: EuiFormControlLayoutIconsProps[
|
|
6397
|
+
export const isRightSideIcon: (icon?: EuiFormControlLayoutIconsProps["icon"]) => boolean;
|
|
6355
6398
|
export const getIconAffordanceStyles: ({ icon, clear, isLoading, isInvalid, isDropdown, }: {
|
|
6356
|
-
icon?: EuiFormControlLayoutIconsProps[
|
|
6357
|
-
clear?: EuiFormControlLayoutIconsProps[
|
|
6358
|
-
isLoading?: boolean
|
|
6359
|
-
isInvalid?: boolean
|
|
6360
|
-
isDropdown?: boolean
|
|
6399
|
+
icon?: EuiFormControlLayoutIconsProps["icon"];
|
|
6400
|
+
clear?: EuiFormControlLayoutIconsProps["clear"] | boolean;
|
|
6401
|
+
isLoading?: boolean;
|
|
6402
|
+
isInvalid?: boolean;
|
|
6403
|
+
isDropdown?: boolean;
|
|
6361
6404
|
}) => {
|
|
6362
6405
|
[k: string]: number;
|
|
6363
6406
|
} | undefined;
|
|
@@ -6395,7 +6438,9 @@ declare module '@elastic/eui/src/components/form/form_control_layout/form_contro
|
|
|
6395
6438
|
declare module '@elastic/eui/src/components/form/form_control_layout/form_control_layout' {
|
|
6396
6439
|
import { FunctionComponent, HTMLAttributes, ReactElement, ReactNode } from 'react';
|
|
6397
6440
|
import { CommonProps } from '@elastic/eui/src/components/common';
|
|
6398
|
-
import { EuiFormControlLayoutIconsProps } from '@elastic/eui/src/components/form/form_control_layout/form_control_layout_icons';
|
|
6441
|
+
import { EuiFormControlLayoutIconsProps } from '@elastic/eui/src/components/form/form_control_layout/form_control_layout_icons';
|
|
6442
|
+
type StringOrReactElement = string | ReactElement;
|
|
6443
|
+
type PrependAppendType = StringOrReactElement | StringOrReactElement[];
|
|
6399
6444
|
export type EuiFormControlLayoutProps = CommonProps & HTMLAttributes<HTMLDivElement> & {
|
|
6400
6445
|
/**
|
|
6401
6446
|
* Creates an input group with element(s) coming before children.
|
|
@@ -6525,7 +6570,8 @@ declare module '@elastic/eui/src/components/form/super_select/super_select_item'
|
|
|
6525
6570
|
dropdownDisplay?: ReactNode;
|
|
6526
6571
|
disabled?: boolean;
|
|
6527
6572
|
'data-test-subj'?: string;
|
|
6528
|
-
}
|
|
6573
|
+
}
|
|
6574
|
+
type EuiSuperSelectItemProps = ComponentProps<typeof EuiContextMenuItem> & {
|
|
6529
6575
|
hasDividers?: boolean;
|
|
6530
6576
|
};
|
|
6531
6577
|
export const EuiSuperSelectItem: FunctionComponent<EuiSuperSelectItemProps>;
|
|
@@ -6689,9 +6735,9 @@ declare module '@elastic/eui/src/components/color_picker/utils' {
|
|
|
6689
6735
|
export const HSV_FALLBACK: ColorSpaces['hsv'];
|
|
6690
6736
|
export const RGB_FALLBACK: ColorSpaces['rgba'];
|
|
6691
6737
|
export const RGB_JOIN = ", ";
|
|
6692
|
-
export const parseColor: (input?: string | null
|
|
6738
|
+
export const parseColor: (input?: string | null) => string | number[] | null;
|
|
6693
6739
|
export const chromaValid: (color: string | number[]) => boolean;
|
|
6694
|
-
export const getChromaColor: (input?: string | null
|
|
6740
|
+
export const getChromaColor: (input?: string | null, allowOpacity?: boolean) => chroma.Color | null;
|
|
6695
6741
|
export const getLinearGradient: (palette: string[] | PaletteColorStop[]) => string;
|
|
6696
6742
|
export const getFixedLinearGradient: (palette: string[] | PaletteColorStop[]) => {
|
|
6697
6743
|
color: string;
|
|
@@ -6950,10 +6996,10 @@ declare module '@elastic/eui/src/services/color/contrast' {
|
|
|
6950
6996
|
* @param themeOrBackground - Color to use as the contrast basis or just pass EuiTheme
|
|
6951
6997
|
*/
|
|
6952
6998
|
export const makeHighContrastColor: (_foreground: string, ratio?: number) => (themeOrBackground: string | {
|
|
6953
|
-
[key: string]: any;
|
|
6954
6999
|
colors: {
|
|
6955
7000
|
body: string;
|
|
6956
7001
|
};
|
|
7002
|
+
[key: string]: any;
|
|
6957
7003
|
}) => string;
|
|
6958
7004
|
/**
|
|
6959
7005
|
* Creates a new color with increased contrast
|
|
@@ -6964,10 +7010,10 @@ declare module '@elastic/eui/src/services/color/contrast' {
|
|
|
6964
7010
|
* @param themeOrBackground - Color to use as the contrast basis
|
|
6965
7011
|
*/
|
|
6966
7012
|
export const makeDisabledContrastColor: (color: string, ratio?: number) => (themeOrBackground: string | {
|
|
6967
|
-
[key: string]: any;
|
|
6968
7013
|
colors: {
|
|
6969
7014
|
body: string;
|
|
6970
7015
|
};
|
|
7016
|
+
[key: string]: any;
|
|
6971
7017
|
}) => string;
|
|
6972
7018
|
|
|
6973
7019
|
}
|
|
@@ -7018,6 +7064,16 @@ declare module '@elastic/eui/src/services/theme/provider' {
|
|
|
7018
7064
|
}
|
|
7019
7065
|
export const EuiThemeProvider: <T extends {} = {}>({ theme: _system, colorMode: _colorMode, highContrastMode: _highContrastMode, modify: _modifications, children, wrapperProps, }: EuiThemeProviderProps<T>) => React.JSX.Element;
|
|
7020
7066
|
|
|
7067
|
+
}
|
|
7068
|
+
declare module '@elastic/eui/src/services/theme/theme_variant' {
|
|
7069
|
+
import { EuiThemeVariantFlags, UseEuiTheme } from '@elastic/eui-theme-common';
|
|
7070
|
+
export const isEuiThemeRefreshVariant: ({ euiTheme }: UseEuiTheme, flag: keyof EuiThemeVariantFlags) => boolean;
|
|
7071
|
+
/**
|
|
7072
|
+
* Util to retrieve visual variant for UI elements
|
|
7073
|
+
* Note: Temporary only - will be removed once the visual refresh is completed.
|
|
7074
|
+
*/
|
|
7075
|
+
export const useEuiThemeRefreshVariant: (flag: keyof EuiThemeVariantFlags) => boolean;
|
|
7076
|
+
|
|
7021
7077
|
}
|
|
7022
7078
|
declare module '@elastic/eui/src/services/theme' {
|
|
7023
7079
|
export { EuiSystemContext, EuiThemeContext, EuiNestedThemeContext, EuiModificationsContext, EuiColorModeContext, EuiHighContrastModeContext, } from '@elastic/eui/src/services/theme/context';
|
|
@@ -7030,6 +7086,7 @@ declare module '@elastic/eui/src/services/theme' {
|
|
|
7030
7086
|
export { buildTheme, computed, isInverseColorMode, getColorMode, getComputed, getOn, mergeDeep, setOn, Computed, } from '@elastic/eui/src/services/theme/utils';
|
|
7031
7087
|
export type { ComputedThemeShape, EuiThemeColorMode, EuiThemeColorModeStandard, EuiThemeHighContrastMode, EuiThemeHighContrastModeProp, EuiThemeComputed, EuiThemeModifications, EuiThemeShape, EuiThemeSystem, } from '@elastic/eui/src/services/theme/types';
|
|
7032
7088
|
export { COLOR_MODES_STANDARD } from '@elastic/eui/src/services/theme/types';
|
|
7089
|
+
export * from '@elastic/eui/src/services/theme/theme_variant';
|
|
7033
7090
|
|
|
7034
7091
|
}
|
|
7035
7092
|
declare module '@elastic/eui/src/services/breakpoint/is_within_hooks' {
|
|
@@ -7143,7 +7200,7 @@ declare module '@elastic/eui/src/services/findElement' {
|
|
|
7143
7200
|
* returns a DOM node.
|
|
7144
7201
|
*/
|
|
7145
7202
|
export type ElementTarget = HTMLElement | string | (() => HTMLElement);
|
|
7146
|
-
export const findElementBySelectorOrRef: (elementTarget?: ElementTarget
|
|
7203
|
+
export const findElementBySelectorOrRef: (elementTarget?: ElementTarget) => HTMLElement | null;
|
|
7147
7204
|
|
|
7148
7205
|
}
|
|
7149
7206
|
declare module '@elastic/eui/src/services/format/format_boolean' {
|
|
@@ -7155,7 +7212,8 @@ declare module '@elastic/eui/src/services/format/format_boolean' {
|
|
|
7155
7212
|
|
|
7156
7213
|
}
|
|
7157
7214
|
declare module '@elastic/eui/src/services/format/format_date' {
|
|
7158
|
-
import moment from 'moment';
|
|
7215
|
+
import moment from 'moment';
|
|
7216
|
+
type CalendarOptions = moment.CalendarSpec & {
|
|
7159
7217
|
refTime?: moment.MomentInput;
|
|
7160
7218
|
};
|
|
7161
7219
|
export const dateFormatAliases: {
|
|
@@ -7171,7 +7229,8 @@ declare module '@elastic/eui/src/services/format/format_date' {
|
|
|
7171
7229
|
calendar: (value: moment.MomentInput, options?: CalendarOptions) => string;
|
|
7172
7230
|
calendarDateTime: (value: moment.MomentInput, options: moment.CalendarSpec) => string;
|
|
7173
7231
|
calendarDate: (value: moment.MomentInput, options: moment.CalendarSpec) => string;
|
|
7174
|
-
};
|
|
7232
|
+
};
|
|
7233
|
+
type DateFormat = keyof typeof dateFormatAliases;
|
|
7175
7234
|
interface FormatDateConfig {
|
|
7176
7235
|
format: DateFormat;
|
|
7177
7236
|
nil: string;
|
|
@@ -7187,7 +7246,7 @@ declare module '@elastic/eui/src/services/format/format_number' {
|
|
|
7187
7246
|
nil: string;
|
|
7188
7247
|
round: boolean;
|
|
7189
7248
|
}
|
|
7190
|
-
export const formatNumber: (value?: number | null
|
|
7249
|
+
export const formatNumber: (value?: number | null, numberFormatOrConfig?: string | Partial<FormatNumberConfig>) => string;
|
|
7191
7250
|
export {};
|
|
7192
7251
|
|
|
7193
7252
|
}
|
|
@@ -7255,9 +7314,9 @@ declare module '@elastic/eui/src/services/security/get_secure_rel_for_target' {
|
|
|
7255
7314
|
* https://www.jitbit.com/alexblog/256-targetblank---the-most-underestimated-vulnerability-ever/
|
|
7256
7315
|
*/
|
|
7257
7316
|
export const getSecureRelForTarget: ({ target, rel, }: {
|
|
7258
|
-
href?: string
|
|
7259
|
-
target?:
|
|
7260
|
-
rel?: string
|
|
7317
|
+
href?: string;
|
|
7318
|
+
target?: "_blank" | "_self" | "_parent" | "_top" | string;
|
|
7319
|
+
rel?: string;
|
|
7261
7320
|
}) => string;
|
|
7262
7321
|
|
|
7263
7322
|
}
|
|
@@ -7335,7 +7394,7 @@ declare module '@elastic/eui/src/services/sort/property_sort' {
|
|
|
7335
7394
|
import { Direction } from '@elastic/eui/src/services/sort/sort_direction';
|
|
7336
7395
|
export const PropertySortType: PropTypes.Requireable<PropTypes.InferProps<{
|
|
7337
7396
|
field: PropTypes.Validator<string>;
|
|
7338
|
-
direction: PropTypes.Validator<"desc" | "asc"
|
|
7397
|
+
direction: PropTypes.Validator<NonNullable<"desc" | "asc">>;
|
|
7339
7398
|
}>>;
|
|
7340
7399
|
export interface PropertySort {
|
|
7341
7400
|
field: string;
|
|
@@ -7411,7 +7470,8 @@ declare module '@elastic/eui/src/services/transition' {
|
|
|
7411
7470
|
|
|
7412
7471
|
}
|
|
7413
7472
|
declare module '@elastic/eui/src/services/window_event/window_event' {
|
|
7414
|
-
import { Component } from 'react';
|
|
7473
|
+
import { Component } from 'react';
|
|
7474
|
+
type EventNames = keyof WindowEventMap;
|
|
7415
7475
|
interface Props<Ev extends EventNames> {
|
|
7416
7476
|
event: Ev;
|
|
7417
7477
|
handler: (this: Window, ev: WindowEventMap[Ev]) => any;
|
|
@@ -7544,7 +7604,8 @@ declare module '@elastic/eui/src/components/accessibility/skip_link/skip_link' {
|
|
|
7544
7604
|
import { FunctionComponent, Ref } from 'react';
|
|
7545
7605
|
import { EuiButtonProps } from '@elastic/eui/src/components/button/button';
|
|
7546
7606
|
import { PropsForAnchor } from '@elastic/eui/src/components/common';
|
|
7547
|
-
export const POSITIONS: readonly ["static", "fixed", "absolute"];
|
|
7607
|
+
export const POSITIONS: readonly ["static", "fixed", "absolute"];
|
|
7608
|
+
type Positions = (typeof POSITIONS)[number];
|
|
7548
7609
|
interface EuiSkipLinkInterface extends EuiButtonProps {
|
|
7549
7610
|
/**
|
|
7550
7611
|
* Change the display position of the element when focused.
|
|
@@ -7613,7 +7674,8 @@ declare module '@elastic/eui/src/components/accordion/accordion_trigger/accordio
|
|
|
7613
7674
|
}
|
|
7614
7675
|
declare module '@elastic/eui/src/components/accordion/accordion_trigger/accordion_button' {
|
|
7615
7676
|
import { FunctionComponent, PropsWithChildren, HTMLAttributes } from 'react';
|
|
7616
|
-
import { EuiAccordionProps } from '@elastic/eui/src/components/accordion/accordion';
|
|
7677
|
+
import { EuiAccordionProps } from '@elastic/eui/src/components/accordion/accordion';
|
|
7678
|
+
type _EuiAccordionButtonProps = PropsWithChildren & HTMLAttributes<HTMLElement> & Required<Pick<EuiAccordionProps, 'buttonElement'>> & Pick<EuiAccordionProps, 'buttonClassName' | 'buttonProps' | 'buttonContentClassName' | 'isDisabled' | 'arrowDisplay'>;
|
|
7617
7679
|
export const EuiAccordionButton: FunctionComponent<_EuiAccordionButtonProps>;
|
|
7618
7680
|
export {};
|
|
7619
7681
|
|
|
@@ -7632,7 +7694,8 @@ declare module '@elastic/eui/src/components/accordion/accordion_trigger/accordio
|
|
|
7632
7694
|
declare module '@elastic/eui/src/components/accordion/accordion_trigger/accordion_arrow' {
|
|
7633
7695
|
import { FunctionComponent } from 'react';
|
|
7634
7696
|
import { EuiButtonIconPropsForButton } from '@elastic/eui/src/components/button';
|
|
7635
|
-
import { EuiAccordionProps } from '@elastic/eui/src/components/accordion/accordion';
|
|
7697
|
+
import { EuiAccordionProps } from '@elastic/eui/src/components/accordion/accordion';
|
|
7698
|
+
type _EuiAccordionArrowProps = Partial<EuiButtonIconPropsForButton> & Pick<EuiAccordionProps, 'arrowDisplay' | 'arrowProps'> & {
|
|
7636
7699
|
isOpen: boolean;
|
|
7637
7700
|
};
|
|
7638
7701
|
export const EuiAccordionArrow: FunctionComponent<_EuiAccordionArrowProps>;
|
|
@@ -7641,7 +7704,8 @@ declare module '@elastic/eui/src/components/accordion/accordion_trigger/accordio
|
|
|
7641
7704
|
}
|
|
7642
7705
|
declare module '@elastic/eui/src/components/accordion/accordion_trigger/accordion_trigger' {
|
|
7643
7706
|
import { FunctionComponent, MouseEventHandler } from 'react';
|
|
7644
|
-
import { EuiAccordionProps } from '@elastic/eui/src/components/accordion/accordion';
|
|
7707
|
+
import { EuiAccordionProps } from '@elastic/eui/src/components/accordion/accordion';
|
|
7708
|
+
type _EuiAccordionTriggerProps = Pick<EuiAccordionProps, 'arrowDisplay' | 'arrowProps' | 'buttonElement' | 'buttonClassName' | 'buttonProps' | 'buttonContent' | 'buttonContentClassName' | 'extraAction' | 'isDisabled'> & {
|
|
7645
7709
|
isOpen: boolean;
|
|
7646
7710
|
ariaControlsId: string;
|
|
7647
7711
|
buttonId: string;
|
|
@@ -7657,7 +7721,8 @@ declare module '@elastic/eui/src/components/accordion/accordion_trigger' {
|
|
|
7657
7721
|
}
|
|
7658
7722
|
declare module '@elastic/eui/src/components/accordion/accordion_children/accordion_children_loading' {
|
|
7659
7723
|
import { FunctionComponent } from 'react';
|
|
7660
|
-
import { EuiAccordionProps } from '@elastic/eui/src/components/accordion/accordion';
|
|
7724
|
+
import { EuiAccordionProps } from '@elastic/eui/src/components/accordion/accordion';
|
|
7725
|
+
type _EuiAccordionChildrenLoadingProps = Pick<EuiAccordionProps, 'isLoadingMessage'>;
|
|
7661
7726
|
export const EuiAccordionChildrenLoading: FunctionComponent<_EuiAccordionChildrenLoadingProps>;
|
|
7662
7727
|
export {};
|
|
7663
7728
|
|
|
@@ -7683,7 +7748,8 @@ declare module '@elastic/eui/src/components/accordion/accordion_children/accordi
|
|
|
7683
7748
|
}
|
|
7684
7749
|
declare module '@elastic/eui/src/components/accordion/accordion_children/accordion_children' {
|
|
7685
7750
|
import { FunctionComponent, HTMLAttributes } from 'react';
|
|
7686
|
-
import { EuiAccordionProps } from '@elastic/eui/src/components/accordion/accordion';
|
|
7751
|
+
import { EuiAccordionProps } from '@elastic/eui/src/components/accordion/accordion';
|
|
7752
|
+
type _EuiAccordionChildrenProps = HTMLAttributes<HTMLDivElement> & Pick<EuiAccordionProps, 'role' | 'children' | 'paddingSize' | 'initialIsOpen' | 'isLoading' | 'isLoadingMessage'> & {
|
|
7687
7753
|
isOpen: boolean;
|
|
7688
7754
|
};
|
|
7689
7755
|
export const EuiAccordionChildren: FunctionComponent<_EuiAccordionChildrenProps>;
|
|
@@ -7798,7 +7864,8 @@ declare module '@elastic/eui/src/components/accordion/accordion' {
|
|
|
7798
7864
|
* Disable the open/close interaction and visually subdues the trigger
|
|
7799
7865
|
*/
|
|
7800
7866
|
isDisabled?: boolean;
|
|
7801
|
-
};
|
|
7867
|
+
};
|
|
7868
|
+
type EuiAccordionState = {
|
|
7802
7869
|
isOpen: boolean;
|
|
7803
7870
|
};
|
|
7804
7871
|
export class EuiAccordionClass extends Component<WithEuiThemeProps & EuiAccordionProps, EuiAccordionState> {
|
|
@@ -7902,7 +7969,12 @@ declare module '@elastic/eui/src/components/avatar/avatar' {
|
|
|
7902
7969
|
export const TYPES: readonly ["space", "user"];
|
|
7903
7970
|
export type EuiAvatarType = (typeof TYPES)[number];
|
|
7904
7971
|
export const CASING: readonly ["capitalize", "uppercase", "lowercase", "none"];
|
|
7905
|
-
export type EuiAvatarCasing = (typeof CASING)[number];
|
|
7972
|
+
export type EuiAvatarCasing = (typeof CASING)[number];
|
|
7973
|
+
/**
|
|
7974
|
+
* The avatar can only display one type of content,
|
|
7975
|
+
* initials, or image, or iconType
|
|
7976
|
+
*/
|
|
7977
|
+
type _EuiAvatarContent = ExclusiveUnion<ExclusiveUnion<{
|
|
7906
7978
|
/**
|
|
7907
7979
|
* Custom initials (max 2 characters).
|
|
7908
7980
|
* By default will take the first character (of each word).
|
|
@@ -7962,7 +8034,7 @@ declare module '@elastic/eui/src/components/avatar/avatar' {
|
|
|
7962
8034
|
isDisabled?: boolean;
|
|
7963
8035
|
};
|
|
7964
8036
|
export const EuiAvatar: FunctionComponent<EuiAvatarProps>;
|
|
7965
|
-
export const checkValidColor: (color: EuiAvatarProps[
|
|
8037
|
+
export const checkValidColor: (color: EuiAvatarProps["color"]) => void;
|
|
7966
8038
|
export {};
|
|
7967
8039
|
|
|
7968
8040
|
}
|
|
@@ -8037,15 +8109,6 @@ declare module '@elastic/eui/src/components/badge/color_utils' {
|
|
|
8037
8109
|
color: string;
|
|
8038
8110
|
backgroundColor: string;
|
|
8039
8111
|
};
|
|
8040
|
-
accentSecondary: {
|
|
8041
|
-
border: string;
|
|
8042
|
-
color: string;
|
|
8043
|
-
backgroundColor: string;
|
|
8044
|
-
} | {
|
|
8045
|
-
border?: undefined;
|
|
8046
|
-
color: string;
|
|
8047
|
-
backgroundColor: string;
|
|
8048
|
-
};
|
|
8049
8112
|
disabled: {
|
|
8050
8113
|
borderColor: string;
|
|
8051
8114
|
border: string;
|
|
@@ -8077,10 +8140,6 @@ declare module '@elastic/eui/src/components/badge/color_utils' {
|
|
|
8077
8140
|
backgroundColor: string;
|
|
8078
8141
|
color: string;
|
|
8079
8142
|
};
|
|
8080
|
-
accentSecondaryText: {
|
|
8081
|
-
backgroundColor: string;
|
|
8082
|
-
color: string;
|
|
8083
|
-
};
|
|
8084
8143
|
};
|
|
8085
8144
|
export const getBadgeColors: (euiThemeContext: UseEuiTheme, backgroundColor: string) => {
|
|
8086
8145
|
backgroundColor: string;
|
|
@@ -8088,7 +8147,7 @@ declare module '@elastic/eui/src/components/badge/color_utils' {
|
|
|
8088
8147
|
};
|
|
8089
8148
|
export const getTextColor: ({ euiTheme }: UseEuiTheme, bgColor: string) => string;
|
|
8090
8149
|
export const getColorContrast: (textColor: string, color: string) => number;
|
|
8091
|
-
export const getIsValidColor: (color?: string
|
|
8150
|
+
export const getIsValidColor: (color?: string) => boolean;
|
|
8092
8151
|
|
|
8093
8152
|
}
|
|
8094
8153
|
declare module '@elastic/eui/src/components/badge/badge.styles' {
|
|
@@ -8129,8 +8188,11 @@ declare module '@elastic/eui/src/components/badge/badge' {
|
|
|
8129
8188
|
import { AriaAttributes, FunctionComponent, HTMLAttributes, MouseEventHandler } from 'react';
|
|
8130
8189
|
import { CommonProps, ExclusiveUnion, PropsOf } from '@elastic/eui/src/components/common';
|
|
8131
8190
|
import { EuiIcon, IconType } from '@elastic/eui/src/components/icon';
|
|
8132
|
-
export const ICON_SIDES: readonly ["left", "right"];
|
|
8133
|
-
|
|
8191
|
+
export const ICON_SIDES: readonly ["left", "right"];
|
|
8192
|
+
type IconSide = (typeof ICON_SIDES)[number];
|
|
8193
|
+
export const COLORS: readonly ["default", "hollow", "primary", "accent", "neutral", "success", "warning", "risk", "danger"];
|
|
8194
|
+
type BadgeColor = (typeof COLORS)[number];
|
|
8195
|
+
type WithButtonProps = {
|
|
8134
8196
|
/**
|
|
8135
8197
|
* Will apply an onclick to the badge itself
|
|
8136
8198
|
*/
|
|
@@ -8139,11 +8201,13 @@ declare module '@elastic/eui/src/components/badge/badge' {
|
|
|
8139
8201
|
* Aria label applied to the onClick button
|
|
8140
8202
|
*/
|
|
8141
8203
|
onClickAriaLabel: AriaAttributes['aria-label'];
|
|
8142
|
-
} & Omit<HTMLAttributes<HTMLButtonElement>, 'onClick' | 'color'>;
|
|
8204
|
+
} & Omit<HTMLAttributes<HTMLButtonElement>, 'onClick' | 'color'>;
|
|
8205
|
+
type WithAnchorProps = {
|
|
8143
8206
|
href: string;
|
|
8144
8207
|
target?: string;
|
|
8145
8208
|
rel?: string;
|
|
8146
|
-
} & Omit<HTMLAttributes<HTMLAnchorElement>, 'href' | 'color' | 'onClick'>;
|
|
8209
|
+
} & Omit<HTMLAttributes<HTMLAnchorElement>, 'href' | 'color' | 'onClick'>;
|
|
8210
|
+
type WithSpanProps = Omit<HTMLAttributes<HTMLSpanElement>, 'onClick' | 'color'>;
|
|
8147
8211
|
interface WithIconOnClick {
|
|
8148
8212
|
/**
|
|
8149
8213
|
* Will apply an onclick to icon within the badge
|
|
@@ -8216,7 +8280,8 @@ declare module '@elastic/eui/src/components/badge/beta_badge/beta_badge' {
|
|
|
8216
8280
|
export const SIZES: readonly ["s", "m"];
|
|
8217
8281
|
export type BetaBadgeSize = (typeof SIZES)[number];
|
|
8218
8282
|
export const ALIGNMENTS: readonly ["baseline", "middle"];
|
|
8219
|
-
export type BetaBadgeAlignment = (typeof ALIGNMENTS)[number];
|
|
8283
|
+
export type BetaBadgeAlignment = (typeof ALIGNMENTS)[number];
|
|
8284
|
+
type WithButtonProps = {
|
|
8220
8285
|
/**
|
|
8221
8286
|
* Will apply an onclick to the badge itself
|
|
8222
8287
|
*/
|
|
@@ -8225,11 +8290,14 @@ declare module '@elastic/eui/src/components/badge/beta_badge/beta_badge' {
|
|
|
8225
8290
|
* Aria label applied to the onClick button
|
|
8226
8291
|
*/
|
|
8227
8292
|
onClickAriaLabel?: AriaAttributes['aria-label'];
|
|
8228
|
-
} & Omit<HTMLAttributes<HTMLButtonElement>, 'onClick' | 'color'>;
|
|
8293
|
+
} & Omit<HTMLAttributes<HTMLButtonElement>, 'onClick' | 'color'>;
|
|
8294
|
+
type WithAnchorProps = {
|
|
8229
8295
|
href: string;
|
|
8230
8296
|
target?: string;
|
|
8231
8297
|
rel?: string;
|
|
8232
|
-
} & Omit<HTMLAttributes<HTMLAnchorElement>, 'href' | 'color' | 'onClick'>;
|
|
8298
|
+
} & Omit<HTMLAttributes<HTMLAnchorElement>, 'href' | 'color' | 'onClick'>;
|
|
8299
|
+
type WithSpanProps = Omit<HTMLAttributes<HTMLSpanElement>, 'onClick' | 'color' | 'title'>;
|
|
8300
|
+
type LabelAsNode = ExclusiveUnion<{
|
|
8233
8301
|
title: string;
|
|
8234
8302
|
tooltipContent?: ReactNode;
|
|
8235
8303
|
}, {
|
|
@@ -8237,12 +8305,14 @@ declare module '@elastic/eui/src/components/badge/beta_badge/beta_badge' {
|
|
|
8237
8305
|
title?: string;
|
|
8238
8306
|
}> & {
|
|
8239
8307
|
label: ReactNode;
|
|
8240
|
-
};
|
|
8308
|
+
};
|
|
8309
|
+
type LabelAsString = {
|
|
8241
8310
|
/**
|
|
8242
8311
|
* One word label like "Beta" or "Lab"
|
|
8243
8312
|
*/
|
|
8244
8313
|
label: string;
|
|
8245
|
-
};
|
|
8314
|
+
};
|
|
8315
|
+
type BadgeProps = {
|
|
8246
8316
|
/**
|
|
8247
8317
|
* Supply an icon type if the badge should just be an icon
|
|
8248
8318
|
*/
|
|
@@ -8336,7 +8406,8 @@ declare module '@elastic/eui/src/components/badge/badge_group/badge_group.styles
|
|
|
8336
8406
|
declare module '@elastic/eui/src/components/badge/badge_group/badge_group' {
|
|
8337
8407
|
import React, { ReactNode } from 'react';
|
|
8338
8408
|
import { CommonProps } from '@elastic/eui/src/components/common';
|
|
8339
|
-
export const GUTTER_SIZES: readonly ["none", "xs", "s"];
|
|
8409
|
+
export const GUTTER_SIZES: readonly ["none", "xs", "s"];
|
|
8410
|
+
type BadgeGroupGutterSize = (typeof GUTTER_SIZES)[number];
|
|
8340
8411
|
export interface EuiBadgeGroupProps {
|
|
8341
8412
|
/**
|
|
8342
8413
|
* Space between badges
|
|
@@ -8420,9 +8491,11 @@ declare module '@elastic/eui/src/components/bottom_bar/bottom_bar' {
|
|
|
8420
8491
|
import React, { CSSProperties, HTMLAttributes } from 'react';
|
|
8421
8492
|
import { CommonProps, ExclusiveUnion } from '@elastic/eui/src/components/common';
|
|
8422
8493
|
import { EuiPortalProps } from '@elastic/eui/src/components/portal';
|
|
8423
|
-
export const PADDING_SIZES: readonly ["none", "s", "m", "l"];
|
|
8494
|
+
export const PADDING_SIZES: readonly ["none", "s", "m", "l"];
|
|
8495
|
+
type BottomBarPaddingSize = (typeof PADDING_SIZES)[number];
|
|
8424
8496
|
export const POSITIONS: readonly ["static", "fixed", "sticky"];
|
|
8425
|
-
export type _BottomBarPosition = (typeof POSITIONS)[number];
|
|
8497
|
+
export type _BottomBarPosition = (typeof POSITIONS)[number];
|
|
8498
|
+
type _BottomBarExclusivePositions = ExclusiveUnion<{
|
|
8426
8499
|
position?: 'fixed';
|
|
8427
8500
|
/**
|
|
8428
8501
|
* Whether to wrap in an EuiPortal which appends the component to the body element.
|
|
@@ -8642,10 +8715,6 @@ declare module '@elastic/eui/src/components/breadcrumbs/types' {
|
|
|
8642
8715
|
truncateLastBreadcrumb?: boolean;
|
|
8643
8716
|
};
|
|
8644
8717
|
|
|
8645
|
-
}
|
|
8646
|
-
declare module '@elastic/eui/src/themes/amsterdam/global_styling/mixins/button' {
|
|
8647
|
-
export { type _EuiButtonColor, type _EuiButtonDisplay, type _EuiButtonOptions, BUTTON_COLORS, BUTTON_DISPLAYS, euiButtonColor, euiButtonFillColor, euiButtonEmptyColor, useEuiButtonColorCSS, useEuiButtonFocusCSS, euiButtonSizeMap, } from '@elastic/eui/src/global_styling/mixins/_button';
|
|
8648
|
-
|
|
8649
8718
|
}
|
|
8650
8719
|
declare module '@elastic/eui/src/components/breadcrumbs/_breadcrumb_content.styles' {
|
|
8651
8720
|
import { UseEuiTheme } from '@elastic/eui/src/services';
|
|
@@ -8717,11 +8786,13 @@ declare module '@elastic/eui/src/components/breadcrumbs/breadcrumbs' {
|
|
|
8717
8786
|
import { ExclusiveUnion } from '@elastic/eui/src/components/common';
|
|
8718
8787
|
import type { EuiBreadcrumbsProps, EuiBreadcrumbProps } from '@elastic/eui/src/components/breadcrumbs/types';
|
|
8719
8788
|
export const EuiBreadcrumbs: FunctionComponent<EuiBreadcrumbsProps>;
|
|
8720
|
-
export const useResponsiveMax: (responsive: EuiBreadcrumbsProps[
|
|
8789
|
+
export const useResponsiveMax: (responsive: EuiBreadcrumbsProps["responsive"], max: EuiBreadcrumbsProps["max"]) => number | null | undefined;
|
|
8790
|
+
type _EuiBreadcrumbCollapsedObj = {
|
|
8721
8791
|
isCollapsedButton: true;
|
|
8722
8792
|
overflowBreadcrumbs: EuiBreadcrumbProps[];
|
|
8723
|
-
};
|
|
8724
|
-
|
|
8793
|
+
};
|
|
8794
|
+
type _EuiBreadcrumbsObjs = Array<ExclusiveUnion<EuiBreadcrumbProps, _EuiBreadcrumbCollapsedObj>>;
|
|
8795
|
+
export const limitBreadcrumbs: (breadcrumbs: EuiBreadcrumbsProps["breadcrumbs"], max: number) => _EuiBreadcrumbsObjs;
|
|
8725
8796
|
export {};
|
|
8726
8797
|
|
|
8727
8798
|
}
|
|
@@ -8740,7 +8811,7 @@ declare module '@elastic/eui/src/components/panel/split_panel/split_panel.styles
|
|
|
8740
8811
|
export const euiSplitPanelInnerStyles: (euiThemeContext: UseEuiTheme) => {
|
|
8741
8812
|
euiSplitPanelInner: import("@emotion/react").SerializedStyles;
|
|
8742
8813
|
highContrastBorders: {
|
|
8743
|
-
_renderBorder: (direction:
|
|
8814
|
+
_renderBorder: (direction: "right" | "bottom") => string;
|
|
8744
8815
|
readonly column: string;
|
|
8745
8816
|
readonly row: string;
|
|
8746
8817
|
};
|
|
@@ -8831,7 +8902,9 @@ declare module '@elastic/eui/src/components/call_out/call_out' {
|
|
|
8831
8902
|
import { IconType } from '@elastic/eui/src/components/icon';
|
|
8832
8903
|
export const COLORS: readonly ["primary", "success", "warning", "danger", "accent"];
|
|
8833
8904
|
export type Color = (typeof COLORS)[number];
|
|
8834
|
-
export const HEADINGS: readonly ["h1", "h2", "h3", "h4", "h5", "h6", "p"];
|
|
8905
|
+
export const HEADINGS: readonly ["h1", "h2", "h3", "h4", "h5", "h6", "p"];
|
|
8906
|
+
type Heading = (typeof HEADINGS)[number];
|
|
8907
|
+
type Size = 's' | 'm';
|
|
8835
8908
|
export type EuiCallOutProps = CommonProps & Omit<HTMLAttributes<HTMLDivElement>, 'title' | 'color'> & {
|
|
8836
8909
|
title?: ReactNode;
|
|
8837
8910
|
iconType?: IconType;
|
|
@@ -8849,10 +8922,10 @@ declare module '@elastic/eui/src/components/call_out/call_out' {
|
|
|
8849
8922
|
};
|
|
8850
8923
|
export const EuiCallOut: React.ForwardRefExoticComponent<CommonProps & Omit<React.HTMLAttributes<HTMLDivElement>, "title" | "color"> & {
|
|
8851
8924
|
title?: ReactNode;
|
|
8852
|
-
iconType?: IconType
|
|
8853
|
-
color?:
|
|
8854
|
-
size?: Size
|
|
8855
|
-
heading?:
|
|
8925
|
+
iconType?: IconType;
|
|
8926
|
+
color?: Color;
|
|
8927
|
+
size?: Size;
|
|
8928
|
+
heading?: Heading;
|
|
8856
8929
|
/**
|
|
8857
8930
|
* Passing an `onDismiss` callback will render a cross in the top right hand corner
|
|
8858
8931
|
* of the callout.
|
|
@@ -8860,7 +8933,7 @@ declare module '@elastic/eui/src/components/call_out/call_out' {
|
|
|
8860
8933
|
* This callback fires when users click this button, which allows conditionally
|
|
8861
8934
|
* removing the callout or other actions.
|
|
8862
8935
|
*/
|
|
8863
|
-
onDismiss?: (
|
|
8936
|
+
onDismiss?: () => void;
|
|
8864
8937
|
} & React.RefAttributes<HTMLDivElement>>;
|
|
8865
8938
|
export {};
|
|
8866
8939
|
|
|
@@ -8897,7 +8970,7 @@ declare module '@elastic/eui/src/components/card/card.styles' {
|
|
|
8897
8970
|
* 3. Horizontal layouts should always top left align no matter the textAlign prop
|
|
8898
8971
|
* 4. Ensures the contents always stretch no matter the flex layout
|
|
8899
8972
|
*/
|
|
8900
|
-
export const euiCardStyles: (euiThemeContext: UseEuiTheme, paddingSize: EuiCardProps[
|
|
8973
|
+
export const euiCardStyles: (euiThemeContext: UseEuiTheme, paddingSize: EuiCardProps["paddingSize"]) => {
|
|
8901
8974
|
card: {
|
|
8902
8975
|
euiCard: import("@emotion/react").SerializedStyles;
|
|
8903
8976
|
aligned: {
|
|
@@ -8955,7 +9028,7 @@ declare module '@elastic/eui/src/components/card/card.styles' {
|
|
|
8955
9028
|
};
|
|
8956
9029
|
disabled: import("@emotion/react").SerializedStyles;
|
|
8957
9030
|
};
|
|
8958
|
-
export const euiCardBetaBadgeStyles: (euiThemeContext: UseEuiTheme, paddingSize: EuiCardProps[
|
|
9031
|
+
export const euiCardBetaBadgeStyles: (euiThemeContext: UseEuiTheme, paddingSize: EuiCardProps["paddingSize"]) => {
|
|
8959
9032
|
hasBetaBadge: import("@emotion/react").SerializedStyles;
|
|
8960
9033
|
euiCard__betaBadgeAnchor: import("@emotion/react").SerializedStyles;
|
|
8961
9034
|
euiCard__betaBadge: import("@emotion/react").SerializedStyles;
|
|
@@ -8969,7 +9042,12 @@ declare module '@elastic/eui/src/components/card/card' {
|
|
|
8969
9042
|
import { EuiIconProps } from '@elastic/eui/src/components/icon';
|
|
8970
9043
|
import { EuiPanelProps } from '@elastic/eui/src/components/panel';
|
|
8971
9044
|
import { EuiCardSelectProps } from '@elastic/eui/src/components/card/card_select';
|
|
8972
|
-
export const ALIGNMENTS: readonly ["left", "center", "right"];
|
|
9045
|
+
export const ALIGNMENTS: readonly ["left", "center", "right"];
|
|
9046
|
+
type CardAlignment = (typeof ALIGNMENTS)[number];
|
|
9047
|
+
/**
|
|
9048
|
+
* Certain props are only allowed when the layout is vertical
|
|
9049
|
+
*/
|
|
9050
|
+
type EuiCardPropsLayout = ExclusiveUnion<{
|
|
8973
9051
|
layout?: 'vertical';
|
|
8974
9052
|
/**
|
|
8975
9053
|
* Changes alignment of the title and description
|
|
@@ -9168,7 +9246,9 @@ declare module '@elastic/eui/src/components/form/checkbox/checkbox_group' {
|
|
|
9168
9246
|
}
|
|
9169
9247
|
export interface EuiCheckboxGroupIdToSelectedMap {
|
|
9170
9248
|
[id: string]: boolean;
|
|
9171
|
-
}
|
|
9249
|
+
}
|
|
9250
|
+
type AsDivProps = Omit<HTMLAttributes<HTMLDivElement>, 'onChange'>;
|
|
9251
|
+
type WithLegendProps = Omit<EuiFormFieldsetProps, 'onChange'> & {
|
|
9172
9252
|
/**
|
|
9173
9253
|
* If the individual labels for each radio do not provide a sufficient description, add a legend.
|
|
9174
9254
|
* Wraps the group in a `EuiFormFieldset` which adds an `EuiLegend` for titling the whole group.
|
|
@@ -9529,7 +9609,7 @@ declare module '@elastic/eui/src/components/form/field_search/field_search' {
|
|
|
9529
9609
|
onClear: () => void;
|
|
9530
9610
|
componentWillUnmount(): void;
|
|
9531
9611
|
setRef: (inputElement: HTMLInputElement | null) => void;
|
|
9532
|
-
onKeyUp: (event: KeyboardEvent<HTMLInputElement>, incremental?: boolean
|
|
9612
|
+
onKeyUp: (event: KeyboardEvent<HTMLInputElement>, incremental?: boolean, onSearch?: (value: string) => void) => void;
|
|
9533
9613
|
render(): React.JSX.Element;
|
|
9534
9614
|
}
|
|
9535
9615
|
export const EuiFieldSearch: React.ForwardRefExoticComponent<Omit<EuiFieldSearchProps, "stylesMemoizer"> & React.RefAttributes<Omit<EuiFieldSearchProps, "stylesMemoizer">>>;
|
|
@@ -9688,7 +9768,9 @@ declare module '@elastic/eui/src/components/progress/progress' {
|
|
|
9688
9768
|
*/
|
|
9689
9769
|
color?: EuiProgressColor | CSSProperties['color'];
|
|
9690
9770
|
position?: EuiProgressPosition;
|
|
9691
|
-
};
|
|
9771
|
+
};
|
|
9772
|
+
type Indeterminate = EuiProgressProps & HTMLAttributes<HTMLDivElement>;
|
|
9773
|
+
type Determinate = EuiProgressProps & Omit<ProgressHTMLAttributes<HTMLProgressElement>, 'max'> & {
|
|
9692
9774
|
max?: number;
|
|
9693
9775
|
valueText?: boolean | ReactNode;
|
|
9694
9776
|
label?: ReactNode;
|
|
@@ -9795,7 +9877,7 @@ declare module '@elastic/eui/src/components/form/file_picker/file_picker' {
|
|
|
9795
9877
|
fileInput: HTMLInputElement | null;
|
|
9796
9878
|
generatedId: string;
|
|
9797
9879
|
handleChange: () => void;
|
|
9798
|
-
removeFiles: (e?: React.MouseEvent<HTMLButtonElement
|
|
9880
|
+
removeFiles: (e?: React.MouseEvent<HTMLButtonElement>) => void;
|
|
9799
9881
|
showDrop: () => void;
|
|
9800
9882
|
hideDrop: () => void;
|
|
9801
9883
|
render(): React.JSX.Element;
|
|
@@ -9895,7 +9977,8 @@ declare module '@elastic/eui/src/components/form/form_row/form_row' {
|
|
|
9895
9977
|
import { FunctionComponent, HTMLAttributes, ReactElement, ReactNode } from 'react';
|
|
9896
9978
|
import { ExclusiveUnion, CommonProps } from '@elastic/eui/src/components/common';
|
|
9897
9979
|
export const DISPLAYS: readonly ["row", "columnCompressed", "center", "centerCompressed", "rowCompressed"];
|
|
9898
|
-
export type EuiFormRowDisplayKeys = (typeof DISPLAYS)[number];
|
|
9980
|
+
export type EuiFormRowDisplayKeys = (typeof DISPLAYS)[number];
|
|
9981
|
+
type EuiFormRowCommonProps = CommonProps & {
|
|
9899
9982
|
/**
|
|
9900
9983
|
* - `columnCompressed` creates a compressed and horizontal layout
|
|
9901
9984
|
* - `center`/`centerCompressed` helps align non-input content better with inline form layouts
|
|
@@ -9943,9 +10026,11 @@ declare module '@elastic/eui/src/components/form/form_row/form_row' {
|
|
|
9943
10026
|
* Passed along to the label element; and to the child field element when `disabled` doesn't already exist on the child field element.
|
|
9944
10027
|
*/
|
|
9945
10028
|
isDisabled?: boolean;
|
|
9946
|
-
};
|
|
10029
|
+
};
|
|
10030
|
+
type LabelProps = {
|
|
9947
10031
|
labelType?: 'label';
|
|
9948
|
-
} & EuiFormRowCommonProps & HTMLAttributes<HTMLDivElement>;
|
|
10032
|
+
} & EuiFormRowCommonProps & HTMLAttributes<HTMLDivElement>;
|
|
10033
|
+
type LegendProps = {
|
|
9949
10034
|
/**
|
|
9950
10035
|
* Defaults to rendering a `<label>` but if passed `'legend'` for labelType,
|
|
9951
10036
|
* will render both a `<legend>` and the surrounding container as a `<fieldset>`
|
|
@@ -10032,7 +10117,9 @@ declare module '@elastic/eui/src/components/form/radio/radio_group' {
|
|
|
10032
10117
|
export interface EuiRadioGroupOption extends Omit<EuiRadioProps, 'checked' | 'onChange'> {
|
|
10033
10118
|
id: string;
|
|
10034
10119
|
}
|
|
10035
|
-
export type EuiRadioGroupChangeCallback = (id: string, value?: string) => void;
|
|
10120
|
+
export type EuiRadioGroupChangeCallback = (id: string, value?: string) => void;
|
|
10121
|
+
type AsDivProps = Omit<HTMLAttributes<HTMLDivElement>, 'onChange'>;
|
|
10122
|
+
type WithLegendProps = Omit<EuiFormFieldsetProps, 'onChange'> & {
|
|
10036
10123
|
/**
|
|
10037
10124
|
* If the individual labels for each radio do not provide a sufficient description, add a legend.
|
|
10038
10125
|
* Wraps the group in a `EuiFormFieldset` which adds an `EuiLegend` for titling the whole group.
|
|
@@ -10070,7 +10157,7 @@ declare module '@elastic/eui/src/components/form/range/range_levels_colors' {
|
|
|
10070
10157
|
import type { EuiRangeLevel } from '@elastic/eui/src/components/form/range/types';
|
|
10071
10158
|
export const LEVEL_COLORS: readonly ["primary", "success", "warning", "danger"];
|
|
10072
10159
|
export type EuiRangeLevelColor = (typeof LEVEL_COLORS)[number];
|
|
10073
|
-
export const isNamedLevelColor: (color?:
|
|
10160
|
+
export const isNamedLevelColor: (color?: EuiRangeLevelColor | string) => color is EuiRangeLevelColor;
|
|
10074
10161
|
export const euiRangeLevelColor: (color: EuiRangeLevelColor | string, { euiTheme }: UseEuiTheme) => string;
|
|
10075
10162
|
export const getLevelColor: (levels: EuiRangeLevel[], value: number) => "primary" | "success" | "warning" | "danger" | import("csstype").Property.Color | undefined;
|
|
10076
10163
|
|
|
@@ -10551,11 +10638,11 @@ declare module '@elastic/eui/src/components/form/range/dual_range.styles' {
|
|
|
10551
10638
|
|
|
10552
10639
|
}
|
|
10553
10640
|
declare module '@elastic/eui/src/components/form/range/dual_range' {
|
|
10554
|
-
|
|
10555
10641
|
import React, { Component } from 'react';
|
|
10556
10642
|
import { WithEuiThemeProps } from '@elastic/eui/src/services';
|
|
10557
10643
|
import { FormContextValue } from '@elastic/eui/src/components/form/eui_form_context';
|
|
10558
|
-
import type { EuiDualRangeProps, _SingleRangeValue } from '@elastic/eui/src/components/form/range/types';
|
|
10644
|
+
import type { EuiDualRangeProps, _SingleRangeValue } from '@elastic/eui/src/components/form/range/types';
|
|
10645
|
+
type ValueMember = _SingleRangeValue['value'];
|
|
10559
10646
|
export class EuiDualRangeClass extends Component<EuiDualRangeProps & WithEuiThemeProps> {
|
|
10560
10647
|
static contextType: React.Context<FormContextValue>;
|
|
10561
10648
|
static defaultProps: {
|
|
@@ -10587,7 +10674,7 @@ declare module '@elastic/eui/src/components/form/range/dual_range' {
|
|
|
10587
10674
|
_determineInvalidThumbMovement: (newVal: ValueMember, lower: ValueMember, upper: ValueMember, e: React.ChangeEvent<HTMLInputElement> | React.MouseEvent<HTMLButtonElement> | React.KeyboardEvent<HTMLInputElement>) => void;
|
|
10588
10675
|
_determineValidThumbMovement: (newVal: ValueMember, lower: ValueMember, upper: ValueMember, e: React.ChangeEvent<HTMLInputElement> | React.MouseEvent<HTMLButtonElement>) => void;
|
|
10589
10676
|
_determineThumbMovement: (newVal: number, e: React.ChangeEvent<HTMLInputElement> | React.MouseEvent<HTMLButtonElement>) => void;
|
|
10590
|
-
_handleOnChange: (lower: ValueMember, upper: ValueMember, e?: React.
|
|
10677
|
+
_handleOnChange: (lower: ValueMember, upper: ValueMember, e?: React.ChangeEvent<HTMLInputElement> | React.MouseEvent<HTMLButtonElement> | React.KeyboardEvent<HTMLInputElement> | React.KeyboardEvent<HTMLDivElement>) => void;
|
|
10591
10678
|
handleSliderChange: (e: React.ChangeEvent<HTMLInputElement> | React.MouseEvent<HTMLButtonElement>) => void;
|
|
10592
10679
|
_resetToRangeEnds: (e: React.KeyboardEvent<HTMLInputElement>) => void;
|
|
10593
10680
|
_isDirectionalKeyPress: (event: React.KeyboardEvent<HTMLInputElement>) => boolean;
|
|
@@ -10598,7 +10685,7 @@ declare module '@elastic/eui/src/components/form/range/dual_range' {
|
|
|
10598
10685
|
handleLowerKeyDown: (event: React.KeyboardEvent<HTMLInputElement>) => void;
|
|
10599
10686
|
handleUpperKeyDown: (event: React.KeyboardEvent<HTMLInputElement>) => void;
|
|
10600
10687
|
handleDraggableKeyDown: (event: React.KeyboardEvent<HTMLDivElement>) => void;
|
|
10601
|
-
calculateThumbPositionStyle: (value: number, width?: number
|
|
10688
|
+
calculateThumbPositionStyle: (value: number, width?: number) => {
|
|
10602
10689
|
left: string;
|
|
10603
10690
|
};
|
|
10604
10691
|
onThumbFocus: (e: React.FocusEvent<HTMLDivElement>) => void;
|
|
@@ -10610,7 +10697,7 @@ declare module '@elastic/eui/src/components/form/range/dual_range' {
|
|
|
10610
10697
|
width: number;
|
|
10611
10698
|
}) => void;
|
|
10612
10699
|
getNearestStep: (value: number) => number;
|
|
10613
|
-
handleDrag: (x: number, isFirstInteraction?: boolean
|
|
10700
|
+
handleDrag: (x: number, isFirstInteraction?: boolean) => void;
|
|
10614
10701
|
render(): React.JSX.Element;
|
|
10615
10702
|
}
|
|
10616
10703
|
export const EuiDualRange: React.ForwardRefExoticComponent<Omit<EuiDualRangeProps, "theme"> & React.RefAttributes<Omit<EuiDualRangeProps, "theme">>>;
|
|
@@ -10640,7 +10727,6 @@ declare module '@elastic/eui/src/components/form/range/range_tooltip' {
|
|
|
10640
10727
|
|
|
10641
10728
|
}
|
|
10642
10729
|
declare module '@elastic/eui/src/components/form/range/range' {
|
|
10643
|
-
|
|
10644
10730
|
import React, { Component } from 'react';
|
|
10645
10731
|
import { WithEuiThemeProps } from '@elastic/eui/src/services';
|
|
10646
10732
|
import { FormContextValue } from '@elastic/eui/src/components/form/eui_form_context';
|
|
@@ -10998,7 +11084,8 @@ declare module '@elastic/eui/src/components/code/code_block_annotations.style' {
|
|
|
10998
11084
|
declare module '@elastic/eui/src/components/code/code_block_annotations' {
|
|
10999
11085
|
import { FunctionComponent, PropsWithChildren, ReactNode } from 'react';
|
|
11000
11086
|
import { CommonProps } from '@elastic/eui/src/components/common';
|
|
11001
|
-
export type LineAnnotationMap = Record<number, ReactNode>;
|
|
11087
|
+
export type LineAnnotationMap = Record<number, ReactNode>;
|
|
11088
|
+
type EuiCodeBlockAnnotationProps = PropsWithChildren & CommonProps & {
|
|
11002
11089
|
lineNumber: number;
|
|
11003
11090
|
};
|
|
11004
11091
|
export const EuiCodeBlockAnnotation: FunctionComponent<EuiCodeBlockAnnotationProps>;
|
|
@@ -11094,7 +11181,7 @@ declare module '@elastic/eui/src/components/code/code_block_overflow' {
|
|
|
11094
11181
|
* the container.
|
|
11095
11182
|
*/
|
|
11096
11183
|
export const useOverflow: ({ overflowHeight, }: {
|
|
11097
|
-
overflowHeight?:
|
|
11184
|
+
overflowHeight?: number | string;
|
|
11098
11185
|
}) => {
|
|
11099
11186
|
setWrapperRef: import("react").Dispatch<import("react").SetStateAction<Element | null>>;
|
|
11100
11187
|
tabIndex: 0 | -1;
|
|
@@ -11152,7 +11239,7 @@ declare module '@elastic/eui/src/components/code/code_block_copy' {
|
|
|
11152
11239
|
* Hook that returns copy-related state/logic/utils
|
|
11153
11240
|
*/
|
|
11154
11241
|
export const useCopy: ({ copyAriaLabel, isCopyable, isVirtualized, children, }: {
|
|
11155
|
-
copyAriaLabel?: string
|
|
11242
|
+
copyAriaLabel?: string;
|
|
11156
11243
|
isCopyable: boolean;
|
|
11157
11244
|
isVirtualized: boolean;
|
|
11158
11245
|
children: ReactNode;
|
|
@@ -11301,7 +11388,7 @@ declare module '@elastic/eui/src/components/code/code_block_full_screen' {
|
|
|
11301
11388
|
* Hook that returns fullscreen-related state/logic/utils
|
|
11302
11389
|
*/
|
|
11303
11390
|
export const useFullScreen: ({ overflowHeight, }: {
|
|
11304
|
-
overflowHeight?:
|
|
11391
|
+
overflowHeight?: number | string;
|
|
11305
11392
|
}) => {
|
|
11306
11393
|
fullScreenButton: React.JSX.Element | null;
|
|
11307
11394
|
isFullScreen: boolean;
|
|
@@ -11343,7 +11430,7 @@ declare module '@elastic/eui/src/components/code/code_block_virtualized' {
|
|
|
11343
11430
|
export const EuiCodeBlockVirtualized: ({ data, rowHeight, overflowHeight, preProps, codeProps, }: {
|
|
11344
11431
|
data: RefractorNode[];
|
|
11345
11432
|
rowHeight: number;
|
|
11346
|
-
overflowHeight?:
|
|
11433
|
+
overflowHeight?: number | string;
|
|
11347
11434
|
preProps: HTMLAttributes<HTMLPreElement>;
|
|
11348
11435
|
codeProps: HTMLAttributes<HTMLElement>;
|
|
11349
11436
|
}) => React.JSX.Element;
|
|
@@ -11357,7 +11444,8 @@ declare module '@elastic/eui/src/components/code/code_block' {
|
|
|
11357
11444
|
export const FONT_SIZES: readonly ["s", "m", "l"];
|
|
11358
11445
|
export type EuiCodeBlockFontSize = (typeof FONT_SIZES)[number];
|
|
11359
11446
|
export const PADDING_SIZES: readonly ["none", "s", "m", "l"];
|
|
11360
|
-
export type EuiCodeBlockPaddingSize = (typeof PADDING_SIZES)[number];
|
|
11447
|
+
export type EuiCodeBlockPaddingSize = (typeof PADDING_SIZES)[number];
|
|
11448
|
+
type VirtualizedOptionProps = ExclusiveUnion<{
|
|
11361
11449
|
isVirtualized: true;
|
|
11362
11450
|
overflowHeight: number | string;
|
|
11363
11451
|
whiteSpace?: 'pre';
|
|
@@ -11445,7 +11533,8 @@ declare module '@elastic/eui/src/components/collapsible_nav/collapsible_nav_grou
|
|
|
11445
11533
|
import { EuiAccordionProps } from '@elastic/eui/src/components/accordion';
|
|
11446
11534
|
import { IconType, IconSize, EuiIconProps } from '@elastic/eui/src/components/icon';
|
|
11447
11535
|
import { EuiTitleProps } from '@elastic/eui/src/components/title';
|
|
11448
|
-
export const BACKGROUNDS: readonly ["none", "light", "dark"];
|
|
11536
|
+
export const BACKGROUNDS: readonly ["none", "light", "dark"];
|
|
11537
|
+
type Background = (typeof BACKGROUNDS)[number];
|
|
11449
11538
|
export interface EuiCollapsibleNavGroupInterface extends CommonProps {
|
|
11450
11539
|
/**
|
|
11451
11540
|
* ReactNode to render as this component's content
|
|
@@ -11480,7 +11569,8 @@ declare module '@elastic/eui/src/components/collapsible_nav/collapsible_nav_grou
|
|
|
11480
11569
|
* Title sizing equivalent to EuiTitle, but only `s` and smaller
|
|
11481
11570
|
*/
|
|
11482
11571
|
titleSize?: Exclude<EuiTitleProps['size'], 'l' | 'm'>;
|
|
11483
|
-
}
|
|
11572
|
+
}
|
|
11573
|
+
type GroupAsAccordion = EuiCollapsibleNavGroupInterface & Omit<EuiAccordionProps, 'id' | 'title'> & {
|
|
11484
11574
|
/**
|
|
11485
11575
|
* If `true`, wraps children in the body of an accordion,
|
|
11486
11576
|
* requiring the prop `title` to be used as the button.
|
|
@@ -11492,7 +11582,8 @@ declare module '@elastic/eui/src/components/collapsible_nav/collapsible_nav_grou
|
|
|
11492
11582
|
* with the option to add an iconType
|
|
11493
11583
|
*/
|
|
11494
11584
|
title: ReactNode;
|
|
11495
|
-
};
|
|
11585
|
+
};
|
|
11586
|
+
type GroupAsDiv = EuiCollapsibleNavGroupInterface & {
|
|
11496
11587
|
/**
|
|
11497
11588
|
* If `true`, wraps children in the body of an accordion,
|
|
11498
11589
|
* requiring the prop `title` to be used as the button.
|
|
@@ -11563,19 +11654,21 @@ declare module '@elastic/eui/src/components/flyout/_flyout_close_button.styles'
|
|
|
11563
11654
|
}
|
|
11564
11655
|
declare module '@elastic/eui/src/components/flyout/_flyout_close_button' {
|
|
11565
11656
|
import { FunctionComponent } from 'react';
|
|
11566
|
-
import type { EuiFlyoutProps } from '@elastic/eui/src/components/flyout/flyout';
|
|
11657
|
+
import type { EuiFlyoutProps } from '@elastic/eui/src/components/flyout/flyout';
|
|
11658
|
+
type EuiFlyoutCloseButtonProps = EuiFlyoutProps['closeButtonProps'] & Required<Pick<EuiFlyoutProps, 'closeButtonPosition' | 'onClose' | 'side'>>;
|
|
11567
11659
|
export const EuiFlyoutCloseButton: FunctionComponent<EuiFlyoutCloseButtonProps>;
|
|
11568
11660
|
export {};
|
|
11569
11661
|
|
|
11570
11662
|
}
|
|
11571
11663
|
declare module '@elastic/eui/src/components/flyout/flyout' {
|
|
11572
|
-
import
|
|
11664
|
+
import { ComponentPropsWithRef, CSSProperties, ElementType, JSX } from 'react';
|
|
11573
11665
|
import { EuiBreakpointSize } from '@elastic/eui/src/services';
|
|
11574
11666
|
import { CommonProps, PropsOfElement } from '@elastic/eui/src/components/common';
|
|
11575
11667
|
import { EuiFocusTrapProps } from '@elastic/eui/src/components/focus_trap';
|
|
11576
11668
|
import { EuiOverlayMaskProps } from '@elastic/eui/src/components/overlay_mask';
|
|
11577
11669
|
import type { EuiButtonIconPropsForButton } from '@elastic/eui/src/components/button';
|
|
11578
|
-
export const TYPES: readonly ["push", "overlay"];
|
|
11670
|
+
export const TYPES: readonly ["push", "overlay"];
|
|
11671
|
+
type _EuiFlyoutType = (typeof TYPES)[number];
|
|
11579
11672
|
export const SIDES: readonly ["left", "right"];
|
|
11580
11673
|
export type _EuiFlyoutSide = (typeof SIDES)[number];
|
|
11581
11674
|
export const SIZES: readonly ["s", "m", "l"];
|
|
@@ -11671,14 +11764,15 @@ declare module '@elastic/eui/src/components/flyout/flyout' {
|
|
|
11671
11764
|
* Set this to `false` if you need to disable this behavior for a specific reason.
|
|
11672
11765
|
*/
|
|
11673
11766
|
includeFixedHeadersInFocusTrap?: boolean;
|
|
11674
|
-
} const defaultElement = "div";
|
|
11767
|
+
} const defaultElement = "div";
|
|
11768
|
+
type Props<T extends ElementType> = CommonProps & {
|
|
11675
11769
|
/**
|
|
11676
11770
|
* Sets the HTML element for `EuiFlyout`
|
|
11677
11771
|
*/
|
|
11678
11772
|
as?: T;
|
|
11679
11773
|
} & _EuiFlyoutProps & Omit<PropsOfElement<T>, keyof _EuiFlyoutProps>;
|
|
11680
11774
|
export type EuiFlyoutProps<T extends ElementType = typeof defaultElement> = Props<T> & Omit<ComponentPropsWithRef<T>, keyof Props<T>>;
|
|
11681
|
-
export const EuiFlyout: <T extends
|
|
11775
|
+
export const EuiFlyout: <T extends ElementType = typeof defaultElement>(props: EuiFlyoutProps<T>) => JSX.Element;
|
|
11682
11776
|
export {};
|
|
11683
11777
|
|
|
11684
11778
|
}
|
|
@@ -11988,28 +12082,28 @@ declare module '@elastic/eui/src/components/resizable_container/resizable_button
|
|
|
11988
12082
|
* Defaults to displaying a resizer for vertical (y-axis) resizing.
|
|
11989
12083
|
* Set to `true` to display a resizer for horizontal (x-axis) resizing.
|
|
11990
12084
|
*/
|
|
11991
|
-
isHorizontal?: boolean
|
|
12085
|
+
isHorizontal?: boolean;
|
|
11992
12086
|
/**
|
|
11993
12087
|
* By default, EuiResizableButton will show a grab handle to indicate resizability.
|
|
11994
12088
|
* This indicator can be optionally hidden to show a plain border instead.
|
|
11995
12089
|
*/
|
|
11996
|
-
indicator?: "
|
|
12090
|
+
indicator?: "handle" | "border";
|
|
11997
12091
|
/**
|
|
11998
12092
|
* Allows customizing the alignment of grab `handle` indicators (does nothing for
|
|
11999
12093
|
* border indicators). Defaults to `center`, but consider using `start` for extremely
|
|
12000
12094
|
* tall content that scrolls off-screen
|
|
12001
12095
|
*/
|
|
12002
|
-
alignIndicator?: "center" | "start" | "end"
|
|
12096
|
+
alignIndicator?: "center" | "start" | "end";
|
|
12003
12097
|
/**
|
|
12004
12098
|
* By default, EuiResizableButton will overlap into the panels before/after it.
|
|
12005
12099
|
* This can occasionally occlude interactive elements like scrollbars. To prevent
|
|
12006
12100
|
* this overlap, use this prop to remove the overlap for the specified side.
|
|
12007
12101
|
*/
|
|
12008
|
-
accountForScrollbars?: "before" | "after" | "both"
|
|
12102
|
+
accountForScrollbars?: "before" | "after" | "both";
|
|
12009
12103
|
/**
|
|
12010
12104
|
* When disabled, the resizer button will be completely hidden
|
|
12011
12105
|
*/
|
|
12012
|
-
disabled?: boolean
|
|
12106
|
+
disabled?: boolean;
|
|
12013
12107
|
} & React.RefAttributes<HTMLButtonElement>>;
|
|
12014
12108
|
/**
|
|
12015
12109
|
* Resizer button specific to controlled EuiResizableContainer usage
|
|
@@ -12140,9 +12234,9 @@ declare module '@elastic/eui/src/components/resizable_container/resizable_panel'
|
|
|
12140
12234
|
}
|
|
12141
12235
|
export type ModeOptions = PanelModeType | [PanelModeType, Partial<ToggleOptions>];
|
|
12142
12236
|
export type ToggleCollapseCallback = (panelId: EuiResizablePanelController['id'], options: ActionToggleOptions) => void;
|
|
12143
|
-
export const getModeType: (mode?: ModeOptions
|
|
12144
|
-
export const getToggleOptions: (mode?: ModeOptions
|
|
12145
|
-
'data-test-subj': string
|
|
12237
|
+
export const getModeType: (mode?: ModeOptions) => PanelModeType | undefined;
|
|
12238
|
+
export const getToggleOptions: (mode?: ModeOptions) => {
|
|
12239
|
+
'data-test-subj': string;
|
|
12146
12240
|
className: string | null;
|
|
12147
12241
|
position: string;
|
|
12148
12242
|
};
|
|
@@ -12221,9 +12315,9 @@ declare module '@elastic/eui/src/components/resizable_container/helpers' {
|
|
|
12221
12315
|
[key: string]: number;
|
|
12222
12316
|
}) => any;
|
|
12223
12317
|
}
|
|
12224
|
-
export const isTouchEvent: (event: MouseEvent | ReactMouseEvent | TouchEvent | ReactTouchEvent) => event is TouchEvent | ReactTouchEvent
|
|
12318
|
+
export const isTouchEvent: (event: MouseEvent | ReactMouseEvent | TouchEvent | ReactTouchEvent) => event is TouchEvent | ReactTouchEvent;
|
|
12225
12319
|
export const pxToPercent: (proportion: number, whole: number) => number;
|
|
12226
|
-
export const sizesOnly: (panelObject: EuiResizableContainerRegistry[
|
|
12320
|
+
export const sizesOnly: (panelObject: EuiResizableContainerRegistry["panels"]) => {
|
|
12227
12321
|
[key: string]: number;
|
|
12228
12322
|
};
|
|
12229
12323
|
export const getPanelMinSize: (panelMinSize: string[], containerSize: number) => number;
|
|
@@ -12398,7 +12492,8 @@ declare module '@elastic/eui/src/components/header/header.styles' {
|
|
|
12398
12492
|
}
|
|
12399
12493
|
declare module '@elastic/eui/src/components/collapsible_nav_beta/context' {
|
|
12400
12494
|
import { MouseEventHandler } from 'react';
|
|
12401
|
-
import { _EuiFlyoutSide } from '@elastic/eui/src/components/flyout/flyout';
|
|
12495
|
+
import { _EuiFlyoutSide } from '@elastic/eui/src/components/flyout/flyout';
|
|
12496
|
+
type _EuiCollapsibleNavContext = {
|
|
12402
12497
|
isCollapsed: boolean;
|
|
12403
12498
|
isPush: boolean;
|
|
12404
12499
|
isOverlayOpen: boolean;
|
|
@@ -12647,8 +12742,8 @@ declare module '@elastic/eui/src/components/collapsible_nav_beta/collapsible_nav
|
|
|
12647
12742
|
backgroundSelectedColor: string;
|
|
12648
12743
|
color: string;
|
|
12649
12744
|
rightIconColor: string;
|
|
12650
|
-
fontSize: import("
|
|
12651
|
-
lineHeight: import("
|
|
12745
|
+
fontSize: import("react").CSSProperties["fontSize"];
|
|
12746
|
+
lineHeight: import("react").CSSProperties["lineHeight"];
|
|
12652
12747
|
height: string;
|
|
12653
12748
|
padding: string;
|
|
12654
12749
|
};
|
|
@@ -12745,7 +12840,8 @@ declare module '@elastic/eui/src/components/collapsible_nav_beta/collapsible_nav
|
|
|
12745
12840
|
declare module '@elastic/eui/src/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_link' {
|
|
12746
12841
|
import { FunctionComponent, ReactNode } from 'react';
|
|
12747
12842
|
import { EuiLinkProps } from '@elastic/eui/src/components/link';
|
|
12748
|
-
import type { _SharedEuiCollapsibleNavItemProps, _EuiCollapsibleNavItemDisplayProps, EuiCollapsibleNavItemProps } from '@elastic/eui/src/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_item';
|
|
12843
|
+
import type { _SharedEuiCollapsibleNavItemProps, _EuiCollapsibleNavItemDisplayProps, EuiCollapsibleNavItemProps } from '@elastic/eui/src/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_item';
|
|
12844
|
+
type EuiCollapsibleNavLinkProps = Omit<EuiLinkProps, 'children'> & _SharedEuiCollapsibleNavItemProps & _EuiCollapsibleNavItemDisplayProps & Pick<EuiCollapsibleNavItemProps, 'href' | 'linkProps'> & {
|
|
12749
12845
|
children: ReactNode;
|
|
12750
12846
|
isInteractive?: boolean;
|
|
12751
12847
|
isNotAccordion?: boolean;
|
|
@@ -12778,7 +12874,8 @@ declare module '@elastic/eui/src/components/collapsible_nav_beta/collapsible_nav
|
|
|
12778
12874
|
}
|
|
12779
12875
|
declare module '@elastic/eui/src/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_accordion' {
|
|
12780
12876
|
import { FunctionComponent, ReactNode } from 'react';
|
|
12781
|
-
import { type _SharedEuiCollapsibleNavItemProps, type _EuiCollapsibleNavItemDisplayProps, type EuiCollapsibleNavItemProps } from '@elastic/eui/src/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_item';
|
|
12877
|
+
import { type _SharedEuiCollapsibleNavItemProps, type _EuiCollapsibleNavItemDisplayProps, type EuiCollapsibleNavItemProps } from '@elastic/eui/src/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_item';
|
|
12878
|
+
type EuiCollapsibleNavAccordionProps = _SharedEuiCollapsibleNavItemProps & _EuiCollapsibleNavItemDisplayProps & Pick<EuiCollapsibleNavItemProps, 'accordionProps'> & Required<Pick<EuiCollapsibleNavItemProps, 'items'>> & {
|
|
12782
12879
|
buttonContent: ReactNode;
|
|
12783
12880
|
};
|
|
12784
12881
|
/**
|
|
@@ -12794,7 +12891,8 @@ declare module '@elastic/eui/src/components/collapsible_nav_beta/collapsible_nav
|
|
|
12794
12891
|
}
|
|
12795
12892
|
declare module '@elastic/eui/src/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_group' {
|
|
12796
12893
|
import { FunctionComponent, ReactNode } from 'react';
|
|
12797
|
-
import { type _SharedEuiCollapsibleNavItemProps, type _EuiCollapsibleNavItemDisplayProps, type EuiCollapsibleNavItemProps } from '@elastic/eui/src/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_item';
|
|
12894
|
+
import { type _SharedEuiCollapsibleNavItemProps, type _EuiCollapsibleNavItemDisplayProps, type EuiCollapsibleNavItemProps } from '@elastic/eui/src/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_item';
|
|
12895
|
+
type EuiCollapsibleNavGroupProps = _SharedEuiCollapsibleNavItemProps & _EuiCollapsibleNavItemDisplayProps & Required<Pick<EuiCollapsibleNavItemProps, 'items'>> & {
|
|
12798
12896
|
header?: ReactNode;
|
|
12799
12897
|
};
|
|
12800
12898
|
/**
|
|
@@ -12906,7 +13004,12 @@ declare module '@elastic/eui/src/components/collapsible_nav_beta/collapsible_nav
|
|
|
12906
13004
|
* Sub-items can either be a totally custom rendered item,
|
|
12907
13005
|
* or they can simply be more links or accordions
|
|
12908
13006
|
*/
|
|
12909
|
-
export const EuiCollapsibleNavSubItem: FunctionComponent<EuiCollapsibleNavSubItemProps>;
|
|
13007
|
+
export const EuiCollapsibleNavSubItem: FunctionComponent<EuiCollapsibleNavSubItemProps>;
|
|
13008
|
+
/**
|
|
13009
|
+
* Reuseable component for rendering a group of sub items
|
|
13010
|
+
* Used by both `EuiCollapsibleNavGroup` and `EuiCollapsibleNavAccordion`
|
|
13011
|
+
*/
|
|
13012
|
+
type EuiCollapsibleNavSubItemsProps = HTMLAttributes<HTMLDivElement> & _EuiCollapsibleNavItemDisplayProps & {
|
|
12910
13013
|
items: EuiCollapsibleNavSubItemProps[];
|
|
12911
13014
|
};
|
|
12912
13015
|
export const EuiCollapsibleNavSubItems: FunctionComponent<EuiCollapsibleNavSubItemsProps>;
|
|
@@ -12936,7 +13039,8 @@ declare module '@elastic/eui/src/components/list_group/list_group_item_extra_act
|
|
|
12936
13039
|
import { EuiButtonIconPropsForButton } from '@elastic/eui/src/components/button';
|
|
12937
13040
|
export type EuiListGroupItemExtraActionProps = {
|
|
12938
13041
|
alwaysShow?: boolean;
|
|
12939
|
-
} & EuiButtonIconPropsForButton;
|
|
13042
|
+
} & EuiButtonIconPropsForButton;
|
|
13043
|
+
type _FromEuiListGroupItem = {
|
|
12940
13044
|
parentIsDisabled?: boolean;
|
|
12941
13045
|
};
|
|
12942
13046
|
export const EuiListGroupItemExtraAction: FunctionComponent<EuiListGroupItemExtraActionProps & _FromEuiListGroupItem>;
|
|
@@ -13247,7 +13351,14 @@ declare module '@elastic/eui/src/components/collapsible_nav_beta/_kibana_solutio
|
|
|
13247
13351
|
*
|
|
13248
13352
|
* This component is **very** specific to Kibana and is not meant to be a generic component.
|
|
13249
13353
|
*/
|
|
13250
|
-
export const KibanaCollapsibleNavSolution: FunctionComponent<KibanaCollapsibleNavSolutionProps>;
|
|
13354
|
+
export const KibanaCollapsibleNavSolution: FunctionComponent<KibanaCollapsibleNavSolutionProps>;
|
|
13355
|
+
/**
|
|
13356
|
+
* Tweak EuiListGroup's items API to match EuiCollapsibleNav's
|
|
13357
|
+
* more closely (primarily label->title, iconType->icon),
|
|
13358
|
+
* and also to allow passing secondary items in the same array
|
|
13359
|
+
* (which will get rendered in a separate non-bordered group)
|
|
13360
|
+
*/
|
|
13361
|
+
type EuiListGroupItemsModified = Array<Omit<EuiListGroupItemProps, 'label' | 'iconType' | 'icon'> & {
|
|
13251
13362
|
title: string;
|
|
13252
13363
|
icon?: EuiListGroupItemProps['iconType'];
|
|
13253
13364
|
isSecondary?: boolean;
|
|
@@ -13359,17 +13470,17 @@ declare module '@elastic/eui/src/components/color_picker/color_picker_swatch' {
|
|
|
13359
13470
|
};
|
|
13360
13471
|
};
|
|
13361
13472
|
export const EuiColorPickerSwatch: React.ForwardRefExoticComponent<CommonProps & Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "color"> & {
|
|
13362
|
-
color?: string
|
|
13473
|
+
color?: string;
|
|
13363
13474
|
/**
|
|
13364
13475
|
* renders a tooltip with the color value to provide a visual text alternative
|
|
13365
13476
|
* @default true
|
|
13366
13477
|
*/
|
|
13367
|
-
showToolTip?: boolean
|
|
13478
|
+
showToolTip?: boolean;
|
|
13368
13479
|
/** Additional props for the EuiToolip when `showToolTip={true}` */
|
|
13369
|
-
toolTipProps?:
|
|
13370
|
-
delay?:
|
|
13371
|
-
position?:
|
|
13372
|
-
}
|
|
13480
|
+
toolTipProps?: Omit<EuiToolTipProps, "children" | "delay" | "position"> & {
|
|
13481
|
+
delay?: EuiToolTipProps["delay"];
|
|
13482
|
+
position?: EuiToolTipProps["position"];
|
|
13483
|
+
};
|
|
13373
13484
|
} & React.RefAttributes<HTMLButtonElement>>;
|
|
13374
13485
|
|
|
13375
13486
|
}
|
|
@@ -13377,6 +13488,7 @@ declare module '@elastic/eui/src/components/color_picker/hue.styles' {
|
|
|
13377
13488
|
import { UseEuiTheme } from '@elastic/eui/src/services';
|
|
13378
13489
|
export const euiHueStyles: (euiThemeContext: UseEuiTheme) => {
|
|
13379
13490
|
euiHue: import("@emotion/react").SerializedStyles;
|
|
13491
|
+
euiHue__tooltip: import("@emotion/react").SerializedStyles;
|
|
13380
13492
|
euiHue__range: import("@emotion/react").SerializedStyles;
|
|
13381
13493
|
};
|
|
13382
13494
|
|
|
@@ -13398,6 +13510,7 @@ declare module '@elastic/eui/src/components/color_picker/saturation.styles' {
|
|
|
13398
13510
|
euiSaturation: import("@emotion/react").SerializedStyles;
|
|
13399
13511
|
euiSaturation__lightness: import("@emotion/react").SerializedStyles;
|
|
13400
13512
|
euiSaturation__saturation: import("@emotion/react").SerializedStyles;
|
|
13513
|
+
euiSaturation__tooltip: import("@emotion/react").SerializedStyles;
|
|
13401
13514
|
euiSaturation__indicator: import("@emotion/react").SerializedStyles;
|
|
13402
13515
|
};
|
|
13403
13516
|
|
|
@@ -13416,7 +13529,7 @@ declare module '@elastic/eui/src/components/color_picker/saturation' {
|
|
|
13416
13529
|
hex?: string;
|
|
13417
13530
|
};
|
|
13418
13531
|
export const EuiSaturation: React.ForwardRefExoticComponent<Omit<React.HTMLAttributes<HTMLDivElement>, keyof HTMLDivElementOverrides> & CommonProps & HTMLDivElementOverrides & {
|
|
13419
|
-
hex?: string
|
|
13532
|
+
hex?: string;
|
|
13420
13533
|
} & React.RefAttributes<HTMLDivElement>>;
|
|
13421
13534
|
export {};
|
|
13422
13535
|
|
|
@@ -13435,7 +13548,9 @@ declare module '@elastic/eui/src/components/color_picker/color_picker' {
|
|
|
13435
13548
|
import { FunctionComponent, HTMLAttributes, ReactElement } from 'react';
|
|
13436
13549
|
import { ColorSpaces } from 'chroma-js';
|
|
13437
13550
|
import { CommonProps } from '@elastic/eui/src/components/common';
|
|
13438
|
-
import { EuiFormControlLayoutProps } from '@elastic/eui/src/components/form';
|
|
13551
|
+
import { EuiFormControlLayoutProps } from '@elastic/eui/src/components/form';
|
|
13552
|
+
type EuiColorPickerDisplay = 'default' | 'inline';
|
|
13553
|
+
type EuiColorPickerMode = 'default' | 'swatch' | 'picker' | 'secondaryInput';
|
|
13439
13554
|
export interface EuiColorPickerOutput {
|
|
13440
13555
|
rgba: ColorSpaces['rgba'];
|
|
13441
13556
|
hex: string;
|
|
@@ -13611,8 +13726,8 @@ declare module '@elastic/eui/src/components/combo_box/matching_options' {
|
|
|
13611
13726
|
interface GetSelectedOptionForSearchValue<T> extends Pick<GetMatchingOptions<T>, 'isCaseSensitive' | 'searchValue' | 'selectedOptions'> {
|
|
13612
13727
|
optionKey?: string;
|
|
13613
13728
|
}
|
|
13614
|
-
export const transformForCaseSensitivity: (string: string, isCaseSensitive?: boolean
|
|
13615
|
-
export const flattenOptionGroups: <T>(optionsOrGroups: EuiComboBoxOptionOption<T
|
|
13729
|
+
export const transformForCaseSensitivity: (string: string, isCaseSensitive?: boolean) => string;
|
|
13730
|
+
export const flattenOptionGroups: <T>(optionsOrGroups: Array<EuiComboBoxOptionOption<T>>) => EuiComboBoxOptionOption<T>[];
|
|
13616
13731
|
export const getSelectedOptionForSearchValue: <T>({ isCaseSensitive, searchValue, selectedOptions, optionKey, }: GetSelectedOptionForSearchValue<T>) => EuiComboBoxOptionOption<T> | undefined;
|
|
13617
13732
|
export const getMatchingOptions: <T>({ options, selectedOptions, searchValue, optionMatcher, isCaseSensitive, isPreFiltered, showPrevSelected, sortMatchesBy, }: GetMatchingOptions<T>) => EuiComboBoxOptionOption<T>[];
|
|
13618
13733
|
/**
|
|
@@ -13629,12 +13744,10 @@ declare module '@elastic/eui/src/components/combo_box/utils' {
|
|
|
13629
13744
|
/**
|
|
13630
13745
|
* DRY util for rendering an option with its prepend and append properties
|
|
13631
13746
|
*/
|
|
13632
|
-
export const EuiComboBoxOptionAppendPrepend: <T>({ children, option, classNamePrefix, marginSize, }: {
|
|
13633
|
-
|
|
13634
|
-
|
|
13635
|
-
|
|
13636
|
-
classNamePrefix?: string | undefined;
|
|
13637
|
-
marginSize?: "s" | "xxs" | "xs" | undefined;
|
|
13747
|
+
export const EuiComboBoxOptionAppendPrepend: <T>({ children, option, classNamePrefix, marginSize, }: PropsWithChildren & {
|
|
13748
|
+
option?: EuiComboBoxOptionOption<T>;
|
|
13749
|
+
classNamePrefix?: string;
|
|
13750
|
+
marginSize?: "s" | "xs" | "xxs";
|
|
13638
13751
|
}) => React.JSX.Element;
|
|
13639
13752
|
|
|
13640
13753
|
}
|
|
@@ -13964,7 +14077,7 @@ declare module '@elastic/eui/src/components/combo_box/combo_box_options_list/com
|
|
|
13964
14077
|
ListRow: ({ data, index, style }: ListChildComponentProps) => React.JSX.Element;
|
|
13965
14078
|
optionWidth: number | undefined;
|
|
13966
14079
|
setOptionWidth: (width: number) => void;
|
|
13967
|
-
renderTruncatedOption: (text: string, truncationProps?: EuiComboBoxOptionsListProps<T>[
|
|
14080
|
+
renderTruncatedOption: (text: string, truncationProps?: EuiComboBoxOptionsListProps<T>["truncationProps"]) => string | React.JSX.Element;
|
|
13968
14081
|
render(): React.JSX.Element;
|
|
13969
14082
|
}
|
|
13970
14083
|
|
|
@@ -13995,7 +14108,8 @@ declare module '@elastic/eui/src/components/combo_box/combo_box' {
|
|
|
13995
14108
|
import { SortMatchesBy } from '@elastic/eui/src/components/combo_box/matching_options';
|
|
13996
14109
|
import { EuiComboBoxInputProps } from '@elastic/eui/src/components/combo_box/combo_box_input/combo_box_input';
|
|
13997
14110
|
import { EuiComboBoxOptionsListProps } from '@elastic/eui/src/components/combo_box/combo_box_options_list/combo_box_options_list';
|
|
13998
|
-
import { OptionHandler, RefInstance, EuiComboBoxOptionOption, EuiComboBoxSingleSelectionShape, EuiComboBoxOptionMatcher } from '@elastic/eui/src/components/combo_box/types';
|
|
14111
|
+
import { OptionHandler, RefInstance, EuiComboBoxOptionOption, EuiComboBoxSingleSelectionShape, EuiComboBoxOptionMatcher } from '@elastic/eui/src/components/combo_box/types';
|
|
14112
|
+
type DrillProps<T> = Pick<EuiComboBoxOptionsListProps<T>, 'customOptionText' | 'onCreateOption' | 'options' | 'renderOption' | 'selectedOptions'>;
|
|
13999
14113
|
export interface _EuiComboBoxProps<T> extends CommonProps, Omit<HTMLAttributes<HTMLDivElement>, 'onChange'>, DrillProps<T> {
|
|
14000
14114
|
'data-test-subj'?: string;
|
|
14001
14115
|
/**
|
|
@@ -14114,7 +14228,16 @@ declare module '@elastic/eui/src/components/combo_box/combo_box' {
|
|
|
14114
14228
|
* (except for props that control state).
|
|
14115
14229
|
*/
|
|
14116
14230
|
inputPopoverProps?: Partial<Omit<EuiInputPopoverProps, 'input' | 'isOpen' | 'closePopover'>>;
|
|
14117
|
-
}
|
|
14231
|
+
}
|
|
14232
|
+
/**
|
|
14233
|
+
* Because of how TypeScript's LibraryManagedAttributes is designed to handle defaultProps (https://www.typescriptlang.org/docs/handbook/release-notes/typescript-3-0.html#support-for-defaultprops-in-jsx)
|
|
14234
|
+
* we can't directly export the above Props definitions, as the defaulted values are not made optional
|
|
14235
|
+
* as it isn't processed by LibraryManagedAttributes. To get around this, we:
|
|
14236
|
+
* - remove the props which have default values applied
|
|
14237
|
+
* - additionally re-define `options` and `selectedOptions` defaults, necessary as static members can't access generics and become never[]
|
|
14238
|
+
* - export (Props - Defaults) & Partial<Defaults>
|
|
14239
|
+
*/
|
|
14240
|
+
type DefaultProps<T> = Omit<(typeof EuiComboBox)['defaultProps'], 'options' | 'selectedOptions' | 'optionMatcher'> & {
|
|
14118
14241
|
options: Array<EuiComboBoxOptionOption<T>>;
|
|
14119
14242
|
selectedOptions: Array<EuiComboBoxOptionOption<T>>;
|
|
14120
14243
|
optionMatcher: EuiComboBoxOptionMatcher<T>;
|
|
@@ -14164,7 +14287,7 @@ declare module '@elastic/eui/src/components/combo_box/combo_box' {
|
|
|
14164
14287
|
onKeyDown: KeyboardEventHandler<HTMLDivElement>;
|
|
14165
14288
|
onOptionEnterKey: OptionHandler<T>;
|
|
14166
14289
|
onOptionClick: OptionHandler<T>;
|
|
14167
|
-
onAddOption: (addedOption: EuiComboBoxOptionOption<T>, isContainerBlur?: boolean
|
|
14290
|
+
onAddOption: (addedOption: EuiComboBoxOptionOption<T>, isContainerBlur?: boolean) => void;
|
|
14168
14291
|
onRemoveOption: OptionHandler<T>;
|
|
14169
14292
|
clearSelectedOptions: () => void;
|
|
14170
14293
|
onComboBoxClick: () => void;
|
|
@@ -14447,7 +14570,7 @@ declare module '@elastic/eui/src/components/datagrid/utils/data_grid_schema' {
|
|
|
14447
14570
|
};
|
|
14448
14571
|
export const useDetectSchema: ({ columns, inMemory, inMemoryValues, schemaDetectors, autoDetectSchema, }: UseSchemaProps) => EuiDataGridSchema;
|
|
14449
14572
|
export const useMergedSchema: (props: UseSchemaProps) => {
|
|
14450
|
-
[
|
|
14573
|
+
[columnId: string]: {
|
|
14451
14574
|
columnType: string | null;
|
|
14452
14575
|
};
|
|
14453
14576
|
};
|
|
@@ -14487,7 +14610,7 @@ declare module '@elastic/eui/src/components/datagrid/utils/row_heights' {
|
|
|
14487
14610
|
/**
|
|
14488
14611
|
* Height types
|
|
14489
14612
|
*/
|
|
14490
|
-
getHeightType: (option?: EuiDataGridRowHeightOption
|
|
14613
|
+
getHeightType: (option?: EuiDataGridRowHeightOption) => "auto" | "default" | "lineCount" | "numerical";
|
|
14491
14614
|
/**
|
|
14492
14615
|
* Line count utils
|
|
14493
14616
|
*/
|
|
@@ -14536,12 +14659,12 @@ declare module '@elastic/eui/src/components/datagrid/utils/row_heights' {
|
|
|
14536
14659
|
gridRef: MutableRefObject<ImperativeGridApi | null>;
|
|
14537
14660
|
outerGridElementRef: MutableRefObject<HTMLDivElement | null>;
|
|
14538
14661
|
gridItemsRenderedRef: MutableRefObject<GridOnItemsRenderedProps | null>;
|
|
14539
|
-
}
|
|
14540
|
-
rowHeightsOptions?: EuiDataGridRowHeightsOptions
|
|
14662
|
+
};
|
|
14663
|
+
rowHeightsOptions?: EuiDataGridRowHeightsOptions;
|
|
14541
14664
|
columns: EuiDataGridColumn[];
|
|
14542
14665
|
}) => RowHeightUtils;
|
|
14543
14666
|
export const useDefaultRowHeight: ({ rowHeightsOptions, rowHeightUtils, }: {
|
|
14544
|
-
rowHeightsOptions?: EuiDataGridRowHeightsOptions
|
|
14667
|
+
rowHeightsOptions?: EuiDataGridRowHeightsOptions;
|
|
14545
14668
|
rowHeightUtils: RowHeightUtilsType;
|
|
14546
14669
|
}) => {
|
|
14547
14670
|
defaultRowHeight: number;
|
|
@@ -15206,7 +15329,9 @@ declare module '@elastic/eui/src/components/datagrid/data_grid_types' {
|
|
|
15206
15329
|
* Accepts any props that `EuiPopover` accepts, except for `button` and `closePopover`.
|
|
15207
15330
|
*/
|
|
15208
15331
|
setCellPopoverProps: (props: Omit<EuiPopoverProps, 'button' | 'closePopover'>) => void;
|
|
15209
|
-
}
|
|
15332
|
+
}
|
|
15333
|
+
type CellContext = Omit<Record<string, any>, keyof EuiDataGridCellValueElementProps>;
|
|
15334
|
+
type CellPropsWithContext = CellContext & EuiDataGridCellValueElementProps;
|
|
15210
15335
|
export type RenderCellValue = ((props: CellPropsWithContext) => ReactNode) | ComponentClass<CellPropsWithContext>;
|
|
15211
15336
|
export interface EuiDataGridCellProps {
|
|
15212
15337
|
rowIndex: number;
|
|
@@ -15684,7 +15809,8 @@ declare module '@elastic/eui/src/components/datagrid/data_grid_types' {
|
|
|
15684
15809
|
}
|
|
15685
15810
|
declare module '@elastic/eui/src/components/drag_and_drop/drag_drop_context' {
|
|
15686
15811
|
import React, { FunctionComponent } from 'react';
|
|
15687
|
-
import { DragDropContextProps } from '@hello-pangea/dnd';
|
|
15812
|
+
import { DragDropContextProps } from '@hello-pangea/dnd';
|
|
15813
|
+
type EuiDraggingType = string | null;
|
|
15688
15814
|
export interface EuiDragDropContextProps {
|
|
15689
15815
|
isDraggingType: EuiDraggingType;
|
|
15690
15816
|
}
|
|
@@ -15844,7 +15970,8 @@ declare module '@elastic/eui/src/components/drag_and_drop' {
|
|
|
15844
15970
|
declare module '@elastic/eui/src/components/datagrid/utils/focus' {
|
|
15845
15971
|
import { HTMLAttributes, KeyboardEvent } from 'react';
|
|
15846
15972
|
import { DataGridFocusContextShape, EuiDataGridFocusedCell, EuiDataGridProps } from '@elastic/eui/src/components/datagrid/data_grid_types';
|
|
15847
|
-
export const DataGridFocusContext: import("react").Context<DataGridFocusContextShape>;
|
|
15973
|
+
export const DataGridFocusContext: import("react").Context<DataGridFocusContextShape>;
|
|
15974
|
+
type FocusProps = Pick<HTMLAttributes<HTMLDivElement>, 'tabIndex' | 'onKeyUp'>;
|
|
15848
15975
|
/**
|
|
15849
15976
|
* Main focus context and overarching focus state management
|
|
15850
15977
|
*/
|
|
@@ -15860,8 +15987,8 @@ declare module '@elastic/eui/src/components/datagrid/utils/focus' {
|
|
|
15860
15987
|
visibleColCount: number;
|
|
15861
15988
|
visibleRowCount: number;
|
|
15862
15989
|
visibleRowStartIndex: number;
|
|
15863
|
-
rowCount: EuiDataGridProps[
|
|
15864
|
-
pagination: Required<EuiDataGridProps[
|
|
15990
|
+
rowCount: EuiDataGridProps["rowCount"];
|
|
15991
|
+
pagination: Required<EuiDataGridProps["pagination"]>;
|
|
15865
15992
|
hasFooter: boolean;
|
|
15866
15993
|
focusContext: DataGridFocusContextShape;
|
|
15867
15994
|
}) => (event: KeyboardEvent<HTMLDivElement>) => void;
|
|
@@ -15899,13 +16026,13 @@ declare module '@elastic/eui/src/components/datagrid/data_grid.styles' {
|
|
|
15899
16026
|
export const euiDataGridStyles: (euiThemeContext: UseEuiTheme) => {
|
|
15900
16027
|
euiDataGrid: import("@emotion/react").SerializedStyles;
|
|
15901
16028
|
cellPadding: {
|
|
15902
|
-
cellPadding: (size:
|
|
16029
|
+
cellPadding: (size: "s" | "m" | "l") => import("@emotion/react").SerializedStyles;
|
|
15903
16030
|
readonly s: import("@emotion/react").SerializedStyles;
|
|
15904
16031
|
readonly m: import("@emotion/react").SerializedStyles;
|
|
15905
16032
|
readonly l: import("@emotion/react").SerializedStyles;
|
|
15906
16033
|
};
|
|
15907
16034
|
fontSize: {
|
|
15908
|
-
fontSize: (size:
|
|
16035
|
+
fontSize: (size: "s" | "m") => import("@emotion/react").SerializedStyles;
|
|
15909
16036
|
readonly s: import("@emotion/react").SerializedStyles;
|
|
15910
16037
|
readonly m: import("@emotion/react").SerializedStyles;
|
|
15911
16038
|
readonly l: import("@emotion/react").SerializedStyles;
|
|
@@ -15957,7 +16084,13 @@ declare module '@elastic/eui/src/components/datagrid/body/header/draggable_colum
|
|
|
15957
16084
|
children: (dragProps?: Partial<DraggableProvidedDragHandleProps> & {
|
|
15958
16085
|
'data-column-moving'?: boolean;
|
|
15959
16086
|
}) => ReactElement;
|
|
15960
|
-
}>;
|
|
16087
|
+
}>;
|
|
16088
|
+
/**
|
|
16089
|
+
* Components for conditionally rendering drag/drop wrappers
|
|
16090
|
+
* Allows us to conditionally call hooks while not instantiating a bunch
|
|
16091
|
+
* of extra state/etc., since draggable columns isn't yet(?) a default
|
|
16092
|
+
*/
|
|
16093
|
+
type CanDragAndDropColumns = {
|
|
15961
16094
|
canDragAndDropColumns: boolean;
|
|
15962
16095
|
};
|
|
15963
16096
|
export const ConditionalDroppableColumns: FunctionComponent<ComponentProps<typeof DroppableColumns> & CanDragAndDropColumns>;
|
|
@@ -15997,7 +16130,7 @@ declare module '@elastic/eui/src/utils/prop_types/with_required_prop' {
|
|
|
15997
16130
|
*
|
|
15998
16131
|
* this validator warns if ExampleComponent is passed an `items` prop but not `itemId`
|
|
15999
16132
|
*/
|
|
16000
|
-
export const withRequiredProp: (proptype: any, requiredPropName: string, messageDescription?: string
|
|
16133
|
+
export const withRequiredProp: (proptype: any, requiredPropName: string, messageDescription?: string) => (...args: any[]) => any;
|
|
16001
16134
|
|
|
16002
16135
|
}
|
|
16003
16136
|
declare module '@elastic/eui/src/utils/prop_types' {
|
|
@@ -16006,7 +16139,7 @@ declare module '@elastic/eui/src/utils/prop_types' {
|
|
|
16006
16139
|
(props: T, propName: keyof T, componentName: string): Error | null;
|
|
16007
16140
|
isRequired(props: T, propName: keyof T, componentName: string): Error | null;
|
|
16008
16141
|
};
|
|
16009
|
-
withRequiredProp: (proptype: any, requiredPropName: string, messageDescription?: string
|
|
16142
|
+
withRequiredProp: (proptype: any, requiredPropName: string, messageDescription?: string) => (...args: any[]) => any;
|
|
16010
16143
|
};
|
|
16011
16144
|
|
|
16012
16145
|
}
|
|
@@ -16163,7 +16296,7 @@ declare module '@elastic/eui/src/components/datagrid/body/header/column_actions'
|
|
|
16163
16296
|
import React, { Ref, KeyboardEventHandler, FunctionComponent } from 'react';
|
|
16164
16297
|
import { EuiListGroupItemProps } from '@elastic/eui/src/components/list_group';
|
|
16165
16298
|
import { EuiDataGridHeaderCellProps, EuiDataGridColumn, EuiDataGridColumnActions, EuiDataGridSchema, EuiDataGridSchemaDetector, EuiDataGridSorting, DataGridFocusContextShape } from '@elastic/eui/src/components/datagrid/data_grid_types';
|
|
16166
|
-
export const useHasColumnActions: (columnActions: EuiDataGridColumn[
|
|
16299
|
+
export const useHasColumnActions: (columnActions: EuiDataGridColumn["actions"]) => boolean;
|
|
16167
16300
|
export type PropsFromColumnActions = {
|
|
16168
16301
|
className?: string;
|
|
16169
16302
|
onKeyDown?: KeyboardEventHandler;
|
|
@@ -16204,16 +16337,24 @@ declare module '@elastic/eui/src/components/datagrid/body/header/column_actions'
|
|
|
16204
16337
|
setFocusedCell: DataGridFocusContextShape['setFocusedCell'];
|
|
16205
16338
|
columnFocusIndex: number;
|
|
16206
16339
|
}
|
|
16207
|
-
export const getColumnActions: ({ column, columns, schema, schemaDetectors, setVisibleColumns, focusFirstVisibleInteractiveCell, setIsPopoverOpen, sorting, switchColumnPos, setIsColumnMoving, setFocusedCell, columnFocusIndex, }: GetColumnActions) => EuiListGroupItemProps[];
|
|
16208
|
-
|
|
16340
|
+
export const getColumnActions: ({ column, columns, schema, schemaDetectors, setVisibleColumns, focusFirstVisibleInteractiveCell, setIsPopoverOpen, sorting, switchColumnPos, setIsColumnMoving, setFocusedCell, columnFocusIndex, }: GetColumnActions) => EuiListGroupItemProps[];
|
|
16341
|
+
/**
|
|
16342
|
+
* Hide column action
|
|
16343
|
+
*/
|
|
16344
|
+
type HideColumnAction = Pick<GetColumnActions, 'column' | 'columns' | 'setVisibleColumns' | 'focusFirstVisibleInteractiveCell'>;
|
|
16345
|
+
export const getHideColumnAction: ({ column, columns, setVisibleColumns, focusFirstVisibleInteractiveCell, }: HideColumnAction) => EuiListGroupItemProps[];
|
|
16346
|
+
/**
|
|
16347
|
+
* Sort column actions
|
|
16348
|
+
*/
|
|
16349
|
+
type SortColumnActions = Pick<GetColumnActions, 'column' | 'sorting' | 'schema' | 'schemaDetectors'>;
|
|
16209
16350
|
export const getSortColumnActions: ({ column, sorting, schema, schemaDetectors, }: SortColumnActions) => EuiListGroupItemProps[];
|
|
16210
16351
|
/**
|
|
16211
16352
|
* Column action utility helpers - mostly syntactical sugar for adding an extra
|
|
16212
16353
|
* actions !== false checks, which we make an early return for in the main fn,
|
|
16213
16354
|
* but that the individual utils don't know about and Typescript complains about
|
|
16214
16355
|
*/
|
|
16215
|
-
export const isColumnActionEnabled: (actionKey: keyof EuiDataGridColumnActions, actions: EuiDataGridColumn[
|
|
16216
|
-
export const getColumnActionConfig: (action: EuiListGroupItemProps, actionKey: keyof EuiDataGridColumnActions, actions: EuiDataGridColumn[
|
|
16356
|
+
export const isColumnActionEnabled: (actionKey: keyof EuiDataGridColumnActions, actions: EuiDataGridColumn["actions"]) => boolean;
|
|
16357
|
+
export const getColumnActionConfig: (action: EuiListGroupItemProps, actionKey: keyof EuiDataGridColumnActions, actions: EuiDataGridColumn["actions"]) => EuiListGroupItemProps;
|
|
16217
16358
|
export {};
|
|
16218
16359
|
|
|
16219
16360
|
}
|
|
@@ -16224,7 +16365,7 @@ declare module '@elastic/eui/src/components/datagrid/body/header/column_sorting'
|
|
|
16224
16365
|
* Column sorting utility helpers
|
|
16225
16366
|
*/
|
|
16226
16367
|
export const useColumnSorting: ({ sorting, id, }: {
|
|
16227
|
-
sorting?: EuiDataGridSorting
|
|
16368
|
+
sorting?: EuiDataGridSorting;
|
|
16228
16369
|
id: string;
|
|
16229
16370
|
}) => {
|
|
16230
16371
|
sortingArrow: React.JSX.Element | null;
|
|
@@ -16312,12 +16453,12 @@ declare module '@elastic/eui/src/components/datagrid/body/cell/data_grid_cell_ac
|
|
|
16312
16453
|
export const EuiDataGridCellActions: ({ onExpandClick, popoverAnchorRef, column, rowIndex, colIndex, }: {
|
|
16313
16454
|
onExpandClick: () => void;
|
|
16314
16455
|
popoverAnchorRef: Ref<HTMLDivElement>;
|
|
16315
|
-
column?: EuiDataGridColumn
|
|
16456
|
+
column?: EuiDataGridColumn;
|
|
16316
16457
|
rowIndex: number;
|
|
16317
16458
|
colIndex: number;
|
|
16318
16459
|
}) => React.JSX.Element;
|
|
16319
16460
|
export const EuiDataGridCellPopoverActions: ({ rowIndex, colIndex, column, }: {
|
|
16320
|
-
column?: EuiDataGridColumn
|
|
16461
|
+
column?: EuiDataGridColumn;
|
|
16321
16462
|
colIndex: number;
|
|
16322
16463
|
rowIndex: number;
|
|
16323
16464
|
}) => React.JSX.Element;
|
|
@@ -16345,13 +16486,13 @@ declare module '@elastic/eui/src/components/datagrid/body/cell/data_grid_cell_po
|
|
|
16345
16486
|
|
|
16346
16487
|
}
|
|
16347
16488
|
declare module '@elastic/eui/src/components/datagrid/body/cell/data_grid_cell' {
|
|
16348
|
-
import React, { Component, ContextType, KeyboardEvent } from 'react';
|
|
16489
|
+
import React, { Component, ContextType, KeyboardEvent, MutableRefObject } from 'react';
|
|
16349
16490
|
import { DataGridFocusContext } from '@elastic/eui/src/components/datagrid/utils/focus';
|
|
16350
16491
|
import { EuiDataGridCellProps, EuiDataGridCellState, EuiDataGridSetCellProps } from '@elastic/eui/src/components/datagrid/data_grid_types';
|
|
16351
16492
|
export class EuiDataGridCell extends Component<EuiDataGridCellProps, EuiDataGridCellState> {
|
|
16352
|
-
cellRef:
|
|
16493
|
+
cellRef: MutableRefObject<HTMLDivElement | null>;
|
|
16353
16494
|
contentObserver: any;
|
|
16354
|
-
popoverAnchorRef:
|
|
16495
|
+
popoverAnchorRef: MutableRefObject<HTMLDivElement | null>;
|
|
16355
16496
|
cellContentsRef: HTMLDivElement | null;
|
|
16356
16497
|
state: EuiDataGridCellState;
|
|
16357
16498
|
unsubscribeCell?: Function;
|
|
@@ -16419,11 +16560,11 @@ declare module '@elastic/eui/src/components/datagrid/body/footer/data_grid_foote
|
|
|
16419
16560
|
columns: import ("@elastic/eui/src/components/datagrid/data_grid_types").EuiDataGridColumn[];
|
|
16420
16561
|
schema: import ("@elastic/eui/src/components/datagrid/data_grid_types").EuiDataGridSchema;
|
|
16421
16562
|
columnWidths: import ("@elastic/eui/src/components/datagrid/data_grid_types").EuiDataGridColumnWidths;
|
|
16422
|
-
defaultColumnWidth?: number | null
|
|
16423
|
-
renderCellValue: import ("@elastic/eui/src/components/datagrid/data_grid_types").
|
|
16424
|
-
renderCellPopover?:
|
|
16425
|
-
interactiveCellId:
|
|
16426
|
-
visibleRowIndex?: number
|
|
16563
|
+
defaultColumnWidth?: number | null;
|
|
16564
|
+
renderCellValue: import ("@elastic/eui/src/components/datagrid/data_grid_types").EuiDataGridCellProps["renderCellValue"];
|
|
16565
|
+
renderCellPopover?: import ("@elastic/eui/src/components/datagrid/data_grid_types").EuiDataGridCellProps["renderCellPopover"];
|
|
16566
|
+
interactiveCellId: import ("@elastic/eui/src/components/datagrid/data_grid_types").EuiDataGridCellProps["interactiveCellId"];
|
|
16567
|
+
visibleRowIndex?: number;
|
|
16427
16568
|
visibleColCount: number;
|
|
16428
16569
|
gridStyles: import ("@elastic/eui/src/components/datagrid/data_grid_types").EuiDataGridStyle;
|
|
16429
16570
|
} & React.RefAttributes<HTMLDivElement>>>;
|
|
@@ -16432,7 +16573,8 @@ declare module '@elastic/eui/src/components/datagrid/body/footer/data_grid_foote
|
|
|
16432
16573
|
}
|
|
16433
16574
|
declare module '@elastic/eui/src/components/datagrid/body/footer/use_data_grid_footer' {
|
|
16434
16575
|
import React from 'react';
|
|
16435
|
-
import { EuiDataGridFooterRowProps } from '@elastic/eui/src/components/datagrid/data_grid_types';
|
|
16576
|
+
import { EuiDataGridFooterRowProps } from '@elastic/eui/src/components/datagrid/data_grid_types';
|
|
16577
|
+
type Props = Omit<EuiDataGridFooterRowProps, 'renderCellValue'> & {
|
|
16436
16578
|
renderFooterCellValue?: EuiDataGridFooterRowProps['renderCellValue'];
|
|
16437
16579
|
};
|
|
16438
16580
|
/**
|
|
@@ -16455,7 +16597,7 @@ declare module '@elastic/eui/src/components/datagrid/body/data_grid_row_manager'
|
|
|
16455
16597
|
import { EuiDataGridRowManager, EuiDataGridStyle } from '@elastic/eui/src/components/datagrid/data_grid_types';
|
|
16456
16598
|
export const useRowManager: ({ innerGridRef, rowClasses, }: {
|
|
16457
16599
|
innerGridRef: RefObject<HTMLDivElement>;
|
|
16458
|
-
rowClasses?: EuiDataGridStyle[
|
|
16600
|
+
rowClasses?: EuiDataGridStyle["rowClasses"];
|
|
16459
16601
|
}) => EuiDataGridRowManager;
|
|
16460
16602
|
|
|
16461
16603
|
}
|
|
@@ -16484,7 +16626,7 @@ declare module '@elastic/eui/src/components/datagrid/utils/grid_height_width' {
|
|
|
16484
16626
|
rowHeightUtils: RowHeightUtilsType;
|
|
16485
16627
|
startRow: number;
|
|
16486
16628
|
endRow: number;
|
|
16487
|
-
rowHeightsOptions?: EuiDataGridRowHeightsOptions
|
|
16629
|
+
rowHeightsOptions?: EuiDataGridRowHeightsOptions;
|
|
16488
16630
|
defaultRowHeight: number;
|
|
16489
16631
|
headerRowHeight: number;
|
|
16490
16632
|
footerRowHeight: number;
|
|
@@ -16506,14 +16648,14 @@ declare module '@elastic/eui/src/components/datagrid/utils/grid_height_width' {
|
|
|
16506
16648
|
}
|
|
16507
16649
|
declare module '@elastic/eui/src/components/datagrid/utils/col_widths' {
|
|
16508
16650
|
import { EuiDataGridColumn, EuiDataGridColumnWidths, EuiDataGridControlColumn, EuiDataGridOnColumnResizeHandler, EuiDataGridProps } from '@elastic/eui/src/components/datagrid/data_grid_types';
|
|
16509
|
-
export const useDefaultColumnWidth: (gridWidth: number, leadingControlColumns: EuiDataGridControlColumn[], trailingControlColumns: EuiDataGridControlColumn[], columns: EuiDataGridProps[
|
|
16651
|
+
export const useDefaultColumnWidth: (gridWidth: number, leadingControlColumns: EuiDataGridControlColumn[], trailingControlColumns: EuiDataGridControlColumn[], columns: EuiDataGridProps["columns"]) => number | null;
|
|
16510
16652
|
export const doesColumnHaveAnInitialWidth: (column: EuiDataGridColumn) => boolean;
|
|
16511
16653
|
export const useColumnWidths: ({ columns, leadingControlColumns, trailingControlColumns, defaultColumnWidth, onColumnResize, }: {
|
|
16512
16654
|
columns: EuiDataGridColumn[];
|
|
16513
16655
|
leadingControlColumns: EuiDataGridControlColumn[];
|
|
16514
16656
|
trailingControlColumns: EuiDataGridControlColumn[];
|
|
16515
|
-
defaultColumnWidth?: number | null
|
|
16516
|
-
onColumnResize?: EuiDataGridOnColumnResizeHandler
|
|
16657
|
+
defaultColumnWidth?: number | null;
|
|
16658
|
+
onColumnResize?: EuiDataGridOnColumnResizeHandler;
|
|
16517
16659
|
}) => {
|
|
16518
16660
|
columnWidths: EuiDataGridColumnWidths;
|
|
16519
16661
|
setColumnWidth: (columnId: string, width: number) => void;
|
|
@@ -16567,7 +16709,7 @@ declare module '@elastic/eui/src/components/datagrid/utils/scrolling' {
|
|
|
16567
16709
|
/**
|
|
16568
16710
|
* Checks whether the current grid scrolls and/or has scrollbars
|
|
16569
16711
|
*/
|
|
16570
|
-
export const useScrollBars: (outerGridRef: MutableRefObject<HTMLDivElement | null>, borderStyle?: EuiDataGridStyle[
|
|
16712
|
+
export const useScrollBars: (outerGridRef: MutableRefObject<HTMLDivElement | null>, borderStyle?: EuiDataGridStyle["border"]) => {
|
|
16571
16713
|
scrollBarHeight: number;
|
|
16572
16714
|
scrollBarWidth: number;
|
|
16573
16715
|
hasVerticalScroll: boolean;
|
|
@@ -16626,7 +16768,7 @@ declare module '@elastic/eui/src/components/datagrid/controls/data_grid_toolbar'
|
|
|
16626
16768
|
export const MINIMUM_WIDTH_FOR_GRID_CONTROLS = 479;
|
|
16627
16769
|
export const EuiDataGridToolbar: ({ gridWidth, minSizeForControls, toolbarVisibility, isFullScreen, fullScreenSelector, keyboardShortcuts, displaySelector, columnSelector, columnSorting, renderCustomToolbar, }: EuiDataGridToolbarProps) => React.JSX.Element;
|
|
16628
16770
|
export function checkOrDefaultToolBarDisplayOptions<OptionKey extends keyof EuiDataGridToolBarVisibilityOptions>(arg: EuiDataGridProps['toolbarVisibility'], option: OptionKey): Required<EuiDataGridToolBarVisibilityOptions>[OptionKey];
|
|
16629
|
-
export const renderAdditionalControls: (toolbarVisibility: EuiDataGridProps[
|
|
16771
|
+
export const renderAdditionalControls: (toolbarVisibility: EuiDataGridProps["toolbarVisibility"], position: "left.prepend" | "left.append" | "right") => ReactNode;
|
|
16630
16772
|
/**
|
|
16631
16773
|
* Utility helper for selectors/controls that allow nested options
|
|
16632
16774
|
* (e.g. column selector, display selector)
|
|
@@ -16652,11 +16794,11 @@ declare module '@elastic/eui/src/components/datagrid/controls/column_selector.st
|
|
|
16652
16794
|
|
|
16653
16795
|
}
|
|
16654
16796
|
declare module '@elastic/eui/src/components/datagrid/controls/column_selector' {
|
|
16655
|
-
import
|
|
16797
|
+
import { ReactNode } from 'react';
|
|
16656
16798
|
import { EuiDataGridColumn, EuiDataGridColumnVisibility, EuiDataGridToolBarVisibilityOptions } from '@elastic/eui/src/components/datagrid/data_grid_types';
|
|
16657
|
-
export const useDataGridColumnSelector: (availableColumns: EuiDataGridColumn[], columnVisibility: EuiDataGridColumnVisibility, showColumnSelector: EuiDataGridToolBarVisibilityOptions[
|
|
16799
|
+
export const useDataGridColumnSelector: (availableColumns: EuiDataGridColumn[], columnVisibility: EuiDataGridColumnVisibility, showColumnSelector: EuiDataGridToolBarVisibilityOptions["showColumnSelector"], displayValues: {
|
|
16658
16800
|
[key: string]: string;
|
|
16659
|
-
}) => [
|
|
16801
|
+
}) => [ReactNode, EuiDataGridColumn[], (columns: string[]) => void, (colFrom: string, colTo: string) => void];
|
|
16660
16802
|
|
|
16661
16803
|
}
|
|
16662
16804
|
declare module '@elastic/eui/src/components/datagrid/controls/column_sorting' {
|
|
@@ -16672,7 +16814,7 @@ declare module '@elastic/eui/src/components/datagrid/controls/column_sorting' {
|
|
|
16672
16814
|
schemaDetectors: EuiDataGridSchemaDetector[];
|
|
16673
16815
|
};
|
|
16674
16816
|
export const useDataGridColumnSorting: ({ sorting, ...rest }: Omit<ColumnSortingProps, "sorting"> & {
|
|
16675
|
-
sorting?: EuiDataGridSorting
|
|
16817
|
+
sorting?: EuiDataGridSorting;
|
|
16676
16818
|
}) => ReactNode;
|
|
16677
16819
|
export const DataGridSortingControl: FunctionComponent<ColumnSortingProps>;
|
|
16678
16820
|
|
|
@@ -16684,7 +16826,7 @@ declare module '@elastic/eui/src/components/datagrid/controls/display_selector'
|
|
|
16684
16826
|
/**
|
|
16685
16827
|
* Display settings/selector popover
|
|
16686
16828
|
*/
|
|
16687
|
-
export const useDataGridDisplaySelector: (showDisplaySelector: EuiDataGridToolBarVisibilityOptions[
|
|
16829
|
+
export const useDataGridDisplaySelector: (showDisplaySelector: EuiDataGridToolBarVisibilityOptions["showDisplaySelector"], passedGridStyles: EuiDataGridStyle, passedRowHeightsOptions?: EuiDataGridRowHeightsOptions) => [ReactNode, EuiDataGridStyle, EuiDataGridRowHeightsOptions];
|
|
16688
16830
|
|
|
16689
16831
|
}
|
|
16690
16832
|
declare module '@elastic/eui/src/components/description_list/description_list_types' {
|
|
@@ -16760,7 +16902,8 @@ declare module '@elastic/eui/src/components/description_list/description_list_ty
|
|
|
16760
16902
|
|
|
16761
16903
|
}
|
|
16762
16904
|
declare module '@elastic/eui/src/components/description_list/description_list_context' {
|
|
16763
|
-
import { EuiDescriptionListProps, EuiDescriptionListChildTypes } from '@elastic/eui/src/components/description_list/description_list_types';
|
|
16905
|
+
import { EuiDescriptionListProps, EuiDescriptionListChildTypes } from '@elastic/eui/src/components/description_list/description_list_types';
|
|
16906
|
+
type EuiDescriptionListContextValues = Required<Pick<EuiDescriptionListProps, 'textStyle' | 'align' | 'rowGutterSize'> & {
|
|
16764
16907
|
type: EuiDescriptionListChildTypes;
|
|
16765
16908
|
}> & {
|
|
16766
16909
|
compressed?: EuiDescriptionListProps['compressed'];
|
|
@@ -16914,7 +17057,8 @@ declare module '@elastic/eui/src/components/datagrid/pagination/data_grid_pagina
|
|
|
16914
17057
|
}
|
|
16915
17058
|
declare module '@elastic/eui/src/components/datagrid/pagination/data_grid_pagination' {
|
|
16916
17059
|
import React, { AriaAttributes } from 'react';
|
|
16917
|
-
import { EuiDataGridPaginationProps } from '@elastic/eui/src/components/datagrid/data_grid_types';
|
|
17060
|
+
import { EuiDataGridPaginationProps } from '@elastic/eui/src/components/datagrid/data_grid_types';
|
|
17061
|
+
type _EuiDataGridPaginationProps = Required<EuiDataGridPaginationProps> & {
|
|
16918
17062
|
rowCount: number;
|
|
16919
17063
|
controls: string;
|
|
16920
17064
|
'aria-label'?: AriaAttributes['aria-label'];
|
|
@@ -16939,10 +17083,7 @@ declare module '@elastic/eui/src/components/datagrid/utils/in_memory' {
|
|
|
16939
17083
|
/**
|
|
16940
17084
|
* inMemory values hook
|
|
16941
17085
|
*/
|
|
16942
|
-
export const useInMemoryValues: (inMemory: EuiDataGridInMemory | undefined, rowCount: number) => [
|
|
16943
|
-
EuiDataGridInMemoryValues,
|
|
16944
|
-
EuiDataGridInMemoryRendererProps['onCellRender']
|
|
16945
|
-
];
|
|
17086
|
+
export const useInMemoryValues: (inMemory: EuiDataGridInMemory | undefined, rowCount: number) => [EuiDataGridInMemoryValues, EuiDataGridInMemoryRendererProps["onCellRender"]];
|
|
16946
17087
|
/**
|
|
16947
17088
|
* InMemory renderer
|
|
16948
17089
|
*/
|
|
@@ -16952,8 +17093,8 @@ declare module '@elastic/eui/src/components/datagrid/utils/in_memory' {
|
|
|
16952
17093
|
declare module '@elastic/eui/src/components/datagrid/utils/row_count' {
|
|
16953
17094
|
import { EuiDataGridProps, EuiDataGridVisibleRows } from '@elastic/eui/src/components/datagrid/data_grid_types';
|
|
16954
17095
|
export const computeVisibleRows: ({ pagination, rowCount, }: {
|
|
16955
|
-
pagination: Required<EuiDataGridProps[
|
|
16956
|
-
rowCount: EuiDataGridProps[
|
|
17096
|
+
pagination: Required<EuiDataGridProps["pagination"]>;
|
|
17097
|
+
rowCount: EuiDataGridProps["rowCount"];
|
|
16957
17098
|
}) => EuiDataGridVisibleRows;
|
|
16958
17099
|
|
|
16959
17100
|
}
|
|
@@ -16990,7 +17131,7 @@ declare module '@elastic/eui/src/components/datagrid/utils/ref' {
|
|
|
16990
17131
|
* the row is not on the current page, the grid should automatically handle
|
|
16991
17132
|
* paginating to that row.
|
|
16992
17133
|
*/
|
|
16993
|
-
export const useSortPageCheck: (pagination: Required<EuiDataGridProps[
|
|
17134
|
+
export const useSortPageCheck: (pagination: Required<EuiDataGridProps["pagination"]>, sortedRowMap: DataGridSortedContextShape["sortedRowMap"]) => {
|
|
16994
17135
|
findVisibleRowIndex: (rowIndex: number) => number;
|
|
16995
17136
|
};
|
|
16996
17137
|
export {};
|
|
@@ -17322,7 +17463,8 @@ declare module '@elastic/eui/src/components/date_picker/date_picker' {
|
|
|
17322
17463
|
import { EuiFormControlLayoutIconsProps } from '@elastic/eui/src/components/form/form_control_layout/form_control_layout_icons';
|
|
17323
17464
|
import { ReactDatePickerProps } from '@elastic/eui/src/components/date_picker/react-datepicker';
|
|
17324
17465
|
export const euiDatePickerDefaultDateFormat = "MM/DD/YYYY";
|
|
17325
|
-
export const euiDatePickerDefaultTimeFormat = "hh:mm A"; const unsupportedProps: readonly ["monthsShown", "showWeekNumbers", "fixedHeight", "dropdownMode", "useShortMonthInDropdown", "todayButton", "timeCaption", "disabledKeyboardNavigation", "isClearable", "withPortal", "showMonthYearDropdown", "popperPlacement", "defaultInputProps"];
|
|
17466
|
+
export const euiDatePickerDefaultTimeFormat = "hh:mm A"; const unsupportedProps: readonly ["monthsShown", "showWeekNumbers", "fixedHeight", "dropdownMode", "useShortMonthInDropdown", "todayButton", "timeCaption", "disabledKeyboardNavigation", "isClearable", "withPortal", "showMonthYearDropdown", "popperPlacement", "defaultInputProps"];
|
|
17467
|
+
type UnsupportedProps = (typeof unsupportedProps)[number];
|
|
17326
17468
|
interface EuiExtendedDatePickerProps extends Omit<ReactDatePickerProps, UnsupportedProps> {
|
|
17327
17469
|
/**
|
|
17328
17470
|
* Applies classes to the numbered days provided. Check docs for example.
|
|
@@ -17469,7 +17611,7 @@ declare module '@elastic/eui/src/components/tabs/tabs' {
|
|
|
17469
17611
|
};
|
|
17470
17612
|
export type EuiTabRef = HTMLDivElement;
|
|
17471
17613
|
export const EuiTabs: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & {
|
|
17472
|
-
children?:
|
|
17614
|
+
children?: ReactNode | undefined;
|
|
17473
17615
|
} & CommonProps & {
|
|
17474
17616
|
/**
|
|
17475
17617
|
* ReactNode to render as this component's content
|
|
@@ -17479,16 +17621,16 @@ declare module '@elastic/eui/src/components/tabs/tabs' {
|
|
|
17479
17621
|
* Evenly stretches each tab to fill the
|
|
17480
17622
|
* horizontal space
|
|
17481
17623
|
*/
|
|
17482
|
-
expand?: boolean
|
|
17624
|
+
expand?: boolean;
|
|
17483
17625
|
/**
|
|
17484
17626
|
* Adds a bottom border to separate it from the content after
|
|
17485
17627
|
*/
|
|
17486
|
-
bottomBorder?: boolean
|
|
17628
|
+
bottomBorder?: boolean;
|
|
17487
17629
|
/**
|
|
17488
17630
|
* Sizes affect both font size and overall size.
|
|
17489
17631
|
* Only use the `xl` size when displayed as page titles.
|
|
17490
17632
|
*/
|
|
17491
|
-
size?:
|
|
17633
|
+
size?: EuiTabsSizes;
|
|
17492
17634
|
} & React.RefAttributes<HTMLDivElement>>;
|
|
17493
17635
|
|
|
17494
17636
|
}
|
|
@@ -17515,10 +17657,12 @@ declare module '@elastic/eui/src/components/tabs/tab' {
|
|
|
17515
17657
|
* Will be excluded from interactive effects.
|
|
17516
17658
|
*/
|
|
17517
17659
|
append?: ReactNode;
|
|
17518
|
-
}
|
|
17660
|
+
}
|
|
17661
|
+
type EuiTabPropsForAnchor = EuiTabProps & Omit<AnchorHTMLAttributes<HTMLAnchorElement>, 'onClick' | 'href'> & {
|
|
17519
17662
|
href?: string;
|
|
17520
17663
|
onClick?: MouseEventHandler<HTMLAnchorElement>;
|
|
17521
|
-
};
|
|
17664
|
+
};
|
|
17665
|
+
type EuiTabPropsForButton = EuiTabProps & Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'onClick'> & {
|
|
17522
17666
|
onClick?: MouseEventHandler<HTMLButtonElement>;
|
|
17523
17667
|
};
|
|
17524
17668
|
export type Props = ExclusiveUnion<EuiTabPropsForAnchor, EuiTabPropsForButton>;
|
|
@@ -17779,13 +17923,13 @@ declare module '@elastic/eui/src/components/date_picker/super_date_picker/date_p
|
|
|
17779
17923
|
}
|
|
17780
17924
|
declare module '@elastic/eui/src/components/date_picker/super_date_picker/pretty_duration' {
|
|
17781
17925
|
import React from 'react';
|
|
17782
|
-
import
|
|
17926
|
+
import { LocaleSpecifier } from 'moment';
|
|
17783
17927
|
import { DurationRange, ShortDate } from '@elastic/eui/src/components/date_picker/types';
|
|
17784
17928
|
export const useFormatTimeString: (timeString: string, dateFormat: string, options?: {
|
|
17785
|
-
locale?:
|
|
17786
|
-
roundUp?: boolean
|
|
17787
|
-
canRoundRelativeUnits?: boolean
|
|
17788
|
-
}
|
|
17929
|
+
locale?: LocaleSpecifier;
|
|
17930
|
+
roundUp?: boolean;
|
|
17931
|
+
canRoundRelativeUnits?: boolean;
|
|
17932
|
+
}) => string;
|
|
17789
17933
|
/**
|
|
17790
17934
|
* Pretty duration hook+component
|
|
17791
17935
|
*/
|
|
@@ -17898,7 +18042,8 @@ declare module '@elastic/eui/src/components/date_picker/super_date_picker/quick_
|
|
|
17898
18042
|
}
|
|
17899
18043
|
declare module '@elastic/eui/src/components/date_picker/super_date_picker/quick_select_popover/quick_select_panel' {
|
|
17900
18044
|
import { FunctionComponent, ReactNode } from 'react';
|
|
17901
|
-
import type { CommonProps } from '@elastic/eui/src/components/common';
|
|
18045
|
+
import type { CommonProps } from '@elastic/eui/src/components/common';
|
|
18046
|
+
type EuiQuickSelectPanelProps = CommonProps & {
|
|
17902
18047
|
component?: 'div' | 'fieldset';
|
|
17903
18048
|
title?: ReactNode;
|
|
17904
18049
|
titleId?: string;
|
|
@@ -17947,7 +18092,8 @@ declare module '@elastic/eui/src/components/date_picker/super_date_picker/quick_
|
|
|
17947
18092
|
import React, { Component, ChangeEventHandler, KeyboardEventHandler } from 'react';
|
|
17948
18093
|
import moment from 'moment';
|
|
17949
18094
|
import { ApplyTime, QuickSelect } from '@elastic/eui/src/components/date_picker/types';
|
|
17950
|
-
import { TimeOptions } from '@elastic/eui/src/components/date_picker/super_date_picker/time_options';
|
|
18095
|
+
import { TimeOptions } from '@elastic/eui/src/components/date_picker/super_date_picker/time_options';
|
|
18096
|
+
type EuiQuickSelectState = QuickSelect;
|
|
17951
18097
|
export interface EuiQuickSelectProps {
|
|
17952
18098
|
applyTime: ApplyTime;
|
|
17953
18099
|
start: string;
|
|
@@ -18037,7 +18183,7 @@ declare module '@elastic/eui/src/components/date_picker/auto_refresh/refresh_int
|
|
|
18037
18183
|
handleKeyDown: KeyboardEventHandler<HTMLElement>;
|
|
18038
18184
|
applyRefreshInterval: () => void;
|
|
18039
18185
|
toggleRefresh: () => void;
|
|
18040
|
-
renderScreenReaderText: (refreshUnitsOptions: TimeOptions[
|
|
18186
|
+
renderScreenReaderText: (refreshUnitsOptions: TimeOptions["refreshUnitsOptions"]) => React.JSX.Element;
|
|
18041
18187
|
render(): React.JSX.Element;
|
|
18042
18188
|
}
|
|
18043
18189
|
export {};
|
|
@@ -18224,7 +18370,9 @@ declare module '@elastic/eui/src/components/date_picker/super_date_picker/super_
|
|
|
18224
18370
|
import React, { Component, MouseEventHandler, ElementRef, ReactNode } from 'react';
|
|
18225
18371
|
import { EuiButtonProps } from '@elastic/eui/src/components/button';
|
|
18226
18372
|
import { EuiToolTip, EuiToolTipProps } from '@elastic/eui/src/components/tool_tip';
|
|
18227
|
-
import { EuiBreakpointSize } from '@elastic/eui/src/services/breakpoint';
|
|
18373
|
+
import { EuiBreakpointSize } from '@elastic/eui/src/services/breakpoint';
|
|
18374
|
+
type ToolTipRef = ElementRef<typeof EuiToolTip> | null;
|
|
18375
|
+
type EuiSuperUpdateButtonInternalProps = {
|
|
18228
18376
|
isDisabled?: boolean;
|
|
18229
18377
|
isLoading?: boolean;
|
|
18230
18378
|
needsUpdate?: boolean;
|
|
@@ -18283,10 +18431,18 @@ declare module '@elastic/eui/src/components/date_picker/super_date_picker/super_
|
|
|
18283
18431
|
|
|
18284
18432
|
}
|
|
18285
18433
|
declare module '@elastic/eui/src/components/date_picker/super_date_picker/pretty_interval' {
|
|
18434
|
+
const MS_INTERVALS: {
|
|
18435
|
+
readonly s: 1000;
|
|
18436
|
+
readonly m: number;
|
|
18437
|
+
readonly h: number;
|
|
18438
|
+
readonly d: number;
|
|
18439
|
+
};
|
|
18440
|
+
type IntervalUnitId = keyof typeof MS_INTERVALS;
|
|
18286
18441
|
export const usePrettyInterval: (isPaused: boolean, intervalInMs: number, options?: {
|
|
18287
|
-
shortHand?: boolean
|
|
18288
|
-
unit?:
|
|
18289
|
-
}
|
|
18442
|
+
shortHand?: boolean;
|
|
18443
|
+
unit?: IntervalUnitId;
|
|
18444
|
+
}) => string;
|
|
18445
|
+
export {};
|
|
18290
18446
|
|
|
18291
18447
|
}
|
|
18292
18448
|
declare module '@elastic/eui/src/components/date_picker/auto_refresh/auto_refresh' {
|
|
@@ -18465,7 +18621,8 @@ declare module '@elastic/eui/src/components/date_picker/super_date_picker/super_
|
|
|
18465
18621
|
* input by the user, set this flag to `false`.
|
|
18466
18622
|
*/
|
|
18467
18623
|
canRoundRelativeUnits?: boolean;
|
|
18468
|
-
};
|
|
18624
|
+
};
|
|
18625
|
+
type EuiSuperDatePickerInternalProps = EuiSuperDatePickerProps & {
|
|
18469
18626
|
memoizedStyles: ReturnType<typeof euiSuperDatePickerStyles>;
|
|
18470
18627
|
timeOptions: TimeOptions;
|
|
18471
18628
|
commonlyUsedRanges: DurationRange[];
|
|
@@ -18870,9 +19027,11 @@ declare module '@elastic/eui/src/components/expression/expression' {
|
|
|
18870
19027
|
* Sets how to handle the wrapping of long text.
|
|
18871
19028
|
*/
|
|
18872
19029
|
textWrap?: 'break-word' | 'truncate';
|
|
18873
|
-
};
|
|
19030
|
+
};
|
|
19031
|
+
type Buttonlike = EuiExpressionProps & Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'value'> & {
|
|
18874
19032
|
onClick: MouseEventHandler<HTMLButtonElement>;
|
|
18875
|
-
};
|
|
19033
|
+
};
|
|
19034
|
+
type Spanlike = EuiExpressionProps & Omit<HTMLAttributes<HTMLSpanElement>, 'value'>;
|
|
18876
19035
|
export const EuiExpression: FunctionComponent<ExclusiveUnion<Buttonlike, Spanlike>>;
|
|
18877
19036
|
export {};
|
|
18878
19037
|
|
|
@@ -18884,18 +19043,26 @@ declare module '@elastic/eui/src/components/expression' {
|
|
|
18884
19043
|
}
|
|
18885
19044
|
declare module '@elastic/eui/src/components/filter_group/filter_button.styles' {
|
|
18886
19045
|
import { UseEuiTheme } from '@elastic/eui/src/services';
|
|
18887
|
-
export const euiFilterButtonDisplay: (
|
|
19046
|
+
export const euiFilterButtonDisplay: (euiThemeContext: UseEuiTheme) => {
|
|
18888
19047
|
flex: string;
|
|
18889
19048
|
minInlineSize: string;
|
|
18890
19049
|
};
|
|
18891
19050
|
export const euiFilterButtonStyles: (euiThemeContext: UseEuiTheme) => {
|
|
18892
19051
|
euiFilterButton: import("@emotion/react").SerializedStyles;
|
|
19052
|
+
buttonType: {
|
|
19053
|
+
default: import("@emotion/react").SerializedStyles;
|
|
19054
|
+
toggle: import("@emotion/react").SerializedStyles;
|
|
19055
|
+
};
|
|
18893
19056
|
withNext: import("@emotion/react").SerializedStyles;
|
|
18894
19057
|
noGrow: import("@emotion/react").SerializedStyles;
|
|
18895
19058
|
hasNotification: import("@emotion/react").SerializedStyles;
|
|
18896
19059
|
hasActiveFilters: import("@emotion/react").SerializedStyles;
|
|
18897
19060
|
};
|
|
18898
|
-
export const
|
|
19061
|
+
export const euiFilterButtonWrapperStyles: (euiThemeContext: UseEuiTheme) => {
|
|
19062
|
+
wrapper: import("@emotion/react").SerializedStyles;
|
|
19063
|
+
hasToggle: import("@emotion/react").SerializedStyles;
|
|
19064
|
+
};
|
|
19065
|
+
export const euiFilterButtonChildStyles: (euiThemeContext: UseEuiTheme) => {
|
|
18899
19066
|
content: {
|
|
18900
19067
|
euiFilterButton__content: import("@emotion/react").SerializedStyles;
|
|
18901
19068
|
hasIcon: import("@emotion/react").SerializedStyles;
|
|
@@ -18946,12 +19113,13 @@ declare module '@elastic/eui/src/components/filter_group/filter_group' {
|
|
|
18946
19113
|
}
|
|
18947
19114
|
declare module '@elastic/eui/src/components/filter_group/filter_button' {
|
|
18948
19115
|
import { FunctionComponent } from 'react';
|
|
19116
|
+
import { _EuiButtonColor } from '@elastic/eui/src/global_styling';
|
|
18949
19117
|
import { DistributiveOmit } from '@elastic/eui/src/components/common';
|
|
18950
19118
|
import { BadgeNotificationColor } from '@elastic/eui/src/components/badge/notification_badge/badge_notification';
|
|
18951
19119
|
import { EuiButtonEmptyProps } from '@elastic/eui/src/components/button/button_empty';
|
|
18952
19120
|
export type EuiFilterButtonProps = {
|
|
18953
19121
|
/**
|
|
18954
|
-
*
|
|
19122
|
+
* Highlights active filters
|
|
18955
19123
|
*/
|
|
18956
19124
|
hasActiveFilters?: boolean;
|
|
18957
19125
|
/**
|
|
@@ -18965,7 +19133,15 @@ declare module '@elastic/eui/src/components/filter_group/filter_button' {
|
|
|
18965
19133
|
*/
|
|
18966
19134
|
numActiveFilters?: number;
|
|
18967
19135
|
/**
|
|
18968
|
-
*
|
|
19136
|
+
* Switches between toggle and regular button
|
|
19137
|
+
* @default false
|
|
19138
|
+
*/
|
|
19139
|
+
isToggle?: boolean;
|
|
19140
|
+
/**
|
|
19141
|
+
* Applies a visual state to the button.
|
|
19142
|
+
* Automatically applies `aria-pressed` when used with `isToggle={true}`.
|
|
19143
|
+
* Otherwise applies `aria-expanded` when used with `isToggle={false}` and
|
|
19144
|
+
* `iconType="arrowDown"` as trigger button for e.g. a popover.
|
|
18969
19145
|
*/
|
|
18970
19146
|
isSelected?: boolean;
|
|
18971
19147
|
/**
|
|
@@ -18980,7 +19156,16 @@ declare module '@elastic/eui/src/components/filter_group/filter_button' {
|
|
|
18980
19156
|
* Change color of the counter badge
|
|
18981
19157
|
*/
|
|
18982
19158
|
badgeColor?: BadgeNotificationColor;
|
|
18983
|
-
|
|
19159
|
+
/**
|
|
19160
|
+
* Any of the named color palette options.
|
|
19161
|
+
*
|
|
19162
|
+
* Do not use the following colors for standalone buttons directly,
|
|
19163
|
+
* they exist to serve other components:
|
|
19164
|
+
* - accent
|
|
19165
|
+
* - warning
|
|
19166
|
+
*/
|
|
19167
|
+
color?: _EuiButtonColor;
|
|
19168
|
+
} & DistributiveOmit<EuiButtonEmptyProps, 'flush' | 'size' | 'color' | 'isSelected'>;
|
|
18984
19169
|
export const EuiFilterButton: FunctionComponent<EuiFilterButtonProps>;
|
|
18985
19170
|
|
|
18986
19171
|
}
|
|
@@ -19192,7 +19377,8 @@ declare module '@elastic/eui/src/components/header/header' {
|
|
|
19192
19377
|
import { FunctionComponent, HTMLAttributes } from 'react';
|
|
19193
19378
|
import { CommonProps } from '@elastic/eui/src/components/common';
|
|
19194
19379
|
import { EuiBreadcrumb, EuiBreadcrumbsProps } from '@elastic/eui/src/components/breadcrumbs';
|
|
19195
|
-
import { EuiHeaderSectionItemProps } from '@elastic/eui/src/components/header/header_section';
|
|
19380
|
+
import { EuiHeaderSectionItemProps } from '@elastic/eui/src/components/header/header_section';
|
|
19381
|
+
type EuiHeaderSectionItemType = EuiHeaderSectionItemProps['children'];
|
|
19196
19382
|
export interface EuiHeaderSections {
|
|
19197
19383
|
/**
|
|
19198
19384
|
* An array of items that will be wrapped in a #EuiHeaderSectionItem
|
|
@@ -19308,7 +19494,9 @@ declare module '@elastic/eui/src/components/header/header_links/header_links' {
|
|
|
19308
19494
|
import { EuiPopoverProps } from '@elastic/eui/src/components/popover';
|
|
19309
19495
|
import { EuiHeaderSectionItemButtonProps } from '@elastic/eui/src/components/header/header_section';
|
|
19310
19496
|
import { EuiBreakpointSize } from '@elastic/eui/src/services/breakpoint';
|
|
19311
|
-
export const GUTTER_SIZES: readonly ["xxs", "xs", "s", "m", "l"];
|
|
19497
|
+
export const GUTTER_SIZES: readonly ["xxs", "xs", "s", "m", "l"];
|
|
19498
|
+
type EuiHeaderLinksGutterSize = (typeof GUTTER_SIZES)[number];
|
|
19499
|
+
type EuiHeaderLinksPopoverButtonProps = Partial<EuiHeaderSectionItemButtonProps> & {
|
|
19312
19500
|
iconType?: IconType;
|
|
19313
19501
|
};
|
|
19314
19502
|
export type EuiHeaderLinksProps = CommonProps & Omit<HTMLAttributes<HTMLElement>, 'children'> & {
|
|
@@ -19437,7 +19625,8 @@ declare module '@elastic/eui/src/components/image/image_types' {
|
|
|
19437
19625
|
export type EuiImageSize = (typeof SIZES)[number]; const FLOATS: readonly ["left", "right"];
|
|
19438
19626
|
export type EuiImageWrapperFloat = (typeof FLOATS)[number]; const MARGINS: readonly ["s", "m", "l", "xl"];
|
|
19439
19627
|
export type EuiImageWrapperMargin = (typeof MARGINS)[number];
|
|
19440
|
-
export type EuiImageButtonIconColor = 'light' | 'dark';
|
|
19628
|
+
export type EuiImageButtonIconColor = 'light' | 'dark';
|
|
19629
|
+
type _EuiImageSrcOrUrl = ExclusiveUnion<{
|
|
19441
19630
|
/**
|
|
19442
19631
|
* Requires either `src` or `url` but defaults to using `src` if both are provided
|
|
19443
19632
|
*/
|
|
@@ -19559,7 +19748,7 @@ declare module '@elastic/eui/src/components/image/image_caption.styles' {
|
|
|
19559
19748
|
declare module '@elastic/eui/src/components/image/image_caption' {
|
|
19560
19749
|
import React from 'react';
|
|
19561
19750
|
export const EuiImageCaption: React.ForwardRefExoticComponent<Pick<import ("@elastic/eui/src/components/image/image_types").EuiImageProps, "caption"> & {
|
|
19562
|
-
isOnOverlayMask?: boolean
|
|
19751
|
+
isOnOverlayMask?: boolean;
|
|
19563
19752
|
} & React.RefAttributes<HTMLDivElement>>;
|
|
19564
19753
|
|
|
19565
19754
|
}
|
|
@@ -19659,7 +19848,8 @@ declare module '@elastic/eui/src/components/skeleton/skeleton_loading' {
|
|
|
19659
19848
|
|
|
19660
19849
|
}
|
|
19661
19850
|
declare module '@elastic/eui/src/components/skeleton/utils' {
|
|
19662
|
-
import { UseEuiTheme } from '@elastic/eui/src/services';
|
|
19851
|
+
import { UseEuiTheme } from '@elastic/eui/src/services';
|
|
19852
|
+
type AnimationOptions = {
|
|
19663
19853
|
slideSize?: string;
|
|
19664
19854
|
gradientSize?: string;
|
|
19665
19855
|
};
|
|
@@ -19940,7 +20130,8 @@ declare module '@elastic/eui/src/components/inline_edit/inline_edit_title' {
|
|
|
19940
20130
|
import { FunctionComponent } from 'react';
|
|
19941
20131
|
import { EuiTitleSize } from '@elastic/eui/src/components/title';
|
|
19942
20132
|
import { EuiInlineEditCommonProps } from '@elastic/eui/src/components/inline_edit/inline_edit_form';
|
|
19943
|
-
export const HEADINGS: readonly ["h1", "h2", "h3", "h4", "h5", "h6", "span"];
|
|
20133
|
+
export const HEADINGS: readonly ["h1", "h2", "h3", "h4", "h5", "h6", "span"];
|
|
20134
|
+
type Heading = (typeof HEADINGS)[number];
|
|
19944
20135
|
export type EuiInlineEditTitleProps = EuiInlineEditCommonProps & {
|
|
19945
20136
|
/**
|
|
19946
20137
|
* Title size level
|
|
@@ -20053,7 +20244,8 @@ declare module '@elastic/eui/src/components/key_pad_menu/key_pad_menu_item' {
|
|
|
20053
20244
|
* The text to display beneath the icon
|
|
20054
20245
|
*/
|
|
20055
20246
|
label: ReactNode;
|
|
20056
|
-
};
|
|
20247
|
+
};
|
|
20248
|
+
type EuiKeyPadMenuItemPropsForUncheckable = {
|
|
20057
20249
|
/**
|
|
20058
20250
|
* Beta badges are unavailable if the item is checkable
|
|
20059
20251
|
*/
|
|
@@ -20078,12 +20270,15 @@ declare module '@elastic/eui/src/components/key_pad_menu/key_pad_menu_item' {
|
|
|
20078
20270
|
* Use `onClick` instead when the item is not `checkable`
|
|
20079
20271
|
*/
|
|
20080
20272
|
onChange?: never;
|
|
20081
|
-
};
|
|
20273
|
+
};
|
|
20274
|
+
type EuiKeyPadMenuItemPropsForAnchor = PropsForAnchor<EuiKeyPadMenuItemCommonProps, {
|
|
20082
20275
|
buttonRef?: Ref<HTMLAnchorElement>;
|
|
20083
20276
|
rel?: string;
|
|
20084
|
-
} & EuiKeyPadMenuItemPropsForUncheckable>;
|
|
20277
|
+
} & EuiKeyPadMenuItemPropsForUncheckable>;
|
|
20278
|
+
type EuiKeyPadMenuItemPropsForButton = PropsForButton<EuiKeyPadMenuItemCommonProps, {
|
|
20085
20279
|
buttonRef?: Ref<HTMLButtonElement>;
|
|
20086
|
-
} & EuiKeyPadMenuItemPropsForUncheckable>;
|
|
20280
|
+
} & EuiKeyPadMenuItemPropsForUncheckable>;
|
|
20281
|
+
type EuiKeyPadMenuItemPropsForCheckable = Omit<LabelHTMLAttributes<HTMLLabelElement>, 'onChange'> & EuiKeyPadMenuItemCommonProps & {
|
|
20087
20282
|
/**
|
|
20088
20283
|
* Use `onChange` instead when the item is `checkable`
|
|
20089
20284
|
*/
|
|
@@ -20507,9 +20702,9 @@ declare module '@elastic/eui/src/components/markdown_editor/markdown_editor_text
|
|
|
20507
20702
|
maxHeight: string;
|
|
20508
20703
|
};
|
|
20509
20704
|
export const EuiMarkdownEditorTextArea: React.ForwardRefExoticComponent<React.TextareaHTMLAttributes<HTMLTextAreaElement> & CommonProps & {
|
|
20510
|
-
isInvalid?: boolean
|
|
20511
|
-
fullWidth?: boolean
|
|
20512
|
-
compressed?: boolean
|
|
20705
|
+
isInvalid?: boolean;
|
|
20706
|
+
fullWidth?: boolean;
|
|
20707
|
+
compressed?: boolean;
|
|
20513
20708
|
height: string;
|
|
20514
20709
|
maxHeight: string;
|
|
20515
20710
|
} & React.RefAttributes<HTMLTextAreaElement>>;
|
|
@@ -20573,7 +20768,8 @@ declare module '@elastic/eui/src/components/markdown_editor/plugins/markdown_too
|
|
|
20573
20768
|
declare module '@elastic/eui/src/components/markdown_editor/plugins/markdown_tooltip/renderer' {
|
|
20574
20769
|
import { FunctionComponent, PropsWithChildren } from 'react';
|
|
20575
20770
|
import { EuiMarkdownAstNodePosition } from '@elastic/eui/src/components/markdown_editor/markdown_types';
|
|
20576
|
-
import { TooltipNodeDetails } from '@elastic/eui/src/components/markdown_editor/plugins/markdown_tooltip/types';
|
|
20771
|
+
import { TooltipNodeDetails } from '@elastic/eui/src/components/markdown_editor/plugins/markdown_tooltip/types';
|
|
20772
|
+
type TooltipMarkdownRendererProps = PropsWithChildren & TooltipNodeDetails & {
|
|
20577
20773
|
position: EuiMarkdownAstNodePosition;
|
|
20578
20774
|
};
|
|
20579
20775
|
export const tooltipMarkdownRenderer: FunctionComponent<TooltipMarkdownRendererProps>;
|
|
@@ -20610,7 +20806,8 @@ declare module '@elastic/eui/src/components/markdown_editor/plugins/markdown_che
|
|
|
20610
20806
|
declare module '@elastic/eui/src/components/markdown_editor/plugins/markdown_checkbox/renderer' {
|
|
20611
20807
|
import { FunctionComponent, PropsWithChildren } from 'react';
|
|
20612
20808
|
import { EuiMarkdownAstNodePosition } from '@elastic/eui/src/components/markdown_editor/markdown_types';
|
|
20613
|
-
import { CheckboxNodeDetails } from '@elastic/eui/src/components/markdown_editor/plugins/markdown_checkbox/types';
|
|
20809
|
+
import { CheckboxNodeDetails } from '@elastic/eui/src/components/markdown_editor/plugins/markdown_checkbox/types';
|
|
20810
|
+
type CheckboxMarkdownRendererProps = PropsWithChildren & CheckboxNodeDetails & {
|
|
20614
20811
|
position: EuiMarkdownAstNodePosition;
|
|
20615
20812
|
};
|
|
20616
20813
|
export const CheckboxMarkdownRenderer: FunctionComponent<CheckboxMarkdownRendererProps>;
|
|
@@ -20710,8 +20907,8 @@ declare module '@elastic/eui/src/components/markdown_editor/plugins/markdown_def
|
|
|
20710
20907
|
*/
|
|
20711
20908
|
linkProps?: Partial<EuiLinkProps>;
|
|
20712
20909
|
};
|
|
20713
|
-
export const getDefaultEuiMarkdownProcessingPlugins: ({ exclude, linkProps, }?: DefaultPluginsConfig & DefaultProcessingPluginsConfig) =>
|
|
20714
|
-
export const defaultProcessingPlugins: [[Plugin
|
|
20910
|
+
export const getDefaultEuiMarkdownProcessingPlugins: ({ exclude, linkProps, }?: DefaultPluginsConfig & DefaultProcessingPluginsConfig) => DefaultEuiMarkdownProcessingPlugins;
|
|
20911
|
+
export const defaultProcessingPlugins: [[Plugin, Remark2RehypeOptions], [typeof rehype2react, Rehype2ReactOptions], ...Pluggable<any[], Settings>[]];
|
|
20715
20912
|
|
|
20716
20913
|
}
|
|
20717
20914
|
declare module '@elastic/eui/src/components/markdown_editor/plugins/markdown_default_plugins/plugins' {
|
|
@@ -20839,7 +21036,8 @@ declare module '@elastic/eui/src/components/markdown_editor/markdown_editor' {
|
|
|
20839
21036
|
import { EuiMarkdownFormatProps } from '@elastic/eui/src/components/markdown_editor/markdown_format';
|
|
20840
21037
|
import { MARKDOWN_MODE } from '@elastic/eui/src/components/markdown_editor/markdown_modes';
|
|
20841
21038
|
import { EuiMarkdownAstNode, EuiMarkdownDropHandler, EuiMarkdownEditorUiPlugin, EuiMarkdownParseError } from '@elastic/eui/src/components/markdown_editor/markdown_types';
|
|
20842
|
-
import { ContextShape } from '@elastic/eui/src/components/markdown_editor/markdown_context';
|
|
21039
|
+
import { ContextShape } from '@elastic/eui/src/components/markdown_editor/markdown_context';
|
|
21040
|
+
type CommonMarkdownEditorProps = Omit<HTMLAttributes<HTMLDivElement>, 'onChange' | 'placeholder'> & CommonProps & {
|
|
20843
21041
|
/** aria-label OR aria-labelledby must be set */
|
|
20844
21042
|
'aria-label'?: string;
|
|
20845
21043
|
/** aria-label OR aria-labelledby must be set */
|
|
@@ -21010,7 +21208,8 @@ declare module '@elastic/eui/src/components/page/page_body/page_body' {
|
|
|
21010
21208
|
import { CommonProps } from '@elastic/eui/src/components/common';
|
|
21011
21209
|
import { _EuiPageRestrictWidth } from '@elastic/eui/src/components/page/_restrict_width';
|
|
21012
21210
|
import { EuiPanelProps } from '@elastic/eui/src/components/panel';
|
|
21013
|
-
import { EuiPaddingSize } from '@elastic/eui/src/global_styling';
|
|
21211
|
+
import { EuiPaddingSize } from '@elastic/eui/src/global_styling';
|
|
21212
|
+
type ComponentTypes = keyof JSX.IntrinsicElements | ComponentType<any>;
|
|
21014
21213
|
export type EuiPageBodyProps<T extends ComponentTypes = 'main'> = PropsWithChildren & CommonProps & ComponentProps<T> & _EuiPageRestrictWidth & {
|
|
21015
21214
|
/**
|
|
21016
21215
|
* Sets the HTML element for `EuiPageBody`.
|
|
@@ -21078,7 +21277,8 @@ declare module '@elastic/eui/src/components/page/page_header/page_header_content
|
|
|
21078
21277
|
import { EuiBreadcrumbsProps } from '@elastic/eui/src/components/breadcrumbs';
|
|
21079
21278
|
import { PADDING_SIZES } from '@elastic/eui/src/global_styling';
|
|
21080
21279
|
import { _EuiPageRestrictWidth } from '@elastic/eui/src/components/page/_restrict_width';
|
|
21081
|
-
export const ALIGN_ITEMS: readonly ["top", "bottom", "center", "stretch"];
|
|
21280
|
+
export const ALIGN_ITEMS: readonly ["top", "bottom", "center", "stretch"];
|
|
21281
|
+
type Tab = EuiTabProps & {
|
|
21082
21282
|
/**
|
|
21083
21283
|
* Visible text of the tab
|
|
21084
21284
|
*/
|
|
@@ -21358,7 +21558,8 @@ declare module '@elastic/eui/src/components/page_template/outer/page_outer' {
|
|
|
21358
21558
|
import { FunctionComponent, HTMLAttributes } from 'react';
|
|
21359
21559
|
import { CommonProps } from '@elastic/eui/src/components/common';
|
|
21360
21560
|
import { _EuiThemeBreakpoint } from '@elastic/eui/src/global_styling';
|
|
21361
|
-
export const PAGE_DIRECTIONS: readonly ["row", "column"];
|
|
21561
|
+
export const PAGE_DIRECTIONS: readonly ["row", "column"];
|
|
21562
|
+
type PageDirections = (typeof PAGE_DIRECTIONS)[number];
|
|
21362
21563
|
export interface _EuiPageOuterProps extends CommonProps, HTMLAttributes<HTMLDivElement> {
|
|
21363
21564
|
/**
|
|
21364
21565
|
* Adds `flex-grow: 1` to the whole page for stretching to fit vertically.
|
|
@@ -21571,7 +21772,7 @@ declare module '@elastic/eui/src/components/provider/nested' {
|
|
|
21571
21772
|
|
|
21572
21773
|
}
|
|
21573
21774
|
declare module '@elastic/eui/src/components/provider/provider' {
|
|
21574
|
-
import
|
|
21775
|
+
import { PropsWithChildren, JSX } from 'react';
|
|
21575
21776
|
import type { EmotionCache } from '@emotion/css';
|
|
21576
21777
|
import { EuiThemeProviderProps, EuiThemeSystem, EuiThemeColorMode, EuiThemeHighContrastModeProp } from '@elastic/eui/src/services';
|
|
21577
21778
|
import { EuiGlobalStylesProps } from '@elastic/eui/src/global_styling/reset/global_styles';
|
|
@@ -21630,7 +21831,7 @@ declare module '@elastic/eui/src/components/provider/provider' {
|
|
|
21630
21831
|
*/
|
|
21631
21832
|
componentDefaults?: EuiComponentDefaults;
|
|
21632
21833
|
}
|
|
21633
|
-
export const EuiProvider: <T extends {} = {}>({ cache, theme, globalStyles: Globals, utilityClasses: Utilities, colorMode, highContrastMode, modify, componentDefaults, children, }:
|
|
21834
|
+
export const EuiProvider: <T extends {} = {}>({ cache, theme, globalStyles: Globals, utilityClasses: Utilities, colorMode, highContrastMode, modify, componentDefaults, children, }: PropsWithChildren<EuiProviderProps<T>>) => any;
|
|
21634
21835
|
|
|
21635
21836
|
}
|
|
21636
21837
|
declare module '@elastic/eui/src/components/provider' {
|
|
@@ -21881,7 +22082,7 @@ declare module '@elastic/eui/src/components/search_bar/query/date_value' {
|
|
|
21881
22082
|
export const dateValue: (raw: MomentInput, granularity?: GranularityType, dateFormat?: any) => DateValue | undefined;
|
|
21882
22083
|
export const dateValueParser: (format?: Readonly<{
|
|
21883
22084
|
parse(value: string): import ("@elastic/eui/src/components/search_bar/query/date_format").EuiMoment;
|
|
21884
|
-
print(date:
|
|
22085
|
+
print(date: import ("@elastic/eui/src/components/search_bar/query/date_format").EuiMoment | MomentInput, defaultGranularity?: undefined): string;
|
|
21885
22086
|
}>) => (text: string) => DateValue | undefined;
|
|
21886
22087
|
|
|
21887
22088
|
}
|
|
@@ -21915,7 +22116,7 @@ declare module '@elastic/eui/src/components/search_bar/query/ast' {
|
|
|
21915
22116
|
export const Match: Readonly<{
|
|
21916
22117
|
MUST: "must";
|
|
21917
22118
|
MUST_NOT: "must_not";
|
|
21918
|
-
isMust(match: MatchType | undefined):
|
|
22119
|
+
isMust(match: MatchType | undefined): match is "must";
|
|
21919
22120
|
isMustClause(clause: Clause): boolean;
|
|
21920
22121
|
}>;
|
|
21921
22122
|
export type OperatorType = 'eq' | 'exact' | 'gt' | 'gte' | 'lt' | 'lte';
|
|
@@ -21926,19 +22127,19 @@ declare module '@elastic/eui/src/components/search_bar/query/ast' {
|
|
|
21926
22127
|
GTE: "gte";
|
|
21927
22128
|
LT: "lt";
|
|
21928
22129
|
LTE: "lte";
|
|
21929
|
-
isEQ(match: OperatorType | undefined):
|
|
22130
|
+
isEQ(match: OperatorType | undefined): match is "eq";
|
|
21930
22131
|
isEQClause(clause: Clause): boolean;
|
|
21931
|
-
isEXACT(match: OperatorType | undefined):
|
|
22132
|
+
isEXACT(match: OperatorType | undefined): match is "exact";
|
|
21932
22133
|
isEXACTClause(clause: Clause): boolean;
|
|
21933
|
-
isRange(match: OperatorType | undefined):
|
|
22134
|
+
isRange(match: OperatorType | undefined): match is "gt" | "gte" | "lt" | "lte";
|
|
21934
22135
|
isRangeClause(clause: Clause): boolean;
|
|
21935
|
-
isGT(match: OperatorType | undefined):
|
|
22136
|
+
isGT(match: OperatorType | undefined): match is "gt";
|
|
21936
22137
|
isGTClause(clause: Clause): boolean;
|
|
21937
|
-
isGTE(match: OperatorType | undefined):
|
|
22138
|
+
isGTE(match: OperatorType | undefined): match is "gte";
|
|
21938
22139
|
isGTEClause(clause: Clause): boolean;
|
|
21939
|
-
isLT(match: OperatorType | undefined):
|
|
22140
|
+
isLT(match: OperatorType | undefined): match is "lt";
|
|
21940
22141
|
isLTClause(clause: Clause): boolean;
|
|
21941
|
-
isLTE(match: OperatorType | undefined):
|
|
22142
|
+
isLTE(match: OperatorType | undefined): match is "lte";
|
|
21942
22143
|
isLTEClause(clause: Clause): boolean;
|
|
21943
22144
|
}>;
|
|
21944
22145
|
/**
|
|
@@ -22011,7 +22212,7 @@ declare module '@elastic/eui/src/components/search_bar/query/ast' {
|
|
|
22011
22212
|
Match: Readonly<{
|
|
22012
22213
|
MUST: "must";
|
|
22013
22214
|
MUST_NOT: "must_not";
|
|
22014
|
-
isMust(match: MatchType | undefined):
|
|
22215
|
+
isMust(match: MatchType | undefined): match is "must";
|
|
22015
22216
|
isMustClause(clause: Clause): boolean;
|
|
22016
22217
|
}>;
|
|
22017
22218
|
Operator: Readonly<{
|
|
@@ -22021,19 +22222,19 @@ declare module '@elastic/eui/src/components/search_bar/query/ast' {
|
|
|
22021
22222
|
GTE: "gte";
|
|
22022
22223
|
LT: "lt";
|
|
22023
22224
|
LTE: "lte";
|
|
22024
|
-
isEQ(match: OperatorType | undefined):
|
|
22225
|
+
isEQ(match: OperatorType | undefined): match is "eq";
|
|
22025
22226
|
isEQClause(clause: Clause): boolean;
|
|
22026
|
-
isEXACT(match: OperatorType | undefined):
|
|
22227
|
+
isEXACT(match: OperatorType | undefined): match is "exact";
|
|
22027
22228
|
isEXACTClause(clause: Clause): boolean;
|
|
22028
|
-
isRange(match: OperatorType | undefined):
|
|
22229
|
+
isRange(match: OperatorType | undefined): match is "gt" | "gte" | "lt" | "lte";
|
|
22029
22230
|
isRangeClause(clause: Clause): boolean;
|
|
22030
|
-
isGT(match: OperatorType | undefined):
|
|
22231
|
+
isGT(match: OperatorType | undefined): match is "gt";
|
|
22031
22232
|
isGTClause(clause: Clause): boolean;
|
|
22032
|
-
isGTE(match: OperatorType | undefined):
|
|
22233
|
+
isGTE(match: OperatorType | undefined): match is "gte";
|
|
22033
22234
|
isGTEClause(clause: Clause): boolean;
|
|
22034
|
-
isLT(match: OperatorType | undefined):
|
|
22235
|
+
isLT(match: OperatorType | undefined): match is "lt";
|
|
22035
22236
|
isLTClause(clause: Clause): boolean;
|
|
22036
|
-
isLTE(match: OperatorType | undefined):
|
|
22237
|
+
isLTE(match: OperatorType | undefined): match is "lte";
|
|
22037
22238
|
isLTEClause(clause: Clause): boolean;
|
|
22038
22239
|
}>;
|
|
22039
22240
|
Term: Readonly<{
|
|
@@ -22197,7 +22398,8 @@ declare module '@elastic/eui/src/components/search_bar/query/operators' {
|
|
|
22197
22398
|
import moment from 'moment';
|
|
22198
22399
|
import { Value } from '@elastic/eui/src/components/search_bar/query/ast';
|
|
22199
22400
|
export type FieldValue = string | number | boolean | any[] | Date | moment.Moment | null | undefined;
|
|
22200
|
-
export type ClauseValue = Value | Date | moment.Moment | null | undefined;
|
|
22401
|
+
export type ClauseValue = Value | Date | moment.Moment | null | undefined;
|
|
22402
|
+
type Options = Partial<{
|
|
22201
22403
|
exactMatch: boolean;
|
|
22202
22404
|
ignoreCase: boolean;
|
|
22203
22405
|
}>;
|
|
@@ -22220,8 +22422,8 @@ declare module '@elastic/eui/src/components/search_bar/query/execute_ast' {
|
|
|
22220
22422
|
flag?: string;
|
|
22221
22423
|
match?: MatchType;
|
|
22222
22424
|
operator?: any;
|
|
22223
|
-
} const defaultIsClauseMatcher: <
|
|
22224
|
-
export const createFilter: <T extends {}>(ast: _AST, defaultFields: string[] | undefined, isClauseMatcher?: <T_1 extends object>(item: T_1, clause: IsClause, explain?: Explain[]
|
|
22425
|
+
} const defaultIsClauseMatcher: <T extends object>(item: T, clause: IsClause, explain?: Explain[]) => boolean;
|
|
22426
|
+
export const createFilter: <T extends {}>(ast: _AST, defaultFields: string[] | undefined, isClauseMatcher?: <T_1 extends object>(item: T_1, clause: IsClause, explain?: Explain[]) => boolean, explain?: boolean) => (item: T) => boolean;
|
|
22225
22427
|
interface Options {
|
|
22226
22428
|
isClauseMatcher?: typeof defaultIsClauseMatcher;
|
|
22227
22429
|
defaultFields?: string[];
|
|
@@ -22246,7 +22448,8 @@ declare module '@elastic/eui/src/components/search_bar/query/ast_to_es_query_dsl
|
|
|
22246
22448
|
must?: QueryContainer[];
|
|
22247
22449
|
must_not?: QueryContainer[];
|
|
22248
22450
|
should?: QueryContainer[];
|
|
22249
|
-
}
|
|
22451
|
+
}
|
|
22452
|
+
type Options = Partial<{
|
|
22250
22453
|
defaultFields: string[];
|
|
22251
22454
|
extraMustQueries: QueryContainer[];
|
|
22252
22455
|
extraMustNotQueries: QueryContainer[];
|
|
@@ -22257,17 +22460,10 @@ declare module '@elastic/eui/src/components/search_bar/query/ast_to_es_query_dsl
|
|
|
22257
22460
|
export const _termValuesToQuery: (values: Value[], options: Options) => {
|
|
22258
22461
|
simple_query_string: {
|
|
22259
22462
|
query: string;
|
|
22260
|
-
fields?: string[]
|
|
22463
|
+
fields?: string[];
|
|
22261
22464
|
};
|
|
22262
22465
|
} | undefined;
|
|
22263
|
-
export const _fieldValuesToQuery: (field: string, operations: {
|
|
22264
|
-
exact: Value[];
|
|
22265
|
-
eq: Value[];
|
|
22266
|
-
gt: Value[];
|
|
22267
|
-
gte: Value[];
|
|
22268
|
-
lt: Value[];
|
|
22269
|
-
lte: Value[];
|
|
22270
|
-
}, andOr: 'and' | 'or') => QueryContainer;
|
|
22466
|
+
export const _fieldValuesToQuery: (field: string, operations: { [x in OperatorType]: Value[]; }, andOr: "and" | "or") => QueryContainer;
|
|
22271
22467
|
export const _isFlagToQuery: (flag: string, on: boolean) => {
|
|
22272
22468
|
term: {
|
|
22273
22469
|
[x: string]: boolean;
|
|
@@ -22294,9 +22490,9 @@ declare module '@elastic/eui/src/components/search_bar/query/query' {
|
|
|
22294
22490
|
static parse(text: string, options?: ParseOptions, syntax?: Syntax): Query;
|
|
22295
22491
|
static isMust(clause: Clause): boolean;
|
|
22296
22492
|
static MATCH_ALL: Query;
|
|
22297
|
-
static isTerm(clause: Clause):
|
|
22298
|
-
static isIs(clause: Clause):
|
|
22299
|
-
static isField(clause: Clause):
|
|
22493
|
+
static isTerm(clause: Clause): clause is import ("@elastic/eui/src/components/search_bar/query/ast").TermClause;
|
|
22494
|
+
static isIs(clause: Clause): clause is import ("@elastic/eui/src/components/search_bar/query/ast").IsClause;
|
|
22495
|
+
static isField(clause: Clause): clause is import ("@elastic/eui/src/components/search_bar/query/ast").FieldClause;
|
|
22300
22496
|
ast: _AST;
|
|
22301
22497
|
text: string;
|
|
22302
22498
|
private syntax;
|
|
@@ -22484,10 +22680,12 @@ declare module '@elastic/eui/src/components/selectable/selectable_option' {
|
|
|
22484
22680
|
* Optional props to pass to the underlying **[EuiToolTip](/#/display/tooltip)**
|
|
22485
22681
|
*/
|
|
22486
22682
|
toolTipProps?: Partial<Omit<EuiToolTipProps, 'content' | 'children'>>;
|
|
22487
|
-
};
|
|
22683
|
+
};
|
|
22684
|
+
type _EuiSelectableGroupLabelOption = Omit<EuiSelectableOptionBase, 'isGroupLabel'> & Exclude<HTMLAttributes<HTMLDivElement>, 'id'> & {
|
|
22488
22685
|
isGroupLabel: true;
|
|
22489
22686
|
};
|
|
22490
|
-
export type EuiSelectableGroupLabelOption<T> = _EuiSelectableGroupLabelOption & T;
|
|
22687
|
+
export type EuiSelectableGroupLabelOption<T> = _EuiSelectableGroupLabelOption & T;
|
|
22688
|
+
type _EuiSelectableLIOption = EuiSelectableOptionBase & Exclude<HTMLAttributes<HTMLLIElement>, 'id'>;
|
|
22491
22689
|
export type EuiSelectableLIOption<T> = _EuiSelectableLIOption & T;
|
|
22492
22690
|
export type EuiSelectableOption<T = {}> = ExclusiveUnion<EuiSelectableGroupLabelOption<T>, EuiSelectableLIOption<T>>;
|
|
22493
22691
|
export {};
|
|
@@ -22495,7 +22693,8 @@ declare module '@elastic/eui/src/components/selectable/selectable_option' {
|
|
|
22495
22693
|
}
|
|
22496
22694
|
declare module '@elastic/eui/src/components/selectable/matching_options' {
|
|
22497
22695
|
import { EuiSelectableOption } from '@elastic/eui/src/components/selectable/selectable_option';
|
|
22498
|
-
import { EuiSelectableOptionMatcher } from '@elastic/eui/src/components/selectable/selectable';
|
|
22696
|
+
import { EuiSelectableOptionMatcher } from '@elastic/eui/src/components/selectable/selectable';
|
|
22697
|
+
type SelectableOptions<T> = Array<EuiSelectableOption<T>>;
|
|
22499
22698
|
interface GetMatchingOptionsArgs<TOption> {
|
|
22500
22699
|
/**
|
|
22501
22700
|
* All available options to match against
|
|
@@ -22800,7 +22999,8 @@ declare module '@elastic/eui/src/components/selectable/selectable_list/selectabl
|
|
|
22800
22999
|
makeOptionId: (index: number | undefined) => string;
|
|
22801
23000
|
listId: string;
|
|
22802
23001
|
setActiveOptionIndex: (index: number, cb?: () => void) => void;
|
|
22803
|
-
};
|
|
23002
|
+
};
|
|
23003
|
+
type State<T> = {
|
|
22804
23004
|
defaultOptionWidth: number;
|
|
22805
23005
|
optionArray: Array<EuiSelectableOption<T>>;
|
|
22806
23006
|
itemData: Record<number, EuiSelectableOption<T>>;
|
|
@@ -22824,7 +23024,7 @@ declare module '@elastic/eui/src/components/selectable/selectable_list/selectabl
|
|
|
22824
23024
|
setListBoxRef: (ref: HTMLUListElement | null) => void;
|
|
22825
23025
|
shouldComponentUpdate(nextProps: Readonly<EuiSelectableListProps<T>>): boolean;
|
|
22826
23026
|
componentDidUpdate(prevProps: EuiSelectableListProps<T>): void;
|
|
22827
|
-
calculateAriaSetAttrs: (optionArray: State<T>[
|
|
23027
|
+
calculateAriaSetAttrs: (optionArray: State<T>["optionArray"]) => {
|
|
22828
23028
|
ariaPosInSetMap: Record<number, number>;
|
|
22829
23029
|
ariaSetSize: number;
|
|
22830
23030
|
};
|
|
@@ -22836,9 +23036,9 @@ declare module '@elastic/eui/src/components/selectable/selectable_list/selectabl
|
|
|
22836
23036
|
getTruncationProps: (option: EuiSelectableOption, highlightSearch: boolean, isFocused: boolean) => {
|
|
22837
23037
|
prefix?: string | undefined;
|
|
22838
23038
|
slot?: string | undefined;
|
|
22839
|
-
style?:
|
|
23039
|
+
style?: CSSProperties | undefined;
|
|
22840
23040
|
title?: string | undefined;
|
|
22841
|
-
width: number
|
|
23041
|
+
width: number;
|
|
22842
23042
|
color?: string | undefined;
|
|
22843
23043
|
content?: string | undefined;
|
|
22844
23044
|
hidden?: boolean | undefined;
|
|
@@ -22852,14 +23052,14 @@ declare module '@elastic/eui/src/components/selectable/selectable_list/selectabl
|
|
|
22852
23052
|
suppressHydrationWarning?: boolean | undefined;
|
|
22853
23053
|
accessKey?: string | undefined;
|
|
22854
23054
|
autoFocus?: boolean | undefined;
|
|
22855
|
-
contentEditable?:
|
|
23055
|
+
contentEditable?: (boolean | "false" | "true") | "inherit" | "plaintext-only" | undefined;
|
|
22856
23056
|
contextMenu?: string | undefined;
|
|
22857
23057
|
dir?: string | undefined;
|
|
22858
|
-
draggable?: (boolean | "
|
|
23058
|
+
draggable?: (boolean | "false" | "true") | undefined;
|
|
22859
23059
|
id?: string | undefined;
|
|
22860
23060
|
lang?: string | undefined;
|
|
22861
23061
|
nonce?: string | undefined;
|
|
22862
|
-
spellCheck?: (boolean | "
|
|
23062
|
+
spellCheck?: (boolean | "false" | "true") | undefined;
|
|
22863
23063
|
tabIndex?: number | undefined;
|
|
22864
23064
|
radioGroup?: string | undefined;
|
|
22865
23065
|
role?: React.AriaRole | undefined;
|
|
@@ -22882,55 +23082,55 @@ declare module '@elastic/eui/src/components/selectable/selectable_list/selectabl
|
|
|
22882
23082
|
results?: number | undefined;
|
|
22883
23083
|
security?: string | undefined;
|
|
22884
23084
|
unselectable?: "on" | "off" | undefined;
|
|
22885
|
-
inputMode?: "
|
|
23085
|
+
inputMode?: "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | "search" | undefined;
|
|
22886
23086
|
is?: string | undefined;
|
|
22887
23087
|
"aria-activedescendant"?: string | undefined;
|
|
22888
|
-
"aria-atomic"?: (boolean | "
|
|
22889
|
-
"aria-autocomplete"?: "none" | "
|
|
23088
|
+
"aria-atomic"?: (boolean | "false" | "true") | undefined;
|
|
23089
|
+
"aria-autocomplete"?: "none" | "inline" | "list" | "both" | undefined;
|
|
22890
23090
|
"aria-braillelabel"?: string | undefined;
|
|
22891
23091
|
"aria-brailleroledescription"?: string | undefined;
|
|
22892
|
-
"aria-busy"?: (boolean | "
|
|
22893
|
-
"aria-checked"?: boolean | "
|
|
23092
|
+
"aria-busy"?: (boolean | "false" | "true") | undefined;
|
|
23093
|
+
"aria-checked"?: boolean | "false" | "mixed" | "true" | undefined;
|
|
22894
23094
|
"aria-colcount"?: number | undefined;
|
|
22895
23095
|
"aria-colindex"?: number | undefined;
|
|
22896
23096
|
"aria-colindextext"?: string | undefined;
|
|
22897
23097
|
"aria-colspan"?: number | undefined;
|
|
22898
23098
|
"aria-controls"?: string | undefined;
|
|
22899
|
-
"aria-current"?: boolean | "
|
|
23099
|
+
"aria-current"?: boolean | "false" | "true" | "page" | "step" | "location" | "date" | "time" | undefined;
|
|
22900
23100
|
"aria-describedby"?: string | undefined;
|
|
22901
23101
|
"aria-description"?: string | undefined;
|
|
22902
23102
|
"aria-details"?: string | undefined;
|
|
22903
|
-
"aria-disabled"?: (boolean | "
|
|
22904
|
-
"aria-dropeffect"?: "
|
|
23103
|
+
"aria-disabled"?: (boolean | "false" | "true") | undefined;
|
|
23104
|
+
"aria-dropeffect"?: "none" | "copy" | "execute" | "link" | "move" | "popup" | undefined;
|
|
22905
23105
|
"aria-errormessage"?: string | undefined;
|
|
22906
|
-
"aria-expanded"?: (boolean | "
|
|
23106
|
+
"aria-expanded"?: (boolean | "false" | "true") | undefined;
|
|
22907
23107
|
"aria-flowto"?: string | undefined;
|
|
22908
|
-
"aria-grabbed"?: (boolean | "
|
|
22909
|
-
"aria-haspopup"?: boolean | "
|
|
22910
|
-
"aria-hidden"?: (boolean | "
|
|
22911
|
-
"aria-invalid"?: boolean | "
|
|
23108
|
+
"aria-grabbed"?: (boolean | "false" | "true") | undefined;
|
|
23109
|
+
"aria-haspopup"?: boolean | "false" | "true" | "menu" | "listbox" | "tree" | "grid" | "dialog" | undefined;
|
|
23110
|
+
"aria-hidden"?: (boolean | "false" | "true") | undefined;
|
|
23111
|
+
"aria-invalid"?: boolean | "false" | "true" | "grammar" | "spelling" | undefined;
|
|
22912
23112
|
"aria-keyshortcuts"?: string | undefined;
|
|
22913
23113
|
"aria-label"?: string | undefined;
|
|
22914
23114
|
"aria-labelledby"?: string | undefined;
|
|
22915
23115
|
"aria-level"?: number | undefined;
|
|
22916
23116
|
"aria-live"?: "off" | "assertive" | "polite" | undefined;
|
|
22917
|
-
"aria-modal"?: (boolean | "
|
|
22918
|
-
"aria-multiline"?: (boolean | "
|
|
22919
|
-
"aria-multiselectable"?: (boolean | "
|
|
23117
|
+
"aria-modal"?: (boolean | "false" | "true") | undefined;
|
|
23118
|
+
"aria-multiline"?: (boolean | "false" | "true") | undefined;
|
|
23119
|
+
"aria-multiselectable"?: (boolean | "false" | "true") | undefined;
|
|
22920
23120
|
"aria-orientation"?: "horizontal" | "vertical" | undefined;
|
|
22921
23121
|
"aria-owns"?: string | undefined;
|
|
22922
23122
|
"aria-placeholder"?: string | undefined;
|
|
22923
23123
|
"aria-posinset"?: number | undefined;
|
|
22924
|
-
"aria-pressed"?: boolean | "
|
|
22925
|
-
"aria-readonly"?: (boolean | "
|
|
22926
|
-
"aria-relevant"?: "
|
|
22927
|
-
"aria-required"?: (boolean | "
|
|
23124
|
+
"aria-pressed"?: boolean | "false" | "mixed" | "true" | undefined;
|
|
23125
|
+
"aria-readonly"?: (boolean | "false" | "true") | undefined;
|
|
23126
|
+
"aria-relevant"?: "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text" | "text additions" | "text removals" | undefined;
|
|
23127
|
+
"aria-required"?: (boolean | "false" | "true") | undefined;
|
|
22928
23128
|
"aria-roledescription"?: string | undefined;
|
|
22929
23129
|
"aria-rowcount"?: number | undefined;
|
|
22930
23130
|
"aria-rowindex"?: number | undefined;
|
|
22931
23131
|
"aria-rowindextext"?: string | undefined;
|
|
22932
23132
|
"aria-rowspan"?: number | undefined;
|
|
22933
|
-
"aria-selected"?: (boolean | "
|
|
23133
|
+
"aria-selected"?: (boolean | "false" | "true") | undefined;
|
|
22934
23134
|
"aria-setsize"?: number | undefined;
|
|
22935
23135
|
"aria-sort"?: "none" | "ascending" | "descending" | "other" | undefined;
|
|
22936
23136
|
"aria-valuemax"?: number | undefined;
|
|
@@ -23008,7 +23208,7 @@ declare module '@elastic/eui/src/components/selectable/selectable_list/selectabl
|
|
|
23008
23208
|
onProgressCapture?: React.ReactEventHandler<HTMLDivElement> | undefined;
|
|
23009
23209
|
onRateChange?: React.ReactEventHandler<HTMLDivElement> | undefined;
|
|
23010
23210
|
onRateChangeCapture?: React.ReactEventHandler<HTMLDivElement> | undefined;
|
|
23011
|
-
onResize?: (
|
|
23211
|
+
onResize?: (width: number) => void;
|
|
23012
23212
|
onResizeCapture?: React.ReactEventHandler<HTMLDivElement> | undefined;
|
|
23013
23213
|
onSeeked?: React.ReactEventHandler<HTMLDivElement> | undefined;
|
|
23014
23214
|
onSeekedCapture?: React.ReactEventHandler<HTMLDivElement> | undefined;
|
|
@@ -23100,15 +23300,15 @@ declare module '@elastic/eui/src/components/selectable/selectable_list/selectabl
|
|
|
23100
23300
|
onAnimationIterationCapture?: React.AnimationEventHandler<HTMLDivElement> | undefined;
|
|
23101
23301
|
onTransitionEnd?: React.TransitionEventHandler<HTMLDivElement> | undefined;
|
|
23102
23302
|
onTransitionEndCapture?: React.TransitionEventHandler<HTMLDivElement> | undefined;
|
|
23103
|
-
'data-test-subj'?: string
|
|
23104
|
-
ellipsis?: string
|
|
23105
|
-
truncation?:
|
|
23106
|
-
truncationOffset?: number
|
|
23107
|
-
truncationPosition?: number
|
|
23108
|
-
calculationDelayMs?: number
|
|
23303
|
+
'data-test-subj'?: string;
|
|
23304
|
+
ellipsis?: string;
|
|
23305
|
+
truncation?: import ("@elastic/eui/src/components/text_truncate").EuiTextTruncationTypes;
|
|
23306
|
+
truncationOffset?: number;
|
|
23307
|
+
truncationPosition?: number;
|
|
23308
|
+
calculationDelayMs?: number;
|
|
23109
23309
|
} | undefined;
|
|
23110
|
-
renderSearchedText: (text: string, truncationProps?: EuiSelectableOptionsListProps[
|
|
23111
|
-
renderTruncatedText: (text: string, truncationProps?: EuiSelectableOptionsListProps[
|
|
23310
|
+
renderSearchedText: (text: string, truncationProps?: EuiSelectableOptionsListProps["truncationProps"]) => React.JSX.Element;
|
|
23311
|
+
renderTruncatedText: (text: string, truncationProps?: EuiSelectableOptionsListProps["truncationProps"]) => React.JSX.Element;
|
|
23112
23312
|
render(): React.JSX.Element;
|
|
23113
23313
|
onAddOrRemoveOption: (option: EuiSelectableOption<T>, event: EuiSelectableOnChangeEvent) => void;
|
|
23114
23314
|
private onAddOption;
|
|
@@ -23142,7 +23342,10 @@ declare module '@elastic/eui/src/components/selectable/selectable' {
|
|
|
23142
23342
|
import { EuiSelectableList } from '@elastic/eui/src/components/selectable/selectable_list';
|
|
23143
23343
|
import { EuiSelectableOptionsListProps } from '@elastic/eui/src/components/selectable/selectable_list/selectable_list';
|
|
23144
23344
|
import { EuiSelectableOption } from '@elastic/eui/src/components/selectable/selectable_option';
|
|
23145
|
-
export type EuiSelectableOnChangeEvent = KeyboardEvent | MouseEvent;
|
|
23345
|
+
export type EuiSelectableOnChangeEvent = KeyboardEvent | MouseEvent;
|
|
23346
|
+
type RequiredEuiSelectableOptionsListProps = Omit<EuiSelectableOptionsListProps, keyof (typeof EuiSelectableList)['defaultProps']>;
|
|
23347
|
+
type OptionalEuiSelectableOptionsListProps = Omit<EuiSelectableOptionsListProps, keyof RequiredEuiSelectableOptionsListProps>;
|
|
23348
|
+
type EuiSelectableOptionsListPropsWithDefaults = RequiredEuiSelectableOptionsListProps & Partial<OptionalEuiSelectableOptionsListProps>;
|
|
23146
23349
|
export interface EuiSelectableOptionMatcherArgs<TOption> {
|
|
23147
23350
|
option: EuiSelectableOption<TOption>;
|
|
23148
23351
|
searchValue: string;
|
|
@@ -23293,14 +23496,14 @@ declare module '@elastic/eui/src/components/selectable/selectable' {
|
|
|
23293
23496
|
componentDidUpdate<T>(prevProps: EuiSelectableProps<T>, prevState: EuiSelectableState<T>): void;
|
|
23294
23497
|
isFocusOnSearchOrListBox: (target: EventTarget | null) => boolean | undefined;
|
|
23295
23498
|
onMouseDown: () => void;
|
|
23296
|
-
onFocus: (event?:
|
|
23499
|
+
onFocus: (event?: FocusEvent) => void;
|
|
23297
23500
|
onKeyDown: (event: KeyboardEvent<HTMLDivElement>) => void;
|
|
23298
23501
|
incrementActiveOptionIndex: (amount: number) => void;
|
|
23299
23502
|
onSearchChange: (searchValue: string, visibleOptions: Array<EuiSelectableOption<T>>) => void;
|
|
23300
23503
|
onContainerBlur: (e: React.FocusEvent) => void;
|
|
23301
23504
|
onOptionClick: (options: Array<EuiSelectableOption<T>>, event: EuiSelectableOnChangeEvent, clickedOption: EuiSelectableOption<T>) => void;
|
|
23302
|
-
scrollToItem: (index: number, align?: Align
|
|
23303
|
-
makeOptionId: (index?: number
|
|
23505
|
+
scrollToItem: (index: number, align?: Align) => void;
|
|
23506
|
+
makeOptionId: (index?: number) => string;
|
|
23304
23507
|
render(): React.JSX.Element;
|
|
23305
23508
|
}
|
|
23306
23509
|
export {};
|
|
@@ -23448,7 +23651,10 @@ declare module '@elastic/eui/src/components/search_bar/filters/field_value_selec
|
|
|
23448
23651
|
value: Value;
|
|
23449
23652
|
name?: string;
|
|
23450
23653
|
view?: ReactNode;
|
|
23451
|
-
}
|
|
23654
|
+
}
|
|
23655
|
+
type OptionsLoader = () => Promise<FieldValueOptionType[]>;
|
|
23656
|
+
type OptionsFilter = (name: string, query: string, options?: FieldValueOptionType[]) => boolean;
|
|
23657
|
+
type MultiSelect = boolean | 'and' | 'or';
|
|
23452
23658
|
export interface FieldValueSelectionFilterConfigType {
|
|
23453
23659
|
type: 'field_value_selection';
|
|
23454
23660
|
field?: string;
|
|
@@ -23622,7 +23828,8 @@ declare module '@elastic/eui/src/components/search_bar/search_filters' {
|
|
|
23622
23828
|
query: Query;
|
|
23623
23829
|
onChange: (query: Query) => void;
|
|
23624
23830
|
filters: SearchFilterConfig[];
|
|
23625
|
-
}
|
|
23831
|
+
}
|
|
23832
|
+
type DefaultProps = Pick<EuiSearchBarFiltersProps, 'filters'>;
|
|
23626
23833
|
export class EuiSearchBarFilters extends Component<EuiSearchBarFiltersProps> {
|
|
23627
23834
|
static defaultProps: DefaultProps;
|
|
23628
23835
|
render(): React.JSX.Element;
|
|
@@ -23643,7 +23850,8 @@ declare module '@elastic/eui/src/components/search_bar/search_bar' {
|
|
|
23643
23850
|
import { EuiFieldSearchProps } from '@elastic/eui/src/components/form/field_search';
|
|
23644
23851
|
import { EuiInputPopoverProps } from '@elastic/eui/src/components/popover';
|
|
23645
23852
|
export { Query, AST as Ast } from '@elastic/eui/src/components/search_bar/query';
|
|
23646
|
-
export type QueryType = Query | string;
|
|
23853
|
+
export type QueryType = Query | string;
|
|
23854
|
+
type Tools = ReactElement | ReactElement[];
|
|
23647
23855
|
interface ArgsWithQuery {
|
|
23648
23856
|
query: Query;
|
|
23649
23857
|
queryText: string;
|
|
@@ -23660,7 +23868,8 @@ declare module '@elastic/eui/src/components/search_bar/search_bar' {
|
|
|
23660
23868
|
flags?: string[];
|
|
23661
23869
|
recognizedFields?: string[];
|
|
23662
23870
|
}
|
|
23663
|
-
export type EuiSearchBarOnChangeArgs = ArgsWithQuery | ArgsWithError;
|
|
23871
|
+
export type EuiSearchBarOnChangeArgs = ArgsWithQuery | ArgsWithError;
|
|
23872
|
+
type HintPopOverProps = Partial<Pick<EuiInputPopoverProps, 'isOpen' | 'closePopover' | 'fullWidth' | 'disableFocusTrap' | 'panelClassName' | 'panelPaddingSize' | 'panelStyle' | 'panelProps' | 'popoverScreenReaderText' | 'repositionOnScroll' | 'zIndex' | 'data-test-subj'>>;
|
|
23664
23873
|
export interface EuiSearchBarProps extends CommonProps {
|
|
23665
23874
|
onChange?: (args: EuiSearchBarOnChangeArgs) => void | boolean;
|
|
23666
23875
|
/**
|
|
@@ -23706,7 +23915,8 @@ declare module '@elastic/eui/src/components/search_bar/search_bar' {
|
|
|
23706
23915
|
queryText: string;
|
|
23707
23916
|
error: null | Error;
|
|
23708
23917
|
isHintVisible: boolean;
|
|
23709
|
-
}
|
|
23918
|
+
}
|
|
23919
|
+
type NotifyControllingParent = Pick<State, 'queryText' | 'error'> & {
|
|
23710
23920
|
query: Query | null;
|
|
23711
23921
|
};
|
|
23712
23922
|
export class EuiSearchBar extends Component<EuiSearchBarProps, State> {
|
|
@@ -23776,15 +23986,15 @@ declare module '@elastic/eui/src/components/side_nav/side_nav_item.styles' {
|
|
|
23776
23986
|
root: {
|
|
23777
23987
|
lineHeight: import("csstype").Property.LineHeight<string | number> | undefined;
|
|
23778
23988
|
color: string;
|
|
23779
|
-
fontSize: import("
|
|
23780
|
-
fontWeight: import("
|
|
23989
|
+
fontSize: import("react").CSSProperties["fontSize"];
|
|
23990
|
+
fontWeight: import("react").CSSProperties["fontWeight"];
|
|
23781
23991
|
};
|
|
23782
23992
|
};
|
|
23783
23993
|
};
|
|
23784
23994
|
|
|
23785
23995
|
}
|
|
23786
23996
|
declare module '@elastic/eui/src/components/side_nav/side_nav_item' {
|
|
23787
|
-
import
|
|
23997
|
+
import { HTMLAttributes, ReactNode, ReactElement, MouseEventHandler, JSX } from 'react';
|
|
23788
23998
|
import { CommonProps } from '@elastic/eui/src/components/common';
|
|
23789
23999
|
/**
|
|
23790
24000
|
* The props that are exposed to, or altered for, the consumer
|
|
@@ -23841,7 +24051,9 @@ declare module '@elastic/eui/src/components/side_nav/side_nav_item' {
|
|
|
23841
24051
|
isParent?: boolean;
|
|
23842
24052
|
depth?: number;
|
|
23843
24053
|
childrenOnly?: boolean;
|
|
23844
|
-
}
|
|
24054
|
+
}
|
|
24055
|
+
type ExcludeEuiSideNavItemProps<T> = Pick<T, Exclude<keyof T, keyof _EuiSideNavItemProps | 'renderItem'>>;
|
|
24056
|
+
type OmitEuiSideNavItemProps<T> = {
|
|
23845
24057
|
[K in keyof ExcludeEuiSideNavItemProps<T>]: T[K];
|
|
23846
24058
|
};
|
|
23847
24059
|
export type RenderItem<T> = (props: OmitEuiSideNavItemProps<T> & _EuiSideNavItemButtonProps) => JSX.Element;
|
|
@@ -23850,23 +24062,8 @@ declare module '@elastic/eui/src/components/side_nav/side_nav_item' {
|
|
|
23850
24062
|
} ? T & {
|
|
23851
24063
|
renderItem: RenderItem<T>;
|
|
23852
24064
|
} : T;
|
|
23853
|
-
export const EuiSideNavItem: <T extends
|
|
23854
|
-
|
|
23855
|
-
* Is an optional string to be passed as the navigation item's `href` prop,
|
|
23856
|
-
* and by default it will force rendering of the item as an `<a>`
|
|
23857
|
-
*/
|
|
23858
|
-
href?: string | undefined;
|
|
23859
|
-
target?: string | undefined;
|
|
23860
|
-
rel?: string | undefined;
|
|
23861
|
-
/**
|
|
23862
|
-
* Callback function to be passed as the navigation item's `onClick` prop,
|
|
23863
|
-
* and by default it will force rendering of the item as a `<button>` instead of a link
|
|
23864
|
-
*/
|
|
23865
|
-
onClick?: React.MouseEventHandler<HTMLElement | HTMLButtonElement> | undefined;
|
|
23866
|
-
children: ReactNode;
|
|
23867
|
-
disabled?: boolean | undefined;
|
|
23868
|
-
} & _EuiSideNavItemProps & {
|
|
23869
|
-
renderItem?: ((props: any) => JSX.Element) | undefined;
|
|
24065
|
+
export const EuiSideNavItem: <T extends _EuiSideNavItemButtonProps & _EuiSideNavItemProps & {
|
|
24066
|
+
renderItem?: (props: any) => JSX.Element;
|
|
23870
24067
|
}>({ isOpen, isSelected, isParent, icon, onClick, href: _href, rel, target, items, children, renderItem: RenderItem, depth, className, css, style, truncate, emphasize, buttonClassName, childrenOnly, ...rest }: EuiSideNavItemProps<T>) => JSX.Element;
|
|
23871
24068
|
export {};
|
|
23872
24069
|
|
|
@@ -24009,7 +24206,8 @@ declare module '@elastic/eui/src/components/stat/stat' {
|
|
|
24009
24206
|
import { HTMLAttributes, FunctionComponent, ReactNode } from 'react';
|
|
24010
24207
|
import { CommonProps } from '@elastic/eui/src/components/common';
|
|
24011
24208
|
import { EuiTitleSize } from '@elastic/eui/src/components/title/title';
|
|
24012
|
-
export const COLORS: readonly ["default", "subdued", "primary", "success", "warning", "danger", "accent"];
|
|
24209
|
+
export const COLORS: readonly ["default", "subdued", "primary", "success", "warning", "danger", "accent"];
|
|
24210
|
+
type TitleColor = (typeof COLORS)[number];
|
|
24013
24211
|
export const ALIGNMENTS: readonly ["left", "center", "right"];
|
|
24014
24212
|
export interface EuiStatProps {
|
|
24015
24213
|
/**
|
|
@@ -24056,7 +24254,7 @@ declare module '@elastic/eui/src/components/stat' {
|
|
|
24056
24254
|
|
|
24057
24255
|
}
|
|
24058
24256
|
declare module '@elastic/eui/src/components/steps/step_strings' {
|
|
24059
|
-
|
|
24257
|
+
type Props = {
|
|
24060
24258
|
number?: number;
|
|
24061
24259
|
title?: string;
|
|
24062
24260
|
};
|
|
@@ -24073,7 +24271,7 @@ declare module '@elastic/eui/src/components/steps/step_strings' {
|
|
|
24073
24271
|
}
|
|
24074
24272
|
declare module '@elastic/eui/src/components/steps/step.styles' {
|
|
24075
24273
|
import { UseEuiTheme } from '@elastic/eui/src/services';
|
|
24076
|
-
export const euiStepVariables: (euiTheme: UseEuiTheme[
|
|
24274
|
+
export const euiStepVariables: (euiTheme: UseEuiTheme["euiTheme"]) => {
|
|
24077
24275
|
numberSize: string;
|
|
24078
24276
|
numberXSSize: string;
|
|
24079
24277
|
numberXXSSize: string;
|
|
@@ -24326,7 +24524,8 @@ declare module '@elastic/eui/src/components/tour/_tour_header.styles' {
|
|
|
24326
24524
|
}
|
|
24327
24525
|
declare module '@elastic/eui/src/components/tour/_tour_header' {
|
|
24328
24526
|
import { FunctionComponent } from 'react';
|
|
24329
|
-
import type { EuiTourStepProps } from '@elastic/eui/src/components/tour/tour_step';
|
|
24527
|
+
import type { EuiTourStepProps } from '@elastic/eui/src/components/tour/tour_step';
|
|
24528
|
+
type EuiTourHeaderProps = {
|
|
24330
24529
|
id: string;
|
|
24331
24530
|
} & Pick<EuiTourStepProps, 'title' | 'subtitle'>;
|
|
24332
24531
|
export const EuiTourHeader: FunctionComponent<EuiTourHeaderProps>;
|
|
@@ -24354,7 +24553,8 @@ declare module '@elastic/eui/src/components/tour/_tour_footer.styles' {
|
|
|
24354
24553
|
}
|
|
24355
24554
|
declare module '@elastic/eui/src/components/tour/_tour_footer' {
|
|
24356
24555
|
import { FunctionComponent } from 'react';
|
|
24357
|
-
import type { EuiTourStepProps } from '@elastic/eui/src/components/tour/tour_step';
|
|
24556
|
+
import type { EuiTourStepProps } from '@elastic/eui/src/components/tour/tour_step';
|
|
24557
|
+
type EuiTourFooterProps = Pick<EuiTourStepProps, 'footerAction' | 'step' | 'stepsTotal' | 'onFinish'>;
|
|
24358
24558
|
export const EuiTourFooter: FunctionComponent<EuiTourFooterProps>;
|
|
24359
24559
|
export {};
|
|
24360
24560
|
|
|
@@ -24378,7 +24578,11 @@ declare module '@elastic/eui/src/components/tour/tour_step' {
|
|
|
24378
24578
|
import { CSSProperties, HTMLAttributes, FunctionComponent, ReactElement, ReactNode } from 'react';
|
|
24379
24579
|
import { ElementTarget } from '@elastic/eui/src/services';
|
|
24380
24580
|
import { CommonProps, ExclusiveUnion, NoArgCallback } from '@elastic/eui/src/components/common';
|
|
24381
|
-
import { EuiPopoverProps } from '@elastic/eui/src/components/popover';
|
|
24581
|
+
import { EuiPopoverProps } from '@elastic/eui/src/components/popover';
|
|
24582
|
+
type _EuiPopoverProps = EuiPopoverProps & Omit<HTMLAttributes<HTMLDivElement>, 'content' | 'title' | 'step'>;
|
|
24583
|
+
type _PopoverOverrides = 'button' | 'closePopover';
|
|
24584
|
+
type _PopoverPartials = 'closePopover';
|
|
24585
|
+
type ExtendedEuiPopoverProps = Omit<_EuiPopoverProps, _PopoverOverrides> & Partial<Pick<EuiPopoverProps, _PopoverPartials>>;
|
|
24382
24586
|
export type EuiTourStepAnchorProps = ExclusiveUnion<{
|
|
24383
24587
|
/**
|
|
24384
24588
|
* Element to which the tour step popover attaches when open
|
|
@@ -24612,7 +24816,9 @@ declare module '@elastic/eui/src/components/basic_table/basic_table' {
|
|
|
24612
24816
|
index: number;
|
|
24613
24817
|
size: number;
|
|
24614
24818
|
};
|
|
24615
|
-
}
|
|
24819
|
+
}
|
|
24820
|
+
type CellPropsCallback<T extends object> = (item: T, column: EuiBasicTableColumn<T>) => object;
|
|
24821
|
+
type RowPropsCallback<T> = (item: T) => object;
|
|
24616
24822
|
interface BasicTableProps<T extends object> extends Omit<EuiTableProps, 'onChange'> {
|
|
24617
24823
|
/**
|
|
24618
24824
|
* Describes how to extract a unique ID from each item, used for selections & expanded rows
|
|
@@ -24678,7 +24884,8 @@ declare module '@elastic/eui/src/components/basic_table/basic_table' {
|
|
|
24678
24884
|
* Sets the table-layout CSS property. Note that auto tableLayout prevents truncateText from working properly.
|
|
24679
24885
|
*/
|
|
24680
24886
|
tableLayout?: 'fixed' | 'auto';
|
|
24681
|
-
}
|
|
24887
|
+
}
|
|
24888
|
+
type BasicTableWithPaginationProps<T extends object> = Omit<BasicTableProps<T>, 'pagination' | 'onChange'> & {
|
|
24682
24889
|
pagination: Pagination;
|
|
24683
24890
|
onChange?: (criteria: CriteriaWithPagination<T>) => void;
|
|
24684
24891
|
};
|
|
@@ -24758,10 +24965,13 @@ declare module '@elastic/eui/src/components/basic_table/in_memory_table' {
|
|
|
24758
24965
|
initialPageSize?: number;
|
|
24759
24966
|
pageIndex?: number;
|
|
24760
24967
|
pageSize?: number;
|
|
24761
|
-
}
|
|
24968
|
+
}
|
|
24969
|
+
type Pagination = boolean | PaginationOptions;
|
|
24762
24970
|
interface SortingOptions {
|
|
24763
24971
|
sort: PropertySort;
|
|
24764
|
-
}
|
|
24972
|
+
}
|
|
24973
|
+
type Sorting = boolean | SortingOptions;
|
|
24974
|
+
type InMemoryTableProps<T extends object> = Omit<EuiBasicTableProps<T>, 'pagination' | 'sorting' | 'noItemsMessage' | 'onChange'> & {
|
|
24765
24975
|
message?: ReactNode;
|
|
24766
24976
|
/**
|
|
24767
24977
|
* Configures #Search.
|
|
@@ -24815,7 +25025,8 @@ declare module '@elastic/eui/src/components/basic_table/in_memory_table' {
|
|
|
24815
25025
|
* Insert content between the search bar and table components.
|
|
24816
25026
|
*/
|
|
24817
25027
|
childrenBetween?: ReactNode;
|
|
24818
|
-
};
|
|
25028
|
+
};
|
|
25029
|
+
type InMemoryTablePropsWithPagination<T extends object> = Omit<InMemoryTableProps<T>, 'pagination' | 'onTableChange'> & {
|
|
24819
25030
|
pagination: Pagination;
|
|
24820
25031
|
onTableChange?: (nextValues: CriteriaWithPagination<T>) => void;
|
|
24821
25032
|
};
|
|
@@ -24944,7 +25155,8 @@ declare module '@elastic/eui/src/components/toast/toast' {
|
|
|
24944
25155
|
import { FunctionComponent, HTMLAttributes, ReactNode } from 'react';
|
|
24945
25156
|
import { CommonProps } from '@elastic/eui/src/components/common';
|
|
24946
25157
|
import { IconType } from '@elastic/eui/src/components/icon';
|
|
24947
|
-
export const COLORS: readonly ["primary", "success", "warning", "danger"];
|
|
25158
|
+
export const COLORS: readonly ["primary", "success", "warning", "danger"];
|
|
25159
|
+
type ToastColor = (typeof COLORS)[number];
|
|
24948
25160
|
export interface EuiToastProps extends CommonProps, Omit<HTMLAttributes<HTMLDivElement>, 'title'> {
|
|
24949
25161
|
title?: ReactNode;
|
|
24950
25162
|
color?: ToastColor;
|
|
@@ -25007,7 +25219,8 @@ declare module '@elastic/eui/src/components/toast/global_toast_list_item' {
|
|
|
25007
25219
|
declare module '@elastic/eui/src/components/toast/global_toast_list' {
|
|
25008
25220
|
import { FunctionComponent, HTMLAttributes, ReactNode } from 'react';
|
|
25009
25221
|
import { CommonProps } from '@elastic/eui/src/components/common';
|
|
25010
|
-
import { EuiToastProps } from '@elastic/eui/src/components/toast/toast';
|
|
25222
|
+
import { EuiToastProps } from '@elastic/eui/src/components/toast/toast';
|
|
25223
|
+
type ToastSide = 'right' | 'left';
|
|
25011
25224
|
export const SIDES: ToastSide[];
|
|
25012
25225
|
export const TOAST_FADE_OUT_MS = 250;
|
|
25013
25226
|
export const CLEAR_ALL_TOASTS_THRESHOLD_DEFAULT = 3;
|
|
@@ -25160,7 +25373,8 @@ declare module '@elastic/eui/.storybook/utils' {
|
|
|
25160
25373
|
/**
|
|
25161
25374
|
* argTypes configurations
|
|
25162
25375
|
*/
|
|
25163
|
-
import type { Meta, Preview, StoryObj } from '@storybook/react';
|
|
25376
|
+
import type { Meta, Preview, StoryObj } from '@storybook/react';
|
|
25377
|
+
type StorybookConfig<T> = Meta<T> | StoryObj<T> | Preview;
|
|
25164
25378
|
/**
|
|
25165
25379
|
* Completely hide props from Storybook's controls panel.
|
|
25166
25380
|
*
|
|
@@ -25170,7 +25384,7 @@ declare module '@elastic/eui/.storybook/utils' {
|
|
|
25170
25384
|
*
|
|
25171
25385
|
* @returns the mutated config
|
|
25172
25386
|
*/
|
|
25173
|
-
export const hideStorybookControls: <Props>(config: StorybookConfig<Props>, propNames:
|
|
25387
|
+
export const hideStorybookControls: <Props>(config: StorybookConfig<Props>, propNames: Array<keyof Props>) => StorybookConfig<Props>;
|
|
25174
25388
|
/**
|
|
25175
25389
|
* Leave props visible in Storybook's controls panel, but disable them
|
|
25176
25390
|
* from being controllable (renders a `-`).
|
|
@@ -25181,7 +25395,7 @@ declare module '@elastic/eui/.storybook/utils' {
|
|
|
25181
25395
|
*
|
|
25182
25396
|
* @returns the mutated config
|
|
25183
25397
|
*/
|
|
25184
|
-
export const disableStorybookControls: <Props>(config: StorybookConfig<Props>, propNames:
|
|
25398
|
+
export const disableStorybookControls: <Props>(config: StorybookConfig<Props>, propNames: Array<keyof Props>) => StorybookConfig<Props>;
|
|
25185
25399
|
/**
|
|
25186
25400
|
* Configure provided args to be listed under a specified
|
|
25187
25401
|
* category in the props table.
|
|
@@ -25192,7 +25406,7 @@ declare module '@elastic/eui/.storybook/utils' {
|
|
|
25192
25406
|
*
|
|
25193
25407
|
* @returns the mutated config
|
|
25194
25408
|
*/
|
|
25195
|
-
export const moveStorybookControlsToCategory: <Props>(config: StorybookConfig<Props>, propNames:
|
|
25409
|
+
export const moveStorybookControlsToCategory: <Props>(config: StorybookConfig<Props>, propNames: Array<keyof Props>, category?: string) => StorybookConfig<Props>;
|
|
25196
25410
|
/**
|
|
25197
25411
|
* Configures passed argTypes to be setup as toggle control
|
|
25198
25412
|
* which fires a Storybook action when enabled.
|
|
@@ -25204,7 +25418,7 @@ declare module '@elastic/eui/.storybook/utils' {
|
|
|
25204
25418
|
*
|
|
25205
25419
|
* @returns the mutated config
|
|
25206
25420
|
*/
|
|
25207
|
-
export const enableFunctionToggleControls: <Props>(config: StorybookConfig<Props>, propNames:
|
|
25421
|
+
export const enableFunctionToggleControls: <Props>(config: StorybookConfig<Props>, propNames: Array<keyof Props>) => StorybookConfig<Props>;
|
|
25208
25422
|
/**
|
|
25209
25423
|
* parameters configurations
|
|
25210
25424
|
*/
|
|
@@ -25272,54 +25486,54 @@ declare module '@elastic/eui/.storybook/test' {
|
|
|
25272
25486
|
waitForAndClick: (testSubject: string) => Promise<void>;
|
|
25273
25487
|
waitForEuiPopoverVisible: () => Promise<void>;
|
|
25274
25488
|
waitForEuiPopoverHidden: () => Promise<void>;
|
|
25275
|
-
getByLabelText: (<T extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => T) & ((id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => HTMLElement);
|
|
25276
|
-
getAllByLabelText: (<
|
|
25277
|
-
queryByLabelText: (<
|
|
25278
|
-
queryAllByLabelText: (<
|
|
25279
|
-
findByLabelText: (<
|
|
25280
|
-
findAllByLabelText: (<
|
|
25281
|
-
getByPlaceholderText: (<
|
|
25282
|
-
getAllByPlaceholderText: (<
|
|
25283
|
-
queryByPlaceholderText: (<
|
|
25284
|
-
queryAllByPlaceholderText: (<
|
|
25285
|
-
findByPlaceholderText: (<
|
|
25286
|
-
findAllByPlaceholderText: (<
|
|
25287
|
-
getByText: (<
|
|
25288
|
-
getAllByText: (<
|
|
25289
|
-
queryByText: (<
|
|
25290
|
-
queryAllByText: (<
|
|
25291
|
-
findByText: (<
|
|
25292
|
-
findAllByText: (<
|
|
25293
|
-
getByAltText: (<
|
|
25294
|
-
getAllByAltText: (<
|
|
25295
|
-
queryByAltText: (<
|
|
25296
|
-
queryAllByAltText: (<
|
|
25297
|
-
findByAltText: (<
|
|
25298
|
-
findAllByAltText: (<
|
|
25299
|
-
getByTitle: (<
|
|
25300
|
-
getAllByTitle: (<
|
|
25301
|
-
queryByTitle: (<
|
|
25302
|
-
queryAllByTitle: (<
|
|
25303
|
-
findByTitle: (<
|
|
25304
|
-
findAllByTitle: (<
|
|
25305
|
-
getByDisplayValue: (<
|
|
25306
|
-
getAllByDisplayValue: (<
|
|
25307
|
-
queryByDisplayValue: (<
|
|
25308
|
-
queryAllByDisplayValue: (<
|
|
25309
|
-
findByDisplayValue: (<
|
|
25310
|
-
findAllByDisplayValue: (<
|
|
25311
|
-
getByRole: (<
|
|
25312
|
-
getAllByRole: (<
|
|
25313
|
-
queryByRole: (<
|
|
25314
|
-
queryAllByRole: (<
|
|
25315
|
-
findByRole: (<
|
|
25316
|
-
findAllByRole: (<
|
|
25317
|
-
getByTestId: (<
|
|
25318
|
-
getAllByTestId: (<
|
|
25319
|
-
queryByTestId: (<
|
|
25320
|
-
queryAllByTestId: (<
|
|
25321
|
-
findByTestId: (<
|
|
25322
|
-
findAllByTestId: (<
|
|
25489
|
+
getByLabelText: (<T extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => ReturnType<import("@testing-library/dom").GetByText<T>>) & ((id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => HTMLElement);
|
|
25490
|
+
getAllByLabelText: (<T extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => ReturnType<import("@testing-library/dom").AllByText<T>>) & ((id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => HTMLElement[]);
|
|
25491
|
+
queryByLabelText: (<T extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => ReturnType<import("@testing-library/dom").QueryByText<T>>) & ((id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => HTMLElement | null);
|
|
25492
|
+
queryAllByLabelText: (<T extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => ReturnType<import("@testing-library/dom").AllByText<T>>) & ((id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => HTMLElement[]);
|
|
25493
|
+
findByLabelText: (<T extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/dom").waitForOptions | undefined) => ReturnType<import("@testing-library/dom").FindByText<T>>) & ((id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/dom").waitForOptions | undefined) => Promise<HTMLElement>);
|
|
25494
|
+
findAllByLabelText: (<T extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/dom").waitForOptions | undefined) => ReturnType<import("@testing-library/dom").FindAllByText<T>>) & ((id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/dom").waitForOptions | undefined) => Promise<HTMLElement[]>);
|
|
25495
|
+
getByPlaceholderText: (<T extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").MatcherOptions | undefined) => ReturnType<import("@testing-library/dom").GetByBoundAttribute<T>>) & ((id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").MatcherOptions | undefined) => HTMLElement);
|
|
25496
|
+
getAllByPlaceholderText: (<T extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").MatcherOptions | undefined) => ReturnType<import("@testing-library/dom").AllByBoundAttribute<T>>) & ((id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").MatcherOptions | undefined) => HTMLElement[]);
|
|
25497
|
+
queryByPlaceholderText: (<T extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").MatcherOptions | undefined) => ReturnType<import("@testing-library/dom").QueryByBoundAttribute<T>>) & ((id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").MatcherOptions | undefined) => HTMLElement | null);
|
|
25498
|
+
queryAllByPlaceholderText: (<T extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").MatcherOptions | undefined) => ReturnType<import("@testing-library/dom").AllByBoundAttribute<T>>) & ((id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").MatcherOptions | undefined) => HTMLElement[]);
|
|
25499
|
+
findByPlaceholderText: (<T extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/dom").waitForOptions | undefined) => ReturnType<import("@testing-library/dom").FindByBoundAttribute<T>>) & ((id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/dom").waitForOptions | undefined) => Promise<HTMLElement>);
|
|
25500
|
+
findAllByPlaceholderText: (<T extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/dom").waitForOptions | undefined) => ReturnType<import("@testing-library/dom").FindAllByBoundAttribute<T>>) & ((id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/dom").waitForOptions | undefined) => Promise<HTMLElement[]>);
|
|
25501
|
+
getByText: (<T extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => ReturnType<import("@testing-library/dom").GetByText<T>>) & ((id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => HTMLElement);
|
|
25502
|
+
getAllByText: (<T extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => ReturnType<import("@testing-library/dom").AllByText<T>>) & ((id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => HTMLElement[]);
|
|
25503
|
+
queryByText: (<T extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => ReturnType<import("@testing-library/dom").QueryByText<T>>) & ((id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => HTMLElement | null);
|
|
25504
|
+
queryAllByText: (<T extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => ReturnType<import("@testing-library/dom").AllByText<T>>) & ((id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => HTMLElement[]);
|
|
25505
|
+
findByText: (<T extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/dom").waitForOptions | undefined) => ReturnType<import("@testing-library/dom").FindByText<T>>) & ((id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/dom").waitForOptions | undefined) => Promise<HTMLElement>);
|
|
25506
|
+
findAllByText: (<T extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/dom").waitForOptions | undefined) => ReturnType<import("@testing-library/dom").FindAllByText<T>>) & ((id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/dom").waitForOptions | undefined) => Promise<HTMLElement[]>);
|
|
25507
|
+
getByAltText: (<T extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").MatcherOptions | undefined) => ReturnType<import("@testing-library/dom").GetByBoundAttribute<T>>) & ((id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").MatcherOptions | undefined) => HTMLElement);
|
|
25508
|
+
getAllByAltText: (<T extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").MatcherOptions | undefined) => ReturnType<import("@testing-library/dom").AllByBoundAttribute<T>>) & ((id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").MatcherOptions | undefined) => HTMLElement[]);
|
|
25509
|
+
queryByAltText: (<T extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").MatcherOptions | undefined) => ReturnType<import("@testing-library/dom").QueryByBoundAttribute<T>>) & ((id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").MatcherOptions | undefined) => HTMLElement | null);
|
|
25510
|
+
queryAllByAltText: (<T extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").MatcherOptions | undefined) => ReturnType<import("@testing-library/dom").AllByBoundAttribute<T>>) & ((id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").MatcherOptions | undefined) => HTMLElement[]);
|
|
25511
|
+
findByAltText: (<T extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/dom").waitForOptions | undefined) => ReturnType<import("@testing-library/dom").FindByBoundAttribute<T>>) & ((id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/dom").waitForOptions | undefined) => Promise<HTMLElement>);
|
|
25512
|
+
findAllByAltText: (<T extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/dom").waitForOptions | undefined) => ReturnType<import("@testing-library/dom").FindAllByBoundAttribute<T>>) & ((id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/dom").waitForOptions | undefined) => Promise<HTMLElement[]>);
|
|
25513
|
+
getByTitle: (<T extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").MatcherOptions | undefined) => ReturnType<import("@testing-library/dom").GetByBoundAttribute<T>>) & ((id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").MatcherOptions | undefined) => HTMLElement);
|
|
25514
|
+
getAllByTitle: (<T extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").MatcherOptions | undefined) => ReturnType<import("@testing-library/dom").AllByBoundAttribute<T>>) & ((id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").MatcherOptions | undefined) => HTMLElement[]);
|
|
25515
|
+
queryByTitle: (<T extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").MatcherOptions | undefined) => ReturnType<import("@testing-library/dom").QueryByBoundAttribute<T>>) & ((id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").MatcherOptions | undefined) => HTMLElement | null);
|
|
25516
|
+
queryAllByTitle: (<T extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").MatcherOptions | undefined) => ReturnType<import("@testing-library/dom").AllByBoundAttribute<T>>) & ((id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").MatcherOptions | undefined) => HTMLElement[]);
|
|
25517
|
+
findByTitle: (<T extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/dom").waitForOptions | undefined) => ReturnType<import("@testing-library/dom").FindByBoundAttribute<T>>) & ((id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/dom").waitForOptions | undefined) => Promise<HTMLElement>);
|
|
25518
|
+
findAllByTitle: (<T extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/dom").waitForOptions | undefined) => ReturnType<import("@testing-library/dom").FindAllByBoundAttribute<T>>) & ((id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/dom").waitForOptions | undefined) => Promise<HTMLElement[]>);
|
|
25519
|
+
getByDisplayValue: (<T extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").MatcherOptions | undefined) => ReturnType<import("@testing-library/dom").GetByBoundAttribute<T>>) & ((id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").MatcherOptions | undefined) => HTMLElement);
|
|
25520
|
+
getAllByDisplayValue: (<T extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").MatcherOptions | undefined) => ReturnType<import("@testing-library/dom").AllByBoundAttribute<T>>) & ((id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").MatcherOptions | undefined) => HTMLElement[]);
|
|
25521
|
+
queryByDisplayValue: (<T extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").MatcherOptions | undefined) => ReturnType<import("@testing-library/dom").QueryByBoundAttribute<T>>) & ((id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").MatcherOptions | undefined) => HTMLElement | null);
|
|
25522
|
+
queryAllByDisplayValue: (<T extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").MatcherOptions | undefined) => ReturnType<import("@testing-library/dom").AllByBoundAttribute<T>>) & ((id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").MatcherOptions | undefined) => HTMLElement[]);
|
|
25523
|
+
findByDisplayValue: (<T extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/dom").waitForOptions | undefined) => ReturnType<import("@testing-library/dom").FindByBoundAttribute<T>>) & ((id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/dom").waitForOptions | undefined) => Promise<HTMLElement>);
|
|
25524
|
+
findAllByDisplayValue: (<T extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/dom").waitForOptions | undefined) => ReturnType<import("@testing-library/dom").FindAllByBoundAttribute<T>>) & ((id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/dom").waitForOptions | undefined) => Promise<HTMLElement[]>);
|
|
25525
|
+
getByRole: (<T extends HTMLElement = HTMLElement>(role: import("@testing-library/dom").ByRoleMatcher, options?: import("@testing-library/dom").ByRoleOptions | undefined) => ReturnType<import("@testing-library/dom").GetByRole<T>>) & ((role: import("@testing-library/dom").ByRoleMatcher, options?: import("@testing-library/dom").ByRoleOptions | undefined) => HTMLElement);
|
|
25526
|
+
getAllByRole: (<T extends HTMLElement = HTMLElement>(role: import("@testing-library/dom").ByRoleMatcher, options?: import("@testing-library/dom").ByRoleOptions | undefined) => ReturnType<import("@testing-library/dom").AllByRole<T>>) & ((role: import("@testing-library/dom").ByRoleMatcher, options?: import("@testing-library/dom").ByRoleOptions | undefined) => HTMLElement[]);
|
|
25527
|
+
queryByRole: (<T extends HTMLElement = HTMLElement>(role: import("@testing-library/dom").ByRoleMatcher, options?: import("@testing-library/dom").ByRoleOptions | undefined) => ReturnType<import("@testing-library/dom").QueryByRole<T>>) & ((role: import("@testing-library/dom").ByRoleMatcher, options?: import("@testing-library/dom").ByRoleOptions | undefined) => HTMLElement | null);
|
|
25528
|
+
queryAllByRole: (<T extends HTMLElement = HTMLElement>(role: import("@testing-library/dom").ByRoleMatcher, options?: import("@testing-library/dom").ByRoleOptions | undefined) => ReturnType<import("@testing-library/dom").AllByRole<T>>) & ((role: import("@testing-library/dom").ByRoleMatcher, options?: import("@testing-library/dom").ByRoleOptions | undefined) => HTMLElement[]);
|
|
25529
|
+
findByRole: (<T extends HTMLElement = HTMLElement>(role: import("@testing-library/dom").ByRoleMatcher, options?: import("@testing-library/dom").ByRoleOptions | undefined, waitForElementOptions?: import("@testing-library/dom").waitForOptions | undefined) => ReturnType<import("@testing-library/dom").FindByRole<T>>) & ((role: import("@testing-library/dom").ByRoleMatcher, options?: import("@testing-library/dom").ByRoleOptions | undefined, waitForElementOptions?: import("@testing-library/dom").waitForOptions | undefined) => Promise<HTMLElement>);
|
|
25530
|
+
findAllByRole: (<T extends HTMLElement = HTMLElement>(role: import("@testing-library/dom").ByRoleMatcher, options?: import("@testing-library/dom").ByRoleOptions | undefined, waitForElementOptions?: import("@testing-library/dom").waitForOptions | undefined) => ReturnType<import("@testing-library/dom").FindAllByRole<T>>) & ((role: import("@testing-library/dom").ByRoleMatcher, options?: import("@testing-library/dom").ByRoleOptions | undefined, waitForElementOptions?: import("@testing-library/dom").waitForOptions | undefined) => Promise<HTMLElement[]>);
|
|
25531
|
+
getByTestId: (<T extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").MatcherOptions | undefined) => ReturnType<import("@testing-library/dom").GetByBoundAttribute<T>>) & ((id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").MatcherOptions | undefined) => HTMLElement);
|
|
25532
|
+
getAllByTestId: (<T extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").MatcherOptions | undefined) => ReturnType<import("@testing-library/dom").AllByBoundAttribute<T>>) & ((id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").MatcherOptions | undefined) => HTMLElement[]);
|
|
25533
|
+
queryByTestId: (<T extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").MatcherOptions | undefined) => ReturnType<import("@testing-library/dom").QueryByBoundAttribute<T>>) & ((id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").MatcherOptions | undefined) => HTMLElement | null);
|
|
25534
|
+
queryAllByTestId: (<T extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").MatcherOptions | undefined) => ReturnType<import("@testing-library/dom").AllByBoundAttribute<T>>) & ((id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").MatcherOptions | undefined) => HTMLElement[]);
|
|
25535
|
+
findByTestId: (<T extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/dom").waitForOptions | undefined) => ReturnType<import("@testing-library/dom").FindByBoundAttribute<T>>) & ((id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/dom").waitForOptions | undefined) => Promise<HTMLElement>);
|
|
25536
|
+
findAllByTestId: (<T extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/dom").waitForOptions | undefined) => ReturnType<import("@testing-library/dom").FindAllByBoundAttribute<T>>) & ((id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/dom").waitForOptions | undefined) => Promise<HTMLElement[]>);
|
|
25323
25537
|
queryByTestSubject: (args_0: import("@testing-library/react").Matcher) => HTMLElement | null;
|
|
25324
25538
|
queryAllByTestSubject: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement[];
|
|
25325
25539
|
getByTestSubject: (args_0: import("@testing-library/react").Matcher) => HTMLElement;
|
|
@@ -31146,7 +31360,7 @@ declare module '@elastic/eui/.storybook/addons/code-snippet/constants' {
|
|
|
31146
31360
|
* Addon specific constants
|
|
31147
31361
|
*/
|
|
31148
31362
|
export const ADDON_ID = "storybook/code-snippet";
|
|
31149
|
-
export const PANEL_ID
|
|
31363
|
+
export const PANEL_ID = "storybook/code-snippet/panel";
|
|
31150
31364
|
export const EVENTS: {
|
|
31151
31365
|
SNIPPET_RENDERED: string;
|
|
31152
31366
|
SNIPPET_PANEL_OPENED: string;
|
|
@@ -31205,6 +31419,10 @@ declare module '@elastic/eui/src/themes/amsterdam/global_styling/functions/shado
|
|
|
31205
31419
|
declare module '@elastic/eui/src/themes/amsterdam/global_styling/functions' {
|
|
31206
31420
|
export * from '@elastic/eui/src/themes/amsterdam/global_styling/functions/shadows';
|
|
31207
31421
|
|
|
31422
|
+
}
|
|
31423
|
+
declare module '@elastic/eui/src/themes/amsterdam/global_styling/mixins/button' {
|
|
31424
|
+
export { type _EuiButtonColor, type _EuiButtonDisplay, type _EuiButtonOptions, BUTTON_COLORS, BUTTON_DISPLAYS, euiButtonColor, euiButtonFillColor, euiButtonEmptyColor, useEuiButtonColorCSS, useEuiButtonFocusCSS, euiButtonSizeMap, } from '@elastic/eui/src/global_styling/mixins/_button';
|
|
31425
|
+
|
|
31208
31426
|
}
|
|
31209
31427
|
declare module '@elastic/eui/src/themes/amsterdam/global_styling/mixins' {
|
|
31210
31428
|
export * from '@elastic/eui/src/themes/amsterdam/global_styling/mixins/button';
|