material-react-table 0.9.0 → 0.9.1
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/material-react-table.cjs.development.js +4 -3
- package/dist/material-react-table.cjs.development.js.map +1 -1
- package/dist/material-react-table.cjs.production.min.js +1 -1
- package/dist/material-react-table.cjs.production.min.js.map +1 -1
- package/dist/material-react-table.esm.js +4 -3
- package/dist/material-react-table.esm.js.map +1 -1
- package/dist/table/MRT_TableRoot.d.ts +1 -0
- package/package.json +9 -9
- package/src/body/MRT_TableBodyCell.tsx +9 -5
- package/src/body/MRT_TableBodyRow.tsx +2 -1
|
@@ -2833,7 +2833,7 @@ var MRT_TableBodyCell = function MRT_TableBodyCell(_ref) {
|
|
|
2833
2833
|
whiteSpace: isDensePadding ? 'nowrap' : 'normal',
|
|
2834
2834
|
zIndex: column.getIsPinned() ? 1 : undefined,
|
|
2835
2835
|
'&:hover': {
|
|
2836
|
-
backgroundColor: enableHover ? theme.palette.mode === 'dark' ? lighten(theme.palette.background["default"], 0.13) + " !important" : darken(theme.palette.background["default"], 0.07) + " !important" : undefined
|
|
2836
|
+
backgroundColor: enableHover && enableEditing && editingMode !== 'row' ? theme.palette.mode === 'dark' ? lighten(theme.palette.background["default"], 0.13) + " !important" : darken(theme.palette.background["default"], 0.07) + " !important" : undefined
|
|
2837
2837
|
}
|
|
2838
2838
|
}, tableCellProps == null ? void 0 : tableCellProps.sx);
|
|
2839
2839
|
},
|
|
@@ -2908,7 +2908,8 @@ var MRT_TableDetailPanel = function MRT_TableDetailPanel(_ref) {
|
|
|
2908
2908
|
var MRT_TableBodyRow = function MRT_TableBodyRow(_ref) {
|
|
2909
2909
|
var row = _ref.row,
|
|
2910
2910
|
tableInstance = _ref.tableInstance;
|
|
2911
|
-
var
|
|
2911
|
+
var getIsSomeColumnsPinned = tableInstance.getIsSomeColumnsPinned,
|
|
2912
|
+
_tableInstance$option = tableInstance.options,
|
|
2912
2913
|
muiTableBodyRowProps = _tableInstance$option.muiTableBodyRowProps,
|
|
2913
2914
|
onMrtRowClick = _tableInstance$option.onMrtRowClick,
|
|
2914
2915
|
renderDetailPanel = _tableInstance$option.renderDetailPanel;
|
|
@@ -2932,7 +2933,7 @@ var MRT_TableBodyRow = function MRT_TableBodyRow(_ref) {
|
|
|
2932
2933
|
backgroundColor: lighten(theme.palette.background["default"], 0.06),
|
|
2933
2934
|
transition: 'all 0.2s ease-in-out',
|
|
2934
2935
|
'&:hover td': {
|
|
2935
|
-
backgroundColor: (tableRowProps == null ? void 0 : tableRowProps.hover) !== false ? theme.palette.mode === 'dark' ? "" + lighten(theme.palette.background["default"], 0.12) : "" + darken(theme.palette.background["default"], 0.05) : undefined
|
|
2936
|
+
backgroundColor: (tableRowProps == null ? void 0 : tableRowProps.hover) !== false && getIsSomeColumnsPinned() ? theme.palette.mode === 'dark' ? "" + lighten(theme.palette.background["default"], 0.12) : "" + darken(theme.palette.background["default"], 0.05) : undefined
|
|
2936
2937
|
}
|
|
2937
2938
|
}, tableRowProps == null ? void 0 : tableRowProps.sx);
|
|
2938
2939
|
}
|