@hero-design/rn 7.9.0 → 7.10.2-rc.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 (62) hide show
  1. package/.turbo/turbo-build.log +2 -2
  2. package/assets/fonts/hero-icons.ttf +0 -0
  3. package/es/index.js +733 -252
  4. package/lib/assets/fonts/hero-icons.ttf +0 -0
  5. package/lib/index.js +732 -251
  6. package/package.json +2 -2
  7. package/src/components/Button/Button.tsx +10 -2
  8. package/src/components/Button/LoadingIndicator/StyledLoadingIndicator.tsx +7 -1
  9. package/src/components/Button/LoadingIndicator/__tests__/StyledLoadingIndicator.spec.tsx +3 -0
  10. package/src/components/Button/LoadingIndicator/__tests__/__snapshots__/StyledLoadingIndicator.spec.tsx.snap +60 -0
  11. package/src/components/Button/LoadingIndicator/__tests__/__snapshots__/index.spec.tsx.snap +363 -0
  12. package/src/components/Button/LoadingIndicator/__tests__/index.spec.tsx +3 -0
  13. package/src/components/Button/LoadingIndicator/index.tsx +4 -1
  14. package/src/components/Button/StyledButton.tsx +57 -1
  15. package/src/components/Button/UtilityButton/__tests__/__snapshots__/index.spec.tsx.snap +167 -0
  16. package/src/components/Button/UtilityButton/__tests__/index.spec.tsx +55 -0
  17. package/src/components/Button/UtilityButton/index.tsx +53 -0
  18. package/src/components/Button/UtilityButton/styled.tsx +25 -0
  19. package/src/components/Button/__tests__/Button.spec.tsx +3 -0
  20. package/src/components/Button/__tests__/StyledButton.spec.tsx +18 -0
  21. package/src/components/Button/__tests__/__snapshots__/StyledButton.spec.tsx.snap +468 -0
  22. package/src/components/Button/index.tsx +3 -0
  23. package/src/components/Icon/HeroIcon/selection.json +1 -1
  24. package/src/components/Icon/IconList.ts +2 -0
  25. package/src/components/Select/MultiSelect/__tests__/__snapshots__/index.spec.tsx.snap +248 -94
  26. package/src/components/Select/SingleSelect/__tests__/__snapshots__/index.spec.tsx.snap +248 -94
  27. package/src/components/TextInput/StyledTextInput.tsx +133 -11
  28. package/src/components/TextInput/__tests__/.log/ti-10343.log +62 -0
  29. package/src/components/TextInput/__tests__/.log/tsserver.log +6983 -0
  30. package/src/components/TextInput/__tests__/StyledTextInput.spec.tsx +143 -7
  31. package/src/components/TextInput/__tests__/__snapshots__/StyledTextInput.spec.tsx.snap +922 -15
  32. package/src/components/TextInput/__tests__/__snapshots__/index.spec.tsx.snap +2561 -0
  33. package/src/components/TextInput/__tests__/index.spec.tsx +346 -11
  34. package/src/components/TextInput/index.tsx +235 -28
  35. package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +69 -3
  36. package/src/theme/components/button.ts +6 -0
  37. package/src/theme/components/textInput.ts +62 -3
  38. package/src/theme/global/colors.ts +1 -0
  39. package/src/types.ts +8 -1
  40. package/types/components/Button/Button.d.ts +2 -2
  41. package/types/components/Button/LoadingIndicator/StyledLoadingIndicator.d.ts +1 -1
  42. package/types/components/Button/LoadingIndicator/index.d.ts +1 -1
  43. package/types/components/Button/StyledButton.d.ts +1 -1
  44. package/types/components/Button/UtilityButton/__tests__/index.spec.d.ts +1 -0
  45. package/types/components/Button/UtilityButton/index.d.ts +23 -0
  46. package/types/components/Button/UtilityButton/styled.d.ts +17 -0
  47. package/types/components/Button/index.d.ts +2 -0
  48. package/types/components/Icon/IconList.d.ts +1 -1
  49. package/types/components/Icon/utils.d.ts +1 -1
  50. package/types/components/TextInput/StyledTextInput.d.ts +82 -3
  51. package/types/components/TextInput/index.d.ts +33 -5
  52. package/types/theme/components/button.d.ts +6 -0
  53. package/types/theme/components/textInput.d.ts +61 -2
  54. package/types/theme/global/colors.d.ts +1 -0
  55. package/types/theme/global/index.d.ts +1 -0
  56. package/types/types.d.ts +2 -1
  57. package/.expo/README.md +0 -15
  58. package/.expo/packager-info.json +0 -10
  59. package/.expo/prebuild/cached-packages.json +0 -4
  60. package/.expo/settings.json +0 -10
  61. package/.expo/xcodebuild-error.log +0 -2
  62. package/.expo/xcodebuild.log +0 -11199
@@ -94,6 +94,8 @@ const IconList = [
94
94
  'loading-2',
95
95
  'location',
96
96
  'lock',
97
+ 'looks-one',
98
+ 'looks-two',
97
99
  'media-content',
98
100
  'menu',
99
101
  'moneybag',
@@ -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
- "alignItems": "center",
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
- <Text
34
+ <View
39
35
  style={
40
36
  Array [
41
37
  Object {
42
- "color": "#292a2b",
43
- "fontFamily": "BeVietnamPro-Regular",
44
- "fontSize": 12,
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
- testID="input-label"
62
- themeFontSize="small"
63
- themeFontWeight="regular"
64
- themeIntent="body"
65
- >
66
- Allow notifications
67
- </Text>
68
- <TextInput
69
- editable={false}
70
- multiline={true}
71
- onPressIn={[Function]}
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
- "fontSize": 16,
77
- "marginHorizontal": 8,
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
- "alignItems": "center",
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
- <Text
935
+ <View
863
936
  style={
864
937
  Array [
865
938
  Object {
866
- "color": "#292a2b",
867
- "fontFamily": "BeVietnamPro-Regular",
868
- "fontSize": 12,
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
- testID="input-label"
886
- themeFontSize="small"
887
- themeFontWeight="regular"
888
- themeIntent="body"
889
- >
890
- Allow notifications
891
- </Text>
892
- <TextInput
893
- editable={false}
894
- multiline={true}
895
- onPressIn={[Function]}
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
- "fontSize": 16,
901
- "marginHorizontal": 8,
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