@luminati-io/uikit 3.0.8-beta.0 → 3.0.8-beta.1
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.
@@ -22264,6 +22264,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
22264
22264
|
/* harmony import */ var _layout__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../layout */ "./src/layout/index.js");
|
22265
22265
|
/* harmony import */ var _code__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./code */ "./src/code/code.js");
|
22266
22266
|
/* harmony import */ var _copy_button__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./copy_button */ "./src/code/copy_button.js");
|
22267
|
+
/* harmony import */ var _skeleton__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./skeleton */ "./src/code/skeleton.js");
|
22267
22268
|
// LICENSE_CODE ZON
|
22268
22269
|
|
22269
22270
|
|
@@ -22275,6 +22276,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
22275
22276
|
|
22276
22277
|
|
22277
22278
|
|
22279
|
+
|
22278
22280
|
var CodeSnippet = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)(function (props, ref) {
|
22279
22281
|
var code = props.code,
|
22280
22282
|
lang = props.lang,
|
@@ -22282,14 +22284,15 @@ var CodeSnippet = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)
|
|
22282
22284
|
className = props.className,
|
22283
22285
|
themeProp = props.theme,
|
22284
22286
|
lineNumbers = props.lineNumbers,
|
22285
|
-
copyButton = props.copyButton
|
22287
|
+
copyButton = props.copyButton,
|
22288
|
+
loading = props.loading;
|
22286
22289
|
var codeRef = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(null);
|
22287
22290
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(CodeBlockBody, {
|
22288
22291
|
ref: ref,
|
22289
22292
|
className: className,
|
22290
22293
|
max_height: max_height,
|
22291
22294
|
$theme: themeProp
|
22292
|
-
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_code__WEBPACK_IMPORTED_MODULE_5__["default"], {
|
22295
|
+
}, !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_5__["default"], {
|
22293
22296
|
ref: codeRef,
|
22294
22297
|
lang: lang,
|
22295
22298
|
text: code,
|
@@ -22299,6 +22302,8 @@ var CodeSnippet = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)
|
|
22299
22302
|
code: code,
|
22300
22303
|
theme: themeProp,
|
22301
22304
|
codeRef: codeRef
|
22305
|
+
})), !!loading && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_skeleton__WEBPACK_IMPORTED_MODULE_7__["default"], {
|
22306
|
+
theme: themeProp
|
22302
22307
|
}));
|
22303
22308
|
});
|
22304
22309
|
CodeSnippet.displayName = 'CodeSnippet';
|
@@ -22311,7 +22316,8 @@ CodeSnippet.propTypes = {
|
|
22311
22316
|
max_height: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().string),
|
22312
22317
|
theme: prop_types__WEBPACK_IMPORTED_MODULE_2___default().oneOf(['black', 'white']),
|
22313
22318
|
lineNumbers: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().bool),
|
22314
|
-
copyButton: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().bool)
|
22319
|
+
copyButton: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().bool),
|
22320
|
+
loading: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().bool)
|
22315
22321
|
};
|
22316
22322
|
var CodeBlockBody = styled_components__WEBPACK_IMPORTED_MODULE_1___default()(_layout__WEBPACK_IMPORTED_MODULE_4__.Flex).attrs({
|
22317
22323
|
align_items: 'flex-start',
|
@@ -22502,6 +22508,78 @@ __webpack_require__.r(__webpack_exports__);
|
|
22502
22508
|
|
22503
22509
|
|
22504
22510
|
|
22511
|
+
/***/ }),
|
22512
|
+
|
22513
|
+
/***/ "./src/code/skeleton.js":
|
22514
|
+
/*!******************************!*\
|
22515
|
+
!*** ./src/code/skeleton.js ***!
|
22516
|
+
\******************************/
|
22517
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
22518
|
+
|
22519
|
+
"use strict";
|
22520
|
+
__webpack_require__.r(__webpack_exports__);
|
22521
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
22522
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
22523
|
+
/* harmony export */ });
|
22524
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
|
22525
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
22526
|
+
/* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! styled-components */ "styled-components");
|
22527
|
+
/* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(styled_components__WEBPACK_IMPORTED_MODULE_1__);
|
22528
|
+
// LICENSE_CODE ZON
|
22529
|
+
|
22530
|
+
|
22531
|
+
/*jslint react:true*/
|
22532
|
+
|
22533
|
+
|
22534
|
+
var Skeleton = function Skeleton(props) {
|
22535
|
+
var themeProp = props.theme;
|
22536
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(StyledSkeleton, {
|
22537
|
+
$theme: themeProp
|
22538
|
+
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(SkeletonBox, {
|
22539
|
+
$theme: themeProp,
|
22540
|
+
$width: "53px"
|
22541
|
+
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(SkeletonBox, {
|
22542
|
+
$theme: themeProp,
|
22543
|
+
$width: "223px"
|
22544
|
+
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(SkeletonBox, {
|
22545
|
+
$theme: themeProp,
|
22546
|
+
$width: "93px"
|
22547
|
+
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(SkeletonBox, {
|
22548
|
+
$theme: themeProp,
|
22549
|
+
$width: "93px"
|
22550
|
+
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(SkeletonBox, {
|
22551
|
+
$theme: themeProp,
|
22552
|
+
$width: "157px"
|
22553
|
+
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(SkeletonBox, {
|
22554
|
+
$theme: themeProp,
|
22555
|
+
$width: "53px"
|
22556
|
+
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(SkeletonBox, {
|
22557
|
+
$theme: themeProp,
|
22558
|
+
$width: "90px"
|
22559
|
+
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(SkeletonBox, {
|
22560
|
+
$theme: themeProp,
|
22561
|
+
$width: "187px"
|
22562
|
+
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(SkeletonBox, {
|
22563
|
+
$theme: themeProp,
|
22564
|
+
$width: "188px"
|
22565
|
+
}));
|
22566
|
+
};
|
22567
|
+
var StyledSkeleton = styled_components__WEBPACK_IMPORTED_MODULE_1___default().div.withConfig({
|
22568
|
+
displayName: "StyledSkeleton",
|
22569
|
+
componentId: "sc-1v7xkdy-0"
|
22570
|
+
})(["flex:1;display:flex;flex-wrap:wrap;column-gap:16px;row-gap:12px;}"]);
|
22571
|
+
var SkeletonBox = styled_components__WEBPACK_IMPORTED_MODULE_1___default().span.withConfig({
|
22572
|
+
displayName: "SkeletonBox",
|
22573
|
+
componentId: "sc-1v7xkdy-1"
|
22574
|
+
})(["display:inline-block;height:10px;width:", ";max-width:100%;background:", ";position:relative;overflow:hidden;&::after{position:absolute;top:0;right:0;bottom:0;left:0;transform:translateX(-100%);border-radius:2px;background:", ";animation:shimmer 5s infinite;content:'';}@keyframes shimmer{100%{transform:translateX(100%);}}"], function (props) {
|
22575
|
+
return props.$width;
|
22576
|
+
}, function (props) {
|
22577
|
+
return props.$theme == 'white' ? '#B4B9BD' : '#333335';
|
22578
|
+
}, function (props) {
|
22579
|
+
return props.$theme == 'white' ? 'linear-gradient(90deg, #B4B9BD 3.16%, #B5BCC6 50.83%, #889096 99.97%,' + ' #B4B9BD 99.97%)' : 'linear-gradient(90deg, #333335 3.16%, #525252 57.39%, #333335 99.97%)';
|
22580
|
+
});
|
22581
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Skeleton);
|
22582
|
+
|
22505
22583
|
/***/ }),
|
22506
22584
|
|
22507
22585
|
/***/ "./src/combo_button/combo_button.js":
|