@elastic/eui 97.2.0 → 97.3.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 (64) hide show
  1. package/es/components/context_menu/context_menu_panel.js +17 -1
  2. package/es/components/datagrid/body/cell/data_grid_cell.js +31 -8
  3. package/es/components/datagrid/body/data_grid_body.js +8 -0
  4. package/es/components/datagrid/body/data_grid_body_custom.js +8 -1
  5. package/es/components/datagrid/body/data_grid_body_virtualized.js +8 -1
  6. package/es/components/datagrid/controls/data_grid_toolbar.styles.js +2 -2
  7. package/es/components/datagrid/controls/display_selector.js +277 -207
  8. package/es/components/datagrid/data_grid.stories.utils.js +28 -2
  9. package/es/components/datagrid/data_grid.styles.js +1 -1
  10. package/es/components/datagrid/utils/grid_height_width.js +1 -1
  11. package/es/components/datagrid/utils/row_heights.js +29 -13
  12. package/es/components/header/header.styles.js +8 -1
  13. package/es/services/hooks/useDeepEqual.js +18 -6
  14. package/eui.d.ts +38 -10
  15. package/i18ntokens.json +88 -106
  16. package/lib/components/context_menu/context_menu_panel.js +17 -1
  17. package/lib/components/datagrid/body/cell/data_grid_cell.js +31 -8
  18. package/lib/components/datagrid/body/data_grid_body.js +8 -0
  19. package/lib/components/datagrid/body/data_grid_body_custom.js +8 -1
  20. package/lib/components/datagrid/body/data_grid_body_virtualized.js +8 -1
  21. package/lib/components/datagrid/controls/data_grid_toolbar.styles.js +2 -2
  22. package/lib/components/datagrid/controls/display_selector.js +275 -204
  23. package/lib/components/datagrid/data_grid.stories.utils.js +28 -2
  24. package/lib/components/datagrid/data_grid.styles.js +1 -1
  25. package/lib/components/datagrid/utils/grid_height_width.js +1 -1
  26. package/lib/components/datagrid/utils/row_heights.js +29 -13
  27. package/lib/components/header/header.styles.js +8 -1
  28. package/lib/services/hooks/useDeepEqual.js +17 -7
  29. package/optimize/es/components/context_menu/context_menu_panel.js +11 -1
  30. package/optimize/es/components/datagrid/body/cell/data_grid_cell.js +15 -8
  31. package/optimize/es/components/datagrid/body/data_grid_body_custom.js +0 -1
  32. package/optimize/es/components/datagrid/body/data_grid_body_virtualized.js +0 -1
  33. package/optimize/es/components/datagrid/controls/data_grid_toolbar.styles.js +2 -2
  34. package/optimize/es/components/datagrid/controls/display_selector.js +277 -207
  35. package/optimize/es/components/datagrid/data_grid.styles.js +1 -1
  36. package/optimize/es/components/datagrid/utils/grid_height_width.js +1 -1
  37. package/optimize/es/components/datagrid/utils/row_heights.js +29 -13
  38. package/optimize/es/components/header/header.styles.js +8 -1
  39. package/optimize/es/services/hooks/useDeepEqual.js +13 -6
  40. package/optimize/lib/components/context_menu/context_menu_panel.js +11 -1
  41. package/optimize/lib/components/datagrid/body/cell/data_grid_cell.js +15 -8
  42. package/optimize/lib/components/datagrid/body/data_grid_body_custom.js +0 -1
  43. package/optimize/lib/components/datagrid/body/data_grid_body_virtualized.js +0 -1
  44. package/optimize/lib/components/datagrid/controls/data_grid_toolbar.styles.js +2 -2
  45. package/optimize/lib/components/datagrid/controls/display_selector.js +274 -204
  46. package/optimize/lib/components/datagrid/data_grid.styles.js +1 -1
  47. package/optimize/lib/components/datagrid/utils/grid_height_width.js +1 -1
  48. package/optimize/lib/components/datagrid/utils/row_heights.js +29 -13
  49. package/optimize/lib/components/header/header.styles.js +8 -1
  50. package/optimize/lib/services/hooks/useDeepEqual.js +12 -5
  51. package/package.json +1 -1
  52. package/test-env/components/context_menu/context_menu_panel.js +17 -1
  53. package/test-env/components/datagrid/body/cell/data_grid_cell.js +31 -8
  54. package/test-env/components/datagrid/body/data_grid_body.js +8 -0
  55. package/test-env/components/datagrid/body/data_grid_body_custom.js +8 -1
  56. package/test-env/components/datagrid/body/data_grid_body_virtualized.js +8 -1
  57. package/test-env/components/datagrid/controls/data_grid_toolbar.styles.js +2 -2
  58. package/test-env/components/datagrid/controls/display_selector.js +274 -204
  59. package/test-env/components/datagrid/data_grid.stories.utils.js +28 -2
  60. package/test-env/components/datagrid/data_grid.styles.js +1 -1
  61. package/test-env/components/datagrid/utils/grid_height_width.js +1 -1
  62. package/test-env/components/datagrid/utils/row_heights.js +29 -13
  63. package/test-env/components/header/header.styles.js +8 -1
  64. package/test-env/services/hooks/useDeepEqual.js +12 -5
@@ -62,7 +62,7 @@ export var RowHeightUtils = /*#__PURE__*/function () {
62
62
  }
63
63
  }, {
64
64
  key: "getCalculatedHeight",
65
- value: function getCalculatedHeight(heightOption, defaultHeight, rowIndex, isRowHeightOverride) {
65
+ value: function getCalculatedHeight(heightOption, defaultHeight, rowIndex, rowHeightsOptions) {
66
66
  if (isObject(heightOption) && heightOption.height) {
67
67
  return Math.max(heightOption.height, defaultHeight);
68
68
  }
@@ -70,8 +70,13 @@ export var RowHeightUtils = /*#__PURE__*/function () {
70
70
  return Math.max(heightOption, defaultHeight);
71
71
  }
72
72
  if (isObject(heightOption) && heightOption.lineCount) {
73
- if (isRowHeightOverride) {
74
- return this.getRowHeight(rowIndex) || defaultHeight; // lineCount overrides are stored in the heights cache
73
+ var _ref = rowHeightsOptions || {},
74
+ autoBelowLineCount = _ref.autoBelowLineCount; // uses auto height cache
75
+ var isRowHeightOverride =
76
+ // lineCount overrides are stored in the heights cache
77
+ rowIndex != null && this.isRowHeightOverride(rowIndex, rowHeightsOptions);
78
+ if (autoBelowLineCount || isRowHeightOverride) {
79
+ return this.getRowHeight(rowIndex) || defaultHeight;
75
80
  } else {
76
81
  return defaultHeight; // default lineCount height is set in minRowHeight state in grid_row_body
77
82
  }
@@ -102,6 +107,14 @@ export var RowHeightUtils = /*#__PURE__*/function () {
102
107
  // Assumes both padding-top and bottom are the same
103
108
  return contentHeight + padding * 2;
104
109
  }
110
+ }, {
111
+ key: "isAutoBelowLineCount",
112
+ value: function isAutoBelowLineCount(options, option) {
113
+ var _this$getLineCount;
114
+ if (!(options !== null && options !== void 0 && options.autoBelowLineCount)) return false;
115
+ if (((_this$getLineCount = this.getLineCount(option)) !== null && _this$getLineCount !== void 0 ? _this$getLineCount : 0) > 1) return true;
116
+ return false;
117
+ }
105
118
 
106
119
  /**
107
120
  * Auto height utils
@@ -113,6 +126,9 @@ export var RowHeightUtils = /*#__PURE__*/function () {
113
126
  if (height === AUTO_HEIGHT) {
114
127
  return true;
115
128
  }
129
+ if (this.isAutoBelowLineCount(rowHeightsOptions, height)) {
130
+ return true;
131
+ }
116
132
  return false;
117
133
  }
118
134
  }, {
@@ -142,8 +158,8 @@ export var RowHeightUtils = /*#__PURE__*/function () {
142
158
  }, {
143
159
  key: "pruneHiddenColumnHeights",
144
160
  value: function pruneHiddenColumnHeights(visibleColumns) {
145
- var visibleColumnIds = new Set(visibleColumns.map(function (_ref) {
146
- var id = _ref.id;
161
+ var visibleColumnIds = new Set(visibleColumns.map(function (_ref2) {
162
+ var id = _ref2.id;
147
163
  return id;
148
164
  }));
149
165
  var didModify = false;
@@ -255,10 +271,10 @@ export var RowHeightVirtualizationUtils = /*#__PURE__*/function (_RowHeightUtils
255
271
  * Hook for instantiating RowHeightUtils, setting internal class vars,
256
272
  * and setting up various row-height-related side effects
257
273
  */
258
- export var useRowHeightUtils = function useRowHeightUtils(_ref2) {
259
- var virtualization = _ref2.virtualization,
260
- rowHeightsOptions = _ref2.rowHeightsOptions,
261
- columns = _ref2.columns;
274
+ export var useRowHeightUtils = function useRowHeightUtils(_ref3) {
275
+ var virtualization = _ref3.virtualization,
276
+ rowHeightsOptions = _ref3.rowHeightsOptions,
277
+ columns = _ref3.columns;
262
278
  var forceRenderRef = useLatest(useForceRender());
263
279
  var _useState = useState(function () {
264
280
  if (virtualization) {
@@ -291,9 +307,9 @@ export var useRowHeightUtils = function useRowHeightUtils(_ref2) {
291
307
  }, [rowHeightUtils, columns]);
292
308
  return rowHeightUtils;
293
309
  };
294
- export var useDefaultRowHeight = function useDefaultRowHeight(_ref3) {
295
- var rowHeightsOptions = _ref3.rowHeightsOptions,
296
- rowHeightUtils = _ref3.rowHeightUtils;
310
+ export var useDefaultRowHeight = function useDefaultRowHeight(_ref4) {
311
+ var rowHeightsOptions = _ref4.rowHeightsOptions,
312
+ rowHeightUtils = _ref4.rowHeightUtils;
297
313
  var _useContext = useContext(DataGridSortedContext),
298
314
  getCorrectRowIndex = _useContext.getCorrectRowIndex;
299
315
 
@@ -317,7 +333,7 @@ export var useDefaultRowHeight = function useDefaultRowHeight(_ref3) {
317
333
  // Account for row-specific height overrides
318
334
  var rowHeightOption = rowHeightUtils.getRowHeightOption(correctRowIndex, rowHeightsOptions);
319
335
  if (rowHeightOption) {
320
- rowHeight = rowHeightUtils.getCalculatedHeight(rowHeightOption, minRowHeight, correctRowIndex, rowHeightUtils.isRowHeightOverride(correctRowIndex, rowHeightsOptions));
336
+ rowHeight = rowHeightUtils.getCalculatedHeight(rowHeightOption, minRowHeight, correctRowIndex, rowHeightsOptions);
321
337
  }
322
338
 
323
339
  // Use the row-specific height if it exists, if not, fall back to the default
@@ -50,5 +50,12 @@ var euiHeaderDarkStyles = function euiHeaderDarkStyles(euiThemeContext) {
50
50
  var _euiFormVariables = euiFormVariables(euiThemeContext),
51
51
  controlPlaceholderText = _euiFormVariables.controlPlaceholderText;
52
52
  var backgroundColor = colorMode === 'DARK' ? shade(euiTheme.colors.lightestShade, 0.5) : shade(euiTheme.colors.darkestShade, 0.28);
53
- return "\n background-color: ".concat(backgroundColor, ";\n\n .euiHeaderLogo__text,\n .euiHeaderLink,\n .euiHeaderSectionItemButton {\n color: ").concat(euiTheme.colors.ghost, ";\n }\n\n .euiHeaderLink-isActive {\n color: ").concat(makeHighContrastColor(euiTheme.colors.primary)(backgroundColor), ";\n }\n\n .euiHeaderLogo,\n .euiHeaderLink,\n .euiHeaderSectionItemButton {\n &:focus {\n background-color: ").concat(shade(euiTheme.colors.primary, 0.5), ";\n }\n }\n\n .euiHeaderSectionItemButton__notification--badge {\n box-shadow: 0 0 0 ").concat(euiTheme.border.width.thin, " ").concat(backgroundColor, ";\n }\n\n .euiHeaderSectionItemButton__notification--dot {\n stroke: ").concat(backgroundColor, ";\n }\n\n .euiSelectableTemplateSitewide .euiFormControlLayout {\n background-color: transparent;\n\n &--group {\n border-color: ").concat(transparentize(euiTheme.colors.ghost, 0.3), ";\n }\n\n &:not(:focus-within) {\n /* Increase contrast of filled text to be more than placeholder text */\n color: ").concat(euiTheme.colors.ghost, ";\n\n input {\n /* Increase contrast of placeholder text */\n &::placeholder {\n color: ").concat(makeHighContrastColor(controlPlaceholderText, 8)(backgroundColor), ";\n }\n\n /* Inherit color from form control layout */\n color: inherit;\n background-color: transparent;\n }\n\n .euiFormControlLayout__append,\n .euiFormControlLayout__prepend {\n background-color: transparent;\n }\n\n .euiFormLabel {\n color: inherit;\n }\n }\n }\n ");
53
+
54
+ // Specific color overrides for EuiSelectableTemplateSitewide
55
+ var selectableSitewide = {
56
+ color: euiTheme.colors.ghost,
57
+ borderColor: transparentize(euiTheme.colors.ghost, 0.3),
58
+ placeholderColor: makeHighContrastColor(controlPlaceholderText, 8)(backgroundColor)
59
+ };
60
+ return "\n background-color: ".concat(backgroundColor, ";\n\n .euiHeaderLogo__text,\n .euiHeaderLink,\n .euiHeaderSectionItemButton {\n color: ").concat(euiTheme.colors.ghost, ";\n }\n\n .euiHeaderLink-isActive {\n color: ").concat(makeHighContrastColor(euiTheme.colors.primary)(backgroundColor), ";\n }\n\n .euiHeaderLogo,\n .euiHeaderLink,\n .euiHeaderSectionItemButton {\n &:focus {\n background-color: ").concat(shade(euiTheme.colors.primary, 0.5), ";\n }\n }\n\n .euiHeaderSectionItemButton__notification--badge {\n box-shadow: 0 0 0 ").concat(euiTheme.border.width.thin, " ").concat(backgroundColor, ";\n }\n\n .euiHeaderSectionItemButton__notification--dot {\n stroke: ").concat(backgroundColor, ";\n }\n\n .euiSelectableTemplateSitewide .euiFormControlLayout {\n background-color: transparent;\n\n input {\n box-shadow: inset 0 0 0 ").concat(euiTheme.border.width.thin, " ").concat(selectableSitewide.borderColor, ";\n }\n\n &--group {\n border-color: ").concat(selectableSitewide.borderColor, ";\n\n input {\n box-shadow: none;\n }\n }\n\n &:not(:focus-within) {\n /* Increase contrast of filled text to be more than placeholder text */\n color: ").concat(selectableSitewide.color, ";\n\n input {\n /* Increase contrast of placeholder text */\n &::placeholder {\n color: ").concat(selectableSitewide.placeholderColor, ";\n }\n\n /* Inherit color from form control layout */\n color: inherit;\n background-color: transparent;\n }\n\n .euiFormControlLayout__append,\n .euiFormControlLayout__prepend {\n background-color: transparent;\n }\n\n .euiFormLabel {\n color: inherit;\n }\n }\n }\n ");
54
61
  };
@@ -1,3 +1,4 @@
1
+ import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
1
2
  /*
2
3
  * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
3
4
  * or more contributor license agreements. Licensed under the Elastic License
@@ -6,8 +7,9 @@
6
7
  * Side Public License, v 1.
7
8
  */
8
9
 
9
- import { useRef } from 'react';
10
+ import { useState } from 'react';
10
11
  import isEqual from 'lodash/isEqual';
12
+ import { useUpdateEffect } from './useUpdateEffect';
11
13
 
12
14
  /**
13
15
  * This hook is mostly a performance concern for third-party objs/arrays that EUI
@@ -15,9 +17,14 @@ import isEqual from 'lodash/isEqual';
15
17
  * reference on every rerender unless passed through this hook).
16
18
  */
17
19
  export var useDeepEqual = function useDeepEqual(object) {
18
- var ref = useRef(object);
19
- if (!isEqual(object, ref.current)) {
20
- ref.current = object;
21
- }
22
- return ref.current;
20
+ var _useState = useState(object),
21
+ _useState2 = _slicedToArray(_useState, 2),
22
+ memoizedObject = _useState2[0],
23
+ setMemoizedObject = _useState2[1];
24
+ useUpdateEffect(function () {
25
+ if (!isEqual(object, memoizedObject)) {
26
+ setMemoizedObject(object);
27
+ }
28
+ }, [object]);
29
+ return memoizedObject;
23
30
  };
@@ -164,7 +164,7 @@ var EuiContextMenuPanelClass = exports.EuiContextMenuPanelClass = /*#__PURE__*/f
164
164
  items: _this.props.items
165
165
  },
166
166
  menuItems: [],
167
- focusedItemIndex: props.onClose && props.initialFocusedItemIndex != null ? props.initialFocusedItemIndex + 1 // Account for panel title back button
167
+ focusedItemIndex: props.onClose && props.initialFocusedItemIndex != null && props.initialFocusedItemIndex !== -1 ? props.initialFocusedItemIndex + 1 // Account for panel title back button
168
168
  : props.initialFocusedItemIndex,
169
169
  currentHeight: undefined,
170
170
  waitingForInitialPopover: false,
@@ -207,6 +207,16 @@ var EuiContextMenuPanelClass = exports.EuiContextMenuPanelClass = /*#__PURE__*/f
207
207
  return;
208
208
  }
209
209
 
210
+ // `initialFocusedItemIndex={-1}` should only be used when preventing initial item focus is desired
211
+ if (_this2.state.focusedItemIndex === -1) {
212
+ // Resetting the focusedItemIndex to 0 allows keyboard up/down behavior to
213
+ // still work correctly later if the panel is manually tabbed into
214
+ return _this2.setState({
215
+ tookInitialFocus: true,
216
+ focusedItemIndex: 0
217
+ });
218
+ }
219
+
210
220
  // If an item should be focused, focus it (if it exists)
211
221
  if (_this2.state.focusedItemIndex != null && _this2.state.menuItems.length) {
212
222
  var focusedItem = _this2.state.menuItems[_this2.state.focusedItemIndex];
@@ -30,7 +30,7 @@ var _data_grid_cell_popover = require("./data_grid_cell_popover");
30
30
  var _focus_utils = require("./focus_utils");
31
31
  var _data_grid_cell = require("./data_grid_cell.styles");
32
32
  var _react2 = require("@emotion/react");
33
- var _excluded = ["renderCellValue", "cellContext", "column", "setCellContentsRef", "rowIndex", "colIndex", "rowHeight", "rowHeightUtils", "isControlColumn"],
33
+ var _excluded = ["renderCellValue", "cellContext", "column", "setCellContentsRef", "rowIndex", "colIndex", "rowHeightsOptions", "rowHeightUtils", "isControlColumn"],
34
34
  _excluded2 = ["width", "popoverContext", "interactiveCellId", "columnType", "className", "column", "style", "rowHeightUtils", "rowHeightsOptions", "rowManager", "pagination"],
35
35
  _excluded3 = ["isExpandable", "style", "className", "data-test-subj"],
36
36
  _excluded4 = ["columnId", "columnIndex", "rowIndex", "visibleRowIndex"];
@@ -54,15 +54,20 @@ var EuiDataGridCellContent = /*#__PURE__*/(0, _react.memo)(function (_ref) {
54
54
  setCellContentsRef = _ref.setCellContentsRef,
55
55
  rowIndex = _ref.rowIndex,
56
56
  colIndex = _ref.colIndex,
57
- rowHeight = _ref.rowHeight,
57
+ rowHeightsOptions = _ref.rowHeightsOptions,
58
58
  rowHeightUtils = _ref.rowHeightUtils,
59
59
  isControlColumn = _ref.isControlColumn,
60
60
  rest = (0, _objectWithoutProperties2.default)(_ref, _excluded);
61
61
  // React is more permissive than the TS types indicate
62
62
  var CellElement = renderCellValue;
63
+
64
+ // Cell height type
65
+ var rowHeight = rowHeightUtils === null || rowHeightUtils === void 0 ? void 0 : rowHeightUtils.getRowHeightOption(rowIndex, rowHeightsOptions);
63
66
  var cellHeightType = (0, _react.useMemo)(function () {
64
- return (rowHeightUtils === null || rowHeightUtils === void 0 ? void 0 : rowHeightUtils.getHeightType(rowHeight)) || 'default';
65
- }, [rowHeightUtils, rowHeight]);
67
+ return rowHeightUtils !== null && rowHeightUtils !== void 0 && rowHeightUtils.isAutoBelowLineCount(rowHeightsOptions, rowHeight) ? 'autoBelowLineCount' : (rowHeightUtils === null || rowHeightUtils === void 0 ? void 0 : rowHeightUtils.getHeightType(rowHeight)) || 'default';
68
+ }, [rowHeightUtils, rowHeight, rowHeightsOptions]);
69
+
70
+ // Classes and styles
66
71
  var classes = (0, _react.useMemo)(function () {
67
72
  return (0, _classnames.default)('euiDataGridRowCell__content', "euiDataGridRowCell__content--".concat(cellHeightType, "Height"), !isControlColumn && {
68
73
  'eui-textBreakWord': cellHeightType !== 'default',
@@ -73,9 +78,9 @@ var EuiDataGridCellContent = /*#__PURE__*/(0, _react.memo)(function (_ref) {
73
78
  var cssStyles = [styles.content.euiDataGridRowCell__content].concat((0, _toConsumableArray2.default)(isControlColumn ? [styles.content.controlColumn, styles.content.autoHeight] : [
74
79
  // Regular data cells should always inherit height from the row wrapper,
75
80
  // except for auto height
76
- cellHeightType === 'auto' ? styles.content.autoHeight : styles.content.defaultHeight]));
81
+ cellHeightType === 'auto' || cellHeightType === 'autoBelowLineCount' ? styles.content.autoHeight : styles.content.defaultHeight]));
77
82
  return (0, _react2.jsx)(RenderTruncatedCellContent, {
78
- hasLineCountTruncation: cellHeightType === 'lineCount' && !isControlColumn,
83
+ hasLineCountTruncation: (cellHeightType === 'lineCount' || cellHeightType === 'autoBelowLineCount') && !isControlColumn,
79
84
  rowHeight: rowHeight
80
85
  }, (0, _react2.jsx)("div", {
81
86
  ref: setCellContentsRef,
@@ -144,6 +149,9 @@ var EuiDataGridCell = exports.EuiDataGridCell = /*#__PURE__*/function (_Componen
144
149
  rowHeightsOptions = _this$props3.rowHeightsOptions,
145
150
  rowIndex = _this$props3.rowIndex;
146
151
  var rowHeightOption = rowHeightUtils === null || rowHeightUtils === void 0 ? void 0 : rowHeightUtils.getRowHeightOption(rowIndex, rowHeightsOptions);
152
+ if (rowHeightUtils !== null && rowHeightUtils !== void 0 && rowHeightUtils.isAutoBelowLineCount(rowHeightsOptions, rowHeightOption)) {
153
+ return; // Using auto height instead
154
+ }
147
155
  var isSingleLine = rowHeightOption == null; // Undefined rowHeightsOptions default to a single line
148
156
  var lineCount = isSingleLine ? 1 : rowHeightUtils === null || rowHeightUtils === void 0 ? void 0 : rowHeightUtils.getLineCount(rowHeightOption);
149
157
  if (lineCount) {
@@ -448,7 +456,6 @@ var EuiDataGridCell = exports.EuiDataGridCell = /*#__PURE__*/function (_Componen
448
456
  // column width, can be undefined
449
457
  lineHeight: (_rowHeightsOptions$li = rowHeightsOptions === null || rowHeightsOptions === void 0 ? void 0 : rowHeightsOptions.lineHeight) !== null && _rowHeightsOptions$li !== void 0 ? _rowHeightsOptions$li : undefined
450
458
  }, cellPropsStyle);
451
- var rowHeight = rowHeightUtils === null || rowHeightUtils === void 0 ? void 0 : rowHeightUtils.getRowHeightOption(rowIndex, rowHeightsOptions);
452
459
  var row = rowManager && !_utils.IS_JEST_ENVIRONMENT ? rowManager.getRow({
453
460
  rowIndex: rowIndex,
454
461
  visibleRowIndex: visibleRowIndex,
@@ -480,7 +487,7 @@ var EuiDataGridCell = exports.EuiDataGridCell = /*#__PURE__*/function (_Componen
480
487
  isExpandable: isExpandable,
481
488
  isExpanded: popoverIsOpen,
482
489
  setCellContentsRef: this.setCellContentsRef,
483
- rowHeight: rowHeight,
490
+ rowHeightsOptions: rowHeightsOptions,
484
491
  rowHeightUtils: rowHeightUtils,
485
492
  isControlColumn: isControlColumn,
486
493
  rowIndex: rowIndex,
@@ -79,7 +79,6 @@ var EuiDataGridBodyCustomRender = exports.EuiDataGridBodyCustomRender = /*#__PUR
79
79
  */
80
80
  var rowHeightUtils = (0, _row_heights.useRowHeightUtils)({
81
81
  rowHeightsOptions: rowHeightsOptions,
82
- gridStyles: gridStyles,
83
82
  columns: columns
84
83
  });
85
84
  var _useDefaultRowHeight = (0, _row_heights.useDefaultRowHeight)({
@@ -219,7 +219,6 @@ var EuiDataGridBodyVirtualized = exports.EuiDataGridBodyVirtualized = /*#__PURE_
219
219
  gridItemsRenderedRef: gridItemsRendered
220
220
  },
221
221
  rowHeightsOptions: rowHeightsOptions,
222
- gridStyles: gridStyles,
223
222
  columns: columns
224
223
  });
225
224
  var _useDefaultRowHeight = (0, _row_heights.useDefaultRowHeight)({
@@ -18,7 +18,7 @@ var euiDataGridToolbarStyles = exports.euiDataGridToolbarStyles = function euiDa
18
18
  var euiTheme = _ref.euiTheme;
19
19
  return {
20
20
  euiDataGrid__controls: /*#__PURE__*/(0, _react.css)("z-index:2;position:relative;display:flex;justify-content:space-between;align-items:center;gap:", euiTheme.size.base, ";", (0, _global_styling.logicalCSS)('padding-vertical', euiTheme.size.xs), " background-color:", euiTheme.colors.emptyShade, ";;label:euiDataGrid__controls;"),
21
- euiDataGrid__rightControls: /*#__PURE__*/(0, _react.css)("display:flex;justify-content:flex-end;flex-wrap:wrap;column-gap:", euiTheme.size.s, ";", (0, _global_styling.logicalCSS)('padding-right', euiTheme.size.xs), "&:only-child{", (0, _global_styling.logicalCSS)('margin-left', 'auto'), ";};label:euiDataGrid__rightControls;"),
22
- euiDataGrid__leftControls: /*#__PURE__*/(0, _react.css)("display:flex;flex-wrap:wrap;gap:", euiTheme.size.xxs, ";;label:euiDataGrid__leftControls;")
21
+ euiDataGrid__rightControls: /*#__PURE__*/(0, _react.css)("display:flex;justify-content:flex-end;align-items:center;flex-wrap:wrap;column-gap:", euiTheme.size.s, ";", (0, _global_styling.logicalCSS)('padding-right', euiTheme.size.xs), "&:only-child{", (0, _global_styling.logicalCSS)('margin-left', 'auto'), ";};label:euiDataGrid__rightControls;"),
22
+ euiDataGrid__leftControls: /*#__PURE__*/(0, _react.css)("display:flex;flex-wrap:wrap;align-items:center;gap:", euiTheme.size.xxs, ";;label:euiDataGrid__leftControls;")
23
23
  };
24
24
  };