victory-legend 36.9.0 → 36.9.1-next.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # victory-legend
2
2
 
3
+ ## 36.9.1-next.0
4
+
5
+ ### Patch Changes
6
+
7
+ - victory-core@36.9.1-next.0
8
+
3
9
  ## 36.9.0
4
10
 
5
11
  ### Minor Changes
@@ -1,6 +1,6 @@
1
- export declare const getDimensions: (initialProps: any, fallbackProps: any) => {
2
- height: number;
3
- width: number;
4
- };
5
- export declare const getBaseProps: (initialProps: any, fallbackProps: any) => any;
1
+ export declare const getDimensions: (initialProps: any, fallbackProps: any) => {
2
+ height: number;
3
+ width: number;
4
+ };
5
+ export declare const getBaseProps: (initialProps: any, fallbackProps: any) => any;
6
6
  //# sourceMappingURL=helper-methods.d.ts.map
package/es/index.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export * from "./victory-legend";
1
+ export * from "./victory-legend";
2
2
  //# sourceMappingURL=index.d.ts.map
@@ -1,114 +1,114 @@
1
- import React from "react";
2
- import { BlockProps, ColorScalePropType, EventPropTypeInterface, OrientationTypes, PaddingProps, StringOrNumberOrCallback, VictoryCommonProps, VictoryDatableProps, VictorySingleLabelableProps, VictoryStyleInterface, VictoryLabelStyleObject, EventsMixinClass } from "victory-core";
3
- export declare type VictoryLegendTTargetType = "data" | "labels" | "parent";
4
- export declare type VictoryLegendOrientationType = "horizontal" | "vertical";
5
- export interface VictoryLegendProps extends VictoryCommonProps, VictoryDatableProps, VictorySingleLabelableProps {
6
- borderComponent?: React.ReactElement;
7
- borderPadding?: PaddingProps;
8
- centerTitle?: boolean;
9
- colorScale?: ColorScalePropType;
10
- dataComponent?: React.ReactElement;
11
- eventKey?: StringOrNumberOrCallback | string[];
12
- events?: EventPropTypeInterface<VictoryLegendTTargetType, StringOrNumberOrCallback>[];
13
- gutter?: number | {
14
- left: number;
15
- right: number;
16
- };
17
- itemsPerRow?: number;
18
- orientation?: VictoryLegendOrientationType;
19
- rowGutter?: number | Omit<BlockProps, "left" | "right">;
20
- style?: VictoryStyleInterface & {
21
- title?: VictoryLabelStyleObject | VictoryLabelStyleObject[];
22
- };
23
- symbolSpacer?: number;
24
- title?: string | string[];
25
- titleComponent?: React.ReactElement;
26
- titleOrientation?: OrientationTypes;
27
- }
28
- interface VictoryLegendBase extends EventsMixinClass<VictoryLegendProps> {
29
- }
30
- declare class VictoryLegendBase extends React.Component<VictoryLegendProps> {
31
- static displayName: string;
32
- static role: string;
33
- static defaultProps: {
34
- borderComponent: JSX.Element;
35
- data: {
36
- name: string;
37
- }[];
38
- containerComponent: JSX.Element;
39
- dataComponent: JSX.Element;
40
- groupComponent: JSX.Element;
41
- labelComponent: JSX.Element;
42
- standalone: boolean;
43
- theme: import("victory-core").VictoryThemeDefinition;
44
- titleComponent: JSX.Element;
45
- };
46
- static getBaseProps: (props: VictoryLegendProps) => any;
47
- static getDimensions: (props: VictoryLegendProps) => {
48
- height: number;
49
- width: number;
50
- };
51
- static expectedComponents: string[];
52
- renderChildren(props: VictoryLegendProps): React.ReactElement<any, string | React.JSXElementConstructor<any>>[];
53
- render(): React.ReactElement;
54
- }
55
- export declare const VictoryLegend: {
56
- new (props: import("victory-core").EventMixinCommonProps): {
57
- state: {};
58
- getEventState: (eventKey: string | number, namespace: string, childType?: string | undefined) => any;
59
- getScopedEvents: (events: any, namespace: any, childType: any, baseProps: any) => {};
60
- getEvents: (p: any, target: any, eventKey: any) => any;
61
- externalMutations: {} | undefined;
62
- calculatedState: {};
63
- globalEvents: {};
64
- prevGlobalEventKeys: string[];
65
- boundGlobalEvents: {};
66
- shouldComponentUpdate(nextProps: import("victory-core").EventMixinCommonProps): boolean;
67
- componentDidMount(): void;
68
- componentDidUpdate(prevProps: any): void;
69
- componentWillUnmount(): void;
70
- addGlobalListener(key: any): void;
71
- removeGlobalListener(key: any): void;
72
- getStateChanges(props: any): {};
73
- applyExternalMutations(props: any, externalMutations: any): void;
74
- getCalculatedValues(props: any): import("victory-core").EventMixinCalculatedValues;
75
- getExternalMutations(props: import("victory-core").EventMixinCommonProps): {} | undefined;
76
- cacheValues(obj: any): void;
77
- getBaseProps(props: any, getSharedEventState: any): Record<string, object>;
78
- getAllEvents(props: any): any;
79
- getComponentProps(component: React.ReactNode, type: string, index: string | number): any;
80
- renderContainer(component: any, children: any): React.DetailedReactHTMLElement<any, HTMLElement>;
81
- animateComponent(props: import("victory-core").EventMixinCommonProps, defaultAnimationWhitelist: string[]): React.ReactElement<any, string | React.JSXElementConstructor<any>>;
82
- renderContinuousData(props: import("victory-core").EventMixinCommonProps): React.DetailedReactHTMLElement<any, HTMLElement>;
83
- renderData(props: any, shouldRenderDatum?: ((datum: any) => boolean) | undefined): React.DetailedReactHTMLElement<any, HTMLElement>;
84
- context: unknown;
85
- setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<import("victory-core").EventMixinCommonProps>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
86
- forceUpdate(callback?: (() => void) | undefined): void;
87
- render(): React.ReactNode;
88
- readonly props: Readonly<import("victory-core").EventMixinCommonProps>;
89
- refs: {
90
- [key: string]: React.ReactInstance;
91
- };
92
- componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
93
- getSnapshotBeforeUpdate?(prevProps: Readonly<import("victory-core").EventMixinCommonProps>, prevState: Readonly<{}>): any;
94
- componentWillMount?(): void;
95
- UNSAFE_componentWillMount?(): void;
96
- componentWillReceiveProps?(nextProps: Readonly<import("victory-core").EventMixinCommonProps>, nextContext: any): void;
97
- UNSAFE_componentWillReceiveProps?(nextProps: Readonly<import("victory-core").EventMixinCommonProps>, nextContext: any): void;
98
- componentWillUpdate?(nextProps: Readonly<import("victory-core").EventMixinCommonProps>, nextState: Readonly<{}>, nextContext: any): void;
99
- UNSAFE_componentWillUpdate?(nextProps: Readonly<import("victory-core").EventMixinCommonProps>, nextState: Readonly<{}>, nextContext: any): void;
100
- componentEvents: import("victory-core/lib/victory-util/events").ComponentEvent[];
101
- getSharedEventState: (key: string, value: string) => unknown;
102
- baseProps: Record<string, object>;
103
- dataKeys: string[];
104
- hasEvents: unknown;
105
- events: unknown;
106
- };
107
- getBaseProps?(props: import("victory-core").EventMixinCommonProps): Record<string, object>;
108
- role?: string | undefined;
109
- expectedComponents?: string[] | undefined;
110
- getChildren?: ((props: import("victory-core").EventMixinCommonProps, childComponents?: React.ReactNode[] | undefined, calculatedProps?: import("victory-core").EventMixinCommonProps | undefined) => void) | undefined;
111
- animationWhitelist?: string[] | undefined;
112
- } & typeof VictoryLegendBase;
113
- export {};
1
+ import React from "react";
2
+ import { BlockProps, ColorScalePropType, EventPropTypeInterface, OrientationTypes, PaddingProps, StringOrNumberOrCallback, VictoryCommonProps, VictoryDatableProps, VictorySingleLabelableProps, VictoryStyleInterface, VictoryLabelStyleObject, EventsMixinClass } from "victory-core";
3
+ export declare type VictoryLegendTTargetType = "data" | "labels" | "parent";
4
+ export declare type VictoryLegendOrientationType = "horizontal" | "vertical";
5
+ export interface VictoryLegendProps extends VictoryCommonProps, VictoryDatableProps, VictorySingleLabelableProps {
6
+ borderComponent?: React.ReactElement;
7
+ borderPadding?: PaddingProps;
8
+ centerTitle?: boolean;
9
+ colorScale?: ColorScalePropType;
10
+ dataComponent?: React.ReactElement;
11
+ eventKey?: StringOrNumberOrCallback | string[];
12
+ events?: EventPropTypeInterface<VictoryLegendTTargetType, StringOrNumberOrCallback>[];
13
+ gutter?: number | {
14
+ left: number;
15
+ right: number;
16
+ };
17
+ itemsPerRow?: number;
18
+ orientation?: VictoryLegendOrientationType;
19
+ rowGutter?: number | Omit<BlockProps, "left" | "right">;
20
+ style?: VictoryStyleInterface & {
21
+ title?: VictoryLabelStyleObject | VictoryLabelStyleObject[];
22
+ };
23
+ symbolSpacer?: number;
24
+ title?: string | string[];
25
+ titleComponent?: React.ReactElement;
26
+ titleOrientation?: OrientationTypes;
27
+ }
28
+ interface VictoryLegendBase extends EventsMixinClass<VictoryLegendProps> {
29
+ }
30
+ declare class VictoryLegendBase extends React.Component<VictoryLegendProps> {
31
+ static displayName: string;
32
+ static role: string;
33
+ static defaultProps: {
34
+ borderComponent: JSX.Element;
35
+ data: {
36
+ name: string;
37
+ }[];
38
+ containerComponent: JSX.Element;
39
+ dataComponent: JSX.Element;
40
+ groupComponent: JSX.Element;
41
+ labelComponent: JSX.Element;
42
+ standalone: boolean;
43
+ theme: import("victory-core").VictoryThemeDefinition;
44
+ titleComponent: JSX.Element;
45
+ };
46
+ static getBaseProps: (props: VictoryLegendProps) => any;
47
+ static getDimensions: (props: VictoryLegendProps) => {
48
+ height: number;
49
+ width: number;
50
+ };
51
+ static expectedComponents: string[];
52
+ renderChildren(props: VictoryLegendProps): React.ReactElement<any, string | React.JSXElementConstructor<any>>[];
53
+ render(): React.ReactElement;
54
+ }
55
+ export declare const VictoryLegend: {
56
+ new (props: import("victory-core").EventMixinCommonProps): {
57
+ state: {};
58
+ getEventState: (eventKey: string | number, namespace: string, childType?: string | undefined) => any;
59
+ getScopedEvents: (events: any, namespace: any, childType: any, baseProps: any) => {};
60
+ getEvents: (p: any, target: any, eventKey: any) => any;
61
+ externalMutations: {} | undefined;
62
+ calculatedState: {};
63
+ globalEvents: {};
64
+ prevGlobalEventKeys: string[];
65
+ boundGlobalEvents: {};
66
+ shouldComponentUpdate(nextProps: import("victory-core").EventMixinCommonProps): boolean;
67
+ componentDidMount(): void;
68
+ componentDidUpdate(prevProps: any): void;
69
+ componentWillUnmount(): void;
70
+ addGlobalListener(key: any): void;
71
+ removeGlobalListener(key: any): void;
72
+ getStateChanges(props: any): {};
73
+ applyExternalMutations(props: any, externalMutations: any): void;
74
+ getCalculatedValues(props: any): import("victory-core").EventMixinCalculatedValues;
75
+ getExternalMutations(props: import("victory-core").EventMixinCommonProps): {} | undefined;
76
+ cacheValues(obj: any): void;
77
+ getBaseProps(props: any, getSharedEventState: any): Record<string, object>;
78
+ getAllEvents(props: any): any;
79
+ getComponentProps(component: React.ReactNode, type: string, index: string | number): any;
80
+ renderContainer(component: any, children: any): React.DetailedReactHTMLElement<any, HTMLElement>;
81
+ animateComponent(props: import("victory-core").EventMixinCommonProps, defaultAnimationWhitelist: string[]): React.ReactElement<any, string | React.JSXElementConstructor<any>>;
82
+ renderContinuousData(props: import("victory-core").EventMixinCommonProps): React.DetailedReactHTMLElement<any, HTMLElement>;
83
+ renderData(props: any, shouldRenderDatum?: ((datum: any) => boolean) | undefined): React.DetailedReactHTMLElement<any, HTMLElement>;
84
+ context: unknown;
85
+ setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<import("victory-core").EventMixinCommonProps>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
86
+ forceUpdate(callback?: (() => void) | undefined): void;
87
+ render(): React.ReactNode;
88
+ readonly props: Readonly<import("victory-core").EventMixinCommonProps>;
89
+ refs: {
90
+ [key: string]: React.ReactInstance;
91
+ };
92
+ componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
93
+ getSnapshotBeforeUpdate?(prevProps: Readonly<import("victory-core").EventMixinCommonProps>, prevState: Readonly<{}>): any;
94
+ componentWillMount?(): void;
95
+ UNSAFE_componentWillMount?(): void;
96
+ componentWillReceiveProps?(nextProps: Readonly<import("victory-core").EventMixinCommonProps>, nextContext: any): void;
97
+ UNSAFE_componentWillReceiveProps?(nextProps: Readonly<import("victory-core").EventMixinCommonProps>, nextContext: any): void;
98
+ componentWillUpdate?(nextProps: Readonly<import("victory-core").EventMixinCommonProps>, nextState: Readonly<{}>, nextContext: any): void;
99
+ UNSAFE_componentWillUpdate?(nextProps: Readonly<import("victory-core").EventMixinCommonProps>, nextState: Readonly<{}>, nextContext: any): void;
100
+ componentEvents: import("victory-core/lib/victory-util/events").ComponentEvent[];
101
+ getSharedEventState: (key: string, value: string) => unknown;
102
+ baseProps: Record<string, object>;
103
+ dataKeys: string[];
104
+ hasEvents: unknown;
105
+ events: unknown;
106
+ };
107
+ getBaseProps?(props: import("victory-core").EventMixinCommonProps): Record<string, object>;
108
+ role?: string | undefined;
109
+ expectedComponents?: string[] | undefined;
110
+ getChildren?: ((props: import("victory-core").EventMixinCommonProps, childComponents?: React.ReactNode[] | undefined, calculatedProps?: import("victory-core").EventMixinCommonProps | undefined) => void) | undefined;
111
+ animationWhitelist?: string[] | undefined;
112
+ } & typeof VictoryLegendBase;
113
+ export {};
114
114
  //# sourceMappingURL=victory-legend.d.ts.map
@@ -1,6 +1,6 @@
1
- export declare const getDimensions: (initialProps: any, fallbackProps: any) => {
2
- height: number;
3
- width: number;
4
- };
5
- export declare const getBaseProps: (initialProps: any, fallbackProps: any) => any;
1
+ export declare const getDimensions: (initialProps: any, fallbackProps: any) => {
2
+ height: number;
3
+ width: number;
4
+ };
5
+ export declare const getBaseProps: (initialProps: any, fallbackProps: any) => any;
6
6
  //# sourceMappingURL=helper-methods.d.ts.map
package/lib/index.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export * from "./victory-legend";
1
+ export * from "./victory-legend";
2
2
  //# sourceMappingURL=index.d.ts.map
@@ -1,114 +1,114 @@
1
- import React from "react";
2
- import { BlockProps, ColorScalePropType, EventPropTypeInterface, OrientationTypes, PaddingProps, StringOrNumberOrCallback, VictoryCommonProps, VictoryDatableProps, VictorySingleLabelableProps, VictoryStyleInterface, VictoryLabelStyleObject, EventsMixinClass } from "victory-core";
3
- export declare type VictoryLegendTTargetType = "data" | "labels" | "parent";
4
- export declare type VictoryLegendOrientationType = "horizontal" | "vertical";
5
- export interface VictoryLegendProps extends VictoryCommonProps, VictoryDatableProps, VictorySingleLabelableProps {
6
- borderComponent?: React.ReactElement;
7
- borderPadding?: PaddingProps;
8
- centerTitle?: boolean;
9
- colorScale?: ColorScalePropType;
10
- dataComponent?: React.ReactElement;
11
- eventKey?: StringOrNumberOrCallback | string[];
12
- events?: EventPropTypeInterface<VictoryLegendTTargetType, StringOrNumberOrCallback>[];
13
- gutter?: number | {
14
- left: number;
15
- right: number;
16
- };
17
- itemsPerRow?: number;
18
- orientation?: VictoryLegendOrientationType;
19
- rowGutter?: number | Omit<BlockProps, "left" | "right">;
20
- style?: VictoryStyleInterface & {
21
- title?: VictoryLabelStyleObject | VictoryLabelStyleObject[];
22
- };
23
- symbolSpacer?: number;
24
- title?: string | string[];
25
- titleComponent?: React.ReactElement;
26
- titleOrientation?: OrientationTypes;
27
- }
28
- interface VictoryLegendBase extends EventsMixinClass<VictoryLegendProps> {
29
- }
30
- declare class VictoryLegendBase extends React.Component<VictoryLegendProps> {
31
- static displayName: string;
32
- static role: string;
33
- static defaultProps: {
34
- borderComponent: JSX.Element;
35
- data: {
36
- name: string;
37
- }[];
38
- containerComponent: JSX.Element;
39
- dataComponent: JSX.Element;
40
- groupComponent: JSX.Element;
41
- labelComponent: JSX.Element;
42
- standalone: boolean;
43
- theme: import("victory-core").VictoryThemeDefinition;
44
- titleComponent: JSX.Element;
45
- };
46
- static getBaseProps: (props: VictoryLegendProps) => any;
47
- static getDimensions: (props: VictoryLegendProps) => {
48
- height: number;
49
- width: number;
50
- };
51
- static expectedComponents: string[];
52
- renderChildren(props: VictoryLegendProps): React.ReactElement<any, string | React.JSXElementConstructor<any>>[];
53
- render(): React.ReactElement;
54
- }
55
- export declare const VictoryLegend: {
56
- new (props: import("victory-core").EventMixinCommonProps): {
57
- state: {};
58
- getEventState: (eventKey: string | number, namespace: string, childType?: string | undefined) => any;
59
- getScopedEvents: (events: any, namespace: any, childType: any, baseProps: any) => {};
60
- getEvents: (p: any, target: any, eventKey: any) => any;
61
- externalMutations: {} | undefined;
62
- calculatedState: {};
63
- globalEvents: {};
64
- prevGlobalEventKeys: string[];
65
- boundGlobalEvents: {};
66
- shouldComponentUpdate(nextProps: import("victory-core").EventMixinCommonProps): boolean;
67
- componentDidMount(): void;
68
- componentDidUpdate(prevProps: any): void;
69
- componentWillUnmount(): void;
70
- addGlobalListener(key: any): void;
71
- removeGlobalListener(key: any): void;
72
- getStateChanges(props: any): {};
73
- applyExternalMutations(props: any, externalMutations: any): void;
74
- getCalculatedValues(props: any): import("victory-core").EventMixinCalculatedValues;
75
- getExternalMutations(props: import("victory-core").EventMixinCommonProps): {} | undefined;
76
- cacheValues(obj: any): void;
77
- getBaseProps(props: any, getSharedEventState: any): Record<string, object>;
78
- getAllEvents(props: any): any;
79
- getComponentProps(component: React.ReactNode, type: string, index: string | number): any;
80
- renderContainer(component: any, children: any): React.DetailedReactHTMLElement<any, HTMLElement>;
81
- animateComponent(props: import("victory-core").EventMixinCommonProps, defaultAnimationWhitelist: string[]): React.ReactElement<any, string | React.JSXElementConstructor<any>>;
82
- renderContinuousData(props: import("victory-core").EventMixinCommonProps): React.DetailedReactHTMLElement<any, HTMLElement>;
83
- renderData(props: any, shouldRenderDatum?: ((datum: any) => boolean) | undefined): React.DetailedReactHTMLElement<any, HTMLElement>;
84
- context: unknown;
85
- setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<import("victory-core").EventMixinCommonProps>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
86
- forceUpdate(callback?: (() => void) | undefined): void;
87
- render(): React.ReactNode;
88
- readonly props: Readonly<import("victory-core").EventMixinCommonProps>;
89
- refs: {
90
- [key: string]: React.ReactInstance;
91
- };
92
- componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
93
- getSnapshotBeforeUpdate?(prevProps: Readonly<import("victory-core").EventMixinCommonProps>, prevState: Readonly<{}>): any;
94
- componentWillMount?(): void;
95
- UNSAFE_componentWillMount?(): void;
96
- componentWillReceiveProps?(nextProps: Readonly<import("victory-core").EventMixinCommonProps>, nextContext: any): void;
97
- UNSAFE_componentWillReceiveProps?(nextProps: Readonly<import("victory-core").EventMixinCommonProps>, nextContext: any): void;
98
- componentWillUpdate?(nextProps: Readonly<import("victory-core").EventMixinCommonProps>, nextState: Readonly<{}>, nextContext: any): void;
99
- UNSAFE_componentWillUpdate?(nextProps: Readonly<import("victory-core").EventMixinCommonProps>, nextState: Readonly<{}>, nextContext: any): void;
100
- componentEvents: import("victory-core/lib/victory-util/events").ComponentEvent[];
101
- getSharedEventState: (key: string, value: string) => unknown;
102
- baseProps: Record<string, object>;
103
- dataKeys: string[];
104
- hasEvents: unknown;
105
- events: unknown;
106
- };
107
- getBaseProps?(props: import("victory-core").EventMixinCommonProps): Record<string, object>;
108
- role?: string | undefined;
109
- expectedComponents?: string[] | undefined;
110
- getChildren?: ((props: import("victory-core").EventMixinCommonProps, childComponents?: React.ReactNode[] | undefined, calculatedProps?: import("victory-core").EventMixinCommonProps | undefined) => void) | undefined;
111
- animationWhitelist?: string[] | undefined;
112
- } & typeof VictoryLegendBase;
113
- export {};
1
+ import React from "react";
2
+ import { BlockProps, ColorScalePropType, EventPropTypeInterface, OrientationTypes, PaddingProps, StringOrNumberOrCallback, VictoryCommonProps, VictoryDatableProps, VictorySingleLabelableProps, VictoryStyleInterface, VictoryLabelStyleObject, EventsMixinClass } from "victory-core";
3
+ export declare type VictoryLegendTTargetType = "data" | "labels" | "parent";
4
+ export declare type VictoryLegendOrientationType = "horizontal" | "vertical";
5
+ export interface VictoryLegendProps extends VictoryCommonProps, VictoryDatableProps, VictorySingleLabelableProps {
6
+ borderComponent?: React.ReactElement;
7
+ borderPadding?: PaddingProps;
8
+ centerTitle?: boolean;
9
+ colorScale?: ColorScalePropType;
10
+ dataComponent?: React.ReactElement;
11
+ eventKey?: StringOrNumberOrCallback | string[];
12
+ events?: EventPropTypeInterface<VictoryLegendTTargetType, StringOrNumberOrCallback>[];
13
+ gutter?: number | {
14
+ left: number;
15
+ right: number;
16
+ };
17
+ itemsPerRow?: number;
18
+ orientation?: VictoryLegendOrientationType;
19
+ rowGutter?: number | Omit<BlockProps, "left" | "right">;
20
+ style?: VictoryStyleInterface & {
21
+ title?: VictoryLabelStyleObject | VictoryLabelStyleObject[];
22
+ };
23
+ symbolSpacer?: number;
24
+ title?: string | string[];
25
+ titleComponent?: React.ReactElement;
26
+ titleOrientation?: OrientationTypes;
27
+ }
28
+ interface VictoryLegendBase extends EventsMixinClass<VictoryLegendProps> {
29
+ }
30
+ declare class VictoryLegendBase extends React.Component<VictoryLegendProps> {
31
+ static displayName: string;
32
+ static role: string;
33
+ static defaultProps: {
34
+ borderComponent: JSX.Element;
35
+ data: {
36
+ name: string;
37
+ }[];
38
+ containerComponent: JSX.Element;
39
+ dataComponent: JSX.Element;
40
+ groupComponent: JSX.Element;
41
+ labelComponent: JSX.Element;
42
+ standalone: boolean;
43
+ theme: import("victory-core").VictoryThemeDefinition;
44
+ titleComponent: JSX.Element;
45
+ };
46
+ static getBaseProps: (props: VictoryLegendProps) => any;
47
+ static getDimensions: (props: VictoryLegendProps) => {
48
+ height: number;
49
+ width: number;
50
+ };
51
+ static expectedComponents: string[];
52
+ renderChildren(props: VictoryLegendProps): React.ReactElement<any, string | React.JSXElementConstructor<any>>[];
53
+ render(): React.ReactElement;
54
+ }
55
+ export declare const VictoryLegend: {
56
+ new (props: import("victory-core").EventMixinCommonProps): {
57
+ state: {};
58
+ getEventState: (eventKey: string | number, namespace: string, childType?: string | undefined) => any;
59
+ getScopedEvents: (events: any, namespace: any, childType: any, baseProps: any) => {};
60
+ getEvents: (p: any, target: any, eventKey: any) => any;
61
+ externalMutations: {} | undefined;
62
+ calculatedState: {};
63
+ globalEvents: {};
64
+ prevGlobalEventKeys: string[];
65
+ boundGlobalEvents: {};
66
+ shouldComponentUpdate(nextProps: import("victory-core").EventMixinCommonProps): boolean;
67
+ componentDidMount(): void;
68
+ componentDidUpdate(prevProps: any): void;
69
+ componentWillUnmount(): void;
70
+ addGlobalListener(key: any): void;
71
+ removeGlobalListener(key: any): void;
72
+ getStateChanges(props: any): {};
73
+ applyExternalMutations(props: any, externalMutations: any): void;
74
+ getCalculatedValues(props: any): import("victory-core").EventMixinCalculatedValues;
75
+ getExternalMutations(props: import("victory-core").EventMixinCommonProps): {} | undefined;
76
+ cacheValues(obj: any): void;
77
+ getBaseProps(props: any, getSharedEventState: any): Record<string, object>;
78
+ getAllEvents(props: any): any;
79
+ getComponentProps(component: React.ReactNode, type: string, index: string | number): any;
80
+ renderContainer(component: any, children: any): React.DetailedReactHTMLElement<any, HTMLElement>;
81
+ animateComponent(props: import("victory-core").EventMixinCommonProps, defaultAnimationWhitelist: string[]): React.ReactElement<any, string | React.JSXElementConstructor<any>>;
82
+ renderContinuousData(props: import("victory-core").EventMixinCommonProps): React.DetailedReactHTMLElement<any, HTMLElement>;
83
+ renderData(props: any, shouldRenderDatum?: ((datum: any) => boolean) | undefined): React.DetailedReactHTMLElement<any, HTMLElement>;
84
+ context: unknown;
85
+ setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<import("victory-core").EventMixinCommonProps>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
86
+ forceUpdate(callback?: (() => void) | undefined): void;
87
+ render(): React.ReactNode;
88
+ readonly props: Readonly<import("victory-core").EventMixinCommonProps>;
89
+ refs: {
90
+ [key: string]: React.ReactInstance;
91
+ };
92
+ componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
93
+ getSnapshotBeforeUpdate?(prevProps: Readonly<import("victory-core").EventMixinCommonProps>, prevState: Readonly<{}>): any;
94
+ componentWillMount?(): void;
95
+ UNSAFE_componentWillMount?(): void;
96
+ componentWillReceiveProps?(nextProps: Readonly<import("victory-core").EventMixinCommonProps>, nextContext: any): void;
97
+ UNSAFE_componentWillReceiveProps?(nextProps: Readonly<import("victory-core").EventMixinCommonProps>, nextContext: any): void;
98
+ componentWillUpdate?(nextProps: Readonly<import("victory-core").EventMixinCommonProps>, nextState: Readonly<{}>, nextContext: any): void;
99
+ UNSAFE_componentWillUpdate?(nextProps: Readonly<import("victory-core").EventMixinCommonProps>, nextState: Readonly<{}>, nextContext: any): void;
100
+ componentEvents: import("victory-core/lib/victory-util/events").ComponentEvent[];
101
+ getSharedEventState: (key: string, value: string) => unknown;
102
+ baseProps: Record<string, object>;
103
+ dataKeys: string[];
104
+ hasEvents: unknown;
105
+ events: unknown;
106
+ };
107
+ getBaseProps?(props: import("victory-core").EventMixinCommonProps): Record<string, object>;
108
+ role?: string | undefined;
109
+ expectedComponents?: string[] | undefined;
110
+ getChildren?: ((props: import("victory-core").EventMixinCommonProps, childComponents?: React.ReactNode[] | undefined, calculatedProps?: import("victory-core").EventMixinCommonProps | undefined) => void) | undefined;
111
+ animationWhitelist?: string[] | undefined;
112
+ } & typeof VictoryLegendBase;
113
+ export {};
114
114
  //# sourceMappingURL=victory-legend.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "victory-legend",
3
- "version": "36.9.0",
3
+ "version": "36.9.1-next.0",
4
4
  "description": "Legend Component for Victory",
5
5
  "keywords": [
6
6
  "data visualization",
@@ -21,16 +21,13 @@
21
21
  "license": "MIT",
22
22
  "dependencies": {
23
23
  "lodash": "^4.17.19",
24
- "victory-core": "^36.9.0"
24
+ "victory-core": "^36.9.1-next.0"
25
25
  },
26
26
  "peerDependencies": {
27
27
  "react": ">=16.6.0"
28
28
  },
29
29
  "devDependencies": {
30
- "victory-legend": "*"
31
- },
32
- "publishConfig": {
33
- "provenance": true
30
+ "victory-legend": "36.9.1-next.0"
34
31
  },
35
32
  "wireit": {
36
33
  "### THESE WIREIT CONFIGS ARE GENERATED ####": {},