victory-bar 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.
Files changed (42) hide show
  1. package/dist/victory-bar.js +234 -171
  2. package/dist/victory-bar.min.js +1 -1
  3. package/es/bar-helper-methods.js +2 -1
  4. package/es/bar.js +2 -1
  5. package/es/geometry-helper-methods.js +2 -1
  6. package/es/helper-methods.js +2 -1
  7. package/es/index.d.ts +1 -1
  8. package/es/index.js +2 -1
  9. package/es/path-helper-methods.js +2 -1
  10. package/es/v37/victory-bar.d.ts +23 -0
  11. package/es/v37/victory-bar.js +98 -0
  12. package/es/v37/victory-bar.stories.d.ts +13 -0
  13. package/es/v37/victory-bar.stories.js +18 -0
  14. package/es/victory-bar-beta.d.ts +23 -0
  15. package/es/victory-bar-beta.js +102 -0
  16. package/es/victory-bar.js +2 -1
  17. package/lib/bar-helper-methods.js +2 -1
  18. package/lib/bar.js +2 -1
  19. package/lib/geometry-helper-methods.js +2 -1
  20. package/lib/helper-methods.js +2 -1
  21. package/lib/index.d.ts +1 -1
  22. package/lib/index.js +2 -1
  23. package/lib/path-helper-methods.js +2 -1
  24. package/lib/v37/victory-bar.d.ts +23 -0
  25. package/lib/v37/victory-bar.js +115 -0
  26. package/lib/v37/victory-bar.stories.d.ts +13 -0
  27. package/lib/v37/victory-bar.stories.js +41 -0
  28. package/lib/victory-bar-beta.d.ts +23 -0
  29. package/lib/victory-bar-beta.js +122 -0
  30. package/lib/victory-bar.js +2 -1
  31. package/package.json +4 -4
  32. package/src/bar-helper-methods.js +4 -4
  33. package/src/bar.js +7 -7
  34. package/src/geometry-helper-methods.js +5 -5
  35. package/src/helper-methods.js +9 -9
  36. package/src/index.d.ts +1 -1
  37. package/src/index.js +1 -1
  38. package/src/path-helper-methods.js +18 -18
  39. package/src/v37/victory-bar.stories.tsx +25 -0
  40. package/src/v37/victory-bar.tsx +96 -0
  41. package/src/victory-bar-beta.tsx +127 -0
  42. package/src/victory-bar.js +13 -13
@@ -213,7 +213,7 @@ var Bar = function (props) {
213
213
  }));
214
214
  };
215
215
 
216
- Bar.propTypes = _objectSpread(_objectSpread({}, victory_core__WEBPACK_IMPORTED_MODULE_5__.primitiveProps), {}, {
216
+ Bar.propTypes = _objectSpread(_objectSpread({}, victory_core__WEBPACK_IMPORTED_MODULE_5__.CommonProps.primitiveProps), {}, {
217
217
  alignment: prop_types__WEBPACK_IMPORTED_MODULE_6___default().oneOf(["start", "middle", "end"]),
218
218
  barRatio: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().number),
219
219
  barWidth: prop_types__WEBPACK_IMPORTED_MODULE_6___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_6___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_6___default().func)]),
@@ -1212,7 +1212,7 @@ VictoryBar.defaultTransitions = {
1212
1212
  }
1213
1213
  }
1214
1214
  };
1215
- VictoryBar.propTypes = _objectSpread(_objectSpread(_objectSpread({}, victory_core__WEBPACK_IMPORTED_MODULE_3__.baseProps), victory_core__WEBPACK_IMPORTED_MODULE_3__.dataProps), {}, {
1215
+ VictoryBar.propTypes = _objectSpread(_objectSpread(_objectSpread({}, victory_core__WEBPACK_IMPORTED_MODULE_3__.CommonProps.baseProps), victory_core__WEBPACK_IMPORTED_MODULE_3__.CommonProps.dataProps), {}, {
1216
1216
  alignment: prop_types__WEBPACK_IMPORTED_MODULE_4___default().oneOf(["start", "middle", "end"]),
1217
1217
  barRatio: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().number),
1218
1218
  barWidth: prop_types__WEBPACK_IMPORTED_MODULE_4___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_4___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_4___default().func)]),
@@ -1248,7 +1248,7 @@ VictoryBar.getBaseProps = function (props) {
1248
1248
  };
1249
1249
 
1250
1250
  VictoryBar.expectedComponents = ["dataComponent", "labelComponent", "groupComponent", "containerComponent"];
1251
- /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((0,victory_core__WEBPACK_IMPORTED_MODULE_12__["default"])(VictoryBar));
1251
+ /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((0,victory_core__WEBPACK_IMPORTED_MODULE_12__.addEvents)(VictoryBar));
1252
1252
 
1253
1253
  /***/ }),
1254
1254
 
@@ -7815,7 +7815,7 @@ var isInterpolatable = function (obj) {
7815
7815
  // component is only going to call the function (in which case it's
7816
7816
  // safely interpolatable) or if it's going to access special properties
7817
7817
  // (in which case our function generated from `interpolateFunction` will
7818
- // most likely cause an error. We could check for enumerable properties
7818
+ // most likely cause an error). We could check for enumerable properties
7819
7819
  // on the function object here to see if it's a "plain" function, but
7820
7820
  // let's just require that components prevent such function props from
7821
7821
  // being animated in the first place.
@@ -7980,16 +7980,18 @@ var victoryInterpolator = function (a, b) {
7980
7980
  }
7981
7981
 
7982
7982
  if (lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_1___default()(a) || lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_1___default()(b)) {
7983
- // @ts-expect-error These generics are tough, but they work ok?
7983
+ // @ts-expect-error These generics are tough, but they work :)
7984
7984
  return interpolateObject(a, b);
7985
7985
  }
7986
7986
 
7987
7987
  if (typeof a === "string" || typeof b === "string") {
7988
7988
  return interpolateString(a, b);
7989
- }
7989
+ } // @ts-expect-error These generics are tough, but they work :)
7990
+
7990
7991
 
7991
7992
  return (0,victory_vendor_d3_interpolate__WEBPACK_IMPORTED_MODULE_2__["default"])(a, b);
7992
7993
  };
7994
+ //# sourceMappingURL=util.js.map
7993
7995
 
7994
7996
  /***/ }),
7995
7997
 
@@ -8252,6 +8254,7 @@ VictoryAnimation.defaultProps = {
8252
8254
  easing: "quadInOut"
8253
8255
  };
8254
8256
  VictoryAnimation.contextType = _victory_util_timer_context__WEBPACK_IMPORTED_MODULE_5__["default"];
8257
+ //# sourceMappingURL=victory-animation.js.map
8255
8258
 
8256
8259
  /***/ }),
8257
8260
 
@@ -8565,6 +8568,7 @@ VictoryContainer.defaultProps = {
8565
8568
  role: "img"
8566
8569
  };
8567
8570
  VictoryContainer.contextType = _victory_util_timer_context__WEBPACK_IMPORTED_MODULE_12__["default"];
8571
+ //# sourceMappingURL=victory-container.js.map
8568
8572
 
8569
8573
  /***/ }),
8570
8574
 
@@ -9170,10 +9174,9 @@ VictoryLabel.propTypes = {
9170
9174
  inline: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().bool),
9171
9175
  labelPlacement: prop_types__WEBPACK_IMPORTED_MODULE_11___default().oneOf(["parallel", "perpendicular", "vertical"]),
9172
9176
  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)]),
9173
- // @ts-expect-error "x is required in origin"
9174
9177
  origin: prop_types__WEBPACK_IMPORTED_MODULE_11___default().shape({
9175
- x: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_12__.nonNegative,
9176
- y: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_12__.nonNegative
9178
+ x: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_12__.nonNegative.isRequired,
9179
+ y: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_12__.nonNegative.isRequired
9177
9180
  }),
9178
9181
  polar: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().bool),
9179
9182
  renderInPortal: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().bool),
@@ -9207,6 +9210,7 @@ VictoryLabel.defaultProps = {
9207
9210
  // Magic number from d3.
9208
9211
  lineHeight: 1
9209
9212
  };
9213
+ //# sourceMappingURL=victory-label.js.map
9210
9214
 
9211
9215
  /***/ }),
9212
9216
 
@@ -9231,6 +9235,7 @@ __webpack_require__.r(__webpack_exports__);
9231
9235
  */
9232
9236
  var PortalContext = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createContext({});
9233
9237
  PortalContext.displayName = "PortalContext";
9238
+ //# sourceMappingURL=portal-context.js.map
9234
9239
 
9235
9240
  /***/ }),
9236
9241
 
@@ -9342,6 +9347,7 @@ Portal.propTypes = {
9342
9347
  viewBox: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().string),
9343
9348
  width: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_3__.nonNegative
9344
9349
  };
9350
+ //# sourceMappingURL=portal.js.map
9345
9351
 
9346
9352
  /***/ }),
9347
9353
 
@@ -9485,6 +9491,7 @@ VictoryPortal.defaultProps = {
9485
9491
  groupComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("g", null)
9486
9492
  };
9487
9493
  VictoryPortal.contextType = _portal_context__WEBPACK_IMPORTED_MODULE_5__.PortalContext;
9494
+ //# sourceMappingURL=victory-portal.js.map
9488
9495
 
9489
9496
  /***/ }),
9490
9497
 
@@ -9521,6 +9528,7 @@ var Path = function (props) {
9521
9528
  // @ts-expect-error FIXME: "id cannot be a number"
9522
9529
  react__WEBPACK_IMPORTED_MODULE_0___default().createElement("path", rest);
9523
9530
  };
9531
+ //# sourceMappingURL=path.js.map
9524
9532
 
9525
9533
  /***/ }),
9526
9534
 
@@ -9563,6 +9571,7 @@ var Rect = function (props) {
9563
9571
  vectorEffect: "non-scaling-stroke"
9564
9572
  }, rest));
9565
9573
  };
9574
+ //# sourceMappingURL=rect.js.map
9566
9575
 
9567
9576
  /***/ }),
9568
9577
 
@@ -9606,6 +9615,7 @@ Text.propTypes = {
9606
9615
  desc: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().string),
9607
9616
  title: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().string)
9608
9617
  };
9618
+ //# sourceMappingURL=text.js.map
9609
9619
 
9610
9620
  /***/ }),
9611
9621
 
@@ -9630,6 +9640,7 @@ var TSpan = function (props) {
9630
9640
  react__WEBPACK_IMPORTED_MODULE_0___default().createElement("tspan", props)
9631
9641
  );
9632
9642
  };
9643
+ //# sourceMappingURL=tspan.js.map
9633
9644
 
9634
9645
  /***/ }),
9635
9646
 
@@ -9905,6 +9916,7 @@ var grayscale = {
9905
9916
  }
9906
9917
  }, baseProps)
9907
9918
  };
9919
+ //# sourceMappingURL=grayscale.js.map
9908
9920
 
9909
9921
  /***/ }),
9910
9922
 
@@ -10207,6 +10219,7 @@ var material = {
10207
10219
  }
10208
10220
  }, baseProps)
10209
10221
  };
10222
+ //# sourceMappingURL=material.js.map
10210
10223
 
10211
10224
  /***/ }),
10212
10225
 
@@ -10230,6 +10243,7 @@ var VictoryTheme = {
10230
10243
  grayscale: _grayscale__WEBPACK_IMPORTED_MODULE_0__.grayscale,
10231
10244
  material: _material__WEBPACK_IMPORTED_MODULE_1__.material
10232
10245
  };
10246
+ //# sourceMappingURL=victory-theme.js.map
10233
10247
 
10234
10248
  /***/ }),
10235
10249
 
@@ -10498,6 +10512,7 @@ VictoryTransition.propTypes = {
10498
10512
  children: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().node)
10499
10513
  };
10500
10514
  VictoryTransition.contextType = _victory_util_timer_context__WEBPACK_IMPORTED_MODULE_10__["default"];
10515
+ //# sourceMappingURL=victory-transition.js.map
10501
10516
 
10502
10517
  /***/ }),
10503
10518
 
@@ -10510,26 +10525,26 @@ VictoryTransition.contextType = _victory_util_timer_context__WEBPACK_IMPORTED_MO
10510
10525
  "use strict";
10511
10526
  __webpack_require__.r(__webpack_exports__);
10512
10527
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
10513
- /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
10528
+ /* harmony export */ "addEvents": () => (/* binding */ addEvents)
10514
10529
  /* harmony export */ });
10515
- /* harmony import */ var lodash_difference__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/difference */ "../../../node_modules/lodash/difference.js");
10516
- /* harmony import */ var lodash_difference__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_difference__WEBPACK_IMPORTED_MODULE_0__);
10517
- /* harmony import */ var lodash_isNil__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/isNil */ "../../../node_modules/lodash/isNil.js");
10518
- /* harmony import */ var lodash_isNil__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_isNil__WEBPACK_IMPORTED_MODULE_1__);
10519
- /* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash/isEmpty */ "../../../node_modules/lodash/isEmpty.js");
10520
- /* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_isEmpty__WEBPACK_IMPORTED_MODULE_2__);
10521
- /* harmony import */ var lodash_without__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! lodash/without */ "../../../node_modules/lodash/without.js");
10522
- /* harmony import */ var lodash_without__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(lodash_without__WEBPACK_IMPORTED_MODULE_3__);
10523
- /* harmony import */ var lodash_pick__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! lodash/pick */ "../../../node_modules/lodash/pick.js");
10524
- /* harmony import */ var lodash_pick__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(lodash_pick__WEBPACK_IMPORTED_MODULE_4__);
10525
- /* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! lodash/isFunction */ "../../../node_modules/lodash/isFunction.js");
10526
- /* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(lodash_isFunction__WEBPACK_IMPORTED_MODULE_5__);
10527
- /* harmony import */ var lodash_keys__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! lodash/keys */ "../../../node_modules/lodash/keys.js");
10528
- /* harmony import */ var lodash_keys__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(lodash_keys__WEBPACK_IMPORTED_MODULE_6__);
10529
- /* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! lodash/assign */ "../../../node_modules/lodash/assign.js");
10530
- /* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(lodash_assign__WEBPACK_IMPORTED_MODULE_7__);
10531
- /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! lodash/defaults */ "../../../node_modules/lodash/defaults.js");
10532
- /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_8__);
10530
+ /* harmony import */ var lodash_without__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/without */ "../../../node_modules/lodash/without.js");
10531
+ /* harmony import */ var lodash_without__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_without__WEBPACK_IMPORTED_MODULE_0__);
10532
+ /* harmony import */ var lodash_pick__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/pick */ "../../../node_modules/lodash/pick.js");
10533
+ /* harmony import */ var lodash_pick__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_pick__WEBPACK_IMPORTED_MODULE_1__);
10534
+ /* harmony import */ var lodash_keys__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash/keys */ "../../../node_modules/lodash/keys.js");
10535
+ /* harmony import */ var lodash_keys__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_keys__WEBPACK_IMPORTED_MODULE_2__);
10536
+ /* harmony import */ var lodash_isNil__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! lodash/isNil */ "../../../node_modules/lodash/isNil.js");
10537
+ /* harmony import */ var lodash_isNil__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(lodash_isNil__WEBPACK_IMPORTED_MODULE_3__);
10538
+ /* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! lodash/isFunction */ "../../../node_modules/lodash/isFunction.js");
10539
+ /* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(lodash_isFunction__WEBPACK_IMPORTED_MODULE_4__);
10540
+ /* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! lodash/isEmpty */ "../../../node_modules/lodash/isEmpty.js");
10541
+ /* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(lodash_isEmpty__WEBPACK_IMPORTED_MODULE_5__);
10542
+ /* harmony import */ var lodash_difference__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! lodash/difference */ "../../../node_modules/lodash/difference.js");
10543
+ /* harmony import */ var lodash_difference__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(lodash_difference__WEBPACK_IMPORTED_MODULE_6__);
10544
+ /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! lodash/defaults */ "../../../node_modules/lodash/defaults.js");
10545
+ /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_7__);
10546
+ /* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! lodash/assign */ "../../../node_modules/lodash/assign.js");
10547
+ /* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(lodash_assign__WEBPACK_IMPORTED_MODULE_8__);
10533
10548
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! react */ "react");
10534
10549
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_9__);
10535
10550
  /* harmony import */ var _events__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./events */ "../../victory-core/es/victory-util/events.js");
@@ -10582,13 +10597,14 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
10582
10597
 
10583
10598
 
10584
10599
 
10585
- // DISCLAIMER:
10600
+
10601
+
10602
+ // DISCLAIMER:
10586
10603
  // This file is not currently tested, and it is first on the list of files
10587
10604
  // to refactor in our current refactoring effort. Please do not make changes
10588
10605
  // to this file without manual testing and/or refactoring and adding tests.
10589
-
10590
10606
  var datumHasXandY = function (datum) {
10591
- return !lodash_isNil__WEBPACK_IMPORTED_MODULE_1___default()(datum._x) && !lodash_isNil__WEBPACK_IMPORTED_MODULE_1___default()(datum._y);
10607
+ return !lodash_isNil__WEBPACK_IMPORTED_MODULE_3___default()(datum._x) && !lodash_isNil__WEBPACK_IMPORTED_MODULE_3___default()(datum._y);
10592
10608
  }; // used for checking state changes. Expected components can be passed in via options
10593
10609
 
10594
10610
 
@@ -10600,44 +10616,45 @@ var defaultComponents = [{
10600
10616
  }, {
10601
10617
  name: "labels"
10602
10618
  }];
10603
- /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (function (WrappedComponent, options) {
10604
- return /*#__PURE__*/function (_WrappedComponent) {
10605
- _inherits(addEvents, _WrappedComponent);
10619
+ function addEvents(WrappedComponent) {
10620
+ var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
10621
+
10622
+ // @ts-expect-error "TS2545: A mixin class must have a constructor with a single rest parameter of type 'any[]'."
10623
+ var AddEventsMixin = /*#__PURE__*/function (_WrappedComponent) {
10624
+ _inherits(AddEventsMixin, _WrappedComponent);
10606
10625
 
10607
- var _super = _createSuper(addEvents);
10626
+ var _super = _createSuper(AddEventsMixin);
10608
10627
 
10609
- function addEvents(props) {
10628
+ function AddEventsMixin(props) {
10610
10629
  var _this;
10611
10630
 
10612
- _classCallCheck(this, addEvents);
10631
+ _classCallCheck(this, AddEventsMixin);
10613
10632
 
10614
10633
  _this = _super.call(this, props);
10615
- var getScopedEvents = _events__WEBPACK_IMPORTED_MODULE_11__.getScopedEvents.bind(_assertThisInitialized(_this));
10616
- var boundGetEvents = _events__WEBPACK_IMPORTED_MODULE_11__.getEvents.bind(_assertThisInitialized(_this));
10617
10634
  _this.state = {};
10635
+ _this.getEventState = _events__WEBPACK_IMPORTED_MODULE_11__.getEventState.bind(_assertThisInitialized(_this));
10636
+ _this.getScopedEvents = _events__WEBPACK_IMPORTED_MODULE_11__.getScopedEvents.bind(_assertThisInitialized(_this));
10618
10637
 
10619
10638
  _this.getEvents = function (p, target, eventKey) {
10620
- return boundGetEvents(p, target, eventKey, getScopedEvents);
10639
+ return _events__WEBPACK_IMPORTED_MODULE_11__.getEvents.call(_assertThisInitialized(_this), p, target, eventKey, _this.getScopedEvents);
10621
10640
  };
10622
10641
 
10623
- _this.getEventState = _events__WEBPACK_IMPORTED_MODULE_11__.getEventState.bind(_assertThisInitialized(_this));
10624
-
10625
- var calculatedValues = _this.getCalculatedValues(props);
10626
-
10627
- _this.cacheValues(calculatedValues);
10628
-
10629
- _this.externalMutations = _this.getExternalMutations(props);
10630
- _this.calculatedState = _this.getStateChanges(props);
10642
+ _this.externalMutations = _this.getExternalMutations(_this.props);
10643
+ _this.calculatedState = _this.getStateChanges(_this.props);
10631
10644
  _this.globalEvents = {};
10632
10645
  _this.prevGlobalEventKeys = [];
10633
10646
  _this.boundGlobalEvents = {};
10647
+
10648
+ _this.cacheValues(_this.getCalculatedValues(props));
10649
+
10634
10650
  return _this;
10635
10651
  }
10636
10652
 
10637
- _createClass(addEvents, [{
10653
+ _createClass(AddEventsMixin, [{
10638
10654
  key: "shouldComponentUpdate",
10639
10655
  value: function shouldComponentUpdate(nextProps) {
10640
- var externalMutations = this.getExternalMutations(nextProps);
10656
+ var externalMutations = this.getExternalMutations(nextProps); // @ts-expect-error "Property 'animating' does not exist on type EventMixinCommonProps"
10657
+
10641
10658
  var animating = this.props.animating || this.props.animate;
10642
10659
  var newMutation = !react_fast_compare__WEBPACK_IMPORTED_MODULE_10___default()(externalMutations, this.externalMutations);
10643
10660
 
@@ -10667,7 +10684,7 @@ var defaultComponents = [{
10667
10684
  value: function componentDidMount() {
10668
10685
  var _this2 = this;
10669
10686
 
10670
- var globalEventKeys = lodash_keys__WEBPACK_IMPORTED_MODULE_6___default()(this.globalEvents);
10687
+ var globalEventKeys = lodash_keys__WEBPACK_IMPORTED_MODULE_2___default()(this.globalEvents);
10671
10688
 
10672
10689
  globalEventKeys.forEach(function (key) {
10673
10690
  return _this2.addGlobalListener(key);
@@ -10682,15 +10699,15 @@ var defaultComponents = [{
10682
10699
  var calculatedState = this.getStateChanges(prevProps);
10683
10700
  this.calculatedState = calculatedState;
10684
10701
 
10685
- var globalEventKeys = lodash_keys__WEBPACK_IMPORTED_MODULE_6___default()(this.globalEvents);
10702
+ var globalEventKeys = lodash_keys__WEBPACK_IMPORTED_MODULE_2___default()(this.globalEvents);
10686
10703
 
10687
- var removedGlobalEventKeys = lodash_difference__WEBPACK_IMPORTED_MODULE_0___default()(this.prevGlobalEventKeys, globalEventKeys);
10704
+ var removedGlobalEventKeys = lodash_difference__WEBPACK_IMPORTED_MODULE_6___default()(this.prevGlobalEventKeys, globalEventKeys);
10688
10705
 
10689
10706
  removedGlobalEventKeys.forEach(function (key) {
10690
10707
  return _this3.removeGlobalListener(key);
10691
10708
  });
10692
10709
 
10693
- var addedGlobalEventKeys = lodash_difference__WEBPACK_IMPORTED_MODULE_0___default()(globalEventKeys, this.prevGlobalEventKeys);
10710
+ var addedGlobalEventKeys = lodash_difference__WEBPACK_IMPORTED_MODULE_6___default()(globalEventKeys, this.prevGlobalEventKeys);
10694
10711
 
10695
10712
  addedGlobalEventKeys.forEach(function (key) {
10696
10713
  return _this3.addGlobalListener(key);
@@ -10736,12 +10753,11 @@ var defaultComponents = [{
10736
10753
  }
10737
10754
 
10738
10755
  var getState = function (key, type) {
10739
- var result = lodash_defaults__WEBPACK_IMPORTED_MODULE_8___default()({}, _this6.getEventState(key, type), _this6.getSharedEventState(key, type));
10756
+ var result = lodash_defaults__WEBPACK_IMPORTED_MODULE_7___default()({}, _this6.getEventState(key, type), _this6.getSharedEventState(key, type));
10740
10757
 
10741
- return lodash_isEmpty__WEBPACK_IMPORTED_MODULE_2___default()(result) ? undefined : result;
10758
+ return lodash_isEmpty__WEBPACK_IMPORTED_MODULE_5___default()(result) ? undefined : result;
10742
10759
  };
10743
10760
 
10744
- options = options || {};
10745
10761
  var components = options.components || defaultComponents;
10746
10762
  var stateChanges = components.map(function (component) {
10747
10763
  if (!props.standalone && component.name === "parent") {
@@ -10758,9 +10774,9 @@ var defaultComponents = [{
10758
10774
  }, {
10759
10775
  key: "applyExternalMutations",
10760
10776
  value: function applyExternalMutations(props, externalMutations) {
10761
- if (!lodash_isEmpty__WEBPACK_IMPORTED_MODULE_2___default()(externalMutations)) {
10777
+ if (!lodash_isEmpty__WEBPACK_IMPORTED_MODULE_5___default()(externalMutations)) {
10762
10778
  var callbacks = props.externalEventMutations.reduce(function (memo, mutation) {
10763
- memo = lodash_isFunction__WEBPACK_IMPORTED_MODULE_5___default()(mutation.callback) ? memo.concat(mutation.callback) : memo;
10779
+ memo = lodash_isFunction__WEBPACK_IMPORTED_MODULE_4___default()(mutation.callback) ? memo.concat(mutation.callback) : memo;
10764
10780
  return memo;
10765
10781
  }, []);
10766
10782
  var compiledCallbacks = callbacks.length ? function () {
@@ -10777,12 +10793,12 @@ var defaultComponents = [{
10777
10793
  var sharedEvents = props.sharedEvents;
10778
10794
  var components = WrappedComponent.expectedComponents;
10779
10795
  var componentEvents = _events__WEBPACK_IMPORTED_MODULE_11__.getComponentEvents(props, components);
10780
- var getSharedEventState = sharedEvents && lodash_isFunction__WEBPACK_IMPORTED_MODULE_5___default()(sharedEvents.getEventState) ? sharedEvents.getEventState : function () {
10796
+ var getSharedEventState = sharedEvents && lodash_isFunction__WEBPACK_IMPORTED_MODULE_4___default()(sharedEvents.getEventState) ? sharedEvents.getEventState : function () {
10781
10797
  return undefined;
10782
10798
  };
10783
10799
  var baseProps = this.getBaseProps(props, getSharedEventState);
10784
10800
 
10785
- var dataKeys = lodash_keys__WEBPACK_IMPORTED_MODULE_6___default()(baseProps).filter(function (key) {
10801
+ var dataKeys = lodash_keys__WEBPACK_IMPORTED_MODULE_2___default()(baseProps).filter(function (key) {
10786
10802
  return key !== "parent";
10787
10803
  });
10788
10804
 
@@ -10802,32 +10818,32 @@ var defaultComponents = [{
10802
10818
  value: function getExternalMutations(props) {
10803
10819
  var sharedEvents = props.sharedEvents,
10804
10820
  externalEventMutations = props.externalEventMutations;
10805
- return lodash_isEmpty__WEBPACK_IMPORTED_MODULE_2___default()(externalEventMutations) || sharedEvents ? undefined : _events__WEBPACK_IMPORTED_MODULE_11__.getExternalMutations(externalEventMutations, this.baseProps, this.state);
10821
+ return lodash_isEmpty__WEBPACK_IMPORTED_MODULE_5___default()(externalEventMutations) || sharedEvents ? undefined : _events__WEBPACK_IMPORTED_MODULE_11__.getExternalMutations(externalEventMutations, this.baseProps, this.state);
10806
10822
  }
10807
10823
  }, {
10808
10824
  key: "cacheValues",
10809
10825
  value: function cacheValues(obj) {
10810
10826
  var _this7 = this;
10811
10827
 
10812
- lodash_keys__WEBPACK_IMPORTED_MODULE_6___default()(obj).forEach(function (key) {
10828
+ lodash_keys__WEBPACK_IMPORTED_MODULE_2___default()(obj).forEach(function (key) {
10813
10829
  _this7[key] = obj[key];
10814
10830
  });
10815
10831
  }
10816
10832
  }, {
10817
10833
  key: "getBaseProps",
10818
10834
  value: function getBaseProps(props, getSharedEventState) {
10819
- getSharedEventState = getSharedEventState || this.getSharedEventState;
10835
+ getSharedEventState = getSharedEventState || this.getSharedEventState.bind(this);
10820
10836
  var sharedParentState = getSharedEventState("parent", "parent");
10821
10837
  var parentState = this.getEventState("parent", "parent");
10822
10838
 
10823
- var baseParentProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_8___default()({}, parentState, sharedParentState);
10839
+ var baseParentProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_7___default()({}, parentState, sharedParentState);
10824
10840
 
10825
10841
  var parentPropsList = baseParentProps.parentControlledProps;
10826
- var parentProps = parentPropsList ? lodash_pick__WEBPACK_IMPORTED_MODULE_4___default()(baseParentProps, parentPropsList) : {};
10842
+ var parentProps = parentPropsList ? lodash_pick__WEBPACK_IMPORTED_MODULE_1___default()(baseParentProps, parentPropsList) : {};
10827
10843
 
10828
- var modifiedProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_8___default()({}, parentProps, props);
10844
+ var modifiedProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_7___default()({}, parentProps, props);
10829
10845
 
10830
- return lodash_isFunction__WEBPACK_IMPORTED_MODULE_5___default()(WrappedComponent.getBaseProps) ? WrappedComponent.getBaseProps(modifiedProps) : {};
10846
+ return typeof WrappedComponent.getBaseProps === "function" ? WrappedComponent.getBaseProps(modifiedProps) : {};
10831
10847
  }
10832
10848
  }, {
10833
10849
  key: "getAllEvents",
@@ -10855,21 +10871,21 @@ var defaultComponents = [{
10855
10871
  if (this.hasEvents) {
10856
10872
  var baseEvents = this.getEvents(this.props, type, key);
10857
10873
 
10858
- var componentProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_8___default()({
10874
+ var componentProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_7___default()({
10859
10875
  index: index,
10860
10876
  key: id
10861
10877
  }, this.getEventState(key, type), this.getSharedEventState(key, type), component.props, baseProps, {
10862
10878
  id: id
10863
10879
  });
10864
10880
 
10865
- var events = lodash_defaults__WEBPACK_IMPORTED_MODULE_8___default()({}, _events__WEBPACK_IMPORTED_MODULE_11__.getPartialEvents(baseEvents, key, componentProps), componentProps.events);
10881
+ var events = lodash_defaults__WEBPACK_IMPORTED_MODULE_7___default()({}, _events__WEBPACK_IMPORTED_MODULE_11__.getPartialEvents(baseEvents, key, componentProps), componentProps.events);
10866
10882
 
10867
- return lodash_assign__WEBPACK_IMPORTED_MODULE_7___default()({}, componentProps, {
10883
+ return lodash_assign__WEBPACK_IMPORTED_MODULE_8___default()({}, componentProps, {
10868
10884
  events: events
10869
10885
  });
10870
10886
  }
10871
10887
 
10872
- return lodash_defaults__WEBPACK_IMPORTED_MODULE_8___default()({
10888
+ return lodash_defaults__WEBPACK_IMPORTED_MODULE_7___default()({
10873
10889
  index: index,
10874
10890
  key: id
10875
10891
  }, component.props, baseProps, {
@@ -10892,11 +10908,14 @@ var defaultComponents = [{
10892
10908
  }, {
10893
10909
  key: "animateComponent",
10894
10910
  value: function animateComponent(props, defaultAnimationWhitelist) {
10895
- var animationWhitelist = props.animate && props.animate.animationWhitelist ? props.animate.animationWhitelist : defaultAnimationWhitelist;
10911
+ var _props$animate;
10912
+
10913
+ var animationWhitelist = typeof props.animate === "object" && ((_props$animate = props.animate) === null || _props$animate === void 0 ? void 0 : _props$animate.animationWhitelist) || defaultAnimationWhitelist;
10914
+ var Comp = this.constructor;
10896
10915
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_9___default().createElement(_victory_transition_victory_transition__WEBPACK_IMPORTED_MODULE_12__.VictoryTransition, {
10897
10916
  animate: props.animate,
10898
10917
  animationWhitelist: animationWhitelist
10899
- }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_9___default().createElement(this.constructor, props));
10918
+ }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_9___default().createElement(Comp, props));
10900
10919
  } // Used by `VictoryLine` and `VictoryArea`
10901
10920
 
10902
10921
  }, {
@@ -10908,7 +10927,7 @@ var defaultComponents = [{
10908
10927
  labelComponent = props.labelComponent,
10909
10928
  groupComponent = props.groupComponent;
10910
10929
 
10911
- var dataKeys = lodash_without__WEBPACK_IMPORTED_MODULE_3___default()(this.dataKeys, "all");
10930
+ var dataKeys = lodash_without__WEBPACK_IMPORTED_MODULE_0___default()(this.dataKeys, "all");
10912
10931
 
10913
10932
  var labelComponents = dataKeys.reduce(function (memo, key) {
10914
10933
  var labelProps = _this8.getComponentProps(labelComponent, "labels", key);
@@ -10955,9 +10974,12 @@ var defaultComponents = [{
10955
10974
  }
10956
10975
  }]);
10957
10976
 
10958
- return addEvents;
10977
+ return AddEventsMixin;
10959
10978
  }(WrappedComponent);
10960
- });
10979
+
10980
+ return AddEventsMixin;
10981
+ }
10982
+ //# sourceMappingURL=add-events.js.map
10961
10983
 
10962
10984
  /***/ }),
10963
10985
 
@@ -10991,7 +11013,6 @@ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToAr
10991
11013
 
10992
11014
  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; }
10993
11015
 
10994
- /* eslint-disable no-use-before-define */
10995
11016
  function isNonEmptyArray(collection) {
10996
11017
  return Array.isArray(collection) && collection.length > 0;
10997
11018
  }
@@ -11030,7 +11051,8 @@ function getMaxValue(arr) {
11030
11051
  }
11031
11052
 
11032
11053
  var array = arr.concat(values);
11033
- return containsDates(array) ? new Date(Math.max.apply(Math, _toConsumableArray(array))) : Math.max.apply(Math, _toConsumableArray(array));
11054
+ return containsDates(array) ? new Date(Math.max.apply(Math, _toConsumableArray(array))) // Dates will be coerced to numbers
11055
+ : Math.max.apply(Math, _toConsumableArray(array));
11034
11056
  }
11035
11057
  function getMinValue(arr) {
11036
11058
  for (var _len2 = arguments.length, values = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
@@ -11038,8 +11060,10 @@ function getMinValue(arr) {
11038
11060
  }
11039
11061
 
11040
11062
  var array = arr.concat(values);
11041
- return containsDates(array) ? new Date(Math.min.apply(Math, _toConsumableArray(array))) : Math.min.apply(Math, _toConsumableArray(array));
11063
+ return containsDates(array) ? new Date(Math.min.apply(Math, _toConsumableArray(array))) // Dates will be coerced to numbers
11064
+ : Math.min.apply(Math, _toConsumableArray(array));
11042
11065
  }
11066
+ //# sourceMappingURL=collection.js.map
11043
11067
 
11044
11068
  /***/ }),
11045
11069
 
@@ -11052,9 +11076,7 @@ function getMinValue(arr) {
11052
11076
  "use strict";
11053
11077
  __webpack_require__.r(__webpack_exports__);
11054
11078
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
11055
- /* harmony export */ "baseProps": () => (/* binding */ baseProps),
11056
- /* harmony export */ "dataProps": () => (/* binding */ dataProps),
11057
- /* harmony export */ "primitiveProps": () => (/* binding */ primitiveProps)
11079
+ /* harmony export */ "CommonProps": () => (/* binding */ CommonProps)
11058
11080
  /* harmony export */ });
11059
11081
  /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! prop-types */ "../../../node_modules/prop-types/index.js");
11060
11082
  /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_0__);
@@ -11062,26 +11084,28 @@ __webpack_require__.r(__webpack_exports__);
11062
11084
 
11063
11085
 
11064
11086
  var dataProps = {
11087
+ // @ts-expect-error TODO: synchronize the type with this PropTypes
11065
11088
  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({
11066
11089
  x: prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_0___default().string)),
11067
11090
  y: prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_0___default().string))
11068
11091
  })]),
11092
+ // @ts-expect-error TODO: synchronize the type with this PropTypes
11069
11093
  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)]),
11070
11094
  dataComponent: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().element),
11071
11095
  disableInlineStyles: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
11072
11096
  labelComponent: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().element),
11073
11097
  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)]),
11074
11098
  samples: _prop_types__WEBPACK_IMPORTED_MODULE_1__.nonNegative,
11075
- 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))]),
11099
+ 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))]),
11076
11100
  sortOrder: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(["ascending", "descending"]),
11077
11101
  style: prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
11078
11102
  parent: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object),
11079
11103
  data: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object),
11080
11104
  labels: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object)
11081
11105
  }),
11082
- 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))]),
11083
- 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))]),
11084
- 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))])
11106
+ 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))]),
11107
+ 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))]),
11108
+ 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))])
11085
11109
  };
11086
11110
  var baseProps = {
11087
11111
  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)]),
@@ -11090,14 +11114,17 @@ var baseProps = {
11090
11114
  x: _prop_types__WEBPACK_IMPORTED_MODULE_1__.domain,
11091
11115
  y: _prop_types__WEBPACK_IMPORTED_MODULE_1__.domain
11092
11116
  })]),
11117
+ // @ts-expect-error TODO: synchronize the type with this PropTypes
11093
11118
  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({
11094
11119
  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)]),
11095
11120
  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)])
11096
11121
  })]),
11122
+ // @ts-expect-error TODO: synchronize the type with this PropTypes
11097
11123
  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({
11098
11124
  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)]),
11099
11125
  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)])
11100
11126
  })]),
11127
+ // @ts-expect-error TODO: synchronize the type with this PropTypes
11101
11128
  domainPadding: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
11102
11129
  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))]),
11103
11130
  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))])
@@ -11108,6 +11135,7 @@ var baseProps = {
11108
11135
  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)]),
11109
11136
  eventHandlers: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object)
11110
11137
  })),
11138
+ // @ts-expect-error TODO: synchronize the type with this PropTypes
11111
11139
  externalEventMutations: prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
11112
11140
  callback: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
11113
11141
  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)]),
@@ -11118,10 +11146,12 @@ var baseProps = {
11118
11146
  groupComponent: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().element),
11119
11147
  height: _prop_types__WEBPACK_IMPORTED_MODULE_1__.nonNegative,
11120
11148
  name: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
11149
+ // @ts-expect-error TODO: synchronize the type with this PropTypes
11121
11150
  origin: prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
11122
11151
  x: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number),
11123
11152
  y: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number)
11124
11153
  }),
11154
+ // @ts-expect-error TODO: synchronize the type with this PropTypes
11125
11155
  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({
11126
11156
  top: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number),
11127
11157
  bottom: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number),
@@ -11130,17 +11160,19 @@ var baseProps = {
11130
11160
  })]),
11131
11161
  polar: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
11132
11162
  range: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([_prop_types__WEBPACK_IMPORTED_MODULE_1__.domain, prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
11133
- x: _prop_types__WEBPACK_IMPORTED_MODULE_1__.domain,
11134
- y: _prop_types__WEBPACK_IMPORTED_MODULE_1__.domain
11163
+ x: _prop_types__WEBPACK_IMPORTED_MODULE_1__.domain.isRequired,
11164
+ y: _prop_types__WEBPACK_IMPORTED_MODULE_1__.domain.isRequired
11135
11165
  })]),
11136
11166
  scale: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([_prop_types__WEBPACK_IMPORTED_MODULE_1__.scale, prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
11137
- x: _prop_types__WEBPACK_IMPORTED_MODULE_1__.scale,
11138
- y: _prop_types__WEBPACK_IMPORTED_MODULE_1__.scale
11167
+ x: _prop_types__WEBPACK_IMPORTED_MODULE_1__.scale.isRequired,
11168
+ y: _prop_types__WEBPACK_IMPORTED_MODULE_1__.scale.isRequired
11139
11169
  })]),
11170
+ // @ts-expect-error TODO: synchronize the type with this PropTypes
11140
11171
  sharedEvents: prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
11141
11172
  events: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().array),
11142
11173
  getEventState: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func)
11143
11174
  }),
11175
+ // @ts-expect-error TODO: synchronize the type with this PropTypes
11144
11176
  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({
11145
11177
  x: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool)]),
11146
11178
  y: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool)])
@@ -11160,6 +11192,7 @@ var primitiveProps = {
11160
11192
  events: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object),
11161
11193
  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)]),
11162
11194
  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)]),
11195
+ // @ts-expect-error TODO: synchronize the type with this PropTypes
11163
11196
  origin: prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
11164
11197
  x: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number),
11165
11198
  y: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number)
@@ -11175,6 +11208,12 @@ var primitiveProps = {
11175
11208
  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)]),
11176
11209
  transform: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string)
11177
11210
  };
11211
+ var CommonProps = {
11212
+ dataProps: dataProps,
11213
+ baseProps: baseProps,
11214
+ primitiveProps: primitiveProps
11215
+ };
11216
+ //# sourceMappingURL=common-props.js.map
11178
11217
 
11179
11218
  /***/ }),
11180
11219
 
@@ -11688,6 +11727,7 @@ function isDataComponent(component) {
11688
11727
  var whitelist = ["area", "bar", "boxplot", "candlestick", "errorbar", "group", "histogram", "line", "pie", "scatter", "stack", "voronoi"];
11689
11728
  return lodash_includes__WEBPACK_IMPORTED_MODULE_2___default()(whitelist, role);
11690
11729
  }
11730
+ //# sourceMappingURL=data.js.map
11691
11731
 
11692
11732
  /***/ }),
11693
11733
 
@@ -11789,8 +11829,9 @@ function getDomainPadding(props, axis) {
11789
11829
  }
11790
11830
 
11791
11831
  function getFlatData(dataset, axis) {
11832
+ var axisKey = "_".concat(axis);
11792
11833
  return lodash_flatten__WEBPACK_IMPORTED_MODULE_5___default()(dataset).map(function (datum) {
11793
- return datum["_".concat(axis)] && datum["_".concat(axis)][1] !== undefined ? datum["_".concat(axis)][1] : datum["_".concat(axis)];
11834
+ return datum[axisKey] && datum[axisKey][1] !== undefined ? datum[axisKey][1] : datum[axisKey];
11794
11835
  });
11795
11836
  }
11796
11837
 
@@ -11855,7 +11896,9 @@ function padDomain(domain, props, axis) {
11855
11896
  if (addsQuadrants && singleQuadrantDomainPadding !== false) {
11856
11897
  // Naive initial padding calculation
11857
11898
  var initialPadding = {
11899
+ // @ts-expect-error `max/min` might be dates
11858
11900
  left: Math.abs(max - min) * padding.left / rangeExtent,
11901
+ // @ts-expect-error `max/min` might be dates
11859
11902
  right: Math.abs(max - min) * padding.right / rangeExtent
11860
11903
  }; // Adjust the domain by the initial padding
11861
11904
 
@@ -12140,6 +12183,7 @@ function isDomainComponent(component) {
12140
12183
  var whitelist = ["area", "axis", "bar", "boxplot", "candlestick", "errorbar", "group", "histogram", "line", "pie", "scatter", "stack", "voronoi"];
12141
12184
  return lodash_includes__WEBPACK_IMPORTED_MODULE_1___default()(whitelist, role);
12142
12185
  }
12186
+ //# sourceMappingURL=domain.js.map
12143
12187
 
12144
12188
  /***/ }),
12145
12189
 
@@ -12208,15 +12252,16 @@ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToAr
12208
12252
  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; }
12209
12253
 
12210
12254
  var GLOBAL_EVENT_REGEX = /^onGlobal(.*)$/;
12255
+
12211
12256
  /* Returns all own and shared events that should be attached to a single target element,
12212
12257
  * i.e. an individual bar specified by target: "data", eventKey: [index].
12213
12258
  * Returned events are scoped to the appropriate state. Either that of the component itself
12214
12259
  * (i.e. VictoryBar) in the case of own events, or that of the parent component
12215
12260
  * (i.e. VictoryChart) in the case of shared events
12216
12261
  */
12217
- // eslint-disable-next-line max-params,no-shadow
12218
-
12219
- function getEvents(props, target, eventKey, getScopedEvents) {
12262
+ // eslint-disable-next-line max-params
12263
+ function getEvents(props, target, eventKey, // eslint-disable-next-line no-shadow
12264
+ getScopedEvents) {
12220
12265
  var _this = this;
12221
12266
 
12222
12267
  // Returns all events that apply to a particular target element
@@ -12439,24 +12484,27 @@ function getScopedEvents(events, namespace, childType, baseProps) {
12439
12484
  return memo;
12440
12485
  }, {});
12441
12486
  }
12442
- /* Returns a partially applied event handler for a specific target element
12487
+ /*
12488
+ * Returns a partially applied event handler for a specific target element
12443
12489
  * This allows event handlers to have access to props controlling each element
12444
12490
  */
12445
12491
 
12446
12492
  function getPartialEvents(events, eventKey, childProps) {
12447
- return events ? lodash_keys__WEBPACK_IMPORTED_MODULE_0___default()(events).reduce(function (memo, eventName) {
12493
+ if (!events) return {};
12494
+ return lodash_keys__WEBPACK_IMPORTED_MODULE_0___default()(events).reduce(function (memo, eventName) {
12448
12495
  var appliedEvent = function (evt) {
12449
12496
  return events[eventName](evt, childProps, eventKey, eventName);
12450
12497
  };
12451
12498
 
12452
12499
  memo[eventName] = appliedEvent;
12453
12500
  return memo;
12454
- }, {}) : {};
12501
+ }, {});
12455
12502
  }
12503
+
12456
12504
  /* Returns the property of the state object corresponding to event changes for
12457
12505
  * a particular element
12458
12506
  */
12459
-
12507
+ // eslint-disable-next-line max-params
12460
12508
  function getEventState(eventKey, namespace, childType) {
12461
12509
  // Mandatory usage: `getEventState.bind(this)`
12462
12510
  // eslint-disable-next-line no-invalid-this
@@ -12641,6 +12689,7 @@ var emulateReactEvent = function (event) {
12641
12689
  nativeEvent: event
12642
12690
  });
12643
12691
  };
12692
+ //# sourceMappingURL=events.js.map
12644
12693
 
12645
12694
  /***/ }),
12646
12695
 
@@ -12722,7 +12771,7 @@ function getPolarRange(props, axis) {
12722
12771
 
12723
12772
  /**
12724
12773
  * creates an object with some keys excluded
12725
- * replacement for lodash.omit for performance. does not mimick the entire lodash.omit api
12774
+ * replacement for lodash.omit for performance. does not mimic the entire lodash.omit api
12726
12775
  * @param {Object} originalObject: created object will be based on this object
12727
12776
  * @param {Array<String>} ks: an array of keys to omit from the new object
12728
12777
  * @returns {Object} new object with same properties as originalObject
@@ -12735,6 +12784,7 @@ function omit(originalObject) {
12735
12784
  var newObject = {};
12736
12785
 
12737
12786
  for (var key in originalObject) {
12787
+ // @ts-expect-error String is not assignable to Key
12738
12788
  if (ks.indexOf(key) >= 0) {
12739
12789
  continue;
12740
12790
  }
@@ -12967,7 +13017,9 @@ function reduceChildren(children, iteratee) {
12967
13017
  var parentProps = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
12968
13018
  var initialMemo = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : [];
12969
13019
  var combine = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : function (memo, item) {
12970
- return memo.concat(item);
13020
+ return (// @ts-expect-error These defaults are hard to type
13021
+ memo.concat(item)
13022
+ );
12971
13023
  };
12972
13024
  var sharedProps = ["data", "domain", "categories", "polar", "startAngle", "endAngle", "minDomain", "maxDomain", "horizontal"];
12973
13025
 
@@ -13011,7 +13063,7 @@ function reduceChildren(children, iteratee) {
13011
13063
  /**
13012
13064
  * @param {Object} props: the props object
13013
13065
  * @returns {Boolean} returns true if the props object contains `horizontal: true` of if any
13014
- * children or nested children are hoizontal
13066
+ * children or nested children are horizontal
13015
13067
  */
13016
13068
 
13017
13069
  function isHorizontal(props) {
@@ -13034,6 +13086,7 @@ function isHorizontal(props) {
13034
13086
 
13035
13087
  return traverseChildren(react__WEBPACK_IMPORTED_MODULE_6___default().Children.toArray(props.children));
13036
13088
  }
13089
+ //# sourceMappingURL=helpers.js.map
13037
13090
 
13038
13091
  /***/ }),
13039
13092
 
@@ -13077,15 +13130,16 @@ function isMap(x) {
13077
13130
  return !!(x && x[IMMUTABLE_MAP]);
13078
13131
  }
13079
13132
  function shallowToJS(x, whitelist) {
13080
- return isIterable(x) ? x.reduce(function (prev, curr, key) {
13133
+ return isIterable(x) ? x.reduce(function (result, curr, key) {
13081
13134
  if (whitelist && whitelist[key]) {
13082
13135
  curr = shallowToJS(curr);
13083
13136
  }
13084
13137
 
13085
- prev[key] = curr;
13086
- return prev;
13138
+ result[key] = curr;
13139
+ return result;
13087
13140
  }, isList(x) ? [] : {}) : x;
13088
13141
  }
13142
+ //# sourceMappingURL=immutable.js.map
13089
13143
 
13090
13144
  /***/ }),
13091
13145
 
@@ -13343,6 +13397,7 @@ function getProps(props, index) {
13343
13397
  var tooltipTheme = theme && theme.tooltip || {};
13344
13398
  return lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default()({}, labelProps, _helpers__WEBPACK_IMPORTED_MODULE_1__.omit(tooltipTheme, ["style"]));
13345
13399
  }
13400
+ //# sourceMappingURL=label-helpers.js.map
13346
13401
 
13347
13402
  /***/ }),
13348
13403
 
@@ -13368,6 +13423,7 @@ function warn(message) {
13368
13423
  }
13369
13424
  }
13370
13425
  }
13426
+ //# sourceMappingURL=log.js.map
13371
13427
 
13372
13428
  /***/ }),
13373
13429
 
@@ -13395,12 +13451,10 @@ __webpack_require__.r(__webpack_exports__);
13395
13451
  /* harmony import */ var lodash_isRegExp__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_isRegExp__WEBPACK_IMPORTED_MODULE_0__);
13396
13452
  /* harmony import */ var lodash_find__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/find */ "../../../node_modules/lodash/find.js");
13397
13453
  /* harmony import */ var lodash_find__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_find__WEBPACK_IMPORTED_MODULE_1__);
13398
- /* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash/isFunction */ "../../../node_modules/lodash/isFunction.js");
13399
- /* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_isFunction__WEBPACK_IMPORTED_MODULE_2__);
13400
- /* harmony import */ var _log__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./log */ "../../victory-core/es/victory-util/log.js");
13401
- /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! prop-types */ "../../../node_modules/prop-types/index.js");
13402
- /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_4__);
13403
-
13454
+ /* harmony import */ var _log__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./log */ "../../victory-core/es/victory-util/log.js");
13455
+ /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! prop-types */ "../../../node_modules/prop-types/index.js");
13456
+ /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_3__);
13457
+ /* harmony import */ var _scale__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./scale */ "../../victory-core/es/victory-util/scale.js");
13404
13458
 
13405
13459
 
13406
13460
 
@@ -13408,6 +13462,8 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
13408
13462
 
13409
13463
 
13410
13464
 
13465
+
13466
+
13411
13467
  /**
13412
13468
  * Return a new validator based on `validator` but with the option to chain
13413
13469
  * `isRequired` onto the validation. This is nearly identical to how React
@@ -13415,30 +13471,30 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
13415
13471
  * @param {Function} validator Validation function.
13416
13472
  * @returns {Function} Validator with `isRequired` option.
13417
13473
  */
13418
-
13419
13474
  var makeChainable = function (validator) {
13420
- /* eslint-disable max-params */
13421
- var _chainable = function (isRequired, props, propName, componentName) {
13422
- var value = props[propName];
13475
+ var createChainable = function (isRequired) {
13476
+ return function (props, propName, componentName) {
13477
+ var value = props[propName];
13423
13478
 
13424
- if (value === undefined || value === null) {
13425
- if (isRequired) {
13426
- return new Error("Required `".concat(propName, "` was not specified in `").concat(componentName, "`."));
13427
- }
13479
+ if (value === undefined || value === null) {
13480
+ if (isRequired) {
13481
+ return new Error("Required `".concat(propName, "` was not specified in `").concat(componentName, "`."));
13482
+ }
13428
13483
 
13429
- return null;
13430
- }
13484
+ return null;
13485
+ }
13431
13486
 
13432
- for (var _len = arguments.length, rest = new Array(_len > 4 ? _len - 4 : 0), _key = 4; _key < _len; _key++) {
13433
- rest[_key - 4] = arguments[_key];
13434
- }
13487
+ for (var _len = arguments.length, rest = new Array(_len > 3 ? _len - 3 : 0), _key = 3; _key < _len; _key++) {
13488
+ rest[_key - 3] = arguments[_key];
13489
+ }
13435
13490
 
13436
- return validator.apply(void 0, [props, propName, componentName].concat(rest));
13491
+ return validator.apply(void 0, [props, propName, componentName].concat(rest));
13492
+ };
13437
13493
  };
13438
13494
 
13439
- var chainable = _chainable.bind(null, false);
13440
-
13441
- chainable.isRequired = _chainable.bind(null, true);
13495
+ var chainable = Object.assign(createChainable(false), {
13496
+ isRequired: createChainable(true)
13497
+ });
13442
13498
  return chainable;
13443
13499
  };
13444
13500
 
@@ -13468,7 +13524,7 @@ var getConstructor = function (value) {
13468
13524
  };
13469
13525
  /**
13470
13526
  * Get the name of the constructor used to create `value`, using
13471
- * `Object.protoype.toString`. If the value is null or undefined, return
13527
+ * `Object.prototype.toString`. If the value is null or undefined, return
13472
13528
  * "null" or "undefined", respectively.
13473
13529
  * @param {*} value Instance to return the constructor name of.
13474
13530
  * @returns {String} Name of the constructor.
@@ -13498,10 +13554,11 @@ function deprecated(propType, explanation) {
13498
13554
  var value = props[propName];
13499
13555
 
13500
13556
  if (value !== null && value !== undefined) {
13501
- _log__WEBPACK_IMPORTED_MODULE_3__.warn("\"".concat(propName, "\" property of \"").concat(componentName, "\" has been deprecated ").concat(explanation));
13557
+ _log__WEBPACK_IMPORTED_MODULE_2__.warn("\"".concat(propName, "\" property of \"").concat(componentName, "\" has been deprecated ").concat(explanation));
13502
13558
  }
13503
13559
 
13504
- return prop_types__WEBPACK_IMPORTED_MODULE_4___default().checkPropTypes(_defineProperty({}, propName, propType), props, propName, componentName);
13560
+ prop_types__WEBPACK_IMPORTED_MODULE_3___default().checkPropTypes(_defineProperty({}, propName, propType), props, propName, componentName);
13561
+ return null;
13505
13562
  };
13506
13563
  }
13507
13564
  /**
@@ -13520,7 +13577,7 @@ function allOfType(validators) {
13520
13577
 
13521
13578
  return validators.reduce(function (result, validator) {
13522
13579
  return result || validator.apply(void 0, [props, propName, componentName].concat(rest));
13523
- }, undefined);
13580
+ }, null);
13524
13581
  });
13525
13582
  }
13526
13583
  /**
@@ -13534,7 +13591,7 @@ var nonNegative = makeChainable(function (props, propName, componentName) {
13534
13591
  return new Error("`".concat(propName, "` in `").concat(componentName, "` must be a non-negative number."));
13535
13592
  }
13536
13593
 
13537
- return undefined;
13594
+ return null;
13538
13595
  });
13539
13596
  /**
13540
13597
  * Check that the value is an integer.
@@ -13547,7 +13604,7 @@ var integer = makeChainable(function (props, propName, componentName) {
13547
13604
  return new Error("`".concat(propName, "` in `").concat(componentName, "` must be an integer."));
13548
13605
  }
13549
13606
 
13550
- return undefined;
13607
+ return null;
13551
13608
  });
13552
13609
  /**
13553
13610
  * Check that the value is greater than zero.
@@ -13560,7 +13617,7 @@ var greaterThanZero = makeChainable(function (props, propName, componentName) {
13560
13617
  return new Error("`".concat(propName, "` in `").concat(componentName, "` must be a number greater than zero."));
13561
13618
  }
13562
13619
 
13563
- return undefined;
13620
+ return null;
13564
13621
  });
13565
13622
  /**
13566
13623
  * Check that the value is an Array of two unique values.
@@ -13573,32 +13630,20 @@ var domain = makeChainable(function (props, propName, componentName) {
13573
13630
  return new Error("`".concat(propName, "` in `").concat(componentName, "` must be an array of two unique numeric values."));
13574
13631
  }
13575
13632
 
13576
- return undefined;
13633
+ return null;
13577
13634
  });
13578
13635
  /**
13579
13636
  * Check that the value looks like a d3 `scale` function.
13580
13637
  */
13581
13638
 
13582
13639
  var scale = makeChainable(function (props, propName, componentName) {
13583
- var supportedScaleStrings = ["linear", "time", "log", "sqrt"];
13584
-
13585
- var validScale = function (scl) {
13586
- if (lodash_isFunction__WEBPACK_IMPORTED_MODULE_2___default()(scl)) {
13587
- 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);
13588
- } else if (typeof scl === "string") {
13589
- return supportedScaleStrings.indexOf(scl) !== -1;
13590
- }
13591
-
13592
- return false;
13593
- };
13594
-
13595
13640
  var value = props[propName];
13596
13641
 
13597
- if (!validScale(value)) {
13642
+ if (!_scale__WEBPACK_IMPORTED_MODULE_4__.validScale(value)) {
13598
13643
  return new Error("`".concat(propName, "` in `").concat(componentName, "` must be a d3 scale."));
13599
13644
  }
13600
13645
 
13601
- return undefined;
13646
+ return null;
13602
13647
  });
13603
13648
  /**
13604
13649
  * Check that an array contains items of the same type.
@@ -13612,7 +13657,7 @@ var homogeneousArray = makeChainable(function (props, propName, componentName) {
13612
13657
  }
13613
13658
 
13614
13659
  if (values.length < 2) {
13615
- return undefined;
13660
+ return null;
13616
13661
  }
13617
13662
 
13618
13663
  var comparisonConstructor = getConstructor(values[0]);
@@ -13627,7 +13672,7 @@ var homogeneousArray = makeChainable(function (props, propName, componentName) {
13627
13672
  return new Error("Expected `".concat(propName, "` in `").concat(componentName, "` to be a ") + "homogeneous array, but found types `".concat(constructorName, "` and ") + "`".concat(otherConstructorName, "`."));
13628
13673
  }
13629
13674
 
13630
- return undefined;
13675
+ return null;
13631
13676
  });
13632
13677
  /**
13633
13678
  * Check that array prop length matches props.data.length
@@ -13638,7 +13683,7 @@ var matchDataLength = makeChainable(function (props, propName) {
13638
13683
  return new Error("Length of data and ".concat(propName, " arrays must match."));
13639
13684
  }
13640
13685
 
13641
- return undefined;
13686
+ return null;
13642
13687
  });
13643
13688
  /**
13644
13689
  * Check that the value is a regular expression
@@ -13649,8 +13694,9 @@ var regExp = makeChainable(function (props, propName, componentName) {
13649
13694
  return new Error("`".concat(propName, "` in `").concat(componentName, "` must be a regular expression."));
13650
13695
  }
13651
13696
 
13652
- return undefined;
13697
+ return null;
13653
13698
  });
13699
+ //# sourceMappingURL=prop-types.js.map
13654
13700
 
13655
13701
  /***/ }),
13656
13702
 
@@ -13668,7 +13714,8 @@ __webpack_require__.r(__webpack_exports__);
13668
13714
  /* harmony export */ "getScaleFromName": () => (/* binding */ getScaleFromName),
13669
13715
  /* harmony export */ "getScaleFromProps": () => (/* binding */ getScaleFromProps),
13670
13716
  /* harmony export */ "getScaleType": () => (/* binding */ getScaleType),
13671
- /* harmony export */ "getType": () => (/* binding */ getType)
13717
+ /* harmony export */ "getType": () => (/* binding */ getType),
13718
+ /* harmony export */ "validScale": () => (/* binding */ validScale)
13672
13719
  /* harmony export */ });
13673
13720
  /* harmony import */ var lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/isPlainObject */ "../../../node_modules/lodash/isPlainObject.js");
13674
13721
  /* harmony import */ var lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_0__);
@@ -13686,8 +13733,9 @@ __webpack_require__.r(__webpack_exports__);
13686
13733
 
13687
13734
 
13688
13735
 
13689
- var supportedScaleStrings = ["linear", "time", "log", "sqrt"]; // Private Functions
13736
+ var supportedScaleStrings = ["linear", "time", "log", "sqrt"];
13690
13737
 
13738
+ // Private Functions
13691
13739
  function toNewName(scale) {
13692
13740
  // d3 scale changed the naming scheme for scale from "linear" -> "scaleLinear" etc.
13693
13741
  var capitalize = function (s) {
@@ -13757,7 +13805,13 @@ function getScaleTypeFromData(props, axis) {
13757
13805
 
13758
13806
 
13759
13807
  function getScaleFromName(name) {
13760
- return validScale(name) ? victory_vendor_d3_scale__WEBPACK_IMPORTED_MODULE_5__[toNewName(name)]() : victory_vendor_d3_scale__WEBPACK_IMPORTED_MODULE_6__["default"]();
13808
+ if (validScale(name)) {
13809
+ var methodName = toNewName(name); // @ts-expect-error scaleTime is not directly compatible with our D3Scale definition
13810
+
13811
+ return victory_vendor_d3_scale__WEBPACK_IMPORTED_MODULE_5__[methodName]();
13812
+ }
13813
+
13814
+ return victory_vendor_d3_scale__WEBPACK_IMPORTED_MODULE_6__["default"]();
13761
13815
  }
13762
13816
  function getBaseScale(props, axis) {
13763
13817
  var scale = getScaleFromProps(props, axis);
@@ -13767,7 +13821,7 @@ function getBaseScale(props, axis) {
13767
13821
  }
13768
13822
 
13769
13823
  var defaultScale = getScaleFromDomain(props, axis) || getScaleTypeFromData(props, axis);
13770
- return victory_vendor_d3_scale__WEBPACK_IMPORTED_MODULE_5__[toNewName(defaultScale)]();
13824
+ return getScaleFromName(defaultScale);
13771
13825
  }
13772
13826
  function getDefaultScale() {
13773
13827
  return victory_vendor_d3_scale__WEBPACK_IMPORTED_MODULE_6__["default"]();
@@ -13780,7 +13834,7 @@ function getScaleFromProps(props, axis) {
13780
13834
  var scale = props.scale[axis] || props.scale;
13781
13835
 
13782
13836
  if (validScale(scale)) {
13783
- return lodash_isFunction__WEBPACK_IMPORTED_MODULE_1___default()(scale) ? scale : victory_vendor_d3_scale__WEBPACK_IMPORTED_MODULE_5__[toNewName(scale)]();
13837
+ return lodash_isFunction__WEBPACK_IMPORTED_MODULE_1___default()(scale) ? scale : getScaleFromName(scale);
13784
13838
  }
13785
13839
 
13786
13840
  return undefined;
@@ -13815,6 +13869,7 @@ function getType(scale) {
13815
13869
  })[0];
13816
13870
  return scaleType ? scaleType.name : undefined;
13817
13871
  }
13872
+ //# sourceMappingURL=scale.js.map
13818
13873
 
13819
13874
  /***/ }),
13820
13875
 
@@ -13886,6 +13941,7 @@ function getColorScale(name) {
13886
13941
  };
13887
13942
  return name ? scales[name] : scales.grayscale;
13888
13943
  }
13944
+ //# sourceMappingURL=style.js.map
13889
13945
 
13890
13946
  /***/ }),
13891
13947
 
@@ -14090,8 +14146,10 @@ var _getSizeWithRotate = function (axisSize, dependentSize, angle) {
14090
14146
 
14091
14147
 
14092
14148
  var convertLengthToPixels = function (length, fontSize) {
14093
- var attribute = length.match(/[a-zA-Z%]+/) && length.match(/[a-zA-Z%]+/)[0];
14094
- var value = length.match(/[0-9.,]+/);
14149
+ var _length$match;
14150
+
14151
+ var attribute = (_length$match = length.match(/[a-zA-Z%]+/)) === null || _length$match === void 0 ? void 0 : _length$match[0];
14152
+ var value = Number(length.match(/[0-9.,]+/));
14095
14153
  var result;
14096
14154
 
14097
14155
  if (!attribute) {
@@ -14157,9 +14215,9 @@ var _approximateTextHeightInternal = function (text, style) {
14157
14215
  var height = containsCaps ? lineStyle.fontSize * coefficients.lineCapitalCoef : lineStyle.fontSize;
14158
14216
  return total + lineStyle.lineHeight * height;
14159
14217
  }, 0);
14160
- }; // Stubbable implementation.
14161
-
14218
+ };
14162
14219
 
14220
+ // Stubbable implementation.
14163
14221
  var _approximateTextSizeInternal = {
14164
14222
  impl: function (text, style) {
14165
14223
  var angle = Array.isArray(style) ? style[0] && style[0].angle : style && style.angle;
@@ -14178,7 +14236,7 @@ var _approximateTextSizeInternal = {
14178
14236
  };
14179
14237
  /**
14180
14238
  * Predict text size by font params.
14181
- * @param {string} text Content for width calculation.
14239
+ * @param {string|string[]} text Content for width calculation.
14182
14240
  * @param {Object} style Text styles, ,fontFamily, fontSize, etc.
14183
14241
  * @param {string} style.fontFamily Text fontFamily.
14184
14242
  * @param {(number|string)} style.fontSize Text fontSize.
@@ -14191,6 +14249,7 @@ var _approximateTextSizeInternal = {
14191
14249
  var approximateTextSize = function (text, style) {
14192
14250
  return _approximateTextSizeInternal.impl(text, style);
14193
14251
  };
14252
+ //# sourceMappingURL=textsize.js.map
14194
14253
 
14195
14254
  /***/ }),
14196
14255
 
@@ -14221,6 +14280,7 @@ var TimerContext = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().cre
14221
14280
  });
14222
14281
  TimerContext.displayName = "TimerContext";
14223
14282
  /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (TimerContext);
14283
+ //# sourceMappingURL=timer-context.js.map
14224
14284
 
14225
14285
  /***/ }),
14226
14286
 
@@ -14323,6 +14383,7 @@ var Timer = /*#__PURE__*/function () {
14323
14383
  }();
14324
14384
 
14325
14385
 
14386
+ //# sourceMappingURL=timer.js.map
14326
14387
 
14327
14388
  /***/ }),
14328
14389
 
@@ -14413,7 +14474,7 @@ function getChildData(child) {
14413
14474
  }
14414
14475
  /**
14415
14476
  * If a parent component has animation enabled, calculate the transitions
14416
- * for any data of any child component that supports data transitions
14477
+ * for any data of any child component that supports data transitions.
14417
14478
  * Data transitions are defined as any two datasets where data nodes exist
14418
14479
  * in the first set and not the second, in the second and not the first,
14419
14480
  * or both.
@@ -14542,7 +14603,7 @@ function getChildPropsOnExit(animate, child, data, exitingNodes, cb) {
14542
14603
 
14543
14604
  if (exitingNodes) {
14544
14605
  // After the exit transition occurs, trigger the animations for
14545
- // nodes that are neither exiting or entering.
14606
+ // nodes that are neither exiting nor entering.
14546
14607
  animate.onEnd = cb;
14547
14608
  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.
14548
14609
 
@@ -14612,7 +14673,7 @@ function getChildPropsOnEnter(animate, data, enteringNodes, cb) {
14612
14673
  * and its index in the parent's children array.
14613
14674
  *
14614
14675
  * In particular, this will include an `animate` object that is set appropriately
14615
- * so that each child will be synchoronized for each stage of a transition
14676
+ * so that each child will be synchronized for each stage of a transition
14616
14677
  * animation. It will also include a transformed `data` object, where each datum
14617
14678
  * is transformed by `animate.onExit` and `animate.onEnter` `before` and `after`
14618
14679
  * functions.
@@ -14757,6 +14818,7 @@ function getTransitionPropsFactory(props, state, setState) {
14757
14818
  };
14758
14819
  };
14759
14820
  }
14821
+ //# sourceMappingURL=transitions.js.map
14760
14822
 
14761
14823
  /***/ }),
14762
14824
 
@@ -14795,7 +14857,7 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
14795
14857
 
14796
14858
  /*
14797
14859
  USER_PROPS_SAFELIST is to contain any string deemed safe for user props.
14798
- The startsWidth array will contain the start of any accepted user-prop that
14860
+ The startsWidth array will contain the start of any accepted user-prop that
14799
14861
  starts with these characters.
14800
14862
  The exactMatch will contain a list of exact prop names that are accepted.
14801
14863
  */
@@ -14804,6 +14866,7 @@ var USER_PROPS_SAFELIST = {
14804
14866
  startsWith: ["data-", "aria-"],
14805
14867
  exactMatch: []
14806
14868
  };
14869
+
14807
14870
  /**
14808
14871
  * doesPropStartWith: Function that takes a prop's key and runs it against all
14809
14872
  * options in the USER_PROPS_SAFELIST and checks to see if it starts with any
@@ -14812,7 +14875,6 @@ var USER_PROPS_SAFELIST = {
14812
14875
  * @returns {Boolean}: returns true if the key starts with an option or false if
14813
14876
  * otherwise
14814
14877
  */
14815
-
14816
14878
  var doesPropStartWith = function (key) {
14817
14879
  var startsWith = false;
14818
14880
  USER_PROPS_SAFELIST.startsWith.forEach(function (starterString) {
@@ -14889,14 +14951,15 @@ var getSafeUserProps = function (props) {
14889
14951
  /**
14890
14952
  * Wraps a component and adds safe user props
14891
14953
  *
14892
- * @param {ReactNode} component: parent component
14954
+ * @param {ReactElement} component: parent component
14893
14955
  * @param {Object} props: props to be filtered
14894
- * @returns {ReactNode} modified component
14956
+ * @returns {ReactElement} modified component
14895
14957
  */
14896
14958
 
14897
14959
  var withSafeUserProps = function (component, props) {
14898
14960
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.cloneElement(component, getSafeUserProps(props));
14899
14961
  };
14962
+ //# sourceMappingURL=user-props.js.map
14900
14963
 
14901
14964
  /***/ }),
14902
14965