@dartcom/ui-kit 10.1.11 → 10.1.12
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/dist/index.cjs +3 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -30753,10 +30753,12 @@ const CustomModal = ({ name, children, onClose, onOpen, }) => {
|
|
|
30753
30753
|
if (open) {
|
|
30754
30754
|
onOpen?.({ name });
|
|
30755
30755
|
}
|
|
30756
|
+
else {
|
|
30757
|
+
onClose?.({ name });
|
|
30758
|
+
}
|
|
30756
30759
|
}, [open]);
|
|
30757
30760
|
return (jsxRuntime.jsx(Modal, { open: open, onClose: () => {
|
|
30758
30761
|
modalStore.closeModal(name);
|
|
30759
|
-
onClose?.({ name });
|
|
30760
30762
|
}, "aria-labelledby": `modal-${modalId}-title`, "aria-describedby": `modal-${modalId}-description`, children: jsxRuntime.jsx(Box, { sx: ({ breakpoints }) => {
|
|
30761
30763
|
return {
|
|
30762
30764
|
...modalStyle,
|