@trackunit/react-table 1.6.24 → 1.6.26

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
@@ -220,7 +220,7 @@ const actionDataToActionButton = (action) => (jsxRuntime.jsx(ActionButton, { act
220
220
  * @returns {ReactElement | null} - The icon for the action button, or null if no icon is defined.
221
221
  */
222
222
  const ActionIcon = ({ action }) => {
223
- return action.icon ? (jsxRuntime.jsx(reactComponents.Icon, { color: "primary_contrasted", "data-testid": "action-icon", forwardedRef: action.forwardedRef, name: action.icon, size: "small", style: action.style })) : null;
223
+ return action.icon ? (jsxRuntime.jsx(reactComponents.Icon, { color: "white", "data-testid": "action-icon", forwardedRef: action.forwardedRef, name: action.icon, size: "small", style: action.style })) : null;
224
224
  };
225
225
 
226
226
  /**
@@ -272,7 +272,7 @@ const ActionContainerAndOverflow = ({ actions, dropdownActions, moreActions, dat
272
272
  */
273
273
  const ActionSheet = ({ actions, dropdownActions, moreActions = [], selections, resetSelection, className, dataTestId, }) => {
274
274
  const [t] = useTranslation();
275
- return (jsxRuntime.jsxs("div", { className: cvaActionSheet({ className }), "data-testid": dataTestId, children: [jsxRuntime.jsx(reactComponents.Button, { className: "row-start-1", dataTestId: "XButton", onClick: resetSelection, prefix: jsxRuntime.jsx(reactComponents.Icon, { color: "primary_contrasted", "data-testid": "close-icon", name: "XMark", size: "small" }), children: t("table.actionsheet.selected", { count: selections.length }) }), jsxRuntime.jsx(reactComponents.Spacer, { border: true, className: cvaDivider() }), jsxRuntime.jsx(ActionContainerAndOverflow, { dataTestId,
275
+ return (jsxRuntime.jsxs("div", { className: cvaActionSheet({ className }), "data-testid": dataTestId, children: [jsxRuntime.jsx(reactComponents.Button, { className: "row-start-1", dataTestId: "XButton", onClick: resetSelection, prefix: jsxRuntime.jsx(reactComponents.Icon, { color: "white", "data-testid": "close-icon", name: "XMark", size: "small" }), children: t("table.actionsheet.selected", { count: selections.length }) }), jsxRuntime.jsx(reactComponents.Spacer, { border: true, className: cvaDivider() }), jsxRuntime.jsx(ActionContainerAndOverflow, { dataTestId,
276
276
  actions,
277
277
  dropdownActions,
278
278
  moreActions: moreActions.map(action => actionDataToMenuItem(action, dataTestId)) })] }));
package/index.esm.js CHANGED
@@ -219,7 +219,7 @@ const actionDataToActionButton = (action) => (jsx(ActionButton, { action: action
219
219
  * @returns {ReactElement | null} - The icon for the action button, or null if no icon is defined.
220
220
  */
221
221
  const ActionIcon = ({ action }) => {
222
- return action.icon ? (jsx(Icon, { color: "primary_contrasted", "data-testid": "action-icon", forwardedRef: action.forwardedRef, name: action.icon, size: "small", style: action.style })) : null;
222
+ return action.icon ? (jsx(Icon, { color: "white", "data-testid": "action-icon", forwardedRef: action.forwardedRef, name: action.icon, size: "small", style: action.style })) : null;
223
223
  };
224
224
 
225
225
  /**
@@ -271,7 +271,7 @@ const ActionContainerAndOverflow = ({ actions, dropdownActions, moreActions, dat
271
271
  */
272
272
  const ActionSheet = ({ actions, dropdownActions, moreActions = [], selections, resetSelection, className, dataTestId, }) => {
273
273
  const [t] = useTranslation();
274
- return (jsxs("div", { className: cvaActionSheet({ className }), "data-testid": dataTestId, children: [jsx(Button, { className: "row-start-1", dataTestId: "XButton", onClick: resetSelection, prefix: jsx(Icon, { color: "primary_contrasted", "data-testid": "close-icon", name: "XMark", size: "small" }), children: t("table.actionsheet.selected", { count: selections.length }) }), jsx(Spacer, { border: true, className: cvaDivider() }), jsx(ActionContainerAndOverflow, { dataTestId,
274
+ return (jsxs("div", { className: cvaActionSheet({ className }), "data-testid": dataTestId, children: [jsx(Button, { className: "row-start-1", dataTestId: "XButton", onClick: resetSelection, prefix: jsx(Icon, { color: "white", "data-testid": "close-icon", name: "XMark", size: "small" }), children: t("table.actionsheet.selected", { count: selections.length }) }), jsx(Spacer, { border: true, className: cvaDivider() }), jsx(ActionContainerAndOverflow, { dataTestId,
275
275
  actions,
276
276
  dropdownActions,
277
277
  moreActions: moreActions.map(action => actionDataToMenuItem(action, dataTestId)) })] }));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trackunit/react-table",
3
- "version": "1.6.24",
3
+ "version": "1.6.26",
4
4
  "repository": "https://github.com/Trackunit/manager",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "engines": {
@@ -15,16 +15,16 @@
15
15
  "jest-fetch-mock": "^3.0.3",
16
16
  "@tanstack/react-router": "1.114.29",
17
17
  "tailwind-merge": "^2.0.0",
18
- "@trackunit/react-components": "1.7.22",
19
- "@trackunit/shared-utils": "1.8.16",
20
- "@trackunit/css-class-variance-utilities": "1.6.16",
21
- "@trackunit/ui-icons": "1.6.15",
22
- "@trackunit/react-table-base-components": "1.6.24",
23
- "@trackunit/react-table-pagination": "1.6.15",
24
- "@trackunit/react-form-components": "1.6.23",
25
- "@trackunit/i18n-library-translation": "1.6.18",
26
- "@trackunit/react-core-contexts-api": "1.7.17",
27
- "@trackunit/react-test-setup": "1.3.16"
18
+ "@trackunit/react-components": "1.7.24",
19
+ "@trackunit/shared-utils": "1.8.18",
20
+ "@trackunit/css-class-variance-utilities": "1.6.18",
21
+ "@trackunit/ui-icons": "1.6.17",
22
+ "@trackunit/react-table-base-components": "1.6.26",
23
+ "@trackunit/react-table-pagination": "1.6.17",
24
+ "@trackunit/react-form-components": "1.6.25",
25
+ "@trackunit/i18n-library-translation": "1.6.20",
26
+ "@trackunit/react-core-contexts-api": "1.7.19",
27
+ "@trackunit/react-test-setup": "1.3.18"
28
28
  },
29
29
  "module": "./index.esm.js",
30
30
  "main": "./index.cjs.js",