@dooherceg/material-react-table 4.0.1 → 4.0.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.
package/dist/index.esm.js CHANGED
@@ -13619,7 +13619,7 @@ const MRT_CellActionMenu = ({
13619
13619
  };
13620
13620
 
13621
13621
  const MRT_DisplayColumnCellRenderer = t0 => {
13622
- const $ = c(11);
13622
+ const $ = c(12);
13623
13623
  const {
13624
13624
  cell,
13625
13625
  rowRef,
@@ -13634,41 +13634,45 @@ const MRT_DisplayColumnCellRenderer = t0 => {
13634
13634
  const {
13635
13635
  columnDef
13636
13636
  } = column;
13637
+ const CellComponent = columnDef.Cell;
13638
+ if (!CellComponent) {
13639
+ return null;
13640
+ }
13637
13641
  let t1;
13638
- if ($[0] !== cell || $[1] !== column || $[2] !== columnDef || $[3] !== row || $[4] !== rowRef || $[5] !== staticColumnIndex || $[6] !== staticRowIndex || $[7] !== table) {
13639
- t1 = columnDef.Cell?.({
13640
- cell,
13641
- column,
13642
- renderedCellValue: cell.renderValue(),
13643
- row,
13644
- rowRef,
13645
- staticColumnIndex,
13646
- staticRowIndex,
13647
- table
13648
- }) ?? null;
13642
+ if ($[0] !== cell) {
13643
+ t1 = cell.renderValue();
13649
13644
  $[0] = cell;
13650
- $[1] = column;
13651
- $[2] = columnDef;
13652
- $[3] = row;
13653
- $[4] = rowRef;
13654
- $[5] = staticColumnIndex;
13655
- $[6] = staticRowIndex;
13656
- $[7] = table;
13657
- $[8] = t1;
13645
+ $[1] = t1;
13658
13646
  } else {
13659
- t1 = $[8];
13647
+ t1 = $[1];
13660
13648
  }
13661
- let t2;
13662
- if ($[9] !== t1) {
13663
- t2 = /*#__PURE__*/jsx(Fragment, {
13664
- children: t1
13649
+ const t2 = t1;
13650
+ let t3;
13651
+ if ($[2] !== CellComponent || $[3] !== cell || $[4] !== column || $[5] !== row || $[6] !== rowRef || $[7] !== staticColumnIndex || $[8] !== staticRowIndex || $[9] !== t2 || $[10] !== table) {
13652
+ t3 = /*#__PURE__*/jsx(CellComponent, {
13653
+ cell: cell,
13654
+ column: column,
13655
+ renderedCellValue: t2,
13656
+ row: row,
13657
+ rowRef: rowRef,
13658
+ staticColumnIndex: staticColumnIndex,
13659
+ staticRowIndex: staticRowIndex,
13660
+ table: table
13665
13661
  });
13666
- $[9] = t1;
13667
- $[10] = t2;
13662
+ $[2] = CellComponent;
13663
+ $[3] = cell;
13664
+ $[4] = column;
13665
+ $[5] = row;
13666
+ $[6] = rowRef;
13667
+ $[7] = staticColumnIndex;
13668
+ $[8] = staticRowIndex;
13669
+ $[9] = t2;
13670
+ $[10] = table;
13671
+ $[11] = t3;
13668
13672
  } else {
13669
- t2 = $[10];
13673
+ t3 = $[11];
13670
13674
  }
13671
- return t2;
13675
+ return t3;
13672
13676
  };
13673
13677
 
13674
13678
  const MRT_TableBodyCellValue = ({