indicator-ui 0.0.309 → 0.0.310
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 +18 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -52835,8 +52835,23 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
52835
52835
|
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__);
|
|
52836
52836
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
|
|
52837
52837
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
|
|
52838
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
52838
52839
|
|
|
52839
52840
|
|
|
52841
|
+
var mergeRefs = function mergeRefs() {
|
|
52842
|
+
for (var _len = arguments.length, refs = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
52843
|
+
refs[_key] = arguments[_key];
|
|
52844
|
+
}
|
|
52845
|
+
return function (node) {
|
|
52846
|
+
refs.forEach(function (ref) {
|
|
52847
|
+
if (typeof ref === "function") {
|
|
52848
|
+
ref(node);
|
|
52849
|
+
} else if (ref && _typeof(ref) === "object") {
|
|
52850
|
+
ref.current = node;
|
|
52851
|
+
}
|
|
52852
|
+
});
|
|
52853
|
+
};
|
|
52854
|
+
};
|
|
52840
52855
|
var ModalWindowWrapper = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_1__.forwardRef)(function (props, ref) {
|
|
52841
52856
|
var children = props.children,
|
|
52842
52857
|
_props$isShow = props.isShow,
|
|
@@ -52850,9 +52865,10 @@ var ModalWindowWrapper = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_1__.forw
|
|
|
52850
52865
|
className = props.className,
|
|
52851
52866
|
style = props.style;
|
|
52852
52867
|
var modalWindowRef = (0,react__WEBPACK_IMPORTED_MODULE_1__.useRef)(null);
|
|
52868
|
+
var combinedRef = mergeRefs(ref, modalWindowRef);
|
|
52853
52869
|
(0,react__WEBPACK_IMPORTED_MODULE_1__.useImperativeHandle)(ref, function () {
|
|
52854
52870
|
return modalWindowRef.current;
|
|
52855
|
-
});
|
|
52871
|
+
}, []);
|
|
52856
52872
|
(0,react__WEBPACK_IMPORTED_MODULE_1__.useEffect)(function () {
|
|
52857
52873
|
var handleMouseDown = function handleMouseDown(e) {
|
|
52858
52874
|
var _modalWindowRef$curre;
|
|
@@ -52886,7 +52902,7 @@ var ModalWindowWrapper = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_1__.forw
|
|
|
52886
52902
|
}, [additionElements, closeOnScroll]);
|
|
52887
52903
|
if (!isShow) return undefined;
|
|
52888
52904
|
return (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("div", {
|
|
52889
|
-
ref:
|
|
52905
|
+
ref: combinedRef,
|
|
52890
52906
|
style: style,
|
|
52891
52907
|
className: className,
|
|
52892
52908
|
children: children
|