@hero-design/rn 8.100.2 → 8.101.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.
- package/.turbo/turbo-build.log +3 -3
- package/CHANGELOG.md +6 -0
- package/es/index.js +109 -25
- package/lib/index.js +109 -25
- package/package.json +1 -1
- package/src/components/Chart/ColumnChart/ColumnChartContent.tsx +19 -3
- package/src/components/Chart/ColumnChart/Segment.tsx +1 -1
- package/src/components/Chart/ColumnChart/StackedSegment.tsx +10 -6
- package/src/components/Chart/ColumnChart/__tests__/Segment.spec.tsx +1 -1
- package/src/components/Chart/ColumnChart/__tests__/__snapshots__/StackedSegment.spec.tsx.snap +6 -21
- package/src/components/Chart/ColumnChart/__tests__/__snapshots__/index.spec.tsx.snap +999 -6
- package/src/components/Chart/ColumnChart/__tests__/index.spec.tsx +107 -0
- package/src/components/Chart/ColumnChart/index.tsx +15 -0
- package/src/components/Chart/Line/Line.tsx +5 -2
- package/src/components/Chart/Line/__tests__/Line.spec.tsx +13 -6
- package/src/components/Chart/Line/__tests__/__snapshots__/Line.spec.tsx.snap +1 -1
- package/src/components/Chart/Line/__tests__/__snapshots__/index.spec.tsx.snap +1464 -4
- package/src/components/Chart/Line/__tests__/index.spec.tsx +95 -1
- package/src/components/Chart/Line/index.tsx +14 -2
- package/src/components/Chart/shared/__tests__/utils.spec.ts +16 -0
- package/src/components/Chart/shared/constants.ts +4 -0
- package/src/components/Chart/shared/hooks/useCustomColor.ts +84 -0
- package/src/components/Chart/shared/utils.ts +14 -0
- package/src/components/Chart/types.ts +32 -0
- package/stats/8.100.2/rn-stats.html +1 -3
- package/stats/8.101.0/rn-stats.html +4844 -0
- package/types/components/Chart/ColumnChart/ColumnChartContent.d.ts +5 -1
- package/types/components/Chart/ColumnChart/StackedSegment.d.ts +4 -0
- package/types/components/Chart/ColumnChart/index.d.ts +8 -2
- package/types/components/Chart/Line/Line.d.ts +3 -1
- package/types/components/Chart/Line/index.d.ts +8 -2
- package/types/components/Chart/index.d.ts +2 -2
- package/types/components/Chart/shared/constants.d.ts +2 -0
- package/types/components/Chart/shared/hooks/useCustomColor.d.ts +22 -0
- package/types/components/Chart/shared/utils.d.ts +11 -0
- package/types/components/Chart/types.d.ts +14 -1
package/src/components/Chart/ColumnChart/__tests__/__snapshots__/StackedSegment.spec.tsx.snap
CHANGED
|
@@ -35,19 +35,14 @@ exports[`StackedSegment renders segments with correct accessibilityLabel and tes
|
|
|
35
35
|
}
|
|
36
36
|
>
|
|
37
37
|
<RNSVGRect
|
|
38
|
-
accessibilityLabel="Column segment: value 10, x-label A, series Series 1"
|
|
38
|
+
accessibilityLabel="Column segment: value 10, x-label A, series Series 1, color undefined"
|
|
39
39
|
fill={
|
|
40
40
|
{
|
|
41
|
-
"payload":
|
|
41
|
+
"payload": 4278190080,
|
|
42
42
|
"type": 0,
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
45
|
height={31.333333333333314}
|
|
46
|
-
propList={
|
|
47
|
-
[
|
|
48
|
-
"fill",
|
|
49
|
-
]
|
|
50
|
-
}
|
|
51
46
|
rx={8}
|
|
52
47
|
testID="column-segment-A-Series 1"
|
|
53
48
|
width={16}
|
|
@@ -55,19 +50,14 @@ exports[`StackedSegment renders segments with correct accessibilityLabel and tes
|
|
|
55
50
|
y={167.66666666666669}
|
|
56
51
|
/>
|
|
57
52
|
<RNSVGRect
|
|
58
|
-
accessibilityLabel="Column segment: value 20, x-label A, series Series 2"
|
|
53
|
+
accessibilityLabel="Column segment: value 20, x-label A, series Series 2, color undefined"
|
|
59
54
|
fill={
|
|
60
55
|
{
|
|
61
|
-
"payload":
|
|
56
|
+
"payload": 4278190080,
|
|
62
57
|
"type": 0,
|
|
63
58
|
}
|
|
64
59
|
}
|
|
65
60
|
height={64.66666666666669}
|
|
66
|
-
propList={
|
|
67
|
-
[
|
|
68
|
-
"fill",
|
|
69
|
-
]
|
|
70
|
-
}
|
|
71
61
|
rx={8}
|
|
72
62
|
testID="column-segment-A-Series 2"
|
|
73
63
|
width={16}
|
|
@@ -75,19 +65,14 @@ exports[`StackedSegment renders segments with correct accessibilityLabel and tes
|
|
|
75
65
|
y={101}
|
|
76
66
|
/>
|
|
77
67
|
<RNSVGRect
|
|
78
|
-
accessibilityLabel="Column segment: value 30, x-label A, series Series 3"
|
|
68
|
+
accessibilityLabel="Column segment: value 30, x-label A, series Series 3, color undefined"
|
|
79
69
|
fill={
|
|
80
70
|
{
|
|
81
|
-
"payload":
|
|
71
|
+
"payload": 4278190080,
|
|
82
72
|
"type": 0,
|
|
83
73
|
}
|
|
84
74
|
}
|
|
85
75
|
height={98}
|
|
86
|
-
propList={
|
|
87
|
-
[
|
|
88
|
-
"fill",
|
|
89
|
-
]
|
|
90
|
-
}
|
|
91
76
|
rx={8}
|
|
92
77
|
testID="column-segment-A-Series 3"
|
|
93
78
|
width={16}
|