@luminati-io/uikit 5.0.5 → 5.0.7
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.
@@ -31339,7 +31339,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
31339
31339
|
|
31340
31340
|
var Code = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)(function (_ref, ref) {
|
31341
31341
|
var className = _ref.className,
|
31342
|
-
|
31342
|
+
code = _ref.code,
|
31343
31343
|
lang = _ref.lang,
|
31344
31344
|
theme = _ref.theme,
|
31345
31345
|
lineNumbers = _ref.lineNumbers,
|
@@ -31347,18 +31347,18 @@ var Code = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)(functi
|
|
31347
31347
|
variant = _ref$variant === void 0 ? 'white' : _ref$variant;
|
31348
31348
|
(0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(function () {
|
31349
31349
|
prismjs_components_prism_core__WEBPACK_IMPORTED_MODULE_1___default().highlightAll();
|
31350
|
-
}, [
|
31350
|
+
}, [code, lang, lineNumbers]);
|
31351
31351
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(CodeWrapper, {
|
31352
31352
|
ref: ref,
|
31353
31353
|
$variant: theme || variant,
|
31354
31354
|
className: (0,_util__WEBPACK_IMPORTED_MODULE_20__.classNames)(null, null, className, "".concat(lineNumbers ? '' : 'no-', "line-numbers"))
|
31355
31355
|
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("code", {
|
31356
31356
|
className: "language-".concat(lang, " content")
|
31357
|
-
},
|
31357
|
+
}, code));
|
31358
31358
|
});
|
31359
31359
|
Code.displayName = 'Code';
|
31360
31360
|
Code.propTypes = {
|
31361
|
-
|
31361
|
+
code: (prop_types__WEBPACK_IMPORTED_MODULE_18___default().string),
|
31362
31362
|
lang: prop_types__WEBPACK_IMPORTED_MODULE_18___default().oneOf(['js', 'javascript', 'css', 'markup', 'shell', 'java', 'csharp', 'vbnet', 'php', 'ruby', 'perl', 'python', 'json']),
|
31363
31363
|
variant: prop_types__WEBPACK_IMPORTED_MODULE_18___default().oneOf(['black', 'white']),
|
31364
31364
|
lineNumbers: (prop_types__WEBPACK_IMPORTED_MODULE_18___default().bool)
|
@@ -31554,7 +31554,7 @@ var CodeSnippet = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)
|
|
31554
31554
|
}, !loading && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement((react__WEBPACK_IMPORTED_MODULE_0___default().Fragment), null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_code__WEBPACK_IMPORTED_MODULE_4__.Code, {
|
31555
31555
|
ref: codeRef,
|
31556
31556
|
lang: lang,
|
31557
|
-
|
31557
|
+
code: code,
|
31558
31558
|
variant: _variant,
|
31559
31559
|
lineNumbers: lineNumbers
|
31560
31560
|
}), !!copyButton && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_copy_button__WEBPACK_IMPORTED_MODULE_5__.CopyButton, {
|
@@ -32985,7 +32985,7 @@ var InfoChip = function InfoChip(_ref) {
|
|
32985
32985
|
};
|
32986
32986
|
InfoChip.propTypes = {
|
32987
32987
|
variant: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(['default', 'success', 'alert', 'warning', 'info']),
|
32988
|
-
text: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().
|
32988
|
+
text: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().node),
|
32989
32989
|
icon: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(_utils__WEBPACK_IMPORTED_MODULE_7__.iconNames)
|
32990
32990
|
};
|
32991
32991
|
var InfoChipWrapper = styled_components__WEBPACK_IMPORTED_MODULE_2___default()(_layout__WEBPACK_IMPORTED_MODULE_4__.Flex).attrs({
|
@@ -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,19 +39849,16 @@ 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:10vh;max-height:80vh;z-index:", ";opacity:", ";transform:translate(0,", ");transition:opacity 0.15s linear,transform 0.3s ease-out;"], function (props) {
|
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;
|
@@ -41057,8 +41052,9 @@ var Search = function Search(_ref2) {
|
|
41057
41052
|
var ItemsWrapper = styled_components__WEBPACK_IMPORTED_MODULE_2___default().div.withConfig({
|
41058
41053
|
displayName: "ItemsWrapper",
|
41059
41054
|
componentId: "sc-1uptv2h-1"
|
41060
|
-
})(["width:100%;display:flex;flex-direction:column;gap:2px;box-sizing:border-box;", ""], function (
|
41061
|
-
var
|
41055
|
+
})(["width:100%;display:flex;flex-direction:column;gap:2px;box-sizing:border-box;", ""], function (_ref3) {
|
41056
|
+
var $maxMenuHeight = _ref3.$maxMenuHeight,
|
41057
|
+
scrollbars = _ref3.theme.scrollbars;
|
41062
41058
|
if ($maxMenuHeight > 0) {
|
41063
41059
|
return (0,styled_components__WEBPACK_IMPORTED_MODULE_2__.css)(["max-height:", ";overflow-y:auto;", ""], (0,_utils__WEBPACK_IMPORTED_MODULE_9__.toPixel)($maxMenuHeight), scrollbars.thin);
|
41064
41060
|
}
|