@elastic/eui 91.3.0 → 92.0.0-backport.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 (190) hide show
  1. package/dist/eui_charts_theme.js.map +1 -1
  2. package/dist/eui_theme_dark.css +0 -513
  3. package/dist/eui_theme_dark.min.css +1 -1
  4. package/dist/eui_theme_light.css +0 -513
  5. package/dist/eui_theme_light.min.css +1 -1
  6. package/es/components/basic_table/basic_table.js +25 -22
  7. package/es/components/basic_table/collapsed_item_actions.js +14 -15
  8. package/es/components/basic_table/expanded_item_actions.js +4 -4
  9. package/es/components/collapsible_nav_beta/collapsible_nav_body_footer.js +7 -3
  10. package/es/components/collapsible_nav_beta/collapsible_nav_body_footer.styles.js +4 -4
  11. package/es/components/datagrid/body/header/data_grid_header_cell.js +3 -3
  12. package/es/components/drag_and_drop/drag_and_drop.a11y.js +1 -1
  13. package/es/components/filter_group/filter_button.js +20 -13
  14. package/es/components/filter_group/filter_button.styles.js +11 -20
  15. package/es/components/flyout/flyout.js +4 -4
  16. package/es/components/flyout/flyout_resizable.js +127 -0
  17. package/es/components/flyout/flyout_resizable.styles.js +27 -0
  18. package/es/components/flyout/index.js +2 -1
  19. package/es/components/form/range/dual_range.js +15 -66
  20. package/es/components/form/range/range.js +6 -5
  21. package/es/components/form/range/range_slider.js +28 -22
  22. package/es/components/form/text_area/text_area.js +39 -3
  23. package/es/components/index.js +0 -2
  24. package/es/components/markdown_editor/markdown_editor.js +12 -13
  25. package/es/components/page_template/bottom_bar/page_bottom_bar.js +1 -1
  26. package/es/components/selectable/selectable_list/selectable_list_item.js +1 -1
  27. package/es/components/selectable/selectable_templates/selectable_template_sitewide.js +5 -0
  28. package/es/components/steps/step_number.styles.js +6 -7
  29. package/es/components/tree_view/tree_view.js +31 -26
  30. package/es/utils/prop_types/is.js +2 -2
  31. package/eui.d.ts +831 -1145
  32. package/i18ntokens.json +121 -373
  33. package/lib/components/basic_table/basic_table.js +25 -22
  34. package/lib/components/basic_table/collapsed_item_actions.js +14 -15
  35. package/lib/components/basic_table/expanded_item_actions.js +4 -4
  36. package/lib/components/collapsible_nav_beta/collapsible_nav_body_footer.js +7 -3
  37. package/lib/components/collapsible_nav_beta/collapsible_nav_body_footer.styles.js +4 -4
  38. package/lib/components/datagrid/body/header/data_grid_header_cell.js +3 -3
  39. package/lib/components/drag_and_drop/drag_and_drop.a11y.js +1 -1
  40. package/lib/components/filter_group/filter_button.js +20 -13
  41. package/lib/components/filter_group/filter_button.styles.js +11 -20
  42. package/lib/components/flyout/flyout.js +4 -4
  43. package/lib/components/flyout/flyout_resizable.js +136 -0
  44. package/lib/components/flyout/flyout_resizable.styles.js +32 -0
  45. package/lib/components/flyout/index.js +8 -1
  46. package/lib/components/form/range/dual_range.js +15 -66
  47. package/lib/components/form/range/range.js +6 -5
  48. package/lib/components/form/range/range_slider.js +27 -21
  49. package/lib/components/form/text_area/text_area.js +42 -3
  50. package/lib/components/index.js +0 -22
  51. package/lib/components/markdown_editor/markdown_editor.js +12 -13
  52. package/lib/components/page_template/bottom_bar/page_bottom_bar.js +1 -1
  53. package/lib/components/pagination/pagination_button.js +79 -2
  54. package/lib/components/selectable/selectable_list/selectable_list_item.js +1 -1
  55. package/lib/components/steps/step_number.styles.js +6 -7
  56. package/lib/components/tree_view/tree_view.js +31 -26
  57. package/lib/utils/prop_types/is.js +2 -2
  58. package/optimize/es/components/basic_table/basic_table.js +25 -22
  59. package/optimize/es/components/basic_table/collapsed_item_actions.js +14 -15
  60. package/optimize/es/components/basic_table/expanded_item_actions.js +4 -4
  61. package/optimize/es/components/collapsible_nav_beta/collapsible_nav_body_footer.js +7 -3
  62. package/optimize/es/components/collapsible_nav_beta/collapsible_nav_body_footer.styles.js +4 -4
  63. package/optimize/es/components/datagrid/body/header/data_grid_header_cell.js +3 -3
  64. package/optimize/es/components/drag_and_drop/drag_and_drop.a11y.js +1 -1
  65. package/optimize/es/components/filter_group/filter_button.js +20 -13
  66. package/optimize/es/components/filter_group/filter_button.styles.js +11 -20
  67. package/optimize/es/components/flyout/flyout.js +4 -4
  68. package/optimize/es/components/flyout/flyout_resizable.js +121 -0
  69. package/optimize/es/components/flyout/flyout_resizable.styles.js +27 -0
  70. package/optimize/es/components/flyout/index.js +2 -1
  71. package/optimize/es/components/form/range/dual_range.js +15 -66
  72. package/optimize/es/components/form/range/range.js +6 -5
  73. package/optimize/es/components/form/range/range_slider.js +26 -21
  74. package/optimize/es/components/form/text_area/text_area.js +29 -3
  75. package/optimize/es/components/index.js +0 -2
  76. package/optimize/es/components/markdown_editor/markdown_editor.js +12 -13
  77. package/optimize/es/components/page_template/bottom_bar/page_bottom_bar.js +1 -1
  78. package/optimize/es/components/selectable/selectable_list/selectable_list_item.js +1 -1
  79. package/optimize/es/components/steps/step_number.styles.js +6 -7
  80. package/optimize/es/components/tree_view/tree_view.js +31 -26
  81. package/optimize/es/utils/prop_types/is.js +2 -2
  82. package/optimize/lib/components/basic_table/basic_table.js +25 -22
  83. package/optimize/lib/components/basic_table/collapsed_item_actions.js +14 -15
  84. package/optimize/lib/components/basic_table/expanded_item_actions.js +4 -4
  85. package/optimize/lib/components/collapsible_nav_beta/collapsible_nav_body_footer.js +7 -3
  86. package/optimize/lib/components/collapsible_nav_beta/collapsible_nav_body_footer.styles.js +4 -4
  87. package/optimize/lib/components/datagrid/body/header/data_grid_header_cell.js +3 -3
  88. package/optimize/lib/components/drag_and_drop/drag_and_drop.a11y.js +1 -1
  89. package/optimize/lib/components/filter_group/filter_button.js +20 -13
  90. package/optimize/lib/components/filter_group/filter_button.styles.js +11 -20
  91. package/optimize/lib/components/flyout/flyout.js +4 -4
  92. package/optimize/lib/components/flyout/flyout_resizable.js +131 -0
  93. package/optimize/lib/components/flyout/flyout_resizable.styles.js +32 -0
  94. package/optimize/lib/components/flyout/index.js +8 -1
  95. package/optimize/lib/components/form/range/dual_range.js +15 -66
  96. package/optimize/lib/components/form/range/range.js +6 -5
  97. package/optimize/lib/components/form/range/range_slider.js +26 -21
  98. package/optimize/lib/components/form/text_area/text_area.js +32 -3
  99. package/optimize/lib/components/index.js +0 -22
  100. package/optimize/lib/components/markdown_editor/markdown_editor.js +12 -13
  101. package/optimize/lib/components/page_template/bottom_bar/page_bottom_bar.js +1 -1
  102. package/optimize/lib/components/selectable/selectable_list/selectable_list_item.js +1 -1
  103. package/optimize/lib/components/steps/step_number.styles.js +6 -7
  104. package/optimize/lib/components/tree_view/tree_view.js +31 -26
  105. package/optimize/lib/utils/prop_types/is.js +2 -2
  106. package/package.json +3 -5
  107. package/src/components/index.scss +0 -2
  108. package/test-env/components/basic_table/basic_table.js +25 -22
  109. package/test-env/components/basic_table/collapsed_item_actions.js +14 -15
  110. package/test-env/components/basic_table/expanded_item_actions.js +4 -4
  111. package/test-env/components/collapsible_nav_beta/collapsible_nav_body_footer.js +7 -3
  112. package/test-env/components/collapsible_nav_beta/collapsible_nav_body_footer.styles.js +4 -4
  113. package/test-env/components/datagrid/body/header/data_grid_header_cell.js +3 -3
  114. package/test-env/components/drag_and_drop/drag_and_drop.a11y.js +1 -1
  115. package/test-env/components/filter_group/filter_button.js +20 -13
  116. package/test-env/components/filter_group/filter_button.styles.js +11 -20
  117. package/test-env/components/flyout/flyout_resizable.js +131 -0
  118. package/test-env/components/flyout/flyout_resizable.styles.js +32 -0
  119. package/test-env/components/flyout/index.js +8 -1
  120. package/test-env/components/form/range/dual_range.js +15 -66
  121. package/test-env/components/form/range/range.js +6 -5
  122. package/test-env/components/form/range/range_slider.js +27 -21
  123. package/test-env/components/form/text_area/text_area.js +42 -3
  124. package/test-env/components/index.js +0 -22
  125. package/test-env/components/markdown_editor/markdown_editor.js +12 -13
  126. package/test-env/components/page_template/bottom_bar/page_bottom_bar.js +1 -1
  127. package/test-env/components/pagination/pagination_button.js +79 -2
  128. package/test-env/components/selectable/selectable_list/selectable_list_item.js +1 -1
  129. package/test-env/components/steps/step_number.styles.js +6 -7
  130. package/test-env/components/tree_view/tree_view.js +31 -26
  131. package/test-env/utils/prop_types/is.js +2 -2
  132. package/es/components/control_bar/control_bar.a11y.js +0 -133
  133. package/es/components/control_bar/control_bar.js +0 -609
  134. package/es/components/control_bar/index.js +0 -9
  135. package/es/components/notification/index.js +0 -9
  136. package/es/components/notification/notification_event.a11y.js +0 -104
  137. package/es/components/notification/notification_event.js +0 -288
  138. package/es/components/notification/notification_event_messages.js +0 -79
  139. package/es/components/notification/notification_event_meta.js +0 -148
  140. package/es/components/notification/notification_event_read_button.js +0 -86
  141. package/es/components/notification/notification_event_read_icon.js +0 -77
  142. package/lib/components/control_bar/control_bar.a11y.js +0 -134
  143. package/lib/components/control_bar/control_bar.js +0 -441
  144. package/lib/components/control_bar/index.js +0 -12
  145. package/lib/components/notification/index.js +0 -12
  146. package/lib/components/notification/notification_event.a11y.js +0 -105
  147. package/lib/components/notification/notification_event.js +0 -297
  148. package/lib/components/notification/notification_event_messages.js +0 -88
  149. package/lib/components/notification/notification_event_meta.js +0 -157
  150. package/lib/components/notification/notification_event_read_button.js +0 -93
  151. package/lib/components/notification/notification_event_read_icon.js +0 -64
  152. package/optimize/es/components/control_bar/control_bar.a11y.js +0 -128
  153. package/optimize/es/components/control_bar/control_bar.js +0 -308
  154. package/optimize/es/components/control_bar/index.js +0 -9
  155. package/optimize/es/components/notification/index.js +0 -9
  156. package/optimize/es/components/notification/notification_event.a11y.js +0 -99
  157. package/optimize/es/components/notification/notification_event.js +0 -114
  158. package/optimize/es/components/notification/notification_event_messages.js +0 -63
  159. package/optimize/es/components/notification/notification_event_meta.js +0 -106
  160. package/optimize/es/components/notification/notification_event_read_button.js +0 -44
  161. package/optimize/es/components/notification/notification_event_read_icon.js +0 -44
  162. package/optimize/lib/components/control_bar/control_bar.a11y.js +0 -134
  163. package/optimize/lib/components/control_bar/control_bar.js +0 -301
  164. package/optimize/lib/components/control_bar/index.js +0 -12
  165. package/optimize/lib/components/notification/index.js +0 -12
  166. package/optimize/lib/components/notification/notification_event.a11y.js +0 -105
  167. package/optimize/lib/components/notification/notification_event.js +0 -123
  168. package/optimize/lib/components/notification/notification_event_messages.js +0 -74
  169. package/optimize/lib/components/notification/notification_event_meta.js +0 -117
  170. package/optimize/lib/components/notification/notification_event_read_button.js +0 -51
  171. package/optimize/lib/components/notification/notification_event_read_icon.js +0 -51
  172. package/src/components/control_bar/_control_bar.scss +0 -232
  173. package/src/components/control_bar/_index.scss +0 -2
  174. package/src/components/control_bar/_variables.scss +0 -12
  175. package/src/components/notification/_index.scss +0 -5
  176. package/src/components/notification/_notification_event.scss +0 -40
  177. package/src/components/notification/_notification_event_messages.scss +0 -17
  178. package/src/components/notification/_notification_event_meta.scss +0 -44
  179. package/src/components/notification/_notification_event_read_button.scss +0 -5
  180. package/src/components/notification/_notification_event_read_icon.scss +0 -12
  181. package/test-env/components/control_bar/control_bar.a11y.js +0 -134
  182. package/test-env/components/control_bar/control_bar.js +0 -436
  183. package/test-env/components/control_bar/index.js +0 -12
  184. package/test-env/components/notification/index.js +0 -12
  185. package/test-env/components/notification/notification_event.a11y.js +0 -105
  186. package/test-env/components/notification/notification_event.js +0 -296
  187. package/test-env/components/notification/notification_event_messages.js +0 -85
  188. package/test-env/components/notification/notification_event_meta.js +0 -154
  189. package/test-env/components/notification/notification_event_read_button.js +0 -92
  190. package/test-env/components/notification/notification_event_read_icon.js +0 -63
@@ -223,17 +223,6 @@ Object.keys(_context_menu).forEach(function (key) {
223
223
  }
224
224
  });
225
225
  });
226
- var _control_bar = require("./control_bar");
227
- Object.keys(_control_bar).forEach(function (key) {
228
- if (key === "default" || key === "__esModule") return;
229
- if (key in exports && exports[key] === _control_bar[key]) return;
230
- Object.defineProperty(exports, key, {
231
- enumerable: true,
232
- get: function get() {
233
- return _control_bar[key];
234
- }
235
- });
236
- });
237
226
  var _copy = require("./copy");
238
227
  Object.keys(_copy).forEach(function (key) {
239
228
  if (key === "default" || key === "__esModule") return;
@@ -597,17 +586,6 @@ Object.keys(_mutation_observer).forEach(function (key) {
597
586
  }
598
587
  });
599
588
  });
600
- var _notification = require("./notification");
601
- Object.keys(_notification).forEach(function (key) {
602
- if (key === "default" || key === "__esModule") return;
603
- if (key in exports && exports[key] === _notification[key]) return;
604
- Object.defineProperty(exports, key, {
605
- enumerable: true,
606
- get: function get() {
607
- return _notification[key];
608
- }
609
- });
610
- });
611
589
  var _outside_click_detector = require("./outside_click_detector");
612
590
  Object.keys(_outside_click_detector).forEach(function (key) {
613
591
  if (key === "default" || key === "__esModule") return;
@@ -266,20 +266,19 @@ var EuiMarkdownEditor = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref)
266
266
  setEditorToolbarHeight(editorToolbarRef.current.offsetHeight);
267
267
  }, [setEditorToolbarHeight]);
268
268
  (0, _react.useEffect)(function () {
269
- if (isPreviewing && autoExpandPreview && height !== 'full') {
270
- if (previewRef.current.scrollHeight > currentHeight) {
271
- // scrollHeight does not include the border or margin
272
- // so we ask for the computed value for those,
273
- // which is always in pixels because getComputedValue
274
- // returns the resolved values
275
- var elementComputedStyle = window.getComputedStyle(previewRef.current);
276
- var borderWidth = parseFloat(elementComputedStyle.borderTopWidth) + parseFloat(elementComputedStyle.borderBottomWidth);
277
- var marginWidth = parseFloat(elementComputedStyle.marginTop) + parseFloat(elementComputedStyle.marginBottom);
269
+ if (height === 'full' || currentHeight === 'full') return;
270
+ if (isPreviewing && autoExpandPreview && previewRef.current.scrollHeight > currentHeight) {
271
+ // scrollHeight does not include the border or margin
272
+ // so we ask for the computed value for those,
273
+ // which is always in pixels because getComputedValue
274
+ // returns the resolved values
275
+ var elementComputedStyle = window.getComputedStyle(previewRef.current);
276
+ var borderWidth = parseFloat(elementComputedStyle.borderTopWidth) + parseFloat(elementComputedStyle.borderBottomWidth);
277
+ var marginWidth = parseFloat(elementComputedStyle.marginTop) + parseFloat(elementComputedStyle.marginBottom);
278
278
 
279
- // then add an extra pixel for safety and because the scrollHeight value is rounded
280
- var extraHeight = borderWidth + marginWidth + 1;
281
- setCurrentHeight(previewRef.current.scrollHeight + extraHeight);
282
- }
279
+ // then add an extra pixel for safety and because the scrollHeight value is rounded
280
+ var extraHeight = borderWidth + marginWidth + 1;
281
+ setCurrentHeight(previewRef.current.scrollHeight + extraHeight);
283
282
  }
284
283
  }, [currentHeight, isPreviewing, height, autoExpandPreview]);
285
284
  var previewHeight = height === 'full' ? "calc(100% - ".concat(editorFooterHeight, "px)") : currentHeight;
@@ -62,7 +62,7 @@ var _EuiPageBottomBar = function _EuiPageBottomBar(_ref2) {
62
62
  // Hide the overflow in case of larger flex margins than padding
63
63
  ,
64
64
  css: _ref
65
- // Using unknown here because of the possible conflict with overriding props and position `sticky`
65
+ // Using object here because of the possible conflict with overriding props and position `sticky`
66
66
  }, rest), (0, _react.jsx)(_page_section.EuiPageSection, {
67
67
  paddingSize: paddingSize,
68
68
  restrictWidth: restrictWidth
@@ -217,7 +217,7 @@ var EuiSelectableListItem = /*#__PURE__*/function (_Component) {
217
217
  onFocusBadgeNode = (0, _react2.jsx)(_badge.EuiBadge, (0, _extends2.default)({
218
218
  className: "euiSelectableListItem__onFocusBadge"
219
219
  }, defaultOnFocusBadgeProps));
220
- } else if (!!onFocusBadge && onFocusBadge !== false) {
220
+ } else if (typeof onFocusBadge !== 'boolean' && !!onFocusBadge) {
221
221
  var _children = onFocusBadge.children,
222
222
  _className = onFocusBadge.className,
223
223
  restBadgeProps = (0, _objectWithoutProperties2.default)(onFocusBadge, _excluded2);
@@ -6,7 +6,6 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.euiStepNumberStyles = exports.euiStepNumberContentStyles = void 0;
7
7
  var _react = require("@emotion/react");
8
8
  var _global_styling = require("../../global_styling");
9
- var _services = require("../../services");
10
9
  var _step = require("./step.styles");
11
10
  var _mixins = require("../../themes/amsterdam/global_styling/mixins");
12
11
  function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; } /*
@@ -46,12 +45,12 @@ var euiStepNumberStyles = function euiStepNumberStyles(euiThemeContext) {
46
45
  xs: /*#__PURE__*/(0, _react.css)(createStepsNumber(euiStep.numberXSSize, (0, _global_styling.euiFontSizeFromScale)('xs', euiTheme)), ";;label:xs;"),
47
46
  // status
48
47
  incomplete: /*#__PURE__*/(0, _react.css)("background-color:transparent;color:", euiTheme.colors.text, ";border:", euiTheme.border.thick, ";;label:incomplete;"),
49
- disabled: /*#__PURE__*/(0, _react.css)("background-color:", (0, _mixins.euiButtonFillColor)(euiThemeContext, 'disabled').backgroundColor, ";color:", (0, _services.makeHighContrastColor)(euiTheme.colors.disabledText)((0, _mixins.euiButtonFillColor)(euiThemeContext, 'disabled').backgroundColor), ";;label:disabled;"),
48
+ disabled: /*#__PURE__*/(0, _react.css)((0, _mixins.euiButtonFillColor)(euiThemeContext, 'disabled'), ";;label:disabled;"),
50
49
  loading: _ref,
51
- warning: /*#__PURE__*/(0, _react.css)("color:", (0, _mixins.euiButtonFillColor)(euiThemeContext, 'warning').color, ";background-color:", (0, _mixins.euiButtonFillColor)(euiThemeContext, 'warning').backgroundColor, ";", _global_styling.euiCanAnimate, "{animation:", _global_styling.euiAnimScale, " ", euiTheme.animation.fast, " ", euiTheme.animation.bounce, ";};label:warning;"),
52
- danger: /*#__PURE__*/(0, _react.css)("color:", (0, _mixins.euiButtonFillColor)(euiThemeContext, 'danger').color, ";background-color:", (0, _mixins.euiButtonFillColor)(euiThemeContext, 'danger').backgroundColor, ";", _global_styling.euiCanAnimate, "{animation:", _global_styling.euiAnimScale, " ", euiTheme.animation.fast, " ", euiTheme.animation.bounce, ";};label:danger;"),
53
- complete: /*#__PURE__*/(0, _react.css)("color:", (0, _mixins.euiButtonFillColor)(euiThemeContext, 'success').color, ";background-color:", (0, _mixins.euiButtonFillColor)(euiThemeContext, 'success').backgroundColor, ";", _global_styling.euiCanAnimate, "{animation:", _global_styling.euiAnimScale, " ", euiTheme.animation.fast, " ", euiTheme.animation.bounce, ";};label:complete;"),
54
- current: /*#__PURE__*/(0, _react.css)("border:2px solid ", euiTheme.colors.body, ";box-shadow:0 0 0 2px ", euiTheme.colors.primary, ";.euiStepNumber__number{display:inline-block;transform:translateY(-2px);};label:current;")
50
+ warning: /*#__PURE__*/(0, _react.css)((0, _mixins.euiButtonFillColor)(euiThemeContext, 'warning'), " ", _global_styling.euiCanAnimate, "{animation:", _global_styling.euiAnimScale, " ", euiTheme.animation.fast, " ", euiTheme.animation.bounce, ";};label:warning;"),
51
+ danger: /*#__PURE__*/(0, _react.css)((0, _mixins.euiButtonFillColor)(euiThemeContext, 'danger'), " ", _global_styling.euiCanAnimate, "{animation:", _global_styling.euiAnimScale, " ", euiTheme.animation.fast, " ", euiTheme.animation.bounce, ";};label:danger;"),
52
+ complete: /*#__PURE__*/(0, _react.css)((0, _mixins.euiButtonFillColor)(euiThemeContext, 'success'), " ", _global_styling.euiCanAnimate, "{animation:", _global_styling.euiAnimScale, " ", euiTheme.animation.fast, " ", euiTheme.animation.bounce, ";};label:complete;"),
53
+ current: /*#__PURE__*/(0, _react.css)("border:", euiTheme.border.width.thick, " solid ", euiTheme.colors.body, ";box-shadow:0 0 0 ", euiTheme.border.width.thick, " ", euiTheme.colors.primary, ";;label:current;")
55
54
  };
56
55
  };
57
56
  exports.euiStepNumberStyles = euiStepNumberStyles;
@@ -72,7 +71,7 @@ var euiStepNumberContentStyles = function euiStepNumberContentStyles(_ref3) {
72
71
  incomplete: /*#__PURE__*/(0, _react.css)("display:unset;position:relative;inset-block-start:-", euiTheme.border.width.thick, ";;label:incomplete;"),
73
72
  loading: /*#__PURE__*/(0, _react.css)(";label:loading;"),
74
73
  disabled: /*#__PURE__*/(0, _react.css)(";label:disabled;"),
75
- current: /*#__PURE__*/(0, _react.css)(";label:current;")
74
+ current: /*#__PURE__*/(0, _react.css)("display:inline-block;transform:translateY(-", euiTheme.border.width.thick, ");;label:current;")
76
75
  };
77
76
  };
78
77
  exports.euiStepNumberContentStyles = euiStepNumberContentStyles;
@@ -40,7 +40,9 @@ var EuiTreeViewContext = /*#__PURE__*/(0, _react.createContext)('');
40
40
  function hasAriaLabel(x) {
41
41
  return x.hasOwnProperty('aria-label');
42
42
  }
43
- function getTreeId(propId, contextId, idGenerator) {
43
+ function getTreeId(propId) {
44
+ var contextId = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
45
+ var idGenerator = arguments.length > 2 ? arguments[2] : undefined;
44
46
  return propId !== null && propId !== void 0 ? propId : contextId === '' ? idGenerator() : contextId;
45
47
  }
46
48
  var displayToClassNameMap = {
@@ -50,34 +52,17 @@ var displayToClassNameMap = {
50
52
  var EuiTreeView = /*#__PURE__*/function (_Component) {
51
53
  (0, _inherits2.default)(EuiTreeView, _Component);
52
54
  var _super = _createSuper(EuiTreeView);
53
- function EuiTreeView() {
55
+ function EuiTreeView(props,
56
+ // Without the optional ? typing, TS will throw errors on JSX component errors
57
+ // @see https://github.com/facebook/react/issues/13944#issuecomment-1183693239
58
+ context) {
54
59
  var _this;
55
60
  (0, _classCallCheck2.default)(this, EuiTreeView);
56
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
57
- args[_key] = arguments[_key];
58
- }
59
- _this = _super.call.apply(_super, [this].concat(args));
61
+ // TODO: context in constructor has been deprecated.
62
+ // We should likely convert this to a function component
63
+ _this = _super.call(this, props, context);
60
64
  (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "treeIdGenerator", (0, _services.htmlIdGenerator)('euiTreeView'));
61
- (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "isNested", !!_this.context);
62
- (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "state", {
63
- openItems: _this.props.expandByDefault ? _this.props.items.map(function (_ref) {
64
- var id = _ref.id,
65
- children = _ref.children;
66
- return children ? id : null;
67
- }).filter(function (x) {
68
- return x != null;
69
- }) : _this.props.items.map(function (_ref2) {
70
- var id = _ref2.id,
71
- children = _ref2.children,
72
- isExpanded = _ref2.isExpanded;
73
- return children && isExpanded ? id : null;
74
- }).filter(function (x) {
75
- return x != null;
76
- }),
77
- activeItem: '',
78
- treeID: getTreeId(_this.props.id, _this.context, _this.treeIdGenerator),
79
- expandChildNodes: _this.props.expandByDefault || false
80
- });
65
+ (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "isNested", void 0);
81
66
  (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "buttonRef", []);
82
67
  (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "setButtonRef", function (ref, index) {
83
68
  _this.buttonRef[index] = ref;
@@ -172,6 +157,26 @@ var EuiTreeView = /*#__PURE__*/function (_Component) {
172
157
  _this.buttonRef[index].focus();
173
158
  }
174
159
  });
160
+ _this.isNested = !!_this.context;
161
+ _this.state = {
162
+ openItems: _this.props.expandByDefault ? _this.props.items.map(function (_ref) {
163
+ var id = _ref.id,
164
+ children = _ref.children;
165
+ return children ? id : null;
166
+ }).filter(function (x) {
167
+ return x != null;
168
+ }) : _this.props.items.map(function (_ref2) {
169
+ var id = _ref2.id,
170
+ children = _ref2.children,
171
+ isExpanded = _ref2.isExpanded;
172
+ return children && isExpanded ? id : null;
173
+ }).filter(function (x) {
174
+ return x != null;
175
+ }),
176
+ activeItem: '',
177
+ treeID: getTreeId(_this.props.id, context, _this.treeIdGenerator),
178
+ expandChildNodes: _this.props.expandByDefault || false
179
+ };
175
180
  return _this;
176
181
  }
177
182
  (0, _createClass2.default)(EuiTreeView, [{
@@ -18,7 +18,7 @@ var is = function is(expectedValue) {
18
18
  var compName = componentName || 'ANONYMOUS';
19
19
  var value = props[propName];
20
20
  if (value !== expectedValue) {
21
- return new Error("[".concat(propName, "] property in [").concat(compName, "] component is expected to equal [").concat(expectedValue, "] but\n [").concat(value, "] was provided instead."));
21
+ return new Error("[".concat(propName.toString(), "] property in [").concat(compName, "] component is expected to equal [").concat(expectedValue, "] but\n [").concat(value, "] was provided instead."));
22
22
  }
23
23
  return null;
24
24
  };
@@ -26,7 +26,7 @@ var is = function is(expectedValue) {
26
26
  var compName = componentName || 'ANONYMOUS';
27
27
  var value = props[propName];
28
28
  if ((0, _predicate.isNil)(value)) {
29
- return new Error("[".concat(propName, "] property in [").concat(compName, "] component is required but seems to be missing"));
29
+ return new Error("[".concat(propName.toString(), "] property in [").concat(compName, "] component is required but seems to be missing"));
30
30
  }
31
31
  return validator(props, propName, componentName);
32
32
  };
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@elastic/eui",
3
3
  "description": "Elastic UI Component Library",
4
- "version": "91.3.0",
4
+ "version": "92.0.0-backport.0",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "main": "lib",
7
7
  "module": "es",
8
8
  "types": "eui.d.ts",
9
- "docker_image": "20.9.0",
9
+ "docker_image": "20.10.0",
10
10
  "engines": {
11
11
  "node": "16.x || 18.x || >=20.x"
12
12
  },
@@ -16,8 +16,6 @@
16
16
  ],
17
17
  "scripts": {
18
18
  "start": "cross-env BABEL_MODULES=false webpack serve --config=src-docs/webpack.config.js",
19
- "test-docker": "node ./scripts/test-docker.js",
20
- "test-a11y-docker": "node ./scripts/test-a11y-docker.js",
21
19
  "build-docs": "cross-env BABEL_MODULES=false cross-env NODE_ENV=production NODE_OPTIONS=--max-old-space-size=4096 webpack --config=src-docs/webpack.config.js",
22
20
  "build": "yarn extract-i18n-strings && node ./scripts/compile-clean.js && node ./scripts/compile-eui.js && yarn compile-scss",
23
21
  "build-pack": "yarn build && npm pack",
@@ -111,7 +109,7 @@
111
109
  "@cypress/react": "^7.0.3",
112
110
  "@cypress/react18": "^2.0.0",
113
111
  "@cypress/webpack-dev-server": "^1.7.0",
114
- "@elastic/charts": "^59.1.0",
112
+ "@elastic/charts": "^61.2.0",
115
113
  "@elastic/datemath": "^5.0.3",
116
114
  "@emotion/babel-preset-css-prop": "^11.11.0",
117
115
  "@emotion/cache": "^11.11.0",
@@ -2,13 +2,11 @@
2
2
 
3
3
  @import 'color_picker/index';
4
4
  @import 'combo_box/index';
5
- @import 'control_bar/index';
6
5
  @import 'date_picker/index';
7
6
  @import 'datagrid/index';
8
7
  @import 'empty_prompt/index';
9
8
  @import 'form/index';
10
9
  @import 'markdown_editor/index';
11
- @import 'notification/index';
12
10
  @import 'tree_view/index';
13
11
  @import 'side_nav/index';
14
12
  @import 'search_bar/index';
@@ -431,7 +431,7 @@ var EuiBasicTable = /*#__PURE__*/function (_Component) {
431
431
  var sortDirection = _this2.resolveColumnSortDirection(column);
432
432
  items.push({
433
433
  name: column.name,
434
- key: "_data_s_".concat(column.field, "_").concat(index),
434
+ key: "_data_s_".concat(String(column.field), "_").concat(index),
435
435
  onSort: _this2.resolveColumnOnSort(column),
436
436
  isSorted: !!sortDirection,
437
437
  isSortAscending: sortDirection ? _services.SortDirection.isAsc(sortDirection) : undefined
@@ -584,11 +584,11 @@ var EuiBasicTable = /*#__PURE__*/function (_Component) {
584
584
  }
585
585
  }
586
586
  headers.push((0, _react2.jsx)(_table.EuiTableHeaderCell, (0, _extends2.default)({
587
- key: "_data_h_".concat(field, "_").concat(index),
587
+ key: "_data_h_".concat(String(field), "_").concat(index),
588
588
  align: columnAlign,
589
589
  width: width,
590
590
  mobileOptions: mobileOptions,
591
- "data-test-subj": "tableHeaderCell_".concat(field, "_").concat(index),
591
+ "data-test-subj": "tableHeaderCell_".concat(String(field), "_").concat(index),
592
592
  description: description
593
593
  }, sorting), name));
594
594
  });
@@ -625,7 +625,7 @@ var EuiBasicTable = /*#__PURE__*/function (_Component) {
625
625
 
626
626
  if (footer) {
627
627
  footers.push((0, _react2.jsx)(_table.EuiTableFooterCell, {
628
- key: "footer_".concat(field, "_").concat(footers.length - 1),
628
+ key: "footer_".concat(String(field), "_").concat(footers.length - 1),
629
629
  align: align
630
630
  }, footer));
631
631
  hasDefinedFooter = true;
@@ -808,19 +808,22 @@ var EuiBasicTable = /*#__PURE__*/function (_Component) {
808
808
  }, {
809
809
  key: "renderItemActionsCell",
810
810
  value: function renderItemActionsCell(itemId, item, column, columnIndex) {
811
- var _this7 = this;
812
- var actionEnabled = function actionEnabled(action) {
813
- return _this7.state.selection.length === 0 && (!action.enabled || action.enabled(item));
814
- };
811
+ // Disable all actions if any row(s) are selected
812
+ var allDisabled = this.state.selection.length > 0;
815
813
  var actualActions = column.actions.filter(function (action) {
816
814
  return !action.available || action.available(item);
817
815
  });
818
816
  if (actualActions.length > 2) {
819
- // if any of the actions `isPrimary`, add them inline as well, but only the first 2
820
- var primaryActions = actualActions.filter(function (o) {
821
- return o.isPrimary;
822
- });
823
- actualActions = primaryActions.slice(0, 2);
817
+ if (allDisabled) {
818
+ // If all actions are disabled, do not show any actions but the popover toggle
819
+ actualActions = [];
820
+ } else {
821
+ // if any of the actions `isPrimary`, add them inline as well, but only the first 2
822
+ var primaryActions = actualActions.filter(function (o) {
823
+ return o.isPrimary;
824
+ });
825
+ actualActions = primaryActions.slice(0, 2);
826
+ }
824
827
 
825
828
  // if we have more than 1 action, we don't show them all in the cell, instead we
826
829
  // put them all in a popover tool. This effectively means we can only have a maximum
@@ -833,18 +836,18 @@ var EuiBasicTable = /*#__PURE__*/function (_Component) {
833
836
  render: function render(item) {
834
837
  return (0, _react2.jsx)(_collapsed_item_actions.CollapsedItemActions, {
835
838
  actions: column.actions,
839
+ actionsDisabled: allDisabled,
836
840
  itemId: itemId,
837
- item: item,
838
- actionEnabled: actionEnabled
841
+ item: item
839
842
  });
840
843
  }
841
844
  });
842
845
  }
843
846
  var tools = (0, _react2.jsx)(_expanded_item_actions.ExpandedItemActions, {
844
847
  actions: actualActions,
848
+ actionsDisabled: allDisabled,
845
849
  itemId: itemId,
846
- item: item,
847
- actionEnabled: actionEnabled
850
+ item: item
848
851
  });
849
852
  var key = "record_actions_".concat(itemId, "_").concat(columnIndex);
850
853
  return (0, _react2.jsx)(_table.EuiTableRowCell, {
@@ -862,7 +865,7 @@ var EuiBasicTable = /*#__PURE__*/function (_Component) {
862
865
  var field = column.field,
863
866
  render = column.render,
864
867
  dataType = column.dataType;
865
- var key = "_data_column_".concat(field, "_").concat(itemId, "_").concat(columnIndex);
868
+ var key = "_data_column_".concat(String(field), "_").concat(itemId, "_").concat(columnIndex);
866
869
  var contentRenderer = render || this.getRendererForDataType(dataType);
867
870
  var value = (0, _objects.get)(item, field);
868
871
  var content = contentRenderer(value, item);
@@ -931,7 +934,7 @@ var EuiBasicTable = /*#__PURE__*/function (_Component) {
931
934
  }, {
932
935
  key: "renderPaginationBar",
933
936
  value: function renderPaginationBar() {
934
- var _this8 = this;
937
+ var _this7 = this;
935
938
  var _this$props11 = this.props,
936
939
  error = _this$props11.error,
937
940
  pagination = _this$props11.pagination,
@@ -950,9 +953,9 @@ var EuiBasicTable = /*#__PURE__*/function (_Component) {
950
953
  }, function (tablePagination) {
951
954
  return (0, _react2.jsx)(_pagination_bar.PaginationBar, {
952
955
  pagination: pagination,
953
- onPageSizeChange: _this8.onPageSizeChange.bind(_this8),
954
- onPageChange: _this8.onPageChange.bind(_this8),
955
- "aria-controls": _this8.tableId,
956
+ onPageSizeChange: _this7.onPageSizeChange.bind(_this7),
957
+ onPageChange: _this7.onPageChange.bind(_this7),
958
+ "aria-controls": _this7.tableId,
956
959
  "aria-label": tablePagination
957
960
  });
958
961
  });
@@ -30,16 +30,12 @@ var CollapsedItemActions = function CollapsedItemActions(_ref) {
30
30
  var actions = _ref.actions,
31
31
  itemId = _ref.itemId,
32
32
  item = _ref.item,
33
- actionEnabled = _ref.actionEnabled,
33
+ actionsDisabled = _ref.actionsDisabled,
34
34
  className = _ref.className;
35
35
  var _useState = (0, _react.useState)(false),
36
36
  _useState2 = (0, _slicedToArray2.default)(_useState, 2),
37
37
  popoverOpen = _useState2[0],
38
38
  setPopoverOpen = _useState2[1];
39
- var _useState3 = (0, _react.useState)(true),
40
- _useState4 = (0, _slicedToArray2.default)(_useState3, 2),
41
- allDisabled = _useState4[0],
42
- setAllDisabled = _useState4[1];
43
39
  var onClickItem = (0, _react.useCallback)(function (onClickAction) {
44
40
  setPopoverOpen(false);
45
41
  onClickAction === null || onClickAction === void 0 ? void 0 : onClickAction();
@@ -49,8 +45,7 @@ var CollapsedItemActions = function CollapsedItemActions(_ref) {
49
45
  var _action$available, _action$available2;
50
46
  var available = (_action$available = (_action$available2 = action.available) === null || _action$available2 === void 0 ? void 0 : _action$available2.call(action, item)) !== null && _action$available !== void 0 ? _action$available : true;
51
47
  if (!available) return controls;
52
- var enabled = actionEnabled(action);
53
- if (enabled) setAllDisabled(false);
48
+ var enabled = action.enabled == null || action.enabled(item);
54
49
  if ((0, _action_types.isCustomItemAction)(action)) {
55
50
  var customAction = action;
56
51
  var actionControl = customAction.render(item, enabled);
@@ -81,7 +76,7 @@ var CollapsedItemActions = function CollapsedItemActions(_ref) {
81
76
  controls.push((0, _react2.jsx)(_context_menu.EuiContextMenuItem, {
82
77
  key: index,
83
78
  className: "euiBasicTable__collapsedAction",
84
- disabled: !enabled,
79
+ disabled: !enabled && !actionsDisabled,
85
80
  href: href,
86
81
  target: target,
87
82
  icon: icon,
@@ -99,17 +94,21 @@ var CollapsedItemActions = function CollapsedItemActions(_ref) {
99
94
  }
100
95
  return controls;
101
96
  }, []);
102
- }, [actions, actionEnabled, item, onClickItem]);
97
+ }, [actions, actionsDisabled, item, onClickItem]);
103
98
  var popoverButton = (0, _react2.jsx)(_i18n.EuiI18n, {
104
- token: "euiCollapsedItemActions.allActions",
105
- default: "All actions"
106
- }, function (allActions) {
99
+ tokens: ['euiCollapsedItemActions.allActions', 'euiCollapsedItemActions.allActionsDisabled'],
100
+ defaults: ['All actions', 'Individual item actions are disabled when rows are being selected.']
101
+ }, function (_ref2) {
102
+ var _ref3 = (0, _slicedToArray2.default)(_ref2, 2),
103
+ allActions = _ref3[0],
104
+ allActionsDisabled = _ref3[1];
107
105
  return (0, _react2.jsx)(_button.EuiButtonIcon, {
108
106
  className: className,
109
- "aria-label": allActions,
107
+ "aria-label": actionsDisabled ? allActionsDisabled : allActions,
108
+ title: actionsDisabled ? allActionsDisabled : undefined,
110
109
  iconType: "boxesHorizontal",
111
110
  color: "text",
112
- isDisabled: allDisabled,
111
+ isDisabled: actionsDisabled,
113
112
  onClick: function onClick() {
114
113
  return setPopoverOpen(function (isOpen) {
115
114
  return !isOpen;
@@ -118,7 +117,7 @@ var CollapsedItemActions = function CollapsedItemActions(_ref) {
118
117
  "data-test-subj": "euiCollapsedItemActionsButton"
119
118
  });
120
119
  });
121
- var withTooltip = !allDisabled && (0, _react2.jsx)(_i18n.EuiI18n, {
120
+ var withTooltip = !actionsDisabled && (0, _react2.jsx)(_i18n.EuiI18n, {
122
121
  token: "euiCollapsedItemActions.allActions",
123
122
  default: "All actions"
124
123
  }, function (allActions) {
@@ -23,7 +23,7 @@ var ExpandedItemActions = function ExpandedItemActions(_ref) {
23
23
  var actions = _ref.actions,
24
24
  itemId = _ref.itemId,
25
25
  item = _ref.item,
26
- actionEnabled = _ref.actionEnabled,
26
+ actionsDisabled = _ref.actionsDisabled,
27
27
  className = _ref.className;
28
28
  var moreThanThree = actions.length > 2;
29
29
  return (0, _react2.jsx)(_react.default.Fragment, null, actions.reduce(function (tools, action, index) {
@@ -31,7 +31,7 @@ var ExpandedItemActions = function ExpandedItemActions(_ref) {
31
31
  if (!available) {
32
32
  return tools;
33
33
  }
34
- var enabled = actionEnabled(action);
34
+ var enabled = action.enabled == null || action.enabled(item);
35
35
  var key = "item_action_".concat(itemId, "_").concat(index);
36
36
  var classes = (0, _classnames.default)(className, {
37
37
  expandedItemActions__completelyHide: moreThanThree && index < 2
@@ -43,7 +43,7 @@ var ExpandedItemActions = function ExpandedItemActions(_ref) {
43
43
  className: classes,
44
44
  index: index,
45
45
  action: action,
46
- enabled: enabled,
46
+ enabled: enabled && !actionsDisabled,
47
47
  item: item
48
48
  }));
49
49
  } else {
@@ -51,7 +51,7 @@ var ExpandedItemActions = function ExpandedItemActions(_ref) {
51
51
  key: key,
52
52
  className: classes,
53
53
  action: action,
54
- enabled: enabled,
54
+ enabled: enabled && !actionsDisabled,
55
55
  item: item
56
56
  }));
57
57
  }
@@ -16,7 +16,7 @@ var _context = require("./context");
16
16
  var _collapsible_nav_body_footer = require("./collapsible_nav_body_footer.styles");
17
17
  var _react2 = require("@emotion/react");
18
18
  var _excluded = ["className"],
19
- _excluded2 = ["className"];
19
+ _excluded2 = ["className", "children"];
20
20
  /*
21
21
  * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
22
22
  * or more contributor license agreements. Licensed under the Elastic License
@@ -53,6 +53,7 @@ var EuiCollapsibleNavBody = function EuiCollapsibleNavBody(_ref) {
53
53
  exports.EuiCollapsibleNavBody = EuiCollapsibleNavBody;
54
54
  var EuiCollapsibleNavFooter = function EuiCollapsibleNavFooter(_ref2) {
55
55
  var className = _ref2.className,
56
+ children = _ref2.children,
56
57
  props = (0, _objectWithoutProperties2.default)(_ref2, _excluded2);
57
58
  var classes = (0, _classnames.default)('euiCollapsibleNav__footer', className);
58
59
  var _useContext2 = (0, _react.useContext)(_context.EuiCollapsibleNavContext),
@@ -60,10 +61,13 @@ var EuiCollapsibleNavFooter = function EuiCollapsibleNavFooter(_ref2) {
60
61
  isPush = _useContext2.isPush;
61
62
  var euiTheme = (0, _services.useEuiTheme)();
62
63
  var styles = (0, _collapsible_nav_body_footer.euiCollapsibleNavFooterStyles)(euiTheme);
63
- var cssStyles = [styles.euiCollapsibleNav__footer, isCollapsed && isPush && styles.isPushCollapsed];
64
+ var cssStyles = styles.euiCollapsibleNav__footer;
65
+ var overflowWrapperStyles = [styles.euiFlyoutFooter__overflow, isCollapsed && isPush && styles.isPushCollapsed];
64
66
  return (0, _react2.jsx)(_flyout.EuiFlyoutFooter, (0, _extends2.default)({
65
67
  className: classes,
66
68
  css: cssStyles
67
- }, props));
69
+ }, props), (0, _react2.jsx)("div", {
70
+ css: overflowWrapperStyles
71
+ }, children));
68
72
  };
69
73
  exports.EuiCollapsibleNavFooter = EuiCollapsibleNavFooter;
@@ -19,17 +19,17 @@ var _global_styling = require("../../global_styling");
19
19
  var hideScrollbars = "\n scrollbar-width: none; /* Firefox */\n\n &::-webkit-scrollbar {\n display: none; /* Chrome, Edge, & Safari */\n }\n";
20
20
  exports.hideScrollbars = hideScrollbars;
21
21
  var euiCollapsibleNavBodyStyles = {
22
- // In case things get really dire responsively, ensure the footer doesn't overtake the body
23
- euiCollapsibleNav__body: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('min-height', '50%'), ";;label:euiCollapsibleNav__body;"),
22
+ euiCollapsibleNav__body: /*#__PURE__*/(0, _react.css)(";label:euiCollapsibleNav__body;"),
24
23
  isPushCollapsed: /*#__PURE__*/(0, _react.css)(".euiFlyoutBody__overflow{", hideScrollbars, ";};label:isPushCollapsed;")
25
24
  };
26
25
  exports.euiCollapsibleNavBodyStyles = euiCollapsibleNavBodyStyles;
27
26
  var euiCollapsibleNavFooterStyles = function euiCollapsibleNavFooterStyles(euiThemeContext) {
28
27
  var euiTheme = euiThemeContext.euiTheme;
29
28
  return {
30
- euiCollapsibleNav__footer: /*#__PURE__*/(0, _react.css)("background-color:", euiTheme.colors.emptyShade, ";", (0, _global_styling.logicalCSS)('border-top', euiTheme.border.thin), " ", (0, _global_styling.euiYScrollWithShadows)(euiThemeContext, {
29
+ euiCollapsibleNav__footer: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('max-height', '50%'), " background-color:", euiTheme.colors.emptyShade, ";", (0, _global_styling.logicalCSS)('border-top', euiTheme.border.thin), ";;label:euiCollapsibleNav__footer;"),
30
+ euiFlyoutFooter__overflow: /*#__PURE__*/(0, _react.css)((0, _global_styling.euiYScrollWithShadows)(euiThemeContext, {
31
31
  side: 'end'
32
- }), ";;label:euiCollapsibleNav__footer;"),
32
+ }), ";;label:euiFlyoutFooter__overflow;"),
33
33
  isPushCollapsed: /*#__PURE__*/(0, _react.css)(hideScrollbars, ";;label:isPushCollapsed;")
34
34
  };
35
35
  };
@@ -126,7 +126,8 @@ var EuiDataGridHeaderCell = function EuiDataGridHeaderCell(_ref) {
126
126
  });
127
127
  },
128
128
  "aria-describedby": "".concat(sortingAriaId, " ").concat(actionsAriaId),
129
- ref: actionsButtonRef
129
+ ref: actionsButtonRef,
130
+ "data-test-subj": "dataGridHeaderCellActionButton-".concat(id)
130
131
  }, cellContent, (0, _react2.jsx)(_popover.EuiPopover, (0, _extends2.default)({
131
132
  display: "block",
132
133
  panelPaddingSize: "none",
@@ -148,8 +149,7 @@ var EuiDataGridHeaderCell = function EuiDataGridHeaderCell(_ref) {
148
149
  }, (0, _react2.jsx)(_icon.EuiIcon, {
149
150
  type: "boxesVertical",
150
151
  size: "s",
151
- color: "text",
152
- "data-test-subj": "dataGridHeaderCellActionButton-".concat(id)
152
+ color: "text"
153
153
  })),
154
154
  isOpen: isPopoverOpen,
155
155
  closePopover: function closePopover() {
@@ -77,7 +77,7 @@ var DragAndDrop = function DragAndDrop() {
77
77
  beforeEach(function () {
78
78
  cy.realMount((0, _react2.jsx)(DragAndDrop, null));
79
79
  });
80
- describe('EuiControlBar', function () {
80
+ describe('EuiDragDrop', function () {
81
81
  describe('Automated accessibility check', function () {
82
82
  it('has zero violations on render', function () {
83
83
  cy.checkAxe();