ui-kit-ck-consultant 0.5.273 → 0.5.275

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.
@@ -80,12 +80,6 @@ var Modal = /*#__PURE__*/function (_React$Component) {
80
80
  var _proto = Modal.prototype;
81
81
 
82
82
  _proto.componentDidMount = function componentDidMount() {
83
- if (this.props.show) {
84
- document.body.style.overflow = 'hidden';
85
- } else {
86
- document.body.style.overflow = 'unset';
87
- }
88
-
89
83
  window.addEventListener('mouseup', this.handleMouseUp);
90
84
  };
91
85
 
@@ -116,7 +110,7 @@ var Modal = /*#__PURE__*/function (_React$Component) {
116
110
  }
117
111
 
118
112
  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);
119
- return /*#__PURE__*/React.createElement("div", {
113
+ return /*#__PURE__*/React.createElement(Fragment$1, null, this.props.show ? /*#__PURE__*/React.createElement("style", null, "body {overflow: \"hidden\" }") : null, /*#__PURE__*/React.createElement("div", {
120
114
  className: style.modal,
121
115
  onMouseDown: function onMouseDown(e) {
122
116
  return _this2.handleClickModal(e);
@@ -155,7 +149,7 @@ var Modal = /*#__PURE__*/function (_React$Component) {
155
149
  className: style.modal_header
156
150
  }, /*#__PURE__*/React.createElement("h2", null, this.props.title)), /*#__PURE__*/React.createElement("div", {
157
151
  className: style.modal_body
158
- }, this.props.children)));
152
+ }, this.props.children))));
159
153
  };
160
154
 
161
155
  return Modal;
@@ -170,22 +164,12 @@ var FullModal = /*#__PURE__*/function (_React$Component) {
170
164
 
171
165
  var _proto = FullModal.prototype;
172
166
 
173
- _proto.componentDidUpdate = function componentDidUpdate() {
174
- if (this.props.show) {
175
- document.documentElement.style.overflow = 'hidden';
176
- document.body.style.overflow = 'hidden';
177
- } else {
178
- document.documentElement.style.overflow = 'unset';
179
- document.body.style.overflow = 'unset';
180
- }
181
- };
182
-
183
167
  _proto.render = function render() {
184
168
  if (!this.props.show) {
185
169
  return null;
186
170
  }
187
171
 
188
- return /*#__PURE__*/React.createElement("div", {
172
+ return /*#__PURE__*/React.createElement(Fragment$1, null, this.props.show ? /*#__PURE__*/React.createElement("style", null, "body {overflow: \"hidden\" }") : null, /*#__PURE__*/React.createElement("div", {
189
173
  className: classNames$1(style.modal, this.props.className)
190
174
  }, /*#__PURE__*/React.createElement("div", {
191
175
  className: style.full_modal_container
@@ -209,7 +193,7 @@ var FullModal = /*#__PURE__*/function (_React$Component) {
209
193
  className: style.full_modal_header
210
194
  }, /*#__PURE__*/React.createElement("h2", null, this.props.title)) : null, /*#__PURE__*/React.createElement("div", {
211
195
  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 : {})
212
- }, this.props.children)));
196
+ }, this.props.children))));
213
197
  };
214
198
 
215
199
  return FullModal;
@@ -2932,23 +2916,15 @@ var Loader = /*#__PURE__*/function (_React$Component) {
2932
2916
 
2933
2917
  var _proto = Loader.prototype;
2934
2918
 
2935
- _proto.componentDidUpdate = function componentDidUpdate() {
2936
- if (this.props.show) {
2937
- document.body.style.overflow = 'hidden';
2938
- } else {
2939
- document.body.style.overflow = 'unset';
2940
- }
2941
- };
2942
-
2943
2919
  _proto.render = function render() {
2944
2920
  if (!this.props.show) return null;
2945
- return /*#__PURE__*/React.createElement("div", {
2921
+ return /*#__PURE__*/React.createElement(Fragment$1, null, this.props.show ? /*#__PURE__*/React.createElement("style", null, "body {overflow: \"hidden\" }") : null, /*#__PURE__*/React.createElement("div", {
2946
2922
  className: classNames$1(style$m.loader_container, this.props.className)
2947
2923
  }, /*#__PURE__*/React.createElement("div", {
2948
2924
  className: classNames$1(style$m.loader_element, this.props.classNameChildren)
2949
2925
  }, /*#__PURE__*/React.createElement("div", {
2950
2926
  className: style$m.loader
2951
- }, /*#__PURE__*/React.createElement("span", null), /*#__PURE__*/React.createElement("span", null), /*#__PURE__*/React.createElement("span", null), /*#__PURE__*/React.createElement("span", null)), this.props.message ? /*#__PURE__*/React.createElement("p", null, this.props.message) : null));
2927
+ }, /*#__PURE__*/React.createElement("span", null), /*#__PURE__*/React.createElement("span", null), /*#__PURE__*/React.createElement("span", null), /*#__PURE__*/React.createElement("span", null)), this.props.message ? /*#__PURE__*/React.createElement("p", null, this.props.message) : null)));
2952
2928
  };
2953
2929
 
2954
2930
  return Loader;