ui-kit-ck-consultant 0.5.134 → 0.5.135
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 +13 -0
- package/dist/index.js +21 -1
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +21 -1
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.css
CHANGED
@@ -2095,7 +2095,10 @@
|
|
2095
2095
|
}
|
2096
2096
|
|
2097
2097
|
._2CYNt {
|
2098
|
+
display: flex;
|
2099
|
+
flex-direction: column;
|
2098
2100
|
margin: auto;
|
2101
|
+
text-align: center;
|
2099
2102
|
}
|
2100
2103
|
|
2101
2104
|
._3ysPX {
|
@@ -2104,6 +2107,16 @@
|
|
2104
2107
|
margin: 0 auto;
|
2105
2108
|
}
|
2106
2109
|
|
2110
|
+
._2CYNt > p {
|
2111
|
+
margin: 0;
|
2112
|
+
margin-top: 1rem;
|
2113
|
+
color: #ffffff;
|
2114
|
+
background-color: var(--primary-color);
|
2115
|
+
border-radius: 12px;
|
2116
|
+
padding: 0.8rem;
|
2117
|
+
font-size: 16px;
|
2118
|
+
}
|
2119
|
+
|
2107
2120
|
._3ysPX span {
|
2108
2121
|
display: inline-block;
|
2109
2122
|
width: 6px;
|
package/dist/index.js
CHANGED
@@ -431,6 +431,14 @@ var FormRange = /*#__PURE__*/function (_React$Component) {
|
|
431
431
|
|
432
432
|
_this = _React$Component.call(this, props) || this;
|
433
433
|
|
434
|
+
_this.handleClickOutside = function (event) {
|
435
|
+
if (_this.refComponent && _this.refComponent.current && !_this.refComponent.current.contains(event.target)) {
|
436
|
+
_this.setState({
|
437
|
+
isOpen: false
|
438
|
+
});
|
439
|
+
}
|
440
|
+
};
|
441
|
+
|
434
442
|
_this.findText = function (options, value) {
|
435
443
|
var result = options.filter(function (item) {
|
436
444
|
return item.value.toString() === value.toString();
|
@@ -453,11 +461,20 @@ var FormRange = /*#__PURE__*/function (_React$Component) {
|
|
453
461
|
_this.state = {
|
454
462
|
isOpen: false
|
455
463
|
};
|
464
|
+
_this.refComponent = React__default.createRef();
|
456
465
|
return _this;
|
457
466
|
}
|
458
467
|
|
459
468
|
var _proto = FormRange.prototype;
|
460
469
|
|
470
|
+
_proto.componentDidMount = function componentDidMount() {
|
471
|
+
document.addEventListener('mousedown', this.handleClickOutside);
|
472
|
+
};
|
473
|
+
|
474
|
+
_proto.componentWillUnmount = function componentWillUnmount() {
|
475
|
+
document.removeEventListener('mousedown', this.handleClickOutside);
|
476
|
+
};
|
477
|
+
|
461
478
|
_proto.render = function render() {
|
462
479
|
var _this2 = this;
|
463
480
|
|
@@ -477,8 +494,10 @@ var FormRange = /*#__PURE__*/function (_React$Component) {
|
|
477
494
|
}, /*#__PURE__*/React__default.createElement("span", null, this.getLabel(this.props.value1, this.props.value2, this.props.options1, this.props.options2)), /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(reactFontawesome.FontAwesomeIcon, {
|
478
495
|
icon: this.state.isOpen ? freeSolidSvgIcons.faCaretUp : freeSolidSvgIcons.faCaretDown
|
479
496
|
}))), this.state.isOpen ? /*#__PURE__*/React__default.createElement("div", {
|
497
|
+
ref: this.refComponent,
|
480
498
|
className: style$4.form_range_modal
|
481
499
|
}, /*#__PURE__*/React__default.createElement(FormSelect, {
|
500
|
+
type: this.props.type,
|
482
501
|
name: this.props.name1,
|
483
502
|
options: this.props.options1,
|
484
503
|
value: this.props.value1,
|
@@ -488,6 +507,7 @@ var FormRange = /*#__PURE__*/function (_React$Component) {
|
|
488
507
|
disabled: false,
|
489
508
|
init: this.props.init1
|
490
509
|
}), /*#__PURE__*/React__default.createElement(FormSelect, {
|
510
|
+
type: this.props.type,
|
491
511
|
name: this.props.name2,
|
492
512
|
options: this.props.options2,
|
493
513
|
value: this.props.value2,
|
@@ -2425,7 +2445,7 @@ var Loader = /*#__PURE__*/function (_React$Component) {
|
|
2425
2445
|
className: classNames$1(style$k.loader_element, this.props.classNameChildren)
|
2426
2446
|
}, /*#__PURE__*/React__default.createElement("div", {
|
2427
2447
|
className: style$k.loader
|
2428
|
-
}, /*#__PURE__*/React__default.createElement("span", null), /*#__PURE__*/React__default.createElement("span", null), /*#__PURE__*/React__default.createElement("span", null), /*#__PURE__*/React__default.createElement("span", null))));
|
2448
|
+
}, /*#__PURE__*/React__default.createElement("span", null), /*#__PURE__*/React__default.createElement("span", null), /*#__PURE__*/React__default.createElement("span", null), /*#__PURE__*/React__default.createElement("span", null)), this.props.message ? /*#__PURE__*/React__default.createElement("p", null, this.props.message) : null));
|
2429
2449
|
};
|
2430
2450
|
|
2431
2451
|
return Loader;
|