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.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))));
|
@@ -3455,14 +3445,12 @@ var View = function View(props) {
|
|
3455
3445
|
*/
|
3456
3446
|
|
3457
3447
|
var UploadDialog = function UploadDialog(_ref) {
|
3458
|
-
var
|
3459
|
-
label = _ref.label,
|
3448
|
+
var label = _ref.label,
|
3460
3449
|
target = _ref.target,
|
3461
3450
|
accept = _ref.accept,
|
3462
3451
|
onSuccess = _ref.onSuccess,
|
3463
3452
|
onComplete = _ref.onComplete,
|
3464
|
-
onClose = _ref.onClose
|
3465
|
-
children = _ref.children;
|
3453
|
+
onClose = _ref.onClose;
|
3466
3454
|
var site = useContext(SiteContext);
|
3467
3455
|
|
3468
3456
|
function success(file, message) {
|
@@ -3490,19 +3478,17 @@ var UploadDialog = function UploadDialog(_ref) {
|
|
3490
3478
|
use: "headline6"
|
3491
3479
|
}, label);
|
3492
3480
|
return /*#__PURE__*/React.createElement(Dialog, {
|
3493
|
-
className: className,
|
3494
3481
|
title: title,
|
3495
3482
|
open: true,
|
3496
3483
|
onAction: onAction,
|
3497
|
-
actions: actions
|
3498
|
-
eventPropagation: true
|
3484
|
+
actions: actions
|
3499
3485
|
}, /*#__PURE__*/React.createElement(Uploader, {
|
3500
3486
|
label: label,
|
3501
3487
|
accept: accept,
|
3502
3488
|
target: target,
|
3503
3489
|
onSuccess: success,
|
3504
3490
|
onComplete: complete
|
3505
|
-
})
|
3491
|
+
}));
|
3506
3492
|
};
|
3507
3493
|
|
3508
3494
|
/**
|