@luminati-io/uikit 1.9.17 → 1.9.18

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
@@ -7540,6 +7540,53 @@ function withBoundingRects(BaseComponent) {
7540
7540
  }((react__WEBPACK_IMPORTED_MODULE_0___default().PureComponent)), _class.displayName = "withBoundingRects(" + (BaseComponent.displayName || '') + ")", _class;
7541
7541
  }
7542
7542
 
7543
+ /***/ }),
7544
+
7545
+ /***/ "./node_modules/@visx/curve/esm/index.js":
7546
+ /*!***********************************************!*\
7547
+ !*** ./node_modules/@visx/curve/esm/index.js ***!
7548
+ \***********************************************/
7549
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
7550
+
7551
+ "use strict";
7552
+ __webpack_require__.r(__webpack_exports__);
7553
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
7554
+ /* harmony export */ "curveBasis": () => (/* reexport safe */ d3_shape__WEBPACK_IMPORTED_MODULE_0__["default"]),
7555
+ /* harmony export */ "curveBasisClosed": () => (/* reexport safe */ d3_shape__WEBPACK_IMPORTED_MODULE_1__["default"]),
7556
+ /* harmony export */ "curveBasisOpen": () => (/* reexport safe */ d3_shape__WEBPACK_IMPORTED_MODULE_2__["default"]),
7557
+ /* harmony export */ "curveBundle": () => (/* reexport safe */ d3_shape__WEBPACK_IMPORTED_MODULE_4__["default"]),
7558
+ /* harmony export */ "curveCardinal": () => (/* reexport safe */ d3_shape__WEBPACK_IMPORTED_MODULE_7__["default"]),
7559
+ /* harmony export */ "curveCardinalClosed": () => (/* reexport safe */ d3_shape__WEBPACK_IMPORTED_MODULE_8__["default"]),
7560
+ /* harmony export */ "curveCardinalOpen": () => (/* reexport safe */ d3_shape__WEBPACK_IMPORTED_MODULE_9__["default"]),
7561
+ /* harmony export */ "curveCatmullRom": () => (/* reexport safe */ d3_shape__WEBPACK_IMPORTED_MODULE_10__["default"]),
7562
+ /* harmony export */ "curveCatmullRomClosed": () => (/* reexport safe */ d3_shape__WEBPACK_IMPORTED_MODULE_11__["default"]),
7563
+ /* harmony export */ "curveCatmullRomOpen": () => (/* reexport safe */ d3_shape__WEBPACK_IMPORTED_MODULE_12__["default"]),
7564
+ /* harmony export */ "curveLinear": () => (/* reexport safe */ d3_shape__WEBPACK_IMPORTED_MODULE_5__["default"]),
7565
+ /* harmony export */ "curveLinearClosed": () => (/* reexport safe */ d3_shape__WEBPACK_IMPORTED_MODULE_6__["default"]),
7566
+ /* harmony export */ "curveMonotoneX": () => (/* reexport safe */ d3_shape__WEBPACK_IMPORTED_MODULE_13__.monotoneX),
7567
+ /* harmony export */ "curveMonotoneY": () => (/* reexport safe */ d3_shape__WEBPACK_IMPORTED_MODULE_13__.monotoneY),
7568
+ /* harmony export */ "curveNatural": () => (/* reexport safe */ d3_shape__WEBPACK_IMPORTED_MODULE_14__["default"]),
7569
+ /* harmony export */ "curveStep": () => (/* reexport safe */ d3_shape__WEBPACK_IMPORTED_MODULE_3__["default"]),
7570
+ /* harmony export */ "curveStepAfter": () => (/* reexport safe */ d3_shape__WEBPACK_IMPORTED_MODULE_3__.stepAfter),
7571
+ /* harmony export */ "curveStepBefore": () => (/* reexport safe */ d3_shape__WEBPACK_IMPORTED_MODULE_3__.stepBefore)
7572
+ /* harmony export */ });
7573
+ /* harmony import */ var d3_shape__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3-shape */ "./node_modules/d3-shape/src/curve/basis.js");
7574
+ /* harmony import */ var d3_shape__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! d3-shape */ "./node_modules/d3-shape/src/curve/basisClosed.js");
7575
+ /* harmony import */ var d3_shape__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! d3-shape */ "./node_modules/d3-shape/src/curve/basisOpen.js");
7576
+ /* harmony import */ var d3_shape__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! d3-shape */ "./node_modules/d3-shape/src/curve/step.js");
7577
+ /* harmony import */ var d3_shape__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! d3-shape */ "./node_modules/d3-shape/src/curve/bundle.js");
7578
+ /* harmony import */ var d3_shape__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! d3-shape */ "./node_modules/d3-shape/src/curve/linear.js");
7579
+ /* harmony import */ var d3_shape__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! d3-shape */ "./node_modules/d3-shape/src/curve/linearClosed.js");
7580
+ /* harmony import */ var d3_shape__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! d3-shape */ "./node_modules/d3-shape/src/curve/cardinal.js");
7581
+ /* harmony import */ var d3_shape__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! d3-shape */ "./node_modules/d3-shape/src/curve/cardinalClosed.js");
7582
+ /* harmony import */ var d3_shape__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! d3-shape */ "./node_modules/d3-shape/src/curve/cardinalOpen.js");
7583
+ /* harmony import */ var d3_shape__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! d3-shape */ "./node_modules/d3-shape/src/curve/catmullRom.js");
7584
+ /* harmony import */ var d3_shape__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! d3-shape */ "./node_modules/d3-shape/src/curve/catmullRomClosed.js");
7585
+ /* harmony import */ var d3_shape__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! d3-shape */ "./node_modules/d3-shape/src/curve/catmullRomOpen.js");
7586
+ /* harmony import */ var d3_shape__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! d3-shape */ "./node_modules/d3-shape/src/curve/monotone.js");
7587
+ /* harmony import */ var d3_shape__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! d3-shape */ "./node_modules/d3-shape/src/curve/natural.js");
7588
+
7589
+
7543
7590
  /***/ }),
7544
7591
 
7545
7592
  /***/ "./node_modules/@visx/event/esm/getXAndYFromEvent.js":
@@ -21547,7 +21594,8 @@ __webpack_require__.r(__webpack_exports__);
21547
21594
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
21548
21595
  /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "prop-types");
21549
21596
  /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
21550
- /* harmony import */ var _visx_curve__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @visx/curve */ "./node_modules/d3-shape/src/curve/cardinal.js");
21597
+ /* harmony import */ var _visx_curve__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @visx/curve */ "./node_modules/@visx/curve/esm/index.js");
21598
+ /* harmony import */ var _visx_curve__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @visx/curve */ "./node_modules/d3-shape/src/curve/cardinal.js");
21551
21599
  /* harmony import */ var _chart_container__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./chart_container */ "./src/chart/chart_container.js");
21552
21600
  /* harmony import */ var _get_components__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./get_components */ "./src/chart/get_components.js");
21553
21601
  /* harmony import */ var _tooltip__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./tooltip */ "./src/chart/tooltip.js");
@@ -21559,7 +21607,7 @@ __webpack_require__.r(__webpack_exports__);
21559
21607
 
21560
21608
  /*jslint react:true*/
21561
21609
  function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
21562
- var _excluded = ["animated", "showGridRows", "showGridColumns", "numTicks", "xAxis", "yAxis", "formatValue", "margin", "showTooltip", "tooltipContent"];
21610
+ var _excluded = ["animated", "showGridRows", "showGridColumns", "numTicks", "xAxis", "yAxis", "formatValue", "margin", "showTooltip", "tooltipContent", "curveShape"];
21563
21611
  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; }
21564
21612
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
21565
21613
  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
@@ -21583,7 +21631,9 @@ var config = {
21583
21631
  type: 'band'
21584
21632
  },
21585
21633
  y: {
21586
- type: 'linear'
21634
+ type: 'linear',
21635
+ zero: false,
21636
+ nice: true
21587
21637
  }
21588
21638
  };
21589
21639
  var LineChart = function LineChart(props) {
@@ -21604,7 +21654,9 @@ var LineChart = function LineChart(props) {
21604
21654
  margin = props.margin,
21605
21655
  showTooltip = props.showTooltip,
21606
21656
  _props$tooltipContent = props.tooltipContent,
21607
- tooltipContent = _props$tooltipContent === void 0 ? _tooltip__WEBPACK_IMPORTED_MODULE_4__["default"] : _props$tooltipContent;
21657
+ tooltipContent = _props$tooltipContent === void 0 ? _tooltip__WEBPACK_IMPORTED_MODULE_4__["default"] : _props$tooltipContent,
21658
+ _props$curveShape = props.curveShape,
21659
+ curveShape = _props$curveShape === void 0 ? '' : _props$curveShape;
21608
21660
  var _getAnimatedOrUnanima = (0,_get_components__WEBPACK_IMPORTED_MODULE_3__.getAnimatedOrUnanimatedComponents)(animated),
21609
21661
  XYChart = _getAnimatedOrUnanima.XYChart,
21610
21662
  Grid = _getAnimatedOrUnanima.Grid,
@@ -21613,6 +21665,7 @@ var LineChart = function LineChart(props) {
21613
21665
  Tooltip = _getAnimatedOrUnanima.Tooltip;
21614
21666
  var chartTheme = (0,_use_chart_theme__WEBPACK_IMPORTED_MODULE_5__["default"])(palette);
21615
21667
  if (!data || !data.length) return null;
21668
+ var curve = _visx_curve__WEBPACK_IMPORTED_MODULE_8__[curveShape] || _visx_curve__WEBPACK_IMPORTED_MODULE_9__["default"];
21616
21669
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(XYChart, {
21617
21670
  theme: chartTheme,
21618
21671
  xScale: config.x,
@@ -21648,7 +21701,7 @@ var LineChart = function LineChart(props) {
21648
21701
  key: lineData.name,
21649
21702
  dataKey: lineData.name,
21650
21703
  data: lineData.datapoints,
21651
- curve: _visx_curve__WEBPACK_IMPORTED_MODULE_8__["default"]
21704
+ curve: curve
21652
21705
  }, lineData.accessors, lineData.lineProps));
21653
21706
  }), !!showTooltip && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(Tooltip, {
21654
21707
  showVerticalCrosshair: true,
@@ -21680,6 +21733,7 @@ var Line = function Line(props) {
21680
21733
  margin = props.margin,
21681
21734
  showTooltip = props.showTooltip,
21682
21735
  tooltipContent = props.tooltipContent,
21736
+ curveShape = props.curveShape,
21683
21737
  rest = _objectWithoutProperties(props, _excluded);
21684
21738
  var chartProps = {
21685
21739
  animated: animated,
@@ -21691,7 +21745,8 @@ var Line = function Line(props) {
21691
21745
  formatValue: formatValue,
21692
21746
  margin: margin,
21693
21747
  showTooltip: showTooltip,
21694
- tooltipContent: tooltipContent
21748
+ tooltipContent: tooltipContent,
21749
+ curveShape: curveShape
21695
21750
  };
21696
21751
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_chart_container__WEBPACK_IMPORTED_MODULE_2__["default"], _extends({}, rest, {
21697
21752
  Chart: LineChart,
@@ -21740,7 +21795,8 @@ Line.propTypes = {
21740
21795
  left: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().number)
21741
21796
  }),
21742
21797
  showTooltip: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().bool),
21743
- tooltipContent: prop_types__WEBPACK_IMPORTED_MODULE_1___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_1___default().element), (prop_types__WEBPACK_IMPORTED_MODULE_1___default().func)])
21798
+ tooltipContent: prop_types__WEBPACK_IMPORTED_MODULE_1___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_1___default().element), (prop_types__WEBPACK_IMPORTED_MODULE_1___default().func)]),
21799
+ curveShape: prop_types__WEBPACK_IMPORTED_MODULE_1___default().oneOf(['curveBasis', 'curveBasisClosed', 'curveBasisOpen', 'curveStep', 'curveStepAfter', 'curveStepBefore', 'curveBundle', 'curveLinear', 'curveLinearClosed', 'curveCardinal', 'curveCardinalClosed', 'curveCardinalOpen', 'curveCatmullRom', 'curveCatmullRomClosed', 'curveCatmullRomOpen', 'curveMonotoneX', 'curveMonotoneY', 'curveNatural'])
21744
21800
  };
21745
21801
  /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Line);
21746
21802
 
@@ -22829,14 +22885,12 @@ __webpack_require__.r(__webpack_exports__);
22829
22885
  /* harmony export */ "useEventListener": () => (/* reexport safe */ _use_event_listener__WEBPACK_IMPORTED_MODULE_0__["default"]),
22830
22886
  /* harmony export */ "useLabelId": () => (/* reexport safe */ _use_label_id__WEBPACK_IMPORTED_MODULE_1__["default"]),
22831
22887
  /* harmony export */ "useOutsideClick": () => (/* reexport safe */ _use_outside_click__WEBPACK_IMPORTED_MODULE_2__["default"]),
22832
- /* harmony export */ "usePortalTarget": () => (/* reexport safe */ _use_portal_target__WEBPACK_IMPORTED_MODULE_3__["default"]),
22833
- /* harmony export */ "useScroll": () => (/* reexport safe */ _use_scroll__WEBPACK_IMPORTED_MODULE_4__["default"])
22888
+ /* harmony export */ "useScroll": () => (/* reexport safe */ _use_scroll__WEBPACK_IMPORTED_MODULE_3__["default"])
22834
22889
  /* harmony export */ });
22835
22890
  /* harmony import */ var _use_event_listener__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./use_event_listener */ "./src/hooks/use_event_listener.js");
22836
22891
  /* harmony import */ var _use_label_id__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./use_label_id */ "./src/hooks/use_label_id.js");
22837
22892
  /* harmony import */ var _use_outside_click__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./use_outside_click */ "./src/hooks/use_outside_click.js");
22838
- /* harmony import */ var _use_portal_target__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./use_portal_target */ "./src/hooks/use_portal_target.js");
22839
- /* harmony import */ var _use_scroll__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./use_scroll */ "./src/hooks/use_scroll.js");
22893
+ /* harmony import */ var _use_scroll__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./use_scroll */ "./src/hooks/use_scroll.js");
22840
22894
  // LICENSE_CODE ZON
22841
22895
 
22842
22896
 
@@ -22847,7 +22901,6 @@ __webpack_require__.r(__webpack_exports__);
22847
22901
 
22848
22902
 
22849
22903
 
22850
-
22851
22904
  /***/ }),
22852
22905
 
22853
22906
  /***/ "./src/hooks/use_event_listener.js":
@@ -22983,40 +23036,6 @@ var useOutsideClick = function useOutsideClick(elements, memoizedOnClick) {
22983
23036
 
22984
23037
  /***/ }),
22985
23038
 
22986
- /***/ "./src/hooks/use_portal_target.js":
22987
- /*!****************************************!*\
22988
- !*** ./src/hooks/use_portal_target.js ***!
22989
- \****************************************/
22990
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
22991
-
22992
- "use strict";
22993
- __webpack_require__.r(__webpack_exports__);
22994
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
22995
- /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
22996
- /* harmony export */ });
22997
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
22998
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
22999
- // LICENSE_CODE ZON
23000
-
23001
-
23002
- /*jslint react:true*/
23003
-
23004
- var portalRoot;
23005
- var usePortalTarget = function usePortalTarget(opt) {
23006
- var portalTarget = opt.portalTarget;
23007
- (0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(function () {
23008
- if (!portalTarget && !portalRoot) {
23009
- portalRoot = document.createElement('div');
23010
- portalRoot.setAttribute('id', 'uikit_portal_root');
23011
- document.body.appendChild(portalRoot);
23012
- }
23013
- }, [portalTarget]);
23014
- return portalTarget || portalRoot;
23015
- };
23016
- /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (usePortalTarget);
23017
-
23018
- /***/ }),
23019
-
23020
23039
  /***/ "./src/hooks/use_scroll.js":
23021
23040
  /*!*********************************!*\
23022
23041
  !*** ./src/hooks/use_scroll.js ***!