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