@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,196 +1,196 @@
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 BubbleLinear: {
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
- sales: number;
12
- profit: number;
13
- surplus: number;
14
- }[];
15
- options: {
16
- title: string;
17
- axes: {
18
- bottom: {
19
- title: string;
20
- mapsTo: string;
21
- includeZero: boolean;
22
- };
23
- left: {
24
- title: string;
25
- mapsTo: string;
26
- includeZero: boolean;
27
- };
28
- };
29
- bubble: {
30
- radiusMapsTo: string;
31
- radiusLabel: string;
32
- };
33
- legend: {
34
- additionalItems: {
35
- type: string;
36
- name: string;
37
- }[];
38
- };
39
- height: string;
40
- };
41
- };
42
- };
43
- export declare const BubbleTimeSeries: {
44
- render: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react/types-6-0").ReactFramework, CarbonChartProps>;
45
- args: {
46
- isInverse: boolean;
47
- type: CarbonChartType;
48
- dataSet: ({
49
- group: string;
50
- date: string;
51
- value: number;
52
- surplus: number;
53
- } | {
54
- group: string;
55
- date: string;
56
- value: null;
57
- surplus: number;
58
- })[];
59
- options: {
60
- title: string;
61
- axes: {
62
- bottom: {
63
- title: string;
64
- scaleType: string;
65
- mapsTo: string;
66
- };
67
- left: {
68
- mapsTo: string;
69
- };
70
- };
71
- bubble: {
72
- radiusMapsTo: string;
73
- };
74
- height: string;
75
- };
76
- };
77
- };
78
- export declare const BubbleDiscrete: {
79
- render: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react/types-6-0").ReactFramework, CarbonChartProps>;
80
- args: {
81
- isInverse: boolean;
82
- type: CarbonChartType;
83
- dataSet: {
84
- group: string;
85
- key: string;
86
- value: number;
87
- surplus: number;
88
- }[];
89
- options: {
90
- title: string;
91
- axes: {
92
- bottom: {
93
- title: string;
94
- scaleType: string;
95
- mapsTo: string;
96
- };
97
- left: {
98
- mapsTo: string;
99
- };
100
- };
101
- bubble: {
102
- radiusMapsTo: string;
103
- };
104
- height: string;
105
- };
106
- };
107
- };
108
- export declare const BubbleDualDiscreteAxes: {
109
- render: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react/types-6-0").ReactFramework, CarbonChartProps>;
110
- args: {
111
- isInverse: boolean;
112
- type: CarbonChartType;
113
- dataSet: {
114
- group: string;
115
- product: string;
116
- value: number;
117
- problem: string;
118
- }[];
119
- options: {
120
- title: string;
121
- axes: {
122
- bottom: {
123
- title: string;
124
- scaleType: string;
125
- mapsTo: string;
126
- };
127
- left: {
128
- scaleType: string;
129
- mapsTo: string;
130
- title: string;
131
- };
132
- };
133
- bubble: {
134
- radiusMapsTo: string;
135
- };
136
- height: string;
137
- };
138
- };
139
- };
140
- export declare const BubbleEmptyState: {
141
- render: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react/types-6-0").ReactFramework, CarbonChartProps>;
142
- args: {
143
- isInverse: boolean;
144
- type: CarbonChartType;
145
- dataSet: never[];
146
- options: {
147
- title: string;
148
- axes: {
149
- bottom: {
150
- title: string;
151
- mapsTo: string;
152
- includeZero: boolean;
153
- };
154
- left: {
155
- title: string;
156
- mapsTo: string;
157
- includeZero: boolean;
158
- };
159
- };
160
- bubble: {
161
- radiusMapsTo: string;
162
- };
163
- height: string;
164
- };
165
- };
166
- };
167
- export declare const BubbleSkeleton: {
168
- render: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react/types-6-0").ReactFramework, CarbonChartProps>;
169
- args: {
170
- isInverse: boolean;
171
- type: CarbonChartType;
172
- dataSet: never[];
173
- options: {
174
- title: string;
175
- axes: {
176
- bottom: {
177
- title: string;
178
- mapsTo: string;
179
- includeZero: boolean;
180
- };
181
- left: {
182
- title: string;
183
- mapsTo: string;
184
- includeZero: boolean;
185
- };
186
- };
187
- bubble: {
188
- radiusMapsTo: string;
189
- };
190
- data: {
191
- loading: boolean;
192
- };
193
- height: string;
194
- };
195
- };
196
- };
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 BubbleLinear: {
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
+ sales: number;
12
+ profit: number;
13
+ surplus: number;
14
+ }[];
15
+ options: {
16
+ title: string;
17
+ axes: {
18
+ bottom: {
19
+ title: string;
20
+ mapsTo: string;
21
+ includeZero: boolean;
22
+ };
23
+ left: {
24
+ title: string;
25
+ mapsTo: string;
26
+ includeZero: boolean;
27
+ };
28
+ };
29
+ bubble: {
30
+ radiusMapsTo: string;
31
+ radiusLabel: string;
32
+ };
33
+ legend: {
34
+ additionalItems: {
35
+ type: string;
36
+ name: string;
37
+ }[];
38
+ };
39
+ height: string;
40
+ };
41
+ };
42
+ };
43
+ export declare const BubbleTimeSeries: {
44
+ render: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react/types-6-0").ReactFramework, CarbonChartProps>;
45
+ args: {
46
+ isInverse: boolean;
47
+ type: CarbonChartType;
48
+ dataSet: ({
49
+ group: string;
50
+ date: string;
51
+ value: number;
52
+ surplus: number;
53
+ } | {
54
+ group: string;
55
+ date: string;
56
+ value: null;
57
+ surplus: number;
58
+ })[];
59
+ options: {
60
+ title: string;
61
+ axes: {
62
+ bottom: {
63
+ title: string;
64
+ scaleType: string;
65
+ mapsTo: string;
66
+ };
67
+ left: {
68
+ mapsTo: string;
69
+ };
70
+ };
71
+ bubble: {
72
+ radiusMapsTo: string;
73
+ };
74
+ height: string;
75
+ };
76
+ };
77
+ };
78
+ export declare const BubbleDiscrete: {
79
+ render: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react/types-6-0").ReactFramework, CarbonChartProps>;
80
+ args: {
81
+ isInverse: boolean;
82
+ type: CarbonChartType;
83
+ dataSet: {
84
+ group: string;
85
+ key: string;
86
+ value: number;
87
+ surplus: number;
88
+ }[];
89
+ options: {
90
+ title: string;
91
+ axes: {
92
+ bottom: {
93
+ title: string;
94
+ scaleType: string;
95
+ mapsTo: string;
96
+ };
97
+ left: {
98
+ mapsTo: string;
99
+ };
100
+ };
101
+ bubble: {
102
+ radiusMapsTo: string;
103
+ };
104
+ height: string;
105
+ };
106
+ };
107
+ };
108
+ export declare const BubbleDualDiscreteAxes: {
109
+ render: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react/types-6-0").ReactFramework, CarbonChartProps>;
110
+ args: {
111
+ isInverse: boolean;
112
+ type: CarbonChartType;
113
+ dataSet: {
114
+ group: string;
115
+ product: string;
116
+ value: number;
117
+ problem: string;
118
+ }[];
119
+ options: {
120
+ title: string;
121
+ axes: {
122
+ bottom: {
123
+ title: string;
124
+ scaleType: string;
125
+ mapsTo: string;
126
+ };
127
+ left: {
128
+ scaleType: string;
129
+ mapsTo: string;
130
+ title: string;
131
+ };
132
+ };
133
+ bubble: {
134
+ radiusMapsTo: string;
135
+ };
136
+ height: string;
137
+ };
138
+ };
139
+ };
140
+ export declare const BubbleEmptyState: {
141
+ render: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react/types-6-0").ReactFramework, CarbonChartProps>;
142
+ args: {
143
+ isInverse: boolean;
144
+ type: CarbonChartType;
145
+ dataSet: never[];
146
+ options: {
147
+ title: string;
148
+ axes: {
149
+ bottom: {
150
+ title: string;
151
+ mapsTo: string;
152
+ includeZero: boolean;
153
+ };
154
+ left: {
155
+ title: string;
156
+ mapsTo: string;
157
+ includeZero: boolean;
158
+ };
159
+ };
160
+ bubble: {
161
+ radiusMapsTo: string;
162
+ };
163
+ height: string;
164
+ };
165
+ };
166
+ };
167
+ export declare const BubbleSkeleton: {
168
+ render: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react/types-6-0").ReactFramework, CarbonChartProps>;
169
+ args: {
170
+ isInverse: boolean;
171
+ type: CarbonChartType;
172
+ dataSet: never[];
173
+ options: {
174
+ title: string;
175
+ axes: {
176
+ bottom: {
177
+ title: string;
178
+ mapsTo: string;
179
+ includeZero: boolean;
180
+ };
181
+ left: {
182
+ title: string;
183
+ mapsTo: string;
184
+ includeZero: boolean;
185
+ };
186
+ };
187
+ bubble: {
188
+ radiusMapsTo: string;
189
+ };
190
+ data: {
191
+ loading: boolean;
192
+ };
193
+ height: string;
194
+ };
195
+ };
196
+ };
@@ -1,35 +1,35 @@
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 BasicBullet: {
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
- title: string;
11
- group: string;
12
- ranges: (number | null)[];
13
- marker: number;
14
- value: number;
15
- }[];
16
- options: {
17
- title: string;
18
- axes: {
19
- bottom: {
20
- mapsTo: string;
21
- extendLinearDomainBy: string;
22
- };
23
- left: {
24
- scaleType: string;
25
- mapsTo: string;
26
- };
27
- right: {
28
- scaleType: string;
29
- mapsTo: string;
30
- };
31
- };
32
- height: string;
33
- };
34
- };
35
- };
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 BasicBullet: {
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
+ title: string;
11
+ group: string;
12
+ ranges: (number | null)[];
13
+ marker: number;
14
+ value: number;
15
+ }[];
16
+ options: {
17
+ title: string;
18
+ axes: {
19
+ bottom: {
20
+ mapsTo: string;
21
+ extendLinearDomainBy: string;
22
+ };
23
+ left: {
24
+ scaleType: string;
25
+ mapsTo: string;
26
+ };
27
+ right: {
28
+ scaleType: string;
29
+ mapsTo: string;
30
+ };
31
+ };
32
+ height: string;
33
+ };
34
+ };
35
+ };