material-react-table 1.6.0 → 1.6.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.
@@ -1048,11 +1048,12 @@ const MRT_SelectCheckbox = ({ row, selectAll, table }) => {
1048
1048
  : muiSelectCheckboxProps instanceof Function
1049
1049
  ? muiSelectCheckboxProps({ row, table })
1050
1050
  : muiSelectCheckboxProps;
1051
- const commonProps = Object.assign(Object.assign({ checked: selectAll
1052
- ? selectAllMode === 'page'
1053
- ? table.getIsAllPageRowsSelected()
1054
- : table.getIsAllRowsSelected()
1055
- : row === null || row === void 0 ? void 0 : row.getIsSelected(), disabled: isLoading, inputProps: {
1051
+ const allRowsSelected = selectAll
1052
+ ? selectAllMode === 'page'
1053
+ ? table.getIsAllPageRowsSelected()
1054
+ : table.getIsAllRowsSelected()
1055
+ : undefined;
1056
+ const commonProps = Object.assign(Object.assign({ checked: selectAll ? allRowsSelected : row === null || row === void 0 ? void 0 : row.getIsSelected(), disabled: isLoading || (row && !row.getCanSelect()), inputProps: {
1056
1057
  'aria-label': selectAll
1057
1058
  ? localization.toggleSelectAll
1058
1059
  : localization.toggleSelectRow,
@@ -1070,10 +1071,7 @@ const MRT_SelectCheckbox = ({ row, selectAll, table }) => {
1070
1071
  return (React.createElement(Tooltip, { arrow: true, enterDelay: 1000, enterNextDelay: 1000, title: (_a = checkboxProps === null || checkboxProps === void 0 ? void 0 : checkboxProps.title) !== null && _a !== void 0 ? _a : (selectAll
1071
1072
  ? localization.toggleSelectAll
1072
1073
  : localization.toggleSelectRow) }, enableMultiRowSelection === false ? (React.createElement(Radio, Object.assign({}, commonProps))) : (React.createElement(Checkbox, Object.assign({ indeterminate: selectAll
1073
- ? table.getIsSomeRowsSelected() &&
1074
- !(selectAllMode === 'page'
1075
- ? table.getIsAllPageRowsSelected()
1076
- : table.getIsAllRowsSelected())
1074
+ ? table.getIsSomeRowsSelected() && !allRowsSelected
1077
1075
  : row === null || row === void 0 ? void 0 : row.getIsSomeSelected() }, commonProps)))));
1078
1076
  };
1079
1077
 
@@ -1378,7 +1376,6 @@ const MRT_TopToolbar = ({ table, }) => {
1378
1376
  right: 0,
1379
1377
  top: 0,
1380
1378
  width: '100%',
1381
- zIndex: 2,
1382
1379
  } },
1383
1380
  enableGlobalFilter && positionGlobalFilter === 'left' && (React.createElement(MRT_GlobalFilterTextField, { table: table })), (_a = renderTopToolbarCustomActions === null || renderTopToolbarCustomActions === void 0 ? void 0 : renderTopToolbarCustomActions({ table })) !== null && _a !== void 0 ? _a : React.createElement("span", null),
1384
1381
  enableToolbarInternalActions ? (React.createElement(Box, { sx: {