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
|
@@ -6586,7 +6586,7 @@ var MRT_TableBodyCell = function MRT_TableBodyCell(_ref) {
|
|
|
6586
6586
|
whiteSpace: isDensePadding ? 'nowrap' : 'normal',
|
|
6587
6587
|
zIndex: column.getIsPinned() ? 1 : undefined,
|
|
6588
6588
|
'&:hover': {
|
|
6589
|
-
backgroundColor: enableHover ? theme.palette.mode === 'dark' ? material.lighten(theme.palette.background["default"], 0.13) + " !important" : material.darken(theme.palette.background["default"], 0.07) + " !important" : undefined
|
|
6589
|
+
backgroundColor: enableHover && enableEditing && editingMode !== 'row' ? theme.palette.mode === 'dark' ? material.lighten(theme.palette.background["default"], 0.13) + " !important" : material.darken(theme.palette.background["default"], 0.07) + " !important" : undefined
|
|
6590
6590
|
}
|
|
6591
6591
|
}, tableCellProps == null ? void 0 : tableCellProps.sx);
|
|
6592
6592
|
},
|
|
@@ -6661,7 +6661,8 @@ var MRT_TableDetailPanel = function MRT_TableDetailPanel(_ref) {
|
|
|
6661
6661
|
var MRT_TableBodyRow = function MRT_TableBodyRow(_ref) {
|
|
6662
6662
|
var row = _ref.row,
|
|
6663
6663
|
tableInstance = _ref.tableInstance;
|
|
6664
|
-
var
|
|
6664
|
+
var getIsSomeColumnsPinned = tableInstance.getIsSomeColumnsPinned,
|
|
6665
|
+
_tableInstance$option = tableInstance.options,
|
|
6665
6666
|
muiTableBodyRowProps = _tableInstance$option.muiTableBodyRowProps,
|
|
6666
6667
|
onMrtRowClick = _tableInstance$option.onMrtRowClick,
|
|
6667
6668
|
renderDetailPanel = _tableInstance$option.renderDetailPanel;
|
|
@@ -6685,7 +6686,7 @@ var MRT_TableBodyRow = function MRT_TableBodyRow(_ref) {
|
|
|
6685
6686
|
backgroundColor: material.lighten(theme.palette.background["default"], 0.06),
|
|
6686
6687
|
transition: 'all 0.2s ease-in-out',
|
|
6687
6688
|
'&:hover td': {
|
|
6688
|
-
backgroundColor: (tableRowProps == null ? void 0 : tableRowProps.hover) !== false ? theme.palette.mode === 'dark' ? "" + material.lighten(theme.palette.background["default"], 0.12) : "" + material.darken(theme.palette.background["default"], 0.05) : undefined
|
|
6689
|
+
backgroundColor: (tableRowProps == null ? void 0 : tableRowProps.hover) !== false && getIsSomeColumnsPinned() ? theme.palette.mode === 'dark' ? "" + material.lighten(theme.palette.background["default"], 0.12) : "" + material.darken(theme.palette.background["default"], 0.05) : undefined
|
|
6689
6690
|
}
|
|
6690
6691
|
}, tableRowProps == null ? void 0 : tableRowProps.sx);
|
|
6691
6692
|
}
|