Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

victory-core

Package Overview
Dependencies
Maintainers
21
Versions
304
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

victory-core - npm Package Compare versions

Comparing version 36.8.6 to 36.9.0

6

CHANGELOG.md
# victory-core
## 36.9.0
### Minor Changes
- Remove prop-types definitions and dependency ([#2758](https://github.com/FormidableLabs/victory/pull/2758))
## 36.8.6

@@ -4,0 +10,0 @@

9

es/victory-accessible-group/victory-accessible-group.d.ts
import React from "react";
import PropTypes from "prop-types";
export interface VictoryAccessibleGroupProps {

@@ -13,10 +12,2 @@ desc?: string;

static displayName: string;
static propTypes: {
"aria-describedby": PropTypes.Requireable<string>;
"aria-label": PropTypes.Requireable<string>;
children: PropTypes.Requireable<string | number | boolean | PropTypes.ReactElementLike | PropTypes.ReactNodeArray>;
className: PropTypes.Requireable<string>;
desc: PropTypes.Requireable<string>;
tabIndex: PropTypes.Requireable<number>;
};
static defaultProps: {

@@ -23,0 +14,0 @@ className: string;

@@ -22,3 +22,2 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

import React from "react";
import PropTypes from "prop-types";
export var VictoryAccessibleGroup = /*#__PURE__*/function (_React$Component) {

@@ -63,12 +62,4 @@ _inherits(VictoryAccessibleGroup, _React$Component);

VictoryAccessibleGroup.displayName = "VictoryAccessibleGroup";
VictoryAccessibleGroup.propTypes = {
"aria-describedby": PropTypes.string,
"aria-label": PropTypes.string,
children: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.node), PropTypes.node]),
className: PropTypes.string,
desc: PropTypes.string,
tabIndex: PropTypes.number
};
VictoryAccessibleGroup.defaultProps = {
className: "VictoryAccessibleGroup"
};
import React from "react";
import PropTypes from "prop-types";
import TimerContext from "../victory-util/timer-context";

@@ -38,10 +37,2 @@ import type Timer from "../victory-util/timer";

static displayName: string;
static propTypes: {
children: PropTypes.Requireable<(...args: any[]) => any>;
data: PropTypes.Requireable<object>;
delay: PropTypes.Requireable<number>;
duration: PropTypes.Requireable<number>;
easing: PropTypes.Requireable<string>;
onEnd: PropTypes.Requireable<(...args: any[]) => any>;
};
static defaultProps: {

@@ -48,0 +39,0 @@ data: {};

@@ -35,3 +35,2 @@ function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }

import React from "react";
import PropTypes from "prop-types";
import * as d3Ease from "victory-vendor/d3-ease";

@@ -226,10 +225,2 @@ import { victoryInterpolator } from "./util";

VictoryAnimation.displayName = "VictoryAnimation";
VictoryAnimation.propTypes = {
children: PropTypes.func,
data: PropTypes.oneOfType([PropTypes.object, PropTypes.array]),
delay: PropTypes.number,
duration: PropTypes.number,
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"]),
onEnd: PropTypes.func
};
VictoryAnimation.defaultProps = {

@@ -236,0 +227,0 @@ data: {},

import React from "react";
import PropTypes from "prop-types";
import { BlockProps } from "../victory-theme/victory-theme";

@@ -27,31 +26,2 @@ import { OriginType } from "../victory-label/victory-label";

static role: string;
static propTypes: {
"aria-label": PropTypes.Requireable<string>;
children: PropTypes.Requireable<string | number | boolean | PropTypes.ReactElementLike | PropTypes.ReactNodeArray>;
circleComponent: PropTypes.Requireable<PropTypes.ReactElementLike>;
className: PropTypes.Requireable<string>;
clipHeight: PropTypes.Requireable<number | undefined>;
clipId: PropTypes.Requireable<string | number>;
clipPadding: PropTypes.Requireable<PropTypes.InferProps<{
top: PropTypes.Requireable<number>;
bottom: PropTypes.Requireable<number>;
left: PropTypes.Requireable<number>;
right: PropTypes.Requireable<number>;
}>>;
clipPathComponent: PropTypes.Requireable<PropTypes.ReactElementLike>;
clipWidth: PropTypes.Requireable<number | undefined>;
events: PropTypes.Requireable<object>;
groupComponent: PropTypes.Requireable<PropTypes.ReactElementLike>;
origin: PropTypes.Requireable<PropTypes.InferProps<{
x: PropTypes.Requireable<number | undefined>;
y: PropTypes.Requireable<number | undefined>;
}>>;
polar: PropTypes.Requireable<boolean>;
radius: PropTypes.Requireable<number | undefined>;
style: PropTypes.Requireable<object>;
tabIndex: PropTypes.Requireable<number>;
transform: PropTypes.Requireable<string>;
translateX: PropTypes.Requireable<number>;
translateY: PropTypes.Requireable<number>;
};
static defaultProps: {

@@ -58,0 +28,0 @@ circleComponent: JSX.Element;

@@ -44,4 +44,2 @@ import _uniqueId from "lodash/uniqueId";

import React from "react";
import PropTypes from "prop-types";
import * as CustomPropTypes from "../victory-util/prop-types";
import * as Helpers from "../victory-util/helpers";

@@ -242,31 +240,2 @@ import * as UserProps from "../victory-util/user-props";

VictoryClipContainer.role = "container";
VictoryClipContainer.propTypes = {
"aria-label": PropTypes.string,
children: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.node), PropTypes.node]),
circleComponent: PropTypes.element,
className: PropTypes.string,
clipHeight: CustomPropTypes.nonNegative,
clipId: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
clipPadding: PropTypes.shape({
top: PropTypes.number,
bottom: PropTypes.number,
left: PropTypes.number,
right: PropTypes.number
}),
clipPathComponent: PropTypes.element,
clipWidth: CustomPropTypes.nonNegative,
events: PropTypes.object,
groupComponent: PropTypes.element,
origin: PropTypes.shape({
x: CustomPropTypes.nonNegative,
y: CustomPropTypes.nonNegative
}),
polar: PropTypes.bool,
radius: CustomPropTypes.nonNegative,
style: PropTypes.object,
tabIndex: PropTypes.number,
transform: PropTypes.string,
translateX: PropTypes.number,
translateY: PropTypes.number
};
VictoryClipContainer.defaultProps = {

@@ -273,0 +242,0 @@ circleComponent: /*#__PURE__*/React.createElement(Circle, null),

import React from "react";
import PropTypes from "prop-types";
import { OriginType } from "../victory-label/victory-label";

@@ -40,32 +39,2 @@ import { D3Scale } from "../types/prop-types";

static role: string;
static propTypes: {
"aria-describedby": PropTypes.Requireable<string>;
"aria-labelledby": PropTypes.Requireable<string>;
children: PropTypes.Requireable<string | number | boolean | PropTypes.ReactElementLike | PropTypes.ReactNodeArray>;
className: PropTypes.Requireable<string>;
containerId: PropTypes.Requireable<string | number>;
containerRef: PropTypes.Requireable<(...args: any[]) => any>;
desc: PropTypes.Requireable<string>;
events: PropTypes.Requireable<object>;
height: PropTypes.Requireable<number | undefined>;
name: PropTypes.Requireable<string>;
origin: PropTypes.Requireable<PropTypes.InferProps<{
x: PropTypes.Requireable<number | undefined>;
y: PropTypes.Requireable<number | undefined>;
}>>;
ouiaId: PropTypes.Requireable<string | number>;
ouiaSafe: PropTypes.Requireable<boolean>;
ouiaType: PropTypes.Requireable<string>;
polar: PropTypes.Requireable<boolean>;
portalComponent: PropTypes.Requireable<PropTypes.ReactElementLike>;
portalZIndex: PropTypes.Requireable<number | undefined>;
preserveAspectRatio: PropTypes.Requireable<string>;
responsive: PropTypes.Requireable<boolean>;
role: PropTypes.Requireable<string>;
style: PropTypes.Requireable<object>;
tabIndex: PropTypes.Requireable<number>;
theme: PropTypes.Requireable<object>;
title: PropTypes.Requireable<string>;
width: PropTypes.Requireable<number | undefined>;
};
static defaultProps: {

@@ -72,0 +41,0 @@ className: string;

@@ -35,4 +35,2 @@ import _isFunction from "lodash/isFunction";

import React from "react";
import PropTypes from "prop-types";
import * as CustomPropTypes from "../victory-util/prop-types";
import { Portal } from "../victory-portal/portal";

@@ -235,32 +233,2 @@ import { PortalContext } from "../victory-portal/portal-context";

VictoryContainer.role = "container";
VictoryContainer.propTypes = {
"aria-describedby": PropTypes.string,
"aria-labelledby": PropTypes.string,
children: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.node), PropTypes.node]),
className: PropTypes.string,
containerId: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
containerRef: PropTypes.func,
desc: PropTypes.string,
events: PropTypes.object,
height: CustomPropTypes.nonNegative,
name: PropTypes.string,
origin: PropTypes.shape({
x: CustomPropTypes.nonNegative,
y: CustomPropTypes.nonNegative
}),
ouiaId: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
ouiaSafe: PropTypes.bool,
ouiaType: PropTypes.string,
polar: PropTypes.bool,
portalComponent: PropTypes.element,
portalZIndex: CustomPropTypes.integer,
preserveAspectRatio: PropTypes.string,
responsive: PropTypes.bool,
role: PropTypes.string,
style: PropTypes.object,
tabIndex: PropTypes.number,
theme: PropTypes.object,
title: PropTypes.string,
width: CustomPropTypes.nonNegative
};
VictoryContainer.defaultProps = {

@@ -267,0 +235,0 @@ className: "VictoryContainer",

53

es/victory-label/victory-label.js

@@ -22,3 +22,2 @@ import _isEmpty from "lodash/isEmpty";

import PropTypes from "prop-types";
import React from "react";

@@ -32,3 +31,2 @@ import { VictoryPortal } from "../victory-portal/victory-portal";

import * as Log from "../victory-util/log";
import * as CustomPropTypes from "../victory-util/prop-types";
import * as Style from "../victory-util/style";

@@ -554,51 +552,2 @@ import * as TextSize from "../victory-util/textsize";

VictoryLabel.role = "label";
VictoryLabel.defaultStyles = defaultStyles;
VictoryLabel.propTypes = {
active: PropTypes.bool,
angle: PropTypes.oneOfType([PropTypes.string, PropTypes.number, PropTypes.func]),
ariaLabel: PropTypes.oneOfType([PropTypes.string, PropTypes.func]),
backgroundComponent: PropTypes.element,
backgroundPadding: PropTypes.oneOfType([PropTypes.number, PropTypes.object, PropTypes.array]),
backgroundStyle: PropTypes.oneOfType([PropTypes.object, PropTypes.array]),
capHeight: PropTypes.oneOfType([PropTypes.string, CustomPropTypes.nonNegative, PropTypes.func]),
className: PropTypes.string,
data: PropTypes.array,
datum: PropTypes.any,
// @ts-expect-error "Function is not assignable to string"
desc: PropTypes.oneOfType([PropTypes.string, PropTypes.func]),
direction: PropTypes.oneOf(["rtl", "ltr", "inherit"]),
dx: PropTypes.oneOfType([PropTypes.number, PropTypes.string, PropTypes.func]),
dy: PropTypes.oneOfType([PropTypes.number, PropTypes.string, PropTypes.func]),
events: PropTypes.object,
groupComponent: PropTypes.element,
id: PropTypes.oneOfType([PropTypes.number, PropTypes.string, PropTypes.func]),
index: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
inline: PropTypes.bool,
labelPlacement: PropTypes.oneOf(["parallel", "perpendicular", "vertical"]),
lineHeight: PropTypes.oneOfType([PropTypes.string, CustomPropTypes.nonNegative, PropTypes.func, PropTypes.array]),
origin: PropTypes.shape({
x: CustomPropTypes.nonNegative.isRequired,
y: CustomPropTypes.nonNegative.isRequired
}),
polar: PropTypes.bool,
renderInPortal: PropTypes.bool,
scale: PropTypes.shape({
x: CustomPropTypes.scale,
y: CustomPropTypes.scale
}),
style: PropTypes.oneOfType([PropTypes.object, PropTypes.array]),
tabIndex: PropTypes.oneOfType([PropTypes.number, PropTypes.func]),
text: PropTypes.oneOfType([PropTypes.string, PropTypes.number, PropTypes.func, PropTypes.array]),
// @ts-expect-error Function is not assignable to string"
textAnchor: PropTypes.oneOfType([PropTypes.oneOf(["start", "middle", "end", "inherit"]), PropTypes.func]),
textComponent: PropTypes.element,
title: PropTypes.string,
transform: PropTypes.oneOfType([PropTypes.string, PropTypes.object, PropTypes.func]),
tspanComponent: PropTypes.element,
// @ts-expect-error Function is not assignable to string"
verticalAnchor: PropTypes.oneOfType([PropTypes.oneOf(["start", "middle", "end"]), PropTypes.func]),
// @ts-expect-error Number is not assignable to string
x: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
// @ts-expect-error Number is not assignable to string
y: PropTypes.oneOfType([PropTypes.number, PropTypes.string])
};
VictoryLabel.defaultStyles = defaultStyles;
import React from "react";
import PropTypes from "prop-types";
import { PortalContextValue } from "./portal-context";

@@ -13,9 +12,2 @@ export interface PortalProps {

static displayName: string;
static propTypes: {
className: PropTypes.Requireable<string>;
height: PropTypes.Requireable<number | undefined>;
style: PropTypes.Requireable<object>;
viewBox: PropTypes.Requireable<string>;
width: PropTypes.Requireable<number | undefined>;
};
private readonly map;

@@ -22,0 +14,0 @@ private index;

@@ -24,4 +24,2 @@ import _keys from "lodash/keys";

import React from "react";
import PropTypes from "prop-types";
import * as CustomPropTypes from "../victory-util/prop-types";
export var Portal = /*#__PURE__*/function (_ref) {

@@ -84,9 +82,2 @@ _inherits(Portal, _ref);

}(React.Component);
Portal.displayName = "Portal";
Portal.propTypes = {
className: PropTypes.string,
height: CustomPropTypes.nonNegative,
style: PropTypes.object,
viewBox: PropTypes.string,
width: CustomPropTypes.nonNegative
};
Portal.displayName = "Portal";
import React from "react";
import PropTypes from "prop-types";
import { PortalContext } from "./portal-context";

@@ -14,6 +13,2 @@ export interface VictoryPortalProps {

static role: string;
static propTypes: {
children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
groupComponent: PropTypes.Requireable<PropTypes.ReactElementLike>;
};
static defaultProps: {

@@ -20,0 +15,0 @@ groupComponent: JSX.Element;

@@ -24,3 +24,2 @@ import _defaults from "lodash/defaults";

import React from "react";
import PropTypes from "prop-types";
import * as Log from "../victory-util/log";

@@ -114,6 +113,2 @@ import * as Helpers from "../victory-util/helpers";

VictoryPortal.role = "portal";
VictoryPortal.propTypes = {
children: PropTypes.node,
groupComponent: PropTypes.element
};
VictoryPortal.defaultProps = {

@@ -120,0 +115,0 @@ groupComponent: /*#__PURE__*/React.createElement("g", null)

import React from "react";
import PropTypes from "prop-types";
import { VictoryCommonPrimitiveProps } from "../victory-util/common-props";

@@ -15,33 +14,3 @@ export interface ArcProps extends VictoryCommonPrimitiveProps {

}
export declare const Arc: {
(initialProps: ArcProps): React.DetailedReactHTMLElement<any, HTMLElement>;
propTypes: {
closedPath: PropTypes.Requireable<boolean>;
cx: PropTypes.Requireable<number>;
cy: PropTypes.Requireable<number>;
datum: PropTypes.Requireable<any>;
endAngle: PropTypes.Requireable<number>;
pathComponent: PropTypes.Requireable<PropTypes.ReactElementLike>;
r: PropTypes.Requireable<number>;
startAngle: PropTypes.Requireable<number>;
active?: React.Validator<boolean | null | undefined> | undefined;
ariaLabel?: React.Validator<import("..").StringOrCallback | null | undefined> | undefined;
className?: React.Validator<string | null | undefined> | undefined;
clipPath?: React.Validator<string | null | undefined> | undefined;
data?: React.Validator<any> | undefined;
desc?: React.Validator<string | Function | null | undefined> | undefined;
disableInlineStyles?: React.Validator<boolean | null | undefined> | undefined;
events?: React.Validator<object | null | undefined> | undefined;
id?: React.Validator<string | number | Function | null | undefined> | undefined;
index?: React.Validator<string | number | null | undefined> | undefined;
origin?: React.Validator<import("..").OriginType | null | undefined> | undefined;
polar?: React.Validator<boolean | null | undefined> | undefined;
role?: React.Validator<string | null | undefined> | undefined;
scale?: React.Validator<any> | undefined;
shapeRendering?: React.Validator<string | null | undefined> | undefined;
style?: React.Validator<any> | undefined;
tabIndex?: React.Validator<import("..").NumberOrCallback | null | undefined> | undefined;
transform?: React.Validator<string | null | undefined> | undefined;
};
};
export declare const Arc: (initialProps: ArcProps) => React.DetailedReactHTMLElement<any, HTMLElement>;
//# sourceMappingURL=arc.d.ts.map

@@ -9,5 +9,3 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }

import React from "react";
import PropTypes from "prop-types";
import * as Helpers from "../victory-util/helpers";
import { CommonProps } from "../victory-util/common-props";
import { Path } from "./path";

@@ -84,12 +82,2 @@

}));
};
Arc.propTypes = _objectSpread(_objectSpread({}, CommonProps.primitiveProps), {}, {
closedPath: PropTypes.bool,
cx: PropTypes.number,
cy: PropTypes.number,
datum: PropTypes.any,
endAngle: PropTypes.number,
pathComponent: PropTypes.element,
r: PropTypes.number,
startAngle: PropTypes.number
});
};
import React from "react";
import PropTypes from "prop-types";
import { VictoryCommonPrimitiveProps } from "../victory-util/common-props";

@@ -14,33 +13,3 @@ export interface BackgroundProps extends VictoryCommonPrimitiveProps {

}
export declare const Background: {
(initialProps: BackgroundProps): React.DetailedReactHTMLElement<any, HTMLElement>;
propTypes: {
circleComponent: PropTypes.Requireable<PropTypes.ReactElementLike>;
height: PropTypes.Requireable<number>;
rectComponent: PropTypes.Requireable<PropTypes.ReactElementLike>;
rx: PropTypes.Requireable<number>;
ry: PropTypes.Requireable<number>;
width: PropTypes.Requireable<number>;
x: PropTypes.Requireable<number>;
y: PropTypes.Requireable<number>;
active?: React.Validator<boolean | null | undefined> | undefined;
ariaLabel?: React.Validator<import("..").StringOrCallback | null | undefined> | undefined;
className?: React.Validator<string | null | undefined> | undefined;
clipPath?: React.Validator<string | null | undefined> | undefined;
data?: React.Validator<any> | undefined;
desc?: React.Validator<string | Function | null | undefined> | undefined;
disableInlineStyles?: React.Validator<boolean | null | undefined> | undefined;
events?: React.Validator<object | null | undefined> | undefined;
id?: React.Validator<string | number | Function | null | undefined> | undefined;
index?: React.Validator<string | number | null | undefined> | undefined;
origin?: React.Validator<import("..").OriginType | null | undefined> | undefined;
polar?: React.Validator<boolean | null | undefined> | undefined;
role?: React.Validator<string | null | undefined> | undefined;
scale?: React.Validator<any> | undefined;
shapeRendering?: React.Validator<string | null | undefined> | undefined;
style?: React.Validator<any> | undefined;
tabIndex?: React.Validator<import("..").NumberOrCallback | null | undefined> | undefined;
transform?: React.Validator<string | null | undefined> | undefined;
};
};
export declare const Background: (initialProps: BackgroundProps) => React.DetailedReactHTMLElement<any, HTMLElement>;
//# sourceMappingURL=background.d.ts.map

@@ -8,5 +8,3 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }

import React from "react";
import PropTypes from "prop-types";
import * as Helpers from "../victory-util/helpers";
import { CommonProps } from "../victory-util/common-props";
import { Rect } from "./rect";

@@ -54,12 +52,2 @@ import { Circle } from "./circle";

}));
};
Background.propTypes = _objectSpread(_objectSpread({}, CommonProps.primitiveProps), {}, {
circleComponent: PropTypes.element,
height: PropTypes.number,
rectComponent: PropTypes.element,
rx: PropTypes.number,
ry: PropTypes.number,
width: PropTypes.number,
x: PropTypes.number,
y: PropTypes.number
});
};
import React from "react";
import PropTypes from "prop-types";
import { VictoryCommonPrimitiveProps } from "../victory-util/common-props";

@@ -11,30 +10,3 @@ export interface BorderProps extends VictoryCommonPrimitiveProps {

}
export declare const Border: {
(initialProps: BorderProps): React.DetailedReactHTMLElement<any, HTMLElement>;
propTypes: {
height: PropTypes.Requireable<number>;
rectComponent: PropTypes.Requireable<PropTypes.ReactElementLike>;
width: PropTypes.Requireable<number>;
x: PropTypes.Requireable<number>;
y: PropTypes.Requireable<number>;
active?: React.Validator<boolean | null | undefined> | undefined;
ariaLabel?: React.Validator<import("..").StringOrCallback | null | undefined> | undefined;
className?: React.Validator<string | null | undefined> | undefined;
clipPath?: React.Validator<string | null | undefined> | undefined;
data?: React.Validator<any> | undefined;
desc?: React.Validator<string | Function | null | undefined> | undefined;
disableInlineStyles?: React.Validator<boolean | null | undefined> | undefined;
events?: React.Validator<object | null | undefined> | undefined;
id?: React.Validator<string | number | Function | null | undefined> | undefined;
index?: React.Validator<string | number | null | undefined> | undefined;
origin?: React.Validator<import("..").OriginType | null | undefined> | undefined;
polar?: React.Validator<boolean | null | undefined> | undefined;
role?: React.Validator<string | null | undefined> | undefined;
scale?: React.Validator<any> | undefined;
shapeRendering?: React.Validator<string | null | undefined> | undefined;
style?: React.Validator<any> | undefined;
tabIndex?: React.Validator<import("..").NumberOrCallback | null | undefined> | undefined;
transform?: React.Validator<string | null | undefined> | undefined;
};
};
export declare const Border: (initialProps: BorderProps) => React.DetailedReactHTMLElement<any, HTMLElement>;
//# sourceMappingURL=border.d.ts.map

@@ -8,5 +8,3 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }

import React from "react";
import PropTypes from "prop-types";
import * as Helpers from "../victory-util/helpers";
import { CommonProps } from "../victory-util/common-props";
import { Rect } from "./rect";

@@ -61,9 +59,2 @@

}));
};
Border.propTypes = _objectSpread(_objectSpread({}, CommonProps.primitiveProps), {}, {
height: PropTypes.number,
rectComponent: PropTypes.element,
width: PropTypes.number,
x: PropTypes.number,
y: PropTypes.number
});
};
import React from "react";
import PropTypes from "prop-types";
import { VictoryCommonPrimitiveProps } from "../victory-util/common-props";

@@ -12,31 +11,3 @@ export interface LineSegmentProps extends VictoryCommonPrimitiveProps {

}
export declare const LineSegment: {
(initialProps: LineSegmentProps): React.DetailedReactHTMLElement<any, HTMLElement>;
propTypes: {
datum: PropTypes.Requireable<any>;
lineComponent: PropTypes.Requireable<PropTypes.ReactElementLike>;
x1: PropTypes.Requireable<number>;
x2: PropTypes.Requireable<number>;
y1: PropTypes.Requireable<number>;
y2: PropTypes.Requireable<number>;
active?: React.Validator<boolean | null | undefined> | undefined;
ariaLabel?: React.Validator<import("..").StringOrCallback | null | undefined> | undefined;
className?: React.Validator<string | null | undefined> | undefined;
clipPath?: React.Validator<string | null | undefined> | undefined;
data?: React.Validator<any> | undefined;
desc?: React.Validator<string | Function | null | undefined> | undefined;
disableInlineStyles?: React.Validator<boolean | null | undefined> | undefined;
events?: React.Validator<object | null | undefined> | undefined;
id?: React.Validator<string | number | Function | null | undefined> | undefined;
index?: React.Validator<string | number | null | undefined> | undefined;
origin?: React.Validator<import("..").OriginType | null | undefined> | undefined;
polar?: React.Validator<boolean | null | undefined> | undefined;
role?: React.Validator<string | null | undefined> | undefined;
scale?: React.Validator<any> | undefined;
shapeRendering?: React.Validator<string | null | undefined> | undefined;
style?: React.Validator<any> | undefined;
tabIndex?: React.Validator<import("..").NumberOrCallback | null | undefined> | undefined;
transform?: React.Validator<string | null | undefined> | undefined;
};
};
export declare const LineSegment: (initialProps: LineSegmentProps) => React.DetailedReactHTMLElement<any, HTMLElement>;
//# sourceMappingURL=line-segment.d.ts.map

@@ -8,5 +8,3 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }

import React from "react";
import PropTypes from "prop-types";
import * as Helpers from "../victory-util/helpers";
import { CommonProps } from "../victory-util/common-props";
import { Line } from "./line";

@@ -61,10 +59,2 @@

}));
};
LineSegment.propTypes = _objectSpread(_objectSpread({}, CommonProps.primitiveProps), {}, {
datum: PropTypes.any,
lineComponent: PropTypes.element,
x1: PropTypes.number,
x2: PropTypes.number,
y1: PropTypes.number,
y2: PropTypes.number
});
};

@@ -1,2 +0,1 @@

import PropTypes from "prop-types";
import React from "react";

@@ -14,32 +13,3 @@ import { VictoryCommonPrimitiveProps } from "../victory-util/common-props";

}
export declare const Point: {
(initialProps: PointProps): React.DetailedReactHTMLElement<any, HTMLElement>;
propTypes: {
datum: PropTypes.Requireable<object>;
getPath: PropTypes.Requireable<(...args: any[]) => any>;
pathComponent: PropTypes.Requireable<PropTypes.ReactElementLike>;
size: PropTypes.Requireable<number | ((...args: any[]) => any)>;
symbol: PropTypes.Requireable<string | ((...args: any[]) => any)>;
x: PropTypes.Requireable<number>;
y: PropTypes.Requireable<number>;
active?: React.Validator<boolean | null | undefined> | undefined;
ariaLabel?: React.Validator<import("..").StringOrCallback | null | undefined> | undefined;
className?: React.Validator<string | null | undefined> | undefined;
clipPath?: React.Validator<string | null | undefined> | undefined;
data?: React.Validator<any> | undefined;
desc?: React.Validator<string | Function | null | undefined> | undefined;
disableInlineStyles?: React.Validator<boolean | null | undefined> | undefined;
events?: React.Validator<object | null | undefined> | undefined;
id?: React.Validator<string | number | Function | null | undefined> | undefined;
index?: React.Validator<string | number | null | undefined> | undefined;
origin?: React.Validator<import("..").OriginType | null | undefined> | undefined;
polar?: React.Validator<boolean | null | undefined> | undefined;
role?: React.Validator<string | null | undefined> | undefined;
scale?: React.Validator<any> | undefined;
shapeRendering?: React.Validator<string | null | undefined> | undefined;
style?: React.Validator<any> | undefined;
tabIndex?: React.Validator<import("..").NumberOrCallback | null | undefined> | undefined;
transform?: React.Validator<string | null | undefined> | undefined;
};
};
export declare const Point: (initialProps: PointProps) => React.DetailedReactHTMLElement<any, HTMLElement>;
//# sourceMappingURL=point.d.ts.map

@@ -7,7 +7,5 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }

import PropTypes from "prop-types";
import React from "react";
import * as Helpers from "../victory-util/helpers";
import * as pathHelpers from "../victory-util/point-path-helpers";
import { CommonProps } from "../victory-util/common-props";
import * as UserProps from "../victory-util/user-props";

@@ -80,11 +78,2 @@ import { Path } from "./path";

}, userProps));
};
Point.propTypes = _objectSpread(_objectSpread({}, CommonProps.primitiveProps), {}, {
datum: PropTypes.object,
getPath: PropTypes.func,
pathComponent: PropTypes.element,
size: PropTypes.oneOfType([PropTypes.number, PropTypes.func]),
symbol: PropTypes.oneOfType([PropTypes.oneOf(["circle", "cross", "diamond", "plus", "minus", "square", "star", "triangleDown", "triangleUp"]), PropTypes.func]),
x: PropTypes.number,
y: PropTypes.number
});
};
import React from "react";
import PropTypes from "prop-types";
import { VictoryCommonPrimitiveProps } from "../victory-util/common-props";

@@ -16,39 +15,3 @@ export declare type WhiskerAxes = {

}
export declare const Whisker: {
(initialProps: WhiskerProps): React.DetailedReactHTMLElement<{}, HTMLElement>;
propTypes: {
groupComponent: PropTypes.Requireable<PropTypes.ReactElementLike>;
lineComponent: PropTypes.Requireable<PropTypes.ReactElementLike>;
majorWhisker: PropTypes.Requireable<PropTypes.InferProps<{
x1: PropTypes.Requireable<number>;
x2: PropTypes.Requireable<number>;
y1: PropTypes.Requireable<number>;
y2: PropTypes.Requireable<number>;
}>>;
minorWhisker: PropTypes.Requireable<PropTypes.InferProps<{
x1: PropTypes.Requireable<number>;
x2: PropTypes.Requireable<number>;
y1: PropTypes.Requireable<number>;
y2: PropTypes.Requireable<number>;
}>>;
active?: React.Validator<boolean | null | undefined> | undefined;
ariaLabel?: React.Validator<import("..").StringOrCallback | null | undefined> | undefined;
className?: React.Validator<string | null | undefined> | undefined;
clipPath?: React.Validator<string | null | undefined> | undefined;
data?: React.Validator<any> | undefined;
desc?: React.Validator<string | Function | null | undefined> | undefined;
disableInlineStyles?: React.Validator<boolean | null | undefined> | undefined;
events?: React.Validator<object | null | undefined> | undefined;
id?: React.Validator<string | number | Function | null | undefined> | undefined;
index?: React.Validator<string | number | null | undefined> | undefined;
origin?: React.Validator<import("..").OriginType | null | undefined> | undefined;
polar?: React.Validator<boolean | null | undefined> | undefined;
role?: React.Validator<string | null | undefined> | undefined;
scale?: React.Validator<any> | undefined;
shapeRendering?: React.Validator<string | null | undefined> | undefined;
style?: React.Validator<any> | undefined;
tabIndex?: React.Validator<import("..").NumberOrCallback | null | undefined> | undefined;
transform?: React.Validator<string | null | undefined> | undefined;
};
};
export declare const Whisker: (initialProps: WhiskerProps) => React.DetailedReactHTMLElement<{}, HTMLElement>;
//# sourceMappingURL=whisker.d.ts.map

@@ -8,5 +8,3 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }

import React from "react";
import PropTypes from "prop-types";
import * as Helpers from "../victory-util/helpers";
import { CommonProps } from "../victory-util/common-props";
import { Line } from "./line";

@@ -78,18 +76,2 @@

}, baseProps, minorWhisker))]);
};
Whisker.propTypes = _objectSpread(_objectSpread({}, CommonProps.primitiveProps), {}, {
groupComponent: PropTypes.element,
lineComponent: PropTypes.element,
majorWhisker: PropTypes.shape({
x1: PropTypes.number,
x2: PropTypes.number,
y1: PropTypes.number,
y2: PropTypes.number
}),
minorWhisker: PropTypes.shape({
x1: PropTypes.number,
x2: PropTypes.number,
y1: PropTypes.number,
y2: PropTypes.number
})
});
};
import React from "react";
import PropTypes from "prop-types";
import TimerContext from "../victory-util/timer-context";

@@ -36,7 +35,2 @@ import Timer from "../victory-util/timer";

static displayName: string;
static propTypes: {
animate: PropTypes.Requireable<boolean | object>;
animationWhitelist: PropTypes.Requireable<any[]>;
children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
};
static contextType: React.Context<{

@@ -43,0 +37,0 @@ transitionTimer: Timer;

@@ -28,3 +28,2 @@ import _pick from "lodash/pick";

import React from "react";
import PropTypes from "prop-types";
import { VictoryAnimation } from "../victory-animation/victory-animation";

@@ -233,7 +232,2 @@ import * as Collection from "../victory-util/collection";

VictoryTransition.displayName = "VictoryTransition";
VictoryTransition.propTypes = {
animate: PropTypes.oneOfType([PropTypes.bool, PropTypes.object]),
animationWhitelist: PropTypes.array,
children: PropTypes.node
};
VictoryTransition.contextType = TimerContext;

@@ -80,7 +80,2 @@ import * as React from "react";

}
export declare const CommonProps: {
dataProps: React.WeakValidationMap<VictoryDatableProps>;
baseProps: React.WeakValidationMap<VictoryCommonProps>;
primitiveProps: React.WeakValidationMap<VictoryCommonPrimitiveProps>;
};
//# sourceMappingURL=common-props.d.ts.map

@@ -1,132 +0,1 @@

import PropTypes from "prop-types";
import * as CustomPropTypes from "./prop-types";
var dataProps = {
// @ts-expect-error TODO: synchronize the type with this PropTypes
categories: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.string), PropTypes.shape({
x: PropTypes.arrayOf(PropTypes.string),
y: PropTypes.arrayOf(PropTypes.string)
})]),
// @ts-expect-error TODO: synchronize the type with this PropTypes
data: PropTypes.oneOfType([PropTypes.array, PropTypes.object]),
dataComponent: PropTypes.element,
disableInlineStyles: PropTypes.bool,
labelComponent: PropTypes.element,
labels: PropTypes.oneOfType([PropTypes.func, PropTypes.array]),
samples: CustomPropTypes.nonNegative,
sortKey: PropTypes.oneOfType([PropTypes.func, CustomPropTypes.allOfType([CustomPropTypes.integer, CustomPropTypes.nonNegative]), PropTypes.string, PropTypes.arrayOf(PropTypes.string.isRequired)]),
sortOrder: PropTypes.oneOf(["ascending", "descending"]),
style: PropTypes.shape({
parent: PropTypes.object,
data: PropTypes.object,
labels: PropTypes.object
}),
x: PropTypes.oneOfType([PropTypes.func, CustomPropTypes.allOfType([CustomPropTypes.integer, CustomPropTypes.nonNegative]), PropTypes.string, PropTypes.arrayOf(PropTypes.string.isRequired)]),
y: PropTypes.oneOfType([PropTypes.func, CustomPropTypes.allOfType([CustomPropTypes.integer, CustomPropTypes.nonNegative]), PropTypes.string, PropTypes.arrayOf(PropTypes.string.isRequired)]),
y0: PropTypes.oneOfType([PropTypes.func, CustomPropTypes.allOfType([CustomPropTypes.integer, CustomPropTypes.nonNegative]), PropTypes.string, PropTypes.arrayOf(PropTypes.string.isRequired)])
};
var baseProps = {
animate: PropTypes.oneOfType([PropTypes.bool, PropTypes.object]),
containerComponent: PropTypes.element,
domain: PropTypes.oneOfType([CustomPropTypes.domain, PropTypes.shape({
x: CustomPropTypes.domain,
y: CustomPropTypes.domain
})]),
// @ts-expect-error TODO: synchronize the type with this PropTypes
maxDomain: PropTypes.oneOfType([PropTypes.number, PropTypes.instanceOf(Date), PropTypes.shape({
x: PropTypes.oneOfType([PropTypes.number, PropTypes.instanceOf(Date)]),
y: PropTypes.oneOfType([PropTypes.number, PropTypes.instanceOf(Date)])
})]),
// @ts-expect-error TODO: synchronize the type with this PropTypes
minDomain: PropTypes.oneOfType([PropTypes.number, PropTypes.instanceOf(Date), PropTypes.shape({
x: PropTypes.oneOfType([PropTypes.number, PropTypes.instanceOf(Date)]),
y: PropTypes.oneOfType([PropTypes.number, PropTypes.instanceOf(Date)])
})]),
// @ts-expect-error TODO: synchronize the type with this PropTypes
domainPadding: PropTypes.oneOfType([PropTypes.shape({
x: PropTypes.oneOfType([PropTypes.number, PropTypes.arrayOf(PropTypes.number)]),
y: PropTypes.oneOfType([PropTypes.number, PropTypes.arrayOf(PropTypes.number)])
}), PropTypes.number, PropTypes.arrayOf(PropTypes.number)]),
eventKey: PropTypes.oneOfType([PropTypes.func, CustomPropTypes.allOfType([CustomPropTypes.integer, CustomPropTypes.nonNegative]), PropTypes.string]),
events: PropTypes.arrayOf(PropTypes.shape({
target: PropTypes.oneOf(["data", "labels", "parent"]),
eventKey: PropTypes.oneOfType([PropTypes.array, CustomPropTypes.allOfType([CustomPropTypes.integer, CustomPropTypes.nonNegative]), PropTypes.string]),
eventHandlers: PropTypes.object
})),
// @ts-expect-error TODO: synchronize the type with this PropTypes
externalEventMutations: PropTypes.arrayOf(PropTypes.shape({
callback: PropTypes.func,
childName: PropTypes.oneOfType([PropTypes.string, PropTypes.array]),
eventKey: PropTypes.oneOfType([PropTypes.array, CustomPropTypes.allOfType([CustomPropTypes.integer, CustomPropTypes.nonNegative]), PropTypes.string]),
mutation: PropTypes.func,
target: PropTypes.oneOfType([PropTypes.string, PropTypes.array])
})),
groupComponent: PropTypes.element,
height: CustomPropTypes.nonNegative,
name: PropTypes.string,
// @ts-expect-error TODO: synchronize the type with this PropTypes
origin: PropTypes.shape({
x: PropTypes.number,
y: PropTypes.number
}),
// @ts-expect-error TODO: synchronize the type with this PropTypes
padding: PropTypes.oneOfType([PropTypes.number, PropTypes.shape({
top: PropTypes.number,
bottom: PropTypes.number,
left: PropTypes.number,
right: PropTypes.number
})]),
polar: PropTypes.bool,
range: PropTypes.oneOfType([CustomPropTypes.domain, PropTypes.shape({
x: CustomPropTypes.domain.isRequired,
y: CustomPropTypes.domain.isRequired
})]),
scale: PropTypes.oneOfType([CustomPropTypes.scale, PropTypes.shape({
x: CustomPropTypes.scale.isRequired,
y: CustomPropTypes.scale.isRequired
})]),
// @ts-expect-error TODO: synchronize the type with this PropTypes
sharedEvents: PropTypes.shape({
events: PropTypes.array,
getEventState: PropTypes.func
}),
// @ts-expect-error TODO: synchronize the type with this PropTypes
singleQuadrantDomainPadding: PropTypes.oneOfType([PropTypes.bool, PropTypes.shape({
x: PropTypes.oneOfType([PropTypes.bool]),
y: PropTypes.oneOfType([PropTypes.bool])
})]),
standalone: PropTypes.bool,
theme: PropTypes.object,
width: CustomPropTypes.nonNegative
};
var primitiveProps = {
active: PropTypes.bool,
ariaLabel: PropTypes.oneOfType([PropTypes.string, PropTypes.func]),
className: PropTypes.string,
clipPath: PropTypes.string,
data: PropTypes.oneOfType([PropTypes.array, PropTypes.object]),
desc: PropTypes.oneOfType([PropTypes.string, PropTypes.func]),
disableInlineStyles: PropTypes.bool,
events: PropTypes.object,
id: PropTypes.oneOfType([PropTypes.number, PropTypes.string, PropTypes.func]),
index: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
// @ts-expect-error TODO: synchronize the type with this PropTypes
origin: PropTypes.shape({
x: PropTypes.number,
y: PropTypes.number
}),
polar: PropTypes.bool,
role: PropTypes.string,
scale: PropTypes.oneOfType([CustomPropTypes.scale, PropTypes.shape({
x: CustomPropTypes.scale,
y: CustomPropTypes.scale
})]),
shapeRendering: PropTypes.string,
style: PropTypes.object,
tabIndex: PropTypes.oneOfType([PropTypes.number, PropTypes.func]),
transform: PropTypes.string
};
export var CommonProps = {
dataProps: dataProps,
baseProps: baseProps,
primitiveProps: primitiveProps
};
export {};

@@ -16,3 +16,2 @@ export * from "./add-events";

export * as PointPathHelpers from "./point-path-helpers";
export * as PropTypes from "./prop-types";
export * as Scale from "./scale";

@@ -19,0 +18,0 @@ export * as Selection from "./selection";

@@ -29,4 +29,2 @@ export * from "./add-events";

export { _PointPathHelpers as PointPathHelpers };
import * as _PropTypes from "./prop-types";
export { _PropTypes as PropTypes };
import * as _Scale from "./scale";

@@ -33,0 +31,0 @@ export { _Scale as Scale };

import React from "react";
import PropTypes from "prop-types";
export interface VictoryAccessibleGroupProps {

@@ -13,10 +12,2 @@ desc?: string;

static displayName: string;
static propTypes: {
"aria-describedby": PropTypes.Requireable<string>;
"aria-label": PropTypes.Requireable<string>;
children: PropTypes.Requireable<string | number | boolean | PropTypes.ReactElementLike | PropTypes.ReactNodeArray>;
className: PropTypes.Requireable<string>;
desc: PropTypes.Requireable<string>;
tabIndex: PropTypes.Requireable<number>;
};
static defaultProps: {

@@ -23,0 +14,0 @@ className: string;

@@ -10,4 +10,2 @@ "use strict";

var _propTypes = _interopRequireDefault(require("prop-types"));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

@@ -76,12 +74,4 @@

VictoryAccessibleGroup.displayName = "VictoryAccessibleGroup";
VictoryAccessibleGroup.propTypes = {
"aria-describedby": _propTypes.default.string,
"aria-label": _propTypes.default.string,
children: _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.node), _propTypes.default.node]),
className: _propTypes.default.string,
desc: _propTypes.default.string,
tabIndex: _propTypes.default.number
};
VictoryAccessibleGroup.defaultProps = {
className: "VictoryAccessibleGroup"
};
import React from "react";
import PropTypes from "prop-types";
import TimerContext from "../victory-util/timer-context";

@@ -38,10 +37,2 @@ import type Timer from "../victory-util/timer";

static displayName: string;
static propTypes: {
children: PropTypes.Requireable<(...args: any[]) => any>;
data: PropTypes.Requireable<object>;
delay: PropTypes.Requireable<number>;
duration: PropTypes.Requireable<number>;
easing: PropTypes.Requireable<string>;
onEnd: PropTypes.Requireable<(...args: any[]) => any>;
};
static defaultProps: {

@@ -48,0 +39,0 @@ data: {};

@@ -10,4 +10,2 @@ "use strict";

var _propTypes = _interopRequireDefault(require("prop-types"));
var d3Ease = _interopRequireWildcard(require("victory-vendor/d3-ease"));

@@ -246,10 +244,2 @@

VictoryAnimation.displayName = "VictoryAnimation";
VictoryAnimation.propTypes = {
children: _propTypes.default.func,
data: _propTypes.default.oneOfType([_propTypes.default.object, _propTypes.default.array]),
delay: _propTypes.default.number,
duration: _propTypes.default.number,
easing: _propTypes.default.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"]),
onEnd: _propTypes.default.func
};
VictoryAnimation.defaultProps = {

@@ -256,0 +246,0 @@ data: {},

import React from "react";
import PropTypes from "prop-types";
import { BlockProps } from "../victory-theme/victory-theme";

@@ -27,31 +26,2 @@ import { OriginType } from "../victory-label/victory-label";

static role: string;
static propTypes: {
"aria-label": PropTypes.Requireable<string>;
children: PropTypes.Requireable<string | number | boolean | PropTypes.ReactElementLike | PropTypes.ReactNodeArray>;
circleComponent: PropTypes.Requireable<PropTypes.ReactElementLike>;
className: PropTypes.Requireable<string>;
clipHeight: PropTypes.Requireable<number | undefined>;
clipId: PropTypes.Requireable<string | number>;
clipPadding: PropTypes.Requireable<PropTypes.InferProps<{
top: PropTypes.Requireable<number>;
bottom: PropTypes.Requireable<number>;
left: PropTypes.Requireable<number>;
right: PropTypes.Requireable<number>;
}>>;
clipPathComponent: PropTypes.Requireable<PropTypes.ReactElementLike>;
clipWidth: PropTypes.Requireable<number | undefined>;
events: PropTypes.Requireable<object>;
groupComponent: PropTypes.Requireable<PropTypes.ReactElementLike>;
origin: PropTypes.Requireable<PropTypes.InferProps<{
x: PropTypes.Requireable<number | undefined>;
y: PropTypes.Requireable<number | undefined>;
}>>;
polar: PropTypes.Requireable<boolean>;
radius: PropTypes.Requireable<number | undefined>;
style: PropTypes.Requireable<object>;
tabIndex: PropTypes.Requireable<number>;
transform: PropTypes.Requireable<string>;
translateX: PropTypes.Requireable<number>;
translateY: PropTypes.Requireable<number>;
};
static defaultProps: {

@@ -58,0 +28,0 @@ circleComponent: JSX.Element;

@@ -16,6 +16,2 @@ "use strict";

var _propTypes = _interopRequireDefault(require("prop-types"));
var CustomPropTypes = _interopRequireWildcard(require("../victory-util/prop-types"));
var Helpers = _interopRequireWildcard(require("../victory-util/helpers"));

@@ -265,31 +261,2 @@

VictoryClipContainer.role = "container";
VictoryClipContainer.propTypes = {
"aria-label": _propTypes.default.string,
children: _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.node), _propTypes.default.node]),
circleComponent: _propTypes.default.element,
className: _propTypes.default.string,
clipHeight: CustomPropTypes.nonNegative,
clipId: _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.string]),
clipPadding: _propTypes.default.shape({
top: _propTypes.default.number,
bottom: _propTypes.default.number,
left: _propTypes.default.number,
right: _propTypes.default.number
}),
clipPathComponent: _propTypes.default.element,
clipWidth: CustomPropTypes.nonNegative,
events: _propTypes.default.object,
groupComponent: _propTypes.default.element,
origin: _propTypes.default.shape({
x: CustomPropTypes.nonNegative,
y: CustomPropTypes.nonNegative
}),
polar: _propTypes.default.bool,
radius: CustomPropTypes.nonNegative,
style: _propTypes.default.object,
tabIndex: _propTypes.default.number,
transform: _propTypes.default.string,
translateX: _propTypes.default.number,
translateY: _propTypes.default.number
};
VictoryClipContainer.defaultProps = {

@@ -296,0 +263,0 @@ circleComponent: /*#__PURE__*/_react.default.createElement(_circle.Circle, null),

import React from "react";
import PropTypes from "prop-types";
import { OriginType } from "../victory-label/victory-label";

@@ -40,32 +39,2 @@ import { D3Scale } from "../types/prop-types";

static role: string;
static propTypes: {
"aria-describedby": PropTypes.Requireable<string>;
"aria-labelledby": PropTypes.Requireable<string>;
children: PropTypes.Requireable<string | number | boolean | PropTypes.ReactElementLike | PropTypes.ReactNodeArray>;
className: PropTypes.Requireable<string>;
containerId: PropTypes.Requireable<string | number>;
containerRef: PropTypes.Requireable<(...args: any[]) => any>;
desc: PropTypes.Requireable<string>;
events: PropTypes.Requireable<object>;
height: PropTypes.Requireable<number | undefined>;
name: PropTypes.Requireable<string>;
origin: PropTypes.Requireable<PropTypes.InferProps<{
x: PropTypes.Requireable<number | undefined>;
y: PropTypes.Requireable<number | undefined>;
}>>;
ouiaId: PropTypes.Requireable<string | number>;
ouiaSafe: PropTypes.Requireable<boolean>;
ouiaType: PropTypes.Requireable<string>;
polar: PropTypes.Requireable<boolean>;
portalComponent: PropTypes.Requireable<PropTypes.ReactElementLike>;
portalZIndex: PropTypes.Requireable<number | undefined>;
preserveAspectRatio: PropTypes.Requireable<string>;
responsive: PropTypes.Requireable<boolean>;
role: PropTypes.Requireable<string>;
style: PropTypes.Requireable<object>;
tabIndex: PropTypes.Requireable<number>;
theme: PropTypes.Requireable<object>;
title: PropTypes.Requireable<string>;
width: PropTypes.Requireable<number | undefined>;
};
static defaultProps: {

@@ -72,0 +41,0 @@ className: string;

@@ -18,6 +18,2 @@ "use strict";

var _propTypes = _interopRequireDefault(require("prop-types"));
var CustomPropTypes = _interopRequireWildcard(require("../victory-util/prop-types"));
var _portal = require("../victory-portal/portal");

@@ -261,32 +257,2 @@

VictoryContainer.role = "container";
VictoryContainer.propTypes = {
"aria-describedby": _propTypes.default.string,
"aria-labelledby": _propTypes.default.string,
children: _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.node), _propTypes.default.node]),
className: _propTypes.default.string,
containerId: _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.string]),
containerRef: _propTypes.default.func,
desc: _propTypes.default.string,
events: _propTypes.default.object,
height: CustomPropTypes.nonNegative,
name: _propTypes.default.string,
origin: _propTypes.default.shape({
x: CustomPropTypes.nonNegative,
y: CustomPropTypes.nonNegative
}),
ouiaId: _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.string]),
ouiaSafe: _propTypes.default.bool,
ouiaType: _propTypes.default.string,
polar: _propTypes.default.bool,
portalComponent: _propTypes.default.element,
portalZIndex: CustomPropTypes.integer,
preserveAspectRatio: _propTypes.default.string,
responsive: _propTypes.default.bool,
role: _propTypes.default.string,
style: _propTypes.default.object,
tabIndex: _propTypes.default.number,
theme: _propTypes.default.object,
title: _propTypes.default.string,
width: CustomPropTypes.nonNegative
};
VictoryContainer.defaultProps = {

@@ -293,0 +259,0 @@ className: "VictoryContainer",

@@ -12,4 +12,2 @@ "use strict";

var _propTypes = _interopRequireDefault(require("prop-types"));
var _react = _interopRequireDefault(require("react"));

@@ -31,4 +29,2 @@

var CustomPropTypes = _interopRequireWildcard(require("../victory-util/prop-types"));
var Style = _interopRequireWildcard(require("../victory-util/style"));

@@ -586,51 +582,2 @@

VictoryLabel.role = "label";
VictoryLabel.defaultStyles = defaultStyles;
VictoryLabel.propTypes = {
active: _propTypes.default.bool,
angle: _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.number, _propTypes.default.func]),
ariaLabel: _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.func]),
backgroundComponent: _propTypes.default.element,
backgroundPadding: _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.object, _propTypes.default.array]),
backgroundStyle: _propTypes.default.oneOfType([_propTypes.default.object, _propTypes.default.array]),
capHeight: _propTypes.default.oneOfType([_propTypes.default.string, CustomPropTypes.nonNegative, _propTypes.default.func]),
className: _propTypes.default.string,
data: _propTypes.default.array,
datum: _propTypes.default.any,
// @ts-expect-error "Function is not assignable to string"
desc: _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.func]),
direction: _propTypes.default.oneOf(["rtl", "ltr", "inherit"]),
dx: _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.string, _propTypes.default.func]),
dy: _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.string, _propTypes.default.func]),
events: _propTypes.default.object,
groupComponent: _propTypes.default.element,
id: _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.string, _propTypes.default.func]),
index: _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.string]),
inline: _propTypes.default.bool,
labelPlacement: _propTypes.default.oneOf(["parallel", "perpendicular", "vertical"]),
lineHeight: _propTypes.default.oneOfType([_propTypes.default.string, CustomPropTypes.nonNegative, _propTypes.default.func, _propTypes.default.array]),
origin: _propTypes.default.shape({
x: CustomPropTypes.nonNegative.isRequired,
y: CustomPropTypes.nonNegative.isRequired
}),
polar: _propTypes.default.bool,
renderInPortal: _propTypes.default.bool,
scale: _propTypes.default.shape({
x: CustomPropTypes.scale,
y: CustomPropTypes.scale
}),
style: _propTypes.default.oneOfType([_propTypes.default.object, _propTypes.default.array]),
tabIndex: _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.func]),
text: _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.number, _propTypes.default.func, _propTypes.default.array]),
// @ts-expect-error Function is not assignable to string"
textAnchor: _propTypes.default.oneOfType([_propTypes.default.oneOf(["start", "middle", "end", "inherit"]), _propTypes.default.func]),
textComponent: _propTypes.default.element,
title: _propTypes.default.string,
transform: _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.object, _propTypes.default.func]),
tspanComponent: _propTypes.default.element,
// @ts-expect-error Function is not assignable to string"
verticalAnchor: _propTypes.default.oneOfType([_propTypes.default.oneOf(["start", "middle", "end"]), _propTypes.default.func]),
// @ts-expect-error Number is not assignable to string
x: _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.string]),
// @ts-expect-error Number is not assignable to string
y: _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.string])
};
VictoryLabel.defaultStyles = defaultStyles;
import React from "react";
import PropTypes from "prop-types";
import { PortalContextValue } from "./portal-context";

@@ -13,9 +12,2 @@ export interface PortalProps {

static displayName: string;
static propTypes: {
className: PropTypes.Requireable<string>;
height: PropTypes.Requireable<number | undefined>;
style: PropTypes.Requireable<object>;
viewBox: PropTypes.Requireable<string>;
width: PropTypes.Requireable<number | undefined>;
};
private readonly map;

@@ -22,0 +14,0 @@ private index;

@@ -12,10 +12,2 @@ "use strict";

var _propTypes = _interopRequireDefault(require("prop-types"));
var CustomPropTypes = _interopRequireWildcard(require("../victory-util/prop-types"));
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

@@ -102,9 +94,2 @@

exports.Portal = Portal;
Portal.displayName = "Portal";
Portal.propTypes = {
className: _propTypes.default.string,
height: CustomPropTypes.nonNegative,
style: _propTypes.default.object,
viewBox: _propTypes.default.string,
width: CustomPropTypes.nonNegative
};
Portal.displayName = "Portal";
import React from "react";
import PropTypes from "prop-types";
import { PortalContext } from "./portal-context";

@@ -14,6 +13,2 @@ export interface VictoryPortalProps {

static role: string;
static propTypes: {
children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
groupComponent: PropTypes.Requireable<PropTypes.ReactElementLike>;
};
static defaultProps: {

@@ -20,0 +15,0 @@ groupComponent: JSX.Element;

@@ -12,4 +12,2 @@ "use strict";

var _propTypes = _interopRequireDefault(require("prop-types"));
var Log = _interopRequireWildcard(require("../victory-util/log"));

@@ -134,6 +132,2 @@

VictoryPortal.role = "portal";
VictoryPortal.propTypes = {
children: _propTypes.default.node,
groupComponent: _propTypes.default.element
};
VictoryPortal.defaultProps = {

@@ -140,0 +134,0 @@ groupComponent: /*#__PURE__*/_react.default.createElement("g", null)

import React from "react";
import PropTypes from "prop-types";
import { VictoryCommonPrimitiveProps } from "../victory-util/common-props";

@@ -15,33 +14,3 @@ export interface ArcProps extends VictoryCommonPrimitiveProps {

}
export declare const Arc: {
(initialProps: ArcProps): React.DetailedReactHTMLElement<any, HTMLElement>;
propTypes: {
closedPath: PropTypes.Requireable<boolean>;
cx: PropTypes.Requireable<number>;
cy: PropTypes.Requireable<number>;
datum: PropTypes.Requireable<any>;
endAngle: PropTypes.Requireable<number>;
pathComponent: PropTypes.Requireable<PropTypes.ReactElementLike>;
r: PropTypes.Requireable<number>;
startAngle: PropTypes.Requireable<number>;
active?: React.Validator<boolean | null | undefined> | undefined;
ariaLabel?: React.Validator<import("..").StringOrCallback | null | undefined> | undefined;
className?: React.Validator<string | null | undefined> | undefined;
clipPath?: React.Validator<string | null | undefined> | undefined;
data?: React.Validator<any> | undefined;
desc?: React.Validator<string | Function | null | undefined> | undefined;
disableInlineStyles?: React.Validator<boolean | null | undefined> | undefined;
events?: React.Validator<object | null | undefined> | undefined;
id?: React.Validator<string | number | Function | null | undefined> | undefined;
index?: React.Validator<string | number | null | undefined> | undefined;
origin?: React.Validator<import("..").OriginType | null | undefined> | undefined;
polar?: React.Validator<boolean | null | undefined> | undefined;
role?: React.Validator<string | null | undefined> | undefined;
scale?: React.Validator<any> | undefined;
shapeRendering?: React.Validator<string | null | undefined> | undefined;
style?: React.Validator<any> | undefined;
tabIndex?: React.Validator<import("..").NumberOrCallback | null | undefined> | undefined;
transform?: React.Validator<string | null | undefined> | undefined;
};
};
export declare const Arc: (initialProps: ArcProps) => React.DetailedReactHTMLElement<any, HTMLElement>;
//# sourceMappingURL=arc.d.ts.map

@@ -10,8 +10,4 @@ "use strict";

var _propTypes = _interopRequireDefault(require("prop-types"));
var Helpers = _interopRequireWildcard(require("../victory-util/helpers"));
var _commonProps = require("../victory-util/common-props");
var _path = require("./path");

@@ -103,12 +99,2 @@

exports.Arc = Arc;
Arc.propTypes = _objectSpread(_objectSpread({}, _commonProps.CommonProps.primitiveProps), {}, {
closedPath: _propTypes.default.bool,
cx: _propTypes.default.number,
cy: _propTypes.default.number,
datum: _propTypes.default.any,
endAngle: _propTypes.default.number,
pathComponent: _propTypes.default.element,
r: _propTypes.default.number,
startAngle: _propTypes.default.number
});
exports.Arc = Arc;
import React from "react";
import PropTypes from "prop-types";
import { VictoryCommonPrimitiveProps } from "../victory-util/common-props";

@@ -14,33 +13,3 @@ export interface BackgroundProps extends VictoryCommonPrimitiveProps {

}
export declare const Background: {
(initialProps: BackgroundProps): React.DetailedReactHTMLElement<any, HTMLElement>;
propTypes: {
circleComponent: PropTypes.Requireable<PropTypes.ReactElementLike>;
height: PropTypes.Requireable<number>;
rectComponent: PropTypes.Requireable<PropTypes.ReactElementLike>;
rx: PropTypes.Requireable<number>;
ry: PropTypes.Requireable<number>;
width: PropTypes.Requireable<number>;
x: PropTypes.Requireable<number>;
y: PropTypes.Requireable<number>;
active?: React.Validator<boolean | null | undefined> | undefined;
ariaLabel?: React.Validator<import("..").StringOrCallback | null | undefined> | undefined;
className?: React.Validator<string | null | undefined> | undefined;
clipPath?: React.Validator<string | null | undefined> | undefined;
data?: React.Validator<any> | undefined;
desc?: React.Validator<string | Function | null | undefined> | undefined;
disableInlineStyles?: React.Validator<boolean | null | undefined> | undefined;
events?: React.Validator<object | null | undefined> | undefined;
id?: React.Validator<string | number | Function | null | undefined> | undefined;
index?: React.Validator<string | number | null | undefined> | undefined;
origin?: React.Validator<import("..").OriginType | null | undefined> | undefined;
polar?: React.Validator<boolean | null | undefined> | undefined;
role?: React.Validator<string | null | undefined> | undefined;
scale?: React.Validator<any> | undefined;
shapeRendering?: React.Validator<string | null | undefined> | undefined;
style?: React.Validator<any> | undefined;
tabIndex?: React.Validator<import("..").NumberOrCallback | null | undefined> | undefined;
transform?: React.Validator<string | null | undefined> | undefined;
};
};
export declare const Background: (initialProps: BackgroundProps) => React.DetailedReactHTMLElement<any, HTMLElement>;
//# sourceMappingURL=background.d.ts.map

@@ -10,8 +10,4 @@ "use strict";

var _propTypes = _interopRequireDefault(require("prop-types"));
var Helpers = _interopRequireWildcard(require("../victory-util/helpers"));
var _commonProps = require("../victory-util/common-props");
var _rect = require("./rect");

@@ -75,12 +71,2 @@

exports.Background = Background;
Background.propTypes = _objectSpread(_objectSpread({}, _commonProps.CommonProps.primitiveProps), {}, {
circleComponent: _propTypes.default.element,
height: _propTypes.default.number,
rectComponent: _propTypes.default.element,
rx: _propTypes.default.number,
ry: _propTypes.default.number,
width: _propTypes.default.number,
x: _propTypes.default.number,
y: _propTypes.default.number
});
exports.Background = Background;
import React from "react";
import PropTypes from "prop-types";
import { VictoryCommonPrimitiveProps } from "../victory-util/common-props";

@@ -11,30 +10,3 @@ export interface BorderProps extends VictoryCommonPrimitiveProps {

}
export declare const Border: {
(initialProps: BorderProps): React.DetailedReactHTMLElement<any, HTMLElement>;
propTypes: {
height: PropTypes.Requireable<number>;
rectComponent: PropTypes.Requireable<PropTypes.ReactElementLike>;
width: PropTypes.Requireable<number>;
x: PropTypes.Requireable<number>;
y: PropTypes.Requireable<number>;
active?: React.Validator<boolean | null | undefined> | undefined;
ariaLabel?: React.Validator<import("..").StringOrCallback | null | undefined> | undefined;
className?: React.Validator<string | null | undefined> | undefined;
clipPath?: React.Validator<string | null | undefined> | undefined;
data?: React.Validator<any> | undefined;
desc?: React.Validator<string | Function | null | undefined> | undefined;
disableInlineStyles?: React.Validator<boolean | null | undefined> | undefined;
events?: React.Validator<object | null | undefined> | undefined;
id?: React.Validator<string | number | Function | null | undefined> | undefined;
index?: React.Validator<string | number | null | undefined> | undefined;
origin?: React.Validator<import("..").OriginType | null | undefined> | undefined;
polar?: React.Validator<boolean | null | undefined> | undefined;
role?: React.Validator<string | null | undefined> | undefined;
scale?: React.Validator<any> | undefined;
shapeRendering?: React.Validator<string | null | undefined> | undefined;
style?: React.Validator<any> | undefined;
tabIndex?: React.Validator<import("..").NumberOrCallback | null | undefined> | undefined;
transform?: React.Validator<string | null | undefined> | undefined;
};
};
export declare const Border: (initialProps: BorderProps) => React.DetailedReactHTMLElement<any, HTMLElement>;
//# sourceMappingURL=border.d.ts.map

@@ -10,8 +10,4 @@ "use strict";

var _propTypes = _interopRequireDefault(require("prop-types"));
var Helpers = _interopRequireWildcard(require("../victory-util/helpers"));
var _commonProps = require("../victory-util/common-props");
var _rect = require("./rect");

@@ -81,9 +77,2 @@

exports.Border = Border;
Border.propTypes = _objectSpread(_objectSpread({}, _commonProps.CommonProps.primitiveProps), {}, {
height: _propTypes.default.number,
rectComponent: _propTypes.default.element,
width: _propTypes.default.number,
x: _propTypes.default.number,
y: _propTypes.default.number
});
exports.Border = Border;
import React from "react";
import PropTypes from "prop-types";
import { VictoryCommonPrimitiveProps } from "../victory-util/common-props";

@@ -12,31 +11,3 @@ export interface LineSegmentProps extends VictoryCommonPrimitiveProps {

}
export declare const LineSegment: {
(initialProps: LineSegmentProps): React.DetailedReactHTMLElement<any, HTMLElement>;
propTypes: {
datum: PropTypes.Requireable<any>;
lineComponent: PropTypes.Requireable<PropTypes.ReactElementLike>;
x1: PropTypes.Requireable<number>;
x2: PropTypes.Requireable<number>;
y1: PropTypes.Requireable<number>;
y2: PropTypes.Requireable<number>;
active?: React.Validator<boolean | null | undefined> | undefined;
ariaLabel?: React.Validator<import("..").StringOrCallback | null | undefined> | undefined;
className?: React.Validator<string | null | undefined> | undefined;
clipPath?: React.Validator<string | null | undefined> | undefined;
data?: React.Validator<any> | undefined;
desc?: React.Validator<string | Function | null | undefined> | undefined;
disableInlineStyles?: React.Validator<boolean | null | undefined> | undefined;
events?: React.Validator<object | null | undefined> | undefined;
id?: React.Validator<string | number | Function | null | undefined> | undefined;
index?: React.Validator<string | number | null | undefined> | undefined;
origin?: React.Validator<import("..").OriginType | null | undefined> | undefined;
polar?: React.Validator<boolean | null | undefined> | undefined;
role?: React.Validator<string | null | undefined> | undefined;
scale?: React.Validator<any> | undefined;
shapeRendering?: React.Validator<string | null | undefined> | undefined;
style?: React.Validator<any> | undefined;
tabIndex?: React.Validator<import("..").NumberOrCallback | null | undefined> | undefined;
transform?: React.Validator<string | null | undefined> | undefined;
};
};
export declare const LineSegment: (initialProps: LineSegmentProps) => React.DetailedReactHTMLElement<any, HTMLElement>;
//# sourceMappingURL=line-segment.d.ts.map

@@ -10,8 +10,4 @@ "use strict";

var _propTypes = _interopRequireDefault(require("prop-types"));
var Helpers = _interopRequireWildcard(require("../victory-util/helpers"));
var _commonProps = require("../victory-util/common-props");
var _line = require("./line");

@@ -81,10 +77,2 @@

exports.LineSegment = LineSegment;
LineSegment.propTypes = _objectSpread(_objectSpread({}, _commonProps.CommonProps.primitiveProps), {}, {
datum: _propTypes.default.any,
lineComponent: _propTypes.default.element,
x1: _propTypes.default.number,
x2: _propTypes.default.number,
y1: _propTypes.default.number,
y2: _propTypes.default.number
});
exports.LineSegment = LineSegment;

@@ -1,2 +0,1 @@

import PropTypes from "prop-types";
import React from "react";

@@ -14,32 +13,3 @@ import { VictoryCommonPrimitiveProps } from "../victory-util/common-props";

}
export declare const Point: {
(initialProps: PointProps): React.DetailedReactHTMLElement<any, HTMLElement>;
propTypes: {
datum: PropTypes.Requireable<object>;
getPath: PropTypes.Requireable<(...args: any[]) => any>;
pathComponent: PropTypes.Requireable<PropTypes.ReactElementLike>;
size: PropTypes.Requireable<number | ((...args: any[]) => any)>;
symbol: PropTypes.Requireable<string | ((...args: any[]) => any)>;
x: PropTypes.Requireable<number>;
y: PropTypes.Requireable<number>;
active?: React.Validator<boolean | null | undefined> | undefined;
ariaLabel?: React.Validator<import("..").StringOrCallback | null | undefined> | undefined;
className?: React.Validator<string | null | undefined> | undefined;
clipPath?: React.Validator<string | null | undefined> | undefined;
data?: React.Validator<any> | undefined;
desc?: React.Validator<string | Function | null | undefined> | undefined;
disableInlineStyles?: React.Validator<boolean | null | undefined> | undefined;
events?: React.Validator<object | null | undefined> | undefined;
id?: React.Validator<string | number | Function | null | undefined> | undefined;
index?: React.Validator<string | number | null | undefined> | undefined;
origin?: React.Validator<import("..").OriginType | null | undefined> | undefined;
polar?: React.Validator<boolean | null | undefined> | undefined;
role?: React.Validator<string | null | undefined> | undefined;
scale?: React.Validator<any> | undefined;
shapeRendering?: React.Validator<string | null | undefined> | undefined;
style?: React.Validator<any> | undefined;
tabIndex?: React.Validator<import("..").NumberOrCallback | null | undefined> | undefined;
transform?: React.Validator<string | null | undefined> | undefined;
};
};
export declare const Point: (initialProps: PointProps) => React.DetailedReactHTMLElement<any, HTMLElement>;
//# sourceMappingURL=point.d.ts.map

@@ -8,4 +8,2 @@ "use strict";

var _propTypes = _interopRequireDefault(require("prop-types"));
var _react = _interopRequireDefault(require("react"));

@@ -17,4 +15,2 @@

var _commonProps = require("../victory-util/common-props");
var UserProps = _interopRequireWildcard(require("../victory-util/user-props"));

@@ -103,11 +99,2 @@

exports.Point = Point;
Point.propTypes = _objectSpread(_objectSpread({}, _commonProps.CommonProps.primitiveProps), {}, {
datum: _propTypes.default.object,
getPath: _propTypes.default.func,
pathComponent: _propTypes.default.element,
size: _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.func]),
symbol: _propTypes.default.oneOfType([_propTypes.default.oneOf(["circle", "cross", "diamond", "plus", "minus", "square", "star", "triangleDown", "triangleUp"]), _propTypes.default.func]),
x: _propTypes.default.number,
y: _propTypes.default.number
});
exports.Point = Point;
import React from "react";
import PropTypes from "prop-types";
import { VictoryCommonPrimitiveProps } from "../victory-util/common-props";

@@ -16,39 +15,3 @@ export declare type WhiskerAxes = {

}
export declare const Whisker: {
(initialProps: WhiskerProps): React.DetailedReactHTMLElement<{}, HTMLElement>;
propTypes: {
groupComponent: PropTypes.Requireable<PropTypes.ReactElementLike>;
lineComponent: PropTypes.Requireable<PropTypes.ReactElementLike>;
majorWhisker: PropTypes.Requireable<PropTypes.InferProps<{
x1: PropTypes.Requireable<number>;
x2: PropTypes.Requireable<number>;
y1: PropTypes.Requireable<number>;
y2: PropTypes.Requireable<number>;
}>>;
minorWhisker: PropTypes.Requireable<PropTypes.InferProps<{
x1: PropTypes.Requireable<number>;
x2: PropTypes.Requireable<number>;
y1: PropTypes.Requireable<number>;
y2: PropTypes.Requireable<number>;
}>>;
active?: React.Validator<boolean | null | undefined> | undefined;
ariaLabel?: React.Validator<import("..").StringOrCallback | null | undefined> | undefined;
className?: React.Validator<string | null | undefined> | undefined;
clipPath?: React.Validator<string | null | undefined> | undefined;
data?: React.Validator<any> | undefined;
desc?: React.Validator<string | Function | null | undefined> | undefined;
disableInlineStyles?: React.Validator<boolean | null | undefined> | undefined;
events?: React.Validator<object | null | undefined> | undefined;
id?: React.Validator<string | number | Function | null | undefined> | undefined;
index?: React.Validator<string | number | null | undefined> | undefined;
origin?: React.Validator<import("..").OriginType | null | undefined> | undefined;
polar?: React.Validator<boolean | null | undefined> | undefined;
role?: React.Validator<string | null | undefined> | undefined;
scale?: React.Validator<any> | undefined;
shapeRendering?: React.Validator<string | null | undefined> | undefined;
style?: React.Validator<any> | undefined;
tabIndex?: React.Validator<import("..").NumberOrCallback | null | undefined> | undefined;
transform?: React.Validator<string | null | undefined> | undefined;
};
};
export declare const Whisker: (initialProps: WhiskerProps) => React.DetailedReactHTMLElement<{}, HTMLElement>;
//# sourceMappingURL=whisker.d.ts.map

@@ -10,8 +10,4 @@ "use strict";

var _propTypes = _interopRequireDefault(require("prop-types"));
var Helpers = _interopRequireWildcard(require("../victory-util/helpers"));
var _commonProps = require("../victory-util/common-props");
var _line = require("./line");

@@ -98,18 +94,2 @@

exports.Whisker = Whisker;
Whisker.propTypes = _objectSpread(_objectSpread({}, _commonProps.CommonProps.primitiveProps), {}, {
groupComponent: _propTypes.default.element,
lineComponent: _propTypes.default.element,
majorWhisker: _propTypes.default.shape({
x1: _propTypes.default.number,
x2: _propTypes.default.number,
y1: _propTypes.default.number,
y2: _propTypes.default.number
}),
minorWhisker: _propTypes.default.shape({
x1: _propTypes.default.number,
x2: _propTypes.default.number,
y1: _propTypes.default.number,
y2: _propTypes.default.number
})
});
exports.Whisker = Whisker;
import React from "react";
import PropTypes from "prop-types";
import TimerContext from "../victory-util/timer-context";

@@ -36,7 +35,2 @@ import Timer from "../victory-util/timer";

static displayName: string;
static propTypes: {
animate: PropTypes.Requireable<boolean | object>;
animationWhitelist: PropTypes.Requireable<any[]>;
children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
};
static contextType: React.Context<{

@@ -43,0 +37,0 @@ transitionTimer: Timer;

@@ -16,4 +16,2 @@ "use strict";

var _propTypes = _interopRequireDefault(require("prop-types"));
var _victoryAnimation = require("../victory-animation/victory-animation");

@@ -260,7 +258,2 @@

VictoryTransition.displayName = "VictoryTransition";
VictoryTransition.propTypes = {
animate: _propTypes.default.oneOfType([_propTypes.default.bool, _propTypes.default.object]),
animationWhitelist: _propTypes.default.array,
children: _propTypes.default.node
};
VictoryTransition.contextType = _timerContext.default;

@@ -80,7 +80,2 @@ import * as React from "react";

}
export declare const CommonProps: {
dataProps: React.WeakValidationMap<VictoryDatableProps>;
baseProps: React.WeakValidationMap<VictoryCommonProps>;
primitiveProps: React.WeakValidationMap<VictoryCommonPrimitiveProps>;
};
//# sourceMappingURL=common-props.d.ts.map

@@ -1,148 +0,1 @@

"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.CommonProps = void 0;
var _propTypes = _interopRequireDefault(require("prop-types"));
var CustomPropTypes = _interopRequireWildcard(require("./prop-types"));
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
var dataProps = {
// @ts-expect-error TODO: synchronize the type with this PropTypes
categories: _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.string), _propTypes.default.shape({
x: _propTypes.default.arrayOf(_propTypes.default.string),
y: _propTypes.default.arrayOf(_propTypes.default.string)
})]),
// @ts-expect-error TODO: synchronize the type with this PropTypes
data: _propTypes.default.oneOfType([_propTypes.default.array, _propTypes.default.object]),
dataComponent: _propTypes.default.element,
disableInlineStyles: _propTypes.default.bool,
labelComponent: _propTypes.default.element,
labels: _propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.array]),
samples: CustomPropTypes.nonNegative,
sortKey: _propTypes.default.oneOfType([_propTypes.default.func, CustomPropTypes.allOfType([CustomPropTypes.integer, CustomPropTypes.nonNegative]), _propTypes.default.string, _propTypes.default.arrayOf(_propTypes.default.string.isRequired)]),
sortOrder: _propTypes.default.oneOf(["ascending", "descending"]),
style: _propTypes.default.shape({
parent: _propTypes.default.object,
data: _propTypes.default.object,
labels: _propTypes.default.object
}),
x: _propTypes.default.oneOfType([_propTypes.default.func, CustomPropTypes.allOfType([CustomPropTypes.integer, CustomPropTypes.nonNegative]), _propTypes.default.string, _propTypes.default.arrayOf(_propTypes.default.string.isRequired)]),
y: _propTypes.default.oneOfType([_propTypes.default.func, CustomPropTypes.allOfType([CustomPropTypes.integer, CustomPropTypes.nonNegative]), _propTypes.default.string, _propTypes.default.arrayOf(_propTypes.default.string.isRequired)]),
y0: _propTypes.default.oneOfType([_propTypes.default.func, CustomPropTypes.allOfType([CustomPropTypes.integer, CustomPropTypes.nonNegative]), _propTypes.default.string, _propTypes.default.arrayOf(_propTypes.default.string.isRequired)])
};
var baseProps = {
animate: _propTypes.default.oneOfType([_propTypes.default.bool, _propTypes.default.object]),
containerComponent: _propTypes.default.element,
domain: _propTypes.default.oneOfType([CustomPropTypes.domain, _propTypes.default.shape({
x: CustomPropTypes.domain,
y: CustomPropTypes.domain
})]),
// @ts-expect-error TODO: synchronize the type with this PropTypes
maxDomain: _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.instanceOf(Date), _propTypes.default.shape({
x: _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.instanceOf(Date)]),
y: _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.instanceOf(Date)])
})]),
// @ts-expect-error TODO: synchronize the type with this PropTypes
minDomain: _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.instanceOf(Date), _propTypes.default.shape({
x: _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.instanceOf(Date)]),
y: _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.instanceOf(Date)])
})]),
// @ts-expect-error TODO: synchronize the type with this PropTypes
domainPadding: _propTypes.default.oneOfType([_propTypes.default.shape({
x: _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.arrayOf(_propTypes.default.number)]),
y: _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.arrayOf(_propTypes.default.number)])
}), _propTypes.default.number, _propTypes.default.arrayOf(_propTypes.default.number)]),
eventKey: _propTypes.default.oneOfType([_propTypes.default.func, CustomPropTypes.allOfType([CustomPropTypes.integer, CustomPropTypes.nonNegative]), _propTypes.default.string]),
events: _propTypes.default.arrayOf(_propTypes.default.shape({
target: _propTypes.default.oneOf(["data", "labels", "parent"]),
eventKey: _propTypes.default.oneOfType([_propTypes.default.array, CustomPropTypes.allOfType([CustomPropTypes.integer, CustomPropTypes.nonNegative]), _propTypes.default.string]),
eventHandlers: _propTypes.default.object
})),
// @ts-expect-error TODO: synchronize the type with this PropTypes
externalEventMutations: _propTypes.default.arrayOf(_propTypes.default.shape({
callback: _propTypes.default.func,
childName: _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.array]),
eventKey: _propTypes.default.oneOfType([_propTypes.default.array, CustomPropTypes.allOfType([CustomPropTypes.integer, CustomPropTypes.nonNegative]), _propTypes.default.string]),
mutation: _propTypes.default.func,
target: _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.array])
})),
groupComponent: _propTypes.default.element,
height: CustomPropTypes.nonNegative,
name: _propTypes.default.string,
// @ts-expect-error TODO: synchronize the type with this PropTypes
origin: _propTypes.default.shape({
x: _propTypes.default.number,
y: _propTypes.default.number
}),
// @ts-expect-error TODO: synchronize the type with this PropTypes
padding: _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.shape({
top: _propTypes.default.number,
bottom: _propTypes.default.number,
left: _propTypes.default.number,
right: _propTypes.default.number
})]),
polar: _propTypes.default.bool,
range: _propTypes.default.oneOfType([CustomPropTypes.domain, _propTypes.default.shape({
x: CustomPropTypes.domain.isRequired,
y: CustomPropTypes.domain.isRequired
})]),
scale: _propTypes.default.oneOfType([CustomPropTypes.scale, _propTypes.default.shape({
x: CustomPropTypes.scale.isRequired,
y: CustomPropTypes.scale.isRequired
})]),
// @ts-expect-error TODO: synchronize the type with this PropTypes
sharedEvents: _propTypes.default.shape({
events: _propTypes.default.array,
getEventState: _propTypes.default.func
}),
// @ts-expect-error TODO: synchronize the type with this PropTypes
singleQuadrantDomainPadding: _propTypes.default.oneOfType([_propTypes.default.bool, _propTypes.default.shape({
x: _propTypes.default.oneOfType([_propTypes.default.bool]),
y: _propTypes.default.oneOfType([_propTypes.default.bool])
})]),
standalone: _propTypes.default.bool,
theme: _propTypes.default.object,
width: CustomPropTypes.nonNegative
};
var primitiveProps = {
active: _propTypes.default.bool,
ariaLabel: _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.func]),
className: _propTypes.default.string,
clipPath: _propTypes.default.string,
data: _propTypes.default.oneOfType([_propTypes.default.array, _propTypes.default.object]),
desc: _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.func]),
disableInlineStyles: _propTypes.default.bool,
events: _propTypes.default.object,
id: _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.string, _propTypes.default.func]),
index: _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.string]),
// @ts-expect-error TODO: synchronize the type with this PropTypes
origin: _propTypes.default.shape({
x: _propTypes.default.number,
y: _propTypes.default.number
}),
polar: _propTypes.default.bool,
role: _propTypes.default.string,
scale: _propTypes.default.oneOfType([CustomPropTypes.scale, _propTypes.default.shape({
x: CustomPropTypes.scale,
y: CustomPropTypes.scale
})]),
shapeRendering: _propTypes.default.string,
style: _propTypes.default.object,
tabIndex: _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.func]),
transform: _propTypes.default.string
};
var CommonProps = {
dataProps: dataProps,
baseProps: baseProps,
primitiveProps: primitiveProps
};
exports.CommonProps = CommonProps;
"use strict";

@@ -16,3 +16,2 @@ export * from "./add-events";

export * as PointPathHelpers from "./point-path-helpers";
export * as PropTypes from "./prop-types";
export * as Scale from "./scale";

@@ -19,0 +18,0 @@ export * as Selection from "./selection";

@@ -20,3 +20,2 @@ "use strict";

PointPathHelpers: true,
PropTypes: true,
Scale: true,

@@ -32,3 +31,3 @@ Selection: true,

};
exports.TextSize = exports.Style = exports.Selection = exports.Scale = exports.PropTypes = exports.PointPathHelpers = exports.Log = exports.LineHelpers = exports.LabelHelpers = exports.Immutable = exports.Hooks = exports.Helpers = exports.Events = exports.Domain = exports.DefaultTransitions = exports.Data = exports.Collection = exports.Axis = void 0;
exports.TextSize = exports.Style = exports.Selection = exports.Scale = exports.PointPathHelpers = exports.Log = exports.LineHelpers = exports.LabelHelpers = exports.Immutable = exports.Hooks = exports.Helpers = exports.Events = exports.Domain = exports.DefaultTransitions = exports.Data = exports.Collection = exports.Axis = void 0;
Object.defineProperty(exports, "Timer", {

@@ -128,6 +127,2 @@ enumerable: true,

var _PropTypes = _interopRequireWildcard(require("./prop-types"));
exports.PropTypes = _PropTypes;
var _Scale = _interopRequireWildcard(require("./scale"));

@@ -134,0 +129,0 @@

{
"name": "victory-core",
"version": "36.8.6",
"version": "36.9.0",
"description": "Victory Core",

@@ -24,5 +24,4 @@ "keywords": [

"lodash": "^4.17.21",
"prop-types": "^15.8.1",
"react-fast-compare": "^3.2.0",
"victory-vendor": "^36.8.6"
"victory-vendor": "^36.9.0"
},

@@ -29,0 +28,0 @@ "peerDependencies": {

@@ -16,3 +16,2 @@ export * from "./add-events";

export * as PointPathHelpers from "./point-path-helpers";
export * as PropTypes from "./prop-types";
export * as Scale from "./scale";

@@ -19,0 +18,0 @@ export * as Selection from "./selection";

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc