ui-kit-ck-consultant 0.5.297 → 0.5.299
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 +17 -2
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +17 -2
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.css
CHANGED
package/dist/index.js
CHANGED
@@ -656,7 +656,7 @@ var FormRange = /*#__PURE__*/function (_React$Component) {
|
|
656
656
|
|
657
657
|
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"};
|
658
658
|
|
659
|
-
var style$7 = {"checkbox_container":"_3t7tP","form_checkbox_container":"_3Xukj","form_checkbox_mark":"_1uzL3"};
|
659
|
+
var style$7 = {"checkbox_container":"_3t7tP","form_checkbox_container":"_3Xukj","form_checkbox_container_in_select":"_oe5CP","form_checkbox_mark":"_1uzL3"};
|
660
660
|
|
661
661
|
var FormCheckbox = /*#__PURE__*/function (_React$Component) {
|
662
662
|
_inheritsLoose(FormCheckbox, _React$Component);
|
@@ -668,8 +668,10 @@ var FormCheckbox = /*#__PURE__*/function (_React$Component) {
|
|
668
668
|
var _proto = FormCheckbox.prototype;
|
669
669
|
|
670
670
|
_proto.render = function render() {
|
671
|
+
var _classNames;
|
672
|
+
|
671
673
|
return /*#__PURE__*/React__default.createElement("div", {
|
672
|
-
className: classNames$1(style$7.form_checkbox_container, this.props.className)
|
674
|
+
className: classNames$1(style$7.form_checkbox_container, this.props.className, (_classNames = {}, _classNames[style$7.form_checkbox_container_in_select] = !!this.props.isInSelect, _classNames))
|
673
675
|
}, /*#__PURE__*/React__default.createElement("label", {
|
674
676
|
className: classNames$1(this.props.className)
|
675
677
|
}, this.props.text, /*#__PURE__*/React__default.createElement("input", {
|
@@ -753,6 +755,7 @@ var FormSelectMultiples = /*#__PURE__*/function (_React$Component) {
|
|
753
755
|
return _this2.onClick(element);
|
754
756
|
}
|
755
757
|
}, /*#__PURE__*/React__default.createElement(FormCheckbox, {
|
758
|
+
isInSelect: true,
|
756
759
|
onChange: function onChange() {},
|
757
760
|
checked: _this2.props.value.includes(element.value),
|
758
761
|
text: element.text
|
@@ -1167,6 +1170,10 @@ var Card = /*#__PURE__*/function (_React$Component) {
|
|
1167
1170
|
};
|
1168
1171
|
|
1169
1172
|
_proto.render = function render() {
|
1173
|
+
if (this.props.noCard) {
|
1174
|
+
return this.props.children;
|
1175
|
+
}
|
1176
|
+
|
1170
1177
|
return /*#__PURE__*/React__default.createElement("div", {
|
1171
1178
|
style: this.props.border ? {
|
1172
1179
|
borderLeft: "solid " + this.props.border + " 16px"
|
@@ -3358,6 +3365,14 @@ var DropzoneMultiple = /*#__PURE__*/function (_React$Component) {
|
|
3358
3365
|
});
|
3359
3366
|
};
|
3360
3367
|
|
3368
|
+
_this.handleDeleteFiles = function () {
|
3369
|
+
_this.setState({
|
3370
|
+
files: []
|
3371
|
+
}, function () {
|
3372
|
+
_this.props.onDrop([]);
|
3373
|
+
});
|
3374
|
+
};
|
3375
|
+
|
3361
3376
|
_this.getFileComponent = function (idx) {
|
3362
3377
|
return /*#__PURE__*/React__default.createElement("div", {
|
3363
3378
|
key: idx,
|