@aws-amplify/ui-react-native 1.2.21 → 1.2.23

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