@pie-lib/charting 5.15.6 → 5.15.7-next.1618

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 (109) hide show
  1. package/CHANGELOG.json +1 -581
  2. package/CHANGELOG.md +206 -38
  3. package/NEXT.CHANGELOG.json +1 -0
  4. package/lib/actions-button.js +175 -0
  5. package/lib/actions-button.js.map +1 -0
  6. package/lib/axes.js +154 -104
  7. package/lib/axes.js.map +1 -1
  8. package/lib/bars/common/bars.js +105 -19
  9. package/lib/bars/common/bars.js.map +1 -1
  10. package/lib/bars/common/correct-check-icon.js +55 -0
  11. package/lib/bars/common/correct-check-icon.js.map +1 -0
  12. package/lib/chart-type.js +4 -4
  13. package/lib/chart-type.js.map +1 -1
  14. package/lib/chart.js +96 -65
  15. package/lib/chart.js.map +1 -1
  16. package/lib/common/correctness-indicators.js +99 -0
  17. package/lib/common/correctness-indicators.js.map +1 -0
  18. package/lib/common/drag-handle.js +47 -13
  19. package/lib/common/drag-handle.js.map +1 -1
  20. package/lib/common/drag-icon.js +7 -24
  21. package/lib/common/drag-icon.js.map +1 -1
  22. package/lib/grid.js +47 -10
  23. package/lib/grid.js.map +1 -1
  24. package/lib/index.js +8 -0
  25. package/lib/index.js.map +1 -1
  26. package/lib/key-legend.js +111 -0
  27. package/lib/key-legend.js.map +1 -0
  28. package/lib/line/common/drag-handle.js +40 -18
  29. package/lib/line/common/drag-handle.js.map +1 -1
  30. package/lib/line/common/line.js +7 -8
  31. package/lib/line/common/line.js.map +1 -1
  32. package/lib/line/line-cross.js +76 -9
  33. package/lib/line/line-cross.js.map +1 -1
  34. package/lib/line/line-dot.js +58 -5
  35. package/lib/line/line-dot.js.map +1 -1
  36. package/lib/mark-label.js +40 -15
  37. package/lib/mark-label.js.map +1 -1
  38. package/lib/plot/common/plot.js +129 -16
  39. package/lib/plot/common/plot.js.map +1 -1
  40. package/lib/plot/dot.js +17 -4
  41. package/lib/plot/dot.js.map +1 -1
  42. package/lib/plot/line.js +19 -6
  43. package/lib/plot/line.js.map +1 -1
  44. package/lib/tool-menu.js +0 -4
  45. package/lib/tool-menu.js.map +1 -1
  46. package/package.json +6 -8
  47. package/src/__tests__/__snapshots__/axes.test.jsx.snap +569 -0
  48. package/src/__tests__/__snapshots__/chart-type.test.jsx.snap +14 -0
  49. package/src/__tests__/__snapshots__/chart.test.jsx.snap +595 -0
  50. package/src/__tests__/__snapshots__/grid.test.jsx.snap +72 -0
  51. package/src/__tests__/__snapshots__/mark-label.test.jsx.snap +73 -0
  52. package/src/__tests__/axes.test.jsx +141 -0
  53. package/src/__tests__/chart-setup.test.jsx +47 -0
  54. package/src/__tests__/chart-type.test.jsx +29 -0
  55. package/src/__tests__/chart.test.jsx +95 -0
  56. package/src/__tests__/grid.test.jsx +25 -0
  57. package/src/__tests__/mark-label.test.jsx +31 -0
  58. package/src/__tests__/utils.js +30 -0
  59. package/src/__tests__/utils.test.js +100 -0
  60. package/src/actions-button.jsx +110 -0
  61. package/src/axes.jsx +98 -54
  62. package/src/bars/__tests__/__snapshots__/bar.test.jsx.snap +43 -0
  63. package/src/bars/__tests__/__snapshots__/histogram.test.jsx.snap +45 -0
  64. package/src/bars/__tests__/bar.test.jsx +37 -0
  65. package/src/bars/__tests__/histogram.test.jsx +38 -0
  66. package/src/bars/__tests__/utils.js +30 -0
  67. package/src/bars/common/__tests__/__snapshots__/bars.test.jsx.snap +110 -0
  68. package/src/bars/common/__tests__/bars.test.jsx +69 -0
  69. package/src/bars/common/__tests__/utils.js +30 -0
  70. package/src/bars/common/bars.jsx +101 -14
  71. package/src/bars/common/correct-check-icon.jsx +20 -0
  72. package/src/chart-type.js +7 -3
  73. package/src/chart.jsx +53 -29
  74. package/src/common/__tests__/__snapshots__/drag-handle.test.jsx.snap +48 -0
  75. package/src/common/__tests__/drag-handle.test.jsx +88 -0
  76. package/src/common/__tests__/utils.js +30 -0
  77. package/src/common/correctness-indicators.jsx +55 -0
  78. package/src/common/drag-handle.jsx +48 -26
  79. package/src/common/drag-icon.jsx +6 -21
  80. package/src/grid.jsx +37 -12
  81. package/src/index.js +2 -1
  82. package/src/key-legend.jsx +75 -0
  83. package/src/line/__tests__/__snapshots__/line-cross.test.jsx.snap +45 -0
  84. package/src/line/__tests__/__snapshots__/line-dot.test.jsx.snap +45 -0
  85. package/src/line/__tests__/line-cross.test.jsx +38 -0
  86. package/src/line/__tests__/line-dot.test.jsx +38 -0
  87. package/src/line/__tests__/utils.js +30 -0
  88. package/src/line/common/__tests__/__snapshots__/drag-handle.test.jsx.snap +49 -0
  89. package/src/line/common/__tests__/__snapshots__/line.test.jsx.snap +143 -0
  90. package/src/line/common/__tests__/drag-handle.test.jsx +88 -0
  91. package/src/line/common/__tests__/line.test.jsx +82 -0
  92. package/src/line/common/__tests__/utils.js +30 -0
  93. package/src/line/common/drag-handle.jsx +38 -16
  94. package/src/line/common/line.jsx +4 -6
  95. package/src/line/line-cross.js +56 -4
  96. package/src/line/line-dot.js +74 -10
  97. package/src/mark-label.jsx +83 -51
  98. package/src/plot/__tests__/__snapshots__/dot.test.jsx.snap +45 -0
  99. package/src/plot/__tests__/__snapshots__/line.test.jsx.snap +45 -0
  100. package/src/plot/__tests__/dot.test.jsx +38 -0
  101. package/src/plot/__tests__/line.test.jsx +38 -0
  102. package/src/plot/__tests__/utils.js +30 -0
  103. package/src/plot/common/__tests__/__snapshots__/plot.test.jsx.snap +97 -0
  104. package/src/plot/common/__tests__/plot.test.jsx +70 -0
  105. package/src/plot/common/__tests__/utils.js +30 -0
  106. package/src/plot/common/plot.jsx +127 -10
  107. package/src/plot/dot.js +19 -3
  108. package/src/plot/line.js +18 -4
  109. package/src/tool-menu.jsx +0 -4
@@ -0,0 +1,569 @@
1
+ // Jest Snapshot v1, https://goo.gl/fbAQLP
2
+
3
+ exports[`ChartAxes snapshot renders 1`] = `
4
+ <RawChartAxes
5
+ className="className"
6
+ classes={
7
+ Object {
8
+ "axis": "RawChartAxes-axis-1",
9
+ "axisLine": "RawChartAxes-axisLine-2",
10
+ "correctIcon": "RawChartAxes-correctIcon-9",
11
+ "correctnessIcon": "RawChartAxes-correctnessIcon-7",
12
+ "customColor": "RawChartAxes-customColor-6",
13
+ "dottedLine": "RawChartAxes-dottedLine-4",
14
+ "error": "RawChartAxes-error-5",
15
+ "incorrectIcon": "RawChartAxes-incorrectIcon-8",
16
+ "tick": "RawChartAxes-tick-3",
17
+ "tickContainer": "RawChartAxes-tickContainer-10",
18
+ }
19
+ }
20
+ graphProps={
21
+ Object {
22
+ "domain": Object {
23
+ "max": 1,
24
+ "min": 0,
25
+ "step": 1,
26
+ },
27
+ "range": Object {
28
+ "max": 1,
29
+ "min": 0,
30
+ "step": 1,
31
+ },
32
+ "scale": Object {
33
+ "x": [MockFunction],
34
+ "y": [MockFunction],
35
+ },
36
+ "size": Object {
37
+ "height": 400,
38
+ "width": 400,
39
+ },
40
+ "snap": Object {
41
+ "x": [MockFunction],
42
+ "y": [MockFunction],
43
+ },
44
+ }
45
+ }
46
+ theme={
47
+ Object {
48
+ "breakpoints": Object {
49
+ "between": [Function],
50
+ "down": [Function],
51
+ "keys": Array [
52
+ "xs",
53
+ "sm",
54
+ "md",
55
+ "lg",
56
+ "xl",
57
+ ],
58
+ "only": [Function],
59
+ "up": [Function],
60
+ "values": Object {
61
+ "lg": 1280,
62
+ "md": 960,
63
+ "sm": 600,
64
+ "xl": 1920,
65
+ "xs": 0,
66
+ },
67
+ "width": [Function],
68
+ },
69
+ "direction": "ltr",
70
+ "mixins": Object {
71
+ "gutters": [Function],
72
+ "toolbar": Object {
73
+ "@media (min-width:0px) and (orientation: landscape)": Object {
74
+ "minHeight": 48,
75
+ },
76
+ "@media (min-width:600px)": Object {
77
+ "minHeight": 64,
78
+ },
79
+ "minHeight": 56,
80
+ },
81
+ },
82
+ "overrides": Object {},
83
+ "palette": Object {
84
+ "action": Object {
85
+ "active": "rgba(0, 0, 0, 0.54)",
86
+ "disabled": "rgba(0, 0, 0, 0.26)",
87
+ "disabledBackground": "rgba(0, 0, 0, 0.12)",
88
+ "hover": "rgba(0, 0, 0, 0.08)",
89
+ "hoverOpacity": 0.08,
90
+ "selected": "rgba(0, 0, 0, 0.14)",
91
+ },
92
+ "augmentColor": [Function],
93
+ "background": Object {
94
+ "default": "#fafafa",
95
+ "paper": "#fff",
96
+ },
97
+ "common": Object {
98
+ "black": "#000",
99
+ "white": "#fff",
100
+ },
101
+ "contrastThreshold": 3,
102
+ "divider": "rgba(0, 0, 0, 0.12)",
103
+ "error": Object {
104
+ "contrastText": "#fff",
105
+ "dark": "#d32f2f",
106
+ "light": "#e57373",
107
+ "main": "#f44336",
108
+ },
109
+ "getContrastText": [Function],
110
+ "grey": Object {
111
+ "100": "#f5f5f5",
112
+ "200": "#eeeeee",
113
+ "300": "#e0e0e0",
114
+ "400": "#bdbdbd",
115
+ "50": "#fafafa",
116
+ "500": "#9e9e9e",
117
+ "600": "#757575",
118
+ "700": "#616161",
119
+ "800": "#424242",
120
+ "900": "#212121",
121
+ "A100": "#d5d5d5",
122
+ "A200": "#aaaaaa",
123
+ "A400": "#303030",
124
+ "A700": "#616161",
125
+ },
126
+ "primary": Object {
127
+ "contrastText": "#fff",
128
+ "dark": "#303f9f",
129
+ "light": "#7986cb",
130
+ "main": "#3f51b5",
131
+ },
132
+ "secondary": Object {
133
+ "contrastText": "#fff",
134
+ "dark": "#c51162",
135
+ "light": "#ff4081",
136
+ "main": "#f50057",
137
+ },
138
+ "text": Object {
139
+ "disabled": "rgba(0, 0, 0, 0.38)",
140
+ "hint": "rgba(0, 0, 0, 0.38)",
141
+ "primary": "rgba(0, 0, 0, 0.87)",
142
+ "secondary": "rgba(0, 0, 0, 0.54)",
143
+ },
144
+ "tonalOffset": 0.2,
145
+ "type": "light",
146
+ },
147
+ "props": Object {},
148
+ "shadows": Array [
149
+ "none",
150
+ "0px 1px 3px 0px rgba(0,0,0,0.2),0px 1px 1px 0px rgba(0,0,0,0.14),0px 2px 1px -1px rgba(0,0,0,0.12)",
151
+ "0px 1px 5px 0px rgba(0,0,0,0.2),0px 2px 2px 0px rgba(0,0,0,0.14),0px 3px 1px -2px rgba(0,0,0,0.12)",
152
+ "0px 1px 8px 0px rgba(0,0,0,0.2),0px 3px 4px 0px rgba(0,0,0,0.14),0px 3px 3px -2px rgba(0,0,0,0.12)",
153
+ "0px 2px 4px -1px rgba(0,0,0,0.2),0px 4px 5px 0px rgba(0,0,0,0.14),0px 1px 10px 0px rgba(0,0,0,0.12)",
154
+ "0px 3px 5px -1px rgba(0,0,0,0.2),0px 5px 8px 0px rgba(0,0,0,0.14),0px 1px 14px 0px rgba(0,0,0,0.12)",
155
+ "0px 3px 5px -1px rgba(0,0,0,0.2),0px 6px 10px 0px rgba(0,0,0,0.14),0px 1px 18px 0px rgba(0,0,0,0.12)",
156
+ "0px 4px 5px -2px rgba(0,0,0,0.2),0px 7px 10px 1px rgba(0,0,0,0.14),0px 2px 16px 1px rgba(0,0,0,0.12)",
157
+ "0px 5px 5px -3px rgba(0,0,0,0.2),0px 8px 10px 1px rgba(0,0,0,0.14),0px 3px 14px 2px rgba(0,0,0,0.12)",
158
+ "0px 5px 6px -3px rgba(0,0,0,0.2),0px 9px 12px 1px rgba(0,0,0,0.14),0px 3px 16px 2px rgba(0,0,0,0.12)",
159
+ "0px 6px 6px -3px rgba(0,0,0,0.2),0px 10px 14px 1px rgba(0,0,0,0.14),0px 4px 18px 3px rgba(0,0,0,0.12)",
160
+ "0px 6px 7px -4px rgba(0,0,0,0.2),0px 11px 15px 1px rgba(0,0,0,0.14),0px 4px 20px 3px rgba(0,0,0,0.12)",
161
+ "0px 7px 8px -4px rgba(0,0,0,0.2),0px 12px 17px 2px rgba(0,0,0,0.14),0px 5px 22px 4px rgba(0,0,0,0.12)",
162
+ "0px 7px 8px -4px rgba(0,0,0,0.2),0px 13px 19px 2px rgba(0,0,0,0.14),0px 5px 24px 4px rgba(0,0,0,0.12)",
163
+ "0px 7px 9px -4px rgba(0,0,0,0.2),0px 14px 21px 2px rgba(0,0,0,0.14),0px 5px 26px 4px rgba(0,0,0,0.12)",
164
+ "0px 8px 9px -5px rgba(0,0,0,0.2),0px 15px 22px 2px rgba(0,0,0,0.14),0px 6px 28px 5px rgba(0,0,0,0.12)",
165
+ "0px 8px 10px -5px rgba(0,0,0,0.2),0px 16px 24px 2px rgba(0,0,0,0.14),0px 6px 30px 5px rgba(0,0,0,0.12)",
166
+ "0px 8px 11px -5px rgba(0,0,0,0.2),0px 17px 26px 2px rgba(0,0,0,0.14),0px 6px 32px 5px rgba(0,0,0,0.12)",
167
+ "0px 9px 11px -5px rgba(0,0,0,0.2),0px 18px 28px 2px rgba(0,0,0,0.14),0px 7px 34px 6px rgba(0,0,0,0.12)",
168
+ "0px 9px 12px -6px rgba(0,0,0,0.2),0px 19px 29px 2px rgba(0,0,0,0.14),0px 7px 36px 6px rgba(0,0,0,0.12)",
169
+ "0px 10px 13px -6px rgba(0,0,0,0.2),0px 20px 31px 3px rgba(0,0,0,0.14),0px 8px 38px 7px rgba(0,0,0,0.12)",
170
+ "0px 10px 13px -6px rgba(0,0,0,0.2),0px 21px 33px 3px rgba(0,0,0,0.14),0px 8px 40px 7px rgba(0,0,0,0.12)",
171
+ "0px 10px 14px -6px rgba(0,0,0,0.2),0px 22px 35px 3px rgba(0,0,0,0.14),0px 8px 42px 7px rgba(0,0,0,0.12)",
172
+ "0px 11px 14px -7px rgba(0,0,0,0.2),0px 23px 36px 3px rgba(0,0,0,0.14),0px 9px 44px 8px rgba(0,0,0,0.12)",
173
+ "0px 11px 15px -7px rgba(0,0,0,0.2),0px 24px 38px 3px rgba(0,0,0,0.14),0px 9px 46px 8px rgba(0,0,0,0.12)",
174
+ ],
175
+ "shape": Object {
176
+ "borderRadius": 4,
177
+ },
178
+ "spacing": Object {
179
+ "unit": 8,
180
+ },
181
+ "transitions": Object {
182
+ "create": [Function],
183
+ "duration": Object {
184
+ "complex": 375,
185
+ "enteringScreen": 225,
186
+ "leavingScreen": 195,
187
+ "short": 250,
188
+ "shorter": 200,
189
+ "shortest": 150,
190
+ "standard": 300,
191
+ },
192
+ "easing": Object {
193
+ "easeIn": "cubic-bezier(0.4, 0, 1, 1)",
194
+ "easeInOut": "cubic-bezier(0.4, 0, 0.2, 1)",
195
+ "easeOut": "cubic-bezier(0.0, 0, 0.2, 1)",
196
+ "sharp": "cubic-bezier(0.4, 0, 0.6, 1)",
197
+ },
198
+ "getAutoHeightDuration": [Function],
199
+ },
200
+ "typography": Object {
201
+ "body1": Object {
202
+ "color": "rgba(0, 0, 0, 0.87)",
203
+ "fontFamily": "\\"Roboto\\", \\"Helvetica\\", \\"Arial\\", sans-serif",
204
+ "fontSize": "0.875rem",
205
+ "fontWeight": 400,
206
+ "lineHeight": "1.46429em",
207
+ },
208
+ "body1Next": Object {
209
+ "color": "rgba(0, 0, 0, 0.87)",
210
+ "fontFamily": "\\"Roboto\\", \\"Helvetica\\", \\"Arial\\", sans-serif",
211
+ "fontSize": "1rem",
212
+ "fontWeight": 400,
213
+ "letterSpacing": "0.00938em",
214
+ "lineHeight": 1.5,
215
+ },
216
+ "body2": Object {
217
+ "color": "rgba(0, 0, 0, 0.87)",
218
+ "fontFamily": "\\"Roboto\\", \\"Helvetica\\", \\"Arial\\", sans-serif",
219
+ "fontSize": "0.875rem",
220
+ "fontWeight": 500,
221
+ "lineHeight": "1.71429em",
222
+ },
223
+ "body2Next": Object {
224
+ "color": "rgba(0, 0, 0, 0.87)",
225
+ "fontFamily": "\\"Roboto\\", \\"Helvetica\\", \\"Arial\\", sans-serif",
226
+ "fontSize": "0.875rem",
227
+ "fontWeight": 400,
228
+ "letterSpacing": "0.01071em",
229
+ "lineHeight": 1.5,
230
+ },
231
+ "button": Object {
232
+ "color": "rgba(0, 0, 0, 0.87)",
233
+ "fontFamily": "\\"Roboto\\", \\"Helvetica\\", \\"Arial\\", sans-serif",
234
+ "fontSize": "0.875rem",
235
+ "fontWeight": 500,
236
+ "textTransform": "uppercase",
237
+ },
238
+ "buttonNext": Object {
239
+ "color": "rgba(0, 0, 0, 0.87)",
240
+ "fontFamily": "\\"Roboto\\", \\"Helvetica\\", \\"Arial\\", sans-serif",
241
+ "fontSize": "0.875rem",
242
+ "fontWeight": 500,
243
+ "letterSpacing": "0.02857em",
244
+ "lineHeight": 1.75,
245
+ "textTransform": "uppercase",
246
+ },
247
+ "caption": Object {
248
+ "color": "rgba(0, 0, 0, 0.54)",
249
+ "fontFamily": "\\"Roboto\\", \\"Helvetica\\", \\"Arial\\", sans-serif",
250
+ "fontSize": "0.75rem",
251
+ "fontWeight": 400,
252
+ "lineHeight": "1.375em",
253
+ },
254
+ "captionNext": Object {
255
+ "color": "rgba(0, 0, 0, 0.87)",
256
+ "fontFamily": "\\"Roboto\\", \\"Helvetica\\", \\"Arial\\", sans-serif",
257
+ "fontSize": "0.75rem",
258
+ "fontWeight": 400,
259
+ "letterSpacing": "0.03333em",
260
+ "lineHeight": 1.66,
261
+ },
262
+ "display1": Object {
263
+ "color": "rgba(0, 0, 0, 0.54)",
264
+ "fontFamily": "\\"Roboto\\", \\"Helvetica\\", \\"Arial\\", sans-serif",
265
+ "fontSize": "2.125rem",
266
+ "fontWeight": 400,
267
+ "lineHeight": "1.20588em",
268
+ },
269
+ "display2": Object {
270
+ "color": "rgba(0, 0, 0, 0.54)",
271
+ "fontFamily": "\\"Roboto\\", \\"Helvetica\\", \\"Arial\\", sans-serif",
272
+ "fontSize": "2.8125rem",
273
+ "fontWeight": 400,
274
+ "lineHeight": "1.13333em",
275
+ "marginLeft": "-.02em",
276
+ },
277
+ "display3": Object {
278
+ "color": "rgba(0, 0, 0, 0.54)",
279
+ "fontFamily": "\\"Roboto\\", \\"Helvetica\\", \\"Arial\\", sans-serif",
280
+ "fontSize": "3.5rem",
281
+ "fontWeight": 400,
282
+ "letterSpacing": "-.02em",
283
+ "lineHeight": "1.30357em",
284
+ "marginLeft": "-.02em",
285
+ },
286
+ "display4": Object {
287
+ "color": "rgba(0, 0, 0, 0.54)",
288
+ "fontFamily": "\\"Roboto\\", \\"Helvetica\\", \\"Arial\\", sans-serif",
289
+ "fontSize": "7rem",
290
+ "fontWeight": 300,
291
+ "letterSpacing": "-.04em",
292
+ "lineHeight": "1.14286em",
293
+ "marginLeft": "-.04em",
294
+ },
295
+ "fontFamily": "\\"Roboto\\", \\"Helvetica\\", \\"Arial\\", sans-serif",
296
+ "fontSize": 14,
297
+ "fontWeightLight": 300,
298
+ "fontWeightMedium": 500,
299
+ "fontWeightRegular": 400,
300
+ "h1": Object {
301
+ "color": "rgba(0, 0, 0, 0.87)",
302
+ "fontFamily": "\\"Roboto\\", \\"Helvetica\\", \\"Arial\\", sans-serif",
303
+ "fontSize": "6rem",
304
+ "fontWeight": 300,
305
+ "letterSpacing": "-0.01562em",
306
+ "lineHeight": 1,
307
+ },
308
+ "h2": Object {
309
+ "color": "rgba(0, 0, 0, 0.87)",
310
+ "fontFamily": "\\"Roboto\\", \\"Helvetica\\", \\"Arial\\", sans-serif",
311
+ "fontSize": "3.75rem",
312
+ "fontWeight": 300,
313
+ "letterSpacing": "-0.00833em",
314
+ "lineHeight": 1,
315
+ },
316
+ "h3": Object {
317
+ "color": "rgba(0, 0, 0, 0.87)",
318
+ "fontFamily": "\\"Roboto\\", \\"Helvetica\\", \\"Arial\\", sans-serif",
319
+ "fontSize": "3rem",
320
+ "fontWeight": 400,
321
+ "letterSpacing": "0em",
322
+ "lineHeight": 1.04,
323
+ },
324
+ "h4": Object {
325
+ "color": "rgba(0, 0, 0, 0.87)",
326
+ "fontFamily": "\\"Roboto\\", \\"Helvetica\\", \\"Arial\\", sans-serif",
327
+ "fontSize": "2.125rem",
328
+ "fontWeight": 400,
329
+ "letterSpacing": "0.00735em",
330
+ "lineHeight": 1.17,
331
+ },
332
+ "h5": Object {
333
+ "color": "rgba(0, 0, 0, 0.87)",
334
+ "fontFamily": "\\"Roboto\\", \\"Helvetica\\", \\"Arial\\", sans-serif",
335
+ "fontSize": "1.5rem",
336
+ "fontWeight": 400,
337
+ "letterSpacing": "0em",
338
+ "lineHeight": 1.33,
339
+ },
340
+ "h6": Object {
341
+ "color": "rgba(0, 0, 0, 0.87)",
342
+ "fontFamily": "\\"Roboto\\", \\"Helvetica\\", \\"Arial\\", sans-serif",
343
+ "fontSize": "1.25rem",
344
+ "fontWeight": 500,
345
+ "letterSpacing": "0.0075em",
346
+ "lineHeight": 1.6,
347
+ },
348
+ "headline": Object {
349
+ "color": "rgba(0, 0, 0, 0.87)",
350
+ "fontFamily": "\\"Roboto\\", \\"Helvetica\\", \\"Arial\\", sans-serif",
351
+ "fontSize": "1.5rem",
352
+ "fontWeight": 400,
353
+ "lineHeight": "1.35417em",
354
+ },
355
+ "overline": Object {
356
+ "color": "rgba(0, 0, 0, 0.87)",
357
+ "fontFamily": "\\"Roboto\\", \\"Helvetica\\", \\"Arial\\", sans-serif",
358
+ "fontSize": "0.75rem",
359
+ "fontWeight": 400,
360
+ "letterSpacing": "0.08333em",
361
+ "lineHeight": 2.66,
362
+ "textTransform": "uppercase",
363
+ },
364
+ "pxToRem": [Function],
365
+ "round": [Function],
366
+ "subheading": Object {
367
+ "color": "rgba(0, 0, 0, 0.87)",
368
+ "fontFamily": "\\"Roboto\\", \\"Helvetica\\", \\"Arial\\", sans-serif",
369
+ "fontSize": "1rem",
370
+ "fontWeight": 400,
371
+ "lineHeight": "1.5em",
372
+ },
373
+ "subtitle1": Object {
374
+ "color": "rgba(0, 0, 0, 0.87)",
375
+ "fontFamily": "\\"Roboto\\", \\"Helvetica\\", \\"Arial\\", sans-serif",
376
+ "fontSize": "1rem",
377
+ "fontWeight": 400,
378
+ "letterSpacing": "0.00938em",
379
+ "lineHeight": 1.75,
380
+ },
381
+ "subtitle2": Object {
382
+ "color": "rgba(0, 0, 0, 0.87)",
383
+ "fontFamily": "\\"Roboto\\", \\"Helvetica\\", \\"Arial\\", sans-serif",
384
+ "fontSize": "0.875rem",
385
+ "fontWeight": 500,
386
+ "letterSpacing": "0.00714em",
387
+ "lineHeight": 1.57,
388
+ },
389
+ "title": Object {
390
+ "color": "rgba(0, 0, 0, 0.87)",
391
+ "fontFamily": "\\"Roboto\\", \\"Helvetica\\", \\"Arial\\", sans-serif",
392
+ "fontSize": "1.3125rem",
393
+ "fontWeight": 500,
394
+ "lineHeight": "1.16667em",
395
+ },
396
+ "useNextVariants": false,
397
+ },
398
+ "zIndex": Object {
399
+ "appBar": 1100,
400
+ "drawer": 1200,
401
+ "mobileStepper": 1000,
402
+ "modal": 1300,
403
+ "snackbar": 1400,
404
+ "tooltip": 1500,
405
+ },
406
+ }
407
+ }
408
+ xBand={
409
+ Object {
410
+ "bandwidth": [Function],
411
+ }
412
+ }
413
+ />
414
+ `;
415
+
416
+ exports[`RawChartAxes snapshot renders 1`] = `
417
+ <Fragment>
418
+ <k
419
+ labelProps={
420
+ Object {
421
+ "y": NaN,
422
+ }
423
+ }
424
+ textLabelProps={[Function]}
425
+ tickComponent={[Function]}
426
+ tickFormat={[Function]}
427
+ top={0}
428
+ />
429
+ </Fragment>
430
+ `;
431
+
432
+ exports[`RawChartAxes snapshot renders if categories are not defined 1`] = `
433
+ <Fragment>
434
+ <k
435
+ labelProps={
436
+ Object {
437
+ "y": NaN,
438
+ }
439
+ }
440
+ textLabelProps={[Function]}
441
+ tickComponent={[Function]}
442
+ tickFormat={[Function]}
443
+ top={0}
444
+ />
445
+ </Fragment>
446
+ `;
447
+
448
+ exports[`RawChartAxes snapshot renders if graphProps is not defined 1`] = `
449
+ <Fragment>
450
+ <k
451
+ labelProps={
452
+ Object {
453
+ "y": NaN,
454
+ }
455
+ }
456
+ textLabelProps={[Function]}
457
+ tickComponent={[Function]}
458
+ tickFormat={[Function]}
459
+ />
460
+ </Fragment>
461
+ `;
462
+
463
+ exports[`TickComponent snapshot renders 1`] = `""`;
464
+
465
+ exports[`TickComponent snapshot1 renders 1`] = `
466
+ <g>
467
+ <foreignObject
468
+ height={4}
469
+ style={
470
+ Object {
471
+ "overflow": "visible",
472
+ "pointerEvents": "none",
473
+ }
474
+ }
475
+ x={NaN}
476
+ y={18}
477
+ >
478
+ <WithStyles(MarkLabel)
479
+ disabled={true}
480
+ graphProps={
481
+ Object {
482
+ "domain": Object {
483
+ "max": 1,
484
+ "min": 0,
485
+ "step": 1,
486
+ },
487
+ "range": Object {
488
+ "max": 1,
489
+ "min": 0,
490
+ "step": 1,
491
+ },
492
+ "scale": Object {
493
+ "x": [MockFunction],
494
+ "y": [MockFunction],
495
+ },
496
+ "size": Object {
497
+ "height": 400,
498
+ "width": 400,
499
+ },
500
+ "snap": Object {
501
+ "x": [MockFunction],
502
+ "y": [MockFunction],
503
+ },
504
+ }
505
+ }
506
+ isHiddenLabel={true}
507
+ mark={
508
+ Object {
509
+ "label": "test",
510
+ "value": 1,
511
+ }
512
+ }
513
+ />
514
+ <WithStyles(MarkLabel)
515
+ disabled={true}
516
+ graphProps={
517
+ Object {
518
+ "domain": Object {
519
+ "max": 1,
520
+ "min": 0,
521
+ "step": 1,
522
+ },
523
+ "range": Object {
524
+ "max": 1,
525
+ "min": 0,
526
+ "step": 1,
527
+ },
528
+ "scale": Object {
529
+ "x": [MockFunction],
530
+ "y": [MockFunction],
531
+ },
532
+ "size": Object {
533
+ "height": 400,
534
+ "width": 400,
535
+ },
536
+ "snap": Object {
537
+ "x": [MockFunction],
538
+ "y": [MockFunction],
539
+ },
540
+ }
541
+ }
542
+ inputRef={[Function]}
543
+ limitCharacters={true}
544
+ mark={
545
+ Object {
546
+ "label": "test",
547
+ "value": 1,
548
+ }
549
+ }
550
+ onChange={[Function]}
551
+ />
552
+ </foreignObject>
553
+ <foreignObject
554
+ height={4}
555
+ style={
556
+ Object {
557
+ "overflow": "visible",
558
+ "pointerEvents": "visible",
559
+ }
560
+ }
561
+ x={NaN}
562
+ y={NaN}
563
+ >
564
+ <WithStyles(AlertDialog)
565
+ open={false}
566
+ />
567
+ </foreignObject>
568
+ </g>
569
+ `;
@@ -0,0 +1,14 @@
1
+ // Jest Snapshot v1, https://goo.gl/fbAQLP
2
+
3
+ exports[`ChartType renders snapshot 1`] = `
4
+ <Component
5
+ classes={
6
+ Object {
7
+ "chartType": "Component-chartType-1",
8
+ "chartTypeLabel": "Component-chartTypeLabel-2",
9
+ }
10
+ }
11
+ onChange={[MockFunction]}
12
+ value="bar"
13
+ />
14
+ `;