@trackunit/react-components 1.5.29 → 1.5.30

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
@@ -3380,7 +3380,7 @@ const PageHeaderSecondaryActions = ({ actions, hasPrimaryAction, }) => {
3380
3380
  return [danger, [...others, action]];
3381
3381
  }
3382
3382
  }, [[], []]);
3383
- 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}`)))] })) }));
3383
+ return (jsxRuntime.jsx(MoreMenu, { dataTestId: "secondary-actions-more-menu", iconButtonProps: { size: "small", variant: "secondary" }, 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}`)))] })) }));
3384
3384
  }
3385
3385
  // Otherwise, render them inline as buttons
3386
3386
  return (jsxRuntime.jsx("div", { className: "flex flex-row items-center gap-2", children: enabledActions
package/index.esm.js CHANGED
@@ -3378,7 +3378,7 @@ const PageHeaderSecondaryActions = ({ actions, hasPrimaryAction, }) => {
3378
3378
  return [danger, [...others, action]];
3379
3379
  }
3380
3380
  }, [[], []]);
3381
- 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}`)))] })) }));
3381
+ return (jsx(MoreMenu, { dataTestId: "secondary-actions-more-menu", iconButtonProps: { size: "small", variant: "secondary" }, 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}`)))] })) }));
3382
3382
  }
3383
3383
  // Otherwise, render them inline as buttons
3384
3384
  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.29",
3
+ "version": "1.5.30",
4
4
  "repository": "https://github.com/Trackunit/manager",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "engines": {
@@ -26,7 +26,7 @@ export type PageHeaderSecondaryActionType = PageHeaderActionType & {
26
26
  target?: HTMLAnchorElement["target"];
27
27
  };
28
28
  export type PageHeaderPrimaryActionType = PageHeaderActionType & {
29
- variant: Extract<ButtonVariant, "primary" | "primary-danger">;
29
+ variant: Extract<ButtonVariant, "primary" | "primary-danger" | "secondary">;
30
30
  };
31
31
  interface BasePageHeaderProps extends CommonProps {
32
32
  /**