@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,1281 +0,0 @@
1
- // Jest Snapshot v1, https://goo.gl/fbAQLP
2
-
3
- exports[`SignIn 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
- Sign In
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
- <View
265
- accessibilityRole="button"
266
- accessibilityState={
267
- Object {
268
- "disabled": false,
269
- }
270
- }
271
- accessible={true}
272
- collapsable={false}
273
- focusable={true}
274
- onBlur={[Function]}
275
- onClick={[Function]}
276
- onFocus={[Function]}
277
- onResponderGrant={[Function]}
278
- onResponderMove={[Function]}
279
- onResponderRelease={[Function]}
280
- onResponderTerminate={[Function]}
281
- onResponderTerminationRequest={[Function]}
282
- onStartShouldSetResponder={[Function]}
283
- style={
284
- Array [
285
- Object {
286
- "alignItems": "center",
287
- "backgroundColor": "hsl(190, 95%, 30%)",
288
- "borderRadius": 4,
289
- "justifyContent": "center",
290
- "paddingHorizontal": 16,
291
- "paddingVertical": 12,
292
- },
293
- undefined,
294
- Object {
295
- "margin": 12,
296
- },
297
- ]
298
- }
299
- testID="amplify__button"
300
- >
301
- <Text
302
- style={
303
- Array [
304
- Object {
305
- "color": "hsl(0, 0%, 100%)",
306
- "fontSize": 16,
307
- "fontWeight": "700",
308
- "textAlign": "center",
309
- },
310
- Object {},
311
- ]
312
- }
313
- >
314
- Sign in
315
- </Text>
316
- </View>,
317
- <View
318
- style={
319
- Object {
320
- "flexDirection": "row",
321
- "flexWrap": "wrap",
322
- "justifyContent": "center",
323
- }
324
- }
325
- >
326
- <View
327
- accessibilityRole="button"
328
- accessible={true}
329
- collapsable={false}
330
- focusable={true}
331
- onBlur={[Function]}
332
- onClick={[Function]}
333
- onFocus={[Function]}
334
- onResponderGrant={[Function]}
335
- onResponderMove={[Function]}
336
- onResponderRelease={[Function]}
337
- onResponderTerminate={[Function]}
338
- onResponderTerminationRequest={[Function]}
339
- onStartShouldSetResponder={[Function]}
340
- style={
341
- Array [
342
- Object {
343
- "alignItems": "center",
344
- "backgroundColor": "transparent",
345
- "borderRadius": 4,
346
- "justifyContent": "center",
347
- "paddingHorizontal": 16,
348
- "paddingVertical": 12,
349
- },
350
- undefined,
351
- Object {
352
- "marginVertical": 8,
353
- "minWidth": "50%",
354
- },
355
- ]
356
- }
357
- >
358
- <Text
359
- style={
360
- Array [
361
- Object {
362
- "color": "hsl(190, 95%, 30%)",
363
- "fontSize": 16,
364
- "fontWeight": "700",
365
- "textAlign": "center",
366
- },
367
- undefined,
368
- ]
369
- }
370
- >
371
- Forgot Password?
372
- </Text>
373
- </View>
374
- <View
375
- accessibilityRole="button"
376
- accessible={true}
377
- collapsable={false}
378
- focusable={true}
379
- onBlur={[Function]}
380
- onClick={[Function]}
381
- onFocus={[Function]}
382
- onResponderGrant={[Function]}
383
- onResponderMove={[Function]}
384
- onResponderRelease={[Function]}
385
- onResponderTerminate={[Function]}
386
- onResponderTerminationRequest={[Function]}
387
- onStartShouldSetResponder={[Function]}
388
- style={
389
- Array [
390
- Object {
391
- "alignItems": "center",
392
- "backgroundColor": "transparent",
393
- "borderRadius": 4,
394
- "justifyContent": "center",
395
- "paddingHorizontal": 16,
396
- "paddingVertical": 12,
397
- },
398
- undefined,
399
- Object {
400
- "marginVertical": 8,
401
- "minWidth": "50%",
402
- },
403
- ]
404
- }
405
- >
406
- <Text
407
- style={
408
- Array [
409
- Object {
410
- "color": "hsl(190, 95%, 30%)",
411
- "fontSize": 16,
412
- "fontWeight": "700",
413
- "textAlign": "center",
414
- },
415
- undefined,
416
- ]
417
- }
418
- >
419
- Create Account
420
- </Text>
421
- </View>
422
- </View>,
423
- ]
424
- `;
425
-
426
- exports[`SignIn renders as expected when hideSignUp is true 1`] = `
427
- Array [
428
- <Text
429
- accessibilityRole="header"
430
- style={
431
- Array [
432
- Object {
433
- "color": "hsl(210, 50%, 10%)",
434
- },
435
- Object {
436
- "fontSize": 24,
437
- "fontWeight": "500",
438
- "lineHeight": 36,
439
- },
440
- Object {
441
- "marginVertical": 12,
442
- "paddingHorizontal": 12,
443
- },
444
- ]
445
- }
446
- >
447
- Sign In
448
- </Text>,
449
- <View
450
- style={
451
- Object {
452
- "paddingBottom": 8,
453
- }
454
- }
455
- >
456
- <View
457
- style={
458
- Array [
459
- Object {
460
- "alignItems": "flex-start",
461
- "marginBottom": 8,
462
- },
463
- Object {
464
- "paddingHorizontal": 12,
465
- },
466
- ]
467
- }
468
- testID="amplify__text-field-container"
469
- >
470
- <Text
471
- accessibilityLabel="Username"
472
- accessibilityRole="text"
473
- style={
474
- Array [
475
- Object {
476
- "fontSize": 16,
477
- "fontWeight": "400",
478
- "lineHeight": 24,
479
- },
480
- Object {
481
- "color": "hsl(210, 50%, 10%)",
482
- },
483
- Array [
484
- Object {
485
- "color": "hsl(210, 25%, 25%)",
486
- "paddingVertical": 8,
487
- },
488
- undefined,
489
- ],
490
- ]
491
- }
492
- >
493
- Username
494
- </Text>
495
- <View
496
- accessible={true}
497
- style={
498
- Object {
499
- "alignItems": "center",
500
- "borderColor": "hsl(210, 10%, 58%)",
501
- "borderRadius": 4,
502
- "borderWidth": 1,
503
- "flexDirection": "row",
504
- "paddingHorizontal": 8,
505
- }
506
- }
507
- testID="amplify__text-field__input-container"
508
- >
509
- <TextInput
510
- accessibilityState={
511
- Object {
512
- "disabled": false,
513
- }
514
- }
515
- accessible={true}
516
- autoCapitalize="none"
517
- editable={true}
518
- onBlur={[Function]}
519
- onChangeText={[Function]}
520
- placeholder="Username"
521
- placeholderTextColor="hsl(210, 10%, 40%)"
522
- style={
523
- Array [
524
- Object {
525
- "color": "hsl(210, 50%, 10%)",
526
- "flexGrow": 1,
527
- "fontSize": 16,
528
- "paddingHorizontal": 4,
529
- "paddingVertical": 12,
530
- },
531
- Object {},
532
- ]
533
- }
534
- />
535
- </View>
536
- </View>
537
- <View
538
- style={
539
- Array [
540
- Object {
541
- "alignItems": "flex-start",
542
- "marginBottom": 8,
543
- },
544
- Array [
545
- Object {},
546
- Object {
547
- "paddingHorizontal": 12,
548
- },
549
- ],
550
- ]
551
- }
552
- testID="amplify__text-field-container"
553
- >
554
- <Text
555
- accessibilityLabel="Password"
556
- accessibilityRole="text"
557
- style={
558
- Array [
559
- Object {
560
- "fontSize": 16,
561
- "fontWeight": "400",
562
- "lineHeight": 24,
563
- },
564
- Object {
565
- "color": "hsl(210, 50%, 10%)",
566
- },
567
- Array [
568
- Object {
569
- "color": "hsl(210, 25%, 25%)",
570
- "paddingVertical": 8,
571
- },
572
- undefined,
573
- ],
574
- ]
575
- }
576
- >
577
- Password
578
- </Text>
579
- <View
580
- accessible={true}
581
- style={
582
- Object {
583
- "alignItems": "center",
584
- "borderColor": "hsl(210, 10%, 58%)",
585
- "borderRadius": 4,
586
- "borderWidth": 1,
587
- "flexDirection": "row",
588
- "paddingHorizontal": 8,
589
- }
590
- }
591
- testID="amplify__text-field__input-container"
592
- >
593
- <TextInput
594
- accessibilityState={
595
- Object {
596
- "disabled": false,
597
- }
598
- }
599
- accessible={true}
600
- autoCapitalize="none"
601
- editable={true}
602
- onBlur={[Function]}
603
- onChangeText={[Function]}
604
- placeholder="Password"
605
- placeholderTextColor="hsl(210, 10%, 40%)"
606
- secureTextEntry={true}
607
- style={
608
- Array [
609
- Object {
610
- "color": "hsl(210, 50%, 10%)",
611
- "flexGrow": 1,
612
- "fontSize": 16,
613
- "paddingHorizontal": 4,
614
- "paddingVertical": 12,
615
- },
616
- Object {},
617
- ]
618
- }
619
- />
620
- <View
621
- accessibilityLabel="Show password"
622
- accessibilityRole="button"
623
- accessibilityState={
624
- Object {
625
- "disabled": false,
626
- }
627
- }
628
- accessible={true}
629
- collapsable={false}
630
- focusable={true}
631
- onBlur={[Function]}
632
- onClick={[Function]}
633
- onFocus={[Function]}
634
- onResponderGrant={[Function]}
635
- onResponderMove={[Function]}
636
- onResponderRelease={[Function]}
637
- onResponderTerminate={[Function]}
638
- onResponderTerminationRequest={[Function]}
639
- onStartShouldSetResponder={[Function]}
640
- style={
641
- Array [
642
- Object {},
643
- undefined,
644
- undefined,
645
- ]
646
- }
647
- >
648
- <Image
649
- accessibilityRole="image"
650
- source={
651
- Object {
652
- "testUri": "../../../src/assets/icons/visibilityOff.png",
653
- }
654
- }
655
- style={
656
- Array [
657
- Object {
658
- "height": 16,
659
- "resizeMode": "contain",
660
- "tintColor": undefined,
661
- "width": 16,
662
- },
663
- Array [
664
- Object {
665
- "tintColor": "hsl(210, 10%, 40%)",
666
- },
667
- undefined,
668
- ],
669
- ]
670
- }
671
- />
672
- </View>
673
- </View>
674
- </View>
675
- <TextInput
676
- accessibilityElementsHidden={true}
677
- pointerEvents="none"
678
- style={
679
- Object {
680
- "backgroundColor": "transparent",
681
- "height": 0.1,
682
- "width": 0.1,
683
- }
684
- }
685
- />
686
- </View>,
687
- <View
688
- accessibilityRole="button"
689
- accessibilityState={
690
- Object {
691
- "disabled": false,
692
- }
693
- }
694
- accessible={true}
695
- collapsable={false}
696
- focusable={true}
697
- onBlur={[Function]}
698
- onClick={[Function]}
699
- onFocus={[Function]}
700
- onResponderGrant={[Function]}
701
- onResponderMove={[Function]}
702
- onResponderRelease={[Function]}
703
- onResponderTerminate={[Function]}
704
- onResponderTerminationRequest={[Function]}
705
- onStartShouldSetResponder={[Function]}
706
- style={
707
- Array [
708
- Object {
709
- "alignItems": "center",
710
- "backgroundColor": "hsl(190, 95%, 30%)",
711
- "borderRadius": 4,
712
- "justifyContent": "center",
713
- "paddingHorizontal": 16,
714
- "paddingVertical": 12,
715
- },
716
- undefined,
717
- Object {
718
- "margin": 12,
719
- },
720
- ]
721
- }
722
- testID="amplify__button"
723
- >
724
- <Text
725
- style={
726
- Array [
727
- Object {
728
- "color": "hsl(0, 0%, 100%)",
729
- "fontSize": 16,
730
- "fontWeight": "700",
731
- "textAlign": "center",
732
- },
733
- Object {},
734
- ]
735
- }
736
- >
737
- Sign in
738
- </Text>
739
- </View>,
740
- <View
741
- style={
742
- Object {
743
- "flexDirection": "row",
744
- "flexWrap": "wrap",
745
- "justifyContent": "center",
746
- }
747
- }
748
- >
749
- <View
750
- accessibilityRole="button"
751
- accessible={true}
752
- collapsable={false}
753
- focusable={true}
754
- onBlur={[Function]}
755
- onClick={[Function]}
756
- onFocus={[Function]}
757
- onResponderGrant={[Function]}
758
- onResponderMove={[Function]}
759
- onResponderRelease={[Function]}
760
- onResponderTerminate={[Function]}
761
- onResponderTerminationRequest={[Function]}
762
- onStartShouldSetResponder={[Function]}
763
- style={
764
- Array [
765
- Object {
766
- "alignItems": "center",
767
- "backgroundColor": "transparent",
768
- "borderRadius": 4,
769
- "justifyContent": "center",
770
- "paddingHorizontal": 16,
771
- "paddingVertical": 12,
772
- },
773
- undefined,
774
- Object {
775
- "marginVertical": 8,
776
- "minWidth": "50%",
777
- },
778
- ]
779
- }
780
- >
781
- <Text
782
- style={
783
- Array [
784
- Object {
785
- "color": "hsl(190, 95%, 30%)",
786
- "fontSize": 16,
787
- "fontWeight": "700",
788
- "textAlign": "center",
789
- },
790
- undefined,
791
- ]
792
- }
793
- >
794
- Forgot Password?
795
- </Text>
796
- </View>
797
- </View>,
798
- ]
799
- `;
800
-
801
- exports[`SignIn renders as expected with an error 1`] = `
802
- Array [
803
- <Text
804
- accessibilityRole="header"
805
- style={
806
- Array [
807
- Object {
808
- "color": "hsl(210, 50%, 10%)",
809
- },
810
- Object {
811
- "fontSize": 24,
812
- "fontWeight": "500",
813
- "lineHeight": 36,
814
- },
815
- Object {
816
- "marginVertical": 12,
817
- "paddingHorizontal": 12,
818
- },
819
- ]
820
- }
821
- >
822
- Sign In
823
- </Text>,
824
- <View
825
- style={
826
- Object {
827
- "paddingBottom": 8,
828
- }
829
- }
830
- >
831
- <View
832
- style={
833
- Array [
834
- Object {
835
- "alignItems": "flex-start",
836
- "marginBottom": 8,
837
- },
838
- Object {
839
- "paddingHorizontal": 12,
840
- },
841
- ]
842
- }
843
- testID="amplify__text-field-container"
844
- >
845
- <Text
846
- accessibilityLabel="Username"
847
- accessibilityRole="text"
848
- style={
849
- Array [
850
- Object {
851
- "fontSize": 16,
852
- "fontWeight": "400",
853
- "lineHeight": 24,
854
- },
855
- Object {
856
- "color": "hsl(210, 50%, 10%)",
857
- },
858
- Array [
859
- Object {
860
- "color": "hsl(210, 25%, 25%)",
861
- "paddingVertical": 8,
862
- },
863
- undefined,
864
- ],
865
- ]
866
- }
867
- >
868
- Username
869
- </Text>
870
- <View
871
- accessible={true}
872
- style={
873
- Object {
874
- "alignItems": "center",
875
- "borderColor": "hsl(210, 10%, 58%)",
876
- "borderRadius": 4,
877
- "borderWidth": 1,
878
- "flexDirection": "row",
879
- "paddingHorizontal": 8,
880
- }
881
- }
882
- testID="amplify__text-field__input-container"
883
- >
884
- <TextInput
885
- accessibilityState={
886
- Object {
887
- "disabled": false,
888
- }
889
- }
890
- accessible={true}
891
- autoCapitalize="none"
892
- editable={true}
893
- onBlur={[Function]}
894
- onChangeText={[Function]}
895
- placeholder="Username"
896
- placeholderTextColor="hsl(210, 10%, 40%)"
897
- style={
898
- Array [
899
- Object {
900
- "color": "hsl(210, 50%, 10%)",
901
- "flexGrow": 1,
902
- "fontSize": 16,
903
- "paddingHorizontal": 4,
904
- "paddingVertical": 12,
905
- },
906
- Object {},
907
- ]
908
- }
909
- />
910
- </View>
911
- </View>
912
- <View
913
- style={
914
- Array [
915
- Object {
916
- "alignItems": "flex-start",
917
- "marginBottom": 8,
918
- },
919
- Array [
920
- Object {},
921
- Object {
922
- "paddingHorizontal": 12,
923
- },
924
- ],
925
- ]
926
- }
927
- testID="amplify__text-field-container"
928
- >
929
- <Text
930
- accessibilityLabel="Password"
931
- accessibilityRole="text"
932
- style={
933
- Array [
934
- Object {
935
- "fontSize": 16,
936
- "fontWeight": "400",
937
- "lineHeight": 24,
938
- },
939
- Object {
940
- "color": "hsl(210, 50%, 10%)",
941
- },
942
- Array [
943
- Object {
944
- "color": "hsl(210, 25%, 25%)",
945
- "paddingVertical": 8,
946
- },
947
- undefined,
948
- ],
949
- ]
950
- }
951
- >
952
- Password
953
- </Text>
954
- <View
955
- accessible={true}
956
- style={
957
- Object {
958
- "alignItems": "center",
959
- "borderColor": "hsl(210, 10%, 58%)",
960
- "borderRadius": 4,
961
- "borderWidth": 1,
962
- "flexDirection": "row",
963
- "paddingHorizontal": 8,
964
- }
965
- }
966
- testID="amplify__text-field__input-container"
967
- >
968
- <TextInput
969
- accessibilityState={
970
- Object {
971
- "disabled": false,
972
- }
973
- }
974
- accessible={true}
975
- autoCapitalize="none"
976
- editable={true}
977
- onBlur={[Function]}
978
- onChangeText={[Function]}
979
- placeholder="Password"
980
- placeholderTextColor="hsl(210, 10%, 40%)"
981
- secureTextEntry={true}
982
- style={
983
- Array [
984
- Object {
985
- "color": "hsl(210, 50%, 10%)",
986
- "flexGrow": 1,
987
- "fontSize": 16,
988
- "paddingHorizontal": 4,
989
- "paddingVertical": 12,
990
- },
991
- Object {},
992
- ]
993
- }
994
- />
995
- <View
996
- accessibilityLabel="Show password"
997
- accessibilityRole="button"
998
- accessibilityState={
999
- Object {
1000
- "disabled": false,
1001
- }
1002
- }
1003
- accessible={true}
1004
- collapsable={false}
1005
- focusable={true}
1006
- onBlur={[Function]}
1007
- onClick={[Function]}
1008
- onFocus={[Function]}
1009
- onResponderGrant={[Function]}
1010
- onResponderMove={[Function]}
1011
- onResponderRelease={[Function]}
1012
- onResponderTerminate={[Function]}
1013
- onResponderTerminationRequest={[Function]}
1014
- onStartShouldSetResponder={[Function]}
1015
- style={
1016
- Array [
1017
- Object {},
1018
- undefined,
1019
- undefined,
1020
- ]
1021
- }
1022
- >
1023
- <Image
1024
- accessibilityRole="image"
1025
- source={
1026
- Object {
1027
- "testUri": "../../../src/assets/icons/visibilityOff.png",
1028
- }
1029
- }
1030
- style={
1031
- Array [
1032
- Object {
1033
- "height": 16,
1034
- "resizeMode": "contain",
1035
- "tintColor": undefined,
1036
- "width": 16,
1037
- },
1038
- Array [
1039
- Object {
1040
- "tintColor": "hsl(210, 10%, 40%)",
1041
- },
1042
- undefined,
1043
- ],
1044
- ]
1045
- }
1046
- />
1047
- </View>
1048
- </View>
1049
- </View>
1050
- <TextInput
1051
- accessibilityElementsHidden={true}
1052
- pointerEvents="none"
1053
- style={
1054
- Object {
1055
- "backgroundColor": "transparent",
1056
- "height": 0.1,
1057
- "width": 0.1,
1058
- }
1059
- }
1060
- />
1061
- </View>,
1062
- <View
1063
- accessibilityRole="alert"
1064
- style={
1065
- Array [
1066
- Object {
1067
- "alignItems": "center",
1068
- "backgroundColor": "hsl(0, 75%, 85%)",
1069
- "flexDirection": "row",
1070
- "paddingHorizontal": 8,
1071
- "paddingVertical": 12,
1072
- },
1073
- Object {
1074
- "marginHorizontal": 12,
1075
- },
1076
- ]
1077
- }
1078
- testID="amplify__error-message"
1079
- >
1080
- <Image
1081
- accessibilityRole="image"
1082
- source={
1083
- Object {
1084
- "testUri": "../../../src/assets/icons/error.png",
1085
- }
1086
- }
1087
- style={
1088
- Array [
1089
- Object {
1090
- "height": 20,
1091
- "resizeMode": "contain",
1092
- "tintColor": undefined,
1093
- "width": 20,
1094
- },
1095
- Array [
1096
- Object {
1097
- "margin": 8,
1098
- "tintColor": "hsl(0, 100%, 20%)",
1099
- },
1100
- Object {},
1101
- ],
1102
- ]
1103
- }
1104
- />
1105
- <Text
1106
- style={
1107
- Array [
1108
- Object {
1109
- "color": "hsl(0, 100%, 20%)",
1110
- "flex": 1,
1111
- "fontSize": 16,
1112
- "paddingHorizontal": 8,
1113
- },
1114
- Object {},
1115
- ]
1116
- }
1117
- >
1118
- An error!
1119
- </Text>
1120
- </View>,
1121
- <View
1122
- accessibilityRole="button"
1123
- accessibilityState={
1124
- Object {
1125
- "disabled": false,
1126
- }
1127
- }
1128
- accessible={true}
1129
- collapsable={false}
1130
- focusable={true}
1131
- onBlur={[Function]}
1132
- onClick={[Function]}
1133
- onFocus={[Function]}
1134
- onResponderGrant={[Function]}
1135
- onResponderMove={[Function]}
1136
- onResponderRelease={[Function]}
1137
- onResponderTerminate={[Function]}
1138
- onResponderTerminationRequest={[Function]}
1139
- onStartShouldSetResponder={[Function]}
1140
- style={
1141
- Array [
1142
- Object {
1143
- "alignItems": "center",
1144
- "backgroundColor": "hsl(190, 95%, 30%)",
1145
- "borderRadius": 4,
1146
- "justifyContent": "center",
1147
- "paddingHorizontal": 16,
1148
- "paddingVertical": 12,
1149
- },
1150
- undefined,
1151
- Object {
1152
- "margin": 12,
1153
- },
1154
- ]
1155
- }
1156
- testID="amplify__button"
1157
- >
1158
- <Text
1159
- style={
1160
- Array [
1161
- Object {
1162
- "color": "hsl(0, 0%, 100%)",
1163
- "fontSize": 16,
1164
- "fontWeight": "700",
1165
- "textAlign": "center",
1166
- },
1167
- Object {},
1168
- ]
1169
- }
1170
- >
1171
- Sign in
1172
- </Text>
1173
- </View>,
1174
- <View
1175
- style={
1176
- Object {
1177
- "flexDirection": "row",
1178
- "flexWrap": "wrap",
1179
- "justifyContent": "center",
1180
- }
1181
- }
1182
- >
1183
- <View
1184
- accessibilityRole="button"
1185
- accessible={true}
1186
- collapsable={false}
1187
- focusable={true}
1188
- onBlur={[Function]}
1189
- onClick={[Function]}
1190
- onFocus={[Function]}
1191
- onResponderGrant={[Function]}
1192
- onResponderMove={[Function]}
1193
- onResponderRelease={[Function]}
1194
- onResponderTerminate={[Function]}
1195
- onResponderTerminationRequest={[Function]}
1196
- onStartShouldSetResponder={[Function]}
1197
- style={
1198
- Array [
1199
- Object {
1200
- "alignItems": "center",
1201
- "backgroundColor": "transparent",
1202
- "borderRadius": 4,
1203
- "justifyContent": "center",
1204
- "paddingHorizontal": 16,
1205
- "paddingVertical": 12,
1206
- },
1207
- undefined,
1208
- Object {
1209
- "marginVertical": 8,
1210
- "minWidth": "50%",
1211
- },
1212
- ]
1213
- }
1214
- >
1215
- <Text
1216
- style={
1217
- Array [
1218
- Object {
1219
- "color": "hsl(190, 95%, 30%)",
1220
- "fontSize": 16,
1221
- "fontWeight": "700",
1222
- "textAlign": "center",
1223
- },
1224
- undefined,
1225
- ]
1226
- }
1227
- >
1228
- Forgot Password?
1229
- </Text>
1230
- </View>
1231
- <View
1232
- accessibilityRole="button"
1233
- accessible={true}
1234
- collapsable={false}
1235
- focusable={true}
1236
- onBlur={[Function]}
1237
- onClick={[Function]}
1238
- onFocus={[Function]}
1239
- onResponderGrant={[Function]}
1240
- onResponderMove={[Function]}
1241
- onResponderRelease={[Function]}
1242
- onResponderTerminate={[Function]}
1243
- onResponderTerminationRequest={[Function]}
1244
- onStartShouldSetResponder={[Function]}
1245
- style={
1246
- Array [
1247
- Object {
1248
- "alignItems": "center",
1249
- "backgroundColor": "transparent",
1250
- "borderRadius": 4,
1251
- "justifyContent": "center",
1252
- "paddingHorizontal": 16,
1253
- "paddingVertical": 12,
1254
- },
1255
- undefined,
1256
- Object {
1257
- "marginVertical": 8,
1258
- "minWidth": "50%",
1259
- },
1260
- ]
1261
- }
1262
- >
1263
- <Text
1264
- style={
1265
- Array [
1266
- Object {
1267
- "color": "hsl(190, 95%, 30%)",
1268
- "fontSize": 16,
1269
- "fontWeight": "700",
1270
- "textAlign": "center",
1271
- },
1272
- undefined,
1273
- ]
1274
- }
1275
- >
1276
- Create Account
1277
- </Text>
1278
- </View>
1279
- </View>,
1280
- ]
1281
- `;