ui-kit-ck-consultant 0.5.231 → 0.5.232
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 +22 -2
- package/dist/index.js +9 -2
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +9 -2
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
@@ -42,7 +42,7 @@ function _setPrototypeOf(o, p) {
|
|
42
42
|
return _setPrototypeOf(o, p);
|
43
43
|
}
|
44
44
|
|
45
|
-
var style = {"modal":"_Tr9L0","modal_container":"_2YluD","no_background":"_2vjgy","large":"_22C7A","modal_valid":"_RsujT","modal_close":"_1AbTJ","modal_header":"_2EzqX","modal_body":"_1-Y1J","full_modal_container":"_1w6wH","full_modal_header":"_2wSoq","full_modal_body":"_3bfp5","full_modal_body_no_padding":"_Pf5Uh"};
|
45
|
+
var style = {"modal":"_Tr9L0","modal_container":"_2YluD","no_background":"_2vjgy","large":"_22C7A","modal_valid":"_RsujT","modal_close":"_1AbTJ","modal_custom":"_33Wb2","modal_header":"_2EzqX","modal_body":"_1-Y1J","full_modal_container":"_1w6wH","full_modal_header":"_2wSoq","full_modal_body":"_3bfp5","full_modal_body_no_padding":"_Pf5Uh"};
|
46
46
|
|
47
47
|
var Modal = /*#__PURE__*/function (_React$Component) {
|
48
48
|
_inheritsLoose(Modal, _React$Component);
|
@@ -114,8 +114,10 @@ var FullModal = /*#__PURE__*/function (_React$Component) {
|
|
114
114
|
|
115
115
|
_proto.componentDidUpdate = function componentDidUpdate() {
|
116
116
|
if (this.props.show) {
|
117
|
+
document.documentElement.style.overflow = 'hidden';
|
117
118
|
document.body.style.overflow = 'hidden';
|
118
119
|
} else {
|
120
|
+
document.documentElement.style.overflow = 'unset';
|
119
121
|
document.body.style.overflow = 'unset';
|
120
122
|
}
|
121
123
|
};
|
@@ -139,7 +141,12 @@ var FullModal = /*#__PURE__*/function (_React$Component) {
|
|
139
141
|
onClick: this.props.onClose
|
140
142
|
}, this.props.iconClose ? this.props.iconClose : /*#__PURE__*/React.createElement(FontAwesomeIcon, {
|
141
143
|
icon: faTimes
|
142
|
-
})), this.props.
|
144
|
+
})), this.props.onCustom ? /*#__PURE__*/React.createElement("div", {
|
145
|
+
className: style.modal_custom,
|
146
|
+
onClick: this.props.onCustom
|
147
|
+
}, /*#__PURE__*/React.createElement(FontAwesomeIcon, {
|
148
|
+
icon: this.props.customIcon
|
149
|
+
})) : null, this.props.title ? /*#__PURE__*/React.createElement("div", {
|
143
150
|
className: style.full_modal_header
|
144
151
|
}, /*#__PURE__*/React.createElement("h2", null, this.props.title)) : null, /*#__PURE__*/React.createElement("div", {
|
145
152
|
className: this.props.noPadding ? style.full_modal_body_no_padding : style.full_modal_body
|