@luminati-io/uikit 5.0.6 → 5.0.7
Sign up to get free protection for your applications and to get access to all the features.
@@ -39757,10 +39757,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
39757
39757
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
39758
39758
|
/* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! styled-components */ "styled-components");
|
39759
39759
|
/* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(styled_components__WEBPACK_IMPORTED_MODULE_1__);
|
39760
|
-
/* harmony import */ var
|
39761
|
-
/* harmony import */ var
|
39762
|
-
/* harmony import */ var
|
39763
|
-
/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../constants */ "./src/constants.js");
|
39760
|
+
/* harmony import */ var _hoc__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../hoc */ "./src/hoc/index.js");
|
39761
|
+
/* harmony import */ var _hooks__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../hooks */ "./src/hooks/index.js");
|
39762
|
+
/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../constants */ "./src/constants.js");
|
39764
39763
|
// LICENSE_CODE ZON
|
39765
39764
|
|
39766
39765
|
|
@@ -39779,12 +39778,11 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
|
|
39779
39778
|
|
39780
39779
|
|
39781
39780
|
|
39782
|
-
|
39783
39781
|
var withBackdrop = function withBackdrop(Comp) {
|
39784
39782
|
var WithBackdrop = function WithBackdrop(props) {
|
39785
39783
|
var show = props.show,
|
39786
39784
|
_props$zIndex = props.zIndex,
|
39787
|
-
zIndex = _props$zIndex === void 0 ?
|
39785
|
+
zIndex = _props$zIndex === void 0 ? _constants__WEBPACK_IMPORTED_MODULE_4__.Z_INDEX.backdrop : _props$zIndex,
|
39788
39786
|
onOutsideClick = props.onOutsideClick,
|
39789
39787
|
swallowOutsideClick = props.swallowOutsideClick,
|
39790
39788
|
restProps = _objectWithoutProperties(props, _excluded);
|
@@ -39823,7 +39821,7 @@ var withBackdrop = function withBackdrop(Comp) {
|
|
39823
39821
|
evt.stopPropagation();
|
39824
39822
|
evt.preventDefault();
|
39825
39823
|
}, [visible, swallowOutsideClick, onOutsideClick]);
|
39826
|
-
(0,
|
39824
|
+
(0,_hooks__WEBPACK_IMPORTED_MODULE_3__.useOutsideClick)(popperElement.current, hideAndStopEvt);
|
39827
39825
|
if (!mount) return null;
|
39828
39826
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(PopupContainer, {
|
39829
39827
|
$zIndex: zIndex
|
@@ -39839,10 +39837,10 @@ var withBackdrop = function withBackdrop(Comp) {
|
|
39839
39837
|
}
|
39840
39838
|
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(Comp, restProps))));
|
39841
39839
|
};
|
39842
|
-
WithBackdrop.displayName = "WithBackdrop(".concat((0,
|
39840
|
+
WithBackdrop.displayName = "WithBackdrop(".concat((0,_hoc__WEBPACK_IMPORTED_MODULE_2__.getDisplayName)(Comp), ")");
|
39843
39841
|
return WithBackdrop;
|
39844
39842
|
};
|
39845
|
-
var StyledBackdrop = styled_components__WEBPACK_IMPORTED_MODULE_1___default()
|
39843
|
+
var StyledBackdrop = styled_components__WEBPACK_IMPORTED_MODULE_1___default().div.withConfig({
|
39846
39844
|
displayName: "StyledBackdrop",
|
39847
39845
|
componentId: "sc-upusus-0"
|
39848
39846
|
})(["width:100%;height:100%;background-color:", ";opacity:", ";transition:opacity .15s linear;"], function (_ref) {
|
@@ -39851,25 +39849,21 @@ var StyledBackdrop = styled_components__WEBPACK_IMPORTED_MODULE_1___default()(_l
|
|
39851
39849
|
}, function (props) {
|
39852
39850
|
return props.$show ? 0.5 : 0;
|
39853
39851
|
});
|
39854
|
-
var PopupContainer = styled_components__WEBPACK_IMPORTED_MODULE_1___default()
|
39852
|
+
var PopupContainer = styled_components__WEBPACK_IMPORTED_MODULE_1___default().div.withConfig({
|
39855
39853
|
displayName: "PopupContainer",
|
39856
39854
|
componentId: "sc-upusus-1"
|
39857
|
-
})(["position:
|
39855
|
+
})(["position:fixed;top:0;right:0;bottom:0;left:0;z-index:", ";"], function (props) {
|
39858
39856
|
return props.$zIndex;
|
39859
39857
|
});
|
39860
|
-
var CompContainer = styled_components__WEBPACK_IMPORTED_MODULE_1___default()
|
39861
|
-
justify_content: 'center',
|
39862
|
-
width: '100%'
|
39863
|
-
}).withConfig({
|
39858
|
+
var CompContainer = styled_components__WEBPACK_IMPORTED_MODULE_1___default().div.withConfig({
|
39864
39859
|
displayName: "CompContainer",
|
39865
39860
|
componentId: "sc-upusus-2"
|
39866
|
-
})(["position:absolute;top:
|
39861
|
+
})(["display:flex;flex-direction:row;justify-content:center;width:100%;position:absolute;top:10vh;max-height:80vh;z-index:", ";opacity:", ";transform:translate(0,", ");transition:opacity 0.15s linear,transform 0.3s ease-out;"], function (props) {
|
39867
39862
|
return props.$zIndex;
|
39868
39863
|
}, function (props) {
|
39869
39864
|
return props.$show ? 1 : 0;
|
39870
|
-
}, function (
|
39871
|
-
|
39872
|
-
return $show ? 'calc(50vh - 50%)' : '-100%';
|
39865
|
+
}, function (props) {
|
39866
|
+
return props.$show ? '0' : '-25%';
|
39873
39867
|
});
|
39874
39868
|
|
39875
39869
|
/***/ }),
|