victory-chart 36.5.0 → 36.5.1

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.
@@ -11,10 +11,10 @@
11
11
  return /******/ (() => { // webpackBootstrap
12
12
  /******/ var __webpack_modules__ = ({
13
13
 
14
- /***/ "./helper-methods.js":
15
- /*!***************************!*\
16
- !*** ./helper-methods.js ***!
17
- \***************************/
14
+ /***/ "./helper-methods.tsx":
15
+ /*!****************************!*\
16
+ !*** ./helper-methods.tsx ***!
17
+ \****************************/
18
18
  /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
19
19
 
20
20
  "use strict";
@@ -259,16 +259,16 @@ var createStringMap = function (props, childComponents, allStrings) {
259
259
 
260
260
  /***/ }),
261
261
 
262
- /***/ "./victory-chart.js":
263
- /*!**************************!*\
264
- !*** ./victory-chart.js ***!
265
- \**************************/
262
+ /***/ "./victory-chart.tsx":
263
+ /*!***************************!*\
264
+ !*** ./victory-chart.tsx ***!
265
+ \***************************/
266
266
  /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
267
267
 
268
268
  "use strict";
269
269
  __webpack_require__.r(__webpack_exports__);
270
270
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
271
- /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
271
+ /* harmony export */ "VictoryChart": () => (/* binding */ VictoryChart)
272
272
  /* harmony export */ });
273
273
  /* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/isEmpty */ "../../../node_modules/lodash/isEmpty.js");
274
274
  /* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0__);
@@ -293,7 +293,7 @@ __webpack_require__.r(__webpack_exports__);
293
293
  /* harmony import */ var victory_shared_events__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! victory-shared-events */ "../../victory-shared-events/es/victory-shared-events.js");
294
294
  /* harmony import */ var victory_axis__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! victory-axis */ "../../victory-axis/es/victory-axis.js");
295
295
  /* harmony import */ var victory_polar_axis__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! victory-polar-axis */ "../../victory-polar-axis/es/victory-polar-axis.js");
296
- /* harmony import */ var _helper_methods__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./helper-methods */ "./helper-methods.js");
296
+ /* harmony import */ var _helper_methods__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./helper-methods */ "./helper-methods.tsx");
297
297
  /* harmony import */ var react_fast_compare__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react-fast-compare */ "../../../node_modules/react-fast-compare/index.js");
298
298
  /* harmony import */ var react_fast_compare__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react_fast_compare__WEBPACK_IMPORTED_MODULE_4__);
299
299
 
@@ -320,7 +320,7 @@ var fallbackProps = {
320
320
  padding: 50
321
321
  };
322
322
 
323
- var VictoryChart = function (initialProps) {
323
+ var VictoryChartImpl = function (initialProps) {
324
324
  var role = "chart";
325
325
 
326
326
  var _Hooks$useAnimationSt = victory_core__WEBPACK_IMPORTED_MODULE_5__.useAnimationState(),
@@ -353,7 +353,6 @@ var VictoryChart = function (initialProps) {
353
353
  scale = calculatedProps.scale,
354
354
  style = calculatedProps.style,
355
355
  origin = calculatedProps.origin,
356
- radius = calculatedProps.radius,
357
356
  horizontal = calculatedProps.horizontal;
358
357
  var newChildren = react__WEBPACK_IMPORTED_MODULE_3___default().useMemo(function () {
359
358
  var children = (0,_helper_methods__WEBPACK_IMPORTED_MODULE_7__.getChildren)(props, childComponents, calculatedProps);
@@ -383,7 +382,6 @@ var VictoryChart = function (initialProps) {
383
382
  name: name,
384
383
  origin: polar ? origin : undefined,
385
384
  polar: polar,
386
- radius: radius,
387
385
  theme: theme,
388
386
  title: title,
389
387
  scale: scale,
@@ -393,7 +391,7 @@ var VictoryChart = function (initialProps) {
393
391
  }
394
392
 
395
393
  return {};
396
- }, [desc, domain, height, horizontal, name, origin, polar, radius, scale, standalone, style, title, theme, width]);
394
+ }, [desc, domain, height, horizontal, name, origin, polar, scale, standalone, style, title, theme, width]);
397
395
  var container = react__WEBPACK_IMPORTED_MODULE_3___default().useMemo(function () {
398
396
  if (standalone) {
399
397
  var defaultContainerProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({}, containerComponent.props, containerProps, victory_core__WEBPACK_IMPORTED_MODULE_8__.getSafeUserProps(initialProps));
@@ -428,7 +426,7 @@ var VictoryChart = function (initialProps) {
428
426
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().cloneElement(container, container.props, newChildren);
429
427
  };
430
428
 
431
- VictoryChart.propTypes = _objectSpread(_objectSpread({}, victory_core__WEBPACK_IMPORTED_MODULE_12__.baseProps), {}, {
429
+ VictoryChartImpl.propTypes = _objectSpread(_objectSpread({}, victory_core__WEBPACK_IMPORTED_MODULE_12__.CommonProps.baseProps), {}, {
432
430
  backgroundComponent: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().element),
433
431
  children: prop_types__WEBPACK_IMPORTED_MODULE_13___default().oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_13___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_13___default().node)), (prop_types__WEBPACK_IMPORTED_MODULE_13___default().node)]),
434
432
  defaultAxes: prop_types__WEBPACK_IMPORTED_MODULE_13___default().shape({
@@ -444,7 +442,7 @@ VictoryChart.propTypes = _objectSpread(_objectSpread({}, victory_core__WEBPACK_I
444
442
  prependDefaultAxes: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().bool),
445
443
  startAngle: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().number)
446
444
  });
447
- VictoryChart.defaultProps = {
445
+ VictoryChartImpl.defaultProps = {
448
446
  backgroundComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement(victory_core__WEBPACK_IMPORTED_MODULE_15__.Background, null),
449
447
  containerComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement(victory_core__WEBPACK_IMPORTED_MODULE_16__.VictoryContainer, null),
450
448
  defaultAxes: {
@@ -463,10 +461,10 @@ VictoryChart.defaultProps = {
463
461
  standalone: true,
464
462
  theme: victory_core__WEBPACK_IMPORTED_MODULE_19__.VictoryTheme.grayscale
465
463
  };
466
- var VictoryChartMemo = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().memo(VictoryChart, (react_fast_compare__WEBPACK_IMPORTED_MODULE_4___default()));
467
- VictoryChartMemo.displayName = "VictoryChart";
468
- VictoryChartMemo.expectedComponents = ["groupComponent", "containerComponent"];
469
- /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (VictoryChartMemo);
464
+ var VictoryChart = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().memo(VictoryChartImpl, (react_fast_compare__WEBPACK_IMPORTED_MODULE_4___default()));
465
+ VictoryChart.displayName = "VictoryChart"; // @ts-expect-error FIXME: Does this "expectedComponents" do anything?
466
+
467
+ VictoryChart.expectedComponents = ["groupComponent", "containerComponent"];
470
468
 
471
469
  /***/ }),
472
470
 
@@ -8212,6 +8210,7 @@ var getBaseProps = function (props, fallbackProps) {
8212
8210
  return childProps;
8213
8211
  }, initialChildProps);
8214
8212
  };
8213
+ //# sourceMappingURL=helper-methods.js.map
8215
8214
 
8216
8215
  /***/ }),
8217
8216
 
@@ -8483,7 +8482,7 @@ VictoryAxis.defaultTransitions = {
8483
8482
  duration: 500
8484
8483
  }
8485
8484
  };
8486
- VictoryAxis.propTypes = _objectSpread(_objectSpread({}, victory_core__WEBPACK_IMPORTED_MODULE_6__.baseProps), {}, {
8485
+ VictoryAxis.propTypes = _objectSpread(_objectSpread({}, victory_core__WEBPACK_IMPORTED_MODULE_6__.CommonProps.baseProps), {}, {
8487
8486
  axisComponent: (prop_types__WEBPACK_IMPORTED_MODULE_7___default().element),
8488
8487
  axisLabelComponent: (prop_types__WEBPACK_IMPORTED_MODULE_7___default().element),
8489
8488
  axisValue: prop_types__WEBPACK_IMPORTED_MODULE_7___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_7___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_7___default().string), (prop_types__WEBPACK_IMPORTED_MODULE_7___default().object)]),
@@ -8551,7 +8550,8 @@ VictoryAxis.getBaseProps = function (props) {
8551
8550
  };
8552
8551
 
8553
8552
  VictoryAxis.expectedComponents = ["axisComponent", "axisLabelComponent", "groupComponent", "containerComponent", "tickComponent", "tickLabelComponent", "gridComponent"];
8554
- /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((0,victory_core__WEBPACK_IMPORTED_MODULE_14__["default"])(VictoryAxis, options));
8553
+ /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((0,victory_core__WEBPACK_IMPORTED_MODULE_14__.addEvents)(VictoryAxis, options));
8554
+ //# sourceMappingURL=victory-axis.js.map
8555
8555
 
8556
8556
  /***/ }),
8557
8557
 
@@ -8613,7 +8613,7 @@ var isInterpolatable = function (obj) {
8613
8613
  // component is only going to call the function (in which case it's
8614
8614
  // safely interpolatable) or if it's going to access special properties
8615
8615
  // (in which case our function generated from `interpolateFunction` will
8616
- // most likely cause an error. We could check for enumerable properties
8616
+ // most likely cause an error). We could check for enumerable properties
8617
8617
  // on the function object here to see if it's a "plain" function, but
8618
8618
  // let's just require that components prevent such function props from
8619
8619
  // being animated in the first place.
@@ -8778,16 +8778,18 @@ var victoryInterpolator = function (a, b) {
8778
8778
  }
8779
8779
 
8780
8780
  if (lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_1___default()(a) || lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_1___default()(b)) {
8781
- // @ts-expect-error These generics are tough, but they work ok?
8781
+ // @ts-expect-error These generics are tough, but they work :)
8782
8782
  return interpolateObject(a, b);
8783
8783
  }
8784
8784
 
8785
8785
  if (typeof a === "string" || typeof b === "string") {
8786
8786
  return interpolateString(a, b);
8787
- }
8787
+ } // @ts-expect-error These generics are tough, but they work :)
8788
+
8788
8789
 
8789
8790
  return (0,victory_vendor_d3_interpolate__WEBPACK_IMPORTED_MODULE_2__["default"])(a, b);
8790
8791
  };
8792
+ //# sourceMappingURL=util.js.map
8791
8793
 
8792
8794
  /***/ }),
8793
8795
 
@@ -9050,6 +9052,7 @@ VictoryAnimation.defaultProps = {
9050
9052
  easing: "quadInOut"
9051
9053
  };
9052
9054
  VictoryAnimation.contextType = _victory_util_timer_context__WEBPACK_IMPORTED_MODULE_5__["default"];
9055
+ //# sourceMappingURL=victory-animation.js.map
9053
9056
 
9054
9057
  /***/ }),
9055
9058
 
@@ -9363,6 +9366,7 @@ VictoryContainer.defaultProps = {
9363
9366
  role: "img"
9364
9367
  };
9365
9368
  VictoryContainer.contextType = _victory_util_timer_context__WEBPACK_IMPORTED_MODULE_12__["default"];
9369
+ //# sourceMappingURL=victory-container.js.map
9366
9370
 
9367
9371
  /***/ }),
9368
9372
 
@@ -9968,10 +9972,9 @@ VictoryLabel.propTypes = {
9968
9972
  inline: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().bool),
9969
9973
  labelPlacement: prop_types__WEBPACK_IMPORTED_MODULE_11___default().oneOf(["parallel", "perpendicular", "vertical"]),
9970
9974
  lineHeight: prop_types__WEBPACK_IMPORTED_MODULE_11___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_11___default().string), _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_12__.nonNegative, (prop_types__WEBPACK_IMPORTED_MODULE_11___default().func), (prop_types__WEBPACK_IMPORTED_MODULE_11___default().array)]),
9971
- // @ts-expect-error "x is required in origin"
9972
9975
  origin: prop_types__WEBPACK_IMPORTED_MODULE_11___default().shape({
9973
- x: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_12__.nonNegative,
9974
- y: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_12__.nonNegative
9976
+ x: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_12__.nonNegative.isRequired,
9977
+ y: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_12__.nonNegative.isRequired
9975
9978
  }),
9976
9979
  polar: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().bool),
9977
9980
  renderInPortal: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().bool),
@@ -10005,6 +10008,7 @@ VictoryLabel.defaultProps = {
10005
10008
  // Magic number from d3.
10006
10009
  lineHeight: 1
10007
10010
  };
10011
+ //# sourceMappingURL=victory-label.js.map
10008
10012
 
10009
10013
  /***/ }),
10010
10014
 
@@ -10029,6 +10033,7 @@ __webpack_require__.r(__webpack_exports__);
10029
10033
  */
10030
10034
  var PortalContext = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createContext({});
10031
10035
  PortalContext.displayName = "PortalContext";
10036
+ //# sourceMappingURL=portal-context.js.map
10032
10037
 
10033
10038
  /***/ }),
10034
10039
 
@@ -10140,6 +10145,7 @@ Portal.propTypes = {
10140
10145
  viewBox: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().string),
10141
10146
  width: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_3__.nonNegative
10142
10147
  };
10148
+ //# sourceMappingURL=portal.js.map
10143
10149
 
10144
10150
  /***/ }),
10145
10151
 
@@ -10283,6 +10289,7 @@ VictoryPortal.defaultProps = {
10283
10289
  groupComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("g", null)
10284
10290
  };
10285
10291
  VictoryPortal.contextType = _portal_context__WEBPACK_IMPORTED_MODULE_5__.PortalContext;
10292
+ //# sourceMappingURL=victory-portal.js.map
10286
10293
 
10287
10294
  /***/ }),
10288
10295
 
@@ -10386,7 +10393,7 @@ var Arc = function (props) {
10386
10393
  clipPath: props.clipPath
10387
10394
  }));
10388
10395
  };
10389
- Arc.propTypes = _objectSpread(_objectSpread({}, _victory_util_common_props__WEBPACK_IMPORTED_MODULE_3__.primitiveProps), {}, {
10396
+ Arc.propTypes = _objectSpread(_objectSpread({}, _victory_util_common_props__WEBPACK_IMPORTED_MODULE_3__.CommonProps.primitiveProps), {}, {
10390
10397
  closedPath: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().bool),
10391
10398
  cx: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().number),
10392
10399
  cy: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().number),
@@ -10401,6 +10408,7 @@ Arc.defaultProps = {
10401
10408
  role: "presentation",
10402
10409
  shapeRendering: "auto"
10403
10410
  };
10411
+ //# sourceMappingURL=arc.js.map
10404
10412
 
10405
10413
  /***/ }),
10406
10414
 
@@ -10474,7 +10482,7 @@ var Background = function (props) {
10474
10482
  className: props.className
10475
10483
  }));
10476
10484
  };
10477
- Background.propTypes = _objectSpread(_objectSpread({}, _victory_util_common_props__WEBPACK_IMPORTED_MODULE_3__.primitiveProps), {}, {
10485
+ Background.propTypes = _objectSpread(_objectSpread({}, _victory_util_common_props__WEBPACK_IMPORTED_MODULE_3__.CommonProps.primitiveProps), {}, {
10478
10486
  circleComponent: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().element),
10479
10487
  height: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().number),
10480
10488
  rectComponent: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().element),
@@ -10490,6 +10498,7 @@ Background.defaultProps = {
10490
10498
  role: "presentation",
10491
10499
  shapeRendering: "auto"
10492
10500
  };
10501
+ //# sourceMappingURL=background.js.map
10493
10502
 
10494
10503
  /***/ }),
10495
10504
 
@@ -10532,6 +10541,7 @@ var Circle = function (props) {
10532
10541
  vectorEffect: "non-scaling-stroke"
10533
10542
  }, rest));
10534
10543
  };
10544
+ //# sourceMappingURL=circle.js.map
10535
10545
 
10536
10546
  /***/ }),
10537
10547
 
@@ -10612,7 +10622,7 @@ var LineSegment = function (props) {
10612
10622
  clipPath: props.clipPath
10613
10623
  }));
10614
10624
  };
10615
- LineSegment.propTypes = _objectSpread(_objectSpread({}, _victory_util_common_props__WEBPACK_IMPORTED_MODULE_3__.primitiveProps), {}, {
10625
+ LineSegment.propTypes = _objectSpread(_objectSpread({}, _victory_util_common_props__WEBPACK_IMPORTED_MODULE_3__.CommonProps.primitiveProps), {}, {
10616
10626
  datum: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().any),
10617
10627
  lineComponent: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().element),
10618
10628
  x1: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().number),
@@ -10625,6 +10635,7 @@ LineSegment.defaultProps = {
10625
10635
  role: "presentation",
10626
10636
  shapeRendering: "auto"
10627
10637
  };
10638
+ //# sourceMappingURL=line-segment.js.map
10628
10639
 
10629
10640
  /***/ }),
10630
10641
 
@@ -10667,6 +10678,7 @@ var Line = function (props) {
10667
10678
  vectorEffect: "non-scaling-stroke"
10668
10679
  }, rest));
10669
10680
  };
10681
+ //# sourceMappingURL=line.js.map
10670
10682
 
10671
10683
  /***/ }),
10672
10684
 
@@ -10703,6 +10715,7 @@ var Path = function (props) {
10703
10715
  // @ts-expect-error FIXME: "id cannot be a number"
10704
10716
  react__WEBPACK_IMPORTED_MODULE_0___default().createElement("path", rest);
10705
10717
  };
10718
+ //# sourceMappingURL=path.js.map
10706
10719
 
10707
10720
  /***/ }),
10708
10721
 
@@ -10745,6 +10758,7 @@ var Rect = function (props) {
10745
10758
  vectorEffect: "non-scaling-stroke"
10746
10759
  }, rest));
10747
10760
  };
10761
+ //# sourceMappingURL=rect.js.map
10748
10762
 
10749
10763
  /***/ }),
10750
10764
 
@@ -10788,6 +10802,7 @@ Text.propTypes = {
10788
10802
  desc: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().string),
10789
10803
  title: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().string)
10790
10804
  };
10805
+ //# sourceMappingURL=text.js.map
10791
10806
 
10792
10807
  /***/ }),
10793
10808
 
@@ -10812,6 +10827,7 @@ var TSpan = function (props) {
10812
10827
  react__WEBPACK_IMPORTED_MODULE_0___default().createElement("tspan", props)
10813
10828
  );
10814
10829
  };
10830
+ //# sourceMappingURL=tspan.js.map
10815
10831
 
10816
10832
  /***/ }),
10817
10833
 
@@ -11087,6 +11103,7 @@ var grayscale = {
11087
11103
  }
11088
11104
  }, baseProps)
11089
11105
  };
11106
+ //# sourceMappingURL=grayscale.js.map
11090
11107
 
11091
11108
  /***/ }),
11092
11109
 
@@ -11389,6 +11406,7 @@ var material = {
11389
11406
  }
11390
11407
  }, baseProps)
11391
11408
  };
11409
+ //# sourceMappingURL=material.js.map
11392
11410
 
11393
11411
  /***/ }),
11394
11412
 
@@ -11412,6 +11430,7 @@ var VictoryTheme = {
11412
11430
  grayscale: _grayscale__WEBPACK_IMPORTED_MODULE_0__.grayscale,
11413
11431
  material: _material__WEBPACK_IMPORTED_MODULE_1__.material
11414
11432
  };
11433
+ //# sourceMappingURL=victory-theme.js.map
11415
11434
 
11416
11435
  /***/ }),
11417
11436
 
@@ -11680,6 +11699,7 @@ VictoryTransition.propTypes = {
11680
11699
  children: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().node)
11681
11700
  };
11682
11701
  VictoryTransition.contextType = _victory_util_timer_context__WEBPACK_IMPORTED_MODULE_10__["default"];
11702
+ //# sourceMappingURL=victory-transition.js.map
11683
11703
 
11684
11704
  /***/ }),
11685
11705
 
@@ -11692,26 +11712,26 @@ VictoryTransition.contextType = _victory_util_timer_context__WEBPACK_IMPORTED_MO
11692
11712
  "use strict";
11693
11713
  __webpack_require__.r(__webpack_exports__);
11694
11714
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
11695
- /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
11715
+ /* harmony export */ "addEvents": () => (/* binding */ addEvents)
11696
11716
  /* harmony export */ });
11697
- /* harmony import */ var lodash_difference__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/difference */ "../../../node_modules/lodash/difference.js");
11698
- /* harmony import */ var lodash_difference__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_difference__WEBPACK_IMPORTED_MODULE_0__);
11699
- /* harmony import */ var lodash_isNil__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/isNil */ "../../../node_modules/lodash/isNil.js");
11700
- /* harmony import */ var lodash_isNil__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_isNil__WEBPACK_IMPORTED_MODULE_1__);
11701
- /* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash/isEmpty */ "../../../node_modules/lodash/isEmpty.js");
11702
- /* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_isEmpty__WEBPACK_IMPORTED_MODULE_2__);
11703
- /* harmony import */ var lodash_without__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! lodash/without */ "../../../node_modules/lodash/without.js");
11704
- /* harmony import */ var lodash_without__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(lodash_without__WEBPACK_IMPORTED_MODULE_3__);
11705
- /* harmony import */ var lodash_pick__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! lodash/pick */ "../../../node_modules/lodash/pick.js");
11706
- /* harmony import */ var lodash_pick__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(lodash_pick__WEBPACK_IMPORTED_MODULE_4__);
11707
- /* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! lodash/isFunction */ "../../../node_modules/lodash/isFunction.js");
11708
- /* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(lodash_isFunction__WEBPACK_IMPORTED_MODULE_5__);
11709
- /* harmony import */ var lodash_keys__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! lodash/keys */ "../../../node_modules/lodash/keys.js");
11710
- /* harmony import */ var lodash_keys__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(lodash_keys__WEBPACK_IMPORTED_MODULE_6__);
11711
- /* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! lodash/assign */ "../../../node_modules/lodash/assign.js");
11712
- /* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(lodash_assign__WEBPACK_IMPORTED_MODULE_7__);
11713
- /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! lodash/defaults */ "../../../node_modules/lodash/defaults.js");
11714
- /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_8__);
11717
+ /* harmony import */ var lodash_without__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/without */ "../../../node_modules/lodash/without.js");
11718
+ /* harmony import */ var lodash_without__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_without__WEBPACK_IMPORTED_MODULE_0__);
11719
+ /* harmony import */ var lodash_pick__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/pick */ "../../../node_modules/lodash/pick.js");
11720
+ /* harmony import */ var lodash_pick__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_pick__WEBPACK_IMPORTED_MODULE_1__);
11721
+ /* harmony import */ var lodash_keys__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash/keys */ "../../../node_modules/lodash/keys.js");
11722
+ /* harmony import */ var lodash_keys__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_keys__WEBPACK_IMPORTED_MODULE_2__);
11723
+ /* harmony import */ var lodash_isNil__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! lodash/isNil */ "../../../node_modules/lodash/isNil.js");
11724
+ /* harmony import */ var lodash_isNil__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(lodash_isNil__WEBPACK_IMPORTED_MODULE_3__);
11725
+ /* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! lodash/isFunction */ "../../../node_modules/lodash/isFunction.js");
11726
+ /* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(lodash_isFunction__WEBPACK_IMPORTED_MODULE_4__);
11727
+ /* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! lodash/isEmpty */ "../../../node_modules/lodash/isEmpty.js");
11728
+ /* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(lodash_isEmpty__WEBPACK_IMPORTED_MODULE_5__);
11729
+ /* harmony import */ var lodash_difference__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! lodash/difference */ "../../../node_modules/lodash/difference.js");
11730
+ /* harmony import */ var lodash_difference__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(lodash_difference__WEBPACK_IMPORTED_MODULE_6__);
11731
+ /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! lodash/defaults */ "../../../node_modules/lodash/defaults.js");
11732
+ /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_7__);
11733
+ /* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! lodash/assign */ "../../../node_modules/lodash/assign.js");
11734
+ /* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(lodash_assign__WEBPACK_IMPORTED_MODULE_8__);
11715
11735
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! react */ "react");
11716
11736
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_9__);
11717
11737
  /* harmony import */ var _events__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./events */ "../../victory-core/es/victory-util/events.js");
@@ -11764,13 +11784,14 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
11764
11784
 
11765
11785
 
11766
11786
 
11767
- // DISCLAIMER:
11787
+
11788
+
11789
+ // DISCLAIMER:
11768
11790
  // This file is not currently tested, and it is first on the list of files
11769
11791
  // to refactor in our current refactoring effort. Please do not make changes
11770
11792
  // to this file without manual testing and/or refactoring and adding tests.
11771
-
11772
11793
  var datumHasXandY = function (datum) {
11773
- return !lodash_isNil__WEBPACK_IMPORTED_MODULE_1___default()(datum._x) && !lodash_isNil__WEBPACK_IMPORTED_MODULE_1___default()(datum._y);
11794
+ return !lodash_isNil__WEBPACK_IMPORTED_MODULE_3___default()(datum._x) && !lodash_isNil__WEBPACK_IMPORTED_MODULE_3___default()(datum._y);
11774
11795
  }; // used for checking state changes. Expected components can be passed in via options
11775
11796
 
11776
11797
 
@@ -11782,44 +11803,45 @@ var defaultComponents = [{
11782
11803
  }, {
11783
11804
  name: "labels"
11784
11805
  }];
11785
- /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (function (WrappedComponent, options) {
11786
- return /*#__PURE__*/function (_WrappedComponent) {
11787
- _inherits(addEvents, _WrappedComponent);
11806
+ function addEvents(WrappedComponent) {
11807
+ var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
11808
+
11809
+ // @ts-expect-error "TS2545: A mixin class must have a constructor with a single rest parameter of type 'any[]'."
11810
+ var AddEventsMixin = /*#__PURE__*/function (_WrappedComponent) {
11811
+ _inherits(AddEventsMixin, _WrappedComponent);
11788
11812
 
11789
- var _super = _createSuper(addEvents);
11813
+ var _super = _createSuper(AddEventsMixin);
11790
11814
 
11791
- function addEvents(props) {
11815
+ function AddEventsMixin(props) {
11792
11816
  var _this;
11793
11817
 
11794
- _classCallCheck(this, addEvents);
11818
+ _classCallCheck(this, AddEventsMixin);
11795
11819
 
11796
11820
  _this = _super.call(this, props);
11797
- var getScopedEvents = _events__WEBPACK_IMPORTED_MODULE_11__.getScopedEvents.bind(_assertThisInitialized(_this));
11798
- var boundGetEvents = _events__WEBPACK_IMPORTED_MODULE_11__.getEvents.bind(_assertThisInitialized(_this));
11799
11821
  _this.state = {};
11822
+ _this.getEventState = _events__WEBPACK_IMPORTED_MODULE_11__.getEventState.bind(_assertThisInitialized(_this));
11823
+ _this.getScopedEvents = _events__WEBPACK_IMPORTED_MODULE_11__.getScopedEvents.bind(_assertThisInitialized(_this));
11800
11824
 
11801
11825
  _this.getEvents = function (p, target, eventKey) {
11802
- return boundGetEvents(p, target, eventKey, getScopedEvents);
11826
+ return _events__WEBPACK_IMPORTED_MODULE_11__.getEvents.call(_assertThisInitialized(_this), p, target, eventKey, _this.getScopedEvents);
11803
11827
  };
11804
11828
 
11805
- _this.getEventState = _events__WEBPACK_IMPORTED_MODULE_11__.getEventState.bind(_assertThisInitialized(_this));
11806
-
11807
- var calculatedValues = _this.getCalculatedValues(props);
11808
-
11809
- _this.cacheValues(calculatedValues);
11810
-
11811
- _this.externalMutations = _this.getExternalMutations(props);
11812
- _this.calculatedState = _this.getStateChanges(props);
11829
+ _this.externalMutations = _this.getExternalMutations(_this.props);
11830
+ _this.calculatedState = _this.getStateChanges(_this.props);
11813
11831
  _this.globalEvents = {};
11814
11832
  _this.prevGlobalEventKeys = [];
11815
11833
  _this.boundGlobalEvents = {};
11834
+
11835
+ _this.cacheValues(_this.getCalculatedValues(props));
11836
+
11816
11837
  return _this;
11817
11838
  }
11818
11839
 
11819
- _createClass(addEvents, [{
11840
+ _createClass(AddEventsMixin, [{
11820
11841
  key: "shouldComponentUpdate",
11821
11842
  value: function shouldComponentUpdate(nextProps) {
11822
- var externalMutations = this.getExternalMutations(nextProps);
11843
+ var externalMutations = this.getExternalMutations(nextProps); // @ts-expect-error "Property 'animating' does not exist on type EventMixinCommonProps"
11844
+
11823
11845
  var animating = this.props.animating || this.props.animate;
11824
11846
  var newMutation = !react_fast_compare__WEBPACK_IMPORTED_MODULE_10___default()(externalMutations, this.externalMutations);
11825
11847
 
@@ -11849,7 +11871,7 @@ var defaultComponents = [{
11849
11871
  value: function componentDidMount() {
11850
11872
  var _this2 = this;
11851
11873
 
11852
- var globalEventKeys = lodash_keys__WEBPACK_IMPORTED_MODULE_6___default()(this.globalEvents);
11874
+ var globalEventKeys = lodash_keys__WEBPACK_IMPORTED_MODULE_2___default()(this.globalEvents);
11853
11875
 
11854
11876
  globalEventKeys.forEach(function (key) {
11855
11877
  return _this2.addGlobalListener(key);
@@ -11864,15 +11886,15 @@ var defaultComponents = [{
11864
11886
  var calculatedState = this.getStateChanges(prevProps);
11865
11887
  this.calculatedState = calculatedState;
11866
11888
 
11867
- var globalEventKeys = lodash_keys__WEBPACK_IMPORTED_MODULE_6___default()(this.globalEvents);
11889
+ var globalEventKeys = lodash_keys__WEBPACK_IMPORTED_MODULE_2___default()(this.globalEvents);
11868
11890
 
11869
- var removedGlobalEventKeys = lodash_difference__WEBPACK_IMPORTED_MODULE_0___default()(this.prevGlobalEventKeys, globalEventKeys);
11891
+ var removedGlobalEventKeys = lodash_difference__WEBPACK_IMPORTED_MODULE_6___default()(this.prevGlobalEventKeys, globalEventKeys);
11870
11892
 
11871
11893
  removedGlobalEventKeys.forEach(function (key) {
11872
11894
  return _this3.removeGlobalListener(key);
11873
11895
  });
11874
11896
 
11875
- var addedGlobalEventKeys = lodash_difference__WEBPACK_IMPORTED_MODULE_0___default()(globalEventKeys, this.prevGlobalEventKeys);
11897
+ var addedGlobalEventKeys = lodash_difference__WEBPACK_IMPORTED_MODULE_6___default()(globalEventKeys, this.prevGlobalEventKeys);
11876
11898
 
11877
11899
  addedGlobalEventKeys.forEach(function (key) {
11878
11900
  return _this3.addGlobalListener(key);
@@ -11918,12 +11940,11 @@ var defaultComponents = [{
11918
11940
  }
11919
11941
 
11920
11942
  var getState = function (key, type) {
11921
- var result = lodash_defaults__WEBPACK_IMPORTED_MODULE_8___default()({}, _this6.getEventState(key, type), _this6.getSharedEventState(key, type));
11943
+ var result = lodash_defaults__WEBPACK_IMPORTED_MODULE_7___default()({}, _this6.getEventState(key, type), _this6.getSharedEventState(key, type));
11922
11944
 
11923
- return lodash_isEmpty__WEBPACK_IMPORTED_MODULE_2___default()(result) ? undefined : result;
11945
+ return lodash_isEmpty__WEBPACK_IMPORTED_MODULE_5___default()(result) ? undefined : result;
11924
11946
  };
11925
11947
 
11926
- options = options || {};
11927
11948
  var components = options.components || defaultComponents;
11928
11949
  var stateChanges = components.map(function (component) {
11929
11950
  if (!props.standalone && component.name === "parent") {
@@ -11940,9 +11961,9 @@ var defaultComponents = [{
11940
11961
  }, {
11941
11962
  key: "applyExternalMutations",
11942
11963
  value: function applyExternalMutations(props, externalMutations) {
11943
- if (!lodash_isEmpty__WEBPACK_IMPORTED_MODULE_2___default()(externalMutations)) {
11964
+ if (!lodash_isEmpty__WEBPACK_IMPORTED_MODULE_5___default()(externalMutations)) {
11944
11965
  var callbacks = props.externalEventMutations.reduce(function (memo, mutation) {
11945
- memo = lodash_isFunction__WEBPACK_IMPORTED_MODULE_5___default()(mutation.callback) ? memo.concat(mutation.callback) : memo;
11966
+ memo = lodash_isFunction__WEBPACK_IMPORTED_MODULE_4___default()(mutation.callback) ? memo.concat(mutation.callback) : memo;
11946
11967
  return memo;
11947
11968
  }, []);
11948
11969
  var compiledCallbacks = callbacks.length ? function () {
@@ -11959,12 +11980,12 @@ var defaultComponents = [{
11959
11980
  var sharedEvents = props.sharedEvents;
11960
11981
  var components = WrappedComponent.expectedComponents;
11961
11982
  var componentEvents = _events__WEBPACK_IMPORTED_MODULE_11__.getComponentEvents(props, components);
11962
- var getSharedEventState = sharedEvents && lodash_isFunction__WEBPACK_IMPORTED_MODULE_5___default()(sharedEvents.getEventState) ? sharedEvents.getEventState : function () {
11983
+ var getSharedEventState = sharedEvents && lodash_isFunction__WEBPACK_IMPORTED_MODULE_4___default()(sharedEvents.getEventState) ? sharedEvents.getEventState : function () {
11963
11984
  return undefined;
11964
11985
  };
11965
11986
  var baseProps = this.getBaseProps(props, getSharedEventState);
11966
11987
 
11967
- var dataKeys = lodash_keys__WEBPACK_IMPORTED_MODULE_6___default()(baseProps).filter(function (key) {
11988
+ var dataKeys = lodash_keys__WEBPACK_IMPORTED_MODULE_2___default()(baseProps).filter(function (key) {
11968
11989
  return key !== "parent";
11969
11990
  });
11970
11991
 
@@ -11984,32 +12005,32 @@ var defaultComponents = [{
11984
12005
  value: function getExternalMutations(props) {
11985
12006
  var sharedEvents = props.sharedEvents,
11986
12007
  externalEventMutations = props.externalEventMutations;
11987
- return lodash_isEmpty__WEBPACK_IMPORTED_MODULE_2___default()(externalEventMutations) || sharedEvents ? undefined : _events__WEBPACK_IMPORTED_MODULE_11__.getExternalMutations(externalEventMutations, this.baseProps, this.state);
12008
+ return lodash_isEmpty__WEBPACK_IMPORTED_MODULE_5___default()(externalEventMutations) || sharedEvents ? undefined : _events__WEBPACK_IMPORTED_MODULE_11__.getExternalMutations(externalEventMutations, this.baseProps, this.state);
11988
12009
  }
11989
12010
  }, {
11990
12011
  key: "cacheValues",
11991
12012
  value: function cacheValues(obj) {
11992
12013
  var _this7 = this;
11993
12014
 
11994
- lodash_keys__WEBPACK_IMPORTED_MODULE_6___default()(obj).forEach(function (key) {
12015
+ lodash_keys__WEBPACK_IMPORTED_MODULE_2___default()(obj).forEach(function (key) {
11995
12016
  _this7[key] = obj[key];
11996
12017
  });
11997
12018
  }
11998
12019
  }, {
11999
12020
  key: "getBaseProps",
12000
12021
  value: function getBaseProps(props, getSharedEventState) {
12001
- getSharedEventState = getSharedEventState || this.getSharedEventState;
12022
+ getSharedEventState = getSharedEventState || this.getSharedEventState.bind(this);
12002
12023
  var sharedParentState = getSharedEventState("parent", "parent");
12003
12024
  var parentState = this.getEventState("parent", "parent");
12004
12025
 
12005
- var baseParentProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_8___default()({}, parentState, sharedParentState);
12026
+ var baseParentProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_7___default()({}, parentState, sharedParentState);
12006
12027
 
12007
12028
  var parentPropsList = baseParentProps.parentControlledProps;
12008
- var parentProps = parentPropsList ? lodash_pick__WEBPACK_IMPORTED_MODULE_4___default()(baseParentProps, parentPropsList) : {};
12029
+ var parentProps = parentPropsList ? lodash_pick__WEBPACK_IMPORTED_MODULE_1___default()(baseParentProps, parentPropsList) : {};
12009
12030
 
12010
- var modifiedProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_8___default()({}, parentProps, props);
12031
+ var modifiedProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_7___default()({}, parentProps, props);
12011
12032
 
12012
- return lodash_isFunction__WEBPACK_IMPORTED_MODULE_5___default()(WrappedComponent.getBaseProps) ? WrappedComponent.getBaseProps(modifiedProps) : {};
12033
+ return typeof WrappedComponent.getBaseProps === "function" ? WrappedComponent.getBaseProps(modifiedProps) : {};
12013
12034
  }
12014
12035
  }, {
12015
12036
  key: "getAllEvents",
@@ -12037,21 +12058,21 @@ var defaultComponents = [{
12037
12058
  if (this.hasEvents) {
12038
12059
  var baseEvents = this.getEvents(this.props, type, key);
12039
12060
 
12040
- var componentProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_8___default()({
12061
+ var componentProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_7___default()({
12041
12062
  index: index,
12042
12063
  key: id
12043
12064
  }, this.getEventState(key, type), this.getSharedEventState(key, type), component.props, baseProps, {
12044
12065
  id: id
12045
12066
  });
12046
12067
 
12047
- var events = lodash_defaults__WEBPACK_IMPORTED_MODULE_8___default()({}, _events__WEBPACK_IMPORTED_MODULE_11__.getPartialEvents(baseEvents, key, componentProps), componentProps.events);
12068
+ var events = lodash_defaults__WEBPACK_IMPORTED_MODULE_7___default()({}, _events__WEBPACK_IMPORTED_MODULE_11__.getPartialEvents(baseEvents, key, componentProps), componentProps.events);
12048
12069
 
12049
- return lodash_assign__WEBPACK_IMPORTED_MODULE_7___default()({}, componentProps, {
12070
+ return lodash_assign__WEBPACK_IMPORTED_MODULE_8___default()({}, componentProps, {
12050
12071
  events: events
12051
12072
  });
12052
12073
  }
12053
12074
 
12054
- return lodash_defaults__WEBPACK_IMPORTED_MODULE_8___default()({
12075
+ return lodash_defaults__WEBPACK_IMPORTED_MODULE_7___default()({
12055
12076
  index: index,
12056
12077
  key: id
12057
12078
  }, component.props, baseProps, {
@@ -12074,11 +12095,14 @@ var defaultComponents = [{
12074
12095
  }, {
12075
12096
  key: "animateComponent",
12076
12097
  value: function animateComponent(props, defaultAnimationWhitelist) {
12077
- var animationWhitelist = props.animate && props.animate.animationWhitelist ? props.animate.animationWhitelist : defaultAnimationWhitelist;
12098
+ var _props$animate;
12099
+
12100
+ var animationWhitelist = typeof props.animate === "object" && ((_props$animate = props.animate) === null || _props$animate === void 0 ? void 0 : _props$animate.animationWhitelist) || defaultAnimationWhitelist;
12101
+ var Comp = this.constructor;
12078
12102
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_9___default().createElement(_victory_transition_victory_transition__WEBPACK_IMPORTED_MODULE_12__.VictoryTransition, {
12079
12103
  animate: props.animate,
12080
12104
  animationWhitelist: animationWhitelist
12081
- }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_9___default().createElement(this.constructor, props));
12105
+ }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_9___default().createElement(Comp, props));
12082
12106
  } // Used by `VictoryLine` and `VictoryArea`
12083
12107
 
12084
12108
  }, {
@@ -12090,7 +12114,7 @@ var defaultComponents = [{
12090
12114
  labelComponent = props.labelComponent,
12091
12115
  groupComponent = props.groupComponent;
12092
12116
 
12093
- var dataKeys = lodash_without__WEBPACK_IMPORTED_MODULE_3___default()(this.dataKeys, "all");
12117
+ var dataKeys = lodash_without__WEBPACK_IMPORTED_MODULE_0___default()(this.dataKeys, "all");
12094
12118
 
12095
12119
  var labelComponents = dataKeys.reduce(function (memo, key) {
12096
12120
  var labelProps = _this8.getComponentProps(labelComponent, "labels", key);
@@ -12137,9 +12161,12 @@ var defaultComponents = [{
12137
12161
  }
12138
12162
  }]);
12139
12163
 
12140
- return addEvents;
12164
+ return AddEventsMixin;
12141
12165
  }(WrappedComponent);
12142
- });
12166
+
12167
+ return AddEventsMixin;
12168
+ }
12169
+ //# sourceMappingURL=add-events.js.map
12143
12170
 
12144
12171
  /***/ }),
12145
12172
 
@@ -12224,13 +12251,13 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
12224
12251
 
12225
12252
 
12226
12253
 
12254
+
12227
12255
  /**
12228
12256
  * Returns the axis (x or y) of a particular axis component
12229
12257
  * @param {Object} props: the props object.
12230
12258
  * @param {Boolean} horizontal: true for horizontal charts
12231
12259
  * @returns {String} the dimension appropriate for the axis given its props
12232
12260
  */
12233
-
12234
12261
  function getAxis(props) {
12235
12262
  var dependentAxis = props.dependentAxis;
12236
12263
  return dependentAxis ? "y" : "x";
@@ -12416,7 +12443,7 @@ function getTickArray(props) {
12416
12443
  }) : lodash_range__WEBPACK_IMPORTED_MODULE_4___default()(1, tickValues.length + 1);
12417
12444
  }
12418
12445
 
12419
- var tickArray = ticks ? lodash_uniq__WEBPACK_IMPORTED_MODULE_5___default()(ticks) : getTicksFromFormat(props);
12446
+ var tickArray = ticks ? lodash_uniq__WEBPACK_IMPORTED_MODULE_5___default()(ticks) : getTicksFromFormat();
12420
12447
 
12421
12448
  var buildTickArray = function (arr) {
12422
12449
  var newTickArray = [];
@@ -12461,11 +12488,11 @@ function getTickFormat(props, scale) {
12461
12488
  return defaultTickFormat || scaleTickFormat;
12462
12489
  } else if (tickFormat && Array.isArray(tickFormat)) {
12463
12490
  var tickArray = getTickArray(props);
12464
- var tickArrayIndices = tickArray ? tickArray.map(function (v) {
12491
+ var tickArrayIndices = tickArray === null || tickArray === void 0 ? void 0 : tickArray.map(function (v) {
12465
12492
  return v.index;
12466
- }) : undefined;
12493
+ });
12467
12494
  var filteredTickFormat = tickFormat.filter(function (t, index) {
12468
- return tickArrayIndices.includes(index);
12495
+ return tickArrayIndices === null || tickArrayIndices === void 0 ? void 0 : tickArrayIndices.includes(index);
12469
12496
  });
12470
12497
  return function (x, index) {
12471
12498
  return filteredTickFormat[index];
@@ -12499,7 +12526,8 @@ function downsampleTicks(ticks, tickCount) {
12499
12526
  });
12500
12527
  }
12501
12528
 
12502
- function getTicks(props, scale, filterZero) {
12529
+ function getTicks(props, scale) {
12530
+ var filterZero = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
12503
12531
  var tickCount = props.tickCount;
12504
12532
  var tickArray = getTickArray(props);
12505
12533
  var tickValues = tickArray ? tickArray.map(function (v) {
@@ -12622,6 +12650,7 @@ function modifyProps(props, fallbackProps) {
12622
12650
  theme: theme
12623
12651
  }), fallbackProps, "axis");
12624
12652
  }
12653
+ //# sourceMappingURL=axis.js.map
12625
12654
 
12626
12655
  /***/ }),
12627
12656
 
@@ -12655,7 +12684,6 @@ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToAr
12655
12684
 
12656
12685
  function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
12657
12686
 
12658
- /* eslint-disable no-use-before-define */
12659
12687
  function isNonEmptyArray(collection) {
12660
12688
  return Array.isArray(collection) && collection.length > 0;
12661
12689
  }
@@ -12694,7 +12722,8 @@ function getMaxValue(arr) {
12694
12722
  }
12695
12723
 
12696
12724
  var array = arr.concat(values);
12697
- return containsDates(array) ? new Date(Math.max.apply(Math, _toConsumableArray(array))) : Math.max.apply(Math, _toConsumableArray(array));
12725
+ return containsDates(array) ? new Date(Math.max.apply(Math, _toConsumableArray(array))) // Dates will be coerced to numbers
12726
+ : Math.max.apply(Math, _toConsumableArray(array));
12698
12727
  }
12699
12728
  function getMinValue(arr) {
12700
12729
  for (var _len2 = arguments.length, values = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
@@ -12702,8 +12731,10 @@ function getMinValue(arr) {
12702
12731
  }
12703
12732
 
12704
12733
  var array = arr.concat(values);
12705
- return containsDates(array) ? new Date(Math.min.apply(Math, _toConsumableArray(array))) : Math.min.apply(Math, _toConsumableArray(array));
12734
+ return containsDates(array) ? new Date(Math.min.apply(Math, _toConsumableArray(array))) // Dates will be coerced to numbers
12735
+ : Math.min.apply(Math, _toConsumableArray(array));
12706
12736
  }
12737
+ //# sourceMappingURL=collection.js.map
12707
12738
 
12708
12739
  /***/ }),
12709
12740
 
@@ -12716,9 +12747,7 @@ function getMinValue(arr) {
12716
12747
  "use strict";
12717
12748
  __webpack_require__.r(__webpack_exports__);
12718
12749
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
12719
- /* harmony export */ "baseProps": () => (/* binding */ baseProps),
12720
- /* harmony export */ "dataProps": () => (/* binding */ dataProps),
12721
- /* harmony export */ "primitiveProps": () => (/* binding */ primitiveProps)
12750
+ /* harmony export */ "CommonProps": () => (/* binding */ CommonProps)
12722
12751
  /* harmony export */ });
12723
12752
  /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! prop-types */ "../../../node_modules/prop-types/index.js");
12724
12753
  /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_0__);
@@ -12726,26 +12755,28 @@ __webpack_require__.r(__webpack_exports__);
12726
12755
 
12727
12756
 
12728
12757
  var dataProps = {
12758
+ // @ts-expect-error TODO: synchronize the type with this PropTypes
12729
12759
  categories: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_0___default().string)), prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
12730
12760
  x: prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_0___default().string)),
12731
12761
  y: prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_0___default().string))
12732
12762
  })]),
12763
+ // @ts-expect-error TODO: synchronize the type with this PropTypes
12733
12764
  data: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().array), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object)]),
12734
12765
  dataComponent: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().element),
12735
12766
  disableInlineStyles: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
12736
12767
  labelComponent: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().element),
12737
12768
  labels: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().func), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().array)]),
12738
12769
  samples: _prop_types__WEBPACK_IMPORTED_MODULE_1__.nonNegative,
12739
- sortKey: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().func), _prop_types__WEBPACK_IMPORTED_MODULE_1__.allOfType([_prop_types__WEBPACK_IMPORTED_MODULE_1__.integer, _prop_types__WEBPACK_IMPORTED_MODULE_1__.nonNegative]), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string), prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_0___default().string))]),
12770
+ sortKey: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().func), _prop_types__WEBPACK_IMPORTED_MODULE_1__.allOfType([_prop_types__WEBPACK_IMPORTED_MODULE_1__.integer, _prop_types__WEBPACK_IMPORTED_MODULE_1__.nonNegative]), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string), prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_0___default().string.isRequired))]),
12740
12771
  sortOrder: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(["ascending", "descending"]),
12741
12772
  style: prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
12742
12773
  parent: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object),
12743
12774
  data: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object),
12744
12775
  labels: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object)
12745
12776
  }),
12746
- x: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().func), _prop_types__WEBPACK_IMPORTED_MODULE_1__.allOfType([_prop_types__WEBPACK_IMPORTED_MODULE_1__.integer, _prop_types__WEBPACK_IMPORTED_MODULE_1__.nonNegative]), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string), prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_0___default().string))]),
12747
- y: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().func), _prop_types__WEBPACK_IMPORTED_MODULE_1__.allOfType([_prop_types__WEBPACK_IMPORTED_MODULE_1__.integer, _prop_types__WEBPACK_IMPORTED_MODULE_1__.nonNegative]), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string), prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_0___default().string))]),
12748
- y0: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().func), _prop_types__WEBPACK_IMPORTED_MODULE_1__.allOfType([_prop_types__WEBPACK_IMPORTED_MODULE_1__.integer, _prop_types__WEBPACK_IMPORTED_MODULE_1__.nonNegative]), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string), prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_0___default().string))])
12777
+ x: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().func), _prop_types__WEBPACK_IMPORTED_MODULE_1__.allOfType([_prop_types__WEBPACK_IMPORTED_MODULE_1__.integer, _prop_types__WEBPACK_IMPORTED_MODULE_1__.nonNegative]), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string), prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_0___default().string.isRequired))]),
12778
+ y: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().func), _prop_types__WEBPACK_IMPORTED_MODULE_1__.allOfType([_prop_types__WEBPACK_IMPORTED_MODULE_1__.integer, _prop_types__WEBPACK_IMPORTED_MODULE_1__.nonNegative]), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string), prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_0___default().string.isRequired))]),
12779
+ y0: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().func), _prop_types__WEBPACK_IMPORTED_MODULE_1__.allOfType([_prop_types__WEBPACK_IMPORTED_MODULE_1__.integer, _prop_types__WEBPACK_IMPORTED_MODULE_1__.nonNegative]), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string), prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_0___default().string.isRequired))])
12749
12780
  };
12750
12781
  var baseProps = {
12751
12782
  animate: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object)]),
@@ -12754,14 +12785,17 @@ var baseProps = {
12754
12785
  x: _prop_types__WEBPACK_IMPORTED_MODULE_1__.domain,
12755
12786
  y: _prop_types__WEBPACK_IMPORTED_MODULE_1__.domain
12756
12787
  })]),
12788
+ // @ts-expect-error TODO: synchronize the type with this PropTypes
12757
12789
  maxDomain: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().number), prop_types__WEBPACK_IMPORTED_MODULE_0___default().instanceOf(Date), prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
12758
12790
  x: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().number), prop_types__WEBPACK_IMPORTED_MODULE_0___default().instanceOf(Date)]),
12759
12791
  y: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().number), prop_types__WEBPACK_IMPORTED_MODULE_0___default().instanceOf(Date)])
12760
12792
  })]),
12793
+ // @ts-expect-error TODO: synchronize the type with this PropTypes
12761
12794
  minDomain: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().number), prop_types__WEBPACK_IMPORTED_MODULE_0___default().instanceOf(Date), prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
12762
12795
  x: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().number), prop_types__WEBPACK_IMPORTED_MODULE_0___default().instanceOf(Date)]),
12763
12796
  y: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().number), prop_types__WEBPACK_IMPORTED_MODULE_0___default().instanceOf(Date)])
12764
12797
  })]),
12798
+ // @ts-expect-error TODO: synchronize the type with this PropTypes
12765
12799
  domainPadding: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
12766
12800
  x: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().number), prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_0___default().number))]),
12767
12801
  y: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().number), prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_0___default().number))])
@@ -12772,6 +12806,7 @@ var baseProps = {
12772
12806
  eventKey: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().array), _prop_types__WEBPACK_IMPORTED_MODULE_1__.allOfType([_prop_types__WEBPACK_IMPORTED_MODULE_1__.integer, _prop_types__WEBPACK_IMPORTED_MODULE_1__.nonNegative]), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string)]),
12773
12807
  eventHandlers: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object)
12774
12808
  })),
12809
+ // @ts-expect-error TODO: synchronize the type with this PropTypes
12775
12810
  externalEventMutations: prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
12776
12811
  callback: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
12777
12812
  childName: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().string), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().array)]),
@@ -12782,10 +12817,12 @@ var baseProps = {
12782
12817
  groupComponent: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().element),
12783
12818
  height: _prop_types__WEBPACK_IMPORTED_MODULE_1__.nonNegative,
12784
12819
  name: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
12820
+ // @ts-expect-error TODO: synchronize the type with this PropTypes
12785
12821
  origin: prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
12786
12822
  x: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number),
12787
12823
  y: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number)
12788
12824
  }),
12825
+ // @ts-expect-error TODO: synchronize the type with this PropTypes
12789
12826
  padding: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().number), prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
12790
12827
  top: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number),
12791
12828
  bottom: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number),
@@ -12794,17 +12831,19 @@ var baseProps = {
12794
12831
  })]),
12795
12832
  polar: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
12796
12833
  range: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([_prop_types__WEBPACK_IMPORTED_MODULE_1__.domain, prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
12797
- x: _prop_types__WEBPACK_IMPORTED_MODULE_1__.domain,
12798
- y: _prop_types__WEBPACK_IMPORTED_MODULE_1__.domain
12834
+ x: _prop_types__WEBPACK_IMPORTED_MODULE_1__.domain.isRequired,
12835
+ y: _prop_types__WEBPACK_IMPORTED_MODULE_1__.domain.isRequired
12799
12836
  })]),
12800
12837
  scale: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([_prop_types__WEBPACK_IMPORTED_MODULE_1__.scale, prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
12801
- x: _prop_types__WEBPACK_IMPORTED_MODULE_1__.scale,
12802
- y: _prop_types__WEBPACK_IMPORTED_MODULE_1__.scale
12838
+ x: _prop_types__WEBPACK_IMPORTED_MODULE_1__.scale.isRequired,
12839
+ y: _prop_types__WEBPACK_IMPORTED_MODULE_1__.scale.isRequired
12803
12840
  })]),
12841
+ // @ts-expect-error TODO: synchronize the type with this PropTypes
12804
12842
  sharedEvents: prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
12805
12843
  events: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().array),
12806
12844
  getEventState: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func)
12807
12845
  }),
12846
+ // @ts-expect-error TODO: synchronize the type with this PropTypes
12808
12847
  singleQuadrantDomainPadding: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool), prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
12809
12848
  x: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool)]),
12810
12849
  y: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool)])
@@ -12824,6 +12863,7 @@ var primitiveProps = {
12824
12863
  events: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object),
12825
12864
  id: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func)]),
12826
12865
  index: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string)]),
12866
+ // @ts-expect-error TODO: synchronize the type with this PropTypes
12827
12867
  origin: prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
12828
12868
  x: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number),
12829
12869
  y: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number)
@@ -12839,6 +12879,12 @@ var primitiveProps = {
12839
12879
  tabIndex: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func)]),
12840
12880
  transform: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string)
12841
12881
  };
12882
+ var CommonProps = {
12883
+ dataProps: dataProps,
12884
+ baseProps: baseProps,
12885
+ primitiveProps: primitiveProps
12886
+ };
12887
+ //# sourceMappingURL=common-props.js.map
12842
12888
 
12843
12889
  /***/ }),
12844
12890
 
@@ -13352,6 +13398,7 @@ function isDataComponent(component) {
13352
13398
  var whitelist = ["area", "bar", "boxplot", "candlestick", "errorbar", "group", "histogram", "line", "pie", "scatter", "stack", "voronoi"];
13353
13399
  return lodash_includes__WEBPACK_IMPORTED_MODULE_2___default()(whitelist, role);
13354
13400
  }
13401
+ //# sourceMappingURL=data.js.map
13355
13402
 
13356
13403
  /***/ }),
13357
13404
 
@@ -13453,8 +13500,9 @@ function getDomainPadding(props, axis) {
13453
13500
  }
13454
13501
 
13455
13502
  function getFlatData(dataset, axis) {
13503
+ var axisKey = "_".concat(axis);
13456
13504
  return lodash_flatten__WEBPACK_IMPORTED_MODULE_5___default()(dataset).map(function (datum) {
13457
- return datum["_".concat(axis)] && datum["_".concat(axis)][1] !== undefined ? datum["_".concat(axis)][1] : datum["_".concat(axis)];
13505
+ return datum[axisKey] && datum[axisKey][1] !== undefined ? datum[axisKey][1] : datum[axisKey];
13458
13506
  });
13459
13507
  }
13460
13508
 
@@ -13519,7 +13567,9 @@ function padDomain(domain, props, axis) {
13519
13567
  if (addsQuadrants && singleQuadrantDomainPadding !== false) {
13520
13568
  // Naive initial padding calculation
13521
13569
  var initialPadding = {
13570
+ // @ts-expect-error `max/min` might be dates
13522
13571
  left: Math.abs(max - min) * padding.left / rangeExtent,
13572
+ // @ts-expect-error `max/min` might be dates
13523
13573
  right: Math.abs(max - min) * padding.right / rangeExtent
13524
13574
  }; // Adjust the domain by the initial padding
13525
13575
 
@@ -13804,6 +13854,7 @@ function isDomainComponent(component) {
13804
13854
  var whitelist = ["area", "axis", "bar", "boxplot", "candlestick", "errorbar", "group", "histogram", "line", "pie", "scatter", "stack", "voronoi"];
13805
13855
  return lodash_includes__WEBPACK_IMPORTED_MODULE_1___default()(whitelist, role);
13806
13856
  }
13857
+ //# sourceMappingURL=domain.js.map
13807
13858
 
13808
13859
  /***/ }),
13809
13860
 
@@ -13872,15 +13923,16 @@ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToAr
13872
13923
  function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
13873
13924
 
13874
13925
  var GLOBAL_EVENT_REGEX = /^onGlobal(.*)$/;
13926
+
13875
13927
  /* Returns all own and shared events that should be attached to a single target element,
13876
13928
  * i.e. an individual bar specified by target: "data", eventKey: [index].
13877
13929
  * Returned events are scoped to the appropriate state. Either that of the component itself
13878
13930
  * (i.e. VictoryBar) in the case of own events, or that of the parent component
13879
13931
  * (i.e. VictoryChart) in the case of shared events
13880
13932
  */
13881
- // eslint-disable-next-line max-params,no-shadow
13882
-
13883
- function getEvents(props, target, eventKey, getScopedEvents) {
13933
+ // eslint-disable-next-line max-params
13934
+ function getEvents(props, target, eventKey, // eslint-disable-next-line no-shadow
13935
+ getScopedEvents) {
13884
13936
  var _this = this;
13885
13937
 
13886
13938
  // Returns all events that apply to a particular target element
@@ -14103,24 +14155,27 @@ function getScopedEvents(events, namespace, childType, baseProps) {
14103
14155
  return memo;
14104
14156
  }, {});
14105
14157
  }
14106
- /* Returns a partially applied event handler for a specific target element
14158
+ /*
14159
+ * Returns a partially applied event handler for a specific target element
14107
14160
  * This allows event handlers to have access to props controlling each element
14108
14161
  */
14109
14162
 
14110
14163
  function getPartialEvents(events, eventKey, childProps) {
14111
- return events ? lodash_keys__WEBPACK_IMPORTED_MODULE_0___default()(events).reduce(function (memo, eventName) {
14164
+ if (!events) return {};
14165
+ return lodash_keys__WEBPACK_IMPORTED_MODULE_0___default()(events).reduce(function (memo, eventName) {
14112
14166
  var appliedEvent = function (evt) {
14113
14167
  return events[eventName](evt, childProps, eventKey, eventName);
14114
14168
  };
14115
14169
 
14116
14170
  memo[eventName] = appliedEvent;
14117
14171
  return memo;
14118
- }, {}) : {};
14172
+ }, {});
14119
14173
  }
14174
+
14120
14175
  /* Returns the property of the state object corresponding to event changes for
14121
14176
  * a particular element
14122
14177
  */
14123
-
14178
+ // eslint-disable-next-line max-params
14124
14179
  function getEventState(eventKey, namespace, childType) {
14125
14180
  // Mandatory usage: `getEventState.bind(this)`
14126
14181
  // eslint-disable-next-line no-invalid-this
@@ -14305,6 +14360,7 @@ var emulateReactEvent = function (event) {
14305
14360
  nativeEvent: event
14306
14361
  });
14307
14362
  };
14363
+ //# sourceMappingURL=events.js.map
14308
14364
 
14309
14365
  /***/ }),
14310
14366
 
@@ -14386,7 +14442,7 @@ function getPolarRange(props, axis) {
14386
14442
 
14387
14443
  /**
14388
14444
  * creates an object with some keys excluded
14389
- * replacement for lodash.omit for performance. does not mimick the entire lodash.omit api
14445
+ * replacement for lodash.omit for performance. does not mimic the entire lodash.omit api
14390
14446
  * @param {Object} originalObject: created object will be based on this object
14391
14447
  * @param {Array<String>} ks: an array of keys to omit from the new object
14392
14448
  * @returns {Object} new object with same properties as originalObject
@@ -14399,6 +14455,7 @@ function omit(originalObject) {
14399
14455
  var newObject = {};
14400
14456
 
14401
14457
  for (var key in originalObject) {
14458
+ // @ts-expect-error String is not assignable to Key
14402
14459
  if (ks.indexOf(key) >= 0) {
14403
14460
  continue;
14404
14461
  }
@@ -14631,7 +14688,9 @@ function reduceChildren(children, iteratee) {
14631
14688
  var parentProps = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
14632
14689
  var initialMemo = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : [];
14633
14690
  var combine = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : function (memo, item) {
14634
- return memo.concat(item);
14691
+ return (// @ts-expect-error These defaults are hard to type
14692
+ memo.concat(item)
14693
+ );
14635
14694
  };
14636
14695
  var sharedProps = ["data", "domain", "categories", "polar", "startAngle", "endAngle", "minDomain", "maxDomain", "horizontal"];
14637
14696
 
@@ -14675,7 +14734,7 @@ function reduceChildren(children, iteratee) {
14675
14734
  /**
14676
14735
  * @param {Object} props: the props object
14677
14736
  * @returns {Boolean} returns true if the props object contains `horizontal: true` of if any
14678
- * children or nested children are hoizontal
14737
+ * children or nested children are horizontal
14679
14738
  */
14680
14739
 
14681
14740
  function isHorizontal(props) {
@@ -14698,6 +14757,7 @@ function isHorizontal(props) {
14698
14757
 
14699
14758
  return traverseChildren(react__WEBPACK_IMPORTED_MODULE_6___default().Children.toArray(props.children));
14700
14759
  }
14760
+ //# sourceMappingURL=helpers.js.map
14701
14761
 
14702
14762
  /***/ }),
14703
14763
 
@@ -14856,6 +14916,7 @@ var useAnimationState = function () {
14856
14916
  getProps: getProps
14857
14917
  };
14858
14918
  };
14919
+ //# sourceMappingURL=use-animation-state.js.map
14859
14920
 
14860
14921
  /***/ }),
14861
14922
 
@@ -14873,13 +14934,14 @@ __webpack_require__.r(__webpack_exports__);
14873
14934
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
14874
14935
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
14875
14936
 
14876
- var usePreviousProps = function (props) {
14937
+ function usePreviousProps(props) {
14877
14938
  var ref = react__WEBPACK_IMPORTED_MODULE_0___default().useRef();
14878
14939
  react__WEBPACK_IMPORTED_MODULE_0___default().useEffect(function () {
14879
14940
  ref.current = props;
14880
14941
  });
14881
- return ref.current || {};
14882
- };
14942
+ return ref.current;
14943
+ }
14944
+ //# sourceMappingURL=use-previous-props.js.map
14883
14945
 
14884
14946
  /***/ }),
14885
14947
 
@@ -14923,15 +14985,16 @@ function isMap(x) {
14923
14985
  return !!(x && x[IMMUTABLE_MAP]);
14924
14986
  }
14925
14987
  function shallowToJS(x, whitelist) {
14926
- return isIterable(x) ? x.reduce(function (prev, curr, key) {
14988
+ return isIterable(x) ? x.reduce(function (result, curr, key) {
14927
14989
  if (whitelist && whitelist[key]) {
14928
14990
  curr = shallowToJS(curr);
14929
14991
  }
14930
14992
 
14931
- prev[key] = curr;
14932
- return prev;
14993
+ result[key] = curr;
14994
+ return result;
14933
14995
  }, isList(x) ? [] : {}) : x;
14934
14996
  }
14997
+ //# sourceMappingURL=immutable.js.map
14935
14998
 
14936
14999
  /***/ }),
14937
15000
 
@@ -15189,6 +15252,7 @@ function getProps(props, index) {
15189
15252
  var tooltipTheme = theme && theme.tooltip || {};
15190
15253
  return lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default()({}, labelProps, _helpers__WEBPACK_IMPORTED_MODULE_1__.omit(tooltipTheme, ["style"]));
15191
15254
  }
15255
+ //# sourceMappingURL=label-helpers.js.map
15192
15256
 
15193
15257
  /***/ }),
15194
15258
 
@@ -15214,6 +15278,7 @@ function warn(message) {
15214
15278
  }
15215
15279
  }
15216
15280
  }
15281
+ //# sourceMappingURL=log.js.map
15217
15282
 
15218
15283
  /***/ }),
15219
15284
 
@@ -15241,12 +15306,10 @@ __webpack_require__.r(__webpack_exports__);
15241
15306
  /* harmony import */ var lodash_isRegExp__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_isRegExp__WEBPACK_IMPORTED_MODULE_0__);
15242
15307
  /* harmony import */ var lodash_find__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/find */ "../../../node_modules/lodash/find.js");
15243
15308
  /* harmony import */ var lodash_find__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_find__WEBPACK_IMPORTED_MODULE_1__);
15244
- /* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash/isFunction */ "../../../node_modules/lodash/isFunction.js");
15245
- /* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_isFunction__WEBPACK_IMPORTED_MODULE_2__);
15246
- /* harmony import */ var _log__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./log */ "../../victory-core/es/victory-util/log.js");
15247
- /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! prop-types */ "../../../node_modules/prop-types/index.js");
15248
- /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_4__);
15249
-
15309
+ /* harmony import */ var _log__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./log */ "../../victory-core/es/victory-util/log.js");
15310
+ /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! prop-types */ "../../../node_modules/prop-types/index.js");
15311
+ /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_3__);
15312
+ /* harmony import */ var _scale__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./scale */ "../../victory-core/es/victory-util/scale.js");
15250
15313
 
15251
15314
 
15252
15315
 
@@ -15254,6 +15317,8 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
15254
15317
 
15255
15318
 
15256
15319
 
15320
+
15321
+
15257
15322
  /**
15258
15323
  * Return a new validator based on `validator` but with the option to chain
15259
15324
  * `isRequired` onto the validation. This is nearly identical to how React
@@ -15261,30 +15326,30 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
15261
15326
  * @param {Function} validator Validation function.
15262
15327
  * @returns {Function} Validator with `isRequired` option.
15263
15328
  */
15264
-
15265
15329
  var makeChainable = function (validator) {
15266
- /* eslint-disable max-params */
15267
- var _chainable = function (isRequired, props, propName, componentName) {
15268
- var value = props[propName];
15330
+ var createChainable = function (isRequired) {
15331
+ return function (props, propName, componentName) {
15332
+ var value = props[propName];
15269
15333
 
15270
- if (value === undefined || value === null) {
15271
- if (isRequired) {
15272
- return new Error("Required `".concat(propName, "` was not specified in `").concat(componentName, "`."));
15273
- }
15334
+ if (value === undefined || value === null) {
15335
+ if (isRequired) {
15336
+ return new Error("Required `".concat(propName, "` was not specified in `").concat(componentName, "`."));
15337
+ }
15274
15338
 
15275
- return null;
15276
- }
15339
+ return null;
15340
+ }
15277
15341
 
15278
- for (var _len = arguments.length, rest = new Array(_len > 4 ? _len - 4 : 0), _key = 4; _key < _len; _key++) {
15279
- rest[_key - 4] = arguments[_key];
15280
- }
15342
+ for (var _len = arguments.length, rest = new Array(_len > 3 ? _len - 3 : 0), _key = 3; _key < _len; _key++) {
15343
+ rest[_key - 3] = arguments[_key];
15344
+ }
15281
15345
 
15282
- return validator.apply(void 0, [props, propName, componentName].concat(rest));
15346
+ return validator.apply(void 0, [props, propName, componentName].concat(rest));
15347
+ };
15283
15348
  };
15284
15349
 
15285
- var chainable = _chainable.bind(null, false);
15286
-
15287
- chainable.isRequired = _chainable.bind(null, true);
15350
+ var chainable = Object.assign(createChainable(false), {
15351
+ isRequired: createChainable(true)
15352
+ });
15288
15353
  return chainable;
15289
15354
  };
15290
15355
 
@@ -15314,7 +15379,7 @@ var getConstructor = function (value) {
15314
15379
  };
15315
15380
  /**
15316
15381
  * Get the name of the constructor used to create `value`, using
15317
- * `Object.protoype.toString`. If the value is null or undefined, return
15382
+ * `Object.prototype.toString`. If the value is null or undefined, return
15318
15383
  * "null" or "undefined", respectively.
15319
15384
  * @param {*} value Instance to return the constructor name of.
15320
15385
  * @returns {String} Name of the constructor.
@@ -15344,10 +15409,11 @@ function deprecated(propType, explanation) {
15344
15409
  var value = props[propName];
15345
15410
 
15346
15411
  if (value !== null && value !== undefined) {
15347
- _log__WEBPACK_IMPORTED_MODULE_3__.warn("\"".concat(propName, "\" property of \"").concat(componentName, "\" has been deprecated ").concat(explanation));
15412
+ _log__WEBPACK_IMPORTED_MODULE_2__.warn("\"".concat(propName, "\" property of \"").concat(componentName, "\" has been deprecated ").concat(explanation));
15348
15413
  }
15349
15414
 
15350
- return prop_types__WEBPACK_IMPORTED_MODULE_4___default().checkPropTypes(_defineProperty({}, propName, propType), props, propName, componentName);
15415
+ prop_types__WEBPACK_IMPORTED_MODULE_3___default().checkPropTypes(_defineProperty({}, propName, propType), props, propName, componentName);
15416
+ return null;
15351
15417
  };
15352
15418
  }
15353
15419
  /**
@@ -15366,7 +15432,7 @@ function allOfType(validators) {
15366
15432
 
15367
15433
  return validators.reduce(function (result, validator) {
15368
15434
  return result || validator.apply(void 0, [props, propName, componentName].concat(rest));
15369
- }, undefined);
15435
+ }, null);
15370
15436
  });
15371
15437
  }
15372
15438
  /**
@@ -15380,7 +15446,7 @@ var nonNegative = makeChainable(function (props, propName, componentName) {
15380
15446
  return new Error("`".concat(propName, "` in `").concat(componentName, "` must be a non-negative number."));
15381
15447
  }
15382
15448
 
15383
- return undefined;
15449
+ return null;
15384
15450
  });
15385
15451
  /**
15386
15452
  * Check that the value is an integer.
@@ -15393,7 +15459,7 @@ var integer = makeChainable(function (props, propName, componentName) {
15393
15459
  return new Error("`".concat(propName, "` in `").concat(componentName, "` must be an integer."));
15394
15460
  }
15395
15461
 
15396
- return undefined;
15462
+ return null;
15397
15463
  });
15398
15464
  /**
15399
15465
  * Check that the value is greater than zero.
@@ -15406,7 +15472,7 @@ var greaterThanZero = makeChainable(function (props, propName, componentName) {
15406
15472
  return new Error("`".concat(propName, "` in `").concat(componentName, "` must be a number greater than zero."));
15407
15473
  }
15408
15474
 
15409
- return undefined;
15475
+ return null;
15410
15476
  });
15411
15477
  /**
15412
15478
  * Check that the value is an Array of two unique values.
@@ -15419,32 +15485,20 @@ var domain = makeChainable(function (props, propName, componentName) {
15419
15485
  return new Error("`".concat(propName, "` in `").concat(componentName, "` must be an array of two unique numeric values."));
15420
15486
  }
15421
15487
 
15422
- return undefined;
15488
+ return null;
15423
15489
  });
15424
15490
  /**
15425
15491
  * Check that the value looks like a d3 `scale` function.
15426
15492
  */
15427
15493
 
15428
15494
  var scale = makeChainable(function (props, propName, componentName) {
15429
- var supportedScaleStrings = ["linear", "time", "log", "sqrt"];
15430
-
15431
- var validScale = function (scl) {
15432
- if (lodash_isFunction__WEBPACK_IMPORTED_MODULE_2___default()(scl)) {
15433
- return lodash_isFunction__WEBPACK_IMPORTED_MODULE_2___default()(scl.copy) && lodash_isFunction__WEBPACK_IMPORTED_MODULE_2___default()(scl.domain) && lodash_isFunction__WEBPACK_IMPORTED_MODULE_2___default()(scl.range);
15434
- } else if (typeof scl === "string") {
15435
- return supportedScaleStrings.indexOf(scl) !== -1;
15436
- }
15437
-
15438
- return false;
15439
- };
15440
-
15441
15495
  var value = props[propName];
15442
15496
 
15443
- if (!validScale(value)) {
15497
+ if (!_scale__WEBPACK_IMPORTED_MODULE_4__.validScale(value)) {
15444
15498
  return new Error("`".concat(propName, "` in `").concat(componentName, "` must be a d3 scale."));
15445
15499
  }
15446
15500
 
15447
- return undefined;
15501
+ return null;
15448
15502
  });
15449
15503
  /**
15450
15504
  * Check that an array contains items of the same type.
@@ -15458,7 +15512,7 @@ var homogeneousArray = makeChainable(function (props, propName, componentName) {
15458
15512
  }
15459
15513
 
15460
15514
  if (values.length < 2) {
15461
- return undefined;
15515
+ return null;
15462
15516
  }
15463
15517
 
15464
15518
  var comparisonConstructor = getConstructor(values[0]);
@@ -15473,7 +15527,7 @@ var homogeneousArray = makeChainable(function (props, propName, componentName) {
15473
15527
  return new Error("Expected `".concat(propName, "` in `").concat(componentName, "` to be a ") + "homogeneous array, but found types `".concat(constructorName, "` and ") + "`".concat(otherConstructorName, "`."));
15474
15528
  }
15475
15529
 
15476
- return undefined;
15530
+ return null;
15477
15531
  });
15478
15532
  /**
15479
15533
  * Check that array prop length matches props.data.length
@@ -15484,7 +15538,7 @@ var matchDataLength = makeChainable(function (props, propName) {
15484
15538
  return new Error("Length of data and ".concat(propName, " arrays must match."));
15485
15539
  }
15486
15540
 
15487
- return undefined;
15541
+ return null;
15488
15542
  });
15489
15543
  /**
15490
15544
  * Check that the value is a regular expression
@@ -15495,8 +15549,9 @@ var regExp = makeChainable(function (props, propName, componentName) {
15495
15549
  return new Error("`".concat(propName, "` in `").concat(componentName, "` must be a regular expression."));
15496
15550
  }
15497
15551
 
15498
- return undefined;
15552
+ return null;
15499
15553
  });
15554
+ //# sourceMappingURL=prop-types.js.map
15500
15555
 
15501
15556
  /***/ }),
15502
15557
 
@@ -15514,7 +15569,8 @@ __webpack_require__.r(__webpack_exports__);
15514
15569
  /* harmony export */ "getScaleFromName": () => (/* binding */ getScaleFromName),
15515
15570
  /* harmony export */ "getScaleFromProps": () => (/* binding */ getScaleFromProps),
15516
15571
  /* harmony export */ "getScaleType": () => (/* binding */ getScaleType),
15517
- /* harmony export */ "getType": () => (/* binding */ getType)
15572
+ /* harmony export */ "getType": () => (/* binding */ getType),
15573
+ /* harmony export */ "validScale": () => (/* binding */ validScale)
15518
15574
  /* harmony export */ });
15519
15575
  /* harmony import */ var lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/isPlainObject */ "../../../node_modules/lodash/isPlainObject.js");
15520
15576
  /* harmony import */ var lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_0__);
@@ -15532,8 +15588,9 @@ __webpack_require__.r(__webpack_exports__);
15532
15588
 
15533
15589
 
15534
15590
 
15535
- var supportedScaleStrings = ["linear", "time", "log", "sqrt"]; // Private Functions
15591
+ var supportedScaleStrings = ["linear", "time", "log", "sqrt"];
15536
15592
 
15593
+ // Private Functions
15537
15594
  function toNewName(scale) {
15538
15595
  // d3 scale changed the naming scheme for scale from "linear" -> "scaleLinear" etc.
15539
15596
  var capitalize = function (s) {
@@ -15603,7 +15660,13 @@ function getScaleTypeFromData(props, axis) {
15603
15660
 
15604
15661
 
15605
15662
  function getScaleFromName(name) {
15606
- return validScale(name) ? victory_vendor_d3_scale__WEBPACK_IMPORTED_MODULE_5__[toNewName(name)]() : victory_vendor_d3_scale__WEBPACK_IMPORTED_MODULE_6__["default"]();
15663
+ if (validScale(name)) {
15664
+ var methodName = toNewName(name); // @ts-expect-error scaleTime is not directly compatible with our D3Scale definition
15665
+
15666
+ return victory_vendor_d3_scale__WEBPACK_IMPORTED_MODULE_5__[methodName]();
15667
+ }
15668
+
15669
+ return victory_vendor_d3_scale__WEBPACK_IMPORTED_MODULE_6__["default"]();
15607
15670
  }
15608
15671
  function getBaseScale(props, axis) {
15609
15672
  var scale = getScaleFromProps(props, axis);
@@ -15613,7 +15676,7 @@ function getBaseScale(props, axis) {
15613
15676
  }
15614
15677
 
15615
15678
  var defaultScale = getScaleFromDomain(props, axis) || getScaleTypeFromData(props, axis);
15616
- return victory_vendor_d3_scale__WEBPACK_IMPORTED_MODULE_5__[toNewName(defaultScale)]();
15679
+ return getScaleFromName(defaultScale);
15617
15680
  }
15618
15681
  function getDefaultScale() {
15619
15682
  return victory_vendor_d3_scale__WEBPACK_IMPORTED_MODULE_6__["default"]();
@@ -15626,7 +15689,7 @@ function getScaleFromProps(props, axis) {
15626
15689
  var scale = props.scale[axis] || props.scale;
15627
15690
 
15628
15691
  if (validScale(scale)) {
15629
- return lodash_isFunction__WEBPACK_IMPORTED_MODULE_1___default()(scale) ? scale : victory_vendor_d3_scale__WEBPACK_IMPORTED_MODULE_5__[toNewName(scale)]();
15692
+ return lodash_isFunction__WEBPACK_IMPORTED_MODULE_1___default()(scale) ? scale : getScaleFromName(scale);
15630
15693
  }
15631
15694
 
15632
15695
  return undefined;
@@ -15661,6 +15724,7 @@ function getType(scale) {
15661
15724
  })[0];
15662
15725
  return scaleType ? scaleType.name : undefined;
15663
15726
  }
15727
+ //# sourceMappingURL=scale.js.map
15664
15728
 
15665
15729
  /***/ }),
15666
15730
 
@@ -15732,6 +15796,7 @@ function getColorScale(name) {
15732
15796
  };
15733
15797
  return name ? scales[name] : scales.grayscale;
15734
15798
  }
15799
+ //# sourceMappingURL=style.js.map
15735
15800
 
15736
15801
  /***/ }),
15737
15802
 
@@ -15936,8 +16001,10 @@ var _getSizeWithRotate = function (axisSize, dependentSize, angle) {
15936
16001
 
15937
16002
 
15938
16003
  var convertLengthToPixels = function (length, fontSize) {
15939
- var attribute = length.match(/[a-zA-Z%]+/) && length.match(/[a-zA-Z%]+/)[0];
15940
- var value = length.match(/[0-9.,]+/);
16004
+ var _length$match;
16005
+
16006
+ var attribute = (_length$match = length.match(/[a-zA-Z%]+/)) === null || _length$match === void 0 ? void 0 : _length$match[0];
16007
+ var value = Number(length.match(/[0-9.,]+/));
15941
16008
  var result;
15942
16009
 
15943
16010
  if (!attribute) {
@@ -16003,9 +16070,9 @@ var _approximateTextHeightInternal = function (text, style) {
16003
16070
  var height = containsCaps ? lineStyle.fontSize * coefficients.lineCapitalCoef : lineStyle.fontSize;
16004
16071
  return total + lineStyle.lineHeight * height;
16005
16072
  }, 0);
16006
- }; // Stubbable implementation.
16007
-
16073
+ };
16008
16074
 
16075
+ // Stubbable implementation.
16009
16076
  var _approximateTextSizeInternal = {
16010
16077
  impl: function (text, style) {
16011
16078
  var angle = Array.isArray(style) ? style[0] && style[0].angle : style && style.angle;
@@ -16024,7 +16091,7 @@ var _approximateTextSizeInternal = {
16024
16091
  };
16025
16092
  /**
16026
16093
  * Predict text size by font params.
16027
- * @param {string} text Content for width calculation.
16094
+ * @param {string|string[]} text Content for width calculation.
16028
16095
  * @param {Object} style Text styles, ,fontFamily, fontSize, etc.
16029
16096
  * @param {string} style.fontFamily Text fontFamily.
16030
16097
  * @param {(number|string)} style.fontSize Text fontSize.
@@ -16037,6 +16104,7 @@ var _approximateTextSizeInternal = {
16037
16104
  var approximateTextSize = function (text, style) {
16038
16105
  return _approximateTextSizeInternal.impl(text, style);
16039
16106
  };
16107
+ //# sourceMappingURL=textsize.js.map
16040
16108
 
16041
16109
  /***/ }),
16042
16110
 
@@ -16067,6 +16135,7 @@ var TimerContext = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().cre
16067
16135
  });
16068
16136
  TimerContext.displayName = "TimerContext";
16069
16137
  /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (TimerContext);
16138
+ //# sourceMappingURL=timer-context.js.map
16070
16139
 
16071
16140
  /***/ }),
16072
16141
 
@@ -16169,6 +16238,7 @@ var Timer = /*#__PURE__*/function () {
16169
16238
  }();
16170
16239
 
16171
16240
 
16241
+ //# sourceMappingURL=timer.js.map
16172
16242
 
16173
16243
  /***/ }),
16174
16244
 
@@ -16259,7 +16329,7 @@ function getChildData(child) {
16259
16329
  }
16260
16330
  /**
16261
16331
  * If a parent component has animation enabled, calculate the transitions
16262
- * for any data of any child component that supports data transitions
16332
+ * for any data of any child component that supports data transitions.
16263
16333
  * Data transitions are defined as any two datasets where data nodes exist
16264
16334
  * in the first set and not the second, in the second and not the first,
16265
16335
  * or both.
@@ -16388,7 +16458,7 @@ function getChildPropsOnExit(animate, child, data, exitingNodes, cb) {
16388
16458
 
16389
16459
  if (exitingNodes) {
16390
16460
  // After the exit transition occurs, trigger the animations for
16391
- // nodes that are neither exiting or entering.
16461
+ // nodes that are neither exiting nor entering.
16392
16462
  animate.onEnd = cb;
16393
16463
  var before = animate.onExit && animate.onExit.before ? animate.onExit.before : (lodash_identity__WEBPACK_IMPORTED_MODULE_1___default()); // If nodes need to exit, transform them with the provided onExit.before function.
16394
16464
 
@@ -16458,7 +16528,7 @@ function getChildPropsOnEnter(animate, data, enteringNodes, cb) {
16458
16528
  * and its index in the parent's children array.
16459
16529
  *
16460
16530
  * In particular, this will include an `animate` object that is set appropriately
16461
- * so that each child will be synchoronized for each stage of a transition
16531
+ * so that each child will be synchronized for each stage of a transition
16462
16532
  * animation. It will also include a transformed `data` object, where each datum
16463
16533
  * is transformed by `animate.onExit` and `animate.onEnter` `before` and `after`
16464
16534
  * functions.
@@ -16603,6 +16673,7 @@ function getTransitionPropsFactory(props, state, setState) {
16603
16673
  };
16604
16674
  };
16605
16675
  }
16676
+ //# sourceMappingURL=transitions.js.map
16606
16677
 
16607
16678
  /***/ }),
16608
16679
 
@@ -16641,7 +16712,7 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
16641
16712
 
16642
16713
  /*
16643
16714
  USER_PROPS_SAFELIST is to contain any string deemed safe for user props.
16644
- The startsWidth array will contain the start of any accepted user-prop that
16715
+ The startsWidth array will contain the start of any accepted user-prop that
16645
16716
  starts with these characters.
16646
16717
  The exactMatch will contain a list of exact prop names that are accepted.
16647
16718
  */
@@ -16650,6 +16721,7 @@ var USER_PROPS_SAFELIST = {
16650
16721
  startsWith: ["data-", "aria-"],
16651
16722
  exactMatch: []
16652
16723
  };
16724
+
16653
16725
  /**
16654
16726
  * doesPropStartWith: Function that takes a prop's key and runs it against all
16655
16727
  * options in the USER_PROPS_SAFELIST and checks to see if it starts with any
@@ -16658,7 +16730,6 @@ var USER_PROPS_SAFELIST = {
16658
16730
  * @returns {Boolean}: returns true if the key starts with an option or false if
16659
16731
  * otherwise
16660
16732
  */
16661
-
16662
16733
  var doesPropStartWith = function (key) {
16663
16734
  var startsWith = false;
16664
16735
  USER_PROPS_SAFELIST.startsWith.forEach(function (starterString) {
@@ -16735,14 +16806,15 @@ var getSafeUserProps = function (props) {
16735
16806
  /**
16736
16807
  * Wraps a component and adds safe user props
16737
16808
  *
16738
- * @param {ReactNode} component: parent component
16809
+ * @param {ReactElement} component: parent component
16739
16810
  * @param {Object} props: props to be filtered
16740
- * @returns {ReactNode} modified component
16811
+ * @returns {ReactElement} modified component
16741
16812
  */
16742
16813
 
16743
16814
  var withSafeUserProps = function (component, props) {
16744
16815
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.cloneElement(component, getSafeUserProps(props));
16745
16816
  };
16817
+ //# sourceMappingURL=user-props.js.map
16746
16818
 
16747
16819
  /***/ }),
16748
16820
 
@@ -16955,7 +17027,7 @@ function getData(props, childComponents) {
16955
17027
  }
16956
17028
 
16957
17029
  childComponents = childComponents || react__WEBPACK_IMPORTED_MODULE_9___default().Children.toArray(props.children);
16958
- return getDataFromChildren(childComponents);
17030
+ return getDataFromChildren(props, childComponents);
16959
17031
  }
16960
17032
  function getWidth(props, groupLength, seriesLength) {
16961
17033
  var datasets = props.datasets,
@@ -17017,7 +17089,7 @@ function getDefaultDomainPadding(props, axis, childComponents) {
17017
17089
  function getDomainFromChildren(props, axis, childComponents) {
17018
17090
  // eslint-disable-line max-statements, complexity, max-len
17019
17091
  var children = childComponents ? childComponents.slice(0) : react__WEBPACK_IMPORTED_MODULE_9___default().Children.toArray(props.children);
17020
- var parentData = props.data ? _data__WEBPACK_IMPORTED_MODULE_12__.getData(props, axis) : undefined;
17092
+ var parentData = props.data ? _data__WEBPACK_IMPORTED_MODULE_12__.getData(props) : undefined;
17021
17093
  var polar = props.polar,
17022
17094
  startAngle = props.startAngle,
17023
17095
  endAngle = props.endAngle,
@@ -17251,6 +17323,7 @@ function getCategories(props, childComponents, allStrings) {
17251
17323
  y: yCategories.length > 0 ? yCategories : undefined
17252
17324
  };
17253
17325
  }
17326
+ //# sourceMappingURL=wrapper.js.map
17254
17327
 
17255
17328
  /***/ }),
17256
17329
 
@@ -17694,6 +17767,7 @@ var getBaseProps = function (props, fallbackProps) {
17694
17767
  return childProps;
17695
17768
  }, initialChildProps);
17696
17769
  };
17770
+ //# sourceMappingURL=helper-methods.js.map
17697
17771
 
17698
17772
  /***/ }),
17699
17773
 
@@ -17917,7 +17991,7 @@ VictoryPolarAxis.defaultTransitions = {
17917
17991
  duration: 500
17918
17992
  }
17919
17993
  };
17920
- VictoryPolarAxis.propTypes = _objectSpread(_objectSpread({}, victory_core__WEBPACK_IMPORTED_MODULE_4__.baseProps), {}, {
17994
+ VictoryPolarAxis.propTypes = _objectSpread(_objectSpread({}, victory_core__WEBPACK_IMPORTED_MODULE_4__.CommonProps.baseProps), {}, {
17921
17995
  axisAngle: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().number),
17922
17996
  axisComponent: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().element),
17923
17997
  axisLabelComponent: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().element),
@@ -17987,7 +18061,8 @@ VictoryPolarAxis.getBaseProps = function (props) {
17987
18061
  };
17988
18062
 
17989
18063
  VictoryPolarAxis.expectedComponents = ["axisComponent", "circularAxisComponent", "groupComponent", "containerComponent", "tickComponent", "tickLabelComponent", "gridComponent", "circularGridComponent"];
17990
- /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((0,victory_core__WEBPACK_IMPORTED_MODULE_13__["default"])(VictoryPolarAxis, options));
18064
+ /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((0,victory_core__WEBPACK_IMPORTED_MODULE_13__.addEvents)(VictoryPolarAxis, options));
18065
+ //# sourceMappingURL=victory-polar-axis.js.map
17991
18066
 
17992
18067
  /***/ }),
17993
18068
 
@@ -18393,6 +18468,7 @@ VictorySharedEvents.defaultProps = {
18393
18468
  };
18394
18469
  VictorySharedEvents.contextType = victory_core__WEBPACK_IMPORTED_MODULE_14__["default"];
18395
18470
 
18471
+ //# sourceMappingURL=victory-shared-events.js.map
18396
18472
 
18397
18473
  /***/ }),
18398
18474
 
@@ -24643,13 +24719,13 @@ var __webpack_exports__ = {};
24643
24719
  (() => {
24644
24720
  "use strict";
24645
24721
  /*!******************!*\
24646
- !*** ./index.js ***!
24722
+ !*** ./index.ts ***!
24647
24723
  \******************/
24648
24724
  __webpack_require__.r(__webpack_exports__);
24649
24725
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
24650
- /* harmony export */ "VictoryChart": () => (/* reexport safe */ _victory_chart__WEBPACK_IMPORTED_MODULE_0__["default"])
24726
+ /* harmony export */ "VictoryChart": () => (/* reexport safe */ _victory_chart__WEBPACK_IMPORTED_MODULE_0__.VictoryChart)
24651
24727
  /* harmony export */ });
24652
- /* harmony import */ var _victory_chart__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./victory-chart */ "./victory-chart.js");
24728
+ /* harmony import */ var _victory_chart__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./victory-chart */ "./victory-chart.tsx");
24653
24729
 
24654
24730
  })();
24655
24731