@luminati-io/uikit 3.3.0 → 3.3.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -33133,14 +33133,14 @@ __webpack_require__.r(__webpack_exports__);
33133
33133
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
33134
33134
  /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "prop-types");
33135
33135
  /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
33136
- /* harmony import */ var _visx_curve__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @visx/curve */ "./node_modules/d3-shape/src/curve/cardinal.js");
33137
33136
  /* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../util */ "./src/util/index.js");
33138
33137
  /* harmony import */ var _chart_container__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./chart_container */ "./src/chart/chart_container.js");
33139
- /* harmony import */ var _get_components__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./get_components */ "./src/chart/get_components.js");
33140
- /* harmony import */ var _glyph__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./glyph */ "./src/chart/glyph.js");
33141
- /* harmony import */ var _split_props__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./split_props */ "./src/chart/split_props.js");
33142
- /* harmony import */ var _tooltip__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./tooltip */ "./src/chart/tooltip.js");
33143
- /* harmony import */ var _use_chart_theme__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./use_chart_theme */ "./src/chart/use_chart_theme.js");
33138
+ /* harmony import */ var _get_curve__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./get_curve */ "./src/chart/get_curve.js");
33139
+ /* harmony import */ var _get_components__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./get_components */ "./src/chart/get_components.js");
33140
+ /* harmony import */ var _glyph__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./glyph */ "./src/chart/glyph.js");
33141
+ /* harmony import */ var _split_props__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./split_props */ "./src/chart/split_props.js");
33142
+ /* harmony import */ var _tooltip__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./tooltip */ "./src/chart/tooltip.js");
33143
+ /* harmony import */ var _use_chart_theme__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./use_chart_theme */ "./src/chart/use_chart_theme.js");
33144
33144
  // LICENSE_CODE ZON
33145
33145
 
33146
33146
 
@@ -33196,22 +33196,25 @@ var AreaChart = function AreaChart(props) {
33196
33196
  stacked = props.stacked,
33197
33197
  showTooltip = props.showTooltip,
33198
33198
  _props$tooltipContent = props.tooltipContent,
33199
- tooltipContent = _props$tooltipContent === void 0 ? _tooltip__WEBPACK_IMPORTED_MODULE_7__.DefaultTooltip : _props$tooltipContent,
33199
+ tooltipContent = _props$tooltipContent === void 0 ? _tooltip__WEBPACK_IMPORTED_MODULE_8__.DefaultTooltip : _props$tooltipContent,
33200
+ _props$curveType = props.curveType,
33201
+ curveType = _props$curveType === void 0 ? '' : _props$curveType,
33200
33202
  onPointerMove = props.onPointerMove,
33201
33203
  onPointerOut = props.onPointerOut,
33202
33204
  onPointerUp = props.onPointerUp,
33203
33205
  onPointerDown = props.onPointerDown,
33204
33206
  pointerEventsDataKey = props.pointerEventsDataKey,
33205
33207
  children = props.children;
33206
- var _getAnimatedOrUnanima = (0,_get_components__WEBPACK_IMPORTED_MODULE_4__.getAnimatedOrUnanimatedComponents)(animated),
33208
+ var _getAnimatedOrUnanima = (0,_get_components__WEBPACK_IMPORTED_MODULE_5__.getAnimatedOrUnanimatedComponents)(animated),
33207
33209
  XYChart = _getAnimatedOrUnanima.XYChart,
33208
33210
  Grid = _getAnimatedOrUnanima.Grid,
33209
33211
  Axis = _getAnimatedOrUnanima.Axis,
33210
33212
  AreaSeries = _getAnimatedOrUnanima.AreaSeries,
33211
33213
  AreaStack = _getAnimatedOrUnanima.AreaStack,
33212
33214
  Tooltip = _getAnimatedOrUnanima.Tooltip;
33213
- var chartTheme = (0,_use_chart_theme__WEBPACK_IMPORTED_MODULE_8__.useChartTheme)(palette);
33215
+ var chartTheme = (0,_use_chart_theme__WEBPACK_IMPORTED_MODULE_9__.useChartTheme)(palette);
33214
33216
  if (!data || !data.length) return null;
33217
+ var curve = (0,_get_curve__WEBPACK_IMPORTED_MODULE_4__.getCurve)(curveType);
33215
33218
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(XYChart, {
33216
33219
  theme: chartTheme,
33217
33220
  xScale: config.x,
@@ -33232,7 +33235,7 @@ var AreaChart = function AreaChart(props) {
33232
33235
  animationTrajectory: animationTrajectory,
33233
33236
  numTicks: numTicks
33234
33237
  }), !!stacked && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(AreaStack, {
33235
- curve: _visx_curve__WEBPACK_IMPORTED_MODULE_9__["default"]
33238
+ curve: curve
33236
33239
  }, data.map(function (lineData) {
33237
33240
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(AreaSeries, _extends({
33238
33241
  key: lineData.name,
@@ -33244,7 +33247,7 @@ var AreaChart = function AreaChart(props) {
33244
33247
  key: lineData.name,
33245
33248
  dataKey: lineData.name,
33246
33249
  data: lineData.datapoints,
33247
- curve: _visx_curve__WEBPACK_IMPORTED_MODULE_9__["default"]
33250
+ curve: curve
33248
33251
  }, lineData.accessors, lineData.areaProps));
33249
33252
  }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(Axis, {
33250
33253
  key: "x-axis-".concat(animationTrajectory),
@@ -33271,7 +33274,7 @@ var AreaChart = function AreaChart(props) {
33271
33274
  applyPositionStyle: true,
33272
33275
  renderTooltip: function renderTooltip(params) {
33273
33276
  return (0,_util__WEBPACK_IMPORTED_MODULE_2__.flexRender)(tooltipContent, _objectSpread({
33274
- Glyph: _glyph__WEBPACK_IMPORTED_MODULE_5__.Glyph,
33277
+ Glyph: _glyph__WEBPACK_IMPORTED_MODULE_6__.Glyph,
33275
33278
  data: data,
33276
33279
  formatTick: xAxis.formatTick,
33277
33280
  formatValue: formatValue,
@@ -33282,7 +33285,7 @@ var AreaChart = function AreaChart(props) {
33282
33285
  };
33283
33286
  AreaChart.displayName = 'AreaChart';
33284
33287
  var Area = function Area(props) {
33285
- var _splitProps = (0,_split_props__WEBPACK_IMPORTED_MODULE_6__.splitProps)(props, 'animated', 'showGridRows', 'showGridColumns', 'numTicks', 'xAxis', 'yAxis', 'formatValue', 'margin', 'stacked', 'showTooltip', 'tooltipContent', 'onPointerMove', 'onPointerOut', 'onPointerUp', 'onPointerDown', 'pointerEventsDataKey', 'children'),
33288
+ var _splitProps = (0,_split_props__WEBPACK_IMPORTED_MODULE_7__.splitProps)(props, 'animated', 'showGridRows', 'showGridColumns', 'numTicks', 'xAxis', 'yAxis', 'formatValue', 'margin', 'stacked', 'showTooltip', 'tooltipContent', 'curveType', 'onPointerMove', 'onPointerOut', 'onPointerUp', 'onPointerDown', 'pointerEventsDataKey', 'children'),
33286
33289
  _splitProps2 = _slicedToArray(_splitProps, 2),
33287
33290
  chartProps = _splitProps2[0],
33288
33291
  restProps = _splitProps2[1];
@@ -33335,6 +33338,7 @@ Area.propTypes = {
33335
33338
  stacked: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().bool),
33336
33339
  showTooltip: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().bool),
33337
33340
  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)]),
33341
+ curveType: prop_types__WEBPACK_IMPORTED_MODULE_1___default().oneOf(['basis', 'basisClosed', 'basisOpen', 'step', 'stepAfter', 'stepBefore', 'bundle', 'linear', 'linearClosed', 'cardinal', 'cardinalClosed', 'cardinalOpen', 'catmullRom', 'catmullRomClosed', 'catmullRomOpen', 'monotoneX', 'monotoneY', 'natural']),
33338
33342
  onPointerMove: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().func),
33339
33343
  onPointerOut: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().func),
33340
33344
  onPointerUp: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().func),
@@ -46008,10 +46012,14 @@ var getIconProps = function getIconProps(comp, opt) {
46008
46012
  var getLinkProps = function getLinkProps(opt) {
46009
46013
  var as = opt.as,
46010
46014
  href = opt.href,
46015
+ target = opt.target,
46016
+ rel = opt.rel,
46011
46017
  newTab = opt.newTab;
46012
46018
  var p = {
46013
46019
  as: as,
46014
- href: href
46020
+ href: href,
46021
+ target: target,
46022
+ rel: rel
46015
46023
  };
46016
46024
  if (newTab) p = _objectSpread(_objectSpread({}, p), {}, {
46017
46025
  target: '_blank',