ywana-core8 0.0.384 → 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 CHANGED
@@ -2751,7 +2751,8 @@ var EventCard = function EventCard(props) {
2751
2751
  */
2752
2752
 
2753
2753
  var UploadArea = function UploadArea(props) {
2754
- var icon = props.icon,
2754
+ var resumable = props.resumable,
2755
+ icon = props.icon,
2755
2756
  _props$label = props.label,
2756
2757
  label = _props$label === void 0 ? 'Add file or drop file here...' : _props$label;
2757
2758
  var areaElement = React.useRef();
@@ -2761,8 +2762,6 @@ var UploadArea = function UploadArea(props) {
2761
2762
  setDrag = _useState[1];
2762
2763
 
2763
2764
  React.useEffect(function () {
2764
- var resumable = props.resumable;
2765
-
2766
2765
  if (resumable && areaElement) {
2767
2766
  resumable.assignDrop(areaElement.current);
2768
2767
  resumable.assignBrowse(areaElement.current);
@@ -2783,10 +2782,9 @@ var UploadArea = function UploadArea(props) {
2783
2782
  onDragOver: onDragOver,
2784
2783
  onDragLeave: onDragLeave,
2785
2784
  ref: areaElement
2786
- }, /*#__PURE__*/React__default["default"].createElement(Icon, {
2785
+ }, /*#__PURE__*/React__default["default"].createElement(UploadIcon, {
2787
2786
  icon: icon,
2788
- clickable: true,
2789
- eventPropagation: true
2787
+ resumable: resumable
2790
2788
  }), /*#__PURE__*/React__default["default"].createElement("label", null, label));
2791
2789
  };
2792
2790
  /**
@@ -2808,8 +2806,7 @@ var UploadIcon = function UploadIcon(_ref) {
2808
2806
  className: "upload-icon",
2809
2807
  ref: iconElement
2810
2808
  }, /*#__PURE__*/React__default["default"].createElement(Icon, {
2811
- icon: icon,
2812
- clickable: true
2809
+ icon: icon
2813
2810
  }));
2814
2811
  };
2815
2812