@elastic/eui 65.0.1 → 67.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (360) hide show
  1. package/dist/eui_charts_theme.js +330 -330
  2. package/dist/eui_charts_theme.js.map +1 -1
  3. package/dist/eui_theme_dark.css +28 -444
  4. package/dist/eui_theme_dark.json +0 -6
  5. package/dist/eui_theme_dark.json.d.ts +0 -6
  6. package/dist/eui_theme_dark.min.css +1 -1
  7. package/dist/eui_theme_light.css +28 -444
  8. package/dist/eui_theme_light.json +0 -6
  9. package/dist/eui_theme_light.json.d.ts +0 -6
  10. package/dist/eui_theme_light.min.css +1 -1
  11. package/es/components/basic_table/basic_table.js +13 -2
  12. package/es/components/basic_table/in_memory_table.js +13 -2
  13. package/es/components/button/button_display/_button_display.js +10 -1
  14. package/es/components/button/button_empty/button_empty.js +10 -1
  15. package/es/components/card/card.styles.js +2 -2
  16. package/es/components/collapsible_nav/collapsible_nav.js +0 -5
  17. package/es/components/combo_box/combo_box.js +2 -15
  18. package/es/components/datagrid/body/data_grid_body.js +17 -6
  19. package/es/components/datagrid/body/data_grid_cell.js +29 -12
  20. package/es/components/datagrid/body/header/data_grid_header_cell.js +17 -6
  21. package/es/components/datagrid/body/header/data_grid_header_row.js +17 -6
  22. package/es/components/datagrid/data_grid.js +17 -6
  23. package/es/components/datagrid/utils/in_memory.js +17 -6
  24. package/es/components/date_picker/auto_refresh/auto_refresh.js +6 -1
  25. package/es/components/date_picker/react-datepicker/original.package.json +124 -0
  26. package/es/components/date_picker/super_date_picker/date_popover/date_popover_button.js +6 -2
  27. package/es/components/description_list/description_list.js +11 -3
  28. package/es/components/description_list/description_list_context.js +2 -1
  29. package/es/components/description_list/description_list_description.js +3 -1
  30. package/es/components/description_list/description_list_description.styles.js +5 -2
  31. package/es/components/description_list/description_list_title.js +3 -2
  32. package/es/components/description_list/description_list_title.styles.js +7 -3
  33. package/es/components/description_list/description_list_types.js +2 -1
  34. package/es/components/expression/expression.js +12 -2
  35. package/es/components/form/field_search/field_search.js +6 -16
  36. package/es/components/form/range/range_input.js +1 -1
  37. package/es/components/header/header_links/header_link.js +10 -1
  38. package/es/components/header/header_section/header_section_item.js +4 -3
  39. package/es/components/icon/icon.js +3 -10
  40. package/es/components/image/image.js +6 -1
  41. package/es/components/image/image_fullscreen_wrapper.js +2 -3
  42. package/es/components/list_group/list_group.js +7 -1
  43. package/es/components/list_group/list_group_item.js +10 -3
  44. package/es/components/list_group/pinnable_list_group/pinnable_list_group.js +13 -1
  45. package/es/components/modal/modal.js +1 -3
  46. package/es/components/notification/notification_event.js +24 -5
  47. package/es/components/observer/mutation_observer/mutation_observer.js +1 -1
  48. package/es/components/overlay_mask/overlay_mask.js +27 -65
  49. package/es/components/overlay_mask/overlay_mask.styles.js +28 -0
  50. package/es/components/page/page_content/page_content.js +1 -2
  51. package/es/components/page/page_content/page_content_body.js +1 -2
  52. package/es/components/page/page_content/page_content_header.js +1 -2
  53. package/es/components/page/page_content/page_content_header_section.js +1 -2
  54. package/es/components/page/page_section/page_section.js +15 -3
  55. package/es/components/page/page_side_bar/page_side_bar.js +1 -2
  56. package/es/components/page/page_sidebar/page_sidebar.js +5 -1
  57. package/es/components/page/page_template.js +3 -1
  58. package/es/components/page_template/empty_prompt/page_empty_prompt.js +11 -1
  59. package/es/components/page_template/page_template.js +18 -2
  60. package/es/components/pagination/pagination.js +17 -4
  61. package/es/components/pagination/pagination.styles.js +31 -0
  62. package/es/components/pagination/pagination_button.js +17 -5
  63. package/es/components/pagination/pagination_button.styles.js +30 -0
  64. package/es/components/pagination/pagination_button_arrow.js +5 -0
  65. package/es/components/progress/progress.js +6 -1
  66. package/es/components/provider/cache/cache_provider.js +3 -9
  67. package/es/components/provider/provider.js +25 -2
  68. package/es/components/resizable_container/resizable_panel.js +6 -1
  69. package/es/components/side_nav/side_nav.js +5 -0
  70. package/es/components/suggest/suggest.js +10 -1
  71. package/es/components/table/table_row_cell.js +4 -6
  72. package/es/components/tabs/tabbed_content/tabbed_content.js +2 -19
  73. package/es/components/tool_tip/tool_tip.js +42 -66
  74. package/es/components/tool_tip/tool_tip.styles.js +107 -0
  75. package/es/components/tool_tip/tool_tip_anchor.js +73 -0
  76. package/es/components/tool_tip/tool_tip_arrow.js +20 -0
  77. package/es/components/tool_tip/tool_tip_popover.js +48 -101
  78. package/es/global_styling/functions/logicals.json +56 -0
  79. package/es/global_styling/index.js +2 -1
  80. package/es/global_styling/mixins/_typography.js +1 -1
  81. package/es/global_styling/utility/animations.js +13 -0
  82. package/es/services/theme/hooks.js +11 -16
  83. package/eui.d.ts +157 -61
  84. package/i18ntokens.json +72 -72
  85. package/lib/components/basic_table/basic_table.js +13 -2
  86. package/lib/components/basic_table/in_memory_table.js +13 -2
  87. package/lib/components/button/button_display/_button_display.js +10 -1
  88. package/lib/components/button/button_empty/button_empty.js +10 -1
  89. package/lib/components/card/card.styles.js +2 -2
  90. package/lib/components/collapsible_nav/collapsible_nav.js +0 -5
  91. package/lib/components/combo_box/combo_box.js +2 -15
  92. package/lib/components/datagrid/body/data_grid_body.js +17 -6
  93. package/lib/components/datagrid/body/data_grid_cell.js +29 -12
  94. package/lib/components/datagrid/body/header/data_grid_header_cell.js +17 -6
  95. package/lib/components/datagrid/body/header/data_grid_header_row.js +17 -6
  96. package/lib/components/datagrid/data_grid.js +17 -6
  97. package/lib/components/datagrid/utils/in_memory.js +17 -6
  98. package/lib/components/date_picker/auto_refresh/auto_refresh.js +6 -1
  99. package/lib/components/date_picker/react-datepicker/original.package.json +124 -0
  100. package/lib/components/date_picker/super_date_picker/date_popover/date_popover_button.js +6 -1
  101. package/lib/components/description_list/description_list.js +11 -3
  102. package/lib/components/description_list/description_list_context.js +2 -1
  103. package/lib/components/description_list/description_list_description.js +3 -1
  104. package/lib/components/description_list/description_list_description.styles.js +5 -2
  105. package/lib/components/description_list/description_list_title.js +3 -2
  106. package/lib/components/description_list/description_list_title.styles.js +7 -3
  107. package/lib/components/description_list/description_list_types.js +4 -2
  108. package/lib/components/expression/expression.js +12 -2
  109. package/lib/components/form/field_search/field_search.js +6 -16
  110. package/lib/components/form/range/range_input.js +1 -1
  111. package/lib/components/header/header_links/header_link.js +10 -1
  112. package/lib/components/header/header_section/header_section_item.js +4 -3
  113. package/lib/components/icon/icon.js +3 -10
  114. package/lib/components/image/image.js +6 -1
  115. package/lib/components/image/image_fullscreen_wrapper.js +2 -3
  116. package/lib/components/list_group/list_group.js +7 -1
  117. package/lib/components/list_group/list_group_item.js +10 -3
  118. package/lib/components/list_group/pinnable_list_group/pinnable_list_group.js +13 -1
  119. package/lib/components/modal/modal.js +1 -3
  120. package/lib/components/notification/notification_event.js +27 -8
  121. package/lib/components/observer/mutation_observer/mutation_observer.js +1 -1
  122. package/lib/components/overlay_mask/overlay_mask.js +27 -65
  123. package/lib/components/overlay_mask/overlay_mask.styles.js +34 -0
  124. package/lib/components/page/page_content/page_content.js +1 -2
  125. package/lib/components/page/page_content/page_content_body.js +1 -2
  126. package/lib/components/page/page_content/page_content_header.js +1 -2
  127. package/lib/components/page/page_content/page_content_header_section.js +1 -2
  128. package/lib/components/page/page_section/page_section.js +15 -3
  129. package/lib/components/page/page_side_bar/page_side_bar.js +1 -2
  130. package/lib/components/page/page_sidebar/page_sidebar.js +5 -1
  131. package/lib/components/page/page_template.js +3 -1
  132. package/lib/components/page_template/empty_prompt/page_empty_prompt.js +11 -1
  133. package/lib/components/page_template/page_template.js +18 -2
  134. package/lib/components/pagination/pagination.js +18 -3
  135. package/lib/components/pagination/pagination.styles.js +34 -0
  136. package/lib/components/pagination/pagination_button.js +9 -4
  137. package/lib/components/pagination/pagination_button.styles.js +45 -0
  138. package/lib/components/pagination/pagination_button_arrow.js +7 -0
  139. package/lib/components/progress/progress.js +6 -1
  140. package/lib/components/provider/cache/cache_provider.js +3 -11
  141. package/lib/components/provider/provider.js +31 -6
  142. package/lib/components/resizable_container/resizable_panel.js +6 -1
  143. package/lib/components/side_nav/side_nav.js +5 -0
  144. package/lib/components/suggest/suggest.js +10 -1
  145. package/lib/components/table/table_row_cell.js +4 -6
  146. package/lib/components/tabs/tabbed_content/tabbed_content.js +2 -19
  147. package/lib/components/tool_tip/tool_tip.js +43 -64
  148. package/lib/components/tool_tip/tool_tip.styles.js +123 -0
  149. package/lib/components/tool_tip/tool_tip_anchor.js +87 -0
  150. package/lib/components/tool_tip/tool_tip_arrow.js +28 -0
  151. package/lib/components/tool_tip/tool_tip_popover.js +49 -98
  152. package/lib/global_styling/functions/logicals.json +56 -0
  153. package/lib/global_styling/index.js +13 -0
  154. package/lib/global_styling/mixins/_typography.js +1 -1
  155. package/lib/global_styling/utility/animations.js +15 -0
  156. package/lib/services/theme/hooks.js +10 -15
  157. package/optimize/es/components/card/card.styles.js +2 -2
  158. package/optimize/es/components/combo_box/combo_box.js +2 -15
  159. package/optimize/es/components/date_picker/react-datepicker/original.package.json +124 -0
  160. package/optimize/es/components/date_picker/super_date_picker/date_popover/date_popover_button.js +0 -1
  161. package/optimize/es/components/description_list/description_list.js +5 -2
  162. package/optimize/es/components/description_list/description_list_context.js +2 -1
  163. package/optimize/es/components/description_list/description_list_description.js +3 -1
  164. package/optimize/es/components/description_list/description_list_description.styles.js +5 -2
  165. package/optimize/es/components/description_list/description_list_title.js +3 -2
  166. package/optimize/es/components/description_list/description_list_title.styles.js +7 -3
  167. package/optimize/es/components/description_list/description_list_types.js +2 -1
  168. package/optimize/es/components/form/field_search/field_search.js +6 -16
  169. package/optimize/es/components/form/range/range_input.js +1 -1
  170. package/optimize/es/components/header/header_section/header_section_item.js +4 -3
  171. package/optimize/es/components/icon/icon.js +3 -10
  172. package/optimize/es/components/image/image_fullscreen_wrapper.js +2 -3
  173. package/optimize/es/components/list_group/list_group_item.js +3 -2
  174. package/optimize/es/components/modal/modal.js +1 -3
  175. package/optimize/es/components/notification/notification_event.js +10 -4
  176. package/optimize/es/components/observer/mutation_observer/mutation_observer.js +1 -1
  177. package/optimize/es/components/overlay_mask/overlay_mask.js +27 -60
  178. package/optimize/es/components/overlay_mask/overlay_mask.styles.js +28 -0
  179. package/optimize/es/components/page/page_content/page_content.js +1 -2
  180. package/optimize/es/components/page/page_content/page_content_body.js +1 -2
  181. package/optimize/es/components/page/page_content/page_content_header.js +1 -2
  182. package/optimize/es/components/page/page_content/page_content_header_section.js +1 -2
  183. package/optimize/es/components/page/page_section/page_section.js +4 -2
  184. package/optimize/es/components/page/page_side_bar/page_side_bar.js +1 -2
  185. package/optimize/es/components/page/page_sidebar/page_sidebar.js +5 -1
  186. package/optimize/es/components/page/page_template.js +3 -1
  187. package/optimize/es/components/pagination/pagination.js +17 -4
  188. package/optimize/es/components/pagination/pagination.styles.js +31 -0
  189. package/optimize/es/components/pagination/pagination_button.js +7 -4
  190. package/optimize/es/components/pagination/pagination_button.styles.js +30 -0
  191. package/optimize/es/components/pagination/pagination_button_arrow.js +5 -0
  192. package/optimize/es/components/provider/cache/cache_provider.js +3 -9
  193. package/optimize/es/components/provider/provider.js +25 -2
  194. package/optimize/es/components/suggest/suggest.js +4 -1
  195. package/optimize/es/components/tabs/tabbed_content/tabbed_content.js +2 -19
  196. package/optimize/es/components/tool_tip/tool_tip.js +42 -66
  197. package/optimize/es/components/tool_tip/tool_tip.styles.js +107 -0
  198. package/optimize/es/components/tool_tip/tool_tip_anchor.js +60 -0
  199. package/optimize/es/components/tool_tip/tool_tip_arrow.js +20 -0
  200. package/optimize/es/components/tool_tip/tool_tip_popover.js +46 -87
  201. package/optimize/es/global_styling/functions/logicals.json +56 -0
  202. package/optimize/es/global_styling/index.js +2 -1
  203. package/optimize/es/global_styling/mixins/_typography.js +1 -1
  204. package/optimize/es/global_styling/utility/animations.js +13 -0
  205. package/optimize/es/services/theme/hooks.js +11 -16
  206. package/optimize/lib/components/card/card.styles.js +2 -2
  207. package/optimize/lib/components/combo_box/combo_box.js +2 -15
  208. package/optimize/lib/components/date_picker/react-datepicker/original.package.json +124 -0
  209. package/optimize/lib/components/description_list/description_list.js +5 -2
  210. package/optimize/lib/components/description_list/description_list_context.js +2 -1
  211. package/optimize/lib/components/description_list/description_list_description.js +3 -1
  212. package/optimize/lib/components/description_list/description_list_description.styles.js +5 -2
  213. package/optimize/lib/components/description_list/description_list_title.js +3 -2
  214. package/optimize/lib/components/description_list/description_list_title.styles.js +7 -3
  215. package/optimize/lib/components/description_list/description_list_types.js +4 -2
  216. package/optimize/lib/components/form/field_search/field_search.js +6 -16
  217. package/optimize/lib/components/form/range/range_input.js +1 -1
  218. package/optimize/lib/components/header/header_section/header_section_item.js +4 -3
  219. package/optimize/lib/components/icon/icon.js +3 -10
  220. package/optimize/lib/components/image/image_fullscreen_wrapper.js +2 -3
  221. package/optimize/lib/components/list_group/list_group_item.js +3 -2
  222. package/optimize/lib/components/modal/modal.js +1 -3
  223. package/optimize/lib/components/notification/notification_event.js +11 -11
  224. package/optimize/lib/components/observer/mutation_observer/mutation_observer.js +1 -1
  225. package/optimize/lib/components/overlay_mask/overlay_mask.js +27 -59
  226. package/optimize/lib/components/overlay_mask/overlay_mask.styles.js +34 -0
  227. package/optimize/lib/components/page/page_content/page_content.js +1 -2
  228. package/optimize/lib/components/page/page_content/page_content_body.js +1 -2
  229. package/optimize/lib/components/page/page_content/page_content_header.js +1 -2
  230. package/optimize/lib/components/page/page_content/page_content_header_section.js +1 -2
  231. package/optimize/lib/components/page/page_section/page_section.js +4 -2
  232. package/optimize/lib/components/page/page_side_bar/page_side_bar.js +1 -2
  233. package/optimize/lib/components/page/page_sidebar/page_sidebar.js +5 -1
  234. package/optimize/lib/components/page/page_template.js +3 -1
  235. package/optimize/lib/components/pagination/pagination.js +18 -3
  236. package/optimize/lib/components/pagination/pagination.styles.js +34 -0
  237. package/optimize/lib/components/pagination/pagination_button.js +9 -4
  238. package/optimize/lib/components/pagination/pagination_button.styles.js +45 -0
  239. package/optimize/lib/components/pagination/pagination_button_arrow.js +7 -0
  240. package/optimize/lib/components/provider/cache/cache_provider.js +3 -11
  241. package/optimize/lib/components/provider/provider.js +31 -6
  242. package/optimize/lib/components/suggest/suggest.js +4 -1
  243. package/optimize/lib/components/tabs/tabbed_content/tabbed_content.js +2 -19
  244. package/optimize/lib/components/tool_tip/tool_tip.js +42 -64
  245. package/optimize/lib/components/tool_tip/tool_tip.styles.js +125 -0
  246. package/optimize/lib/components/tool_tip/tool_tip_anchor.js +75 -0
  247. package/optimize/lib/components/tool_tip/tool_tip_arrow.js +35 -0
  248. package/optimize/lib/components/tool_tip/tool_tip_popover.js +47 -88
  249. package/optimize/lib/global_styling/functions/logicals.json +56 -0
  250. package/optimize/lib/global_styling/index.js +13 -0
  251. package/optimize/lib/global_styling/mixins/_typography.js +1 -1
  252. package/optimize/lib/global_styling/utility/animations.js +17 -0
  253. package/optimize/lib/services/theme/hooks.js +10 -15
  254. package/package.json +2 -2
  255. package/src/components/badge/_badge.scss +0 -5
  256. package/src/components/datagrid/_data_grid_data_row.scss +7 -0
  257. package/src/components/datagrid/body/header/_data_grid_header_row.scss +1 -1
  258. package/src/components/filter_group/_filter_group.scss +3 -1
  259. package/src/components/flex/_flex_group.scss +2 -11
  260. package/src/components/flex/_flex_item.scss +0 -6
  261. package/src/components/form/field_search/_field_search.scss +0 -5
  262. package/src/components/form/form_control_layout/_form_control_layout_delimited.scss +0 -3
  263. package/src/components/form/form_row/_form_row.scss +0 -1
  264. package/src/components/header/header_section/_header_section_item.scss +1 -1
  265. package/src/components/index.scss +0 -4
  266. package/src/components/list_group/_list_group_item.scss +3 -25
  267. package/src/components/modal/_modal.scss +5 -20
  268. package/src/components/page/page_content/_page_content.scss +0 -1
  269. package/src/components/table/_responsive.scss +0 -1
  270. package/src/components/table/_table.scss +0 -5
  271. package/src/global_styling/mixins/_form.scss +0 -4
  272. package/src/global_styling/mixins/_helpers.scss +0 -8
  273. package/src/global_styling/mixins/_tool_tip.scss +3 -6
  274. package/src/global_styling/mixins/_typography.scss +1 -5
  275. package/src/global_styling/utility/_index.scss +0 -1
  276. package/src/themes/amsterdam/overrides/_index.scss +0 -2
  277. package/test-env/components/basic_table/basic_table.js +13 -2
  278. package/test-env/components/basic_table/in_memory_table.js +13 -2
  279. package/test-env/components/button/button_display/_button_display.js +10 -1
  280. package/test-env/components/button/button_empty/button_empty.js +10 -1
  281. package/test-env/components/card/card.styles.js +2 -2
  282. package/test-env/components/collapsible_nav/collapsible_nav.js +0 -5
  283. package/test-env/components/combo_box/combo_box.js +2 -15
  284. package/test-env/components/datagrid/body/data_grid_body.js +17 -6
  285. package/test-env/components/datagrid/body/data_grid_cell.js +29 -12
  286. package/test-env/components/datagrid/body/header/data_grid_header_cell.js +17 -6
  287. package/test-env/components/datagrid/body/header/data_grid_header_row.js +17 -6
  288. package/test-env/components/datagrid/data_grid.js +17 -6
  289. package/test-env/components/datagrid/utils/in_memory.js +17 -6
  290. package/test-env/components/date_picker/auto_refresh/auto_refresh.js +6 -1
  291. package/test-env/components/date_picker/react-datepicker/original.package.json +124 -0
  292. package/test-env/components/date_picker/super_date_picker/date_popover/date_popover_button.js +6 -1
  293. package/test-env/components/description_list/description_list.js +11 -3
  294. package/test-env/components/description_list/description_list_context.js +2 -1
  295. package/test-env/components/description_list/description_list_description.js +3 -1
  296. package/test-env/components/description_list/description_list_description.styles.js +5 -2
  297. package/test-env/components/description_list/description_list_title.js +3 -2
  298. package/test-env/components/description_list/description_list_title.styles.js +7 -3
  299. package/test-env/components/description_list/description_list_types.js +4 -2
  300. package/test-env/components/expression/expression.js +12 -2
  301. package/test-env/components/form/field_search/field_search.js +6 -16
  302. package/test-env/components/form/range/range_input.js +1 -1
  303. package/test-env/components/header/header_links/header_link.js +10 -1
  304. package/test-env/components/header/header_section/header_section_item.js +4 -3
  305. package/test-env/components/image/image.js +6 -1
  306. package/test-env/components/image/image_fullscreen_wrapper.js +2 -3
  307. package/test-env/components/list_group/list_group.js +7 -1
  308. package/test-env/components/list_group/list_group_item.js +10 -3
  309. package/test-env/components/list_group/pinnable_list_group/pinnable_list_group.js +13 -1
  310. package/test-env/components/modal/modal.js +1 -3
  311. package/test-env/components/notification/notification_event.js +24 -15
  312. package/test-env/components/observer/mutation_observer/mutation_observer.js +1 -1
  313. package/test-env/components/overlay_mask/overlay_mask.js +27 -64
  314. package/test-env/components/overlay_mask/overlay_mask.styles.js +34 -0
  315. package/test-env/components/page/page_content/page_content.js +1 -2
  316. package/test-env/components/page/page_content/page_content_body.js +1 -2
  317. package/test-env/components/page/page_content/page_content_header.js +1 -2
  318. package/test-env/components/page/page_content/page_content_header_section.js +1 -2
  319. package/test-env/components/page/page_section/page_section.js +15 -3
  320. package/test-env/components/page/page_side_bar/page_side_bar.js +1 -2
  321. package/test-env/components/page/page_sidebar/page_sidebar.js +5 -1
  322. package/test-env/components/page/page_template.js +3 -1
  323. package/test-env/components/page_template/empty_prompt/page_empty_prompt.js +11 -1
  324. package/test-env/components/page_template/page_template.js +18 -2
  325. package/test-env/components/pagination/pagination.js +18 -3
  326. package/test-env/components/pagination/pagination.styles.js +34 -0
  327. package/test-env/components/pagination/pagination_button.js +9 -4
  328. package/test-env/components/pagination/pagination_button.styles.js +45 -0
  329. package/test-env/components/pagination/pagination_button_arrow.js +7 -0
  330. package/test-env/components/progress/progress.js +6 -1
  331. package/test-env/components/provider/cache/cache_provider.js +3 -11
  332. package/test-env/components/provider/provider.js +31 -6
  333. package/test-env/components/resizable_container/resizable_panel.js +6 -1
  334. package/test-env/components/side_nav/side_nav.js +5 -0
  335. package/test-env/components/suggest/suggest.js +10 -1
  336. package/test-env/components/table/table_row_cell.js +4 -6
  337. package/test-env/components/tabs/tabbed_content/tabbed_content.js +2 -19
  338. package/test-env/components/tool_tip/tool_tip.js +42 -64
  339. package/test-env/components/tool_tip/tool_tip.styles.js +125 -0
  340. package/test-env/components/tool_tip/tool_tip_anchor.js +84 -0
  341. package/test-env/components/tool_tip/tool_tip_arrow.js +35 -0
  342. package/test-env/components/tool_tip/tool_tip_popover.js +49 -89
  343. package/test-env/global_styling/functions/logicals.json +56 -0
  344. package/test-env/global_styling/index.js +13 -0
  345. package/test-env/global_styling/mixins/_typography.js +1 -1
  346. package/test-env/global_styling/utility/animations.js +17 -0
  347. package/test-env/services/theme/hooks.js +10 -15
  348. package/src/components/call_out/_index.scss +0 -3
  349. package/src/components/call_out/_mixins.scss +0 -23
  350. package/src/components/call_out/_variables.scss +0 -7
  351. package/src/components/overlay_mask/_index.scss +0 -1
  352. package/src/components/overlay_mask/_overlay_mask.scss +0 -33
  353. package/src/components/pagination/_index.scss +0 -2
  354. package/src/components/pagination/_pagination.scss +0 -30
  355. package/src/components/pagination/_pagination_button.scss +0 -37
  356. package/src/components/tool_tip/_index.scss +0 -1
  357. package/src/components/tool_tip/_tool_tip.scss +0 -121
  358. package/src/global_styling/utility/_utility.scss +0 -15
  359. package/src/themes/amsterdam/overrides/_overlay_mask.scss +0 -3
  360. package/src/themes/amsterdam/overrides/_tooltip.scss +0 -7
@@ -87,14 +87,14 @@ var euiCardStyles = function euiCardStyles(euiThemeContext, paddingSize, color)
87
87
  euiCard__description: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('margin-top', halfSpacing), ";;label:euiCard__description;"),
88
88
  euiCard__footer: /*#__PURE__*/(0, _react.css)("flex-grow:0;", (0, _global_styling.logicalCSS)('width', '100%'), ";", (0, _global_styling.logicalCSS)('margin-top', spacing), ";;label:euiCard__footer;"),
89
89
  top: {
90
- euiCard__top: /*#__PURE__*/(0, _react.css)("flex-grow:0;font-size:0;position:relative;", (0, _global_styling.logicalCSS)('min-height', '1px'), ";", (0, _global_styling.logicalCSS)('margin-bottom', spacing), ";;label:euiCard__top;"),
90
+ euiCard__top: /*#__PURE__*/(0, _react.css)("flex-grow:0;font-size:0;position:relative;", (0, _global_styling.logicalCSS)('margin-bottom', spacing), ";;label:euiCard__top;"),
91
91
  layout: {
92
92
  vertical: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('width', '100%'), ";;label:vertical;"),
93
93
  horizontal: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('width', 'auto'), ";;label:horizontal;")
94
94
  },
95
95
  disabled: _ref2
96
96
  },
97
- euiCard__image: /*#__PURE__*/(0, _react.css)("position:relative;overflow:hidden;", (0, _global_styling.logicalCSS)('width', "calc(100% + (".concat(paddingAmount, " * 2))")), ";", (0, _global_styling.logicalCSS)('left', "-".concat(paddingAmount)), ";", (0, _global_styling.logicalCSS)('top', "-".concat(paddingAmount)), ";", (0, _global_styling.logicalCSS)('margin-bottom', "-".concat(paddingAmount)), ";", _global_styling.logicals['border-top-left-radius'], ":calc(", euiTheme.border.radius.medium, " - 1px);", _global_styling.logicals['border-top-right-radius'], ":calc(", euiTheme.border.radius.medium, " - 1px);", color === 'transparent' ? "border-radius: ".concat(euiTheme.border.radius.medium, ";") : undefined, " img{", (0, _global_styling.logicalCSS)('width', '100%'), ";};label:euiCard__image;"),
97
+ euiCard__image: /*#__PURE__*/(0, _react.css)("position:relative;overflow:hidden;", (0, _global_styling.logicalCSS)('width', "calc(100% + (".concat(paddingAmount, " * 2))")), ";", (0, _global_styling.logicalCSS)('left', "-".concat(paddingAmount)), ";", (0, _global_styling.logicalCSS)('top', "-".concat(paddingAmount)), ";", (0, _global_styling.logicalCSS)('margin-bottom', "-".concat(paddingAmount)), ";", (0, _global_styling.logicalCSS)('border-top-left-radius', "calc(".concat(euiTheme.border.radius.medium, " - ").concat(euiTheme.border.width.thin, ")")), " ", _global_styling.logicals['border-top-right-radius'], ":calc(", euiTheme.border.radius.medium, " - ", euiTheme.border.width.thin, ");", color === 'transparent' ? "border-radius: ".concat(euiTheme.border.radius.medium, ";") : undefined, " img{", (0, _global_styling.logicalCSS)('width', '100%'), ";};label:euiCard__image;"),
98
98
  icon: {
99
99
  euiCard__icon: /*#__PURE__*/(0, _react.css)(";label:euiCard__icon;"),
100
100
  withImage: /*#__PURE__*/(0, _react.css)("position:absolute;", (0, _global_styling.logicalCSS)('top', '50%'), ";", (0, _global_styling.logicalCSS)('left', '50%'), ";transform:translate(-50%, calc(-50% + -", paddingAmount, "))!important;;label:withImage;"),
@@ -93,17 +93,9 @@ var EuiComboBox = /*#__PURE__*/function (_Component) {
93
93
  (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "rootId", (0, _services.htmlIdGenerator)());
94
94
  (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "comboBoxRefInstance", null);
95
95
  (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "comboBoxRefCallback", function (ref) {
96
- // IE11 doesn't support the `relatedTarget` event property for blur events
97
- // but does add it for focusout. React doesn't support `onFocusOut` so here we are.
98
- if (_this.comboBoxRefInstance) {
99
- _this.comboBoxRefInstance.removeEventListener('focusout', _this.onContainerBlur);
100
- }
101
-
102
96
  _this.comboBoxRefInstance = ref;
103
97
 
104
98
  if (_this.comboBoxRefInstance) {
105
- _this.comboBoxRefInstance.addEventListener('focusout', _this.onContainerBlur);
106
-
107
99
  var comboBoxBounds = _this.comboBoxRefInstance.getBoundingClientRect();
108
100
 
109
101
  _this.setState({
@@ -388,13 +380,7 @@ var EuiComboBox = /*#__PURE__*/function (_Component) {
388
380
  });
389
381
  (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "onContainerBlur", function (event) {
390
382
  // close the options list, unless the user clicked on an option
391
-
392
- /**
393
- * FireFox returns `relatedTarget` as `null` for security reasons, but provides a proprietary `explicitOriginalTarget`.
394
- * @see https://developer.mozilla.org/en-US/docs/Web/API/Event/explicitOriginalTarget
395
- */
396
- var focusEvent = event;
397
- var relatedTarget = focusEvent.relatedTarget || focusEvent.explicitOriginalTarget;
383
+ var relatedTarget = event.relatedTarget;
398
384
 
399
385
  var focusedInOptionsList = relatedTarget && _this.listRefInstance && _this.listRefInstance.contains(relatedTarget);
400
386
 
@@ -825,6 +811,7 @@ var EuiComboBox = /*#__PURE__*/function (_Component) {
825
811
  className: classes,
826
812
  "data-test-subj": dataTestSubj,
827
813
  onKeyDown: this.onKeyDown,
814
+ onBlur: this.onContainerBlur,
828
815
  ref: this.comboBoxRefCallback
829
816
  }), (0, _react2.jsx)(_combo_box_input.EuiComboBoxInput, {
830
817
  autoSizeInputRef: this.autoSizeInputRefCallback,
@@ -0,0 +1,124 @@
1
+ {
2
+ "author": "HackerOne",
3
+ "name": "@elastic/react-datepicker",
4
+ "description": "Forked from Hacker0x01/react-datepicker for accessibility - simple and reusable datepicker component for React",
5
+ "private": true,
6
+ "version": "2.0.0",
7
+ "license": "MIT",
8
+ "homepage": "https://github.com/Hacker0x01/react-datepicker",
9
+ "main": "lib",
10
+ "files": [
11
+ "*.md",
12
+ "dist",
13
+ "datepicker-lib",
14
+ "es",
15
+ "src/stylesheets"
16
+ ],
17
+ "resolutions": {
18
+ "**/diff": "^3.5.0"
19
+ },
20
+ "devDependencies": {
21
+ "babel-core": "^6.26.0",
22
+ "babel-eslint": "^8.0.2",
23
+ "babel-loader": "^6.2.10",
24
+ "babel-plugin-add-react-displayname": "^0.0.4",
25
+ "babel-plugin-external-helpers": "^6.22.0",
26
+ "babel-plugin-react-transform": "^3.0.0",
27
+ "babel-plugin-transform-class-properties": "^6.24.1",
28
+ "babel-plugin-transform-react-remove-prop-types": "^0.4.10",
29
+ "babel-polyfill": "^6.26.0",
30
+ "babel-preset-airbnb": "^2.4.0",
31
+ "babel-preset-env": "^1.6.1",
32
+ "babel-preset-react": "^6.24.1",
33
+ "babel-preset-stage-0": "^6.24.1",
34
+ "chai": "^3.5.0",
35
+ "cross-env": "^5.1.1",
36
+ "css-loader": "^1.0.0",
37
+ "enzyme": "^3.10.0",
38
+ "enzyme-adapter-react-16": "^1.14.0",
39
+ "eslint": "^4.18.2",
40
+ "eslint-plugin-import": "^2.8.0",
41
+ "eslint-plugin-node": "^5.2.1",
42
+ "eslint-plugin-promise": "^3.6.0",
43
+ "eslint-plugin-react": "^7.4.0",
44
+ "express": "^4.16.2",
45
+ "extract-text-webpack-plugin": "^1.0.1",
46
+ "flow-bin": "^0.68.0",
47
+ "highlight.js": "^9.12.0",
48
+ "husky": "^0.14.3",
49
+ "isparta-loader": "^2.0.0",
50
+ "karma": "^1.7.1",
51
+ "karma-chai": "^0.1.0",
52
+ "karma-coverage": "^1.1.1",
53
+ "karma-firefox-launcher": "^1.0.1",
54
+ "karma-mocha": "^1.3.0",
55
+ "karma-sinon": "^1.0.5",
56
+ "karma-sourcemap-loader": "^0.3.7",
57
+ "karma-webpack": "^2.0.5",
58
+ "lint-staged": "^6.0.0",
59
+ "lodash": "^4.17.13",
60
+ "mocha": "^4.0.1",
61
+ "moment": "^2.20.1",
62
+ "node-sass": "^4.13.1",
63
+ "npm-run-all": "^4.1.2",
64
+ "prettier": "^1.9.2",
65
+ "react": "^16.2.0",
66
+ "react-docgen": "^2.20.0",
67
+ "react-dom": "^16.2.0",
68
+ "react-test-renderer": "^16.8.6",
69
+ "react-transform-hmr": "^1.0.4",
70
+ "rimraf": "^2.6.2",
71
+ "rollup": "^0.62.0",
72
+ "rollup-plugin-babel": "^3.0.2",
73
+ "rollup-plugin-commonjs": "^8.2.6",
74
+ "rollup-plugin-node-resolve": "^3.0.0",
75
+ "rollup-plugin-uglify": "^2.0.1",
76
+ "sass-lint": "^1.12.1",
77
+ "sass-loader": "^4.1.1",
78
+ "sinon": "^4.1.2",
79
+ "style-loader": "^0.19.0",
80
+ "webpack": "^1.13.0",
81
+ "webpack-dev-middleware": "^1.12.0",
82
+ "webpack-dev-server": "^3.1.14",
83
+ "webpack-hot-middleware": "^2.20.0"
84
+ },
85
+ "peerDependencies": {
86
+ "moment": "^2.20.0",
87
+ "react": "^16.0.0",
88
+ "react-dom": "^16.0.0"
89
+ },
90
+ "dependencies": {
91
+ "classnames": "^2.2.5",
92
+ "focus-trap-react": "^4.0.0",
93
+ "json-loader": "^0.5.7",
94
+ "prop-types": "^15.6.0",
95
+ "react-onclickoutside": "^6.7.1",
96
+ "react-popper": "^1.0.2"
97
+ },
98
+ "scripts": {
99
+ "eslint": "eslint {src,test,docs-site/src}/**/*.{js,jsx} *.js",
100
+ "flow": "flow",
101
+ "precommit": "lint-staged",
102
+ "sass-lint": "sass-lint --config .sass-lint.yml 'src/stylesheets/*.scss, docs-site/src/*.scss' -i 'docs-site/src/higlight.scss, docs-site/src/reset.scss'",
103
+ "lint": "run-p eslint flow sass-lint",
104
+ "start": "cross-env MODULES=false node server.js",
105
+ "test": "cross-env NODE_ENV=test karma start karma.conf.js --single-run",
106
+ "prepublish": "test $(npm -v | tr . '\\n' | head -n 1) -ge '4' || exit 1",
107
+ "prepare": "npm run build",
108
+ "prebuild": "rimraf es lib dist",
109
+ "build": "cross-env NODE_ENV=production run-p build:** && run-p css:**",
110
+ "build-dev": "cross-env NODE_ENV=development run-p build:** && run-p css:**",
111
+ "css:prod": "mkdir -p lib && node-sass --output-style compressed src/stylesheets/datepicker.scss > lib/react-datepicker.min.css",
112
+ "css:modules:prod": "mkdir -p lib && node-sass --output-style compressed src/stylesheets/datepicker-cssmodules.scss > lib/react-datepicker-cssmodules.min.css",
113
+ "css:dev": "mkdir -p lib && node-sass --output-style expanded src/stylesheets/datepicker.scss > lib/react-datepicker.css",
114
+ "css:modules:dev": "mkdir -p lib && node-sass --output-style expanded src/stylesheets/datepicker-cssmodules.scss > lib/react-datepicker-cssmodules.css",
115
+ "build:es": "cross-env BABEL_ENV=cjs rollup -c -i src/index.jsx -o ../react-datepicker.js",
116
+ "build:docs": "cross-env MODULES=false webpack --config webpack.docs.config.js"
117
+ },
118
+ "lint-staged": {
119
+ "*.{js,jsx,json,css,scss,md}": [
120
+ "prettier --write",
121
+ "git add"
122
+ ]
123
+ }
124
+ }
@@ -27,7 +27,7 @@ var _description_list_context = require("./description_list_context");
27
27
 
28
28
  var _react2 = require("@emotion/react");
29
29
 
30
- var _excluded = ["align", "children", "className", "compressed", "descriptionProps", "listItems", "textStyle", "titleProps", "type"];
30
+ var _excluded = ["align", "children", "className", "compressed", "descriptionProps", "listItems", "textStyle", "titleProps", "type", "gutterSize"];
31
31
 
32
32
  var EuiDescriptionList = function EuiDescriptionList(_ref) {
33
33
  var _ref$align = _ref.align,
@@ -43,6 +43,8 @@ var EuiDescriptionList = function EuiDescriptionList(_ref) {
43
43
  titleProps = _ref.titleProps,
44
44
  _ref$type = _ref.type,
45
45
  type = _ref$type === void 0 ? 'row' : _ref$type,
46
+ _ref$gutterSize = _ref.gutterSize,
47
+ gutterSize = _ref$gutterSize === void 0 ? 'm' : _ref$gutterSize,
46
48
  rest = (0, _objectWithoutProperties2.default)(_ref, _excluded);
47
49
  var euiTheme = (0, _services.useEuiTheme)();
48
50
  var styles = (0, _description_list.euiDescriptionListStyles)(euiTheme);
@@ -67,7 +69,8 @@ var EuiDescriptionList = function EuiDescriptionList(_ref) {
67
69
  type: type,
68
70
  compressed: compressed,
69
71
  textStyle: textStyle,
70
- align: align
72
+ align: align,
73
+ gutterSize: gutterSize
71
74
  }
72
75
  }, (0, _react2.jsx)("dl", (0, _extends2.default)({
73
76
  className: classes,
@@ -17,7 +17,8 @@ var _react = require("react");
17
17
  var contextDefaults = {
18
18
  type: 'row',
19
19
  textStyle: 'normal',
20
- align: 'left'
20
+ align: 'left',
21
+ gutterSize: 'm'
21
22
  };
22
23
  exports.contextDefaults = contextDefaults;
23
24
  var EuiDescriptionListContext = /*#__PURE__*/(0, _react.createContext)(contextDefaults);
@@ -42,7 +42,8 @@ var EuiDescriptionListDescription = function EuiDescriptionListDescription(_ref)
42
42
  type = _useContext.type,
43
43
  textStyle = _useContext.textStyle,
44
44
  compressed = _useContext.compressed,
45
- align = _useContext.align;
45
+ align = _useContext.align,
46
+ gutterSize = _useContext.gutterSize;
46
47
 
47
48
  var theme = (0, _services.useEuiTheme)();
48
49
  var styles = (0, _description_list_description.euiDescriptionListDescriptionStyles)(theme);
@@ -59,6 +60,7 @@ var EuiDescriptionListDescription = function EuiDescriptionListDescription(_ref)
59
60
  conditionalStyles.push(styles.left);
60
61
  }
61
62
 
63
+ conditionalStyles.push(styles[gutterSize]);
62
64
  break;
63
65
  }
64
66
 
@@ -24,7 +24,7 @@ var _ref = process.env.NODE_ENV === "production" ? {
24
24
 
25
25
  var euiDescriptionListDescriptionStyles = function euiDescriptionListDescriptionStyles(euiThemeContext) {
26
26
  var euiTheme = euiThemeContext.euiTheme;
27
- var columnDisplay = "\n ".concat((0, _global_styling.logicalCSS)('width', '50%'), " // Flex-basis doesn't work in IE with padding\n ").concat((0, _global_styling.logicalCSS)('padding-left', euiTheme.size.s), "\n &:not(:first-of-type) {\n ").concat((0, _global_styling.logicalCSS)('margin-top', euiTheme.size.base), "\n }\n ");
27
+ var columnDisplay = "\n ".concat((0, _global_styling.logicalCSS)('width', '50%'), "\n ").concat((0, _global_styling.logicalCSS)('padding-left', euiTheme.size.s), "\n ");
28
28
  return {
29
29
  euiDescriptionList__description: /*#__PURE__*/(0, _react.css)(";label:euiDescriptionList__description;"),
30
30
  // Types
@@ -44,7 +44,10 @@ var euiDescriptionListDescriptionStyles = function euiDescriptionListDescription
44
44
  normal: /*#__PURE__*/(0, _react.css)((0, _global_styling.euiFontSize)(euiThemeContext, 's'), ";;label:normal;")
45
45
  },
46
46
  // Column types should align description text to the left when EuiDecriptionList is centered
47
- left: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalTextAlignCSS)('left'), ";;label:left;")
47
+ left: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalTextAlignCSS)('left'), ";;label:left;"),
48
+ // Gutter
49
+ s: /*#__PURE__*/(0, _react.css)("&:not(:first-of-type){", (0, _global_styling.logicalCSS)('margin-top', euiTheme.size.s), ";};label:s;"),
50
+ m: /*#__PURE__*/(0, _react.css)("&:not(:first-of-type){", (0, _global_styling.logicalCSS)('margin-top', euiTheme.size.base), ";};label:m;")
48
51
  };
49
52
  };
50
53
 
@@ -42,7 +42,8 @@ var EuiDescriptionListTitle = function EuiDescriptionListTitle(_ref) {
42
42
  type = _useContext.type,
43
43
  textStyle = _useContext.textStyle,
44
44
  compressed = _useContext.compressed,
45
- align = _useContext.align;
45
+ align = _useContext.align,
46
+ gutterSize = _useContext.gutterSize;
46
47
 
47
48
  var theme = (0, _services.useEuiTheme)();
48
49
  var styles = (0, _description_list_title.euiDescriptionListTitleStyles)(theme);
@@ -62,7 +63,7 @@ var EuiDescriptionListTitle = function EuiDescriptionListTitle(_ref) {
62
63
  break;
63
64
  }
64
65
 
65
- var cssStyles = [styles.euiDescriptionList__title, styles[type]].concat((0, _toConsumableArray2.default)(conditionalStyles));
66
+ var cssStyles = [styles.euiDescriptionList__title, styles[type], styles[gutterSize]].concat((0, _toConsumableArray2.default)(conditionalStyles));
66
67
  var classes = (0, _classnames.default)('euiDescriptionList__title', className);
67
68
  return (0, _react2.jsx)("dt", (0, _extends2.default)({
68
69
  className: classes,
@@ -23,9 +23,9 @@ var _title = require("../title/title.styles");
23
23
  var euiDescriptionListTitleStyles = function euiDescriptionListTitleStyles(euiThemeContext) {
24
24
  var euiTheme = euiThemeContext.euiTheme,
25
25
  colorMode = euiThemeContext.colorMode;
26
- var columnDisplay = "\n ".concat((0, _global_styling.logicalCSS)('width', '50%'), " // Flex-basis doesn't work in IE with padding\n ").concat((0, _global_styling.logicalCSS)('padding-right', euiTheme.size.s), "\n ");
26
+ var columnDisplay = "\n ".concat((0, _global_styling.logicalCSS)('width', '50%'), "\n ").concat((0, _global_styling.logicalCSS)('padding-right', euiTheme.size.s), "\n ");
27
27
  return {
28
- euiDescriptionList__title: /*#__PURE__*/(0, _react.css)((0, _global_styling.euiTextBreakWord)(), "&:not(:first-of-type){", (0, _global_styling.logicalCSS)('margin-top', euiTheme.size.base), ";};label:euiDescriptionList__title;"),
28
+ euiDescriptionList__title: /*#__PURE__*/(0, _react.css)((0, _global_styling.euiTextBreakWord)(), ";;label:euiDescriptionList__title;"),
29
29
  // Types
30
30
  row: /*#__PURE__*/(0, _react.css)(";label:row;"),
31
31
  column: /*#__PURE__*/(0, _react.css)(columnDisplay, ";;label:column;"),
@@ -43,7 +43,11 @@ var euiDescriptionListTitleStyles = function euiDescriptionListTitleStyles(euiTh
43
43
  compressed: /*#__PURE__*/(0, _react.css)((0, _global_styling.euiFontSize)(euiThemeContext, 'xs'), ";", (0, _global_styling.logicalCSS)('padding-vertical', '0'), " ", (0, _global_styling.logicalCSS)('padding-horizontal', euiTheme.size.xs), ";;label:compressed;")
44
44
  },
45
45
  // Alignment
46
- right: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalTextAlignCSS)('right'), ";;label:right;")
46
+ right: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalTextAlignCSS)('right'), ";;label:right;"),
47
+ // Gutter
48
+ // Add margin only to the non-first <dt>.
49
+ s: /*#__PURE__*/(0, _react.css)("&:not(:first-of-type){", (0, _global_styling.logicalCSS)('margin-top', euiTheme.size.s), ";};label:s;"),
50
+ m: /*#__PURE__*/(0, _react.css)("&:not(:first-of-type){", (0, _global_styling.logicalCSS)('margin-top', euiTheme.size.base), ";};label:m;")
47
51
  };
48
52
  };
49
53
 
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.TYPES = exports.TEXT_STYLES = exports.ALIGNMENTS = void 0;
6
+ exports.TYPES = exports.TEXT_STYLES = exports.GUTTER_SIZES = exports.ALIGNMENTS = void 0;
7
7
 
8
8
  /*
9
9
  * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
@@ -17,4 +17,6 @@ exports.TYPES = TYPES;
17
17
  var ALIGNMENTS = ['center', 'left'];
18
18
  exports.ALIGNMENTS = ALIGNMENTS;
19
19
  var TEXT_STYLES = ['normal', 'reverse'];
20
- exports.TEXT_STYLES = TEXT_STYLES;
20
+ exports.TEXT_STYLES = TEXT_STYLES;
21
+ var GUTTER_SIZES = ['s', 'm'];
22
+ exports.GUTTER_SIZES = GUTTER_SIZES;
@@ -90,26 +90,16 @@ var EuiFieldSearch = /*#__PURE__*/function (_Component) {
90
90
 
91
91
  if (nativeInputValueSetter) {
92
92
  nativeInputValueSetter.call(_this.inputElement, '');
93
- } // dispatch input event, with IE11 support/fallback
93
+ } // dispatch input event
94
94
 
95
95
 
96
- var event;
97
-
98
- if ('Event' in window && typeof Event === 'function') {
99
- event = new Event('input', {
100
- bubbles: true,
101
- cancelable: false
102
- });
103
- } else {
104
- // IE11
105
- event = document.createEvent('Event');
106
- event.initEvent('input', true, false);
107
- }
96
+ var event = new Event('input', {
97
+ bubbles: true,
98
+ cancelable: false
99
+ });
108
100
 
109
101
  if (_this.inputElement) {
110
- if (event) {
111
- _this.inputElement.dispatchEvent(event);
112
- } // set focus on the search field
102
+ _this.inputElement.dispatchEvent(event); // set focus on the search field
113
103
 
114
104
 
115
105
  _this.inputElement.focus();
@@ -35,7 +35,7 @@ var EuiRangeInput = function EuiRangeInput(_ref) {
35
35
  _ref$autoSize = _ref.autoSize,
36
36
  autoSize = _ref$autoSize === void 0 ? true : _ref$autoSize,
37
37
  rest = (0, _objectWithoutProperties2.default)(_ref, _excluded);
38
- // Chrome will properly size the input based on the max value, but FF & IE do not.
38
+ // Chrome will properly size the input based on the max value, but FF does not.
39
39
  // Calculate the width of the input based on highest number of characters.
40
40
  // Add 2 to accommodate for input stepper
41
41
  var widthStyle = autoSize ? {
@@ -30,10 +30,11 @@ var EuiHeaderSectionItem = function EuiHeaderSectionItem(_ref) {
30
30
  children = _ref.children,
31
31
  className = _ref.className,
32
32
  rest = (0, _objectWithoutProperties2.default)(_ref, _excluded);
33
- var classes = (0, _classnames.default)('euiHeaderSectionItem', borderToClassNameMap[border], className);
34
- return (0, _react2.jsx)("div", (0, _extends2.default)({
33
+ var classes = (0, _classnames.default)('euiHeaderSectionItem', borderToClassNameMap[border], className); // we check if there is any children and if not, we don't render anything
34
+
35
+ return children ? (0, _react2.jsx)("div", (0, _extends2.default)({
35
36
  className: classes
36
- }, rest), children);
37
+ }, rest), children) : null;
37
38
  };
38
39
 
39
40
  exports.EuiHeaderSectionItem = EuiHeaderSectionItem;
@@ -134,7 +134,7 @@ var EuiIconClass = /*#__PURE__*/function (_PureComponent) {
134
134
 
135
135
  (0, _classCallCheck2.default)(this, EuiIconClass);
136
136
  _this = _super.call(this, props);
137
- (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "isMounted", true);
137
+ (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "isMounted", false);
138
138
  (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "loadIconComponent", function (iconType) {
139
139
  if (iconComponentCache.hasOwnProperty(iconType)) {
140
140
  // exists in cache
@@ -191,6 +191,7 @@ var EuiIconClass = /*#__PURE__*/function (_PureComponent) {
191
191
  (0, _createClass2.default)(EuiIconClass, [{
192
192
  key: "componentDidMount",
193
193
  value: function componentDidMount() {
194
+ this.isMounted = true;
194
195
  var type = this.props.type;
195
196
 
196
197
  if (isEuiIconType(type) && this.state.icon == null) {
@@ -266,14 +267,7 @@ var EuiIconClass = /*#__PURE__*/function (_PureComponent) {
266
267
 
267
268
  var styles = (0, _icon.euiIconStyles)(theme);
268
269
  var cssStyles = [styles.euiIcon, styles[size], color && (0, _named_colors.isNamedColor)(color) && styles[color], isCustomColor && styles.customColor, isElasticLogoOutline && styles.logoElasticOutline, isAppIcon && !appIconHasColor && styles.app, isLoading && styles.isLoading, !isLoading && neededLoading && styles.isLoaded];
269
- var icon = this.state.icon || _empty.icon; // This is a fix for IE and Edge, which ignores tabindex="-1" on an SVG, but respects
270
- // focusable="false".
271
- // - If there's no tabindex specified, we'll default the icon to not be focusable,
272
- // which is how SVGs behave in Chrome, Safari, and FF.
273
- // - If tabindex is -1, then the consumer wants the icon to be focusable by JavaScript only.
274
- // - If the tabindex is 0, the consumer wants the icon to be keyboard focusable.
275
-
276
- var focusable = tabIndex == null || tabIndex === -1 ? 'false' : 'true';
270
+ var icon = this.state.icon || _empty.icon;
277
271
 
278
272
  if (typeof icon === 'string') {
279
273
  return (0, _react3.jsx)("img", (0, _extends2.default)({
@@ -305,7 +299,6 @@ var EuiIconClass = /*#__PURE__*/function (_PureComponent) {
305
299
  style: optionalCustomStyles,
306
300
  css: cssStyles,
307
301
  tabIndex: tabIndex,
308
- focusable: focusable,
309
302
  role: "img",
310
303
  title: title,
311
304
  "data-icon-type": iconTitle,
@@ -76,10 +76,9 @@ var EuiImageFullScreenWrapper = function EuiImageFullScreenWrapper(_ref) {
76
76
  var iconStyles = (0, _image_button2.euiImageButtonIconStyles)(euiTheme);
77
77
  var cssIconStyles = [iconStyles.euiImageButton__icon, iconStyles.closeFullScreen];
78
78
  return (0, _react2.jsx)(_overlay_mask.EuiOverlayMask, {
79
- "data-test-subj": "fullScreenOverlayMask",
80
- onClick: closeFullScreen
79
+ "data-test-subj": "fullScreenOverlayMask"
81
80
  }, (0, _react2.jsx)(_focus_trap.EuiFocusTrap, {
82
- clickOutsideDisables: true
81
+ onClickOutside: closeFullScreen
83
82
  }, (0, _react2.jsx)(_react.default.Fragment, null, (0, _react2.jsx)("figure", (0, _extends2.default)({
84
83
  "aria-label": optionalCaptionText
85
84
  }, wrapperProps, {
@@ -33,7 +33,7 @@ var _href_validator = require("../../services/security/href_validator");
33
33
 
34
34
  var _react2 = require("@emotion/react");
35
35
 
36
- var _excluded = ["label", "isActive", "isDisabled", "href", "target", "rel", "className", "iconType", "icon", "iconProps", "extraAction", "onClick", "size", "color", "showToolTip", "wrapText", "buttonRef"],
36
+ var _excluded = ["label", "isActive", "isDisabled", "href", "target", "rel", "className", "iconType", "icon", "iconProps", "extraAction", "onClick", "size", "color", "showToolTip", "wrapText", "buttonRef", "toolTipText"],
37
37
  _excluded2 = ["iconType", "alwaysShow", "className", "isDisabled"];
38
38
 
39
39
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
@@ -81,6 +81,7 @@ var EuiListGroupItem = function EuiListGroupItem(_ref) {
81
81
  showToolTip = _ref$showToolTip === void 0 ? false : _ref$showToolTip,
82
82
  wrapText = _ref.wrapText,
83
83
  buttonRef = _ref.buttonRef,
84
+ toolTipText = _ref.toolTipText,
84
85
  rest = (0, _objectWithoutProperties2.default)(_ref, _excluded);
85
86
 
86
87
  var isHrefValid = !href || (0, _href_validator.validateHref)(href);
@@ -182,7 +183,7 @@ var EuiListGroupItem = function EuiListGroupItem(_ref) {
182
183
  className: classes
183
184
  }, (0, _react2.jsx)(_tool_tip.EuiToolTip, {
184
185
  anchorClassName: "euiListGroupItem__tooltip",
185
- content: label,
186
+ content: toolTipText !== null && toolTipText !== void 0 ? toolTipText : label,
186
187
  position: "right",
187
188
  delay: "long"
188
189
  }, itemContent));
@@ -84,9 +84,7 @@ var EuiModal = function EuiModal(_ref) {
84
84
  color: "text",
85
85
  "aria-label": closeModal
86
86
  });
87
- }), (0, _react2.jsx)("div", {
88
- className: "euiModal__flex"
89
- }, children))));
87
+ }), children)));
90
88
  };
91
89
 
92
90
  exports.EuiModal = EuiModal;
@@ -11,6 +11,8 @@ exports.EuiNotificationEvent = void 0;
11
11
 
12
12
  var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
13
13
 
14
+ var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
15
+
14
16
  var _react = _interopRequireWildcard(require("react"));
15
17
 
16
18
  var _classnames = _interopRequireDefault(require("classnames"));
@@ -31,17 +33,12 @@ var _notification_event_read_icon = require("./notification_event_read_icon");
31
33
 
32
34
  var _react2 = require("@emotion/react");
33
35
 
36
+ var _excluded = ["id", "type", "severity", "badgeColor", "iconType", "iconAriaLabel", "time", "title", "isRead", "primaryAction", "primaryActionProps", "messages", "onRead", "onOpenContextMenu", "onClickTitle", "onClickPrimaryAction", "headingLevel", "className"];
37
+
34
38
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
35
39
 
36
40
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
37
41
 
38
- /*
39
- * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
40
- * or more contributor license agreements. Licensed under the Elastic License
41
- * 2.0 and the Server Side Public License, v 1; you may not use this file except
42
- * in compliance with, at your election, the Elastic License 2.0 or the Server
43
- * Side Public License, v 1.
44
- */
45
42
  var EuiNotificationEvent = function EuiNotificationEvent(_ref) {
46
43
  var id = _ref.id,
47
44
  type = _ref.type,
@@ -60,9 +57,12 @@ var EuiNotificationEvent = function EuiNotificationEvent(_ref) {
60
57
  onClickTitle = _ref.onClickTitle,
61
58
  onClickPrimaryAction = _ref.onClickPrimaryAction,
62
59
  _ref$headingLevel = _ref.headingLevel,
63
- headingLevel = _ref$headingLevel === void 0 ? 'h2' : _ref$headingLevel;
60
+ headingLevel = _ref$headingLevel === void 0 ? 'h2' : _ref$headingLevel,
61
+ className = _ref.className,
62
+ rest = (0, _objectWithoutProperties2.default)(_ref, _excluded);
64
63
  var classes = (0, _classnames.default)('euiNotificationEvent', {
65
- 'euiNotificationEvent--withReadState': typeof isRead === 'boolean'
64
+ 'euiNotificationEvent--withReadState': typeof isRead === 'boolean',
65
+ className: className
66
66
  });
67
67
  var classesTitle = (0, _classnames.default)('euiNotificationEvent__title', {
68
68
  'euiNotificationEvent__title--isRead': isRead
@@ -73,11 +73,11 @@ var EuiNotificationEvent = function EuiNotificationEvent(_ref) {
73
73
  className: classesTitle,
74
74
  'data-test-subj': "".concat(id, "-notificationEventTitle")
75
75
  };
76
- return (0, _react2.jsx)("article", {
76
+ return (0, _react2.jsx)("article", (0, _extends2.default)({
77
77
  "aria-labelledby": randomHeadingId,
78
78
  className: classes,
79
79
  key: id
80
- }, typeof isRead === 'boolean' && (0, _react2.jsx)("div", {
80
+ }, rest), typeof isRead === 'boolean' && (0, _react2.jsx)("div", {
81
81
  className: "euiNotificationEvent__readButton"
82
82
  }, !!onRead ? (0, _react2.jsx)(_notification_event_read_button.EuiNotificationEventReadButton, {
83
83
  isRead: isRead,
@@ -63,7 +63,7 @@ var EuiMutationObserver = /*#__PURE__*/function (_EuiObserver) {
63
63
  exports.EuiMutationObserver = EuiMutationObserver;
64
64
 
65
65
  var makeMutationObserver = function makeMutationObserver(node, _observerOptions, callback) {
66
- // IE11 and the MutationObserver polyfill used in Kibana (for Jest) implement
66
+ // The MutationObserver polyfill used in Kibana (for Jest) implements
67
67
  // an older spec in which specifying `attributeOldValue` or `attributeFilter`
68
68
  // without specifying `attributes` results in a `SyntaxError`.
69
69
  // The following logic patches the newer spec in which `attributes: true` can be