@elastic/eui 81.2.0 → 82.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 (261) hide show
  1. package/README.md +2 -0
  2. package/dist/eui_charts_theme.js.map +1 -1
  3. package/dist/eui_theme_dark.css +14 -13
  4. package/dist/eui_theme_dark.min.css +1 -1
  5. package/dist/eui_theme_light.css +14 -13
  6. package/dist/eui_theme_light.min.css +1 -1
  7. package/es/components/avatar/avatar.js +1 -1
  8. package/es/components/badge/badge.js +1 -1
  9. package/es/components/badge/beta_badge/beta_badge.js +1 -1
  10. package/es/components/basic_table/basic_table.js +1 -1
  11. package/es/components/basic_table/collapsed_item_actions.js +1 -1
  12. package/es/components/basic_table/in_memory_table.js +1 -1
  13. package/es/components/button/_button_content_deprecated.js +1 -1
  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/code/code_block_annotations.js +13 -4
  23. package/es/components/code/code_block_copy.js +14 -2
  24. package/es/components/code/code_block_line.styles.js +1 -1
  25. package/es/components/code/utils.js +29 -17
  26. package/es/components/collapsible_nav/collapsible_nav_group/collapsible_nav_group.js +1 -1
  27. package/es/components/comment_list/comment.js +2 -2
  28. package/es/components/comment_list/comment_event.js +1 -1
  29. package/es/components/comment_list/comment_list.js +2 -2
  30. package/es/components/comment_list/comment_timeline.js +1 -1
  31. package/es/components/datagrid/body/data_grid_body.js +13 -13
  32. package/es/components/datagrid/body/data_grid_body_custom.js +13 -13
  33. package/es/components/datagrid/body/data_grid_body_virtualized.js +13 -13
  34. package/es/components/datagrid/body/data_grid_cell.js +24 -24
  35. package/es/components/datagrid/body/header/data_grid_header_cell.js +12 -12
  36. package/es/components/datagrid/body/header/data_grid_header_row.js +13 -13
  37. package/es/components/datagrid/controls/column_sorting_draggable.js +1 -1
  38. package/es/components/datagrid/data_grid.js +13 -13
  39. package/es/components/datagrid/utils/in_memory.js +12 -12
  40. package/es/components/date_picker/date_picker.js +2 -2
  41. package/es/components/date_picker/date_picker_range.js +1 -1
  42. package/es/components/empty_prompt/empty_prompt.js +1 -1
  43. package/es/components/facet/facet_button.js +1 -1
  44. package/es/components/form/field_number/field_number.js +1 -1
  45. package/es/components/form/field_text/field_text.js +2 -2
  46. package/es/components/form/form_control_layout/form_control_layout.js +2 -2
  47. package/es/components/form/form_control_layout/form_control_layout_custom_icon.js +1 -1
  48. package/es/components/form/form_control_layout/form_control_layout_icons.js +2 -2
  49. package/es/components/form/range/range_track.js +21 -7
  50. package/es/components/header/header_links/header_link.js +1 -1
  51. package/es/components/header/header_links/header_links.js +26 -2
  52. package/es/components/header/header_logo.js +1 -1
  53. package/es/components/icon/assets/timelineWithArrow.js +34 -0
  54. package/es/components/icon/icon.js +1 -1
  55. package/es/components/icon/icon_glyphs.a11y.js +1 -1
  56. package/es/components/icon/icon_map.js +1 -0
  57. package/es/components/key_pad_menu/key_pad_menu_item.js +1 -1
  58. package/es/components/list_group/list_group.js +2 -2
  59. package/es/components/list_group/list_group_item.js +2 -2
  60. package/es/components/list_group/list_group_item_extra_action.js +1 -1
  61. package/es/components/list_group/pinnable_list_group/pinnable_list_group.js +4 -4
  62. package/es/components/loading/loading_logo.js +1 -1
  63. package/es/components/markdown_editor/markdown_editor.js +1 -1
  64. package/es/components/markdown_editor/markdown_editor_drop_zone.js +1 -1
  65. package/es/components/markdown_editor/markdown_editor_footer.js +1 -1
  66. package/es/components/markdown_editor/markdown_editor_toolbar.js +1 -1
  67. package/es/components/notification/notification_event.js +2 -2
  68. package/es/components/notification/notification_event_meta.js +1 -1
  69. package/es/components/page/page_header/page_header_content.js +1 -1
  70. package/es/components/pagination/pagination_button.js +1 -1
  71. package/es/components/popover/popover.js +25 -1
  72. package/es/components/popover/popover_panel/_popover_panel.js +0 -10
  73. package/es/components/selectable/selectable_list/selectable_list.js +1 -1
  74. package/es/components/selectable/selectable_list/selectable_list_item.js +1 -1
  75. package/es/components/selectable/selectable_templates/selectable_template_sitewide.js +1 -1
  76. package/es/components/suggest/suggest.js +1 -1
  77. package/es/components/suggest/suggest_item.js +1 -1
  78. package/es/components/table/table_header_button.js +1 -1
  79. package/es/components/timeline/timeline_item_icon.js +1 -1
  80. package/es/components/toast/global_toast_list.js +1 -1
  81. package/es/components/toast/toast.js +1 -1
  82. package/es/components/tool_tip/icon_tip.js +1 -1
  83. package/es/components/tour/tour_step.js +25 -1
  84. package/es/global_styling/variables/breakpoint.js +2 -1
  85. package/eui.d.ts +131 -19
  86. package/i18ntokens.json +10 -10
  87. package/lib/components/avatar/avatar.js +1 -1
  88. package/lib/components/badge/badge.js +1 -1
  89. package/lib/components/badge/beta_badge/beta_badge.js +1 -1
  90. package/lib/components/basic_table/basic_table.js +1 -1
  91. package/lib/components/basic_table/collapsed_item_actions.js +1 -1
  92. package/lib/components/basic_table/in_memory_table.js +1 -1
  93. package/lib/components/button/_button_content_deprecated.js +1 -1
  94. package/lib/components/button/button_display/_button_display.js +1 -1
  95. package/lib/components/button/button_display/_button_display_content.js +1 -1
  96. package/lib/components/button/button_empty/button_empty.js +1 -1
  97. package/lib/components/button/button_group/button_group.js +1 -1
  98. package/lib/components/button/button_group/button_group_button.js +1 -1
  99. package/lib/components/button/button_icon/button_icon.js +1 -1
  100. package/lib/components/call_out/call_out.js +1 -1
  101. package/lib/components/card/card.js +1 -1
  102. package/lib/components/code/code_block_annotations.js +21 -11
  103. package/lib/components/code/code_block_copy.js +14 -2
  104. package/lib/components/code/code_block_line.styles.js +1 -1
  105. package/lib/components/code/utils.js +32 -18
  106. package/lib/components/collapsible_nav/collapsible_nav_group/collapsible_nav_group.js +1 -1
  107. package/lib/components/comment_list/comment.js +2 -2
  108. package/lib/components/comment_list/comment_event.js +1 -1
  109. package/lib/components/comment_list/comment_list.js +2 -2
  110. package/lib/components/comment_list/comment_timeline.js +1 -1
  111. package/lib/components/datagrid/body/data_grid_body.js +13 -13
  112. package/lib/components/datagrid/body/data_grid_body_custom.js +13 -13
  113. package/lib/components/datagrid/body/data_grid_body_virtualized.js +13 -13
  114. package/lib/components/datagrid/body/data_grid_cell.js +24 -24
  115. package/lib/components/datagrid/body/header/data_grid_header_cell.js +12 -12
  116. package/lib/components/datagrid/body/header/data_grid_header_row.js +13 -13
  117. package/lib/components/datagrid/controls/column_sorting_draggable.js +1 -1
  118. package/lib/components/datagrid/data_grid.js +13 -13
  119. package/lib/components/datagrid/utils/in_memory.js +12 -12
  120. package/lib/components/date_picker/date_picker.js +2 -2
  121. package/lib/components/date_picker/date_picker_range.js +1 -1
  122. package/lib/components/empty_prompt/empty_prompt.js +1 -1
  123. package/lib/components/facet/facet_button.js +1 -1
  124. package/lib/components/form/field_number/field_number.js +1 -1
  125. package/lib/components/form/field_text/field_text.js +2 -2
  126. package/lib/components/form/form_control_layout/form_control_layout.js +2 -2
  127. package/lib/components/form/form_control_layout/form_control_layout_custom_icon.js +1 -1
  128. package/lib/components/form/form_control_layout/form_control_layout_icons.js +2 -2
  129. package/lib/components/form/range/range_track.js +21 -7
  130. package/lib/components/header/header_links/header_link.js +1 -1
  131. package/lib/components/header/header_links/header_links.js +26 -2
  132. package/lib/components/header/header_logo.js +1 -1
  133. package/lib/components/icon/assets/timelineWithArrow.js +42 -0
  134. package/lib/components/icon/icon.js +1 -1
  135. package/lib/components/icon/icon_glyphs.a11y.js +1 -1
  136. package/lib/components/icon/icon_map.js +1 -0
  137. package/lib/components/icon/svgs/timelineWithArrow.svg +6 -0
  138. package/lib/components/key_pad_menu/key_pad_menu_item.js +1 -1
  139. package/lib/components/list_group/list_group.js +2 -2
  140. package/lib/components/list_group/list_group_item.js +2 -2
  141. package/lib/components/list_group/list_group_item_extra_action.js +1 -1
  142. package/lib/components/list_group/pinnable_list_group/pinnable_list_group.js +4 -4
  143. package/lib/components/loading/loading_logo.js +1 -1
  144. package/lib/components/markdown_editor/markdown_editor.js +1 -1
  145. package/lib/components/markdown_editor/markdown_editor_drop_zone.js +1 -1
  146. package/lib/components/markdown_editor/markdown_editor_footer.js +1 -1
  147. package/lib/components/markdown_editor/markdown_editor_toolbar.js +1 -1
  148. package/lib/components/notification/notification_event.js +2 -2
  149. package/lib/components/notification/notification_event_meta.js +1 -1
  150. package/lib/components/page/page_content/page_content.js +4 -4
  151. package/lib/components/page/page_header/page_header_content.js +1 -1
  152. package/lib/components/page/page_template.js +4 -4
  153. package/lib/components/popover/popover_panel/_popover_panel.js +0 -33
  154. package/lib/components/selectable/selectable_list/selectable_list.js +1 -1
  155. package/lib/components/selectable/selectable_list/selectable_list_item.js +1 -1
  156. package/lib/components/selectable/selectable_templates/selectable_template_sitewide.js +1 -1
  157. package/lib/components/suggest/suggest.js +1 -1
  158. package/lib/components/suggest/suggest_item.js +1 -1
  159. package/lib/components/table/table_header_button.js +1 -1
  160. package/lib/components/timeline/timeline_item_icon.js +1 -1
  161. package/lib/components/toast/global_toast_list.js +1 -1
  162. package/lib/components/toast/toast.js +1 -1
  163. package/lib/components/tool_tip/icon_tip.js +1 -1
  164. package/lib/global_styling/variables/breakpoint.js +2 -1
  165. package/optimize/es/components/code/code_block_annotations.js +8 -4
  166. package/optimize/es/components/code/code_block_copy.js +14 -2
  167. package/optimize/es/components/code/code_block_line.styles.js +1 -1
  168. package/optimize/es/components/code/utils.js +29 -17
  169. package/optimize/es/components/form/range/range_track.js +21 -7
  170. package/optimize/es/components/icon/assets/timelineWithArrow.js +33 -0
  171. package/optimize/es/components/icon/icon_glyphs.a11y.js +1 -1
  172. package/optimize/es/components/icon/icon_map.js +1 -0
  173. package/optimize/es/global_styling/variables/breakpoint.js +2 -1
  174. package/optimize/lib/components/code/code_block_annotations.js +10 -7
  175. package/optimize/lib/components/code/code_block_copy.js +14 -2
  176. package/optimize/lib/components/code/code_block_line.styles.js +1 -1
  177. package/optimize/lib/components/code/utils.js +32 -18
  178. package/optimize/lib/components/form/range/range_track.js +21 -7
  179. package/optimize/lib/components/icon/assets/timelineWithArrow.js +42 -0
  180. package/optimize/lib/components/icon/icon_glyphs.a11y.js +1 -1
  181. package/optimize/lib/components/icon/icon_map.js +1 -0
  182. package/optimize/lib/components/icon/svgs/timelineWithArrow.svg +6 -0
  183. package/optimize/lib/global_styling/variables/breakpoint.js +2 -1
  184. package/package.json +1 -1
  185. package/src/components/table/_table.scss +7 -9
  186. package/test-env/components/avatar/avatar.js +1 -1
  187. package/test-env/components/badge/badge.js +1 -1
  188. package/test-env/components/badge/beta_badge/beta_badge.js +1 -1
  189. package/test-env/components/basic_table/basic_table.js +1 -1
  190. package/test-env/components/basic_table/collapsed_item_actions.js +1 -1
  191. package/test-env/components/basic_table/in_memory_table.js +1 -1
  192. package/test-env/components/button/_button_content_deprecated.js +1 -1
  193. package/test-env/components/button/button_display/_button_display.js +1 -1
  194. package/test-env/components/button/button_display/_button_display_content.js +1 -1
  195. package/test-env/components/button/button_empty/button_empty.js +1 -1
  196. package/test-env/components/button/button_group/button_group.js +1 -1
  197. package/test-env/components/button/button_group/button_group_button.js +1 -1
  198. package/test-env/components/button/button_icon/button_icon.js +1 -1
  199. package/test-env/components/call_out/call_out.js +1 -1
  200. package/test-env/components/card/card.js +1 -1
  201. package/test-env/components/code/code_block_annotations.js +14 -7
  202. package/test-env/components/code/code_block_copy.js +14 -2
  203. package/test-env/components/code/code_block_line.styles.js +1 -1
  204. package/test-env/components/code/utils.js +32 -18
  205. package/test-env/components/collapsible_nav/collapsible_nav_group/collapsible_nav_group.js +1 -1
  206. package/test-env/components/comment_list/comment.js +2 -2
  207. package/test-env/components/comment_list/comment_event.js +1 -1
  208. package/test-env/components/comment_list/comment_list.js +2 -2
  209. package/test-env/components/comment_list/comment_timeline.js +1 -1
  210. package/test-env/components/datagrid/body/data_grid_body.js +13 -13
  211. package/test-env/components/datagrid/body/data_grid_body_custom.js +13 -13
  212. package/test-env/components/datagrid/body/data_grid_body_virtualized.js +13 -13
  213. package/test-env/components/datagrid/body/data_grid_cell.js +24 -24
  214. package/test-env/components/datagrid/body/header/data_grid_header_cell.js +12 -12
  215. package/test-env/components/datagrid/body/header/data_grid_header_row.js +13 -13
  216. package/test-env/components/datagrid/controls/column_sorting_draggable.js +1 -1
  217. package/test-env/components/datagrid/data_grid.js +13 -13
  218. package/test-env/components/datagrid/utils/in_memory.js +12 -12
  219. package/test-env/components/date_picker/date_picker.js +2 -2
  220. package/test-env/components/date_picker/date_picker_range.js +1 -1
  221. package/test-env/components/empty_prompt/empty_prompt.js +1 -1
  222. package/test-env/components/facet/facet_button.js +1 -1
  223. package/test-env/components/form/field_number/field_number.js +1 -1
  224. package/test-env/components/form/field_text/field_text.js +2 -2
  225. package/test-env/components/form/form_control_layout/form_control_layout.js +2 -2
  226. package/test-env/components/form/form_control_layout/form_control_layout_custom_icon.js +1 -1
  227. package/test-env/components/form/form_control_layout/form_control_layout_icons.js +2 -2
  228. package/test-env/components/form/range/range_track.js +21 -7
  229. package/test-env/components/header/header_links/header_link.js +1 -1
  230. package/test-env/components/header/header_links/header_links.js +26 -2
  231. package/test-env/components/header/header_logo.js +1 -1
  232. package/test-env/components/icon/assets/timelineWithArrow.js +42 -0
  233. package/test-env/components/icon/icon_glyphs.a11y.js +1 -1
  234. package/test-env/components/icon/icon_map.js +1 -0
  235. package/test-env/components/key_pad_menu/key_pad_menu_item.js +1 -1
  236. package/test-env/components/list_group/list_group.js +2 -2
  237. package/test-env/components/list_group/list_group_item.js +2 -2
  238. package/test-env/components/list_group/list_group_item_extra_action.js +1 -1
  239. package/test-env/components/list_group/pinnable_list_group/pinnable_list_group.js +4 -4
  240. package/test-env/components/loading/loading_logo.js +1 -1
  241. package/test-env/components/markdown_editor/markdown_editor.js +1 -1
  242. package/test-env/components/markdown_editor/markdown_editor_drop_zone.js +1 -1
  243. package/test-env/components/markdown_editor/markdown_editor_footer.js +1 -1
  244. package/test-env/components/markdown_editor/markdown_editor_toolbar.js +1 -1
  245. package/test-env/components/notification/notification_event.js +2 -2
  246. package/test-env/components/notification/notification_event_meta.js +1 -1
  247. package/test-env/components/page/page_content/page_content.js +4 -4
  248. package/test-env/components/page/page_header/page_header_content.js +1 -1
  249. package/test-env/components/page/page_template.js +4 -4
  250. package/test-env/components/popover/popover_panel/_popover_panel.js +0 -33
  251. package/test-env/components/selectable/selectable_list/selectable_list.js +1 -1
  252. package/test-env/components/selectable/selectable_list/selectable_list_item.js +1 -1
  253. package/test-env/components/selectable/selectable_templates/selectable_template_sitewide.js +1 -1
  254. package/test-env/components/suggest/suggest.js +1 -1
  255. package/test-env/components/suggest/suggest_item.js +1 -1
  256. package/test-env/components/table/table_header_button.js +1 -1
  257. package/test-env/components/timeline/timeline_item_icon.js +1 -1
  258. package/test-env/components/toast/global_toast_list.js +1 -1
  259. package/test-env/components/toast/toast.js +1 -1
  260. package/test-env/components/tool_tip/icon_tip.js +1 -1
  261. package/test-env/global_styling/variables/breakpoint.js +2 -1
@@ -41,6 +41,10 @@ export var EuiRangeTrack = function EuiRangeTrack(_ref) {
41
41
  step: step
42
42
  });
43
43
  }, [value, min, max, step]);
44
+ var _useState = useState(0),
45
+ _useState2 = _slicedToArray(_useState, 2),
46
+ trackWidth = _useState2[0],
47
+ setTrackWidth = _useState2[1];
44
48
  var tickSequence = useMemo(function () {
45
49
  if (showTicks !== true) return;
46
50
  var sequence;
@@ -75,18 +79,14 @@ export var EuiRangeTrack = function EuiRangeTrack(_ref) {
75
79
  }
76
80
 
77
81
  // Error out if there are too many ticks to render
78
- if (sequence.length > 20) {
79
- throw new Error("The number of ticks to render is too high (".concat(sequence.length, "), reduce the interval."));
82
+ if (trackWidth && sequence.length) {
83
+ validateTickRenderCount(trackWidth, sequence.length);
80
84
  }
81
85
  return sequence;
82
- }, [showTicks, ticks, min, max, tickInterval, step]);
86
+ }, [showTicks, ticks, min, max, tickInterval, step, trackWidth]);
83
87
  var euiTheme = useEuiTheme();
84
88
  var styles = euiRangeTrackStyles(euiTheme);
85
89
  var cssStyles = [styles.euiRangeTrack, disabled && styles.disabled, levels && !!levels.length && styles.hasLevels, showTicks && (tickSequence || ticks) && styles.hasTicks];
86
- var _useState = useState(0),
87
- _useState2 = _slicedToArray(_useState, 2),
88
- trackWidth = _useState2[0],
89
- setTrackWidth = _useState2[1];
90
90
  var classes = classNames('euiRangeTrack', className);
91
91
  return ___EmotionJSX("div", _extends({
92
92
  className: classes,
@@ -132,4 +132,18 @@ var validateValueIsInStep = function validateValueIsInStep(value, _ref2) {
132
132
  }
133
133
  // Return the value if nothing fails
134
134
  return value;
135
+ };
136
+ var validateTickRenderCount = function validateTickRenderCount(trackWidth, tickCount) {
137
+ var tickWidth = trackWidth / tickCount;
138
+
139
+ // These widths are guesstimations - it's possible we should use actual label content/widths instead
140
+ var COMFORTABLE_TICK_WIDTH = 20; // Set a warning threshold before throwing
141
+ var MIN_TICK_WIDTH = 5; // If ticks are smaller than this, something's gone seriously wrong and we should throw
142
+
143
+ var message = "The number of ticks to render (".concat(tickCount, ") is too high for the range width. Ensure all ticks are visible on the page at multiple screen widths, or use EUI's breakpoint hook utilities to reduce the tick interval responsively.");
144
+ if (tickWidth <= MIN_TICK_WIDTH) {
145
+ throw new Error(message);
146
+ } else if (tickWidth < COMFORTABLE_TICK_WIDTH) {
147
+ console.warn(message);
148
+ }
135
149
  };
@@ -0,0 +1,33 @@
1
+ import _extends from "@babel/runtime/helpers/extends";
2
+ import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
3
+ var _excluded = ["title", "titleId"];
4
+ /*
5
+ * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
6
+ * or more contributor license agreements. Licensed under the Elastic License
7
+ * 2.0 and the Server Side Public License, v 1; you may not use this file except
8
+ * in compliance with, at your election, the Elastic License 2.0 or the Server
9
+ * Side Public License, v 1.
10
+ */
11
+
12
+ // THIS IS A GENERATED FILE. DO NOT MODIFY MANUALLY. @see scripts/compile-icons.js
13
+
14
+ import * as React from 'react';
15
+ import { jsx as ___EmotionJSX } from "@emotion/react";
16
+ var EuiIconTimelineWithArrow = function EuiIconTimelineWithArrow(_ref) {
17
+ var title = _ref.title,
18
+ titleId = _ref.titleId,
19
+ props = _objectWithoutProperties(_ref, _excluded);
20
+ return ___EmotionJSX("svg", _extends({
21
+ width: 16,
22
+ height: 16,
23
+ viewBox: "0 0 16 16",
24
+ xmlns: "http://www.w3.org/2000/svg",
25
+ "aria-labelledby": titleId
26
+ }, props), title ? ___EmotionJSX("title", {
27
+ id: titleId
28
+ }, title) : null, ___EmotionJSX("path", {
29
+ fillRule: "evenodd",
30
+ d: "M7.854 4.854A.5.5 0 017 4.5V4H6a1 1 0 01-1-1V1a1 1 0 011-1h3a1 1 0 011 1v2a1 1 0 01-1 1H8v.5a.5.5 0 01-.146.354zM6 3V1h3v2H6zM2.146 9.146A.5.5 0 002 9.5v.5H1a1 1 0 00-1 1v2a1 1 0 001 1h3a1 1 0 001-1v-2a1 1 0 00-1-1H3v-.5a.5.5 0 00-.854-.354zM4 13v-2H1v2h3zM11.5 15a4.5 4.5 0 100-9 4.5 4.5 0 000 9zm.354-6.854l2 2a.5.5 0 010 .708l-2 2a.5.5 0 01-.707-.708L12.293 11H9.5a.5.5 0 010-1h2.793l-1.146-1.146a.5.5 0 11.707-.708zM8.337 6H3.915a1.5 1.5 0 00-2.83 0H.5a.5.5 0 000 1h.585a1.5 1.5 0 002.83 0h3.342c.314-.38.677-.716 1.08-1zM2 6.5a.5.5 0 111 0 .5.5 0 01-1 0z"
31
+ }));
32
+ };
33
+ export var icon = EuiIconTimelineWithArrow;
@@ -15,7 +15,7 @@ import { EuiIcon } from './icon';
15
15
  import { jsx as ___EmotionJSX } from "@emotion/react";
16
16
  describe('EuiIcons', function () {
17
17
  describe('Automated accessibility check for glyph icons', function () {
18
- var GlyphIcons = ['accessibility', 'aggregate', 'analyzeEvent', 'annotation', 'apmTrace', 'apps', 'arrowDown', 'arrowLeft', 'arrowRight', 'arrowUp', 'arrowStart', 'arrowEnd', 'article', 'asterisk', 'beaker', 'bell', 'bellSlash', 'beta', 'bolt', 'boxesHorizontal', 'boxesVertical', 'branch', 'branchUser', 'broom', 'brush', 'bug', 'bullseye', 'calendar', 'check', 'checkInCircleFilled', 'cheer', 'clock', 'cloudDrizzle', 'cloudStormy', 'cloudSunny', 'cluster', 'color', 'compute', 'console', 'container', 'continuityAbove', 'continuityAboveBelow', 'continuityBelow', 'continuityWithin', 'controlsHorizontal', 'controlsVertical', 'copy', 'copyClipboard', 'cross', 'crosshairs', 'currency', 'cut', 'database', 'desktop', 'discuss', 'document', 'documents', 'documentEdit', 'documentation', 'dot', 'dotInCircle', 'doubleArrowLeft', 'doubleArrowRight', 'download', 'email', 'empty', 'eql', 'eraser', 'exit', 'expand', 'expandMini', 'exportAction', 'eye', 'eyeClosed', 'faceHappy', 'faceNeutral', 'faceSad', 'filter', 'filterExclude', 'filterIgnore', 'filterInclude', 'filterInCircle', 'flag', 'fold', 'folderCheck', 'folderClosed', 'folderExclamation', 'folderOpen', 'frameNext', 'framePrevious', 'fullScreen', 'fullScreenExit', 'function', 'gear', 'glasses', 'globe', 'grab', 'grabHorizontal', 'grid', 'heart', 'heatmap', 'help', 'home', 'iInCircle', 'image', 'importAction', 'indexClose', 'indexEdit', 'indexFlush', 'indexMapping', 'indexOpen', 'indexRuntime', 'indexSettings', 'indexTemporary', 'infinity', 'inputOutput', 'inspect', 'invert', 'ip', 'keyboard', 'kqlField', 'kqlFunction', 'kqlOperand', 'kqlSelector', 'kqlValue', 'kubernetesNode', 'kubernetesPod', 'launch', 'layers', 'lettering', 'lineDashed', 'lineDotted', 'lineSolid', 'link', 'list', 'listAdd', 'lock', 'lockOpen', 'logstashFilter', 'logstashIf', 'logstashInput', 'logstashOutput', 'logstashQueue', 'magnifyWithExclamation', 'magnifyWithMinus', 'magnifyWithPlus', 'magnet', 'mapMarker', 'memory', 'merge', 'menu', 'menuDown', 'menuLeft', 'menuRight', 'menuUp', 'minimize', 'minus', 'minusInCircle', 'minusInCircleFilled', 'mobile', 'moon', 'namespace', 'nested', 'node', 'number', 'offline', 'online', 'package', 'pageSelect', 'pagesSelect', 'paperClip', 'partial', 'pause', 'payment', 'pencil', 'percent', 'pin', 'pinFilled', 'play', 'playFilled', 'plus', 'plusInCircle', 'plusInCircleFilled', 'popout', 'push', 'questionInCircle', 'quote', 'refresh', 'reporter', 'returnKey', 'save', 'scale', 'search', 'securitySignal', 'securitySignalDetected', 'securitySignalResolved', 'sessionViewer', 'shard', 'share', 'snowflake', 'sortable', 'sortAscending', 'sortDescending', 'sortDown', 'sortLeft', 'sortRight', 'sortUp', 'spaces', 'starEmpty', 'starEmptySpace', 'starFilled', 'starFilledSpace', 'starMinusEmpty', 'starMinusFilled', 'starPlusEmpty', 'starPlusFilled', 'stats', 'stop', 'stopFilled', 'stopSlash', 'storage', 'string', 'submodule', 'sun', 'symlink', 'tableOfContents', 'tableDensityExpanded', 'tableDensityCompact', 'tableDensityNormal', 'tag', 'tear', 'temperature', 'timeline', 'timeRefresh', 'timeslider', 'training', 'trash', 'unfold', 'unlink', 'user', 'userAvatar', 'users', 'vector', 'videoPlayer', 'visArea', 'visAreaStacked', 'visBarHorizontal', 'visBarHorizontalStacked', 'visBarVertical', 'visBarVerticalStacked', 'visGauge', 'visGoal', 'visLine', 'visMapCoordinate', 'visMapRegion', 'visMetric', 'visPie', 'visTable', 'visTagCloud', 'visText', 'visTimelion', 'visVega', 'visVisualBuilder', 'warning', 'wordWrap', 'wordWrapDisabled', 'wrench'];
18
+ var GlyphIcons = ['accessibility', 'aggregate', 'analyzeEvent', 'annotation', 'apmTrace', 'apps', 'arrowDown', 'arrowLeft', 'arrowRight', 'arrowUp', 'arrowStart', 'arrowEnd', 'article', 'asterisk', 'beaker', 'bell', 'bellSlash', 'beta', 'bolt', 'boxesHorizontal', 'boxesVertical', 'branch', 'branchUser', 'broom', 'brush', 'bug', 'bullseye', 'calendar', 'check', 'checkInCircleFilled', 'cheer', 'clock', 'cloudDrizzle', 'cloudStormy', 'cloudSunny', 'cluster', 'color', 'compute', 'console', 'container', 'continuityAbove', 'continuityAboveBelow', 'continuityBelow', 'continuityWithin', 'controlsHorizontal', 'controlsVertical', 'copy', 'copyClipboard', 'cross', 'crosshairs', 'currency', 'cut', 'database', 'desktop', 'discuss', 'document', 'documents', 'documentEdit', 'documentation', 'dot', 'dotInCircle', 'doubleArrowLeft', 'doubleArrowRight', 'download', 'email', 'empty', 'eql', 'eraser', 'exit', 'expand', 'expandMini', 'exportAction', 'eye', 'eyeClosed', 'faceHappy', 'faceNeutral', 'faceSad', 'filter', 'filterExclude', 'filterIgnore', 'filterInclude', 'filterInCircle', 'flag', 'fold', 'folderCheck', 'folderClosed', 'folderExclamation', 'folderOpen', 'frameNext', 'framePrevious', 'fullScreen', 'fullScreenExit', 'function', 'gear', 'glasses', 'globe', 'grab', 'grabHorizontal', 'grid', 'heart', 'heatmap', 'help', 'home', 'iInCircle', 'image', 'importAction', 'indexClose', 'indexEdit', 'indexFlush', 'indexMapping', 'indexOpen', 'indexRuntime', 'indexSettings', 'indexTemporary', 'infinity', 'inputOutput', 'inspect', 'invert', 'ip', 'keyboard', 'kqlField', 'kqlFunction', 'kqlOperand', 'kqlSelector', 'kqlValue', 'kubernetesNode', 'kubernetesPod', 'launch', 'layers', 'lettering', 'lineDashed', 'lineDotted', 'lineSolid', 'link', 'list', 'listAdd', 'lock', 'lockOpen', 'logstashFilter', 'logstashIf', 'logstashInput', 'logstashOutput', 'logstashQueue', 'magnifyWithExclamation', 'magnifyWithMinus', 'magnifyWithPlus', 'magnet', 'mapMarker', 'memory', 'merge', 'menu', 'menuDown', 'menuLeft', 'menuRight', 'menuUp', 'minimize', 'minus', 'minusInCircle', 'minusInCircleFilled', 'mobile', 'moon', 'namespace', 'nested', 'node', 'number', 'offline', 'online', 'package', 'pageSelect', 'pagesSelect', 'paperClip', 'partial', 'pause', 'payment', 'pencil', 'percent', 'pin', 'pinFilled', 'play', 'playFilled', 'plus', 'plusInCircle', 'plusInCircleFilled', 'popout', 'push', 'questionInCircle', 'quote', 'refresh', 'reporter', 'returnKey', 'save', 'scale', 'search', 'securitySignal', 'securitySignalDetected', 'securitySignalResolved', 'sessionViewer', 'shard', 'share', 'snowflake', 'sortable', 'sortAscending', 'sortDescending', 'sortDown', 'sortLeft', 'sortRight', 'sortUp', 'spaces', 'starEmpty', 'starEmptySpace', 'starFilled', 'starFilledSpace', 'starMinusEmpty', 'starMinusFilled', 'starPlusEmpty', 'starPlusFilled', 'stats', 'stop', 'stopFilled', 'stopSlash', 'storage', 'string', 'submodule', 'sun', 'symlink', 'tableOfContents', 'tableDensityExpanded', 'tableDensityCompact', 'tableDensityNormal', 'tag', 'tear', 'temperature', 'timeline', 'timelineWithArrow', 'timeRefresh', 'timeslider', 'training', 'trash', 'unfold', 'unlink', 'user', 'userAvatar', 'users', 'vector', 'videoPlayer', 'visArea', 'visAreaStacked', 'visBarHorizontal', 'visBarHorizontalStacked', 'visBarVertical', 'visBarVerticalStacked', 'visGauge', 'visGoal', 'visLine', 'visMapCoordinate', 'visMapRegion', 'visMetric', 'visPie', 'visTable', 'visTagCloud', 'visText', 'visTimelion', 'visVega', 'visVisualBuilder', 'warning', 'wordWrap', 'wordWrapDisabled', 'wrench'];
19
19
  var GlyphGrid = function GlyphGrid() {
20
20
  return ___EmotionJSX("div", null, GlyphIcons.map(function (glyph) {
21
21
  return ___EmotionJSX(EuiIcon, {
@@ -381,6 +381,7 @@ export var typeToPathMap = {
381
381
  tear: 'tear',
382
382
  temperature: 'temperature',
383
383
  timeline: 'timeline',
384
+ timelineWithArrow: 'timelineWithArrow',
384
385
  timelionApp: 'app_timelion',
385
386
  timeRefresh: 'timeRefresh',
386
387
  timeslider: 'timeslider',
@@ -10,4 +10,5 @@ export var EuiThemeBreakpoints = ['xs', 's', 'm', 'l', 'xl'];
10
10
 
11
11
  // This type cannot be a string enum / must be a generic string
12
12
  // in case consumers add custom breakpoint sizes, such as xxl or xxs
13
- // Set the minimum window width at which to start to the breakpoint
13
+ // Explicitly list out each key so we can document default values
14
+ // via JSDoc (which is available to devs in IDE via intellisense)
@@ -8,6 +8,7 @@ Object.defineProperty(exports, "__esModule", {
8
8
  exports.EuiCodeBlockAnnotation = void 0;
9
9
  var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
10
10
  var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
11
+ var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
11
12
  var _react = _interopRequireWildcard(require("react"));
12
13
  var _services = require("../../services");
13
14
  var _i18n = require("../i18n");
@@ -16,8 +17,7 @@ var _icon = require("../icon");
16
17
  var _button = require("../../themes/amsterdam/global_styling/mixins/button");
17
18
  var _code_block_annotations = require("./code_block_annotations.style");
18
19
  var _react2 = require("@emotion/react");
19
- function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
20
- 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; }
20
+ var _excluded = ["lineNumber", "children"];
21
21
  /*
22
22
  * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
23
23
  * or more contributor license agreements. Licensed under the Elastic License
@@ -25,10 +25,12 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
25
25
  * in compliance with, at your election, the Elastic License 2.0 or the Server
26
26
  * Side Public License, v 1.
27
27
  */
28
-
28
+ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
29
+ 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; }
29
30
  var EuiCodeBlockAnnotation = function EuiCodeBlockAnnotation(_ref) {
30
31
  var lineNumber = _ref.lineNumber,
31
- children = _ref.children;
32
+ children = _ref.children,
33
+ rest = (0, _objectWithoutProperties2.default)(_ref, _excluded);
32
34
  var _useState = (0, _react.useState)(false),
33
35
  _useState2 = (0, _slicedToArray2.default)(_useState, 2),
34
36
  isOpen = _useState2[0],
@@ -43,7 +45,9 @@ var EuiCodeBlockAnnotation = function EuiCodeBlockAnnotation(_ref) {
43
45
  var buttonIconFocusStyle = (0, _button.useEuiButtonFocusCSS)();
44
46
  var cssButtonIconStyles = [styles.euiCodeBlockAnnotation__buttonIcon, buttonIconFocusStyle];
45
47
  var isDarkMode = colorMode === 'DARK';
46
- return (0, _react2.jsx)(_popover.EuiPopover, {
48
+ return (0, _react2.jsx)(_popover.EuiPopover, (0, _extends2.default)({
49
+ css: styles.euiCodeBlockAnnotation
50
+ }, rest, {
47
51
  isOpen: isOpen,
48
52
  closePopover: function closePopover() {
49
53
  return setIsOpen(false);
@@ -60,14 +64,13 @@ var EuiCodeBlockAnnotation = function EuiCodeBlockAnnotation(_ref) {
60
64
  size: "s",
61
65
  color: isDarkMode ? euiTheme.colors.ink : 'ghost'
62
66
  })),
63
- css: styles.euiCodeBlockAnnotation,
64
67
  zIndex: Number(euiTheme.levels.mask) + 1 // Ensure fullscreen annotation popovers sit above the mask
65
68
  ,
66
69
  anchorPosition: "downLeft",
67
70
  panelProps: {
68
71
  'data-test-subj': 'euiCodeBlockAnnotationPopover'
69
72
  }
70
- }, children);
73
+ }), children);
71
74
  };
72
75
  exports.EuiCodeBlockAnnotation = EuiCodeBlockAnnotation;
73
76
  var AnnotationInfoIcon = function AnnotationInfoIcon(props) {
@@ -12,6 +12,7 @@ var _inner_text = require("../inner_text");
12
12
  var _copy = require("../copy");
13
13
  var _i18n = require("../i18n");
14
14
  var _button = require("../button");
15
+ var _utils = require("./utils");
15
16
  var _react2 = require("@emotion/react");
16
17
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
17
18
  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; }
@@ -35,7 +36,17 @@ var useCopy = function useCopy(_ref) {
35
36
  innerTextRef = _useInnerText2[0],
36
37
  _innerText = _useInnerText2[1];
37
38
  var innerText = (0, _react.useMemo)(function () {
38
- return (_innerText === null || _innerText === void 0 ? void 0 : _innerText.replace(/[\r\n?]{2}|\n\n/g, '\n')) || '';
39
+ return (_innerText
40
+ // Normalize line terminations to match native JS format
41
+ === null || _innerText
42
+ // Normalize line terminations to match native JS format
43
+ === void 0 ? void 0 : _innerText
44
+ // Normalize line terminations to match native JS format
45
+ .replace(_utils.NEW_LINE_REGEX_GLOBAL, '\n')
46
+ // Reduce two or more consecutive new line characters to a single one
47
+ // This is needed primarily because of how syntax highlighting
48
+ // generated DOM elements affect `innerText` output.
49
+ .replace(/\n{2,}/g, '\n')) || '';
39
50
  }, [_innerText]);
40
51
  var textToCopy = isVirtualized ? "".concat(children) : innerText; // Virtualized code blocks do not have inner text
41
52
 
@@ -51,7 +62,8 @@ var useCopy = function useCopy(_ref) {
51
62
  onClick: copy,
52
63
  iconType: "copyClipboard",
53
64
  color: "text",
54
- "aria-label": copyAriaLabel
65
+ "aria-label": copyAriaLabel,
66
+ "data-test-subj": "euiCodeBlockCopy"
55
67
  });
56
68
  })) : null;
57
69
  }, [showCopyButton, textToCopy, copyAriaLabel]);
@@ -47,7 +47,7 @@ var euiCodeBlockLineStyles = function euiCodeBlockLineStyles(euiThemeContext) {
47
47
  },
48
48
  lineNumber: {
49
49
  euiCodeBlock__lineNumberWrapper: /*#__PURE__*/(0, _css.css)("position:relative;flex-grow:0;flex-shrink:0;user-select:none;padding-inline-end:", euiTheme.size.m, ";box-sizing:content-box;;label:euiCodeBlock__lineNumberWrapper;"),
50
- euiCodeBlock__lineNumber: /*#__PURE__*/(0, _css.css)("color:", euiTheme.colors.subduedText, ";text-align:end;display:block;;label:euiCodeBlock__lineNumber;")
50
+ euiCodeBlock__lineNumber: /*#__PURE__*/(0, _css.css)("color:", euiTheme.colors.subduedText, ";text-align:end;display:block;&::before{content:attr(data-line-number);};label:euiCodeBlock__lineNumber;")
51
51
  }
52
52
  };
53
53
  };
@@ -5,7 +5,7 @@ var _typeof = require("@babel/runtime/helpers/typeof");
5
5
  Object.defineProperty(exports, "__esModule", {
6
6
  value: true
7
7
  });
8
- exports.parseLineRanges = exports.nodeToHtml = exports.isAstElement = exports.highlightByLine = exports.getHtmlContent = exports.checkSupportedLanguage = exports.SUPPORTED_LANGUAGES = exports.DEFAULT_LANGUAGE = void 0;
8
+ exports.parseLineRanges = exports.nodeToHtml = exports.isAstElement = exports.highlightByLine = exports.getHtmlContent = exports.checkSupportedLanguage = exports.SUPPORTED_LANGUAGES = exports.NEW_LINE_REGEX_GLOBAL = exports.NEW_LINE_REGEX = exports.DEFAULT_LANGUAGE = void 0;
9
9
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
10
10
  var _react = _interopRequireWildcard(require("react"));
11
11
  var _refractor = require("refractor");
@@ -28,7 +28,25 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
28
28
  var SUPPORTED_LANGUAGES = (0, _refractor.listLanguages)();
29
29
  exports.SUPPORTED_LANGUAGES = SUPPORTED_LANGUAGES;
30
30
  var DEFAULT_LANGUAGE = 'text';
31
+
32
+ /**
33
+ * Platform-agnostic new line regex that safely matches all standard
34
+ * line termination conventions:
35
+ * - LF: Unix-based platforms and JS-native sources like text areas
36
+ * - CRLF: Windows
37
+ * - CR: Mac Classic; to support files saved a long time ago
38
+ */
31
39
  exports.DEFAULT_LANGUAGE = DEFAULT_LANGUAGE;
40
+ var NEW_LINE_REGEX = /\r\n|\r|\n/;
41
+
42
+ /**
43
+ * Platform-agnostic global new line regex that safely matches all standard
44
+ * line termination conventions.
45
+ * See [NEW_LINE_REGEX]{@link NEW_LINE_REGEX} for more details.
46
+ */
47
+ exports.NEW_LINE_REGEX = NEW_LINE_REGEX;
48
+ var NEW_LINE_REGEX_GLOBAL = new RegExp(NEW_LINE_REGEX, 'g');
49
+ exports.NEW_LINE_REGEX_GLOBAL = NEW_LINE_REGEX_GLOBAL;
32
50
  var checkSupportedLanguage = function checkSupportedLanguage(language) {
33
51
  return SUPPORTED_LANGUAGES.includes(language) ? language : DEFAULT_LANGUAGE;
34
52
  };
@@ -57,14 +75,12 @@ var nodeToHtml = function nodeToHtml(node, idx, nodes) {
57
75
  }), children && children.map(function (el, i) {
58
76
  return (
59
77
  // @ts-ignore - using a custom type here to handle JSX annotations
60
- el.type === 'annotation' ?
61
- // @ts-ignore - custom keys are passed by annotationElement below
62
- (0, _react2.jsx)(_code_block_annotations.EuiCodeBlockAnnotation, {
78
+ el.type === 'annotation' ? (0, _react2.jsx)(_code_block_annotations.EuiCodeBlockAnnotation, {
79
+ className: "euiCodeBlock__lineAnnotation",
63
80
  lineNumber: el.lineNumber,
64
81
  children: el.annotation,
65
82
  key: i
66
- }) // prettier-ignore
67
- : nodeToHtml(el, i, nodes, depth + 1)
83
+ }) : nodeToHtml(el, i, nodes, depth + 1)
68
84
  );
69
85
  }));
70
86
  }
@@ -102,12 +118,12 @@ var addLineData = function addLineData(nodes, data) {
102
118
  return nodes.reduce(function (result, node) {
103
119
  var lineStart = data.lineNumber;
104
120
  if (node.type === 'text') {
105
- if (!node.value.match(/\r\n?|\n/)) {
121
+ if (!node.value.match(NEW_LINE_REGEX)) {
106
122
  node.lineStart = lineStart;
107
123
  node.lineEnd = lineStart;
108
124
  result.push(node);
109
125
  } else {
110
- var lines = node.value.split(/\r\n?|\n/);
126
+ var lines = node.value.split(NEW_LINE_REGEX);
111
127
  lines.forEach(function (line, i) {
112
128
  var num = i === 0 ? data.lineNumber : ++data.lineNumber;
113
129
  result.push({
@@ -181,11 +197,12 @@ function wrapLines(nodes, options, euiTheme) {
181
197
  var lineNumberWrapperElement = {
182
198
  type: 'element',
183
199
  tagName: 'span',
184
- properties: (_properties = {
200
+ properties: {
185
201
  style: {
186
202
  inlineSize: width
187
- }
188
- }, (0, _defineProperty2.default)(_properties, 'data-line-number', lineNumber), (0, _defineProperty2.default)(_properties, "className", ['euiCodeBlock__lineNumber', lineNumberWrapperStyles]), _properties),
203
+ },
204
+ className: ['euiCodeBlock__lineNumberWrapper', lineNumberWrapperStyles]
205
+ },
189
206
  children: []
190
207
  };
191
208
 
@@ -194,13 +211,10 @@ function wrapLines(nodes, options, euiTheme) {
194
211
  var lineNumberElement = {
195
212
  type: 'element',
196
213
  tagName: 'span',
197
- properties: (0, _defineProperty2.default)({
198
- className: [lineNumberStyles]
199
- }, 'aria-hidden', true),
200
- children: [{
201
- type: 'text',
202
- value: String(lineNumber)
203
- }]
214
+ properties: (_properties = {
215
+ className: ['euiCodeBlock__lineNumber', lineNumberStyles]
216
+ }, (0, _defineProperty2.default)(_properties, 'data-line-number', lineNumber), (0, _defineProperty2.default)(_properties, 'aria-hidden', true), _properties),
217
+ children: []
204
218
  };
205
219
  lineNumberWrapperElement.children.push(lineNumberElement);
206
220
 
@@ -50,6 +50,10 @@ var EuiRangeTrack = function EuiRangeTrack(_ref) {
50
50
  step: step
51
51
  });
52
52
  }, [value, min, max, step]);
53
+ var _useState = (0, _react.useState)(0),
54
+ _useState2 = (0, _slicedToArray2.default)(_useState, 2),
55
+ trackWidth = _useState2[0],
56
+ setTrackWidth = _useState2[1];
53
57
  var tickSequence = (0, _react.useMemo)(function () {
54
58
  if (showTicks !== true) return;
55
59
  var sequence;
@@ -84,18 +88,14 @@ var EuiRangeTrack = function EuiRangeTrack(_ref) {
84
88
  }
85
89
 
86
90
  // Error out if there are too many ticks to render
87
- if (sequence.length > 20) {
88
- throw new Error("The number of ticks to render is too high (".concat(sequence.length, "), reduce the interval."));
91
+ if (trackWidth && sequence.length) {
92
+ validateTickRenderCount(trackWidth, sequence.length);
89
93
  }
90
94
  return sequence;
91
- }, [showTicks, ticks, min, max, tickInterval, step]);
95
+ }, [showTicks, ticks, min, max, tickInterval, step, trackWidth]);
92
96
  var euiTheme = (0, _services.useEuiTheme)();
93
97
  var styles = (0, _range_track.euiRangeTrackStyles)(euiTheme);
94
98
  var cssStyles = [styles.euiRangeTrack, disabled && styles.disabled, levels && !!levels.length && styles.hasLevels, showTicks && (tickSequence || ticks) && styles.hasTicks];
95
- var _useState = (0, _react.useState)(0),
96
- _useState2 = (0, _slicedToArray2.default)(_useState, 2),
97
- trackWidth = _useState2[0],
98
- setTrackWidth = _useState2[1];
99
99
  var classes = (0, _classnames.default)('euiRangeTrack', className);
100
100
  return (0, _react2.jsx)("div", (0, _extends2.default)({
101
101
  className: classes,
@@ -142,4 +142,18 @@ var validateValueIsInStep = function validateValueIsInStep(value, _ref2) {
142
142
  }
143
143
  // Return the value if nothing fails
144
144
  return value;
145
+ };
146
+ var validateTickRenderCount = function validateTickRenderCount(trackWidth, tickCount) {
147
+ var tickWidth = trackWidth / tickCount;
148
+
149
+ // These widths are guesstimations - it's possible we should use actual label content/widths instead
150
+ var COMFORTABLE_TICK_WIDTH = 20; // Set a warning threshold before throwing
151
+ var MIN_TICK_WIDTH = 5; // If ticks are smaller than this, something's gone seriously wrong and we should throw
152
+
153
+ var message = "The number of ticks to render (".concat(tickCount, ") is too high for the range width. Ensure all ticks are visible on the page at multiple screen widths, or use EUI's breakpoint hook utilities to reduce the tick interval responsively.");
154
+ if (tickWidth <= MIN_TICK_WIDTH) {
155
+ throw new Error(message);
156
+ } else if (tickWidth < COMFORTABLE_TICK_WIDTH) {
157
+ console.warn(message);
158
+ }
145
159
  };
@@ -0,0 +1,42 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+ var _typeof = require("@babel/runtime/helpers/typeof");
5
+ Object.defineProperty(exports, "__esModule", {
6
+ value: true
7
+ });
8
+ exports.icon = void 0;
9
+ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
10
+ var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
11
+ var React = _interopRequireWildcard(require("react"));
12
+ var _react2 = require("@emotion/react");
13
+ var _excluded = ["title", "titleId"];
14
+ /*
15
+ * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
16
+ * or more contributor license agreements. Licensed under the Elastic License
17
+ * 2.0 and the Server Side Public License, v 1; you may not use this file except
18
+ * in compliance with, at your election, the Elastic License 2.0 or the Server
19
+ * Side Public License, v 1.
20
+ */
21
+ // THIS IS A GENERATED FILE. DO NOT MODIFY MANUALLY. @see scripts/compile-icons.js
22
+ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
23
+ 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; }
24
+ var EuiIconTimelineWithArrow = function EuiIconTimelineWithArrow(_ref) {
25
+ var title = _ref.title,
26
+ titleId = _ref.titleId,
27
+ props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
28
+ return (0, _react2.jsx)("svg", (0, _extends2.default)({
29
+ width: 16,
30
+ height: 16,
31
+ viewBox: "0 0 16 16",
32
+ xmlns: "http://www.w3.org/2000/svg",
33
+ "aria-labelledby": titleId
34
+ }, props), title ? (0, _react2.jsx)("title", {
35
+ id: titleId
36
+ }, title) : null, (0, _react2.jsx)("path", {
37
+ fillRule: "evenodd",
38
+ d: "M7.854 4.854A.5.5 0 017 4.5V4H6a1 1 0 01-1-1V1a1 1 0 011-1h3a1 1 0 011 1v2a1 1 0 01-1 1H8v.5a.5.5 0 01-.146.354zM6 3V1h3v2H6zM2.146 9.146A.5.5 0 002 9.5v.5H1a1 1 0 00-1 1v2a1 1 0 001 1h3a1 1 0 001-1v-2a1 1 0 00-1-1H3v-.5a.5.5 0 00-.854-.354zM4 13v-2H1v2h3zM11.5 15a4.5 4.5 0 100-9 4.5 4.5 0 000 9zm.354-6.854l2 2a.5.5 0 010 .708l-2 2a.5.5 0 01-.707-.708L12.293 11H9.5a.5.5 0 010-1h2.793l-1.146-1.146a.5.5 0 11.707-.708zM8.337 6H3.915a1.5 1.5 0 00-2.83 0H.5a.5.5 0 000 1h.585a1.5 1.5 0 002.83 0h3.342c.314-.38.677-.716 1.08-1zM2 6.5a.5.5 0 111 0 .5.5 0 01-1 0z"
39
+ }));
40
+ };
41
+ var icon = EuiIconTimelineWithArrow;
42
+ exports.icon = icon;
@@ -18,7 +18,7 @@ var _react2 = require("@emotion/react");
18
18
 
19
19
  describe('EuiIcons', function () {
20
20
  describe('Automated accessibility check for glyph icons', function () {
21
- var GlyphIcons = ['accessibility', 'aggregate', 'analyzeEvent', 'annotation', 'apmTrace', 'apps', 'arrowDown', 'arrowLeft', 'arrowRight', 'arrowUp', 'arrowStart', 'arrowEnd', 'article', 'asterisk', 'beaker', 'bell', 'bellSlash', 'beta', 'bolt', 'boxesHorizontal', 'boxesVertical', 'branch', 'branchUser', 'broom', 'brush', 'bug', 'bullseye', 'calendar', 'check', 'checkInCircleFilled', 'cheer', 'clock', 'cloudDrizzle', 'cloudStormy', 'cloudSunny', 'cluster', 'color', 'compute', 'console', 'container', 'continuityAbove', 'continuityAboveBelow', 'continuityBelow', 'continuityWithin', 'controlsHorizontal', 'controlsVertical', 'copy', 'copyClipboard', 'cross', 'crosshairs', 'currency', 'cut', 'database', 'desktop', 'discuss', 'document', 'documents', 'documentEdit', 'documentation', 'dot', 'dotInCircle', 'doubleArrowLeft', 'doubleArrowRight', 'download', 'email', 'empty', 'eql', 'eraser', 'exit', 'expand', 'expandMini', 'exportAction', 'eye', 'eyeClosed', 'faceHappy', 'faceNeutral', 'faceSad', 'filter', 'filterExclude', 'filterIgnore', 'filterInclude', 'filterInCircle', 'flag', 'fold', 'folderCheck', 'folderClosed', 'folderExclamation', 'folderOpen', 'frameNext', 'framePrevious', 'fullScreen', 'fullScreenExit', 'function', 'gear', 'glasses', 'globe', 'grab', 'grabHorizontal', 'grid', 'heart', 'heatmap', 'help', 'home', 'iInCircle', 'image', 'importAction', 'indexClose', 'indexEdit', 'indexFlush', 'indexMapping', 'indexOpen', 'indexRuntime', 'indexSettings', 'indexTemporary', 'infinity', 'inputOutput', 'inspect', 'invert', 'ip', 'keyboard', 'kqlField', 'kqlFunction', 'kqlOperand', 'kqlSelector', 'kqlValue', 'kubernetesNode', 'kubernetesPod', 'launch', 'layers', 'lettering', 'lineDashed', 'lineDotted', 'lineSolid', 'link', 'list', 'listAdd', 'lock', 'lockOpen', 'logstashFilter', 'logstashIf', 'logstashInput', 'logstashOutput', 'logstashQueue', 'magnifyWithExclamation', 'magnifyWithMinus', 'magnifyWithPlus', 'magnet', 'mapMarker', 'memory', 'merge', 'menu', 'menuDown', 'menuLeft', 'menuRight', 'menuUp', 'minimize', 'minus', 'minusInCircle', 'minusInCircleFilled', 'mobile', 'moon', 'namespace', 'nested', 'node', 'number', 'offline', 'online', 'package', 'pageSelect', 'pagesSelect', 'paperClip', 'partial', 'pause', 'payment', 'pencil', 'percent', 'pin', 'pinFilled', 'play', 'playFilled', 'plus', 'plusInCircle', 'plusInCircleFilled', 'popout', 'push', 'questionInCircle', 'quote', 'refresh', 'reporter', 'returnKey', 'save', 'scale', 'search', 'securitySignal', 'securitySignalDetected', 'securitySignalResolved', 'sessionViewer', 'shard', 'share', 'snowflake', 'sortable', 'sortAscending', 'sortDescending', 'sortDown', 'sortLeft', 'sortRight', 'sortUp', 'spaces', 'starEmpty', 'starEmptySpace', 'starFilled', 'starFilledSpace', 'starMinusEmpty', 'starMinusFilled', 'starPlusEmpty', 'starPlusFilled', 'stats', 'stop', 'stopFilled', 'stopSlash', 'storage', 'string', 'submodule', 'sun', 'symlink', 'tableOfContents', 'tableDensityExpanded', 'tableDensityCompact', 'tableDensityNormal', 'tag', 'tear', 'temperature', 'timeline', 'timeRefresh', 'timeslider', 'training', 'trash', 'unfold', 'unlink', 'user', 'userAvatar', 'users', 'vector', 'videoPlayer', 'visArea', 'visAreaStacked', 'visBarHorizontal', 'visBarHorizontalStacked', 'visBarVertical', 'visBarVerticalStacked', 'visGauge', 'visGoal', 'visLine', 'visMapCoordinate', 'visMapRegion', 'visMetric', 'visPie', 'visTable', 'visTagCloud', 'visText', 'visTimelion', 'visVega', 'visVisualBuilder', 'warning', 'wordWrap', 'wordWrapDisabled', 'wrench'];
21
+ var GlyphIcons = ['accessibility', 'aggregate', 'analyzeEvent', 'annotation', 'apmTrace', 'apps', 'arrowDown', 'arrowLeft', 'arrowRight', 'arrowUp', 'arrowStart', 'arrowEnd', 'article', 'asterisk', 'beaker', 'bell', 'bellSlash', 'beta', 'bolt', 'boxesHorizontal', 'boxesVertical', 'branch', 'branchUser', 'broom', 'brush', 'bug', 'bullseye', 'calendar', 'check', 'checkInCircleFilled', 'cheer', 'clock', 'cloudDrizzle', 'cloudStormy', 'cloudSunny', 'cluster', 'color', 'compute', 'console', 'container', 'continuityAbove', 'continuityAboveBelow', 'continuityBelow', 'continuityWithin', 'controlsHorizontal', 'controlsVertical', 'copy', 'copyClipboard', 'cross', 'crosshairs', 'currency', 'cut', 'database', 'desktop', 'discuss', 'document', 'documents', 'documentEdit', 'documentation', 'dot', 'dotInCircle', 'doubleArrowLeft', 'doubleArrowRight', 'download', 'email', 'empty', 'eql', 'eraser', 'exit', 'expand', 'expandMini', 'exportAction', 'eye', 'eyeClosed', 'faceHappy', 'faceNeutral', 'faceSad', 'filter', 'filterExclude', 'filterIgnore', 'filterInclude', 'filterInCircle', 'flag', 'fold', 'folderCheck', 'folderClosed', 'folderExclamation', 'folderOpen', 'frameNext', 'framePrevious', 'fullScreen', 'fullScreenExit', 'function', 'gear', 'glasses', 'globe', 'grab', 'grabHorizontal', 'grid', 'heart', 'heatmap', 'help', 'home', 'iInCircle', 'image', 'importAction', 'indexClose', 'indexEdit', 'indexFlush', 'indexMapping', 'indexOpen', 'indexRuntime', 'indexSettings', 'indexTemporary', 'infinity', 'inputOutput', 'inspect', 'invert', 'ip', 'keyboard', 'kqlField', 'kqlFunction', 'kqlOperand', 'kqlSelector', 'kqlValue', 'kubernetesNode', 'kubernetesPod', 'launch', 'layers', 'lettering', 'lineDashed', 'lineDotted', 'lineSolid', 'link', 'list', 'listAdd', 'lock', 'lockOpen', 'logstashFilter', 'logstashIf', 'logstashInput', 'logstashOutput', 'logstashQueue', 'magnifyWithExclamation', 'magnifyWithMinus', 'magnifyWithPlus', 'magnet', 'mapMarker', 'memory', 'merge', 'menu', 'menuDown', 'menuLeft', 'menuRight', 'menuUp', 'minimize', 'minus', 'minusInCircle', 'minusInCircleFilled', 'mobile', 'moon', 'namespace', 'nested', 'node', 'number', 'offline', 'online', 'package', 'pageSelect', 'pagesSelect', 'paperClip', 'partial', 'pause', 'payment', 'pencil', 'percent', 'pin', 'pinFilled', 'play', 'playFilled', 'plus', 'plusInCircle', 'plusInCircleFilled', 'popout', 'push', 'questionInCircle', 'quote', 'refresh', 'reporter', 'returnKey', 'save', 'scale', 'search', 'securitySignal', 'securitySignalDetected', 'securitySignalResolved', 'sessionViewer', 'shard', 'share', 'snowflake', 'sortable', 'sortAscending', 'sortDescending', 'sortDown', 'sortLeft', 'sortRight', 'sortUp', 'spaces', 'starEmpty', 'starEmptySpace', 'starFilled', 'starFilledSpace', 'starMinusEmpty', 'starMinusFilled', 'starPlusEmpty', 'starPlusFilled', 'stats', 'stop', 'stopFilled', 'stopSlash', 'storage', 'string', 'submodule', 'sun', 'symlink', 'tableOfContents', 'tableDensityExpanded', 'tableDensityCompact', 'tableDensityNormal', 'tag', 'tear', 'temperature', 'timeline', 'timelineWithArrow', 'timeRefresh', 'timeslider', 'training', 'trash', 'unfold', 'unlink', 'user', 'userAvatar', 'users', 'vector', 'videoPlayer', 'visArea', 'visAreaStacked', 'visBarHorizontal', 'visBarHorizontalStacked', 'visBarVertical', 'visBarVerticalStacked', 'visGauge', 'visGoal', 'visLine', 'visMapCoordinate', 'visMapRegion', 'visMetric', 'visPie', 'visTable', 'visTagCloud', 'visText', 'visTimelion', 'visVega', 'visVisualBuilder', 'warning', 'wordWrap', 'wordWrapDisabled', 'wrench'];
22
22
  var GlyphGrid = function GlyphGrid() {
23
23
  return (0, _react2.jsx)("div", null, GlyphIcons.map(function (glyph) {
24
24
  return (0, _react2.jsx)(_icon.EuiIcon, {
@@ -387,6 +387,7 @@ var typeToPathMap = {
387
387
  tear: 'tear',
388
388
  temperature: 'temperature',
389
389
  timeline: 'timeline',
390
+ timelineWithArrow: 'timelineWithArrow',
390
391
  timelionApp: 'app_timelion',
391
392
  timeRefresh: 'timeRefresh',
392
393
  timeslider: 'timeslider',
@@ -0,0 +1,6 @@
1
+ <svg width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg">
2
+ <path fill-rule="evenodd" d="M7.85361 4.85355C7.75985 4.94732 7.63267 5 7.50006 5C7.36745 5 7.24028 4.94732 7.14651 4.85355C7.05274 4.75979 7.00006 4.63261 7.00006 4.5V4H6.00006C5.73484 4 5.48049 3.89464 5.29295 3.70711C5.10542 3.51957 5.00006 3.26522 5.00006 3V1C5.00006 0.734783 5.10542 0.480429 5.29295 0.292893C5.48049 0.105357 5.73484 0 6.00006 0H9.00006C9.26526 0 9.51966 0.105357 9.70716 0.292893C9.89466 0.48043 10.0001 0.734784 10.0001 1V3C10.0001 3.26522 9.89466 3.51957 9.70716 3.70711C9.51966 3.89464 9.26526 4 9.00006 4H8.00006V4.5C8.00006 4.63261 7.94738 4.75979 7.85361 4.85355ZM6.00006 3V1H9.00006V3H6.00006Z"/>
3
+ <path fill-rule="evenodd" d="M2.14645 9.14645C2.05268 9.24022 2 9.36739 2 9.5V10H1C0.73478 10 0.48043 10.1054 0.29289 10.2929C0.10536 10.4804 0 10.7348 0 11V13C0 13.2652 0.10536 13.5196 0.29289 13.7071C0.48043 13.8946 0.73478 14 1 14H4C4.26522 14 4.51957 13.8946 4.70711 13.7071C4.89464 13.5196 5 13.2652 5 13V11C5 10.7348 4.89464 10.4804 4.70711 10.2929C4.51957 10.1054 4.26522 10 4 10H3V9.5C3 9.36739 2.94732 9.24022 2.85355 9.14645C2.75978 9.05268 2.63261 9 2.5 9C2.36739 9 2.24021 9.05268 2.14645 9.14645ZM4 13V11H1V13H4Z"/>
4
+ <path fill-rule="evenodd" d="M11.5001 15C13.9853 15 16.0001 12.9853 16.0001 10.5C16.0001 8.01472 13.9853 6 11.5001 6C9.01478 6 7.00006 8.01472 7.00006 10.5C7.00006 12.9853 9.01478 15 11.5001 15ZM11.8536 8.14645L13.8536 10.1464C14.0489 10.3417 14.0489 10.6583 13.8536 10.8536L11.8536 12.8536C11.6584 13.0488 11.3418 13.0488 11.1465 12.8536C10.9512 12.6583 10.9512 12.3417 11.1465 12.1464L12.293 11H9.50006C9.22392 11 9.00006 10.7761 9.00006 10.5C9.00006 10.2239 9.22392 10 9.50006 10H12.293L11.1465 8.85355C10.9512 8.65829 10.9512 8.34171 11.1465 8.14645C11.3418 7.95118 11.6584 7.95118 11.8536 8.14645Z"/>
5
+ <path fill-rule="evenodd" d="M8.33698 6H3.91471C3.70879 5.4174 3.15317 5 2.50006 5C1.84695 5 1.29133 5.4174 1.08541 6H0.500061C0.223919 6 6.10352e-05 6.22386 6.10352e-05 6.5C6.10352e-05 6.77614 0.223919 7 0.500061 7H1.08541C1.29133 7.5826 1.84695 8 2.50006 8C3.15317 8 3.70879 7.5826 3.91471 7H7.25722C7.57058 6.62057 7.93385 6.28389 8.33698 6ZM2.00006 6.5C2.00006 6.22386 2.22392 6 2.50006 6C2.7762 6 3.00006 6.22386 3.00006 6.5C3.00006 6.77614 2.7762 7 2.50006 7C2.22392 7 2.00006 6.77614 2.00006 6.5Z"/>
6
+ </svg>
@@ -17,5 +17,6 @@ var EuiThemeBreakpoints = ['xs', 's', 'm', 'l', 'xl'];
17
17
  // This type cannot be a string enum / must be a generic string
18
18
  // in case consumers add custom breakpoint sizes, such as xxl or xxs
19
19
 
20
- // Set the minimum window width at which to start to the breakpoint
20
+ // Explicitly list out each key so we can document default values
21
+ // via JSDoc (which is available to devs in IDE via intellisense)
21
22
  exports.EuiThemeBreakpoints = EuiThemeBreakpoints;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@elastic/eui",
3
3
  "description": "Elastic UI Component Library",
4
- "version": "81.2.0",
4
+ "version": "82.0.0",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "main": "lib",
7
7
  "module": "es",
@@ -227,22 +227,20 @@
227
227
  }
228
228
 
229
229
  // Animate expanded row must be on the contents div inside
230
-
230
+ // This adds a quick pop in animation, but does not attempt to animate to height auto
231
+ // - down that road dragons lie. @see https://github.com/elastic/eui/issues/6770
231
232
  .euiTableRow-isExpandedRow .euiTableCellContent {
232
- overflow: hidden;
233
- animation: $euiAnimSpeedNormal $euiAnimSlightResistance 1 normal forwards growExpandedRow;
233
+ animation: $euiAnimSpeedFast $euiAnimSlightResistance 1 normal none growExpandedRow;
234
234
  }
235
235
 
236
236
  @keyframes growExpandedRow {
237
237
  0% {
238
- max-height: 0;
239
- }
240
-
241
- 99% {
242
- max-height: 100vh;
238
+ opacity: 0;
239
+ transform: translateY(-$euiSizeM);
243
240
  }
244
241
 
245
242
  100% {
246
- max-height: unset;
243
+ opacity: 1;
244
+ transform: translateY(0);
247
245
  }
248
246
  }
@@ -135,7 +135,7 @@ EuiAvatar.propTypes = {
135
135
  /**
136
136
  * Any EUI glyph, logo or custom icon to display instead of initials
137
137
  */
138
- iconType: _propTypes.default.oneOfType([_propTypes.default.oneOf(["accessibility", "addDataApp", "advancedSettingsApp", "agentApp", "aggregate", "analyzeEvent", "annotation", "apmApp", "apmTrace", "appSearchApp", "apps", "arrowDown", "arrowLeft", "arrowRight", "arrowUp", "arrowStart", "arrowEnd", "article", "asterisk", "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", "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", "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", "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", "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.default.string.isRequired, _propTypes.default.elementType.isRequired]),
138
+ iconType: _propTypes.default.oneOfType([_propTypes.default.oneOf(["accessibility", "addDataApp", "advancedSettingsApp", "agentApp", "aggregate", "analyzeEvent", "annotation", "apmApp", "apmTrace", "appSearchApp", "apps", "arrowDown", "arrowLeft", "arrowRight", "arrowUp", "arrowStart", "arrowEnd", "article", "asterisk", "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", "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", "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", "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", "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.default.string.isRequired, _propTypes.default.elementType.isRequired]),
139
139
  /**
140
140
  * Manually change icon size
141
141
  */