@trackunit/react-table 0.0.347 → 0.0.349
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 +2 -2
package/index.cjs.js
CHANGED
|
@@ -125,7 +125,7 @@ const cvaActionSheet = cssClassVarianceUtilities.cvaMerge([
|
|
|
125
125
|
"sm:grid-cols-[min-content,1fr,min-content]",
|
|
126
126
|
"sm:grid-rows-1",
|
|
127
127
|
"p-2",
|
|
128
|
-
"bg-
|
|
128
|
+
"bg-primary-600",
|
|
129
129
|
"gap-1",
|
|
130
130
|
"rounded-2xl",
|
|
131
131
|
"items-center",
|
|
@@ -219,7 +219,7 @@ const actionDataToMenuItem = (action, dataTestId) => {
|
|
|
219
219
|
};
|
|
220
220
|
const item = (jsxRuntime.jsx(reactComponents.MenuItem, { props, className: "flex justify-center", dataTestId: `${dataTestId}-action-label`, label: action.label, onClick: "method" in action ? action.method : undefined, prefix: jsxRuntime.jsx(reactComponents.Icon, { "data-testid": "action-icon", forwardedRef: action.forwardedRef, name: action.icon, size: action.size, style: action.style }), stopPropagation: false }, action.label));
|
|
221
221
|
if ("url" in action) {
|
|
222
|
-
return (jsxRuntime.jsx(reactRouter.Link, { id: action.id,
|
|
222
|
+
return (jsxRuntime.jsx(reactRouter.Link, { id: action.id, to: action.url, children: item }, action.label));
|
|
223
223
|
}
|
|
224
224
|
return item;
|
|
225
225
|
};
|
package/index.esm.js
CHANGED
|
@@ -100,7 +100,7 @@ const cvaActionSheet = cvaMerge([
|
|
|
100
100
|
"sm:grid-cols-[min-content,1fr,min-content]",
|
|
101
101
|
"sm:grid-rows-1",
|
|
102
102
|
"p-2",
|
|
103
|
-
"bg-
|
|
103
|
+
"bg-primary-600",
|
|
104
104
|
"gap-1",
|
|
105
105
|
"rounded-2xl",
|
|
106
106
|
"items-center",
|
|
@@ -194,7 +194,7 @@ const actionDataToMenuItem = (action, dataTestId) => {
|
|
|
194
194
|
};
|
|
195
195
|
const item = (jsx(MenuItem, { props, className: "flex justify-center", dataTestId: `${dataTestId}-action-label`, label: action.label, onClick: "method" in action ? action.method : undefined, prefix: jsx(Icon, { "data-testid": "action-icon", forwardedRef: action.forwardedRef, name: action.icon, size: action.size, style: action.style }), stopPropagation: false }, action.label));
|
|
196
196
|
if ("url" in action) {
|
|
197
|
-
return (jsx(Link, { id: action.id,
|
|
197
|
+
return (jsx(Link, { id: action.id, to: action.url, children: item }, action.label));
|
|
198
198
|
}
|
|
199
199
|
return item;
|
|
200
200
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trackunit/react-table",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.349",
|
|
4
4
|
"repository": "https://github.com/Trackunit/manager",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"engines": {
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"@trackunit/css-class-variance-utilities": "*",
|
|
22
22
|
"@trackunit/ui-icons": "*",
|
|
23
23
|
"@trackunit/i18n-library-translation": "*",
|
|
24
|
-
"@tanstack/react-router": "1.
|
|
24
|
+
"@tanstack/react-router": "1.31.6",
|
|
25
25
|
"@trackunit/shared-utils": "*"
|
|
26
26
|
},
|
|
27
27
|
"module": "./index.esm.js",
|