@elastic/eui 119.0.0 → 119.1.0-snapshot.1787665877015

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 (537) hide show
  1. package/dist/eui-icons.json +90 -87
  2. package/dist/svgs/cloud_bolt.svg +4 -0
  3. package/dist/svgs/cloud_rain.svg +4 -0
  4. package/dist/svgs/cloud_sun.svg +4 -0
  5. package/dist/svgs/cube.svg +3 -0
  6. package/dist/svgs/cursor_default.svg +3 -0
  7. package/dist/svgs/kubernetes_namespace.svg +4 -0
  8. package/dist/svgs/log_in.svg +4 -0
  9. package/dist/svgs/memory.svg +1 -10
  10. package/dist/svgs/product_timelion.svg +3 -0
  11. package/dist/svgs/product_tsvb.svg +5 -0
  12. package/dist/svgs/push.svg +4 -0
  13. package/dist/svgs/route_split.svg +3 -0
  14. package/dist/svgs/transition_right_in.svg +4 -0
  15. package/dist/svgs/transition_right_out.svg +4 -0
  16. package/dist/svgs/wrench.svg +1 -1
  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 +4 -4
  21. package/es/components/basic_table/in_memory_table.js +4 -4
  22. package/es/components/button/button.js +20 -6
  23. package/es/components/button/button_display/_button_display_content.js +1 -1
  24. package/es/components/button/button_empty/button_empty.js +1 -1
  25. package/es/components/button/button_group/button_group.js +180 -20
  26. package/es/components/button/button_group/button_group.styles.js +61 -9
  27. package/es/components/button/button_group/use_button_group_selection.js +30 -0
  28. package/es/components/button/button_icon/button_icon.js +21 -8
  29. package/es/components/button/split_button/split_button.js +39 -16
  30. package/es/components/button/split_button/split_button.styles.js +28 -32
  31. package/es/components/button/split_button/split_button_actions.js +16 -5
  32. package/es/components/button/use_button_common_props.js +18 -5
  33. package/es/components/call_out/call_out.js +2 -2
  34. package/es/components/card/card.js +1 -1
  35. package/es/components/collapsible_nav/collapsible_nav_group/collapsible_nav_group.js +1 -1
  36. package/es/components/comment_list/comment.js +2 -2
  37. package/es/components/comment_list/comment_event.js +1 -1
  38. package/es/components/comment_list/comment_list.js +2 -2
  39. package/es/components/comment_list/comment_timeline.js +1 -1
  40. package/es/components/context_menu/context_menu_item.js +1 -1
  41. package/es/components/datagrid/body/cell/data_grid_cell.js +27 -27
  42. package/es/components/datagrid/body/cell/data_grid_cell_wrapper.js +4 -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/footer/data_grid_footer_row.js +5 -2
  47. package/es/components/datagrid/body/header/column_actions.js +3 -1
  48. package/es/components/datagrid/body/header/data_grid_control_header_cell.js +2 -1
  49. package/es/components/datagrid/body/header/data_grid_header_cell.js +17 -13
  50. package/es/components/datagrid/body/header/data_grid_header_cell_wrapper.js +9 -3
  51. package/es/components/datagrid/body/header/data_grid_header_row.js +6 -0
  52. package/es/components/datagrid/controls/column_sorting.js +13 -13
  53. package/es/components/datagrid/controls/column_sorting_draggable.js +1 -1
  54. package/es/components/datagrid/controls/data_grid_toolbar_control.js +1 -1
  55. package/es/components/datagrid/utils/in_memory.js +12 -12
  56. package/es/components/datagrid/utils/last_copy_column.js +11 -0
  57. package/es/components/date_picker/date_picker.js +2 -2
  58. package/es/components/date_picker/date_picker_range.js +1 -1
  59. package/es/components/date_picker/super_date_picker/quick_select_popover/quick_select.js +224 -253
  60. package/es/components/date_picker/super_date_picker/super_update_button.js +1 -1
  61. package/es/components/empty_prompt/empty_prompt.js +1 -1
  62. package/es/components/flyout/flyout_menu/flyout_menu.js +39 -14
  63. package/es/components/form/field_number/field_number.js +2 -2
  64. package/es/components/form/field_text/field_text.js +2 -2
  65. package/es/components/form/file_picker/file_picker.js +187 -224
  66. package/es/components/form/file_picker/file_picker.styles.js +1 -1
  67. package/es/components/form/form_control_button/form_control_button.js +1 -1
  68. package/es/components/form/form_control_layout/append_prepend/form_append_prepend.js +2 -2
  69. package/es/components/form/form_control_layout/form_control_layout.js +2 -2
  70. package/es/components/form/form_control_layout/form_control_layout_custom_icon.js +1 -1
  71. package/es/components/form/text_area/text_area.js +2 -2
  72. package/es/components/header/header_links/header_link.js +1 -1
  73. package/es/components/header/header_links/header_links.js +1 -1
  74. package/es/components/header/header_logo/header_logo.js +1 -1
  75. package/es/components/header/header_section/header_section_item_button.js +1 -1
  76. package/es/components/icon/assets/{cloud_stormy.js → cloud_bolt.js} +5 -3
  77. package/es/components/icon/assets/{cloud_sunny.js → cloud_rain.js} +5 -3
  78. package/es/components/icon/assets/cloud_sun.js +33 -0
  79. package/es/components/icon/assets/{kubernetes_pod.js → cube.js} +3 -3
  80. package/es/components/icon/assets/cursor_default.js +35 -0
  81. package/es/components/icon/assets/{cloud_drizzle.js → kubernetes_namespace.js} +5 -3
  82. package/es/components/icon/assets/{kql_function.js → log_in.js} +5 -3
  83. package/es/components/icon/assets/memory.js +1 -3
  84. package/es/components/icon/assets/product_timelion.js +33 -0
  85. package/es/components/icon/assets/product_tsvb.js +37 -0
  86. package/es/components/icon/assets/{namespace.js → push.js} +3 -6
  87. package/es/components/icon/assets/route_split.js +33 -0
  88. package/es/components/icon/assets/transition_right_in.js +35 -0
  89. package/es/components/icon/assets/transition_right_out.js +35 -0
  90. package/es/components/icon/assets/wrench.js +1 -3
  91. package/es/components/icon/icon.js +1 -1
  92. package/es/components/icon/icon_glyphs.a11y.js +1 -1
  93. package/es/components/icon/icon_map.js +96 -18
  94. package/es/components/icon/svgs/cloud_bolt.svg +4 -0
  95. package/es/components/icon/svgs/cloud_rain.svg +4 -0
  96. package/es/components/icon/svgs/cloud_sun.svg +4 -0
  97. package/es/components/icon/svgs/cube.svg +3 -0
  98. package/es/components/icon/svgs/cursor_default.svg +3 -0
  99. package/es/components/icon/svgs/kubernetes_namespace.svg +4 -0
  100. package/es/components/icon/svgs/log_in.svg +4 -0
  101. package/es/components/icon/svgs/memory.svg +1 -10
  102. package/es/components/icon/svgs/product_timelion.svg +3 -0
  103. package/es/components/icon/svgs/product_tsvb.svg +5 -0
  104. package/es/components/icon/svgs/push.svg +4 -0
  105. package/es/components/icon/svgs/route_split.svg +3 -0
  106. package/es/components/icon/svgs/transition_right_in.svg +4 -0
  107. package/es/components/icon/svgs/transition_right_out.svg +4 -0
  108. package/es/components/icon/svgs/wrench.svg +1 -1
  109. package/es/components/key_pad_menu/key_pad_menu_item.js +1 -1
  110. package/es/components/list_group/list_group.js +2 -2
  111. package/es/components/list_group/list_group_item.js +2 -2
  112. package/es/components/list_group/list_group_item_extra_action.js +1 -1
  113. package/es/components/list_group/pinnable_list_group/pinnable_list_group.js +4 -4
  114. package/es/components/loading/loading_logo.js +1 -1
  115. package/es/components/markdown_editor/markdown_editor.js +1 -1
  116. package/es/components/markdown_editor/markdown_editor_drop_zone.js +1 -1
  117. package/es/components/markdown_editor/markdown_editor_footer.js +1 -1
  118. package/es/components/markdown_editor/markdown_editor_toolbar.js +1 -1
  119. package/es/components/page/page_header/page_header_content.js +1 -1
  120. package/es/components/pagination/pagination_button.js +1 -1
  121. package/es/components/resizable_container/resizable_collapse_button.js +4 -4
  122. package/es/components/selectable/selectable_list/selectable_list.js +1 -1
  123. package/es/components/selectable/selectable_list/selectable_list_item.js +1 -1
  124. package/es/components/selectable/selectable_templates/selectable_template_sitewide.js +1 -1
  125. package/es/components/table/table_header_cell.js +1 -1
  126. package/es/components/timeline/timeline_item_icon.js +1 -1
  127. package/es/components/toast/global_toast_list.js +2 -2
  128. package/es/components/toast/toast.js +2 -2
  129. package/es/components/tool_tip/icon_tip.js +1 -1
  130. package/es/global_styling/mixins/_button.js +6 -0
  131. package/es/services/accessibility/html_id_generator.js +26 -1
  132. package/eui.d.ts +425 -417
  133. package/i18ntokens.json +2678 -2660
  134. package/lib/components/avatar/avatar.js +1 -1
  135. package/lib/components/badge/badge.js +1 -1
  136. package/lib/components/badge/beta_badge/beta_badge.js +1 -1
  137. package/lib/components/basic_table/basic_table.js +4 -4
  138. package/lib/components/basic_table/in_memory_table.js +4 -4
  139. package/lib/components/button/button.js +20 -6
  140. package/lib/components/button/button_display/_button_display_content.js +1 -1
  141. package/lib/components/button/button_empty/button_empty.js +1 -1
  142. package/lib/components/button/button_group/button_group.js +179 -21
  143. package/lib/components/button/button_group/button_group.styles.js +60 -8
  144. package/lib/components/button/button_group/use_button_group_selection.js +36 -0
  145. package/lib/components/button/button_icon/button_icon.js +21 -8
  146. package/lib/components/button/split_button/split_button.js +37 -15
  147. package/lib/components/button/split_button/split_button.styles.js +29 -31
  148. package/lib/components/button/split_button/split_button_actions.js +15 -4
  149. package/lib/components/button/use_button_common_props.js +18 -5
  150. package/lib/components/call_out/call_out.js +2 -2
  151. package/lib/components/card/card.js +1 -1
  152. package/lib/components/collapsible_nav/collapsible_nav_group/collapsible_nav_group.js +1 -1
  153. package/lib/components/comment_list/comment.js +2 -2
  154. package/lib/components/comment_list/comment_event.js +1 -1
  155. package/lib/components/comment_list/comment_list.js +2 -2
  156. package/lib/components/comment_list/comment_timeline.js +1 -1
  157. package/lib/components/context_menu/context_menu_item.js +1 -1
  158. package/lib/components/datagrid/body/cell/data_grid_cell.js +27 -27
  159. package/lib/components/datagrid/body/cell/data_grid_cell_wrapper.js +4 -1
  160. package/lib/components/datagrid/body/data_grid_body.js +13 -13
  161. package/lib/components/datagrid/body/data_grid_body_custom.js +13 -13
  162. package/lib/components/datagrid/body/data_grid_body_virtualized.js +13 -13
  163. package/lib/components/datagrid/body/footer/data_grid_footer_row.js +5 -2
  164. package/lib/components/datagrid/body/header/column_actions.js +3 -1
  165. package/lib/components/datagrid/body/header/data_grid_control_header_cell.js +2 -1
  166. package/lib/components/datagrid/body/header/data_grid_header_cell.js +17 -13
  167. package/lib/components/datagrid/body/header/data_grid_header_cell_wrapper.js +9 -3
  168. package/lib/components/datagrid/body/header/data_grid_header_row.js +6 -0
  169. package/lib/components/datagrid/controls/column_sorting.js +13 -13
  170. package/lib/components/datagrid/controls/column_sorting_draggable.js +1 -1
  171. package/lib/components/datagrid/controls/data_grid_toolbar_control.js +1 -1
  172. package/lib/components/datagrid/utils/in_memory.js +12 -12
  173. package/lib/components/datagrid/utils/last_copy_column.js +17 -0
  174. package/lib/components/date_picker/date_picker.js +2 -2
  175. package/lib/components/date_picker/date_picker_range.js +1 -1
  176. package/lib/components/date_picker/super_date_picker/quick_select_popover/quick_select.js +224 -253
  177. package/lib/components/date_picker/super_date_picker/super_update_button.js +1 -1
  178. package/lib/components/empty_prompt/empty_prompt.js +1 -1
  179. package/lib/components/flyout/flyout_menu/flyout_menu.js +39 -14
  180. package/lib/components/form/field_number/field_number.js +2 -2
  181. package/lib/components/form/field_text/field_text.js +2 -2
  182. package/lib/components/form/file_picker/file_picker.js +193 -227
  183. package/lib/components/form/file_picker/file_picker.styles.js +1 -1
  184. package/lib/components/form/form_control_button/form_control_button.js +1 -1
  185. package/lib/components/form/form_control_layout/append_prepend/form_append_prepend.js +2 -2
  186. package/lib/components/form/form_control_layout/form_control_layout.js +2 -2
  187. package/lib/components/form/form_control_layout/form_control_layout_custom_icon.js +1 -1
  188. package/lib/components/form/text_area/text_area.js +2 -2
  189. package/lib/components/header/header_links/header_link.js +1 -1
  190. package/lib/components/header/header_links/header_links.js +1 -1
  191. package/lib/components/header/header_logo/header_logo.js +1 -1
  192. package/lib/components/header/header_section/header_section_item_button.js +1 -1
  193. package/lib/components/icon/assets/{cloud_stormy.js → cloud_bolt.js} +5 -3
  194. package/lib/components/icon/assets/{cloud_sunny.js → cloud_rain.js} +5 -3
  195. package/lib/components/icon/assets/cloud_sun.js +40 -0
  196. package/lib/components/icon/assets/{kubernetes_pod.js → cube.js} +3 -3
  197. package/lib/components/icon/assets/cursor_default.js +42 -0
  198. package/lib/components/icon/assets/{cloud_drizzle.js → kubernetes_namespace.js} +5 -3
  199. package/lib/components/icon/assets/{kql_function.js → log_in.js} +5 -3
  200. package/lib/components/icon/assets/memory.js +1 -3
  201. package/lib/components/icon/assets/product_timelion.js +40 -0
  202. package/lib/components/icon/assets/product_tsvb.js +44 -0
  203. package/lib/components/icon/assets/{namespace.js → push.js} +3 -6
  204. package/lib/components/icon/assets/route_split.js +40 -0
  205. package/lib/components/icon/assets/transition_right_in.js +42 -0
  206. package/lib/components/icon/assets/transition_right_out.js +42 -0
  207. package/lib/components/icon/assets/wrench.js +1 -3
  208. package/lib/components/icon/icon.js +1 -1
  209. package/lib/components/icon/icon_glyphs.a11y.js +1 -1
  210. package/lib/components/icon/icon_map.js +120 -18
  211. package/lib/components/icon/svgs/cloud_bolt.svg +4 -0
  212. package/lib/components/icon/svgs/cloud_rain.svg +4 -0
  213. package/lib/components/icon/svgs/cloud_sun.svg +4 -0
  214. package/lib/components/icon/svgs/cube.svg +3 -0
  215. package/lib/components/icon/svgs/cursor_default.svg +3 -0
  216. package/lib/components/icon/svgs/kubernetes_namespace.svg +4 -0
  217. package/lib/components/icon/svgs/log_in.svg +4 -0
  218. package/lib/components/icon/svgs/memory.svg +1 -10
  219. package/lib/components/icon/svgs/product_timelion.svg +3 -0
  220. package/lib/components/icon/svgs/product_tsvb.svg +5 -0
  221. package/lib/components/icon/svgs/push.svg +4 -0
  222. package/lib/components/icon/svgs/route_split.svg +3 -0
  223. package/lib/components/icon/svgs/transition_right_in.svg +4 -0
  224. package/lib/components/icon/svgs/transition_right_out.svg +4 -0
  225. package/lib/components/icon/svgs/wrench.svg +1 -1
  226. package/lib/components/key_pad_menu/key_pad_menu_item.js +1 -1
  227. package/lib/components/list_group/list_group.js +2 -2
  228. package/lib/components/list_group/list_group_item.js +2 -2
  229. package/lib/components/list_group/list_group_item_extra_action.js +1 -1
  230. package/lib/components/list_group/pinnable_list_group/pinnable_list_group.js +4 -4
  231. package/lib/components/loading/loading_logo.js +1 -1
  232. package/lib/components/markdown_editor/markdown_editor.js +1 -1
  233. package/lib/components/markdown_editor/markdown_editor_drop_zone.js +1 -1
  234. package/lib/components/markdown_editor/markdown_editor_footer.js +1 -1
  235. package/lib/components/markdown_editor/markdown_editor_toolbar.js +1 -1
  236. package/lib/components/page/page_header/page_header_content.js +1 -1
  237. package/lib/components/pagination/pagination_button.js +1 -1
  238. package/lib/components/resizable_container/resizable_collapse_button.js +4 -4
  239. package/lib/components/selectable/selectable_list/selectable_list.js +1 -1
  240. package/lib/components/selectable/selectable_list/selectable_list_item.js +1 -1
  241. package/lib/components/selectable/selectable_templates/selectable_template_sitewide.js +1 -1
  242. package/lib/components/table/table_header_cell.js +1 -1
  243. package/lib/components/timeline/timeline_item_icon.js +1 -1
  244. package/lib/components/toast/global_toast_list.js +2 -2
  245. package/lib/components/toast/toast.js +2 -2
  246. package/lib/components/tool_tip/icon_tip.js +1 -1
  247. package/lib/global_styling/mixins/_button.js +6 -0
  248. package/lib/services/accessibility/html_id_generator.js +26 -1
  249. package/optimize/es/components/button/button.js +20 -6
  250. package/optimize/es/components/button/button_group/button_group.js +89 -10
  251. package/optimize/es/components/button/button_group/button_group.styles.js +61 -9
  252. package/optimize/es/components/button/button_group/use_button_group_selection.js +30 -0
  253. package/optimize/es/components/button/button_icon/button_icon.js +20 -7
  254. package/optimize/es/components/button/split_button/split_button.js +36 -16
  255. package/optimize/es/components/button/split_button/split_button.styles.js +28 -32
  256. package/optimize/es/components/button/split_button/split_button_actions.js +16 -5
  257. package/optimize/es/components/button/use_button_common_props.js +18 -5
  258. package/optimize/es/components/datagrid/body/cell/data_grid_cell.js +3 -3
  259. package/optimize/es/components/datagrid/body/cell/data_grid_cell_wrapper.js +4 -1
  260. package/optimize/es/components/datagrid/body/footer/data_grid_footer_row.js +5 -2
  261. package/optimize/es/components/datagrid/body/header/column_actions.js +3 -1
  262. package/optimize/es/components/datagrid/body/header/data_grid_control_header_cell.js +2 -1
  263. package/optimize/es/components/datagrid/body/header/data_grid_header_cell.js +3 -0
  264. package/optimize/es/components/datagrid/body/header/data_grid_header_cell_wrapper.js +7 -3
  265. package/optimize/es/components/datagrid/body/header/data_grid_header_row.js +6 -0
  266. package/optimize/es/components/datagrid/utils/last_copy_column.js +11 -0
  267. package/optimize/es/components/date_picker/super_date_picker/quick_select_popover/quick_select.js +220 -225
  268. package/optimize/es/components/date_picker/super_date_picker/super_update_button.js +1 -1
  269. package/optimize/es/components/flyout/flyout_menu/flyout_menu.js +32 -9
  270. package/optimize/es/components/form/file_picker/file_picker.js +182 -216
  271. package/optimize/es/components/form/file_picker/file_picker.styles.js +1 -1
  272. package/optimize/es/components/icon/assets/{cloud_stormy.js → cloud_bolt.js} +5 -3
  273. package/optimize/es/components/icon/assets/{cloud_sunny.js → cloud_rain.js} +5 -3
  274. package/optimize/es/components/icon/assets/cloud_sun.js +32 -0
  275. package/optimize/es/components/icon/assets/{kubernetes_pod.js → cube.js} +3 -3
  276. package/optimize/es/components/icon/assets/cursor_default.js +34 -0
  277. package/optimize/es/components/icon/assets/{cloud_drizzle.js → kubernetes_namespace.js} +5 -3
  278. package/optimize/es/components/icon/assets/{kql_function.js → log_in.js} +5 -3
  279. package/optimize/es/components/icon/assets/memory.js +1 -3
  280. package/optimize/es/components/icon/assets/product_timelion.js +32 -0
  281. package/optimize/es/components/icon/assets/product_tsvb.js +36 -0
  282. package/optimize/es/components/icon/assets/{namespace.js → push.js} +3 -6
  283. package/optimize/es/components/icon/assets/route_split.js +32 -0
  284. package/optimize/es/components/icon/assets/transition_right_in.js +34 -0
  285. package/optimize/es/components/icon/assets/transition_right_out.js +34 -0
  286. package/optimize/es/components/icon/assets/wrench.js +1 -3
  287. package/optimize/es/components/icon/icon_glyphs.a11y.js +1 -1
  288. package/optimize/es/components/icon/icon_map.js +96 -18
  289. package/optimize/es/components/icon/svgs/cloud_bolt.svg +4 -0
  290. package/optimize/es/components/icon/svgs/cloud_rain.svg +4 -0
  291. package/optimize/es/components/icon/svgs/cloud_sun.svg +4 -0
  292. package/optimize/es/components/icon/svgs/cube.svg +3 -0
  293. package/optimize/es/components/icon/svgs/cursor_default.svg +3 -0
  294. package/optimize/es/components/icon/svgs/kubernetes_namespace.svg +4 -0
  295. package/optimize/es/components/icon/svgs/log_in.svg +4 -0
  296. package/optimize/es/components/icon/svgs/memory.svg +1 -10
  297. package/optimize/es/components/icon/svgs/product_timelion.svg +3 -0
  298. package/optimize/es/components/icon/svgs/product_tsvb.svg +5 -0
  299. package/optimize/es/components/icon/svgs/push.svg +4 -0
  300. package/optimize/es/components/icon/svgs/route_split.svg +3 -0
  301. package/optimize/es/components/icon/svgs/transition_right_in.svg +4 -0
  302. package/optimize/es/components/icon/svgs/transition_right_out.svg +4 -0
  303. package/optimize/es/components/icon/svgs/wrench.svg +1 -1
  304. package/optimize/es/components/resizable_container/resizable_collapse_button.js +4 -4
  305. package/optimize/es/global_styling/mixins/_button.js +6 -0
  306. package/optimize/es/services/accessibility/html_id_generator.js +26 -1
  307. package/optimize/lib/components/button/button.js +20 -6
  308. package/optimize/lib/components/button/button_group/button_group.js +89 -11
  309. package/optimize/lib/components/button/button_group/button_group.styles.js +60 -8
  310. package/optimize/lib/components/button/button_group/use_button_group_selection.js +36 -0
  311. package/optimize/lib/components/button/button_icon/button_icon.js +20 -7
  312. package/optimize/lib/components/button/split_button/split_button.js +35 -15
  313. package/optimize/lib/components/button/split_button/split_button.styles.js +29 -31
  314. package/optimize/lib/components/button/split_button/split_button_actions.js +15 -4
  315. package/optimize/lib/components/button/use_button_common_props.js +18 -5
  316. package/optimize/lib/components/datagrid/body/cell/data_grid_cell.js +3 -3
  317. package/optimize/lib/components/datagrid/body/cell/data_grid_cell_wrapper.js +4 -1
  318. package/optimize/lib/components/datagrid/body/footer/data_grid_footer_row.js +5 -2
  319. package/optimize/lib/components/datagrid/body/header/column_actions.js +3 -1
  320. package/optimize/lib/components/datagrid/body/header/data_grid_control_header_cell.js +2 -1
  321. package/optimize/lib/components/datagrid/body/header/data_grid_header_cell.js +3 -0
  322. package/optimize/lib/components/datagrid/body/header/data_grid_header_cell_wrapper.js +7 -3
  323. package/optimize/lib/components/datagrid/body/header/data_grid_header_row.js +6 -0
  324. package/optimize/lib/components/datagrid/utils/last_copy_column.js +17 -0
  325. package/optimize/lib/components/date_picker/super_date_picker/quick_select_popover/quick_select.js +219 -224
  326. package/optimize/lib/components/date_picker/super_date_picker/super_update_button.js +1 -1
  327. package/optimize/lib/components/flyout/flyout_menu/flyout_menu.js +32 -9
  328. package/optimize/lib/components/form/file_picker/file_picker.js +183 -215
  329. package/optimize/lib/components/form/file_picker/file_picker.styles.js +1 -1
  330. package/optimize/lib/components/icon/assets/{kubernetes_pod.js → cloud_bolt.js} +5 -3
  331. package/optimize/lib/components/icon/assets/{cloud_stormy.js → cloud_rain.js} +5 -3
  332. package/optimize/lib/components/icon/assets/cloud_sun.js +40 -0
  333. package/optimize/lib/components/icon/assets/cube.js +40 -0
  334. package/{test-env/components/icon/assets/kubernetes_pod.js → optimize/lib/components/icon/assets/cursor_default.js} +5 -3
  335. package/optimize/lib/components/icon/assets/{cloud_drizzle.js → kubernetes_namespace.js} +5 -3
  336. package/{test-env/components/icon/assets/kql_function.js → optimize/lib/components/icon/assets/log_in.js} +5 -3
  337. package/optimize/lib/components/icon/assets/memory.js +1 -3
  338. package/optimize/lib/components/icon/assets/product_timelion.js +40 -0
  339. package/optimize/lib/components/icon/assets/product_tsvb.js +44 -0
  340. package/{test-env/components/icon/assets/namespace.js → optimize/lib/components/icon/assets/push.js} +3 -6
  341. package/optimize/lib/components/icon/assets/route_split.js +40 -0
  342. package/optimize/lib/components/icon/assets/transition_right_in.js +42 -0
  343. package/optimize/lib/components/icon/assets/transition_right_out.js +42 -0
  344. package/optimize/lib/components/icon/assets/wrench.js +1 -3
  345. package/optimize/lib/components/icon/icon_glyphs.a11y.js +1 -1
  346. package/optimize/lib/components/icon/icon_map.js +120 -18
  347. package/optimize/lib/components/icon/svgs/cloud_bolt.svg +4 -0
  348. package/optimize/lib/components/icon/svgs/cloud_rain.svg +4 -0
  349. package/optimize/lib/components/icon/svgs/cloud_sun.svg +4 -0
  350. package/optimize/lib/components/icon/svgs/cube.svg +3 -0
  351. package/optimize/lib/components/icon/svgs/cursor_default.svg +3 -0
  352. package/optimize/lib/components/icon/svgs/kubernetes_namespace.svg +4 -0
  353. package/optimize/lib/components/icon/svgs/log_in.svg +4 -0
  354. package/optimize/lib/components/icon/svgs/memory.svg +1 -10
  355. package/optimize/lib/components/icon/svgs/product_timelion.svg +3 -0
  356. package/optimize/lib/components/icon/svgs/product_tsvb.svg +5 -0
  357. package/optimize/lib/components/icon/svgs/push.svg +4 -0
  358. package/optimize/lib/components/icon/svgs/route_split.svg +3 -0
  359. package/optimize/lib/components/icon/svgs/transition_right_in.svg +4 -0
  360. package/optimize/lib/components/icon/svgs/transition_right_out.svg +4 -0
  361. package/optimize/lib/components/icon/svgs/wrench.svg +1 -1
  362. package/optimize/lib/components/resizable_container/resizable_collapse_button.js +4 -4
  363. package/optimize/lib/global_styling/mixins/_button.js +6 -0
  364. package/optimize/lib/services/accessibility/html_id_generator.js +26 -1
  365. package/package.json +18 -23
  366. package/test-env/components/avatar/avatar.js +1 -1
  367. package/test-env/components/badge/badge.js +1 -1
  368. package/test-env/components/badge/beta_badge/beta_badge.js +1 -1
  369. package/test-env/components/basic_table/basic_table.js +4 -4
  370. package/test-env/components/basic_table/in_memory_table.js +4 -4
  371. package/test-env/components/button/button.js +20 -6
  372. package/test-env/components/button/button_display/_button_display_content.js +1 -1
  373. package/test-env/components/button/button_empty/button_empty.js +1 -1
  374. package/test-env/components/button/button_group/button_group.js +177 -21
  375. package/test-env/components/button/button_group/button_group.styles.js +60 -8
  376. package/test-env/components/button/button_group/use_button_group_selection.js +36 -0
  377. package/test-env/components/button/button_icon/button_icon.js +21 -8
  378. package/test-env/components/button/split_button/split_button.js +35 -15
  379. package/test-env/components/button/split_button/split_button.styles.js +29 -31
  380. package/test-env/components/button/split_button/split_button_actions.js +15 -4
  381. package/test-env/components/button/use_button_common_props.js +18 -5
  382. package/test-env/components/call_out/call_out.js +2 -2
  383. package/test-env/components/card/card.js +1 -1
  384. package/test-env/components/collapsible_nav/collapsible_nav_group/collapsible_nav_group.js +1 -1
  385. package/test-env/components/comment_list/comment.js +2 -2
  386. package/test-env/components/comment_list/comment_event.js +1 -1
  387. package/test-env/components/comment_list/comment_list.js +2 -2
  388. package/test-env/components/comment_list/comment_timeline.js +1 -1
  389. package/test-env/components/context_menu/context_menu_item.js +1 -1
  390. package/test-env/components/datagrid/body/cell/data_grid_cell.js +27 -27
  391. package/test-env/components/datagrid/body/cell/data_grid_cell_wrapper.js +4 -1
  392. package/test-env/components/datagrid/body/data_grid_body.js +13 -13
  393. package/test-env/components/datagrid/body/data_grid_body_custom.js +13 -13
  394. package/test-env/components/datagrid/body/data_grid_body_virtualized.js +13 -13
  395. package/test-env/components/datagrid/body/footer/data_grid_footer_row.js +5 -2
  396. package/test-env/components/datagrid/body/header/column_actions.js +3 -1
  397. package/test-env/components/datagrid/body/header/data_grid_control_header_cell.js +2 -1
  398. package/test-env/components/datagrid/body/header/data_grid_header_cell.js +17 -13
  399. package/test-env/components/datagrid/body/header/data_grid_header_cell_wrapper.js +9 -3
  400. package/test-env/components/datagrid/body/header/data_grid_header_row.js +6 -0
  401. package/test-env/components/datagrid/controls/column_sorting.js +13 -13
  402. package/test-env/components/datagrid/controls/column_sorting_draggable.js +1 -1
  403. package/test-env/components/datagrid/controls/data_grid_toolbar_control.js +1 -1
  404. package/test-env/components/datagrid/utils/in_memory.js +12 -12
  405. package/test-env/components/datagrid/utils/last_copy_column.js +17 -0
  406. package/test-env/components/date_picker/date_picker.js +2 -2
  407. package/test-env/components/date_picker/date_picker_range.js +1 -1
  408. package/test-env/components/date_picker/super_date_picker/quick_select_popover/quick_select.js +218 -249
  409. package/test-env/components/date_picker/super_date_picker/super_update_button.js +1 -1
  410. package/test-env/components/empty_prompt/empty_prompt.js +1 -1
  411. package/test-env/components/flyout/flyout_menu/flyout_menu.js +39 -14
  412. package/test-env/components/form/field_number/field_number.js +2 -2
  413. package/test-env/components/form/field_text/field_text.js +2 -2
  414. package/test-env/components/form/file_picker/file_picker.js +184 -216
  415. package/test-env/components/form/file_picker/file_picker.styles.js +1 -1
  416. package/test-env/components/form/form_control_button/form_control_button.js +1 -1
  417. package/test-env/components/form/form_control_layout/append_prepend/form_append_prepend.js +2 -2
  418. package/test-env/components/form/form_control_layout/form_control_layout.js +2 -2
  419. package/test-env/components/form/form_control_layout/form_control_layout_custom_icon.js +1 -1
  420. package/test-env/components/form/text_area/text_area.js +2 -2
  421. package/test-env/components/header/header_links/header_link.js +1 -1
  422. package/test-env/components/header/header_links/header_links.js +1 -1
  423. package/test-env/components/header/header_logo/header_logo.js +1 -1
  424. package/test-env/components/header/header_section/header_section_item_button.js +1 -1
  425. package/test-env/components/icon/assets/cloud_bolt.js +42 -0
  426. package/{optimize/lib/components/icon/assets/cloud_sunny.js → test-env/components/icon/assets/cloud_rain.js} +5 -3
  427. package/test-env/components/icon/assets/cloud_sun.js +40 -0
  428. package/test-env/components/icon/assets/cube.js +40 -0
  429. package/test-env/components/icon/assets/cursor_default.js +42 -0
  430. package/test-env/components/icon/assets/kubernetes_namespace.js +42 -0
  431. package/{optimize/lib/components/icon/assets/kql_function.js → test-env/components/icon/assets/log_in.js} +5 -3
  432. package/test-env/components/icon/assets/memory.js +1 -3
  433. package/test-env/components/icon/assets/product_timelion.js +40 -0
  434. package/test-env/components/icon/assets/product_tsvb.js +44 -0
  435. package/{optimize/lib/components/icon/assets/namespace.js → test-env/components/icon/assets/push.js} +3 -6
  436. package/test-env/components/icon/assets/route_split.js +40 -0
  437. package/test-env/components/icon/assets/transition_right_in.js +42 -0
  438. package/test-env/components/icon/assets/transition_right_out.js +42 -0
  439. package/test-env/components/icon/assets/wrench.js +1 -3
  440. package/test-env/components/icon/icon_glyphs.a11y.js +1 -1
  441. package/test-env/components/icon/icon_map.js +120 -18
  442. package/test-env/components/key_pad_menu/key_pad_menu_item.js +1 -1
  443. package/test-env/components/list_group/list_group.js +2 -2
  444. package/test-env/components/list_group/list_group_item.js +2 -2
  445. package/test-env/components/list_group/list_group_item_extra_action.js +1 -1
  446. package/test-env/components/list_group/pinnable_list_group/pinnable_list_group.js +4 -4
  447. package/test-env/components/loading/loading_logo.js +1 -1
  448. package/test-env/components/markdown_editor/markdown_editor.js +1 -1
  449. package/test-env/components/markdown_editor/markdown_editor_drop_zone.js +1 -1
  450. package/test-env/components/markdown_editor/markdown_editor_footer.js +1 -1
  451. package/test-env/components/markdown_editor/markdown_editor_toolbar.js +1 -1
  452. package/test-env/components/page/page_header/page_header_content.js +1 -1
  453. package/test-env/components/pagination/pagination_button.js +1 -1
  454. package/test-env/components/resizable_container/resizable_collapse_button.js +4 -4
  455. package/test-env/components/selectable/selectable_list/selectable_list.js +1 -1
  456. package/test-env/components/selectable/selectable_list/selectable_list_item.js +1 -1
  457. package/test-env/components/selectable/selectable_templates/selectable_template_sitewide.js +1 -1
  458. package/test-env/components/table/table_header_cell.js +1 -1
  459. package/test-env/components/timeline/timeline_item_icon.js +1 -1
  460. package/test-env/components/toast/global_toast_list.js +2 -2
  461. package/test-env/components/toast/toast.js +2 -2
  462. package/test-env/components/tool_tip/icon_tip.js +1 -1
  463. package/test-env/global_styling/mixins/_button.js +6 -0
  464. package/test-env/services/accessibility/html_id_generator.js +11 -0
  465. package/dist/svgs/cloud_drizzle.svg +0 -3
  466. package/dist/svgs/cloud_stormy.svg +0 -3
  467. package/dist/svgs/cloud_sunny.svg +0 -3
  468. package/dist/svgs/kql_function.svg +0 -5
  469. package/dist/svgs/kubernetes_pod.svg +0 -3
  470. package/dist/svgs/menu_down.svg +0 -3
  471. package/dist/svgs/menu_up.svg +0 -3
  472. package/dist/svgs/namespace.svg +0 -3
  473. package/dist/svgs/vis_timelion.svg +0 -3
  474. package/dist/svgs/vis_visual_builder.svg +0 -3
  475. package/es/components/icon/assets/menu_down.js +0 -33
  476. package/es/components/icon/assets/menu_up.js +0 -33
  477. package/es/components/icon/assets/vis_timelion.js +0 -33
  478. package/es/components/icon/assets/vis_visual_builder.js +0 -33
  479. package/es/components/icon/svgs/cloud_drizzle.svg +0 -3
  480. package/es/components/icon/svgs/cloud_stormy.svg +0 -3
  481. package/es/components/icon/svgs/cloud_sunny.svg +0 -3
  482. package/es/components/icon/svgs/kql_function.svg +0 -5
  483. package/es/components/icon/svgs/kubernetes_pod.svg +0 -3
  484. package/es/components/icon/svgs/menu_down.svg +0 -3
  485. package/es/components/icon/svgs/menu_up.svg +0 -3
  486. package/es/components/icon/svgs/namespace.svg +0 -3
  487. package/es/components/icon/svgs/vis_timelion.svg +0 -3
  488. package/es/components/icon/svgs/vis_visual_builder.svg +0 -3
  489. package/lib/components/icon/assets/menu_down.js +0 -40
  490. package/lib/components/icon/assets/menu_up.js +0 -40
  491. package/lib/components/icon/assets/vis_timelion.js +0 -40
  492. package/lib/components/icon/assets/vis_visual_builder.js +0 -40
  493. package/lib/components/icon/svgs/cloud_drizzle.svg +0 -3
  494. package/lib/components/icon/svgs/cloud_stormy.svg +0 -3
  495. package/lib/components/icon/svgs/cloud_sunny.svg +0 -3
  496. package/lib/components/icon/svgs/kql_function.svg +0 -5
  497. package/lib/components/icon/svgs/kubernetes_pod.svg +0 -3
  498. package/lib/components/icon/svgs/menu_down.svg +0 -3
  499. package/lib/components/icon/svgs/menu_up.svg +0 -3
  500. package/lib/components/icon/svgs/namespace.svg +0 -3
  501. package/lib/components/icon/svgs/vis_timelion.svg +0 -3
  502. package/lib/components/icon/svgs/vis_visual_builder.svg +0 -3
  503. package/optimize/es/components/icon/assets/menu_down.js +0 -32
  504. package/optimize/es/components/icon/assets/menu_up.js +0 -32
  505. package/optimize/es/components/icon/assets/vis_timelion.js +0 -32
  506. package/optimize/es/components/icon/assets/vis_visual_builder.js +0 -32
  507. package/optimize/es/components/icon/svgs/cloud_drizzle.svg +0 -3
  508. package/optimize/es/components/icon/svgs/cloud_stormy.svg +0 -3
  509. package/optimize/es/components/icon/svgs/cloud_sunny.svg +0 -3
  510. package/optimize/es/components/icon/svgs/kql_function.svg +0 -5
  511. package/optimize/es/components/icon/svgs/kubernetes_pod.svg +0 -3
  512. package/optimize/es/components/icon/svgs/menu_down.svg +0 -3
  513. package/optimize/es/components/icon/svgs/menu_up.svg +0 -3
  514. package/optimize/es/components/icon/svgs/namespace.svg +0 -3
  515. package/optimize/es/components/icon/svgs/vis_timelion.svg +0 -3
  516. package/optimize/es/components/icon/svgs/vis_visual_builder.svg +0 -3
  517. package/optimize/lib/components/icon/assets/menu_down.js +0 -40
  518. package/optimize/lib/components/icon/assets/menu_up.js +0 -40
  519. package/optimize/lib/components/icon/assets/vis_timelion.js +0 -40
  520. package/optimize/lib/components/icon/assets/vis_visual_builder.js +0 -40
  521. package/optimize/lib/components/icon/svgs/cloud_drizzle.svg +0 -3
  522. package/optimize/lib/components/icon/svgs/cloud_stormy.svg +0 -3
  523. package/optimize/lib/components/icon/svgs/cloud_sunny.svg +0 -3
  524. package/optimize/lib/components/icon/svgs/kql_function.svg +0 -5
  525. package/optimize/lib/components/icon/svgs/kubernetes_pod.svg +0 -3
  526. package/optimize/lib/components/icon/svgs/menu_down.svg +0 -3
  527. package/optimize/lib/components/icon/svgs/menu_up.svg +0 -3
  528. package/optimize/lib/components/icon/svgs/namespace.svg +0 -3
  529. package/optimize/lib/components/icon/svgs/vis_timelion.svg +0 -3
  530. package/optimize/lib/components/icon/svgs/vis_visual_builder.svg +0 -3
  531. package/test-env/components/icon/assets/cloud_drizzle.js +0 -40
  532. package/test-env/components/icon/assets/cloud_stormy.js +0 -40
  533. package/test-env/components/icon/assets/cloud_sunny.js +0 -40
  534. package/test-env/components/icon/assets/menu_down.js +0 -40
  535. package/test-env/components/icon/assets/menu_up.js +0 -40
  536. package/test-env/components/icon/assets/vis_timelion.js +0 -40
  537. package/test-env/components/icon/assets/vis_visual_builder.js +0 -40
@@ -82,8 +82,8 @@ EuiFieldText.propTypes = {
82
82
  "aria-label": PropTypes.string,
83
83
  "data-test-subj": PropTypes.string,
84
84
  css: PropTypes.any,
85
- icon: PropTypes.oneOfType([PropTypes.oneOfType([PropTypes.oneOf(["accessibility", "addDataApp", "addToChat", "addToDashboard", "advancedSettingsApp", "agentApp", "aggregate", "alignBottom", "alignBottomLeft", "alignBottomRight", "alignCenterHorizontal", "alignCenterVertical", "alignLeft", "alignRight", "alignTop", "alignTopLeft", "alignTopRight", "analyzeEvent", "annotation", "chartAnomaly", "anomalySwimLane", "apmApp", "chartWaterfall", "appSearchApp", "apps", "chevronSingleDown", "chevronSingleLeft", "chevronSingleRight", "chevronSingleUp", "chevronLimitLeft", "chevronLimitRight", "article", "asterisk", "at", "archive", "axisX", "axisYLeft", "axisYRight", "auditbeatApp", "backgroundTask", "bell", "bellSlash", "beta", "bolt", "boxesVertical", "branch", "briefcase", "branchUser", "broom", "brush", "bug", "bulb", "bullseye", "calendar", "canvasApp", "casesApp", "chartChangePoint", "chartArea", "visArea", "chartAreaStack", "chartBarHorizontal", "chartBarHorizontalStack", "chartBarVertical", "visBarVertical", "chartBarVerticalStack", "chartGauge", "visGauge", "chartHeatmap", "chartLine", "visLine", "chartPie", "visPie", "chartTagCloud", "chartThreshold", "check", "checkCircle", "checkCircleFill", "popper", "classificationJob", "clickLeft", "clickRight", "clock", "clockCounter", "clockControl", "cloud", "cloudDrizzle", "cloudStormy", "cloudSunny", "cluster", "code", "codeApp", "paintBucket", "commandLine", "comment", "editorComment", "compare", "processor", "compute", "consoleApp", "container", "continuityAbove", "continuityAboveBelow", "continuityBelow", "continuityWithin", "contrast", "contrastFill", "controls", "copy", "crossProjectSearch", "createAdvancedJob", "createGenericJob", "createGeoJob", "createMultiMetricJob", "createPopulationJob", "createSingleMetricJob", "cross", "crossClusterReplicationApp", "crossCircle", "crosshair", "money", "scissors", "dashboardApp", "dashedCircle", "dataVisualizer", "database", "display", "devToolsApp", "discoverApp", "distributeHorizontal", "distributeVertical", "download", "drag", "dragHorizontal", "dragVertical", "document", "documentation", "documents", "dot", "dotInCircle", "chevronDoubleLeft", "chevronDoubleRight", "ellipsis", "textAlignCenter", "textAlignLeft", "textAlignRight", "textBold", "listCheck", "textHeading", "textItalic", "listNumber", "redo", "textStrike", "table", "visTable", "textUnderline", "undo", "listBullet", "list", "mail", "empty", "emsApp", "endpoint", "query", "eraser", "error", "errorFill", "esqlVis", "logOut", "maximize", "export", "upload", "external", "eye", "eyeSlash", "faceHappy", "faceNeutral", "faceSad", "tableInfo", "filebeatApp", "filter", "filterExclude", "filterIgnore", "filterInclude", "flask", "flag", "fleetApp", "fold", "folder", "folderClosed", "folderClose", "folderCheck", "folderExclamation", "folderOpen", "folderOpened", "frameNext", "framePrevious", "fullScreen", "fullScreenExit", "function", "gear", "gisApp", "globe", "gradient", "graphApp", "grid", "grokApp", "heart", "heartbeatApp", "help", "home", "hourglass", "if", "info", "image", "index", "indexClose", "tableCross", "indexEdit", "tablePencil", "indexManagementApp", "mapping", "indexOpen", "tablePlus", "indexPatternApp", "indexRollupApp", "indexRuntime", "tablePlay", "indexSettings", "tableGear", "tableTime", "infinity", "inputOutput", "inspect", "ip", "key", "keyboard", "queryField", "kqlFunction", "queryOperand", "querySelector", "queryValue", "kubernetesNode", "kubernetesPod", "cube", "rocket", "layers", "lensApp", "text", "lineBreak", "lineBreakSlash", "lineDash", "lineDot", "lineSolid", "link", "linkSlash", "lock", "lockOpen", "pattern", "logRateAnalysis", "logoAWS", "logoAWSMono", "logoAerospike", "logoApache", "logoAppSearch", "logoAzure", "logoAzureMono", "logoBeats", "logoBusinessAnalytics", "logoCeph", "logoCloud", "logoCloudEnterprise", "logoCode", "logoCodesandbox", "logoCouchbase", "logoDocker", "logoDropwizard", "logoElastic", "logoElasticStack", "logoElasticsearch", "logoEnterpriseSearch", "logoEtcd", "logoGCP", "logoGCPMono", "logoGithub", "logoGmail", "logoGolang", "logoGoogleG", "logoHAproxy", "logoIBM", "logoIBMMono", "logoKafka", "logoKibana", "logoKubernetes", "logoLogging", "logoLogstash", "logoMaps", "logoMemcached", "logoMetrics", "logoMongodb", "logoMySQL", "logoNginx", "logoObservability", "logoOsquery", "logoPhp", "logoPostgres", "logoPrometheus", "logoRabbitmq", "logoRedis", "logoSecurity", "logoSiteSearch", "logoSketch", "logoSlack", "logoUptime", "logoVectorDB", "logoVulnerabilityManagement", "logoWebhook", "logoWindows", "logoWorkplaceSearch", "logsApp", "logstashFilter", "logstashInput", "logstashOutput", "queue", "machineLearningApp", "magnet", "magnify", "search", "magnifyExclamation", "magnifyMinus", "magnifyPlus", "managementApp", "map", "mapMarker", "waypoint", "megaphone", "memory", "menu", "menuDown", "menuLeft", "menuRight", "menuUp", "merge", "metricbeatApp", "metricsApp", "minimize", "minus", "minusCircle", "minusSquare", "mobile", "monitoringApp", "moon", "move", "namespace", "nested", "vectorTriangle", "notebookApp", "number", "wifiSlash", "wifi", "outlierDetectionJob", "package", "packetbeatApp", "pageSelect", "pagesSelect", "documentsCheck", "palette", "paperClip", "partial", "pause", "payment", "pencil", "percent", "pin", "pinFill", "pinFilled", "pipelineApp", "pivot", "play", "plugs", "plus", "plusCircle", "plusSquare", "presentation", "productAgent", "productCloudInfra", "productDashboard", "productDiscover", "productML", "productStreamsClassic", "productStreamsWired", "send", "question", "quote", "radar", "readOnly", "recentlyViewedApp", "refresh", "regressionJob", "reporter", "reportingApp", "return", "save", "savedObjectsApp", "scale", "searchProfilerApp", "section", "securityAnalyticsApp", "securityApp", "securitySignalDetected", "securitySignalResolved", "server", "sessionViewer", "shard", "share", "significantEvents", "singleMetricViewer", "snowflake", "sortAscending", "sortDescending", "sortDown", "sortLeft", "sortRight", "sortUp", "sortable", "spaces", "spacesApp", "sparkles", "sqlApp", "star", "starEmpty", "starEmptySpace", "starFill", "starFilled", "starFillSpace", "starMinusEmpty", "starMinusFill", "starPlusEmpty", "starPlusFill", "stats", "stop", "stopFill", "stopSlash", "storage", "string", "sun", "swatchInput", "symlink", "tableDensityHigh", "tableDensityLow", "tableOfContents", "tag", "tear", "thermometer", "temperature", "thumbDown", "thumbUp", "timeline", "timelineWithArrow", "timelinePointer", "timelionApp", "refreshTime", "transitionBottomIn", "transitionBottomOut", "transitionLeftIn", "transitionLeftOut", "transitionTopIn", "transitionTopOut", "translate", "trash", "unfold", "upgradeAssistantApp", "uptimeApp", "user", "users", "usersRolesApp", "unarchive", "vectorSquare", "videoPlayer", "visGoal", "chartMetric", "visTimelion", "visVisualBuilder", "visualizeApp", "vulnerabilityManagementApp", "warning", "alert", "warningFill", "watchesApp", "web", "wordWrap", "wordWrapDisabled", "workflowsApp", "workflow", "workplaceSearchApp", "wrench", "tokenAlias", "tokenAnnotation", "tokenArray", "tokenBinary", "tokenBoolean", "tokenClass", "tokenCompletionSuggester", "tokenConstant", "tokenDate", "tokenDimension", "tokenElement", "tokenEnum", "tokenEnumMember", "tokenEvent", "tokenException", "tokenField", "tokenFile", "tokenFlattened", "tokenFunction", "tokenGeo", "tokenHistogram", "tokenInterface", "tokenIP", "tokenJoin", "tokenKey", "tokenKeyword", "tokenMethod", "tokenMetricCounter", "tokenMetricGauge", "tokenModule", "tokenNamespace", "tokenNested", "tokenNull", "tokenNumber", "tokenObject", "tokenOperator", "tokenPackage", "tokenParameter", "tokenPercolator", "tokenProperty", "tokenRange", "tokenRankFeature", "tokenRankFeatures", "tokenRepo", "tokenSearchType", "tokenSemanticText", "tokenShape", "tokenString", "tokenStruct", "tokenSymbol", "tokenTag", "tokenText", "tokenTokenCount", "tokenVariable", "tokenVectorDense", "tokenVectorSparse"]).isRequired, PropTypes.string.isRequired, PropTypes.elementType.isRequired]).isRequired, PropTypes.shape({
86
- type: PropTypes.oneOfType([PropTypes.oneOf(["accessibility", "addDataApp", "addToChat", "addToDashboard", "advancedSettingsApp", "agentApp", "aggregate", "alignBottom", "alignBottomLeft", "alignBottomRight", "alignCenterHorizontal", "alignCenterVertical", "alignLeft", "alignRight", "alignTop", "alignTopLeft", "alignTopRight", "analyzeEvent", "annotation", "chartAnomaly", "anomalySwimLane", "apmApp", "chartWaterfall", "appSearchApp", "apps", "chevronSingleDown", "chevronSingleLeft", "chevronSingleRight", "chevronSingleUp", "chevronLimitLeft", "chevronLimitRight", "article", "asterisk", "at", "archive", "axisX", "axisYLeft", "axisYRight", "auditbeatApp", "backgroundTask", "bell", "bellSlash", "beta", "bolt", "boxesVertical", "branch", "briefcase", "branchUser", "broom", "brush", "bug", "bulb", "bullseye", "calendar", "canvasApp", "casesApp", "chartChangePoint", "chartArea", "visArea", "chartAreaStack", "chartBarHorizontal", "chartBarHorizontalStack", "chartBarVertical", "visBarVertical", "chartBarVerticalStack", "chartGauge", "visGauge", "chartHeatmap", "chartLine", "visLine", "chartPie", "visPie", "chartTagCloud", "chartThreshold", "check", "checkCircle", "checkCircleFill", "popper", "classificationJob", "clickLeft", "clickRight", "clock", "clockCounter", "clockControl", "cloud", "cloudDrizzle", "cloudStormy", "cloudSunny", "cluster", "code", "codeApp", "paintBucket", "commandLine", "comment", "editorComment", "compare", "processor", "compute", "consoleApp", "container", "continuityAbove", "continuityAboveBelow", "continuityBelow", "continuityWithin", "contrast", "contrastFill", "controls", "copy", "crossProjectSearch", "createAdvancedJob", "createGenericJob", "createGeoJob", "createMultiMetricJob", "createPopulationJob", "createSingleMetricJob", "cross", "crossClusterReplicationApp", "crossCircle", "crosshair", "money", "scissors", "dashboardApp", "dashedCircle", "dataVisualizer", "database", "display", "devToolsApp", "discoverApp", "distributeHorizontal", "distributeVertical", "download", "drag", "dragHorizontal", "dragVertical", "document", "documentation", "documents", "dot", "dotInCircle", "chevronDoubleLeft", "chevronDoubleRight", "ellipsis", "textAlignCenter", "textAlignLeft", "textAlignRight", "textBold", "listCheck", "textHeading", "textItalic", "listNumber", "redo", "textStrike", "table", "visTable", "textUnderline", "undo", "listBullet", "list", "mail", "empty", "emsApp", "endpoint", "query", "eraser", "error", "errorFill", "esqlVis", "logOut", "maximize", "export", "upload", "external", "eye", "eyeSlash", "faceHappy", "faceNeutral", "faceSad", "tableInfo", "filebeatApp", "filter", "filterExclude", "filterIgnore", "filterInclude", "flask", "flag", "fleetApp", "fold", "folder", "folderClosed", "folderClose", "folderCheck", "folderExclamation", "folderOpen", "folderOpened", "frameNext", "framePrevious", "fullScreen", "fullScreenExit", "function", "gear", "gisApp", "globe", "gradient", "graphApp", "grid", "grokApp", "heart", "heartbeatApp", "help", "home", "hourglass", "if", "info", "image", "index", "indexClose", "tableCross", "indexEdit", "tablePencil", "indexManagementApp", "mapping", "indexOpen", "tablePlus", "indexPatternApp", "indexRollupApp", "indexRuntime", "tablePlay", "indexSettings", "tableGear", "tableTime", "infinity", "inputOutput", "inspect", "ip", "key", "keyboard", "queryField", "kqlFunction", "queryOperand", "querySelector", "queryValue", "kubernetesNode", "kubernetesPod", "cube", "rocket", "layers", "lensApp", "text", "lineBreak", "lineBreakSlash", "lineDash", "lineDot", "lineSolid", "link", "linkSlash", "lock", "lockOpen", "pattern", "logRateAnalysis", "logoAWS", "logoAWSMono", "logoAerospike", "logoApache", "logoAppSearch", "logoAzure", "logoAzureMono", "logoBeats", "logoBusinessAnalytics", "logoCeph", "logoCloud", "logoCloudEnterprise", "logoCode", "logoCodesandbox", "logoCouchbase", "logoDocker", "logoDropwizard", "logoElastic", "logoElasticStack", "logoElasticsearch", "logoEnterpriseSearch", "logoEtcd", "logoGCP", "logoGCPMono", "logoGithub", "logoGmail", "logoGolang", "logoGoogleG", "logoHAproxy", "logoIBM", "logoIBMMono", "logoKafka", "logoKibana", "logoKubernetes", "logoLogging", "logoLogstash", "logoMaps", "logoMemcached", "logoMetrics", "logoMongodb", "logoMySQL", "logoNginx", "logoObservability", "logoOsquery", "logoPhp", "logoPostgres", "logoPrometheus", "logoRabbitmq", "logoRedis", "logoSecurity", "logoSiteSearch", "logoSketch", "logoSlack", "logoUptime", "logoVectorDB", "logoVulnerabilityManagement", "logoWebhook", "logoWindows", "logoWorkplaceSearch", "logsApp", "logstashFilter", "logstashInput", "logstashOutput", "queue", "machineLearningApp", "magnet", "magnify", "search", "magnifyExclamation", "magnifyMinus", "magnifyPlus", "managementApp", "map", "mapMarker", "waypoint", "megaphone", "memory", "menu", "menuDown", "menuLeft", "menuRight", "menuUp", "merge", "metricbeatApp", "metricsApp", "minimize", "minus", "minusCircle", "minusSquare", "mobile", "monitoringApp", "moon", "move", "namespace", "nested", "vectorTriangle", "notebookApp", "number", "wifiSlash", "wifi", "outlierDetectionJob", "package", "packetbeatApp", "pageSelect", "pagesSelect", "documentsCheck", "palette", "paperClip", "partial", "pause", "payment", "pencil", "percent", "pin", "pinFill", "pinFilled", "pipelineApp", "pivot", "play", "plugs", "plus", "plusCircle", "plusSquare", "presentation", "productAgent", "productCloudInfra", "productDashboard", "productDiscover", "productML", "productStreamsClassic", "productStreamsWired", "send", "question", "quote", "radar", "readOnly", "recentlyViewedApp", "refresh", "regressionJob", "reporter", "reportingApp", "return", "save", "savedObjectsApp", "scale", "searchProfilerApp", "section", "securityAnalyticsApp", "securityApp", "securitySignalDetected", "securitySignalResolved", "server", "sessionViewer", "shard", "share", "significantEvents", "singleMetricViewer", "snowflake", "sortAscending", "sortDescending", "sortDown", "sortLeft", "sortRight", "sortUp", "sortable", "spaces", "spacesApp", "sparkles", "sqlApp", "star", "starEmpty", "starEmptySpace", "starFill", "starFilled", "starFillSpace", "starMinusEmpty", "starMinusFill", "starPlusEmpty", "starPlusFill", "stats", "stop", "stopFill", "stopSlash", "storage", "string", "sun", "swatchInput", "symlink", "tableDensityHigh", "tableDensityLow", "tableOfContents", "tag", "tear", "thermometer", "temperature", "thumbDown", "thumbUp", "timeline", "timelineWithArrow", "timelinePointer", "timelionApp", "refreshTime", "transitionBottomIn", "transitionBottomOut", "transitionLeftIn", "transitionLeftOut", "transitionTopIn", "transitionTopOut", "translate", "trash", "unfold", "upgradeAssistantApp", "uptimeApp", "user", "users", "usersRolesApp", "unarchive", "vectorSquare", "videoPlayer", "visGoal", "chartMetric", "visTimelion", "visVisualBuilder", "visualizeApp", "vulnerabilityManagementApp", "warning", "alert", "warningFill", "watchesApp", "web", "wordWrap", "wordWrapDisabled", "workflowsApp", "workflow", "workplaceSearchApp", "wrench", "tokenAlias", "tokenAnnotation", "tokenArray", "tokenBinary", "tokenBoolean", "tokenClass", "tokenCompletionSuggester", "tokenConstant", "tokenDate", "tokenDimension", "tokenElement", "tokenEnum", "tokenEnumMember", "tokenEvent", "tokenException", "tokenField", "tokenFile", "tokenFlattened", "tokenFunction", "tokenGeo", "tokenHistogram", "tokenInterface", "tokenIP", "tokenJoin", "tokenKey", "tokenKeyword", "tokenMethod", "tokenMetricCounter", "tokenMetricGauge", "tokenModule", "tokenNamespace", "tokenNested", "tokenNull", "tokenNumber", "tokenObject", "tokenOperator", "tokenPackage", "tokenParameter", "tokenPercolator", "tokenProperty", "tokenRange", "tokenRankFeature", "tokenRankFeatures", "tokenRepo", "tokenSearchType", "tokenSemanticText", "tokenShape", "tokenString", "tokenStruct", "tokenSymbol", "tokenTag", "tokenText", "tokenTokenCount", "tokenVariable", "tokenVectorDense", "tokenVectorSparse"]).isRequired, PropTypes.string.isRequired, PropTypes.elementType.isRequired]).isRequired,
85
+ icon: PropTypes.oneOfType([PropTypes.oneOfType([PropTypes.oneOf(["accessibility", "addDataApp", "addToChat", "addToDashboard", "advancedSettingsApp", "agentApp", "aggregate", "alignBottom", "alignBottomLeft", "alignBottomRight", "alignCenterHorizontal", "alignCenterVertical", "alignLeft", "alignRight", "alignTop", "alignTopLeft", "alignTopRight", "analyzeEvent", "annotation", "chartAnomaly", "anomalySwimLane", "apmApp", "chartWaterfall", "appSearchApp", "apps", "chevronSingleDown", "chevronSingleLeft", "chevronSingleRight", "chevronSingleUp", "chevronLimitLeft", "chevronLimitRight", "article", "asterisk", "at", "archive", "axisX", "axisYLeft", "axisYRight", "auditbeatApp", "backgroundTask", "bell", "bellSlash", "beta", "bolt", "boxesVertical", "branch", "briefcase", "branchUser", "broom", "brush", "bug", "bulb", "bullseye", "calendar", "canvasApp", "casesApp", "chartChangePoint", "chartArea", "visArea", "chartAreaStack", "chartBarHorizontal", "chartBarHorizontalStack", "chartBarVertical", "visBarVertical", "chartBarVerticalStack", "chartGauge", "visGauge", "chartHeatmap", "chartLine", "visLine", "chartPie", "visPie", "chartTagCloud", "chartThreshold", "check", "checkCircle", "checkCircleFill", "popper", "classificationJob", "clickLeft", "clickRight", "clock", "clockCounter", "clockControl", "cloud", "cloudBolt", "cloudDrizzle", "cloudRain", "cloudStormy", "cloudSun", "cloudSunny", "cluster", "code", "codeApp", "paintBucket", "commandLine", "comment", "editorComment", "compare", "processor", "compute", "consoleApp", "container", "continuityAbove", "continuityAboveBelow", "continuityBelow", "continuityWithin", "contrast", "contrastFill", "controls", "copy", "crossProjectSearch", "createAdvancedJob", "createGenericJob", "createGeoJob", "createMultiMetricJob", "createPopulationJob", "createSingleMetricJob", "cross", "crossClusterReplicationApp", "crossCircle", "crosshair", "cursorDefault", "money", "scissors", "dashboardApp", "dashedCircle", "dataVisualizer", "database", "display", "devToolsApp", "discoverApp", "distributeHorizontal", "distributeVertical", "download", "drag", "dragHorizontal", "dragVertical", "document", "documentation", "documents", "dot", "dotInCircle", "chevronDoubleLeft", "chevronDoubleRight", "ellipsis", "textAlignCenter", "textAlignLeft", "textAlignRight", "textBold", "listCheck", "textHeading", "textItalic", "listNumber", "redo", "textStrike", "table", "visTable", "textUnderline", "undo", "listBullet", "list", "mail", "empty", "emsApp", "endpoint", "query", "eraser", "error", "errorFill", "esqlVis", "logIn", "logOut", "maximize", "export", "upload", "external", "eye", "eyeSlash", "faceHappy", "faceNeutral", "faceSad", "tableInfo", "filebeatApp", "filter", "filterExclude", "filterIgnore", "filterInclude", "flask", "flag", "fleetApp", "fold", "folder", "folderClosed", "folderClose", "folderCheck", "folderExclamation", "folderOpen", "folderOpened", "frameNext", "framePrevious", "fullScreen", "fullScreenExit", "function", "gear", "gisApp", "globe", "gradient", "graphApp", "grid", "grokApp", "heart", "heartbeatApp", "help", "home", "hourglass", "if", "info", "image", "index", "indexClose", "tableCross", "indexEdit", "tablePencil", "indexManagementApp", "mapping", "indexOpen", "tablePlus", "indexPatternApp", "indexRollupApp", "indexRuntime", "tablePlay", "indexSettings", "tableGear", "tableTime", "infinity", "inputOutput", "inspect", "ip", "key", "keyboard", "queryField", "kqlFunction", "queryOperand", "querySelector", "queryValue", "kubernetesNamespace", "kubernetesNode", "kubernetesPod", "cube", "rocket", "layers", "lensApp", "text", "lineBreak", "lineBreakSlash", "lineDash", "lineDot", "lineSolid", "link", "linkSlash", "lock", "lockOpen", "pattern", "logRateAnalysis", "logoAWS", "logoAWSMono", "logoAerospike", "logoApache", "logoAppSearch", "logoAzure", "logoAzureMono", "logoBeats", "logoBusinessAnalytics", "logoCeph", "logoCloud", "logoCloudEnterprise", "logoCode", "logoCodesandbox", "logoCouchbase", "logoDocker", "logoDropwizard", "logoElastic", "logoElasticStack", "logoElasticsearch", "logoEnterpriseSearch", "logoEtcd", "logoGCP", "logoGCPMono", "logoGithub", "logoGmail", "logoGolang", "logoGoogleG", "logoHAproxy", "logoIBM", "logoIBMMono", "logoKafka", "logoKibana", "logoKubernetes", "logoLogging", "logoLogstash", "logoMaps", "logoMemcached", "logoMetrics", "logoMongodb", "logoMySQL", "logoNginx", "logoObservability", "logoOsquery", "logoPhp", "logoPostgres", "logoPrometheus", "logoRabbitmq", "logoRedis", "logoSecurity", "logoSiteSearch", "logoSketch", "logoSlack", "logoUptime", "logoVectorDB", "logoVulnerabilityManagement", "logoWebhook", "logoWindows", "logoWorkplaceSearch", "logsApp", "logstashFilter", "logstashInput", "logstashOutput", "queue", "machineLearningApp", "magnet", "magnify", "search", "magnifyExclamation", "magnifyMinus", "magnifyPlus", "managementApp", "map", "mapMarker", "waypoint", "megaphone", "memory", "menu", "menuDown", "menuLeft", "menuRight", "menuUp", "merge", "metricbeatApp", "metricsApp", "minimize", "minus", "minusCircle", "minusSquare", "mobile", "monitoringApp", "moon", "move", "namespace", "nested", "vectorTriangle", "notebookApp", "number", "wifiSlash", "wifi", "outlierDetectionJob", "package", "packetbeatApp", "pageSelect", "pagesSelect", "documentsCheck", "palette", "paperClip", "partial", "pause", "payment", "pencil", "percent", "pin", "pinFill", "pinFilled", "pipelineApp", "pivot", "play", "plugs", "plus", "plusCircle", "plusSquare", "presentation", "productAgent", "productCloudInfra", "productDashboard", "productDiscover", "productML", "productStreamsClassic", "productStreamsWired", "productTimelion", "productTSVB", "push", "send", "question", "quote", "radar", "readOnly", "recentlyViewedApp", "refresh", "regressionJob", "reporter", "reportingApp", "return", "routeSplit", "save", "savedObjectsApp", "scale", "searchProfilerApp", "section", "securityAnalyticsApp", "securityApp", "securitySignalDetected", "securitySignalResolved", "server", "sessionViewer", "shard", "share", "significantEvents", "singleMetricViewer", "snowflake", "sortAscending", "sortDescending", "sortDown", "sortLeft", "sortRight", "sortUp", "sortable", "spaces", "spacesApp", "sparkles", "sqlApp", "star", "starEmpty", "starEmptySpace", "starFill", "starFilled", "starFillSpace", "starMinusEmpty", "starMinusFill", "starPlusEmpty", "starPlusFill", "stats", "stop", "stopFill", "stopSlash", "storage", "string", "sun", "swatchInput", "symlink", "tableDensityHigh", "tableDensityLow", "tableOfContents", "tag", "tear", "thermometer", "temperature", "thumbDown", "thumbUp", "timeline", "timelineWithArrow", "timelinePointer", "timelionApp", "refreshTime", "transitionBottomIn", "transitionBottomOut", "transitionLeftIn", "transitionLeftOut", "transitionRightIn", "transitionRightOut", "transitionTopIn", "transitionTopOut", "translate", "trash", "unfold", "upgradeAssistantApp", "uptimeApp", "user", "users", "usersRolesApp", "unarchive", "vectorSquare", "videoPlayer", "visGoal", "chartMetric", "visTimelion", "visVisualBuilder", "visualizeApp", "vulnerabilityManagementApp", "warning", "alert", "warningFill", "watchesApp", "web", "wordWrap", "wordWrapDisabled", "workflowsApp", "workflow", "workplaceSearchApp", "wrench", "tokenAlias", "tokenAnnotation", "tokenArray", "tokenBinary", "tokenBoolean", "tokenClass", "tokenCompletionSuggester", "tokenConstant", "tokenDate", "tokenDimension", "tokenElement", "tokenEnum", "tokenEnumMember", "tokenEvent", "tokenException", "tokenField", "tokenFile", "tokenFlattened", "tokenFunction", "tokenGeo", "tokenHistogram", "tokenInterface", "tokenIP", "tokenJoin", "tokenKey", "tokenKeyword", "tokenMethod", "tokenMetricCounter", "tokenMetricGauge", "tokenModule", "tokenNamespace", "tokenNested", "tokenNull", "tokenNumber", "tokenObject", "tokenOperator", "tokenPackage", "tokenParameter", "tokenPercolator", "tokenProperty", "tokenRange", "tokenRankFeature", "tokenRankFeatures", "tokenRepo", "tokenSearchType", "tokenSemanticText", "tokenShape", "tokenString", "tokenStruct", "tokenSymbol", "tokenTag", "tokenText", "tokenTokenCount", "tokenVariable", "tokenVectorDense", "tokenVectorSparse"]).isRequired, PropTypes.string.isRequired, PropTypes.elementType.isRequired]).isRequired, PropTypes.shape({
86
+ type: PropTypes.oneOfType([PropTypes.oneOf(["accessibility", "addDataApp", "addToChat", "addToDashboard", "advancedSettingsApp", "agentApp", "aggregate", "alignBottom", "alignBottomLeft", "alignBottomRight", "alignCenterHorizontal", "alignCenterVertical", "alignLeft", "alignRight", "alignTop", "alignTopLeft", "alignTopRight", "analyzeEvent", "annotation", "chartAnomaly", "anomalySwimLane", "apmApp", "chartWaterfall", "appSearchApp", "apps", "chevronSingleDown", "chevronSingleLeft", "chevronSingleRight", "chevronSingleUp", "chevronLimitLeft", "chevronLimitRight", "article", "asterisk", "at", "archive", "axisX", "axisYLeft", "axisYRight", "auditbeatApp", "backgroundTask", "bell", "bellSlash", "beta", "bolt", "boxesVertical", "branch", "briefcase", "branchUser", "broom", "brush", "bug", "bulb", "bullseye", "calendar", "canvasApp", "casesApp", "chartChangePoint", "chartArea", "visArea", "chartAreaStack", "chartBarHorizontal", "chartBarHorizontalStack", "chartBarVertical", "visBarVertical", "chartBarVerticalStack", "chartGauge", "visGauge", "chartHeatmap", "chartLine", "visLine", "chartPie", "visPie", "chartTagCloud", "chartThreshold", "check", "checkCircle", "checkCircleFill", "popper", "classificationJob", "clickLeft", "clickRight", "clock", "clockCounter", "clockControl", "cloud", "cloudBolt", "cloudDrizzle", "cloudRain", "cloudStormy", "cloudSun", "cloudSunny", "cluster", "code", "codeApp", "paintBucket", "commandLine", "comment", "editorComment", "compare", "processor", "compute", "consoleApp", "container", "continuityAbove", "continuityAboveBelow", "continuityBelow", "continuityWithin", "contrast", "contrastFill", "controls", "copy", "crossProjectSearch", "createAdvancedJob", "createGenericJob", "createGeoJob", "createMultiMetricJob", "createPopulationJob", "createSingleMetricJob", "cross", "crossClusterReplicationApp", "crossCircle", "crosshair", "cursorDefault", "money", "scissors", "dashboardApp", "dashedCircle", "dataVisualizer", "database", "display", "devToolsApp", "discoverApp", "distributeHorizontal", "distributeVertical", "download", "drag", "dragHorizontal", "dragVertical", "document", "documentation", "documents", "dot", "dotInCircle", "chevronDoubleLeft", "chevronDoubleRight", "ellipsis", "textAlignCenter", "textAlignLeft", "textAlignRight", "textBold", "listCheck", "textHeading", "textItalic", "listNumber", "redo", "textStrike", "table", "visTable", "textUnderline", "undo", "listBullet", "list", "mail", "empty", "emsApp", "endpoint", "query", "eraser", "error", "errorFill", "esqlVis", "logIn", "logOut", "maximize", "export", "upload", "external", "eye", "eyeSlash", "faceHappy", "faceNeutral", "faceSad", "tableInfo", "filebeatApp", "filter", "filterExclude", "filterIgnore", "filterInclude", "flask", "flag", "fleetApp", "fold", "folder", "folderClosed", "folderClose", "folderCheck", "folderExclamation", "folderOpen", "folderOpened", "frameNext", "framePrevious", "fullScreen", "fullScreenExit", "function", "gear", "gisApp", "globe", "gradient", "graphApp", "grid", "grokApp", "heart", "heartbeatApp", "help", "home", "hourglass", "if", "info", "image", "index", "indexClose", "tableCross", "indexEdit", "tablePencil", "indexManagementApp", "mapping", "indexOpen", "tablePlus", "indexPatternApp", "indexRollupApp", "indexRuntime", "tablePlay", "indexSettings", "tableGear", "tableTime", "infinity", "inputOutput", "inspect", "ip", "key", "keyboard", "queryField", "kqlFunction", "queryOperand", "querySelector", "queryValue", "kubernetesNamespace", "kubernetesNode", "kubernetesPod", "cube", "rocket", "layers", "lensApp", "text", "lineBreak", "lineBreakSlash", "lineDash", "lineDot", "lineSolid", "link", "linkSlash", "lock", "lockOpen", "pattern", "logRateAnalysis", "logoAWS", "logoAWSMono", "logoAerospike", "logoApache", "logoAppSearch", "logoAzure", "logoAzureMono", "logoBeats", "logoBusinessAnalytics", "logoCeph", "logoCloud", "logoCloudEnterprise", "logoCode", "logoCodesandbox", "logoCouchbase", "logoDocker", "logoDropwizard", "logoElastic", "logoElasticStack", "logoElasticsearch", "logoEnterpriseSearch", "logoEtcd", "logoGCP", "logoGCPMono", "logoGithub", "logoGmail", "logoGolang", "logoGoogleG", "logoHAproxy", "logoIBM", "logoIBMMono", "logoKafka", "logoKibana", "logoKubernetes", "logoLogging", "logoLogstash", "logoMaps", "logoMemcached", "logoMetrics", "logoMongodb", "logoMySQL", "logoNginx", "logoObservability", "logoOsquery", "logoPhp", "logoPostgres", "logoPrometheus", "logoRabbitmq", "logoRedis", "logoSecurity", "logoSiteSearch", "logoSketch", "logoSlack", "logoUptime", "logoVectorDB", "logoVulnerabilityManagement", "logoWebhook", "logoWindows", "logoWorkplaceSearch", "logsApp", "logstashFilter", "logstashInput", "logstashOutput", "queue", "machineLearningApp", "magnet", "magnify", "search", "magnifyExclamation", "magnifyMinus", "magnifyPlus", "managementApp", "map", "mapMarker", "waypoint", "megaphone", "memory", "menu", "menuDown", "menuLeft", "menuRight", "menuUp", "merge", "metricbeatApp", "metricsApp", "minimize", "minus", "minusCircle", "minusSquare", "mobile", "monitoringApp", "moon", "move", "namespace", "nested", "vectorTriangle", "notebookApp", "number", "wifiSlash", "wifi", "outlierDetectionJob", "package", "packetbeatApp", "pageSelect", "pagesSelect", "documentsCheck", "palette", "paperClip", "partial", "pause", "payment", "pencil", "percent", "pin", "pinFill", "pinFilled", "pipelineApp", "pivot", "play", "plugs", "plus", "plusCircle", "plusSquare", "presentation", "productAgent", "productCloudInfra", "productDashboard", "productDiscover", "productML", "productStreamsClassic", "productStreamsWired", "productTimelion", "productTSVB", "push", "send", "question", "quote", "radar", "readOnly", "recentlyViewedApp", "refresh", "regressionJob", "reporter", "reportingApp", "return", "routeSplit", "save", "savedObjectsApp", "scale", "searchProfilerApp", "section", "securityAnalyticsApp", "securityApp", "securitySignalDetected", "securitySignalResolved", "server", "sessionViewer", "shard", "share", "significantEvents", "singleMetricViewer", "snowflake", "sortAscending", "sortDescending", "sortDown", "sortLeft", "sortRight", "sortUp", "sortable", "spaces", "spacesApp", "sparkles", "sqlApp", "star", "starEmpty", "starEmptySpace", "starFill", "starFilled", "starFillSpace", "starMinusEmpty", "starMinusFill", "starPlusEmpty", "starPlusFill", "stats", "stop", "stopFill", "stopSlash", "storage", "string", "sun", "swatchInput", "symlink", "tableDensityHigh", "tableDensityLow", "tableOfContents", "tag", "tear", "thermometer", "temperature", "thumbDown", "thumbUp", "timeline", "timelineWithArrow", "timelinePointer", "timelionApp", "refreshTime", "transitionBottomIn", "transitionBottomOut", "transitionLeftIn", "transitionLeftOut", "transitionRightIn", "transitionRightOut", "transitionTopIn", "transitionTopOut", "translate", "trash", "unfold", "upgradeAssistantApp", "uptimeApp", "user", "users", "usersRolesApp", "unarchive", "vectorSquare", "videoPlayer", "visGoal", "chartMetric", "visTimelion", "visVisualBuilder", "visualizeApp", "vulnerabilityManagementApp", "warning", "alert", "warningFill", "watchesApp", "web", "wordWrap", "wordWrapDisabled", "workflowsApp", "workflow", "workplaceSearchApp", "wrench", "tokenAlias", "tokenAnnotation", "tokenArray", "tokenBinary", "tokenBoolean", "tokenClass", "tokenCompletionSuggester", "tokenConstant", "tokenDate", "tokenDimension", "tokenElement", "tokenEnum", "tokenEnumMember", "tokenEvent", "tokenException", "tokenField", "tokenFile", "tokenFlattened", "tokenFunction", "tokenGeo", "tokenHistogram", "tokenInterface", "tokenIP", "tokenJoin", "tokenKey", "tokenKeyword", "tokenMethod", "tokenMetricCounter", "tokenMetricGauge", "tokenModule", "tokenNamespace", "tokenNested", "tokenNull", "tokenNumber", "tokenObject", "tokenOperator", "tokenPackage", "tokenParameter", "tokenPercolator", "tokenProperty", "tokenRange", "tokenRankFeature", "tokenRankFeatures", "tokenRepo", "tokenSearchType", "tokenSemanticText", "tokenShape", "tokenString", "tokenStruct", "tokenSymbol", "tokenTag", "tokenText", "tokenTokenCount", "tokenVariable", "tokenVectorDense", "tokenVectorSparse"]).isRequired, PropTypes.string.isRequired, PropTypes.elementType.isRequired]).isRequired,
87
87
  side: PropTypes.any,
88
88
  color: PropTypes.oneOfType([PropTypes.string.isRequired, PropTypes.any.isRequired]),
89
89
  ref: PropTypes.oneOfType([PropTypes.string.isRequired, PropTypes.func.isRequired])
@@ -1,27 +1,17 @@
1
- var _excluded = ["stylesMemoizer", "id", "name", "initialPromptText", "className", "disabled", "compressed", "onChange", "isInvalid", "fullWidth", "isLoading", "display", "files"];
2
- function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
1
+ var _excluded = ["id", "name", "initialPromptText", "className", "disabled", "compressed", "onChange", "isInvalid", "fullWidth", "isLoading", "display", "files"];
3
2
  function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
4
3
  function _toConsumableArray(r) { return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread(); }
5
4
  function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
6
- function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
7
5
  function _iterableToArray(r) { if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r); }
8
6
  function _arrayWithoutHoles(r) { if (Array.isArray(r)) return _arrayLikeToArray(r); }
7
+ function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
8
+ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
9
+ function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
9
10
  function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
11
+ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
12
+ function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
10
13
  function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], t.indexOf(o) >= 0 || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
11
14
  function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.indexOf(n) >= 0) continue; t[n] = r[n]; } return t; }
12
- function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
13
- function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
14
- function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
15
- function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
16
- function _possibleConstructorReturn(t, e) { if (e && ("object" == _typeof(e) || "function" == typeof e)) return e; if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined"); return _assertThisInitialized(t); }
17
- function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; }
18
- function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
19
- function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }
20
- function _inherits(t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && _setPrototypeOf(t, e); }
21
- function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
22
- function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
23
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
24
- function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
25
15
  /*
26
16
  * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
27
17
  * or more contributor license agreements. Licensed under the Elastic License
@@ -30,231 +20,204 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
30
20
  * Side Public License, v 1.
31
21
  */
32
22
 
33
- import React, { Component } from 'react';
23
+ import React, { forwardRef, useCallback, useEffect, useImperativeHandle, useRef, useState } from 'react';
34
24
  import PropTypes from "prop-types";
35
25
  import classNames from 'classnames';
36
- import { withEuiStylesMemoizer, htmlIdGenerator } from '../../../services';
26
+ import { useEuiMemoizedStyles, useGeneratedHtmlId } from '../../../services';
37
27
  import { EuiButtonEmpty } from '../../button';
38
28
  import { EuiProgress } from '../../progress';
39
29
  import { EuiIcon } from '../../icon';
40
- import { EuiI18n } from '../../i18n';
30
+ import { EuiI18n, useEuiI18n } from '../../i18n';
41
31
  import { EuiLoadingSpinner } from '../../loading';
42
- import { FormContext } from '../eui_form_context';
32
+ import { useFormContext } from '../eui_form_context';
43
33
  import { EuiValidatableControl } from '../validatable_control';
44
34
  import { EuiFormControlLayoutClearButton } from '../form_control_layout/form_control_layout_clear_button';
45
35
  import { euiFilePickerStyles } from './file_picker.styles';
46
36
  import { jsx as ___EmotionJSX } from "@emotion/react";
47
- export var EuiFilePickerClass = /*#__PURE__*/function (_Component) {
48
- function EuiFilePickerClass() {
49
- var _this;
50
- _classCallCheck(this, EuiFilePickerClass);
51
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
52
- args[_key] = arguments[_key];
53
- }
54
- _this = _callSuper(this, EuiFilePickerClass, [].concat(args));
55
- _defineProperty(_this, "fileInput", null);
56
- _defineProperty(_this, "generatedId", htmlIdGenerator()());
57
- _defineProperty(_this, "getPromptTextFromFileList", function (files) {
58
- if (!files || files.length === 0) {
59
- return null;
60
- }
61
- if (files.length > 1) {
62
- return ___EmotionJSX(EuiI18n, {
63
- token: "euiFilePicker.filesSelected",
64
- default: "{fileCount} files selected",
65
- values: {
66
- fileCount: files.length
67
- }
68
- });
69
- }
70
- return files[0].name;
71
- });
72
- _defineProperty(_this, "state", {
73
- promptText: _this.props.files ? _this.getPromptTextFromFileList(_this.props.files) : null,
74
- isHoveringDrop: false
75
- });
76
- _defineProperty(_this, "handleChange", function () {
77
- if (!_this.fileInput) return;
78
- if (_this.fileInput.files && _this.fileInput.files.length === 1) {
79
- _this.setState({
80
- promptText: _this.fileInput.value.split('\\').pop()
81
- });
82
- } else {
83
- _this.setState({
84
- promptText: _this.getPromptTextFromFileList(_this.fileInput.files ? Array.from(_this.fileInput.files) : null)
85
- });
86
- }
87
- var onChange = _this.props.onChange;
88
- if (onChange) {
89
- onChange(_this.fileInput.files && _this.fileInput.files.length > 0 ? _this.fileInput.files : null);
90
- }
91
- });
92
- _defineProperty(_this, "removeFiles", function (e) {
93
- if (e) {
94
- e.stopPropagation();
95
- e.preventDefault();
96
- }
97
- if (!_this.fileInput) return;
98
- _this.fileInput.value = '';
99
- _this.handleChange();
100
- });
101
- _defineProperty(_this, "showDrop", function () {
102
- if (!_this.props.disabled) {
103
- _this.setState({
104
- isHoveringDrop: true
105
- });
37
+ var getPromptTextFromFileList = function getPromptTextFromFileList(files) {
38
+ if (!files || files.length === 0) {
39
+ return null;
40
+ }
41
+ if (files.length > 1) {
42
+ return ___EmotionJSX(EuiI18n, {
43
+ token: "euiFilePicker.filesSelected",
44
+ default: "{fileCount} files selected",
45
+ values: {
46
+ fileCount: files.length
106
47
  }
107
48
  });
108
- _defineProperty(_this, "hideDrop", function () {
109
- _this.setState({
110
- isHoveringDrop: false
111
- });
112
- });
113
- return _this;
114
49
  }
115
- _inherits(EuiFilePickerClass, _Component);
116
- return _createClass(EuiFilePickerClass, [{
117
- key: "componentDidUpdate",
118
- value: function componentDidUpdate(prevProps) {
119
- // Update prompt text when files prop changes
120
- if (this.props.files !== prevProps.files) {
121
- var _this$props$files;
122
- this.setState({
123
- promptText: this.getPromptTextFromFileList((_this$props$files = this.props.files) !== null && _this$props$files !== void 0 ? _this$props$files : null)
124
- });
125
- }
126
- }
127
- }, {
128
- key: "render",
129
- value: function render() {
130
- var _this2 = this;
131
- var _ref = this.context,
132
- defaultFullWidth = _ref.defaultFullWidth;
133
- return ___EmotionJSX(EuiI18n, {
134
- token: "euiFilePicker.removeSelectedAriaLabel",
135
- default: "Remove selected files"
136
- }, function (removeSelectedAriaLabel) {
137
- var _this2$props = _this2.props,
138
- stylesMemoizer = _this2$props.stylesMemoizer,
139
- id = _this2$props.id,
140
- name = _this2$props.name,
141
- initialPromptText = _this2$props.initialPromptText,
142
- className = _this2$props.className,
143
- disabled = _this2$props.disabled,
144
- compressed = _this2$props.compressed,
145
- onChange = _this2$props.onChange,
146
- isInvalid = _this2$props.isInvalid,
147
- _this2$props$fullWidt = _this2$props.fullWidth,
148
- fullWidth = _this2$props$fullWidt === void 0 ? defaultFullWidth : _this2$props$fullWidt,
149
- isLoading = _this2$props.isLoading,
150
- display = _this2$props.display,
151
- files = _this2$props.files,
152
- rest = _objectWithoutProperties(_this2$props, _excluded);
153
- var promptId = "".concat(id || _this2.generatedId, "-filePicker__prompt");
154
- var isOverridingInitialPrompt = _this2.state.promptText != null;
155
- var normalFormControl = display === 'default';
156
- var classes = classNames('euiFilePicker', {
157
- 'euiFilePicker-isDroppingFile': _this2.state.isHoveringDrop,
158
- 'euiFilePicker-isInvalid': isInvalid,
159
- 'euiFilePicker-isLoading': isLoading,
160
- 'euiFilePicker-hasFiles': isOverridingInitialPrompt
161
- }, className);
162
- var styles = stylesMemoizer(euiFilePickerStyles);
163
- var cssStyles = [styles.euiFilePicker, fullWidth ? styles.fullWidth : styles.formWidth, _this2.state.isHoveringDrop && styles.isDroppingFile, isInvalid && !disabled && styles.invalid, isOverridingInitialPrompt && !disabled && styles.hasFiles, isLoading && styles.loading];
164
- var inputStyles = [styles.input.euiFilePicker__input, !normalFormControl && !disabled && styles.input.largeInteractive];
165
- var promptStyles = [styles.euiFilePicker__prompt, disabled && styles.disabled].concat(_toConsumableArray(normalFormControl ? [compressed ? styles.compressed : styles.uncompressed] : [styles.large.large, compressed ? styles.large.compressed : styles.large.uncompressed]));
166
- var iconStyles = [styles.icon.euiFilePicker__icon].concat(_toConsumableArray(normalFormControl ? [styles.icon.normal, compressed ? styles.icon.compresssed : styles.icon.uncompressed] : [styles.icon.large]));
167
- var rightIconStyles = normalFormControl ? [styles.rightIcon.euiFilePicker__rightIcon, compressed ? styles.rightIcon.compressed : styles.rightIcon.uncompressed] : undefined;
168
- var clearButton;
169
- if (isLoading && normalFormControl) {
170
- // Override clear button with loading spinner if it is in loading state
171
- clearButton = ___EmotionJSX(EuiLoadingSpinner, {
172
- css: rightIconStyles,
173
- className: "euiFilePicker__loadingSpinner",
174
- size: compressed ? 's' : 'm'
175
- });
176
- } else if (isOverridingInitialPrompt && !disabled) {
177
- if (normalFormControl) {
178
- clearButton = ___EmotionJSX(EuiFormControlLayoutClearButton, {
179
- "aria-label": removeSelectedAriaLabel,
180
- css: [styles.euiFilePicker__clearButton, rightIconStyles, ";label:clearButton;"],
181
- className: "euiFilePicker__clearButton",
182
- onClick: _this2.removeFiles,
183
- size: compressed ? 's' : 'm'
184
- });
185
- } else {
186
- clearButton = ___EmotionJSX(EuiButtonEmpty, {
187
- "aria-label": removeSelectedAriaLabel,
188
- css: styles.euiFilePicker__clearButton,
189
- className: "euiFilePicker__clearButton",
190
- size: "xs",
191
- onClick: _this2.removeFiles
192
- }, ___EmotionJSX(EuiI18n, {
193
- token: "euiFilePicker.removeSelected",
194
- default: "Remove"
195
- }));
196
- }
197
- } else {
198
- clearButton = null;
199
- }
200
- var loader = !normalFormControl && isLoading && ___EmotionJSX(EuiProgress, {
201
- size: "xs",
202
- color: "accent",
203
- position: "absolute"
204
- });
205
- var iconColor = isInvalid ? 'danger' : disabled ? 'disabled' : 'text';
206
- return ___EmotionJSX("div", {
207
- css: cssStyles,
208
- className: classes
209
- }, ___EmotionJSX(EuiValidatableControl, {
210
- isInvalid: isInvalid
211
- }, ___EmotionJSX("input", _extends({
212
- type: "file",
213
- id: id,
214
- name: name,
215
- css: inputStyles,
216
- className: "euiFilePicker__input",
217
- onChange: _this2.handleChange,
218
- ref: function ref(input) {
219
- _this2.fileInput = input;
220
- },
221
- onDragOver: _this2.showDrop,
222
- onDragLeave: _this2.hideDrop,
223
- onDrop: _this2.hideDrop,
224
- disabled: disabled,
225
- "aria-describedby": promptId
226
- }, rest))), ___EmotionJSX("div", {
227
- css: promptStyles,
228
- className: "euiFilePicker__prompt",
229
- id: promptId
230
- }, ___EmotionJSX(EuiIcon, {
231
- css: iconStyles,
232
- className: "euiFilePicker__icon",
233
- color: iconColor,
234
- type: isInvalid ? 'warning' : disabled ? 'minusCircle' : 'upload',
235
- size: normalFormControl ? 'm' : 'l',
236
- "aria-hidden": "true"
237
- }), ___EmotionJSX("span", {
238
- className: "euiFilePicker__promptText"
239
- }, _this2.state.promptText || initialPromptText), clearButton, loader));
240
- });
241
- }
242
- }]);
243
- }(Component);
50
+ return files[0].name;
51
+ };
244
52
 
245
53
  /**
246
54
  * @see {@link https://eui.elastic.co/docs/components/forms/other/file-picker/|EuiFilePicker documentation}
247
55
  */
248
- _defineProperty(EuiFilePickerClass, "contextType", FormContext);
249
- _defineProperty(EuiFilePickerClass, "defaultProps", {
250
- initialPromptText: ___EmotionJSX(EuiI18n, {
251
- token: "euiFilePicker.promptText",
252
- default: "Select or drag and drop a file"
253
- }),
254
- compressed: false,
255
- display: 'large'
56
+ export var EuiFilePicker = /*#__PURE__*/forwardRef(function (props, ref) {
57
+ var _useFormContext = useFormContext(),
58
+ defaultFullWidth = _useFormContext.defaultFullWidth;
59
+ var id = props.id,
60
+ name = props.name,
61
+ _props$initialPromptT = props.initialPromptText,
62
+ initialPromptText = _props$initialPromptT === void 0 ? ___EmotionJSX(EuiI18n, {
63
+ token: "euiFilePicker.promptText",
64
+ default: "Select or drag and drop a file"
65
+ }) : _props$initialPromptT,
66
+ className = props.className,
67
+ disabled = props.disabled,
68
+ _props$compressed = props.compressed,
69
+ compressed = _props$compressed === void 0 ? false : _props$compressed,
70
+ onChange = props.onChange,
71
+ isInvalid = props.isInvalid,
72
+ _props$fullWidth = props.fullWidth,
73
+ fullWidth = _props$fullWidth === void 0 ? defaultFullWidth : _props$fullWidth,
74
+ isLoading = props.isLoading,
75
+ _props$display = props.display,
76
+ display = _props$display === void 0 ? 'large' : _props$display,
77
+ files = props.files,
78
+ rest = _objectWithoutProperties(props, _excluded);
79
+ var removeSelectedAriaLabel = useEuiI18n('euiFilePicker.removeSelectedAriaLabel', 'Remove selected files');
80
+ var fileInput = useRef(null);
81
+ var _useState = useState(function () {
82
+ return files ? getPromptTextFromFileList(files) : null;
83
+ }),
84
+ _useState2 = _slicedToArray(_useState, 2),
85
+ promptText = _useState2[0],
86
+ setPromptText = _useState2[1];
87
+ var _useState3 = useState(false),
88
+ _useState4 = _slicedToArray(_useState3, 2),
89
+ isHoveringDrop = _useState4[0],
90
+ setIsHoveringDrop = _useState4[1];
91
+
92
+ // Update prompt text when the `files` prop changes. The ref guard keeps this
93
+ // from re-running on mount, where the initial state is already derived above.
94
+ var prevFiles = useRef(files);
95
+ useEffect(function () {
96
+ if (prevFiles.current !== files) {
97
+ prevFiles.current = files;
98
+ setPromptText(getPromptTextFromFileList(files !== null && files !== void 0 ? files : null));
99
+ }
100
+ }, [files]);
101
+ var handleChange = useCallback(function () {
102
+ if (!fileInput.current) return;
103
+ if (fileInput.current.files && fileInput.current.files.length === 1) {
104
+ setPromptText(fileInput.current.value.split('\\').pop());
105
+ } else {
106
+ setPromptText(getPromptTextFromFileList(fileInput.current.files ? Array.from(fileInput.current.files) : null));
107
+ }
108
+ if (onChange) {
109
+ onChange(fileInput.current.files && fileInput.current.files.length > 0 ? fileInput.current.files : null);
110
+ }
111
+ }, [onChange]);
112
+ var removeFiles = useCallback(function (e) {
113
+ if (e) {
114
+ e.stopPropagation();
115
+ e.preventDefault();
116
+ }
117
+ if (!fileInput.current) return;
118
+ fileInput.current.value = '';
119
+ handleChange();
120
+ }, [handleChange]);
121
+ useImperativeHandle(ref, function () {
122
+ return {
123
+ removeFiles: removeFiles,
124
+ input: fileInput.current
125
+ };
126
+ }, [removeFiles]);
127
+ var showDrop = function showDrop() {
128
+ return !disabled && setIsHoveringDrop(true);
129
+ };
130
+ var hideDrop = function hideDrop() {
131
+ return setIsHoveringDrop(false);
132
+ };
133
+ var generatedId = useGeneratedHtmlId();
134
+ var promptId = "".concat(id || generatedId, "-filePicker__prompt");
135
+ var isOverridingInitialPrompt = promptText != null;
136
+ var normalFormControl = display === 'default';
137
+ var classes = classNames('euiFilePicker', {
138
+ 'euiFilePicker-isDroppingFile': isHoveringDrop,
139
+ 'euiFilePicker-isInvalid': isInvalid,
140
+ 'euiFilePicker-isLoading': isLoading,
141
+ 'euiFilePicker-hasFiles': isOverridingInitialPrompt
142
+ }, className);
143
+ var styles = useEuiMemoizedStyles(euiFilePickerStyles);
144
+ var cssStyles = [styles.euiFilePicker, fullWidth ? styles.fullWidth : styles.formWidth, isHoveringDrop && styles.isDroppingFile, isInvalid && !disabled && styles.invalid, isOverridingInitialPrompt && !disabled && styles.hasFiles, isLoading && styles.loading];
145
+ var inputStyles = [styles.input.euiFilePicker__input, !normalFormControl && !disabled && styles.input.largeInteractive];
146
+ var promptStyles = [styles.euiFilePicker__prompt, disabled && styles.disabled].concat(_toConsumableArray(normalFormControl ? [compressed ? styles.compressed : styles.uncompressed] : [styles.large.large, compressed ? styles.large.compressed : styles.large.uncompressed]));
147
+ var iconStyles = [styles.icon.euiFilePicker__icon].concat(_toConsumableArray(normalFormControl ? [styles.icon.normal, compressed ? styles.icon.compressed : styles.icon.uncompressed] : [styles.icon.large]));
148
+ var rightIconStyles = normalFormControl ? [styles.rightIcon.euiFilePicker__rightIcon, compressed ? styles.rightIcon.compressed : styles.rightIcon.uncompressed] : undefined;
149
+ var clearButton;
150
+ if (isLoading && normalFormControl) {
151
+ // Override clear button with loading spinner if it is in loading state
152
+ clearButton = ___EmotionJSX(EuiLoadingSpinner, {
153
+ css: rightIconStyles,
154
+ className: "euiFilePicker__loadingSpinner",
155
+ size: compressed ? 's' : 'm'
156
+ });
157
+ } else if (isOverridingInitialPrompt && !disabled) {
158
+ if (normalFormControl) {
159
+ clearButton = ___EmotionJSX(EuiFormControlLayoutClearButton, {
160
+ "aria-label": removeSelectedAriaLabel,
161
+ css: [styles.euiFilePicker__clearButton, rightIconStyles, ";label:clearButton;"],
162
+ className: "euiFilePicker__clearButton",
163
+ onClick: removeFiles,
164
+ size: compressed ? 's' : 'm'
165
+ });
166
+ } else {
167
+ clearButton = ___EmotionJSX(EuiButtonEmpty, {
168
+ "aria-label": removeSelectedAriaLabel,
169
+ css: styles.euiFilePicker__clearButton,
170
+ className: "euiFilePicker__clearButton",
171
+ size: "xs",
172
+ onClick: removeFiles
173
+ }, ___EmotionJSX(EuiI18n, {
174
+ token: "euiFilePicker.removeSelected",
175
+ default: "Remove"
176
+ }));
177
+ }
178
+ } else {
179
+ clearButton = null;
180
+ }
181
+ var loader = !normalFormControl && isLoading && ___EmotionJSX(EuiProgress, {
182
+ size: "xs",
183
+ color: "accent",
184
+ position: "absolute"
185
+ });
186
+ var iconColor = isInvalid ? 'danger' : disabled ? 'disabled' : 'text';
187
+ return ___EmotionJSX("div", {
188
+ css: cssStyles,
189
+ className: classes
190
+ }, ___EmotionJSX(EuiValidatableControl, {
191
+ isInvalid: isInvalid
192
+ }, ___EmotionJSX("input", _extends({
193
+ type: "file",
194
+ id: id,
195
+ name: name,
196
+ css: inputStyles,
197
+ className: "euiFilePicker__input",
198
+ onChange: handleChange,
199
+ ref: fileInput,
200
+ onDragOver: showDrop,
201
+ onDragLeave: hideDrop,
202
+ onDrop: hideDrop,
203
+ disabled: disabled,
204
+ "aria-describedby": promptId
205
+ }, rest))), ___EmotionJSX("div", {
206
+ css: promptStyles,
207
+ className: "euiFilePicker__prompt",
208
+ id: promptId
209
+ }, ___EmotionJSX(EuiIcon, {
210
+ css: iconStyles,
211
+ className: "euiFilePicker__icon",
212
+ color: iconColor,
213
+ type: isInvalid ? 'warning' : disabled ? 'minusCircle' : 'upload',
214
+ size: normalFormControl ? 'm' : 'l',
215
+ "aria-hidden": "true"
216
+ }), ___EmotionJSX("span", {
217
+ className: "euiFilePicker__promptText"
218
+ }, promptText || initialPromptText), clearButton, loader));
256
219
  });
257
- EuiFilePickerClass.propTypes = {
220
+ EuiFilePicker.propTypes = {
258
221
  id: PropTypes.string,
259
222
  name: PropTypes.string,
260
223
  className: PropTypes.string,
@@ -303,4 +266,4 @@ EuiFilePickerClass.propTypes = {
303
266
  "data-test-subj": PropTypes.string,
304
267
  css: PropTypes.any
305
268
  };
306
- export var EuiFilePicker = withEuiStylesMemoizer(EuiFilePickerClass);
269
+ EuiFilePicker.displayName = 'EuiFilePicker';
@@ -82,7 +82,7 @@ export var euiFilePickerStyles = function euiFilePickerStyles(euiThemeContext) {
82
82
  euiFilePicker__icon: /*#__PURE__*/css(";label:euiFilePicker__icon;"),
83
83
  normal: /*#__PURE__*/css("position:absolute;", logicalCSS('top', 0), " ", logicalCSS('height', '100%'), ";;label:normal;"),
84
84
  uncompressed: "\n ".concat(logicalCSS('left', euiTheme.size.m), "\n "),
85
- compresssed: /*#__PURE__*/css(logicalCSS('left', euiTheme.size.s), " ", logicalCSS('width', euiTheme.size.m), ";;label:compresssed;"),
85
+ compressed: /*#__PURE__*/css(logicalCSS('left', euiTheme.size.s), " ", logicalCSS('width', euiTheme.size.m), ";;label:compressed;"),
86
86
  large: /*#__PURE__*/css(logicalCSS('margin-bottom', euiTheme.size.base), " ", euiCanAnimate, "{transition:transform ", euiTheme.animation.fast, " ", euiTheme.animation.resistance, ";};label:large;")
87
87
  },
88
88
  rightIcon: {