@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 FullScreenMessage } from './FullScreenMessage';
|
|
2
|
-
export { FullScreenMessageProps } from './types';
|
|
2
|
+
export type { FullScreenMessageProps } from './types';
|
|
@@ -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
|
export interface FullScreenMessageProps extends FullScreenMessageCommonProps<MessageOverrideStyle | undefined> {
|
|
4
4
|
}
|
|
5
5
|
export interface FullScreenMessageStyle extends MessageDefaultStyle {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { InAppMessageDisplayProps } from './types';
|
|
2
|
+
import type { InAppMessageDisplayProps } from './types';
|
|
3
3
|
declare function InAppMessageDisplay({ components: overrideComponents, }: InAppMessageDisplayProps): React.JSX.Element | null;
|
|
4
4
|
declare namespace InAppMessageDisplay {
|
|
5
5
|
var BannerMessage: typeof import("../BannerMessage").BannerMessage;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { HandleMessageLinkAction } from '@aws-amplify/ui-react-core-notifications';
|
|
1
|
+
import type { HandleMessageLinkAction } from '@aws-amplify/ui-react-core-notifications';
|
|
2
2
|
declare const handleMessageLinkAction: HandleMessageLinkAction;
|
|
3
3
|
export default handleMessageLinkAction;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { default as InAppMessageDisplay } from './InAppMessageDisplay';
|
|
2
|
-
export { MessageComponents } from './types';
|
|
2
|
+
export type { MessageComponents } from './types';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { BannerMessageComponent, CarouselMessageComponent, FullScreenMessageComponent, ModalMessageComponent } from '@aws-amplify/ui-react-core-notifications';
|
|
2
|
-
import { BannerMessageProps } from '../BannerMessage';
|
|
3
|
-
import { CarouselMessageProps } from '../CarouselMessage';
|
|
4
|
-
import { FullScreenMessageProps } from '../FullScreenMessage';
|
|
5
|
-
import { ModalMessageProps } from '../ModalMessage';
|
|
1
|
+
import type { BannerMessageComponent, CarouselMessageComponent, FullScreenMessageComponent, ModalMessageComponent } from '@aws-amplify/ui-react-core-notifications';
|
|
2
|
+
import type { BannerMessageProps } from '../BannerMessage';
|
|
3
|
+
import type { CarouselMessageProps } from '../CarouselMessage';
|
|
4
|
+
import type { FullScreenMessageProps } from '../FullScreenMessage';
|
|
5
|
+
import type { ModalMessageProps } from '../ModalMessage';
|
|
6
6
|
type BannerStyle = BannerMessageProps['style'];
|
|
7
7
|
type CarouselStyle = CarouselMessageProps['style'];
|
|
8
8
|
type FullScreenStyle = FullScreenMessageProps['style'];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { MessageComponentBaseProps } from '@aws-amplify/ui-react-core-notifications';
|
|
2
|
-
import { DeviceOrientation } from '../../../hooks';
|
|
3
|
-
import { MessageComponentStyles, MessageOverrideStyle, UseMessageProps } from '../../hooks';
|
|
1
|
+
import type { MessageComponentBaseProps } from '@aws-amplify/ui-react-core-notifications';
|
|
2
|
+
import type { DeviceOrientation } from '../../../hooks';
|
|
3
|
+
import type { MessageComponentStyles, MessageOverrideStyle, UseMessageProps } from '../../hooks';
|
|
4
4
|
export interface LayoutProps extends Omit<MessageComponentBaseProps<MessageOverrideStyle>, 'style'>, Omit<UseMessageProps, 'shouldRenderMessage' | 'styles'> {
|
|
5
5
|
orientation: DeviceOrientation;
|
|
6
6
|
styles: Omit<MessageComponentStyles, 'wrapper'>;
|
|
@@ -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';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { MessageWrapperStyle } from './types';
|
|
1
|
+
import type { MessageWrapperStyle } from './types';
|
|
2
2
|
export declare const styles: MessageWrapperStyle;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
import { StyleProp, ViewStyle } from 'react-native';
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
import type { StyleProp, ViewStyle } from 'react-native';
|
|
3
3
|
export interface MessageWrapperProps {
|
|
4
4
|
children: ReactNode;
|
|
5
5
|
disableSafeAreaView?: boolean;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { default as ModalMessage } from './ModalMessage';
|
|
2
|
-
export { ModalMessageProps } from './types';
|
|
2
|
+
export type { ModalMessageProps } from './types';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ImageStyle } from 'react-native';
|
|
2
|
-
import { ModalMessageStyle } from './types';
|
|
1
|
+
import type { ImageStyle } from 'react-native';
|
|
2
|
+
import type { ModalMessageStyle } from './types';
|
|
3
3
|
export declare const getPortraitStyles: (imageDimensions: ImageStyle) => ModalMessageStyle;
|
|
4
4
|
export declare const getLandscapeStyles: (imageDimensions: ImageStyle) => ModalMessageStyle;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ModalMessageCommonProps } from '@aws-amplify/ui-react-core-notifications';
|
|
2
|
-
import { MessageDefaultStyle, MessageOverrideStyle } from '../../hooks';
|
|
1
|
+
import type { ModalMessageCommonProps } from '@aws-amplify/ui-react-core-notifications';
|
|
2
|
+
import type { MessageDefaultStyle, MessageOverrideStyle } from '../../hooks';
|
|
3
3
|
export interface ModalMessageProps extends ModalMessageCommonProps<MessageOverrideStyle | undefined> {
|
|
4
4
|
}
|
|
5
5
|
export interface ModalMessageStyle extends MessageDefaultStyle {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
export { BannerMessageProps } from './BannerMessage';
|
|
2
|
-
export { CarouselMessageProps } from './CarouselMessage';
|
|
3
|
-
export { FullScreenMessageProps } from './FullScreenMessage';
|
|
4
|
-
export {
|
|
5
|
-
export {
|
|
1
|
+
export type { BannerMessageProps } from './BannerMessage';
|
|
2
|
+
export type { CarouselMessageProps } from './CarouselMessage';
|
|
3
|
+
export type { FullScreenMessageProps } from './FullScreenMessage';
|
|
4
|
+
export type { MessageComponents } from './InAppMessageDisplay';
|
|
5
|
+
export { InAppMessageDisplay } from './InAppMessageDisplay';
|
|
6
|
+
export type { ModalMessageProps } from './ModalMessage';
|
|
6
7
|
export { withInAppMessaging } from './withInAppMessaging';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { MessageComponents } from '../InAppMessageDisplay';
|
|
2
|
+
import type { MessageComponents } from '../InAppMessageDisplay';
|
|
3
3
|
export default function withInAppMessaging<Props = {}>(Component: React.ComponentType<Props>, options?: {
|
|
4
4
|
components?: MessageComponents;
|
|
5
5
|
}): (props: Props) => React.JSX.Element;
|
|
@@ -1,2 +1,4 @@
|
|
|
1
|
-
export { ImageDimensions
|
|
2
|
-
export {
|
|
1
|
+
export type { ImageDimensions } from './useMessageImage';
|
|
2
|
+
export { useMessageImage } from './useMessageImage';
|
|
3
|
+
export type { GetDefaultStyle, MessageComponentStyles, MessageDefaultStyle, MessageOverrideStyle, UseMessageProps, } from './useMessageProps';
|
|
4
|
+
export { useMessageProps } from './useMessageProps';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { useMessageImage } from './useMessageImage';
|
|
2
|
-
export { useMessageProps
|
|
2
|
+
export { useMessageProps } from './useMessageProps';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { default as useMessageImage } from './useMessageImage';
|
|
2
|
-
export { ImageDimensions } from './types';
|
|
2
|
+
export type { ImageDimensions } from './types';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { InAppMessageImage, InAppMessageLayout } from '@aws-amplify/ui-react-core-notifications';
|
|
2
|
-
import { UseMessageImage } from './types';
|
|
1
|
+
import type { InAppMessageImage, InAppMessageLayout } from '@aws-amplify/ui-react-core-notifications';
|
|
2
|
+
import type { UseMessageImage } from './types';
|
|
3
3
|
/**
|
|
4
4
|
* Handles prefetching and dimension setting for message images
|
|
5
5
|
*
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { InAppMessageLayout } from '@aws-amplify/ui-react-core-notifications';
|
|
2
|
-
import { ImageDimensions, ImageLoadingState } from './types';
|
|
1
|
+
import type { InAppMessageLayout } from '@aws-amplify/ui-react-core-notifications';
|
|
2
|
+
import type { ImageDimensions, ImageLoadingState } from './types';
|
|
3
3
|
export declare const prefetchNetworkImage: (url: string) => Promise<ImageLoadingState>;
|
|
4
4
|
export declare const getLayoutImageDimensions: (imageHeight: number, imageWidth: number, layout: InAppMessageLayout) => ImageDimensions;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { default as useMessageProps } from './useMessageProps';
|
|
2
|
-
export { GetDefaultStyle, MessageComponentStyles, MessageDefaultStyle, MessageOverrideStyle, UseMessageProps, } from './types';
|
|
2
|
+
export type { GetDefaultStyle, MessageComponentStyles, MessageDefaultStyle, MessageOverrideStyle, UseMessageProps, } from './types';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ColorValue, ImageStyle, StyleProp, TextStyle, ViewStyle } from 'react-native';
|
|
2
|
-
import { InAppMessageLayout, MessagePayloadStyle } from '@aws-amplify/ui-react-core-notifications';
|
|
3
|
-
import { ButtonProps } from '../../../primitives';
|
|
4
|
-
import { ImageDimensions } from '../useMessageImage';
|
|
1
|
+
import type { ColorValue, ImageStyle, StyleProp, TextStyle, ViewStyle } from 'react-native';
|
|
2
|
+
import type { InAppMessageLayout, MessagePayloadStyle } from '@aws-amplify/ui-react-core-notifications';
|
|
3
|
+
import type { ButtonProps } from '../../../primitives';
|
|
4
|
+
import type { ImageDimensions } from '../useMessageImage';
|
|
5
5
|
/**
|
|
6
6
|
* Resolved message types
|
|
7
7
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { MessageComponentBaseProps } from '@aws-amplify/ui-react-core-notifications';
|
|
2
|
-
import { GetDefaultStyle, MessageOverrideStyle, UseMessageProps } from './types';
|
|
1
|
+
import type { MessageComponentBaseProps } from '@aws-amplify/ui-react-core-notifications';
|
|
2
|
+
import type { GetDefaultStyle, MessageOverrideStyle, UseMessageProps } from './types';
|
|
3
3
|
/**
|
|
4
4
|
* Handle common message UI component prop logic including setting of image dimensions,
|
|
5
5
|
* render booleans, and style resolving
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { InAppMessageLayout, MessageComponentBaseProps, MessagePayloadStyle } from '@aws-amplify/ui-react-core-notifications';
|
|
2
|
-
import { MessageButtonStyleParams, MessageButtonStyleProps, MessageComponentStyles, MessageContainerAndWrapperStyle, MessageStyleParams } from './types';
|
|
1
|
+
import type { InAppMessageLayout, MessageComponentBaseProps, MessagePayloadStyle } from '@aws-amplify/ui-react-core-notifications';
|
|
2
|
+
import type { MessageButtonStyleParams, MessageButtonStyleProps, MessageComponentStyles, MessageContainerAndWrapperStyle, MessageStyleParams } from './types';
|
|
3
3
|
/**
|
|
4
4
|
* Parse and assign appropriate button container and text style from style objects params
|
|
5
5
|
*
|
|
@@ -1,2 +1,4 @@
|
|
|
1
|
-
export { InAppMessage, InAppMessageAction, InAppMessageButton, InAppMessageContent, InAppMessageImage, InAppMessageLayout,
|
|
2
|
-
export {
|
|
1
|
+
export type { InAppMessage, InAppMessageAction, InAppMessageButton, InAppMessageContent, InAppMessageImage, InAppMessageLayout, InAppMessageStyle, InAppMessageTextAlign, } from '@aws-amplify/ui-react-core-notifications';
|
|
2
|
+
export { InAppMessagingProvider, useInAppMessaging, } from '@aws-amplify/ui-react-core-notifications';
|
|
3
|
+
export type { BannerMessageProps, CarouselMessageProps, FullScreenMessageProps, ModalMessageProps, MessageComponents, } from './components';
|
|
4
|
+
export { InAppMessageDisplay, withInAppMessaging } from './components';
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
// re-export in-app types from '@aws-amplify/ui-react-core-notifications'
|
|
2
1
|
export { InAppMessagingProvider, useInAppMessaging, } from '@aws-amplify/ui-react-core-notifications';
|
|
3
|
-
export { InAppMessageDisplay, withInAppMessaging
|
|
2
|
+
export { InAppMessageDisplay, withInAppMessaging } from './components';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// disable `@typescript-eslint/no-var-requires` for this file
|
|
2
2
|
// .png icons will be removed in favor of .svg icons
|
|
3
3
|
/* eslint-disable @typescript-eslint/no-var-requires */
|
|
4
|
-
import { ImageSourcePropType } from 'react-native';
|
|
4
|
+
import type { ImageSourcePropType } from 'react-native';
|
|
5
5
|
|
|
6
6
|
const icons = {
|
|
7
7
|
amazonLogo: require('./amazonLogo.png') as ImageSourcePropType,
|
package/dist/hooks/index.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
export { useDeprecationWarning } from './useDeprecationWarning';
|
|
2
|
-
export { DeviceOrientation
|
|
2
|
+
export type { DeviceOrientation } from './useDeviceOrientation';
|
|
3
|
+
export { useDeviceOrientation } from './useDeviceOrientation';
|
|
3
4
|
export { usePressableContainerStyles } from './usePressableContainerStyles';
|
package/dist/hooks/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export { useDeprecationWarning } from './useDeprecationWarning';
|
|
2
|
-
export { useDeviceOrientation
|
|
2
|
+
export { useDeviceOrientation } from './useDeviceOrientation';
|
|
3
3
|
export { usePressableContainerStyles } from './usePressableContainerStyles';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { useDeprecationWarning as useDeprecationWarningBase
|
|
1
|
+
import { useDeprecationWarning as useDeprecationWarningBase } from '@aws-amplify/ui-react-core';
|
|
2
2
|
import { platform } from '../../utils';
|
|
3
3
|
/**
|
|
4
4
|
* Logs a deprecation warning `message` to the console.
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export type { DeviceOrientation } from './useDeviceOrientation';
|
|
2
|
+
export { default as useDeviceOrientation } from './useDeviceOrientation';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default as useDeviceOrientation
|
|
1
|
+
export { default as useDeviceOrientation } from './useDeviceOrientation';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PressableProps, PressableStateCallbackType, StyleProp, ViewStyle } from 'react-native';
|
|
1
|
+
import type { PressableProps, PressableStateCallbackType, StyleProp, ViewStyle } from 'react-native';
|
|
2
2
|
export interface UsePressableContainerStyleProps {
|
|
3
3
|
/**
|
|
4
4
|
* @description
|
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export type { AuthenticatorProps, UseAuthenticator, WithAuthenticatorOptions, ConfirmResetPasswordProps, ConfirmSignInProps, ConfirmSignUpProps, ConfirmVerifyUserProps, ForceNewPasswordProps, ForgotPasswordProps, SelectMfaTypeProps, SetupEmailProps, SetupTotpProps, SignInProps, SignUpProps, VerifyUserProps, } from './Authenticator';
|
|
2
|
+
export { Authenticator, useAuthenticator, withAuthenticator, } from './Authenticator';
|
|
2
3
|
export * from './InAppMessaging';
|
|
3
|
-
export { Theme
|
|
4
|
+
export type { Theme } from './theme';
|
|
5
|
+
export { ThemeProvider, defaultDarkModeOverride, defaultTheme, useTheme, } from './theme';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { default as Button } from './Button';
|
|
2
|
-
export { ButtonProps, ButtonStyles } from './types';
|
|
2
|
+
export type { ButtonProps, ButtonStyles } from './types';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { StrictTheme } from '../../theme';
|
|
2
|
-
import { ButtonStyles } from './types';
|
|
1
|
+
import type { StrictTheme } from '../../theme';
|
|
2
|
+
import type { ButtonStyles } from './types';
|
|
3
3
|
export declare const getThemedStyles: (theme: StrictTheme) => ButtonStyles;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PressableProps, StyleProp, TextStyle, ViewStyle } from 'react-native';
|
|
1
|
+
import type { PressableProps, StyleProp, TextStyle, ViewStyle } from 'react-native';
|
|
2
2
|
export type ButtonVariant = 'primary' | 'default' | 'link';
|
|
3
3
|
export interface ButtonProps extends PressableProps {
|
|
4
4
|
textStyle?: StyleProp<TextStyle>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { useCallback, useEffect, useRef, useState } from 'react';
|
|
2
|
-
import { Dimensions, FlatList, View
|
|
2
|
+
import { Dimensions, FlatList, View } from 'react-native';
|
|
3
3
|
import CarouselPageIndicator from './CarouselPageIndicator';
|
|
4
4
|
import { VIEWABILITY_CONFIG } from './constants';
|
|
5
5
|
import { styles } from './styles';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { CarouselPageIndicatorProps } from './types';
|
|
2
|
+
import type { CarouselPageIndicatorProps } from './types';
|
|
3
3
|
export default function CarouselPageIndicator({ activeStyle, currentIndex, inactiveStyle, indicatorTestId, numberOfItems, style, }: CarouselPageIndicatorProps): React.JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ViewStyle } from 'react-native';
|
|
1
|
+
import type { ViewStyle } from 'react-native';
|
|
2
2
|
export declare const DEFAULT_CAROUSEL_COLOR_ACTIVE = "#a1a1a1";
|
|
3
3
|
export declare const DEFAULT_CAROUSEL_COLOR_INACTIVE = "#d8d8d8";
|
|
4
4
|
export declare const DEFAULT_CAROUSEL_INDICATOR_SIZE = 12;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { CarouselStyles } from './types';
|
|
1
|
+
import type { CarouselStyles } from './types';
|
|
2
2
|
export declare const styles: CarouselStyles;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { CheckboxProps } from './types';
|
|
2
|
+
import type { CheckboxProps } from './types';
|
|
3
3
|
export default function Checkbox<T>({ accessibilityRole, iconStyle, disabled, label, labelPosition, labelStyle, onChange, selected, size, style, value, ...rest }: CheckboxProps<T>): React.JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { StrictTheme } from '../../theme';
|
|
2
|
-
import { CheckboxStyles } from './types';
|
|
3
|
-
import { LabelPosition } from '../Label/types';
|
|
1
|
+
import type { StrictTheme } from '../../theme';
|
|
2
|
+
import type { CheckboxStyles } from './types';
|
|
3
|
+
import type { LabelPosition } from '../Label/types';
|
|
4
4
|
export declare const getThemedStyles: (theme: StrictTheme, labelPosition: LabelPosition) => CheckboxStyles;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ImageStyle, PressableProps, StyleProp, TextStyle, ViewStyle } from 'react-native';
|
|
2
|
-
import { IconProps } from '../Icon/types';
|
|
3
|
-
import { LabelProps } from '../Label';
|
|
4
|
-
import { LabelPosition } from '../Label/types';
|
|
1
|
+
import type { ImageStyle, PressableProps, StyleProp, TextStyle, ViewStyle } from 'react-native';
|
|
2
|
+
import type { IconProps } from '../Icon/types';
|
|
3
|
+
import type { LabelProps } from '../Label';
|
|
4
|
+
import type { LabelPosition } from '../Label/types';
|
|
5
5
|
export interface CheckboxProps<T> extends PressableProps {
|
|
6
6
|
iconStyle?: IconProps['style'];
|
|
7
7
|
label?: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { DividerProps } from './types';
|
|
2
|
+
import type { DividerProps } from './types';
|
|
3
3
|
export declare const DIVIDER_LINE_TEST_ID = "amplify__divider__line";
|
|
4
4
|
export default function Divider({ children, labelStyle, lineStyle, style, }: DividerProps): React.JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { default as Divider } from './Divider';
|
|
2
|
-
export { DividerProps, DividerStyles } from './types';
|
|
2
|
+
export type { DividerProps, DividerStyles } from './types';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { StrictTheme } from '../../theme';
|
|
2
|
-
import { DividerStyles } from './types';
|
|
1
|
+
import type { StrictTheme } from '../../theme';
|
|
2
|
+
import type { DividerStyles } from './types';
|
|
3
3
|
export declare const getThemedStyles: (theme: StrictTheme) => DividerStyles;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { StyleProp, TextStyle, ViewProps, ViewStyle } from 'react-native';
|
|
1
|
+
import type { StyleProp, TextStyle, ViewProps, ViewStyle } from 'react-native';
|
|
2
2
|
export interface DividerProps extends ViewProps {
|
|
3
3
|
labelStyle?: StyleProp<TextStyle>;
|
|
4
4
|
lineStyle?: StyleProp<ViewStyle>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { ErrorMessageProps } from './types';
|
|
2
|
+
import type { ErrorMessageProps } from './types';
|
|
3
3
|
export declare const CLOSE_BUTTON_TEST_ID = "authenticator--error-message--close-button";
|
|
4
4
|
export default function ErrorMessage({ accessible, accessibilityRole, children, iconStyle, labelStyle, onDismiss, style, ...rest }: ErrorMessageProps): React.JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { default as ErrorMessage } from './ErrorMessage';
|
|
2
|
-
export { ErrorMessageProps, ErrorMessageStyles } from './types';
|
|
2
|
+
export type { ErrorMessageProps, ErrorMessageStyles } from './types';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { StrictTheme } from '../../theme';
|
|
2
|
-
import { ErrorMessageStyles } from './types';
|
|
1
|
+
import type { StrictTheme } from '../../theme';
|
|
2
|
+
import type { ErrorMessageStyles } from './types';
|
|
3
3
|
export declare const getThemedStyles: (theme: StrictTheme) => ErrorMessageStyles;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ImageStyle, StyleProp, TextStyle, ViewProps, ViewStyle } from 'react-native';
|
|
2
|
-
import { IconProps } from '../Icon';
|
|
1
|
+
import type { ImageStyle, StyleProp, TextStyle, ViewProps, ViewStyle } from 'react-native';
|
|
2
|
+
import type { IconProps } from '../Icon';
|
|
3
3
|
export interface ErrorMessageProps extends ViewProps {
|
|
4
4
|
iconStyle?: IconProps['style'];
|
|
5
5
|
labelStyle?: StyleProp<TextStyle>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { default as Heading } from './Heading';
|
|
2
|
-
export { HeadingProps, HeadingStyles } from './types';
|
|
2
|
+
export type { HeadingProps, HeadingStyles } from './types';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { StrictTheme } from '../../theme';
|
|
2
|
-
import { HeadingStyles } from './types';
|
|
1
|
+
import type { StrictTheme } from '../../theme';
|
|
2
|
+
import type { HeadingStyles } from './types';
|
|
3
3
|
export declare const getThemedStyles: (theme: StrictTheme) => HeadingStyles;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { IconSizes } from './types';
|
|
1
|
+
import type { IconSizes } from './types';
|
|
2
2
|
export declare const iconSizes: IconSizes;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { StrictTheme } from '../../theme';
|
|
2
|
-
import { IconProps, IconStyles } from './types';
|
|
1
|
+
import type { StrictTheme } from '../../theme';
|
|
2
|
+
import type { IconProps, IconStyles } from './types';
|
|
3
3
|
export declare const getThemedStyles: (theme: StrictTheme, color?: IconProps['color'], size?: IconProps['size']) => Required<IconStyles>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ColorValue, ImageProps, ImageStyle } from 'react-native';
|
|
1
|
+
import type { ColorValue, ImageProps, ImageStyle } from 'react-native';
|
|
2
2
|
export type Size = 'xs' | 'small' | 'medium' | 'large' | 'xl';
|
|
3
3
|
export type IconSizes = Record<Size, number>;
|
|
4
4
|
export interface IconStyles {
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { IconButtonProps } from './types';
|
|
2
|
+
import type { IconButtonProps } from './types';
|
|
3
3
|
export default function IconButton({ accessibilityRole, color, disabled, iconStyle, size, source, style, ...rest }: IconButtonProps): React.JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { default as IconButton } from './IconButton';
|
|
2
|
-
export { IconButtonProps, IconButtonStyles } from './types';
|
|
2
|
+
export type { IconButtonProps, IconButtonStyles } from './types';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { StrictTheme } from '../../theme';
|
|
2
|
-
import { IconButtonStyles } from './types';
|
|
1
|
+
import type { StrictTheme } from '../../theme';
|
|
2
|
+
import type { IconButtonStyles } from './types';
|
|
3
3
|
export declare const getThemedStyles: (theme: StrictTheme) => IconButtonStyles;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ColorValue, ImageSourcePropType, ImageStyle, PressableProps, StyleProp, ViewStyle } from 'react-native';
|
|
1
|
+
import type { ColorValue, ImageSourcePropType, ImageStyle, PressableProps, StyleProp, ViewStyle } from 'react-native';
|
|
2
2
|
export interface IconButtonStyles {
|
|
3
3
|
container?: ViewStyle;
|
|
4
4
|
disabled?: ViewStyle;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { default as Label } from './Label';
|
|
2
|
-
export { LabelProps, LabelStyles } from './types';
|
|
2
|
+
export type { LabelProps, LabelStyles } from './types';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { StrictTheme } from '../../theme';
|
|
2
|
-
import { LabelStyles } from './types';
|
|
1
|
+
import type { StrictTheme } from '../../theme';
|
|
2
|
+
import type { LabelStyles } from './types';
|
|
3
3
|
export declare const getThemedStyles: (theme: StrictTheme) => LabelStyles;
|