@carbon/ibm-products 2.19.2 → 2.21.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (110) hide show
  1. package/css/index-full-carbon.css +147 -111
  2. package/css/index-full-carbon.css.map +1 -1
  3. package/css/index-full-carbon.min.css +1 -1
  4. package/css/index-full-carbon.min.css.map +1 -1
  5. package/css/index-without-carbon-released-only.css +28 -20
  6. package/css/index-without-carbon-released-only.css.map +1 -1
  7. package/css/index-without-carbon-released-only.min.css +1 -1
  8. package/css/index-without-carbon-released-only.min.css.map +1 -1
  9. package/css/index-without-carbon.css +28 -20
  10. package/css/index-without-carbon.css.map +1 -1
  11. package/css/index-without-carbon.min.css +1 -1
  12. package/css/index-without-carbon.min.css.map +1 -1
  13. package/css/index.css +51 -22
  14. package/css/index.css.map +1 -1
  15. package/css/index.min.css +1 -1
  16. package/css/index.min.css.map +1 -1
  17. package/es/components/ActionSet/ActionSet.js +3 -4
  18. package/es/components/AddSelect/AddSelectBody.js +2 -2
  19. package/es/components/AddSelect/AddSelectRow.js +2 -2
  20. package/es/components/Card/Card.js +1 -2
  21. package/es/components/Card/CardHeader.js +1 -2
  22. package/es/components/CreateFullPage/CreateFullPageStep.js +1 -2
  23. package/es/components/CreateTearsheet/CreateTearsheetStep.js +1 -2
  24. package/es/components/DataSpreadsheet/DataSpreadsheet.js +1 -2
  25. package/es/components/DataSpreadsheet/DataSpreadsheetBody.js +1 -2
  26. package/es/components/DataSpreadsheet/DataSpreadsheetHeader.js +1 -2
  27. package/es/components/Datagrid/Datagrid/DatagridContent.js +2 -7
  28. package/es/components/Datagrid/Datagrid/DatagridHeaderRow.js +6 -11
  29. package/es/components/Datagrid/Datagrid/DatagridRow.js +9 -10
  30. package/es/components/Datagrid/Datagrid/DraggableElement.js +1 -2
  31. package/es/components/Datagrid/Datagrid/addons/Filtering/FilterFlyout.js +61 -11
  32. package/es/components/Datagrid/Datagrid/addons/Filtering/FilterPanel.js +28 -14
  33. package/es/components/Datagrid/Datagrid/addons/Filtering/hooks/useFilters.js +1 -2
  34. package/es/components/Datagrid/Datagrid/addons/Filtering/hooks/useShouldDisableButtons.js +2 -3
  35. package/es/components/Datagrid/Datagrid/addons/Filtering/motion/variants.js +63 -41
  36. package/es/components/Datagrid/Datagrid/addons/Filtering/utils.js +1 -5
  37. package/es/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditButton/InlineEditButton.js +2 -3
  38. package/es/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditCell/InlineEditCell.js +2 -2
  39. package/es/components/Datagrid/useActionsColumn.js +1 -2
  40. package/es/components/Datagrid/useDefaultStringRenderer.js +1 -2
  41. package/es/components/Datagrid/useFiltering.js +1 -0
  42. package/es/components/Datagrid/useNestedRowExpander.js +1 -2
  43. package/es/components/Datagrid/useNestedRows.js +49 -33
  44. package/es/components/Datagrid/useOnRowClick.js +1 -1
  45. package/es/components/Datagrid/useSelectRows.js +1 -2
  46. package/es/components/Datagrid/useSortableColumns.js +1 -2
  47. package/es/components/Datagrid/useStickyColumn.js +3 -4
  48. package/es/components/Datagrid/utils/filterPropsForTesting.js +149 -0
  49. package/es/components/EditInPlace/EditInPlace.js +1 -2
  50. package/es/components/EditTearsheet/EditTearsheetForm.js +1 -2
  51. package/es/components/FilterSummary/FilterSummary.js +15 -12
  52. package/es/components/NotificationsPanel/NotificationsPanel.js +2 -3
  53. package/es/components/PageHeader/PageHeader.js +9 -11
  54. package/es/components/Saving/Saving.js +6 -6
  55. package/es/components/SidePanel/SidePanel.js +12 -7
  56. package/es/components/TagSet/TagSetOverflow.js +1 -2
  57. package/es/components/Tearsheet/Tearsheet.js +5 -0
  58. package/es/components/Tearsheet/TearsheetNarrow.js +5 -0
  59. package/es/components/Tearsheet/TearsheetShell.js +10 -10
  60. package/es/components/WebTerminal/WebTerminal.js +1 -2
  61. package/lib/components/ActionSet/ActionSet.js +3 -4
  62. package/lib/components/AddSelect/AddSelectBody.js +2 -2
  63. package/lib/components/AddSelect/AddSelectRow.js +2 -2
  64. package/lib/components/Card/Card.js +1 -2
  65. package/lib/components/Card/CardHeader.js +1 -2
  66. package/lib/components/CreateFullPage/CreateFullPageStep.js +1 -2
  67. package/lib/components/CreateTearsheet/CreateTearsheetStep.js +1 -2
  68. package/lib/components/DataSpreadsheet/DataSpreadsheet.js +1 -2
  69. package/lib/components/DataSpreadsheet/DataSpreadsheetBody.js +1 -2
  70. package/lib/components/DataSpreadsheet/DataSpreadsheetHeader.js +1 -2
  71. package/lib/components/Datagrid/Datagrid/DatagridContent.js +2 -7
  72. package/lib/components/Datagrid/Datagrid/DatagridHeaderRow.js +6 -11
  73. package/lib/components/Datagrid/Datagrid/DatagridRow.js +9 -10
  74. package/lib/components/Datagrid/Datagrid/DraggableElement.js +1 -2
  75. package/lib/components/Datagrid/Datagrid/addons/Filtering/FilterFlyout.js +60 -10
  76. package/lib/components/Datagrid/Datagrid/addons/Filtering/FilterPanel.js +27 -13
  77. package/lib/components/Datagrid/Datagrid/addons/Filtering/hooks/useFilters.js +1 -2
  78. package/lib/components/Datagrid/Datagrid/addons/Filtering/hooks/useShouldDisableButtons.js +2 -3
  79. package/lib/components/Datagrid/Datagrid/addons/Filtering/motion/variants.js +63 -41
  80. package/lib/components/Datagrid/Datagrid/addons/Filtering/utils.js +1 -5
  81. package/lib/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditButton/InlineEditButton.js +2 -3
  82. package/lib/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditCell/InlineEditCell.js +2 -2
  83. package/lib/components/Datagrid/useActionsColumn.js +1 -2
  84. package/lib/components/Datagrid/useDefaultStringRenderer.js +1 -2
  85. package/lib/components/Datagrid/useFiltering.js +1 -0
  86. package/lib/components/Datagrid/useNestedRowExpander.js +1 -2
  87. package/lib/components/Datagrid/useNestedRows.js +49 -33
  88. package/lib/components/Datagrid/useOnRowClick.js +1 -1
  89. package/lib/components/Datagrid/useSelectRows.js +1 -2
  90. package/lib/components/Datagrid/useSortableColumns.js +1 -2
  91. package/lib/components/Datagrid/useStickyColumn.js +3 -4
  92. package/lib/components/Datagrid/utils/filterPropsForTesting.js +156 -0
  93. package/lib/components/EditInPlace/EditInPlace.js +1 -2
  94. package/lib/components/EditTearsheet/EditTearsheetForm.js +1 -2
  95. package/lib/components/FilterSummary/FilterSummary.js +15 -12
  96. package/lib/components/NotificationsPanel/NotificationsPanel.js +2 -3
  97. package/lib/components/PageHeader/PageHeader.js +9 -11
  98. package/lib/components/Saving/Saving.js +6 -6
  99. package/lib/components/SidePanel/SidePanel.js +12 -7
  100. package/lib/components/TagSet/TagSetOverflow.js +1 -2
  101. package/lib/components/Tearsheet/Tearsheet.js +5 -0
  102. package/lib/components/Tearsheet/TearsheetNarrow.js +5 -0
  103. package/lib/components/Tearsheet/TearsheetShell.js +10 -10
  104. package/lib/components/WebTerminal/WebTerminal.js +1 -2
  105. package/package.json +4 -4
  106. package/scss/components/Datagrid/styles/_datagrid.scss +8 -0
  107. package/scss/components/Datagrid/styles/addons/_FilterFlyout.scss +11 -8
  108. package/scss/components/Saving/_saving.scss +6 -0
  109. package/scss/components/SidePanel/_side-panel.scss +9 -3
  110. package/scss/components/TagSet/_tag-set.scss +4 -1
@@ -34,7 +34,6 @@ var rowHeights = {
34
34
 
35
35
  // eslint-disable-next-line react/prop-types
36
36
  var DatagridRow = function DatagridRow(datagridState) {
37
- var _cx;
38
37
  var row = datagridState.row,
39
38
  rowSize = datagridState.rowSize,
40
39
  withNestedRows = datagridState.withNestedRows,
@@ -98,7 +97,7 @@ var DatagridRow = function DatagridRow(datagridState) {
98
97
  hoverHandler(event);
99
98
  }
100
99
  };
101
- var rowClassNames = (0, _classnames.default)("".concat(blockClass, "__carbon-row"), (_cx = {}, (0, _defineProperty2.default)(_cx, "".concat(blockClass, "__carbon-row-expanded"), row.isExpanded), (0, _defineProperty2.default)(_cx, "".concat(blockClass, "__carbon-row-expandable"), row.canExpand), (0, _defineProperty2.default)(_cx, "".concat(_settings.carbon.prefix, "--data-table--selected"), row.isSelected), _cx));
100
+ var rowClassNames = (0, _classnames.default)("".concat(blockClass, "__carbon-row"), (0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)({}, "".concat(blockClass, "__carbon-row-expanded"), row.isExpanded), "".concat(blockClass, "__carbon-row-expandable"), row.canExpand), "".concat(_settings.carbon.prefix, "--data-table--selected"), row.isSelected));
102
101
  var setAdditionalRowProps = function setAdditionalRowProps() {
103
102
  if (withNestedRows || withExpandedRows) {
104
103
  return {
@@ -107,6 +106,8 @@ var DatagridRow = function DatagridRow(datagridState) {
107
106
  }
108
107
  return {};
109
108
  };
109
+
110
+ // eslint-disable-next-line no-unused-vars
110
111
  var _row$getRowProps = row.getRowProps(),
111
112
  role = _row$getRowProps.role,
112
113
  rowProps = (0, _objectWithoutProperties2.default)(_row$getRowProps, _excluded);
@@ -121,11 +122,10 @@ var DatagridRow = function DatagridRow(datagridState) {
121
122
  onFocus: hoverHandler,
122
123
  onBlur: focusRemover,
123
124
  onKeyUp: handleOnKeyUp
124
- }, setAdditionalRowProps(), role === 'row' && {
125
- role: role
126
- }), row.cells.map(function (cell, index) {
127
- var _cell$column;
125
+ }, setAdditionalRowProps()), row.cells.map(function (cell, index) {
126
+ var _cell$column, _content$props;
128
127
  var cellProps = cell.getCellProps();
128
+ // eslint-disable-next-line no-unused-vars
129
129
  var children = cellProps.children,
130
130
  role = cellProps.role,
131
131
  restProps = (0, _objectWithoutProperties2.default)(cellProps, _excluded2);
@@ -136,13 +136,12 @@ var DatagridRow = function DatagridRow(datagridState) {
136
136
  key: cell.column.id
137
137
  });
138
138
  }
139
+ var title = content === null || content === void 0 || (_content$props = content.props) === null || _content$props === void 0 || (_content$props = _content$props.children[0]) === null || _content$props === void 0 || (_content$props = _content$props.props) === null || _content$props === void 0 ? void 0 : _content$props.value;
139
140
  return /*#__PURE__*/_react.default.createElement(_react2.TableCell, (0, _extends2.default)({
140
141
  className: (0, _classnames.default)("".concat(blockClass, "__cell"), (0, _defineProperty2.default)({}, "".concat(blockClass, "__expandable-row-cell"), row.canExpand && index === 0))
141
142
  }, restProps, {
142
- key: cell.column.id
143
- // avoid unnecessary role assignment to cells
144
- }, role === 'cell' && {
145
- role: role
143
+ key: cell.column.id,
144
+ title: title
146
145
  }), content);
147
146
  })), renderExpandedRow());
148
147
  };
@@ -25,7 +25,6 @@ var _sortable = require("@dnd-kit/sortable");
25
25
 
26
26
  var blockClass = "".concat(_settings.pkg.prefix, "--datagrid");
27
27
  var DraggableElement = function DraggableElement(_ref) {
28
- var _cx;
29
28
  var id = _ref.id,
30
29
  children = _ref.children,
31
30
  classList = _ref.classList,
@@ -57,7 +56,7 @@ var DraggableElement = function DraggableElement(_ref) {
57
56
  transition: transition
58
57
  };
59
58
  return /*#__PURE__*/_react.default.createElement("li", (0, _extends2.default)({
60
- className: (0, _classnames.default)(classList, "".concat(blockClass, "__draggable-handleHolder"), (_cx = {}, (0, _defineProperty2.default)(_cx, "".concat(blockClass, "__draggable-handleHolder--selected"), selected), (0, _defineProperty2.default)(_cx, "".concat(blockClass, "__draggable-handleHolder--sticky"), isSticky), (0, _defineProperty2.default)(_cx, "".concat(blockClass, "__draggable-handleHolder--dragging"), isDragging), _cx)),
59
+ className: (0, _classnames.default)(classList, "".concat(blockClass, "__draggable-handleHolder"), (0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)({}, "".concat(blockClass, "__draggable-handleHolder--selected"), selected), "".concat(blockClass, "__draggable-handleHolder--sticky"), isSticky), "".concat(blockClass, "__draggable-handleHolder--dragging"), isDragging)),
61
60
  id: id,
62
61
  ref: setNodeRef,
63
62
  style: style
@@ -18,11 +18,12 @@ var _settings = require("../../../../../settings");
18
18
  var _ActionSet = require("../../../../ActionSet");
19
19
  var _constants = require("./constants");
20
20
  var _hooks2 = require("./hooks");
21
+ var _layout = require("@carbon/layout");
21
22
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
22
23
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
23
24
  // @flow
24
25
  /**
25
- * Copyright IBM Corp. 2022, 2023
26
+ * Copyright IBM Corp. 2022, 2024
26
27
  *
27
28
  * This source code is licensed under the Apache-2.0 license found in the
28
29
  * LICENSE file in the root directory of this source tree.
@@ -30,18 +31,22 @@ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e;
30
31
 
31
32
  var blockClass = "".concat(_settings.pkg.prefix, "--datagrid");
32
33
  var componentClass = "".concat(blockClass, "-filter-flyout");
34
+ var defaults = {
35
+ flyoutIconDescription: 'Open filters',
36
+ title: 'Filter',
37
+ primaryActionLabel: 'Apply',
38
+ secondaryActionLabel: 'Cancel'
39
+ };
33
40
  var FilterFlyout = function FilterFlyout(_ref) {
34
- var _cx2;
35
- var _ref$updateMethod = _ref.updateMethod,
36
- updateMethod = _ref$updateMethod === void 0 ? _constants.BATCH : _ref$updateMethod,
41
+ var updateMethod = _ref.updateMethod,
37
42
  _ref$flyoutIconDescri = _ref.flyoutIconDescription,
38
- flyoutIconDescription = _ref$flyoutIconDescri === void 0 ? 'Open filters' : _ref$flyoutIconDescri,
43
+ flyoutIconDescription = _ref$flyoutIconDescri === void 0 ? defaults.flyoutIconDescription : _ref$flyoutIconDescri,
39
44
  _ref$filters = _ref.filters,
40
45
  filters = _ref$filters === void 0 ? [] : _ref$filters,
41
46
  _ref$title = _ref.title,
42
- title = _ref$title === void 0 ? 'Filter' : _ref$title,
47
+ title = _ref$title === void 0 ? defaults.title : _ref$title,
43
48
  _ref$primaryActionLab = _ref.primaryActionLabel,
44
- primaryActionLabel = _ref$primaryActionLab === void 0 ? 'Apply' : _ref$primaryActionLab,
49
+ primaryActionLabel = _ref$primaryActionLab === void 0 ? defaults.primaryActionLabel : _ref$primaryActionLab,
45
50
  _ref$onFlyoutOpen = _ref.onFlyoutOpen,
46
51
  onFlyoutOpen = _ref$onFlyoutOpen === void 0 ? function () {} : _ref$onFlyoutOpen,
47
52
  _ref$onFlyoutClose = _ref.onFlyoutClose,
@@ -51,7 +56,7 @@ var FilterFlyout = function FilterFlyout(_ref) {
51
56
  _ref$onCancel = _ref.onCancel,
52
57
  onCancel = _ref$onCancel === void 0 ? function () {} : _ref$onCancel,
53
58
  _ref$secondaryActionL = _ref.secondaryActionLabel,
54
- secondaryActionLabel = _ref$secondaryActionL === void 0 ? 'Cancel' : _ref$secondaryActionL,
59
+ secondaryActionLabel = _ref$secondaryActionL === void 0 ? defaults.secondaryActionLabel : _ref$secondaryActionL,
55
60
  setAllFilters = _ref.setAllFilters,
56
61
  _ref$data = _ref.data,
57
62
  data = _ref$data === void 0 ? [] : _ref$data,
@@ -62,6 +67,10 @@ var FilterFlyout = function FilterFlyout(_ref) {
62
67
  _useState2 = (0, _slicedToArray2.default)(_useState, 2),
63
68
  open = _useState2[0],
64
69
  setOpen = _useState2[1];
70
+ var _useState3 = (0, _react2.useState)(false),
71
+ _useState4 = (0, _slicedToArray2.default)(_useState3, 2),
72
+ stackedLayout = _useState4[0],
73
+ setStackedLayout = _useState4[1];
65
74
  var _useFilters = (0, _hooks2.useFilters)({
66
75
  updateMethod: updateMethod,
67
76
  filters: filters,
@@ -78,9 +87,13 @@ var FilterFlyout = function FilterFlyout(_ref) {
78
87
  renderFilter = _useFilters.renderFilter,
79
88
  filtersObjectArray = _useFilters.filtersObjectArray,
80
89
  lastAppliedFilters = _useFilters.lastAppliedFilters;
90
+ var width = _layout.breakpoints.md.width;
91
+ var mdPxWidth = parseInt(width) * 16;
81
92
 
82
93
  /** Refs */
83
94
  var filterFlyoutRef = (0, _react2.useRef)(null);
95
+ var flyoutInnerRef = (0, _react2.useRef)(null);
96
+ var flyoutFiltersContainerRef = (0, _react2.useRef)(null);
84
97
 
85
98
  /** State from hooks */
86
99
  var _useShouldDisableButt = (0, _hooks2.useShouldDisableButtons)({
@@ -92,6 +105,36 @@ var FilterFlyout = function FilterFlyout(_ref) {
92
105
  shouldDisableButtons = _useShouldDisableButt2[0],
93
106
  setShouldDisableButtons = _useShouldDisableButt2[1];
94
107
 
108
+ // Skip resize testing
109
+ /* istanbul ignore next */
110
+ var handleResize = function handleResize(current) {
111
+ var filterFlyoutRefPosition = flyoutInnerRef === null || flyoutInnerRef === void 0 ? void 0 : flyoutInnerRef.current.getBoundingClientRect();
112
+ var originalFlyoutWidth = parseInt(window.getComputedStyle(flyoutInnerRef === null || flyoutInnerRef === void 0 ? void 0 : flyoutInnerRef.current).getPropertyValue('width'));
113
+ // Check to see if left value from flyout getBoundingClientRect is a negative number
114
+ // If it is, that is the amount we need to subtract from the flyout width
115
+ if (Math.sign(filterFlyoutRefPosition.left) === -1) {
116
+ var newFlyoutWidth = originalFlyoutWidth - Math.abs(filterFlyoutRefPosition.left);
117
+ flyoutInnerRef.current.style.width = (0, _layout.px)(newFlyoutWidth);
118
+ }
119
+ // Check to see if left value from flyout getBoundingClientRect is a positive number or 0
120
+ // If it is, that is the amount we need to add to the flyout width until we reach the
121
+ // max-width of the flyout (642)
122
+ if (originalFlyoutWidth < 642 && Math.sign(filterFlyoutRefPosition.left) === 1 || Math.sign(filterFlyoutRefPosition.left).toString() === '0') {
123
+ var _newFlyoutWidth = originalFlyoutWidth + Math.abs(filterFlyoutRefPosition.left);
124
+ flyoutInnerRef.current.style.width = (0, _layout.px)(_newFlyoutWidth);
125
+ }
126
+ // Begin stacking filters at this specific point
127
+ if ((current === null || current === void 0 ? void 0 : current.innerWidth) <= mdPxWidth + 254) {
128
+ setStackedLayout(true);
129
+ } else {
130
+ setStackedLayout(false);
131
+ }
132
+ };
133
+ (0, _hooks.useWindowResize)(function (_ref2) {
134
+ var current = _ref2.current;
135
+ handleResize(current);
136
+ });
137
+
95
138
  /** Memos */
96
139
  var showActionSet = updateMethod === _constants.BATCH;
97
140
  var carbonPrefix = (0, _react.usePrefix)();
@@ -104,7 +147,12 @@ var FilterFlyout = function FilterFlyout(_ref) {
104
147
  var closeFlyout = function closeFlyout() {
105
148
  setOpen(false);
106
149
  onFlyoutClose();
150
+ flyoutInnerRef.current.style.width = (0, _layout.px)(642);
107
151
  };
152
+ (0, _react2.useEffect)(function () {
153
+ // Initialize flyout width
154
+ flyoutInnerRef.current.style.width = (0, _layout.px)(642);
155
+ }, []);
108
156
  var apply = function apply() {
109
157
  setAllFilters(filtersObjectArray);
110
158
  closeFlyout();
@@ -172,13 +220,15 @@ var FilterFlyout = function FilterFlyout(_ref) {
172
220
  className: (0, _classnames.default)("".concat(componentClass, "__trigger"), (0, _defineProperty2.default)({}, "".concat(componentClass, "__trigger--open"), open)),
173
221
  disabled: data.length === 0
174
222
  }, /*#__PURE__*/_react2.default.createElement(_icons.Filter, null)), /*#__PURE__*/_react2.default.createElement("div", {
175
- className: (0, _classnames.default)(componentClass, (_cx2 = {}, (0, _defineProperty2.default)(_cx2, "".concat(componentClass, "--open"), open), (0, _defineProperty2.default)(_cx2, "".concat(componentClass, "--batch"), showActionSet), (0, _defineProperty2.default)(_cx2, "".concat(componentClass, "--instant"), !showActionSet), _cx2))
223
+ className: (0, _classnames.default)(componentClass, (0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)({}, "".concat(componentClass, "--open"), open), "".concat(componentClass, "--batch"), showActionSet), "".concat(componentClass, "--instant"), !showActionSet)),
224
+ ref: flyoutInnerRef
176
225
  }, /*#__PURE__*/_react2.default.createElement("div", {
177
226
  className: "".concat(componentClass, "__inner-container")
178
227
  }, /*#__PURE__*/_react2.default.createElement("span", {
179
228
  className: "".concat(componentClass, "__title")
180
229
  }, title), /*#__PURE__*/_react2.default.createElement("div", {
181
- className: "".concat(componentClass, "__filters")
230
+ className: (0, _classnames.default)("".concat(componentClass, "__filters"), (0, _defineProperty2.default)({}, "".concat(componentClass, "__stacked"), stackedLayout)),
231
+ ref: flyoutFiltersContainerRef
182
232
  }, renderFilters())), renderActionSet()));
183
233
  };
184
234
  FilterFlyout.propTypes = {
@@ -25,7 +25,7 @@ var _layout = require("@carbon/layout");
25
25
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
26
26
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
27
27
  /**
28
- * Copyright IBM Corp. 2022, 2023
28
+ * Copyright IBM Corp. 2022, 2024
29
29
  *
30
30
  * This source code is licensed under the Apache-2.0 license found in the
31
31
  * LICENSE file in the root directory of this source tree.
@@ -36,14 +36,20 @@ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e;
36
36
  var blockClass = "".concat(_settings.pkg.prefix, "--datagrid");
37
37
  var componentClass = exports.componentClass = "".concat(blockClass, "-filter-panel");
38
38
  var MotionActionSet = (0, _framerMotion.motion)(_ActionSet.ActionSet);
39
+ var defaults = {
40
+ title: 'Filter',
41
+ closeIconDescription: 'Close filter panel',
42
+ primaryActionLabel: 'Apply',
43
+ secondaryActionLabel: 'Cancel',
44
+ searchLabelText: 'Filter search',
45
+ searchPlaceholder: 'Find filters'
46
+ };
39
47
  var FilterPanel = function FilterPanel(_ref) {
40
- var _cx;
41
48
  var _ref$title = _ref.title,
42
- title = _ref$title === void 0 ? 'Filter' : _ref$title,
49
+ title = _ref$title === void 0 ? defaults.title : _ref$title,
43
50
  _ref$closeIconDescrip = _ref.closeIconDescription,
44
- closeIconDescription = _ref$closeIconDescrip === void 0 ? 'Close filter panel' : _ref$closeIconDescrip,
45
- _ref$updateMethod = _ref.updateMethod,
46
- updateMethod = _ref$updateMethod === void 0 ? _constants.BATCH : _ref$updateMethod,
51
+ closeIconDescription = _ref$closeIconDescrip === void 0 ? defaults.closeIconDescription : _ref$closeIconDescrip,
52
+ updateMethod = _ref.updateMethod,
47
53
  filterSections = _ref.filterSections,
48
54
  setAllFilters = _ref.setAllFilters,
49
55
  _ref$onApply = _ref.onApply,
@@ -59,13 +65,13 @@ var FilterPanel = function FilterPanel(_ref) {
59
65
  _ref$filterPanelMinHe = _ref.filterPanelMinHeight,
60
66
  filterPanelMinHeight = _ref$filterPanelMinHe === void 0 ? 600 : _ref$filterPanelMinHe,
61
67
  _ref$primaryActionLab = _ref.primaryActionLabel,
62
- primaryActionLabel = _ref$primaryActionLab === void 0 ? 'Apply' : _ref$primaryActionLab,
68
+ primaryActionLabel = _ref$primaryActionLab === void 0 ? defaults.primaryActionLabel : _ref$primaryActionLab,
63
69
  _ref$secondaryActionL = _ref.secondaryActionLabel,
64
- secondaryActionLabel = _ref$secondaryActionL === void 0 ? 'Cancel' : _ref$secondaryActionL,
70
+ secondaryActionLabel = _ref$secondaryActionL === void 0 ? defaults.secondaryActionLabel : _ref$secondaryActionL,
65
71
  _ref$searchLabelText = _ref.searchLabelText,
66
- searchLabelText = _ref$searchLabelText === void 0 ? 'Filter search' : _ref$searchLabelText,
72
+ searchLabelText = _ref$searchLabelText === void 0 ? defaults.searchLabelText : _ref$searchLabelText,
67
73
  _ref$searchPlaceholde = _ref.searchPlaceholder,
68
- searchPlaceholder = _ref$searchPlaceholde === void 0 ? 'Find filters' : _ref$searchPlaceholde,
74
+ searchPlaceholder = _ref$searchPlaceholde === void 0 ? defaults.searchPlaceholder : _ref$searchPlaceholde,
69
75
  _ref$reactTableFilter = _ref.reactTableFiltersState,
70
76
  reactTableFiltersState = _ref$reactTableFilter === void 0 ? [] : _ref$reactTableFilter,
71
77
  _ref$autoHideFilters = _ref.autoHideFilters,
@@ -117,6 +123,7 @@ var FilterPanel = function FilterPanel(_ref) {
117
123
  _useShouldDisableButt2 = (0, _slicedToArray2.default)(_useShouldDisableButt, 2),
118
124
  shouldDisableButtons = _useShouldDisableButt2[0],
119
125
  setShouldDisableButtons = _useShouldDisableButt2[1];
126
+ var shouldReduceMotion = (0, _framerMotion.useReducedMotion)();
120
127
 
121
128
  /** Memos */
122
129
  var showActionSet = (0, _react2.useMemo)(function () {
@@ -159,6 +166,7 @@ var FilterPanel = function FilterPanel(_ref) {
159
166
  }],
160
167
  className: "".concat(componentClass, "__action-set"),
161
168
  ref: actionSetRef,
169
+ custom: shouldReduceMotion,
162
170
  variants: _variants.actionSetVariants
163
171
  });
164
172
  };
@@ -188,16 +196,19 @@ var FilterPanel = function FilterPanel(_ref) {
188
196
  var filterHeadingHeight = (_filterHeadingRef$cur = filterHeadingRef.current) === null || _filterHeadingRef$cur === void 0 ? void 0 : _filterHeadingRef$cur.getBoundingClientRect().height;
189
197
  var filterSearchHeight = (_filterSearchRef$curr = filterSearchRef.current) === null || _filterSearchRef$curr === void 0 ? void 0 : _filterSearchRef$curr.getBoundingClientRect().height;
190
198
  var actionSetHeight = (_actionSetRef$current = actionSetRef.current) === null || _actionSetRef$current === void 0 ? void 0 : _actionSetRef$current.getBoundingClientRect().height;
191
- var height = "calc(100vh - ".concat(filterHeadingHeight, "px - ").concat(showFilterSearch ? filterSearchHeight : 0, "px - ").concat(updateMethod === _constants.BATCH ? actionSetHeight : 0, "px)");
199
+ var height = "calc(100vh - ".concat(filterHeadingHeight, "px - ").concat( /* istanbul ignore next */
200
+ showFilterSearch ? filterSearchHeight : 0, "px - ").concat(updateMethod === _constants.BATCH ? actionSetHeight : 0, "px)");
192
201
  return height;
193
202
  };
194
203
  return /*#__PURE__*/_react2.default.createElement(_framerMotion.motion.div, {
195
204
  ref: filterPanelRef,
196
- className: (0, _classnames.default)(componentClass, "".concat(componentClass, "__container"), (_cx = {}, (0, _defineProperty2.default)(_cx, "".concat(componentClass, "--open"), panelOpen), (0, _defineProperty2.default)(_cx, "".concat(componentClass, "--batch"), showActionSet), (0, _defineProperty2.default)(_cx, "".concat(componentClass, "--instant"), !showActionSet), _cx)),
205
+ className: (0, _classnames.default)(componentClass, "".concat(componentClass, "__container"), (0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)({}, "".concat(componentClass, "--open"), panelOpen), "".concat(componentClass, "--batch"), showActionSet), "".concat(componentClass, "--instant"), !showActionSet)),
197
206
  initial: false,
198
207
  animate: panelOpen ? 'visible' : 'hidden',
208
+ custom: shouldReduceMotion,
199
209
  variants: _variants.panelVariants
200
210
  }, /*#__PURE__*/_react2.default.createElement(_framerMotion.motion.div, {
211
+ custom: shouldReduceMotion,
201
212
  variants: _variants.innerContainerVariants
202
213
  }, /*#__PURE__*/_react2.default.createElement("header", {
203
214
  ref: filterHeadingRef,
@@ -216,7 +227,10 @@ var FilterPanel = function FilterPanel(_ref) {
216
227
  tooltipPosition: "bottom",
217
228
  tooltipAlignment: "end",
218
229
  onClick: closePanel
219
- }), showFilterSearch && /*#__PURE__*/_react2.default.createElement("div", {
230
+ }), showFilterSearch &&
231
+ /*#__PURE__*/
232
+ /* istanbul ignore next */
233
+ _react2.default.createElement("div", {
220
234
  ref: filterSearchRef,
221
235
  className: "".concat(componentClass, "__search")
222
236
  }, /*#__PURE__*/_react2.default.createElement(_react.Layer, null, /*#__PURE__*/_react2.default.createElement(_react.Search, {
@@ -58,8 +58,7 @@ var useFilters = function useFilters(_ref2) {
58
58
  setAllFilters = _ref2.setAllFilters,
59
59
  variation = _ref2.variation,
60
60
  reactTableFiltersState = _ref2.reactTableFiltersState,
61
- _ref2$onCancel = _ref2.onCancel,
62
- onCancel = _ref2$onCancel === void 0 ? function () {} : _ref2$onCancel,
61
+ onCancel = _ref2.onCancel,
63
62
  panelOpen = _ref2.panelOpen,
64
63
  autoHideFilters = _ref2.autoHideFilters,
65
64
  isFetching = _ref2.isFetching;
@@ -9,7 +9,7 @@ var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/sli
9
9
  var _react = require("react");
10
10
  var _isEqual = _interopRequireDefault(require("lodash/isEqual"));
11
11
  /**
12
- * Copyright IBM Corp. 2023, 2023
12
+ * Copyright IBM Corp. 2023, 2024
13
13
  *
14
14
  * This source code is licensed under the Apache-2.0 license found in the
15
15
  * LICENSE file in the root directory of this source tree.
@@ -24,8 +24,7 @@ var _isEqual = _interopRequireDefault(require("lodash/isEqual"));
24
24
  * @returns {Array} returns a tuple of the state and setter function
25
25
  */
26
26
  var useShouldDisableButtons = function useShouldDisableButtons(_ref) {
27
- var _ref$initialValue = _ref.initialValue,
28
- initialValue = _ref$initialValue === void 0 ? true : _ref$initialValue,
27
+ var initialValue = _ref.initialValue,
29
28
  filtersState = _ref.filtersState,
30
29
  prevFiltersRef = _ref.prevFiltersRef;
31
30
  var _useState = (0, _react.useState)(initialValue),
@@ -6,56 +6,78 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.panelVariants = exports.innerContainerVariants = exports.actionSetVariants = void 0;
7
7
  var _motionConstants = require("../../../../../../global/js/utils/motionConstants");
8
8
  var _constants = require("../constants");
9
+ /**
10
+ * Copyright IBM Corp. 2023, 2024
11
+ *
12
+ * This source code is licensed under the Apache-2.0 license found in the
13
+ * LICENSE file in the root directory of this source tree.
14
+ */
15
+
9
16
  var panelVariants = exports.panelVariants = {
10
- hidden: {
11
- width: 0,
12
- overflow: 'hidden',
13
- transition: {
14
- duration: _motionConstants.DURATIONS.fast02,
15
- ease: _motionConstants.EASINGS.productive.exit,
16
- when: 'afterChildren'
17
- }
17
+ hidden: function hidden(shouldReduceMotion) {
18
+ return {
19
+ width: 0,
20
+ overflow: 'hidden',
21
+ transition: {
22
+ duration: shouldReduceMotion ? 0 : _motionConstants.DURATIONS.fast02,
23
+ ease: shouldReduceMotion ? 0 : _motionConstants.EASINGS.productive.exit,
24
+ when: 'afterChildren'
25
+ }
26
+ };
18
27
  },
19
- visible: {
20
- width: _constants.PANEL_WIDTH,
21
- overflow: 'visible',
22
- transition: {
23
- duration: _motionConstants.DURATIONS.moderate02,
24
- ease: _motionConstants.EASINGS.productive.entrance,
25
- when: 'beforeChildren'
26
- }
28
+ visible: function visible(shouldReduceMotion) {
29
+ return {
30
+ width: _constants.PANEL_WIDTH,
31
+ overflow: 'visible',
32
+ transition: {
33
+ duration: shouldReduceMotion ? 0 : _motionConstants.DURATIONS.moderate02,
34
+ ease: shouldReduceMotion ? 0 : _motionConstants.EASINGS.productive.entrance,
35
+ when: 'beforeChildren'
36
+ }
37
+ };
27
38
  }
28
39
  };
29
40
  var innerContainerVariants = exports.innerContainerVariants = {
30
- hidden: {
31
- opacity: 0,
32
- transition: {
33
- duration: _motionConstants.DURATIONS.fast01,
34
- ease: _motionConstants.EASINGS.productive.exit
35
- }
41
+ hidden: function hidden(shouldReduceMotion) {
42
+ return {
43
+ opacity: 0,
44
+ transition: {
45
+ duration: shouldReduceMotion ? _motionConstants.DURATIONS.moderate01 : _motionConstants.DURATIONS.fast01,
46
+ ease: shouldReduceMotion ? 0 : _motionConstants.EASINGS.productive.exit
47
+ }
48
+ };
36
49
  },
37
- visible: {
38
- opacity: 1,
39
- transition: {
40
- duration: _motionConstants.DURATIONS.fast02,
41
- ease: _motionConstants.EASINGS.productive.entrance,
42
- when: 'beforeChildren'
43
- }
50
+ visible: function visible(shouldReduceMotion) {
51
+ return {
52
+ opacity: 1,
53
+ transition: {
54
+ duration: shouldReduceMotion ? _motionConstants.DURATIONS.moderate01 : _motionConstants.DURATIONS.fast02,
55
+ ease: shouldReduceMotion ? 0 : _motionConstants.EASINGS.productive.entrance,
56
+ when: shouldReduceMotion ? null : 'beforeChildren'
57
+ }
58
+ };
44
59
  }
45
60
  };
46
61
  var actionSetVariants = exports.actionSetVariants = {
47
- hidden: {
48
- y: _constants.ACTION_SET_HEIGHT,
49
- transition: {
50
- duration: _motionConstants.DURATIONS.fast01,
51
- ease: _motionConstants.EASINGS.productive.exit
52
- }
62
+ hidden: function hidden(shouldReduceMotion) {
63
+ return {
64
+ y: shouldReduceMotion ? 0 : _constants.ACTION_SET_HEIGHT,
65
+ opacity: shouldReduceMotion ? 0 : 1,
66
+ transition: {
67
+ duration: shouldReduceMotion ? _motionConstants.DURATIONS.moderate01 : _motionConstants.DURATIONS.fast01,
68
+ ease: shouldReduceMotion ? 0 : _motionConstants.EASINGS.productive.exit
69
+ }
70
+ };
53
71
  },
54
- visible: {
55
- y: 0,
56
- transition: {
57
- duration: _motionConstants.DURATIONS.fast02,
58
- ease: _motionConstants.EASINGS.productive.entrance
59
- }
72
+ visible: function visible(shouldReduceMotion) {
73
+ return {
74
+ y: 0,
75
+ opacity: 1,
76
+ transition: {
77
+ duration: shouldReduceMotion ? _motionConstants.DURATIONS.moderate01 : _motionConstants.DURATIONS.fast02,
78
+ ease: shouldReduceMotion ? 0 : _motionConstants.EASINGS.productive.entrance,
79
+ delay: shouldReduceMotion ? 0.075 : 0
80
+ }
81
+ };
60
82
  }
61
83
  };
@@ -29,9 +29,7 @@ var applyInitialFilters = function applyInitialFilters(filterState, initialFilte
29
29
  };
30
30
 
31
31
  // This functions takes the filters passed in and makes an object to track it's state
32
- var getInitialStateFromFilters = exports.getInitialStateFromFilters = function getInitialStateFromFilters(filters) {
33
- var variation = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : _constants.FLYOUT;
34
- var initialFilters = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];
32
+ var getInitialStateFromFilters = exports.getInitialStateFromFilters = function getInitialStateFromFilters(filters, variation, initialFilters) {
35
33
  var initialFilterState = {};
36
34
  var setInitialState = function setInitialState(_ref) {
37
35
  var type = _ref.type,
@@ -86,8 +84,6 @@ var getInitialStateFromFilters = exports.getInitialStateFromFilters = function g
86
84
  return setInitialState(filter);
87
85
  });
88
86
  });
89
- } else {
90
- console.error('No variation passed into useInitialStateFromFilters');
91
87
  }
92
88
  if (initialFilters.length > 0) {
93
89
  applyInitialFilters(initialFilterState, initialFilters);
@@ -19,7 +19,6 @@ var _settings = require("../../../../../../settings");
19
19
 
20
20
  var blockClass = "".concat(_settings.pkg.prefix, "--datagrid");
21
21
  var InlineEditButton = exports.InlineEditButton = function InlineEditButton(_ref) {
22
- var _cx, _cx2;
23
22
  var label = _ref.label,
24
23
  Icon = _ref.renderIcon,
25
24
  disabled = _ref.disabled,
@@ -30,7 +29,7 @@ var InlineEditButton = exports.InlineEditButton = function InlineEditButton(_ref
30
29
  columnConfig = _ref.columnConfig,
31
30
  type = _ref.type;
32
31
  return /*#__PURE__*/_react.default.createElement("div", {
33
- className: (0, _classnames.default)("".concat(blockClass, "__inline-edit-button"), (_cx = {}, (0, _defineProperty2.default)(_cx, "".concat(blockClass, "__inline-edit-button--disabled"), disabled || nonEditCell), (0, _defineProperty2.default)(_cx, "".concat(blockClass, "__inline-edit-button--with-label-icon"), LabelIcon), (0, _defineProperty2.default)(_cx, "".concat(blockClass, "__inline-edit-button--non-edit"), nonEditCell), (0, _defineProperty2.default)(_cx, "".concat(blockClass, "__inline-edit-button--active"), isActiveCell), (0, _defineProperty2.default)(_cx, "".concat(blockClass, "__inline-edit-button--").concat(type), type === 'date' || type === 'selection'), _cx)),
32
+ className: (0, _classnames.default)("".concat(blockClass, "__inline-edit-button"), (0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)({}, "".concat(blockClass, "__inline-edit-button--disabled"), disabled || nonEditCell), "".concat(blockClass, "__inline-edit-button--with-label-icon"), LabelIcon), "".concat(blockClass, "__inline-edit-button--non-edit"), nonEditCell), "".concat(blockClass, "__inline-edit-button--active"), isActiveCell), "".concat(blockClass, "__inline-edit-button--").concat(type), type === 'date' || type === 'selection')),
34
33
  tabIndex: isActiveCell ? 0 : -1,
35
34
  "data-disabled": disabled || nonEditCell,
36
35
  "aria-disabled": disabled || nonEditCell,
@@ -39,7 +38,7 @@ var InlineEditButton = exports.InlineEditButton = function InlineEditButton(_ref
39
38
  }, LabelIcon && /*#__PURE__*/_react.default.createElement("div", {
40
39
  className: "".concat(blockClass, "__label-icon")
41
40
  }, /*#__PURE__*/_react.default.createElement(LabelIcon, null)), label !== '' ? /*#__PURE__*/_react.default.createElement("span", {
42
- className: (0, _classnames.default)("".concat(blockClass, "__inline-edit-button-label"), (_cx2 = {}, (0, _defineProperty2.default)(_cx2, "".concat(blockClass, "__inline-edit-button-label-with-icon"), !nonEditCell), (0, _defineProperty2.default)(_cx2, "".concat(blockClass, "__defaultStringRenderer--multiline"), columnConfig === null || columnConfig === void 0 ? void 0 : columnConfig.multiLineWrap), _cx2))
41
+ className: (0, _classnames.default)("".concat(blockClass, "__inline-edit-button-label"), (0, _defineProperty2.default)((0, _defineProperty2.default)({}, "".concat(blockClass, "__inline-edit-button-label-with-icon"), !nonEditCell), "".concat(blockClass, "__defaultStringRenderer--multiline"), columnConfig === null || columnConfig === void 0 ? void 0 : columnConfig.multiLineWrap))
43
42
  }, label) : /*#__PURE__*/_react.default.createElement("span", {
44
43
  className: "".concat(blockClass, "__placeholder")
45
44
  }, placeholder), !nonEditCell && Icon && /*#__PURE__*/_react.default.createElement("div", {
@@ -31,7 +31,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
31
31
  */
32
32
  var blockClass = "".concat(_settings.pkg.prefix, "--datagrid");
33
33
  var InlineEditCell = exports.InlineEditCell = function InlineEditCell(_ref) {
34
- var _config$validator, _cx3, _value$text;
34
+ var _config$validator, _value$text;
35
35
  var cell = _ref.cell,
36
36
  config = _ref.config,
37
37
  instance = _ref.instance,
@@ -446,7 +446,7 @@ var InlineEditCell = exports.InlineEditCell = function InlineEditCell(_ref) {
446
446
  "data-inline-type": type,
447
447
  onClick: !nonEditCell ? handleInlineCellClick : addActiveState,
448
448
  onKeyDown: !nonEditCell ? handleKeyDown : null,
449
- className: (0, _classnames.default)("".concat(blockClass, "__inline-edit--outer-cell-button"), (_cx3 = {}, (0, _defineProperty2.default)(_cx3, "".concat(blockClass, "__inline-edit--outer-cell-button--").concat(rowSize), rowSize), (0, _defineProperty2.default)(_cx3, "".concat(blockClass, "__inline-edit--outer-cell-button--lg"), !rowSize), (0, _defineProperty2.default)(_cx3, "".concat(blockClass, "__inline-edit--outer-cell-button--invalid"), config === null || config === void 0 || (_config$validator = config.validator) === null || _config$validator === void 0 ? void 0 : _config$validator.call(config, cellValue)), _cx3))
449
+ className: (0, _classnames.default)("".concat(blockClass, "__inline-edit--outer-cell-button"), (0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)({}, "".concat(blockClass, "__inline-edit--outer-cell-button--").concat(rowSize), rowSize), "".concat(blockClass, "__inline-edit--outer-cell-button--lg"), !rowSize), "".concat(blockClass, "__inline-edit--outer-cell-button--invalid"), config === null || config === void 0 || (_config$validator = config.validator) === null || _config$validator === void 0 ? void 0 : _config$validator.call(config, cellValue)))
450
450
  }, !inEditMode && /*#__PURE__*/_react.default.createElement(_InlineEditButton.InlineEditButton, {
451
451
  isActiveCell: cellId === activeCellId,
452
452
  renderIcon: setRenderIcon(),
@@ -43,7 +43,6 @@ var useActionsColumn = function useActionsColumn(hooks) {
43
43
  var row = cell.row,
44
44
  column = cell.column;
45
45
  if (column.isAction) {
46
- var _cx3;
47
46
  var isColumnSticky = !!column.sticky;
48
47
  return [props, {
49
48
  children: /*#__PURE__*/_react.default.createElement("div", {
@@ -115,7 +114,7 @@ var useActionsColumn = function useActionsColumn(hooks) {
115
114
  key: id
116
115
  }));
117
116
  })))),
118
- className: (0, _classnames.default)((_cx3 = {}, (0, _defineProperty2.default)(_cx3, "".concat(blockClass, "__actions-column-cell"), true), (0, _defineProperty2.default)(_cx3, "".concat(blockClass, "__cell"), true), (0, _defineProperty2.default)(_cx3, "".concat(blockClass, "__actions-column-cell-non-sticky"), !isColumnSticky), _cx3)),
117
+ className: (0, _classnames.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)({}, "".concat(blockClass, "__actions-column-cell"), true), "".concat(blockClass, "__cell"), true), "".concat(blockClass, "__actions-column-cell-non-sticky"), !isColumnSticky)),
119
118
  style: {
120
119
  width: rowActions.length > 2 || isColumnSticky ? 48 : 96
121
120
  }
@@ -23,8 +23,7 @@ var useDefaultStringRenderer = function useDefaultStringRenderer(hooks) {
23
23
  var StringRenderer = function StringRenderer(tableProps) {
24
24
  var _tableProps$column;
25
25
  return /*#__PURE__*/_react.default.createElement("div", {
26
- className: (0, _classnames.default)("".concat(blockClass, "__defaultStringRenderer"), (0, _defineProperty2.default)({}, "".concat(blockClass, "__defaultStringRenderer--multiline"), ((_tableProps$column = tableProps.column) === null || _tableProps$column === void 0 ? void 0 : _tableProps$column.multiLineWrap) || (tableProps === null || tableProps === void 0 ? void 0 : tableProps.multiLineWrapAll))),
27
- title: tableProps.value
26
+ className: (0, _classnames.default)("".concat(blockClass, "__defaultStringRenderer"), (0, _defineProperty2.default)({}, "".concat(blockClass, "__defaultStringRenderer--multiline"), ((_tableProps$column = tableProps.column) === null || _tableProps$column === void 0 ? void 0 : _tableProps$column.multiLineWrap) || (tableProps === null || tableProps === void 0 ? void 0 : tableProps.multiLineWrapAll)))
28
27
  }, tableProps.value);
29
28
  };
30
29
  var HeaderRenderer = function HeaderRenderer(header) {
@@ -23,6 +23,7 @@ var useFiltering = function useFiltering(hooks) {
23
23
  (0, _react.useEffect)(function () {
24
24
  _settings.pkg.checkReportFeatureEnabled('Datagrid.useFiltering');
25
25
  }, []);
26
+ /* istanbul ignore next */
26
27
  var filterTypes = (0, _react.useMemo)(function () {
27
28
  return {
28
29
  date: function date(rows, id, _ref) {
@@ -40,7 +40,6 @@ var useNestedRowExpander = function useNestedRowExpander(hooks) {
40
40
  var expanderColumn = {
41
41
  id: 'expander',
42
42
  Cell: function Cell(_ref) {
43
- var _cx;
44
43
  var row = _ref.row;
45
44
  var expanderButtonProps = _objectSpread(_objectSpread({}, row.getToggleRowExpandedProps()), {}, {
46
45
  onClick: function onClick(event) {
@@ -63,7 +62,7 @@ var useNestedRowExpander = function useNestedRowExpander(hooks) {
63
62
  }, expanderButtonProps, {
64
63
  title: expanderTitle
65
64
  }), /*#__PURE__*/_react.default.createElement(_icons.ChevronRight, {
66
- className: (0, _classnames.default)("".concat(blockClass, "__expander-icon"), (_cx = {}, (0, _defineProperty2.default)(_cx, "".concat(blockClass, "__expander-icon--not-open"), !row.isExpanded), (0, _defineProperty2.default)(_cx, "".concat(blockClass, "__expander-icon--open"), row.isExpanded), _cx))
65
+ className: (0, _classnames.default)("".concat(blockClass, "__expander-icon"), (0, _defineProperty2.default)((0, _defineProperty2.default)({}, "".concat(blockClass, "__expander-icon--not-open"), !row.isExpanded), "".concat(blockClass, "__expander-icon--open"), row.isExpanded))
67
66
  }));
68
67
  },
69
68
  width: 48,