ywana-core8 0.0.378 → 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 +6 -19
- package/dist/index.cjs.map +1 -1
- package/dist/index.modern.js +6 -19
- package/dist/index.modern.js.map +1 -1
- package/dist/index.umd.js +6 -19
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/site/dialog.js +2 -9
- package/src/widgets/upload/UploadDialog.js +3 -4
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))));
|
@@ -3463,14 +3453,12 @@ var View = function View(props) {
|
|
3463
3453
|
*/
|
3464
3454
|
|
3465
3455
|
var UploadDialog = function UploadDialog(_ref) {
|
3466
|
-
var
|
3467
|
-
label = _ref.label,
|
3456
|
+
var label = _ref.label,
|
3468
3457
|
target = _ref.target,
|
3469
3458
|
accept = _ref.accept,
|
3470
3459
|
onSuccess = _ref.onSuccess,
|
3471
3460
|
onComplete = _ref.onComplete,
|
3472
|
-
onClose = _ref.onClose
|
3473
|
-
children = _ref.children;
|
3461
|
+
onClose = _ref.onClose;
|
3474
3462
|
var site = React.useContext(SiteContext);
|
3475
3463
|
|
3476
3464
|
function success(file, message) {
|
@@ -3498,19 +3486,18 @@ var UploadDialog = function UploadDialog(_ref) {
|
|
3498
3486
|
use: "headline6"
|
3499
3487
|
}, label);
|
3500
3488
|
return /*#__PURE__*/React__default["default"].createElement(Dialog, {
|
3501
|
-
className: className,
|
3502
3489
|
title: title,
|
3503
3490
|
open: true,
|
3504
3491
|
onAction: onAction,
|
3505
3492
|
actions: actions,
|
3506
|
-
eventPropagation:
|
3493
|
+
eventPropagation: true
|
3507
3494
|
}, /*#__PURE__*/React__default["default"].createElement(Uploader, {
|
3508
3495
|
label: label,
|
3509
3496
|
accept: accept,
|
3510
3497
|
target: target,
|
3511
3498
|
onSuccess: success,
|
3512
3499
|
onComplete: complete
|
3513
|
-
})
|
3500
|
+
}));
|
3514
3501
|
};
|
3515
3502
|
|
3516
3503
|
/**
|