victory-box-plot 36.5.0 → 36.5.3

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.
@@ -805,7 +805,7 @@ VictoryBoxPlot.animationWhitelist = ["data", "domain", "height", "padding", "sty
805
805
  VictoryBoxPlot.displayName = "VictoryBoxPlot";
806
806
  VictoryBoxPlot.role = "boxplot";
807
807
  VictoryBoxPlot.defaultTransitions = victory_core__WEBPACK_IMPORTED_MODULE_5__.discreteTransitions();
808
- VictoryBoxPlot.propTypes = _objectSpread(_objectSpread(_objectSpread({}, victory_core__WEBPACK_IMPORTED_MODULE_6__.baseProps), victory_core__WEBPACK_IMPORTED_MODULE_6__.dataProps), {}, {
808
+ VictoryBoxPlot.propTypes = _objectSpread(_objectSpread(_objectSpread({}, victory_core__WEBPACK_IMPORTED_MODULE_6__.CommonProps.baseProps), victory_core__WEBPACK_IMPORTED_MODULE_6__.CommonProps.dataProps), {}, {
809
809
  boxWidth: (prop_types__WEBPACK_IMPORTED_MODULE_7___default().number),
810
810
  events: prop_types__WEBPACK_IMPORTED_MODULE_7___default().arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_7___default().shape({
811
811
  target: prop_types__WEBPACK_IMPORTED_MODULE_7___default().oneOf(["max", "maxLabels", "median", "medianLabels", "min", "minLabels", "q1", "q1Labels", "q3", "q3Labels", "parent"]),
@@ -890,7 +890,7 @@ VictoryBoxPlot.getBaseProps = function (props) {
890
890
  };
891
891
 
892
892
  VictoryBoxPlot.expectedComponents = ["maxComponent", "maxLabelComponent", "medianComponent", "medianLabelComponent", "minComponent", "minLabelComponent", "q1Component", "q1LabelComponent", "q3Component", "q3LabelComponent", "groupComponent", "containerComponent"];
893
- /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((0,victory_core__WEBPACK_IMPORTED_MODULE_16__["default"])(VictoryBoxPlot, options));
893
+ /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((0,victory_core__WEBPACK_IMPORTED_MODULE_16__.addEvents)(VictoryBoxPlot, options));
894
894
 
895
895
  /***/ }),
896
896
 
@@ -2434,53 +2434,6 @@ function baseSortedUniq(array, iteratee) {
2434
2434
  module.exports = baseSortedUniq;
2435
2435
 
2436
2436
 
2437
- /***/ }),
2438
-
2439
- /***/ "../../../node_modules/lodash/_baseToString.js":
2440
- /*!*****************************************************!*\
2441
- !*** ../../../node_modules/lodash/_baseToString.js ***!
2442
- \*****************************************************/
2443
- /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
2444
-
2445
- var Symbol = __webpack_require__(/*! ./_Symbol */ "../../../node_modules/lodash/_Symbol.js"),
2446
- arrayMap = __webpack_require__(/*! ./_arrayMap */ "../../../node_modules/lodash/_arrayMap.js"),
2447
- isArray = __webpack_require__(/*! ./isArray */ "../../../node_modules/lodash/isArray.js"),
2448
- isSymbol = __webpack_require__(/*! ./isSymbol */ "../../../node_modules/lodash/isSymbol.js");
2449
-
2450
- /** Used as references for various `Number` constants. */
2451
- var INFINITY = 1 / 0;
2452
-
2453
- /** Used to convert symbols to primitives and strings. */
2454
- var symbolProto = Symbol ? Symbol.prototype : undefined,
2455
- symbolToString = symbolProto ? symbolProto.toString : undefined;
2456
-
2457
- /**
2458
- * The base implementation of `_.toString` which doesn't convert nullish
2459
- * values to empty strings.
2460
- *
2461
- * @private
2462
- * @param {*} value The value to process.
2463
- * @returns {string} Returns the string.
2464
- */
2465
- function baseToString(value) {
2466
- // Exit early for strings to avoid a performance hit in some environments.
2467
- if (typeof value == 'string') {
2468
- return value;
2469
- }
2470
- if (isArray(value)) {
2471
- // Recursively convert values (susceptible to call stack limits).
2472
- return arrayMap(value, baseToString) + '';
2473
- }
2474
- if (isSymbol(value)) {
2475
- return symbolToString ? symbolToString.call(value) : '';
2476
- }
2477
- var result = (value + '');
2478
- return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;
2479
- }
2480
-
2481
- module.exports = baseToString;
2482
-
2483
-
2484
2437
  /***/ }),
2485
2438
 
2486
2439
  /***/ "../../../node_modules/lodash/_baseTrim.js":
@@ -6248,36 +6201,29 @@ module.exports = toNumber;
6248
6201
  /*!************************************************!*\
6249
6202
  !*** ../../../node_modules/lodash/toString.js ***!
6250
6203
  \************************************************/
6251
- /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
6252
-
6253
- var baseToString = __webpack_require__(/*! ./_baseToString */ "../../../node_modules/lodash/_baseToString.js");
6204
+ /***/ ((module) => {
6254
6205
 
6255
6206
  /**
6256
- * Converts `value` to a string. An empty string is returned for `null`
6257
- * and `undefined` values. The sign of `-0` is preserved.
6207
+ * This method returns the first argument it receives.
6258
6208
  *
6259
6209
  * @static
6210
+ * @since 0.1.0
6260
6211
  * @memberOf _
6261
- * @since 4.0.0
6262
- * @category Lang
6263
- * @param {*} value The value to convert.
6264
- * @returns {string} Returns the converted string.
6212
+ * @category Util
6213
+ * @param {*} value Any value.
6214
+ * @returns {*} Returns `value`.
6265
6215
  * @example
6266
6216
  *
6267
- * _.toString(null);
6268
- * // => ''
6269
- *
6270
- * _.toString(-0);
6271
- * // => '-0'
6217
+ * var object = { 'a': 1 };
6272
6218
  *
6273
- * _.toString([1, 2, 3]);
6274
- * // => '1,2,3'
6219
+ * console.log(_.identity(object) === object);
6220
+ * // => true
6275
6221
  */
6276
- function toString(value) {
6277
- return value == null ? '' : baseToString(value);
6222
+ function identity(value) {
6223
+ return value;
6278
6224
  }
6279
6225
 
6280
- module.exports = toString;
6226
+ module.exports = identity;
6281
6227
 
6282
6228
 
6283
6229
  /***/ }),
@@ -7701,7 +7647,7 @@ var isInterpolatable = function (obj) {
7701
7647
  // component is only going to call the function (in which case it's
7702
7648
  // safely interpolatable) or if it's going to access special properties
7703
7649
  // (in which case our function generated from `interpolateFunction` will
7704
- // most likely cause an error. We could check for enumerable properties
7650
+ // most likely cause an error). We could check for enumerable properties
7705
7651
  // on the function object here to see if it's a "plain" function, but
7706
7652
  // let's just require that components prevent such function props from
7707
7653
  // being animated in the first place.
@@ -7866,16 +7812,18 @@ var victoryInterpolator = function (a, b) {
7866
7812
  }
7867
7813
 
7868
7814
  if (lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_1___default()(a) || lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_1___default()(b)) {
7869
- // @ts-expect-error These generics are tough, but they work ok?
7815
+ // @ts-expect-error These generics are tough, but they work :)
7870
7816
  return interpolateObject(a, b);
7871
7817
  }
7872
7818
 
7873
7819
  if (typeof a === "string" || typeof b === "string") {
7874
7820
  return interpolateString(a, b);
7875
- }
7821
+ } // @ts-expect-error These generics are tough, but they work :)
7822
+
7876
7823
 
7877
7824
  return (0,victory_vendor_d3_interpolate__WEBPACK_IMPORTED_MODULE_2__["default"])(a, b);
7878
7825
  };
7826
+ //# sourceMappingURL=util.js.map
7879
7827
 
7880
7828
  /***/ }),
7881
7829
 
@@ -8138,6 +8086,7 @@ VictoryAnimation.defaultProps = {
8138
8086
  easing: "quadInOut"
8139
8087
  };
8140
8088
  VictoryAnimation.contextType = _victory_util_timer_context__WEBPACK_IMPORTED_MODULE_5__["default"];
8089
+ //# sourceMappingURL=victory-animation.js.map
8141
8090
 
8142
8091
  /***/ }),
8143
8092
 
@@ -8451,6 +8400,7 @@ VictoryContainer.defaultProps = {
8451
8400
  role: "img"
8452
8401
  };
8453
8402
  VictoryContainer.contextType = _victory_util_timer_context__WEBPACK_IMPORTED_MODULE_12__["default"];
8403
+ //# sourceMappingURL=victory-container.js.map
8454
8404
 
8455
8405
  /***/ }),
8456
8406
 
@@ -9056,10 +9006,9 @@ VictoryLabel.propTypes = {
9056
9006
  inline: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().bool),
9057
9007
  labelPlacement: prop_types__WEBPACK_IMPORTED_MODULE_11___default().oneOf(["parallel", "perpendicular", "vertical"]),
9058
9008
  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)]),
9059
- // @ts-expect-error "x is required in origin"
9060
9009
  origin: prop_types__WEBPACK_IMPORTED_MODULE_11___default().shape({
9061
- x: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_12__.nonNegative,
9062
- y: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_12__.nonNegative
9010
+ x: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_12__.nonNegative.isRequired,
9011
+ y: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_12__.nonNegative.isRequired
9063
9012
  }),
9064
9013
  polar: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().bool),
9065
9014
  renderInPortal: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().bool),
@@ -9093,6 +9042,7 @@ VictoryLabel.defaultProps = {
9093
9042
  // Magic number from d3.
9094
9043
  lineHeight: 1
9095
9044
  };
9045
+ //# sourceMappingURL=victory-label.js.map
9096
9046
 
9097
9047
  /***/ }),
9098
9048
 
@@ -9117,6 +9067,7 @@ __webpack_require__.r(__webpack_exports__);
9117
9067
  */
9118
9068
  var PortalContext = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createContext({});
9119
9069
  PortalContext.displayName = "PortalContext";
9070
+ //# sourceMappingURL=portal-context.js.map
9120
9071
 
9121
9072
  /***/ }),
9122
9073
 
@@ -9228,6 +9179,7 @@ Portal.propTypes = {
9228
9179
  viewBox: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().string),
9229
9180
  width: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_3__.nonNegative
9230
9181
  };
9182
+ //# sourceMappingURL=portal.js.map
9231
9183
 
9232
9184
  /***/ }),
9233
9185
 
@@ -9371,6 +9323,7 @@ VictoryPortal.defaultProps = {
9371
9323
  groupComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("g", null)
9372
9324
  };
9373
9325
  VictoryPortal.contextType = _portal_context__WEBPACK_IMPORTED_MODULE_5__.PortalContext;
9326
+ //# sourceMappingURL=victory-portal.js.map
9374
9327
 
9375
9328
  /***/ }),
9376
9329
 
@@ -9451,7 +9404,7 @@ var Border = function (props) {
9451
9404
  clipPath: props.clipPath
9452
9405
  }));
9453
9406
  };
9454
- Border.propTypes = _objectSpread(_objectSpread({}, _victory_util_common_props__WEBPACK_IMPORTED_MODULE_3__.primitiveProps), {}, {
9407
+ Border.propTypes = _objectSpread(_objectSpread({}, _victory_util_common_props__WEBPACK_IMPORTED_MODULE_3__.CommonProps.primitiveProps), {}, {
9455
9408
  height: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().number),
9456
9409
  rectComponent: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().element),
9457
9410
  width: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().number),
@@ -9463,6 +9416,7 @@ Border.defaultProps = {
9463
9416
  role: "presentation",
9464
9417
  shapeRendering: "auto"
9465
9418
  };
9419
+ //# sourceMappingURL=border.js.map
9466
9420
 
9467
9421
  /***/ }),
9468
9422
 
@@ -9543,7 +9497,7 @@ var LineSegment = function (props) {
9543
9497
  clipPath: props.clipPath
9544
9498
  }));
9545
9499
  };
9546
- LineSegment.propTypes = _objectSpread(_objectSpread({}, _victory_util_common_props__WEBPACK_IMPORTED_MODULE_3__.primitiveProps), {}, {
9500
+ LineSegment.propTypes = _objectSpread(_objectSpread({}, _victory_util_common_props__WEBPACK_IMPORTED_MODULE_3__.CommonProps.primitiveProps), {}, {
9547
9501
  datum: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().any),
9548
9502
  lineComponent: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().element),
9549
9503
  x1: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().number),
@@ -9556,6 +9510,7 @@ LineSegment.defaultProps = {
9556
9510
  role: "presentation",
9557
9511
  shapeRendering: "auto"
9558
9512
  };
9513
+ //# sourceMappingURL=line-segment.js.map
9559
9514
 
9560
9515
  /***/ }),
9561
9516
 
@@ -9598,6 +9553,7 @@ var Line = function (props) {
9598
9553
  vectorEffect: "non-scaling-stroke"
9599
9554
  }, rest));
9600
9555
  };
9556
+ //# sourceMappingURL=line.js.map
9601
9557
 
9602
9558
  /***/ }),
9603
9559
 
@@ -9640,6 +9596,7 @@ var Rect = function (props) {
9640
9596
  vectorEffect: "non-scaling-stroke"
9641
9597
  }, rest));
9642
9598
  };
9599
+ //# sourceMappingURL=rect.js.map
9643
9600
 
9644
9601
  /***/ }),
9645
9602
 
@@ -9683,6 +9640,7 @@ Text.propTypes = {
9683
9640
  desc: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().string),
9684
9641
  title: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().string)
9685
9642
  };
9643
+ //# sourceMappingURL=text.js.map
9686
9644
 
9687
9645
  /***/ }),
9688
9646
 
@@ -9707,6 +9665,7 @@ var TSpan = function (props) {
9707
9665
  react__WEBPACK_IMPORTED_MODULE_0___default().createElement("tspan", props)
9708
9666
  );
9709
9667
  };
9668
+ //# sourceMappingURL=tspan.js.map
9710
9669
 
9711
9670
  /***/ }),
9712
9671
 
@@ -9804,7 +9763,7 @@ var Whisker = function (props) {
9804
9763
  "aria-label": ariaLabel
9805
9764
  }, baseProps, minorWhisker))]);
9806
9765
  };
9807
- Whisker.propTypes = _objectSpread(_objectSpread({}, _victory_util_common_props__WEBPACK_IMPORTED_MODULE_3__.primitiveProps), {}, {
9766
+ Whisker.propTypes = _objectSpread(_objectSpread({}, _victory_util_common_props__WEBPACK_IMPORTED_MODULE_3__.CommonProps.primitiveProps), {}, {
9808
9767
  groupComponent: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().element),
9809
9768
  lineComponent: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().element),
9810
9769
  majorWhisker: prop_types__WEBPACK_IMPORTED_MODULE_4___default().shape({
@@ -9826,6 +9785,7 @@ Whisker.defaultProps = {
9826
9785
  role: "presentation",
9827
9786
  shapeRendering: "auto"
9828
9787
  };
9788
+ //# sourceMappingURL=whisker.js.map
9829
9789
 
9830
9790
  /***/ }),
9831
9791
 
@@ -10101,6 +10061,7 @@ var grayscale = {
10101
10061
  }
10102
10062
  }, baseProps)
10103
10063
  };
10064
+ //# sourceMappingURL=grayscale.js.map
10104
10065
 
10105
10066
  /***/ }),
10106
10067
 
@@ -10403,6 +10364,7 @@ var material = {
10403
10364
  }
10404
10365
  }, baseProps)
10405
10366
  };
10367
+ //# sourceMappingURL=material.js.map
10406
10368
 
10407
10369
  /***/ }),
10408
10370
 
@@ -10426,6 +10388,7 @@ var VictoryTheme = {
10426
10388
  grayscale: _grayscale__WEBPACK_IMPORTED_MODULE_0__.grayscale,
10427
10389
  material: _material__WEBPACK_IMPORTED_MODULE_1__.material
10428
10390
  };
10391
+ //# sourceMappingURL=victory-theme.js.map
10429
10392
 
10430
10393
  /***/ }),
10431
10394
 
@@ -10694,6 +10657,7 @@ VictoryTransition.propTypes = {
10694
10657
  children: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().node)
10695
10658
  };
10696
10659
  VictoryTransition.contextType = _victory_util_timer_context__WEBPACK_IMPORTED_MODULE_10__["default"];
10660
+ //# sourceMappingURL=victory-transition.js.map
10697
10661
 
10698
10662
  /***/ }),
10699
10663
 
@@ -10706,26 +10670,26 @@ VictoryTransition.contextType = _victory_util_timer_context__WEBPACK_IMPORTED_MO
10706
10670
  "use strict";
10707
10671
  __webpack_require__.r(__webpack_exports__);
10708
10672
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
10709
- /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
10673
+ /* harmony export */ "addEvents": () => (/* binding */ addEvents)
10710
10674
  /* harmony export */ });
10711
- /* harmony import */ var lodash_difference__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/difference */ "../../../node_modules/lodash/difference.js");
10712
- /* harmony import */ var lodash_difference__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_difference__WEBPACK_IMPORTED_MODULE_0__);
10713
- /* harmony import */ var lodash_isNil__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/isNil */ "../../../node_modules/lodash/isNil.js");
10714
- /* harmony import */ var lodash_isNil__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_isNil__WEBPACK_IMPORTED_MODULE_1__);
10715
- /* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash/isEmpty */ "../../../node_modules/lodash/isEmpty.js");
10716
- /* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_isEmpty__WEBPACK_IMPORTED_MODULE_2__);
10717
- /* harmony import */ var lodash_without__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! lodash/without */ "../../../node_modules/lodash/without.js");
10718
- /* harmony import */ var lodash_without__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(lodash_without__WEBPACK_IMPORTED_MODULE_3__);
10719
- /* harmony import */ var lodash_pick__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! lodash/pick */ "../../../node_modules/lodash/pick.js");
10720
- /* harmony import */ var lodash_pick__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(lodash_pick__WEBPACK_IMPORTED_MODULE_4__);
10721
- /* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! lodash/isFunction */ "../../../node_modules/lodash/isFunction.js");
10722
- /* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(lodash_isFunction__WEBPACK_IMPORTED_MODULE_5__);
10723
- /* harmony import */ var lodash_keys__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! lodash/keys */ "../../../node_modules/lodash/keys.js");
10724
- /* harmony import */ var lodash_keys__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(lodash_keys__WEBPACK_IMPORTED_MODULE_6__);
10725
- /* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! lodash/assign */ "../../../node_modules/lodash/assign.js");
10726
- /* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(lodash_assign__WEBPACK_IMPORTED_MODULE_7__);
10727
- /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! lodash/defaults */ "../../../node_modules/lodash/defaults.js");
10728
- /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_8__);
10675
+ /* harmony import */ var lodash_without__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/without */ "../../../node_modules/lodash/without.js");
10676
+ /* harmony import */ var lodash_without__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_without__WEBPACK_IMPORTED_MODULE_0__);
10677
+ /* harmony import */ var lodash_pick__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/pick */ "../../../node_modules/lodash/pick.js");
10678
+ /* harmony import */ var lodash_pick__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_pick__WEBPACK_IMPORTED_MODULE_1__);
10679
+ /* harmony import */ var lodash_keys__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash/keys */ "../../../node_modules/lodash/keys.js");
10680
+ /* harmony import */ var lodash_keys__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_keys__WEBPACK_IMPORTED_MODULE_2__);
10681
+ /* harmony import */ var lodash_isNil__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! lodash/isNil */ "../../../node_modules/lodash/isNil.js");
10682
+ /* harmony import */ var lodash_isNil__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(lodash_isNil__WEBPACK_IMPORTED_MODULE_3__);
10683
+ /* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! lodash/isFunction */ "../../../node_modules/lodash/isFunction.js");
10684
+ /* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(lodash_isFunction__WEBPACK_IMPORTED_MODULE_4__);
10685
+ /* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! lodash/isEmpty */ "../../../node_modules/lodash/isEmpty.js");
10686
+ /* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(lodash_isEmpty__WEBPACK_IMPORTED_MODULE_5__);
10687
+ /* harmony import */ var lodash_difference__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! lodash/difference */ "../../../node_modules/lodash/difference.js");
10688
+ /* harmony import */ var lodash_difference__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(lodash_difference__WEBPACK_IMPORTED_MODULE_6__);
10689
+ /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! lodash/defaults */ "../../../node_modules/lodash/defaults.js");
10690
+ /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_7__);
10691
+ /* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! lodash/assign */ "../../../node_modules/lodash/assign.js");
10692
+ /* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(lodash_assign__WEBPACK_IMPORTED_MODULE_8__);
10729
10693
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! react */ "react");
10730
10694
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_9__);
10731
10695
  /* harmony import */ var _events__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./events */ "../../victory-core/es/victory-util/events.js");
@@ -10778,13 +10742,14 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
10778
10742
 
10779
10743
 
10780
10744
 
10781
- // DISCLAIMER:
10745
+
10746
+
10747
+ // DISCLAIMER:
10782
10748
  // This file is not currently tested, and it is first on the list of files
10783
10749
  // to refactor in our current refactoring effort. Please do not make changes
10784
10750
  // to this file without manual testing and/or refactoring and adding tests.
10785
-
10786
10751
  var datumHasXandY = function (datum) {
10787
- return !lodash_isNil__WEBPACK_IMPORTED_MODULE_1___default()(datum._x) && !lodash_isNil__WEBPACK_IMPORTED_MODULE_1___default()(datum._y);
10752
+ return !lodash_isNil__WEBPACK_IMPORTED_MODULE_3___default()(datum._x) && !lodash_isNil__WEBPACK_IMPORTED_MODULE_3___default()(datum._y);
10788
10753
  }; // used for checking state changes. Expected components can be passed in via options
10789
10754
 
10790
10755
 
@@ -10796,44 +10761,45 @@ var defaultComponents = [{
10796
10761
  }, {
10797
10762
  name: "labels"
10798
10763
  }];
10799
- /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (function (WrappedComponent, options) {
10800
- return /*#__PURE__*/function (_WrappedComponent) {
10801
- _inherits(addEvents, _WrappedComponent);
10764
+ function addEvents(WrappedComponent) {
10765
+ var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
10802
10766
 
10803
- var _super = _createSuper(addEvents);
10767
+ // @ts-expect-error "TS2545: A mixin class must have a constructor with a single rest parameter of type 'any[]'."
10768
+ var AddEventsMixin = /*#__PURE__*/function (_WrappedComponent) {
10769
+ _inherits(AddEventsMixin, _WrappedComponent);
10804
10770
 
10805
- function addEvents(props) {
10771
+ var _super = _createSuper(AddEventsMixin);
10772
+
10773
+ function AddEventsMixin(props) {
10806
10774
  var _this;
10807
10775
 
10808
- _classCallCheck(this, addEvents);
10776
+ _classCallCheck(this, AddEventsMixin);
10809
10777
 
10810
10778
  _this = _super.call(this, props);
10811
- var getScopedEvents = _events__WEBPACK_IMPORTED_MODULE_11__.getScopedEvents.bind(_assertThisInitialized(_this));
10812
- var boundGetEvents = _events__WEBPACK_IMPORTED_MODULE_11__.getEvents.bind(_assertThisInitialized(_this));
10813
10779
  _this.state = {};
10780
+ _this.getEventState = _events__WEBPACK_IMPORTED_MODULE_11__.getEventState.bind(_assertThisInitialized(_this));
10781
+ _this.getScopedEvents = _events__WEBPACK_IMPORTED_MODULE_11__.getScopedEvents.bind(_assertThisInitialized(_this));
10814
10782
 
10815
10783
  _this.getEvents = function (p, target, eventKey) {
10816
- return boundGetEvents(p, target, eventKey, getScopedEvents);
10784
+ return _events__WEBPACK_IMPORTED_MODULE_11__.getEvents.call(_assertThisInitialized(_this), p, target, eventKey, _this.getScopedEvents);
10817
10785
  };
10818
10786
 
10819
- _this.getEventState = _events__WEBPACK_IMPORTED_MODULE_11__.getEventState.bind(_assertThisInitialized(_this));
10820
-
10821
- var calculatedValues = _this.getCalculatedValues(props);
10822
-
10823
- _this.cacheValues(calculatedValues);
10824
-
10825
- _this.externalMutations = _this.getExternalMutations(props);
10826
- _this.calculatedState = _this.getStateChanges(props);
10787
+ _this.externalMutations = _this.getExternalMutations(_this.props);
10788
+ _this.calculatedState = _this.getStateChanges(_this.props);
10827
10789
  _this.globalEvents = {};
10828
10790
  _this.prevGlobalEventKeys = [];
10829
10791
  _this.boundGlobalEvents = {};
10792
+
10793
+ _this.cacheValues(_this.getCalculatedValues(props));
10794
+
10830
10795
  return _this;
10831
10796
  }
10832
10797
 
10833
- _createClass(addEvents, [{
10798
+ _createClass(AddEventsMixin, [{
10834
10799
  key: "shouldComponentUpdate",
10835
10800
  value: function shouldComponentUpdate(nextProps) {
10836
- var externalMutations = this.getExternalMutations(nextProps);
10801
+ var externalMutations = this.getExternalMutations(nextProps); // @ts-expect-error "Property 'animating' does not exist on type EventMixinCommonProps"
10802
+
10837
10803
  var animating = this.props.animating || this.props.animate;
10838
10804
  var newMutation = !react_fast_compare__WEBPACK_IMPORTED_MODULE_10___default()(externalMutations, this.externalMutations);
10839
10805
 
@@ -10863,7 +10829,7 @@ var defaultComponents = [{
10863
10829
  value: function componentDidMount() {
10864
10830
  var _this2 = this;
10865
10831
 
10866
- var globalEventKeys = lodash_keys__WEBPACK_IMPORTED_MODULE_6___default()(this.globalEvents);
10832
+ var globalEventKeys = lodash_keys__WEBPACK_IMPORTED_MODULE_2___default()(this.globalEvents);
10867
10833
 
10868
10834
  globalEventKeys.forEach(function (key) {
10869
10835
  return _this2.addGlobalListener(key);
@@ -10878,15 +10844,15 @@ var defaultComponents = [{
10878
10844
  var calculatedState = this.getStateChanges(prevProps);
10879
10845
  this.calculatedState = calculatedState;
10880
10846
 
10881
- var globalEventKeys = lodash_keys__WEBPACK_IMPORTED_MODULE_6___default()(this.globalEvents);
10847
+ var globalEventKeys = lodash_keys__WEBPACK_IMPORTED_MODULE_2___default()(this.globalEvents);
10882
10848
 
10883
- var removedGlobalEventKeys = lodash_difference__WEBPACK_IMPORTED_MODULE_0___default()(this.prevGlobalEventKeys, globalEventKeys);
10849
+ var removedGlobalEventKeys = lodash_difference__WEBPACK_IMPORTED_MODULE_6___default()(this.prevGlobalEventKeys, globalEventKeys);
10884
10850
 
10885
10851
  removedGlobalEventKeys.forEach(function (key) {
10886
10852
  return _this3.removeGlobalListener(key);
10887
10853
  });
10888
10854
 
10889
- var addedGlobalEventKeys = lodash_difference__WEBPACK_IMPORTED_MODULE_0___default()(globalEventKeys, this.prevGlobalEventKeys);
10855
+ var addedGlobalEventKeys = lodash_difference__WEBPACK_IMPORTED_MODULE_6___default()(globalEventKeys, this.prevGlobalEventKeys);
10890
10856
 
10891
10857
  addedGlobalEventKeys.forEach(function (key) {
10892
10858
  return _this3.addGlobalListener(key);
@@ -10932,12 +10898,11 @@ var defaultComponents = [{
10932
10898
  }
10933
10899
 
10934
10900
  var getState = function (key, type) {
10935
- var result = lodash_defaults__WEBPACK_IMPORTED_MODULE_8___default()({}, _this6.getEventState(key, type), _this6.getSharedEventState(key, type));
10901
+ var result = lodash_defaults__WEBPACK_IMPORTED_MODULE_7___default()({}, _this6.getEventState(key, type), _this6.getSharedEventState(key, type));
10936
10902
 
10937
- return lodash_isEmpty__WEBPACK_IMPORTED_MODULE_2___default()(result) ? undefined : result;
10903
+ return lodash_isEmpty__WEBPACK_IMPORTED_MODULE_5___default()(result) ? undefined : result;
10938
10904
  };
10939
10905
 
10940
- options = options || {};
10941
10906
  var components = options.components || defaultComponents;
10942
10907
  var stateChanges = components.map(function (component) {
10943
10908
  if (!props.standalone && component.name === "parent") {
@@ -10954,9 +10919,9 @@ var defaultComponents = [{
10954
10919
  }, {
10955
10920
  key: "applyExternalMutations",
10956
10921
  value: function applyExternalMutations(props, externalMutations) {
10957
- if (!lodash_isEmpty__WEBPACK_IMPORTED_MODULE_2___default()(externalMutations)) {
10922
+ if (!lodash_isEmpty__WEBPACK_IMPORTED_MODULE_5___default()(externalMutations)) {
10958
10923
  var callbacks = props.externalEventMutations.reduce(function (memo, mutation) {
10959
- memo = lodash_isFunction__WEBPACK_IMPORTED_MODULE_5___default()(mutation.callback) ? memo.concat(mutation.callback) : memo;
10924
+ memo = lodash_isFunction__WEBPACK_IMPORTED_MODULE_4___default()(mutation.callback) ? memo.concat(mutation.callback) : memo;
10960
10925
  return memo;
10961
10926
  }, []);
10962
10927
  var compiledCallbacks = callbacks.length ? function () {
@@ -10973,12 +10938,12 @@ var defaultComponents = [{
10973
10938
  var sharedEvents = props.sharedEvents;
10974
10939
  var components = WrappedComponent.expectedComponents;
10975
10940
  var componentEvents = _events__WEBPACK_IMPORTED_MODULE_11__.getComponentEvents(props, components);
10976
- var getSharedEventState = sharedEvents && lodash_isFunction__WEBPACK_IMPORTED_MODULE_5___default()(sharedEvents.getEventState) ? sharedEvents.getEventState : function () {
10941
+ var getSharedEventState = sharedEvents && lodash_isFunction__WEBPACK_IMPORTED_MODULE_4___default()(sharedEvents.getEventState) ? sharedEvents.getEventState : function () {
10977
10942
  return undefined;
10978
10943
  };
10979
10944
  var baseProps = this.getBaseProps(props, getSharedEventState);
10980
10945
 
10981
- var dataKeys = lodash_keys__WEBPACK_IMPORTED_MODULE_6___default()(baseProps).filter(function (key) {
10946
+ var dataKeys = lodash_keys__WEBPACK_IMPORTED_MODULE_2___default()(baseProps).filter(function (key) {
10982
10947
  return key !== "parent";
10983
10948
  });
10984
10949
 
@@ -10998,32 +10963,32 @@ var defaultComponents = [{
10998
10963
  value: function getExternalMutations(props) {
10999
10964
  var sharedEvents = props.sharedEvents,
11000
10965
  externalEventMutations = props.externalEventMutations;
11001
- return lodash_isEmpty__WEBPACK_IMPORTED_MODULE_2___default()(externalEventMutations) || sharedEvents ? undefined : _events__WEBPACK_IMPORTED_MODULE_11__.getExternalMutations(externalEventMutations, this.baseProps, this.state);
10966
+ return lodash_isEmpty__WEBPACK_IMPORTED_MODULE_5___default()(externalEventMutations) || sharedEvents ? undefined : _events__WEBPACK_IMPORTED_MODULE_11__.getExternalMutations(externalEventMutations, this.baseProps, this.state);
11002
10967
  }
11003
10968
  }, {
11004
10969
  key: "cacheValues",
11005
10970
  value: function cacheValues(obj) {
11006
10971
  var _this7 = this;
11007
10972
 
11008
- lodash_keys__WEBPACK_IMPORTED_MODULE_6___default()(obj).forEach(function (key) {
10973
+ lodash_keys__WEBPACK_IMPORTED_MODULE_2___default()(obj).forEach(function (key) {
11009
10974
  _this7[key] = obj[key];
11010
10975
  });
11011
10976
  }
11012
10977
  }, {
11013
10978
  key: "getBaseProps",
11014
10979
  value: function getBaseProps(props, getSharedEventState) {
11015
- getSharedEventState = getSharedEventState || this.getSharedEventState;
10980
+ getSharedEventState = getSharedEventState || this.getSharedEventState.bind(this);
11016
10981
  var sharedParentState = getSharedEventState("parent", "parent");
11017
10982
  var parentState = this.getEventState("parent", "parent");
11018
10983
 
11019
- var baseParentProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_8___default()({}, parentState, sharedParentState);
10984
+ var baseParentProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_7___default()({}, parentState, sharedParentState);
11020
10985
 
11021
10986
  var parentPropsList = baseParentProps.parentControlledProps;
11022
- var parentProps = parentPropsList ? lodash_pick__WEBPACK_IMPORTED_MODULE_4___default()(baseParentProps, parentPropsList) : {};
10987
+ var parentProps = parentPropsList ? lodash_pick__WEBPACK_IMPORTED_MODULE_1___default()(baseParentProps, parentPropsList) : {};
11023
10988
 
11024
- var modifiedProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_8___default()({}, parentProps, props);
10989
+ var modifiedProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_7___default()({}, parentProps, props);
11025
10990
 
11026
- return lodash_isFunction__WEBPACK_IMPORTED_MODULE_5___default()(WrappedComponent.getBaseProps) ? WrappedComponent.getBaseProps(modifiedProps) : {};
10991
+ return typeof WrappedComponent.getBaseProps === "function" ? WrappedComponent.getBaseProps(modifiedProps) : {};
11027
10992
  }
11028
10993
  }, {
11029
10994
  key: "getAllEvents",
@@ -11051,21 +11016,21 @@ var defaultComponents = [{
11051
11016
  if (this.hasEvents) {
11052
11017
  var baseEvents = this.getEvents(this.props, type, key);
11053
11018
 
11054
- var componentProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_8___default()({
11019
+ var componentProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_7___default()({
11055
11020
  index: index,
11056
11021
  key: id
11057
11022
  }, this.getEventState(key, type), this.getSharedEventState(key, type), component.props, baseProps, {
11058
11023
  id: id
11059
11024
  });
11060
11025
 
11061
- var events = lodash_defaults__WEBPACK_IMPORTED_MODULE_8___default()({}, _events__WEBPACK_IMPORTED_MODULE_11__.getPartialEvents(baseEvents, key, componentProps), componentProps.events);
11026
+ var events = lodash_defaults__WEBPACK_IMPORTED_MODULE_7___default()({}, _events__WEBPACK_IMPORTED_MODULE_11__.getPartialEvents(baseEvents, key, componentProps), componentProps.events);
11062
11027
 
11063
- return lodash_assign__WEBPACK_IMPORTED_MODULE_7___default()({}, componentProps, {
11028
+ return lodash_assign__WEBPACK_IMPORTED_MODULE_8___default()({}, componentProps, {
11064
11029
  events: events
11065
11030
  });
11066
11031
  }
11067
11032
 
11068
- return lodash_defaults__WEBPACK_IMPORTED_MODULE_8___default()({
11033
+ return lodash_defaults__WEBPACK_IMPORTED_MODULE_7___default()({
11069
11034
  index: index,
11070
11035
  key: id
11071
11036
  }, component.props, baseProps, {
@@ -11088,11 +11053,14 @@ var defaultComponents = [{
11088
11053
  }, {
11089
11054
  key: "animateComponent",
11090
11055
  value: function animateComponent(props, defaultAnimationWhitelist) {
11091
- var animationWhitelist = props.animate && props.animate.animationWhitelist ? props.animate.animationWhitelist : defaultAnimationWhitelist;
11056
+ var _props$animate;
11057
+
11058
+ var animationWhitelist = typeof props.animate === "object" && ((_props$animate = props.animate) === null || _props$animate === void 0 ? void 0 : _props$animate.animationWhitelist) || defaultAnimationWhitelist;
11059
+ var Comp = this.constructor;
11092
11060
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_9___default().createElement(_victory_transition_victory_transition__WEBPACK_IMPORTED_MODULE_12__.VictoryTransition, {
11093
11061
  animate: props.animate,
11094
11062
  animationWhitelist: animationWhitelist
11095
- }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_9___default().createElement(this.constructor, props));
11063
+ }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_9___default().createElement(Comp, props));
11096
11064
  } // Used by `VictoryLine` and `VictoryArea`
11097
11065
 
11098
11066
  }, {
@@ -11104,7 +11072,7 @@ var defaultComponents = [{
11104
11072
  labelComponent = props.labelComponent,
11105
11073
  groupComponent = props.groupComponent;
11106
11074
 
11107
- var dataKeys = lodash_without__WEBPACK_IMPORTED_MODULE_3___default()(this.dataKeys, "all");
11075
+ var dataKeys = lodash_without__WEBPACK_IMPORTED_MODULE_0___default()(this.dataKeys, "all");
11108
11076
 
11109
11077
  var labelComponents = dataKeys.reduce(function (memo, key) {
11110
11078
  var labelProps = _this8.getComponentProps(labelComponent, "labels", key);
@@ -11151,9 +11119,12 @@ var defaultComponents = [{
11151
11119
  }
11152
11120
  }]);
11153
11121
 
11154
- return addEvents;
11122
+ return AddEventsMixin;
11155
11123
  }(WrappedComponent);
11156
- });
11124
+
11125
+ return AddEventsMixin;
11126
+ }
11127
+ //# sourceMappingURL=add-events.js.map
11157
11128
 
11158
11129
  /***/ }),
11159
11130
 
@@ -11187,7 +11158,6 @@ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToAr
11187
11158
 
11188
11159
  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; }
11189
11160
 
11190
- /* eslint-disable no-use-before-define */
11191
11161
  function isNonEmptyArray(collection) {
11192
11162
  return Array.isArray(collection) && collection.length > 0;
11193
11163
  }
@@ -11226,7 +11196,8 @@ function getMaxValue(arr) {
11226
11196
  }
11227
11197
 
11228
11198
  var array = arr.concat(values);
11229
- return containsDates(array) ? new Date(Math.max.apply(Math, _toConsumableArray(array))) : Math.max.apply(Math, _toConsumableArray(array));
11199
+ return containsDates(array) ? new Date(Math.max.apply(Math, _toConsumableArray(array))) // Dates will be coerced to numbers
11200
+ : Math.max.apply(Math, _toConsumableArray(array));
11230
11201
  }
11231
11202
  function getMinValue(arr) {
11232
11203
  for (var _len2 = arguments.length, values = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
@@ -11234,8 +11205,10 @@ function getMinValue(arr) {
11234
11205
  }
11235
11206
 
11236
11207
  var array = arr.concat(values);
11237
- return containsDates(array) ? new Date(Math.min.apply(Math, _toConsumableArray(array))) : Math.min.apply(Math, _toConsumableArray(array));
11208
+ return containsDates(array) ? new Date(Math.min.apply(Math, _toConsumableArray(array))) // Dates will be coerced to numbers
11209
+ : Math.min.apply(Math, _toConsumableArray(array));
11238
11210
  }
11211
+ //# sourceMappingURL=collection.js.map
11239
11212
 
11240
11213
  /***/ }),
11241
11214
 
@@ -11248,9 +11221,7 @@ function getMinValue(arr) {
11248
11221
  "use strict";
11249
11222
  __webpack_require__.r(__webpack_exports__);
11250
11223
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
11251
- /* harmony export */ "baseProps": () => (/* binding */ baseProps),
11252
- /* harmony export */ "dataProps": () => (/* binding */ dataProps),
11253
- /* harmony export */ "primitiveProps": () => (/* binding */ primitiveProps)
11224
+ /* harmony export */ "CommonProps": () => (/* binding */ CommonProps)
11254
11225
  /* harmony export */ });
11255
11226
  /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! prop-types */ "../../../node_modules/prop-types/index.js");
11256
11227
  /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_0__);
@@ -11258,26 +11229,28 @@ __webpack_require__.r(__webpack_exports__);
11258
11229
 
11259
11230
 
11260
11231
  var dataProps = {
11232
+ // @ts-expect-error TODO: synchronize the type with this PropTypes
11261
11233
  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({
11262
11234
  x: prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_0___default().string)),
11263
11235
  y: prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_0___default().string))
11264
11236
  })]),
11237
+ // @ts-expect-error TODO: synchronize the type with this PropTypes
11265
11238
  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)]),
11266
11239
  dataComponent: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().element),
11267
11240
  disableInlineStyles: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
11268
11241
  labelComponent: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().element),
11269
11242
  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)]),
11270
11243
  samples: _prop_types__WEBPACK_IMPORTED_MODULE_1__.nonNegative,
11271
- 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))]),
11244
+ 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))]),
11272
11245
  sortOrder: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(["ascending", "descending"]),
11273
11246
  style: prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
11274
11247
  parent: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object),
11275
11248
  data: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object),
11276
11249
  labels: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object)
11277
11250
  }),
11278
- 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))]),
11279
- 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))]),
11280
- 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))])
11251
+ 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))]),
11252
+ 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))]),
11253
+ 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))])
11281
11254
  };
11282
11255
  var baseProps = {
11283
11256
  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)]),
@@ -11286,14 +11259,17 @@ var baseProps = {
11286
11259
  x: _prop_types__WEBPACK_IMPORTED_MODULE_1__.domain,
11287
11260
  y: _prop_types__WEBPACK_IMPORTED_MODULE_1__.domain
11288
11261
  })]),
11262
+ // @ts-expect-error TODO: synchronize the type with this PropTypes
11289
11263
  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({
11290
11264
  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)]),
11291
11265
  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)])
11292
11266
  })]),
11267
+ // @ts-expect-error TODO: synchronize the type with this PropTypes
11293
11268
  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({
11294
11269
  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)]),
11295
11270
  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)])
11296
11271
  })]),
11272
+ // @ts-expect-error TODO: synchronize the type with this PropTypes
11297
11273
  domainPadding: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
11298
11274
  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))]),
11299
11275
  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))])
@@ -11304,6 +11280,7 @@ var baseProps = {
11304
11280
  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)]),
11305
11281
  eventHandlers: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object)
11306
11282
  })),
11283
+ // @ts-expect-error TODO: synchronize the type with this PropTypes
11307
11284
  externalEventMutations: prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
11308
11285
  callback: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
11309
11286
  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)]),
@@ -11314,10 +11291,12 @@ var baseProps = {
11314
11291
  groupComponent: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().element),
11315
11292
  height: _prop_types__WEBPACK_IMPORTED_MODULE_1__.nonNegative,
11316
11293
  name: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
11294
+ // @ts-expect-error TODO: synchronize the type with this PropTypes
11317
11295
  origin: prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
11318
11296
  x: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number),
11319
11297
  y: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number)
11320
11298
  }),
11299
+ // @ts-expect-error TODO: synchronize the type with this PropTypes
11321
11300
  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({
11322
11301
  top: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number),
11323
11302
  bottom: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number),
@@ -11326,17 +11305,19 @@ var baseProps = {
11326
11305
  })]),
11327
11306
  polar: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
11328
11307
  range: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([_prop_types__WEBPACK_IMPORTED_MODULE_1__.domain, prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
11329
- x: _prop_types__WEBPACK_IMPORTED_MODULE_1__.domain,
11330
- y: _prop_types__WEBPACK_IMPORTED_MODULE_1__.domain
11308
+ x: _prop_types__WEBPACK_IMPORTED_MODULE_1__.domain.isRequired,
11309
+ y: _prop_types__WEBPACK_IMPORTED_MODULE_1__.domain.isRequired
11331
11310
  })]),
11332
11311
  scale: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([_prop_types__WEBPACK_IMPORTED_MODULE_1__.scale, prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
11333
- x: _prop_types__WEBPACK_IMPORTED_MODULE_1__.scale,
11334
- y: _prop_types__WEBPACK_IMPORTED_MODULE_1__.scale
11312
+ x: _prop_types__WEBPACK_IMPORTED_MODULE_1__.scale.isRequired,
11313
+ y: _prop_types__WEBPACK_IMPORTED_MODULE_1__.scale.isRequired
11335
11314
  })]),
11315
+ // @ts-expect-error TODO: synchronize the type with this PropTypes
11336
11316
  sharedEvents: prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
11337
11317
  events: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().array),
11338
11318
  getEventState: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func)
11339
11319
  }),
11320
+ // @ts-expect-error TODO: synchronize the type with this PropTypes
11340
11321
  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({
11341
11322
  x: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool)]),
11342
11323
  y: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool)])
@@ -11356,6 +11337,7 @@ var primitiveProps = {
11356
11337
  events: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object),
11357
11338
  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)]),
11358
11339
  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)]),
11340
+ // @ts-expect-error TODO: synchronize the type with this PropTypes
11359
11341
  origin: prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
11360
11342
  x: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number),
11361
11343
  y: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number)
@@ -11371,6 +11353,12 @@ var primitiveProps = {
11371
11353
  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)]),
11372
11354
  transform: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string)
11373
11355
  };
11356
+ var CommonProps = {
11357
+ dataProps: dataProps,
11358
+ baseProps: baseProps,
11359
+ primitiveProps: primitiveProps
11360
+ };
11361
+ //# sourceMappingURL=common-props.js.map
11374
11362
 
11375
11363
  /***/ }),
11376
11364
 
@@ -11884,6 +11872,7 @@ function isDataComponent(component) {
11884
11872
  var whitelist = ["area", "bar", "boxplot", "candlestick", "errorbar", "group", "histogram", "line", "pie", "scatter", "stack", "voronoi"];
11885
11873
  return lodash_includes__WEBPACK_IMPORTED_MODULE_2___default()(whitelist, role);
11886
11874
  }
11875
+ //# sourceMappingURL=data.js.map
11887
11876
 
11888
11877
  /***/ }),
11889
11878
 
@@ -12006,6 +11995,7 @@ function discreteTransitions() {
12006
11995
  }
12007
11996
  };
12008
11997
  }
11998
+ //# sourceMappingURL=default-transitions.js.map
12009
11999
 
12010
12000
  /***/ }),
12011
12001
 
@@ -12107,8 +12097,9 @@ function getDomainPadding(props, axis) {
12107
12097
  }
12108
12098
 
12109
12099
  function getFlatData(dataset, axis) {
12100
+ var axisKey = "_".concat(axis);
12110
12101
  return lodash_flatten__WEBPACK_IMPORTED_MODULE_5___default()(dataset).map(function (datum) {
12111
- return datum["_".concat(axis)] && datum["_".concat(axis)][1] !== undefined ? datum["_".concat(axis)][1] : datum["_".concat(axis)];
12102
+ return datum[axisKey] && datum[axisKey][1] !== undefined ? datum[axisKey][1] : datum[axisKey];
12112
12103
  });
12113
12104
  }
12114
12105
 
@@ -12173,7 +12164,9 @@ function padDomain(domain, props, axis) {
12173
12164
  if (addsQuadrants && singleQuadrantDomainPadding !== false) {
12174
12165
  // Naive initial padding calculation
12175
12166
  var initialPadding = {
12167
+ // @ts-expect-error `max/min` might be dates
12176
12168
  left: Math.abs(max - min) * padding.left / rangeExtent,
12169
+ // @ts-expect-error `max/min` might be dates
12177
12170
  right: Math.abs(max - min) * padding.right / rangeExtent
12178
12171
  }; // Adjust the domain by the initial padding
12179
12172
 
@@ -12458,6 +12451,7 @@ function isDomainComponent(component) {
12458
12451
  var whitelist = ["area", "axis", "bar", "boxplot", "candlestick", "errorbar", "group", "histogram", "line", "pie", "scatter", "stack", "voronoi"];
12459
12452
  return lodash_includes__WEBPACK_IMPORTED_MODULE_1___default()(whitelist, role);
12460
12453
  }
12454
+ //# sourceMappingURL=domain.js.map
12461
12455
 
12462
12456
  /***/ }),
12463
12457
 
@@ -12526,15 +12520,16 @@ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToAr
12526
12520
  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; }
12527
12521
 
12528
12522
  var GLOBAL_EVENT_REGEX = /^onGlobal(.*)$/;
12523
+
12529
12524
  /* Returns all own and shared events that should be attached to a single target element,
12530
12525
  * i.e. an individual bar specified by target: "data", eventKey: [index].
12531
12526
  * Returned events are scoped to the appropriate state. Either that of the component itself
12532
12527
  * (i.e. VictoryBar) in the case of own events, or that of the parent component
12533
12528
  * (i.e. VictoryChart) in the case of shared events
12534
12529
  */
12535
- // eslint-disable-next-line max-params,no-shadow
12536
-
12537
- function getEvents(props, target, eventKey, getScopedEvents) {
12530
+ // eslint-disable-next-line max-params
12531
+ function getEvents(props, target, eventKey, // eslint-disable-next-line no-shadow
12532
+ getScopedEvents) {
12538
12533
  var _this = this;
12539
12534
 
12540
12535
  // Returns all events that apply to a particular target element
@@ -12757,24 +12752,27 @@ function getScopedEvents(events, namespace, childType, baseProps) {
12757
12752
  return memo;
12758
12753
  }, {});
12759
12754
  }
12760
- /* Returns a partially applied event handler for a specific target element
12755
+ /*
12756
+ * Returns a partially applied event handler for a specific target element
12761
12757
  * This allows event handlers to have access to props controlling each element
12762
12758
  */
12763
12759
 
12764
12760
  function getPartialEvents(events, eventKey, childProps) {
12765
- return events ? lodash_keys__WEBPACK_IMPORTED_MODULE_0___default()(events).reduce(function (memo, eventName) {
12761
+ if (!events) return {};
12762
+ return lodash_keys__WEBPACK_IMPORTED_MODULE_0___default()(events).reduce(function (memo, eventName) {
12766
12763
  var appliedEvent = function (evt) {
12767
12764
  return events[eventName](evt, childProps, eventKey, eventName);
12768
12765
  };
12769
12766
 
12770
12767
  memo[eventName] = appliedEvent;
12771
12768
  return memo;
12772
- }, {}) : {};
12769
+ }, {});
12773
12770
  }
12771
+
12774
12772
  /* Returns the property of the state object corresponding to event changes for
12775
12773
  * a particular element
12776
12774
  */
12777
-
12775
+ // eslint-disable-next-line max-params
12778
12776
  function getEventState(eventKey, namespace, childType) {
12779
12777
  // Mandatory usage: `getEventState.bind(this)`
12780
12778
  // eslint-disable-next-line no-invalid-this
@@ -12959,6 +12957,7 @@ var emulateReactEvent = function (event) {
12959
12957
  nativeEvent: event
12960
12958
  });
12961
12959
  };
12960
+ //# sourceMappingURL=events.js.map
12962
12961
 
12963
12962
  /***/ }),
12964
12963
 
@@ -13040,7 +13039,7 @@ function getPolarRange(props, axis) {
13040
13039
 
13041
13040
  /**
13042
13041
  * creates an object with some keys excluded
13043
- * replacement for lodash.omit for performance. does not mimick the entire lodash.omit api
13042
+ * replacement for lodash.omit for performance. does not mimic the entire lodash.omit api
13044
13043
  * @param {Object} originalObject: created object will be based on this object
13045
13044
  * @param {Array<String>} ks: an array of keys to omit from the new object
13046
13045
  * @returns {Object} new object with same properties as originalObject
@@ -13053,6 +13052,7 @@ function omit(originalObject) {
13053
13052
  var newObject = {};
13054
13053
 
13055
13054
  for (var key in originalObject) {
13055
+ // @ts-expect-error String is not assignable to Key
13056
13056
  if (ks.indexOf(key) >= 0) {
13057
13057
  continue;
13058
13058
  }
@@ -13285,7 +13285,9 @@ function reduceChildren(children, iteratee) {
13285
13285
  var parentProps = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
13286
13286
  var initialMemo = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : [];
13287
13287
  var combine = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : function (memo, item) {
13288
- return memo.concat(item);
13288
+ return (// @ts-expect-error These defaults are hard to type
13289
+ memo.concat(item)
13290
+ );
13289
13291
  };
13290
13292
  var sharedProps = ["data", "domain", "categories", "polar", "startAngle", "endAngle", "minDomain", "maxDomain", "horizontal"];
13291
13293
 
@@ -13329,7 +13331,7 @@ function reduceChildren(children, iteratee) {
13329
13331
  /**
13330
13332
  * @param {Object} props: the props object
13331
13333
  * @returns {Boolean} returns true if the props object contains `horizontal: true` of if any
13332
- * children or nested children are hoizontal
13334
+ * children or nested children are horizontal
13333
13335
  */
13334
13336
 
13335
13337
  function isHorizontal(props) {
@@ -13352,6 +13354,7 @@ function isHorizontal(props) {
13352
13354
 
13353
13355
  return traverseChildren(react__WEBPACK_IMPORTED_MODULE_6___default().Children.toArray(props.children));
13354
13356
  }
13357
+ //# sourceMappingURL=helpers.js.map
13355
13358
 
13356
13359
  /***/ }),
13357
13360
 
@@ -13395,15 +13398,16 @@ function isMap(x) {
13395
13398
  return !!(x && x[IMMUTABLE_MAP]);
13396
13399
  }
13397
13400
  function shallowToJS(x, whitelist) {
13398
- return isIterable(x) ? x.reduce(function (prev, curr, key) {
13401
+ return isIterable(x) ? x.reduce(function (result, curr, key) {
13399
13402
  if (whitelist && whitelist[key]) {
13400
13403
  curr = shallowToJS(curr);
13401
13404
  }
13402
13405
 
13403
- prev[key] = curr;
13404
- return prev;
13406
+ result[key] = curr;
13407
+ return result;
13405
13408
  }, isList(x) ? [] : {}) : x;
13406
13409
  }
13410
+ //# sourceMappingURL=immutable.js.map
13407
13411
 
13408
13412
  /***/ }),
13409
13413
 
@@ -13661,6 +13665,7 @@ function getProps(props, index) {
13661
13665
  var tooltipTheme = theme && theme.tooltip || {};
13662
13666
  return lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default()({}, labelProps, _helpers__WEBPACK_IMPORTED_MODULE_1__.omit(tooltipTheme, ["style"]));
13663
13667
  }
13668
+ //# sourceMappingURL=label-helpers.js.map
13664
13669
 
13665
13670
  /***/ }),
13666
13671
 
@@ -13686,6 +13691,7 @@ function warn(message) {
13686
13691
  }
13687
13692
  }
13688
13693
  }
13694
+ //# sourceMappingURL=log.js.map
13689
13695
 
13690
13696
  /***/ }),
13691
13697
 
@@ -13713,12 +13719,10 @@ __webpack_require__.r(__webpack_exports__);
13713
13719
  /* harmony import */ var lodash_isRegExp__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_isRegExp__WEBPACK_IMPORTED_MODULE_0__);
13714
13720
  /* harmony import */ var lodash_find__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/find */ "../../../node_modules/lodash/find.js");
13715
13721
  /* harmony import */ var lodash_find__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_find__WEBPACK_IMPORTED_MODULE_1__);
13716
- /* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash/isFunction */ "../../../node_modules/lodash/isFunction.js");
13717
- /* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_isFunction__WEBPACK_IMPORTED_MODULE_2__);
13718
- /* harmony import */ var _log__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./log */ "../../victory-core/es/victory-util/log.js");
13719
- /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! prop-types */ "../../../node_modules/prop-types/index.js");
13720
- /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_4__);
13721
-
13722
+ /* harmony import */ var _log__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./log */ "../../victory-core/es/victory-util/log.js");
13723
+ /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! prop-types */ "../../../node_modules/prop-types/index.js");
13724
+ /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_3__);
13725
+ /* harmony import */ var _scale__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./scale */ "../../victory-core/es/victory-util/scale.js");
13722
13726
 
13723
13727
 
13724
13728
 
@@ -13726,6 +13730,8 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
13726
13730
 
13727
13731
 
13728
13732
 
13733
+
13734
+
13729
13735
  /**
13730
13736
  * Return a new validator based on `validator` but with the option to chain
13731
13737
  * `isRequired` onto the validation. This is nearly identical to how React
@@ -13733,30 +13739,30 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
13733
13739
  * @param {Function} validator Validation function.
13734
13740
  * @returns {Function} Validator with `isRequired` option.
13735
13741
  */
13736
-
13737
13742
  var makeChainable = function (validator) {
13738
- /* eslint-disable max-params */
13739
- var _chainable = function (isRequired, props, propName, componentName) {
13740
- var value = props[propName];
13743
+ var createChainable = function (isRequired) {
13744
+ return function (props, propName, componentName) {
13745
+ var value = props[propName];
13741
13746
 
13742
- if (value === undefined || value === null) {
13743
- if (isRequired) {
13744
- return new Error("Required `".concat(propName, "` was not specified in `").concat(componentName, "`."));
13745
- }
13747
+ if (value === undefined || value === null) {
13748
+ if (isRequired) {
13749
+ return new Error("Required `".concat(propName, "` was not specified in `").concat(componentName, "`."));
13750
+ }
13746
13751
 
13747
- return null;
13748
- }
13752
+ return null;
13753
+ }
13749
13754
 
13750
- for (var _len = arguments.length, rest = new Array(_len > 4 ? _len - 4 : 0), _key = 4; _key < _len; _key++) {
13751
- rest[_key - 4] = arguments[_key];
13752
- }
13755
+ for (var _len = arguments.length, rest = new Array(_len > 3 ? _len - 3 : 0), _key = 3; _key < _len; _key++) {
13756
+ rest[_key - 3] = arguments[_key];
13757
+ }
13753
13758
 
13754
- return validator.apply(void 0, [props, propName, componentName].concat(rest));
13759
+ return validator.apply(void 0, [props, propName, componentName].concat(rest));
13760
+ };
13755
13761
  };
13756
13762
 
13757
- var chainable = _chainable.bind(null, false);
13758
-
13759
- chainable.isRequired = _chainable.bind(null, true);
13763
+ var chainable = Object.assign(createChainable(false), {
13764
+ isRequired: createChainable(true)
13765
+ });
13760
13766
  return chainable;
13761
13767
  };
13762
13768
 
@@ -13786,7 +13792,7 @@ var getConstructor = function (value) {
13786
13792
  };
13787
13793
  /**
13788
13794
  * Get the name of the constructor used to create `value`, using
13789
- * `Object.protoype.toString`. If the value is null or undefined, return
13795
+ * `Object.prototype.toString`. If the value is null or undefined, return
13790
13796
  * "null" or "undefined", respectively.
13791
13797
  * @param {*} value Instance to return the constructor name of.
13792
13798
  * @returns {String} Name of the constructor.
@@ -13816,10 +13822,11 @@ function deprecated(propType, explanation) {
13816
13822
  var value = props[propName];
13817
13823
 
13818
13824
  if (value !== null && value !== undefined) {
13819
- _log__WEBPACK_IMPORTED_MODULE_3__.warn("\"".concat(propName, "\" property of \"").concat(componentName, "\" has been deprecated ").concat(explanation));
13825
+ _log__WEBPACK_IMPORTED_MODULE_2__.warn("\"".concat(propName, "\" property of \"").concat(componentName, "\" has been deprecated ").concat(explanation));
13820
13826
  }
13821
13827
 
13822
- return prop_types__WEBPACK_IMPORTED_MODULE_4___default().checkPropTypes(_defineProperty({}, propName, propType), props, propName, componentName);
13828
+ prop_types__WEBPACK_IMPORTED_MODULE_3___default().checkPropTypes(_defineProperty({}, propName, propType), props, propName, componentName);
13829
+ return null;
13823
13830
  };
13824
13831
  }
13825
13832
  /**
@@ -13838,7 +13845,7 @@ function allOfType(validators) {
13838
13845
 
13839
13846
  return validators.reduce(function (result, validator) {
13840
13847
  return result || validator.apply(void 0, [props, propName, componentName].concat(rest));
13841
- }, undefined);
13848
+ }, null);
13842
13849
  });
13843
13850
  }
13844
13851
  /**
@@ -13852,7 +13859,7 @@ var nonNegative = makeChainable(function (props, propName, componentName) {
13852
13859
  return new Error("`".concat(propName, "` in `").concat(componentName, "` must be a non-negative number."));
13853
13860
  }
13854
13861
 
13855
- return undefined;
13862
+ return null;
13856
13863
  });
13857
13864
  /**
13858
13865
  * Check that the value is an integer.
@@ -13865,7 +13872,7 @@ var integer = makeChainable(function (props, propName, componentName) {
13865
13872
  return new Error("`".concat(propName, "` in `").concat(componentName, "` must be an integer."));
13866
13873
  }
13867
13874
 
13868
- return undefined;
13875
+ return null;
13869
13876
  });
13870
13877
  /**
13871
13878
  * Check that the value is greater than zero.
@@ -13878,7 +13885,7 @@ var greaterThanZero = makeChainable(function (props, propName, componentName) {
13878
13885
  return new Error("`".concat(propName, "` in `").concat(componentName, "` must be a number greater than zero."));
13879
13886
  }
13880
13887
 
13881
- return undefined;
13888
+ return null;
13882
13889
  });
13883
13890
  /**
13884
13891
  * Check that the value is an Array of two unique values.
@@ -13891,32 +13898,20 @@ var domain = makeChainable(function (props, propName, componentName) {
13891
13898
  return new Error("`".concat(propName, "` in `").concat(componentName, "` must be an array of two unique numeric values."));
13892
13899
  }
13893
13900
 
13894
- return undefined;
13901
+ return null;
13895
13902
  });
13896
13903
  /**
13897
13904
  * Check that the value looks like a d3 `scale` function.
13898
13905
  */
13899
13906
 
13900
13907
  var scale = makeChainable(function (props, propName, componentName) {
13901
- var supportedScaleStrings = ["linear", "time", "log", "sqrt"];
13902
-
13903
- var validScale = function (scl) {
13904
- if (lodash_isFunction__WEBPACK_IMPORTED_MODULE_2___default()(scl)) {
13905
- 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);
13906
- } else if (typeof scl === "string") {
13907
- return supportedScaleStrings.indexOf(scl) !== -1;
13908
- }
13909
-
13910
- return false;
13911
- };
13912
-
13913
13908
  var value = props[propName];
13914
13909
 
13915
- if (!validScale(value)) {
13910
+ if (!_scale__WEBPACK_IMPORTED_MODULE_4__.validScale(value)) {
13916
13911
  return new Error("`".concat(propName, "` in `").concat(componentName, "` must be a d3 scale."));
13917
13912
  }
13918
13913
 
13919
- return undefined;
13914
+ return null;
13920
13915
  });
13921
13916
  /**
13922
13917
  * Check that an array contains items of the same type.
@@ -13930,7 +13925,7 @@ var homogeneousArray = makeChainable(function (props, propName, componentName) {
13930
13925
  }
13931
13926
 
13932
13927
  if (values.length < 2) {
13933
- return undefined;
13928
+ return null;
13934
13929
  }
13935
13930
 
13936
13931
  var comparisonConstructor = getConstructor(values[0]);
@@ -13945,7 +13940,7 @@ var homogeneousArray = makeChainable(function (props, propName, componentName) {
13945
13940
  return new Error("Expected `".concat(propName, "` in `").concat(componentName, "` to be a ") + "homogeneous array, but found types `".concat(constructorName, "` and ") + "`".concat(otherConstructorName, "`."));
13946
13941
  }
13947
13942
 
13948
- return undefined;
13943
+ return null;
13949
13944
  });
13950
13945
  /**
13951
13946
  * Check that array prop length matches props.data.length
@@ -13956,7 +13951,7 @@ var matchDataLength = makeChainable(function (props, propName) {
13956
13951
  return new Error("Length of data and ".concat(propName, " arrays must match."));
13957
13952
  }
13958
13953
 
13959
- return undefined;
13954
+ return null;
13960
13955
  });
13961
13956
  /**
13962
13957
  * Check that the value is a regular expression
@@ -13967,8 +13962,9 @@ var regExp = makeChainable(function (props, propName, componentName) {
13967
13962
  return new Error("`".concat(propName, "` in `").concat(componentName, "` must be a regular expression."));
13968
13963
  }
13969
13964
 
13970
- return undefined;
13965
+ return null;
13971
13966
  });
13967
+ //# sourceMappingURL=prop-types.js.map
13972
13968
 
13973
13969
  /***/ }),
13974
13970
 
@@ -13986,7 +13982,8 @@ __webpack_require__.r(__webpack_exports__);
13986
13982
  /* harmony export */ "getScaleFromName": () => (/* binding */ getScaleFromName),
13987
13983
  /* harmony export */ "getScaleFromProps": () => (/* binding */ getScaleFromProps),
13988
13984
  /* harmony export */ "getScaleType": () => (/* binding */ getScaleType),
13989
- /* harmony export */ "getType": () => (/* binding */ getType)
13985
+ /* harmony export */ "getType": () => (/* binding */ getType),
13986
+ /* harmony export */ "validScale": () => (/* binding */ validScale)
13990
13987
  /* harmony export */ });
13991
13988
  /* harmony import */ var lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/isPlainObject */ "../../../node_modules/lodash/isPlainObject.js");
13992
13989
  /* harmony import */ var lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_0__);
@@ -14004,8 +14001,9 @@ __webpack_require__.r(__webpack_exports__);
14004
14001
 
14005
14002
 
14006
14003
 
14007
- var supportedScaleStrings = ["linear", "time", "log", "sqrt"]; // Private Functions
14004
+ var supportedScaleStrings = ["linear", "time", "log", "sqrt"];
14008
14005
 
14006
+ // Private Functions
14009
14007
  function toNewName(scale) {
14010
14008
  // d3 scale changed the naming scheme for scale from "linear" -> "scaleLinear" etc.
14011
14009
  var capitalize = function (s) {
@@ -14075,7 +14073,13 @@ function getScaleTypeFromData(props, axis) {
14075
14073
 
14076
14074
 
14077
14075
  function getScaleFromName(name) {
14078
- return validScale(name) ? victory_vendor_d3_scale__WEBPACK_IMPORTED_MODULE_5__[toNewName(name)]() : victory_vendor_d3_scale__WEBPACK_IMPORTED_MODULE_6__["default"]();
14076
+ if (validScale(name)) {
14077
+ var methodName = toNewName(name); // @ts-expect-error scaleTime is not directly compatible with our D3Scale definition
14078
+
14079
+ return victory_vendor_d3_scale__WEBPACK_IMPORTED_MODULE_5__[methodName]();
14080
+ }
14081
+
14082
+ return victory_vendor_d3_scale__WEBPACK_IMPORTED_MODULE_6__["default"]();
14079
14083
  }
14080
14084
  function getBaseScale(props, axis) {
14081
14085
  var scale = getScaleFromProps(props, axis);
@@ -14085,7 +14089,7 @@ function getBaseScale(props, axis) {
14085
14089
  }
14086
14090
 
14087
14091
  var defaultScale = getScaleFromDomain(props, axis) || getScaleTypeFromData(props, axis);
14088
- return victory_vendor_d3_scale__WEBPACK_IMPORTED_MODULE_5__[toNewName(defaultScale)]();
14092
+ return getScaleFromName(defaultScale);
14089
14093
  }
14090
14094
  function getDefaultScale() {
14091
14095
  return victory_vendor_d3_scale__WEBPACK_IMPORTED_MODULE_6__["default"]();
@@ -14098,7 +14102,7 @@ function getScaleFromProps(props, axis) {
14098
14102
  var scale = props.scale[axis] || props.scale;
14099
14103
 
14100
14104
  if (validScale(scale)) {
14101
- return lodash_isFunction__WEBPACK_IMPORTED_MODULE_1___default()(scale) ? scale : victory_vendor_d3_scale__WEBPACK_IMPORTED_MODULE_5__[toNewName(scale)]();
14105
+ return lodash_isFunction__WEBPACK_IMPORTED_MODULE_1___default()(scale) ? scale : getScaleFromName(scale);
14102
14106
  }
14103
14107
 
14104
14108
  return undefined;
@@ -14133,6 +14137,7 @@ function getType(scale) {
14133
14137
  })[0];
14134
14138
  return scaleType ? scaleType.name : undefined;
14135
14139
  }
14140
+ //# sourceMappingURL=scale.js.map
14136
14141
 
14137
14142
  /***/ }),
14138
14143
 
@@ -14204,6 +14209,7 @@ function getColorScale(name) {
14204
14209
  };
14205
14210
  return name ? scales[name] : scales.grayscale;
14206
14211
  }
14212
+ //# sourceMappingURL=style.js.map
14207
14213
 
14208
14214
  /***/ }),
14209
14215
 
@@ -14408,8 +14414,10 @@ var _getSizeWithRotate = function (axisSize, dependentSize, angle) {
14408
14414
 
14409
14415
 
14410
14416
  var convertLengthToPixels = function (length, fontSize) {
14411
- var attribute = length.match(/[a-zA-Z%]+/) && length.match(/[a-zA-Z%]+/)[0];
14412
- var value = length.match(/[0-9.,]+/);
14417
+ var _length$match;
14418
+
14419
+ var attribute = (_length$match = length.match(/[a-zA-Z%]+/)) === null || _length$match === void 0 ? void 0 : _length$match[0];
14420
+ var value = Number(length.match(/[0-9.,]+/));
14413
14421
  var result;
14414
14422
 
14415
14423
  if (!attribute) {
@@ -14475,9 +14483,9 @@ var _approximateTextHeightInternal = function (text, style) {
14475
14483
  var height = containsCaps ? lineStyle.fontSize * coefficients.lineCapitalCoef : lineStyle.fontSize;
14476
14484
  return total + lineStyle.lineHeight * height;
14477
14485
  }, 0);
14478
- }; // Stubbable implementation.
14479
-
14486
+ };
14480
14487
 
14488
+ // Stubbable implementation.
14481
14489
  var _approximateTextSizeInternal = {
14482
14490
  impl: function (text, style) {
14483
14491
  var angle = Array.isArray(style) ? style[0] && style[0].angle : style && style.angle;
@@ -14496,7 +14504,7 @@ var _approximateTextSizeInternal = {
14496
14504
  };
14497
14505
  /**
14498
14506
  * Predict text size by font params.
14499
- * @param {string} text Content for width calculation.
14507
+ * @param {string|string[]} text Content for width calculation.
14500
14508
  * @param {Object} style Text styles, ,fontFamily, fontSize, etc.
14501
14509
  * @param {string} style.fontFamily Text fontFamily.
14502
14510
  * @param {(number|string)} style.fontSize Text fontSize.
@@ -14509,6 +14517,7 @@ var _approximateTextSizeInternal = {
14509
14517
  var approximateTextSize = function (text, style) {
14510
14518
  return _approximateTextSizeInternal.impl(text, style);
14511
14519
  };
14520
+ //# sourceMappingURL=textsize.js.map
14512
14521
 
14513
14522
  /***/ }),
14514
14523
 
@@ -14539,6 +14548,7 @@ var TimerContext = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().cre
14539
14548
  });
14540
14549
  TimerContext.displayName = "TimerContext";
14541
14550
  /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (TimerContext);
14551
+ //# sourceMappingURL=timer-context.js.map
14542
14552
 
14543
14553
  /***/ }),
14544
14554
 
@@ -14641,6 +14651,7 @@ var Timer = /*#__PURE__*/function () {
14641
14651
  }();
14642
14652
 
14643
14653
 
14654
+ //# sourceMappingURL=timer.js.map
14644
14655
 
14645
14656
  /***/ }),
14646
14657
 
@@ -14731,7 +14742,7 @@ function getChildData(child) {
14731
14742
  }
14732
14743
  /**
14733
14744
  * If a parent component has animation enabled, calculate the transitions
14734
- * for any data of any child component that supports data transitions
14745
+ * for any data of any child component that supports data transitions.
14735
14746
  * Data transitions are defined as any two datasets where data nodes exist
14736
14747
  * in the first set and not the second, in the second and not the first,
14737
14748
  * or both.
@@ -14860,7 +14871,7 @@ function getChildPropsOnExit(animate, child, data, exitingNodes, cb) {
14860
14871
 
14861
14872
  if (exitingNodes) {
14862
14873
  // After the exit transition occurs, trigger the animations for
14863
- // nodes that are neither exiting or entering.
14874
+ // nodes that are neither exiting nor entering.
14864
14875
  animate.onEnd = cb;
14865
14876
  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.
14866
14877
 
@@ -14930,7 +14941,7 @@ function getChildPropsOnEnter(animate, data, enteringNodes, cb) {
14930
14941
  * and its index in the parent's children array.
14931
14942
  *
14932
14943
  * In particular, this will include an `animate` object that is set appropriately
14933
- * so that each child will be synchoronized for each stage of a transition
14944
+ * so that each child will be synchronized for each stage of a transition
14934
14945
  * animation. It will also include a transformed `data` object, where each datum
14935
14946
  * is transformed by `animate.onExit` and `animate.onEnter` `before` and `after`
14936
14947
  * functions.
@@ -15075,6 +15086,7 @@ function getTransitionPropsFactory(props, state, setState) {
15075
15086
  };
15076
15087
  };
15077
15088
  }
15089
+ //# sourceMappingURL=transitions.js.map
15078
15090
 
15079
15091
  /***/ }),
15080
15092
 
@@ -15113,7 +15125,7 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
15113
15125
 
15114
15126
  /*
15115
15127
  USER_PROPS_SAFELIST is to contain any string deemed safe for user props.
15116
- The startsWidth array will contain the start of any accepted user-prop that
15128
+ The startsWidth array will contain the start of any accepted user-prop that
15117
15129
  starts with these characters.
15118
15130
  The exactMatch will contain a list of exact prop names that are accepted.
15119
15131
  */
@@ -15122,6 +15134,7 @@ var USER_PROPS_SAFELIST = {
15122
15134
  startsWith: ["data-", "aria-"],
15123
15135
  exactMatch: []
15124
15136
  };
15137
+
15125
15138
  /**
15126
15139
  * doesPropStartWith: Function that takes a prop's key and runs it against all
15127
15140
  * options in the USER_PROPS_SAFELIST and checks to see if it starts with any
@@ -15130,7 +15143,6 @@ var USER_PROPS_SAFELIST = {
15130
15143
  * @returns {Boolean}: returns true if the key starts with an option or false if
15131
15144
  * otherwise
15132
15145
  */
15133
-
15134
15146
  var doesPropStartWith = function (key) {
15135
15147
  var startsWith = false;
15136
15148
  USER_PROPS_SAFELIST.startsWith.forEach(function (starterString) {
@@ -15207,14 +15219,15 @@ var getSafeUserProps = function (props) {
15207
15219
  /**
15208
15220
  * Wraps a component and adds safe user props
15209
15221
  *
15210
- * @param {ReactNode} component: parent component
15222
+ * @param {ReactElement} component: parent component
15211
15223
  * @param {Object} props: props to be filtered
15212
- * @returns {ReactNode} modified component
15224
+ * @returns {ReactElement} modified component
15213
15225
  */
15214
15226
 
15215
15227
  var withSafeUserProps = function (component, props) {
15216
15228
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.cloneElement(component, getSafeUserProps(props));
15217
15229
  };
15230
+ //# sourceMappingURL=user-props.js.map
15218
15231
 
15219
15232
  /***/ }),
15220
15233