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

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.
@@ -541,7 +541,7 @@ const MRT_EditCellTextField = ({ cell, table, }) => {
541
541
  textFieldProps.inputRef = inputRef;
542
542
  }
543
543
  }
544
- }, label: !['custom', 'modal'].includes((isCreating ? createDisplayMode : editDisplayMode))
544
+ }, label: ['custom', 'modal'].includes((isCreating ? createDisplayMode : editDisplayMode))
545
545
  ? columnDef.header
546
546
  : undefined, margin: "none", name: column.id, placeholder: !['custom', 'modal'].includes((isCreating ? createDisplayMode : editDisplayMode))
547
547
  ? columnDef.header
@@ -2040,7 +2040,7 @@ const MRT_TableHeadCell = ({ header, table, }) => {
2040
2040
  table,
2041
2041
  tableCellProps,
2042
2042
  theme,
2043
- })), draggingBorders)), children: [header.isPlaceholder ? null : (jsxs(Box, { className: "Mui-TableHeadCell-Content", sx: {
2043
+ })), draggingBorders)), children: [header.isPlaceholder || column.id === 'mrt-row-spacer' ? null : (jsxs(Box, { className: "Mui-TableHeadCell-Content", sx: {
2044
2044
  alignItems: 'center',
2045
2045
  display: 'flex',
2046
2046
  flexDirection: (tableCellProps === null || tableCellProps === void 0 ? void 0 : tableCellProps.align) === 'right' ? 'row-reverse' : 'row',
@@ -3014,7 +3014,7 @@ const useMRT_DisplayColumns = ({ columnOrder, creatingRow, grouping, tableOption
3014
3014
  ((_x = (_w = tableOptions.state) === null || _w === void 0 ? void 0 : _w.columnOrder) !== null && _x !== void 0 ? _x : columnOrder).includes('mrt-row-spacer') && {
3015
3015
  columnDefType: 'display',
3016
3016
  header: '',
3017
- id: 'spacer',
3017
+ id: 'mrt-row-spacer',
3018
3018
  muiTableBodyCellProps: blankColProps,
3019
3019
  muiTableFooterCellProps: blankColProps,
3020
3020
  muiTableHeadCellProps: blankColProps,