rez-table-listing-mui 2.0.3 → 2.0.5

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,6 +1,6 @@
1
1
  {
2
2
  "name": "rez-table-listing-mui",
3
- "version": "2.0.3",
3
+ "version": "2.0.5",
4
4
  "type": "module",
5
5
  "description": "A rez table listing component built on TanStack Table",
6
6
  "main": "dist/index.js",
@@ -48,7 +48,7 @@ export const TableBodyCell = styled("td", {
48
48
  }>(({ theme, compact, isDragging, wrap }) => ({
49
49
  fontSize: theme.typography.pxToRem(14),
50
50
  padding: compact ? theme.spacing(0.25, 0.5) : theme.spacing(0.5, 1),
51
- borderTop: `0.5px solid ${theme.palette.grey[100]}`,
51
+ // borderTop: `0.5px solid ${theme.palette.grey[100]}`,
52
52
  borderBottom: `0.5px solid ${theme.palette.grey[100]}`,
53
53
 
54
54
  ...(wrap && {
@@ -46,7 +46,6 @@ function DraggableTableHeader<T>({
46
46
  <TableHeadCell
47
47
  onMouseLeave={handleClose}
48
48
  colSpan={header.colSpan}
49
- onClick={handleHover}
50
49
  compact={featureOptions?.compactTable}
51
50
  isDragging={isDragging}
52
51
  isPinned={Boolean(isPinned)}
@@ -83,7 +83,7 @@ export const TableHeadRow = styled("tr", {
83
83
  })<{ striped?: boolean }>(({ theme, striped }) => ({
84
84
  backgroundColor: striped
85
85
  ? theme.palette.common.white
86
- : theme.palette.grey[100],
86
+ : theme.palette.grey[50],
87
87
  }));
88
88
 
89
89
  export const TableHeadCell = styled("th", {
@@ -97,7 +97,6 @@ function TableHead<T>({
97
97
  key={header?.id}
98
98
  colSpan={header.colSpan}
99
99
  compact={featureOptions.compactTable}
100
- onClick={handleHover}
101
100
  style={{
102
101
  ...getColumnPinningStyles(header.column),
103
102
  width: `${header.column.getSize()}px`,
@@ -106,7 +105,7 @@ function TableHead<T>({
106
105
  }}
107
106
  >
108
107
  {header.isPlaceholder ? null : (
109
- <TableHeadContent>
108
+ <TableHeadContent onClick={handleHover}>
110
109
  <TableHeadSort sortable={header.column.getCanSort()}>
111
110
  {flexRender(
112
111
  header.column.columnDef.header,
@@ -399,7 +399,7 @@ function ListingView() {
399
399
  filterSettingStates={filterSettingStates}
400
400
  onSaveSettings={handleSaveSettings}
401
401
  featureOptions={{
402
- striped: true,
402
+ // striped: true,
403
403
  compactTable: false,
404
404
  enableSorting: !enableServerSideSorting,
405
405
  enableColumnReordering: true,