@trackunit/react-table 0.0.304 → 0.0.306

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
@@ -188,7 +188,7 @@ function __rest(s, e) {
188
188
  const ActionButton = (_a) => {
189
189
  var { action, children, id } = _a, rest = __rest(_a, ["action", "children", "id"]);
190
190
  if (action.type === "route") {
191
- return (jsxRuntime.jsx(reactComponents.Button, Object.assign({ id: id, renderAs: reactRouter.Link, to: action.url, variant: "ghost-neutral" }, rest, { children: children })));
191
+ return (jsxRuntime.jsx(reactComponents.Button, Object.assign({ asChild: true, id: id, variant: "ghost-neutral" }, rest, { children: jsxRuntime.jsx(reactRouter.Link, { to: action.url, children: children }) })));
192
192
  }
193
193
  return (jsxRuntime.jsx(reactComponents.Button, Object.assign({ id: id, onClick: action.method, variant: "ghost-neutral" }, rest, { children: children })));
194
194
  };
package/index.esm.js CHANGED
@@ -163,7 +163,7 @@ function __rest(s, e) {
163
163
  const ActionButton = (_a) => {
164
164
  var { action, children, id } = _a, rest = __rest(_a, ["action", "children", "id"]);
165
165
  if (action.type === "route") {
166
- return (jsx(Button, Object.assign({ id: id, renderAs: Link, to: action.url, variant: "ghost-neutral" }, rest, { children: children })));
166
+ return (jsx(Button, Object.assign({ asChild: true, id: id, variant: "ghost-neutral" }, rest, { children: jsx(Link, { to: action.url, children: children }) })));
167
167
  }
168
168
  return (jsx(Button, Object.assign({ id: id, onClick: action.method, variant: "ghost-neutral" }, rest, { children: children })));
169
169
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trackunit/react-table",
3
- "version": "0.0.304",
3
+ "version": "0.0.306",
4
4
  "repository": "https://github.com/Trackunit/manager",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "engines": {