victory-box-plot 36.8.6 → 36.9.1-next.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.
@@ -1,18 +1,15 @@
1
1
  import React from "react";
2
- import PropTypes from "prop-types";
3
2
  import { flatten, isNil } from "lodash";
4
3
  import {
5
4
  Helpers,
6
5
  VictoryLabel,
7
6
  addEvents,
8
7
  LineSegment,
9
- PropTypes as CustomPropTypes,
10
8
  VictoryContainer,
11
9
  VictoryTheme,
12
10
  Box,
13
11
  Whisker,
14
12
  DefaultTransitions,
15
- CommonProps,
16
13
  UserProps,
17
14
  EventPropTypeInterface,
18
15
  DomainPropType,
@@ -142,146 +139,6 @@ class VictoryBoxPlotBase extends React.Component<VictoryBoxPlotProps> {
142
139
  static displayName = "VictoryBoxPlot";
143
140
  static role = "boxplot";
144
141
  static defaultTransitions = DefaultTransitions.discreteTransitions();
145
- static propTypes = {
146
- ...CommonProps.baseProps,
147
- ...CommonProps.dataProps,
148
- boxWidth: PropTypes.number,
149
- events: PropTypes.arrayOf(
150
- PropTypes.shape({
151
- target: PropTypes.oneOf([
152
- "max",
153
- "maxLabels",
154
- "median",
155
- "medianLabels",
156
- "min",
157
- "minLabels",
158
- "q1",
159
- "q1Labels",
160
- "q3",
161
- "q3Labels",
162
- "parent",
163
- ]),
164
- eventKey: PropTypes.oneOfType([
165
- PropTypes.array,
166
- CustomPropTypes.allOfType([
167
- CustomPropTypes.integer,
168
- CustomPropTypes.nonNegative,
169
- ]),
170
- PropTypes.string,
171
- ]),
172
- eventHandlers: PropTypes.object,
173
- }),
174
- ),
175
- horizontal: PropTypes.bool,
176
- labelOrientation: PropTypes.oneOfType([
177
- PropTypes.oneOf(["top", "bottom", "left", "right"]),
178
- PropTypes.shape({
179
- q1: PropTypes.oneOf(["top", "bottom", "left", "right"]),
180
- q3: PropTypes.oneOf(["top", "bottom", "left", "right"]),
181
- min: PropTypes.oneOf(["top", "bottom", "left", "right"]),
182
- max: PropTypes.oneOf(["top", "bottom", "left", "right"]),
183
- median: PropTypes.oneOf(["top", "bottom", "left", "right"]),
184
- }),
185
- ]),
186
- labels: PropTypes.bool,
187
- max: PropTypes.oneOfType([
188
- PropTypes.func,
189
- CustomPropTypes.allOfType([
190
- CustomPropTypes.integer,
191
- CustomPropTypes.nonNegative,
192
- ]),
193
- PropTypes.string,
194
- PropTypes.arrayOf(PropTypes.string),
195
- ]),
196
- maxComponent: PropTypes.element,
197
- maxLabelComponent: PropTypes.element,
198
- maxLabels: PropTypes.oneOfType([
199
- PropTypes.func,
200
- PropTypes.array,
201
- PropTypes.bool,
202
- ]),
203
- median: PropTypes.oneOfType([
204
- PropTypes.func,
205
- CustomPropTypes.allOfType([
206
- CustomPropTypes.integer,
207
- CustomPropTypes.nonNegative,
208
- ]),
209
- PropTypes.string,
210
- PropTypes.arrayOf(PropTypes.string),
211
- ]),
212
- medianComponent: PropTypes.element,
213
- medianLabelComponent: PropTypes.element,
214
- medianLabels: PropTypes.oneOfType([
215
- PropTypes.func,
216
- PropTypes.array,
217
- PropTypes.bool,
218
- ]),
219
- min: PropTypes.oneOfType([
220
- PropTypes.func,
221
- CustomPropTypes.allOfType([
222
- CustomPropTypes.integer,
223
- CustomPropTypes.nonNegative,
224
- ]),
225
- PropTypes.string,
226
- PropTypes.arrayOf(PropTypes.string),
227
- ]),
228
- minComponent: PropTypes.element,
229
- minLabelComponent: PropTypes.element,
230
- minLabels: PropTypes.oneOfType([
231
- PropTypes.func,
232
- PropTypes.array,
233
- PropTypes.bool,
234
- ]),
235
- q1: PropTypes.oneOfType([
236
- PropTypes.func,
237
- CustomPropTypes.allOfType([
238
- CustomPropTypes.integer,
239
- CustomPropTypes.nonNegative,
240
- ]),
241
- PropTypes.string,
242
- PropTypes.arrayOf(PropTypes.string),
243
- ]),
244
- q1Component: PropTypes.element,
245
- q1LabelComponent: PropTypes.element,
246
- q1Labels: PropTypes.oneOfType([
247
- PropTypes.func,
248
- PropTypes.array,
249
- PropTypes.bool,
250
- ]),
251
- q3: PropTypes.oneOfType([
252
- PropTypes.func,
253
- CustomPropTypes.allOfType([
254
- CustomPropTypes.integer,
255
- CustomPropTypes.nonNegative,
256
- ]),
257
- PropTypes.string,
258
- PropTypes.arrayOf(PropTypes.string),
259
- ]),
260
- q3Component: PropTypes.element,
261
- q3LabelComponent: PropTypes.element,
262
- q3Labels: PropTypes.oneOfType([
263
- PropTypes.func,
264
- PropTypes.array,
265
- PropTypes.bool,
266
- ]),
267
- style: PropTypes.shape({
268
- boxes: PropTypes.object,
269
- labels: PropTypes.object,
270
- parent: PropTypes.object,
271
- max: PropTypes.object,
272
- maxLabels: PropTypes.object,
273
- median: PropTypes.object,
274
- medianLabels: PropTypes.object,
275
- min: PropTypes.object,
276
- minLabels: PropTypes.object,
277
- q1: PropTypes.object,
278
- q1Labels: PropTypes.object,
279
- q3: PropTypes.object,
280
- q3Labels: PropTypes.object,
281
- whiskers: PropTypes.object,
282
- }),
283
- whiskerWidth: PropTypes.number,
284
- };
285
142
 
286
143
  static defaultProps: VictoryBoxPlotProps = {
287
144
  containerComponent: <VictoryContainer />,