ui-kit-ck-consultant 0.5.131 → 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 +29 -5
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +29 -5
- 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
@@ -82,7 +82,7 @@ var Modal = /*#__PURE__*/function (_React$Component) {
|
|
82
82
|
var modalContainerClass = classNames$1((_classNames = {}, _classNames[style.large] = !!this.props.large, _classNames), style.modal_container, this.props.className);
|
83
83
|
return /*#__PURE__*/React__default.createElement("div", {
|
84
84
|
className: style.modal,
|
85
|
-
|
85
|
+
onMouseDown: function onMouseDown(e) {
|
86
86
|
return _this.handleClickModal(e);
|
87
87
|
}
|
88
88
|
}, /*#__PURE__*/React__default.createElement("div", {
|
@@ -267,7 +267,8 @@ var FormInput = /*#__PURE__*/function (_React$Component) {
|
|
267
267
|
_proto.render = function render() {
|
268
268
|
if (this.props.children) {
|
269
269
|
return /*#__PURE__*/React__default.createElement("div", {
|
270
|
-
className: classNames$1(style$2.form_input_container, this.props.className)
|
270
|
+
className: classNames$1(style$2.form_input_container, this.props.className),
|
271
|
+
style: this.props.style
|
271
272
|
}, this.props.title ? /*#__PURE__*/React__default.createElement("span", {
|
272
273
|
className: this.props.classNameTitle
|
273
274
|
}, this.props.title, ' ', this.props.required ? /*#__PURE__*/React__default.createElement("span", {
|
@@ -291,10 +292,13 @@ var FormInput = /*#__PURE__*/function (_React$Component) {
|
|
291
292
|
}, this.props.error) : '');
|
292
293
|
} else {
|
293
294
|
return /*#__PURE__*/React__default.createElement("div", {
|
294
|
-
className: classNames$1(style$2.form_input_container, this.props.className)
|
295
|
+
className: classNames$1(style$2.form_input_container, this.props.className),
|
296
|
+
style: this.props.style
|
295
297
|
}, this.props.title ? /*#__PURE__*/React__default.createElement("span", {
|
296
298
|
className: this.props.classNameTitle
|
297
|
-
}, this.props.title
|
299
|
+
}, this.props.title, ' ', this.props.required ? /*#__PURE__*/React__default.createElement("span", {
|
300
|
+
className: "red"
|
301
|
+
}, "*") : '') : '', /*#__PURE__*/React__default.createElement("input", {
|
298
302
|
className: style$2.form_input,
|
299
303
|
type: this.props.type,
|
300
304
|
placeholder: this.props.placeholder,
|
@@ -427,6 +431,14 @@ var FormRange = /*#__PURE__*/function (_React$Component) {
|
|
427
431
|
|
428
432
|
_this = _React$Component.call(this, props) || this;
|
429
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
|
+
|
430
442
|
_this.findText = function (options, value) {
|
431
443
|
var result = options.filter(function (item) {
|
432
444
|
return item.value.toString() === value.toString();
|
@@ -449,11 +461,20 @@ var FormRange = /*#__PURE__*/function (_React$Component) {
|
|
449
461
|
_this.state = {
|
450
462
|
isOpen: false
|
451
463
|
};
|
464
|
+
_this.refComponent = React__default.createRef();
|
452
465
|
return _this;
|
453
466
|
}
|
454
467
|
|
455
468
|
var _proto = FormRange.prototype;
|
456
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
|
+
|
457
478
|
_proto.render = function render() {
|
458
479
|
var _this2 = this;
|
459
480
|
|
@@ -473,8 +494,10 @@ var FormRange = /*#__PURE__*/function (_React$Component) {
|
|
473
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, {
|
474
495
|
icon: this.state.isOpen ? freeSolidSvgIcons.faCaretUp : freeSolidSvgIcons.faCaretDown
|
475
496
|
}))), this.state.isOpen ? /*#__PURE__*/React__default.createElement("div", {
|
497
|
+
ref: this.refComponent,
|
476
498
|
className: style$4.form_range_modal
|
477
499
|
}, /*#__PURE__*/React__default.createElement(FormSelect, {
|
500
|
+
type: this.props.type,
|
478
501
|
name: this.props.name1,
|
479
502
|
options: this.props.options1,
|
480
503
|
value: this.props.value1,
|
@@ -484,6 +507,7 @@ var FormRange = /*#__PURE__*/function (_React$Component) {
|
|
484
507
|
disabled: false,
|
485
508
|
init: this.props.init1
|
486
509
|
}), /*#__PURE__*/React__default.createElement(FormSelect, {
|
510
|
+
type: this.props.type,
|
487
511
|
name: this.props.name2,
|
488
512
|
options: this.props.options2,
|
489
513
|
value: this.props.value2,
|
@@ -2421,7 +2445,7 @@ var Loader = /*#__PURE__*/function (_React$Component) {
|
|
2421
2445
|
className: classNames$1(style$k.loader_element, this.props.classNameChildren)
|
2422
2446
|
}, /*#__PURE__*/React__default.createElement("div", {
|
2423
2447
|
className: style$k.loader
|
2424
|
-
}, /*#__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));
|
2425
2449
|
};
|
2426
2450
|
|
2427
2451
|
return Loader;
|