ui-kit-ck-consultant 0.5.273 → 0.5.274
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.js +6 -30
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +6 -30
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
@@ -83,12 +83,6 @@ var Modal = /*#__PURE__*/function (_React$Component) {
|
|
83
83
|
var _proto = Modal.prototype;
|
84
84
|
|
85
85
|
_proto.componentDidMount = function componentDidMount() {
|
86
|
-
if (this.props.show) {
|
87
|
-
document.body.style.overflow = 'hidden';
|
88
|
-
} else {
|
89
|
-
document.body.style.overflow = 'unset';
|
90
|
-
}
|
91
|
-
|
92
86
|
window.addEventListener('mouseup', this.handleMouseUp);
|
93
87
|
};
|
94
88
|
|
@@ -119,7 +113,7 @@ var Modal = /*#__PURE__*/function (_React$Component) {
|
|
119
113
|
}
|
120
114
|
|
121
115
|
var modalContainerClass = classNames$1((_classNames = {}, _classNames[style.large] = !!this.props.large, _classNames[style.no_background] = !!this.props.noBackground, _classNames), style.modal_container, this.props.className);
|
122
|
-
return /*#__PURE__*/React__default.createElement("div", {
|
116
|
+
return /*#__PURE__*/React__default.createElement(Fragment, null, this.props.show ? /*#__PURE__*/React__default.createElement("style", null, "body {overflow: \"hidden\" }") : null, /*#__PURE__*/React__default.createElement("div", {
|
123
117
|
className: style.modal,
|
124
118
|
onMouseDown: function onMouseDown(e) {
|
125
119
|
return _this2.handleClickModal(e);
|
@@ -158,7 +152,7 @@ var Modal = /*#__PURE__*/function (_React$Component) {
|
|
158
152
|
className: style.modal_header
|
159
153
|
}, /*#__PURE__*/React__default.createElement("h2", null, this.props.title)), /*#__PURE__*/React__default.createElement("div", {
|
160
154
|
className: style.modal_body
|
161
|
-
}, this.props.children)));
|
155
|
+
}, this.props.children))));
|
162
156
|
};
|
163
157
|
|
164
158
|
return Modal;
|
@@ -173,22 +167,12 @@ var FullModal = /*#__PURE__*/function (_React$Component) {
|
|
173
167
|
|
174
168
|
var _proto = FullModal.prototype;
|
175
169
|
|
176
|
-
_proto.componentDidUpdate = function componentDidUpdate() {
|
177
|
-
if (this.props.show) {
|
178
|
-
document.documentElement.style.overflow = 'hidden';
|
179
|
-
document.body.style.overflow = 'hidden';
|
180
|
-
} else {
|
181
|
-
document.documentElement.style.overflow = 'unset';
|
182
|
-
document.body.style.overflow = 'unset';
|
183
|
-
}
|
184
|
-
};
|
185
|
-
|
186
170
|
_proto.render = function render() {
|
187
171
|
if (!this.props.show) {
|
188
172
|
return null;
|
189
173
|
}
|
190
174
|
|
191
|
-
return /*#__PURE__*/React__default.createElement("div", {
|
175
|
+
return /*#__PURE__*/React__default.createElement(Fragment, null, this.props.show ? /*#__PURE__*/React__default.createElement("style", null, "body {overflow: \"hidden\" }") : null, /*#__PURE__*/React__default.createElement("div", {
|
192
176
|
className: classNames$1(style.modal, this.props.className)
|
193
177
|
}, /*#__PURE__*/React__default.createElement("div", {
|
194
178
|
className: style.full_modal_container
|
@@ -212,7 +196,7 @@ var FullModal = /*#__PURE__*/function (_React$Component) {
|
|
212
196
|
className: style.full_modal_header
|
213
197
|
}, /*#__PURE__*/React__default.createElement("h2", null, this.props.title)) : null, /*#__PURE__*/React__default.createElement("div", {
|
214
198
|
className: classNames$1(this.props.noPadding ? style.full_modal_body_no_padding : style.full_modal_body, this.props.noOverflow ? style.full_modal_body_no_overflow : {})
|
215
|
-
}, this.props.children)));
|
199
|
+
}, this.props.children))));
|
216
200
|
};
|
217
201
|
|
218
202
|
return FullModal;
|
@@ -2935,23 +2919,15 @@ var Loader = /*#__PURE__*/function (_React$Component) {
|
|
2935
2919
|
|
2936
2920
|
var _proto = Loader.prototype;
|
2937
2921
|
|
2938
|
-
_proto.componentDidUpdate = function componentDidUpdate() {
|
2939
|
-
if (this.props.show) {
|
2940
|
-
document.body.style.overflow = 'hidden';
|
2941
|
-
} else {
|
2942
|
-
document.body.style.overflow = 'unset';
|
2943
|
-
}
|
2944
|
-
};
|
2945
|
-
|
2946
2922
|
_proto.render = function render() {
|
2947
2923
|
if (!this.props.show) return null;
|
2948
|
-
return /*#__PURE__*/React__default.createElement("div", {
|
2924
|
+
return /*#__PURE__*/React__default.createElement(Fragment, null, this.props.show ? /*#__PURE__*/React__default.createElement("style", null, "body {overflow: \"hidden\" }") : null, /*#__PURE__*/React__default.createElement("div", {
|
2949
2925
|
className: classNames$1(style$m.loader_container, this.props.className)
|
2950
2926
|
}, /*#__PURE__*/React__default.createElement("div", {
|
2951
2927
|
className: classNames$1(style$m.loader_element, this.props.classNameChildren)
|
2952
2928
|
}, /*#__PURE__*/React__default.createElement("div", {
|
2953
2929
|
className: style$m.loader
|
2954
|
-
}, /*#__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));
|
2930
|
+
}, /*#__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)));
|
2955
2931
|
};
|
2956
2932
|
|
2957
2933
|
return Loader;
|