@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
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { default as DefaultFooter } from './DefaultFooter';
|
|
2
|
-
export { DefaultFooterProps } from './types';
|
|
2
|
+
export type { DefaultFooterProps } from './types';
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import type { ContactMethod } from '@aws-amplify/ui';
|
|
3
|
+
import { censorContactMethod } from '@aws-amplify/ui';
|
|
3
4
|
|
|
4
5
|
import { Radio, RadioGroup } from '../../../primitives';
|
|
5
|
-
import { DefaultRadioFormFieldsProps } from './types';
|
|
6
|
+
import type { DefaultRadioFormFieldsProps } from './types';
|
|
6
7
|
|
|
7
8
|
interface AttributeMap {
|
|
8
9
|
email: ContactMethod;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import type { TextInputProps } from 'react-native';
|
|
3
|
+
import { TextInput } from 'react-native';
|
|
3
4
|
|
|
4
5
|
import {
|
|
5
6
|
PasswordField,
|
|
@@ -7,7 +8,7 @@ import {
|
|
|
7
8
|
TextField,
|
|
8
9
|
} from '../../../primitives';
|
|
9
10
|
import { platform } from '../../../utils';
|
|
10
|
-
import { FieldProps } from './types';
|
|
11
|
+
import type { FieldProps } from './types';
|
|
11
12
|
|
|
12
13
|
const { IS_IOS } = platform;
|
|
13
14
|
|
|
@@ -1,4 +1,7 @@
|
|
|
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 {
|
|
4
|
+
export type {
|
|
5
|
+
DefaultFormFieldsComponent,
|
|
6
|
+
DefaultFormFieldsStyle,
|
|
7
|
+
} from './types';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { StyleProp, TextStyle, ViewStyle } from 'react-native';
|
|
2
|
-
import {
|
|
1
|
+
import type { StyleProp, TextStyle, ViewStyle } from 'react-native';
|
|
2
|
+
import type {
|
|
3
3
|
AuthenticatorFormFieldsComponent,
|
|
4
4
|
UseAuthenticator,
|
|
5
5
|
} from '@aws-amplify/ui-react-core';
|
|
6
6
|
|
|
7
|
-
import { RadioFieldOptions, TextFieldOptionsType } from '../../hooks';
|
|
7
|
+
import type { RadioFieldOptions, TextFieldOptionsType } from '../../hooks';
|
|
8
8
|
|
|
9
9
|
export type FieldProps = Omit<TextFieldOptionsType, 'name'> & {
|
|
10
10
|
disabled: boolean;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { default as DefaultHeader } from './DefaultHeader';
|
|
2
|
-
export { DefaultHeaderProps } from './types';
|
|
2
|
+
export type { DefaultHeaderProps } from './types';
|
|
@@ -3,7 +3,7 @@ import React from 'react';
|
|
|
3
3
|
import { Button, Icon, Label } from '../../../primitives';
|
|
4
4
|
import { usePressableContainerStyles } from '../../../hooks';
|
|
5
5
|
|
|
6
|
-
import { FederatedProviderButtonProps } from './types';
|
|
6
|
+
import type { FederatedProviderButtonProps } from './types';
|
|
7
7
|
|
|
8
8
|
export default function FederatedProviderButton({
|
|
9
9
|
children,
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { default as FederatedProviderButton } from './FederatedProviderButton';
|
|
2
|
-
export { FederatedProviderButtonProps } from './types';
|
|
2
|
+
export type { FederatedProviderButtonProps } from './types';
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type {
|
|
2
2
|
ImageSourcePropType,
|
|
3
3
|
ImageStyle,
|
|
4
4
|
TextStyle,
|
|
5
5
|
ViewStyle,
|
|
6
6
|
} from 'react-native';
|
|
7
7
|
|
|
8
|
-
import { ButtonProps } from '../../../primitives';
|
|
8
|
+
import type { ButtonProps } from '../../../primitives';
|
|
9
9
|
|
|
10
10
|
export interface FederatedProviderButtonProps
|
|
11
11
|
extends Omit<ButtonProps, 'children'> {
|
|
@@ -1,16 +1,13 @@
|
|
|
1
1
|
import React, { useMemo } from 'react';
|
|
2
2
|
import { View } from 'react-native';
|
|
3
3
|
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
authenticatorTextUtil,
|
|
7
|
-
capitalize,
|
|
8
|
-
} from '@aws-amplify/ui';
|
|
4
|
+
import type { SocialProvider } from '@aws-amplify/ui';
|
|
5
|
+
import { authenticatorTextUtil, capitalize } from '@aws-amplify/ui';
|
|
9
6
|
|
|
10
7
|
import { Divider } from '../../../primitives';
|
|
11
8
|
import { useTheme } from '../../../theme';
|
|
12
9
|
import { FederatedProviderButton } from '../FederatedProviderButton';
|
|
13
|
-
import { FederatedProviderButtonsProps } from './types';
|
|
10
|
+
import type { FederatedProviderButtonsProps } from './types';
|
|
14
11
|
import { icons } from '../../../assets';
|
|
15
12
|
import { getThemedStyles } from './styles';
|
|
16
13
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { StyleSheet } from 'react-native';
|
|
2
2
|
|
|
3
|
-
import { StrictTheme } from '../../../theme';
|
|
4
|
-
import { FederatedProviderButtonStyle } from './types';
|
|
3
|
+
import type { StrictTheme } from '../../../theme';
|
|
4
|
+
import type { FederatedProviderButtonStyle } from './types';
|
|
5
5
|
|
|
6
6
|
export const getThemedStyles = (
|
|
7
7
|
theme: StrictTheme
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { StyleProp, TextStyle, ViewProps, ViewStyle } from 'react-native';
|
|
1
|
+
import type { StyleProp, TextStyle, ViewProps, ViewStyle } from 'react-native';
|
|
2
2
|
|
|
3
|
-
import { AuthenticatorMachineContext } from '@aws-amplify/ui-react-core';
|
|
3
|
+
import type { AuthenticatorMachineContext } from '@aws-amplify/ui-react-core';
|
|
4
4
|
|
|
5
5
|
export interface FederatedProviderButtonsProps
|
|
6
6
|
extends Pick<
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type {
|
|
2
2
|
AuthenticatorComponentDefaultProps,
|
|
3
3
|
AuthenticatorRouteComponentName,
|
|
4
4
|
AuthenticatorMachineContext,
|
|
5
5
|
} from '@aws-amplify/ui-react-core';
|
|
6
|
-
import { ValidationError } from '@aws-amplify/ui';
|
|
6
|
+
import type { ValidationError } from '@aws-amplify/ui';
|
|
7
7
|
|
|
8
|
-
import { TypedField } from '../types';
|
|
8
|
+
import type { TypedField } from '../types';
|
|
9
9
|
|
|
10
10
|
export type MachineEventHandlers = Pick<
|
|
11
11
|
AuthenticatorComponentDefaultProps[AuthenticatorRouteComponentName],
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { useMemo, useState } from 'react';
|
|
2
2
|
import { ConsoleLogger as Logger } from 'aws-amplify/utils';
|
|
3
|
-
import { ValidationError } from '@aws-amplify/ui';
|
|
3
|
+
import type { ValidationError } from '@aws-amplify/ui';
|
|
4
4
|
|
|
5
|
-
import {
|
|
5
|
+
import type {
|
|
6
6
|
OnChangeText,
|
|
7
7
|
RadioFieldOptions,
|
|
8
8
|
TextFieldOnBlur,
|
|
9
9
|
TypedField,
|
|
10
10
|
} from '../types';
|
|
11
11
|
|
|
12
|
-
import { UseFieldValues, UseFieldValuesParams } from './types';
|
|
12
|
+
import type { UseFieldValues, UseFieldValuesParams } from './types';
|
|
13
13
|
import {
|
|
14
14
|
getSanitizedTextFields,
|
|
15
15
|
isRadioFieldOptions,
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { ConsoleLogger as Logger } from 'aws-amplify/utils';
|
|
2
|
+
import type { ValidationError } from '@aws-amplify/ui';
|
|
2
3
|
import {
|
|
3
4
|
authenticatorTextUtil,
|
|
4
5
|
isString,
|
|
5
6
|
isUnverifiedContactMethodType,
|
|
6
7
|
isValidEmail,
|
|
7
8
|
UnverifiedContactMethodType,
|
|
8
|
-
ValidationError,
|
|
9
9
|
} from '@aws-amplify/ui';
|
|
10
|
-
import {
|
|
10
|
+
import type {
|
|
11
11
|
AuthenticatorLegacyField,
|
|
12
12
|
AuthenticatorRouteComponentName,
|
|
13
|
-
isAuthenticatorComponentRouteKey,
|
|
14
13
|
UseAuthenticator,
|
|
15
14
|
} from '@aws-amplify/ui-react-core';
|
|
15
|
+
import { isAuthenticatorComponentRouteKey } from '@aws-amplify/ui-react-core';
|
|
16
16
|
|
|
17
|
-
import {
|
|
17
|
+
import type {
|
|
18
18
|
AuthenticatorFieldTypeKey,
|
|
19
19
|
MachineFieldTypeKey,
|
|
20
20
|
RadioFieldOptions,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { default as Authenticator } from './Authenticator';
|
|
2
|
-
export { ContainerProps } from './common';
|
|
3
|
-
export {
|
|
2
|
+
export type { ContainerProps } from './common';
|
|
3
|
+
export type {
|
|
4
4
|
ConfirmResetPasswordProps,
|
|
5
5
|
ConfirmSignInProps,
|
|
6
6
|
ConfirmSignUpProps,
|
|
@@ -14,6 +14,7 @@ export {
|
|
|
14
14
|
SignUpProps,
|
|
15
15
|
VerifyUserProps,
|
|
16
16
|
} from './Defaults';
|
|
17
|
-
export { AuthenticatorProps, WithAuthenticatorOptions } from './types';
|
|
18
|
-
export {
|
|
17
|
+
export type { AuthenticatorProps, WithAuthenticatorOptions } from './types';
|
|
18
|
+
export type { UseAuthenticator } from './useAuthenticator';
|
|
19
|
+
export { useAuthenticator } from './useAuthenticator';
|
|
19
20
|
export { default as withAuthenticator } from './withAuthenticator';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import React from 'react';
|
|
1
|
+
import type React from 'react';
|
|
2
2
|
|
|
3
|
-
import { AuthenticatorMachineOptions } from '@aws-amplify/ui';
|
|
3
|
+
import type { AuthenticatorMachineOptions } from '@aws-amplify/ui';
|
|
4
4
|
|
|
5
|
-
import { DefaultContainerComponent } from './common';
|
|
6
|
-
import { Components } from './Defaults';
|
|
5
|
+
import type { DefaultContainerComponent } from './common';
|
|
6
|
+
import type { Components } from './Defaults';
|
|
7
7
|
|
|
8
8
|
type SupportedAuthenticatorMachineOptions = Omit<
|
|
9
9
|
AuthenticatorMachineOptions,
|
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
// re-export `UseAuthenticator` export
|
|
2
|
-
export { UseAuthenticator } from '@aws-amplify/ui-react-core';
|
|
2
|
+
export type { UseAuthenticator } from '@aws-amplify/ui-react-core';
|
|
3
3
|
|
|
4
4
|
import { signOut as _signOut } from 'aws-amplify/auth';
|
|
5
|
-
import { AuthEventData } from '@aws-amplify/ui';
|
|
5
|
+
import type { AuthEventData } from '@aws-amplify/ui';
|
|
6
6
|
|
|
7
|
-
import {
|
|
8
|
-
|
|
9
|
-
UseAuthenticator,
|
|
10
|
-
} from '@aws-amplify/ui-react-core';
|
|
7
|
+
import type { UseAuthenticator } from '@aws-amplify/ui-react-core';
|
|
8
|
+
import { useAuthenticator as _useAuthenticator } from '@aws-amplify/ui-react-core';
|
|
11
9
|
|
|
12
10
|
// wrap and re-export `useAuthenticator` to replace state machine `signOut` with
|
|
13
11
|
// `aws-amplify/auth` version due to iOS specifc requirements for federated sign
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import Authenticator from './Authenticator';
|
|
3
|
-
import { WithAuthenticatorOptions } from './types';
|
|
3
|
+
import type { WithAuthenticatorOptions } from './types';
|
|
4
4
|
|
|
5
5
|
export default function withAuthenticator<Props = {}>(
|
|
6
6
|
Component: React.ComponentType<Props>,
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
|
|
3
|
-
import { ImageDimensions
|
|
3
|
+
import type { ImageDimensions } from '../../hooks';
|
|
4
|
+
import { useMessageProps } from '../../hooks';
|
|
4
5
|
import { MessageWrapper } from '../MessageWrapper';
|
|
5
6
|
import { MessageLayout } from '../MessageLayout';
|
|
6
7
|
|
|
7
8
|
import { getStyles, positionStyle } from './styles';
|
|
8
|
-
import { BannerMessageProps } from './types';
|
|
9
|
+
import type { BannerMessageProps } from './types';
|
|
9
10
|
|
|
10
11
|
export default function BannerMessage({
|
|
11
12
|
position = 'top',
|
|
@@ -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';
|
|
1
|
+
import type { ViewStyle } from 'react-native';
|
|
2
2
|
|
|
3
|
-
import { GetDefaultStyle } from '../../hooks';
|
|
3
|
+
import type { GetDefaultStyle } from '../../hooks';
|
|
4
4
|
import {
|
|
5
5
|
BORDER_RADIUS_BASE,
|
|
6
6
|
COLOR_BLACK,
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
SPACING_MEDIUM,
|
|
23
23
|
SPACING_SMALL,
|
|
24
24
|
} from '../../constants';
|
|
25
|
-
import { BannerMessagePositionStyle } from './types';
|
|
25
|
+
import type { BannerMessagePositionStyle } from './types';
|
|
26
26
|
|
|
27
27
|
export const positionStyle: BannerMessagePositionStyle = {
|
|
28
28
|
bottom: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ViewStyle } from 'react-native';
|
|
2
|
-
import { BannerMessageCommonProps } from '@aws-amplify/ui-react-core-notifications';
|
|
1
|
+
import type { ViewStyle } from 'react-native';
|
|
2
|
+
import type { BannerMessageCommonProps } from '@aws-amplify/ui-react-core-notifications';
|
|
3
3
|
|
|
4
|
-
import { MessageDefaultStyle, MessageOverrideStyle } from '../../hooks';
|
|
4
|
+
import type { MessageDefaultStyle, MessageOverrideStyle } from '../../hooks';
|
|
5
5
|
|
|
6
6
|
export interface BannerMessageProps
|
|
7
7
|
extends BannerMessageCommonProps<MessageOverrideStyle | undefined> {}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { useMemo } from 'react';
|
|
2
|
-
import { MessageContentProps } from '@aws-amplify/ui-react-core-notifications';
|
|
2
|
+
import type { MessageContentProps } from '@aws-amplify/ui-react-core-notifications';
|
|
3
3
|
|
|
4
4
|
import { Carousel } from '../../../primitives';
|
|
5
5
|
import { IN_APP_MESSAGING_TEST_ID } from '../../constants';
|
|
@@ -7,7 +7,7 @@ import { IN_APP_MESSAGING_TEST_ID } from '../../constants';
|
|
|
7
7
|
import { MessageWrapper } from '../MessageWrapper';
|
|
8
8
|
import CarouselMessageItem from './CarouselMessageItem';
|
|
9
9
|
import { defaultStyle } from './styles';
|
|
10
|
-
import { CarouselMessageProps } from './types';
|
|
10
|
+
import type { CarouselMessageProps } from './types';
|
|
11
11
|
|
|
12
12
|
export default function CarouselMessage(
|
|
13
13
|
props: CarouselMessageProps
|
|
@@ -6,7 +6,7 @@ import { useMessageProps } from '../../hooks';
|
|
|
6
6
|
import { MessageLayout } from '../MessageLayout';
|
|
7
7
|
|
|
8
8
|
import { getLandscapeStyles, getPortraitStyles } from './styles';
|
|
9
|
-
import { CarouselMessageItemProps } from './types';
|
|
9
|
+
import type { CarouselMessageItemProps } from './types';
|
|
10
10
|
|
|
11
11
|
export default function CarouselMessageItem(
|
|
12
12
|
props: CarouselMessageItemProps
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { default as CarouselMessage } from './CarouselMessage';
|
|
2
|
-
export { CarouselMessageProps } from './types';
|
|
2
|
+
export type { CarouselMessageProps } from './types';
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { ImageStyle
|
|
1
|
+
import type { ImageStyle } from 'react-native';
|
|
2
|
+
import { StyleSheet } from 'react-native';
|
|
2
3
|
import {
|
|
3
4
|
BORDER_RADIUS_BASE,
|
|
4
5
|
COLOR_GREY,
|
|
@@ -17,7 +18,10 @@ import {
|
|
|
17
18
|
SPACING_SMALL,
|
|
18
19
|
} from '../../constants';
|
|
19
20
|
|
|
20
|
-
import {
|
|
21
|
+
import type {
|
|
22
|
+
CarouselMessageStyle,
|
|
23
|
+
CarouselMessageComponentStyle,
|
|
24
|
+
} from './types';
|
|
21
25
|
|
|
22
26
|
export const defaultStyle: CarouselMessageComponentStyle = StyleSheet.create({
|
|
23
27
|
pageIndicatorActive: {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { StyleProp, ViewStyle } from 'react-native';
|
|
1
|
+
import type { StyleProp, ViewStyle } from 'react-native';
|
|
2
2
|
|
|
3
|
-
import {
|
|
3
|
+
import type {
|
|
4
4
|
CarouselMessageCommonProps,
|
|
5
5
|
MessageComponentBaseProps,
|
|
6
6
|
} from '@aws-amplify/ui-react-core-notifications';
|
|
7
7
|
|
|
8
|
-
import { MessageDefaultStyle, MessageOverrideStyle } from '../../hooks';
|
|
8
|
+
import type { MessageDefaultStyle, MessageOverrideStyle } from '../../hooks';
|
|
9
9
|
|
|
10
10
|
interface CarouselMessageOverrideStyle extends MessageOverrideStyle {
|
|
11
11
|
pageIndicatorActive?: StyleProp<ViewStyle>;
|
|
@@ -7,7 +7,7 @@ import { MessageLayout } from '../MessageLayout';
|
|
|
7
7
|
import { MessageWrapper } from '../MessageWrapper';
|
|
8
8
|
|
|
9
9
|
import { getLandscapeStyles, getPortraitStyles } from './styles';
|
|
10
|
-
import { FullScreenMessageProps } from './types';
|
|
10
|
+
import type { FullScreenMessageProps } from './types';
|
|
11
11
|
|
|
12
12
|
export default function FullScreenMessage(
|
|
13
13
|
props: FullScreenMessageProps
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { default as FullScreenMessage } from './FullScreenMessage';
|
|
2
|
-
export { FullScreenMessageProps } from './types';
|
|
2
|
+
export type { FullScreenMessageProps } from './types';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ImageStyle } from 'react-native';
|
|
1
|
+
import type { ImageStyle } from 'react-native';
|
|
2
2
|
|
|
3
|
-
import { GetDefaultStyle } from '../../hooks';
|
|
3
|
+
import type { GetDefaultStyle } from '../../hooks';
|
|
4
4
|
import {
|
|
5
5
|
BORDER_RADIUS_BASE,
|
|
6
6
|
COLOR_LIGHT_GREY,
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
SPACING_MEDIUM,
|
|
17
17
|
} from '../../constants';
|
|
18
18
|
|
|
19
|
-
import { FullScreenMessageStyle } from './types';
|
|
19
|
+
import type { FullScreenMessageStyle } from './types';
|
|
20
20
|
|
|
21
21
|
const commonStyles: Omit<FullScreenMessageStyle, 'image'> = {
|
|
22
22
|
body: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { FullScreenMessageCommonProps } from '@aws-amplify/ui-react-core-notifications';
|
|
2
|
-
import { MessageDefaultStyle, MessageOverrideStyle } from '../../hooks';
|
|
1
|
+
import type { FullScreenMessageCommonProps } from '@aws-amplify/ui-react-core-notifications';
|
|
2
|
+
import type { MessageDefaultStyle, MessageOverrideStyle } from '../../hooks';
|
|
3
3
|
|
|
4
4
|
export interface FullScreenMessageProps
|
|
5
5
|
extends FullScreenMessageCommonProps<MessageOverrideStyle | undefined> {}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
|
|
3
|
+
import type { OnMessageAction } from '@aws-amplify/ui-react-core-notifications';
|
|
3
4
|
import {
|
|
4
5
|
handleMessageAction,
|
|
5
|
-
OnMessageAction,
|
|
6
6
|
useMessage,
|
|
7
7
|
} from '@aws-amplify/ui-react-core-notifications';
|
|
8
8
|
|
|
@@ -12,7 +12,10 @@ import { CarouselMessage } from '../CarouselMessage';
|
|
|
12
12
|
import { ModalMessage } from '../ModalMessage';
|
|
13
13
|
|
|
14
14
|
import handleMessageLinkAction from './handleMessageLinkAction';
|
|
15
|
-
import {
|
|
15
|
+
import type {
|
|
16
|
+
InAppMessageDisplayProps,
|
|
17
|
+
MessageDefaultComponents,
|
|
18
|
+
} from './types';
|
|
16
19
|
|
|
17
20
|
const platformComponents: MessageDefaultComponents = {
|
|
18
21
|
BannerMessage,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Linking } from 'react-native';
|
|
2
2
|
import { ConsoleLogger as Logger } from 'aws-amplify/utils';
|
|
3
|
-
import { HandleMessageLinkAction } from '@aws-amplify/ui-react-core-notifications';
|
|
3
|
+
import type { HandleMessageLinkAction } from '@aws-amplify/ui-react-core-notifications';
|
|
4
4
|
|
|
5
5
|
const logger = new Logger('InAppMessaging');
|
|
6
6
|
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { default as InAppMessageDisplay } from './InAppMessageDisplay';
|
|
2
|
-
export { MessageComponents } from './types';
|
|
2
|
+
export type { MessageComponents } from './types';
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type {
|
|
2
2
|
BannerMessageComponent,
|
|
3
3
|
CarouselMessageComponent,
|
|
4
4
|
FullScreenMessageComponent,
|
|
5
5
|
ModalMessageComponent,
|
|
6
6
|
} from '@aws-amplify/ui-react-core-notifications';
|
|
7
7
|
|
|
8
|
-
import { BannerMessageProps } from '../BannerMessage';
|
|
9
|
-
import { CarouselMessageProps } from '../CarouselMessage';
|
|
10
|
-
import { FullScreenMessageProps } from '../FullScreenMessage';
|
|
11
|
-
import { ModalMessageProps } from '../ModalMessage';
|
|
8
|
+
import type { BannerMessageProps } from '../BannerMessage';
|
|
9
|
+
import type { CarouselMessageProps } from '../CarouselMessage';
|
|
10
|
+
import type { FullScreenMessageProps } from '../FullScreenMessage';
|
|
11
|
+
import type { ModalMessageProps } from '../ModalMessage';
|
|
12
12
|
|
|
13
13
|
type BannerStyle = BannerMessageProps['style'];
|
|
14
14
|
type CarouselStyle = CarouselMessageProps['style'];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { MessageComponentBaseProps } from '@aws-amplify/ui-react-core-notifications';
|
|
1
|
+
import type { MessageComponentBaseProps } from '@aws-amplify/ui-react-core-notifications';
|
|
2
2
|
|
|
3
|
-
import { DeviceOrientation } from '../../../hooks';
|
|
4
|
-
import {
|
|
3
|
+
import type { DeviceOrientation } from '../../../hooks';
|
|
4
|
+
import type {
|
|
5
5
|
MessageComponentStyles,
|
|
6
6
|
MessageOverrideStyle,
|
|
7
7
|
UseMessageProps,
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import type { ModalPropsIOS } from 'react-native';
|
|
3
|
+
import { Modal } from 'react-native';
|
|
3
4
|
import { SafeAreaProvider, SafeAreaView } from 'react-native-safe-area-context';
|
|
4
5
|
|
|
5
6
|
import { styles } from './styles';
|
|
6
|
-
import { MessageWrapperProps } from './types';
|
|
7
|
+
import type { MessageWrapperProps } from './types';
|
|
7
8
|
|
|
8
9
|
const SUPPORTED_ORIENTATIONS: ModalPropsIOS['supportedOrientations'] = [
|
|
9
10
|
'portrait',
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { default as MessageWrapper } from './MessageWrapper';
|
|
2
|
-
export { MessageWrapperProps, MessageWrapperStyle } from './types';
|
|
2
|
+
export type { MessageWrapperProps, MessageWrapperStyle } from './types';
|
|
@@ -6,7 +6,7 @@ import { MessageLayout } from '../MessageLayout';
|
|
|
6
6
|
import { MessageWrapper } from '../MessageWrapper';
|
|
7
7
|
|
|
8
8
|
import { getLandscapeStyles, getPortraitStyles } from './styles';
|
|
9
|
-
import { ModalMessageProps } from './types';
|
|
9
|
+
import type { ModalMessageProps } from './types';
|
|
10
10
|
|
|
11
11
|
export default function ModalMessage(
|
|
12
12
|
props: ModalMessageProps
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { default as ModalMessage } from './ModalMessage';
|
|
2
|
-
export { ModalMessageProps } from './types';
|
|
2
|
+
export type { ModalMessageProps } from './types';
|