@elastic/eui 116.3.0 → 116.3.1-snapshot.1782148316870

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.
Files changed (199) hide show
  1. package/es/components/avatar/avatar.js +4 -0
  2. package/es/components/avatar/avatar.styles.js +16 -16
  3. package/es/components/banner/banner.js +1 -2
  4. package/es/components/banner/banner.styles.js +1 -1
  5. package/es/components/basic_table/basic_table.js +35 -5
  6. package/es/components/basic_table/basic_table.styles.js +19 -1
  7. package/es/components/basic_table/in_memory_table.js +17 -0
  8. package/es/components/basic_table/index.js +2 -1
  9. package/es/components/basic_table/pagination_bar.js +19 -4
  10. package/es/components/basic_table/pagination_bar.styles.js +21 -0
  11. package/es/components/basic_table/panel.styles.js +14 -0
  12. package/es/components/basic_table/use_panel_props.js +28 -0
  13. package/es/components/date_picker/auto_refresh/refresh_interval.js +176 -229
  14. package/es/components/date_picker/date_picker.js +1 -1
  15. package/es/components/flyout/flyout.component.js +10 -6
  16. package/es/components/flyout/flyout_menu.js +122 -19
  17. package/es/components/flyout/flyout_menu.styles.js +2 -1
  18. package/es/components/flyout/manager/actions.js +20 -0
  19. package/es/components/flyout/manager/flyout_child.js +23 -1
  20. package/es/components/flyout/manager/flyout_managed.js +65 -19
  21. package/es/components/flyout/manager/hooks.js +1 -1
  22. package/es/components/flyout/manager/index.js +2 -2
  23. package/es/components/flyout/manager/reducer.js +32 -8
  24. package/es/components/flyout/manager/selectors.js +8 -2
  25. package/es/components/flyout/manager/store.js +35 -2
  26. package/es/components/flyout/use_flyout_menu.js +2 -2
  27. package/es/components/form/field_password/field_password.styles.js +1 -1
  28. package/es/components/form/field_search/field_search.styles.js +1 -1
  29. package/es/components/form/form.styles.js +1 -1
  30. package/es/components/form/form_control_layout/form_control_layout_icons.js +95 -143
  31. package/es/components/form/select/select.styles.js +1 -1
  32. package/es/components/form/text_area/text_area.styles.js +1 -1
  33. package/es/components/form/validatable_control/validatable_control.js +8 -55
  34. package/es/components/table/mobile/table_sort_mobile.js +64 -103
  35. package/es/components/table/store/use_unique_column_id.js +25 -0
  36. package/es/components/table/table_header_cell.js +7 -8
  37. package/es/components/table/table_header_cell_checkbox.js +5 -6
  38. package/es/components/tool_tip/tool_tip.js +61 -30
  39. package/es/components/tool_tip/tool_tip_anchor.js +5 -5
  40. package/es/components/tool_tip/tool_tip_manager.js +27 -2
  41. package/eui.d.ts +679 -530
  42. package/i18ntokens.json +810 -738
  43. package/lib/components/avatar/avatar.js +4 -0
  44. package/lib/components/avatar/avatar.styles.js +16 -16
  45. package/lib/components/banner/banner.js +1 -2
  46. package/lib/components/banner/banner.styles.js +1 -1
  47. package/lib/components/basic_table/basic_table.js +34 -4
  48. package/lib/components/basic_table/basic_table.styles.js +19 -1
  49. package/lib/components/basic_table/in_memory_table.js +17 -0
  50. package/lib/components/basic_table/index.js +8 -1
  51. package/lib/components/basic_table/pagination_bar.js +19 -4
  52. package/lib/components/basic_table/pagination_bar.styles.js +26 -0
  53. package/lib/components/basic_table/panel.styles.js +20 -0
  54. package/lib/components/basic_table/use_panel_props.js +33 -0
  55. package/lib/components/date_picker/auto_refresh/refresh_interval.js +175 -229
  56. package/lib/components/date_picker/date_picker.js +1 -1
  57. package/lib/components/flyout/flyout.component.js +10 -6
  58. package/lib/components/flyout/flyout_menu.js +120 -19
  59. package/lib/components/flyout/flyout_menu.styles.js +2 -1
  60. package/lib/components/flyout/manager/actions.js +21 -1
  61. package/lib/components/flyout/manager/flyout_child.js +23 -1
  62. package/lib/components/flyout/manager/flyout_managed.js +41 -17
  63. package/lib/components/flyout/manager/hooks.js +6 -0
  64. package/lib/components/flyout/manager/index.js +12 -0
  65. package/lib/components/flyout/manager/reducer.js +31 -7
  66. package/lib/components/flyout/manager/selectors.js +9 -3
  67. package/lib/components/flyout/manager/store.js +34 -1
  68. package/lib/components/flyout/use_flyout_menu.js +2 -2
  69. package/lib/components/form/field_password/field_password.styles.js +1 -1
  70. package/lib/components/form/field_search/field_search.styles.js +1 -1
  71. package/lib/components/form/form.styles.js +1 -1
  72. package/lib/components/form/form_control_layout/form_control_layout_icons.js +95 -145
  73. package/lib/components/form/select/select.styles.js +1 -1
  74. package/lib/components/form/text_area/text_area.styles.js +1 -1
  75. package/lib/components/form/validatable_control/validatable_control.js +7 -52
  76. package/lib/components/table/mobile/table_sort_mobile.js +71 -108
  77. package/lib/components/table/store/use_unique_column_id.js +34 -0
  78. package/lib/components/table/table_header_cell.js +7 -8
  79. package/lib/components/table/table_header_cell_checkbox.js +5 -6
  80. package/lib/components/tool_tip/tool_tip.js +59 -29
  81. package/lib/components/tool_tip/tool_tip_anchor.js +5 -5
  82. package/lib/components/tool_tip/tool_tip_manager.js +27 -2
  83. package/optimize/es/components/avatar/avatar.js +4 -0
  84. package/optimize/es/components/avatar/avatar.styles.js +16 -16
  85. package/optimize/es/components/banner/banner.js +1 -2
  86. package/optimize/es/components/banner/banner.styles.js +1 -1
  87. package/optimize/es/components/basic_table/basic_table.js +18 -5
  88. package/optimize/es/components/basic_table/basic_table.styles.js +19 -1
  89. package/optimize/es/components/basic_table/index.js +2 -1
  90. package/optimize/es/components/basic_table/pagination_bar.js +19 -4
  91. package/optimize/es/components/basic_table/pagination_bar.styles.js +21 -0
  92. package/optimize/es/components/basic_table/panel.styles.js +14 -0
  93. package/optimize/es/components/basic_table/use_panel_props.js +28 -0
  94. package/optimize/es/components/date_picker/auto_refresh/refresh_interval.js +172 -196
  95. package/optimize/es/components/date_picker/date_picker.js +1 -1
  96. package/optimize/es/components/flyout/flyout.component.js +10 -6
  97. package/optimize/es/components/flyout/flyout_menu.js +99 -18
  98. package/optimize/es/components/flyout/flyout_menu.styles.js +2 -1
  99. package/optimize/es/components/flyout/manager/actions.js +20 -0
  100. package/optimize/es/components/flyout/manager/flyout_managed.js +42 -18
  101. package/optimize/es/components/flyout/manager/hooks.js +1 -1
  102. package/optimize/es/components/flyout/manager/index.js +2 -2
  103. package/optimize/es/components/flyout/manager/reducer.js +32 -8
  104. package/optimize/es/components/flyout/manager/selectors.js +8 -2
  105. package/optimize/es/components/flyout/manager/store.js +35 -2
  106. package/optimize/es/components/flyout/use_flyout_menu.js +2 -2
  107. package/optimize/es/components/form/field_password/field_password.styles.js +1 -1
  108. package/optimize/es/components/form/field_search/field_search.styles.js +1 -1
  109. package/optimize/es/components/form/form.styles.js +1 -1
  110. package/optimize/es/components/form/form_control_layout/form_control_layout_icons.js +96 -115
  111. package/optimize/es/components/form/select/select.styles.js +1 -1
  112. package/optimize/es/components/form/text_area/text_area.styles.js +1 -1
  113. package/optimize/es/components/form/validatable_control/validatable_control.js +7 -48
  114. package/optimize/es/components/table/mobile/table_sort_mobile.js +59 -82
  115. package/optimize/es/components/table/store/use_unique_column_id.js +25 -0
  116. package/optimize/es/components/table/table_header_cell.js +7 -8
  117. package/optimize/es/components/table/table_header_cell_checkbox.js +5 -6
  118. package/optimize/es/components/tool_tip/tool_tip.js +58 -30
  119. package/optimize/es/components/tool_tip/tool_tip_anchor.js +5 -5
  120. package/optimize/es/components/tool_tip/tool_tip_manager.js +27 -2
  121. package/optimize/lib/components/avatar/avatar.js +4 -0
  122. package/optimize/lib/components/avatar/avatar.styles.js +16 -16
  123. package/optimize/lib/components/banner/banner.js +1 -2
  124. package/optimize/lib/components/banner/banner.styles.js +1 -1
  125. package/optimize/lib/components/basic_table/basic_table.js +17 -4
  126. package/optimize/lib/components/basic_table/basic_table.styles.js +19 -1
  127. package/optimize/lib/components/basic_table/index.js +8 -1
  128. package/optimize/lib/components/basic_table/pagination_bar.js +19 -4
  129. package/optimize/lib/components/basic_table/pagination_bar.styles.js +26 -0
  130. package/optimize/lib/components/basic_table/panel.styles.js +20 -0
  131. package/optimize/lib/components/basic_table/use_panel_props.js +33 -0
  132. package/optimize/lib/components/date_picker/auto_refresh/refresh_interval.js +170 -194
  133. package/optimize/lib/components/date_picker/date_picker.js +1 -1
  134. package/optimize/lib/components/flyout/flyout.component.js +10 -6
  135. package/optimize/lib/components/flyout/flyout_menu.js +98 -18
  136. package/optimize/lib/components/flyout/flyout_menu.styles.js +2 -1
  137. package/optimize/lib/components/flyout/manager/actions.js +21 -1
  138. package/optimize/lib/components/flyout/manager/flyout_managed.js +41 -17
  139. package/optimize/lib/components/flyout/manager/hooks.js +6 -0
  140. package/optimize/lib/components/flyout/manager/index.js +12 -0
  141. package/optimize/lib/components/flyout/manager/reducer.js +31 -7
  142. package/optimize/lib/components/flyout/manager/selectors.js +9 -3
  143. package/optimize/lib/components/flyout/manager/store.js +34 -1
  144. package/optimize/lib/components/flyout/use_flyout_menu.js +2 -2
  145. package/optimize/lib/components/form/field_password/field_password.styles.js +1 -1
  146. package/optimize/lib/components/form/field_search/field_search.styles.js +1 -1
  147. package/optimize/lib/components/form/form.styles.js +1 -1
  148. package/optimize/lib/components/form/form_control_layout/form_control_layout_icons.js +96 -117
  149. package/optimize/lib/components/form/select/select.styles.js +1 -1
  150. package/optimize/lib/components/form/text_area/text_area.styles.js +1 -1
  151. package/optimize/lib/components/form/validatable_control/validatable_control.js +6 -49
  152. package/optimize/lib/components/table/mobile/table_sort_mobile.js +61 -83
  153. package/optimize/lib/components/table/store/use_unique_column_id.js +34 -0
  154. package/optimize/lib/components/table/table_header_cell.js +7 -8
  155. package/optimize/lib/components/table/table_header_cell_checkbox.js +5 -6
  156. package/optimize/lib/components/tool_tip/tool_tip.js +57 -29
  157. package/optimize/lib/components/tool_tip/tool_tip_anchor.js +5 -5
  158. package/optimize/lib/components/tool_tip/tool_tip_manager.js +27 -2
  159. package/package.json +8 -5
  160. package/test-env/components/avatar/avatar.js +4 -0
  161. package/test-env/components/avatar/avatar.styles.js +16 -16
  162. package/test-env/components/banner/banner.js +1 -2
  163. package/test-env/components/banner/banner.styles.js +1 -1
  164. package/test-env/components/basic_table/basic_table.js +34 -4
  165. package/test-env/components/basic_table/basic_table.styles.js +19 -1
  166. package/test-env/components/basic_table/in_memory_table.js +17 -0
  167. package/test-env/components/basic_table/index.js +8 -1
  168. package/test-env/components/basic_table/pagination_bar.js +19 -4
  169. package/test-env/components/basic_table/pagination_bar.styles.js +26 -0
  170. package/test-env/components/basic_table/panel.styles.js +20 -0
  171. package/test-env/components/basic_table/use_panel_props.js +33 -0
  172. package/test-env/components/date_picker/auto_refresh/refresh_interval.js +170 -220
  173. package/test-env/components/date_picker/date_picker.js +1 -1
  174. package/test-env/components/flyout/flyout.component.js +10 -6
  175. package/test-env/components/flyout/flyout_menu.js +121 -19
  176. package/test-env/components/flyout/flyout_menu.styles.js +2 -1
  177. package/test-env/components/flyout/manager/actions.js +21 -1
  178. package/test-env/components/flyout/manager/flyout_child.js +23 -1
  179. package/test-env/components/flyout/manager/flyout_managed.js +41 -17
  180. package/test-env/components/flyout/manager/hooks.js +6 -0
  181. package/test-env/components/flyout/manager/index.js +12 -0
  182. package/test-env/components/flyout/manager/reducer.js +31 -7
  183. package/test-env/components/flyout/manager/selectors.js +9 -3
  184. package/test-env/components/flyout/manager/store.js +34 -1
  185. package/test-env/components/flyout/use_flyout_menu.js +2 -2
  186. package/test-env/components/form/field_password/field_password.styles.js +1 -1
  187. package/test-env/components/form/field_search/field_search.styles.js +1 -1
  188. package/test-env/components/form/form.styles.js +1 -1
  189. package/test-env/components/form/form_control_layout/form_control_layout_icons.js +95 -139
  190. package/test-env/components/form/select/select.styles.js +1 -1
  191. package/test-env/components/form/text_area/text_area.styles.js +1 -1
  192. package/test-env/components/form/validatable_control/validatable_control.js +6 -48
  193. package/test-env/components/table/mobile/table_sort_mobile.js +61 -98
  194. package/test-env/components/table/store/use_unique_column_id.js +34 -0
  195. package/test-env/components/table/table_header_cell.js +7 -8
  196. package/test-env/components/table/table_header_cell_checkbox.js +5 -6
  197. package/test-env/components/tool_tip/tool_tip.js +57 -29
  198. package/test-env/components/tool_tip/tool_tip_anchor.js +5 -5
  199. package/test-env/components/tool_tip/tool_tip_manager.js +27 -2
package/eui.d.ts CHANGED
@@ -2861,8 +2861,17 @@ declare module '@elastic/eui/src/components/tool_tip/tool_tip_arrow' {
2861
2861
  declare module '@elastic/eui/src/components/tool_tip/tool_tip_manager' {
2862
2862
  class ToolTipManager {
2863
2863
  toolTipsToHide: Set<Function>;
2864
- registerTooltip: (hideCallback: Function) => void;
2864
+ lastHiddenAt: number | null;
2865
+ registerTooltip: (hideCallback: Function) => {
2866
+ skipAnimation: boolean;
2867
+ } | null;
2865
2868
  deregisterToolTip: (hideCallback: Function) => void;
2869
+ /**
2870
+ * Resets all internal state. Primarily intended for tests, so that a
2871
+ * tooltip shown in one test doesn't leak into the next (the manager is a
2872
+ * module-level singleton).
2873
+ */
2874
+ reset: () => void;
2866
2875
  }
2867
2876
  export const toolTipManager: ToolTipManager;
2868
2877
  export {};
@@ -11709,6 +11718,12 @@ declare module '@elastic/eui/src/components/form/validatable_control/validatable
11709
11718
  /**
11710
11719
  * The `EuiValidatableControl` component should be used in scenarios where
11711
11720
  * we can render the validated `<input>` as its direct child.
11721
+ *
11722
+ * It flags the underlying control as invalid via `aria-invalid`, which EUI form
11723
+ * controls use to render their invalid styling. Note that it intentionally does
11724
+ * *not* hook into the native constraint validation API (`setCustomValidity`) -
11725
+ * `isInvalid` is a presentational prop, and tying it to native validity would
11726
+ * block native form submission and surface a non-localized native error tooltip.
11712
11727
  */
11713
11728
  export interface EuiValidatableControlProps {
11714
11729
  isInvalid?: boolean;
@@ -11835,7 +11850,7 @@ declare module '@elastic/eui/src/components/form/form_control_layout/form_contro
11835
11850
 
11836
11851
  }
11837
11852
  declare module '@elastic/eui/src/components/form/form_control_layout/form_control_layout_icons' {
11838
- import React, { Component } from 'react';
11853
+ import React from 'react';
11839
11854
  import { DistributiveOmit } from '@elastic/eui/src/components/common';
11840
11855
  import { IconColor, IconType } from '@elastic/eui/src/components/icon';
11841
11856
  import { EuiFormControlLayoutClearButtonProps } from '@elastic/eui/src/components/form/form_control_layout/form_control_layout_clear_button';
@@ -11859,14 +11874,7 @@ declare module '@elastic/eui/src/components/form/form_control_layout/form_contro
11859
11874
  compressed?: boolean;
11860
11875
  isDisabled?: boolean;
11861
11876
  }
11862
- export class EuiFormControlLayoutIcons extends Component<EuiFormControlLayoutIconsProps> {
11863
- render(): React.JSX.Element;
11864
- renderCustomIcon(): React.JSX.Element | null;
11865
- renderDropdownIcon(): React.JSX.Element | null;
11866
- renderLoadingSpinner(): React.JSX.Element | null;
11867
- renderClearButton(): React.JSX.Element | null;
11868
- renderInvalidIcon(): React.JSX.Element | null;
11869
- }
11877
+ export const EuiFormControlLayoutIcons: ({ side, iconsPosition, compressed, isDisabled, icon, clear, isLoading, isInvalid, isDropdown, }: EuiFormControlLayoutIconsProps) => React.JSX.Element;
11870
11878
 
11871
11879
  }
11872
11880
  declare module '@elastic/eui/src/components/form/form_control_layout/_num_icons' {
@@ -16825,10 +16833,22 @@ declare module '@elastic/eui/src/components/table/table_pagination' {
16825
16833
  export { EuiTablePagination } from '@elastic/eui/src/components/table/table_pagination/table_pagination';
16826
16834
  export { useEuiTablePaginationDefaults, euiTablePaginationDefaults, } from '@elastic/eui/src/components/table/table_pagination/table_pagination_defaults';
16827
16835
 
16836
+ }
16837
+ declare module '@elastic/eui/src/components/basic_table/pagination_bar.styles' {
16838
+ import { UseEuiTheme } from '@elastic/eui/src/services';
16839
+ /**
16840
+ * @internal
16841
+ */
16842
+ export const euiBasicTablePaginationBarStyles: (theme: UseEuiTheme) => {
16843
+ root: import("@emotion/react").SerializedStyles;
16844
+ panelled: import("@emotion/react").SerializedStyles;
16845
+ };
16846
+
16828
16847
  }
16829
16848
  declare module '@elastic/eui/src/components/basic_table/pagination_bar' {
16830
16849
  import React from 'react';
16831
- import { ItemsPerPageChangeHandler, PageChangeHandler } from '@elastic/eui/src/components/table/table_pagination/table_pagination';
16850
+ import { EuiBreakpointSize } from '@elastic/eui/src/services';
16851
+ import type { ItemsPerPageChangeHandler, PageChangeHandler } from '@elastic/eui/src/components/table/table_pagination/table_pagination';
16832
16852
  export interface Pagination {
16833
16853
  /**
16834
16854
  * The current page (zero-based) index
@@ -16859,8 +16879,21 @@ declare module '@elastic/eui/src/components/basic_table/pagination_bar' {
16859
16879
  */
16860
16880
  showPerPageOptions?: boolean;
16861
16881
  }
16862
- export interface PaginationBarProps {
16882
+ /**
16883
+ * @internal
16884
+ */
16885
+ interface PaginationBarProps {
16863
16886
  pagination: Pagination;
16887
+ /**
16888
+ * Enable the panelled style.
16889
+ *
16890
+ * Panelled style adds contrast between the table navigation controls
16891
+ * and table content itself. It should be used in tables rendered outside
16892
+ * EUI containers like `<EuiPanel>` or `<EuiFlyout>`.
16893
+ * @default false
16894
+ */
16895
+ panelled?: boolean;
16896
+ responsiveBreakpoint?: EuiBreakpointSize | boolean;
16864
16897
  onPageSizeChange: ItemsPerPageChangeHandler;
16865
16898
  onPageChange: PageChangeHandler;
16866
16899
  /**
@@ -16869,7 +16902,13 @@ declare module '@elastic/eui/src/components/basic_table/pagination_bar' {
16869
16902
  'aria-controls'?: string;
16870
16903
  'aria-label'?: string;
16871
16904
  }
16872
- export const PaginationBar: ({ pagination, onPageSizeChange, onPageChange, "aria-controls": ariaControls, "aria-label": ariaLabel, }: PaginationBarProps) => React.JSX.Element;
16905
+ /**
16906
+ * An internal utility component that renders EuiTablePagination with
16907
+ * proper configuration and handles the `panelled` styles.
16908
+ * @internal
16909
+ */
16910
+ export const PaginationBar: ({ pagination, panelled, responsiveBreakpoint, onPageSizeChange, onPageChange, "aria-controls": ariaControls, "aria-label": ariaLabel, }: PaginationBarProps) => React.JSX.Element;
16911
+ export {};
16873
16912
 
16874
16913
  }
16875
16914
  declare module '@elastic/eui/src/components/basic_table/action_types' {
@@ -17237,6 +17276,20 @@ declare module '@elastic/eui/src/components/table/sticky_header' {
17237
17276
  export { EuiTableStickyHeader } from '@elastic/eui/src/components/table/sticky_header/sticky_header';
17238
17277
  export { useEuiTableWithinStickyHeader } from '@elastic/eui/src/components/table/sticky_header/context';
17239
17278
 
17279
+ }
17280
+ declare module '@elastic/eui/src/components/table/store/use_unique_column_id' {
17281
+ import React from 'react';
17282
+ /**
17283
+ * Returns a stable unique column ID to be used when registering columns.
17284
+ * It uses `React.useId()` when available and falls back to UUID v4 on React 17.
17285
+ *
17286
+ * This is needed so that static `uuid` mocks don't break column registration
17287
+ * (at least in React 18+; in older versions this function would need
17288
+ * to be mocked to return something unique, but stable).
17289
+ * @internal
17290
+ */
17291
+ export const useEuiTableStoreUniqueColumnId: typeof React.useId;
17292
+
17240
17293
  }
17241
17294
  declare module '@elastic/eui/src/components/table/table_header_cell' {
17242
17295
  import { FunctionComponent, ThHTMLAttributes, ReactNode } from 'react';
@@ -17339,7 +17392,7 @@ declare module '@elastic/eui/src/components/table/mobile/table_sort_mobile_item'
17339
17392
 
17340
17393
  }
17341
17394
  declare module '@elastic/eui/src/components/table/mobile/table_sort_mobile' {
17342
- import React, { Component, ReactNode, Key } from 'react';
17395
+ import React, { Key, ReactNode } from 'react';
17343
17396
  import { CommonProps } from '@elastic/eui/src/components/common';
17344
17397
  import { PopoverAnchorPosition } from '@elastic/eui/src/components/popover';
17345
17398
  interface ItemProps {
@@ -17353,21 +17406,10 @@ declare module '@elastic/eui/src/components/table/mobile/table_sort_mobile' {
17353
17406
  anchorPosition?: PopoverAnchorPosition;
17354
17407
  items?: ItemProps[];
17355
17408
  }
17356
- interface State {
17357
- isPopoverOpen: boolean;
17358
- }
17359
- export class EuiTableSortMobile extends Component<EuiTableSortMobileProps, State> {
17360
- state: {
17361
- isPopoverOpen: boolean;
17362
- };
17363
- onButtonClick: () => void;
17364
- closePopover: () => void;
17365
- euiTableSortMobileStyles: {
17366
- marginInlineStart: string;
17367
- label: string;
17368
- };
17369
- render(): React.JSX.Element;
17370
- }
17409
+ export const EuiTableSortMobile: {
17410
+ ({ className, anchorPosition, items, ...rest }: EuiTableSortMobileProps): React.JSX.Element;
17411
+ displayName: string;
17412
+ };
17371
17413
  export {};
17372
17414
 
17373
17415
  }
@@ -17489,449 +17531,6 @@ declare module '@elastic/eui/src/components/table' {
17489
17531
  export { EuiTableRowCellCheckbox } from '@elastic/eui/src/components/table/table_row_cell_checkbox';
17490
17532
  export { EUI_TABLE_CSS_CONTAINER_NAME } from '@elastic/eui/src/components/table/const';
17491
17533
 
17492
- }
17493
- declare module '@elastic/eui/src/components/flyout/manager/const' {
17494
- /**
17495
- * Allowed values for `session` prop to control the way the session is managed for a flyout.
17496
- */
17497
- export const SESSION_START = "start";
17498
- export const SESSION_INHERIT = "inherit";
17499
- export const SESSION_NEVER = "never";
17500
- /**
17501
- * Data attribute applied to a managed flyout element to help identify it as a managed flyout.
17502
- */
17503
- export const PROPERTY_FLYOUT = "data-managed-flyout";
17504
- /**
17505
- * Data attribute indicating whether the flyout is the `main` or `child` flyout.
17506
- */
17507
- export const PROPERTY_LEVEL = "data-managed-flyout-level";
17508
- /**
17509
- * Data attribute representing how multiple flyouts are laid out
17510
- * (`side-by-side` or `stacked`).
17511
- */
17512
- export const PROPERTY_LAYOUT_MODE = "data-managed-flyout-layout-mode";
17513
- /** Stacked layout mode where child flyouts overlay on top of the main flyout. */
17514
- export const LAYOUT_MODE_STACKED = "stacked";
17515
- /** Side-by-side layout mode where child flyouts render adjacent to the main flyout. */
17516
- export const LAYOUT_MODE_SIDE_BY_SIDE = "side-by-side";
17517
- /** The primary (parent) flyout in a session. */
17518
- export const LEVEL_MAIN = "main";
17519
- /** The secondary (child) flyout spawned by the main flyout. */
17520
- export const LEVEL_CHILD = "child";
17521
- /** Flyout is mounting and playing its opening animation. */
17522
- export const STAGE_OPENING = "opening";
17523
- /** Flyout is fully visible and interactive. */
17524
- export const STAGE_ACTIVE = "active";
17525
- /** Flyout is unmounted or not currently visible/interactable. */
17526
- export const STAGE_INACTIVE = "inactive";
17527
- /** Main flyout is transitioning behind an active session flyout. */
17528
- export const STAGE_BACKGROUNDING = "backgrounding";
17529
- /** Main flyout is backgrounded behind an active session flyout. */
17530
- export const STAGE_BACKGROUNDED = "backgrounded";
17531
- /** Flyout is returning to the foreground from a backgrounded state. */
17532
- export const STAGE_RETURNING = "returning";
17533
- /** Flyout is playing its closing animation. */
17534
- export const STAGE_CLOSING = "closing";
17535
-
17536
- }
17537
- declare module '@elastic/eui/src/components/flyout/manager/types' {
17538
- import type { IconType } from '@elastic/eui/src/components/icon';
17539
- import type { Action } from '@elastic/eui/src/components/flyout/manager/actions';
17540
- 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';
17541
- export type EuiFlyoutLayoutMode = typeof LAYOUT_MODE_STACKED | typeof LAYOUT_MODE_SIDE_BY_SIDE;
17542
- export type EuiFlyoutLevel = typeof LEVEL_MAIN | typeof LEVEL_CHILD;
17543
- export type EuiFlyoutActivityStage = typeof STAGE_OPENING | typeof STAGE_ACTIVE | typeof STAGE_INACTIVE | typeof STAGE_BACKGROUNDING | typeof STAGE_BACKGROUNDED | typeof STAGE_RETURNING | typeof STAGE_CLOSING;
17544
- export interface EuiManagedFlyoutState {
17545
- flyoutId: string;
17546
- level: EuiFlyoutLevel;
17547
- width?: number;
17548
- size?: string;
17549
- minWidth?: number;
17550
- activityStage?: EuiFlyoutActivityStage;
17551
- }
17552
- /** Entry for a child flyout in session history. */
17553
- export interface ChildHistoryEntry {
17554
- flyoutId: string;
17555
- title: string;
17556
- iconType?: IconType;
17557
- }
17558
- export interface FlyoutSession {
17559
- /** ID of the main flyout for this session */
17560
- mainFlyoutId: string;
17561
- /** ID of the child flyout for this session */
17562
- childFlyoutId: string | null;
17563
- /** Title of the main flyout in this session */
17564
- title: string;
17565
- /** Optional icon for this session when shown in history popover */
17566
- iconType?: IconType;
17567
- /** z-index value to be used by the flyout session */
17568
- zIndex: number;
17569
- /** Title of the current child flyout. */
17570
- childTitle?: string;
17571
- /** Icon of the current child flyout. */
17572
- childIconType?: IconType;
17573
- /** Stack of child flyouts we navigated away from. */
17574
- childHistory: ChildHistoryEntry[];
17575
- /** Key that scopes this session's history; same Symbol reference = same history group. Always set (from action or Symbol()). */
17576
- historyKey: symbol;
17577
- }
17578
- export interface PushPaddingOffsets {
17579
- /** Push padding applied to the left side (in pixels) */
17580
- left: number;
17581
- /** Push padding applied to the right side (in pixels) */
17582
- right: number;
17583
- }
17584
- export interface EuiFlyoutManagerState {
17585
- sessions: FlyoutSession[];
17586
- flyouts: EuiManagedFlyoutState[];
17587
- layoutMode: EuiFlyoutLayoutMode;
17588
- /** Active push padding offsets (updated by active push flyouts) */
17589
- pushPadding?: PushPaddingOffsets;
17590
- currentZIndex: number;
17591
- unmanagedFlyouts: string[];
17592
- /** The container element that flyouts are positioned relative to (if any). */
17593
- containerElement?: HTMLElement | null;
17594
- /**
17595
- * Reference width used for layout and resize clamping (container or viewport).
17596
- * Set by the layout mode hook so flyouts use the same value for consistent clamping.
17597
- */
17598
- referenceWidth?: number;
17599
- }
17600
- /**
17601
- * Public API surface provided through React context.
17602
- * Kept intentionally decoupled from action types to avoid module cycles.
17603
- */
17604
- export interface FlyoutManagerApi {
17605
- state: EuiFlyoutManagerState;
17606
- dispatch: (action: Action) => void;
17607
- addFlyout: (flyoutId: string, title: string, level?: EuiFlyoutLevel, size?: string, historyKey?: symbol, iconType?: IconType, minWidth?: number) => void;
17608
- closeFlyout: (flyoutId: string) => void;
17609
- closeAllFlyouts: () => void;
17610
- setActiveFlyout: (flyoutId: string | null) => void;
17611
- setFlyoutWidth: (flyoutId: string, width: number) => void;
17612
- setPushPadding: (side: 'left' | 'right', width: number) => void;
17613
- setContainerElement: (element: HTMLElement | null) => void;
17614
- goBack: () => void;
17615
- goToFlyout: (flyoutId: string, level?: EuiFlyoutLevel) => void;
17616
- addUnmanagedFlyout: (flyoutId: string) => void;
17617
- closeUnmanagedFlyout: (flyoutId: string) => void;
17618
- historyItems: Array<{
17619
- title: string;
17620
- iconType?: IconType;
17621
- onClick: () => void;
17622
- }>;
17623
- }
17624
-
17625
- }
17626
- declare module '@elastic/eui/src/components/flyout/manager/actions' {
17627
- import type { IconType } from '@elastic/eui/src/components/icon';
17628
- import { EuiFlyoutActivityStage, EuiFlyoutLevel, EuiFlyoutLayoutMode } from '@elastic/eui/src/components/flyout/manager/types'; const PREFIX: "eui/flyoutManager";
17629
- interface BaseAction {
17630
- type: `${typeof PREFIX}/${string}`;
17631
- }
17632
- /** Dispatched when a flyout registers itself with the manager. */
17633
- export const ACTION_ADD: "eui/flyoutManager/add";
17634
- /** Dispatched to remove a flyout from the manager (usually on close/unmount). */
17635
- export const ACTION_CLOSE: "eui/flyoutManager/close";
17636
- /** Dispatched to remove all flyouts from the manager. */
17637
- export const ACTION_CLOSE_ALL: "eui/flyoutManager/closeAll";
17638
- /** Dispatched to set which flyout is currently active within the session. */
17639
- export const ACTION_SET_ACTIVE: "eui/flyoutManager/setActive";
17640
- /** Dispatched when an active flyout's pixel width changes (for responsive layout). */
17641
- export const ACTION_SET_WIDTH: "eui/flyoutManager/setWidth";
17642
- /** Dispatched to switch layout mode between `side-by-side` and `stacked`. */
17643
- export const ACTION_SET_LAYOUT_MODE: "eui/flyoutManager/setLayoutMode";
17644
- /** Dispatched to update a flyout's activity stage (e.g., opening -> active). */
17645
- export const ACTION_SET_ACTIVITY_STAGE: "eui/flyoutManager/setActivityStage";
17646
- /** Dispatched to go back one session (remove current session). */
17647
- export const ACTION_GO_BACK: "eui/flyoutManager/goBack";
17648
- /** Dispatched to navigate to a specific flyout (remove all sessions after it). */
17649
- export const ACTION_GO_TO_FLYOUT: "eui/flyoutManager/goToFlyout";
17650
- /** Dispatched to set push padding offset for a side. */
17651
- export const ACTION_SET_PUSH_PADDING: "eui/flyoutManager/setPushPadding";
17652
- /** Dispatched to set the container element for container-relative flyouts. */
17653
- export const ACTION_SET_CONTAINER_ELEMENT: "eui/flyoutManager/setContainerElement";
17654
- /** Dispatched to set the reference width used for layout and resize clamping. */
17655
- export const ACTION_SET_REFERENCE_WIDTH: "eui/flyoutManager/setReferenceWidth";
17656
- export const ACTION_ADD_UNMANAGED_FLYOUT: "eui/flyoutManager/addUnmanagedFlyout";
17657
- export const ACTION_CLOSE_UNMANAGED_FLYOUT: "eui/flyoutManager/closeUnmanagedFlyout";
17658
- /**
17659
- * Add a flyout to manager state. The manager will create or update
17660
- * the current session depending on the `level` provided.
17661
- */
17662
- export interface AddFlyoutAction extends BaseAction {
17663
- type: typeof ACTION_ADD;
17664
- flyoutId: string;
17665
- title: string;
17666
- level: EuiFlyoutLevel;
17667
- size?: string;
17668
- historyKey?: symbol;
17669
- iconType?: IconType;
17670
- minWidth?: number;
17671
- }
17672
- /** Remove a flyout from manager state. Also updates the active session. */
17673
- export interface CloseFlyoutAction extends BaseAction {
17674
- type: typeof ACTION_CLOSE;
17675
- flyoutId: string;
17676
- }
17677
- /** Remove all flyouts from manager state. */
17678
- export interface CloseAllFlyoutsAction extends BaseAction {
17679
- type: typeof ACTION_CLOSE_ALL;
17680
- }
17681
- /** Set the active flyout within the current session (or clear with `null`). */
17682
- export interface SetActiveFlyoutAction extends BaseAction {
17683
- type: typeof ACTION_SET_ACTIVE;
17684
- flyoutId: string | null;
17685
- }
17686
- /** Update a flyout's measured width in pixels. */
17687
- export interface SetWidthAction extends BaseAction {
17688
- type: typeof ACTION_SET_WIDTH;
17689
- flyoutId: string;
17690
- width: number;
17691
- }
17692
- /** Change how flyouts are arranged: `side-by-side` or `stacked`. */
17693
- export interface SetLayoutModeAction extends BaseAction {
17694
- type: typeof ACTION_SET_LAYOUT_MODE;
17695
- layoutMode: EuiFlyoutLayoutMode;
17696
- }
17697
- /** Set a specific flyout's activity stage. */
17698
- export interface SetActivityStageAction extends BaseAction {
17699
- type: typeof ACTION_SET_ACTIVITY_STAGE;
17700
- flyoutId: string;
17701
- activityStage: EuiFlyoutActivityStage;
17702
- }
17703
- /** Go back one session (remove current session from stack). */
17704
- export interface GoBackAction extends BaseAction {
17705
- type: typeof ACTION_GO_BACK;
17706
- }
17707
- /** Navigate to a specific flyout (remove all sessions after it, or pop to child in history). */
17708
- export interface GoToFlyoutAction extends BaseAction {
17709
- type: typeof ACTION_GO_TO_FLYOUT;
17710
- flyoutId: string;
17711
- /** When 'child', find flyout in current session's childHistory and pop to it. When 'main' or omitted, find session by mainFlyoutId. */
17712
- level?: EuiFlyoutLevel;
17713
- }
17714
- /** Set push padding offset for a specific side. */
17715
- export interface SetPushPaddingAction extends BaseAction {
17716
- type: typeof ACTION_SET_PUSH_PADDING;
17717
- side: 'left' | 'right';
17718
- width: number;
17719
- }
17720
- export interface AddUnmanagedFlyoutAction extends BaseAction {
17721
- type: typeof ACTION_ADD_UNMANAGED_FLYOUT;
17722
- flyoutId: string;
17723
- }
17724
- export interface CloseUnmanagedFlyoutAction extends BaseAction {
17725
- type: typeof ACTION_CLOSE_UNMANAGED_FLYOUT;
17726
- flyoutId: string;
17727
- }
17728
- /** Set the container element for container-relative positioning. */
17729
- export interface SetContainerElementAction extends BaseAction {
17730
- type: typeof ACTION_SET_CONTAINER_ELEMENT;
17731
- element: HTMLElement | null;
17732
- }
17733
- /** Set the reference width for layout and resize clamping. */
17734
- export interface SetReferenceWidthAction extends BaseAction {
17735
- type: typeof ACTION_SET_REFERENCE_WIDTH;
17736
- width: number;
17737
- }
17738
- /** Union of all flyout manager actions. */
17739
- export type Action = AddFlyoutAction | CloseFlyoutAction | CloseAllFlyoutsAction | SetActiveFlyoutAction | SetWidthAction | SetLayoutModeAction | SetActivityStageAction | GoBackAction | GoToFlyoutAction | SetPushPaddingAction | AddUnmanagedFlyoutAction | CloseUnmanagedFlyoutAction | SetContainerElementAction | SetReferenceWidthAction;
17740
- /**
17741
- * Register a flyout with the manager.
17742
- * - `title` is used for the flyout menu.
17743
- * - `level` determines whether the flyout is `main` or `child`.
17744
- * - Optional `size` is the named EUI size (e.g. `s`, `m`, `l`).
17745
- * - Optional `historyKey` (Symbol) scopes history; only flyouts with the same reference share Back/history. Omit for a unique group per session.
17746
- * - Optional `iconType` is shown next to the session title in the history menu.
17747
- */
17748
- export const addFlyout: (flyoutId: string, title: string, level?: EuiFlyoutLevel, size?: string, historyKey?: symbol, iconType?: IconType, minWidth?: number) => AddFlyoutAction;
17749
- /** Unregister a flyout and update the session accordingly. */
17750
- export const closeFlyout: (flyoutId: string) => CloseFlyoutAction;
17751
- /** Unregister all flyouts. */
17752
- export const closeAllFlyouts: () => CloseAllFlyoutsAction;
17753
- /** Set or clear the active flyout for the current session. */
17754
- export const setActiveFlyout: (flyoutId: string | null) => SetActiveFlyoutAction;
17755
- /** Record a flyout's current width in pixels. */
17756
- export const setFlyoutWidth: (flyoutId: string, width: number) => SetWidthAction;
17757
- /** Switch layout mode between `side-by-side` and `stacked`. */
17758
- export const setLayoutMode: (layoutMode: EuiFlyoutLayoutMode) => SetLayoutModeAction;
17759
- /** Update a flyout's activity stage. */
17760
- export const setActivityStage: (flyoutId: string, activityStage: EuiFlyoutActivityStage) => SetActivityStageAction;
17761
- /** Go back one session (remove current session from stack). */
17762
- export const goBack: () => GoBackAction;
17763
- /** Navigate to a specific flyout (remove all sessions after it, or pop to child in history when level === 'child'). */
17764
- export const goToFlyout: (flyoutId: string, level?: EuiFlyoutLevel) => GoToFlyoutAction;
17765
- /** Set push padding offset for a specific side. */
17766
- export const setPushPadding: (side: "left" | "right", width: number) => SetPushPaddingAction;
17767
- /** Register an unmanaged flyout for z-index positioning purposes */
17768
- export const addUnmanagedFlyout: (flyoutId: string) => AddUnmanagedFlyoutAction;
17769
- /** Unregister an unmanaged flyout */
17770
- export const closeUnmanagedFlyout: (flyoutId: string) => CloseUnmanagedFlyoutAction;
17771
- /** Set the container element for container-relative flyout positioning. */
17772
- export const setContainerElement: (element: HTMLElement | null) => SetContainerElementAction;
17773
- /** Set the reference width for layout and resize clamping. */
17774
- export const setReferenceWidth: (width: number) => SetReferenceWidthAction;
17775
- export {};
17776
-
17777
- }
17778
- declare module '@elastic/eui/src/components/flyout/manager/reducer' {
17779
- import { Action } from '@elastic/eui/src/components/flyout/manager/actions';
17780
- import { EuiFlyoutManagerState } from '@elastic/eui/src/components/flyout/manager/types';
17781
- /**
17782
- * Default flyout manager state used to initialize the reducer.
17783
- */
17784
- export const initialState: EuiFlyoutManagerState;
17785
- /**
17786
- * Reducer handling all flyout manager actions and state transitions.
17787
- */
17788
- export function flyoutManagerReducer(state: EuiFlyoutManagerState | undefined, action: Action): EuiFlyoutManagerState;
17789
-
17790
- }
17791
- declare module '@elastic/eui/src/components/flyout/manager/store' {
17792
- import type { IconType } from '@elastic/eui/src/components/icon';
17793
- import type { EuiFlyoutLevel, EuiFlyoutManagerState, FlyoutSession } from '@elastic/eui/src/components/flyout/manager/types';
17794
- import type { Action } from '@elastic/eui/src/components/flyout/manager/actions';
17795
- type Listener = () => void;
17796
- /**
17797
- * Events emitted by the flyout manager store for external consumers.
17798
- */
17799
- export type FlyoutManagerEvent = {
17800
- type: 'CLOSE_SESSION';
17801
- session: FlyoutSession;
17802
- };
17803
- type EventListener = (event: FlyoutManagerEvent) => void;
17804
- export interface FlyoutManagerStore {
17805
- getState: () => EuiFlyoutManagerState;
17806
- subscribe: (listener: Listener) => () => void;
17807
- subscribeToEvents: (listener: EventListener) => () => void;
17808
- dispatch: (action: Action) => void;
17809
- addFlyout: (flyoutId: string, title: string, level?: EuiFlyoutLevel, size?: string, historyKey?: symbol, iconType?: IconType, minWidth?: number) => void;
17810
- closeFlyout: (flyoutId: string) => void;
17811
- closeAllFlyouts: () => void;
17812
- setActiveFlyout: (flyoutId: string | null) => void;
17813
- setFlyoutWidth: (flyoutId: string, width: number) => void;
17814
- setPushPadding: (side: 'left' | 'right', width: number) => void;
17815
- setContainerElement: (element: HTMLElement | null) => void;
17816
- goBack: () => void;
17817
- goToFlyout: (flyoutId: string, level?: EuiFlyoutLevel) => void;
17818
- addUnmanagedFlyout: (flyoutId: string) => void;
17819
- closeUnmanagedFlyout: (flyoutId: string) => void;
17820
- historyItems: Array<{
17821
- title: string;
17822
- iconType?: IconType;
17823
- onClick: () => void;
17824
- }>;
17825
- }
17826
- /**
17827
- * Returns a singleton store instance shared across all React roots within the same JS context.
17828
- * Uses module-level singleton to ensure deduplication even if modules are loaded twice.
17829
- */
17830
- export function getFlyoutManagerStore(): FlyoutManagerStore;
17831
- /**
17832
- * For testing purposes - allows resetting the store
17833
- */
17834
- export function _resetFlyoutManagerStore(): void;
17835
- export {};
17836
-
17837
- }
17838
- declare module '@elastic/eui/src/components/flyout/manager/selectors' {
17839
- export const useSession: (flyoutId?: string | null) => import ("@elastic/eui/src/components/flyout/manager/types").FlyoutSession | null;
17840
- /** True when any managed flyout session is currently active. */
17841
- export const useHasActiveSession: () => boolean;
17842
- /** True if the given `flyoutId` is the main or child flyout in the latest session. */
17843
- export const useIsFlyoutActive: (flyoutId: string) => boolean;
17844
- export const useFlyout: (flyoutId?: string | null) => import ("@elastic/eui/src/components/flyout/manager/types").EuiManagedFlyoutState | null;
17845
- export const useIsFlyoutRegistered: (flyoutId?: string | null) => boolean;
17846
- /** The most recent flyout session or `null` if none. */
17847
- export const useCurrentSession: () => import ("@elastic/eui/src/components/flyout/manager/types").FlyoutSession | null;
17848
- /** The registered state of the current session's main flyout, if present. */
17849
- export const useCurrentMainFlyout: () => import ("@elastic/eui/src/components/flyout/manager/types").EuiManagedFlyoutState | null;
17850
- /** The registered state of the current session's child flyout, if present. */
17851
- export const useCurrentChildFlyout: () => import ("@elastic/eui/src/components/flyout/manager/types").EuiManagedFlyoutState | null;
17852
- /** The measured width (px) of the specified flyout, or `null` if unknown. */
17853
- export const useFlyoutWidth: (flyoutId?: string | null) => number | undefined;
17854
- /** The configured minWidth (px) of the specified flyout, or `undefined` if not set. */
17855
- export const useFlyoutMinWidth: (flyoutId?: string | null) => number | undefined;
17856
- /** The configured size of the parent (main) flyout for a given child flyout ID. */
17857
- export const useParentFlyoutSize: (childFlyoutId: string) => string | undefined;
17858
- /** True if the provided `flyoutId` is the main flyout and it currently has a child. */
17859
- export const useHasChildFlyout: (flyoutId: string) => boolean;
17860
- /** Get the current push padding offsets from manager state. */
17861
- export const usePushPaddingOffsets: () => import ("@elastic/eui/src/components/flyout/manager/types").PushPaddingOffsets;
17862
- /** True if there's any active push padding (left or right side). */
17863
- export const useHasPushPadding: () => boolean;
17864
- /** Get the ref for the current flyout z-index to be used */
17865
- export const useCurrentFlyoutZIndexRef: () => import("react").MutableRefObject<number>;
17866
-
17867
- }
17868
- declare module '@elastic/eui/src/components/flyout/manager/context' {
17869
- import React from 'react';
17870
- /**
17871
- * React provider that marks descendants as being rendered inside
17872
- * an EUI managed flyout. Used by hooks/components to alter behavior
17873
- * (e.g., focus handling) when inside a managed flyout tree.
17874
- */
17875
- export const EuiFlyoutIsManagedProvider: ({ isManaged, children, }: {
17876
- isManaged: boolean;
17877
- children: React.ReactNode;
17878
- }) => React.JSX.Element;
17879
- /**
17880
- * Hook that returns `true` when called within an EUI managed flyout subtree.
17881
- */
17882
- export const useIsInManagedFlyout: () => boolean;
17883
-
17884
- }
17885
- declare module '@elastic/eui/src/components/flyout/manager/hooks' {
17886
- export { useIsFlyoutActive, useHasActiveSession, useCurrentSession, useCurrentMainFlyout, useCurrentChildFlyout, useFlyoutWidth, useParentFlyoutSize, useHasChildFlyout, usePushPaddingOffsets, useHasPushPadding, } from '@elastic/eui/src/components/flyout/manager/selectors';
17887
- export { useFlyoutLayoutMode } from '@elastic/eui/src/components/flyout/manager/layout_mode';
17888
- export { useIsInManagedFlyout } from '@elastic/eui/src/components/flyout/manager/context';
17889
- export type { EuiFlyoutActivityStage } from '@elastic/eui/src/components/flyout/manager/types';
17890
- /** Access the flyout manager context (state and actions). */
17891
- export const useFlyoutManager: () => import ("@elastic/eui/src/components/flyout/manager/types").FlyoutManagerApi | null;
17892
- /**
17893
- * Stable flyout ID utility. Uses the passed `id` if provided and not already registered,
17894
- * otherwise generates a deterministic ID for the component's lifetime.
17895
- * The ID remains stable across re-renders to maintain consistency in effects and other hooks.
17896
- */
17897
- export const useFlyoutId: (flyoutId?: string) => string;
17898
-
17899
- }
17900
- declare module '@elastic/eui/src/components/flyout/manager/layout_mode' {
17901
- import { EuiFlyoutLayoutMode } from '@elastic/eui/src/components/flyout/manager/types';
17902
- /**
17903
- * Hook to handle responsive layout mode for managed flyouts.
17904
- * Decides whether to place flyouts side-by-side or stacked based on
17905
- * the reference width (the reference container's width, defaulting to
17906
- * document.body when not set) and flyout widths/sizes.
17907
- */
17908
- export const useApplyFlyoutLayoutMode: () => void;
17909
- /**
17910
- * Convert a flyout `size` value to a pixel width.
17911
- * When `referenceWidth` is provided, named sizes are calculated as a percentage
17912
- * of that width (container-relative). Otherwise falls back to `window.innerWidth`.
17913
- */
17914
- export const getWidthFromSize: (size: string | number, referenceWidth?: number) => number;
17915
- /** Current layout mode for managed flyouts (`side-by-side` or `stacked`). */
17916
- export const useFlyoutLayoutMode: () => EuiFlyoutLayoutMode;
17917
-
17918
- }
17919
- declare module '@elastic/eui/src/components/flyout/manager/provider' {
17920
- import React from 'react';
17921
- import { FlyoutManagerApi } from '@elastic/eui/src/components/flyout/manager/types';
17922
- /**
17923
- * React context that exposes the Flyout Manager API (state + actions).
17924
- */
17925
- export const EuiFlyoutManagerContext: React.Context<FlyoutManagerApi | null>;
17926
- /**
17927
- * Provides the Flyout Manager API via context and runs layout-mode logic.
17928
- */
17929
- export const EuiFlyoutManager: React.FC<{
17930
- children: React.ReactNode;
17931
- }>;
17932
- /** Hook to access the Flyout Manager API from context. */
17933
- export const useFlyoutManager: () => FlyoutManagerApi | null;
17934
-
17935
17534
  }
17936
17535
  declare module '@elastic/eui/src/components/list_group/list_group_item_extra_action.styles' {
17937
17536
  import { UseEuiTheme } from '@elastic/eui/src/services';
@@ -18310,6 +17909,7 @@ declare module '@elastic/eui/src/components/flyout/flyout_menu.styles' {
18310
17909
  euiFlyoutMenu__spacer: import("@emotion/react").SerializedStyles;
18311
17910
  euiFlyoutMenu__actions: import("@emotion/react").SerializedStyles;
18312
17911
  euiFlyoutMenu__hiddenTitle: import("@emotion/react").SerializedStyles;
17912
+ euiFlyoutMenu__paginationCounter: import("@emotion/react").SerializedStyles;
18313
17913
  };
18314
17914
 
18315
17915
  }
@@ -18324,6 +17924,25 @@ declare module '@elastic/eui/src/components/flyout/flyout_menu_context' {
18324
17924
  }
18325
17925
  declare module '@elastic/eui/src/components/flyout/types' {
18326
17926
  export type EuiFlyoutCloseEvent = MouseEvent | TouchEvent | KeyboardEvent;
17927
+ /**
17928
+ * Describes the source that triggered a flyout close. Passed to `onClose` via
17929
+ * the optional `meta` argument so consumers can react differently per source.
17930
+ *
17931
+ * - `close-button`: the default/X close button (base flyout and managed menu)
17932
+ * - `escape`: the Escape key
17933
+ * - `outside-click`: a click on the overlay mask or outside the flyout
17934
+ * - `navigation-back`: a managed flyout closed because the user pressed Back
17935
+ * - `navigation-cascade`: a managed flyout closed because a parent navigated
17936
+ * away or the main flyout closed (e.g. a tab switch)
17937
+ */
17938
+ export type EuiFlyoutCloseReason = 'close-button' | 'escape' | 'outside-click' | 'navigation-back' | 'navigation-cascade';
17939
+ /**
17940
+ * Optional metadata passed as the second argument to a flyout's `onClose`
17941
+ * callback, describing why the flyout closed.
17942
+ */
17943
+ export interface EuiFlyoutCloseMeta {
17944
+ reason: EuiFlyoutCloseReason;
17945
+ }
18327
17946
 
18328
17947
  }
18329
17948
  declare module '@elastic/eui/src/components/flyout/flyout_menu' {
@@ -18349,6 +17968,27 @@ declare module '@elastic/eui/src/components/flyout/flyout_menu' {
18349
17968
  */
18350
17969
  onClick: () => void;
18351
17970
  }
17971
+ /**
17972
+ * Pagination configuration for the flyout menu
17973
+ */
17974
+ export interface EuiFlyoutMenuPagination {
17975
+ /**
17976
+ * Zero-based index of the currently displayed item
17977
+ */
17978
+ currentIndex: number;
17979
+ /**
17980
+ * Total number of items
17981
+ */
17982
+ total: number;
17983
+ /**
17984
+ * Called when the user clicks the Previous button
17985
+ */
17986
+ onPrevious: () => void;
17987
+ /**
17988
+ * Called when the user clicks the Next button
17989
+ */
17990
+ onNext: () => void;
17991
+ }
18352
17992
  /**
18353
17993
  * Custom action item for the flyout menu component
18354
17994
  */
@@ -18420,6 +18060,11 @@ declare module '@elastic/eui/src/components/flyout/flyout_menu' {
18420
18060
  * List of custom action items for the menu component
18421
18061
  */
18422
18062
  customActions?: EuiFlyoutMenuCustomAction[];
18063
+ /**
18064
+ * Enables Prev/Next navigation controls and a position counter in the menu bar.
18065
+ * Pagination replaces back/history navigation in the left menu slot.
18066
+ */
18067
+ pagination?: EuiFlyoutMenuPagination;
18423
18068
  };
18424
18069
  /**
18425
18070
  * The component for the top menu bar inside a flyout. Since this is a private
@@ -18433,6 +18078,482 @@ declare module '@elastic/eui/src/components/flyout/flyout_menu' {
18433
18078
  export const EuiFlyoutMenu: FunctionComponent<EuiFlyoutMenuProps>;
18434
18079
  export {};
18435
18080
 
18081
+ }
18082
+ declare module '@elastic/eui/src/components/flyout/manager/const' {
18083
+ /**
18084
+ * Allowed values for `session` prop to control the way the session is managed for a flyout.
18085
+ */
18086
+ export const SESSION_START = "start";
18087
+ export const SESSION_INHERIT = "inherit";
18088
+ export const SESSION_NEVER = "never";
18089
+ /**
18090
+ * Data attribute applied to a managed flyout element to help identify it as a managed flyout.
18091
+ */
18092
+ export const PROPERTY_FLYOUT = "data-managed-flyout";
18093
+ /**
18094
+ * Data attribute indicating whether the flyout is the `main` or `child` flyout.
18095
+ */
18096
+ export const PROPERTY_LEVEL = "data-managed-flyout-level";
18097
+ /**
18098
+ * Data attribute representing how multiple flyouts are laid out
18099
+ * (`side-by-side` or `stacked`).
18100
+ */
18101
+ export const PROPERTY_LAYOUT_MODE = "data-managed-flyout-layout-mode";
18102
+ /** Stacked layout mode where child flyouts overlay on top of the main flyout. */
18103
+ export const LAYOUT_MODE_STACKED = "stacked";
18104
+ /** Side-by-side layout mode where child flyouts render adjacent to the main flyout. */
18105
+ export const LAYOUT_MODE_SIDE_BY_SIDE = "side-by-side";
18106
+ /** The primary (parent) flyout in a session. */
18107
+ export const LEVEL_MAIN = "main";
18108
+ /** The secondary (child) flyout spawned by the main flyout. */
18109
+ export const LEVEL_CHILD = "child";
18110
+ /** Flyout is mounting and playing its opening animation. */
18111
+ export const STAGE_OPENING = "opening";
18112
+ /** Flyout is fully visible and interactive. */
18113
+ export const STAGE_ACTIVE = "active";
18114
+ /** Flyout is unmounted or not currently visible/interactable. */
18115
+ export const STAGE_INACTIVE = "inactive";
18116
+ /** Main flyout is transitioning behind an active session flyout. */
18117
+ export const STAGE_BACKGROUNDING = "backgrounding";
18118
+ /** Main flyout is backgrounded behind an active session flyout. */
18119
+ export const STAGE_BACKGROUNDED = "backgrounded";
18120
+ /** Flyout is returning to the foreground from a backgrounded state. */
18121
+ export const STAGE_RETURNING = "returning";
18122
+ /** Flyout is playing its closing animation. */
18123
+ export const STAGE_CLOSING = "closing";
18124
+
18125
+ }
18126
+ declare module '@elastic/eui/src/components/flyout/manager/types' {
18127
+ import type { IconType } from '@elastic/eui/src/components/icon';
18128
+ import type { EuiFlyoutMenuPagination } from '@elastic/eui/src/components/flyout/flyout_menu';
18129
+ import type { Action } from '@elastic/eui/src/components/flyout/manager/actions';
18130
+ 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';
18131
+ export type EuiFlyoutLayoutMode = typeof LAYOUT_MODE_STACKED | typeof LAYOUT_MODE_SIDE_BY_SIDE;
18132
+ export type EuiFlyoutLevel = typeof LEVEL_MAIN | typeof LEVEL_CHILD;
18133
+ export type EuiFlyoutActivityStage = typeof STAGE_OPENING | typeof STAGE_ACTIVE | typeof STAGE_INACTIVE | typeof STAGE_BACKGROUNDING | typeof STAGE_BACKGROUNDED | typeof STAGE_RETURNING | typeof STAGE_CLOSING;
18134
+ export interface EuiManagedFlyoutState {
18135
+ flyoutId: string;
18136
+ level: EuiFlyoutLevel;
18137
+ width?: number;
18138
+ size?: string;
18139
+ minWidth?: number;
18140
+ activityStage?: EuiFlyoutActivityStage;
18141
+ pagination?: EuiFlyoutMenuPagination;
18142
+ }
18143
+ /** Entry for a child flyout in session history. */
18144
+ export interface ChildHistoryEntry {
18145
+ flyoutId: string;
18146
+ title: string;
18147
+ iconType?: IconType;
18148
+ }
18149
+ export interface FlyoutSession {
18150
+ /** ID of the main flyout for this session */
18151
+ mainFlyoutId: string;
18152
+ /** ID of the child flyout for this session */
18153
+ childFlyoutId: string | null;
18154
+ /** Title of the main flyout in this session */
18155
+ title: string;
18156
+ /** Optional icon for this session when shown in history popover */
18157
+ iconType?: IconType;
18158
+ /** z-index value to be used by the flyout session */
18159
+ zIndex: number;
18160
+ /** Title of the current child flyout. */
18161
+ childTitle?: string;
18162
+ /** Icon of the current child flyout. */
18163
+ childIconType?: IconType;
18164
+ /** Stack of child flyouts we navigated away from. */
18165
+ childHistory: ChildHistoryEntry[];
18166
+ /** Key that scopes this session's history; same Symbol reference = same history group. Always set (from action or Symbol()). */
18167
+ historyKey: symbol;
18168
+ }
18169
+ export interface PushPaddingOffsets {
18170
+ /** Push padding applied to the left side (in pixels) */
18171
+ left: number;
18172
+ /** Push padding applied to the right side (in pixels) */
18173
+ right: number;
18174
+ }
18175
+ export interface EuiFlyoutManagerState {
18176
+ sessions: FlyoutSession[];
18177
+ flyouts: EuiManagedFlyoutState[];
18178
+ layoutMode: EuiFlyoutLayoutMode;
18179
+ /** Active push padding offsets (updated by active push flyouts) */
18180
+ pushPadding?: PushPaddingOffsets;
18181
+ currentZIndex: number;
18182
+ unmanagedFlyouts: string[];
18183
+ /** The container element that flyouts are positioned relative to (if any). */
18184
+ containerElement?: HTMLElement | null;
18185
+ /**
18186
+ * Reference width used for layout and resize clamping (container or viewport).
18187
+ * Set by the layout mode hook so flyouts use the same value for consistent clamping.
18188
+ */
18189
+ referenceWidth?: number;
18190
+ }
18191
+ /**
18192
+ * Public API surface provided through React context.
18193
+ * Kept intentionally decoupled from action types to avoid module cycles.
18194
+ */
18195
+ export interface FlyoutManagerApi {
18196
+ state: EuiFlyoutManagerState;
18197
+ dispatch: (action: Action) => void;
18198
+ addFlyout: (flyoutId: string, title: string, level?: EuiFlyoutLevel, size?: string, historyKey?: symbol, iconType?: IconType, minWidth?: number) => void;
18199
+ closeFlyout: (flyoutId: string) => void;
18200
+ closeAllFlyouts: () => void;
18201
+ setActiveFlyout: (flyoutId: string | null) => void;
18202
+ setFlyoutWidth: (flyoutId: string, width: number) => void;
18203
+ setPagination: (flyoutId: string, pagination: EuiFlyoutMenuPagination | undefined) => void;
18204
+ setPushPadding: (side: 'left' | 'right', width: number) => void;
18205
+ setContainerElement: (element: HTMLElement | null) => void;
18206
+ goBack: () => void;
18207
+ goToFlyout: (flyoutId: string, level?: EuiFlyoutLevel) => void;
18208
+ addUnmanagedFlyout: (flyoutId: string) => void;
18209
+ closeUnmanagedFlyout: (flyoutId: string) => void;
18210
+ historyItems: Array<{
18211
+ title: string;
18212
+ iconType?: IconType;
18213
+ onClick: () => void;
18214
+ }>;
18215
+ }
18216
+
18217
+ }
18218
+ declare module '@elastic/eui/src/components/flyout/manager/actions' {
18219
+ import type { IconType } from '@elastic/eui/src/components/icon';
18220
+ import type { EuiFlyoutMenuPagination } from '@elastic/eui/src/components/flyout/flyout_menu';
18221
+ import { EuiFlyoutActivityStage, EuiFlyoutLevel, EuiFlyoutLayoutMode } from '@elastic/eui/src/components/flyout/manager/types'; const PREFIX: "eui/flyoutManager";
18222
+ interface BaseAction {
18223
+ type: `${typeof PREFIX}/${string}`;
18224
+ }
18225
+ /** Dispatched when a flyout registers itself with the manager. */
18226
+ export const ACTION_ADD: "eui/flyoutManager/add";
18227
+ /** Dispatched to remove a flyout from the manager (usually on close/unmount). */
18228
+ export const ACTION_CLOSE: "eui/flyoutManager/close";
18229
+ /** Dispatched to remove all flyouts from the manager. */
18230
+ export const ACTION_CLOSE_ALL: "eui/flyoutManager/closeAll";
18231
+ /** Dispatched to set which flyout is currently active within the session. */
18232
+ export const ACTION_SET_ACTIVE: "eui/flyoutManager/setActive";
18233
+ /** Dispatched when an active flyout's pixel width changes (for responsive layout). */
18234
+ export const ACTION_SET_WIDTH: "eui/flyoutManager/setWidth";
18235
+ /** Dispatched to set a flyout's menu pagination. */
18236
+ export const ACTION_SET_PAGINATION: "eui/flyoutManager/setPagination";
18237
+ /** Dispatched to switch layout mode between `side-by-side` and `stacked`. */
18238
+ export const ACTION_SET_LAYOUT_MODE: "eui/flyoutManager/setLayoutMode";
18239
+ /** Dispatched to update a flyout's activity stage (e.g., opening -> active). */
18240
+ export const ACTION_SET_ACTIVITY_STAGE: "eui/flyoutManager/setActivityStage";
18241
+ /** Dispatched to go back one session (remove current session). */
18242
+ export const ACTION_GO_BACK: "eui/flyoutManager/goBack";
18243
+ /** Dispatched to navigate to a specific flyout (remove all sessions after it). */
18244
+ export const ACTION_GO_TO_FLYOUT: "eui/flyoutManager/goToFlyout";
18245
+ /** Dispatched to set push padding offset for a side. */
18246
+ export const ACTION_SET_PUSH_PADDING: "eui/flyoutManager/setPushPadding";
18247
+ /** Dispatched to set the container element for container-relative flyouts. */
18248
+ export const ACTION_SET_CONTAINER_ELEMENT: "eui/flyoutManager/setContainerElement";
18249
+ /** Dispatched to set the reference width used for layout and resize clamping. */
18250
+ export const ACTION_SET_REFERENCE_WIDTH: "eui/flyoutManager/setReferenceWidth";
18251
+ export const ACTION_ADD_UNMANAGED_FLYOUT: "eui/flyoutManager/addUnmanagedFlyout";
18252
+ export const ACTION_CLOSE_UNMANAGED_FLYOUT: "eui/flyoutManager/closeUnmanagedFlyout";
18253
+ /**
18254
+ * Add a flyout to manager state. The manager will create or update
18255
+ * the current session depending on the `level` provided.
18256
+ */
18257
+ export interface AddFlyoutAction extends BaseAction {
18258
+ type: typeof ACTION_ADD;
18259
+ flyoutId: string;
18260
+ title: string;
18261
+ level: EuiFlyoutLevel;
18262
+ size?: string;
18263
+ historyKey?: symbol;
18264
+ iconType?: IconType;
18265
+ minWidth?: number;
18266
+ }
18267
+ /** Remove a flyout from manager state. Also updates the active session. */
18268
+ export interface CloseFlyoutAction extends BaseAction {
18269
+ type: typeof ACTION_CLOSE;
18270
+ flyoutId: string;
18271
+ }
18272
+ /** Remove all flyouts from manager state. */
18273
+ export interface CloseAllFlyoutsAction extends BaseAction {
18274
+ type: typeof ACTION_CLOSE_ALL;
18275
+ }
18276
+ /** Set the active flyout within the current session (or clear with `null`). */
18277
+ export interface SetActiveFlyoutAction extends BaseAction {
18278
+ type: typeof ACTION_SET_ACTIVE;
18279
+ flyoutId: string | null;
18280
+ }
18281
+ /** Update a flyout's measured width in pixels. */
18282
+ export interface SetWidthAction extends BaseAction {
18283
+ type: typeof ACTION_SET_WIDTH;
18284
+ flyoutId: string;
18285
+ width: number;
18286
+ }
18287
+ /** Set the manager pagination value for a flyout. */
18288
+ export interface SetPaginationAction extends BaseAction {
18289
+ type: typeof ACTION_SET_PAGINATION;
18290
+ flyoutId: string;
18291
+ pagination: EuiFlyoutMenuPagination | undefined;
18292
+ }
18293
+ /** Change how flyouts are arranged: `side-by-side` or `stacked`. */
18294
+ export interface SetLayoutModeAction extends BaseAction {
18295
+ type: typeof ACTION_SET_LAYOUT_MODE;
18296
+ layoutMode: EuiFlyoutLayoutMode;
18297
+ }
18298
+ /** Set a specific flyout's activity stage. */
18299
+ export interface SetActivityStageAction extends BaseAction {
18300
+ type: typeof ACTION_SET_ACTIVITY_STAGE;
18301
+ flyoutId: string;
18302
+ activityStage: EuiFlyoutActivityStage;
18303
+ }
18304
+ /** Go back one session (remove current session from stack). */
18305
+ export interface GoBackAction extends BaseAction {
18306
+ type: typeof ACTION_GO_BACK;
18307
+ }
18308
+ /** Navigate to a specific flyout (remove all sessions after it, or pop to child in history). */
18309
+ export interface GoToFlyoutAction extends BaseAction {
18310
+ type: typeof ACTION_GO_TO_FLYOUT;
18311
+ flyoutId: string;
18312
+ /** When 'child', find flyout in current session's childHistory and pop to it. When 'main' or omitted, find session by mainFlyoutId. */
18313
+ level?: EuiFlyoutLevel;
18314
+ }
18315
+ /** Set push padding offset for a specific side. */
18316
+ export interface SetPushPaddingAction extends BaseAction {
18317
+ type: typeof ACTION_SET_PUSH_PADDING;
18318
+ side: 'left' | 'right';
18319
+ width: number;
18320
+ }
18321
+ export interface AddUnmanagedFlyoutAction extends BaseAction {
18322
+ type: typeof ACTION_ADD_UNMANAGED_FLYOUT;
18323
+ flyoutId: string;
18324
+ }
18325
+ export interface CloseUnmanagedFlyoutAction extends BaseAction {
18326
+ type: typeof ACTION_CLOSE_UNMANAGED_FLYOUT;
18327
+ flyoutId: string;
18328
+ }
18329
+ /** Set the container element for container-relative positioning. */
18330
+ export interface SetContainerElementAction extends BaseAction {
18331
+ type: typeof ACTION_SET_CONTAINER_ELEMENT;
18332
+ element: HTMLElement | null;
18333
+ }
18334
+ /** Set the reference width for layout and resize clamping. */
18335
+ export interface SetReferenceWidthAction extends BaseAction {
18336
+ type: typeof ACTION_SET_REFERENCE_WIDTH;
18337
+ width: number;
18338
+ }
18339
+ /** Union of all flyout manager actions. */
18340
+ export type Action = AddFlyoutAction | CloseFlyoutAction | CloseAllFlyoutsAction | SetActiveFlyoutAction | SetWidthAction | SetPaginationAction | SetLayoutModeAction | SetActivityStageAction | GoBackAction | GoToFlyoutAction | SetPushPaddingAction | AddUnmanagedFlyoutAction | CloseUnmanagedFlyoutAction | SetContainerElementAction | SetReferenceWidthAction;
18341
+ /**
18342
+ * Register a flyout with the manager.
18343
+ * - `title` is used for the flyout menu.
18344
+ * - `level` determines whether the flyout is `main` or `child`.
18345
+ * - Optional `size` is the named EUI size (e.g. `s`, `m`, `l`).
18346
+ * - Optional `historyKey` (Symbol) scopes history; only flyouts with the same reference share Back/history. Omit for a unique group per session.
18347
+ * - Optional `iconType` is shown next to the session title in the history menu.
18348
+ */
18349
+ export const addFlyout: (flyoutId: string, title: string, level?: EuiFlyoutLevel, size?: string, historyKey?: symbol, iconType?: IconType, minWidth?: number) => AddFlyoutAction;
18350
+ /** Unregister a flyout and update the session accordingly. */
18351
+ export const closeFlyout: (flyoutId: string) => CloseFlyoutAction;
18352
+ /** Unregister all flyouts. */
18353
+ export const closeAllFlyouts: () => CloseAllFlyoutsAction;
18354
+ /** Set or clear the active flyout for the current session. */
18355
+ export const setActiveFlyout: (flyoutId: string | null) => SetActiveFlyoutAction;
18356
+ /** Record a flyout's current width in pixels. */
18357
+ export const setFlyoutWidth: (flyoutId: string, width: number) => SetWidthAction;
18358
+ /**
18359
+ * Set (or clear) the menu pagination config for a flyout. When set, this
18360
+ * overrides any pagination passed via `flyoutMenuProps.pagination` on the
18361
+ * flyout itself, allowing reactive updates from a different React root.
18362
+ *
18363
+ * Only works for managed flyouts. Unmanaged flyouts (session={false}) must use
18364
+ * the `flyoutMenuProps.pagination` prop instead.
18365
+ */
18366
+ export const setPagination: (flyoutId: string, pagination: EuiFlyoutMenuPagination | undefined) => SetPaginationAction;
18367
+ /** Switch layout mode between `side-by-side` and `stacked`. */
18368
+ export const setLayoutMode: (layoutMode: EuiFlyoutLayoutMode) => SetLayoutModeAction;
18369
+ /** Update a flyout's activity stage. */
18370
+ export const setActivityStage: (flyoutId: string, activityStage: EuiFlyoutActivityStage) => SetActivityStageAction;
18371
+ /** Go back one session (remove current session from stack). */
18372
+ export const goBack: () => GoBackAction;
18373
+ /** Navigate to a specific flyout (remove all sessions after it, or pop to child in history when level === 'child'). */
18374
+ export const goToFlyout: (flyoutId: string, level?: EuiFlyoutLevel) => GoToFlyoutAction;
18375
+ /** Set push padding offset for a specific side. */
18376
+ export const setPushPadding: (side: "left" | "right", width: number) => SetPushPaddingAction;
18377
+ /** Register an unmanaged flyout for z-index positioning purposes */
18378
+ export const addUnmanagedFlyout: (flyoutId: string) => AddUnmanagedFlyoutAction;
18379
+ /** Unregister an unmanaged flyout */
18380
+ export const closeUnmanagedFlyout: (flyoutId: string) => CloseUnmanagedFlyoutAction;
18381
+ /** Set the container element for container-relative flyout positioning. */
18382
+ export const setContainerElement: (element: HTMLElement | null) => SetContainerElementAction;
18383
+ /** Set the reference width for layout and resize clamping. */
18384
+ export const setReferenceWidth: (width: number) => SetReferenceWidthAction;
18385
+ export {};
18386
+
18387
+ }
18388
+ declare module '@elastic/eui/src/components/flyout/manager/reducer' {
18389
+ import { Action } from '@elastic/eui/src/components/flyout/manager/actions';
18390
+ import { EuiFlyoutManagerState } from '@elastic/eui/src/components/flyout/manager/types';
18391
+ /**
18392
+ * Default flyout manager state used to initialize the reducer.
18393
+ */
18394
+ export const initialState: EuiFlyoutManagerState;
18395
+ /**
18396
+ * Reducer handling all flyout manager actions and state transitions.
18397
+ */
18398
+ export function flyoutManagerReducer(state: EuiFlyoutManagerState | undefined, action: Action): EuiFlyoutManagerState;
18399
+
18400
+ }
18401
+ declare module '@elastic/eui/src/components/flyout/manager/store' {
18402
+ import type { IconType } from '@elastic/eui/src/components/icon';
18403
+ import type { EuiFlyoutMenuPagination } from '@elastic/eui/src/components/flyout/flyout_menu';
18404
+ import type { EuiFlyoutCloseMeta } from '@elastic/eui/src/components/flyout/types';
18405
+ import type { EuiFlyoutLevel, EuiFlyoutManagerState, FlyoutSession } from '@elastic/eui/src/components/flyout/manager/types';
18406
+ import type { Action } from '@elastic/eui/src/components/flyout/manager/actions';
18407
+ type Listener = () => void;
18408
+ /**
18409
+ * Events emitted by the flyout manager store for external consumers.
18410
+ */
18411
+ export type FlyoutManagerEvent = {
18412
+ type: 'CLOSE_SESSION';
18413
+ session: FlyoutSession;
18414
+ };
18415
+ type EventListener = (event: FlyoutManagerEvent) => void;
18416
+ export interface FlyoutManagerStore {
18417
+ getState: () => EuiFlyoutManagerState;
18418
+ subscribe: (listener: Listener) => () => void;
18419
+ subscribeToEvents: (listener: EventListener) => () => void;
18420
+ dispatch: (action: Action) => void;
18421
+ addFlyout: (flyoutId: string, title: string, level?: EuiFlyoutLevel, size?: string, historyKey?: symbol, iconType?: IconType, minWidth?: number) => void;
18422
+ closeFlyout: (flyoutId: string) => void;
18423
+ closeAllFlyouts: () => void;
18424
+ setActiveFlyout: (flyoutId: string | null) => void;
18425
+ setFlyoutWidth: (flyoutId: string, width: number) => void;
18426
+ setPagination: (flyoutId: string, pagination: EuiFlyoutMenuPagination | undefined) => void;
18427
+ setPushPadding: (side: 'left' | 'right', width: number) => void;
18428
+ setContainerElement: (element: HTMLElement | null) => void;
18429
+ goBack: () => void;
18430
+ goToFlyout: (flyoutId: string, level?: EuiFlyoutLevel) => void;
18431
+ addUnmanagedFlyout: (flyoutId: string) => void;
18432
+ closeUnmanagedFlyout: (flyoutId: string) => void;
18433
+ /**
18434
+ * Reads and clears any close `meta` previously stashed for `flyoutId` (e.g.
18435
+ * `goBack` stamps the flyouts it removes with `navigation-back`). Used
18436
+ * internally by managed flyouts to report the correct close reason; defaults
18437
+ * to `navigation-cascade` when nothing was stashed.
18438
+ */
18439
+ consumeCloseMeta: (flyoutId: string) => EuiFlyoutCloseMeta | undefined;
18440
+ historyItems: Array<{
18441
+ title: string;
18442
+ iconType?: IconType;
18443
+ onClick: () => void;
18444
+ }>;
18445
+ }
18446
+ /**
18447
+ * Returns a singleton store instance shared across all React roots within the same JS context.
18448
+ * Uses module-level singleton to ensure deduplication even if modules are loaded twice.
18449
+ */
18450
+ export function getFlyoutManagerStore(): FlyoutManagerStore;
18451
+ /**
18452
+ * For testing purposes - allows resetting the store
18453
+ */
18454
+ export function _resetFlyoutManagerStore(): void;
18455
+ export {};
18456
+
18457
+ }
18458
+ declare module '@elastic/eui/src/components/flyout/manager/selectors' {
18459
+ export const useSession: (flyoutId?: string | null) => import ("@elastic/eui/src/components/flyout/manager/types").FlyoutSession | null;
18460
+ /** True when any managed flyout session is currently active. */
18461
+ export const useHasActiveSession: () => boolean;
18462
+ /** True if the given `flyoutId` is the main or child flyout in the latest session. */
18463
+ export const useIsFlyoutActive: (flyoutId: string) => boolean;
18464
+ export const useFlyout: (flyoutId?: string | null) => import ("@elastic/eui/src/components/flyout/manager/types").EuiManagedFlyoutState | null;
18465
+ export const useIsFlyoutRegistered: (flyoutId?: string | null) => boolean;
18466
+ /** The most recent flyout session or `null` if none. */
18467
+ export const useCurrentSession: () => import ("@elastic/eui/src/components/flyout/manager/types").FlyoutSession | null;
18468
+ /** The registered state of the current session's main flyout, if present. */
18469
+ export const useCurrentMainFlyout: () => import ("@elastic/eui/src/components/flyout/manager/types").EuiManagedFlyoutState | null;
18470
+ /** The registered state of the current session's child flyout, if present. */
18471
+ export const useCurrentChildFlyout: () => import ("@elastic/eui/src/components/flyout/manager/types").EuiManagedFlyoutState | null;
18472
+ /** The measured width (px) of the specified flyout, or `null` if unknown. */
18473
+ export const useFlyoutWidth: (flyoutId?: string | null) => number | undefined;
18474
+ /** Returns the store pagination override for a flyout, if set. */
18475
+ export const useFlyoutPagination: (flyoutId?: string | null) => import("..").EuiFlyoutMenuPagination | undefined;
18476
+ /** The configured minWidth (px) of the specified flyout, or `undefined` if not set. */
18477
+ export const useFlyoutMinWidth: (flyoutId?: string | null) => number | undefined;
18478
+ /** The configured size of the parent (main) flyout for a given child flyout ID. */
18479
+ export const useParentFlyoutSize: (childFlyoutId: string) => string | undefined;
18480
+ /** True if the provided `flyoutId` is the main flyout and it currently has a child. */
18481
+ export const useHasChildFlyout: (flyoutId: string) => boolean;
18482
+ /** Get the current push padding offsets from manager state. */
18483
+ export const usePushPaddingOffsets: () => import ("@elastic/eui/src/components/flyout/manager/types").PushPaddingOffsets;
18484
+ /** True if there's any active push padding (left or right side). */
18485
+ export const useHasPushPadding: () => boolean;
18486
+ /** Get the ref for the current flyout z-index to be used */
18487
+ export const useCurrentFlyoutZIndexRef: () => import("react").MutableRefObject<number>;
18488
+
18489
+ }
18490
+ declare module '@elastic/eui/src/components/flyout/manager/context' {
18491
+ import React from 'react';
18492
+ /**
18493
+ * React provider that marks descendants as being rendered inside
18494
+ * an EUI managed flyout. Used by hooks/components to alter behavior
18495
+ * (e.g., focus handling) when inside a managed flyout tree.
18496
+ */
18497
+ export const EuiFlyoutIsManagedProvider: ({ isManaged, children, }: {
18498
+ isManaged: boolean;
18499
+ children: React.ReactNode;
18500
+ }) => React.JSX.Element;
18501
+ /**
18502
+ * Hook that returns `true` when called within an EUI managed flyout subtree.
18503
+ */
18504
+ export const useIsInManagedFlyout: () => boolean;
18505
+
18506
+ }
18507
+ declare module '@elastic/eui/src/components/flyout/manager/hooks' {
18508
+ export { useIsFlyoutActive, useHasActiveSession, useCurrentSession, useCurrentMainFlyout, useCurrentChildFlyout, useFlyoutWidth, useFlyoutPagination, useParentFlyoutSize, useHasChildFlyout, usePushPaddingOffsets, useHasPushPadding, } from '@elastic/eui/src/components/flyout/manager/selectors';
18509
+ export { useFlyoutLayoutMode } from '@elastic/eui/src/components/flyout/manager/layout_mode';
18510
+ export { useIsInManagedFlyout } from '@elastic/eui/src/components/flyout/manager/context';
18511
+ export type { EuiFlyoutActivityStage } from '@elastic/eui/src/components/flyout/manager/types';
18512
+ /** Access the flyout manager context (state and actions). */
18513
+ export const useFlyoutManager: () => import ("@elastic/eui/src/components/flyout/manager/types").FlyoutManagerApi | null;
18514
+ /**
18515
+ * Stable flyout ID utility. Uses the passed `id` if provided and not already registered,
18516
+ * otherwise generates a deterministic ID for the component's lifetime.
18517
+ * The ID remains stable across re-renders to maintain consistency in effects and other hooks.
18518
+ */
18519
+ export const useFlyoutId: (flyoutId?: string) => string;
18520
+
18521
+ }
18522
+ declare module '@elastic/eui/src/components/flyout/manager/layout_mode' {
18523
+ import { EuiFlyoutLayoutMode } from '@elastic/eui/src/components/flyout/manager/types';
18524
+ /**
18525
+ * Hook to handle responsive layout mode for managed flyouts.
18526
+ * Decides whether to place flyouts side-by-side or stacked based on
18527
+ * the reference width (the reference container's width, defaulting to
18528
+ * document.body when not set) and flyout widths/sizes.
18529
+ */
18530
+ export const useApplyFlyoutLayoutMode: () => void;
18531
+ /**
18532
+ * Convert a flyout `size` value to a pixel width.
18533
+ * When `referenceWidth` is provided, named sizes are calculated as a percentage
18534
+ * of that width (container-relative). Otherwise falls back to `window.innerWidth`.
18535
+ */
18536
+ export const getWidthFromSize: (size: string | number, referenceWidth?: number) => number;
18537
+ /** Current layout mode for managed flyouts (`side-by-side` or `stacked`). */
18538
+ export const useFlyoutLayoutMode: () => EuiFlyoutLayoutMode;
18539
+
18540
+ }
18541
+ declare module '@elastic/eui/src/components/flyout/manager/provider' {
18542
+ import React from 'react';
18543
+ import { FlyoutManagerApi } from '@elastic/eui/src/components/flyout/manager/types';
18544
+ /**
18545
+ * React context that exposes the Flyout Manager API (state + actions).
18546
+ */
18547
+ export const EuiFlyoutManagerContext: React.Context<FlyoutManagerApi | null>;
18548
+ /**
18549
+ * Provides the Flyout Manager API via context and runs layout-mode logic.
18550
+ */
18551
+ export const EuiFlyoutManager: React.FC<{
18552
+ children: React.ReactNode;
18553
+ }>;
18554
+ /** Hook to access the Flyout Manager API from context. */
18555
+ export const useFlyoutManager: () => FlyoutManagerApi | null;
18556
+
18436
18557
  }
18437
18558
  declare module '@elastic/eui/src/components/flyout/manager/activity_stage' {
18438
18559
  import type { EuiFlyoutActivityStage, EuiFlyoutLevel } from '@elastic/eui/src/components/flyout/manager/types';
@@ -18604,7 +18725,7 @@ declare module '@elastic/eui/src/components/flyout/manager' {
18604
18725
  /**
18605
18726
  * Convenience re-exports of bound action creators for external usage.
18606
18727
  */
18607
- export { addFlyout as addFlyoutAction, closeFlyout as closeFlyoutAction, closeAllFlyouts as closeAllFlyoutsAction, setActiveFlyout as setActiveFlyoutAction, setFlyoutWidth as setFlyoutWidthAction, setPushPadding as setPushPaddingAction, setActivityStage as setActivityStageAction, } from '@elastic/eui/src/components/flyout/manager/actions';
18728
+ export { addFlyout as addFlyoutAction, closeFlyout as closeFlyoutAction, closeAllFlyouts as closeAllFlyoutsAction, setActiveFlyout as setActiveFlyoutAction, setFlyoutWidth as setFlyoutWidthAction, setPagination as setPaginationAction, setPushPadding as setPushPaddingAction, setActivityStage as setActivityStageAction, } from '@elastic/eui/src/components/flyout/manager/actions';
18608
18729
  /** Reducer and default state for the flyout manager. */
18609
18730
  export { flyoutManagerReducer, initialState } from '@elastic/eui/src/components/flyout/manager/reducer';
18610
18731
  /** Flyout manager store singleton and types. */
@@ -18618,7 +18739,7 @@ declare module '@elastic/eui/src/components/flyout/manager' {
18618
18739
  /**
18619
18740
  * Selectors and derived state hooks for managed flyouts.
18620
18741
  */
18621
- export { useCurrentChildFlyout, useCurrentMainFlyout, useCurrentSession, useFlyoutId, useFlyoutLayoutMode, useFlyoutManager, useFlyoutWidth, useHasChildFlyout, useIsFlyoutActive, useIsInManagedFlyout, useHasActiveSession, useParentFlyoutSize, usePushPaddingOffsets, useHasPushPadding, } from '@elastic/eui/src/components/flyout/manager/hooks';
18742
+ export { useCurrentChildFlyout, useCurrentMainFlyout, useCurrentSession, useFlyoutId, useFlyoutLayoutMode, useFlyoutManager, useFlyoutPagination, useFlyoutWidth, useHasChildFlyout, useIsFlyoutActive, useIsInManagedFlyout, useHasActiveSession, useParentFlyoutSize, usePushPaddingOffsets, useHasPushPadding, } from '@elastic/eui/src/components/flyout/manager/hooks';
18622
18743
  export { EuiFlyoutChild, type EuiFlyoutChildProps } from '@elastic/eui/src/components/flyout/manager/flyout_child';
18623
18744
  export { EuiFlyoutMain, type EuiFlyoutMainProps } from '@elastic/eui/src/components/flyout/manager/flyout_main';
18624
18745
  /** Utility functions for flyout sizing and layout. */
@@ -19646,6 +19767,7 @@ declare module '@elastic/eui/src/components/flyout/use_flyout_menu' {
19646
19767
  };
19647
19768
  historyItems?: import ("@elastic/eui/src/components/flyout/flyout_menu").EuiFlyoutHistoryItem[];
19648
19769
  customActions?: import ("@elastic/eui/src/components/flyout/flyout_menu").EuiFlyoutMenuCustomAction[];
19770
+ pagination?: import ("@elastic/eui/src/components/flyout/flyout_menu").EuiFlyoutMenuPagination;
19649
19771
  };
19650
19772
  shouldRenderMenu: boolean;
19651
19773
  ariaLabelledBy: string | undefined;
@@ -19661,12 +19783,16 @@ declare module '@elastic/eui/src/components/flyout/flyout.component' {
19661
19783
  import type { EuiButtonIconPropsForButton } from '@elastic/eui/src/components/button';
19662
19784
  import { _EuiFlyoutPaddingSize, _EuiFlyoutSide, _EuiFlyoutType, EuiFlyoutMenuDisplayMode, EuiFlyoutSize } from '@elastic/eui/src/components/flyout/const';
19663
19785
  import { EuiFlyoutMenuProps } from '@elastic/eui/src/components/flyout/flyout_menu';
19664
- import type { EuiFlyoutCloseEvent } from '@elastic/eui/src/components/flyout/types';
19786
+ import type { EuiFlyoutCloseEvent, EuiFlyoutCloseMeta } from '@elastic/eui/src/components/flyout/types';
19665
19787
  interface _EuiFlyoutComponentProps {
19666
19788
  /**
19667
19789
  * A required callback function fired when the flyout is closed.
19790
+ *
19791
+ * The optional second `meta` argument describes why the flyout closed via
19792
+ * `meta.reason` (e.g. `'close-button'`, `'escape'`, `'outside-click'`, and,
19793
+ * for managed flyouts, `'navigation-back'` or `'navigation-cascade'`).
19668
19794
  */
19669
- onClose: (event: EuiFlyoutCloseEvent) => void;
19795
+ onClose: (event: EuiFlyoutCloseEvent, meta?: EuiFlyoutCloseMeta) => void;
19670
19796
  /**
19671
19797
  * Defines the width of the panel.
19672
19798
  * Pass a predefined size of `s | m | l`, or pass any number/string compatible with the CSS `width` attribute
@@ -19955,6 +20081,7 @@ declare module '@elastic/eui/src/components/flyout/flyout_header' {
19955
20081
  declare module '@elastic/eui/src/components/flyout' {
19956
20082
  export type { EuiFlyoutProps, EuiFlyoutSize } from '@elastic/eui/src/components/flyout/flyout';
19957
20083
  export { EuiFlyout } from '@elastic/eui/src/components/flyout/flyout';
20084
+ export type { EuiFlyoutCloseEvent, EuiFlyoutCloseReason, EuiFlyoutCloseMeta, } from '@elastic/eui/src/components/flyout/types';
19958
20085
  export type { EuiFlyoutBodyProps } from '@elastic/eui/src/components/flyout/flyout_body';
19959
20086
  export { EuiFlyoutBody } from '@elastic/eui/src/components/flyout/flyout_body';
19960
20087
  export type { EuiFlyoutFooterProps } from '@elastic/eui/src/components/flyout/flyout_footer';
@@ -19964,7 +20091,7 @@ declare module '@elastic/eui/src/components/flyout' {
19964
20091
  export { euiFlyoutSlideInRight, euiFlyoutSlideInLeft } from '@elastic/eui/src/components/flyout/flyout.styles';
19965
20092
  export type { EuiFlyoutResizableProps } from '@elastic/eui/src/components/flyout/flyout_resizable';
19966
20093
  export { EuiFlyoutResizable } from '@elastic/eui/src/components/flyout/flyout_resizable';
19967
- export type { EuiFlyoutMenuProps, EuiFlyoutHistoryItem, EuiFlyoutMenuCustomAction, } from '@elastic/eui/src/components/flyout/flyout_menu';
20094
+ export type { EuiFlyoutMenuProps, EuiFlyoutHistoryItem, EuiFlyoutMenuCustomAction, EuiFlyoutMenuPagination, } from '@elastic/eui/src/components/flyout/flyout_menu';
19968
20095
  export { EuiFlyoutMenu } from '@elastic/eui/src/components/flyout/flyout_menu';
19969
20096
  export { useIsInManagedFlyout, useHasActiveSession } from '@elastic/eui/src/components/flyout/manager';
19970
20097
  export { useIsInsideParentFlyout } from '@elastic/eui/src/components/flyout/flyout_parent_context';
@@ -22084,6 +22211,10 @@ declare module '@elastic/eui/src/components/avatar/avatar.styles' {
22084
22211
  uppercase: import("@emotion/react").SerializedStyles;
22085
22212
  lowercase: import("@emotion/react").SerializedStyles;
22086
22213
  none: import("@emotion/react").SerializedStyles;
22214
+ tooltip: {
22215
+ user: import("@emotion/react").SerializedStyles;
22216
+ space: import("@emotion/react").SerializedStyles;
22217
+ };
22087
22218
  };
22088
22219
 
22089
22220
  }
@@ -29220,8 +29351,7 @@ declare module '@elastic/eui/src/components/date_picker/super_date_picker/quick_
29220
29351
 
29221
29352
  }
29222
29353
  declare module '@elastic/eui/src/components/date_picker/auto_refresh/refresh_interval' {
29223
- import React, { Component, ChangeEventHandler, KeyboardEventHandler } from 'react';
29224
- import { TimeOptions } from '@elastic/eui/src/components/date_picker/super_date_picker/time_options';
29354
+ import React from 'react';
29225
29355
  import { Milliseconds, RefreshUnitsOptions, ApplyRefreshInterval } from '@elastic/eui/src/components/date_picker/types';
29226
29356
  export type EuiRefreshIntervalProps = {
29227
29357
  /**
@@ -29248,30 +29378,10 @@ declare module '@elastic/eui/src/components/date_picker/auto_refresh/refresh_int
29248
29378
  */
29249
29379
  onRefreshChange: ApplyRefreshInterval;
29250
29380
  };
29251
- interface EuiRefreshIntervalState {
29252
- value: number | '';
29253
- units: RefreshUnitsOptions;
29254
- min?: Milliseconds;
29255
- }
29256
- export class EuiRefreshInterval extends Component<EuiRefreshIntervalProps, EuiRefreshIntervalState> {
29257
- static defaultProps: {
29258
- isPaused: boolean;
29259
- refreshInterval: number;
29260
- minInterval: number;
29261
- };
29262
- state: EuiRefreshIntervalState;
29263
- generateId: (idSuffix?: string) => string;
29264
- refreshSelectionId: string;
29265
- onValueChange: ChangeEventHandler<HTMLInputElement>;
29266
- onUnitsChange: ChangeEventHandler<HTMLSelectElement>;
29267
- startRefresh: () => void;
29268
- handleKeyDown: KeyboardEventHandler<HTMLElement>;
29269
- applyRefreshInterval: () => void;
29270
- toggleRefresh: () => void;
29271
- renderScreenReaderText: (refreshUnitsOptions: TimeOptions["refreshUnitsOptions"]) => React.JSX.Element;
29272
- render(): React.JSX.Element;
29273
- }
29274
- export {};
29381
+ export const EuiRefreshInterval: {
29382
+ ({ isPaused, refreshInterval, minInterval, intervalUnits, onRefreshChange, }: EuiRefreshIntervalProps): React.JSX.Element;
29383
+ displayName: string;
29384
+ };
29275
29385
 
29276
29386
  }
29277
29387
  declare module '@elastic/eui/src/components/date_picker/super_date_picker/quick_select_popover/quick_select_popover' {
@@ -36053,10 +36163,36 @@ declare module '@elastic/eui/src/components/basic_table/expanded_item_actions' {
36053
36163
  }
36054
36164
  export const ExpandedItemActions: <T extends {}>({ actions, itemId, item, actionsDisabled, className, }: ExpandedItemActionsProps<T>) => ReactElement;
36055
36165
 
36166
+ }
36167
+ declare module '@elastic/eui/src/components/basic_table/panel.styles' {
36168
+ import type { UseEuiTheme } from '@elastic/eui/src/services';
36169
+ export const euiBasicTablePanelStyles: ({ euiTheme }: UseEuiTheme) => import("@emotion/react").SerializedStyles;
36170
+
36171
+ }
36172
+ declare module '@elastic/eui/src/components/basic_table/use_panel_props' {
36173
+ /**
36174
+ * @internal
36175
+ */
36176
+ export const EUI_BASIC_TABLE_PANEL_CLASS_NAME: "euiBasicTablePanel";
36177
+ /**
36178
+ * A utility hook that returns props needed to be passed to element(s) being
36179
+ * a part of the paneled table look and feel (e.g., a toolbar above the table).
36180
+ * @beta
36181
+ */
36182
+ export const useEuiBasicTablePanelProps: () => {
36183
+ css: import("@emotion/serialize").SerializedStyles;
36184
+ className: "euiBasicTablePanel";
36185
+ };
36186
+
36056
36187
  }
36057
36188
  declare module '@elastic/eui/src/components/basic_table/basic_table.styles' {
36058
- import { UseEuiTheme } from '@elastic/eui/src/services';
36189
+ import type { UseEuiTheme } from '@elastic/eui/src/services';
36190
+ import type { EuiTableProps } from '@elastic/eui/src/components/table';
36059
36191
  export const euiBasicTableBodyLoading: (euiThemeContext: UseEuiTheme) => import("@emotion/react").SerializedStyles;
36192
+ /**
36193
+ * @internal
36194
+ */
36195
+ export const euiBasicTableWrapperPanelledStyles: (responsiveBreakpoint: EuiTableProps["responsiveBreakpoint"]) => (theme: UseEuiTheme) => import("@emotion/react").SerializedStyles | null;
36060
36196
  export const safariLoadingWorkaround: import("@emotion/react").SerializedStyles;
36061
36197
 
36062
36198
  }
@@ -36065,7 +36201,7 @@ declare module '@elastic/eui/src/components/basic_table/basic_table' {
36065
36201
  import { CommonProps } from '@elastic/eui/src/components/common';
36066
36202
  import { EuiComponentDefaultsContext } from '@elastic/eui/src/components/provider/component_defaults';
36067
36203
  import { EuiTableProps } from '@elastic/eui/src/components/table';
36068
- import { Pagination } from '@elastic/eui/src/components/basic_table/pagination_bar';
36204
+ import { type Pagination } from '@elastic/eui/src/components/basic_table/pagination_bar';
36069
36205
  import { EuiTableActionsColumnType, EuiTableComputedColumnType, EuiTableDataType, EuiTableFieldDataColumnType, ItemId, EuiTableSelectionType, EuiTableSortingType, ItemIdResolved } from '@elastic/eui/src/components/basic_table/table_types';
36070
36206
  interface ItemIdToExpandedRowMap {
36071
36207
  [id: string]: ReactNode;
@@ -36136,6 +36272,15 @@ declare module '@elastic/eui/src/components/basic_table/basic_table' {
36136
36272
  * Provides an infinite loading indicator
36137
36273
  */
36138
36274
  loading?: boolean;
36275
+ /**
36276
+ * Enable the panelled style of the table.
36277
+ *
36278
+ * Panelled style adds contrast between the table navigation controls
36279
+ * and table content itself. It should be used in tables rendered outside
36280
+ * EUI containers like `<EuiPanel>` or `<EuiFlyout>`.
36281
+ * @default false
36282
+ */
36283
+ panelled?: boolean;
36139
36284
  /**
36140
36285
  * Message to display if table is empty
36141
36286
  */
@@ -36370,6 +36515,7 @@ declare module '@elastic/eui/src/components/basic_table' {
36370
36515
  export type { EuiTableDataType, EuiTableFooterProps, EuiTableFieldDataColumnType, EuiTableComputedColumnType, EuiTableActionsColumnType, EuiTableSelectionType, EuiTableSortingType, } from '@elastic/eui/src/components/basic_table/table_types';
36371
36516
  export type { Pagination } from '@elastic/eui/src/components/basic_table/pagination_bar';
36372
36517
  export type { DefaultItemAction, CustomItemAction } from '@elastic/eui/src/components/basic_table/action_types';
36518
+ export { useEuiBasicTablePanelProps } from '@elastic/eui/src/components/basic_table/use_panel_props';
36373
36519
 
36374
36520
  }
36375
36521
  declare module '@elastic/eui/src/components/text_diff/text_diff.styles' {
@@ -37882,21 +38028,20 @@ declare module '@elastic/eui/src/services/container_query' {
37882
38028
 
37883
38029
  declare module '@elastic/eui' {
37884
38030
  export type EuiTokensObject = {
37885
- "euiTourStepIndicator.isActive": any;
38031
+ "euiTreeView.listNavigationInstructions": any;
38032
+ "euiTourStepIndicator.isActive": any;
37886
38033
  "euiTourStepIndicator.isComplete": any;
37887
38034
  "euiTourStepIndicator.isIncomplete": any;
37888
38035
  "euiTourStepIndicator.ariaLabel": any;
37889
38036
  "euiTourFooter.endTour": any;
37890
38037
  "euiTourFooter.skipTour": any;
37891
38038
  "euiTourFooter.closeTour": any;
37892
- "euiTreeView.listNavigationInstructions": any;
37893
38039
  "euiIconTip.defaultAriaLabel": any;
37894
38040
  "euiToast.newNotification": any;
37895
38041
  "euiToast.notification": any;
37896
38042
  "euiToast.dismissToast": any;
37897
38043
  "euiGlobalToastList.clearAllToastsButtonAriaLabel": any;
37898
38044
  "euiGlobalToastList.clearAllToastsButtonDisplayText": any;
37899
- "euiStat.loadingText": any;
37900
38045
  "euiStepStrings.step": any;
37901
38046
  "euiStepStrings.simpleStep": any;
37902
38047
  "euiStepStrings.complete": any;
@@ -37914,8 +38059,10 @@ declare module '@elastic/eui' {
37914
38059
  "euiStepStrings.current": any;
37915
38060
  "euiStepStrings.simpleCurrent": any;
37916
38061
  "euiTableHeaderCell.titleTextWithDesc": any;
38062
+ "euiStat.loadingText": any;
37917
38063
  "euiSkeletonLoading.loadedAriaText": any;
37918
38064
  "euiSkeletonLoading.loadingAriaText": any;
38065
+ "euiSideNav.mobileToggleAriaLabel": any;
37919
38066
  "euiSelectable.loadingOptions": any;
37920
38067
  "euiSelectable.noMatchingOptions": any;
37921
38068
  "euiSelectable.noAvailableOptions": any;
@@ -37929,12 +38076,13 @@ declare module '@elastic/eui' {
37929
38076
  "euiResizableButton.horizontalResizerAriaLabel": any;
37930
38077
  "euiResizableButton.verticalResizerAriaLabel": any;
37931
38078
  "euiProgress.valueText": any;
37932
- "euiSideNav.mobileToggleAriaLabel": any;
37933
38079
  "euiPopover.screenReaderAnnouncement": any;
37934
38080
  "euiPaginationButtonArrow.firstPage": any;
37935
38081
  "euiPaginationButtonArrow.previousPage": any;
37936
38082
  "euiPaginationButtonArrow.nextPage": any;
37937
38083
  "euiPaginationButtonArrow.lastPage": any;
38084
+ "euiPaginationButton.longPageString": any;
38085
+ "euiPaginationButton.shortPageString": any;
37938
38086
  "euiPagination.pageOfTotalCompressed": any;
37939
38087
  "euiPagination.firstRangeAriaLabel": any;
37940
38088
  "euiPagination.lastRangeAriaLabel": any;
@@ -37943,12 +38091,10 @@ declare module '@elastic/eui' {
37943
38091
  "euiPagination.of": any;
37944
38092
  "euiPagination.collection": any;
37945
38093
  "euiPagination.fromEndLabel": any;
37946
- "euiPaginationButton.longPageString": any;
37947
- "euiPaginationButton.shortPageString": any;
37948
- "euiMark.highlightStart": any;
37949
- "euiMark.highlightEnd": any;
37950
38094
  "euiModal.screenReaderModalDialog": any;
37951
38095
  "euiModal.closeModal": any;
38096
+ "euiMark.highlightStart": any;
38097
+ "euiMark.highlightEnd": any;
37952
38098
  "euiMarkdownEditorToolbar.editor": any;
37953
38099
  "euiMarkdownEditorToolbar.previewMarkdown": any;
37954
38100
  "euiMarkdownEditorHelpButton.mdSyntaxLink": any;
@@ -37973,13 +38119,16 @@ declare module '@elastic/eui' {
37973
38119
  "euiInlineEditForm.activateEditModeDescription": any;
37974
38120
  "euiImageButton.openFullScreen": any;
37975
38121
  "euiImageButton.closeFullScreen": any;
38122
+ "euiForm.addressFormErrors": any;
37976
38123
  "euiFlyoutMenu.back": any;
37977
38124
  "euiFlyoutMenu.history": any;
38125
+ "euiFlyoutMenu.pagination.previous": any;
38126
+ "euiFlyoutMenu.pagination.next": any;
38127
+ "euiFlyoutMenu.pagination.counter": any;
37978
38128
  "euiFlyout.screenReaderModalDialog": any;
37979
38129
  "euiFlyout.screenReaderNoOverlayMaskDialog": any;
37980
38130
  "euiFlyout.screenReaderFocusTrapShards": any;
37981
38131
  "euiFlyoutCloseButton.ariaLabel": any;
37982
- "euiForm.addressFormErrors": any;
37983
38132
  "euiFilterButton.filterBadgeActiveAriaLabel": any;
37984
38133
  "euiFilterButton.filterBadgeAvailableAriaLabel": any;
37985
38134
  "euiErrorBoundary.error": any;
@@ -38005,13 +38154,13 @@ declare module '@elastic/eui' {
38005
38154
  "euiColorPicker.closeLabel": any;
38006
38155
  "euiColorPicker.ariaLabel": any;
38007
38156
  "euiCollapsibleNavBeta.ariaLabel": any;
38008
- "euiCallOut.dismissAriaLabel": any;
38009
38157
  "euiCodeBlockFullScreen.fullscreenCollapse": any;
38010
38158
  "euiCodeBlockFullScreen.fullscreenExpand": any;
38011
38159
  "euiCodeBlockFullScreen.ariaLabel": any;
38012
38160
  "euiCodeBlockCopy.copy": any;
38013
38161
  "euiCodeBlockAnnotations.ariaLabel": any;
38014
38162
  "euiCodeBlock.label": any;
38163
+ "euiCallOut.dismissAriaLabel": any;
38015
38164
  "euiBreadcrumbs.nav.ariaLabel": any;
38016
38165
  "euiBreadcrumb.collapsedBadge.ariaLabel": any;
38017
38166
  "euiBreadcrumb.popoverAriaLabel": any;
@@ -38054,20 +38203,30 @@ declare module '@elastic/eui' {
38054
38203
  "euiPinnableListGroup.pinnedExtraActionLabel": any;
38055
38204
  "euiHeaderLinks.appNavigation": any;
38056
38205
  "euiHeaderLinks.openNavigationMenu": any;
38057
- "euiFlyoutManaged.defaultTitle": any;
38058
38206
  "euiSuperSelect.screenReaderAnnouncement": any;
38059
38207
  "euiSuperSelect.ariaLabel": any;
38060
38208
  "euiRange.sliderScreenReaderInstructions": any;
38061
38209
  "euiDualRange.sliderScreenReaderInstructions": any;
38062
38210
  "euiFormControlLayoutDelimited.delimiterLabel": any;
38063
38211
  "euiFormControlLayoutClearButton.label": any;
38064
- "euiFieldSearch.clearSearchButtonLabel": any;
38065
38212
  "euiFilePicker.promptText": any;
38066
38213
  "euiFilePicker.filesSelected": any;
38067
38214
  "euiFilePicker.removeSelectedAriaLabel": any;
38068
38215
  "euiFilePicker.removeSelected": any;
38216
+ "euiFieldSearch.clearSearchButtonLabel": any;
38069
38217
  "euiFieldPassword.showPassword": any;
38070
38218
  "euiFieldPassword.maskPassword": any;
38219
+ "euiFlyoutManaged.defaultTitle": any;
38220
+ "euiTimeWindowButtons.previousDescription": any;
38221
+ "euiTimeWindowButtons.nextDescription": any;
38222
+ "euiTimeWindowButtons.invalidShiftLabel": any;
38223
+ "euiTimeWindowButtons.invalidZoomInLabel": any;
38224
+ "euiTimeWindowButtons.cannotZoomInLabel": any;
38225
+ "euiTimeWindowButtons.invalidZoomOutLabel": any;
38226
+ "euiTimeWindowButtons.previousLabel": any;
38227
+ "euiTimeWindowButtons.zoomInLabel": any;
38228
+ "euiTimeWindowButtons.zoomOutLabel": any;
38229
+ "euiTimeWindowButtons.nextLabel": any;
38071
38230
  "euiTimeOptions.last": any;
38072
38231
  "euiTimeOptions.next": any;
38073
38232
  "euiTimeOptions.seconds": any;
@@ -38106,16 +38265,6 @@ declare module '@elastic/eui' {
38106
38265
  "euiTimeOptions.weekToDate": any;
38107
38266
  "euiTimeOptions.monthToDate": any;
38108
38267
  "euiTimeOptions.yearToDate": any;
38109
- "euiTimeWindowButtons.previousDescription": any;
38110
- "euiTimeWindowButtons.nextDescription": any;
38111
- "euiTimeWindowButtons.invalidShiftLabel": any;
38112
- "euiTimeWindowButtons.invalidZoomInLabel": any;
38113
- "euiTimeWindowButtons.cannotZoomInLabel": any;
38114
- "euiTimeWindowButtons.invalidZoomOutLabel": any;
38115
- "euiTimeWindowButtons.previousLabel": any;
38116
- "euiTimeWindowButtons.zoomInLabel": any;
38117
- "euiTimeWindowButtons.zoomOutLabel": any;
38118
- "euiTimeWindowButtons.nextLabel": any;
38119
38268
  "euiSuperUpdateButton.updatingButtonLabel": any;
38120
38269
  "euiSuperUpdateButton.updateButtonLabel": any;
38121
38270
  "euiSuperUpdateButton.refreshButtonLabel": any;
@@ -38163,8 +38312,6 @@ declare module '@elastic/eui' {
38163
38312
  "euiAutoRefresh.autoRefreshLabel": any;
38164
38313
  "euiAutoRefresh.buttonLabelOff": any;
38165
38314
  "euiAutoRefresh.buttonLabelOn": any;
38166
- "euiDataGridPagination.detailedPaginationLabel": any;
38167
- "euiDataGridPagination.paginationLabel": any;
38168
38315
  "euiDataGridSchema.booleanSortTextAsc": any;
38169
38316
  "euiDataGridSchema.booleanSortTextDesc": any;
38170
38317
  "euiDataGridSchema.currencySortTextAsc": any;
@@ -38175,6 +38322,8 @@ declare module '@elastic/eui' {
38175
38322
  "euiDataGridSchema.numberSortTextDesc": any;
38176
38323
  "euiDataGridSchema.jsonSortTextAsc": any;
38177
38324
  "euiDataGridSchema.jsonSortTextDesc": any;
38325
+ "euiDataGridPagination.detailedPaginationLabel": any;
38326
+ "euiDataGridPagination.paginationLabel": any;
38178
38327
  "euiKeyboardShortcuts.title": any;
38179
38328
  "euiKeyboardShortcuts.upArrowTitle": any;
38180
38329
  "euiKeyboardShortcuts.upArrowDescription": any;
@@ -38250,7 +38399,6 @@ declare module '@elastic/eui' {
38250
38399
  "euiAccordionChildrenLoading.message": any;
38251
38400
  "euiRecentlyUsed.legend": any;
38252
38401
  "euiQuickSelectPopover.buttonLabel": any;
38253
- "euiCommonlyUsedTimeRanges.legend": any;
38254
38402
  "euiQuickSelect.quickSelectTitle": any;
38255
38403
  "euiQuickSelect.previousLabel": any;
38256
38404
  "euiQuickSelect.nextLabel": any;
@@ -38259,6 +38407,7 @@ declare module '@elastic/eui' {
38259
38407
  "euiQuickSelect.unitLabel": any;
38260
38408
  "euiQuickSelect.applyButton": any;
38261
38409
  "euiQuickSelect.fullDescription": any;
38410
+ "euiCommonlyUsedTimeRanges.legend": any;
38262
38411
  "euiRelativeTab.numberInputLabel": any;
38263
38412
  "euiRelativeTab.numberInputError": any;
38264
38413
  "euiRelativeTab.dateInputError": any;