@elastic/eui 113.3.0 → 114.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (358) hide show
  1. package/es/components/avatar/avatar.js +1 -1
  2. package/es/components/badge/badge.js +1 -1
  3. package/es/components/badge/beta_badge/beta_badge.js +1 -1
  4. package/es/components/basic_table/basic_table.js +4 -4
  5. package/es/components/basic_table/in_memory_table.js +4 -4
  6. package/es/components/button/button_display/_button_display_content.js +1 -1
  7. package/es/components/button/button_empty/button_empty.js +1 -1
  8. package/es/components/button/button_icon/button_icon.js +1 -1
  9. package/es/components/button/split_button/split_button.js +13 -0
  10. package/es/components/button/split_button/split_button_actions.js +15 -0
  11. package/es/components/call_out/call_out.js +1 -1
  12. package/es/components/card/card.js +1 -1
  13. package/es/components/collapsible_nav/collapsible_nav.js +6 -1
  14. package/es/components/collapsible_nav/collapsible_nav_group/collapsible_nav_group.js +1 -1
  15. package/es/components/collapsible_nav_beta/_kibana_solution/collapsible_nav_kibana_solution.js +1 -1
  16. package/es/components/collapsible_nav_beta/collapsible_nav_item/collapsed/collapsed_nav_button.js +1 -1
  17. package/es/components/collapsible_nav_beta/collapsible_nav_item/collapsed/collapsed_nav_item.js +2 -2
  18. package/es/components/collapsible_nav_beta/collapsible_nav_item/collapsed/collapsed_nav_popover.js +2 -2
  19. package/es/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_item.js +4 -4
  20. package/es/components/color_picker/color_picker.js +31 -8
  21. package/es/components/comment_list/comment.js +2 -2
  22. package/es/components/comment_list/comment_event.js +1 -1
  23. package/es/components/comment_list/comment_list.js +2 -2
  24. package/es/components/comment_list/comment_timeline.js +1 -1
  25. package/es/components/context_menu/context_menu_item.js +1 -1
  26. package/es/components/datagrid/body/cell/data_grid_cell.js +12 -12
  27. package/es/components/datagrid/body/data_grid_body.js +7 -7
  28. package/es/components/datagrid/body/data_grid_body_custom.js +7 -7
  29. package/es/components/datagrid/body/data_grid_body_virtualized.js +7 -7
  30. package/es/components/datagrid/body/header/data_grid_header_cell.js +6 -6
  31. package/es/components/datagrid/controls/column_sorting.js +7 -7
  32. package/es/components/datagrid/controls/column_sorting_draggable.js +1 -1
  33. package/es/components/datagrid/controls/data_grid_toolbar_control.js +1 -1
  34. package/es/components/datagrid/utils/in_memory.js +6 -6
  35. package/es/components/datagrid/utils/scrolling.js +39 -10
  36. package/es/components/date_picker/date_picker.js +2 -2
  37. package/es/components/date_picker/date_picker_range.js +1 -1
  38. package/es/components/empty_prompt/empty_prompt.js +1 -1
  39. package/es/components/flyout/_flyout_overlay.js +34 -4
  40. package/es/components/flyout/flyout.component.js +13 -9
  41. package/es/components/flyout/flyout.js +10 -2
  42. package/es/components/flyout/flyout.styles.js +2 -2
  43. package/es/components/flyout/flyout_menu.js +4 -3
  44. package/es/components/flyout/flyout_resizable.js +6 -1
  45. package/es/components/flyout/manager/actions.js +5 -2
  46. package/es/components/flyout/manager/activity_stage.js +45 -43
  47. package/es/components/flyout/manager/flyout_child.js +2 -1
  48. package/es/components/flyout/manager/flyout_managed.js +36 -18
  49. package/es/components/flyout/manager/flyout_managed.styles.js +4 -16
  50. package/es/components/flyout/manager/reducer.js +116 -57
  51. package/es/components/flyout/manager/store.js +13 -6
  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_control_layout/form_control_layout_icons.js +2 -2
  59. package/es/components/form/text_area/text_area.js +2 -2
  60. package/es/components/header/header_links/header_link.js +1 -1
  61. package/es/components/header/header_links/header_links.js +1 -1
  62. package/es/components/header/header_logo/header_logo.js +1 -1
  63. package/es/components/header/header_section/header_section_item_button.js +1 -1
  64. package/es/components/icon/assets/transition_bottom_in.js +37 -0
  65. package/es/components/icon/assets/transition_bottom_out.js +37 -0
  66. package/es/components/icon/icon.js +1 -1
  67. package/es/components/icon/icon_map.js +6 -0
  68. package/es/components/key_pad_menu/key_pad_menu_item.js +1 -1
  69. package/es/components/list_group/list_group.js +2 -2
  70. package/es/components/list_group/list_group_item.js +2 -2
  71. package/es/components/list_group/list_group_item_extra_action.js +1 -1
  72. package/es/components/list_group/pinnable_list_group/pinnable_list_group.js +4 -4
  73. package/es/components/loading/loading_logo.js +1 -1
  74. package/es/components/markdown_editor/markdown_editor.js +1 -1
  75. package/es/components/markdown_editor/markdown_editor_drop_zone.js +1 -1
  76. package/es/components/markdown_editor/markdown_editor_footer.js +1 -1
  77. package/es/components/markdown_editor/markdown_editor_help_button.js +5 -3
  78. package/es/components/markdown_editor/markdown_editor_toolbar.js +1 -1
  79. package/es/components/markdown_editor/plugins/markdown_default_plugins/parsing_plugins.js +2 -1
  80. package/es/components/markdown_editor/plugins/remark/remark_intraword_underscore.js +172 -0
  81. package/es/components/overlay_mask/overlay_mask.js +10 -3
  82. package/es/components/page/page_header/page_header_content.js +1 -1
  83. package/es/components/pagination/pagination_button.js +1 -1
  84. package/es/components/search_bar/filters/field_value_toggle_filter.js +42 -99
  85. package/es/components/search_bar/search_filters.js +18 -46
  86. package/es/components/selectable/selectable_list/selectable_list.js +1 -1
  87. package/es/components/selectable/selectable_list/selectable_list_item.js +1 -1
  88. package/es/components/selectable/selectable_templates/selectable_template_sitewide.js +1 -1
  89. package/es/components/table/mobile/table_header_mobile.js +1 -1
  90. package/es/components/table/table_header_cell.js +1 -1
  91. package/es/components/table/utils.js +29 -9
  92. package/es/components/timeline/timeline_item_icon.js +1 -1
  93. package/es/components/toast/global_toast_list.js +1 -1
  94. package/es/components/toast/toast.js +1 -1
  95. package/es/components/tool_tip/icon_tip.js +1 -1
  96. package/es/components/tree_view/tree_view_item.styles.js +1 -1
  97. package/es/services/hooks/index.js +8 -8
  98. package/es/services/hooks/useIsPointerDown.js +6 -15
  99. package/es/services/index.js +1 -1
  100. package/eui.d.ts +130 -71
  101. package/i18ntokens.json +661 -643
  102. package/lib/components/avatar/avatar.js +1 -1
  103. package/lib/components/badge/badge.js +1 -1
  104. package/lib/components/badge/beta_badge/beta_badge.js +1 -1
  105. package/lib/components/basic_table/basic_table.js +4 -4
  106. package/lib/components/basic_table/in_memory_table.js +4 -4
  107. package/lib/components/button/button_display/_button_display_content.js +1 -1
  108. package/lib/components/button/button_empty/button_empty.js +1 -1
  109. package/lib/components/button/button_icon/button_icon.js +1 -1
  110. package/lib/components/button/split_button/split_button.js +13 -0
  111. package/lib/components/button/split_button/split_button_actions.js +15 -0
  112. package/lib/components/call_out/call_out.js +1 -1
  113. package/lib/components/card/card.js +1 -1
  114. package/lib/components/collapsible_nav/collapsible_nav.js +6 -1
  115. package/lib/components/collapsible_nav/collapsible_nav_group/collapsible_nav_group.js +1 -1
  116. package/lib/components/collapsible_nav_beta/_kibana_solution/collapsible_nav_kibana_solution.js +1 -1
  117. package/lib/components/collapsible_nav_beta/collapsible_nav_item/collapsed/collapsed_nav_button.js +1 -1
  118. package/lib/components/collapsible_nav_beta/collapsible_nav_item/collapsed/collapsed_nav_item.js +2 -2
  119. package/lib/components/collapsible_nav_beta/collapsible_nav_item/collapsed/collapsed_nav_popover.js +2 -2
  120. package/lib/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_item.js +4 -4
  121. package/lib/components/color_picker/color_picker.js +30 -7
  122. package/lib/components/comment_list/comment.js +2 -2
  123. package/lib/components/comment_list/comment_event.js +1 -1
  124. package/lib/components/comment_list/comment_list.js +2 -2
  125. package/lib/components/comment_list/comment_timeline.js +1 -1
  126. package/lib/components/context_menu/context_menu_item.js +1 -1
  127. package/lib/components/datagrid/body/cell/data_grid_cell.js +12 -12
  128. package/lib/components/datagrid/body/data_grid_body.js +7 -7
  129. package/lib/components/datagrid/body/data_grid_body_custom.js +7 -7
  130. package/lib/components/datagrid/body/data_grid_body_virtualized.js +7 -7
  131. package/lib/components/datagrid/body/header/data_grid_header_cell.js +6 -6
  132. package/lib/components/datagrid/controls/column_sorting.js +7 -7
  133. package/lib/components/datagrid/controls/column_sorting_draggable.js +1 -1
  134. package/lib/components/datagrid/controls/data_grid_toolbar_control.js +1 -1
  135. package/lib/components/datagrid/utils/in_memory.js +6 -6
  136. package/lib/components/datagrid/utils/scrolling.js +37 -8
  137. package/lib/components/date_picker/date_picker.js +2 -2
  138. package/lib/components/date_picker/date_picker_range.js +1 -1
  139. package/lib/components/empty_prompt/empty_prompt.js +1 -1
  140. package/lib/components/flyout/_flyout_overlay.js +33 -3
  141. package/lib/components/flyout/flyout.component.js +13 -9
  142. package/lib/components/flyout/flyout.js +10 -2
  143. package/lib/components/flyout/flyout.styles.js +2 -2
  144. package/lib/components/flyout/flyout_menu.js +4 -3
  145. package/lib/components/flyout/flyout_resizable.js +6 -1
  146. package/lib/components/flyout/manager/actions.js +5 -2
  147. package/lib/components/flyout/manager/activity_stage.js +45 -43
  148. package/lib/components/flyout/manager/flyout_child.js +2 -1
  149. package/lib/components/flyout/manager/flyout_managed.js +46 -31
  150. package/lib/components/flyout/manager/flyout_managed.styles.js +3 -15
  151. package/lib/components/flyout/manager/reducer.js +116 -57
  152. package/lib/components/flyout/manager/store.js +13 -6
  153. package/lib/components/form/field_number/field_number.js +2 -2
  154. package/lib/components/form/field_text/field_text.js +2 -2
  155. package/lib/components/form/form_control_button/form_control_button.js +1 -1
  156. package/lib/components/form/form_control_layout/append_prepend/form_append_prepend.js +2 -2
  157. package/lib/components/form/form_control_layout/form_control_layout.js +2 -2
  158. package/lib/components/form/form_control_layout/form_control_layout_custom_icon.js +1 -1
  159. package/lib/components/form/form_control_layout/form_control_layout_icons.js +2 -2
  160. package/lib/components/form/text_area/text_area.js +2 -2
  161. package/lib/components/header/header_links/header_link.js +1 -1
  162. package/lib/components/header/header_links/header_links.js +1 -1
  163. package/lib/components/header/header_logo/header_logo.js +1 -1
  164. package/lib/components/header/header_section/header_section_item_button.js +1 -1
  165. package/lib/components/icon/assets/transition_bottom_in.js +44 -0
  166. package/lib/components/icon/assets/transition_bottom_out.js +44 -0
  167. package/lib/components/icon/icon.js +1 -1
  168. package/lib/components/icon/icon_map.js +10 -0
  169. package/lib/components/icon/svgs/transition_bottom_in.svg +1 -0
  170. package/lib/components/icon/svgs/transition_bottom_out.svg +1 -0
  171. package/lib/components/key_pad_menu/key_pad_menu_item.js +1 -1
  172. package/lib/components/list_group/list_group.js +2 -2
  173. package/lib/components/list_group/list_group_item.js +2 -2
  174. package/lib/components/list_group/list_group_item_extra_action.js +1 -1
  175. package/lib/components/list_group/pinnable_list_group/pinnable_list_group.js +4 -4
  176. package/lib/components/loading/loading_logo.js +1 -1
  177. package/lib/components/markdown_editor/markdown_editor.js +1 -1
  178. package/lib/components/markdown_editor/markdown_editor_drop_zone.js +1 -1
  179. package/lib/components/markdown_editor/markdown_editor_footer.js +1 -1
  180. package/lib/components/markdown_editor/markdown_editor_help_button.js +5 -3
  181. package/lib/components/markdown_editor/markdown_editor_toolbar.js +1 -1
  182. package/lib/components/markdown_editor/plugins/markdown_default_plugins/parsing_plugins.js +2 -1
  183. package/lib/components/markdown_editor/plugins/remark/remark_intraword_underscore.js +179 -0
  184. package/lib/components/overlay_mask/overlay_mask.js +10 -3
  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_toggle_filter.js +44 -101
  188. package/lib/components/search_bar/search_filters.js +20 -45
  189. package/lib/components/selectable/selectable_list/selectable_list.js +1 -1
  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/table/mobile/table_header_mobile.js +1 -1
  193. package/lib/components/table/table_header_cell.js +1 -1
  194. package/lib/components/table/utils.js +30 -10
  195. package/lib/components/timeline/timeline_item_icon.js +1 -1
  196. package/lib/components/toast/global_toast_list.js +1 -1
  197. package/lib/components/toast/toast.js +1 -1
  198. package/lib/components/tool_tip/icon_tip.js +1 -1
  199. package/lib/components/tree_view/tree_view_item.styles.js +1 -1
  200. package/lib/services/hooks/index.js +60 -91
  201. package/lib/services/hooks/useIsPointerDown.js +7 -14
  202. package/lib/services/index.js +70 -11
  203. package/optimize/es/components/color_picker/color_picker.js +31 -8
  204. package/optimize/es/components/datagrid/utils/scrolling.js +39 -10
  205. package/optimize/es/components/flyout/_flyout_overlay.js +34 -4
  206. package/optimize/es/components/flyout/flyout.component.js +13 -9
  207. package/optimize/es/components/flyout/flyout.js +4 -1
  208. package/optimize/es/components/flyout/flyout.styles.js +2 -2
  209. package/optimize/es/components/flyout/flyout_menu.js +2 -1
  210. package/optimize/es/components/flyout/manager/actions.js +5 -2
  211. package/optimize/es/components/flyout/manager/activity_stage.js +45 -43
  212. package/optimize/es/components/flyout/manager/flyout_managed.js +33 -16
  213. package/optimize/es/components/flyout/manager/flyout_managed.styles.js +4 -16
  214. package/optimize/es/components/flyout/manager/reducer.js +116 -57
  215. package/optimize/es/components/flyout/manager/store.js +13 -6
  216. package/optimize/es/components/icon/assets/transition_bottom_in.js +36 -0
  217. package/optimize/es/components/icon/assets/transition_bottom_out.js +36 -0
  218. package/optimize/es/components/icon/icon_map.js +6 -0
  219. package/optimize/es/components/markdown_editor/markdown_editor_help_button.js +5 -3
  220. package/optimize/es/components/markdown_editor/plugins/markdown_default_plugins/parsing_plugins.js +2 -1
  221. package/optimize/es/components/markdown_editor/plugins/remark/remark_intraword_underscore.js +172 -0
  222. package/optimize/es/components/overlay_mask/overlay_mask.js +4 -2
  223. package/optimize/es/components/search_bar/filters/field_value_toggle_filter.js +43 -66
  224. package/optimize/es/components/search_bar/search_filters.js +18 -40
  225. package/optimize/es/components/table/mobile/table_header_mobile.js +1 -1
  226. package/optimize/es/components/table/utils.js +29 -9
  227. package/optimize/es/components/tree_view/tree_view_item.styles.js +1 -1
  228. package/optimize/es/services/hooks/index.js +8 -8
  229. package/optimize/es/services/hooks/useIsPointerDown.js +6 -10
  230. package/optimize/es/services/index.js +1 -1
  231. package/optimize/lib/components/color_picker/color_picker.js +30 -7
  232. package/optimize/lib/components/datagrid/utils/scrolling.js +37 -8
  233. package/optimize/lib/components/flyout/_flyout_overlay.js +33 -3
  234. package/optimize/lib/components/flyout/flyout.component.js +13 -9
  235. package/optimize/lib/components/flyout/flyout.js +4 -1
  236. package/optimize/lib/components/flyout/flyout.styles.js +2 -2
  237. package/optimize/lib/components/flyout/flyout_menu.js +2 -1
  238. package/optimize/lib/components/flyout/manager/actions.js +5 -2
  239. package/optimize/lib/components/flyout/manager/activity_stage.js +45 -43
  240. package/optimize/lib/components/flyout/manager/flyout_managed.js +38 -24
  241. package/optimize/lib/components/flyout/manager/flyout_managed.styles.js +3 -16
  242. package/optimize/lib/components/flyout/manager/reducer.js +116 -57
  243. package/optimize/lib/components/flyout/manager/store.js +13 -6
  244. package/optimize/lib/components/icon/assets/transition_bottom_in.js +44 -0
  245. package/optimize/lib/components/icon/assets/transition_bottom_out.js +44 -0
  246. package/optimize/lib/components/icon/icon_map.js +10 -0
  247. package/optimize/lib/components/icon/svgs/transition_bottom_in.svg +1 -0
  248. package/optimize/lib/components/icon/svgs/transition_bottom_out.svg +1 -0
  249. package/optimize/lib/components/markdown_editor/markdown_editor_help_button.js +5 -3
  250. package/optimize/lib/components/markdown_editor/plugins/markdown_default_plugins/parsing_plugins.js +2 -1
  251. package/optimize/lib/components/markdown_editor/plugins/remark/remark_intraword_underscore.js +179 -0
  252. package/optimize/lib/components/overlay_mask/overlay_mask.js +4 -2
  253. package/optimize/lib/components/search_bar/filters/field_value_toggle_filter.js +45 -69
  254. package/optimize/lib/components/search_bar/search_filters.js +19 -40
  255. package/optimize/lib/components/table/mobile/table_header_mobile.js +1 -1
  256. package/optimize/lib/components/table/utils.js +30 -10
  257. package/optimize/lib/components/tree_view/tree_view_item.styles.js +1 -1
  258. package/optimize/lib/services/hooks/index.js +60 -91
  259. package/optimize/lib/services/hooks/useIsPointerDown.js +5 -10
  260. package/optimize/lib/services/index.js +70 -11
  261. package/package.json +5 -4
  262. package/test-env/components/avatar/avatar.js +1 -1
  263. package/test-env/components/badge/badge.js +1 -1
  264. package/test-env/components/badge/beta_badge/beta_badge.js +1 -1
  265. package/test-env/components/basic_table/basic_table.js +4 -4
  266. package/test-env/components/basic_table/in_memory_table.js +4 -4
  267. package/test-env/components/button/button_display/_button_display_content.js +1 -1
  268. package/test-env/components/button/button_empty/button_empty.js +1 -1
  269. package/test-env/components/button/button_icon/button_icon.js +1 -1
  270. package/test-env/components/button/split_button/split_button.js +13 -0
  271. package/test-env/components/button/split_button/split_button_actions.js +15 -0
  272. package/test-env/components/call_out/call_out.js +1 -1
  273. package/test-env/components/card/card.js +1 -1
  274. package/test-env/components/collapsible_nav/collapsible_nav.js +6 -1
  275. package/test-env/components/collapsible_nav/collapsible_nav_group/collapsible_nav_group.js +1 -1
  276. package/test-env/components/collapsible_nav_beta/_kibana_solution/collapsible_nav_kibana_solution.js +1 -1
  277. package/test-env/components/collapsible_nav_beta/collapsible_nav_item/collapsed/collapsed_nav_button.js +1 -1
  278. package/test-env/components/collapsible_nav_beta/collapsible_nav_item/collapsed/collapsed_nav_item.js +2 -2
  279. package/test-env/components/collapsible_nav_beta/collapsible_nav_item/collapsed/collapsed_nav_popover.js +2 -2
  280. package/test-env/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_item.js +4 -4
  281. package/test-env/components/color_picker/color_picker.js +30 -7
  282. package/test-env/components/comment_list/comment.js +2 -2
  283. package/test-env/components/comment_list/comment_event.js +1 -1
  284. package/test-env/components/comment_list/comment_list.js +2 -2
  285. package/test-env/components/comment_list/comment_timeline.js +1 -1
  286. package/test-env/components/context_menu/context_menu_item.js +1 -1
  287. package/test-env/components/datagrid/body/cell/data_grid_cell.js +12 -12
  288. package/test-env/components/datagrid/body/data_grid_body.js +7 -7
  289. package/test-env/components/datagrid/body/data_grid_body_custom.js +7 -7
  290. package/test-env/components/datagrid/body/data_grid_body_virtualized.js +7 -7
  291. package/test-env/components/datagrid/body/header/data_grid_header_cell.js +6 -6
  292. package/test-env/components/datagrid/controls/column_sorting.js +7 -7
  293. package/test-env/components/datagrid/controls/column_sorting_draggable.js +1 -1
  294. package/test-env/components/datagrid/controls/data_grid_toolbar_control.js +1 -1
  295. package/test-env/components/datagrid/utils/in_memory.js +6 -6
  296. package/test-env/components/datagrid/utils/scrolling.js +37 -8
  297. package/test-env/components/date_picker/date_picker.js +2 -2
  298. package/test-env/components/date_picker/date_picker_range.js +1 -1
  299. package/test-env/components/empty_prompt/empty_prompt.js +1 -1
  300. package/test-env/components/flyout/_flyout_overlay.js +33 -3
  301. package/test-env/components/flyout/flyout.component.js +13 -9
  302. package/test-env/components/flyout/flyout.styles.js +2 -2
  303. package/test-env/components/flyout/flyout_menu.js +4 -3
  304. package/test-env/components/flyout/flyout_resizable.js +6 -1
  305. package/test-env/components/flyout/manager/actions.js +5 -2
  306. package/test-env/components/flyout/manager/activity_stage.js +45 -43
  307. package/test-env/components/flyout/manager/flyout_child.js +2 -1
  308. package/test-env/components/flyout/manager/flyout_managed.js +40 -25
  309. package/test-env/components/flyout/manager/flyout_managed.styles.js +3 -16
  310. package/test-env/components/flyout/manager/reducer.js +116 -57
  311. package/test-env/components/flyout/manager/store.js +13 -6
  312. package/test-env/components/form/field_number/field_number.js +2 -2
  313. package/test-env/components/form/field_text/field_text.js +2 -2
  314. package/test-env/components/form/form_control_button/form_control_button.js +1 -1
  315. package/test-env/components/form/form_control_layout/append_prepend/form_append_prepend.js +2 -2
  316. package/test-env/components/form/form_control_layout/form_control_layout.js +2 -2
  317. package/test-env/components/form/form_control_layout/form_control_layout_custom_icon.js +1 -1
  318. package/test-env/components/form/form_control_layout/form_control_layout_icons.js +2 -2
  319. package/test-env/components/form/text_area/text_area.js +2 -2
  320. package/test-env/components/header/header_links/header_link.js +1 -1
  321. package/test-env/components/header/header_links/header_links.js +1 -1
  322. package/test-env/components/header/header_logo/header_logo.js +1 -1
  323. package/test-env/components/header/header_section/header_section_item_button.js +1 -1
  324. package/test-env/components/icon/assets/transition_bottom_in.js +44 -0
  325. package/test-env/components/icon/assets/transition_bottom_out.js +44 -0
  326. package/test-env/components/icon/icon_map.js +10 -0
  327. package/test-env/components/key_pad_menu/key_pad_menu_item.js +1 -1
  328. package/test-env/components/list_group/list_group.js +2 -2
  329. package/test-env/components/list_group/list_group_item.js +2 -2
  330. package/test-env/components/list_group/list_group_item_extra_action.js +1 -1
  331. package/test-env/components/list_group/pinnable_list_group/pinnable_list_group.js +4 -4
  332. package/test-env/components/loading/loading_logo.js +1 -1
  333. package/test-env/components/markdown_editor/markdown_editor.js +1 -1
  334. package/test-env/components/markdown_editor/markdown_editor_drop_zone.js +1 -1
  335. package/test-env/components/markdown_editor/markdown_editor_footer.js +1 -1
  336. package/test-env/components/markdown_editor/markdown_editor_help_button.js +5 -3
  337. package/test-env/components/markdown_editor/markdown_editor_toolbar.js +1 -1
  338. package/test-env/components/markdown_editor/plugins/markdown_default_plugins/parsing_plugins.js +2 -1
  339. package/test-env/components/markdown_editor/plugins/remark/remark_intraword_underscore.js +179 -0
  340. package/test-env/components/overlay_mask/overlay_mask.js +10 -3
  341. package/test-env/components/page/page_header/page_header_content.js +1 -1
  342. package/test-env/components/pagination/pagination_button.js +1 -1
  343. package/test-env/components/search_bar/filters/field_value_toggle_filter.js +44 -96
  344. package/test-env/components/search_bar/search_filters.js +19 -39
  345. package/test-env/components/selectable/selectable_list/selectable_list.js +1 -1
  346. package/test-env/components/selectable/selectable_list/selectable_list_item.js +1 -1
  347. package/test-env/components/selectable/selectable_templates/selectable_template_sitewide.js +1 -1
  348. package/test-env/components/table/mobile/table_header_mobile.js +1 -1
  349. package/test-env/components/table/table_header_cell.js +1 -1
  350. package/test-env/components/table/utils.js +30 -10
  351. package/test-env/components/timeline/timeline_item_icon.js +1 -1
  352. package/test-env/components/toast/global_toast_list.js +1 -1
  353. package/test-env/components/toast/toast.js +1 -1
  354. package/test-env/components/tool_tip/icon_tip.js +1 -1
  355. package/test-env/components/tree_view/tree_view_item.styles.js +1 -1
  356. package/test-env/services/hooks/index.js +60 -91
  357. package/test-env/services/hooks/useIsPointerDown.js +5 -10
  358. package/test-env/services/index.js +70 -11
@@ -47,8 +47,15 @@ function createStore() {
47
47
  var _currentSession$child;
48
48
  var currentSessionIndex = currentState.sessions.length - 1;
49
49
  var currentSession = currentSessionIndex >= 0 ? currentState.sessions[currentSessionIndex] : null;
50
+ if (!currentSession) {
51
+ return [];
52
+ }
50
53
  var previousSessions = currentState.sessions.slice(0, currentSessionIndex);
51
- var childHistory = (_currentSession$child = currentSession === null || currentSession === void 0 ? void 0 : currentSession.childHistory) !== null && _currentSession$child !== void 0 ? _currentSession$child : [];
54
+ // Only include sessions in the same history group (same historyKey reference)
55
+ var previousSessionsInGroup = previousSessions.filter(function (session) {
56
+ return session.historyKey === currentSession.historyKey;
57
+ });
58
+ var childHistory = (_currentSession$child = currentSession.childHistory) !== null && _currentSession$child !== void 0 ? _currentSession$child : [];
52
59
  var childItems = _toConsumableArray(childHistory).reverse().map(function (entry) {
53
60
  return {
54
61
  title: entry.title,
@@ -59,11 +66,11 @@ function createStore() {
59
66
  };
60
67
  });
61
68
 
62
- // Previous sessions: list each session's current child then its child history (so all travelled entries appear)
69
+ // Previous sessions (same group): list each session's current child then its child history
63
70
  var previousSessionItems = [];
64
71
  var _loop = function _loop() {
65
72
  var _session$childHistory;
66
- var session = previousSessions[i];
73
+ var session = previousSessionsInGroup[i];
67
74
  var mainTitle = session.title;
68
75
  var mainFlyoutId = session.mainFlyoutId;
69
76
  var history = (_session$childHistory = session.childHistory) !== null && _session$childHistory !== void 0 ? _session$childHistory : [];
@@ -101,7 +108,7 @@ function createStore() {
101
108
  });
102
109
  }
103
110
  };
104
- for (var i = previousSessions.length - 1; i >= 0; i--) {
111
+ for (var i = previousSessionsInGroup.length - 1; i >= 0; i--) {
105
112
  _loop();
106
113
  }
107
114
  return [].concat(_toConsumableArray(childItems), previousSessionItems);
@@ -140,8 +147,8 @@ function createStore() {
140
147
  subscribe: subscribe,
141
148
  subscribeToEvents: subscribeToEvents,
142
149
  dispatch: dispatch,
143
- addFlyout: function addFlyout(flyoutId, title, level, size, iconType, minWidth) {
144
- return dispatch(addFlyoutAction(flyoutId, title, level, size, iconType, minWidth));
150
+ addFlyout: function addFlyout(flyoutId, title, level, size, historyKey, iconType, minWidth) {
151
+ return dispatch(addFlyoutAction(flyoutId, title, level, size, historyKey, iconType, minWidth));
145
152
  },
146
153
  closeFlyout: function closeFlyout(flyoutId) {
147
154
  return dispatch(closeFlyoutAction(flyoutId));
@@ -0,0 +1,36 @@
1
+ import _extends from "@babel/runtime/helpers/extends";
2
+ import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
3
+ var _excluded = ["title", "titleId"];
4
+ /*
5
+ * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
6
+ * or more contributor license agreements. Licensed under the Elastic License
7
+ * 2.0 and the Server Side Public License, v 1; you may not use this file except
8
+ * in compliance with, at your election, the Elastic License 2.0 or the Server
9
+ * Side Public License, v 1.
10
+ */
11
+
12
+ // THIS IS A GENERATED FILE. DO NOT MODIFY MANUALLY. @see scripts/compile-icons.js
13
+
14
+ import * as React from 'react';
15
+ import { jsx as ___EmotionJSX } from "@emotion/react";
16
+ var EuiIconTransitionBottomIn = function EuiIconTransitionBottomIn(_ref) {
17
+ var title = _ref.title,
18
+ titleId = _ref.titleId,
19
+ props = _objectWithoutProperties(_ref, _excluded);
20
+ return ___EmotionJSX("svg", _extends({
21
+ xmlns: "http://www.w3.org/2000/svg",
22
+ width: 16,
23
+ height: 16,
24
+ viewBox: "0 0 16 16",
25
+ "aria-labelledby": titleId
26
+ }, props), title ? ___EmotionJSX("title", {
27
+ id: titleId
28
+ }, title) : null, ___EmotionJSX("path", {
29
+ d: "M7.5 9V5.207L5.854 6.854l-.708-.708L8 3.293l2.854 2.853-.707.708L8.5 5.207V9z"
30
+ }), ___EmotionJSX("path", {
31
+ fillRule: "evenodd",
32
+ d: "M2 15a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1zM14 2H2v8h12zm0 9.793V11h-.793l-3 3h1.586zM11.793 11h-1.586l-3 3h1.586zm-3 0H7.207l-3 3h1.586zm-3 0H4.207L2 13.207V14h.793zm-3 0H2v.793zM14 13.207l-.793.793H14z",
33
+ clipRule: "evenodd"
34
+ }));
35
+ };
36
+ export var icon = EuiIconTransitionBottomIn;
@@ -0,0 +1,36 @@
1
+ import _extends from "@babel/runtime/helpers/extends";
2
+ import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
3
+ var _excluded = ["title", "titleId"];
4
+ /*
5
+ * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
6
+ * or more contributor license agreements. Licensed under the Elastic License
7
+ * 2.0 and the Server Side Public License, v 1; you may not use this file except
8
+ * in compliance with, at your election, the Elastic License 2.0 or the Server
9
+ * Side Public License, v 1.
10
+ */
11
+
12
+ // THIS IS A GENERATED FILE. DO NOT MODIFY MANUALLY. @see scripts/compile-icons.js
13
+
14
+ import * as React from 'react';
15
+ import { jsx as ___EmotionJSX } from "@emotion/react";
16
+ var EuiIconTransitionBottomOut = function EuiIconTransitionBottomOut(_ref) {
17
+ var title = _ref.title,
18
+ titleId = _ref.titleId,
19
+ props = _objectWithoutProperties(_ref, _excluded);
20
+ return ___EmotionJSX("svg", _extends({
21
+ xmlns: "http://www.w3.org/2000/svg",
22
+ width: 16,
23
+ height: 16,
24
+ viewBox: "0 0 16 16",
25
+ "aria-labelledby": titleId
26
+ }, props), title ? ___EmotionJSX("title", {
27
+ id: titleId
28
+ }, title) : null, ___EmotionJSX("path", {
29
+ d: "M8.5 3.293v3.793l1.646-1.647.707.707L8 9 5.146 6.146l.708-.707L7.5 7.086V3.293z"
30
+ }), ___EmotionJSX("path", {
31
+ fillRule: "evenodd",
32
+ d: "M2 15a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1zM14 2H2v8h12zm0 9.793V11h-.793l-3 3h1.586zM11.793 11h-1.586l-3 3h1.586zm-3 0H7.207l-3 3h1.586zm-3 0H4.207L2 13.207V14h.793zm-3 0H2v.793zM14 13.207l-.793.793H14z",
33
+ clipRule: "evenodd"
34
+ }));
35
+ };
36
+ export var icon = EuiIconTransitionBottomOut;
@@ -1843,6 +1843,12 @@ export var typeToPathMap = {
1843
1843
  return import('./assets/presentation');
1844
1844
  },
1845
1845
  // NOTE: To be deprecated in favor of presentation,
1846
+ transitionBottomIn: function transitionBottomIn() {
1847
+ return import('./assets/transition_bottom_in');
1848
+ },
1849
+ transitionBottomOut: function transitionBottomOut() {
1850
+ return import('./assets/transition_bottom_out');
1851
+ },
1846
1852
  transitionLeftIn: function transitionLeftIn() {
1847
1853
  return import('./assets/transition_left_in');
1848
1854
  },
@@ -1,3 +1,4 @@
1
+ import _extends from "@babel/runtime/helpers/extends";
1
2
  import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
2
3
  /*
3
4
  * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
@@ -33,7 +34,8 @@ var mdSyntaxLink = ___EmotionJSX(EuiLink, {
33
34
  default: "GitHub flavored markdown"
34
35
  }));
35
36
  export var EuiMarkdownEditorHelpButton = function EuiMarkdownEditorHelpButton(_ref) {
36
- var uiPlugins = _ref.uiPlugins;
37
+ var uiPlugins = _ref.uiPlugins,
38
+ tooltipProps = _ref.tooltipProps;
37
39
  var _useState = useState(false),
38
40
  _useState2 = _slicedToArray(_useState, 2),
39
41
  isShowingHelpModal = _useState2[0],
@@ -56,9 +58,9 @@ export var EuiMarkdownEditorHelpButton = function EuiMarkdownEditorHelpButton(_r
56
58
  });
57
59
  var hasUiPluginsWithHelpText = uiPluginsWithHelpText.length > 0;
58
60
  if (hasUiPluginsWithHelpText) {
59
- return ___EmotionJSX(React.Fragment, null, ___EmotionJSX(EuiToolTip, {
61
+ return ___EmotionJSX(React.Fragment, null, ___EmotionJSX(EuiToolTip, _extends({}, tooltipProps, {
60
62
  content: syntaxTitle
61
- }, ___EmotionJSX(EuiButtonIcon, {
63
+ }), ___EmotionJSX(EuiButtonIcon, {
62
64
  size: "s",
63
65
  css: styles.euiMarkdownEditorFooter__helpButton,
64
66
  className: "euiMarkdownEditorFooter__helpButton",
@@ -18,6 +18,7 @@ import markdown from 'remark-parse-no-trim';
18
18
  import emoji from 'remark-emoji';
19
19
  import breaks from 'remark-breaks';
20
20
  import highlight from '../remark/remark_prismjs';
21
+ import intrawordUnderscore from '../remark/remark_intraword_underscore';
21
22
  import * as MarkdownTooltip from '../markdown_tooltip';
22
23
  import * as MarkdownCheckbox from '../markdown_checkbox';
23
24
  import { euiMarkdownLinkValidator, DEFAULT_OPTIONS as LINK_VALIDATOR_DEFAULTS } from '../markdown_link_validator';
@@ -34,7 +35,7 @@ export var getDefaultEuiMarkdownParsingPlugins = function getDefaultEuiMarkdownP
34
35
  var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
35
36
  var exclude = _ref.exclude,
36
37
  parsingConfig = _objectWithoutProperties(_ref, _excluded);
37
- var parsingPlugins = [[markdown, {}], [highlight, {}]];
38
+ var parsingPlugins = [[markdown, {}], [highlight, {}], [intrawordUnderscore, {}]];
38
39
  Object.entries(DEFAULT_PARSING_PLUGINS).forEach(function (_ref2) {
39
40
  var _ref3 = _slicedToArray(_ref2, 2),
40
41
  pluginName = _ref3[0],
@@ -0,0 +1,172 @@
1
+ function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t.return || t.return(); } finally { if (u) throw o; } } }; }
2
+ function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
3
+ function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
4
+ /*
5
+ * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
6
+ * or more contributor license agreements. Licensed under the Elastic License
7
+ * 2.0 and the Server Side Public License, v 1; you may not use this file except
8
+ * in compliance with, at your election, the Elastic License 2.0 or the Server
9
+ * Side Public License, v 1.
10
+ */
11
+
12
+ // Temporary workaround for https://github.com/elastic/eui/issues/9404
13
+ // remark-parse v8 doesn't implement the CommonMark rule that underscore
14
+ // emphasis delimiters flanked by alphanumerics on both sides (intraword)
15
+ // cannot open or close emphasis. This causes identifiers like
16
+ // `ABCD__PineappleCherry__e` to render with bold formatting.
17
+ // This plugin walks the parsed AST and reverses incorrectly applied
18
+ // emphasis/strong nodes when both sides are alphanumeric characters.
19
+
20
+ // eslint-disable-next-line import/no-unresolved
21
+
22
+ var isTextNode = function isTextNode(node) {
23
+ return node.type === 'text';
24
+ };
25
+ var isEmphasisOrStrong = function isEmphasisOrStrong(node) {
26
+ return node.type === 'emphasis' || node.type === 'strong';
27
+ };
28
+ var isAlphanumeric = function isAlphanumeric(ch) {
29
+ return /[a-zA-Z0-9]/.test(ch);
30
+ };
31
+
32
+ /**
33
+ * Recursively converts an emphasis/strong node back into plain text
34
+ * with underscore delimiters restored.
35
+ */
36
+ function flattenToText(node) {
37
+ var delimiter = node.type === 'emphasis' ? '_' : '__';
38
+ var inner = '';
39
+ var _iterator = _createForOfIteratorHelper(node.children),
40
+ _step;
41
+ try {
42
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
43
+ var child = _step.value;
44
+ if (isTextNode(child)) {
45
+ inner += child.value;
46
+ } else if (isEmphasisOrStrong(child)) {
47
+ inner += flattenToText(child);
48
+ } else {
49
+ // Contains non-text children (links, images, etc.) — leave emphasis intact
50
+ return delimiter + collectText(node) + delimiter;
51
+ }
52
+ }
53
+ } catch (err) {
54
+ _iterator.e(err);
55
+ } finally {
56
+ _iterator.f();
57
+ }
58
+ return delimiter + inner + delimiter;
59
+ }
60
+ function collectText(node) {
61
+ if (isTextNode(node)) return node.value;
62
+ if ('children' in node) {
63
+ return node.children.map(collectText).join('');
64
+ }
65
+ return '';
66
+ }
67
+ function processParent(parent, source) {
68
+ var modified = false;
69
+ var i = 0;
70
+ while (i < parent.children.length) {
71
+ var child = parent.children[i];
72
+ if (isEmphasisOrStrong(child) && isIntraword(parent, i, source)) {
73
+ var textValue = flattenToText(child);
74
+ var replacement = {
75
+ type: 'text',
76
+ value: textValue
77
+ };
78
+ parent.children.splice(i, 1, replacement);
79
+ modified = true;
80
+ // Don't advance — the replaced node may need to merge with neighbors
81
+ } else {
82
+ if ('children' in child) {
83
+ processParent(child, source);
84
+ }
85
+ i++;
86
+ }
87
+ if (modified) {
88
+ mergeAdjacentText(parent);
89
+ modified = false;
90
+ // After merging, restart scan since indices shifted
91
+ i = 0;
92
+ }
93
+ }
94
+ }
95
+ function getInnerText(node) {
96
+ if (isTextNode(node)) return node.value;
97
+ if ('children' in node) {
98
+ var children = node.children;
99
+ if (children.length > 0) return getInnerText(children[0]);
100
+ }
101
+ return '';
102
+ }
103
+ function getInnerTextEnd(node) {
104
+ if (isTextNode(node)) return node.value;
105
+ if ('children' in node) {
106
+ var children = node.children;
107
+ if (children.length > 0) return getInnerTextEnd(children[children.length - 1]);
108
+ }
109
+ return '';
110
+ }
111
+
112
+ /**
113
+ * Checks whether the emphasis/strong node at `index` within `parent`
114
+ * is an intraword usage of underscore delimiters.
115
+ *
116
+ * A node is intraword when at least one side has an alphanumeric text
117
+ * neighbor AND the inner content on the corresponding delimiter side
118
+ * also touches word characters — proving the underscores are embedded
119
+ * in a word rather than used as formatting.
120
+ */
121
+ function isIntraword(parent, index, source) {
122
+ var _node$position;
123
+ var node = parent.children[index];
124
+
125
+ // Verify the delimiter is `_` (not `*`) by inspecting the source
126
+ if (((_node$position = node.position) === null || _node$position === void 0 || (_node$position = _node$position.start) === null || _node$position === void 0 ? void 0 : _node$position.offset) != null) {
127
+ var ch = source[node.position.start.offset];
128
+ if (ch !== '_') return false;
129
+ }
130
+ var prev = index > 0 ? parent.children[index - 1] : null;
131
+ var next = index < parent.children.length - 1 ? parent.children[index + 1] : null;
132
+ var prevChar = prev != null && isTextNode(prev) && prev.value.length > 0 ? prev.value[prev.value.length - 1] : null;
133
+ var nextChar = next != null && isTextNode(next) && next.value.length > 0 ? next.value[0] : null;
134
+ var prevIsAlpha = prevChar != null && isAlphanumeric(prevChar);
135
+ var nextIsAlpha = nextChar != null && isAlphanumeric(nextChar);
136
+
137
+ // Both sides flanked by alphanumeric — classic intraword (e.g. `foo__bar__baz`)
138
+ if (prevIsAlpha && nextIsAlpha) return true;
139
+
140
+ // One-sided: prev is alpha or underscore, no alpha next — check inner text
141
+ // starts with alpha (e.g. `Lorem__ipsum__` or `Lorem__ipsum_`)
142
+ if (prevIsAlpha || prevChar === '_') {
143
+ var inner = getInnerText(node);
144
+ if (inner.length > 0 && isAlphanumeric(inner[0])) return true;
145
+ }
146
+
147
+ // One-sided: next is alpha or underscore, no alpha prev — check inner text
148
+ // ends with alpha (e.g. `__Lorem__ipsum` or `_Lorem__ipsum`)
149
+ if (nextIsAlpha || nextChar === '_') {
150
+ var _inner = getInnerTextEnd(node);
151
+ if (_inner.length > 0 && isAlphanumeric(_inner[_inner.length - 1])) return true;
152
+ }
153
+ return false;
154
+ }
155
+ function mergeAdjacentText(parent) {
156
+ var i = 0;
157
+ while (i < parent.children.length - 1) {
158
+ if (isTextNode(parent.children[i]) && isTextNode(parent.children[i + 1])) {
159
+ parent.children[i].value += parent.children[i + 1].value;
160
+ parent.children.splice(i + 1, 1);
161
+ } else {
162
+ i++;
163
+ }
164
+ }
165
+ }
166
+ var attacher = function remarkIntrawordUnderscore() {
167
+ return function (tree, file) {
168
+ var source = String(file);
169
+ processParent(tree, source);
170
+ };
171
+ };
172
+ export default attacher;
@@ -1,7 +1,7 @@
1
1
  import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
2
2
  import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
3
3
  import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
4
- var _excluded = ["className", "children", "headerZindexLocation", "maskRef"];
4
+ var _excluded = ["className", "children", "headerZindexLocation", "maskRef", "hasAnimation"];
5
5
  /*
6
6
  * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
7
7
  * or more contributor license agreements. Licensed under the Elastic License
@@ -25,6 +25,8 @@ export var EuiOverlayMask = function EuiOverlayMask(_ref) {
25
25
  _ref$headerZindexLoca = _ref.headerZindexLocation,
26
26
  headerZindexLocation = _ref$headerZindexLoca === void 0 ? 'above' : _ref$headerZindexLoca,
27
27
  maskRef = _ref.maskRef,
28
+ _ref$hasAnimation = _ref.hasAnimation,
29
+ hasAnimation = _ref$hasAnimation === void 0 ? true : _ref$hasAnimation,
28
30
  rest = _objectWithoutProperties(_ref, _excluded);
29
31
  var hasRendered = useRef(false);
30
32
  var _useState = useState(null),
@@ -36,7 +38,7 @@ export var EuiOverlayMask = function EuiOverlayMask(_ref) {
36
38
  hasRendered.current = true;
37
39
  }, []);
38
40
  var styles = useEuiMemoizedStyles(euiOverlayMaskStyles);
39
- var cssStyles = cx([styles.euiOverlayMask, styles["".concat(headerZindexLocation, "Header")], hasRendered.current && styles.noAnimation]);
41
+ var cssStyles = cx([styles.euiOverlayMask, styles["".concat(headerZindexLocation, "Header")], (hasRendered.current || !hasAnimation) && styles.noAnimation]);
40
42
  useEffect(function () {
41
43
  if (!overlayMaskNode) return;
42
44
  keysOf(rest).forEach(function (key) {
@@ -1,10 +1,3 @@
1
- import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
2
- import _createClass from "@babel/runtime/helpers/createClass";
3
- import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
4
- import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
5
- import _inherits from "@babel/runtime/helpers/inherits";
6
- function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
7
- function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
8
1
  /*
9
2
  * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
10
3
  * or more contributor license agreements. Licensed under the Elastic License
@@ -13,69 +6,53 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
13
6
  * Side Public License, v 1.
14
7
  */
15
8
 
16
- import React, { Component } from 'react';
9
+ import React from 'react';
17
10
  import { EuiFilterButton } from '../../filter_group';
18
11
  import { isNil } from '../../../services/predicate';
19
12
  import { Query } from '../query';
20
13
  import { jsx as ___EmotionJSX } from "@emotion/react";
21
- export var FieldValueToggleFilter = /*#__PURE__*/function (_Component) {
22
- function FieldValueToggleFilter() {
23
- _classCallCheck(this, FieldValueToggleFilter);
24
- return _callSuper(this, FieldValueToggleFilter, arguments);
25
- }
26
- _inherits(FieldValueToggleFilter, _Component);
27
- return _createClass(FieldValueToggleFilter, [{
28
- key: "resolveDisplay",
29
- value: function resolveDisplay(clause) {
30
- var _this$props$config = this.props.config,
31
- name = _this$props$config.name,
32
- negatedName = _this$props$config.negatedName;
33
- if (isNil(clause)) {
34
- return {
35
- hasActiveFilters: false,
36
- name: name
37
- };
38
- }
39
- return Query.isMust(clause) ? {
40
- hasActiveFilters: true,
14
+ export var FieldValueToggleFilter = function FieldValueToggleFilter(props) {
15
+ var resolveDisplay = function resolveDisplay(clause) {
16
+ var _props$config = props.config,
17
+ name = _props$config.name,
18
+ negatedName = _props$config.negatedName;
19
+ if (isNil(clause)) {
20
+ return {
21
+ hasActiveFilters: false,
41
22
  name: name
42
- } : {
43
- hasActiveFilters: true,
44
- name: negatedName ? negatedName : "Not ".concat(name)
45
23
  };
46
24
  }
47
- }, {
48
- key: "valueChanged",
49
- value: function valueChanged(checked) {
50
- var _this$props$config2 = this.props.config,
51
- field = _this$props$config2.field,
52
- value = _this$props$config2.value,
53
- operator = _this$props$config2.operator;
54
- var query = checked ? this.props.query.removeSimpleFieldValue(field, value) : this.props.query.addSimpleFieldValue(field, value, true, operator);
55
- this.props.onChange(query);
56
- }
57
- }, {
58
- key: "render",
59
- value: function render() {
60
- var _this = this;
61
- var _this$props = this.props,
62
- query = _this$props.query,
63
- config = _this$props.config;
64
- var clause = query.getSimpleFieldClause(config.field, config.value);
65
- var checked = !isNil(clause);
66
- var _this$resolveDisplay = this.resolveDisplay(clause),
67
- hasActiveFilters = _this$resolveDisplay.hasActiveFilters,
68
- name = _this$resolveDisplay.name;
69
- var onClick = function onClick() {
70
- _this.valueChanged(checked);
71
- };
72
- return ___EmotionJSX(EuiFilterButton, {
73
- onClick: onClick,
74
- isSelected: hasActiveFilters,
75
- hasActiveFilters: hasActiveFilters,
76
- "aria-pressed": !!hasActiveFilters,
77
- isToggle: true
78
- }, name);
79
- }
80
- }]);
81
- }(Component);
25
+ return Query.isMust(clause) ? {
26
+ hasActiveFilters: true,
27
+ name: name
28
+ } : {
29
+ hasActiveFilters: true,
30
+ name: negatedName ? negatedName : "Not ".concat(name)
31
+ };
32
+ };
33
+ var valueChanged = function valueChanged(checked) {
34
+ var _props$config2 = props.config,
35
+ field = _props$config2.field,
36
+ value = _props$config2.value,
37
+ operator = _props$config2.operator;
38
+ var query = checked ? props.query.removeSimpleFieldValue(field, value) : props.query.addSimpleFieldValue(field, value, true, operator);
39
+ props.onChange(query);
40
+ };
41
+ var query = props.query,
42
+ config = props.config;
43
+ var clause = query.getSimpleFieldClause(config.field, config.value);
44
+ var checked = !isNil(clause);
45
+ var _resolveDisplay = resolveDisplay(clause),
46
+ hasActiveFilters = _resolveDisplay.hasActiveFilters,
47
+ name = _resolveDisplay.name;
48
+ var onClick = function onClick() {
49
+ valueChanged(checked);
50
+ };
51
+ return ___EmotionJSX(EuiFilterButton, {
52
+ onClick: onClick,
53
+ isSelected: hasActiveFilters,
54
+ hasActiveFilters: hasActiveFilters,
55
+ "aria-pressed": !!hasActiveFilters,
56
+ isToggle: true
57
+ }, name);
58
+ };
@@ -1,11 +1,3 @@
1
- import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
2
- import _createClass from "@babel/runtime/helpers/createClass";
3
- import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
4
- import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
5
- import _inherits from "@babel/runtime/helpers/inherits";
6
- import _defineProperty from "@babel/runtime/helpers/defineProperty";
7
- function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
8
- function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
9
1
  /*
10
2
  * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
11
3
  * or more contributor license agreements. Licensed under the Elastic License
@@ -14,39 +6,25 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
14
6
  * Side Public License, v 1.
15
7
  */
16
8
 
17
- import React, { Component, Fragment } from 'react';
9
+ import React, { Fragment } from 'react';
18
10
  import { createFilter } from './filters';
19
11
  import { EuiFilterGroup } from '../filter_group';
20
12
  import { jsx as ___EmotionJSX } from "@emotion/react";
21
- export var EuiSearchBarFilters = /*#__PURE__*/function (_Component) {
22
- function EuiSearchBarFilters() {
23
- _classCallCheck(this, EuiSearchBarFilters);
24
- return _callSuper(this, EuiSearchBarFilters, arguments);
25
- }
26
- _inherits(EuiSearchBarFilters, _Component);
27
- return _createClass(EuiSearchBarFilters, [{
28
- key: "render",
29
- value: function render() {
30
- var _this$props = this.props,
31
- _this$props$filters = _this$props.filters,
32
- filters = _this$props$filters === void 0 ? [] : _this$props$filters,
33
- query = _this$props.query,
34
- onChange = _this$props.onChange;
35
- var items = [];
36
- filters.forEach(function (filterConfig, index) {
37
- if (filterConfig.available && !filterConfig.available()) {
38
- return;
39
- }
40
- var key = "filter_".concat(index);
41
- var control = createFilter(index, filterConfig, query, onChange);
42
- items.push(___EmotionJSX(Fragment, {
43
- key: key
44
- }, control));
45
- });
46
- return ___EmotionJSX(EuiFilterGroup, null, items);
13
+ export var EuiSearchBarFilters = function EuiSearchBarFilters(_ref) {
14
+ var _ref$filters = _ref.filters,
15
+ filters = _ref$filters === void 0 ? [] : _ref$filters,
16
+ query = _ref.query,
17
+ onChange = _ref.onChange;
18
+ var items = filters.reduce(function (acc, filterConfig, index) {
19
+ if (filterConfig.available && !filterConfig.available()) {
20
+ return acc;
47
21
  }
48
- }]);
49
- }(Component);
50
- _defineProperty(EuiSearchBarFilters, "defaultProps", {
51
- filters: []
52
- });
22
+ var key = "filter_".concat(index);
23
+ var control = createFilter(index, filterConfig, query, onChange);
24
+ acc.push(___EmotionJSX(Fragment, {
25
+ key: key
26
+ }, control));
27
+ return acc;
28
+ }, []);
29
+ return ___EmotionJSX(EuiFilterGroup, null, items);
30
+ };
@@ -23,7 +23,7 @@ export var EuiTableHeaderMobile = function EuiTableHeaderMobile(_ref) {
23
23
  responsiveBreakpointProp = _ref.responsiveBreakpoint,
24
24
  rest = _objectWithoutProperties(_ref, _excluded);
25
25
  var responsiveBreakpointDefault = (_useComponentDefaults = useComponentDefaults().EuiTable) === null || _useComponentDefaults === void 0 ? void 0 : _useComponentDefaults.responsiveBreakpoint;
26
- var responsiveBreakpoint = responsiveBreakpointProp || responsiveBreakpointDefault;
26
+ var responsiveBreakpoint = responsiveBreakpointProp !== null && responsiveBreakpointProp !== void 0 ? responsiveBreakpointProp : responsiveBreakpointDefault;
27
27
  var isResponsive = useIsEuiTableResponsive(responsiveBreakpoint);
28
28
  var styles = useEuiMemoizedStyles(euiTableHeaderMobileStyles);
29
29
  var classes = classNames('euiTableHeaderMobile', className);
@@ -20,6 +20,11 @@ export var WARNING_MESSAGE_MIN_WIDTH = 'Two `minWidth` properties were provided.
20
20
  * @internal
21
21
  */
22
22
  export var WARNING_MESSAGE_MAX_WIDTH = 'Two `maxWidth` properties were provided. Provide only one of `style.maxWidth` or `maxWidth` to avoid conflicts.';
23
+
24
+ /**
25
+ * @internal
26
+ */
27
+ export var WARNING_MESSAGE_NOT_RECOMMENDED_UNIT = 'Detected not recommended unit (%, vw, cqw, cqi) in cell width settings. Adjust the `width`, `minWidth` and `maxWidth` values to use absolute length units like `em` for text cells or `px` for static elements like icons or plots.';
23
28
  var normalizeValue = function normalizeValue(value) {
24
29
  if (value === undefined || Number.isNaN(value)) {
25
30
  return undefined;
@@ -29,6 +34,13 @@ var normalizeValue = function normalizeValue(value) {
29
34
  }
30
35
  return value;
31
36
  };
37
+ var UNIT_VALIDATOR_REGEX = /%|vw|cqw|cqi/;
38
+ var shouldWarnAboutNotRecommendedUnit = function shouldWarnAboutNotRecommendedUnit(value) {
39
+ if (typeof value === 'string') {
40
+ return UNIT_VALIDATOR_REGEX.test(value);
41
+ }
42
+ return false;
43
+ };
32
44
 
33
45
  /**
34
46
  * @internal
@@ -39,23 +51,31 @@ export var resolveWidthPropsAsStyle = function resolveWidthPropsAsStyle() {
39
51
  rawWidth = _ref.width,
40
52
  rawMinWidth = _ref.minWidth,
41
53
  rawMaxWidth = _ref.maxWidth;
42
- var width = normalizeValue(rawWidth);
43
- var minWidth = normalizeValue(rawMinWidth);
44
- var maxWidth = normalizeValue(rawMaxWidth);
54
+ var widthProp = normalizeValue(rawWidth);
55
+ var minWidthProp = normalizeValue(rawMinWidth);
56
+ var maxWidthProp = normalizeValue(rawMaxWidth);
57
+ var width = widthProp !== null && widthProp !== void 0 ? widthProp : style.width;
58
+ var minWidth = minWidthProp !== null && minWidthProp !== void 0 ? minWidthProp : style.minWidth;
59
+ var maxWidth = maxWidthProp !== null && maxWidthProp !== void 0 ? maxWidthProp : style.maxWidth;
60
+
61
+ // Value validation block
45
62
  if (process.env.NODE_ENV !== 'production') {
46
- if (style.width && width !== undefined) {
63
+ if (style.width && widthProp !== undefined) {
47
64
  console.warn(WARNING_MESSAGE_WIDTH);
48
65
  }
49
- if (style.minWidth && minWidth !== undefined) {
66
+ if (style.minWidth && minWidthProp !== undefined) {
50
67
  console.warn(WARNING_MESSAGE_MIN_WIDTH);
51
68
  }
52
- if (style.maxWidth && maxWidth !== undefined) {
69
+ if (style.maxWidth && maxWidthProp !== undefined) {
53
70
  console.warn(WARNING_MESSAGE_MAX_WIDTH);
54
71
  }
72
+ if (shouldWarnAboutNotRecommendedUnit(width) || shouldWarnAboutNotRecommendedUnit(minWidth) || shouldWarnAboutNotRecommendedUnit(maxWidth)) {
73
+ console.warn(WARNING_MESSAGE_NOT_RECOMMENDED_UNIT);
74
+ }
55
75
  }
56
76
  return {
57
- width: width || style.width,
58
- minWidth: minWidth || style.minWidth,
59
- maxWidth: maxWidth || style.maxWidth
77
+ width: width,
78
+ minWidth: minWidth,
79
+ maxWidth: maxWidth
60
80
  };
61
81
  };