@luminati-io/uikit 6.2.8-beta.1 → 6.2.8-beta.2
Sign up to get free protection for your applications and to get access to all the features.
@@ -33892,47 +33892,48 @@ __webpack_require__.r(__webpack_exports__);
|
|
33892
33892
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
33893
33893
|
/* harmony export */ Code: () => (/* binding */ Code)
|
33894
33894
|
/* harmony export */ });
|
33895
|
-
/* harmony import */ var
|
33896
|
-
/* harmony import */ var
|
33897
|
-
/* harmony import */ var
|
33898
|
-
/* harmony import */ var
|
33899
|
-
/* harmony import */ var
|
33900
|
-
/* harmony import */ var
|
33901
|
-
/* harmony import */ var
|
33902
|
-
/* harmony import */ var
|
33903
|
-
/* harmony import */ var
|
33904
|
-
/* harmony import */ var
|
33905
|
-
/* harmony import */ var
|
33906
|
-
/* harmony import */ var
|
33907
|
-
/* harmony import */ var
|
33908
|
-
/* harmony import */ var
|
33909
|
-
/* harmony import */ var
|
33910
|
-
/* harmony import */ var
|
33911
|
-
/* harmony import */ var
|
33912
|
-
/* harmony import */ var
|
33913
|
-
/* harmony import */ var
|
33914
|
-
/* harmony import */ var
|
33915
|
-
/* harmony import */ var
|
33916
|
-
/* harmony import */ var
|
33917
|
-
/* harmony import */ var
|
33918
|
-
/* harmony import */ var
|
33919
|
-
/* harmony import */ var
|
33920
|
-
/* harmony import */ var
|
33921
|
-
/* harmony import */ var
|
33922
|
-
/* harmony import */ var
|
33923
|
-
/* harmony import */ var
|
33924
|
-
/* harmony import */ var
|
33925
|
-
/* harmony import */ var
|
33926
|
-
/* harmony import */ var
|
33927
|
-
/* harmony import */ var
|
33928
|
-
/* harmony import */ var
|
33929
|
-
/* harmony import */ var
|
33930
|
-
/* harmony import */ var
|
33931
|
-
/* harmony import */ var
|
33932
|
-
/* harmony import */ var
|
33933
|
-
/* harmony import */ var
|
33934
|
-
/* harmony import */ var
|
33935
|
-
/* harmony import */ var
|
33895
|
+
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! prop-types */ "prop-types");
|
33896
|
+
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_0__);
|
33897
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
|
33898
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
|
33899
|
+
/* harmony import */ var prismjs_components_prism_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! prismjs/components/prism-core */ "./node_modules/prismjs/components/prism-core.js");
|
33900
|
+
/* harmony import */ var prismjs_components_prism_core__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(prismjs_components_prism_core__WEBPACK_IMPORTED_MODULE_2__);
|
33901
|
+
/* harmony import */ var prismjs_components_prism_clike__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! prismjs/components/prism-clike */ "./node_modules/prismjs/components/prism-clike.js");
|
33902
|
+
/* harmony import */ var prismjs_components_prism_clike__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(prismjs_components_prism_clike__WEBPACK_IMPORTED_MODULE_3__);
|
33903
|
+
/* harmony import */ var prismjs_components_prism_markup__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! prismjs/components/prism-markup */ "./node_modules/prismjs/components/prism-markup.js");
|
33904
|
+
/* harmony import */ var prismjs_components_prism_markup__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(prismjs_components_prism_markup__WEBPACK_IMPORTED_MODULE_4__);
|
33905
|
+
/* harmony import */ var prismjs_components_prism_javascript__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! prismjs/components/prism-javascript */ "./node_modules/prismjs/components/prism-javascript.js");
|
33906
|
+
/* harmony import */ var prismjs_components_prism_javascript__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(prismjs_components_prism_javascript__WEBPACK_IMPORTED_MODULE_5__);
|
33907
|
+
/* harmony import */ var prismjs_components_prism_css__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! prismjs/components/prism-css */ "./node_modules/prismjs/components/prism-css.js");
|
33908
|
+
/* harmony import */ var prismjs_components_prism_css__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(prismjs_components_prism_css__WEBPACK_IMPORTED_MODULE_6__);
|
33909
|
+
/* harmony import */ var prismjs_components_prism_bash__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! prismjs/components/prism-bash */ "./node_modules/prismjs/components/prism-bash.js");
|
33910
|
+
/* harmony import */ var prismjs_components_prism_bash__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(prismjs_components_prism_bash__WEBPACK_IMPORTED_MODULE_7__);
|
33911
|
+
/* harmony import */ var prismjs_components_prism_java__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! prismjs/components/prism-java */ "./node_modules/prismjs/components/prism-java.js");
|
33912
|
+
/* harmony import */ var prismjs_components_prism_java__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(prismjs_components_prism_java__WEBPACK_IMPORTED_MODULE_8__);
|
33913
|
+
/* harmony import */ var prismjs_components_prism_csharp__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! prismjs/components/prism-csharp */ "./node_modules/prismjs/components/prism-csharp.js");
|
33914
|
+
/* harmony import */ var prismjs_components_prism_csharp__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(prismjs_components_prism_csharp__WEBPACK_IMPORTED_MODULE_9__);
|
33915
|
+
/* harmony import */ var prismjs_components_prism_basic__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! prismjs/components/prism-basic */ "./node_modules/prismjs/components/prism-basic.js");
|
33916
|
+
/* harmony import */ var prismjs_components_prism_basic__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(prismjs_components_prism_basic__WEBPACK_IMPORTED_MODULE_10__);
|
33917
|
+
/* harmony import */ var prismjs_components_prism_vbnet__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! prismjs/components/prism-vbnet */ "./node_modules/prismjs/components/prism-vbnet.js");
|
33918
|
+
/* harmony import */ var prismjs_components_prism_vbnet__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(prismjs_components_prism_vbnet__WEBPACK_IMPORTED_MODULE_11__);
|
33919
|
+
/* harmony import */ var prismjs_components_prism_markup_templating__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! prismjs/components/prism-markup-templating */ "./node_modules/prismjs/components/prism-markup-templating.js");
|
33920
|
+
/* harmony import */ var prismjs_components_prism_markup_templating__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(prismjs_components_prism_markup_templating__WEBPACK_IMPORTED_MODULE_12__);
|
33921
|
+
/* harmony import */ var prismjs_components_prism_php__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! prismjs/components/prism-php */ "./node_modules/prismjs/components/prism-php.js");
|
33922
|
+
/* harmony import */ var prismjs_components_prism_php__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(prismjs_components_prism_php__WEBPACK_IMPORTED_MODULE_13__);
|
33923
|
+
/* harmony import */ var prismjs_components_prism_ruby__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! prismjs/components/prism-ruby */ "./node_modules/prismjs/components/prism-ruby.js");
|
33924
|
+
/* harmony import */ var prismjs_components_prism_ruby__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(prismjs_components_prism_ruby__WEBPACK_IMPORTED_MODULE_14__);
|
33925
|
+
/* harmony import */ var prismjs_components_prism_perl__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! prismjs/components/prism-perl */ "./node_modules/prismjs/components/prism-perl.js");
|
33926
|
+
/* harmony import */ var prismjs_components_prism_perl__WEBPACK_IMPORTED_MODULE_15___default = /*#__PURE__*/__webpack_require__.n(prismjs_components_prism_perl__WEBPACK_IMPORTED_MODULE_15__);
|
33927
|
+
/* harmony import */ var prismjs_components_prism_python__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! prismjs/components/prism-python */ "./node_modules/prismjs/components/prism-python.js");
|
33928
|
+
/* harmony import */ var prismjs_components_prism_python__WEBPACK_IMPORTED_MODULE_16___default = /*#__PURE__*/__webpack_require__.n(prismjs_components_prism_python__WEBPACK_IMPORTED_MODULE_16__);
|
33929
|
+
/* harmony import */ var prismjs_components_prism_json__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! prismjs/components/prism-json */ "./node_modules/prismjs/components/prism-json.js");
|
33930
|
+
/* harmony import */ var prismjs_components_prism_json__WEBPACK_IMPORTED_MODULE_17___default = /*#__PURE__*/__webpack_require__.n(prismjs_components_prism_json__WEBPACK_IMPORTED_MODULE_17__);
|
33931
|
+
/* harmony import */ var prismjs_plugins_line_numbers_prism_line_numbers__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! prismjs/plugins/line-numbers/prism-line-numbers */ "./node_modules/prismjs/plugins/line-numbers/prism-line-numbers.js");
|
33932
|
+
/* harmony import */ var prismjs_plugins_line_numbers_prism_line_numbers__WEBPACK_IMPORTED_MODULE_18___default = /*#__PURE__*/__webpack_require__.n(prismjs_plugins_line_numbers_prism_line_numbers__WEBPACK_IMPORTED_MODULE_18__);
|
33933
|
+
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
|
33934
|
+
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_19___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_19__);
|
33935
|
+
/* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! styled-components */ "styled-components");
|
33936
|
+
/* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_20___default = /*#__PURE__*/__webpack_require__.n(styled_components__WEBPACK_IMPORTED_MODULE_20__);
|
33936
33937
|
// LICENSE_CODE ZON
|
33937
33938
|
|
33938
33939
|
|
@@ -33958,38 +33959,43 @@ __webpack_require__.r(__webpack_exports__);
|
|
33958
33959
|
|
33959
33960
|
|
33960
33961
|
|
33961
|
-
(
|
33962
|
+
(prismjs_components_prism_core__WEBPACK_IMPORTED_MODULE_2___default().manual) = true;
|
33962
33963
|
|
33963
33964
|
// import 'prismjs/plugins/line-numbers/prism-line-numbers';
|
33964
33965
|
|
33965
|
-
var Code = /*#__PURE__*/(0,
|
33966
|
+
var Code = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_1__.forwardRef)(function (_ref, ref) {
|
33966
33967
|
var className = _ref.className,
|
33967
33968
|
code = _ref.code,
|
33968
33969
|
lang = _ref.lang,
|
33969
33970
|
lineNumbers = _ref.lineNumbers,
|
33970
33971
|
_ref$variant = _ref.variant,
|
33971
|
-
variant = _ref$variant === void 0 ? 'white' : _ref$variant
|
33972
|
-
|
33973
|
-
|
33972
|
+
variant = _ref$variant === void 0 ? 'white' : _ref$variant,
|
33973
|
+
wrap = _ref.wrap;
|
33974
|
+
(0,react__WEBPACK_IMPORTED_MODULE_1__.useEffect)(function () {
|
33975
|
+
prismjs_components_prism_core__WEBPACK_IMPORTED_MODULE_2___default().highlightAll();
|
33974
33976
|
}, [code, lang, lineNumbers]);
|
33975
|
-
return /*#__PURE__*/
|
33977
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(CodeWrapper, {
|
33976
33978
|
ref: ref,
|
33977
|
-
className: (
|
33978
|
-
|
33979
|
+
className: classnames__WEBPACK_IMPORTED_MODULE_19___default()(className, variant, {
|
33980
|
+
wrap: wrap,
|
33981
|
+
'line-numbers': lineNumbers
|
33982
|
+
})
|
33983
|
+
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("code", {
|
33979
33984
|
className: "language-".concat(lang, " content")
|
33980
33985
|
}, code));
|
33981
33986
|
});
|
33982
33987
|
Code.displayName = 'Code';
|
33983
33988
|
Code.propTypes = {
|
33984
|
-
code: (
|
33985
|
-
lang:
|
33986
|
-
variant:
|
33987
|
-
lineNumbers: (
|
33989
|
+
code: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
|
33990
|
+
lang: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(['js', 'javascript', 'css', 'markup', 'shell', 'java', 'csharp', 'vbnet', 'php', 'ruby', 'perl', 'python', 'json']),
|
33991
|
+
variant: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(['black', 'white']),
|
33992
|
+
lineNumbers: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
|
33993
|
+
wrap: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool)
|
33988
33994
|
};
|
33989
|
-
var CodeWrapper =
|
33995
|
+
var CodeWrapper = styled_components__WEBPACK_IMPORTED_MODULE_20___default().pre.withConfig({
|
33990
33996
|
displayName: "CodeWrapper",
|
33991
33997
|
componentId: "sc-1kleg7y-0"
|
33992
|
-
})(["&&&{margin:0;border:none;background-color:transparent;width:100%;white-space:pre
|
33998
|
+
})(["&&&{margin:0;border:none;background-color:transparent;width:100%;white-space:pre;tab-size:4;text-align:left;word-spacing:normal;word-break:break-word;word-wrap:normal;hyphens:none;max-height:none !important;&.wrap{white-space:pre-wrap !important;}code.content{all:inherit;margin:0;padding:0;border:none;background-color:transparent;text-shadow:none;}&.line-numbers{position:relative;padding-left:3.8rem;counter-reset:linenumber;& > code{position:relative;white-space:inherit;}.line-numbers-rows{position:absolute;pointer-events:none;top:0;font-size:100%;left:-3.8rem;width:3rem;letter-spacing:-1px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;& > span{display:block;counter-increment:linenumber;&:before{content:counter(linenumber);display:block;padding-right:0.8rem;text-align:right;}}}}&.black .line-numbers{color:", ";}&.white .line-numbers{color:", ";}&.black{code[class*=\"language-\"],pre[class*=\"language-\"]{color:", ";background:none;text-shadow:0 1px ", ";font-family:Consolas,Monaco,'Andale Mono','Ubuntu Mono',monospace;font-size:1em;text-align:left;word-spacing:normal;word-break:normal;word-wrap:normal;line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-hyphens:none;-moz-hyphens:none;-ms-hyphens:none;hyphens:none;}pre[class*=\"language-\"]{padding:1em;margin:.5em 0;overflow:auto;border-radius:0.3em;}:not(pre) > code[class*=\"language-\"],pre[class*=\"language-\"]{background:#272822;}:not(pre) > code[class*=\"language-\"]{padding:.1em;border-radius:.3em;white-space:normal;}.token.comment,.token.prolog,.token.doctype,.token.cdata{color:#8292a2;}.token.punctuation{color:#f8f8f2;}.token.namespace{opacity:.7;}.token.property,.token.tag,.token.constant,.token.symbol,.token.deleted{color:#f92672;}.token.boolean,.token.number{color:#ae81ff;}.token.selector,.token.attr-name,.token.string,.token.char,.token.builtin,.token.inserted{color:#a6e22e;}.token.operator,.token.entity,.token.url,.language-css .token.string,.style .token.string,.token.variable{color:#f8f8f2;}.token.atrule,.token.attr-value,.token.function,.token.class-name{color:#e6db74;}.token.keyword{color:#66d9ef;}.token.regex,.token.important{color:#fd971f;}.token.important,.token.bold{font-weight:bold;}.token.italic{font-style:italic;}.token.entity{cursor:help;}}&.white{code[class*=\"language-\"],pre[class*=\"language-\"]{color:", ";background:none;text-shadow:0 1px ", ";font-family:Consolas,Monaco,'Andale Mono','Ubuntu Mono',monospace;font-size:1em;text-align:left;word-spacing:normal;word-break:normal;word-wrap:normal;line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-hyphens:none;-moz-hyphens:none;-ms-hyphens:none;hyphens:none;}pre[class*=\"language-\"]::-moz-selection,pre[class*=\"language-\"] ::-moz-selection,code[class*=\"language-\"]::-moz-selection,code[class*=\"language-\"] ::-moz-selection{text-shadow:none;background:#b3d4fc;}pre[class*=\"language-\"]::selection,pre[class*=\"language-\"] ::selection,code[class*=\"language-\"]::selection,code[class*=\"language-\"] ::selection{text-shadow:none;background:#b3d4fc;}@media print{code[class*=\"language-\"],pre[class*=\"language-\"]{text-shadow:none;}}pre[class*=\"language-\"]{padding:1em;margin:.5em 0;overflow:auto;}:not(pre) > code[class*=\"language-\"],pre[class*=\"language-\"]{background:#f5f2f0;}:not(pre) > code[class*=\"language-\"]{padding:.1em;border-radius:.3em;white-space:normal;}.token.comment,.token.prolog,.token.doctype,.token.cdata{color:slategray;}.token.punctuation{color:#999;}.token.namespace{opacity:.7;}.token.property,.token.tag,.token.boolean,.token.number,.token.constant,.token.symbol,.token.deleted{color:#905;}.token.selector,.token.attr-name,.token.string,.token.char,.token.builtin,.token.inserted{color:#690;}.token.operator,.token.entity,.token.url,.language-css .token.string,.style .token.string{color:#9a6e3a;background:hsla(0,0%,100%,.5);}.token.atrule,.token.attr-value,.token.keyword{color:#07a;}.token.function,.token.class-name{color:#DD4A68;}.token.regex,.token.important,.token.variable{color:#e90;}.token.important,.token.bold{font-weight:bold;}.token.italic{font-style:italic;}.token.entity{cursor:help;}}}"], function (_ref2) {
|
33993
33999
|
var color = _ref2.theme.color;
|
33994
34000
|
return color.text_white;
|
33995
34001
|
}, function (_ref3) {
|
@@ -34054,7 +34060,8 @@ var CodeBlock = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_1__.forwardRef)(f
|
|
34054
34060
|
onCopy = props.onCopy,
|
34055
34061
|
_props$variant = props.variant,
|
34056
34062
|
variant = _props$variant === void 0 ? 'black' : _props$variant,
|
34057
|
-
loading = props.loading
|
34063
|
+
loading = props.loading,
|
34064
|
+
wrap = props.wrap;
|
34058
34065
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(CodeBlockWrapper, _extends({
|
34059
34066
|
ref: ref,
|
34060
34067
|
"data-testid": "code_block"
|
@@ -34080,7 +34087,8 @@ var CodeBlock = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_1__.forwardRef)(f
|
|
34080
34087
|
copyButton: true
|
34081
34088
|
}),
|
34082
34089
|
onCopy: onCopy,
|
34083
|
-
loading: loading
|
34090
|
+
loading: loading,
|
34091
|
+
wrap: wrap
|
34084
34092
|
}));
|
34085
34093
|
});
|
34086
34094
|
CodeBlock.displayName = 'CodeBlock';
|
@@ -34095,7 +34103,8 @@ CodeBlock.propTypes = {
|
|
34095
34103
|
lineNumbers: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
|
34096
34104
|
copyButton: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
|
34097
34105
|
loading: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
|
34098
|
-
onCopy: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func)
|
34106
|
+
onCopy: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
|
34107
|
+
wrap: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool)
|
34099
34108
|
};
|
34100
34109
|
var CodeBlockWrapper = styled_components__WEBPACK_IMPORTED_MODULE_2___default().div.withConfig({
|
34101
34110
|
displayName: "CodeBlockWrapper",
|
@@ -34151,9 +34160,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
34151
34160
|
|
34152
34161
|
|
34153
34162
|
/*jslint react:true*/
|
34154
|
-
var _excluded = ["code", "lang", "className", "lineNumbers", "copyButton", "loading", "onCopy", "variant", "copyButtonClassName"];
|
34155
|
-
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var s = Object.getOwnPropertySymbols(e); for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
34156
|
-
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.includes(n)) continue; t[n] = r[n]; } return t; }
|
34157
34163
|
|
34158
34164
|
|
34159
34165
|
|
@@ -34172,9 +34178,9 @@ var CodeSnippet = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)
|
|
34172
34178
|
_ref$variant = _ref.variant,
|
34173
34179
|
variant = _ref$variant === void 0 ? 'black' : _ref$variant,
|
34174
34180
|
copyButtonClassName = _ref.copyButtonClassName,
|
34175
|
-
|
34181
|
+
maxHeight = _ref.maxHeight,
|
34182
|
+
wrap = _ref.wrap;
|
34176
34183
|
var codeRef = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(null);
|
34177
|
-
var maxHeight = rest.maxHeight || rest.max_height;
|
34178
34184
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(CodeBlockBody, {
|
34179
34185
|
ref: ref,
|
34180
34186
|
className: (0,_util__WEBPACK_IMPORTED_MODULE_3__.classNames)(null, {}, className, variant),
|
@@ -34186,7 +34192,8 @@ var CodeSnippet = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)
|
|
34186
34192
|
lang: lang,
|
34187
34193
|
code: code,
|
34188
34194
|
variant: variant,
|
34189
|
-
lineNumbers: lineNumbers
|
34195
|
+
lineNumbers: lineNumbers,
|
34196
|
+
wrap: wrap
|
34190
34197
|
}), !!copyButton && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_copy_button__WEBPACK_IMPORTED_MODULE_5__.CopyButton, {
|
34191
34198
|
className: copyButtonClassName,
|
34192
34199
|
code: code,
|
@@ -34208,12 +34215,13 @@ CodeSnippet.propTypes = {
|
|
34208
34215
|
copyButton: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().bool),
|
34209
34216
|
copyButtonClassName: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().string),
|
34210
34217
|
loading: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().bool),
|
34211
|
-
onCopy: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().func)
|
34218
|
+
onCopy: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().func),
|
34219
|
+
wrap: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().bool)
|
34212
34220
|
};
|
34213
34221
|
var CodeBlockBody = styled_components__WEBPACK_IMPORTED_MODULE_1___default().div.withConfig({
|
34214
34222
|
displayName: "CodeBlockBody",
|
34215
34223
|
componentId: "sc-13u859f-0"
|
34216
|
-
})(["position:relative;
|
34224
|
+
})(["position:relative;overflow-y:auto;min-height:60px;gap:", ";padding-top:", ";padding-right:", ";padding-bottom:", ";padding-left:", ";", " &.black{background-color:", ";}&.white{background-color:", ";}"], function (_ref2) {
|
34217
34225
|
var spacing = _ref2.theme.spacing;
|
34218
34226
|
return spacing['03'];
|
34219
34227
|
}, function (_ref3) {
|
@@ -34900,18 +34908,19 @@ __webpack_require__.r(__webpack_exports__);
|
|
34900
34908
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
34901
34909
|
/* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react-dom */ "react-dom");
|
34902
34910
|
/* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react_dom__WEBPACK_IMPORTED_MODULE_1__);
|
34903
|
-
/* harmony import */ var
|
34911
|
+
/* harmony import */ var react_popper__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! react-popper */ "./node_modules/react-popper/lib/esm/usePopper.js");
|
34904
34912
|
/* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! styled-components */ "styled-components");
|
34905
34913
|
/* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(styled_components__WEBPACK_IMPORTED_MODULE_2__);
|
34906
34914
|
/* harmony import */ var _hooks__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../hooks */ "./src/hooks/index.js");
|
34907
34915
|
/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../constants */ "./src/constants.js");
|
34908
|
-
/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*!
|
34916
|
+
/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../util */ "./src/util/index.js");
|
34917
|
+
/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./util */ "./src/hoc/util.js");
|
34909
34918
|
// LICENSE_CODE ZON
|
34910
34919
|
|
34911
34920
|
|
34912
34921
|
/*jslint react:true*/
|
34913
34922
|
var _excluded = ["popoverProps", "onOpenChange"],
|
34914
|
-
_excluded2 = ["portalTarget"];
|
34923
|
+
_excluded2 = ["portalTarget", "ref"];
|
34915
34924
|
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
34916
34925
|
function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
|
34917
34926
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
@@ -34928,6 +34937,7 @@ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t =
|
|
34928
34937
|
|
34929
34938
|
|
34930
34939
|
|
34940
|
+
|
34931
34941
|
var assign = Object.assign;
|
34932
34942
|
var DEFAULT_CLOSE_DELAY = 200;
|
34933
34943
|
var withPopover = function withPopover(Comp, PopoverComp) {
|
@@ -34938,6 +34948,7 @@ var withPopover = function withPopover(Comp, PopoverComp) {
|
|
34938
34948
|
onOpenChange = props.onOpenChange,
|
34939
34949
|
compProps = _objectWithoutProperties(props, _excluded);
|
34940
34950
|
var portalTarget = popoverProps.portalTarget,
|
34951
|
+
popoverRef = popoverProps.ref,
|
34941
34952
|
restPopoverProps = _objectWithoutProperties(popoverProps, _excluded2);
|
34942
34953
|
var placement = popoverOptions.placement,
|
34943
34954
|
zIndex = popoverOptions.zIndex,
|
@@ -34955,6 +34966,10 @@ var withPopover = function withPopover(Comp, PopoverComp) {
|
|
34955
34966
|
_useState4 = _slicedToArray(_useState3, 2),
|
34956
34967
|
popperElement = _useState4[0],
|
34957
34968
|
setPopperElement = _useState4[1];
|
34969
|
+
var _useState5 = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(null),
|
34970
|
+
_useState6 = _slicedToArray(_useState5, 2),
|
34971
|
+
popoverCompElement = _useState6[0],
|
34972
|
+
setPopoverCompElement = _useState6[1];
|
34958
34973
|
var _useStateWithCallback = useStateWithCallback(false, onOpenChange),
|
34959
34974
|
_useStateWithCallback2 = _slicedToArray(_useStateWithCallback, 2),
|
34960
34975
|
isOpen = _useStateWithCallback2[0],
|
@@ -34978,7 +34993,7 @@ var withPopover = function withPopover(Comp, PopoverComp) {
|
|
34978
34993
|
return !v;
|
34979
34994
|
});
|
34980
34995
|
}, []);
|
34981
|
-
var _usePopper = (0,
|
34996
|
+
var _usePopper = (0,react_popper__WEBPACK_IMPORTED_MODULE_7__.usePopper)(referenceElement, popperElement, {
|
34982
34997
|
placement: placement,
|
34983
34998
|
modifiers: [{
|
34984
34999
|
name: 'offset',
|
@@ -35017,7 +35032,7 @@ var withPopover = function withPopover(Comp, PopoverComp) {
|
|
35017
35032
|
if (interactive) hidePopover();
|
35018
35033
|
(_compProps$onPointerL = compProps.onPointerLeave) === null || _compProps$onPointerL === void 0 || _compProps$onPointerL.call(compProps, evt);
|
35019
35034
|
}, [interactive, hidePopover, compProps.onPointerLeave]);
|
35020
|
-
(0,_hooks__WEBPACK_IMPORTED_MODULE_3__.useOutsideClick)([referenceElement, popperElement], hideAndStopEvt);
|
35035
|
+
(0,_hooks__WEBPACK_IMPORTED_MODULE_3__.useOutsideClick)([referenceElement, popperElement, popoverCompElement], hideAndStopEvt);
|
35021
35036
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement((react__WEBPACK_IMPORTED_MODULE_0___default().Fragment), null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(RefCompContainer, {
|
35022
35037
|
ref: setReferenceElement,
|
35023
35038
|
className: wrapperClassName,
|
@@ -35032,18 +35047,20 @@ var withPopover = function withPopover(Comp, PopoverComp) {
|
|
35032
35047
|
}))), isOpen && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(PopoverContainer, {
|
35033
35048
|
ref: setPopperElement,
|
35034
35049
|
className: popoverClassName,
|
35035
|
-
style: assign({},
|
35050
|
+
style: assign({}, styles.popper, popoverStyle),
|
35036
35051
|
attributes: attributes.popper,
|
35037
35052
|
visible: isOpen,
|
35038
35053
|
portalTarget: portalTarget,
|
35039
35054
|
zIndex: zIndex
|
35040
|
-
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(PopoverComp, _extends({
|
35055
|
+
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(PopoverComp, _extends({
|
35056
|
+
ref: (0,_util__WEBPACK_IMPORTED_MODULE_5__.mergeRefs)(popoverRef, setPopoverCompElement)
|
35057
|
+
}, restPopoverProps, {
|
35041
35058
|
onPointerEnter: showPopover,
|
35042
35059
|
onPointerLeave: hidePopover,
|
35043
35060
|
popover: popoverApi
|
35044
35061
|
}))));
|
35045
35062
|
});
|
35046
|
-
WithPopover.displayName = "WithPopover(".concat((0,
|
35063
|
+
WithPopover.displayName = "WithPopover(".concat((0,_util__WEBPACK_IMPORTED_MODULE_6__.getDisplayName)(Comp), ")");
|
35047
35064
|
return WithPopover;
|
35048
35065
|
};
|
35049
35066
|
var PopoverContainer = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().forwardRef(function (props, ref) {
|
@@ -35069,10 +35086,10 @@ var RefCompContainer = styled_components__WEBPACK_IMPORTED_MODULE_2___default().
|
|
35069
35086
|
componentId: "sc-1hvrlux-0"
|
35070
35087
|
})(["width:fit-content;"]);
|
35071
35088
|
var useStateWithCallback = function useStateWithCallback(initialValue, callback) {
|
35072
|
-
var
|
35073
|
-
|
35074
|
-
value =
|
35075
|
-
setValue =
|
35089
|
+
var _useState7 = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(initialValue),
|
35090
|
+
_useState8 = _slicedToArray(_useState7, 2),
|
35091
|
+
value = _useState8[0],
|
35092
|
+
setValue = _useState8[1];
|
35076
35093
|
var prev = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(value);
|
35077
35094
|
(0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(function () {
|
35078
35095
|
if (value === prev.current) return;
|
@@ -43218,7 +43235,7 @@ var ModalButton = function ModalButton(_ref) {
|
|
43218
43235
|
(_document$activeEleme = document.activeElement) === null || _document$activeEleme === void 0 || _document$activeEleme.blur();
|
43219
43236
|
if (!hotKey) return;
|
43220
43237
|
var handle_key_press = function handle_key_press(e) {
|
43221
|
-
if (e.key.toLowerCase() == hotKey.toLowerCase()) onClick === null || onClick === void 0 || onClick(e);
|
43238
|
+
if (e.key && e.key.toLowerCase() == hotKey.toLowerCase()) onClick === null || onClick === void 0 || onClick(e);
|
43222
43239
|
};
|
43223
43240
|
window.addEventListener('keydown', handle_key_press);
|
43224
43241
|
return function () {
|