@luminati-io/uikit 4.0.0 → 4.0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -34538,7 +34538,7 @@ var defaultIsOptionDisabled = function defaultIsOptionDisabled(opt) {
34538
34538
  return opt.disabled;
34539
34539
  };
34540
34540
  var Dropdown = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().forwardRef(function (props, forwardRef) {
34541
- var _splitProps = (0,_util__WEBPACK_IMPORTED_MODULE_8__.splitProps)(props, 'autoFocus', 'blurInputOnSelect', 'filterOption', 'formatOptionLabel', 'value', 'defaultValue', 'options', 'onChange', 'onFocus', 'onBlur', 'onChangeCapture', 'onInputChange', 'getOptionValue', 'getOptionLabel', 'isOptionSelected', 'isLoading', 'loadOptions', 'defaultOptions', 'cacheOptions', 'onCreateOption', 'formatCreateLabel', 'isValidNewOption', 'getNewOptionData', 'onMenuOpen', 'onMenuClose', 'openMenuOnFocus', 'menuIsOpen'),
34541
+ var _splitProps = (0,_util__WEBPACK_IMPORTED_MODULE_8__.splitProps)(props, 'autoFocus', 'blurInputOnSelect', 'filterOption', 'formatOptionLabel', 'value', 'defaultValue', 'options', 'onChange', 'onFocus', 'onBlur', 'onChangeCapture', 'onInputChange', 'getOptionValue', 'getOptionLabel', 'isOptionSelected', 'isLoading', 'loadOptions', 'defaultOptions', 'cacheOptions', 'onCreateOption', 'formatCreateLabel', 'isValidNewOption', 'getNewOptionData', 'onMenuOpen', 'onMenuClose', 'openMenuOnFocus', 'menuIsOpen', 'noOptionsMessage'),
34542
34542
  _splitProps2 = _slicedToArray(_splitProps, 2),
34543
34543
  selectProps = _splitProps2[0],
34544
34544
  restProps = _splitProps2[1];
@@ -34672,7 +34672,8 @@ Dropdown.propTypes = {
34672
34672
  searchable: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
34673
34673
  openMenuOnFocus: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
34674
34674
  menuIsOpen: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
34675
- closeMenuOnSelect: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool)
34675
+ closeMenuOnSelect: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
34676
+ noOptionsMessage: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().node)
34676
34677
  };
34677
34678
  var getComponent = function getComponent(opt) {
34678
34679
  if (opt.async) return opt.creatable ? react_select_async_creatable__WEBPACK_IMPORTED_MODULE_4__["default"] : react_select_async__WEBPACK_IMPORTED_MODULE_3__["default"];
@@ -39550,11 +39551,17 @@ __webpack_require__.r(__webpack_exports__);
39550
39551
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
39551
39552
  /* harmony import */ var _layout__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../layout */ "./src/layout/index.js");
39552
39553
  /* 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");
39554
+ /* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../util */ "./src/util/index.js");
39555
+ /* harmony import */ var _progress_bar__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./progress_bar */ "./src/progress/progress_bar.js");
39554
39556
  // LICENSE_CODE ZON
39555
39557
 
39556
39558
 
39557
39559
  /*jslint react:true*/
39560
+ var _excluded = ["progress", "leftText", "rightText"];
39561
+ 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); }
39562
+ 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; }
39563
+ 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; }
39564
+
39558
39565
 
39559
39566
 
39560
39567
 
@@ -39563,22 +39570,23 @@ __webpack_require__.r(__webpack_exports__);
39563
39570
  var Progress = function Progress(_ref) {
39564
39571
  var progress = _ref.progress,
39565
39572
  leftText = _ref.leftText,
39566
- rightText = _ref.rightText;
39573
+ rightText = _ref.rightText,
39574
+ rest = _objectWithoutProperties(_ref, _excluded);
39567
39575
  var hasText = !!leftText || !!rightText;
39568
- if (!hasText) return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_progress_bar__WEBPACK_IMPORTED_MODULE_4__.ProgressBar, {
39576
+ if (!hasText) return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_progress_bar__WEBPACK_IMPORTED_MODULE_5__.ProgressBar, _extends({}, rest, {
39569
39577
  progress: progress
39570
- });
39571
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_layout__WEBPACK_IMPORTED_MODULE_2__.Flex, {
39578
+ }));
39579
+ 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
39580
  flex_direction: "column",
39573
39581
  gap: "03"
39574
- }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_layout__WEBPACK_IMPORTED_MODULE_2__.Flex, {
39582
+ }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_layout__WEBPACK_IMPORTED_MODULE_2__.Flex, {
39575
39583
  align_items: "flex-end",
39576
39584
  justify_content: "space-between"
39577
39585
  }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_typography__WEBPACK_IMPORTED_MODULE_3__.Label, {
39578
39586
  color: "gray_11_50"
39579
39587
  }, leftText), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_typography__WEBPACK_IMPORTED_MODULE_3__.Label, {
39580
39588
  color: "gray_11_50"
39581
- }, rightText)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_progress_bar__WEBPACK_IMPORTED_MODULE_4__.ProgressBar, {
39589
+ }, rightText)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_progress_bar__WEBPACK_IMPORTED_MODULE_5__.ProgressBar, {
39582
39590
  progress: progress
39583
39591
  }));
39584
39592
  };
@@ -39610,20 +39618,26 @@ __webpack_require__.r(__webpack_exports__);
39610
39618
  /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! prop-types */ "prop-types");
39611
39619
  /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_3__);
39612
39620
  /* harmony import */ var _theme__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../theme */ "./src/theme.js");
39621
+ /* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../util */ "./src/util/index.js");
39613
39622
  // LICENSE_CODE ZON
39614
39623
 
39615
39624
 
39616
39625
  /*jslint react:true*/
39617
39626
 
39627
+ var _excluded = ["progress"];
39628
+ 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; }
39629
+ 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; }
39630
+
39618
39631
 
39619
39632
 
39620
39633
 
39621
39634
 
39622
39635
  var ProgressBar = function ProgressBar(_ref) {
39623
- var progress = _ref.progress;
39636
+ var progress = _ref.progress,
39637
+ rest = _objectWithoutProperties(_ref, _excluded);
39624
39638
  var percentage = lodash_clamp__WEBPACK_IMPORTED_MODULE_0___default()(progress, 0, 100);
39625
39639
  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, {
39640
+ 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
39641
  $width: percentageFmt
39628
39642
  }));
39629
39643
  };
@@ -44843,7 +44857,7 @@ var Tooltip = function Tooltip(_ref) {
44843
44857
  closeTimmer.current = setTimeout(function () {
44844
44858
  return setVisible(false);
44845
44859
  }, interactive ? CLOSE_DELAY : 0);
44846
- }, []);
44860
+ }, [interactive]);
44847
44861
  (0,react__WEBPACK_IMPORTED_MODULE_1__.useEffect)(function () {
44848
44862
  return function () {
44849
44863
  clearTimeout(closeTimmer.current);