@trackunit/react-components 1.5.19 → 1.5.22

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
@@ -3376,7 +3376,7 @@ const PageHeaderSecondaryActions = ({ actions, hasPrimaryAction, }) => {
3376
3376
  return [danger, [...others, action]];
3377
3377
  }
3378
3378
  }, [[], []]);
3379
- return (jsxRuntime.jsx(MoreMenu, { dataTestId: "secondary-actions-more-menu", children: close => (jsxRuntime.jsxs(MenuList, { className: "min-w-[160px]", children: [otherActions.map((action, index) => (jsxRuntime.jsx(ActionRenderer, { action: action, externalOnClick: close, isMenuItem: true }, `${action.actionText}-${index}`))), dangerActions.length ? jsxRuntime.jsx(MenuDivider, {}) : null, dangerActions.map((action, index) => (jsxRuntime.jsx(ActionRenderer, { action: action, externalOnClick: close, isMenuItem: true }, `${action.actionText}-${index}`)))] })) }));
3379
+ return (jsxRuntime.jsx(MoreMenu, { dataTestId: "secondary-actions-more-menu", iconButtonProps: { size: "small", variant: "ghost-neutral" }, children: close => (jsxRuntime.jsxs(MenuList, { className: "min-w-[160px]", children: [otherActions.map((action, index) => (jsxRuntime.jsx(ActionRenderer, { action: action, externalOnClick: close, isMenuItem: true }, `${action.actionText}-${index}`))), dangerActions.length ? jsxRuntime.jsx(MenuDivider, {}) : null, dangerActions.map((action, index) => (jsxRuntime.jsx(ActionRenderer, { action: action, externalOnClick: close, isMenuItem: true }, `${action.actionText}-${index}`)))] })) }));
3380
3380
  }
3381
3381
  // Otherwise, render them inline as buttons
3382
3382
  return (jsxRuntime.jsx("div", { className: "flex flex-row items-center gap-2", children: enabledActions
package/index.esm.js CHANGED
@@ -3374,7 +3374,7 @@ const PageHeaderSecondaryActions = ({ actions, hasPrimaryAction, }) => {
3374
3374
  return [danger, [...others, action]];
3375
3375
  }
3376
3376
  }, [[], []]);
3377
- return (jsx(MoreMenu, { dataTestId: "secondary-actions-more-menu", children: close => (jsxs(MenuList, { className: "min-w-[160px]", children: [otherActions.map((action, index) => (jsx(ActionRenderer, { action: action, externalOnClick: close, isMenuItem: true }, `${action.actionText}-${index}`))), dangerActions.length ? jsx(MenuDivider, {}) : null, dangerActions.map((action, index) => (jsx(ActionRenderer, { action: action, externalOnClick: close, isMenuItem: true }, `${action.actionText}-${index}`)))] })) }));
3377
+ return (jsx(MoreMenu, { dataTestId: "secondary-actions-more-menu", iconButtonProps: { size: "small", variant: "ghost-neutral" }, children: close => (jsxs(MenuList, { className: "min-w-[160px]", children: [otherActions.map((action, index) => (jsx(ActionRenderer, { action: action, externalOnClick: close, isMenuItem: true }, `${action.actionText}-${index}`))), dangerActions.length ? jsx(MenuDivider, {}) : null, dangerActions.map((action, index) => (jsx(ActionRenderer, { action: action, externalOnClick: close, isMenuItem: true }, `${action.actionText}-${index}`)))] })) }));
3378
3378
  }
3379
3379
  // Otherwise, render them inline as buttons
3380
3380
  return (jsx("div", { className: "flex flex-row items-center gap-2", children: enabledActions
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trackunit/react-components",
3
- "version": "1.5.19",
3
+ "version": "1.5.22",
4
4
  "repository": "https://github.com/Trackunit/manager",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "engines": {
@@ -18,12 +18,12 @@
18
18
  "@tanstack/react-router": "1.114.29",
19
19
  "string-ts": "^2.0.0",
20
20
  "tailwind-merge": "^2.0.0",
21
- "@trackunit/ui-design-tokens": "1.4.15",
22
- "@trackunit/css-class-variance-utilities": "1.4.13",
23
- "@trackunit/shared-utils": "1.6.13",
24
- "@trackunit/ui-icons": "1.4.13",
25
- "@trackunit/react-table-pagination": "1.4.13",
26
- "@trackunit/react-test-setup": "1.1.13"
21
+ "@trackunit/ui-design-tokens": "1.4.17",
22
+ "@trackunit/css-class-variance-utilities": "1.4.15",
23
+ "@trackunit/shared-utils": "1.6.15",
24
+ "@trackunit/ui-icons": "1.4.15",
25
+ "@trackunit/react-table-pagination": "1.4.15",
26
+ "@trackunit/react-test-setup": "1.1.15"
27
27
  },
28
28
  "module": "./index.esm.js",
29
29
  "main": "./index.cjs.js",