@aws-amplify/ui-react-native 2.5.1 → 2.5.3
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/README.md +26 -15
- package/dist/Authenticator/Authenticator.d.ts +1 -1
- package/dist/Authenticator/Defaults/ConfirmResetPassword/ConfirmResetPassword.d.ts +1 -1
- package/dist/Authenticator/Defaults/ConfirmSignIn/ConfirmSignIn.d.ts +1 -1
- package/dist/Authenticator/Defaults/ConfirmSignUp/ConfirmSignUp.d.ts +1 -1
- package/dist/Authenticator/Defaults/ConfirmVerifyUser/ConfirmVerifyUser.d.ts +1 -1
- package/dist/Authenticator/Defaults/ForceNewPassword/ForceNewPassword.d.ts +1 -1
- package/dist/Authenticator/Defaults/ForgotPassword/ForgotPassword.d.ts +1 -1
- package/dist/Authenticator/Defaults/SelectMfaType/SelectMfaType.d.ts +1 -1
- package/dist/Authenticator/Defaults/SetupEmail/SetupEmail.d.ts +1 -1
- package/dist/Authenticator/Defaults/SetupTotp/SetupTotp.d.ts +1 -1
- package/dist/Authenticator/Defaults/SetupTotp/styles.d.ts +1 -1
- package/dist/Authenticator/Defaults/SignIn/SignIn.d.ts +1 -1
- package/dist/Authenticator/Defaults/SignUp/SignUp.d.ts +1 -1
- package/dist/Authenticator/Defaults/VerifyUser/VerifyUser.d.ts +1 -1
- package/dist/Authenticator/Defaults/index.d.ts +1 -1
- package/dist/Authenticator/Defaults/types.d.ts +2 -2
- package/dist/Authenticator/common/DefaultContainer/DefaultContainer.d.ts +1 -1
- package/dist/Authenticator/common/DefaultContainer/InnerContainer.d.ts +1 -1
- package/dist/Authenticator/common/DefaultContainer/index.d.ts +1 -1
- package/dist/Authenticator/common/DefaultContainer/styles.d.ts +3 -3
- package/dist/Authenticator/common/DefaultContainer/types.d.ts +2 -2
- package/dist/Authenticator/common/DefaultContent/DefaultContent.d.ts +2 -2
- package/dist/Authenticator/common/DefaultContent/styles.d.ts +2 -2
- package/dist/Authenticator/common/DefaultContent/types.d.ts +6 -6
- package/dist/Authenticator/common/DefaultFooter/DefaultFooter.d.ts +1 -1
- package/dist/Authenticator/common/DefaultFooter/index.d.ts +1 -1
- package/dist/Authenticator/common/DefaultFooter/types.d.ts +1 -1
- package/dist/Authenticator/common/DefaultFormFields/DefaultSelectMfaTypeFormFields.d.ts +1 -1
- package/dist/Authenticator/common/DefaultFormFields/DefaultTextFormFields.d.ts +1 -1
- package/dist/Authenticator/common/DefaultFormFields/DefaultVerifyUserFormFields.d.ts +1 -1
- package/dist/Authenticator/common/DefaultFormFields/Field.d.ts +1 -1
- package/dist/Authenticator/common/DefaultFormFields/FieldErrors.d.ts +1 -1
- package/dist/Authenticator/common/DefaultFormFields/index.d.ts +1 -1
- package/dist/Authenticator/common/DefaultFormFields/types.d.ts +3 -3
- package/dist/Authenticator/common/DefaultHeader/DefaultHeader.d.ts +1 -1
- package/dist/Authenticator/common/DefaultHeader/index.d.ts +1 -1
- package/dist/Authenticator/common/DefaultHeader/types.d.ts +1 -1
- package/dist/Authenticator/common/FederatedProviderButton/FederatedProviderButton.d.ts +1 -1
- package/dist/Authenticator/common/FederatedProviderButton/index.d.ts +1 -1
- package/dist/Authenticator/common/FederatedProviderButton/types.d.ts +2 -2
- package/dist/Authenticator/common/FederatedProviderButtons/FederatedProviderButtons.d.ts +1 -1
- package/dist/Authenticator/common/FederatedProviderButtons/FederatedProviderButtons.js +1 -1
- package/dist/Authenticator/common/FederatedProviderButtons/styles.d.ts +2 -2
- package/dist/Authenticator/common/FederatedProviderButtons/types.d.ts +2 -2
- package/dist/Authenticator/hooks/types.d.ts +1 -1
- package/dist/Authenticator/hooks/useFieldValues/types.d.ts +3 -3
- package/dist/Authenticator/hooks/useFieldValues/useFieldValues.d.ts +2 -2
- package/dist/Authenticator/hooks/useFieldValues/utils.d.ts +3 -3
- package/dist/Authenticator/hooks/useFieldValues/utils.js +1 -1
- package/dist/Authenticator/index.d.ts +5 -4
- package/dist/Authenticator/types.d.ts +4 -4
- package/dist/Authenticator/useAuthenticator.d.ts +3 -2
- package/dist/Authenticator/useAuthenticator.js +1 -1
- package/dist/Authenticator/withAuthenticator.d.ts +1 -1
- package/dist/InAppMessaging/components/BannerMessage/BannerMessage.d.ts +1 -1
- package/dist/InAppMessaging/components/BannerMessage/index.d.ts +1 -1
- package/dist/InAppMessaging/components/BannerMessage/styles.d.ts +3 -3
- package/dist/InAppMessaging/components/BannerMessage/types.d.ts +3 -3
- package/dist/InAppMessaging/components/CarouselMessage/CarouselMessage.d.ts +1 -1
- package/dist/InAppMessaging/components/CarouselMessage/CarouselMessageItem.d.ts +1 -1
- package/dist/InAppMessaging/components/CarouselMessage/index.d.ts +1 -1
- package/dist/InAppMessaging/components/CarouselMessage/styles.d.ts +2 -2
- package/dist/InAppMessaging/components/CarouselMessage/types.d.ts +3 -3
- package/dist/InAppMessaging/components/FullScreenMessage/FullScreenMessage.d.ts +1 -1
- package/dist/InAppMessaging/components/FullScreenMessage/index.d.ts +1 -1
- package/dist/InAppMessaging/components/FullScreenMessage/styles.d.ts +1 -1
- package/dist/InAppMessaging/components/FullScreenMessage/types.d.ts +2 -2
- package/dist/InAppMessaging/components/InAppMessageDisplay/InAppMessageDisplay.d.ts +1 -1
- package/dist/InAppMessaging/components/InAppMessageDisplay/handleMessageLinkAction.d.ts +1 -1
- package/dist/InAppMessaging/components/InAppMessageDisplay/index.d.ts +1 -1
- package/dist/InAppMessaging/components/InAppMessageDisplay/types.d.ts +5 -5
- package/dist/InAppMessaging/components/MessageLayout/MessageLayout.d.ts +1 -1
- package/dist/InAppMessaging/components/MessageLayout/types.d.ts +3 -3
- package/dist/InAppMessaging/components/MessageWrapper/MessageWrapper.d.ts +1 -1
- package/dist/InAppMessaging/components/MessageWrapper/index.d.ts +1 -1
- package/dist/InAppMessaging/components/MessageWrapper/styles.d.ts +1 -1
- package/dist/InAppMessaging/components/MessageWrapper/types.d.ts +2 -2
- package/dist/InAppMessaging/components/ModalMessage/ModalMessage.d.ts +1 -1
- package/dist/InAppMessaging/components/ModalMessage/index.d.ts +1 -1
- package/dist/InAppMessaging/components/ModalMessage/styles.d.ts +2 -2
- package/dist/InAppMessaging/components/ModalMessage/types.d.ts +2 -2
- package/dist/InAppMessaging/components/index.d.ts +6 -5
- package/dist/InAppMessaging/components/withInAppMessaging/withInAppMessaging.d.ts +1 -1
- package/dist/InAppMessaging/hooks/index.d.ts +4 -2
- package/dist/InAppMessaging/hooks/index.js +1 -1
- package/dist/InAppMessaging/hooks/useMessageImage/index.d.ts +1 -1
- package/dist/InAppMessaging/hooks/useMessageImage/useMessageImage.d.ts +2 -2
- package/dist/InAppMessaging/hooks/useMessageImage/utils.d.ts +2 -2
- package/dist/InAppMessaging/hooks/useMessageProps/index.d.ts +1 -1
- package/dist/InAppMessaging/hooks/useMessageProps/types.d.ts +4 -4
- package/dist/InAppMessaging/hooks/useMessageProps/useMessageProps.d.ts +2 -2
- package/dist/InAppMessaging/hooks/useMessageProps/utils.d.ts +2 -2
- package/dist/InAppMessaging/index.d.ts +4 -2
- package/dist/InAppMessaging/index.js +1 -2
- package/dist/assets/icons/icons.d.ts +1 -1
- package/dist/assets/icons/icons.ts +1 -1
- package/dist/hooks/index.d.ts +2 -1
- package/dist/hooks/index.js +1 -1
- package/dist/hooks/useDeprecationWarning/useDeprecationWarning.d.ts +1 -1
- package/dist/hooks/useDeprecationWarning/useDeprecationWarning.js +1 -1
- package/dist/hooks/useDeviceOrientation/index.d.ts +2 -1
- package/dist/hooks/useDeviceOrientation/index.js +1 -1
- package/dist/hooks/usePressableContainerStyles/usePressableContainerStyles.d.ts +1 -1
- package/dist/index.d.ts +4 -2
- package/dist/primitives/Button/Button.d.ts +1 -1
- package/dist/primitives/Button/index.d.ts +1 -1
- package/dist/primitives/Button/styles.d.ts +2 -2
- package/dist/primitives/Button/types.d.ts +1 -1
- package/dist/primitives/Carousel/Carousel.d.ts +1 -1
- package/dist/primitives/Carousel/Carousel.js +1 -1
- package/dist/primitives/Carousel/CarouselPageIndicator.d.ts +1 -1
- package/dist/primitives/Carousel/constants.d.ts +1 -1
- package/dist/primitives/Carousel/index.d.ts +1 -1
- package/dist/primitives/Carousel/styles.d.ts +1 -1
- package/dist/primitives/Carousel/types.d.ts +1 -1
- package/dist/primitives/Checkbox/Checkbox.d.ts +1 -1
- package/dist/primitives/Checkbox/styles.d.ts +3 -3
- package/dist/primitives/Checkbox/types.d.ts +4 -4
- package/dist/primitives/Divider/Divider.d.ts +1 -1
- package/dist/primitives/Divider/index.d.ts +1 -1
- package/dist/primitives/Divider/styles.d.ts +2 -2
- package/dist/primitives/Divider/types.d.ts +1 -1
- package/dist/primitives/ErrorMessage/ErrorMessage.d.ts +1 -1
- package/dist/primitives/ErrorMessage/index.d.ts +1 -1
- package/dist/primitives/ErrorMessage/styles.d.ts +2 -2
- package/dist/primitives/ErrorMessage/types.d.ts +2 -2
- package/dist/primitives/Heading/Heading.d.ts +1 -1
- package/dist/primitives/Heading/index.d.ts +1 -1
- package/dist/primitives/Heading/styles.d.ts +2 -2
- package/dist/primitives/Heading/types.d.ts +1 -1
- package/dist/primitives/Icon/Icon.d.ts +1 -1
- package/dist/primitives/Icon/constants.d.ts +1 -1
- package/dist/primitives/Icon/index.d.ts +1 -1
- package/dist/primitives/Icon/styles.d.ts +2 -2
- package/dist/primitives/Icon/types.d.ts +1 -1
- package/dist/primitives/IconButton/IconButton.d.ts +1 -1
- package/dist/primitives/IconButton/index.d.ts +1 -1
- package/dist/primitives/IconButton/styles.d.ts +2 -2
- package/dist/primitives/IconButton/types.d.ts +1 -1
- package/dist/primitives/Label/Label.d.ts +1 -1
- package/dist/primitives/Label/index.d.ts +1 -1
- package/dist/primitives/Label/styles.d.ts +2 -2
- package/dist/primitives/Label/types.d.ts +1 -1
- package/dist/primitives/Label/utils.d.ts +2 -2
- package/dist/primitives/PasswordField/PasswordField.d.ts +1 -1
- package/dist/primitives/PasswordField/index.d.ts +1 -1
- package/dist/primitives/PasswordField/styles.d.ts +2 -2
- package/dist/primitives/PasswordField/types.d.ts +3 -3
- package/dist/primitives/PhoneNumberField/PhoneNumberField.d.ts +1 -1
- package/dist/primitives/PhoneNumberField/index.d.ts +1 -1
- package/dist/primitives/PhoneNumberField/styles.d.ts +2 -2
- package/dist/primitives/PhoneNumberField/types.d.ts +1 -1
- package/dist/primitives/Radio/Radio.d.ts +1 -1
- package/dist/primitives/Radio/Radio.js +1 -1
- package/dist/primitives/Radio/getRadioDimensions.d.ts +1 -1
- package/dist/primitives/Radio/index.d.ts +1 -1
- package/dist/primitives/Radio/styles.d.ts +2 -2
- package/dist/primitives/Radio/types.d.ts +2 -2
- package/dist/primitives/RadioGroup/RadioGroup.d.ts +1 -1
- package/dist/primitives/RadioGroup/index.d.ts +1 -1
- package/dist/primitives/RadioGroup/styles.d.ts +2 -2
- package/dist/primitives/RadioGroup/types.d.ts +2 -2
- package/dist/primitives/Tabs/Tab.d.ts +1 -1
- package/dist/primitives/Tabs/Tabs.d.ts +1 -1
- package/dist/primitives/Tabs/index.d.ts +1 -1
- package/dist/primitives/Tabs/styles.d.ts +2 -2
- package/dist/primitives/Tabs/types.d.ts +2 -2
- package/dist/primitives/TextField/TextField.d.ts +1 -1
- package/dist/primitives/TextField/index.d.ts +1 -1
- package/dist/primitives/TextField/styles.d.ts +2 -2
- package/dist/primitives/TextField/types.d.ts +2 -2
- package/dist/theme/ThemeContext.d.ts +1 -1
- package/dist/theme/ThemeProvider.d.ts +1 -1
- package/dist/theme/createTheme.d.ts +1 -1
- package/dist/theme/defaultTheme.d.ts +1 -1
- package/dist/theme/types.d.ts +2 -2
- package/dist/theme/useTheme.d.ts +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/lib/InAppMessaging/index.js +0 -1
- package/lib/assets/icons/icons.ts +1 -1
- package/lib/version.js +1 -1
- package/package.json +5 -5
- package/src/Authenticator/Authenticator.tsx +4 -3
- package/src/Authenticator/Defaults/ConfirmResetPassword/ConfirmResetPassword.tsx +1 -1
- package/src/Authenticator/Defaults/ConfirmSignIn/ConfirmSignIn.tsx +1 -1
- package/src/Authenticator/Defaults/ConfirmSignUp/ConfirmSignUp.tsx +1 -1
- package/src/Authenticator/Defaults/ConfirmVerifyUser/ConfirmVerifyUser.tsx +1 -1
- package/src/Authenticator/Defaults/ForceNewPassword/ForceNewPassword.tsx +1 -1
- package/src/Authenticator/Defaults/ForgotPassword/ForgotPassword.tsx +1 -1
- package/src/Authenticator/Defaults/SelectMfaType/SelectMfaType.tsx +1 -1
- package/src/Authenticator/Defaults/SetupEmail/SetupEmail.tsx +1 -1
- package/src/Authenticator/Defaults/SetupTotp/SetupTotp.tsx +1 -1
- package/src/Authenticator/Defaults/SetupTotp/styles.ts +2 -1
- package/src/Authenticator/Defaults/SignIn/SignIn.tsx +1 -1
- package/src/Authenticator/Defaults/SignUp/SignUp.tsx +1 -1
- package/src/Authenticator/Defaults/VerifyUser/VerifyUser.tsx +1 -1
- package/src/Authenticator/Defaults/index.ts +1 -1
- package/src/Authenticator/Defaults/types.ts +2 -2
- package/src/Authenticator/common/DefaultContainer/DefaultContainer.tsx +1 -1
- package/src/Authenticator/common/DefaultContainer/InnerContainer.tsx +1 -1
- package/src/Authenticator/common/DefaultContainer/index.ts +1 -1
- package/src/Authenticator/common/DefaultContainer/styles.ts +4 -3
- package/src/Authenticator/common/DefaultContainer/types.ts +2 -2
- package/src/Authenticator/common/DefaultContent/DefaultContent.tsx +4 -3
- package/src/Authenticator/common/DefaultContent/styles.ts +2 -2
- package/src/Authenticator/common/DefaultContent/types.ts +7 -7
- package/src/Authenticator/common/DefaultFooter/DefaultFooter.tsx +1 -1
- package/src/Authenticator/common/DefaultFooter/index.ts +1 -1
- package/src/Authenticator/common/DefaultFooter/types.ts +1 -1
- package/src/Authenticator/common/DefaultFormFields/DefaultSelectMfaTypeFormFields.tsx +1 -1
- package/src/Authenticator/common/DefaultFormFields/DefaultTextFormFields.tsx +1 -1
- package/src/Authenticator/common/DefaultFormFields/DefaultVerifyUserFormFields.tsx +3 -2
- package/src/Authenticator/common/DefaultFormFields/Field.tsx +3 -2
- package/src/Authenticator/common/DefaultFormFields/FieldErrors.tsx +1 -1
- package/src/Authenticator/common/DefaultFormFields/index.ts +4 -1
- package/src/Authenticator/common/DefaultFormFields/types.ts +3 -3
- package/src/Authenticator/common/DefaultHeader/DefaultHeader.tsx +1 -1
- package/src/Authenticator/common/DefaultHeader/index.ts +1 -1
- package/src/Authenticator/common/DefaultHeader/types.ts +1 -1
- package/src/Authenticator/common/FederatedProviderButton/FederatedProviderButton.tsx +1 -1
- package/src/Authenticator/common/FederatedProviderButton/index.ts +1 -1
- package/src/Authenticator/common/FederatedProviderButton/types.ts +2 -2
- package/src/Authenticator/common/FederatedProviderButtons/FederatedProviderButtons.tsx +3 -6
- package/src/Authenticator/common/FederatedProviderButtons/styles.ts +2 -2
- package/src/Authenticator/common/FederatedProviderButtons/types.ts +2 -2
- package/src/Authenticator/hooks/types.ts +1 -1
- package/src/Authenticator/hooks/useFieldValues/types.ts +3 -3
- package/src/Authenticator/hooks/useFieldValues/useFieldValues.ts +3 -3
- package/src/Authenticator/hooks/useFieldValues/utils.ts +4 -4
- package/src/Authenticator/index.ts +5 -4
- package/src/Authenticator/types.ts +4 -4
- package/src/Authenticator/useAuthenticator.ts +4 -6
- package/src/Authenticator/withAuthenticator.tsx +1 -1
- package/src/InAppMessaging/components/BannerMessage/BannerMessage.tsx +3 -2
- package/src/InAppMessaging/components/BannerMessage/index.ts +1 -1
- package/src/InAppMessaging/components/BannerMessage/styles.ts +3 -3
- package/src/InAppMessaging/components/BannerMessage/types.ts +3 -3
- package/src/InAppMessaging/components/CarouselMessage/CarouselMessage.tsx +2 -2
- package/src/InAppMessaging/components/CarouselMessage/CarouselMessageItem.tsx +1 -1
- package/src/InAppMessaging/components/CarouselMessage/index.ts +1 -1
- package/src/InAppMessaging/components/CarouselMessage/styles.ts +6 -2
- package/src/InAppMessaging/components/CarouselMessage/types.ts +3 -3
- package/src/InAppMessaging/components/FullScreenMessage/FullScreenMessage.tsx +1 -1
- package/src/InAppMessaging/components/FullScreenMessage/index.ts +1 -1
- package/src/InAppMessaging/components/FullScreenMessage/styles.ts +3 -3
- package/src/InAppMessaging/components/FullScreenMessage/types.ts +2 -2
- package/src/InAppMessaging/components/InAppMessageDisplay/InAppMessageDisplay.tsx +5 -2
- package/src/InAppMessaging/components/InAppMessageDisplay/handleMessageLinkAction.ts +1 -1
- package/src/InAppMessaging/components/InAppMessageDisplay/index.ts +1 -1
- package/src/InAppMessaging/components/InAppMessageDisplay/types.ts +5 -5
- package/src/InAppMessaging/components/MessageLayout/MessageLayout.tsx +1 -1
- package/src/InAppMessaging/components/MessageLayout/types.ts +3 -3
- package/src/InAppMessaging/components/MessageWrapper/MessageWrapper.tsx +3 -2
- package/src/InAppMessaging/components/MessageWrapper/index.ts +1 -1
- package/src/InAppMessaging/components/MessageWrapper/styles.ts +1 -1
- package/src/InAppMessaging/components/MessageWrapper/types.ts +2 -2
- package/src/InAppMessaging/components/ModalMessage/ModalMessage.tsx +1 -1
- package/src/InAppMessaging/components/ModalMessage/index.ts +1 -1
- package/src/InAppMessaging/components/ModalMessage/styles.ts +3 -2
- package/src/InAppMessaging/components/ModalMessage/types.ts +2 -2
- package/src/InAppMessaging/components/index.ts +6 -5
- package/src/InAppMessaging/components/withInAppMessaging/withInAppMessaging.tsx +2 -1
- package/src/InAppMessaging/hooks/index.ts +4 -3
- package/src/InAppMessaging/hooks/useMessageImage/index.ts +1 -1
- package/src/InAppMessaging/hooks/useMessageImage/useMessageImage.ts +3 -2
- package/src/InAppMessaging/hooks/useMessageImage/utils.ts +2 -2
- package/src/InAppMessaging/hooks/useMessageProps/index.ts +1 -1
- package/src/InAppMessaging/hooks/useMessageProps/types.ts +4 -4
- package/src/InAppMessaging/hooks/useMessageProps/useMessageProps.ts +2 -2
- package/src/InAppMessaging/hooks/useMessageProps/utils.ts +2 -2
- package/src/InAppMessaging/index.ts +6 -5
- package/src/assets/icons/icons.ts +1 -1
- package/src/hooks/index.ts +2 -4
- package/src/hooks/useDeprecationWarning/useDeprecationWarning.ts +2 -4
- package/src/hooks/useDeviceOrientation/index.ts +2 -4
- package/src/hooks/useDeviceOrientation/useDeviceOrientation.ts +2 -1
- package/src/hooks/usePressableContainerStyles/usePressableContainerStyles.ts +1 -1
- package/src/index.ts +7 -5
- package/src/primitives/Button/Button.tsx +3 -2
- package/src/primitives/Button/index.ts +1 -1
- package/src/primitives/Button/styles.ts +2 -2
- package/src/primitives/Button/types.ts +6 -1
- package/src/primitives/Carousel/Carousel.tsx +3 -9
- package/src/primitives/Carousel/CarouselPageIndicator.tsx +1 -1
- package/src/primitives/Carousel/constants.ts +1 -1
- package/src/primitives/Carousel/index.ts +1 -1
- package/src/primitives/Carousel/styles.ts +1 -1
- package/src/primitives/Carousel/types.ts +1 -1
- package/src/primitives/Checkbox/Checkbox.tsx +3 -2
- package/src/primitives/Checkbox/styles.ts +3 -3
- package/src/primitives/Checkbox/types.ts +4 -4
- package/src/primitives/Divider/Divider.tsx +1 -1
- package/src/primitives/Divider/index.ts +1 -1
- package/src/primitives/Divider/styles.ts +2 -2
- package/src/primitives/Divider/types.ts +1 -1
- package/src/primitives/ErrorMessage/ErrorMessage.tsx +1 -1
- package/src/primitives/ErrorMessage/index.ts +1 -1
- package/src/primitives/ErrorMessage/styles.ts +2 -2
- package/src/primitives/ErrorMessage/types.ts +2 -2
- package/src/primitives/Heading/Heading.tsx +1 -1
- package/src/primitives/Heading/index.ts +1 -1
- package/src/primitives/Heading/styles.ts +2 -2
- package/src/primitives/Heading/types.ts +1 -1
- package/src/primitives/Icon/Icon.tsx +1 -1
- package/src/primitives/Icon/constants.ts +1 -1
- package/src/primitives/Icon/index.ts +1 -1
- package/src/primitives/Icon/styles.ts +2 -2
- package/src/primitives/Icon/types.ts +1 -1
- package/src/primitives/IconButton/IconButton.tsx +3 -2
- package/src/primitives/IconButton/index.ts +1 -1
- package/src/primitives/IconButton/styles.ts +2 -2
- package/src/primitives/IconButton/types.ts +1 -1
- package/src/primitives/Label/Label.tsx +1 -1
- package/src/primitives/Label/index.ts +1 -1
- package/src/primitives/Label/styles.ts +2 -2
- package/src/primitives/Label/types.ts +1 -1
- package/src/primitives/Label/utils.ts +2 -2
- package/src/primitives/PasswordField/PasswordField.tsx +1 -1
- package/src/primitives/PasswordField/index.ts +1 -1
- package/src/primitives/PasswordField/styles.ts +2 -2
- package/src/primitives/PasswordField/types.ts +3 -3
- package/src/primitives/PhoneNumberField/PhoneNumberField.tsx +1 -1
- package/src/primitives/PhoneNumberField/index.ts +1 -1
- package/src/primitives/PhoneNumberField/styles.ts +2 -2
- package/src/primitives/PhoneNumberField/types.ts +1 -1
- package/src/primitives/Radio/Radio.tsx +3 -7
- package/src/primitives/Radio/getRadioDimensions.ts +1 -1
- package/src/primitives/Radio/index.ts +1 -1
- package/src/primitives/Radio/styles.ts +2 -2
- package/src/primitives/Radio/types.ts +7 -2
- package/src/primitives/RadioGroup/RadioGroup.tsx +4 -3
- package/src/primitives/RadioGroup/index.ts +1 -1
- package/src/primitives/RadioGroup/styles.ts +2 -2
- package/src/primitives/RadioGroup/types.ts +2 -2
- package/src/primitives/Tabs/Tab.tsx +2 -2
- package/src/primitives/Tabs/Tabs.tsx +1 -1
- package/src/primitives/Tabs/index.ts +1 -1
- package/src/primitives/Tabs/styles.ts +4 -3
- package/src/primitives/Tabs/types.ts +2 -2
- package/src/primitives/TextField/TextField.tsx +3 -2
- package/src/primitives/TextField/index.ts +1 -1
- package/src/primitives/TextField/styles.ts +2 -2
- package/src/primitives/TextField/types.ts +7 -2
- package/src/theme/ThemeContext.tsx +1 -1
- package/src/theme/ThemeProvider.tsx +1 -1
- package/src/theme/createTheme.ts +1 -1
- package/src/theme/defaultTheme.ts +1 -1
- package/src/theme/types.ts +2 -2
- package/src/theme/useTheme.ts +1 -1
- package/src/version.ts +1 -1
package/README.md
CHANGED
|
@@ -1,23 +1,34 @@
|
|
|
1
|
-
# Amplify UI
|
|
1
|
+
# Amplify UI React Native
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
The React Native package provides components and utilities for building Amplify connected applications on React Native.
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
2. Primitive components that create consistency across Amplify UI and allow you to build complete applications that fit your brand, like Buttons and Badges.
|
|
7
|
-
3. Data-bound components that make it easy to display dynamic data, like DataStoreCollections.
|
|
8
|
-
4. Theming capabilities that allow you to customize the appearance of Amplify UI to match your brand.
|
|
5
|
+
## Contents
|
|
9
6
|
|
|
10
|
-
|
|
7
|
+
### Authenticator Components
|
|
11
8
|
|
|
12
|
-
-
|
|
9
|
+
- `Authenticator` - Component for authentication flows
|
|
10
|
+
- `useAuthenticator` - Hook for accessing authenticator functionality
|
|
11
|
+
- `withAuthenticator` - Higher-order component for adding authentication capabilities
|
|
12
|
+
|
|
13
|
+
### Theming Components
|
|
14
|
+
|
|
15
|
+
- `ThemeProvider` - Provider component for theme context
|
|
16
|
+
- `useTheme` - Hook for accessing theme functionality
|
|
17
|
+
- `defaultTheme` - Default theme configuration
|
|
18
|
+
- `defaultDarkModeOverride` - Default dark mode theme override
|
|
13
19
|
|
|
14
|
-
|
|
20
|
+
### In-App Messaging
|
|
15
21
|
|
|
16
|
-
-
|
|
17
|
-
- **Endlessly customizable** Every detail of Amplify UI is customizable to match your brand. Style all of Amplify UI with themes, override components with your own, or build your own UI and use Amplify for complex state management.
|
|
18
|
-
- **Accessible** Amplify UI components follow [WCAG](https://www.w3.org/WAI/standards-guidelines/wcag/) and [WAI-ARIA](https://www.w3.org/TR/wai-aria-1.2/) best practices and guidelines such as color contrast, keyboard navigation, accessible labels, and focus management.
|
|
19
|
-
- **Primitive components (React only right now)** Primitive components are used in the connected components, like Authenticator, you can also customize them and use them to build the rest of your UI.
|
|
22
|
+
- Various components and utilities for in-app messaging
|
|
20
23
|
|
|
21
|
-
|
|
24
|
+
### Type Definitions
|
|
22
25
|
|
|
23
|
-
|
|
26
|
+
- `AuthenticatorProps` - Props for Authenticator component
|
|
27
|
+
- `UseAuthenticator` - Type for useAuthenticator hook
|
|
28
|
+
- `WithAuthenticatorOptions` - Options for withAuthenticator HOC
|
|
29
|
+
- Various props types for authentication screens
|
|
30
|
+
- `Theme` - Type for theme configuration
|
|
31
|
+
|
|
32
|
+
## React Native Documentation 📖
|
|
33
|
+
|
|
34
|
+
- https://ui.docs.amplify.aws/react-native
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { DefaultContainer } from './common';
|
|
3
|
-
import { AuthenticatorProps } from './types';
|
|
3
|
+
import type { AuthenticatorProps } from './types';
|
|
4
4
|
declare function Authenticator({ children, components: overrides, Container, Footer, Header, ...options }: AuthenticatorProps): React.JSX.Element | null;
|
|
5
5
|
declare namespace Authenticator {
|
|
6
6
|
var Container: typeof DefaultContainer;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { DefaultFooter, DefaultHeader } from '../../common';
|
|
3
|
-
import { DefaultConfirmResetPasswordProps } from '../types';
|
|
3
|
+
import type { DefaultConfirmResetPasswordProps } from '../types';
|
|
4
4
|
declare const ConfirmResetPassword: {
|
|
5
5
|
({ fields, handleBlur, handleChange, handleSubmit, hasValidationErrors, isPending, resendCode, validationErrors, ...rest }: DefaultConfirmResetPasswordProps): React.JSX.Element;
|
|
6
6
|
Footer: typeof DefaultFooter;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { DefaultFooter, DefaultHeader } from '../../common';
|
|
3
|
-
import { DefaultConfirmSignInProps } from '../types';
|
|
3
|
+
import type { DefaultConfirmSignInProps } from '../types';
|
|
4
4
|
declare const ConfirmSignIn: {
|
|
5
5
|
({ challengeName, fields, handleBlur, handleChange, handleSubmit, isPending, toSignIn, validationErrors, ...rest }: DefaultConfirmSignInProps): React.JSX.Element;
|
|
6
6
|
Footer: typeof DefaultFooter;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { DefaultFooter, DefaultHeader } from '../../common';
|
|
3
|
-
import { DefaultConfirmSignUpProps } from '../types';
|
|
3
|
+
import type { DefaultConfirmSignUpProps } from '../types';
|
|
4
4
|
declare const ConfirmSignUp: {
|
|
5
5
|
({ codeDeliveryDetails, fields, handleBlur, handleChange, handleSubmit, isPending, resendCode, validationErrors, ...rest }: DefaultConfirmSignUpProps): React.JSX.Element;
|
|
6
6
|
FormFields: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { DefaultFooter, DefaultHeader } from '../../common';
|
|
3
|
-
import { DefaultConfirmVerifyUserProps } from '../types';
|
|
3
|
+
import type { DefaultConfirmVerifyUserProps } from '../types';
|
|
4
4
|
declare const ConfirmVerifyUser: {
|
|
5
5
|
({ fields, handleBlur, handleChange, handleSubmit, isPending, skipVerification, validationErrors, ...rest }: DefaultConfirmVerifyUserProps): React.JSX.Element;
|
|
6
6
|
Footer: typeof DefaultFooter;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { DefaultFooter, DefaultHeader } from '../../common';
|
|
3
|
-
import { DefaultForceNewPasswordProps } from '../types';
|
|
3
|
+
import type { DefaultForceNewPasswordProps } from '../types';
|
|
4
4
|
declare const ForceNewPassword: {
|
|
5
5
|
({ fields, handleBlur, handleChange, handleSubmit, hasValidationErrors, isPending, toSignIn, validationErrors, ...rest }: DefaultForceNewPasswordProps): React.JSX.Element;
|
|
6
6
|
Footer: typeof DefaultFooter;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { DefaultFooter, DefaultHeader } from '../../common';
|
|
3
|
-
import { DefaultForgotPasswordProps } from '../types';
|
|
3
|
+
import type { DefaultForgotPasswordProps } from '../types';
|
|
4
4
|
declare const ForgotPassword: {
|
|
5
5
|
({ fields, handleBlur, handleChange, handleSubmit, isPending, toSignIn, validationErrors, ...rest }: DefaultForgotPasswordProps): React.JSX.Element;
|
|
6
6
|
Footer: typeof DefaultFooter;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { DefaultFooter, DefaultHeader } from '../../common';
|
|
3
|
-
import { DefaultSelectMfaTypeProps } from '../types';
|
|
3
|
+
import type { DefaultSelectMfaTypeProps } from '../types';
|
|
4
4
|
declare const SelectMfaType: {
|
|
5
5
|
({ challengeName, fields, handleBlur, handleChange, handleSubmit, isPending, toSignIn, validationErrors, ...rest }: DefaultSelectMfaTypeProps): React.JSX.Element;
|
|
6
6
|
Footer: typeof DefaultFooter;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { DefaultFooter, DefaultHeader } from '../../common';
|
|
3
|
-
import { DefaultSetupEmailProps } from '../types';
|
|
3
|
+
import type { DefaultSetupEmailProps } from '../types';
|
|
4
4
|
declare const SetupEmail: {
|
|
5
5
|
({ fields, handleBlur, handleChange, handleSubmit, isPending, toSignIn, validationErrors, ...rest }: DefaultSetupEmailProps): React.JSX.Element;
|
|
6
6
|
Footer: typeof DefaultFooter;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { DefaultFooter, DefaultHeader } from '../../common';
|
|
3
|
-
import { DefaultSetupTotpProps } from '../types';
|
|
3
|
+
import type { DefaultSetupTotpProps } from '../types';
|
|
4
4
|
declare const SetupTotp: {
|
|
5
5
|
({ fields, handleBlur, handleChange, handleSubmit, isPending, toSignIn, totpSecretCode, validationErrors, ...rest }: DefaultSetupTotpProps): React.JSX.Element;
|
|
6
6
|
Footer: typeof DefaultFooter;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { DefaultFooter, DefaultHeader } from '../../common';
|
|
3
|
-
import { DefaultSignInProps } from '../types';
|
|
3
|
+
import type { DefaultSignInProps } from '../types';
|
|
4
4
|
declare const SignIn: {
|
|
5
5
|
({ fields, handleBlur, handleChange, handleSubmit, hideSignUp, socialProviders, toFederatedSignIn, toForgotPassword, toSignUp, validationErrors, ...rest }: DefaultSignInProps): React.JSX.Element;
|
|
6
6
|
Footer: typeof DefaultFooter;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { DefaultFooter, DefaultHeader } from '../../common';
|
|
3
|
-
import { DefaultSignUpProps } from '../types';
|
|
3
|
+
import type { DefaultSignUpProps } from '../types';
|
|
4
4
|
declare const SignUp: {
|
|
5
5
|
({ fields, handleBlur, handleChange, handleSubmit, hasValidationErrors, hideSignIn, isPending, socialProviders, toFederatedSignIn, toSignIn, validationErrors, ...rest }: DefaultSignUpProps): React.JSX.Element;
|
|
6
6
|
Footer: typeof DefaultFooter;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { DefaultFooter, DefaultHeader } from '../../common';
|
|
3
|
-
import { DefaultVerifyUserProps } from '../types';
|
|
3
|
+
import type { DefaultVerifyUserProps } from '../types';
|
|
4
4
|
declare const VerifyUser: {
|
|
5
5
|
({ fields, handleBlur, handleChange, handleSubmit, skipVerification, validationErrors, ...rest }: DefaultVerifyUserProps): React.JSX.Element;
|
|
6
6
|
Footer: typeof DefaultFooter;
|
|
@@ -10,4 +10,4 @@ export { SignUp } from './SignUp';
|
|
|
10
10
|
export { VerifyUser } from './VerifyUser';
|
|
11
11
|
export { SelectMfaType } from './SelectMfaType';
|
|
12
12
|
export { SetupEmail } from './SetupEmail';
|
|
13
|
-
export { Components, DefaultComponents, ConfirmResetPasswordProps, ConfirmSignInProps, ConfirmSignUpProps, ConfirmVerifyUserProps, ForceNewPasswordProps, ForgotPasswordProps, SelectMfaTypeProps, SetupEmailProps, SetupTotpProps, SignInProps, SignUpProps, VerifyUserProps, } from './types';
|
|
13
|
+
export type { Components, DefaultComponents, ConfirmResetPasswordProps, ConfirmSignInProps, ConfirmSignUpProps, ConfirmVerifyUserProps, ForceNewPasswordProps, ForgotPasswordProps, SelectMfaTypeProps, SetupEmailProps, SetupTotpProps, SignInProps, SignUpProps, VerifyUserProps, } from './types';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { AuthenticatorComponentOverrides, AuthenticatorComponentDefaults } from '@aws-amplify/ui-react-core';
|
|
2
|
-
import { RadioFieldOptions, TextFieldOptionsType } from '../hooks';
|
|
1
|
+
import type { AuthenticatorComponentOverrides, AuthenticatorComponentDefaults } from '@aws-amplify/ui-react-core';
|
|
2
|
+
import type { RadioFieldOptions, TextFieldOptionsType } from '../hooks';
|
|
3
3
|
export interface ConfirmResetPasswordStyle {
|
|
4
4
|
}
|
|
5
5
|
export interface ConfirmSignInStyle {
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { ContainerProps } from './types';
|
|
2
|
+
import type { ContainerProps } from './types';
|
|
3
3
|
export default function DefaultContainer({ alwaysBounceVertical, behavior, children, keyboardAvoidingViewStyle, keyboardShouldPersistTaps, keyboardVerticalOffset, scrollViewContentContainerStyle, style, ...rest }: ContainerProps): React.JSX.Element | null;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export { default as DefaultContainer } from './DefaultContainer';
|
|
2
2
|
export { default as InnerContainer } from './InnerContainer';
|
|
3
|
-
export { ContainerProps, DefaultContainerComponent } from './types';
|
|
3
|
+
export type { ContainerProps, DefaultContainerComponent } from './types';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ViewStyle } from 'react-native';
|
|
2
|
-
import { StrictTheme } from '../../../theme';
|
|
3
|
-
import { ContainerStyles, InnerContainerStyles } from './types';
|
|
1
|
+
import type { ViewStyle } from 'react-native';
|
|
2
|
+
import type { StrictTheme } from '../../../theme';
|
|
3
|
+
import type { ContainerStyles, InnerContainerStyles } from './types';
|
|
4
4
|
export declare const getThemedStyles: ({ tokens: { colors } }: StrictTheme, insetPadding: Pick<ViewStyle, 'paddingBottom' | 'paddingLeft' | 'paddingRight' | 'paddingTop'>) => Required<ContainerStyles>;
|
|
5
5
|
export declare const getInnerContainerStyles: ({ tokens: { space }, }: StrictTheme) => InnerContainerStyles;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { KeyboardAvoidingViewProps, ScrollViewProps, StyleProp, ViewStyle } from 'react-native';
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
import type { KeyboardAvoidingViewProps, ScrollViewProps, StyleProp, ViewStyle } from 'react-native';
|
|
3
3
|
export interface ContainerStyles {
|
|
4
4
|
keyboardAvoidingView?: ViewStyle;
|
|
5
5
|
scrollViewContentContainer?: ViewStyle;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { TextFieldOptionsType, RadioFieldOptions } from '../../hooks';
|
|
3
|
-
import { DefaultContentProps } from './types';
|
|
2
|
+
import type { TextFieldOptionsType, RadioFieldOptions } from '../../hooks';
|
|
3
|
+
import type { DefaultContentProps } from './types';
|
|
4
4
|
export default function DefaultContent<FieldsType extends TextFieldOptionsType | RadioFieldOptions>({ body, buttons: { primary, links, secondary }, error, fields, Footer, FormFields, isPending, Header, headerText, validationErrors, }: DefaultContentProps<FieldsType>): React.JSX.Element;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { StrictTheme } from '../../../theme';
|
|
2
|
-
import { DefaultContentStyle } from './types';
|
|
1
|
+
import type { StrictTheme } from '../../../theme';
|
|
2
|
+
import type { DefaultContentStyle } from './types';
|
|
3
3
|
export declare const getDefaultStyle: ({ tokens: { colors, fontSizes, space }, }: StrictTheme) => Required<DefaultContentStyle>;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { ImageStyle, StyleProp, TextStyle, ViewStyle } from 'react-native';
|
|
3
|
-
import { AuthenticatorComponentDefaultProps, AuthenticatorHeaderComponent, AuthenticatorFooterComponent, AuthenticatorMachineContext, AuthenticatorRouteComponentName } from '@aws-amplify/ui-react-core';
|
|
4
|
-
import { ButtonProps } from '../../../primitives';
|
|
5
|
-
import { DefaultFormFieldsComponent, DefaultFormFieldsStyle } from '../../common';
|
|
6
|
-
import { TextFieldOptionsType, RadioFieldOptions } from '../../hooks';
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
import type { ImageStyle, StyleProp, TextStyle, ViewStyle } from 'react-native';
|
|
3
|
+
import type { AuthenticatorComponentDefaultProps, AuthenticatorHeaderComponent, AuthenticatorFooterComponent, AuthenticatorMachineContext, AuthenticatorRouteComponentName } from '@aws-amplify/ui-react-core';
|
|
4
|
+
import type { ButtonProps } from '../../../primitives';
|
|
5
|
+
import type { DefaultFormFieldsComponent, DefaultFormFieldsStyle } from '../../common';
|
|
6
|
+
import type { TextFieldOptionsType, RadioFieldOptions } from '../../hooks';
|
|
7
7
|
export interface DefaultContentStyle {
|
|
8
8
|
body?: TextStyle;
|
|
9
9
|
buttonPrimary?: ViewStyle;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { default as DefaultFooter } from './DefaultFooter';
|
|
2
|
-
export { DefaultFooterProps } from './types';
|
|
2
|
+
export type { DefaultFooterProps } from './types';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { DefaultRadioFormFieldsProps } from './types';
|
|
2
|
+
import type { DefaultRadioFormFieldsProps } from './types';
|
|
3
3
|
declare const DefaultSelectMfaTypeFormFields: {
|
|
4
4
|
({ fields, fieldContainerStyle, fieldLabelStyle, isPending, style, }: DefaultRadioFormFieldsProps): React.JSX.Element;
|
|
5
5
|
displayName: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { DefaultTextFormFieldsProps } from './types';
|
|
2
|
+
import type { DefaultTextFormFieldsProps } from './types';
|
|
3
3
|
declare const DefaultTextFormFields: {
|
|
4
4
|
({ fieldContainerStyle, fieldErrorsContainer, fieldErrorStyle, fieldStyle, fields, isPending, style, validationErrors, }: DefaultTextFormFieldsProps): React.JSX.Element;
|
|
5
5
|
displayName: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { DefaultRadioFormFieldsProps } from './types';
|
|
2
|
+
import type { DefaultRadioFormFieldsProps } from './types';
|
|
3
3
|
declare const DefaultVerifyUserFormFields: {
|
|
4
4
|
({ fields, fieldContainerStyle, fieldLabelStyle, isPending, style, }: DefaultRadioFormFieldsProps): React.JSX.Element;
|
|
5
5
|
displayName: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { default as DefaultTextFormFields } from './DefaultTextFormFields';
|
|
2
2
|
export { default as DefaultVerifyUserFormFields } from './DefaultVerifyUserFormFields';
|
|
3
3
|
export { default as DefaultSelectMfaTypeFormFields } from './DefaultSelectMfaTypeFormFields';
|
|
4
|
-
export { DefaultFormFieldsComponent, DefaultFormFieldsStyle } from './types';
|
|
4
|
+
export type { DefaultFormFieldsComponent, DefaultFormFieldsStyle, } from './types';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { StyleProp, TextStyle, ViewStyle } from 'react-native';
|
|
2
|
-
import { AuthenticatorFormFieldsComponent, UseAuthenticator } from '@aws-amplify/ui-react-core';
|
|
3
|
-
import { RadioFieldOptions, TextFieldOptionsType } from '../../hooks';
|
|
1
|
+
import type { StyleProp, TextStyle, ViewStyle } from 'react-native';
|
|
2
|
+
import type { AuthenticatorFormFieldsComponent, UseAuthenticator } from '@aws-amplify/ui-react-core';
|
|
3
|
+
import type { RadioFieldOptions, TextFieldOptionsType } from '../../hooks';
|
|
4
4
|
export type FieldProps = Omit<TextFieldOptionsType, 'name'> & {
|
|
5
5
|
disabled: boolean;
|
|
6
6
|
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { default as DefaultHeader } from './DefaultHeader';
|
|
2
|
-
export { DefaultHeaderProps } from './types';
|
|
2
|
+
export type { DefaultHeaderProps } from './types';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { FederatedProviderButtonProps } from './types';
|
|
2
|
+
import type { FederatedProviderButtonProps } from './types';
|
|
3
3
|
export default function FederatedProviderButton({ children, source, style, textStyle, ...rest }: FederatedProviderButtonProps): React.JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { default as FederatedProviderButton } from './FederatedProviderButton';
|
|
2
|
-
export { FederatedProviderButtonProps } from './types';
|
|
2
|
+
export type { FederatedProviderButtonProps } from './types';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ImageSourcePropType, ImageStyle, TextStyle, ViewStyle } from 'react-native';
|
|
2
|
-
import { ButtonProps } from '../../../primitives';
|
|
1
|
+
import type { ImageSourcePropType, ImageStyle, TextStyle, ViewStyle } from 'react-native';
|
|
2
|
+
import type { ButtonProps } from '../../../primitives';
|
|
3
3
|
export interface FederatedProviderButtonProps extends Omit<ButtonProps, 'children'> {
|
|
4
4
|
children?: React.ReactNode;
|
|
5
5
|
source: ImageSourcePropType;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { FederatedProviderButtonsProps } from './types';
|
|
2
|
+
import type { FederatedProviderButtonsProps } from './types';
|
|
3
3
|
export default function FederatedProviderButtons({ buttonStyle, dividerLabelStyle, route, socialProviders, style, toFederatedSignIn, }: FederatedProviderButtonsProps): React.JSX.Element | null;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { useMemo } from 'react';
|
|
2
2
|
import { View } from 'react-native';
|
|
3
|
-
import { authenticatorTextUtil, capitalize
|
|
3
|
+
import { authenticatorTextUtil, capitalize } from '@aws-amplify/ui';
|
|
4
4
|
import { Divider } from '../../../primitives';
|
|
5
5
|
import { useTheme } from '../../../theme';
|
|
6
6
|
import { FederatedProviderButton } from '../FederatedProviderButton';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { StrictTheme } from '../../../theme';
|
|
2
|
-
import { FederatedProviderButtonStyle } from './types';
|
|
1
|
+
import type { StrictTheme } from '../../../theme';
|
|
2
|
+
import type { FederatedProviderButtonStyle } from './types';
|
|
3
3
|
export declare const getThemedStyles: (theme: StrictTheme) => FederatedProviderButtonStyle;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { StyleProp, TextStyle, ViewProps, ViewStyle } from 'react-native';
|
|
2
|
-
import { AuthenticatorMachineContext } from '@aws-amplify/ui-react-core';
|
|
1
|
+
import type { StyleProp, TextStyle, ViewProps, ViewStyle } from 'react-native';
|
|
2
|
+
import type { AuthenticatorMachineContext } from '@aws-amplify/ui-react-core';
|
|
3
3
|
export interface FederatedProviderButtonsProps extends Pick<AuthenticatorMachineContext, 'route' | 'socialProviders' | 'toFederatedSignIn'>, ViewProps {
|
|
4
4
|
buttonStyle?: StyleProp<ViewStyle>;
|
|
5
5
|
dividerLabelStyle?: StyleProp<TextStyle>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { TextFieldProps, PasswordFieldProps, PhoneNumberFieldProps, RadioProps } from '../../primitives';
|
|
1
|
+
import type { TextFieldProps, PasswordFieldProps, PhoneNumberFieldProps, RadioProps } from '../../primitives';
|
|
2
2
|
export type MachineFieldTypeKey = 'password' | 'tel';
|
|
3
3
|
export type AuthenticatorFieldTypeKey = 'email' | 'password' | 'phone' | 'default' | 'radio';
|
|
4
4
|
type RadioFieldOnBlur = RadioProps<string>['onBlur'];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { AuthenticatorComponentDefaultProps, AuthenticatorRouteComponentName, AuthenticatorMachineContext } from '@aws-amplify/ui-react-core';
|
|
2
|
-
import { ValidationError } from '@aws-amplify/ui';
|
|
3
|
-
import { TypedField } from '../types';
|
|
1
|
+
import type { AuthenticatorComponentDefaultProps, AuthenticatorRouteComponentName, AuthenticatorMachineContext } from '@aws-amplify/ui-react-core';
|
|
2
|
+
import type { ValidationError } from '@aws-amplify/ui';
|
|
3
|
+
import type { TypedField } from '../types';
|
|
4
4
|
export type MachineEventHandlers = Pick<AuthenticatorComponentDefaultProps[AuthenticatorRouteComponentName], 'handleBlur' | 'handleChange' | 'handleSubmit'>;
|
|
5
5
|
export interface UseFieldValuesParams<FieldType extends TypedField> {
|
|
6
6
|
componentName: AuthenticatorRouteComponentName;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { TypedField } from '../types';
|
|
2
|
-
import { UseFieldValues, UseFieldValuesParams } from './types';
|
|
1
|
+
import type { TypedField } from '../types';
|
|
2
|
+
import type { UseFieldValues, UseFieldValuesParams } from './types';
|
|
3
3
|
export default function useFieldValues<FieldType extends TypedField>({ componentName, fields, handleBlur, handleChange, handleSubmit, validationErrors, }: UseFieldValuesParams<FieldType>): UseFieldValues<FieldType>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ValidationError } from '@aws-amplify/ui';
|
|
2
|
-
import { AuthenticatorLegacyField, AuthenticatorRouteComponentName, UseAuthenticator } from '@aws-amplify/ui-react-core';
|
|
3
|
-
import { RadioFieldOptions, TextFieldOptionsType, TypedField } from '../types';
|
|
1
|
+
import type { ValidationError } from '@aws-amplify/ui';
|
|
2
|
+
import type { AuthenticatorLegacyField, AuthenticatorRouteComponentName, UseAuthenticator } from '@aws-amplify/ui-react-core';
|
|
3
|
+
import type { RadioFieldOptions, TextFieldOptionsType, TypedField } from '../types';
|
|
4
4
|
export declare const isRadioFieldOptions: (field: TypedField) => field is RadioFieldOptions;
|
|
5
5
|
export declare const getSanitizedVerifyUserFields: (fields: TypedField[]) => TypedField[];
|
|
6
6
|
export declare const getSanitizedSelectMfaTypeFields: (fields: TypedField[]) => TypedField[];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ConsoleLogger as Logger } from 'aws-amplify/utils';
|
|
2
2
|
import { authenticatorTextUtil, isString, isUnverifiedContactMethodType, isValidEmail, UnverifiedContactMethodType, } from '@aws-amplify/ui';
|
|
3
|
-
import { isAuthenticatorComponentRouteKey
|
|
3
|
+
import { isAuthenticatorComponentRouteKey } from '@aws-amplify/ui-react-core';
|
|
4
4
|
import { KEY_ALLOW_LIST } from './constants';
|
|
5
5
|
const logger = new Logger('Authenticator');
|
|
6
6
|
const { getInvalidEmailText, getRequiredFieldText } = authenticatorTextUtil;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export { default as Authenticator } from './Authenticator';
|
|
2
|
-
export { ContainerProps } from './common';
|
|
3
|
-
export { ConfirmResetPasswordProps, ConfirmSignInProps, ConfirmSignUpProps, ConfirmVerifyUserProps, ForceNewPasswordProps, ForgotPasswordProps, SelectMfaTypeProps, SetupEmailProps, SetupTotpProps, SignInProps, SignUpProps, VerifyUserProps, } from './Defaults';
|
|
4
|
-
export { AuthenticatorProps, WithAuthenticatorOptions } from './types';
|
|
5
|
-
export {
|
|
2
|
+
export type { ContainerProps } from './common';
|
|
3
|
+
export type { ConfirmResetPasswordProps, ConfirmSignInProps, ConfirmSignUpProps, ConfirmVerifyUserProps, ForceNewPasswordProps, ForgotPasswordProps, SelectMfaTypeProps, SetupEmailProps, SetupTotpProps, SignInProps, SignUpProps, VerifyUserProps, } from './Defaults';
|
|
4
|
+
export type { AuthenticatorProps, WithAuthenticatorOptions } from './types';
|
|
5
|
+
export type { UseAuthenticator } from './useAuthenticator';
|
|
6
|
+
export { useAuthenticator } from './useAuthenticator';
|
|
6
7
|
export { default as withAuthenticator } from './withAuthenticator';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { AuthenticatorMachineOptions } from '@aws-amplify/ui';
|
|
3
|
-
import { DefaultContainerComponent } from './common';
|
|
4
|
-
import { Components } from './Defaults';
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
import type { AuthenticatorMachineOptions } from '@aws-amplify/ui';
|
|
3
|
+
import type { DefaultContainerComponent } from './common';
|
|
4
|
+
import type { Components } from './Defaults';
|
|
5
5
|
type SupportedAuthenticatorMachineOptions = Omit<AuthenticatorMachineOptions, 'formFields'>;
|
|
6
6
|
export interface AuthenticatorProps extends SupportedAuthenticatorMachineOptions {
|
|
7
7
|
children?: React.ReactNode;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
export { UseAuthenticator } from '@aws-amplify/ui-react-core';
|
|
2
|
-
import {
|
|
1
|
+
export type { UseAuthenticator } from '@aws-amplify/ui-react-core';
|
|
2
|
+
import type { UseAuthenticator } from '@aws-amplify/ui-react-core';
|
|
3
|
+
import { useAuthenticator as _useAuthenticator } from '@aws-amplify/ui-react-core';
|
|
3
4
|
type UseAuthenticatorSelector = Parameters<typeof _useAuthenticator>[0];
|
|
4
5
|
export declare function useAuthenticator(selector?: UseAuthenticatorSelector): UseAuthenticator;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { signOut as _signOut } from 'aws-amplify/auth';
|
|
2
|
-
import { useAuthenticator as _useAuthenticator
|
|
2
|
+
import { useAuthenticator as _useAuthenticator } from '@aws-amplify/ui-react-core';
|
|
3
3
|
// wrap and re-export `useAuthenticator` to replace state machine `signOut` with
|
|
4
4
|
// `aws-amplify/auth` version due to iOS specifc requirements for federated sign
|
|
5
5
|
// out handling with JS. On iOS sign out, JS prmnpts the end user with a native
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { WithAuthenticatorOptions } from './types';
|
|
2
|
+
import type { WithAuthenticatorOptions } from './types';
|
|
3
3
|
export default function withAuthenticator<Props = {}>(Component: React.ComponentType<Props>, options?: WithAuthenticatorOptions): (props: Props) => React.JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { default as BannerMessage } from './BannerMessage';
|
|
2
|
-
export { BannerMessageProps } from './types';
|
|
2
|
+
export type { BannerMessageProps } from './types';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ViewStyle } from 'react-native';
|
|
2
|
-
import { GetDefaultStyle } from '../../hooks';
|
|
3
|
-
import { BannerMessagePositionStyle } from './types';
|
|
1
|
+
import type { ViewStyle } from 'react-native';
|
|
2
|
+
import type { GetDefaultStyle } from '../../hooks';
|
|
3
|
+
import type { BannerMessagePositionStyle } from './types';
|
|
4
4
|
export declare const positionStyle: BannerMessagePositionStyle;
|
|
5
5
|
export declare const getStyles: GetDefaultStyle<{
|
|
6
6
|
position: ViewStyle;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ViewStyle } from 'react-native';
|
|
2
|
-
import { BannerMessageCommonProps } from '@aws-amplify/ui-react-core-notifications';
|
|
3
|
-
import { MessageDefaultStyle, MessageOverrideStyle } from '../../hooks';
|
|
1
|
+
import type { ViewStyle } from 'react-native';
|
|
2
|
+
import type { BannerMessageCommonProps } from '@aws-amplify/ui-react-core-notifications';
|
|
3
|
+
import type { MessageDefaultStyle, MessageOverrideStyle } from '../../hooks';
|
|
4
4
|
export interface BannerMessageProps extends BannerMessageCommonProps<MessageOverrideStyle | undefined> {
|
|
5
5
|
}
|
|
6
6
|
export interface BannerMessageStyle extends MessageDefaultStyle {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { default as CarouselMessage } from './CarouselMessage';
|
|
2
|
-
export { CarouselMessageProps } from './types';
|
|
2
|
+
export type { CarouselMessageProps } from './types';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ImageStyle } from 'react-native';
|
|
2
|
-
import { CarouselMessageStyle, CarouselMessageComponentStyle } from './types';
|
|
1
|
+
import type { ImageStyle } from 'react-native';
|
|
2
|
+
import type { CarouselMessageStyle, CarouselMessageComponentStyle } from './types';
|
|
3
3
|
export declare const defaultStyle: CarouselMessageComponentStyle;
|
|
4
4
|
export declare const getPortraitStyles: (imageDimensions: ImageStyle) => CarouselMessageStyle;
|
|
5
5
|
export declare const getLandscapeStyles: (imageDimensions: ImageStyle) => CarouselMessageStyle;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { StyleProp, ViewStyle } from 'react-native';
|
|
2
|
-
import { CarouselMessageCommonProps, MessageComponentBaseProps } from '@aws-amplify/ui-react-core-notifications';
|
|
3
|
-
import { MessageDefaultStyle, MessageOverrideStyle } from '../../hooks';
|
|
1
|
+
import type { StyleProp, ViewStyle } from 'react-native';
|
|
2
|
+
import type { CarouselMessageCommonProps, MessageComponentBaseProps } from '@aws-amplify/ui-react-core-notifications';
|
|
3
|
+
import type { MessageDefaultStyle, MessageOverrideStyle } from '../../hooks';
|
|
4
4
|
interface CarouselMessageOverrideStyle extends MessageOverrideStyle {
|
|
5
5
|
pageIndicatorActive?: StyleProp<ViewStyle>;
|
|
6
6
|
pageIndicatorInactive?: StyleProp<ViewStyle>;
|