@elastic/eui 123.4.0 → 123.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (394) hide show
  1. package/dist/eui-icons.json +87 -86
  2. package/dist/svgs/logo_elastic_mono.svg +3 -0
  3. package/dist/svgs/moon.svg +2 -2
  4. package/dist/svgs/product_nightshift.svg +4 -3
  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/badge/notification_badge/badge_notification.js +1 -1
  9. package/es/components/badge/notification_badge/badge_notification.styles.js +1 -0
  10. package/es/components/basic_table/basic_table.js +34 -34
  11. package/es/components/basic_table/in_memory_table.js +9 -9
  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_icon/button_icon.js +1 -1
  15. package/es/components/button/split_button/split_button.js +9 -9
  16. package/es/components/button/split_button/split_button.styles.js +11 -5
  17. package/es/components/button/split_button/split_button_actions.js +6 -12
  18. package/es/components/call_out/call_out.js +2 -2
  19. package/es/components/card/card.js +1 -1
  20. package/es/components/collapsible_nav/collapsible_nav_group/collapsible_nav_group.js +1 -1
  21. package/es/components/combo_box/combo_box.js +41 -41
  22. package/es/components/comment_list/comment.js +2 -2
  23. package/es/components/comment_list/comment_event.js +1 -1
  24. package/es/components/comment_list/comment_list.js +2 -2
  25. package/es/components/comment_list/comment_timeline.js +1 -1
  26. package/es/components/context_menu/context_menu_item.js +1 -1
  27. package/es/components/datagrid/body/cell/data_grid_cell.js +24 -24
  28. package/es/components/datagrid/body/cell/data_grid_cell_popover.js +7 -7
  29. package/es/components/datagrid/body/data_grid_body.js +13 -13
  30. package/es/components/datagrid/body/data_grid_body_custom.js +13 -13
  31. package/es/components/datagrid/body/data_grid_body_virtualized.js +13 -13
  32. package/es/components/datagrid/body/header/data_grid_header_cell.js +12 -12
  33. package/es/components/datagrid/body/header/draggable_columns.js +2 -2
  34. package/es/components/datagrid/controls/column_sorting.js +13 -13
  35. package/es/components/datagrid/controls/column_sorting_draggable.js +1 -1
  36. package/es/components/datagrid/controls/data_grid_toolbar_control.js +1 -1
  37. package/es/components/datagrid/controls/display_selector.js +3 -3
  38. package/es/components/datagrid/utils/in_memory.js +12 -12
  39. package/es/components/date_picker/date_picker.js +2 -2
  40. package/es/components/date_picker/date_picker_range.js +1 -1
  41. package/es/components/date_picker/react-datepicker/src/date_utils.js +3 -3
  42. package/es/components/date_picker/super_date_picker/date_popover/absolute_tab.js +3 -3
  43. package/es/components/date_picker/super_date_picker/pretty_duration.js +30 -30
  44. package/es/components/date_picker/super_date_picker/super_date_picker.a11y.js +2 -2
  45. package/es/components/empty_prompt/empty_prompt.js +1 -1
  46. package/es/components/filter_group/filter_button.js +1 -1
  47. package/es/components/filter_group/filter_group.a11y.js +13 -13
  48. package/es/components/flex/flex_grid.styles.js +4 -4
  49. package/es/components/flex/flex_group.styles.js +16 -16
  50. package/es/components/flyout/flyout.component.js +43 -36
  51. package/es/components/flyout/flyout_menu/flyout_menu.js +2 -2
  52. package/es/components/form/field_number/field_number.js +2 -2
  53. package/es/components/form/field_text/field_text.js +2 -2
  54. package/es/components/form/form_control_button/form_control_button.js +1 -1
  55. package/es/components/form/form_control_layout/append_prepend/form_append_prepend.js +2 -2
  56. package/es/components/form/form_control_layout/form_control_layout.js +2 -2
  57. package/es/components/form/form_control_layout/form_control_layout_custom_icon.js +1 -1
  58. package/es/components/form/form_row/form_row.styles.js +1 -1
  59. package/es/components/form/text_area/text_area.js +2 -2
  60. package/es/components/header/header.a11y.js +3 -3
  61. package/es/components/header/header_links/header_link.js +1 -1
  62. package/es/components/header/header_links/header_links.js +1 -1
  63. package/es/components/header/header_logo/elastic_logo_full.js +6 -2
  64. package/es/components/header/header_logo/header_logo.js +6 -3
  65. package/es/components/header/header_section/header_section_item_button.js +1 -1
  66. package/es/components/icon/assets/logo_elastic_mono.js +35 -0
  67. package/es/components/icon/assets/moon.js +1 -1
  68. package/es/components/icon/assets/product_nightshift.js +6 -2
  69. package/es/components/icon/icon.js +1 -1
  70. package/es/components/icon/icon_map.js +5 -0
  71. package/es/components/icon/svgs/logo_elastic_mono.svg +3 -0
  72. package/es/components/icon/svgs/moon.svg +2 -2
  73. package/es/components/icon/svgs/product_nightshift.svg +4 -3
  74. package/es/components/key_pad_menu/key_pad_menu_item.js +1 -1
  75. package/es/components/list_group/list_group.js +2 -2
  76. package/es/components/list_group/list_group_item.js +2 -2
  77. package/es/components/list_group/list_group_item_extra_action.js +1 -1
  78. package/es/components/list_group/pinnable_list_group/pinnable_list_group.js +4 -4
  79. package/es/components/loading/loading_logo.js +1 -1
  80. package/es/components/markdown_editor/markdown_editor.js +8 -8
  81. package/es/components/markdown_editor/markdown_editor_drop_zone.js +1 -1
  82. package/es/components/markdown_editor/markdown_editor_footer.js +1 -1
  83. package/es/components/markdown_editor/markdown_editor_toolbar.js +1 -1
  84. package/es/components/modal/modal.styles.js +1 -1
  85. package/es/components/modal/modal_body.styles.js +1 -1
  86. package/es/components/page/page_header/page_header_content.js +1 -1
  87. package/es/components/pagination/pagination_button.js +1 -1
  88. package/es/components/search_bar/filters/field_value_selection_filter.js +3 -3
  89. package/es/components/search_bar/search_bar.js +3 -3
  90. package/es/components/selectable/selectable_list/selectable_list.js +47 -48
  91. package/es/components/selectable/selectable_list/selectable_list_item.js +1 -1
  92. package/es/components/selectable/selectable_templates/selectable_template_sitewide.js +1 -1
  93. package/es/components/steps/step.js +4 -5
  94. package/es/components/steps/steps_horizontal.js +2 -1
  95. package/es/components/steps/sub_steps.js +2 -3
  96. package/es/components/table/table_header_cell.js +1 -1
  97. package/es/components/timeline/timeline_item_icon.js +1 -1
  98. package/es/components/toast/global_toast_list.js +2 -2
  99. package/es/components/toast/toast.js +2 -2
  100. package/es/components/tool_tip/icon_tip.js +1 -1
  101. package/es/components/tool_tip/tool_tip.js +7 -7
  102. package/es/test/index.d.ts +3 -3
  103. package/eui.d.ts +46 -19
  104. package/lib/components/avatar/avatar.js +1 -1
  105. package/lib/components/badge/badge.js +1 -1
  106. package/lib/components/badge/beta_badge/beta_badge.js +1 -1
  107. package/lib/components/badge/notification_badge/badge_notification.js +1 -1
  108. package/lib/components/badge/notification_badge/badge_notification.styles.js +1 -0
  109. package/lib/components/basic_table/basic_table.js +34 -34
  110. package/lib/components/basic_table/in_memory_table.js +9 -9
  111. package/lib/components/button/button_display/_button_display_content.js +1 -1
  112. package/lib/components/button/button_empty/button_empty.js +1 -1
  113. package/lib/components/button/button_icon/button_icon.js +1 -1
  114. package/lib/components/button/split_button/split_button.js +8 -8
  115. package/lib/components/button/split_button/split_button.styles.js +11 -5
  116. package/lib/components/button/split_button/split_button_actions.js +4 -10
  117. package/lib/components/call_out/call_out.js +2 -2
  118. package/lib/components/card/card.js +1 -1
  119. package/lib/components/collapsible_nav/collapsible_nav_group/collapsible_nav_group.js +1 -1
  120. package/lib/components/combo_box/combo_box.js +41 -41
  121. package/lib/components/comment_list/comment.js +2 -2
  122. package/lib/components/comment_list/comment_event.js +1 -1
  123. package/lib/components/comment_list/comment_list.js +2 -2
  124. package/lib/components/comment_list/comment_timeline.js +1 -1
  125. package/lib/components/context_menu/context_menu_item.js +1 -1
  126. package/lib/components/datagrid/body/cell/data_grid_cell.js +24 -24
  127. package/lib/components/datagrid/body/cell/data_grid_cell_popover.js +7 -7
  128. package/lib/components/datagrid/body/data_grid_body.js +13 -13
  129. package/lib/components/datagrid/body/data_grid_body_custom.js +13 -13
  130. package/lib/components/datagrid/body/data_grid_body_virtualized.js +13 -13
  131. package/lib/components/datagrid/body/header/data_grid_header_cell.js +12 -12
  132. package/lib/components/datagrid/body/header/draggable_columns.js +2 -2
  133. package/lib/components/datagrid/controls/column_sorting.js +13 -13
  134. package/lib/components/datagrid/controls/column_sorting_draggable.js +1 -1
  135. package/lib/components/datagrid/controls/data_grid_toolbar_control.js +1 -1
  136. package/lib/components/datagrid/controls/display_selector.js +3 -3
  137. package/lib/components/datagrid/utils/in_memory.js +12 -12
  138. package/lib/components/date_picker/date_picker.js +2 -2
  139. package/lib/components/date_picker/date_picker_range.js +1 -1
  140. package/lib/components/date_picker/react-datepicker/src/date_utils.js +3 -3
  141. package/lib/components/date_picker/super_date_picker/date_popover/absolute_tab.js +3 -3
  142. package/lib/components/date_picker/super_date_picker/pretty_duration.js +30 -30
  143. package/lib/components/date_picker/super_date_picker/super_date_picker.a11y.js +2 -2
  144. package/lib/components/empty_prompt/empty_prompt.js +1 -1
  145. package/lib/components/filter_group/filter_button.js +1 -1
  146. package/lib/components/filter_group/filter_group.a11y.js +13 -13
  147. package/lib/components/flex/flex_grid.styles.js +4 -4
  148. package/lib/components/flex/flex_group.styles.js +16 -16
  149. package/lib/components/flyout/flyout.component.js +43 -36
  150. package/lib/components/flyout/flyout_menu/flyout_menu.js +2 -2
  151. package/lib/components/form/field_number/field_number.js +2 -2
  152. package/lib/components/form/field_text/field_text.js +2 -2
  153. package/lib/components/form/form_control_button/form_control_button.js +1 -1
  154. package/lib/components/form/form_control_layout/append_prepend/form_append_prepend.js +2 -2
  155. package/lib/components/form/form_control_layout/form_control_layout.js +2 -2
  156. package/lib/components/form/form_control_layout/form_control_layout_custom_icon.js +1 -1
  157. package/lib/components/form/form_row/form_row.styles.js +1 -1
  158. package/lib/components/form/text_area/text_area.js +2 -2
  159. package/lib/components/header/header.a11y.js +3 -3
  160. package/lib/components/header/header_links/header_link.js +1 -1
  161. package/lib/components/header/header_links/header_links.js +1 -1
  162. package/lib/components/header/header_logo/elastic_logo_full.js +6 -2
  163. package/lib/components/header/header_logo/header_logo.js +6 -3
  164. package/lib/components/header/header_section/header_section_item_button.js +1 -1
  165. package/lib/components/icon/assets/logo_elastic_mono.js +41 -0
  166. package/lib/components/icon/assets/moon.js +1 -1
  167. package/lib/components/icon/assets/product_nightshift.js +6 -2
  168. package/lib/components/icon/icon.js +1 -1
  169. package/lib/components/icon/icon_map.js +7 -0
  170. package/lib/components/icon/svgs/logo_elastic_mono.svg +3 -0
  171. package/lib/components/icon/svgs/moon.svg +2 -2
  172. package/lib/components/icon/svgs/product_nightshift.svg +4 -3
  173. package/lib/components/key_pad_menu/key_pad_menu_item.js +1 -1
  174. package/lib/components/list_group/list_group.js +2 -2
  175. package/lib/components/list_group/list_group_item.js +2 -2
  176. package/lib/components/list_group/list_group_item_extra_action.js +1 -1
  177. package/lib/components/list_group/pinnable_list_group/pinnable_list_group.js +4 -4
  178. package/lib/components/loading/loading_logo.js +1 -1
  179. package/lib/components/markdown_editor/markdown_editor.js +8 -8
  180. package/lib/components/markdown_editor/markdown_editor_drop_zone.js +1 -1
  181. package/lib/components/markdown_editor/markdown_editor_footer.js +1 -1
  182. package/lib/components/markdown_editor/markdown_editor_toolbar.js +1 -1
  183. package/lib/components/modal/modal.styles.js +1 -1
  184. package/lib/components/modal/modal_body.styles.js +1 -1
  185. package/lib/components/page/page_header/page_header_content.js +1 -1
  186. package/lib/components/pagination/pagination_button.js +1 -1
  187. package/lib/components/search_bar/filters/field_value_selection_filter.js +2 -2
  188. package/lib/components/search_bar/search_bar.js +3 -3
  189. package/lib/components/selectable/selectable_list/selectable_list.js +47 -48
  190. package/lib/components/selectable/selectable_list/selectable_list_item.js +1 -1
  191. package/lib/components/selectable/selectable_templates/selectable_template_sitewide.js +1 -1
  192. package/lib/components/steps/step.js +3 -4
  193. package/lib/components/steps/steps_horizontal.js +2 -1
  194. package/lib/components/steps/sub_steps.js +1 -2
  195. package/lib/components/table/table_header_cell.js +1 -1
  196. package/lib/components/timeline/timeline_item_icon.js +1 -1
  197. package/lib/components/toast/global_toast_list.js +2 -2
  198. package/lib/components/toast/toast.js +2 -2
  199. package/lib/components/tool_tip/icon_tip.js +1 -1
  200. package/lib/components/tool_tip/tool_tip.js +7 -7
  201. package/lib/test/index.d.ts +3 -3
  202. package/optimize/es/components/badge/notification_badge/badge_notification.js +1 -1
  203. package/optimize/es/components/badge/notification_badge/badge_notification.styles.js +1 -0
  204. package/optimize/es/components/basic_table/basic_table.js +30 -30
  205. package/optimize/es/components/basic_table/in_memory_table.js +5 -5
  206. package/optimize/es/components/button/split_button/split_button.js +9 -9
  207. package/optimize/es/components/button/split_button/split_button.styles.js +11 -5
  208. package/optimize/es/components/button/split_button/split_button_actions.js +6 -12
  209. package/optimize/es/components/combo_box/combo_box.js +41 -41
  210. package/optimize/es/components/datagrid/body/cell/data_grid_cell_popover.js +7 -7
  211. package/optimize/es/components/datagrid/body/header/draggable_columns.js +2 -2
  212. package/optimize/es/components/datagrid/controls/display_selector.js +3 -3
  213. package/optimize/es/components/date_picker/react-datepicker/src/date_utils.js +3 -3
  214. package/optimize/es/components/date_picker/super_date_picker/date_popover/absolute_tab.js +3 -3
  215. package/optimize/es/components/date_picker/super_date_picker/pretty_duration.js +30 -30
  216. package/optimize/es/components/date_picker/super_date_picker/super_date_picker.a11y.js +2 -2
  217. package/optimize/es/components/filter_group/filter_button.js +1 -1
  218. package/optimize/es/components/filter_group/filter_group.a11y.js +13 -13
  219. package/optimize/es/components/flex/flex_grid.styles.js +4 -4
  220. package/optimize/es/components/flex/flex_group.styles.js +16 -16
  221. package/optimize/es/components/flyout/flyout.component.js +43 -36
  222. package/optimize/es/components/form/form_row/form_row.styles.js +1 -1
  223. package/optimize/es/components/header/header.a11y.js +3 -3
  224. package/optimize/es/components/header/header_logo/elastic_logo_full.js +6 -2
  225. package/optimize/es/components/header/header_logo/header_logo.js +6 -3
  226. package/optimize/es/components/icon/assets/logo_elastic_mono.js +34 -0
  227. package/optimize/es/components/icon/assets/moon.js +1 -1
  228. package/optimize/es/components/icon/assets/product_nightshift.js +6 -2
  229. package/optimize/es/components/icon/icon_map.js +5 -0
  230. package/optimize/es/components/icon/svgs/logo_elastic_mono.svg +3 -0
  231. package/optimize/es/components/icon/svgs/moon.svg +2 -2
  232. package/optimize/es/components/icon/svgs/product_nightshift.svg +4 -3
  233. package/optimize/es/components/markdown_editor/markdown_editor.js +7 -7
  234. package/optimize/es/components/modal/modal.styles.js +1 -1
  235. package/optimize/es/components/modal/modal_body.styles.js +1 -1
  236. package/optimize/es/components/search_bar/filters/field_value_selection_filter.js +3 -3
  237. package/optimize/es/components/search_bar/search_bar.js +3 -3
  238. package/optimize/es/components/selectable/selectable_list/selectable_list.js +46 -47
  239. package/optimize/es/components/steps/step.js +4 -5
  240. package/optimize/es/components/steps/steps_horizontal.js +2 -1
  241. package/optimize/es/components/steps/sub_steps.js +2 -3
  242. package/optimize/es/components/tool_tip/tool_tip.js +7 -7
  243. package/optimize/es/test/index.d.ts +3 -3
  244. package/optimize/lib/components/badge/notification_badge/badge_notification.js +1 -1
  245. package/optimize/lib/components/badge/notification_badge/badge_notification.styles.js +1 -0
  246. package/optimize/lib/components/basic_table/basic_table.js +30 -30
  247. package/optimize/lib/components/basic_table/in_memory_table.js +5 -5
  248. package/optimize/lib/components/button/split_button/split_button.js +8 -8
  249. package/optimize/lib/components/button/split_button/split_button.styles.js +11 -5
  250. package/optimize/lib/components/button/split_button/split_button_actions.js +4 -10
  251. package/optimize/lib/components/combo_box/combo_box.js +41 -41
  252. package/optimize/lib/components/datagrid/body/cell/data_grid_cell_popover.js +7 -7
  253. package/optimize/lib/components/datagrid/body/header/draggable_columns.js +2 -2
  254. package/optimize/lib/components/datagrid/controls/display_selector.js +3 -3
  255. package/optimize/lib/components/date_picker/react-datepicker/src/date_utils.js +3 -3
  256. package/optimize/lib/components/date_picker/super_date_picker/date_popover/absolute_tab.js +3 -3
  257. package/optimize/lib/components/date_picker/super_date_picker/pretty_duration.js +30 -30
  258. package/optimize/lib/components/date_picker/super_date_picker/super_date_picker.a11y.js +2 -2
  259. package/optimize/lib/components/filter_group/filter_button.js +1 -1
  260. package/optimize/lib/components/filter_group/filter_group.a11y.js +13 -13
  261. package/optimize/lib/components/flex/flex_grid.styles.js +4 -4
  262. package/optimize/lib/components/flex/flex_group.styles.js +16 -16
  263. package/optimize/lib/components/flyout/flyout.component.js +43 -36
  264. package/optimize/lib/components/form/form_row/form_row.styles.js +1 -1
  265. package/optimize/lib/components/header/header.a11y.js +3 -3
  266. package/optimize/lib/components/header/header_logo/elastic_logo_full.js +6 -2
  267. package/optimize/lib/components/header/header_logo/header_logo.js +6 -3
  268. package/optimize/lib/components/icon/assets/logo_elastic_mono.js +41 -0
  269. package/optimize/lib/components/icon/assets/moon.js +1 -1
  270. package/optimize/lib/components/icon/assets/product_nightshift.js +6 -2
  271. package/optimize/lib/components/icon/icon_map.js +7 -0
  272. package/optimize/lib/components/icon/svgs/logo_elastic_mono.svg +3 -0
  273. package/optimize/lib/components/icon/svgs/moon.svg +2 -2
  274. package/optimize/lib/components/icon/svgs/product_nightshift.svg +4 -3
  275. package/optimize/lib/components/markdown_editor/markdown_editor.js +7 -7
  276. package/optimize/lib/components/modal/modal.styles.js +1 -1
  277. package/optimize/lib/components/modal/modal_body.styles.js +1 -1
  278. package/optimize/lib/components/search_bar/filters/field_value_selection_filter.js +2 -2
  279. package/optimize/lib/components/search_bar/search_bar.js +3 -3
  280. package/optimize/lib/components/selectable/selectable_list/selectable_list.js +46 -47
  281. package/optimize/lib/components/steps/step.js +3 -4
  282. package/optimize/lib/components/steps/steps_horizontal.js +2 -1
  283. package/optimize/lib/components/steps/sub_steps.js +1 -2
  284. package/optimize/lib/components/tool_tip/tool_tip.js +7 -7
  285. package/optimize/lib/test/index.d.ts +3 -3
  286. package/package.json +5 -27
  287. package/test-env/components/avatar/avatar.js +1 -1
  288. package/test-env/components/badge/badge.js +1 -1
  289. package/test-env/components/badge/beta_badge/beta_badge.js +1 -1
  290. package/test-env/components/badge/notification_badge/badge_notification.js +1 -1
  291. package/test-env/components/badge/notification_badge/badge_notification.styles.js +1 -0
  292. package/test-env/components/basic_table/basic_table.js +34 -34
  293. package/test-env/components/basic_table/in_memory_table.js +9 -9
  294. package/test-env/components/button/button_display/_button_display_content.js +1 -1
  295. package/test-env/components/button/button_empty/button_empty.js +1 -1
  296. package/test-env/components/button/button_icon/button_icon.js +1 -1
  297. package/test-env/components/button/split_button/split_button.js +8 -8
  298. package/test-env/components/button/split_button/split_button.styles.js +11 -5
  299. package/test-env/components/button/split_button/split_button_actions.js +4 -10
  300. package/test-env/components/call_out/call_out.js +2 -2
  301. package/test-env/components/card/card.js +1 -1
  302. package/test-env/components/collapsible_nav/collapsible_nav_group/collapsible_nav_group.js +1 -1
  303. package/test-env/components/combo_box/combo_box.js +41 -41
  304. package/test-env/components/comment_list/comment.js +2 -2
  305. package/test-env/components/comment_list/comment_event.js +1 -1
  306. package/test-env/components/comment_list/comment_list.js +2 -2
  307. package/test-env/components/comment_list/comment_timeline.js +1 -1
  308. package/test-env/components/context_menu/context_menu_item.js +1 -1
  309. package/test-env/components/datagrid/body/cell/data_grid_cell.js +24 -24
  310. package/test-env/components/datagrid/body/cell/data_grid_cell_popover.js +7 -7
  311. package/test-env/components/datagrid/body/data_grid_body.js +13 -13
  312. package/test-env/components/datagrid/body/data_grid_body_custom.js +13 -13
  313. package/test-env/components/datagrid/body/data_grid_body_virtualized.js +13 -13
  314. package/test-env/components/datagrid/body/header/data_grid_header_cell.js +12 -12
  315. package/test-env/components/datagrid/body/header/draggable_columns.js +2 -2
  316. package/test-env/components/datagrid/controls/column_sorting.js +13 -13
  317. package/test-env/components/datagrid/controls/column_sorting_draggable.js +1 -1
  318. package/test-env/components/datagrid/controls/data_grid_toolbar_control.js +1 -1
  319. package/test-env/components/datagrid/controls/display_selector.js +3 -3
  320. package/test-env/components/datagrid/utils/in_memory.js +12 -12
  321. package/test-env/components/date_picker/date_picker.js +2 -2
  322. package/test-env/components/date_picker/date_picker_range.js +1 -1
  323. package/test-env/components/date_picker/react-datepicker/src/date_utils.js +3 -3
  324. package/test-env/components/date_picker/super_date_picker/date_popover/absolute_tab.js +3 -3
  325. package/test-env/components/date_picker/super_date_picker/pretty_duration.js +30 -30
  326. package/test-env/components/date_picker/super_date_picker/super_date_picker.a11y.js +2 -2
  327. package/test-env/components/empty_prompt/empty_prompt.js +1 -1
  328. package/test-env/components/filter_group/filter_button.js +1 -1
  329. package/test-env/components/filter_group/filter_group.a11y.js +13 -13
  330. package/test-env/components/flex/flex_grid.styles.js +4 -4
  331. package/test-env/components/flex/flex_group.styles.js +16 -16
  332. package/test-env/components/flyout/flyout.component.js +43 -36
  333. package/test-env/components/flyout/flyout_menu/flyout_menu.js +2 -2
  334. package/test-env/components/form/field_number/field_number.js +2 -2
  335. package/test-env/components/form/field_text/field_text.js +2 -2
  336. package/test-env/components/form/form_control_button/form_control_button.js +1 -1
  337. package/test-env/components/form/form_control_layout/append_prepend/form_append_prepend.js +2 -2
  338. package/test-env/components/form/form_control_layout/form_control_layout.js +2 -2
  339. package/test-env/components/form/form_control_layout/form_control_layout_custom_icon.js +1 -1
  340. package/test-env/components/form/form_row/form_row.styles.js +1 -1
  341. package/test-env/components/form/text_area/text_area.js +2 -2
  342. package/test-env/components/header/header.a11y.js +3 -3
  343. package/test-env/components/header/header_links/header_link.js +1 -1
  344. package/test-env/components/header/header_links/header_links.js +1 -1
  345. package/test-env/components/header/header_logo/elastic_logo_full.js +6 -2
  346. package/test-env/components/header/header_logo/header_logo.js +6 -3
  347. package/test-env/components/header/header_section/header_section_item_button.js +1 -1
  348. package/test-env/components/icon/assets/logo_elastic_mono.js +41 -0
  349. package/test-env/components/icon/assets/moon.js +1 -1
  350. package/test-env/components/icon/assets/product_nightshift.js +6 -2
  351. package/test-env/components/icon/icon_map.js +7 -0
  352. package/test-env/components/key_pad_menu/key_pad_menu_item.js +1 -1
  353. package/test-env/components/list_group/list_group.js +2 -2
  354. package/test-env/components/list_group/list_group_item.js +2 -2
  355. package/test-env/components/list_group/list_group_item_extra_action.js +1 -1
  356. package/test-env/components/list_group/pinnable_list_group/pinnable_list_group.js +4 -4
  357. package/test-env/components/loading/loading_logo.js +1 -1
  358. package/test-env/components/markdown_editor/markdown_editor.js +8 -8
  359. package/test-env/components/markdown_editor/markdown_editor_drop_zone.js +1 -1
  360. package/test-env/components/markdown_editor/markdown_editor_footer.js +1 -1
  361. package/test-env/components/markdown_editor/markdown_editor_toolbar.js +1 -1
  362. package/test-env/components/modal/modal.styles.js +1 -1
  363. package/test-env/components/modal/modal_body.styles.js +1 -1
  364. package/test-env/components/page/page_header/page_header_content.js +1 -1
  365. package/test-env/components/pagination/pagination_button.js +1 -1
  366. package/test-env/components/search_bar/filters/field_value_selection_filter.js +2 -2
  367. package/test-env/components/search_bar/search_bar.js +3 -3
  368. package/test-env/components/selectable/selectable_list/selectable_list.js +47 -48
  369. package/test-env/components/selectable/selectable_list/selectable_list_item.js +1 -1
  370. package/test-env/components/selectable/selectable_templates/selectable_template_sitewide.js +1 -1
  371. package/test-env/components/steps/step.js +3 -4
  372. package/test-env/components/steps/steps_horizontal.js +2 -1
  373. package/test-env/components/steps/sub_steps.js +1 -2
  374. package/test-env/components/table/table_header_cell.js +1 -1
  375. package/test-env/components/timeline/timeline_item_icon.js +1 -1
  376. package/test-env/components/toast/global_toast_list.js +2 -2
  377. package/test-env/components/toast/toast.js +2 -2
  378. package/test-env/components/tool_tip/icon_tip.js +1 -1
  379. package/test-env/components/tool_tip/tool_tip.js +7 -7
  380. package/es/components/date_picker/react-datepicker/test/helper_components/custom_input.js +0 -74
  381. package/es/components/date_picker/react-datepicker/test/test_wrapper.js +0 -38
  382. package/es/components/date_picker/react-datepicker/test/timezone_date_picker.js +0 -75
  383. package/lib/components/date_picker/react-datepicker/test/helper_components/custom_input.js +0 -80
  384. package/lib/components/date_picker/react-datepicker/test/test_wrapper.js +0 -46
  385. package/lib/components/date_picker/react-datepicker/test/timezone_date_picker.js +0 -83
  386. package/optimize/es/components/date_picker/react-datepicker/test/helper_components/custom_input.js +0 -68
  387. package/optimize/es/components/date_picker/react-datepicker/test/test_wrapper.js +0 -38
  388. package/optimize/es/components/date_picker/react-datepicker/test/timezone_date_picker.js +0 -69
  389. package/optimize/lib/components/date_picker/react-datepicker/test/helper_components/custom_input.js +0 -74
  390. package/optimize/lib/components/date_picker/react-datepicker/test/test_wrapper.js +0 -46
  391. package/optimize/lib/components/date_picker/react-datepicker/test/timezone_date_picker.js +0 -77
  392. package/test-env/components/date_picker/react-datepicker/test/helper_components/custom_input.js +0 -74
  393. package/test-env/components/date_picker/react-datepicker/test/test_wrapper.js +0 -46
  394. package/test-env/components/date_picker/react-datepicker/test/timezone_date_picker.js +0 -77
@@ -436,9 +436,9 @@ export var EuiComboBox = /*#__PURE__*/function (_Component) {
436
436
  (_this$searchInputRefI6 = _this.searchInputRefInstance) === null || _this$searchInputRefI6 === void 0 || _this$searchInputRefI6.focus();
437
437
  });
438
438
  _defineProperty(_this, "onSearchChange", function (searchValue) {
439
- var _this$props10 = _this.props,
440
- onSearchChange = _this$props10.onSearchChange,
441
- delimiter = _this$props10.delimiter;
439
+ var _this$props0 = _this.props,
440
+ onSearchChange = _this$props0.onSearchChange,
441
+ delimiter = _this$props0.delimiter;
442
442
  _this.setState({
443
443
  searchValue: searchValue
444
444
  }, function () {
@@ -461,44 +461,44 @@ export var EuiComboBox = /*#__PURE__*/function (_Component) {
461
461
  key: "render",
462
462
  value: function render() {
463
463
  var _this2 = this;
464
- var _this$props11 = this.props,
465
- dataTestSubj = _this$props11['data-test-subj'],
466
- async = _this$props11.async,
467
- className = _this$props11.className,
468
- compressed = _this$props11.compressed,
469
- customOptionText = _this$props11.customOptionText,
470
- fullWidth = _this$props11.fullWidth,
471
- id = _this$props11.id,
472
- inputRef = _this$props11.inputRef,
473
- isCaseSensitive = _this$props11.isCaseSensitive,
474
- isClearable = _this$props11.isClearable,
475
- isDisabled = _this$props11.isDisabled,
476
- isInvalid = _this$props11.isInvalid,
477
- isLoading = _this$props11.isLoading,
478
- noSuggestions = _this$props11.noSuggestions,
479
- onBlur = _this$props11.onBlur,
480
- onChange = _this$props11.onChange,
481
- onCreateOption = _this$props11.onCreateOption,
482
- onSearchChange = _this$props11.onSearchChange,
483
- options = _this$props11.options,
484
- placeholder = _this$props11.placeholder,
485
- renderOption = _this$props11.renderOption,
486
- rowHeight = _this$props11.rowHeight,
487
- selectedOptions = _this$props11.selectedOptions,
488
- singleSelection = _this$props11.singleSelection,
489
- prepend = _this$props11.prepend,
490
- sortMatchesBy = _this$props11.sortMatchesBy,
491
- delimiter = _this$props11.delimiter,
492
- append = _this$props11.append,
493
- autoFocus = _this$props11.autoFocus,
494
- onFocusBadge = _this$props11.onFocusBadge,
495
- truncationProps = _this$props11.truncationProps,
496
- inputPopoverProps = _this$props11.inputPopoverProps,
497
- optionMatcher = _this$props11.optionMatcher,
498
- ariaLabel = _this$props11['aria-label'],
499
- ariaLabelledby = _this$props11['aria-labelledby'],
500
- ariaDescribedby = _this$props11['aria-describedby'],
501
- rest = _objectWithoutProperties(_this$props11, _excluded);
464
+ var _this$props1 = this.props,
465
+ dataTestSubj = _this$props1['data-test-subj'],
466
+ async = _this$props1.async,
467
+ className = _this$props1.className,
468
+ compressed = _this$props1.compressed,
469
+ customOptionText = _this$props1.customOptionText,
470
+ fullWidth = _this$props1.fullWidth,
471
+ id = _this$props1.id,
472
+ inputRef = _this$props1.inputRef,
473
+ isCaseSensitive = _this$props1.isCaseSensitive,
474
+ isClearable = _this$props1.isClearable,
475
+ isDisabled = _this$props1.isDisabled,
476
+ isInvalid = _this$props1.isInvalid,
477
+ isLoading = _this$props1.isLoading,
478
+ noSuggestions = _this$props1.noSuggestions,
479
+ onBlur = _this$props1.onBlur,
480
+ onChange = _this$props1.onChange,
481
+ onCreateOption = _this$props1.onCreateOption,
482
+ onSearchChange = _this$props1.onSearchChange,
483
+ options = _this$props1.options,
484
+ placeholder = _this$props1.placeholder,
485
+ renderOption = _this$props1.renderOption,
486
+ rowHeight = _this$props1.rowHeight,
487
+ selectedOptions = _this$props1.selectedOptions,
488
+ singleSelection = _this$props1.singleSelection,
489
+ prepend = _this$props1.prepend,
490
+ sortMatchesBy = _this$props1.sortMatchesBy,
491
+ delimiter = _this$props1.delimiter,
492
+ append = _this$props1.append,
493
+ autoFocus = _this$props1.autoFocus,
494
+ onFocusBadge = _this$props1.onFocusBadge,
495
+ truncationProps = _this$props1.truncationProps,
496
+ inputPopoverProps = _this$props1.inputPopoverProps,
497
+ optionMatcher = _this$props1.optionMatcher,
498
+ ariaLabel = _this$props1['aria-label'],
499
+ ariaLabelledby = _this$props1['aria-labelledby'],
500
+ ariaDescribedby = _this$props1['aria-describedby'],
501
+ rest = _objectWithoutProperties(_this$props1, _excluded);
502
502
  var _this$state3 = this.state,
503
503
  activeOptionIndex = _this$state3.activeOptionIndex,
504
504
  hasFocus = _this$state3.hasFocus,
@@ -52,14 +52,14 @@ export var useCellPopover = function useCellPopover() {
52
52
  popoverAnchorPosition = _useState8[0],
53
53
  setPopoverAnchorPosition = _useState8[1];
54
54
  var _useState9 = useState(),
55
- _useState10 = _slicedToArray(_useState9, 2),
56
- popoverContent = _useState10[0],
57
- setPopoverContent = _useState10[1];
55
+ _useState0 = _slicedToArray(_useState9, 2),
56
+ popoverContent = _useState0[0],
57
+ setPopoverContent = _useState0[1];
58
58
  // Allow customization of most (not all) popover props by consumers
59
- var _useState11 = useState({}),
60
- _useState12 = _slicedToArray(_useState11, 2),
61
- cellPopoverProps = _useState12[0],
62
- setCellPopoverProps = _useState12[1];
59
+ var _useState1 = useState({}),
60
+ _useState10 = _slicedToArray(_useState1, 2),
61
+ cellPopoverProps = _useState10[0],
62
+ setCellPopoverProps = _useState10[1];
63
63
  var closeCellPopover = useCallback(function () {
64
64
  return setPopoverIsOpen(false);
65
65
  }, []);
@@ -207,7 +207,7 @@ ConditionalDraggableColumn.displayName = 'ConditionalDraggableColumn';
207
207
  *
208
208
  * TODO: If this is useful elsewhere, consider moving it to `src/services`
209
209
  */
210
- var _ref10 = process.env.NODE_ENV === "production" ? {
210
+ var _ref0 = process.env.NODE_ENV === "production" ? {
211
211
  name: "q8wbl-DragOverlay",
212
212
  styles: "position:fixed;inset:0;label:DragOverlay;"
213
213
  } : {
@@ -221,7 +221,7 @@ export var DragOverlay = /*#__PURE__*/memo(function (_ref9) {
221
221
  _ref9$zIndex = _ref9.zIndex,
222
222
  zIndex = _ref9$zIndex === void 0 ? 9999 : _ref9$zIndex;
223
223
  return isDragging ? ___EmotionJSX(EuiPortal, null, ___EmotionJSX("div", {
224
- css: _ref10,
224
+ css: _ref0,
225
225
  style: {
226
226
  cursor: cursor,
227
227
  zIndex: zIndex
@@ -339,9 +339,9 @@ export var useDataGridDisplaySelector = function useDataGridDisplaySelector(show
339
339
  * Display settings popover
340
340
  */
341
341
  var _useState9 = useState(false),
342
- _useState10 = _slicedToArray(_useState9, 2),
343
- isOpen = _useState10[0],
344
- setIsOpen = _useState10[1];
342
+ _useState0 = _slicedToArray(_useState9, 2),
343
+ isOpen = _useState0[0],
344
+ setIsOpen = _useState0[1];
345
345
  var buttonLabel = useEuiI18n('euiDisplaySelector.buttonText', 'Display options');
346
346
  var additionalDisplaySettings = typeof showDisplaySelector === 'boolean' ? null : (_showDisplaySelector$ = showDisplaySelector === null || showDisplaySelector === void 0 ? void 0 : showDisplaySelector.additionalDisplaySettings) !== null && _showDisplaySelector$ !== void 0 ? _showDisplaySelector$ : null;
347
347
  var customRender = typeof showDisplaySelector === 'boolean' ? undefined : showDisplaySelector === null || showDisplaySelector === void 0 ? void 0 : showDisplaySelector.customRender;
@@ -399,9 +399,9 @@ export function getEffectiveMinDate(_ref9) {
399
399
  return minDate;
400
400
  }
401
401
  }
402
- export function getEffectiveMaxDate(_ref10) {
403
- var maxDate = _ref10.maxDate,
404
- includeDates = _ref10.includeDates;
402
+ export function getEffectiveMaxDate(_ref0) {
403
+ var maxDate = _ref0.maxDate,
404
+ includeDates = _ref0.includeDates;
405
405
  if (includeDates && maxDate) {
406
406
  return moment.max(includeDates.filter(function (includeDate) {
407
407
  return maxDate.isSameOrAfter(includeDate, "day");
@@ -79,9 +79,9 @@ export var EuiAbsoluteTab = function EuiAbsoluteTab(_ref) {
79
79
  isReadyToParse = _useState8[0],
80
80
  setIsReadyToParse = _useState8[1];
81
81
  var _useState9 = useState(false),
82
- _useState10 = _slicedToArray(_useState9, 2),
83
- isTextInvalid = _useState10[0],
84
- setIsTextInvalid = _useState10[1];
82
+ _useState0 = _slicedToArray(_useState9, 2),
83
+ isTextInvalid = _useState0[0],
84
+ setIsTextInvalid = _useState0[1];
85
85
  var handleTextChange = useCallback(function (event) {
86
86
  if (isReadyToParse) return; // Text paste event, don't continue
87
87
 
@@ -76,32 +76,32 @@ var useRelativeDurationI18n = function useRelativeDurationI18n(duration) {
76
76
  }, {
77
77
  duration: duration
78
78
  }),
79
- 'w+': useEuiI18n('euiPrettyDuration.nextDurationWeeks', function (_ref10) {
80
- var duration = _ref10.duration;
79
+ 'w+': useEuiI18n('euiPrettyDuration.nextDurationWeeks', function (_ref0) {
80
+ var duration = _ref0.duration;
81
81
  return "Next ".concat(duration, " week").concat(duration === 1 ? '' : 's');
82
82
  }, {
83
83
  duration: duration
84
84
  }),
85
- M: useEuiI18n('euiPrettyDuration.lastDurationMonths', function (_ref11) {
86
- var duration = _ref11.duration;
85
+ M: useEuiI18n('euiPrettyDuration.lastDurationMonths', function (_ref1) {
86
+ var duration = _ref1.duration;
87
87
  return "Last ".concat(duration, " month").concat(duration === 1 ? '' : 's');
88
88
  }, {
89
89
  duration: duration
90
90
  }),
91
- 'M+': useEuiI18n('euiPrettyDuration.nextDurationMonths', function (_ref12) {
92
- var duration = _ref12.duration;
91
+ 'M+': useEuiI18n('euiPrettyDuration.nextDurationMonths', function (_ref10) {
92
+ var duration = _ref10.duration;
93
93
  return "Next ".concat(duration, " month").concat(duration === 1 ? '' : 's');
94
94
  }, {
95
95
  duration: duration
96
96
  }),
97
- y: useEuiI18n('euiPrettyDuration.lastDurationYears', function (_ref13) {
98
- var duration = _ref13.duration;
97
+ y: useEuiI18n('euiPrettyDuration.lastDurationYears', function (_ref11) {
98
+ var duration = _ref11.duration;
99
99
  return "Last ".concat(duration, " year").concat(duration === 1 ? '' : 's');
100
100
  }, {
101
101
  duration: duration
102
102
  }),
103
- 'y+': useEuiI18n('euiPrettyDuration.nextDurationYears', function (_ref14) {
104
- var duration = _ref14.duration;
103
+ 'y+': useEuiI18n('euiPrettyDuration.nextDurationYears', function (_ref12) {
104
+ var duration = _ref12.duration;
105
105
  return "Next ".concat(duration, " year").concat(duration === 1 ? '' : 's');
106
106
  }, {
107
107
  duration: duration
@@ -140,13 +140,13 @@ var useRelativeDurationRoundedI18n = function useRelativeDurationRoundedI18n(pre
140
140
 
141
141
  var ISO_FORMAT = 'YYYY-MM-DDTHH:mm:ss.SSSZ';
142
142
  export var useFormatTimeString = function useFormatTimeString(timeString, dateFormat, options) {
143
- var _ref15 = options || {},
144
- _ref15$locale = _ref15.locale,
145
- locale = _ref15$locale === void 0 ? 'en' : _ref15$locale,
146
- _ref15$roundUp = _ref15.roundUp,
147
- roundUp = _ref15$roundUp === void 0 ? false : _ref15$roundUp,
148
- _ref15$canRoundRelati = _ref15.canRoundRelativeUnits,
149
- canRoundRelativeUnits = _ref15$canRoundRelati === void 0 ? true : _ref15$canRoundRelati;
143
+ var _ref13 = options || {},
144
+ _ref13$locale = _ref13.locale,
145
+ locale = _ref13$locale === void 0 ? 'en' : _ref13$locale,
146
+ _ref13$roundUp = _ref13.roundUp,
147
+ roundUp = _ref13$roundUp === void 0 ? false : _ref13$roundUp,
148
+ _ref13$canRoundRelati = _ref13.canRoundRelativeUnits,
149
+ canRoundRelativeUnits = _ref13$canRoundRelati === void 0 ? true : _ref13$canRoundRelati;
150
150
 
151
151
  // i18n'd strings
152
152
  var nowDisplay = useEuiI18n('euiPrettyDuration.now', 'now');
@@ -192,11 +192,11 @@ export var useFormatTimeString = function useFormatTimeString(timeString, dateFo
192
192
  * Pretty duration hook+component
193
193
  */
194
194
 
195
- export var usePrettyDuration = function usePrettyDuration(_ref16) {
196
- var timeFrom = _ref16.timeFrom,
197
- timeTo = _ref16.timeTo,
198
- quickRanges = _ref16.quickRanges,
199
- dateFormat = _ref16.dateFormat;
195
+ export var usePrettyDuration = function usePrettyDuration(_ref14) {
196
+ var timeFrom = _ref14.timeFrom,
197
+ timeTo = _ref14.timeTo,
198
+ quickRanges = _ref14.quickRanges,
199
+ dateFormat = _ref14.dateFormat;
200
200
  var prettyDuration = '';
201
201
 
202
202
  /**
@@ -247,11 +247,11 @@ export var usePrettyDuration = function usePrettyDuration(_ref16) {
247
247
  }
248
248
  return prettyDuration;
249
249
  };
250
- export var PrettyDuration = function PrettyDuration(_ref17) {
251
- var timeFrom = _ref17.timeFrom,
252
- timeTo = _ref17.timeTo,
253
- quickRanges = _ref17.quickRanges,
254
- dateFormat = _ref17.dateFormat;
250
+ export var PrettyDuration = function PrettyDuration(_ref15) {
251
+ var timeFrom = _ref15.timeFrom,
252
+ timeTo = _ref15.timeTo,
253
+ quickRanges = _ref15.quickRanges,
254
+ dateFormat = _ref15.dateFormat;
255
255
  var prettyDuration = usePrettyDuration({
256
256
  timeFrom: timeFrom,
257
257
  timeTo: timeTo,
@@ -266,9 +266,9 @@ export var PrettyDuration = function PrettyDuration(_ref17) {
266
266
  */
267
267
 
268
268
  var hasRangeMatch = function hasRangeMatch(timeFrom, timeTo, ranges) {
269
- return ranges.find(function (_ref18) {
270
- var start = _ref18.start,
271
- end = _ref18.end;
269
+ return ranges.find(function (_ref16) {
270
+ var start = _ref16.start,
271
+ end = _ref16.end;
272
272
  return timeFrom === start && timeTo === end;
273
273
  });
274
274
  };
@@ -32,8 +32,8 @@ var SuperDatePicker = function SuperDatePicker() {
32
32
  end = _useState8[0],
33
33
  setEnd = _useState8[1];
34
34
  var _useState9 = useState(true),
35
- _useState10 = _slicedToArray(_useState9, 1),
36
- showFill = _useState10[0];
35
+ _useState0 = _slicedToArray(_useState9, 1),
36
+ showFill = _useState0[0];
37
37
  var onTimeChange = function onTimeChange(_ref) {
38
38
  var start = _ref.start,
39
39
  end = _ref.end;
@@ -34,7 +34,7 @@ export var EuiFilterButton = function EuiFilterButton(_ref) {
34
34
  _ref$color = _ref.color,
35
35
  color = _ref$color === void 0 ? 'text' : _ref$color,
36
36
  _ref$badgeColor = _ref.badgeColor,
37
- badgeColor = _ref$badgeColor === void 0 ? 'accent' : _ref$badgeColor,
37
+ badgeColor = _ref$badgeColor === void 0 ? 'primary' : _ref$badgeColor,
38
38
  hasActiveFilters = _ref.hasActiveFilters,
39
39
  numFilters = _ref.numFilters,
40
40
  numActiveFilters = _ref.numActiveFilters,
@@ -119,16 +119,16 @@ describe('EuiFilterGroup two filter example', function () {
119
119
  describe('EuiFilterGroup multiselect example', function () {
120
120
  var MultiSelectFilter = function MultiSelectFilter() {
121
121
  var _useState9 = useState(false),
122
- _useState10 = _slicedToArray(_useState9, 2),
123
- isPopoverOpen = _useState10[0],
124
- setIsPopoverOpen = _useState10[1];
122
+ _useState0 = _slicedToArray(_useState9, 2),
123
+ isPopoverOpen = _useState0[0],
124
+ setIsPopoverOpen = _useState0[1];
125
+ var _useState1 = useState(false),
126
+ _useState10 = _slicedToArray(_useState1, 1),
127
+ withLoading = _useState10[0];
125
128
  var _useState11 = useState(false),
126
- _useState12 = _slicedToArray(_useState11, 1),
127
- withLoading = _useState12[0];
128
- var _useState13 = useState(false),
129
- _useState14 = _slicedToArray(_useState13, 2),
130
- isLoading = _useState14[0],
131
- setIsLoading = _useState14[1];
129
+ _useState12 = _slicedToArray(_useState11, 2),
130
+ isLoading = _useState12[0],
131
+ setIsLoading = _useState12[1];
132
132
  var onButtonClick = function onButtonClick() {
133
133
  if (withLoading && !isPopoverOpen) {
134
134
  setIsLoading(true);
@@ -141,7 +141,7 @@ describe('EuiFilterGroup multiselect example', function () {
141
141
  var filterGroupPopoverId = useGeneratedHtmlId({
142
142
  prefix: 'filterGroupPopover'
143
143
  });
144
- var _useState15 = useState([{
144
+ var _useState13 = useState([{
145
145
  label: 'Johann Sebastian Bach',
146
146
  checked: 'on'
147
147
  }, {
@@ -165,9 +165,9 @@ describe('EuiFilterGroup multiselect example', function () {
165
165
  }, {
166
166
  label: 'Giuseppe Verdi'
167
167
  }]),
168
- _useState16 = _slicedToArray(_useState15, 2),
169
- items = _useState16[0],
170
- setItems = _useState16[1];
168
+ _useState14 = _slicedToArray(_useState13, 2),
169
+ items = _useState14[0],
170
+ setItems = _useState14[1];
171
171
  var button = ___EmotionJSX(EuiFilterButton, {
172
172
  iconType: "chevronSingleDown",
173
173
  onClick: onButtonClick,
@@ -81,7 +81,7 @@ var _ref9 = process.env.NODE_ENV === "production" ? {
81
81
  styles: "grid-template-columns:repeat(1, 1fr);label:1;",
82
82
  toString: _EMOTION_STRINGIFIED_CSS_ERROR__
83
83
  };
84
- var _ref10 = process.env.NODE_ENV === "production" ? {
84
+ var _ref0 = process.env.NODE_ENV === "production" ? {
85
85
  name: "1t690q7-column",
86
86
  styles: "grid-auto-flow:column;label:column;"
87
87
  } : {
@@ -89,7 +89,7 @@ var _ref10 = process.env.NODE_ENV === "production" ? {
89
89
  styles: "grid-auto-flow:column;label:column;",
90
90
  toString: _EMOTION_STRINGIFIED_CSS_ERROR__
91
91
  };
92
- var _ref11 = process.env.NODE_ENV === "production" ? {
92
+ var _ref1 = process.env.NODE_ENV === "production" ? {
93
93
  name: "1uinx0j-euiFlexGrid",
94
94
  styles: "display:grid;label:euiFlexGrid;"
95
95
  } : {
@@ -100,14 +100,14 @@ var _ref11 = process.env.NODE_ENV === "production" ? {
100
100
  export var euiFlexGridStyles = function euiFlexGridStyles(euiThemeContext) {
101
101
  var euiTheme = euiThemeContext.euiTheme;
102
102
  return {
103
- euiFlexGrid: _ref11,
103
+ euiFlexGrid: _ref1,
104
104
  responsive: /*#__PURE__*/css(euiMaxBreakpoint(euiThemeContext, 'm'), "{grid-template-columns:repeat(1, 1fr);grid-auto-flow:row;};label:responsive;"),
105
105
  direction: {
106
106
  row: /*#__PURE__*/css(";label:row;"),
107
107
  // Note: the only way to get column direction working with `display: grid`
108
108
  // the same way `display: flex` works is to manually set `grid-template-rows`,
109
109
  // calculated based on the number of children in the grid
110
- column: _ref10
110
+ column: _ref0
111
111
  },
112
112
  columnCount: {
113
113
  '1': _ref9,
@@ -81,7 +81,7 @@ var _ref9 = process.env.NODE_ENV === "production" ? {
81
81
  styles: "align-items:stretch;label:stretch;",
82
82
  toString: _EMOTION_STRINGIFIED_CSS_ERROR__
83
83
  };
84
- var _ref10 = process.env.NODE_ENV === "production" ? {
84
+ var _ref0 = process.env.NODE_ENV === "production" ? {
85
85
  name: "1m1byq-center",
86
86
  styles: "justify-content:center;label:center;"
87
87
  } : {
@@ -89,7 +89,7 @@ var _ref10 = process.env.NODE_ENV === "production" ? {
89
89
  styles: "justify-content:center;label:center;",
90
90
  toString: _EMOTION_STRINGIFIED_CSS_ERROR__
91
91
  };
92
- var _ref11 = process.env.NODE_ENV === "production" ? {
92
+ var _ref1 = process.env.NODE_ENV === "production" ? {
93
93
  name: "16lku54-spaceAround",
94
94
  styles: "justify-content:space-around;label:spaceAround;"
95
95
  } : {
@@ -97,7 +97,7 @@ var _ref11 = process.env.NODE_ENV === "production" ? {
97
97
  styles: "justify-content:space-around;label:spaceAround;",
98
98
  toString: _EMOTION_STRINGIFIED_CSS_ERROR__
99
99
  };
100
- var _ref12 = process.env.NODE_ENV === "production" ? {
100
+ var _ref10 = process.env.NODE_ENV === "production" ? {
101
101
  name: "1h16bgr-spaceBetween",
102
102
  styles: "justify-content:space-between;label:spaceBetween;"
103
103
  } : {
@@ -105,7 +105,7 @@ var _ref12 = process.env.NODE_ENV === "production" ? {
105
105
  styles: "justify-content:space-between;label:spaceBetween;",
106
106
  toString: _EMOTION_STRINGIFIED_CSS_ERROR__
107
107
  };
108
- var _ref13 = process.env.NODE_ENV === "production" ? {
108
+ var _ref11 = process.env.NODE_ENV === "production" ? {
109
109
  name: "jykwsi-spaceEvenly",
110
110
  styles: "justify-content:space-evenly;label:spaceEvenly;"
111
111
  } : {
@@ -113,7 +113,7 @@ var _ref13 = process.env.NODE_ENV === "production" ? {
113
113
  styles: "justify-content:space-evenly;label:spaceEvenly;",
114
114
  toString: _EMOTION_STRINGIFIED_CSS_ERROR__
115
115
  };
116
- var _ref14 = process.env.NODE_ENV === "production" ? {
116
+ var _ref12 = process.env.NODE_ENV === "production" ? {
117
117
  name: "1nfuqww-flexEnd",
118
118
  styles: "justify-content:flex-end;label:flexEnd;"
119
119
  } : {
@@ -121,7 +121,7 @@ var _ref14 = process.env.NODE_ENV === "production" ? {
121
121
  styles: "justify-content:flex-end;label:flexEnd;",
122
122
  toString: _EMOTION_STRINGIFIED_CSS_ERROR__
123
123
  };
124
- var _ref15 = process.env.NODE_ENV === "production" ? {
124
+ var _ref13 = process.env.NODE_ENV === "production" ? {
125
125
  name: "e9miiv-flexStart",
126
126
  styles: "justify-content:flex-start;label:flexStart;"
127
127
  } : {
@@ -129,7 +129,7 @@ var _ref15 = process.env.NODE_ENV === "production" ? {
129
129
  styles: "justify-content:flex-start;label:flexStart;",
130
130
  toString: _EMOTION_STRINGIFIED_CSS_ERROR__
131
131
  };
132
- var _ref16 = process.env.NODE_ENV === "production" ? {
132
+ var _ref14 = process.env.NODE_ENV === "production" ? {
133
133
  name: "qg5yc9-wrap",
134
134
  styles: "flex-wrap:wrap;label:wrap;"
135
135
  } : {
@@ -137,7 +137,7 @@ var _ref16 = process.env.NODE_ENV === "production" ? {
137
137
  styles: "flex-wrap:wrap;label:wrap;",
138
138
  toString: _EMOTION_STRINGIFIED_CSS_ERROR__
139
139
  };
140
- var _ref17 = process.env.NODE_ENV === "production" ? {
140
+ var _ref15 = process.env.NODE_ENV === "production" ? {
141
141
  name: "4quxm4-euiFlexGroup",
142
142
  styles: "display:flex;align-items:stretch;flex-grow:1;label:euiFlexGroup;"
143
143
  } : {
@@ -148,9 +148,9 @@ var _ref17 = process.env.NODE_ENV === "production" ? {
148
148
  export var euiFlexGroupStyles = function euiFlexGroupStyles(euiThemeContext) {
149
149
  var euiTheme = euiThemeContext.euiTheme;
150
150
  return {
151
- euiFlexGroup: _ref17,
151
+ euiFlexGroup: _ref15,
152
152
  responsive: /*#__PURE__*/css(euiMaxBreakpoint(euiThemeContext, 'm'), "{flex-wrap:wrap;&>.euiFlexItem{", logicalCSS('width', '100%'), " flex-basis:100%;}};label:responsive;"),
153
- wrap: _ref16,
153
+ wrap: _ref14,
154
154
  gutterSizes: {
155
155
  none: /*#__PURE__*/css(";label:none;"),
156
156
  xs: /*#__PURE__*/css("gap:", euiTheme.size.xs, ";;label:xs;"),
@@ -160,12 +160,12 @@ export var euiFlexGroupStyles = function euiFlexGroupStyles(euiThemeContext) {
160
160
  xl: /*#__PURE__*/css("gap:", euiTheme.size.xxl, ";;label:xl;")
161
161
  },
162
162
  justifyContent: {
163
- flexStart: _ref15,
164
- flexEnd: _ref14,
165
- spaceEvenly: _ref13,
166
- spaceBetween: _ref12,
167
- spaceAround: _ref11,
168
- center: _ref10
163
+ flexStart: _ref13,
164
+ flexEnd: _ref12,
165
+ spaceEvenly: _ref11,
166
+ spaceBetween: _ref10,
167
+ spaceAround: _ref1,
168
+ center: _ref0
169
169
  },
170
170
  alignItems: {
171
171
  stretch: _ref9,
@@ -132,25 +132,25 @@ export var EuiFlyoutComponent = /*#__PURE__*/forwardRef(function (props, ref) {
132
132
  _usePropsWithComponen9 = _usePropsWithComponen.maxWidth,
133
133
  maxWidth = _usePropsWithComponen9 === void 0 ? false : _usePropsWithComponen9,
134
134
  style = _usePropsWithComponen.style,
135
- _usePropsWithComponen10 = _usePropsWithComponen.hasChildBackground,
136
- hasChildBackground = _usePropsWithComponen10 === void 0 ? false : _usePropsWithComponen10,
135
+ _usePropsWithComponen0 = _usePropsWithComponen.hasChildBackground,
136
+ hasChildBackground = _usePropsWithComponen0 === void 0 ? false : _usePropsWithComponen0,
137
137
  maskProps = _usePropsWithComponen.maskProps,
138
- _usePropsWithComponen11 = _usePropsWithComponen.type,
139
- type = _usePropsWithComponen11 === void 0 ? DEFAULT_TYPE : _usePropsWithComponen11,
138
+ _usePropsWithComponen1 = _usePropsWithComponen.type,
139
+ type = _usePropsWithComponen1 === void 0 ? DEFAULT_TYPE : _usePropsWithComponen1,
140
140
  outsideClickCloses = _usePropsWithComponen.outsideClickCloses,
141
- _usePropsWithComponen12 = _usePropsWithComponen.pushMinBreakpoint,
142
- pushMinBreakpoint = _usePropsWithComponen12 === void 0 ? DEFAULT_PUSH_MIN_BREAKPOINT : _usePropsWithComponen12,
141
+ _usePropsWithComponen10 = _usePropsWithComponen.pushMinBreakpoint,
142
+ pushMinBreakpoint = _usePropsWithComponen10 === void 0 ? DEFAULT_PUSH_MIN_BREAKPOINT : _usePropsWithComponen10,
143
143
  _pushAnimation = _usePropsWithComponen.pushAnimation,
144
144
  _hasAnimation = _usePropsWithComponen.hasAnimation,
145
145
  _focusTrapProps = _usePropsWithComponen.focusTrapProps,
146
- _usePropsWithComponen13 = _usePropsWithComponen.includeFixedHeadersInFocusTrap,
147
- includeFixedHeadersInFocusTrap = _usePropsWithComponen13 === void 0 ? true : _usePropsWithComponen13,
146
+ _usePropsWithComponen11 = _usePropsWithComponen.includeFixedHeadersInFocusTrap,
147
+ includeFixedHeadersInFocusTrap = _usePropsWithComponen11 === void 0 ? true : _usePropsWithComponen11,
148
148
  includeSelectorInFocusTrap = _usePropsWithComponen.includeSelectorInFocusTrap,
149
149
  _ariaDescribedBy = _usePropsWithComponen['aria-describedby'],
150
150
  _ariaLabelledBy = _usePropsWithComponen['aria-labelledby'],
151
151
  id = _usePropsWithComponen.id,
152
- _usePropsWithComponen14 = _usePropsWithComponen.resizable,
153
- resizable = _usePropsWithComponen14 === void 0 ? false : _usePropsWithComponen14,
152
+ _usePropsWithComponen12 = _usePropsWithComponen.resizable,
153
+ resizable = _usePropsWithComponen12 === void 0 ? false : _usePropsWithComponen12,
154
154
  minWidth = _usePropsWithComponen.minWidth,
155
155
  onResize = _usePropsWithComponen.onResize,
156
156
  onAnimationEnd = _usePropsWithComponen.onAnimationEnd,
@@ -762,7 +762,7 @@ export var EuiFlyoutComponent = /*#__PURE__*/forwardRef(function (props, ref) {
762
762
  var focusTrapSelectors = useMemo(function () {
763
763
  var selectors = [];
764
764
  if (includeSelectorInFocusTrap) {
765
- selectors = Array.isArray(includeSelectorInFocusTrap) ? includeSelectorInFocusTrap : [includeSelectorInFocusTrap];
765
+ selectors = selectors.concat(includeSelectorInFocusTrap);
766
766
  }
767
767
  if (includeFixedHeadersInFocusTrap) {
768
768
  selectors.push('.euiHeader[data-fixed-header]');
@@ -775,44 +775,50 @@ export var EuiFlyoutComponent = /*#__PURE__*/forwardRef(function (props, ref) {
775
775
  }
776
776
  return selectors;
777
777
  }, [includeSelectorInFocusTrap, includeFixedHeadersInFocusTrap, isSideBySideChild]);
778
-
779
- /**
780
- * Finds the shards to include in the focus trap by querying by `focusTrapSelectors`.
781
- *
782
- * @param shouldAutoFocus Whether to auto-focus the flyout wrapper when the focus trap is activated.
783
- * This is necessary because when a flyout is toggled from within a shard, the focus trap's `autoFocus`
784
- * feature doesn't work. This logic manually focuses the flyout as a workaround.
785
- */
786
778
  var findShards = useCallback(function () {
787
- var shouldAutoFocus = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
788
779
  if (focusTrapSelectors.length > 0) {
789
780
  var shardsEls = focusTrapSelectors.flatMap(function (selector) {
790
781
  return Array.from(document.querySelectorAll(selector));
791
782
  });
792
- setFocusTrapShards(Array.from(shardsEls));
793
- if (shouldAutoFocus) {
794
- shardsEls.forEach(function (shard) {
795
- if (shard.contains(flyoutToggle.current)) {
796
- resizeRef === null || resizeRef === void 0 || resizeRef.focus();
797
- }
798
- });
799
- }
783
+ setFocusTrapShards(shardsEls);
800
784
  } else {
801
785
  // Clear existing shards if necessary, e.g. switching to `false`
802
786
  setFocusTrapShards(function (shards) {
803
787
  return shards.length ? [] : shards;
804
788
  });
805
789
  }
806
- }, [focusTrapSelectors, resizeRef]);
790
+ }, [focusTrapSelectors]);
807
791
  useEffect(function () {
808
- // Auto-focus should only happen on initial flyout mount (or when the dependencies change)
809
- // because it snaps focus to the flyout wrapper, which steals it from subsequently focused elements.
810
- findShards(true);
811
- var unsubscribe = focusTrapPubSub.subscribe(function () {
812
- return findShards();
813
- });
792
+ findShards();
793
+ var unsubscribe = focusTrapPubSub.subscribe(findShards);
814
794
  return unsubscribe;
815
795
  }, [findShards]);
796
+
797
+ /**
798
+ * When a flyout is toggled from within a shard, focus is already inside
799
+ * the trap, so its `autoFocus` doesn't move focus to the flyout. The
800
+ * wrapper is focused here because the trap records its return focus
801
+ * target before calling `onActivation`; focusing it any earlier would make
802
+ * the wrapper that target.
803
+ *
804
+ * Only the first activation of a trap auto-focuses: the trap reactivates
805
+ * when a child flyout closes, and focus belongs on the child's trigger
806
+ * then. A pushed flyout has no active trap, and the trap is remounted when
807
+ * the flyout becomes an overlay again, so that counts as a first activation.
808
+ */
809
+ var hasActivatedFocusTrap = useRef(false);
810
+ if (isPushed) hasActivatedFocusTrap.current = false;
811
+ var onFocusTrapActivation = useCallback(function () {
812
+ if (hasActivatedFocusTrap.current) return;
813
+ hasActivatedFocusTrap.current = true;
814
+ var toggle = flyoutToggle.current;
815
+ if (focusTrapSelectors.some(function (selector) {
816
+ return toggle === null || toggle === void 0 ? void 0 : toggle.closest(selector);
817
+ })) {
818
+ var _internalParentFlyout;
819
+ (_internalParentFlyout = internalParentFlyoutRef.current) === null || _internalParentFlyout === void 0 || _internalParentFlyout.focus();
820
+ }
821
+ }, [focusTrapSelectors]);
816
822
  var focusTrapProps = useMemo(function () {
817
823
  return _objectSpread(_objectSpread({}, _focusTrapProps), {}, {
818
824
  shards: [].concat(_toConsumableArray(focusTrapShards), _toConsumableArray((_focusTrapProps === null || _focusTrapProps === void 0 ? void 0 : _focusTrapProps.shards) || []))
@@ -894,7 +900,8 @@ export var EuiFlyoutComponent = /*#__PURE__*/forwardRef(function (props, ref) {
894
900
  disabled: isPushed,
895
901
  scrollLock: shouldUseScrollLock,
896
902
  clickOutsideDisables: !ownFocus,
897
- onClickOutside: onClickOutside
903
+ onClickOutside: onClickOutside,
904
+ onActivation: onFocusTrapActivation
898
905
  }, focusTrapProps), ___EmotionJSX(Element, _extends({
899
906
  className: classes,
900
907
  css: cssStyles,
@@ -21,7 +21,7 @@ export var euiFormRowStyles = function euiFormRowStyles(euiThemeContext) {
21
21
  formWidth: "\n ".concat(logicalCSS('max-width', maxWidth), "\n "),
22
22
  fullWidth: /*#__PURE__*/css(logicalCSS('max-width', '100%'), ";;label:fullWidth;"),
23
23
  // Skip css`` to avoid generating an extra className
24
- row: "\n flex-direction: column;\n row-gap: ".concat(euiTheme.size.xs, ";\n\n .euiFormRow__labelWrapper {\n display: flex;\n flex-wrap: wrap;\n justify-content: space-between;\n }\n\n + .euiFormRow {\n ").concat(logicalCSS('margin-top', euiTheme.size.base), "\n }\n "),
24
+ row: "\n flex-direction: column;\n row-gap: ".concat(euiTheme.size.xs, ";\n\n .euiFormRow__labelWrapper {\n display: flex;\n flex-wrap: wrap;\n justify-content: space-between;\n align-items: flex-end;\n }\n\n + .euiFormRow {\n ").concat(logicalCSS('margin-top', euiTheme.size.base), "\n }\n "),
25
25
  // No difference from the uncompressed row for the current EUI theme
26
26
  get rowCompressed() {
27
27
  return this.row;