@elastic/eui 85.1.0 → 86.0.0-rc1.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 (197) 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 +2 -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_form.js +0 -52
  24. package/es/components/inner_text/index.js +1 -2
  25. package/es/components/markdown_editor/markdown_actions.js +1 -1
  26. package/es/components/markdown_editor/markdown_editor_text_area.js +10 -4
  27. package/es/components/modal/confirm_modal.js +11 -29
  28. package/es/components/outside_click_detector/outside_click_detector.js +10 -11
  29. package/es/components/page/page_template.js +8 -8
  30. package/es/components/popover/wrapping_popover.js +1 -9
  31. package/es/components/portal/portal.js +33 -24
  32. package/es/components/tabs/tabs.js +25 -0
  33. package/es/components/timeline/timeline_item_icon.js +3 -3
  34. package/es/components/tour/tour_step.js +11 -13
  35. package/es/services/color/eui_palettes.js +7 -1
  36. package/es/services/color/index.js +1 -1
  37. package/es/services/index.js +1 -1
  38. package/es/services/theme/provider.js +7 -0
  39. package/es/services/time/timer.js +3 -5
  40. package/es/test/index.d.ts +36 -0
  41. package/es/test/index.js +2 -1
  42. package/es/test/react_version.js +71 -0
  43. package/es/test/rtl/component_helpers.js +1 -1
  44. package/es/test/rtl/index.js +2 -1
  45. package/es/test/rtl/render_hook.js +23 -0
  46. package/eui.d.ts +1238 -749
  47. package/i18ntokens.json +144 -144
  48. package/lib/components/combo_box/combo_box_options_list/combo_box_title.js +1 -3
  49. package/lib/components/datagrid/body/data_grid_body.js +7 -7
  50. package/lib/components/datagrid/body/data_grid_body_custom.js +7 -7
  51. package/lib/components/datagrid/body/data_grid_body_virtualized.js +7 -7
  52. package/lib/components/datagrid/body/data_grid_cell.js +14 -13
  53. package/lib/components/datagrid/body/header/data_grid_control_header_cell.js +2 -2
  54. package/lib/components/datagrid/body/header/data_grid_header_cell.js +1 -1
  55. package/lib/components/datagrid/body/header/data_grid_header_row.js +5 -5
  56. package/lib/components/datagrid/controls/data_grid_toolbar.js +41 -38
  57. package/lib/components/datagrid/controls/display_selector.js +2 -1
  58. package/lib/components/datagrid/data_grid.js +7 -7
  59. package/lib/components/datagrid/utils/in_memory.js +4 -4
  60. package/lib/components/datagrid/utils/row_heights.js +4 -4
  61. package/lib/components/date_picker/date_picker.js +1 -1
  62. package/lib/components/drag_and_drop/drag_drop_context.js +2 -2
  63. package/lib/components/drag_and_drop/draggable.js +3 -3
  64. package/lib/components/drag_and_drop/droppable.js +2 -2
  65. package/lib/components/header/header_section/header_section_item_button.js +94 -0
  66. package/lib/components/highlight/highlight.js +2 -2
  67. package/lib/components/inline_edit/inline_edit_form.js +0 -52
  68. package/lib/components/inner_text/index.js +1 -8
  69. package/lib/components/markdown_editor/markdown_actions.js +1 -1
  70. package/lib/components/markdown_editor/markdown_editor_text_area.js +10 -4
  71. package/lib/components/modal/confirm_modal.js +10 -28
  72. package/lib/components/outside_click_detector/outside_click_detector.js +10 -11
  73. package/lib/components/page/page_template.js +8 -8
  74. package/lib/components/popover/wrapping_popover.js +1 -9
  75. package/lib/components/portal/portal.js +33 -24
  76. package/lib/components/tabs/tabs.js +25 -0
  77. package/lib/components/timeline/timeline_item_icon.js +6 -3
  78. package/lib/components/tour/tour_step.js +10 -12
  79. package/lib/services/color/eui_palettes.js +9 -2
  80. package/lib/services/color/index.js +7 -0
  81. package/lib/services/index.js +7 -0
  82. package/lib/services/theme/provider.js +10 -1
  83. package/lib/services/time/timer.js +3 -5
  84. package/lib/test/index.d.ts +36 -0
  85. package/lib/test/index.js +12 -0
  86. package/lib/test/react_version.js +84 -0
  87. package/lib/test/rtl/component_helpers.js +1 -1
  88. package/lib/test/rtl/index.js +13 -1
  89. package/lib/test/rtl/render_hook.js +29 -0
  90. package/optimize/es/components/datagrid/body/data_grid_cell.js +10 -9
  91. package/optimize/es/components/datagrid/controls/data_grid_toolbar.js +31 -26
  92. package/optimize/es/components/datagrid/controls/display_selector.js +2 -1
  93. package/optimize/es/components/datagrid/utils/in_memory.js +2 -2
  94. package/optimize/es/components/datagrid/utils/row_heights.js +4 -4
  95. package/optimize/es/components/date_picker/date_picker.js +1 -1
  96. package/optimize/es/components/drag_and_drop/drag_drop_context.js +1 -1
  97. package/optimize/es/components/drag_and_drop/draggable.js +2 -2
  98. package/optimize/es/components/drag_and_drop/droppable.js +1 -1
  99. package/optimize/es/components/drag_and_drop/index.js +3 -2
  100. package/optimize/es/components/highlight/highlight.js +2 -2
  101. package/optimize/es/components/inner_text/index.js +1 -2
  102. package/optimize/es/components/markdown_editor/markdown_actions.js +1 -1
  103. package/optimize/es/components/markdown_editor/markdown_editor_text_area.js +10 -4
  104. package/optimize/es/components/modal/confirm_modal.js +11 -24
  105. package/optimize/es/components/outside_click_detector/outside_click_detector.js +10 -11
  106. package/optimize/es/components/popover/wrapping_popover.js +1 -9
  107. package/optimize/es/components/portal/portal.js +33 -25
  108. package/optimize/es/components/timeline/timeline_item_icon.js +3 -3
  109. package/optimize/es/components/tour/tour_step.js +11 -13
  110. package/optimize/es/services/color/eui_palettes.js +7 -1
  111. package/optimize/es/services/color/index.js +1 -1
  112. package/optimize/es/services/index.js +1 -1
  113. package/optimize/es/services/theme/provider.js +7 -0
  114. package/optimize/es/services/time/timer.js +3 -5
  115. package/optimize/es/test/index.d.ts +36 -0
  116. package/optimize/es/test/index.js +2 -1
  117. package/optimize/es/test/react_version.js +71 -0
  118. package/optimize/es/test/rtl/component_helpers.js +1 -1
  119. package/optimize/es/test/rtl/index.js +2 -1
  120. package/optimize/es/test/rtl/render_hook.js +23 -0
  121. package/optimize/lib/components/datagrid/body/data_grid_cell.js +10 -9
  122. package/optimize/lib/components/datagrid/controls/data_grid_toolbar.js +36 -28
  123. package/optimize/lib/components/datagrid/controls/display_selector.js +2 -1
  124. package/optimize/lib/components/datagrid/utils/in_memory.js +2 -2
  125. package/optimize/lib/components/datagrid/utils/row_heights.js +4 -4
  126. package/optimize/lib/components/date_picker/date_picker.js +1 -1
  127. package/optimize/lib/components/drag_and_drop/drag_drop_context.js +2 -2
  128. package/optimize/lib/components/drag_and_drop/draggable.js +3 -3
  129. package/optimize/lib/components/drag_and_drop/droppable.js +2 -2
  130. package/optimize/lib/components/highlight/highlight.js +2 -2
  131. package/optimize/lib/components/inner_text/index.js +1 -8
  132. package/optimize/lib/components/markdown_editor/markdown_actions.js +1 -1
  133. package/optimize/lib/components/markdown_editor/markdown_editor_text_area.js +10 -4
  134. package/optimize/lib/components/modal/confirm_modal.js +10 -23
  135. package/optimize/lib/components/outside_click_detector/outside_click_detector.js +10 -11
  136. package/optimize/lib/components/popover/wrapping_popover.js +1 -9
  137. package/optimize/lib/components/portal/portal.js +33 -25
  138. package/optimize/lib/components/timeline/timeline_item_icon.js +6 -4
  139. package/optimize/lib/components/tour/tour_step.js +10 -12
  140. package/optimize/lib/services/color/eui_palettes.js +9 -2
  141. package/optimize/lib/services/color/index.js +7 -0
  142. package/optimize/lib/services/index.js +7 -0
  143. package/optimize/lib/services/theme/provider.js +10 -1
  144. package/optimize/lib/services/time/timer.js +3 -5
  145. package/optimize/lib/test/index.d.ts +36 -0
  146. package/optimize/lib/test/index.js +12 -0
  147. package/optimize/lib/test/react_version.js +84 -0
  148. package/optimize/lib/test/rtl/component_helpers.js +1 -1
  149. package/optimize/lib/test/rtl/index.js +13 -1
  150. package/optimize/lib/test/rtl/render_hook.js +29 -0
  151. package/package.json +23 -16
  152. package/test-env/components/combo_box/combo_box_options_list/combo_box_title.js +1 -3
  153. package/test-env/components/datagrid/body/data_grid_body.js +7 -7
  154. package/test-env/components/datagrid/body/data_grid_body_custom.js +7 -7
  155. package/test-env/components/datagrid/body/data_grid_body_virtualized.js +7 -7
  156. package/test-env/components/datagrid/body/data_grid_cell.js +14 -13
  157. package/test-env/components/datagrid/body/header/data_grid_control_header_cell.js +2 -2
  158. package/test-env/components/datagrid/body/header/data_grid_header_cell.js +1 -1
  159. package/test-env/components/datagrid/body/header/data_grid_header_row.js +5 -5
  160. package/test-env/components/datagrid/controls/data_grid_toolbar.js +36 -28
  161. package/test-env/components/datagrid/controls/display_selector.js +2 -1
  162. package/test-env/components/datagrid/data_grid.js +7 -7
  163. package/test-env/components/datagrid/utils/in_memory.js +4 -4
  164. package/test-env/components/datagrid/utils/row_heights.js +4 -4
  165. package/test-env/components/date_picker/date_picker.js +1 -1
  166. package/test-env/components/drag_and_drop/drag_drop_context.js +2 -2
  167. package/test-env/components/drag_and_drop/draggable.js +3 -3
  168. package/test-env/components/drag_and_drop/droppable.js +2 -2
  169. package/test-env/components/header/header_section/header_section_item_button.js +94 -0
  170. package/test-env/components/highlight/highlight.js +2 -2
  171. package/test-env/components/inline_edit/inline_edit_form.js +0 -52
  172. package/test-env/components/inner_text/index.js +1 -8
  173. package/test-env/components/markdown_editor/markdown_actions.js +1 -1
  174. package/test-env/components/markdown_editor/markdown_editor_text_area.js +10 -4
  175. package/test-env/components/modal/confirm_modal.js +10 -23
  176. package/test-env/components/outside_click_detector/outside_click_detector.js +10 -11
  177. package/test-env/components/page/page_template.js +8 -8
  178. package/test-env/components/popover/wrapping_popover.js +1 -9
  179. package/test-env/components/portal/portal.js +33 -25
  180. package/test-env/components/tabs/tabs.js +25 -0
  181. package/test-env/components/timeline/timeline_item_icon.js +6 -3
  182. package/test-env/components/tour/tour_step.js +10 -12
  183. package/test-env/services/color/eui_palettes.js +9 -2
  184. package/test-env/services/color/index.js +7 -0
  185. package/test-env/services/index.js +7 -0
  186. package/test-env/services/theme/provider.js +10 -1
  187. package/test-env/services/time/timer.js +3 -5
  188. package/test-env/test/index.js +12 -0
  189. package/test-env/test/react_version.js +84 -0
  190. package/test-env/test/rtl/component_helpers.js +1 -1
  191. package/test-env/test/rtl/index.js +13 -1
  192. package/test-env/test/rtl/render_hook.js +29 -0
  193. package/es/components/inner_text/render_to_text.js +0 -47
  194. package/lib/components/inner_text/render_to_text.js +0 -54
  195. package/optimize/es/components/inner_text/render_to_text.js +0 -42
  196. package/optimize/lib/components/inner_text/render_to_text.js +0 -52
  197. package/test-env/components/inner_text/render_to_text.js +0 -52
@@ -60,11 +60,11 @@ EuiDataGridControlHeaderCell.propTypes = {
60
60
  /**
61
61
  * Component to render for each row in the column
62
62
  */
63
- rowCellRender: _propTypes.default.oneOfType([_propTypes.default.func.isRequired, _propTypes.default.func.isRequired]).isRequired,
63
+ rowCellRender: _propTypes.default.oneOfType([_propTypes.default.func.isRequired, _propTypes.default.element.isRequired]).isRequired,
64
64
  /**
65
65
  * Component to render in the optional column footer
66
66
  */
67
- footerCellRender: _propTypes.default.oneOfType([_propTypes.default.func.isRequired, _propTypes.default.func.isRequired]),
67
+ footerCellRender: _propTypes.default.oneOfType([_propTypes.default.func.isRequired, _propTypes.default.element.isRequired]),
68
68
  /**
69
69
  * Optional props to pass to the column footer cell
70
70
  */
@@ -553,7 +553,7 @@ EuiDataGridHeaderCell.propTypes = {
553
553
  /**
554
554
  * Additional actions displayed as icon on hover / focus, and in the expanded view of the cell containing the value
555
555
  */
556
- cellActions: _propTypes.default.arrayOf(_propTypes.default.oneOfType([_propTypes.default.func.isRequired, _propTypes.default.func.isRequired]).isRequired),
556
+ cellActions: _propTypes.default.arrayOf(_propTypes.default.elementType.isRequired),
557
557
  /**
558
558
  * Configures the amount of cell action buttons immediately visible on a cell.
559
559
  * Any cell actions above this number will only display in the cell expansion popover.
@@ -106,11 +106,11 @@ EuiDataGridHeaderRow.propTypes = {
106
106
  /**
107
107
  * Component to render for each row in the column
108
108
  */
109
- rowCellRender: _propTypes.default.oneOfType([_propTypes.default.func.isRequired, _propTypes.default.func.isRequired]).isRequired,
109
+ rowCellRender: _propTypes.default.oneOfType([_propTypes.default.func.isRequired, _propTypes.default.element.isRequired]).isRequired,
110
110
  /**
111
111
  * Component to render in the optional column footer
112
112
  */
113
- footerCellRender: _propTypes.default.oneOfType([_propTypes.default.func.isRequired, _propTypes.default.func.isRequired]),
113
+ footerCellRender: _propTypes.default.oneOfType([_propTypes.default.func.isRequired, _propTypes.default.element.isRequired]),
114
114
  /**
115
115
  * Optional props to pass to the column footer cell
116
116
  */
@@ -136,11 +136,11 @@ EuiDataGridHeaderRow.propTypes = {
136
136
  /**
137
137
  * Component to render for each row in the column
138
138
  */
139
- rowCellRender: _propTypes.default.oneOfType([_propTypes.default.func.isRequired, _propTypes.default.func.isRequired]).isRequired,
139
+ rowCellRender: _propTypes.default.oneOfType([_propTypes.default.func.isRequired, _propTypes.default.element.isRequired]).isRequired,
140
140
  /**
141
141
  * Component to render in the optional column footer
142
142
  */
143
- footerCellRender: _propTypes.default.oneOfType([_propTypes.default.func.isRequired, _propTypes.default.func.isRequired]),
143
+ footerCellRender: _propTypes.default.oneOfType([_propTypes.default.func.isRequired, _propTypes.default.element.isRequired]),
144
144
  /**
145
145
  * Optional props to pass to the column footer cell
146
146
  */
@@ -542,7 +542,7 @@ EuiDataGridHeaderRow.propTypes = {
542
542
  /**
543
543
  * Additional actions displayed as icon on hover / focus, and in the expanded view of the cell containing the value
544
544
  */
545
- cellActions: _propTypes.default.arrayOf(_propTypes.default.oneOfType([_propTypes.default.func.isRequired, _propTypes.default.func.isRequired]).isRequired),
545
+ cellActions: _propTypes.default.arrayOf(_propTypes.default.elementType.isRequired),
546
546
  /**
547
547
  * Configures the amount of cell action buttons immediately visible on a cell.
548
548
  * Any cell actions above this number will only display in the cell expansion popover.
@@ -1,17 +1,21 @@
1
1
  "use strict";
2
2
 
3
3
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+ var _typeof3 = require("@babel/runtime/helpers/typeof");
4
5
  Object.defineProperty(exports, "__esModule", {
5
6
  value: true
6
7
  });
7
8
  exports.EuiDataGridToolbar = void 0;
8
9
  exports.checkOrDefaultToolBarDisplayOptions = checkOrDefaultToolBarDisplayOptions;
9
10
  exports.getNestedObjectOptions = getNestedObjectOptions;
10
- exports.renderAdditionalControls = renderAdditionalControls;
11
- var _react = _interopRequireDefault(require("react"));
11
+ exports.renderAdditionalControls = void 0;
12
+ var _typeof2 = _interopRequireDefault(require("@babel/runtime/helpers/typeof"));
13
+ var _react = _interopRequireWildcard(require("react"));
12
14
  var _accessibility = require("../../accessibility");
13
15
  var _utils = require("../../../utils");
14
16
  var _react2 = require("@emotion/react");
17
+ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
18
+ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof3(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; }
15
19
  /*
16
20
  * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
17
21
  * or more contributor license agreements. Licensed under the Elastic License
@@ -68,50 +72,54 @@ function checkOrDefaultToolBarDisplayOptions(arg, option) {
68
72
  return true;
69
73
  }
70
74
  }
71
- function renderAdditionalControls(toolbarVisibility, position) {
72
- var _additionalControlsOb;
75
+ var renderAdditionalControls = function renderAdditionalControls(toolbarVisibility, position) {
73
76
  if (typeof toolbarVisibility === 'boolean') return null;
74
77
  var _ref2 = toolbarVisibility || {},
75
78
  additionalControls = _ref2.additionalControls;
76
79
  if (!additionalControls) return null;
77
80
 
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;
81
+ // API backwards compatability: if the consumer passed a single ReactNode
82
+ // to `additionalControls`, default to the left append position.
83
+ if ( /*#__PURE__*/(0, _react.isValidElement)(additionalControls) && position === 'left.append') {
84
+ return additionalControls;
85
+ }
86
+ if ((0, _typeof2.default)(additionalControls) !== 'object') {
87
+ return null;
88
+ }
89
+ var handleLeftObjectConfig = function handleLeftObjectConfig(leftConfig) {
90
+ if (position === 'left.prepend') {
91
+ return leftConfig.prepend;
85
92
  }
86
- } else if (position === 'left.prepend') {
87
- if (leftPositionObj !== null && leftPositionObj !== void 0 && leftPositionObj.prepend) {
88
- return leftPositionObj.prepend;
93
+ if (position === 'left.append') {
94
+ return leftConfig.append;
89
95
  }
90
- } else if (position === 'left.append') {
91
- if (leftPositionObj !== null && leftPositionObj !== void 0 && leftPositionObj.append) {
92
- return leftPositionObj.append;
96
+ };
97
+ var handleObjectConfig = function handleObjectConfig(additionalControls) {
98
+ if (position === 'right') {
99
+ return additionalControls.right;
93
100
  }
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;
101
+ // API backwards compatability: If the consumer passed a single ReactNode
102
+ // to `additionalControls.left`, default to the left append position
103
+ if ( /*#__PURE__*/(0, _react.isValidElement)(additionalControls.left) && position === 'left.append') {
104
+ return additionalControls.left;
97
105
  }
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;
106
+ if (additionalControls.left && (0, _typeof2.default)(additionalControls.left) === 'object') {
107
+ return handleLeftObjectConfig(additionalControls.left);
101
108
  }
102
- }
103
- return null;
104
- }
109
+ };
110
+ var rendered = handleObjectConfig(additionalControls);
111
+ return rendered || null;
112
+ };
105
113
 
106
114
  /**
107
115
  * Utility helper for selectors/controls that allow nested options
108
116
  * (e.g. column selector, display selector)
109
117
  */
110
-
118
+ exports.renderAdditionalControls = renderAdditionalControls;
111
119
  function getNestedObjectOptions(controlOption, objectKey) {
112
120
  var _controlOption$object;
113
121
  // If the config is a boolean, nested options follow that boolean
114
- if (controlOption === false || controlOption === true) return controlOption;
122
+ if (typeof controlOption === 'boolean') return controlOption;
115
123
  // If config is not defined, default to enabled
116
124
  if (controlOption == null) return true;
117
125
  // Otherwise, type should be an object of boolean values - dive into it and return the value
@@ -133,7 +133,8 @@ var useDataGridDisplaySelector = function useDataGridDisplaySelector(showDisplay
133
133
  setUserRowHeightsOptions(rowHeightsOptions);
134
134
  }, [lineCount]);
135
135
  var setLineCountHeight = (0, _react.useCallback)(function (event) {
136
- var newLineCount = Number(event.target.value);
136
+ if (!event.currentTarget) return;
137
+ var newLineCount = Number(event.currentTarget.value);
137
138
  if (newLineCount < 1) return; // Don't let users set a 0 or negative line count
138
139
 
139
140
  setLineCount(newLineCount);
@@ -788,7 +788,7 @@ EuiDataGrid.propTypes = {
788
788
  /**
789
789
  * Additional actions displayed as icon on hover / focus, and in the expanded view of the cell containing the value
790
790
  */
791
- cellActions: _propTypes.default.arrayOf(_propTypes.default.oneOfType([_propTypes.default.func.isRequired, _propTypes.default.func.isRequired]).isRequired),
791
+ cellActions: _propTypes.default.arrayOf(_propTypes.default.elementType.isRequired),
792
792
  /**
793
793
  * Configures the amount of cell action buttons immediately visible on a cell.
794
794
  * Any cell actions above this number will only display in the cell expansion popover.
@@ -820,11 +820,11 @@ EuiDataGrid.propTypes = {
820
820
  /**
821
821
  * Component to render for each row in the column
822
822
  */
823
- rowCellRender: _propTypes.default.oneOfType([_propTypes.default.func.isRequired, _propTypes.default.func.isRequired]).isRequired,
823
+ rowCellRender: _propTypes.default.oneOfType([_propTypes.default.func.isRequired, _propTypes.default.element.isRequired]).isRequired,
824
824
  /**
825
825
  * Component to render in the optional column footer
826
826
  */
827
- footerCellRender: _propTypes.default.oneOfType([_propTypes.default.func.isRequired, _propTypes.default.func.isRequired]),
827
+ footerCellRender: _propTypes.default.oneOfType([_propTypes.default.func.isRequired, _propTypes.default.element.isRequired]),
828
828
  /**
829
829
  * Optional props to pass to the column footer cell
830
830
  */
@@ -854,11 +854,11 @@ EuiDataGrid.propTypes = {
854
854
  /**
855
855
  * Component to render for each row in the column
856
856
  */
857
- rowCellRender: _propTypes.default.oneOfType([_propTypes.default.func.isRequired, _propTypes.default.func.isRequired]).isRequired,
857
+ rowCellRender: _propTypes.default.oneOfType([_propTypes.default.func.isRequired, _propTypes.default.element.isRequired]).isRequired,
858
858
  /**
859
859
  * Component to render in the optional column footer
860
860
  */
861
- footerCellRender: _propTypes.default.oneOfType([_propTypes.default.func.isRequired, _propTypes.default.func.isRequired]),
861
+ footerCellRender: _propTypes.default.oneOfType([_propTypes.default.func.isRequired, _propTypes.default.element.isRequired]),
862
862
  /**
863
863
  * Optional props to pass to the column footer cell
864
864
  */
@@ -933,7 +933,7 @@ EuiDataGrid.propTypes = {
933
933
  * allowing hooks, context, and other React concepts to be used. The function receives #EuiDataGridCellValueElementProps
934
934
  * as its only argument.
935
935
  */
936
- renderCellValue: _propTypes.default.oneOfType([_propTypes.default.func.isRequired, _propTypes.default.func.isRequired]).isRequired,
936
+ renderCellValue: _propTypes.default.oneOfType([_propTypes.default.func.isRequired, _propTypes.default.element.isRequired]).isRequired,
937
937
  /**
938
938
  * An optional function that can be used to completely customize the rendering of cell popovers.
939
939
  *
@@ -952,7 +952,7 @@ EuiDataGrid.propTypes = {
952
952
  * allowing hooks, context, and other React concepts to be used. The function receives #EuiDataGridCellValueElementProps
953
953
  * as its only argument.
954
954
  */
955
- renderFooterCellValue: _propTypes.default.oneOfType([_propTypes.default.func.isRequired, _propTypes.default.func.isRequired]),
955
+ renderFooterCellValue: _propTypes.default.oneOfType([_propTypes.default.func.isRequired, _propTypes.default.element.isRequired]),
956
956
  /**
957
957
  * An optional function called to completely customize and control the rendering of
958
958
  * EuiDataGrid's body and cell placement. This can be used to, e.g. remove EuiDataGrid's
@@ -154,9 +154,9 @@ var EuiDataGridInMemoryRenderer = function EuiDataGridInMemoryRenderer(_ref) {
154
154
  var cellDivs = documentFragment.childNodes[0].childNodes;
155
155
  for (var i = 0; i < cellDivs.length; i++) {
156
156
  var cellDiv = cellDivs[i];
157
- var _rowIndex = parseInt(cellDiv.getAttribute('data-dg-row'), 10);
157
+ var rowIndex = parseInt(cellDiv.getAttribute('data-dg-row'), 10);
158
158
  var column = cellDiv.getAttribute('data-dg-column');
159
- onCellRender(_rowIndex, column, getElementText(cellDiv));
159
+ onCellRender(rowIndex, column, getElementText(cellDiv));
160
160
  }
161
161
  // changes to documentFragment.children is reflected by `cells`
162
162
  // eslint-disable-next-line react-hooks/exhaustive-deps
@@ -591,7 +591,7 @@ EuiDataGridInMemoryRenderer.propTypes = {
591
591
  /**
592
592
  * Additional actions displayed as icon on hover / focus, and in the expanded view of the cell containing the value
593
593
  */
594
- cellActions: _propTypes.default.arrayOf(_propTypes.default.oneOfType([_propTypes.default.func.isRequired, _propTypes.default.func.isRequired]).isRequired),
594
+ cellActions: _propTypes.default.arrayOf(_propTypes.default.elementType.isRequired),
595
595
  /**
596
596
  * Configures the amount of cell action buttons immediately visible on a cell.
597
597
  * Any cell actions above this number will only display in the cell expansion popover.
@@ -600,7 +600,7 @@ EuiDataGridInMemoryRenderer.propTypes = {
600
600
  visibleCellActions: _propTypes.default.number
601
601
  }).isRequired).isRequired,
602
602
  rowCount: _propTypes.default.number.isRequired,
603
- renderCellValue: _propTypes.default.oneOfType([_propTypes.default.func.isRequired, _propTypes.default.func.isRequired]).isRequired,
603
+ renderCellValue: _propTypes.default.oneOfType([_propTypes.default.func.isRequired, _propTypes.default.element.isRequired]).isRequired,
604
604
  onCellRender: _propTypes.default.func.isRequired
605
605
  };
606
606
  function noop() {}
@@ -204,15 +204,15 @@ var RowHeightVirtualizationUtils = /*#__PURE__*/function (_RowHeightUtils) {
204
204
  var _this2;
205
205
  (0, _classCallCheck2.default)(this, RowHeightVirtualizationUtils);
206
206
  _this2 = _super.call(this);
207
- _this2.gridRef = gridRef;
208
- _this2.outerGridElementRef = outerGridElementRef;
209
- _this2.gridItemsRenderedRef = gridItemsRenderedRef;
210
- _this2.rerenderGridBodyRef = rerenderGridBodyRef;
211
207
  /**
212
208
  * Virtualization workarounds for auto height rows
213
209
  */
214
210
  (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this2), "timerId", void 0);
215
211
  (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this2), "lastUpdatedRow", Infinity);
212
+ _this2.gridRef = gridRef;
213
+ _this2.outerGridElementRef = outerGridElementRef;
214
+ _this2.gridItemsRenderedRef = gridItemsRenderedRef;
215
+ _this2.rerenderGridBodyRef = rerenderGridBodyRef;
216
216
  return _this2;
217
217
  }
218
218
  (0, _createClass2.default)(RowHeightVirtualizationUtils, [{
@@ -146,7 +146,7 @@ var EuiDatePicker = function EuiDatePicker(_ref) {
146
146
  inputValidityRef = _useState2[0],
147
147
  _setInputValidityRef = _useState2[1];
148
148
  var setInputValidityRef = (0, _react.useCallback)(function (ref) {
149
- _setInputValidityRef(ref === null || ref === void 0 ? void 0 : ref.input);
149
+ _setInputValidityRef((ref === null || ref === void 0 ? void 0 : ref.input) || null);
150
150
  }, []);
151
151
  (0, _form.useEuiValidatableControl)({
152
152
  isInvalid: isInvalid,
@@ -10,7 +10,7 @@ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends")
10
10
  var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
11
11
  var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
12
12
  var _react = _interopRequireWildcard(require("react"));
13
- var _reactBeautifulDnd = require("react-beautiful-dnd");
13
+ var _dnd = require("@hello-pangea/dnd");
14
14
  var _react2 = require("@emotion/react");
15
15
  var _excluded = ["onBeforeDragStart", "onDragStart", "onDragUpdate", "onDragEnd", "children"];
16
16
  /*
@@ -50,7 +50,7 @@ var EuiDragDropContext = function EuiDragDropContext(_ref) {
50
50
  onDragEnd(result, provided);
51
51
  }
52
52
  };
53
- return (0, _react2.jsx)(_reactBeautifulDnd.DragDropContext, (0, _extends2.default)({
53
+ return (0, _react2.jsx)(_dnd.DragDropContext, (0, _extends2.default)({
54
54
  onBeforeDragStart: onBeforeDragStart,
55
55
  onDragStart: euiOnDragStart,
56
56
  onDragUpdate: onDragUpdate,
@@ -11,7 +11,7 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de
11
11
  var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
12
12
  var _react = _interopRequireWildcard(require("react"));
13
13
  var _propTypes = _interopRequireDefault(require("prop-types"));
14
- var _reactBeautifulDnd = require("react-beautiful-dnd");
14
+ var _dnd = require("@hello-pangea/dnd");
15
15
  var _classnames = _interopRequireDefault(require("classnames"));
16
16
  var _droppable = require("./droppable");
17
17
  var _react2 = require("@emotion/react");
@@ -54,7 +54,7 @@ var EuiDraggable = function EuiDraggable(_ref) {
54
54
  rest = (0, _objectWithoutProperties2.default)(_ref, _excluded);
55
55
  var _useContext = (0, _react.useContext)(_droppable.EuiDroppableContext),
56
56
  cloneItems = _useContext.cloneItems;
57
- return (0, _react2.jsx)(_reactBeautifulDnd.Draggable, (0, _extends2.default)({
57
+ return (0, _react2.jsx)(_dnd.Draggable, (0, _extends2.default)({
58
58
  draggableId: draggableId,
59
59
  index: index,
60
60
  isDragDisabled: isDragDisabled
@@ -72,7 +72,7 @@ var EuiDraggable = function EuiDraggable(_ref) {
72
72
  'euiDraggable__item--isDragging': snapshot.isDragging,
73
73
  'euiDraggable__item--isDropAnimating': snapshot.isDropAnimating
74
74
  });
75
- var DraggableElement = typeof children === 'function' ? children(provided, snapshot, rubric) : children; // as specified by `DraggableProps`
75
+ var DraggableElement = typeof children === 'function' ? children(provided, snapshot, rubric) : children;
76
76
  return (0, _react2.jsx)(_react.Fragment, null, (0, _react2.jsx)("div", (0, _extends2.default)({}, provided.draggableProps, !customDragHandle ? provided.dragHandleProps : {}, {
77
77
  ref: provided.innerRef,
78
78
  "data-test-subj": dataTestSubj,
@@ -10,7 +10,7 @@ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends")
10
10
  var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
11
11
  var _react = _interopRequireWildcard(require("react"));
12
12
  var _propTypes = _interopRequireDefault(require("prop-types"));
13
- var _reactBeautifulDnd = require("react-beautiful-dnd");
13
+ var _dnd = require("@hello-pangea/dnd");
14
14
  var _classnames = _interopRequireDefault(require("classnames"));
15
15
  var _drag_drop_context = require("./drag_drop_context");
16
16
  var _react2 = require("@emotion/react");
@@ -58,7 +58,7 @@ var EuiDroppable = function EuiDroppable(_ref) {
58
58
  var _useContext = (0, _react.useContext)(_drag_drop_context.EuiDragDropContextContext),
59
59
  isDraggingType = _useContext.isDraggingType;
60
60
  var dropIsDisabled = cloneDraggables ? true : isDropDisabled;
61
- return (0, _react2.jsx)(_reactBeautifulDnd.Droppable, (0, _extends2.default)({
61
+ return (0, _react2.jsx)(_dnd.Droppable, (0, _extends2.default)({
62
62
  isDropDisabled: dropIsDisabled,
63
63
  droppableId: droppableId,
64
64
  direction: direction,
@@ -9,6 +9,7 @@ exports.EuiHeaderSectionItemButton = void 0;
9
9
  var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
10
10
  var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
11
11
  var _react = _interopRequireWildcard(require("react"));
12
+ var _propTypes = _interopRequireDefault(require("prop-types"));
12
13
  var _classnames = _interopRequireDefault(require("classnames"));
13
14
  var _badge_notification = require("../../badge/notification_badge/badge_notification");
14
15
  var _icon = require("../../icon");
@@ -175,4 +176,97 @@ ref) {
175
176
  }, children), buttonNotification);
176
177
  });
177
178
  exports.EuiHeaderSectionItemButton = EuiHeaderSectionItemButton;
179
+ EuiHeaderSectionItemButton.propTypes = {
180
+ href: _propTypes.default.string,
181
+ onClick: _propTypes.default.func,
182
+ /**
183
+ * Any of the named color palette options.
184
+ * **`'ghost'` is set for deprecation. Use EuiThemeProvide.colorMode = 'dark' instead.**
185
+ */
186
+ /**
187
+ * Any of the named color palette options.
188
+ * **`'ghost'` is set for deprecation. Use EuiThemeProvide.colorMode = 'dark' instead.**
189
+ */
190
+ color: _propTypes.default.oneOfType([_propTypes.default.any.isRequired, _propTypes.default.oneOf(["ghost"])]),
191
+ size: _propTypes.default.any,
192
+ /**
193
+ * Ensure the text of the button sits flush to the left, right, or both sides of its container
194
+ */
195
+ /**
196
+ * Ensure the text of the button sits flush to the left, right, or both sides of its container
197
+ */
198
+ flush: _propTypes.default.any,
199
+ /**
200
+ * `disabled` is also allowed
201
+ */
202
+ /**
203
+ * `disabled` is also allowed
204
+ */
205
+ isDisabled: _propTypes.default.bool,
206
+ /**
207
+ * Force disables the button and changes the icon to a loading spinner
208
+ */
209
+ /**
210
+ * Force disables the button and changes the icon to a loading spinner
211
+ */
212
+ isLoading: _propTypes.default.bool,
213
+ /**
214
+ * Applies the boolean state as the `aria-pressed` property to create a toggle button.
215
+ * *Only use when the readable text does not change between states.*
216
+ */
217
+ /**
218
+ * Applies the boolean state as the `aria-pressed` property to create a toggle button.
219
+ * *Only use when the readable text does not change between states.*
220
+ */
221
+ isSelected: _propTypes.default.bool,
222
+ target: _propTypes.default.string,
223
+ rel: _propTypes.default.string,
224
+ type: _propTypes.default.oneOf(["button", "submit"]),
225
+ buttonRef: _propTypes.default.any,
226
+ /**
227
+ * Object of props passed to the <span/> wrapping the button's content
228
+ */
229
+ /**
230
+ * Object of props passed to the <span/> wrapping the button's content
231
+ */
232
+ contentProps: _propTypes.default.shape({
233
+ className: _propTypes.default.string,
234
+ "aria-label": _propTypes.default.string,
235
+ "data-test-subj": _propTypes.default.string,
236
+ css: _propTypes.default.any
237
+ }),
238
+ /**
239
+ * Any `type` accepted by EuiIcon
240
+ */
241
+ iconType: _propTypes.default.oneOfType([_propTypes.default.oneOf(["accessibility", "addDataApp", "advancedSettingsApp", "agentApp", "aggregate", "analyzeEvent", "annotation", "apmApp", "apmTrace", "appSearchApp", "apps", "arrowDown", "arrowLeft", "arrowRight", "arrowUp", "arrowStart", "arrowEnd", "article", "asterisk", "at", "auditbeatApp", "beaker", "bell", "bellSlash", "beta", "bolt", "boxesHorizontal", "boxesVertical", "branch", "branchUser", "broom", "brush", "bug", "bullseye", "calendar", "canvasApp", "casesApp", "check", "checkInCircleFilled", "cheer", "classificationJob", "clock", "cloudDrizzle", "cloudStormy", "cloudSunny", "cluster", "codeApp", "color", "compute", "console", "consoleApp", "container", "continuityAbove", "continuityAboveBelow", "continuityBelow", "continuityWithin", "controlsHorizontal", "controlsVertical", "copy", "copyClipboard", "createAdvancedJob", "createMultiMetricJob", "createPopulationJob", "createSingleMetricJob", "cross", "crossClusterReplicationApp", "crosshairs", "currency", "cut", "dashboardApp", "dataVisualizer", "database", "desktop", "devToolsApp", "discoverApp", "discuss", "document", "documentEdit", "documentation", "documents", "dot", "dotInCircle", "doubleArrowLeft", "doubleArrowRight", "download", "editorAlignCenter", "editorAlignLeft", "editorAlignRight", "editorBold", "editorChecklist", "editorCodeBlock", "editorComment", "editorDistributeHorizontal", "editorDistributeVertical", "editorHeading", "editorItalic", "editorItemAlignBottom", "editorItemAlignCenter", "editorItemAlignLeft", "editorItemAlignMiddle", "editorItemAlignRight", "editorItemAlignTop", "editorLink", "editorOrderedList", "editorPositionBottomLeft", "editorPositionBottomRight", "editorPositionTopLeft", "editorPositionTopRight", "editorRedo", "editorStrike", "editorTable", "editorUnderline", "editorUndo", "editorUnorderedList", "email", "empty", "emsApp", "eql", "eraser", "error", "exit", "expand", "expandMini", "exportAction", "eye", "eyeClosed", "faceHappy", "faceNeutral", "faceSad", "filebeatApp", "filter", "filterExclude", "filterIgnore", "filterInclude", "filterInCircle", "flag", "fleetApp", "fold", "folderCheck", "folderClosed", "folderExclamation", "folderOpen", "frameNext", "framePrevious", "fullScreen", "fullScreenExit", "function", "gear", "gisApp", "glasses", "globe", "grab", "grabHorizontal", "graphApp", "grid", "grokApp", "heart", "heartbeatApp", "heatmap", "help", "home", "iInCircle", "image", "importAction", "indexClose", "indexEdit", "indexFlush", "indexManagementApp", "indexMapping", "indexOpen", "indexPatternApp", "indexRollupApp", "indexRuntime", "indexSettings", "indexTemporary", "infinity", "inputOutput", "inspect", "invert", "ip", "key", "keyboard", "kqlField", "kqlFunction", "kqlOperand", "kqlSelector", "kqlValue", "kubernetesNode", "kubernetesPod", "launch", "layers", "lensApp", "lettering", "lineDashed", "lineDotted", "lineSolid", "link", "list", "listAdd", "lock", "lockOpen", "logoAWS", "logoAWSMono", "logoAerospike", "logoApache", "logoAppSearch", "logoAzure", "logoAzureMono", "logoBeats", "logoBusinessAnalytics", "logoCeph", "logoCloud", "logoCloudEnterprise", "logoCode", "logoCodesandbox", "logoCouchbase", "logoDocker", "logoDropwizard", "logoElastic", "logoElasticStack", "logoElasticsearch", "logoEnterpriseSearch", "logoEtcd", "logoGCP", "logoGCPMono", "logoGithub", "logoGmail", "logoGolang", "logoGoogleG", "logoHAproxy", "logoIBM", "logoIBMMono", "logoKafka", "logoKibana", "logoKubernetes", "logoLogging", "logoLogstash", "logoMaps", "logoMemcached", "logoMetrics", "logoMongodb", "logoMySQL", "logoNginx", "logoObservability", "logoOsquery", "logoPhp", "logoPostgres", "logoPrometheus", "logoRabbitmq", "logoRedis", "logoSecurity", "logoSiteSearch", "logoSketch", "logoSlack", "logoUptime", "logoVulnerabilityManagement", "logoWebhook", "logoWindows", "logoWorkplaceSearch", "logsApp", "logstashFilter", "logstashIf", "logstashInput", "logstashOutput", "logstashQueue", "machineLearningApp", "magnet", "magnifyWithExclamation", "magnifyWithMinus", "magnifyWithPlus", "managementApp", "mapMarker", "memory", "menu", "menuDown", "menuLeft", "menuRight", "menuUp", "merge", "metricbeatApp", "metricsApp", "minimize", "minus", "minusInCircle", "minusInCircleFilled", "mobile", "monitoringApp", "moon", "namespace", "nested", "node", "notebookApp", "number", "offline", "online", "outlierDetectionJob", "package", "packetbeatApp", "pageSelect", "pagesSelect", "paperClip", "partial", "pause", "payment", "pencil", "percent", "pin", "pinFilled", "pipelineApp", "pivot", "play", "playFilled", "plus", "plusInCircle", "plusInCircleFilled", "popout", "push", "questionInCircle", "quote", "recentlyViewedApp", "refresh", "regressionJob", "reporter", "reportingApp", "returnKey", "save", "savedObjectsApp", "scale", "search", "searchProfilerApp", "securityAnalyticsApp", "securityApp", "securitySignal", "securitySignalDetected", "securitySignalResolved", "sessionViewer", "shard", "share", "snowflake", "sortAscending", "sortDescending", "sortDown", "sortLeft", "sortRight", "sortUp", "sortable", "spaces", "spacesApp", "sparkles", "sqlApp", "starEmpty", "starEmptySpace", "starFilled", "starFilledSpace", "starMinusEmpty", "starMinusFilled", "starPlusEmpty", "starPlusFilled", "stats", "stop", "stopFilled", "stopSlash", "storage", "string", "submodule", "sun", "swatchInput", "symlink", "tableDensityCompact", "tableDensityExpanded", "tableDensityNormal", "tableOfContents", "tag", "tear", "temperature", "timeline", "timelineWithArrow", "timelionApp", "timeRefresh", "timeslider", "training", "trash", "unfold", "unlink", "upgradeAssistantApp", "uptimeApp", "user", "userAvatar", "users", "usersRolesApp", "vector", "videoPlayer", "visArea", "visAreaStacked", "visBarHorizontal", "visBarHorizontalStacked", "visBarVertical", "visBarVerticalStacked", "visGauge", "visGoal", "visLine", "visMapCoordinate", "visMapRegion", "visMetric", "visPie", "visTable", "visTagCloud", "visText", "visTimelion", "visVega", "visVisualBuilder", "visualizeApp", "vulnerabilityManagementApp", "warning", "alert", "watchesApp", "wordWrap", "wordWrapDisabled", "workplaceSearchApp", "wrench", "tokenAlias", "tokenAnnotation", "tokenArray", "tokenBinary", "tokenBoolean", "tokenClass", "tokenCompletionSuggester", "tokenConstant", "tokenDate", "tokenDenseVector", "tokenElement", "tokenEnum", "tokenEnumMember", "tokenEvent", "tokenException", "tokenField", "tokenFile", "tokenFlattened", "tokenFunction", "tokenGeo", "tokenHistogram", "tokenInterface", "tokenIP", "tokenJoin", "tokenKey", "tokenKeyword", "tokenMethod", "tokenMetricCounter", "tokenMetricGauge", "tokenModule", "tokenNamespace", "tokenNested", "tokenNull", "tokenNumber", "tokenObject", "tokenOperator", "tokenPackage", "tokenParameter", "tokenPercolator", "tokenProperty", "tokenRange", "tokenRankFeature", "tokenRankFeatures", "tokenRepo", "tokenSearchType", "tokenShape", "tokenString", "tokenStruct", "tokenSymbol", "tokenTag", "tokenText", "tokenTokenCount", "tokenVariable"]).isRequired, _propTypes.default.string.isRequired, _propTypes.default.elementType.isRequired]),
242
+ /**
243
+ * Can only be one side `left` or `right`
244
+ */
245
+ iconSide: _propTypes.default.oneOfType([_propTypes.default.any.isRequired, _propTypes.default.oneOf([undefined])]),
246
+ /**
247
+ * Object of props passed to the <span/> wrapping the content's text/children only (not icon)
248
+ */
249
+ textProps: _propTypes.default.shape({
250
+ className: _propTypes.default.string,
251
+ "aria-label": _propTypes.default.string,
252
+ "data-test-subj": _propTypes.default.string,
253
+ css: _propTypes.default.any,
254
+ ref: _propTypes.default.any,
255
+ "data-text": _propTypes.default.string
256
+ }),
257
+ iconSize: _propTypes.default.any,
258
+ className: _propTypes.default.string,
259
+ "aria-label": _propTypes.default.string,
260
+ "data-test-subj": _propTypes.default.string,
261
+ css: _propTypes.default.any,
262
+ /**
263
+ * Inserts the node into a EuiBadgeNotification and places it appropriately against the button.
264
+ * Or pass `true` to render a simple dot
265
+ */
266
+ notification: _propTypes.default.oneOfType([_propTypes.default.node.isRequired, _propTypes.default.bool.isRequired]),
267
+ /**
268
+ * Changes the color of the notification background
269
+ */
270
+ notificationColor: _propTypes.default.any
271
+ };
178
272
  EuiHeaderSectionItemButton.displayName = 'EuiHeaderSectionItemButton';
@@ -54,9 +54,9 @@ var highlight = function highlight(searchSubject, searchValue, isStrict, highlig
54
54
  var preMatch = searchSubject.substring(0, indexOfMatch);
55
55
  var match = searchSubject.substring(indexOfMatch, indexOfMatch + searchValue.length);
56
56
  var postMatch = searchSubject.substring(indexOfMatch + searchValue.length);
57
- return (0, _react2.jsx)(_react.Fragment, null, preMatch, (0, _react2.jsx)(_mark.EuiMark, {
57
+ return (0, _react2.jsx)(_react.Fragment, null, preMatch || undefined, (0, _react2.jsx)(_mark.EuiMark, {
58
58
  hasScreenReaderHelpText: hasScreenReaderHelpText
59
- }, match), postMatch);
59
+ }, match), postMatch || undefined);
60
60
  };
61
61
  var getHightlightWords = function getHightlightWords(searchSubject, searchValue, isStrict) {
62
62
  var regex = new RegExp(searchValue, isStrict ? 'g' : 'gi');
@@ -294,58 +294,6 @@ var EuiInlineEditForm = function EuiInlineEditForm(_ref) {
294
294
  };
295
295
  exports.EuiInlineEditForm = EuiInlineEditForm;
296
296
  EuiInlineEditForm.propTypes = {
297
- className: _propTypes.default.string,
298
- "aria-label": _propTypes.default.string,
299
- "data-test-subj": _propTypes.default.string,
300
- css: _propTypes.default.any,
301
- defaultValue: _propTypes.default.string.isRequired,
302
- placeholder: _propTypes.default.string,
303
- /**
304
- * Callback that fires when a user clicks the save button.
305
- * Passes the current edited text value as an argument.
306
- *
307
- * To validate the value of the edited text, pass back a boolean flag.
308
- * If `false`, EuiInlineEdit will remain in edit mode, where loading or invalid states can be set.
309
- * If `true`, EuiInlineEdit will return to read mode.
310
- */
311
- onSave: _propTypes.default.func,
312
- /**
313
- * Form label that appears above the form control.
314
- * This is required for accessibility because there is no visual label on the input.
315
- */
316
- inputAriaLabel: _propTypes.default.string.isRequired,
317
- /**
318
- * Starts the component in edit mode
319
- */
320
- startWithEditOpen: _propTypes.default.bool,
321
- /**
322
- * Props that will be applied directly to the `EuiEmptyButton` displayed in read mode
323
- */
324
- readModeProps: _propTypes.default.any,
325
- /**
326
- * Multiple props objects that can be applied directly to various child components displayed in edit mode.
327
- * - `formRowProps` will be passed to `EuiFormRow`
328
- * - `inputProps` will be passed to `EuiFieldText`
329
- * - `saveButtonProps` & `cancelButtonProps` will be passed to their respective `EuiIconButton`s
330
- */
331
- editModeProps: _propTypes.default.shape({
332
- formRowProps: _propTypes.default.any,
333
- inputProps: _propTypes.default.any,
334
- saveButtonProps: _propTypes.default.any,
335
- cancelButtonProps: _propTypes.default.any
336
- }),
337
- /**
338
- * Loading state - only displayed in edit mode
339
- */
340
- isLoading: _propTypes.default.bool,
341
- /**
342
- * Invalid state - only displayed edit mode
343
- */
344
- isInvalid: _propTypes.default.bool,
345
- /**
346
- * Locks inline edit in read mode and displays the text value
347
- */
348
- isReadOnly: _propTypes.default.bool,
349
297
  /**
350
298
  * Form sizes
351
299
  */
@@ -15,11 +15,4 @@ Object.defineProperty(exports, "useInnerText", {
15
15
  return _inner_text.useInnerText;
16
16
  }
17
17
  });
18
- Object.defineProperty(exports, "useRenderToText", {
19
- enumerable: true,
20
- get: function get() {
21
- return _render_to_text.useRenderToText;
22
- }
23
- });
24
- var _inner_text = require("./inner_text");
25
- var _render_to_text = require("./render_to_text");
18
+ var _inner_text = require("./inner_text");
@@ -51,8 +51,8 @@ SOFTWARE.
51
51
  var MarkdownActions = /*#__PURE__*/function () {
52
52
  function MarkdownActions(editorID, uiPlugins) {
53
53
  (0, _classCallCheck2.default)(this, MarkdownActions);
54
- this.editorID = editorID;
55
54
  (0, _defineProperty2.default)(this, "styles", void 0);
55
+ this.editorID = editorID;
56
56
  /**
57
57
  * This object is in the format:
58
58
  * [nameOfAction]: {[styles to apply]}
@@ -39,13 +39,19 @@ var EuiMarkdownEditorTextArea = /*#__PURE__*/(0, _react.forwardRef)(function (_r
39
39
  var classes = (0, _classnames.default)('euiMarkdownEditorTextArea', {
40
40
  'euiMarkdownEditorTextArea-isReadOnly': readOnly
41
41
  });
42
+
43
+ // Ignore invalid empty string style values
44
+ var style = {};
45
+ if (height !== '') {
46
+ style.height = height;
47
+ }
48
+ if (maxHeight !== '') {
49
+ style.maxHeight = maxHeight;
50
+ }
42
51
  return (0, _react2.jsx)("textarea", (0, _extends2.default)({
43
52
  ref: ref,
44
53
  "data-test-subj": "euiMarkdownEditorTextArea",
45
- style: {
46
- height: height,
47
- maxHeight: maxHeight
48
- },
54
+ style: style,
49
55
  className: classes
50
56
  }, rest, {
51
57
  rows: 6,