material-react-table 2.0.0-beta.2 → 2.0.0-beta.3

Sign up to get free protection for your applications and to get access to all the features.
package/dist/cjs/index.js CHANGED
@@ -631,7 +631,7 @@ const MRT_EditCellTextField = ({ cell, table, }) => {
631
631
  textFieldProps.inputRef = inputRef;
632
632
  }
633
633
  }
634
- }, label: !['custom', 'modal'].includes((isCreating ? createDisplayMode : editDisplayMode))
634
+ }, label: ['custom', 'modal'].includes((isCreating ? createDisplayMode : editDisplayMode))
635
635
  ? columnDef.header
636
636
  : undefined, margin: "none", name: column.id, placeholder: !['custom', 'modal'].includes((isCreating ? createDisplayMode : editDisplayMode))
637
637
  ? columnDef.header
@@ -2130,7 +2130,7 @@ const MRT_TableHeadCell = ({ header, table, }) => {
2130
2130
  table,
2131
2131
  tableCellProps,
2132
2132
  theme,
2133
- })), draggingBorders)), children: [header.isPlaceholder ? null : (jsxRuntime.jsxs(Box__default["default"], { className: "Mui-TableHeadCell-Content", sx: {
2133
+ })), draggingBorders)), children: [header.isPlaceholder || column.id === 'mrt-row-spacer' ? null : (jsxRuntime.jsxs(Box__default["default"], { className: "Mui-TableHeadCell-Content", sx: {
2134
2134
  alignItems: 'center',
2135
2135
  display: 'flex',
2136
2136
  flexDirection: (tableCellProps === null || tableCellProps === void 0 ? void 0 : tableCellProps.align) === 'right' ? 'row-reverse' : 'row',
@@ -3104,7 +3104,7 @@ const useMRT_DisplayColumns = ({ columnOrder, creatingRow, grouping, tableOption
3104
3104
  ((_x = (_w = tableOptions.state) === null || _w === void 0 ? void 0 : _w.columnOrder) !== null && _x !== void 0 ? _x : columnOrder).includes('mrt-row-spacer') && {
3105
3105
  columnDefType: 'display',
3106
3106
  header: '',
3107
- id: 'spacer',
3107
+ id: 'mrt-row-spacer',
3108
3108
  muiTableBodyCellProps: blankColProps,
3109
3109
  muiTableFooterCellProps: blankColProps,
3110
3110
  muiTableHeadCellProps: blankColProps,