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