@hero-design/rn 7.8.0 → 7.10.1
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 +8 -8
- package/assets/fonts/hero-icons.ttf +0 -0
- package/es/index.js +741 -258
- package/lib/assets/fonts/hero-icons.ttf +0 -0
- package/lib/index.js +740 -257
- package/package.json +2 -2
- package/src/components/Button/Button.tsx +10 -2
- package/src/components/Button/LoadingIndicator/StyledLoadingIndicator.tsx +7 -1
- package/src/components/Button/LoadingIndicator/__tests__/StyledLoadingIndicator.spec.tsx +3 -0
- package/src/components/Button/LoadingIndicator/__tests__/__snapshots__/StyledLoadingIndicator.spec.tsx.snap +60 -0
- package/src/components/Button/LoadingIndicator/__tests__/__snapshots__/index.spec.tsx.snap +363 -0
- package/src/components/Button/LoadingIndicator/__tests__/index.spec.tsx +3 -0
- package/src/components/Button/LoadingIndicator/index.tsx +4 -1
- package/src/components/Button/StyledButton.tsx +57 -1
- package/src/components/Button/UtilityButton/__tests__/__snapshots__/index.spec.tsx.snap +167 -0
- package/src/components/Button/UtilityButton/__tests__/index.spec.tsx +55 -0
- package/src/components/Button/UtilityButton/index.tsx +53 -0
- package/src/components/Button/UtilityButton/styled.tsx +25 -0
- package/src/components/Button/__tests__/Button.spec.tsx +3 -0
- package/src/components/Button/__tests__/StyledButton.spec.tsx +18 -0
- package/src/components/Button/__tests__/__snapshots__/StyledButton.spec.tsx.snap +468 -0
- package/src/components/Button/index.tsx +3 -0
- package/src/components/Card/DataCard/StyledDataCard.tsx +1 -3
- package/src/components/Card/DataCard/__tests__/__snapshots__/StyledDataCard.spec.tsx.snap +0 -1
- package/src/components/Card/DataCard/__tests__/__snapshots__/index.spec.tsx.snap +0 -5
- package/src/components/Card/StyledCard.tsx +1 -3
- package/src/components/Card/__tests__/__snapshots__/StyledCard.spec.tsx.snap +0 -1
- package/src/components/Icon/HeroIcon/index.tsx +3 -1
- package/src/components/Icon/HeroIcon/selection.json +1 -1
- package/src/components/Icon/IconList.ts +2 -0
- package/src/components/Icon/index.tsx +2 -1
- package/src/components/Select/MultiSelect/__tests__/__snapshots__/index.spec.tsx.snap +248 -94
- package/src/components/Select/SingleSelect/__tests__/__snapshots__/index.spec.tsx.snap +248 -94
- package/src/components/TextInput/StyledTextInput.tsx +133 -11
- package/src/components/TextInput/__tests__/StyledTextInput.spec.tsx +143 -7
- package/src/components/TextInput/__tests__/__snapshots__/StyledTextInput.spec.tsx.snap +922 -15
- package/src/components/TextInput/__tests__/__snapshots__/index.spec.tsx.snap +2078 -0
- package/src/components/TextInput/__tests__/index.spec.tsx +302 -11
- package/src/components/TextInput/index.tsx +232 -28
- package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +73 -3
- package/src/theme/components/button.ts +6 -0
- package/src/theme/components/card.ts +5 -1
- package/src/theme/components/icon.ts +1 -0
- package/src/theme/components/textInput.ts +62 -3
- package/src/theme/global/colors.ts +1 -0
- package/src/types.ts +8 -1
- package/types/components/Button/Button.d.ts +2 -2
- package/types/components/Button/LoadingIndicator/StyledLoadingIndicator.d.ts +1 -1
- package/types/components/Button/LoadingIndicator/index.d.ts +1 -1
- package/types/components/Button/StyledButton.d.ts +1 -1
- package/types/components/{Select/MultiSelect/__tests__/StyledMultiSelect.spec.d.ts → Button/UtilityButton/__tests__/index.spec.d.ts} +0 -0
- package/types/components/Button/UtilityButton/index.d.ts +23 -0
- package/types/components/Button/UtilityButton/styled.d.ts +17 -0
- package/types/components/Button/index.d.ts +2 -0
- package/types/components/Icon/HeroIcon/index.d.ts +1 -1
- package/types/components/Icon/IconList.d.ts +1 -1
- package/types/components/Icon/index.d.ts +1 -1
- package/types/components/Icon/utils.d.ts +1 -1
- package/types/components/TextInput/StyledTextInput.d.ts +82 -3
- package/types/components/TextInput/index.d.ts +33 -5
- package/types/theme/components/button.d.ts +6 -0
- package/types/theme/components/card.d.ts +3 -0
- package/types/theme/components/icon.d.ts +1 -0
- package/types/theme/components/textInput.d.ts +61 -2
- package/types/theme/global/colors.d.ts +1 -0
- package/types/theme/global/index.d.ts +1 -0
- package/types/types.d.ts +2 -1
- package/.expo/README.md +0 -15
- package/.expo/packager-info.json +0 -10
- package/.expo/prebuild/cached-packages.json +0 -4
- package/.expo/settings.json +0 -10
- package/.expo/xcodebuild-error.log +0 -2
- package/.expo/xcodebuild.log +0 -11199
- package/types/components/Select/MultiSelect/Footer.d.ts +0 -5
- package/types/components/Select/MultiSelect/StyledMultiSelect.d.ts +0 -26
- package/types/components/Select/MultiSelect/types.d.ts +0 -5
|
@@ -20,34 +20,54 @@ exports[`rendering renders correctly when bottom sheet is NOT visible 1`] = `
|
|
|
20
20
|
}
|
|
21
21
|
>
|
|
22
22
|
<View
|
|
23
|
+
pointerEvents="auto"
|
|
23
24
|
style={
|
|
24
25
|
Array [
|
|
25
26
|
Object {
|
|
26
|
-
"
|
|
27
|
-
"borderRadius": 8,
|
|
28
|
-
"borderWidth": 1,
|
|
29
|
-
"flexDirection": "row",
|
|
30
|
-
"padding": 16,
|
|
31
|
-
"position": "relative",
|
|
27
|
+
"marginVertical": 8,
|
|
32
28
|
"width": "100%",
|
|
33
29
|
},
|
|
34
30
|
undefined,
|
|
35
31
|
]
|
|
36
32
|
}
|
|
37
33
|
>
|
|
38
|
-
<
|
|
34
|
+
<View
|
|
39
35
|
style={
|
|
40
36
|
Array [
|
|
41
37
|
Object {
|
|
42
|
-
"
|
|
43
|
-
"
|
|
44
|
-
"
|
|
45
|
-
"letterSpacing": 0.36,
|
|
46
|
-
"lineHeight": 20,
|
|
38
|
+
"alignItems": "center",
|
|
39
|
+
"flexDirection": "row",
|
|
40
|
+
"padding": 16,
|
|
47
41
|
},
|
|
42
|
+
undefined,
|
|
43
|
+
]
|
|
44
|
+
}
|
|
45
|
+
>
|
|
46
|
+
<View
|
|
47
|
+
style={
|
|
48
|
+
Array [
|
|
49
|
+
Object {
|
|
50
|
+
"borderColor": "#8b8d92",
|
|
51
|
+
"borderRadius": 8,
|
|
52
|
+
"borderWidth": 1,
|
|
53
|
+
"bottom": 0,
|
|
54
|
+
"left": 0,
|
|
55
|
+
"position": "absolute",
|
|
56
|
+
"right": 0,
|
|
57
|
+
"top": 0,
|
|
58
|
+
},
|
|
59
|
+
undefined,
|
|
60
|
+
]
|
|
61
|
+
}
|
|
62
|
+
themeVariant="readonly"
|
|
63
|
+
/>
|
|
64
|
+
<View
|
|
65
|
+
pointerEvents="none"
|
|
66
|
+
style={
|
|
48
67
|
Array [
|
|
49
68
|
Object {
|
|
50
69
|
"backgroundColor": "#ffffff",
|
|
70
|
+
"flexDirection": "row",
|
|
51
71
|
"left": 16,
|
|
52
72
|
"paddingHorizontal": 4,
|
|
53
73
|
"position": "absolute",
|
|
@@ -55,49 +75,106 @@ exports[`rendering renders correctly when bottom sheet is NOT visible 1`] = `
|
|
|
55
75
|
"zIndex": 1,
|
|
56
76
|
},
|
|
57
77
|
undefined,
|
|
58
|
-
]
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
78
|
+
]
|
|
79
|
+
}
|
|
80
|
+
>
|
|
81
|
+
<Text
|
|
82
|
+
style={
|
|
83
|
+
Array [
|
|
84
|
+
Object {
|
|
85
|
+
"color": "#292a2b",
|
|
86
|
+
"fontFamily": "BeVietnamPro-Regular",
|
|
87
|
+
"fontSize": 12,
|
|
88
|
+
"letterSpacing": 0.36,
|
|
89
|
+
"lineHeight": 20,
|
|
90
|
+
},
|
|
91
|
+
Array [
|
|
92
|
+
Object {
|
|
93
|
+
"color": "#8b8d92",
|
|
94
|
+
},
|
|
95
|
+
undefined,
|
|
96
|
+
],
|
|
97
|
+
]
|
|
98
|
+
}
|
|
99
|
+
testID="input-label"
|
|
100
|
+
themeFontSize="small"
|
|
101
|
+
themeFontWeight="regular"
|
|
102
|
+
themeIntent="body"
|
|
103
|
+
themeVariant="readonly"
|
|
104
|
+
>
|
|
105
|
+
Allow notifications
|
|
106
|
+
</Text>
|
|
107
|
+
</View>
|
|
108
|
+
<View
|
|
109
|
+
style={
|
|
110
|
+
Array [
|
|
111
|
+
Object {
|
|
112
|
+
"alignItems": "center",
|
|
113
|
+
"alignSelf": "stretch",
|
|
114
|
+
"flexDirection": "row",
|
|
115
|
+
"flexGrow": 2,
|
|
116
|
+
},
|
|
117
|
+
undefined,
|
|
118
|
+
]
|
|
119
|
+
}
|
|
120
|
+
>
|
|
121
|
+
<TextInput
|
|
122
|
+
accessibilityState={
|
|
123
|
+
Object {
|
|
124
|
+
"disabled": false,
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
editable={false}
|
|
128
|
+
multiline={true}
|
|
129
|
+
onBlur={[Function]}
|
|
130
|
+
onChangeText={[Function]}
|
|
131
|
+
onFocus={[Function]}
|
|
132
|
+
onPressIn={[Function]}
|
|
133
|
+
style={
|
|
134
|
+
Array [
|
|
135
|
+
Object {
|
|
136
|
+
"alignSelf": "stretch",
|
|
137
|
+
"flexGrow": 2,
|
|
138
|
+
"fontSize": 14,
|
|
139
|
+
"marginHorizontal": 8,
|
|
140
|
+
"textAlignVertical": "center",
|
|
141
|
+
},
|
|
142
|
+
Object {
|
|
143
|
+
"color": "#292a2b",
|
|
144
|
+
},
|
|
145
|
+
]
|
|
146
|
+
}
|
|
147
|
+
testID="text-input"
|
|
148
|
+
value="Monday, Tuesday"
|
|
149
|
+
/>
|
|
150
|
+
</View>
|
|
151
|
+
<HeroIcon
|
|
152
|
+
name="arrow-down"
|
|
153
|
+
style={
|
|
154
|
+
Array [
|
|
155
|
+
Object {
|
|
156
|
+
"color": "#292a2b",
|
|
157
|
+
"fontSize": 16,
|
|
158
|
+
},
|
|
159
|
+
undefined,
|
|
160
|
+
]
|
|
161
|
+
}
|
|
162
|
+
testID="input-suffix"
|
|
163
|
+
themeIntent="text"
|
|
164
|
+
themeSize="xsmall"
|
|
165
|
+
/>
|
|
166
|
+
</View>
|
|
167
|
+
<View
|
|
72
168
|
style={
|
|
73
169
|
Array [
|
|
74
170
|
Object {
|
|
75
171
|
"flex": 1,
|
|
76
|
-
"
|
|
77
|
-
"
|
|
78
|
-
},
|
|
79
|
-
Object {
|
|
80
|
-
"color": "#292a2b",
|
|
81
|
-
},
|
|
82
|
-
]
|
|
83
|
-
}
|
|
84
|
-
testID="text-input"
|
|
85
|
-
value="Monday, Tuesday"
|
|
86
|
-
/>
|
|
87
|
-
<HeroIcon
|
|
88
|
-
name="arrow-down"
|
|
89
|
-
style={
|
|
90
|
-
Array [
|
|
91
|
-
Object {
|
|
92
|
-
"color": "#292a2b",
|
|
93
|
-
"fontSize": 16,
|
|
172
|
+
"flexDirection": "row",
|
|
173
|
+
"justifyContent": "space-between",
|
|
94
174
|
},
|
|
95
175
|
undefined,
|
|
96
176
|
]
|
|
97
177
|
}
|
|
98
|
-
testID="input-suffix"
|
|
99
|
-
themeIntent="text"
|
|
100
|
-
themeSize="xsmall"
|
|
101
178
|
/>
|
|
102
179
|
</View>
|
|
103
180
|
<Modal
|
|
@@ -844,34 +921,54 @@ exports[`rendering renders correctly when bottom sheet is visible 1`] = `
|
|
|
844
921
|
}
|
|
845
922
|
>
|
|
846
923
|
<View
|
|
924
|
+
pointerEvents="auto"
|
|
847
925
|
style={
|
|
848
926
|
Array [
|
|
849
927
|
Object {
|
|
850
|
-
"
|
|
851
|
-
"borderRadius": 8,
|
|
852
|
-
"borderWidth": 1,
|
|
853
|
-
"flexDirection": "row",
|
|
854
|
-
"padding": 16,
|
|
855
|
-
"position": "relative",
|
|
928
|
+
"marginVertical": 8,
|
|
856
929
|
"width": "100%",
|
|
857
930
|
},
|
|
858
931
|
undefined,
|
|
859
932
|
]
|
|
860
933
|
}
|
|
861
934
|
>
|
|
862
|
-
<
|
|
935
|
+
<View
|
|
863
936
|
style={
|
|
864
937
|
Array [
|
|
865
938
|
Object {
|
|
866
|
-
"
|
|
867
|
-
"
|
|
868
|
-
"
|
|
869
|
-
"letterSpacing": 0.36,
|
|
870
|
-
"lineHeight": 20,
|
|
939
|
+
"alignItems": "center",
|
|
940
|
+
"flexDirection": "row",
|
|
941
|
+
"padding": 16,
|
|
871
942
|
},
|
|
943
|
+
undefined,
|
|
944
|
+
]
|
|
945
|
+
}
|
|
946
|
+
>
|
|
947
|
+
<View
|
|
948
|
+
style={
|
|
949
|
+
Array [
|
|
950
|
+
Object {
|
|
951
|
+
"borderColor": "#8b8d92",
|
|
952
|
+
"borderRadius": 8,
|
|
953
|
+
"borderWidth": 1,
|
|
954
|
+
"bottom": 0,
|
|
955
|
+
"left": 0,
|
|
956
|
+
"position": "absolute",
|
|
957
|
+
"right": 0,
|
|
958
|
+
"top": 0,
|
|
959
|
+
},
|
|
960
|
+
undefined,
|
|
961
|
+
]
|
|
962
|
+
}
|
|
963
|
+
themeVariant="readonly"
|
|
964
|
+
/>
|
|
965
|
+
<View
|
|
966
|
+
pointerEvents="none"
|
|
967
|
+
style={
|
|
872
968
|
Array [
|
|
873
969
|
Object {
|
|
874
970
|
"backgroundColor": "#ffffff",
|
|
971
|
+
"flexDirection": "row",
|
|
875
972
|
"left": 16,
|
|
876
973
|
"paddingHorizontal": 4,
|
|
877
974
|
"position": "absolute",
|
|
@@ -879,49 +976,106 @@ exports[`rendering renders correctly when bottom sheet is visible 1`] = `
|
|
|
879
976
|
"zIndex": 1,
|
|
880
977
|
},
|
|
881
978
|
undefined,
|
|
882
|
-
]
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
979
|
+
]
|
|
980
|
+
}
|
|
981
|
+
>
|
|
982
|
+
<Text
|
|
983
|
+
style={
|
|
984
|
+
Array [
|
|
985
|
+
Object {
|
|
986
|
+
"color": "#292a2b",
|
|
987
|
+
"fontFamily": "BeVietnamPro-Regular",
|
|
988
|
+
"fontSize": 12,
|
|
989
|
+
"letterSpacing": 0.36,
|
|
990
|
+
"lineHeight": 20,
|
|
991
|
+
},
|
|
992
|
+
Array [
|
|
993
|
+
Object {
|
|
994
|
+
"color": "#8b8d92",
|
|
995
|
+
},
|
|
996
|
+
undefined,
|
|
997
|
+
],
|
|
998
|
+
]
|
|
999
|
+
}
|
|
1000
|
+
testID="input-label"
|
|
1001
|
+
themeFontSize="small"
|
|
1002
|
+
themeFontWeight="regular"
|
|
1003
|
+
themeIntent="body"
|
|
1004
|
+
themeVariant="readonly"
|
|
1005
|
+
>
|
|
1006
|
+
Allow notifications
|
|
1007
|
+
</Text>
|
|
1008
|
+
</View>
|
|
1009
|
+
<View
|
|
1010
|
+
style={
|
|
1011
|
+
Array [
|
|
1012
|
+
Object {
|
|
1013
|
+
"alignItems": "center",
|
|
1014
|
+
"alignSelf": "stretch",
|
|
1015
|
+
"flexDirection": "row",
|
|
1016
|
+
"flexGrow": 2,
|
|
1017
|
+
},
|
|
1018
|
+
undefined,
|
|
1019
|
+
]
|
|
1020
|
+
}
|
|
1021
|
+
>
|
|
1022
|
+
<TextInput
|
|
1023
|
+
accessibilityState={
|
|
1024
|
+
Object {
|
|
1025
|
+
"disabled": false,
|
|
1026
|
+
}
|
|
1027
|
+
}
|
|
1028
|
+
editable={false}
|
|
1029
|
+
multiline={true}
|
|
1030
|
+
onBlur={[Function]}
|
|
1031
|
+
onChangeText={[Function]}
|
|
1032
|
+
onFocus={[Function]}
|
|
1033
|
+
onPressIn={[Function]}
|
|
1034
|
+
style={
|
|
1035
|
+
Array [
|
|
1036
|
+
Object {
|
|
1037
|
+
"alignSelf": "stretch",
|
|
1038
|
+
"flexGrow": 2,
|
|
1039
|
+
"fontSize": 14,
|
|
1040
|
+
"marginHorizontal": 8,
|
|
1041
|
+
"textAlignVertical": "center",
|
|
1042
|
+
},
|
|
1043
|
+
Object {
|
|
1044
|
+
"color": "#292a2b",
|
|
1045
|
+
},
|
|
1046
|
+
]
|
|
1047
|
+
}
|
|
1048
|
+
testID="text-input"
|
|
1049
|
+
value="Monday, Tuesday"
|
|
1050
|
+
/>
|
|
1051
|
+
</View>
|
|
1052
|
+
<HeroIcon
|
|
1053
|
+
name="arrow-down"
|
|
1054
|
+
style={
|
|
1055
|
+
Array [
|
|
1056
|
+
Object {
|
|
1057
|
+
"color": "#292a2b",
|
|
1058
|
+
"fontSize": 16,
|
|
1059
|
+
},
|
|
1060
|
+
undefined,
|
|
1061
|
+
]
|
|
1062
|
+
}
|
|
1063
|
+
testID="input-suffix"
|
|
1064
|
+
themeIntent="text"
|
|
1065
|
+
themeSize="xsmall"
|
|
1066
|
+
/>
|
|
1067
|
+
</View>
|
|
1068
|
+
<View
|
|
896
1069
|
style={
|
|
897
1070
|
Array [
|
|
898
1071
|
Object {
|
|
899
1072
|
"flex": 1,
|
|
900
|
-
"
|
|
901
|
-
"
|
|
902
|
-
},
|
|
903
|
-
Object {
|
|
904
|
-
"color": "#292a2b",
|
|
905
|
-
},
|
|
906
|
-
]
|
|
907
|
-
}
|
|
908
|
-
testID="text-input"
|
|
909
|
-
value="Monday, Tuesday"
|
|
910
|
-
/>
|
|
911
|
-
<HeroIcon
|
|
912
|
-
name="arrow-down"
|
|
913
|
-
style={
|
|
914
|
-
Array [
|
|
915
|
-
Object {
|
|
916
|
-
"color": "#292a2b",
|
|
917
|
-
"fontSize": 16,
|
|
1073
|
+
"flexDirection": "row",
|
|
1074
|
+
"justifyContent": "space-between",
|
|
918
1075
|
},
|
|
919
1076
|
undefined,
|
|
920
1077
|
]
|
|
921
1078
|
}
|
|
922
|
-
testID="input-suffix"
|
|
923
|
-
themeIntent="text"
|
|
924
|
-
themeSize="xsmall"
|
|
925
1079
|
/>
|
|
926
1080
|
</View>
|
|
927
1081
|
<Modal
|