@luminati-io/uikit 5.0.2 → 5.0.4-beta.0

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",
@@ -40793,6 +40814,7 @@ var Provider = function Provider(_ref3) {
40793
40814
  hoverActionsDirection: hoverActionsDirection,
40794
40815
  virtualized: virtualized
40795
40816
  });
40817
+ console.log(table);
40796
40818
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(TableContext.Provider, {
40797
40819
  value: value
40798
40820
  }, children);
@@ -41587,7 +41609,7 @@ var FooterCellContent = styled_components__WEBPACK_IMPORTED_MODULE_1___default()
41587
41609
  return props.$type == 'number' ? 'text-align: right;' : null;
41588
41610
  }, function (_ref2) {
41589
41611
  var color = _ref2.theme.color;
41590
- return color.white;
41612
+ return color.bg_primary;
41591
41613
  }, function (props) {
41592
41614
  if (props.$rowDensity == 'diamond_hand') {
41593
41615
  return (0,styled_components__WEBPACK_IMPORTED_MODULE_1__.css)(["padding-top:11px;padding-bottom:11px;"]);
@@ -41793,7 +41815,7 @@ var HeaderCellContent = styled_components__WEBPACK_IMPORTED_MODULE_2___default()
41793
41815
  componentId: "sc-8zg5t0-1"
41794
41816
  })(["background-color:", ";&:hover{background-color:", ";}border-right:", ";"], function (_ref2) {
41795
41817
  var color = _ref2.theme.color;
41796
- return color.white;
41818
+ return color.bg_primary;
41797
41819
  }, function (_ref3) {
41798
41820
  var color = _ref3.theme.color;
41799
41821
  return color.gray_2;
@@ -43781,9 +43803,7 @@ var InnerTable = function InnerTable(props) {
43781
43803
  if (footerRef.current) footerRef.current.scrollLeft = evt.target.scrollLeft;
43782
43804
  if (headerRef.current) headerRef.current.scrollLeft = evt.target.scrollLeft;
43783
43805
  } : undefined;
43784
- var headStyle = virtualized ? {
43785
- overflowX: 'visible'
43786
- } : scrollable ? {
43806
+ var headStyle = scrollable ? {
43787
43807
  overflow: 'hidden'
43788
43808
  } : undefined;
43789
43809
  var bodyStyle = (0,react__WEBPACK_IMPORTED_MODULE_2__.useMemo)(function () {
@@ -44066,7 +44086,7 @@ var TableCellContent = styled_components__WEBPACK_IMPORTED_MODULE_1___default().
44066
44086
  componentId: "sc-1gdt4qg-0"
44067
44087
  })(["background-color:", ";border-right:", ";"], function (_ref) {
44068
44088
  var color = _ref.theme.color;
44069
- return color.white;
44089
+ return color.bg_primary;
44070
44090
  }, function (_ref2) {
44071
44091
  var $isLastPinned = _ref2.$isLastPinned,
44072
44092
  color = _ref2.theme.color;
@@ -44238,8 +44258,7 @@ var VirtualizedBodyComp = function VirtualizedBodyComp(props) {
44238
44258
  renderRow = props.renderRow,
44239
44259
  droppableProps = props.droppableProps;
44240
44260
  var _useTableContext = (0,_context__WEBPACK_IMPORTED_MODULE_3__.useTableContext)(),
44241
- maxHeight = _useTableContext.scrollHeight,
44242
- totalColumnsWidth = _useTableContext.totalColumnsWidth;
44261
+ maxHeight = _useTableContext.scrollHeight;
44243
44262
  var _useState = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(),
44244
44263
  _useState2 = _slicedToArray(_useState, 2),
44245
44264
  listRef = _useState2[0],
@@ -44271,7 +44290,7 @@ var VirtualizedBodyComp = function VirtualizedBodyComp(props) {
44271
44290
  var width = _ref2.width,
44272
44291
  height = _ref2.height;
44273
44292
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(StyledList, {
44274
- width: totalColumnsWidth + 20 /* hack, use scrollBarWidth instead */,
44293
+ width: width,
44275
44294
  height: height,
44276
44295
  overscanRowCount: 7,
44277
44296
  estimatedRowSize: 30,