@elastic/eui 60.3.0 → 61.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (274) hide show
  1. package/dist/eui_theme_dark.css +9 -173
  2. package/dist/eui_theme_dark.min.css +1 -1
  3. package/dist/eui_theme_light.css +9 -173
  4. package/dist/eui_theme_light.min.css +1 -1
  5. package/es/components/accessibility/skip_link/skip_link.js +1 -1
  6. package/es/components/avatar/avatar.js +1 -1
  7. package/es/components/badge/badge.js +1 -1
  8. package/es/components/badge/beta_badge/beta_badge.js +1 -1
  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.js +1 -1
  12. package/es/components/button/_button_content_deprecated.js +1 -1
  13. package/es/components/button/button.js +2 -2
  14. package/es/components/button/button_display/_button_display.js +1 -1
  15. package/es/components/button/button_display/_button_display_content.js +1 -1
  16. package/es/components/button/button_empty/button_empty.js +1 -1
  17. package/es/components/button/button_group/button_group.js +1 -1
  18. package/es/components/button/button_group/button_group_button.js +1 -1
  19. package/es/components/button/button_icon/button_icon.js +1 -1
  20. package/es/components/call_out/call_out.js +1 -1
  21. package/es/components/card/card.js +1 -1
  22. package/es/components/card/card_select.js +1 -1
  23. package/es/components/collapsible_nav/collapsible_nav_group/collapsible_nav_group.js +1 -1
  24. package/es/components/comment_list/comment.js +45 -24
  25. package/es/components/comment_list/comment_event.js +104 -33
  26. package/es/components/comment_list/comment_event.styles.js +78 -0
  27. package/es/components/comment_list/comment_list.js +38 -13
  28. package/es/components/comment_list/comment_timeline.js +22 -34
  29. package/es/components/datagrid/body/data_grid_body.js +14 -14
  30. package/es/components/datagrid/body/data_grid_cell.js +24 -24
  31. package/es/components/datagrid/body/header/data_grid_header_cell.js +12 -12
  32. package/es/components/datagrid/body/header/data_grid_header_row.js +13 -13
  33. package/es/components/datagrid/controls/column_sorting_draggable.js +1 -1
  34. package/es/components/datagrid/data_grid.js +13 -13
  35. package/es/components/datagrid/utils/in_memory.js +12 -12
  36. package/es/components/datagrid/utils/row_heights.js +27 -33
  37. package/es/components/date_picker/date_picker.js +2 -2
  38. package/es/components/date_picker/date_picker_range.js +1 -1
  39. package/es/components/empty_prompt/empty_prompt.js +1 -1
  40. package/es/components/form/field_number/field_number.js +1 -1
  41. package/es/components/form/field_text/field_text.js +2 -2
  42. package/es/components/form/form_control_layout/form_control_layout.js +2 -2
  43. package/es/components/form/form_control_layout/form_control_layout_custom_icon.js +1 -1
  44. package/es/components/form/form_control_layout/form_control_layout_icons.js +2 -2
  45. package/es/components/header/header_links/header_link.js +1 -1
  46. package/es/components/header/header_links/header_links.js +1 -1
  47. package/es/components/header/header_logo.js +1 -1
  48. package/es/components/icon/assets/{keyboard_shortcut.js → keyboard.js} +5 -5
  49. package/es/components/icon/icon.js +1 -1
  50. package/es/components/icon/icon_map.js +1 -1
  51. package/es/components/key_pad_menu/key_pad_menu_item.js +1 -1
  52. package/es/components/list_group/list_group.js +2 -2
  53. package/es/components/list_group/list_group_item.js +2 -2
  54. package/es/components/list_group/pinnable_list_group/pinnable_list_group.js +4 -4
  55. package/es/components/loading/loading_logo.js +1 -1
  56. package/es/components/markdown_editor/markdown_editor.js +1 -1
  57. package/es/components/markdown_editor/markdown_editor_drop_zone.js +1 -1
  58. package/es/components/markdown_editor/markdown_editor_footer.js +1 -1
  59. package/es/components/markdown_editor/markdown_editor_toolbar.js +1 -1
  60. package/es/components/notification/notification_event.js +2 -2
  61. package/es/components/notification/notification_event_meta.js +1 -1
  62. package/es/components/page/page_header/page_header.js +1 -1
  63. package/es/components/page/page_header/page_header_content.js +1 -1
  64. package/es/components/page/page_template.js +1 -1
  65. package/es/components/pagination/pagination_button.js +1 -1
  66. package/es/components/selectable/selectable_list/selectable_list.js +1 -1
  67. package/es/components/selectable/selectable_list/selectable_list_item.js +1 -1
  68. package/es/components/selectable/selectable_templates/selectable_template_sitewide.js +1 -1
  69. package/es/components/suggest/suggest.js +1 -1
  70. package/es/components/suggest/suggest_item.js +1 -1
  71. package/es/components/table/table_header_button.js +1 -1
  72. package/es/components/text/text.styles.js +5 -4
  73. package/es/components/timeline/timeline_item.js +1 -2
  74. package/es/components/timeline/timeline_item_icon.js +1 -1
  75. package/es/components/toast/global_toast_list.js +1 -1
  76. package/es/components/toast/toast.js +1 -1
  77. package/es/components/token/token.js +1 -1
  78. package/es/components/tool_tip/icon_tip.js +1 -1
  79. package/es/services/hooks/index.js +1 -0
  80. package/es/services/hooks/useLatest.js +18 -0
  81. package/es/test/emotion-prefix.js +1 -1
  82. package/eui.d.ts +198 -153
  83. package/lib/components/accessibility/skip_link/skip_link.js +1 -1
  84. package/lib/components/avatar/avatar.js +1 -1
  85. package/lib/components/badge/badge.js +1 -1
  86. package/lib/components/badge/beta_badge/beta_badge.js +1 -1
  87. package/lib/components/basic_table/basic_table.js +1 -1
  88. package/lib/components/basic_table/collapsed_item_actions.js +1 -1
  89. package/lib/components/basic_table/in_memory_table.js +1 -1
  90. package/lib/components/button/_button_content_deprecated.js +1 -1
  91. package/lib/components/button/button.js +2 -2
  92. package/lib/components/button/button_display/_button_display.js +1 -1
  93. package/lib/components/button/button_display/_button_display_content.js +1 -1
  94. package/lib/components/button/button_empty/button_empty.js +1 -1
  95. package/lib/components/button/button_group/button_group.js +1 -1
  96. package/lib/components/button/button_group/button_group_button.js +1 -1
  97. package/lib/components/button/button_icon/button_icon.js +1 -1
  98. package/lib/components/call_out/call_out.js +1 -1
  99. package/lib/components/card/card.js +1 -1
  100. package/lib/components/card/card_select.js +1 -1
  101. package/lib/components/collapsible_nav/collapsible_nav_group/collapsible_nav_group.js +1 -1
  102. package/lib/components/comment_list/comment.js +44 -25
  103. package/lib/components/comment_list/comment_event.js +105 -42
  104. package/lib/components/comment_list/comment_event.styles.js +86 -0
  105. package/lib/components/comment_list/comment_list.js +39 -13
  106. package/lib/components/comment_list/comment_timeline.js +23 -46
  107. package/lib/components/datagrid/body/data_grid_body.js +14 -14
  108. package/lib/components/datagrid/body/data_grid_cell.js +24 -24
  109. package/lib/components/datagrid/body/header/data_grid_header_cell.js +12 -12
  110. package/lib/components/datagrid/body/header/data_grid_header_row.js +13 -13
  111. package/lib/components/datagrid/controls/column_sorting_draggable.js +1 -1
  112. package/lib/components/datagrid/data_grid.js +13 -13
  113. package/lib/components/datagrid/utils/in_memory.js +12 -12
  114. package/lib/components/datagrid/utils/row_heights.js +26 -32
  115. package/lib/components/date_picker/date_picker.js +2 -2
  116. package/lib/components/date_picker/date_picker_range.js +1 -1
  117. package/lib/components/empty_prompt/empty_prompt.js +1 -1
  118. package/lib/components/form/field_number/field_number.js +1 -1
  119. package/lib/components/form/field_text/field_text.js +2 -2
  120. package/lib/components/form/form_control_layout/form_control_layout.js +2 -2
  121. package/lib/components/form/form_control_layout/form_control_layout_custom_icon.js +1 -1
  122. package/lib/components/form/form_control_layout/form_control_layout_icons.js +2 -2
  123. package/lib/components/header/header_links/header_link.js +1 -1
  124. package/lib/components/header/header_links/header_links.js +1 -1
  125. package/lib/components/header/header_logo.js +1 -1
  126. package/lib/components/icon/assets/{keyboard_shortcut.js → keyboard.js} +5 -5
  127. package/lib/components/icon/icon.js +1 -1
  128. package/lib/components/icon/icon_map.js +1 -1
  129. package/lib/components/icon/svgs/keyboard.svg +3 -0
  130. package/lib/components/key_pad_menu/key_pad_menu_item.js +1 -1
  131. package/lib/components/list_group/list_group.js +2 -2
  132. package/lib/components/list_group/list_group_item.js +2 -2
  133. package/lib/components/list_group/pinnable_list_group/pinnable_list_group.js +4 -4
  134. package/lib/components/loading/loading_logo.js +1 -1
  135. package/lib/components/markdown_editor/markdown_editor.js +1 -1
  136. package/lib/components/markdown_editor/markdown_editor_drop_zone.js +1 -1
  137. package/lib/components/markdown_editor/markdown_editor_footer.js +1 -1
  138. package/lib/components/markdown_editor/markdown_editor_toolbar.js +1 -1
  139. package/lib/components/notification/notification_event.js +2 -2
  140. package/lib/components/notification/notification_event_meta.js +1 -1
  141. package/lib/components/page/page_header/page_header.js +1 -1
  142. package/lib/components/page/page_header/page_header_content.js +1 -1
  143. package/lib/components/page/page_template.js +1 -1
  144. package/lib/components/selectable/selectable_list/selectable_list.js +1 -1
  145. package/lib/components/selectable/selectable_list/selectable_list_item.js +1 -1
  146. package/lib/components/selectable/selectable_templates/selectable_template_sitewide.js +1 -1
  147. package/lib/components/suggest/suggest.js +1 -1
  148. package/lib/components/suggest/suggest_item.js +1 -1
  149. package/lib/components/table/table_header_button.js +1 -1
  150. package/lib/components/text/text.styles.js +4 -3
  151. package/lib/components/timeline/timeline_item.js +1 -2
  152. package/lib/components/timeline/timeline_item_icon.js +1 -1
  153. package/lib/components/toast/global_toast_list.js +1 -1
  154. package/lib/components/toast/toast.js +1 -1
  155. package/lib/components/token/token.js +1 -1
  156. package/lib/components/tool_tip/icon_tip.js +1 -1
  157. package/lib/services/hooks/index.js +13 -0
  158. package/lib/services/hooks/useLatest.js +26 -0
  159. package/lib/test/emotion-prefix.js +1 -1
  160. package/optimize/es/components/comment_list/comment.js +22 -17
  161. package/optimize/es/components/comment_list/comment_event.js +83 -28
  162. package/optimize/es/components/comment_list/comment_event.styles.js +78 -0
  163. package/optimize/es/components/comment_list/comment_list.js +7 -3
  164. package/optimize/es/components/comment_list/comment_timeline.js +19 -31
  165. package/optimize/es/components/datagrid/body/data_grid_body.js +1 -1
  166. package/optimize/es/components/datagrid/utils/row_heights.js +27 -33
  167. package/optimize/es/components/icon/assets/{keyboard_shortcut.js → keyboard.js} +5 -5
  168. package/optimize/es/components/icon/icon_map.js +1 -1
  169. package/optimize/es/components/text/text.styles.js +5 -4
  170. package/optimize/es/components/timeline/timeline_item.js +1 -2
  171. package/optimize/es/services/hooks/index.js +1 -0
  172. package/optimize/es/services/hooks/useLatest.js +18 -0
  173. package/optimize/es/test/emotion-prefix.js +1 -1
  174. package/optimize/lib/components/comment_list/comment.js +21 -17
  175. package/optimize/lib/components/comment_list/comment_event.js +85 -31
  176. package/optimize/lib/components/comment_list/comment_event.styles.js +86 -0
  177. package/optimize/lib/components/comment_list/comment_list.js +8 -3
  178. package/optimize/lib/components/comment_list/comment_timeline.js +21 -37
  179. package/optimize/lib/components/datagrid/body/data_grid_body.js +1 -1
  180. package/optimize/lib/components/datagrid/utils/row_heights.js +25 -30
  181. package/optimize/lib/components/icon/assets/{keyboard_shortcut.js → keyboard.js} +5 -5
  182. package/optimize/lib/components/icon/icon_map.js +1 -1
  183. package/optimize/lib/components/icon/svgs/keyboard.svg +3 -0
  184. package/optimize/lib/components/text/text.styles.js +4 -3
  185. package/optimize/lib/components/timeline/timeline_item.js +1 -2
  186. package/optimize/lib/services/hooks/index.js +13 -0
  187. package/optimize/lib/services/hooks/useLatest.js +26 -0
  188. package/optimize/lib/test/emotion-prefix.js +1 -1
  189. package/package.json +2 -2
  190. package/src/components/index.scss +0 -1
  191. package/src/components/markdown_editor/_markdown_editor.scss +3 -2
  192. package/src/themes/amsterdam/overrides/_index.scss +0 -1
  193. package/test-env/components/accessibility/skip_link/skip_link.js +1 -1
  194. package/test-env/components/avatar/avatar.js +1 -1
  195. package/test-env/components/badge/badge.js +1 -1
  196. package/test-env/components/badge/beta_badge/beta_badge.js +1 -1
  197. package/test-env/components/basic_table/basic_table.js +1 -1
  198. package/test-env/components/basic_table/collapsed_item_actions.js +1 -1
  199. package/test-env/components/basic_table/in_memory_table.js +1 -1
  200. package/test-env/components/button/_button_content_deprecated.js +1 -1
  201. package/test-env/components/button/button.js +2 -2
  202. package/test-env/components/button/button_display/_button_display.js +1 -1
  203. package/test-env/components/button/button_display/_button_display_content.js +1 -1
  204. package/test-env/components/button/button_empty/button_empty.js +1 -1
  205. package/test-env/components/button/button_group/button_group.js +1 -1
  206. package/test-env/components/button/button_group/button_group_button.js +1 -1
  207. package/test-env/components/button/button_icon/button_icon.js +1 -1
  208. package/test-env/components/call_out/call_out.js +1 -1
  209. package/test-env/components/card/card.js +1 -1
  210. package/test-env/components/card/card_select.js +1 -1
  211. package/test-env/components/collapsible_nav/collapsible_nav_group/collapsible_nav_group.js +1 -1
  212. package/test-env/components/comment_list/comment.js +44 -24
  213. package/test-env/components/comment_list/comment_event.js +106 -36
  214. package/test-env/components/comment_list/comment_event.styles.js +86 -0
  215. package/test-env/components/comment_list/comment_list.js +39 -13
  216. package/test-env/components/comment_list/comment_timeline.js +23 -39
  217. package/test-env/components/datagrid/body/data_grid_body.js +14 -14
  218. package/test-env/components/datagrid/body/data_grid_cell.js +24 -24
  219. package/test-env/components/datagrid/body/header/data_grid_header_cell.js +12 -12
  220. package/test-env/components/datagrid/body/header/data_grid_header_row.js +13 -13
  221. package/test-env/components/datagrid/controls/column_sorting_draggable.js +1 -1
  222. package/test-env/components/datagrid/data_grid.js +13 -13
  223. package/test-env/components/datagrid/utils/in_memory.js +12 -12
  224. package/test-env/components/datagrid/utils/row_heights.js +25 -30
  225. package/test-env/components/date_picker/date_picker.js +2 -2
  226. package/test-env/components/date_picker/date_picker_range.js +1 -1
  227. package/test-env/components/empty_prompt/empty_prompt.js +1 -1
  228. package/test-env/components/form/field_number/field_number.js +1 -1
  229. package/test-env/components/form/field_text/field_text.js +2 -2
  230. package/test-env/components/form/form_control_layout/form_control_layout.js +2 -2
  231. package/test-env/components/form/form_control_layout/form_control_layout_custom_icon.js +1 -1
  232. package/test-env/components/form/form_control_layout/form_control_layout_icons.js +2 -2
  233. package/test-env/components/header/header_links/header_link.js +1 -1
  234. package/test-env/components/header/header_links/header_links.js +1 -1
  235. package/test-env/components/header/header_logo.js +1 -1
  236. package/test-env/components/icon/assets/{keyboard_shortcut.js → keyboard.js} +5 -5
  237. package/test-env/components/icon/icon_map.js +1 -1
  238. package/test-env/components/key_pad_menu/key_pad_menu_item.js +1 -1
  239. package/test-env/components/list_group/list_group.js +2 -2
  240. package/test-env/components/list_group/list_group_item.js +2 -2
  241. package/test-env/components/list_group/pinnable_list_group/pinnable_list_group.js +4 -4
  242. package/test-env/components/loading/loading_logo.js +1 -1
  243. package/test-env/components/markdown_editor/markdown_editor.js +1 -1
  244. package/test-env/components/markdown_editor/markdown_editor_drop_zone.js +1 -1
  245. package/test-env/components/markdown_editor/markdown_editor_footer.js +1 -1
  246. package/test-env/components/markdown_editor/markdown_editor_toolbar.js +1 -1
  247. package/test-env/components/notification/notification_event.js +2 -2
  248. package/test-env/components/notification/notification_event_meta.js +1 -1
  249. package/test-env/components/page/page_header/page_header.js +1 -1
  250. package/test-env/components/page/page_header/page_header_content.js +1 -1
  251. package/test-env/components/page/page_template.js +1 -1
  252. package/test-env/components/selectable/selectable_list/selectable_list.js +1 -1
  253. package/test-env/components/selectable/selectable_list/selectable_list_item.js +1 -1
  254. package/test-env/components/selectable/selectable_templates/selectable_template_sitewide.js +1 -1
  255. package/test-env/components/suggest/suggest.js +1 -1
  256. package/test-env/components/suggest/suggest_item.js +1 -1
  257. package/test-env/components/table/table_header_button.js +1 -1
  258. package/test-env/components/text/text.styles.js +4 -3
  259. package/test-env/components/timeline/timeline_item.js +1 -2
  260. package/test-env/components/timeline/timeline_item_icon.js +1 -1
  261. package/test-env/components/toast/global_toast_list.js +1 -1
  262. package/test-env/components/toast/toast.js +1 -1
  263. package/test-env/components/token/token.js +1 -1
  264. package/test-env/components/tool_tip/icon_tip.js +1 -1
  265. package/test-env/services/hooks/index.js +13 -0
  266. package/test-env/services/hooks/useLatest.js +26 -0
  267. package/test-env/test/emotion-prefix.js +1 -1
  268. package/lib/components/icon/svgs/keyboard_shortcut.svg +0 -3
  269. package/optimize/lib/components/icon/svgs/keyboard_shortcut.svg +0 -3
  270. package/src/components/comment_list/_comment.scss +0 -38
  271. package/src/components/comment_list/_comment_event.scss +0 -77
  272. package/src/components/comment_list/_comment_timeline.scss +0 -27
  273. package/src/components/comment_list/_index.scss +0 -3
  274. package/src/themes/amsterdam/overrides/_comment.scss +0 -3
@@ -17,14 +17,18 @@ var _classnames = _interopRequireDefault(require("classnames"));
17
17
 
18
18
  var _comment = require("./comment");
19
19
 
20
+ var _timeline = require("../timeline");
21
+
20
22
  var _react2 = require("@emotion/react");
21
23
 
22
- var _excluded = ["children", "className", "comments"];
24
+ var _excluded = ["children", "className", "comments", "gutterSize"];
23
25
 
24
26
  var EuiCommentList = function EuiCommentList(_ref) {
25
27
  var children = _ref.children,
26
28
  className = _ref.className,
27
29
  comments = _ref.comments,
30
+ _ref$gutterSize = _ref.gutterSize,
31
+ gutterSize = _ref$gutterSize === void 0 ? 'l' : _ref$gutterSize,
28
32
  rest = (0, _objectWithoutProperties2.default)(_ref, _excluded);
29
33
  var classes = (0, _classnames.default)('euiCommentList', className);
30
34
  var commentElements = null;
@@ -37,8 +41,9 @@ var EuiCommentList = function EuiCommentList(_ref) {
37
41
  });
38
42
  }
39
43
 
40
- return (0, _react2.jsx)("div", (0, _extends2.default)({
41
- className: classes
44
+ return (0, _react2.jsx)(_timeline.EuiTimeline, (0, _extends2.default)({
45
+ className: classes,
46
+ gutterSize: gutterSize
42
47
  }, rest), commentElements, children);
43
48
  };
44
49
 
@@ -5,15 +5,13 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
5
5
  Object.defineProperty(exports, "__esModule", {
6
6
  value: true
7
7
  });
8
- exports.TYPES = exports.EuiCommentTimeline = void 0;
8
+ exports.EuiCommentTimeline = void 0;
9
9
 
10
- var _react = _interopRequireDefault(require("react"));
11
-
12
- var _common = require("../common");
10
+ var _typeof2 = _interopRequireDefault(require("@babel/runtime/helpers/typeof"));
13
11
 
14
- var _classnames = _interopRequireDefault(require("classnames"));
12
+ var _react = _interopRequireDefault(require("react"));
15
13
 
16
- var _icon = require("../icon");
14
+ var _avatar = require("../avatar");
17
15
 
18
16
  var _react2 = require("@emotion/react");
19
17
 
@@ -24,45 +22,31 @@ var _react2 = require("@emotion/react");
24
22
  * in compliance with, at your election, the Elastic License 2.0 or the Server
25
23
  * Side Public License, v 1.
26
24
  */
27
- var typeToClassNameMap = {
28
- regular: 'euiCommentTimeline__icon--regular',
29
- update: 'euiCommentTimeline__icon--update'
30
- };
31
- var TYPES = (0, _common.keysOf)(typeToClassNameMap);
32
- exports.TYPES = TYPES;
33
-
34
25
  var EuiCommentTimeline = function EuiCommentTimeline(_ref) {
35
- var className = _ref.className,
36
- timelineIcon = _ref.timelineIcon,
37
- _ref$type = _ref.type,
38
- type = _ref$type === void 0 ? 'regular' : _ref$type;
39
- var classes = (0, _classnames.default)('euiCommentTimeline', className);
40
- var iconClasses = (0, _classnames.default)({
41
- 'euiCommentTimeline__icon--default': !timelineIcon || typeof timelineIcon === 'string'
42
- }, typeToClassNameMap[type]);
26
+ var timelineIcon = _ref.timelineIcon,
27
+ username = _ref.username;
43
28
  var iconRender;
44
-
45
- if (typeof timelineIcon === 'string') {
46
- iconRender = (0, _react2.jsx)(_icon.EuiIcon, {
47
- size: type === 'update' ? 'm' : 'l',
48
- type: timelineIcon
29
+ var avatarClassName = 'euiCommentAvatar';
30
+ var iconIsString = typeof timelineIcon === 'string';
31
+ var iconIsNode = (0, _typeof2.default)(timelineIcon) === 'object';
32
+
33
+ if (iconIsString) {
34
+ iconRender = (0, _react2.jsx)(_avatar.EuiAvatar, {
35
+ className: avatarClassName,
36
+ name: username,
37
+ iconType: timelineIcon,
38
+ color: "subdued"
49
39
  });
50
- } else if (timelineIcon) {
40
+ } else if (iconIsNode) {
51
41
  iconRender = timelineIcon;
52
42
  } else {
53
- iconRender = (0, _react2.jsx)(_icon.EuiIcon, {
54
- type: type === 'update' ? 'dot' : 'user',
55
- size: type === 'update' ? 's' : 'l'
43
+ iconRender = (0, _react2.jsx)(_avatar.EuiAvatar, {
44
+ className: avatarClassName,
45
+ name: username
56
46
  });
57
47
  }
58
48
 
59
- return (0, _react2.jsx)("div", {
60
- className: classes
61
- }, (0, _react2.jsx)("div", {
62
- className: "euiCommentTimeline__content"
63
- }, (0, _react2.jsx)("div", {
64
- className: iconClasses
65
- }, iconRender)));
49
+ return (0, _react2.jsx)(_react.default.Fragment, null, iconRender);
66
50
  };
67
51
 
68
52
  exports.EuiCommentTimeline = EuiCommentTimeline;
@@ -353,7 +353,7 @@ var EuiDataGridBody = function EuiDataGridBody(props) {
353
353
  */
354
354
 
355
355
  var rowHeightUtils = (0, _row_heights.useRowHeightUtils)({
356
- gridRef: gridRef.current,
356
+ gridRef: gridRef,
357
357
  gridStyles: gridStyles,
358
358
  columns: columns,
359
359
  rowHeightsOptions: rowHeightsOptions
@@ -45,10 +45,12 @@ var DEFAULT_ROW_HEIGHT = 34;
45
45
  exports.DEFAULT_ROW_HEIGHT = DEFAULT_ROW_HEIGHT;
46
46
 
47
47
  var RowHeightUtils = /*#__PURE__*/function () {
48
- function RowHeightUtils() {
48
+ function RowHeightUtils(gridRef, rerenderGridBodyRef) {
49
49
  var _this = this;
50
50
 
51
51
  (0, _classCallCheck2.default)(this, RowHeightUtils);
52
+ this.gridRef = gridRef;
53
+ this.rerenderGridBodyRef = rerenderGridBodyRef;
52
54
  (0, _defineProperty2.default)(this, "styles", {
53
55
  paddingTop: 0,
54
56
  paddingBottom: 0
@@ -79,9 +81,7 @@ var RowHeightUtils = /*#__PURE__*/function () {
79
81
  });
80
82
  (0, _defineProperty2.default)(this, "heightsCache", new Map());
81
83
  (0, _defineProperty2.default)(this, "timerId", void 0);
82
- (0, _defineProperty2.default)(this, "grid", void 0);
83
84
  (0, _defineProperty2.default)(this, "lastUpdatedRow", Infinity);
84
- (0, _defineProperty2.default)(this, "rerenderGridBody", function () {});
85
85
  }
86
86
 
87
87
  (0, _createClass2.default)(RowHeightUtils, [{
@@ -179,6 +179,8 @@ var RowHeightUtils = /*#__PURE__*/function () {
179
179
  }, {
180
180
  key: "setRowHeight",
181
181
  value: function setRowHeight(rowIndex, colId) {
182
+ var _this$rerenderGridBod, _this$rerenderGridBod2;
183
+
182
184
  var height = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : DEFAULT_ROW_HEIGHT;
183
185
  var visibleRowIndex = arguments.length > 3 ? arguments[3] : undefined;
184
186
  var rowHeights = this.heightsCache.get(rowIndex) || new Map();
@@ -193,7 +195,7 @@ var RowHeightUtils = /*#__PURE__*/function () {
193
195
  this.resetRow(visibleRowIndex); // When an auto row height is updated, force a re-render
194
196
  // of the grid body to update the unconstrained height
195
197
 
196
- this.rerenderGridBody();
198
+ (_this$rerenderGridBod = (_this$rerenderGridBod2 = this.rerenderGridBodyRef).current) === null || _this$rerenderGridBod === void 0 ? void 0 : _this$rerenderGridBod.call(_this$rerenderGridBod2);
197
199
  }
198
200
  }, {
199
201
  key: "pruneHiddenColumnHeights",
@@ -233,21 +235,11 @@ var RowHeightUtils = /*#__PURE__*/function () {
233
235
  }, {
234
236
  key: "resetGrid",
235
237
  value: function resetGrid() {
236
- var _this$grid;
238
+ var _this$gridRef$current;
237
239
 
238
- (_this$grid = this.grid) === null || _this$grid === void 0 ? void 0 : _this$grid.resetAfterRowIndex(this.lastUpdatedRow);
240
+ (_this$gridRef$current = this.gridRef.current) === null || _this$gridRef$current === void 0 ? void 0 : _this$gridRef$current.resetAfterRowIndex(this.lastUpdatedRow);
239
241
  this.lastUpdatedRow = Infinity;
240
242
  }
241
- }, {
242
- key: "setGrid",
243
- value: function setGrid(grid) {
244
- this.grid = grid;
245
- }
246
- }, {
247
- key: "setRerenderGridBody",
248
- value: function setRerenderGridBody(rerenderGridBody) {
249
- this.rerenderGridBody = rerenderGridBody;
250
- }
251
243
  }]);
252
244
  return RowHeightUtils;
253
245
  }();
@@ -264,22 +256,25 @@ var useRowHeightUtils = function useRowHeightUtils(_ref2) {
264
256
  gridStyles = _ref2.gridStyles,
265
257
  columns = _ref2.columns,
266
258
  rowHeightsOptions = _ref2.rowHeightsOptions;
267
- var rowHeightUtils = (0, _react.useMemo)(function () {
268
- return new RowHeightUtils();
269
- }, []); // Update rowHeightUtils with internal vars from outside dependencies
259
+ var forceRenderRef = (0, _services.useLatest)((0, _services.useForceRender)());
270
260
 
271
- var forceRender = (0, _services.useForceRender)();
272
- (0, _react.useEffect)(function () {
273
- if (gridRef) rowHeightUtils.setGrid(gridRef);
274
- rowHeightUtils.setRerenderGridBody(forceRender);
275
- }, [gridRef, forceRender, rowHeightUtils]); // Forces a rerender whenever the row heights change, as this can cause the
261
+ var _useState = (0, _react.useState)(function () {
262
+ return new RowHeightUtils(gridRef, forceRenderRef);
263
+ }),
264
+ _useState2 = (0, _slicedToArray2.default)(_useState, 1),
265
+ rowHeightUtils = _useState2[0]; // Forces a rerender whenever the row heights change, as this can cause the
276
266
  // grid to change height/have scrollbars. Without this, grid rerendering is stale
277
267
 
268
+
278
269
  (0, _react.useEffect)(function () {
279
- requestAnimationFrame(forceRender);
270
+ if (forceRenderRef.current == null) {
271
+ return;
272
+ }
273
+
274
+ requestAnimationFrame(forceRenderRef.current);
280
275
  }, [// Effects that should cause rerendering
281
276
  rowHeightsOptions === null || rowHeightsOptions === void 0 ? void 0 : rowHeightsOptions.defaultHeight, rowHeightsOptions === null || rowHeightsOptions === void 0 ? void 0 : rowHeightsOptions.rowHeights, // Dependencies
282
- rowHeightUtils, forceRender]); // Re-cache styles whenever grid density changes
277
+ rowHeightUtils, forceRenderRef]); // Re-cache styles whenever grid density changes
283
278
 
284
279
  (0, _react.useEffect)(function () {
285
280
  rowHeightUtils.cacheStyles({
@@ -304,10 +299,10 @@ var useDefaultRowHeight = function useDefaultRowHeight(_ref3) {
304
299
  // and ignored by auto & static heights (unless the static height is < the min)
305
300
 
306
301
 
307
- var _useState = (0, _react.useState)(DEFAULT_ROW_HEIGHT),
308
- _useState2 = (0, _slicedToArray2.default)(_useState, 2),
309
- minRowHeight = _useState2[0],
310
- setRowHeight = _useState2[1]; // Default/fallback height for all rows
302
+ var _useState3 = (0, _react.useState)(DEFAULT_ROW_HEIGHT),
303
+ _useState4 = (0, _slicedToArray2.default)(_useState3, 2),
304
+ minRowHeight = _useState4[0],
305
+ setRowHeight = _useState4[1]; // Default/fallback height for all rows
311
306
 
312
307
 
313
308
  var defaultRowHeight = (0, _react.useMemo)(function () {
@@ -23,22 +23,22 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
23
23
 
24
24
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
25
25
 
26
- var EuiIconKeyboardShortcut = function EuiIconKeyboardShortcut(_ref) {
26
+ var EuiIconKeyboard = function EuiIconKeyboard(_ref) {
27
27
  var title = _ref.title,
28
28
  titleId = _ref.titleId,
29
29
  props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
30
30
  return (0, _react2.jsx)("svg", (0, _extends2.default)({
31
31
  xmlns: "http://www.w3.org/2000/svg",
32
- width: 16,
33
- height: 16,
34
32
  viewBox: "0 0 16 16",
35
33
  "aria-labelledby": titleId
36
34
  }, props), title ? (0, _react2.jsx)("title", {
37
35
  id: titleId
38
36
  }, title) : null, (0, _react2.jsx)("path", {
39
- d: "M15 9a1 1 0 01.993.883L16 10v5a1 1 0 01-.883.993L15 16H7a1 1 0 01-.993-.883L6 15v-5a1 1 0 01.883-.993L7 9h8zM2.5 10a.5.5 0 01.492.41L3 10.5V12h1.5a.5.5 0 01.09.992L4.5 13H3v1.5a.5.5 0 01-.992.09L2 14.5V13H.5a.5.5 0 01-.09-.992L.5 12H2v-1.5a.5.5 0 01.5-.5zM15 10H7v5h8v-5zm-1 3v1H8v-1h6zm1-13a1 1 0 011 1v5a1 1 0 01-1 1H1a1 1 0 01-1-1V1a1 1 0 011-1h14zm0 1H1v5h14V1zM8 4v1H2V4h6z"
37
+ fillRule: "evenodd",
38
+ clipRule: "evenodd",
39
+ d: "M0 3h16v11H0V3zm15 10V4H1v9h14zM2 5h2v1H2V5zm2 7v-1H2v1h2zm10-1v1h-2v-1h2zm-3 1v-1H5v1h6zM5 5h1v1H5V5zM3 7H2v1h1V7zm3 0h1v1H6V7zM3 9H2v1h1V9zm3 0h1v1H6V9zm2-4H7v1h1V5zM4 7h1v1H4V7zm5 0H8v1h1V7zm1 0h1v1h-1V7zM5 9H4v1h1V9zm3 0h1v1H8V9zm3 0h-1v1h1V9zM9 5h1v1H9V5zm3 0h-1v1h1V5zm1 0h1v1h-1V5zm1 2h-2v3h2V7z"
40
40
  }));
41
41
  };
42
42
 
43
- var icon = EuiIconKeyboardShortcut;
43
+ var icon = EuiIconKeyboard;
44
44
  exports.icon = icon;
@@ -183,7 +183,7 @@ var typeToPathMap = {
183
183
  inspect: 'inspect',
184
184
  invert: 'invert',
185
185
  ip: 'ip',
186
- keyboardShortcut: 'keyboard_shortcut',
186
+ keyboard: 'keyboard',
187
187
  kqlField: 'kql_field',
188
188
  kqlFunction: 'kql_function',
189
189
  kqlOperand: 'kql_operand',
@@ -0,0 +1,3 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16">
2
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M0 3h16v11H0V3Zm15 10V4H1v9h14ZM2 5h2v1H2V5Zm2 7v-1H2v1h2Zm10-1v1h-2v-1h2Zm-3 1v-1H5v1h6ZM5 5h1v1H5V5ZM3 7H2v1h1V7Zm3 0h1v1H6V7ZM3 9H2v1h1V9Zm3 0h1v1H6V9Zm2-4H7v1h1V5ZM4 7h1v1H4V7Zm5 0H8v1h1V7Zm1 0h1v1h-1V7ZM5 9H4v1h1V9Zm3 0h1v1H8V9Zm3 0h-1v1h1V9ZM9 5h1v1H9V5Zm3 0h-1v1h1V5Zm1 0h1v1h-1V5Zm1 2h-2v3h2V7Z" />
3
+ </svg>
@@ -63,7 +63,8 @@ var euiScaleText = function euiScaleText(euiThemeContext, options) {
63
63
  var customScale = _customScale === 'xxxs' ? 'xxs' : _customScale || 'm';
64
64
  var headingMarginTop = "".concat(parseFloat(euiTheme.size[customScale]) * 2, "px");
65
65
  var headingMarginBottom = euiTheme.size[customScale];
66
- return "\n font-size: ".concat(fontSize, ";\n line-height: ").concat(lineHeight, ";\n\n h1 {\n font-size: ").concat(headings.h1.fontSize, ";\n line-height: ").concat(headings.h1.lineHeight, ";\n }\n h1:not(:last-child) {\n ").concat((0, _global_styling.logicalCSS)('margin-bottom', headingMarginBottom), "\n }\n\n h2 {\n font-size: ").concat(headings.h2.fontSize, ";\n line-height: ").concat(headings.h2.lineHeight, ";\n\n &:not(:first-child) {\n ").concat((0, _global_styling.logicalCSS)('margin-top', headingMarginTop), "\n }\n\n &:not(:last-child) {\n ").concat((0, _global_styling.logicalCSS)('margin-bottom', headingMarginBottom), "\n }\n }\n\n h3 {\n font-size: ").concat(headings.h3.fontSize, ";\n line-height: ").concat(headings.h3.lineHeight, ";\n\n &:not(:first-child) {\n ").concat((0, _global_styling.logicalCSS)('margin-top', headingMarginTop), "\n }\n\n &:not(:last-child) {\n ").concat((0, _global_styling.logicalCSS)('margin-bottom', headingMarginBottom), "\n }\n }\n\n h4 {\n font-size: ").concat(headings.h4.fontSize, ";\n line-height: ").concat(headings.h4.lineHeight, ";\n\n &:not(:first-child) {\n ").concat((0, _global_styling.logicalCSS)('margin-top', headingMarginTop), "\n }\n\n &:not(:last-child) {\n ").concat((0, _global_styling.logicalCSS)('margin-bottom', headingMarginBottom), "\n }\n }\n\n h5 {\n font-size: ").concat(headings.h5.fontSize, ";\n line-height: ").concat(headings.h5.lineHeight, ";\n\n &:not(:first-child) {\n ").concat((0, _global_styling.logicalCSS)('margin-top', headingMarginTop), "\n }\n\n &:not(:last-child) {\n ").concat((0, _global_styling.logicalCSS)('margin-bottom', headingMarginBottom), "\n }\n }\n\n h6 {\n font-size: ").concat(headings.h6.fontSize, ";\n line-height: ").concat(headings.h6.lineHeight, ";\n\n &:not(:first-child) {\n ").concat((0, _global_styling.logicalCSS)('margin-top', headingMarginTop), "\n }\n\n &:not(:last-child) {\n ").concat((0, _global_styling.logicalCSS)('margin-bottom', headingMarginBottom), "\n }\n }\n\n p,\n ul,\n ol,\n dl,\n blockquote,\n img,\n pre {\n ").concat((0, _global_styling.logicalCSS)('margin-bottom', lineHeightSize), "\n }\n\n ul,\n ol {\n ").concat((0, _global_styling.logicalCSS)('margin-left', lineHeightSize), "\n }\n \n blockquote {\n font-size: ").concat(fontSize, ";\n padding: ").concat(lineHeightSize, ";\n }\n\n dd + dt {\n ").concat((0, _global_styling.logicalCSS)('margin-top', fontSize), "\n }\n\n dt,\n .eui-definitionListReverse dd {\n font-size: ").concat(fontSize, ";\n line-height: ").concat(lineHeight, ";\n }\n\n .eui-definitionListReverse dt {\n font-size: ").concat((0, _global_styling.euiFontSize)(euiThemeContext, 'xs', options).fontSize, ";\n color: ").concat(euiTheme.colors.text, ";\n }\n\n small {\n font-size: ").concat((0, _global_styling.euiFontSize)(euiThemeContext, 's', options).fontSize, ";\n }\n\n pre:not(.euiCodeBlock__pre) {\n padding: ").concat(lineHeightSize, ";\n }\n\n code:not(.euiCode):not(.euiCodeBlock__code) {\n font-size: .9em; // 90% of parent font size\n }\n ");
66
+ return "\n font-size: ".concat(fontSize, ";\n line-height: ").concat(lineHeight, ";\n\n h1 {\n font-size: ").concat(headings.h1.fontSize, ";\n line-height: ").concat(headings.h1.lineHeight, ";\n }\n h1:not(:last-child) {\n ").concat((0, _global_styling.logicalCSS)('margin-bottom', headingMarginBottom), "\n }\n\n h2 {\n font-size: ").concat(headings.h2.fontSize, ";\n line-height: ").concat(headings.h2.lineHeight, ";\n\n &:not(:first-child) {\n ").concat((0, _global_styling.logicalCSS)('margin-top', headingMarginTop), "\n }\n\n &:not(:last-child) {\n ").concat((0, _global_styling.logicalCSS)('margin-bottom', headingMarginBottom), "\n }\n }\n\n h3 {\n font-size: ").concat(headings.h3.fontSize, ";\n line-height: ").concat(headings.h3.lineHeight, ";\n\n &:not(:first-child) {\n ").concat((0, _global_styling.logicalCSS)('margin-top', headingMarginTop), "\n }\n\n &:not(:last-child) {\n ").concat((0, _global_styling.logicalCSS)('margin-bottom', headingMarginBottom), "\n }\n }\n\n h4 {\n font-size: ").concat(headings.h4.fontSize, ";\n line-height: ").concat(headings.h4.lineHeight, ";\n\n &:not(:first-child) {\n ").concat((0, _global_styling.logicalCSS)('margin-top', headingMarginTop), "\n }\n\n &:not(:last-child) {\n ").concat((0, _global_styling.logicalCSS)('margin-bottom', headingMarginBottom), "\n }\n }\n\n h5 {\n font-size: ").concat(headings.h5.fontSize, ";\n line-height: ").concat(headings.h5.lineHeight, ";\n\n &:not(:first-child) {\n ").concat((0, _global_styling.logicalCSS)('margin-top', headingMarginTop), "\n }\n\n &:not(:last-child) {\n ").concat((0, _global_styling.logicalCSS)('margin-bottom', headingMarginBottom), "\n }\n }\n\n h6 {\n font-size: ").concat(headings.h6.fontSize, ";\n line-height: ").concat(headings.h6.lineHeight, ";\n\n &:not(:first-child) {\n ").concat((0, _global_styling.logicalCSS)('margin-top', headingMarginTop), "\n }\n\n &:not(:last-child) {\n ").concat((0, _global_styling.logicalCSS)('margin-bottom', headingMarginBottom), "\n }\n }\n\n p,\n ul,\n ol,\n dl,\n blockquote,\n img,\n pre {\n ").concat((0, _global_styling.logicalCSS)('margin-bottom', lineHeightSize), "\n }\n\n ul,\n ol {\n ").concat((0, _global_styling.logicalCSS)('margin-left', lineHeightSize), "\n }\n \n blockquote {\n font-size: ").concat(fontSize, ";\n padding: ").concat(lineHeightSize, ";\n }\n\n dd + dt {\n ").concat((0, _global_styling.logicalCSS)('margin-top', fontSize), "\n }\n\n dt,\n .eui-definitionListReverse dd {\n font-size: ").concat(fontSize, ";\n line-height: ").concat(lineHeight, ";\n }\n\n .eui-definitionListReverse dt {\n font-size: ").concat((0, _global_styling.euiFontSize)(euiThemeContext, 'xs', options).fontSize, ";\n color: ").concat(euiTheme.colors.text, ";\n }\n\n small {\n font-size: ").concat((0, _global_styling.euiFontSize)(euiThemeContext, 's', options).fontSize, ";\n }\n\n pre:not(.euiCodeBlock__pre) {\n padding: ").concat(lineHeightSize, ";\n }\n\n code:not(.euiCode):not(.euiCodeBlock__code) {\n font-size: .9em; // 90% of parent font size\n }\n ").concat( // when textSize is 'm', the 'kbd' element gets a line between the text and the border-bottom
67
+ _customScale === 'm' ? "\n kbd {\n ".concat((0, _global_styling.logicalCSS)('padding-bottom', euiTheme.size.xs), "\n // ensures when only one character the shape looks like a square\n ").concat((0, _global_styling.logicalCSS)('min-width', euiTheme.size.l), "\n ").concat((0, _global_styling.logicalTextAlignCSS)('center'), "\n }\n \n kbd::after {\n content: '';\n ").concat((0, _global_styling.logicalCSS)('border-bottom', "".concat(euiTheme.border.width.thin, " solid ").concat(euiTheme.colors.text)), "\n position: absolute;\n ").concat((0, _global_styling.logicalCSS)('bottom', euiTheme.size.xxs), "\n ").concat((0, _global_styling.logicalCSS)('left', 0), "\n ").concat((0, _global_styling.logicalCSS)('width', '100%'), "\n }") : '', "\n ");
67
68
  };
68
69
  /**
69
70
  * Styles
@@ -73,8 +74,8 @@ var euiScaleText = function euiScaleText(euiThemeContext, options) {
73
74
  var euiTextStyles = function euiTextStyles(euiThemeContext) {
74
75
  var euiTheme = euiThemeContext.euiTheme;
75
76
  return {
76
- euiText: /*#__PURE__*/(0, _react.css)(euiText(euiTheme, true), ";clear:both;a:not([class]){", (0, _link.euiLinkCSS)(euiTheme), ";}img{display:block;width:100%;}ul{list-style:disc;}ol{list-style:decimal;}blockquote:not(.euiMarkdownFormat__blockquote){position:relative;text-align:center;", (0, _global_styling.logicalCSS)('margin-horizontal', 'auto'), " font-family:", euiTheme.font.familySerif, ";font-style:italic;letter-spacing:normal;p:last-child{margin-bottom:0;}&:before,&:after{position:absolute;content:'';height:", euiTheme.border.width.thick, ";width:50%;right:0;transform:translateX(-50%);background:", euiTheme.colors.darkShade, ";}&:before{top:0;}&:after{bottom:0;}}h1{", (0, _title.euiTitle)(euiThemeContext, 'l'), ";}h2{", (0, _title.euiTitle)(euiThemeContext, 'm'), ";}h3{", (0, _title.euiTitle)(euiThemeContext, 's'), ";}h4,dt{", (0, _title.euiTitle)(euiThemeContext, 'xs'), ";}h5{", (0, _title.euiTitle)(euiThemeContext, 'xxs'), ";}h6{", (0, _title.euiTitle)(euiThemeContext, 'xxxs'), " text-transform:uppercase;}h1,h2,h3,h4,h5,h6,dt{color:inherit;}pre:not(.euiCodeBlock__pre){white-space:pre-wrap;background:", (0, _global_styling.euiBackgroundColor)(euiThemeContext, 'subdued'), ";color:", euiTheme.colors.text, ";}pre:not(.euiCodeBlock__pre),pre:not(.euiCodeBlock__pre) code{display:block;}>:last-child{margin-bottom:0!important;};label:euiText;"),
77
- constrainedWidth: /*#__PURE__*/(0, _react.css)("max-width:", euiTextConstrainedMaxWidth, ";;label:constrainedWidth;"),
77
+ euiText: /*#__PURE__*/(0, _react.css)(euiText(euiTheme, true), ";clear:both;a:not([class]){", (0, _link.euiLinkCSS)(euiTheme), ";}img{display:block;width:100%;}ul{list-style:disc;}ol{list-style:decimal;}blockquote:not(.euiMarkdownFormat__blockquote){position:relative;", (0, _global_styling.logicalTextAlignCSS)('center'), " ", (0, _global_styling.logicalCSS)('margin-horizontal', 'auto'), " font-family:", euiTheme.font.familySerif, ";font-style:italic;letter-spacing:normal;p:last-child{", (0, _global_styling.logicalCSS)('margin-bottom', '0'), ";}&:before,&:after{position:absolute;content:'';", (0, _global_styling.logicalCSS)('height', euiTheme.border.width.thick), " ", (0, _global_styling.logicalCSS)('width', '50%'), " ", (0, _global_styling.logicalCSS)('left', '25%'), " ", (0, _global_styling.logicalCSS)('right', '25%'), " background:", euiTheme.colors.darkShade, ";}&:before{", (0, _global_styling.logicalCSS)('top', '0'), ";}&:after{", (0, _global_styling.logicalCSS)('bottom', '0'), ";}}h1{", (0, _title.euiTitle)(euiThemeContext, 'l'), ";}h2{", (0, _title.euiTitle)(euiThemeContext, 'm'), ";}h3{", (0, _title.euiTitle)(euiThemeContext, 's'), ";}h4,dt{", (0, _title.euiTitle)(euiThemeContext, 'xs'), ";}h5{", (0, _title.euiTitle)(euiThemeContext, 'xxs'), ";}h6{", (0, _title.euiTitle)(euiThemeContext, 'xxxs'), " text-transform:uppercase;}h1,h2,h3,h4,h5,h6,dt{color:inherit;}pre:not(.euiCodeBlock__pre){white-space:pre-wrap;background:", (0, _global_styling.euiBackgroundColor)(euiThemeContext, 'subdued'), ";color:", euiTheme.colors.text, ";}pre:not(.euiCodeBlock__pre),pre:not(.euiCodeBlock__pre) code{display:block;}>:last-child{", (0, _global_styling.logicalCSS)('margin-bottom', '0 !important'), ";}kbd{position:relative;display:inline-block;", (0, _global_styling.logicalCSS)('padding-vertical', euiTheme.size.xxs), " ", (0, _global_styling.logicalCSS)('padding-horizontal', euiTheme.size.xs), " line-height:1;border:", euiTheme.border.width.thin, " solid ", euiTheme.colors.text, ";border-radius:calc(", euiTheme.border.radius.small, " / 2);};label:euiText;"),
78
+ constrainedWidth: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('max-width', euiTextConstrainedMaxWidth), ";;label:constrainedWidth;"),
78
79
  // Sizes
79
80
  m: /*#__PURE__*/(0, _react.css)(euiScaleText(euiThemeContext, {
80
81
  measurement: 'rem',
@@ -21,7 +21,7 @@ var _timeline_item = require("./timeline_item.styles");
21
21
 
22
22
  var _react2 = require("@emotion/react");
23
23
 
24
- var _excluded = ["children", "verticalAlign", "icon", "iconAriaLabel", "className"];
24
+ var _excluded = ["children", "verticalAlign", "icon", "iconAriaLabel"];
25
25
  var VERTICAL_ALIGN = ['top', 'center'];
26
26
  exports.VERTICAL_ALIGN = VERTICAL_ALIGN;
27
27
 
@@ -31,7 +31,6 @@ var EuiTimelineItem = function EuiTimelineItem(_ref) {
31
31
  verticalAlign = _ref$verticalAlign === void 0 ? 'center' : _ref$verticalAlign,
32
32
  icon = _ref.icon,
33
33
  iconAriaLabel = _ref.iconAriaLabel,
34
- className = _ref.className,
35
34
  rest = (0, _objectWithoutProperties2.default)(_ref, _excluded);
36
35
  var styles = (0, _timeline_item.euiTimelineItemStyles)();
37
36
  var cssStyles = [styles.euiTimelineItem, styles[verticalAlign]];
@@ -56,6 +56,19 @@ Object.keys(_useIsWithinBreakpoints).forEach(function (key) {
56
56
  });
57
57
  });
58
58
 
59
+ var _useLatest = require("./useLatest");
60
+
61
+ Object.keys(_useLatest).forEach(function (key) {
62
+ if (key === "default" || key === "__esModule") return;
63
+ if (key in exports && exports[key] === _useLatest[key]) return;
64
+ Object.defineProperty(exports, key, {
65
+ enumerable: true,
66
+ get: function get() {
67
+ return _useLatest[key];
68
+ }
69
+ });
70
+ });
71
+
59
72
  var _useMouseMove = require("./useMouseMove");
60
73
 
61
74
  Object.keys(_useMouseMove).forEach(function (key) {
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.useLatest = useLatest;
7
+
8
+ var _react = require("react");
9
+
10
+ /*
11
+ * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
12
+ * or more contributor license agreements. Licensed under the Elastic License
13
+ * 2.0 and the Server Side Public License, v 1; you may not use this file except
14
+ * in compliance with, at your election, the Elastic License 2.0 or the Server
15
+ * Side Public License, v 1.
16
+ */
17
+
18
+ /**
19
+ * Wraps the given `value` into a `MutableRefObject` and keeps the `current`
20
+ * value up-to-date on every render cycle.
21
+ */
22
+ function useLatest(value) {
23
+ var latestValueRef = (0, _react.useRef)(value);
24
+ latestValueRef.current = value;
25
+ return latestValueRef;
26
+ }
@@ -29,7 +29,7 @@ var replaceEmotionPrefix = function replaceEmotionPrefix(selector) {
29
29
  // Starts with `css-[hash]-`.
30
30
  // Contains `eui[ComponentName] or `Eui[ComponentName]`.
31
31
  // Capture the component name (from above) and all variant additions until the end of the string.
32
- var euiMatch = selector.match( /*#__PURE__*/_wrapRegExp(/css\x2D[0-9A-Z_a-z]{6,}\x2D([Ee]ui[A-Z][\x2D0-9A-Z_a-z]*$)/, {
32
+ var euiMatch = selector.match( /*#__PURE__*/_wrapRegExp(/css\x2D[0-9A-Z_a-z]{5,}\x2D([Ee]ui[A-Z][\x2D0-9A-Z_a-z]*$)/, {
33
33
  euiComponent: 1
34
34
  })); // Use the captured group (`euiComponent`) if available and prepend with `emotion-`,
35
35
  // otherwise use the full selector.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@elastic/eui",
3
3
  "description": "Elastic UI Component Library",
4
- "version": "60.3.0",
4
+ "version": "61.0.0",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "main": "lib",
7
7
  "module": "es",
@@ -115,7 +115,7 @@
115
115
  "@cypress/code-coverage": "^3.9.12",
116
116
  "@cypress/react": "^5.10.3",
117
117
  "@cypress/webpack-dev-server": "^1.7.0",
118
- "@elastic/charts": "^46.12.1",
118
+ "@elastic/charts": "^46.13.0",
119
119
  "@elastic/datemath": "^5.0.3",
120
120
  "@elastic/eslint-config-kibana": "^0.15.0",
121
121
  "@emotion/babel-preset-css-prop": "^11.2.0",
@@ -11,7 +11,6 @@
11
11
  @import 'collapsible_nav/index';
12
12
  @import 'color_picker/index';
13
13
  @import 'combo_box/index';
14
- @import 'comment_list/index';
15
14
  @import 'context_menu/index';
16
15
  @import 'control_bar/index';
17
16
  @import 'date_picker/index';
@@ -1,4 +1,7 @@
1
1
  .euiMarkdownEditor {
2
+ display: flex;
3
+ flex-direction: column;
4
+
2
5
  &--isPreviewing {
3
6
  .euiMarkdownEditor__toggleContainer {
4
7
  display: none;
@@ -6,8 +9,6 @@
6
9
  }
7
10
 
8
11
  &--fullHeight {
9
- display: flex;
10
- flex-direction: column;
11
12
  height: 100%;
12
13
 
13
14
  .euiMarkdownEditorTextArea {
@@ -6,7 +6,6 @@
6
6
  @import 'code';
7
7
  @import 'color_stops';
8
8
  @import 'combo_box';
9
- @import 'comment';
10
9
  @import 'data_grid';
11
10
  @import 'date_picker';
12
11
  @import 'date_popover_button';
@@ -204,7 +204,7 @@ EuiSkipLink.propTypes = {
204
204
  /**
205
205
  * Any `type` accepted by EuiIcon
206
206
  */
207
- iconType: _propTypes.default.oneOfType([_propTypes.default.oneOf(["accessibility", "addDataApp", "advancedSettingsApp", "agentApp", "aggregate", "alert", "analyzeEvent", "annotation", "apmApp", "apmTrace", "appSearchApp", "apps", "arrowDown", "arrowLeft", "arrowRight", "arrowUp", "arrowStart", "arrowEnd", "asterisk", "auditbeatApp", "beaker", "bell", "bellSlash", "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", "crossInACircleFilled", "crosshairs", "currency", "cut", "dashboardApp", "dataVisualizer", "database", "desktop", "devToolsApp", "discoverApp", "document", "documentEdit", "documentation", "documents", "dot", "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", "exit", "expand", "expandMini", "exportAction", "eye", "eyeClosed", "faceHappy", "faceNeutral", "faceSad", "filebeatApp", "filter", "flag", "fleetApp", "fold", "folderCheck", "folderClosed", "folderExclamation", "folderOpen", "frameNext", "framePrevious", "fullScreen", "fullScreenExit", "function", "gear", "gisApp", "glasses", "globe", "grab", "grabHorizontal", "graphApp", "grid", "grokApp", "heart", "heartbeatApp", "heatmap", "help", "home", "iInCircle", "image", "importAction", "indexClose", "indexEdit", "indexFlush", "indexManagementApp", "indexMapping", "indexOpen", "indexPatternApp", "indexRollupApp", "indexRuntime", "indexSettings", "inputOutput", "inspect", "invert", "ip", "keyboardShortcut", "kqlField", "kqlFunction", "kqlOperand", "kqlSelector", "kqlValue", "kubernetesNode", "kubernetesPod", "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", "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", "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", "sortDown", "sortLeft", "sortRight", "sortUp", "sortable", "spacesApp", "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", "timelionApp", "timeRefresh", "timeslider", "training", "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", "watchesApp", "wordWrap", "wordWrapDisabled", "workplaceSearchApp", "wrench", "tokenClass", "tokenProperty", "tokenEnum", "tokenVariable", "tokenMethod", "tokenAnnotation", "tokenException", "tokenInterface", "tokenParameter", "tokenField", "tokenElement", "tokenFunction", "tokenBoolean", "tokenString", "tokenArray", "tokenNumber", "tokenConstant", "tokenObject", "tokenEvent", "tokenKey", "tokenNull", "tokenStruct", "tokenPackage", "tokenOperator", "tokenEnumMember", "tokenRepo", "tokenSymbol", "tokenFile", "tokenModule", "tokenNamespace", "tokenDate", "tokenIP", "tokenNested", "tokenAlias", "tokenShape", "tokenGeo", "tokenRange", "tokenBinary", "tokenJoin", "tokenPercolator", "tokenFlattened", "tokenRankFeature", "tokenRankFeatures", "tokenKeyword", "tokenTag", "tokenCompletionSuggester", "tokenDenseVector", "tokenText", "tokenTokenCount", "tokenSearchType", "tokenHistogram"]).isRequired, _propTypes.default.string.isRequired, _propTypes.default.elementType.isRequired]),
207
+ iconType: _propTypes.default.oneOfType([_propTypes.default.oneOf(["accessibility", "addDataApp", "advancedSettingsApp", "agentApp", "aggregate", "alert", "analyzeEvent", "annotation", "apmApp", "apmTrace", "appSearchApp", "apps", "arrowDown", "arrowLeft", "arrowRight", "arrowUp", "arrowStart", "arrowEnd", "asterisk", "auditbeatApp", "beaker", "bell", "bellSlash", "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", "crossInACircleFilled", "crosshairs", "currency", "cut", "dashboardApp", "dataVisualizer", "database", "desktop", "devToolsApp", "discoverApp", "document", "documentEdit", "documentation", "documents", "dot", "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", "exit", "expand", "expandMini", "exportAction", "eye", "eyeClosed", "faceHappy", "faceNeutral", "faceSad", "filebeatApp", "filter", "flag", "fleetApp", "fold", "folderCheck", "folderClosed", "folderExclamation", "folderOpen", "frameNext", "framePrevious", "fullScreen", "fullScreenExit", "function", "gear", "gisApp", "glasses", "globe", "grab", "grabHorizontal", "graphApp", "grid", "grokApp", "heart", "heartbeatApp", "heatmap", "help", "home", "iInCircle", "image", "importAction", "indexClose", "indexEdit", "indexFlush", "indexManagementApp", "indexMapping", "indexOpen", "indexPatternApp", "indexRollupApp", "indexRuntime", "indexSettings", "inputOutput", "inspect", "invert", "ip", "keyboard", "kqlField", "kqlFunction", "kqlOperand", "kqlSelector", "kqlValue", "kubernetesNode", "kubernetesPod", "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", "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", "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", "sortDown", "sortLeft", "sortRight", "sortUp", "sortable", "spacesApp", "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", "timelionApp", "timeRefresh", "timeslider", "training", "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", "watchesApp", "wordWrap", "wordWrapDisabled", "workplaceSearchApp", "wrench", "tokenClass", "tokenProperty", "tokenEnum", "tokenVariable", "tokenMethod", "tokenAnnotation", "tokenException", "tokenInterface", "tokenParameter", "tokenField", "tokenElement", "tokenFunction", "tokenBoolean", "tokenString", "tokenArray", "tokenNumber", "tokenConstant", "tokenObject", "tokenEvent", "tokenKey", "tokenNull", "tokenStruct", "tokenPackage", "tokenOperator", "tokenEnumMember", "tokenRepo", "tokenSymbol", "tokenFile", "tokenModule", "tokenNamespace", "tokenDate", "tokenIP", "tokenNested", "tokenAlias", "tokenShape", "tokenGeo", "tokenRange", "tokenBinary", "tokenJoin", "tokenPercolator", "tokenFlattened", "tokenRankFeature", "tokenRankFeatures", "tokenKeyword", "tokenTag", "tokenCompletionSuggester", "tokenDenseVector", "tokenText", "tokenTokenCount", "tokenSearchType", "tokenHistogram"]).isRequired, _propTypes.default.string.isRequired, _propTypes.default.elementType.isRequired]),
208
208
 
209
209
  /**
210
210
  * Can only be one side `left` or `right`
@@ -139,7 +139,7 @@ EuiAvatar.propTypes = {
139
139
  /**
140
140
  * Any EUI glyph, logo or custom icon to display instead of initials
141
141
  */
142
- iconType: _propTypes.default.oneOfType([_propTypes.default.oneOf(["accessibility", "addDataApp", "advancedSettingsApp", "agentApp", "aggregate", "alert", "analyzeEvent", "annotation", "apmApp", "apmTrace", "appSearchApp", "apps", "arrowDown", "arrowLeft", "arrowRight", "arrowUp", "arrowStart", "arrowEnd", "asterisk", "auditbeatApp", "beaker", "bell", "bellSlash", "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", "crossInACircleFilled", "crosshairs", "currency", "cut", "dashboardApp", "dataVisualizer", "database", "desktop", "devToolsApp", "discoverApp", "document", "documentEdit", "documentation", "documents", "dot", "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", "exit", "expand", "expandMini", "exportAction", "eye", "eyeClosed", "faceHappy", "faceNeutral", "faceSad", "filebeatApp", "filter", "flag", "fleetApp", "fold", "folderCheck", "folderClosed", "folderExclamation", "folderOpen", "frameNext", "framePrevious", "fullScreen", "fullScreenExit", "function", "gear", "gisApp", "glasses", "globe", "grab", "grabHorizontal", "graphApp", "grid", "grokApp", "heart", "heartbeatApp", "heatmap", "help", "home", "iInCircle", "image", "importAction", "indexClose", "indexEdit", "indexFlush", "indexManagementApp", "indexMapping", "indexOpen", "indexPatternApp", "indexRollupApp", "indexRuntime", "indexSettings", "inputOutput", "inspect", "invert", "ip", "keyboardShortcut", "kqlField", "kqlFunction", "kqlOperand", "kqlSelector", "kqlValue", "kubernetesNode", "kubernetesPod", "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", "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", "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", "sortDown", "sortLeft", "sortRight", "sortUp", "sortable", "spacesApp", "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", "timelionApp", "timeRefresh", "timeslider", "training", "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", "watchesApp", "wordWrap", "wordWrapDisabled", "workplaceSearchApp", "wrench", "tokenClass", "tokenProperty", "tokenEnum", "tokenVariable", "tokenMethod", "tokenAnnotation", "tokenException", "tokenInterface", "tokenParameter", "tokenField", "tokenElement", "tokenFunction", "tokenBoolean", "tokenString", "tokenArray", "tokenNumber", "tokenConstant", "tokenObject", "tokenEvent", "tokenKey", "tokenNull", "tokenStruct", "tokenPackage", "tokenOperator", "tokenEnumMember", "tokenRepo", "tokenSymbol", "tokenFile", "tokenModule", "tokenNamespace", "tokenDate", "tokenIP", "tokenNested", "tokenAlias", "tokenShape", "tokenGeo", "tokenRange", "tokenBinary", "tokenJoin", "tokenPercolator", "tokenFlattened", "tokenRankFeature", "tokenRankFeatures", "tokenKeyword", "tokenTag", "tokenCompletionSuggester", "tokenDenseVector", "tokenText", "tokenTokenCount", "tokenSearchType", "tokenHistogram"]).isRequired, _propTypes.default.string.isRequired, _propTypes.default.elementType.isRequired]),
142
+ iconType: _propTypes.default.oneOfType([_propTypes.default.oneOf(["accessibility", "addDataApp", "advancedSettingsApp", "agentApp", "aggregate", "alert", "analyzeEvent", "annotation", "apmApp", "apmTrace", "appSearchApp", "apps", "arrowDown", "arrowLeft", "arrowRight", "arrowUp", "arrowStart", "arrowEnd", "asterisk", "auditbeatApp", "beaker", "bell", "bellSlash", "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", "crossInACircleFilled", "crosshairs", "currency", "cut", "dashboardApp", "dataVisualizer", "database", "desktop", "devToolsApp", "discoverApp", "document", "documentEdit", "documentation", "documents", "dot", "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", "exit", "expand", "expandMini", "exportAction", "eye", "eyeClosed", "faceHappy", "faceNeutral", "faceSad", "filebeatApp", "filter", "flag", "fleetApp", "fold", "folderCheck", "folderClosed", "folderExclamation", "folderOpen", "frameNext", "framePrevious", "fullScreen", "fullScreenExit", "function", "gear", "gisApp", "glasses", "globe", "grab", "grabHorizontal", "graphApp", "grid", "grokApp", "heart", "heartbeatApp", "heatmap", "help", "home", "iInCircle", "image", "importAction", "indexClose", "indexEdit", "indexFlush", "indexManagementApp", "indexMapping", "indexOpen", "indexPatternApp", "indexRollupApp", "indexRuntime", "indexSettings", "inputOutput", "inspect", "invert", "ip", "keyboard", "kqlField", "kqlFunction", "kqlOperand", "kqlSelector", "kqlValue", "kubernetesNode", "kubernetesPod", "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", "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", "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", "sortDown", "sortLeft", "sortRight", "sortUp", "sortable", "spacesApp", "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", "timelionApp", "timeRefresh", "timeslider", "training", "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", "watchesApp", "wordWrap", "wordWrapDisabled", "workplaceSearchApp", "wrench", "tokenClass", "tokenProperty", "tokenEnum", "tokenVariable", "tokenMethod", "tokenAnnotation", "tokenException", "tokenInterface", "tokenParameter", "tokenField", "tokenElement", "tokenFunction", "tokenBoolean", "tokenString", "tokenArray", "tokenNumber", "tokenConstant", "tokenObject", "tokenEvent", "tokenKey", "tokenNull", "tokenStruct", "tokenPackage", "tokenOperator", "tokenEnumMember", "tokenRepo", "tokenSymbol", "tokenFile", "tokenModule", "tokenNamespace", "tokenDate", "tokenIP", "tokenNested", "tokenAlias", "tokenShape", "tokenGeo", "tokenRange", "tokenBinary", "tokenJoin", "tokenPercolator", "tokenFlattened", "tokenRankFeature", "tokenRankFeatures", "tokenKeyword", "tokenTag", "tokenCompletionSuggester", "tokenDenseVector", "tokenText", "tokenTokenCount", "tokenSearchType", "tokenHistogram"]).isRequired, _propTypes.default.string.isRequired, _propTypes.default.elementType.isRequired]),
143
143
 
144
144
  /**
145
145
  * Manually change icon size