@hero-design/rn 7.9.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.
Files changed (252) hide show
  1. package/.turbo/turbo-build.log +8 -8
  2. package/assets/fonts/hero-icons.ttf +0 -0
  3. package/es/index.js +731 -252
  4. package/lib/assets/fonts/hero-icons.ttf +0 -0
  5. package/lib/index.js +730 -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__/StyledTextInput.spec.tsx +143 -7
  29. package/src/components/TextInput/__tests__/__snapshots__/StyledTextInput.spec.tsx.snap +922 -15
  30. package/src/components/TextInput/__tests__/__snapshots__/index.spec.tsx.snap +2078 -0
  31. package/src/components/TextInput/__tests__/index.spec.tsx +302 -11
  32. package/src/components/TextInput/index.tsx +232 -28
  33. package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +69 -3
  34. package/src/theme/components/button.ts +6 -0
  35. package/src/theme/components/textInput.ts +62 -3
  36. package/src/theme/global/colors.ts +1 -0
  37. package/src/types.ts +8 -1
  38. package/types/components/Alert/StyledAlert.d.ts +0 -0
  39. package/types/components/Alert/__tests__/index.spec.d.ts +0 -0
  40. package/types/components/Alert/index.d.ts +0 -0
  41. package/types/components/Avatar/StyledAvatar.d.ts +0 -0
  42. package/types/components/Avatar/__tests__/StyledAvatar.spec.d.ts +0 -0
  43. package/types/components/Avatar/__tests__/index.spec.d.ts +0 -0
  44. package/types/components/Avatar/index.d.ts +0 -0
  45. package/types/components/Badge/Status.d.ts +0 -0
  46. package/types/components/Badge/StyledBadge.d.ts +0 -0
  47. package/types/components/Badge/__tests__/Badge.spec.d.ts +0 -0
  48. package/types/components/Badge/__tests__/Status.spec.d.ts +0 -0
  49. package/types/components/Badge/index.d.ts +0 -0
  50. package/types/components/BottomNavigation/StyledBottomNavigation.d.ts +0 -0
  51. package/types/components/BottomNavigation/__tests__/index.spec.d.ts +0 -0
  52. package/types/components/BottomNavigation/index.d.ts +0 -0
  53. package/types/components/BottomSheet/Footer.d.ts +0 -0
  54. package/types/components/BottomSheet/Header.d.ts +0 -0
  55. package/types/components/BottomSheet/StyledBottomSheet.d.ts +0 -0
  56. package/types/components/BottomSheet/__tests__/index.spec.d.ts +0 -0
  57. package/types/components/BottomSheet/index.d.ts +0 -0
  58. package/types/components/Button/Button.d.ts +2 -2
  59. package/types/components/Button/IconButton.d.ts +0 -0
  60. package/types/components/Button/LoadingIndicator/StyledLoadingIndicator.d.ts +1 -1
  61. package/types/components/Button/LoadingIndicator/__tests__/StyledLoadingIndicator.spec.d.ts +0 -0
  62. package/types/components/Button/LoadingIndicator/__tests__/index.spec.d.ts +0 -0
  63. package/types/components/Button/LoadingIndicator/index.d.ts +1 -1
  64. package/types/components/Button/StyledButton.d.ts +1 -1
  65. package/types/components/Button/UtilityButton/__tests__/index.spec.d.ts +1 -0
  66. package/types/components/Button/UtilityButton/index.d.ts +23 -0
  67. package/types/components/Button/UtilityButton/styled.d.ts +17 -0
  68. package/types/components/Button/__tests__/Button.spec.d.ts +0 -0
  69. package/types/components/Button/__tests__/IconButton.spec.d.ts +0 -0
  70. package/types/components/Button/__tests__/StyledButton.spec.d.ts +0 -0
  71. package/types/components/Button/index.d.ts +2 -0
  72. package/types/components/Card/DataCard/StyledDataCard.d.ts +0 -0
  73. package/types/components/Card/DataCard/__tests__/StyledDataCard.spec.d.ts +0 -0
  74. package/types/components/Card/DataCard/__tests__/index.spec.d.ts +0 -0
  75. package/types/components/Card/DataCard/index.d.ts +0 -0
  76. package/types/components/Card/StyledCard.d.ts +0 -0
  77. package/types/components/Card/__tests__/StyledCard.spec.d.ts +0 -0
  78. package/types/components/Card/__tests__/index.spec.d.ts +0 -0
  79. package/types/components/Card/index.d.ts +0 -0
  80. package/types/components/Checkbox/StyledCheckbox.d.ts +0 -0
  81. package/types/components/Checkbox/__tests__/StyledCheckbox.spec.d.ts +0 -0
  82. package/types/components/Checkbox/__tests__/index.spec.d.ts +0 -0
  83. package/types/components/Checkbox/index.d.ts +0 -0
  84. package/types/components/Collapse/StyledCollapse.d.ts +0 -0
  85. package/types/components/Collapse/__tests__/StyledCollapse.spec.d.ts +0 -0
  86. package/types/components/Collapse/__tests__/index.spec.d.ts +0 -0
  87. package/types/components/Collapse/index.d.ts +0 -0
  88. package/types/components/ContentNavigator/StyledContentNavigator.d.ts +0 -0
  89. package/types/components/ContentNavigator/__tests__/StyledContentNavigator.spec.d.ts +0 -0
  90. package/types/components/ContentNavigator/__tests__/index.spec.d.ts +0 -0
  91. package/types/components/ContentNavigator/index.d.ts +0 -0
  92. package/types/components/Divider/StyledDivider.d.ts +0 -0
  93. package/types/components/Divider/__tests__/StyledDivider.spec.d.ts +0 -0
  94. package/types/components/Divider/index.d.ts +0 -0
  95. package/types/components/Drawer/StyledDrawer.d.ts +0 -0
  96. package/types/components/Drawer/__tests__/index.spec.d.ts +0 -0
  97. package/types/components/Drawer/index.d.ts +0 -0
  98. package/types/components/FAB/ActionGroup/ActionItem.d.ts +0 -0
  99. package/types/components/FAB/ActionGroup/StyledActionGroup.d.ts +0 -0
  100. package/types/components/FAB/ActionGroup/StyledActionItem.d.ts +0 -0
  101. package/types/components/FAB/ActionGroup/__tests__/index.spec.d.ts +0 -0
  102. package/types/components/FAB/ActionGroup/index.d.ts +0 -0
  103. package/types/components/FAB/AnimatedFABIcon.d.ts +0 -0
  104. package/types/components/FAB/FAB.d.ts +0 -0
  105. package/types/components/FAB/StyledFAB.d.ts +0 -0
  106. package/types/components/FAB/__tests__/AnimatedFABIcon.spec.d.ts +0 -0
  107. package/types/components/FAB/__tests__/StyledFAB.spec.d.ts +0 -0
  108. package/types/components/FAB/__tests__/index.spec.d.ts +0 -0
  109. package/types/components/FAB/index.d.ts +0 -0
  110. package/types/components/Icon/HeroIcon/index.d.ts +0 -0
  111. package/types/components/Icon/IconList.d.ts +1 -1
  112. package/types/components/Icon/__tests__/index.spec.d.ts +0 -0
  113. package/types/components/Icon/index.d.ts +0 -0
  114. package/types/components/Icon/utils.d.ts +1 -1
  115. package/types/components/List/BasicListItem.d.ts +0 -0
  116. package/types/components/List/ListItem.d.ts +0 -0
  117. package/types/components/List/StyledBasicListItem.d.ts +0 -0
  118. package/types/components/List/StyledListItem.d.ts +0 -0
  119. package/types/components/List/__tests__/BasicListItem.spec.d.ts +0 -0
  120. package/types/components/List/__tests__/ListItem.spec.d.ts +0 -0
  121. package/types/components/List/__tests__/StyledBasicListItem.spec.d.ts +0 -0
  122. package/types/components/List/__tests__/StyledListItem.spec.d.ts +0 -0
  123. package/types/components/List/index.d.ts +0 -0
  124. package/types/components/Progress/ProgressBar.d.ts +0 -0
  125. package/types/components/Progress/ProgressCircle.d.ts +0 -0
  126. package/types/components/Progress/StyledProgressBar.d.ts +0 -0
  127. package/types/components/Progress/StyledProgressCircle.d.ts +0 -0
  128. package/types/components/Progress/__tests__/index.spec.d.ts +0 -0
  129. package/types/components/Progress/index.d.ts +0 -0
  130. package/types/components/Progress/types.d.ts +0 -0
  131. package/types/components/Radio/Radio.d.ts +0 -0
  132. package/types/components/Radio/RadioGroup.d.ts +0 -0
  133. package/types/components/Radio/StyledRadio.d.ts +0 -0
  134. package/types/components/Radio/__tests__/Radio.spec.d.ts +0 -0
  135. package/types/components/Radio/__tests__/RadioGroup.spec.d.ts +0 -0
  136. package/types/components/Radio/__tests__/StyledRadio.spec.d.ts +0 -0
  137. package/types/components/Radio/index.d.ts +0 -0
  138. package/types/components/Radio/types.d.ts +0 -0
  139. package/types/components/SectionHeading/StyledHeading.d.ts +0 -0
  140. package/types/components/SectionHeading/__tests__/StyledHeading.spec.d.ts +0 -0
  141. package/types/components/SectionHeading/__tests__/index.spec.d.ts +0 -0
  142. package/types/components/SectionHeading/index.d.ts +0 -0
  143. package/types/components/Select/Footer.d.ts +0 -0
  144. package/types/components/Select/MultiSelect/Option.d.ts +0 -0
  145. package/types/components/Select/MultiSelect/OptionList.d.ts +0 -0
  146. package/types/components/Select/MultiSelect/__tests__/Option.spec.d.ts +0 -0
  147. package/types/components/Select/MultiSelect/__tests__/OptionList.spec.d.ts +0 -0
  148. package/types/components/Select/MultiSelect/__tests__/index.spec.d.ts +0 -0
  149. package/types/components/Select/MultiSelect/index.d.ts +0 -0
  150. package/types/components/Select/SingleSelect/Option.d.ts +0 -0
  151. package/types/components/Select/SingleSelect/OptionList.d.ts +0 -0
  152. package/types/components/Select/SingleSelect/__tests__/Option.spec.d.ts +0 -0
  153. package/types/components/Select/SingleSelect/__tests__/OptionList.spec.d.ts +0 -0
  154. package/types/components/Select/SingleSelect/__tests__/index.spec.d.ts +0 -0
  155. package/types/components/Select/SingleSelect/index.d.ts +0 -0
  156. package/types/components/Select/StyledSelect.d.ts +0 -0
  157. package/types/components/Select/__tests__/StyledSelect.spec.d.ts +0 -0
  158. package/types/components/Select/helpers.d.ts +0 -0
  159. package/types/components/Select/index.d.ts +0 -0
  160. package/types/components/Select/types.d.ts +0 -0
  161. package/types/components/Spinner/AnimatedSpinner.d.ts +0 -0
  162. package/types/components/Spinner/StyledSpinner.d.ts +0 -0
  163. package/types/components/Spinner/__tests__/AnimatedSpinner.spec.d.ts +0 -0
  164. package/types/components/Spinner/__tests__/StyledSpinner.spec.d.ts +0 -0
  165. package/types/components/Spinner/__tests__/index.spec.d.ts +0 -0
  166. package/types/components/Spinner/index.d.ts +0 -0
  167. package/types/components/Switch/StyledSwitch.d.ts +0 -0
  168. package/types/components/Switch/__tests__/StyledHeading.spec.d.ts +0 -0
  169. package/types/components/Switch/__tests__/index.spec.d.ts +0 -0
  170. package/types/components/Switch/index.d.ts +0 -0
  171. package/types/components/Tabs/ActiveTabIndicator.d.ts +0 -0
  172. package/types/components/Tabs/ScrollableTabs.d.ts +0 -0
  173. package/types/components/Tabs/StyledScrollableTabs.d.ts +0 -0
  174. package/types/components/Tabs/StyledTabs.d.ts +0 -0
  175. package/types/components/Tabs/__tests__/ScrollableTabs.spec.d.ts +0 -0
  176. package/types/components/Tabs/__tests__/index.spec.d.ts +0 -0
  177. package/types/components/Tabs/index.d.ts +0 -0
  178. package/types/components/Tabs/utils.d.ts +0 -0
  179. package/types/components/Tag/StyledTag.d.ts +0 -0
  180. package/types/components/Tag/__tests__/Tag.spec.d.ts +0 -0
  181. package/types/components/Tag/index.d.ts +0 -0
  182. package/types/components/TextInput/StyledTextInput.d.ts +82 -3
  183. package/types/components/TextInput/__tests__/StyledTextInput.spec.d.ts +0 -0
  184. package/types/components/TextInput/__tests__/index.spec.d.ts +0 -0
  185. package/types/components/TextInput/index.d.ts +33 -5
  186. package/types/components/Toast/StyledToast.d.ts +0 -0
  187. package/types/components/Toast/Toast.d.ts +0 -0
  188. package/types/components/Toast/ToastContainer.d.ts +0 -0
  189. package/types/components/Toast/ToastContext.d.ts +0 -0
  190. package/types/components/Toast/ToastProvider.d.ts +0 -0
  191. package/types/components/Toast/__tests__/Toast.spec.d.ts +0 -0
  192. package/types/components/Toast/__tests__/ToastContainer.spec.d.ts +0 -0
  193. package/types/components/Toast/index.d.ts +0 -0
  194. package/types/components/Toast/types.d.ts +0 -0
  195. package/types/components/Toolbar/StyledToolbar.d.ts +0 -0
  196. package/types/components/Toolbar/ToolbarGroup.d.ts +0 -0
  197. package/types/components/Toolbar/ToolbarItem.d.ts +0 -0
  198. package/types/components/Toolbar/__tests__/ToolbarGroup.spec.d.ts +0 -0
  199. package/types/components/Toolbar/__tests__/ToolbarItem.spec.d.ts +0 -0
  200. package/types/components/Toolbar/index.d.ts +0 -0
  201. package/types/components/Typography/Text/StyledText.d.ts +0 -0
  202. package/types/components/Typography/Text/__tests__/StyledText.spec.d.ts +0 -0
  203. package/types/components/Typography/Text/__tests__/index.spec.d.ts +0 -0
  204. package/types/components/Typography/Text/index.d.ts +0 -0
  205. package/types/components/Typography/index.d.ts +0 -0
  206. package/types/index.d.ts +0 -0
  207. package/types/testHelpers/renderWithTheme.d.ts +0 -0
  208. package/types/theme/__tests__/index.spec.d.ts +0 -0
  209. package/types/theme/components/alert.d.ts +0 -0
  210. package/types/theme/components/avatar.d.ts +0 -0
  211. package/types/theme/components/badge.d.ts +0 -0
  212. package/types/theme/components/bottomNavigation.d.ts +0 -0
  213. package/types/theme/components/bottomSheet.d.ts +0 -0
  214. package/types/theme/components/button.d.ts +6 -0
  215. package/types/theme/components/card.d.ts +0 -0
  216. package/types/theme/components/checkbox.d.ts +0 -0
  217. package/types/theme/components/contentNavigator.d.ts +0 -0
  218. package/types/theme/components/divider.d.ts +0 -0
  219. package/types/theme/components/drawer.d.ts +0 -0
  220. package/types/theme/components/fab.d.ts +0 -0
  221. package/types/theme/components/icon.d.ts +0 -0
  222. package/types/theme/components/list.d.ts +0 -0
  223. package/types/theme/components/progress.d.ts +0 -0
  224. package/types/theme/components/radio.d.ts +0 -0
  225. package/types/theme/components/sectionHeading.d.ts +0 -0
  226. package/types/theme/components/select.d.ts +0 -0
  227. package/types/theme/components/spinner.d.ts +0 -0
  228. package/types/theme/components/switch.d.ts +0 -0
  229. package/types/theme/components/tabs.d.ts +0 -0
  230. package/types/theme/components/tag.d.ts +0 -0
  231. package/types/theme/components/textInput.d.ts +61 -2
  232. package/types/theme/components/toast.d.ts +0 -0
  233. package/types/theme/components/toolbar.d.ts +0 -0
  234. package/types/theme/components/typography.d.ts +0 -0
  235. package/types/theme/global/borders.d.ts +0 -0
  236. package/types/theme/global/colors.d.ts +1 -0
  237. package/types/theme/global/index.d.ts +1 -0
  238. package/types/theme/global/scale.d.ts +0 -0
  239. package/types/theme/global/space.d.ts +0 -0
  240. package/types/theme/global/typography.d.ts +0 -0
  241. package/types/theme/index.d.ts +0 -0
  242. package/types/types.d.ts +2 -1
  243. package/types/utils/__tests__/scale.spec.d.ts +0 -0
  244. package/types/utils/helpers.d.ts +0 -0
  245. package/types/utils/hooks.d.ts +0 -0
  246. package/types/utils/scale.d.ts +0 -0
  247. package/.expo/README.md +0 -15
  248. package/.expo/packager-info.json +0 -10
  249. package/.expo/prebuild/cached-packages.json +0 -4
  250. package/.expo/settings.json +0 -10
  251. package/.expo/xcodebuild-error.log +0 -2
  252. package/.expo/xcodebuild.log +0 -11199
@@ -1,17 +1,718 @@
1
1
  // Jest Snapshot v1, https://goo.gl/fbAQLP
2
2
 
3
- exports[`Container renders correctly 1`] = `
3
+ exports[`Label renders correctly with themeVariant default 1`] = `
4
+ <Text
5
+ style={
6
+ Array [
7
+ Object {
8
+ "color": "#292a2b",
9
+ "fontFamily": "BeVietnamPro-Regular",
10
+ "fontSize": 14,
11
+ "letterSpacing": 0.42,
12
+ "lineHeight": 22,
13
+ },
14
+ Array [
15
+ Object {
16
+ "color": "#292a2b",
17
+ },
18
+ undefined,
19
+ ],
20
+ ]
21
+ }
22
+ themeFontSize="medium"
23
+ themeFontWeight="regular"
24
+ themeIntent="body"
25
+ themeVariant="default"
26
+ >
27
+ Label
28
+ </Text>
29
+ `;
30
+
31
+ exports[`Label renders correctly with themeVariant disabled 1`] = `
32
+ <Text
33
+ style={
34
+ Array [
35
+ Object {
36
+ "color": "#292a2b",
37
+ "fontFamily": "BeVietnamPro-Regular",
38
+ "fontSize": 14,
39
+ "letterSpacing": 0.42,
40
+ "lineHeight": 22,
41
+ },
42
+ Array [
43
+ Object {
44
+ "color": "#ccced1",
45
+ },
46
+ undefined,
47
+ ],
48
+ ]
49
+ }
50
+ themeFontSize="medium"
51
+ themeFontWeight="regular"
52
+ themeIntent="body"
53
+ themeVariant="disabled"
54
+ >
55
+ Label
56
+ </Text>
57
+ `;
58
+
59
+ exports[`Label renders correctly with themeVariant error 1`] = `
60
+ <Text
61
+ style={
62
+ Array [
63
+ Object {
64
+ "color": "#292a2b",
65
+ "fontFamily": "BeVietnamPro-Regular",
66
+ "fontSize": 14,
67
+ "letterSpacing": 0.42,
68
+ "lineHeight": 22,
69
+ },
70
+ Array [
71
+ Object {
72
+ "color": "#292a2b",
73
+ },
74
+ undefined,
75
+ ],
76
+ ]
77
+ }
78
+ themeFontSize="medium"
79
+ themeFontWeight="regular"
80
+ themeIntent="body"
81
+ themeVariant="error"
82
+ >
83
+ Label
84
+ </Text>
85
+ `;
86
+
87
+ exports[`Label renders correctly with themeVariant filled 1`] = `
88
+ <Text
89
+ style={
90
+ Array [
91
+ Object {
92
+ "color": "#292a2b",
93
+ "fontFamily": "BeVietnamPro-Regular",
94
+ "fontSize": 14,
95
+ "letterSpacing": 0.42,
96
+ "lineHeight": 22,
97
+ },
98
+ Array [
99
+ Object {
100
+ "color": "#292a2b",
101
+ },
102
+ undefined,
103
+ ],
104
+ ]
105
+ }
106
+ themeFontSize="medium"
107
+ themeFontWeight="regular"
108
+ themeIntent="body"
109
+ themeVariant="filled"
110
+ >
111
+ Label
112
+ </Text>
113
+ `;
114
+
115
+ exports[`Label renders correctly with themeVariant focused 1`] = `
116
+ <Text
117
+ style={
118
+ Array [
119
+ Object {
120
+ "color": "#292a2b",
121
+ "fontFamily": "BeVietnamPro-Regular",
122
+ "fontSize": 14,
123
+ "letterSpacing": 0.42,
124
+ "lineHeight": 22,
125
+ },
126
+ Array [
127
+ Object {
128
+ "color": "#292a2b",
129
+ },
130
+ undefined,
131
+ ],
132
+ ]
133
+ }
134
+ themeFontSize="medium"
135
+ themeFontWeight="regular"
136
+ themeIntent="body"
137
+ themeVariant="focused"
138
+ >
139
+ Label
140
+ </Text>
141
+ `;
142
+
143
+ exports[`Label renders correctly with themeVariant readonly 1`] = `
144
+ <Text
145
+ style={
146
+ Array [
147
+ Object {
148
+ "color": "#292a2b",
149
+ "fontFamily": "BeVietnamPro-Regular",
150
+ "fontSize": 14,
151
+ "letterSpacing": 0.42,
152
+ "lineHeight": 22,
153
+ },
154
+ Array [
155
+ Object {
156
+ "color": "#8b8d92",
157
+ },
158
+ undefined,
159
+ ],
160
+ ]
161
+ }
162
+ themeFontSize="medium"
163
+ themeFontWeight="regular"
164
+ themeIntent="body"
165
+ themeVariant="readonly"
166
+ >
167
+ Label
168
+ </Text>
169
+ `;
170
+
171
+ exports[`LabelContainer renders correctly 1`] = `
172
+ <View
173
+ style={
174
+ Array [
175
+ Object {
176
+ "backgroundColor": "#ffffff",
177
+ "flexDirection": "row",
178
+ "left": 16,
179
+ "paddingHorizontal": 4,
180
+ "position": "absolute",
181
+ "top": -10,
182
+ "zIndex": 1,
183
+ },
184
+ undefined,
185
+ ]
186
+ }
187
+ />
188
+ `;
189
+
190
+ exports[`LabelInsideTextInput renders correctly with themeVariant default 1`] = `
191
+ <Text
192
+ style={
193
+ Array [
194
+ Object {
195
+ "color": "#292a2b",
196
+ "fontFamily": "BeVietnamPro-Regular",
197
+ "fontSize": 14,
198
+ "letterSpacing": 0.42,
199
+ "lineHeight": 22,
200
+ },
201
+ Array [
202
+ Object {
203
+ "alignContent": "center",
204
+ "alignItems": "center",
205
+ "color": "#292a2b",
206
+ "fontSize": 14,
207
+ "textAlignVertical": "center",
208
+ },
209
+ undefined,
210
+ ],
211
+ ]
212
+ }
213
+ themeFontSize="medium"
214
+ themeFontWeight="regular"
215
+ themeIntent="body"
216
+ themeVariant="default"
217
+ >
218
+ Label
219
+ </Text>
220
+ `;
221
+
222
+ exports[`LabelInsideTextInput renders correctly with themeVariant disabled 1`] = `
223
+ <Text
224
+ style={
225
+ Array [
226
+ Object {
227
+ "color": "#292a2b",
228
+ "fontFamily": "BeVietnamPro-Regular",
229
+ "fontSize": 14,
230
+ "letterSpacing": 0.42,
231
+ "lineHeight": 22,
232
+ },
233
+ Array [
234
+ Object {
235
+ "alignContent": "center",
236
+ "alignItems": "center",
237
+ "color": "#ccced1",
238
+ "fontSize": 14,
239
+ "textAlignVertical": "center",
240
+ },
241
+ undefined,
242
+ ],
243
+ ]
244
+ }
245
+ themeFontSize="medium"
246
+ themeFontWeight="regular"
247
+ themeIntent="body"
248
+ themeVariant="disabled"
249
+ >
250
+ Label
251
+ </Text>
252
+ `;
253
+
254
+ exports[`LabelInsideTextInput renders correctly with themeVariant error 1`] = `
255
+ <Text
256
+ style={
257
+ Array [
258
+ Object {
259
+ "color": "#292a2b",
260
+ "fontFamily": "BeVietnamPro-Regular",
261
+ "fontSize": 14,
262
+ "letterSpacing": 0.42,
263
+ "lineHeight": 22,
264
+ },
265
+ Array [
266
+ Object {
267
+ "alignContent": "center",
268
+ "alignItems": "center",
269
+ "color": "#292a2b",
270
+ "fontSize": 14,
271
+ "textAlignVertical": "center",
272
+ },
273
+ undefined,
274
+ ],
275
+ ]
276
+ }
277
+ themeFontSize="medium"
278
+ themeFontWeight="regular"
279
+ themeIntent="body"
280
+ themeVariant="error"
281
+ >
282
+ Label
283
+ </Text>
284
+ `;
285
+
286
+ exports[`LabelInsideTextInput renders correctly with themeVariant filled 1`] = `
287
+ <Text
288
+ style={
289
+ Array [
290
+ Object {
291
+ "color": "#292a2b",
292
+ "fontFamily": "BeVietnamPro-Regular",
293
+ "fontSize": 14,
294
+ "letterSpacing": 0.42,
295
+ "lineHeight": 22,
296
+ },
297
+ Array [
298
+ Object {
299
+ "alignContent": "center",
300
+ "alignItems": "center",
301
+ "color": "#292a2b",
302
+ "fontSize": 14,
303
+ "textAlignVertical": "center",
304
+ },
305
+ undefined,
306
+ ],
307
+ ]
308
+ }
309
+ themeFontSize="medium"
310
+ themeFontWeight="regular"
311
+ themeIntent="body"
312
+ themeVariant="filled"
313
+ >
314
+ Label
315
+ </Text>
316
+ `;
317
+
318
+ exports[`LabelInsideTextInput renders correctly with themeVariant focused 1`] = `
319
+ <Text
320
+ style={
321
+ Array [
322
+ Object {
323
+ "color": "#292a2b",
324
+ "fontFamily": "BeVietnamPro-Regular",
325
+ "fontSize": 14,
326
+ "letterSpacing": 0.42,
327
+ "lineHeight": 22,
328
+ },
329
+ Array [
330
+ Object {
331
+ "alignContent": "center",
332
+ "alignItems": "center",
333
+ "color": "#292a2b",
334
+ "fontSize": 14,
335
+ "textAlignVertical": "center",
336
+ },
337
+ undefined,
338
+ ],
339
+ ]
340
+ }
341
+ themeFontSize="medium"
342
+ themeFontWeight="regular"
343
+ themeIntent="body"
344
+ themeVariant="focused"
345
+ >
346
+ Label
347
+ </Text>
348
+ `;
349
+
350
+ exports[`LabelInsideTextInput renders correctly with themeVariant readonly 1`] = `
351
+ <Text
352
+ style={
353
+ Array [
354
+ Object {
355
+ "color": "#292a2b",
356
+ "fontFamily": "BeVietnamPro-Regular",
357
+ "fontSize": 14,
358
+ "letterSpacing": 0.42,
359
+ "lineHeight": 22,
360
+ },
361
+ Array [
362
+ Object {
363
+ "alignContent": "center",
364
+ "alignItems": "center",
365
+ "color": "#8b8d92",
366
+ "fontSize": 14,
367
+ "textAlignVertical": "center",
368
+ },
369
+ undefined,
370
+ ],
371
+ ]
372
+ }
373
+ themeFontSize="medium"
374
+ themeFontWeight="regular"
375
+ themeIntent="body"
376
+ themeVariant="readonly"
377
+ >
378
+ Label
379
+ </Text>
380
+ `;
381
+
382
+ exports[`StyledAsteriskLabel renders correctly with themeVariant default 1`] = `
383
+ <Text
384
+ style={
385
+ Array [
386
+ Object {
387
+ "color": "#292a2b",
388
+ "fontFamily": "BeVietnamPro-Regular",
389
+ "fontSize": 14,
390
+ "letterSpacing": 0.42,
391
+ "lineHeight": 22,
392
+ },
393
+ Array [
394
+ Object {
395
+ "color": "#de350b",
396
+ },
397
+ undefined,
398
+ ],
399
+ ]
400
+ }
401
+ themeFontSize="medium"
402
+ themeFontWeight="regular"
403
+ themeIntent="body"
404
+ themeVariant="default"
405
+ >
406
+ *
407
+ </Text>
408
+ `;
409
+
410
+ exports[`StyledAsteriskLabel renders correctly with themeVariant disabled 1`] = `
411
+ <Text
412
+ style={
413
+ Array [
414
+ Object {
415
+ "color": "#292a2b",
416
+ "fontFamily": "BeVietnamPro-Regular",
417
+ "fontSize": 14,
418
+ "letterSpacing": 0.42,
419
+ "lineHeight": 22,
420
+ },
421
+ Array [
422
+ Object {
423
+ "color": "#ccced1",
424
+ },
425
+ undefined,
426
+ ],
427
+ ]
428
+ }
429
+ themeFontSize="medium"
430
+ themeFontWeight="regular"
431
+ themeIntent="body"
432
+ themeVariant="disabled"
433
+ >
434
+ *
435
+ </Text>
436
+ `;
437
+
438
+ exports[`StyledAsteriskLabel renders correctly with themeVariant error 1`] = `
439
+ <Text
440
+ style={
441
+ Array [
442
+ Object {
443
+ "color": "#292a2b",
444
+ "fontFamily": "BeVietnamPro-Regular",
445
+ "fontSize": 14,
446
+ "letterSpacing": 0.42,
447
+ "lineHeight": 22,
448
+ },
449
+ Array [
450
+ Object {
451
+ "color": "#de350b",
452
+ },
453
+ undefined,
454
+ ],
455
+ ]
456
+ }
457
+ themeFontSize="medium"
458
+ themeFontWeight="regular"
459
+ themeIntent="body"
460
+ themeVariant="error"
461
+ >
462
+ *
463
+ </Text>
464
+ `;
465
+
466
+ exports[`StyledAsteriskLabel renders correctly with themeVariant filled 1`] = `
467
+ <Text
468
+ style={
469
+ Array [
470
+ Object {
471
+ "color": "#292a2b",
472
+ "fontFamily": "BeVietnamPro-Regular",
473
+ "fontSize": 14,
474
+ "letterSpacing": 0.42,
475
+ "lineHeight": 22,
476
+ },
477
+ Array [
478
+ Object {
479
+ "color": "#de350b",
480
+ },
481
+ undefined,
482
+ ],
483
+ ]
484
+ }
485
+ themeFontSize="medium"
486
+ themeFontWeight="regular"
487
+ themeIntent="body"
488
+ themeVariant="filled"
489
+ >
490
+ *
491
+ </Text>
492
+ `;
493
+
494
+ exports[`StyledAsteriskLabel renders correctly with themeVariant focused 1`] = `
495
+ <Text
496
+ style={
497
+ Array [
498
+ Object {
499
+ "color": "#292a2b",
500
+ "fontFamily": "BeVietnamPro-Regular",
501
+ "fontSize": 14,
502
+ "letterSpacing": 0.42,
503
+ "lineHeight": 22,
504
+ },
505
+ Array [
506
+ Object {
507
+ "color": "#de350b",
508
+ },
509
+ undefined,
510
+ ],
511
+ ]
512
+ }
513
+ themeFontSize="medium"
514
+ themeFontWeight="regular"
515
+ themeIntent="body"
516
+ themeVariant="focused"
517
+ >
518
+ *
519
+ </Text>
520
+ `;
521
+
522
+ exports[`StyledAsteriskLabel renders correctly with themeVariant readonly 1`] = `
523
+ <Text
524
+ style={
525
+ Array [
526
+ Object {
527
+ "color": "#292a2b",
528
+ "fontFamily": "BeVietnamPro-Regular",
529
+ "fontSize": 14,
530
+ "letterSpacing": 0.42,
531
+ "lineHeight": 22,
532
+ },
533
+ Array [
534
+ Object {
535
+ "color": "#8b8d92",
536
+ },
537
+ undefined,
538
+ ],
539
+ ]
540
+ }
541
+ themeFontSize="medium"
542
+ themeFontWeight="regular"
543
+ themeIntent="body"
544
+ themeVariant="readonly"
545
+ >
546
+ *
547
+ </Text>
548
+ `;
549
+
550
+ exports[`StyledBorderBackDrop renders correctly with themeVariant default 1`] = `
4
551
  <View
5
552
  style={
6
553
  Array [
7
554
  Object {
8
- "alignItems": "center",
555
+ "borderColor": "#292a2b",
556
+ "borderRadius": 8,
557
+ "borderWidth": 1,
558
+ "bottom": 0,
559
+ "left": 0,
560
+ "position": "absolute",
561
+ "right": 0,
562
+ "top": 0,
563
+ },
564
+ undefined,
565
+ ]
566
+ }
567
+ themeVariant="default"
568
+ />
569
+ `;
570
+
571
+ exports[`StyledBorderBackDrop renders correctly with themeVariant disabled 1`] = `
572
+ <View
573
+ style={
574
+ Array [
575
+ Object {
576
+ "borderColor": "#ccced1",
577
+ "borderRadius": 8,
578
+ "borderWidth": 1,
579
+ "bottom": 0,
580
+ "left": 0,
581
+ "position": "absolute",
582
+ "right": 0,
583
+ "top": 0,
584
+ },
585
+ undefined,
586
+ ]
587
+ }
588
+ themeVariant="disabled"
589
+ />
590
+ `;
591
+
592
+ exports[`StyledBorderBackDrop renders correctly with themeVariant error 1`] = `
593
+ <View
594
+ style={
595
+ Array [
596
+ Object {
597
+ "borderColor": "#de350b",
598
+ "borderRadius": 8,
599
+ "borderWidth": 1,
600
+ "bottom": 0,
601
+ "left": 0,
602
+ "position": "absolute",
603
+ "right": 0,
604
+ "top": 0,
605
+ },
606
+ undefined,
607
+ ]
608
+ }
609
+ themeVariant="error"
610
+ />
611
+ `;
612
+
613
+ exports[`StyledBorderBackDrop renders correctly with themeVariant filled 1`] = `
614
+ <View
615
+ style={
616
+ Array [
617
+ Object {
618
+ "borderColor": "#292a2b",
619
+ "borderRadius": 8,
620
+ "borderWidth": 1,
621
+ "bottom": 0,
622
+ "left": 0,
623
+ "position": "absolute",
624
+ "right": 0,
625
+ "top": 0,
626
+ },
627
+ undefined,
628
+ ]
629
+ }
630
+ themeVariant="filled"
631
+ />
632
+ `;
633
+
634
+ exports[`StyledBorderBackDrop renders correctly with themeVariant focused 1`] = `
635
+ <View
636
+ style={
637
+ Array [
638
+ Object {
639
+ "borderColor": "#292a2b",
640
+ "borderRadius": 8,
641
+ "borderWidth": 2,
642
+ "bottom": 0,
643
+ "left": 0,
644
+ "position": "absolute",
645
+ "right": 0,
646
+ "top": 0,
647
+ },
648
+ undefined,
649
+ ]
650
+ }
651
+ themeVariant="focused"
652
+ />
653
+ `;
654
+
655
+ exports[`StyledBorderBackDrop renders correctly with themeVariant readonly 1`] = `
656
+ <View
657
+ style={
658
+ Array [
659
+ Object {
660
+ "borderColor": "#8b8d92",
9
661
  "borderRadius": 8,
10
662
  "borderWidth": 1,
663
+ "bottom": 0,
664
+ "left": 0,
665
+ "position": "absolute",
666
+ "right": 0,
667
+ "top": 0,
668
+ },
669
+ undefined,
670
+ ]
671
+ }
672
+ themeVariant="readonly"
673
+ />
674
+ `;
675
+
676
+ exports[`StyledErrorMessage renders correctly 1`] = `
677
+ <Text
678
+ style={
679
+ Array [
680
+ Object {
681
+ "color": "#292a2b",
682
+ "fontFamily": "BeVietnamPro-Regular",
683
+ "fontSize": 14,
684
+ "letterSpacing": 0.42,
685
+ "lineHeight": 22,
686
+ },
687
+ Array [
688
+ Object {
689
+ "color": "#de350b",
690
+ "fontSize": 12,
691
+ "marginLeft": 4,
692
+ },
693
+ undefined,
694
+ ],
695
+ ]
696
+ }
697
+ themeFontSize="medium"
698
+ themeFontWeight="regular"
699
+ themeIntent="body"
700
+ >
701
+ must not exceed character limit
702
+ </Text>
703
+ `;
704
+
705
+ exports[`StyledErrorMessageContainer renders correctly 1`] = `
706
+ <View
707
+ style={
708
+ Array [
709
+ Object {
710
+ "alignItems": "center",
711
+ "flex": 1,
11
712
  "flexDirection": "row",
12
- "padding": 16,
13
- "position": "relative",
14
- "width": "100%",
713
+ "flexGrow": 4,
714
+ "marginLeft": 16,
715
+ "marginRight": 4,
15
716
  },
16
717
  undefined,
17
718
  ]
@@ -19,7 +720,7 @@ exports[`Container renders correctly 1`] = `
19
720
  />
20
721
  `;
21
722
 
22
- exports[`Label renders correctly 1`] = `
723
+ exports[`StyledHelperText renders correctly 1`] = `
23
724
  <Text
24
725
  style={
25
726
  Array [
@@ -32,12 +733,12 @@ exports[`Label renders correctly 1`] = `
32
733
  },
33
734
  Array [
34
735
  Object {
35
- "backgroundColor": "#ffffff",
36
- "left": 16,
37
- "paddingHorizontal": 4,
38
- "position": "absolute",
39
- "top": -10,
40
- "zIndex": 1,
736
+ "fontFamily": "BeVietnamPro-SemiBold",
737
+ "fontSize": 24,
738
+ "lineHeight": 32,
739
+ "marginBottom": 24,
740
+ "marginRight": 24,
741
+ "textAlign": "right",
41
742
  },
42
743
  undefined,
43
744
  ],
@@ -47,7 +748,211 @@ exports[`Label renders correctly 1`] = `
47
748
  themeFontWeight="regular"
48
749
  themeIntent="body"
49
750
  >
50
- Label
751
+ helper text
752
+ </Text>
753
+ `;
754
+
755
+ exports[`StyledMaxLengthMessage renders correctly with themeVariant default 1`] = `
756
+ <Text
757
+ style={
758
+ Array [
759
+ Object {
760
+ "color": "#292a2b",
761
+ "fontFamily": "BeVietnamPro-Regular",
762
+ "fontSize": 14,
763
+ "letterSpacing": 0.42,
764
+ "lineHeight": 22,
765
+ },
766
+ Array [
767
+ Object {
768
+ "alignSelf": "flex-end",
769
+ "color": "#292a2b",
770
+ "flex": 1,
771
+ "flexGrow": 1,
772
+ "fontSize": 12,
773
+ "marginRight": 4,
774
+ "textAlign": "right",
775
+ },
776
+ undefined,
777
+ ],
778
+ ]
779
+ }
780
+ themeFontSize="medium"
781
+ themeFontWeight="regular"
782
+ themeIntent="body"
783
+ themeVariant="default"
784
+ >
785
+ 100/255
786
+ </Text>
787
+ `;
788
+
789
+ exports[`StyledMaxLengthMessage renders correctly with themeVariant disabled 1`] = `
790
+ <Text
791
+ style={
792
+ Array [
793
+ Object {
794
+ "color": "#292a2b",
795
+ "fontFamily": "BeVietnamPro-Regular",
796
+ "fontSize": 14,
797
+ "letterSpacing": 0.42,
798
+ "lineHeight": 22,
799
+ },
800
+ Array [
801
+ Object {
802
+ "alignSelf": "flex-end",
803
+ "color": "#ccced1",
804
+ "flex": 1,
805
+ "flexGrow": 1,
806
+ "fontSize": 12,
807
+ "marginRight": 4,
808
+ "textAlign": "right",
809
+ },
810
+ undefined,
811
+ ],
812
+ ]
813
+ }
814
+ themeFontSize="medium"
815
+ themeFontWeight="regular"
816
+ themeIntent="body"
817
+ themeVariant="disabled"
818
+ >
819
+ 100/255
820
+ </Text>
821
+ `;
822
+
823
+ exports[`StyledMaxLengthMessage renders correctly with themeVariant error 1`] = `
824
+ <Text
825
+ style={
826
+ Array [
827
+ Object {
828
+ "color": "#292a2b",
829
+ "fontFamily": "BeVietnamPro-Regular",
830
+ "fontSize": 14,
831
+ "letterSpacing": 0.42,
832
+ "lineHeight": 22,
833
+ },
834
+ Array [
835
+ Object {
836
+ "alignSelf": "flex-end",
837
+ "color": "#de350b",
838
+ "flex": 1,
839
+ "flexGrow": 1,
840
+ "fontSize": 12,
841
+ "marginRight": 4,
842
+ "textAlign": "right",
843
+ },
844
+ undefined,
845
+ ],
846
+ ]
847
+ }
848
+ themeFontSize="medium"
849
+ themeFontWeight="regular"
850
+ themeIntent="body"
851
+ themeVariant="error"
852
+ >
853
+ 100/255
854
+ </Text>
855
+ `;
856
+
857
+ exports[`StyledMaxLengthMessage renders correctly with themeVariant filled 1`] = `
858
+ <Text
859
+ style={
860
+ Array [
861
+ Object {
862
+ "color": "#292a2b",
863
+ "fontFamily": "BeVietnamPro-Regular",
864
+ "fontSize": 14,
865
+ "letterSpacing": 0.42,
866
+ "lineHeight": 22,
867
+ },
868
+ Array [
869
+ Object {
870
+ "alignSelf": "flex-end",
871
+ "color": "#292a2b",
872
+ "flex": 1,
873
+ "flexGrow": 1,
874
+ "fontSize": 12,
875
+ "marginRight": 4,
876
+ "textAlign": "right",
877
+ },
878
+ undefined,
879
+ ],
880
+ ]
881
+ }
882
+ themeFontSize="medium"
883
+ themeFontWeight="regular"
884
+ themeIntent="body"
885
+ themeVariant="filled"
886
+ >
887
+ 100/255
888
+ </Text>
889
+ `;
890
+
891
+ exports[`StyledMaxLengthMessage renders correctly with themeVariant focused 1`] = `
892
+ <Text
893
+ style={
894
+ Array [
895
+ Object {
896
+ "color": "#292a2b",
897
+ "fontFamily": "BeVietnamPro-Regular",
898
+ "fontSize": 14,
899
+ "letterSpacing": 0.42,
900
+ "lineHeight": 22,
901
+ },
902
+ Array [
903
+ Object {
904
+ "alignSelf": "flex-end",
905
+ "color": "#292a2b",
906
+ "flex": 1,
907
+ "flexGrow": 1,
908
+ "fontSize": 12,
909
+ "marginRight": 4,
910
+ "textAlign": "right",
911
+ },
912
+ undefined,
913
+ ],
914
+ ]
915
+ }
916
+ themeFontSize="medium"
917
+ themeFontWeight="regular"
918
+ themeIntent="body"
919
+ themeVariant="focused"
920
+ >
921
+ 100/255
922
+ </Text>
923
+ `;
924
+
925
+ exports[`StyledMaxLengthMessage renders correctly with themeVariant readonly 1`] = `
926
+ <Text
927
+ style={
928
+ Array [
929
+ Object {
930
+ "color": "#292a2b",
931
+ "fontFamily": "BeVietnamPro-Regular",
932
+ "fontSize": 14,
933
+ "letterSpacing": 0.42,
934
+ "lineHeight": 22,
935
+ },
936
+ Array [
937
+ Object {
938
+ "alignSelf": "flex-end",
939
+ "color": "#8b8d92",
940
+ "flex": 1,
941
+ "flexGrow": 1,
942
+ "fontSize": 12,
943
+ "marginRight": 4,
944
+ "textAlign": "right",
945
+ },
946
+ undefined,
947
+ ],
948
+ ]
949
+ }
950
+ themeFontSize="medium"
951
+ themeFontWeight="regular"
952
+ themeIntent="body"
953
+ themeVariant="readonly"
954
+ >
955
+ 100/255
51
956
  </Text>
52
957
  `;
53
958
 
@@ -56,9 +961,11 @@ exports[`StyledTextInput renders correctly 1`] = `
56
961
  style={
57
962
  Array [
58
963
  Object {
59
- "flex": 1,
60
- "fontSize": 16,
964
+ "alignSelf": "stretch",
965
+ "flexGrow": 2,
966
+ "fontSize": 14,
61
967
  "marginHorizontal": 8,
968
+ "textAlignVertical": "center",
62
969
  },
63
970
  undefined,
64
971
  ]