@luminati-io/uikit 5.0.2 → 5.0.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -33653,6 +33653,7 @@ __webpack_require__.r(__webpack_exports__);
33653
33653
 
33654
33654
 
33655
33655
  /*jslint react:true*/
33656
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
33656
33657
 
33657
33658
  var _excluded = ["size", "format", "placeholder", "options", "formatOptionLabel"];
33658
33659
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
@@ -33662,6 +33663,11 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
33662
33663
  function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
33663
33664
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
33664
33665
  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); }
33666
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
33667
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
33668
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
33669
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
33670
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
33665
33671
  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; }
33666
33672
  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; }
33667
33673
 
@@ -33688,8 +33694,13 @@ var CompareTo = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().forwar
33688
33694
  rest = _objectWithoutProperties(_ref, _excluded);
33689
33695
  var _formatOptionLabel = (0,react__WEBPACK_IMPORTED_MODULE_2__.useCallback)(function (opt) {
33690
33696
  if (opt && lodash_isObject__WEBPACK_IMPORTED_MODULE_0___default()(opt)) {
33691
- var text = opt.value != 'custom' ? opt.label : (0,date_fns_format__WEBPACK_IMPORTED_MODULE_11__["default"])(opt.from, fmt);
33692
- return "".concat(placeholder, " ").concat(text);
33697
+ var str;
33698
+ try {
33699
+ str = opt.value != 'custom' ? opt.label : (0,date_fns_format__WEBPACK_IMPORTED_MODULE_11__["default"])(opt.from, fmt);
33700
+ } catch (e) {
33701
+ str = '-';
33702
+ }
33703
+ return "".concat(placeholder, " ").concat(str);
33693
33704
  }
33694
33705
  return '';
33695
33706
  }, [fmt, placeholder]);
@@ -33706,6 +33717,16 @@ var CompareTo = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().forwar
33706
33717
  return null;
33707
33718
  }
33708
33719
  },
33720
+ styles: {
33721
+ menu: function menu(baseStyles) {
33722
+ return _objectSpread(_objectSpread({}, baseStyles), {}, {
33723
+ padding: '8px',
33724
+ margin: '0',
33725
+ minWidth: '0',
33726
+ width: null
33727
+ });
33728
+ }
33729
+ },
33709
33730
  clearable: true
33710
33731
  }));
33711
33732
  });
@@ -33756,7 +33777,7 @@ var CompareToCalendar = function CompareToCalendar(props) {
33756
33777
  setCustomDate = _useState4[1];
33757
33778
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_layout__WEBPACK_IMPORTED_MODULE_5__.Flex, {
33758
33779
  flex_direction: "column",
33759
- padding: "'04",
33780
+ padding: "04",
33760
33781
  gap: "04"
33761
33782
  }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_layout__WEBPACK_IMPORTED_MODULE_5__.Flex, {
33762
33783
  align_items: "center",