indicator-ui 0.0.306 → 0.0.307

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 CHANGED
@@ -52828,19 +52828,22 @@ __webpack_require__.r(__webpack_exports__);
52828
52828
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
52829
52829
 
52830
52830
 
52831
- function ModalWindowWrapper(_ref) {
52832
- var children = _ref.children,
52833
- _ref$isShow = _ref.isShow,
52834
- isShow = _ref$isShow === void 0 ? false : _ref$isShow,
52835
- _ref$closeOnScroll = _ref.closeOnScroll,
52836
- closeOnScroll = _ref$closeOnScroll === void 0 ? false : _ref$closeOnScroll,
52837
- setIsShow = _ref.setIsShow,
52838
- _ref$additionElements = _ref.additionElements,
52839
- additionElements = _ref$additionElements === void 0 ? [] : _ref$additionElements,
52840
- onClose = _ref.onClose,
52841
- className = _ref.className,
52842
- style = _ref.style;
52831
+ var ModalWindowWrapper = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_1__.forwardRef)(function (props, ref) {
52832
+ var children = props.children,
52833
+ _props$isShow = props.isShow,
52834
+ isShow = _props$isShow === void 0 ? false : _props$isShow,
52835
+ _props$closeOnScroll = props.closeOnScroll,
52836
+ closeOnScroll = _props$closeOnScroll === void 0 ? false : _props$closeOnScroll,
52837
+ setIsShow = props.setIsShow,
52838
+ _props$additionElemen = props.additionElements,
52839
+ additionElements = _props$additionElemen === void 0 ? [] : _props$additionElemen,
52840
+ onClose = props.onClose,
52841
+ className = props.className,
52842
+ style = props.style;
52843
52843
  var modalWindowRef = (0,react__WEBPACK_IMPORTED_MODULE_1__.useRef)(null);
52844
+ (0,react__WEBPACK_IMPORTED_MODULE_1__.useImperativeHandle)(ref, function () {
52845
+ return modalWindowRef.current;
52846
+ });
52844
52847
  (0,react__WEBPACK_IMPORTED_MODULE_1__.useEffect)(function () {
52845
52848
  var handleMouseDown = function handleMouseDown(e) {
52846
52849
  var _modalWindowRef$curre;
@@ -52879,7 +52882,7 @@ function ModalWindowWrapper(_ref) {
52879
52882
  className: className,
52880
52883
  children: children
52881
52884
  });
52882
- }
52885
+ });
52883
52886
 
52884
52887
  /***/ }),
52885
52888