victory-core 36.8.6 → 36.9.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.
Files changed (87) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/dist/victory-core.js +74 -2349
  3. package/dist/victory-core.min.js +1 -1
  4. package/es/victory-accessible-group/victory-accessible-group.d.ts +0 -9
  5. package/es/victory-accessible-group/victory-accessible-group.js +0 -9
  6. package/es/victory-animation/victory-animation.d.ts +0 -9
  7. package/es/victory-animation/victory-animation.js +0 -9
  8. package/es/victory-clip-container/victory-clip-container.d.ts +0 -30
  9. package/es/victory-clip-container/victory-clip-container.js +0 -31
  10. package/es/victory-container/victory-container.d.ts +0 -31
  11. package/es/victory-container/victory-container.js +0 -32
  12. package/es/victory-label/victory-label.js +1 -52
  13. package/es/victory-portal/portal.d.ts +0 -8
  14. package/es/victory-portal/portal.js +1 -10
  15. package/es/victory-portal/victory-portal.d.ts +0 -5
  16. package/es/victory-portal/victory-portal.js +0 -5
  17. package/es/victory-primitives/arc.d.ts +1 -32
  18. package/es/victory-primitives/arc.js +1 -13
  19. package/es/victory-primitives/background.d.ts +1 -32
  20. package/es/victory-primitives/background.js +1 -13
  21. package/es/victory-primitives/border.d.ts +1 -29
  22. package/es/victory-primitives/border.js +1 -10
  23. package/es/victory-primitives/line-segment.d.ts +1 -30
  24. package/es/victory-primitives/line-segment.js +1 -11
  25. package/es/victory-primitives/point.d.ts +1 -31
  26. package/es/victory-primitives/point.js +1 -12
  27. package/es/victory-primitives/whisker.d.ts +1 -38
  28. package/es/victory-primitives/whisker.js +1 -19
  29. package/es/victory-transition/victory-transition.d.ts +0 -6
  30. package/es/victory-transition/victory-transition.js +0 -6
  31. package/es/victory-util/common-props.d.ts +0 -5
  32. package/es/victory-util/common-props.js +1 -132
  33. package/es/victory-util/index.d.ts +0 -1
  34. package/es/victory-util/index.js +0 -2
  35. package/lib/victory-accessible-group/victory-accessible-group.d.ts +0 -9
  36. package/lib/victory-accessible-group/victory-accessible-group.js +0 -10
  37. package/lib/victory-animation/victory-animation.d.ts +0 -9
  38. package/lib/victory-animation/victory-animation.js +0 -10
  39. package/lib/victory-clip-container/victory-clip-container.d.ts +0 -30
  40. package/lib/victory-clip-container/victory-clip-container.js +0 -33
  41. package/lib/victory-container/victory-container.d.ts +0 -31
  42. package/lib/victory-container/victory-container.js +0 -34
  43. package/lib/victory-label/victory-label.js +1 -54
  44. package/lib/victory-portal/portal.d.ts +0 -8
  45. package/lib/victory-portal/portal.js +1 -16
  46. package/lib/victory-portal/victory-portal.d.ts +0 -5
  47. package/lib/victory-portal/victory-portal.js +0 -6
  48. package/lib/victory-primitives/arc.d.ts +1 -32
  49. package/lib/victory-primitives/arc.js +1 -15
  50. package/lib/victory-primitives/background.d.ts +1 -32
  51. package/lib/victory-primitives/background.js +1 -15
  52. package/lib/victory-primitives/border.d.ts +1 -29
  53. package/lib/victory-primitives/border.js +1 -12
  54. package/lib/victory-primitives/line-segment.d.ts +1 -30
  55. package/lib/victory-primitives/line-segment.js +1 -13
  56. package/lib/victory-primitives/point.d.ts +1 -31
  57. package/lib/victory-primitives/point.js +1 -14
  58. package/lib/victory-primitives/whisker.d.ts +1 -38
  59. package/lib/victory-primitives/whisker.js +1 -21
  60. package/lib/victory-transition/victory-transition.d.ts +0 -6
  61. package/lib/victory-transition/victory-transition.js +0 -7
  62. package/lib/victory-util/common-props.d.ts +0 -5
  63. package/lib/victory-util/common-props.js +1 -148
  64. package/lib/victory-util/index.d.ts +0 -1
  65. package/lib/victory-util/index.js +1 -6
  66. package/package.json +2 -3
  67. package/src/victory-accessible-group/victory-accessible-group.tsx +0 -12
  68. package/src/victory-animation/victory-animation.tsx +0 -51
  69. package/src/victory-clip-container/victory-clip-container.tsx +0 -34
  70. package/src/victory-container/victory-container.tsx +0 -35
  71. package/src/victory-label/victory-label.tsx +0 -83
  72. package/src/victory-portal/portal.tsx +0 -9
  73. package/src/victory-portal/victory-portal.tsx +0 -6
  74. package/src/victory-primitives/arc.tsx +1 -17
  75. package/src/victory-primitives/background.tsx +1 -17
  76. package/src/victory-primitives/border.tsx +1 -14
  77. package/src/victory-primitives/line-segment.tsx +1 -15
  78. package/src/victory-primitives/point.tsx +1 -29
  79. package/src/victory-primitives/whisker.tsx +1 -23
  80. package/src/victory-transition/victory-transition.tsx +0 -7
  81. package/src/victory-util/common-props.tsx +0 -218
  82. package/src/victory-util/index.ts +0 -1
  83. package/es/victory-util/prop-types.d.ts +0 -51
  84. package/es/victory-util/prop-types.js +0 -241
  85. package/lib/victory-util/prop-types.d.ts +0 -51
  86. package/lib/victory-util/prop-types.js +0 -269
  87. package/src/victory-util/prop-types.ts +0 -254
@@ -1,5 +1,4 @@
1
1
  import React from "react";
2
- import PropTypes from "prop-types";
3
2
  export interface VictoryAccessibleGroupProps {
4
3
  desc?: string;
5
4
  "aria-describedby"?: string;
@@ -10,14 +9,6 @@ export interface VictoryAccessibleGroupProps {
10
9
  }
11
10
  export declare class VictoryAccessibleGroup extends React.Component<VictoryAccessibleGroupProps> {
12
11
  static displayName: string;
13
- static propTypes: {
14
- "aria-describedby": PropTypes.Requireable<string>;
15
- "aria-label": PropTypes.Requireable<string>;
16
- children: PropTypes.Requireable<string | number | boolean | PropTypes.ReactElementLike | PropTypes.ReactNodeArray>;
17
- className: PropTypes.Requireable<string>;
18
- desc: PropTypes.Requireable<string>;
19
- tabIndex: PropTypes.Requireable<number>;
20
- };
21
12
  static defaultProps: {
22
13
  className: string;
23
14
  };
@@ -19,7 +19,6 @@ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Re
19
19
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
20
20
 
21
21
  import React from "react";
22
- import PropTypes from "prop-types";
23
22
  export var VictoryAccessibleGroup = /*#__PURE__*/function (_React$Component) {
24
23
  _inherits(VictoryAccessibleGroup, _React$Component);
25
24
 
@@ -59,14 +58,6 @@ export var VictoryAccessibleGroup = /*#__PURE__*/function (_React$Component) {
59
58
  return VictoryAccessibleGroup;
60
59
  }(React.Component);
61
60
  VictoryAccessibleGroup.displayName = "VictoryAccessibleGroup";
62
- VictoryAccessibleGroup.propTypes = {
63
- "aria-describedby": PropTypes.string,
64
- "aria-label": PropTypes.string,
65
- children: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.node), PropTypes.node]),
66
- className: PropTypes.string,
67
- desc: PropTypes.string,
68
- tabIndex: PropTypes.number
69
- };
70
61
  VictoryAccessibleGroup.defaultProps = {
71
62
  className: "VictoryAccessibleGroup"
72
63
  };
@@ -1,5 +1,4 @@
1
1
  import React from "react";
2
- import PropTypes from "prop-types";
3
2
  import TimerContext from "../victory-util/timer-context";
4
3
  import type Timer from "../victory-util/timer";
5
4
  /**
@@ -35,14 +34,6 @@ export interface VictoryAnimation {
35
34
  }
36
35
  export declare class VictoryAnimation extends React.Component<VictoryAnimationProps, VictoryAnimationState> {
37
36
  static displayName: string;
38
- static propTypes: {
39
- children: PropTypes.Requireable<(...args: any[]) => any>;
40
- data: PropTypes.Requireable<object>;
41
- delay: PropTypes.Requireable<number>;
42
- duration: PropTypes.Requireable<number>;
43
- easing: PropTypes.Requireable<string>;
44
- onEnd: PropTypes.Requireable<(...args: any[]) => any>;
45
- };
46
37
  static defaultProps: {
47
38
  data: {};
48
39
  delay: number;
@@ -32,7 +32,6 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
32
32
 
33
33
  /* global setTimeout:false */
34
34
  import React from "react";
35
- import PropTypes from "prop-types";
36
35
  import * as d3Ease from "victory-vendor/d3-ease";
37
36
  import { victoryInterpolator } from "./util";
38
37
  import TimerContext from "../victory-util/timer-context";
@@ -222,14 +221,6 @@ export var VictoryAnimation = /*#__PURE__*/function (_React$Component) {
222
221
  return VictoryAnimation;
223
222
  }(React.Component);
224
223
  VictoryAnimation.displayName = "VictoryAnimation";
225
- VictoryAnimation.propTypes = {
226
- children: PropTypes.func,
227
- data: PropTypes.oneOfType([PropTypes.object, PropTypes.array]),
228
- delay: PropTypes.number,
229
- duration: PropTypes.number,
230
- easing: PropTypes.oneOf(["back", "backIn", "backOut", "backInOut", "bounce", "bounceIn", "bounceOut", "bounceInOut", "circle", "circleIn", "circleOut", "circleInOut", "linear", "linearIn", "linearOut", "linearInOut", "cubic", "cubicIn", "cubicOut", "cubicInOut", "elastic", "elasticIn", "elasticOut", "elasticInOut", "exp", "expIn", "expOut", "expInOut", "poly", "polyIn", "polyOut", "polyInOut", "quad", "quadIn", "quadOut", "quadInOut", "sin", "sinIn", "sinOut", "sinInOut"]),
231
- onEnd: PropTypes.func
232
- };
233
224
  VictoryAnimation.defaultProps = {
234
225
  data: {},
235
226
  delay: 0,
@@ -1,5 +1,4 @@
1
1
  import React from "react";
2
- import PropTypes from "prop-types";
3
2
  import { BlockProps } from "../victory-theme/victory-theme";
4
3
  import { OriginType } from "../victory-label/victory-label";
5
4
  export interface VictoryClipContainerProps {
@@ -24,35 +23,6 @@ export interface VictoryClipContainerProps {
24
23
  export declare class VictoryClipContainer extends React.Component<VictoryClipContainerProps> {
25
24
  static displayName: string;
26
25
  static role: string;
27
- static propTypes: {
28
- "aria-label": PropTypes.Requireable<string>;
29
- children: PropTypes.Requireable<string | number | boolean | PropTypes.ReactElementLike | PropTypes.ReactNodeArray>;
30
- circleComponent: PropTypes.Requireable<PropTypes.ReactElementLike>;
31
- className: PropTypes.Requireable<string>;
32
- clipHeight: PropTypes.Requireable<number | undefined>;
33
- clipId: PropTypes.Requireable<string | number>;
34
- clipPadding: PropTypes.Requireable<PropTypes.InferProps<{
35
- top: PropTypes.Requireable<number>;
36
- bottom: PropTypes.Requireable<number>;
37
- left: PropTypes.Requireable<number>;
38
- right: PropTypes.Requireable<number>;
39
- }>>;
40
- clipPathComponent: PropTypes.Requireable<PropTypes.ReactElementLike>;
41
- clipWidth: PropTypes.Requireable<number | undefined>;
42
- events: PropTypes.Requireable<object>;
43
- groupComponent: PropTypes.Requireable<PropTypes.ReactElementLike>;
44
- origin: PropTypes.Requireable<PropTypes.InferProps<{
45
- x: PropTypes.Requireable<number | undefined>;
46
- y: PropTypes.Requireable<number | undefined>;
47
- }>>;
48
- polar: PropTypes.Requireable<boolean>;
49
- radius: PropTypes.Requireable<number | undefined>;
50
- style: PropTypes.Requireable<object>;
51
- tabIndex: PropTypes.Requireable<number>;
52
- transform: PropTypes.Requireable<string>;
53
- translateX: PropTypes.Requireable<number>;
54
- translateY: PropTypes.Requireable<number>;
55
- };
56
26
  static defaultProps: {
57
27
  circleComponent: JSX.Element;
58
28
  rectComponent: JSX.Element;
@@ -41,8 +41,6 @@ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Re
41
41
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
42
42
 
43
43
  import React from "react";
44
- import PropTypes from "prop-types";
45
- import * as CustomPropTypes from "../victory-util/prop-types";
46
44
  import * as Helpers from "../victory-util/helpers";
47
45
  import * as UserProps from "../victory-util/user-props";
48
46
  import { ClipPath } from "../victory-primitives/clip-path";
@@ -238,35 +236,6 @@ export var VictoryClipContainer = /*#__PURE__*/function (_React$Component) {
238
236
  }(React.Component);
239
237
  VictoryClipContainer.displayName = "VictoryClipContainer";
240
238
  VictoryClipContainer.role = "container";
241
- VictoryClipContainer.propTypes = {
242
- "aria-label": PropTypes.string,
243
- children: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.node), PropTypes.node]),
244
- circleComponent: PropTypes.element,
245
- className: PropTypes.string,
246
- clipHeight: CustomPropTypes.nonNegative,
247
- clipId: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
248
- clipPadding: PropTypes.shape({
249
- top: PropTypes.number,
250
- bottom: PropTypes.number,
251
- left: PropTypes.number,
252
- right: PropTypes.number
253
- }),
254
- clipPathComponent: PropTypes.element,
255
- clipWidth: CustomPropTypes.nonNegative,
256
- events: PropTypes.object,
257
- groupComponent: PropTypes.element,
258
- origin: PropTypes.shape({
259
- x: CustomPropTypes.nonNegative,
260
- y: CustomPropTypes.nonNegative
261
- }),
262
- polar: PropTypes.bool,
263
- radius: CustomPropTypes.nonNegative,
264
- style: PropTypes.object,
265
- tabIndex: PropTypes.number,
266
- transform: PropTypes.string,
267
- translateX: PropTypes.number,
268
- translateY: PropTypes.number
269
- };
270
239
  VictoryClipContainer.defaultProps = {
271
240
  circleComponent: /*#__PURE__*/React.createElement(Circle, null),
272
241
  rectComponent: /*#__PURE__*/React.createElement(Rect, null),
@@ -1,5 +1,4 @@
1
1
  import React from "react";
2
- import PropTypes from "prop-types";
3
2
  import { OriginType } from "../victory-label/victory-label";
4
3
  import { D3Scale } from "../types/prop-types";
5
4
  import { VictoryThemeDefinition } from "../victory-theme/types";
@@ -37,36 +36,6 @@ export interface VictoryContainerProps {
37
36
  export declare class VictoryContainer<TProps extends VictoryContainerProps> extends React.Component<TProps> {
38
37
  static displayName: string;
39
38
  static role: string;
40
- static propTypes: {
41
- "aria-describedby": PropTypes.Requireable<string>;
42
- "aria-labelledby": PropTypes.Requireable<string>;
43
- children: PropTypes.Requireable<string | number | boolean | PropTypes.ReactElementLike | PropTypes.ReactNodeArray>;
44
- className: PropTypes.Requireable<string>;
45
- containerId: PropTypes.Requireable<string | number>;
46
- containerRef: PropTypes.Requireable<(...args: any[]) => any>;
47
- desc: PropTypes.Requireable<string>;
48
- events: PropTypes.Requireable<object>;
49
- height: PropTypes.Requireable<number | undefined>;
50
- name: PropTypes.Requireable<string>;
51
- origin: PropTypes.Requireable<PropTypes.InferProps<{
52
- x: PropTypes.Requireable<number | undefined>;
53
- y: PropTypes.Requireable<number | undefined>;
54
- }>>;
55
- ouiaId: PropTypes.Requireable<string | number>;
56
- ouiaSafe: PropTypes.Requireable<boolean>;
57
- ouiaType: PropTypes.Requireable<string>;
58
- polar: PropTypes.Requireable<boolean>;
59
- portalComponent: PropTypes.Requireable<PropTypes.ReactElementLike>;
60
- portalZIndex: PropTypes.Requireable<number | undefined>;
61
- preserveAspectRatio: PropTypes.Requireable<string>;
62
- responsive: PropTypes.Requireable<boolean>;
63
- role: PropTypes.Requireable<string>;
64
- style: PropTypes.Requireable<object>;
65
- tabIndex: PropTypes.Requireable<number>;
66
- theme: PropTypes.Requireable<object>;
67
- title: PropTypes.Requireable<string>;
68
- width: PropTypes.Requireable<number | undefined>;
69
- };
70
39
  static defaultProps: {
71
40
  className: string;
72
41
  portalComponent: JSX.Element;
@@ -32,8 +32,6 @@ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Re
32
32
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
33
33
 
34
34
  import React from "react";
35
- import PropTypes from "prop-types";
36
- import * as CustomPropTypes from "../victory-util/prop-types";
37
35
  import { Portal } from "../victory-portal/portal";
38
36
  import { PortalContext } from "../victory-portal/portal-context";
39
37
  import TimerContext from "../victory-util/timer-context";
@@ -231,36 +229,6 @@ export var VictoryContainer = /*#__PURE__*/function (_React$Component) {
231
229
  }(React.Component);
232
230
  VictoryContainer.displayName = "VictoryContainer";
233
231
  VictoryContainer.role = "container";
234
- VictoryContainer.propTypes = {
235
- "aria-describedby": PropTypes.string,
236
- "aria-labelledby": PropTypes.string,
237
- children: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.node), PropTypes.node]),
238
- className: PropTypes.string,
239
- containerId: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
240
- containerRef: PropTypes.func,
241
- desc: PropTypes.string,
242
- events: PropTypes.object,
243
- height: CustomPropTypes.nonNegative,
244
- name: PropTypes.string,
245
- origin: PropTypes.shape({
246
- x: CustomPropTypes.nonNegative,
247
- y: CustomPropTypes.nonNegative
248
- }),
249
- ouiaId: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
250
- ouiaSafe: PropTypes.bool,
251
- ouiaType: PropTypes.string,
252
- polar: PropTypes.bool,
253
- portalComponent: PropTypes.element,
254
- portalZIndex: CustomPropTypes.integer,
255
- preserveAspectRatio: PropTypes.string,
256
- responsive: PropTypes.bool,
257
- role: PropTypes.string,
258
- style: PropTypes.object,
259
- tabIndex: PropTypes.number,
260
- theme: PropTypes.object,
261
- title: PropTypes.string,
262
- width: CustomPropTypes.nonNegative
263
- };
264
232
  VictoryContainer.defaultProps = {
265
233
  className: "VictoryContainer",
266
234
  portalComponent: /*#__PURE__*/React.createElement(Portal, null),
@@ -19,7 +19,6 @@ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToAr
19
19
 
20
20
  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; }
21
21
 
22
- import PropTypes from "prop-types";
23
22
  import React from "react";
24
23
  import { VictoryPortal } from "../victory-portal/victory-portal";
25
24
  import { Rect } from "../victory-primitives/rect";
@@ -28,7 +27,6 @@ import { TSpan } from "../victory-primitives/tspan";
28
27
  import * as Helpers from "../victory-util/helpers";
29
28
  import * as LabelHelpers from "../victory-util/label-helpers";
30
29
  import * as Log from "../victory-util/log";
31
- import * as CustomPropTypes from "../victory-util/prop-types";
32
30
  import * as Style from "../victory-util/style";
33
31
  import * as TextSize from "../victory-util/textsize";
34
32
  import * as UserProps from "../victory-util/user-props";
@@ -549,53 +547,4 @@ export var VictoryLabel = function (initialProps) {
549
547
  };
550
548
  VictoryLabel.displayName = "VictoryLabel";
551
549
  VictoryLabel.role = "label";
552
- VictoryLabel.defaultStyles = defaultStyles;
553
- VictoryLabel.propTypes = {
554
- active: PropTypes.bool,
555
- angle: PropTypes.oneOfType([PropTypes.string, PropTypes.number, PropTypes.func]),
556
- ariaLabel: PropTypes.oneOfType([PropTypes.string, PropTypes.func]),
557
- backgroundComponent: PropTypes.element,
558
- backgroundPadding: PropTypes.oneOfType([PropTypes.number, PropTypes.object, PropTypes.array]),
559
- backgroundStyle: PropTypes.oneOfType([PropTypes.object, PropTypes.array]),
560
- capHeight: PropTypes.oneOfType([PropTypes.string, CustomPropTypes.nonNegative, PropTypes.func]),
561
- className: PropTypes.string,
562
- data: PropTypes.array,
563
- datum: PropTypes.any,
564
- // @ts-expect-error "Function is not assignable to string"
565
- desc: PropTypes.oneOfType([PropTypes.string, PropTypes.func]),
566
- direction: PropTypes.oneOf(["rtl", "ltr", "inherit"]),
567
- dx: PropTypes.oneOfType([PropTypes.number, PropTypes.string, PropTypes.func]),
568
- dy: PropTypes.oneOfType([PropTypes.number, PropTypes.string, PropTypes.func]),
569
- events: PropTypes.object,
570
- groupComponent: PropTypes.element,
571
- id: PropTypes.oneOfType([PropTypes.number, PropTypes.string, PropTypes.func]),
572
- index: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
573
- inline: PropTypes.bool,
574
- labelPlacement: PropTypes.oneOf(["parallel", "perpendicular", "vertical"]),
575
- lineHeight: PropTypes.oneOfType([PropTypes.string, CustomPropTypes.nonNegative, PropTypes.func, PropTypes.array]),
576
- origin: PropTypes.shape({
577
- x: CustomPropTypes.nonNegative.isRequired,
578
- y: CustomPropTypes.nonNegative.isRequired
579
- }),
580
- polar: PropTypes.bool,
581
- renderInPortal: PropTypes.bool,
582
- scale: PropTypes.shape({
583
- x: CustomPropTypes.scale,
584
- y: CustomPropTypes.scale
585
- }),
586
- style: PropTypes.oneOfType([PropTypes.object, PropTypes.array]),
587
- tabIndex: PropTypes.oneOfType([PropTypes.number, PropTypes.func]),
588
- text: PropTypes.oneOfType([PropTypes.string, PropTypes.number, PropTypes.func, PropTypes.array]),
589
- // @ts-expect-error Function is not assignable to string"
590
- textAnchor: PropTypes.oneOfType([PropTypes.oneOf(["start", "middle", "end", "inherit"]), PropTypes.func]),
591
- textComponent: PropTypes.element,
592
- title: PropTypes.string,
593
- transform: PropTypes.oneOfType([PropTypes.string, PropTypes.object, PropTypes.func]),
594
- tspanComponent: PropTypes.element,
595
- // @ts-expect-error Function is not assignable to string"
596
- verticalAnchor: PropTypes.oneOfType([PropTypes.oneOf(["start", "middle", "end"]), PropTypes.func]),
597
- // @ts-expect-error Number is not assignable to string
598
- x: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
599
- // @ts-expect-error Number is not assignable to string
600
- y: PropTypes.oneOfType([PropTypes.number, PropTypes.string])
601
- };
550
+ VictoryLabel.defaultStyles = defaultStyles;
@@ -1,5 +1,4 @@
1
1
  import React from "react";
2
- import PropTypes from "prop-types";
3
2
  import { PortalContextValue } from "./portal-context";
4
3
  export interface PortalProps {
5
4
  className?: string;
@@ -10,13 +9,6 @@ export interface PortalProps {
10
9
  }
11
10
  export declare class Portal extends React.Component<PortalProps> implements PortalContextValue {
12
11
  static displayName: string;
13
- static propTypes: {
14
- className: PropTypes.Requireable<string>;
15
- height: PropTypes.Requireable<number | undefined>;
16
- style: PropTypes.Requireable<object>;
17
- viewBox: PropTypes.Requireable<string>;
18
- width: PropTypes.Requireable<number | undefined>;
19
- };
20
12
  private readonly map;
21
13
  private index;
22
14
  constructor(props: PortalProps);
@@ -21,8 +21,6 @@ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Re
21
21
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
22
22
 
23
23
  import React from "react";
24
- import PropTypes from "prop-types";
25
- import * as CustomPropTypes from "../victory-util/prop-types";
26
24
  export var Portal = /*#__PURE__*/function (_ref) {
27
25
  _inherits(Portal, _ref);
28
26
 
@@ -80,11 +78,4 @@ export var Portal = /*#__PURE__*/function (_ref) {
80
78
 
81
79
  return Portal;
82
80
  }(React.Component);
83
- Portal.displayName = "Portal";
84
- Portal.propTypes = {
85
- className: PropTypes.string,
86
- height: CustomPropTypes.nonNegative,
87
- style: PropTypes.object,
88
- viewBox: PropTypes.string,
89
- width: CustomPropTypes.nonNegative
90
- };
81
+ Portal.displayName = "Portal";
@@ -1,5 +1,4 @@
1
1
  import React from "react";
2
- import PropTypes from "prop-types";
3
2
  import { PortalContext } from "./portal-context";
4
3
  export interface VictoryPortalProps {
5
4
  children?: React.ReactElement;
@@ -11,10 +10,6 @@ export interface VictoryPortal {
11
10
  export declare class VictoryPortal extends React.Component<VictoryPortalProps> {
12
11
  static displayName: string;
13
12
  static role: string;
14
- static propTypes: {
15
- children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
16
- groupComponent: PropTypes.Requireable<PropTypes.ReactElementLike>;
17
- };
18
13
  static defaultProps: {
19
14
  groupComponent: JSX.Element;
20
15
  };
@@ -21,7 +21,6 @@ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Re
21
21
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
22
22
 
23
23
  import React from "react";
24
- import PropTypes from "prop-types";
25
24
  import * as Log from "../victory-util/log";
26
25
  import * as Helpers from "../victory-util/helpers";
27
26
  import { PortalContext } from "./portal-context";
@@ -110,10 +109,6 @@ export var VictoryPortal = /*#__PURE__*/function (_React$Component) {
110
109
  }(React.Component);
111
110
  VictoryPortal.displayName = "VictoryPortal";
112
111
  VictoryPortal.role = "portal";
113
- VictoryPortal.propTypes = {
114
- children: PropTypes.node,
115
- groupComponent: PropTypes.element
116
- };
117
112
  VictoryPortal.defaultProps = {
118
113
  groupComponent: /*#__PURE__*/React.createElement("g", null)
119
114
  };
@@ -1,5 +1,4 @@
1
1
  import React from "react";
2
- import PropTypes from "prop-types";
3
2
  import { VictoryCommonPrimitiveProps } from "../victory-util/common-props";
4
3
  export interface ArcProps extends VictoryCommonPrimitiveProps {
5
4
  closedPath?: boolean;
@@ -12,35 +11,5 @@ export interface ArcProps extends VictoryCommonPrimitiveProps {
12
11
  startAngle?: number;
13
12
  type?: string;
14
13
  }
15
- export declare const Arc: {
16
- (initialProps: ArcProps): React.DetailedReactHTMLElement<any, HTMLElement>;
17
- propTypes: {
18
- closedPath: PropTypes.Requireable<boolean>;
19
- cx: PropTypes.Requireable<number>;
20
- cy: PropTypes.Requireable<number>;
21
- datum: PropTypes.Requireable<any>;
22
- endAngle: PropTypes.Requireable<number>;
23
- pathComponent: PropTypes.Requireable<PropTypes.ReactElementLike>;
24
- r: PropTypes.Requireable<number>;
25
- startAngle: PropTypes.Requireable<number>;
26
- active?: React.Validator<boolean | null | undefined> | undefined;
27
- ariaLabel?: React.Validator<import("..").StringOrCallback | null | undefined> | undefined;
28
- className?: React.Validator<string | null | undefined> | undefined;
29
- clipPath?: React.Validator<string | null | undefined> | undefined;
30
- data?: React.Validator<any> | undefined;
31
- desc?: React.Validator<string | Function | null | undefined> | undefined;
32
- disableInlineStyles?: React.Validator<boolean | null | undefined> | undefined;
33
- events?: React.Validator<object | null | undefined> | undefined;
34
- id?: React.Validator<string | number | Function | null | undefined> | undefined;
35
- index?: React.Validator<string | number | null | undefined> | undefined;
36
- origin?: React.Validator<import("..").OriginType | null | undefined> | undefined;
37
- polar?: React.Validator<boolean | null | undefined> | undefined;
38
- role?: React.Validator<string | null | undefined> | undefined;
39
- scale?: React.Validator<any> | undefined;
40
- shapeRendering?: React.Validator<string | null | undefined> | undefined;
41
- style?: React.Validator<any> | undefined;
42
- tabIndex?: React.Validator<import("..").NumberOrCallback | null | undefined> | undefined;
43
- transform?: React.Validator<string | null | undefined> | undefined;
44
- };
45
- };
14
+ export declare const Arc: (initialProps: ArcProps) => React.DetailedReactHTMLElement<any, HTMLElement>;
46
15
  //# sourceMappingURL=arc.d.ts.map
@@ -6,9 +6,7 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
6
6
 
7
7
  /* eslint no-magic-numbers: ["error", { "ignore": [0, 1, 2, 180] }]*/
8
8
  import React from "react";
9
- import PropTypes from "prop-types";
10
9
  import * as Helpers from "../victory-util/helpers";
11
- import { CommonProps } from "../victory-util/common-props";
12
10
  import { Path } from "./path";
13
11
 
14
12
  var getArcPath = function (props) {
@@ -80,14 +78,4 @@ export var Arc = function (initialProps) {
80
78
  transform: props.transform,
81
79
  clipPath: props.clipPath
82
80
  }));
83
- };
84
- Arc.propTypes = _objectSpread(_objectSpread({}, CommonProps.primitiveProps), {}, {
85
- closedPath: PropTypes.bool,
86
- cx: PropTypes.number,
87
- cy: PropTypes.number,
88
- datum: PropTypes.any,
89
- endAngle: PropTypes.number,
90
- pathComponent: PropTypes.element,
91
- r: PropTypes.number,
92
- startAngle: PropTypes.number
93
- });
81
+ };
@@ -1,5 +1,4 @@
1
1
  import React from "react";
2
- import PropTypes from "prop-types";
3
2
  import { VictoryCommonPrimitiveProps } from "../victory-util/common-props";
4
3
  export interface BackgroundProps extends VictoryCommonPrimitiveProps {
5
4
  circleComponent?: React.ReactElement;
@@ -11,35 +10,5 @@ export interface BackgroundProps extends VictoryCommonPrimitiveProps {
11
10
  x?: number;
12
11
  y?: number;
13
12
  }
14
- export declare const Background: {
15
- (initialProps: BackgroundProps): React.DetailedReactHTMLElement<any, HTMLElement>;
16
- propTypes: {
17
- circleComponent: PropTypes.Requireable<PropTypes.ReactElementLike>;
18
- height: PropTypes.Requireable<number>;
19
- rectComponent: PropTypes.Requireable<PropTypes.ReactElementLike>;
20
- rx: PropTypes.Requireable<number>;
21
- ry: PropTypes.Requireable<number>;
22
- width: PropTypes.Requireable<number>;
23
- x: PropTypes.Requireable<number>;
24
- y: PropTypes.Requireable<number>;
25
- active?: React.Validator<boolean | null | undefined> | undefined;
26
- ariaLabel?: React.Validator<import("..").StringOrCallback | null | undefined> | undefined;
27
- className?: React.Validator<string | null | undefined> | undefined;
28
- clipPath?: React.Validator<string | null | undefined> | undefined;
29
- data?: React.Validator<any> | undefined;
30
- desc?: React.Validator<string | Function | null | undefined> | undefined;
31
- disableInlineStyles?: React.Validator<boolean | null | undefined> | undefined;
32
- events?: React.Validator<object | null | undefined> | undefined;
33
- id?: React.Validator<string | number | Function | null | undefined> | undefined;
34
- index?: React.Validator<string | number | null | undefined> | undefined;
35
- origin?: React.Validator<import("..").OriginType | null | undefined> | undefined;
36
- polar?: React.Validator<boolean | null | undefined> | undefined;
37
- role?: React.Validator<string | null | undefined> | undefined;
38
- scale?: React.Validator<any> | undefined;
39
- shapeRendering?: React.Validator<string | null | undefined> | undefined;
40
- style?: React.Validator<any> | undefined;
41
- tabIndex?: React.Validator<import("..").NumberOrCallback | null | undefined> | undefined;
42
- transform?: React.Validator<string | null | undefined> | undefined;
43
- };
44
- };
13
+ export declare const Background: (initialProps: BackgroundProps) => React.DetailedReactHTMLElement<any, HTMLElement>;
45
14
  //# sourceMappingURL=background.d.ts.map
@@ -5,9 +5,7 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
5
5
  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
6
6
 
7
7
  import React from "react";
8
- import PropTypes from "prop-types";
9
8
  import * as Helpers from "../victory-util/helpers";
10
- import { CommonProps } from "../victory-util/common-props";
11
9
  import { Rect } from "./rect";
12
10
  import { Circle } from "./circle";
13
11
 
@@ -50,14 +48,4 @@ export var Background = function (initialProps) {
50
48
  height: props.height,
51
49
  className: props.className
52
50
  }));
53
- };
54
- Background.propTypes = _objectSpread(_objectSpread({}, CommonProps.primitiveProps), {}, {
55
- circleComponent: PropTypes.element,
56
- height: PropTypes.number,
57
- rectComponent: PropTypes.element,
58
- rx: PropTypes.number,
59
- ry: PropTypes.number,
60
- width: PropTypes.number,
61
- x: PropTypes.number,
62
- y: PropTypes.number
63
- });
51
+ };
@@ -1,5 +1,4 @@
1
1
  import React from "react";
2
- import PropTypes from "prop-types";
3
2
  import { VictoryCommonPrimitiveProps } from "../victory-util/common-props";
4
3
  export interface BorderProps extends VictoryCommonPrimitiveProps {
5
4
  width?: number;
@@ -8,32 +7,5 @@ export interface BorderProps extends VictoryCommonPrimitiveProps {
8
7
  x?: number;
9
8
  y?: number;
10
9
  }
11
- export declare const Border: {
12
- (initialProps: BorderProps): React.DetailedReactHTMLElement<any, HTMLElement>;
13
- propTypes: {
14
- height: PropTypes.Requireable<number>;
15
- rectComponent: PropTypes.Requireable<PropTypes.ReactElementLike>;
16
- width: PropTypes.Requireable<number>;
17
- x: PropTypes.Requireable<number>;
18
- y: PropTypes.Requireable<number>;
19
- active?: React.Validator<boolean | null | undefined> | undefined;
20
- ariaLabel?: React.Validator<import("..").StringOrCallback | null | undefined> | undefined;
21
- className?: React.Validator<string | null | undefined> | undefined;
22
- clipPath?: React.Validator<string | null | undefined> | undefined;
23
- data?: React.Validator<any> | undefined;
24
- desc?: React.Validator<string | Function | null | undefined> | undefined;
25
- disableInlineStyles?: React.Validator<boolean | null | undefined> | undefined;
26
- events?: React.Validator<object | null | undefined> | undefined;
27
- id?: React.Validator<string | number | Function | null | undefined> | undefined;
28
- index?: React.Validator<string | number | null | undefined> | undefined;
29
- origin?: React.Validator<import("..").OriginType | null | undefined> | undefined;
30
- polar?: React.Validator<boolean | null | undefined> | undefined;
31
- role?: React.Validator<string | null | undefined> | undefined;
32
- scale?: React.Validator<any> | undefined;
33
- shapeRendering?: React.Validator<string | null | undefined> | undefined;
34
- style?: React.Validator<any> | undefined;
35
- tabIndex?: React.Validator<import("..").NumberOrCallback | null | undefined> | undefined;
36
- transform?: React.Validator<string | null | undefined> | undefined;
37
- };
38
- };
10
+ export declare const Border: (initialProps: BorderProps) => React.DetailedReactHTMLElement<any, HTMLElement>;
39
11
  //# sourceMappingURL=border.d.ts.map
@@ -5,9 +5,7 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
5
5
  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
6
6
 
7
7
  import React from "react";
8
- import PropTypes from "prop-types";
9
8
  import * as Helpers from "../victory-util/helpers";
10
- import { CommonProps } from "../victory-util/common-props";
11
9
  import { Rect } from "./rect";
12
10
 
13
11
  var evaluateProps = function (props) {
@@ -57,11 +55,4 @@ export var Border = function (initialProps) {
57
55
  height: props.height,
58
56
  clipPath: props.clipPath
59
57
  }));
60
- };
61
- Border.propTypes = _objectSpread(_objectSpread({}, CommonProps.primitiveProps), {}, {
62
- height: PropTypes.number,
63
- rectComponent: PropTypes.element,
64
- width: PropTypes.number,
65
- x: PropTypes.number,
66
- y: PropTypes.number
67
- });
58
+ };