@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,1090 +0,0 @@
1
- // Jest Snapshot v1, https://goo.gl/fbAQLP
2
-
3
- exports[`ConfirmResetPassword renders an error message 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
- Reset Password
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="Code"
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
- Code
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="Code"
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="New 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
- New 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="New Password"
182
- placeholderTextColor="hsl(210, 10%, 40%)"
183
- secureTextEntry={true}
184
- style={
185
- Array [
186
- Object {
187
- "color": "hsl(210, 50%, 10%)",
188
- "flexGrow": 1,
189
- "fontSize": 16,
190
- "paddingHorizontal": 4,
191
- "paddingVertical": 12,
192
- },
193
- Object {},
194
- ]
195
- }
196
- />
197
- <View
198
- accessibilityLabel="Show password"
199
- accessibilityRole="button"
200
- accessibilityState={
201
- Object {
202
- "disabled": false,
203
- }
204
- }
205
- accessible={true}
206
- collapsable={false}
207
- focusable={true}
208
- onBlur={[Function]}
209
- onClick={[Function]}
210
- onFocus={[Function]}
211
- onResponderGrant={[Function]}
212
- onResponderMove={[Function]}
213
- onResponderRelease={[Function]}
214
- onResponderTerminate={[Function]}
215
- onResponderTerminationRequest={[Function]}
216
- onStartShouldSetResponder={[Function]}
217
- style={
218
- Array [
219
- Object {},
220
- undefined,
221
- undefined,
222
- ]
223
- }
224
- >
225
- <Image
226
- accessibilityRole="image"
227
- source={
228
- Object {
229
- "testUri": "../../../src/assets/icons/visibilityOff.png",
230
- }
231
- }
232
- style={
233
- Array [
234
- Object {
235
- "height": 16,
236
- "resizeMode": "contain",
237
- "tintColor": undefined,
238
- "width": 16,
239
- },
240
- Array [
241
- Object {
242
- "tintColor": "hsl(210, 10%, 40%)",
243
- },
244
- undefined,
245
- ],
246
- ]
247
- }
248
- />
249
- </View>
250
- </View>
251
- </View>
252
- <TextInput
253
- accessibilityElementsHidden={true}
254
- pointerEvents="none"
255
- style={
256
- Object {
257
- "backgroundColor": "transparent",
258
- "height": 0.1,
259
- "width": 0.1,
260
- }
261
- }
262
- />
263
- <View
264
- style={
265
- Array [
266
- Object {
267
- "alignItems": "flex-start",
268
- "marginBottom": 8,
269
- },
270
- Array [
271
- Object {},
272
- Object {
273
- "paddingHorizontal": 12,
274
- },
275
- ],
276
- ]
277
- }
278
- testID="amplify__text-field-container"
279
- >
280
- <Text
281
- accessibilityLabel="Confirm Password"
282
- accessibilityRole="text"
283
- style={
284
- Array [
285
- Object {
286
- "fontSize": 16,
287
- "fontWeight": "400",
288
- "lineHeight": 24,
289
- },
290
- Object {
291
- "color": "hsl(210, 50%, 10%)",
292
- },
293
- Array [
294
- Object {
295
- "color": "hsl(210, 25%, 25%)",
296
- "paddingVertical": 8,
297
- },
298
- undefined,
299
- ],
300
- ]
301
- }
302
- >
303
- Confirm Password
304
- </Text>
305
- <View
306
- accessible={true}
307
- style={
308
- Object {
309
- "alignItems": "center",
310
- "borderColor": "hsl(210, 10%, 58%)",
311
- "borderRadius": 4,
312
- "borderWidth": 1,
313
- "flexDirection": "row",
314
- "paddingHorizontal": 8,
315
- }
316
- }
317
- testID="amplify__text-field__input-container"
318
- >
319
- <TextInput
320
- accessibilityState={
321
- Object {
322
- "disabled": false,
323
- }
324
- }
325
- accessible={true}
326
- autoCapitalize="none"
327
- editable={true}
328
- onBlur={[Function]}
329
- onChangeText={[Function]}
330
- placeholder="Confirm Password"
331
- placeholderTextColor="hsl(210, 10%, 40%)"
332
- secureTextEntry={true}
333
- style={
334
- Array [
335
- Object {
336
- "color": "hsl(210, 50%, 10%)",
337
- "flexGrow": 1,
338
- "fontSize": 16,
339
- "paddingHorizontal": 4,
340
- "paddingVertical": 12,
341
- },
342
- Object {},
343
- ]
344
- }
345
- />
346
- <View
347
- accessibilityLabel="Show password"
348
- accessibilityRole="button"
349
- accessibilityState={
350
- Object {
351
- "disabled": false,
352
- }
353
- }
354
- accessible={true}
355
- collapsable={false}
356
- focusable={true}
357
- onBlur={[Function]}
358
- onClick={[Function]}
359
- onFocus={[Function]}
360
- onResponderGrant={[Function]}
361
- onResponderMove={[Function]}
362
- onResponderRelease={[Function]}
363
- onResponderTerminate={[Function]}
364
- onResponderTerminationRequest={[Function]}
365
- onStartShouldSetResponder={[Function]}
366
- style={
367
- Array [
368
- Object {},
369
- undefined,
370
- undefined,
371
- ]
372
- }
373
- >
374
- <Image
375
- accessibilityRole="image"
376
- source={
377
- Object {
378
- "testUri": "../../../src/assets/icons/visibilityOff.png",
379
- }
380
- }
381
- style={
382
- Array [
383
- Object {
384
- "height": 16,
385
- "resizeMode": "contain",
386
- "tintColor": undefined,
387
- "width": 16,
388
- },
389
- Array [
390
- Object {
391
- "tintColor": "hsl(210, 10%, 40%)",
392
- },
393
- undefined,
394
- ],
395
- ]
396
- }
397
- />
398
- </View>
399
- </View>
400
- </View>
401
- <TextInput
402
- accessibilityElementsHidden={true}
403
- pointerEvents="none"
404
- style={
405
- Object {
406
- "backgroundColor": "transparent",
407
- "height": 0.1,
408
- "width": 0.1,
409
- }
410
- }
411
- />
412
- </View>,
413
- <View
414
- accessibilityRole="alert"
415
- style={
416
- Array [
417
- Object {
418
- "alignItems": "center",
419
- "backgroundColor": "hsl(0, 75%, 85%)",
420
- "flexDirection": "row",
421
- "paddingHorizontal": 8,
422
- "paddingVertical": 12,
423
- },
424
- Object {
425
- "marginHorizontal": 12,
426
- },
427
- ]
428
- }
429
- testID="amplify__error-message"
430
- >
431
- <Image
432
- accessibilityRole="image"
433
- source={
434
- Object {
435
- "testUri": "../../../src/assets/icons/error.png",
436
- }
437
- }
438
- style={
439
- Array [
440
- Object {
441
- "height": 20,
442
- "resizeMode": "contain",
443
- "tintColor": undefined,
444
- "width": 20,
445
- },
446
- Array [
447
- Object {
448
- "margin": 8,
449
- "tintColor": "hsl(0, 100%, 20%)",
450
- },
451
- Object {},
452
- ],
453
- ]
454
- }
455
- />
456
- <Text
457
- style={
458
- Array [
459
- Object {
460
- "color": "hsl(0, 100%, 20%)",
461
- "flex": 1,
462
- "fontSize": 16,
463
- "paddingHorizontal": 8,
464
- },
465
- Object {},
466
- ]
467
- }
468
- >
469
- Test error message
470
- </Text>
471
- </View>,
472
- <View
473
- accessibilityRole="button"
474
- accessibilityState={
475
- Object {
476
- "disabled": false,
477
- }
478
- }
479
- accessible={true}
480
- collapsable={false}
481
- focusable={true}
482
- onBlur={[Function]}
483
- onClick={[Function]}
484
- onFocus={[Function]}
485
- onResponderGrant={[Function]}
486
- onResponderMove={[Function]}
487
- onResponderRelease={[Function]}
488
- onResponderTerminate={[Function]}
489
- onResponderTerminationRequest={[Function]}
490
- onStartShouldSetResponder={[Function]}
491
- style={
492
- Array [
493
- Object {
494
- "alignItems": "center",
495
- "backgroundColor": "hsl(190, 95%, 30%)",
496
- "borderRadius": 4,
497
- "justifyContent": "center",
498
- "paddingHorizontal": 16,
499
- "paddingVertical": 12,
500
- },
501
- undefined,
502
- Object {
503
- "margin": 12,
504
- },
505
- ]
506
- }
507
- testID="amplify__button"
508
- >
509
- <Text
510
- style={
511
- Array [
512
- Object {
513
- "color": "hsl(0, 0%, 100%)",
514
- "fontSize": 16,
515
- "fontWeight": "700",
516
- "textAlign": "center",
517
- },
518
- Object {},
519
- ]
520
- }
521
- >
522
- Submit
523
- </Text>
524
- </View>,
525
- <View
526
- accessibilityRole="button"
527
- accessible={true}
528
- collapsable={false}
529
- focusable={true}
530
- onBlur={[Function]}
531
- onClick={[Function]}
532
- onFocus={[Function]}
533
- onResponderGrant={[Function]}
534
- onResponderMove={[Function]}
535
- onResponderRelease={[Function]}
536
- onResponderTerminate={[Function]}
537
- onResponderTerminationRequest={[Function]}
538
- onStartShouldSetResponder={[Function]}
539
- style={
540
- Array [
541
- Object {
542
- "alignItems": "center",
543
- "backgroundColor": "transparent",
544
- "borderColor": "hsl(210, 10%, 58%)",
545
- "borderRadius": 4,
546
- "borderWidth": 1,
547
- "justifyContent": "center",
548
- "paddingHorizontal": 16,
549
- "paddingVertical": 12,
550
- },
551
- undefined,
552
- Object {
553
- "marginHorizontal": 16,
554
- },
555
- ]
556
- }
557
- >
558
- <Text
559
- style={
560
- Array [
561
- Object {
562
- "color": "hsl(210, 50%, 10%)",
563
- "fontSize": 16,
564
- "fontWeight": "700",
565
- "textAlign": "center",
566
- },
567
- Object {},
568
- ]
569
- }
570
- >
571
- Resend Code
572
- </Text>
573
- </View>,
574
- ]
575
- `;
576
-
577
- exports[`ConfirmResetPassword renders as expected 1`] = `
578
- Array [
579
- <Text
580
- accessibilityRole="header"
581
- style={
582
- Array [
583
- Object {
584
- "color": "hsl(210, 50%, 10%)",
585
- },
586
- Object {
587
- "fontSize": 24,
588
- "fontWeight": "500",
589
- "lineHeight": 36,
590
- },
591
- Object {
592
- "marginVertical": 12,
593
- "paddingHorizontal": 12,
594
- },
595
- ]
596
- }
597
- >
598
- Reset Password
599
- </Text>,
600
- <View
601
- style={
602
- Object {
603
- "paddingBottom": 8,
604
- }
605
- }
606
- >
607
- <View
608
- style={
609
- Array [
610
- Object {
611
- "alignItems": "flex-start",
612
- "marginBottom": 8,
613
- },
614
- Object {
615
- "paddingHorizontal": 12,
616
- },
617
- ]
618
- }
619
- testID="amplify__text-field-container"
620
- >
621
- <Text
622
- accessibilityLabel="Code"
623
- accessibilityRole="text"
624
- style={
625
- Array [
626
- Object {
627
- "fontSize": 16,
628
- "fontWeight": "400",
629
- "lineHeight": 24,
630
- },
631
- Object {
632
- "color": "hsl(210, 50%, 10%)",
633
- },
634
- Array [
635
- Object {
636
- "color": "hsl(210, 25%, 25%)",
637
- "paddingVertical": 8,
638
- },
639
- undefined,
640
- ],
641
- ]
642
- }
643
- >
644
- Code
645
- </Text>
646
- <View
647
- accessible={true}
648
- style={
649
- Object {
650
- "alignItems": "center",
651
- "borderColor": "hsl(210, 10%, 58%)",
652
- "borderRadius": 4,
653
- "borderWidth": 1,
654
- "flexDirection": "row",
655
- "paddingHorizontal": 8,
656
- }
657
- }
658
- testID="amplify__text-field__input-container"
659
- >
660
- <TextInput
661
- accessibilityState={
662
- Object {
663
- "disabled": false,
664
- }
665
- }
666
- accessible={true}
667
- autoCapitalize="none"
668
- editable={true}
669
- onBlur={[Function]}
670
- onChangeText={[Function]}
671
- placeholder="Code"
672
- placeholderTextColor="hsl(210, 10%, 40%)"
673
- style={
674
- Array [
675
- Object {
676
- "color": "hsl(210, 50%, 10%)",
677
- "flexGrow": 1,
678
- "fontSize": 16,
679
- "paddingHorizontal": 4,
680
- "paddingVertical": 12,
681
- },
682
- Object {},
683
- ]
684
- }
685
- />
686
- </View>
687
- </View>
688
- <View
689
- style={
690
- Array [
691
- Object {
692
- "alignItems": "flex-start",
693
- "marginBottom": 8,
694
- },
695
- Array [
696
- Object {},
697
- Object {
698
- "paddingHorizontal": 12,
699
- },
700
- ],
701
- ]
702
- }
703
- testID="amplify__text-field-container"
704
- >
705
- <Text
706
- accessibilityLabel="New Password"
707
- accessibilityRole="text"
708
- style={
709
- Array [
710
- Object {
711
- "fontSize": 16,
712
- "fontWeight": "400",
713
- "lineHeight": 24,
714
- },
715
- Object {
716
- "color": "hsl(210, 50%, 10%)",
717
- },
718
- Array [
719
- Object {
720
- "color": "hsl(210, 25%, 25%)",
721
- "paddingVertical": 8,
722
- },
723
- undefined,
724
- ],
725
- ]
726
- }
727
- >
728
- New Password
729
- </Text>
730
- <View
731
- accessible={true}
732
- style={
733
- Object {
734
- "alignItems": "center",
735
- "borderColor": "hsl(210, 10%, 58%)",
736
- "borderRadius": 4,
737
- "borderWidth": 1,
738
- "flexDirection": "row",
739
- "paddingHorizontal": 8,
740
- }
741
- }
742
- testID="amplify__text-field__input-container"
743
- >
744
- <TextInput
745
- accessibilityState={
746
- Object {
747
- "disabled": false,
748
- }
749
- }
750
- accessible={true}
751
- autoCapitalize="none"
752
- editable={true}
753
- onBlur={[Function]}
754
- onChangeText={[Function]}
755
- placeholder="New Password"
756
- placeholderTextColor="hsl(210, 10%, 40%)"
757
- secureTextEntry={true}
758
- style={
759
- Array [
760
- Object {
761
- "color": "hsl(210, 50%, 10%)",
762
- "flexGrow": 1,
763
- "fontSize": 16,
764
- "paddingHorizontal": 4,
765
- "paddingVertical": 12,
766
- },
767
- Object {},
768
- ]
769
- }
770
- />
771
- <View
772
- accessibilityLabel="Show password"
773
- accessibilityRole="button"
774
- accessibilityState={
775
- Object {
776
- "disabled": false,
777
- }
778
- }
779
- accessible={true}
780
- collapsable={false}
781
- focusable={true}
782
- onBlur={[Function]}
783
- onClick={[Function]}
784
- onFocus={[Function]}
785
- onResponderGrant={[Function]}
786
- onResponderMove={[Function]}
787
- onResponderRelease={[Function]}
788
- onResponderTerminate={[Function]}
789
- onResponderTerminationRequest={[Function]}
790
- onStartShouldSetResponder={[Function]}
791
- style={
792
- Array [
793
- Object {},
794
- undefined,
795
- undefined,
796
- ]
797
- }
798
- >
799
- <Image
800
- accessibilityRole="image"
801
- source={
802
- Object {
803
- "testUri": "../../../src/assets/icons/visibilityOff.png",
804
- }
805
- }
806
- style={
807
- Array [
808
- Object {
809
- "height": 16,
810
- "resizeMode": "contain",
811
- "tintColor": undefined,
812
- "width": 16,
813
- },
814
- Array [
815
- Object {
816
- "tintColor": "hsl(210, 10%, 40%)",
817
- },
818
- undefined,
819
- ],
820
- ]
821
- }
822
- />
823
- </View>
824
- </View>
825
- </View>
826
- <TextInput
827
- accessibilityElementsHidden={true}
828
- pointerEvents="none"
829
- style={
830
- Object {
831
- "backgroundColor": "transparent",
832
- "height": 0.1,
833
- "width": 0.1,
834
- }
835
- }
836
- />
837
- <View
838
- style={
839
- Array [
840
- Object {
841
- "alignItems": "flex-start",
842
- "marginBottom": 8,
843
- },
844
- Array [
845
- Object {},
846
- Object {
847
- "paddingHorizontal": 12,
848
- },
849
- ],
850
- ]
851
- }
852
- testID="amplify__text-field-container"
853
- >
854
- <Text
855
- accessibilityLabel="Confirm Password"
856
- accessibilityRole="text"
857
- style={
858
- Array [
859
- Object {
860
- "fontSize": 16,
861
- "fontWeight": "400",
862
- "lineHeight": 24,
863
- },
864
- Object {
865
- "color": "hsl(210, 50%, 10%)",
866
- },
867
- Array [
868
- Object {
869
- "color": "hsl(210, 25%, 25%)",
870
- "paddingVertical": 8,
871
- },
872
- undefined,
873
- ],
874
- ]
875
- }
876
- >
877
- Confirm Password
878
- </Text>
879
- <View
880
- accessible={true}
881
- style={
882
- Object {
883
- "alignItems": "center",
884
- "borderColor": "hsl(210, 10%, 58%)",
885
- "borderRadius": 4,
886
- "borderWidth": 1,
887
- "flexDirection": "row",
888
- "paddingHorizontal": 8,
889
- }
890
- }
891
- testID="amplify__text-field__input-container"
892
- >
893
- <TextInput
894
- accessibilityState={
895
- Object {
896
- "disabled": false,
897
- }
898
- }
899
- accessible={true}
900
- autoCapitalize="none"
901
- editable={true}
902
- onBlur={[Function]}
903
- onChangeText={[Function]}
904
- placeholder="Confirm Password"
905
- placeholderTextColor="hsl(210, 10%, 40%)"
906
- secureTextEntry={true}
907
- style={
908
- Array [
909
- Object {
910
- "color": "hsl(210, 50%, 10%)",
911
- "flexGrow": 1,
912
- "fontSize": 16,
913
- "paddingHorizontal": 4,
914
- "paddingVertical": 12,
915
- },
916
- Object {},
917
- ]
918
- }
919
- />
920
- <View
921
- accessibilityLabel="Show password"
922
- accessibilityRole="button"
923
- accessibilityState={
924
- Object {
925
- "disabled": false,
926
- }
927
- }
928
- accessible={true}
929
- collapsable={false}
930
- focusable={true}
931
- onBlur={[Function]}
932
- onClick={[Function]}
933
- onFocus={[Function]}
934
- onResponderGrant={[Function]}
935
- onResponderMove={[Function]}
936
- onResponderRelease={[Function]}
937
- onResponderTerminate={[Function]}
938
- onResponderTerminationRequest={[Function]}
939
- onStartShouldSetResponder={[Function]}
940
- style={
941
- Array [
942
- Object {},
943
- undefined,
944
- undefined,
945
- ]
946
- }
947
- >
948
- <Image
949
- accessibilityRole="image"
950
- source={
951
- Object {
952
- "testUri": "../../../src/assets/icons/visibilityOff.png",
953
- }
954
- }
955
- style={
956
- Array [
957
- Object {
958
- "height": 16,
959
- "resizeMode": "contain",
960
- "tintColor": undefined,
961
- "width": 16,
962
- },
963
- Array [
964
- Object {
965
- "tintColor": "hsl(210, 10%, 40%)",
966
- },
967
- undefined,
968
- ],
969
- ]
970
- }
971
- />
972
- </View>
973
- </View>
974
- </View>
975
- <TextInput
976
- accessibilityElementsHidden={true}
977
- pointerEvents="none"
978
- style={
979
- Object {
980
- "backgroundColor": "transparent",
981
- "height": 0.1,
982
- "width": 0.1,
983
- }
984
- }
985
- />
986
- </View>,
987
- <View
988
- accessibilityRole="button"
989
- accessibilityState={
990
- Object {
991
- "disabled": false,
992
- }
993
- }
994
- accessible={true}
995
- collapsable={false}
996
- focusable={true}
997
- onBlur={[Function]}
998
- onClick={[Function]}
999
- onFocus={[Function]}
1000
- onResponderGrant={[Function]}
1001
- onResponderMove={[Function]}
1002
- onResponderRelease={[Function]}
1003
- onResponderTerminate={[Function]}
1004
- onResponderTerminationRequest={[Function]}
1005
- onStartShouldSetResponder={[Function]}
1006
- style={
1007
- Array [
1008
- Object {
1009
- "alignItems": "center",
1010
- "backgroundColor": "hsl(190, 95%, 30%)",
1011
- "borderRadius": 4,
1012
- "justifyContent": "center",
1013
- "paddingHorizontal": 16,
1014
- "paddingVertical": 12,
1015
- },
1016
- undefined,
1017
- Object {
1018
- "margin": 12,
1019
- },
1020
- ]
1021
- }
1022
- testID="amplify__button"
1023
- >
1024
- <Text
1025
- style={
1026
- Array [
1027
- Object {
1028
- "color": "hsl(0, 0%, 100%)",
1029
- "fontSize": 16,
1030
- "fontWeight": "700",
1031
- "textAlign": "center",
1032
- },
1033
- Object {},
1034
- ]
1035
- }
1036
- >
1037
- Submit
1038
- </Text>
1039
- </View>,
1040
- <View
1041
- accessibilityRole="button"
1042
- accessible={true}
1043
- collapsable={false}
1044
- focusable={true}
1045
- onBlur={[Function]}
1046
- onClick={[Function]}
1047
- onFocus={[Function]}
1048
- onResponderGrant={[Function]}
1049
- onResponderMove={[Function]}
1050
- onResponderRelease={[Function]}
1051
- onResponderTerminate={[Function]}
1052
- onResponderTerminationRequest={[Function]}
1053
- onStartShouldSetResponder={[Function]}
1054
- style={
1055
- Array [
1056
- Object {
1057
- "alignItems": "center",
1058
- "backgroundColor": "transparent",
1059
- "borderColor": "hsl(210, 10%, 58%)",
1060
- "borderRadius": 4,
1061
- "borderWidth": 1,
1062
- "justifyContent": "center",
1063
- "paddingHorizontal": 16,
1064
- "paddingVertical": 12,
1065
- },
1066
- undefined,
1067
- Object {
1068
- "marginHorizontal": 16,
1069
- },
1070
- ]
1071
- }
1072
- >
1073
- <Text
1074
- style={
1075
- Array [
1076
- Object {
1077
- "color": "hsl(210, 50%, 10%)",
1078
- "fontSize": 16,
1079
- "fontWeight": "700",
1080
- "textAlign": "center",
1081
- },
1082
- Object {},
1083
- ]
1084
- }
1085
- >
1086
- Resend Code
1087
- </Text>
1088
- </View>,
1089
- ]
1090
- `;