ui-kit-ck-consultant 0.5.297 → 0.5.298
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.css +3 -0
- package/dist/index.js +13 -2
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +13 -2
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
@@ -653,7 +653,7 @@ var FormRange = /*#__PURE__*/function (_React$Component) {
|
|
653
653
|
|
654
654
|
var style$6 = {"form_select_multiples_container":"_3k6ik","form_select_multiples":"_3BzwZ","form_select_multiples_error":"_20Gvp","form_select_values":"_oq5Pn","form_select_multiples_bottom":"_HjP3u"};
|
655
655
|
|
656
|
-
var style$7 = {"checkbox_container":"_3t7tP","form_checkbox_container":"_3Xukj","form_checkbox_mark":"_1uzL3"};
|
656
|
+
var style$7 = {"checkbox_container":"_3t7tP","form_checkbox_container":"_3Xukj","form_checkbox_container_in_select":"_oe5CP","form_checkbox_mark":"_1uzL3"};
|
657
657
|
|
658
658
|
var FormCheckbox = /*#__PURE__*/function (_React$Component) {
|
659
659
|
_inheritsLoose(FormCheckbox, _React$Component);
|
@@ -665,8 +665,10 @@ var FormCheckbox = /*#__PURE__*/function (_React$Component) {
|
|
665
665
|
var _proto = FormCheckbox.prototype;
|
666
666
|
|
667
667
|
_proto.render = function render() {
|
668
|
+
var _classNames;
|
669
|
+
|
668
670
|
return /*#__PURE__*/React.createElement("div", {
|
669
|
-
className: classNames$1(style$7.form_checkbox_container, this.props.className)
|
671
|
+
className: classNames$1(style$7.form_checkbox_container, this.props.className, (_classNames = {}, _classNames[style$7.form_checkbox_container_in_select] = !!this.props.isInSelect, _classNames))
|
670
672
|
}, /*#__PURE__*/React.createElement("label", {
|
671
673
|
className: classNames$1(this.props.className)
|
672
674
|
}, this.props.text, /*#__PURE__*/React.createElement("input", {
|
@@ -750,6 +752,7 @@ var FormSelectMultiples = /*#__PURE__*/function (_React$Component) {
|
|
750
752
|
return _this2.onClick(element);
|
751
753
|
}
|
752
754
|
}, /*#__PURE__*/React.createElement(FormCheckbox, {
|
755
|
+
isInSelect: true,
|
753
756
|
onChange: function onChange() {},
|
754
757
|
checked: _this2.props.value.includes(element.value),
|
755
758
|
text: element.text
|
@@ -3355,6 +3358,14 @@ var DropzoneMultiple = /*#__PURE__*/function (_React$Component) {
|
|
3355
3358
|
});
|
3356
3359
|
};
|
3357
3360
|
|
3361
|
+
_this.handleDeleteFiles = function () {
|
3362
|
+
_this.setState({
|
3363
|
+
files: []
|
3364
|
+
}, function () {
|
3365
|
+
_this.props.onDrop([]);
|
3366
|
+
});
|
3367
|
+
};
|
3368
|
+
|
3358
3369
|
_this.getFileComponent = function (idx) {
|
3359
3370
|
return /*#__PURE__*/React.createElement("div", {
|
3360
3371
|
key: idx,
|