@pie-lib/charting 5.36.3-next.2 → 5.36.4-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.
Files changed (143) hide show
  1. package/CHANGELOG.md +17 -96
  2. package/lib/__tests__/axes.test.js +129 -0
  3. package/lib/__tests__/chart-setup.test.js +57 -0
  4. package/lib/__tests__/chart-type.test.js +25 -0
  5. package/lib/__tests__/chart.test.js +103 -0
  6. package/lib/__tests__/grid.test.js +39 -0
  7. package/lib/__tests__/mark-label.test.js +46 -0
  8. package/lib/__tests__/utils.js +56 -0
  9. package/lib/__tests__/utils.test.js +186 -0
  10. package/lib/actions-button.js +61 -91
  11. package/lib/actions-button.js.map +1 -1
  12. package/lib/axes.js +163 -239
  13. package/lib/axes.js.map +1 -1
  14. package/lib/bars/__tests__/bar.test.js +53 -0
  15. package/lib/bars/__tests__/histogram.test.js +53 -0
  16. package/lib/bars/__tests__/utils.js +50 -0
  17. package/lib/bars/bar.js +14 -42
  18. package/lib/bars/bar.js.map +1 -1
  19. package/lib/bars/common/__tests__/bars.test.js +76 -0
  20. package/lib/bars/common/__tests__/utils.js +50 -0
  21. package/lib/bars/common/bars.js +62 -138
  22. package/lib/bars/common/bars.js.map +1 -1
  23. package/lib/bars/common/correct-check-icon.js +6 -7
  24. package/lib/bars/common/correct-check-icon.js.map +1 -1
  25. package/lib/bars/histogram.js +14 -42
  26. package/lib/bars/histogram.js.map +1 -1
  27. package/lib/chart-setup.js +120 -196
  28. package/lib/chart-setup.js.map +1 -1
  29. package/lib/chart-type.js +53 -44
  30. package/lib/chart-type.js.map +1 -1
  31. package/lib/chart-types.js +2 -11
  32. package/lib/chart-types.js.map +1 -1
  33. package/lib/chart.js +74 -152
  34. package/lib/chart.js.map +1 -1
  35. package/lib/common/__tests__/drag-handle.test.js +74 -0
  36. package/lib/common/__tests__/utils.js +50 -0
  37. package/lib/common/correctness-indicators.js +110 -53
  38. package/lib/common/correctness-indicators.js.map +1 -1
  39. package/lib/common/drag-handle.js +66 -109
  40. package/lib/common/drag-handle.js.map +1 -1
  41. package/lib/common/drag-icon.js +13 -13
  42. package/lib/common/drag-icon.js.map +1 -1
  43. package/lib/common/styles.js +7 -25
  44. package/lib/common/styles.js.map +1 -1
  45. package/lib/grid.js +44 -84
  46. package/lib/grid.js.map +1 -1
  47. package/lib/index.js +1 -7
  48. package/lib/index.js.map +1 -1
  49. package/lib/key-legend.js +64 -88
  50. package/lib/key-legend.js.map +1 -1
  51. package/lib/line/__tests__/line-cross.test.js +47 -0
  52. package/lib/line/__tests__/line-dot.test.js +47 -0
  53. package/lib/line/__tests__/utils.js +56 -0
  54. package/lib/line/common/__tests__/drag-handle.test.js +74 -0
  55. package/lib/line/common/__tests__/line.test.js +92 -0
  56. package/lib/line/common/__tests__/utils.js +50 -0
  57. package/lib/line/common/drag-handle.js +73 -101
  58. package/lib/line/common/drag-handle.js.map +1 -1
  59. package/lib/line/common/line.js +51 -97
  60. package/lib/line/common/line.js.map +1 -1
  61. package/lib/line/line-cross.js +80 -90
  62. package/lib/line/line-cross.js.map +1 -1
  63. package/lib/line/line-dot.js +59 -77
  64. package/lib/line/line-dot.js.map +1 -1
  65. package/lib/mark-label.js +85 -120
  66. package/lib/mark-label.js.map +1 -1
  67. package/lib/plot/__tests__/dot.test.js +53 -0
  68. package/lib/plot/__tests__/line.test.js +53 -0
  69. package/lib/plot/__tests__/utils.js +50 -0
  70. package/lib/plot/common/__tests__/plot.test.js +79 -0
  71. package/lib/plot/common/__tests__/utils.js +50 -0
  72. package/lib/plot/common/plot.js +91 -149
  73. package/lib/plot/common/plot.js.map +1 -1
  74. package/lib/plot/dot.js +33 -59
  75. package/lib/plot/dot.js.map +1 -1
  76. package/lib/plot/line.js +40 -65
  77. package/lib/plot/line.js.map +1 -1
  78. package/lib/tool-menu.js +48 -84
  79. package/lib/tool-menu.js.map +1 -1
  80. package/lib/utils.js +32 -87
  81. package/lib/utils.js.map +1 -1
  82. package/package.json +22 -24
  83. package/src/__tests__/axes.test.jsx +85 -100
  84. package/src/__tests__/chart-type.test.jsx +5 -11
  85. package/src/__tests__/chart.test.jsx +41 -50
  86. package/src/__tests__/grid.test.jsx +23 -11
  87. package/src/__tests__/mark-label.test.jsx +13 -11
  88. package/src/__tests__/utils.js +8 -2
  89. package/src/actions-button.jsx +44 -39
  90. package/src/axes.jsx +67 -81
  91. package/src/bars/__tests__/bar.test.jsx +19 -11
  92. package/src/bars/__tests__/histogram.test.jsx +19 -12
  93. package/src/bars/common/__tests__/bars.test.jsx +23 -24
  94. package/src/bars/common/bars.jsx +42 -69
  95. package/src/bars/common/correct-check-icon.jsx +5 -0
  96. package/src/chart-setup.jsx +75 -88
  97. package/src/chart-type.js +45 -22
  98. package/src/chart.jsx +19 -34
  99. package/src/common/__tests__/drag-handle.test.jsx +16 -45
  100. package/src/common/correctness-indicators.jsx +91 -13
  101. package/src/common/drag-handle.jsx +44 -64
  102. package/src/common/drag-icon.jsx +9 -2
  103. package/src/common/styles.js +1 -1
  104. package/src/grid.jsx +10 -14
  105. package/src/key-legend.jsx +62 -60
  106. package/src/line/__tests__/line-cross.test.jsx +16 -13
  107. package/src/line/__tests__/line-dot.test.jsx +16 -13
  108. package/src/line/__tests__/utils.js +8 -2
  109. package/src/line/common/__tests__/drag-handle.test.jsx +20 -45
  110. package/src/line/common/__tests__/line.test.jsx +27 -30
  111. package/src/line/common/drag-handle.jsx +61 -55
  112. package/src/line/common/line.jsx +21 -11
  113. package/src/line/line-cross.js +39 -14
  114. package/src/line/line-dot.js +27 -32
  115. package/src/mark-label.jsx +51 -47
  116. package/src/plot/__tests__/dot.test.jsx +19 -12
  117. package/src/plot/__tests__/line.test.jsx +19 -12
  118. package/src/plot/common/__tests__/plot.test.jsx +23 -24
  119. package/src/plot/common/plot.jsx +29 -24
  120. package/src/plot/dot.js +11 -4
  121. package/src/plot/line.js +16 -8
  122. package/src/tool-menu.jsx +26 -30
  123. package/src/utils.js +13 -9
  124. package/esm/index.css +0 -847
  125. package/esm/index.js +0 -231130
  126. package/esm/index.js.map +0 -1
  127. package/esm/package.json +0 -3
  128. package/src/__tests__/__snapshots__/axes.test.jsx.snap +0 -569
  129. package/src/__tests__/__snapshots__/chart-type.test.jsx.snap +0 -14
  130. package/src/__tests__/__snapshots__/chart.test.jsx.snap +0 -595
  131. package/src/__tests__/__snapshots__/grid.test.jsx.snap +0 -72
  132. package/src/__tests__/__snapshots__/mark-label.test.jsx.snap +0 -73
  133. package/src/bars/__tests__/__snapshots__/bar.test.jsx.snap +0 -43
  134. package/src/bars/__tests__/__snapshots__/histogram.test.jsx.snap +0 -45
  135. package/src/bars/common/__tests__/__snapshots__/bars.test.jsx.snap +0 -110
  136. package/src/common/__tests__/__snapshots__/drag-handle.test.jsx.snap +0 -48
  137. package/src/line/__tests__/__snapshots__/line-cross.test.jsx.snap +0 -45
  138. package/src/line/__tests__/__snapshots__/line-dot.test.jsx.snap +0 -45
  139. package/src/line/common/__tests__/__snapshots__/drag-handle.test.jsx.snap +0 -49
  140. package/src/line/common/__tests__/__snapshots__/line.test.jsx.snap +0 -143
  141. package/src/plot/__tests__/__snapshots__/dot.test.jsx.snap +0 -45
  142. package/src/plot/__tests__/__snapshots__/line.test.jsx.snap +0 -45
  143. package/src/plot/common/__tests__/__snapshots__/plot.test.jsx.snap +0 -97
package/esm/package.json DELETED
@@ -1,3 +0,0 @@
1
- {
2
- "type": "module"
3
- }
@@ -1,569 +0,0 @@
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
- `;
@@ -1,14 +0,0 @@
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
- `;