@elastic/eui 106.1.0 → 106.2.0-snapshot.1757009122780

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 (551) hide show
  1. package/es/components/accessibility/index.js +2 -1
  2. package/es/components/{flyout/sessions → accessibility/live_announcer}/index.js +1 -2
  3. package/es/components/accessibility/live_announcer/live_announcer.js +84 -0
  4. package/es/components/accessibility/screen_reader_live/screen_reader_live.js +7 -0
  5. package/es/components/avatar/avatar.js +1 -1
  6. package/es/components/badge/badge.js +1 -1
  7. package/es/components/badge/beta_badge/beta_badge.js +1 -1
  8. package/es/components/basic_table/basic_table.js +4 -4
  9. package/es/components/basic_table/in_memory_table.js +4 -4
  10. package/es/components/button/button.js +1 -1
  11. package/es/components/button/button_display/_button_display.js +1 -1
  12. package/es/components/button/button_display/_button_display_content.js +1 -1
  13. package/es/components/button/button_empty/button_empty.js +1 -1
  14. package/es/components/button/button_group/button_group.js +1 -1
  15. package/es/components/button/button_group/button_group_button.js +1 -1
  16. package/es/components/button/button_icon/button_icon.js +1 -1
  17. package/es/components/call_out/call_out.js +16 -5
  18. package/es/components/card/card.js +2 -2
  19. package/es/components/card/card_select/card_select.js +1 -1
  20. package/es/components/card/checkable_card/checkable_card.js +30 -5
  21. package/es/components/code/code_block.js +5 -2
  22. package/es/components/code/code_block_virtualized.js +5 -3
  23. package/es/components/collapsible_nav/collapsible_nav.js +4 -106
  24. package/es/components/collapsible_nav/collapsible_nav_group/collapsible_nav_group.js +1 -1
  25. package/es/components/collapsible_nav_beta/_kibana_solution/collapsible_nav_kibana_solution.js +1 -1
  26. package/es/components/collapsible_nav_beta/collapsible_nav_item/collapsed/collapsed_nav_button.js +1 -1
  27. package/es/components/collapsible_nav_beta/collapsible_nav_item/collapsed/collapsed_nav_item.js +2 -2
  28. package/es/components/collapsible_nav_beta/collapsible_nav_item/collapsed/collapsed_nav_popover.js +2 -2
  29. package/es/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_item.js +4 -4
  30. package/es/components/combo_box/combo_box.a11y.js +97 -81
  31. package/es/components/combo_box/combo_box.js +3 -2
  32. package/es/components/combo_box/combo_box_options_list/combo_box_options_list.js +50 -25
  33. package/es/components/combo_box/combo_box_options_list/combo_box_options_list.styles.js +6 -2
  34. package/es/components/comment_list/comment.js +2 -2
  35. package/es/components/comment_list/comment_event.js +1 -1
  36. package/es/components/comment_list/comment_list.js +2 -2
  37. package/es/components/comment_list/comment_timeline.js +1 -1
  38. package/es/components/context_menu/context_menu_item.js +1 -1
  39. package/es/components/datagrid/body/cell/data_grid_cell.js +12 -12
  40. package/es/components/datagrid/body/data_grid_body.js +7 -7
  41. package/es/components/datagrid/body/data_grid_body_custom.js +7 -7
  42. package/es/components/datagrid/body/data_grid_body_virtualized.js +7 -7
  43. package/es/components/datagrid/body/header/data_grid_header_cell.js +6 -6
  44. package/es/components/datagrid/controls/column_sorting.js +7 -7
  45. package/es/components/datagrid/controls/column_sorting_draggable.js +1 -1
  46. package/es/components/datagrid/controls/data_grid_toolbar_control.js +1 -1
  47. package/es/components/datagrid/data_grid.styles.js +1 -1
  48. package/es/components/datagrid/utils/in_memory.js +6 -6
  49. package/es/components/date_picker/date_picker.js +2 -2
  50. package/es/components/date_picker/date_picker_range.js +1 -1
  51. package/es/components/empty_prompt/empty_prompt.js +1 -1
  52. package/es/components/facet/facet_button.js +1 -1
  53. package/es/components/filter_group/filter_select_item.js +16 -3
  54. package/es/components/flyout/const.js +42 -0
  55. package/es/components/flyout/flyout.component.js +378 -0
  56. package/es/components/flyout/flyout.js +43 -362
  57. package/es/components/flyout/flyout.styles.js +98 -3
  58. package/es/components/flyout/flyout_menu.js +86 -0
  59. package/es/components/flyout/flyout_menu.styles.js +16 -0
  60. package/{optimize/es/components/flyout/flyout_context.js → es/components/flyout/flyout_menu_context.js} +1 -7
  61. package/es/components/flyout/flyout_resizable.js +3 -2
  62. package/es/components/flyout/hooks.js +25 -0
  63. package/es/components/flyout/index.js +4 -2
  64. package/es/components/flyout/manager/actions.js +97 -0
  65. package/es/components/flyout/manager/activity_stage.js +71 -0
  66. package/es/components/flyout/manager/const.js +50 -0
  67. package/es/components/flyout/manager/context.js +33 -0
  68. package/es/components/flyout/manager/flyout_child.js +80 -0
  69. package/es/components/flyout/manager/flyout_child.styles.js +26 -0
  70. package/es/components/flyout/manager/flyout_main.js +65 -0
  71. package/es/components/flyout/manager/flyout_main.styles.js +25 -0
  72. package/es/components/flyout/manager/flyout_managed.js +129 -0
  73. package/es/components/flyout/manager/flyout_managed.styles.js +66 -0
  74. package/es/components/flyout/manager/hooks.js +98 -0
  75. package/es/components/flyout/manager/index.js +31 -0
  76. package/es/components/flyout/manager/layout_mode.js +164 -0
  77. package/es/components/flyout/manager/provider.js +37 -0
  78. package/es/components/flyout/manager/reducer.js +200 -0
  79. package/es/components/flyout/manager/selectors.js +87 -0
  80. package/es/components/flyout/manager/validation.js +112 -0
  81. package/es/components/form/field_number/field_number.js +2 -2
  82. package/es/components/form/field_password/field_password.styles.js +1 -0
  83. package/es/components/form/field_text/field_text.js +2 -2
  84. package/es/components/form/form.styles.js +2 -2
  85. package/es/components/form/form_control_layout/form_control_layout.js +2 -2
  86. package/es/components/form/form_control_layout/form_control_layout.styles.js +1 -1
  87. package/es/components/form/form_control_layout/form_control_layout_custom_icon.js +1 -1
  88. package/es/components/form/form_control_layout/form_control_layout_icons.js +2 -2
  89. package/es/components/form/range/range.styles.js +2 -2
  90. package/es/components/form/text_area/text_area.js +2 -2
  91. package/es/components/header/header_links/header_link.js +1 -1
  92. package/es/components/header/header_links/header_links.js +1 -1
  93. package/es/components/header/header_logo/header_logo.js +1 -1
  94. package/es/components/header/header_section/header_section_item_button.js +1 -1
  95. package/es/components/icon/assets/thumbDown.js +37 -0
  96. package/es/components/icon/assets/thumbUp.js +37 -0
  97. package/es/components/icon/icon.js +1 -1
  98. package/es/components/icon/icon_map.js +2 -0
  99. package/es/components/key_pad_menu/key_pad_menu_item.js +1 -1
  100. package/es/components/list_group/list_group.js +2 -2
  101. package/es/components/list_group/list_group_item.js +2 -2
  102. package/es/components/list_group/list_group_item_extra_action.js +1 -1
  103. package/es/components/list_group/pinnable_list_group/pinnable_list_group.js +4 -4
  104. package/es/components/loading/loading_logo.js +1 -1
  105. package/es/components/markdown_editor/index.js +1 -0
  106. package/es/components/markdown_editor/markdown_editor.js +16 -5
  107. package/es/components/markdown_editor/markdown_editor_drop_zone.js +6 -4
  108. package/es/components/markdown_editor/markdown_editor_footer.js +13 -121
  109. package/es/components/markdown_editor/markdown_editor_footer.styles.js +0 -2
  110. package/es/components/markdown_editor/markdown_editor_help_button.js +144 -0
  111. package/es/components/markdown_editor/markdown_editor_help_button.styles.js +16 -0
  112. package/es/components/markdown_editor/markdown_editor_toolbar.js +29 -24
  113. package/es/components/overlay_mask/overlay_mask.js +8 -3
  114. package/es/components/overlay_mask/overlay_mask.styles.js +11 -2
  115. package/es/components/page/page_header/page_header_content.js +1 -1
  116. package/es/components/pagination/pagination_button.js +1 -1
  117. package/es/components/popover/popover.js +2 -1
  118. package/es/components/provider/provider.js +2 -1
  119. package/es/components/selectable/selectable_list/selectable_list.js +1 -1
  120. package/es/components/selectable/selectable_list/selectable_list_item.js +1 -1
  121. package/es/components/selectable/selectable_templates/selectable_template_sitewide.js +1 -1
  122. package/es/components/table/table_header_cell.js +1 -1
  123. package/es/components/timeline/timeline_item_icon.js +1 -1
  124. package/es/components/toast/global_toast_list.js +1 -1
  125. package/es/components/toast/toast.js +1 -1
  126. package/es/components/tool_tip/icon_tip.js +1 -1
  127. package/es/global_styling/mixins/_button.js +1 -1
  128. package/es/services/emotion/prefixer.js +116 -22
  129. package/eui.d.ts +780 -426
  130. package/i18ntokens.json +624 -624
  131. package/lib/components/accessibility/index.js +8 -1
  132. package/lib/components/accessibility/live_announcer/index.js +16 -0
  133. package/lib/components/accessibility/live_announcer/live_announcer.js +93 -0
  134. package/lib/components/accessibility/screen_reader_live/screen_reader_live.js +7 -0
  135. package/lib/components/avatar/avatar.js +1 -1
  136. package/lib/components/badge/badge.js +1 -1
  137. package/lib/components/badge/beta_badge/beta_badge.js +1 -1
  138. package/lib/components/basic_table/basic_table.js +4 -4
  139. package/lib/components/basic_table/in_memory_table.js +4 -4
  140. package/lib/components/button/button.js +1 -1
  141. package/lib/components/button/button_display/_button_display.js +1 -1
  142. package/lib/components/button/button_display/_button_display_content.js +1 -1
  143. package/lib/components/button/button_empty/button_empty.js +1 -1
  144. package/lib/components/button/button_group/button_group.js +1 -1
  145. package/lib/components/button/button_group/button_group_button.js +1 -1
  146. package/lib/components/button/button_icon/button_icon.js +1 -1
  147. package/lib/components/call_out/call_out.js +17 -6
  148. package/lib/components/card/card.js +2 -2
  149. package/lib/components/card/card_select/card_select.js +1 -1
  150. package/lib/components/card/checkable_card/checkable_card.js +29 -4
  151. package/lib/components/code/code_block.js +5 -2
  152. package/lib/components/code/code_block_virtualized.js +5 -3
  153. package/lib/components/collapsible_nav/collapsible_nav.js +4 -106
  154. package/lib/components/collapsible_nav/collapsible_nav_group/collapsible_nav_group.js +1 -1
  155. package/lib/components/collapsible_nav_beta/_kibana_solution/collapsible_nav_kibana_solution.js +1 -1
  156. package/lib/components/collapsible_nav_beta/collapsible_nav_item/collapsed/collapsed_nav_button.js +1 -1
  157. package/lib/components/collapsible_nav_beta/collapsible_nav_item/collapsed/collapsed_nav_item.js +2 -2
  158. package/lib/components/collapsible_nav_beta/collapsible_nav_item/collapsed/collapsed_nav_popover.js +2 -2
  159. package/lib/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_item.js +4 -4
  160. package/lib/components/combo_box/combo_box.a11y.js +97 -81
  161. package/lib/components/combo_box/combo_box.js +3 -2
  162. package/lib/components/combo_box/combo_box_options_list/combo_box_options_list.js +50 -25
  163. package/lib/components/combo_box/combo_box_options_list/combo_box_options_list.styles.js +5 -1
  164. package/lib/components/comment_list/comment.js +2 -2
  165. package/lib/components/comment_list/comment_event.js +1 -1
  166. package/lib/components/comment_list/comment_list.js +2 -2
  167. package/lib/components/comment_list/comment_timeline.js +1 -1
  168. package/lib/components/context_menu/context_menu_item.js +1 -1
  169. package/lib/components/datagrid/body/cell/data_grid_cell.js +12 -12
  170. package/lib/components/datagrid/body/data_grid_body.js +7 -7
  171. package/lib/components/datagrid/body/data_grid_body_custom.js +7 -7
  172. package/lib/components/datagrid/body/data_grid_body_virtualized.js +7 -7
  173. package/lib/components/datagrid/body/header/data_grid_header_cell.js +6 -6
  174. package/lib/components/datagrid/controls/column_sorting.js +7 -7
  175. package/lib/components/datagrid/controls/column_sorting_draggable.js +1 -1
  176. package/lib/components/datagrid/controls/data_grid_toolbar_control.js +1 -1
  177. package/lib/components/datagrid/data_grid.styles.js +1 -1
  178. package/lib/components/datagrid/utils/in_memory.js +6 -6
  179. package/lib/components/date_picker/date_picker.js +2 -2
  180. package/lib/components/date_picker/date_picker_range.js +1 -1
  181. package/lib/components/empty_prompt/empty_prompt.js +1 -1
  182. package/lib/components/facet/facet_button.js +1 -1
  183. package/lib/components/filter_group/filter_select_item.js +16 -3
  184. package/lib/components/flyout/const.js +49 -0
  185. package/lib/components/flyout/flyout.component.js +385 -0
  186. package/lib/components/flyout/flyout.js +68 -362
  187. package/lib/components/flyout/flyout.styles.js +98 -3
  188. package/lib/components/flyout/flyout_menu.js +95 -0
  189. package/lib/components/flyout/flyout_menu.styles.js +22 -0
  190. package/{optimize/lib/components/flyout/flyout_context.js → lib/components/flyout/flyout_menu_context.js} +2 -7
  191. package/lib/components/flyout/flyout_resizable.js +3 -2
  192. package/lib/components/flyout/hooks.js +30 -0
  193. package/lib/components/flyout/index.js +14 -14
  194. package/lib/components/flyout/manager/actions.js +103 -0
  195. package/lib/components/flyout/manager/activity_stage.js +77 -0
  196. package/lib/components/flyout/manager/const.js +56 -0
  197. package/lib/components/flyout/manager/context.js +41 -0
  198. package/lib/components/flyout/manager/flyout_child.js +85 -0
  199. package/lib/components/flyout/manager/flyout_child.styles.js +32 -0
  200. package/lib/components/flyout/manager/flyout_main.js +70 -0
  201. package/lib/components/flyout/manager/flyout_main.styles.js +31 -0
  202. package/lib/components/flyout/manager/flyout_managed.js +136 -0
  203. package/lib/components/flyout/manager/flyout_managed.styles.js +70 -0
  204. package/lib/components/flyout/manager/hooks.js +161 -0
  205. package/lib/components/flyout/manager/index.js +150 -0
  206. package/lib/components/flyout/manager/layout_mode.js +171 -0
  207. package/lib/components/flyout/manager/provider.js +46 -0
  208. package/lib/components/flyout/manager/reducer.js +205 -0
  209. package/lib/components/flyout/manager/selectors.js +93 -0
  210. package/lib/components/flyout/manager/validation.js +121 -0
  211. package/lib/components/form/field_number/field_number.js +2 -2
  212. package/lib/components/form/field_password/field_password.styles.js +1 -0
  213. package/lib/components/form/field_text/field_text.js +2 -2
  214. package/lib/components/form/form.styles.js +2 -2
  215. package/lib/components/form/form_control_layout/form_control_layout.js +2 -2
  216. package/lib/components/form/form_control_layout/form_control_layout.styles.js +1 -1
  217. package/lib/components/form/form_control_layout/form_control_layout_custom_icon.js +1 -1
  218. package/lib/components/form/form_control_layout/form_control_layout_icons.js +2 -2
  219. package/lib/components/form/range/range.styles.js +2 -2
  220. package/lib/components/form/text_area/text_area.js +2 -2
  221. package/lib/components/header/header_links/header_link.js +1 -1
  222. package/lib/components/header/header_links/header_links.js +1 -1
  223. package/lib/components/header/header_logo/header_logo.js +1 -1
  224. package/lib/components/header/header_section/header_section_item_button.js +1 -1
  225. package/lib/components/icon/assets/thumbDown.js +44 -0
  226. package/lib/components/icon/assets/thumbUp.js +44 -0
  227. package/lib/components/icon/icon.js +1 -1
  228. package/lib/components/icon/icon_map.js +2 -0
  229. package/lib/components/icon/svgs/thumbDown.svg +4 -0
  230. package/lib/components/icon/svgs/thumbUp.svg +4 -0
  231. package/lib/components/key_pad_menu/key_pad_menu_item.js +1 -1
  232. package/lib/components/list_group/list_group.js +2 -2
  233. package/lib/components/list_group/list_group_item.js +2 -2
  234. package/lib/components/list_group/list_group_item_extra_action.js +1 -1
  235. package/lib/components/list_group/pinnable_list_group/pinnable_list_group.js +4 -4
  236. package/lib/components/loading/loading_logo.js +1 -1
  237. package/lib/components/markdown_editor/index.js +7 -0
  238. package/lib/components/markdown_editor/markdown_editor.js +16 -5
  239. package/lib/components/markdown_editor/markdown_editor_drop_zone.js +6 -4
  240. package/lib/components/markdown_editor/markdown_editor_footer.js +11 -118
  241. package/lib/components/markdown_editor/markdown_editor_footer.styles.js +0 -2
  242. package/lib/components/markdown_editor/markdown_editor_help_button.js +151 -0
  243. package/lib/components/markdown_editor/markdown_editor_help_button.styles.js +22 -0
  244. package/lib/components/markdown_editor/markdown_editor_toolbar.js +29 -24
  245. package/lib/components/overlay_mask/overlay_mask.js +7 -2
  246. package/lib/components/overlay_mask/overlay_mask.styles.js +11 -4
  247. package/lib/components/page/page_header/page_header_content.js +1 -1
  248. package/lib/components/pagination/pagination_button.js +1 -1
  249. package/lib/components/popover/popover.js +2 -1
  250. package/lib/components/provider/provider.js +2 -1
  251. package/lib/components/selectable/selectable_list/selectable_list.js +1 -1
  252. package/lib/components/selectable/selectable_list/selectable_list_item.js +1 -1
  253. package/lib/components/selectable/selectable_templates/selectable_template_sitewide.js +1 -1
  254. package/lib/components/table/table_header_cell.js +1 -1
  255. package/lib/components/timeline/timeline_item_icon.js +1 -1
  256. package/lib/components/toast/global_toast_list.js +1 -1
  257. package/lib/components/toast/toast.js +1 -1
  258. package/lib/components/tool_tip/icon_tip.js +1 -1
  259. package/lib/global_styling/mixins/_button.js +1 -1
  260. package/lib/services/emotion/prefixer.js +116 -22
  261. package/optimize/es/components/accessibility/index.js +2 -1
  262. package/optimize/es/components/{flyout/sessions → accessibility/live_announcer}/index.js +1 -2
  263. package/optimize/es/components/accessibility/live_announcer/live_announcer.js +68 -0
  264. package/optimize/es/components/accessibility/screen_reader_live/screen_reader_live.js +1 -0
  265. package/optimize/es/components/call_out/call_out.js +6 -2
  266. package/optimize/es/components/card/checkable_card/checkable_card.js +25 -5
  267. package/optimize/es/components/code/code_block.js +5 -2
  268. package/optimize/es/components/code/code_block_virtualized.js +5 -3
  269. package/optimize/es/components/combo_box/combo_box.a11y.js +97 -81
  270. package/optimize/es/components/combo_box/combo_box_options_list/combo_box_options_list.js +49 -24
  271. package/optimize/es/components/combo_box/combo_box_options_list/combo_box_options_list.styles.js +6 -2
  272. package/optimize/es/components/datagrid/data_grid.styles.js +1 -1
  273. package/optimize/es/components/filter_group/filter_select_item.js +15 -3
  274. package/optimize/es/components/flyout/const.js +42 -0
  275. package/optimize/es/components/flyout/flyout.component.js +346 -0
  276. package/optimize/es/components/flyout/flyout.js +39 -332
  277. package/optimize/es/components/flyout/flyout.styles.js +95 -3
  278. package/optimize/es/components/flyout/flyout_menu.js +74 -0
  279. package/optimize/es/components/flyout/flyout_menu.styles.js +16 -0
  280. package/{es/components/flyout/flyout_context.js → optimize/es/components/flyout/flyout_menu_context.js} +1 -7
  281. package/optimize/es/components/flyout/flyout_resizable.js +3 -2
  282. package/optimize/es/components/flyout/hooks.js +25 -0
  283. package/optimize/es/components/flyout/index.js +4 -2
  284. package/optimize/es/components/flyout/manager/actions.js +97 -0
  285. package/optimize/es/components/flyout/manager/activity_stage.js +71 -0
  286. package/optimize/es/components/flyout/manager/const.js +50 -0
  287. package/optimize/es/components/flyout/manager/context.js +33 -0
  288. package/optimize/es/components/flyout/manager/flyout_child.js +76 -0
  289. package/optimize/es/components/flyout/manager/flyout_child.styles.js +26 -0
  290. package/optimize/es/components/flyout/manager/flyout_main.js +61 -0
  291. package/optimize/es/components/flyout/manager/flyout_main.styles.js +25 -0
  292. package/optimize/es/components/flyout/manager/flyout_managed.js +125 -0
  293. package/optimize/es/components/flyout/manager/flyout_managed.styles.js +66 -0
  294. package/optimize/es/components/flyout/manager/hooks.js +93 -0
  295. package/optimize/es/components/flyout/manager/index.js +31 -0
  296. package/optimize/es/components/flyout/manager/layout_mode.js +159 -0
  297. package/optimize/es/components/flyout/manager/provider.js +37 -0
  298. package/optimize/es/components/flyout/manager/reducer.js +192 -0
  299. package/optimize/es/components/flyout/manager/selectors.js +87 -0
  300. package/optimize/es/components/flyout/manager/validation.js +112 -0
  301. package/optimize/es/components/form/field_password/field_password.styles.js +1 -0
  302. package/optimize/es/components/form/form.styles.js +2 -2
  303. package/optimize/es/components/form/form_control_layout/form_control_layout.styles.js +1 -1
  304. package/optimize/es/components/form/range/range.styles.js +2 -2
  305. package/optimize/es/components/icon/assets/thumbDown.js +36 -0
  306. package/optimize/es/components/icon/assets/thumbUp.js +36 -0
  307. package/optimize/es/components/icon/icon_map.js +2 -0
  308. package/optimize/es/components/markdown_editor/index.js +1 -0
  309. package/optimize/es/components/markdown_editor/markdown_editor.js +7 -3
  310. package/optimize/es/components/markdown_editor/markdown_editor_drop_zone.js +3 -2
  311. package/optimize/es/components/markdown_editor/markdown_editor_footer.js +12 -120
  312. package/optimize/es/components/markdown_editor/markdown_editor_footer.styles.js +0 -2
  313. package/optimize/es/components/markdown_editor/markdown_editor_help_button.js +139 -0
  314. package/optimize/es/components/markdown_editor/markdown_editor_help_button.styles.js +16 -0
  315. package/optimize/es/components/markdown_editor/markdown_editor_toolbar.js +20 -16
  316. package/optimize/es/components/overlay_mask/overlay_mask.js +8 -3
  317. package/optimize/es/components/overlay_mask/overlay_mask.styles.js +11 -2
  318. package/optimize/es/components/popover/popover.js +2 -1
  319. package/optimize/es/components/provider/provider.js +2 -1
  320. package/optimize/es/global_styling/mixins/_button.js +1 -1
  321. package/optimize/es/services/emotion/prefixer.js +116 -22
  322. package/optimize/lib/components/accessibility/index.js +8 -1
  323. package/optimize/lib/components/accessibility/live_announcer/index.js +16 -0
  324. package/optimize/lib/components/accessibility/live_announcer/live_announcer.js +77 -0
  325. package/optimize/lib/components/accessibility/screen_reader_live/screen_reader_live.js +1 -0
  326. package/optimize/lib/components/call_out/call_out.js +7 -3
  327. package/optimize/lib/components/card/checkable_card/checkable_card.js +24 -4
  328. package/optimize/lib/components/code/code_block.js +5 -2
  329. package/optimize/lib/components/code/code_block_virtualized.js +5 -3
  330. package/optimize/lib/components/combo_box/combo_box.a11y.js +97 -81
  331. package/optimize/lib/components/combo_box/combo_box_options_list/combo_box_options_list.js +49 -24
  332. package/optimize/lib/components/combo_box/combo_box_options_list/combo_box_options_list.styles.js +5 -1
  333. package/optimize/lib/components/datagrid/data_grid.styles.js +1 -1
  334. package/optimize/lib/components/filter_group/filter_select_item.js +15 -3
  335. package/optimize/lib/components/flyout/const.js +49 -0
  336. package/optimize/lib/components/flyout/flyout.component.js +354 -0
  337. package/optimize/lib/components/flyout/flyout.js +63 -332
  338. package/optimize/lib/components/flyout/flyout.styles.js +95 -3
  339. package/optimize/lib/components/flyout/flyout_menu.js +83 -0
  340. package/optimize/lib/components/flyout/flyout_menu.styles.js +22 -0
  341. package/{lib/components/flyout/flyout_context.js → optimize/lib/components/flyout/flyout_menu_context.js} +2 -7
  342. package/optimize/lib/components/flyout/flyout_resizable.js +3 -2
  343. package/optimize/lib/components/flyout/hooks.js +30 -0
  344. package/optimize/lib/components/flyout/index.js +14 -14
  345. package/optimize/lib/components/flyout/manager/actions.js +103 -0
  346. package/optimize/lib/components/flyout/manager/activity_stage.js +77 -0
  347. package/optimize/lib/components/flyout/manager/const.js +56 -0
  348. package/optimize/lib/components/flyout/manager/context.js +41 -0
  349. package/optimize/lib/components/flyout/manager/flyout_child.js +81 -0
  350. package/optimize/lib/components/flyout/manager/flyout_child.styles.js +32 -0
  351. package/optimize/lib/components/flyout/manager/flyout_main.js +66 -0
  352. package/optimize/lib/components/flyout/manager/flyout_main.styles.js +31 -0
  353. package/optimize/lib/components/flyout/manager/flyout_managed.js +134 -0
  354. package/optimize/lib/components/flyout/manager/flyout_managed.styles.js +71 -0
  355. package/optimize/lib/components/flyout/manager/hooks.js +159 -0
  356. package/optimize/lib/components/flyout/manager/index.js +150 -0
  357. package/optimize/lib/components/flyout/manager/layout_mode.js +169 -0
  358. package/optimize/lib/components/flyout/manager/provider.js +46 -0
  359. package/optimize/lib/components/flyout/manager/reducer.js +198 -0
  360. package/optimize/lib/components/flyout/manager/selectors.js +93 -0
  361. package/optimize/lib/components/flyout/manager/validation.js +121 -0
  362. package/optimize/lib/components/form/field_password/field_password.styles.js +1 -0
  363. package/optimize/lib/components/form/form.styles.js +2 -2
  364. package/optimize/lib/components/form/form_control_layout/form_control_layout.styles.js +1 -1
  365. package/optimize/lib/components/form/range/range.styles.js +2 -2
  366. package/optimize/lib/components/icon/assets/thumbDown.js +44 -0
  367. package/optimize/lib/components/icon/assets/thumbUp.js +44 -0
  368. package/optimize/lib/components/icon/icon_map.js +2 -0
  369. package/optimize/lib/components/icon/svgs/thumbDown.svg +4 -0
  370. package/optimize/lib/components/icon/svgs/thumbUp.svg +4 -0
  371. package/optimize/lib/components/markdown_editor/index.js +7 -0
  372. package/optimize/lib/components/markdown_editor/markdown_editor.js +7 -3
  373. package/optimize/lib/components/markdown_editor/markdown_editor_drop_zone.js +3 -2
  374. package/optimize/lib/components/markdown_editor/markdown_editor_footer.js +9 -118
  375. package/optimize/lib/components/markdown_editor/markdown_editor_footer.styles.js +0 -2
  376. package/optimize/lib/components/markdown_editor/markdown_editor_help_button.js +150 -0
  377. package/optimize/lib/components/markdown_editor/markdown_editor_help_button.styles.js +22 -0
  378. package/optimize/lib/components/markdown_editor/markdown_editor_toolbar.js +20 -16
  379. package/optimize/lib/components/overlay_mask/overlay_mask.js +7 -2
  380. package/optimize/lib/components/overlay_mask/overlay_mask.styles.js +11 -4
  381. package/optimize/lib/components/popover/popover.js +2 -1
  382. package/optimize/lib/components/provider/provider.js +2 -1
  383. package/optimize/lib/global_styling/mixins/_button.js +1 -1
  384. package/optimize/lib/services/emotion/prefixer.js +116 -22
  385. package/package.json +3 -2
  386. package/src/components/date_picker/react-datepicker/src/stylesheets/datepicker.scss +6 -7
  387. package/src/global_styling/mixins/_typography.scss +0 -1
  388. package/src/themes/amsterdam/global_styling/mixins/_typography.scss +0 -1
  389. package/test-env/components/accessibility/index.js +8 -1
  390. package/test-env/components/accessibility/live_announcer/index.js +16 -0
  391. package/test-env/components/accessibility/live_announcer/live_announcer.js +87 -0
  392. package/test-env/components/accessibility/screen_reader_live/screen_reader_live.js +7 -0
  393. package/test-env/components/avatar/avatar.js +1 -1
  394. package/test-env/components/badge/badge.js +1 -1
  395. package/test-env/components/badge/beta_badge/beta_badge.js +1 -1
  396. package/test-env/components/basic_table/basic_table.js +4 -4
  397. package/test-env/components/basic_table/in_memory_table.js +4 -4
  398. package/test-env/components/button/button.js +1 -1
  399. package/test-env/components/button/button_display/_button_display.js +1 -1
  400. package/test-env/components/button/button_display/_button_display_content.js +1 -1
  401. package/test-env/components/button/button_empty/button_empty.js +1 -1
  402. package/test-env/components/button/button_group/button_group.js +1 -1
  403. package/test-env/components/button/button_group/button_group_button.js +1 -1
  404. package/test-env/components/button/button_icon/button_icon.js +1 -1
  405. package/test-env/components/call_out/call_out.js +17 -6
  406. package/test-env/components/card/card.js +2 -2
  407. package/test-env/components/card/card_select/card_select.js +1 -1
  408. package/test-env/components/card/checkable_card/checkable_card.js +24 -4
  409. package/test-env/components/code/code_block_virtualized.js +5 -3
  410. package/test-env/components/collapsible_nav/collapsible_nav.js +4 -106
  411. package/test-env/components/collapsible_nav/collapsible_nav_group/collapsible_nav_group.js +1 -1
  412. package/test-env/components/collapsible_nav_beta/_kibana_solution/collapsible_nav_kibana_solution.js +1 -1
  413. package/test-env/components/collapsible_nav_beta/collapsible_nav_item/collapsed/collapsed_nav_button.js +1 -1
  414. package/test-env/components/collapsible_nav_beta/collapsible_nav_item/collapsed/collapsed_nav_item.js +2 -2
  415. package/test-env/components/collapsible_nav_beta/collapsible_nav_item/collapsed/collapsed_nav_popover.js +2 -2
  416. package/test-env/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_item.js +4 -4
  417. package/test-env/components/combo_box/combo_box.a11y.js +97 -81
  418. package/test-env/components/combo_box/combo_box.js +3 -2
  419. package/test-env/components/combo_box/combo_box_options_list/combo_box_options_list.js +50 -25
  420. package/test-env/components/combo_box/combo_box_options_list/combo_box_options_list.styles.js +5 -1
  421. package/test-env/components/comment_list/comment.js +2 -2
  422. package/test-env/components/comment_list/comment_event.js +1 -1
  423. package/test-env/components/comment_list/comment_list.js +2 -2
  424. package/test-env/components/comment_list/comment_timeline.js +1 -1
  425. package/test-env/components/context_menu/context_menu_item.js +1 -1
  426. package/test-env/components/datagrid/body/cell/data_grid_cell.js +12 -12
  427. package/test-env/components/datagrid/body/data_grid_body.js +7 -7
  428. package/test-env/components/datagrid/body/data_grid_body_custom.js +7 -7
  429. package/test-env/components/datagrid/body/data_grid_body_virtualized.js +7 -7
  430. package/test-env/components/datagrid/body/header/data_grid_header_cell.js +6 -6
  431. package/test-env/components/datagrid/controls/column_sorting.js +7 -7
  432. package/test-env/components/datagrid/controls/column_sorting_draggable.js +1 -1
  433. package/test-env/components/datagrid/controls/data_grid_toolbar_control.js +1 -1
  434. package/test-env/components/datagrid/data_grid.styles.js +1 -1
  435. package/test-env/components/datagrid/utils/in_memory.js +6 -6
  436. package/test-env/components/date_picker/date_picker.js +2 -2
  437. package/test-env/components/date_picker/date_picker_range.js +1 -1
  438. package/test-env/components/empty_prompt/empty_prompt.js +1 -1
  439. package/test-env/components/facet/facet_button.js +1 -1
  440. package/test-env/components/filter_group/filter_select_item.js +16 -3
  441. package/test-env/components/flyout/const.js +49 -0
  442. package/test-env/components/flyout/flyout.component.js +374 -0
  443. package/test-env/components/flyout/flyout.styles.js +95 -3
  444. package/test-env/components/flyout/flyout_menu.js +94 -0
  445. package/test-env/components/flyout/flyout_menu.styles.js +22 -0
  446. package/test-env/components/flyout/{flyout_context.js → flyout_menu_context.js} +2 -7
  447. package/test-env/components/flyout/flyout_resizable.js +3 -2
  448. package/test-env/components/flyout/hooks.js +30 -0
  449. package/test-env/components/flyout/index.js +14 -14
  450. package/test-env/components/flyout/manager/actions.js +103 -0
  451. package/test-env/components/flyout/manager/activity_stage.js +77 -0
  452. package/test-env/components/flyout/manager/const.js +56 -0
  453. package/test-env/components/flyout/manager/context.js +41 -0
  454. package/test-env/components/flyout/manager/flyout_child.js +81 -0
  455. package/test-env/components/flyout/manager/flyout_child.styles.js +32 -0
  456. package/test-env/components/flyout/manager/flyout_main.js +66 -0
  457. package/test-env/components/flyout/manager/flyout_main.styles.js +31 -0
  458. package/test-env/components/flyout/manager/flyout_managed.js +134 -0
  459. package/test-env/components/flyout/manager/flyout_managed.styles.js +71 -0
  460. package/test-env/components/flyout/manager/hooks.js +159 -0
  461. package/test-env/components/flyout/manager/index.js +150 -0
  462. package/test-env/components/flyout/manager/layout_mode.js +169 -0
  463. package/test-env/components/flyout/manager/provider.js +46 -0
  464. package/test-env/components/flyout/manager/reducer.js +198 -0
  465. package/test-env/components/flyout/manager/selectors.js +93 -0
  466. package/test-env/components/flyout/manager/validation.js +121 -0
  467. package/test-env/components/form/field_number/field_number.js +2 -2
  468. package/test-env/components/form/field_password/field_password.styles.js +1 -0
  469. package/test-env/components/form/field_text/field_text.js +2 -2
  470. package/test-env/components/form/form.styles.js +2 -2
  471. package/test-env/components/form/form_control_layout/form_control_layout.js +2 -2
  472. package/test-env/components/form/form_control_layout/form_control_layout.styles.js +1 -1
  473. package/test-env/components/form/form_control_layout/form_control_layout_custom_icon.js +1 -1
  474. package/test-env/components/form/form_control_layout/form_control_layout_icons.js +2 -2
  475. package/test-env/components/form/range/range.styles.js +2 -2
  476. package/test-env/components/form/text_area/text_area.js +2 -2
  477. package/test-env/components/header/header_links/header_link.js +1 -1
  478. package/test-env/components/header/header_links/header_links.js +1 -1
  479. package/test-env/components/header/header_logo/header_logo.js +1 -1
  480. package/test-env/components/header/header_section/header_section_item_button.js +1 -1
  481. package/test-env/components/icon/assets/thumbDown.js +44 -0
  482. package/test-env/components/icon/assets/thumbUp.js +44 -0
  483. package/test-env/components/icon/icon_map.js +2 -0
  484. package/test-env/components/key_pad_menu/key_pad_menu_item.js +1 -1
  485. package/test-env/components/list_group/list_group.js +2 -2
  486. package/test-env/components/list_group/list_group_item.js +2 -2
  487. package/test-env/components/list_group/list_group_item_extra_action.js +1 -1
  488. package/test-env/components/list_group/pinnable_list_group/pinnable_list_group.js +4 -4
  489. package/test-env/components/loading/loading_logo.js +1 -1
  490. package/test-env/components/markdown_editor/index.js +7 -0
  491. package/test-env/components/markdown_editor/markdown_editor.js +16 -5
  492. package/test-env/components/markdown_editor/markdown_editor_drop_zone.js +6 -4
  493. package/test-env/components/markdown_editor/markdown_editor_footer.js +10 -119
  494. package/test-env/components/markdown_editor/markdown_editor_footer.styles.js +0 -2
  495. package/test-env/components/markdown_editor/markdown_editor_help_button.js +150 -0
  496. package/test-env/components/markdown_editor/markdown_editor_help_button.styles.js +22 -0
  497. package/test-env/components/markdown_editor/markdown_editor_toolbar.js +29 -24
  498. package/test-env/components/overlay_mask/overlay_mask.js +7 -2
  499. package/test-env/components/overlay_mask/overlay_mask.styles.js +11 -4
  500. package/test-env/components/page/page_header/page_header_content.js +1 -1
  501. package/test-env/components/pagination/pagination_button.js +1 -1
  502. package/test-env/components/popover/popover.js +2 -1
  503. package/test-env/components/provider/provider.js +2 -1
  504. package/test-env/components/selectable/selectable_list/selectable_list.js +1 -1
  505. package/test-env/components/selectable/selectable_list/selectable_list_item.js +1 -1
  506. package/test-env/components/selectable/selectable_templates/selectable_template_sitewide.js +1 -1
  507. package/test-env/components/table/table_header_cell.js +1 -1
  508. package/test-env/components/timeline/timeline_item_icon.js +1 -1
  509. package/test-env/components/toast/global_toast_list.js +1 -1
  510. package/test-env/components/toast/toast.js +1 -1
  511. package/test-env/components/tool_tip/icon_tip.js +1 -1
  512. package/test-env/global_styling/mixins/_button.js +1 -1
  513. package/test-env/services/emotion/prefixer.js +116 -22
  514. package/es/components/flyout/flyout_child.js +0 -223
  515. package/es/components/flyout/flyout_child.styles.js +0 -32
  516. package/es/components/flyout/flyout_child_manager.js +0 -114
  517. package/es/components/flyout/sessions/flyout_provider.js +0 -95
  518. package/es/components/flyout/sessions/flyout_reducer.js +0 -195
  519. package/es/components/flyout/sessions/use_eui_flyout.js +0 -82
  520. package/lib/components/flyout/flyout_child.js +0 -231
  521. package/lib/components/flyout/flyout_child.styles.js +0 -38
  522. package/lib/components/flyout/flyout_child_manager.js +0 -122
  523. package/lib/components/flyout/sessions/flyout_provider.js +0 -102
  524. package/lib/components/flyout/sessions/flyout_reducer.js +0 -202
  525. package/lib/components/flyout/sessions/index.js +0 -25
  526. package/lib/components/flyout/sessions/use_eui_flyout.js +0 -88
  527. package/optimize/es/components/flyout/flyout_child.js +0 -178
  528. package/optimize/es/components/flyout/flyout_child.styles.js +0 -32
  529. package/optimize/es/components/flyout/flyout_child_manager.js +0 -100
  530. package/optimize/es/components/flyout/sessions/flyout_provider.js +0 -90
  531. package/optimize/es/components/flyout/sessions/flyout_reducer.js +0 -187
  532. package/optimize/es/components/flyout/sessions/use_eui_flyout.js +0 -82
  533. package/optimize/lib/components/flyout/flyout_child.js +0 -186
  534. package/optimize/lib/components/flyout/flyout_child.styles.js +0 -38
  535. package/optimize/lib/components/flyout/flyout_child_manager.js +0 -110
  536. package/optimize/lib/components/flyout/sessions/flyout_provider.js +0 -100
  537. package/optimize/lib/components/flyout/sessions/flyout_reducer.js +0 -195
  538. package/optimize/lib/components/flyout/sessions/index.js +0 -25
  539. package/optimize/lib/components/flyout/sessions/use_eui_flyout.js +0 -88
  540. package/test-env/components/flyout/flyout_child.js +0 -230
  541. package/test-env/components/flyout/flyout_child.styles.js +0 -38
  542. package/test-env/components/flyout/flyout_child_manager.js +0 -119
  543. package/test-env/components/flyout/sessions/flyout_provider.js +0 -100
  544. package/test-env/components/flyout/sessions/flyout_reducer.js +0 -195
  545. package/test-env/components/flyout/sessions/index.js +0 -25
  546. package/test-env/components/flyout/sessions/use_eui_flyout.js +0 -88
  547. /package/es/components/flyout/{sessions → manager}/types.js +0 -0
  548. /package/lib/components/flyout/{sessions → manager}/types.js +0 -0
  549. /package/optimize/es/components/flyout/{sessions → manager}/types.js +0 -0
  550. /package/optimize/lib/components/flyout/{sessions → manager}/types.js +0 -0
  551. /package/test-env/components/flyout/{sessions → manager}/types.js +0 -0
package/eui.d.ts CHANGED
@@ -1140,7 +1140,7 @@ declare module '@elastic/eui/src/global_styling/mixins/_button' {
1140
1140
  minWidth: number;
1141
1141
  height: string;
1142
1142
  radius: import("csstype").Property.BorderRadius<string | number> | undefined;
1143
- fontScale: "s" | "xs";
1143
+ fontScale: "xs";
1144
1144
  };
1145
1145
  s: {
1146
1146
  minWidth: number;
@@ -2869,6 +2869,8 @@ declare module '@elastic/eui/src/components/icon/icon_map' {
2869
2869
  tag: string;
2870
2870
  tear: string;
2871
2871
  temperature: string;
2872
+ thumbDown: string;
2873
+ thumbUp: string;
2872
2874
  timeline: string;
2873
2875
  timelineWithArrow: string;
2874
2876
  timelionApp: string;
@@ -3041,7 +3043,7 @@ declare module '@elastic/eui/src/components/icon/icon' {
3041
3043
  import { WithEuiStylesMemoizerProps } from '@elastic/eui/src/services';
3042
3044
  export { COLORS } from '@elastic/eui/src/components/icon/named_colors';
3043
3045
  import { NamedColor } from '@elastic/eui/src/components/icon/named_colors';
3044
- export const TYPES: ("string" | "number" | "function" | "article" | "code" | "link" | "menu" | "search" | "section" | "filter" | "image" | "stop" | "at" | "key" | "error" | "warning" | "scale" | "color" | "refresh" | "push" | "copy" | "cut" | "pause" | "play" | "offline" | "online" | "storage" | "temperature" | "wordWrap" | "grid" | "empty" | "invert" | "grab" | "help" | "move" | "spaces" | "dot" | "alert" | "document" | "list" | "email" | "annotation" | "container" | "accessibility" | "aggregate" | "analyzeEvent" | "apps" | "arrowStart" | "arrowEnd" | "asterisk" | "flask" | "bell" | "bellSlash" | "beta" | "bolt" | "branch" | "branchUser" | "broom" | "brush" | "bug" | "bullseye" | "calendar" | "check" | "checkCircle" | "checkInCircleFilled" | "cheer" | "clickLeft" | "clickRight" | "clock" | "clockCounter" | "cloudDrizzle" | "cloudStormy" | "cloudSunny" | "cluster" | "comment" | "compute" | "console" | "continuityAbove" | "continuityAboveBelow" | "continuityBelow" | "continuityWithin" | "contrast" | "contrastHigh" | "controls" | "cross" | "crosshairs" | "currency" | "database" | "desktop" | "diff" | "documentEdit" | "documentation" | "documents" | "dotInCircle" | "doubleArrowLeft" | "doubleArrowRight" | "download" | "editorDistributeHorizontal" | "editorDistributeVertical" | "editorItemAlignBottom" | "editorItemAlignCenter" | "editorItemAlignLeft" | "editorItemAlignMiddle" | "editorItemAlignRight" | "editorItemAlignTop" | "editorPositionBottomLeft" | "editorPositionBottomRight" | "editorPositionTopLeft" | "editorPositionTopRight" | "endpoint" | "eql" | "eraser" | "errorFilled" | "esqlVis" | "exit" | "expand" | "expandMini" | "export" | "eye" | "filterExclude" | "filterIgnore" | "filterInclude" | "filterInCircle" | "flag" | "fold" | "frameNext" | "framePrevious" | "fullScreenExit" | "gear" | "readOnly" | "globe" | "grabOmnidirectional" | "gradient" | "heart" | "heatmap" | "home" | "info" | "index" | "indexTemporary" | "infinity" | "inputOutput" | "inspect" | "ip" | "keyboard" | "kubernetesNode" | "kubernetesPod" | "launch" | "layers" | "lettering" | "lineDashed" | "lineDotted" | "lineSolid" | "lock" | "lockOpen" | "magnet" | "magnifyWithExclamation" | "magnifyWithMinus" | "magnifyWithPlus" | "memory" | "menuDown" | "menuLeft" | "menuRight" | "menuUp" | "merge" | "minimize" | "minus" | "mobile" | "moon" | "namespace" | "nested" | "node" | "package" | "pageSelect" | "pagesSelect" | "palette" | "partial" | "payment" | "pencil" | "percent" | "pin" | "pipeBreaks" | "pipeNoBreaks" | "pivot" | "playFilled" | "plugs" | "plus" | "popout" | "question" | "quote" | "reporter" | "save" | "securitySignal" | "securitySignalDetected" | "securitySignalResolved" | "sessionViewer" | "shard" | "share" | "snowflake" | "sortAscending" | "sortDescending" | "sortLeft" | "sortRight" | "sortable" | "sparkles" | "starPlusEmpty" | "starPlusFilled" | "stats" | "submodule" | "sun" | "symlink" | "tableOfContents" | "tag" | "tear" | "timeline" | "timelineWithArrow" | "timeRefresh" | "timeslider" | "training" | "transitionLeftIn" | "transitionLeftOut" | "transitionTopIn" | "transitionTopOut" | "trash" | "unfold" | "unlink" | "user" | "users" | "vector" | "videoPlayer" | "warningFilled" | "web" | "wordWrapDisabled" | "wrench" | "tokenAlias" | "tokenAnnotation" | "tokenArray" | "tokenBinary" | "tokenBoolean" | "tokenClass" | "tokenCompletionSuggester" | "tokenConstant" | "tokenDate" | "tokenDimension" | "tokenElement" | "tokenEnum" | "tokenEnumMember" | "tokenEvent" | "tokenException" | "tokenField" | "tokenFile" | "tokenFlattened" | "tokenFunction" | "tokenGeo" | "tokenHistogram" | "tokenInterface" | "tokenIP" | "tokenJoin" | "tokenKey" | "tokenKeyword" | "tokenMethod" | "tokenMetricCounter" | "tokenMetricGauge" | "tokenModule" | "tokenNamespace" | "tokenNested" | "tokenNull" | "tokenNumber" | "tokenObject" | "tokenOperator" | "tokenPackage" | "tokenParameter" | "tokenPercolator" | "tokenProperty" | "tokenRange" | "tokenRankFeature" | "tokenRankFeatures" | "tokenRepo" | "tokenSearchType" | "tokenSemanticText" | "tokenShape" | "tokenString" | "tokenStruct" | "tokenSymbol" | "tokenTag" | "tokenText" | "tokenTokenCount" | "tokenVariable" | "tokenVectorDense" | "tokenVectorSparse" | "addDataApp" | "advancedSettingsApp" | "agentApp" | "anomalyChart" | "anomalySwimLane" | "apmApp" | "apmTrace" | "appSearchApp" | "arrowDown" | "arrowLeft" | "arrowRight" | "arrowUp" | "auditbeatApp" | "beaker" | "boxesHorizontal" | "boxesVertical" | "canvasApp" | "casesApp" | "changePointDetection" | "classificationJob" | "codeApp" | "consoleApp" | "controlsHorizontal" | "controlsVertical" | "copyClipboard" | "createAdvancedJob" | "createGenericJob" | "createGeoJob" | "createMultiMetricJob" | "createPopulationJob" | "createSingleMetricJob" | "crossClusterReplicationApp" | "crossInCircle" | "dashboardApp" | "dataVisualizer" | "devToolsApp" | "discoverApp" | "discuss" | "editorAlignCenter" | "editorAlignLeft" | "editorAlignRight" | "editorBold" | "editorChecklist" | "editorCodeBlock" | "editorComment" | "editorHeading" | "editorItalic" | "editorLink" | "editorOrderedList" | "editorRedo" | "editorStrike" | "editorTable" | "editorUnderline" | "editorUndo" | "editorUnorderedList" | "emsApp" | "exportAction" | "eyeClosed" | "faceHappy" | "faceNeutral" | "faceSad" | "fieldStatistics" | "filebeatApp" | "fleetApp" | "folderCheck" | "folderClosed" | "folderExclamation" | "folderOpen" | "fullScreen" | "gisApp" | "glasses" | "grabHorizontal" | "graphApp" | "grokApp" | "heartbeatApp" | "importAction" | "indexClose" | "indexEdit" | "indexFlush" | "indexManagementApp" | "indexMapping" | "indexOpen" | "indexPatternApp" | "indexRollupApp" | "indexRuntime" | "indexSettings" | "kqlField" | "kqlFunction" | "kqlOperand" | "kqlSelector" | "kqlValue" | "lensApp" | "listAdd" | "logPatternAnalysis" | "logRateAnalysis" | "logoAWS" | "logoAWSMono" | "logoAerospike" | "logoApache" | "logoAppSearch" | "logoAzure" | "logoAzureMono" | "logoBeats" | "logoBusinessAnalytics" | "logoCeph" | "logoCloud" | "logoCloudEnterprise" | "logoCode" | "logoCodesandbox" | "logoCouchbase" | "logoDocker" | "logoDropwizard" | "logoElastic" | "logoElasticStack" | "logoElasticsearch" | "logoEnterpriseSearch" | "logoEtcd" | "logoGCP" | "logoGCPMono" | "logoGithub" | "logoGmail" | "logoGolang" | "logoGoogleG" | "logoHAproxy" | "logoIBM" | "logoIBMMono" | "logoKafka" | "logoKibana" | "logoKubernetes" | "logoLogging" | "logoLogstash" | "logoMaps" | "logoMemcached" | "logoMetrics" | "logoMongodb" | "logoMySQL" | "logoNginx" | "logoObservability" | "logoOsquery" | "logoPhp" | "logoPostgres" | "logoPrometheus" | "logoRabbitmq" | "logoRedis" | "logoSecurity" | "logoSiteSearch" | "logoSketch" | "logoSlack" | "logoUptime" | "logoVulnerabilityManagement" | "logoWebhook" | "logoWindows" | "logoWorkplaceSearch" | "logsApp" | "logstashFilter" | "logstashIf" | "logstashInput" | "logstashOutput" | "logstashQueue" | "machineLearningApp" | "managementApp" | "mapMarker" | "metricbeatApp" | "metricsApp" | "minusInCircle" | "minusInCircleFilled" | "minusInSquare" | "monitoringApp" | "newChat" | "notebookApp" | "outlierDetectionJob" | "packetbeatApp" | "paperClip" | "pinFilled" | "pipelineApp" | "plusInCircle" | "plusInCircleFilled" | "plusInSquare" | "recentlyViewedApp" | "regressionJob" | "reportingApp" | "returnKey" | "savedObjectsApp" | "searchProfilerApp" | "securityAnalyticsApp" | "securityApp" | "singleMetricViewer" | "sortDown" | "sortUp" | "spacesApp" | "sqlApp" | "starEmpty" | "starEmptySpace" | "starFilled" | "starFilledSpace" | "starMinusEmpty" | "starMinusFilled" | "stopFilled" | "stopSlash" | "swatchInput" | "tableDensityCompact" | "tableDensityExpanded" | "tableDensityNormal" | "timelionApp" | "upgradeAssistantApp" | "uptimeApp" | "userAvatar" | "usersRolesApp" | "visArea" | "visAreaStacked" | "visBarHorizontal" | "visBarHorizontalStacked" | "visBarVertical" | "visBarVerticalStacked" | "visGauge" | "visGoal" | "visLine" | "visMapCoordinate" | "visMapRegion" | "visMetric" | "visPie" | "visTable" | "visTagCloud" | "visText" | "visTimelion" | "visVega" | "visVisualBuilder" | "visualizeApp" | "vulnerabilityManagementApp" | "watchesApp" | "workplaceSearchApp" | "tokenDenseVector")[];
3046
+ export const TYPES: ("string" | "number" | "function" | "article" | "code" | "link" | "menu" | "search" | "section" | "filter" | "image" | "stop" | "at" | "key" | "error" | "warning" | "scale" | "color" | "refresh" | "push" | "copy" | "cut" | "pause" | "play" | "offline" | "online" | "storage" | "temperature" | "wordWrap" | "grid" | "empty" | "invert" | "grab" | "help" | "move" | "spaces" | "dot" | "alert" | "document" | "list" | "email" | "annotation" | "container" | "accessibility" | "aggregate" | "analyzeEvent" | "apps" | "arrowStart" | "arrowEnd" | "asterisk" | "flask" | "bell" | "bellSlash" | "beta" | "bolt" | "branch" | "branchUser" | "broom" | "brush" | "bug" | "bullseye" | "calendar" | "check" | "checkCircle" | "checkInCircleFilled" | "cheer" | "clickLeft" | "clickRight" | "clock" | "clockCounter" | "cloudDrizzle" | "cloudStormy" | "cloudSunny" | "cluster" | "comment" | "compute" | "console" | "continuityAbove" | "continuityAboveBelow" | "continuityBelow" | "continuityWithin" | "contrast" | "contrastHigh" | "controls" | "cross" | "crosshairs" | "currency" | "database" | "desktop" | "diff" | "documentEdit" | "documentation" | "documents" | "dotInCircle" | "doubleArrowLeft" | "doubleArrowRight" | "download" | "editorDistributeHorizontal" | "editorDistributeVertical" | "editorItemAlignBottom" | "editorItemAlignCenter" | "editorItemAlignLeft" | "editorItemAlignMiddle" | "editorItemAlignRight" | "editorItemAlignTop" | "editorPositionBottomLeft" | "editorPositionBottomRight" | "editorPositionTopLeft" | "editorPositionTopRight" | "endpoint" | "eql" | "eraser" | "errorFilled" | "esqlVis" | "exit" | "expand" | "expandMini" | "export" | "eye" | "filterExclude" | "filterIgnore" | "filterInclude" | "filterInCircle" | "flag" | "fold" | "frameNext" | "framePrevious" | "fullScreenExit" | "gear" | "readOnly" | "globe" | "grabOmnidirectional" | "gradient" | "heart" | "heatmap" | "home" | "info" | "index" | "indexTemporary" | "infinity" | "inputOutput" | "inspect" | "ip" | "keyboard" | "kubernetesNode" | "kubernetesPod" | "launch" | "layers" | "lettering" | "lineDashed" | "lineDotted" | "lineSolid" | "lock" | "lockOpen" | "magnet" | "magnifyWithExclamation" | "magnifyWithMinus" | "magnifyWithPlus" | "memory" | "menuDown" | "menuLeft" | "menuRight" | "menuUp" | "merge" | "minimize" | "minus" | "mobile" | "moon" | "namespace" | "nested" | "node" | "package" | "pageSelect" | "pagesSelect" | "palette" | "partial" | "payment" | "pencil" | "percent" | "pin" | "pipeBreaks" | "pipeNoBreaks" | "pivot" | "playFilled" | "plugs" | "plus" | "popout" | "question" | "quote" | "reporter" | "save" | "securitySignal" | "securitySignalDetected" | "securitySignalResolved" | "sessionViewer" | "shard" | "share" | "snowflake" | "sortAscending" | "sortDescending" | "sortLeft" | "sortRight" | "sortable" | "sparkles" | "starPlusEmpty" | "starPlusFilled" | "stats" | "submodule" | "sun" | "symlink" | "tableOfContents" | "tag" | "tear" | "thumbDown" | "thumbUp" | "timeline" | "timelineWithArrow" | "timeRefresh" | "timeslider" | "training" | "transitionLeftIn" | "transitionLeftOut" | "transitionTopIn" | "transitionTopOut" | "trash" | "unfold" | "unlink" | "user" | "users" | "vector" | "videoPlayer" | "warningFilled" | "web" | "wordWrapDisabled" | "wrench" | "tokenAlias" | "tokenAnnotation" | "tokenArray" | "tokenBinary" | "tokenBoolean" | "tokenClass" | "tokenCompletionSuggester" | "tokenConstant" | "tokenDate" | "tokenDimension" | "tokenElement" | "tokenEnum" | "tokenEnumMember" | "tokenEvent" | "tokenException" | "tokenField" | "tokenFile" | "tokenFlattened" | "tokenFunction" | "tokenGeo" | "tokenHistogram" | "tokenInterface" | "tokenIP" | "tokenJoin" | "tokenKey" | "tokenKeyword" | "tokenMethod" | "tokenMetricCounter" | "tokenMetricGauge" | "tokenModule" | "tokenNamespace" | "tokenNested" | "tokenNull" | "tokenNumber" | "tokenObject" | "tokenOperator" | "tokenPackage" | "tokenParameter" | "tokenPercolator" | "tokenProperty" | "tokenRange" | "tokenRankFeature" | "tokenRankFeatures" | "tokenRepo" | "tokenSearchType" | "tokenSemanticText" | "tokenShape" | "tokenString" | "tokenStruct" | "tokenSymbol" | "tokenTag" | "tokenText" | "tokenTokenCount" | "tokenVariable" | "tokenVectorDense" | "tokenVectorSparse" | "addDataApp" | "advancedSettingsApp" | "agentApp" | "anomalyChart" | "anomalySwimLane" | "apmApp" | "apmTrace" | "appSearchApp" | "arrowDown" | "arrowLeft" | "arrowRight" | "arrowUp" | "auditbeatApp" | "beaker" | "boxesHorizontal" | "boxesVertical" | "canvasApp" | "casesApp" | "changePointDetection" | "classificationJob" | "codeApp" | "consoleApp" | "controlsHorizontal" | "controlsVertical" | "copyClipboard" | "createAdvancedJob" | "createGenericJob" | "createGeoJob" | "createMultiMetricJob" | "createPopulationJob" | "createSingleMetricJob" | "crossClusterReplicationApp" | "crossInCircle" | "dashboardApp" | "dataVisualizer" | "devToolsApp" | "discoverApp" | "discuss" | "editorAlignCenter" | "editorAlignLeft" | "editorAlignRight" | "editorBold" | "editorChecklist" | "editorCodeBlock" | "editorComment" | "editorHeading" | "editorItalic" | "editorLink" | "editorOrderedList" | "editorRedo" | "editorStrike" | "editorTable" | "editorUnderline" | "editorUndo" | "editorUnorderedList" | "emsApp" | "exportAction" | "eyeClosed" | "faceHappy" | "faceNeutral" | "faceSad" | "fieldStatistics" | "filebeatApp" | "fleetApp" | "folderCheck" | "folderClosed" | "folderExclamation" | "folderOpen" | "fullScreen" | "gisApp" | "glasses" | "grabHorizontal" | "graphApp" | "grokApp" | "heartbeatApp" | "importAction" | "indexClose" | "indexEdit" | "indexFlush" | "indexManagementApp" | "indexMapping" | "indexOpen" | "indexPatternApp" | "indexRollupApp" | "indexRuntime" | "indexSettings" | "kqlField" | "kqlFunction" | "kqlOperand" | "kqlSelector" | "kqlValue" | "lensApp" | "listAdd" | "logPatternAnalysis" | "logRateAnalysis" | "logoAWS" | "logoAWSMono" | "logoAerospike" | "logoApache" | "logoAppSearch" | "logoAzure" | "logoAzureMono" | "logoBeats" | "logoBusinessAnalytics" | "logoCeph" | "logoCloud" | "logoCloudEnterprise" | "logoCode" | "logoCodesandbox" | "logoCouchbase" | "logoDocker" | "logoDropwizard" | "logoElastic" | "logoElasticStack" | "logoElasticsearch" | "logoEnterpriseSearch" | "logoEtcd" | "logoGCP" | "logoGCPMono" | "logoGithub" | "logoGmail" | "logoGolang" | "logoGoogleG" | "logoHAproxy" | "logoIBM" | "logoIBMMono" | "logoKafka" | "logoKibana" | "logoKubernetes" | "logoLogging" | "logoLogstash" | "logoMaps" | "logoMemcached" | "logoMetrics" | "logoMongodb" | "logoMySQL" | "logoNginx" | "logoObservability" | "logoOsquery" | "logoPhp" | "logoPostgres" | "logoPrometheus" | "logoRabbitmq" | "logoRedis" | "logoSecurity" | "logoSiteSearch" | "logoSketch" | "logoSlack" | "logoUptime" | "logoVulnerabilityManagement" | "logoWebhook" | "logoWindows" | "logoWorkplaceSearch" | "logsApp" | "logstashFilter" | "logstashIf" | "logstashInput" | "logstashOutput" | "logstashQueue" | "machineLearningApp" | "managementApp" | "mapMarker" | "metricbeatApp" | "metricsApp" | "minusInCircle" | "minusInCircleFilled" | "minusInSquare" | "monitoringApp" | "newChat" | "notebookApp" | "outlierDetectionJob" | "packetbeatApp" | "paperClip" | "pinFilled" | "pipelineApp" | "plusInCircle" | "plusInCircleFilled" | "plusInSquare" | "recentlyViewedApp" | "regressionJob" | "reportingApp" | "returnKey" | "savedObjectsApp" | "searchProfilerApp" | "securityAnalyticsApp" | "securityApp" | "singleMetricViewer" | "sortDown" | "sortUp" | "spacesApp" | "sqlApp" | "starEmpty" | "starEmptySpace" | "starFilled" | "starFilledSpace" | "starMinusEmpty" | "starMinusFilled" | "stopFilled" | "stopSlash" | "swatchInput" | "tableDensityCompact" | "tableDensityExpanded" | "tableDensityNormal" | "timelionApp" | "upgradeAssistantApp" | "uptimeApp" | "userAvatar" | "usersRolesApp" | "visArea" | "visAreaStacked" | "visBarHorizontal" | "visBarHorizontalStacked" | "visBarVertical" | "visBarVerticalStacked" | "visGauge" | "visGoal" | "visLine" | "visMapCoordinate" | "visMapRegion" | "visMetric" | "visPie" | "visTable" | "visTagCloud" | "visText" | "visTimelion" | "visVega" | "visVisualBuilder" | "visualizeApp" | "vulnerabilityManagementApp" | "watchesApp" | "workplaceSearchApp" | "tokenDenseVector")[];
3045
3047
  export type EuiIconType = keyof typeof typeToPathMap;
3046
3048
  export type IconType = EuiIconType | string | ComponentType;
3047
3049
  export type IconColor = string | NamedColor;
@@ -5668,47 +5670,312 @@ declare module '@elastic/eui/src/components/table' {
5668
5670
  export { EuiTableRowCellCheckbox } from '@elastic/eui/src/components/table/table_row_cell_checkbox';
5669
5671
 
5670
5672
  }
5671
- declare module '@elastic/eui/src/components/overlay_mask/overlay_mask.styles' {
5672
- import { UseEuiTheme } from '@elastic/eui/src/services';
5673
- export const euiOverlayMaskStyles: ({ euiTheme, highContrastMode, }: UseEuiTheme) => {
5674
- euiOverlayMask: string;
5675
- aboveHeader: string;
5676
- belowHeader: string;
5677
- };
5673
+ declare module '@elastic/eui/src/components/flyout/manager/const' {
5674
+ /**
5675
+ * Data attribute applied to a managed flyout element to help identify it as a managed flyout.
5676
+ */
5677
+ export const PROPERTY_FLYOUT = "data-managed-flyout";
5678
+ /**
5679
+ * Data attribute indicating whether the flyout is the `main` or `child` flyout.
5680
+ */
5681
+ export const PROPERTY_LEVEL = "data-managed-flyout-level";
5682
+ /**
5683
+ * Data attribute representing how multiple flyouts are laid out
5684
+ * (`side-by-side` or `stacked`).
5685
+ */
5686
+ export const PROPERTY_LAYOUT_MODE = "data-managed-flyout-layout-mode";
5687
+ /** Stacked layout mode where child flyouts overlay on top of the main flyout. */
5688
+ export const LAYOUT_MODE_STACKED = "stacked";
5689
+ /** Side-by-side layout mode where child flyouts render adjacent to the main flyout. */
5690
+ export const LAYOUT_MODE_SIDE_BY_SIDE = "side-by-side";
5691
+ /** The primary (parent) flyout in a session. */
5692
+ export const LEVEL_MAIN = "main";
5693
+ /** The secondary (child) flyout spawned by the main flyout. */
5694
+ export const LEVEL_CHILD = "child";
5695
+ /** Flyout is mounting and playing its opening animation. */
5696
+ export const STAGE_OPENING = "opening";
5697
+ /** Flyout is fully visible and interactive. */
5698
+ export const STAGE_ACTIVE = "active";
5699
+ /** Flyout is unmounted or not currently visible/interactable. */
5700
+ export const STAGE_INACTIVE = "inactive";
5701
+ /** Main flyout is transitioning behind an active session flyout. */
5702
+ export const STAGE_BACKGROUNDING = "backgrounding";
5703
+ /** Main flyout is backgrounded behind an active session flyout. */
5704
+ export const STAGE_BACKGROUNDED = "backgrounded";
5705
+ /** Flyout is returning to the foreground from a backgrounded state. */
5706
+ export const STAGE_RETURNING = "returning";
5707
+ /** Flyout is playing its closing animation. */
5708
+ export const STAGE_CLOSING = "closing";
5709
+
5710
+ }
5711
+ declare module '@elastic/eui/src/components/flyout/manager/types' {
5712
+ import type { Action } from '@elastic/eui/src/components/flyout/manager/actions';
5713
+ 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';
5714
+ export type EuiFlyoutLayoutMode = typeof LAYOUT_MODE_STACKED | typeof LAYOUT_MODE_SIDE_BY_SIDE;
5715
+ export type EuiFlyoutLevel = typeof LEVEL_MAIN | typeof LEVEL_CHILD;
5716
+ export type EuiFlyoutActivityStage = typeof STAGE_OPENING | typeof STAGE_ACTIVE | typeof STAGE_INACTIVE | typeof STAGE_BACKGROUNDING | typeof STAGE_BACKGROUNDED | typeof STAGE_RETURNING | typeof STAGE_CLOSING;
5717
+ export interface EuiManagedFlyoutState {
5718
+ flyoutId: string;
5719
+ level: EuiFlyoutLevel;
5720
+ width?: number;
5721
+ size?: string;
5722
+ activityStage?: EuiFlyoutActivityStage;
5723
+ }
5724
+ export interface FlyoutSession {
5725
+ main: string;
5726
+ child: string | null;
5727
+ }
5728
+ export interface EuiFlyoutManagerState {
5729
+ sessions: FlyoutSession[];
5730
+ flyouts: EuiManagedFlyoutState[];
5731
+ layoutMode: EuiFlyoutLayoutMode;
5732
+ }
5733
+ /**
5734
+ * Public API surface provided through React context.
5735
+ * Kept intentionally decoupled from action types to avoid module cycles.
5736
+ */
5737
+ export interface FlyoutManagerApi {
5738
+ state: EuiFlyoutManagerState;
5739
+ dispatch: (action: Action) => void;
5740
+ addFlyout: (flyoutId: string, level?: EuiFlyoutLevel, size?: string) => void;
5741
+ closeFlyout: (flyoutId: string) => void;
5742
+ setActiveFlyout: (flyoutId: string | null) => void;
5743
+ setFlyoutWidth: (flyoutId: string, width: number) => void;
5744
+ }
5745
+
5746
+ }
5747
+ declare module '@elastic/eui/src/components/flyout/manager/actions' {
5748
+ import { EuiFlyoutActivityStage, EuiFlyoutLevel, EuiFlyoutLayoutMode } from '@elastic/eui/src/components/flyout/manager/types'; const PREFIX: "eui/flyoutManager";
5749
+ interface BaseAction {
5750
+ type: `${typeof PREFIX}/${string}`;
5751
+ }
5752
+ /** Dispatched when a flyout registers itself with the manager. */
5753
+ export const ACTION_ADD: "eui/flyoutManager/add";
5754
+ /** Dispatched to remove a flyout from the manager (usually on close/unmount). */
5755
+ export const ACTION_CLOSE: "eui/flyoutManager/close";
5756
+ /** Dispatched to set which flyout is currently active within the session. */
5757
+ export const ACTION_SET_ACTIVE: "eui/flyoutManager/setActive";
5758
+ /** Dispatched when an active flyout's pixel width changes (for responsive layout). */
5759
+ export const ACTION_SET_WIDTH: "eui/flyoutManager/setWidth";
5760
+ /** Dispatched to switch layout mode between `side-by-side` and `stacked`. */
5761
+ export const ACTION_SET_LAYOUT_MODE: "eui/flyoutManager/setLayoutMode";
5762
+ /** Dispatched to update a flyout's activity stage (e.g., opening -> active). */
5763
+ export const ACTION_SET_ACTIVITY_STAGE: "eui/flyoutManager/setActivityStage";
5764
+ /**
5765
+ * Add a flyout to manager state. The manager will create or update
5766
+ * the current session depending on the `level` provided.
5767
+ */
5768
+ export interface AddFlyoutAction extends BaseAction {
5769
+ type: typeof ACTION_ADD;
5770
+ flyoutId: string;
5771
+ level: EuiFlyoutLevel;
5772
+ size?: string;
5773
+ }
5774
+ /** Remove a flyout from manager state. Also updates the active session. */
5775
+ export interface CloseFlyoutAction extends BaseAction {
5776
+ type: typeof ACTION_CLOSE;
5777
+ flyoutId: string;
5778
+ }
5779
+ /** Set the active flyout within the current session (or clear with `null`). */
5780
+ export interface SetActiveFlyoutAction extends BaseAction {
5781
+ type: typeof ACTION_SET_ACTIVE;
5782
+ flyoutId: string | null;
5783
+ }
5784
+ /** Update a flyout's measured width in pixels. */
5785
+ export interface SetWidthAction extends BaseAction {
5786
+ type: typeof ACTION_SET_WIDTH;
5787
+ flyoutId: string;
5788
+ width: number;
5789
+ }
5790
+ /** Change how flyouts are arranged: `side-by-side` or `stacked`. */
5791
+ export interface SetLayoutModeAction extends BaseAction {
5792
+ type: typeof ACTION_SET_LAYOUT_MODE;
5793
+ layoutMode: EuiFlyoutLayoutMode;
5794
+ }
5795
+ /** Set a specific flyout's activity stage. */
5796
+ export interface SetActivityStageAction extends BaseAction {
5797
+ type: typeof ACTION_SET_ACTIVITY_STAGE;
5798
+ flyoutId: string;
5799
+ activityStage: EuiFlyoutActivityStage;
5800
+ }
5801
+ /** Union of all flyout manager actions. */
5802
+ export type Action = AddFlyoutAction | CloseFlyoutAction | SetActiveFlyoutAction | SetWidthAction | SetLayoutModeAction | SetActivityStageAction;
5803
+ /**
5804
+ * Register a flyout with the manager.
5805
+ * - `level` determines whether the flyout is `main` or `child`.
5806
+ * - Optional `size` is the named EUI size (e.g. `s`, `m`, `l`).
5807
+ */
5808
+ export const addFlyout: (flyoutId: string, level?: EuiFlyoutLevel, size?: string) => AddFlyoutAction;
5809
+ /** Unregister a flyout and update the session accordingly. */
5810
+ export const closeFlyout: (flyoutId: string) => CloseFlyoutAction;
5811
+ /** Set or clear the active flyout for the current session. */
5812
+ export const setActiveFlyout: (flyoutId: string | null) => SetActiveFlyoutAction;
5813
+ /** Record a flyout's current width in pixels. */
5814
+ export const setFlyoutWidth: (flyoutId: string, width: number) => SetWidthAction;
5815
+ /** Switch layout mode between `side-by-side` and `stacked`. */
5816
+ export const setLayoutMode: (layoutMode: EuiFlyoutLayoutMode) => SetLayoutModeAction;
5817
+ /** Update a flyout's activity stage. */
5818
+ export const setActivityStage: (flyoutId: string, activityStage: EuiFlyoutActivityStage) => SetActivityStageAction;
5819
+ export {};
5678
5820
 
5679
5821
  }
5680
- declare module '@elastic/eui/src/components/overlay_mask/overlay_mask_body.styles' {
5681
- export const euiOverlayMaskBodyStyles: import("@emotion/react").SerializedStyles;
5822
+ declare module '@elastic/eui/src/components/flyout/manager/reducer' {
5823
+ import { Action } from '@elastic/eui/src/components/flyout/manager/actions';
5824
+ import { EuiFlyoutManagerState } from '@elastic/eui/src/components/flyout/manager/types';
5825
+ /**
5826
+ * Default flyout manager state used to initialize the reducer.
5827
+ */
5828
+ export const initialState: EuiFlyoutManagerState;
5829
+ /**
5830
+ * Reducer handling all flyout manager actions and state transitions.
5831
+ */
5832
+ export function flyoutManagerReducer(state: EuiFlyoutManagerState | undefined, action: Action): EuiFlyoutManagerState;
5682
5833
 
5683
5834
  }
5684
- declare module '@elastic/eui/src/components/overlay_mask/overlay_mask' {
5685
- import { FunctionComponent, HTMLAttributes, MutableRefObject, ReactNode, Ref } from 'react';
5686
- import { CommonProps } from '@elastic/eui/src/components/common';
5687
- export interface EuiOverlayMaskInterface {
5688
- /**
5689
- * ReactNode to render as this component's content
5690
- */
5691
- children?: ReactNode;
5692
- /**
5693
- * Should the mask visually sit above or below the EuiHeader (controlled by z-index)
5694
- */
5695
- headerZindexLocation?: 'above' | 'below';
5696
- /**
5697
- * React ref to be passed to the wrapping container
5698
- */
5699
- maskRef?: Ref<HTMLDivElement> | MutableRefObject<HTMLDivElement>;
5700
- }
5701
- export type EuiOverlayMaskProps = Omit<CommonProps, 'css'> & Omit<Partial<Record<keyof HTMLAttributes<HTMLDivElement>, string>>, keyof EuiOverlayMaskInterface> & EuiOverlayMaskInterface;
5702
- export const EuiOverlayMask: FunctionComponent<EuiOverlayMaskProps>;
5835
+ declare module '@elastic/eui/src/components/flyout/manager/selectors' {
5836
+ export const useSession: (flyoutId?: string | null) => import ("@elastic/eui/src/components/flyout/manager/types").FlyoutSession | null;
5837
+ /** True when any managed flyout session is currently active. */
5838
+ export const useHasActiveSession: () => boolean;
5839
+ /** True if the given `flyoutId` is the main or child flyout in the latest session. */
5840
+ export const useIsFlyoutActive: (flyoutId: string) => boolean;
5841
+ export const useFlyout: (flyoutId?: string | null) => import ("@elastic/eui/src/components/flyout/manager/types").EuiManagedFlyoutState | null;
5842
+ export const useIsFlyoutRegistered: (flyoutId?: string | null) => boolean;
5843
+ /** The most recent flyout session or `null` if none. */
5844
+ export const useCurrentSession: () => import ("@elastic/eui/src/components/flyout/manager/types").FlyoutSession | null;
5845
+ /** The registered state of the current session's main flyout, if present. */
5846
+ export const useCurrentMainFlyout: () => import ("@elastic/eui/src/components/flyout/manager/types").EuiManagedFlyoutState | null;
5847
+ /** The registered state of the current session's child flyout, if present. */
5848
+ export const useCurrentChildFlyout: () => import ("@elastic/eui/src/components/flyout/manager/types").EuiManagedFlyoutState | null;
5849
+ /** The measured width (px) of the specified flyout, or `null` if unknown. */
5850
+ export const useFlyoutWidth: (flyoutId?: string | null) => number | undefined;
5851
+ /** The configured size of the parent (main) flyout for a given child flyout ID. */
5852
+ export const useParentFlyoutSize: (childFlyoutId: string) => string | undefined;
5853
+ /** True if the provided `flyoutId` is the main flyout and it currently has a child. */
5854
+ export const useHasChildFlyout: (flyoutId: string) => boolean;
5703
5855
 
5704
5856
  }
5705
- declare module '@elastic/eui/src/components/overlay_mask' {
5706
- export type { EuiOverlayMaskProps } from '@elastic/eui/src/components/overlay_mask/overlay_mask';
5707
- export { EuiOverlayMask } from '@elastic/eui/src/components/overlay_mask/overlay_mask';
5857
+ declare module '@elastic/eui/src/components/flyout/manager/layout_mode' {
5858
+ import { EuiFlyoutLayoutMode } from '@elastic/eui/src/components/flyout/manager/types';
5859
+ /**
5860
+ * Hook to handle responsive layout mode for managed flyouts.
5861
+ * Decides whether to place flyouts side-by-side or stacked based on
5862
+ * viewport width and flyout widths/sizes.
5863
+ */
5864
+ export const useApplyFlyoutLayoutMode: () => void;
5865
+ /** Convert a flyout `size` value to a pixel width using theme breakpoints. */
5866
+ export const getWidthFromSize: (size: string | number) => number;
5867
+ /** Current layout mode for managed flyouts (`side-by-side` or `stacked`). */
5868
+ export const useFlyoutLayoutMode: () => EuiFlyoutLayoutMode;
5869
+
5870
+ }
5871
+ declare module '@elastic/eui/src/components/flyout/manager/context' {
5872
+ import React from 'react';
5873
+ /**
5874
+ * React provider that marks descendants as being rendered inside
5875
+ * an EUI managed flyout. Used by hooks/components to alter behavior
5876
+ * (e.g., focus handling) when inside a managed flyout tree.
5877
+ */
5878
+ export const EuiFlyoutIsManagedProvider: ({ isManaged, children, }: {
5879
+ isManaged: boolean;
5880
+ children: React.ReactNode;
5881
+ }) => React.JSX.Element;
5882
+ /**
5883
+ * Hook that returns `true` when called within an EUI managed flyout subtree.
5884
+ */
5885
+ export const useIsInManagedFlyout: () => boolean;
5886
+
5887
+ }
5888
+ declare module '@elastic/eui/src/components/flyout/manager/hooks' {
5889
+ import { type EuiFlyoutManagerState, type FlyoutManagerApi } from '@elastic/eui/src/components/flyout/manager/types';
5890
+ export { useIsFlyoutActive, useHasActiveSession, useCurrentSession, useCurrentMainFlyout, useCurrentChildFlyout, useFlyoutWidth, useParentFlyoutSize, useHasChildFlyout, } from '@elastic/eui/src/components/flyout/manager/selectors';
5891
+ export { useFlyoutLayoutMode } from '@elastic/eui/src/components/flyout/manager/layout_mode';
5892
+ export { useIsInManagedFlyout } from '@elastic/eui/src/components/flyout/manager/context';
5893
+ export type { EuiFlyoutActivityStage } from '@elastic/eui/src/components/flyout/manager/types';
5894
+ /**
5895
+ * Hook that provides the flyout manager reducer and bound action creators.
5896
+ * Accepts an optional initial state (mainly for tests or custom setups).
5897
+ */
5898
+ export function useFlyoutManagerReducer(initial?: EuiFlyoutManagerState): FlyoutManagerApi;
5899
+ /** Access the flyout manager context (state and actions). */
5900
+ export const useFlyoutManager: () => FlyoutManagerApi | null;
5901
+ /**
5902
+ * Stable flyout ID utility. Uses the passed `id` if provided and not already registered,
5903
+ * otherwise generates a deterministic ID for the component's lifetime.
5904
+ * The ID remains stable across re-renders to maintain consistency in effects and other hooks.
5905
+ */
5906
+ export const useFlyoutId: (flyoutId?: string) => string;
5907
+
5908
+ }
5909
+ declare module '@elastic/eui/src/components/flyout/manager/provider' {
5910
+ import React from 'react';
5911
+ import { FlyoutManagerApi } from '@elastic/eui/src/components/flyout/manager/types';
5912
+ /**
5913
+ * React context that exposes the Flyout Manager API (state + actions).
5914
+ */
5915
+ export const EuiFlyoutManagerContext: React.Context<FlyoutManagerApi | null>;
5916
+ /**
5917
+ * Provides the Flyout Manager API via context and runs layout-mode logic.
5918
+ */
5919
+ export const EuiFlyoutManager: React.FC<{
5920
+ children: React.ReactNode;
5921
+ }>;
5922
+ /** Hook to access the Flyout Manager API from context. */
5923
+ export const useFlyoutManager: () => FlyoutManagerApi | null;
5924
+
5925
+ }
5926
+ declare module '@elastic/eui/src/components/flyout/manager/flyout_child.styles' {
5927
+ import { UseEuiTheme } from '@elastic/eui/src/services';
5928
+ /**
5929
+ * Emotion styles for child flyouts.
5930
+ * Provides background variants coordinated with the EUI theme.
5931
+ *
5932
+ * Returns an object with the following CSS snippets:
5933
+ * - `backgroundDefault`: plain background
5934
+ * - `backgroundShaded`: subdued background used to de-emphasize child content
5935
+ */
5936
+ export const euiChildFlyoutStyles: (euiThemeContext: UseEuiTheme) => {
5937
+ backgroundDefault: import("@emotion/react").SerializedStyles;
5938
+ backgroundShaded: import("@emotion/react").SerializedStyles;
5939
+ };
5940
+
5941
+ }
5942
+ declare module '@elastic/eui/src/components/flyout/const' {
5943
+ import { EuiBreakpointSize } from '@elastic/eui/src/services';
5944
+ /** Allowed flyout render types. */
5945
+ export const FLYOUT_TYPES: readonly ["push", "overlay"];
5946
+ /** Type representing a supported flyout render type. */
5947
+ export type _EuiFlyoutType = (typeof FLYOUT_TYPES)[number];
5948
+ /** Allowed flyout attachment sides. */
5949
+ export const FLYOUT_SIDES: readonly ["left", "right"];
5950
+ /** Type representing a supported flyout side. */
5951
+ export type _EuiFlyoutSide = (typeof FLYOUT_SIDES)[number];
5952
+ /** Allowed named flyout sizes used by the manager. */
5953
+ export const FLYOUT_SIZES: readonly ["s", "m", "l", "fill"];
5954
+ /** Type representing a supported named flyout size. */
5955
+ export type EuiFlyoutSize = (typeof FLYOUT_SIZES)[number];
5956
+ /** Allowed padding sizes for flyout content. */
5957
+ export const FLYOUT_PADDING_SIZES: readonly ["none", "s", "m", "l"];
5958
+ /** Type representing a supported flyout padding size. */
5959
+ export type _EuiFlyoutPaddingSize = (typeof FLYOUT_PADDING_SIZES)[number];
5960
+ /** Default minimum breakpoint at which push-type flyouts begin to push content. */
5961
+ export const DEFAULT_PUSH_MIN_BREAKPOINT: EuiBreakpointSize;
5962
+ /** Default flyout type when none is provided. */
5963
+ export const DEFAULT_TYPE: _EuiFlyoutType;
5964
+ /** Default side where flyouts anchor when none is provided. */
5965
+ export const DEFAULT_SIDE: _EuiFlyoutSide;
5966
+ /** Default named flyout size. */
5967
+ export const DEFAULT_SIZE: EuiFlyoutSize;
5968
+ /** Default padding size inside flyouts. */
5969
+ export const DEFAULT_PADDING_SIZE: _EuiFlyoutPaddingSize;
5970
+ /**
5971
+ * Custom type checker for named flyout sizes since the prop
5972
+ * `size` can also be CSSProperties['width'] (string | number)
5973
+ */
5974
+ export function isEuiFlyoutSizeNamed(value: unknown): value is EuiFlyoutSize;
5708
5975
 
5709
5976
  }
5710
5977
  declare module '@elastic/eui/src/components/flyout/flyout.styles' {
5711
- import { EuiFlyoutSize } from '@elastic/eui/src/components/flyout/flyout';
5978
+ import { EuiFlyoutSize } from '@elastic/eui/src/components/flyout/const';
5712
5979
  import { UseEuiTheme } from '@elastic/eui/src/services';
5713
5980
  export const FLYOUT_BREAKPOINT: "m";
5714
5981
  export const euiFlyoutSlideInRight: import("@emotion/serialize").Keyframes;
@@ -5718,6 +5985,7 @@ declare module '@elastic/eui/src/components/flyout/flyout.styles' {
5718
5985
  s: import("@emotion/react").SerializedStyles;
5719
5986
  m: import("@emotion/react").SerializedStyles;
5720
5987
  l: import("@emotion/react").SerializedStyles;
5988
+ fill: import("@emotion/react").SerializedStyles;
5721
5989
  noMaxWidth: import("@emotion/react").SerializedStyles;
5722
5990
  right: import("@emotion/react").SerializedStyles;
5723
5991
  left: import("@emotion/react").SerializedStyles;
@@ -5741,184 +6009,272 @@ declare module '@elastic/eui/src/components/flyout/flyout.styles' {
5741
6009
  };
5742
6010
  export const maxedFlyoutWidth: (euiThemeContext: UseEuiTheme) => string;
5743
6011
  export const composeFlyoutSizing: (euiThemeContext: UseEuiTheme, size: EuiFlyoutSize) => string;
6012
+ /**
6013
+ * Composes all inline styles for a flyout based on its configuration
6014
+ */
6015
+ export const composeFlyoutInlineStyles: (size: EuiFlyoutSize | string | number, layoutMode: "side-by-side" | "stacked", siblingFlyoutId: string | null, siblingFlyoutWidth: number | null, maxWidth: boolean | number | string | undefined) => React.CSSProperties;
5744
6016
 
5745
6017
  }
5746
- declare module '@elastic/eui/src/components/flyout/_flyout_close_button.styles' {
6018
+ declare module '@elastic/eui/src/components/flyout/manager/flyout_managed.styles' {
5747
6019
  import { UseEuiTheme } from '@elastic/eui/src/services';
5748
- export const euiFlyoutCloseButtonStyles: (euiThemeContext: UseEuiTheme) => {
5749
- euiFlyout__closeButton: import("@emotion/react").SerializedStyles;
5750
- inside: import("@emotion/react").SerializedStyles;
5751
- outside: import("@emotion/react").SerializedStyles;
5752
- outsideSide: {
5753
- right: import("@emotion/react").SerializedStyles;
5754
- left: import("@emotion/react").SerializedStyles;
5755
- };
6020
+ import { _EuiFlyoutSide } from '@elastic/eui/src/components/flyout/const';
6021
+ import { EuiFlyoutActivityStage } from '@elastic/eui/src/components/flyout/manager/types';
6022
+ /**
6023
+ * Emotion styles for managed flyouts.
6024
+ * Provides base 3D context and animations tied to managed flyout stages
6025
+ * via data attributes.
6026
+ */
6027
+ export const euiManagedFlyoutStyles: (euiThemeContext: UseEuiTheme) => {
6028
+ stage: (activeStage: EuiFlyoutActivityStage, side?: _EuiFlyoutSide) => import("@emotion/react").SerializedStyles[];
6029
+ managedFlyout: import("@emotion/react").SerializedStyles;
5756
6030
  };
5757
6031
 
5758
6032
  }
5759
- declare module '@elastic/eui/src/components/flyout/_flyout_close_button' {
5760
- import { FunctionComponent } from 'react';
5761
- import type { EuiFlyoutProps } from '@elastic/eui/src/components/flyout/flyout';
5762
- type EuiFlyoutCloseButtonProps = EuiFlyoutProps['closeButtonProps'] & Required<Pick<EuiFlyoutProps, 'closeButtonPosition' | 'onClose' | 'side'>>;
5763
- export const EuiFlyoutCloseButton: FunctionComponent<EuiFlyoutCloseButtonProps>;
6033
+ declare module '@elastic/eui/src/components/flyout/flyout_menu_context' {
6034
+ import { EuiFlyoutProps } from '@elastic/eui/src/components/flyout/flyout';
6035
+ interface EuiFlyoutMenuContextProps {
6036
+ onClose?: EuiFlyoutProps['onClose'];
6037
+ }
6038
+ export const EuiFlyoutMenuContext: import("react").Context<EuiFlyoutMenuContextProps>;
5764
6039
  export {};
5765
6040
 
5766
6041
  }
5767
- declare module '@elastic/eui/src/components/flyout/flyout_child.styles' {
5768
- import { UseEuiTheme } from '@elastic/eui/src/services';
5769
- export const euiFlyoutChildStyles: (euiThemeContext: UseEuiTheme) => {
5770
- euiFlyoutChild: import("@emotion/react").SerializedStyles;
5771
- backgroundDefault: import("@emotion/react").SerializedStyles;
5772
- backgroundShaded: import("@emotion/react").SerializedStyles;
5773
- sidePosition: import("@emotion/react").SerializedStyles;
5774
- stackedPosition: import("@emotion/react").SerializedStyles;
5775
- s: import("@emotion/react").SerializedStyles;
5776
- m: import("@emotion/react").SerializedStyles;
5777
- overflow: {
5778
- overflow: import("@emotion/react").SerializedStyles;
5779
- wrapper: import("@emotion/react").SerializedStyles;
5780
- };
5781
- banner: import("@emotion/react").SerializedStyles;
6042
+ declare module '@elastic/eui/src/components/flyout/manager/validation' {
6043
+ import { EuiFlyoutSize } from '@elastic/eui/src/components/flyout/const';
6044
+ import { EuiFlyoutComponentProps } from '@elastic/eui/src/components/flyout/flyout.component';
6045
+ import { EuiFlyoutLevel } from '@elastic/eui/src/components/flyout/manager/types';
6046
+ /**
6047
+ * Business rules for flyout sizes:
6048
+ * - Managed flyouts should only accept "named" sizes (s, m, l, fill)
6049
+ * - Parent and child can't both be 'm'
6050
+ * - Parent and child can't both be 'fill'
6051
+ * - Parent can't be 'l' if there is a child
6052
+ */
6053
+ export interface FlyoutSizeValidationError {
6054
+ type: 'INVALID_SIZE_TYPE' | 'INVALID_SIZE_COMBINATION';
6055
+ message: string;
6056
+ flyoutId?: string;
6057
+ level?: EuiFlyoutLevel;
6058
+ size?: string;
6059
+ }
6060
+ /**
6061
+ * Checks if a size is a named size (s, m, l)
6062
+ */
6063
+ export function isNamedSize(size: unknown): size is EuiFlyoutSize;
6064
+ /**
6065
+ * Validates that a managed flyout only uses named sizes
6066
+ */
6067
+ export function validateManagedFlyoutSize(size: EuiFlyoutComponentProps['size'], flyoutId: string, level: EuiFlyoutLevel): FlyoutSizeValidationError | null;
6068
+ /**
6069
+ * Validates size combinations for parent-child flyouts
6070
+ */
6071
+ export function validateSizeCombination(parentSize: EuiFlyoutSize, childSize: EuiFlyoutSize): FlyoutSizeValidationError | null;
6072
+ /**
6073
+ * Comprehensive validation for flyout size rules
6074
+ */
6075
+ export function validateFlyoutSize(size: EuiFlyoutComponentProps['size'], flyoutId: string, level: EuiFlyoutLevel, parentSize?: EuiFlyoutSize): FlyoutSizeValidationError | null;
6076
+ /**
6077
+ * Creates a user-friendly error message for validation errors
6078
+ */
6079
+ export function createValidationErrorMessage(error: FlyoutSizeValidationError): string;
6080
+
6081
+ }
6082
+ declare module '@elastic/eui/src/components/flyout/manager/activity_stage' {
6083
+ import type { EuiFlyoutActivityStage, EuiFlyoutLevel } from '@elastic/eui/src/components/flyout/manager/types';
6084
+ export interface UseFlyoutActivityStageParams {
6085
+ flyoutId: string;
6086
+ level: EuiFlyoutLevel;
6087
+ }
6088
+ export interface UseFlyoutActivityStageReturn {
6089
+ activityStage: EuiFlyoutActivityStage;
6090
+ onAnimationEnd: () => void;
6091
+ }
6092
+ /**
6093
+ * Encapsulates all activity-stage transitions and animation-driven updates
6094
+ * for managed flyouts.
6095
+ */
6096
+ export const useFlyoutActivityStage: ({ flyoutId, level, }: UseFlyoutActivityStageParams) => {
6097
+ activityStage: EuiFlyoutActivityStage;
6098
+ onAnimationEnd: () => void;
5782
6099
  };
5783
6100
 
5784
6101
  }
5785
- declare module '@elastic/eui/src/components/flyout/flyout_context' {
5786
- import { RefObject } from 'react';
5787
- import { EuiFlyoutSize } from '@elastic/eui/src/components/flyout/flyout';
6102
+ declare module '@elastic/eui/src/components/flyout/manager/flyout_managed' {
6103
+ import React from 'react';
6104
+ import { EuiFlyoutComponentProps } from '@elastic/eui/src/components/flyout/flyout.component';
6105
+ import { EuiFlyoutLevel } from '@elastic/eui/src/components/flyout/manager/types';
5788
6106
  /**
5789
- * Context shared between the main and child flyouts
5790
- * @internal
6107
+ * Props for `EuiManagedFlyout`, the internal persistent flyout used by
6108
+ * the manager. Extends base flyout props and requires a `level` to
6109
+ * distinguish `main` vs `child` behavior.
5791
6110
  */
5792
- export interface EuiFlyoutContextValue {
5793
- parentSize?: EuiFlyoutSize | string | number;
5794
- parentFlyoutRef?: RefObject<HTMLDivElement>;
5795
- isChildFlyoutOpen?: boolean;
5796
- setIsChildFlyoutOpen?: (isOpen: boolean) => void;
5797
- childLayoutMode?: 'side-by-side' | 'stacked';
6111
+ export interface EuiManagedFlyoutProps extends EuiFlyoutComponentProps {
6112
+ level: EuiFlyoutLevel;
5798
6113
  }
5799
- export const EuiFlyoutContext: import("react").Context<EuiFlyoutContextValue | null>;
6114
+ /**
6115
+ * Persistent managed flyout rendered inside the provider. Handles:
6116
+ * - registration/unregistration with the manager
6117
+ * - size validation and parent/child size compatibility
6118
+ * - width tracking for responsive layouts
6119
+ * - lifecycle stage transitions and data attributes for styling
6120
+ */
6121
+ export const EuiManagedFlyout: ({ id, onClose: onCloseProp, level, size, css: customCss, ...props }: EuiManagedFlyoutProps) => React.JSX.Element;
5800
6122
 
5801
6123
  }
5802
- declare module '@elastic/eui/src/components/flyout/flyout_body.styles' {
6124
+ declare module '@elastic/eui/src/components/flyout/manager/flyout_child' {
6125
+ import React from 'react';
6126
+ import { type EuiManagedFlyoutProps } from '@elastic/eui/src/components/flyout/manager/flyout_managed';
6127
+ /**
6128
+ * Props for `EuiFlyoutChild`, a managed child flyout that pairs with a main flyout.
6129
+ *
6130
+ * Notes:
6131
+ * - `type`, `side`, and `level` are fixed by the component and thus omitted.
6132
+ * - `backgroundStyle` toggles between default and shaded backgrounds.
6133
+ */
6134
+ export interface EuiFlyoutChildProps extends Omit<EuiManagedFlyoutProps, 'closeButtonPosition' | 'hideCloseButton' | 'type' | 'level'> {
6135
+ backgroundStyle?: 'default' | 'shaded';
6136
+ }
6137
+ /**
6138
+ * Managed child flyout that renders alongside or stacked over the main flyout,
6139
+ * depending on the current layout mode. Handles background styling and required
6140
+ * managed flyout props.
6141
+ */
6142
+ export function EuiFlyoutChild({ css: customCss, backgroundStyle, side, ...props }: EuiFlyoutChildProps): React.JSX.Element | null;
6143
+
6144
+ }
6145
+ declare module '@elastic/eui/src/components/flyout/manager/flyout_main.styles' {
5803
6146
  import { UseEuiTheme } from '@elastic/eui/src/services';
5804
- export const euiFlyoutBodyStyles: (euiThemeContext: UseEuiTheme) => {
5805
- euiFlyoutBody: import("@emotion/react").SerializedStyles;
5806
- overflow: {
5807
- euiFlyoutBody__overflow: import("@emotion/react").SerializedStyles;
5808
- noBanner: import("@emotion/react").SerializedStyles;
5809
- hasBanner: import("@emotion/react").SerializedStyles;
6147
+ /**
6148
+ * Emotion styles for the main (parent) managed flyout.
6149
+ * Adds subtle borders when a child flyout is present, depending on side.
6150
+ *
6151
+ * Returns an object with:
6152
+ * - `hasChildFlyout.left` and `.right`: border styles to separate from child.
6153
+ */
6154
+ export const euiMainFlyoutStyles: (euiThemeContext: UseEuiTheme) => {
6155
+ hasChildFlyout: {
6156
+ left: import("@emotion/react").SerializedStyles;
6157
+ right: import("@emotion/react").SerializedStyles;
5810
6158
  };
5811
- euiFlyoutBody__banner: import("@emotion/react").SerializedStyles;
5812
6159
  };
5813
6160
 
5814
6161
  }
5815
- declare module '@elastic/eui/src/components/flyout/flyout_body' {
5816
- import { FunctionComponent, HTMLAttributes, ReactNode } from 'react';
5817
- import { CommonProps } from '@elastic/eui/src/components/common';
5818
- export type EuiFlyoutBodyProps = FunctionComponent<HTMLAttributes<HTMLDivElement> & CommonProps & {
5819
- /**
5820
- * Use to display a banner at the top of the body. It is suggested to use `EuiCallOut` for it.
5821
- */
5822
- banner?: ReactNode;
5823
- /**
5824
- * [Scrollable regions (or their children) should be focusable](https://dequeuniversity.com/rules/axe/4.0/scrollable-region-focusable)
5825
- * to allow keyboard users to scroll the region via arrow keys.
5826
- *
5827
- * By default, EuiFlyoutBody's scroll overflow wrapper sets a `tabIndex` of `0`.
5828
- * If you know your flyout body content already contains focusable children
5829
- * that satisfy keyboard accessibility requirements, you can use this prop
5830
- * to override this default.
5831
- */
5832
- scrollableTabIndex?: number;
5833
- }>;
5834
- export const EuiFlyoutBody: EuiFlyoutBodyProps;
6162
+ declare module '@elastic/eui/src/components/flyout/hooks' {
6163
+ import { EuiFlyoutProps } from '@elastic/eui/src/components/flyout/flyout';
6164
+ /**
6165
+ * Determines if a flyout should be rendered in a "pushed" state based on its
6166
+ * configuration and the current window size.
6167
+ */
6168
+ export const useIsPushed: (props: Pick<EuiFlyoutProps, "type" | "pushMinBreakpoint">) => boolean;
5835
6169
 
5836
6170
  }
5837
- declare module '@elastic/eui/src/components/flyout/flyout_child' {
5838
- import { FunctionComponent, HTMLAttributes, ReactNode } from 'react';
5839
- import { CommonProps } from '@elastic/eui/src/components/common';
6171
+ declare module '@elastic/eui/src/components/flyout/manager/flyout_main' {
6172
+ import React from 'react';
6173
+ import { type EuiManagedFlyoutProps } from '@elastic/eui/src/components/flyout/manager/flyout_managed';
5840
6174
  /**
5841
- * Props used to render and configure the child flyout panel
6175
+ * Props for `EuiFlyoutMain`, the primary managed flyout component.
6176
+ * The `level` prop is fixed internally to `main` and is therefore omitted.
5842
6177
  */
5843
- export interface EuiFlyoutChildProps extends HTMLAttributes<HTMLDivElement>, CommonProps {
5844
- /**
5845
- * Called when the child panel's close button is clicked
5846
- */
5847
- onClose: (event: MouseEvent | TouchEvent | KeyboardEvent) => void;
5848
- /**
5849
- * Use to display a banner at the top of the child. It is suggested to use `EuiCallOut` for it.
5850
- */
5851
- banner?: ReactNode;
5852
- /**
5853
- * Hides the default close button. You must provide another close button somewhere within the child flyout.
5854
- * @default false
5855
- */
5856
- hideCloseButton?: boolean;
6178
+ export type EuiFlyoutMainProps = Omit<EuiManagedFlyoutProps, 'level'>;
6179
+ /**
6180
+ * Managed main flyout. Handles ID management, child-flyout styling,
6181
+ * and push/overlay behavior based on provided props.
6182
+ */
6183
+ export function EuiFlyoutMain({ id, pushMinBreakpoint, type, side, ...props }: EuiFlyoutMainProps): React.JSX.Element;
6184
+
6185
+ }
6186
+ declare module '@elastic/eui/src/components/flyout/manager' {
6187
+ /**
6188
+ * Convenience re-exports of bound action creators for external usage.
6189
+ */
6190
+ export { addFlyout as addFlyoutAction, closeFlyout as closeFlyoutAction, setActiveFlyout as setActiveFlyoutAction, setFlyoutWidth as setFlyoutWidthAction, setActivityStage as setActivityStageAction, } from '@elastic/eui/src/components/flyout/manager/actions';
6191
+ /** Reducer and default state for the flyout manager. */
6192
+ export { flyoutManagerReducer, initialState } from '@elastic/eui/src/components/flyout/manager/reducer';
6193
+ /** Provider component exposing the Flyout Manager API via context. */
6194
+ export { EuiFlyoutManager } from '@elastic/eui/src/components/flyout/manager/provider';
6195
+ /**
6196
+ * Hooks for reading manager state and derived information.
6197
+ */
6198
+ /**
6199
+ * Selectors and derived state hooks for managed flyouts.
6200
+ */
6201
+ export { useCurrentChildFlyout, useCurrentMainFlyout, useCurrentSession, useFlyoutId, useFlyoutLayoutMode, useFlyoutManager, useFlyoutWidth, useHasChildFlyout, useIsFlyoutActive, useIsInManagedFlyout, useHasActiveSession, useParentFlyoutSize, } from '@elastic/eui/src/components/flyout/manager/hooks';
6202
+ export { EuiFlyoutChild, type EuiFlyoutChildProps } from '@elastic/eui/src/components/flyout/manager/flyout_child';
6203
+ export { EuiFlyoutMain, type EuiFlyoutMainProps } from '@elastic/eui/src/components/flyout/manager/flyout_main';
6204
+ /** Utility functions for flyout sizing and layout. */
6205
+ export { getWidthFromSize } from '@elastic/eui/src/components/flyout/manager/layout_mode';
6206
+
6207
+ }
6208
+ declare module '@elastic/eui/src/components/overlay_mask/overlay_mask.styles' {
6209
+ import { UseEuiTheme } from '@elastic/eui/src/services';
6210
+ export const euiOverlayMaskStyles: ({ euiTheme, highContrastMode, }: UseEuiTheme) => {
6211
+ euiOverlayMask: string;
6212
+ aboveHeader: string;
6213
+ belowHeader: string;
6214
+ noAnimation: string;
6215
+ };
6216
+
6217
+ }
6218
+ declare module '@elastic/eui/src/components/overlay_mask/overlay_mask_body.styles' {
6219
+ export const euiOverlayMaskBodyStyles: import("@emotion/react").SerializedStyles;
6220
+
6221
+ }
6222
+ declare module '@elastic/eui/src/components/overlay_mask/overlay_mask' {
6223
+ import { FunctionComponent, HTMLAttributes, MutableRefObject, ReactNode, Ref } from 'react';
6224
+ import { CommonProps } from '@elastic/eui/src/components/common';
6225
+ export interface EuiOverlayMaskInterface {
5857
6226
  /**
5858
- * [Scrollable regions (or their children) should be focusable](https://dequeuniversity.com/rules/axe/4.0/scrollable-region-focusable)
5859
- * to allow keyboard users to scroll the region via arrow keys.
5860
- *
5861
- * By default, EuiFlyoutChild's scroll overflow wrapper sets a `tabIndex` of `0`.
5862
- * If you know your flyout child content already contains focusable children
5863
- * that satisfy keyboard accessibility requirements, you can use this prop
5864
- * to override this default.
6227
+ * ReactNode to render as this component's content
5865
6228
  */
5866
- scrollableTabIndex?: number;
6229
+ children?: ReactNode;
5867
6230
  /**
5868
- * Size of the child flyout panel.
5869
- * When the parent flyout is 'm', child is limited to 's'.
5870
- * @default 's'
6231
+ * Should the mask visually sit above or below the EuiHeader (controlled by z-index)
5871
6232
  */
5872
- size?: 's' | 'm';
5873
- backgroundStyle?: 'shaded' | 'default';
6233
+ headerZindexLocation?: 'above' | 'below';
5874
6234
  /**
5875
- * Children are implicitly part of FunctionComponent, but good to have if props type is standalone.
6235
+ * React ref to be passed to the wrapping container
5876
6236
  */
5877
- children?: ReactNode;
6237
+ maskRef?: Ref<HTMLDivElement> | MutableRefObject<HTMLDivElement>;
5878
6238
  }
5879
- /**
5880
- * The child flyout is a panel that appears to the left of the parent flyout.
5881
- * It is only visible when the parent flyout is open.
5882
- */
5883
- export const EuiFlyoutChild: FunctionComponent<EuiFlyoutChildProps>;
6239
+ export type EuiOverlayMaskProps = Omit<CommonProps, 'css'> & Omit<Partial<Record<keyof HTMLAttributes<HTMLDivElement>, string>>, keyof EuiOverlayMaskInterface> & EuiOverlayMaskInterface;
6240
+ export const EuiOverlayMask: FunctionComponent<EuiOverlayMaskProps>;
5884
6241
 
5885
6242
  }
5886
- declare module '@elastic/eui/src/components/flyout/flyout_child_manager' {
5887
- import React, { ComponentProps, FunctionComponent, ReactNode } from 'react';
5888
- import { EuiFlyoutChild } from '@elastic/eui/src/components/flyout/flyout_child';
5889
- interface EuiFlyoutChildProviderProps {
5890
- parentSize: 's' | 'm';
5891
- parentFlyoutRef: React.RefObject<HTMLDivElement>;
5892
- childElement: React.ReactElement<ComponentProps<typeof EuiFlyoutChild>>;
5893
- childrenToRender: ReactNode;
5894
- reportIsChildOpen: (isOpen: boolean) => void;
5895
- reportChildLayoutMode: (mode: 'side-by-side' | 'stacked') => void;
5896
- }
5897
- /**
5898
- * An intermediate component between EuiFlyout and EuiFlyoutChild.
5899
- * It is responsible for managing the state of the child flyout, and passing it to EuiFlyoutContext.
5900
- * It removes the responsibility of managing child flyout state from EuiFlyout, which is especially important there might not be a child flyout.
5901
- */
5902
- export const EuiFlyoutChildProvider: FunctionComponent<EuiFlyoutChildProviderProps>;
6243
+ declare module '@elastic/eui/src/components/overlay_mask' {
6244
+ export type { EuiOverlayMaskProps } from '@elastic/eui/src/components/overlay_mask/overlay_mask';
6245
+ export { EuiOverlayMask } from '@elastic/eui/src/components/overlay_mask/overlay_mask';
6246
+
6247
+ }
6248
+ declare module '@elastic/eui/src/components/flyout/_flyout_close_button.styles' {
6249
+ import { UseEuiTheme } from '@elastic/eui/src/services';
6250
+ export const euiFlyoutCloseButtonStyles: (euiThemeContext: UseEuiTheme) => {
6251
+ euiFlyout__closeButton: import("@emotion/react").SerializedStyles;
6252
+ inside: import("@emotion/react").SerializedStyles;
6253
+ outside: import("@emotion/react").SerializedStyles;
6254
+ outsideSide: {
6255
+ right: import("@emotion/react").SerializedStyles;
6256
+ left: import("@emotion/react").SerializedStyles;
6257
+ };
6258
+ };
6259
+
6260
+ }
6261
+ declare module '@elastic/eui/src/components/flyout/_flyout_close_button' {
6262
+ import { FunctionComponent } from 'react';
6263
+ import type { EuiFlyoutProps } from '@elastic/eui/src/components/flyout/flyout';
6264
+ type EuiFlyoutCloseButtonProps = EuiFlyoutProps['closeButtonProps'] & Required<Pick<EuiFlyoutProps, 'closeButtonPosition' | 'onClose' | 'side'>>;
6265
+ export const EuiFlyoutCloseButton: FunctionComponent<EuiFlyoutCloseButtonProps>;
5903
6266
  export {};
5904
6267
 
5905
6268
  }
5906
- declare module '@elastic/eui/src/components/flyout/flyout' {
6269
+ declare module '@elastic/eui/src/components/flyout/flyout.component' {
5907
6270
  import { ComponentPropsWithRef, CSSProperties, ElementType, JSX } from 'react';
5908
6271
  import { EuiBreakpointSize } from '@elastic/eui/src/services';
5909
6272
  import { CommonProps, PropsOfElement } from '@elastic/eui/src/components/common';
5910
6273
  import { EuiFocusTrapProps } from '@elastic/eui/src/components/focus_trap';
5911
6274
  import { EuiOverlayMaskProps } from '@elastic/eui/src/components/overlay_mask';
5912
6275
  import type { EuiButtonIconPropsForButton } from '@elastic/eui/src/components/button';
5913
- export const TYPES: readonly ["push", "overlay"];
5914
- type _EuiFlyoutType = (typeof TYPES)[number];
5915
- export const SIDES: readonly ["left", "right"];
5916
- export type _EuiFlyoutSide = (typeof SIDES)[number];
5917
- export const SIZES: readonly ["s", "m", "l"];
5918
- export type EuiFlyoutSize = (typeof SIZES)[number];
5919
- export const PADDING_SIZES: readonly ["none", "s", "m", "l"];
5920
- export type _EuiFlyoutPaddingSize = (typeof PADDING_SIZES)[number];
5921
- interface _EuiFlyoutProps {
6276
+ import { _EuiFlyoutPaddingSize, _EuiFlyoutSide, _EuiFlyoutType, EuiFlyoutSize } from '@elastic/eui/src/components/flyout/const';
6277
+ interface _EuiFlyoutComponentProps {
5922
6278
  onClose: (event: MouseEvent | TouchEvent | KeyboardEvent) => void;
5923
6279
  /**
5924
6280
  * Defines the width of the panel.
@@ -5994,34 +6350,81 @@ declare module '@elastic/eui/src/components/flyout/flyout' {
5994
6350
  pushAnimation?: boolean;
5995
6351
  style?: CSSProperties;
5996
6352
  /**
5997
- * Object of props passed to EuiFocusTrap.
5998
- * `shards` specifies an array of elements that will be considered part of the flyout, preventing the flyout from being closed when clicked.
5999
- * `closeOnMouseup` will delay the close callback, allowing time for external toggle buttons to handle close behavior.
6000
- * `returnFocus` defines the return focus behavior and provides the possibility to check the available target element or opt out of the behavior in favor of manually returning focus
6353
+ * Object of props passed to EuiFocusTrap.
6354
+ * `shards` specifies an array of elements that will be considered part of the flyout, preventing the flyout from being closed when clicked.
6355
+ * `closeOnMouseup` will delay the close callback, allowing time for external toggle buttons to handle close behavior.
6356
+ * `returnFocus` defines the return focus behavior and provides the possibility to check the available target element or opt out of the behavior in favor of manually returning focus
6357
+ */
6358
+ focusTrapProps?: Pick<EuiFocusTrapProps, 'closeOnMouseup' | 'shards' | 'returnFocus'>;
6359
+ /**
6360
+ * By default, EuiFlyout will consider any fixed `EuiHeader`s that sit alongside or above the EuiFlyout
6361
+ * as part of the flyout's focus trap. This prevents focus fighting with interactive elements
6362
+ * within fixed headers.
6363
+ *
6364
+ * Set this to `false` if you need to disable this behavior for a specific reason.
6365
+ */
6366
+ includeFixedHeadersInFocusTrap?: boolean;
6367
+ /**
6368
+ * Specify additional css selectors to include in the focus trap.
6369
+ */
6370
+ includeSelectorInFocusTrap?: string[] | string;
6371
+ }
6372
+ type Props<T extends ElementType> = CommonProps & {
6373
+ /**
6374
+ * Sets the HTML element for `EuiFlyout`
6375
+ */
6376
+ as?: T;
6377
+ } & _EuiFlyoutComponentProps & Omit<PropsOfElement<T>, keyof _EuiFlyoutComponentProps>;
6378
+ export type EuiFlyoutComponentProps<T extends ElementType = 'div' | 'nav'> = Props<T> & Omit<ComponentPropsWithRef<T>, keyof Props<T>>;
6379
+ export const EuiFlyoutComponent: <T extends ElementType = "div" | "nav">(props: EuiFlyoutComponentProps<T>) => JSX.Element;
6380
+ export {};
6381
+
6382
+ }
6383
+ declare module '@elastic/eui/src/components/flyout/flyout' {
6384
+ import React, { ElementType } from 'react';
6385
+ import { type EuiFlyoutComponentProps } from '@elastic/eui/src/components/flyout/flyout.component';
6386
+ export type { EuiFlyoutSize, _EuiFlyoutPaddingSize, _EuiFlyoutSide, } from '@elastic/eui/src/components/flyout/const';
6387
+ export { FLYOUT_SIDES, FLYOUT_PADDING_SIZES, FLYOUT_SIZES, FLYOUT_TYPES, } from '@elastic/eui/src/components/flyout/const';
6388
+ export type EuiFlyoutProps<T extends ElementType = 'div' | 'nav'> = Omit<EuiFlyoutComponentProps<T>, 'as'> & {
6389
+ session?: boolean;
6390
+ as?: T;
6391
+ };
6392
+ export const EuiFlyout: React.ForwardRefExoticComponent<Omit<EuiFlyoutProps<"div" | "nav">, "ref"> & React.RefAttributes<HTMLElement | HTMLDivElement>>;
6393
+
6394
+ }
6395
+ declare module '@elastic/eui/src/components/flyout/flyout_body.styles' {
6396
+ import { UseEuiTheme } from '@elastic/eui/src/services';
6397
+ export const euiFlyoutBodyStyles: (euiThemeContext: UseEuiTheme) => {
6398
+ euiFlyoutBody: import("@emotion/react").SerializedStyles;
6399
+ overflow: {
6400
+ euiFlyoutBody__overflow: import("@emotion/react").SerializedStyles;
6401
+ noBanner: import("@emotion/react").SerializedStyles;
6402
+ hasBanner: import("@emotion/react").SerializedStyles;
6403
+ };
6404
+ euiFlyoutBody__banner: import("@emotion/react").SerializedStyles;
6405
+ };
6406
+
6407
+ }
6408
+ declare module '@elastic/eui/src/components/flyout/flyout_body' {
6409
+ import { FunctionComponent, HTMLAttributes, ReactNode } from 'react';
6410
+ import { CommonProps } from '@elastic/eui/src/components/common';
6411
+ export type EuiFlyoutBodyProps = FunctionComponent<HTMLAttributes<HTMLDivElement> & CommonProps & {
6412
+ /**
6413
+ * Use to display a banner at the top of the body. It is suggested to use `EuiCallOut` for it.
6001
6414
  */
6002
- focusTrapProps?: Pick<EuiFocusTrapProps, 'closeOnMouseup' | 'shards' | 'returnFocus'>;
6415
+ banner?: ReactNode;
6003
6416
  /**
6004
- * By default, EuiFlyout will consider any fixed `EuiHeader`s that sit alongside or above the EuiFlyout
6005
- * as part of the flyout's focus trap. This prevents focus fighting with interactive elements
6006
- * within fixed headers.
6417
+ * [Scrollable regions (or their children) should be focusable](https://dequeuniversity.com/rules/axe/4.0/scrollable-region-focusable)
6418
+ * to allow keyboard users to scroll the region via arrow keys.
6007
6419
  *
6008
- * Set this to `false` if you need to disable this behavior for a specific reason.
6009
- */
6010
- includeFixedHeadersInFocusTrap?: boolean;
6011
- /**
6012
- * Specify additional css selectors to include in the focus trap.
6013
- */
6014
- includeSelectorInFocusTrap?: string[] | string;
6015
- } const defaultElement = "div";
6016
- type Props<T extends ElementType> = CommonProps & {
6017
- /**
6018
- * Sets the HTML element for `EuiFlyout`
6420
+ * By default, EuiFlyoutBody's scroll overflow wrapper sets a `tabIndex` of `0`.
6421
+ * If you know your flyout body content already contains focusable children
6422
+ * that satisfy keyboard accessibility requirements, you can use this prop
6423
+ * to override this default.
6019
6424
  */
6020
- as?: T;
6021
- } & _EuiFlyoutProps & Omit<PropsOfElement<T>, keyof _EuiFlyoutProps>;
6022
- export type EuiFlyoutProps<T extends ElementType = typeof defaultElement> = Props<T> & Omit<ComponentPropsWithRef<T>, keyof Props<T>>;
6023
- export const EuiFlyout: <T extends ElementType = typeof defaultElement>(props: EuiFlyoutProps<T>) => JSX.Element;
6024
- export {};
6425
+ scrollableTabIndex?: number;
6426
+ }>;
6427
+ export const EuiFlyoutBody: EuiFlyoutBodyProps;
6025
6428
 
6026
6429
  }
6027
6430
  declare module '@elastic/eui/src/components/flyout/flyout_footer.styles' {
@@ -6749,179 +7152,29 @@ declare module '@elastic/eui/src/components/flyout/flyout_resizable' {
6749
7152
  export const EuiFlyoutResizable: React.ForwardRefExoticComponent<Omit<EuiFlyoutResizableProps, "ref"> & React.RefAttributes<unknown>>;
6750
7153
 
6751
7154
  }
6752
- declare module '@elastic/eui/src/components/flyout/sessions/types' {
6753
- import { EuiFlyoutProps, EuiFlyoutSize } from '@elastic/eui/src/components/flyout/flyout';
6754
- import { EuiFlyoutChildProps } from '@elastic/eui/src/components/flyout/flyout_child';
6755
- /**
6756
- * Configuration used for setting display options for main and child flyouts in a session.
6757
- */
6758
- export interface EuiFlyoutSessionConfig {
6759
- mainSize: EuiFlyoutSize;
6760
- childSize?: 's' | 'm';
6761
- mainFlyoutProps?: Partial<Omit<EuiFlyoutProps, 'children'>>;
6762
- childFlyoutProps?: Partial<Omit<EuiFlyoutChildProps, 'children'>>;
6763
- }
6764
- /**
6765
- * Options that control a main flyout in a session
6766
- */
6767
- export interface EuiFlyoutSessionOpenMainOptions<Meta = unknown> {
6768
- size: EuiFlyoutSize;
6769
- flyoutProps?: EuiFlyoutSessionConfig['mainFlyoutProps'];
6770
- /**
6771
- * Caller-defined data
6772
- */
6773
- meta?: Meta;
6774
- }
6775
- /**
6776
- * Options that control a child flyout in a session
6777
- */
6778
- export interface EuiFlyoutSessionOpenChildOptions<Meta = unknown> {
6779
- size: 's' | 'm';
6780
- flyoutProps?: EuiFlyoutSessionConfig['childFlyoutProps'];
6781
- /**
6782
- * Caller-defined data
6783
- */
6784
- meta?: Meta;
6785
- }
6786
- /**
6787
- * Options for opening both a main flyout and child flyout simultaneously
6788
- */
6789
- export interface EuiFlyoutSessionOpenGroupOptions<Meta = unknown> {
6790
- main: EuiFlyoutSessionOpenMainOptions;
6791
- child: EuiFlyoutSessionOpenChildOptions;
6792
- /**
6793
- * Caller-defined data
6794
- */
6795
- meta?: Meta;
6796
- }
6797
- /**
6798
- * A configuration user state for past and current main and child flyouts in a session
6799
- * @internal
6800
- */
6801
- export interface EuiFlyoutSessionGroup<FlyoutMeta> {
6802
- isMainOpen: boolean;
6803
- isChildOpen: boolean;
6804
- config: EuiFlyoutSessionConfig;
6805
- /**
6806
- * Caller-defined data
6807
- */
6808
- meta?: FlyoutMeta;
6809
- }
6810
- /**
6811
- * State used for tracking various EuiFlyoutSessionGroups
6812
- * @internal
6813
- */
6814
- export interface EuiFlyoutSessionHistoryState<FlyoutMeta = unknown> {
6815
- activeFlyoutGroup: EuiFlyoutSessionGroup<FlyoutMeta> | null;
6816
- history: Array<EuiFlyoutSessionGroup<FlyoutMeta>>;
6817
- }
6818
- export type EuiFlyoutSessionAction<FlyoutMeta = unknown> = {
6819
- type: 'UPDATE_ACTIVE_FLYOUT_CONFIG';
6820
- payload: {
6821
- configChanges: Partial<EuiFlyoutSessionConfig>;
6822
- };
6823
- } | {
6824
- type: 'OPEN_MAIN_FLYOUT';
6825
- payload: EuiFlyoutSessionOpenMainOptions<FlyoutMeta>;
6826
- } | {
6827
- type: 'OPEN_CHILD_FLYOUT';
6828
- payload: EuiFlyoutSessionOpenChildOptions<FlyoutMeta>;
6829
- } | {
6830
- type: 'OPEN_FLYOUT_GROUP';
6831
- payload: EuiFlyoutSessionOpenGroupOptions<FlyoutMeta>;
6832
- } | {
6833
- type: 'GO_BACK';
6834
- } | {
6835
- type: 'CLOSE_CHILD_FLYOUT';
6836
- } | {
6837
- type: 'CLOSE_SESSION';
6838
- };
6839
- /**
6840
- * Flyout session context managed by `EuiFlyoutSessionProvider`, and passed to the `renderMainFlyoutContent` and `renderChildFlyoutContent` functions.
6841
- */
6842
- export interface EuiFlyoutSessionRenderContext<FlyoutMeta = unknown> {
6843
- activeFlyoutGroup: EuiFlyoutSessionGroup<FlyoutMeta> | null;
6844
- /**
6845
- * Caller-defined data
6846
- */
6847
- meta?: FlyoutMeta;
6848
- }
6849
- /**
6850
- * Props that can be passed to `EuiFlyoutSessionProvider` to render the main and child flyouts in a session.
6851
- */
6852
- export interface EuiFlyoutSessionProviderComponentProps<FlyoutMeta = any> {
6853
- children: React.ReactNode;
6854
- onUnmount?: () => void;
6855
- renderMainFlyoutContent: (context: EuiFlyoutSessionRenderContext<FlyoutMeta>) => React.ReactNode;
6856
- renderChildFlyoutContent?: (context: EuiFlyoutSessionRenderContext<FlyoutMeta>) => React.ReactNode;
6857
- }
6858
- export interface EuiFlyoutSessionApi {
6859
- openFlyout: (options: EuiFlyoutSessionOpenMainOptions) => void;
6860
- openChildFlyout: (options: EuiFlyoutSessionOpenChildOptions) => void;
6861
- openFlyoutGroup: (options: EuiFlyoutSessionOpenGroupOptions) => void;
6862
- closeChildFlyout: () => void;
6863
- goBack: () => void;
6864
- closeSession: () => void;
6865
- isFlyoutOpen: boolean;
6866
- isChildFlyoutOpen: boolean;
6867
- canGoBack: boolean;
6868
- }
6869
-
6870
- }
6871
- declare module '@elastic/eui/src/components/flyout/sessions/flyout_reducer' {
6872
- import { EuiFlyoutSessionAction, EuiFlyoutSessionHistoryState } from '@elastic/eui/src/components/flyout/sessions/types';
6873
- /**
6874
- * Initial state for the flyout session
6875
- * @internal
6876
- */
6877
- export const initialFlyoutState: EuiFlyoutSessionHistoryState<unknown>;
6878
- /**
6879
- * Flyout reducer
6880
- * Controls state changes for flyout groups
6881
- */
6882
- export function flyoutReducer<FlyoutMeta>(state: EuiFlyoutSessionHistoryState<FlyoutMeta>, action: EuiFlyoutSessionAction<FlyoutMeta>): EuiFlyoutSessionHistoryState<FlyoutMeta>;
6883
-
6884
- }
6885
- declare module '@elastic/eui/src/components/flyout/sessions/flyout_provider' {
6886
- import React from 'react';
6887
- import { EuiFlyoutSessionAction, EuiFlyoutSessionHistoryState, EuiFlyoutSessionProviderComponentProps } from '@elastic/eui/src/components/flyout/sessions/types';
6888
- interface FlyoutSessionContextProps {
6889
- state: EuiFlyoutSessionHistoryState;
6890
- dispatch: React.Dispatch<EuiFlyoutSessionAction>;
6891
- onUnmount?: EuiFlyoutSessionProviderComponentProps['onUnmount'];
6892
- }
6893
- /**
6894
- * Accesses the state data and dispatch function from the context of EuiFlyoutSessionProvider
6895
- * Use this if you need to debug the state or need direct access to the dispatch function, otherwise use useEuiFlyoutSession hook.
6896
- */
6897
- export const useEuiFlyoutSessionContext: () => FlyoutSessionContextProps;
6898
- /**
6899
- * FlyoutProvider is a component that provides a context for Flyout components.
6900
- * It is used to manage the state of the Flyout and its child.
6901
- * It also renders the Flyout and FlyoutChild components.
6902
- *
6903
- * @param children - The children of the FlyoutProvider component.
6904
- * @param renderMainFlyoutContent - A function that renders the content of the main Flyout.
6905
- * @param renderChildFlyoutContent - A function that renders the content of the child Flyout.
6906
- * @returns The FlyoutProvider component.
6907
- */
6908
- export const EuiFlyoutSessionProvider: React.FC<EuiFlyoutSessionProviderComponentProps>;
6909
- export {};
7155
+ declare module '@elastic/eui/src/components/title' {
7156
+ export type { EuiTitleProps, EuiTitleSize } from '@elastic/eui/src/components/title/title';
7157
+ export { EuiTitle } from '@elastic/eui/src/components/title/title';
6910
7158
 
6911
7159
  }
6912
- declare module '@elastic/eui/src/components/flyout/sessions/use_eui_flyout' {
6913
- import type { EuiFlyoutSessionApi } from '@elastic/eui/src/components/flyout/sessions/types';
6914
- /**
6915
- * Hook for accessing the flyout API
6916
- * @public
6917
- */
6918
- export function useEuiFlyoutSession(): EuiFlyoutSessionApi;
7160
+ declare module '@elastic/eui/src/components/flyout/flyout_menu.styles' {
7161
+ import { UseEuiTheme } from '@elastic/eui/src/services';
7162
+ export const euiFlyoutMenuStyles: (euiThemeContext: UseEuiTheme) => {
7163
+ euiFlyoutMenu__container: import("@emotion/react").SerializedStyles;
7164
+ euiFlyoutMenu__spacer: import("@emotion/react").SerializedStyles;
7165
+ };
6919
7166
 
6920
7167
  }
6921
- declare module '@elastic/eui/src/components/flyout/sessions' {
6922
- export { EuiFlyoutSessionProvider, useEuiFlyoutSessionContext, } from '@elastic/eui/src/components/flyout/sessions/flyout_provider';
6923
- export type { EuiFlyoutSessionApi, EuiFlyoutSessionConfig, EuiFlyoutSessionOpenChildOptions, EuiFlyoutSessionOpenGroupOptions, EuiFlyoutSessionOpenMainOptions, EuiFlyoutSessionProviderComponentProps, EuiFlyoutSessionRenderContext, } from '@elastic/eui/src/components/flyout/sessions/types';
6924
- export { useEuiFlyoutSession } from '@elastic/eui/src/components/flyout/sessions/use_eui_flyout';
7168
+ declare module '@elastic/eui/src/components/flyout/flyout_menu' {
7169
+ import React, { FunctionComponent, HTMLAttributes } from 'react';
7170
+ import { CommonProps } from '@elastic/eui/src/components/common';
7171
+ export type EuiFlyoutMenuProps = CommonProps & HTMLAttributes<HTMLDivElement> & {
7172
+ backButton?: React.ReactNode;
7173
+ popover?: React.ReactNode;
7174
+ title?: React.ReactNode;
7175
+ hideCloseButton?: boolean;
7176
+ };
7177
+ export const EuiFlyoutMenu: FunctionComponent<EuiFlyoutMenuProps>;
6925
7178
 
6926
7179
  }
6927
7180
  declare module '@elastic/eui/src/components/flyout' {
@@ -6936,10 +7189,9 @@ declare module '@elastic/eui/src/components/flyout' {
6936
7189
  export { euiFlyoutSlideInRight, euiFlyoutSlideInLeft } from '@elastic/eui/src/components/flyout/flyout.styles';
6937
7190
  export type { EuiFlyoutResizableProps } from '@elastic/eui/src/components/flyout/flyout_resizable';
6938
7191
  export { EuiFlyoutResizable } from '@elastic/eui/src/components/flyout/flyout_resizable';
6939
- export { EuiFlyoutChild } from '@elastic/eui/src/components/flyout/flyout_child';
6940
- export type { EuiFlyoutChildProps } from '@elastic/eui/src/components/flyout/flyout_child';
6941
- export type { EuiFlyoutSessionApi, EuiFlyoutSessionConfig, EuiFlyoutSessionOpenChildOptions, EuiFlyoutSessionOpenMainOptions, EuiFlyoutSessionOpenGroupOptions, EuiFlyoutSessionProviderComponentProps, EuiFlyoutSessionRenderContext, } from '@elastic/eui/src/components/flyout/sessions';
6942
- export { EuiFlyoutSessionProvider, useEuiFlyoutSession } from '@elastic/eui/src/components/flyout/sessions';
7192
+ export type { EuiFlyoutMenuProps } from '@elastic/eui/src/components/flyout/flyout_menu';
7193
+ export { EuiFlyoutMenu } from '@elastic/eui/src/components/flyout/flyout_menu';
7194
+ export { useIsInManagedFlyout, useHasActiveSession } from '@elastic/eui/src/components/flyout/manager';
6943
7195
 
6944
7196
  }
6945
7197
  declare module '@elastic/eui/src/components/provider/component_defaults/component_defaults' {
@@ -8856,10 +9108,14 @@ declare module '@elastic/eui/src/components/accessibility/screen_reader_live/scr
8856
9108
  * `role` attribute for both live regions.
8857
9109
  *
8858
9110
  * https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/ARIA_Live_Regions#roles_with_implicit_live_region_attributes
9111
+ *
9112
+ * @default 'status'
8859
9113
  */
8860
9114
  role?: HTMLAttributes<HTMLDivElement>['role'];
8861
9115
  /**
8862
9116
  * `aria-live` attribute for both live regions
9117
+ *
9118
+ * @default 'polite'
8863
9119
  */
8864
9120
  'aria-live'?: AriaAttributes['aria-live'];
8865
9121
  /**
@@ -8867,6 +9123,8 @@ declare module '@elastic/eui/src/components/accessibility/screen_reader_live/scr
8867
9123
  * to automatically read out the text content. This prop should primarily be used for
8868
9124
  * navigation or page changes, where programmatically resetting focus location back to
8869
9125
  * a certain part of the page is desired.
9126
+ *
9127
+ * @default false
8870
9128
  */
8871
9129
  focusRegionOnTextChange?: boolean;
8872
9130
  }
@@ -8936,6 +9194,25 @@ declare module '@elastic/eui/src/components/accessibility/skip_link' {
8936
9194
  export type { EuiSkipLinkProps } from '@elastic/eui/src/components/accessibility/skip_link/skip_link';
8937
9195
  export { EuiSkipLink } from '@elastic/eui/src/components/accessibility/skip_link/skip_link';
8938
9196
 
9197
+ }
9198
+ declare module '@elastic/eui/src/components/accessibility/live_announcer/live_announcer' {
9199
+ import { FunctionComponent } from 'react';
9200
+ import { EuiScreenReaderLiveProps } from '@elastic/eui/src/components/accessibility/screen_reader_live';
9201
+ export type EuiLiveAnnouncerProps = Omit<EuiScreenReaderLiveProps, 'focusRegionOnTextChange'> & {
9202
+ /**
9203
+ * Sets a delay in ms before the live region is cleared.
9204
+ * The message will still be read by screen readers even if it's cleared in between.
9205
+ *
9206
+ * @default 2000
9207
+ */
9208
+ clearAfterMs?: number | false;
9209
+ };
9210
+ export const EuiLiveAnnouncer: FunctionComponent<EuiLiveAnnouncerProps>;
9211
+
9212
+ }
9213
+ declare module '@elastic/eui/src/components/accessibility/live_announcer' {
9214
+ export * from '@elastic/eui/src/components/accessibility/live_announcer/live_announcer';
9215
+
8939
9216
  }
8940
9217
  declare module '@elastic/eui/src/components/accessibility' {
8941
9218
  export { EuiScreenReaderLive } from '@elastic/eui/src/components/accessibility/screen_reader_live';
@@ -8944,6 +9221,7 @@ declare module '@elastic/eui/src/components/accessibility' {
8944
9221
  export type { EuiScreenReaderOnlyProps } from '@elastic/eui/src/components/accessibility/screen_reader_only';
8945
9222
  export { EuiSkipLink } from '@elastic/eui/src/components/accessibility/skip_link';
8946
9223
  export type { EuiSkipLinkProps } from '@elastic/eui/src/components/accessibility/skip_link';
9224
+ export { type EuiLiveAnnouncerProps, EuiLiveAnnouncer } from '@elastic/eui/src/components/accessibility/live_announcer';
8947
9225
 
8948
9226
  }
8949
9227
  declare module '@elastic/eui/src/components/accordion/accordion_trigger/accordion_button.styles' {
@@ -10087,11 +10365,6 @@ declare module '@elastic/eui/src/components/breadcrumbs' {
10087
10365
  export type { EuiBreadcrumbProps as EuiBreadcrumb, EuiBreadcrumbsProps, EuiBreadcrumbResponsiveMaxCount, } from '@elastic/eui/src/components/breadcrumbs/types';
10088
10366
  export { EuiBreadcrumbs } from '@elastic/eui/src/components/breadcrumbs/breadcrumbs';
10089
10367
 
10090
- }
10091
- declare module '@elastic/eui/src/components/title' {
10092
- export type { EuiTitleProps, EuiTitleSize } from '@elastic/eui/src/components/title/title';
10093
- export { EuiTitle } from '@elastic/eui/src/components/title/title';
10094
-
10095
10368
  }
10096
10369
  declare module '@elastic/eui/src/components/call_out/call_out.styles' {
10097
10370
  import { UseEuiTheme } from '@elastic/eui/src/services';
@@ -10126,8 +10399,9 @@ declare module '@elastic/eui/src/components/call_out/call_out' {
10126
10399
  export const COLORS: readonly ["primary", "success", "warning", "danger", "accent"];
10127
10400
  export type Color = (typeof COLORS)[number];
10128
10401
  export const HEADINGS: readonly ["h1", "h2", "h3", "h4", "h5", "h6", "p"];
10129
- type Heading = (typeof HEADINGS)[number];
10130
- type Size = 's' | 'm';
10402
+ export type Heading = (typeof HEADINGS)[number];
10403
+ export const SIZES: readonly ["s", "m"];
10404
+ export type Size = (typeof SIZES)[number];
10131
10405
  export type EuiCallOutProps = CommonProps & Omit<HTMLAttributes<HTMLDivElement>, 'title' | 'color'> & {
10132
10406
  title?: ReactNode;
10133
10407
  iconType?: IconType;
@@ -10142,6 +10416,13 @@ declare module '@elastic/eui/src/components/call_out/call_out' {
10142
10416
  * removing the callout or other actions.
10143
10417
  */
10144
10418
  onDismiss?: () => void;
10419
+ /**
10420
+ * Enables the content to be read by screen readers on mount.
10421
+ * Use this for callouts that are shown based on a user action.
10422
+ *
10423
+ * @default false
10424
+ */
10425
+ announceOnMount?: boolean;
10145
10426
  };
10146
10427
  export const EuiCallOut: React.ForwardRefExoticComponent<CommonProps & Omit<React.HTMLAttributes<HTMLDivElement>, "title" | "color"> & {
10147
10428
  title?: ReactNode;
@@ -10157,8 +10438,14 @@ declare module '@elastic/eui/src/components/call_out/call_out' {
10157
10438
  * removing the callout or other actions.
10158
10439
  */
10159
10440
  onDismiss?: () => void;
10441
+ /**
10442
+ * Enables the content to be read by screen readers on mount.
10443
+ * Use this for callouts that are shown based on a user action.
10444
+ *
10445
+ * @default false
10446
+ */
10447
+ announceOnMount?: boolean;
10160
10448
  } & React.RefAttributes<HTMLDivElement>>;
10161
- export {};
10162
10449
 
10163
10450
  }
10164
10451
  declare module '@elastic/eui/src/components/call_out' {
@@ -12622,10 +12909,11 @@ declare module '@elastic/eui/src/components/code/code_block_controls' {
12622
12909
 
12623
12910
  }
12624
12911
  declare module '@elastic/eui/src/components/code/code_block_virtualized' {
12625
- import React, { HTMLAttributes } from 'react';
12912
+ import React, { HTMLAttributes, ReactNode } from 'react';
12626
12913
  import { RefractorNode } from 'refractor';
12627
- export const EuiCodeBlockVirtualized: ({ data, rowHeight, overflowHeight, preProps, codeProps, }: {
12914
+ export const EuiCodeBlockVirtualized: ({ data, label, rowHeight, overflowHeight, preProps, codeProps, }: {
12628
12915
  data: RefractorNode[];
12916
+ label: ReactNode;
12629
12917
  rowHeight: number;
12630
12918
  overflowHeight?: number | string;
12631
12919
  preProps: HTMLAttributes<HTMLPreElement>;
@@ -12869,7 +13157,7 @@ declare module '@elastic/eui/src/components/header/header.styles' {
12869
13157
  }
12870
13158
  declare module '@elastic/eui/src/components/collapsible_nav_beta/context' {
12871
13159
  import { MouseEventHandler } from 'react';
12872
- import { _EuiFlyoutSide } from '@elastic/eui/src/components/flyout/flyout';
13160
+ import { _EuiFlyoutSide } from '@elastic/eui/src/components/flyout/const';
12873
13161
  type _EuiCollapsibleNavContext = {
12874
13162
  isCollapsed: boolean;
12875
13163
  isPush: boolean;
@@ -14373,6 +14661,7 @@ declare module '@elastic/eui/src/components/filter_group/filter_select_item' {
14373
14661
  checked?: FilterChecked;
14374
14662
  showIcons?: boolean;
14375
14663
  isFocused?: boolean;
14664
+ truncateContent?: boolean;
14376
14665
  toolTipContent?: EuiComboBoxOptionOption['toolTipContent'];
14377
14666
  toolTipProps?: EuiComboBoxOptionOption['toolTipProps'];
14378
14667
  forwardRef?: (ref: HTMLButtonElement | null) => void;
@@ -14386,6 +14675,7 @@ declare module '@elastic/eui/src/components/filter_group/filter_select_item' {
14386
14675
  export class EuiFilterSelectItemClass extends Component<WithEuiThemeProps & EuiFilterSelectItemProps> {
14387
14676
  static defaultProps: {
14388
14677
  showIcons: boolean;
14678
+ truncateContent: boolean;
14389
14679
  };
14390
14680
  buttonRef: HTMLButtonElement | null;
14391
14681
  tooltipRef: React.RefObject<EuiToolTip>;
@@ -14396,6 +14686,7 @@ declare module '@elastic/eui/src/components/filter_group/filter_select_item' {
14396
14686
  focus: () => void;
14397
14687
  toggleToolTip: (isFocused: boolean) => void;
14398
14688
  hasFocus: () => boolean;
14689
+ componentDidUpdate(prevProps: Readonly<WithEuiThemeProps<{}> & EuiFilterSelectItemProps>): void;
14399
14690
  render(): React.JSX.Element;
14400
14691
  }
14401
14692
  /**
@@ -14414,6 +14705,7 @@ declare module '@elastic/eui/src/components/combo_box/combo_box_options_list/com
14414
14705
  export const LIST_MAX_HEIGHT = 200;
14415
14706
  export const euiComboBoxOptionListStyles: (euiThemeContext: UseEuiTheme) => {
14416
14707
  euiComboBoxOptionList: import("@emotion/react").SerializedStyles;
14708
+ hasRowHeightAuto: import("@emotion/react").SerializedStyles;
14417
14709
  euiComboBoxOptionList__virtualization: import("@emotion/react").SerializedStyles;
14418
14710
  euiComboBoxOptionsList__empty: import("@emotion/react").SerializedStyles;
14419
14711
  };
@@ -14458,7 +14750,7 @@ declare module '@elastic/eui/src/components/combo_box/combo_box_options_list/com
14458
14750
  options: Array<EuiComboBoxOptionOption<T>>;
14459
14751
  renderOption?: (option: EuiComboBoxOptionOption<T>, searchValue: string, OPTION_CONTENT_CLASSNAME: string) => ReactNode;
14460
14752
  rootId: ReturnType<typeof htmlIdGenerator>;
14461
- rowHeight: number;
14753
+ rowHeight: number | 'auto';
14462
14754
  scrollToIndex?: number;
14463
14755
  searchValue: string;
14464
14756
  selectedOptions: Array<EuiComboBoxOptionOption<T>>;
@@ -14479,9 +14771,17 @@ declare module '@elastic/eui/src/components/combo_box/combo_box_options_list/com
14479
14771
  setListRef: (ref: FixedSizeList | null) => void;
14480
14772
  ListInnerElement: FixedSizeListProps['innerElementType'];
14481
14773
  ListRow: ({ data, index, style }: ListChildComponentProps) => React.JSX.Element;
14774
+ getListInnerElementProps: () => {
14775
+ 'aria-label': string;
14776
+ id: string;
14777
+ role: string;
14778
+ tabIndex: number;
14779
+ };
14482
14780
  optionWidth: number | undefined;
14483
14781
  setOptionWidth: (width: number) => void;
14484
14782
  renderTruncatedOption: (text: string, truncationProps?: EuiComboBoxOptionsListProps<T>["truncationProps"]) => string | React.JSX.Element;
14783
+ renderVariableHeightOption: (text: string) => string | React.JSX.Element;
14784
+ renderHighlightedOptionText: (text: string, searchValue: string) => React.JSX.Element;
14485
14785
  render(): React.JSX.Element;
14486
14786
  }
14487
14787
 
@@ -14564,9 +14864,10 @@ declare module '@elastic/eui/src/components/combo_box/combo_box' {
14564
14864
  */
14565
14865
  placeholder?: string;
14566
14866
  /**
14567
- * Every option must be the same height and must be explicitly set if using a custom render
14867
+ * The height of each option in pixels. When using a custom render (`renderOption` prop) it's recommended to set it explicitly.
14868
+ * `auto` will disable virtualization, enabling text to wrap onto multiple lines.
14568
14869
  */
14569
- rowHeight?: number;
14870
+ rowHeight?: number | 'auto';
14570
14871
  /**
14571
14872
  * When `true` only allows the user to select a single option. Set to `{ asPlainText: true }` to not render input selection as pills
14572
14873
  */
@@ -21101,6 +21402,7 @@ declare module '@elastic/eui/src/components/markdown_editor/markdown_editor_tool
21101
21402
  viewMode: MARKDOWN_MODE;
21102
21403
  onClickPreview: MouseEventHandler<HTMLButtonElement>;
21103
21404
  uiPlugins: EuiMarkdownEditorUiPlugin[];
21405
+ right?: React.ReactNode;
21104
21406
  };
21105
21407
  export const EuiMarkdownEditorToolbar: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & CommonProps & {
21106
21408
  selectedNode?: null | any;
@@ -21108,6 +21410,7 @@ declare module '@elastic/eui/src/components/markdown_editor/markdown_editor_tool
21108
21410
  viewMode: MARKDOWN_MODE;
21109
21411
  onClickPreview: MouseEventHandler<HTMLButtonElement>;
21110
21412
  uiPlugins: EuiMarkdownEditorUiPlugin[];
21413
+ right?: React.ReactNode;
21111
21414
  } & React.RefAttributes<HTMLDivElement>>;
21112
21415
 
21113
21416
  }
@@ -21392,6 +21695,16 @@ declare module '@elastic/eui/src/components/markdown_editor/markdown_format' {
21392
21695
  };
21393
21696
  export const EuiMarkdownFormat: FunctionComponent<EuiMarkdownFormatProps>;
21394
21697
 
21698
+ }
21699
+ declare module '@elastic/eui/src/components/markdown_editor/markdown_editor_footer.styles' {
21700
+ import { UseEuiTheme } from '@elastic/eui/src/services';
21701
+ export const euiMarkdownEditorFooterStyles: (euiThemeContext: UseEuiTheme) => {
21702
+ euiMarkdownEditorFooter: import("@emotion/react").SerializedStyles;
21703
+ euiMarkdownEditorFooter__actions: import("@emotion/react").SerializedStyles;
21704
+ euiMarkdownEditorFooter__uploadError: import("@emotion/react").SerializedStyles;
21705
+ euiMarkdownEditorFooter__popover: import("@emotion/react").SerializedStyles;
21706
+ };
21707
+
21395
21708
  }
21396
21709
  declare module '@elastic/eui/src/components/markdown_editor/icons/markdown_logo' {
21397
21710
  import React from 'react';
@@ -21402,16 +21715,24 @@ declare module '@elastic/eui/src/components/markdown_editor/icons/markdown_logo'
21402
21715
  export default MarkdownLogo;
21403
21716
 
21404
21717
  }
21405
- declare module '@elastic/eui/src/components/markdown_editor/markdown_editor_footer.styles' {
21406
- import { UseEuiTheme } from '@elastic/eui/src/services';
21407
- export const euiMarkdownEditorFooterStyles: (euiThemeContext: UseEuiTheme) => {
21408
- euiMarkdownEditorFooter: import("@emotion/react").SerializedStyles;
21409
- euiMarkdownEditorFooter__actions: import("@emotion/react").SerializedStyles;
21410
- euiMarkdownEditorFooter__uploadError: import("@emotion/react").SerializedStyles;
21718
+ declare module '@elastic/eui/src/components/markdown_editor/markdown_editor_help_button.styles' {
21719
+ export const euiMarkdownEditorHelpButtonStyles: () => {
21411
21720
  euiMarkdownEditorFooter__helpButton: import("@emotion/react").SerializedStyles;
21412
- euiMarkdownEditorFooter__popover: import("@emotion/react").SerializedStyles;
21413
21721
  };
21414
21722
 
21723
+ }
21724
+ declare module '@elastic/eui/src/components/markdown_editor/markdown_editor_help_button' {
21725
+ import React from 'react';
21726
+ import { EuiMarkdownEditorUiPlugin } from '@elastic/eui/src/components/markdown_editor/markdown_types';
21727
+ interface EuiMarkdownEditorHelpButtonProps {
21728
+ uiPlugins: EuiMarkdownEditorUiPlugin[];
21729
+ }
21730
+ export const EuiMarkdownEditorHelpButton: {
21731
+ ({ uiPlugins, }: EuiMarkdownEditorHelpButtonProps): React.JSX.Element;
21732
+ displayName: string;
21733
+ };
21734
+ export {};
21735
+
21415
21736
  }
21416
21737
  declare module '@elastic/eui/src/components/markdown_editor/markdown_editor_footer' {
21417
21738
  import React from 'react';
@@ -21451,6 +21772,7 @@ declare module '@elastic/eui/src/components/markdown_editor/markdown_editor_drop
21451
21772
  setHasUnacceptedItems: (hasUnacceptedItems: boolean) => void;
21452
21773
  setEditorFooterHeight: (height: number) => void;
21453
21774
  isEditing: boolean;
21775
+ showFooter?: boolean;
21454
21776
  }
21455
21777
  export const EuiMarkdownEditorDropZone: FunctionComponent<EuiMarkdownEditorDropZoneProps>;
21456
21778
  export {};
@@ -21461,6 +21783,7 @@ declare module '@elastic/eui/src/components/markdown_editor/markdown_editor' {
21461
21783
  import { PluggableList } from 'unified';
21462
21784
  import { VFileMessage } from 'vfile-message';
21463
21785
  import { CommonProps, OneOf } from '@elastic/eui/src/components/common';
21786
+ import { EuiMarkdownEditorToolbarProps } from '@elastic/eui/src/components/markdown_editor/markdown_editor_toolbar';
21464
21787
  import { EuiMarkdownEditorTextAreaProps } from '@elastic/eui/src/components/markdown_editor/markdown_editor_text_area';
21465
21788
  import { EuiMarkdownFormatProps } from '@elastic/eui/src/components/markdown_editor/markdown_format';
21466
21789
  import { MARKDOWN_MODE } from '@elastic/eui/src/components/markdown_editor/markdown_modes';
@@ -21524,9 +21847,17 @@ declare module '@elastic/eui/src/components/markdown_editor/markdown_editor' {
21524
21847
  * Further extend the props applied to EuiMarkdownFormat
21525
21848
  */
21526
21849
  markdownFormatProps?: Omit<EuiMarkdownFormatProps, 'parsingPluginList' | 'processingPluginList' | 'children'>;
21850
+ /**
21851
+ * Props to customize the toolbar. `right` replaces the default preview/editor toggle with custom content.
21852
+ */
21853
+ toolbarProps?: {
21854
+ right?: EuiMarkdownEditorToolbarProps['right'];
21855
+ };
21856
+ /** Controls whether the footer is shown */
21857
+ showFooter?: boolean;
21527
21858
  };
21528
21859
  export type EuiMarkdownEditorProps = OneOf<CommonMarkdownEditorProps, 'aria-label' | 'aria-labelledby'>;
21529
- interface EuiMarkdownEditorRef {
21860
+ export interface EuiMarkdownEditorRef {
21530
21861
  textarea: HTMLTextAreaElement | null;
21531
21862
  replaceNode: ContextShape['replaceNode'];
21532
21863
  }
@@ -21535,8 +21866,9 @@ declare module '@elastic/eui/src/components/markdown_editor/markdown_editor' {
21535
21866
 
21536
21867
  }
21537
21868
  declare module '@elastic/eui/src/components/markdown_editor' {
21538
- export type { EuiMarkdownEditorProps } from '@elastic/eui/src/components/markdown_editor/markdown_editor';
21869
+ export type { EuiMarkdownEditorProps, EuiMarkdownEditorRef, } from '@elastic/eui/src/components/markdown_editor/markdown_editor';
21539
21870
  export { EuiMarkdownEditor } from '@elastic/eui/src/components/markdown_editor/markdown_editor';
21871
+ export { EuiMarkdownEditorHelpButton } from '@elastic/eui/src/components/markdown_editor/markdown_editor_help_button';
21540
21872
  export { getDefaultEuiMarkdownParsingPlugins, getDefaultEuiMarkdownProcessingPlugins, getDefaultEuiMarkdownUiPlugins, getDefaultEuiMarkdownPlugins, } from '@elastic/eui/src/components/markdown_editor/plugins/markdown_default_plugins';
21541
21873
  export { EuiMarkdownContext } from '@elastic/eui/src/components/markdown_editor/markdown_context';
21542
21874
  export type { EuiMarkdownFormatProps } from '@elastic/eui/src/components/markdown_editor/markdown_format';
@@ -30773,6 +31105,28 @@ declare module '@elastic/eui/src/components/icon/assets/temperature' {
30773
31105
  export const icon: ({ title, titleId, ...props }: SVGProps<SVGSVGElement> & SVGRProps) => React.JSX.Element;
30774
31106
  export {};
30775
31107
 
31108
+ }
31109
+ declare module '@elastic/eui/src/components/icon/assets/thumbDown' {
31110
+ import * as React from 'react';
31111
+ import type { SVGProps } from 'react';
31112
+ interface SVGRProps {
31113
+ title?: string;
31114
+ titleId?: string;
31115
+ }
31116
+ export const icon: ({ title, titleId, ...props }: SVGProps<SVGSVGElement> & SVGRProps) => React.JSX.Element;
31117
+ export {};
31118
+
31119
+ }
31120
+ declare module '@elastic/eui/src/components/icon/assets/thumbUp' {
31121
+ import * as React from 'react';
31122
+ import type { SVGProps } from 'react';
31123
+ interface SVGRProps {
31124
+ title?: string;
31125
+ titleId?: string;
31126
+ }
31127
+ export const icon: ({ title, titleId, ...props }: SVGProps<SVGSVGElement> & SVGRProps) => React.JSX.Element;
31128
+ export {};
31129
+
30776
31130
  }
30777
31131
  declare module '@elastic/eui/src/components/icon/assets/timeRefresh' {
30778
31132
  import * as React from 'react';
@@ -33653,12 +34007,13 @@ declare module '@elastic/eui' {
33653
34007
  "euiTourFooter.endTour": any;
33654
34008
  "euiTourFooter.skipTour": any;
33655
34009
  "euiTourFooter.closeTour": any;
34010
+ "euiIconTip.defaultAriaLabel": any;
33656
34011
  "euiToast.newNotification": any;
33657
34012
  "euiToast.notification": any;
33658
34013
  "euiToast.dismissToast": any;
33659
34014
  "euiGlobalToastList.clearAllToastsButtonAriaLabel": any;
33660
34015
  "euiGlobalToastList.clearAllToastsButtonDisplayText": any;
33661
- "euiIconTip.defaultAriaLabel": any;
34016
+ "euiTableHeaderCell.titleTextWithDesc": any;
33662
34017
  "euiStepStrings.step": any;
33663
34018
  "euiStepStrings.simpleStep": any;
33664
34019
  "euiStepStrings.complete": any;
@@ -33675,7 +34030,6 @@ declare module '@elastic/eui' {
33675
34030
  "euiStepStrings.simpleLoading": any;
33676
34031
  "euiStepStrings.current": any;
33677
34032
  "euiStepStrings.simpleCurrent": any;
33678
- "euiTableHeaderCell.titleTextWithDesc": any;
33679
34033
  "euiStat.loadingText": any;
33680
34034
  "euiSkeletonLoading.loadedAriaText": any;
33681
34035
  "euiSkeletonLoading.loadingAriaText": any;
@@ -33709,37 +34063,37 @@ declare module '@elastic/eui' {
33709
34063
  "euiPagination.collection": any;
33710
34064
  "euiPagination.fromEndLabel": any;
33711
34065
  "euiModal.closeModal": any;
33712
- "euiMark.highlightStart": any;
33713
- "euiMark.highlightEnd": any;
33714
- "euiLoadingStrings.ariaLabel": any;
33715
- "euiExternalLinkIcon.newTarget.screenReaderOnlyText": any;
33716
- "euiExternalLinkIcon.externalTarget.screenReaderOnlyText": any;
33717
34066
  "euiMarkdownEditorToolbar.editor": any;
33718
34067
  "euiMarkdownEditorToolbar.previewMarkdown": any;
34068
+ "euiMarkdownEditorHelpButton.mdSyntaxLink": any;
34069
+ "euiMarkdownEditorHelpButton.syntaxTitle": any;
34070
+ "euiMarkdownEditorHelpButton.showMarkdownHelp": any;
34071
+ "euiMarkdownEditorHelpButton.syntaxModalDescriptionPrefix": any;
34072
+ "euiMarkdownEditorHelpButton.syntaxModalDescriptionSuffix": any;
34073
+ "euiMarkdownEditorHelpButton.closeButton": any;
34074
+ "euiMarkdownEditorHelpButton.syntaxPopoverDescription": any;
33719
34075
  "euiMarkdownEditorFooter.uploadingFiles": any;
33720
34076
  "euiMarkdownEditorFooter.openUploadModal": any;
33721
34077
  "euiMarkdownEditorFooter.unsupportedFileType": any;
33722
34078
  "euiMarkdownEditorFooter.supportedFileTypes": any;
33723
34079
  "euiMarkdownEditorFooter.showSyntaxErrors": any;
33724
- "euiMarkdownEditorFooter.showMarkdownHelp": any;
33725
- "euiMarkdownEditorFooter.syntaxTitle": any;
33726
34080
  "euiMarkdownEditorFooter.errorsTitle": any;
33727
- "euiMarkdownEditorFooter.mdSyntaxLink": any;
33728
- "euiMarkdownEditorFooter.syntaxModalDescriptionPrefix": any;
33729
- "euiMarkdownEditorFooter.syntaxModalDescriptionSuffix": any;
33730
- "euiMarkdownEditorFooter.closeButton": any;
33731
- "euiMarkdownEditorFooter.syntaxPopoverDescription": any;
34081
+ "euiMark.highlightStart": any;
34082
+ "euiMark.highlightEnd": any;
34083
+ "euiLoadingStrings.ariaLabel": any;
34084
+ "euiExternalLinkIcon.newTarget.screenReaderOnlyText": any;
34085
+ "euiExternalLinkIcon.externalTarget.screenReaderOnlyText": any;
34086
+ "euiImageButton.openFullScreen": any;
34087
+ "euiImageButton.closeFullScreen": any;
33732
34088
  "euiInlineEditForm.saveButtonAriaLabel": any;
33733
34089
  "euiInlineEditForm.cancelButtonAriaLabel": any;
33734
34090
  "euiInlineEditForm.inputKeyboardInstructions": any;
33735
34091
  "euiInlineEditForm.activateEditModeDescription": any;
33736
- "euiImageButton.openFullScreen": any;
33737
- "euiImageButton.closeFullScreen": any;
34092
+ "euiForm.addressFormErrors": any;
33738
34093
  "euiFlyout.screenReaderModalDialog": any;
33739
34094
  "euiFlyout.screenReaderNonModalDialog": any;
33740
34095
  "euiFlyout.screenReaderFocusTrapShards": any;
33741
34096
  "euiFlyoutCloseButton.ariaLabel": any;
33742
- "euiForm.addressFormErrors": any;
33743
34097
  "euiFilterButton.filterBadgeActiveAriaLabel": any;
33744
34098
  "euiFilterButton.filterBadgeAvailableAriaLabel": any;
33745
34099
  "euiErrorBoundary.error": any;
@@ -33750,10 +34104,10 @@ declare module '@elastic/eui' {
33750
34104
  "euiSaturation.ariaLabel": any;
33751
34105
  "euiSaturation.roleDescription": any;
33752
34106
  "euiSaturation.screenReaderInstructions": any;
34107
+ "euiColorPickerSwatch.ariaLabel": any;
33753
34108
  "euiHue.ariaValueText": any;
33754
34109
  "euiHue.ariaRoleDescription": any;
33755
34110
  "euiHue.label": any;
33756
- "euiColorPickerSwatch.ariaLabel": any;
33757
34111
  "euiColorPicker.popoverLabel": any;
33758
34112
  "euiColorPicker.colorLabel": any;
33759
34113
  "euiColorPicker.selectedColorLabel": any;
@@ -33763,10 +34117,10 @@ declare module '@elastic/eui' {
33763
34117
  "euiColorPicker.openLabel": any;
33764
34118
  "euiColorPicker.closeLabel": any;
33765
34119
  "euiCollapsibleNavBeta.ariaLabel": any;
34120
+ "euiCodeBlockCopy.copy": any;
33766
34121
  "euiCodeBlockFullScreen.fullscreenCollapse": any;
33767
34122
  "euiCodeBlockFullScreen.fullscreenExpand": any;
33768
34123
  "euiCodeBlockFullScreen.ariaLabel": any;
33769
- "euiCodeBlockCopy.copy": any;
33770
34124
  "euiCodeBlockAnnotations.ariaLabel": any;
33771
34125
  "euiCodeBlock.label": any;
33772
34126
  "euiCallOut.dismissAriaLabel": any;
@@ -33788,11 +34142,11 @@ declare module '@elastic/eui' {
33788
34142
  "euiBasicTable.deselectRows": any;
33789
34143
  "euiBasicTable.selectThisRow": any;
33790
34144
  "euiBasicTable.tablePagination": any;
34145
+ "euiTableSortMobile.sorting": any;
33791
34146
  "euiTablePagination.allRows": any;
33792
34147
  "euiTablePagination.rowsPerPage": any;
33793
34148
  "euiTablePagination.rowsPerPageOptionShowAllRows": any;
33794
34149
  "euiTablePagination.rowsPerPageOption": any;
33795
- "euiTableSortMobile.sorting": any;
33796
34150
  "euiSelectableTemplateSitewide.searchPlaceholder": any;
33797
34151
  "euiSelectableTemplateSitewide.loadingResults": any;
33798
34152
  "euiSelectableTemplateSitewide.noResults": any;
@@ -33815,29 +34169,15 @@ declare module '@elastic/eui' {
33815
34169
  "euiSuperSelect.ariaLabel": any;
33816
34170
  "euiRange.sliderScreenReaderInstructions": any;
33817
34171
  "euiDualRange.sliderScreenReaderInstructions": any;
34172
+ "euiFormControlLayoutDelimited.delimiterLabel": any;
34173
+ "euiFormControlLayoutClearButton.label": any;
33818
34174
  "euiFilePicker.promptText": any;
33819
34175
  "euiFilePicker.filesSelected": any;
33820
34176
  "euiFilePicker.removeSelectedAriaLabel": any;
33821
34177
  "euiFilePicker.removeSelected": any;
33822
- "euiFormControlLayoutDelimited.delimiterLabel": any;
33823
- "euiFormControlLayoutClearButton.label": any;
33824
34178
  "euiFieldSearch.clearSearchButtonLabel": any;
33825
34179
  "euiFieldPassword.showPassword": any;
33826
34180
  "euiFieldPassword.maskPassword": any;
33827
- "euiRefreshInterval.fullDescriptionOff": any;
33828
- "euiRefreshInterval.fullDescriptionOn": any;
33829
- "euiRefreshInterval.toggleLabel": any;
33830
- "euiRefreshInterval.toggleAriaLabel": any;
33831
- "euiRefreshInterval.valueAriaLabel": any;
33832
- "euiRefreshInterval.unitsAriaLabel": any;
33833
- "euiAutoRefresh.autoRefreshLabel": any;
33834
- "euiAutoRefresh.buttonLabelOff": any;
33835
- "euiAutoRefresh.buttonLabelOn": any;
33836
- "euiSuperUpdateButton.updatingButtonLabel": any;
33837
- "euiSuperUpdateButton.updateButtonLabel": any;
33838
- "euiSuperUpdateButton.refreshButtonLabel": any;
33839
- "euiSuperUpdateButton.cannotUpdateTooltip": any;
33840
- "euiSuperUpdateButton.clickToApplyTooltip": any;
33841
34181
  "euiTimeOptions.last": any;
33842
34182
  "euiTimeOptions.next": any;
33843
34183
  "euiTimeOptions.seconds": any;
@@ -33876,6 +34216,11 @@ declare module '@elastic/eui' {
33876
34216
  "euiTimeOptions.weekToDate": any;
33877
34217
  "euiTimeOptions.monthToDate": any;
33878
34218
  "euiTimeOptions.yearToDate": any;
34219
+ "euiSuperUpdateButton.updatingButtonLabel": any;
34220
+ "euiSuperUpdateButton.updateButtonLabel": any;
34221
+ "euiSuperUpdateButton.refreshButtonLabel": any;
34222
+ "euiSuperUpdateButton.cannotUpdateTooltip": any;
34223
+ "euiSuperUpdateButton.clickToApplyTooltip": any;
33879
34224
  "euiPrettyInterval.seconds": any;
33880
34225
  "euiPrettyInterval.minutes": any;
33881
34226
  "euiPrettyInterval.hours": any;
@@ -33909,6 +34254,17 @@ declare module '@elastic/eui' {
33909
34254
  "euiPrettyDuration.now": any;
33910
34255
  "euiPrettyDuration.invalid": any;
33911
34256
  "euiPrettyDuration.fallbackDuration": any;
34257
+ "euiRefreshInterval.fullDescriptionOff": any;
34258
+ "euiRefreshInterval.fullDescriptionOn": any;
34259
+ "euiRefreshInterval.toggleLabel": any;
34260
+ "euiRefreshInterval.toggleAriaLabel": any;
34261
+ "euiRefreshInterval.valueAriaLabel": any;
34262
+ "euiRefreshInterval.unitsAriaLabel": any;
34263
+ "euiAutoRefresh.autoRefreshLabel": any;
34264
+ "euiAutoRefresh.buttonLabelOff": any;
34265
+ "euiAutoRefresh.buttonLabelOn": any;
34266
+ "euiDataGridPagination.detailedPaginationLabel": any;
34267
+ "euiDataGridPagination.paginationLabel": any;
33912
34268
  "euiDataGridSchema.booleanSortTextAsc": any;
33913
34269
  "euiDataGridSchema.booleanSortTextDesc": any;
33914
34270
  "euiDataGridSchema.currencySortTextAsc": any;
@@ -33919,8 +34275,6 @@ declare module '@elastic/eui' {
33919
34275
  "euiDataGridSchema.numberSortTextDesc": any;
33920
34276
  "euiDataGridSchema.jsonSortTextAsc": any;
33921
34277
  "euiDataGridSchema.jsonSortTextDesc": any;
33922
- "euiDataGridPagination.detailedPaginationLabel": any;
33923
- "euiDataGridPagination.paginationLabel": any;
33924
34278
  "euiKeyboardShortcuts.title": any;
33925
34279
  "euiKeyboardShortcuts.upArrowTitle": any;
33926
34280
  "euiKeyboardShortcuts.upArrowDescription": any;