@trackunit/react-table 1.13.28 → 1.13.29

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
@@ -356,9 +356,9 @@ const ActionContainerAndOverflow = ({ actions, dropdownActions, moreActions, "da
356
356
  * @param {ActionSheetProps} props - The props for the ActionSheet component
357
357
  * @returns {ReactElement} ActionSheet component
358
358
  */
359
- const ActionSheet = ({ actions, dropdownActions, moreActions = [], selections, resetSelection, className, "data-testid": dataTestId, }) => {
359
+ const ActionSheet = ({ actions, dropdownActions, moreActions = [], selections, resetSelection: onClickResetSelection, className, "data-testid": dataTestId, }) => {
360
360
  const [t] = useTranslation();
361
- return (jsxRuntime.jsxs("div", { className: cvaActionSheet({ className }), "data-testid": dataTestId, children: [jsxRuntime.jsx(reactComponents.Button, { className: "row-start-1", "data-testid": "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, { "data-testid": dataTestId,
361
+ return (jsxRuntime.jsxs("div", { className: cvaActionSheet({ className }), "data-testid": dataTestId, children: [jsxRuntime.jsx(reactComponents.Button, { className: "row-start-1", "data-testid": "XButton", onClick: onClickResetSelection, 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, { "data-testid": dataTestId,
362
362
  actions,
363
363
  dropdownActions,
364
364
  moreActions: moreActions.map(action => actionDataToMenuItem(action, dataTestId)) })] }));
package/index.esm.js CHANGED
@@ -355,9 +355,9 @@ const ActionContainerAndOverflow = ({ actions, dropdownActions, moreActions, "da
355
355
  * @param {ActionSheetProps} props - The props for the ActionSheet component
356
356
  * @returns {ReactElement} ActionSheet component
357
357
  */
358
- const ActionSheet = ({ actions, dropdownActions, moreActions = [], selections, resetSelection, className, "data-testid": dataTestId, }) => {
358
+ const ActionSheet = ({ actions, dropdownActions, moreActions = [], selections, resetSelection: onClickResetSelection, className, "data-testid": dataTestId, }) => {
359
359
  const [t] = useTranslation();
360
- return (jsxs("div", { className: cvaActionSheet({ className }), "data-testid": dataTestId, children: [jsx(Button, { className: "row-start-1", "data-testid": "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, { "data-testid": dataTestId,
360
+ return (jsxs("div", { className: cvaActionSheet({ className }), "data-testid": dataTestId, children: [jsx(Button, { className: "row-start-1", "data-testid": "XButton", onClick: onClickResetSelection, 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, { "data-testid": dataTestId,
361
361
  actions,
362
362
  dropdownActions,
363
363
  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.13.28",
3
+ "version": "1.13.29",
4
4
  "repository": "https://github.com/Trackunit/manager",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "engines": {
@@ -14,14 +14,14 @@
14
14
  "react-dnd-html5-backend": "16.0.1",
15
15
  "@tanstack/react-router": "1.114.29",
16
16
  "tailwind-merge": "^2.0.0",
17
- "@trackunit/react-components": "1.17.25",
18
- "@trackunit/shared-utils": "1.13.43",
19
- "@trackunit/css-class-variance-utilities": "1.11.43",
20
- "@trackunit/ui-icons": "1.11.42",
21
- "@trackunit/react-table-base-components": "1.13.28",
22
- "@trackunit/react-form-components": "1.14.28",
23
- "@trackunit/i18n-library-translation": "1.12.28",
24
- "@trackunit/iris-app-runtime-core-api": "1.12.24",
17
+ "@trackunit/react-components": "1.17.26",
18
+ "@trackunit/shared-utils": "1.13.44",
19
+ "@trackunit/css-class-variance-utilities": "1.11.44",
20
+ "@trackunit/ui-icons": "1.11.43",
21
+ "@trackunit/react-table-base-components": "1.13.29",
22
+ "@trackunit/react-form-components": "1.14.29",
23
+ "@trackunit/i18n-library-translation": "1.12.29",
24
+ "@trackunit/iris-app-runtime-core-api": "1.12.25",
25
25
  "graphql": "^16.10.0"
26
26
  },
27
27
  "module": "./index.esm.js",
@@ -127,4 +127,4 @@ export interface ActionSheetProps extends CommonProps {
127
127
  * @param {ActionSheetProps} props - The props for the ActionSheet component
128
128
  * @returns {ReactElement} ActionSheet component
129
129
  */
130
- export declare const ActionSheet: ({ actions, dropdownActions, moreActions, selections, resetSelection, className, "data-testid": dataTestId, }: ActionSheetProps) => import("react/jsx-runtime").JSX.Element;
130
+ export declare const ActionSheet: ({ actions, dropdownActions, moreActions, selections, resetSelection: onClickResetSelection, className, "data-testid": dataTestId, }: ActionSheetProps) => import("react/jsx-runtime").JSX.Element;