@luminati-io/uikit 4.0.0 → 4.0.1
Sign up to get free protection for your applications and to get access to all the features.
@@ -39550,11 +39550,17 @@ __webpack_require__.r(__webpack_exports__);
|
|
39550
39550
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
|
39551
39551
|
/* harmony import */ var _layout__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../layout */ "./src/layout/index.js");
|
39552
39552
|
/* harmony import */ var _typography__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../typography */ "./src/typography/index.js");
|
39553
|
-
/* harmony import */ var
|
39553
|
+
/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../util */ "./src/util/index.js");
|
39554
|
+
/* harmony import */ var _progress_bar__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./progress_bar */ "./src/progress/progress_bar.js");
|
39554
39555
|
// LICENSE_CODE ZON
|
39555
39556
|
|
39556
39557
|
|
39557
39558
|
/*jslint react:true*/
|
39559
|
+
var _excluded = ["progress", "leftText", "rightText"];
|
39560
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
39561
|
+
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
39562
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } } return target; }
|
39563
|
+
|
39558
39564
|
|
39559
39565
|
|
39560
39566
|
|
@@ -39563,22 +39569,23 @@ __webpack_require__.r(__webpack_exports__);
|
|
39563
39569
|
var Progress = function Progress(_ref) {
|
39564
39570
|
var progress = _ref.progress,
|
39565
39571
|
leftText = _ref.leftText,
|
39566
|
-
rightText = _ref.rightText
|
39572
|
+
rightText = _ref.rightText,
|
39573
|
+
rest = _objectWithoutProperties(_ref, _excluded);
|
39567
39574
|
var hasText = !!leftText || !!rightText;
|
39568
|
-
if (!hasText) return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(
|
39575
|
+
if (!hasText) return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_progress_bar__WEBPACK_IMPORTED_MODULE_5__.ProgressBar, _extends({}, rest, {
|
39569
39576
|
progress: progress
|
39570
|
-
});
|
39571
|
-
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_layout__WEBPACK_IMPORTED_MODULE_2__.Flex, {
|
39577
|
+
}));
|
39578
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_layout__WEBPACK_IMPORTED_MODULE_2__.Flex, _extends({}, (0,_util__WEBPACK_IMPORTED_MODULE_4__.getCommonProps)(rest), {
|
39572
39579
|
flex_direction: "column",
|
39573
39580
|
gap: "03"
|
39574
|
-
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_layout__WEBPACK_IMPORTED_MODULE_2__.Flex, {
|
39581
|
+
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_layout__WEBPACK_IMPORTED_MODULE_2__.Flex, {
|
39575
39582
|
align_items: "flex-end",
|
39576
39583
|
justify_content: "space-between"
|
39577
39584
|
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_typography__WEBPACK_IMPORTED_MODULE_3__.Label, {
|
39578
39585
|
color: "gray_11_50"
|
39579
39586
|
}, leftText), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_typography__WEBPACK_IMPORTED_MODULE_3__.Label, {
|
39580
39587
|
color: "gray_11_50"
|
39581
|
-
}, rightText)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(
|
39588
|
+
}, rightText)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_progress_bar__WEBPACK_IMPORTED_MODULE_5__.ProgressBar, {
|
39582
39589
|
progress: progress
|
39583
39590
|
}));
|
39584
39591
|
};
|
@@ -39610,20 +39617,26 @@ __webpack_require__.r(__webpack_exports__);
|
|
39610
39617
|
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! prop-types */ "prop-types");
|
39611
39618
|
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_3__);
|
39612
39619
|
/* harmony import */ var _theme__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../theme */ "./src/theme.js");
|
39620
|
+
/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../util */ "./src/util/index.js");
|
39613
39621
|
// LICENSE_CODE ZON
|
39614
39622
|
|
39615
39623
|
|
39616
39624
|
/*jslint react:true*/
|
39617
39625
|
|
39626
|
+
var _excluded = ["progress"];
|
39627
|
+
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
39628
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } } return target; }
|
39629
|
+
|
39618
39630
|
|
39619
39631
|
|
39620
39632
|
|
39621
39633
|
|
39622
39634
|
var ProgressBar = function ProgressBar(_ref) {
|
39623
|
-
var progress = _ref.progress
|
39635
|
+
var progress = _ref.progress,
|
39636
|
+
rest = _objectWithoutProperties(_ref, _excluded);
|
39624
39637
|
var percentage = lodash_clamp__WEBPACK_IMPORTED_MODULE_0___default()(progress, 0, 100);
|
39625
39638
|
var percentageFmt = percentage.toFixed(2);
|
39626
|
-
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(ProgressBarWrapper,
|
39639
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(ProgressBarWrapper, (0,_util__WEBPACK_IMPORTED_MODULE_5__.getCommonProps)(rest), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(ProgressBarFill, {
|
39627
39640
|
$width: percentageFmt
|
39628
39641
|
}));
|
39629
39642
|
};
|
@@ -44843,7 +44856,7 @@ var Tooltip = function Tooltip(_ref) {
|
|
44843
44856
|
closeTimmer.current = setTimeout(function () {
|
44844
44857
|
return setVisible(false);
|
44845
44858
|
}, interactive ? CLOSE_DELAY : 0);
|
44846
|
-
}, []);
|
44859
|
+
}, [interactive]);
|
44847
44860
|
(0,react__WEBPACK_IMPORTED_MODULE_1__.useEffect)(function () {
|
44848
44861
|
return function () {
|
44849
44862
|
clearTimeout(closeTimmer.current);
|