ywana-core8 0.0.379 → 0.0.382
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 -20
- package/dist/index.cjs.map +1 -1
- package/dist/index.modern.js +6 -20
- package/dist/index.modern.js.map +1 -1
- package/dist/index.umd.js +6 -20
- 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.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))));
|
@@ -3458,14 +3448,12 @@
|
|
3458
3448
|
*/
|
3459
3449
|
|
3460
3450
|
var UploadDialog = function UploadDialog(_ref) {
|
3461
|
-
var
|
3462
|
-
label = _ref.label,
|
3451
|
+
var label = _ref.label,
|
3463
3452
|
target = _ref.target,
|
3464
3453
|
accept = _ref.accept,
|
3465
3454
|
onSuccess = _ref.onSuccess,
|
3466
3455
|
onComplete = _ref.onComplete,
|
3467
|
-
onClose = _ref.onClose
|
3468
|
-
children = _ref.children;
|
3456
|
+
onClose = _ref.onClose;
|
3469
3457
|
var site = React.useContext(SiteContext);
|
3470
3458
|
|
3471
3459
|
function success(file, message) {
|
@@ -3493,19 +3481,17 @@
|
|
3493
3481
|
use: "headline6"
|
3494
3482
|
}, label);
|
3495
3483
|
return /*#__PURE__*/React__default["default"].createElement(Dialog, {
|
3496
|
-
className: className,
|
3497
3484
|
title: title,
|
3498
3485
|
open: true,
|
3499
3486
|
onAction: onAction,
|
3500
|
-
actions: actions
|
3501
|
-
eventPropagation: true
|
3487
|
+
actions: actions
|
3502
3488
|
}, /*#__PURE__*/React__default["default"].createElement(Uploader, {
|
3503
3489
|
label: label,
|
3504
3490
|
accept: accept,
|
3505
3491
|
target: target,
|
3506
3492
|
onSuccess: success,
|
3507
3493
|
onComplete: complete
|
3508
|
-
})
|
3494
|
+
}));
|
3509
3495
|
};
|
3510
3496
|
|
3511
3497
|
/**
|