@react-magma/charts 12.0.1-next.0 → 12.0.1-next.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (50) hide show
  1. package/dist/charts.js +2450 -1
  2. package/dist/charts.js.map +1 -1
  3. package/dist/charts.modern.module.js +2428 -1
  4. package/dist/charts.modern.module.js.map +1 -1
  5. package/dist/charts.umd.js +48555 -1
  6. package/dist/charts.umd.js.map +1 -1
  7. package/dist/components/CarbonChart/CarbonChart.d.ts +42 -41
  8. package/dist/components/CarbonChart/CarbonChartArea.stories.d.ts +310 -310
  9. package/dist/components/CarbonChart/CarbonChartAreaStacked.stories.d.ts +136 -136
  10. package/dist/components/CarbonChart/CarbonChartBar.stories.d.ts +214 -214
  11. package/dist/components/CarbonChart/CarbonChartBarFloating.stories.d.ts +82 -82
  12. package/dist/components/CarbonChart/CarbonChartBarGrouped.stories.d.ts +234 -234
  13. package/dist/components/CarbonChart/CarbonChartBarStacked.stories.d.ts +266 -266
  14. package/dist/components/CarbonChart/CarbonChartBoxplot.stories.d.ts +53 -53
  15. package/dist/components/CarbonChart/CarbonChartBubble.stories.d.ts +196 -196
  16. package/dist/components/CarbonChart/CarbonChartBullet.stories.d.ts +35 -35
  17. package/dist/components/CarbonChart/CarbonChartCombo.stories.d.ts +580 -580
  18. package/dist/components/CarbonChart/CarbonChartDonut.stories.d.ts +120 -120
  19. package/dist/components/CarbonChart/CarbonChartGauge.stories.d.ts +43 -43
  20. package/dist/components/CarbonChart/CarbonChartHistogram.stories.d.ts +89 -89
  21. package/dist/components/CarbonChart/CarbonChartLine.stories.d.ts +577 -577
  22. package/dist/components/CarbonChart/CarbonChartLollipop.stories.d.ts +55 -55
  23. package/dist/components/CarbonChart/CarbonChartMeter.stories.d.ts +127 -127
  24. package/dist/components/CarbonChart/CarbonChartPie.stories.d.ts +101 -101
  25. package/dist/components/CarbonChart/CarbonChartRadar.stories.d.ts +98 -98
  26. package/dist/components/CarbonChart/CarbonChartScatter.stories.d.ts +173 -173
  27. package/dist/components/CarbonChart/CarbonChartSparkline.stories.d.ts +51 -51
  28. package/dist/components/CarbonChart/CarbonChartStep.stories.d.ts +38 -38
  29. package/dist/components/CarbonChart/index.d.ts +1 -1
  30. package/dist/components/LineChart/Chart.d.ts +27 -27
  31. package/dist/components/LineChart/ChartDataTable.d.ts +17 -17
  32. package/dist/components/LineChart/CustomAxisComponent.d.ts +3 -3
  33. package/dist/components/LineChart/CustomPointComponent.d.ts +17 -17
  34. package/dist/components/LineChart/DataTable.d.ts +5 -5
  35. package/dist/components/LineChart/GraphTooltip.d.ts +3 -3
  36. package/dist/components/LineChart/LegendButton.d.ts +6 -6
  37. package/dist/components/LineChart/LineChart.d.ts +67 -67
  38. package/dist/components/LineChart/LineChart.stories.d.ts +113 -134
  39. package/dist/components/LineChart/index.d.ts +1 -1
  40. package/dist/components/LineChart/magma-charts.d.ts +1 -1
  41. package/dist/index.d.ts +2 -2
  42. package/package.json +9 -4
  43. package/src/components/CarbonChart/CarbonChart.tsx +12 -16
  44. package/src/components/CarbonChart/carbon-charts.css +7303 -0
  45. package/dist/components/CarbonChart/CarbonChart.test.d.ts +0 -1
  46. package/dist/components/CarbonChart/embeddedStyles.d.ts +0 -1
  47. package/dist/components/LineChart/ChartDataTable.test.d.ts +0 -1
  48. package/dist/components/LineChart/LineChart.test.d.ts +0 -1
  49. package/dist/components/LineChart/test/exampleChartData.d.ts +0 -40
  50. package/src/components/CarbonChart/embeddedStyles.ts +0 -24880
@@ -1,38 +1,38 @@
1
- import { CarbonChartProps, CarbonChartType } from '.';
2
- declare const _default: import("@storybook/csf").ComponentAnnotations<import("@storybook/react/types-6-0").ReactFramework, import("@storybook/react/types-6-0").Args>;
3
- export default _default;
4
- export declare const StepTimeSeries: {
5
- render: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react/types-6-0").ReactFramework, CarbonChartProps>;
6
- args: {
7
- isInverse: boolean;
8
- type: CarbonChartType;
9
- dataSet: ({
10
- group: string;
11
- date: string;
12
- value: number;
13
- surplus: number;
14
- } | {
15
- group: string;
16
- date: string;
17
- value: null;
18
- surplus: number;
19
- })[];
20
- options: {
21
- title: string;
22
- axes: {
23
- bottom: {
24
- title: string;
25
- mapsTo: string;
26
- scaleType: string;
27
- };
28
- left: {
29
- mapsTo: string;
30
- title: string;
31
- scaleType: string;
32
- };
33
- };
34
- curve: string;
35
- height: string;
36
- };
37
- };
38
- };
1
+ import { CarbonChartProps, CarbonChartType } from '.';
2
+ declare const _default: import("@storybook/csf").ComponentAnnotations<import("@storybook/react/types-6-0").ReactFramework, import("@storybook/react/types-6-0").Args>;
3
+ export default _default;
4
+ export declare const StepTimeSeries: {
5
+ render: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react/types-6-0").ReactFramework, CarbonChartProps>;
6
+ args: {
7
+ isInverse: boolean;
8
+ type: CarbonChartType;
9
+ dataSet: ({
10
+ group: string;
11
+ date: string;
12
+ value: number;
13
+ surplus: number;
14
+ } | {
15
+ group: string;
16
+ date: string;
17
+ value: null;
18
+ surplus: number;
19
+ })[];
20
+ options: {
21
+ title: string;
22
+ axes: {
23
+ bottom: {
24
+ title: string;
25
+ mapsTo: string;
26
+ scaleType: string;
27
+ };
28
+ left: {
29
+ mapsTo: string;
30
+ title: string;
31
+ scaleType: string;
32
+ };
33
+ };
34
+ curve: string;
35
+ height: string;
36
+ };
37
+ };
38
+ };
@@ -1 +1 @@
1
- export * from './CarbonChart';
1
+ export * from './CarbonChart';
@@ -1,27 +1,27 @@
1
- import * as React from 'react';
2
- import { LineChartProps } from './LineChart';
3
- interface BaseChartProps {
4
- /**
5
- * Description of what the line chart data represents placed above the chart
6
- */
7
- description?: string;
8
- /**
9
- * @internal
10
- */
11
- testId?: string;
12
- /**
13
- * Title of the line chart
14
- */
15
- title: string;
16
- /**
17
- * Type of chart - for now just 'line' is accepted
18
- */
19
- type: string;
20
- }
21
- export interface ChartProps<T extends any> extends BaseChartProps, Omit<React.HTMLAttributes<HTMLDivElement>, 'title'>, LineChartProps<T> {
22
- }
23
- declare function BaseChart<T>(props: ChartProps<T>, ref: React.Ref<HTMLDivElement>): JSX.Element;
24
- export declare const Chart: <T>(props: ChartProps<T> & {
25
- ref?: React.MutableRefObject<HTMLDivElement> | undefined;
26
- }) => ReturnType<typeof BaseChart>;
27
- export {};
1
+ import * as React from 'react';
2
+ import { LineChartProps } from './LineChart';
3
+ interface BaseChartProps {
4
+ /**
5
+ * Description of what the line chart data represents placed above the chart
6
+ */
7
+ description?: string;
8
+ /**
9
+ * @internal
10
+ */
11
+ testId?: string;
12
+ /**
13
+ * Title of the line chart
14
+ */
15
+ title: string;
16
+ /**
17
+ * Type of chart - for now just 'line' is accepted
18
+ */
19
+ type: string;
20
+ }
21
+ export interface ChartProps<T extends any> extends BaseChartProps, Omit<React.HTMLAttributes<HTMLDivElement>, 'title'>, LineChartProps<T> {
22
+ }
23
+ declare function BaseChart<T>(props: ChartProps<T>, ref: React.Ref<HTMLDivElement>): React.JSX.Element;
24
+ export declare const Chart: <T>(props: ChartProps<T> & {
25
+ ref?: React.MutableRefObject<HTMLDivElement> | undefined;
26
+ }) => ReturnType<typeof BaseChart>;
27
+ export {};
@@ -1,17 +1,17 @@
1
- /// <reference types="react" />
2
- import { VictoryAxisProps } from 'victory';
3
- export declare function toCamelCase(str: string): string;
4
- export interface DataTableProps {
5
- data?: any[];
6
- xData: {
7
- keyValue?: string | number | symbol;
8
- label?: VictoryAxisProps['label'];
9
- tickFormat?: Partial<VictoryAxisProps['tickFormat']>;
10
- tickValues?: VictoryAxisProps['tickValues'];
11
- };
12
- yData: {
13
- keyValue?: string | number | symbol;
14
- tickFormat?: Partial<VictoryAxisProps['tickFormat']>;
15
- };
16
- }
17
- export declare const ChartDataTable: (props: DataTableProps) => JSX.Element;
1
+ import * as React from 'react';
2
+ import { VictoryAxisProps } from 'victory';
3
+ export declare function toCamelCase(str: string): string;
4
+ export interface DataTableProps {
5
+ data?: any[];
6
+ xData: {
7
+ keyValue?: string | number | symbol;
8
+ label?: VictoryAxisProps['label'];
9
+ tickFormat?: Partial<VictoryAxisProps['tickFormat']>;
10
+ tickValues?: VictoryAxisProps['tickValues'];
11
+ };
12
+ yData: {
13
+ keyValue?: string | number | symbol;
14
+ tickFormat?: Partial<VictoryAxisProps['tickFormat']>;
15
+ };
16
+ }
17
+ export declare const ChartDataTable: (props: DataTableProps) => React.JSX.Element;
@@ -1,3 +1,3 @@
1
- import * as React from 'react';
2
- import { LineSegmentProps } from 'victory';
3
- export declare const CustomAxisComponent: React.FunctionComponent<LineSegmentProps>;
1
+ import * as React from 'react';
2
+ import { LineSegmentProps } from 'victory';
3
+ export declare const CustomAxisComponent: React.FunctionComponent<LineSegmentProps>;
@@ -1,17 +1,17 @@
1
- import * as React from 'react';
2
- import { PointProps } from 'victory';
3
- export interface CustomScatterDataComponentInterface extends PointProps {
4
- lineIndex: number;
5
- pointRefArray: React.MutableRefObject<React.MutableRefObject<Element>[]>;
6
- registerPoint: (refArray: React.MutableRefObject<React.MutableRefObject<Element>[]>, ref: React.MutableRefObject<Element>) => void;
7
- unregisterPoint: (refArray: React.MutableRefObject<React.MutableRefObject<Element>[]>, ref: React.MutableRefObject<Element>) => void;
8
- }
9
- export interface CustomPointComponentInterface {
10
- lineIndex: number;
11
- pointIndex: PointProps['index'];
12
- pointRefArray: React.MutableRefObject<React.MutableRefObject<Element>[]>;
13
- registerPoint: (refArray: React.MutableRefObject<React.MutableRefObject<Element>[]>, ref: React.MutableRefObject<Element>) => void;
14
- unregisterPoint: (refArray: React.MutableRefObject<React.MutableRefObject<Element>[]>, ref: React.MutableRefObject<Element>) => void;
15
- }
16
- export declare const CustomScatterDataComponent: (props: CustomScatterDataComponentInterface) => JSX.Element;
17
- export declare const CustomPointComponent: (props: CustomPointComponentInterface) => JSX.Element;
1
+ import * as React from 'react';
2
+ import { PointProps } from 'victory';
3
+ export interface CustomScatterDataComponentInterface extends PointProps {
4
+ lineIndex: number;
5
+ pointRefArray: React.MutableRefObject<React.MutableRefObject<Element>[]>;
6
+ registerPoint: (refArray: React.MutableRefObject<React.MutableRefObject<Element>[]>, ref: React.MutableRefObject<Element>) => void;
7
+ unregisterPoint: (refArray: React.MutableRefObject<React.MutableRefObject<Element>[]>, ref: React.MutableRefObject<Element>) => void;
8
+ }
9
+ export interface CustomPointComponentInterface {
10
+ lineIndex: number;
11
+ pointIndex: PointProps['index'];
12
+ pointRefArray: React.MutableRefObject<React.MutableRefObject<Element>[]>;
13
+ registerPoint: (refArray: React.MutableRefObject<React.MutableRefObject<Element>[]>, ref: React.MutableRefObject<Element>) => void;
14
+ unregisterPoint: (refArray: React.MutableRefObject<React.MutableRefObject<Element>[]>, ref: React.MutableRefObject<Element>) => void;
15
+ }
16
+ export declare const CustomScatterDataComponent: (props: CustomScatterDataComponentInterface) => React.JSX.Element;
17
+ export declare const CustomPointComponent: (props: CustomPointComponentInterface) => React.JSX.Element;
@@ -1,5 +1,5 @@
1
- /// <reference types="react" />
2
- export interface DataTableProps {
3
- data?: any;
4
- }
5
- export declare const DataTable: (props: any) => JSX.Element;
1
+ import * as React from 'react';
2
+ export interface DataTableProps {
3
+ data?: any;
4
+ }
5
+ export declare const DataTable: (props: any) => React.JSX.Element;
@@ -1,3 +1,3 @@
1
- /// <reference types="react" />
2
- export declare const GraphTooltip: (props: any) => JSX.Element | null;
3
- export declare const AxisTooltip: (props: any) => JSX.Element;
1
+ import * as React from 'react';
2
+ export declare const GraphTooltip: (props: any) => React.JSX.Element | null;
3
+ export declare const AxisTooltip: (props: any) => React.JSX.Element;
@@ -1,6 +1,6 @@
1
- import * as React from 'react';
2
- export interface DataTableProps {
3
- name?: string;
4
- color?: string;
5
- }
6
- export declare const LegendButton: React.ForwardRefExoticComponent<Pick<any, string | number | symbol> & React.RefAttributes<HTMLButtonElement>>;
1
+ import * as React from 'react';
2
+ export interface DataTableProps {
3
+ name?: string;
4
+ color?: string;
5
+ }
6
+ export declare const LegendButton: React.ForwardRefExoticComponent<Pick<any, string | number | symbol> & React.RefAttributes<HTMLButtonElement>>;
@@ -1,67 +1,67 @@
1
- import * as React from 'react';
2
- import { VictoryAxisProps, VictoryChartProps, VictoryLineProps, VictoryScatterProps } from 'victory';
3
- export declare type LineChartAxisStyle = VictoryAxisProps['style'];
4
- export declare type DataGetterPropType = VictoryLineProps['x'];
5
- export declare type ChartDataOptions = {
6
- label: string;
7
- x: string | number;
8
- y: string | number;
9
- [key: string]: any;
10
- } | {
11
- label: string;
12
- [key: string]: any;
13
- } | any;
14
- export interface LineChartData<T> {
15
- name: string;
16
- data: T[];
17
- }
18
- export interface LineChartComponentProps {
19
- chart?: VictoryChartProps;
20
- line?: VictoryLineProps;
21
- scatter?: VictoryScatterProps;
22
- xAxis?: VictoryAxisProps;
23
- yAxis?: VictoryAxisProps;
24
- }
25
- /**
26
- * @deprecated Please use CarbonChart instead
27
- */
28
- export interface LineChartProps<T extends ChartDataOptions> {
29
- /**
30
- * Props passed to each component that makes up the line chart. See `victory` for accepted props.
31
- */
32
- componentProps?: LineChartComponentProps;
33
- /**
34
- * Data used to build the chart
35
- */
36
- data?: LineChartData<T>[];
37
- isMulti?: boolean;
38
- /**
39
- * @internal
40
- */
41
- lastFocusedScatterPoint: React.MutableRefObject<SVGPathElement | null>;
42
- /**
43
- * @internal
44
- */
45
- pointRefArray: React.MutableRefObject<React.MutableRefObject<Element>[]>;
46
- /**
47
- * @internal
48
- */
49
- registerPoint: (refArray: React.MutableRefObject<React.MutableRefObject<Element>[]>, ref: React.MutableRefObject<Element>) => void;
50
- /**
51
- * @internal
52
- */
53
- tabRef: React.MutableRefObject<HTMLButtonElement | null>;
54
- /**
55
- * @internal
56
- */
57
- unregisterPoint: (refArray: React.MutableRefObject<React.MutableRefObject<Element>[]>, ref: React.MutableRefObject<Element>) => void;
58
- /**
59
- * Value of x key in chart data
60
- */
61
- x?: keyof T;
62
- /**
63
- * Value of y key in chart data
64
- */
65
- y?: keyof T;
66
- }
67
- export declare function LineChart<T>(props: LineChartProps<T>): JSX.Element;
1
+ import * as React from 'react';
2
+ import { VictoryAxisProps, VictoryChartProps, VictoryLineProps, VictoryScatterProps } from 'victory';
3
+ export declare type LineChartAxisStyle = VictoryAxisProps['style'];
4
+ export declare type DataGetterPropType = VictoryLineProps['x'];
5
+ export declare type ChartDataOptions = {
6
+ label: string;
7
+ x: string | number;
8
+ y: string | number;
9
+ [key: string]: any;
10
+ } | {
11
+ label: string;
12
+ [key: string]: any;
13
+ } | any;
14
+ export interface LineChartData<T> {
15
+ name: string;
16
+ data: T[];
17
+ }
18
+ export interface LineChartComponentProps {
19
+ chart?: VictoryChartProps;
20
+ line?: VictoryLineProps;
21
+ scatter?: VictoryScatterProps;
22
+ xAxis?: VictoryAxisProps;
23
+ yAxis?: VictoryAxisProps;
24
+ }
25
+ /**
26
+ * @deprecated Please use CarbonChart instead
27
+ */
28
+ export interface LineChartProps<T extends ChartDataOptions> {
29
+ /**
30
+ * Props passed to each component that makes up the line chart. See `victory` for accepted props.
31
+ */
32
+ componentProps?: LineChartComponentProps;
33
+ /**
34
+ * Data used to build the chart
35
+ */
36
+ data?: LineChartData<T>[];
37
+ isMulti?: boolean;
38
+ /**
39
+ * @internal
40
+ */
41
+ lastFocusedScatterPoint: React.MutableRefObject<SVGPathElement | null>;
42
+ /**
43
+ * @internal
44
+ */
45
+ pointRefArray: React.MutableRefObject<React.MutableRefObject<Element>[]>;
46
+ /**
47
+ * @internal
48
+ */
49
+ registerPoint: (refArray: React.MutableRefObject<React.MutableRefObject<Element>[]>, ref: React.MutableRefObject<Element>) => void;
50
+ /**
51
+ * @internal
52
+ */
53
+ tabRef: React.MutableRefObject<HTMLButtonElement | null>;
54
+ /**
55
+ * @internal
56
+ */
57
+ unregisterPoint: (refArray: React.MutableRefObject<React.MutableRefObject<Element>[]>, ref: React.MutableRefObject<Element>) => void;
58
+ /**
59
+ * Value of x key in chart data
60
+ */
61
+ x?: keyof T;
62
+ /**
63
+ * Value of y key in chart data
64
+ */
65
+ y?: keyof T;
66
+ }
67
+ export declare function LineChart<T>(props: LineChartProps<T>): React.JSX.Element;
@@ -1,134 +1,113 @@
1
- declare const _default: import("@storybook/csf").ComponentAnnotations<import("@storybook/react/types-6-0").ReactFramework, import("@storybook/react/types-6-0").Args>;
2
- export default _default;
3
- export declare const Default: {
4
- args: {
5
- data: {
6
- name: string;
7
- data: {
8
- x: number;
9
- y: number;
10
- label: string;
11
- }[];
12
- }[];
13
- description: string;
14
- title: string;
15
- type: string;
16
- componentProps: {
17
- xAxis: {
18
- label: string;
19
- tickFormat: string[];
20
- };
21
- yAxis: {
22
- domain: number[];
23
- label: string;
24
- tickFormat: (t: any) => string;
25
- tickValues: number[];
26
- };
27
- };
28
- };
29
- };
30
- export declare const ExplicitData: {
31
- args: {
32
- componentProps: {
33
- xAxis: {
34
- tickFormat: string[];
35
- label: string;
36
- };
37
- yAxis: {
38
- domain: number[];
39
- label: string;
40
- tickFormat: (t: any) => string;
41
- tickValues: number[];
42
- };
43
- };
44
- data: {
45
- name: string;
46
- data: {
47
- month: number;
48
- sales: number;
49
- label: string;
50
- }[];
51
- }[];
52
- x: string;
53
- y: string;
54
- description: string;
55
- title: string;
56
- type: string;
57
- };
58
- };
59
- export declare const HistoryOfTexas: {
60
- args: {
61
- description: string;
62
- title: string;
63
- componentProps: {
64
- xAxis: {
65
- label: string;
66
- tickValues: number[];
67
- };
68
- yAxis: {
69
- label: string;
70
- tickFormat: (t: any) => any;
71
- tickValues: number[];
72
- };
73
- };
74
- data: {
75
- name: string;
76
- data: {
77
- year: number;
78
- number: number;
79
- label: string;
80
- }[];
81
- }[];
82
- x: string;
83
- y: string;
84
- type: string;
85
- };
86
- };
87
- export declare const SpendingRevenue: {
88
- args: {
89
- data: {
90
- name: string;
91
- data: {
92
- x: string;
93
- y: number;
94
- label: string;
95
- }[];
96
- }[];
97
- title: string;
98
- type: string;
99
- componentProps: {
100
- xAxis: {
101
- label: string;
102
- };
103
- yAxis: {
104
- label: string;
105
- tickValues: number[];
106
- };
107
- };
108
- };
109
- };
110
- export declare const VotingParticipation: {
111
- args: {
112
- data: {
113
- name: string;
114
- data: {
115
- year: string;
116
- percent: number;
117
- label: string;
118
- }[];
119
- }[];
120
- title: string;
121
- type: string;
122
- componentProps: {
123
- xAxis: {
124
- label: string;
125
- };
126
- yAxis: {
127
- domain: number[];
128
- label: string;
129
- };
130
- };
131
- x: string;
132
- y: string;
133
- };
134
- };
1
+ declare const _default: import("@storybook/csf").ComponentAnnotations<import("@storybook/react/types-6-0").ReactFramework, import("@storybook/react/types-6-0").Args>;
2
+ export default _default;
3
+ export declare const Default: {
4
+ args: {
5
+ data: {
6
+ name: string;
7
+ data: {
8
+ x: number;
9
+ y: number;
10
+ label: string;
11
+ }[];
12
+ }[];
13
+ description: string;
14
+ title: string;
15
+ type: string;
16
+ componentProps: {
17
+ xAxis: {
18
+ label: string;
19
+ tickFormat: string[];
20
+ };
21
+ yAxis: {
22
+ domain: number[];
23
+ label: string;
24
+ tickFormat: (t: any) => string;
25
+ tickValues: number[];
26
+ };
27
+ };
28
+ };
29
+ };
30
+ export declare const ExplicitData: {
31
+ args: {
32
+ componentProps: {
33
+ xAxis: {
34
+ tickFormat: string[];
35
+ label: string;
36
+ };
37
+ yAxis: {
38
+ domain: number[];
39
+ label: string;
40
+ tickFormat: (t: any) => string;
41
+ tickValues: number[];
42
+ };
43
+ };
44
+ data: {
45
+ name: string;
46
+ data: {
47
+ month: number;
48
+ sales: number;
49
+ label: string;
50
+ }[];
51
+ }[];
52
+ x: string;
53
+ y: string;
54
+ description: string;
55
+ title: string;
56
+ type: string;
57
+ };
58
+ };
59
+ export declare const HistoryOfTexas: {
60
+ args: {
61
+ description: string;
62
+ title: string;
63
+ componentProps: {
64
+ xAxis: {
65
+ label: string;
66
+ tickValues: number[];
67
+ };
68
+ yAxis: {
69
+ label: string;
70
+ tickFormat: (t: any) => any;
71
+ tickValues: number[];
72
+ };
73
+ };
74
+ data: any;
75
+ x: string;
76
+ y: string;
77
+ type: string;
78
+ };
79
+ };
80
+ export declare const SpendingRevenue: {
81
+ args: {
82
+ data: any;
83
+ title: string;
84
+ type: string;
85
+ componentProps: {
86
+ xAxis: {
87
+ label: string;
88
+ };
89
+ yAxis: {
90
+ label: string;
91
+ tickValues: number[];
92
+ };
93
+ };
94
+ };
95
+ };
96
+ export declare const VotingParticipation: {
97
+ args: {
98
+ data: any;
99
+ title: string;
100
+ type: string;
101
+ componentProps: {
102
+ xAxis: {
103
+ label: string;
104
+ };
105
+ yAxis: {
106
+ domain: number[];
107
+ label: string;
108
+ };
109
+ };
110
+ x: string;
111
+ y: string;
112
+ };
113
+ };
@@ -1 +1 @@
1
- export * from './Chart';
1
+ export * from './Chart';
@@ -1 +1 @@
1
- export declare const magmaTheme: any;
1
+ export declare const magmaTheme: any;
package/dist/index.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export * from './components/LineChart';
2
- export * from './components/CarbonChart';
1
+ export * from './components/LineChart';
2
+ export * from './components/CarbonChart';