@trackunit/react-table 1.13.30 → 1.13.31
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 +4 -2
- package/index.esm.js +4 -2
- package/package.json +1 -1
- package/src/ActionSheet/ActionSheet.d.ts +1 -1
package/index.cjs.js
CHANGED
|
@@ -356,9 +356,11 @@ 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
|
|
359
|
+
const ActionSheet = ({ actions, dropdownActions, moreActions = [], selections, resetSelection, 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",
|
|
361
|
+
return (jsxRuntime.jsxs("div", { className: cvaActionSheet({ className }), "data-testid": dataTestId, children: [jsxRuntime.jsx(reactComponents.Button, { className: "row-start-1", "data-testid": "XButton",
|
|
362
|
+
// eslint-disable-next-line local-rules/prefer-event-specific-callback-naming
|
|
363
|
+
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,
|
|
362
364
|
actions,
|
|
363
365
|
dropdownActions,
|
|
364
366
|
moreActions: moreActions.map(action => actionDataToMenuItem(action, dataTestId)) })] }));
|
package/index.esm.js
CHANGED
|
@@ -355,9 +355,11 @@ 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
|
|
358
|
+
const ActionSheet = ({ actions, dropdownActions, moreActions = [], selections, resetSelection, 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",
|
|
360
|
+
return (jsxs("div", { className: cvaActionSheet({ className }), "data-testid": dataTestId, children: [jsx(Button, { className: "row-start-1", "data-testid": "XButton",
|
|
361
|
+
// eslint-disable-next-line local-rules/prefer-event-specific-callback-naming
|
|
362
|
+
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,
|
|
361
363
|
actions,
|
|
362
364
|
dropdownActions,
|
|
363
365
|
moreActions: moreActions.map(action => actionDataToMenuItem(action, dataTestId)) })] }));
|
package/package.json
CHANGED
|
@@ -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
|
|
130
|
+
export declare const ActionSheet: ({ actions, dropdownActions, moreActions, selections, resetSelection, className, "data-testid": dataTestId, }: ActionSheetProps) => import("react/jsx-runtime").JSX.Element;
|