@trackunit/react-table 0.0.493 → 0.0.494

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/index.cjs.js CHANGED
@@ -303,8 +303,8 @@ const Table = ({ rowHeight = 75, ...props }) => {
303
303
  }
304
304
  else {
305
305
  return (jsxRuntime.jsx(reactTableBaseComponents.Tr, { className: reactComponents.cvaInteractableItem({
306
- showPointer: !!props.onRowClick || row.getCanSelect(),
307
- selected: props.options.enableRowSelection && row.getIsSelected(),
306
+ cursor: !!props.onRowClick || row.getCanSelect() ? "pointer" : "default",
307
+ selected: "auto",
308
308
  }), dataTestId: `table-body-row-${virtualRow.index}`, layout: "flex", onClick: () => {
309
309
  if (props.onRowClick) {
310
310
  props.onRowClick(row);
package/index.esm.js CHANGED
@@ -284,8 +284,8 @@ const Table = ({ rowHeight = 75, ...props }) => {
284
284
  }
285
285
  else {
286
286
  return (jsx(Tr, { className: cvaInteractableItem({
287
- showPointer: !!props.onRowClick || row.getCanSelect(),
288
- selected: props.options.enableRowSelection && row.getIsSelected(),
287
+ cursor: !!props.onRowClick || row.getCanSelect() ? "pointer" : "default",
288
+ selected: "auto",
289
289
  }), dataTestId: `table-body-row-${virtualRow.index}`, layout: "flex", onClick: () => {
290
290
  if (props.onRowClick) {
291
291
  props.onRowClick(row);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trackunit/react-table",
3
- "version": "0.0.493",
3
+ "version": "0.0.494",
4
4
  "repository": "https://github.com/Trackunit/manager",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "engines": {