@aws-amplify/ui-react-native 1.2.22 → 1.2.24

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