@elastic/eui 85.1.0 → 86.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 (185) hide show
  1. package/dist/eui_charts_theme.js +26 -2
  2. package/dist/eui_charts_theme.js.map +1 -1
  3. package/es/components/combo_box/combo_box_options_list/combo_box_title.js +1 -3
  4. package/es/components/datagrid/body/data_grid_body.js +7 -7
  5. package/es/components/datagrid/body/data_grid_body_custom.js +7 -7
  6. package/es/components/datagrid/body/data_grid_body_virtualized.js +7 -7
  7. package/es/components/datagrid/body/data_grid_cell.js +14 -13
  8. package/es/components/datagrid/body/header/data_grid_control_header_cell.js +2 -2
  9. package/es/components/datagrid/body/header/data_grid_header_cell.js +1 -1
  10. package/es/components/datagrid/body/header/data_grid_header_row.js +5 -5
  11. package/es/components/datagrid/controls/data_grid_toolbar.js +31 -26
  12. package/es/components/datagrid/controls/display_selector.js +1 -1
  13. package/es/components/datagrid/data_grid.js +7 -7
  14. package/es/components/datagrid/utils/in_memory.js +4 -4
  15. package/es/components/datagrid/utils/row_heights.js +4 -4
  16. package/es/components/date_picker/date_picker.js +1 -1
  17. package/es/components/drag_and_drop/drag_drop_context.js +1 -1
  18. package/es/components/drag_and_drop/draggable.js +2 -2
  19. package/es/components/drag_and_drop/droppable.js +1 -1
  20. package/es/components/drag_and_drop/index.js +3 -2
  21. package/es/components/header/header_section/header_section_item_button.js +94 -0
  22. package/es/components/highlight/highlight.js +2 -2
  23. package/es/components/inline_edit/inline_edit_text.js +2 -3
  24. package/es/components/inline_edit/inline_edit_title.js +2 -3
  25. package/es/components/inner_text/index.js +1 -2
  26. package/es/components/markdown_editor/markdown_actions.js +1 -1
  27. package/es/components/markdown_editor/markdown_editor_text_area.js +10 -4
  28. package/es/components/modal/confirm_modal.js +11 -29
  29. package/es/components/outside_click_detector/outside_click_detector.js +10 -11
  30. package/es/components/page/page_template.js +8 -8
  31. package/es/components/popover/wrapping_popover.js +1 -9
  32. package/es/components/portal/portal.js +34 -24
  33. package/es/components/tabs/tabs.js +25 -0
  34. package/es/components/timeline/timeline_item_icon.js +3 -3
  35. package/es/components/tour/tour_step.js +16 -12
  36. package/es/services/color/eui_palettes.js +7 -1
  37. package/es/services/color/index.js +1 -1
  38. package/es/services/index.js +1 -1
  39. package/es/services/time/timer.js +3 -5
  40. package/es/test/rtl/component_helpers.js +1 -1
  41. package/es/test/rtl/index.js +2 -1
  42. package/es/test/rtl/render_hook.js +23 -0
  43. package/eui.d.ts +1234 -748
  44. package/i18ntokens.json +144 -144
  45. package/lib/components/combo_box/combo_box_options_list/combo_box_title.js +1 -3
  46. package/lib/components/datagrid/body/data_grid_body.js +7 -7
  47. package/lib/components/datagrid/body/data_grid_body_custom.js +7 -7
  48. package/lib/components/datagrid/body/data_grid_body_virtualized.js +7 -7
  49. package/lib/components/datagrid/body/data_grid_cell.js +14 -13
  50. package/lib/components/datagrid/body/header/data_grid_control_header_cell.js +2 -2
  51. package/lib/components/datagrid/body/header/data_grid_header_cell.js +1 -1
  52. package/lib/components/datagrid/body/header/data_grid_header_row.js +5 -5
  53. package/lib/components/datagrid/controls/data_grid_toolbar.js +41 -38
  54. package/lib/components/datagrid/controls/display_selector.js +1 -1
  55. package/lib/components/datagrid/data_grid.js +7 -7
  56. package/lib/components/datagrid/utils/in_memory.js +4 -4
  57. package/lib/components/datagrid/utils/row_heights.js +4 -4
  58. package/lib/components/date_picker/date_picker.js +1 -1
  59. package/lib/components/drag_and_drop/drag_drop_context.js +2 -2
  60. package/lib/components/drag_and_drop/draggable.js +3 -3
  61. package/lib/components/drag_and_drop/droppable.js +2 -2
  62. package/lib/components/header/header_section/header_section_item_button.js +94 -0
  63. package/lib/components/highlight/highlight.js +2 -2
  64. package/lib/components/inline_edit/inline_edit_text.js +2 -3
  65. package/lib/components/inline_edit/inline_edit_title.js +2 -3
  66. package/lib/components/inner_text/index.js +1 -8
  67. package/lib/components/markdown_editor/markdown_actions.js +1 -1
  68. package/lib/components/markdown_editor/markdown_editor_text_area.js +10 -4
  69. package/lib/components/modal/confirm_modal.js +10 -28
  70. package/lib/components/outside_click_detector/outside_click_detector.js +10 -11
  71. package/lib/components/page/page_template.js +8 -8
  72. package/lib/components/popover/wrapping_popover.js +1 -9
  73. package/lib/components/portal/portal.js +34 -24
  74. package/lib/components/tabs/tabs.js +25 -0
  75. package/lib/components/timeline/timeline_item_icon.js +6 -3
  76. package/lib/components/tour/tour_step.js +15 -11
  77. package/lib/services/color/eui_palettes.js +9 -2
  78. package/lib/services/color/index.js +7 -0
  79. package/lib/services/index.js +7 -0
  80. package/lib/services/time/timer.js +3 -5
  81. package/lib/test/rtl/component_helpers.js +1 -1
  82. package/lib/test/rtl/index.js +13 -1
  83. package/lib/test/rtl/render_hook.js +29 -0
  84. package/optimize/es/components/datagrid/body/data_grid_cell.js +10 -9
  85. package/optimize/es/components/datagrid/controls/data_grid_toolbar.js +31 -26
  86. package/optimize/es/components/datagrid/controls/display_selector.js +1 -1
  87. package/optimize/es/components/datagrid/utils/in_memory.js +2 -2
  88. package/optimize/es/components/datagrid/utils/row_heights.js +4 -4
  89. package/optimize/es/components/date_picker/date_picker.js +1 -1
  90. package/optimize/es/components/drag_and_drop/drag_drop_context.js +1 -1
  91. package/optimize/es/components/drag_and_drop/draggable.js +2 -2
  92. package/optimize/es/components/drag_and_drop/droppable.js +1 -1
  93. package/optimize/es/components/drag_and_drop/index.js +3 -2
  94. package/optimize/es/components/highlight/highlight.js +2 -2
  95. package/optimize/es/components/inline_edit/inline_edit_text.js +2 -3
  96. package/optimize/es/components/inline_edit/inline_edit_title.js +2 -3
  97. package/optimize/es/components/inner_text/index.js +1 -2
  98. package/optimize/es/components/markdown_editor/markdown_actions.js +1 -1
  99. package/optimize/es/components/markdown_editor/markdown_editor_text_area.js +10 -4
  100. package/optimize/es/components/modal/confirm_modal.js +11 -24
  101. package/optimize/es/components/outside_click_detector/outside_click_detector.js +10 -11
  102. package/optimize/es/components/popover/wrapping_popover.js +1 -9
  103. package/optimize/es/components/portal/portal.js +34 -25
  104. package/optimize/es/components/timeline/timeline_item_icon.js +3 -3
  105. package/optimize/es/components/tour/tour_step.js +16 -12
  106. package/optimize/es/services/color/eui_palettes.js +7 -1
  107. package/optimize/es/services/color/index.js +1 -1
  108. package/optimize/es/services/index.js +1 -1
  109. package/optimize/es/services/time/timer.js +3 -5
  110. package/optimize/es/test/rtl/component_helpers.js +1 -1
  111. package/optimize/es/test/rtl/index.js +2 -1
  112. package/optimize/es/test/rtl/render_hook.js +23 -0
  113. package/optimize/lib/components/datagrid/body/data_grid_cell.js +10 -9
  114. package/optimize/lib/components/datagrid/controls/data_grid_toolbar.js +36 -28
  115. package/optimize/lib/components/datagrid/controls/display_selector.js +1 -1
  116. package/optimize/lib/components/datagrid/utils/in_memory.js +2 -2
  117. package/optimize/lib/components/datagrid/utils/row_heights.js +4 -4
  118. package/optimize/lib/components/date_picker/date_picker.js +1 -1
  119. package/optimize/lib/components/drag_and_drop/drag_drop_context.js +2 -2
  120. package/optimize/lib/components/drag_and_drop/draggable.js +3 -3
  121. package/optimize/lib/components/drag_and_drop/droppable.js +2 -2
  122. package/optimize/lib/components/highlight/highlight.js +2 -2
  123. package/optimize/lib/components/inline_edit/inline_edit_text.js +2 -3
  124. package/optimize/lib/components/inline_edit/inline_edit_title.js +2 -3
  125. package/optimize/lib/components/inner_text/index.js +1 -8
  126. package/optimize/lib/components/markdown_editor/markdown_actions.js +1 -1
  127. package/optimize/lib/components/markdown_editor/markdown_editor_text_area.js +10 -4
  128. package/optimize/lib/components/modal/confirm_modal.js +10 -23
  129. package/optimize/lib/components/outside_click_detector/outside_click_detector.js +10 -11
  130. package/optimize/lib/components/popover/wrapping_popover.js +1 -9
  131. package/optimize/lib/components/portal/portal.js +34 -25
  132. package/optimize/lib/components/timeline/timeline_item_icon.js +6 -4
  133. package/optimize/lib/components/tour/tour_step.js +15 -11
  134. package/optimize/lib/services/color/eui_palettes.js +9 -2
  135. package/optimize/lib/services/color/index.js +7 -0
  136. package/optimize/lib/services/index.js +7 -0
  137. package/optimize/lib/services/time/timer.js +3 -5
  138. package/optimize/lib/test/rtl/component_helpers.js +1 -1
  139. package/optimize/lib/test/rtl/index.js +13 -1
  140. package/optimize/lib/test/rtl/render_hook.js +29 -0
  141. package/package.json +23 -16
  142. package/test-env/components/combo_box/combo_box_options_list/combo_box_title.js +1 -3
  143. package/test-env/components/datagrid/body/data_grid_body.js +7 -7
  144. package/test-env/components/datagrid/body/data_grid_body_custom.js +7 -7
  145. package/test-env/components/datagrid/body/data_grid_body_virtualized.js +7 -7
  146. package/test-env/components/datagrid/body/data_grid_cell.js +14 -13
  147. package/test-env/components/datagrid/body/header/data_grid_control_header_cell.js +2 -2
  148. package/test-env/components/datagrid/body/header/data_grid_header_cell.js +1 -1
  149. package/test-env/components/datagrid/body/header/data_grid_header_row.js +5 -5
  150. package/test-env/components/datagrid/controls/data_grid_toolbar.js +36 -28
  151. package/test-env/components/datagrid/controls/display_selector.js +1 -1
  152. package/test-env/components/datagrid/data_grid.js +7 -7
  153. package/test-env/components/datagrid/utils/in_memory.js +4 -4
  154. package/test-env/components/datagrid/utils/row_heights.js +4 -4
  155. package/test-env/components/date_picker/date_picker.js +1 -1
  156. package/test-env/components/drag_and_drop/drag_drop_context.js +2 -2
  157. package/test-env/components/drag_and_drop/draggable.js +3 -3
  158. package/test-env/components/drag_and_drop/droppable.js +2 -2
  159. package/test-env/components/header/header_section/header_section_item_button.js +94 -0
  160. package/test-env/components/highlight/highlight.js +2 -2
  161. package/test-env/components/inline_edit/inline_edit_text.js +2 -3
  162. package/test-env/components/inline_edit/inline_edit_title.js +2 -3
  163. package/test-env/components/inner_text/index.js +1 -8
  164. package/test-env/components/markdown_editor/markdown_actions.js +1 -1
  165. package/test-env/components/markdown_editor/markdown_editor_text_area.js +10 -4
  166. package/test-env/components/modal/confirm_modal.js +10 -23
  167. package/test-env/components/outside_click_detector/outside_click_detector.js +10 -11
  168. package/test-env/components/page/page_template.js +8 -8
  169. package/test-env/components/popover/wrapping_popover.js +1 -9
  170. package/test-env/components/portal/portal.js +34 -25
  171. package/test-env/components/tabs/tabs.js +25 -0
  172. package/test-env/components/timeline/timeline_item_icon.js +6 -3
  173. package/test-env/components/tour/tour_step.js +15 -11
  174. package/test-env/services/color/eui_palettes.js +9 -2
  175. package/test-env/services/color/index.js +7 -0
  176. package/test-env/services/index.js +7 -0
  177. package/test-env/services/time/timer.js +3 -5
  178. package/test-env/test/rtl/component_helpers.js +1 -1
  179. package/test-env/test/rtl/index.js +13 -1
  180. package/test-env/test/rtl/render_hook.js +29 -0
  181. package/es/components/inner_text/render_to_text.js +0 -47
  182. package/lib/components/inner_text/render_to_text.js +0 -54
  183. package/optimize/es/components/inner_text/render_to_text.js +0 -42
  184. package/optimize/lib/components/inner_text/render_to_text.js +0 -52
  185. package/test-env/components/inner_text/render_to_text.js +0 -52
@@ -5,7 +5,6 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.EuiComboBoxTitle = void 0;
7
7
  var _react = _interopRequireDefault(require("react"));
8
- var _propTypes = _interopRequireDefault(require("prop-types"));
9
8
  var _react2 = require("@emotion/react");
10
9
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
11
10
  /*
@@ -22,5 +21,4 @@ var EuiComboBoxTitle = function EuiComboBoxTitle(_ref) {
22
21
  className: "euiComboBoxTitle"
23
22
  }, children);
24
23
  };
25
- exports.EuiComboBoxTitle = EuiComboBoxTitle;
26
- EuiComboBoxTitle.propTypes = {};
24
+ exports.EuiComboBoxTitle = EuiComboBoxTitle;
@@ -55,11 +55,11 @@ EuiDataGridBody.propTypes = {
55
55
  /**
56
56
  * Component to render for each row in the column
57
57
  */
58
- rowCellRender: _propTypes.default.oneOfType([_propTypes.default.func.isRequired, _propTypes.default.func.isRequired]).isRequired,
58
+ rowCellRender: _propTypes.default.oneOfType([_propTypes.default.func.isRequired, _propTypes.default.element.isRequired]).isRequired,
59
59
  /**
60
60
  * Component to render in the optional column footer
61
61
  */
62
- footerCellRender: _propTypes.default.oneOfType([_propTypes.default.func.isRequired, _propTypes.default.func.isRequired]),
62
+ footerCellRender: _propTypes.default.oneOfType([_propTypes.default.func.isRequired, _propTypes.default.element.isRequired]),
63
63
  /**
64
64
  * Optional props to pass to the column footer cell
65
65
  */
@@ -85,11 +85,11 @@ EuiDataGridBody.propTypes = {
85
85
  /**
86
86
  * Component to render for each row in the column
87
87
  */
88
- rowCellRender: _propTypes.default.oneOfType([_propTypes.default.func.isRequired, _propTypes.default.func.isRequired]).isRequired,
88
+ rowCellRender: _propTypes.default.oneOfType([_propTypes.default.func.isRequired, _propTypes.default.element.isRequired]).isRequired,
89
89
  /**
90
90
  * Component to render in the optional column footer
91
91
  */
92
- footerCellRender: _propTypes.default.oneOfType([_propTypes.default.func.isRequired, _propTypes.default.func.isRequired]),
92
+ footerCellRender: _propTypes.default.oneOfType([_propTypes.default.func.isRequired, _propTypes.default.element.isRequired]),
93
93
  /**
94
94
  * Optional props to pass to the column footer cell
95
95
  */
@@ -491,7 +491,7 @@ EuiDataGridBody.propTypes = {
491
491
  /**
492
492
  * Additional actions displayed as icon on hover / focus, and in the expanded view of the cell containing the value
493
493
  */
494
- cellActions: _propTypes.default.arrayOf(_propTypes.default.oneOfType([_propTypes.default.func.isRequired, _propTypes.default.func.isRequired]).isRequired),
494
+ cellActions: _propTypes.default.arrayOf(_propTypes.default.elementType.isRequired),
495
495
  /**
496
496
  * Configures the amount of cell action buttons immediately visible on a cell.
497
497
  * Any cell actions above this number will only display in the cell expansion popover.
@@ -549,9 +549,9 @@ EuiDataGridBody.propTypes = {
549
549
  endRow: _propTypes.default.number.isRequired,
550
550
  visibleRowCount: _propTypes.default.number.isRequired
551
551
  }).isRequired,
552
- renderCellValue: _propTypes.default.oneOfType([_propTypes.default.func.isRequired, _propTypes.default.func.isRequired]).isRequired,
552
+ renderCellValue: _propTypes.default.oneOfType([_propTypes.default.func.isRequired, _propTypes.default.element.isRequired]).isRequired,
553
553
  renderCellPopover: _propTypes.default.oneOfType([_propTypes.default.func.isRequired, _propTypes.default.func.isRequired]),
554
- renderFooterCellValue: _propTypes.default.oneOfType([_propTypes.default.func.isRequired, _propTypes.default.func.isRequired]),
554
+ renderFooterCellValue: _propTypes.default.oneOfType([_propTypes.default.func.isRequired, _propTypes.default.element.isRequired]),
555
555
  renderCustomGridBody: _propTypes.default.func,
556
556
  interactiveCellId: _propTypes.default.string.isRequired,
557
557
  pagination: _propTypes.default.shape({
@@ -203,11 +203,11 @@ EuiDataGridBodyCustomRender.propTypes = {
203
203
  /**
204
204
  * Component to render for each row in the column
205
205
  */
206
- rowCellRender: _propTypes.default.oneOfType([_propTypes.default.func.isRequired, _propTypes.default.func.isRequired]).isRequired,
206
+ rowCellRender: _propTypes.default.oneOfType([_propTypes.default.func.isRequired, _propTypes.default.element.isRequired]).isRequired,
207
207
  /**
208
208
  * Component to render in the optional column footer
209
209
  */
210
- footerCellRender: _propTypes.default.oneOfType([_propTypes.default.func.isRequired, _propTypes.default.func.isRequired]),
210
+ footerCellRender: _propTypes.default.oneOfType([_propTypes.default.func.isRequired, _propTypes.default.element.isRequired]),
211
211
  /**
212
212
  * Optional props to pass to the column footer cell
213
213
  */
@@ -233,11 +233,11 @@ EuiDataGridBodyCustomRender.propTypes = {
233
233
  /**
234
234
  * Component to render for each row in the column
235
235
  */
236
- rowCellRender: _propTypes.default.oneOfType([_propTypes.default.func.isRequired, _propTypes.default.func.isRequired]).isRequired,
236
+ rowCellRender: _propTypes.default.oneOfType([_propTypes.default.func.isRequired, _propTypes.default.element.isRequired]).isRequired,
237
237
  /**
238
238
  * Component to render in the optional column footer
239
239
  */
240
- footerCellRender: _propTypes.default.oneOfType([_propTypes.default.func.isRequired, _propTypes.default.func.isRequired]),
240
+ footerCellRender: _propTypes.default.oneOfType([_propTypes.default.func.isRequired, _propTypes.default.element.isRequired]),
241
241
  /**
242
242
  * Optional props to pass to the column footer cell
243
243
  */
@@ -639,7 +639,7 @@ EuiDataGridBodyCustomRender.propTypes = {
639
639
  /**
640
640
  * Additional actions displayed as icon on hover / focus, and in the expanded view of the cell containing the value
641
641
  */
642
- cellActions: _propTypes.default.arrayOf(_propTypes.default.oneOfType([_propTypes.default.func.isRequired, _propTypes.default.func.isRequired]).isRequired),
642
+ cellActions: _propTypes.default.arrayOf(_propTypes.default.elementType.isRequired),
643
643
  /**
644
644
  * Configures the amount of cell action buttons immediately visible on a cell.
645
645
  * Any cell actions above this number will only display in the cell expansion popover.
@@ -697,9 +697,9 @@ EuiDataGridBodyCustomRender.propTypes = {
697
697
  endRow: _propTypes.default.number.isRequired,
698
698
  visibleRowCount: _propTypes.default.number.isRequired
699
699
  }).isRequired,
700
- renderCellValue: _propTypes.default.oneOfType([_propTypes.default.func.isRequired, _propTypes.default.func.isRequired]).isRequired,
700
+ renderCellValue: _propTypes.default.oneOfType([_propTypes.default.func.isRequired, _propTypes.default.element.isRequired]).isRequired,
701
701
  renderCellPopover: _propTypes.default.oneOfType([_propTypes.default.func.isRequired, _propTypes.default.func.isRequired]),
702
- renderFooterCellValue: _propTypes.default.oneOfType([_propTypes.default.func.isRequired, _propTypes.default.func.isRequired]),
702
+ renderFooterCellValue: _propTypes.default.oneOfType([_propTypes.default.func.isRequired, _propTypes.default.element.isRequired]),
703
703
  renderCustomGridBody: _propTypes.default.func,
704
704
  interactiveCellId: _propTypes.default.string.isRequired,
705
705
  pagination: _propTypes.default.shape({
@@ -334,11 +334,11 @@ EuiDataGridBodyVirtualized.propTypes = {
334
334
  /**
335
335
  * Component to render for each row in the column
336
336
  */
337
- rowCellRender: _propTypes.default.oneOfType([_propTypes.default.func.isRequired, _propTypes.default.func.isRequired]).isRequired,
337
+ rowCellRender: _propTypes.default.oneOfType([_propTypes.default.func.isRequired, _propTypes.default.element.isRequired]).isRequired,
338
338
  /**
339
339
  * Component to render in the optional column footer
340
340
  */
341
- footerCellRender: _propTypes.default.oneOfType([_propTypes.default.func.isRequired, _propTypes.default.func.isRequired]),
341
+ footerCellRender: _propTypes.default.oneOfType([_propTypes.default.func.isRequired, _propTypes.default.element.isRequired]),
342
342
  /**
343
343
  * Optional props to pass to the column footer cell
344
344
  */
@@ -364,11 +364,11 @@ EuiDataGridBodyVirtualized.propTypes = {
364
364
  /**
365
365
  * Component to render for each row in the column
366
366
  */
367
- rowCellRender: _propTypes.default.oneOfType([_propTypes.default.func.isRequired, _propTypes.default.func.isRequired]).isRequired,
367
+ rowCellRender: _propTypes.default.oneOfType([_propTypes.default.func.isRequired, _propTypes.default.element.isRequired]).isRequired,
368
368
  /**
369
369
  * Component to render in the optional column footer
370
370
  */
371
- footerCellRender: _propTypes.default.oneOfType([_propTypes.default.func.isRequired, _propTypes.default.func.isRequired]),
371
+ footerCellRender: _propTypes.default.oneOfType([_propTypes.default.func.isRequired, _propTypes.default.element.isRequired]),
372
372
  /**
373
373
  * Optional props to pass to the column footer cell
374
374
  */
@@ -770,7 +770,7 @@ EuiDataGridBodyVirtualized.propTypes = {
770
770
  /**
771
771
  * Additional actions displayed as icon on hover / focus, and in the expanded view of the cell containing the value
772
772
  */
773
- cellActions: _propTypes.default.arrayOf(_propTypes.default.oneOfType([_propTypes.default.func.isRequired, _propTypes.default.func.isRequired]).isRequired),
773
+ cellActions: _propTypes.default.arrayOf(_propTypes.default.elementType.isRequired),
774
774
  /**
775
775
  * Configures the amount of cell action buttons immediately visible on a cell.
776
776
  * Any cell actions above this number will only display in the cell expansion popover.
@@ -828,9 +828,9 @@ EuiDataGridBodyVirtualized.propTypes = {
828
828
  endRow: _propTypes.default.number.isRequired,
829
829
  visibleRowCount: _propTypes.default.number.isRequired
830
830
  }).isRequired,
831
- renderCellValue: _propTypes.default.oneOfType([_propTypes.default.func.isRequired, _propTypes.default.func.isRequired]).isRequired,
831
+ renderCellValue: _propTypes.default.oneOfType([_propTypes.default.func.isRequired, _propTypes.default.element.isRequired]).isRequired,
832
832
  renderCellPopover: _propTypes.default.oneOfType([_propTypes.default.func.isRequired, _propTypes.default.func.isRequired]),
833
- renderFooterCellValue: _propTypes.default.oneOfType([_propTypes.default.func.isRequired, _propTypes.default.func.isRequired]),
833
+ renderFooterCellValue: _propTypes.default.oneOfType([_propTypes.default.func.isRequired, _propTypes.default.element.isRequired]),
834
834
  renderCustomGridBody: _propTypes.default.func,
835
835
  interactiveCellId: _propTypes.default.string.isRequired,
836
836
  pagination: _propTypes.default.shape({
@@ -488,7 +488,7 @@ EuiDataGridCellContent.propTypes = {
488
488
  /**
489
489
  * Additional actions displayed as icon on hover / focus, and in the expanded view of the cell containing the value
490
490
  */
491
- cellActions: _propTypes.default.arrayOf(_propTypes.default.oneOfType([_propTypes.default.func.isRequired, _propTypes.default.func.isRequired]).isRequired),
491
+ cellActions: _propTypes.default.arrayOf(_propTypes.default.elementType.isRequired),
492
492
  /**
493
493
  * Configures the amount of cell action buttons immediately visible on a cell.
494
494
  * Any cell actions above this number will only display in the cell expansion popover.
@@ -500,7 +500,7 @@ EuiDataGridCellContent.propTypes = {
500
500
  columnType: _propTypes.default.oneOfType([_propTypes.default.string.isRequired, _propTypes.default.oneOf([null])]),
501
501
  isExpandable: _propTypes.default.bool.isRequired,
502
502
  className: _propTypes.default.string,
503
- renderCellValue: _propTypes.default.oneOfType([_propTypes.default.func.isRequired, _propTypes.default.func.isRequired]).isRequired,
503
+ renderCellValue: _propTypes.default.oneOfType([_propTypes.default.func.isRequired, _propTypes.default.element.isRequired]).isRequired,
504
504
  renderCellPopover: _propTypes.default.oneOfType([_propTypes.default.func.isRequired, _propTypes.default.func.isRequired]),
505
505
  setRowHeight: _propTypes.default.func,
506
506
  getRowHeight: _propTypes.default.func,
@@ -811,15 +811,7 @@ var EuiDataGridCell = /*#__PURE__*/function (_Component) {
811
811
  }
812
812
  });
813
813
  return _this;
814
- } // focus tracking is split between the entire grid & individual cells,
815
- // the parent grid owns which cell is focused,
816
- // but individual cells need to react to changes and also report that
817
- // they are focused in response to user actions like clicking on the cell
818
- // to avoid focus trap fighting, cells wait a tick after being clicked to allow
819
- // any existing traps to disconnect before the cell reports the new focus state to the parent grid
820
- // but because of this small delay, multiple cells could queue up focus and
821
- // create an infinite loop as the cells activate->deactivate->...
822
- // so we track the last timeout id and clear that request if superseded
814
+ }
823
815
  _createClass(EuiDataGridCell, [{
824
816
  key: "componentDidMount",
825
817
  value: function componentDidMount() {
@@ -1123,6 +1115,15 @@ var EuiDataGridCell = /*#__PURE__*/function (_Component) {
1123
1115
  return EuiDataGridCell;
1124
1116
  }(_react.Component);
1125
1117
  exports.EuiDataGridCell = EuiDataGridCell;
1118
+ // focus tracking is split between the entire grid & individual cells,
1119
+ // the parent grid owns which cell is focused,
1120
+ // but individual cells need to react to changes and also report that
1121
+ // they are focused in response to user actions like clicking on the cell
1122
+ // to avoid focus trap fighting, cells wait a tick after being clicked to allow
1123
+ // any existing traps to disconnect before the cell reports the new focus state to the parent grid
1124
+ // but because of this small delay, multiple cells could queue up focus and
1125
+ // create an infinite loop as the cells activate->deactivate->...
1126
+ // so we track the last timeout id and clear that request if superseded
1126
1127
  _defineProperty(EuiDataGridCell, "activeFocusTimeoutId", undefined);
1127
1128
  _defineProperty(EuiDataGridCell, "contextType", _focus.DataGridFocusContext);
1128
1129
  EuiDataGridCell.propTypes = {
@@ -1447,7 +1448,7 @@ EuiDataGridCell.propTypes = {
1447
1448
  /**
1448
1449
  * Additional actions displayed as icon on hover / focus, and in the expanded view of the cell containing the value
1449
1450
  */
1450
- cellActions: _propTypes.default.arrayOf(_propTypes.default.oneOfType([_propTypes.default.func.isRequired, _propTypes.default.func.isRequired]).isRequired),
1451
+ cellActions: _propTypes.default.arrayOf(_propTypes.default.elementType.isRequired),
1451
1452
  /**
1452
1453
  * Configures the amount of cell action buttons immediately visible on a cell.
1453
1454
  * Any cell actions above this number will only display in the cell expansion popover.
@@ -1474,7 +1475,7 @@ EuiDataGridCell.propTypes = {
1474
1475
  setPopoverContent: _propTypes.default.func.isRequired,
1475
1476
  setCellPopoverProps: _propTypes.default.func.isRequired
1476
1477
  }).isRequired,
1477
- renderCellValue: _propTypes.default.oneOfType([_propTypes.default.func.isRequired, _propTypes.default.func.isRequired]).isRequired,
1478
+ renderCellValue: _propTypes.default.oneOfType([_propTypes.default.func.isRequired, _propTypes.default.element.isRequired]).isRequired,
1478
1479
  renderCellPopover: _propTypes.default.oneOfType([_propTypes.default.func.isRequired, _propTypes.default.func.isRequired]),
1479
1480
  setRowHeight: _propTypes.default.func,
1480
1481
  getRowHeight: _propTypes.default.func,
@@ -58,11 +58,11 @@ EuiDataGridControlHeaderCell.propTypes = {
58
58
  /**
59
59
  * Component to render for each row in the column
60
60
  */
61
- rowCellRender: _propTypes.default.oneOfType([_propTypes.default.func.isRequired, _propTypes.default.func.isRequired]).isRequired,
61
+ rowCellRender: _propTypes.default.oneOfType([_propTypes.default.func.isRequired, _propTypes.default.element.isRequired]).isRequired,
62
62
  /**
63
63
  * Component to render in the optional column footer
64
64
  */
65
- footerCellRender: _propTypes.default.oneOfType([_propTypes.default.func.isRequired, _propTypes.default.func.isRequired]),
65
+ footerCellRender: _propTypes.default.oneOfType([_propTypes.default.func.isRequired, _propTypes.default.element.isRequired]),
66
66
  /**
67
67
  * Optional props to pass to the column footer cell
68
68
  */
@@ -558,7 +558,7 @@ EuiDataGridHeaderCell.propTypes = {
558
558
  /**
559
559
  * Additional actions displayed as icon on hover / focus, and in the expanded view of the cell containing the value
560
560
  */
561
- cellActions: _propTypes.default.arrayOf(_propTypes.default.oneOfType([_propTypes.default.func.isRequired, _propTypes.default.func.isRequired]).isRequired),
561
+ cellActions: _propTypes.default.arrayOf(_propTypes.default.elementType.isRequired),
562
562
  /**
563
563
  * Configures the amount of cell action buttons immediately visible on a cell.
564
564
  * Any cell actions above this number will only display in the cell expansion popover.
@@ -107,11 +107,11 @@ EuiDataGridHeaderRow.propTypes = {
107
107
  /**
108
108
  * Component to render for each row in the column
109
109
  */
110
- rowCellRender: _propTypes.default.oneOfType([_propTypes.default.func.isRequired, _propTypes.default.func.isRequired]).isRequired,
110
+ rowCellRender: _propTypes.default.oneOfType([_propTypes.default.func.isRequired, _propTypes.default.element.isRequired]).isRequired,
111
111
  /**
112
112
  * Component to render in the optional column footer
113
113
  */
114
- footerCellRender: _propTypes.default.oneOfType([_propTypes.default.func.isRequired, _propTypes.default.func.isRequired]),
114
+ footerCellRender: _propTypes.default.oneOfType([_propTypes.default.func.isRequired, _propTypes.default.element.isRequired]),
115
115
  /**
116
116
  * Optional props to pass to the column footer cell
117
117
  */
@@ -137,11 +137,11 @@ EuiDataGridHeaderRow.propTypes = {
137
137
  /**
138
138
  * Component to render for each row in the column
139
139
  */
140
- rowCellRender: _propTypes.default.oneOfType([_propTypes.default.func.isRequired, _propTypes.default.func.isRequired]).isRequired,
140
+ rowCellRender: _propTypes.default.oneOfType([_propTypes.default.func.isRequired, _propTypes.default.element.isRequired]).isRequired,
141
141
  /**
142
142
  * Component to render in the optional column footer
143
143
  */
144
- footerCellRender: _propTypes.default.oneOfType([_propTypes.default.func.isRequired, _propTypes.default.func.isRequired]),
144
+ footerCellRender: _propTypes.default.oneOfType([_propTypes.default.func.isRequired, _propTypes.default.element.isRequired]),
145
145
  /**
146
146
  * Optional props to pass to the column footer cell
147
147
  */
@@ -543,7 +543,7 @@ EuiDataGridHeaderRow.propTypes = {
543
543
  /**
544
544
  * Additional actions displayed as icon on hover / focus, and in the expanded view of the cell containing the value
545
545
  */
546
- cellActions: _propTypes.default.arrayOf(_propTypes.default.oneOfType([_propTypes.default.func.isRequired, _propTypes.default.func.isRequired]).isRequired),
546
+ cellActions: _propTypes.default.arrayOf(_propTypes.default.elementType.isRequired),
547
547
  /**
548
548
  * Configures the amount of cell action buttons immediately visible on a cell.
549
549
  * Any cell actions above this number will only display in the cell expansion popover.
@@ -6,21 +6,20 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.EuiDataGridToolbar = void 0;
7
7
  exports.checkOrDefaultToolBarDisplayOptions = checkOrDefaultToolBarDisplayOptions;
8
8
  exports.getNestedObjectOptions = getNestedObjectOptions;
9
- exports.renderAdditionalControls = renderAdditionalControls;
10
- var _react = _interopRequireDefault(require("react"));
9
+ exports.renderAdditionalControls = void 0;
10
+ var _react = _interopRequireWildcard(require("react"));
11
11
  var _accessibility = require("../../accessibility");
12
12
  var _utils = require("../../../utils");
13
13
  var _react2 = require("@emotion/react");
14
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
15
- /*
16
- * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
17
- * or more contributor license agreements. Licensed under the Elastic License
18
- * 2.0 and the Server Side Public License, v 1; you may not use this file except
19
- * in compliance with, at your election, the Elastic License 2.0 or the Server
20
- * Side Public License, v 1.
21
- */
22
-
23
- // When below this number the grid only shows the right control icon buttons
14
+ 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); }
15
+ 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; }
16
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); } /*
17
+ * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
18
+ * or more contributor license agreements. Licensed under the Elastic License
19
+ * 2.0 and the Server Side Public License, v 1; you may not use this file except
20
+ * in compliance with, at your election, the Elastic License 2.0 or the Server
21
+ * Side Public License, v 1.
22
+ */ // When below this number the grid only shows the right control icon buttons
24
23
  var MINIMUM_WIDTH_FOR_GRID_CONTROLS = 479;
25
24
  var EuiDataGridToolbar = function EuiDataGridToolbar(_ref) {
26
25
  var gridWidth = _ref.gridWidth,
@@ -68,50 +67,54 @@ function checkOrDefaultToolBarDisplayOptions(arg, option) {
68
67
  return true;
69
68
  }
70
69
  }
71
- function renderAdditionalControls(toolbarVisibility, position) {
72
- var _additionalControlsOb;
70
+ var renderAdditionalControls = function renderAdditionalControls(toolbarVisibility, position) {
73
71
  if (typeof toolbarVisibility === 'boolean') return null;
74
72
  var _ref2 = toolbarVisibility || {},
75
73
  additionalControls = _ref2.additionalControls;
76
74
  if (!additionalControls) return null;
77
75
 
78
- // Typescript is having obj issues, so we need to force cast to EuiDataGridToolBarAdditionalControlsOptions here
79
- var additionalControlsObj = (additionalControls === null || additionalControls === void 0 ? void 0 : additionalControls.constructor) === Object ? additionalControls : {};
80
- // Typescript workarounds continued
81
- var leftPositionObj = ((_additionalControlsOb = additionalControlsObj.left) === null || _additionalControlsOb === void 0 ? void 0 : _additionalControlsOb.constructor) === Object ? additionalControlsObj.left : {};
82
- if (position === 'right') {
83
- if (additionalControlsObj !== null && additionalControlsObj !== void 0 && additionalControlsObj.right) {
84
- return additionalControlsObj.right;
76
+ // API backwards compatability: if the consumer passed a single ReactNode
77
+ // to `additionalControls`, default to the left append position.
78
+ if ( /*#__PURE__*/(0, _react.isValidElement)(additionalControls) && position === 'left.append') {
79
+ return additionalControls;
80
+ }
81
+ if (_typeof(additionalControls) !== 'object') {
82
+ return null;
83
+ }
84
+ var handleLeftObjectConfig = function handleLeftObjectConfig(leftConfig) {
85
+ if (position === 'left.prepend') {
86
+ return leftConfig.prepend;
85
87
  }
86
- } else if (position === 'left.prepend') {
87
- if (leftPositionObj !== null && leftPositionObj !== void 0 && leftPositionObj.prepend) {
88
- return leftPositionObj.prepend;
88
+ if (position === 'left.append') {
89
+ return leftConfig.append;
89
90
  }
90
- } else if (position === 'left.append') {
91
- if (leftPositionObj !== null && leftPositionObj !== void 0 && leftPositionObj.append) {
92
- return leftPositionObj.append;
91
+ };
92
+ var handleObjectConfig = function handleObjectConfig(additionalControls) {
93
+ if (position === 'right') {
94
+ return additionalControls.right;
93
95
  }
94
- if ( /*#__PURE__*/_react.default.isValidElement(additionalControlsObj === null || additionalControlsObj === void 0 ? void 0 : additionalControlsObj.left)) {
95
- // If the consumer passed a single ReactNode to `additionalControls.left`, default to the left append position
96
- return additionalControlsObj.left;
96
+ // API backwards compatability: If the consumer passed a single ReactNode
97
+ // to `additionalControls.left`, default to the left append position
98
+ if ( /*#__PURE__*/(0, _react.isValidElement)(additionalControls.left) && position === 'left.append') {
99
+ return additionalControls.left;
97
100
  }
98
- if ( /*#__PURE__*/_react.default.isValidElement(additionalControls)) {
99
- // API backwards compatability: if the consumer passed a single ReactNode to `additionalControls`, default to the the left append position
100
- return additionalControls;
101
+ if (additionalControls.left && _typeof(additionalControls.left) === 'object') {
102
+ return handleLeftObjectConfig(additionalControls.left);
101
103
  }
102
- }
103
- return null;
104
- }
104
+ };
105
+ var rendered = handleObjectConfig(additionalControls);
106
+ return rendered || null;
107
+ };
105
108
 
106
109
  /**
107
110
  * Utility helper for selectors/controls that allow nested options
108
111
  * (e.g. column selector, display selector)
109
112
  */
110
-
113
+ exports.renderAdditionalControls = renderAdditionalControls;
111
114
  function getNestedObjectOptions(controlOption, objectKey) {
112
115
  var _controlOption$object;
113
116
  // If the config is a boolean, nested options follow that boolean
114
- if (controlOption === false || controlOption === true) return controlOption;
117
+ if (typeof controlOption === 'boolean') return controlOption;
115
118
  // If config is not defined, default to enabled
116
119
  if (controlOption == null) return true;
117
120
  // Otherwise, type should be an object of boolean values - dive into it and return the value
@@ -139,7 +139,7 @@ var useDataGridDisplaySelector = function useDataGridDisplaySelector(showDisplay
139
139
  setUserRowHeightsOptions(rowHeightsOptions);
140
140
  }, [lineCount]);
141
141
  var setLineCountHeight = (0, _react.useCallback)(function (event) {
142
- var newLineCount = Number(event.target.value);
142
+ var newLineCount = Number(event.currentTarget.value);
143
143
  if (newLineCount < 1) return; // Don't let users set a 0 or negative line count
144
144
 
145
145
  setLineCount(newLineCount);
@@ -799,7 +799,7 @@ EuiDataGrid.propTypes = {
799
799
  /**
800
800
  * Additional actions displayed as icon on hover / focus, and in the expanded view of the cell containing the value
801
801
  */
802
- cellActions: _propTypes.default.arrayOf(_propTypes.default.oneOfType([_propTypes.default.func.isRequired, _propTypes.default.func.isRequired]).isRequired),
802
+ cellActions: _propTypes.default.arrayOf(_propTypes.default.elementType.isRequired),
803
803
  /**
804
804
  * Configures the amount of cell action buttons immediately visible on a cell.
805
805
  * Any cell actions above this number will only display in the cell expansion popover.
@@ -831,11 +831,11 @@ EuiDataGrid.propTypes = {
831
831
  /**
832
832
  * Component to render for each row in the column
833
833
  */
834
- rowCellRender: _propTypes.default.oneOfType([_propTypes.default.func.isRequired, _propTypes.default.func.isRequired]).isRequired,
834
+ rowCellRender: _propTypes.default.oneOfType([_propTypes.default.func.isRequired, _propTypes.default.element.isRequired]).isRequired,
835
835
  /**
836
836
  * Component to render in the optional column footer
837
837
  */
838
- footerCellRender: _propTypes.default.oneOfType([_propTypes.default.func.isRequired, _propTypes.default.func.isRequired]),
838
+ footerCellRender: _propTypes.default.oneOfType([_propTypes.default.func.isRequired, _propTypes.default.element.isRequired]),
839
839
  /**
840
840
  * Optional props to pass to the column footer cell
841
841
  */
@@ -865,11 +865,11 @@ EuiDataGrid.propTypes = {
865
865
  /**
866
866
  * Component to render for each row in the column
867
867
  */
868
- rowCellRender: _propTypes.default.oneOfType([_propTypes.default.func.isRequired, _propTypes.default.func.isRequired]).isRequired,
868
+ rowCellRender: _propTypes.default.oneOfType([_propTypes.default.func.isRequired, _propTypes.default.element.isRequired]).isRequired,
869
869
  /**
870
870
  * Component to render in the optional column footer
871
871
  */
872
- footerCellRender: _propTypes.default.oneOfType([_propTypes.default.func.isRequired, _propTypes.default.func.isRequired]),
872
+ footerCellRender: _propTypes.default.oneOfType([_propTypes.default.func.isRequired, _propTypes.default.element.isRequired]),
873
873
  /**
874
874
  * Optional props to pass to the column footer cell
875
875
  */
@@ -944,7 +944,7 @@ EuiDataGrid.propTypes = {
944
944
  * allowing hooks, context, and other React concepts to be used. The function receives #EuiDataGridCellValueElementProps
945
945
  * as its only argument.
946
946
  */
947
- renderCellValue: _propTypes.default.oneOfType([_propTypes.default.func.isRequired, _propTypes.default.func.isRequired]).isRequired,
947
+ renderCellValue: _propTypes.default.oneOfType([_propTypes.default.func.isRequired, _propTypes.default.element.isRequired]).isRequired,
948
948
  /**
949
949
  * An optional function that can be used to completely customize the rendering of cell popovers.
950
950
  *
@@ -963,7 +963,7 @@ EuiDataGrid.propTypes = {
963
963
  * allowing hooks, context, and other React concepts to be used. The function receives #EuiDataGridCellValueElementProps
964
964
  * as its only argument.
965
965
  */
966
- renderFooterCellValue: _propTypes.default.oneOfType([_propTypes.default.func.isRequired, _propTypes.default.func.isRequired]),
966
+ renderFooterCellValue: _propTypes.default.oneOfType([_propTypes.default.func.isRequired, _propTypes.default.element.isRequired]),
967
967
  /**
968
968
  * An optional function called to completely customize and control the rendering of
969
969
  * EuiDataGrid's body and cell placement. This can be used to, e.g. remove EuiDataGrid's
@@ -161,9 +161,9 @@ var EuiDataGridInMemoryRenderer = function EuiDataGridInMemoryRenderer(_ref) {
161
161
  var cellDivs = documentFragment.childNodes[0].childNodes;
162
162
  for (var i = 0; i < cellDivs.length; i++) {
163
163
  var cellDiv = cellDivs[i];
164
- var _rowIndex = parseInt(cellDiv.getAttribute('data-dg-row'), 10);
164
+ var rowIndex = parseInt(cellDiv.getAttribute('data-dg-row'), 10);
165
165
  var column = cellDiv.getAttribute('data-dg-column');
166
- onCellRender(_rowIndex, column, getElementText(cellDiv));
166
+ onCellRender(rowIndex, column, getElementText(cellDiv));
167
167
  }
168
168
  // changes to documentFragment.children is reflected by `cells`
169
169
  // eslint-disable-next-line react-hooks/exhaustive-deps
@@ -598,7 +598,7 @@ EuiDataGridInMemoryRenderer.propTypes = {
598
598
  /**
599
599
  * Additional actions displayed as icon on hover / focus, and in the expanded view of the cell containing the value
600
600
  */
601
- cellActions: _propTypes.default.arrayOf(_propTypes.default.oneOfType([_propTypes.default.func.isRequired, _propTypes.default.func.isRequired]).isRequired),
601
+ cellActions: _propTypes.default.arrayOf(_propTypes.default.elementType.isRequired),
602
602
  /**
603
603
  * Configures the amount of cell action buttons immediately visible on a cell.
604
604
  * Any cell actions above this number will only display in the cell expansion popover.
@@ -607,7 +607,7 @@ EuiDataGridInMemoryRenderer.propTypes = {
607
607
  visibleCellActions: _propTypes.default.number
608
608
  }).isRequired).isRequired,
609
609
  rowCount: _propTypes.default.number.isRequired,
610
- renderCellValue: _propTypes.default.oneOfType([_propTypes.default.func.isRequired, _propTypes.default.func.isRequired]).isRequired,
610
+ renderCellValue: _propTypes.default.oneOfType([_propTypes.default.func.isRequired, _propTypes.default.element.isRequired]).isRequired,
611
611
  onCellRender: _propTypes.default.func.isRequired
612
612
  };
613
613
  function noop() {}
@@ -214,15 +214,15 @@ var RowHeightVirtualizationUtils = /*#__PURE__*/function (_RowHeightUtils) {
214
214
  var _this2;
215
215
  _classCallCheck(this, RowHeightVirtualizationUtils);
216
216
  _this2 = _super.call(this);
217
- _this2.gridRef = gridRef;
218
- _this2.outerGridElementRef = outerGridElementRef;
219
- _this2.gridItemsRenderedRef = gridItemsRenderedRef;
220
- _this2.rerenderGridBodyRef = rerenderGridBodyRef;
221
217
  /**
222
218
  * Virtualization workarounds for auto height rows
223
219
  */
224
220
  _defineProperty(_assertThisInitialized(_this2), "timerId", void 0);
225
221
  _defineProperty(_assertThisInitialized(_this2), "lastUpdatedRow", Infinity);
222
+ _this2.gridRef = gridRef;
223
+ _this2.outerGridElementRef = outerGridElementRef;
224
+ _this2.gridItemsRenderedRef = gridItemsRenderedRef;
225
+ _this2.rerenderGridBodyRef = rerenderGridBodyRef;
226
226
  return _this2;
227
227
  }
228
228
  _createClass(RowHeightVirtualizationUtils, [{
@@ -152,7 +152,7 @@ var EuiDatePicker = function EuiDatePicker(_ref) {
152
152
  inputValidityRef = _useState2[0],
153
153
  _setInputValidityRef = _useState2[1];
154
154
  var setInputValidityRef = (0, _react.useCallback)(function (ref) {
155
- _setInputValidityRef(ref === null || ref === void 0 ? void 0 : ref.input);
155
+ _setInputValidityRef((ref === null || ref === void 0 ? void 0 : ref.input) || null);
156
156
  }, []);
157
157
  (0, _form.useEuiValidatableControl)({
158
158
  isInvalid: isInvalid,
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
6
6
  });
7
7
  exports.EuiDragDropContextContext = exports.EuiDragDropContext = void 0;
8
8
  var _react = _interopRequireWildcard(require("react"));
9
- var _reactBeautifulDnd = require("react-beautiful-dnd");
9
+ var _dnd = require("@hello-pangea/dnd");
10
10
  var _react2 = require("@emotion/react");
11
11
  var _excluded = ["onBeforeDragStart", "onDragStart", "onDragUpdate", "onDragEnd", "children"];
12
12
  /*
@@ -55,7 +55,7 @@ var EuiDragDropContext = function EuiDragDropContext(_ref) {
55
55
  onDragEnd(result, provided);
56
56
  }
57
57
  };
58
- return (0, _react2.jsx)(_reactBeautifulDnd.DragDropContext, _extends({
58
+ return (0, _react2.jsx)(_dnd.DragDropContext, _extends({
59
59
  onBeforeDragStart: onBeforeDragStart,
60
60
  onDragStart: euiOnDragStart,
61
61
  onDragUpdate: onDragUpdate,
@@ -7,7 +7,7 @@ Object.defineProperty(exports, "__esModule", {
7
7
  exports.EuiDraggable = void 0;
8
8
  var _react = _interopRequireWildcard(require("react"));
9
9
  var _propTypes = _interopRequireDefault(require("prop-types"));
10
- var _reactBeautifulDnd = require("react-beautiful-dnd");
10
+ var _dnd = require("@hello-pangea/dnd");
11
11
  var _classnames = _interopRequireDefault(require("classnames"));
12
12
  var _droppable = require("./droppable");
13
13
  var _react2 = require("@emotion/react");
@@ -57,7 +57,7 @@ var EuiDraggable = function EuiDraggable(_ref) {
57
57
  rest = _objectWithoutProperties(_ref, _excluded);
58
58
  var _useContext = (0, _react.useContext)(_droppable.EuiDroppableContext),
59
59
  cloneItems = _useContext.cloneItems;
60
- return (0, _react2.jsx)(_reactBeautifulDnd.Draggable, _extends({
60
+ return (0, _react2.jsx)(_dnd.Draggable, _extends({
61
61
  draggableId: draggableId,
62
62
  index: index,
63
63
  isDragDisabled: isDragDisabled
@@ -75,7 +75,7 @@ var EuiDraggable = function EuiDraggable(_ref) {
75
75
  'euiDraggable__item--isDragging': snapshot.isDragging,
76
76
  'euiDraggable__item--isDropAnimating': snapshot.isDropAnimating
77
77
  });
78
- var DraggableElement = typeof children === 'function' ? children(provided, snapshot, rubric) : children; // as specified by `DraggableProps`
78
+ var DraggableElement = typeof children === 'function' ? children(provided, snapshot, rubric) : children;
79
79
  return (0, _react2.jsx)(_react.Fragment, null, (0, _react2.jsx)("div", _extends({}, provided.draggableProps, !customDragHandle ? provided.dragHandleProps : {}, {
80
80
  ref: provided.innerRef,
81
81
  "data-test-subj": dataTestSubj,
@@ -7,7 +7,7 @@ Object.defineProperty(exports, "__esModule", {
7
7
  exports.EuiDroppableContext = exports.EuiDroppable = void 0;
8
8
  var _react = _interopRequireWildcard(require("react"));
9
9
  var _propTypes = _interopRequireDefault(require("prop-types"));
10
- var _reactBeautifulDnd = require("react-beautiful-dnd");
10
+ var _dnd = require("@hello-pangea/dnd");
11
11
  var _classnames = _interopRequireDefault(require("classnames"));
12
12
  var _drag_drop_context = require("./drag_drop_context");
13
13
  var _react2 = require("@emotion/react");
@@ -59,7 +59,7 @@ var EuiDroppable = function EuiDroppable(_ref) {
59
59
  var _useContext = (0, _react.useContext)(_drag_drop_context.EuiDragDropContextContext),
60
60
  isDraggingType = _useContext.isDraggingType;
61
61
  var dropIsDisabled = cloneDraggables ? true : isDropDisabled;
62
- return (0, _react2.jsx)(_reactBeautifulDnd.Droppable, _extends({
62
+ return (0, _react2.jsx)(_dnd.Droppable, _extends({
63
63
  isDropDisabled: dropIsDisabled,
64
64
  droppableId: droppableId,
65
65
  direction: direction,