@bluemarble/bm-components 2.5.0 → 2.5.2
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 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +3 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -4546,7 +4546,8 @@ var BaseDialogContainer = ({
|
|
|
4546
4546
|
}) => {
|
|
4547
4547
|
const { name } = useBaseDialogInstance();
|
|
4548
4548
|
const { isOpened, close: closeDialog } = useBaseDialog();
|
|
4549
|
-
|
|
4549
|
+
const close = React2.default.useCallback(() => closeDialog(name), [closeDialog, name]);
|
|
4550
|
+
return /* @__PURE__ */ React2.default.createElement(_material.Modal, { open: isOpened(name), onClose: close, ...rest }, /* @__PURE__ */ React2.default.createElement(
|
|
4550
4551
|
_material.Box,
|
|
4551
4552
|
{
|
|
4552
4553
|
...BoxProps3,
|
|
@@ -4561,7 +4562,7 @@ var BaseDialogContainer = ({
|
|
|
4561
4562
|
..._optionalChain([BoxProps3, 'optionalAccess', _90 => _90.sx])
|
|
4562
4563
|
}
|
|
4563
4564
|
},
|
|
4564
|
-
children
|
|
4565
|
+
typeof children === "function" ? children({ close }) : children
|
|
4565
4566
|
));
|
|
4566
4567
|
};
|
|
4567
4568
|
var BaseDialogBody = (props) => {
|