@elastic/eui 88.4.0 → 88.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (336) hide show
  1. package/dist/eui_theme_dark.css +9 -2
  2. package/dist/eui_theme_dark.min.css +1 -1
  3. package/dist/eui_theme_light.css +9 -2
  4. package/dist/eui_theme_light.min.css +1 -1
  5. package/es/components/avatar/avatar.js +1 -1
  6. package/es/components/badge/badge.js +1 -1
  7. package/es/components/badge/beta_badge/beta_badge.js +1 -1
  8. package/es/components/basic_table/basic_table.a11y.js +4 -4
  9. package/es/components/basic_table/basic_table.js +1 -1
  10. package/es/components/basic_table/collapsed_item_actions.js +1 -1
  11. package/es/components/basic_table/in_memory_table.a11y.js +4 -4
  12. package/es/components/basic_table/in_memory_table.js +1 -1
  13. package/es/components/breadcrumbs/breadcrumb.js +12 -0
  14. package/es/components/breadcrumbs/breadcrumbs.js +12 -0
  15. package/es/components/button/button_display/_button_display.js +1 -1
  16. package/es/components/button/button_display/_button_display_content.js +1 -1
  17. package/es/components/button/button_empty/button_empty.js +1 -1
  18. package/es/components/button/button_group/button_group.js +1 -1
  19. package/es/components/button/button_group/button_group_button.js +1 -1
  20. package/es/components/button/button_icon/button_icon.js +1 -1
  21. package/es/components/call_out/call_out.js +54 -34
  22. package/es/components/call_out/call_out.styles.js +36 -7
  23. package/es/components/card/card.js +1 -1
  24. package/es/components/collapsible_nav/collapsible_nav_group/collapsible_nav_group.js +1 -1
  25. package/es/components/collapsible_nav_beta/collapsible_nav_item/collapsed/collapsed_nav_button.js +2 -2
  26. package/es/components/collapsible_nav_beta/collapsible_nav_item/collapsed/collapsed_nav_item.js +2 -2
  27. package/es/components/collapsible_nav_beta/collapsible_nav_item/collapsed/collapsed_nav_popover.js +3 -3
  28. package/es/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_accordion.js +2 -2
  29. package/es/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_item.js +3 -3
  30. package/es/components/combo_box/combo_box_options_list/combo_box_options_list.js +11 -6
  31. package/es/components/comment_list/comment.js +2 -2
  32. package/es/components/comment_list/comment_event.js +1 -1
  33. package/es/components/comment_list/comment_list.js +2 -2
  34. package/es/components/comment_list/comment_timeline.js +1 -1
  35. package/es/components/control_bar/control_bar.js +12 -0
  36. package/es/components/datagrid/body/data_grid_body.js +13 -13
  37. package/es/components/datagrid/body/data_grid_body_custom.js +13 -13
  38. package/es/components/datagrid/body/data_grid_body_virtualized.js +13 -13
  39. package/es/components/datagrid/body/data_grid_cell.js +24 -24
  40. package/es/components/datagrid/body/header/data_grid_header_cell.js +12 -12
  41. package/es/components/datagrid/body/header/data_grid_header_row.js +13 -13
  42. package/es/components/datagrid/controls/column_sorting_draggable.js +1 -1
  43. package/es/components/datagrid/controls/data_grid_toolbar.js +21 -5
  44. package/es/components/datagrid/controls/display_selector.js +16 -15
  45. package/es/components/datagrid/data_grid.a11y.js +2 -2
  46. package/es/components/datagrid/data_grid.js +35 -16
  47. package/es/components/datagrid/data_grid_types.js +3 -0
  48. package/es/components/datagrid/utils/in_memory.js +12 -12
  49. package/es/components/date_picker/date_picker.js +15 -8
  50. package/es/components/date_picker/date_picker_range.js +1 -1
  51. package/es/components/date_picker/super_date_picker/quick_select_popover/quick_select_popover.js +2 -2
  52. package/es/components/empty_prompt/empty_prompt.js +1 -1
  53. package/es/components/facet/facet_button.js +1 -1
  54. package/es/components/form/field_number/field_number.js +1 -1
  55. package/es/components/form/field_text/field_text.js +2 -2
  56. package/es/components/form/form_control_layout/form_control_layout.js +2 -2
  57. package/es/components/form/form_control_layout/form_control_layout_custom_icon.js +1 -1
  58. package/es/components/form/form_control_layout/form_control_layout_icons.js +2 -2
  59. package/es/components/header/header_breadcrumbs/header_breadcrumbs.js +12 -0
  60. package/es/components/header/header_links/header_link.js +1 -1
  61. package/es/components/header/header_links/header_links.js +13 -1
  62. package/es/components/header/header_logo/header_logo.js +1 -1
  63. package/es/components/header/header_section/header_section_item_button.js +1 -1
  64. package/es/components/icon/assets/gradient.js +34 -0
  65. package/es/components/icon/assets/palette.js +35 -0
  66. package/es/components/icon/icon.js +1 -1
  67. package/es/components/icon/icon_map.js +2 -0
  68. package/es/components/key_pad_menu/key_pad_menu_item.js +1 -1
  69. package/es/components/list_group/list_group.js +2 -2
  70. package/es/components/list_group/list_group_item.js +2 -2
  71. package/es/components/list_group/list_group_item_extra_action.js +1 -1
  72. package/es/components/list_group/pinnable_list_group/pinnable_list_group.js +4 -4
  73. package/es/components/loading/loading_logo.js +1 -1
  74. package/es/components/markdown_editor/markdown_editor.js +1 -1
  75. package/es/components/markdown_editor/markdown_editor_drop_zone.js +1 -1
  76. package/es/components/markdown_editor/markdown_editor_footer.js +1 -1
  77. package/es/components/markdown_editor/markdown_editor_toolbar.js +1 -1
  78. package/es/components/notification/notification_event.js +2 -2
  79. package/es/components/notification/notification_event_meta.js +1 -1
  80. package/es/components/page/page_header/page_header_content.js +13 -1
  81. package/es/components/pagination/pagination_button.js +1 -1
  82. package/es/components/popover/input_popover.js +1 -0
  83. package/es/components/popover/popover.js +20 -3
  84. package/es/components/popover/popover_panel/_popover_panel.js +15 -21
  85. package/es/components/popover/popover_panel/_popover_panel.styles.js +47 -27
  86. package/es/components/selectable/selectable_list/selectable_list.js +1 -1
  87. package/es/components/selectable/selectable_list/selectable_list_item.js +1 -1
  88. package/es/components/selectable/selectable_templates/selectable_template_sitewide.js +1 -1
  89. package/es/components/suggest/suggest.js +1 -1
  90. package/es/components/suggest/suggest_item.js +1 -1
  91. package/es/components/table/table_header_button.js +1 -1
  92. package/es/components/text_truncate/index.js +1 -1
  93. package/es/components/text_truncate/text_truncate.js +16 -26
  94. package/es/components/text_truncate/text_truncate.styles.js +10 -10
  95. package/es/components/text_truncate/utils.js +251 -282
  96. package/es/components/timeline/timeline_item_icon.js +1 -1
  97. package/es/components/toast/global_toast_list.js +1 -1
  98. package/es/components/toast/toast.js +1 -1
  99. package/es/components/tool_tip/icon_tip.js +1 -1
  100. package/es/components/tour/tour_step.js +12 -0
  101. package/eui.d.ts +191 -112
  102. package/i18ntokens.json +106 -88
  103. package/lib/components/avatar/avatar.js +1 -1
  104. package/lib/components/badge/badge.js +1 -1
  105. package/lib/components/badge/beta_badge/beta_badge.js +1 -1
  106. package/lib/components/basic_table/basic_table.a11y.js +4 -4
  107. package/lib/components/basic_table/basic_table.js +1 -1
  108. package/lib/components/basic_table/collapsed_item_actions.js +1 -1
  109. package/lib/components/basic_table/in_memory_table.a11y.js +4 -4
  110. package/lib/components/basic_table/in_memory_table.js +1 -1
  111. package/lib/components/breadcrumbs/breadcrumb.js +12 -0
  112. package/lib/components/button/button_display/_button_display.js +1 -1
  113. package/lib/components/button/button_display/_button_display_content.js +1 -1
  114. package/lib/components/button/button_empty/button_empty.js +1 -1
  115. package/lib/components/button/button_group/button_group.js +1 -1
  116. package/lib/components/button/button_group/button_group_button.js +1 -1
  117. package/lib/components/button/button_icon/button_icon.js +1 -1
  118. package/lib/components/call_out/call_out.js +54 -34
  119. package/lib/components/call_out/call_out.styles.js +42 -15
  120. package/lib/components/card/card.js +1 -1
  121. package/lib/components/collapsible_nav/collapsible_nav_group/collapsible_nav_group.js +1 -1
  122. package/lib/components/collapsible_nav_beta/collapsible_nav_item/collapsed/collapsed_nav_button.js +2 -2
  123. package/lib/components/collapsible_nav_beta/collapsible_nav_item/collapsed/collapsed_nav_item.js +2 -2
  124. package/lib/components/collapsible_nav_beta/collapsible_nav_item/collapsed/collapsed_nav_popover.js +3 -3
  125. package/lib/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_accordion.js +2 -2
  126. package/lib/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_item.js +3 -3
  127. package/lib/components/combo_box/combo_box_options_list/combo_box_options_list.js +11 -6
  128. package/lib/components/comment_list/comment.js +2 -2
  129. package/lib/components/comment_list/comment_event.js +1 -1
  130. package/lib/components/comment_list/comment_list.js +2 -2
  131. package/lib/components/comment_list/comment_timeline.js +1 -1
  132. package/lib/components/datagrid/body/data_grid_body.js +13 -13
  133. package/lib/components/datagrid/body/data_grid_body_custom.js +13 -13
  134. package/lib/components/datagrid/body/data_grid_body_virtualized.js +13 -13
  135. package/lib/components/datagrid/body/data_grid_cell.js +24 -24
  136. package/lib/components/datagrid/body/header/data_grid_header_cell.js +12 -12
  137. package/lib/components/datagrid/body/header/data_grid_header_row.js +13 -13
  138. package/lib/components/datagrid/controls/column_sorting_draggable.js +1 -1
  139. package/lib/components/datagrid/controls/data_grid_toolbar.js +21 -5
  140. package/lib/components/datagrid/controls/display_selector.js +16 -15
  141. package/lib/components/datagrid/data_grid.a11y.js +2 -2
  142. package/lib/components/datagrid/data_grid.js +35 -16
  143. package/lib/components/datagrid/data_grid_types.js +4 -0
  144. package/lib/components/datagrid/utils/in_memory.js +12 -12
  145. package/lib/components/date_picker/date_picker.js +15 -8
  146. package/lib/components/date_picker/date_picker_range.js +1 -1
  147. package/lib/components/date_picker/super_date_picker/quick_select_popover/quick_select_popover.js +2 -2
  148. package/lib/components/empty_prompt/empty_prompt.js +1 -1
  149. package/lib/components/facet/facet_button.js +1 -1
  150. package/lib/components/form/field_number/field_number.js +1 -1
  151. package/lib/components/form/field_text/field_text.js +2 -2
  152. package/lib/components/form/form_control_layout/form_control_layout.js +2 -2
  153. package/lib/components/form/form_control_layout/form_control_layout_custom_icon.js +1 -1
  154. package/lib/components/form/form_control_layout/form_control_layout_icons.js +2 -2
  155. package/lib/components/header/header_links/header_link.js +1 -1
  156. package/lib/components/header/header_links/header_links.js +1 -1
  157. package/lib/components/header/header_logo/header_logo.js +1 -1
  158. package/lib/components/header/header_section/header_section_item_button.js +1 -1
  159. package/lib/components/icon/assets/gradient.js +42 -0
  160. package/lib/components/icon/assets/palette.js +43 -0
  161. package/lib/components/icon/icon.js +1 -1
  162. package/lib/components/icon/icon_map.js +2 -0
  163. package/lib/components/icon/svgs/gradient.svg +3 -0
  164. package/lib/components/icon/svgs/palette.svg +4 -0
  165. package/lib/components/key_pad_menu/key_pad_menu_item.js +1 -1
  166. package/lib/components/list_group/list_group.js +2 -2
  167. package/lib/components/list_group/list_group_item.js +2 -2
  168. package/lib/components/list_group/list_group_item_extra_action.js +1 -1
  169. package/lib/components/list_group/pinnable_list_group/pinnable_list_group.js +4 -4
  170. package/lib/components/loading/loading_logo.js +1 -1
  171. package/lib/components/markdown_editor/markdown_editor.js +1 -1
  172. package/lib/components/markdown_editor/markdown_editor_drop_zone.js +1 -1
  173. package/lib/components/markdown_editor/markdown_editor_footer.js +1 -1
  174. package/lib/components/markdown_editor/markdown_editor_toolbar.js +1 -1
  175. package/lib/components/notification/notification_event.js +2 -2
  176. package/lib/components/notification/notification_event_meta.js +1 -1
  177. package/lib/components/page/page_header/page_header_content.js +1 -1
  178. package/lib/components/popover/input_popover.js +1 -0
  179. package/lib/components/popover/popover.js +20 -3
  180. package/lib/components/popover/popover_panel/_popover_panel.js +14 -20
  181. package/lib/components/popover/popover_panel/_popover_panel.styles.js +53 -35
  182. package/lib/components/selectable/selectable_list/selectable_list.js +1 -1
  183. package/lib/components/selectable/selectable_list/selectable_list_item.js +1 -1
  184. package/lib/components/selectable/selectable_templates/selectable_template_sitewide.js +1 -1
  185. package/lib/components/suggest/suggest.js +1 -1
  186. package/lib/components/suggest/suggest_item.js +1 -1
  187. package/lib/components/table/table_header_button.js +1 -1
  188. package/lib/components/text_truncate/index.js +6 -6
  189. package/lib/components/text_truncate/text_truncate.js +13 -23
  190. package/lib/components/text_truncate/text_truncate.styles.js +10 -10
  191. package/lib/components/text_truncate/utils.js +253 -284
  192. package/lib/components/timeline/timeline_item_icon.js +1 -1
  193. package/lib/components/toast/global_toast_list.js +1 -1
  194. package/lib/components/toast/toast.js +1 -1
  195. package/lib/components/tool_tip/icon_tip.js +1 -1
  196. package/optimize/es/components/basic_table/basic_table.a11y.js +4 -4
  197. package/optimize/es/components/basic_table/in_memory_table.a11y.js +4 -4
  198. package/optimize/es/components/call_out/call_out.js +44 -32
  199. package/optimize/es/components/call_out/call_out.styles.js +36 -7
  200. package/optimize/es/components/combo_box/combo_box_options_list/combo_box_options_list.js +11 -6
  201. package/optimize/es/components/datagrid/controls/data_grid_toolbar.js +21 -5
  202. package/optimize/es/components/datagrid/controls/display_selector.js +16 -15
  203. package/optimize/es/components/datagrid/data_grid.a11y.js +2 -2
  204. package/optimize/es/components/datagrid/data_grid.js +4 -2
  205. package/optimize/es/components/datagrid/data_grid_types.js +3 -0
  206. package/optimize/es/components/date_picker/date_picker.js +8 -5
  207. package/optimize/es/components/date_picker/super_date_picker/quick_select_popover/quick_select_popover.js +2 -2
  208. package/optimize/es/components/icon/assets/gradient.js +33 -0
  209. package/optimize/es/components/icon/assets/palette.js +34 -0
  210. package/optimize/es/components/icon/icon_map.js +2 -0
  211. package/optimize/es/components/popover/input_popover.js +1 -0
  212. package/optimize/es/components/popover/popover.js +8 -3
  213. package/optimize/es/components/popover/popover_panel/_popover_panel.js +15 -16
  214. package/optimize/es/components/popover/popover_panel/_popover_panel.styles.js +47 -27
  215. package/optimize/es/components/text_truncate/index.js +1 -1
  216. package/optimize/es/components/text_truncate/text_truncate.js +16 -16
  217. package/optimize/es/components/text_truncate/text_truncate.styles.js +10 -10
  218. package/optimize/es/components/text_truncate/utils.js +245 -277
  219. package/optimize/lib/components/basic_table/basic_table.a11y.js +4 -4
  220. package/optimize/lib/components/basic_table/in_memory_table.a11y.js +4 -4
  221. package/optimize/lib/components/call_out/call_out.js +44 -32
  222. package/optimize/lib/components/call_out/call_out.styles.js +42 -15
  223. package/optimize/lib/components/combo_box/combo_box_options_list/combo_box_options_list.js +11 -6
  224. package/optimize/lib/components/datagrid/controls/data_grid_toolbar.js +21 -5
  225. package/optimize/lib/components/datagrid/controls/display_selector.js +16 -15
  226. package/optimize/lib/components/datagrid/data_grid.a11y.js +2 -2
  227. package/optimize/lib/components/datagrid/data_grid.js +4 -2
  228. package/optimize/lib/components/datagrid/data_grid_types.js +4 -0
  229. package/optimize/lib/components/date_picker/date_picker.js +8 -5
  230. package/optimize/lib/components/date_picker/super_date_picker/quick_select_popover/quick_select_popover.js +2 -2
  231. package/optimize/lib/components/icon/assets/gradient.js +42 -0
  232. package/optimize/lib/components/icon/assets/palette.js +43 -0
  233. package/optimize/lib/components/icon/icon_map.js +2 -0
  234. package/optimize/lib/components/icon/svgs/gradient.svg +3 -0
  235. package/optimize/lib/components/icon/svgs/palette.svg +4 -0
  236. package/optimize/lib/components/popover/input_popover.js +1 -0
  237. package/optimize/lib/components/popover/popover.js +8 -3
  238. package/optimize/lib/components/popover/popover_panel/_popover_panel.js +14 -15
  239. package/optimize/lib/components/popover/popover_panel/_popover_panel.styles.js +53 -35
  240. package/optimize/lib/components/text_truncate/index.js +6 -6
  241. package/optimize/lib/components/text_truncate/text_truncate.js +13 -13
  242. package/optimize/lib/components/text_truncate/text_truncate.styles.js +10 -10
  243. package/optimize/lib/components/text_truncate/utils.js +247 -279
  244. package/package.json +1 -2
  245. package/src/components/combo_box/combo_box_options_list/_combo_box_options_list.scss +8 -0
  246. package/src/components/date_picker/super_date_picker/quick_select_popover/_quick_select_popover.scss +2 -4
  247. package/test-env/components/avatar/avatar.js +1 -1
  248. package/test-env/components/badge/badge.js +1 -1
  249. package/test-env/components/badge/beta_badge/beta_badge.js +1 -1
  250. package/test-env/components/basic_table/basic_table.a11y.js +4 -4
  251. package/test-env/components/basic_table/basic_table.js +1 -1
  252. package/test-env/components/basic_table/collapsed_item_actions.js +1 -1
  253. package/test-env/components/basic_table/in_memory_table.a11y.js +4 -4
  254. package/test-env/components/basic_table/in_memory_table.js +1 -1
  255. package/test-env/components/breadcrumbs/breadcrumb.js +12 -0
  256. package/test-env/components/button/button_display/_button_display.js +1 -1
  257. package/test-env/components/button/button_display/_button_display_content.js +1 -1
  258. package/test-env/components/button/button_empty/button_empty.js +1 -1
  259. package/test-env/components/button/button_group/button_group.js +1 -1
  260. package/test-env/components/button/button_group/button_group_button.js +1 -1
  261. package/test-env/components/button/button_icon/button_icon.js +1 -1
  262. package/test-env/components/call_out/call_out.js +54 -34
  263. package/test-env/components/call_out/call_out.styles.js +42 -15
  264. package/test-env/components/card/card.js +1 -1
  265. package/test-env/components/collapsible_nav/collapsible_nav_group/collapsible_nav_group.js +1 -1
  266. package/test-env/components/collapsible_nav_beta/collapsible_nav_item/collapsed/collapsed_nav_button.js +2 -2
  267. package/test-env/components/collapsible_nav_beta/collapsible_nav_item/collapsed/collapsed_nav_item.js +2 -2
  268. package/test-env/components/collapsible_nav_beta/collapsible_nav_item/collapsed/collapsed_nav_popover.js +3 -3
  269. package/test-env/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_accordion.js +2 -2
  270. package/test-env/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_item.js +3 -3
  271. package/test-env/components/combo_box/combo_box_options_list/combo_box_options_list.js +11 -6
  272. package/test-env/components/comment_list/comment.js +2 -2
  273. package/test-env/components/comment_list/comment_event.js +1 -1
  274. package/test-env/components/comment_list/comment_list.js +2 -2
  275. package/test-env/components/comment_list/comment_timeline.js +1 -1
  276. package/test-env/components/datagrid/body/data_grid_body.js +13 -13
  277. package/test-env/components/datagrid/body/data_grid_body_custom.js +13 -13
  278. package/test-env/components/datagrid/body/data_grid_body_virtualized.js +13 -13
  279. package/test-env/components/datagrid/body/data_grid_cell.js +24 -24
  280. package/test-env/components/datagrid/body/header/data_grid_header_cell.js +12 -12
  281. package/test-env/components/datagrid/body/header/data_grid_header_row.js +13 -13
  282. package/test-env/components/datagrid/controls/column_sorting_draggable.js +1 -1
  283. package/test-env/components/datagrid/controls/data_grid_toolbar.js +21 -5
  284. package/test-env/components/datagrid/controls/display_selector.js +16 -15
  285. package/test-env/components/datagrid/data_grid.a11y.js +2 -2
  286. package/test-env/components/datagrid/data_grid.js +35 -16
  287. package/test-env/components/datagrid/data_grid_types.js +4 -0
  288. package/test-env/components/datagrid/utils/in_memory.js +12 -12
  289. package/test-env/components/date_picker/date_picker.js +15 -8
  290. package/test-env/components/date_picker/date_picker_range.js +1 -1
  291. package/test-env/components/date_picker/super_date_picker/quick_select_popover/quick_select_popover.js +2 -2
  292. package/test-env/components/empty_prompt/empty_prompt.js +1 -1
  293. package/test-env/components/facet/facet_button.js +1 -1
  294. package/test-env/components/form/field_number/field_number.js +1 -1
  295. package/test-env/components/form/field_text/field_text.js +2 -2
  296. package/test-env/components/form/form_control_layout/form_control_layout.js +2 -2
  297. package/test-env/components/form/form_control_layout/form_control_layout_custom_icon.js +1 -1
  298. package/test-env/components/form/form_control_layout/form_control_layout_icons.js +2 -2
  299. package/test-env/components/header/header_links/header_link.js +1 -1
  300. package/test-env/components/header/header_links/header_links.js +1 -1
  301. package/test-env/components/header/header_logo/header_logo.js +1 -1
  302. package/test-env/components/header/header_section/header_section_item_button.js +1 -1
  303. package/test-env/components/icon/assets/gradient.js +42 -0
  304. package/test-env/components/icon/assets/palette.js +43 -0
  305. package/test-env/components/icon/icon_map.js +2 -0
  306. package/test-env/components/key_pad_menu/key_pad_menu_item.js +1 -1
  307. package/test-env/components/list_group/list_group.js +2 -2
  308. package/test-env/components/list_group/list_group_item.js +2 -2
  309. package/test-env/components/list_group/list_group_item_extra_action.js +1 -1
  310. package/test-env/components/list_group/pinnable_list_group/pinnable_list_group.js +4 -4
  311. package/test-env/components/loading/loading_logo.js +1 -1
  312. package/test-env/components/markdown_editor/markdown_editor.js +1 -1
  313. package/test-env/components/markdown_editor/markdown_editor_drop_zone.js +1 -1
  314. package/test-env/components/markdown_editor/markdown_editor_footer.js +1 -1
  315. package/test-env/components/markdown_editor/markdown_editor_toolbar.js +1 -1
  316. package/test-env/components/notification/notification_event.js +2 -2
  317. package/test-env/components/notification/notification_event_meta.js +1 -1
  318. package/test-env/components/page/page_header/page_header_content.js +1 -1
  319. package/test-env/components/popover/input_popover.js +1 -0
  320. package/test-env/components/popover/popover.js +20 -3
  321. package/test-env/components/popover/popover_panel/_popover_panel.js +14 -15
  322. package/test-env/components/popover/popover_panel/_popover_panel.styles.js +53 -35
  323. package/test-env/components/selectable/selectable_list/selectable_list.js +1 -1
  324. package/test-env/components/selectable/selectable_list/selectable_list_item.js +1 -1
  325. package/test-env/components/selectable/selectable_templates/selectable_template_sitewide.js +1 -1
  326. package/test-env/components/suggest/suggest.js +1 -1
  327. package/test-env/components/suggest/suggest_item.js +1 -1
  328. package/test-env/components/table/table_header_button.js +1 -1
  329. package/test-env/components/text_truncate/index.js +6 -6
  330. package/test-env/components/text_truncate/text_truncate.js +13 -23
  331. package/test-env/components/text_truncate/text_truncate.styles.js +10 -10
  332. package/test-env/components/text_truncate/utils.js +247 -279
  333. package/test-env/components/timeline/timeline_item_icon.js +1 -1
  334. package/test-env/components/toast/global_toast_list.js +1 -1
  335. package/test-env/components/toast/toast.js +1 -1
  336. package/test-env/components/tool_tip/icon_tip.js +1 -1
@@ -1,8 +1,15 @@
1
- var _excluded = ["container"],
2
- _excluded2 = ["font", "container"];
1
+ var _excluded = ["fullText", "ellipsis", "availableWidth"];
3
2
  function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
3
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
4
+ 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."); }
5
+ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
6
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
7
+ function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
8
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
4
9
  function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
5
10
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
11
+ function _get() { if (typeof Reflect !== "undefined" && Reflect.get) { _get = Reflect.get.bind(); } else { _get = function _get(target, property, receiver) { var base = _superPropBase(target, property); if (!base) return; var desc = Object.getOwnPropertyDescriptor(base, property); if (desc.get) { return desc.get.call(arguments.length < 3 ? target : receiver); } return desc.value; }; } return _get.apply(this, arguments); }
12
+ function _superPropBase(object, property) { while (!Object.prototype.hasOwnProperty.call(object, property)) { object = _getPrototypeOf(object); if (object === null) break; } return object; }
6
13
  function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
7
14
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
8
15
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
@@ -10,15 +17,9 @@ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) ===
10
17
  function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
11
18
  function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
12
19
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
13
- function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
14
- 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."); }
15
- function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
16
- function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
17
- function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
18
- function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
20
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
19
21
  function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
20
22
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
21
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
22
23
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
23
24
  function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
24
25
  function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
@@ -29,296 +30,273 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
29
30
  * in compliance with, at your election, the Elastic License 2.0 or the Server
30
31
  * Side Public License, v 1.
31
32
  */
32
- /**
33
- * This internal shared/base class contains the actual logic for truncating text
34
- * (as well as a few handy utilities for checking whether truncation is possible
35
- * or even necessary).
36
- *
37
- * How the underlying mechanism works: the full text is rendered, and then
38
- * characters are removed one by one until the width of the text fits within
39
- * the specified available width.
40
- *
41
- * Side note: The exception to this is the `truncateStartEndAtPosition` method,
42
- * which works by building up from an empty string / by adding characters
43
- * instead of removing them.
44
- */
45
- var _TruncationUtils = /*#__PURE__*/_createClass(function _TruncationUtils(_ref) {
46
- var _this = this;
47
- var fullText = _ref.fullText,
48
- ellipsis = _ref.ellipsis,
49
- availableWidth = _ref.availableWidth;
50
- _classCallCheck(this, _TruncationUtils);
51
- _defineProperty(this, "fullText", void 0);
52
- _defineProperty(this, "ellipsis", void 0);
53
- _defineProperty(this, "availableWidth", void 0);
54
- /**
55
- * Early return checks
56
- */
57
- _defineProperty(this, "checkIfTruncationIsNeeded", function () {
58
- _this.setTextToCheck(_this.fullText);
59
- if (_this.availableWidth >= _this.textWidth) {
60
- return false;
61
- }
62
- });
63
- _defineProperty(this, "checkSufficientEllipsisWidth", function (truncation) {
64
- var textToCheck = truncation === 'startEnd' ? "".concat(_this.ellipsis, " ").concat(_this.ellipsis) // startEnd needs a little more space
65
- : _this.ellipsis;
66
- _this.setTextToCheck(textToCheck);
67
- if (_this.textWidth >= _this.availableWidth * 0.9) {
68
- console.error('The truncation ellipsis is larger than the available width. No text can be rendered.');
69
- return false;
70
- }
71
- });
72
- _defineProperty(this, "checkTruncationOffsetWidth", function (text) {
73
- _this.setTextToCheck(text);
74
- if (_this.textWidth > _this.availableWidth) {
75
- console.error("The passed truncationOffset is too large for the available width. Truncating the offset instead.");
76
- return false;
77
- }
78
- });
79
- /**
80
- * Truncation types logic. This is where the magic happens
81
- */
82
- _defineProperty(this, "truncateStart", function (truncationOffset) {
83
- var truncatedText = _this.fullText;
84
- var leadingText = '';
85
- var combinedText = function combinedText() {
86
- return "".concat(leadingText).concat(truncatedText);
87
- };
88
- if (truncationOffset) {
89
- var _splitText$at = splitText(_this.fullText).at(truncationOffset);
90
- var _splitText$at2 = _slicedToArray(_splitText$at, 2);
91
- leadingText = _splitText$at2[0];
92
- truncatedText = _splitText$at2[1];
93
- var widthCheck = "".concat(leadingText).concat(_this.ellipsis);
94
- if (_this.checkTruncationOffsetWidth(widthCheck) === false) {
95
- truncatedText = leadingText;
96
- leadingText = '';
97
- }
98
- }
99
- leadingText += _this.ellipsis;
100
- _this.setTextToCheck(combinedText());
101
- while (_this.textWidth > _this.availableWidth) {
102
- truncatedText = removeFirstCharacter(truncatedText);
103
- _this.setTextToCheck(combinedText());
104
- }
105
- return combinedText();
106
- });
107
- _defineProperty(this, "truncateEnd", function (truncationOffset) {
108
- var truncatedText = _this.fullText;
109
- var trailingText = '';
110
- var combinedText = function combinedText() {
111
- return "".concat(truncatedText).concat(trailingText);
112
- };
113
- if (truncationOffset) {
114
- var index = _this.fullText.length - truncationOffset;
115
- var _splitText$at3 = splitText(_this.fullText).at(index);
116
- var _splitText$at4 = _slicedToArray(_splitText$at3, 2);
117
- truncatedText = _splitText$at4[0];
118
- trailingText = _splitText$at4[1];
119
- var widthCheck = "".concat(_this.ellipsis).concat(trailingText);
120
- if (_this.checkTruncationOffsetWidth(widthCheck) === false) {
121
- truncatedText = trailingText;
122
- trailingText = '';
123
- }
124
- }
125
- trailingText = _this.ellipsis + trailingText;
126
- _this.setTextToCheck(combinedText());
127
- while (_this.textWidth > _this.availableWidth) {
128
- truncatedText = removeLastCharacter(truncatedText);
129
- _this.setTextToCheck(combinedText());
130
- }
131
- return combinedText();
132
- });
133
- _defineProperty(this, "truncateStartEndAtPosition", function (truncationPosition) {
134
- // If using a non-centered startEnd anchor position, we need to *build*
135
- // the string from scratch instead of *removing* from the full text string,
136
- // to make sure we don't go past the beginning or end of the text
137
- var truncatedText = '';
138
- _this.setTextToCheck(truncatedText);
139
-
140
- // Ellipses are conditional - if the anchor is towards the beginning or end,
141
- // it's possible they shouldn't render
142
- var startingEllipsis = _this.ellipsis;
143
- var endingEllipsis = _this.ellipsis;
144
-
145
- // Split the text into two at the anchor position
146
- var _splitText$at5 = splitText(_this.fullText).at(truncationPosition),
147
- _splitText$at6 = _slicedToArray(_splitText$at5, 2),
148
- firstPart = _splitText$at6[0],
149
- secondPart = _splitText$at6[1];
150
- var combinedText = function combinedText() {
151
- return "".concat(startingEllipsis).concat(truncatedText).concat(endingEllipsis);
152
- };
153
- while (_this.textWidth <= _this.availableWidth) {
154
- if (firstPart.length > 0) {
155
- truncatedText = "".concat(getLastCharacter(firstPart)).concat(truncatedText);
156
- firstPart = removeLastCharacter(firstPart);
157
- } else {
158
- startingEllipsis = '';
159
- }
160
- if (secondPart.length > 0) {
161
- truncatedText = "".concat(truncatedText).concat(getFirstCharacter(secondPart));
162
- secondPart = removeFirstCharacter(secondPart);
163
- } else {
164
- endingEllipsis = '';
165
- }
166
- _this.setTextToCheck(combinedText());
167
- }
168
-
169
- // Because this logic builds text outwards vs. removing inwards, the final
170
- // text width ends up a little larger than the container, and we need to
171
- // remove the last added character(s)
172
- if (!startingEllipsis) {
173
- truncatedText = removeLastCharacter(truncatedText);
174
- } else if (!endingEllipsis) {
175
- truncatedText = removeFirstCharacter(truncatedText);
176
- } else {
177
- truncatedText = removeFirstAndLastCharacters(truncatedText);
178
- }
179
- return combinedText();
180
- });
181
- _defineProperty(this, "truncateStartEndAtMiddle", function () {
182
- var truncatedText = _this.fullText;
183
- _this.setTextToCheck(truncatedText);
184
- var combinedText = function combinedText() {
185
- return "".concat(_this.ellipsis).concat(truncatedText).concat(_this.ellipsis);
186
- };
187
- while (_this.textWidth > _this.availableWidth) {
188
- truncatedText = removeFirstAndLastCharacters(truncatedText);
189
- _this.setTextToCheck(combinedText());
190
- }
191
- return combinedText();
192
- });
193
- _defineProperty(this, "truncateMiddle", function () {
194
- var middlePosition = Math.floor(_this.fullText.length / 2);
195
- var _splitText$at7 = splitText(_this.fullText).at(middlePosition),
196
- _splitText$at8 = _slicedToArray(_splitText$at7, 2),
197
- firstHalf = _splitText$at8[0],
198
- secondHalf = _splitText$at8[1];
199
- var trimfirstHalf;
200
- var combinedText = function combinedText() {
201
- return "".concat(firstHalf).concat(_this.ellipsis).concat(secondHalf);
202
- };
203
- _this.setTextToCheck(combinedText());
204
- while (_this.textWidth > _this.availableWidth) {
205
- trimfirstHalf = !trimfirstHalf;
206
- if (trimfirstHalf) {
207
- firstHalf = removeLastCharacter(firstHalf);
208
- } else {
209
- secondHalf = removeFirstCharacter(secondHalf);
210
- }
211
- _this.setTextToCheck(combinedText());
212
- }
213
- return combinedText();
214
- });
215
- this.fullText = fullText;
216
- this.ellipsis = ellipsis;
217
- this.availableWidth = availableWidth;
218
- }
219
-
220
- /**
221
- * Internal measurement utils which will be overridden depending on the
222
- * rendering approach used (e.g. DOM vs Canvas).
223
- */);
224
- /**
225
- * Creates a temporary vanilla JS DOM element for manipulating text and
226
- * determining text width.
227
- *
228
- * Requires passing in a container element to which the temporary element
229
- * will be appended. Any CSS/font styles that need to be accounted for should
230
- * be automatically inherited from the container.
231
- *
232
- * NOTE: The consumer is responsible for calling the `cleanup()` method manually
233
- * to remove the temporary DOM node once their usage of this utility is complete.
234
- */
235
-
236
- export var TruncationUtilsWithDOM = /*#__PURE__*/function (_TruncationUtils2) {
237
- _inherits(TruncationUtilsWithDOM, _TruncationUtils2);
238
- var _super = _createSuper(TruncationUtilsWithDOM);
239
- function TruncationUtilsWithDOM(_ref2) {
240
- var _this2;
241
- var container = _ref2.container,
242
- rest = _objectWithoutProperties(_ref2, _excluded);
243
- _classCallCheck(this, TruncationUtilsWithDOM);
244
- _this2 = _super.call(this, rest);
245
- _defineProperty(_assertThisInitialized(_this2), "container", void 0);
246
- _defineProperty(_assertThisInitialized(_this2), "span", void 0);
247
- _defineProperty(_assertThisInitialized(_this2), "setTextToCheck", function (text) {
248
- _this2.span.textContent = text;
249
- });
250
- _defineProperty(_assertThisInitialized(_this2), "cleanup", function () {
251
- _this2.container.removeChild(_this2.span);
252
- });
253
- _this2.container = container;
254
- _this2.span = document.createElement('span');
255
- _this2.span.style.position = 'absolute'; // Prevent page reflow/repaint for performance
256
- _this2.span.style.whiteSpace = 'nowrap'; // EuiTextTruncate already sets this on the parent, but we'll set it here as well for consumers who use this util standalone
257
- _this2.container.appendChild(_this2.span);
258
- return _this2;
259
- }
260
- _createClass(TruncationUtilsWithDOM, [{
261
- key: "textWidth",
262
- get: function get() {
263
- return this.span.offsetWidth;
264
- }
265
- }]);
266
- return TruncationUtilsWithDOM;
267
- }(_TruncationUtils);
268
33
 
269
34
  /**
270
- * Creates a temporary Canvas element for manipulating text & determining
271
- * text width. This method is compatible with charts or other canvas-rendered
272
- * frameworks, and requires no cleanup method.
35
+ * Under the hood, a temporary Canvas element is created for manipulating text
36
+ * & determining text width.
273
37
  *
274
38
  * To accurately measure text, canvas rendering requires either a container to
275
39
  * compute/derive font styles from, or a static font string (useful for usage
276
40
  * outside the DOM). Particular care should be applied when fallback fonts are
277
41
  * used, as more fallback fonts can lead to less precision.
278
42
  *
279
- * Please note that while canvas is more performant than DOM measurement, there
280
- * are subpixel to single digit pixel differences between DOM and canvas
281
- * measurement due to the different rendering engines used.
43
+ * Please note that while canvas is more significantly more performant than DOM
44
+ * measurement, there are subpixel to single digit pixel differences between
45
+ * DOM and canvas measurement due to the different rendering engines used.
282
46
  */
283
- export var TruncationUtilsWithCanvas = /*#__PURE__*/function (_TruncationUtils3) {
284
- _inherits(TruncationUtilsWithCanvas, _TruncationUtils3);
285
- var _super2 = _createSuper(TruncationUtilsWithCanvas);
286
- function TruncationUtilsWithCanvas(_ref3) {
287
- var _this3;
288
- var font = _ref3.font,
289
- container = _ref3.container,
290
- rest = _objectWithoutProperties(_ref3, _excluded2);
291
- _classCallCheck(this, TruncationUtilsWithCanvas);
292
- _this3 = _super2.call(this, rest);
293
- _defineProperty(_assertThisInitialized(_this3), "context", void 0);
294
- _defineProperty(_assertThisInitialized(_this3), "currentText", '');
295
- _defineProperty(_assertThisInitialized(_this3), "computeFontFromElement", function (element) {
47
+ export var CanvasTextUtils = /*#__PURE__*/function () {
48
+ function CanvasTextUtils(_ref) {
49
+ var _this = this;
50
+ var font = _ref.font,
51
+ container = _ref.container;
52
+ _classCallCheck(this, CanvasTextUtils);
53
+ _defineProperty(this, "context", void 0);
54
+ _defineProperty(this, "currentText", '');
55
+ _defineProperty(this, "computeFontFromElement", function (element) {
296
56
  var computedStyles = window.getComputedStyle(element);
57
+ // TODO: font-stretch is not included even though it potentially should be
58
+ // @see https://developer.mozilla.org/en-US/docs/Web/CSS/font#constituent_properties
59
+ // It appears to be unsupported and/or breaks font computation in canvas
297
60
  return ['font-style', 'font-variant', 'font-weight', 'font-size', 'font-family'].map(function (prop) {
298
61
  return computedStyles.getPropertyValue(prop);
299
62
  }).join(' ').trim();
300
63
  });
301
- _defineProperty(_assertThisInitialized(_this3), "setTextToCheck", function (text) {
302
- _this3.currentText = text;
64
+ _defineProperty(this, "setTextToCheck", function (text) {
65
+ _this.currentText = text;
303
66
  });
304
- _this3.context = document.createElement('canvas').getContext('2d');
67
+ this.context = document.createElement('canvas').getContext('2d');
305
68
 
306
69
  // Set the canvas font to ensure text width calculations are correct
307
70
  if (font) {
308
- _this3.context.font = font;
71
+ this.context.font = font;
309
72
  } else if (container) {
310
- _this3.context.font = _this3.computeFontFromElement(container);
73
+ this.context.font = this.computeFontFromElement(container);
311
74
  }
312
- return _this3;
313
75
  }
314
- _createClass(TruncationUtilsWithCanvas, [{
76
+ _createClass(CanvasTextUtils, [{
315
77
  key: "textWidth",
316
78
  get: function get() {
317
79
  return this.context.measureText(this.currentText).width;
318
80
  }
319
81
  }]);
320
- return TruncationUtilsWithCanvas;
321
- }(_TruncationUtils);
82
+ return CanvasTextUtils;
83
+ }();
84
+
85
+ /**
86
+ * Utilities for truncating types at various positions, as well as
87
+ * determining whether truncation is possible or even necessary.
88
+ */
89
+ export var TruncationUtils = /*#__PURE__*/function (_CanvasTextUtils) {
90
+ _inherits(TruncationUtils, _CanvasTextUtils);
91
+ var _super = _createSuper(TruncationUtils);
92
+ function TruncationUtils(_ref2) {
93
+ var _this2;
94
+ var fullText = _ref2.fullText,
95
+ ellipsis = _ref2.ellipsis,
96
+ _availableWidth = _ref2.availableWidth,
97
+ rest = _objectWithoutProperties(_ref2, _excluded);
98
+ _classCallCheck(this, TruncationUtils);
99
+ _this2 = _super.call(this, rest);
100
+ _defineProperty(_assertThisInitialized(_this2), "fullText", void 0);
101
+ _defineProperty(_assertThisInitialized(_this2), "ellipsis", void 0);
102
+ _defineProperty(_assertThisInitialized(_this2), "availableWidth", void 0);
103
+ /**
104
+ * Performance utilities
105
+ */
106
+ _defineProperty(_assertThisInitialized(_this2), "debugPerformance", false);
107
+ _defineProperty(_assertThisInitialized(_this2), "debugCounter", 0);
108
+ /**
109
+ * Internal utils for calculating a ratio based on the passed available width
110
+ * vs the full text width.
111
+ * This ratio is used to get an initial _approximate_ text string that should
112
+ * be slightly over the available width, which we can then remove from
113
+ * character-by-character until the text just fits within the available width.
114
+ */
115
+ _defineProperty(_assertThisInitialized(_this2), "widthRatio", 0);
116
+ _defineProperty(_assertThisInitialized(_this2), "setTextWidthRatio", function () {
117
+ var text = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : _this2.fullText;
118
+ var textToOffset = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
119
+ // Account for reduced available width due to (e.g.) truncation offset
120
+ var availableWidth = _this2.availableWidth;
121
+ if (textToOffset) {
122
+ _this2.setTextToCheck(textToOffset);
123
+ availableWidth = availableWidth - _this2.textWidth;
124
+ }
125
+ _this2.setTextToCheck(text);
126
+ _this2.widthRatio = availableWidth / _this2.textWidth;
127
+ });
128
+ _defineProperty(_assertThisInitialized(_this2), "getTextFromRatio", function (text, type) {
129
+ var characterRatio = Math.ceil(text.length * _this2.widthRatio);
130
+ var index = type === 'start' ? text.length - characterRatio : characterRatio;
131
+ var _splitText$at = splitText(text).at(index),
132
+ _splitText$at2 = _slicedToArray(_splitText$at, 2),
133
+ end = _splitText$at2[0],
134
+ start = _splitText$at2[1];
135
+ return type === 'start' ? start : end;
136
+ });
137
+ /**
138
+ * Early return checks
139
+ */
140
+ _defineProperty(_assertThisInitialized(_this2), "checkIfTruncationIsNeeded", function () {
141
+ _this2.setTextToCheck(_this2.fullText);
142
+ if (_this2.availableWidth >= _this2.textWidth) {
143
+ return false;
144
+ }
145
+ });
146
+ _defineProperty(_assertThisInitialized(_this2), "checkSufficientEllipsisWidth", function (truncation) {
147
+ var textToCheck = truncation === 'startEnd' ? "".concat(_this2.ellipsis, " ").concat(_this2.ellipsis) // startEnd needs a little more space
148
+ : _this2.ellipsis;
149
+ _this2.setTextToCheck(textToCheck);
150
+ if (_this2.textWidth >= _this2.availableWidth * 0.9) {
151
+ console.error('The truncation ellipsis is larger than the available width. No text can be rendered.');
152
+ return false;
153
+ }
154
+ });
155
+ _defineProperty(_assertThisInitialized(_this2), "checkTruncationOffsetWidth", function (text) {
156
+ _this2.setTextToCheck(text);
157
+ if (_this2.textWidth > _this2.availableWidth) {
158
+ console.error('The passed truncationOffset is too large for the available width. Truncating the offset instead.');
159
+ return false;
160
+ }
161
+ });
162
+ /**
163
+ * Truncation types logic. This is where the magic happens
164
+ */
165
+ _defineProperty(_assertThisInitialized(_this2), "truncateStart", function (truncationOffset) {
166
+ var truncatedText = _this2.fullText;
167
+ var leadingText = '';
168
+ var combinedText = function combinedText() {
169
+ return leadingText + truncatedText;
170
+ };
171
+ if (truncationOffset) {
172
+ var _splitText$at3 = splitText(_this2.fullText).at(truncationOffset);
173
+ var _splitText$at4 = _slicedToArray(_splitText$at3, 2);
174
+ leadingText = _splitText$at4[0];
175
+ truncatedText = _splitText$at4[1];
176
+ var widthCheck = leadingText + _this2.ellipsis;
177
+ if (_this2.checkTruncationOffsetWidth(widthCheck) === false) {
178
+ truncatedText = leadingText;
179
+ leadingText = '';
180
+ }
181
+ }
182
+
183
+ // Get text width ratio width accounting for any truncation offset text,
184
+ // and guesstimate an initial truncated string
185
+ _this2.setTextWidthRatio(truncatedText, leadingText);
186
+ truncatedText = _this2.getTextFromRatio(truncatedText, 'start');
187
+ leadingText += _this2.ellipsis;
188
+ _this2.setTextToCheck(combinedText());
189
+ while (_this2.textWidth > _this2.availableWidth) {
190
+ truncatedText = removeFirstCharacter(truncatedText);
191
+ _this2.setTextToCheck(combinedText());
192
+ }
193
+ return combinedText();
194
+ });
195
+ _defineProperty(_assertThisInitialized(_this2), "truncateEnd", function (truncationOffset) {
196
+ var truncatedText = _this2.fullText;
197
+ var trailingText = '';
198
+ var combinedText = function combinedText() {
199
+ return truncatedText + trailingText;
200
+ };
201
+ if (truncationOffset) {
202
+ var index = _this2.fullText.length - truncationOffset;
203
+ var _splitText$at5 = splitText(_this2.fullText).at(index);
204
+ var _splitText$at6 = _slicedToArray(_splitText$at5, 2);
205
+ truncatedText = _splitText$at6[0];
206
+ trailingText = _splitText$at6[1];
207
+ var widthCheck = _this2.ellipsis + trailingText;
208
+ if (_this2.checkTruncationOffsetWidth(widthCheck) === false) {
209
+ truncatedText = trailingText;
210
+ trailingText = '';
211
+ }
212
+ }
213
+
214
+ // Get text width ratio width accounting for any truncation offset text,
215
+ // and guesstimate an initial truncated string
216
+ _this2.setTextWidthRatio(truncatedText, trailingText);
217
+ truncatedText = _this2.getTextFromRatio(truncatedText, 'end');
218
+ trailingText = _this2.ellipsis + trailingText;
219
+ _this2.setTextToCheck(combinedText());
220
+ while (_this2.textWidth > _this2.availableWidth) {
221
+ truncatedText = removeLastCharacter(truncatedText);
222
+ _this2.setTextToCheck(combinedText());
223
+ }
224
+ return combinedText();
225
+ });
226
+ _defineProperty(_assertThisInitialized(_this2), "truncateStartEndAtPosition", function (truncationPosition) {
227
+ // Split the text from the anchor position, using the width ratio
228
+ // to get the starting and ending indices from the position
229
+ _this2.setTextWidthRatio();
230
+ var characterRatio = Math.floor(_this2.fullText.length * _this2.widthRatio / 2);
231
+ var truncateStart = truncationPosition - characterRatio;
232
+ var truncateEnd = truncationPosition + characterRatio;
233
+
234
+ // If either of the approximate start/end truncation indices go beyond the
235
+ // bounds of the actual text, we can simply use end or start truncation instead
236
+ if (truncateStart < 0) {
237
+ return _this2.truncateEnd();
238
+ }
239
+ if (truncateEnd >= _this2.fullText.length) {
240
+ return _this2.truncateStart();
241
+ }
242
+ var truncatedText = _this2.fullText.substring(truncateStart, truncateEnd);
243
+ var combinedText = function combinedText() {
244
+ return _this2.ellipsis + truncatedText + _this2.ellipsis;
245
+ };
246
+ _this2.setTextToCheck(combinedText());
247
+ var alternating;
248
+ while (_this2.textWidth > _this2.availableWidth) {
249
+ truncatedText = alternating ? removeLastCharacter(truncatedText) : removeFirstCharacter(truncatedText);
250
+ alternating = !alternating;
251
+ _this2.setTextToCheck(combinedText());
252
+ }
253
+ return combinedText();
254
+ });
255
+ _defineProperty(_assertThisInitialized(_this2), "truncateStartEndAtMiddle", function () {
256
+ var middlePosition = Math.floor(_this2.fullText.length / 2);
257
+ return _this2.truncateStartEndAtPosition(middlePosition);
258
+ });
259
+ _defineProperty(_assertThisInitialized(_this2), "truncateMiddle", function () {
260
+ var middlePosition = Math.floor(_this2.fullText.length / 2);
261
+ var _splitText$at7 = splitText(_this2.fullText).at(middlePosition),
262
+ _splitText$at8 = _slicedToArray(_splitText$at7, 2),
263
+ firstHalf = _splitText$at8[0],
264
+ secondHalf = _splitText$at8[1];
265
+ _this2.setTextWidthRatio();
266
+ firstHalf = _this2.getTextFromRatio(firstHalf, 'end');
267
+ secondHalf = _this2.getTextFromRatio(secondHalf, 'start');
268
+ var combinedText = function combinedText() {
269
+ return firstHalf + _this2.ellipsis + secondHalf;
270
+ };
271
+ _this2.setTextToCheck(combinedText());
272
+ var alternating;
273
+ while (_this2.textWidth > _this2.availableWidth) {
274
+ alternating = !alternating;
275
+ if (alternating) {
276
+ firstHalf = removeLastCharacter(firstHalf);
277
+ } else {
278
+ secondHalf = removeFirstCharacter(secondHalf);
279
+ }
280
+ _this2.setTextToCheck(combinedText());
281
+ }
282
+ return combinedText();
283
+ });
284
+ _this2.fullText = fullText;
285
+ _this2.ellipsis = ellipsis;
286
+ _this2.availableWidth = _availableWidth;
287
+ return _this2;
288
+ }
289
+ _createClass(TruncationUtils, [{
290
+ key: "textWidth",
291
+ get: function get() {
292
+ if (this.debugPerformance) {
293
+ this.debugCounter++;
294
+ }
295
+ return _get(_getPrototypeOf(TruncationUtils.prototype), "textWidth", this);
296
+ }
297
+ }]);
298
+ return TruncationUtils;
299
+ }(CanvasTextUtils);
322
300
 
323
301
  /**
324
302
  * DRY character/substring utils
@@ -327,18 +305,9 @@ export var TruncationUtilsWithCanvas = /*#__PURE__*/function (_TruncationUtils3)
327
305
  var removeLastCharacter = function removeLastCharacter(text) {
328
306
  return text.substring(0, text.length - 1);
329
307
  };
330
- var getLastCharacter = function getLastCharacter(text) {
331
- return text.substring(text.length - 1);
332
- };
333
308
  var removeFirstCharacter = function removeFirstCharacter(text) {
334
309
  return text.substring(1);
335
310
  };
336
- var getFirstCharacter = function getFirstCharacter(text) {
337
- return text.substring(0, 1);
338
- };
339
- var removeFirstAndLastCharacters = function removeFirstAndLastCharacters(text) {
340
- return text.substring(1, text.length - 1);
341
- };
342
311
  var splitText = function splitText(text) {
343
312
  return {
344
313
  at: function at(index) {
@@ -37,7 +37,7 @@ EuiTimelineItemIcon.propTypes = {
37
37
  /**
38
38
  * Any `ReactNode`, but preferably `EuiAvatar`, or a `string` as an `EuiIcon['type']`.
39
39
  */
40
- icon: PropTypes.oneOfType([PropTypes.node.isRequired, PropTypes.oneOfType([PropTypes.oneOf(["accessibility", "addDataApp", "advancedSettingsApp", "agentApp", "aggregate", "analyzeEvent", "annotation", "apmApp", "apmTrace", "appSearchApp", "apps", "arrowDown", "arrowLeft", "arrowRight", "arrowUp", "arrowStart", "arrowEnd", "article", "asterisk", "at", "auditbeatApp", "beaker", "bell", "bellSlash", "beta", "bolt", "boxesHorizontal", "boxesVertical", "branch", "branchUser", "broom", "brush", "bug", "bullseye", "calendar", "canvasApp", "casesApp", "check", "checkInCircleFilled", "cheer", "classificationJob", "clock", "cloudDrizzle", "cloudStormy", "cloudSunny", "cluster", "codeApp", "color", "compute", "console", "consoleApp", "container", "continuityAbove", "continuityAboveBelow", "continuityBelow", "continuityWithin", "controlsHorizontal", "controlsVertical", "copy", "copyClipboard", "createAdvancedJob", "createMultiMetricJob", "createPopulationJob", "createSingleMetricJob", "cross", "crossClusterReplicationApp", "crosshairs", "currency", "cut", "dashboardApp", "dataVisualizer", "database", "desktop", "devToolsApp", "discoverApp", "discuss", "document", "documentEdit", "documentation", "documents", "dot", "dotInCircle", "doubleArrowLeft", "doubleArrowRight", "download", "editorAlignCenter", "editorAlignLeft", "editorAlignRight", "editorBold", "editorChecklist", "editorCodeBlock", "editorComment", "editorDistributeHorizontal", "editorDistributeVertical", "editorHeading", "editorItalic", "editorItemAlignBottom", "editorItemAlignCenter", "editorItemAlignLeft", "editorItemAlignMiddle", "editorItemAlignRight", "editorItemAlignTop", "editorLink", "editorOrderedList", "editorPositionBottomLeft", "editorPositionBottomRight", "editorPositionTopLeft", "editorPositionTopRight", "editorRedo", "editorStrike", "editorTable", "editorUnderline", "editorUndo", "editorUnorderedList", "email", "empty", "emsApp", "eql", "eraser", "error", "exit", "expand", "expandMini", "exportAction", "eye", "eyeClosed", "faceHappy", "faceNeutral", "faceSad", "filebeatApp", "filter", "filterExclude", "filterIgnore", "filterInclude", "filterInCircle", "flag", "fleetApp", "fold", "folderCheck", "folderClosed", "folderExclamation", "folderOpen", "frameNext", "framePrevious", "fullScreen", "fullScreenExit", "function", "gear", "gisApp", "glasses", "globe", "grab", "grabHorizontal", "grabOmnidirectional", "graphApp", "grid", "grokApp", "heart", "heartbeatApp", "heatmap", "help", "home", "iInCircle", "image", "importAction", "indexClose", "indexEdit", "indexFlush", "indexManagementApp", "indexMapping", "indexOpen", "indexPatternApp", "indexRollupApp", "indexRuntime", "indexSettings", "indexTemporary", "infinity", "inputOutput", "inspect", "invert", "ip", "key", "keyboard", "kqlField", "kqlFunction", "kqlOperand", "kqlSelector", "kqlValue", "kubernetesNode", "kubernetesPod", "launch", "layers", "lensApp", "lettering", "lineDashed", "lineDotted", "lineSolid", "link", "list", "listAdd", "lock", "lockOpen", "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", "logoVulnerabilityManagement", "logoWebhook", "logoWindows", "logoWorkplaceSearch", "logsApp", "logstashFilter", "logstashIf", "logstashInput", "logstashOutput", "logstashQueue", "machineLearningApp", "magnet", "magnifyWithExclamation", "magnifyWithMinus", "magnifyWithPlus", "managementApp", "mapMarker", "memory", "menu", "menuDown", "menuLeft", "menuRight", "menuUp", "merge", "metricbeatApp", "metricsApp", "minimize", "minus", "minusInCircle", "minusInCircleFilled", "mobile", "monitoringApp", "moon", "namespace", "nested", "node", "notebookApp", "number", "offline", "online", "outlierDetectionJob", "package", "packetbeatApp", "pageSelect", "pagesSelect", "paperClip", "partial", "pause", "payment", "pencil", "percent", "pin", "pinFilled", "pipelineApp", "pivot", "play", "playFilled", "plus", "plusInCircle", "plusInCircleFilled", "popout", "push", "questionInCircle", "quote", "recentlyViewedApp", "refresh", "regressionJob", "reporter", "reportingApp", "returnKey", "save", "savedObjectsApp", "scale", "search", "searchProfilerApp", "securityAnalyticsApp", "securityApp", "securitySignal", "securitySignalDetected", "securitySignalResolved", "sessionViewer", "shard", "share", "snowflake", "sortAscending", "sortDescending", "sortDown", "sortLeft", "sortRight", "sortUp", "sortable", "spaces", "spacesApp", "sparkles", "sqlApp", "starEmpty", "starEmptySpace", "starFilled", "starFilledSpace", "starMinusEmpty", "starMinusFilled", "starPlusEmpty", "starPlusFilled", "stats", "stop", "stopFilled", "stopSlash", "storage", "string", "submodule", "sun", "swatchInput", "symlink", "tableDensityCompact", "tableDensityExpanded", "tableDensityNormal", "tableOfContents", "tag", "tear", "temperature", "timeline", "timelineWithArrow", "timelionApp", "timeRefresh", "timeslider", "training", "transitionLeftIn", "transitionLeftOut", "transitionTopIn", "transitionTopOut", "trash", "unfold", "unlink", "upgradeAssistantApp", "uptimeApp", "user", "userAvatar", "users", "usersRolesApp", "vector", "videoPlayer", "visArea", "visAreaStacked", "visBarHorizontal", "visBarHorizontalStacked", "visBarVertical", "visBarVerticalStacked", "visGauge", "visGoal", "visLine", "visMapCoordinate", "visMapRegion", "visMetric", "visPie", "visTable", "visTagCloud", "visText", "visTimelion", "visVega", "visVisualBuilder", "visualizeApp", "vulnerabilityManagementApp", "warning", "alert", "watchesApp", "wordWrap", "wordWrapDisabled", "workplaceSearchApp", "wrench", "tokenAlias", "tokenAnnotation", "tokenArray", "tokenBinary", "tokenBoolean", "tokenClass", "tokenCompletionSuggester", "tokenConstant", "tokenDate", "tokenDenseVector", "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", "tokenShape", "tokenString", "tokenStruct", "tokenSymbol", "tokenTag", "tokenText", "tokenTokenCount", "tokenVariable"]).isRequired, PropTypes.string.isRequired, PropTypes.elementType.isRequired]).isRequired]).isRequired,
40
+ icon: PropTypes.oneOfType([PropTypes.node.isRequired, PropTypes.oneOfType([PropTypes.oneOf(["accessibility", "addDataApp", "advancedSettingsApp", "agentApp", "aggregate", "analyzeEvent", "annotation", "apmApp", "apmTrace", "appSearchApp", "apps", "arrowDown", "arrowLeft", "arrowRight", "arrowUp", "arrowStart", "arrowEnd", "article", "asterisk", "at", "auditbeatApp", "beaker", "bell", "bellSlash", "beta", "bolt", "boxesHorizontal", "boxesVertical", "branch", "branchUser", "broom", "brush", "bug", "bullseye", "calendar", "canvasApp", "casesApp", "check", "checkInCircleFilled", "cheer", "classificationJob", "clock", "cloudDrizzle", "cloudStormy", "cloudSunny", "cluster", "codeApp", "color", "compute", "console", "consoleApp", "container", "continuityAbove", "continuityAboveBelow", "continuityBelow", "continuityWithin", "controlsHorizontal", "controlsVertical", "copy", "copyClipboard", "createAdvancedJob", "createMultiMetricJob", "createPopulationJob", "createSingleMetricJob", "cross", "crossClusterReplicationApp", "crosshairs", "currency", "cut", "dashboardApp", "dataVisualizer", "database", "desktop", "devToolsApp", "discoverApp", "discuss", "document", "documentEdit", "documentation", "documents", "dot", "dotInCircle", "doubleArrowLeft", "doubleArrowRight", "download", "editorAlignCenter", "editorAlignLeft", "editorAlignRight", "editorBold", "editorChecklist", "editorCodeBlock", "editorComment", "editorDistributeHorizontal", "editorDistributeVertical", "editorHeading", "editorItalic", "editorItemAlignBottom", "editorItemAlignCenter", "editorItemAlignLeft", "editorItemAlignMiddle", "editorItemAlignRight", "editorItemAlignTop", "editorLink", "editorOrderedList", "editorPositionBottomLeft", "editorPositionBottomRight", "editorPositionTopLeft", "editorPositionTopRight", "editorRedo", "editorStrike", "editorTable", "editorUnderline", "editorUndo", "editorUnorderedList", "email", "empty", "emsApp", "eql", "eraser", "error", "exit", "expand", "expandMini", "exportAction", "eye", "eyeClosed", "faceHappy", "faceNeutral", "faceSad", "filebeatApp", "filter", "filterExclude", "filterIgnore", "filterInclude", "filterInCircle", "flag", "fleetApp", "fold", "folderCheck", "folderClosed", "folderExclamation", "folderOpen", "frameNext", "framePrevious", "fullScreen", "fullScreenExit", "function", "gear", "gisApp", "glasses", "globe", "grab", "grabHorizontal", "grabOmnidirectional", "gradient", "graphApp", "grid", "grokApp", "heart", "heartbeatApp", "heatmap", "help", "home", "iInCircle", "image", "importAction", "indexClose", "indexEdit", "indexFlush", "indexManagementApp", "indexMapping", "indexOpen", "indexPatternApp", "indexRollupApp", "indexRuntime", "indexSettings", "indexTemporary", "infinity", "inputOutput", "inspect", "invert", "ip", "key", "keyboard", "kqlField", "kqlFunction", "kqlOperand", "kqlSelector", "kqlValue", "kubernetesNode", "kubernetesPod", "launch", "layers", "lensApp", "lettering", "lineDashed", "lineDotted", "lineSolid", "link", "list", "listAdd", "lock", "lockOpen", "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", "logoVulnerabilityManagement", "logoWebhook", "logoWindows", "logoWorkplaceSearch", "logsApp", "logstashFilter", "logstashIf", "logstashInput", "logstashOutput", "logstashQueue", "machineLearningApp", "magnet", "magnifyWithExclamation", "magnifyWithMinus", "magnifyWithPlus", "managementApp", "mapMarker", "memory", "menu", "menuDown", "menuLeft", "menuRight", "menuUp", "merge", "metricbeatApp", "metricsApp", "minimize", "minus", "minusInCircle", "minusInCircleFilled", "mobile", "monitoringApp", "moon", "namespace", "nested", "node", "notebookApp", "number", "offline", "online", "outlierDetectionJob", "package", "packetbeatApp", "pageSelect", "pagesSelect", "palette", "paperClip", "partial", "pause", "payment", "pencil", "percent", "pin", "pinFilled", "pipelineApp", "pivot", "play", "playFilled", "plus", "plusInCircle", "plusInCircleFilled", "popout", "push", "questionInCircle", "quote", "recentlyViewedApp", "refresh", "regressionJob", "reporter", "reportingApp", "returnKey", "save", "savedObjectsApp", "scale", "search", "searchProfilerApp", "securityAnalyticsApp", "securityApp", "securitySignal", "securitySignalDetected", "securitySignalResolved", "sessionViewer", "shard", "share", "snowflake", "sortAscending", "sortDescending", "sortDown", "sortLeft", "sortRight", "sortUp", "sortable", "spaces", "spacesApp", "sparkles", "sqlApp", "starEmpty", "starEmptySpace", "starFilled", "starFilledSpace", "starMinusEmpty", "starMinusFilled", "starPlusEmpty", "starPlusFilled", "stats", "stop", "stopFilled", "stopSlash", "storage", "string", "submodule", "sun", "swatchInput", "symlink", "tableDensityCompact", "tableDensityExpanded", "tableDensityNormal", "tableOfContents", "tag", "tear", "temperature", "timeline", "timelineWithArrow", "timelionApp", "timeRefresh", "timeslider", "training", "transitionLeftIn", "transitionLeftOut", "transitionTopIn", "transitionTopOut", "trash", "unfold", "unlink", "upgradeAssistantApp", "uptimeApp", "user", "userAvatar", "users", "usersRolesApp", "vector", "videoPlayer", "visArea", "visAreaStacked", "visBarHorizontal", "visBarHorizontalStacked", "visBarVertical", "visBarVerticalStacked", "visGauge", "visGoal", "visLine", "visMapCoordinate", "visMapRegion", "visMetric", "visPie", "visTable", "visTagCloud", "visText", "visTimelion", "visVega", "visVisualBuilder", "visualizeApp", "vulnerabilityManagementApp", "warning", "alert", "watchesApp", "wordWrap", "wordWrapDisabled", "workplaceSearchApp", "wrench", "tokenAlias", "tokenAnnotation", "tokenArray", "tokenBinary", "tokenBoolean", "tokenClass", "tokenCompletionSuggester", "tokenConstant", "tokenDate", "tokenDenseVector", "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", "tokenShape", "tokenString", "tokenStruct", "tokenSymbol", "tokenTag", "tokenText", "tokenTokenCount", "tokenVariable"]).isRequired, PropTypes.string.isRequired, PropTypes.elementType.isRequired]).isRequired]).isRequired,
41
41
  verticalAlign: PropTypes.any,
42
42
  /**
43
43
  * Specify an `aria-label` for the icon when passed as an `IconType`.