ywana-core8 0.0.785 → 0.0.787
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 +10 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.modern.js +10 -2
- package/dist/index.modern.js.map +1 -1
- package/dist/index.umd.js +10 -2
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/site/dialog.js +9 -3
package/dist/index.umd.js
CHANGED
@@ -4220,7 +4220,15 @@
|
|
4220
4220
|
children = props.children,
|
4221
4221
|
actions = props.actions,
|
4222
4222
|
className = props.className,
|
4223
|
-
onClose = props.onClose
|
4223
|
+
onClose = props.onClose,
|
4224
|
+
_props$overlayCanClos = props.overlayCanClose,
|
4225
|
+
overlayCanClose = _props$overlayCanClos === void 0 ? true : _props$overlayCanClos;
|
4226
|
+
|
4227
|
+
function overlayClose() {
|
4228
|
+
if (overlayCanClose) {
|
4229
|
+
close();
|
4230
|
+
}
|
4231
|
+
}
|
4224
4232
|
|
4225
4233
|
function close() {
|
4226
4234
|
if (onClose) onClose();
|
@@ -4234,7 +4242,7 @@
|
|
4234
4242
|
|
4235
4243
|
return /*#__PURE__*/React__default["default"].createElement(React.Fragment, null, /*#__PURE__*/React__default["default"].createElement("div", {
|
4236
4244
|
className: "overlay " + className,
|
4237
|
-
onMouseDown:
|
4245
|
+
onMouseDown: overlayClose
|
4238
4246
|
}), /*#__PURE__*/React__default["default"].createElement("dialog", {
|
4239
4247
|
className: "dialog-panel " + className
|
4240
4248
|
}, /*#__PURE__*/React__default["default"].createElement("header", null, icon ? /*#__PURE__*/React__default["default"].createElement(MenuIcon, {
|