@luminati-io/uikit 3.9.2-beta.1 → 4.0.0
Sign up to get free protection for your applications and to get access to all the features.
@@ -32755,7 +32755,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
32755
32755
|
|
32756
32756
|
|
32757
32757
|
/*jslint react:true*/
|
32758
|
-
var _excluded = ["variant", "disabled", "active", "icon", "tooltip", "tooltipPlacement", "size", "noBackColor"];
|
32758
|
+
var _excluded = ["variant", "disabled", "active", "icon", "tooltip", "tooltipPlacement", "size", "noBackColor", "noBorder"];
|
32759
32759
|
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); }
|
32760
32760
|
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; }
|
32761
32761
|
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; }
|
@@ -32777,6 +32777,7 @@ var IconButton = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().forwa
|
|
32777
32777
|
_ref$size = _ref.size,
|
32778
32778
|
size = _ref$size === void 0 ? 'md' : _ref$size,
|
32779
32779
|
noBackColor = _ref.noBackColor,
|
32780
|
+
noBorder = _ref.noBorder,
|
32780
32781
|
rest = _objectWithoutProperties(_ref, _excluded);
|
32781
32782
|
size = calcSize(variant, size);
|
32782
32783
|
noBackColor = variant == 'ghost' || noBackColor;
|
@@ -32791,6 +32792,7 @@ var IconButton = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().forwa
|
|
32791
32792
|
}, rest, {
|
32792
32793
|
disabled: disabled,
|
32793
32794
|
$size: size,
|
32795
|
+
$noBorder: noBorder,
|
32794
32796
|
$noBackColor: noBackColor,
|
32795
32797
|
$active: active
|
32796
32798
|
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(StyledSvg, {
|
@@ -32809,7 +32811,8 @@ IconButton.propTypes = {
|
|
32809
32811
|
tooltip: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().node),
|
32810
32812
|
tooltipPlacement: prop_types__WEBPACK_IMPORTED_MODULE_2___default().oneOf(_util__WEBPACK_IMPORTED_MODULE_4__.tooltipPlacement),
|
32811
32813
|
size: prop_types__WEBPACK_IMPORTED_MODULE_2___default().oneOf(['xs', 'sm', 'md', 'lg']),
|
32812
|
-
noBackColor: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().bool)
|
32814
|
+
noBackColor: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().bool),
|
32815
|
+
noBorder: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().bool)
|
32813
32816
|
};
|
32814
32817
|
var StyledIconButton = styled_components__WEBPACK_IMPORTED_MODULE_1___default().button.withConfig({
|
32815
32818
|
displayName: "StyledIconButton",
|
@@ -32838,7 +32841,7 @@ var StyledIconButton = styled_components__WEBPACK_IMPORTED_MODULE_1___default().
|
|
32838
32841
|
hoverBackColor = 'transparent';
|
32839
32842
|
activeBackColor = 'transparent';
|
32840
32843
|
}
|
32841
|
-
if (props.$size == 'xs') {
|
32844
|
+
if (props.$size == 'xs' || props.$noBorder) {
|
32842
32845
|
hoverBorder = '0 none';
|
32843
32846
|
activeBorder = '0 none';
|
32844
32847
|
disabledBorder = '0 none';
|
@@ -34075,15 +34078,17 @@ var addItem = function addItem(matrix, i, j, item) {
|
|
34075
34078
|
var noop = function noop() {
|
34076
34079
|
return 0;
|
34077
34080
|
};
|
34081
|
+
var defaultValue = [[]];
|
34082
|
+
var emptyArray = [];
|
34078
34083
|
var DragDrop = function DragDrop(_ref) {
|
34079
34084
|
var _ref$value = _ref.value,
|
34080
|
-
value = _ref$value === void 0 ?
|
34085
|
+
value = _ref$value === void 0 ? defaultValue : _ref$value,
|
34081
34086
|
_ref$onChange = _ref.onChange,
|
34082
34087
|
onChange = _ref$onChange === void 0 ? noop : _ref$onChange,
|
34083
34088
|
_ref$items = _ref.items,
|
34084
|
-
items = _ref$items === void 0 ?
|
34089
|
+
items = _ref$items === void 0 ? emptyArray : _ref$items,
|
34085
34090
|
_ref$sections = _ref.sections,
|
34086
|
-
sections = _ref$sections === void 0 ?
|
34091
|
+
sections = _ref$sections === void 0 ? emptyArray : _ref$sections,
|
34087
34092
|
_ref$direction = _ref.direction,
|
34088
34093
|
direction = _ref$direction === void 0 ? 'row' : _ref$direction,
|
34089
34094
|
CustomDrop = _ref.CustomDrop,
|
@@ -35677,8 +35682,7 @@ var UploadItemState = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().
|
|
35677
35682
|
size = props.size,
|
35678
35683
|
antiVirusScanText = props.antiVirusScanText;
|
35679
35684
|
if (status == _constants__WEBPACK_IMPORTED_MODULE_4__.FILE_STATUS.UPLOADING) return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_progress__WEBPACK_IMPORTED_MODULE_3__.ProgressBar, {
|
35680
|
-
|
35681
|
-
capacity: 100
|
35685
|
+
progress: progress
|
35682
35686
|
});
|
35683
35687
|
if (status == _constants__WEBPACK_IMPORTED_MODULE_4__.FILE_STATUS.SUCCESS) return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_typography__WEBPACK_IMPORTED_MODULE_2__.Label, {
|
35684
35688
|
variant: "xs",
|
@@ -39515,8 +39519,8 @@ var CompContainer = styled_components__WEBPACK_IMPORTED_MODULE_1___default()(_la
|
|
39515
39519
|
"use strict";
|
39516
39520
|
__webpack_require__.r(__webpack_exports__);
|
39517
39521
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
39518
|
-
/* harmony export */ Progress: () => (/* reexport safe */ _progess__WEBPACK_IMPORTED_MODULE_0__
|
39519
|
-
/* harmony export */ ProgressBar: () => (/* reexport safe */ _progress_bar__WEBPACK_IMPORTED_MODULE_1__
|
39522
|
+
/* harmony export */ Progress: () => (/* reexport safe */ _progess__WEBPACK_IMPORTED_MODULE_0__.Progress),
|
39523
|
+
/* harmony export */ ProgressBar: () => (/* reexport safe */ _progress_bar__WEBPACK_IMPORTED_MODULE_1__.ProgressBar)
|
39520
39524
|
/* harmony export */ });
|
39521
39525
|
/* harmony import */ var _progess__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./progess */ "./src/progress/progess.js");
|
39522
39526
|
/* harmony import */ var _progress_bar__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./progress_bar */ "./src/progress/progress_bar.js");
|
@@ -39527,7 +39531,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
39527
39531
|
|
39528
39532
|
|
39529
39533
|
|
39530
|
-
|
39531
39534
|
/***/ }),
|
39532
39535
|
|
39533
39536
|
/***/ "./src/progress/progess.js":
|
@@ -39539,16 +39542,15 @@ __webpack_require__.r(__webpack_exports__);
|
|
39539
39542
|
"use strict";
|
39540
39543
|
__webpack_require__.r(__webpack_exports__);
|
39541
39544
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
39542
|
-
/* harmony export */
|
39545
|
+
/* harmony export */ Progress: () => (/* binding */ Progress)
|
39543
39546
|
/* harmony export */ });
|
39544
39547
|
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! prop-types */ "prop-types");
|
39545
39548
|
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_0__);
|
39546
39549
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
|
39547
39550
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
|
39548
39551
|
/* harmony import */ var _layout__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../layout */ "./src/layout/index.js");
|
39549
|
-
/* harmony import */ var
|
39550
|
-
/* harmony import */ var
|
39551
|
-
/* harmony import */ var _progress_bar__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./progress_bar */ "./src/progress/progress_bar.js");
|
39552
|
+
/* harmony import */ var _typography__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../typography */ "./src/typography/index.js");
|
39553
|
+
/* harmony import */ var _progress_bar__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./progress_bar */ "./src/progress/progress_bar.js");
|
39552
39554
|
// LICENSE_CODE ZON
|
39553
39555
|
|
39554
39556
|
|
@@ -39558,50 +39560,33 @@ __webpack_require__.r(__webpack_exports__);
|
|
39558
39560
|
|
39559
39561
|
|
39560
39562
|
|
39561
|
-
|
39562
|
-
var
|
39563
|
-
|
39564
|
-
|
39565
|
-
|
39566
|
-
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(
|
39567
|
-
|
39568
|
-
}
|
39569
|
-
color: "gray_11_50"
|
39570
|
-
}, amount), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_typography__WEBPACK_IMPORTED_MODULE_4__.Label, {
|
39571
|
-
color: "gray_11"
|
39572
|
-
}, "/", capacity));
|
39573
|
-
};
|
39574
|
-
ProgressFraction.propTypes = {
|
39575
|
-
amount: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number).isRequired,
|
39576
|
-
capacity: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number).isRequired
|
39577
|
-
// unit: PT.string,
|
39578
|
-
};
|
39579
|
-
var Progress = function Progress(props) {
|
39580
|
-
var amount = props.amount,
|
39581
|
-
capacity = props.capacity,
|
39582
|
-
label = props.label;
|
39563
|
+
var Progress = function Progress(_ref) {
|
39564
|
+
var progress = _ref.progress,
|
39565
|
+
leftText = _ref.leftText,
|
39566
|
+
rightText = _ref.rightText;
|
39567
|
+
var hasText = !!leftText || !!rightText;
|
39568
|
+
if (!hasText) return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_progress_bar__WEBPACK_IMPORTED_MODULE_4__.ProgressBar, {
|
39569
|
+
progress: progress
|
39570
|
+
});
|
39583
39571
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_layout__WEBPACK_IMPORTED_MODULE_2__.Flex, {
|
39584
39572
|
flex_direction: "column",
|
39585
|
-
gap:
|
39573
|
+
gap: "03"
|
39586
39574
|
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_layout__WEBPACK_IMPORTED_MODULE_2__.Flex, {
|
39587
39575
|
align_items: "flex-end",
|
39588
39576
|
justify_content: "space-between"
|
39589
|
-
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(
|
39577
|
+
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_typography__WEBPACK_IMPORTED_MODULE_3__.Label, {
|
39578
|
+
color: "gray_11_50"
|
39579
|
+
}, leftText), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_typography__WEBPACK_IMPORTED_MODULE_3__.Label, {
|
39590
39580
|
color: "gray_11_50"
|
39591
|
-
},
|
39592
|
-
|
39593
|
-
capacity: capacity
|
39594
|
-
})), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_progress_bar__WEBPACK_IMPORTED_MODULE_5__["default"], {
|
39595
|
-
amount: amount,
|
39596
|
-
capacity: capacity
|
39581
|
+
}, rightText)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_progress_bar__WEBPACK_IMPORTED_MODULE_4__.ProgressBar, {
|
39582
|
+
progress: progress
|
39597
39583
|
}));
|
39598
39584
|
};
|
39599
39585
|
Progress.propTypes = {
|
39600
|
-
|
39601
|
-
|
39602
|
-
|
39586
|
+
progress: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number).isRequired,
|
39587
|
+
leftText: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().node),
|
39588
|
+
rightText: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().node)
|
39603
39589
|
};
|
39604
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Progress);
|
39605
39590
|
|
39606
39591
|
/***/ }),
|
39607
39592
|
|
@@ -39614,7 +39599,7 @@ Progress.propTypes = {
|
|
39614
39599
|
"use strict";
|
39615
39600
|
__webpack_require__.r(__webpack_exports__);
|
39616
39601
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
39617
|
-
/* harmony export */
|
39602
|
+
/* harmony export */ ProgressBar: () => (/* binding */ ProgressBar)
|
39618
39603
|
/* harmony export */ });
|
39619
39604
|
/* harmony import */ var lodash_clamp__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/clamp */ "./node_modules/lodash/clamp.js");
|
39620
39605
|
/* harmony import */ var lodash_clamp__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_clamp__WEBPACK_IMPORTED_MODULE_0__);
|
@@ -39634,6 +39619,17 @@ __webpack_require__.r(__webpack_exports__);
|
|
39634
39619
|
|
39635
39620
|
|
39636
39621
|
|
39622
|
+
var ProgressBar = function ProgressBar(_ref) {
|
39623
|
+
var progress = _ref.progress;
|
39624
|
+
var percentage = lodash_clamp__WEBPACK_IMPORTED_MODULE_0___default()(progress, 0, 100);
|
39625
|
+
var percentageFmt = percentage.toFixed(2);
|
39626
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(ProgressBarWrapper, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(ProgressBarFill, {
|
39627
|
+
$width: percentageFmt
|
39628
|
+
}));
|
39629
|
+
};
|
39630
|
+
ProgressBar.propTypes = {
|
39631
|
+
progress: (prop_types__WEBPACK_IMPORTED_MODULE_3___default().number).isRequired
|
39632
|
+
};
|
39637
39633
|
var ProgressBarWrapper = styled_components__WEBPACK_IMPORTED_MODULE_2___default().div.withConfig({
|
39638
39634
|
displayName: "ProgressBarWrapper",
|
39639
39635
|
componentId: "sc-k8bgfd-0"
|
@@ -39642,22 +39638,8 @@ var ProgressBarFill = styled_components__WEBPACK_IMPORTED_MODULE_2___default().d
|
|
39642
39638
|
displayName: "ProgressBarFill",
|
39643
39639
|
componentId: "sc-k8bgfd-1"
|
39644
39640
|
})(["background-color:", ";border-radius:30px;width:", "%;height:100%;"], _theme__WEBPACK_IMPORTED_MODULE_4__["default"].color.blue_11, function (props) {
|
39645
|
-
return props
|
39641
|
+
return props.$width;
|
39646
39642
|
});
|
39647
|
-
var ProgressBar = function ProgressBar(props) {
|
39648
|
-
var amount = props.amount,
|
39649
|
-
capacity = props.capacity;
|
39650
|
-
var percentage = lodash_clamp__WEBPACK_IMPORTED_MODULE_0___default()(amount / capacity * 100, 0, 100);
|
39651
|
-
var percentageFmt = percentage.toFixed(2);
|
39652
|
-
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(ProgressBarWrapper, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(ProgressBarFill, {
|
39653
|
-
width: percentageFmt
|
39654
|
-
}));
|
39655
|
-
};
|
39656
|
-
ProgressBar.propTypes = {
|
39657
|
-
amount: (prop_types__WEBPACK_IMPORTED_MODULE_3___default().number).isRequired,
|
39658
|
-
capacity: (prop_types__WEBPACK_IMPORTED_MODULE_3___default().number).isRequired
|
39659
|
-
};
|
39660
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (ProgressBar);
|
39661
39643
|
|
39662
39644
|
/***/ }),
|
39663
39645
|
|