@aws-amplify/ui-react-native 1.0.0 → 1.1.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 (550) hide show
  1. package/.eslintrc.js +7 -1
  2. package/CHANGELOG.md +12 -0
  3. package/dist/Authenticator/Authenticator.d.ts +162 -0
  4. package/dist/Authenticator/Authenticator.js +57 -0
  5. package/dist/Authenticator/Defaults/ConfirmResetPassword/ConfirmResetPassword.d.ts +3 -0
  6. package/dist/Authenticator/Defaults/ConfirmResetPassword/ConfirmResetPassword.js +28 -0
  7. package/dist/Authenticator/Defaults/ConfirmResetPassword/index.d.ts +1 -0
  8. package/dist/Authenticator/Defaults/ConfirmResetPassword/index.js +1 -0
  9. package/dist/Authenticator/Defaults/ConfirmSignIn/ConfirmSignIn.d.ts +3 -0
  10. package/dist/Authenticator/Defaults/ConfirmSignIn/ConfirmSignIn.js +28 -0
  11. package/dist/Authenticator/Defaults/ConfirmSignIn/index.d.ts +1 -0
  12. package/dist/Authenticator/Defaults/ConfirmSignIn/index.js +1 -0
  13. package/dist/Authenticator/Defaults/ConfirmSignUp/ConfirmSignUp.d.ts +3 -0
  14. package/dist/Authenticator/Defaults/ConfirmSignUp/ConfirmSignUp.js +29 -0
  15. package/dist/Authenticator/Defaults/ConfirmSignUp/index.d.ts +1 -0
  16. package/dist/Authenticator/Defaults/ConfirmSignUp/index.js +1 -0
  17. package/dist/Authenticator/Defaults/ConfirmVerifyUser/ConfirmVerifyUser.d.ts +3 -0
  18. package/dist/Authenticator/Defaults/ConfirmVerifyUser/ConfirmVerifyUser.js +28 -0
  19. package/dist/Authenticator/Defaults/ConfirmVerifyUser/index.d.ts +1 -0
  20. package/dist/Authenticator/Defaults/ConfirmVerifyUser/index.js +1 -0
  21. package/dist/Authenticator/Defaults/ForceNewPassword/ForceNewPassword.d.ts +3 -0
  22. package/dist/Authenticator/Defaults/ForceNewPassword/ForceNewPassword.js +30 -0
  23. package/dist/Authenticator/Defaults/ForceNewPassword/index.d.ts +1 -0
  24. package/dist/Authenticator/Defaults/ForceNewPassword/index.js +1 -0
  25. package/dist/Authenticator/Defaults/ResetPassword/ResetPassword.d.ts +3 -0
  26. package/dist/Authenticator/Defaults/ResetPassword/ResetPassword.js +28 -0
  27. package/dist/Authenticator/Defaults/ResetPassword/index.d.ts +1 -0
  28. package/dist/Authenticator/Defaults/ResetPassword/index.js +1 -0
  29. package/dist/Authenticator/Defaults/SetupTOTP/SetupTOTP.d.ts +3 -0
  30. package/dist/Authenticator/Defaults/SetupTOTP/SetupTOTP.js +55 -0
  31. package/dist/Authenticator/Defaults/SetupTOTP/index.d.ts +1 -0
  32. package/dist/Authenticator/Defaults/SetupTOTP/index.js +1 -0
  33. package/dist/Authenticator/Defaults/SetupTOTP/styles.d.ts +5 -0
  34. package/dist/Authenticator/Defaults/SetupTOTP/styles.js +5 -0
  35. package/dist/Authenticator/Defaults/SignIn/SignIn.d.ts +3 -0
  36. package/dist/Authenticator/Defaults/SignIn/SignIn.js +45 -0
  37. package/dist/Authenticator/Defaults/SignIn/index.d.ts +1 -0
  38. package/dist/Authenticator/Defaults/SignIn/index.js +1 -0
  39. package/dist/Authenticator/Defaults/SignUp/SignUp.d.ts +3 -0
  40. package/dist/Authenticator/Defaults/SignUp/SignUp.js +38 -0
  41. package/dist/Authenticator/Defaults/SignUp/index.d.ts +1 -0
  42. package/dist/Authenticator/Defaults/SignUp/index.js +1 -0
  43. package/dist/Authenticator/Defaults/VerifyUser/VerifyUser.d.ts +3 -0
  44. package/dist/Authenticator/Defaults/VerifyUser/VerifyUser.js +29 -0
  45. package/dist/Authenticator/Defaults/VerifyUser/index.d.ts +1 -0
  46. package/dist/Authenticator/Defaults/VerifyUser/index.js +1 -0
  47. package/dist/Authenticator/Defaults/index.d.ts +11 -0
  48. package/dist/Authenticator/Defaults/index.js +10 -0
  49. package/dist/Authenticator/Defaults/types.d.ts +103 -0
  50. package/dist/Authenticator/Defaults/types.js +1 -0
  51. package/dist/Authenticator/common/DefaultContainer/DefaultContainer.d.ts +3 -0
  52. package/dist/Authenticator/common/DefaultContainer/DefaultContainer.js +41 -0
  53. package/dist/Authenticator/common/DefaultContainer/InnerContainer.d.ts +3 -0
  54. package/dist/Authenticator/common/DefaultContainer/InnerContainer.js +11 -0
  55. package/dist/Authenticator/common/DefaultContainer/index.d.ts +3 -0
  56. package/dist/Authenticator/common/DefaultContainer/index.js +2 -0
  57. package/dist/Authenticator/common/DefaultContainer/styles.d.ts +5 -0
  58. package/dist/Authenticator/common/DefaultContainer/styles.js +26 -0
  59. package/dist/Authenticator/common/DefaultContainer/types.d.ts +16 -0
  60. package/dist/Authenticator/common/DefaultContainer/types.js +1 -0
  61. package/dist/Authenticator/common/DefaultContent/DefaultContent.d.ts +4 -0
  62. package/dist/Authenticator/common/DefaultContent/DefaultContent.js +29 -0
  63. package/dist/Authenticator/common/DefaultContent/index.d.ts +1 -0
  64. package/dist/Authenticator/common/DefaultContent/index.js +1 -0
  65. package/dist/Authenticator/common/DefaultContent/styles.d.ts +3 -0
  66. package/dist/Authenticator/common/DefaultContent/styles.js +50 -0
  67. package/dist/Authenticator/common/DefaultContent/types.d.ts +52 -0
  68. package/dist/Authenticator/common/DefaultContent/types.js +1 -0
  69. package/dist/Authenticator/common/DefaultFooter/DefaultFooter.d.ts +3 -0
  70. package/dist/Authenticator/common/DefaultFooter/DefaultFooter.js +5 -0
  71. package/dist/Authenticator/common/DefaultFooter/index.d.ts +2 -0
  72. package/dist/Authenticator/common/DefaultFooter/index.js +1 -0
  73. package/dist/Authenticator/common/DefaultFooter/types.d.ts +3 -0
  74. package/dist/Authenticator/common/DefaultFooter/types.js +1 -0
  75. package/dist/Authenticator/common/DefaultFormFields/DefaultRadioFormFields.d.ts +3 -0
  76. package/dist/Authenticator/common/DefaultFormFields/DefaultRadioFormFields.js +24 -0
  77. package/dist/Authenticator/common/DefaultFormFields/DefaultTextFormFields.d.ts +3 -0
  78. package/dist/Authenticator/common/DefaultFormFields/DefaultTextFormFields.js +23 -0
  79. package/dist/Authenticator/common/DefaultFormFields/FieldErrors.d.ts +2 -0
  80. package/dist/Authenticator/common/DefaultFormFields/FieldErrors.js +12 -0
  81. package/dist/Authenticator/common/DefaultFormFields/index.d.ts +3 -0
  82. package/dist/Authenticator/common/DefaultFormFields/index.js +2 -0
  83. package/dist/Authenticator/common/DefaultFormFields/types.d.ts +19 -0
  84. package/dist/Authenticator/common/DefaultFormFields/types.js +1 -0
  85. package/dist/Authenticator/common/DefaultHeader/DefaultHeader.d.ts +3 -0
  86. package/dist/Authenticator/common/DefaultHeader/DefaultHeader.js +7 -0
  87. package/dist/Authenticator/common/DefaultHeader/index.d.ts +2 -0
  88. package/dist/Authenticator/common/DefaultHeader/index.js +1 -0
  89. package/dist/Authenticator/common/DefaultHeader/types.d.ts +3 -0
  90. package/dist/Authenticator/common/DefaultHeader/types.js +1 -0
  91. package/dist/Authenticator/common/FederatedProviderButton/FederatedProviderButton.d.ts +3 -0
  92. package/dist/Authenticator/common/FederatedProviderButton/FederatedProviderButton.js +13 -0
  93. package/dist/Authenticator/common/FederatedProviderButton/index.d.ts +2 -0
  94. package/dist/Authenticator/common/FederatedProviderButton/index.js +1 -0
  95. package/dist/Authenticator/common/FederatedProviderButton/styles.d.ts +2 -0
  96. package/dist/Authenticator/common/FederatedProviderButton/styles.js +18 -0
  97. package/dist/Authenticator/common/FederatedProviderButton/types.d.ts +10 -0
  98. package/dist/Authenticator/common/FederatedProviderButton/types.js +1 -0
  99. package/dist/Authenticator/common/FederatedProviderButtons/FederatedProviderButtons.d.ts +3 -0
  100. package/dist/Authenticator/common/FederatedProviderButtons/FederatedProviderButtons.js +22 -0
  101. package/dist/Authenticator/common/FederatedProviderButtons/index.d.ts +1 -0
  102. package/dist/Authenticator/common/FederatedProviderButtons/index.js +1 -0
  103. package/dist/Authenticator/common/FederatedProviderButtons/styles.d.ts +2 -0
  104. package/dist/Authenticator/common/FederatedProviderButtons/styles.js +5 -0
  105. package/dist/Authenticator/common/FederatedProviderButtons/types.d.ts +9 -0
  106. package/dist/Authenticator/common/FederatedProviderButtons/types.js +1 -0
  107. package/dist/Authenticator/common/index.d.ts +7 -0
  108. package/dist/Authenticator/common/index.js +7 -0
  109. package/dist/Authenticator/hooks/index.d.ts +2 -0
  110. package/dist/Authenticator/hooks/index.js +2 -0
  111. package/dist/Authenticator/hooks/types.d.ts +24 -0
  112. package/dist/Authenticator/hooks/types.js +1 -0
  113. package/dist/Authenticator/hooks/useFieldValues/constants.d.ts +1 -0
  114. package/dist/Authenticator/hooks/useFieldValues/constants.js +8 -0
  115. package/dist/Authenticator/hooks/useFieldValues/index.d.ts +2 -0
  116. package/dist/Authenticator/hooks/useFieldValues/index.js +2 -0
  117. package/dist/Authenticator/hooks/useFieldValues/types.d.ts +24 -0
  118. package/dist/Authenticator/hooks/useFieldValues/types.js +1 -0
  119. package/dist/Authenticator/hooks/useFieldValues/useFieldValues.d.ts +3 -0
  120. package/dist/Authenticator/hooks/useFieldValues/useFieldValues.js +80 -0
  121. package/dist/Authenticator/hooks/useFieldValues/utils.d.ts +18 -0
  122. package/dist/Authenticator/hooks/useFieldValues/utils.js +98 -0
  123. package/dist/Authenticator/index.d.ts +4 -0
  124. package/dist/Authenticator/index.js +4 -0
  125. package/dist/Authenticator/types.d.ts +14 -0
  126. package/dist/Authenticator/types.js +1 -0
  127. package/dist/Authenticator/withAuthenticator.d.ts +3 -0
  128. package/dist/Authenticator/withAuthenticator.js +11 -0
  129. package/dist/InAppMessaging/components/BannerMessage/BannerMessage.d.ts +1 -0
  130. package/dist/InAppMessaging/components/CarouselMessage/CarouselMessage.d.ts +1 -0
  131. package/dist/InAppMessaging/components/CarouselMessage/CarouselMessageItem.d.ts +1 -0
  132. package/dist/InAppMessaging/components/FullScreenMessage/FullScreenMessage.d.ts +1 -0
  133. package/dist/InAppMessaging/components/InAppMessageDisplay/InAppMessageDisplay.d.ts +1 -0
  134. package/dist/InAppMessaging/components/MessageLayout/MessageLayout.d.ts +1 -0
  135. package/dist/InAppMessaging/components/MessageWrapper/MessageWrapper.d.ts +1 -0
  136. package/dist/InAppMessaging/components/ModalMessage/ModalMessage.d.ts +1 -0
  137. package/dist/__mocks__/react-native-safe-area-context.d.ts +6 -1
  138. package/dist/__mocks__/react-native-safe-area-context.js +3 -1
  139. package/dist/assets/icons/amazonLogo.png +0 -0
  140. package/dist/assets/icons/amazonLogo@2x.png +0 -0
  141. package/dist/assets/icons/amazonLogo@3x.png +0 -0
  142. package/dist/assets/icons/appleLogo.png +0 -0
  143. package/dist/assets/icons/appleLogo@2x.png +0 -0
  144. package/dist/assets/icons/appleLogo@3x.png +0 -0
  145. package/dist/assets/icons/checkboxFilled.png +0 -0
  146. package/dist/assets/icons/checkboxFilled@2x.png +0 -0
  147. package/dist/assets/icons/checkboxFilled@3x.png +0 -0
  148. package/dist/assets/icons/checkboxOutline.png +0 -0
  149. package/dist/assets/icons/checkboxOutline@2x.png +0 -0
  150. package/dist/assets/icons/checkboxOutline@3x.png +0 -0
  151. package/dist/assets/icons/close.png +0 -0
  152. package/dist/assets/icons/close@2x.png +0 -0
  153. package/dist/assets/icons/close@3x.png +0 -0
  154. package/dist/assets/icons/copy.png +0 -0
  155. package/dist/assets/icons/copy@2x.png +0 -0
  156. package/dist/assets/icons/copy@3x.png +0 -0
  157. package/dist/assets/icons/error.png +0 -0
  158. package/dist/assets/icons/error@2x.png +0 -0
  159. package/dist/assets/icons/error@3x.png +0 -0
  160. package/dist/assets/icons/facebookLogo.png +0 -0
  161. package/dist/assets/icons/facebookLogo@2x.png +0 -0
  162. package/dist/assets/icons/facebookLogo@3x.png +0 -0
  163. package/dist/assets/icons/googleLogo.png +0 -0
  164. package/dist/assets/icons/googleLogo@2x.png +0 -0
  165. package/dist/assets/icons/googleLogo@3x.png +0 -0
  166. package/dist/assets/icons/index.d.ts +8 -0
  167. package/dist/assets/icons/index.js +8 -0
  168. package/dist/assets/icons/index.ts +8 -0
  169. package/dist/assets/icons/visibilityOff.png +0 -0
  170. package/dist/assets/icons/visibilityOff@2x.png +0 -0
  171. package/dist/assets/icons/visibilityOff@3x.png +0 -0
  172. package/dist/assets/icons/visibilityOn.png +0 -0
  173. package/dist/assets/icons/visibilityOn@2x.png +0 -0
  174. package/dist/assets/icons/visibilityOn@3x.png +0 -0
  175. package/dist/index.d.ts +2 -0
  176. package/dist/index.js +2 -0
  177. package/dist/primitives/Button/Button.d.ts +2 -1
  178. package/dist/primitives/Button/Button.js +24 -6
  179. package/dist/primitives/Button/styles.d.ts +2 -1
  180. package/dist/primitives/Button/styles.js +50 -3
  181. package/dist/primitives/Button/types.d.ts +13 -2
  182. package/dist/primitives/Carousel/Carousel.d.ts +1 -0
  183. package/dist/primitives/Carousel/CarouselPageIndicator.d.ts +1 -0
  184. package/dist/primitives/Checkbox/Checkbox.d.ts +1 -0
  185. package/dist/primitives/Checkbox/Checkbox.js +9 -8
  186. package/dist/primitives/Checkbox/index.d.ts +1 -1
  187. package/dist/primitives/Checkbox/styles.d.ts +4 -2
  188. package/dist/primitives/Checkbox/styles.js +23 -5
  189. package/dist/primitives/Checkbox/types.d.ts +7 -4
  190. package/dist/primitives/Divider/Divider.d.ts +4 -0
  191. package/dist/primitives/Divider/Divider.js +17 -0
  192. package/dist/primitives/Divider/index.d.ts +2 -0
  193. package/dist/primitives/Divider/index.js +1 -0
  194. package/dist/primitives/Divider/styles.d.ts +3 -0
  195. package/dist/primitives/Divider/styles.js +24 -0
  196. package/dist/primitives/Divider/types.d.ts +10 -0
  197. package/dist/primitives/Divider/types.js +1 -0
  198. package/dist/primitives/ErrorMessage/ErrorMessage.d.ts +4 -0
  199. package/dist/primitives/ErrorMessage/ErrorMessage.js +17 -0
  200. package/dist/primitives/ErrorMessage/index.d.ts +2 -0
  201. package/dist/primitives/ErrorMessage/index.js +1 -0
  202. package/dist/primitives/ErrorMessage/styles.d.ts +3 -0
  203. package/dist/primitives/ErrorMessage/styles.js +24 -0
  204. package/dist/primitives/ErrorMessage/types.d.ts +10 -0
  205. package/dist/primitives/ErrorMessage/types.js +1 -0
  206. package/dist/primitives/Heading/Heading.d.ts +1 -0
  207. package/dist/primitives/Heading/Heading.js +5 -2
  208. package/dist/primitives/Heading/styles.d.ts +2 -1
  209. package/dist/primitives/Heading/styles.js +45 -12
  210. package/dist/primitives/Heading/types.d.ts +1 -1
  211. package/dist/primitives/Icon/Icon.d.ts +2 -1
  212. package/dist/primitives/Icon/Icon.js +12 -5
  213. package/dist/primitives/Icon/constants.d.ts +2 -0
  214. package/dist/primitives/Icon/constants.js +7 -0
  215. package/dist/primitives/Icon/index.d.ts +2 -1
  216. package/dist/primitives/Icon/index.js +1 -0
  217. package/dist/primitives/Icon/styles.d.ts +2 -1
  218. package/dist/primitives/Icon/styles.js +29 -8
  219. package/dist/primitives/Icon/types.d.ts +4 -2
  220. package/dist/primitives/IconButton/IconButton.d.ts +2 -1
  221. package/dist/primitives/IconButton/IconButton.js +18 -5
  222. package/dist/primitives/IconButton/styles.d.ts +3 -0
  223. package/dist/primitives/IconButton/styles.js +17 -1
  224. package/dist/primitives/IconButton/types.d.ts +4 -2
  225. package/dist/primitives/Label/Label.d.ts +2 -1
  226. package/dist/primitives/Label/Label.js +7 -3
  227. package/dist/primitives/Label/index.d.ts +1 -1
  228. package/dist/primitives/Label/styles.d.ts +2 -1
  229. package/dist/primitives/Label/styles.js +40 -3
  230. package/dist/primitives/Label/types.d.ts +14 -1
  231. package/dist/primitives/PasswordField/PasswordField.d.ts +3 -0
  232. package/dist/primitives/PasswordField/PasswordField.js +20 -0
  233. package/dist/primitives/PasswordField/index.d.ts +2 -0
  234. package/dist/primitives/PasswordField/index.js +1 -0
  235. package/dist/primitives/PasswordField/styles.d.ts +3 -0
  236. package/dist/primitives/PasswordField/styles.js +13 -0
  237. package/dist/primitives/PasswordField/types.d.ts +23 -0
  238. package/dist/primitives/PasswordField/types.js +1 -0
  239. package/dist/primitives/PhoneNumberField/PhoneNumberField.d.ts +3 -0
  240. package/dist/primitives/PhoneNumberField/PhoneNumberField.js +9 -0
  241. package/dist/primitives/PhoneNumberField/index.d.ts +2 -0
  242. package/dist/primitives/PhoneNumberField/index.js +1 -0
  243. package/dist/primitives/PhoneNumberField/styles.d.ts +3 -0
  244. package/dist/primitives/PhoneNumberField/styles.js +18 -0
  245. package/dist/primitives/PhoneNumberField/types.d.ts +5 -0
  246. package/dist/primitives/PhoneNumberField/types.js +1 -0
  247. package/dist/primitives/Radio/Radio.d.ts +4 -1
  248. package/dist/primitives/Radio/Radio.js +20 -10
  249. package/dist/primitives/Radio/getRadioDimensions.d.ts +9 -3
  250. package/dist/primitives/Radio/getRadioDimensions.js +16 -4
  251. package/dist/primitives/Radio/styles.d.ts +2 -1
  252. package/dist/primitives/Radio/styles.js +57 -44
  253. package/dist/primitives/Radio/types.d.ts +11 -11
  254. package/dist/primitives/RadioGroup/RadioGroup.d.ts +3 -0
  255. package/dist/primitives/RadioGroup/RadioGroup.js +51 -0
  256. package/dist/primitives/RadioGroup/index.d.ts +2 -0
  257. package/dist/primitives/RadioGroup/index.js +1 -0
  258. package/dist/primitives/RadioGroup/styles.d.ts +3 -0
  259. package/dist/primitives/RadioGroup/styles.js +16 -0
  260. package/dist/primitives/RadioGroup/types.d.ts +14 -0
  261. package/dist/primitives/RadioGroup/types.js +1 -0
  262. package/dist/primitives/Tabs/Tab.d.ts +3 -0
  263. package/dist/primitives/Tabs/Tab.js +23 -0
  264. package/dist/primitives/Tabs/Tabs.d.ts +3 -0
  265. package/dist/primitives/Tabs/Tabs.js +25 -0
  266. package/dist/primitives/Tabs/index.d.ts +3 -0
  267. package/dist/primitives/Tabs/index.js +2 -0
  268. package/dist/primitives/Tabs/styles.d.ts +3 -0
  269. package/dist/primitives/Tabs/styles.js +50 -0
  270. package/dist/primitives/Tabs/types.d.ts +45 -0
  271. package/dist/primitives/Tabs/types.js +1 -0
  272. package/dist/primitives/TextField/TextField.d.ts +5 -0
  273. package/dist/primitives/TextField/TextField.js +25 -0
  274. package/dist/primitives/TextField/index.d.ts +2 -0
  275. package/dist/primitives/TextField/index.js +1 -0
  276. package/dist/primitives/TextField/styles.d.ts +3 -0
  277. package/dist/primitives/TextField/styles.js +39 -0
  278. package/dist/primitives/TextField/types.d.ts +57 -0
  279. package/dist/primitives/TextField/types.js +1 -0
  280. package/dist/primitives/index.d.ts +7 -0
  281. package/dist/primitives/index.js +7 -0
  282. package/dist/theme/ThemeContext.d.ts +6 -0
  283. package/dist/theme/ThemeContext.js +5 -0
  284. package/dist/theme/ThemeProvider.d.ts +9 -0
  285. package/dist/theme/ThemeProvider.js +7 -0
  286. package/dist/theme/createTheme.d.ts +8 -0
  287. package/dist/theme/createTheme.js +105 -0
  288. package/dist/theme/defaultTheme.d.ts +3 -0
  289. package/dist/theme/defaultTheme.js +8 -0
  290. package/dist/theme/index.d.ts +5 -0
  291. package/dist/theme/index.js +5 -0
  292. package/dist/theme/types.d.ts +63 -0
  293. package/dist/theme/types.js +1 -0
  294. package/dist/theme/useTheme.d.ts +2 -0
  295. package/dist/theme/useTheme.js +6 -0
  296. package/dist/utils/font.d.ts +1 -0
  297. package/dist/utils/font.js +4 -0
  298. package/dist/utils/index.d.ts +3 -2
  299. package/dist/utils/index.js +3 -7
  300. package/dist/utils/platform.d.ts +193 -0
  301. package/dist/utils/platform.js +17 -0
  302. package/dist/utils/utils.d.ts +1 -0
  303. package/dist/utils/utils.js +3 -0
  304. package/jest.config.js +1 -0
  305. package/jest.setup.js +3 -0
  306. package/package.json +7 -6
  307. package/src/Authenticator/Authenticator.tsx +106 -0
  308. package/src/Authenticator/Defaults/ConfirmResetPassword/ConfirmResetPassword.tsx +68 -0
  309. package/src/Authenticator/Defaults/ConfirmResetPassword/__tests__/ConfirmResetPassword.spec.tsx +88 -0
  310. package/src/Authenticator/Defaults/ConfirmResetPassword/__tests__/__snapshots__/ConfirmResetPassword.spec.tsx.snap +1048 -0
  311. package/src/Authenticator/Defaults/ConfirmResetPassword/index.ts +1 -0
  312. package/src/Authenticator/Defaults/ConfirmSignIn/ConfirmSignIn.tsx +69 -0
  313. package/src/Authenticator/Defaults/ConfirmSignIn/__tests__/ConfirmSignIn.spec.tsx +77 -0
  314. package/src/Authenticator/Defaults/ConfirmSignIn/__tests__/__snapshots__/ConfirmSignIn.spec.tsx.snap +508 -0
  315. package/src/Authenticator/Defaults/ConfirmSignIn/index.ts +1 -0
  316. package/src/Authenticator/Defaults/ConfirmSignUp/ConfirmSignUp.tsx +72 -0
  317. package/src/Authenticator/Defaults/ConfirmSignUp/__tests__/ConfirmSignUp.spec.tsx +63 -0
  318. package/src/Authenticator/Defaults/ConfirmSignUp/__tests__/__snapshots__/ConfirmSignUp.spec.tsx.snap +528 -0
  319. package/src/Authenticator/Defaults/ConfirmSignUp/index.ts +1 -0
  320. package/src/Authenticator/Defaults/ConfirmVerifyUser/ConfirmVerifyUser.tsx +68 -0
  321. package/src/Authenticator/Defaults/ConfirmVerifyUser/__tests__/ConfirmVerifyUser.spec.tsx +70 -0
  322. package/src/Authenticator/Defaults/ConfirmVerifyUser/__tests__/__snapshots__/ConfirmVerifyUser.spec.tsx.snap +489 -0
  323. package/src/Authenticator/Defaults/ConfirmVerifyUser/index.ts +1 -0
  324. package/src/Authenticator/Defaults/ForceNewPassword/ForceNewPassword.tsx +66 -0
  325. package/src/Authenticator/Defaults/ForceNewPassword/__tests__/ForceNewPassword.spec.tsx +78 -0
  326. package/src/Authenticator/Defaults/ForceNewPassword/__tests__/__snapshots__/ForceNewPassword.spec.tsx.snap +860 -0
  327. package/src/Authenticator/Defaults/ForceNewPassword/index.ts +1 -0
  328. package/src/Authenticator/Defaults/ResetPassword/ResetPassword.tsx +67 -0
  329. package/src/Authenticator/Defaults/ResetPassword/__tests__/ResetPassword.spec.tsx +77 -0
  330. package/src/Authenticator/Defaults/ResetPassword/__tests__/__snapshots__/ResetPassword.spec.tsx.snap +508 -0
  331. package/src/Authenticator/Defaults/ResetPassword/index.ts +1 -0
  332. package/src/Authenticator/Defaults/SetupTOTP/SetupTOTP.tsx +106 -0
  333. package/src/Authenticator/Defaults/SetupTOTP/__tests__/SetupTOTP.spec.tsx +131 -0
  334. package/src/Authenticator/Defaults/SetupTOTP/__tests__/__snapshots__/SetupTOTP.spec.tsx.snap +508 -0
  335. package/src/Authenticator/Defaults/SetupTOTP/index.ts +1 -0
  336. package/src/Authenticator/Defaults/SetupTOTP/styles.ts +10 -0
  337. package/src/Authenticator/Defaults/SignIn/SignIn.tsx +82 -0
  338. package/src/Authenticator/Defaults/SignIn/__tests__/SignIn.spec.tsx +66 -0
  339. package/src/Authenticator/Defaults/SignIn/__tests__/__snapshots__/SignIn.spec.tsx.snap +1252 -0
  340. package/src/Authenticator/Defaults/SignIn/index.ts +1 -0
  341. package/src/Authenticator/Defaults/SignUp/SignUp.tsx +79 -0
  342. package/src/Authenticator/Defaults/SignUp/__tests__/SignUp.spec.tsx +101 -0
  343. package/src/Authenticator/Defaults/SignUp/__tests__/__snapshots__/SignUp.spec.tsx.snap +3019 -0
  344. package/src/Authenticator/Defaults/SignUp/index.ts +1 -0
  345. package/src/Authenticator/Defaults/VerifyUser/VerifyUser.tsx +67 -0
  346. package/src/Authenticator/Defaults/VerifyUser/__tests__/VerifyUser.spec.tsx +106 -0
  347. package/src/Authenticator/Defaults/VerifyUser/__tests__/__snapshots__/VerifyUser.spec.tsx.snap +678 -0
  348. package/src/Authenticator/Defaults/VerifyUser/index.ts +1 -0
  349. package/src/Authenticator/Defaults/index.ts +11 -0
  350. package/src/Authenticator/Defaults/types.ts +146 -0
  351. package/src/Authenticator/__tests__/Authenticator.spec.tsx +134 -0
  352. package/src/Authenticator/__tests__/__snapshots__/Authenticator.spec.tsx.snap +98 -0
  353. package/src/Authenticator/__tests__/__snapshots__/withAuthenticator.spec.tsx.snap +68 -0
  354. package/src/Authenticator/__tests__/withAuthenticator.spec.tsx +73 -0
  355. package/src/Authenticator/common/DefaultContainer/DefaultContainer.tsx +74 -0
  356. package/src/Authenticator/common/DefaultContainer/InnerContainer.tsx +20 -0
  357. package/src/Authenticator/common/DefaultContainer/__tests__/DefaultContainer.spec.tsx +19 -0
  358. package/src/Authenticator/common/DefaultContainer/__tests__/__snapshots__/DefaultContainer.spec.tsx.snap +86 -0
  359. package/src/Authenticator/common/DefaultContainer/index.ts +3 -0
  360. package/src/Authenticator/common/DefaultContainer/styles.ts +40 -0
  361. package/src/Authenticator/common/DefaultContainer/types.ts +29 -0
  362. package/src/Authenticator/common/DefaultContent/DefaultContent.tsx +92 -0
  363. package/src/Authenticator/common/DefaultContent/index.ts +1 -0
  364. package/src/Authenticator/common/DefaultContent/styles.ts +57 -0
  365. package/src/Authenticator/common/DefaultContent/types.ts +74 -0
  366. package/src/Authenticator/common/DefaultFooter/DefaultFooter.tsx +11 -0
  367. package/src/Authenticator/common/DefaultFooter/__tests__/DefaultFooter.spec.tsx +26 -0
  368. package/src/Authenticator/common/DefaultFooter/__tests__/__snapshots__/DefaultFooter.spec.tsx.snap +43 -0
  369. package/src/Authenticator/common/DefaultFooter/index.ts +2 -0
  370. package/src/Authenticator/common/DefaultFooter/types.ts +3 -0
  371. package/src/Authenticator/common/DefaultFormFields/DefaultRadioFormFields.tsx +45 -0
  372. package/src/Authenticator/common/DefaultFormFields/DefaultTextFormFields.tsx +60 -0
  373. package/src/Authenticator/common/DefaultFormFields/FieldErrors.tsx +24 -0
  374. package/src/Authenticator/common/DefaultFormFields/__tests__/DefaultFormFields.spec.tsx +15 -0
  375. package/src/Authenticator/common/DefaultFormFields/__tests__/FieldErrors.spec.tsx +29 -0
  376. package/src/Authenticator/common/DefaultFormFields/__tests__/__snapshots__/DefaultFormFields.spec.tsx.snap +3 -0
  377. package/src/Authenticator/common/DefaultFormFields/__tests__/__snapshots__/FieldErrors.spec.tsx.snap +32 -0
  378. package/src/Authenticator/common/DefaultFormFields/index.ts +3 -0
  379. package/src/Authenticator/common/DefaultFormFields/types.ts +28 -0
  380. package/src/Authenticator/common/DefaultHeader/DefaultHeader.tsx +16 -0
  381. package/src/Authenticator/common/DefaultHeader/__tests__/DefaultHeader.spec.tsx +23 -0
  382. package/src/Authenticator/common/DefaultHeader/__tests__/__snapshots__/DefaultHeader.spec.tsx.snap +24 -0
  383. package/src/Authenticator/common/DefaultHeader/index.ts +2 -0
  384. package/src/Authenticator/common/DefaultHeader/types.ts +3 -0
  385. package/src/Authenticator/common/FederatedProviderButton/FederatedProviderButton.tsx +31 -0
  386. package/src/Authenticator/common/FederatedProviderButton/__tests__/FederatedProviderButton.spec.tsx +36 -0
  387. package/src/Authenticator/common/FederatedProviderButton/__tests__/__snapshots__/FederatedProviderButton.spec.tsx.snap +94 -0
  388. package/src/Authenticator/common/FederatedProviderButton/index.ts +2 -0
  389. package/src/Authenticator/common/FederatedProviderButton/styles.ts +21 -0
  390. package/src/Authenticator/common/FederatedProviderButton/types.ts +18 -0
  391. package/src/Authenticator/common/FederatedProviderButtons/FederatedProviderButtons.tsx +45 -0
  392. package/src/Authenticator/common/FederatedProviderButtons/__tests__/FederatedProviderButtons.spec.tsx +55 -0
  393. package/src/Authenticator/common/FederatedProviderButtons/__tests__/__snapshots__/FederatedProviderButtons.spec.tsx.snap +169 -0
  394. package/src/Authenticator/common/FederatedProviderButtons/index.ts +1 -0
  395. package/src/Authenticator/common/FederatedProviderButtons/styles.ts +7 -0
  396. package/src/Authenticator/common/FederatedProviderButtons/types.ts +16 -0
  397. package/src/Authenticator/common/index.ts +7 -0
  398. package/src/Authenticator/hooks/index.ts +2 -0
  399. package/src/Authenticator/hooks/types.ts +40 -0
  400. package/src/Authenticator/hooks/useFieldValues/__tests__/useFieldValues.spec.ts +300 -0
  401. package/src/Authenticator/hooks/useFieldValues/__tests__/utils.spec.ts +208 -0
  402. package/src/Authenticator/hooks/useFieldValues/constants.ts +8 -0
  403. package/src/Authenticator/hooks/useFieldValues/index.ts +2 -0
  404. package/src/Authenticator/hooks/useFieldValues/types.ts +35 -0
  405. package/src/Authenticator/hooks/useFieldValues/useFieldValues.ts +116 -0
  406. package/src/Authenticator/hooks/useFieldValues/utils.ts +177 -0
  407. package/src/Authenticator/index.ts +6 -0
  408. package/src/Authenticator/types.ts +26 -0
  409. package/src/Authenticator/withAuthenticator.tsx +18 -0
  410. package/src/InAppMessaging/components/BannerMessage/__tests__/__snapshots__/BannerMessage.spec.tsx.snap +24 -10
  411. package/src/InAppMessaging/components/ModalMessage/__tests__/__snapshots__/ModalMessage.spec.tsx.snap +37 -16
  412. package/src/__mocks__/react-native-safe-area-context.ts +4 -1
  413. package/src/__tests__/__snapshots__/index.spec.ts.snap +11 -0
  414. package/src/assets/icons/amazonLogo.png +0 -0
  415. package/src/assets/icons/amazonLogo@2x.png +0 -0
  416. package/src/assets/icons/amazonLogo@3x.png +0 -0
  417. package/src/assets/icons/appleLogo.png +0 -0
  418. package/src/assets/icons/appleLogo@2x.png +0 -0
  419. package/src/assets/icons/appleLogo@3x.png +0 -0
  420. package/src/assets/icons/checkboxFilled.png +0 -0
  421. package/src/assets/icons/checkboxFilled@2x.png +0 -0
  422. package/src/assets/icons/checkboxFilled@3x.png +0 -0
  423. package/src/assets/icons/checkboxOutline.png +0 -0
  424. package/src/assets/icons/checkboxOutline@2x.png +0 -0
  425. package/src/assets/icons/checkboxOutline@3x.png +0 -0
  426. package/src/assets/icons/close.png +0 -0
  427. package/src/assets/icons/close@2x.png +0 -0
  428. package/src/assets/icons/close@3x.png +0 -0
  429. package/src/assets/icons/copy.png +0 -0
  430. package/src/assets/icons/copy@2x.png +0 -0
  431. package/src/assets/icons/copy@3x.png +0 -0
  432. package/src/assets/icons/error.png +0 -0
  433. package/src/assets/icons/error@2x.png +0 -0
  434. package/src/assets/icons/error@3x.png +0 -0
  435. package/src/assets/icons/facebookLogo.png +0 -0
  436. package/src/assets/icons/facebookLogo@2x.png +0 -0
  437. package/src/assets/icons/facebookLogo@3x.png +0 -0
  438. package/src/assets/icons/googleLogo.png +0 -0
  439. package/src/assets/icons/googleLogo@2x.png +0 -0
  440. package/src/assets/icons/googleLogo@3x.png +0 -0
  441. package/src/assets/icons/index.ts +8 -0
  442. package/src/assets/icons/visibilityOff.png +0 -0
  443. package/src/assets/icons/visibilityOff@2x.png +0 -0
  444. package/src/assets/icons/visibilityOff@3x.png +0 -0
  445. package/src/assets/icons/visibilityOn.png +0 -0
  446. package/src/assets/icons/visibilityOn@2x.png +0 -0
  447. package/src/assets/icons/visibilityOn@3x.png +0 -0
  448. package/src/index.ts +15 -0
  449. package/src/primitives/Button/Button.tsx +51 -6
  450. package/src/primitives/Button/__tests__/Button.spec.tsx +75 -7
  451. package/src/primitives/Button/__tests__/__snapshots__/Button.spec.tsx.snap +103 -3
  452. package/src/primitives/Button/styles.ts +61 -3
  453. package/src/primitives/Button/types.ts +14 -2
  454. package/src/primitives/Checkbox/Checkbox.tsx +9 -8
  455. package/src/primitives/Checkbox/__tests__/Checkbox.spec.tsx +120 -15
  456. package/src/primitives/Checkbox/__tests__/__snapshots__/Checkbox.spec.tsx.snap +345 -16
  457. package/src/primitives/Checkbox/index.ts +1 -1
  458. package/src/primitives/Checkbox/styles.ts +31 -6
  459. package/src/primitives/Checkbox/types.ts +13 -4
  460. package/src/primitives/Divider/Divider.tsx +34 -0
  461. package/src/primitives/Divider/__tests__/Divider.spec.tsx +50 -0
  462. package/src/primitives/Divider/__tests__/__snapshots__/Divider.spec.tsx.snap +165 -0
  463. package/src/primitives/Divider/index.ts +2 -0
  464. package/src/primitives/Divider/styles.ts +29 -0
  465. package/src/primitives/Divider/types.ts +21 -0
  466. package/src/primitives/ErrorMessage/ErrorMessage.tsx +44 -0
  467. package/src/primitives/ErrorMessage/__tests__/ErrorMessage.spec.tsx +60 -0
  468. package/src/primitives/ErrorMessage/__tests__/__snapshots__/ErrorMessage.spec.tsx.snap +113 -0
  469. package/src/primitives/ErrorMessage/index.ts +2 -0
  470. package/src/primitives/ErrorMessage/styles.ts +32 -0
  471. package/src/primitives/ErrorMessage/types.ts +18 -0
  472. package/src/primitives/Heading/Heading.tsx +7 -2
  473. package/src/primitives/Heading/__tests__/Heading.spec.tsx +51 -14
  474. package/src/primitives/Heading/__tests__/__snapshots__/Heading.spec.tsx.snap +44 -23
  475. package/src/primitives/Heading/styles.ts +51 -12
  476. package/src/primitives/Heading/types.ts +1 -1
  477. package/src/primitives/Icon/Icon.tsx +16 -4
  478. package/src/primitives/Icon/__tests__/Icon.spec.tsx +80 -5
  479. package/src/primitives/Icon/__tests__/__snapshots__/Icon.spec.tsx.snap +81 -6
  480. package/src/primitives/Icon/constants.ts +9 -0
  481. package/src/primitives/Icon/index.ts +2 -1
  482. package/src/primitives/Icon/styles.ts +38 -7
  483. package/src/primitives/Icon/types.ts +5 -2
  484. package/src/primitives/IconButton/IconButton.tsx +37 -5
  485. package/src/primitives/IconButton/__tests__/IconButton.spec.tsx +57 -9
  486. package/src/primitives/IconButton/__tests__/__snapshots__/IconButton.spec.tsx.snap +125 -4
  487. package/src/primitives/IconButton/styles.ts +25 -0
  488. package/src/primitives/IconButton/types.ts +4 -1
  489. package/src/primitives/Label/Label.tsx +9 -6
  490. package/src/primitives/Label/__tests__/Label.spec.tsx +61 -8
  491. package/src/primitives/Label/__tests__/__snapshots__/Label.spec.tsx.snap +61 -9
  492. package/src/primitives/Label/index.ts +1 -1
  493. package/src/primitives/Label/styles.ts +45 -3
  494. package/src/primitives/Label/types.ts +25 -2
  495. package/src/primitives/PasswordField/PasswordField.tsx +57 -0
  496. package/src/primitives/PasswordField/__tests__/PasswordField.spec.tsx +110 -0
  497. package/src/primitives/PasswordField/__tests__/__snapshots__/PasswordField.spec.tsx.snap +629 -0
  498. package/src/primitives/PasswordField/index.ts +2 -0
  499. package/src/primitives/PasswordField/styles.ts +20 -0
  500. package/src/primitives/PasswordField/types.ts +27 -0
  501. package/src/primitives/PhoneNumberField/PhoneNumberField.tsx +28 -0
  502. package/src/primitives/PhoneNumberField/__tests__/PhoneNumberField.spec.tsx +53 -0
  503. package/src/primitives/PhoneNumberField/__tests__/__snapshots__/PhoneNumberField.spec.tsx.snap +185 -0
  504. package/src/primitives/PhoneNumberField/index.ts +2 -0
  505. package/src/primitives/PhoneNumberField/styles.ts +23 -0
  506. package/src/primitives/PhoneNumberField/types.ts +6 -0
  507. package/src/primitives/Radio/Radio.tsx +35 -14
  508. package/src/primitives/Radio/__tests__/Radio.spec.tsx +109 -15
  509. package/src/primitives/Radio/__tests__/__snapshots__/Radio.spec.tsx.snap +149 -44
  510. package/src/primitives/Radio/getRadioDimensions.ts +20 -7
  511. package/src/primitives/Radio/styles.ts +63 -45
  512. package/src/primitives/Radio/types.ts +12 -11
  513. package/src/primitives/RadioGroup/RadioGroup.tsx +108 -0
  514. package/src/primitives/RadioGroup/__tests__/RadioGroup.spec.tsx +183 -0
  515. package/src/primitives/RadioGroup/__tests__/__snapshots__/RadioGroup.spec.tsx.snap +1741 -0
  516. package/src/primitives/RadioGroup/index.ts +2 -0
  517. package/src/primitives/RadioGroup/styles.ts +21 -0
  518. package/src/primitives/RadioGroup/types.ts +27 -0
  519. package/src/primitives/Tabs/Tab.tsx +49 -0
  520. package/src/primitives/Tabs/Tabs.tsx +43 -0
  521. package/src/primitives/Tabs/__tests__/Tab.spec.tsx +68 -0
  522. package/src/primitives/Tabs/__tests__/Tabs.spec.tsx +81 -0
  523. package/src/primitives/Tabs/__tests__/__snapshots__/Tab.spec.tsx.snap +298 -0
  524. package/src/primitives/Tabs/__tests__/__snapshots__/Tabs.spec.tsx.snap +175 -0
  525. package/src/primitives/Tabs/index.ts +3 -0
  526. package/src/primitives/Tabs/styles.ts +62 -0
  527. package/src/primitives/Tabs/types.ts +51 -0
  528. package/src/primitives/TextField/TextField.tsx +77 -0
  529. package/src/primitives/TextField/__tests__/TextField.spec.tsx +153 -0
  530. package/src/primitives/TextField/__tests__/__snapshots__/TextField.spec.tsx.snap +507 -0
  531. package/src/primitives/TextField/index.ts +2 -0
  532. package/src/primitives/TextField/styles.ts +47 -0
  533. package/src/primitives/TextField/types.ts +66 -0
  534. package/src/primitives/index.ts +7 -0
  535. package/src/theme/ThemeContext.tsx +12 -0
  536. package/src/theme/ThemeProvider.tsx +26 -0
  537. package/src/theme/__tests__/ThemeProvider.spec.tsx +23 -0
  538. package/src/theme/__tests__/__snapshots__/useTheme.spec.tsx.snap +226 -0
  539. package/src/theme/__tests__/createTheme.spec.ts +196 -0
  540. package/src/theme/__tests__/useTheme.spec.tsx +51 -0
  541. package/src/theme/createTheme.ts +130 -0
  542. package/src/theme/defaultTheme.ts +11 -0
  543. package/src/theme/index.ts +5 -0
  544. package/src/theme/types/style-dictionary.d.ts +21 -0
  545. package/src/theme/types.ts +98 -0
  546. package/src/theme/useTheme.ts +9 -0
  547. package/src/utils/font.ts +6 -0
  548. package/src/utils/index.ts +3 -10
  549. package/src/utils/platform.ts +21 -0
  550. package/src/utils/utils.ts +3 -0
@@ -0,0 +1,3019 @@
1
+ // Jest Snapshot v1, https://goo.gl/fbAQLP
2
+
3
+ exports[`SignUp renders as expected 1`] = `
4
+ Array [
5
+ <Text
6
+ accessibilityRole="header"
7
+ style={
8
+ Array [
9
+ Object {
10
+ "color": "hsl(210, 50%, 10%)",
11
+ },
12
+ Object {
13
+ "fontSize": 24,
14
+ "fontWeight": "300",
15
+ "lineHeight": 36,
16
+ },
17
+ Object {
18
+ "marginVertical": 12,
19
+ "paddingHorizontal": 12,
20
+ },
21
+ ]
22
+ }
23
+ >
24
+ Create Account
25
+ </Text>,
26
+ <View
27
+ style={
28
+ Object {
29
+ "paddingBottom": 8,
30
+ }
31
+ }
32
+ >
33
+ <View
34
+ style={
35
+ Array [
36
+ Object {
37
+ "alignItems": "flex-start",
38
+ },
39
+ Object {
40
+ "paddingHorizontal": 12,
41
+ },
42
+ ]
43
+ }
44
+ testID="amplify__text-field-container"
45
+ >
46
+ <Text
47
+ accessibilityLabel="Username"
48
+ accessibilityRole="text"
49
+ style={
50
+ Array [
51
+ Object {
52
+ "fontSize": 14,
53
+ "fontWeight": "400",
54
+ "lineHeight": 21,
55
+ },
56
+ Object {
57
+ "color": "hsl(210, 50%, 10%)",
58
+ },
59
+ Array [
60
+ Object {
61
+ "color": "hsl(210, 25%, 25%)",
62
+ "lineHeight": 21,
63
+ "padding": 4,
64
+ },
65
+ undefined,
66
+ ],
67
+ ]
68
+ }
69
+ >
70
+ Username
71
+ </Text>
72
+ <View
73
+ accessible={true}
74
+ style={
75
+ Object {
76
+ "alignItems": "center",
77
+ "borderColor": "hsl(210, 8%, 55%)",
78
+ "borderRadius": 4,
79
+ "borderWidth": 1,
80
+ "flexDirection": "row",
81
+ "paddingHorizontal": 8,
82
+ }
83
+ }
84
+ testID="amplify__text-field__input-container"
85
+ >
86
+ <TextInput
87
+ accessibilityState={
88
+ Object {
89
+ "disabled": false,
90
+ }
91
+ }
92
+ accessible={true}
93
+ autoCapitalize="none"
94
+ editable={true}
95
+ onBlur={[Function]}
96
+ onChangeText={[Function]}
97
+ placeholder="Username"
98
+ placeholderTextColor="hsl(210, 10%, 40%)"
99
+ selectionColor="hsl(210, 50%, 10%)"
100
+ style={
101
+ Array [
102
+ Object {
103
+ "color": "hsl(210, 50%, 10%)",
104
+ "flexGrow": 1,
105
+ "fontSize": 16,
106
+ "paddingVertical": 12,
107
+ },
108
+ Object {},
109
+ ]
110
+ }
111
+ />
112
+ </View>
113
+ </View>
114
+ <View
115
+ style={
116
+ Array [
117
+ Object {
118
+ "alignItems": "flex-start",
119
+ },
120
+ Array [
121
+ Object {},
122
+ Object {
123
+ "paddingHorizontal": 12,
124
+ },
125
+ ],
126
+ ]
127
+ }
128
+ testID="amplify__text-field-container"
129
+ >
130
+ <Text
131
+ accessibilityLabel="Password"
132
+ accessibilityRole="text"
133
+ style={
134
+ Array [
135
+ Object {
136
+ "fontSize": 14,
137
+ "fontWeight": "400",
138
+ "lineHeight": 21,
139
+ },
140
+ Object {
141
+ "color": "hsl(210, 50%, 10%)",
142
+ },
143
+ Array [
144
+ Object {
145
+ "color": "hsl(210, 25%, 25%)",
146
+ "lineHeight": 21,
147
+ "padding": 4,
148
+ },
149
+ undefined,
150
+ ],
151
+ ]
152
+ }
153
+ >
154
+ Password
155
+ </Text>
156
+ <View
157
+ accessible={true}
158
+ style={
159
+ Object {
160
+ "alignItems": "center",
161
+ "borderColor": "hsl(210, 8%, 55%)",
162
+ "borderRadius": 4,
163
+ "borderWidth": 1,
164
+ "flexDirection": "row",
165
+ "paddingHorizontal": 8,
166
+ }
167
+ }
168
+ testID="amplify__text-field__input-container"
169
+ >
170
+ <TextInput
171
+ accessibilityState={
172
+ Object {
173
+ "disabled": false,
174
+ }
175
+ }
176
+ accessible={true}
177
+ autoCapitalize="none"
178
+ editable={true}
179
+ onBlur={[Function]}
180
+ onChangeText={[Function]}
181
+ placeholder="Password"
182
+ placeholderTextColor="hsl(210, 10%, 40%)"
183
+ secureTextEntry={true}
184
+ selectionColor="hsl(210, 50%, 10%)"
185
+ style={
186
+ Array [
187
+ Object {
188
+ "color": "hsl(210, 50%, 10%)",
189
+ "flexGrow": 1,
190
+ "fontSize": 16,
191
+ "paddingVertical": 12,
192
+ },
193
+ Object {},
194
+ ]
195
+ }
196
+ />
197
+ <View
198
+ accessibilityLabel="Show password"
199
+ accessibilityRole="button"
200
+ accessibilityState={
201
+ Object {
202
+ "disabled": false,
203
+ }
204
+ }
205
+ accessible={true}
206
+ collapsable={false}
207
+ focusable={true}
208
+ onBlur={[Function]}
209
+ onClick={[Function]}
210
+ onFocus={[Function]}
211
+ onResponderGrant={[Function]}
212
+ onResponderMove={[Function]}
213
+ onResponderRelease={[Function]}
214
+ onResponderTerminate={[Function]}
215
+ onResponderTerminationRequest={[Function]}
216
+ onStartShouldSetResponder={[Function]}
217
+ style={
218
+ Array [
219
+ Object {},
220
+ null,
221
+ null,
222
+ undefined,
223
+ ]
224
+ }
225
+ >
226
+ <Image
227
+ accessibilityRole="image"
228
+ source={
229
+ Object {
230
+ "testUri": "../../../src/assets/icons/visibilityOff.png",
231
+ }
232
+ }
233
+ style={
234
+ Array [
235
+ Object {
236
+ "height": 16,
237
+ "resizeMode": "contain",
238
+ "tintColor": undefined,
239
+ "width": 16,
240
+ },
241
+ Array [
242
+ Object {
243
+ "tintColor": "hsl(210, 10%, 40%)",
244
+ },
245
+ undefined,
246
+ ],
247
+ ]
248
+ }
249
+ />
250
+ </View>
251
+ </View>
252
+ </View>
253
+ <View
254
+ style={
255
+ Array [
256
+ Object {
257
+ "alignItems": "flex-start",
258
+ },
259
+ Array [
260
+ Object {},
261
+ Object {
262
+ "paddingHorizontal": 12,
263
+ },
264
+ ],
265
+ ]
266
+ }
267
+ testID="amplify__text-field-container"
268
+ >
269
+ <Text
270
+ accessibilityLabel="Confirm Password"
271
+ accessibilityRole="text"
272
+ style={
273
+ Array [
274
+ Object {
275
+ "fontSize": 14,
276
+ "fontWeight": "400",
277
+ "lineHeight": 21,
278
+ },
279
+ Object {
280
+ "color": "hsl(210, 50%, 10%)",
281
+ },
282
+ Array [
283
+ Object {
284
+ "color": "hsl(210, 25%, 25%)",
285
+ "lineHeight": 21,
286
+ "padding": 4,
287
+ },
288
+ undefined,
289
+ ],
290
+ ]
291
+ }
292
+ >
293
+ Confirm Password
294
+ </Text>
295
+ <View
296
+ accessible={true}
297
+ style={
298
+ Object {
299
+ "alignItems": "center",
300
+ "borderColor": "hsl(210, 8%, 55%)",
301
+ "borderRadius": 4,
302
+ "borderWidth": 1,
303
+ "flexDirection": "row",
304
+ "paddingHorizontal": 8,
305
+ }
306
+ }
307
+ testID="amplify__text-field__input-container"
308
+ >
309
+ <TextInput
310
+ accessibilityState={
311
+ Object {
312
+ "disabled": false,
313
+ }
314
+ }
315
+ accessible={true}
316
+ autoCapitalize="none"
317
+ editable={true}
318
+ onBlur={[Function]}
319
+ onChangeText={[Function]}
320
+ placeholder="Confirm Password"
321
+ placeholderTextColor="hsl(210, 10%, 40%)"
322
+ secureTextEntry={true}
323
+ selectionColor="hsl(210, 50%, 10%)"
324
+ style={
325
+ Array [
326
+ Object {
327
+ "color": "hsl(210, 50%, 10%)",
328
+ "flexGrow": 1,
329
+ "fontSize": 16,
330
+ "paddingVertical": 12,
331
+ },
332
+ Object {},
333
+ ]
334
+ }
335
+ />
336
+ <View
337
+ accessibilityLabel="Show password"
338
+ accessibilityRole="button"
339
+ accessibilityState={
340
+ Object {
341
+ "disabled": false,
342
+ }
343
+ }
344
+ accessible={true}
345
+ collapsable={false}
346
+ focusable={true}
347
+ onBlur={[Function]}
348
+ onClick={[Function]}
349
+ onFocus={[Function]}
350
+ onResponderGrant={[Function]}
351
+ onResponderMove={[Function]}
352
+ onResponderRelease={[Function]}
353
+ onResponderTerminate={[Function]}
354
+ onResponderTerminationRequest={[Function]}
355
+ onStartShouldSetResponder={[Function]}
356
+ style={
357
+ Array [
358
+ Object {},
359
+ null,
360
+ null,
361
+ undefined,
362
+ ]
363
+ }
364
+ >
365
+ <Image
366
+ accessibilityRole="image"
367
+ source={
368
+ Object {
369
+ "testUri": "../../../src/assets/icons/visibilityOff.png",
370
+ }
371
+ }
372
+ style={
373
+ Array [
374
+ Object {
375
+ "height": 16,
376
+ "resizeMode": "contain",
377
+ "tintColor": undefined,
378
+ "width": 16,
379
+ },
380
+ Array [
381
+ Object {
382
+ "tintColor": "hsl(210, 10%, 40%)",
383
+ },
384
+ undefined,
385
+ ],
386
+ ]
387
+ }
388
+ />
389
+ </View>
390
+ </View>
391
+ </View>
392
+ <View
393
+ style={
394
+ Array [
395
+ Object {
396
+ "alignItems": "flex-start",
397
+ },
398
+ Array [
399
+ Object {},
400
+ Object {
401
+ "paddingHorizontal": 12,
402
+ },
403
+ ],
404
+ ]
405
+ }
406
+ testID="amplify__text-field-container"
407
+ >
408
+ <Text
409
+ accessibilityLabel="Phone"
410
+ accessibilityRole="text"
411
+ style={
412
+ Array [
413
+ Object {
414
+ "fontSize": 14,
415
+ "fontWeight": "400",
416
+ "lineHeight": 21,
417
+ },
418
+ Object {
419
+ "color": "hsl(210, 50%, 10%)",
420
+ },
421
+ Array [
422
+ Object {
423
+ "color": "hsl(210, 25%, 25%)",
424
+ "lineHeight": 21,
425
+ "padding": 4,
426
+ },
427
+ Array [
428
+ Object {},
429
+ undefined,
430
+ ],
431
+ ],
432
+ ]
433
+ }
434
+ >
435
+ Phone
436
+ </Text>
437
+ <View
438
+ accessible={true}
439
+ style={
440
+ Object {
441
+ "alignItems": "center",
442
+ "borderColor": "hsl(210, 8%, 55%)",
443
+ "borderRadius": 4,
444
+ "borderWidth": 1,
445
+ "flexDirection": "row",
446
+ "paddingHorizontal": 8,
447
+ }
448
+ }
449
+ testID="amplify__text-field__input-container"
450
+ >
451
+ <TextInput
452
+ accessibilityState={
453
+ Object {
454
+ "disabled": false,
455
+ }
456
+ }
457
+ accessible={true}
458
+ autoCapitalize="none"
459
+ editable={true}
460
+ keyboardType="phone-pad"
461
+ onBlur={[Function]}
462
+ onChangeText={[Function]}
463
+ placeholder="Phone"
464
+ placeholderTextColor="hsl(210, 10%, 40%)"
465
+ selectionColor="hsl(210, 50%, 10%)"
466
+ style={
467
+ Array [
468
+ Object {
469
+ "color": "hsl(210, 50%, 10%)",
470
+ "flexGrow": 1,
471
+ "fontSize": 16,
472
+ "paddingVertical": 12,
473
+ },
474
+ Array [
475
+ Object {},
476
+ Object {},
477
+ ],
478
+ ]
479
+ }
480
+ />
481
+ </View>
482
+ </View>
483
+ </View>,
484
+ <View
485
+ accessibilityRole="button"
486
+ accessible={true}
487
+ collapsable={false}
488
+ focusable={true}
489
+ onBlur={[Function]}
490
+ onClick={[Function]}
491
+ onFocus={[Function]}
492
+ onResponderGrant={[Function]}
493
+ onResponderMove={[Function]}
494
+ onResponderRelease={[Function]}
495
+ onResponderTerminate={[Function]}
496
+ onResponderTerminationRequest={[Function]}
497
+ onStartShouldSetResponder={[Function]}
498
+ style={
499
+ Array [
500
+ Object {
501
+ "alignItems": "center",
502
+ "backgroundColor": "transparent",
503
+ "borderRadius": 4,
504
+ "justifyContent": "center",
505
+ "paddingHorizontal": 16,
506
+ "paddingVertical": 12,
507
+ },
508
+ Object {
509
+ "backgroundColor": "hsl(190, 95%, 30%)",
510
+ },
511
+ null,
512
+ null,
513
+ Object {
514
+ "marginHorizontal": 16,
515
+ "marginVertical": 12,
516
+ },
517
+ ]
518
+ }
519
+ >
520
+ <Text
521
+ style={
522
+ Array [
523
+ Object {
524
+ "color": "hsl(0, 0%, 100%)",
525
+ "fontSize": 16,
526
+ "fontWeight": "700",
527
+ "textAlign": "center",
528
+ },
529
+ Object {},
530
+ ]
531
+ }
532
+ >
533
+ Create Account
534
+ </Text>
535
+ </View>,
536
+ <View
537
+ style={
538
+ Object {
539
+ "flexDirection": "row",
540
+ "flexWrap": "wrap",
541
+ "justifyContent": "center",
542
+ }
543
+ }
544
+ >
545
+ <View
546
+ accessibilityRole="button"
547
+ accessible={true}
548
+ collapsable={false}
549
+ focusable={true}
550
+ onBlur={[Function]}
551
+ onClick={[Function]}
552
+ onFocus={[Function]}
553
+ onResponderGrant={[Function]}
554
+ onResponderMove={[Function]}
555
+ onResponderRelease={[Function]}
556
+ onResponderTerminate={[Function]}
557
+ onResponderTerminationRequest={[Function]}
558
+ onStartShouldSetResponder={[Function]}
559
+ style={
560
+ Array [
561
+ Object {
562
+ "alignItems": "center",
563
+ "backgroundColor": "transparent",
564
+ "borderRadius": 4,
565
+ "justifyContent": "center",
566
+ "paddingHorizontal": 16,
567
+ "paddingVertical": 12,
568
+ },
569
+ Object {},
570
+ null,
571
+ null,
572
+ Object {
573
+ "marginVertical": 8,
574
+ "minWidth": "50%",
575
+ },
576
+ ]
577
+ }
578
+ >
579
+ <Text
580
+ style={
581
+ Array [
582
+ Object {
583
+ "color": "hsl(190, 95%, 30%)",
584
+ "fontSize": 16,
585
+ "fontWeight": "700",
586
+ "textAlign": "center",
587
+ },
588
+ undefined,
589
+ ]
590
+ }
591
+ >
592
+ Sign In
593
+ </Text>
594
+ </View>
595
+ </View>,
596
+ ]
597
+ `;
598
+
599
+ exports[`SignUp renders as expected when hideSignIn is true 1`] = `
600
+ Array [
601
+ <Text
602
+ accessibilityRole="header"
603
+ style={
604
+ Array [
605
+ Object {
606
+ "color": "hsl(210, 50%, 10%)",
607
+ },
608
+ Object {
609
+ "fontSize": 24,
610
+ "fontWeight": "300",
611
+ "lineHeight": 36,
612
+ },
613
+ Object {
614
+ "marginVertical": 12,
615
+ "paddingHorizontal": 12,
616
+ },
617
+ ]
618
+ }
619
+ >
620
+ Create Account
621
+ </Text>,
622
+ <View
623
+ style={
624
+ Object {
625
+ "paddingBottom": 8,
626
+ }
627
+ }
628
+ >
629
+ <View
630
+ style={
631
+ Array [
632
+ Object {
633
+ "alignItems": "flex-start",
634
+ },
635
+ Object {
636
+ "paddingHorizontal": 12,
637
+ },
638
+ ]
639
+ }
640
+ testID="amplify__text-field-container"
641
+ >
642
+ <Text
643
+ accessibilityLabel="Username"
644
+ accessibilityRole="text"
645
+ style={
646
+ Array [
647
+ Object {
648
+ "fontSize": 14,
649
+ "fontWeight": "400",
650
+ "lineHeight": 21,
651
+ },
652
+ Object {
653
+ "color": "hsl(210, 50%, 10%)",
654
+ },
655
+ Array [
656
+ Object {
657
+ "color": "hsl(210, 25%, 25%)",
658
+ "lineHeight": 21,
659
+ "padding": 4,
660
+ },
661
+ undefined,
662
+ ],
663
+ ]
664
+ }
665
+ >
666
+ Username
667
+ </Text>
668
+ <View
669
+ accessible={true}
670
+ style={
671
+ Object {
672
+ "alignItems": "center",
673
+ "borderColor": "hsl(210, 8%, 55%)",
674
+ "borderRadius": 4,
675
+ "borderWidth": 1,
676
+ "flexDirection": "row",
677
+ "paddingHorizontal": 8,
678
+ }
679
+ }
680
+ testID="amplify__text-field__input-container"
681
+ >
682
+ <TextInput
683
+ accessibilityState={
684
+ Object {
685
+ "disabled": false,
686
+ }
687
+ }
688
+ accessible={true}
689
+ autoCapitalize="none"
690
+ editable={true}
691
+ onBlur={[Function]}
692
+ onChangeText={[Function]}
693
+ placeholder="Username"
694
+ placeholderTextColor="hsl(210, 10%, 40%)"
695
+ selectionColor="hsl(210, 50%, 10%)"
696
+ style={
697
+ Array [
698
+ Object {
699
+ "color": "hsl(210, 50%, 10%)",
700
+ "flexGrow": 1,
701
+ "fontSize": 16,
702
+ "paddingVertical": 12,
703
+ },
704
+ Object {},
705
+ ]
706
+ }
707
+ />
708
+ </View>
709
+ </View>
710
+ <View
711
+ style={
712
+ Array [
713
+ Object {
714
+ "alignItems": "flex-start",
715
+ },
716
+ Array [
717
+ Object {},
718
+ Object {
719
+ "paddingHorizontal": 12,
720
+ },
721
+ ],
722
+ ]
723
+ }
724
+ testID="amplify__text-field-container"
725
+ >
726
+ <Text
727
+ accessibilityLabel="Password"
728
+ accessibilityRole="text"
729
+ style={
730
+ Array [
731
+ Object {
732
+ "fontSize": 14,
733
+ "fontWeight": "400",
734
+ "lineHeight": 21,
735
+ },
736
+ Object {
737
+ "color": "hsl(210, 50%, 10%)",
738
+ },
739
+ Array [
740
+ Object {
741
+ "color": "hsl(210, 25%, 25%)",
742
+ "lineHeight": 21,
743
+ "padding": 4,
744
+ },
745
+ undefined,
746
+ ],
747
+ ]
748
+ }
749
+ >
750
+ Password
751
+ </Text>
752
+ <View
753
+ accessible={true}
754
+ style={
755
+ Object {
756
+ "alignItems": "center",
757
+ "borderColor": "hsl(210, 8%, 55%)",
758
+ "borderRadius": 4,
759
+ "borderWidth": 1,
760
+ "flexDirection": "row",
761
+ "paddingHorizontal": 8,
762
+ }
763
+ }
764
+ testID="amplify__text-field__input-container"
765
+ >
766
+ <TextInput
767
+ accessibilityState={
768
+ Object {
769
+ "disabled": false,
770
+ }
771
+ }
772
+ accessible={true}
773
+ autoCapitalize="none"
774
+ editable={true}
775
+ onBlur={[Function]}
776
+ onChangeText={[Function]}
777
+ placeholder="Password"
778
+ placeholderTextColor="hsl(210, 10%, 40%)"
779
+ secureTextEntry={true}
780
+ selectionColor="hsl(210, 50%, 10%)"
781
+ style={
782
+ Array [
783
+ Object {
784
+ "color": "hsl(210, 50%, 10%)",
785
+ "flexGrow": 1,
786
+ "fontSize": 16,
787
+ "paddingVertical": 12,
788
+ },
789
+ Object {},
790
+ ]
791
+ }
792
+ />
793
+ <View
794
+ accessibilityLabel="Show password"
795
+ accessibilityRole="button"
796
+ accessibilityState={
797
+ Object {
798
+ "disabled": false,
799
+ }
800
+ }
801
+ accessible={true}
802
+ collapsable={false}
803
+ focusable={true}
804
+ onBlur={[Function]}
805
+ onClick={[Function]}
806
+ onFocus={[Function]}
807
+ onResponderGrant={[Function]}
808
+ onResponderMove={[Function]}
809
+ onResponderRelease={[Function]}
810
+ onResponderTerminate={[Function]}
811
+ onResponderTerminationRequest={[Function]}
812
+ onStartShouldSetResponder={[Function]}
813
+ style={
814
+ Array [
815
+ Object {},
816
+ null,
817
+ null,
818
+ undefined,
819
+ ]
820
+ }
821
+ >
822
+ <Image
823
+ accessibilityRole="image"
824
+ source={
825
+ Object {
826
+ "testUri": "../../../src/assets/icons/visibilityOff.png",
827
+ }
828
+ }
829
+ style={
830
+ Array [
831
+ Object {
832
+ "height": 16,
833
+ "resizeMode": "contain",
834
+ "tintColor": undefined,
835
+ "width": 16,
836
+ },
837
+ Array [
838
+ Object {
839
+ "tintColor": "hsl(210, 10%, 40%)",
840
+ },
841
+ undefined,
842
+ ],
843
+ ]
844
+ }
845
+ />
846
+ </View>
847
+ </View>
848
+ </View>
849
+ <View
850
+ style={
851
+ Array [
852
+ Object {
853
+ "alignItems": "flex-start",
854
+ },
855
+ Array [
856
+ Object {},
857
+ Object {
858
+ "paddingHorizontal": 12,
859
+ },
860
+ ],
861
+ ]
862
+ }
863
+ testID="amplify__text-field-container"
864
+ >
865
+ <Text
866
+ accessibilityLabel="Confirm Password"
867
+ accessibilityRole="text"
868
+ style={
869
+ Array [
870
+ Object {
871
+ "fontSize": 14,
872
+ "fontWeight": "400",
873
+ "lineHeight": 21,
874
+ },
875
+ Object {
876
+ "color": "hsl(210, 50%, 10%)",
877
+ },
878
+ Array [
879
+ Object {
880
+ "color": "hsl(210, 25%, 25%)",
881
+ "lineHeight": 21,
882
+ "padding": 4,
883
+ },
884
+ undefined,
885
+ ],
886
+ ]
887
+ }
888
+ >
889
+ Confirm Password
890
+ </Text>
891
+ <View
892
+ accessible={true}
893
+ style={
894
+ Object {
895
+ "alignItems": "center",
896
+ "borderColor": "hsl(210, 8%, 55%)",
897
+ "borderRadius": 4,
898
+ "borderWidth": 1,
899
+ "flexDirection": "row",
900
+ "paddingHorizontal": 8,
901
+ }
902
+ }
903
+ testID="amplify__text-field__input-container"
904
+ >
905
+ <TextInput
906
+ accessibilityState={
907
+ Object {
908
+ "disabled": false,
909
+ }
910
+ }
911
+ accessible={true}
912
+ autoCapitalize="none"
913
+ editable={true}
914
+ onBlur={[Function]}
915
+ onChangeText={[Function]}
916
+ placeholder="Confirm Password"
917
+ placeholderTextColor="hsl(210, 10%, 40%)"
918
+ secureTextEntry={true}
919
+ selectionColor="hsl(210, 50%, 10%)"
920
+ style={
921
+ Array [
922
+ Object {
923
+ "color": "hsl(210, 50%, 10%)",
924
+ "flexGrow": 1,
925
+ "fontSize": 16,
926
+ "paddingVertical": 12,
927
+ },
928
+ Object {},
929
+ ]
930
+ }
931
+ />
932
+ <View
933
+ accessibilityLabel="Show password"
934
+ accessibilityRole="button"
935
+ accessibilityState={
936
+ Object {
937
+ "disabled": false,
938
+ }
939
+ }
940
+ accessible={true}
941
+ collapsable={false}
942
+ focusable={true}
943
+ onBlur={[Function]}
944
+ onClick={[Function]}
945
+ onFocus={[Function]}
946
+ onResponderGrant={[Function]}
947
+ onResponderMove={[Function]}
948
+ onResponderRelease={[Function]}
949
+ onResponderTerminate={[Function]}
950
+ onResponderTerminationRequest={[Function]}
951
+ onStartShouldSetResponder={[Function]}
952
+ style={
953
+ Array [
954
+ Object {},
955
+ null,
956
+ null,
957
+ undefined,
958
+ ]
959
+ }
960
+ >
961
+ <Image
962
+ accessibilityRole="image"
963
+ source={
964
+ Object {
965
+ "testUri": "../../../src/assets/icons/visibilityOff.png",
966
+ }
967
+ }
968
+ style={
969
+ Array [
970
+ Object {
971
+ "height": 16,
972
+ "resizeMode": "contain",
973
+ "tintColor": undefined,
974
+ "width": 16,
975
+ },
976
+ Array [
977
+ Object {
978
+ "tintColor": "hsl(210, 10%, 40%)",
979
+ },
980
+ undefined,
981
+ ],
982
+ ]
983
+ }
984
+ />
985
+ </View>
986
+ </View>
987
+ </View>
988
+ <View
989
+ style={
990
+ Array [
991
+ Object {
992
+ "alignItems": "flex-start",
993
+ },
994
+ Array [
995
+ Object {},
996
+ Object {
997
+ "paddingHorizontal": 12,
998
+ },
999
+ ],
1000
+ ]
1001
+ }
1002
+ testID="amplify__text-field-container"
1003
+ >
1004
+ <Text
1005
+ accessibilityLabel="Phone"
1006
+ accessibilityRole="text"
1007
+ style={
1008
+ Array [
1009
+ Object {
1010
+ "fontSize": 14,
1011
+ "fontWeight": "400",
1012
+ "lineHeight": 21,
1013
+ },
1014
+ Object {
1015
+ "color": "hsl(210, 50%, 10%)",
1016
+ },
1017
+ Array [
1018
+ Object {
1019
+ "color": "hsl(210, 25%, 25%)",
1020
+ "lineHeight": 21,
1021
+ "padding": 4,
1022
+ },
1023
+ Array [
1024
+ Object {},
1025
+ undefined,
1026
+ ],
1027
+ ],
1028
+ ]
1029
+ }
1030
+ >
1031
+ Phone
1032
+ </Text>
1033
+ <View
1034
+ accessible={true}
1035
+ style={
1036
+ Object {
1037
+ "alignItems": "center",
1038
+ "borderColor": "hsl(210, 8%, 55%)",
1039
+ "borderRadius": 4,
1040
+ "borderWidth": 1,
1041
+ "flexDirection": "row",
1042
+ "paddingHorizontal": 8,
1043
+ }
1044
+ }
1045
+ testID="amplify__text-field__input-container"
1046
+ >
1047
+ <TextInput
1048
+ accessibilityState={
1049
+ Object {
1050
+ "disabled": false,
1051
+ }
1052
+ }
1053
+ accessible={true}
1054
+ autoCapitalize="none"
1055
+ editable={true}
1056
+ keyboardType="phone-pad"
1057
+ onBlur={[Function]}
1058
+ onChangeText={[Function]}
1059
+ placeholder="Phone"
1060
+ placeholderTextColor="hsl(210, 10%, 40%)"
1061
+ selectionColor="hsl(210, 50%, 10%)"
1062
+ style={
1063
+ Array [
1064
+ Object {
1065
+ "color": "hsl(210, 50%, 10%)",
1066
+ "flexGrow": 1,
1067
+ "fontSize": 16,
1068
+ "paddingVertical": 12,
1069
+ },
1070
+ Array [
1071
+ Object {},
1072
+ Object {},
1073
+ ],
1074
+ ]
1075
+ }
1076
+ />
1077
+ </View>
1078
+ </View>
1079
+ </View>,
1080
+ <View
1081
+ accessibilityRole="button"
1082
+ accessible={true}
1083
+ collapsable={false}
1084
+ focusable={true}
1085
+ onBlur={[Function]}
1086
+ onClick={[Function]}
1087
+ onFocus={[Function]}
1088
+ onResponderGrant={[Function]}
1089
+ onResponderMove={[Function]}
1090
+ onResponderRelease={[Function]}
1091
+ onResponderTerminate={[Function]}
1092
+ onResponderTerminationRequest={[Function]}
1093
+ onStartShouldSetResponder={[Function]}
1094
+ style={
1095
+ Array [
1096
+ Object {
1097
+ "alignItems": "center",
1098
+ "backgroundColor": "transparent",
1099
+ "borderRadius": 4,
1100
+ "justifyContent": "center",
1101
+ "paddingHorizontal": 16,
1102
+ "paddingVertical": 12,
1103
+ },
1104
+ Object {
1105
+ "backgroundColor": "hsl(190, 95%, 30%)",
1106
+ },
1107
+ null,
1108
+ null,
1109
+ Object {
1110
+ "marginHorizontal": 16,
1111
+ "marginVertical": 12,
1112
+ },
1113
+ ]
1114
+ }
1115
+ >
1116
+ <Text
1117
+ style={
1118
+ Array [
1119
+ Object {
1120
+ "color": "hsl(0, 0%, 100%)",
1121
+ "fontSize": 16,
1122
+ "fontWeight": "700",
1123
+ "textAlign": "center",
1124
+ },
1125
+ Object {},
1126
+ ]
1127
+ }
1128
+ >
1129
+ Create Account
1130
+ </Text>
1131
+ </View>,
1132
+ ]
1133
+ `;
1134
+
1135
+ exports[`SignUp renders as expected when isPending is true 1`] = `
1136
+ Array [
1137
+ <Text
1138
+ accessibilityRole="header"
1139
+ style={
1140
+ Array [
1141
+ Object {
1142
+ "color": "hsl(210, 50%, 10%)",
1143
+ },
1144
+ Object {
1145
+ "fontSize": 24,
1146
+ "fontWeight": "300",
1147
+ "lineHeight": 36,
1148
+ },
1149
+ Object {
1150
+ "marginVertical": 12,
1151
+ "paddingHorizontal": 12,
1152
+ },
1153
+ ]
1154
+ }
1155
+ >
1156
+ Create Account
1157
+ </Text>,
1158
+ <View
1159
+ style={
1160
+ Object {
1161
+ "paddingBottom": 8,
1162
+ }
1163
+ }
1164
+ >
1165
+ <View
1166
+ style={
1167
+ Array [
1168
+ Object {
1169
+ "alignItems": "flex-start",
1170
+ },
1171
+ Object {
1172
+ "paddingHorizontal": 12,
1173
+ },
1174
+ ]
1175
+ }
1176
+ testID="amplify__text-field-container"
1177
+ >
1178
+ <Text
1179
+ accessibilityLabel="Username"
1180
+ accessibilityRole="text"
1181
+ style={
1182
+ Array [
1183
+ Object {
1184
+ "fontSize": 14,
1185
+ "fontWeight": "400",
1186
+ "lineHeight": 21,
1187
+ },
1188
+ Object {
1189
+ "color": "hsl(210, 50%, 10%)",
1190
+ },
1191
+ Array [
1192
+ Object {
1193
+ "color": "hsl(210, 25%, 25%)",
1194
+ "lineHeight": 21,
1195
+ "padding": 4,
1196
+ },
1197
+ undefined,
1198
+ ],
1199
+ ]
1200
+ }
1201
+ >
1202
+ Username
1203
+ </Text>
1204
+ <View
1205
+ accessible={true}
1206
+ style={
1207
+ Object {
1208
+ "alignItems": "center",
1209
+ "borderColor": "hsl(210, 8%, 55%)",
1210
+ "borderRadius": 4,
1211
+ "borderWidth": 1,
1212
+ "flexDirection": "row",
1213
+ "opacity": 0.6,
1214
+ "paddingHorizontal": 8,
1215
+ }
1216
+ }
1217
+ testID="amplify__text-field__input-container"
1218
+ >
1219
+ <TextInput
1220
+ accessibilityState={
1221
+ Object {
1222
+ "disabled": true,
1223
+ }
1224
+ }
1225
+ accessible={true}
1226
+ autoCapitalize="none"
1227
+ editable={false}
1228
+ onBlur={[Function]}
1229
+ onChangeText={[Function]}
1230
+ placeholder="Username"
1231
+ placeholderTextColor="hsl(210, 10%, 40%)"
1232
+ selectionColor="hsl(210, 50%, 10%)"
1233
+ style={
1234
+ Array [
1235
+ Object {
1236
+ "color": "hsl(210, 50%, 10%)",
1237
+ "flexGrow": 1,
1238
+ "fontSize": 16,
1239
+ "paddingVertical": 12,
1240
+ },
1241
+ Object {},
1242
+ ]
1243
+ }
1244
+ />
1245
+ </View>
1246
+ </View>
1247
+ <View
1248
+ style={
1249
+ Array [
1250
+ Object {
1251
+ "alignItems": "flex-start",
1252
+ },
1253
+ Array [
1254
+ Object {},
1255
+ Object {
1256
+ "paddingHorizontal": 12,
1257
+ },
1258
+ ],
1259
+ ]
1260
+ }
1261
+ testID="amplify__text-field-container"
1262
+ >
1263
+ <Text
1264
+ accessibilityLabel="Password"
1265
+ accessibilityRole="text"
1266
+ style={
1267
+ Array [
1268
+ Object {
1269
+ "fontSize": 14,
1270
+ "fontWeight": "400",
1271
+ "lineHeight": 21,
1272
+ },
1273
+ Object {
1274
+ "color": "hsl(210, 50%, 10%)",
1275
+ },
1276
+ Array [
1277
+ Object {
1278
+ "color": "hsl(210, 25%, 25%)",
1279
+ "lineHeight": 21,
1280
+ "padding": 4,
1281
+ },
1282
+ undefined,
1283
+ ],
1284
+ ]
1285
+ }
1286
+ >
1287
+ Password
1288
+ </Text>
1289
+ <View
1290
+ accessible={true}
1291
+ style={
1292
+ Object {
1293
+ "alignItems": "center",
1294
+ "borderColor": "hsl(210, 8%, 55%)",
1295
+ "borderRadius": 4,
1296
+ "borderWidth": 1,
1297
+ "flexDirection": "row",
1298
+ "opacity": 0.6,
1299
+ "paddingHorizontal": 8,
1300
+ }
1301
+ }
1302
+ testID="amplify__text-field__input-container"
1303
+ >
1304
+ <TextInput
1305
+ accessibilityState={
1306
+ Object {
1307
+ "disabled": true,
1308
+ }
1309
+ }
1310
+ accessible={true}
1311
+ autoCapitalize="none"
1312
+ editable={false}
1313
+ onBlur={[Function]}
1314
+ onChangeText={[Function]}
1315
+ placeholder="Password"
1316
+ placeholderTextColor="hsl(210, 10%, 40%)"
1317
+ secureTextEntry={true}
1318
+ selectionColor="hsl(210, 50%, 10%)"
1319
+ style={
1320
+ Array [
1321
+ Object {
1322
+ "color": "hsl(210, 50%, 10%)",
1323
+ "flexGrow": 1,
1324
+ "fontSize": 16,
1325
+ "paddingVertical": 12,
1326
+ },
1327
+ Object {},
1328
+ ]
1329
+ }
1330
+ />
1331
+ <View
1332
+ accessibilityLabel="Show password"
1333
+ accessibilityRole="button"
1334
+ accessibilityState={
1335
+ Object {
1336
+ "disabled": true,
1337
+ }
1338
+ }
1339
+ accessible={true}
1340
+ collapsable={false}
1341
+ focusable={true}
1342
+ onBlur={[Function]}
1343
+ onClick={[Function]}
1344
+ onFocus={[Function]}
1345
+ onResponderGrant={[Function]}
1346
+ onResponderMove={[Function]}
1347
+ onResponderRelease={[Function]}
1348
+ onResponderTerminate={[Function]}
1349
+ onResponderTerminationRequest={[Function]}
1350
+ onStartShouldSetResponder={[Function]}
1351
+ style={
1352
+ Array [
1353
+ Object {},
1354
+ Object {
1355
+ "opacity": 0.6,
1356
+ },
1357
+ null,
1358
+ undefined,
1359
+ ]
1360
+ }
1361
+ >
1362
+ <Image
1363
+ accessibilityRole="image"
1364
+ source={
1365
+ Object {
1366
+ "testUri": "../../../src/assets/icons/visibilityOff.png",
1367
+ }
1368
+ }
1369
+ style={
1370
+ Array [
1371
+ Object {
1372
+ "height": 16,
1373
+ "resizeMode": "contain",
1374
+ "tintColor": undefined,
1375
+ "width": 16,
1376
+ },
1377
+ Array [
1378
+ Object {
1379
+ "tintColor": "hsl(210, 10%, 40%)",
1380
+ },
1381
+ undefined,
1382
+ ],
1383
+ ]
1384
+ }
1385
+ />
1386
+ </View>
1387
+ </View>
1388
+ </View>
1389
+ <View
1390
+ style={
1391
+ Array [
1392
+ Object {
1393
+ "alignItems": "flex-start",
1394
+ },
1395
+ Array [
1396
+ Object {},
1397
+ Object {
1398
+ "paddingHorizontal": 12,
1399
+ },
1400
+ ],
1401
+ ]
1402
+ }
1403
+ testID="amplify__text-field-container"
1404
+ >
1405
+ <Text
1406
+ accessibilityLabel="Confirm Password"
1407
+ accessibilityRole="text"
1408
+ style={
1409
+ Array [
1410
+ Object {
1411
+ "fontSize": 14,
1412
+ "fontWeight": "400",
1413
+ "lineHeight": 21,
1414
+ },
1415
+ Object {
1416
+ "color": "hsl(210, 50%, 10%)",
1417
+ },
1418
+ Array [
1419
+ Object {
1420
+ "color": "hsl(210, 25%, 25%)",
1421
+ "lineHeight": 21,
1422
+ "padding": 4,
1423
+ },
1424
+ undefined,
1425
+ ],
1426
+ ]
1427
+ }
1428
+ >
1429
+ Confirm Password
1430
+ </Text>
1431
+ <View
1432
+ accessible={true}
1433
+ style={
1434
+ Object {
1435
+ "alignItems": "center",
1436
+ "borderColor": "hsl(210, 8%, 55%)",
1437
+ "borderRadius": 4,
1438
+ "borderWidth": 1,
1439
+ "flexDirection": "row",
1440
+ "opacity": 0.6,
1441
+ "paddingHorizontal": 8,
1442
+ }
1443
+ }
1444
+ testID="amplify__text-field__input-container"
1445
+ >
1446
+ <TextInput
1447
+ accessibilityState={
1448
+ Object {
1449
+ "disabled": true,
1450
+ }
1451
+ }
1452
+ accessible={true}
1453
+ autoCapitalize="none"
1454
+ editable={false}
1455
+ onBlur={[Function]}
1456
+ onChangeText={[Function]}
1457
+ placeholder="Confirm Password"
1458
+ placeholderTextColor="hsl(210, 10%, 40%)"
1459
+ secureTextEntry={true}
1460
+ selectionColor="hsl(210, 50%, 10%)"
1461
+ style={
1462
+ Array [
1463
+ Object {
1464
+ "color": "hsl(210, 50%, 10%)",
1465
+ "flexGrow": 1,
1466
+ "fontSize": 16,
1467
+ "paddingVertical": 12,
1468
+ },
1469
+ Object {},
1470
+ ]
1471
+ }
1472
+ />
1473
+ <View
1474
+ accessibilityLabel="Show password"
1475
+ accessibilityRole="button"
1476
+ accessibilityState={
1477
+ Object {
1478
+ "disabled": true,
1479
+ }
1480
+ }
1481
+ accessible={true}
1482
+ collapsable={false}
1483
+ focusable={true}
1484
+ onBlur={[Function]}
1485
+ onClick={[Function]}
1486
+ onFocus={[Function]}
1487
+ onResponderGrant={[Function]}
1488
+ onResponderMove={[Function]}
1489
+ onResponderRelease={[Function]}
1490
+ onResponderTerminate={[Function]}
1491
+ onResponderTerminationRequest={[Function]}
1492
+ onStartShouldSetResponder={[Function]}
1493
+ style={
1494
+ Array [
1495
+ Object {},
1496
+ Object {
1497
+ "opacity": 0.6,
1498
+ },
1499
+ null,
1500
+ undefined,
1501
+ ]
1502
+ }
1503
+ >
1504
+ <Image
1505
+ accessibilityRole="image"
1506
+ source={
1507
+ Object {
1508
+ "testUri": "../../../src/assets/icons/visibilityOff.png",
1509
+ }
1510
+ }
1511
+ style={
1512
+ Array [
1513
+ Object {
1514
+ "height": 16,
1515
+ "resizeMode": "contain",
1516
+ "tintColor": undefined,
1517
+ "width": 16,
1518
+ },
1519
+ Array [
1520
+ Object {
1521
+ "tintColor": "hsl(210, 10%, 40%)",
1522
+ },
1523
+ undefined,
1524
+ ],
1525
+ ]
1526
+ }
1527
+ />
1528
+ </View>
1529
+ </View>
1530
+ </View>
1531
+ <View
1532
+ style={
1533
+ Array [
1534
+ Object {
1535
+ "alignItems": "flex-start",
1536
+ },
1537
+ Array [
1538
+ Object {},
1539
+ Object {
1540
+ "paddingHorizontal": 12,
1541
+ },
1542
+ ],
1543
+ ]
1544
+ }
1545
+ testID="amplify__text-field-container"
1546
+ >
1547
+ <Text
1548
+ accessibilityLabel="Phone"
1549
+ accessibilityRole="text"
1550
+ style={
1551
+ Array [
1552
+ Object {
1553
+ "fontSize": 14,
1554
+ "fontWeight": "400",
1555
+ "lineHeight": 21,
1556
+ },
1557
+ Object {
1558
+ "color": "hsl(210, 50%, 10%)",
1559
+ },
1560
+ Array [
1561
+ Object {
1562
+ "color": "hsl(210, 25%, 25%)",
1563
+ "lineHeight": 21,
1564
+ "padding": 4,
1565
+ },
1566
+ Array [
1567
+ Object {},
1568
+ undefined,
1569
+ ],
1570
+ ],
1571
+ ]
1572
+ }
1573
+ >
1574
+ Phone
1575
+ </Text>
1576
+ <View
1577
+ accessible={true}
1578
+ style={
1579
+ Object {
1580
+ "alignItems": "center",
1581
+ "borderColor": "hsl(210, 8%, 55%)",
1582
+ "borderRadius": 4,
1583
+ "borderWidth": 1,
1584
+ "flexDirection": "row",
1585
+ "opacity": 0.6,
1586
+ "paddingHorizontal": 8,
1587
+ }
1588
+ }
1589
+ testID="amplify__text-field__input-container"
1590
+ >
1591
+ <TextInput
1592
+ accessibilityState={
1593
+ Object {
1594
+ "disabled": true,
1595
+ }
1596
+ }
1597
+ accessible={true}
1598
+ autoCapitalize="none"
1599
+ editable={false}
1600
+ keyboardType="phone-pad"
1601
+ onBlur={[Function]}
1602
+ onChangeText={[Function]}
1603
+ placeholder="Phone"
1604
+ placeholderTextColor="hsl(210, 10%, 40%)"
1605
+ selectionColor="hsl(210, 50%, 10%)"
1606
+ style={
1607
+ Array [
1608
+ Object {
1609
+ "color": "hsl(210, 50%, 10%)",
1610
+ "flexGrow": 1,
1611
+ "fontSize": 16,
1612
+ "paddingVertical": 12,
1613
+ },
1614
+ Array [
1615
+ Object {},
1616
+ Object {},
1617
+ ],
1618
+ ]
1619
+ }
1620
+ />
1621
+ </View>
1622
+ </View>
1623
+ </View>,
1624
+ <View
1625
+ accessibilityRole="button"
1626
+ accessible={true}
1627
+ collapsable={false}
1628
+ focusable={true}
1629
+ onBlur={[Function]}
1630
+ onClick={[Function]}
1631
+ onFocus={[Function]}
1632
+ onResponderGrant={[Function]}
1633
+ onResponderMove={[Function]}
1634
+ onResponderRelease={[Function]}
1635
+ onResponderTerminate={[Function]}
1636
+ onResponderTerminationRequest={[Function]}
1637
+ onStartShouldSetResponder={[Function]}
1638
+ style={
1639
+ Array [
1640
+ Object {
1641
+ "alignItems": "center",
1642
+ "backgroundColor": "transparent",
1643
+ "borderRadius": 4,
1644
+ "justifyContent": "center",
1645
+ "paddingHorizontal": 16,
1646
+ "paddingVertical": 12,
1647
+ },
1648
+ Object {
1649
+ "backgroundColor": "hsl(190, 95%, 30%)",
1650
+ },
1651
+ null,
1652
+ null,
1653
+ Object {
1654
+ "marginHorizontal": 16,
1655
+ "marginVertical": 12,
1656
+ },
1657
+ ]
1658
+ }
1659
+ >
1660
+ <Text
1661
+ style={
1662
+ Array [
1663
+ Object {
1664
+ "color": "hsl(0, 0%, 100%)",
1665
+ "fontSize": 16,
1666
+ "fontWeight": "700",
1667
+ "textAlign": "center",
1668
+ },
1669
+ Object {},
1670
+ ]
1671
+ }
1672
+ >
1673
+ Creating Account
1674
+ </Text>
1675
+ </View>,
1676
+ <View
1677
+ style={
1678
+ Object {
1679
+ "flexDirection": "row",
1680
+ "flexWrap": "wrap",
1681
+ "justifyContent": "center",
1682
+ }
1683
+ }
1684
+ >
1685
+ <View
1686
+ accessibilityRole="button"
1687
+ accessible={true}
1688
+ collapsable={false}
1689
+ focusable={true}
1690
+ onBlur={[Function]}
1691
+ onClick={[Function]}
1692
+ onFocus={[Function]}
1693
+ onResponderGrant={[Function]}
1694
+ onResponderMove={[Function]}
1695
+ onResponderRelease={[Function]}
1696
+ onResponderTerminate={[Function]}
1697
+ onResponderTerminationRequest={[Function]}
1698
+ onStartShouldSetResponder={[Function]}
1699
+ style={
1700
+ Array [
1701
+ Object {
1702
+ "alignItems": "center",
1703
+ "backgroundColor": "transparent",
1704
+ "borderRadius": 4,
1705
+ "justifyContent": "center",
1706
+ "paddingHorizontal": 16,
1707
+ "paddingVertical": 12,
1708
+ },
1709
+ Object {},
1710
+ null,
1711
+ null,
1712
+ Object {
1713
+ "marginVertical": 8,
1714
+ "minWidth": "50%",
1715
+ },
1716
+ ]
1717
+ }
1718
+ >
1719
+ <Text
1720
+ style={
1721
+ Array [
1722
+ Object {
1723
+ "color": "hsl(190, 95%, 30%)",
1724
+ "fontSize": 16,
1725
+ "fontWeight": "700",
1726
+ "textAlign": "center",
1727
+ },
1728
+ undefined,
1729
+ ]
1730
+ }
1731
+ >
1732
+ Sign In
1733
+ </Text>
1734
+ </View>
1735
+ </View>,
1736
+ ]
1737
+ `;
1738
+
1739
+ exports[`SignUp renders as expected with errors 1`] = `
1740
+ Array [
1741
+ <Text
1742
+ accessibilityRole="header"
1743
+ style={
1744
+ Array [
1745
+ Object {
1746
+ "color": "hsl(210, 50%, 10%)",
1747
+ },
1748
+ Object {
1749
+ "fontSize": 24,
1750
+ "fontWeight": "300",
1751
+ "lineHeight": 36,
1752
+ },
1753
+ Object {
1754
+ "marginVertical": 12,
1755
+ "paddingHorizontal": 12,
1756
+ },
1757
+ ]
1758
+ }
1759
+ >
1760
+ Create Account
1761
+ </Text>,
1762
+ <View
1763
+ style={
1764
+ Object {
1765
+ "paddingBottom": 8,
1766
+ }
1767
+ }
1768
+ >
1769
+ <View
1770
+ style={
1771
+ Array [
1772
+ Object {
1773
+ "alignItems": "flex-start",
1774
+ },
1775
+ Object {
1776
+ "paddingHorizontal": 12,
1777
+ },
1778
+ ]
1779
+ }
1780
+ testID="amplify__text-field-container"
1781
+ >
1782
+ <Text
1783
+ accessibilityLabel="Username"
1784
+ accessibilityRole="text"
1785
+ style={
1786
+ Array [
1787
+ Object {
1788
+ "fontSize": 14,
1789
+ "fontWeight": "400",
1790
+ "lineHeight": 21,
1791
+ },
1792
+ Object {
1793
+ "color": "hsl(210, 50%, 10%)",
1794
+ },
1795
+ Array [
1796
+ Object {
1797
+ "color": "hsl(210, 25%, 25%)",
1798
+ "lineHeight": 21,
1799
+ "padding": 4,
1800
+ },
1801
+ undefined,
1802
+ ],
1803
+ ]
1804
+ }
1805
+ >
1806
+ Username
1807
+ </Text>
1808
+ <View
1809
+ accessible={true}
1810
+ style={
1811
+ Object {
1812
+ "alignItems": "center",
1813
+ "borderColor": "hsl(210, 8%, 55%)",
1814
+ "borderRadius": 4,
1815
+ "borderWidth": 1,
1816
+ "flexDirection": "row",
1817
+ "paddingHorizontal": 8,
1818
+ }
1819
+ }
1820
+ testID="amplify__text-field__input-container"
1821
+ >
1822
+ <TextInput
1823
+ accessibilityState={
1824
+ Object {
1825
+ "disabled": false,
1826
+ }
1827
+ }
1828
+ accessible={true}
1829
+ autoCapitalize="none"
1830
+ editable={true}
1831
+ onBlur={[Function]}
1832
+ onChangeText={[Function]}
1833
+ placeholder="Username"
1834
+ placeholderTextColor="hsl(210, 10%, 40%)"
1835
+ selectionColor="hsl(210, 50%, 10%)"
1836
+ style={
1837
+ Array [
1838
+ Object {
1839
+ "color": "hsl(210, 50%, 10%)",
1840
+ "flexGrow": 1,
1841
+ "fontSize": 16,
1842
+ "paddingVertical": 12,
1843
+ },
1844
+ Object {},
1845
+ ]
1846
+ }
1847
+ />
1848
+ </View>
1849
+ </View>
1850
+ <View
1851
+ style={
1852
+ Array [
1853
+ Object {
1854
+ "alignItems": "flex-start",
1855
+ },
1856
+ Array [
1857
+ Object {},
1858
+ Object {
1859
+ "paddingHorizontal": 12,
1860
+ },
1861
+ ],
1862
+ ]
1863
+ }
1864
+ testID="amplify__text-field-container"
1865
+ >
1866
+ <Text
1867
+ accessibilityLabel="Password"
1868
+ accessibilityRole="text"
1869
+ style={
1870
+ Array [
1871
+ Object {
1872
+ "fontSize": 14,
1873
+ "fontWeight": "400",
1874
+ "lineHeight": 21,
1875
+ },
1876
+ Object {
1877
+ "color": "hsl(210, 50%, 10%)",
1878
+ },
1879
+ Array [
1880
+ Object {
1881
+ "color": "hsl(210, 25%, 25%)",
1882
+ "lineHeight": 21,
1883
+ "padding": 4,
1884
+ },
1885
+ undefined,
1886
+ ],
1887
+ ]
1888
+ }
1889
+ >
1890
+ Password
1891
+ </Text>
1892
+ <View
1893
+ accessible={true}
1894
+ style={
1895
+ Object {
1896
+ "alignItems": "center",
1897
+ "borderColor": "hsl(210, 8%, 55%)",
1898
+ "borderRadius": 4,
1899
+ "borderWidth": 1,
1900
+ "flexDirection": "row",
1901
+ "paddingHorizontal": 8,
1902
+ }
1903
+ }
1904
+ testID="amplify__text-field__input-container"
1905
+ >
1906
+ <TextInput
1907
+ accessibilityState={
1908
+ Object {
1909
+ "disabled": false,
1910
+ }
1911
+ }
1912
+ accessible={true}
1913
+ autoCapitalize="none"
1914
+ editable={true}
1915
+ onBlur={[Function]}
1916
+ onChangeText={[Function]}
1917
+ placeholder="Password"
1918
+ placeholderTextColor="hsl(210, 10%, 40%)"
1919
+ secureTextEntry={true}
1920
+ selectionColor="hsl(210, 50%, 10%)"
1921
+ style={
1922
+ Array [
1923
+ Object {
1924
+ "color": "hsl(210, 50%, 10%)",
1925
+ "flexGrow": 1,
1926
+ "fontSize": 16,
1927
+ "paddingVertical": 12,
1928
+ },
1929
+ Object {},
1930
+ ]
1931
+ }
1932
+ />
1933
+ <View
1934
+ accessibilityLabel="Show password"
1935
+ accessibilityRole="button"
1936
+ accessibilityState={
1937
+ Object {
1938
+ "disabled": false,
1939
+ }
1940
+ }
1941
+ accessible={true}
1942
+ collapsable={false}
1943
+ focusable={true}
1944
+ onBlur={[Function]}
1945
+ onClick={[Function]}
1946
+ onFocus={[Function]}
1947
+ onResponderGrant={[Function]}
1948
+ onResponderMove={[Function]}
1949
+ onResponderRelease={[Function]}
1950
+ onResponderTerminate={[Function]}
1951
+ onResponderTerminationRequest={[Function]}
1952
+ onStartShouldSetResponder={[Function]}
1953
+ style={
1954
+ Array [
1955
+ Object {},
1956
+ null,
1957
+ null,
1958
+ undefined,
1959
+ ]
1960
+ }
1961
+ >
1962
+ <Image
1963
+ accessibilityRole="image"
1964
+ source={
1965
+ Object {
1966
+ "testUri": "../../../src/assets/icons/visibilityOff.png",
1967
+ }
1968
+ }
1969
+ style={
1970
+ Array [
1971
+ Object {
1972
+ "height": 16,
1973
+ "resizeMode": "contain",
1974
+ "tintColor": undefined,
1975
+ "width": 16,
1976
+ },
1977
+ Array [
1978
+ Object {
1979
+ "tintColor": "hsl(210, 10%, 40%)",
1980
+ },
1981
+ undefined,
1982
+ ],
1983
+ ]
1984
+ }
1985
+ />
1986
+ </View>
1987
+ </View>
1988
+ </View>
1989
+ <View
1990
+ style={
1991
+ Array [
1992
+ Object {
1993
+ "alignItems": "flex-start",
1994
+ },
1995
+ Array [
1996
+ Object {},
1997
+ Object {
1998
+ "paddingHorizontal": 12,
1999
+ },
2000
+ ],
2001
+ ]
2002
+ }
2003
+ testID="amplify__text-field-container"
2004
+ >
2005
+ <Text
2006
+ accessibilityLabel="Confirm Password"
2007
+ accessibilityRole="text"
2008
+ style={
2009
+ Array [
2010
+ Object {
2011
+ "fontSize": 14,
2012
+ "fontWeight": "400",
2013
+ "lineHeight": 21,
2014
+ },
2015
+ Object {
2016
+ "color": "hsl(210, 50%, 10%)",
2017
+ },
2018
+ Array [
2019
+ Object {
2020
+ "color": "hsl(210, 25%, 25%)",
2021
+ "lineHeight": 21,
2022
+ "padding": 4,
2023
+ },
2024
+ undefined,
2025
+ ],
2026
+ ]
2027
+ }
2028
+ >
2029
+ Confirm Password
2030
+ </Text>
2031
+ <View
2032
+ accessible={true}
2033
+ style={
2034
+ Object {
2035
+ "alignItems": "center",
2036
+ "borderColor": "hsl(210, 8%, 55%)",
2037
+ "borderRadius": 4,
2038
+ "borderWidth": 1,
2039
+ "flexDirection": "row",
2040
+ "paddingHorizontal": 8,
2041
+ }
2042
+ }
2043
+ testID="amplify__text-field__input-container"
2044
+ >
2045
+ <TextInput
2046
+ accessibilityState={
2047
+ Object {
2048
+ "disabled": false,
2049
+ }
2050
+ }
2051
+ accessible={true}
2052
+ autoCapitalize="none"
2053
+ editable={true}
2054
+ onBlur={[Function]}
2055
+ onChangeText={[Function]}
2056
+ placeholder="Confirm Password"
2057
+ placeholderTextColor="hsl(210, 10%, 40%)"
2058
+ secureTextEntry={true}
2059
+ selectionColor="hsl(210, 50%, 10%)"
2060
+ style={
2061
+ Array [
2062
+ Object {
2063
+ "color": "hsl(210, 50%, 10%)",
2064
+ "flexGrow": 1,
2065
+ "fontSize": 16,
2066
+ "paddingVertical": 12,
2067
+ },
2068
+ Object {},
2069
+ ]
2070
+ }
2071
+ />
2072
+ <View
2073
+ accessibilityLabel="Show password"
2074
+ accessibilityRole="button"
2075
+ accessibilityState={
2076
+ Object {
2077
+ "disabled": false,
2078
+ }
2079
+ }
2080
+ accessible={true}
2081
+ collapsable={false}
2082
+ focusable={true}
2083
+ onBlur={[Function]}
2084
+ onClick={[Function]}
2085
+ onFocus={[Function]}
2086
+ onResponderGrant={[Function]}
2087
+ onResponderMove={[Function]}
2088
+ onResponderRelease={[Function]}
2089
+ onResponderTerminate={[Function]}
2090
+ onResponderTerminationRequest={[Function]}
2091
+ onStartShouldSetResponder={[Function]}
2092
+ style={
2093
+ Array [
2094
+ Object {},
2095
+ null,
2096
+ null,
2097
+ undefined,
2098
+ ]
2099
+ }
2100
+ >
2101
+ <Image
2102
+ accessibilityRole="image"
2103
+ source={
2104
+ Object {
2105
+ "testUri": "../../../src/assets/icons/visibilityOff.png",
2106
+ }
2107
+ }
2108
+ style={
2109
+ Array [
2110
+ Object {
2111
+ "height": 16,
2112
+ "resizeMode": "contain",
2113
+ "tintColor": undefined,
2114
+ "width": 16,
2115
+ },
2116
+ Array [
2117
+ Object {
2118
+ "tintColor": "hsl(210, 10%, 40%)",
2119
+ },
2120
+ undefined,
2121
+ ],
2122
+ ]
2123
+ }
2124
+ />
2125
+ </View>
2126
+ </View>
2127
+ </View>
2128
+ <View
2129
+ style={
2130
+ Array [
2131
+ Object {
2132
+ "alignItems": "flex-start",
2133
+ },
2134
+ Array [
2135
+ Object {},
2136
+ Object {
2137
+ "paddingHorizontal": 12,
2138
+ },
2139
+ ],
2140
+ ]
2141
+ }
2142
+ testID="amplify__text-field-container"
2143
+ >
2144
+ <Text
2145
+ accessibilityLabel="Phone"
2146
+ accessibilityRole="text"
2147
+ style={
2148
+ Array [
2149
+ Object {
2150
+ "fontSize": 14,
2151
+ "fontWeight": "400",
2152
+ "lineHeight": 21,
2153
+ },
2154
+ Object {
2155
+ "color": "hsl(210, 50%, 10%)",
2156
+ },
2157
+ Array [
2158
+ Object {
2159
+ "color": "hsl(210, 25%, 25%)",
2160
+ "lineHeight": 21,
2161
+ "padding": 4,
2162
+ },
2163
+ Array [
2164
+ Object {},
2165
+ undefined,
2166
+ ],
2167
+ ],
2168
+ ]
2169
+ }
2170
+ >
2171
+ Phone
2172
+ </Text>
2173
+ <View
2174
+ accessible={true}
2175
+ style={
2176
+ Object {
2177
+ "alignItems": "center",
2178
+ "borderColor": "hsl(210, 8%, 55%)",
2179
+ "borderRadius": 4,
2180
+ "borderWidth": 1,
2181
+ "flexDirection": "row",
2182
+ "paddingHorizontal": 8,
2183
+ }
2184
+ }
2185
+ testID="amplify__text-field__input-container"
2186
+ >
2187
+ <TextInput
2188
+ accessibilityState={
2189
+ Object {
2190
+ "disabled": false,
2191
+ }
2192
+ }
2193
+ accessible={true}
2194
+ autoCapitalize="none"
2195
+ editable={true}
2196
+ keyboardType="phone-pad"
2197
+ onBlur={[Function]}
2198
+ onChangeText={[Function]}
2199
+ placeholder="Phone"
2200
+ placeholderTextColor="hsl(210, 10%, 40%)"
2201
+ selectionColor="hsl(210, 50%, 10%)"
2202
+ style={
2203
+ Array [
2204
+ Object {
2205
+ "color": "hsl(210, 50%, 10%)",
2206
+ "flexGrow": 1,
2207
+ "fontSize": 16,
2208
+ "paddingVertical": 12,
2209
+ },
2210
+ Array [
2211
+ Object {},
2212
+ Object {},
2213
+ ],
2214
+ ]
2215
+ }
2216
+ />
2217
+ </View>
2218
+ </View>
2219
+ </View>,
2220
+ <View
2221
+ accessibilityRole="alert"
2222
+ style={
2223
+ Array [
2224
+ Object {
2225
+ "alignItems": "center",
2226
+ "backgroundColor": "hsl(0, 75%, 85%)",
2227
+ "flexDirection": "row",
2228
+ "paddingHorizontal": 8,
2229
+ "paddingVertical": 32,
2230
+ },
2231
+ Object {
2232
+ "marginVertical": 12,
2233
+ },
2234
+ ]
2235
+ }
2236
+ >
2237
+ <Image
2238
+ accessibilityRole="image"
2239
+ source={
2240
+ Object {
2241
+ "testUri": "../../../src/assets/icons/error.png",
2242
+ }
2243
+ }
2244
+ style={
2245
+ Array [
2246
+ Object {
2247
+ "height": 20,
2248
+ "resizeMode": "contain",
2249
+ "tintColor": undefined,
2250
+ "width": 20,
2251
+ },
2252
+ Object {
2253
+ "margin": 8,
2254
+ },
2255
+ ]
2256
+ }
2257
+ />
2258
+ <Text
2259
+ style={
2260
+ Array [
2261
+ Object {
2262
+ "color": "hsl(0, 100%, 20%)",
2263
+ "flex": 1,
2264
+ "paddingHorizontal": 8,
2265
+ },
2266
+ Object {},
2267
+ ]
2268
+ }
2269
+ >
2270
+ Something went wrong
2271
+ </Text>
2272
+ </View>,
2273
+ <View
2274
+ accessibilityRole="button"
2275
+ accessible={true}
2276
+ collapsable={false}
2277
+ focusable={true}
2278
+ onBlur={[Function]}
2279
+ onClick={[Function]}
2280
+ onFocus={[Function]}
2281
+ onResponderGrant={[Function]}
2282
+ onResponderMove={[Function]}
2283
+ onResponderRelease={[Function]}
2284
+ onResponderTerminate={[Function]}
2285
+ onResponderTerminationRequest={[Function]}
2286
+ onStartShouldSetResponder={[Function]}
2287
+ style={
2288
+ Array [
2289
+ Object {
2290
+ "alignItems": "center",
2291
+ "backgroundColor": "transparent",
2292
+ "borderRadius": 4,
2293
+ "justifyContent": "center",
2294
+ "paddingHorizontal": 16,
2295
+ "paddingVertical": 12,
2296
+ },
2297
+ Object {
2298
+ "backgroundColor": "hsl(190, 95%, 30%)",
2299
+ },
2300
+ null,
2301
+ null,
2302
+ Object {
2303
+ "marginHorizontal": 16,
2304
+ "marginVertical": 12,
2305
+ },
2306
+ ]
2307
+ }
2308
+ >
2309
+ <Text
2310
+ style={
2311
+ Array [
2312
+ Object {
2313
+ "color": "hsl(0, 0%, 100%)",
2314
+ "fontSize": 16,
2315
+ "fontWeight": "700",
2316
+ "textAlign": "center",
2317
+ },
2318
+ Object {},
2319
+ ]
2320
+ }
2321
+ >
2322
+ Create Account
2323
+ </Text>
2324
+ </View>,
2325
+ <View
2326
+ style={
2327
+ Object {
2328
+ "flexDirection": "row",
2329
+ "flexWrap": "wrap",
2330
+ "justifyContent": "center",
2331
+ }
2332
+ }
2333
+ >
2334
+ <View
2335
+ accessibilityRole="button"
2336
+ accessible={true}
2337
+ collapsable={false}
2338
+ focusable={true}
2339
+ onBlur={[Function]}
2340
+ onClick={[Function]}
2341
+ onFocus={[Function]}
2342
+ onResponderGrant={[Function]}
2343
+ onResponderMove={[Function]}
2344
+ onResponderRelease={[Function]}
2345
+ onResponderTerminate={[Function]}
2346
+ onResponderTerminationRequest={[Function]}
2347
+ onStartShouldSetResponder={[Function]}
2348
+ style={
2349
+ Array [
2350
+ Object {
2351
+ "alignItems": "center",
2352
+ "backgroundColor": "transparent",
2353
+ "borderRadius": 4,
2354
+ "justifyContent": "center",
2355
+ "paddingHorizontal": 16,
2356
+ "paddingVertical": 12,
2357
+ },
2358
+ Object {},
2359
+ null,
2360
+ null,
2361
+ Object {
2362
+ "marginVertical": 8,
2363
+ "minWidth": "50%",
2364
+ },
2365
+ ]
2366
+ }
2367
+ >
2368
+ <Text
2369
+ style={
2370
+ Array [
2371
+ Object {
2372
+ "color": "hsl(190, 95%, 30%)",
2373
+ "fontSize": 16,
2374
+ "fontWeight": "700",
2375
+ "textAlign": "center",
2376
+ },
2377
+ undefined,
2378
+ ]
2379
+ }
2380
+ >
2381
+ Sign In
2382
+ </Text>
2383
+ </View>
2384
+ </View>,
2385
+ ]
2386
+ `;
2387
+
2388
+ exports[`SignUp renders as expected with validationErrors 1`] = `
2389
+ Array [
2390
+ <Text
2391
+ accessibilityRole="header"
2392
+ style={
2393
+ Array [
2394
+ Object {
2395
+ "color": "hsl(210, 50%, 10%)",
2396
+ },
2397
+ Object {
2398
+ "fontSize": 24,
2399
+ "fontWeight": "300",
2400
+ "lineHeight": 36,
2401
+ },
2402
+ Object {
2403
+ "marginVertical": 12,
2404
+ "paddingHorizontal": 12,
2405
+ },
2406
+ ]
2407
+ }
2408
+ >
2409
+ Create Account
2410
+ </Text>,
2411
+ <View
2412
+ style={
2413
+ Object {
2414
+ "paddingBottom": 8,
2415
+ }
2416
+ }
2417
+ >
2418
+ <View
2419
+ style={
2420
+ Array [
2421
+ Object {
2422
+ "alignItems": "flex-start",
2423
+ },
2424
+ Object {
2425
+ "paddingHorizontal": 12,
2426
+ },
2427
+ ]
2428
+ }
2429
+ testID="amplify__text-field-container"
2430
+ >
2431
+ <Text
2432
+ accessibilityLabel="Username"
2433
+ accessibilityRole="text"
2434
+ style={
2435
+ Array [
2436
+ Object {
2437
+ "fontSize": 14,
2438
+ "fontWeight": "400",
2439
+ "lineHeight": 21,
2440
+ },
2441
+ Object {
2442
+ "color": "hsl(210, 50%, 10%)",
2443
+ },
2444
+ Array [
2445
+ Object {
2446
+ "color": "hsl(210, 25%, 25%)",
2447
+ "lineHeight": 21,
2448
+ "padding": 4,
2449
+ },
2450
+ undefined,
2451
+ ],
2452
+ ]
2453
+ }
2454
+ >
2455
+ Username
2456
+ </Text>
2457
+ <View
2458
+ accessible={true}
2459
+ style={
2460
+ Object {
2461
+ "alignItems": "center",
2462
+ "borderColor": "hsl(210, 8%, 55%)",
2463
+ "borderRadius": 4,
2464
+ "borderWidth": 1,
2465
+ "flexDirection": "row",
2466
+ "opacity": 0.6,
2467
+ "paddingHorizontal": 8,
2468
+ }
2469
+ }
2470
+ testID="amplify__text-field__input-container"
2471
+ >
2472
+ <TextInput
2473
+ accessibilityState={
2474
+ Object {
2475
+ "disabled": true,
2476
+ }
2477
+ }
2478
+ accessible={true}
2479
+ autoCapitalize="none"
2480
+ editable={false}
2481
+ onBlur={[Function]}
2482
+ onChangeText={[Function]}
2483
+ placeholder="Username"
2484
+ placeholderTextColor="hsl(210, 10%, 40%)"
2485
+ selectionColor="hsl(210, 50%, 10%)"
2486
+ style={
2487
+ Array [
2488
+ Object {
2489
+ "color": "hsl(210, 50%, 10%)",
2490
+ "flexGrow": 1,
2491
+ "fontSize": 16,
2492
+ "paddingVertical": 12,
2493
+ },
2494
+ Object {},
2495
+ ]
2496
+ }
2497
+ />
2498
+ </View>
2499
+ </View>
2500
+ <View
2501
+ style={
2502
+ Object {
2503
+ "paddingHorizontal": 16,
2504
+ "paddingVertical": 8,
2505
+ }
2506
+ }
2507
+ >
2508
+ <Text
2509
+ style={
2510
+ Object {
2511
+ "color": "hsl(0, 100%, 20%)",
2512
+ "paddingVertical": 1,
2513
+ }
2514
+ }
2515
+ >
2516
+ error
2517
+ </Text>
2518
+ <Text
2519
+ style={
2520
+ Object {
2521
+ "color": "hsl(0, 100%, 20%)",
2522
+ "paddingVertical": 1,
2523
+ }
2524
+ }
2525
+ >
2526
+ another error
2527
+ </Text>
2528
+ </View>
2529
+ <View
2530
+ style={
2531
+ Array [
2532
+ Object {
2533
+ "alignItems": "flex-start",
2534
+ },
2535
+ Array [
2536
+ Object {},
2537
+ Object {
2538
+ "paddingHorizontal": 12,
2539
+ },
2540
+ ],
2541
+ ]
2542
+ }
2543
+ testID="amplify__text-field-container"
2544
+ >
2545
+ <Text
2546
+ accessibilityLabel="Password"
2547
+ accessibilityRole="text"
2548
+ style={
2549
+ Array [
2550
+ Object {
2551
+ "fontSize": 14,
2552
+ "fontWeight": "400",
2553
+ "lineHeight": 21,
2554
+ },
2555
+ Object {
2556
+ "color": "hsl(210, 50%, 10%)",
2557
+ },
2558
+ Array [
2559
+ Object {
2560
+ "color": "hsl(210, 25%, 25%)",
2561
+ "lineHeight": 21,
2562
+ "padding": 4,
2563
+ },
2564
+ undefined,
2565
+ ],
2566
+ ]
2567
+ }
2568
+ >
2569
+ Password
2570
+ </Text>
2571
+ <View
2572
+ accessible={true}
2573
+ style={
2574
+ Object {
2575
+ "alignItems": "center",
2576
+ "borderColor": "hsl(210, 8%, 55%)",
2577
+ "borderRadius": 4,
2578
+ "borderWidth": 1,
2579
+ "flexDirection": "row",
2580
+ "opacity": 0.6,
2581
+ "paddingHorizontal": 8,
2582
+ }
2583
+ }
2584
+ testID="amplify__text-field__input-container"
2585
+ >
2586
+ <TextInput
2587
+ accessibilityState={
2588
+ Object {
2589
+ "disabled": true,
2590
+ }
2591
+ }
2592
+ accessible={true}
2593
+ autoCapitalize="none"
2594
+ editable={false}
2595
+ onBlur={[Function]}
2596
+ onChangeText={[Function]}
2597
+ placeholder="Password"
2598
+ placeholderTextColor="hsl(210, 10%, 40%)"
2599
+ secureTextEntry={true}
2600
+ selectionColor="hsl(210, 50%, 10%)"
2601
+ style={
2602
+ Array [
2603
+ Object {
2604
+ "color": "hsl(210, 50%, 10%)",
2605
+ "flexGrow": 1,
2606
+ "fontSize": 16,
2607
+ "paddingVertical": 12,
2608
+ },
2609
+ Object {},
2610
+ ]
2611
+ }
2612
+ />
2613
+ <View
2614
+ accessibilityLabel="Show password"
2615
+ accessibilityRole="button"
2616
+ accessibilityState={
2617
+ Object {
2618
+ "disabled": true,
2619
+ }
2620
+ }
2621
+ accessible={true}
2622
+ collapsable={false}
2623
+ focusable={true}
2624
+ onBlur={[Function]}
2625
+ onClick={[Function]}
2626
+ onFocus={[Function]}
2627
+ onResponderGrant={[Function]}
2628
+ onResponderMove={[Function]}
2629
+ onResponderRelease={[Function]}
2630
+ onResponderTerminate={[Function]}
2631
+ onResponderTerminationRequest={[Function]}
2632
+ onStartShouldSetResponder={[Function]}
2633
+ style={
2634
+ Array [
2635
+ Object {},
2636
+ Object {
2637
+ "opacity": 0.6,
2638
+ },
2639
+ null,
2640
+ undefined,
2641
+ ]
2642
+ }
2643
+ >
2644
+ <Image
2645
+ accessibilityRole="image"
2646
+ source={
2647
+ Object {
2648
+ "testUri": "../../../src/assets/icons/visibilityOff.png",
2649
+ }
2650
+ }
2651
+ style={
2652
+ Array [
2653
+ Object {
2654
+ "height": 16,
2655
+ "resizeMode": "contain",
2656
+ "tintColor": undefined,
2657
+ "width": 16,
2658
+ },
2659
+ Array [
2660
+ Object {
2661
+ "tintColor": "hsl(210, 10%, 40%)",
2662
+ },
2663
+ undefined,
2664
+ ],
2665
+ ]
2666
+ }
2667
+ />
2668
+ </View>
2669
+ </View>
2670
+ </View>
2671
+ <View
2672
+ style={
2673
+ Array [
2674
+ Object {
2675
+ "alignItems": "flex-start",
2676
+ },
2677
+ Array [
2678
+ Object {},
2679
+ Object {
2680
+ "paddingHorizontal": 12,
2681
+ },
2682
+ ],
2683
+ ]
2684
+ }
2685
+ testID="amplify__text-field-container"
2686
+ >
2687
+ <Text
2688
+ accessibilityLabel="Confirm Password"
2689
+ accessibilityRole="text"
2690
+ style={
2691
+ Array [
2692
+ Object {
2693
+ "fontSize": 14,
2694
+ "fontWeight": "400",
2695
+ "lineHeight": 21,
2696
+ },
2697
+ Object {
2698
+ "color": "hsl(210, 50%, 10%)",
2699
+ },
2700
+ Array [
2701
+ Object {
2702
+ "color": "hsl(210, 25%, 25%)",
2703
+ "lineHeight": 21,
2704
+ "padding": 4,
2705
+ },
2706
+ undefined,
2707
+ ],
2708
+ ]
2709
+ }
2710
+ >
2711
+ Confirm Password
2712
+ </Text>
2713
+ <View
2714
+ accessible={true}
2715
+ style={
2716
+ Object {
2717
+ "alignItems": "center",
2718
+ "borderColor": "hsl(210, 8%, 55%)",
2719
+ "borderRadius": 4,
2720
+ "borderWidth": 1,
2721
+ "flexDirection": "row",
2722
+ "opacity": 0.6,
2723
+ "paddingHorizontal": 8,
2724
+ }
2725
+ }
2726
+ testID="amplify__text-field__input-container"
2727
+ >
2728
+ <TextInput
2729
+ accessibilityState={
2730
+ Object {
2731
+ "disabled": true,
2732
+ }
2733
+ }
2734
+ accessible={true}
2735
+ autoCapitalize="none"
2736
+ editable={false}
2737
+ onBlur={[Function]}
2738
+ onChangeText={[Function]}
2739
+ placeholder="Confirm Password"
2740
+ placeholderTextColor="hsl(210, 10%, 40%)"
2741
+ secureTextEntry={true}
2742
+ selectionColor="hsl(210, 50%, 10%)"
2743
+ style={
2744
+ Array [
2745
+ Object {
2746
+ "color": "hsl(210, 50%, 10%)",
2747
+ "flexGrow": 1,
2748
+ "fontSize": 16,
2749
+ "paddingVertical": 12,
2750
+ },
2751
+ Object {},
2752
+ ]
2753
+ }
2754
+ />
2755
+ <View
2756
+ accessibilityLabel="Show password"
2757
+ accessibilityRole="button"
2758
+ accessibilityState={
2759
+ Object {
2760
+ "disabled": true,
2761
+ }
2762
+ }
2763
+ accessible={true}
2764
+ collapsable={false}
2765
+ focusable={true}
2766
+ onBlur={[Function]}
2767
+ onClick={[Function]}
2768
+ onFocus={[Function]}
2769
+ onResponderGrant={[Function]}
2770
+ onResponderMove={[Function]}
2771
+ onResponderRelease={[Function]}
2772
+ onResponderTerminate={[Function]}
2773
+ onResponderTerminationRequest={[Function]}
2774
+ onStartShouldSetResponder={[Function]}
2775
+ style={
2776
+ Array [
2777
+ Object {},
2778
+ Object {
2779
+ "opacity": 0.6,
2780
+ },
2781
+ null,
2782
+ undefined,
2783
+ ]
2784
+ }
2785
+ >
2786
+ <Image
2787
+ accessibilityRole="image"
2788
+ source={
2789
+ Object {
2790
+ "testUri": "../../../src/assets/icons/visibilityOff.png",
2791
+ }
2792
+ }
2793
+ style={
2794
+ Array [
2795
+ Object {
2796
+ "height": 16,
2797
+ "resizeMode": "contain",
2798
+ "tintColor": undefined,
2799
+ "width": 16,
2800
+ },
2801
+ Array [
2802
+ Object {
2803
+ "tintColor": "hsl(210, 10%, 40%)",
2804
+ },
2805
+ undefined,
2806
+ ],
2807
+ ]
2808
+ }
2809
+ />
2810
+ </View>
2811
+ </View>
2812
+ </View>
2813
+ <View
2814
+ style={
2815
+ Array [
2816
+ Object {
2817
+ "alignItems": "flex-start",
2818
+ },
2819
+ Array [
2820
+ Object {},
2821
+ Object {
2822
+ "paddingHorizontal": 12,
2823
+ },
2824
+ ],
2825
+ ]
2826
+ }
2827
+ testID="amplify__text-field-container"
2828
+ >
2829
+ <Text
2830
+ accessibilityLabel="Phone"
2831
+ accessibilityRole="text"
2832
+ style={
2833
+ Array [
2834
+ Object {
2835
+ "fontSize": 14,
2836
+ "fontWeight": "400",
2837
+ "lineHeight": 21,
2838
+ },
2839
+ Object {
2840
+ "color": "hsl(210, 50%, 10%)",
2841
+ },
2842
+ Array [
2843
+ Object {
2844
+ "color": "hsl(210, 25%, 25%)",
2845
+ "lineHeight": 21,
2846
+ "padding": 4,
2847
+ },
2848
+ Array [
2849
+ Object {},
2850
+ undefined,
2851
+ ],
2852
+ ],
2853
+ ]
2854
+ }
2855
+ >
2856
+ Phone
2857
+ </Text>
2858
+ <View
2859
+ accessible={true}
2860
+ style={
2861
+ Object {
2862
+ "alignItems": "center",
2863
+ "borderColor": "hsl(210, 8%, 55%)",
2864
+ "borderRadius": 4,
2865
+ "borderWidth": 1,
2866
+ "flexDirection": "row",
2867
+ "opacity": 0.6,
2868
+ "paddingHorizontal": 8,
2869
+ }
2870
+ }
2871
+ testID="amplify__text-field__input-container"
2872
+ >
2873
+ <TextInput
2874
+ accessibilityState={
2875
+ Object {
2876
+ "disabled": true,
2877
+ }
2878
+ }
2879
+ accessible={true}
2880
+ autoCapitalize="none"
2881
+ editable={false}
2882
+ keyboardType="phone-pad"
2883
+ onBlur={[Function]}
2884
+ onChangeText={[Function]}
2885
+ placeholder="Phone"
2886
+ placeholderTextColor="hsl(210, 10%, 40%)"
2887
+ selectionColor="hsl(210, 50%, 10%)"
2888
+ style={
2889
+ Array [
2890
+ Object {
2891
+ "color": "hsl(210, 50%, 10%)",
2892
+ "flexGrow": 1,
2893
+ "fontSize": 16,
2894
+ "paddingVertical": 12,
2895
+ },
2896
+ Array [
2897
+ Object {},
2898
+ Object {},
2899
+ ],
2900
+ ]
2901
+ }
2902
+ />
2903
+ </View>
2904
+ </View>
2905
+ </View>,
2906
+ <View
2907
+ accessibilityRole="button"
2908
+ accessible={true}
2909
+ collapsable={false}
2910
+ focusable={true}
2911
+ onBlur={[Function]}
2912
+ onClick={[Function]}
2913
+ onFocus={[Function]}
2914
+ onResponderGrant={[Function]}
2915
+ onResponderMove={[Function]}
2916
+ onResponderRelease={[Function]}
2917
+ onResponderTerminate={[Function]}
2918
+ onResponderTerminationRequest={[Function]}
2919
+ onStartShouldSetResponder={[Function]}
2920
+ style={
2921
+ Array [
2922
+ Object {
2923
+ "alignItems": "center",
2924
+ "backgroundColor": "transparent",
2925
+ "borderRadius": 4,
2926
+ "justifyContent": "center",
2927
+ "paddingHorizontal": 16,
2928
+ "paddingVertical": 12,
2929
+ },
2930
+ Object {
2931
+ "backgroundColor": "hsl(190, 95%, 30%)",
2932
+ },
2933
+ null,
2934
+ null,
2935
+ Object {
2936
+ "marginHorizontal": 16,
2937
+ "marginVertical": 12,
2938
+ },
2939
+ ]
2940
+ }
2941
+ >
2942
+ <Text
2943
+ style={
2944
+ Array [
2945
+ Object {
2946
+ "color": "hsl(0, 0%, 100%)",
2947
+ "fontSize": 16,
2948
+ "fontWeight": "700",
2949
+ "textAlign": "center",
2950
+ },
2951
+ Object {},
2952
+ ]
2953
+ }
2954
+ >
2955
+ Creating Account
2956
+ </Text>
2957
+ </View>,
2958
+ <View
2959
+ style={
2960
+ Object {
2961
+ "flexDirection": "row",
2962
+ "flexWrap": "wrap",
2963
+ "justifyContent": "center",
2964
+ }
2965
+ }
2966
+ >
2967
+ <View
2968
+ accessibilityRole="button"
2969
+ accessible={true}
2970
+ collapsable={false}
2971
+ focusable={true}
2972
+ onBlur={[Function]}
2973
+ onClick={[Function]}
2974
+ onFocus={[Function]}
2975
+ onResponderGrant={[Function]}
2976
+ onResponderMove={[Function]}
2977
+ onResponderRelease={[Function]}
2978
+ onResponderTerminate={[Function]}
2979
+ onResponderTerminationRequest={[Function]}
2980
+ onStartShouldSetResponder={[Function]}
2981
+ style={
2982
+ Array [
2983
+ Object {
2984
+ "alignItems": "center",
2985
+ "backgroundColor": "transparent",
2986
+ "borderRadius": 4,
2987
+ "justifyContent": "center",
2988
+ "paddingHorizontal": 16,
2989
+ "paddingVertical": 12,
2990
+ },
2991
+ Object {},
2992
+ null,
2993
+ null,
2994
+ Object {
2995
+ "marginVertical": 8,
2996
+ "minWidth": "50%",
2997
+ },
2998
+ ]
2999
+ }
3000
+ >
3001
+ <Text
3002
+ style={
3003
+ Array [
3004
+ Object {
3005
+ "color": "hsl(190, 95%, 30%)",
3006
+ "fontSize": 16,
3007
+ "fontWeight": "700",
3008
+ "textAlign": "center",
3009
+ },
3010
+ undefined,
3011
+ ]
3012
+ }
3013
+ >
3014
+ Sign In
3015
+ </Text>
3016
+ </View>
3017
+ </View>,
3018
+ ]
3019
+ `;