@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,214 +1,214 @@
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 VerticalSimpleBarDiscrete: {
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
- value: number;
12
- }[];
13
- options: {
14
- title: string;
15
- axes: {
16
- left: {
17
- mapsTo: string;
18
- };
19
- bottom: {
20
- mapsTo: string;
21
- scaleType: string;
22
- };
23
- };
24
- height: string;
25
- tooltip: {
26
- valueFormatter: (value: any) => string;
27
- enabled: boolean;
28
- };
29
- };
30
- };
31
- };
32
- export declare const VerticalSimpleBarTimeSeries: {
33
- render: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react/types-6-0").ReactFramework, CarbonChartProps>;
34
- args: {
35
- isInverse: boolean;
36
- type: CarbonChartType;
37
- dataSet: {
38
- group: string;
39
- date: Date;
40
- value: number;
41
- }[];
42
- options: {
43
- title: string;
44
- axes: {
45
- left: {
46
- mapsTo: string;
47
- };
48
- bottom: {
49
- mapsTo: string;
50
- scaleType: string;
51
- };
52
- };
53
- height: string;
54
- };
55
- };
56
- };
57
- export declare const VerticalSimpleBarTimeSeriesDenseDataTurkish: {
58
- render: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react/types-6-0").ReactFramework, CarbonChartProps>;
59
- args: {
60
- isInverse: boolean;
61
- type: CarbonChartType;
62
- dataSet: {
63
- group: string;
64
- date: Date;
65
- value: number;
66
- }[];
67
- options: {
68
- title: string;
69
- axes: {
70
- left: {
71
- mapsTo: string;
72
- ticks: {};
73
- };
74
- bottom: {
75
- mapsTo: string;
76
- scaleType: string;
77
- ticks: {};
78
- };
79
- };
80
- tooltip: {};
81
- bars: {
82
- maxWidth: number;
83
- };
84
- height: string;
85
- };
86
- };
87
- };
88
- export declare const VerticalSimpleBarEmptyState: {
89
- render: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react/types-6-0").ReactFramework, CarbonChartProps>;
90
- args: {
91
- isInverse: boolean;
92
- type: CarbonChartType;
93
- dataSet: never[];
94
- options: {
95
- title: string;
96
- axes: {
97
- left: {};
98
- bottom: {
99
- scaleType: string;
100
- };
101
- };
102
- height: string;
103
- };
104
- };
105
- };
106
- export declare const VerticalSimpleBarSkeleton: {
107
- render: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react/types-6-0").ReactFramework, CarbonChartProps>;
108
- args: {
109
- isInverse: boolean;
110
- type: CarbonChartType;
111
- dataSet: never[];
112
- options: {
113
- title: string;
114
- axes: {
115
- left: {};
116
- bottom: {
117
- scaleType: string;
118
- };
119
- };
120
- data: {
121
- loading: boolean;
122
- };
123
- height: string;
124
- };
125
- };
126
- };
127
- export declare const HorizontalSimpleBarTimeSeries: {
128
- render: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react/types-6-0").ReactFramework, CarbonChartProps>;
129
- args: {
130
- isInverse: boolean;
131
- type: CarbonChartType;
132
- dataSet: {
133
- group: string;
134
- date: Date;
135
- value: number;
136
- }[];
137
- options: {
138
- title: string;
139
- axes: {
140
- left: {
141
- mapsTo: string;
142
- scaleType: string;
143
- };
144
- bottom: {
145
- mapsTo: string;
146
- };
147
- };
148
- height: string;
149
- };
150
- };
151
- };
152
- export declare const HorizontalSimpleBarDiscrete: {
153
- render: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react/types-6-0").ReactFramework, CarbonChartProps>;
154
- args: {
155
- isInverse: boolean;
156
- type: CarbonChartType;
157
- dataSet: {
158
- group: string;
159
- value: number;
160
- }[];
161
- options: {
162
- title: string;
163
- axes: {
164
- left: {
165
- mapsTo: string;
166
- scaleType: string;
167
- };
168
- bottom: {
169
- mapsTo: string;
170
- };
171
- };
172
- height: string;
173
- };
174
- };
175
- };
176
- export declare const HorizontalSimpleBarSkeleton: {
177
- render: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react/types-6-0").ReactFramework, CarbonChartProps>;
178
- args: {
179
- isInverse: boolean;
180
- type: CarbonChartType;
181
- dataSet: never[];
182
- options: {
183
- title: string;
184
- axes: {
185
- left: {
186
- scaleType: string;
187
- };
188
- bottom: {};
189
- };
190
- data: {
191
- loading: boolean;
192
- };
193
- height: string;
194
- };
195
- };
196
- };
197
- export declare const HorizontalSimpleBarEmptyState: {
198
- render: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react/types-6-0").ReactFramework, CarbonChartProps>;
199
- args: {
200
- isInverse: boolean;
201
- type: CarbonChartType;
202
- dataSet: never[];
203
- options: {
204
- title: string;
205
- axes: {
206
- left: {
207
- scaleType: string;
208
- };
209
- bottom: {};
210
- };
211
- height: string;
212
- };
213
- };
214
- };
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 VerticalSimpleBarDiscrete: {
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
+ value: number;
12
+ }[];
13
+ options: {
14
+ title: string;
15
+ axes: {
16
+ left: {
17
+ mapsTo: string;
18
+ };
19
+ bottom: {
20
+ mapsTo: string;
21
+ scaleType: string;
22
+ };
23
+ };
24
+ height: string;
25
+ tooltip: {
26
+ valueFormatter: (value: any) => string;
27
+ enabled: boolean;
28
+ };
29
+ };
30
+ };
31
+ };
32
+ export declare const VerticalSimpleBarTimeSeries: {
33
+ render: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react/types-6-0").ReactFramework, CarbonChartProps>;
34
+ args: {
35
+ isInverse: boolean;
36
+ type: CarbonChartType;
37
+ dataSet: {
38
+ group: string;
39
+ date: Date;
40
+ value: number;
41
+ }[];
42
+ options: {
43
+ title: string;
44
+ axes: {
45
+ left: {
46
+ mapsTo: string;
47
+ };
48
+ bottom: {
49
+ mapsTo: string;
50
+ scaleType: string;
51
+ };
52
+ };
53
+ height: string;
54
+ };
55
+ };
56
+ };
57
+ export declare const VerticalSimpleBarTimeSeriesDenseDataTurkish: {
58
+ render: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react/types-6-0").ReactFramework, CarbonChartProps>;
59
+ args: {
60
+ isInverse: boolean;
61
+ type: CarbonChartType;
62
+ dataSet: {
63
+ group: string;
64
+ date: Date;
65
+ value: number;
66
+ }[];
67
+ options: {
68
+ title: string;
69
+ axes: {
70
+ left: {
71
+ mapsTo: string;
72
+ ticks: {};
73
+ };
74
+ bottom: {
75
+ mapsTo: string;
76
+ scaleType: string;
77
+ ticks: {};
78
+ };
79
+ };
80
+ tooltip: {};
81
+ bars: {
82
+ maxWidth: number;
83
+ };
84
+ height: string;
85
+ };
86
+ };
87
+ };
88
+ export declare const VerticalSimpleBarEmptyState: {
89
+ render: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react/types-6-0").ReactFramework, CarbonChartProps>;
90
+ args: {
91
+ isInverse: boolean;
92
+ type: CarbonChartType;
93
+ dataSet: never[];
94
+ options: {
95
+ title: string;
96
+ axes: {
97
+ left: {};
98
+ bottom: {
99
+ scaleType: string;
100
+ };
101
+ };
102
+ height: string;
103
+ };
104
+ };
105
+ };
106
+ export declare const VerticalSimpleBarSkeleton: {
107
+ render: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react/types-6-0").ReactFramework, CarbonChartProps>;
108
+ args: {
109
+ isInverse: boolean;
110
+ type: CarbonChartType;
111
+ dataSet: never[];
112
+ options: {
113
+ title: string;
114
+ axes: {
115
+ left: {};
116
+ bottom: {
117
+ scaleType: string;
118
+ };
119
+ };
120
+ data: {
121
+ loading: boolean;
122
+ };
123
+ height: string;
124
+ };
125
+ };
126
+ };
127
+ export declare const HorizontalSimpleBarTimeSeries: {
128
+ render: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react/types-6-0").ReactFramework, CarbonChartProps>;
129
+ args: {
130
+ isInverse: boolean;
131
+ type: CarbonChartType;
132
+ dataSet: {
133
+ group: string;
134
+ date: Date;
135
+ value: number;
136
+ }[];
137
+ options: {
138
+ title: string;
139
+ axes: {
140
+ left: {
141
+ mapsTo: string;
142
+ scaleType: string;
143
+ };
144
+ bottom: {
145
+ mapsTo: string;
146
+ };
147
+ };
148
+ height: string;
149
+ };
150
+ };
151
+ };
152
+ export declare const HorizontalSimpleBarDiscrete: {
153
+ render: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react/types-6-0").ReactFramework, CarbonChartProps>;
154
+ args: {
155
+ isInverse: boolean;
156
+ type: CarbonChartType;
157
+ dataSet: {
158
+ group: string;
159
+ value: number;
160
+ }[];
161
+ options: {
162
+ title: string;
163
+ axes: {
164
+ left: {
165
+ mapsTo: string;
166
+ scaleType: string;
167
+ };
168
+ bottom: {
169
+ mapsTo: string;
170
+ };
171
+ };
172
+ height: string;
173
+ };
174
+ };
175
+ };
176
+ export declare const HorizontalSimpleBarSkeleton: {
177
+ render: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react/types-6-0").ReactFramework, CarbonChartProps>;
178
+ args: {
179
+ isInverse: boolean;
180
+ type: CarbonChartType;
181
+ dataSet: never[];
182
+ options: {
183
+ title: string;
184
+ axes: {
185
+ left: {
186
+ scaleType: string;
187
+ };
188
+ bottom: {};
189
+ };
190
+ data: {
191
+ loading: boolean;
192
+ };
193
+ height: string;
194
+ };
195
+ };
196
+ };
197
+ export declare const HorizontalSimpleBarEmptyState: {
198
+ render: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react/types-6-0").ReactFramework, CarbonChartProps>;
199
+ args: {
200
+ isInverse: boolean;
201
+ type: CarbonChartType;
202
+ dataSet: never[];
203
+ options: {
204
+ title: string;
205
+ axes: {
206
+ left: {
207
+ scaleType: string;
208
+ };
209
+ bottom: {};
210
+ };
211
+ height: string;
212
+ };
213
+ };
214
+ };
@@ -1,82 +1,82 @@
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 HorizontalFloatingBarTimeSeries: {
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: Date;
12
- value: number[];
13
- } | {
14
- group: string;
15
- date: Date;
16
- value: number;
17
- })[];
18
- options: {
19
- title: string;
20
- axes: {
21
- left: {
22
- mapsTo: string;
23
- scaleType: string;
24
- };
25
- bottom: {
26
- mapsTo: string;
27
- };
28
- };
29
- height: string;
30
- };
31
- };
32
- };
33
- export declare const FloatingVerticalBarDiscrete: {
34
- render: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react/types-6-0").ReactFramework, CarbonChartProps>;
35
- args: {
36
- isInverse: boolean;
37
- type: CarbonChartType;
38
- dataSet: {
39
- group: string;
40
- value: number[];
41
- }[];
42
- options: {
43
- title: string;
44
- axes: {
45
- left: {
46
- mapsTo: string;
47
- includeZero: boolean;
48
- };
49
- bottom: {
50
- mapsTo: string;
51
- scaleType: string;
52
- };
53
- };
54
- height: string;
55
- };
56
- };
57
- };
58
- export declare const FloatingHorizontalBarDiscrete: {
59
- render: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react/types-6-0").ReactFramework, CarbonChartProps>;
60
- args: {
61
- isInverse: boolean;
62
- type: CarbonChartType;
63
- dataSet: {
64
- group: string;
65
- value: number[];
66
- }[];
67
- options: {
68
- title: string;
69
- axes: {
70
- left: {
71
- mapsTo: string;
72
- scaleType: string;
73
- };
74
- bottom: {
75
- mapsTo: string;
76
- includeZero: boolean;
77
- };
78
- };
79
- height: string;
80
- };
81
- };
82
- };
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 HorizontalFloatingBarTimeSeries: {
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: Date;
12
+ value: number[];
13
+ } | {
14
+ group: string;
15
+ date: Date;
16
+ value: number;
17
+ })[];
18
+ options: {
19
+ title: string;
20
+ axes: {
21
+ left: {
22
+ mapsTo: string;
23
+ scaleType: string;
24
+ };
25
+ bottom: {
26
+ mapsTo: string;
27
+ };
28
+ };
29
+ height: string;
30
+ };
31
+ };
32
+ };
33
+ export declare const FloatingVerticalBarDiscrete: {
34
+ render: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react/types-6-0").ReactFramework, CarbonChartProps>;
35
+ args: {
36
+ isInverse: boolean;
37
+ type: CarbonChartType;
38
+ dataSet: {
39
+ group: string;
40
+ value: number[];
41
+ }[];
42
+ options: {
43
+ title: string;
44
+ axes: {
45
+ left: {
46
+ mapsTo: string;
47
+ includeZero: boolean;
48
+ };
49
+ bottom: {
50
+ mapsTo: string;
51
+ scaleType: string;
52
+ };
53
+ };
54
+ height: string;
55
+ };
56
+ };
57
+ };
58
+ export declare const FloatingHorizontalBarDiscrete: {
59
+ render: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react/types-6-0").ReactFramework, CarbonChartProps>;
60
+ args: {
61
+ isInverse: boolean;
62
+ type: CarbonChartType;
63
+ dataSet: {
64
+ group: string;
65
+ value: number[];
66
+ }[];
67
+ options: {
68
+ title: string;
69
+ axes: {
70
+ left: {
71
+ mapsTo: string;
72
+ scaleType: string;
73
+ };
74
+ bottom: {
75
+ mapsTo: string;
76
+ includeZero: boolean;
77
+ };
78
+ };
79
+ height: string;
80
+ };
81
+ };
82
+ };