@elastic/eui 113.2.1 → 114.0.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/basic_table/collapsed_item_actions.js +2 -0
- package/es/components/button/split_button/split_button.js +13 -0
- package/es/components/button/split_button/split_button_actions.js +15 -0
- package/es/components/collapsible_nav/collapsible_nav.js +5 -0
- package/es/components/color_picker/color_picker.js +31 -8
- package/es/components/context_menu/context_menu_item.js +9 -3
- package/es/components/context_menu/context_menu_item.styles.js +6 -2
- package/es/components/datagrid/utils/scrolling.js +39 -10
- package/es/components/date_picker/super_date_picker/time_window_buttons.js +17 -3
- package/es/components/flyout/_flyout_overlay.js +34 -4
- package/es/components/flyout/const.js +10 -0
- package/es/components/flyout/flyout.component.js +49 -57
- package/es/components/flyout/flyout.js +10 -2
- package/es/components/flyout/flyout.styles.js +2 -2
- package/es/components/flyout/flyout_menu.js +19 -5
- package/es/components/flyout/flyout_resizable.js +5 -0
- package/es/components/flyout/manager/actions.js +12 -5
- package/es/components/flyout/manager/flyout_child.js +9 -2
- package/es/components/flyout/manager/flyout_managed.js +27 -14
- package/es/components/flyout/manager/reducer.js +251 -54
- package/es/components/flyout/manager/store.js +74 -12
- package/es/components/flyout/use_flyout_menu.js +70 -0
- package/es/components/form/file_picker/file_picker.js +46 -18
- package/es/components/markdown_editor/plugins/markdown_default_plugins/parsing_plugins.js +2 -1
- package/es/components/markdown_editor/plugins/remark/remark_intraword_underscore.js +172 -0
- package/es/components/overlay_mask/overlay_mask.js +10 -3
- package/es/components/tree_view/tree_view_item.styles.js +1 -1
- package/es/services/hooks/index.js +8 -8
- package/es/services/hooks/useIsPointerDown.js +6 -15
- package/es/services/index.js +1 -1
- package/eui.d.ts +477 -63
- package/i18ntokens.json +661 -643
- package/lib/components/basic_table/collapsed_item_actions.js +2 -0
- package/lib/components/button/split_button/split_button.js +13 -0
- package/lib/components/button/split_button/split_button_actions.js +15 -0
- package/lib/components/collapsible_nav/collapsible_nav.js +5 -0
- package/lib/components/color_picker/color_picker.js +30 -7
- package/lib/components/context_menu/context_menu_item.js +9 -3
- package/lib/components/context_menu/context_menu_item.styles.js +5 -1
- package/lib/components/datagrid/utils/scrolling.js +37 -8
- package/lib/components/date_picker/super_date_picker/time_window_buttons.js +17 -3
- package/lib/components/flyout/_flyout_overlay.js +33 -3
- package/lib/components/flyout/const.js +11 -1
- package/lib/components/flyout/flyout.component.js +48 -56
- package/lib/components/flyout/flyout.js +15 -1
- package/lib/components/flyout/flyout.styles.js +2 -2
- package/lib/components/flyout/flyout_menu.js +19 -5
- package/lib/components/flyout/flyout_resizable.js +5 -0
- package/lib/components/flyout/manager/actions.js +12 -5
- package/lib/components/flyout/manager/flyout_child.js +9 -2
- package/lib/components/flyout/manager/flyout_managed.js +19 -12
- package/lib/components/flyout/manager/reducer.js +250 -53
- package/lib/components/flyout/manager/store.js +74 -14
- package/lib/components/flyout/use_flyout_menu.js +75 -0
- package/lib/components/form/file_picker/file_picker.js +46 -18
- package/lib/components/markdown_editor/plugins/markdown_default_plugins/parsing_plugins.js +2 -1
- package/lib/components/markdown_editor/plugins/remark/remark_intraword_underscore.js +179 -0
- package/lib/components/overlay_mask/overlay_mask.js +10 -3
- package/lib/components/tree_view/tree_view_item.styles.js +1 -1
- package/lib/services/hooks/index.js +60 -91
- package/lib/services/hooks/useIsPointerDown.js +7 -14
- package/lib/services/index.js +70 -11
- package/optimize/es/components/basic_table/collapsed_item_actions.js +2 -0
- package/optimize/es/components/color_picker/color_picker.js +31 -8
- package/optimize/es/components/context_menu/context_menu_item.js +3 -2
- package/optimize/es/components/context_menu/context_menu_item.styles.js +6 -2
- package/optimize/es/components/datagrid/utils/scrolling.js +39 -10
- package/optimize/es/components/date_picker/super_date_picker/time_window_buttons.js +17 -3
- package/optimize/es/components/flyout/_flyout_overlay.js +34 -4
- package/optimize/es/components/flyout/const.js +10 -0
- package/optimize/es/components/flyout/flyout.component.js +49 -57
- package/optimize/es/components/flyout/flyout.js +5 -2
- package/optimize/es/components/flyout/flyout.styles.js +2 -2
- package/optimize/es/components/flyout/flyout_menu.js +7 -3
- package/optimize/es/components/flyout/manager/actions.js +12 -5
- package/optimize/es/components/flyout/manager/flyout_managed.js +18 -12
- package/optimize/es/components/flyout/manager/reducer.js +251 -54
- package/optimize/es/components/flyout/manager/store.js +69 -12
- package/optimize/es/components/flyout/use_flyout_menu.js +69 -0
- package/optimize/es/components/form/file_picker/file_picker.js +35 -18
- package/optimize/es/components/markdown_editor/plugins/markdown_default_plugins/parsing_plugins.js +2 -1
- package/optimize/es/components/markdown_editor/plugins/remark/remark_intraword_underscore.js +172 -0
- package/optimize/es/components/overlay_mask/overlay_mask.js +4 -2
- package/optimize/es/components/tree_view/tree_view_item.styles.js +1 -1
- package/optimize/es/services/hooks/index.js +8 -8
- package/optimize/es/services/hooks/useIsPointerDown.js +6 -10
- package/optimize/es/services/index.js +1 -1
- package/optimize/lib/components/basic_table/collapsed_item_actions.js +2 -0
- package/optimize/lib/components/color_picker/color_picker.js +30 -7
- package/optimize/lib/components/context_menu/context_menu_item.js +3 -2
- package/optimize/lib/components/context_menu/context_menu_item.styles.js +5 -1
- package/optimize/lib/components/datagrid/utils/scrolling.js +37 -8
- package/optimize/lib/components/date_picker/super_date_picker/time_window_buttons.js +17 -3
- package/optimize/lib/components/flyout/_flyout_overlay.js +33 -3
- package/optimize/lib/components/flyout/const.js +11 -1
- package/optimize/lib/components/flyout/flyout.component.js +48 -56
- package/optimize/lib/components/flyout/flyout.js +10 -1
- package/optimize/lib/components/flyout/flyout.styles.js +2 -2
- package/optimize/lib/components/flyout/flyout_menu.js +7 -3
- package/optimize/lib/components/flyout/manager/actions.js +12 -5
- package/optimize/lib/components/flyout/manager/flyout_managed.js +18 -12
- package/optimize/lib/components/flyout/manager/reducer.js +250 -53
- package/optimize/lib/components/flyout/manager/store.js +70 -12
- package/optimize/lib/components/flyout/use_flyout_menu.js +74 -0
- package/optimize/lib/components/form/file_picker/file_picker.js +35 -18
- package/optimize/lib/components/markdown_editor/plugins/markdown_default_plugins/parsing_plugins.js +2 -1
- package/optimize/lib/components/markdown_editor/plugins/remark/remark_intraword_underscore.js +179 -0
- package/optimize/lib/components/overlay_mask/overlay_mask.js +4 -2
- package/optimize/lib/components/tree_view/tree_view_item.styles.js +1 -1
- package/optimize/lib/services/hooks/index.js +60 -91
- package/optimize/lib/services/hooks/useIsPointerDown.js +5 -10
- package/optimize/lib/services/index.js +70 -11
- package/package.json +4 -4
- package/test-env/components/basic_table/collapsed_item_actions.js +2 -0
- package/test-env/components/button/split_button/split_button.js +13 -0
- package/test-env/components/button/split_button/split_button_actions.js +15 -0
- package/test-env/components/collapsible_nav/collapsible_nav.js +5 -0
- package/test-env/components/color_picker/color_picker.js +30 -7
- package/test-env/components/context_menu/context_menu_item.js +9 -3
- package/test-env/components/context_menu/context_menu_item.styles.js +5 -1
- package/test-env/components/datagrid/utils/scrolling.js +37 -8
- package/test-env/components/date_picker/super_date_picker/time_window_buttons.js +17 -3
- package/test-env/components/flyout/_flyout_overlay.js +33 -3
- package/test-env/components/flyout/const.js +11 -1
- package/test-env/components/flyout/flyout.component.js +48 -56
- package/test-env/components/flyout/flyout.styles.js +2 -2
- package/test-env/components/flyout/flyout_menu.js +19 -5
- package/test-env/components/flyout/flyout_resizable.js +5 -0
- package/test-env/components/flyout/manager/actions.js +12 -5
- package/test-env/components/flyout/manager/flyout_child.js +9 -2
- package/test-env/components/flyout/manager/flyout_managed.js +19 -12
- package/test-env/components/flyout/manager/reducer.js +250 -53
- package/test-env/components/flyout/manager/store.js +70 -12
- package/test-env/components/flyout/use_flyout_menu.js +74 -0
- package/test-env/components/form/file_picker/file_picker.js +46 -18
- package/test-env/components/markdown_editor/plugins/markdown_default_plugins/parsing_plugins.js +2 -1
- package/test-env/components/markdown_editor/plugins/remark/remark_intraword_underscore.js +179 -0
- package/test-env/components/overlay_mask/overlay_mask.js +10 -3
- package/test-env/components/tree_view/tree_view_item.styles.js +1 -1
- package/test-env/services/hooks/index.js +60 -91
- package/test-env/services/hooks/useIsPointerDown.js +5 -10
- package/test-env/services/index.js +70 -11
package/eui.d.ts
CHANGED
|
@@ -404,12 +404,12 @@ declare module '@elastic/eui/src/services/hooks/useMouseMove' {
|
|
|
404
404
|
|
|
405
405
|
}
|
|
406
406
|
declare module '@elastic/eui/src/services/hooks/useIsPointerDown' {
|
|
407
|
-
import { MutableRefObject } from 'react';
|
|
407
|
+
import { type MutableRefObject } from 'react';
|
|
408
408
|
/**
|
|
409
409
|
* A hook that tracks whether the pointer is currently down/pressed.
|
|
410
410
|
* Useful for detecting text selection in progress.
|
|
411
411
|
*/
|
|
412
|
-
export function useIsPointerDown(container?: MutableRefObject<HTMLElement | null>): boolean
|
|
412
|
+
export function useIsPointerDown(container?: MutableRefObject<HTMLElement | null>): MutableRefObject<boolean>;
|
|
413
413
|
|
|
414
414
|
}
|
|
415
415
|
declare module '@elastic/eui/src/services/hooks/useEuiDisabledElement' {
|
|
@@ -479,14 +479,14 @@ declare module '@elastic/eui/src/services/hooks/useEuiDisabledElement' {
|
|
|
479
479
|
|
|
480
480
|
}
|
|
481
481
|
declare module '@elastic/eui/src/services/hooks' {
|
|
482
|
-
export
|
|
483
|
-
export
|
|
484
|
-
export
|
|
485
|
-
export
|
|
486
|
-
export
|
|
487
|
-
export
|
|
488
|
-
export
|
|
489
|
-
export
|
|
482
|
+
export { useDependentState } from '@elastic/eui/src/services/hooks/useDependentState';
|
|
483
|
+
export { useCombinedRefs, setMultipleRefs } from '@elastic/eui/src/services/hooks/useCombinedRefs';
|
|
484
|
+
export { useForceRender } from '@elastic/eui/src/services/hooks/useForceRender';
|
|
485
|
+
export { useLatest } from '@elastic/eui/src/services/hooks/useLatest';
|
|
486
|
+
export { useDeepEqual } from '@elastic/eui/src/services/hooks/useDeepEqual';
|
|
487
|
+
export { isMouseEvent, useMouseMove } from '@elastic/eui/src/services/hooks/useMouseMove';
|
|
488
|
+
export { useIsPointerDown } from '@elastic/eui/src/services/hooks/useIsPointerDown';
|
|
489
|
+
export { useUpdateEffect } from '@elastic/eui/src/services/hooks/useUpdateEffect';
|
|
490
490
|
export { type EuiDisabledProps, useEuiDisabledElement, } from '@elastic/eui/src/services/hooks/useEuiDisabledElement';
|
|
491
491
|
|
|
492
492
|
}
|
|
@@ -10953,7 +10953,9 @@ declare module '@elastic/eui/src/components/horizontal_rule' {
|
|
|
10953
10953
|
|
|
10954
10954
|
}
|
|
10955
10955
|
declare module '@elastic/eui/src/components/context_menu/context_menu_item.styles' {
|
|
10956
|
+
import { css } from '@emotion/react';
|
|
10956
10957
|
import { UseEuiTheme } from '@elastic/eui/src/services';
|
|
10958
|
+
import { type _EuiExtendedButtonColor } from '@elastic/eui/src/global_styling';
|
|
10957
10959
|
export const euiContextMenuItemStyles: (euiThemeContext: UseEuiTheme) => {
|
|
10958
10960
|
euiContextMenuItem: import("@emotion/react").SerializedStyles;
|
|
10959
10961
|
disabled: import("@emotion/react").SerializedStyles;
|
|
@@ -10972,6 +10974,7 @@ declare module '@elastic/eui/src/components/context_menu/context_menu_item.style
|
|
|
10972
10974
|
s: import("@emotion/react").SerializedStyles;
|
|
10973
10975
|
};
|
|
10974
10976
|
euiContextMenuItem__arrow: import("@emotion/react").SerializedStyles;
|
|
10977
|
+
colors: Record<_EuiExtendedButtonColor, ReturnType<typeof css>>;
|
|
10975
10978
|
};
|
|
10976
10979
|
|
|
10977
10980
|
}
|
|
@@ -10980,6 +10983,7 @@ declare module '@elastic/eui/src/components/context_menu/context_menu_item' {
|
|
|
10980
10983
|
import { CommonProps } from '@elastic/eui/src/components/common';
|
|
10981
10984
|
import { type IconType } from '@elastic/eui/src/components/icon';
|
|
10982
10985
|
import { EuiToolTipProps } from '@elastic/eui/src/components/tool_tip';
|
|
10986
|
+
import { type _EuiExtendedButtonColor } from '@elastic/eui/src/global_styling';
|
|
10983
10987
|
export type EuiContextMenuItemIcon = IconType | ReactElement<any> | HTMLElement;
|
|
10984
10988
|
export type EuiContextMenuItemLayoutAlignment = 'center' | 'top' | 'bottom';
|
|
10985
10989
|
export const SIZES: readonly ["s", "m"];
|
|
@@ -11009,6 +11013,11 @@ declare module '@elastic/eui/src/components/context_menu/context_menu_item' {
|
|
|
11009
11013
|
* Reduce the size to `s` when in need of a more compressed menu
|
|
11010
11014
|
*/
|
|
11011
11015
|
size?: (typeof SIZES)[number];
|
|
11016
|
+
/**
|
|
11017
|
+
* Applies a color to the text and icon of the item.
|
|
11018
|
+
* Accepts the same color values as `EuiButtonEmpty`.
|
|
11019
|
+
*/
|
|
11020
|
+
color?: _EuiExtendedButtonColor;
|
|
11012
11021
|
}
|
|
11013
11022
|
type Props = CommonProps & Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'type' | 'onClick' | 'disabled'> & EuiContextMenuItemProps;
|
|
11014
11023
|
export const LAYOUT_ALIGN: EuiContextMenuItemLayoutAlignment[];
|
|
@@ -12300,6 +12309,7 @@ declare module '@elastic/eui/src/components/flyout/manager/const' {
|
|
|
12300
12309
|
|
|
12301
12310
|
}
|
|
12302
12311
|
declare module '@elastic/eui/src/components/flyout/manager/types' {
|
|
12312
|
+
import type { IconType } from '@elastic/eui/src/components/icon';
|
|
12303
12313
|
import type { Action } from '@elastic/eui/src/components/flyout/manager/actions';
|
|
12304
12314
|
import { STAGE_CLOSING, STAGE_OPENING, STAGE_ACTIVE, STAGE_INACTIVE, STAGE_BACKGROUNDING, STAGE_BACKGROUNDED, STAGE_RETURNING, LAYOUT_MODE_SIDE_BY_SIDE, LAYOUT_MODE_STACKED, LEVEL_CHILD, LEVEL_MAIN } from '@elastic/eui/src/components/flyout/manager/const';
|
|
12305
12315
|
export type EuiFlyoutLayoutMode = typeof LAYOUT_MODE_STACKED | typeof LAYOUT_MODE_SIDE_BY_SIDE;
|
|
@@ -12313,6 +12323,12 @@ declare module '@elastic/eui/src/components/flyout/manager/types' {
|
|
|
12313
12323
|
minWidth?: number;
|
|
12314
12324
|
activityStage?: EuiFlyoutActivityStage;
|
|
12315
12325
|
}
|
|
12326
|
+
/** Entry for a child flyout in session history. */
|
|
12327
|
+
export interface ChildHistoryEntry {
|
|
12328
|
+
flyoutId: string;
|
|
12329
|
+
title: string;
|
|
12330
|
+
iconType?: IconType;
|
|
12331
|
+
}
|
|
12316
12332
|
export interface FlyoutSession {
|
|
12317
12333
|
/** ID of the main flyout for this session */
|
|
12318
12334
|
mainFlyoutId: string;
|
|
@@ -12320,8 +12336,18 @@ declare module '@elastic/eui/src/components/flyout/manager/types' {
|
|
|
12320
12336
|
childFlyoutId: string | null;
|
|
12321
12337
|
/** Title of the main flyout in this session */
|
|
12322
12338
|
title: string;
|
|
12339
|
+
/** Optional icon for this session when shown in history popover */
|
|
12340
|
+
iconType?: IconType;
|
|
12323
12341
|
/** z-index value to be used by the flyout session */
|
|
12324
12342
|
zIndex: number;
|
|
12343
|
+
/** Title of the current child flyout. */
|
|
12344
|
+
childTitle?: string;
|
|
12345
|
+
/** Icon of the current child flyout. */
|
|
12346
|
+
childIconType?: IconType;
|
|
12347
|
+
/** Stack of child flyouts we navigated away from. */
|
|
12348
|
+
childHistory: ChildHistoryEntry[];
|
|
12349
|
+
/** Key that scopes this session's history; same Symbol reference = same history group. Always set (from action or Symbol()). */
|
|
12350
|
+
historyKey: symbol;
|
|
12325
12351
|
}
|
|
12326
12352
|
export interface PushPaddingOffsets {
|
|
12327
12353
|
/** Push padding applied to the left side (in pixels) */
|
|
@@ -12352,7 +12378,7 @@ declare module '@elastic/eui/src/components/flyout/manager/types' {
|
|
|
12352
12378
|
export interface FlyoutManagerApi {
|
|
12353
12379
|
state: EuiFlyoutManagerState;
|
|
12354
12380
|
dispatch: (action: Action) => void;
|
|
12355
|
-
addFlyout: (flyoutId: string, title: string, level?: EuiFlyoutLevel, size?: string, minWidth?: number) => void;
|
|
12381
|
+
addFlyout: (flyoutId: string, title: string, level?: EuiFlyoutLevel, size?: string, historyKey?: symbol, iconType?: IconType, minWidth?: number) => void;
|
|
12356
12382
|
closeFlyout: (flyoutId: string) => void;
|
|
12357
12383
|
closeAllFlyouts: () => void;
|
|
12358
12384
|
setActiveFlyout: (flyoutId: string | null) => void;
|
|
@@ -12360,17 +12386,19 @@ declare module '@elastic/eui/src/components/flyout/manager/types' {
|
|
|
12360
12386
|
setPushPadding: (side: 'left' | 'right', width: number) => void;
|
|
12361
12387
|
setContainerElement: (element: HTMLElement | null) => void;
|
|
12362
12388
|
goBack: () => void;
|
|
12363
|
-
goToFlyout: (flyoutId: string) => void;
|
|
12389
|
+
goToFlyout: (flyoutId: string, level?: EuiFlyoutLevel) => void;
|
|
12364
12390
|
addUnmanagedFlyout: (flyoutId: string) => void;
|
|
12365
12391
|
closeUnmanagedFlyout: (flyoutId: string) => void;
|
|
12366
12392
|
historyItems: Array<{
|
|
12367
12393
|
title: string;
|
|
12394
|
+
iconType?: IconType;
|
|
12368
12395
|
onClick: () => void;
|
|
12369
12396
|
}>;
|
|
12370
12397
|
}
|
|
12371
12398
|
|
|
12372
12399
|
}
|
|
12373
12400
|
declare module '@elastic/eui/src/components/flyout/manager/actions' {
|
|
12401
|
+
import type { IconType } from '@elastic/eui/src/components/icon';
|
|
12374
12402
|
import { EuiFlyoutActivityStage, EuiFlyoutLevel, EuiFlyoutLayoutMode } from '@elastic/eui/src/components/flyout/manager/types'; const PREFIX: "eui/flyoutManager";
|
|
12375
12403
|
interface BaseAction {
|
|
12376
12404
|
type: `${typeof PREFIX}/${string}`;
|
|
@@ -12411,6 +12439,8 @@ declare module '@elastic/eui/src/components/flyout/manager/actions' {
|
|
|
12411
12439
|
title: string;
|
|
12412
12440
|
level: EuiFlyoutLevel;
|
|
12413
12441
|
size?: string;
|
|
12442
|
+
historyKey?: symbol;
|
|
12443
|
+
iconType?: IconType;
|
|
12414
12444
|
minWidth?: number;
|
|
12415
12445
|
}
|
|
12416
12446
|
/** Remove a flyout from manager state. Also updates the active session. */
|
|
@@ -12448,10 +12478,12 @@ declare module '@elastic/eui/src/components/flyout/manager/actions' {
|
|
|
12448
12478
|
export interface GoBackAction extends BaseAction {
|
|
12449
12479
|
type: typeof ACTION_GO_BACK;
|
|
12450
12480
|
}
|
|
12451
|
-
/** Navigate to a specific flyout (remove all sessions after it). */
|
|
12481
|
+
/** Navigate to a specific flyout (remove all sessions after it, or pop to child in history). */
|
|
12452
12482
|
export interface GoToFlyoutAction extends BaseAction {
|
|
12453
12483
|
type: typeof ACTION_GO_TO_FLYOUT;
|
|
12454
12484
|
flyoutId: string;
|
|
12485
|
+
/** When 'child', find flyout in current session's childHistory and pop to it. When 'main' or omitted, find session by mainFlyoutId. */
|
|
12486
|
+
level?: EuiFlyoutLevel;
|
|
12455
12487
|
}
|
|
12456
12488
|
/** Set push padding offset for a specific side. */
|
|
12457
12489
|
export interface SetPushPaddingAction extends BaseAction {
|
|
@@ -12484,8 +12516,10 @@ declare module '@elastic/eui/src/components/flyout/manager/actions' {
|
|
|
12484
12516
|
* - `title` is used for the flyout menu.
|
|
12485
12517
|
* - `level` determines whether the flyout is `main` or `child`.
|
|
12486
12518
|
* - Optional `size` is the named EUI size (e.g. `s`, `m`, `l`).
|
|
12519
|
+
* - Optional `historyKey` (Symbol) scopes history; only flyouts with the same reference share Back/history. Omit for a unique group per session.
|
|
12520
|
+
* - Optional `iconType` is shown next to the session title in the history menu.
|
|
12487
12521
|
*/
|
|
12488
|
-
export const addFlyout: (flyoutId: string, title: string, level?: EuiFlyoutLevel, size?: string, minWidth?: number) => AddFlyoutAction;
|
|
12522
|
+
export const addFlyout: (flyoutId: string, title: string, level?: EuiFlyoutLevel, size?: string, historyKey?: symbol, iconType?: IconType, minWidth?: number) => AddFlyoutAction;
|
|
12489
12523
|
/** Unregister a flyout and update the session accordingly. */
|
|
12490
12524
|
export const closeFlyout: (flyoutId: string) => CloseFlyoutAction;
|
|
12491
12525
|
/** Unregister all flyouts. */
|
|
@@ -12500,8 +12534,8 @@ declare module '@elastic/eui/src/components/flyout/manager/actions' {
|
|
|
12500
12534
|
export const setActivityStage: (flyoutId: string, activityStage: EuiFlyoutActivityStage) => SetActivityStageAction;
|
|
12501
12535
|
/** Go back one session (remove current session from stack). */
|
|
12502
12536
|
export const goBack: () => GoBackAction;
|
|
12503
|
-
/** Navigate to a specific flyout (remove all sessions after it). */
|
|
12504
|
-
export const goToFlyout: (flyoutId: string) => GoToFlyoutAction;
|
|
12537
|
+
/** Navigate to a specific flyout (remove all sessions after it, or pop to child in history when level === 'child'). */
|
|
12538
|
+
export const goToFlyout: (flyoutId: string, level?: EuiFlyoutLevel) => GoToFlyoutAction;
|
|
12505
12539
|
/** Set push padding offset for a specific side. */
|
|
12506
12540
|
export const setPushPadding: (side: "left" | "right", width: number) => SetPushPaddingAction;
|
|
12507
12541
|
/** Register an unmanaged flyout for z-index positioning purposes */
|
|
@@ -12529,6 +12563,7 @@ declare module '@elastic/eui/src/components/flyout/manager/reducer' {
|
|
|
12529
12563
|
|
|
12530
12564
|
}
|
|
12531
12565
|
declare module '@elastic/eui/src/components/flyout/manager/store' {
|
|
12566
|
+
import type { IconType } from '@elastic/eui/src/components/icon';
|
|
12532
12567
|
import type { EuiFlyoutLevel, EuiFlyoutManagerState, FlyoutSession } from '@elastic/eui/src/components/flyout/manager/types';
|
|
12533
12568
|
import type { Action } from '@elastic/eui/src/components/flyout/manager/actions';
|
|
12534
12569
|
type Listener = () => void;
|
|
@@ -12545,7 +12580,7 @@ declare module '@elastic/eui/src/components/flyout/manager/store' {
|
|
|
12545
12580
|
subscribe: (listener: Listener) => () => void;
|
|
12546
12581
|
subscribeToEvents: (listener: EventListener) => () => void;
|
|
12547
12582
|
dispatch: (action: Action) => void;
|
|
12548
|
-
addFlyout: (flyoutId: string, title: string, level?: EuiFlyoutLevel, size?: string, minWidth?: number) => void;
|
|
12583
|
+
addFlyout: (flyoutId: string, title: string, level?: EuiFlyoutLevel, size?: string, historyKey?: symbol, iconType?: IconType, minWidth?: number) => void;
|
|
12549
12584
|
closeFlyout: (flyoutId: string) => void;
|
|
12550
12585
|
closeAllFlyouts: () => void;
|
|
12551
12586
|
setActiveFlyout: (flyoutId: string | null) => void;
|
|
@@ -12553,11 +12588,12 @@ declare module '@elastic/eui/src/components/flyout/manager/store' {
|
|
|
12553
12588
|
setPushPadding: (side: 'left' | 'right', width: number) => void;
|
|
12554
12589
|
setContainerElement: (element: HTMLElement | null) => void;
|
|
12555
12590
|
goBack: () => void;
|
|
12556
|
-
goToFlyout: (flyoutId: string) => void;
|
|
12591
|
+
goToFlyout: (flyoutId: string, level?: EuiFlyoutLevel) => void;
|
|
12557
12592
|
addUnmanagedFlyout: (flyoutId: string) => void;
|
|
12558
12593
|
closeUnmanagedFlyout: (flyoutId: string) => void;
|
|
12559
12594
|
historyItems: Array<{
|
|
12560
12595
|
title: string;
|
|
12596
|
+
iconType?: IconType;
|
|
12561
12597
|
onClick: () => void;
|
|
12562
12598
|
}>;
|
|
12563
12599
|
}
|
|
@@ -13006,6 +13042,14 @@ declare module '@elastic/eui/src/components/flyout/const' {
|
|
|
13006
13042
|
export const FLYOUT_SIZES: readonly ["s", "m", "l", "fill"];
|
|
13007
13043
|
/** Type representing a supported named flyout size. */
|
|
13008
13044
|
export type EuiFlyoutSize = (typeof FLYOUT_SIZES)[number];
|
|
13045
|
+
/** Menu display mode: always render menu when flyoutMenuProps is provided. */
|
|
13046
|
+
export const MENU_DISPLAY_ALWAYS: "always";
|
|
13047
|
+
/** Menu display mode: only render menu when it has content (back button, history, title, or custom actions). */
|
|
13048
|
+
export const MENU_DISPLAY_AUTO: "auto";
|
|
13049
|
+
/** Allowed flyout menu display modes. */
|
|
13050
|
+
export const FLYOUT_MENU_DISPLAY_MODES: readonly ["always", "auto"];
|
|
13051
|
+
/** Type representing a supported flyout menu display mode. */
|
|
13052
|
+
export type EuiFlyoutMenuDisplayMode = (typeof FLYOUT_MENU_DISPLAY_MODES)[number];
|
|
13009
13053
|
/** Allowed padding sizes for flyout content. */
|
|
13010
13054
|
export const FLYOUT_PADDING_SIZES: readonly ["none", "s", "m", "l"];
|
|
13011
13055
|
/** Type representing a supported flyout padding size. */
|
|
@@ -13020,6 +13064,8 @@ declare module '@elastic/eui/src/components/flyout/const' {
|
|
|
13020
13064
|
export const DEFAULT_SIZE: EuiFlyoutSize;
|
|
13021
13065
|
/** Default padding size inside flyouts. */
|
|
13022
13066
|
export const DEFAULT_PADDING_SIZE: _EuiFlyoutPaddingSize;
|
|
13067
|
+
/** Default flyout menu display mode. */
|
|
13068
|
+
export const DEFAULT_MENU_DISPLAY_MODE: EuiFlyoutMenuDisplayMode;
|
|
13023
13069
|
/**
|
|
13024
13070
|
* Custom type checker for named flyout sizes since the prop
|
|
13025
13071
|
* `size` can also be CSSProperties['width'] (string | number)
|
|
@@ -13053,8 +13099,8 @@ declare module '@elastic/eui/src/components/flyout/flyout.styles' {
|
|
|
13053
13099
|
push: import("@emotion/react").SerializedStyles;
|
|
13054
13100
|
right: import("@emotion/react").SerializedStyles;
|
|
13055
13101
|
left: import("@emotion/react").SerializedStyles;
|
|
13056
|
-
noAnimation: import("@emotion/react").SerializedStyles;
|
|
13057
13102
|
};
|
|
13103
|
+
noAnimation: import("@emotion/react").SerializedStyles;
|
|
13058
13104
|
paddingSizes: {
|
|
13059
13105
|
none: import("@emotion/react").SerializedStyles;
|
|
13060
13106
|
s: import("@emotion/react").SerializedStyles;
|
|
@@ -13143,6 +13189,7 @@ declare module '@elastic/eui/src/components/flyout/flyout_menu' {
|
|
|
13143
13189
|
import React, { FunctionComponent, HTMLAttributes } from 'react';
|
|
13144
13190
|
import { EuiButtonProps } from '@elastic/eui/src/components/button';
|
|
13145
13191
|
import { CommonProps, PropsForAnchor } from '@elastic/eui/src/components/common';
|
|
13192
|
+
import type { IconType } from '@elastic/eui/src/components/icon';
|
|
13146
13193
|
type EuiFlyoutMenuBackButtonProps = Pick<PropsForAnchor<EuiButtonProps>, 'aria-label' | 'data-test-subj' | 'onClick'>;
|
|
13147
13194
|
/**
|
|
13148
13195
|
* History item for the flyout menu history popover
|
|
@@ -13152,6 +13199,10 @@ declare module '@elastic/eui/src/components/flyout/flyout_menu' {
|
|
|
13152
13199
|
* Title for the history item
|
|
13153
13200
|
*/
|
|
13154
13201
|
title: string;
|
|
13202
|
+
/**
|
|
13203
|
+
* An optional icon to display next to the session title in the history menu
|
|
13204
|
+
*/
|
|
13205
|
+
iconType?: IconType;
|
|
13155
13206
|
/**
|
|
13156
13207
|
* onClick handler for the history item
|
|
13157
13208
|
*/
|
|
@@ -13196,8 +13247,14 @@ declare module '@elastic/eui/src/components/flyout/flyout_menu' {
|
|
|
13196
13247
|
*/
|
|
13197
13248
|
title?: React.ReactNode;
|
|
13198
13249
|
/**
|
|
13199
|
-
*
|
|
13200
|
-
|
|
13250
|
+
* An optional icon to display next to the session title in the history menu
|
|
13251
|
+
*/
|
|
13252
|
+
iconType?: IconType;
|
|
13253
|
+
/**
|
|
13254
|
+
* Hides the title in the `EuiFlyoutMenu`.
|
|
13255
|
+
* @default true
|
|
13256
|
+
* @deprecated Use `EuiFlyoutHeader` for visible titles instead.
|
|
13257
|
+
* `hideTitle` is still honored but may be removed in a future major version.
|
|
13201
13258
|
*/
|
|
13202
13259
|
hideTitle?: boolean;
|
|
13203
13260
|
/**
|
|
@@ -13320,6 +13377,7 @@ declare module '@elastic/eui/src/components/flyout/manager/flyout_managed' {
|
|
|
13320
13377
|
*/
|
|
13321
13378
|
export interface EuiManagedFlyoutProps extends EuiFlyoutComponentProps {
|
|
13322
13379
|
level: EuiFlyoutLevel;
|
|
13380
|
+
historyKey?: symbol;
|
|
13323
13381
|
flyoutMenuProps?: Omit<EuiFlyoutMenuProps, 'historyItems' | 'showBackButton'>;
|
|
13324
13382
|
onActive?: () => void;
|
|
13325
13383
|
}
|
|
@@ -13446,6 +13504,11 @@ declare module '@elastic/eui/src/components/overlay_mask/overlay_mask' {
|
|
|
13446
13504
|
* React ref to be passed to the wrapping container
|
|
13447
13505
|
*/
|
|
13448
13506
|
maskRef?: Ref<HTMLDivElement> | MutableRefObject<HTMLDivElement>;
|
|
13507
|
+
/**
|
|
13508
|
+
* If enabled, the mask will have a fade in animation.
|
|
13509
|
+
* @default true
|
|
13510
|
+
*/
|
|
13511
|
+
hasAnimation?: boolean;
|
|
13449
13512
|
}
|
|
13450
13513
|
export type EuiOverlayMaskProps = Omit<CommonProps, 'css'> & Omit<Partial<Record<keyof HTMLAttributes<HTMLDivElement>, string>>, keyof EuiOverlayMaskInterface> & EuiOverlayMaskInterface;
|
|
13451
13514
|
export const EuiOverlayMask: FunctionComponent<EuiOverlayMaskProps>;
|
|
@@ -13469,6 +13532,11 @@ declare module '@elastic/eui/src/components/flyout/_flyout_overlay' {
|
|
|
13469
13532
|
* z-index); 'below' to keep them in the flyout stacking level.
|
|
13470
13533
|
*/
|
|
13471
13534
|
headerZindexLocation?: 'above' | 'below';
|
|
13535
|
+
/**
|
|
13536
|
+
* When provided, clips the overlay mask to the container's bounding rect
|
|
13537
|
+
* rather than covering the full viewport.
|
|
13538
|
+
*/
|
|
13539
|
+
containerRect?: DOMRect | null;
|
|
13472
13540
|
}
|
|
13473
13541
|
/**
|
|
13474
13542
|
* Light wrapper for conditionally rendering portals or overlay masks:
|
|
@@ -13478,7 +13546,7 @@ declare module '@elastic/eui/src/components/flyout/_flyout_overlay' {
|
|
|
13478
13546
|
*
|
|
13479
13547
|
* @internal
|
|
13480
13548
|
*/
|
|
13481
|
-
export const EuiFlyoutOverlay: ({ children, isPushed, maskProps, hasOverlayMask, maskZIndex, headerZindexLocation, }: EuiFlyoutOverlayProps) => React.JSX.Element;
|
|
13549
|
+
export const EuiFlyoutOverlay: ({ children, isPushed, maskProps, hasOverlayMask, maskZIndex, headerZindexLocation, containerRect, }: EuiFlyoutOverlayProps) => React.JSX.Element;
|
|
13482
13550
|
|
|
13483
13551
|
}
|
|
13484
13552
|
declare module '@elastic/eui/src/components/resizable_container/types' {
|
|
@@ -14243,6 +14311,311 @@ declare module '@elastic/eui/src/components/flyout/flyout_parent_context' {
|
|
|
14243
14311
|
*/
|
|
14244
14312
|
export const useIsInsideParentFlyout: () => boolean;
|
|
14245
14313
|
|
|
14314
|
+
}
|
|
14315
|
+
declare module '@elastic/eui/src/components/flyout/use_flyout_menu' {
|
|
14316
|
+
import { EuiFlyoutMenuDisplayMode } from '@elastic/eui/src/components/flyout/const';
|
|
14317
|
+
import { EuiFlyoutMenuProps } from '@elastic/eui/src/components/flyout/flyout_menu';
|
|
14318
|
+
/**
|
|
14319
|
+
* @internal
|
|
14320
|
+
*/
|
|
14321
|
+
export interface UseEuiFlyoutMenu {
|
|
14322
|
+
flyoutMenuProps?: EuiFlyoutMenuProps;
|
|
14323
|
+
flyoutMenuDisplayMode: EuiFlyoutMenuDisplayMode;
|
|
14324
|
+
ariaLabelledBy?: string;
|
|
14325
|
+
}
|
|
14326
|
+
/**
|
|
14327
|
+
* Hook to manage flyout menu state and rendering logic.
|
|
14328
|
+
* Determines whether the menu should be rendered based on display mode
|
|
14329
|
+
* and menu content, and computes the appropriate aria-labelledby value.
|
|
14330
|
+
*
|
|
14331
|
+
* @internal
|
|
14332
|
+
*/
|
|
14333
|
+
export const useEuiFlyoutMenu: ({ flyoutMenuProps: _flyoutMenuProps, flyoutMenuDisplayMode, ariaLabelledBy: _ariaLabelledBy, }: UseEuiFlyoutMenu) => {
|
|
14334
|
+
flyoutMenuId: string | undefined;
|
|
14335
|
+
flyoutMenuProps: {
|
|
14336
|
+
className?: string;
|
|
14337
|
+
"aria-label"?: string;
|
|
14338
|
+
'data-test-subj'?: string;
|
|
14339
|
+
css?: import("@emotion/serialize").Interpolation<import("@emotion/react").Theme>;
|
|
14340
|
+
defaultChecked?: boolean | undefined;
|
|
14341
|
+
defaultValue?: string | number | readonly string[] | undefined;
|
|
14342
|
+
suppressContentEditableWarning?: boolean | undefined;
|
|
14343
|
+
suppressHydrationWarning?: boolean | undefined;
|
|
14344
|
+
accessKey?: string | undefined;
|
|
14345
|
+
autoFocus?: boolean | undefined;
|
|
14346
|
+
contentEditable?: (boolean | "false" | "true") | "inherit" | "plaintext-only" | undefined;
|
|
14347
|
+
contextMenu?: string | undefined;
|
|
14348
|
+
dir?: string | undefined;
|
|
14349
|
+
draggable?: (boolean | "false" | "true") | undefined;
|
|
14350
|
+
hidden?: boolean | undefined;
|
|
14351
|
+
id?: string | undefined;
|
|
14352
|
+
lang?: string | undefined;
|
|
14353
|
+
nonce?: string | undefined;
|
|
14354
|
+
slot?: string | undefined;
|
|
14355
|
+
spellCheck?: (boolean | "false" | "true") | undefined;
|
|
14356
|
+
style?: import("react").CSSProperties | undefined;
|
|
14357
|
+
tabIndex?: number | undefined;
|
|
14358
|
+
title?: string | (string & import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>) | (string & Iterable<import("react").ReactNode>) | (string & import("react").ReactPortal) | undefined;
|
|
14359
|
+
translate?: "yes" | "no" | undefined;
|
|
14360
|
+
radioGroup?: string | undefined;
|
|
14361
|
+
role?: import("react").AriaRole | undefined;
|
|
14362
|
+
about?: string | undefined;
|
|
14363
|
+
content?: string | undefined;
|
|
14364
|
+
datatype?: string | undefined;
|
|
14365
|
+
inlist?: any;
|
|
14366
|
+
prefix?: string | undefined;
|
|
14367
|
+
property?: string | undefined;
|
|
14368
|
+
rel?: string | undefined;
|
|
14369
|
+
resource?: string | undefined;
|
|
14370
|
+
rev?: string | undefined;
|
|
14371
|
+
typeof?: string | undefined;
|
|
14372
|
+
vocab?: string | undefined;
|
|
14373
|
+
autoCapitalize?: string | undefined;
|
|
14374
|
+
autoCorrect?: string | undefined;
|
|
14375
|
+
autoSave?: string | undefined;
|
|
14376
|
+
color?: string | undefined;
|
|
14377
|
+
itemProp?: string | undefined;
|
|
14378
|
+
itemScope?: boolean | undefined;
|
|
14379
|
+
itemType?: string | undefined;
|
|
14380
|
+
itemID?: string | undefined;
|
|
14381
|
+
itemRef?: string | undefined;
|
|
14382
|
+
results?: number | undefined;
|
|
14383
|
+
security?: string | undefined;
|
|
14384
|
+
unselectable?: "on" | "off" | undefined;
|
|
14385
|
+
inputMode?: "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | "search" | undefined;
|
|
14386
|
+
is?: string | undefined;
|
|
14387
|
+
"aria-activedescendant"?: string | undefined;
|
|
14388
|
+
"aria-atomic"?: (boolean | "false" | "true") | undefined;
|
|
14389
|
+
"aria-autocomplete"?: "none" | "inline" | "list" | "both" | undefined;
|
|
14390
|
+
"aria-braillelabel"?: string | undefined;
|
|
14391
|
+
"aria-brailleroledescription"?: string | undefined;
|
|
14392
|
+
"aria-busy"?: (boolean | "false" | "true") | undefined;
|
|
14393
|
+
"aria-checked"?: boolean | "false" | "mixed" | "true" | undefined;
|
|
14394
|
+
"aria-colcount"?: number | undefined;
|
|
14395
|
+
"aria-colindex"?: number | undefined;
|
|
14396
|
+
"aria-colindextext"?: string | undefined;
|
|
14397
|
+
"aria-colspan"?: number | undefined;
|
|
14398
|
+
"aria-controls"?: string | undefined;
|
|
14399
|
+
"aria-current"?: boolean | "false" | "true" | "page" | "step" | "location" | "date" | "time" | undefined;
|
|
14400
|
+
"aria-describedby"?: string | undefined;
|
|
14401
|
+
"aria-description"?: string | undefined;
|
|
14402
|
+
"aria-details"?: string | undefined;
|
|
14403
|
+
"aria-disabled"?: (boolean | "false" | "true") | undefined;
|
|
14404
|
+
"aria-dropeffect"?: "none" | "copy" | "execute" | "link" | "move" | "popup" | undefined;
|
|
14405
|
+
"aria-errormessage"?: string | undefined;
|
|
14406
|
+
"aria-expanded"?: (boolean | "false" | "true") | undefined;
|
|
14407
|
+
"aria-flowto"?: string | undefined;
|
|
14408
|
+
"aria-grabbed"?: (boolean | "false" | "true") | undefined;
|
|
14409
|
+
"aria-haspopup"?: boolean | "false" | "true" | "menu" | "listbox" | "tree" | "grid" | "dialog" | undefined;
|
|
14410
|
+
"aria-hidden"?: (boolean | "false" | "true") | undefined;
|
|
14411
|
+
"aria-invalid"?: boolean | "false" | "true" | "grammar" | "spelling" | undefined;
|
|
14412
|
+
"aria-keyshortcuts"?: string | undefined;
|
|
14413
|
+
"aria-labelledby"?: string | undefined;
|
|
14414
|
+
"aria-level"?: number | undefined;
|
|
14415
|
+
"aria-live"?: "off" | "assertive" | "polite" | undefined;
|
|
14416
|
+
"aria-modal"?: (boolean | "false" | "true") | undefined;
|
|
14417
|
+
"aria-multiline"?: (boolean | "false" | "true") | undefined;
|
|
14418
|
+
"aria-multiselectable"?: (boolean | "false" | "true") | undefined;
|
|
14419
|
+
"aria-orientation"?: "horizontal" | "vertical" | undefined;
|
|
14420
|
+
"aria-owns"?: string | undefined;
|
|
14421
|
+
"aria-placeholder"?: string | undefined;
|
|
14422
|
+
"aria-posinset"?: number | undefined;
|
|
14423
|
+
"aria-pressed"?: boolean | "false" | "mixed" | "true" | undefined;
|
|
14424
|
+
"aria-readonly"?: (boolean | "false" | "true") | undefined;
|
|
14425
|
+
"aria-relevant"?: "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text" | "text additions" | "text removals" | undefined;
|
|
14426
|
+
"aria-required"?: (boolean | "false" | "true") | undefined;
|
|
14427
|
+
"aria-roledescription"?: string | undefined;
|
|
14428
|
+
"aria-rowcount"?: number | undefined;
|
|
14429
|
+
"aria-rowindex"?: number | undefined;
|
|
14430
|
+
"aria-rowindextext"?: string | undefined;
|
|
14431
|
+
"aria-rowspan"?: number | undefined;
|
|
14432
|
+
"aria-selected"?: (boolean | "false" | "true") | undefined;
|
|
14433
|
+
"aria-setsize"?: number | undefined;
|
|
14434
|
+
"aria-sort"?: "none" | "ascending" | "descending" | "other" | undefined;
|
|
14435
|
+
"aria-valuemax"?: number | undefined;
|
|
14436
|
+
"aria-valuemin"?: number | undefined;
|
|
14437
|
+
"aria-valuenow"?: number | undefined;
|
|
14438
|
+
"aria-valuetext"?: string | undefined;
|
|
14439
|
+
children?: import("react").ReactNode | undefined;
|
|
14440
|
+
dangerouslySetInnerHTML?: {
|
|
14441
|
+
__html: string | TrustedHTML;
|
|
14442
|
+
} | undefined;
|
|
14443
|
+
onCopy?: import("react").ClipboardEventHandler<HTMLDivElement> | undefined;
|
|
14444
|
+
onCopyCapture?: import("react").ClipboardEventHandler<HTMLDivElement> | undefined;
|
|
14445
|
+
onCut?: import("react").ClipboardEventHandler<HTMLDivElement> | undefined;
|
|
14446
|
+
onCutCapture?: import("react").ClipboardEventHandler<HTMLDivElement> | undefined;
|
|
14447
|
+
onPaste?: import("react").ClipboardEventHandler<HTMLDivElement> | undefined;
|
|
14448
|
+
onPasteCapture?: import("react").ClipboardEventHandler<HTMLDivElement> | undefined;
|
|
14449
|
+
onCompositionEnd?: import("react").CompositionEventHandler<HTMLDivElement> | undefined;
|
|
14450
|
+
onCompositionEndCapture?: import("react").CompositionEventHandler<HTMLDivElement> | undefined;
|
|
14451
|
+
onCompositionStart?: import("react").CompositionEventHandler<HTMLDivElement> | undefined;
|
|
14452
|
+
onCompositionStartCapture?: import("react").CompositionEventHandler<HTMLDivElement> | undefined;
|
|
14453
|
+
onCompositionUpdate?: import("react").CompositionEventHandler<HTMLDivElement> | undefined;
|
|
14454
|
+
onCompositionUpdateCapture?: import("react").CompositionEventHandler<HTMLDivElement> | undefined;
|
|
14455
|
+
onFocus?: import("react").FocusEventHandler<HTMLDivElement> | undefined;
|
|
14456
|
+
onFocusCapture?: import("react").FocusEventHandler<HTMLDivElement> | undefined;
|
|
14457
|
+
onBlur?: import("react").FocusEventHandler<HTMLDivElement> | undefined;
|
|
14458
|
+
onBlurCapture?: import("react").FocusEventHandler<HTMLDivElement> | undefined;
|
|
14459
|
+
onChange?: import("react").FormEventHandler<HTMLDivElement> | undefined;
|
|
14460
|
+
onChangeCapture?: import("react").FormEventHandler<HTMLDivElement> | undefined;
|
|
14461
|
+
onBeforeInput?: import("react").FormEventHandler<HTMLDivElement> | undefined;
|
|
14462
|
+
onBeforeInputCapture?: import("react").FormEventHandler<HTMLDivElement> | undefined;
|
|
14463
|
+
onInput?: import("react").FormEventHandler<HTMLDivElement> | undefined;
|
|
14464
|
+
onInputCapture?: import("react").FormEventHandler<HTMLDivElement> | undefined;
|
|
14465
|
+
onReset?: import("react").FormEventHandler<HTMLDivElement> | undefined;
|
|
14466
|
+
onResetCapture?: import("react").FormEventHandler<HTMLDivElement> | undefined;
|
|
14467
|
+
onSubmit?: import("react").FormEventHandler<HTMLDivElement> | undefined;
|
|
14468
|
+
onSubmitCapture?: import("react").FormEventHandler<HTMLDivElement> | undefined;
|
|
14469
|
+
onInvalid?: import("react").FormEventHandler<HTMLDivElement> | undefined;
|
|
14470
|
+
onInvalidCapture?: import("react").FormEventHandler<HTMLDivElement> | undefined;
|
|
14471
|
+
onLoad?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
14472
|
+
onLoadCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
14473
|
+
onError?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
14474
|
+
onErrorCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
14475
|
+
onKeyDown?: import("react").KeyboardEventHandler<HTMLDivElement> | undefined;
|
|
14476
|
+
onKeyDownCapture?: import("react").KeyboardEventHandler<HTMLDivElement> | undefined;
|
|
14477
|
+
onKeyPress?: import("react").KeyboardEventHandler<HTMLDivElement> | undefined;
|
|
14478
|
+
onKeyPressCapture?: import("react").KeyboardEventHandler<HTMLDivElement> | undefined;
|
|
14479
|
+
onKeyUp?: import("react").KeyboardEventHandler<HTMLDivElement> | undefined;
|
|
14480
|
+
onKeyUpCapture?: import("react").KeyboardEventHandler<HTMLDivElement> | undefined;
|
|
14481
|
+
onAbort?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
14482
|
+
onAbortCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
14483
|
+
onCanPlay?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
14484
|
+
onCanPlayCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
14485
|
+
onCanPlayThrough?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
14486
|
+
onCanPlayThroughCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
14487
|
+
onDurationChange?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
14488
|
+
onDurationChangeCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
14489
|
+
onEmptied?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
14490
|
+
onEmptiedCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
14491
|
+
onEncrypted?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
14492
|
+
onEncryptedCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
14493
|
+
onEnded?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
14494
|
+
onEndedCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
14495
|
+
onLoadedData?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
14496
|
+
onLoadedDataCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
14497
|
+
onLoadedMetadata?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
14498
|
+
onLoadedMetadataCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
14499
|
+
onLoadStart?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
14500
|
+
onLoadStartCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
14501
|
+
onPause?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
14502
|
+
onPauseCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
14503
|
+
onPlay?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
14504
|
+
onPlayCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
14505
|
+
onPlaying?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
14506
|
+
onPlayingCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
14507
|
+
onProgress?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
14508
|
+
onProgressCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
14509
|
+
onRateChange?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
14510
|
+
onRateChangeCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
14511
|
+
onResize?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
14512
|
+
onResizeCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
14513
|
+
onSeeked?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
14514
|
+
onSeekedCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
14515
|
+
onSeeking?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
14516
|
+
onSeekingCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
14517
|
+
onStalled?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
14518
|
+
onStalledCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
14519
|
+
onSuspend?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
14520
|
+
onSuspendCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
14521
|
+
onTimeUpdate?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
14522
|
+
onTimeUpdateCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
14523
|
+
onVolumeChange?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
14524
|
+
onVolumeChangeCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
14525
|
+
onWaiting?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
14526
|
+
onWaitingCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
14527
|
+
onAuxClick?: import("react").MouseEventHandler<HTMLDivElement> | undefined;
|
|
14528
|
+
onAuxClickCapture?: import("react").MouseEventHandler<HTMLDivElement> | undefined;
|
|
14529
|
+
onClick?: import("react").MouseEventHandler<HTMLDivElement> | undefined;
|
|
14530
|
+
onClickCapture?: import("react").MouseEventHandler<HTMLDivElement> | undefined;
|
|
14531
|
+
onContextMenu?: import("react").MouseEventHandler<HTMLDivElement> | undefined;
|
|
14532
|
+
onContextMenuCapture?: import("react").MouseEventHandler<HTMLDivElement> | undefined;
|
|
14533
|
+
onDoubleClick?: import("react").MouseEventHandler<HTMLDivElement> | undefined;
|
|
14534
|
+
onDoubleClickCapture?: import("react").MouseEventHandler<HTMLDivElement> | undefined;
|
|
14535
|
+
onDrag?: import("react").DragEventHandler<HTMLDivElement> | undefined;
|
|
14536
|
+
onDragCapture?: import("react").DragEventHandler<HTMLDivElement> | undefined;
|
|
14537
|
+
onDragEnd?: import("react").DragEventHandler<HTMLDivElement> | undefined;
|
|
14538
|
+
onDragEndCapture?: import("react").DragEventHandler<HTMLDivElement> | undefined;
|
|
14539
|
+
onDragEnter?: import("react").DragEventHandler<HTMLDivElement> | undefined;
|
|
14540
|
+
onDragEnterCapture?: import("react").DragEventHandler<HTMLDivElement> | undefined;
|
|
14541
|
+
onDragExit?: import("react").DragEventHandler<HTMLDivElement> | undefined;
|
|
14542
|
+
onDragExitCapture?: import("react").DragEventHandler<HTMLDivElement> | undefined;
|
|
14543
|
+
onDragLeave?: import("react").DragEventHandler<HTMLDivElement> | undefined;
|
|
14544
|
+
onDragLeaveCapture?: import("react").DragEventHandler<HTMLDivElement> | undefined;
|
|
14545
|
+
onDragOver?: import("react").DragEventHandler<HTMLDivElement> | undefined;
|
|
14546
|
+
onDragOverCapture?: import("react").DragEventHandler<HTMLDivElement> | undefined;
|
|
14547
|
+
onDragStart?: import("react").DragEventHandler<HTMLDivElement> | undefined;
|
|
14548
|
+
onDragStartCapture?: import("react").DragEventHandler<HTMLDivElement> | undefined;
|
|
14549
|
+
onDrop?: import("react").DragEventHandler<HTMLDivElement> | undefined;
|
|
14550
|
+
onDropCapture?: import("react").DragEventHandler<HTMLDivElement> | undefined;
|
|
14551
|
+
onMouseDown?: import("react").MouseEventHandler<HTMLDivElement> | undefined;
|
|
14552
|
+
onMouseDownCapture?: import("react").MouseEventHandler<HTMLDivElement> | undefined;
|
|
14553
|
+
onMouseEnter?: import("react").MouseEventHandler<HTMLDivElement> | undefined;
|
|
14554
|
+
onMouseLeave?: import("react").MouseEventHandler<HTMLDivElement> | undefined;
|
|
14555
|
+
onMouseMove?: import("react").MouseEventHandler<HTMLDivElement> | undefined;
|
|
14556
|
+
onMouseMoveCapture?: import("react").MouseEventHandler<HTMLDivElement> | undefined;
|
|
14557
|
+
onMouseOut?: import("react").MouseEventHandler<HTMLDivElement> | undefined;
|
|
14558
|
+
onMouseOutCapture?: import("react").MouseEventHandler<HTMLDivElement> | undefined;
|
|
14559
|
+
onMouseOver?: import("react").MouseEventHandler<HTMLDivElement> | undefined;
|
|
14560
|
+
onMouseOverCapture?: import("react").MouseEventHandler<HTMLDivElement> | undefined;
|
|
14561
|
+
onMouseUp?: import("react").MouseEventHandler<HTMLDivElement> | undefined;
|
|
14562
|
+
onMouseUpCapture?: import("react").MouseEventHandler<HTMLDivElement> | undefined;
|
|
14563
|
+
onSelect?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
14564
|
+
onSelectCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
14565
|
+
onTouchCancel?: import("react").TouchEventHandler<HTMLDivElement> | undefined;
|
|
14566
|
+
onTouchCancelCapture?: import("react").TouchEventHandler<HTMLDivElement> | undefined;
|
|
14567
|
+
onTouchEnd?: import("react").TouchEventHandler<HTMLDivElement> | undefined;
|
|
14568
|
+
onTouchEndCapture?: import("react").TouchEventHandler<HTMLDivElement> | undefined;
|
|
14569
|
+
onTouchMove?: import("react").TouchEventHandler<HTMLDivElement> | undefined;
|
|
14570
|
+
onTouchMoveCapture?: import("react").TouchEventHandler<HTMLDivElement> | undefined;
|
|
14571
|
+
onTouchStart?: import("react").TouchEventHandler<HTMLDivElement> | undefined;
|
|
14572
|
+
onTouchStartCapture?: import("react").TouchEventHandler<HTMLDivElement> | undefined;
|
|
14573
|
+
onPointerDown?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
|
|
14574
|
+
onPointerDownCapture?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
|
|
14575
|
+
onPointerMove?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
|
|
14576
|
+
onPointerMoveCapture?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
|
|
14577
|
+
onPointerUp?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
|
|
14578
|
+
onPointerUpCapture?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
|
|
14579
|
+
onPointerCancel?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
|
|
14580
|
+
onPointerCancelCapture?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
|
|
14581
|
+
onPointerEnter?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
|
|
14582
|
+
onPointerLeave?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
|
|
14583
|
+
onPointerOver?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
|
|
14584
|
+
onPointerOverCapture?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
|
|
14585
|
+
onPointerOut?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
|
|
14586
|
+
onPointerOutCapture?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
|
|
14587
|
+
onGotPointerCapture?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
|
|
14588
|
+
onGotPointerCaptureCapture?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
|
|
14589
|
+
onLostPointerCapture?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
|
|
14590
|
+
onLostPointerCaptureCapture?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
|
|
14591
|
+
onScroll?: import("react").UIEventHandler<HTMLDivElement> | undefined;
|
|
14592
|
+
onScrollCapture?: import("react").UIEventHandler<HTMLDivElement> | undefined;
|
|
14593
|
+
onWheel?: import("react").WheelEventHandler<HTMLDivElement> | undefined;
|
|
14594
|
+
onWheelCapture?: import("react").WheelEventHandler<HTMLDivElement> | undefined;
|
|
14595
|
+
onAnimationStart?: import("react").AnimationEventHandler<HTMLDivElement> | undefined;
|
|
14596
|
+
onAnimationStartCapture?: import("react").AnimationEventHandler<HTMLDivElement> | undefined;
|
|
14597
|
+
onAnimationEnd?: import("react").AnimationEventHandler<HTMLDivElement> | undefined;
|
|
14598
|
+
onAnimationEndCapture?: import("react").AnimationEventHandler<HTMLDivElement> | undefined;
|
|
14599
|
+
onAnimationIteration?: import("react").AnimationEventHandler<HTMLDivElement> | undefined;
|
|
14600
|
+
onAnimationIterationCapture?: import("react").AnimationEventHandler<HTMLDivElement> | undefined;
|
|
14601
|
+
onTransitionEnd?: import("react").TransitionEventHandler<HTMLDivElement> | undefined;
|
|
14602
|
+
onTransitionEndCapture?: import("react").TransitionEventHandler<HTMLDivElement> | undefined;
|
|
14603
|
+
iconType?: import("..").IconType;
|
|
14604
|
+
hideTitle?: boolean;
|
|
14605
|
+
hideCloseButton?: boolean;
|
|
14606
|
+
showBackButton?: boolean;
|
|
14607
|
+
backButtonProps?: {
|
|
14608
|
+
onClick?: import("react").MouseEventHandler<HTMLAnchorElement> | undefined;
|
|
14609
|
+
"aria-label"?: string | undefined;
|
|
14610
|
+
'data-test-subj'?: string | undefined;
|
|
14611
|
+
};
|
|
14612
|
+
historyItems?: import ("@elastic/eui/src/components/flyout/flyout_menu").EuiFlyoutHistoryItem[];
|
|
14613
|
+
customActions?: import ("@elastic/eui/src/components/flyout/flyout_menu").EuiFlyoutMenuCustomAction[];
|
|
14614
|
+
};
|
|
14615
|
+
shouldRenderMenu: boolean;
|
|
14616
|
+
ariaLabelledBy: string | undefined;
|
|
14617
|
+
};
|
|
14618
|
+
|
|
14246
14619
|
}
|
|
14247
14620
|
declare module '@elastic/eui/src/components/flyout/flyout.component' {
|
|
14248
14621
|
import { ComponentPropsWithRef, CSSProperties, ElementType, JSX } from 'react';
|
|
@@ -14251,7 +14624,7 @@ declare module '@elastic/eui/src/components/flyout/flyout.component' {
|
|
|
14251
14624
|
import { EuiFocusTrapProps } from '@elastic/eui/src/components/focus_trap';
|
|
14252
14625
|
import type { EuiOverlayMaskProps } from '@elastic/eui/src/components/overlay_mask';
|
|
14253
14626
|
import type { EuiButtonIconPropsForButton } from '@elastic/eui/src/components/button';
|
|
14254
|
-
import { _EuiFlyoutPaddingSize, _EuiFlyoutSide, _EuiFlyoutType, EuiFlyoutSize } from '@elastic/eui/src/components/flyout/const';
|
|
14627
|
+
import { _EuiFlyoutPaddingSize, _EuiFlyoutSide, _EuiFlyoutType, EuiFlyoutMenuDisplayMode, EuiFlyoutSize } from '@elastic/eui/src/components/flyout/const';
|
|
14255
14628
|
import { EuiFlyoutMenuProps } from '@elastic/eui/src/components/flyout/flyout_menu';
|
|
14256
14629
|
import type { EuiFlyoutCloseEvent } from '@elastic/eui/src/components/flyout/types';
|
|
14257
14630
|
interface _EuiFlyoutComponentProps {
|
|
@@ -14336,10 +14709,16 @@ declare module '@elastic/eui/src/components/flyout/flyout.component' {
|
|
|
14336
14709
|
*/
|
|
14337
14710
|
pushMinBreakpoint?: EuiBreakpointSize;
|
|
14338
14711
|
/**
|
|
14339
|
-
*
|
|
14340
|
-
*
|
|
14712
|
+
* @deprecated - use `hasAnimation` instead
|
|
14713
|
+
* Enables a slide in animation on flyouts
|
|
14714
|
+
* @default true for overlay flyouts, `false` for push flyouts
|
|
14341
14715
|
*/
|
|
14342
14716
|
pushAnimation?: boolean;
|
|
14717
|
+
/**
|
|
14718
|
+
* Enables a slide in animation on flyouts
|
|
14719
|
+
* @default true for overlay flyouts, `false` for push flyouts
|
|
14720
|
+
*/
|
|
14721
|
+
hasAnimation?: boolean;
|
|
14343
14722
|
style?: CSSProperties;
|
|
14344
14723
|
/**
|
|
14345
14724
|
* When the flyout is used as a child in a managed flyout session, setting `true` gives the shaded background style.
|
|
@@ -14372,8 +14751,19 @@ declare module '@elastic/eui/src/components/flyout/flyout.component' {
|
|
|
14372
14751
|
/**
|
|
14373
14752
|
* Props for the flyout menu to have one rendered in the flyout.
|
|
14374
14753
|
* If used, the close button will be automatically hidden, as the flyout menu has its own close button.
|
|
14754
|
+
*
|
|
14755
|
+
* Use `flyoutMenuDisplayMode` to control whether/when the menu is rendered. See {@link EuiFlyoutMenuDisplayMode}.
|
|
14375
14756
|
*/
|
|
14376
14757
|
flyoutMenuProps?: EuiFlyoutMenuProps;
|
|
14758
|
+
/**
|
|
14759
|
+
* Controls the display mode of the flyout menu:
|
|
14760
|
+
* - `'auto'`: Render the menu whenever menu props are available and there is navigation content
|
|
14761
|
+
* (back button, history, custom actions) or a visible title.
|
|
14762
|
+
* - `'always'`: Render the menu whenever menu props are available. This may result in a close-only menu.
|
|
14763
|
+
*
|
|
14764
|
+
* @default 'auto'
|
|
14765
|
+
*/
|
|
14766
|
+
flyoutMenuDisplayMode?: EuiFlyoutMenuDisplayMode;
|
|
14377
14767
|
/**
|
|
14378
14768
|
* Whether the flyout should be resizable.
|
|
14379
14769
|
* @default false
|
|
@@ -14424,7 +14814,7 @@ declare module '@elastic/eui/src/components/flyout/flyout' {
|
|
|
14424
14814
|
import { type EuiFlyoutComponentProps } from '@elastic/eui/src/components/flyout/flyout.component';
|
|
14425
14815
|
import { SESSION_INHERIT, SESSION_NEVER, SESSION_START } from '@elastic/eui/src/components/flyout/manager/const';
|
|
14426
14816
|
export type { EuiFlyoutSize, _EuiFlyoutPaddingSize, _EuiFlyoutSide, } from '@elastic/eui/src/components/flyout/const';
|
|
14427
|
-
export { FLYOUT_SIDES, FLYOUT_PADDING_SIZES, FLYOUT_SIZES, FLYOUT_TYPES, } from '@elastic/eui/src/components/flyout/const';
|
|
14817
|
+
export { FLYOUT_SIDES, FLYOUT_PADDING_SIZES, FLYOUT_SIZES, FLYOUT_TYPES, FLYOUT_MENU_DISPLAY_MODES, } from '@elastic/eui/src/components/flyout/const';
|
|
14428
14818
|
export type EuiFlyoutProps<T extends ElementType = 'div' | 'nav'> = Omit<EuiFlyoutComponentProps<T>, 'as'> & {
|
|
14429
14819
|
/**
|
|
14430
14820
|
* Controls the way the session is managed for this flyout.
|
|
@@ -14440,6 +14830,11 @@ declare module '@elastic/eui/src/components/flyout/flyout' {
|
|
|
14440
14830
|
* @default undefined (auto-inherit when nested, otherwise 'never')
|
|
14441
14831
|
*/
|
|
14442
14832
|
session?: typeof SESSION_START | typeof SESSION_INHERIT | typeof SESSION_NEVER;
|
|
14833
|
+
/**
|
|
14834
|
+
* Optional Symbol to scope flyout history. Only flyouts that receive the same Symbol reference share Back button and history; omit to get a unique group per session.
|
|
14835
|
+
* @default undefined (each session gets a unique key and does not share history)
|
|
14836
|
+
*/
|
|
14837
|
+
historyKey?: symbol;
|
|
14443
14838
|
/**
|
|
14444
14839
|
* Callback fired when the flyout becomes active/visible, which may happen programmatically from history navigation.
|
|
14445
14840
|
*/
|
|
@@ -16674,7 +17069,7 @@ declare module '@elastic/eui/src/services' {
|
|
|
16674
17069
|
export * from '@elastic/eui/src/services/findElement';
|
|
16675
17070
|
export { focusTrapPubSub } from '@elastic/eui/src/services/focus_trap';
|
|
16676
17071
|
export { dateFormatAliases, formatAuto, formatBoolean, formatDate, formatNumber, formatText, } from '@elastic/eui/src/services/format';
|
|
16677
|
-
export
|
|
17072
|
+
export { useDependentState, useCombinedRefs, setMultipleRefs, useForceRender, useLatest, useDeepEqual, isMouseEvent, useMouseMove, useUpdateEffect, useEuiDisabledElement, type EuiDisabledProps, } from '@elastic/eui/src/services/hooks';
|
|
16678
17073
|
export { isEvenlyDivisibleBy, isWithinRange } from '@elastic/eui/src/services/number';
|
|
16679
17074
|
export { Pager } from '@elastic/eui/src/services/paging';
|
|
16680
17075
|
export { calculatePopoverPosition, findPopoverPosition } from '@elastic/eui/src/services/popover';
|
|
@@ -19061,6 +19456,17 @@ declare module '@elastic/eui/src/components/form/file_picker/file_picker' {
|
|
|
19061
19456
|
* Use as a callback to access the HTML FileList API
|
|
19062
19457
|
*/
|
|
19063
19458
|
onChange?: (files: FileList | null) => void;
|
|
19459
|
+
/**
|
|
19460
|
+
* Optionally pass a `File[]` array to maintain the file picker's displayed
|
|
19461
|
+
* state between re-renders. Useful for multi-step forms where the component
|
|
19462
|
+
* may unmount and remount while the file data is still stored in context.
|
|
19463
|
+
*
|
|
19464
|
+
* Note: Due to browser security restrictions, the actual file input
|
|
19465
|
+
* cannot be programmatically set with files. This prop only controls
|
|
19466
|
+
* the displayed state (file names in the prompt). The actual file data
|
|
19467
|
+
* should be stored and managed separately in your application state.
|
|
19468
|
+
*/
|
|
19469
|
+
files?: File[] | null;
|
|
19064
19470
|
/**
|
|
19065
19471
|
* Reduces the size to a typical (compressed) input
|
|
19066
19472
|
* @default false
|
|
@@ -19086,12 +19492,14 @@ declare module '@elastic/eui/src/components/form/file_picker/file_picker' {
|
|
|
19086
19492
|
export class EuiFilePickerClass extends Component<EuiFilePickerProps & WithEuiStylesMemoizerProps> {
|
|
19087
19493
|
static contextType: React.Context<FormContextValue>;
|
|
19088
19494
|
static defaultProps: Partial<EuiFilePickerProps>;
|
|
19495
|
+
fileInput: HTMLInputElement | null;
|
|
19496
|
+
generatedId: string;
|
|
19497
|
+
getPromptTextFromFileList: (files: File[] | null) => React.ReactNode | null;
|
|
19089
19498
|
state: {
|
|
19090
|
-
promptText: null;
|
|
19499
|
+
promptText: React.ReactNode | null;
|
|
19091
19500
|
isHoveringDrop: boolean;
|
|
19092
19501
|
};
|
|
19093
|
-
|
|
19094
|
-
generatedId: string;
|
|
19502
|
+
componentDidUpdate(prevProps: EuiFilePickerProps & WithEuiStylesMemoizerProps): void;
|
|
19095
19503
|
handleChange: () => void;
|
|
19096
19504
|
removeFiles: (e?: React.MouseEvent<HTMLButtonElement>) => void;
|
|
19097
19505
|
showDrop: () => void;
|
|
@@ -28957,6 +29365,11 @@ declare module '@elastic/eui/src/components/markdown_editor/plugins/remark/remar
|
|
|
28957
29365
|
export const FENCED_CLASS = "remark-prismjs--fenced"; const attacher: Plugin;
|
|
28958
29366
|
export default attacher;
|
|
28959
29367
|
|
|
29368
|
+
}
|
|
29369
|
+
declare module '@elastic/eui/src/components/markdown_editor/plugins/remark/remark_intraword_underscore' {
|
|
29370
|
+
import { Plugin } from 'unified'; const attacher: Plugin;
|
|
29371
|
+
export default attacher;
|
|
29372
|
+
|
|
28960
29373
|
}
|
|
28961
29374
|
declare module '@elastic/eui/src/components/markdown_editor/plugins/markdown_checkbox/types' {
|
|
28962
29375
|
export interface CheckboxNodeDetails {
|
|
@@ -34879,8 +35292,6 @@ declare module '@elastic/eui' {
|
|
|
34879
35292
|
"euiToast.dismissToast": any;
|
|
34880
35293
|
"euiGlobalToastList.clearAllToastsButtonAriaLabel": any;
|
|
34881
35294
|
"euiGlobalToastList.clearAllToastsButtonDisplayText": any;
|
|
34882
|
-
"euiTableHeaderCell.titleTextWithDesc": any;
|
|
34883
|
-
"euiStat.loadingText": any;
|
|
34884
35295
|
"euiStepStrings.step": any;
|
|
34885
35296
|
"euiStepStrings.simpleStep": any;
|
|
34886
35297
|
"euiStepStrings.complete": any;
|
|
@@ -34897,18 +35308,20 @@ declare module '@elastic/eui' {
|
|
|
34897
35308
|
"euiStepStrings.simpleLoading": any;
|
|
34898
35309
|
"euiStepStrings.current": any;
|
|
34899
35310
|
"euiStepStrings.simpleCurrent": any;
|
|
34900
|
-
"
|
|
34901
|
-
"
|
|
35311
|
+
"euiTableHeaderCell.titleTextWithDesc": any;
|
|
35312
|
+
"euiStat.loadingText": any;
|
|
34902
35313
|
"euiSelectable.loadingOptions": any;
|
|
34903
35314
|
"euiSelectable.noMatchingOptions": any;
|
|
34904
35315
|
"euiSelectable.noAvailableOptions": any;
|
|
34905
35316
|
"euiSelectable.screenReaderInstructions": any;
|
|
34906
35317
|
"euiSelectable.placeholderName": any;
|
|
34907
35318
|
"euiSelectable.searchResults": any;
|
|
34908
|
-
"
|
|
35319
|
+
"euiSkeletonLoading.loadedAriaText": any;
|
|
35320
|
+
"euiSkeletonLoading.loadingAriaText": any;
|
|
34909
35321
|
"euiSearchBox.placeholder": any;
|
|
34910
35322
|
"euiSearchBox.incrementalAriaLabel": any;
|
|
34911
35323
|
"euiSearchBox.ariaLabel": any;
|
|
35324
|
+
"euiSideNav.mobileToggleAriaLabel": any;
|
|
34912
35325
|
"euiResizablePanel.toggleButtonAriaLabel": any;
|
|
34913
35326
|
"euiResizableButton.horizontalResizerAriaLabel": any;
|
|
34914
35327
|
"euiResizableButton.verticalResizerAriaLabel": any;
|
|
@@ -34928,10 +35341,10 @@ declare module '@elastic/eui' {
|
|
|
34928
35341
|
"euiPagination.of": any;
|
|
34929
35342
|
"euiPagination.collection": any;
|
|
34930
35343
|
"euiPagination.fromEndLabel": any;
|
|
34931
|
-
"euiMark.highlightStart": any;
|
|
34932
|
-
"euiMark.highlightEnd": any;
|
|
34933
35344
|
"euiModal.screenReaderModalDialog": any;
|
|
34934
35345
|
"euiModal.closeModal": any;
|
|
35346
|
+
"euiMark.highlightStart": any;
|
|
35347
|
+
"euiMark.highlightEnd": any;
|
|
34935
35348
|
"euiMarkdownEditorToolbar.editor": any;
|
|
34936
35349
|
"euiMarkdownEditorToolbar.previewMarkdown": any;
|
|
34937
35350
|
"euiMarkdownEditorHelpButton.mdSyntaxLink": any;
|
|
@@ -34950,31 +35363,32 @@ declare module '@elastic/eui' {
|
|
|
34950
35363
|
"euiLoadingStrings.ariaLabel": any;
|
|
34951
35364
|
"euiExternalLinkIcon.newTarget.screenReaderOnlyText": any;
|
|
34952
35365
|
"euiExternalLinkIcon.externalTarget.screenReaderOnlyText": any;
|
|
35366
|
+
"euiImageButton.openFullScreen": any;
|
|
35367
|
+
"euiImageButton.closeFullScreen": any;
|
|
34953
35368
|
"euiInlineEditForm.saveButtonAriaLabel": any;
|
|
34954
35369
|
"euiInlineEditForm.cancelButtonAriaLabel": any;
|
|
34955
35370
|
"euiInlineEditForm.inputKeyboardInstructions": any;
|
|
34956
35371
|
"euiInlineEditForm.activateEditModeDescription": any;
|
|
34957
|
-
"euiImageButton.openFullScreen": any;
|
|
34958
|
-
"euiImageButton.closeFullScreen": any;
|
|
34959
35372
|
"euiForm.addressFormErrors": any;
|
|
34960
|
-
"euiFilterButton.filterBadgeActiveAriaLabel": any;
|
|
34961
|
-
"euiFilterButton.filterBadgeAvailableAriaLabel": any;
|
|
34962
35373
|
"euiFlyoutMenu.back": any;
|
|
34963
35374
|
"euiFlyoutMenu.history": any;
|
|
34964
35375
|
"euiFlyout.screenReaderModalDialog": any;
|
|
34965
35376
|
"euiFlyout.screenReaderNoOverlayMaskDialog": any;
|
|
34966
35377
|
"euiFlyout.screenReaderFocusTrapShards": any;
|
|
34967
35378
|
"euiFlyoutCloseButton.ariaLabel": any;
|
|
35379
|
+
"euiFilterButton.filterBadgeActiveAriaLabel": any;
|
|
35380
|
+
"euiFilterButton.filterBadgeAvailableAriaLabel": any;
|
|
34968
35381
|
"euiErrorBoundary.error": any;
|
|
34969
35382
|
"euiDataGrid.ariaLabel": any;
|
|
34970
35383
|
"euiDataGrid.ariaLabelledBy": any;
|
|
34971
35384
|
"euiDataGrid.screenReaderNotice": any;
|
|
34972
|
-
"
|
|
34973
|
-
"euiHue.ariaRoleDescription": any;
|
|
34974
|
-
"euiHue.label": any;
|
|
35385
|
+
"euiComboBox.listboxAriaLabel": any;
|
|
34975
35386
|
"euiSaturation.ariaLabel": any;
|
|
34976
35387
|
"euiSaturation.roleDescription": any;
|
|
34977
35388
|
"euiSaturation.screenReaderInstructions": any;
|
|
35389
|
+
"euiHue.ariaValueText": any;
|
|
35390
|
+
"euiHue.ariaRoleDescription": any;
|
|
35391
|
+
"euiHue.label": any;
|
|
34978
35392
|
"euiColorPickerSwatch.ariaLabel": any;
|
|
34979
35393
|
"euiColorPicker.popoverLabel": any;
|
|
34980
35394
|
"euiColorPicker.colorLabel": any;
|
|
@@ -34984,13 +35398,13 @@ declare module '@elastic/eui' {
|
|
|
34984
35398
|
"euiColorPicker.alphaLabel": any;
|
|
34985
35399
|
"euiColorPicker.openLabel": any;
|
|
34986
35400
|
"euiColorPicker.closeLabel": any;
|
|
35401
|
+
"euiColorPicker.ariaLabel": any;
|
|
34987
35402
|
"euiCollapsibleNavBeta.ariaLabel": any;
|
|
34988
|
-
"euiComboBox.listboxAriaLabel": any;
|
|
34989
35403
|
"euiCodeBlockFullScreen.fullscreenCollapse": any;
|
|
34990
35404
|
"euiCodeBlockFullScreen.fullscreenExpand": any;
|
|
34991
35405
|
"euiCodeBlockFullScreen.ariaLabel": any;
|
|
34992
|
-
"euiCodeBlockAnnotations.ariaLabel": any;
|
|
34993
35406
|
"euiCodeBlockCopy.copy": any;
|
|
35407
|
+
"euiCodeBlockAnnotations.ariaLabel": any;
|
|
34994
35408
|
"euiCodeBlock.label": any;
|
|
34995
35409
|
"euiCallOut.dismissAriaLabel": any;
|
|
34996
35410
|
"euiBreadcrumbs.nav.ariaLabel": any;
|
|
@@ -35181,7 +35595,6 @@ declare module '@elastic/eui' {
|
|
|
35181
35595
|
"euiKeyboardShortcuts.escapeDescription": any;
|
|
35182
35596
|
"euiFullscreenSelector.fullscreenButton": any;
|
|
35183
35597
|
"euiFullscreenSelector.fullscreenButtonActive": any;
|
|
35184
|
-
"euiDataGridToolbarControl.badgeAriaLabel": any;
|
|
35185
35598
|
"euiDisplaySelector.densityLabel": any;
|
|
35186
35599
|
"euiDisplaySelector.labelCompact": any;
|
|
35187
35600
|
"euiDisplaySelector.labelNormal": any;
|
|
@@ -35192,6 +35605,13 @@ declare module '@elastic/eui' {
|
|
|
35192
35605
|
"euiDisplaySelector.labelMax": any;
|
|
35193
35606
|
"euiDisplaySelector.buttonText": any;
|
|
35194
35607
|
"euiDisplaySelector.resetButtonText": any;
|
|
35608
|
+
"euiDataGridToolbarControl.badgeAriaLabel": any;
|
|
35609
|
+
"euiColumnSortingDraggable.defaultSortAsc": any;
|
|
35610
|
+
"euiColumnSortingDraggable.defaultSortDesc": any;
|
|
35611
|
+
"euiColumnSortingDraggable.dragHandleAriaLabel": any;
|
|
35612
|
+
"euiColumnSortingDraggable.activeSortLabel": any;
|
|
35613
|
+
"euiColumnSortingDraggable.removeSortLabel": any;
|
|
35614
|
+
"euiColumnSortingDraggable.toggleLegend": any;
|
|
35195
35615
|
"euiColumnSorting.button": any;
|
|
35196
35616
|
"euiColumnSorting.sortFieldAriaLabel": any;
|
|
35197
35617
|
"euiColumnSorting.emptySorting": any;
|
|
@@ -35203,19 +35623,7 @@ declare module '@elastic/eui' {
|
|
|
35203
35623
|
"euiColumnSelector.searchcolumns": any;
|
|
35204
35624
|
"euiColumnSelector.selectAll": any;
|
|
35205
35625
|
"euiColumnSelector.hideAll": any;
|
|
35206
|
-
"
|
|
35207
|
-
"euiColumnSortingDraggable.defaultSortDesc": any;
|
|
35208
|
-
"euiColumnSortingDraggable.dragHandleAriaLabel": any;
|
|
35209
|
-
"euiColumnSortingDraggable.activeSortLabel": any;
|
|
35210
|
-
"euiColumnSortingDraggable.removeSortLabel": any;
|
|
35211
|
-
"euiColumnSortingDraggable.toggleLegend": any;
|
|
35212
|
-
"euiCollapsibleNavButton.ariaLabelExpand": any;
|
|
35213
|
-
"euiCollapsibleNavButton.ariaLabelCollapse": any;
|
|
35214
|
-
"euiCollapsibleNavButton.ariaLabelOpen": any;
|
|
35215
|
-
"euiCollapsibleNavButton.ariaLabelClose": any;
|
|
35216
|
-
"euiCollapsibleNavKibanaSolution.switcherTitle": any;
|
|
35217
|
-
"euiCollapsibleNavKibanaSolution.switcherAriaLabel": any;
|
|
35218
|
-
"euiCollapsibleNavKibanaSolution.groupLabel": any;
|
|
35626
|
+
"euiComboBoxPill.removeSelection": any;
|
|
35219
35627
|
"euiComboBoxOptionsList.loadingOptions": any;
|
|
35220
35628
|
"euiComboBoxOptionsList.delimiterMessage": any;
|
|
35221
35629
|
"euiComboBoxOptionsList.alreadyAdded": any;
|
|
@@ -35223,7 +35631,13 @@ declare module '@elastic/eui' {
|
|
|
35223
35631
|
"euiComboBoxOptionsList.noMatchingOptions": any;
|
|
35224
35632
|
"euiComboBoxOptionsList.noAvailableOptions": any;
|
|
35225
35633
|
"euiComboBoxOptionsList.allOptionsSelected": any;
|
|
35226
|
-
"
|
|
35634
|
+
"euiCollapsibleNavButton.ariaLabelExpand": any;
|
|
35635
|
+
"euiCollapsibleNavButton.ariaLabelCollapse": any;
|
|
35636
|
+
"euiCollapsibleNavButton.ariaLabelOpen": any;
|
|
35637
|
+
"euiCollapsibleNavButton.ariaLabelClose": any;
|
|
35638
|
+
"euiCollapsibleNavKibanaSolution.switcherTitle": any;
|
|
35639
|
+
"euiCollapsibleNavKibanaSolution.switcherAriaLabel": any;
|
|
35640
|
+
"euiCollapsibleNavKibanaSolution.groupLabel": any;
|
|
35227
35641
|
"euiCardSelect.selected": any;
|
|
35228
35642
|
"euiCardSelect.unavailable": any;
|
|
35229
35643
|
"euiCardSelect.select": any;
|
|
@@ -35252,10 +35666,10 @@ declare module '@elastic/eui' {
|
|
|
35252
35666
|
"euiDatePopoverContent.nowTabContent": any;
|
|
35253
35667
|
"euiDatePopoverContent.nowTabButtonStart": any;
|
|
35254
35668
|
"euiDatePopoverContent.nowTabButtonEnd": any;
|
|
35255
|
-
"euiAbsoluteTab.dateFormatButtonLabel": any;
|
|
35256
|
-
"euiAbsoluteTab.dateFormatError": any;
|
|
35257
35669
|
"euiDatePopoverButton.invalidTitle": any;
|
|
35258
35670
|
"euiDatePopoverButton.outdatedTitle": any;
|
|
35671
|
+
"euiAbsoluteTab.dateFormatButtonLabel": any;
|
|
35672
|
+
"euiAbsoluteTab.dateFormatError": any;
|
|
35259
35673
|
"euiDataGridHeaderCell.sortedByAscendingSingle": any;
|
|
35260
35674
|
"euiDataGridHeaderCell.sortedByDescendingSingle": any;
|
|
35261
35675
|
"euiDataGridHeaderCell.sortedByAscendingFirst": any;
|