@trackunit/react-components 1.5.20 → 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 +1 -1
- package/index.esm.js +1 -1
- package/package.json +7 -7
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.
|
|
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.
|
|
22
|
-
"@trackunit/css-class-variance-utilities": "1.4.
|
|
23
|
-
"@trackunit/shared-utils": "1.6.
|
|
24
|
-
"@trackunit/ui-icons": "1.4.
|
|
25
|
-
"@trackunit/react-table-pagination": "1.4.
|
|
26
|
-
"@trackunit/react-test-setup": "1.1.
|
|
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",
|