ywana-core8 0.0.380 → 0.0.381
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 +2 -12
- package/dist/index.cjs.map +1 -1
- package/dist/index.modern.js +2 -12
- package/dist/index.modern.js.map +1 -1
- package/dist/index.umd.js +2 -12
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/site/dialog.js +2 -9
package/dist/index.cjs
CHANGED
@@ -3376,9 +3376,7 @@ var Dialog = function Dialog(props) {
|
|
3376
3376
|
title = _props$title === void 0 ? "Dialog" : _props$title,
|
3377
3377
|
children = props.children,
|
3378
3378
|
actions = props.actions,
|
3379
|
-
className = props.className
|
3380
|
-
_props$eventPropagati = props.eventPropagation,
|
3381
|
-
eventPropagation = _props$eventPropagati === void 0 ? false : _props$eventPropagati;
|
3379
|
+
className = props.className;
|
3382
3380
|
|
3383
3381
|
function close() {
|
3384
3382
|
if (className === "prompt") {
|
@@ -3388,21 +3386,13 @@ var Dialog = function Dialog(props) {
|
|
3388
3386
|
}
|
3389
3387
|
}
|
3390
3388
|
|
3391
|
-
function prevent(e) {
|
3392
|
-
if (!eventPropagation) {
|
3393
|
-
e.preventDefault();
|
3394
|
-
e.stopPropagation();
|
3395
|
-
}
|
3396
|
-
}
|
3397
|
-
|
3398
3389
|
return /*#__PURE__*/React__default["default"].createElement(React.Fragment, null, /*#__PURE__*/React__default["default"].createElement("div", {
|
3399
3390
|
className: "overlay " + className
|
3400
3391
|
}), /*#__PURE__*/React__default["default"].createElement("div", {
|
3401
3392
|
className: "dialog " + className,
|
3402
3393
|
onClick: close
|
3403
3394
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
3404
|
-
className: "dialog-panel"
|
3405
|
-
onClick: prevent
|
3395
|
+
className: "dialog-panel"
|
3406
3396
|
}, /*#__PURE__*/React__default["default"].createElement("header", null, icon ? /*#__PURE__*/React__default["default"].createElement(MenuIcon, {
|
3407
3397
|
icon: icon
|
3408
3398
|
}) : null, /*#__PURE__*/React__default["default"].createElement(Text, null, title)), /*#__PURE__*/React__default["default"].createElement("main", null, children), /*#__PURE__*/React__default["default"].createElement("footer", null, actions))));
|