@hero-design/rn 8.99.4 → 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 (121) hide show
  1. package/.turbo/turbo-build.log +8 -3
  2. package/CHANGELOG.md +17 -0
  3. package/es/index.js +5621 -690
  4. package/jest.config.js +1 -1
  5. package/lib/index.js +5545 -613
  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/__tests__/__snapshots__/ScrollableTabs.spec.tsx.snap +3 -0
  75. package/src/components/Tabs/__tests__/__snapshots__/ScrollableTabsHeader.spec.tsx.snap +2 -0
  76. package/src/components/Tabs/__tests__/__snapshots__/TabWithBadge.spec.tsx.snap +1 -0
  77. package/src/components/Tabs/__tests__/__snapshots__/index.spec.tsx.snap +3 -0
  78. package/src/index.ts +2 -0
  79. package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +28 -0
  80. package/src/theme/components/chart.ts +28 -0
  81. package/src/theme/components/columnChart.ts +15 -0
  82. package/src/theme/getTheme.ts +6 -0
  83. package/src/types.ts +4 -0
  84. package/src/utils/__tests__/helpers.spec.ts +36 -1
  85. package/src/utils/helpers.ts +76 -1
  86. package/stats/8.100.0/rn-stats.html +4842 -0
  87. package/stats/8.99.4/rn-stats.html +1 -1
  88. package/types/components/Badge/Status.d.ts +0 -1
  89. package/types/components/Chart/ChartSelect/StyledChartSelect.d.ts +8 -0
  90. package/types/components/Chart/ChartSelect/index.d.ts +63 -0
  91. package/types/components/Chart/ColumnChart/ColumnChartContent.d.ts +25 -0
  92. package/types/components/Chart/ColumnChart/Segment.d.ts +14 -0
  93. package/types/components/Chart/ColumnChart/StackedSegment.d.ts +28 -0
  94. package/types/components/Chart/ColumnChart/StyledColumnChart.d.ts +8 -0
  95. package/types/components/Chart/ColumnChart/index.d.ts +80 -0
  96. package/types/components/Chart/Line/Line.d.ts +21 -0
  97. package/types/components/Chart/Line/index.d.ts +35 -0
  98. package/types/components/Chart/StyledChart.d.ts +9 -0
  99. package/types/components/Chart/index.d.ts +9 -0
  100. package/types/components/Chart/shared/AxisLabel.d.ts +7 -0
  101. package/types/components/Chart/shared/ChartFrame.d.ts +30 -0
  102. package/types/components/Chart/shared/ChartHeader.d.ts +8 -0
  103. package/types/components/Chart/shared/EmptyState.d.ts +8 -0
  104. package/types/components/Chart/shared/XAxis.d.ts +8 -0
  105. package/types/components/Chart/shared/XAxisGrid.d.ts +8 -0
  106. package/types/components/Chart/shared/YAxis.d.ts +10 -0
  107. package/types/components/Chart/shared/YAxisGrid.d.ts +10 -0
  108. package/types/components/Chart/shared/constants.d.ts +2 -0
  109. package/types/components/Chart/shared/hooks/useColorScale.d.ts +7 -0
  110. package/types/components/Chart/shared/hooks/useGenerateTicks.d.ts +6 -0
  111. package/types/components/Chart/shared/hooks/useScaleBandX.d.ts +8 -0
  112. package/types/components/Chart/shared/hooks/useScaleLinearY.d.ts +9 -0
  113. package/types/components/Chart/shared/niceNumbers.d.ts +12 -0
  114. package/types/components/Chart/types.d.ts +84 -0
  115. package/types/components/Select/helpers.d.ts +0 -5
  116. package/types/index.d.ts +2 -1
  117. package/types/theme/components/chart.d.ts +22 -0
  118. package/types/theme/components/columnChart.d.ts +10 -0
  119. package/types/theme/getTheme.d.ts +4 -0
  120. package/types/types.d.ts +3 -1
  121. package/types/utils/helpers.d.ts +5 -0
@@ -0,0 +1,1405 @@
1
+ // Jest Snapshot v1, https://goo.gl/fbAQLP
2
+
3
+ exports[`ColumnChart renders emptyText when data is empty 1`] = `
4
+ <View
5
+ style={
6
+ {
7
+ "flex": 1,
8
+ }
9
+ }
10
+ >
11
+ <View
12
+ onLayout={[Function]}
13
+ style={
14
+ [
15
+ {
16
+ "height": "100%",
17
+ "width": "100%",
18
+ },
19
+ undefined,
20
+ ]
21
+ }
22
+ testID="column-chart-empty"
23
+ >
24
+ <View
25
+ style={
26
+ [
27
+ {},
28
+ {
29
+ "height": 200,
30
+ "width": 100,
31
+ },
32
+ ]
33
+ }
34
+ >
35
+ <View
36
+ style={
37
+ [
38
+ {},
39
+ {
40
+ "paddingTop": 8,
41
+ },
42
+ ]
43
+ }
44
+ >
45
+ <RNSVGSvgView
46
+ bbHeight={200}
47
+ bbWidth={100}
48
+ focusable={false}
49
+ style={
50
+ [
51
+ {
52
+ "backgroundColor": "transparent",
53
+ "borderWidth": 0,
54
+ },
55
+ {
56
+ "height": 200,
57
+ "overflow": "visible",
58
+ "width": 100,
59
+ },
60
+ {
61
+ "flex": 0,
62
+ "height": 200,
63
+ "width": 100,
64
+ },
65
+ ]
66
+ }
67
+ >
68
+ <RNSVGGroup
69
+ fill={
70
+ {
71
+ "payload": 4278190080,
72
+ "type": 0,
73
+ }
74
+ }
75
+ >
76
+ <RNSVGGroup
77
+ fill={
78
+ {
79
+ "payload": 4278190080,
80
+ "type": 0,
81
+ }
82
+ }
83
+ >
84
+ <RNSVGGroup
85
+ fill={
86
+ {
87
+ "payload": 4278190080,
88
+ "type": 0,
89
+ }
90
+ }
91
+ >
92
+ <View
93
+ alignItems="center"
94
+ style={
95
+ [
96
+ {
97
+ "alignItems": "center",
98
+ },
99
+ {
100
+ "left": 51.25,
101
+ "maxHeight": 32,
102
+ "position": "absolute",
103
+ "top": 168,
104
+ "width": 13,
105
+ },
106
+ ]
107
+ }
108
+ testID="x-axis-label-A-container"
109
+ >
110
+ <Text
111
+ adjustsFontSizeToFit={true}
112
+ allowFontScaling={false}
113
+ ellipsizeMode="tail"
114
+ minimumFontScale={0.6}
115
+ numberOfLines={2}
116
+ style={
117
+ [
118
+ {
119
+ "color": "#4d6265",
120
+ "fontSize": 10,
121
+ "letterSpacing": 0,
122
+ "lineHeight": 14,
123
+ },
124
+ {
125
+ "textAlign": "center",
126
+ },
127
+ ]
128
+ }
129
+ themeIntent="subdued"
130
+ >
131
+ A
132
+ </Text>
133
+ </View>
134
+ </RNSVGGroup>
135
+ <RNSVGGroup
136
+ fill={
137
+ {
138
+ "payload": 4278190080,
139
+ "type": 0,
140
+ }
141
+ }
142
+ >
143
+ <View
144
+ alignItems="center"
145
+ style={
146
+ [
147
+ {
148
+ "alignItems": "center",
149
+ },
150
+ {
151
+ "left": 67.5,
152
+ "maxHeight": 32,
153
+ "position": "absolute",
154
+ "top": 168,
155
+ "width": 13,
156
+ },
157
+ ]
158
+ }
159
+ testID="x-axis-label-B-container"
160
+ >
161
+ <Text
162
+ adjustsFontSizeToFit={true}
163
+ allowFontScaling={false}
164
+ ellipsizeMode="tail"
165
+ minimumFontScale={0.6}
166
+ numberOfLines={2}
167
+ style={
168
+ [
169
+ {
170
+ "color": "#4d6265",
171
+ "fontSize": 10,
172
+ "letterSpacing": 0,
173
+ "lineHeight": 14,
174
+ },
175
+ {
176
+ "textAlign": "center",
177
+ },
178
+ ]
179
+ }
180
+ themeIntent="subdued"
181
+ >
182
+ B
183
+ </Text>
184
+ </View>
185
+ </RNSVGGroup>
186
+ <RNSVGGroup
187
+ fill={
188
+ {
189
+ "payload": 4278190080,
190
+ "type": 0,
191
+ }
192
+ }
193
+ >
194
+ <View
195
+ alignItems="center"
196
+ style={
197
+ [
198
+ {
199
+ "alignItems": "center",
200
+ },
201
+ {
202
+ "left": 83.75,
203
+ "maxHeight": 32,
204
+ "position": "absolute",
205
+ "top": 168,
206
+ "width": 13,
207
+ },
208
+ ]
209
+ }
210
+ testID="x-axis-label-C-container"
211
+ >
212
+ <Text
213
+ adjustsFontSizeToFit={true}
214
+ allowFontScaling={false}
215
+ ellipsizeMode="tail"
216
+ minimumFontScale={0.6}
217
+ numberOfLines={2}
218
+ style={
219
+ [
220
+ {
221
+ "color": "#4d6265",
222
+ "fontSize": 10,
223
+ "letterSpacing": 0,
224
+ "lineHeight": 14,
225
+ },
226
+ {
227
+ "textAlign": "center",
228
+ },
229
+ ]
230
+ }
231
+ themeIntent="subdued"
232
+ >
233
+ C
234
+ </Text>
235
+ </View>
236
+ </RNSVGGroup>
237
+ </RNSVGGroup>
238
+ <RNSVGGroup
239
+ fill={
240
+ {
241
+ "payload": 4278190080,
242
+ "type": 0,
243
+ }
244
+ }
245
+ >
246
+ <RNSVGGroup
247
+ fill={
248
+ {
249
+ "payload": 4278190080,
250
+ "type": 0,
251
+ }
252
+ }
253
+ >
254
+ <View
255
+ style={
256
+ [
257
+ {},
258
+ {
259
+ "maxWidth": 32,
260
+ "position": "absolute",
261
+ "right": 68,
262
+ "top": 78,
263
+ "transform": [
264
+ {
265
+ "translateY": -7,
266
+ },
267
+ ],
268
+ },
269
+ ]
270
+ }
271
+ testID="y-axis-label-0-container"
272
+ >
273
+ <Text
274
+ adjustsFontSizeToFit={true}
275
+ allowFontScaling={false}
276
+ ellipsizeMode="tail"
277
+ minimumFontScale={0.6}
278
+ numberOfLines={1}
279
+ style={
280
+ [
281
+ {
282
+ "color": "#4d6265",
283
+ "fontSize": 10,
284
+ "letterSpacing": 0,
285
+ "lineHeight": 14,
286
+ },
287
+ {
288
+ "textAlign": "right",
289
+ },
290
+ ]
291
+ }
292
+ themeIntent="subdued"
293
+ >
294
+ 0
295
+ </Text>
296
+ </View>
297
+ </RNSVGGroup>
298
+ </RNSVGGroup>
299
+ <RNSVGGroup
300
+ fill={
301
+ {
302
+ "payload": 4278190080,
303
+ "type": 0,
304
+ }
305
+ }
306
+ testID="y-axis-grid"
307
+ >
308
+ <RNSVGLine
309
+ fill={
310
+ {
311
+ "payload": 4278190080,
312
+ "type": 0,
313
+ }
314
+ }
315
+ propList={
316
+ [
317
+ "stroke",
318
+ "strokeDasharray",
319
+ ]
320
+ }
321
+ stroke={
322
+ {
323
+ "payload": 4293454314,
324
+ "type": 0,
325
+ }
326
+ }
327
+ strokeDasharray={
328
+ [
329
+ 4,
330
+ 4,
331
+ ]
332
+ }
333
+ testID="y-axis-grid-0"
334
+ x1={48}
335
+ x2={100}
336
+ y1={78}
337
+ y2={78}
338
+ />
339
+ </RNSVGGroup>
340
+ <RNSVGGroup
341
+ fill={
342
+ {
343
+ "payload": 4278190080,
344
+ "type": 0,
345
+ }
346
+ }
347
+ >
348
+ <View
349
+ onLayout={[Function]}
350
+ style={
351
+ [
352
+ {},
353
+ {
354
+ "left": 74,
355
+ "position": "absolute",
356
+ "top": 78,
357
+ },
358
+ ]
359
+ }
360
+ >
361
+ <Text
362
+ allowFontScaling={false}
363
+ ellipsizeMode="tail"
364
+ numberOfLines={1}
365
+ style={
366
+ [
367
+ {
368
+ "color": "#4d6265",
369
+ "fontFamily": "BeVietnamPro-SemiBold",
370
+ "fontSize": 12,
371
+ "letterSpacing": 0.24,
372
+ "lineHeight": 16,
373
+ },
374
+ {
375
+ "textAlign": "center",
376
+ },
377
+ ]
378
+ }
379
+ themeFontWeight="semi-bold"
380
+ themeIntent="muted"
381
+ >
382
+ No data available
383
+ </Text>
384
+ </View>
385
+ </RNSVGGroup>
386
+ </RNSVGGroup>
387
+ </RNSVGSvgView>
388
+ </View>
389
+ </View>
390
+ </View>
391
+ <View
392
+ pointerEvents="box-none"
393
+ position="bottom"
394
+ style={
395
+ [
396
+ {
397
+ "bottom": 0,
398
+ "elevation": 9999,
399
+ "flexDirection": "column-reverse",
400
+ "left": 0,
401
+ "paddingHorizontal": 24,
402
+ "paddingVertical": 16,
403
+ "position": "absolute",
404
+ "right": 0,
405
+ "top": 0,
406
+ },
407
+ undefined,
408
+ ]
409
+ }
410
+ />
411
+ </View>
412
+ `;
413
+
414
+ exports[`ColumnChart renders without crashing 1`] = `
415
+ <View
416
+ style={
417
+ {
418
+ "flex": 1,
419
+ }
420
+ }
421
+ >
422
+ <View
423
+ onLayout={[Function]}
424
+ style={
425
+ [
426
+ {
427
+ "height": "100%",
428
+ "width": "100%",
429
+ },
430
+ undefined,
431
+ ]
432
+ }
433
+ testID="column-chart"
434
+ >
435
+ <View
436
+ style={
437
+ [
438
+ {},
439
+ {
440
+ "height": 200,
441
+ "width": 100,
442
+ },
443
+ ]
444
+ }
445
+ >
446
+ <View
447
+ style={
448
+ [
449
+ {},
450
+ {
451
+ "paddingTop": 8,
452
+ },
453
+ ]
454
+ }
455
+ >
456
+ <RNSVGSvgView
457
+ bbHeight={200}
458
+ bbWidth={100}
459
+ focusable={false}
460
+ style={
461
+ [
462
+ {
463
+ "backgroundColor": "transparent",
464
+ "borderWidth": 0,
465
+ },
466
+ {
467
+ "height": 200,
468
+ "overflow": "visible",
469
+ "width": 100,
470
+ },
471
+ {
472
+ "flex": 0,
473
+ "height": 200,
474
+ "width": 100,
475
+ },
476
+ ]
477
+ }
478
+ >
479
+ <RNSVGGroup
480
+ fill={
481
+ {
482
+ "payload": 4278190080,
483
+ "type": 0,
484
+ }
485
+ }
486
+ >
487
+ <RNSVGGroup
488
+ fill={
489
+ {
490
+ "payload": 4278190080,
491
+ "type": 0,
492
+ }
493
+ }
494
+ >
495
+ <RNSVGGroup
496
+ fill={
497
+ {
498
+ "payload": 4278190080,
499
+ "type": 0,
500
+ }
501
+ }
502
+ >
503
+ <View
504
+ alignItems="center"
505
+ style={
506
+ [
507
+ {
508
+ "alignItems": "center",
509
+ },
510
+ {
511
+ "left": 51.25,
512
+ "maxHeight": 32,
513
+ "position": "absolute",
514
+ "top": 168,
515
+ "width": 13,
516
+ },
517
+ ]
518
+ }
519
+ testID="x-axis-label-A-container"
520
+ >
521
+ <Text
522
+ adjustsFontSizeToFit={true}
523
+ allowFontScaling={false}
524
+ ellipsizeMode="tail"
525
+ minimumFontScale={0.6}
526
+ numberOfLines={2}
527
+ style={
528
+ [
529
+ {
530
+ "color": "#4d6265",
531
+ "fontSize": 10,
532
+ "letterSpacing": 0,
533
+ "lineHeight": 14,
534
+ },
535
+ {
536
+ "textAlign": "center",
537
+ },
538
+ ]
539
+ }
540
+ themeIntent="subdued"
541
+ >
542
+ A
543
+ </Text>
544
+ </View>
545
+ </RNSVGGroup>
546
+ <RNSVGGroup
547
+ fill={
548
+ {
549
+ "payload": 4278190080,
550
+ "type": 0,
551
+ }
552
+ }
553
+ >
554
+ <View
555
+ alignItems="center"
556
+ style={
557
+ [
558
+ {
559
+ "alignItems": "center",
560
+ },
561
+ {
562
+ "left": 67.5,
563
+ "maxHeight": 32,
564
+ "position": "absolute",
565
+ "top": 168,
566
+ "width": 13,
567
+ },
568
+ ]
569
+ }
570
+ testID="x-axis-label-B-container"
571
+ >
572
+ <Text
573
+ adjustsFontSizeToFit={true}
574
+ allowFontScaling={false}
575
+ ellipsizeMode="tail"
576
+ minimumFontScale={0.6}
577
+ numberOfLines={2}
578
+ style={
579
+ [
580
+ {
581
+ "color": "#4d6265",
582
+ "fontSize": 10,
583
+ "letterSpacing": 0,
584
+ "lineHeight": 14,
585
+ },
586
+ {
587
+ "textAlign": "center",
588
+ },
589
+ ]
590
+ }
591
+ themeIntent="subdued"
592
+ >
593
+ B
594
+ </Text>
595
+ </View>
596
+ </RNSVGGroup>
597
+ <RNSVGGroup
598
+ fill={
599
+ {
600
+ "payload": 4278190080,
601
+ "type": 0,
602
+ }
603
+ }
604
+ >
605
+ <View
606
+ alignItems="center"
607
+ style={
608
+ [
609
+ {
610
+ "alignItems": "center",
611
+ },
612
+ {
613
+ "left": 83.75,
614
+ "maxHeight": 32,
615
+ "position": "absolute",
616
+ "top": 168,
617
+ "width": 13,
618
+ },
619
+ ]
620
+ }
621
+ testID="x-axis-label-C-container"
622
+ >
623
+ <Text
624
+ adjustsFontSizeToFit={true}
625
+ allowFontScaling={false}
626
+ ellipsizeMode="tail"
627
+ minimumFontScale={0.6}
628
+ numberOfLines={2}
629
+ style={
630
+ [
631
+ {
632
+ "color": "#4d6265",
633
+ "fontSize": 10,
634
+ "letterSpacing": 0,
635
+ "lineHeight": 14,
636
+ },
637
+ {
638
+ "textAlign": "center",
639
+ },
640
+ ]
641
+ }
642
+ themeIntent="subdued"
643
+ >
644
+ C
645
+ </Text>
646
+ </View>
647
+ </RNSVGGroup>
648
+ </RNSVGGroup>
649
+ <RNSVGGroup
650
+ fill={
651
+ {
652
+ "payload": 4278190080,
653
+ "type": 0,
654
+ }
655
+ }
656
+ >
657
+ <RNSVGGroup
658
+ fill={
659
+ {
660
+ "payload": 4278190080,
661
+ "type": 0,
662
+ }
663
+ }
664
+ >
665
+ <View
666
+ style={
667
+ [
668
+ {},
669
+ {
670
+ "maxWidth": 32,
671
+ "position": "absolute",
672
+ "right": 68,
673
+ "top": 156,
674
+ "transform": [
675
+ {
676
+ "translateY": -7,
677
+ },
678
+ ],
679
+ },
680
+ ]
681
+ }
682
+ testID="y-axis-label-0-container"
683
+ >
684
+ <Text
685
+ adjustsFontSizeToFit={true}
686
+ allowFontScaling={false}
687
+ ellipsizeMode="tail"
688
+ minimumFontScale={0.6}
689
+ numberOfLines={1}
690
+ style={
691
+ [
692
+ {
693
+ "color": "#4d6265",
694
+ "fontSize": 10,
695
+ "letterSpacing": 0,
696
+ "lineHeight": 14,
697
+ },
698
+ {
699
+ "textAlign": "right",
700
+ },
701
+ ]
702
+ }
703
+ themeIntent="subdued"
704
+ >
705
+ 0
706
+ </Text>
707
+ </View>
708
+ </RNSVGGroup>
709
+ <RNSVGGroup
710
+ fill={
711
+ {
712
+ "payload": 4278190080,
713
+ "type": 0,
714
+ }
715
+ }
716
+ >
717
+ <View
718
+ style={
719
+ [
720
+ {},
721
+ {
722
+ "maxWidth": 32,
723
+ "position": "absolute",
724
+ "right": 68,
725
+ "top": 130,
726
+ "transform": [
727
+ {
728
+ "translateY": -7,
729
+ },
730
+ ],
731
+ },
732
+ ]
733
+ }
734
+ testID="y-axis-label-10-container"
735
+ >
736
+ <Text
737
+ adjustsFontSizeToFit={true}
738
+ allowFontScaling={false}
739
+ ellipsizeMode="tail"
740
+ minimumFontScale={0.6}
741
+ numberOfLines={1}
742
+ style={
743
+ [
744
+ {
745
+ "color": "#4d6265",
746
+ "fontSize": 10,
747
+ "letterSpacing": 0,
748
+ "lineHeight": 14,
749
+ },
750
+ {
751
+ "textAlign": "right",
752
+ },
753
+ ]
754
+ }
755
+ themeIntent="subdued"
756
+ >
757
+ 10
758
+ </Text>
759
+ </View>
760
+ </RNSVGGroup>
761
+ <RNSVGGroup
762
+ fill={
763
+ {
764
+ "payload": 4278190080,
765
+ "type": 0,
766
+ }
767
+ }
768
+ >
769
+ <View
770
+ style={
771
+ [
772
+ {},
773
+ {
774
+ "maxWidth": 32,
775
+ "position": "absolute",
776
+ "right": 68,
777
+ "top": 104.00000000000001,
778
+ "transform": [
779
+ {
780
+ "translateY": -7,
781
+ },
782
+ ],
783
+ },
784
+ ]
785
+ }
786
+ testID="y-axis-label-20-container"
787
+ >
788
+ <Text
789
+ adjustsFontSizeToFit={true}
790
+ allowFontScaling={false}
791
+ ellipsizeMode="tail"
792
+ minimumFontScale={0.6}
793
+ numberOfLines={1}
794
+ style={
795
+ [
796
+ {
797
+ "color": "#4d6265",
798
+ "fontSize": 10,
799
+ "letterSpacing": 0,
800
+ "lineHeight": 14,
801
+ },
802
+ {
803
+ "textAlign": "right",
804
+ },
805
+ ]
806
+ }
807
+ themeIntent="subdued"
808
+ >
809
+ 20
810
+ </Text>
811
+ </View>
812
+ </RNSVGGroup>
813
+ <RNSVGGroup
814
+ fill={
815
+ {
816
+ "payload": 4278190080,
817
+ "type": 0,
818
+ }
819
+ }
820
+ >
821
+ <View
822
+ style={
823
+ [
824
+ {},
825
+ {
826
+ "maxWidth": 32,
827
+ "position": "absolute",
828
+ "right": 68,
829
+ "top": 78,
830
+ "transform": [
831
+ {
832
+ "translateY": -7,
833
+ },
834
+ ],
835
+ },
836
+ ]
837
+ }
838
+ testID="y-axis-label-30-container"
839
+ >
840
+ <Text
841
+ adjustsFontSizeToFit={true}
842
+ allowFontScaling={false}
843
+ ellipsizeMode="tail"
844
+ minimumFontScale={0.6}
845
+ numberOfLines={1}
846
+ style={
847
+ [
848
+ {
849
+ "color": "#4d6265",
850
+ "fontSize": 10,
851
+ "letterSpacing": 0,
852
+ "lineHeight": 14,
853
+ },
854
+ {
855
+ "textAlign": "right",
856
+ },
857
+ ]
858
+ }
859
+ themeIntent="subdued"
860
+ >
861
+ 30
862
+ </Text>
863
+ </View>
864
+ </RNSVGGroup>
865
+ <RNSVGGroup
866
+ fill={
867
+ {
868
+ "payload": 4278190080,
869
+ "type": 0,
870
+ }
871
+ }
872
+ >
873
+ <View
874
+ style={
875
+ [
876
+ {},
877
+ {
878
+ "maxWidth": 32,
879
+ "position": "absolute",
880
+ "right": 68,
881
+ "top": 52.00000000000001,
882
+ "transform": [
883
+ {
884
+ "translateY": -7,
885
+ },
886
+ ],
887
+ },
888
+ ]
889
+ }
890
+ testID="y-axis-label-40-container"
891
+ >
892
+ <Text
893
+ adjustsFontSizeToFit={true}
894
+ allowFontScaling={false}
895
+ ellipsizeMode="tail"
896
+ minimumFontScale={0.6}
897
+ numberOfLines={1}
898
+ style={
899
+ [
900
+ {
901
+ "color": "#4d6265",
902
+ "fontSize": 10,
903
+ "letterSpacing": 0,
904
+ "lineHeight": 14,
905
+ },
906
+ {
907
+ "textAlign": "right",
908
+ },
909
+ ]
910
+ }
911
+ themeIntent="subdued"
912
+ >
913
+ 40
914
+ </Text>
915
+ </View>
916
+ </RNSVGGroup>
917
+ <RNSVGGroup
918
+ fill={
919
+ {
920
+ "payload": 4278190080,
921
+ "type": 0,
922
+ }
923
+ }
924
+ >
925
+ <View
926
+ style={
927
+ [
928
+ {},
929
+ {
930
+ "maxWidth": 32,
931
+ "position": "absolute",
932
+ "right": 68,
933
+ "top": 25.999999999999993,
934
+ "transform": [
935
+ {
936
+ "translateY": -7,
937
+ },
938
+ ],
939
+ },
940
+ ]
941
+ }
942
+ testID="y-axis-label-50-container"
943
+ >
944
+ <Text
945
+ adjustsFontSizeToFit={true}
946
+ allowFontScaling={false}
947
+ ellipsizeMode="tail"
948
+ minimumFontScale={0.6}
949
+ numberOfLines={1}
950
+ style={
951
+ [
952
+ {
953
+ "color": "#4d6265",
954
+ "fontSize": 10,
955
+ "letterSpacing": 0,
956
+ "lineHeight": 14,
957
+ },
958
+ {
959
+ "textAlign": "right",
960
+ },
961
+ ]
962
+ }
963
+ themeIntent="subdued"
964
+ >
965
+ 50
966
+ </Text>
967
+ </View>
968
+ </RNSVGGroup>
969
+ <RNSVGGroup
970
+ fill={
971
+ {
972
+ "payload": 4278190080,
973
+ "type": 0,
974
+ }
975
+ }
976
+ >
977
+ <View
978
+ style={
979
+ [
980
+ {},
981
+ {
982
+ "maxWidth": 32,
983
+ "position": "absolute",
984
+ "right": 68,
985
+ "top": 0,
986
+ "transform": [
987
+ {
988
+ "translateY": -7,
989
+ },
990
+ ],
991
+ },
992
+ ]
993
+ }
994
+ testID="y-axis-label-60-container"
995
+ >
996
+ <Text
997
+ adjustsFontSizeToFit={true}
998
+ allowFontScaling={false}
999
+ ellipsizeMode="tail"
1000
+ minimumFontScale={0.6}
1001
+ numberOfLines={1}
1002
+ style={
1003
+ [
1004
+ {
1005
+ "color": "#4d6265",
1006
+ "fontSize": 10,
1007
+ "letterSpacing": 0,
1008
+ "lineHeight": 14,
1009
+ },
1010
+ {
1011
+ "textAlign": "right",
1012
+ },
1013
+ ]
1014
+ }
1015
+ themeIntent="subdued"
1016
+ >
1017
+ 60
1018
+ </Text>
1019
+ </View>
1020
+ </RNSVGGroup>
1021
+ </RNSVGGroup>
1022
+ <RNSVGGroup
1023
+ fill={
1024
+ {
1025
+ "payload": 4278190080,
1026
+ "type": 0,
1027
+ }
1028
+ }
1029
+ testID="y-axis-grid"
1030
+ >
1031
+ <RNSVGLine
1032
+ fill={
1033
+ {
1034
+ "payload": 4278190080,
1035
+ "type": 0,
1036
+ }
1037
+ }
1038
+ propList={
1039
+ [
1040
+ "stroke",
1041
+ "strokeDasharray",
1042
+ ]
1043
+ }
1044
+ stroke={
1045
+ {
1046
+ "payload": 4293454314,
1047
+ "type": 0,
1048
+ }
1049
+ }
1050
+ strokeDasharray={
1051
+ [
1052
+ 4,
1053
+ 4,
1054
+ ]
1055
+ }
1056
+ testID="y-axis-grid-0"
1057
+ x1={48}
1058
+ x2={100}
1059
+ y1={156}
1060
+ y2={156}
1061
+ />
1062
+ <RNSVGLine
1063
+ fill={
1064
+ {
1065
+ "payload": 4278190080,
1066
+ "type": 0,
1067
+ }
1068
+ }
1069
+ propList={
1070
+ [
1071
+ "stroke",
1072
+ "strokeDasharray",
1073
+ ]
1074
+ }
1075
+ stroke={
1076
+ {
1077
+ "payload": 4293454314,
1078
+ "type": 0,
1079
+ }
1080
+ }
1081
+ strokeDasharray={
1082
+ [
1083
+ 4,
1084
+ 4,
1085
+ ]
1086
+ }
1087
+ testID="y-axis-grid-10"
1088
+ x1={48}
1089
+ x2={100}
1090
+ y1={130}
1091
+ y2={130}
1092
+ />
1093
+ <RNSVGLine
1094
+ fill={
1095
+ {
1096
+ "payload": 4278190080,
1097
+ "type": 0,
1098
+ }
1099
+ }
1100
+ propList={
1101
+ [
1102
+ "stroke",
1103
+ "strokeDasharray",
1104
+ ]
1105
+ }
1106
+ stroke={
1107
+ {
1108
+ "payload": 4293454314,
1109
+ "type": 0,
1110
+ }
1111
+ }
1112
+ strokeDasharray={
1113
+ [
1114
+ 4,
1115
+ 4,
1116
+ ]
1117
+ }
1118
+ testID="y-axis-grid-20"
1119
+ x1={48}
1120
+ x2={100}
1121
+ y1={104.00000000000001}
1122
+ y2={104.00000000000001}
1123
+ />
1124
+ <RNSVGLine
1125
+ fill={
1126
+ {
1127
+ "payload": 4278190080,
1128
+ "type": 0,
1129
+ }
1130
+ }
1131
+ propList={
1132
+ [
1133
+ "stroke",
1134
+ "strokeDasharray",
1135
+ ]
1136
+ }
1137
+ stroke={
1138
+ {
1139
+ "payload": 4293454314,
1140
+ "type": 0,
1141
+ }
1142
+ }
1143
+ strokeDasharray={
1144
+ [
1145
+ 4,
1146
+ 4,
1147
+ ]
1148
+ }
1149
+ testID="y-axis-grid-30"
1150
+ x1={48}
1151
+ x2={100}
1152
+ y1={78}
1153
+ y2={78}
1154
+ />
1155
+ <RNSVGLine
1156
+ fill={
1157
+ {
1158
+ "payload": 4278190080,
1159
+ "type": 0,
1160
+ }
1161
+ }
1162
+ propList={
1163
+ [
1164
+ "stroke",
1165
+ "strokeDasharray",
1166
+ ]
1167
+ }
1168
+ stroke={
1169
+ {
1170
+ "payload": 4293454314,
1171
+ "type": 0,
1172
+ }
1173
+ }
1174
+ strokeDasharray={
1175
+ [
1176
+ 4,
1177
+ 4,
1178
+ ]
1179
+ }
1180
+ testID="y-axis-grid-40"
1181
+ x1={48}
1182
+ x2={100}
1183
+ y1={52.00000000000001}
1184
+ y2={52.00000000000001}
1185
+ />
1186
+ <RNSVGLine
1187
+ fill={
1188
+ {
1189
+ "payload": 4278190080,
1190
+ "type": 0,
1191
+ }
1192
+ }
1193
+ propList={
1194
+ [
1195
+ "stroke",
1196
+ "strokeDasharray",
1197
+ ]
1198
+ }
1199
+ stroke={
1200
+ {
1201
+ "payload": 4293454314,
1202
+ "type": 0,
1203
+ }
1204
+ }
1205
+ strokeDasharray={
1206
+ [
1207
+ 4,
1208
+ 4,
1209
+ ]
1210
+ }
1211
+ testID="y-axis-grid-50"
1212
+ x1={48}
1213
+ x2={100}
1214
+ y1={25.999999999999993}
1215
+ y2={25.999999999999993}
1216
+ />
1217
+ <RNSVGLine
1218
+ fill={
1219
+ {
1220
+ "payload": 4278190080,
1221
+ "type": 0,
1222
+ }
1223
+ }
1224
+ propList={
1225
+ [
1226
+ "stroke",
1227
+ "strokeDasharray",
1228
+ ]
1229
+ }
1230
+ stroke={
1231
+ {
1232
+ "payload": 4293454314,
1233
+ "type": 0,
1234
+ }
1235
+ }
1236
+ strokeDasharray={
1237
+ [
1238
+ 4,
1239
+ 4,
1240
+ ]
1241
+ }
1242
+ testID="y-axis-grid-60"
1243
+ x1={48}
1244
+ x2={100}
1245
+ y1={0}
1246
+ y2={0}
1247
+ />
1248
+ </RNSVGGroup>
1249
+ <RNSVGGroup
1250
+ fill={
1251
+ {
1252
+ "payload": 4278190080,
1253
+ "type": 0,
1254
+ }
1255
+ }
1256
+ testID="column-chart-content"
1257
+ >
1258
+ <RNSVGRect
1259
+ accessibilityLabel="Column segment: value 10, x-label A, series Series 1"
1260
+ fill={
1261
+ {
1262
+ "payload": 4291005678,
1263
+ "type": 0,
1264
+ }
1265
+ }
1266
+ height={24}
1267
+ propList={
1268
+ [
1269
+ "fill",
1270
+ ]
1271
+ }
1272
+ rx={8}
1273
+ testID="column-segment-A-Series 1"
1274
+ width={16}
1275
+ x={49.75}
1276
+ y={131}
1277
+ />
1278
+ <RNSVGRect
1279
+ accessibilityLabel="Column segment: value 5, x-label A, series Series 2"
1280
+ fill={
1281
+ {
1282
+ "payload": 4280139502,
1283
+ "type": 0,
1284
+ }
1285
+ }
1286
+ height={11}
1287
+ propList={
1288
+ [
1289
+ "fill",
1290
+ ]
1291
+ }
1292
+ rx={8}
1293
+ testID="column-segment-A-Series 2"
1294
+ width={16}
1295
+ x={49.75}
1296
+ y={118}
1297
+ />
1298
+ <RNSVGRect
1299
+ accessibilityLabel="Column segment: value 20, x-label B, series Series 1"
1300
+ fill={
1301
+ {
1302
+ "payload": 4291005678,
1303
+ "type": 0,
1304
+ }
1305
+ }
1306
+ height={49.999999999999986}
1307
+ propList={
1308
+ [
1309
+ "fill",
1310
+ ]
1311
+ }
1312
+ rx={8}
1313
+ testID="column-segment-B-Series 1"
1314
+ width={16}
1315
+ x={66}
1316
+ y={105.00000000000001}
1317
+ />
1318
+ <RNSVGRect
1319
+ accessibilityLabel="Column segment: value 15, x-label B, series Series 2"
1320
+ fill={
1321
+ {
1322
+ "payload": 4280139502,
1323
+ "type": 0,
1324
+ }
1325
+ }
1326
+ height={37.000000000000014}
1327
+ propList={
1328
+ [
1329
+ "fill",
1330
+ ]
1331
+ }
1332
+ rx={8}
1333
+ testID="column-segment-B-Series 2"
1334
+ width={16}
1335
+ x={66}
1336
+ y={66}
1337
+ />
1338
+ <RNSVGRect
1339
+ accessibilityLabel="Column segment: value 30, x-label C, series Series 1"
1340
+ fill={
1341
+ {
1342
+ "payload": 4291005678,
1343
+ "type": 0,
1344
+ }
1345
+ }
1346
+ height={76}
1347
+ propList={
1348
+ [
1349
+ "fill",
1350
+ ]
1351
+ }
1352
+ rx={8}
1353
+ testID="column-segment-C-Series 1"
1354
+ width={16}
1355
+ x={82.25}
1356
+ y={79}
1357
+ />
1358
+ <RNSVGRect
1359
+ accessibilityLabel="Column segment: value 25, x-label C, series Series 2"
1360
+ fill={
1361
+ {
1362
+ "payload": 4280139502,
1363
+ "type": 0,
1364
+ }
1365
+ }
1366
+ height={63}
1367
+ propList={
1368
+ [
1369
+ "fill",
1370
+ ]
1371
+ }
1372
+ rx={8}
1373
+ testID="column-segment-C-Series 2"
1374
+ width={16}
1375
+ x={82.25}
1376
+ y={14.000000000000005}
1377
+ />
1378
+ </RNSVGGroup>
1379
+ </RNSVGGroup>
1380
+ </RNSVGSvgView>
1381
+ </View>
1382
+ </View>
1383
+ </View>
1384
+ <View
1385
+ pointerEvents="box-none"
1386
+ position="bottom"
1387
+ style={
1388
+ [
1389
+ {
1390
+ "bottom": 0,
1391
+ "elevation": 9999,
1392
+ "flexDirection": "column-reverse",
1393
+ "left": 0,
1394
+ "paddingHorizontal": 24,
1395
+ "paddingVertical": 16,
1396
+ "position": "absolute",
1397
+ "right": 0,
1398
+ "top": 0,
1399
+ },
1400
+ undefined,
1401
+ ]
1402
+ }
1403
+ />
1404
+ </View>
1405
+ `;