@trackunit/react-table 1.6.97 → 1.7.7
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 +2 -2
- package/index.esm.js +2 -2
- package/package.json +11 -11
package/index.cjs.js
CHANGED
|
@@ -854,7 +854,7 @@ const ColumnSorting = ({ canSort, sortingState = false }) => {
|
|
|
854
854
|
if (!canSort || !sortingState) {
|
|
855
855
|
return null;
|
|
856
856
|
}
|
|
857
|
-
return (jsxRuntime.jsx("div", { className: "flex items-center", children: jsxRuntime.jsx(reactComponents.Icon, { className: "text-
|
|
857
|
+
return (jsxRuntime.jsx("div", { className: "flex items-center", children: jsxRuntime.jsx(reactComponents.Icon, { className: "text-neutral-800", name: sortingState === "asc" ? "ArrowUp" : "ArrowDown", size: "small" }) }));
|
|
858
858
|
};
|
|
859
859
|
|
|
860
860
|
/**
|
|
@@ -1026,7 +1026,7 @@ const Table = ({ rowHeight = 50, ...props }) => {
|
|
|
1026
1026
|
} },
|
|
1027
1027
|
isCellDropTarget(cell.column.id) && renderDropIndicator(cell.column.id),
|
|
1028
1028
|
jsxRuntime.jsx("div", { className: "grid h-full items-center p-0", children: reactTable.flexRender(cell.column.columnDef.cell, cell.getContext()) })));
|
|
1029
|
-
}) }, row.id));
|
|
1029
|
+
}) }, `${row.id}-${index}`));
|
|
1030
1030
|
}
|
|
1031
1031
|
}) })) : (jsxRuntime.jsx("tbody", { className: cvaTBody({ emptyState: !props.loading && !props.noDataMessage }), children: jsxRuntime.jsx("tr", { children: jsxRuntime.jsx("td", { className: "b-0", children: props.loading ? (jsxRuntime.jsx(reactComponents.Spinner, { centering: "centered", containerClassName: "absolute inset-0" })) : props.noDataMessage ? (props.noDataMessage) : (jsxRuntime.jsx(reactComponents.EmptyState, { className: "absolute inset-0", description: t("table.noResults"), image: "SEARCH_DOCUMENT", ...props.emptyState })) }) }) }))] }) }), props.hideFooter ? null : (jsxRuntime.jsxs("div", { className: "flex items-center p-2", children: [jsxRuntime.jsx("div", { className: "whitespace-nowrap text-xs font-medium text-neutral-600", children: t(props.pagination?.pageInfo?.isCountCapped ? "table.pagination.full.capped" : "table.pagination.full", {
|
|
1032
1032
|
count: props.getRowModel().rows.length,
|
package/index.esm.js
CHANGED
|
@@ -853,7 +853,7 @@ const ColumnSorting = ({ canSort, sortingState = false }) => {
|
|
|
853
853
|
if (!canSort || !sortingState) {
|
|
854
854
|
return null;
|
|
855
855
|
}
|
|
856
|
-
return (jsx("div", { className: "flex items-center", children: jsx(Icon, { className: "text-
|
|
856
|
+
return (jsx("div", { className: "flex items-center", children: jsx(Icon, { className: "text-neutral-800", name: sortingState === "asc" ? "ArrowUp" : "ArrowDown", size: "small" }) }));
|
|
857
857
|
};
|
|
858
858
|
|
|
859
859
|
/**
|
|
@@ -1025,7 +1025,7 @@ const Table = ({ rowHeight = 50, ...props }) => {
|
|
|
1025
1025
|
} },
|
|
1026
1026
|
isCellDropTarget(cell.column.id) && renderDropIndicator(cell.column.id),
|
|
1027
1027
|
jsx("div", { className: "grid h-full items-center p-0", children: flexRender(cell.column.columnDef.cell, cell.getContext()) })));
|
|
1028
|
-
}) }, row.id));
|
|
1028
|
+
}) }, `${row.id}-${index}`));
|
|
1029
1029
|
}
|
|
1030
1030
|
}) })) : (jsx("tbody", { className: cvaTBody({ emptyState: !props.loading && !props.noDataMessage }), children: jsx("tr", { children: jsx("td", { className: "b-0", children: props.loading ? (jsx(Spinner, { centering: "centered", containerClassName: "absolute inset-0" })) : props.noDataMessage ? (props.noDataMessage) : (jsx(EmptyState, { className: "absolute inset-0", description: t("table.noResults"), image: "SEARCH_DOCUMENT", ...props.emptyState })) }) }) }))] }) }), props.hideFooter ? null : (jsxs("div", { className: "flex items-center p-2", children: [jsx("div", { className: "whitespace-nowrap text-xs font-medium text-neutral-600", children: t(props.pagination?.pageInfo?.isCountCapped ? "table.pagination.full.capped" : "table.pagination.full", {
|
|
1031
1031
|
count: props.getRowModel().rows.length,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trackunit/react-table",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.7.7",
|
|
4
4
|
"repository": "https://github.com/Trackunit/manager",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"engines": {
|
|
@@ -15,16 +15,16 @@
|
|
|
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.
|
|
19
|
-
"@trackunit/shared-utils": "1.
|
|
20
|
-
"@trackunit/css-class-variance-utilities": "1.
|
|
21
|
-
"@trackunit/ui-icons": "1.
|
|
22
|
-
"@trackunit/react-table-base-components": "1.6
|
|
23
|
-
"@trackunit/react-table-pagination": "1.
|
|
24
|
-
"@trackunit/react-form-components": "1.
|
|
25
|
-
"@trackunit/i18n-library-translation": "1.
|
|
26
|
-
"@trackunit/react-core-contexts-api": "1.
|
|
27
|
-
"@trackunit/react-test-setup": "1.
|
|
18
|
+
"@trackunit/react-components": "1.9.6",
|
|
19
|
+
"@trackunit/shared-utils": "1.9.4",
|
|
20
|
+
"@trackunit/css-class-variance-utilities": "1.7.4",
|
|
21
|
+
"@trackunit/ui-icons": "1.7.5",
|
|
22
|
+
"@trackunit/react-table-base-components": "1.7.6",
|
|
23
|
+
"@trackunit/react-table-pagination": "1.7.4",
|
|
24
|
+
"@trackunit/react-form-components": "1.8.6",
|
|
25
|
+
"@trackunit/i18n-library-translation": "1.7.5",
|
|
26
|
+
"@trackunit/react-core-contexts-api": "1.8.5",
|
|
27
|
+
"@trackunit/react-test-setup": "1.4.4"
|
|
28
28
|
},
|
|
29
29
|
"module": "./index.esm.js",
|
|
30
30
|
"main": "./index.cjs.js",
|