victory-box-plot 36.5.3 → 36.6.0

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.
@@ -0,0 +1,4 @@
1
+ export declare const getData: (props: any) => any;
2
+ export declare const getDomain: (props: any, axis: any) => any;
3
+ export declare const getBaseProps: (props: any, fallbackProps: any) => any;
4
+ //# sourceMappingURL=helper-methods.d.ts.map
package/es/index.d.ts CHANGED
@@ -1,77 +1,2 @@
1
- import * as React from "react";
2
- import {
3
- EventPropTypeInterface,
4
- DomainPropType,
5
- DomainPaddingPropType,
6
- OrientationTypes,
7
- StringOrNumberOrCallback,
8
- VictoryDatableProps,
9
- VictoryCommonProps,
10
- VictoryStyleObject,
11
- VictoryLabelStyleObject,
12
- } from "victory-core";
13
-
14
- export type VictoryBoxPlotLabelType =
15
- | boolean
16
- | (string | number)[]
17
- | Function
18
- | { (data: any): string | null };
19
-
20
- export interface VictoryBoxPlotStyleInterface {
21
- parent?: VictoryStyleObject;
22
- max?: VictoryStyleObject;
23
- maxLabels?: VictoryLabelStyleObject | VictoryLabelStyleObject[];
24
- min?: VictoryStyleObject;
25
- minLabels?: VictoryLabelStyleObject | VictoryLabelStyleObject[];
26
- median?: VictoryStyleObject;
27
- medianLabels?: VictoryLabelStyleObject | VictoryLabelStyleObject[];
28
- q1?: VictoryStyleObject;
29
- q1Labels?: VictoryLabelStyleObject | VictoryLabelStyleObject[];
30
- q3?: VictoryStyleObject;
31
- q3Labels?: VictoryLabelStyleObject | VictoryLabelStyleObject[];
32
- }
33
-
34
- export interface VictoryBoxPlotLabelOrientationInterface {
35
- max?: OrientationTypes;
36
- min?: OrientationTypes;
37
- median?: OrientationTypes;
38
- q1?: OrientationTypes;
39
- q3?: OrientationTypes;
40
- }
41
-
42
- export interface VictoryBoxPlotProps
43
- extends VictoryCommonProps,
44
- VictoryDatableProps {
45
- boxWidth?: number;
46
- domain?: DomainPropType;
47
- domainPadding?: DomainPaddingPropType;
48
- events?: EventPropTypeInterface<string, StringOrNumberOrCallback>[];
49
- eventKey?: StringOrNumberOrCallback;
50
- horizontal?: boolean;
51
- labelOrientation?: OrientationTypes | VictoryBoxPlotLabelOrientationInterface;
52
- labels?: boolean;
53
- max?: StringOrNumberOrCallback | string[];
54
- maxComponent?: React.ReactElement;
55
- maxLabelComponent?: React.ReactElement;
56
- maxLabels?: VictoryBoxPlotLabelType;
57
- median?: StringOrNumberOrCallback | string[];
58
- medianComponent?: React.ReactElement;
59
- medianLabelComponent?: React.ReactElement;
60
- medianLabels?: VictoryBoxPlotLabelType;
61
- min?: StringOrNumberOrCallback | string[];
62
- minComponent?: React.ReactElement;
63
- minLabelComponent?: React.ReactElement;
64
- minLabels?: VictoryBoxPlotLabelType;
65
- q1?: StringOrNumberOrCallback | string[];
66
- q1Component?: React.ReactElement;
67
- q1LabelComponent?: React.ReactElement;
68
- q1Labels?: VictoryBoxPlotLabelType;
69
- q3?: StringOrNumberOrCallback | string[];
70
- q3Component?: React.ReactElement;
71
- q3LabelComponent?: React.ReactElement;
72
- q3Labels?: VictoryBoxPlotLabelType;
73
- style?: VictoryBoxPlotStyleInterface;
74
- whiskerWidth?: number;
75
- }
76
-
77
- export class VictoryBoxPlot extends React.Component<VictoryBoxPlotProps, any> {}
1
+ export * from "./victory-box-plot";
2
+ //# sourceMappingURL=index.d.ts.map
package/es/index.js CHANGED
@@ -1,2 +1,2 @@
1
- export { default as VictoryBoxPlot } from "./victory-box-plot";
1
+ export * from "./victory-box-plot";
2
2
  //# sourceMappingURL=index.js.map
@@ -0,0 +1,63 @@
1
+ import React from "react";
2
+ import { EventPropTypeInterface, DomainPropType, DomainPaddingPropType, OrientationTypes, StringOrNumberOrCallback, VictoryDatableProps, VictoryCommonProps, VictoryStyleObject, VictoryLabelStyleObject } from "victory-core";
3
+ export declare type VictoryBoxPlotLabelType = boolean | (string | number)[] | {
4
+ (): any;
5
+ } | {
6
+ (data: any): string | null;
7
+ };
8
+ export interface VictoryBoxPlotStyleInterface {
9
+ parent?: VictoryStyleObject;
10
+ max?: VictoryStyleObject;
11
+ maxLabels?: VictoryLabelStyleObject | VictoryLabelStyleObject[];
12
+ min?: VictoryStyleObject;
13
+ minLabels?: VictoryLabelStyleObject | VictoryLabelStyleObject[];
14
+ median?: VictoryStyleObject;
15
+ medianLabels?: VictoryLabelStyleObject | VictoryLabelStyleObject[];
16
+ q1?: VictoryStyleObject;
17
+ q1Labels?: VictoryLabelStyleObject | VictoryLabelStyleObject[];
18
+ q3?: VictoryStyleObject;
19
+ q3Labels?: VictoryLabelStyleObject | VictoryLabelStyleObject[];
20
+ }
21
+ export interface VictoryBoxPlotLabelOrientationInterface {
22
+ max?: OrientationTypes;
23
+ min?: OrientationTypes;
24
+ median?: OrientationTypes;
25
+ q1?: OrientationTypes;
26
+ q3?: OrientationTypes;
27
+ }
28
+ export interface VictoryBoxPlotProps extends VictoryCommonProps, VictoryDatableProps {
29
+ boxWidth?: number;
30
+ datum?: any;
31
+ domain?: DomainPropType;
32
+ domainPadding?: DomainPaddingPropType;
33
+ events?: EventPropTypeInterface<string, StringOrNumberOrCallback>[];
34
+ eventKey?: StringOrNumberOrCallback;
35
+ horizontal?: boolean;
36
+ labelOrientation?: OrientationTypes | VictoryBoxPlotLabelOrientationInterface;
37
+ labels?: boolean;
38
+ max?: StringOrNumberOrCallback | string[];
39
+ maxComponent?: React.ReactElement;
40
+ maxLabelComponent?: React.ReactElement;
41
+ maxLabels?: VictoryBoxPlotLabelType;
42
+ median?: StringOrNumberOrCallback | string[];
43
+ medianComponent?: React.ReactElement;
44
+ medianLabelComponent?: React.ReactElement;
45
+ medianLabels?: VictoryBoxPlotLabelType;
46
+ min?: StringOrNumberOrCallback | string[];
47
+ minComponent?: React.ReactElement;
48
+ minLabelComponent?: React.ReactElement;
49
+ minLabels?: VictoryBoxPlotLabelType;
50
+ q1?: StringOrNumberOrCallback | string[];
51
+ q1Component?: React.ReactElement;
52
+ q1LabelComponent?: React.ReactElement;
53
+ q1Labels?: VictoryBoxPlotLabelType;
54
+ q3?: StringOrNumberOrCallback | string[];
55
+ q3Component?: React.ReactElement;
56
+ q3LabelComponent?: React.ReactElement;
57
+ q3Labels?: VictoryBoxPlotLabelType;
58
+ style?: VictoryBoxPlotStyleInterface;
59
+ text?: StringOrNumberOrCallback | string[];
60
+ whiskerWidth?: number;
61
+ }
62
+ export declare const VictoryBoxPlot: any;
63
+ //# sourceMappingURL=victory-box-plot.d.ts.map
@@ -95,18 +95,18 @@ var options = {
95
95
  }]
96
96
  };
97
97
 
98
- var VictoryBoxPlot = /*#__PURE__*/function (_React$Component) {
99
- _inherits(VictoryBoxPlot, _React$Component);
98
+ var VictoryBoxPlotBase = /*#__PURE__*/function (_React$Component) {
99
+ _inherits(VictoryBoxPlotBase, _React$Component);
100
100
 
101
- var _super = _createSuper(VictoryBoxPlot);
101
+ var _super = _createSuper(VictoryBoxPlotBase);
102
102
 
103
- function VictoryBoxPlot() {
104
- _classCallCheck(this, VictoryBoxPlot);
103
+ function VictoryBoxPlotBase() {
104
+ _classCallCheck(this, VictoryBoxPlotBase);
105
105
 
106
106
  return _super.apply(this, arguments);
107
107
  }
108
108
 
109
- _createClass(VictoryBoxPlot, [{
109
+ _createClass(VictoryBoxPlotBase, [{
110
110
  key: "renderBoxPlot",
111
111
  value: function renderBoxPlot(props) {
112
112
  var _this = this;
@@ -128,18 +128,18 @@ var VictoryBoxPlot = /*#__PURE__*/function (_React$Component) {
128
128
  }));
129
129
 
130
130
  var labelComponents = _flatten(types.map(function (type) {
131
- var components = _this.dataKeys.map(function (key, index) {
131
+ var components = _this.dataKeys.reduce(function (validComponents, _key, index) {
132
132
  var name = "".concat(type, "Labels");
133
133
  var baseComponent = props["".concat(type, "LabelComponent")];
134
134
 
135
135
  var labelProps = _this.getComponentProps(baseComponent, name, index);
136
136
 
137
137
  if (labelProps.text !== undefined && labelProps.text !== null) {
138
- return /*#__PURE__*/React.cloneElement(baseComponent, labelProps);
138
+ validComponents.push( /*#__PURE__*/React.cloneElement(baseComponent, labelProps));
139
139
  }
140
140
 
141
- return undefined;
142
- });
141
+ return validComponents;
142
+ }, []);
143
143
 
144
144
  return components.filter(Boolean);
145
145
  }));
@@ -178,14 +178,14 @@ var VictoryBoxPlot = /*#__PURE__*/function (_React$Component) {
178
178
  }
179
179
  }]);
180
180
 
181
- return VictoryBoxPlot;
181
+ return VictoryBoxPlotBase;
182
182
  }(React.Component);
183
183
 
184
- VictoryBoxPlot.animationWhitelist = ["data", "domain", "height", "padding", "style", "width"];
185
- VictoryBoxPlot.displayName = "VictoryBoxPlot";
186
- VictoryBoxPlot.role = "boxplot";
187
- VictoryBoxPlot.defaultTransitions = DefaultTransitions.discreteTransitions();
188
- VictoryBoxPlot.propTypes = _objectSpread(_objectSpread(_objectSpread({}, CommonProps.baseProps), CommonProps.dataProps), {}, {
184
+ VictoryBoxPlotBase.animationWhitelist = ["data", "domain", "height", "padding", "style", "width"];
185
+ VictoryBoxPlotBase.displayName = "VictoryBoxPlot";
186
+ VictoryBoxPlotBase.role = "boxplot";
187
+ VictoryBoxPlotBase.defaultTransitions = DefaultTransitions.discreteTransitions();
188
+ VictoryBoxPlotBase.propTypes = _objectSpread(_objectSpread(_objectSpread({}, CommonProps.baseProps), CommonProps.dataProps), {}, {
189
189
  boxWidth: PropTypes.number,
190
190
  events: PropTypes.arrayOf(PropTypes.shape({
191
191
  target: PropTypes.oneOf(["max", "maxLabels", "median", "medianLabels", "min", "minLabels", "q1", "q1Labels", "q3", "q3Labels", "parent"]),
@@ -239,7 +239,7 @@ VictoryBoxPlot.propTypes = _objectSpread(_objectSpread(_objectSpread({}, CommonP
239
239
  }),
240
240
  whiskerWidth: PropTypes.number
241
241
  });
242
- VictoryBoxPlot.defaultProps = {
242
+ VictoryBoxPlotBase.defaultProps = {
243
243
  containerComponent: /*#__PURE__*/React.createElement(VictoryContainer, null),
244
244
  data: defaultData,
245
245
  dataComponent: /*#__PURE__*/React.createElement(Box, null),
@@ -262,13 +262,13 @@ VictoryBoxPlot.defaultProps = {
262
262
  standalone: true,
263
263
  theme: VictoryTheme.grayscale
264
264
  };
265
- VictoryBoxPlot.getDomain = getDomain;
266
- VictoryBoxPlot.getData = getData;
265
+ VictoryBoxPlotBase.getDomain = getDomain;
266
+ VictoryBoxPlotBase.getData = getData;
267
267
 
268
- VictoryBoxPlot.getBaseProps = function (props) {
268
+ VictoryBoxPlotBase.getBaseProps = function (props) {
269
269
  return getBaseProps(props, fallbackProps);
270
270
  };
271
271
 
272
- VictoryBoxPlot.expectedComponents = ["maxComponent", "maxLabelComponent", "medianComponent", "medianLabelComponent", "minComponent", "minLabelComponent", "q1Component", "q1LabelComponent", "q3Component", "q3LabelComponent", "groupComponent", "containerComponent"];
273
- export default addEvents(VictoryBoxPlot, options);
272
+ VictoryBoxPlotBase.expectedComponents = ["maxComponent", "maxLabelComponent", "medianComponent", "medianLabelComponent", "minComponent", "minLabelComponent", "q1Component", "q1LabelComponent", "q3Component", "q3LabelComponent", "groupComponent", "containerComponent"];
273
+ export var VictoryBoxPlot = addEvents(VictoryBoxPlotBase, options);
274
274
  //# sourceMappingURL=victory-box-plot.js.map
@@ -0,0 +1,4 @@
1
+ export declare const getData: (props: any) => any;
2
+ export declare const getDomain: (props: any, axis: any) => any;
3
+ export declare const getBaseProps: (props: any, fallbackProps: any) => any;
4
+ //# sourceMappingURL=helper-methods.d.ts.map
package/lib/index.d.ts CHANGED
@@ -1,77 +1,2 @@
1
- import * as React from "react";
2
- import {
3
- EventPropTypeInterface,
4
- DomainPropType,
5
- DomainPaddingPropType,
6
- OrientationTypes,
7
- StringOrNumberOrCallback,
8
- VictoryDatableProps,
9
- VictoryCommonProps,
10
- VictoryStyleObject,
11
- VictoryLabelStyleObject,
12
- } from "victory-core";
13
-
14
- export type VictoryBoxPlotLabelType =
15
- | boolean
16
- | (string | number)[]
17
- | Function
18
- | { (data: any): string | null };
19
-
20
- export interface VictoryBoxPlotStyleInterface {
21
- parent?: VictoryStyleObject;
22
- max?: VictoryStyleObject;
23
- maxLabels?: VictoryLabelStyleObject | VictoryLabelStyleObject[];
24
- min?: VictoryStyleObject;
25
- minLabels?: VictoryLabelStyleObject | VictoryLabelStyleObject[];
26
- median?: VictoryStyleObject;
27
- medianLabels?: VictoryLabelStyleObject | VictoryLabelStyleObject[];
28
- q1?: VictoryStyleObject;
29
- q1Labels?: VictoryLabelStyleObject | VictoryLabelStyleObject[];
30
- q3?: VictoryStyleObject;
31
- q3Labels?: VictoryLabelStyleObject | VictoryLabelStyleObject[];
32
- }
33
-
34
- export interface VictoryBoxPlotLabelOrientationInterface {
35
- max?: OrientationTypes;
36
- min?: OrientationTypes;
37
- median?: OrientationTypes;
38
- q1?: OrientationTypes;
39
- q3?: OrientationTypes;
40
- }
41
-
42
- export interface VictoryBoxPlotProps
43
- extends VictoryCommonProps,
44
- VictoryDatableProps {
45
- boxWidth?: number;
46
- domain?: DomainPropType;
47
- domainPadding?: DomainPaddingPropType;
48
- events?: EventPropTypeInterface<string, StringOrNumberOrCallback>[];
49
- eventKey?: StringOrNumberOrCallback;
50
- horizontal?: boolean;
51
- labelOrientation?: OrientationTypes | VictoryBoxPlotLabelOrientationInterface;
52
- labels?: boolean;
53
- max?: StringOrNumberOrCallback | string[];
54
- maxComponent?: React.ReactElement;
55
- maxLabelComponent?: React.ReactElement;
56
- maxLabels?: VictoryBoxPlotLabelType;
57
- median?: StringOrNumberOrCallback | string[];
58
- medianComponent?: React.ReactElement;
59
- medianLabelComponent?: React.ReactElement;
60
- medianLabels?: VictoryBoxPlotLabelType;
61
- min?: StringOrNumberOrCallback | string[];
62
- minComponent?: React.ReactElement;
63
- minLabelComponent?: React.ReactElement;
64
- minLabels?: VictoryBoxPlotLabelType;
65
- q1?: StringOrNumberOrCallback | string[];
66
- q1Component?: React.ReactElement;
67
- q1LabelComponent?: React.ReactElement;
68
- q1Labels?: VictoryBoxPlotLabelType;
69
- q3?: StringOrNumberOrCallback | string[];
70
- q3Component?: React.ReactElement;
71
- q3LabelComponent?: React.ReactElement;
72
- q3Labels?: VictoryBoxPlotLabelType;
73
- style?: VictoryBoxPlotStyleInterface;
74
- whiskerWidth?: number;
75
- }
76
-
77
- export class VictoryBoxPlot extends React.Component<VictoryBoxPlotProps, any> {}
1
+ export * from "./victory-box-plot";
2
+ //# sourceMappingURL=index.d.ts.map
package/lib/index.js CHANGED
@@ -3,14 +3,17 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- Object.defineProperty(exports, "VictoryBoxPlot", {
7
- enumerable: true,
8
- get: function () {
9
- return _victoryBoxPlot.default;
10
- }
11
- });
12
6
 
13
- var _victoryBoxPlot = _interopRequireDefault(require("./victory-box-plot"));
7
+ var _victoryBoxPlot = require("./victory-box-plot");
14
8
 
15
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
9
+ Object.keys(_victoryBoxPlot).forEach(function (key) {
10
+ if (key === "default" || key === "__esModule") return;
11
+ if (key in exports && exports[key] === _victoryBoxPlot[key]) return;
12
+ Object.defineProperty(exports, key, {
13
+ enumerable: true,
14
+ get: function () {
15
+ return _victoryBoxPlot[key];
16
+ }
17
+ });
18
+ });
16
19
  //# sourceMappingURL=index.js.map
@@ -0,0 +1,63 @@
1
+ import React from "react";
2
+ import { EventPropTypeInterface, DomainPropType, DomainPaddingPropType, OrientationTypes, StringOrNumberOrCallback, VictoryDatableProps, VictoryCommonProps, VictoryStyleObject, VictoryLabelStyleObject } from "victory-core";
3
+ export declare type VictoryBoxPlotLabelType = boolean | (string | number)[] | {
4
+ (): any;
5
+ } | {
6
+ (data: any): string | null;
7
+ };
8
+ export interface VictoryBoxPlotStyleInterface {
9
+ parent?: VictoryStyleObject;
10
+ max?: VictoryStyleObject;
11
+ maxLabels?: VictoryLabelStyleObject | VictoryLabelStyleObject[];
12
+ min?: VictoryStyleObject;
13
+ minLabels?: VictoryLabelStyleObject | VictoryLabelStyleObject[];
14
+ median?: VictoryStyleObject;
15
+ medianLabels?: VictoryLabelStyleObject | VictoryLabelStyleObject[];
16
+ q1?: VictoryStyleObject;
17
+ q1Labels?: VictoryLabelStyleObject | VictoryLabelStyleObject[];
18
+ q3?: VictoryStyleObject;
19
+ q3Labels?: VictoryLabelStyleObject | VictoryLabelStyleObject[];
20
+ }
21
+ export interface VictoryBoxPlotLabelOrientationInterface {
22
+ max?: OrientationTypes;
23
+ min?: OrientationTypes;
24
+ median?: OrientationTypes;
25
+ q1?: OrientationTypes;
26
+ q3?: OrientationTypes;
27
+ }
28
+ export interface VictoryBoxPlotProps extends VictoryCommonProps, VictoryDatableProps {
29
+ boxWidth?: number;
30
+ datum?: any;
31
+ domain?: DomainPropType;
32
+ domainPadding?: DomainPaddingPropType;
33
+ events?: EventPropTypeInterface<string, StringOrNumberOrCallback>[];
34
+ eventKey?: StringOrNumberOrCallback;
35
+ horizontal?: boolean;
36
+ labelOrientation?: OrientationTypes | VictoryBoxPlotLabelOrientationInterface;
37
+ labels?: boolean;
38
+ max?: StringOrNumberOrCallback | string[];
39
+ maxComponent?: React.ReactElement;
40
+ maxLabelComponent?: React.ReactElement;
41
+ maxLabels?: VictoryBoxPlotLabelType;
42
+ median?: StringOrNumberOrCallback | string[];
43
+ medianComponent?: React.ReactElement;
44
+ medianLabelComponent?: React.ReactElement;
45
+ medianLabels?: VictoryBoxPlotLabelType;
46
+ min?: StringOrNumberOrCallback | string[];
47
+ minComponent?: React.ReactElement;
48
+ minLabelComponent?: React.ReactElement;
49
+ minLabels?: VictoryBoxPlotLabelType;
50
+ q1?: StringOrNumberOrCallback | string[];
51
+ q1Component?: React.ReactElement;
52
+ q1LabelComponent?: React.ReactElement;
53
+ q1Labels?: VictoryBoxPlotLabelType;
54
+ q3?: StringOrNumberOrCallback | string[];
55
+ q3Component?: React.ReactElement;
56
+ q3LabelComponent?: React.ReactElement;
57
+ q3Labels?: VictoryBoxPlotLabelType;
58
+ style?: VictoryBoxPlotStyleInterface;
59
+ text?: StringOrNumberOrCallback | string[];
60
+ whiskerWidth?: number;
61
+ }
62
+ export declare const VictoryBoxPlot: any;
63
+ //# sourceMappingURL=victory-box-plot.d.ts.map
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.default = void 0;
6
+ exports.VictoryBoxPlot = void 0;
7
7
 
8
8
  var _isNil2 = _interopRequireDefault(require("lodash/isNil"));
9
9
 
@@ -109,18 +109,18 @@ var options = {
109
109
  }]
110
110
  };
111
111
 
112
- var VictoryBoxPlot = /*#__PURE__*/function (_React$Component) {
113
- _inherits(VictoryBoxPlot, _React$Component);
112
+ var VictoryBoxPlotBase = /*#__PURE__*/function (_React$Component) {
113
+ _inherits(VictoryBoxPlotBase, _React$Component);
114
114
 
115
- var _super = _createSuper(VictoryBoxPlot);
115
+ var _super = _createSuper(VictoryBoxPlotBase);
116
116
 
117
- function VictoryBoxPlot() {
118
- _classCallCheck(this, VictoryBoxPlot);
117
+ function VictoryBoxPlotBase() {
118
+ _classCallCheck(this, VictoryBoxPlotBase);
119
119
 
120
120
  return _super.apply(this, arguments);
121
121
  }
122
122
 
123
- _createClass(VictoryBoxPlot, [{
123
+ _createClass(VictoryBoxPlotBase, [{
124
124
  key: "renderBoxPlot",
125
125
  value: function renderBoxPlot(props) {
126
126
  var _this = this;
@@ -140,18 +140,18 @@ var VictoryBoxPlot = /*#__PURE__*/function (_React$Component) {
140
140
  }, []);
141
141
  }));
142
142
  var labelComponents = (0, _flatten2.default)(types.map(function (type) {
143
- var components = _this.dataKeys.map(function (key, index) {
143
+ var components = _this.dataKeys.reduce(function (validComponents, _key, index) {
144
144
  var name = "".concat(type, "Labels");
145
145
  var baseComponent = props["".concat(type, "LabelComponent")];
146
146
 
147
147
  var labelProps = _this.getComponentProps(baseComponent, name, index);
148
148
 
149
149
  if (labelProps.text !== undefined && labelProps.text !== null) {
150
- return /*#__PURE__*/_react.default.cloneElement(baseComponent, labelProps);
150
+ validComponents.push( /*#__PURE__*/_react.default.cloneElement(baseComponent, labelProps));
151
151
  }
152
152
 
153
- return undefined;
154
- });
153
+ return validComponents;
154
+ }, []);
155
155
 
156
156
  return components.filter(Boolean);
157
157
  }));
@@ -190,14 +190,14 @@ var VictoryBoxPlot = /*#__PURE__*/function (_React$Component) {
190
190
  }
191
191
  }]);
192
192
 
193
- return VictoryBoxPlot;
193
+ return VictoryBoxPlotBase;
194
194
  }(_react.default.Component);
195
195
 
196
- VictoryBoxPlot.animationWhitelist = ["data", "domain", "height", "padding", "style", "width"];
197
- VictoryBoxPlot.displayName = "VictoryBoxPlot";
198
- VictoryBoxPlot.role = "boxplot";
199
- VictoryBoxPlot.defaultTransitions = _victoryCore.DefaultTransitions.discreteTransitions();
200
- VictoryBoxPlot.propTypes = _objectSpread(_objectSpread(_objectSpread({}, _victoryCore.CommonProps.baseProps), _victoryCore.CommonProps.dataProps), {}, {
196
+ VictoryBoxPlotBase.animationWhitelist = ["data", "domain", "height", "padding", "style", "width"];
197
+ VictoryBoxPlotBase.displayName = "VictoryBoxPlot";
198
+ VictoryBoxPlotBase.role = "boxplot";
199
+ VictoryBoxPlotBase.defaultTransitions = _victoryCore.DefaultTransitions.discreteTransitions();
200
+ VictoryBoxPlotBase.propTypes = _objectSpread(_objectSpread(_objectSpread({}, _victoryCore.CommonProps.baseProps), _victoryCore.CommonProps.dataProps), {}, {
201
201
  boxWidth: _propTypes.default.number,
202
202
  events: _propTypes.default.arrayOf(_propTypes.default.shape({
203
203
  target: _propTypes.default.oneOf(["max", "maxLabels", "median", "medianLabels", "min", "minLabels", "q1", "q1Labels", "q3", "q3Labels", "parent"]),
@@ -251,7 +251,7 @@ VictoryBoxPlot.propTypes = _objectSpread(_objectSpread(_objectSpread({}, _victor
251
251
  }),
252
252
  whiskerWidth: _propTypes.default.number
253
253
  });
254
- VictoryBoxPlot.defaultProps = {
254
+ VictoryBoxPlotBase.defaultProps = {
255
255
  containerComponent: /*#__PURE__*/_react.default.createElement(_victoryCore.VictoryContainer, null),
256
256
  data: defaultData,
257
257
  dataComponent: /*#__PURE__*/_react.default.createElement(_victoryCore.Box, null),
@@ -274,16 +274,14 @@ VictoryBoxPlot.defaultProps = {
274
274
  standalone: true,
275
275
  theme: _victoryCore.VictoryTheme.grayscale
276
276
  };
277
- VictoryBoxPlot.getDomain = _helperMethods.getDomain;
278
- VictoryBoxPlot.getData = _helperMethods.getData;
277
+ VictoryBoxPlotBase.getDomain = _helperMethods.getDomain;
278
+ VictoryBoxPlotBase.getData = _helperMethods.getData;
279
279
 
280
- VictoryBoxPlot.getBaseProps = function (props) {
280
+ VictoryBoxPlotBase.getBaseProps = function (props) {
281
281
  return (0, _helperMethods.getBaseProps)(props, fallbackProps);
282
282
  };
283
283
 
284
- VictoryBoxPlot.expectedComponents = ["maxComponent", "maxLabelComponent", "medianComponent", "medianLabelComponent", "minComponent", "minLabelComponent", "q1Component", "q1LabelComponent", "q3Component", "q3LabelComponent", "groupComponent", "containerComponent"];
285
-
286
- var _default = (0, _victoryCore.addEvents)(VictoryBoxPlot, options);
287
-
288
- exports.default = _default;
284
+ VictoryBoxPlotBase.expectedComponents = ["maxComponent", "maxLabelComponent", "medianComponent", "medianLabelComponent", "minComponent", "minLabelComponent", "q1Component", "q1LabelComponent", "q3Component", "q3LabelComponent", "groupComponent", "containerComponent"];
285
+ var VictoryBoxPlot = (0, _victoryCore.addEvents)(VictoryBoxPlotBase, options);
286
+ exports.VictoryBoxPlot = VictoryBoxPlot;
289
287
  //# sourceMappingURL=victory-box-plot.js.map