@trackunit/react-table 1.7.102 → 1.7.103

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
@@ -988,12 +988,13 @@ const Table = ({ rowHeight = 50, ...props }) => {
988
988
  return null;
989
989
  }
990
990
  else {
991
- return (jsxRuntime.jsx(reactTableBaseComponents.Tr, { className: tailwindMerge.twMerge("group", reactComponents.cvaInteractableItem({
991
+ return (jsxRuntime.jsx(reactTableBaseComponents.Tr, { className: tailwindMerge.twMerge("row-focus group", reactComponents.cvaInteractableItem({
992
992
  cursor: (!!props.onRowClick || row.getCanSelect()) &&
993
993
  (props.isRowClickable ? props.isRowClickable(row.original) : true)
994
994
  ? "pointer"
995
995
  : "default",
996
996
  selection: "auto",
997
+ focus: "unfocused",
997
998
  })), dataTestId: `table-body-row-${virtualRow.index}`, layout: "flex", onClick: () => {
998
999
  if (props.onRowClick) {
999
1000
  props.onRowClick(row);
@@ -1023,7 +1024,7 @@ const Table = ({ rowHeight = 50, ...props }) => {
1023
1024
  lastUnpinnedWithoutBorder: isLastUnpinned(cell.column.id) && (containWholeTable || hasAnyGrowingColumn),
1024
1025
  isColumnDragging: draggingColumnId === cell.column.id,
1025
1026
  isColumnDropped: droppedColumnId === cell.column.id,
1026
- }), "data-pinned": pinned, key: cell.id, onClick: event => {
1027
+ }), "data-pinned": pinned, "data-selection-cell": props.selectionColId && cell.column.id === props.selectionColId ? "true" : undefined, key: cell.id, onClick: event => {
1027
1028
  // prevent onRowClick action when clicking on a "selectable" cell with checkbox
1028
1029
  if (props.selectionColId && cell.column.id === props.selectionColId) {
1029
1030
  event.stopPropagation();
package/index.esm.js CHANGED
@@ -987,12 +987,13 @@ const Table = ({ rowHeight = 50, ...props }) => {
987
987
  return null;
988
988
  }
989
989
  else {
990
- return (jsx(Tr, { className: twMerge("group", cvaInteractableItem({
990
+ return (jsx(Tr, { className: twMerge("row-focus group", cvaInteractableItem({
991
991
  cursor: (!!props.onRowClick || row.getCanSelect()) &&
992
992
  (props.isRowClickable ? props.isRowClickable(row.original) : true)
993
993
  ? "pointer"
994
994
  : "default",
995
995
  selection: "auto",
996
+ focus: "unfocused",
996
997
  })), dataTestId: `table-body-row-${virtualRow.index}`, layout: "flex", onClick: () => {
997
998
  if (props.onRowClick) {
998
999
  props.onRowClick(row);
@@ -1022,7 +1023,7 @@ const Table = ({ rowHeight = 50, ...props }) => {
1022
1023
  lastUnpinnedWithoutBorder: isLastUnpinned(cell.column.id) && (containWholeTable || hasAnyGrowingColumn),
1023
1024
  isColumnDragging: draggingColumnId === cell.column.id,
1024
1025
  isColumnDropped: droppedColumnId === cell.column.id,
1025
- }), "data-pinned": pinned, key: cell.id, onClick: event => {
1026
+ }), "data-pinned": pinned, "data-selection-cell": props.selectionColId && cell.column.id === props.selectionColId ? "true" : undefined, key: cell.id, onClick: event => {
1026
1027
  // prevent onRowClick action when clicking on a "selectable" cell with checkbox
1027
1028
  if (props.selectionColId && cell.column.id === props.selectionColId) {
1028
1029
  event.stopPropagation();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trackunit/react-table",
3
- "version": "1.7.102",
3
+ "version": "1.7.103",
4
4
  "repository": "https://github.com/Trackunit/manager",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "engines": {
@@ -15,15 +15,15 @@
15
15
  "jest-fetch-mock": "^3.0.3",
16
16
  "@tanstack/react-router": "1.114.29",
17
17
  "tailwind-merge": "^2.0.0",
18
- "@trackunit/react-components": "1.10.31",
19
- "@trackunit/shared-utils": "1.9.63",
20
- "@trackunit/css-class-variance-utilities": "1.7.63",
21
- "@trackunit/ui-icons": "1.7.64",
22
- "@trackunit/react-table-base-components": "1.7.99",
23
- "@trackunit/react-form-components": "1.8.97",
24
- "@trackunit/i18n-library-translation": "1.7.76",
25
- "@trackunit/react-core-contexts-api": "1.8.68",
26
- "@trackunit/react-test-setup": "1.4.63",
18
+ "@trackunit/react-components": "1.10.32",
19
+ "@trackunit/shared-utils": "1.9.64",
20
+ "@trackunit/css-class-variance-utilities": "1.7.64",
21
+ "@trackunit/ui-icons": "1.7.65",
22
+ "@trackunit/react-table-base-components": "1.7.100",
23
+ "@trackunit/react-form-components": "1.8.98",
24
+ "@trackunit/i18n-library-translation": "1.7.77",
25
+ "@trackunit/react-core-contexts-api": "1.8.69",
26
+ "@trackunit/react-test-setup": "1.4.64",
27
27
  "graphql": "^16.10.0"
28
28
  },
29
29
  "module": "./index.esm.js",