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.
@@ -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))));