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.modern.js
CHANGED
@@ -3368,9 +3368,7 @@ var Dialog = function Dialog(props) {
|
|
3368
3368
|
title = _props$title === void 0 ? "Dialog" : _props$title,
|
3369
3369
|
children = props.children,
|
3370
3370
|
actions = props.actions,
|
3371
|
-
className = props.className
|
3372
|
-
_props$eventPropagati = props.eventPropagation,
|
3373
|
-
eventPropagation = _props$eventPropagati === void 0 ? false : _props$eventPropagati;
|
3371
|
+
className = props.className;
|
3374
3372
|
|
3375
3373
|
function close() {
|
3376
3374
|
if (className === "prompt") {
|
@@ -3380,21 +3378,13 @@ var Dialog = function Dialog(props) {
|
|
3380
3378
|
}
|
3381
3379
|
}
|
3382
3380
|
|
3383
|
-
function prevent(e) {
|
3384
|
-
if (!eventPropagation) {
|
3385
|
-
e.preventDefault();
|
3386
|
-
e.stopPropagation();
|
3387
|
-
}
|
3388
|
-
}
|
3389
|
-
|
3390
3381
|
return /*#__PURE__*/React.createElement(Fragment, null, /*#__PURE__*/React.createElement("div", {
|
3391
3382
|
className: "overlay " + className
|
3392
3383
|
}), /*#__PURE__*/React.createElement("div", {
|
3393
3384
|
className: "dialog " + className,
|
3394
3385
|
onClick: close
|
3395
3386
|
}, /*#__PURE__*/React.createElement("div", {
|
3396
|
-
className: "dialog-panel"
|
3397
|
-
onClick: prevent
|
3387
|
+
className: "dialog-panel"
|
3398
3388
|
}, /*#__PURE__*/React.createElement("header", null, icon ? /*#__PURE__*/React.createElement(MenuIcon, {
|
3399
3389
|
icon: icon
|
3400
3390
|
}) : null, /*#__PURE__*/React.createElement(Text, null, title)), /*#__PURE__*/React.createElement("main", null, children), /*#__PURE__*/React.createElement("footer", null, actions))));
|