@luminati-io/uikit 5.0.5 → 5.0.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -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
- text = _ref.text,
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
- }, [text, lang, lineNumbers]);
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
- }, text));
31357
+ }, code));
31358
31358
  });
31359
31359
  Code.displayName = 'Code';
31360
31360
  Code.propTypes = {
31361
- text: (prop_types__WEBPACK_IMPORTED_MODULE_18___default().string),
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
- text: code,
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().string),
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({
@@ -39863,12 +39863,13 @@ var CompContainer = styled_components__WEBPACK_IMPORTED_MODULE_1___default()(_la
39863
39863
  }).withConfig({
39864
39864
  displayName: "CompContainer",
39865
39865
  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) {
39866
+ })(["position:absolute;top:0;max-height:80vh;z-index:", ";opacity:", ";transform:translateY(", ");transition:opacity 0.15s linear,transform 0.3s ease-out;"], function (props) {
39867
39867
  return props.$zIndex;
39868
39868
  }, function (props) {
39869
39869
  return props.$show ? 1 : 0;
39870
- }, function (props) {
39871
- return props.$show ? '0' : '-25%';
39870
+ }, function (_ref2) {
39871
+ var $show = _ref2.$show;
39872
+ return $show ? 'calc(50vh - 50%)' : '-100%';
39872
39873
  });
39873
39874
 
39874
39875
  /***/ }),
@@ -41057,8 +41058,9 @@ var Search = function Search(_ref2) {
41057
41058
  var ItemsWrapper = styled_components__WEBPACK_IMPORTED_MODULE_2___default().div.withConfig({
41058
41059
  displayName: "ItemsWrapper",
41059
41060
  componentId: "sc-1uptv2h-1"
41060
- })(["width:100%;display:flex;flex-direction:column;gap:2px;box-sizing:border-box;", ""], function ($maxMenuHeight, _ref3) {
41061
- var scrollbars = _ref3.theme.scrollbars;
41061
+ })(["width:100%;display:flex;flex-direction:column;gap:2px;box-sizing:border-box;", ""], function (_ref3) {
41062
+ var $maxMenuHeight = _ref3.$maxMenuHeight,
41063
+ scrollbars = _ref3.theme.scrollbars;
41062
41064
  if ($maxMenuHeight > 0) {
41063
41065
  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
41066
  }