ui-kit-ck-consultant 0.5.186 → 0.5.189
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.js +38 -23
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +38 -23
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
@@ -898,7 +898,11 @@ var Card = /*#__PURE__*/function (_React$Component) {
|
|
898
898
|
_proto.render = function render() {
|
899
899
|
return /*#__PURE__*/React.createElement("div", {
|
900
900
|
className: classNames$1(style$b.card, this.props.className)
|
901
|
-
}, this.props.imgLeft ? /*#__PURE__*/React.createElement("div",
|
901
|
+
}, this.props.imgLeft ? /*#__PURE__*/React.createElement("div", {
|
902
|
+
style: {
|
903
|
+
overflow: 'hidden'
|
904
|
+
}
|
905
|
+
}, /*#__PURE__*/React.createElement("img", {
|
902
906
|
style: {
|
903
907
|
height: '100%'
|
904
908
|
},
|
@@ -935,7 +939,11 @@ var Card = /*#__PURE__*/function (_React$Component) {
|
|
935
939
|
onClick: this.props.onClick
|
936
940
|
}, this.props.action))) : '', /*#__PURE__*/React.createElement("div", {
|
937
941
|
className: classNames$1(style$b.card_body, this.props.classNameChildren)
|
938
|
-
}, this.props.children)), this.props.imgRight ? /*#__PURE__*/React.createElement("div",
|
942
|
+
}, this.props.children)), this.props.imgRight ? /*#__PURE__*/React.createElement("div", {
|
943
|
+
style: {
|
944
|
+
overflow: 'hidden'
|
945
|
+
}
|
946
|
+
}, /*#__PURE__*/React.createElement("img", {
|
939
947
|
style: {
|
940
948
|
height: '100%'
|
941
949
|
},
|
@@ -3047,29 +3055,36 @@ var DropzoneMultiple = /*#__PURE__*/function (_React$Component) {
|
|
3047
3055
|
var name = file.name.split('.');
|
3048
3056
|
|
3049
3057
|
if (_this.checkExtension(name[name.length - 1])) {
|
3050
|
-
|
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
|
+
});
|
3051
3071
|
|
3052
|
-
|
3053
|
-
|
3054
|
-
|
3055
|
-
|
3056
|
-
base64: base64,
|
3057
|
-
mime: file.type,
|
3058
|
-
name: file.name,
|
3059
|
-
extension: name[name.length - 1],
|
3060
|
-
size: file.size
|
3061
|
-
});
|
3072
|
+
_this.setState({
|
3073
|
+
files: tmpFiles
|
3074
|
+
}, function () {
|
3075
|
+
_this.currentFile += 1;
|
3062
3076
|
|
3063
|
-
|
3064
|
-
|
3065
|
-
}
|
3066
|
-
_this.currentFile += 1;
|
3077
|
+
_this.nextFile(files);
|
3078
|
+
});
|
3079
|
+
};
|
3067
3080
|
|
3068
|
-
|
3069
|
-
|
3070
|
-
|
3081
|
+
reader.readAsDataURL(file);
|
3082
|
+
} else {
|
3083
|
+
alert('Fichier trop volumineux');
|
3084
|
+
_this.currentFile += 1;
|
3071
3085
|
|
3072
|
-
|
3086
|
+
_this.nextFile(files);
|
3087
|
+
}
|
3073
3088
|
} else {
|
3074
3089
|
_this.currentFile += 1;
|
3075
3090
|
|
@@ -3383,11 +3398,11 @@ var ListingVerticalItem = /*#__PURE__*/function (_React$Component) {
|
|
3383
3398
|
className: listingClass
|
3384
3399
|
}, /*#__PURE__*/React.createElement("div", {
|
3385
3400
|
className: style$s.listing_vertical_left
|
3386
|
-
}, this.props.green ? /*#__PURE__*/React.createElement(FontAwesomeIcon, {
|
3401
|
+
}, this.props.icon ? this.props.icon : this.props.green ? /*#__PURE__*/React.createElement(FontAwesomeIcon, {
|
3387
3402
|
icon: faCheck
|
3388
3403
|
}) : ''), /*#__PURE__*/React.createElement("div", {
|
3389
3404
|
className: style$s.listing_vertical_right
|
3390
|
-
}, /*#__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)));
|
3391
3406
|
};
|
3392
3407
|
|
3393
3408
|
return ListingVerticalItem;
|