ywana-core8 0.0.382 → 0.0.385
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 +12 -9
- package/dist/index.cjs.map +1 -1
- package/dist/index.modern.js +12 -9
- package/dist/index.modern.js.map +1 -1
- package/dist/index.umd.js +12 -9
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/site/dialog.js +6 -1
- package/src/widgets/upload/UploadArea.js +3 -4
package/dist/index.modern.js
CHANGED
@@ -2743,7 +2743,8 @@ var EventCard = function EventCard(props) {
|
|
2743
2743
|
*/
|
2744
2744
|
|
2745
2745
|
var UploadArea = function UploadArea(props) {
|
2746
|
-
var
|
2746
|
+
var resumable = props.resumable,
|
2747
|
+
icon = props.icon,
|
2747
2748
|
_props$label = props.label,
|
2748
2749
|
label = _props$label === void 0 ? 'Add file or drop file here...' : _props$label;
|
2749
2750
|
var areaElement = useRef();
|
@@ -2753,8 +2754,6 @@ var UploadArea = function UploadArea(props) {
|
|
2753
2754
|
setDrag = _useState[1];
|
2754
2755
|
|
2755
2756
|
useEffect(function () {
|
2756
|
-
var resumable = props.resumable;
|
2757
|
-
|
2758
2757
|
if (resumable && areaElement) {
|
2759
2758
|
resumable.assignDrop(areaElement.current);
|
2760
2759
|
resumable.assignBrowse(areaElement.current);
|
@@ -2775,10 +2774,9 @@ var UploadArea = function UploadArea(props) {
|
|
2775
2774
|
onDragOver: onDragOver,
|
2776
2775
|
onDragLeave: onDragLeave,
|
2777
2776
|
ref: areaElement
|
2778
|
-
}, /*#__PURE__*/React.createElement(
|
2777
|
+
}, /*#__PURE__*/React.createElement(UploadIcon, {
|
2779
2778
|
icon: icon,
|
2780
|
-
|
2781
|
-
eventPropagation: false
|
2779
|
+
resumable: resumable
|
2782
2780
|
}), /*#__PURE__*/React.createElement("label", null, label));
|
2783
2781
|
};
|
2784
2782
|
/**
|
@@ -2800,8 +2798,7 @@ var UploadIcon = function UploadIcon(_ref) {
|
|
2800
2798
|
className: "upload-icon",
|
2801
2799
|
ref: iconElement
|
2802
2800
|
}, /*#__PURE__*/React.createElement(Icon, {
|
2803
|
-
icon: icon
|
2804
|
-
clickable: true
|
2801
|
+
icon: icon
|
2805
2802
|
}));
|
2806
2803
|
};
|
2807
2804
|
|
@@ -3378,13 +3375,19 @@ var Dialog = function Dialog(props) {
|
|
3378
3375
|
}
|
3379
3376
|
}
|
3380
3377
|
|
3378
|
+
function prevent(e) {
|
3379
|
+
e.preventDefault();
|
3380
|
+
e.stopPropagation();
|
3381
|
+
}
|
3382
|
+
|
3381
3383
|
return /*#__PURE__*/React.createElement(Fragment, null, /*#__PURE__*/React.createElement("div", {
|
3382
3384
|
className: "overlay " + className
|
3383
3385
|
}), /*#__PURE__*/React.createElement("div", {
|
3384
3386
|
className: "dialog " + className,
|
3385
3387
|
onClick: close
|
3386
3388
|
}, /*#__PURE__*/React.createElement("div", {
|
3387
|
-
className: "dialog-panel"
|
3389
|
+
className: "dialog-panel",
|
3390
|
+
onClick: prevent
|
3388
3391
|
}, /*#__PURE__*/React.createElement("header", null, icon ? /*#__PURE__*/React.createElement(MenuIcon, {
|
3389
3392
|
icon: icon
|
3390
3393
|
}) : null, /*#__PURE__*/React.createElement(Text, null, title)), /*#__PURE__*/React.createElement("main", null, children), /*#__PURE__*/React.createElement("footer", null, actions))));
|