ui-kit-ck-consultant 0.5.214 → 0.5.217
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.css +16 -1
- package/dist/index.js +71 -18
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +71 -18
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.css
CHANGED
@@ -1104,7 +1104,7 @@
|
|
1104
1104
|
background-color: var(--white);
|
1105
1105
|
color: var(--black);
|
1106
1106
|
box-shadow: 0 3px 6px 0 rgba(0, 0, 0, 0.16);
|
1107
|
-
min-height:
|
1107
|
+
min-height: 85px;
|
1108
1108
|
display: flex;
|
1109
1109
|
overflow: hidden;
|
1110
1110
|
}
|
@@ -1168,6 +1168,17 @@
|
|
1168
1168
|
animation: _19crY 1s ease-in-out 0.45s infinite;
|
1169
1169
|
}
|
1170
1170
|
|
1171
|
+
._3BnES {
|
1172
|
+
position: absolute;
|
1173
|
+
top: 0;
|
1174
|
+
bottom: 0;
|
1175
|
+
left: 0;
|
1176
|
+
right: 0;
|
1177
|
+
cursor: not-allowed;
|
1178
|
+
background-color: rgba(0, 0, 0, 0.1);
|
1179
|
+
z-index: 10;
|
1180
|
+
}
|
1181
|
+
|
1171
1182
|
@-webkit-keyframes _19crY {
|
1172
1183
|
0%,
|
1173
1184
|
100% {
|
@@ -1250,9 +1261,11 @@
|
|
1250
1261
|
transition: 0.4s;
|
1251
1262
|
cursor: pointer;
|
1252
1263
|
}
|
1264
|
+
|
1253
1265
|
._dmCgN:hover {
|
1254
1266
|
opacity: 0.7;
|
1255
1267
|
}
|
1268
|
+
|
1256
1269
|
._dmCgN:active {
|
1257
1270
|
opacity: 0.5;
|
1258
1271
|
}
|
@@ -1362,10 +1375,12 @@
|
|
1362
1375
|
color: #67748e;
|
1363
1376
|
font-size: 18px;
|
1364
1377
|
}
|
1378
|
+
|
1365
1379
|
._1b4T4 > span:last-child {
|
1366
1380
|
font-size: 24px;
|
1367
1381
|
font-weight: bold;
|
1368
1382
|
}
|
1383
|
+
|
1369
1384
|
._1b4T4 > span:last-child > span {
|
1370
1385
|
font-size: 15px;
|
1371
1386
|
padding-left: 6px;
|
package/dist/index.js
CHANGED
@@ -859,7 +859,7 @@ var Header = /*#__PURE__*/function (_React$Component) {
|
|
859
859
|
return Header;
|
860
860
|
}(React__default.Component);
|
861
861
|
|
862
|
-
var style$b = {"card":"_4T5PO","card_tabs":"_3qz0v","card_loader_container":"_1zFpZ","loader_element":"_2rKrR","loader":"_8eH6Y","grow":"_19crY","card_top_border":"_1ItWX","card_header":"_HBqZI","card_tabs_header":"_3iUeb","card_header_left":"_2KSuY","card_tabs_header_left":"_3euMf","card_tabs_header_active":"_3UmBd","card_header_right":"_2KPnI","card_header_action":"_dmCgN","card_header_action_disable":"_1XS9q","card_body":"_8DE3p","card_tabs_body":"_3UyXH","card_color":"_2D119","card_color_left":"_1OCk3","card_color_image_left":"_199hf","card_color_center":"_11M7t","card_color_right":"_ZiFPm","card_statistics":"_29tu3","card_statistics_body":"_1b4T4","card_statistics_icon":"_1dkwV"};
|
862
|
+
var style$b = {"card":"_4T5PO","card_tabs":"_3qz0v","card_loader_container":"_1zFpZ","loader_element":"_2rKrR","loader":"_8eH6Y","grow":"_19crY","card_disabled":"_3BnES","card_top_border":"_1ItWX","card_header":"_HBqZI","card_tabs_header":"_3iUeb","card_header_left":"_2KSuY","card_tabs_header_left":"_3euMf","card_tabs_header_active":"_3UmBd","card_header_right":"_2KPnI","card_header_action":"_dmCgN","card_header_action_disable":"_1XS9q","card_body":"_8DE3p","card_tabs_body":"_3UyXH","card_color":"_2D119","card_color_left":"_1OCk3","card_color_image_left":"_199hf","card_color_center":"_11M7t","card_color_right":"_ZiFPm","card_statistics":"_29tu3","card_statistics_body":"_1b4T4","card_statistics_icon":"_1dkwV"};
|
863
863
|
|
864
864
|
var Card = /*#__PURE__*/function (_React$Component) {
|
865
865
|
_inheritsLoose(Card, _React$Component);
|
@@ -905,7 +905,9 @@ var Card = /*#__PURE__*/function (_React$Component) {
|
|
905
905
|
_proto.render = function render() {
|
906
906
|
return /*#__PURE__*/React__default.createElement("div", {
|
907
907
|
className: classNames$1(style$b.card, this.props.className)
|
908
|
-
}, this.props.
|
908
|
+
}, this.props.disabled ? /*#__PURE__*/React__default.createElement("div", {
|
909
|
+
className: classNames$1(style$b.card_disabled)
|
910
|
+
}) : null, this.props.imgLeft ? /*#__PURE__*/React__default.createElement("div", {
|
909
911
|
style: {
|
910
912
|
overflow: 'hidden',
|
911
913
|
width: this.props.customWidthImgLeft || '100%'
|
@@ -3026,6 +3028,56 @@ var DropzoneMultiple = /*#__PURE__*/function (_React$Component) {
|
|
3026
3028
|
|
3027
3029
|
_this = _React$Component.call(this, props) || this;
|
3028
3030
|
|
3031
|
+
_this.resizeImage = function (base64, mime, callback) {
|
3032
|
+
if (callback === void 0) {
|
3033
|
+
callback = function callback() {};
|
3034
|
+
}
|
3035
|
+
|
3036
|
+
if (_this.props.maxImageSize && ['image/png', 'image/jpeg', 'image/jpg'].includes(mime)) {
|
3037
|
+
var image = new Image();
|
3038
|
+
image.src = base64;
|
3039
|
+
|
3040
|
+
image.onload = function () {
|
3041
|
+
var initialWidth = image.width;
|
3042
|
+
var initialHeight = image.height;
|
3043
|
+
var finalWidth = 0;
|
3044
|
+
var finalHeight = 0;
|
3045
|
+
|
3046
|
+
if (initialWidth > initialHeight) {
|
3047
|
+
if (initialWidth > _this.props.maxImageSize) {
|
3048
|
+
finalWidth = _this.props.maxImageSize;
|
3049
|
+
finalHeight = finalWidth * initialHeight / initialWidth;
|
3050
|
+
} else {
|
3051
|
+
finalWidth = initialWidth;
|
3052
|
+
finalHeight = initialHeight;
|
3053
|
+
}
|
3054
|
+
} else {
|
3055
|
+
if (initialHeight > _this.props.maxImageSize) {
|
3056
|
+
finalHeight = _this.props.maxImageSize;
|
3057
|
+
finalWidth = finalHeight * initialWidth / initialHeight;
|
3058
|
+
} else {
|
3059
|
+
finalWidth = initialWidth;
|
3060
|
+
finalHeight = initialHeight;
|
3061
|
+
}
|
3062
|
+
}
|
3063
|
+
|
3064
|
+
var canvas = document.createElement('canvas');
|
3065
|
+
var ctx = canvas.getContext('2d');
|
3066
|
+
canvas.width = finalWidth;
|
3067
|
+
canvas.height = finalHeight;
|
3068
|
+
ctx.drawImage(image, 0, 0, finalWidth, finalHeight);
|
3069
|
+
base64 = canvas.toDataURL(mime, 0.9);
|
3070
|
+
callback(base64);
|
3071
|
+
};
|
3072
|
+
|
3073
|
+
image.onerror = function () {
|
3074
|
+
callback(base64);
|
3075
|
+
};
|
3076
|
+
} else {
|
3077
|
+
callback(base64);
|
3078
|
+
}
|
3079
|
+
};
|
3080
|
+
|
3029
3081
|
_this.handleDeleteFile = function (idx) {
|
3030
3082
|
var files = _this.state.files;
|
3031
3083
|
files.splice(idx, 1);
|
@@ -3071,22 +3123,23 @@ var DropzoneMultiple = /*#__PURE__*/function (_React$Component) {
|
|
3071
3123
|
var reader = new window.FileReader();
|
3072
3124
|
|
3073
3125
|
reader.onload = function () {
|
3074
|
-
|
3075
|
-
|
3076
|
-
|
3077
|
-
|
3078
|
-
|
3079
|
-
|
3080
|
-
|
3081
|
-
|
3082
|
-
|
3083
|
-
|
3084
|
-
|
3085
|
-
|
3086
|
-
|
3087
|
-
|
3088
|
-
|
3089
|
-
|
3126
|
+
_this.resizeImage(reader.result, file.type, function (base64) {
|
3127
|
+
var tmpFiles = _this.state.files;
|
3128
|
+
tmpFiles.push({
|
3129
|
+
base64: base64,
|
3130
|
+
mime: file.type,
|
3131
|
+
name: file.name,
|
3132
|
+
extension: name[name.length - 1],
|
3133
|
+
size: file.size
|
3134
|
+
});
|
3135
|
+
|
3136
|
+
_this.setState({
|
3137
|
+
files: tmpFiles
|
3138
|
+
}, function () {
|
3139
|
+
_this.currentFile += 1;
|
3140
|
+
|
3141
|
+
_this.nextFile(files);
|
3142
|
+
});
|
3090
3143
|
});
|
3091
3144
|
};
|
3092
3145
|
|