material-react-table 1.11.1 → 1.11.2

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/cjs/index.js CHANGED
@@ -2002,7 +2002,7 @@ const MRT_TableHeadCellSortLabel = ({ header, table, tableCellProps, }) => {
2002
2002
  };
2003
2003
 
2004
2004
  const MRT_TableHeadCell = ({ header, table }) => {
2005
- var _a, _b, _c, _d;
2005
+ var _a, _b, _c, _d, _f, _g;
2006
2006
  const theme = styles.useTheme();
2007
2007
  const { getState, options: { enableColumnActions, enableColumnDragging, enableColumnOrdering, enableGrouping, enableMultiSort, layoutMode, muiTableHeadCellProps, }, refs: { tableHeadCellRefs }, setHoveredColumn, } = table;
2008
2008
  const { density, draggingColumn, grouping, hoveredColumn, showColumnFilters, } = getState();
@@ -2118,10 +2118,10 @@ const MRT_TableHeadCell = ({ header, table }) => {
2118
2118
  : undefined,
2119
2119
  } },
2120
2120
  React__default["default"].createElement(Box__default["default"], { className: "Mui-TableHeadCell-Content-Wrapper", sx: {
2121
- minWidth: `${Math.min(columnDef.header.length, 5)}ch`,
2121
+ minWidth: `${Math.min((_d = (_c = columnDef.header) === null || _c === void 0 ? void 0 : _c.length) !== null && _d !== void 0 ? _d : 0, 5)}ch`,
2122
2122
  overflow: columnDefType === 'data' ? 'hidden' : undefined,
2123
2123
  textOverflow: 'ellipsis',
2124
- whiteSpace: ((_d = (_c = columnDef.header) === null || _c === void 0 ? void 0 : _c.length) !== null && _d !== void 0 ? _d : 0) < 20 ? 'nowrap' : 'normal',
2124
+ whiteSpace: ((_g = (_f = columnDef.header) === null || _f === void 0 ? void 0 : _f.length) !== null && _g !== void 0 ? _g : 0) < 20 ? 'nowrap' : 'normal',
2125
2125
  '&:hover': {
2126
2126
  textOverflow: 'clip',
2127
2127
  },