@luminati-io/uikit 1.9.2 → 1.9.4-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/uikit.umd.js CHANGED
@@ -23798,14 +23798,17 @@ var getDefaultMonth = function getDefaultMonth(value) {
23798
23798
  if (value instanceof Date) return value;
23799
23799
  if (value && _typeof(value) == 'object') return value.from || value.to;
23800
23800
  };
23801
+ var isValidDateValue = function isValidDateValue(value) {
23802
+ return !Number.isNaN(new Date(value).getTime());
23803
+ };
23801
23804
  var getDate = function getDate(value) {
23802
- return value ? new Date(value) : undefined;
23805
+ return isValidDateValue(value) ? new Date(value) : undefined;
23803
23806
  };
23804
23807
  var getRange = function getRange(value) {
23805
23808
  if (!value || _typeof(value) != 'object') return undefined;
23806
23809
  return {
23807
- from: value.from ? new Date(value.from) : undefined,
23808
- to: value.to ? new Date(value.to) : undefined
23810
+ from: isValidDateValue(value.from) ? new Date(value.from) : undefined,
23811
+ to: isValidDateValue(value.to) ? new Date(value.to) : undefined
23809
23812
  };
23810
23813
  };
23811
23814
  var useValue = function useValue(props) {
@@ -26906,7 +26909,7 @@ var ItemsWrapper = styled_components__WEBPACK_IMPORTED_MODULE_2___default().div.
26906
26909
  componentId: "sc-1uptv2h-1"
26907
26910
  })(["width:100%;display:flex;flex-direction:column;gap:2px;box-sizing:border-box;", ""], function (props) {
26908
26911
  if (props.maxMenuHeight > 0) {
26909
- return (0,styled_components__WEBPACK_IMPORTED_MODULE_2__.css)(["max-height:", ";overflow-y:auto;scrollbar-color:", " ", ";scrollbar-width:thin;&::-webkit-scrollbar{width:4px;height:4px;}&::-webkit-scrollbar-track{background-color:", ";}&::-webkit-scrollbar-thumb{background-color:", ";border-radius:2px;}"], (0,_utils__WEBPACK_IMPORTED_MODULE_10__.toPixel)(props.maxMenuHeight), _theme__WEBPACK_IMPORTED_MODULE_7__["default"].color.white, _theme__WEBPACK_IMPORTED_MODULE_7__["default"].color.gray_6, _theme__WEBPACK_IMPORTED_MODULE_7__["default"].color.white, _theme__WEBPACK_IMPORTED_MODULE_7__["default"].color.gray_6);
26912
+ return (0,styled_components__WEBPACK_IMPORTED_MODULE_2__.css)(["max-height:", ";overflow-y:auto;", ""], (0,_utils__WEBPACK_IMPORTED_MODULE_10__.toPixel)(props.maxMenuHeight), _theme__WEBPACK_IMPORTED_MODULE_7__["default"].scrollbars.thin);
26910
26913
  }
26911
26914
  });
26912
26915
  var CustomizeButtonPopover = function CustomizeButtonPopover(props) {
@@ -28644,7 +28647,7 @@ Table.propTypes = {
28644
28647
  var TableWrapper = styled_components__WEBPACK_IMPORTED_MODULE_3___default().div.withConfig({
28645
28648
  displayName: "TableWrapper",
28646
28649
  componentId: "sc-ebeoik-0"
28647
- })(["width:100%;border:1px solid ", ";border-radius:4px;overflow-x:auto;scrollbar-color:", " ", ";scrollbar-width:thin;&::-webkit-scrollbar{width:4px;height:4px;}&::-webkit-scrollbar-track{background-color:", ";}&::-webkit-scrollbar-thumb{background-color:", ";border-radius:2px;}"], _theme__WEBPACK_IMPORTED_MODULE_5__["default"].color.gray_3, _theme__WEBPACK_IMPORTED_MODULE_5__["default"].color.white, _theme__WEBPACK_IMPORTED_MODULE_5__["default"].color.gray_6, _theme__WEBPACK_IMPORTED_MODULE_5__["default"].color.white, _theme__WEBPACK_IMPORTED_MODULE_5__["default"].color.gray_6);
28650
+ })(["width:100%;border:1px solid ", ";border-radius:4px;overflow-x:auto;", ""], _theme__WEBPACK_IMPORTED_MODULE_5__["default"].color.gray_3, _theme__WEBPACK_IMPORTED_MODULE_5__["default"].scrollbars.thin);
28648
28651
  TableWrapper.displayName = 'TableWrapper';
28649
28652
  var StyledTable = styled_components__WEBPACK_IMPORTED_MODULE_3___default().div.withConfig({
28650
28653
  displayName: "StyledTable",
@@ -29089,10 +29092,13 @@ __webpack_require__.r(__webpack_exports__);
29089
29092
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
29090
29093
  /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
29091
29094
  /* harmony export */ });
29095
+ /* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! styled-components */ "styled-components");
29096
+ /* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(styled_components__WEBPACK_IMPORTED_MODULE_0__);
29092
29097
  // LICENSE_CODE ZON
29093
29098
 
29094
29099
 
29095
29100
  /*jslint react:true*/
29101
+
29096
29102
  var theme = {
29097
29103
  color: {
29098
29104
  blue_1: '#FBFDFF',
@@ -29208,6 +29214,9 @@ var theme = {
29208
29214
  sm: '0px 0px 2px rgba(0, 0, 0, 0.04),' + '0px 4px 24px rgba(0, 0, 0, 0.04)',
29209
29215
  md: '0px 0px 2px rgba(0, 0, 0, 0.08),' + '0px 8px 24px rgba(0, 0, 0, 0.08)',
29210
29216
  lg: '0px 0px 2px rgba(0, 0, 0, 0.12),' + '0px 0px 96px rgba(0, 0, 0, 0.16)'
29217
+ },
29218
+ scrollbars: {
29219
+ thin: (0,styled_components__WEBPACK_IMPORTED_MODULE_0__.css)(["scrollbar-color:#FFFFFF #DFE3E6;scrollbar-width:thin;&::-webkit-scrollbar{width:4px;height:4px;}&::-webkit-scrollbar-track{background-color:#FFFFFF;}&::-webkit-scrollbar-thumb{background-color:#DFE3E6;border-radius:2px;}"])
29211
29220
  }
29212
29221
  };
29213
29222
  /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (theme);