material-react-table 0.14.0 → 0.14.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/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.14.0",
2
+ "version": "0.14.1",
3
3
  "license": "MIT",
4
4
  "name": "material-react-table",
5
5
  "description": "A fully featured Material UI implementation of TanStack React Table, inspired by material-table and the MUI X DataGrid, written from the ground up in TypeScript.",
@@ -30,6 +30,7 @@ export const MRT_TableBodyCell: FC<Props> = ({
30
30
  muiTableBodyCellProps,
31
31
  muiTableBodyCellSkeletonProps,
32
32
  onCellClick,
33
+ onRowClick,
33
34
  rowNumberMode,
34
35
  tableId,
35
36
  },
@@ -146,7 +147,10 @@ export const MRT_TableBodyCell: FC<Props> = ({
146
147
  : getIsFirstRightPinnedColumn()
147
148
  ? `-4px 0 4px -2px ${alpha(theme.palette.common.black, 0.1)}`
148
149
  : undefined,
149
- cursor: isEditable && editingMode === 'cell' ? 'pointer' : 'text',
150
+ cursor:
151
+ (isEditable && editingMode === 'cell') || onRowClick || onCellClick
152
+ ? 'pointer'
153
+ : 'text',
150
154
  left:
151
155
  column.getIsPinned() === 'left'
152
156
  ? `${column.getStart('left')}px`