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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (359) hide show
  1. package/dist/Authenticator/common/DefaultContent/styles.js +1 -2
  2. package/dist/primitives/Heading/styles.js +5 -5
  3. package/dist/primitives/Label/styles.js +2 -2
  4. package/dist/primitives/TextField/styles.js +3 -3
  5. package/dist/version.d.ts +1 -1
  6. package/dist/version.js +1 -1
  7. package/lib/Authenticator/Authenticator.js +72 -0
  8. package/lib/Authenticator/Defaults/ConfirmResetPassword/ConfirmResetPassword.js +43 -0
  9. package/lib/Authenticator/Defaults/ConfirmResetPassword/index.js +8 -0
  10. package/lib/Authenticator/Defaults/ConfirmSignIn/ConfirmSignIn.js +42 -0
  11. package/lib/Authenticator/Defaults/ConfirmSignIn/index.js +8 -0
  12. package/lib/Authenticator/Defaults/ConfirmSignUp/ConfirmSignUp.js +43 -0
  13. package/lib/Authenticator/Defaults/ConfirmSignUp/index.js +8 -0
  14. package/lib/Authenticator/Defaults/ConfirmVerifyUser/ConfirmVerifyUser.js +42 -0
  15. package/lib/Authenticator/Defaults/ConfirmVerifyUser/index.js +8 -0
  16. package/lib/Authenticator/Defaults/ForceNewPassword/ForceNewPassword.js +45 -0
  17. package/lib/Authenticator/Defaults/ForceNewPassword/index.js +8 -0
  18. package/lib/Authenticator/Defaults/ResetPassword/ResetPassword.js +42 -0
  19. package/lib/Authenticator/Defaults/ResetPassword/index.js +8 -0
  20. package/lib/Authenticator/Defaults/SetupTOTP/SetupTOTP.js +52 -0
  21. package/lib/Authenticator/Defaults/SetupTOTP/index.js +8 -0
  22. package/lib/Authenticator/Defaults/SetupTOTP/styles.js +8 -0
  23. package/lib/Authenticator/Defaults/SignIn/SignIn.js +50 -0
  24. package/lib/Authenticator/Defaults/SignIn/index.js +8 -0
  25. package/lib/Authenticator/Defaults/SignUp/SignUp.js +48 -0
  26. package/lib/Authenticator/Defaults/SignUp/index.js +8 -0
  27. package/lib/Authenticator/Defaults/VerifyUser/VerifyUser.js +33 -0
  28. package/lib/Authenticator/Defaults/VerifyUser/index.js +8 -0
  29. package/lib/Authenticator/Defaults/index.js +23 -0
  30. package/lib/Authenticator/Defaults/types.js +2 -0
  31. package/lib/Authenticator/common/DefaultContainer/DefaultContainer.js +37 -0
  32. package/lib/Authenticator/common/DefaultContainer/InnerContainer.js +15 -0
  33. package/lib/Authenticator/common/DefaultContainer/index.js +10 -0
  34. package/lib/Authenticator/common/DefaultContainer/styles.js +31 -0
  35. package/lib/Authenticator/common/DefaultContainer/types.js +2 -0
  36. package/lib/Authenticator/common/DefaultContent/DefaultContent.js +33 -0
  37. package/lib/Authenticator/common/DefaultContent/index.js +8 -0
  38. package/lib/Authenticator/common/DefaultContent/styles.js +54 -0
  39. package/lib/Authenticator/common/DefaultContent/types.js +2 -0
  40. package/lib/Authenticator/common/DefaultFooter/DefaultFooter.js +9 -0
  41. package/lib/Authenticator/common/DefaultFooter/index.js +8 -0
  42. package/lib/Authenticator/common/DefaultFooter/types.js +2 -0
  43. package/lib/Authenticator/common/DefaultFormFields/DefaultRadioFormFields.js +28 -0
  44. package/lib/Authenticator/common/DefaultFormFields/DefaultTextFormFields.js +21 -0
  45. package/lib/Authenticator/common/DefaultFormFields/Field.js +37 -0
  46. package/lib/Authenticator/common/DefaultFormFields/FieldErrors.js +17 -0
  47. package/lib/Authenticator/common/DefaultFormFields/index.js +10 -0
  48. package/lib/Authenticator/common/DefaultFormFields/types.js +2 -0
  49. package/lib/Authenticator/common/DefaultHeader/DefaultHeader.js +11 -0
  50. package/lib/Authenticator/common/DefaultHeader/index.js +8 -0
  51. package/lib/Authenticator/common/DefaultHeader/types.js +2 -0
  52. package/lib/Authenticator/common/FederatedProviderButton/FederatedProviderButton.js +18 -0
  53. package/lib/Authenticator/common/FederatedProviderButton/index.js +8 -0
  54. package/lib/Authenticator/common/FederatedProviderButton/styles.js +21 -0
  55. package/lib/Authenticator/common/FederatedProviderButton/types.js +2 -0
  56. package/lib/Authenticator/common/FederatedProviderButtons/FederatedProviderButtons.js +26 -0
  57. package/lib/Authenticator/common/FederatedProviderButtons/index.js +8 -0
  58. package/lib/Authenticator/common/FederatedProviderButtons/styles.js +8 -0
  59. package/lib/Authenticator/common/FederatedProviderButtons/types.js +2 -0
  60. package/lib/Authenticator/common/index.js +10 -0
  61. package/lib/Authenticator/hooks/index.js +5 -0
  62. package/lib/Authenticator/hooks/types.js +2 -0
  63. package/lib/Authenticator/hooks/useFieldValues/constants.js +11 -0
  64. package/lib/Authenticator/hooks/useFieldValues/index.js +10 -0
  65. package/lib/Authenticator/hooks/useFieldValues/types.js +2 -0
  66. package/lib/Authenticator/hooks/useFieldValues/useFieldValues.js +101 -0
  67. package/lib/Authenticator/hooks/useFieldValues/utils.js +139 -0
  68. package/lib/Authenticator/index.js +13 -0
  69. package/lib/Authenticator/types.js +2 -0
  70. package/lib/Authenticator/withAuthenticator.js +15 -0
  71. package/lib/InAppMessaging/components/BannerMessage/BannerMessage.js +20 -0
  72. package/lib/InAppMessaging/components/BannerMessage/index.js +8 -0
  73. package/lib/InAppMessaging/components/BannerMessage/styles.js +81 -0
  74. package/lib/InAppMessaging/components/BannerMessage/types.js +2 -0
  75. package/lib/InAppMessaging/components/CarouselMessage/CarouselMessage.js +25 -0
  76. package/lib/InAppMessaging/components/CarouselMessage/CarouselMessageItem.js +22 -0
  77. package/lib/InAppMessaging/components/CarouselMessage/index.js +8 -0
  78. package/lib/InAppMessaging/components/CarouselMessage/styles.js +103 -0
  79. package/lib/InAppMessaging/components/CarouselMessage/types.js +2 -0
  80. package/lib/InAppMessaging/components/FullScreenMessage/FullScreenMessage.js +22 -0
  81. package/lib/InAppMessaging/components/FullScreenMessage/index.js +8 -0
  82. package/lib/InAppMessaging/components/FullScreenMessage/styles.js +91 -0
  83. package/lib/InAppMessaging/components/FullScreenMessage/types.js +2 -0
  84. package/lib/InAppMessaging/components/InAppMessageDisplay/InAppMessageDisplay.js +32 -0
  85. package/lib/InAppMessaging/components/InAppMessageDisplay/handleMessageLinkAction.js +26 -0
  86. package/lib/InAppMessaging/components/InAppMessageDisplay/index.js +8 -0
  87. package/lib/InAppMessaging/components/InAppMessageDisplay/types.js +2 -0
  88. package/lib/InAppMessaging/components/MessageLayout/MessageLayout.js +38 -0
  89. package/lib/InAppMessaging/components/MessageLayout/index.js +8 -0
  90. package/lib/InAppMessaging/components/MessageLayout/types.js +2 -0
  91. package/lib/InAppMessaging/components/MessageWrapper/MessageWrapper.js +24 -0
  92. package/lib/InAppMessaging/components/MessageWrapper/index.js +8 -0
  93. package/lib/InAppMessaging/components/MessageWrapper/styles.js +8 -0
  94. package/lib/InAppMessaging/components/MessageWrapper/types.js +2 -0
  95. package/lib/InAppMessaging/components/ModalMessage/ModalMessage.js +22 -0
  96. package/lib/InAppMessaging/components/ModalMessage/index.js +8 -0
  97. package/lib/InAppMessaging/components/ModalMessage/styles.js +104 -0
  98. package/lib/InAppMessaging/components/ModalMessage/types.js +2 -0
  99. package/lib/InAppMessaging/components/index.js +7 -0
  100. package/lib/InAppMessaging/components/withInAppMessaging/index.js +8 -0
  101. package/lib/InAppMessaging/components/withInAppMessaging/withInAppMessaging.js +15 -0
  102. package/lib/InAppMessaging/constants.js +48 -0
  103. package/lib/InAppMessaging/hooks/index.js +7 -0
  104. package/lib/InAppMessaging/hooks/useMessageImage/constants.js +21 -0
  105. package/lib/InAppMessaging/hooks/useMessageImage/index.js +8 -0
  106. package/lib/InAppMessaging/hooks/useMessageImage/types.js +9 -0
  107. package/lib/InAppMessaging/hooks/useMessageImage/useMessageImage.js +53 -0
  108. package/lib/InAppMessaging/hooks/useMessageImage/utils.js +61 -0
  109. package/lib/InAppMessaging/hooks/useMessageProps/index.js +8 -0
  110. package/lib/InAppMessaging/hooks/useMessageProps/types.js +2 -0
  111. package/lib/InAppMessaging/hooks/useMessageProps/useMessageProps.js +52 -0
  112. package/lib/InAppMessaging/hooks/useMessageProps/utils.js +201 -0
  113. package/lib/InAppMessaging/index.js +9 -0
  114. package/lib/assets/icons/amazonLogo.png +0 -0
  115. package/lib/assets/icons/amazonLogo@2x.png +0 -0
  116. package/lib/assets/icons/amazonLogo@3x.png +0 -0
  117. package/lib/assets/icons/appleLogo.png +0 -0
  118. package/lib/assets/icons/appleLogo@2x.png +0 -0
  119. package/lib/assets/icons/appleLogo@3x.png +0 -0
  120. package/lib/assets/icons/checkboxFilled.png +0 -0
  121. package/lib/assets/icons/checkboxFilled@2x.png +0 -0
  122. package/lib/assets/icons/checkboxFilled@3x.png +0 -0
  123. package/lib/assets/icons/checkboxOutline.png +0 -0
  124. package/lib/assets/icons/checkboxOutline@2x.png +0 -0
  125. package/lib/assets/icons/checkboxOutline@3x.png +0 -0
  126. package/lib/assets/icons/close.png +0 -0
  127. package/lib/assets/icons/close@2x.png +0 -0
  128. package/lib/assets/icons/close@3x.png +0 -0
  129. package/lib/assets/icons/copy.png +0 -0
  130. package/lib/assets/icons/copy@2x.png +0 -0
  131. package/lib/assets/icons/copy@3x.png +0 -0
  132. package/lib/assets/icons/error.png +0 -0
  133. package/lib/assets/icons/error@2x.png +0 -0
  134. package/lib/assets/icons/error@3x.png +0 -0
  135. package/lib/assets/icons/facebookLogo.png +0 -0
  136. package/lib/assets/icons/facebookLogo@2x.png +0 -0
  137. package/lib/assets/icons/facebookLogo@3x.png +0 -0
  138. package/lib/assets/icons/googleLogo.png +0 -0
  139. package/lib/assets/icons/googleLogo@2x.png +0 -0
  140. package/lib/assets/icons/googleLogo@3x.png +0 -0
  141. package/lib/assets/icons/index.js +16 -0
  142. package/lib/assets/icons/index.ts +17 -0
  143. package/lib/assets/icons/visibilityOff.png +0 -0
  144. package/lib/assets/icons/visibilityOff@2x.png +0 -0
  145. package/lib/assets/icons/visibilityOff@3x.png +0 -0
  146. package/lib/assets/icons/visibilityOn.png +0 -0
  147. package/lib/assets/icons/visibilityOn@2x.png +0 -0
  148. package/lib/assets/icons/visibilityOn@3x.png +0 -0
  149. package/lib/assets/index.js +8 -0
  150. package/lib/hooks/index.js +9 -0
  151. package/lib/hooks/useDeprecationWarning/index.js +8 -0
  152. package/lib/hooks/useDeprecationWarning/useDeprecationWarning.js +13 -0
  153. package/lib/hooks/useDeviceOrientation/index.js +8 -0
  154. package/lib/hooks/useDeviceOrientation/useDeviceOrientation.js +37 -0
  155. package/lib/hooks/usePressableContainerStyles/index.js +5 -0
  156. package/lib/hooks/usePressableContainerStyles/usePressableContainerStyles.js +19 -0
  157. package/lib/index.js +14 -0
  158. package/lib/primitives/Button/Button.js +31 -0
  159. package/lib/primitives/Button/index.js +8 -0
  160. package/lib/primitives/Button/styles.js +55 -0
  161. package/lib/primitives/Button/types.js +2 -0
  162. package/lib/primitives/Carousel/Carousel.js +63 -0
  163. package/lib/primitives/Carousel/CarouselPageIndicator.js +14 -0
  164. package/lib/primitives/Carousel/constants.js +21 -0
  165. package/lib/primitives/Carousel/index.js +10 -0
  166. package/lib/primitives/Carousel/styles.js +14 -0
  167. package/lib/primitives/Carousel/types.js +2 -0
  168. package/lib/primitives/Checkbox/Checkbox.js +28 -0
  169. package/lib/primitives/Checkbox/index.js +8 -0
  170. package/lib/primitives/Checkbox/styles.js +28 -0
  171. package/lib/primitives/Checkbox/types.js +2 -0
  172. package/lib/primitives/Divider/Divider.js +22 -0
  173. package/lib/primitives/Divider/index.js +8 -0
  174. package/lib/primitives/Divider/styles.js +28 -0
  175. package/lib/primitives/Divider/types.js +2 -0
  176. package/lib/primitives/ErrorMessage/ErrorMessage.js +22 -0
  177. package/lib/primitives/ErrorMessage/index.js +8 -0
  178. package/lib/primitives/ErrorMessage/styles.js +30 -0
  179. package/lib/primitives/ErrorMessage/types.js +2 -0
  180. package/lib/primitives/Heading/Heading.js +15 -0
  181. package/lib/primitives/Heading/index.js +8 -0
  182. package/lib/primitives/Heading/styles.js +51 -0
  183. package/lib/primitives/Heading/types.js +2 -0
  184. package/lib/primitives/Icon/Icon.js +21 -0
  185. package/lib/primitives/Icon/constants.js +10 -0
  186. package/lib/primitives/Icon/index.js +10 -0
  187. package/lib/primitives/Icon/styles.js +34 -0
  188. package/lib/primitives/Icon/types.js +2 -0
  189. package/lib/primitives/IconButton/IconButton.js +26 -0
  190. package/lib/primitives/IconButton/index.js +8 -0
  191. package/lib/primitives/IconButton/styles.js +21 -0
  192. package/lib/primitives/IconButton/types.js +2 -0
  193. package/lib/primitives/Label/Label.js +16 -0
  194. package/lib/primitives/Label/index.js +8 -0
  195. package/lib/primitives/Label/styles.js +45 -0
  196. package/lib/primitives/Label/types.js +2 -0
  197. package/lib/primitives/Label/utils.js +25 -0
  198. package/lib/primitives/PasswordField/PasswordField.js +24 -0
  199. package/lib/primitives/PasswordField/index.js +8 -0
  200. package/lib/primitives/PasswordField/styles.js +17 -0
  201. package/lib/primitives/PasswordField/types.js +2 -0
  202. package/lib/primitives/PhoneNumberField/PhoneNumberField.js +13 -0
  203. package/lib/primitives/PhoneNumberField/index.js +8 -0
  204. package/lib/primitives/PhoneNumberField/styles.js +22 -0
  205. package/lib/primitives/PhoneNumberField/types.js +2 -0
  206. package/lib/primitives/Radio/Radio.js +46 -0
  207. package/lib/primitives/Radio/getRadioDimensions.js +43 -0
  208. package/lib/primitives/Radio/index.js +8 -0
  209. package/lib/primitives/Radio/styles.js +68 -0
  210. package/lib/primitives/Radio/types.js +2 -0
  211. package/lib/primitives/RadioGroup/RadioGroup.js +55 -0
  212. package/lib/primitives/RadioGroup/index.js +8 -0
  213. package/lib/primitives/RadioGroup/styles.js +20 -0
  214. package/lib/primitives/RadioGroup/types.js +2 -0
  215. package/lib/primitives/Tabs/Tab.js +27 -0
  216. package/lib/primitives/Tabs/Tabs.js +29 -0
  217. package/lib/primitives/Tabs/index.js +10 -0
  218. package/lib/primitives/Tabs/styles.js +58 -0
  219. package/lib/primitives/Tabs/types.js +2 -0
  220. package/lib/primitives/TextField/TextField.js +31 -0
  221. package/lib/primitives/TextField/index.js +8 -0
  222. package/lib/primitives/TextField/styles.js +46 -0
  223. package/lib/primitives/TextField/types.js +2 -0
  224. package/lib/primitives/index.js +18 -0
  225. package/lib/theme/ThemeContext.js +9 -0
  226. package/lib/theme/ThemeProvider.js +12 -0
  227. package/lib/theme/createTheme.js +113 -0
  228. package/lib/theme/defaultTheme.js +11 -0
  229. package/lib/theme/index.js +12 -0
  230. package/lib/theme/types.js +2 -0
  231. package/lib/theme/useTheme.js +11 -0
  232. package/lib/utils/font.js +8 -0
  233. package/lib/utils/index.js +10 -0
  234. package/lib/utils/platform.js +21 -0
  235. package/lib/version.js +4 -0
  236. package/package.json +19 -10
  237. package/src/Authenticator/common/DefaultContent/styles.ts +1 -2
  238. package/src/primitives/Heading/styles.ts +5 -5
  239. package/src/primitives/Label/styles.ts +2 -2
  240. package/src/primitives/TextField/styles.ts +3 -3
  241. package/src/version.ts +1 -1
  242. package/.eslintrc.js +0 -12
  243. package/.lintstagedrc.js +0 -6
  244. package/.turbo/turbo-build.log +0 -3
  245. package/CHANGELOG.md +0 -321
  246. package/babel.config.js +0 -3
  247. package/dist/assets/index.ts +0 -1
  248. package/jest.config.js +0 -22
  249. package/jest.setup.js +0 -3
  250. package/src/Authenticator/Defaults/ConfirmResetPassword/__tests__/ConfirmResetPassword.spec.tsx +0 -89
  251. package/src/Authenticator/Defaults/ConfirmResetPassword/__tests__/__snapshots__/ConfirmResetPassword.spec.tsx.snap +0 -1086
  252. package/src/Authenticator/Defaults/ConfirmSignIn/__tests__/ConfirmSignIn.spec.tsx +0 -78
  253. package/src/Authenticator/Defaults/ConfirmSignIn/__tests__/__snapshots__/ConfirmSignIn.spec.tsx.snap +0 -512
  254. package/src/Authenticator/Defaults/ConfirmSignUp/__tests__/ConfirmSignUp.spec.tsx +0 -64
  255. package/src/Authenticator/Defaults/ConfirmSignUp/__tests__/__snapshots__/ConfirmSignUp.spec.tsx.snap +0 -531
  256. package/src/Authenticator/Defaults/ConfirmVerifyUser/__tests__/ConfirmVerifyUser.spec.tsx +0 -71
  257. package/src/Authenticator/Defaults/ConfirmVerifyUser/__tests__/__snapshots__/ConfirmVerifyUser.spec.tsx.snap +0 -495
  258. package/src/Authenticator/Defaults/ForceNewPassword/__tests__/ForceNewPassword.spec.tsx +0 -79
  259. package/src/Authenticator/Defaults/ForceNewPassword/__tests__/__snapshots__/ForceNewPassword.spec.tsx.snap +0 -893
  260. package/src/Authenticator/Defaults/ResetPassword/__tests__/ResetPassword.spec.tsx +0 -78
  261. package/src/Authenticator/Defaults/ResetPassword/__tests__/__snapshots__/ResetPassword.spec.tsx.snap +0 -512
  262. package/src/Authenticator/Defaults/SetupTOTP/__tests__/SetupTOTP.spec.tsx +0 -85
  263. package/src/Authenticator/Defaults/SetupTOTP/__tests__/__snapshots__/SetupTOTP.spec.tsx.snap +0 -602
  264. package/src/Authenticator/Defaults/SignIn/__tests__/SignIn.spec.tsx +0 -67
  265. package/src/Authenticator/Defaults/SignIn/__tests__/__snapshots__/SignIn.spec.tsx.snap +0 -1278
  266. package/src/Authenticator/Defaults/SignUp/__tests__/SignUp.spec.tsx +0 -102
  267. package/src/Authenticator/Defaults/SignUp/__tests__/__snapshots__/SignUp.spec.tsx.snap +0 -3107
  268. package/src/Authenticator/Defaults/VerifyUser/__tests__/VerifyUser.spec.tsx +0 -107
  269. package/src/Authenticator/Defaults/VerifyUser/__tests__/__snapshots__/VerifyUser.spec.tsx.snap +0 -694
  270. package/src/Authenticator/__tests__/Authenticator.spec.tsx +0 -131
  271. package/src/Authenticator/__tests__/__snapshots__/Authenticator.spec.tsx.snap +0 -90
  272. package/src/Authenticator/__tests__/__snapshots__/withAuthenticator.spec.tsx.snap +0 -68
  273. package/src/Authenticator/__tests__/withAuthenticator.spec.tsx +0 -73
  274. package/src/Authenticator/common/DefaultContainer/__tests__/DefaultContainer.spec.tsx +0 -19
  275. package/src/Authenticator/common/DefaultContainer/__tests__/__snapshots__/DefaultContainer.spec.tsx.snap +0 -83
  276. package/src/Authenticator/common/DefaultFooter/__tests__/DefaultFooter.spec.tsx +0 -26
  277. package/src/Authenticator/common/DefaultFooter/__tests__/__snapshots__/DefaultFooter.spec.tsx.snap +0 -40
  278. package/src/Authenticator/common/DefaultFormFields/__tests__/DefaultFormFields.spec.tsx +0 -15
  279. package/src/Authenticator/common/DefaultFormFields/__tests__/FieldErrors.spec.tsx +0 -29
  280. package/src/Authenticator/common/DefaultFormFields/__tests__/__snapshots__/DefaultFormFields.spec.tsx.snap +0 -3
  281. package/src/Authenticator/common/DefaultFormFields/__tests__/__snapshots__/FieldErrors.spec.tsx.snap +0 -32
  282. package/src/Authenticator/common/DefaultHeader/__tests__/DefaultHeader.spec.tsx +0 -23
  283. package/src/Authenticator/common/DefaultHeader/__tests__/__snapshots__/DefaultHeader.spec.tsx.snap +0 -24
  284. package/src/Authenticator/common/FederatedProviderButton/__tests__/FederatedProviderButton.spec.tsx +0 -67
  285. package/src/Authenticator/common/FederatedProviderButton/__tests__/__snapshots__/FederatedProviderButton.spec.tsx.snap +0 -185
  286. package/src/Authenticator/common/FederatedProviderButtons/__tests__/FederatedProviderButtons.spec.tsx +0 -55
  287. package/src/Authenticator/common/FederatedProviderButtons/__tests__/__snapshots__/FederatedProviderButtons.spec.tsx.snap +0 -167
  288. package/src/Authenticator/hooks/useFieldValues/__tests__/useFieldValues.spec.ts +0 -399
  289. package/src/Authenticator/hooks/useFieldValues/__tests__/utils.spec.ts +0 -282
  290. package/src/InAppMessaging/components/BannerMessage/__tests__/BannerMessage.spec.tsx +0 -151
  291. package/src/InAppMessaging/components/BannerMessage/__tests__/__snapshots__/BannerMessage.spec.tsx.snap +0 -618
  292. package/src/InAppMessaging/components/CarouselMessage/__tests__/CarouselMessage.spec.tsx +0 -92
  293. package/src/InAppMessaging/components/CarouselMessage/__tests__/CarouselMessageItem.spec.tsx +0 -50
  294. package/src/InAppMessaging/components/CarouselMessage/__tests__/__snapshots__/CarouselMessage.spec.tsx.snap +0 -124
  295. package/src/InAppMessaging/components/CarouselMessage/__tests__/__snapshots__/CarouselMessageItem.spec.tsx.snap +0 -248
  296. package/src/InAppMessaging/components/FullScreenMessage/__tests__/FullScreenMessage.spec.tsx +0 -53
  297. package/src/InAppMessaging/components/FullScreenMessage/__tests__/__snapshots__/FullScreenMessage.spec.tsx.snap +0 -238
  298. package/src/InAppMessaging/components/InAppMessageDisplay/__tests__/InAppMessageDisplay.spec.tsx +0 -34
  299. package/src/InAppMessaging/components/InAppMessageDisplay/__tests__/__snapshots__/InAppMessageDisplay.spec.tsx.snap +0 -9
  300. package/src/InAppMessaging/components/InAppMessageDisplay/__tests__/handleMessageLinkAction.spec.ts +0 -51
  301. package/src/InAppMessaging/components/MessageWrapper/__tests__/MessageWrapper.spec.tsx +0 -19
  302. package/src/InAppMessaging/components/MessageWrapper/__tests__/__snapshots__/MessageWrapper.spec.tsx.snap +0 -35
  303. package/src/InAppMessaging/components/ModalMessage/__tests__/ModalMessage.spec.tsx +0 -169
  304. package/src/InAppMessaging/components/ModalMessage/__tests__/__snapshots__/ModalMessage.spec.tsx.snap +0 -727
  305. package/src/InAppMessaging/components/withInAppMessaging/__tests__/__snapshots__/withInAppMessaging.spec.tsx.snap +0 -3
  306. package/src/InAppMessaging/components/withInAppMessaging/__tests__/withInAppMessaging.spec.tsx +0 -15
  307. package/src/InAppMessaging/hooks/useMessageImage/__tests__/useMessageImage.spec.ts +0 -141
  308. package/src/InAppMessaging/hooks/useMessageImage/__tests__/utils.spec.ts +0 -107
  309. package/src/InAppMessaging/hooks/useMessageProps/__tests__/__snapshots__/utils.spec.ts.snap +0 -223
  310. package/src/InAppMessaging/hooks/useMessageProps/__tests__/useMessageProps.spec.ts +0 -162
  311. package/src/InAppMessaging/hooks/useMessageProps/__tests__/utils.spec.ts +0 -355
  312. package/src/__mocks__/@react-native-async-storage/async-storage.ts +0 -2
  313. package/src/__mocks__/@react-native-community/netinfo.ts +0 -3
  314. package/src/__mocks__/react-native-safe-area-context.ts +0 -9
  315. package/src/__tests__/__snapshots__/index.spec.ts.snap +0 -26
  316. package/src/__tests__/index.spec.ts +0 -8
  317. package/src/hooks/useDeprecationWarning/__tests__/useDeprecationWarning.spec.ts +0 -42
  318. package/src/hooks/useDeviceOrientation/__tests__/useDeviceOrientation.spec.ts +0 -89
  319. package/src/hooks/usePressableContainerStyles/__tests__/usePressableContainerStyles.spec.ts +0 -68
  320. package/src/primitives/Button/__tests__/Button.spec.tsx +0 -92
  321. package/src/primitives/Button/__tests__/__snapshots__/Button.spec.tsx.snap +0 -143
  322. package/src/primitives/Carousel/__tests__/Carousel.spec.tsx +0 -174
  323. package/src/primitives/Carousel/__tests__/CarouselPageIndicator.spec.tsx +0 -73
  324. package/src/primitives/Carousel/__tests__/__snapshots__/Carousel.spec.tsx.snap +0 -310
  325. package/src/primitives/Carousel/__tests__/__snapshots__/CarouselPageIndicator.spec.tsx.snap +0 -191
  326. package/src/primitives/Checkbox/__tests__/Checkbox.spec.tsx +0 -150
  327. package/src/primitives/Checkbox/__tests__/__snapshots__/Checkbox.spec.tsx.snap +0 -527
  328. package/src/primitives/Divider/__tests__/Divider.spec.tsx +0 -50
  329. package/src/primitives/Divider/__tests__/__snapshots__/Divider.spec.tsx.snap +0 -165
  330. package/src/primitives/ErrorMessage/__tests__/ErrorMessage.spec.tsx +0 -60
  331. package/src/primitives/ErrorMessage/__tests__/__snapshots__/ErrorMessage.spec.tsx.snap +0 -123
  332. package/src/primitives/Heading/__tests__/Heading.spec.tsx +0 -73
  333. package/src/primitives/Heading/__tests__/__snapshots__/Heading.spec.tsx.snap +0 -171
  334. package/src/primitives/Icon/__tests__/Icon.spec.tsx +0 -100
  335. package/src/primitives/Icon/__tests__/__snapshots__/Icon.spec.tsx.snap +0 -139
  336. package/src/primitives/IconButton/__tests__/IconButton.spec.tsx +0 -71
  337. package/src/primitives/IconButton/__tests__/__snapshots__/IconButton.spec.tsx.snap +0 -192
  338. package/src/primitives/Label/__tests__/Label.spec.tsx +0 -75
  339. package/src/primitives/Label/__tests__/__snapshots__/Label.spec.tsx.snap +0 -91
  340. package/src/primitives/PasswordField/__tests__/PasswordField.spec.tsx +0 -110
  341. package/src/primitives/PasswordField/__tests__/__snapshots__/PasswordField.spec.tsx.snap +0 -620
  342. package/src/primitives/PhoneNumberField/__tests__/PhoneNumberField.spec.tsx +0 -53
  343. package/src/primitives/PhoneNumberField/__tests__/__snapshots__/PhoneNumberField.spec.tsx.snap +0 -182
  344. package/src/primitives/Radio/__tests__/Radio.spec.tsx +0 -166
  345. package/src/primitives/Radio/__tests__/__snapshots__/Radio.spec.tsx.snap +0 -678
  346. package/src/primitives/RadioGroup/__tests__/RadioGroup.spec.tsx +0 -183
  347. package/src/primitives/RadioGroup/__tests__/__snapshots__/RadioGroup.spec.tsx.snap +0 -1789
  348. package/src/primitives/Tabs/__tests__/Tab.spec.tsx +0 -75
  349. package/src/primitives/Tabs/__tests__/Tabs.spec.tsx +0 -81
  350. package/src/primitives/Tabs/__tests__/__snapshots__/Tab.spec.tsx.snap +0 -278
  351. package/src/primitives/Tabs/__tests__/__snapshots__/Tabs.spec.tsx.snap +0 -163
  352. package/src/primitives/TextField/__tests__/TextField.spec.tsx +0 -202
  353. package/src/primitives/TextField/__tests__/__snapshots__/TextField.spec.tsx.snap +0 -501
  354. package/src/theme/__tests__/ThemeProvider.spec.tsx +0 -23
  355. package/src/theme/__tests__/__snapshots__/useTheme.spec.tsx.snap +0 -226
  356. package/src/theme/__tests__/createTheme.spec.ts +0 -244
  357. package/src/theme/__tests__/useTheme.spec.tsx +0 -51
  358. package/tsconfig.dist.json +0 -4
  359. package/tsconfig.json +0 -9
@@ -1,1278 +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": "300",
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
- },
39
- Object {
40
- "paddingHorizontal": 12,
41
- },
42
- ]
43
- }
44
- testID="amplify__text-field-container"
45
- >
46
- <Text
47
- accessibilityLabel="Username"
48
- accessibilityRole="text"
49
- style={
50
- Array [
51
- Object {
52
- "fontSize": 14,
53
- "fontWeight": "400",
54
- "lineHeight": 21,
55
- },
56
- Object {
57
- "color": "hsl(210, 50%, 10%)",
58
- },
59
- Array [
60
- Object {
61
- "color": "hsl(210, 25%, 25%)",
62
- "lineHeight": 21,
63
- "padding": 4,
64
- },
65
- undefined,
66
- ],
67
- ]
68
- }
69
- >
70
- Username
71
- </Text>
72
- <View
73
- accessible={true}
74
- style={
75
- Object {
76
- "alignItems": "center",
77
- "borderColor": "hsl(210, 10%, 58%)",
78
- "borderRadius": 4,
79
- "borderWidth": 1,
80
- "flexDirection": "row",
81
- "paddingHorizontal": 8,
82
- }
83
- }
84
- testID="amplify__text-field__input-container"
85
- >
86
- <TextInput
87
- accessibilityState={
88
- Object {
89
- "disabled": false,
90
- }
91
- }
92
- accessible={true}
93
- autoCapitalize="none"
94
- editable={true}
95
- onBlur={[Function]}
96
- onChangeText={[Function]}
97
- placeholder="Username"
98
- placeholderTextColor="hsl(210, 10%, 40%)"
99
- style={
100
- Array [
101
- Object {
102
- "color": "hsl(210, 50%, 10%)",
103
- "flexGrow": 1,
104
- "fontSize": 16,
105
- "paddingVertical": 12,
106
- },
107
- Object {},
108
- ]
109
- }
110
- />
111
- </View>
112
- </View>
113
- <View
114
- style={
115
- Array [
116
- Object {
117
- "alignItems": "flex-start",
118
- },
119
- Array [
120
- Object {},
121
- Object {
122
- "paddingHorizontal": 12,
123
- },
124
- ],
125
- ]
126
- }
127
- testID="amplify__text-field-container"
128
- >
129
- <Text
130
- accessibilityLabel="Password"
131
- accessibilityRole="text"
132
- style={
133
- Array [
134
- Object {
135
- "fontSize": 14,
136
- "fontWeight": "400",
137
- "lineHeight": 21,
138
- },
139
- Object {
140
- "color": "hsl(210, 50%, 10%)",
141
- },
142
- Array [
143
- Object {
144
- "color": "hsl(210, 25%, 25%)",
145
- "lineHeight": 21,
146
- "padding": 4,
147
- },
148
- undefined,
149
- ],
150
- ]
151
- }
152
- >
153
- Password
154
- </Text>
155
- <View
156
- accessible={true}
157
- style={
158
- Object {
159
- "alignItems": "center",
160
- "borderColor": "hsl(210, 10%, 58%)",
161
- "borderRadius": 4,
162
- "borderWidth": 1,
163
- "flexDirection": "row",
164
- "paddingHorizontal": 8,
165
- }
166
- }
167
- testID="amplify__text-field__input-container"
168
- >
169
- <TextInput
170
- accessibilityState={
171
- Object {
172
- "disabled": false,
173
- }
174
- }
175
- accessible={true}
176
- autoCapitalize="none"
177
- editable={true}
178
- onBlur={[Function]}
179
- onChangeText={[Function]}
180
- placeholder="Password"
181
- placeholderTextColor="hsl(210, 10%, 40%)"
182
- secureTextEntry={true}
183
- style={
184
- Array [
185
- Object {
186
- "color": "hsl(210, 50%, 10%)",
187
- "flexGrow": 1,
188
- "fontSize": 16,
189
- "paddingVertical": 12,
190
- },
191
- Object {},
192
- ]
193
- }
194
- />
195
- <View
196
- accessibilityLabel="Show password"
197
- accessibilityRole="button"
198
- accessibilityState={
199
- Object {
200
- "disabled": false,
201
- }
202
- }
203
- accessible={true}
204
- collapsable={false}
205
- focusable={true}
206
- onBlur={[Function]}
207
- onClick={[Function]}
208
- onFocus={[Function]}
209
- onResponderGrant={[Function]}
210
- onResponderMove={[Function]}
211
- onResponderRelease={[Function]}
212
- onResponderTerminate={[Function]}
213
- onResponderTerminationRequest={[Function]}
214
- onStartShouldSetResponder={[Function]}
215
- style={
216
- Array [
217
- Object {},
218
- undefined,
219
- undefined,
220
- ]
221
- }
222
- >
223
- <Image
224
- accessibilityRole="image"
225
- source={
226
- Object {
227
- "testUri": "../../../src/assets/icons/visibilityOff.png",
228
- }
229
- }
230
- style={
231
- Array [
232
- Object {
233
- "height": 16,
234
- "resizeMode": "contain",
235
- "tintColor": undefined,
236
- "width": 16,
237
- },
238
- Array [
239
- Object {
240
- "tintColor": "hsl(210, 10%, 40%)",
241
- },
242
- undefined,
243
- ],
244
- ]
245
- }
246
- />
247
- </View>
248
- </View>
249
- </View>
250
- <TextInput
251
- accessibilityElementsHidden={true}
252
- pointerEvents="none"
253
- style={
254
- Object {
255
- "backgroundColor": "transparent",
256
- "height": 0.1,
257
- "width": 0.1,
258
- }
259
- }
260
- />
261
- </View>,
262
- <View
263
- accessibilityRole="button"
264
- accessibilityState={
265
- Object {
266
- "disabled": false,
267
- }
268
- }
269
- accessible={true}
270
- collapsable={false}
271
- focusable={true}
272
- onBlur={[Function]}
273
- onClick={[Function]}
274
- onFocus={[Function]}
275
- onResponderGrant={[Function]}
276
- onResponderMove={[Function]}
277
- onResponderRelease={[Function]}
278
- onResponderTerminate={[Function]}
279
- onResponderTerminationRequest={[Function]}
280
- onStartShouldSetResponder={[Function]}
281
- style={
282
- Array [
283
- Object {
284
- "alignItems": "center",
285
- "backgroundColor": "hsl(190, 95%, 30%)",
286
- "borderRadius": 4,
287
- "justifyContent": "center",
288
- "paddingHorizontal": 16,
289
- "paddingVertical": 12,
290
- },
291
- undefined,
292
- Object {
293
- "marginHorizontal": 16,
294
- "marginVertical": 12,
295
- },
296
- ]
297
- }
298
- testID="amplify__button"
299
- >
300
- <Text
301
- style={
302
- Array [
303
- Object {
304
- "color": "hsl(0, 0%, 100%)",
305
- "fontSize": 16,
306
- "fontWeight": "700",
307
- "textAlign": "center",
308
- },
309
- Object {},
310
- ]
311
- }
312
- >
313
- Sign in
314
- </Text>
315
- </View>,
316
- <View
317
- style={
318
- Object {
319
- "flexDirection": "row",
320
- "flexWrap": "wrap",
321
- "justifyContent": "center",
322
- }
323
- }
324
- >
325
- <View
326
- accessibilityRole="button"
327
- accessible={true}
328
- collapsable={false}
329
- focusable={true}
330
- onBlur={[Function]}
331
- onClick={[Function]}
332
- onFocus={[Function]}
333
- onResponderGrant={[Function]}
334
- onResponderMove={[Function]}
335
- onResponderRelease={[Function]}
336
- onResponderTerminate={[Function]}
337
- onResponderTerminationRequest={[Function]}
338
- onStartShouldSetResponder={[Function]}
339
- style={
340
- Array [
341
- Object {
342
- "alignItems": "center",
343
- "backgroundColor": "transparent",
344
- "borderRadius": 4,
345
- "justifyContent": "center",
346
- "paddingHorizontal": 16,
347
- "paddingVertical": 12,
348
- },
349
- undefined,
350
- Object {
351
- "marginVertical": 8,
352
- "minWidth": "50%",
353
- },
354
- ]
355
- }
356
- >
357
- <Text
358
- style={
359
- Array [
360
- Object {
361
- "color": "hsl(190, 95%, 30%)",
362
- "fontSize": 16,
363
- "fontWeight": "700",
364
- "textAlign": "center",
365
- },
366
- undefined,
367
- ]
368
- }
369
- >
370
- Forgot Password?
371
- </Text>
372
- </View>
373
- <View
374
- accessibilityRole="button"
375
- accessible={true}
376
- collapsable={false}
377
- focusable={true}
378
- onBlur={[Function]}
379
- onClick={[Function]}
380
- onFocus={[Function]}
381
- onResponderGrant={[Function]}
382
- onResponderMove={[Function]}
383
- onResponderRelease={[Function]}
384
- onResponderTerminate={[Function]}
385
- onResponderTerminationRequest={[Function]}
386
- onStartShouldSetResponder={[Function]}
387
- style={
388
- Array [
389
- Object {
390
- "alignItems": "center",
391
- "backgroundColor": "transparent",
392
- "borderRadius": 4,
393
- "justifyContent": "center",
394
- "paddingHorizontal": 16,
395
- "paddingVertical": 12,
396
- },
397
- undefined,
398
- Object {
399
- "marginVertical": 8,
400
- "minWidth": "50%",
401
- },
402
- ]
403
- }
404
- >
405
- <Text
406
- style={
407
- Array [
408
- Object {
409
- "color": "hsl(190, 95%, 30%)",
410
- "fontSize": 16,
411
- "fontWeight": "700",
412
- "textAlign": "center",
413
- },
414
- undefined,
415
- ]
416
- }
417
- >
418
- Create Account
419
- </Text>
420
- </View>
421
- </View>,
422
- ]
423
- `;
424
-
425
- exports[`SignIn renders as expected when hideSignUp is true 1`] = `
426
- Array [
427
- <Text
428
- accessibilityRole="header"
429
- style={
430
- Array [
431
- Object {
432
- "color": "hsl(210, 50%, 10%)",
433
- },
434
- Object {
435
- "fontSize": 24,
436
- "fontWeight": "300",
437
- "lineHeight": 36,
438
- },
439
- Object {
440
- "marginVertical": 12,
441
- "paddingHorizontal": 12,
442
- },
443
- ]
444
- }
445
- >
446
- Sign In
447
- </Text>,
448
- <View
449
- style={
450
- Object {
451
- "paddingBottom": 8,
452
- }
453
- }
454
- >
455
- <View
456
- style={
457
- Array [
458
- Object {
459
- "alignItems": "flex-start",
460
- },
461
- Object {
462
- "paddingHorizontal": 12,
463
- },
464
- ]
465
- }
466
- testID="amplify__text-field-container"
467
- >
468
- <Text
469
- accessibilityLabel="Username"
470
- accessibilityRole="text"
471
- style={
472
- Array [
473
- Object {
474
- "fontSize": 14,
475
- "fontWeight": "400",
476
- "lineHeight": 21,
477
- },
478
- Object {
479
- "color": "hsl(210, 50%, 10%)",
480
- },
481
- Array [
482
- Object {
483
- "color": "hsl(210, 25%, 25%)",
484
- "lineHeight": 21,
485
- "padding": 4,
486
- },
487
- undefined,
488
- ],
489
- ]
490
- }
491
- >
492
- Username
493
- </Text>
494
- <View
495
- accessible={true}
496
- style={
497
- Object {
498
- "alignItems": "center",
499
- "borderColor": "hsl(210, 10%, 58%)",
500
- "borderRadius": 4,
501
- "borderWidth": 1,
502
- "flexDirection": "row",
503
- "paddingHorizontal": 8,
504
- }
505
- }
506
- testID="amplify__text-field__input-container"
507
- >
508
- <TextInput
509
- accessibilityState={
510
- Object {
511
- "disabled": false,
512
- }
513
- }
514
- accessible={true}
515
- autoCapitalize="none"
516
- editable={true}
517
- onBlur={[Function]}
518
- onChangeText={[Function]}
519
- placeholder="Username"
520
- placeholderTextColor="hsl(210, 10%, 40%)"
521
- style={
522
- Array [
523
- Object {
524
- "color": "hsl(210, 50%, 10%)",
525
- "flexGrow": 1,
526
- "fontSize": 16,
527
- "paddingVertical": 12,
528
- },
529
- Object {},
530
- ]
531
- }
532
- />
533
- </View>
534
- </View>
535
- <View
536
- style={
537
- Array [
538
- Object {
539
- "alignItems": "flex-start",
540
- },
541
- Array [
542
- Object {},
543
- Object {
544
- "paddingHorizontal": 12,
545
- },
546
- ],
547
- ]
548
- }
549
- testID="amplify__text-field-container"
550
- >
551
- <Text
552
- accessibilityLabel="Password"
553
- accessibilityRole="text"
554
- style={
555
- Array [
556
- Object {
557
- "fontSize": 14,
558
- "fontWeight": "400",
559
- "lineHeight": 21,
560
- },
561
- Object {
562
- "color": "hsl(210, 50%, 10%)",
563
- },
564
- Array [
565
- Object {
566
- "color": "hsl(210, 25%, 25%)",
567
- "lineHeight": 21,
568
- "padding": 4,
569
- },
570
- undefined,
571
- ],
572
- ]
573
- }
574
- >
575
- Password
576
- </Text>
577
- <View
578
- accessible={true}
579
- style={
580
- Object {
581
- "alignItems": "center",
582
- "borderColor": "hsl(210, 10%, 58%)",
583
- "borderRadius": 4,
584
- "borderWidth": 1,
585
- "flexDirection": "row",
586
- "paddingHorizontal": 8,
587
- }
588
- }
589
- testID="amplify__text-field__input-container"
590
- >
591
- <TextInput
592
- accessibilityState={
593
- Object {
594
- "disabled": false,
595
- }
596
- }
597
- accessible={true}
598
- autoCapitalize="none"
599
- editable={true}
600
- onBlur={[Function]}
601
- onChangeText={[Function]}
602
- placeholder="Password"
603
- placeholderTextColor="hsl(210, 10%, 40%)"
604
- secureTextEntry={true}
605
- style={
606
- Array [
607
- Object {
608
- "color": "hsl(210, 50%, 10%)",
609
- "flexGrow": 1,
610
- "fontSize": 16,
611
- "paddingVertical": 12,
612
- },
613
- Object {},
614
- ]
615
- }
616
- />
617
- <View
618
- accessibilityLabel="Show password"
619
- accessibilityRole="button"
620
- accessibilityState={
621
- Object {
622
- "disabled": false,
623
- }
624
- }
625
- accessible={true}
626
- collapsable={false}
627
- focusable={true}
628
- onBlur={[Function]}
629
- onClick={[Function]}
630
- onFocus={[Function]}
631
- onResponderGrant={[Function]}
632
- onResponderMove={[Function]}
633
- onResponderRelease={[Function]}
634
- onResponderTerminate={[Function]}
635
- onResponderTerminationRequest={[Function]}
636
- onStartShouldSetResponder={[Function]}
637
- style={
638
- Array [
639
- Object {},
640
- undefined,
641
- undefined,
642
- ]
643
- }
644
- >
645
- <Image
646
- accessibilityRole="image"
647
- source={
648
- Object {
649
- "testUri": "../../../src/assets/icons/visibilityOff.png",
650
- }
651
- }
652
- style={
653
- Array [
654
- Object {
655
- "height": 16,
656
- "resizeMode": "contain",
657
- "tintColor": undefined,
658
- "width": 16,
659
- },
660
- Array [
661
- Object {
662
- "tintColor": "hsl(210, 10%, 40%)",
663
- },
664
- undefined,
665
- ],
666
- ]
667
- }
668
- />
669
- </View>
670
- </View>
671
- </View>
672
- <TextInput
673
- accessibilityElementsHidden={true}
674
- pointerEvents="none"
675
- style={
676
- Object {
677
- "backgroundColor": "transparent",
678
- "height": 0.1,
679
- "width": 0.1,
680
- }
681
- }
682
- />
683
- </View>,
684
- <View
685
- accessibilityRole="button"
686
- accessibilityState={
687
- Object {
688
- "disabled": false,
689
- }
690
- }
691
- accessible={true}
692
- collapsable={false}
693
- focusable={true}
694
- onBlur={[Function]}
695
- onClick={[Function]}
696
- onFocus={[Function]}
697
- onResponderGrant={[Function]}
698
- onResponderMove={[Function]}
699
- onResponderRelease={[Function]}
700
- onResponderTerminate={[Function]}
701
- onResponderTerminationRequest={[Function]}
702
- onStartShouldSetResponder={[Function]}
703
- style={
704
- Array [
705
- Object {
706
- "alignItems": "center",
707
- "backgroundColor": "hsl(190, 95%, 30%)",
708
- "borderRadius": 4,
709
- "justifyContent": "center",
710
- "paddingHorizontal": 16,
711
- "paddingVertical": 12,
712
- },
713
- undefined,
714
- Object {
715
- "marginHorizontal": 16,
716
- "marginVertical": 12,
717
- },
718
- ]
719
- }
720
- testID="amplify__button"
721
- >
722
- <Text
723
- style={
724
- Array [
725
- Object {
726
- "color": "hsl(0, 0%, 100%)",
727
- "fontSize": 16,
728
- "fontWeight": "700",
729
- "textAlign": "center",
730
- },
731
- Object {},
732
- ]
733
- }
734
- >
735
- Sign in
736
- </Text>
737
- </View>,
738
- <View
739
- style={
740
- Object {
741
- "flexDirection": "row",
742
- "flexWrap": "wrap",
743
- "justifyContent": "center",
744
- }
745
- }
746
- >
747
- <View
748
- accessibilityRole="button"
749
- accessible={true}
750
- collapsable={false}
751
- focusable={true}
752
- onBlur={[Function]}
753
- onClick={[Function]}
754
- onFocus={[Function]}
755
- onResponderGrant={[Function]}
756
- onResponderMove={[Function]}
757
- onResponderRelease={[Function]}
758
- onResponderTerminate={[Function]}
759
- onResponderTerminationRequest={[Function]}
760
- onStartShouldSetResponder={[Function]}
761
- style={
762
- Array [
763
- Object {
764
- "alignItems": "center",
765
- "backgroundColor": "transparent",
766
- "borderRadius": 4,
767
- "justifyContent": "center",
768
- "paddingHorizontal": 16,
769
- "paddingVertical": 12,
770
- },
771
- undefined,
772
- Object {
773
- "marginVertical": 8,
774
- "minWidth": "50%",
775
- },
776
- ]
777
- }
778
- >
779
- <Text
780
- style={
781
- Array [
782
- Object {
783
- "color": "hsl(190, 95%, 30%)",
784
- "fontSize": 16,
785
- "fontWeight": "700",
786
- "textAlign": "center",
787
- },
788
- undefined,
789
- ]
790
- }
791
- >
792
- Forgot Password?
793
- </Text>
794
- </View>
795
- </View>,
796
- ]
797
- `;
798
-
799
- exports[`SignIn renders as expected with an error 1`] = `
800
- Array [
801
- <Text
802
- accessibilityRole="header"
803
- style={
804
- Array [
805
- Object {
806
- "color": "hsl(210, 50%, 10%)",
807
- },
808
- Object {
809
- "fontSize": 24,
810
- "fontWeight": "300",
811
- "lineHeight": 36,
812
- },
813
- Object {
814
- "marginVertical": 12,
815
- "paddingHorizontal": 12,
816
- },
817
- ]
818
- }
819
- >
820
- Sign In
821
- </Text>,
822
- <View
823
- style={
824
- Object {
825
- "paddingBottom": 8,
826
- }
827
- }
828
- >
829
- <View
830
- style={
831
- Array [
832
- Object {
833
- "alignItems": "flex-start",
834
- },
835
- Object {
836
- "paddingHorizontal": 12,
837
- },
838
- ]
839
- }
840
- testID="amplify__text-field-container"
841
- >
842
- <Text
843
- accessibilityLabel="Username"
844
- accessibilityRole="text"
845
- style={
846
- Array [
847
- Object {
848
- "fontSize": 14,
849
- "fontWeight": "400",
850
- "lineHeight": 21,
851
- },
852
- Object {
853
- "color": "hsl(210, 50%, 10%)",
854
- },
855
- Array [
856
- Object {
857
- "color": "hsl(210, 25%, 25%)",
858
- "lineHeight": 21,
859
- "padding": 4,
860
- },
861
- undefined,
862
- ],
863
- ]
864
- }
865
- >
866
- Username
867
- </Text>
868
- <View
869
- accessible={true}
870
- style={
871
- Object {
872
- "alignItems": "center",
873
- "borderColor": "hsl(210, 10%, 58%)",
874
- "borderRadius": 4,
875
- "borderWidth": 1,
876
- "flexDirection": "row",
877
- "paddingHorizontal": 8,
878
- }
879
- }
880
- testID="amplify__text-field__input-container"
881
- >
882
- <TextInput
883
- accessibilityState={
884
- Object {
885
- "disabled": false,
886
- }
887
- }
888
- accessible={true}
889
- autoCapitalize="none"
890
- editable={true}
891
- onBlur={[Function]}
892
- onChangeText={[Function]}
893
- placeholder="Username"
894
- placeholderTextColor="hsl(210, 10%, 40%)"
895
- style={
896
- Array [
897
- Object {
898
- "color": "hsl(210, 50%, 10%)",
899
- "flexGrow": 1,
900
- "fontSize": 16,
901
- "paddingVertical": 12,
902
- },
903
- Object {},
904
- ]
905
- }
906
- />
907
- </View>
908
- </View>
909
- <View
910
- style={
911
- Array [
912
- Object {
913
- "alignItems": "flex-start",
914
- },
915
- Array [
916
- Object {},
917
- Object {
918
- "paddingHorizontal": 12,
919
- },
920
- ],
921
- ]
922
- }
923
- testID="amplify__text-field-container"
924
- >
925
- <Text
926
- accessibilityLabel="Password"
927
- accessibilityRole="text"
928
- style={
929
- Array [
930
- Object {
931
- "fontSize": 14,
932
- "fontWeight": "400",
933
- "lineHeight": 21,
934
- },
935
- Object {
936
- "color": "hsl(210, 50%, 10%)",
937
- },
938
- Array [
939
- Object {
940
- "color": "hsl(210, 25%, 25%)",
941
- "lineHeight": 21,
942
- "padding": 4,
943
- },
944
- undefined,
945
- ],
946
- ]
947
- }
948
- >
949
- Password
950
- </Text>
951
- <View
952
- accessible={true}
953
- style={
954
- Object {
955
- "alignItems": "center",
956
- "borderColor": "hsl(210, 10%, 58%)",
957
- "borderRadius": 4,
958
- "borderWidth": 1,
959
- "flexDirection": "row",
960
- "paddingHorizontal": 8,
961
- }
962
- }
963
- testID="amplify__text-field__input-container"
964
- >
965
- <TextInput
966
- accessibilityState={
967
- Object {
968
- "disabled": false,
969
- }
970
- }
971
- accessible={true}
972
- autoCapitalize="none"
973
- editable={true}
974
- onBlur={[Function]}
975
- onChangeText={[Function]}
976
- placeholder="Password"
977
- placeholderTextColor="hsl(210, 10%, 40%)"
978
- secureTextEntry={true}
979
- style={
980
- Array [
981
- Object {
982
- "color": "hsl(210, 50%, 10%)",
983
- "flexGrow": 1,
984
- "fontSize": 16,
985
- "paddingVertical": 12,
986
- },
987
- Object {},
988
- ]
989
- }
990
- />
991
- <View
992
- accessibilityLabel="Show password"
993
- accessibilityRole="button"
994
- accessibilityState={
995
- Object {
996
- "disabled": false,
997
- }
998
- }
999
- accessible={true}
1000
- collapsable={false}
1001
- focusable={true}
1002
- onBlur={[Function]}
1003
- onClick={[Function]}
1004
- onFocus={[Function]}
1005
- onResponderGrant={[Function]}
1006
- onResponderMove={[Function]}
1007
- onResponderRelease={[Function]}
1008
- onResponderTerminate={[Function]}
1009
- onResponderTerminationRequest={[Function]}
1010
- onStartShouldSetResponder={[Function]}
1011
- style={
1012
- Array [
1013
- Object {},
1014
- undefined,
1015
- undefined,
1016
- ]
1017
- }
1018
- >
1019
- <Image
1020
- accessibilityRole="image"
1021
- source={
1022
- Object {
1023
- "testUri": "../../../src/assets/icons/visibilityOff.png",
1024
- }
1025
- }
1026
- style={
1027
- Array [
1028
- Object {
1029
- "height": 16,
1030
- "resizeMode": "contain",
1031
- "tintColor": undefined,
1032
- "width": 16,
1033
- },
1034
- Array [
1035
- Object {
1036
- "tintColor": "hsl(210, 10%, 40%)",
1037
- },
1038
- undefined,
1039
- ],
1040
- ]
1041
- }
1042
- />
1043
- </View>
1044
- </View>
1045
- </View>
1046
- <TextInput
1047
- accessibilityElementsHidden={true}
1048
- pointerEvents="none"
1049
- style={
1050
- Object {
1051
- "backgroundColor": "transparent",
1052
- "height": 0.1,
1053
- "width": 0.1,
1054
- }
1055
- }
1056
- />
1057
- </View>,
1058
- <View
1059
- accessibilityRole="alert"
1060
- style={
1061
- Array [
1062
- Object {
1063
- "alignItems": "center",
1064
- "backgroundColor": "hsl(0, 75%, 85%)",
1065
- "flexDirection": "row",
1066
- "paddingHorizontal": 8,
1067
- "paddingVertical": 12,
1068
- },
1069
- Object {
1070
- "marginHorizontal": 12,
1071
- },
1072
- ]
1073
- }
1074
- testID="amplify__error-message"
1075
- >
1076
- <Image
1077
- accessibilityRole="image"
1078
- source={
1079
- Object {
1080
- "testUri": "../../../src/assets/icons/error.png",
1081
- }
1082
- }
1083
- style={
1084
- Array [
1085
- Object {
1086
- "height": 20,
1087
- "resizeMode": "contain",
1088
- "tintColor": undefined,
1089
- "width": 20,
1090
- },
1091
- Array [
1092
- Object {
1093
- "margin": 8,
1094
- "tintColor": "hsl(0, 100%, 20%)",
1095
- },
1096
- Object {},
1097
- ],
1098
- ]
1099
- }
1100
- />
1101
- <Text
1102
- style={
1103
- Array [
1104
- Object {
1105
- "color": "hsl(0, 100%, 20%)",
1106
- "flex": 1,
1107
- "fontSize": 16,
1108
- "paddingHorizontal": 8,
1109
- },
1110
- Object {},
1111
- ]
1112
- }
1113
- >
1114
- An error!
1115
- </Text>
1116
- </View>,
1117
- <View
1118
- accessibilityRole="button"
1119
- accessibilityState={
1120
- Object {
1121
- "disabled": false,
1122
- }
1123
- }
1124
- accessible={true}
1125
- collapsable={false}
1126
- focusable={true}
1127
- onBlur={[Function]}
1128
- onClick={[Function]}
1129
- onFocus={[Function]}
1130
- onResponderGrant={[Function]}
1131
- onResponderMove={[Function]}
1132
- onResponderRelease={[Function]}
1133
- onResponderTerminate={[Function]}
1134
- onResponderTerminationRequest={[Function]}
1135
- onStartShouldSetResponder={[Function]}
1136
- style={
1137
- Array [
1138
- Object {
1139
- "alignItems": "center",
1140
- "backgroundColor": "hsl(190, 95%, 30%)",
1141
- "borderRadius": 4,
1142
- "justifyContent": "center",
1143
- "paddingHorizontal": 16,
1144
- "paddingVertical": 12,
1145
- },
1146
- undefined,
1147
- Object {
1148
- "marginHorizontal": 16,
1149
- "marginVertical": 12,
1150
- },
1151
- ]
1152
- }
1153
- testID="amplify__button"
1154
- >
1155
- <Text
1156
- style={
1157
- Array [
1158
- Object {
1159
- "color": "hsl(0, 0%, 100%)",
1160
- "fontSize": 16,
1161
- "fontWeight": "700",
1162
- "textAlign": "center",
1163
- },
1164
- Object {},
1165
- ]
1166
- }
1167
- >
1168
- Sign in
1169
- </Text>
1170
- </View>,
1171
- <View
1172
- style={
1173
- Object {
1174
- "flexDirection": "row",
1175
- "flexWrap": "wrap",
1176
- "justifyContent": "center",
1177
- }
1178
- }
1179
- >
1180
- <View
1181
- accessibilityRole="button"
1182
- accessible={true}
1183
- collapsable={false}
1184
- focusable={true}
1185
- onBlur={[Function]}
1186
- onClick={[Function]}
1187
- onFocus={[Function]}
1188
- onResponderGrant={[Function]}
1189
- onResponderMove={[Function]}
1190
- onResponderRelease={[Function]}
1191
- onResponderTerminate={[Function]}
1192
- onResponderTerminationRequest={[Function]}
1193
- onStartShouldSetResponder={[Function]}
1194
- style={
1195
- Array [
1196
- Object {
1197
- "alignItems": "center",
1198
- "backgroundColor": "transparent",
1199
- "borderRadius": 4,
1200
- "justifyContent": "center",
1201
- "paddingHorizontal": 16,
1202
- "paddingVertical": 12,
1203
- },
1204
- undefined,
1205
- Object {
1206
- "marginVertical": 8,
1207
- "minWidth": "50%",
1208
- },
1209
- ]
1210
- }
1211
- >
1212
- <Text
1213
- style={
1214
- Array [
1215
- Object {
1216
- "color": "hsl(190, 95%, 30%)",
1217
- "fontSize": 16,
1218
- "fontWeight": "700",
1219
- "textAlign": "center",
1220
- },
1221
- undefined,
1222
- ]
1223
- }
1224
- >
1225
- Forgot Password?
1226
- </Text>
1227
- </View>
1228
- <View
1229
- accessibilityRole="button"
1230
- accessible={true}
1231
- collapsable={false}
1232
- focusable={true}
1233
- onBlur={[Function]}
1234
- onClick={[Function]}
1235
- onFocus={[Function]}
1236
- onResponderGrant={[Function]}
1237
- onResponderMove={[Function]}
1238
- onResponderRelease={[Function]}
1239
- onResponderTerminate={[Function]}
1240
- onResponderTerminationRequest={[Function]}
1241
- onStartShouldSetResponder={[Function]}
1242
- style={
1243
- Array [
1244
- Object {
1245
- "alignItems": "center",
1246
- "backgroundColor": "transparent",
1247
- "borderRadius": 4,
1248
- "justifyContent": "center",
1249
- "paddingHorizontal": 16,
1250
- "paddingVertical": 12,
1251
- },
1252
- undefined,
1253
- Object {
1254
- "marginVertical": 8,
1255
- "minWidth": "50%",
1256
- },
1257
- ]
1258
- }
1259
- >
1260
- <Text
1261
- style={
1262
- Array [
1263
- Object {
1264
- "color": "hsl(190, 95%, 30%)",
1265
- "fontSize": 16,
1266
- "fontWeight": "700",
1267
- "textAlign": "center",
1268
- },
1269
- undefined,
1270
- ]
1271
- }
1272
- >
1273
- Create Account
1274
- </Text>
1275
- </View>
1276
- </View>,
1277
- ]
1278
- `;