ui-kit-ck-consultant 0.5.187 → 0.5.190

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.
@@ -3055,29 +3055,36 @@ var DropzoneMultiple = /*#__PURE__*/function (_React$Component) {
3055
3055
  var name = file.name.split('.');
3056
3056
 
3057
3057
  if (_this.checkExtension(name[name.length - 1])) {
3058
- var reader = new window.FileReader();
3058
+ if (!_this.props.maxFileSize || _this.props.maxFileSize * 1000000 > file.size) {
3059
+ var reader = new window.FileReader();
3060
+
3061
+ reader.onload = function () {
3062
+ var base64 = reader.result;
3063
+ var tmpFiles = _this.state.files;
3064
+ tmpFiles.push({
3065
+ base64: base64,
3066
+ mime: file.type,
3067
+ name: file.name,
3068
+ extension: name[name.length - 1],
3069
+ size: file.size
3070
+ });
3059
3071
 
3060
- reader.onload = function () {
3061
- var base64 = reader.result;
3062
- var tmpFiles = _this.state.files;
3063
- tmpFiles.push({
3064
- base64: base64,
3065
- mime: file.type,
3066
- name: file.name,
3067
- extension: name[name.length - 1],
3068
- size: file.size
3069
- });
3072
+ _this.setState({
3073
+ files: tmpFiles
3074
+ }, function () {
3075
+ _this.currentFile += 1;
3070
3076
 
3071
- _this.setState({
3072
- files: tmpFiles
3073
- }, function () {
3074
- _this.currentFile += 1;
3077
+ _this.nextFile(files);
3078
+ });
3079
+ };
3075
3080
 
3076
- _this.nextFile(files);
3077
- });
3078
- };
3081
+ reader.readAsDataURL(file);
3082
+ } else {
3083
+ alert('Fichier trop volumineux');
3084
+ _this.currentFile += 1;
3079
3085
 
3080
- reader.readAsDataURL(file);
3086
+ _this.nextFile(files);
3087
+ }
3081
3088
  } else {
3082
3089
  _this.currentFile += 1;
3083
3090
 
@@ -3391,11 +3398,11 @@ var ListingVerticalItem = /*#__PURE__*/function (_React$Component) {
3391
3398
  className: listingClass
3392
3399
  }, /*#__PURE__*/React.createElement("div", {
3393
3400
  className: style$s.listing_vertical_left
3394
- }, this.props.green ? /*#__PURE__*/React.createElement(FontAwesomeIcon, {
3401
+ }, this.props.icon ? this.props.icon : this.props.green ? /*#__PURE__*/React.createElement(FontAwesomeIcon, {
3395
3402
  icon: faCheck
3396
3403
  }) : ''), /*#__PURE__*/React.createElement("div", {
3397
3404
  className: style$s.listing_vertical_right
3398
- }, /*#__PURE__*/React.createElement("span", null, this.props.title), /*#__PURE__*/React.createElement("span", null, this.props.subtitle)));
3405
+ }, /*#__PURE__*/React.createElement("span", null, this.props.date), /*#__PURE__*/React.createElement("span", null, this.props.title), /*#__PURE__*/React.createElement("span", null, this.props.subtitle)));
3399
3406
  };
3400
3407
 
3401
3408
  return ListingVerticalItem;
@@ -3440,7 +3447,9 @@ var ListingVertical = /*#__PURE__*/function (_React$Component) {
3440
3447
  green: element.green,
3441
3448
  orange: element.orange,
3442
3449
  title: element.title,
3443
- subtitle: element.subtitle
3450
+ subtitle: element.subtitle,
3451
+ date: element.date,
3452
+ icon: element.icon
3444
3453
  });
3445
3454
  });
3446
3455
  tmpData.map(function (element, idx) {