@elastic/eui 102.0.0 → 102.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/components/accessibility/skip_link/skip_link.js +7 -0
- package/es/components/button/button.js +7 -0
- package/es/components/button/button_empty/button_empty.js +7 -0
- package/es/components/button/button_group/button_group.js +5 -0
- package/es/components/button/button_icon/button_icon.js +7 -0
- 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 +7 -0
- 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 +10 -1
- 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/table/table_header_cell.js +30 -12
- package/es/components/tool_tip/tool_tip.js +4 -1
- package/es/global_styling/mixins/_button.js +13 -3
- package/es/global_styling/mixins/_color.js +9 -2
- package/es/test/index.d.ts +2 -1
- package/eui.d.ts +828 -639
- package/lib/components/accessibility/skip_link/skip_link.js +7 -0
- package/lib/components/button/button.js +7 -0
- package/lib/components/button/button_empty/button_empty.js +7 -0
- package/lib/components/button/button_group/button_group.js +5 -0
- package/lib/components/button/button_icon/button_icon.js +7 -0
- 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 +7 -0
- 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 +10 -1
- 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/table/table_header_cell.js +28 -10
- package/lib/components/tool_tip/tool_tip.js +4 -1
- package/lib/global_styling/mixins/_button.js +13 -4
- package/lib/global_styling/mixins/_color.js +11 -4
- package/lib/test/index.d.ts +2 -1
- 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/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 +8 -3
- package/optimize/es/global_styling/mixins/_color.js +4 -2
- package/optimize/es/test/index.d.ts +2 -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/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 +8 -4
- package/optimize/lib/global_styling/mixins/_color.js +4 -2
- package/optimize/lib/test/index.d.ts +2 -1
- package/package.json +2 -2
- package/test-env/components/accessibility/skip_link/skip_link.js +7 -0
- package/test-env/components/button/button.js +7 -0
- package/test-env/components/button/button_empty/button_empty.js +7 -0
- package/test-env/components/button/button_group/button_group.js +5 -0
- package/test-env/components/button/button_icon/button_icon.js +7 -0
- 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 +7 -0
- 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 +10 -1
- 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/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 +8 -4
- package/test-env/global_styling/mixins/_color.js +4 -2
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,11 +733,99 @@ 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
|
|
|
736
|
+
}
|
|
737
|
+
declare module '@elastic/eui/src/global_styling/mixins/_button' {
|
|
738
|
+
import { type SerializedStyles } from '@emotion/react';
|
|
739
|
+
import { UseEuiTheme } from '@elastic/eui/src/services';
|
|
740
|
+
/** Tentative usage; these exist only to be used as button directly when used within other components */
|
|
741
|
+
export const SEVERITY_COLORS: readonly ["neutral", "risk"];
|
|
742
|
+
export const BUTTON_COLORS: readonly ["text", "accent", "accentSecondary", "primary", "success", "warning", "danger"];
|
|
743
|
+
export const EXTENDED_BUTTON_COLORS: readonly ["text", "accent", "accentSecondary", "primary", "success", "warning", "danger", "neutral", "risk"];
|
|
744
|
+
export type _EuiButtonColor = (typeof BUTTON_COLORS)[number];
|
|
745
|
+
export type _EuiExtendedButtonColor = (typeof EXTENDED_BUTTON_COLORS)[number];
|
|
746
|
+
export const BUTTON_DISPLAYS: readonly ["base", "fill", "empty"];
|
|
747
|
+
export type _EuiButtonDisplay = (typeof BUTTON_DISPLAYS)[number];
|
|
748
|
+
export interface _EuiButtonOptions {
|
|
749
|
+
display?: _EuiButtonDisplay;
|
|
750
|
+
}
|
|
751
|
+
/**
|
|
752
|
+
* Creates the `base` version of button styles with proper text contrast.
|
|
753
|
+
* @param euiThemeContext
|
|
754
|
+
* @param color One of the named button colors or 'disabled'
|
|
755
|
+
* @returns Style object `{ backgroundColor, color }`
|
|
756
|
+
*/
|
|
757
|
+
export const euiButtonColor: (euiThemeContext: UseEuiTheme, color: _EuiExtendedButtonColor | "disabled") => {
|
|
758
|
+
border: string;
|
|
759
|
+
color: string;
|
|
760
|
+
backgroundColor: string;
|
|
761
|
+
} | {
|
|
762
|
+
border?: undefined;
|
|
763
|
+
color: string;
|
|
764
|
+
backgroundColor: string;
|
|
765
|
+
};
|
|
766
|
+
/**
|
|
767
|
+
* Creates the `fill` version of buttons styles with proper text contrast.
|
|
768
|
+
* @param euiThemeContext
|
|
769
|
+
* @param color One of the named button colors or 'disabled'
|
|
770
|
+
* @returns Style object `{ backgroundColor, color }`
|
|
771
|
+
*/
|
|
772
|
+
export const euiButtonFillColor: (euiThemeContext: UseEuiTheme, color: _EuiExtendedButtonColor | "disabled") => {
|
|
773
|
+
border: string;
|
|
774
|
+
color: string;
|
|
775
|
+
backgroundColor: string;
|
|
776
|
+
} | {
|
|
777
|
+
border?: undefined;
|
|
778
|
+
color: string;
|
|
779
|
+
backgroundColor: string;
|
|
780
|
+
};
|
|
781
|
+
/**
|
|
782
|
+
* Creates the `empty` version of button styles using the text-variant and adding interactive styles.
|
|
783
|
+
* @param euiThemeContext
|
|
784
|
+
* @param color One of the named button colors or 'disabled'
|
|
785
|
+
* @returns Style object `{ backgroundColor, color }` where `background` is typically used for interactive states
|
|
786
|
+
*/
|
|
787
|
+
export const euiButtonEmptyColor: (euiThemeContext: UseEuiTheme, color: _EuiExtendedButtonColor | "disabled") => {
|
|
788
|
+
color: string;
|
|
789
|
+
backgroundColor: string;
|
|
790
|
+
};
|
|
791
|
+
/**
|
|
792
|
+
* Given the button display type, returns the Emotion based color keys.
|
|
793
|
+
* @param options Button display type
|
|
794
|
+
* @returns An object of `_EuiExtendedButtonColor` keys including `disabled`
|
|
795
|
+
*/
|
|
796
|
+
export const useEuiButtonColorCSS: (options?: _EuiButtonOptions) => Record<"text" | "primary" | "accent" | "accentSecondary" | "success" | "warning" | "danger" | "disabled" | "neutral" | "risk", SerializedStyles>;
|
|
797
|
+
/**
|
|
798
|
+
* Creates the translate animation when button is in focus.
|
|
799
|
+
* @returns string
|
|
800
|
+
*/
|
|
801
|
+
export const useEuiButtonFocusCSS: () => SerializedStyles;
|
|
802
|
+
/**
|
|
803
|
+
* Map of `size` props to various sizings/scales
|
|
804
|
+
* that should remain consistent across all buttons
|
|
805
|
+
*/
|
|
806
|
+
export const euiButtonSizeMap: ({ euiTheme }: UseEuiTheme) => {
|
|
807
|
+
xs: {
|
|
808
|
+
height: string;
|
|
809
|
+
radius: import("csstype").Property.BorderRadius<string | number> | undefined;
|
|
810
|
+
fontScale: "xs";
|
|
811
|
+
};
|
|
812
|
+
s: {
|
|
813
|
+
height: string;
|
|
814
|
+
radius: import("csstype").Property.BorderRadius<string | number> | undefined;
|
|
815
|
+
fontScale: "s";
|
|
816
|
+
};
|
|
817
|
+
m: {
|
|
818
|
+
height: string;
|
|
819
|
+
radius: import("csstype").Property.BorderRadius<string | number> | undefined;
|
|
820
|
+
fontScale: "s";
|
|
821
|
+
};
|
|
822
|
+
};
|
|
823
|
+
|
|
727
824
|
}
|
|
728
825
|
declare module '@elastic/eui/src/global_styling/mixins/_color' {
|
|
729
826
|
import { SerializedStyles } from '@emotion/react';
|
|
730
827
|
import { UseEuiTheme } from '@elastic/eui/src/services';
|
|
731
|
-
export const BACKGROUND_COLORS: readonly ["transparent", "plain", "subdued", "highlighted", "accent", "accentSecondary", "primary", "
|
|
828
|
+
export const BACKGROUND_COLORS: readonly ["transparent", "plain", "subdued", "highlighted", "accent", "accentSecondary", "primary", "success", "warning", "danger", "neutral", "risk"];
|
|
732
829
|
export type _EuiBackgroundColor = (typeof BACKGROUND_COLORS)[number];
|
|
733
830
|
export interface _EuiBackgroundColorOptions {
|
|
734
831
|
/**
|
|
@@ -811,7 +908,7 @@ declare module '@elastic/eui/src/global_styling/functions/logicals' {
|
|
|
811
908
|
horizontal: string;
|
|
812
909
|
vertical: string;
|
|
813
910
|
};
|
|
814
|
-
export const LOGICAL_SIDES: ("left" | "right" | "
|
|
911
|
+
export const LOGICAL_SIDES: ("left" | "right" | "bottom" | "top" | "horizontal" | "vertical")[];
|
|
815
912
|
export type LogicalSides = (typeof LOGICAL_SIDES)[number];
|
|
816
913
|
export const logicals: {
|
|
817
914
|
height: string;
|
|
@@ -870,7 +967,7 @@ declare module '@elastic/eui/src/global_styling/functions/logicals' {
|
|
|
870
967
|
"border-bottom-right-radius": string;
|
|
871
968
|
_shorthands: string[];
|
|
872
969
|
};
|
|
873
|
-
export const LOGICAL_PROPERTIES: ("left" | "right" | "width" | "
|
|
970
|
+
export const LOGICAL_PROPERTIES: ("left" | "right" | "width" | "bottom" | "height" | "top" | "horizontal" | "vertical" | "max-height" | "max-width" | "min-height" | "min-width" | "margin-left" | "margin-right" | "margin-top" | "margin-bottom" | "margin-horizontal" | "margin-vertical" | "padding-left" | "padding-right" | "padding-top" | "padding-bottom" | "padding-horizontal" | "padding-vertical" | "overflow-x" | "overflow-y" | "border-horizontal" | "border-horizontal-color" | "border-horizontal-width" | "border-horizontal-style" | "border-vertical" | "border-vertical-color" | "border-vertical-width" | "border-vertical-style" | "border-bottom" | "border-bottom-color" | "border-bottom-style" | "border-bottom-width" | "border-top" | "border-top-color" | "border-top-style" | "border-top-width" | "border-right" | "border-right-color" | "border-right-style" | "border-right-width" | "border-left" | "border-left-color" | "border-left-style" | "border-left-width" | "border-top-left-radius" | "border-top-right-radius" | "border-bottom-left-radius" | "border-bottom-right-radius")[];
|
|
874
971
|
export type LogicalProperties = (typeof LOGICAL_PROPERTIES)[number];
|
|
875
972
|
/**
|
|
876
973
|
*
|
|
@@ -1031,7 +1128,7 @@ declare module '@elastic/eui/src/global_styling/functions/typography' {
|
|
|
1031
1128
|
* this mixin will ensure that the sizing is dependent on the boldest
|
|
1032
1129
|
* weight so it doesn't shift sibling content.
|
|
1033
1130
|
*/
|
|
1034
|
-
export const euiTextShift: (fontWeight: keyof _EuiThemeFontWeights | undefined, attribute: string | undefined, euiTheme: UseEuiTheme[
|
|
1131
|
+
export const euiTextShift: (fontWeight: keyof _EuiThemeFontWeights | undefined, attribute: string | undefined, euiTheme: UseEuiTheme["euiTheme"]) => string;
|
|
1035
1132
|
|
|
1036
1133
|
}
|
|
1037
1134
|
declare module '@elastic/eui/src/global_styling/functions' {
|
|
@@ -1068,7 +1165,7 @@ declare module '@elastic/eui/src/global_styling/mixins/_helpers' {
|
|
|
1068
1165
|
corner?: CSSProperties['borderWidth'];
|
|
1069
1166
|
}
|
|
1070
1167
|
export const euiScrollBarStyles: ({ euiTheme: { colors, size } }: UseEuiTheme, { thumbColor: _thumbColor, trackColor, width, size: _size, corner: _corner, }?: EuiScrollBarStyles) => string;
|
|
1071
|
-
export const useEuiScrollBar: (options?: EuiScrollBarStyles
|
|
1168
|
+
export const useEuiScrollBar: (options?: EuiScrollBarStyles) => string;
|
|
1072
1169
|
/**
|
|
1073
1170
|
* 1. Focus rings shouldn't be visible on scrollable regions, but a11y requires them to be focusable.
|
|
1074
1171
|
* Browser's supporting `:focus-visible` will still show outline on keyboard focus only.
|
|
@@ -1093,7 +1190,7 @@ declare module '@elastic/eui/src/global_styling/mixins/_helpers' {
|
|
|
1093
1190
|
mask?: boolean;
|
|
1094
1191
|
}
|
|
1095
1192
|
export const euiOverflowScroll: (euiTheme: UseEuiTheme, { direction, mask }?: EuiScrollOverflowStyles) => string;
|
|
1096
|
-
export const useEuiOverflowScroll: (direction: EuiScrollOverflowStyles[
|
|
1193
|
+
export const useEuiOverflowScroll: (direction: EuiScrollOverflowStyles["direction"], mask?: EuiScrollOverflowStyles["mask"]) => string;
|
|
1097
1194
|
/**
|
|
1098
1195
|
* For quickly applying a full-height element whether using flex or not
|
|
1099
1196
|
*/
|
|
@@ -1104,6 +1201,7 @@ declare module '@elastic/eui/src/global_styling/mixins/_helpers' {
|
|
|
1104
1201
|
declare module '@elastic/eui/src/global_styling/mixins/_padding' {
|
|
1105
1202
|
import { SerializedStyles } from '@emotion/react';
|
|
1106
1203
|
import { UseEuiTheme } from '@elastic/eui/src/services/theme';
|
|
1204
|
+
import { LogicalSides } from '@elastic/eui/src/global_styling/functions';
|
|
1107
1205
|
export const PADDING_SIZES: readonly ["none", "xs", "s", "m", "l", "xl"];
|
|
1108
1206
|
export type EuiPaddingSize = (typeof PADDING_SIZES)[number];
|
|
1109
1207
|
/**
|
|
@@ -1111,7 +1209,7 @@ declare module '@elastic/eui/src/global_styling/mixins/_padding' {
|
|
|
1111
1209
|
*/
|
|
1112
1210
|
export const euiPaddingSize: ({ euiTheme }: UseEuiTheme, size: EuiPaddingSize) => string | null;
|
|
1113
1211
|
export const useEuiPaddingSize: (size: EuiPaddingSize) => string;
|
|
1114
|
-
export const useEuiPaddingCSS: (side?:
|
|
1212
|
+
export const useEuiPaddingCSS: (side?: LogicalSides) => Record<"s" | "xs" | "m" | "l" | "xl" | "none", SerializedStyles>;
|
|
1115
1213
|
|
|
1116
1214
|
}
|
|
1117
1215
|
declare module '@elastic/eui/src/global_styling/mixins/_states' {
|
|
@@ -1126,11 +1224,11 @@ declare module '@elastic/eui/src/global_styling/mixins/_states' {
|
|
|
1126
1224
|
* @param offset Accepts a specific measurement or 'inset', 'outset' or 'center' to adjust outline position
|
|
1127
1225
|
* @param color Accepts any CSS color
|
|
1128
1226
|
*/
|
|
1129
|
-
export const euiOutline: ({ euiTheme }: UseEuiTheme, offset?: _EuiFocusRingOffset, color?: CSSProperties[
|
|
1227
|
+
export const euiOutline: ({ euiTheme }: UseEuiTheme, offset?: _EuiFocusRingOffset, color?: CSSProperties["outlineColor"]) => string;
|
|
1130
1228
|
export const euiFocusRing: (euiThemeContext: UseEuiTheme, offset?: _EuiFocusRingOffset, options?: {
|
|
1131
|
-
color?: CSSProperties[
|
|
1132
|
-
}
|
|
1133
|
-
export const useEuiFocusRing: (offset?: _EuiFocusRingOffset, color?: CSSProperties[
|
|
1229
|
+
color?: CSSProperties["outlineColor"];
|
|
1230
|
+
}) => string;
|
|
1231
|
+
export const useEuiFocusRing: (offset?: _EuiFocusRingOffset, color?: CSSProperties["outlineColor"]) => string;
|
|
1134
1232
|
|
|
1135
1233
|
}
|
|
1136
1234
|
declare module '@elastic/eui/src/global_styling/mixins/_typography' {
|
|
@@ -1145,8 +1243,8 @@ declare module '@elastic/eui/src/global_styling/mixins/_typography' {
|
|
|
1145
1243
|
/**
|
|
1146
1244
|
* Returns font-size and line-height
|
|
1147
1245
|
*/
|
|
1148
|
-
export const euiFontSize: ({ euiTheme }: UseEuiTheme, scale: _EuiThemeFontScale, options?: _FontScaleOptions
|
|
1149
|
-
export const useEuiFontSize: (scale: _EuiThemeFontScale, options?: _FontScaleOptions
|
|
1246
|
+
export const euiFontSize: ({ euiTheme }: UseEuiTheme, scale: _EuiThemeFontScale, options?: _FontScaleOptions) => EuiThemeFontSize;
|
|
1247
|
+
export const useEuiFontSize: (scale: _EuiThemeFontScale, options?: _FontScaleOptions) => EuiThemeFontSize;
|
|
1150
1248
|
/**
|
|
1151
1249
|
* Force text to wrap on natural word breaks (e.g. spaces & hyphens)
|
|
1152
1250
|
* https://css-tricks.com/snippets/css/prevent-long-urls-from-breaking-out-of-container/
|
|
@@ -1155,7 +1253,7 @@ declare module '@elastic/eui/src/global_styling/mixins/_typography' {
|
|
|
1155
1253
|
/**
|
|
1156
1254
|
* Prevent text from wrapping onto multiple lines, and truncate with an ellipsis.
|
|
1157
1255
|
*/
|
|
1158
|
-
export const euiTextTruncate: (maxWidth?: CSSProperties[
|
|
1256
|
+
export const euiTextTruncate: (maxWidth?: CSSProperties["maxWidth"]) => string;
|
|
1159
1257
|
/**
|
|
1160
1258
|
* Fixed-width numbers for tabular data
|
|
1161
1259
|
*/
|
|
@@ -1239,90 +1337,6 @@ declare module '@elastic/eui/src/global_styling/mixins/_responsive' {
|
|
|
1239
1337
|
export const euiMaxBreakpoint: ({ euiTheme }: UseEuiTheme, size: _EuiThemeBreakpoint) => string;
|
|
1240
1338
|
export const useEuiMaxBreakpoint: (size: _EuiThemeBreakpoint) => string;
|
|
1241
1339
|
|
|
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
1340
|
}
|
|
1327
1341
|
declare module '@elastic/eui/src/global_styling/mixins/_shadow' {
|
|
1328
1342
|
import { euiShadowFlat, euiShadow, euiSlightShadowHover, euiShadowXSmall, euiShadowSmall, euiShadowMedium, euiShadowLarge, euiShadowXLarge, type _EuiThemeShadowSize, type EuiShadowOptions } from '@elastic/eui-theme-common';
|
|
@@ -1330,9 +1344,9 @@ declare module '@elastic/eui/src/global_styling/mixins/_shadow' {
|
|
|
1330
1344
|
export interface EuiShadowCustomColor {
|
|
1331
1345
|
color?: string;
|
|
1332
1346
|
}
|
|
1333
|
-
export const useEuiSlightShadowHover: (options?: EuiShadowOptions
|
|
1334
|
-
export const useEuiShadowFlat: (options?: EuiShadowOptions
|
|
1335
|
-
export const useEuiShadow: (size?: _EuiThemeShadowSize, options?: EuiShadowOptions
|
|
1347
|
+
export const useEuiSlightShadowHover: (options?: EuiShadowOptions) => string;
|
|
1348
|
+
export const useEuiShadowFlat: (options?: EuiShadowOptions) => string;
|
|
1349
|
+
export const useEuiShadow: (size?: _EuiThemeShadowSize, options?: EuiShadowOptions) => string;
|
|
1336
1350
|
|
|
1337
1351
|
}
|
|
1338
1352
|
declare module '@elastic/eui/src/global_styling/mixins' {
|
|
@@ -1423,7 +1437,7 @@ declare module '@elastic/eui/src/components/text/text_color' {
|
|
|
1423
1437
|
import type { SharedTextProps, CloneElement, EuiTextColors } from '@elastic/eui/src/components/text/types';
|
|
1424
1438
|
export const COLORS: readonly ["default", "subdued", "success", "accent", "accentSecondary", "danger", "warning", "ghost", "inherit"];
|
|
1425
1439
|
export type TextColor = (typeof COLORS)[number];
|
|
1426
|
-
export const _isNamedColor: (color: any) => color is
|
|
1440
|
+
export const _isNamedColor: (color: any) => color is TextColor;
|
|
1427
1441
|
export type EuiTextColorProps = SharedTextProps & CloneElement & EuiTextColors;
|
|
1428
1442
|
export const EuiTextColor: FunctionComponent<EuiTextColorProps>;
|
|
1429
1443
|
|
|
@@ -1523,13 +1537,17 @@ declare module '@elastic/eui/src/components/title/title.styles' {
|
|
|
1523
1537
|
import { CSSProperties } from 'react';
|
|
1524
1538
|
import { UseEuiTheme } from '@elastic/eui/src/services';
|
|
1525
1539
|
import { _FontScaleOptions } from '@elastic/eui/src/global_styling';
|
|
1526
|
-
import { EuiTitleSize } from '@elastic/eui/src/components/title/title';
|
|
1540
|
+
import { EuiTitleSize } from '@elastic/eui/src/components/title/title';
|
|
1541
|
+
/**
|
|
1542
|
+
* Mixin
|
|
1543
|
+
*/
|
|
1544
|
+
type EuiThemeTitle = {
|
|
1527
1545
|
fontSize: CSSProperties['fontSize'];
|
|
1528
1546
|
lineHeight: CSSProperties['lineHeight'];
|
|
1529
1547
|
fontWeight: CSSProperties['fontWeight'];
|
|
1530
1548
|
color: CSSProperties['color'];
|
|
1531
1549
|
};
|
|
1532
|
-
export const euiTitle: (euiThemeContext: UseEuiTheme, scale?: EuiTitleSize, options?: _FontScaleOptions
|
|
1550
|
+
export const euiTitle: (euiThemeContext: UseEuiTheme, scale?: EuiTitleSize, options?: _FontScaleOptions) => EuiThemeTitle;
|
|
1533
1551
|
/**
|
|
1534
1552
|
* Styles
|
|
1535
1553
|
*/
|
|
@@ -1593,7 +1611,7 @@ declare module '@elastic/eui/src/components/text/text.styles' {
|
|
|
1593
1611
|
/**
|
|
1594
1612
|
* Mixins
|
|
1595
1613
|
*/
|
|
1596
|
-
export const euiText: (euiTheme: UseEuiTheme[
|
|
1614
|
+
export const euiText: (euiTheme: UseEuiTheme["euiTheme"], inheritColor?: boolean) => {
|
|
1597
1615
|
color: string;
|
|
1598
1616
|
fontWeight: import("csstype").Property.FontWeight | undefined;
|
|
1599
1617
|
};
|
|
@@ -1676,9 +1694,9 @@ declare module '@elastic/eui/src/services/predicate/common_predicates' {
|
|
|
1676
1694
|
export const isUndefined: (value: any) => value is undefined;
|
|
1677
1695
|
export const isNull: (value: any) => value is null;
|
|
1678
1696
|
export const isNil: (value: any) => value is null | undefined;
|
|
1679
|
-
export const isMoment: (value: any) =>
|
|
1697
|
+
export const isMoment: (value: any) => value is moment.Moment;
|
|
1680
1698
|
export const isDate: (value: any) => value is Date;
|
|
1681
|
-
export const isDateLike: (value: any) => value is
|
|
1699
|
+
export const isDateLike: (value: any) => value is moment.Moment | Date;
|
|
1682
1700
|
|
|
1683
1701
|
}
|
|
1684
1702
|
declare module '@elastic/eui/src/services/predicate/lodash_predicates' {
|
|
@@ -1713,7 +1731,8 @@ declare module '@elastic/eui/src/components/i18n/i18n_util' {
|
|
|
1713
1731
|
declare module '@elastic/eui/src/components/i18n/i18n' {
|
|
1714
1732
|
import React, { ReactElement, ReactNode } from 'react';
|
|
1715
1733
|
import { ExclusiveUnion } from '@elastic/eui/src/components/common';
|
|
1716
|
-
import { Renderable } from '@elastic/eui/src/components/context/context';
|
|
1734
|
+
import { Renderable } from '@elastic/eui/src/components/context/context';
|
|
1735
|
+
type ResolvedType<T> = T extends (...args: any[]) => any ? ReturnType<T> : T;
|
|
1717
1736
|
interface I18nTokenShape<T, DEFAULT extends Renderable<T>> {
|
|
1718
1737
|
token: string;
|
|
1719
1738
|
default: DEFAULT;
|
|
@@ -1732,7 +1751,9 @@ declare module '@elastic/eui/src/components/i18n/i18n' {
|
|
|
1732
1751
|
children: (x: Array<T[number]>) => ReactNode;
|
|
1733
1752
|
values?: Record<string, ReactNode>;
|
|
1734
1753
|
}
|
|
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:
|
|
1754
|
+
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;
|
|
1755
|
+
type DefaultRenderType<T, K extends Renderable<T>> = K extends ReactNode ? K : K extends () => infer RetValue ? RetValue : never;
|
|
1756
|
+
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
1757
|
export { EuiI18n, useEuiI18n };
|
|
1737
1758
|
|
|
1738
1759
|
}
|
|
@@ -1811,7 +1832,7 @@ declare module '@elastic/eui/src/components/observer/resize_observer/resize_obse
|
|
|
1811
1832
|
onResize: ResizeObserverCallback;
|
|
1812
1833
|
beginObserve: () => void;
|
|
1813
1834
|
}
|
|
1814
|
-
export const useResizeObserver: (container: Element | null, dimension?: "width" | "height"
|
|
1835
|
+
export const useResizeObserver: (container: Element | null, dimension?: "width" | "height") => {
|
|
1815
1836
|
width: number;
|
|
1816
1837
|
height: number;
|
|
1817
1838
|
};
|
|
@@ -1828,7 +1849,8 @@ declare module '@elastic/eui/src/components/portal/portal' {
|
|
|
1828
1849
|
* into portals.
|
|
1829
1850
|
*/
|
|
1830
1851
|
import React, { FunctionComponent, Component, ContextType, ReactNode } from 'react';
|
|
1831
|
-
import { EuiNestedThemeContext } from '@elastic/eui/src/services'; const INSERT_POSITIONS: readonly ["after", "before"];
|
|
1852
|
+
import { EuiNestedThemeContext } from '@elastic/eui/src/services'; const INSERT_POSITIONS: readonly ["after", "before"];
|
|
1853
|
+
type EuiPortalInsertPosition = (typeof INSERT_POSITIONS)[number];
|
|
1832
1854
|
export interface EuiPortalProps {
|
|
1833
1855
|
/**
|
|
1834
1856
|
* ReactNode to render as this component's content
|
|
@@ -1876,7 +1898,7 @@ declare module '@elastic/eui/src/components/table/mobile/responsive_context' {
|
|
|
1876
1898
|
* Used by parent/top-level table components to determine isResponsive state
|
|
1877
1899
|
* based on the passed breakpoint
|
|
1878
1900
|
*/
|
|
1879
|
-
export const useIsEuiTableResponsive: (componentProp?:
|
|
1901
|
+
export const useIsEuiTableResponsive: (componentProp?: EuiBreakpointSize | boolean) => boolean;
|
|
1880
1902
|
/**
|
|
1881
1903
|
* Context set by parent table components
|
|
1882
1904
|
* Hook used by cells to fetch parent isResponsive state
|
|
@@ -1968,7 +1990,7 @@ declare module '@elastic/eui/src/components/table/table_footer' {
|
|
|
1968
1990
|
declare module '@elastic/eui/src/components/table/utils' {
|
|
1969
1991
|
import { CSSProperties } from 'react';
|
|
1970
1992
|
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
|
|
1993
|
+
export const resolveWidthAsStyle: (style?: CSSProperties, width?: string | number) => CSSProperties;
|
|
1972
1994
|
|
|
1973
1995
|
}
|
|
1974
1996
|
declare module '@elastic/eui/src/services/canvas/canvas_text_utils' {
|
|
@@ -2006,7 +2028,8 @@ declare module '@elastic/eui/src/services/canvas' {
|
|
|
2006
2028
|
|
|
2007
2029
|
}
|
|
2008
2030
|
declare module '@elastic/eui/src/components/text_truncate/utils' {
|
|
2009
|
-
import { CanvasTextParams, CanvasTextUtils } from '@elastic/eui/src/services/canvas';
|
|
2031
|
+
import { CanvasTextParams, CanvasTextUtils } from '@elastic/eui/src/services/canvas';
|
|
2032
|
+
type TruncationParams = CanvasTextParams & {
|
|
2010
2033
|
fullText: string;
|
|
2011
2034
|
ellipsis: string;
|
|
2012
2035
|
availableWidth: number;
|
|
@@ -2035,7 +2058,7 @@ declare module '@elastic/eui/src/components/text_truncate/utils' {
|
|
|
2035
2058
|
*/
|
|
2036
2059
|
widthRatio: number;
|
|
2037
2060
|
setTextWidthRatio: (text?: string, textToOffset?: string) => void;
|
|
2038
|
-
getTextFromRatio: (text: string, type:
|
|
2061
|
+
getTextFromRatio: (text: string, type: "start" | "end") => string;
|
|
2039
2062
|
/**
|
|
2040
2063
|
* Early return checks
|
|
2041
2064
|
*/
|
|
@@ -2045,8 +2068,8 @@ declare module '@elastic/eui/src/components/text_truncate/utils' {
|
|
|
2045
2068
|
/**
|
|
2046
2069
|
* Truncation types logic. This is where the magic happens
|
|
2047
2070
|
*/
|
|
2048
|
-
truncateStart: (truncationOffset?: number
|
|
2049
|
-
truncateEnd: (truncationOffset?: number
|
|
2071
|
+
truncateStart: (truncationOffset?: number) => string;
|
|
2072
|
+
truncateEnd: (truncationOffset?: number) => string;
|
|
2050
2073
|
truncateStartEndAtPosition: (truncationPosition: number) => string;
|
|
2051
2074
|
truncateStartEndAtMiddle: () => string;
|
|
2052
2075
|
truncateMiddle: () => string;
|
|
@@ -2291,7 +2314,8 @@ declare module '@elastic/eui/src/components/table/table_row_cell' {
|
|
|
2291
2314
|
* Used by EuiBasicTable to render hidden copy markers
|
|
2292
2315
|
*/
|
|
2293
2316
|
append?: ReactNode;
|
|
2294
|
-
}
|
|
2317
|
+
}
|
|
2318
|
+
type Props = CommonProps & Omit<TdHTMLAttributes<HTMLTableCellElement>, 'valign'> & EuiTableRowCellProps;
|
|
2295
2319
|
export const EuiTableRowCell: FunctionComponent<Props>;
|
|
2296
2320
|
export {};
|
|
2297
2321
|
|
|
@@ -2954,7 +2978,7 @@ declare module '@elastic/eui/src/components/icon/icon' {
|
|
|
2954
2978
|
import { WithEuiStylesMemoizerProps } from '@elastic/eui/src/services';
|
|
2955
2979
|
export { COLORS } from '@elastic/eui/src/components/icon/named_colors';
|
|
2956
2980
|
import { NamedColor } from '@elastic/eui/src/components/icon/named_colors';
|
|
2957
|
-
export const TYPES: ("string" | "number" | "function" | "
|
|
2981
|
+
export const TYPES: ("string" | "number" | "function" | "article" | "code" | "link" | "menu" | "search" | "section" | "filter" | "image" | "stop" | "at" | "key" | "error" | "warning" | "scale" | "color" | "push" | "copy" | "cut" | "pause" | "play" | "offline" | "online" | "storage" | "temperature" | "empty" | "wordWrap" | "grid" | "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" | "refresh" | "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
2982
|
export type EuiIconType = keyof typeof typeToPathMap;
|
|
2959
2983
|
export type IconType = EuiIconType | string | ComponentType;
|
|
2960
2984
|
export type IconColor = string | NamedColor;
|
|
@@ -2997,9 +3021,9 @@ declare module '@elastic/eui/src/components/icon/icon' {
|
|
|
2997
3021
|
isLoading: boolean;
|
|
2998
3022
|
neededLoading: boolean;
|
|
2999
3023
|
}
|
|
3000
|
-
export const clearIconComponentCache: (iconType?:
|
|
3024
|
+
export const clearIconComponentCache: (iconType?: EuiIconType) => void;
|
|
3001
3025
|
export const appendIconComponentCache: (iconTypeToIconComponentMap: {
|
|
3002
|
-
[iconType: string]:
|
|
3026
|
+
[iconType: string]: ComponentType;
|
|
3003
3027
|
}) => void;
|
|
3004
3028
|
export class EuiIconClass extends PureComponent<EuiIconProps & WithEuiStylesMemoizerProps, State> {
|
|
3005
3029
|
isMounted: boolean;
|
|
@@ -3020,7 +3044,8 @@ declare module '@elastic/eui/src/components/icon' {
|
|
|
3020
3044
|
|
|
3021
3045
|
}
|
|
3022
3046
|
declare module '@elastic/eui/src/components/inner_text/inner_text' {
|
|
3023
|
-
import { FunctionComponent, ReactElement } from 'react';
|
|
3047
|
+
import { FunctionComponent, ReactElement } from 'react';
|
|
3048
|
+
type RefT = HTMLElement | Element | undefined | null;
|
|
3024
3049
|
export function useInnerText(innerTextFallback?: string): [(node: RefT) => void, string | undefined];
|
|
3025
3050
|
export interface EuiInnerTextProps {
|
|
3026
3051
|
/**
|
|
@@ -3251,9 +3276,9 @@ declare module '@elastic/eui/src/services/popover' {
|
|
|
3251
3276
|
declare module '@elastic/eui/src/components/panel/panel.styles' {
|
|
3252
3277
|
import { UseEuiTheme } from '@elastic/eui/src/services';
|
|
3253
3278
|
export const euiPanelBorderStyles: (euiThemeContext: UseEuiTheme, options?: {
|
|
3254
|
-
borderColor?: string
|
|
3255
|
-
hasFloatingBorder?: boolean
|
|
3256
|
-
}
|
|
3279
|
+
borderColor?: string;
|
|
3280
|
+
hasFloatingBorder?: boolean;
|
|
3281
|
+
}) => string;
|
|
3257
3282
|
export const euiPanelStyles: (euiThemeContext: UseEuiTheme) => {
|
|
3258
3283
|
euiPanel: import("@emotion/react").SerializedStyles;
|
|
3259
3284
|
grow: import("@emotion/react").SerializedStyles;
|
|
@@ -3269,8 +3294,8 @@ declare module '@elastic/eui/src/components/panel/panel.styles' {
|
|
|
3269
3294
|
}
|
|
3270
3295
|
declare module '@elastic/eui/src/components/tool_tip/tool_tip.styles' {
|
|
3271
3296
|
import { UseEuiTheme } from '@elastic/eui/src/services';
|
|
3272
|
-
export const euiToolTipBackgroundColor: (euiTheme: UseEuiTheme[
|
|
3273
|
-
export const euiToolTipBorderColor: (euiTheme: UseEuiTheme[
|
|
3297
|
+
export const euiToolTipBackgroundColor: (euiTheme: UseEuiTheme["euiTheme"]) => string;
|
|
3298
|
+
export const euiToolTipBorderColor: (euiTheme: UseEuiTheme["euiTheme"]) => string;
|
|
3274
3299
|
export const euiToolTipStyles: (euiThemeContext: UseEuiTheme) => {
|
|
3275
3300
|
euiToolTip: import("@emotion/react").SerializedStyles;
|
|
3276
3301
|
s: import("@emotion/react").SerializedStyles;
|
|
@@ -3297,7 +3322,8 @@ declare module '@elastic/eui/src/components/tool_tip/tool_tip.styles' {
|
|
|
3297
3322
|
declare module '@elastic/eui/src/components/tool_tip/tool_tip_popover' {
|
|
3298
3323
|
import { HTMLAttributes, FunctionComponent, ReactNode } from 'react';
|
|
3299
3324
|
import { CommonProps } from '@elastic/eui/src/components/common';
|
|
3300
|
-
export type ToolTipPositions = 'top' | 'right' | 'bottom' | 'left';
|
|
3325
|
+
export type ToolTipPositions = 'top' | 'right' | 'bottom' | 'left';
|
|
3326
|
+
type Props = CommonProps & Omit<HTMLAttributes<HTMLDivElement>, 'title'> & {
|
|
3301
3327
|
positionToolTip: () => void;
|
|
3302
3328
|
children?: ReactNode;
|
|
3303
3329
|
title?: ReactNode;
|
|
@@ -3741,14 +3767,14 @@ declare module '@elastic/eui/src/components/button/button_display/_button_displa
|
|
|
3741
3767
|
* any element as a button.
|
|
3742
3768
|
*/
|
|
3743
3769
|
export const EuiButtonDisplay: React.ForwardRefExoticComponent<((import ("@elastic/eui/src/components/common").DisambiguateSet<EuiButtonDisplayPropsForAnchor, EuiButtonDisplayPropsForButton> & EuiButtonDisplayCommonProps & {
|
|
3744
|
-
onClick?: React.MouseEventHandler<HTMLButtonElement
|
|
3770
|
+
onClick?: React.MouseEventHandler<HTMLButtonElement>;
|
|
3745
3771
|
} & React.ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
3746
|
-
buttonRef?:
|
|
3772
|
+
buttonRef?: Ref<HTMLButtonElement>;
|
|
3747
3773
|
}) | (import ("@elastic/eui/src/components/common").DisambiguateSet<EuiButtonDisplayPropsForButton, EuiButtonDisplayPropsForAnchor> & EuiButtonDisplayCommonProps & {
|
|
3748
|
-
href?: string
|
|
3749
|
-
onClick?: React.MouseEventHandler<HTMLAnchorElement
|
|
3774
|
+
href?: string;
|
|
3775
|
+
onClick?: React.MouseEventHandler<HTMLAnchorElement>;
|
|
3750
3776
|
} & React.AnchorHTMLAttributes<HTMLAnchorElement> & {
|
|
3751
|
-
buttonRef?:
|
|
3777
|
+
buttonRef?: Ref<HTMLAnchorElement>;
|
|
3752
3778
|
})) & React.RefAttributes<HTMLElement>>;
|
|
3753
3779
|
export {};
|
|
3754
3780
|
|
|
@@ -3756,10 +3782,10 @@ declare module '@elastic/eui/src/components/button/button_display/_button_displa
|
|
|
3756
3782
|
declare module '@elastic/eui/src/components/button/button' {
|
|
3757
3783
|
import { FunctionComponent, Ref, ReactNode } from 'react';
|
|
3758
3784
|
import { CommonProps, ExclusiveUnion, PropsForAnchor, PropsForButton } from '@elastic/eui/src/components/common';
|
|
3759
|
-
import {
|
|
3785
|
+
import { _EuiExtendedButtonColor } from '@elastic/eui/src/global_styling/mixins/_button';
|
|
3760
3786
|
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 =
|
|
3787
|
+
export const COLORS: readonly ["text", "accent", "accentSecondary", "primary", "success", "warning", "danger"];
|
|
3788
|
+
export type EuiButtonColor = _EuiExtendedButtonColor;
|
|
3763
3789
|
export const SIZES: readonly ["s", "m"];
|
|
3764
3790
|
export type EuiButtonSize = (typeof SIZES)[number];
|
|
3765
3791
|
interface BaseProps {
|
|
@@ -3770,6 +3796,13 @@ declare module '@elastic/eui/src/components/button/button' {
|
|
|
3770
3796
|
fill?: boolean;
|
|
3771
3797
|
/**
|
|
3772
3798
|
* Any of the named color palette options.
|
|
3799
|
+
*
|
|
3800
|
+
* Do not use the following colors for standalone buttons directly,
|
|
3801
|
+
* they exist to serve other components:
|
|
3802
|
+
* - accent
|
|
3803
|
+
* - warning
|
|
3804
|
+
* - neutral
|
|
3805
|
+
* - risk
|
|
3773
3806
|
*/
|
|
3774
3807
|
color?: EuiButtonColor;
|
|
3775
3808
|
/**
|
|
@@ -3817,7 +3850,7 @@ declare module '@elastic/eui/src/components/button/button_empty/button_empty' {
|
|
|
3817
3850
|
import { FunctionComponent, Ref, ButtonHTMLAttributes } from 'react';
|
|
3818
3851
|
import { CommonProps, ExclusiveUnion, PropsForAnchor, PropsForButton } from '@elastic/eui/src/components/common';
|
|
3819
3852
|
import { EuiButtonDisplayContentProps, EuiButtonDisplayContentType } from '@elastic/eui/src/components/button/button_display/_button_display_content';
|
|
3820
|
-
import {
|
|
3853
|
+
import { _EuiExtendedButtonColor } from '@elastic/eui/src/global_styling/mixins/_button';
|
|
3821
3854
|
export const SIZES: readonly ["xs", "s", "m"];
|
|
3822
3855
|
export type EuiButtonEmptySizes = (typeof SIZES)[number];
|
|
3823
3856
|
export const FLUSH_TYPES: readonly ["left", "right", "both"];
|
|
@@ -3829,8 +3862,15 @@ declare module '@elastic/eui/src/components/button/button_empty/button_empty' {
|
|
|
3829
3862
|
export interface CommonEuiButtonEmptyProps extends EuiButtonDisplayContentProps, CommonProps {
|
|
3830
3863
|
/**
|
|
3831
3864
|
* Any of the named color palette options.
|
|
3832
|
-
|
|
3833
|
-
|
|
3865
|
+
*
|
|
3866
|
+
* Do not use the following colors for standalone buttons directly,
|
|
3867
|
+
* they exist to serve other components:
|
|
3868
|
+
* - accent
|
|
3869
|
+
* - warning
|
|
3870
|
+
* - neutral
|
|
3871
|
+
* - risk
|
|
3872
|
+
*/
|
|
3873
|
+
color?: _EuiExtendedButtonColor;
|
|
3834
3874
|
size?: EuiButtonEmptySizes;
|
|
3835
3875
|
/**
|
|
3836
3876
|
* Ensure the text of the button sits flush to the left, right, or both sides of its container
|
|
@@ -3858,7 +3898,8 @@ declare module '@elastic/eui/src/components/button/button_empty/button_empty' {
|
|
|
3858
3898
|
* Object of props passed to the `<span>` wrapping the button's content
|
|
3859
3899
|
*/
|
|
3860
3900
|
contentProps?: CommonProps & EuiButtonDisplayContentType;
|
|
3861
|
-
}
|
|
3901
|
+
}
|
|
3902
|
+
type EuiButtonEmptyPropsForAnchor = PropsForAnchor<CommonEuiButtonEmptyProps>;
|
|
3862
3903
|
export type EuiButtonEmptyPropsForButton = PropsForButton<CommonEuiButtonEmptyProps>;
|
|
3863
3904
|
export type EuiButtonEmptyProps = ExclusiveUnion<EuiButtonEmptyPropsForAnchor, EuiButtonEmptyPropsForButton>;
|
|
3864
3905
|
export const EuiButtonEmpty: FunctionComponent<EuiButtonEmptyProps>;
|
|
@@ -3887,16 +3928,24 @@ declare module '@elastic/eui/src/components/button/button_icon/button_icon' {
|
|
|
3887
3928
|
import { AnchorHTMLAttributes, ButtonHTMLAttributes, FunctionComponent, Ref } from 'react';
|
|
3888
3929
|
import { CommonProps, ExclusiveUnion, PropsForAnchor, PropsForButton } from '@elastic/eui/src/components/common';
|
|
3889
3930
|
import { IconType, IconSize } from '@elastic/eui/src/components/icon';
|
|
3890
|
-
import {
|
|
3931
|
+
import { _EuiExtendedButtonColor } from '@elastic/eui/src/global_styling/mixins/_button';
|
|
3891
3932
|
export const SIZES: readonly ["xs", "s", "m"];
|
|
3892
3933
|
export type EuiButtonIconSizes = (typeof SIZES)[number];
|
|
3893
|
-
export const DISPLAYS: readonly ["base", "empty", "fill"];
|
|
3934
|
+
export const DISPLAYS: readonly ["base", "empty", "fill"];
|
|
3935
|
+
type EuiButtonIconDisplay = (typeof DISPLAYS)[number];
|
|
3894
3936
|
export interface EuiButtonIconProps extends CommonProps {
|
|
3895
3937
|
iconType: IconType;
|
|
3896
3938
|
/**
|
|
3897
3939
|
* Any of the named color palette options.
|
|
3898
|
-
|
|
3899
|
-
|
|
3940
|
+
*
|
|
3941
|
+
* Do not use the following colors for standalone buttons directly,
|
|
3942
|
+
* they exist to serve other components:
|
|
3943
|
+
* - accent
|
|
3944
|
+
* - warning
|
|
3945
|
+
* - neutral
|
|
3946
|
+
* - risk
|
|
3947
|
+
*/
|
|
3948
|
+
color?: _EuiExtendedButtonColor;
|
|
3900
3949
|
'aria-label'?: string;
|
|
3901
3950
|
'aria-labelledby'?: string;
|
|
3902
3951
|
isDisabled?: boolean;
|
|
@@ -3936,7 +3985,8 @@ declare module '@elastic/eui/src/components/button/button_icon/button_icon' {
|
|
|
3936
3985
|
type?: ButtonHTMLAttributes<HTMLButtonElement>['type'];
|
|
3937
3986
|
} & PropsForButton<EuiButtonIconProps, {
|
|
3938
3987
|
buttonRef?: Ref<HTMLButtonElement>;
|
|
3939
|
-
}>;
|
|
3988
|
+
}>;
|
|
3989
|
+
type Props = ExclusiveUnion<EuiButtonIconPropsForAnchor, EuiButtonIconPropsForButton>;
|
|
3940
3990
|
export const EuiButtonIcon: FunctionComponent<Props>;
|
|
3941
3991
|
export {};
|
|
3942
3992
|
|
|
@@ -3997,10 +4047,10 @@ declare module '@elastic/eui/src/components/form/form.styles' {
|
|
|
3997
4047
|
};
|
|
3998
4048
|
export const euiFormControlText: (euiThemeContext: UseEuiTheme) => string;
|
|
3999
4049
|
export const euiFormControlDefaultShadow: (euiThemeContext: UseEuiTheme, { withBorder, withBackground, withBackgroundColor, withBackgroundAnimation, }?: {
|
|
4000
|
-
withBorder?: boolean
|
|
4001
|
-
withBackground?: boolean
|
|
4002
|
-
withBackgroundColor?: boolean
|
|
4003
|
-
withBackgroundAnimation?: boolean
|
|
4050
|
+
withBorder?: boolean;
|
|
4051
|
+
withBackground?: boolean;
|
|
4052
|
+
withBackgroundColor?: boolean;
|
|
4053
|
+
withBackgroundAnimation?: boolean;
|
|
4004
4054
|
}) => string;
|
|
4005
4055
|
export const euiFormControlFocusStyles: (euiThemeContext: UseEuiTheme) => string;
|
|
4006
4056
|
export const euiFormControlInvalidStyles: (euiThemeContext: UseEuiTheme) => string;
|
|
@@ -4083,12 +4133,13 @@ declare module '@elastic/eui/src/components/button/button_group/button_group_but
|
|
|
4083
4133
|
euiButtonGroupButton__iconOnly: SerializedStyles;
|
|
4084
4134
|
};
|
|
4085
4135
|
};
|
|
4086
|
-
export const _compressedButtonFocusColors: (euiThemeContext: UseEuiTheme) => Record<"text" | "primary" | "accent" | "accentSecondary" | "success" | "warning" | "danger" | "disabled"
|
|
4136
|
+
export const _compressedButtonFocusColors: (euiThemeContext: UseEuiTheme) => Record<"text" | "primary" | "accent" | "accentSecondary" | "success" | "warning" | "danger" | "disabled", SerializedStyles>;
|
|
4087
4137
|
|
|
4088
4138
|
}
|
|
4089
4139
|
declare module '@elastic/eui/src/components/button/button_group/button_group_button' {
|
|
4090
4140
|
import { FunctionComponent, MouseEventHandler } from 'react';
|
|
4091
|
-
import { EuiButtonGroupOptionProps, EuiButtonGroupProps } from '@elastic/eui/src/components/button/button_group/button_group';
|
|
4141
|
+
import { EuiButtonGroupOptionProps, EuiButtonGroupProps } from '@elastic/eui/src/components/button/button_group/button_group';
|
|
4142
|
+
type Props = EuiButtonGroupOptionProps & {
|
|
4092
4143
|
/**
|
|
4093
4144
|
* Styles the selected button to look selected (usually with `fill`)
|
|
4094
4145
|
*/
|
|
@@ -4190,6 +4241,11 @@ declare module '@elastic/eui/src/components/button/button_group/button_group' {
|
|
|
4190
4241
|
legend: string;
|
|
4191
4242
|
/**
|
|
4192
4243
|
* Any of the named color palette options.
|
|
4244
|
+
*
|
|
4245
|
+
* Do not use the following colors for standalone buttons directly,
|
|
4246
|
+
* they exist to serve other components:
|
|
4247
|
+
* - accent
|
|
4248
|
+
* - warning
|
|
4193
4249
|
*/
|
|
4194
4250
|
color?: _EuiButtonColor;
|
|
4195
4251
|
/**
|
|
@@ -4240,7 +4296,8 @@ declare module '@elastic/eui/src/components/button/button_group/button_group' {
|
|
|
4240
4296
|
* @deprecated
|
|
4241
4297
|
*/
|
|
4242
4298
|
name?: never;
|
|
4243
|
-
});
|
|
4299
|
+
});
|
|
4300
|
+
type Props = Omit<HTMLAttributes<HTMLFieldSetElement>, 'onChange' | 'color'> & EuiButtonGroupProps;
|
|
4244
4301
|
export const EuiButtonGroup: FunctionComponent<Props>;
|
|
4245
4302
|
export {};
|
|
4246
4303
|
|
|
@@ -4357,7 +4414,8 @@ declare module '@elastic/eui/src/components/context_menu/context_menu_item' {
|
|
|
4357
4414
|
* Reduce the size to `s` when in need of a more compressed menu
|
|
4358
4415
|
*/
|
|
4359
4416
|
size?: (typeof SIZES)[number];
|
|
4360
|
-
}
|
|
4417
|
+
}
|
|
4418
|
+
type Props = CommonProps & Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'type' | 'onClick' | 'disabled'> & EuiContextMenuItemProps;
|
|
4361
4419
|
export const LAYOUT_ALIGN: EuiContextMenuItemLayoutAlignment[];
|
|
4362
4420
|
export const EuiContextMenuItem: FunctionComponent<Props>;
|
|
4363
4421
|
export {};
|
|
@@ -4421,7 +4479,8 @@ declare module '@elastic/eui/src/components/context_menu/context_menu_panel' {
|
|
|
4421
4479
|
* Alters the size of the items and the title
|
|
4422
4480
|
*/
|
|
4423
4481
|
size?: (typeof SIZES)[number];
|
|
4424
|
-
};
|
|
4482
|
+
};
|
|
4483
|
+
type Props = EuiContextMenuPanelProps;
|
|
4425
4484
|
interface State {
|
|
4426
4485
|
prevProps: {
|
|
4427
4486
|
items: Props['items'];
|
|
@@ -4441,7 +4500,7 @@ declare module '@elastic/eui/src/components/context_menu/context_menu_panel' {
|
|
|
4441
4500
|
private initialPopoverParent?;
|
|
4442
4501
|
constructor(props: WithEuiStylesMemoizerProps & Props);
|
|
4443
4502
|
findMenuItems: () => void;
|
|
4444
|
-
focusMenuItem: (direction:
|
|
4503
|
+
focusMenuItem: (direction: "up" | "down") => void;
|
|
4445
4504
|
onKeyDown: (event: React.KeyboardEvent<HTMLDivElement>) => void;
|
|
4446
4505
|
takeInitialFocus(): void;
|
|
4447
4506
|
reclaimPopoverFocus: () => void;
|
|
@@ -4547,7 +4606,7 @@ declare module '@elastic/eui/src/components/context_menu/context_menu' {
|
|
|
4547
4606
|
componentDidUpdate(prevProps: EuiContextMenuProps): void;
|
|
4548
4607
|
hasPreviousPanel: (panelId: EuiContextMenuPanelId) => boolean;
|
|
4549
4608
|
showPanel(panelId: EuiContextMenuPanelId, direction?: EuiContextMenuPanelTransitionDirection): void;
|
|
4550
|
-
showNextPanel: (itemIndex?: number
|
|
4609
|
+
showNextPanel: (itemIndex?: number) => void;
|
|
4551
4610
|
showPreviousPanel: () => void;
|
|
4552
4611
|
onIncomingPanelHeightChange: (height: number) => void;
|
|
4553
4612
|
onOutGoingPanelTransitionComplete: () => void;
|
|
@@ -4611,14 +4670,16 @@ declare module '@elastic/eui/src/components/flex/flex_group.styles' {
|
|
|
4611
4670
|
|
|
4612
4671
|
}
|
|
4613
4672
|
declare module '@elastic/eui/src/components/flex/flex_group' {
|
|
4614
|
-
import
|
|
4673
|
+
import { ComponentPropsWithoutRef, ElementType, PropsWithChildren, ReactElement, Ref } from 'react';
|
|
4615
4674
|
import { CommonProps } from '@elastic/eui/src/components/common';
|
|
4616
4675
|
export const GUTTER_SIZES: readonly ["none", "xs", "s", "m", "l", "xl"];
|
|
4617
4676
|
export type EuiFlexGroupGutterSize = (typeof GUTTER_SIZES)[number];
|
|
4618
4677
|
export const ALIGN_ITEMS: readonly ["stretch", "flexStart", "flexEnd", "center", "baseline"];
|
|
4619
4678
|
export type FlexGroupAlignItems = (typeof ALIGN_ITEMS)[number];
|
|
4620
|
-
export const JUSTIFY_CONTENTS: readonly ["flexStart", "flexEnd", "center", "spaceBetween", "spaceAround", "spaceEvenly"];
|
|
4621
|
-
|
|
4679
|
+
export const JUSTIFY_CONTENTS: readonly ["flexStart", "flexEnd", "center", "spaceBetween", "spaceAround", "spaceEvenly"];
|
|
4680
|
+
type FlexGroupJustifyContent = (typeof JUSTIFY_CONTENTS)[number];
|
|
4681
|
+
export const DIRECTIONS: readonly ["row", "rowReverse", "column", "columnReverse"];
|
|
4682
|
+
type FlexGroupDirection = (typeof DIRECTIONS)[number];
|
|
4622
4683
|
export type EuiFlexGroupProps<TComponent extends ElementType = 'div'> = PropsWithChildren & CommonProps & ComponentPropsWithoutRef<TComponent> & {
|
|
4623
4684
|
alignItems?: FlexGroupAlignItems;
|
|
4624
4685
|
/**
|
|
@@ -4640,32 +4701,10 @@ declare module '@elastic/eui/src/components/flex/flex_group' {
|
|
|
4640
4701
|
responsive?: boolean;
|
|
4641
4702
|
wrap?: boolean;
|
|
4642
4703
|
};
|
|
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;
|
|
4704
|
+
export const EuiFlexGroup: (<TComponent extends ElementType = "div", TComponentRef = ReactElement<any, TComponent>>(props: EuiFlexGroupProps<TComponent> & {
|
|
4705
|
+
ref?: Ref<TComponentRef>;
|
|
4667
4706
|
}) => ReactElement) & {
|
|
4668
|
-
displayName?: string
|
|
4707
|
+
displayName?: string;
|
|
4669
4708
|
};
|
|
4670
4709
|
export {};
|
|
4671
4710
|
|
|
@@ -4767,7 +4806,7 @@ declare module '@elastic/eui/src/components/flex/flex_item.styles' {
|
|
|
4767
4806
|
|
|
4768
4807
|
}
|
|
4769
4808
|
declare module '@elastic/eui/src/components/flex/flex_item' {
|
|
4770
|
-
import
|
|
4809
|
+
import { ElementType, ComponentPropsWithoutRef, PropsWithChildren, Ref, ReactElement } from 'react';
|
|
4771
4810
|
import { CommonProps } from '@elastic/eui/src/components/common';
|
|
4772
4811
|
export type EuiFlexItemProps<TComponent extends ElementType = 'div'> = PropsWithChildren & CommonProps & ComponentPropsWithoutRef<TComponent> & {
|
|
4773
4812
|
grow?: boolean | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | null;
|
|
@@ -4790,32 +4829,10 @@ declare module '@elastic/eui/src/components/flex/flex_item' {
|
|
|
4790
4829
|
*/
|
|
4791
4830
|
component?: TComponent;
|
|
4792
4831
|
};
|
|
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;
|
|
4832
|
+
export const EuiFlexItem: (<TComponent extends ElementType, TComponentRef = ReactElement<any, TComponent>>(props: EuiFlexItemProps<TComponent> & {
|
|
4833
|
+
ref?: Ref<TComponentRef>;
|
|
4817
4834
|
}) => ReactElement) & {
|
|
4818
|
-
displayName?: string
|
|
4835
|
+
displayName?: string;
|
|
4819
4836
|
};
|
|
4820
4837
|
|
|
4821
4838
|
}
|
|
@@ -4844,7 +4861,10 @@ declare module '@elastic/eui/src/components/pagination/pagination_button' {
|
|
|
4844
4861
|
isActive?: boolean;
|
|
4845
4862
|
pageIndex: number;
|
|
4846
4863
|
totalPages?: number;
|
|
4847
|
-
};
|
|
4864
|
+
};
|
|
4865
|
+
type EuiPaginationButtonPropsForAnchor = PropsForAnchor<EuiPaginationButtonProps>;
|
|
4866
|
+
type EuiPaginationButtonPropsForButton = PropsForButton<EuiPaginationButtonProps>;
|
|
4867
|
+
type Props = ExclusiveUnion<EuiPaginationButtonPropsForAnchor, EuiPaginationButtonPropsForButton>;
|
|
4848
4868
|
export const EuiPaginationButton: FunctionComponent<Props>;
|
|
4849
4869
|
export {};
|
|
4850
4870
|
|
|
@@ -4907,7 +4927,8 @@ declare module '@elastic/eui/src/components/pagination/pagination' {
|
|
|
4907
4927
|
* Remove completely with `false` or provide your own list of responsive breakpoints.
|
|
4908
4928
|
*/
|
|
4909
4929
|
responsive?: false | EuiBreakpointSize[];
|
|
4910
|
-
}
|
|
4930
|
+
}
|
|
4931
|
+
type Props = CommonProps & HTMLAttributes<HTMLDivElement> & EuiPaginationProps;
|
|
4911
4932
|
export const EuiPagination: FunctionComponent<Props>;
|
|
4912
4933
|
export {};
|
|
4913
4934
|
|
|
@@ -5030,7 +5051,10 @@ declare module '@elastic/eui/src/components/basic_table/action_types' {
|
|
|
5030
5051
|
import { EuiIconType } from '@elastic/eui/src/components/icon/icon';
|
|
5031
5052
|
import { EuiButtonIconProps } from '@elastic/eui/src/components/button/button_icon/button_icon';
|
|
5032
5053
|
import { EuiButtonEmptyProps } from '@elastic/eui/src/components/button/button_empty';
|
|
5033
|
-
import { ExclusiveUnion } from '@elastic/eui/src/components/common';
|
|
5054
|
+
import { ExclusiveUnion } from '@elastic/eui/src/components/common';
|
|
5055
|
+
type IconFunction<T extends object> = (item: T) => EuiIconType;
|
|
5056
|
+
type ButtonColor = EuiButtonIconProps['color'] | EuiButtonEmptyProps['color'];
|
|
5057
|
+
type EuiButtonIconColorFunction<T> = (item: T) => ButtonColor;
|
|
5034
5058
|
export interface DefaultItemActionBase<T extends object> {
|
|
5035
5059
|
/**
|
|
5036
5060
|
* The display name of the action (will render as visible text if rendered within a collapsed menu)
|
|
@@ -5106,7 +5130,7 @@ declare module '@elastic/eui/src/components/basic_table/action_types' {
|
|
|
5106
5130
|
enabled?: (item: T) => boolean;
|
|
5107
5131
|
} & Pick<DefaultItemActionBase<{}>, 'isPrimary' | 'showOnHover'>;
|
|
5108
5132
|
export type Action<T extends object> = DefaultItemAction<T> | CustomItemAction<T>;
|
|
5109
|
-
export const isCustomItemAction: <T extends object>(action:
|
|
5133
|
+
export const isCustomItemAction: <T extends object>(action: DefaultItemAction<T> | CustomItemAction<T>) => action is CustomItemAction<T>;
|
|
5110
5134
|
export const callWithItemIfFunction: <T>(item: T) => <U>(prop: U | ((item: T) => U)) => U;
|
|
5111
5135
|
export {};
|
|
5112
5136
|
|
|
@@ -5117,7 +5141,7 @@ declare module '@elastic/eui/src/services/sort/sort_direction' {
|
|
|
5117
5141
|
export const SortDirection: Readonly<{
|
|
5118
5142
|
ASC: "asc";
|
|
5119
5143
|
DESC: "desc";
|
|
5120
|
-
isAsc(direction: Direction):
|
|
5144
|
+
isAsc(direction: Direction): direction is "asc";
|
|
5121
5145
|
reverse(direction: Direction): "desc" | "asc";
|
|
5122
5146
|
}>;
|
|
5123
5147
|
export const SortDirectionType: PropTypes.Requireable<"desc" | "asc">;
|
|
@@ -5130,12 +5154,13 @@ declare module '@elastic/eui/src/services/objects' {
|
|
|
5130
5154
|
|
|
5131
5155
|
}
|
|
5132
5156
|
declare module '@elastic/eui/src/services/sort/comparators' {
|
|
5133
|
-
export type Primitive = string | boolean | number | null | undefined;
|
|
5157
|
+
export type Primitive = string | boolean | number | null | undefined;
|
|
5158
|
+
type Comparator<T = Primitive> = (a: T, b: T) => number;
|
|
5134
5159
|
export const Comparators: Readonly<{
|
|
5135
|
-
default: (direction?:
|
|
5160
|
+
default: (direction?: "asc" | "desc") => (v1: Primitive, v2: Primitive) => number;
|
|
5136
5161
|
reverse: <T>(comparator: Comparator<T>) => Comparator<T>;
|
|
5137
|
-
value<
|
|
5138
|
-
property<
|
|
5162
|
+
value<T>(valueCallback: (value: T) => Primitive, comparator?: Comparator): Comparator<T>;
|
|
5163
|
+
property<T extends object>(prop: string, comparator?: Comparator): Comparator<T>;
|
|
5139
5164
|
}>;
|
|
5140
5165
|
export {};
|
|
5141
5166
|
|
|
@@ -5520,7 +5545,8 @@ declare module '@elastic/eui/src/components/table/table_row' {
|
|
|
5520
5545
|
*/
|
|
5521
5546
|
isExpandedRow?: boolean;
|
|
5522
5547
|
onClick?: MouseEventHandler<HTMLTableRowElement> & KeyboardEventHandler<HTMLTableRowElement>;
|
|
5523
|
-
}
|
|
5548
|
+
}
|
|
5549
|
+
type Props = CommonProps & HTMLAttributes<HTMLTableRowElement> & EuiTableRowProps;
|
|
5524
5550
|
export const EuiTableRow: FunctionComponent<Props>;
|
|
5525
5551
|
export {};
|
|
5526
5552
|
|
|
@@ -5687,7 +5713,7 @@ declare module '@elastic/eui/src/components/observer/mutation_observer/mutation_
|
|
|
5687
5713
|
onMutation: MutationCallback;
|
|
5688
5714
|
beginObserve: () => void;
|
|
5689
5715
|
}
|
|
5690
|
-
export const useMutationObserver: (container: Element | null, callback: MutationCallback, observerOptions?: MutationObserverInit
|
|
5716
|
+
export const useMutationObserver: (container: Element | null, callback: MutationCallback, observerOptions?: MutationObserverInit) => void;
|
|
5691
5717
|
|
|
5692
5718
|
}
|
|
5693
5719
|
declare module '@elastic/eui/src/components/observer/mutation_observer' {
|
|
@@ -5773,7 +5799,7 @@ declare module '@elastic/eui/src/components/panel/panel' {
|
|
|
5773
5799
|
export type PanelPaddingSize = (typeof _SIZES)[number];
|
|
5774
5800
|
export const BORDER_RADII: readonly ["none", "m"];
|
|
5775
5801
|
export type PanelBorderRadius = (typeof BORDER_RADII)[number];
|
|
5776
|
-
export const COLORS: readonly ["transparent", "plain", "subdued", "highlighted", "accent", "accentSecondary", "primary", "
|
|
5802
|
+
export const COLORS: readonly ["transparent", "plain", "subdued", "highlighted", "accent", "accentSecondary", "primary", "success", "warning", "danger", "neutral", "risk"];
|
|
5777
5803
|
export type PanelColor = _EuiBackgroundColor | 'highlighted';
|
|
5778
5804
|
export interface _EuiPanelProps extends CommonProps {
|
|
5779
5805
|
/**
|
|
@@ -5813,7 +5839,7 @@ declare module '@elastic/eui/src/components/panel/panel' {
|
|
|
5813
5839
|
}
|
|
5814
5840
|
export type EuiPanelProps = ExclusiveUnion<_EuiPanelButtonlike, _EuiPanelDivlike>;
|
|
5815
5841
|
export const EuiPanel: FunctionComponent<EuiPanelProps>;
|
|
5816
|
-
export const _canRenderHighContrastBorder: ({ color, hasBorder, }: Pick<_EuiPanelProps,
|
|
5842
|
+
export const _canRenderHighContrastBorder: ({ color, hasBorder, }: Pick<_EuiPanelProps, "color" | "hasBorder">) => boolean;
|
|
5817
5843
|
export {};
|
|
5818
5844
|
|
|
5819
5845
|
}
|
|
@@ -5856,7 +5882,8 @@ declare module '@elastic/eui/src/components/popover/popover_panel/_popover_panel
|
|
|
5856
5882
|
export const EuiPopoverPanelContext: React.Context<{
|
|
5857
5883
|
paddingSize: EuiPaddingSize;
|
|
5858
5884
|
}>;
|
|
5859
|
-
export type EuiPopoverPanelProps = _EuiPanelDivlike;
|
|
5885
|
+
export type EuiPopoverPanelProps = _EuiPanelDivlike;
|
|
5886
|
+
type EuiPopoverPanelInternalProps = {
|
|
5860
5887
|
isOpen?: boolean;
|
|
5861
5888
|
isAttached?: boolean;
|
|
5862
5889
|
position?: EuiPopoverArrowPositions | null;
|
|
@@ -6034,7 +6061,8 @@ declare module '@elastic/eui/src/components/popover/popover' {
|
|
|
6034
6061
|
arrowPosition: EuiPopoverArrowPositions | null;
|
|
6035
6062
|
openPosition: any;
|
|
6036
6063
|
isOpenStable: boolean;
|
|
6037
|
-
}
|
|
6064
|
+
}
|
|
6065
|
+
type PropsWithDefaults = Props & {
|
|
6038
6066
|
anchorPosition: PopoverAnchorPosition;
|
|
6039
6067
|
hasArrow: boolean;
|
|
6040
6068
|
isOpen: boolean;
|
|
@@ -6327,7 +6355,7 @@ declare module '@elastic/eui/src/components/form/form_control_layout/form_contro
|
|
|
6327
6355
|
color?: IconColor;
|
|
6328
6356
|
ref?: EuiFormControlLayoutCustomIconProps['iconRef'];
|
|
6329
6357
|
};
|
|
6330
|
-
export const isIconShape: (icon: EuiFormControlLayoutIconsProps[
|
|
6358
|
+
export const isIconShape: (icon: EuiFormControlLayoutIconsProps["icon"]) => icon is IconShape;
|
|
6331
6359
|
export interface EuiFormControlLayoutIconsProps {
|
|
6332
6360
|
icon?: IconType | IconShape;
|
|
6333
6361
|
side?: (typeof ICON_SIDES)[number];
|
|
@@ -6351,13 +6379,13 @@ declare module '@elastic/eui/src/components/form/form_control_layout/form_contro
|
|
|
6351
6379
|
}
|
|
6352
6380
|
declare module '@elastic/eui/src/components/form/form_control_layout/_num_icons' {
|
|
6353
6381
|
import { type EuiFormControlLayoutIconsProps } from '@elastic/eui/src/components/form/form_control_layout/form_control_layout_icons';
|
|
6354
|
-
export const isRightSideIcon: (icon?: EuiFormControlLayoutIconsProps[
|
|
6382
|
+
export const isRightSideIcon: (icon?: EuiFormControlLayoutIconsProps["icon"]) => boolean;
|
|
6355
6383
|
export const getIconAffordanceStyles: ({ icon, clear, isLoading, isInvalid, isDropdown, }: {
|
|
6356
|
-
icon?: EuiFormControlLayoutIconsProps[
|
|
6357
|
-
clear?: EuiFormControlLayoutIconsProps[
|
|
6358
|
-
isLoading?: boolean
|
|
6359
|
-
isInvalid?: boolean
|
|
6360
|
-
isDropdown?: boolean
|
|
6384
|
+
icon?: EuiFormControlLayoutIconsProps["icon"];
|
|
6385
|
+
clear?: EuiFormControlLayoutIconsProps["clear"] | boolean;
|
|
6386
|
+
isLoading?: boolean;
|
|
6387
|
+
isInvalid?: boolean;
|
|
6388
|
+
isDropdown?: boolean;
|
|
6361
6389
|
}) => {
|
|
6362
6390
|
[k: string]: number;
|
|
6363
6391
|
} | undefined;
|
|
@@ -6395,7 +6423,9 @@ declare module '@elastic/eui/src/components/form/form_control_layout/form_contro
|
|
|
6395
6423
|
declare module '@elastic/eui/src/components/form/form_control_layout/form_control_layout' {
|
|
6396
6424
|
import { FunctionComponent, HTMLAttributes, ReactElement, ReactNode } from 'react';
|
|
6397
6425
|
import { CommonProps } from '@elastic/eui/src/components/common';
|
|
6398
|
-
import { EuiFormControlLayoutIconsProps } from '@elastic/eui/src/components/form/form_control_layout/form_control_layout_icons';
|
|
6426
|
+
import { EuiFormControlLayoutIconsProps } from '@elastic/eui/src/components/form/form_control_layout/form_control_layout_icons';
|
|
6427
|
+
type StringOrReactElement = string | ReactElement;
|
|
6428
|
+
type PrependAppendType = StringOrReactElement | StringOrReactElement[];
|
|
6399
6429
|
export type EuiFormControlLayoutProps = CommonProps & HTMLAttributes<HTMLDivElement> & {
|
|
6400
6430
|
/**
|
|
6401
6431
|
* Creates an input group with element(s) coming before children.
|
|
@@ -6525,7 +6555,8 @@ declare module '@elastic/eui/src/components/form/super_select/super_select_item'
|
|
|
6525
6555
|
dropdownDisplay?: ReactNode;
|
|
6526
6556
|
disabled?: boolean;
|
|
6527
6557
|
'data-test-subj'?: string;
|
|
6528
|
-
}
|
|
6558
|
+
}
|
|
6559
|
+
type EuiSuperSelectItemProps = ComponentProps<typeof EuiContextMenuItem> & {
|
|
6529
6560
|
hasDividers?: boolean;
|
|
6530
6561
|
};
|
|
6531
6562
|
export const EuiSuperSelectItem: FunctionComponent<EuiSuperSelectItemProps>;
|
|
@@ -6689,9 +6720,9 @@ declare module '@elastic/eui/src/components/color_picker/utils' {
|
|
|
6689
6720
|
export const HSV_FALLBACK: ColorSpaces['hsv'];
|
|
6690
6721
|
export const RGB_FALLBACK: ColorSpaces['rgba'];
|
|
6691
6722
|
export const RGB_JOIN = ", ";
|
|
6692
|
-
export const parseColor: (input?: string | null
|
|
6723
|
+
export const parseColor: (input?: string | null) => string | number[] | null;
|
|
6693
6724
|
export const chromaValid: (color: string | number[]) => boolean;
|
|
6694
|
-
export const getChromaColor: (input?: string | null
|
|
6725
|
+
export const getChromaColor: (input?: string | null, allowOpacity?: boolean) => chroma.Color | null;
|
|
6695
6726
|
export const getLinearGradient: (palette: string[] | PaletteColorStop[]) => string;
|
|
6696
6727
|
export const getFixedLinearGradient: (palette: string[] | PaletteColorStop[]) => {
|
|
6697
6728
|
color: string;
|
|
@@ -6950,10 +6981,10 @@ declare module '@elastic/eui/src/services/color/contrast' {
|
|
|
6950
6981
|
* @param themeOrBackground - Color to use as the contrast basis or just pass EuiTheme
|
|
6951
6982
|
*/
|
|
6952
6983
|
export const makeHighContrastColor: (_foreground: string, ratio?: number) => (themeOrBackground: string | {
|
|
6953
|
-
[key: string]: any;
|
|
6954
6984
|
colors: {
|
|
6955
6985
|
body: string;
|
|
6956
6986
|
};
|
|
6987
|
+
[key: string]: any;
|
|
6957
6988
|
}) => string;
|
|
6958
6989
|
/**
|
|
6959
6990
|
* Creates a new color with increased contrast
|
|
@@ -6964,10 +6995,10 @@ declare module '@elastic/eui/src/services/color/contrast' {
|
|
|
6964
6995
|
* @param themeOrBackground - Color to use as the contrast basis
|
|
6965
6996
|
*/
|
|
6966
6997
|
export const makeDisabledContrastColor: (color: string, ratio?: number) => (themeOrBackground: string | {
|
|
6967
|
-
[key: string]: any;
|
|
6968
6998
|
colors: {
|
|
6969
6999
|
body: string;
|
|
6970
7000
|
};
|
|
7001
|
+
[key: string]: any;
|
|
6971
7002
|
}) => string;
|
|
6972
7003
|
|
|
6973
7004
|
}
|
|
@@ -7143,7 +7174,7 @@ declare module '@elastic/eui/src/services/findElement' {
|
|
|
7143
7174
|
* returns a DOM node.
|
|
7144
7175
|
*/
|
|
7145
7176
|
export type ElementTarget = HTMLElement | string | (() => HTMLElement);
|
|
7146
|
-
export const findElementBySelectorOrRef: (elementTarget?: ElementTarget
|
|
7177
|
+
export const findElementBySelectorOrRef: (elementTarget?: ElementTarget) => HTMLElement | null;
|
|
7147
7178
|
|
|
7148
7179
|
}
|
|
7149
7180
|
declare module '@elastic/eui/src/services/format/format_boolean' {
|
|
@@ -7155,7 +7186,8 @@ declare module '@elastic/eui/src/services/format/format_boolean' {
|
|
|
7155
7186
|
|
|
7156
7187
|
}
|
|
7157
7188
|
declare module '@elastic/eui/src/services/format/format_date' {
|
|
7158
|
-
import moment from 'moment';
|
|
7189
|
+
import moment from 'moment';
|
|
7190
|
+
type CalendarOptions = moment.CalendarSpec & {
|
|
7159
7191
|
refTime?: moment.MomentInput;
|
|
7160
7192
|
};
|
|
7161
7193
|
export const dateFormatAliases: {
|
|
@@ -7171,7 +7203,8 @@ declare module '@elastic/eui/src/services/format/format_date' {
|
|
|
7171
7203
|
calendar: (value: moment.MomentInput, options?: CalendarOptions) => string;
|
|
7172
7204
|
calendarDateTime: (value: moment.MomentInput, options: moment.CalendarSpec) => string;
|
|
7173
7205
|
calendarDate: (value: moment.MomentInput, options: moment.CalendarSpec) => string;
|
|
7174
|
-
};
|
|
7206
|
+
};
|
|
7207
|
+
type DateFormat = keyof typeof dateFormatAliases;
|
|
7175
7208
|
interface FormatDateConfig {
|
|
7176
7209
|
format: DateFormat;
|
|
7177
7210
|
nil: string;
|
|
@@ -7187,7 +7220,7 @@ declare module '@elastic/eui/src/services/format/format_number' {
|
|
|
7187
7220
|
nil: string;
|
|
7188
7221
|
round: boolean;
|
|
7189
7222
|
}
|
|
7190
|
-
export const formatNumber: (value?: number | null
|
|
7223
|
+
export const formatNumber: (value?: number | null, numberFormatOrConfig?: string | Partial<FormatNumberConfig>) => string;
|
|
7191
7224
|
export {};
|
|
7192
7225
|
|
|
7193
7226
|
}
|
|
@@ -7255,9 +7288,9 @@ declare module '@elastic/eui/src/services/security/get_secure_rel_for_target' {
|
|
|
7255
7288
|
* https://www.jitbit.com/alexblog/256-targetblank---the-most-underestimated-vulnerability-ever/
|
|
7256
7289
|
*/
|
|
7257
7290
|
export const getSecureRelForTarget: ({ target, rel, }: {
|
|
7258
|
-
href?: string
|
|
7259
|
-
target?:
|
|
7260
|
-
rel?: string
|
|
7291
|
+
href?: string;
|
|
7292
|
+
target?: "_blank" | "_self" | "_parent" | "_top" | string;
|
|
7293
|
+
rel?: string;
|
|
7261
7294
|
}) => string;
|
|
7262
7295
|
|
|
7263
7296
|
}
|
|
@@ -7335,7 +7368,7 @@ declare module '@elastic/eui/src/services/sort/property_sort' {
|
|
|
7335
7368
|
import { Direction } from '@elastic/eui/src/services/sort/sort_direction';
|
|
7336
7369
|
export const PropertySortType: PropTypes.Requireable<PropTypes.InferProps<{
|
|
7337
7370
|
field: PropTypes.Validator<string>;
|
|
7338
|
-
direction: PropTypes.Validator<"desc" | "asc"
|
|
7371
|
+
direction: PropTypes.Validator<NonNullable<"desc" | "asc">>;
|
|
7339
7372
|
}>>;
|
|
7340
7373
|
export interface PropertySort {
|
|
7341
7374
|
field: string;
|
|
@@ -7411,7 +7444,8 @@ declare module '@elastic/eui/src/services/transition' {
|
|
|
7411
7444
|
|
|
7412
7445
|
}
|
|
7413
7446
|
declare module '@elastic/eui/src/services/window_event/window_event' {
|
|
7414
|
-
import { Component } from 'react';
|
|
7447
|
+
import { Component } from 'react';
|
|
7448
|
+
type EventNames = keyof WindowEventMap;
|
|
7415
7449
|
interface Props<Ev extends EventNames> {
|
|
7416
7450
|
event: Ev;
|
|
7417
7451
|
handler: (this: Window, ev: WindowEventMap[Ev]) => any;
|
|
@@ -7544,7 +7578,8 @@ declare module '@elastic/eui/src/components/accessibility/skip_link/skip_link' {
|
|
|
7544
7578
|
import { FunctionComponent, Ref } from 'react';
|
|
7545
7579
|
import { EuiButtonProps } from '@elastic/eui/src/components/button/button';
|
|
7546
7580
|
import { PropsForAnchor } from '@elastic/eui/src/components/common';
|
|
7547
|
-
export const POSITIONS: readonly ["static", "fixed", "absolute"];
|
|
7581
|
+
export const POSITIONS: readonly ["static", "fixed", "absolute"];
|
|
7582
|
+
type Positions = (typeof POSITIONS)[number];
|
|
7548
7583
|
interface EuiSkipLinkInterface extends EuiButtonProps {
|
|
7549
7584
|
/**
|
|
7550
7585
|
* Change the display position of the element when focused.
|
|
@@ -7613,7 +7648,8 @@ declare module '@elastic/eui/src/components/accordion/accordion_trigger/accordio
|
|
|
7613
7648
|
}
|
|
7614
7649
|
declare module '@elastic/eui/src/components/accordion/accordion_trigger/accordion_button' {
|
|
7615
7650
|
import { FunctionComponent, PropsWithChildren, HTMLAttributes } from 'react';
|
|
7616
|
-
import { EuiAccordionProps } from '@elastic/eui/src/components/accordion/accordion';
|
|
7651
|
+
import { EuiAccordionProps } from '@elastic/eui/src/components/accordion/accordion';
|
|
7652
|
+
type _EuiAccordionButtonProps = PropsWithChildren & HTMLAttributes<HTMLElement> & Required<Pick<EuiAccordionProps, 'buttonElement'>> & Pick<EuiAccordionProps, 'buttonClassName' | 'buttonProps' | 'buttonContentClassName' | 'isDisabled' | 'arrowDisplay'>;
|
|
7617
7653
|
export const EuiAccordionButton: FunctionComponent<_EuiAccordionButtonProps>;
|
|
7618
7654
|
export {};
|
|
7619
7655
|
|
|
@@ -7632,7 +7668,8 @@ declare module '@elastic/eui/src/components/accordion/accordion_trigger/accordio
|
|
|
7632
7668
|
declare module '@elastic/eui/src/components/accordion/accordion_trigger/accordion_arrow' {
|
|
7633
7669
|
import { FunctionComponent } from 'react';
|
|
7634
7670
|
import { EuiButtonIconPropsForButton } from '@elastic/eui/src/components/button';
|
|
7635
|
-
import { EuiAccordionProps } from '@elastic/eui/src/components/accordion/accordion';
|
|
7671
|
+
import { EuiAccordionProps } from '@elastic/eui/src/components/accordion/accordion';
|
|
7672
|
+
type _EuiAccordionArrowProps = Partial<EuiButtonIconPropsForButton> & Pick<EuiAccordionProps, 'arrowDisplay' | 'arrowProps'> & {
|
|
7636
7673
|
isOpen: boolean;
|
|
7637
7674
|
};
|
|
7638
7675
|
export const EuiAccordionArrow: FunctionComponent<_EuiAccordionArrowProps>;
|
|
@@ -7641,7 +7678,8 @@ declare module '@elastic/eui/src/components/accordion/accordion_trigger/accordio
|
|
|
7641
7678
|
}
|
|
7642
7679
|
declare module '@elastic/eui/src/components/accordion/accordion_trigger/accordion_trigger' {
|
|
7643
7680
|
import { FunctionComponent, MouseEventHandler } from 'react';
|
|
7644
|
-
import { EuiAccordionProps } from '@elastic/eui/src/components/accordion/accordion';
|
|
7681
|
+
import { EuiAccordionProps } from '@elastic/eui/src/components/accordion/accordion';
|
|
7682
|
+
type _EuiAccordionTriggerProps = Pick<EuiAccordionProps, 'arrowDisplay' | 'arrowProps' | 'buttonElement' | 'buttonClassName' | 'buttonProps' | 'buttonContent' | 'buttonContentClassName' | 'extraAction' | 'isDisabled'> & {
|
|
7645
7683
|
isOpen: boolean;
|
|
7646
7684
|
ariaControlsId: string;
|
|
7647
7685
|
buttonId: string;
|
|
@@ -7657,7 +7695,8 @@ declare module '@elastic/eui/src/components/accordion/accordion_trigger' {
|
|
|
7657
7695
|
}
|
|
7658
7696
|
declare module '@elastic/eui/src/components/accordion/accordion_children/accordion_children_loading' {
|
|
7659
7697
|
import { FunctionComponent } from 'react';
|
|
7660
|
-
import { EuiAccordionProps } from '@elastic/eui/src/components/accordion/accordion';
|
|
7698
|
+
import { EuiAccordionProps } from '@elastic/eui/src/components/accordion/accordion';
|
|
7699
|
+
type _EuiAccordionChildrenLoadingProps = Pick<EuiAccordionProps, 'isLoadingMessage'>;
|
|
7661
7700
|
export const EuiAccordionChildrenLoading: FunctionComponent<_EuiAccordionChildrenLoadingProps>;
|
|
7662
7701
|
export {};
|
|
7663
7702
|
|
|
@@ -7683,7 +7722,8 @@ declare module '@elastic/eui/src/components/accordion/accordion_children/accordi
|
|
|
7683
7722
|
}
|
|
7684
7723
|
declare module '@elastic/eui/src/components/accordion/accordion_children/accordion_children' {
|
|
7685
7724
|
import { FunctionComponent, HTMLAttributes } from 'react';
|
|
7686
|
-
import { EuiAccordionProps } from '@elastic/eui/src/components/accordion/accordion';
|
|
7725
|
+
import { EuiAccordionProps } from '@elastic/eui/src/components/accordion/accordion';
|
|
7726
|
+
type _EuiAccordionChildrenProps = HTMLAttributes<HTMLDivElement> & Pick<EuiAccordionProps, 'role' | 'children' | 'paddingSize' | 'initialIsOpen' | 'isLoading' | 'isLoadingMessage'> & {
|
|
7687
7727
|
isOpen: boolean;
|
|
7688
7728
|
};
|
|
7689
7729
|
export const EuiAccordionChildren: FunctionComponent<_EuiAccordionChildrenProps>;
|
|
@@ -7798,7 +7838,8 @@ declare module '@elastic/eui/src/components/accordion/accordion' {
|
|
|
7798
7838
|
* Disable the open/close interaction and visually subdues the trigger
|
|
7799
7839
|
*/
|
|
7800
7840
|
isDisabled?: boolean;
|
|
7801
|
-
};
|
|
7841
|
+
};
|
|
7842
|
+
type EuiAccordionState = {
|
|
7802
7843
|
isOpen: boolean;
|
|
7803
7844
|
};
|
|
7804
7845
|
export class EuiAccordionClass extends Component<WithEuiThemeProps & EuiAccordionProps, EuiAccordionState> {
|
|
@@ -7902,7 +7943,12 @@ declare module '@elastic/eui/src/components/avatar/avatar' {
|
|
|
7902
7943
|
export const TYPES: readonly ["space", "user"];
|
|
7903
7944
|
export type EuiAvatarType = (typeof TYPES)[number];
|
|
7904
7945
|
export const CASING: readonly ["capitalize", "uppercase", "lowercase", "none"];
|
|
7905
|
-
export type EuiAvatarCasing = (typeof CASING)[number];
|
|
7946
|
+
export type EuiAvatarCasing = (typeof CASING)[number];
|
|
7947
|
+
/**
|
|
7948
|
+
* The avatar can only display one type of content,
|
|
7949
|
+
* initials, or image, or iconType
|
|
7950
|
+
*/
|
|
7951
|
+
type _EuiAvatarContent = ExclusiveUnion<ExclusiveUnion<{
|
|
7906
7952
|
/**
|
|
7907
7953
|
* Custom initials (max 2 characters).
|
|
7908
7954
|
* By default will take the first character (of each word).
|
|
@@ -7962,7 +8008,7 @@ declare module '@elastic/eui/src/components/avatar/avatar' {
|
|
|
7962
8008
|
isDisabled?: boolean;
|
|
7963
8009
|
};
|
|
7964
8010
|
export const EuiAvatar: FunctionComponent<EuiAvatarProps>;
|
|
7965
|
-
export const checkValidColor: (color: EuiAvatarProps[
|
|
8011
|
+
export const checkValidColor: (color: EuiAvatarProps["color"]) => void;
|
|
7966
8012
|
export {};
|
|
7967
8013
|
|
|
7968
8014
|
}
|
|
@@ -8088,7 +8134,7 @@ declare module '@elastic/eui/src/components/badge/color_utils' {
|
|
|
8088
8134
|
};
|
|
8089
8135
|
export const getTextColor: ({ euiTheme }: UseEuiTheme, bgColor: string) => string;
|
|
8090
8136
|
export const getColorContrast: (textColor: string, color: string) => number;
|
|
8091
|
-
export const getIsValidColor: (color?: string
|
|
8137
|
+
export const getIsValidColor: (color?: string) => boolean;
|
|
8092
8138
|
|
|
8093
8139
|
}
|
|
8094
8140
|
declare module '@elastic/eui/src/components/badge/badge.styles' {
|
|
@@ -8129,8 +8175,11 @@ declare module '@elastic/eui/src/components/badge/badge' {
|
|
|
8129
8175
|
import { AriaAttributes, FunctionComponent, HTMLAttributes, MouseEventHandler } from 'react';
|
|
8130
8176
|
import { CommonProps, ExclusiveUnion, PropsOf } from '@elastic/eui/src/components/common';
|
|
8131
8177
|
import { EuiIcon, IconType } from '@elastic/eui/src/components/icon';
|
|
8132
|
-
export const ICON_SIDES: readonly ["left", "right"];
|
|
8133
|
-
|
|
8178
|
+
export const ICON_SIDES: readonly ["left", "right"];
|
|
8179
|
+
type IconSide = (typeof ICON_SIDES)[number];
|
|
8180
|
+
export const COLORS: readonly ["default", "hollow", "primary", "accent", "neutral", "success", "warning", "risk", "danger"];
|
|
8181
|
+
type BadgeColor = (typeof COLORS)[number];
|
|
8182
|
+
type WithButtonProps = {
|
|
8134
8183
|
/**
|
|
8135
8184
|
* Will apply an onclick to the badge itself
|
|
8136
8185
|
*/
|
|
@@ -8139,11 +8188,13 @@ declare module '@elastic/eui/src/components/badge/badge' {
|
|
|
8139
8188
|
* Aria label applied to the onClick button
|
|
8140
8189
|
*/
|
|
8141
8190
|
onClickAriaLabel: AriaAttributes['aria-label'];
|
|
8142
|
-
} & Omit<HTMLAttributes<HTMLButtonElement>, 'onClick' | 'color'>;
|
|
8191
|
+
} & Omit<HTMLAttributes<HTMLButtonElement>, 'onClick' | 'color'>;
|
|
8192
|
+
type WithAnchorProps = {
|
|
8143
8193
|
href: string;
|
|
8144
8194
|
target?: string;
|
|
8145
8195
|
rel?: string;
|
|
8146
|
-
} & Omit<HTMLAttributes<HTMLAnchorElement>, 'href' | 'color' | 'onClick'>;
|
|
8196
|
+
} & Omit<HTMLAttributes<HTMLAnchorElement>, 'href' | 'color' | 'onClick'>;
|
|
8197
|
+
type WithSpanProps = Omit<HTMLAttributes<HTMLSpanElement>, 'onClick' | 'color'>;
|
|
8147
8198
|
interface WithIconOnClick {
|
|
8148
8199
|
/**
|
|
8149
8200
|
* Will apply an onclick to icon within the badge
|
|
@@ -8216,7 +8267,8 @@ declare module '@elastic/eui/src/components/badge/beta_badge/beta_badge' {
|
|
|
8216
8267
|
export const SIZES: readonly ["s", "m"];
|
|
8217
8268
|
export type BetaBadgeSize = (typeof SIZES)[number];
|
|
8218
8269
|
export const ALIGNMENTS: readonly ["baseline", "middle"];
|
|
8219
|
-
export type BetaBadgeAlignment = (typeof ALIGNMENTS)[number];
|
|
8270
|
+
export type BetaBadgeAlignment = (typeof ALIGNMENTS)[number];
|
|
8271
|
+
type WithButtonProps = {
|
|
8220
8272
|
/**
|
|
8221
8273
|
* Will apply an onclick to the badge itself
|
|
8222
8274
|
*/
|
|
@@ -8225,11 +8277,14 @@ declare module '@elastic/eui/src/components/badge/beta_badge/beta_badge' {
|
|
|
8225
8277
|
* Aria label applied to the onClick button
|
|
8226
8278
|
*/
|
|
8227
8279
|
onClickAriaLabel?: AriaAttributes['aria-label'];
|
|
8228
|
-
} & Omit<HTMLAttributes<HTMLButtonElement>, 'onClick' | 'color'>;
|
|
8280
|
+
} & Omit<HTMLAttributes<HTMLButtonElement>, 'onClick' | 'color'>;
|
|
8281
|
+
type WithAnchorProps = {
|
|
8229
8282
|
href: string;
|
|
8230
8283
|
target?: string;
|
|
8231
8284
|
rel?: string;
|
|
8232
|
-
} & Omit<HTMLAttributes<HTMLAnchorElement>, 'href' | 'color' | 'onClick'>;
|
|
8285
|
+
} & Omit<HTMLAttributes<HTMLAnchorElement>, 'href' | 'color' | 'onClick'>;
|
|
8286
|
+
type WithSpanProps = Omit<HTMLAttributes<HTMLSpanElement>, 'onClick' | 'color' | 'title'>;
|
|
8287
|
+
type LabelAsNode = ExclusiveUnion<{
|
|
8233
8288
|
title: string;
|
|
8234
8289
|
tooltipContent?: ReactNode;
|
|
8235
8290
|
}, {
|
|
@@ -8237,12 +8292,14 @@ declare module '@elastic/eui/src/components/badge/beta_badge/beta_badge' {
|
|
|
8237
8292
|
title?: string;
|
|
8238
8293
|
}> & {
|
|
8239
8294
|
label: ReactNode;
|
|
8240
|
-
};
|
|
8295
|
+
};
|
|
8296
|
+
type LabelAsString = {
|
|
8241
8297
|
/**
|
|
8242
8298
|
* One word label like "Beta" or "Lab"
|
|
8243
8299
|
*/
|
|
8244
8300
|
label: string;
|
|
8245
|
-
};
|
|
8301
|
+
};
|
|
8302
|
+
type BadgeProps = {
|
|
8246
8303
|
/**
|
|
8247
8304
|
* Supply an icon type if the badge should just be an icon
|
|
8248
8305
|
*/
|
|
@@ -8336,7 +8393,8 @@ declare module '@elastic/eui/src/components/badge/badge_group/badge_group.styles
|
|
|
8336
8393
|
declare module '@elastic/eui/src/components/badge/badge_group/badge_group' {
|
|
8337
8394
|
import React, { ReactNode } from 'react';
|
|
8338
8395
|
import { CommonProps } from '@elastic/eui/src/components/common';
|
|
8339
|
-
export const GUTTER_SIZES: readonly ["none", "xs", "s"];
|
|
8396
|
+
export const GUTTER_SIZES: readonly ["none", "xs", "s"];
|
|
8397
|
+
type BadgeGroupGutterSize = (typeof GUTTER_SIZES)[number];
|
|
8340
8398
|
export interface EuiBadgeGroupProps {
|
|
8341
8399
|
/**
|
|
8342
8400
|
* Space between badges
|
|
@@ -8420,9 +8478,11 @@ declare module '@elastic/eui/src/components/bottom_bar/bottom_bar' {
|
|
|
8420
8478
|
import React, { CSSProperties, HTMLAttributes } from 'react';
|
|
8421
8479
|
import { CommonProps, ExclusiveUnion } from '@elastic/eui/src/components/common';
|
|
8422
8480
|
import { EuiPortalProps } from '@elastic/eui/src/components/portal';
|
|
8423
|
-
export const PADDING_SIZES: readonly ["none", "s", "m", "l"];
|
|
8481
|
+
export const PADDING_SIZES: readonly ["none", "s", "m", "l"];
|
|
8482
|
+
type BottomBarPaddingSize = (typeof PADDING_SIZES)[number];
|
|
8424
8483
|
export const POSITIONS: readonly ["static", "fixed", "sticky"];
|
|
8425
|
-
export type _BottomBarPosition = (typeof POSITIONS)[number];
|
|
8484
|
+
export type _BottomBarPosition = (typeof POSITIONS)[number];
|
|
8485
|
+
type _BottomBarExclusivePositions = ExclusiveUnion<{
|
|
8426
8486
|
position?: 'fixed';
|
|
8427
8487
|
/**
|
|
8428
8488
|
* Whether to wrap in an EuiPortal which appends the component to the body element.
|
|
@@ -8717,11 +8777,13 @@ declare module '@elastic/eui/src/components/breadcrumbs/breadcrumbs' {
|
|
|
8717
8777
|
import { ExclusiveUnion } from '@elastic/eui/src/components/common';
|
|
8718
8778
|
import type { EuiBreadcrumbsProps, EuiBreadcrumbProps } from '@elastic/eui/src/components/breadcrumbs/types';
|
|
8719
8779
|
export const EuiBreadcrumbs: FunctionComponent<EuiBreadcrumbsProps>;
|
|
8720
|
-
export const useResponsiveMax: (responsive: EuiBreadcrumbsProps[
|
|
8780
|
+
export const useResponsiveMax: (responsive: EuiBreadcrumbsProps["responsive"], max: EuiBreadcrumbsProps["max"]) => number | null | undefined;
|
|
8781
|
+
type _EuiBreadcrumbCollapsedObj = {
|
|
8721
8782
|
isCollapsedButton: true;
|
|
8722
8783
|
overflowBreadcrumbs: EuiBreadcrumbProps[];
|
|
8723
|
-
};
|
|
8724
|
-
|
|
8784
|
+
};
|
|
8785
|
+
type _EuiBreadcrumbsObjs = Array<ExclusiveUnion<EuiBreadcrumbProps, _EuiBreadcrumbCollapsedObj>>;
|
|
8786
|
+
export const limitBreadcrumbs: (breadcrumbs: EuiBreadcrumbsProps["breadcrumbs"], max: number) => _EuiBreadcrumbsObjs;
|
|
8725
8787
|
export {};
|
|
8726
8788
|
|
|
8727
8789
|
}
|
|
@@ -8740,7 +8802,7 @@ declare module '@elastic/eui/src/components/panel/split_panel/split_panel.styles
|
|
|
8740
8802
|
export const euiSplitPanelInnerStyles: (euiThemeContext: UseEuiTheme) => {
|
|
8741
8803
|
euiSplitPanelInner: import("@emotion/react").SerializedStyles;
|
|
8742
8804
|
highContrastBorders: {
|
|
8743
|
-
_renderBorder: (direction:
|
|
8805
|
+
_renderBorder: (direction: "right" | "bottom") => string;
|
|
8744
8806
|
readonly column: string;
|
|
8745
8807
|
readonly row: string;
|
|
8746
8808
|
};
|
|
@@ -8831,7 +8893,9 @@ declare module '@elastic/eui/src/components/call_out/call_out' {
|
|
|
8831
8893
|
import { IconType } from '@elastic/eui/src/components/icon';
|
|
8832
8894
|
export const COLORS: readonly ["primary", "success", "warning", "danger", "accent"];
|
|
8833
8895
|
export type Color = (typeof COLORS)[number];
|
|
8834
|
-
export const HEADINGS: readonly ["h1", "h2", "h3", "h4", "h5", "h6", "p"];
|
|
8896
|
+
export const HEADINGS: readonly ["h1", "h2", "h3", "h4", "h5", "h6", "p"];
|
|
8897
|
+
type Heading = (typeof HEADINGS)[number];
|
|
8898
|
+
type Size = 's' | 'm';
|
|
8835
8899
|
export type EuiCallOutProps = CommonProps & Omit<HTMLAttributes<HTMLDivElement>, 'title' | 'color'> & {
|
|
8836
8900
|
title?: ReactNode;
|
|
8837
8901
|
iconType?: IconType;
|
|
@@ -8849,10 +8913,10 @@ declare module '@elastic/eui/src/components/call_out/call_out' {
|
|
|
8849
8913
|
};
|
|
8850
8914
|
export const EuiCallOut: React.ForwardRefExoticComponent<CommonProps & Omit<React.HTMLAttributes<HTMLDivElement>, "title" | "color"> & {
|
|
8851
8915
|
title?: ReactNode;
|
|
8852
|
-
iconType?: IconType
|
|
8853
|
-
color?:
|
|
8854
|
-
size?: Size
|
|
8855
|
-
heading?:
|
|
8916
|
+
iconType?: IconType;
|
|
8917
|
+
color?: Color;
|
|
8918
|
+
size?: Size;
|
|
8919
|
+
heading?: Heading;
|
|
8856
8920
|
/**
|
|
8857
8921
|
* Passing an `onDismiss` callback will render a cross in the top right hand corner
|
|
8858
8922
|
* of the callout.
|
|
@@ -8860,7 +8924,7 @@ declare module '@elastic/eui/src/components/call_out/call_out' {
|
|
|
8860
8924
|
* This callback fires when users click this button, which allows conditionally
|
|
8861
8925
|
* removing the callout or other actions.
|
|
8862
8926
|
*/
|
|
8863
|
-
onDismiss?: (
|
|
8927
|
+
onDismiss?: () => void;
|
|
8864
8928
|
} & React.RefAttributes<HTMLDivElement>>;
|
|
8865
8929
|
export {};
|
|
8866
8930
|
|
|
@@ -8897,7 +8961,7 @@ declare module '@elastic/eui/src/components/card/card.styles' {
|
|
|
8897
8961
|
* 3. Horizontal layouts should always top left align no matter the textAlign prop
|
|
8898
8962
|
* 4. Ensures the contents always stretch no matter the flex layout
|
|
8899
8963
|
*/
|
|
8900
|
-
export const euiCardStyles: (euiThemeContext: UseEuiTheme, paddingSize: EuiCardProps[
|
|
8964
|
+
export const euiCardStyles: (euiThemeContext: UseEuiTheme, paddingSize: EuiCardProps["paddingSize"]) => {
|
|
8901
8965
|
card: {
|
|
8902
8966
|
euiCard: import("@emotion/react").SerializedStyles;
|
|
8903
8967
|
aligned: {
|
|
@@ -8955,7 +9019,7 @@ declare module '@elastic/eui/src/components/card/card.styles' {
|
|
|
8955
9019
|
};
|
|
8956
9020
|
disabled: import("@emotion/react").SerializedStyles;
|
|
8957
9021
|
};
|
|
8958
|
-
export const euiCardBetaBadgeStyles: (euiThemeContext: UseEuiTheme, paddingSize: EuiCardProps[
|
|
9022
|
+
export const euiCardBetaBadgeStyles: (euiThemeContext: UseEuiTheme, paddingSize: EuiCardProps["paddingSize"]) => {
|
|
8959
9023
|
hasBetaBadge: import("@emotion/react").SerializedStyles;
|
|
8960
9024
|
euiCard__betaBadgeAnchor: import("@emotion/react").SerializedStyles;
|
|
8961
9025
|
euiCard__betaBadge: import("@emotion/react").SerializedStyles;
|
|
@@ -8969,7 +9033,12 @@ declare module '@elastic/eui/src/components/card/card' {
|
|
|
8969
9033
|
import { EuiIconProps } from '@elastic/eui/src/components/icon';
|
|
8970
9034
|
import { EuiPanelProps } from '@elastic/eui/src/components/panel';
|
|
8971
9035
|
import { EuiCardSelectProps } from '@elastic/eui/src/components/card/card_select';
|
|
8972
|
-
export const ALIGNMENTS: readonly ["left", "center", "right"];
|
|
9036
|
+
export const ALIGNMENTS: readonly ["left", "center", "right"];
|
|
9037
|
+
type CardAlignment = (typeof ALIGNMENTS)[number];
|
|
9038
|
+
/**
|
|
9039
|
+
* Certain props are only allowed when the layout is vertical
|
|
9040
|
+
*/
|
|
9041
|
+
type EuiCardPropsLayout = ExclusiveUnion<{
|
|
8973
9042
|
layout?: 'vertical';
|
|
8974
9043
|
/**
|
|
8975
9044
|
* Changes alignment of the title and description
|
|
@@ -9168,7 +9237,9 @@ declare module '@elastic/eui/src/components/form/checkbox/checkbox_group' {
|
|
|
9168
9237
|
}
|
|
9169
9238
|
export interface EuiCheckboxGroupIdToSelectedMap {
|
|
9170
9239
|
[id: string]: boolean;
|
|
9171
|
-
}
|
|
9240
|
+
}
|
|
9241
|
+
type AsDivProps = Omit<HTMLAttributes<HTMLDivElement>, 'onChange'>;
|
|
9242
|
+
type WithLegendProps = Omit<EuiFormFieldsetProps, 'onChange'> & {
|
|
9172
9243
|
/**
|
|
9173
9244
|
* If the individual labels for each radio do not provide a sufficient description, add a legend.
|
|
9174
9245
|
* Wraps the group in a `EuiFormFieldset` which adds an `EuiLegend` for titling the whole group.
|
|
@@ -9529,7 +9600,7 @@ declare module '@elastic/eui/src/components/form/field_search/field_search' {
|
|
|
9529
9600
|
onClear: () => void;
|
|
9530
9601
|
componentWillUnmount(): void;
|
|
9531
9602
|
setRef: (inputElement: HTMLInputElement | null) => void;
|
|
9532
|
-
onKeyUp: (event: KeyboardEvent<HTMLInputElement>, incremental?: boolean
|
|
9603
|
+
onKeyUp: (event: KeyboardEvent<HTMLInputElement>, incremental?: boolean, onSearch?: (value: string) => void) => void;
|
|
9533
9604
|
render(): React.JSX.Element;
|
|
9534
9605
|
}
|
|
9535
9606
|
export const EuiFieldSearch: React.ForwardRefExoticComponent<Omit<EuiFieldSearchProps, "stylesMemoizer"> & React.RefAttributes<Omit<EuiFieldSearchProps, "stylesMemoizer">>>;
|
|
@@ -9688,7 +9759,9 @@ declare module '@elastic/eui/src/components/progress/progress' {
|
|
|
9688
9759
|
*/
|
|
9689
9760
|
color?: EuiProgressColor | CSSProperties['color'];
|
|
9690
9761
|
position?: EuiProgressPosition;
|
|
9691
|
-
};
|
|
9762
|
+
};
|
|
9763
|
+
type Indeterminate = EuiProgressProps & HTMLAttributes<HTMLDivElement>;
|
|
9764
|
+
type Determinate = EuiProgressProps & Omit<ProgressHTMLAttributes<HTMLProgressElement>, 'max'> & {
|
|
9692
9765
|
max?: number;
|
|
9693
9766
|
valueText?: boolean | ReactNode;
|
|
9694
9767
|
label?: ReactNode;
|
|
@@ -9795,7 +9868,7 @@ declare module '@elastic/eui/src/components/form/file_picker/file_picker' {
|
|
|
9795
9868
|
fileInput: HTMLInputElement | null;
|
|
9796
9869
|
generatedId: string;
|
|
9797
9870
|
handleChange: () => void;
|
|
9798
|
-
removeFiles: (e?: React.MouseEvent<HTMLButtonElement
|
|
9871
|
+
removeFiles: (e?: React.MouseEvent<HTMLButtonElement>) => void;
|
|
9799
9872
|
showDrop: () => void;
|
|
9800
9873
|
hideDrop: () => void;
|
|
9801
9874
|
render(): React.JSX.Element;
|
|
@@ -9895,7 +9968,8 @@ declare module '@elastic/eui/src/components/form/form_row/form_row' {
|
|
|
9895
9968
|
import { FunctionComponent, HTMLAttributes, ReactElement, ReactNode } from 'react';
|
|
9896
9969
|
import { ExclusiveUnion, CommonProps } from '@elastic/eui/src/components/common';
|
|
9897
9970
|
export const DISPLAYS: readonly ["row", "columnCompressed", "center", "centerCompressed", "rowCompressed"];
|
|
9898
|
-
export type EuiFormRowDisplayKeys = (typeof DISPLAYS)[number];
|
|
9971
|
+
export type EuiFormRowDisplayKeys = (typeof DISPLAYS)[number];
|
|
9972
|
+
type EuiFormRowCommonProps = CommonProps & {
|
|
9899
9973
|
/**
|
|
9900
9974
|
* - `columnCompressed` creates a compressed and horizontal layout
|
|
9901
9975
|
* - `center`/`centerCompressed` helps align non-input content better with inline form layouts
|
|
@@ -9943,9 +10017,11 @@ declare module '@elastic/eui/src/components/form/form_row/form_row' {
|
|
|
9943
10017
|
* Passed along to the label element; and to the child field element when `disabled` doesn't already exist on the child field element.
|
|
9944
10018
|
*/
|
|
9945
10019
|
isDisabled?: boolean;
|
|
9946
|
-
};
|
|
10020
|
+
};
|
|
10021
|
+
type LabelProps = {
|
|
9947
10022
|
labelType?: 'label';
|
|
9948
|
-
} & EuiFormRowCommonProps & HTMLAttributes<HTMLDivElement>;
|
|
10023
|
+
} & EuiFormRowCommonProps & HTMLAttributes<HTMLDivElement>;
|
|
10024
|
+
type LegendProps = {
|
|
9949
10025
|
/**
|
|
9950
10026
|
* Defaults to rendering a `<label>` but if passed `'legend'` for labelType,
|
|
9951
10027
|
* will render both a `<legend>` and the surrounding container as a `<fieldset>`
|
|
@@ -10032,7 +10108,9 @@ declare module '@elastic/eui/src/components/form/radio/radio_group' {
|
|
|
10032
10108
|
export interface EuiRadioGroupOption extends Omit<EuiRadioProps, 'checked' | 'onChange'> {
|
|
10033
10109
|
id: string;
|
|
10034
10110
|
}
|
|
10035
|
-
export type EuiRadioGroupChangeCallback = (id: string, value?: string) => void;
|
|
10111
|
+
export type EuiRadioGroupChangeCallback = (id: string, value?: string) => void;
|
|
10112
|
+
type AsDivProps = Omit<HTMLAttributes<HTMLDivElement>, 'onChange'>;
|
|
10113
|
+
type WithLegendProps = Omit<EuiFormFieldsetProps, 'onChange'> & {
|
|
10036
10114
|
/**
|
|
10037
10115
|
* If the individual labels for each radio do not provide a sufficient description, add a legend.
|
|
10038
10116
|
* Wraps the group in a `EuiFormFieldset` which adds an `EuiLegend` for titling the whole group.
|
|
@@ -10070,7 +10148,7 @@ declare module '@elastic/eui/src/components/form/range/range_levels_colors' {
|
|
|
10070
10148
|
import type { EuiRangeLevel } from '@elastic/eui/src/components/form/range/types';
|
|
10071
10149
|
export const LEVEL_COLORS: readonly ["primary", "success", "warning", "danger"];
|
|
10072
10150
|
export type EuiRangeLevelColor = (typeof LEVEL_COLORS)[number];
|
|
10073
|
-
export const isNamedLevelColor: (color?:
|
|
10151
|
+
export const isNamedLevelColor: (color?: EuiRangeLevelColor | string) => color is EuiRangeLevelColor;
|
|
10074
10152
|
export const euiRangeLevelColor: (color: EuiRangeLevelColor | string, { euiTheme }: UseEuiTheme) => string;
|
|
10075
10153
|
export const getLevelColor: (levels: EuiRangeLevel[], value: number) => "primary" | "success" | "warning" | "danger" | import("csstype").Property.Color | undefined;
|
|
10076
10154
|
|
|
@@ -10551,11 +10629,11 @@ declare module '@elastic/eui/src/components/form/range/dual_range.styles' {
|
|
|
10551
10629
|
|
|
10552
10630
|
}
|
|
10553
10631
|
declare module '@elastic/eui/src/components/form/range/dual_range' {
|
|
10554
|
-
|
|
10555
10632
|
import React, { Component } from 'react';
|
|
10556
10633
|
import { WithEuiThemeProps } from '@elastic/eui/src/services';
|
|
10557
10634
|
import { FormContextValue } from '@elastic/eui/src/components/form/eui_form_context';
|
|
10558
|
-
import type { EuiDualRangeProps, _SingleRangeValue } from '@elastic/eui/src/components/form/range/types';
|
|
10635
|
+
import type { EuiDualRangeProps, _SingleRangeValue } from '@elastic/eui/src/components/form/range/types';
|
|
10636
|
+
type ValueMember = _SingleRangeValue['value'];
|
|
10559
10637
|
export class EuiDualRangeClass extends Component<EuiDualRangeProps & WithEuiThemeProps> {
|
|
10560
10638
|
static contextType: React.Context<FormContextValue>;
|
|
10561
10639
|
static defaultProps: {
|
|
@@ -10587,7 +10665,7 @@ declare module '@elastic/eui/src/components/form/range/dual_range' {
|
|
|
10587
10665
|
_determineInvalidThumbMovement: (newVal: ValueMember, lower: ValueMember, upper: ValueMember, e: React.ChangeEvent<HTMLInputElement> | React.MouseEvent<HTMLButtonElement> | React.KeyboardEvent<HTMLInputElement>) => void;
|
|
10588
10666
|
_determineValidThumbMovement: (newVal: ValueMember, lower: ValueMember, upper: ValueMember, e: React.ChangeEvent<HTMLInputElement> | React.MouseEvent<HTMLButtonElement>) => void;
|
|
10589
10667
|
_determineThumbMovement: (newVal: number, e: React.ChangeEvent<HTMLInputElement> | React.MouseEvent<HTMLButtonElement>) => void;
|
|
10590
|
-
_handleOnChange: (lower: ValueMember, upper: ValueMember, e?: React.
|
|
10668
|
+
_handleOnChange: (lower: ValueMember, upper: ValueMember, e?: React.ChangeEvent<HTMLInputElement> | React.MouseEvent<HTMLButtonElement> | React.KeyboardEvent<HTMLInputElement> | React.KeyboardEvent<HTMLDivElement>) => void;
|
|
10591
10669
|
handleSliderChange: (e: React.ChangeEvent<HTMLInputElement> | React.MouseEvent<HTMLButtonElement>) => void;
|
|
10592
10670
|
_resetToRangeEnds: (e: React.KeyboardEvent<HTMLInputElement>) => void;
|
|
10593
10671
|
_isDirectionalKeyPress: (event: React.KeyboardEvent<HTMLInputElement>) => boolean;
|
|
@@ -10598,7 +10676,7 @@ declare module '@elastic/eui/src/components/form/range/dual_range' {
|
|
|
10598
10676
|
handleLowerKeyDown: (event: React.KeyboardEvent<HTMLInputElement>) => void;
|
|
10599
10677
|
handleUpperKeyDown: (event: React.KeyboardEvent<HTMLInputElement>) => void;
|
|
10600
10678
|
handleDraggableKeyDown: (event: React.KeyboardEvent<HTMLDivElement>) => void;
|
|
10601
|
-
calculateThumbPositionStyle: (value: number, width?: number
|
|
10679
|
+
calculateThumbPositionStyle: (value: number, width?: number) => {
|
|
10602
10680
|
left: string;
|
|
10603
10681
|
};
|
|
10604
10682
|
onThumbFocus: (e: React.FocusEvent<HTMLDivElement>) => void;
|
|
@@ -10610,7 +10688,7 @@ declare module '@elastic/eui/src/components/form/range/dual_range' {
|
|
|
10610
10688
|
width: number;
|
|
10611
10689
|
}) => void;
|
|
10612
10690
|
getNearestStep: (value: number) => number;
|
|
10613
|
-
handleDrag: (x: number, isFirstInteraction?: boolean
|
|
10691
|
+
handleDrag: (x: number, isFirstInteraction?: boolean) => void;
|
|
10614
10692
|
render(): React.JSX.Element;
|
|
10615
10693
|
}
|
|
10616
10694
|
export const EuiDualRange: React.ForwardRefExoticComponent<Omit<EuiDualRangeProps, "theme"> & React.RefAttributes<Omit<EuiDualRangeProps, "theme">>>;
|
|
@@ -10640,7 +10718,6 @@ declare module '@elastic/eui/src/components/form/range/range_tooltip' {
|
|
|
10640
10718
|
|
|
10641
10719
|
}
|
|
10642
10720
|
declare module '@elastic/eui/src/components/form/range/range' {
|
|
10643
|
-
|
|
10644
10721
|
import React, { Component } from 'react';
|
|
10645
10722
|
import { WithEuiThemeProps } from '@elastic/eui/src/services';
|
|
10646
10723
|
import { FormContextValue } from '@elastic/eui/src/components/form/eui_form_context';
|
|
@@ -10998,7 +11075,8 @@ declare module '@elastic/eui/src/components/code/code_block_annotations.style' {
|
|
|
10998
11075
|
declare module '@elastic/eui/src/components/code/code_block_annotations' {
|
|
10999
11076
|
import { FunctionComponent, PropsWithChildren, ReactNode } from 'react';
|
|
11000
11077
|
import { CommonProps } from '@elastic/eui/src/components/common';
|
|
11001
|
-
export type LineAnnotationMap = Record<number, ReactNode>;
|
|
11078
|
+
export type LineAnnotationMap = Record<number, ReactNode>;
|
|
11079
|
+
type EuiCodeBlockAnnotationProps = PropsWithChildren & CommonProps & {
|
|
11002
11080
|
lineNumber: number;
|
|
11003
11081
|
};
|
|
11004
11082
|
export const EuiCodeBlockAnnotation: FunctionComponent<EuiCodeBlockAnnotationProps>;
|
|
@@ -11094,7 +11172,7 @@ declare module '@elastic/eui/src/components/code/code_block_overflow' {
|
|
|
11094
11172
|
* the container.
|
|
11095
11173
|
*/
|
|
11096
11174
|
export const useOverflow: ({ overflowHeight, }: {
|
|
11097
|
-
overflowHeight?:
|
|
11175
|
+
overflowHeight?: number | string;
|
|
11098
11176
|
}) => {
|
|
11099
11177
|
setWrapperRef: import("react").Dispatch<import("react").SetStateAction<Element | null>>;
|
|
11100
11178
|
tabIndex: 0 | -1;
|
|
@@ -11152,7 +11230,7 @@ declare module '@elastic/eui/src/components/code/code_block_copy' {
|
|
|
11152
11230
|
* Hook that returns copy-related state/logic/utils
|
|
11153
11231
|
*/
|
|
11154
11232
|
export const useCopy: ({ copyAriaLabel, isCopyable, isVirtualized, children, }: {
|
|
11155
|
-
copyAriaLabel?: string
|
|
11233
|
+
copyAriaLabel?: string;
|
|
11156
11234
|
isCopyable: boolean;
|
|
11157
11235
|
isVirtualized: boolean;
|
|
11158
11236
|
children: ReactNode;
|
|
@@ -11301,7 +11379,7 @@ declare module '@elastic/eui/src/components/code/code_block_full_screen' {
|
|
|
11301
11379
|
* Hook that returns fullscreen-related state/logic/utils
|
|
11302
11380
|
*/
|
|
11303
11381
|
export const useFullScreen: ({ overflowHeight, }: {
|
|
11304
|
-
overflowHeight?:
|
|
11382
|
+
overflowHeight?: number | string;
|
|
11305
11383
|
}) => {
|
|
11306
11384
|
fullScreenButton: React.JSX.Element | null;
|
|
11307
11385
|
isFullScreen: boolean;
|
|
@@ -11343,7 +11421,7 @@ declare module '@elastic/eui/src/components/code/code_block_virtualized' {
|
|
|
11343
11421
|
export const EuiCodeBlockVirtualized: ({ data, rowHeight, overflowHeight, preProps, codeProps, }: {
|
|
11344
11422
|
data: RefractorNode[];
|
|
11345
11423
|
rowHeight: number;
|
|
11346
|
-
overflowHeight?:
|
|
11424
|
+
overflowHeight?: number | string;
|
|
11347
11425
|
preProps: HTMLAttributes<HTMLPreElement>;
|
|
11348
11426
|
codeProps: HTMLAttributes<HTMLElement>;
|
|
11349
11427
|
}) => React.JSX.Element;
|
|
@@ -11357,7 +11435,8 @@ declare module '@elastic/eui/src/components/code/code_block' {
|
|
|
11357
11435
|
export const FONT_SIZES: readonly ["s", "m", "l"];
|
|
11358
11436
|
export type EuiCodeBlockFontSize = (typeof FONT_SIZES)[number];
|
|
11359
11437
|
export const PADDING_SIZES: readonly ["none", "s", "m", "l"];
|
|
11360
|
-
export type EuiCodeBlockPaddingSize = (typeof PADDING_SIZES)[number];
|
|
11438
|
+
export type EuiCodeBlockPaddingSize = (typeof PADDING_SIZES)[number];
|
|
11439
|
+
type VirtualizedOptionProps = ExclusiveUnion<{
|
|
11361
11440
|
isVirtualized: true;
|
|
11362
11441
|
overflowHeight: number | string;
|
|
11363
11442
|
whiteSpace?: 'pre';
|
|
@@ -11445,7 +11524,8 @@ declare module '@elastic/eui/src/components/collapsible_nav/collapsible_nav_grou
|
|
|
11445
11524
|
import { EuiAccordionProps } from '@elastic/eui/src/components/accordion';
|
|
11446
11525
|
import { IconType, IconSize, EuiIconProps } from '@elastic/eui/src/components/icon';
|
|
11447
11526
|
import { EuiTitleProps } from '@elastic/eui/src/components/title';
|
|
11448
|
-
export const BACKGROUNDS: readonly ["none", "light", "dark"];
|
|
11527
|
+
export const BACKGROUNDS: readonly ["none", "light", "dark"];
|
|
11528
|
+
type Background = (typeof BACKGROUNDS)[number];
|
|
11449
11529
|
export interface EuiCollapsibleNavGroupInterface extends CommonProps {
|
|
11450
11530
|
/**
|
|
11451
11531
|
* ReactNode to render as this component's content
|
|
@@ -11480,7 +11560,8 @@ declare module '@elastic/eui/src/components/collapsible_nav/collapsible_nav_grou
|
|
|
11480
11560
|
* Title sizing equivalent to EuiTitle, but only `s` and smaller
|
|
11481
11561
|
*/
|
|
11482
11562
|
titleSize?: Exclude<EuiTitleProps['size'], 'l' | 'm'>;
|
|
11483
|
-
}
|
|
11563
|
+
}
|
|
11564
|
+
type GroupAsAccordion = EuiCollapsibleNavGroupInterface & Omit<EuiAccordionProps, 'id' | 'title'> & {
|
|
11484
11565
|
/**
|
|
11485
11566
|
* If `true`, wraps children in the body of an accordion,
|
|
11486
11567
|
* requiring the prop `title` to be used as the button.
|
|
@@ -11492,7 +11573,8 @@ declare module '@elastic/eui/src/components/collapsible_nav/collapsible_nav_grou
|
|
|
11492
11573
|
* with the option to add an iconType
|
|
11493
11574
|
*/
|
|
11494
11575
|
title: ReactNode;
|
|
11495
|
-
};
|
|
11576
|
+
};
|
|
11577
|
+
type GroupAsDiv = EuiCollapsibleNavGroupInterface & {
|
|
11496
11578
|
/**
|
|
11497
11579
|
* If `true`, wraps children in the body of an accordion,
|
|
11498
11580
|
* requiring the prop `title` to be used as the button.
|
|
@@ -11563,19 +11645,21 @@ declare module '@elastic/eui/src/components/flyout/_flyout_close_button.styles'
|
|
|
11563
11645
|
}
|
|
11564
11646
|
declare module '@elastic/eui/src/components/flyout/_flyout_close_button' {
|
|
11565
11647
|
import { FunctionComponent } from 'react';
|
|
11566
|
-
import type { EuiFlyoutProps } from '@elastic/eui/src/components/flyout/flyout';
|
|
11648
|
+
import type { EuiFlyoutProps } from '@elastic/eui/src/components/flyout/flyout';
|
|
11649
|
+
type EuiFlyoutCloseButtonProps = EuiFlyoutProps['closeButtonProps'] & Required<Pick<EuiFlyoutProps, 'closeButtonPosition' | 'onClose' | 'side'>>;
|
|
11567
11650
|
export const EuiFlyoutCloseButton: FunctionComponent<EuiFlyoutCloseButtonProps>;
|
|
11568
11651
|
export {};
|
|
11569
11652
|
|
|
11570
11653
|
}
|
|
11571
11654
|
declare module '@elastic/eui/src/components/flyout/flyout' {
|
|
11572
|
-
import
|
|
11655
|
+
import { ComponentPropsWithRef, CSSProperties, ElementType, JSX } from 'react';
|
|
11573
11656
|
import { EuiBreakpointSize } from '@elastic/eui/src/services';
|
|
11574
11657
|
import { CommonProps, PropsOfElement } from '@elastic/eui/src/components/common';
|
|
11575
11658
|
import { EuiFocusTrapProps } from '@elastic/eui/src/components/focus_trap';
|
|
11576
11659
|
import { EuiOverlayMaskProps } from '@elastic/eui/src/components/overlay_mask';
|
|
11577
11660
|
import type { EuiButtonIconPropsForButton } from '@elastic/eui/src/components/button';
|
|
11578
|
-
export const TYPES: readonly ["push", "overlay"];
|
|
11661
|
+
export const TYPES: readonly ["push", "overlay"];
|
|
11662
|
+
type _EuiFlyoutType = (typeof TYPES)[number];
|
|
11579
11663
|
export const SIDES: readonly ["left", "right"];
|
|
11580
11664
|
export type _EuiFlyoutSide = (typeof SIDES)[number];
|
|
11581
11665
|
export const SIZES: readonly ["s", "m", "l"];
|
|
@@ -11671,14 +11755,15 @@ declare module '@elastic/eui/src/components/flyout/flyout' {
|
|
|
11671
11755
|
* Set this to `false` if you need to disable this behavior for a specific reason.
|
|
11672
11756
|
*/
|
|
11673
11757
|
includeFixedHeadersInFocusTrap?: boolean;
|
|
11674
|
-
} const defaultElement = "div";
|
|
11758
|
+
} const defaultElement = "div";
|
|
11759
|
+
type Props<T extends ElementType> = CommonProps & {
|
|
11675
11760
|
/**
|
|
11676
11761
|
* Sets the HTML element for `EuiFlyout`
|
|
11677
11762
|
*/
|
|
11678
11763
|
as?: T;
|
|
11679
11764
|
} & _EuiFlyoutProps & Omit<PropsOfElement<T>, keyof _EuiFlyoutProps>;
|
|
11680
11765
|
export type EuiFlyoutProps<T extends ElementType = typeof defaultElement> = Props<T> & Omit<ComponentPropsWithRef<T>, keyof Props<T>>;
|
|
11681
|
-
export const EuiFlyout: <T extends
|
|
11766
|
+
export const EuiFlyout: <T extends ElementType = typeof defaultElement>(props: EuiFlyoutProps<T>) => JSX.Element;
|
|
11682
11767
|
export {};
|
|
11683
11768
|
|
|
11684
11769
|
}
|
|
@@ -11988,28 +12073,28 @@ declare module '@elastic/eui/src/components/resizable_container/resizable_button
|
|
|
11988
12073
|
* Defaults to displaying a resizer for vertical (y-axis) resizing.
|
|
11989
12074
|
* Set to `true` to display a resizer for horizontal (x-axis) resizing.
|
|
11990
12075
|
*/
|
|
11991
|
-
isHorizontal?: boolean
|
|
12076
|
+
isHorizontal?: boolean;
|
|
11992
12077
|
/**
|
|
11993
12078
|
* By default, EuiResizableButton will show a grab handle to indicate resizability.
|
|
11994
12079
|
* This indicator can be optionally hidden to show a plain border instead.
|
|
11995
12080
|
*/
|
|
11996
|
-
indicator?: "
|
|
12081
|
+
indicator?: "handle" | "border";
|
|
11997
12082
|
/**
|
|
11998
12083
|
* Allows customizing the alignment of grab `handle` indicators (does nothing for
|
|
11999
12084
|
* border indicators). Defaults to `center`, but consider using `start` for extremely
|
|
12000
12085
|
* tall content that scrolls off-screen
|
|
12001
12086
|
*/
|
|
12002
|
-
alignIndicator?: "center" | "start" | "end"
|
|
12087
|
+
alignIndicator?: "center" | "start" | "end";
|
|
12003
12088
|
/**
|
|
12004
12089
|
* By default, EuiResizableButton will overlap into the panels before/after it.
|
|
12005
12090
|
* This can occasionally occlude interactive elements like scrollbars. To prevent
|
|
12006
12091
|
* this overlap, use this prop to remove the overlap for the specified side.
|
|
12007
12092
|
*/
|
|
12008
|
-
accountForScrollbars?: "before" | "after" | "both"
|
|
12093
|
+
accountForScrollbars?: "before" | "after" | "both";
|
|
12009
12094
|
/**
|
|
12010
12095
|
* When disabled, the resizer button will be completely hidden
|
|
12011
12096
|
*/
|
|
12012
|
-
disabled?: boolean
|
|
12097
|
+
disabled?: boolean;
|
|
12013
12098
|
} & React.RefAttributes<HTMLButtonElement>>;
|
|
12014
12099
|
/**
|
|
12015
12100
|
* Resizer button specific to controlled EuiResizableContainer usage
|
|
@@ -12140,9 +12225,9 @@ declare module '@elastic/eui/src/components/resizable_container/resizable_panel'
|
|
|
12140
12225
|
}
|
|
12141
12226
|
export type ModeOptions = PanelModeType | [PanelModeType, Partial<ToggleOptions>];
|
|
12142
12227
|
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
|
|
12228
|
+
export const getModeType: (mode?: ModeOptions) => PanelModeType | undefined;
|
|
12229
|
+
export const getToggleOptions: (mode?: ModeOptions) => {
|
|
12230
|
+
'data-test-subj': string;
|
|
12146
12231
|
className: string | null;
|
|
12147
12232
|
position: string;
|
|
12148
12233
|
};
|
|
@@ -12221,9 +12306,9 @@ declare module '@elastic/eui/src/components/resizable_container/helpers' {
|
|
|
12221
12306
|
[key: string]: number;
|
|
12222
12307
|
}) => any;
|
|
12223
12308
|
}
|
|
12224
|
-
export const isTouchEvent: (event: MouseEvent | ReactMouseEvent | TouchEvent | ReactTouchEvent) => event is TouchEvent | ReactTouchEvent
|
|
12309
|
+
export const isTouchEvent: (event: MouseEvent | ReactMouseEvent | TouchEvent | ReactTouchEvent) => event is TouchEvent | ReactTouchEvent;
|
|
12225
12310
|
export const pxToPercent: (proportion: number, whole: number) => number;
|
|
12226
|
-
export const sizesOnly: (panelObject: EuiResizableContainerRegistry[
|
|
12311
|
+
export const sizesOnly: (panelObject: EuiResizableContainerRegistry["panels"]) => {
|
|
12227
12312
|
[key: string]: number;
|
|
12228
12313
|
};
|
|
12229
12314
|
export const getPanelMinSize: (panelMinSize: string[], containerSize: number) => number;
|
|
@@ -12398,7 +12483,8 @@ declare module '@elastic/eui/src/components/header/header.styles' {
|
|
|
12398
12483
|
}
|
|
12399
12484
|
declare module '@elastic/eui/src/components/collapsible_nav_beta/context' {
|
|
12400
12485
|
import { MouseEventHandler } from 'react';
|
|
12401
|
-
import { _EuiFlyoutSide } from '@elastic/eui/src/components/flyout/flyout';
|
|
12486
|
+
import { _EuiFlyoutSide } from '@elastic/eui/src/components/flyout/flyout';
|
|
12487
|
+
type _EuiCollapsibleNavContext = {
|
|
12402
12488
|
isCollapsed: boolean;
|
|
12403
12489
|
isPush: boolean;
|
|
12404
12490
|
isOverlayOpen: boolean;
|
|
@@ -12647,8 +12733,8 @@ declare module '@elastic/eui/src/components/collapsible_nav_beta/collapsible_nav
|
|
|
12647
12733
|
backgroundSelectedColor: string;
|
|
12648
12734
|
color: string;
|
|
12649
12735
|
rightIconColor: string;
|
|
12650
|
-
fontSize: import("
|
|
12651
|
-
lineHeight: import("
|
|
12736
|
+
fontSize: import("react").CSSProperties["fontSize"];
|
|
12737
|
+
lineHeight: import("react").CSSProperties["lineHeight"];
|
|
12652
12738
|
height: string;
|
|
12653
12739
|
padding: string;
|
|
12654
12740
|
};
|
|
@@ -12745,7 +12831,8 @@ declare module '@elastic/eui/src/components/collapsible_nav_beta/collapsible_nav
|
|
|
12745
12831
|
declare module '@elastic/eui/src/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_link' {
|
|
12746
12832
|
import { FunctionComponent, ReactNode } from 'react';
|
|
12747
12833
|
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';
|
|
12834
|
+
import type { _SharedEuiCollapsibleNavItemProps, _EuiCollapsibleNavItemDisplayProps, EuiCollapsibleNavItemProps } from '@elastic/eui/src/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_item';
|
|
12835
|
+
type EuiCollapsibleNavLinkProps = Omit<EuiLinkProps, 'children'> & _SharedEuiCollapsibleNavItemProps & _EuiCollapsibleNavItemDisplayProps & Pick<EuiCollapsibleNavItemProps, 'href' | 'linkProps'> & {
|
|
12749
12836
|
children: ReactNode;
|
|
12750
12837
|
isInteractive?: boolean;
|
|
12751
12838
|
isNotAccordion?: boolean;
|
|
@@ -12778,7 +12865,8 @@ declare module '@elastic/eui/src/components/collapsible_nav_beta/collapsible_nav
|
|
|
12778
12865
|
}
|
|
12779
12866
|
declare module '@elastic/eui/src/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_accordion' {
|
|
12780
12867
|
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';
|
|
12868
|
+
import { type _SharedEuiCollapsibleNavItemProps, type _EuiCollapsibleNavItemDisplayProps, type EuiCollapsibleNavItemProps } from '@elastic/eui/src/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_item';
|
|
12869
|
+
type EuiCollapsibleNavAccordionProps = _SharedEuiCollapsibleNavItemProps & _EuiCollapsibleNavItemDisplayProps & Pick<EuiCollapsibleNavItemProps, 'accordionProps'> & Required<Pick<EuiCollapsibleNavItemProps, 'items'>> & {
|
|
12782
12870
|
buttonContent: ReactNode;
|
|
12783
12871
|
};
|
|
12784
12872
|
/**
|
|
@@ -12794,7 +12882,8 @@ declare module '@elastic/eui/src/components/collapsible_nav_beta/collapsible_nav
|
|
|
12794
12882
|
}
|
|
12795
12883
|
declare module '@elastic/eui/src/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_group' {
|
|
12796
12884
|
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';
|
|
12885
|
+
import { type _SharedEuiCollapsibleNavItemProps, type _EuiCollapsibleNavItemDisplayProps, type EuiCollapsibleNavItemProps } from '@elastic/eui/src/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_item';
|
|
12886
|
+
type EuiCollapsibleNavGroupProps = _SharedEuiCollapsibleNavItemProps & _EuiCollapsibleNavItemDisplayProps & Required<Pick<EuiCollapsibleNavItemProps, 'items'>> & {
|
|
12798
12887
|
header?: ReactNode;
|
|
12799
12888
|
};
|
|
12800
12889
|
/**
|
|
@@ -12906,7 +12995,12 @@ declare module '@elastic/eui/src/components/collapsible_nav_beta/collapsible_nav
|
|
|
12906
12995
|
* Sub-items can either be a totally custom rendered item,
|
|
12907
12996
|
* or they can simply be more links or accordions
|
|
12908
12997
|
*/
|
|
12909
|
-
export const EuiCollapsibleNavSubItem: FunctionComponent<EuiCollapsibleNavSubItemProps>;
|
|
12998
|
+
export const EuiCollapsibleNavSubItem: FunctionComponent<EuiCollapsibleNavSubItemProps>;
|
|
12999
|
+
/**
|
|
13000
|
+
* Reuseable component for rendering a group of sub items
|
|
13001
|
+
* Used by both `EuiCollapsibleNavGroup` and `EuiCollapsibleNavAccordion`
|
|
13002
|
+
*/
|
|
13003
|
+
type EuiCollapsibleNavSubItemsProps = HTMLAttributes<HTMLDivElement> & _EuiCollapsibleNavItemDisplayProps & {
|
|
12910
13004
|
items: EuiCollapsibleNavSubItemProps[];
|
|
12911
13005
|
};
|
|
12912
13006
|
export const EuiCollapsibleNavSubItems: FunctionComponent<EuiCollapsibleNavSubItemsProps>;
|
|
@@ -12936,7 +13030,8 @@ declare module '@elastic/eui/src/components/list_group/list_group_item_extra_act
|
|
|
12936
13030
|
import { EuiButtonIconPropsForButton } from '@elastic/eui/src/components/button';
|
|
12937
13031
|
export type EuiListGroupItemExtraActionProps = {
|
|
12938
13032
|
alwaysShow?: boolean;
|
|
12939
|
-
} & EuiButtonIconPropsForButton;
|
|
13033
|
+
} & EuiButtonIconPropsForButton;
|
|
13034
|
+
type _FromEuiListGroupItem = {
|
|
12940
13035
|
parentIsDisabled?: boolean;
|
|
12941
13036
|
};
|
|
12942
13037
|
export const EuiListGroupItemExtraAction: FunctionComponent<EuiListGroupItemExtraActionProps & _FromEuiListGroupItem>;
|
|
@@ -13247,7 +13342,14 @@ declare module '@elastic/eui/src/components/collapsible_nav_beta/_kibana_solutio
|
|
|
13247
13342
|
*
|
|
13248
13343
|
* This component is **very** specific to Kibana and is not meant to be a generic component.
|
|
13249
13344
|
*/
|
|
13250
|
-
export const KibanaCollapsibleNavSolution: FunctionComponent<KibanaCollapsibleNavSolutionProps>;
|
|
13345
|
+
export const KibanaCollapsibleNavSolution: FunctionComponent<KibanaCollapsibleNavSolutionProps>;
|
|
13346
|
+
/**
|
|
13347
|
+
* Tweak EuiListGroup's items API to match EuiCollapsibleNav's
|
|
13348
|
+
* more closely (primarily label->title, iconType->icon),
|
|
13349
|
+
* and also to allow passing secondary items in the same array
|
|
13350
|
+
* (which will get rendered in a separate non-bordered group)
|
|
13351
|
+
*/
|
|
13352
|
+
type EuiListGroupItemsModified = Array<Omit<EuiListGroupItemProps, 'label' | 'iconType' | 'icon'> & {
|
|
13251
13353
|
title: string;
|
|
13252
13354
|
icon?: EuiListGroupItemProps['iconType'];
|
|
13253
13355
|
isSecondary?: boolean;
|
|
@@ -13359,17 +13461,17 @@ declare module '@elastic/eui/src/components/color_picker/color_picker_swatch' {
|
|
|
13359
13461
|
};
|
|
13360
13462
|
};
|
|
13361
13463
|
export const EuiColorPickerSwatch: React.ForwardRefExoticComponent<CommonProps & Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "color"> & {
|
|
13362
|
-
color?: string
|
|
13464
|
+
color?: string;
|
|
13363
13465
|
/**
|
|
13364
13466
|
* renders a tooltip with the color value to provide a visual text alternative
|
|
13365
13467
|
* @default true
|
|
13366
13468
|
*/
|
|
13367
|
-
showToolTip?: boolean
|
|
13469
|
+
showToolTip?: boolean;
|
|
13368
13470
|
/** Additional props for the EuiToolip when `showToolTip={true}` */
|
|
13369
|
-
toolTipProps?:
|
|
13370
|
-
delay?:
|
|
13371
|
-
position?:
|
|
13372
|
-
}
|
|
13471
|
+
toolTipProps?: Omit<EuiToolTipProps, "children" | "delay" | "position"> & {
|
|
13472
|
+
delay?: EuiToolTipProps["delay"];
|
|
13473
|
+
position?: EuiToolTipProps["position"];
|
|
13474
|
+
};
|
|
13373
13475
|
} & React.RefAttributes<HTMLButtonElement>>;
|
|
13374
13476
|
|
|
13375
13477
|
}
|
|
@@ -13377,6 +13479,7 @@ declare module '@elastic/eui/src/components/color_picker/hue.styles' {
|
|
|
13377
13479
|
import { UseEuiTheme } from '@elastic/eui/src/services';
|
|
13378
13480
|
export const euiHueStyles: (euiThemeContext: UseEuiTheme) => {
|
|
13379
13481
|
euiHue: import("@emotion/react").SerializedStyles;
|
|
13482
|
+
euiHue__tooltip: import("@emotion/react").SerializedStyles;
|
|
13380
13483
|
euiHue__range: import("@emotion/react").SerializedStyles;
|
|
13381
13484
|
};
|
|
13382
13485
|
|
|
@@ -13398,6 +13501,7 @@ declare module '@elastic/eui/src/components/color_picker/saturation.styles' {
|
|
|
13398
13501
|
euiSaturation: import("@emotion/react").SerializedStyles;
|
|
13399
13502
|
euiSaturation__lightness: import("@emotion/react").SerializedStyles;
|
|
13400
13503
|
euiSaturation__saturation: import("@emotion/react").SerializedStyles;
|
|
13504
|
+
euiSaturation__tooltip: import("@emotion/react").SerializedStyles;
|
|
13401
13505
|
euiSaturation__indicator: import("@emotion/react").SerializedStyles;
|
|
13402
13506
|
};
|
|
13403
13507
|
|
|
@@ -13416,7 +13520,7 @@ declare module '@elastic/eui/src/components/color_picker/saturation' {
|
|
|
13416
13520
|
hex?: string;
|
|
13417
13521
|
};
|
|
13418
13522
|
export const EuiSaturation: React.ForwardRefExoticComponent<Omit<React.HTMLAttributes<HTMLDivElement>, keyof HTMLDivElementOverrides> & CommonProps & HTMLDivElementOverrides & {
|
|
13419
|
-
hex?: string
|
|
13523
|
+
hex?: string;
|
|
13420
13524
|
} & React.RefAttributes<HTMLDivElement>>;
|
|
13421
13525
|
export {};
|
|
13422
13526
|
|
|
@@ -13435,7 +13539,9 @@ declare module '@elastic/eui/src/components/color_picker/color_picker' {
|
|
|
13435
13539
|
import { FunctionComponent, HTMLAttributes, ReactElement } from 'react';
|
|
13436
13540
|
import { ColorSpaces } from 'chroma-js';
|
|
13437
13541
|
import { CommonProps } from '@elastic/eui/src/components/common';
|
|
13438
|
-
import { EuiFormControlLayoutProps } from '@elastic/eui/src/components/form';
|
|
13542
|
+
import { EuiFormControlLayoutProps } from '@elastic/eui/src/components/form';
|
|
13543
|
+
type EuiColorPickerDisplay = 'default' | 'inline';
|
|
13544
|
+
type EuiColorPickerMode = 'default' | 'swatch' | 'picker' | 'secondaryInput';
|
|
13439
13545
|
export interface EuiColorPickerOutput {
|
|
13440
13546
|
rgba: ColorSpaces['rgba'];
|
|
13441
13547
|
hex: string;
|
|
@@ -13611,8 +13717,8 @@ declare module '@elastic/eui/src/components/combo_box/matching_options' {
|
|
|
13611
13717
|
interface GetSelectedOptionForSearchValue<T> extends Pick<GetMatchingOptions<T>, 'isCaseSensitive' | 'searchValue' | 'selectedOptions'> {
|
|
13612
13718
|
optionKey?: string;
|
|
13613
13719
|
}
|
|
13614
|
-
export const transformForCaseSensitivity: (string: string, isCaseSensitive?: boolean
|
|
13615
|
-
export const flattenOptionGroups: <T>(optionsOrGroups: EuiComboBoxOptionOption<T
|
|
13720
|
+
export const transformForCaseSensitivity: (string: string, isCaseSensitive?: boolean) => string;
|
|
13721
|
+
export const flattenOptionGroups: <T>(optionsOrGroups: Array<EuiComboBoxOptionOption<T>>) => EuiComboBoxOptionOption<T>[];
|
|
13616
13722
|
export const getSelectedOptionForSearchValue: <T>({ isCaseSensitive, searchValue, selectedOptions, optionKey, }: GetSelectedOptionForSearchValue<T>) => EuiComboBoxOptionOption<T> | undefined;
|
|
13617
13723
|
export const getMatchingOptions: <T>({ options, selectedOptions, searchValue, optionMatcher, isCaseSensitive, isPreFiltered, showPrevSelected, sortMatchesBy, }: GetMatchingOptions<T>) => EuiComboBoxOptionOption<T>[];
|
|
13618
13724
|
/**
|
|
@@ -13629,12 +13735,10 @@ declare module '@elastic/eui/src/components/combo_box/utils' {
|
|
|
13629
13735
|
/**
|
|
13630
13736
|
* DRY util for rendering an option with its prepend and append properties
|
|
13631
13737
|
*/
|
|
13632
|
-
export const EuiComboBoxOptionAppendPrepend: <T>({ children, option, classNamePrefix, marginSize, }: {
|
|
13633
|
-
|
|
13634
|
-
|
|
13635
|
-
|
|
13636
|
-
classNamePrefix?: string | undefined;
|
|
13637
|
-
marginSize?: "s" | "xxs" | "xs" | undefined;
|
|
13738
|
+
export const EuiComboBoxOptionAppendPrepend: <T>({ children, option, classNamePrefix, marginSize, }: PropsWithChildren & {
|
|
13739
|
+
option?: EuiComboBoxOptionOption<T>;
|
|
13740
|
+
classNamePrefix?: string;
|
|
13741
|
+
marginSize?: "s" | "xs" | "xxs";
|
|
13638
13742
|
}) => React.JSX.Element;
|
|
13639
13743
|
|
|
13640
13744
|
}
|
|
@@ -13964,7 +14068,7 @@ declare module '@elastic/eui/src/components/combo_box/combo_box_options_list/com
|
|
|
13964
14068
|
ListRow: ({ data, index, style }: ListChildComponentProps) => React.JSX.Element;
|
|
13965
14069
|
optionWidth: number | undefined;
|
|
13966
14070
|
setOptionWidth: (width: number) => void;
|
|
13967
|
-
renderTruncatedOption: (text: string, truncationProps?: EuiComboBoxOptionsListProps<T>[
|
|
14071
|
+
renderTruncatedOption: (text: string, truncationProps?: EuiComboBoxOptionsListProps<T>["truncationProps"]) => string | React.JSX.Element;
|
|
13968
14072
|
render(): React.JSX.Element;
|
|
13969
14073
|
}
|
|
13970
14074
|
|
|
@@ -13995,7 +14099,8 @@ declare module '@elastic/eui/src/components/combo_box/combo_box' {
|
|
|
13995
14099
|
import { SortMatchesBy } from '@elastic/eui/src/components/combo_box/matching_options';
|
|
13996
14100
|
import { EuiComboBoxInputProps } from '@elastic/eui/src/components/combo_box/combo_box_input/combo_box_input';
|
|
13997
14101
|
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';
|
|
14102
|
+
import { OptionHandler, RefInstance, EuiComboBoxOptionOption, EuiComboBoxSingleSelectionShape, EuiComboBoxOptionMatcher } from '@elastic/eui/src/components/combo_box/types';
|
|
14103
|
+
type DrillProps<T> = Pick<EuiComboBoxOptionsListProps<T>, 'customOptionText' | 'onCreateOption' | 'options' | 'renderOption' | 'selectedOptions'>;
|
|
13999
14104
|
export interface _EuiComboBoxProps<T> extends CommonProps, Omit<HTMLAttributes<HTMLDivElement>, 'onChange'>, DrillProps<T> {
|
|
14000
14105
|
'data-test-subj'?: string;
|
|
14001
14106
|
/**
|
|
@@ -14114,7 +14219,16 @@ declare module '@elastic/eui/src/components/combo_box/combo_box' {
|
|
|
14114
14219
|
* (except for props that control state).
|
|
14115
14220
|
*/
|
|
14116
14221
|
inputPopoverProps?: Partial<Omit<EuiInputPopoverProps, 'input' | 'isOpen' | 'closePopover'>>;
|
|
14117
|
-
}
|
|
14222
|
+
}
|
|
14223
|
+
/**
|
|
14224
|
+
* 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)
|
|
14225
|
+
* we can't directly export the above Props definitions, as the defaulted values are not made optional
|
|
14226
|
+
* as it isn't processed by LibraryManagedAttributes. To get around this, we:
|
|
14227
|
+
* - remove the props which have default values applied
|
|
14228
|
+
* - additionally re-define `options` and `selectedOptions` defaults, necessary as static members can't access generics and become never[]
|
|
14229
|
+
* - export (Props - Defaults) & Partial<Defaults>
|
|
14230
|
+
*/
|
|
14231
|
+
type DefaultProps<T> = Omit<(typeof EuiComboBox)['defaultProps'], 'options' | 'selectedOptions' | 'optionMatcher'> & {
|
|
14118
14232
|
options: Array<EuiComboBoxOptionOption<T>>;
|
|
14119
14233
|
selectedOptions: Array<EuiComboBoxOptionOption<T>>;
|
|
14120
14234
|
optionMatcher: EuiComboBoxOptionMatcher<T>;
|
|
@@ -14164,7 +14278,7 @@ declare module '@elastic/eui/src/components/combo_box/combo_box' {
|
|
|
14164
14278
|
onKeyDown: KeyboardEventHandler<HTMLDivElement>;
|
|
14165
14279
|
onOptionEnterKey: OptionHandler<T>;
|
|
14166
14280
|
onOptionClick: OptionHandler<T>;
|
|
14167
|
-
onAddOption: (addedOption: EuiComboBoxOptionOption<T>, isContainerBlur?: boolean
|
|
14281
|
+
onAddOption: (addedOption: EuiComboBoxOptionOption<T>, isContainerBlur?: boolean) => void;
|
|
14168
14282
|
onRemoveOption: OptionHandler<T>;
|
|
14169
14283
|
clearSelectedOptions: () => void;
|
|
14170
14284
|
onComboBoxClick: () => void;
|
|
@@ -14447,7 +14561,7 @@ declare module '@elastic/eui/src/components/datagrid/utils/data_grid_schema' {
|
|
|
14447
14561
|
};
|
|
14448
14562
|
export const useDetectSchema: ({ columns, inMemory, inMemoryValues, schemaDetectors, autoDetectSchema, }: UseSchemaProps) => EuiDataGridSchema;
|
|
14449
14563
|
export const useMergedSchema: (props: UseSchemaProps) => {
|
|
14450
|
-
[
|
|
14564
|
+
[columnId: string]: {
|
|
14451
14565
|
columnType: string | null;
|
|
14452
14566
|
};
|
|
14453
14567
|
};
|
|
@@ -14487,7 +14601,7 @@ declare module '@elastic/eui/src/components/datagrid/utils/row_heights' {
|
|
|
14487
14601
|
/**
|
|
14488
14602
|
* Height types
|
|
14489
14603
|
*/
|
|
14490
|
-
getHeightType: (option?: EuiDataGridRowHeightOption
|
|
14604
|
+
getHeightType: (option?: EuiDataGridRowHeightOption) => "auto" | "default" | "lineCount" | "numerical";
|
|
14491
14605
|
/**
|
|
14492
14606
|
* Line count utils
|
|
14493
14607
|
*/
|
|
@@ -14536,12 +14650,12 @@ declare module '@elastic/eui/src/components/datagrid/utils/row_heights' {
|
|
|
14536
14650
|
gridRef: MutableRefObject<ImperativeGridApi | null>;
|
|
14537
14651
|
outerGridElementRef: MutableRefObject<HTMLDivElement | null>;
|
|
14538
14652
|
gridItemsRenderedRef: MutableRefObject<GridOnItemsRenderedProps | null>;
|
|
14539
|
-
}
|
|
14540
|
-
rowHeightsOptions?: EuiDataGridRowHeightsOptions
|
|
14653
|
+
};
|
|
14654
|
+
rowHeightsOptions?: EuiDataGridRowHeightsOptions;
|
|
14541
14655
|
columns: EuiDataGridColumn[];
|
|
14542
14656
|
}) => RowHeightUtils;
|
|
14543
14657
|
export const useDefaultRowHeight: ({ rowHeightsOptions, rowHeightUtils, }: {
|
|
14544
|
-
rowHeightsOptions?: EuiDataGridRowHeightsOptions
|
|
14658
|
+
rowHeightsOptions?: EuiDataGridRowHeightsOptions;
|
|
14545
14659
|
rowHeightUtils: RowHeightUtilsType;
|
|
14546
14660
|
}) => {
|
|
14547
14661
|
defaultRowHeight: number;
|
|
@@ -15206,7 +15320,9 @@ declare module '@elastic/eui/src/components/datagrid/data_grid_types' {
|
|
|
15206
15320
|
* Accepts any props that `EuiPopover` accepts, except for `button` and `closePopover`.
|
|
15207
15321
|
*/
|
|
15208
15322
|
setCellPopoverProps: (props: Omit<EuiPopoverProps, 'button' | 'closePopover'>) => void;
|
|
15209
|
-
}
|
|
15323
|
+
}
|
|
15324
|
+
type CellContext = Omit<Record<string, any>, keyof EuiDataGridCellValueElementProps>;
|
|
15325
|
+
type CellPropsWithContext = CellContext & EuiDataGridCellValueElementProps;
|
|
15210
15326
|
export type RenderCellValue = ((props: CellPropsWithContext) => ReactNode) | ComponentClass<CellPropsWithContext>;
|
|
15211
15327
|
export interface EuiDataGridCellProps {
|
|
15212
15328
|
rowIndex: number;
|
|
@@ -15684,7 +15800,8 @@ declare module '@elastic/eui/src/components/datagrid/data_grid_types' {
|
|
|
15684
15800
|
}
|
|
15685
15801
|
declare module '@elastic/eui/src/components/drag_and_drop/drag_drop_context' {
|
|
15686
15802
|
import React, { FunctionComponent } from 'react';
|
|
15687
|
-
import { DragDropContextProps } from '@hello-pangea/dnd';
|
|
15803
|
+
import { DragDropContextProps } from '@hello-pangea/dnd';
|
|
15804
|
+
type EuiDraggingType = string | null;
|
|
15688
15805
|
export interface EuiDragDropContextProps {
|
|
15689
15806
|
isDraggingType: EuiDraggingType;
|
|
15690
15807
|
}
|
|
@@ -15844,7 +15961,8 @@ declare module '@elastic/eui/src/components/drag_and_drop' {
|
|
|
15844
15961
|
declare module '@elastic/eui/src/components/datagrid/utils/focus' {
|
|
15845
15962
|
import { HTMLAttributes, KeyboardEvent } from 'react';
|
|
15846
15963
|
import { DataGridFocusContextShape, EuiDataGridFocusedCell, EuiDataGridProps } from '@elastic/eui/src/components/datagrid/data_grid_types';
|
|
15847
|
-
export const DataGridFocusContext: import("react").Context<DataGridFocusContextShape>;
|
|
15964
|
+
export const DataGridFocusContext: import("react").Context<DataGridFocusContextShape>;
|
|
15965
|
+
type FocusProps = Pick<HTMLAttributes<HTMLDivElement>, 'tabIndex' | 'onKeyUp'>;
|
|
15848
15966
|
/**
|
|
15849
15967
|
* Main focus context and overarching focus state management
|
|
15850
15968
|
*/
|
|
@@ -15860,8 +15978,8 @@ declare module '@elastic/eui/src/components/datagrid/utils/focus' {
|
|
|
15860
15978
|
visibleColCount: number;
|
|
15861
15979
|
visibleRowCount: number;
|
|
15862
15980
|
visibleRowStartIndex: number;
|
|
15863
|
-
rowCount: EuiDataGridProps[
|
|
15864
|
-
pagination: Required<EuiDataGridProps[
|
|
15981
|
+
rowCount: EuiDataGridProps["rowCount"];
|
|
15982
|
+
pagination: Required<EuiDataGridProps["pagination"]>;
|
|
15865
15983
|
hasFooter: boolean;
|
|
15866
15984
|
focusContext: DataGridFocusContextShape;
|
|
15867
15985
|
}) => (event: KeyboardEvent<HTMLDivElement>) => void;
|
|
@@ -15899,13 +16017,13 @@ declare module '@elastic/eui/src/components/datagrid/data_grid.styles' {
|
|
|
15899
16017
|
export const euiDataGridStyles: (euiThemeContext: UseEuiTheme) => {
|
|
15900
16018
|
euiDataGrid: import("@emotion/react").SerializedStyles;
|
|
15901
16019
|
cellPadding: {
|
|
15902
|
-
cellPadding: (size:
|
|
16020
|
+
cellPadding: (size: "s" | "m" | "l") => import("@emotion/react").SerializedStyles;
|
|
15903
16021
|
readonly s: import("@emotion/react").SerializedStyles;
|
|
15904
16022
|
readonly m: import("@emotion/react").SerializedStyles;
|
|
15905
16023
|
readonly l: import("@emotion/react").SerializedStyles;
|
|
15906
16024
|
};
|
|
15907
16025
|
fontSize: {
|
|
15908
|
-
fontSize: (size:
|
|
16026
|
+
fontSize: (size: "s" | "m") => import("@emotion/react").SerializedStyles;
|
|
15909
16027
|
readonly s: import("@emotion/react").SerializedStyles;
|
|
15910
16028
|
readonly m: import("@emotion/react").SerializedStyles;
|
|
15911
16029
|
readonly l: import("@emotion/react").SerializedStyles;
|
|
@@ -15957,7 +16075,13 @@ declare module '@elastic/eui/src/components/datagrid/body/header/draggable_colum
|
|
|
15957
16075
|
children: (dragProps?: Partial<DraggableProvidedDragHandleProps> & {
|
|
15958
16076
|
'data-column-moving'?: boolean;
|
|
15959
16077
|
}) => ReactElement;
|
|
15960
|
-
}>;
|
|
16078
|
+
}>;
|
|
16079
|
+
/**
|
|
16080
|
+
* Components for conditionally rendering drag/drop wrappers
|
|
16081
|
+
* Allows us to conditionally call hooks while not instantiating a bunch
|
|
16082
|
+
* of extra state/etc., since draggable columns isn't yet(?) a default
|
|
16083
|
+
*/
|
|
16084
|
+
type CanDragAndDropColumns = {
|
|
15961
16085
|
canDragAndDropColumns: boolean;
|
|
15962
16086
|
};
|
|
15963
16087
|
export const ConditionalDroppableColumns: FunctionComponent<ComponentProps<typeof DroppableColumns> & CanDragAndDropColumns>;
|
|
@@ -15997,7 +16121,7 @@ declare module '@elastic/eui/src/utils/prop_types/with_required_prop' {
|
|
|
15997
16121
|
*
|
|
15998
16122
|
* this validator warns if ExampleComponent is passed an `items` prop but not `itemId`
|
|
15999
16123
|
*/
|
|
16000
|
-
export const withRequiredProp: (proptype: any, requiredPropName: string, messageDescription?: string
|
|
16124
|
+
export const withRequiredProp: (proptype: any, requiredPropName: string, messageDescription?: string) => (...args: any[]) => any;
|
|
16001
16125
|
|
|
16002
16126
|
}
|
|
16003
16127
|
declare module '@elastic/eui/src/utils/prop_types' {
|
|
@@ -16006,7 +16130,7 @@ declare module '@elastic/eui/src/utils/prop_types' {
|
|
|
16006
16130
|
(props: T, propName: keyof T, componentName: string): Error | null;
|
|
16007
16131
|
isRequired(props: T, propName: keyof T, componentName: string): Error | null;
|
|
16008
16132
|
};
|
|
16009
|
-
withRequiredProp: (proptype: any, requiredPropName: string, messageDescription?: string
|
|
16133
|
+
withRequiredProp: (proptype: any, requiredPropName: string, messageDescription?: string) => (...args: any[]) => any;
|
|
16010
16134
|
};
|
|
16011
16135
|
|
|
16012
16136
|
}
|
|
@@ -16163,7 +16287,7 @@ declare module '@elastic/eui/src/components/datagrid/body/header/column_actions'
|
|
|
16163
16287
|
import React, { Ref, KeyboardEventHandler, FunctionComponent } from 'react';
|
|
16164
16288
|
import { EuiListGroupItemProps } from '@elastic/eui/src/components/list_group';
|
|
16165
16289
|
import { EuiDataGridHeaderCellProps, EuiDataGridColumn, EuiDataGridColumnActions, EuiDataGridSchema, EuiDataGridSchemaDetector, EuiDataGridSorting, DataGridFocusContextShape } from '@elastic/eui/src/components/datagrid/data_grid_types';
|
|
16166
|
-
export const useHasColumnActions: (columnActions: EuiDataGridColumn[
|
|
16290
|
+
export const useHasColumnActions: (columnActions: EuiDataGridColumn["actions"]) => boolean;
|
|
16167
16291
|
export type PropsFromColumnActions = {
|
|
16168
16292
|
className?: string;
|
|
16169
16293
|
onKeyDown?: KeyboardEventHandler;
|
|
@@ -16204,16 +16328,24 @@ declare module '@elastic/eui/src/components/datagrid/body/header/column_actions'
|
|
|
16204
16328
|
setFocusedCell: DataGridFocusContextShape['setFocusedCell'];
|
|
16205
16329
|
columnFocusIndex: number;
|
|
16206
16330
|
}
|
|
16207
|
-
export const getColumnActions: ({ column, columns, schema, schemaDetectors, setVisibleColumns, focusFirstVisibleInteractiveCell, setIsPopoverOpen, sorting, switchColumnPos, setIsColumnMoving, setFocusedCell, columnFocusIndex, }: GetColumnActions) => EuiListGroupItemProps[];
|
|
16208
|
-
|
|
16331
|
+
export const getColumnActions: ({ column, columns, schema, schemaDetectors, setVisibleColumns, focusFirstVisibleInteractiveCell, setIsPopoverOpen, sorting, switchColumnPos, setIsColumnMoving, setFocusedCell, columnFocusIndex, }: GetColumnActions) => EuiListGroupItemProps[];
|
|
16332
|
+
/**
|
|
16333
|
+
* Hide column action
|
|
16334
|
+
*/
|
|
16335
|
+
type HideColumnAction = Pick<GetColumnActions, 'column' | 'columns' | 'setVisibleColumns' | 'focusFirstVisibleInteractiveCell'>;
|
|
16336
|
+
export const getHideColumnAction: ({ column, columns, setVisibleColumns, focusFirstVisibleInteractiveCell, }: HideColumnAction) => EuiListGroupItemProps[];
|
|
16337
|
+
/**
|
|
16338
|
+
* Sort column actions
|
|
16339
|
+
*/
|
|
16340
|
+
type SortColumnActions = Pick<GetColumnActions, 'column' | 'sorting' | 'schema' | 'schemaDetectors'>;
|
|
16209
16341
|
export const getSortColumnActions: ({ column, sorting, schema, schemaDetectors, }: SortColumnActions) => EuiListGroupItemProps[];
|
|
16210
16342
|
/**
|
|
16211
16343
|
* Column action utility helpers - mostly syntactical sugar for adding an extra
|
|
16212
16344
|
* actions !== false checks, which we make an early return for in the main fn,
|
|
16213
16345
|
* but that the individual utils don't know about and Typescript complains about
|
|
16214
16346
|
*/
|
|
16215
|
-
export const isColumnActionEnabled: (actionKey: keyof EuiDataGridColumnActions, actions: EuiDataGridColumn[
|
|
16216
|
-
export const getColumnActionConfig: (action: EuiListGroupItemProps, actionKey: keyof EuiDataGridColumnActions, actions: EuiDataGridColumn[
|
|
16347
|
+
export const isColumnActionEnabled: (actionKey: keyof EuiDataGridColumnActions, actions: EuiDataGridColumn["actions"]) => boolean;
|
|
16348
|
+
export const getColumnActionConfig: (action: EuiListGroupItemProps, actionKey: keyof EuiDataGridColumnActions, actions: EuiDataGridColumn["actions"]) => EuiListGroupItemProps;
|
|
16217
16349
|
export {};
|
|
16218
16350
|
|
|
16219
16351
|
}
|
|
@@ -16224,7 +16356,7 @@ declare module '@elastic/eui/src/components/datagrid/body/header/column_sorting'
|
|
|
16224
16356
|
* Column sorting utility helpers
|
|
16225
16357
|
*/
|
|
16226
16358
|
export const useColumnSorting: ({ sorting, id, }: {
|
|
16227
|
-
sorting?: EuiDataGridSorting
|
|
16359
|
+
sorting?: EuiDataGridSorting;
|
|
16228
16360
|
id: string;
|
|
16229
16361
|
}) => {
|
|
16230
16362
|
sortingArrow: React.JSX.Element | null;
|
|
@@ -16312,12 +16444,12 @@ declare module '@elastic/eui/src/components/datagrid/body/cell/data_grid_cell_ac
|
|
|
16312
16444
|
export const EuiDataGridCellActions: ({ onExpandClick, popoverAnchorRef, column, rowIndex, colIndex, }: {
|
|
16313
16445
|
onExpandClick: () => void;
|
|
16314
16446
|
popoverAnchorRef: Ref<HTMLDivElement>;
|
|
16315
|
-
column?: EuiDataGridColumn
|
|
16447
|
+
column?: EuiDataGridColumn;
|
|
16316
16448
|
rowIndex: number;
|
|
16317
16449
|
colIndex: number;
|
|
16318
16450
|
}) => React.JSX.Element;
|
|
16319
16451
|
export const EuiDataGridCellPopoverActions: ({ rowIndex, colIndex, column, }: {
|
|
16320
|
-
column?: EuiDataGridColumn
|
|
16452
|
+
column?: EuiDataGridColumn;
|
|
16321
16453
|
colIndex: number;
|
|
16322
16454
|
rowIndex: number;
|
|
16323
16455
|
}) => React.JSX.Element;
|
|
@@ -16345,13 +16477,13 @@ declare module '@elastic/eui/src/components/datagrid/body/cell/data_grid_cell_po
|
|
|
16345
16477
|
|
|
16346
16478
|
}
|
|
16347
16479
|
declare module '@elastic/eui/src/components/datagrid/body/cell/data_grid_cell' {
|
|
16348
|
-
import React, { Component, ContextType, KeyboardEvent } from 'react';
|
|
16480
|
+
import React, { Component, ContextType, KeyboardEvent, MutableRefObject } from 'react';
|
|
16349
16481
|
import { DataGridFocusContext } from '@elastic/eui/src/components/datagrid/utils/focus';
|
|
16350
16482
|
import { EuiDataGridCellProps, EuiDataGridCellState, EuiDataGridSetCellProps } from '@elastic/eui/src/components/datagrid/data_grid_types';
|
|
16351
16483
|
export class EuiDataGridCell extends Component<EuiDataGridCellProps, EuiDataGridCellState> {
|
|
16352
|
-
cellRef:
|
|
16484
|
+
cellRef: MutableRefObject<HTMLDivElement | null>;
|
|
16353
16485
|
contentObserver: any;
|
|
16354
|
-
popoverAnchorRef:
|
|
16486
|
+
popoverAnchorRef: MutableRefObject<HTMLDivElement | null>;
|
|
16355
16487
|
cellContentsRef: HTMLDivElement | null;
|
|
16356
16488
|
state: EuiDataGridCellState;
|
|
16357
16489
|
unsubscribeCell?: Function;
|
|
@@ -16419,11 +16551,11 @@ declare module '@elastic/eui/src/components/datagrid/body/footer/data_grid_foote
|
|
|
16419
16551
|
columns: import ("@elastic/eui/src/components/datagrid/data_grid_types").EuiDataGridColumn[];
|
|
16420
16552
|
schema: import ("@elastic/eui/src/components/datagrid/data_grid_types").EuiDataGridSchema;
|
|
16421
16553
|
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
|
|
16554
|
+
defaultColumnWidth?: number | null;
|
|
16555
|
+
renderCellValue: import ("@elastic/eui/src/components/datagrid/data_grid_types").EuiDataGridCellProps["renderCellValue"];
|
|
16556
|
+
renderCellPopover?: import ("@elastic/eui/src/components/datagrid/data_grid_types").EuiDataGridCellProps["renderCellPopover"];
|
|
16557
|
+
interactiveCellId: import ("@elastic/eui/src/components/datagrid/data_grid_types").EuiDataGridCellProps["interactiveCellId"];
|
|
16558
|
+
visibleRowIndex?: number;
|
|
16427
16559
|
visibleColCount: number;
|
|
16428
16560
|
gridStyles: import ("@elastic/eui/src/components/datagrid/data_grid_types").EuiDataGridStyle;
|
|
16429
16561
|
} & React.RefAttributes<HTMLDivElement>>>;
|
|
@@ -16432,7 +16564,8 @@ declare module '@elastic/eui/src/components/datagrid/body/footer/data_grid_foote
|
|
|
16432
16564
|
}
|
|
16433
16565
|
declare module '@elastic/eui/src/components/datagrid/body/footer/use_data_grid_footer' {
|
|
16434
16566
|
import React from 'react';
|
|
16435
|
-
import { EuiDataGridFooterRowProps } from '@elastic/eui/src/components/datagrid/data_grid_types';
|
|
16567
|
+
import { EuiDataGridFooterRowProps } from '@elastic/eui/src/components/datagrid/data_grid_types';
|
|
16568
|
+
type Props = Omit<EuiDataGridFooterRowProps, 'renderCellValue'> & {
|
|
16436
16569
|
renderFooterCellValue?: EuiDataGridFooterRowProps['renderCellValue'];
|
|
16437
16570
|
};
|
|
16438
16571
|
/**
|
|
@@ -16455,7 +16588,7 @@ declare module '@elastic/eui/src/components/datagrid/body/data_grid_row_manager'
|
|
|
16455
16588
|
import { EuiDataGridRowManager, EuiDataGridStyle } from '@elastic/eui/src/components/datagrid/data_grid_types';
|
|
16456
16589
|
export const useRowManager: ({ innerGridRef, rowClasses, }: {
|
|
16457
16590
|
innerGridRef: RefObject<HTMLDivElement>;
|
|
16458
|
-
rowClasses?: EuiDataGridStyle[
|
|
16591
|
+
rowClasses?: EuiDataGridStyle["rowClasses"];
|
|
16459
16592
|
}) => EuiDataGridRowManager;
|
|
16460
16593
|
|
|
16461
16594
|
}
|
|
@@ -16484,7 +16617,7 @@ declare module '@elastic/eui/src/components/datagrid/utils/grid_height_width' {
|
|
|
16484
16617
|
rowHeightUtils: RowHeightUtilsType;
|
|
16485
16618
|
startRow: number;
|
|
16486
16619
|
endRow: number;
|
|
16487
|
-
rowHeightsOptions?: EuiDataGridRowHeightsOptions
|
|
16620
|
+
rowHeightsOptions?: EuiDataGridRowHeightsOptions;
|
|
16488
16621
|
defaultRowHeight: number;
|
|
16489
16622
|
headerRowHeight: number;
|
|
16490
16623
|
footerRowHeight: number;
|
|
@@ -16506,14 +16639,14 @@ declare module '@elastic/eui/src/components/datagrid/utils/grid_height_width' {
|
|
|
16506
16639
|
}
|
|
16507
16640
|
declare module '@elastic/eui/src/components/datagrid/utils/col_widths' {
|
|
16508
16641
|
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[
|
|
16642
|
+
export const useDefaultColumnWidth: (gridWidth: number, leadingControlColumns: EuiDataGridControlColumn[], trailingControlColumns: EuiDataGridControlColumn[], columns: EuiDataGridProps["columns"]) => number | null;
|
|
16510
16643
|
export const doesColumnHaveAnInitialWidth: (column: EuiDataGridColumn) => boolean;
|
|
16511
16644
|
export const useColumnWidths: ({ columns, leadingControlColumns, trailingControlColumns, defaultColumnWidth, onColumnResize, }: {
|
|
16512
16645
|
columns: EuiDataGridColumn[];
|
|
16513
16646
|
leadingControlColumns: EuiDataGridControlColumn[];
|
|
16514
16647
|
trailingControlColumns: EuiDataGridControlColumn[];
|
|
16515
|
-
defaultColumnWidth?: number | null
|
|
16516
|
-
onColumnResize?: EuiDataGridOnColumnResizeHandler
|
|
16648
|
+
defaultColumnWidth?: number | null;
|
|
16649
|
+
onColumnResize?: EuiDataGridOnColumnResizeHandler;
|
|
16517
16650
|
}) => {
|
|
16518
16651
|
columnWidths: EuiDataGridColumnWidths;
|
|
16519
16652
|
setColumnWidth: (columnId: string, width: number) => void;
|
|
@@ -16567,7 +16700,7 @@ declare module '@elastic/eui/src/components/datagrid/utils/scrolling' {
|
|
|
16567
16700
|
/**
|
|
16568
16701
|
* Checks whether the current grid scrolls and/or has scrollbars
|
|
16569
16702
|
*/
|
|
16570
|
-
export const useScrollBars: (outerGridRef: MutableRefObject<HTMLDivElement | null>, borderStyle?: EuiDataGridStyle[
|
|
16703
|
+
export const useScrollBars: (outerGridRef: MutableRefObject<HTMLDivElement | null>, borderStyle?: EuiDataGridStyle["border"]) => {
|
|
16571
16704
|
scrollBarHeight: number;
|
|
16572
16705
|
scrollBarWidth: number;
|
|
16573
16706
|
hasVerticalScroll: boolean;
|
|
@@ -16626,7 +16759,7 @@ declare module '@elastic/eui/src/components/datagrid/controls/data_grid_toolbar'
|
|
|
16626
16759
|
export const MINIMUM_WIDTH_FOR_GRID_CONTROLS = 479;
|
|
16627
16760
|
export const EuiDataGridToolbar: ({ gridWidth, minSizeForControls, toolbarVisibility, isFullScreen, fullScreenSelector, keyboardShortcuts, displaySelector, columnSelector, columnSorting, renderCustomToolbar, }: EuiDataGridToolbarProps) => React.JSX.Element;
|
|
16628
16761
|
export function checkOrDefaultToolBarDisplayOptions<OptionKey extends keyof EuiDataGridToolBarVisibilityOptions>(arg: EuiDataGridProps['toolbarVisibility'], option: OptionKey): Required<EuiDataGridToolBarVisibilityOptions>[OptionKey];
|
|
16629
|
-
export const renderAdditionalControls: (toolbarVisibility: EuiDataGridProps[
|
|
16762
|
+
export const renderAdditionalControls: (toolbarVisibility: EuiDataGridProps["toolbarVisibility"], position: "left.prepend" | "left.append" | "right") => ReactNode;
|
|
16630
16763
|
/**
|
|
16631
16764
|
* Utility helper for selectors/controls that allow nested options
|
|
16632
16765
|
* (e.g. column selector, display selector)
|
|
@@ -16652,11 +16785,11 @@ declare module '@elastic/eui/src/components/datagrid/controls/column_selector.st
|
|
|
16652
16785
|
|
|
16653
16786
|
}
|
|
16654
16787
|
declare module '@elastic/eui/src/components/datagrid/controls/column_selector' {
|
|
16655
|
-
import
|
|
16788
|
+
import { ReactNode } from 'react';
|
|
16656
16789
|
import { EuiDataGridColumn, EuiDataGridColumnVisibility, EuiDataGridToolBarVisibilityOptions } from '@elastic/eui/src/components/datagrid/data_grid_types';
|
|
16657
|
-
export const useDataGridColumnSelector: (availableColumns: EuiDataGridColumn[], columnVisibility: EuiDataGridColumnVisibility, showColumnSelector: EuiDataGridToolBarVisibilityOptions[
|
|
16790
|
+
export const useDataGridColumnSelector: (availableColumns: EuiDataGridColumn[], columnVisibility: EuiDataGridColumnVisibility, showColumnSelector: EuiDataGridToolBarVisibilityOptions["showColumnSelector"], displayValues: {
|
|
16658
16791
|
[key: string]: string;
|
|
16659
|
-
}) => [
|
|
16792
|
+
}) => [ReactNode, EuiDataGridColumn[], (columns: string[]) => void, (colFrom: string, colTo: string) => void];
|
|
16660
16793
|
|
|
16661
16794
|
}
|
|
16662
16795
|
declare module '@elastic/eui/src/components/datagrid/controls/column_sorting' {
|
|
@@ -16672,7 +16805,7 @@ declare module '@elastic/eui/src/components/datagrid/controls/column_sorting' {
|
|
|
16672
16805
|
schemaDetectors: EuiDataGridSchemaDetector[];
|
|
16673
16806
|
};
|
|
16674
16807
|
export const useDataGridColumnSorting: ({ sorting, ...rest }: Omit<ColumnSortingProps, "sorting"> & {
|
|
16675
|
-
sorting?: EuiDataGridSorting
|
|
16808
|
+
sorting?: EuiDataGridSorting;
|
|
16676
16809
|
}) => ReactNode;
|
|
16677
16810
|
export const DataGridSortingControl: FunctionComponent<ColumnSortingProps>;
|
|
16678
16811
|
|
|
@@ -16684,7 +16817,7 @@ declare module '@elastic/eui/src/components/datagrid/controls/display_selector'
|
|
|
16684
16817
|
/**
|
|
16685
16818
|
* Display settings/selector popover
|
|
16686
16819
|
*/
|
|
16687
|
-
export const useDataGridDisplaySelector: (showDisplaySelector: EuiDataGridToolBarVisibilityOptions[
|
|
16820
|
+
export const useDataGridDisplaySelector: (showDisplaySelector: EuiDataGridToolBarVisibilityOptions["showDisplaySelector"], passedGridStyles: EuiDataGridStyle, passedRowHeightsOptions?: EuiDataGridRowHeightsOptions) => [ReactNode, EuiDataGridStyle, EuiDataGridRowHeightsOptions];
|
|
16688
16821
|
|
|
16689
16822
|
}
|
|
16690
16823
|
declare module '@elastic/eui/src/components/description_list/description_list_types' {
|
|
@@ -16760,7 +16893,8 @@ declare module '@elastic/eui/src/components/description_list/description_list_ty
|
|
|
16760
16893
|
|
|
16761
16894
|
}
|
|
16762
16895
|
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';
|
|
16896
|
+
import { EuiDescriptionListProps, EuiDescriptionListChildTypes } from '@elastic/eui/src/components/description_list/description_list_types';
|
|
16897
|
+
type EuiDescriptionListContextValues = Required<Pick<EuiDescriptionListProps, 'textStyle' | 'align' | 'rowGutterSize'> & {
|
|
16764
16898
|
type: EuiDescriptionListChildTypes;
|
|
16765
16899
|
}> & {
|
|
16766
16900
|
compressed?: EuiDescriptionListProps['compressed'];
|
|
@@ -16914,7 +17048,8 @@ declare module '@elastic/eui/src/components/datagrid/pagination/data_grid_pagina
|
|
|
16914
17048
|
}
|
|
16915
17049
|
declare module '@elastic/eui/src/components/datagrid/pagination/data_grid_pagination' {
|
|
16916
17050
|
import React, { AriaAttributes } from 'react';
|
|
16917
|
-
import { EuiDataGridPaginationProps } from '@elastic/eui/src/components/datagrid/data_grid_types';
|
|
17051
|
+
import { EuiDataGridPaginationProps } from '@elastic/eui/src/components/datagrid/data_grid_types';
|
|
17052
|
+
type _EuiDataGridPaginationProps = Required<EuiDataGridPaginationProps> & {
|
|
16918
17053
|
rowCount: number;
|
|
16919
17054
|
controls: string;
|
|
16920
17055
|
'aria-label'?: AriaAttributes['aria-label'];
|
|
@@ -16939,10 +17074,7 @@ declare module '@elastic/eui/src/components/datagrid/utils/in_memory' {
|
|
|
16939
17074
|
/**
|
|
16940
17075
|
* inMemory values hook
|
|
16941
17076
|
*/
|
|
16942
|
-
export const useInMemoryValues: (inMemory: EuiDataGridInMemory | undefined, rowCount: number) => [
|
|
16943
|
-
EuiDataGridInMemoryValues,
|
|
16944
|
-
EuiDataGridInMemoryRendererProps['onCellRender']
|
|
16945
|
-
];
|
|
17077
|
+
export const useInMemoryValues: (inMemory: EuiDataGridInMemory | undefined, rowCount: number) => [EuiDataGridInMemoryValues, EuiDataGridInMemoryRendererProps["onCellRender"]];
|
|
16946
17078
|
/**
|
|
16947
17079
|
* InMemory renderer
|
|
16948
17080
|
*/
|
|
@@ -16952,8 +17084,8 @@ declare module '@elastic/eui/src/components/datagrid/utils/in_memory' {
|
|
|
16952
17084
|
declare module '@elastic/eui/src/components/datagrid/utils/row_count' {
|
|
16953
17085
|
import { EuiDataGridProps, EuiDataGridVisibleRows } from '@elastic/eui/src/components/datagrid/data_grid_types';
|
|
16954
17086
|
export const computeVisibleRows: ({ pagination, rowCount, }: {
|
|
16955
|
-
pagination: Required<EuiDataGridProps[
|
|
16956
|
-
rowCount: EuiDataGridProps[
|
|
17087
|
+
pagination: Required<EuiDataGridProps["pagination"]>;
|
|
17088
|
+
rowCount: EuiDataGridProps["rowCount"];
|
|
16957
17089
|
}) => EuiDataGridVisibleRows;
|
|
16958
17090
|
|
|
16959
17091
|
}
|
|
@@ -16990,7 +17122,7 @@ declare module '@elastic/eui/src/components/datagrid/utils/ref' {
|
|
|
16990
17122
|
* the row is not on the current page, the grid should automatically handle
|
|
16991
17123
|
* paginating to that row.
|
|
16992
17124
|
*/
|
|
16993
|
-
export const useSortPageCheck: (pagination: Required<EuiDataGridProps[
|
|
17125
|
+
export const useSortPageCheck: (pagination: Required<EuiDataGridProps["pagination"]>, sortedRowMap: DataGridSortedContextShape["sortedRowMap"]) => {
|
|
16994
17126
|
findVisibleRowIndex: (rowIndex: number) => number;
|
|
16995
17127
|
};
|
|
16996
17128
|
export {};
|
|
@@ -17322,7 +17454,8 @@ declare module '@elastic/eui/src/components/date_picker/date_picker' {
|
|
|
17322
17454
|
import { EuiFormControlLayoutIconsProps } from '@elastic/eui/src/components/form/form_control_layout/form_control_layout_icons';
|
|
17323
17455
|
import { ReactDatePickerProps } from '@elastic/eui/src/components/date_picker/react-datepicker';
|
|
17324
17456
|
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"];
|
|
17457
|
+
export const euiDatePickerDefaultTimeFormat = "hh:mm A"; const unsupportedProps: readonly ["monthsShown", "showWeekNumbers", "fixedHeight", "dropdownMode", "useShortMonthInDropdown", "todayButton", "timeCaption", "disabledKeyboardNavigation", "isClearable", "withPortal", "showMonthYearDropdown", "popperPlacement", "defaultInputProps"];
|
|
17458
|
+
type UnsupportedProps = (typeof unsupportedProps)[number];
|
|
17326
17459
|
interface EuiExtendedDatePickerProps extends Omit<ReactDatePickerProps, UnsupportedProps> {
|
|
17327
17460
|
/**
|
|
17328
17461
|
* Applies classes to the numbered days provided. Check docs for example.
|
|
@@ -17469,7 +17602,7 @@ declare module '@elastic/eui/src/components/tabs/tabs' {
|
|
|
17469
17602
|
};
|
|
17470
17603
|
export type EuiTabRef = HTMLDivElement;
|
|
17471
17604
|
export const EuiTabs: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & {
|
|
17472
|
-
children?:
|
|
17605
|
+
children?: ReactNode | undefined;
|
|
17473
17606
|
} & CommonProps & {
|
|
17474
17607
|
/**
|
|
17475
17608
|
* ReactNode to render as this component's content
|
|
@@ -17479,16 +17612,16 @@ declare module '@elastic/eui/src/components/tabs/tabs' {
|
|
|
17479
17612
|
* Evenly stretches each tab to fill the
|
|
17480
17613
|
* horizontal space
|
|
17481
17614
|
*/
|
|
17482
|
-
expand?: boolean
|
|
17615
|
+
expand?: boolean;
|
|
17483
17616
|
/**
|
|
17484
17617
|
* Adds a bottom border to separate it from the content after
|
|
17485
17618
|
*/
|
|
17486
|
-
bottomBorder?: boolean
|
|
17619
|
+
bottomBorder?: boolean;
|
|
17487
17620
|
/**
|
|
17488
17621
|
* Sizes affect both font size and overall size.
|
|
17489
17622
|
* Only use the `xl` size when displayed as page titles.
|
|
17490
17623
|
*/
|
|
17491
|
-
size?:
|
|
17624
|
+
size?: EuiTabsSizes;
|
|
17492
17625
|
} & React.RefAttributes<HTMLDivElement>>;
|
|
17493
17626
|
|
|
17494
17627
|
}
|
|
@@ -17515,10 +17648,12 @@ declare module '@elastic/eui/src/components/tabs/tab' {
|
|
|
17515
17648
|
* Will be excluded from interactive effects.
|
|
17516
17649
|
*/
|
|
17517
17650
|
append?: ReactNode;
|
|
17518
|
-
}
|
|
17651
|
+
}
|
|
17652
|
+
type EuiTabPropsForAnchor = EuiTabProps & Omit<AnchorHTMLAttributes<HTMLAnchorElement>, 'onClick' | 'href'> & {
|
|
17519
17653
|
href?: string;
|
|
17520
17654
|
onClick?: MouseEventHandler<HTMLAnchorElement>;
|
|
17521
|
-
};
|
|
17655
|
+
};
|
|
17656
|
+
type EuiTabPropsForButton = EuiTabProps & Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'onClick'> & {
|
|
17522
17657
|
onClick?: MouseEventHandler<HTMLButtonElement>;
|
|
17523
17658
|
};
|
|
17524
17659
|
export type Props = ExclusiveUnion<EuiTabPropsForAnchor, EuiTabPropsForButton>;
|
|
@@ -17779,13 +17914,13 @@ declare module '@elastic/eui/src/components/date_picker/super_date_picker/date_p
|
|
|
17779
17914
|
}
|
|
17780
17915
|
declare module '@elastic/eui/src/components/date_picker/super_date_picker/pretty_duration' {
|
|
17781
17916
|
import React from 'react';
|
|
17782
|
-
import
|
|
17917
|
+
import { LocaleSpecifier } from 'moment';
|
|
17783
17918
|
import { DurationRange, ShortDate } from '@elastic/eui/src/components/date_picker/types';
|
|
17784
17919
|
export const useFormatTimeString: (timeString: string, dateFormat: string, options?: {
|
|
17785
|
-
locale?:
|
|
17786
|
-
roundUp?: boolean
|
|
17787
|
-
canRoundRelativeUnits?: boolean
|
|
17788
|
-
}
|
|
17920
|
+
locale?: LocaleSpecifier;
|
|
17921
|
+
roundUp?: boolean;
|
|
17922
|
+
canRoundRelativeUnits?: boolean;
|
|
17923
|
+
}) => string;
|
|
17789
17924
|
/**
|
|
17790
17925
|
* Pretty duration hook+component
|
|
17791
17926
|
*/
|
|
@@ -17898,7 +18033,8 @@ declare module '@elastic/eui/src/components/date_picker/super_date_picker/quick_
|
|
|
17898
18033
|
}
|
|
17899
18034
|
declare module '@elastic/eui/src/components/date_picker/super_date_picker/quick_select_popover/quick_select_panel' {
|
|
17900
18035
|
import { FunctionComponent, ReactNode } from 'react';
|
|
17901
|
-
import type { CommonProps } from '@elastic/eui/src/components/common';
|
|
18036
|
+
import type { CommonProps } from '@elastic/eui/src/components/common';
|
|
18037
|
+
type EuiQuickSelectPanelProps = CommonProps & {
|
|
17902
18038
|
component?: 'div' | 'fieldset';
|
|
17903
18039
|
title?: ReactNode;
|
|
17904
18040
|
titleId?: string;
|
|
@@ -17947,7 +18083,8 @@ declare module '@elastic/eui/src/components/date_picker/super_date_picker/quick_
|
|
|
17947
18083
|
import React, { Component, ChangeEventHandler, KeyboardEventHandler } from 'react';
|
|
17948
18084
|
import moment from 'moment';
|
|
17949
18085
|
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';
|
|
18086
|
+
import { TimeOptions } from '@elastic/eui/src/components/date_picker/super_date_picker/time_options';
|
|
18087
|
+
type EuiQuickSelectState = QuickSelect;
|
|
17951
18088
|
export interface EuiQuickSelectProps {
|
|
17952
18089
|
applyTime: ApplyTime;
|
|
17953
18090
|
start: string;
|
|
@@ -18037,7 +18174,7 @@ declare module '@elastic/eui/src/components/date_picker/auto_refresh/refresh_int
|
|
|
18037
18174
|
handleKeyDown: KeyboardEventHandler<HTMLElement>;
|
|
18038
18175
|
applyRefreshInterval: () => void;
|
|
18039
18176
|
toggleRefresh: () => void;
|
|
18040
|
-
renderScreenReaderText: (refreshUnitsOptions: TimeOptions[
|
|
18177
|
+
renderScreenReaderText: (refreshUnitsOptions: TimeOptions["refreshUnitsOptions"]) => React.JSX.Element;
|
|
18041
18178
|
render(): React.JSX.Element;
|
|
18042
18179
|
}
|
|
18043
18180
|
export {};
|
|
@@ -18224,7 +18361,9 @@ declare module '@elastic/eui/src/components/date_picker/super_date_picker/super_
|
|
|
18224
18361
|
import React, { Component, MouseEventHandler, ElementRef, ReactNode } from 'react';
|
|
18225
18362
|
import { EuiButtonProps } from '@elastic/eui/src/components/button';
|
|
18226
18363
|
import { EuiToolTip, EuiToolTipProps } from '@elastic/eui/src/components/tool_tip';
|
|
18227
|
-
import { EuiBreakpointSize } from '@elastic/eui/src/services/breakpoint';
|
|
18364
|
+
import { EuiBreakpointSize } from '@elastic/eui/src/services/breakpoint';
|
|
18365
|
+
type ToolTipRef = ElementRef<typeof EuiToolTip> | null;
|
|
18366
|
+
type EuiSuperUpdateButtonInternalProps = {
|
|
18228
18367
|
isDisabled?: boolean;
|
|
18229
18368
|
isLoading?: boolean;
|
|
18230
18369
|
needsUpdate?: boolean;
|
|
@@ -18283,10 +18422,18 @@ declare module '@elastic/eui/src/components/date_picker/super_date_picker/super_
|
|
|
18283
18422
|
|
|
18284
18423
|
}
|
|
18285
18424
|
declare module '@elastic/eui/src/components/date_picker/super_date_picker/pretty_interval' {
|
|
18425
|
+
const MS_INTERVALS: {
|
|
18426
|
+
readonly s: 1000;
|
|
18427
|
+
readonly m: number;
|
|
18428
|
+
readonly h: number;
|
|
18429
|
+
readonly d: number;
|
|
18430
|
+
};
|
|
18431
|
+
type IntervalUnitId = keyof typeof MS_INTERVALS;
|
|
18286
18432
|
export const usePrettyInterval: (isPaused: boolean, intervalInMs: number, options?: {
|
|
18287
|
-
shortHand?: boolean
|
|
18288
|
-
unit?:
|
|
18289
|
-
}
|
|
18433
|
+
shortHand?: boolean;
|
|
18434
|
+
unit?: IntervalUnitId;
|
|
18435
|
+
}) => string;
|
|
18436
|
+
export {};
|
|
18290
18437
|
|
|
18291
18438
|
}
|
|
18292
18439
|
declare module '@elastic/eui/src/components/date_picker/auto_refresh/auto_refresh' {
|
|
@@ -18465,7 +18612,8 @@ declare module '@elastic/eui/src/components/date_picker/super_date_picker/super_
|
|
|
18465
18612
|
* input by the user, set this flag to `false`.
|
|
18466
18613
|
*/
|
|
18467
18614
|
canRoundRelativeUnits?: boolean;
|
|
18468
|
-
};
|
|
18615
|
+
};
|
|
18616
|
+
type EuiSuperDatePickerInternalProps = EuiSuperDatePickerProps & {
|
|
18469
18617
|
memoizedStyles: ReturnType<typeof euiSuperDatePickerStyles>;
|
|
18470
18618
|
timeOptions: TimeOptions;
|
|
18471
18619
|
commonlyUsedRanges: DurationRange[];
|
|
@@ -18870,9 +19018,11 @@ declare module '@elastic/eui/src/components/expression/expression' {
|
|
|
18870
19018
|
* Sets how to handle the wrapping of long text.
|
|
18871
19019
|
*/
|
|
18872
19020
|
textWrap?: 'break-word' | 'truncate';
|
|
18873
|
-
};
|
|
19021
|
+
};
|
|
19022
|
+
type Buttonlike = EuiExpressionProps & Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'value'> & {
|
|
18874
19023
|
onClick: MouseEventHandler<HTMLButtonElement>;
|
|
18875
|
-
};
|
|
19024
|
+
};
|
|
19025
|
+
type Spanlike = EuiExpressionProps & Omit<HTMLAttributes<HTMLSpanElement>, 'value'>;
|
|
18876
19026
|
export const EuiExpression: FunctionComponent<ExclusiveUnion<Buttonlike, Spanlike>>;
|
|
18877
19027
|
export {};
|
|
18878
19028
|
|
|
@@ -18946,6 +19096,7 @@ declare module '@elastic/eui/src/components/filter_group/filter_group' {
|
|
|
18946
19096
|
}
|
|
18947
19097
|
declare module '@elastic/eui/src/components/filter_group/filter_button' {
|
|
18948
19098
|
import { FunctionComponent } from 'react';
|
|
19099
|
+
import { _EuiButtonColor } from '@elastic/eui/src/global_styling';
|
|
18949
19100
|
import { DistributiveOmit } from '@elastic/eui/src/components/common';
|
|
18950
19101
|
import { BadgeNotificationColor } from '@elastic/eui/src/components/badge/notification_badge/badge_notification';
|
|
18951
19102
|
import { EuiButtonEmptyProps } from '@elastic/eui/src/components/button/button_empty';
|
|
@@ -18980,7 +19131,16 @@ declare module '@elastic/eui/src/components/filter_group/filter_button' {
|
|
|
18980
19131
|
* Change color of the counter badge
|
|
18981
19132
|
*/
|
|
18982
19133
|
badgeColor?: BadgeNotificationColor;
|
|
18983
|
-
|
|
19134
|
+
/**
|
|
19135
|
+
* Any of the named color palette options.
|
|
19136
|
+
*
|
|
19137
|
+
* Do not use the following colors for standalone buttons directly,
|
|
19138
|
+
* they exist to serve other components:
|
|
19139
|
+
* - accent
|
|
19140
|
+
* - warning
|
|
19141
|
+
*/
|
|
19142
|
+
color?: _EuiButtonColor;
|
|
19143
|
+
} & DistributiveOmit<EuiButtonEmptyProps, 'flush' | 'size' | 'color'>;
|
|
18984
19144
|
export const EuiFilterButton: FunctionComponent<EuiFilterButtonProps>;
|
|
18985
19145
|
|
|
18986
19146
|
}
|
|
@@ -19192,7 +19352,8 @@ declare module '@elastic/eui/src/components/header/header' {
|
|
|
19192
19352
|
import { FunctionComponent, HTMLAttributes } from 'react';
|
|
19193
19353
|
import { CommonProps } from '@elastic/eui/src/components/common';
|
|
19194
19354
|
import { EuiBreadcrumb, EuiBreadcrumbsProps } from '@elastic/eui/src/components/breadcrumbs';
|
|
19195
|
-
import { EuiHeaderSectionItemProps } from '@elastic/eui/src/components/header/header_section';
|
|
19355
|
+
import { EuiHeaderSectionItemProps } from '@elastic/eui/src/components/header/header_section';
|
|
19356
|
+
type EuiHeaderSectionItemType = EuiHeaderSectionItemProps['children'];
|
|
19196
19357
|
export interface EuiHeaderSections {
|
|
19197
19358
|
/**
|
|
19198
19359
|
* An array of items that will be wrapped in a #EuiHeaderSectionItem
|
|
@@ -19308,7 +19469,9 @@ declare module '@elastic/eui/src/components/header/header_links/header_links' {
|
|
|
19308
19469
|
import { EuiPopoverProps } from '@elastic/eui/src/components/popover';
|
|
19309
19470
|
import { EuiHeaderSectionItemButtonProps } from '@elastic/eui/src/components/header/header_section';
|
|
19310
19471
|
import { EuiBreakpointSize } from '@elastic/eui/src/services/breakpoint';
|
|
19311
|
-
export const GUTTER_SIZES: readonly ["xxs", "xs", "s", "m", "l"];
|
|
19472
|
+
export const GUTTER_SIZES: readonly ["xxs", "xs", "s", "m", "l"];
|
|
19473
|
+
type EuiHeaderLinksGutterSize = (typeof GUTTER_SIZES)[number];
|
|
19474
|
+
type EuiHeaderLinksPopoverButtonProps = Partial<EuiHeaderSectionItemButtonProps> & {
|
|
19312
19475
|
iconType?: IconType;
|
|
19313
19476
|
};
|
|
19314
19477
|
export type EuiHeaderLinksProps = CommonProps & Omit<HTMLAttributes<HTMLElement>, 'children'> & {
|
|
@@ -19437,7 +19600,8 @@ declare module '@elastic/eui/src/components/image/image_types' {
|
|
|
19437
19600
|
export type EuiImageSize = (typeof SIZES)[number]; const FLOATS: readonly ["left", "right"];
|
|
19438
19601
|
export type EuiImageWrapperFloat = (typeof FLOATS)[number]; const MARGINS: readonly ["s", "m", "l", "xl"];
|
|
19439
19602
|
export type EuiImageWrapperMargin = (typeof MARGINS)[number];
|
|
19440
|
-
export type EuiImageButtonIconColor = 'light' | 'dark';
|
|
19603
|
+
export type EuiImageButtonIconColor = 'light' | 'dark';
|
|
19604
|
+
type _EuiImageSrcOrUrl = ExclusiveUnion<{
|
|
19441
19605
|
/**
|
|
19442
19606
|
* Requires either `src` or `url` but defaults to using `src` if both are provided
|
|
19443
19607
|
*/
|
|
@@ -19559,7 +19723,7 @@ declare module '@elastic/eui/src/components/image/image_caption.styles' {
|
|
|
19559
19723
|
declare module '@elastic/eui/src/components/image/image_caption' {
|
|
19560
19724
|
import React from 'react';
|
|
19561
19725
|
export const EuiImageCaption: React.ForwardRefExoticComponent<Pick<import ("@elastic/eui/src/components/image/image_types").EuiImageProps, "caption"> & {
|
|
19562
|
-
isOnOverlayMask?: boolean
|
|
19726
|
+
isOnOverlayMask?: boolean;
|
|
19563
19727
|
} & React.RefAttributes<HTMLDivElement>>;
|
|
19564
19728
|
|
|
19565
19729
|
}
|
|
@@ -19659,7 +19823,8 @@ declare module '@elastic/eui/src/components/skeleton/skeleton_loading' {
|
|
|
19659
19823
|
|
|
19660
19824
|
}
|
|
19661
19825
|
declare module '@elastic/eui/src/components/skeleton/utils' {
|
|
19662
|
-
import { UseEuiTheme } from '@elastic/eui/src/services';
|
|
19826
|
+
import { UseEuiTheme } from '@elastic/eui/src/services';
|
|
19827
|
+
type AnimationOptions = {
|
|
19663
19828
|
slideSize?: string;
|
|
19664
19829
|
gradientSize?: string;
|
|
19665
19830
|
};
|
|
@@ -19940,7 +20105,8 @@ declare module '@elastic/eui/src/components/inline_edit/inline_edit_title' {
|
|
|
19940
20105
|
import { FunctionComponent } from 'react';
|
|
19941
20106
|
import { EuiTitleSize } from '@elastic/eui/src/components/title';
|
|
19942
20107
|
import { EuiInlineEditCommonProps } from '@elastic/eui/src/components/inline_edit/inline_edit_form';
|
|
19943
|
-
export const HEADINGS: readonly ["h1", "h2", "h3", "h4", "h5", "h6", "span"];
|
|
20108
|
+
export const HEADINGS: readonly ["h1", "h2", "h3", "h4", "h5", "h6", "span"];
|
|
20109
|
+
type Heading = (typeof HEADINGS)[number];
|
|
19944
20110
|
export type EuiInlineEditTitleProps = EuiInlineEditCommonProps & {
|
|
19945
20111
|
/**
|
|
19946
20112
|
* Title size level
|
|
@@ -20053,7 +20219,8 @@ declare module '@elastic/eui/src/components/key_pad_menu/key_pad_menu_item' {
|
|
|
20053
20219
|
* The text to display beneath the icon
|
|
20054
20220
|
*/
|
|
20055
20221
|
label: ReactNode;
|
|
20056
|
-
};
|
|
20222
|
+
};
|
|
20223
|
+
type EuiKeyPadMenuItemPropsForUncheckable = {
|
|
20057
20224
|
/**
|
|
20058
20225
|
* Beta badges are unavailable if the item is checkable
|
|
20059
20226
|
*/
|
|
@@ -20078,12 +20245,15 @@ declare module '@elastic/eui/src/components/key_pad_menu/key_pad_menu_item' {
|
|
|
20078
20245
|
* Use `onClick` instead when the item is not `checkable`
|
|
20079
20246
|
*/
|
|
20080
20247
|
onChange?: never;
|
|
20081
|
-
};
|
|
20248
|
+
};
|
|
20249
|
+
type EuiKeyPadMenuItemPropsForAnchor = PropsForAnchor<EuiKeyPadMenuItemCommonProps, {
|
|
20082
20250
|
buttonRef?: Ref<HTMLAnchorElement>;
|
|
20083
20251
|
rel?: string;
|
|
20084
|
-
} & EuiKeyPadMenuItemPropsForUncheckable>;
|
|
20252
|
+
} & EuiKeyPadMenuItemPropsForUncheckable>;
|
|
20253
|
+
type EuiKeyPadMenuItemPropsForButton = PropsForButton<EuiKeyPadMenuItemCommonProps, {
|
|
20085
20254
|
buttonRef?: Ref<HTMLButtonElement>;
|
|
20086
|
-
} & EuiKeyPadMenuItemPropsForUncheckable>;
|
|
20255
|
+
} & EuiKeyPadMenuItemPropsForUncheckable>;
|
|
20256
|
+
type EuiKeyPadMenuItemPropsForCheckable = Omit<LabelHTMLAttributes<HTMLLabelElement>, 'onChange'> & EuiKeyPadMenuItemCommonProps & {
|
|
20087
20257
|
/**
|
|
20088
20258
|
* Use `onChange` instead when the item is `checkable`
|
|
20089
20259
|
*/
|
|
@@ -20507,9 +20677,9 @@ declare module '@elastic/eui/src/components/markdown_editor/markdown_editor_text
|
|
|
20507
20677
|
maxHeight: string;
|
|
20508
20678
|
};
|
|
20509
20679
|
export const EuiMarkdownEditorTextArea: React.ForwardRefExoticComponent<React.TextareaHTMLAttributes<HTMLTextAreaElement> & CommonProps & {
|
|
20510
|
-
isInvalid?: boolean
|
|
20511
|
-
fullWidth?: boolean
|
|
20512
|
-
compressed?: boolean
|
|
20680
|
+
isInvalid?: boolean;
|
|
20681
|
+
fullWidth?: boolean;
|
|
20682
|
+
compressed?: boolean;
|
|
20513
20683
|
height: string;
|
|
20514
20684
|
maxHeight: string;
|
|
20515
20685
|
} & React.RefAttributes<HTMLTextAreaElement>>;
|
|
@@ -20573,7 +20743,8 @@ declare module '@elastic/eui/src/components/markdown_editor/plugins/markdown_too
|
|
|
20573
20743
|
declare module '@elastic/eui/src/components/markdown_editor/plugins/markdown_tooltip/renderer' {
|
|
20574
20744
|
import { FunctionComponent, PropsWithChildren } from 'react';
|
|
20575
20745
|
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';
|
|
20746
|
+
import { TooltipNodeDetails } from '@elastic/eui/src/components/markdown_editor/plugins/markdown_tooltip/types';
|
|
20747
|
+
type TooltipMarkdownRendererProps = PropsWithChildren & TooltipNodeDetails & {
|
|
20577
20748
|
position: EuiMarkdownAstNodePosition;
|
|
20578
20749
|
};
|
|
20579
20750
|
export const tooltipMarkdownRenderer: FunctionComponent<TooltipMarkdownRendererProps>;
|
|
@@ -20610,7 +20781,8 @@ declare module '@elastic/eui/src/components/markdown_editor/plugins/markdown_che
|
|
|
20610
20781
|
declare module '@elastic/eui/src/components/markdown_editor/plugins/markdown_checkbox/renderer' {
|
|
20611
20782
|
import { FunctionComponent, PropsWithChildren } from 'react';
|
|
20612
20783
|
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';
|
|
20784
|
+
import { CheckboxNodeDetails } from '@elastic/eui/src/components/markdown_editor/plugins/markdown_checkbox/types';
|
|
20785
|
+
type CheckboxMarkdownRendererProps = PropsWithChildren & CheckboxNodeDetails & {
|
|
20614
20786
|
position: EuiMarkdownAstNodePosition;
|
|
20615
20787
|
};
|
|
20616
20788
|
export const CheckboxMarkdownRenderer: FunctionComponent<CheckboxMarkdownRendererProps>;
|
|
@@ -20710,8 +20882,8 @@ declare module '@elastic/eui/src/components/markdown_editor/plugins/markdown_def
|
|
|
20710
20882
|
*/
|
|
20711
20883
|
linkProps?: Partial<EuiLinkProps>;
|
|
20712
20884
|
};
|
|
20713
|
-
export const getDefaultEuiMarkdownProcessingPlugins: ({ exclude, linkProps, }?: DefaultPluginsConfig & DefaultProcessingPluginsConfig) =>
|
|
20714
|
-
export const defaultProcessingPlugins: [[Plugin
|
|
20885
|
+
export const getDefaultEuiMarkdownProcessingPlugins: ({ exclude, linkProps, }?: DefaultPluginsConfig & DefaultProcessingPluginsConfig) => DefaultEuiMarkdownProcessingPlugins;
|
|
20886
|
+
export const defaultProcessingPlugins: [[Plugin, Remark2RehypeOptions], [typeof rehype2react, Rehype2ReactOptions], ...Pluggable<any[], Settings>[]];
|
|
20715
20887
|
|
|
20716
20888
|
}
|
|
20717
20889
|
declare module '@elastic/eui/src/components/markdown_editor/plugins/markdown_default_plugins/plugins' {
|
|
@@ -20839,7 +21011,8 @@ declare module '@elastic/eui/src/components/markdown_editor/markdown_editor' {
|
|
|
20839
21011
|
import { EuiMarkdownFormatProps } from '@elastic/eui/src/components/markdown_editor/markdown_format';
|
|
20840
21012
|
import { MARKDOWN_MODE } from '@elastic/eui/src/components/markdown_editor/markdown_modes';
|
|
20841
21013
|
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';
|
|
21014
|
+
import { ContextShape } from '@elastic/eui/src/components/markdown_editor/markdown_context';
|
|
21015
|
+
type CommonMarkdownEditorProps = Omit<HTMLAttributes<HTMLDivElement>, 'onChange' | 'placeholder'> & CommonProps & {
|
|
20843
21016
|
/** aria-label OR aria-labelledby must be set */
|
|
20844
21017
|
'aria-label'?: string;
|
|
20845
21018
|
/** aria-label OR aria-labelledby must be set */
|
|
@@ -21010,7 +21183,8 @@ declare module '@elastic/eui/src/components/page/page_body/page_body' {
|
|
|
21010
21183
|
import { CommonProps } from '@elastic/eui/src/components/common';
|
|
21011
21184
|
import { _EuiPageRestrictWidth } from '@elastic/eui/src/components/page/_restrict_width';
|
|
21012
21185
|
import { EuiPanelProps } from '@elastic/eui/src/components/panel';
|
|
21013
|
-
import { EuiPaddingSize } from '@elastic/eui/src/global_styling';
|
|
21186
|
+
import { EuiPaddingSize } from '@elastic/eui/src/global_styling';
|
|
21187
|
+
type ComponentTypes = keyof JSX.IntrinsicElements | ComponentType<any>;
|
|
21014
21188
|
export type EuiPageBodyProps<T extends ComponentTypes = 'main'> = PropsWithChildren & CommonProps & ComponentProps<T> & _EuiPageRestrictWidth & {
|
|
21015
21189
|
/**
|
|
21016
21190
|
* Sets the HTML element for `EuiPageBody`.
|
|
@@ -21078,7 +21252,8 @@ declare module '@elastic/eui/src/components/page/page_header/page_header_content
|
|
|
21078
21252
|
import { EuiBreadcrumbsProps } from '@elastic/eui/src/components/breadcrumbs';
|
|
21079
21253
|
import { PADDING_SIZES } from '@elastic/eui/src/global_styling';
|
|
21080
21254
|
import { _EuiPageRestrictWidth } from '@elastic/eui/src/components/page/_restrict_width';
|
|
21081
|
-
export const ALIGN_ITEMS: readonly ["top", "bottom", "center", "stretch"];
|
|
21255
|
+
export const ALIGN_ITEMS: readonly ["top", "bottom", "center", "stretch"];
|
|
21256
|
+
type Tab = EuiTabProps & {
|
|
21082
21257
|
/**
|
|
21083
21258
|
* Visible text of the tab
|
|
21084
21259
|
*/
|
|
@@ -21358,7 +21533,8 @@ declare module '@elastic/eui/src/components/page_template/outer/page_outer' {
|
|
|
21358
21533
|
import { FunctionComponent, HTMLAttributes } from 'react';
|
|
21359
21534
|
import { CommonProps } from '@elastic/eui/src/components/common';
|
|
21360
21535
|
import { _EuiThemeBreakpoint } from '@elastic/eui/src/global_styling';
|
|
21361
|
-
export const PAGE_DIRECTIONS: readonly ["row", "column"];
|
|
21536
|
+
export const PAGE_DIRECTIONS: readonly ["row", "column"];
|
|
21537
|
+
type PageDirections = (typeof PAGE_DIRECTIONS)[number];
|
|
21362
21538
|
export interface _EuiPageOuterProps extends CommonProps, HTMLAttributes<HTMLDivElement> {
|
|
21363
21539
|
/**
|
|
21364
21540
|
* Adds `flex-grow: 1` to the whole page for stretching to fit vertically.
|
|
@@ -21571,7 +21747,7 @@ declare module '@elastic/eui/src/components/provider/nested' {
|
|
|
21571
21747
|
|
|
21572
21748
|
}
|
|
21573
21749
|
declare module '@elastic/eui/src/components/provider/provider' {
|
|
21574
|
-
import
|
|
21750
|
+
import { PropsWithChildren, JSX } from 'react';
|
|
21575
21751
|
import type { EmotionCache } from '@emotion/css';
|
|
21576
21752
|
import { EuiThemeProviderProps, EuiThemeSystem, EuiThemeColorMode, EuiThemeHighContrastModeProp } from '@elastic/eui/src/services';
|
|
21577
21753
|
import { EuiGlobalStylesProps } from '@elastic/eui/src/global_styling/reset/global_styles';
|
|
@@ -21630,7 +21806,7 @@ declare module '@elastic/eui/src/components/provider/provider' {
|
|
|
21630
21806
|
*/
|
|
21631
21807
|
componentDefaults?: EuiComponentDefaults;
|
|
21632
21808
|
}
|
|
21633
|
-
export const EuiProvider: <T extends {} = {}>({ cache, theme, globalStyles: Globals, utilityClasses: Utilities, colorMode, highContrastMode, modify, componentDefaults, children, }:
|
|
21809
|
+
export const EuiProvider: <T extends {} = {}>({ cache, theme, globalStyles: Globals, utilityClasses: Utilities, colorMode, highContrastMode, modify, componentDefaults, children, }: PropsWithChildren<EuiProviderProps<T>>) => any;
|
|
21634
21810
|
|
|
21635
21811
|
}
|
|
21636
21812
|
declare module '@elastic/eui/src/components/provider' {
|
|
@@ -21881,7 +22057,7 @@ declare module '@elastic/eui/src/components/search_bar/query/date_value' {
|
|
|
21881
22057
|
export const dateValue: (raw: MomentInput, granularity?: GranularityType, dateFormat?: any) => DateValue | undefined;
|
|
21882
22058
|
export const dateValueParser: (format?: Readonly<{
|
|
21883
22059
|
parse(value: string): import ("@elastic/eui/src/components/search_bar/query/date_format").EuiMoment;
|
|
21884
|
-
print(date:
|
|
22060
|
+
print(date: import ("@elastic/eui/src/components/search_bar/query/date_format").EuiMoment | MomentInput, defaultGranularity?: undefined): string;
|
|
21885
22061
|
}>) => (text: string) => DateValue | undefined;
|
|
21886
22062
|
|
|
21887
22063
|
}
|
|
@@ -21915,7 +22091,7 @@ declare module '@elastic/eui/src/components/search_bar/query/ast' {
|
|
|
21915
22091
|
export const Match: Readonly<{
|
|
21916
22092
|
MUST: "must";
|
|
21917
22093
|
MUST_NOT: "must_not";
|
|
21918
|
-
isMust(match: MatchType | undefined):
|
|
22094
|
+
isMust(match: MatchType | undefined): match is "must";
|
|
21919
22095
|
isMustClause(clause: Clause): boolean;
|
|
21920
22096
|
}>;
|
|
21921
22097
|
export type OperatorType = 'eq' | 'exact' | 'gt' | 'gte' | 'lt' | 'lte';
|
|
@@ -21926,19 +22102,19 @@ declare module '@elastic/eui/src/components/search_bar/query/ast' {
|
|
|
21926
22102
|
GTE: "gte";
|
|
21927
22103
|
LT: "lt";
|
|
21928
22104
|
LTE: "lte";
|
|
21929
|
-
isEQ(match: OperatorType | undefined):
|
|
22105
|
+
isEQ(match: OperatorType | undefined): match is "eq";
|
|
21930
22106
|
isEQClause(clause: Clause): boolean;
|
|
21931
|
-
isEXACT(match: OperatorType | undefined):
|
|
22107
|
+
isEXACT(match: OperatorType | undefined): match is "exact";
|
|
21932
22108
|
isEXACTClause(clause: Clause): boolean;
|
|
21933
|
-
isRange(match: OperatorType | undefined):
|
|
22109
|
+
isRange(match: OperatorType | undefined): match is "gt" | "gte" | "lt" | "lte";
|
|
21934
22110
|
isRangeClause(clause: Clause): boolean;
|
|
21935
|
-
isGT(match: OperatorType | undefined):
|
|
22111
|
+
isGT(match: OperatorType | undefined): match is "gt";
|
|
21936
22112
|
isGTClause(clause: Clause): boolean;
|
|
21937
|
-
isGTE(match: OperatorType | undefined):
|
|
22113
|
+
isGTE(match: OperatorType | undefined): match is "gte";
|
|
21938
22114
|
isGTEClause(clause: Clause): boolean;
|
|
21939
|
-
isLT(match: OperatorType | undefined):
|
|
22115
|
+
isLT(match: OperatorType | undefined): match is "lt";
|
|
21940
22116
|
isLTClause(clause: Clause): boolean;
|
|
21941
|
-
isLTE(match: OperatorType | undefined):
|
|
22117
|
+
isLTE(match: OperatorType | undefined): match is "lte";
|
|
21942
22118
|
isLTEClause(clause: Clause): boolean;
|
|
21943
22119
|
}>;
|
|
21944
22120
|
/**
|
|
@@ -22011,7 +22187,7 @@ declare module '@elastic/eui/src/components/search_bar/query/ast' {
|
|
|
22011
22187
|
Match: Readonly<{
|
|
22012
22188
|
MUST: "must";
|
|
22013
22189
|
MUST_NOT: "must_not";
|
|
22014
|
-
isMust(match: MatchType | undefined):
|
|
22190
|
+
isMust(match: MatchType | undefined): match is "must";
|
|
22015
22191
|
isMustClause(clause: Clause): boolean;
|
|
22016
22192
|
}>;
|
|
22017
22193
|
Operator: Readonly<{
|
|
@@ -22021,19 +22197,19 @@ declare module '@elastic/eui/src/components/search_bar/query/ast' {
|
|
|
22021
22197
|
GTE: "gte";
|
|
22022
22198
|
LT: "lt";
|
|
22023
22199
|
LTE: "lte";
|
|
22024
|
-
isEQ(match: OperatorType | undefined):
|
|
22200
|
+
isEQ(match: OperatorType | undefined): match is "eq";
|
|
22025
22201
|
isEQClause(clause: Clause): boolean;
|
|
22026
|
-
isEXACT(match: OperatorType | undefined):
|
|
22202
|
+
isEXACT(match: OperatorType | undefined): match is "exact";
|
|
22027
22203
|
isEXACTClause(clause: Clause): boolean;
|
|
22028
|
-
isRange(match: OperatorType | undefined):
|
|
22204
|
+
isRange(match: OperatorType | undefined): match is "gt" | "gte" | "lt" | "lte";
|
|
22029
22205
|
isRangeClause(clause: Clause): boolean;
|
|
22030
|
-
isGT(match: OperatorType | undefined):
|
|
22206
|
+
isGT(match: OperatorType | undefined): match is "gt";
|
|
22031
22207
|
isGTClause(clause: Clause): boolean;
|
|
22032
|
-
isGTE(match: OperatorType | undefined):
|
|
22208
|
+
isGTE(match: OperatorType | undefined): match is "gte";
|
|
22033
22209
|
isGTEClause(clause: Clause): boolean;
|
|
22034
|
-
isLT(match: OperatorType | undefined):
|
|
22210
|
+
isLT(match: OperatorType | undefined): match is "lt";
|
|
22035
22211
|
isLTClause(clause: Clause): boolean;
|
|
22036
|
-
isLTE(match: OperatorType | undefined):
|
|
22212
|
+
isLTE(match: OperatorType | undefined): match is "lte";
|
|
22037
22213
|
isLTEClause(clause: Clause): boolean;
|
|
22038
22214
|
}>;
|
|
22039
22215
|
Term: Readonly<{
|
|
@@ -22197,7 +22373,8 @@ declare module '@elastic/eui/src/components/search_bar/query/operators' {
|
|
|
22197
22373
|
import moment from 'moment';
|
|
22198
22374
|
import { Value } from '@elastic/eui/src/components/search_bar/query/ast';
|
|
22199
22375
|
export type FieldValue = string | number | boolean | any[] | Date | moment.Moment | null | undefined;
|
|
22200
|
-
export type ClauseValue = Value | Date | moment.Moment | null | undefined;
|
|
22376
|
+
export type ClauseValue = Value | Date | moment.Moment | null | undefined;
|
|
22377
|
+
type Options = Partial<{
|
|
22201
22378
|
exactMatch: boolean;
|
|
22202
22379
|
ignoreCase: boolean;
|
|
22203
22380
|
}>;
|
|
@@ -22220,8 +22397,8 @@ declare module '@elastic/eui/src/components/search_bar/query/execute_ast' {
|
|
|
22220
22397
|
flag?: string;
|
|
22221
22398
|
match?: MatchType;
|
|
22222
22399
|
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[]
|
|
22400
|
+
} const defaultIsClauseMatcher: <T extends object>(item: T, clause: IsClause, explain?: Explain[]) => boolean;
|
|
22401
|
+
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
22402
|
interface Options {
|
|
22226
22403
|
isClauseMatcher?: typeof defaultIsClauseMatcher;
|
|
22227
22404
|
defaultFields?: string[];
|
|
@@ -22246,7 +22423,8 @@ declare module '@elastic/eui/src/components/search_bar/query/ast_to_es_query_dsl
|
|
|
22246
22423
|
must?: QueryContainer[];
|
|
22247
22424
|
must_not?: QueryContainer[];
|
|
22248
22425
|
should?: QueryContainer[];
|
|
22249
|
-
}
|
|
22426
|
+
}
|
|
22427
|
+
type Options = Partial<{
|
|
22250
22428
|
defaultFields: string[];
|
|
22251
22429
|
extraMustQueries: QueryContainer[];
|
|
22252
22430
|
extraMustNotQueries: QueryContainer[];
|
|
@@ -22257,17 +22435,10 @@ declare module '@elastic/eui/src/components/search_bar/query/ast_to_es_query_dsl
|
|
|
22257
22435
|
export const _termValuesToQuery: (values: Value[], options: Options) => {
|
|
22258
22436
|
simple_query_string: {
|
|
22259
22437
|
query: string;
|
|
22260
|
-
fields?: string[]
|
|
22438
|
+
fields?: string[];
|
|
22261
22439
|
};
|
|
22262
22440
|
} | 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;
|
|
22441
|
+
export const _fieldValuesToQuery: (field: string, operations: { [x in OperatorType]: Value[]; }, andOr: "and" | "or") => QueryContainer;
|
|
22271
22442
|
export const _isFlagToQuery: (flag: string, on: boolean) => {
|
|
22272
22443
|
term: {
|
|
22273
22444
|
[x: string]: boolean;
|
|
@@ -22294,9 +22465,9 @@ declare module '@elastic/eui/src/components/search_bar/query/query' {
|
|
|
22294
22465
|
static parse(text: string, options?: ParseOptions, syntax?: Syntax): Query;
|
|
22295
22466
|
static isMust(clause: Clause): boolean;
|
|
22296
22467
|
static MATCH_ALL: Query;
|
|
22297
|
-
static isTerm(clause: Clause):
|
|
22298
|
-
static isIs(clause: Clause):
|
|
22299
|
-
static isField(clause: Clause):
|
|
22468
|
+
static isTerm(clause: Clause): clause is import ("@elastic/eui/src/components/search_bar/query/ast").TermClause;
|
|
22469
|
+
static isIs(clause: Clause): clause is import ("@elastic/eui/src/components/search_bar/query/ast").IsClause;
|
|
22470
|
+
static isField(clause: Clause): clause is import ("@elastic/eui/src/components/search_bar/query/ast").FieldClause;
|
|
22300
22471
|
ast: _AST;
|
|
22301
22472
|
text: string;
|
|
22302
22473
|
private syntax;
|
|
@@ -22484,10 +22655,12 @@ declare module '@elastic/eui/src/components/selectable/selectable_option' {
|
|
|
22484
22655
|
* Optional props to pass to the underlying **[EuiToolTip](/#/display/tooltip)**
|
|
22485
22656
|
*/
|
|
22486
22657
|
toolTipProps?: Partial<Omit<EuiToolTipProps, 'content' | 'children'>>;
|
|
22487
|
-
};
|
|
22658
|
+
};
|
|
22659
|
+
type _EuiSelectableGroupLabelOption = Omit<EuiSelectableOptionBase, 'isGroupLabel'> & Exclude<HTMLAttributes<HTMLDivElement>, 'id'> & {
|
|
22488
22660
|
isGroupLabel: true;
|
|
22489
22661
|
};
|
|
22490
|
-
export type EuiSelectableGroupLabelOption<T> = _EuiSelectableGroupLabelOption & T;
|
|
22662
|
+
export type EuiSelectableGroupLabelOption<T> = _EuiSelectableGroupLabelOption & T;
|
|
22663
|
+
type _EuiSelectableLIOption = EuiSelectableOptionBase & Exclude<HTMLAttributes<HTMLLIElement>, 'id'>;
|
|
22491
22664
|
export type EuiSelectableLIOption<T> = _EuiSelectableLIOption & T;
|
|
22492
22665
|
export type EuiSelectableOption<T = {}> = ExclusiveUnion<EuiSelectableGroupLabelOption<T>, EuiSelectableLIOption<T>>;
|
|
22493
22666
|
export {};
|
|
@@ -22495,7 +22668,8 @@ declare module '@elastic/eui/src/components/selectable/selectable_option' {
|
|
|
22495
22668
|
}
|
|
22496
22669
|
declare module '@elastic/eui/src/components/selectable/matching_options' {
|
|
22497
22670
|
import { EuiSelectableOption } from '@elastic/eui/src/components/selectable/selectable_option';
|
|
22498
|
-
import { EuiSelectableOptionMatcher } from '@elastic/eui/src/components/selectable/selectable';
|
|
22671
|
+
import { EuiSelectableOptionMatcher } from '@elastic/eui/src/components/selectable/selectable';
|
|
22672
|
+
type SelectableOptions<T> = Array<EuiSelectableOption<T>>;
|
|
22499
22673
|
interface GetMatchingOptionsArgs<TOption> {
|
|
22500
22674
|
/**
|
|
22501
22675
|
* All available options to match against
|
|
@@ -22800,7 +22974,8 @@ declare module '@elastic/eui/src/components/selectable/selectable_list/selectabl
|
|
|
22800
22974
|
makeOptionId: (index: number | undefined) => string;
|
|
22801
22975
|
listId: string;
|
|
22802
22976
|
setActiveOptionIndex: (index: number, cb?: () => void) => void;
|
|
22803
|
-
};
|
|
22977
|
+
};
|
|
22978
|
+
type State<T> = {
|
|
22804
22979
|
defaultOptionWidth: number;
|
|
22805
22980
|
optionArray: Array<EuiSelectableOption<T>>;
|
|
22806
22981
|
itemData: Record<number, EuiSelectableOption<T>>;
|
|
@@ -22824,7 +22999,7 @@ declare module '@elastic/eui/src/components/selectable/selectable_list/selectabl
|
|
|
22824
22999
|
setListBoxRef: (ref: HTMLUListElement | null) => void;
|
|
22825
23000
|
shouldComponentUpdate(nextProps: Readonly<EuiSelectableListProps<T>>): boolean;
|
|
22826
23001
|
componentDidUpdate(prevProps: EuiSelectableListProps<T>): void;
|
|
22827
|
-
calculateAriaSetAttrs: (optionArray: State<T>[
|
|
23002
|
+
calculateAriaSetAttrs: (optionArray: State<T>["optionArray"]) => {
|
|
22828
23003
|
ariaPosInSetMap: Record<number, number>;
|
|
22829
23004
|
ariaSetSize: number;
|
|
22830
23005
|
};
|
|
@@ -22836,9 +23011,9 @@ declare module '@elastic/eui/src/components/selectable/selectable_list/selectabl
|
|
|
22836
23011
|
getTruncationProps: (option: EuiSelectableOption, highlightSearch: boolean, isFocused: boolean) => {
|
|
22837
23012
|
prefix?: string | undefined;
|
|
22838
23013
|
slot?: string | undefined;
|
|
22839
|
-
style?:
|
|
23014
|
+
style?: CSSProperties | undefined;
|
|
22840
23015
|
title?: string | undefined;
|
|
22841
|
-
width: number
|
|
23016
|
+
width: number;
|
|
22842
23017
|
color?: string | undefined;
|
|
22843
23018
|
content?: string | undefined;
|
|
22844
23019
|
hidden?: boolean | undefined;
|
|
@@ -22852,14 +23027,14 @@ declare module '@elastic/eui/src/components/selectable/selectable_list/selectabl
|
|
|
22852
23027
|
suppressHydrationWarning?: boolean | undefined;
|
|
22853
23028
|
accessKey?: string | undefined;
|
|
22854
23029
|
autoFocus?: boolean | undefined;
|
|
22855
|
-
contentEditable?:
|
|
23030
|
+
contentEditable?: (boolean | "false" | "true") | "inherit" | "plaintext-only" | undefined;
|
|
22856
23031
|
contextMenu?: string | undefined;
|
|
22857
23032
|
dir?: string | undefined;
|
|
22858
|
-
draggable?: (boolean | "
|
|
23033
|
+
draggable?: (boolean | "false" | "true") | undefined;
|
|
22859
23034
|
id?: string | undefined;
|
|
22860
23035
|
lang?: string | undefined;
|
|
22861
23036
|
nonce?: string | undefined;
|
|
22862
|
-
spellCheck?: (boolean | "
|
|
23037
|
+
spellCheck?: (boolean | "false" | "true") | undefined;
|
|
22863
23038
|
tabIndex?: number | undefined;
|
|
22864
23039
|
radioGroup?: string | undefined;
|
|
22865
23040
|
role?: React.AriaRole | undefined;
|
|
@@ -22882,55 +23057,55 @@ declare module '@elastic/eui/src/components/selectable/selectable_list/selectabl
|
|
|
22882
23057
|
results?: number | undefined;
|
|
22883
23058
|
security?: string | undefined;
|
|
22884
23059
|
unselectable?: "on" | "off" | undefined;
|
|
22885
|
-
inputMode?: "
|
|
23060
|
+
inputMode?: "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | "search" | undefined;
|
|
22886
23061
|
is?: string | undefined;
|
|
22887
23062
|
"aria-activedescendant"?: string | undefined;
|
|
22888
|
-
"aria-atomic"?: (boolean | "
|
|
22889
|
-
"aria-autocomplete"?: "none" | "
|
|
23063
|
+
"aria-atomic"?: (boolean | "false" | "true") | undefined;
|
|
23064
|
+
"aria-autocomplete"?: "none" | "inline" | "list" | "both" | undefined;
|
|
22890
23065
|
"aria-braillelabel"?: string | undefined;
|
|
22891
23066
|
"aria-brailleroledescription"?: string | undefined;
|
|
22892
|
-
"aria-busy"?: (boolean | "
|
|
22893
|
-
"aria-checked"?: boolean | "
|
|
23067
|
+
"aria-busy"?: (boolean | "false" | "true") | undefined;
|
|
23068
|
+
"aria-checked"?: boolean | "false" | "mixed" | "true" | undefined;
|
|
22894
23069
|
"aria-colcount"?: number | undefined;
|
|
22895
23070
|
"aria-colindex"?: number | undefined;
|
|
22896
23071
|
"aria-colindextext"?: string | undefined;
|
|
22897
23072
|
"aria-colspan"?: number | undefined;
|
|
22898
23073
|
"aria-controls"?: string | undefined;
|
|
22899
|
-
"aria-current"?: boolean | "
|
|
23074
|
+
"aria-current"?: boolean | "false" | "true" | "page" | "step" | "location" | "date" | "time" | undefined;
|
|
22900
23075
|
"aria-describedby"?: string | undefined;
|
|
22901
23076
|
"aria-description"?: string | undefined;
|
|
22902
23077
|
"aria-details"?: string | undefined;
|
|
22903
|
-
"aria-disabled"?: (boolean | "
|
|
22904
|
-
"aria-dropeffect"?: "
|
|
23078
|
+
"aria-disabled"?: (boolean | "false" | "true") | undefined;
|
|
23079
|
+
"aria-dropeffect"?: "none" | "copy" | "execute" | "link" | "move" | "popup" | undefined;
|
|
22905
23080
|
"aria-errormessage"?: string | undefined;
|
|
22906
|
-
"aria-expanded"?: (boolean | "
|
|
23081
|
+
"aria-expanded"?: (boolean | "false" | "true") | undefined;
|
|
22907
23082
|
"aria-flowto"?: string | undefined;
|
|
22908
|
-
"aria-grabbed"?: (boolean | "
|
|
22909
|
-
"aria-haspopup"?: boolean | "
|
|
22910
|
-
"aria-hidden"?: (boolean | "
|
|
22911
|
-
"aria-invalid"?: boolean | "
|
|
23083
|
+
"aria-grabbed"?: (boolean | "false" | "true") | undefined;
|
|
23084
|
+
"aria-haspopup"?: boolean | "false" | "true" | "menu" | "listbox" | "tree" | "grid" | "dialog" | undefined;
|
|
23085
|
+
"aria-hidden"?: (boolean | "false" | "true") | undefined;
|
|
23086
|
+
"aria-invalid"?: boolean | "false" | "true" | "grammar" | "spelling" | undefined;
|
|
22912
23087
|
"aria-keyshortcuts"?: string | undefined;
|
|
22913
23088
|
"aria-label"?: string | undefined;
|
|
22914
23089
|
"aria-labelledby"?: string | undefined;
|
|
22915
23090
|
"aria-level"?: number | undefined;
|
|
22916
23091
|
"aria-live"?: "off" | "assertive" | "polite" | undefined;
|
|
22917
|
-
"aria-modal"?: (boolean | "
|
|
22918
|
-
"aria-multiline"?: (boolean | "
|
|
22919
|
-
"aria-multiselectable"?: (boolean | "
|
|
23092
|
+
"aria-modal"?: (boolean | "false" | "true") | undefined;
|
|
23093
|
+
"aria-multiline"?: (boolean | "false" | "true") | undefined;
|
|
23094
|
+
"aria-multiselectable"?: (boolean | "false" | "true") | undefined;
|
|
22920
23095
|
"aria-orientation"?: "horizontal" | "vertical" | undefined;
|
|
22921
23096
|
"aria-owns"?: string | undefined;
|
|
22922
23097
|
"aria-placeholder"?: string | undefined;
|
|
22923
23098
|
"aria-posinset"?: number | undefined;
|
|
22924
|
-
"aria-pressed"?: boolean | "
|
|
22925
|
-
"aria-readonly"?: (boolean | "
|
|
22926
|
-
"aria-relevant"?: "
|
|
22927
|
-
"aria-required"?: (boolean | "
|
|
23099
|
+
"aria-pressed"?: boolean | "false" | "mixed" | "true" | undefined;
|
|
23100
|
+
"aria-readonly"?: (boolean | "false" | "true") | undefined;
|
|
23101
|
+
"aria-relevant"?: "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text" | "text additions" | "text removals" | undefined;
|
|
23102
|
+
"aria-required"?: (boolean | "false" | "true") | undefined;
|
|
22928
23103
|
"aria-roledescription"?: string | undefined;
|
|
22929
23104
|
"aria-rowcount"?: number | undefined;
|
|
22930
23105
|
"aria-rowindex"?: number | undefined;
|
|
22931
23106
|
"aria-rowindextext"?: string | undefined;
|
|
22932
23107
|
"aria-rowspan"?: number | undefined;
|
|
22933
|
-
"aria-selected"?: (boolean | "
|
|
23108
|
+
"aria-selected"?: (boolean | "false" | "true") | undefined;
|
|
22934
23109
|
"aria-setsize"?: number | undefined;
|
|
22935
23110
|
"aria-sort"?: "none" | "ascending" | "descending" | "other" | undefined;
|
|
22936
23111
|
"aria-valuemax"?: number | undefined;
|
|
@@ -23008,7 +23183,7 @@ declare module '@elastic/eui/src/components/selectable/selectable_list/selectabl
|
|
|
23008
23183
|
onProgressCapture?: React.ReactEventHandler<HTMLDivElement> | undefined;
|
|
23009
23184
|
onRateChange?: React.ReactEventHandler<HTMLDivElement> | undefined;
|
|
23010
23185
|
onRateChangeCapture?: React.ReactEventHandler<HTMLDivElement> | undefined;
|
|
23011
|
-
onResize?: (
|
|
23186
|
+
onResize?: (width: number) => void;
|
|
23012
23187
|
onResizeCapture?: React.ReactEventHandler<HTMLDivElement> | undefined;
|
|
23013
23188
|
onSeeked?: React.ReactEventHandler<HTMLDivElement> | undefined;
|
|
23014
23189
|
onSeekedCapture?: React.ReactEventHandler<HTMLDivElement> | undefined;
|
|
@@ -23100,15 +23275,15 @@ declare module '@elastic/eui/src/components/selectable/selectable_list/selectabl
|
|
|
23100
23275
|
onAnimationIterationCapture?: React.AnimationEventHandler<HTMLDivElement> | undefined;
|
|
23101
23276
|
onTransitionEnd?: React.TransitionEventHandler<HTMLDivElement> | undefined;
|
|
23102
23277
|
onTransitionEndCapture?: React.TransitionEventHandler<HTMLDivElement> | undefined;
|
|
23103
|
-
'data-test-subj'?: string
|
|
23104
|
-
ellipsis?: string
|
|
23105
|
-
truncation?:
|
|
23106
|
-
truncationOffset?: number
|
|
23107
|
-
truncationPosition?: number
|
|
23108
|
-
calculationDelayMs?: number
|
|
23278
|
+
'data-test-subj'?: string;
|
|
23279
|
+
ellipsis?: string;
|
|
23280
|
+
truncation?: import ("@elastic/eui/src/components/text_truncate").EuiTextTruncationTypes;
|
|
23281
|
+
truncationOffset?: number;
|
|
23282
|
+
truncationPosition?: number;
|
|
23283
|
+
calculationDelayMs?: number;
|
|
23109
23284
|
} | undefined;
|
|
23110
|
-
renderSearchedText: (text: string, truncationProps?: EuiSelectableOptionsListProps[
|
|
23111
|
-
renderTruncatedText: (text: string, truncationProps?: EuiSelectableOptionsListProps[
|
|
23285
|
+
renderSearchedText: (text: string, truncationProps?: EuiSelectableOptionsListProps["truncationProps"]) => React.JSX.Element;
|
|
23286
|
+
renderTruncatedText: (text: string, truncationProps?: EuiSelectableOptionsListProps["truncationProps"]) => React.JSX.Element;
|
|
23112
23287
|
render(): React.JSX.Element;
|
|
23113
23288
|
onAddOrRemoveOption: (option: EuiSelectableOption<T>, event: EuiSelectableOnChangeEvent) => void;
|
|
23114
23289
|
private onAddOption;
|
|
@@ -23142,7 +23317,10 @@ declare module '@elastic/eui/src/components/selectable/selectable' {
|
|
|
23142
23317
|
import { EuiSelectableList } from '@elastic/eui/src/components/selectable/selectable_list';
|
|
23143
23318
|
import { EuiSelectableOptionsListProps } from '@elastic/eui/src/components/selectable/selectable_list/selectable_list';
|
|
23144
23319
|
import { EuiSelectableOption } from '@elastic/eui/src/components/selectable/selectable_option';
|
|
23145
|
-
export type EuiSelectableOnChangeEvent = KeyboardEvent | MouseEvent;
|
|
23320
|
+
export type EuiSelectableOnChangeEvent = KeyboardEvent | MouseEvent;
|
|
23321
|
+
type RequiredEuiSelectableOptionsListProps = Omit<EuiSelectableOptionsListProps, keyof (typeof EuiSelectableList)['defaultProps']>;
|
|
23322
|
+
type OptionalEuiSelectableOptionsListProps = Omit<EuiSelectableOptionsListProps, keyof RequiredEuiSelectableOptionsListProps>;
|
|
23323
|
+
type EuiSelectableOptionsListPropsWithDefaults = RequiredEuiSelectableOptionsListProps & Partial<OptionalEuiSelectableOptionsListProps>;
|
|
23146
23324
|
export interface EuiSelectableOptionMatcherArgs<TOption> {
|
|
23147
23325
|
option: EuiSelectableOption<TOption>;
|
|
23148
23326
|
searchValue: string;
|
|
@@ -23293,14 +23471,14 @@ declare module '@elastic/eui/src/components/selectable/selectable' {
|
|
|
23293
23471
|
componentDidUpdate<T>(prevProps: EuiSelectableProps<T>, prevState: EuiSelectableState<T>): void;
|
|
23294
23472
|
isFocusOnSearchOrListBox: (target: EventTarget | null) => boolean | undefined;
|
|
23295
23473
|
onMouseDown: () => void;
|
|
23296
|
-
onFocus: (event?:
|
|
23474
|
+
onFocus: (event?: FocusEvent) => void;
|
|
23297
23475
|
onKeyDown: (event: KeyboardEvent<HTMLDivElement>) => void;
|
|
23298
23476
|
incrementActiveOptionIndex: (amount: number) => void;
|
|
23299
23477
|
onSearchChange: (searchValue: string, visibleOptions: Array<EuiSelectableOption<T>>) => void;
|
|
23300
23478
|
onContainerBlur: (e: React.FocusEvent) => void;
|
|
23301
23479
|
onOptionClick: (options: Array<EuiSelectableOption<T>>, event: EuiSelectableOnChangeEvent, clickedOption: EuiSelectableOption<T>) => void;
|
|
23302
|
-
scrollToItem: (index: number, align?: Align
|
|
23303
|
-
makeOptionId: (index?: number
|
|
23480
|
+
scrollToItem: (index: number, align?: Align) => void;
|
|
23481
|
+
makeOptionId: (index?: number) => string;
|
|
23304
23482
|
render(): React.JSX.Element;
|
|
23305
23483
|
}
|
|
23306
23484
|
export {};
|
|
@@ -23448,7 +23626,10 @@ declare module '@elastic/eui/src/components/search_bar/filters/field_value_selec
|
|
|
23448
23626
|
value: Value;
|
|
23449
23627
|
name?: string;
|
|
23450
23628
|
view?: ReactNode;
|
|
23451
|
-
}
|
|
23629
|
+
}
|
|
23630
|
+
type OptionsLoader = () => Promise<FieldValueOptionType[]>;
|
|
23631
|
+
type OptionsFilter = (name: string, query: string, options?: FieldValueOptionType[]) => boolean;
|
|
23632
|
+
type MultiSelect = boolean | 'and' | 'or';
|
|
23452
23633
|
export interface FieldValueSelectionFilterConfigType {
|
|
23453
23634
|
type: 'field_value_selection';
|
|
23454
23635
|
field?: string;
|
|
@@ -23622,7 +23803,8 @@ declare module '@elastic/eui/src/components/search_bar/search_filters' {
|
|
|
23622
23803
|
query: Query;
|
|
23623
23804
|
onChange: (query: Query) => void;
|
|
23624
23805
|
filters: SearchFilterConfig[];
|
|
23625
|
-
}
|
|
23806
|
+
}
|
|
23807
|
+
type DefaultProps = Pick<EuiSearchBarFiltersProps, 'filters'>;
|
|
23626
23808
|
export class EuiSearchBarFilters extends Component<EuiSearchBarFiltersProps> {
|
|
23627
23809
|
static defaultProps: DefaultProps;
|
|
23628
23810
|
render(): React.JSX.Element;
|
|
@@ -23643,7 +23825,8 @@ declare module '@elastic/eui/src/components/search_bar/search_bar' {
|
|
|
23643
23825
|
import { EuiFieldSearchProps } from '@elastic/eui/src/components/form/field_search';
|
|
23644
23826
|
import { EuiInputPopoverProps } from '@elastic/eui/src/components/popover';
|
|
23645
23827
|
export { Query, AST as Ast } from '@elastic/eui/src/components/search_bar/query';
|
|
23646
|
-
export type QueryType = Query | string;
|
|
23828
|
+
export type QueryType = Query | string;
|
|
23829
|
+
type Tools = ReactElement | ReactElement[];
|
|
23647
23830
|
interface ArgsWithQuery {
|
|
23648
23831
|
query: Query;
|
|
23649
23832
|
queryText: string;
|
|
@@ -23660,7 +23843,8 @@ declare module '@elastic/eui/src/components/search_bar/search_bar' {
|
|
|
23660
23843
|
flags?: string[];
|
|
23661
23844
|
recognizedFields?: string[];
|
|
23662
23845
|
}
|
|
23663
|
-
export type EuiSearchBarOnChangeArgs = ArgsWithQuery | ArgsWithError;
|
|
23846
|
+
export type EuiSearchBarOnChangeArgs = ArgsWithQuery | ArgsWithError;
|
|
23847
|
+
type HintPopOverProps = Partial<Pick<EuiInputPopoverProps, 'isOpen' | 'closePopover' | 'fullWidth' | 'disableFocusTrap' | 'panelClassName' | 'panelPaddingSize' | 'panelStyle' | 'panelProps' | 'popoverScreenReaderText' | 'repositionOnScroll' | 'zIndex' | 'data-test-subj'>>;
|
|
23664
23848
|
export interface EuiSearchBarProps extends CommonProps {
|
|
23665
23849
|
onChange?: (args: EuiSearchBarOnChangeArgs) => void | boolean;
|
|
23666
23850
|
/**
|
|
@@ -23706,7 +23890,8 @@ declare module '@elastic/eui/src/components/search_bar/search_bar' {
|
|
|
23706
23890
|
queryText: string;
|
|
23707
23891
|
error: null | Error;
|
|
23708
23892
|
isHintVisible: boolean;
|
|
23709
|
-
}
|
|
23893
|
+
}
|
|
23894
|
+
type NotifyControllingParent = Pick<State, 'queryText' | 'error'> & {
|
|
23710
23895
|
query: Query | null;
|
|
23711
23896
|
};
|
|
23712
23897
|
export class EuiSearchBar extends Component<EuiSearchBarProps, State> {
|
|
@@ -23776,15 +23961,15 @@ declare module '@elastic/eui/src/components/side_nav/side_nav_item.styles' {
|
|
|
23776
23961
|
root: {
|
|
23777
23962
|
lineHeight: import("csstype").Property.LineHeight<string | number> | undefined;
|
|
23778
23963
|
color: string;
|
|
23779
|
-
fontSize: import("
|
|
23780
|
-
fontWeight: import("
|
|
23964
|
+
fontSize: import("react").CSSProperties["fontSize"];
|
|
23965
|
+
fontWeight: import("react").CSSProperties["fontWeight"];
|
|
23781
23966
|
};
|
|
23782
23967
|
};
|
|
23783
23968
|
};
|
|
23784
23969
|
|
|
23785
23970
|
}
|
|
23786
23971
|
declare module '@elastic/eui/src/components/side_nav/side_nav_item' {
|
|
23787
|
-
import
|
|
23972
|
+
import { HTMLAttributes, ReactNode, ReactElement, MouseEventHandler, JSX } from 'react';
|
|
23788
23973
|
import { CommonProps } from '@elastic/eui/src/components/common';
|
|
23789
23974
|
/**
|
|
23790
23975
|
* The props that are exposed to, or altered for, the consumer
|
|
@@ -23841,7 +24026,9 @@ declare module '@elastic/eui/src/components/side_nav/side_nav_item' {
|
|
|
23841
24026
|
isParent?: boolean;
|
|
23842
24027
|
depth?: number;
|
|
23843
24028
|
childrenOnly?: boolean;
|
|
23844
|
-
}
|
|
24029
|
+
}
|
|
24030
|
+
type ExcludeEuiSideNavItemProps<T> = Pick<T, Exclude<keyof T, keyof _EuiSideNavItemProps | 'renderItem'>>;
|
|
24031
|
+
type OmitEuiSideNavItemProps<T> = {
|
|
23845
24032
|
[K in keyof ExcludeEuiSideNavItemProps<T>]: T[K];
|
|
23846
24033
|
};
|
|
23847
24034
|
export type RenderItem<T> = (props: OmitEuiSideNavItemProps<T> & _EuiSideNavItemButtonProps) => JSX.Element;
|
|
@@ -23850,23 +24037,8 @@ declare module '@elastic/eui/src/components/side_nav/side_nav_item' {
|
|
|
23850
24037
|
} ? T & {
|
|
23851
24038
|
renderItem: RenderItem<T>;
|
|
23852
24039
|
} : 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;
|
|
24040
|
+
export const EuiSideNavItem: <T extends _EuiSideNavItemButtonProps & _EuiSideNavItemProps & {
|
|
24041
|
+
renderItem?: (props: any) => JSX.Element;
|
|
23870
24042
|
}>({ 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
24043
|
export {};
|
|
23872
24044
|
|
|
@@ -24009,7 +24181,8 @@ declare module '@elastic/eui/src/components/stat/stat' {
|
|
|
24009
24181
|
import { HTMLAttributes, FunctionComponent, ReactNode } from 'react';
|
|
24010
24182
|
import { CommonProps } from '@elastic/eui/src/components/common';
|
|
24011
24183
|
import { EuiTitleSize } from '@elastic/eui/src/components/title/title';
|
|
24012
|
-
export const COLORS: readonly ["default", "subdued", "primary", "success", "warning", "danger", "accent"];
|
|
24184
|
+
export const COLORS: readonly ["default", "subdued", "primary", "success", "warning", "danger", "accent"];
|
|
24185
|
+
type TitleColor = (typeof COLORS)[number];
|
|
24013
24186
|
export const ALIGNMENTS: readonly ["left", "center", "right"];
|
|
24014
24187
|
export interface EuiStatProps {
|
|
24015
24188
|
/**
|
|
@@ -24056,7 +24229,7 @@ declare module '@elastic/eui/src/components/stat' {
|
|
|
24056
24229
|
|
|
24057
24230
|
}
|
|
24058
24231
|
declare module '@elastic/eui/src/components/steps/step_strings' {
|
|
24059
|
-
|
|
24232
|
+
type Props = {
|
|
24060
24233
|
number?: number;
|
|
24061
24234
|
title?: string;
|
|
24062
24235
|
};
|
|
@@ -24073,7 +24246,7 @@ declare module '@elastic/eui/src/components/steps/step_strings' {
|
|
|
24073
24246
|
}
|
|
24074
24247
|
declare module '@elastic/eui/src/components/steps/step.styles' {
|
|
24075
24248
|
import { UseEuiTheme } from '@elastic/eui/src/services';
|
|
24076
|
-
export const euiStepVariables: (euiTheme: UseEuiTheme[
|
|
24249
|
+
export const euiStepVariables: (euiTheme: UseEuiTheme["euiTheme"]) => {
|
|
24077
24250
|
numberSize: string;
|
|
24078
24251
|
numberXSSize: string;
|
|
24079
24252
|
numberXXSSize: string;
|
|
@@ -24326,7 +24499,8 @@ declare module '@elastic/eui/src/components/tour/_tour_header.styles' {
|
|
|
24326
24499
|
}
|
|
24327
24500
|
declare module '@elastic/eui/src/components/tour/_tour_header' {
|
|
24328
24501
|
import { FunctionComponent } from 'react';
|
|
24329
|
-
import type { EuiTourStepProps } from '@elastic/eui/src/components/tour/tour_step';
|
|
24502
|
+
import type { EuiTourStepProps } from '@elastic/eui/src/components/tour/tour_step';
|
|
24503
|
+
type EuiTourHeaderProps = {
|
|
24330
24504
|
id: string;
|
|
24331
24505
|
} & Pick<EuiTourStepProps, 'title' | 'subtitle'>;
|
|
24332
24506
|
export const EuiTourHeader: FunctionComponent<EuiTourHeaderProps>;
|
|
@@ -24354,7 +24528,8 @@ declare module '@elastic/eui/src/components/tour/_tour_footer.styles' {
|
|
|
24354
24528
|
}
|
|
24355
24529
|
declare module '@elastic/eui/src/components/tour/_tour_footer' {
|
|
24356
24530
|
import { FunctionComponent } from 'react';
|
|
24357
|
-
import type { EuiTourStepProps } from '@elastic/eui/src/components/tour/tour_step';
|
|
24531
|
+
import type { EuiTourStepProps } from '@elastic/eui/src/components/tour/tour_step';
|
|
24532
|
+
type EuiTourFooterProps = Pick<EuiTourStepProps, 'footerAction' | 'step' | 'stepsTotal' | 'onFinish'>;
|
|
24358
24533
|
export const EuiTourFooter: FunctionComponent<EuiTourFooterProps>;
|
|
24359
24534
|
export {};
|
|
24360
24535
|
|
|
@@ -24378,7 +24553,11 @@ declare module '@elastic/eui/src/components/tour/tour_step' {
|
|
|
24378
24553
|
import { CSSProperties, HTMLAttributes, FunctionComponent, ReactElement, ReactNode } from 'react';
|
|
24379
24554
|
import { ElementTarget } from '@elastic/eui/src/services';
|
|
24380
24555
|
import { CommonProps, ExclusiveUnion, NoArgCallback } from '@elastic/eui/src/components/common';
|
|
24381
|
-
import { EuiPopoverProps } from '@elastic/eui/src/components/popover';
|
|
24556
|
+
import { EuiPopoverProps } from '@elastic/eui/src/components/popover';
|
|
24557
|
+
type _EuiPopoverProps = EuiPopoverProps & Omit<HTMLAttributes<HTMLDivElement>, 'content' | 'title' | 'step'>;
|
|
24558
|
+
type _PopoverOverrides = 'button' | 'closePopover';
|
|
24559
|
+
type _PopoverPartials = 'closePopover';
|
|
24560
|
+
type ExtendedEuiPopoverProps = Omit<_EuiPopoverProps, _PopoverOverrides> & Partial<Pick<EuiPopoverProps, _PopoverPartials>>;
|
|
24382
24561
|
export type EuiTourStepAnchorProps = ExclusiveUnion<{
|
|
24383
24562
|
/**
|
|
24384
24563
|
* Element to which the tour step popover attaches when open
|
|
@@ -24612,7 +24791,9 @@ declare module '@elastic/eui/src/components/basic_table/basic_table' {
|
|
|
24612
24791
|
index: number;
|
|
24613
24792
|
size: number;
|
|
24614
24793
|
};
|
|
24615
|
-
}
|
|
24794
|
+
}
|
|
24795
|
+
type CellPropsCallback<T extends object> = (item: T, column: EuiBasicTableColumn<T>) => object;
|
|
24796
|
+
type RowPropsCallback<T> = (item: T) => object;
|
|
24616
24797
|
interface BasicTableProps<T extends object> extends Omit<EuiTableProps, 'onChange'> {
|
|
24617
24798
|
/**
|
|
24618
24799
|
* Describes how to extract a unique ID from each item, used for selections & expanded rows
|
|
@@ -24678,7 +24859,8 @@ declare module '@elastic/eui/src/components/basic_table/basic_table' {
|
|
|
24678
24859
|
* Sets the table-layout CSS property. Note that auto tableLayout prevents truncateText from working properly.
|
|
24679
24860
|
*/
|
|
24680
24861
|
tableLayout?: 'fixed' | 'auto';
|
|
24681
|
-
}
|
|
24862
|
+
}
|
|
24863
|
+
type BasicTableWithPaginationProps<T extends object> = Omit<BasicTableProps<T>, 'pagination' | 'onChange'> & {
|
|
24682
24864
|
pagination: Pagination;
|
|
24683
24865
|
onChange?: (criteria: CriteriaWithPagination<T>) => void;
|
|
24684
24866
|
};
|
|
@@ -24758,10 +24940,13 @@ declare module '@elastic/eui/src/components/basic_table/in_memory_table' {
|
|
|
24758
24940
|
initialPageSize?: number;
|
|
24759
24941
|
pageIndex?: number;
|
|
24760
24942
|
pageSize?: number;
|
|
24761
|
-
}
|
|
24943
|
+
}
|
|
24944
|
+
type Pagination = boolean | PaginationOptions;
|
|
24762
24945
|
interface SortingOptions {
|
|
24763
24946
|
sort: PropertySort;
|
|
24764
|
-
}
|
|
24947
|
+
}
|
|
24948
|
+
type Sorting = boolean | SortingOptions;
|
|
24949
|
+
type InMemoryTableProps<T extends object> = Omit<EuiBasicTableProps<T>, 'pagination' | 'sorting' | 'noItemsMessage' | 'onChange'> & {
|
|
24765
24950
|
message?: ReactNode;
|
|
24766
24951
|
/**
|
|
24767
24952
|
* Configures #Search.
|
|
@@ -24815,7 +25000,8 @@ declare module '@elastic/eui/src/components/basic_table/in_memory_table' {
|
|
|
24815
25000
|
* Insert content between the search bar and table components.
|
|
24816
25001
|
*/
|
|
24817
25002
|
childrenBetween?: ReactNode;
|
|
24818
|
-
};
|
|
25003
|
+
};
|
|
25004
|
+
type InMemoryTablePropsWithPagination<T extends object> = Omit<InMemoryTableProps<T>, 'pagination' | 'onTableChange'> & {
|
|
24819
25005
|
pagination: Pagination;
|
|
24820
25006
|
onTableChange?: (nextValues: CriteriaWithPagination<T>) => void;
|
|
24821
25007
|
};
|
|
@@ -24944,7 +25130,8 @@ declare module '@elastic/eui/src/components/toast/toast' {
|
|
|
24944
25130
|
import { FunctionComponent, HTMLAttributes, ReactNode } from 'react';
|
|
24945
25131
|
import { CommonProps } from '@elastic/eui/src/components/common';
|
|
24946
25132
|
import { IconType } from '@elastic/eui/src/components/icon';
|
|
24947
|
-
export const COLORS: readonly ["primary", "success", "warning", "danger"];
|
|
25133
|
+
export const COLORS: readonly ["primary", "success", "warning", "danger"];
|
|
25134
|
+
type ToastColor = (typeof COLORS)[number];
|
|
24948
25135
|
export interface EuiToastProps extends CommonProps, Omit<HTMLAttributes<HTMLDivElement>, 'title'> {
|
|
24949
25136
|
title?: ReactNode;
|
|
24950
25137
|
color?: ToastColor;
|
|
@@ -25007,7 +25194,8 @@ declare module '@elastic/eui/src/components/toast/global_toast_list_item' {
|
|
|
25007
25194
|
declare module '@elastic/eui/src/components/toast/global_toast_list' {
|
|
25008
25195
|
import { FunctionComponent, HTMLAttributes, ReactNode } from 'react';
|
|
25009
25196
|
import { CommonProps } from '@elastic/eui/src/components/common';
|
|
25010
|
-
import { EuiToastProps } from '@elastic/eui/src/components/toast/toast';
|
|
25197
|
+
import { EuiToastProps } from '@elastic/eui/src/components/toast/toast';
|
|
25198
|
+
type ToastSide = 'right' | 'left';
|
|
25011
25199
|
export const SIDES: ToastSide[];
|
|
25012
25200
|
export const TOAST_FADE_OUT_MS = 250;
|
|
25013
25201
|
export const CLEAR_ALL_TOASTS_THRESHOLD_DEFAULT = 3;
|
|
@@ -25160,7 +25348,8 @@ declare module '@elastic/eui/.storybook/utils' {
|
|
|
25160
25348
|
/**
|
|
25161
25349
|
* argTypes configurations
|
|
25162
25350
|
*/
|
|
25163
|
-
import type { Meta, Preview, StoryObj } from '@storybook/react';
|
|
25351
|
+
import type { Meta, Preview, StoryObj } from '@storybook/react';
|
|
25352
|
+
type StorybookConfig<T> = Meta<T> | StoryObj<T> | Preview;
|
|
25164
25353
|
/**
|
|
25165
25354
|
* Completely hide props from Storybook's controls panel.
|
|
25166
25355
|
*
|
|
@@ -25170,7 +25359,7 @@ declare module '@elastic/eui/.storybook/utils' {
|
|
|
25170
25359
|
*
|
|
25171
25360
|
* @returns the mutated config
|
|
25172
25361
|
*/
|
|
25173
|
-
export const hideStorybookControls: <Props>(config: StorybookConfig<Props>, propNames:
|
|
25362
|
+
export const hideStorybookControls: <Props>(config: StorybookConfig<Props>, propNames: Array<keyof Props>) => StorybookConfig<Props>;
|
|
25174
25363
|
/**
|
|
25175
25364
|
* Leave props visible in Storybook's controls panel, but disable them
|
|
25176
25365
|
* from being controllable (renders a `-`).
|
|
@@ -25181,7 +25370,7 @@ declare module '@elastic/eui/.storybook/utils' {
|
|
|
25181
25370
|
*
|
|
25182
25371
|
* @returns the mutated config
|
|
25183
25372
|
*/
|
|
25184
|
-
export const disableStorybookControls: <Props>(config: StorybookConfig<Props>, propNames:
|
|
25373
|
+
export const disableStorybookControls: <Props>(config: StorybookConfig<Props>, propNames: Array<keyof Props>) => StorybookConfig<Props>;
|
|
25185
25374
|
/**
|
|
25186
25375
|
* Configure provided args to be listed under a specified
|
|
25187
25376
|
* category in the props table.
|
|
@@ -25192,7 +25381,7 @@ declare module '@elastic/eui/.storybook/utils' {
|
|
|
25192
25381
|
*
|
|
25193
25382
|
* @returns the mutated config
|
|
25194
25383
|
*/
|
|
25195
|
-
export const moveStorybookControlsToCategory: <Props>(config: StorybookConfig<Props>, propNames:
|
|
25384
|
+
export const moveStorybookControlsToCategory: <Props>(config: StorybookConfig<Props>, propNames: Array<keyof Props>, category?: string) => StorybookConfig<Props>;
|
|
25196
25385
|
/**
|
|
25197
25386
|
* Configures passed argTypes to be setup as toggle control
|
|
25198
25387
|
* which fires a Storybook action when enabled.
|
|
@@ -25204,7 +25393,7 @@ declare module '@elastic/eui/.storybook/utils' {
|
|
|
25204
25393
|
*
|
|
25205
25394
|
* @returns the mutated config
|
|
25206
25395
|
*/
|
|
25207
|
-
export const enableFunctionToggleControls: <Props>(config: StorybookConfig<Props>, propNames:
|
|
25396
|
+
export const enableFunctionToggleControls: <Props>(config: StorybookConfig<Props>, propNames: Array<keyof Props>) => StorybookConfig<Props>;
|
|
25208
25397
|
/**
|
|
25209
25398
|
* parameters configurations
|
|
25210
25399
|
*/
|
|
@@ -25272,54 +25461,54 @@ declare module '@elastic/eui/.storybook/test' {
|
|
|
25272
25461
|
waitForAndClick: (testSubject: string) => Promise<void>;
|
|
25273
25462
|
waitForEuiPopoverVisible: () => Promise<void>;
|
|
25274
25463
|
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: (<
|
|
25464
|
+
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);
|
|
25465
|
+
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[]);
|
|
25466
|
+
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);
|
|
25467
|
+
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[]);
|
|
25468
|
+
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>);
|
|
25469
|
+
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[]>);
|
|
25470
|
+
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);
|
|
25471
|
+
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[]);
|
|
25472
|
+
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);
|
|
25473
|
+
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[]);
|
|
25474
|
+
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>);
|
|
25475
|
+
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[]>);
|
|
25476
|
+
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);
|
|
25477
|
+
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[]);
|
|
25478
|
+
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);
|
|
25479
|
+
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[]);
|
|
25480
|
+
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>);
|
|
25481
|
+
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[]>);
|
|
25482
|
+
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);
|
|
25483
|
+
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[]);
|
|
25484
|
+
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);
|
|
25485
|
+
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[]);
|
|
25486
|
+
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>);
|
|
25487
|
+
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[]>);
|
|
25488
|
+
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);
|
|
25489
|
+
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[]);
|
|
25490
|
+
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);
|
|
25491
|
+
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[]);
|
|
25492
|
+
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>);
|
|
25493
|
+
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[]>);
|
|
25494
|
+
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);
|
|
25495
|
+
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[]);
|
|
25496
|
+
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);
|
|
25497
|
+
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[]);
|
|
25498
|
+
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>);
|
|
25499
|
+
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[]>);
|
|
25500
|
+
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);
|
|
25501
|
+
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[]);
|
|
25502
|
+
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);
|
|
25503
|
+
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[]);
|
|
25504
|
+
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>);
|
|
25505
|
+
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[]>);
|
|
25506
|
+
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);
|
|
25507
|
+
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[]);
|
|
25508
|
+
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);
|
|
25509
|
+
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[]);
|
|
25510
|
+
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>);
|
|
25511
|
+
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
25512
|
queryByTestSubject: (args_0: import("@testing-library/react").Matcher) => HTMLElement | null;
|
|
25324
25513
|
queryAllByTestSubject: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement[];
|
|
25325
25514
|
getByTestSubject: (args_0: import("@testing-library/react").Matcher) => HTMLElement;
|
|
@@ -31146,7 +31335,7 @@ declare module '@elastic/eui/.storybook/addons/code-snippet/constants' {
|
|
|
31146
31335
|
* Addon specific constants
|
|
31147
31336
|
*/
|
|
31148
31337
|
export const ADDON_ID = "storybook/code-snippet";
|
|
31149
|
-
export const PANEL_ID
|
|
31338
|
+
export const PANEL_ID = "storybook/code-snippet/panel";
|
|
31150
31339
|
export const EVENTS: {
|
|
31151
31340
|
SNIPPET_RENDERED: string;
|
|
31152
31341
|
SNIPPET_PANEL_OPENED: string;
|