@elastic/eui 88.2.0 → 88.3.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 (371) hide show
  1. package/dist/eui_theme_dark.css +0 -25
  2. package/dist/eui_theme_dark.min.css +1 -1
  3. package/dist/eui_theme_light.css +0 -25
  4. package/dist/eui_theme_light.min.css +1 -1
  5. package/es/components/accordion/accordion.js +35 -208
  6. package/es/components/accordion/accordion.styles.js +3 -95
  7. package/es/components/accordion/accordion_children/accordion_children.js +101 -0
  8. package/es/components/accordion/accordion_children/accordion_children.styles.js +39 -0
  9. package/es/components/accordion/accordion_children/accordion_children_loading.js +31 -0
  10. package/es/components/accordion/accordion_children/index.js +9 -0
  11. package/es/components/accordion/accordion_trigger/accordion_arrow.js +41 -0
  12. package/es/components/accordion/accordion_trigger/accordion_arrow.styles.js +46 -0
  13. package/es/components/accordion/accordion_trigger/accordion_button.js +51 -0
  14. package/es/components/accordion/accordion_trigger/accordion_button.styles.js +26 -0
  15. package/es/components/accordion/accordion_trigger/accordion_trigger.js +87 -0
  16. package/es/components/accordion/accordion_trigger/index.js +9 -0
  17. package/es/components/avatar/avatar.js +1 -1
  18. package/es/components/badge/badge.js +1 -1
  19. package/es/components/badge/beta_badge/beta_badge.js +1 -1
  20. package/es/components/basic_table/basic_table.js +1 -1
  21. package/es/components/basic_table/collapsed_item_actions.js +1 -1
  22. package/es/components/basic_table/in_memory_table.js +1 -1
  23. package/es/components/button/button_display/_button_display.js +1 -1
  24. package/es/components/button/button_display/_button_display_content.js +1 -1
  25. package/es/components/button/button_empty/button_empty.js +1 -1
  26. package/es/components/button/button_group/button_group.js +1 -1
  27. package/es/components/button/button_group/button_group_button.js +1 -1
  28. package/es/components/button/button_icon/button_icon.js +1 -1
  29. package/es/components/call_out/call_out.js +1 -1
  30. package/es/components/card/card.js +1 -1
  31. package/es/components/collapsible_nav/collapsible_nav_group/collapsible_nav_group.js +1 -1
  32. package/es/components/collapsible_nav/collapsible_nav_group/collapsible_nav_group.styles.js +1 -1
  33. package/es/components/collapsible_nav_beta/collapsible_nav_item/collapsed/collapsed_nav_button.js +2 -2
  34. package/es/components/collapsible_nav_beta/collapsible_nav_item/collapsed/collapsed_nav_item.js +2 -2
  35. package/es/components/collapsible_nav_beta/collapsible_nav_item/collapsed/collapsed_nav_popover.js +3 -3
  36. package/es/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_accordion.js +2 -2
  37. package/es/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_accordion.styles.js +1 -1
  38. package/es/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_item.js +3 -3
  39. package/es/components/comment_list/comment.js +2 -2
  40. package/es/components/comment_list/comment_event.js +1 -1
  41. package/es/components/comment_list/comment_list.js +2 -2
  42. package/es/components/comment_list/comment_timeline.js +1 -1
  43. package/es/components/datagrid/body/data_grid_body.js +13 -13
  44. package/es/components/datagrid/body/data_grid_body_custom.js +13 -13
  45. package/es/components/datagrid/body/data_grid_body_virtualized.js +13 -13
  46. package/es/components/datagrid/body/data_grid_cell.js +24 -24
  47. package/es/components/datagrid/body/header/data_grid_header_cell.js +12 -12
  48. package/es/components/datagrid/body/header/data_grid_header_row.js +13 -13
  49. package/es/components/datagrid/controls/column_sorting_draggable.js +1 -1
  50. package/es/components/datagrid/data_grid.js +13 -13
  51. package/es/components/datagrid/utils/in_memory.js +12 -12
  52. package/es/components/date_picker/date_picker.js +2 -2
  53. package/es/components/date_picker/date_picker_range.js +1 -1
  54. package/es/components/empty_prompt/empty_prompt.js +1 -1
  55. package/es/components/facet/facet_button.js +1 -1
  56. package/es/components/form/field_number/field_number.js +1 -1
  57. package/es/components/form/field_text/field_text.js +2 -2
  58. package/es/components/form/form_control_layout/form_control_layout.js +2 -2
  59. package/es/components/form/form_control_layout/form_control_layout_custom_icon.js +1 -1
  60. package/es/components/form/form_control_layout/form_control_layout_icons.js +2 -2
  61. package/es/components/header/header_links/header_link.js +1 -1
  62. package/es/components/header/header_links/header_links.js +1 -1
  63. package/es/components/header/header_logo/header_logo.js +1 -1
  64. package/es/components/header/header_section/header_section_item_button.js +1 -1
  65. package/es/components/icon/assets/grabOmnidirectional.js +33 -0
  66. package/es/components/icon/assets/transitionLeftIn.js +36 -0
  67. package/es/components/icon/assets/transitionLeftOut.js +36 -0
  68. package/es/components/icon/assets/transitionTopIn.js +36 -0
  69. package/es/components/icon/assets/transitionTopOut.js +36 -0
  70. package/es/components/icon/icon.js +1 -1
  71. package/es/components/icon/icon_map.js +5 -0
  72. package/es/components/inline_edit/inline_edit_form.js +49 -13
  73. package/es/components/inline_edit/inline_edit_text.js +22 -23
  74. package/es/components/inline_edit/inline_edit_title.js +22 -23
  75. package/es/components/key_pad_menu/key_pad_menu_item.js +1 -1
  76. package/es/components/list_group/list_group.js +2 -2
  77. package/es/components/list_group/list_group_item.js +3 -3
  78. package/es/components/list_group/list_group_item_extra_action.js +1 -1
  79. package/es/components/list_group/pinnable_list_group/pinnable_list_group.js +4 -4
  80. package/es/components/loading/loading_logo.js +1 -1
  81. package/es/components/markdown_editor/markdown_editor.js +1 -1
  82. package/es/components/markdown_editor/markdown_editor_drop_zone.js +1 -1
  83. package/es/components/markdown_editor/markdown_editor_footer.js +1 -1
  84. package/es/components/markdown_editor/markdown_editor_toolbar.js +1 -1
  85. package/es/components/notification/notification_event.js +2 -2
  86. package/es/components/notification/notification_event_meta.js +1 -1
  87. package/es/components/page/page_header/page_header_content.js +1 -1
  88. package/es/components/pagination/pagination_button.js +1 -1
  89. package/es/components/panel/split_panel/split_panel.js +9 -7
  90. package/es/components/panel/split_panel/split_panel.styles.js +40 -0
  91. package/es/components/selectable/selectable_list/selectable_list.js +1 -1
  92. package/es/components/selectable/selectable_list/selectable_list_item.js +1 -1
  93. package/es/components/selectable/selectable_templates/selectable_template_sitewide.js +1 -1
  94. package/es/components/suggest/suggest.js +1 -1
  95. package/es/components/suggest/suggest_item.js +1 -1
  96. package/es/components/table/table_header_button.js +1 -1
  97. package/es/components/text_truncate/utils.js +1 -1
  98. package/es/components/timeline/timeline_item_icon.js +1 -1
  99. package/es/components/toast/global_toast_list.js +51 -3
  100. package/es/components/toast/global_toast_list.styles.js +3 -2
  101. package/es/components/toast/toast.js +1 -1
  102. package/es/components/tool_tip/icon_tip.js +1 -1
  103. package/eui.d.ts +194 -44
  104. package/i18ntokens.json +60 -24
  105. package/lib/components/accordion/accordion.js +34 -207
  106. package/lib/components/accordion/accordion.styles.js +12 -109
  107. package/lib/components/accordion/accordion_children/accordion_children.js +111 -0
  108. package/lib/components/accordion/accordion_children/accordion_children.styles.js +45 -0
  109. package/lib/components/accordion/accordion_children/accordion_children_loading.js +38 -0
  110. package/lib/components/accordion/accordion_children/index.js +12 -0
  111. package/lib/components/accordion/accordion_trigger/accordion_arrow.js +48 -0
  112. package/lib/components/accordion/accordion_trigger/accordion_arrow.styles.js +51 -0
  113. package/lib/components/accordion/accordion_trigger/accordion_button.js +58 -0
  114. package/lib/components/accordion/accordion_trigger/accordion_button.styles.js +33 -0
  115. package/lib/components/accordion/accordion_trigger/accordion_trigger.js +93 -0
  116. package/lib/components/accordion/accordion_trigger/index.js +12 -0
  117. package/lib/components/avatar/avatar.js +1 -1
  118. package/lib/components/badge/badge.js +1 -1
  119. package/lib/components/badge/beta_badge/beta_badge.js +1 -1
  120. package/lib/components/basic_table/basic_table.js +1 -1
  121. package/lib/components/basic_table/collapsed_item_actions.js +1 -1
  122. package/lib/components/basic_table/in_memory_table.js +1 -1
  123. package/lib/components/button/button_display/_button_display.js +1 -1
  124. package/lib/components/button/button_display/_button_display_content.js +1 -1
  125. package/lib/components/button/button_empty/button_empty.js +1 -1
  126. package/lib/components/button/button_group/button_group.js +1 -1
  127. package/lib/components/button/button_group/button_group_button.js +1 -1
  128. package/lib/components/button/button_icon/button_icon.js +1 -1
  129. package/lib/components/call_out/call_out.js +1 -1
  130. package/lib/components/card/card.js +1 -1
  131. package/lib/components/collapsible_nav/collapsible_nav_group/collapsible_nav_group.js +1 -1
  132. package/lib/components/collapsible_nav/collapsible_nav_group/collapsible_nav_group.styles.js +1 -1
  133. package/lib/components/collapsible_nav_beta/collapsible_nav_item/collapsed/collapsed_nav_button.js +2 -2
  134. package/lib/components/collapsible_nav_beta/collapsible_nav_item/collapsed/collapsed_nav_item.js +2 -2
  135. package/lib/components/collapsible_nav_beta/collapsible_nav_item/collapsed/collapsed_nav_popover.js +3 -3
  136. package/lib/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_accordion.js +2 -2
  137. package/lib/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_accordion.styles.js +1 -1
  138. package/lib/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_item.js +3 -3
  139. package/lib/components/comment_list/comment.js +2 -2
  140. package/lib/components/comment_list/comment_event.js +1 -1
  141. package/lib/components/comment_list/comment_list.js +2 -2
  142. package/lib/components/comment_list/comment_timeline.js +1 -1
  143. package/lib/components/datagrid/body/data_grid_body.js +13 -13
  144. package/lib/components/datagrid/body/data_grid_body_custom.js +13 -13
  145. package/lib/components/datagrid/body/data_grid_body_virtualized.js +13 -13
  146. package/lib/components/datagrid/body/data_grid_cell.js +24 -24
  147. package/lib/components/datagrid/body/header/data_grid_header_cell.js +12 -12
  148. package/lib/components/datagrid/body/header/data_grid_header_row.js +13 -13
  149. package/lib/components/datagrid/controls/column_sorting_draggable.js +1 -1
  150. package/lib/components/datagrid/data_grid.js +13 -13
  151. package/lib/components/datagrid/utils/in_memory.js +12 -12
  152. package/lib/components/date_picker/date_picker.js +2 -2
  153. package/lib/components/date_picker/date_picker_range.js +1 -1
  154. package/lib/components/empty_prompt/empty_prompt.js +1 -1
  155. package/lib/components/facet/facet_button.js +1 -1
  156. package/lib/components/form/field_number/field_number.js +1 -1
  157. package/lib/components/form/field_text/field_text.js +2 -2
  158. package/lib/components/form/form_control_layout/form_control_layout.js +2 -2
  159. package/lib/components/form/form_control_layout/form_control_layout_custom_icon.js +1 -1
  160. package/lib/components/form/form_control_layout/form_control_layout_icons.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/grabOmnidirectional.js +41 -0
  166. package/lib/components/icon/assets/transitionLeftIn.js +44 -0
  167. package/lib/components/icon/assets/transitionLeftOut.js +44 -0
  168. package/lib/components/icon/assets/transitionTopIn.js +44 -0
  169. package/lib/components/icon/assets/transitionTopOut.js +44 -0
  170. package/lib/components/icon/icon.js +1 -1
  171. package/lib/components/icon/icon_map.js +5 -0
  172. package/lib/components/icon/svgs/grabOmnidirectional.svg +3 -0
  173. package/lib/components/icon/svgs/transitionLeftIn.svg +4 -0
  174. package/lib/components/icon/svgs/transitionLeftOut.svg +4 -0
  175. package/lib/components/icon/svgs/transitionTopIn.svg +4 -0
  176. package/lib/components/icon/svgs/transitionTopOut.svg +4 -0
  177. package/lib/components/inline_edit/inline_edit_form.js +58 -20
  178. package/lib/components/inline_edit/inline_edit_text.js +22 -23
  179. package/lib/components/inline_edit/inline_edit_title.js +22 -23
  180. package/lib/components/key_pad_menu/key_pad_menu_item.js +1 -1
  181. package/lib/components/list_group/list_group.js +2 -2
  182. package/lib/components/list_group/list_group_item.js +3 -3
  183. package/lib/components/list_group/list_group_item_extra_action.js +1 -1
  184. package/lib/components/list_group/pinnable_list_group/pinnable_list_group.js +4 -4
  185. package/lib/components/loading/loading_logo.js +1 -1
  186. package/lib/components/markdown_editor/markdown_editor.js +1 -1
  187. package/lib/components/markdown_editor/markdown_editor_drop_zone.js +1 -1
  188. package/lib/components/markdown_editor/markdown_editor_footer.js +1 -1
  189. package/lib/components/markdown_editor/markdown_editor_toolbar.js +1 -1
  190. package/lib/components/notification/notification_event.js +2 -2
  191. package/lib/components/notification/notification_event_meta.js +1 -1
  192. package/lib/components/page/page_header/page_header_content.js +1 -1
  193. package/lib/components/panel/split_panel/split_panel.js +9 -7
  194. package/lib/components/panel/split_panel/split_panel.styles.js +46 -0
  195. package/lib/components/selectable/selectable_list/selectable_list.js +1 -1
  196. package/lib/components/selectable/selectable_list/selectable_list_item.js +1 -1
  197. package/lib/components/selectable/selectable_templates/selectable_template_sitewide.js +1 -1
  198. package/lib/components/suggest/suggest.js +1 -1
  199. package/lib/components/suggest/suggest_item.js +1 -1
  200. package/lib/components/table/table_header_button.js +1 -1
  201. package/lib/components/text_truncate/utils.js +1 -1
  202. package/lib/components/timeline/timeline_item_icon.js +1 -1
  203. package/lib/components/toast/global_toast_list.js +53 -4
  204. package/lib/components/toast/global_toast_list.styles.js +3 -2
  205. package/lib/components/toast/toast.js +1 -1
  206. package/lib/components/tool_tip/icon_tip.js +1 -1
  207. package/optimize/es/components/accordion/accordion.js +35 -203
  208. package/optimize/es/components/accordion/accordion.styles.js +3 -95
  209. package/optimize/es/components/accordion/accordion_children/accordion_children.js +91 -0
  210. package/optimize/es/components/accordion/accordion_children/accordion_children.styles.js +39 -0
  211. package/optimize/es/components/accordion/accordion_children/accordion_children_loading.js +31 -0
  212. package/optimize/es/components/accordion/accordion_children/index.js +9 -0
  213. package/optimize/es/components/accordion/accordion_trigger/accordion_arrow.js +36 -0
  214. package/optimize/es/components/accordion/accordion_trigger/accordion_arrow.styles.js +46 -0
  215. package/optimize/es/components/accordion/accordion_trigger/accordion_button.js +45 -0
  216. package/optimize/es/components/accordion/accordion_trigger/accordion_button.styles.js +26 -0
  217. package/optimize/es/components/accordion/accordion_trigger/accordion_trigger.js +80 -0
  218. package/optimize/es/components/accordion/accordion_trigger/index.js +9 -0
  219. package/optimize/es/components/collapsible_nav/collapsible_nav_group/collapsible_nav_group.styles.js +1 -1
  220. package/optimize/es/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_accordion.styles.js +1 -1
  221. package/optimize/es/components/icon/assets/grabOmnidirectional.js +32 -0
  222. package/optimize/es/components/icon/assets/transitionLeftIn.js +35 -0
  223. package/optimize/es/components/icon/assets/transitionLeftOut.js +35 -0
  224. package/optimize/es/components/icon/assets/transitionTopIn.js +35 -0
  225. package/optimize/es/components/icon/assets/transitionTopOut.js +35 -0
  226. package/optimize/es/components/icon/icon_map.js +5 -0
  227. package/optimize/es/components/inline_edit/inline_edit_form.js +32 -12
  228. package/optimize/es/components/inline_edit/inline_edit_text.js +6 -22
  229. package/optimize/es/components/inline_edit/inline_edit_title.js +6 -22
  230. package/optimize/es/components/list_group/list_group_item.js +1 -1
  231. package/optimize/es/components/panel/split_panel/split_panel.js +9 -7
  232. package/optimize/es/components/panel/split_panel/split_panel.styles.js +40 -0
  233. package/optimize/es/components/text_truncate/utils.js +1 -1
  234. package/optimize/es/components/toast/global_toast_list.js +39 -2
  235. package/optimize/es/components/toast/global_toast_list.styles.js +3 -2
  236. package/optimize/lib/components/accordion/accordion.js +34 -202
  237. package/optimize/lib/components/accordion/accordion.styles.js +12 -109
  238. package/optimize/lib/components/accordion/accordion_children/accordion_children.js +101 -0
  239. package/optimize/lib/components/accordion/accordion_children/accordion_children.styles.js +45 -0
  240. package/optimize/lib/components/accordion/accordion_children/accordion_children_loading.js +38 -0
  241. package/optimize/lib/components/accordion/accordion_children/index.js +12 -0
  242. package/optimize/lib/components/accordion/accordion_trigger/accordion_arrow.js +43 -0
  243. package/optimize/lib/components/accordion/accordion_trigger/accordion_arrow.styles.js +51 -0
  244. package/optimize/lib/components/accordion/accordion_trigger/accordion_button.js +52 -0
  245. package/optimize/lib/components/accordion/accordion_trigger/accordion_button.styles.js +33 -0
  246. package/optimize/lib/components/accordion/accordion_trigger/accordion_trigger.js +86 -0
  247. package/optimize/lib/components/accordion/accordion_trigger/index.js +12 -0
  248. package/optimize/lib/components/collapsible_nav/collapsible_nav_group/collapsible_nav_group.styles.js +1 -1
  249. package/optimize/lib/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_accordion.styles.js +1 -1
  250. package/optimize/lib/components/icon/assets/grabOmnidirectional.js +41 -0
  251. package/optimize/lib/components/icon/assets/transitionLeftIn.js +44 -0
  252. package/optimize/lib/components/icon/assets/transitionLeftOut.js +44 -0
  253. package/optimize/lib/components/icon/assets/transitionTopIn.js +44 -0
  254. package/optimize/lib/components/icon/assets/transitionTopOut.js +44 -0
  255. package/optimize/lib/components/icon/icon_map.js +5 -0
  256. package/optimize/lib/components/icon/svgs/grabOmnidirectional.svg +3 -0
  257. package/optimize/lib/components/icon/svgs/transitionLeftIn.svg +4 -0
  258. package/optimize/lib/components/icon/svgs/transitionLeftOut.svg +4 -0
  259. package/optimize/lib/components/icon/svgs/transitionTopIn.svg +4 -0
  260. package/optimize/lib/components/icon/svgs/transitionTopOut.svg +4 -0
  261. package/optimize/lib/components/inline_edit/inline_edit_form.js +33 -16
  262. package/optimize/lib/components/inline_edit/inline_edit_text.js +6 -22
  263. package/optimize/lib/components/inline_edit/inline_edit_title.js +6 -22
  264. package/optimize/lib/components/list_group/list_group_item.js +1 -1
  265. package/optimize/lib/components/panel/split_panel/split_panel.js +9 -7
  266. package/optimize/lib/components/panel/split_panel/split_panel.styles.js +46 -0
  267. package/optimize/lib/components/text_truncate/utils.js +1 -1
  268. package/optimize/lib/components/toast/global_toast_list.js +41 -3
  269. package/optimize/lib/components/toast/global_toast_list.styles.js +3 -2
  270. package/package.json +3 -3
  271. package/src/components/index.scss +0 -1
  272. package/test-env/components/accordion/accordion.js +34 -202
  273. package/test-env/components/accordion/accordion.styles.js +12 -109
  274. package/test-env/components/accordion/accordion_children/accordion_children.js +105 -0
  275. package/test-env/components/accordion/accordion_children/accordion_children.styles.js +45 -0
  276. package/test-env/components/accordion/accordion_children/accordion_children_loading.js +38 -0
  277. package/test-env/components/accordion/accordion_children/index.js +12 -0
  278. package/test-env/components/accordion/accordion_trigger/accordion_arrow.js +47 -0
  279. package/test-env/components/accordion/accordion_trigger/accordion_arrow.styles.js +51 -0
  280. package/test-env/components/accordion/accordion_trigger/accordion_button.js +52 -0
  281. package/test-env/components/accordion/accordion_trigger/accordion_button.styles.js +33 -0
  282. package/test-env/components/accordion/accordion_trigger/accordion_trigger.js +93 -0
  283. package/test-env/components/accordion/accordion_trigger/index.js +12 -0
  284. package/test-env/components/avatar/avatar.js +1 -1
  285. package/test-env/components/badge/badge.js +1 -1
  286. package/test-env/components/badge/beta_badge/beta_badge.js +1 -1
  287. package/test-env/components/basic_table/basic_table.js +1 -1
  288. package/test-env/components/basic_table/collapsed_item_actions.js +1 -1
  289. package/test-env/components/basic_table/in_memory_table.js +1 -1
  290. package/test-env/components/button/button_display/_button_display.js +1 -1
  291. package/test-env/components/button/button_display/_button_display_content.js +1 -1
  292. package/test-env/components/button/button_empty/button_empty.js +1 -1
  293. package/test-env/components/button/button_group/button_group.js +1 -1
  294. package/test-env/components/button/button_group/button_group_button.js +1 -1
  295. package/test-env/components/button/button_icon/button_icon.js +1 -1
  296. package/test-env/components/call_out/call_out.js +1 -1
  297. package/test-env/components/card/card.js +1 -1
  298. package/test-env/components/collapsible_nav/collapsible_nav_group/collapsible_nav_group.js +1 -1
  299. package/test-env/components/collapsible_nav/collapsible_nav_group/collapsible_nav_group.styles.js +1 -1
  300. package/test-env/components/collapsible_nav_beta/collapsible_nav_item/collapsed/collapsed_nav_button.js +2 -2
  301. package/test-env/components/collapsible_nav_beta/collapsible_nav_item/collapsed/collapsed_nav_item.js +2 -2
  302. package/test-env/components/collapsible_nav_beta/collapsible_nav_item/collapsed/collapsed_nav_popover.js +3 -3
  303. package/test-env/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_accordion.js +2 -2
  304. package/test-env/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_accordion.styles.js +1 -1
  305. package/test-env/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_item.js +3 -3
  306. package/test-env/components/comment_list/comment.js +2 -2
  307. package/test-env/components/comment_list/comment_event.js +1 -1
  308. package/test-env/components/comment_list/comment_list.js +2 -2
  309. package/test-env/components/comment_list/comment_timeline.js +1 -1
  310. package/test-env/components/datagrid/body/data_grid_body.js +13 -13
  311. package/test-env/components/datagrid/body/data_grid_body_custom.js +13 -13
  312. package/test-env/components/datagrid/body/data_grid_body_virtualized.js +13 -13
  313. package/test-env/components/datagrid/body/data_grid_cell.js +24 -24
  314. package/test-env/components/datagrid/body/header/data_grid_header_cell.js +12 -12
  315. package/test-env/components/datagrid/body/header/data_grid_header_row.js +13 -13
  316. package/test-env/components/datagrid/controls/column_sorting_draggable.js +1 -1
  317. package/test-env/components/datagrid/data_grid.js +13 -13
  318. package/test-env/components/datagrid/utils/in_memory.js +12 -12
  319. package/test-env/components/date_picker/date_picker.js +2 -2
  320. package/test-env/components/date_picker/date_picker_range.js +1 -1
  321. package/test-env/components/empty_prompt/empty_prompt.js +1 -1
  322. package/test-env/components/facet/facet_button.js +1 -1
  323. package/test-env/components/form/field_number/field_number.js +1 -1
  324. package/test-env/components/form/field_text/field_text.js +2 -2
  325. package/test-env/components/form/form_control_layout/form_control_layout.js +2 -2
  326. package/test-env/components/form/form_control_layout/form_control_layout_custom_icon.js +1 -1
  327. package/test-env/components/form/form_control_layout/form_control_layout_icons.js +2 -2
  328. package/test-env/components/header/header_links/header_link.js +1 -1
  329. package/test-env/components/header/header_links/header_links.js +1 -1
  330. package/test-env/components/header/header_logo/header_logo.js +1 -1
  331. package/test-env/components/header/header_section/header_section_item_button.js +1 -1
  332. package/test-env/components/icon/assets/grabOmnidirectional.js +41 -0
  333. package/test-env/components/icon/assets/transitionLeftIn.js +44 -0
  334. package/test-env/components/icon/assets/transitionLeftOut.js +44 -0
  335. package/test-env/components/icon/assets/transitionTopIn.js +44 -0
  336. package/test-env/components/icon/assets/transitionTopOut.js +44 -0
  337. package/test-env/components/icon/icon_map.js +5 -0
  338. package/test-env/components/inline_edit/inline_edit_form.js +49 -17
  339. package/test-env/components/inline_edit/inline_edit_text.js +22 -23
  340. package/test-env/components/inline_edit/inline_edit_title.js +22 -23
  341. package/test-env/components/key_pad_menu/key_pad_menu_item.js +1 -1
  342. package/test-env/components/list_group/list_group.js +2 -2
  343. package/test-env/components/list_group/list_group_item.js +3 -3
  344. package/test-env/components/list_group/list_group_item_extra_action.js +1 -1
  345. package/test-env/components/list_group/pinnable_list_group/pinnable_list_group.js +4 -4
  346. package/test-env/components/loading/loading_logo.js +1 -1
  347. package/test-env/components/markdown_editor/markdown_editor.js +1 -1
  348. package/test-env/components/markdown_editor/markdown_editor_drop_zone.js +1 -1
  349. package/test-env/components/markdown_editor/markdown_editor_footer.js +1 -1
  350. package/test-env/components/markdown_editor/markdown_editor_toolbar.js +1 -1
  351. package/test-env/components/notification/notification_event.js +2 -2
  352. package/test-env/components/notification/notification_event_meta.js +1 -1
  353. package/test-env/components/page/page_header/page_header_content.js +1 -1
  354. package/test-env/components/panel/split_panel/split_panel.js +9 -7
  355. package/test-env/components/panel/split_panel/split_panel.styles.js +46 -0
  356. package/test-env/components/selectable/selectable_list/selectable_list.js +1 -1
  357. package/test-env/components/selectable/selectable_list/selectable_list_item.js +1 -1
  358. package/test-env/components/selectable/selectable_templates/selectable_template_sitewide.js +1 -1
  359. package/test-env/components/suggest/suggest.js +1 -1
  360. package/test-env/components/suggest/suggest_item.js +1 -1
  361. package/test-env/components/table/table_header_button.js +1 -1
  362. package/test-env/components/text_truncate/utils.js +1 -1
  363. package/test-env/components/timeline/timeline_item_icon.js +1 -1
  364. package/test-env/components/toast/global_toast_list.js +53 -4
  365. package/test-env/components/toast/global_toast_list.styles.js +3 -2
  366. package/test-env/components/toast/toast.js +1 -1
  367. package/test-env/components/tool_tip/icon_tip.js +1 -1
  368. package/src/components/panel/_index.scss +0 -1
  369. package/src/components/panel/_panel.scss +0 -9
  370. package/src/components/panel/split_panel/_index.scss +0 -1
  371. package/src/components/panel/split_panel/_split_panel.scss +0 -21
@@ -0,0 +1,46 @@
1
+ function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
2
+ /*
3
+ * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
4
+ * or more contributor license agreements. Licensed under the Elastic License
5
+ * 2.0 and the Server Side Public License, v 1; you may not use this file except
6
+ * in compliance with, at your election, the Elastic License 2.0 or the Server
7
+ * Side Public License, v 1.
8
+ */
9
+
10
+ import { css } from '@emotion/react';
11
+ import { logicalCSS } from '../../../global_styling';
12
+ var _ref = process.env.NODE_ENV === "production" ? {
13
+ name: "pbbcf-isOpen",
14
+ styles: "transform:rotate(90deg)!important;label:isOpen;"
15
+ } : {
16
+ name: "pbbcf-isOpen",
17
+ styles: "transform:rotate(90deg)!important;label:isOpen;",
18
+ toString: _EMOTION_STRINGIFIED_CSS_ERROR__
19
+ };
20
+ var _ref2 = process.env.NODE_ENV === "production" ? {
21
+ name: "67rr15-isClosed",
22
+ styles: "transform:rotate(0deg)!important;label:isClosed;"
23
+ } : {
24
+ name: "67rr15-isClosed",
25
+ styles: "transform:rotate(0deg)!important;label:isClosed;",
26
+ toString: _EMOTION_STRINGIFIED_CSS_ERROR__
27
+ };
28
+ var _ref3 = process.env.NODE_ENV === "production" ? {
29
+ name: "ixe809-euiAccordion__arrow",
30
+ styles: "flex-shrink:0;label:euiAccordion__arrow;"
31
+ } : {
32
+ name: "ixe809-euiAccordion__arrow",
33
+ styles: "flex-shrink:0;label:euiAccordion__arrow;",
34
+ toString: _EMOTION_STRINGIFIED_CSS_ERROR__
35
+ };
36
+ export var euiAccordionArrowStyles = function euiAccordionArrowStyles(_ref4) {
37
+ var euiTheme = _ref4.euiTheme;
38
+ return {
39
+ euiAccordion__arrow: _ref3,
40
+ left: /*#__PURE__*/css(logicalCSS('margin-right', euiTheme.size.xs), ";;label:left;"),
41
+ right: /*#__PURE__*/css(logicalCSS('margin-left', euiTheme.size.xs), ";;label:right;"),
42
+ // !important overrides EuiButtonIcon's default transforms
43
+ isClosed: _ref2,
44
+ isOpen: _ref
45
+ };
46
+ };
@@ -0,0 +1,45 @@
1
+ import _extends from "@babel/runtime/helpers/extends";
2
+ import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
3
+ import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
4
+ var _excluded = ["buttonElement", "buttonProps", "buttonClassName", "buttonContentClassName", "isDisabled", "arrowDisplay", "children"],
5
+ _excluded2 = ["paddingSize"];
6
+ /*
7
+ * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
8
+ * or more contributor license agreements. Licensed under the Elastic License
9
+ * 2.0 and the Server Side Public License, v 1; you may not use this file except
10
+ * in compliance with, at your election, the Elastic License 2.0 or the Server
11
+ * Side Public License, v 1.
12
+ */
13
+
14
+ import React from 'react';
15
+ import classNames from 'classnames';
16
+ import { useEuiTheme } from '../../../services';
17
+ import { euiAccordionButtonStyles } from './accordion_button.styles';
18
+ import { jsx as ___EmotionJSX } from "@emotion/react";
19
+ export var EuiAccordionButton = function EuiAccordionButton(_ref) {
20
+ var ButtonElement = _ref.buttonElement,
21
+ _buttonProps = _ref.buttonProps,
22
+ buttonClassName = _ref.buttonClassName,
23
+ buttonContentClassName = _ref.buttonContentClassName,
24
+ isDisabled = _ref.isDisabled,
25
+ arrowDisplay = _ref.arrowDisplay,
26
+ children = _ref.children,
27
+ rest = _objectWithoutProperties(_ref, _excluded);
28
+ var _ref2 = _buttonProps || {},
29
+ paddingSize = _ref2.paddingSize,
30
+ buttonProps = _objectWithoutProperties(_ref2, _excluded2);
31
+ var classes = classNames('euiAccordion__button', buttonClassName, buttonProps.className);
32
+ var buttonContentClasses = classNames('euiAccordion__buttonContent', buttonContentClassName);
33
+ var euiTheme = useEuiTheme();
34
+ var styles = euiAccordionButtonStyles(euiTheme);
35
+ var cssStyles = [styles.euiAccordion__button, isDisabled && styles.disabled].concat(_toConsumableArray(paddingSize ? [styles[paddingSize], arrowDisplay === 'left' && styles.arrowLeft, arrowDisplay === 'right' && styles.arrowRight] : []), [buttonProps.css]);
36
+ var elementIsButton = ButtonElement === 'button';
37
+ return ___EmotionJSX(ButtonElement, _extends({}, buttonProps, rest, {
38
+ className: classes,
39
+ css: cssStyles,
40
+ type: elementIsButton ? 'button' : undefined,
41
+ disabled: elementIsButton ? isDisabled : undefined
42
+ }), ___EmotionJSX("span", {
43
+ className: buttonContentClasses
44
+ }, children));
45
+ };
@@ -0,0 +1,26 @@
1
+ /*
2
+ * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
3
+ * or more contributor license agreements. Licensed under the Elastic License
4
+ * 2.0 and the Server Side Public License, v 1; you may not use this file except
5
+ * in compliance with, at your election, the Elastic License 2.0 or the Server
6
+ * Side Public License, v 1.
7
+ */
8
+
9
+ import { css } from '@emotion/react';
10
+ import { euiFontSize, logicalCSS, logicalTextAlignCSS } from '../../../global_styling';
11
+ export var euiAccordionButtonStyles = function euiAccordionButtonStyles(euiThemeContext) {
12
+ var euiTheme = euiThemeContext.euiTheme;
13
+ return {
14
+ euiAccordion__button: /*#__PURE__*/css(euiFontSize(euiThemeContext, 's'), " align-items:center;display:flex;flex-grow:1;line-height:", euiTheme.size.l, ";", logicalTextAlignCSS('left'), " ", logicalCSS('width', '100%'), " &:hover,&:focus{cursor:pointer;text-decoration:underline;};label:euiAccordion__button;"),
15
+ // Triggering button needs separate `disabled` key because the element that renders may not support `:disabled`;
16
+ // Hover pseudo selector for specificity
17
+ disabled: /*#__PURE__*/css("&,&:hover{cursor:not-allowed;color:", euiTheme.colors.disabledText, ";text-decoration:none;};label:disabled;"),
18
+ // Optional padding sizes
19
+ s: /*#__PURE__*/css("padding:", euiTheme.size.s, ";;label:s;"),
20
+ m: /*#__PURE__*/css("padding:", euiTheme.size.base, ";;label:m;"),
21
+ l: /*#__PURE__*/css("padding:", euiTheme.size.l, ";;label:l;"),
22
+ // Remove padding from the accordion button on the side that the arrow is on
23
+ arrowLeft: /*#__PURE__*/css(logicalCSS('padding-left', 0), ";;label:arrowLeft;"),
24
+ arrowRight: /*#__PURE__*/css(logicalCSS('padding-right', 0), ";;label:arrowRight;")
25
+ };
26
+ };
@@ -0,0 +1,80 @@
1
+ function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
2
+ /*
3
+ * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
4
+ * or more contributor license agreements. Licensed under the Elastic License
5
+ * 2.0 and the Server Side Public License, v 1; you may not use this file except
6
+ * in compliance with, at your election, the Elastic License 2.0 or the Server
7
+ * Side Public License, v 1.
8
+ */
9
+
10
+ import React from 'react';
11
+ import { EuiAccordionButton } from './accordion_button';
12
+ import { EuiAccordionArrow } from './accordion_arrow';
13
+ import { jsx as ___EmotionJSX } from "@emotion/react";
14
+ var _ref2 = process.env.NODE_ENV === "production" ? {
15
+ name: "7vgam2-euiAccordion-optionalAction",
16
+ styles: "flex-shrink:0;label:euiAccordion;label:optionalAction;"
17
+ } : {
18
+ name: "7vgam2-euiAccordion-optionalAction",
19
+ styles: "flex-shrink:0;label:euiAccordion;label:optionalAction;",
20
+ toString: _EMOTION_STRINGIFIED_CSS_ERROR__
21
+ };
22
+ var _ref3 = process.env.NODE_ENV === "production" ? {
23
+ name: "osepuu-EuiAccordionTrigger",
24
+ styles: "display:flex;align-items:center;label:EuiAccordionTrigger;"
25
+ } : {
26
+ name: "osepuu-EuiAccordionTrigger",
27
+ styles: "display:flex;align-items:center;label:EuiAccordionTrigger;",
28
+ toString: _EMOTION_STRINGIFIED_CSS_ERROR__
29
+ };
30
+ export var EuiAccordionTrigger = function EuiAccordionTrigger(_ref) {
31
+ var _arrowDisplay = _ref.arrowDisplay,
32
+ arrowProps = _ref.arrowProps,
33
+ _ref$buttonElement = _ref.buttonElement,
34
+ buttonElement = _ref$buttonElement === void 0 ? 'button' : _ref$buttonElement,
35
+ buttonProps = _ref.buttonProps,
36
+ buttonClassName = _ref.buttonClassName,
37
+ buttonContent = _ref.buttonContent,
38
+ buttonContentClassName = _ref.buttonContentClassName,
39
+ buttonId = _ref.buttonId,
40
+ ariaControlsId = _ref.ariaControlsId,
41
+ isDisabled = _ref.isDisabled,
42
+ isOpen = _ref.isOpen,
43
+ onToggle = _ref.onToggle,
44
+ extraAction = _ref.extraAction;
45
+ // Force visibility of arrow button icon if button element is not interactive
46
+ var buttonIsInteractive = buttonElement === 'button';
47
+ var arrowDisplay = _arrowDisplay === 'none' && !buttonIsInteractive ? 'left' : _arrowDisplay;
48
+ var arrow = ___EmotionJSX(EuiAccordionArrow, {
49
+ arrowDisplay: arrowDisplay,
50
+ arrowProps: arrowProps,
51
+ isOpen: isOpen,
52
+ onClick: onToggle,
53
+ isDisabled: isDisabled,
54
+ "aria-controls": ariaControlsId,
55
+ "aria-expanded": isOpen,
56
+ "aria-labelledby": buttonId,
57
+ tabIndex: buttonIsInteractive ? -1 : 0
58
+ });
59
+ var button = ___EmotionJSX(EuiAccordionButton, {
60
+ buttonElement: buttonElement,
61
+ buttonProps: buttonProps,
62
+ buttonClassName: buttonClassName,
63
+ buttonContentClassName: buttonContentClassName,
64
+ arrowDisplay: arrowDisplay,
65
+ isDisabled: isDisabled,
66
+ id: buttonId,
67
+ "aria-controls": ariaControlsId,
68
+ "aria-expanded": buttonIsInteractive ? isOpen : undefined // `aria-expanded` is only a valid attribute on interactive controls - axe-core throws a violation otherwise
69
+ ,
70
+ onClick: isDisabled ? undefined : onToggle
71
+ }, buttonContent);
72
+ var optionalAction = extraAction && ___EmotionJSX("div", {
73
+ className: "euiAccordion__optionalAction",
74
+ css: _ref2
75
+ }, extraAction);
76
+ return ___EmotionJSX("div", {
77
+ className: "euiAccordion__triggerWrapper",
78
+ css: _ref3
79
+ }, arrowDisplay === 'left' && arrow, button, optionalAction, arrowDisplay === 'right' && arrow);
80
+ };
@@ -0,0 +1,9 @@
1
+ /*
2
+ * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
3
+ * or more contributor license agreements. Licensed under the Elastic License
4
+ * 2.0 and the Server Side Public License, v 1; you may not use this file except
5
+ * in compliance with, at your election, the Elastic License 2.0 or the Server
6
+ * Side Public License, v 1.
7
+ */
8
+
9
+ export { EuiAccordionTrigger } from './accordion_trigger';
@@ -17,7 +17,7 @@ export var euiCollapsibleNavGroupStyles = function euiCollapsibleNavGroupStyles(
17
17
  // Background colors
18
18
  none: /*#__PURE__*/css(";label:none;"),
19
19
  light: /*#__PURE__*/css("background-color:", euiTheme.colors.body, ";;label:light;"),
20
- dark: /*#__PURE__*/css("background-color:", colorMode === 'DARK' ? shade(euiTheme.colors.lightestShade, 0.5) : shade(euiTheme.colors.darkestShade, 0.2), ";.euiCollapsibleNavGroup__title,.euiCollapsibleNavGroup__heading,.euiAccordion__iconButton{color:", euiTheme.colors.ghost, ";};label:dark;"),
20
+ dark: /*#__PURE__*/css("background-color:", colorMode === 'DARK' ? shade(euiTheme.colors.lightestShade, 0.5) : shade(euiTheme.colors.darkestShade, 0.2), ";.euiCollapsibleNavGroup__title,.euiCollapsibleNavGroup__heading,.euiAccordion__arrow{color:", euiTheme.colors.ghost, ";};label:dark;"),
21
21
  // Header padding
22
22
  isCollapsible: /*#__PURE__*/css(".euiAccordion__triggerWrapper{padding:", euiTheme.size.base, ";};label:isCollapsible;"),
23
23
  notCollapsible: /*#__PURE__*/css(".euiCollapsibleNavGroup__heading{padding:", euiTheme.size.base, ";};label:notCollapsible;"),
@@ -20,7 +20,7 @@ export var euiCollapsibleNavAccordionStyles = function euiCollapsibleNavAccordio
20
20
  isSelected: /*#__PURE__*/css("&>.euiAccordion__triggerWrapper{background-color:", sharedStyles.backgroundSelectedColor, ";&:hover{background-color:", sharedStyles.backgroundSelectedColor, ";}};label:isSelected;"),
21
21
  isSubItem: /*#__PURE__*/css("&.euiAccordion-isOpen{", logicalCSS('margin-bottom', euiTheme.size.m), ";};label:isSubItem;"),
22
22
  // Arrow element
23
- euiCollapsibleNavAccordion__arrow: /*#__PURE__*/css(logicalCSS('margin-right', euiTheme.size.xs), euiCanAnimate, "{transition:background-color ", sharedStyles.animation, ";}&:hover,&:focus-visible{background-color:", euiTheme.colors.lightShade, ";&>.euiIcon{color:", sharedStyles.color, ";}}transform:none!important;&>.euiIcon{color:", sharedStyles.rightIconColor, ";transform:rotate(90deg);", euiCanAnimate, "{transition:transform ", sharedStyles.animation, ",color ", sharedStyles.animation, ";}}&.euiAccordion__iconButton-isOpen>.euiIcon{color:", sharedStyles.color, ";transform:rotate(-90deg);};label:euiCollapsibleNavAccordion__arrow;"),
23
+ euiCollapsibleNavAccordion__arrow: /*#__PURE__*/css(logicalCSS('margin-right', euiTheme.size.xs), euiCanAnimate, "{transition:background-color ", sharedStyles.animation, ";}&:hover,&:focus-visible{background-color:", euiTheme.colors.lightShade, ";&>.euiIcon{color:", sharedStyles.color, ";}}transform:none!important;&>.euiIcon{color:", sharedStyles.rightIconColor, ";transform:rotate(90deg);", euiCanAnimate, "{transition:transform ", sharedStyles.animation, ",color ", sharedStyles.animation, ";}}&.euiAccordion__arrow[aria-expanded='true']>.euiIcon{color:", sharedStyles.color, ";transform:rotate(-90deg);};label:euiCollapsibleNavAccordion__arrow;"),
24
24
  // Children wrapper
25
25
  children: {
26
26
  euiCollapsibleNavAccordion__children: /*#__PURE__*/css(";label:euiCollapsibleNavAccordion__children;"),
@@ -0,0 +1,32 @@
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 EuiIconGrabOmnidirectional = function EuiIconGrabOmnidirectional(_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: "M6 5a1 1 0 1 0 0-2 1 1 0 0 0 0 2Zm4 0a1 1 0 1 0 0-2 1 1 0 0 0 0 2ZM7 8a1 1 0 1 1-2 0 1 1 0 0 1 2 0Zm3 1a1 1 0 1 0 0-2 1 1 0 0 0 0 2Zm-3 3a1 1 0 1 1-2 0 1 1 0 0 1 2 0Zm3 1a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z"
30
+ }));
31
+ };
32
+ export var icon = EuiIconGrabOmnidirectional;
@@ -0,0 +1,35 @@
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 EuiIconTransitionLeftIn = function EuiIconTransitionLeftIn(_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: "M10.146 5.854a.5.5 0 0 1 .708-.708l2 2a.5.5 0 0 1 0 .708l-2 2a.5.5 0 0 1-.708-.708L11.293 8H7.5a.5.5 0 0 1 0-1h3.793l-1.147-1.146Z"
30
+ }), ___EmotionJSX("path", {
31
+ fillRule: "evenodd",
32
+ d: "M2 0h11a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V2a2 2 0 0 1 2-2Zm2.707 1H5v1.293l-4 4V4.707L4.707 1ZM6 14V1h7a1 1 0 0 1 1 1v11a1 1 0 0 1-1 1H6Zm-1-1.293V14H3.707L5 12.707Zm0-3v1.586L2.293 14H2a1 1 0 0 1-.838-.454L5 9.707Zm0-3v1.586l-4 4v-1.586l4-4Zm0-3v1.586l-4 4V7.707l4-4ZM3.293 1H2a1 1 0 0 0-1 1v1.293L3.293 1Z"
33
+ }));
34
+ };
35
+ export var icon = EuiIconTransitionLeftIn;
@@ -0,0 +1,35 @@
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 EuiIconTransitionLeftOut = function EuiIconTransitionLeftOut(_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: "M9.854 5.854a.5.5 0 0 0-.708-.708l-2 2a.5.5 0 0 0 0 .708l2 2a.5.5 0 0 0 .708-.708L8.707 8H12.5a.5.5 0 0 0 0-1H8.707l1.147-1.146Z"
30
+ }), ___EmotionJSX("path", {
31
+ fillRule: "evenodd",
32
+ d: "M2 0h11a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V2a2 2 0 0 1 2-2Zm2.707 1H5v1.293l-4 4V4.707L4.707 1ZM6 14V1h7a1 1 0 0 1 1 1v11a1 1 0 0 1-1 1H6Zm-1-1.293V14H3.707L5 12.707Zm0-3v1.586L2.293 14H2a1 1 0 0 1-.838-.454L5 9.707Zm0-3v1.586l-4 4v-1.586l4-4Zm0-3v1.586l-4 4V7.707l4-4ZM3.293 1H2a1 1 0 0 0-1 1v1.293L3.293 1Z"
33
+ }));
34
+ };
35
+ export var icon = EuiIconTransitionLeftOut;
@@ -0,0 +1,35 @@
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 EuiIconTransitionTopIn = function EuiIconTransitionTopIn(_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: "M9.146 10.146a.5.5 0 0 1 .708.708l-2 2a.5.5 0 0 1-.708 0l-2-2a.5.5 0 0 1 .708-.708L7 11.293V7.5a.5.5 0 0 1 1 0v3.793l1.146-1.147Z"
30
+ }), ___EmotionJSX("path", {
31
+ fillRule: "evenodd",
32
+ d: "M15 2v11a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V2a2 2 0 0 1 2-2h11a2 2 0 0 1 2 2Zm-1 2.707V5h-1.293l-4-4h1.586L14 4.707ZM1 6h13v7a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1V6Zm1.293-1H1V3.707L2.293 5Zm3 0H3.707L1 2.293V2a1 1 0 0 1 .455-.838L5.293 5Zm3 0H6.707l-4-4h1.586l4 4Zm3 0H9.707l-4-4h1.586l4 4ZM14 3.293V2a1 1 0 0 0-1-1h-1.293L14 3.293Z"
33
+ }));
34
+ };
35
+ export var icon = EuiIconTransitionTopIn;
@@ -0,0 +1,35 @@
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 EuiIconTransitionTopOut = function EuiIconTransitionTopOut(_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: "M9.146 9.854a.5.5 0 0 0 .708-.708l-2-2a.5.5 0 0 0-.708 0l-2 2a.5.5 0 1 0 .708.708L7 8.707V12.5a.5.5 0 0 0 1 0V8.707l1.146 1.147Z"
30
+ }), ___EmotionJSX("path", {
31
+ fillRule: "evenodd",
32
+ d: "M15 2v11a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V2a2 2 0 0 1 2-2h11a2 2 0 0 1 2 2Zm-1 2.707V5h-1.293l-4-4h1.586L14 4.707ZM1 6h13v7a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1V6Zm1.293-1H1V3.707L2.293 5Zm3 0H3.707L1 2.293V2a1 1 0 0 1 .455-.838L5.293 5Zm3 0H6.707l-4-4h1.586l4 4Zm3 0H9.707l-4-4h1.586l4 4ZM14 3.293V2a1 1 0 0 0-1-1h-1.293L14 3.293Z"
33
+ }));
34
+ };
35
+ export var icon = EuiIconTransitionTopOut;
@@ -160,6 +160,7 @@ export var typeToPathMap = {
160
160
  globe: 'globe',
161
161
  grab: 'grab',
162
162
  grabHorizontal: 'grab_horizontal',
163
+ grabOmnidirectional: 'grabOmnidirectional',
163
164
  graphApp: 'app_graph',
164
165
  grid: 'grid',
165
166
  grokApp: 'app_grok',
@@ -389,6 +390,10 @@ export var typeToPathMap = {
389
390
  timeRefresh: 'timeRefresh',
390
391
  timeslider: 'timeslider',
391
392
  training: 'training',
393
+ transitionLeftIn: 'transitionLeftIn',
394
+ transitionLeftOut: 'transitionLeftOut',
395
+ transitionTopIn: 'transitionTopIn',
396
+ transitionTopOut: 'transitionTopOut',
392
397
  trash: 'trash',
393
398
  unfold: 'unfold',
394
399
  unlink: 'unlink',
@@ -1,6 +1,8 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
2
  import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
3
3
  import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
4
+ import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
5
+ var _excluded = ["className", "children", "sizes", "defaultValue", "value", "onChange", "onCancel", "placeholder", "inputAriaLabel", "startWithEditOpen", "readModeProps", "editModeProps", "isLoading", "isInvalid", "onSave", "isReadOnly"];
4
6
  import _regeneratorRuntime from "@babel/runtime/regenerator";
5
7
  /*
6
8
  * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
@@ -10,7 +12,7 @@ import _regeneratorRuntime from "@babel/runtime/regenerator";
10
12
  * Side Public License, v 1.
11
13
  */
12
14
 
13
- import React, { useState, useRef, useEffect } from 'react';
15
+ import React, { useState, useRef, useEffect, useMemo } from 'react';
14
16
  import classNames from 'classnames';
15
17
  import { EuiFormRow, EuiFieldText } from '../form';
16
18
  import { euiFormVariables } from '../form/form.styles';
@@ -41,8 +43,14 @@ export var EuiInlineEditForm = function EuiInlineEditForm(_ref) {
41
43
  var className = _ref.className,
42
44
  children = _ref.children,
43
45
  sizes = _ref.sizes,
44
- defaultValue = _ref.defaultValue,
45
- placeholder = _ref.placeholder,
46
+ _ref$defaultValue = _ref.defaultValue,
47
+ defaultValue = _ref$defaultValue === void 0 ? '' : _ref$defaultValue,
48
+ _ref$value = _ref.value,
49
+ controlledValue = _ref$value === void 0 ? '' : _ref$value,
50
+ _onChange = _ref.onChange,
51
+ onCancel = _ref.onCancel,
52
+ _ref$placeholder = _ref.placeholder,
53
+ placeholder = _ref$placeholder === void 0 ? '' : _ref$placeholder,
46
54
  inputAriaLabel = _ref.inputAriaLabel,
47
55
  startWithEditOpen = _ref.startWithEditOpen,
48
56
  readModeProps = _ref.readModeProps,
@@ -51,7 +59,8 @@ export var EuiInlineEditForm = function EuiInlineEditForm(_ref) {
51
59
  isLoading = _ref$isLoading === void 0 ? false : _ref$isLoading,
52
60
  isInvalid = _ref.isInvalid,
53
61
  onSave = _ref.onSave,
54
- isReadOnly = _ref.isReadOnly;
62
+ isReadOnly = _ref.isReadOnly,
63
+ rest = _objectWithoutProperties(_ref, _excluded);
55
64
  var classes = classNames('euiInlineEdit', className);
56
65
  var euiTheme = useEuiTheme();
57
66
  var _euiFormVariables = euiFormVariables(euiTheme),
@@ -78,10 +87,19 @@ export var EuiInlineEditForm = function EuiInlineEditForm(_ref) {
78
87
  _useState4 = _slicedToArray(_useState3, 2),
79
88
  editModeValue = _useState4[0],
80
89
  setEditModeValue = _useState4[1];
81
- var _useState5 = useState(defaultValue),
90
+
91
+ // readModeValue accepts controlledValue here to provide a reliable backup for the onCancel callback
92
+ var _useState5 = useState(controlledValue || defaultValue),
82
93
  _useState6 = _slicedToArray(_useState5, 2),
83
94
  readModeValue = _useState6[0],
84
95
  setReadModeValue = _useState6[1];
96
+ var value = useMemo(function () {
97
+ if (controlledValue) {
98
+ return controlledValue;
99
+ } else {
100
+ return isEditing ? editModeValue : readModeValue || placeholder;
101
+ }
102
+ }, [controlledValue, editModeValue, readModeValue, isEditing, placeholder]);
85
103
  var readModeStyles = euiInlineEditReadModeStyles(euiTheme);
86
104
  var readModeCssStyles = [readModeStyles.euiInlineEditReadMode, isReadOnly && readModeStyles.isReadOnly, placeholder && !readModeValue && readModeStyles.hasPlaceholder];
87
105
  var activateEditMode = function activateEditMode() {
@@ -94,6 +112,7 @@ export var EuiInlineEditForm = function EuiInlineEditForm(_ref) {
94
112
  };
95
113
  var cancelInlineEdit = function cancelInlineEdit() {
96
114
  setEditModeValue(readModeValue);
115
+ onCancel === null || onCancel === void 0 ? void 0 : onCancel(readModeValue);
97
116
  setIsEditing(false);
98
117
  requestAnimationFrame(function () {
99
118
  var _readModeFocusRef$cur;
@@ -110,7 +129,7 @@ export var EuiInlineEditForm = function EuiInlineEditForm(_ref) {
110
129
  _context.next = 12;
111
130
  break;
112
131
  }
113
- onSaveReturn = onSave(editModeValue);
132
+ onSaveReturn = onSave(value);
114
133
  if (!(onSaveReturn instanceof Promise)) {
115
134
  _context.next = 8;
116
135
  break;
@@ -174,18 +193,19 @@ export var EuiInlineEditForm = function EuiInlineEditForm(_ref) {
174
193
  error: isInvalid && (editModeProps === null || editModeProps === void 0 ? void 0 : (_editModeProps$formRo = editModeProps.formRowProps) === null || _editModeProps$formRo === void 0 ? void 0 : _editModeProps$formRo.error)
175
194
  }, editModeProps === null || editModeProps === void 0 ? void 0 : editModeProps.formRowProps), ___EmotionJSX(EuiFieldText, _extends({
176
195
  fullWidth: true,
177
- value: editModeValue,
196
+ value: value,
178
197
  "aria-label": inputAriaLabel,
179
198
  compressed: sizes.compressed,
180
199
  isInvalid: isInvalid,
181
200
  isLoading: isLoading,
182
201
  "data-test-subj": "euiInlineEditModeInput",
183
- placeholder: placeholder
202
+ placeholder: placeholder || undefined // Opt not to render the prop entirely if an empty string is passed
184
203
  }, editModeProps === null || editModeProps === void 0 ? void 0 : editModeProps.inputProps, {
185
204
  inputRef: setEditModeRefs,
186
205
  onChange: function onChange(e) {
187
206
  var _editModeProps$inputP2, _editModeProps$inputP3;
188
207
  setEditModeValue(e.target.value);
208
+ _onChange === null || _onChange === void 0 ? void 0 : _onChange(e);
189
209
  editModeProps === null || editModeProps === void 0 ? void 0 : (_editModeProps$inputP2 = editModeProps.inputProps) === null || _editModeProps$inputP2 === void 0 ? void 0 : (_editModeProps$inputP3 = _editModeProps$inputP2.onChange) === null || _editModeProps$inputP3 === void 0 ? void 0 : _editModeProps$inputP3.call(_editModeProps$inputP2, e);
190
210
  },
191
211
  onKeyDown: function onKeyDown(e) {
@@ -259,7 +279,7 @@ export var EuiInlineEditForm = function EuiInlineEditForm(_ref) {
259
279
  "data-test-subj": "euiInlineReadModeButton",
260
280
  disabled: isReadOnly,
261
281
  css: readModeCssStyles,
262
- title: readModeValue || placeholder
282
+ title: value
263
283
  }, readModeProps, {
264
284
  buttonRef: setReadModeRefs,
265
285
  "aria-describedby": classNames(readModeDescribedById, readModeProps === null || readModeProps === void 0 ? void 0 : readModeProps['aria-describedby']),
@@ -268,14 +288,14 @@ export var EuiInlineEditForm = function EuiInlineEditForm(_ref) {
268
288
  activateEditMode();
269
289
  readModeProps === null || readModeProps === void 0 ? void 0 : (_readModeProps$onClic = readModeProps.onClick) === null || _readModeProps$onClic === void 0 ? void 0 : _readModeProps$onClic.call(readModeProps, e);
270
290
  }
271
- }), children(readModeValue || placeholder)), ___EmotionJSX("span", {
291
+ }), children(value)), ___EmotionJSX("span", {
272
292
  id: readModeDescribedById,
273
293
  hidden: true
274
294
  }, !isReadOnly && ___EmotionJSX(EuiI18n, {
275
295
  token: "euiInlineEditForm.activateEditModeDescription",
276
296
  default: "Click to edit this text inline."
277
297
  })));
278
- return ___EmotionJSX("div", {
298
+ return ___EmotionJSX("div", _extends({
279
299
  className: classes
280
- }, isEditing ? editModeForm : readModeElement);
300
+ }, rest), isEditing ? editModeForm : readModeElement);
281
301
  };
@@ -1,7 +1,7 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
2
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
3
3
  import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
4
- var _excluded = ["className", "size", "defaultValue", "placeholder", "inputAriaLabel", "startWithEditOpen", "readModeProps", "editModeProps", "isLoading", "isInvalid", "isReadOnly"];
4
+ var _excluded = ["className", "size", "readModeProps", "isReadOnly"];
5
5
  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
6
6
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
7
7
  /*
@@ -23,14 +23,7 @@ export var EuiInlineEditText = function EuiInlineEditText(_ref) {
23
23
  var className = _ref.className,
24
24
  _ref$size = _ref.size,
25
25
  size = _ref$size === void 0 ? 'm' : _ref$size,
26
- defaultValue = _ref.defaultValue,
27
- placeholder = _ref.placeholder,
28
- inputAriaLabel = _ref.inputAriaLabel,
29
- startWithEditOpen = _ref.startWithEditOpen,
30
26
  _readModeProps = _ref.readModeProps,
31
- editModeProps = _ref.editModeProps,
32
- isLoading = _ref.isLoading,
33
- isInvalid = _ref.isInvalid,
34
27
  isReadOnly = _ref.isReadOnly,
35
28
  rest = _objectWithoutProperties(_ref, _excluded);
36
29
  var classes = classNames('euiInlineEditText', className);
@@ -45,22 +38,13 @@ export var EuiInlineEditText = function EuiInlineEditText(_ref) {
45
38
  role: 'paragraph'
46
39
  });
47
40
  }, [_readModeProps, isReadOnly]);
48
- var formProps = {
49
- sizes: sizes,
50
- defaultValue: defaultValue,
51
- placeholder: placeholder,
52
- inputAriaLabel: inputAriaLabel,
53
- startWithEditOpen: startWithEditOpen,
54
- readModeProps: readModeProps,
55
- editModeProps: editModeProps,
56
- isLoading: isLoading,
57
- isInvalid: isInvalid,
58
- isReadOnly: isReadOnly
59
- };
60
41
  return ___EmotionJSX(EuiInlineEditForm, _extends({
61
42
  className: classes,
62
- css: cssStyles
63
- }, rest, formProps), function (textReadModeValue) {
43
+ css: cssStyles,
44
+ readModeProps: readModeProps,
45
+ isReadOnly: isReadOnly,
46
+ sizes: sizes
47
+ }, rest), function (textReadModeValue) {
64
48
  return ___EmotionJSX(EuiText, {
65
49
  size: size,
66
50
  className: "eui-textTruncate"