@hero-design/rn 8.99.4-alpha.0 → 8.100.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 (122) hide show
  1. package/.turbo/turbo-build.log +8 -3
  2. package/CHANGELOG.md +19 -2
  3. package/es/index.js +5622 -691
  4. package/jest.config.js +1 -1
  5. package/lib/index.js +5546 -614
  6. package/package.json +4 -2
  7. package/src/components/Avatar/AvatarStack/utils.ts +6 -4
  8. package/src/components/Badge/Status.tsx +1 -1
  9. package/src/components/Badge/__tests__/Status.spec.tsx +20 -0
  10. package/src/components/Badge/__tests__/__snapshots__/Status.spec.tsx.snap +2 -0
  11. package/src/components/Chart/ChartSelect/StyledChartSelect.tsx +9 -0
  12. package/src/components/Chart/ChartSelect/__tests__/StyledChartSelect.spec.tsx +15 -0
  13. package/src/components/Chart/ChartSelect/__tests__/__snapshots__/StyledChartSelect.spec.tsx.snap +20 -0
  14. package/src/components/Chart/ChartSelect/__tests__/index.spec.tsx +111 -0
  15. package/src/components/Chart/ChartSelect/index.tsx +137 -0
  16. package/src/components/Chart/ColumnChart/ColumnChartContent.tsx +84 -0
  17. package/src/components/Chart/ColumnChart/Segment.tsx +66 -0
  18. package/src/components/Chart/ColumnChart/StackedSegment.tsx +99 -0
  19. package/src/components/Chart/ColumnChart/StyledColumnChart.tsx +9 -0
  20. package/src/components/Chart/ColumnChart/__tests__/ColumnChartContent.spec.tsx +68 -0
  21. package/src/components/Chart/ColumnChart/__tests__/Segment.spec.tsx +99 -0
  22. package/src/components/Chart/ColumnChart/__tests__/StackedSegment.spec.tsx +115 -0
  23. package/src/components/Chart/ColumnChart/__tests__/__snapshots__/StackedSegment.spec.tsx.snap +120 -0
  24. package/src/components/Chart/ColumnChart/__tests__/__snapshots__/index.spec.tsx.snap +1405 -0
  25. package/src/components/Chart/ColumnChart/__tests__/index.spec.tsx +134 -0
  26. package/src/components/Chart/ColumnChart/index.tsx +216 -0
  27. package/src/components/Chart/Line/Line.tsx +81 -0
  28. package/src/components/Chart/Line/__tests__/Line.spec.tsx +148 -0
  29. package/src/components/Chart/Line/__tests__/__snapshots__/Line.spec.tsx.snap +56 -0
  30. package/src/components/Chart/Line/__tests__/__snapshots__/index.spec.tsx.snap +1461 -0
  31. package/src/components/Chart/Line/__tests__/index.spec.tsx +112 -0
  32. package/src/components/Chart/Line/index.tsx +143 -0
  33. package/src/components/Chart/StyledChart.tsx +16 -0
  34. package/src/components/Chart/index.tsx +13 -0
  35. package/src/components/Chart/shared/AxisLabel.tsx +25 -0
  36. package/src/components/Chart/shared/ChartFrame.tsx +131 -0
  37. package/src/components/Chart/shared/ChartHeader.tsx +19 -0
  38. package/src/components/Chart/shared/EmptyState.tsx +83 -0
  39. package/src/components/Chart/shared/XAxis.tsx +69 -0
  40. package/src/components/Chart/shared/XAxisGrid.tsx +42 -0
  41. package/src/components/Chart/shared/YAxis.tsx +104 -0
  42. package/src/components/Chart/shared/YAxisGrid.tsx +58 -0
  43. package/src/components/Chart/shared/__tests__/ChartFrame.spec.tsx +125 -0
  44. package/src/components/Chart/shared/__tests__/ChartHeader.spec.tsx +22 -0
  45. package/src/components/Chart/shared/__tests__/EmptyState.spec.tsx +29 -0
  46. package/src/components/Chart/shared/__tests__/XAXisGrid.spec.tsx +30 -0
  47. package/src/components/Chart/shared/__tests__/XAxis.spec.tsx +42 -0
  48. package/src/components/Chart/shared/__tests__/YAxis.spec.tsx +72 -0
  49. package/src/components/Chart/shared/__tests__/YAxisGrid.spec.tsx +35 -0
  50. package/src/components/Chart/shared/__tests__/__snapshots__/ChartFrame.spec.tsx.snap +3058 -0
  51. package/src/components/Chart/shared/__tests__/__snapshots__/ChartHeader.spec.tsx.snap +160 -0
  52. package/src/components/Chart/shared/__tests__/__snapshots__/EmptyState.spec.tsx.snap +155 -0
  53. package/src/components/Chart/shared/__tests__/__snapshots__/XAXisGrid.spec.tsx.snap +197 -0
  54. package/src/components/Chart/shared/__tests__/__snapshots__/XAxis.spec.tsx.snap +369 -0
  55. package/src/components/Chart/shared/__tests__/__snapshots__/YAxis.spec.tsx.snap +1013 -0
  56. package/src/components/Chart/shared/__tests__/__snapshots__/YAxisGrid.spec.tsx.snap +228 -0
  57. package/src/components/Chart/shared/__tests__/niceNumbers.spec.tsx +127 -0
  58. package/src/components/Chart/shared/constants.ts +2 -0
  59. package/src/components/Chart/shared/hooks/useColorScale.ts +25 -0
  60. package/src/components/Chart/shared/hooks/useGenerateTicks.ts +27 -0
  61. package/src/components/Chart/shared/hooks/useScaleBandX.ts +17 -0
  62. package/src/components/Chart/shared/hooks/useScaleLinearY.ts +30 -0
  63. package/src/components/Chart/shared/niceNumbers.ts +68 -0
  64. package/src/components/Chart/types.ts +100 -0
  65. package/src/components/Select/MultiSelect/OptionList.tsx +1 -1
  66. package/src/components/Select/MultiSelect/index.tsx +2 -6
  67. package/src/components/Select/MultiSelect/utils.ts +1 -1
  68. package/src/components/Select/SingleSelect/OptionList.tsx +1 -1
  69. package/src/components/Select/SingleSelect/index.tsx +2 -7
  70. package/src/components/Select/__tests__/helpers.spec.tsx +0 -36
  71. package/src/components/Select/helpers.tsx +0 -75
  72. package/src/components/Switch/SelectorSwitch/__tests__/__snapshots__/Option.spec.tsx.snap +3 -0
  73. package/src/components/Switch/SelectorSwitch/__tests__/__snapshots__/index.spec.tsx.snap +1 -0
  74. package/src/components/Tabs/StyledScrollableTabs.tsx +1 -1
  75. package/src/components/Tabs/__tests__/__snapshots__/ScrollableTabs.spec.tsx.snap +3 -0
  76. package/src/components/Tabs/__tests__/__snapshots__/ScrollableTabsHeader.spec.tsx.snap +2 -0
  77. package/src/components/Tabs/__tests__/__snapshots__/TabWithBadge.spec.tsx.snap +1 -0
  78. package/src/components/Tabs/__tests__/__snapshots__/index.spec.tsx.snap +3 -0
  79. package/src/index.ts +2 -0
  80. package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +28 -0
  81. package/src/theme/components/chart.ts +28 -0
  82. package/src/theme/components/columnChart.ts +15 -0
  83. package/src/theme/getTheme.ts +6 -0
  84. package/src/types.ts +4 -0
  85. package/src/utils/__tests__/helpers.spec.ts +36 -1
  86. package/src/utils/helpers.ts +76 -1
  87. package/stats/8.100.0/rn-stats.html +4842 -0
  88. package/stats/8.99.4/rn-stats.html +4842 -0
  89. package/types/components/Badge/Status.d.ts +0 -1
  90. package/types/components/Chart/ChartSelect/StyledChartSelect.d.ts +8 -0
  91. package/types/components/Chart/ChartSelect/index.d.ts +63 -0
  92. package/types/components/Chart/ColumnChart/ColumnChartContent.d.ts +25 -0
  93. package/types/components/Chart/ColumnChart/Segment.d.ts +14 -0
  94. package/types/components/Chart/ColumnChart/StackedSegment.d.ts +28 -0
  95. package/types/components/Chart/ColumnChart/StyledColumnChart.d.ts +8 -0
  96. package/types/components/Chart/ColumnChart/index.d.ts +80 -0
  97. package/types/components/Chart/Line/Line.d.ts +21 -0
  98. package/types/components/Chart/Line/index.d.ts +35 -0
  99. package/types/components/Chart/StyledChart.d.ts +9 -0
  100. package/types/components/Chart/index.d.ts +9 -0
  101. package/types/components/Chart/shared/AxisLabel.d.ts +7 -0
  102. package/types/components/Chart/shared/ChartFrame.d.ts +30 -0
  103. package/types/components/Chart/shared/ChartHeader.d.ts +8 -0
  104. package/types/components/Chart/shared/EmptyState.d.ts +8 -0
  105. package/types/components/Chart/shared/XAxis.d.ts +8 -0
  106. package/types/components/Chart/shared/XAxisGrid.d.ts +8 -0
  107. package/types/components/Chart/shared/YAxis.d.ts +10 -0
  108. package/types/components/Chart/shared/YAxisGrid.d.ts +10 -0
  109. package/types/components/Chart/shared/constants.d.ts +2 -0
  110. package/types/components/Chart/shared/hooks/useColorScale.d.ts +7 -0
  111. package/types/components/Chart/shared/hooks/useGenerateTicks.d.ts +6 -0
  112. package/types/components/Chart/shared/hooks/useScaleBandX.d.ts +8 -0
  113. package/types/components/Chart/shared/hooks/useScaleLinearY.d.ts +9 -0
  114. package/types/components/Chart/shared/niceNumbers.d.ts +12 -0
  115. package/types/components/Chart/types.d.ts +84 -0
  116. package/types/components/Select/helpers.d.ts +0 -5
  117. package/types/index.d.ts +2 -1
  118. package/types/theme/components/chart.d.ts +22 -0
  119. package/types/theme/components/columnChart.d.ts +10 -0
  120. package/types/theme/getTheme.d.ts +4 -0
  121. package/types/types.d.ts +3 -1
  122. package/types/utils/helpers.d.ts +5 -0
@@ -0,0 +1,1013 @@
1
+ // Jest Snapshot v1, https://goo.gl/fbAQLP
2
+
3
+ exports[`YAxis renders correctly on web 1`] = `
4
+ <View
5
+ style={
6
+ {
7
+ "flex": 1,
8
+ }
9
+ }
10
+ >
11
+ <RNSVGGroup
12
+ fill={
13
+ {
14
+ "payload": 4278190080,
15
+ "type": 0,
16
+ }
17
+ }
18
+ >
19
+ <RNSVGGroup
20
+ fill={
21
+ {
22
+ "payload": 4278190080,
23
+ "type": 0,
24
+ }
25
+ }
26
+ >
27
+ <RNSVGForeignObject
28
+ fill={
29
+ {
30
+ "payload": 4278190080,
31
+ "type": 0,
32
+ }
33
+ }
34
+ height={14}
35
+ width={32}
36
+ x={-32}
37
+ y={93}
38
+ >
39
+ <Text
40
+ adjustsFontSizeToFit={true}
41
+ allowFontScaling={false}
42
+ ellipsizeMode="tail"
43
+ minimumFontScale={0.6}
44
+ numberOfLines={1}
45
+ style={
46
+ [
47
+ {
48
+ "color": "#4d6265",
49
+ "fontSize": 10,
50
+ "letterSpacing": 0,
51
+ "lineHeight": 14,
52
+ },
53
+ {
54
+ "textAlign": "right",
55
+ },
56
+ ]
57
+ }
58
+ themeIntent="subdued"
59
+ >
60
+ 0
61
+ </Text>
62
+ </RNSVGForeignObject>
63
+ </RNSVGGroup>
64
+ <RNSVGGroup
65
+ fill={
66
+ {
67
+ "payload": 4278190080,
68
+ "type": 0,
69
+ }
70
+ }
71
+ >
72
+ <RNSVGForeignObject
73
+ fill={
74
+ {
75
+ "payload": 4278190080,
76
+ "type": 0,
77
+ }
78
+ }
79
+ height={14}
80
+ width={32}
81
+ x={-32}
82
+ y={73}
83
+ >
84
+ <Text
85
+ adjustsFontSizeToFit={true}
86
+ allowFontScaling={false}
87
+ ellipsizeMode="tail"
88
+ minimumFontScale={0.6}
89
+ numberOfLines={1}
90
+ style={
91
+ [
92
+ {
93
+ "color": "#4d6265",
94
+ "fontSize": 10,
95
+ "letterSpacing": 0,
96
+ "lineHeight": 14,
97
+ },
98
+ {
99
+ "textAlign": "right",
100
+ },
101
+ ]
102
+ }
103
+ themeIntent="subdued"
104
+ >
105
+ 20
106
+ </Text>
107
+ </RNSVGForeignObject>
108
+ </RNSVGGroup>
109
+ <RNSVGGroup
110
+ fill={
111
+ {
112
+ "payload": 4278190080,
113
+ "type": 0,
114
+ }
115
+ }
116
+ >
117
+ <RNSVGForeignObject
118
+ fill={
119
+ {
120
+ "payload": 4278190080,
121
+ "type": 0,
122
+ }
123
+ }
124
+ height={14}
125
+ width={32}
126
+ x={-32}
127
+ y={53}
128
+ >
129
+ <Text
130
+ adjustsFontSizeToFit={true}
131
+ allowFontScaling={false}
132
+ ellipsizeMode="tail"
133
+ minimumFontScale={0.6}
134
+ numberOfLines={1}
135
+ style={
136
+ [
137
+ {
138
+ "color": "#4d6265",
139
+ "fontSize": 10,
140
+ "letterSpacing": 0,
141
+ "lineHeight": 14,
142
+ },
143
+ {
144
+ "textAlign": "right",
145
+ },
146
+ ]
147
+ }
148
+ themeIntent="subdued"
149
+ >
150
+ 40
151
+ </Text>
152
+ </RNSVGForeignObject>
153
+ </RNSVGGroup>
154
+ <RNSVGGroup
155
+ fill={
156
+ {
157
+ "payload": 4278190080,
158
+ "type": 0,
159
+ }
160
+ }
161
+ >
162
+ <RNSVGForeignObject
163
+ fill={
164
+ {
165
+ "payload": 4278190080,
166
+ "type": 0,
167
+ }
168
+ }
169
+ height={14}
170
+ width={32}
171
+ x={-32}
172
+ y={33}
173
+ >
174
+ <Text
175
+ adjustsFontSizeToFit={true}
176
+ allowFontScaling={false}
177
+ ellipsizeMode="tail"
178
+ minimumFontScale={0.6}
179
+ numberOfLines={1}
180
+ style={
181
+ [
182
+ {
183
+ "color": "#4d6265",
184
+ "fontSize": 10,
185
+ "letterSpacing": 0,
186
+ "lineHeight": 14,
187
+ },
188
+ {
189
+ "textAlign": "right",
190
+ },
191
+ ]
192
+ }
193
+ themeIntent="subdued"
194
+ >
195
+ 60
196
+ </Text>
197
+ </RNSVGForeignObject>
198
+ </RNSVGGroup>
199
+ <RNSVGGroup
200
+ fill={
201
+ {
202
+ "payload": 4278190080,
203
+ "type": 0,
204
+ }
205
+ }
206
+ >
207
+ <RNSVGForeignObject
208
+ fill={
209
+ {
210
+ "payload": 4278190080,
211
+ "type": 0,
212
+ }
213
+ }
214
+ height={14}
215
+ width={32}
216
+ x={-32}
217
+ y={12.999999999999996}
218
+ >
219
+ <Text
220
+ adjustsFontSizeToFit={true}
221
+ allowFontScaling={false}
222
+ ellipsizeMode="tail"
223
+ minimumFontScale={0.6}
224
+ numberOfLines={1}
225
+ style={
226
+ [
227
+ {
228
+ "color": "#4d6265",
229
+ "fontSize": 10,
230
+ "letterSpacing": 0,
231
+ "lineHeight": 14,
232
+ },
233
+ {
234
+ "textAlign": "right",
235
+ },
236
+ ]
237
+ }
238
+ themeIntent="subdued"
239
+ >
240
+ 80
241
+ </Text>
242
+ </RNSVGForeignObject>
243
+ </RNSVGGroup>
244
+ <RNSVGGroup
245
+ fill={
246
+ {
247
+ "payload": 4278190080,
248
+ "type": 0,
249
+ }
250
+ }
251
+ >
252
+ <RNSVGForeignObject
253
+ fill={
254
+ {
255
+ "payload": 4278190080,
256
+ "type": 0,
257
+ }
258
+ }
259
+ height={14}
260
+ width={32}
261
+ x={-32}
262
+ y={-7}
263
+ >
264
+ <Text
265
+ adjustsFontSizeToFit={true}
266
+ allowFontScaling={false}
267
+ ellipsizeMode="tail"
268
+ minimumFontScale={0.6}
269
+ numberOfLines={1}
270
+ style={
271
+ [
272
+ {
273
+ "color": "#4d6265",
274
+ "fontSize": 10,
275
+ "letterSpacing": 0,
276
+ "lineHeight": 14,
277
+ },
278
+ {
279
+ "textAlign": "right",
280
+ },
281
+ ]
282
+ }
283
+ themeIntent="subdued"
284
+ >
285
+ 100
286
+ </Text>
287
+ </RNSVGForeignObject>
288
+ </RNSVGGroup>
289
+ </RNSVGGroup>
290
+ <View
291
+ pointerEvents="box-none"
292
+ position="bottom"
293
+ style={
294
+ [
295
+ {
296
+ "bottom": 0,
297
+ "elevation": 9999,
298
+ "flexDirection": "column-reverse",
299
+ "left": 0,
300
+ "paddingHorizontal": 24,
301
+ "paddingVertical": 16,
302
+ "position": "absolute",
303
+ "right": 0,
304
+ "top": 0,
305
+ },
306
+ undefined,
307
+ ]
308
+ }
309
+ />
310
+ </View>
311
+ `;
312
+
313
+ exports[`YAxis should render correctly 1`] = `
314
+ <View
315
+ style={
316
+ {
317
+ "flex": 1,
318
+ }
319
+ }
320
+ >
321
+ <RNSVGGroup
322
+ fill={
323
+ {
324
+ "payload": 4278190080,
325
+ "type": 0,
326
+ }
327
+ }
328
+ >
329
+ <RNSVGGroup
330
+ fill={
331
+ {
332
+ "payload": 4278190080,
333
+ "type": 0,
334
+ }
335
+ }
336
+ >
337
+ <View
338
+ style={
339
+ [
340
+ {},
341
+ {
342
+ "maxWidth": 32,
343
+ "position": "absolute",
344
+ "right": 68,
345
+ "top": 100,
346
+ "transform": [
347
+ {
348
+ "translateY": -7,
349
+ },
350
+ ],
351
+ },
352
+ ]
353
+ }
354
+ testID="y-axis-label-0-container"
355
+ >
356
+ <Text
357
+ adjustsFontSizeToFit={true}
358
+ allowFontScaling={false}
359
+ ellipsizeMode="tail"
360
+ minimumFontScale={0.6}
361
+ numberOfLines={1}
362
+ style={
363
+ [
364
+ {
365
+ "color": "#4d6265",
366
+ "fontSize": 10,
367
+ "letterSpacing": 0,
368
+ "lineHeight": 14,
369
+ },
370
+ {
371
+ "textAlign": "right",
372
+ },
373
+ ]
374
+ }
375
+ themeIntent="subdued"
376
+ >
377
+ 0
378
+ </Text>
379
+ </View>
380
+ </RNSVGGroup>
381
+ <RNSVGGroup
382
+ fill={
383
+ {
384
+ "payload": 4278190080,
385
+ "type": 0,
386
+ }
387
+ }
388
+ >
389
+ <View
390
+ style={
391
+ [
392
+ {},
393
+ {
394
+ "maxWidth": 32,
395
+ "position": "absolute",
396
+ "right": 68,
397
+ "top": 80,
398
+ "transform": [
399
+ {
400
+ "translateY": -7,
401
+ },
402
+ ],
403
+ },
404
+ ]
405
+ }
406
+ testID="y-axis-label-20-container"
407
+ >
408
+ <Text
409
+ adjustsFontSizeToFit={true}
410
+ allowFontScaling={false}
411
+ ellipsizeMode="tail"
412
+ minimumFontScale={0.6}
413
+ numberOfLines={1}
414
+ style={
415
+ [
416
+ {
417
+ "color": "#4d6265",
418
+ "fontSize": 10,
419
+ "letterSpacing": 0,
420
+ "lineHeight": 14,
421
+ },
422
+ {
423
+ "textAlign": "right",
424
+ },
425
+ ]
426
+ }
427
+ themeIntent="subdued"
428
+ >
429
+ 20
430
+ </Text>
431
+ </View>
432
+ </RNSVGGroup>
433
+ <RNSVGGroup
434
+ fill={
435
+ {
436
+ "payload": 4278190080,
437
+ "type": 0,
438
+ }
439
+ }
440
+ >
441
+ <View
442
+ style={
443
+ [
444
+ {},
445
+ {
446
+ "maxWidth": 32,
447
+ "position": "absolute",
448
+ "right": 68,
449
+ "top": 60,
450
+ "transform": [
451
+ {
452
+ "translateY": -7,
453
+ },
454
+ ],
455
+ },
456
+ ]
457
+ }
458
+ testID="y-axis-label-40-container"
459
+ >
460
+ <Text
461
+ adjustsFontSizeToFit={true}
462
+ allowFontScaling={false}
463
+ ellipsizeMode="tail"
464
+ minimumFontScale={0.6}
465
+ numberOfLines={1}
466
+ style={
467
+ [
468
+ {
469
+ "color": "#4d6265",
470
+ "fontSize": 10,
471
+ "letterSpacing": 0,
472
+ "lineHeight": 14,
473
+ },
474
+ {
475
+ "textAlign": "right",
476
+ },
477
+ ]
478
+ }
479
+ themeIntent="subdued"
480
+ >
481
+ 40
482
+ </Text>
483
+ </View>
484
+ </RNSVGGroup>
485
+ <RNSVGGroup
486
+ fill={
487
+ {
488
+ "payload": 4278190080,
489
+ "type": 0,
490
+ }
491
+ }
492
+ >
493
+ <View
494
+ style={
495
+ [
496
+ {},
497
+ {
498
+ "maxWidth": 32,
499
+ "position": "absolute",
500
+ "right": 68,
501
+ "top": 40,
502
+ "transform": [
503
+ {
504
+ "translateY": -7,
505
+ },
506
+ ],
507
+ },
508
+ ]
509
+ }
510
+ testID="y-axis-label-60-container"
511
+ >
512
+ <Text
513
+ adjustsFontSizeToFit={true}
514
+ allowFontScaling={false}
515
+ ellipsizeMode="tail"
516
+ minimumFontScale={0.6}
517
+ numberOfLines={1}
518
+ style={
519
+ [
520
+ {
521
+ "color": "#4d6265",
522
+ "fontSize": 10,
523
+ "letterSpacing": 0,
524
+ "lineHeight": 14,
525
+ },
526
+ {
527
+ "textAlign": "right",
528
+ },
529
+ ]
530
+ }
531
+ themeIntent="subdued"
532
+ >
533
+ 60
534
+ </Text>
535
+ </View>
536
+ </RNSVGGroup>
537
+ <RNSVGGroup
538
+ fill={
539
+ {
540
+ "payload": 4278190080,
541
+ "type": 0,
542
+ }
543
+ }
544
+ >
545
+ <View
546
+ style={
547
+ [
548
+ {},
549
+ {
550
+ "maxWidth": 32,
551
+ "position": "absolute",
552
+ "right": 68,
553
+ "top": 19.999999999999996,
554
+ "transform": [
555
+ {
556
+ "translateY": -7,
557
+ },
558
+ ],
559
+ },
560
+ ]
561
+ }
562
+ testID="y-axis-label-80-container"
563
+ >
564
+ <Text
565
+ adjustsFontSizeToFit={true}
566
+ allowFontScaling={false}
567
+ ellipsizeMode="tail"
568
+ minimumFontScale={0.6}
569
+ numberOfLines={1}
570
+ style={
571
+ [
572
+ {
573
+ "color": "#4d6265",
574
+ "fontSize": 10,
575
+ "letterSpacing": 0,
576
+ "lineHeight": 14,
577
+ },
578
+ {
579
+ "textAlign": "right",
580
+ },
581
+ ]
582
+ }
583
+ themeIntent="subdued"
584
+ >
585
+ 80
586
+ </Text>
587
+ </View>
588
+ </RNSVGGroup>
589
+ <RNSVGGroup
590
+ fill={
591
+ {
592
+ "payload": 4278190080,
593
+ "type": 0,
594
+ }
595
+ }
596
+ >
597
+ <View
598
+ style={
599
+ [
600
+ {},
601
+ {
602
+ "maxWidth": 32,
603
+ "position": "absolute",
604
+ "right": 68,
605
+ "top": 0,
606
+ "transform": [
607
+ {
608
+ "translateY": -7,
609
+ },
610
+ ],
611
+ },
612
+ ]
613
+ }
614
+ testID="y-axis-label-100-container"
615
+ >
616
+ <Text
617
+ adjustsFontSizeToFit={true}
618
+ allowFontScaling={false}
619
+ ellipsizeMode="tail"
620
+ minimumFontScale={0.6}
621
+ numberOfLines={1}
622
+ style={
623
+ [
624
+ {
625
+ "color": "#4d6265",
626
+ "fontSize": 10,
627
+ "letterSpacing": 0,
628
+ "lineHeight": 14,
629
+ },
630
+ {
631
+ "textAlign": "right",
632
+ },
633
+ ]
634
+ }
635
+ themeIntent="subdued"
636
+ >
637
+ 100
638
+ </Text>
639
+ </View>
640
+ </RNSVGGroup>
641
+ </RNSVGGroup>
642
+ <View
643
+ pointerEvents="box-none"
644
+ position="bottom"
645
+ style={
646
+ [
647
+ {
648
+ "bottom": 0,
649
+ "elevation": 9999,
650
+ "flexDirection": "column-reverse",
651
+ "left": 0,
652
+ "paddingHorizontal": 24,
653
+ "paddingVertical": 16,
654
+ "position": "absolute",
655
+ "right": 0,
656
+ "top": 0,
657
+ },
658
+ undefined,
659
+ ]
660
+ }
661
+ />
662
+ </View>
663
+ `;
664
+
665
+ exports[`YAxis should render correctly with labels 1`] = `
666
+ <View
667
+ style={
668
+ {
669
+ "flex": 1,
670
+ }
671
+ }
672
+ >
673
+ <RNSVGGroup
674
+ fill={
675
+ {
676
+ "payload": 4278190080,
677
+ "type": 0,
678
+ }
679
+ }
680
+ >
681
+ <RNSVGGroup
682
+ fill={
683
+ {
684
+ "payload": 4278190080,
685
+ "type": 0,
686
+ }
687
+ }
688
+ >
689
+ <View
690
+ style={
691
+ [
692
+ {},
693
+ {
694
+ "maxWidth": 32,
695
+ "position": "absolute",
696
+ "right": 68,
697
+ "top": 100,
698
+ "transform": [
699
+ {
700
+ "translateY": -7,
701
+ },
702
+ ],
703
+ },
704
+ ]
705
+ }
706
+ testID="y-axis-label-0-container"
707
+ >
708
+ <Text
709
+ adjustsFontSizeToFit={true}
710
+ allowFontScaling={false}
711
+ ellipsizeMode="tail"
712
+ minimumFontScale={0.6}
713
+ numberOfLines={1}
714
+ style={
715
+ [
716
+ {
717
+ "color": "#4d6265",
718
+ "fontSize": 10,
719
+ "letterSpacing": 0,
720
+ "lineHeight": 14,
721
+ },
722
+ {
723
+ "textAlign": "right",
724
+ },
725
+ ]
726
+ }
727
+ themeIntent="subdued"
728
+ >
729
+ Label 1
730
+ </Text>
731
+ </View>
732
+ </RNSVGGroup>
733
+ <RNSVGGroup
734
+ fill={
735
+ {
736
+ "payload": 4278190080,
737
+ "type": 0,
738
+ }
739
+ }
740
+ >
741
+ <View
742
+ style={
743
+ [
744
+ {},
745
+ {
746
+ "maxWidth": 32,
747
+ "position": "absolute",
748
+ "right": 68,
749
+ "top": 80,
750
+ "transform": [
751
+ {
752
+ "translateY": -7,
753
+ },
754
+ ],
755
+ },
756
+ ]
757
+ }
758
+ testID="y-axis-label-20-container"
759
+ >
760
+ <Text
761
+ adjustsFontSizeToFit={true}
762
+ allowFontScaling={false}
763
+ ellipsizeMode="tail"
764
+ minimumFontScale={0.6}
765
+ numberOfLines={1}
766
+ style={
767
+ [
768
+ {
769
+ "color": "#4d6265",
770
+ "fontSize": 10,
771
+ "letterSpacing": 0,
772
+ "lineHeight": 14,
773
+ },
774
+ {
775
+ "textAlign": "right",
776
+ },
777
+ ]
778
+ }
779
+ themeIntent="subdued"
780
+ >
781
+ Label 2
782
+ </Text>
783
+ </View>
784
+ </RNSVGGroup>
785
+ <RNSVGGroup
786
+ fill={
787
+ {
788
+ "payload": 4278190080,
789
+ "type": 0,
790
+ }
791
+ }
792
+ >
793
+ <View
794
+ style={
795
+ [
796
+ {},
797
+ {
798
+ "maxWidth": 32,
799
+ "position": "absolute",
800
+ "right": 68,
801
+ "top": 60,
802
+ "transform": [
803
+ {
804
+ "translateY": -7,
805
+ },
806
+ ],
807
+ },
808
+ ]
809
+ }
810
+ testID="y-axis-label-40-container"
811
+ >
812
+ <Text
813
+ adjustsFontSizeToFit={true}
814
+ allowFontScaling={false}
815
+ ellipsizeMode="tail"
816
+ minimumFontScale={0.6}
817
+ numberOfLines={1}
818
+ style={
819
+ [
820
+ {
821
+ "color": "#4d6265",
822
+ "fontSize": 10,
823
+ "letterSpacing": 0,
824
+ "lineHeight": 14,
825
+ },
826
+ {
827
+ "textAlign": "right",
828
+ },
829
+ ]
830
+ }
831
+ themeIntent="subdued"
832
+ >
833
+ Label 3
834
+ </Text>
835
+ </View>
836
+ </RNSVGGroup>
837
+ <RNSVGGroup
838
+ fill={
839
+ {
840
+ "payload": 4278190080,
841
+ "type": 0,
842
+ }
843
+ }
844
+ >
845
+ <View
846
+ style={
847
+ [
848
+ {},
849
+ {
850
+ "maxWidth": 32,
851
+ "position": "absolute",
852
+ "right": 68,
853
+ "top": 40,
854
+ "transform": [
855
+ {
856
+ "translateY": -7,
857
+ },
858
+ ],
859
+ },
860
+ ]
861
+ }
862
+ testID="y-axis-label-60-container"
863
+ >
864
+ <Text
865
+ adjustsFontSizeToFit={true}
866
+ allowFontScaling={false}
867
+ ellipsizeMode="tail"
868
+ minimumFontScale={0.6}
869
+ numberOfLines={1}
870
+ style={
871
+ [
872
+ {
873
+ "color": "#4d6265",
874
+ "fontSize": 10,
875
+ "letterSpacing": 0,
876
+ "lineHeight": 14,
877
+ },
878
+ {
879
+ "textAlign": "right",
880
+ },
881
+ ]
882
+ }
883
+ themeIntent="subdued"
884
+ >
885
+ Label 4
886
+ </Text>
887
+ </View>
888
+ </RNSVGGroup>
889
+ <RNSVGGroup
890
+ fill={
891
+ {
892
+ "payload": 4278190080,
893
+ "type": 0,
894
+ }
895
+ }
896
+ >
897
+ <View
898
+ style={
899
+ [
900
+ {},
901
+ {
902
+ "maxWidth": 32,
903
+ "position": "absolute",
904
+ "right": 68,
905
+ "top": 19.999999999999996,
906
+ "transform": [
907
+ {
908
+ "translateY": -7,
909
+ },
910
+ ],
911
+ },
912
+ ]
913
+ }
914
+ testID="y-axis-label-80-container"
915
+ >
916
+ <Text
917
+ adjustsFontSizeToFit={true}
918
+ allowFontScaling={false}
919
+ ellipsizeMode="tail"
920
+ minimumFontScale={0.6}
921
+ numberOfLines={1}
922
+ style={
923
+ [
924
+ {
925
+ "color": "#4d6265",
926
+ "fontSize": 10,
927
+ "letterSpacing": 0,
928
+ "lineHeight": 14,
929
+ },
930
+ {
931
+ "textAlign": "right",
932
+ },
933
+ ]
934
+ }
935
+ themeIntent="subdued"
936
+ >
937
+ Label 5
938
+ </Text>
939
+ </View>
940
+ </RNSVGGroup>
941
+ <RNSVGGroup
942
+ fill={
943
+ {
944
+ "payload": 4278190080,
945
+ "type": 0,
946
+ }
947
+ }
948
+ >
949
+ <View
950
+ style={
951
+ [
952
+ {},
953
+ {
954
+ "maxWidth": 32,
955
+ "position": "absolute",
956
+ "right": 68,
957
+ "top": 0,
958
+ "transform": [
959
+ {
960
+ "translateY": -7,
961
+ },
962
+ ],
963
+ },
964
+ ]
965
+ }
966
+ testID="y-axis-label-100-container"
967
+ >
968
+ <Text
969
+ adjustsFontSizeToFit={true}
970
+ allowFontScaling={false}
971
+ ellipsizeMode="tail"
972
+ minimumFontScale={0.6}
973
+ numberOfLines={1}
974
+ style={
975
+ [
976
+ {
977
+ "color": "#4d6265",
978
+ "fontSize": 10,
979
+ "letterSpacing": 0,
980
+ "lineHeight": 14,
981
+ },
982
+ {
983
+ "textAlign": "right",
984
+ },
985
+ ]
986
+ }
987
+ themeIntent="subdued"
988
+ />
989
+ </View>
990
+ </RNSVGGroup>
991
+ </RNSVGGroup>
992
+ <View
993
+ pointerEvents="box-none"
994
+ position="bottom"
995
+ style={
996
+ [
997
+ {
998
+ "bottom": 0,
999
+ "elevation": 9999,
1000
+ "flexDirection": "column-reverse",
1001
+ "left": 0,
1002
+ "paddingHorizontal": 24,
1003
+ "paddingVertical": 16,
1004
+ "position": "absolute",
1005
+ "right": 0,
1006
+ "top": 0,
1007
+ },
1008
+ undefined,
1009
+ ]
1010
+ }
1011
+ />
1012
+ </View>
1013
+ `;