@trackunit/react-compound-components 1.7.70 → 1.7.75
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 +3 -3
- package/package.json +12 -12
package/index.cjs.js
CHANGED
|
@@ -65,7 +65,7 @@ const setupLibraryTranslations = () => {
|
|
|
65
65
|
*
|
|
66
66
|
*/
|
|
67
67
|
const ConfirmationDialogModal = ({ title, message, handlePrimaryActionClick, handleSecondaryActionClick, secondaryActionLabel, primaryActionType, primaryActionLabel, ...modalProps }) => {
|
|
68
|
-
return (jsxRuntime.jsxs(reactModal.Modal, { ...modalProps, className: "max-w-xl", children: [jsxRuntime.jsx(
|
|
68
|
+
return (jsxRuntime.jsxs(reactModal.Modal, { ...modalProps, className: "max-w-xl", children: [jsxRuntime.jsx(reactModal.ModalHeader, { heading: title, id: "dialogTitle", onClose: modalProps.close }), jsxRuntime.jsx(reactModal.ModalBody, { id: "dialogDesc", children: message }), jsxRuntime.jsxs(reactModal.ModalFooter, { children: [jsxRuntime.jsx(reactComponents.Button, { dataTestId: "secondaryAction", onClick: handleSecondaryActionClick, variant: "ghost-neutral", children: secondaryActionLabel }), jsxRuntime.jsx(reactComponents.Button, { dataTestId: "primaryAction", onClick: handlePrimaryActionClick, variant: primaryActionType, children: primaryActionLabel })] })] }));
|
|
69
69
|
};
|
|
70
70
|
|
|
71
71
|
/**
|
package/index.esm.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
|
|
2
2
|
import { registerTranslations, useNamespaceTranslation } from '@trackunit/i18n-library-translation';
|
|
3
3
|
import { ConfirmationDialogProvider } from '@trackunit/react-core-hooks';
|
|
4
|
-
import { Modal, useModal } from '@trackunit/react-modal';
|
|
4
|
+
import { Modal, ModalHeader, ModalBody, ModalFooter, useModal } from '@trackunit/react-modal';
|
|
5
5
|
import { useState, useMemo, useCallback, useRef, useEffect } from 'react';
|
|
6
|
-
import {
|
|
6
|
+
import { Button, useViewportBreakpoints, Icon, Spinner, Tooltip, SkeletonLines, Text, Tag } from '@trackunit/react-components';
|
|
7
7
|
import { cvaMerge } from '@trackunit/css-class-variance-utilities';
|
|
8
8
|
import ImageGallery from 'react-image-gallery';
|
|
9
9
|
import { twMerge } from 'tailwind-merge';
|
|
@@ -63,7 +63,7 @@ const setupLibraryTranslations = () => {
|
|
|
63
63
|
*
|
|
64
64
|
*/
|
|
65
65
|
const ConfirmationDialogModal = ({ title, message, handlePrimaryActionClick, handleSecondaryActionClick, secondaryActionLabel, primaryActionType, primaryActionLabel, ...modalProps }) => {
|
|
66
|
-
return (jsxs(Modal, { ...modalProps, className: "max-w-xl", children: [jsx(
|
|
66
|
+
return (jsxs(Modal, { ...modalProps, className: "max-w-xl", children: [jsx(ModalHeader, { heading: title, id: "dialogTitle", onClose: modalProps.close }), jsx(ModalBody, { id: "dialogDesc", children: message }), jsxs(ModalFooter, { children: [jsx(Button, { dataTestId: "secondaryAction", onClick: handleSecondaryActionClick, variant: "ghost-neutral", children: secondaryActionLabel }), jsx(Button, { dataTestId: "primaryAction", onClick: handlePrimaryActionClick, variant: primaryActionType, children: primaryActionLabel })] })] }));
|
|
67
67
|
};
|
|
68
68
|
|
|
69
69
|
/**
|
package/package.json
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trackunit/react-compound-components",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.75",
|
|
4
4
|
"repository": "https://github.com/Trackunit/manager",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"dependencies": {
|
|
7
7
|
"react": "19.0.0",
|
|
8
8
|
"tailwind-merge": "^2.0.0",
|
|
9
9
|
"react-image-gallery": "1.3.0",
|
|
10
|
-
"@trackunit/react-core-contexts-api": "1.8.
|
|
11
|
-
"@trackunit/react-core-hooks": "1.7.
|
|
12
|
-
"@trackunit/react-components": "1.10.
|
|
13
|
-
"@trackunit/react-modal": "1.8.
|
|
14
|
-
"@trackunit/css-class-variance-utilities": "1.7.
|
|
15
|
-
"@trackunit/date-and-time-utils": "1.7.
|
|
16
|
-
"@trackunit/react-form-components": "1.8.
|
|
17
|
-
"@trackunit/i18n-library-translation": "1.7.
|
|
18
|
-
"@trackunit/react-test-setup": "1.4.
|
|
19
|
-
"@trackunit/shared-utils": "1.9.
|
|
20
|
-
"@trackunit/ui-icons": "1.7.
|
|
10
|
+
"@trackunit/react-core-contexts-api": "1.8.51",
|
|
11
|
+
"@trackunit/react-core-hooks": "1.7.55",
|
|
12
|
+
"@trackunit/react-components": "1.10.12",
|
|
13
|
+
"@trackunit/react-modal": "1.8.72",
|
|
14
|
+
"@trackunit/css-class-variance-utilities": "1.7.47",
|
|
15
|
+
"@trackunit/date-and-time-utils": "1.7.47",
|
|
16
|
+
"@trackunit/react-form-components": "1.8.75",
|
|
17
|
+
"@trackunit/i18n-library-translation": "1.7.58",
|
|
18
|
+
"@trackunit/react-test-setup": "1.4.47",
|
|
19
|
+
"@trackunit/shared-utils": "1.9.47",
|
|
20
|
+
"@trackunit/ui-icons": "1.7.48"
|
|
21
21
|
},
|
|
22
22
|
"engines": {
|
|
23
23
|
"node": ">=22.x",
|