@luminati-io/uikit 5.0.4 → 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
|
-
|
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({
|
@@ -33112,21 +33112,24 @@ Checkbox.propTypes = {
|
|
33112
33112
|
var CheckboxWrapper = styled_components__WEBPACK_IMPORTED_MODULE_2___default().div.withConfig({
|
33113
33113
|
displayName: "CheckboxWrapper",
|
33114
33114
|
componentId: "sc-623yyg-0"
|
33115
|
-
})(["display:inline-flex;align-items:center;gap:
|
33116
|
-
var
|
33117
|
-
return
|
33115
|
+
})(["display:inline-flex;align-items:center;gap:", ";vertical-align:", ";", ""], function (_ref2) {
|
33116
|
+
var theme = _ref2.theme;
|
33117
|
+
return theme.spacing['03'];
|
33118
33118
|
}, function (_ref3) {
|
33119
|
-
var $
|
33119
|
+
var $verticalAlign = _ref3.$verticalAlign;
|
33120
|
+
return $verticalAlign;
|
33121
|
+
}, function (_ref4) {
|
33122
|
+
var $disabled = _ref4.$disabled;
|
33120
33123
|
return $disabled ? undefined : (0,styled_components__WEBPACK_IMPORTED_MODULE_2__.css)(["cursor:pointer;"]);
|
33121
33124
|
});
|
33122
33125
|
var CheckboxControl = styled_components__WEBPACK_IMPORTED_MODULE_2___default().div.withConfig({
|
33123
33126
|
displayName: "CheckboxControl",
|
33124
33127
|
componentId: "sc-623yyg-1"
|
33125
|
-
})(["display:flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:16px;max-width:16px;height:16px;border:1.5px solid;border-radius:4px;", " background-repeat:no-repeat;background-position:center center;background-image:", ""], function (
|
33126
|
-
var $disabled =
|
33127
|
-
$checked =
|
33128
|
-
$indeterminate =
|
33129
|
-
color =
|
33128
|
+
})(["display:flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:16px;max-width:16px;height:16px;border:1.5px solid;border-radius:4px;", " background-repeat:no-repeat;background-position:center center;background-image:", ""], function (_ref5) {
|
33129
|
+
var $disabled = _ref5.$disabled,
|
33130
|
+
$checked = _ref5.$checked,
|
33131
|
+
$indeterminate = _ref5.$indeterminate,
|
33132
|
+
color = _ref5.theme.color;
|
33130
33133
|
if ($disabled) {
|
33131
33134
|
if ($indeterminate || $checked) {
|
33132
33135
|
return (0,styled_components__WEBPACK_IMPORTED_MODULE_2__.css)(["border-color:", ";background-color:", ";"], color.gray_5, color.gray_5);
|
@@ -33140,11 +33143,11 @@ var CheckboxControl = styled_components__WEBPACK_IMPORTED_MODULE_2___default().d
|
|
33140
33143
|
}, function (props) {
|
33141
33144
|
return getBackgroundImage(props);
|
33142
33145
|
});
|
33143
|
-
var getBackgroundImage = function getBackgroundImage(
|
33144
|
-
var $checked =
|
33145
|
-
$indeterminate =
|
33146
|
-
$disabled =
|
33147
|
-
color =
|
33146
|
+
var getBackgroundImage = function getBackgroundImage(_ref6) {
|
33147
|
+
var $checked = _ref6.$checked,
|
33148
|
+
$indeterminate = _ref6.$indeterminate,
|
33149
|
+
$disabled = _ref6.$disabled,
|
33150
|
+
color = _ref6.theme.color;
|
33148
33151
|
var fill = encodeURIComponent($disabled ? color.gray_9 : $checked ? color.white : color.gray_11);
|
33149
33152
|
if ($checked) return "url(\"data:image/svg+xml,%3Csvg width='10' height='8' viewBox='0 0 10 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M3.63803 5.42519L8.40556 0.645362C8.7608 0.289208 9.33772 0.289208 9.69296 0.645362C10.0469 1.00022 10.0469 1.57459 9.69296 1.92945L4.34605 7.29016C3.95532 7.6819 3.32075 7.6819 2.93002 7.29016L0.307079 4.66045C-0.0468663 4.30559 -0.0468661 3.73122 0.307079 3.37636C0.662317 3.02021 1.23924 3.02021 1.59448 3.37636L3.63803 5.42519Z' fill='".concat(fill, "'/%3E%3C/svg%3E%0A\")");
|
33150
33153
|
if ($indeterminate) return "url(\"data:image/svg+xml,%3Csvg width='10' height='2' viewBox='0 0 10 2' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='10' height='2' rx='1' fill='".concat(fill, "'/%3E%3C/svg%3E%0A\")");
|
@@ -39860,12 +39863,13 @@ var CompContainer = styled_components__WEBPACK_IMPORTED_MODULE_1___default()(_la
|
|
39860
39863
|
}).withConfig({
|
39861
39864
|
displayName: "CompContainer",
|
39862
39865
|
componentId: "sc-upusus-2"
|
39863
|
-
})(["position:absolute;top:
|
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) {
|
39864
39867
|
return props.$zIndex;
|
39865
39868
|
}, function (props) {
|
39866
39869
|
return props.$show ? 1 : 0;
|
39867
|
-
}, function (
|
39868
|
-
|
39870
|
+
}, function (_ref2) {
|
39871
|
+
var $show = _ref2.$show;
|
39872
|
+
return $show ? 'calc(50vh - 50%)' : '-100%';
|
39869
39873
|
});
|
39870
39874
|
|
39871
39875
|
/***/ }),
|
@@ -41054,8 +41058,9 @@ var Search = function Search(_ref2) {
|
|
41054
41058
|
var ItemsWrapper = styled_components__WEBPACK_IMPORTED_MODULE_2___default().div.withConfig({
|
41055
41059
|
displayName: "ItemsWrapper",
|
41056
41060
|
componentId: "sc-1uptv2h-1"
|
41057
|
-
})(["width:100%;display:flex;flex-direction:column;gap:2px;box-sizing:border-box;", ""], function (
|
41058
|
-
var
|
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;
|
41059
41064
|
if ($maxMenuHeight > 0) {
|
41060
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);
|
41061
41066
|
}
|