@aws-amplify/ui-react-native 1.0.0 → 1.1.0
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.
- package/.eslintrc.js +7 -1
- package/CHANGELOG.md +12 -0
- package/dist/Authenticator/Authenticator.d.ts +162 -0
- package/dist/Authenticator/Authenticator.js +57 -0
- package/dist/Authenticator/Defaults/ConfirmResetPassword/ConfirmResetPassword.d.ts +3 -0
- package/dist/Authenticator/Defaults/ConfirmResetPassword/ConfirmResetPassword.js +28 -0
- package/dist/Authenticator/Defaults/ConfirmResetPassword/index.d.ts +1 -0
- package/dist/Authenticator/Defaults/ConfirmResetPassword/index.js +1 -0
- package/dist/Authenticator/Defaults/ConfirmSignIn/ConfirmSignIn.d.ts +3 -0
- package/dist/Authenticator/Defaults/ConfirmSignIn/ConfirmSignIn.js +28 -0
- package/dist/Authenticator/Defaults/ConfirmSignIn/index.d.ts +1 -0
- package/dist/Authenticator/Defaults/ConfirmSignIn/index.js +1 -0
- package/dist/Authenticator/Defaults/ConfirmSignUp/ConfirmSignUp.d.ts +3 -0
- package/dist/Authenticator/Defaults/ConfirmSignUp/ConfirmSignUp.js +29 -0
- package/dist/Authenticator/Defaults/ConfirmSignUp/index.d.ts +1 -0
- package/dist/Authenticator/Defaults/ConfirmSignUp/index.js +1 -0
- package/dist/Authenticator/Defaults/ConfirmVerifyUser/ConfirmVerifyUser.d.ts +3 -0
- package/dist/Authenticator/Defaults/ConfirmVerifyUser/ConfirmVerifyUser.js +28 -0
- package/dist/Authenticator/Defaults/ConfirmVerifyUser/index.d.ts +1 -0
- package/dist/Authenticator/Defaults/ConfirmVerifyUser/index.js +1 -0
- package/dist/Authenticator/Defaults/ForceNewPassword/ForceNewPassword.d.ts +3 -0
- package/dist/Authenticator/Defaults/ForceNewPassword/ForceNewPassword.js +30 -0
- package/dist/Authenticator/Defaults/ForceNewPassword/index.d.ts +1 -0
- package/dist/Authenticator/Defaults/ForceNewPassword/index.js +1 -0
- package/dist/Authenticator/Defaults/ResetPassword/ResetPassword.d.ts +3 -0
- package/dist/Authenticator/Defaults/ResetPassword/ResetPassword.js +28 -0
- package/dist/Authenticator/Defaults/ResetPassword/index.d.ts +1 -0
- package/dist/Authenticator/Defaults/ResetPassword/index.js +1 -0
- package/dist/Authenticator/Defaults/SetupTOTP/SetupTOTP.d.ts +3 -0
- package/dist/Authenticator/Defaults/SetupTOTP/SetupTOTP.js +55 -0
- package/dist/Authenticator/Defaults/SetupTOTP/index.d.ts +1 -0
- package/dist/Authenticator/Defaults/SetupTOTP/index.js +1 -0
- package/dist/Authenticator/Defaults/SetupTOTP/styles.d.ts +5 -0
- package/dist/Authenticator/Defaults/SetupTOTP/styles.js +5 -0
- package/dist/Authenticator/Defaults/SignIn/SignIn.d.ts +3 -0
- package/dist/Authenticator/Defaults/SignIn/SignIn.js +45 -0
- package/dist/Authenticator/Defaults/SignIn/index.d.ts +1 -0
- package/dist/Authenticator/Defaults/SignIn/index.js +1 -0
- package/dist/Authenticator/Defaults/SignUp/SignUp.d.ts +3 -0
- package/dist/Authenticator/Defaults/SignUp/SignUp.js +38 -0
- package/dist/Authenticator/Defaults/SignUp/index.d.ts +1 -0
- package/dist/Authenticator/Defaults/SignUp/index.js +1 -0
- package/dist/Authenticator/Defaults/VerifyUser/VerifyUser.d.ts +3 -0
- package/dist/Authenticator/Defaults/VerifyUser/VerifyUser.js +29 -0
- package/dist/Authenticator/Defaults/VerifyUser/index.d.ts +1 -0
- package/dist/Authenticator/Defaults/VerifyUser/index.js +1 -0
- package/dist/Authenticator/Defaults/index.d.ts +11 -0
- package/dist/Authenticator/Defaults/index.js +10 -0
- package/dist/Authenticator/Defaults/types.d.ts +103 -0
- package/dist/Authenticator/Defaults/types.js +1 -0
- package/dist/Authenticator/common/DefaultContainer/DefaultContainer.d.ts +3 -0
- package/dist/Authenticator/common/DefaultContainer/DefaultContainer.js +41 -0
- package/dist/Authenticator/common/DefaultContainer/InnerContainer.d.ts +3 -0
- package/dist/Authenticator/common/DefaultContainer/InnerContainer.js +11 -0
- package/dist/Authenticator/common/DefaultContainer/index.d.ts +3 -0
- package/dist/Authenticator/common/DefaultContainer/index.js +2 -0
- package/dist/Authenticator/common/DefaultContainer/styles.d.ts +5 -0
- package/dist/Authenticator/common/DefaultContainer/styles.js +26 -0
- package/dist/Authenticator/common/DefaultContainer/types.d.ts +16 -0
- package/dist/Authenticator/common/DefaultContainer/types.js +1 -0
- package/dist/Authenticator/common/DefaultContent/DefaultContent.d.ts +4 -0
- package/dist/Authenticator/common/DefaultContent/DefaultContent.js +29 -0
- package/dist/Authenticator/common/DefaultContent/index.d.ts +1 -0
- package/dist/Authenticator/common/DefaultContent/index.js +1 -0
- package/dist/Authenticator/common/DefaultContent/styles.d.ts +3 -0
- package/dist/Authenticator/common/DefaultContent/styles.js +50 -0
- package/dist/Authenticator/common/DefaultContent/types.d.ts +52 -0
- package/dist/Authenticator/common/DefaultContent/types.js +1 -0
- package/dist/Authenticator/common/DefaultFooter/DefaultFooter.d.ts +3 -0
- package/dist/Authenticator/common/DefaultFooter/DefaultFooter.js +5 -0
- package/dist/Authenticator/common/DefaultFooter/index.d.ts +2 -0
- package/dist/Authenticator/common/DefaultFooter/index.js +1 -0
- package/dist/Authenticator/common/DefaultFooter/types.d.ts +3 -0
- package/dist/Authenticator/common/DefaultFooter/types.js +1 -0
- package/dist/Authenticator/common/DefaultFormFields/DefaultRadioFormFields.d.ts +3 -0
- package/dist/Authenticator/common/DefaultFormFields/DefaultRadioFormFields.js +24 -0
- package/dist/Authenticator/common/DefaultFormFields/DefaultTextFormFields.d.ts +3 -0
- package/dist/Authenticator/common/DefaultFormFields/DefaultTextFormFields.js +23 -0
- package/dist/Authenticator/common/DefaultFormFields/FieldErrors.d.ts +2 -0
- package/dist/Authenticator/common/DefaultFormFields/FieldErrors.js +12 -0
- package/dist/Authenticator/common/DefaultFormFields/index.d.ts +3 -0
- package/dist/Authenticator/common/DefaultFormFields/index.js +2 -0
- package/dist/Authenticator/common/DefaultFormFields/types.d.ts +19 -0
- package/dist/Authenticator/common/DefaultFormFields/types.js +1 -0
- package/dist/Authenticator/common/DefaultHeader/DefaultHeader.d.ts +3 -0
- package/dist/Authenticator/common/DefaultHeader/DefaultHeader.js +7 -0
- package/dist/Authenticator/common/DefaultHeader/index.d.ts +2 -0
- package/dist/Authenticator/common/DefaultHeader/index.js +1 -0
- package/dist/Authenticator/common/DefaultHeader/types.d.ts +3 -0
- package/dist/Authenticator/common/DefaultHeader/types.js +1 -0
- package/dist/Authenticator/common/FederatedProviderButton/FederatedProviderButton.d.ts +3 -0
- package/dist/Authenticator/common/FederatedProviderButton/FederatedProviderButton.js +13 -0
- package/dist/Authenticator/common/FederatedProviderButton/index.d.ts +2 -0
- package/dist/Authenticator/common/FederatedProviderButton/index.js +1 -0
- package/dist/Authenticator/common/FederatedProviderButton/styles.d.ts +2 -0
- package/dist/Authenticator/common/FederatedProviderButton/styles.js +18 -0
- package/dist/Authenticator/common/FederatedProviderButton/types.d.ts +10 -0
- package/dist/Authenticator/common/FederatedProviderButton/types.js +1 -0
- package/dist/Authenticator/common/FederatedProviderButtons/FederatedProviderButtons.d.ts +3 -0
- package/dist/Authenticator/common/FederatedProviderButtons/FederatedProviderButtons.js +22 -0
- package/dist/Authenticator/common/FederatedProviderButtons/index.d.ts +1 -0
- package/dist/Authenticator/common/FederatedProviderButtons/index.js +1 -0
- package/dist/Authenticator/common/FederatedProviderButtons/styles.d.ts +2 -0
- package/dist/Authenticator/common/FederatedProviderButtons/styles.js +5 -0
- package/dist/Authenticator/common/FederatedProviderButtons/types.d.ts +9 -0
- package/dist/Authenticator/common/FederatedProviderButtons/types.js +1 -0
- package/dist/Authenticator/common/index.d.ts +7 -0
- package/dist/Authenticator/common/index.js +7 -0
- package/dist/Authenticator/hooks/index.d.ts +2 -0
- package/dist/Authenticator/hooks/index.js +2 -0
- package/dist/Authenticator/hooks/types.d.ts +24 -0
- package/dist/Authenticator/hooks/types.js +1 -0
- package/dist/Authenticator/hooks/useFieldValues/constants.d.ts +1 -0
- package/dist/Authenticator/hooks/useFieldValues/constants.js +8 -0
- package/dist/Authenticator/hooks/useFieldValues/index.d.ts +2 -0
- package/dist/Authenticator/hooks/useFieldValues/index.js +2 -0
- package/dist/Authenticator/hooks/useFieldValues/types.d.ts +24 -0
- package/dist/Authenticator/hooks/useFieldValues/types.js +1 -0
- package/dist/Authenticator/hooks/useFieldValues/useFieldValues.d.ts +3 -0
- package/dist/Authenticator/hooks/useFieldValues/useFieldValues.js +80 -0
- package/dist/Authenticator/hooks/useFieldValues/utils.d.ts +18 -0
- package/dist/Authenticator/hooks/useFieldValues/utils.js +98 -0
- package/dist/Authenticator/index.d.ts +4 -0
- package/dist/Authenticator/index.js +4 -0
- package/dist/Authenticator/types.d.ts +14 -0
- package/dist/Authenticator/types.js +1 -0
- package/dist/Authenticator/withAuthenticator.d.ts +3 -0
- package/dist/Authenticator/withAuthenticator.js +11 -0
- package/dist/InAppMessaging/components/BannerMessage/BannerMessage.d.ts +1 -0
- package/dist/InAppMessaging/components/CarouselMessage/CarouselMessage.d.ts +1 -0
- package/dist/InAppMessaging/components/CarouselMessage/CarouselMessageItem.d.ts +1 -0
- package/dist/InAppMessaging/components/FullScreenMessage/FullScreenMessage.d.ts +1 -0
- package/dist/InAppMessaging/components/InAppMessageDisplay/InAppMessageDisplay.d.ts +1 -0
- package/dist/InAppMessaging/components/MessageLayout/MessageLayout.d.ts +1 -0
- package/dist/InAppMessaging/components/MessageWrapper/MessageWrapper.d.ts +1 -0
- package/dist/InAppMessaging/components/ModalMessage/ModalMessage.d.ts +1 -0
- package/dist/__mocks__/react-native-safe-area-context.d.ts +6 -1
- package/dist/__mocks__/react-native-safe-area-context.js +3 -1
- package/dist/assets/icons/amazonLogo.png +0 -0
- package/dist/assets/icons/amazonLogo@2x.png +0 -0
- package/dist/assets/icons/amazonLogo@3x.png +0 -0
- package/dist/assets/icons/appleLogo.png +0 -0
- package/dist/assets/icons/appleLogo@2x.png +0 -0
- package/dist/assets/icons/appleLogo@3x.png +0 -0
- package/dist/assets/icons/checkboxFilled.png +0 -0
- package/dist/assets/icons/checkboxFilled@2x.png +0 -0
- package/dist/assets/icons/checkboxFilled@3x.png +0 -0
- package/dist/assets/icons/checkboxOutline.png +0 -0
- package/dist/assets/icons/checkboxOutline@2x.png +0 -0
- package/dist/assets/icons/checkboxOutline@3x.png +0 -0
- package/dist/assets/icons/close.png +0 -0
- package/dist/assets/icons/close@2x.png +0 -0
- package/dist/assets/icons/close@3x.png +0 -0
- package/dist/assets/icons/copy.png +0 -0
- package/dist/assets/icons/copy@2x.png +0 -0
- package/dist/assets/icons/copy@3x.png +0 -0
- package/dist/assets/icons/error.png +0 -0
- package/dist/assets/icons/error@2x.png +0 -0
- package/dist/assets/icons/error@3x.png +0 -0
- package/dist/assets/icons/facebookLogo.png +0 -0
- package/dist/assets/icons/facebookLogo@2x.png +0 -0
- package/dist/assets/icons/facebookLogo@3x.png +0 -0
- package/dist/assets/icons/googleLogo.png +0 -0
- package/dist/assets/icons/googleLogo@2x.png +0 -0
- package/dist/assets/icons/googleLogo@3x.png +0 -0
- package/dist/assets/icons/index.d.ts +8 -0
- package/dist/assets/icons/index.js +8 -0
- package/dist/assets/icons/index.ts +8 -0
- package/dist/assets/icons/visibilityOff.png +0 -0
- package/dist/assets/icons/visibilityOff@2x.png +0 -0
- package/dist/assets/icons/visibilityOff@3x.png +0 -0
- package/dist/assets/icons/visibilityOn.png +0 -0
- package/dist/assets/icons/visibilityOn@2x.png +0 -0
- package/dist/assets/icons/visibilityOn@3x.png +0 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +2 -0
- package/dist/primitives/Button/Button.d.ts +2 -1
- package/dist/primitives/Button/Button.js +24 -6
- package/dist/primitives/Button/styles.d.ts +2 -1
- package/dist/primitives/Button/styles.js +50 -3
- package/dist/primitives/Button/types.d.ts +13 -2
- package/dist/primitives/Carousel/Carousel.d.ts +1 -0
- package/dist/primitives/Carousel/CarouselPageIndicator.d.ts +1 -0
- package/dist/primitives/Checkbox/Checkbox.d.ts +1 -0
- package/dist/primitives/Checkbox/Checkbox.js +9 -8
- package/dist/primitives/Checkbox/index.d.ts +1 -1
- package/dist/primitives/Checkbox/styles.d.ts +4 -2
- package/dist/primitives/Checkbox/styles.js +23 -5
- package/dist/primitives/Checkbox/types.d.ts +7 -4
- package/dist/primitives/Divider/Divider.d.ts +4 -0
- package/dist/primitives/Divider/Divider.js +17 -0
- package/dist/primitives/Divider/index.d.ts +2 -0
- package/dist/primitives/Divider/index.js +1 -0
- package/dist/primitives/Divider/styles.d.ts +3 -0
- package/dist/primitives/Divider/styles.js +24 -0
- package/dist/primitives/Divider/types.d.ts +10 -0
- package/dist/primitives/Divider/types.js +1 -0
- package/dist/primitives/ErrorMessage/ErrorMessage.d.ts +4 -0
- package/dist/primitives/ErrorMessage/ErrorMessage.js +17 -0
- package/dist/primitives/ErrorMessage/index.d.ts +2 -0
- package/dist/primitives/ErrorMessage/index.js +1 -0
- package/dist/primitives/ErrorMessage/styles.d.ts +3 -0
- package/dist/primitives/ErrorMessage/styles.js +24 -0
- package/dist/primitives/ErrorMessage/types.d.ts +10 -0
- package/dist/primitives/ErrorMessage/types.js +1 -0
- package/dist/primitives/Heading/Heading.d.ts +1 -0
- package/dist/primitives/Heading/Heading.js +5 -2
- package/dist/primitives/Heading/styles.d.ts +2 -1
- package/dist/primitives/Heading/styles.js +45 -12
- package/dist/primitives/Heading/types.d.ts +1 -1
- package/dist/primitives/Icon/Icon.d.ts +2 -1
- package/dist/primitives/Icon/Icon.js +12 -5
- package/dist/primitives/Icon/constants.d.ts +2 -0
- package/dist/primitives/Icon/constants.js +7 -0
- package/dist/primitives/Icon/index.d.ts +2 -1
- package/dist/primitives/Icon/index.js +1 -0
- package/dist/primitives/Icon/styles.d.ts +2 -1
- package/dist/primitives/Icon/styles.js +29 -8
- package/dist/primitives/Icon/types.d.ts +4 -2
- package/dist/primitives/IconButton/IconButton.d.ts +2 -1
- package/dist/primitives/IconButton/IconButton.js +18 -5
- package/dist/primitives/IconButton/styles.d.ts +3 -0
- package/dist/primitives/IconButton/styles.js +17 -1
- package/dist/primitives/IconButton/types.d.ts +4 -2
- package/dist/primitives/Label/Label.d.ts +2 -1
- package/dist/primitives/Label/Label.js +7 -3
- package/dist/primitives/Label/index.d.ts +1 -1
- package/dist/primitives/Label/styles.d.ts +2 -1
- package/dist/primitives/Label/styles.js +40 -3
- package/dist/primitives/Label/types.d.ts +14 -1
- package/dist/primitives/PasswordField/PasswordField.d.ts +3 -0
- package/dist/primitives/PasswordField/PasswordField.js +20 -0
- package/dist/primitives/PasswordField/index.d.ts +2 -0
- package/dist/primitives/PasswordField/index.js +1 -0
- package/dist/primitives/PasswordField/styles.d.ts +3 -0
- package/dist/primitives/PasswordField/styles.js +13 -0
- package/dist/primitives/PasswordField/types.d.ts +23 -0
- package/dist/primitives/PasswordField/types.js +1 -0
- package/dist/primitives/PhoneNumberField/PhoneNumberField.d.ts +3 -0
- package/dist/primitives/PhoneNumberField/PhoneNumberField.js +9 -0
- package/dist/primitives/PhoneNumberField/index.d.ts +2 -0
- package/dist/primitives/PhoneNumberField/index.js +1 -0
- package/dist/primitives/PhoneNumberField/styles.d.ts +3 -0
- package/dist/primitives/PhoneNumberField/styles.js +18 -0
- package/dist/primitives/PhoneNumberField/types.d.ts +5 -0
- package/dist/primitives/PhoneNumberField/types.js +1 -0
- package/dist/primitives/Radio/Radio.d.ts +4 -1
- package/dist/primitives/Radio/Radio.js +20 -10
- package/dist/primitives/Radio/getRadioDimensions.d.ts +9 -3
- package/dist/primitives/Radio/getRadioDimensions.js +16 -4
- package/dist/primitives/Radio/styles.d.ts +2 -1
- package/dist/primitives/Radio/styles.js +57 -44
- package/dist/primitives/Radio/types.d.ts +11 -11
- package/dist/primitives/RadioGroup/RadioGroup.d.ts +3 -0
- package/dist/primitives/RadioGroup/RadioGroup.js +51 -0
- package/dist/primitives/RadioGroup/index.d.ts +2 -0
- package/dist/primitives/RadioGroup/index.js +1 -0
- package/dist/primitives/RadioGroup/styles.d.ts +3 -0
- package/dist/primitives/RadioGroup/styles.js +16 -0
- package/dist/primitives/RadioGroup/types.d.ts +14 -0
- package/dist/primitives/RadioGroup/types.js +1 -0
- package/dist/primitives/Tabs/Tab.d.ts +3 -0
- package/dist/primitives/Tabs/Tab.js +23 -0
- package/dist/primitives/Tabs/Tabs.d.ts +3 -0
- package/dist/primitives/Tabs/Tabs.js +25 -0
- package/dist/primitives/Tabs/index.d.ts +3 -0
- package/dist/primitives/Tabs/index.js +2 -0
- package/dist/primitives/Tabs/styles.d.ts +3 -0
- package/dist/primitives/Tabs/styles.js +50 -0
- package/dist/primitives/Tabs/types.d.ts +45 -0
- package/dist/primitives/Tabs/types.js +1 -0
- package/dist/primitives/TextField/TextField.d.ts +5 -0
- package/dist/primitives/TextField/TextField.js +25 -0
- package/dist/primitives/TextField/index.d.ts +2 -0
- package/dist/primitives/TextField/index.js +1 -0
- package/dist/primitives/TextField/styles.d.ts +3 -0
- package/dist/primitives/TextField/styles.js +39 -0
- package/dist/primitives/TextField/types.d.ts +57 -0
- package/dist/primitives/TextField/types.js +1 -0
- package/dist/primitives/index.d.ts +7 -0
- package/dist/primitives/index.js +7 -0
- package/dist/theme/ThemeContext.d.ts +6 -0
- package/dist/theme/ThemeContext.js +5 -0
- package/dist/theme/ThemeProvider.d.ts +9 -0
- package/dist/theme/ThemeProvider.js +7 -0
- package/dist/theme/createTheme.d.ts +8 -0
- package/dist/theme/createTheme.js +105 -0
- package/dist/theme/defaultTheme.d.ts +3 -0
- package/dist/theme/defaultTheme.js +8 -0
- package/dist/theme/index.d.ts +5 -0
- package/dist/theme/index.js +5 -0
- package/dist/theme/types.d.ts +63 -0
- package/dist/theme/types.js +1 -0
- package/dist/theme/useTheme.d.ts +2 -0
- package/dist/theme/useTheme.js +6 -0
- package/dist/utils/font.d.ts +1 -0
- package/dist/utils/font.js +4 -0
- package/dist/utils/index.d.ts +3 -2
- package/dist/utils/index.js +3 -7
- package/dist/utils/platform.d.ts +193 -0
- package/dist/utils/platform.js +17 -0
- package/dist/utils/utils.d.ts +1 -0
- package/dist/utils/utils.js +3 -0
- package/jest.config.js +1 -0
- package/jest.setup.js +3 -0
- package/package.json +7 -6
- package/src/Authenticator/Authenticator.tsx +106 -0
- package/src/Authenticator/Defaults/ConfirmResetPassword/ConfirmResetPassword.tsx +68 -0
- package/src/Authenticator/Defaults/ConfirmResetPassword/__tests__/ConfirmResetPassword.spec.tsx +88 -0
- package/src/Authenticator/Defaults/ConfirmResetPassword/__tests__/__snapshots__/ConfirmResetPassword.spec.tsx.snap +1048 -0
- package/src/Authenticator/Defaults/ConfirmResetPassword/index.ts +1 -0
- package/src/Authenticator/Defaults/ConfirmSignIn/ConfirmSignIn.tsx +69 -0
- package/src/Authenticator/Defaults/ConfirmSignIn/__tests__/ConfirmSignIn.spec.tsx +77 -0
- package/src/Authenticator/Defaults/ConfirmSignIn/__tests__/__snapshots__/ConfirmSignIn.spec.tsx.snap +508 -0
- package/src/Authenticator/Defaults/ConfirmSignIn/index.ts +1 -0
- package/src/Authenticator/Defaults/ConfirmSignUp/ConfirmSignUp.tsx +72 -0
- package/src/Authenticator/Defaults/ConfirmSignUp/__tests__/ConfirmSignUp.spec.tsx +63 -0
- package/src/Authenticator/Defaults/ConfirmSignUp/__tests__/__snapshots__/ConfirmSignUp.spec.tsx.snap +528 -0
- package/src/Authenticator/Defaults/ConfirmSignUp/index.ts +1 -0
- package/src/Authenticator/Defaults/ConfirmVerifyUser/ConfirmVerifyUser.tsx +68 -0
- package/src/Authenticator/Defaults/ConfirmVerifyUser/__tests__/ConfirmVerifyUser.spec.tsx +70 -0
- package/src/Authenticator/Defaults/ConfirmVerifyUser/__tests__/__snapshots__/ConfirmVerifyUser.spec.tsx.snap +489 -0
- package/src/Authenticator/Defaults/ConfirmVerifyUser/index.ts +1 -0
- package/src/Authenticator/Defaults/ForceNewPassword/ForceNewPassword.tsx +66 -0
- package/src/Authenticator/Defaults/ForceNewPassword/__tests__/ForceNewPassword.spec.tsx +78 -0
- package/src/Authenticator/Defaults/ForceNewPassword/__tests__/__snapshots__/ForceNewPassword.spec.tsx.snap +860 -0
- package/src/Authenticator/Defaults/ForceNewPassword/index.ts +1 -0
- package/src/Authenticator/Defaults/ResetPassword/ResetPassword.tsx +67 -0
- package/src/Authenticator/Defaults/ResetPassword/__tests__/ResetPassword.spec.tsx +77 -0
- package/src/Authenticator/Defaults/ResetPassword/__tests__/__snapshots__/ResetPassword.spec.tsx.snap +508 -0
- package/src/Authenticator/Defaults/ResetPassword/index.ts +1 -0
- package/src/Authenticator/Defaults/SetupTOTP/SetupTOTP.tsx +106 -0
- package/src/Authenticator/Defaults/SetupTOTP/__tests__/SetupTOTP.spec.tsx +131 -0
- package/src/Authenticator/Defaults/SetupTOTP/__tests__/__snapshots__/SetupTOTP.spec.tsx.snap +508 -0
- package/src/Authenticator/Defaults/SetupTOTP/index.ts +1 -0
- package/src/Authenticator/Defaults/SetupTOTP/styles.ts +10 -0
- package/src/Authenticator/Defaults/SignIn/SignIn.tsx +82 -0
- package/src/Authenticator/Defaults/SignIn/__tests__/SignIn.spec.tsx +66 -0
- package/src/Authenticator/Defaults/SignIn/__tests__/__snapshots__/SignIn.spec.tsx.snap +1252 -0
- package/src/Authenticator/Defaults/SignIn/index.ts +1 -0
- package/src/Authenticator/Defaults/SignUp/SignUp.tsx +79 -0
- package/src/Authenticator/Defaults/SignUp/__tests__/SignUp.spec.tsx +101 -0
- package/src/Authenticator/Defaults/SignUp/__tests__/__snapshots__/SignUp.spec.tsx.snap +3019 -0
- package/src/Authenticator/Defaults/SignUp/index.ts +1 -0
- package/src/Authenticator/Defaults/VerifyUser/VerifyUser.tsx +67 -0
- package/src/Authenticator/Defaults/VerifyUser/__tests__/VerifyUser.spec.tsx +106 -0
- package/src/Authenticator/Defaults/VerifyUser/__tests__/__snapshots__/VerifyUser.spec.tsx.snap +678 -0
- package/src/Authenticator/Defaults/VerifyUser/index.ts +1 -0
- package/src/Authenticator/Defaults/index.ts +11 -0
- package/src/Authenticator/Defaults/types.ts +146 -0
- package/src/Authenticator/__tests__/Authenticator.spec.tsx +134 -0
- package/src/Authenticator/__tests__/__snapshots__/Authenticator.spec.tsx.snap +98 -0
- package/src/Authenticator/__tests__/__snapshots__/withAuthenticator.spec.tsx.snap +68 -0
- package/src/Authenticator/__tests__/withAuthenticator.spec.tsx +73 -0
- package/src/Authenticator/common/DefaultContainer/DefaultContainer.tsx +74 -0
- package/src/Authenticator/common/DefaultContainer/InnerContainer.tsx +20 -0
- package/src/Authenticator/common/DefaultContainer/__tests__/DefaultContainer.spec.tsx +19 -0
- package/src/Authenticator/common/DefaultContainer/__tests__/__snapshots__/DefaultContainer.spec.tsx.snap +86 -0
- package/src/Authenticator/common/DefaultContainer/index.ts +3 -0
- package/src/Authenticator/common/DefaultContainer/styles.ts +40 -0
- package/src/Authenticator/common/DefaultContainer/types.ts +29 -0
- package/src/Authenticator/common/DefaultContent/DefaultContent.tsx +92 -0
- package/src/Authenticator/common/DefaultContent/index.ts +1 -0
- package/src/Authenticator/common/DefaultContent/styles.ts +57 -0
- package/src/Authenticator/common/DefaultContent/types.ts +74 -0
- package/src/Authenticator/common/DefaultFooter/DefaultFooter.tsx +11 -0
- package/src/Authenticator/common/DefaultFooter/__tests__/DefaultFooter.spec.tsx +26 -0
- package/src/Authenticator/common/DefaultFooter/__tests__/__snapshots__/DefaultFooter.spec.tsx.snap +43 -0
- package/src/Authenticator/common/DefaultFooter/index.ts +2 -0
- package/src/Authenticator/common/DefaultFooter/types.ts +3 -0
- package/src/Authenticator/common/DefaultFormFields/DefaultRadioFormFields.tsx +45 -0
- package/src/Authenticator/common/DefaultFormFields/DefaultTextFormFields.tsx +60 -0
- package/src/Authenticator/common/DefaultFormFields/FieldErrors.tsx +24 -0
- package/src/Authenticator/common/DefaultFormFields/__tests__/DefaultFormFields.spec.tsx +15 -0
- package/src/Authenticator/common/DefaultFormFields/__tests__/FieldErrors.spec.tsx +29 -0
- package/src/Authenticator/common/DefaultFormFields/__tests__/__snapshots__/DefaultFormFields.spec.tsx.snap +3 -0
- package/src/Authenticator/common/DefaultFormFields/__tests__/__snapshots__/FieldErrors.spec.tsx.snap +32 -0
- package/src/Authenticator/common/DefaultFormFields/index.ts +3 -0
- package/src/Authenticator/common/DefaultFormFields/types.ts +28 -0
- package/src/Authenticator/common/DefaultHeader/DefaultHeader.tsx +16 -0
- package/src/Authenticator/common/DefaultHeader/__tests__/DefaultHeader.spec.tsx +23 -0
- package/src/Authenticator/common/DefaultHeader/__tests__/__snapshots__/DefaultHeader.spec.tsx.snap +24 -0
- package/src/Authenticator/common/DefaultHeader/index.ts +2 -0
- package/src/Authenticator/common/DefaultHeader/types.ts +3 -0
- package/src/Authenticator/common/FederatedProviderButton/FederatedProviderButton.tsx +31 -0
- package/src/Authenticator/common/FederatedProviderButton/__tests__/FederatedProviderButton.spec.tsx +36 -0
- package/src/Authenticator/common/FederatedProviderButton/__tests__/__snapshots__/FederatedProviderButton.spec.tsx.snap +94 -0
- package/src/Authenticator/common/FederatedProviderButton/index.ts +2 -0
- package/src/Authenticator/common/FederatedProviderButton/styles.ts +21 -0
- package/src/Authenticator/common/FederatedProviderButton/types.ts +18 -0
- package/src/Authenticator/common/FederatedProviderButtons/FederatedProviderButtons.tsx +45 -0
- package/src/Authenticator/common/FederatedProviderButtons/__tests__/FederatedProviderButtons.spec.tsx +55 -0
- package/src/Authenticator/common/FederatedProviderButtons/__tests__/__snapshots__/FederatedProviderButtons.spec.tsx.snap +169 -0
- package/src/Authenticator/common/FederatedProviderButtons/index.ts +1 -0
- package/src/Authenticator/common/FederatedProviderButtons/styles.ts +7 -0
- package/src/Authenticator/common/FederatedProviderButtons/types.ts +16 -0
- package/src/Authenticator/common/index.ts +7 -0
- package/src/Authenticator/hooks/index.ts +2 -0
- package/src/Authenticator/hooks/types.ts +40 -0
- package/src/Authenticator/hooks/useFieldValues/__tests__/useFieldValues.spec.ts +300 -0
- package/src/Authenticator/hooks/useFieldValues/__tests__/utils.spec.ts +208 -0
- package/src/Authenticator/hooks/useFieldValues/constants.ts +8 -0
- package/src/Authenticator/hooks/useFieldValues/index.ts +2 -0
- package/src/Authenticator/hooks/useFieldValues/types.ts +35 -0
- package/src/Authenticator/hooks/useFieldValues/useFieldValues.ts +116 -0
- package/src/Authenticator/hooks/useFieldValues/utils.ts +177 -0
- package/src/Authenticator/index.ts +6 -0
- package/src/Authenticator/types.ts +26 -0
- package/src/Authenticator/withAuthenticator.tsx +18 -0
- package/src/InAppMessaging/components/BannerMessage/__tests__/__snapshots__/BannerMessage.spec.tsx.snap +24 -10
- package/src/InAppMessaging/components/ModalMessage/__tests__/__snapshots__/ModalMessage.spec.tsx.snap +37 -16
- package/src/__mocks__/react-native-safe-area-context.ts +4 -1
- package/src/__tests__/__snapshots__/index.spec.ts.snap +11 -0
- package/src/assets/icons/amazonLogo.png +0 -0
- package/src/assets/icons/amazonLogo@2x.png +0 -0
- package/src/assets/icons/amazonLogo@3x.png +0 -0
- package/src/assets/icons/appleLogo.png +0 -0
- package/src/assets/icons/appleLogo@2x.png +0 -0
- package/src/assets/icons/appleLogo@3x.png +0 -0
- package/src/assets/icons/checkboxFilled.png +0 -0
- package/src/assets/icons/checkboxFilled@2x.png +0 -0
- package/src/assets/icons/checkboxFilled@3x.png +0 -0
- package/src/assets/icons/checkboxOutline.png +0 -0
- package/src/assets/icons/checkboxOutline@2x.png +0 -0
- package/src/assets/icons/checkboxOutline@3x.png +0 -0
- package/src/assets/icons/close.png +0 -0
- package/src/assets/icons/close@2x.png +0 -0
- package/src/assets/icons/close@3x.png +0 -0
- package/src/assets/icons/copy.png +0 -0
- package/src/assets/icons/copy@2x.png +0 -0
- package/src/assets/icons/copy@3x.png +0 -0
- package/src/assets/icons/error.png +0 -0
- package/src/assets/icons/error@2x.png +0 -0
- package/src/assets/icons/error@3x.png +0 -0
- package/src/assets/icons/facebookLogo.png +0 -0
- package/src/assets/icons/facebookLogo@2x.png +0 -0
- package/src/assets/icons/facebookLogo@3x.png +0 -0
- package/src/assets/icons/googleLogo.png +0 -0
- package/src/assets/icons/googleLogo@2x.png +0 -0
- package/src/assets/icons/googleLogo@3x.png +0 -0
- package/src/assets/icons/index.ts +8 -0
- package/src/assets/icons/visibilityOff.png +0 -0
- package/src/assets/icons/visibilityOff@2x.png +0 -0
- package/src/assets/icons/visibilityOff@3x.png +0 -0
- package/src/assets/icons/visibilityOn.png +0 -0
- package/src/assets/icons/visibilityOn@2x.png +0 -0
- package/src/assets/icons/visibilityOn@3x.png +0 -0
- package/src/index.ts +15 -0
- package/src/primitives/Button/Button.tsx +51 -6
- package/src/primitives/Button/__tests__/Button.spec.tsx +75 -7
- package/src/primitives/Button/__tests__/__snapshots__/Button.spec.tsx.snap +103 -3
- package/src/primitives/Button/styles.ts +61 -3
- package/src/primitives/Button/types.ts +14 -2
- package/src/primitives/Checkbox/Checkbox.tsx +9 -8
- package/src/primitives/Checkbox/__tests__/Checkbox.spec.tsx +120 -15
- package/src/primitives/Checkbox/__tests__/__snapshots__/Checkbox.spec.tsx.snap +345 -16
- package/src/primitives/Checkbox/index.ts +1 -1
- package/src/primitives/Checkbox/styles.ts +31 -6
- package/src/primitives/Checkbox/types.ts +13 -4
- package/src/primitives/Divider/Divider.tsx +34 -0
- package/src/primitives/Divider/__tests__/Divider.spec.tsx +50 -0
- package/src/primitives/Divider/__tests__/__snapshots__/Divider.spec.tsx.snap +165 -0
- package/src/primitives/Divider/index.ts +2 -0
- package/src/primitives/Divider/styles.ts +29 -0
- package/src/primitives/Divider/types.ts +21 -0
- package/src/primitives/ErrorMessage/ErrorMessage.tsx +44 -0
- package/src/primitives/ErrorMessage/__tests__/ErrorMessage.spec.tsx +60 -0
- package/src/primitives/ErrorMessage/__tests__/__snapshots__/ErrorMessage.spec.tsx.snap +113 -0
- package/src/primitives/ErrorMessage/index.ts +2 -0
- package/src/primitives/ErrorMessage/styles.ts +32 -0
- package/src/primitives/ErrorMessage/types.ts +18 -0
- package/src/primitives/Heading/Heading.tsx +7 -2
- package/src/primitives/Heading/__tests__/Heading.spec.tsx +51 -14
- package/src/primitives/Heading/__tests__/__snapshots__/Heading.spec.tsx.snap +44 -23
- package/src/primitives/Heading/styles.ts +51 -12
- package/src/primitives/Heading/types.ts +1 -1
- package/src/primitives/Icon/Icon.tsx +16 -4
- package/src/primitives/Icon/__tests__/Icon.spec.tsx +80 -5
- package/src/primitives/Icon/__tests__/__snapshots__/Icon.spec.tsx.snap +81 -6
- package/src/primitives/Icon/constants.ts +9 -0
- package/src/primitives/Icon/index.ts +2 -1
- package/src/primitives/Icon/styles.ts +38 -7
- package/src/primitives/Icon/types.ts +5 -2
- package/src/primitives/IconButton/IconButton.tsx +37 -5
- package/src/primitives/IconButton/__tests__/IconButton.spec.tsx +57 -9
- package/src/primitives/IconButton/__tests__/__snapshots__/IconButton.spec.tsx.snap +125 -4
- package/src/primitives/IconButton/styles.ts +25 -0
- package/src/primitives/IconButton/types.ts +4 -1
- package/src/primitives/Label/Label.tsx +9 -6
- package/src/primitives/Label/__tests__/Label.spec.tsx +61 -8
- package/src/primitives/Label/__tests__/__snapshots__/Label.spec.tsx.snap +61 -9
- package/src/primitives/Label/index.ts +1 -1
- package/src/primitives/Label/styles.ts +45 -3
- package/src/primitives/Label/types.ts +25 -2
- package/src/primitives/PasswordField/PasswordField.tsx +57 -0
- package/src/primitives/PasswordField/__tests__/PasswordField.spec.tsx +110 -0
- package/src/primitives/PasswordField/__tests__/__snapshots__/PasswordField.spec.tsx.snap +629 -0
- package/src/primitives/PasswordField/index.ts +2 -0
- package/src/primitives/PasswordField/styles.ts +20 -0
- package/src/primitives/PasswordField/types.ts +27 -0
- package/src/primitives/PhoneNumberField/PhoneNumberField.tsx +28 -0
- package/src/primitives/PhoneNumberField/__tests__/PhoneNumberField.spec.tsx +53 -0
- package/src/primitives/PhoneNumberField/__tests__/__snapshots__/PhoneNumberField.spec.tsx.snap +185 -0
- package/src/primitives/PhoneNumberField/index.ts +2 -0
- package/src/primitives/PhoneNumberField/styles.ts +23 -0
- package/src/primitives/PhoneNumberField/types.ts +6 -0
- package/src/primitives/Radio/Radio.tsx +35 -14
- package/src/primitives/Radio/__tests__/Radio.spec.tsx +109 -15
- package/src/primitives/Radio/__tests__/__snapshots__/Radio.spec.tsx.snap +149 -44
- package/src/primitives/Radio/getRadioDimensions.ts +20 -7
- package/src/primitives/Radio/styles.ts +63 -45
- package/src/primitives/Radio/types.ts +12 -11
- package/src/primitives/RadioGroup/RadioGroup.tsx +108 -0
- package/src/primitives/RadioGroup/__tests__/RadioGroup.spec.tsx +183 -0
- package/src/primitives/RadioGroup/__tests__/__snapshots__/RadioGroup.spec.tsx.snap +1741 -0
- package/src/primitives/RadioGroup/index.ts +2 -0
- package/src/primitives/RadioGroup/styles.ts +21 -0
- package/src/primitives/RadioGroup/types.ts +27 -0
- package/src/primitives/Tabs/Tab.tsx +49 -0
- package/src/primitives/Tabs/Tabs.tsx +43 -0
- package/src/primitives/Tabs/__tests__/Tab.spec.tsx +68 -0
- package/src/primitives/Tabs/__tests__/Tabs.spec.tsx +81 -0
- package/src/primitives/Tabs/__tests__/__snapshots__/Tab.spec.tsx.snap +298 -0
- package/src/primitives/Tabs/__tests__/__snapshots__/Tabs.spec.tsx.snap +175 -0
- package/src/primitives/Tabs/index.ts +3 -0
- package/src/primitives/Tabs/styles.ts +62 -0
- package/src/primitives/Tabs/types.ts +51 -0
- package/src/primitives/TextField/TextField.tsx +77 -0
- package/src/primitives/TextField/__tests__/TextField.spec.tsx +153 -0
- package/src/primitives/TextField/__tests__/__snapshots__/TextField.spec.tsx.snap +507 -0
- package/src/primitives/TextField/index.ts +2 -0
- package/src/primitives/TextField/styles.ts +47 -0
- package/src/primitives/TextField/types.ts +66 -0
- package/src/primitives/index.ts +7 -0
- package/src/theme/ThemeContext.tsx +12 -0
- package/src/theme/ThemeProvider.tsx +26 -0
- package/src/theme/__tests__/ThemeProvider.spec.tsx +23 -0
- package/src/theme/__tests__/__snapshots__/useTheme.spec.tsx.snap +226 -0
- package/src/theme/__tests__/createTheme.spec.ts +196 -0
- package/src/theme/__tests__/useTheme.spec.tsx +51 -0
- package/src/theme/createTheme.ts +130 -0
- package/src/theme/defaultTheme.ts +11 -0
- package/src/theme/index.ts +5 -0
- package/src/theme/types/style-dictionary.d.ts +21 -0
- package/src/theme/types.ts +98 -0
- package/src/theme/useTheme.ts +9 -0
- package/src/utils/font.ts +6 -0
- package/src/utils/index.ts +3 -10
- package/src/utils/platform.ts +21 -0
- package/src/utils/utils.ts +3 -0
|
@@ -0,0 +1,1048 @@
|
|
|
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, 8%, 55%)",
|
|
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
|
+
selectionColor="hsl(210, 50%, 10%)"
|
|
100
|
+
style={
|
|
101
|
+
Array [
|
|
102
|
+
Object {
|
|
103
|
+
"color": "hsl(210, 50%, 10%)",
|
|
104
|
+
"flexGrow": 1,
|
|
105
|
+
"fontSize": 16,
|
|
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
|
+
},
|
|
120
|
+
Array [
|
|
121
|
+
Object {},
|
|
122
|
+
Object {
|
|
123
|
+
"paddingHorizontal": 12,
|
|
124
|
+
},
|
|
125
|
+
],
|
|
126
|
+
]
|
|
127
|
+
}
|
|
128
|
+
testID="amplify__text-field-container"
|
|
129
|
+
>
|
|
130
|
+
<Text
|
|
131
|
+
accessibilityLabel="New Password"
|
|
132
|
+
accessibilityRole="text"
|
|
133
|
+
style={
|
|
134
|
+
Array [
|
|
135
|
+
Object {
|
|
136
|
+
"fontSize": 14,
|
|
137
|
+
"fontWeight": "400",
|
|
138
|
+
"lineHeight": 21,
|
|
139
|
+
},
|
|
140
|
+
Object {
|
|
141
|
+
"color": "hsl(210, 50%, 10%)",
|
|
142
|
+
},
|
|
143
|
+
Array [
|
|
144
|
+
Object {
|
|
145
|
+
"color": "hsl(210, 25%, 25%)",
|
|
146
|
+
"lineHeight": 21,
|
|
147
|
+
"padding": 4,
|
|
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, 8%, 55%)",
|
|
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
|
+
selectionColor="hsl(210, 50%, 10%)"
|
|
185
|
+
style={
|
|
186
|
+
Array [
|
|
187
|
+
Object {
|
|
188
|
+
"color": "hsl(210, 50%, 10%)",
|
|
189
|
+
"flexGrow": 1,
|
|
190
|
+
"fontSize": 16,
|
|
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
|
+
null,
|
|
221
|
+
null,
|
|
222
|
+
undefined,
|
|
223
|
+
]
|
|
224
|
+
}
|
|
225
|
+
>
|
|
226
|
+
<Image
|
|
227
|
+
accessibilityRole="image"
|
|
228
|
+
source={
|
|
229
|
+
Object {
|
|
230
|
+
"testUri": "../../../src/assets/icons/visibilityOff.png",
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
style={
|
|
234
|
+
Array [
|
|
235
|
+
Object {
|
|
236
|
+
"height": 16,
|
|
237
|
+
"resizeMode": "contain",
|
|
238
|
+
"tintColor": undefined,
|
|
239
|
+
"width": 16,
|
|
240
|
+
},
|
|
241
|
+
Array [
|
|
242
|
+
Object {
|
|
243
|
+
"tintColor": "hsl(210, 10%, 40%)",
|
|
244
|
+
},
|
|
245
|
+
undefined,
|
|
246
|
+
],
|
|
247
|
+
]
|
|
248
|
+
}
|
|
249
|
+
/>
|
|
250
|
+
</View>
|
|
251
|
+
</View>
|
|
252
|
+
</View>
|
|
253
|
+
<View
|
|
254
|
+
style={
|
|
255
|
+
Array [
|
|
256
|
+
Object {
|
|
257
|
+
"alignItems": "flex-start",
|
|
258
|
+
},
|
|
259
|
+
Array [
|
|
260
|
+
Object {},
|
|
261
|
+
Object {
|
|
262
|
+
"paddingHorizontal": 12,
|
|
263
|
+
},
|
|
264
|
+
],
|
|
265
|
+
]
|
|
266
|
+
}
|
|
267
|
+
testID="amplify__text-field-container"
|
|
268
|
+
>
|
|
269
|
+
<Text
|
|
270
|
+
accessibilityLabel="Confirm Password"
|
|
271
|
+
accessibilityRole="text"
|
|
272
|
+
style={
|
|
273
|
+
Array [
|
|
274
|
+
Object {
|
|
275
|
+
"fontSize": 14,
|
|
276
|
+
"fontWeight": "400",
|
|
277
|
+
"lineHeight": 21,
|
|
278
|
+
},
|
|
279
|
+
Object {
|
|
280
|
+
"color": "hsl(210, 50%, 10%)",
|
|
281
|
+
},
|
|
282
|
+
Array [
|
|
283
|
+
Object {
|
|
284
|
+
"color": "hsl(210, 25%, 25%)",
|
|
285
|
+
"lineHeight": 21,
|
|
286
|
+
"padding": 4,
|
|
287
|
+
},
|
|
288
|
+
undefined,
|
|
289
|
+
],
|
|
290
|
+
]
|
|
291
|
+
}
|
|
292
|
+
>
|
|
293
|
+
Confirm Password
|
|
294
|
+
</Text>
|
|
295
|
+
<View
|
|
296
|
+
accessible={true}
|
|
297
|
+
style={
|
|
298
|
+
Object {
|
|
299
|
+
"alignItems": "center",
|
|
300
|
+
"borderColor": "hsl(210, 8%, 55%)",
|
|
301
|
+
"borderRadius": 4,
|
|
302
|
+
"borderWidth": 1,
|
|
303
|
+
"flexDirection": "row",
|
|
304
|
+
"paddingHorizontal": 8,
|
|
305
|
+
}
|
|
306
|
+
}
|
|
307
|
+
testID="amplify__text-field__input-container"
|
|
308
|
+
>
|
|
309
|
+
<TextInput
|
|
310
|
+
accessibilityState={
|
|
311
|
+
Object {
|
|
312
|
+
"disabled": false,
|
|
313
|
+
}
|
|
314
|
+
}
|
|
315
|
+
accessible={true}
|
|
316
|
+
autoCapitalize="none"
|
|
317
|
+
editable={true}
|
|
318
|
+
onBlur={[Function]}
|
|
319
|
+
onChangeText={[Function]}
|
|
320
|
+
placeholder="Confirm Password"
|
|
321
|
+
placeholderTextColor="hsl(210, 10%, 40%)"
|
|
322
|
+
secureTextEntry={true}
|
|
323
|
+
selectionColor="hsl(210, 50%, 10%)"
|
|
324
|
+
style={
|
|
325
|
+
Array [
|
|
326
|
+
Object {
|
|
327
|
+
"color": "hsl(210, 50%, 10%)",
|
|
328
|
+
"flexGrow": 1,
|
|
329
|
+
"fontSize": 16,
|
|
330
|
+
"paddingVertical": 12,
|
|
331
|
+
},
|
|
332
|
+
Object {},
|
|
333
|
+
]
|
|
334
|
+
}
|
|
335
|
+
/>
|
|
336
|
+
<View
|
|
337
|
+
accessibilityLabel="Show password"
|
|
338
|
+
accessibilityRole="button"
|
|
339
|
+
accessibilityState={
|
|
340
|
+
Object {
|
|
341
|
+
"disabled": false,
|
|
342
|
+
}
|
|
343
|
+
}
|
|
344
|
+
accessible={true}
|
|
345
|
+
collapsable={false}
|
|
346
|
+
focusable={true}
|
|
347
|
+
onBlur={[Function]}
|
|
348
|
+
onClick={[Function]}
|
|
349
|
+
onFocus={[Function]}
|
|
350
|
+
onResponderGrant={[Function]}
|
|
351
|
+
onResponderMove={[Function]}
|
|
352
|
+
onResponderRelease={[Function]}
|
|
353
|
+
onResponderTerminate={[Function]}
|
|
354
|
+
onResponderTerminationRequest={[Function]}
|
|
355
|
+
onStartShouldSetResponder={[Function]}
|
|
356
|
+
style={
|
|
357
|
+
Array [
|
|
358
|
+
Object {},
|
|
359
|
+
null,
|
|
360
|
+
null,
|
|
361
|
+
undefined,
|
|
362
|
+
]
|
|
363
|
+
}
|
|
364
|
+
>
|
|
365
|
+
<Image
|
|
366
|
+
accessibilityRole="image"
|
|
367
|
+
source={
|
|
368
|
+
Object {
|
|
369
|
+
"testUri": "../../../src/assets/icons/visibilityOff.png",
|
|
370
|
+
}
|
|
371
|
+
}
|
|
372
|
+
style={
|
|
373
|
+
Array [
|
|
374
|
+
Object {
|
|
375
|
+
"height": 16,
|
|
376
|
+
"resizeMode": "contain",
|
|
377
|
+
"tintColor": undefined,
|
|
378
|
+
"width": 16,
|
|
379
|
+
},
|
|
380
|
+
Array [
|
|
381
|
+
Object {
|
|
382
|
+
"tintColor": "hsl(210, 10%, 40%)",
|
|
383
|
+
},
|
|
384
|
+
undefined,
|
|
385
|
+
],
|
|
386
|
+
]
|
|
387
|
+
}
|
|
388
|
+
/>
|
|
389
|
+
</View>
|
|
390
|
+
</View>
|
|
391
|
+
</View>
|
|
392
|
+
</View>,
|
|
393
|
+
<View
|
|
394
|
+
accessibilityRole="alert"
|
|
395
|
+
style={
|
|
396
|
+
Array [
|
|
397
|
+
Object {
|
|
398
|
+
"alignItems": "center",
|
|
399
|
+
"backgroundColor": "hsl(0, 75%, 85%)",
|
|
400
|
+
"flexDirection": "row",
|
|
401
|
+
"paddingHorizontal": 8,
|
|
402
|
+
"paddingVertical": 32,
|
|
403
|
+
},
|
|
404
|
+
Object {
|
|
405
|
+
"marginVertical": 12,
|
|
406
|
+
},
|
|
407
|
+
]
|
|
408
|
+
}
|
|
409
|
+
>
|
|
410
|
+
<Image
|
|
411
|
+
accessibilityRole="image"
|
|
412
|
+
source={
|
|
413
|
+
Object {
|
|
414
|
+
"testUri": "../../../src/assets/icons/error.png",
|
|
415
|
+
}
|
|
416
|
+
}
|
|
417
|
+
style={
|
|
418
|
+
Array [
|
|
419
|
+
Object {
|
|
420
|
+
"height": 20,
|
|
421
|
+
"resizeMode": "contain",
|
|
422
|
+
"tintColor": undefined,
|
|
423
|
+
"width": 20,
|
|
424
|
+
},
|
|
425
|
+
Object {
|
|
426
|
+
"margin": 8,
|
|
427
|
+
},
|
|
428
|
+
]
|
|
429
|
+
}
|
|
430
|
+
/>
|
|
431
|
+
<Text
|
|
432
|
+
style={
|
|
433
|
+
Array [
|
|
434
|
+
Object {
|
|
435
|
+
"color": "hsl(0, 100%, 20%)",
|
|
436
|
+
"flex": 1,
|
|
437
|
+
"paddingHorizontal": 8,
|
|
438
|
+
},
|
|
439
|
+
Object {},
|
|
440
|
+
]
|
|
441
|
+
}
|
|
442
|
+
>
|
|
443
|
+
Test error message
|
|
444
|
+
</Text>
|
|
445
|
+
</View>,
|
|
446
|
+
<View
|
|
447
|
+
accessibilityRole="button"
|
|
448
|
+
accessible={true}
|
|
449
|
+
collapsable={false}
|
|
450
|
+
focusable={true}
|
|
451
|
+
onBlur={[Function]}
|
|
452
|
+
onClick={[Function]}
|
|
453
|
+
onFocus={[Function]}
|
|
454
|
+
onResponderGrant={[Function]}
|
|
455
|
+
onResponderMove={[Function]}
|
|
456
|
+
onResponderRelease={[Function]}
|
|
457
|
+
onResponderTerminate={[Function]}
|
|
458
|
+
onResponderTerminationRequest={[Function]}
|
|
459
|
+
onStartShouldSetResponder={[Function]}
|
|
460
|
+
style={
|
|
461
|
+
Array [
|
|
462
|
+
Object {
|
|
463
|
+
"alignItems": "center",
|
|
464
|
+
"backgroundColor": "transparent",
|
|
465
|
+
"borderRadius": 4,
|
|
466
|
+
"justifyContent": "center",
|
|
467
|
+
"paddingHorizontal": 16,
|
|
468
|
+
"paddingVertical": 12,
|
|
469
|
+
},
|
|
470
|
+
Object {
|
|
471
|
+
"backgroundColor": "hsl(190, 95%, 30%)",
|
|
472
|
+
},
|
|
473
|
+
null,
|
|
474
|
+
null,
|
|
475
|
+
Object {
|
|
476
|
+
"marginHorizontal": 16,
|
|
477
|
+
"marginVertical": 12,
|
|
478
|
+
},
|
|
479
|
+
]
|
|
480
|
+
}
|
|
481
|
+
>
|
|
482
|
+
<Text
|
|
483
|
+
style={
|
|
484
|
+
Array [
|
|
485
|
+
Object {
|
|
486
|
+
"color": "hsl(0, 0%, 100%)",
|
|
487
|
+
"fontSize": 16,
|
|
488
|
+
"fontWeight": "700",
|
|
489
|
+
"textAlign": "center",
|
|
490
|
+
},
|
|
491
|
+
Object {},
|
|
492
|
+
]
|
|
493
|
+
}
|
|
494
|
+
>
|
|
495
|
+
Submit
|
|
496
|
+
</Text>
|
|
497
|
+
</View>,
|
|
498
|
+
<View
|
|
499
|
+
accessibilityRole="button"
|
|
500
|
+
accessible={true}
|
|
501
|
+
collapsable={false}
|
|
502
|
+
focusable={true}
|
|
503
|
+
onBlur={[Function]}
|
|
504
|
+
onClick={[Function]}
|
|
505
|
+
onFocus={[Function]}
|
|
506
|
+
onResponderGrant={[Function]}
|
|
507
|
+
onResponderMove={[Function]}
|
|
508
|
+
onResponderRelease={[Function]}
|
|
509
|
+
onResponderTerminate={[Function]}
|
|
510
|
+
onResponderTerminationRequest={[Function]}
|
|
511
|
+
onStartShouldSetResponder={[Function]}
|
|
512
|
+
style={
|
|
513
|
+
Array [
|
|
514
|
+
Object {
|
|
515
|
+
"alignItems": "center",
|
|
516
|
+
"backgroundColor": "transparent",
|
|
517
|
+
"borderRadius": 4,
|
|
518
|
+
"justifyContent": "center",
|
|
519
|
+
"paddingHorizontal": 16,
|
|
520
|
+
"paddingVertical": 12,
|
|
521
|
+
},
|
|
522
|
+
Object {
|
|
523
|
+
"borderColor": "hsl(210, 8%, 55%)",
|
|
524
|
+
"borderWidth": 1,
|
|
525
|
+
},
|
|
526
|
+
null,
|
|
527
|
+
null,
|
|
528
|
+
Object {
|
|
529
|
+
"marginHorizontal": 16,
|
|
530
|
+
},
|
|
531
|
+
]
|
|
532
|
+
}
|
|
533
|
+
>
|
|
534
|
+
<Text
|
|
535
|
+
style={
|
|
536
|
+
Array [
|
|
537
|
+
Object {
|
|
538
|
+
"color": "hsl(210, 50%, 10%)",
|
|
539
|
+
"fontSize": 16,
|
|
540
|
+
"fontWeight": "700",
|
|
541
|
+
"textAlign": "center",
|
|
542
|
+
},
|
|
543
|
+
Object {},
|
|
544
|
+
]
|
|
545
|
+
}
|
|
546
|
+
>
|
|
547
|
+
Resend Code
|
|
548
|
+
</Text>
|
|
549
|
+
</View>,
|
|
550
|
+
]
|
|
551
|
+
`;
|
|
552
|
+
|
|
553
|
+
exports[`ConfirmResetPassword renders as expected 1`] = `
|
|
554
|
+
Array [
|
|
555
|
+
<Text
|
|
556
|
+
accessibilityRole="header"
|
|
557
|
+
style={
|
|
558
|
+
Array [
|
|
559
|
+
Object {
|
|
560
|
+
"color": "hsl(210, 50%, 10%)",
|
|
561
|
+
},
|
|
562
|
+
Object {
|
|
563
|
+
"fontSize": 24,
|
|
564
|
+
"fontWeight": "300",
|
|
565
|
+
"lineHeight": 36,
|
|
566
|
+
},
|
|
567
|
+
Object {
|
|
568
|
+
"marginVertical": 12,
|
|
569
|
+
"paddingHorizontal": 12,
|
|
570
|
+
},
|
|
571
|
+
]
|
|
572
|
+
}
|
|
573
|
+
>
|
|
574
|
+
Reset Password
|
|
575
|
+
</Text>,
|
|
576
|
+
<View
|
|
577
|
+
style={
|
|
578
|
+
Object {
|
|
579
|
+
"paddingBottom": 8,
|
|
580
|
+
}
|
|
581
|
+
}
|
|
582
|
+
>
|
|
583
|
+
<View
|
|
584
|
+
style={
|
|
585
|
+
Array [
|
|
586
|
+
Object {
|
|
587
|
+
"alignItems": "flex-start",
|
|
588
|
+
},
|
|
589
|
+
Object {
|
|
590
|
+
"paddingHorizontal": 12,
|
|
591
|
+
},
|
|
592
|
+
]
|
|
593
|
+
}
|
|
594
|
+
testID="amplify__text-field-container"
|
|
595
|
+
>
|
|
596
|
+
<Text
|
|
597
|
+
accessibilityLabel="Code"
|
|
598
|
+
accessibilityRole="text"
|
|
599
|
+
style={
|
|
600
|
+
Array [
|
|
601
|
+
Object {
|
|
602
|
+
"fontSize": 14,
|
|
603
|
+
"fontWeight": "400",
|
|
604
|
+
"lineHeight": 21,
|
|
605
|
+
},
|
|
606
|
+
Object {
|
|
607
|
+
"color": "hsl(210, 50%, 10%)",
|
|
608
|
+
},
|
|
609
|
+
Array [
|
|
610
|
+
Object {
|
|
611
|
+
"color": "hsl(210, 25%, 25%)",
|
|
612
|
+
"lineHeight": 21,
|
|
613
|
+
"padding": 4,
|
|
614
|
+
},
|
|
615
|
+
undefined,
|
|
616
|
+
],
|
|
617
|
+
]
|
|
618
|
+
}
|
|
619
|
+
>
|
|
620
|
+
Code
|
|
621
|
+
</Text>
|
|
622
|
+
<View
|
|
623
|
+
accessible={true}
|
|
624
|
+
style={
|
|
625
|
+
Object {
|
|
626
|
+
"alignItems": "center",
|
|
627
|
+
"borderColor": "hsl(210, 8%, 55%)",
|
|
628
|
+
"borderRadius": 4,
|
|
629
|
+
"borderWidth": 1,
|
|
630
|
+
"flexDirection": "row",
|
|
631
|
+
"paddingHorizontal": 8,
|
|
632
|
+
}
|
|
633
|
+
}
|
|
634
|
+
testID="amplify__text-field__input-container"
|
|
635
|
+
>
|
|
636
|
+
<TextInput
|
|
637
|
+
accessibilityState={
|
|
638
|
+
Object {
|
|
639
|
+
"disabled": false,
|
|
640
|
+
}
|
|
641
|
+
}
|
|
642
|
+
accessible={true}
|
|
643
|
+
autoCapitalize="none"
|
|
644
|
+
editable={true}
|
|
645
|
+
onBlur={[Function]}
|
|
646
|
+
onChangeText={[Function]}
|
|
647
|
+
placeholder="Code"
|
|
648
|
+
placeholderTextColor="hsl(210, 10%, 40%)"
|
|
649
|
+
selectionColor="hsl(210, 50%, 10%)"
|
|
650
|
+
style={
|
|
651
|
+
Array [
|
|
652
|
+
Object {
|
|
653
|
+
"color": "hsl(210, 50%, 10%)",
|
|
654
|
+
"flexGrow": 1,
|
|
655
|
+
"fontSize": 16,
|
|
656
|
+
"paddingVertical": 12,
|
|
657
|
+
},
|
|
658
|
+
Object {},
|
|
659
|
+
]
|
|
660
|
+
}
|
|
661
|
+
/>
|
|
662
|
+
</View>
|
|
663
|
+
</View>
|
|
664
|
+
<View
|
|
665
|
+
style={
|
|
666
|
+
Array [
|
|
667
|
+
Object {
|
|
668
|
+
"alignItems": "flex-start",
|
|
669
|
+
},
|
|
670
|
+
Array [
|
|
671
|
+
Object {},
|
|
672
|
+
Object {
|
|
673
|
+
"paddingHorizontal": 12,
|
|
674
|
+
},
|
|
675
|
+
],
|
|
676
|
+
]
|
|
677
|
+
}
|
|
678
|
+
testID="amplify__text-field-container"
|
|
679
|
+
>
|
|
680
|
+
<Text
|
|
681
|
+
accessibilityLabel="New Password"
|
|
682
|
+
accessibilityRole="text"
|
|
683
|
+
style={
|
|
684
|
+
Array [
|
|
685
|
+
Object {
|
|
686
|
+
"fontSize": 14,
|
|
687
|
+
"fontWeight": "400",
|
|
688
|
+
"lineHeight": 21,
|
|
689
|
+
},
|
|
690
|
+
Object {
|
|
691
|
+
"color": "hsl(210, 50%, 10%)",
|
|
692
|
+
},
|
|
693
|
+
Array [
|
|
694
|
+
Object {
|
|
695
|
+
"color": "hsl(210, 25%, 25%)",
|
|
696
|
+
"lineHeight": 21,
|
|
697
|
+
"padding": 4,
|
|
698
|
+
},
|
|
699
|
+
undefined,
|
|
700
|
+
],
|
|
701
|
+
]
|
|
702
|
+
}
|
|
703
|
+
>
|
|
704
|
+
New Password
|
|
705
|
+
</Text>
|
|
706
|
+
<View
|
|
707
|
+
accessible={true}
|
|
708
|
+
style={
|
|
709
|
+
Object {
|
|
710
|
+
"alignItems": "center",
|
|
711
|
+
"borderColor": "hsl(210, 8%, 55%)",
|
|
712
|
+
"borderRadius": 4,
|
|
713
|
+
"borderWidth": 1,
|
|
714
|
+
"flexDirection": "row",
|
|
715
|
+
"paddingHorizontal": 8,
|
|
716
|
+
}
|
|
717
|
+
}
|
|
718
|
+
testID="amplify__text-field__input-container"
|
|
719
|
+
>
|
|
720
|
+
<TextInput
|
|
721
|
+
accessibilityState={
|
|
722
|
+
Object {
|
|
723
|
+
"disabled": false,
|
|
724
|
+
}
|
|
725
|
+
}
|
|
726
|
+
accessible={true}
|
|
727
|
+
autoCapitalize="none"
|
|
728
|
+
editable={true}
|
|
729
|
+
onBlur={[Function]}
|
|
730
|
+
onChangeText={[Function]}
|
|
731
|
+
placeholder="New Password"
|
|
732
|
+
placeholderTextColor="hsl(210, 10%, 40%)"
|
|
733
|
+
secureTextEntry={true}
|
|
734
|
+
selectionColor="hsl(210, 50%, 10%)"
|
|
735
|
+
style={
|
|
736
|
+
Array [
|
|
737
|
+
Object {
|
|
738
|
+
"color": "hsl(210, 50%, 10%)",
|
|
739
|
+
"flexGrow": 1,
|
|
740
|
+
"fontSize": 16,
|
|
741
|
+
"paddingVertical": 12,
|
|
742
|
+
},
|
|
743
|
+
Object {},
|
|
744
|
+
]
|
|
745
|
+
}
|
|
746
|
+
/>
|
|
747
|
+
<View
|
|
748
|
+
accessibilityLabel="Show password"
|
|
749
|
+
accessibilityRole="button"
|
|
750
|
+
accessibilityState={
|
|
751
|
+
Object {
|
|
752
|
+
"disabled": false,
|
|
753
|
+
}
|
|
754
|
+
}
|
|
755
|
+
accessible={true}
|
|
756
|
+
collapsable={false}
|
|
757
|
+
focusable={true}
|
|
758
|
+
onBlur={[Function]}
|
|
759
|
+
onClick={[Function]}
|
|
760
|
+
onFocus={[Function]}
|
|
761
|
+
onResponderGrant={[Function]}
|
|
762
|
+
onResponderMove={[Function]}
|
|
763
|
+
onResponderRelease={[Function]}
|
|
764
|
+
onResponderTerminate={[Function]}
|
|
765
|
+
onResponderTerminationRequest={[Function]}
|
|
766
|
+
onStartShouldSetResponder={[Function]}
|
|
767
|
+
style={
|
|
768
|
+
Array [
|
|
769
|
+
Object {},
|
|
770
|
+
null,
|
|
771
|
+
null,
|
|
772
|
+
undefined,
|
|
773
|
+
]
|
|
774
|
+
}
|
|
775
|
+
>
|
|
776
|
+
<Image
|
|
777
|
+
accessibilityRole="image"
|
|
778
|
+
source={
|
|
779
|
+
Object {
|
|
780
|
+
"testUri": "../../../src/assets/icons/visibilityOff.png",
|
|
781
|
+
}
|
|
782
|
+
}
|
|
783
|
+
style={
|
|
784
|
+
Array [
|
|
785
|
+
Object {
|
|
786
|
+
"height": 16,
|
|
787
|
+
"resizeMode": "contain",
|
|
788
|
+
"tintColor": undefined,
|
|
789
|
+
"width": 16,
|
|
790
|
+
},
|
|
791
|
+
Array [
|
|
792
|
+
Object {
|
|
793
|
+
"tintColor": "hsl(210, 10%, 40%)",
|
|
794
|
+
},
|
|
795
|
+
undefined,
|
|
796
|
+
],
|
|
797
|
+
]
|
|
798
|
+
}
|
|
799
|
+
/>
|
|
800
|
+
</View>
|
|
801
|
+
</View>
|
|
802
|
+
</View>
|
|
803
|
+
<View
|
|
804
|
+
style={
|
|
805
|
+
Array [
|
|
806
|
+
Object {
|
|
807
|
+
"alignItems": "flex-start",
|
|
808
|
+
},
|
|
809
|
+
Array [
|
|
810
|
+
Object {},
|
|
811
|
+
Object {
|
|
812
|
+
"paddingHorizontal": 12,
|
|
813
|
+
},
|
|
814
|
+
],
|
|
815
|
+
]
|
|
816
|
+
}
|
|
817
|
+
testID="amplify__text-field-container"
|
|
818
|
+
>
|
|
819
|
+
<Text
|
|
820
|
+
accessibilityLabel="Confirm Password"
|
|
821
|
+
accessibilityRole="text"
|
|
822
|
+
style={
|
|
823
|
+
Array [
|
|
824
|
+
Object {
|
|
825
|
+
"fontSize": 14,
|
|
826
|
+
"fontWeight": "400",
|
|
827
|
+
"lineHeight": 21,
|
|
828
|
+
},
|
|
829
|
+
Object {
|
|
830
|
+
"color": "hsl(210, 50%, 10%)",
|
|
831
|
+
},
|
|
832
|
+
Array [
|
|
833
|
+
Object {
|
|
834
|
+
"color": "hsl(210, 25%, 25%)",
|
|
835
|
+
"lineHeight": 21,
|
|
836
|
+
"padding": 4,
|
|
837
|
+
},
|
|
838
|
+
undefined,
|
|
839
|
+
],
|
|
840
|
+
]
|
|
841
|
+
}
|
|
842
|
+
>
|
|
843
|
+
Confirm Password
|
|
844
|
+
</Text>
|
|
845
|
+
<View
|
|
846
|
+
accessible={true}
|
|
847
|
+
style={
|
|
848
|
+
Object {
|
|
849
|
+
"alignItems": "center",
|
|
850
|
+
"borderColor": "hsl(210, 8%, 55%)",
|
|
851
|
+
"borderRadius": 4,
|
|
852
|
+
"borderWidth": 1,
|
|
853
|
+
"flexDirection": "row",
|
|
854
|
+
"paddingHorizontal": 8,
|
|
855
|
+
}
|
|
856
|
+
}
|
|
857
|
+
testID="amplify__text-field__input-container"
|
|
858
|
+
>
|
|
859
|
+
<TextInput
|
|
860
|
+
accessibilityState={
|
|
861
|
+
Object {
|
|
862
|
+
"disabled": false,
|
|
863
|
+
}
|
|
864
|
+
}
|
|
865
|
+
accessible={true}
|
|
866
|
+
autoCapitalize="none"
|
|
867
|
+
editable={true}
|
|
868
|
+
onBlur={[Function]}
|
|
869
|
+
onChangeText={[Function]}
|
|
870
|
+
placeholder="Confirm Password"
|
|
871
|
+
placeholderTextColor="hsl(210, 10%, 40%)"
|
|
872
|
+
secureTextEntry={true}
|
|
873
|
+
selectionColor="hsl(210, 50%, 10%)"
|
|
874
|
+
style={
|
|
875
|
+
Array [
|
|
876
|
+
Object {
|
|
877
|
+
"color": "hsl(210, 50%, 10%)",
|
|
878
|
+
"flexGrow": 1,
|
|
879
|
+
"fontSize": 16,
|
|
880
|
+
"paddingVertical": 12,
|
|
881
|
+
},
|
|
882
|
+
Object {},
|
|
883
|
+
]
|
|
884
|
+
}
|
|
885
|
+
/>
|
|
886
|
+
<View
|
|
887
|
+
accessibilityLabel="Show password"
|
|
888
|
+
accessibilityRole="button"
|
|
889
|
+
accessibilityState={
|
|
890
|
+
Object {
|
|
891
|
+
"disabled": false,
|
|
892
|
+
}
|
|
893
|
+
}
|
|
894
|
+
accessible={true}
|
|
895
|
+
collapsable={false}
|
|
896
|
+
focusable={true}
|
|
897
|
+
onBlur={[Function]}
|
|
898
|
+
onClick={[Function]}
|
|
899
|
+
onFocus={[Function]}
|
|
900
|
+
onResponderGrant={[Function]}
|
|
901
|
+
onResponderMove={[Function]}
|
|
902
|
+
onResponderRelease={[Function]}
|
|
903
|
+
onResponderTerminate={[Function]}
|
|
904
|
+
onResponderTerminationRequest={[Function]}
|
|
905
|
+
onStartShouldSetResponder={[Function]}
|
|
906
|
+
style={
|
|
907
|
+
Array [
|
|
908
|
+
Object {},
|
|
909
|
+
null,
|
|
910
|
+
null,
|
|
911
|
+
undefined,
|
|
912
|
+
]
|
|
913
|
+
}
|
|
914
|
+
>
|
|
915
|
+
<Image
|
|
916
|
+
accessibilityRole="image"
|
|
917
|
+
source={
|
|
918
|
+
Object {
|
|
919
|
+
"testUri": "../../../src/assets/icons/visibilityOff.png",
|
|
920
|
+
}
|
|
921
|
+
}
|
|
922
|
+
style={
|
|
923
|
+
Array [
|
|
924
|
+
Object {
|
|
925
|
+
"height": 16,
|
|
926
|
+
"resizeMode": "contain",
|
|
927
|
+
"tintColor": undefined,
|
|
928
|
+
"width": 16,
|
|
929
|
+
},
|
|
930
|
+
Array [
|
|
931
|
+
Object {
|
|
932
|
+
"tintColor": "hsl(210, 10%, 40%)",
|
|
933
|
+
},
|
|
934
|
+
undefined,
|
|
935
|
+
],
|
|
936
|
+
]
|
|
937
|
+
}
|
|
938
|
+
/>
|
|
939
|
+
</View>
|
|
940
|
+
</View>
|
|
941
|
+
</View>
|
|
942
|
+
</View>,
|
|
943
|
+
<View
|
|
944
|
+
accessibilityRole="button"
|
|
945
|
+
accessible={true}
|
|
946
|
+
collapsable={false}
|
|
947
|
+
focusable={true}
|
|
948
|
+
onBlur={[Function]}
|
|
949
|
+
onClick={[Function]}
|
|
950
|
+
onFocus={[Function]}
|
|
951
|
+
onResponderGrant={[Function]}
|
|
952
|
+
onResponderMove={[Function]}
|
|
953
|
+
onResponderRelease={[Function]}
|
|
954
|
+
onResponderTerminate={[Function]}
|
|
955
|
+
onResponderTerminationRequest={[Function]}
|
|
956
|
+
onStartShouldSetResponder={[Function]}
|
|
957
|
+
style={
|
|
958
|
+
Array [
|
|
959
|
+
Object {
|
|
960
|
+
"alignItems": "center",
|
|
961
|
+
"backgroundColor": "transparent",
|
|
962
|
+
"borderRadius": 4,
|
|
963
|
+
"justifyContent": "center",
|
|
964
|
+
"paddingHorizontal": 16,
|
|
965
|
+
"paddingVertical": 12,
|
|
966
|
+
},
|
|
967
|
+
Object {
|
|
968
|
+
"backgroundColor": "hsl(190, 95%, 30%)",
|
|
969
|
+
},
|
|
970
|
+
null,
|
|
971
|
+
null,
|
|
972
|
+
Object {
|
|
973
|
+
"marginHorizontal": 16,
|
|
974
|
+
"marginVertical": 12,
|
|
975
|
+
},
|
|
976
|
+
]
|
|
977
|
+
}
|
|
978
|
+
>
|
|
979
|
+
<Text
|
|
980
|
+
style={
|
|
981
|
+
Array [
|
|
982
|
+
Object {
|
|
983
|
+
"color": "hsl(0, 0%, 100%)",
|
|
984
|
+
"fontSize": 16,
|
|
985
|
+
"fontWeight": "700",
|
|
986
|
+
"textAlign": "center",
|
|
987
|
+
},
|
|
988
|
+
Object {},
|
|
989
|
+
]
|
|
990
|
+
}
|
|
991
|
+
>
|
|
992
|
+
Submit
|
|
993
|
+
</Text>
|
|
994
|
+
</View>,
|
|
995
|
+
<View
|
|
996
|
+
accessibilityRole="button"
|
|
997
|
+
accessible={true}
|
|
998
|
+
collapsable={false}
|
|
999
|
+
focusable={true}
|
|
1000
|
+
onBlur={[Function]}
|
|
1001
|
+
onClick={[Function]}
|
|
1002
|
+
onFocus={[Function]}
|
|
1003
|
+
onResponderGrant={[Function]}
|
|
1004
|
+
onResponderMove={[Function]}
|
|
1005
|
+
onResponderRelease={[Function]}
|
|
1006
|
+
onResponderTerminate={[Function]}
|
|
1007
|
+
onResponderTerminationRequest={[Function]}
|
|
1008
|
+
onStartShouldSetResponder={[Function]}
|
|
1009
|
+
style={
|
|
1010
|
+
Array [
|
|
1011
|
+
Object {
|
|
1012
|
+
"alignItems": "center",
|
|
1013
|
+
"backgroundColor": "transparent",
|
|
1014
|
+
"borderRadius": 4,
|
|
1015
|
+
"justifyContent": "center",
|
|
1016
|
+
"paddingHorizontal": 16,
|
|
1017
|
+
"paddingVertical": 12,
|
|
1018
|
+
},
|
|
1019
|
+
Object {
|
|
1020
|
+
"borderColor": "hsl(210, 8%, 55%)",
|
|
1021
|
+
"borderWidth": 1,
|
|
1022
|
+
},
|
|
1023
|
+
null,
|
|
1024
|
+
null,
|
|
1025
|
+
Object {
|
|
1026
|
+
"marginHorizontal": 16,
|
|
1027
|
+
},
|
|
1028
|
+
]
|
|
1029
|
+
}
|
|
1030
|
+
>
|
|
1031
|
+
<Text
|
|
1032
|
+
style={
|
|
1033
|
+
Array [
|
|
1034
|
+
Object {
|
|
1035
|
+
"color": "hsl(210, 50%, 10%)",
|
|
1036
|
+
"fontSize": 16,
|
|
1037
|
+
"fontWeight": "700",
|
|
1038
|
+
"textAlign": "center",
|
|
1039
|
+
},
|
|
1040
|
+
Object {},
|
|
1041
|
+
]
|
|
1042
|
+
}
|
|
1043
|
+
>
|
|
1044
|
+
Resend Code
|
|
1045
|
+
</Text>
|
|
1046
|
+
</View>,
|
|
1047
|
+
]
|
|
1048
|
+
`;
|