@zezosoft/zezo-ott-react-native-ui-kit 1.1.2 → 1.1.5
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/lib/module/components/Auth/AuthProvider/AuthProvider.js +5 -2
- package/lib/module/components/Auth/AuthProvider/AuthProvider.js.map +1 -1
- package/lib/module/components/Auth/One/ForgotPassword/ForgotPassword.js +232 -0
- package/lib/module/components/Auth/One/ForgotPassword/ForgotPassword.js.map +1 -0
- package/lib/module/components/Auth/One/Login/LoginWithEmail.js +324 -0
- package/lib/module/components/Auth/One/Login/LoginWithEmail.js.map +1 -0
- package/lib/module/components/Auth/{Login → One/Login}/LoginWithPhone.js +13 -11
- package/lib/module/components/Auth/One/Login/LoginWithPhone.js.map +1 -0
- package/lib/module/components/Auth/One/OTP/OTP.js +301 -0
- package/lib/module/components/Auth/One/OTP/OTP.js.map +1 -0
- package/lib/module/components/Auth/One/QrLogin/QrLogin.js +479 -0
- package/lib/module/components/Auth/One/QrLogin/QrLogin.js.map +1 -0
- package/lib/module/components/Auth/One/QrLogin/components/QrViewArea.js +295 -0
- package/lib/module/components/Auth/One/QrLogin/components/QrViewArea.js.map +1 -0
- package/lib/module/components/Auth/One/SignUp/SignUp.js +362 -0
- package/lib/module/components/Auth/One/SignUp/SignUp.js.map +1 -0
- package/lib/module/components/Auth/{SplashScreen → One/SplashScreen}/SplashScreen.js +8 -5
- package/lib/module/components/Auth/One/SplashScreen/SplashScreen.js.map +1 -0
- package/lib/module/components/Auth/One/SplashScreen/components/SplashImage/SplashImage.js +80 -0
- package/lib/module/components/Auth/One/SplashScreen/components/SplashImage/SplashImage.js.map +1 -0
- package/lib/module/components/Auth/{SplashScreen → One/SplashScreen}/components/SplashLottie/SplashLottie.js +1 -1
- package/lib/module/components/Auth/One/SplashScreen/components/SplashLottie/SplashLottie.js.map +1 -0
- package/lib/module/components/Auth/{SplashScreen → One/SplashScreen}/components/SplashVideo/SplashVideo.js +42 -21
- package/lib/module/components/Auth/One/SplashScreen/components/SplashVideo/SplashVideo.js.map +1 -0
- package/lib/module/components/Auth/One/index.js +25 -0
- package/lib/module/components/Auth/One/index.js.map +1 -0
- package/lib/module/components/Auth/Two/AuthHeader/AuthHeader.js +93 -0
- package/lib/module/components/Auth/Two/AuthHeader/AuthHeader.js.map +1 -0
- package/lib/module/components/Auth/{ForgotPassword → Two/ForgotPassword}/ForgotPassword.js +55 -28
- package/lib/module/components/Auth/Two/ForgotPassword/ForgotPassword.js.map +1 -0
- package/lib/module/components/Auth/Two/Login/AuthLoginShell.js +138 -0
- package/lib/module/components/Auth/Two/Login/AuthLoginShell.js.map +1 -0
- package/lib/module/components/Auth/Two/Login/LoginWithEmail.js +226 -0
- package/lib/module/components/Auth/Two/Login/LoginWithEmail.js.map +1 -0
- package/lib/module/components/Auth/Two/Login/LoginWithPhone.js +143 -0
- package/lib/module/components/Auth/Two/Login/LoginWithPhone.js.map +1 -0
- package/lib/module/components/Auth/{OTP → Two/OTP}/OTP.js +93 -63
- package/lib/module/components/Auth/Two/OTP/OTP.js.map +1 -0
- package/lib/module/components/Auth/Two/QrLogin/QrLogin.js +479 -0
- package/lib/module/components/Auth/Two/QrLogin/QrLogin.js.map +1 -0
- package/lib/module/components/Auth/Two/QrLogin/components/QrViewArea.js +295 -0
- package/lib/module/components/Auth/Two/QrLogin/components/QrViewArea.js.map +1 -0
- package/lib/module/components/Auth/Two/SignUp/SignUp.js +379 -0
- package/lib/module/components/Auth/Two/SignUp/SignUp.js.map +1 -0
- package/lib/module/components/Auth/Two/SplashScreen/SplashScreen.js +141 -0
- package/lib/module/components/Auth/Two/SplashScreen/SplashScreen.js.map +1 -0
- package/lib/module/components/Auth/{SplashScreen → Two/SplashScreen}/components/SplashImage/SplashImage.js +1 -1
- package/lib/module/components/Auth/Two/SplashScreen/components/SplashImage/SplashImage.js.map +1 -0
- package/lib/module/components/Auth/Two/SplashScreen/components/SplashLottie/SplashLottie.js +63 -0
- package/lib/module/components/Auth/Two/SplashScreen/components/SplashLottie/SplashLottie.js.map +1 -0
- package/lib/module/components/Auth/Two/SplashScreen/components/SplashVideo/SplashVideo.js +157 -0
- package/lib/module/components/Auth/Two/SplashScreen/components/SplashVideo/SplashVideo.js.map +1 -0
- package/lib/module/components/Auth/Two/index.js +29 -0
- package/lib/module/components/Auth/Two/index.js.map +1 -0
- package/lib/module/components/Auth/index.js +7 -22
- package/lib/module/components/Auth/index.js.map +1 -1
- package/lib/module/components/BackgroundLayout/BackgroundLayout.js +7 -3
- package/lib/module/components/BackgroundLayout/BackgroundLayout.js.map +1 -1
- package/lib/module/components/BackgroundLayout/BackgroundLayoutOne.js +52 -0
- package/lib/module/components/BackgroundLayout/BackgroundLayoutOne.js.map +1 -0
- package/lib/module/components/BottomSheet/BottomSheet.js +7 -3
- package/lib/module/components/BottomSheet/BottomSheet.js.map +1 -1
- package/lib/module/components/BottomSheet/BottomSheetOne.js +170 -0
- package/lib/module/components/BottomSheet/BottomSheetOne.js.map +1 -0
- package/lib/module/components/BottomSheet/index.js +1 -0
- package/lib/module/components/BottomSheet/index.js.map +1 -1
- package/lib/module/components/Button/PrimaryBtn.js +16 -6
- package/lib/module/components/Button/PrimaryBtn.js.map +1 -1
- package/lib/module/components/Content/Card/Category/Category.js +88 -13
- package/lib/module/components/Content/Card/Category/Category.js.map +1 -1
- package/lib/module/components/Content/Card/Category/CategroyTwo.js +287 -0
- package/lib/module/components/Content/Card/Category/CategroyTwo.js.map +1 -0
- package/lib/module/components/Content/Card/NowWatching/NowWatching.js +237 -108
- package/lib/module/components/Content/Card/NowWatching/NowWatching.js.map +1 -1
- package/lib/module/components/Content/Card/Sliders/Styles/One.js +191 -132
- package/lib/module/components/Content/Card/Sliders/Styles/One.js.map +1 -1
- package/lib/module/components/Content/Card/Sliders/Styles/Three.js +714 -0
- package/lib/module/components/Content/Card/Sliders/Styles/Three.js.map +1 -0
- package/lib/module/components/Content/Card/Sliders/Styles/Two.js +139 -92
- package/lib/module/components/Content/Card/Sliders/Styles/Two.js.map +1 -1
- package/lib/module/components/Content/Card/Sliders/index.js +3 -1
- package/lib/module/components/Content/Card/Sliders/index.js.map +1 -1
- package/lib/module/components/Content/Card/Styles/Five.js +132 -48
- package/lib/module/components/Content/Card/Styles/Five.js.map +1 -1
- package/lib/module/components/Content/Card/Styles/Four.js +127 -59
- package/lib/module/components/Content/Card/Styles/Four.js.map +1 -1
- package/lib/module/components/Content/Card/Styles/One.js +126 -50
- package/lib/module/components/Content/Card/Styles/One.js.map +1 -1
- package/lib/module/components/Content/Card/Styles/RotateInOut.js +139 -53
- package/lib/module/components/Content/Card/Styles/RotateInOut.js.map +1 -1
- package/lib/module/components/Content/Card/Styles/Six.js +207 -115
- package/lib/module/components/Content/Card/Styles/Six.js.map +1 -1
- package/lib/module/components/Content/Card/Styles/Three.js +119 -94
- package/lib/module/components/Content/Card/Styles/Three.js.map +1 -1
- package/lib/module/components/Content/Card/Styles/TopTen.js +187 -171
- package/lib/module/components/Content/Card/Styles/TopTen.js.map +1 -1
- package/lib/module/components/Content/Card/Styles/Two.js +145 -64
- package/lib/module/components/Content/Card/Styles/Two.js.map +1 -1
- package/lib/module/components/Content/Card/components/AdsPoster.js +162 -0
- package/lib/module/components/Content/Card/components/AdsPoster.js.map +1 -0
- package/lib/module/components/Content/Card/components/CardPoster.js +217 -135
- package/lib/module/components/Content/Card/components/CardPoster.js.map +1 -1
- package/lib/module/components/Content/Card/components/NavigateToMore.js +26 -2
- package/lib/module/components/Content/Card/components/NavigateToMore.js.map +1 -1
- package/lib/module/components/Content/Card/components/index.js +4 -0
- package/lib/module/components/Content/Card/components/index.js.map +1 -0
- package/lib/module/components/Content/Content.js +90 -33
- package/lib/module/components/Content/Content.js.map +1 -1
- package/lib/module/components/Content/Sections.js +41 -11
- package/lib/module/components/Content/Sections.js.map +1 -1
- package/lib/module/components/Content/types.js +4 -0
- package/lib/module/components/Content/types.js.map +1 -0
- package/lib/module/components/ContentView/MoreContentList.js +1 -0
- package/lib/module/components/ContentView/MoreContentList.js.map +1 -1
- package/lib/module/components/ContentView/{ContentView.js → One/ContentViewOne.js} +6 -5
- package/lib/module/components/ContentView/One/ContentViewOne.js.map +1 -0
- package/lib/module/components/ContentView/{components → One/components}/AboutSection.js +2 -2
- package/lib/module/components/ContentView/One/components/AboutSection.js.map +1 -0
- package/lib/module/components/ContentView/{components → One/components}/CastCard.js +2 -2
- package/lib/module/components/ContentView/One/components/CastCard.js.map +1 -0
- package/lib/module/components/ContentView/{components → One/components}/EpisodeCard.js +5 -6
- package/lib/module/components/ContentView/One/components/EpisodeCard.js.map +1 -0
- package/lib/module/components/ContentView/{components → One/components}/GenreTags.js +2 -2
- package/lib/module/components/ContentView/One/components/GenreTags.js.map +1 -0
- package/lib/module/components/ContentView/{components → One/components}/HeroBanner.js +45 -44
- package/lib/module/components/ContentView/One/components/HeroBanner.js.map +1 -0
- package/lib/module/components/ContentView/{components → One/components}/MiniInfo.js +50 -5
- package/lib/module/components/ContentView/One/components/MiniInfo.js.map +1 -0
- package/lib/module/components/ContentView/{components → One/components}/PlayButton.js +1 -1
- package/lib/module/components/ContentView/One/components/PlayButton.js.map +1 -0
- package/lib/module/components/ContentView/{components → One/components}/Title.js +1 -1
- package/lib/module/components/ContentView/One/components/Title.js.map +1 -0
- package/lib/module/components/ContentView/{components → One/components}/TrailerButton.js +2 -2
- package/lib/module/components/ContentView/One/components/TrailerButton.js.map +1 -0
- package/lib/module/components/ContentView/Two/ContentViewTwo.js +220 -0
- package/lib/module/components/ContentView/Two/ContentViewTwo.js.map +1 -0
- package/lib/module/components/ContentView/Two/components/AboutSection.js +150 -0
- package/lib/module/components/ContentView/Two/components/AboutSection.js.map +1 -0
- package/lib/module/components/ContentView/Two/components/Details.js +156 -0
- package/lib/module/components/ContentView/Two/components/Details.js.map +1 -0
- package/lib/module/components/ContentView/Two/components/EpisodeCard.js +425 -0
- package/lib/module/components/ContentView/Two/components/EpisodeCard.js.map +1 -0
- package/lib/module/components/ContentView/Two/components/GenreTags.js +86 -0
- package/lib/module/components/ContentView/Two/components/GenreTags.js.map +1 -0
- package/lib/module/components/ContentView/Two/components/HeroBanner.js +339 -0
- package/lib/module/components/ContentView/Two/components/HeroBanner.js.map +1 -0
- package/lib/module/components/ContentView/Two/components/LikeShareActions.js +88 -0
- package/lib/module/components/ContentView/Two/components/LikeShareActions.js.map +1 -0
- package/lib/module/components/ContentView/Two/components/MoreLikeThisContentList .js +235 -0
- package/lib/module/components/ContentView/Two/components/MoreLikeThisContentList .js.map +1 -0
- package/lib/module/components/ContentView/Two/components/PlayOrTrailer.js +120 -0
- package/lib/module/components/ContentView/Two/components/PlayOrTrailer.js.map +1 -0
- package/lib/module/components/ContentView/Two/components/SectionTabs.js +112 -0
- package/lib/module/components/ContentView/Two/components/SectionTabs.js.map +1 -0
- package/lib/module/components/ContentView/Two/components/Title.js +146 -0
- package/lib/module/components/ContentView/Two/components/Title.js.map +1 -0
- package/lib/module/components/ContentView/Two/components/index.js +18 -0
- package/lib/module/components/ContentView/Two/components/index.js.map +1 -0
- package/lib/module/components/ContentView/index.js +6 -1
- package/lib/module/components/ContentView/index.js.map +1 -1
- package/lib/module/components/Headers/Four.js +68 -0
- package/lib/module/components/Headers/Four.js.map +1 -0
- package/lib/module/components/Headers/Three.js +75 -24
- package/lib/module/components/Headers/Three.js.map +1 -1
- package/lib/module/components/Headers/index.js +3 -1
- package/lib/module/components/Headers/index.js.map +1 -1
- package/lib/module/components/Input/Input.js +5 -1
- package/lib/module/components/Input/Input.js.map +1 -1
- package/lib/module/components/Input/InputThree.js +157 -0
- package/lib/module/components/Input/InputThree.js.map +1 -0
- package/lib/module/components/Input/PhoneNumberInput.js.map +1 -1
- package/lib/module/components/Input/PhoneNumberInputTwo.js +316 -0
- package/lib/module/components/Input/PhoneNumberInputTwo.js.map +1 -0
- package/lib/module/components/Loader/Loader.js +14 -6
- package/lib/module/components/Loader/Loader.js.map +1 -1
- package/lib/module/components/Logo/Logo.js +42 -17
- package/lib/module/components/Logo/Logo.js.map +1 -1
- package/lib/module/components/NewRelease/NewReleaseSheet.js +227 -0
- package/lib/module/components/NewRelease/NewReleaseSheet.js.map +1 -0
- package/lib/module/components/NewRelease/index.js +4 -0
- package/lib/module/components/NewRelease/index.js.map +1 -0
- package/lib/module/components/Reels/ReelsSeries/MediaControls/BottomControls.js +92 -17
- package/lib/module/components/Reels/ReelsSeries/MediaControls/BottomControls.js.map +1 -1
- package/lib/module/components/Reels/ReelsSeries/MediaControls/MediaControlsProvider.js +65 -2
- package/lib/module/components/Reels/ReelsSeries/MediaControls/MediaControlsProvider.js.map +1 -1
- package/lib/module/components/Reels/ReelsSeries/MediaControls/RightControls.js +2 -1
- package/lib/module/components/Reels/ReelsSeries/MediaControls/RightControls.js.map +1 -1
- package/lib/module/components/Reels/ReelsSeries/Model/SettingModal.js +4 -2
- package/lib/module/components/Reels/ReelsSeries/Model/SettingModal.js.map +1 -1
- package/lib/module/components/Reels/ReelsSeries/ReelsSeries.js +80 -46
- package/lib/module/components/Reels/ReelsSeries/ReelsSeries.js.map +1 -1
- package/lib/module/components/Reels/ReelsSeries/ReelsSeriesItem.js +78 -29
- package/lib/module/components/Reels/ReelsSeries/ReelsSeriesItem.js.map +1 -1
- package/lib/module/components/Reels/ReelsSeries/components/VideoControls/QualityControl.js +21 -34
- package/lib/module/components/Reels/ReelsSeries/components/VideoControls/QualityControl.js.map +1 -1
- package/lib/module/components/Reels/ReelsSeries/useReelsWatchProgress.js +58 -0
- package/lib/module/components/Reels/ReelsSeries/useReelsWatchProgress.js.map +1 -0
- package/lib/module/components/Reels/ReelsSeries/utils/quality.js +44 -0
- package/lib/module/components/Reels/ReelsSeries/utils/quality.js.map +1 -0
- package/lib/module/components/Reels/index.js +1 -0
- package/lib/module/components/Reels/index.js.map +1 -1
- package/lib/module/components/Search/One.js +7 -4
- package/lib/module/components/Search/One.js.map +1 -1
- package/lib/module/components/Search/components/SearchCard.js +59 -7
- package/lib/module/components/Search/components/SearchCard.js.map +1 -1
- package/lib/module/components/User/PurchaseHistory/PurchaseHistory.js +2 -1
- package/lib/module/components/User/PurchaseHistory/PurchaseHistory.js.map +1 -1
- package/lib/module/components/User/WatchHistory/WatchHistory.js +1 -0
- package/lib/module/components/User/WatchHistory/WatchHistory.js.map +1 -1
- package/lib/module/components/User/WatchLater/WatchLater.js +1 -0
- package/lib/module/components/User/WatchLater/WatchLater.js.map +1 -1
- package/lib/module/components/common/AppStatusBar.js +2 -1
- package/lib/module/components/common/AppStatusBar.js.map +1 -1
- package/lib/module/components/index.js +1 -0
- package/lib/module/components/index.js.map +1 -1
- package/lib/module/constants/dummySections.js +47 -5
- package/lib/module/constants/dummySections.js.map +1 -1
- package/lib/module/hooks/Images/index.js +5 -0
- package/lib/module/hooks/Images/index.js.map +1 -0
- package/lib/module/hooks/Images/useImageLoader.js +168 -0
- package/lib/module/hooks/Images/useImageLoader.js.map +1 -0
- package/lib/module/hooks/Images/useImageValidation.js +36 -0
- package/lib/module/hooks/Images/useImageValidation.js.map +1 -0
- package/lib/module/hooks/index.js +3 -0
- package/lib/module/hooks/index.js.map +1 -1
- package/lib/module/hooks/useAdTracking.js +270 -0
- package/lib/module/hooks/useAdTracking.js.map +1 -0
- package/lib/module/hooks/useCards.js +164 -0
- package/lib/module/hooks/useCards.js.map +1 -0
- package/lib/module/hooks/usePaginatedSection.js +11 -6
- package/lib/module/hooks/usePaginatedSection.js.map +1 -1
- package/lib/module/hooks/useSplashCache.js +78 -60
- package/lib/module/hooks/useSplashCache.js.map +1 -1
- package/lib/module/theme/ThemeProvider.js +14 -2
- package/lib/module/theme/ThemeProvider.js.map +1 -1
- package/lib/module/theme/hook/index.js +0 -1
- package/lib/module/theme/hook/index.js.map +1 -1
- package/lib/module/theme/hook/useInternalTheme.js +21 -7
- package/lib/module/theme/hook/useInternalTheme.js.map +1 -1
- package/lib/module/theme/themes.js +2 -0
- package/lib/module/theme/themes.js.map +1 -1
- package/lib/module/theme/utils/validateColor.js +84 -0
- package/lib/module/theme/utils/validateColor.js.map +1 -0
- package/lib/module/utils/colorUtils.js +68 -0
- package/lib/module/utils/colorUtils.js.map +1 -0
- package/lib/typescript/src/components/Auth/{ForgotPassword → One/ForgotPassword}/ForgotPassword.d.ts +1 -1
- package/lib/typescript/src/components/Auth/One/ForgotPassword/ForgotPassword.d.ts.map +1 -0
- package/lib/typescript/src/components/Auth/{Login → One/Login}/LoginWithEmail.d.ts +1 -1
- package/lib/typescript/src/components/Auth/One/Login/LoginWithEmail.d.ts.map +1 -0
- package/lib/typescript/src/components/Auth/{Login → One/Login}/LoginWithPhone.d.ts +1 -1
- package/lib/typescript/src/components/Auth/One/Login/LoginWithPhone.d.ts.map +1 -0
- package/lib/typescript/src/components/Auth/{OTP → One/OTP}/OTP.d.ts +1 -1
- package/lib/typescript/src/components/Auth/One/OTP/OTP.d.ts.map +1 -0
- package/lib/typescript/src/components/Auth/{QrLogin → One/QrLogin}/QrLogin.d.ts +3 -1
- package/lib/typescript/src/components/Auth/One/QrLogin/QrLogin.d.ts.map +1 -0
- package/lib/typescript/src/components/Auth/{QrLogin → One/QrLogin}/components/QrViewArea.d.ts +1 -1
- package/lib/typescript/src/components/Auth/One/QrLogin/components/QrViewArea.d.ts.map +1 -0
- package/lib/typescript/src/components/Auth/{SignUp → One/SignUp}/SignUp.d.ts +1 -1
- package/lib/typescript/src/components/Auth/One/SignUp/SignUp.d.ts.map +1 -0
- package/lib/typescript/src/components/Auth/{SplashScreen → One/SplashScreen}/SplashScreen.d.ts +1 -1
- package/lib/typescript/src/components/Auth/One/SplashScreen/SplashScreen.d.ts.map +1 -0
- package/lib/typescript/src/components/Auth/One/SplashScreen/components/SplashImage/SplashImage.d.ts +14 -0
- package/lib/typescript/src/components/Auth/One/SplashScreen/components/SplashImage/SplashImage.d.ts.map +1 -0
- package/lib/typescript/src/components/Auth/One/SplashScreen/components/SplashLottie/SplashLottie.d.ts.map +1 -0
- package/lib/typescript/src/components/Auth/One/SplashScreen/components/SplashVideo/SplashVideo.d.ts.map +1 -0
- package/lib/typescript/src/components/Auth/One/index.d.ts +234 -0
- package/lib/typescript/src/components/Auth/One/index.d.ts.map +1 -0
- package/lib/typescript/src/components/Auth/Two/AuthHeader/AuthHeader.d.ts +16 -0
- package/lib/typescript/src/components/Auth/Two/AuthHeader/AuthHeader.d.ts.map +1 -0
- package/lib/typescript/src/components/Auth/Two/ForgotPassword/ForgotPassword.d.ts +53 -0
- package/lib/typescript/src/components/Auth/Two/ForgotPassword/ForgotPassword.d.ts.map +1 -0
- package/lib/typescript/src/components/Auth/Two/Login/AuthLoginShell.d.ts +17 -0
- package/lib/typescript/src/components/Auth/Two/Login/AuthLoginShell.d.ts.map +1 -0
- package/lib/typescript/src/components/Auth/Two/Login/LoginWithEmail.d.ts +52 -0
- package/lib/typescript/src/components/Auth/Two/Login/LoginWithEmail.d.ts.map +1 -0
- package/lib/typescript/src/components/Auth/Two/Login/LoginWithPhone.d.ts +37 -0
- package/lib/typescript/src/components/Auth/Two/Login/LoginWithPhone.d.ts.map +1 -0
- package/lib/typescript/src/components/Auth/Two/OTP/OTP.d.ts +63 -0
- package/lib/typescript/src/components/Auth/Two/OTP/OTP.d.ts.map +1 -0
- package/lib/typescript/src/components/Auth/Two/QrLogin/QrLogin.d.ts +19 -0
- package/lib/typescript/src/components/Auth/Two/QrLogin/QrLogin.d.ts.map +1 -0
- package/lib/typescript/src/components/Auth/Two/QrLogin/components/QrViewArea.d.ts +14 -0
- package/lib/typescript/src/components/Auth/Two/QrLogin/components/QrViewArea.d.ts.map +1 -0
- package/lib/typescript/src/components/Auth/Two/SignUp/SignUp.d.ts +67 -0
- package/lib/typescript/src/components/Auth/Two/SignUp/SignUp.d.ts.map +1 -0
- package/lib/typescript/src/components/Auth/Two/SplashScreen/SplashScreen.d.ts +35 -0
- package/lib/typescript/src/components/Auth/Two/SplashScreen/SplashScreen.d.ts.map +1 -0
- package/lib/typescript/src/components/Auth/Two/SplashScreen/components/SplashImage/SplashImage.d.ts.map +1 -0
- package/lib/typescript/src/components/Auth/Two/SplashScreen/components/SplashLottie/SplashLottie.d.ts +17 -0
- package/lib/typescript/src/components/Auth/Two/SplashScreen/components/SplashLottie/SplashLottie.d.ts.map +1 -0
- package/lib/typescript/src/components/Auth/Two/SplashScreen/components/SplashVideo/SplashVideo.d.ts +20 -0
- package/lib/typescript/src/components/Auth/Two/SplashScreen/components/SplashVideo/SplashVideo.d.ts.map +1 -0
- package/lib/typescript/src/components/Auth/Two/index.d.ts +220 -0
- package/lib/typescript/src/components/Auth/Two/index.d.ts.map +1 -0
- package/lib/typescript/src/components/Auth/index.d.ts +447 -232
- package/lib/typescript/src/components/Auth/index.d.ts.map +1 -1
- package/lib/typescript/src/components/BackgroundLayout/BackgroundLayout.d.ts.map +1 -1
- package/lib/typescript/src/components/BackgroundLayout/BackgroundLayoutOne.d.ts +7 -0
- package/lib/typescript/src/components/BackgroundLayout/BackgroundLayoutOne.d.ts.map +1 -0
- package/lib/typescript/src/components/BottomSheet/BottomSheet.d.ts.map +1 -1
- package/lib/typescript/src/components/BottomSheet/BottomSheetOne.d.ts +19 -0
- package/lib/typescript/src/components/BottomSheet/BottomSheetOne.d.ts.map +1 -0
- package/lib/typescript/src/components/BottomSheet/index.d.ts +2 -0
- package/lib/typescript/src/components/BottomSheet/index.d.ts.map +1 -1
- package/lib/typescript/src/components/Button/PrimaryBtn.d.ts +1 -0
- package/lib/typescript/src/components/Button/PrimaryBtn.d.ts.map +1 -1
- package/lib/typescript/src/components/Button/index.d.ts +1 -0
- package/lib/typescript/src/components/Button/index.d.ts.map +1 -1
- package/lib/typescript/src/components/Content/Card/Category/Category.d.ts.map +1 -1
- package/lib/typescript/src/components/Content/Card/Category/CategroyTwo.d.ts +26 -0
- package/lib/typescript/src/components/Content/Card/Category/CategroyTwo.d.ts.map +1 -0
- package/lib/typescript/src/components/Content/Card/NowWatching/NowWatching.d.ts.map +1 -1
- package/lib/typescript/src/components/Content/Card/Sliders/Styles/One.d.ts.map +1 -1
- package/lib/typescript/src/components/Content/Card/Sliders/Styles/Three.d.ts +19 -0
- package/lib/typescript/src/components/Content/Card/Sliders/Styles/Three.d.ts.map +1 -0
- package/lib/typescript/src/components/Content/Card/Sliders/Styles/Two.d.ts.map +1 -1
- package/lib/typescript/src/components/Content/Card/Sliders/index.d.ts +11 -0
- package/lib/typescript/src/components/Content/Card/Sliders/index.d.ts.map +1 -1
- package/lib/typescript/src/components/Content/Card/Styles/Five.d.ts +13 -1
- package/lib/typescript/src/components/Content/Card/Styles/Five.d.ts.map +1 -1
- package/lib/typescript/src/components/Content/Card/Styles/Four.d.ts +13 -1
- package/lib/typescript/src/components/Content/Card/Styles/Four.d.ts.map +1 -1
- package/lib/typescript/src/components/Content/Card/Styles/One.d.ts +15 -3
- package/lib/typescript/src/components/Content/Card/Styles/One.d.ts.map +1 -1
- package/lib/typescript/src/components/Content/Card/Styles/RotateInOut.d.ts +13 -1
- package/lib/typescript/src/components/Content/Card/Styles/RotateInOut.d.ts.map +1 -1
- package/lib/typescript/src/components/Content/Card/Styles/Six.d.ts +1 -0
- package/lib/typescript/src/components/Content/Card/Styles/Six.d.ts.map +1 -1
- package/lib/typescript/src/components/Content/Card/Styles/Three.d.ts +13 -5
- package/lib/typescript/src/components/Content/Card/Styles/Three.d.ts.map +1 -1
- package/lib/typescript/src/components/Content/Card/Styles/TopTen.d.ts +1 -0
- package/lib/typescript/src/components/Content/Card/Styles/TopTen.d.ts.map +1 -1
- package/lib/typescript/src/components/Content/Card/Styles/Two.d.ts +13 -1
- package/lib/typescript/src/components/Content/Card/Styles/Two.d.ts.map +1 -1
- package/lib/typescript/src/components/Content/Card/components/AdsPoster.d.ts +26 -0
- package/lib/typescript/src/components/Content/Card/components/AdsPoster.d.ts.map +1 -0
- package/lib/typescript/src/components/Content/Card/components/CardPoster.d.ts +4 -1
- package/lib/typescript/src/components/Content/Card/components/CardPoster.d.ts.map +1 -1
- package/lib/typescript/src/components/Content/Card/components/NavigateToMore.d.ts +3 -0
- package/lib/typescript/src/components/Content/Card/components/NavigateToMore.d.ts.map +1 -1
- package/lib/typescript/src/components/Content/Card/components/index.d.ts +2 -0
- package/lib/typescript/src/components/Content/Card/components/index.d.ts.map +1 -0
- package/lib/typescript/src/components/Content/Card/index.d.ts +76 -6
- package/lib/typescript/src/components/Content/Card/index.d.ts.map +1 -1
- package/lib/typescript/src/components/Content/Content.d.ts +2 -51
- package/lib/typescript/src/components/Content/Content.d.ts.map +1 -1
- package/lib/typescript/src/components/Content/Sections.d.ts +2 -39
- package/lib/typescript/src/components/Content/Sections.d.ts.map +1 -1
- package/lib/typescript/src/components/Content/types.d.ts +149 -0
- package/lib/typescript/src/components/Content/types.d.ts.map +1 -0
- package/lib/typescript/src/components/ContentView/MoreContentList.d.ts.map +1 -1
- package/lib/typescript/src/components/ContentView/One/ContentViewOne.d.ts +15 -0
- package/lib/typescript/src/components/ContentView/One/ContentViewOne.d.ts.map +1 -0
- package/lib/typescript/src/components/ContentView/{components → One/components}/AboutSection.d.ts +1 -1
- package/lib/typescript/src/components/ContentView/One/components/AboutSection.d.ts.map +1 -0
- package/lib/typescript/src/components/ContentView/{components → One/components}/CastCard.d.ts +1 -1
- package/lib/typescript/src/components/ContentView/One/components/CastCard.d.ts.map +1 -0
- package/lib/typescript/src/components/ContentView/{components → One/components}/EpisodeCard.d.ts +1 -1
- package/lib/typescript/src/components/ContentView/One/components/EpisodeCard.d.ts.map +1 -0
- package/lib/typescript/src/components/ContentView/{components → One/components}/GenreTags.d.ts +1 -1
- package/lib/typescript/src/components/ContentView/One/components/GenreTags.d.ts.map +1 -0
- package/lib/typescript/src/components/ContentView/{components → One/components}/HeroBanner.d.ts +1 -1
- package/lib/typescript/src/components/ContentView/One/components/HeroBanner.d.ts.map +1 -0
- package/lib/typescript/src/components/ContentView/{components → One/components}/MiniInfo.d.ts +1 -1
- package/lib/typescript/src/components/ContentView/One/components/MiniInfo.d.ts.map +1 -0
- package/lib/typescript/src/components/ContentView/One/components/PlayButton.d.ts.map +1 -0
- package/lib/typescript/src/components/ContentView/{components → One/components}/Title.d.ts +1 -1
- package/lib/typescript/src/components/ContentView/One/components/Title.d.ts.map +1 -0
- package/lib/typescript/src/components/ContentView/One/components/TrailerButton.d.ts.map +1 -0
- package/lib/typescript/src/components/ContentView/Two/ContentViewTwo.d.ts +18 -0
- package/lib/typescript/src/components/ContentView/Two/ContentViewTwo.d.ts.map +1 -0
- package/lib/typescript/src/components/ContentView/Two/components/AboutSection.d.ts +27 -0
- package/lib/typescript/src/components/ContentView/Two/components/AboutSection.d.ts.map +1 -0
- package/lib/typescript/src/components/ContentView/Two/components/Details.d.ts +15 -0
- package/lib/typescript/src/components/ContentView/Two/components/Details.d.ts.map +1 -0
- package/lib/typescript/src/components/ContentView/Two/components/EpisodeCard.d.ts +23 -0
- package/lib/typescript/src/components/ContentView/Two/components/EpisodeCard.d.ts.map +1 -0
- package/lib/typescript/src/components/ContentView/Two/components/GenreTags.d.ts +22 -0
- package/lib/typescript/src/components/ContentView/Two/components/GenreTags.d.ts.map +1 -0
- package/lib/typescript/src/components/ContentView/Two/components/HeroBanner.d.ts +8 -0
- package/lib/typescript/src/components/ContentView/Two/components/HeroBanner.d.ts.map +1 -0
- package/lib/typescript/src/components/ContentView/Two/components/LikeShareActions.d.ts +25 -0
- package/lib/typescript/src/components/ContentView/Two/components/LikeShareActions.d.ts.map +1 -0
- package/lib/typescript/src/components/ContentView/Two/components/MoreLikeThisContentList .d.ts +26 -0
- package/lib/typescript/src/components/ContentView/Two/components/MoreLikeThisContentList .d.ts.map +1 -0
- package/lib/typescript/src/components/ContentView/Two/components/PlayOrTrailer.d.ts +21 -0
- package/lib/typescript/src/components/ContentView/Two/components/PlayOrTrailer.d.ts.map +1 -0
- package/lib/typescript/src/components/ContentView/Two/components/SectionTabs.d.ts +28 -0
- package/lib/typescript/src/components/ContentView/Two/components/SectionTabs.d.ts.map +1 -0
- package/lib/typescript/src/components/ContentView/Two/components/Title.d.ts +34 -0
- package/lib/typescript/src/components/ContentView/Two/components/Title.d.ts.map +1 -0
- package/lib/typescript/src/components/ContentView/Two/components/index.d.ts +15 -0
- package/lib/typescript/src/components/ContentView/Two/components/index.d.ts.map +1 -0
- package/lib/typescript/src/components/ContentView/index.d.ts +6 -1
- package/lib/typescript/src/components/ContentView/index.d.ts.map +1 -1
- package/lib/typescript/src/components/Headers/Four.d.ts +18 -0
- package/lib/typescript/src/components/Headers/Four.d.ts.map +1 -0
- package/lib/typescript/src/components/Headers/Three.d.ts +9 -1
- package/lib/typescript/src/components/Headers/Three.d.ts.map +1 -1
- package/lib/typescript/src/components/Headers/index.d.ts +1 -0
- package/lib/typescript/src/components/Headers/index.d.ts.map +1 -1
- package/lib/typescript/src/components/Input/Input.d.ts +2 -0
- package/lib/typescript/src/components/Input/Input.d.ts.map +1 -1
- package/lib/typescript/src/components/Input/InputThree.d.ts +22 -0
- package/lib/typescript/src/components/Input/InputThree.d.ts.map +1 -0
- package/lib/typescript/src/components/Input/PhoneNumberInput.d.ts.map +1 -1
- package/lib/typescript/src/components/Input/PhoneNumberInputTwo.d.ts +26 -0
- package/lib/typescript/src/components/Input/PhoneNumberInputTwo.d.ts.map +1 -0
- package/lib/typescript/src/components/Loader/Loader.d.ts +2 -0
- package/lib/typescript/src/components/Loader/Loader.d.ts.map +1 -1
- package/lib/typescript/src/components/Logo/Logo.d.ts +1 -1
- package/lib/typescript/src/components/Logo/Logo.d.ts.map +1 -1
- package/lib/typescript/src/components/NewRelease/NewReleaseSheet.d.ts +10 -0
- package/lib/typescript/src/components/NewRelease/NewReleaseSheet.d.ts.map +1 -0
- package/lib/typescript/src/components/NewRelease/index.d.ts +2 -0
- package/lib/typescript/src/components/NewRelease/index.d.ts.map +1 -0
- package/lib/typescript/src/components/Reels/ReelsSeries/MediaControls/BottomControls.d.ts +2 -0
- package/lib/typescript/src/components/Reels/ReelsSeries/MediaControls/BottomControls.d.ts.map +1 -1
- package/lib/typescript/src/components/Reels/ReelsSeries/MediaControls/MediaControlsProvider.d.ts +1 -0
- package/lib/typescript/src/components/Reels/ReelsSeries/MediaControls/MediaControlsProvider.d.ts.map +1 -1
- package/lib/typescript/src/components/Reels/ReelsSeries/MediaControls/RightControls.d.ts.map +1 -1
- package/lib/typescript/src/components/Reels/ReelsSeries/Model/SettingModal.d.ts +2 -1
- package/lib/typescript/src/components/Reels/ReelsSeries/Model/SettingModal.d.ts.map +1 -1
- package/lib/typescript/src/components/Reels/ReelsSeries/ReelsSeries.d.ts +9 -2
- package/lib/typescript/src/components/Reels/ReelsSeries/ReelsSeries.d.ts.map +1 -1
- package/lib/typescript/src/components/Reels/ReelsSeries/ReelsSeriesItem.d.ts +11 -1
- package/lib/typescript/src/components/Reels/ReelsSeries/ReelsSeriesItem.d.ts.map +1 -1
- package/lib/typescript/src/components/Reels/ReelsSeries/components/VideoControls/QualityControl.d.ts +11 -0
- package/lib/typescript/src/components/Reels/ReelsSeries/components/VideoControls/QualityControl.d.ts.map +1 -1
- package/lib/typescript/src/components/Reels/ReelsSeries/types.d.ts +15 -0
- package/lib/typescript/src/components/Reels/ReelsSeries/types.d.ts.map +1 -1
- package/lib/typescript/src/components/Reels/ReelsSeries/useReelsWatchProgress.d.ts +34 -0
- package/lib/typescript/src/components/Reels/ReelsSeries/useReelsWatchProgress.d.ts.map +1 -0
- package/lib/typescript/src/components/Reels/ReelsSeries/utils/quality.d.ts +10 -0
- package/lib/typescript/src/components/Reels/ReelsSeries/utils/quality.d.ts.map +1 -0
- package/lib/typescript/src/components/Reels/index.d.ts +1 -0
- package/lib/typescript/src/components/Reels/index.d.ts.map +1 -1
- package/lib/typescript/src/components/Search/One.d.ts.map +1 -1
- package/lib/typescript/src/components/Search/components/SearchCard.d.ts +1 -0
- package/lib/typescript/src/components/Search/components/SearchCard.d.ts.map +1 -1
- package/lib/typescript/src/components/User/PurchaseHistory/PurchaseHistory.d.ts.map +1 -1
- package/lib/typescript/src/components/User/WatchHistory/WatchHistory.d.ts.map +1 -1
- package/lib/typescript/src/components/User/WatchLater/WatchLater.d.ts.map +1 -1
- package/lib/typescript/src/components/common/AppStatusBar.d.ts +1 -0
- package/lib/typescript/src/components/common/AppStatusBar.d.ts.map +1 -1
- package/lib/typescript/src/components/index.d.ts +1 -0
- package/lib/typescript/src/components/index.d.ts.map +1 -1
- package/lib/typescript/src/constants/dummySections.d.ts +8 -1
- package/lib/typescript/src/constants/dummySections.d.ts.map +1 -1
- package/lib/typescript/src/hooks/Images/index.d.ts +3 -0
- package/lib/typescript/src/hooks/Images/index.d.ts.map +1 -0
- package/lib/typescript/src/hooks/Images/useImageLoader.d.ts +36 -0
- package/lib/typescript/src/hooks/Images/useImageLoader.d.ts.map +1 -0
- package/lib/typescript/src/hooks/Images/useImageValidation.d.ts +17 -0
- package/lib/typescript/src/hooks/Images/useImageValidation.d.ts.map +1 -0
- package/lib/typescript/src/hooks/index.d.ts +3 -0
- package/lib/typescript/src/hooks/index.d.ts.map +1 -1
- package/lib/typescript/src/hooks/useAdTracking.d.ts +39 -0
- package/lib/typescript/src/hooks/useAdTracking.d.ts.map +1 -0
- package/lib/typescript/src/hooks/useCards.d.ts +36 -0
- package/lib/typescript/src/hooks/useCards.d.ts.map +1 -0
- package/lib/typescript/src/hooks/usePaginatedSection.d.ts +12 -2
- package/lib/typescript/src/hooks/usePaginatedSection.d.ts.map +1 -1
- package/lib/typescript/src/hooks/useSplashCache.d.ts.map +1 -1
- package/lib/typescript/src/theme/ThemeProvider.d.ts +2 -0
- package/lib/typescript/src/theme/ThemeProvider.d.ts.map +1 -1
- package/lib/typescript/src/theme/hook/index.d.ts +0 -1
- package/lib/typescript/src/theme/hook/index.d.ts.map +1 -1
- package/lib/typescript/src/theme/hook/useInternalTheme.d.ts.map +1 -1
- package/lib/typescript/src/theme/themes.d.ts +1 -0
- package/lib/typescript/src/theme/themes.d.ts.map +1 -1
- package/lib/typescript/src/theme/utils/validateColor.d.ts +21 -0
- package/lib/typescript/src/theme/utils/validateColor.d.ts.map +1 -0
- package/lib/typescript/src/types/content/content-view.types.d.ts +40 -1
- package/lib/typescript/src/types/content/content-view.types.d.ts.map +1 -1
- package/lib/typescript/src/types/sections/index.d.ts +7 -4
- package/lib/typescript/src/types/sections/index.d.ts.map +1 -1
- package/lib/typescript/src/utils/colorUtils.d.ts +19 -0
- package/lib/typescript/src/utils/colorUtils.d.ts.map +1 -0
- package/package.json +13 -4
- package/src/components/Auth/AuthProvider/AuthProvider.tsx +6 -2
- package/src/components/Auth/One/ForgotPassword/ForgotPassword.tsx +324 -0
- package/src/components/Auth/One/Login/LoginWithEmail.tsx +455 -0
- package/src/components/Auth/{Login → One/Login}/LoginWithPhone.tsx +12 -12
- package/src/components/Auth/One/OTP/OTP.tsx +465 -0
- package/src/components/Auth/One/QrLogin/QrLogin.tsx +602 -0
- package/src/components/Auth/One/QrLogin/components/QrViewArea.tsx +423 -0
- package/src/components/Auth/One/SignUp/SignUp.tsx +479 -0
- package/src/components/Auth/{SplashScreen → One/SplashScreen}/SplashScreen.tsx +10 -6
- package/src/components/Auth/One/SplashScreen/components/SplashImage/SplashImage.tsx +103 -0
- package/src/components/Auth/{SplashScreen → One/SplashScreen}/components/SplashLottie/SplashLottie.tsx +1 -1
- package/src/components/Auth/{SplashScreen → One/SplashScreen}/components/SplashVideo/SplashVideo.tsx +35 -25
- package/src/components/Auth/One/index.ts +24 -0
- package/src/components/Auth/Two/AuthHeader/AuthHeader.tsx +108 -0
- package/src/components/Auth/{ForgotPassword → Two/ForgotPassword}/ForgotPassword.tsx +62 -35
- package/src/components/Auth/Two/Login/AuthLoginShell.tsx +173 -0
- package/src/components/Auth/Two/Login/LoginWithEmail.tsx +279 -0
- package/src/components/Auth/Two/Login/LoginWithPhone.tsx +188 -0
- package/src/components/Auth/{OTP → Two/OTP}/OTP.tsx +92 -81
- package/src/components/Auth/Two/QrLogin/QrLogin.tsx +602 -0
- package/src/components/Auth/Two/QrLogin/components/QrViewArea.tsx +423 -0
- package/src/components/Auth/Two/SignUp/SignUp.tsx +472 -0
- package/src/components/Auth/Two/SplashScreen/SplashScreen.tsx +248 -0
- package/src/components/Auth/{SplashScreen → Two/SplashScreen}/components/SplashImage/SplashImage.tsx +1 -1
- package/src/components/Auth/Two/SplashScreen/components/SplashLottie/SplashLottie.tsx +77 -0
- package/src/components/Auth/Two/SplashScreen/components/SplashVideo/SplashVideo.tsx +178 -0
- package/src/components/Auth/Two/index.ts +28 -0
- package/src/components/Auth/index.ts +7 -22
- package/src/components/BackgroundLayout/BackgroundLayout.tsx +2 -0
- package/src/components/BackgroundLayout/BackgroundLayoutOne.tsx +56 -0
- package/src/components/BottomSheet/BottomSheet.tsx +6 -1
- package/src/components/BottomSheet/BottomSheetOne.tsx +220 -0
- package/src/components/BottomSheet/index.ts +2 -0
- package/src/components/Button/PrimaryBtn.tsx +10 -2
- package/src/components/Content/Card/Category/Category.tsx +104 -10
- package/src/components/Content/Card/Category/CategroyTwo.tsx +429 -0
- package/src/components/Content/Card/NowWatching/NowWatching.tsx +281 -136
- package/src/components/Content/Card/Sliders/Styles/One.tsx +248 -152
- package/src/components/Content/Card/Sliders/Styles/Three.tsx +935 -0
- package/src/components/Content/Card/Sliders/Styles/Two.tsx +171 -102
- package/src/components/Content/Card/Sliders/index.ts +2 -0
- package/src/components/Content/Card/Styles/Five.tsx +162 -62
- package/src/components/Content/Card/Styles/Four.tsx +165 -85
- package/src/components/Content/Card/Styles/One.tsx +162 -71
- package/src/components/Content/Card/Styles/RotateInOut.tsx +158 -60
- package/src/components/Content/Card/Styles/Six.tsx +242 -142
- package/src/components/Content/Card/Styles/Three.tsx +160 -162
- package/src/components/Content/Card/Styles/TopTen.tsx +231 -191
- package/src/components/Content/Card/Styles/Two.tsx +183 -79
- package/src/components/Content/Card/components/AdsPoster.tsx +202 -0
- package/src/components/Content/Card/components/CardPoster.tsx +250 -151
- package/src/components/Content/Card/components/NavigateToMore.tsx +29 -1
- package/src/components/Content/Card/components/index.ts +1 -0
- package/src/components/Content/Content.tsx +103 -119
- package/src/components/Content/Sections.tsx +51 -45
- package/src/components/Content/types.ts +176 -0
- package/src/components/ContentView/MoreContentList.tsx +1 -0
- package/src/components/ContentView/{ContentView.tsx → One/ContentViewOne.tsx} +8 -7
- package/src/components/ContentView/{components → One/components}/AboutSection.tsx +3 -3
- package/src/components/ContentView/{components → One/components}/CastCard.tsx +3 -3
- package/src/components/ContentView/{components → One/components}/EpisodeCard.tsx +7 -8
- package/src/components/ContentView/{components → One/components}/GenreTags.tsx +3 -3
- package/src/components/ContentView/{components → One/components}/HeroBanner.tsx +44 -59
- package/src/components/ContentView/{components → One/components}/MiniInfo.tsx +69 -5
- package/src/components/ContentView/{components → One/components}/PlayButton.tsx +1 -1
- package/src/components/ContentView/{components → One/components}/Title.tsx +2 -2
- package/src/components/ContentView/{components → One/components}/TrailerButton.tsx +2 -2
- package/src/components/ContentView/Two/ContentViewTwo.tsx +343 -0
- package/src/components/ContentView/Two/components/AboutSection.tsx +216 -0
- package/src/components/ContentView/Two/components/Details.tsx +193 -0
- package/src/components/ContentView/Two/components/EpisodeCard.tsx +602 -0
- package/src/components/ContentView/Two/components/GenreTags.tsx +123 -0
- package/src/components/ContentView/Two/components/HeroBanner.tsx +402 -0
- package/src/components/ContentView/Two/components/LikeShareActions.tsx +125 -0
- package/src/components/ContentView/Two/components/MoreLikeThisContentList .tsx +305 -0
- package/src/components/ContentView/Two/components/PlayOrTrailer.tsx +133 -0
- package/src/components/ContentView/Two/components/SectionTabs.tsx +177 -0
- package/src/components/ContentView/Two/components/Title.tsx +226 -0
- package/src/components/ContentView/Two/components/index.ts +15 -0
- package/src/components/ContentView/index.ts +7 -1
- package/src/components/Headers/Four.tsx +83 -0
- package/src/components/Headers/Three.tsx +88 -25
- package/src/components/Headers/index.ts +2 -0
- package/src/components/Input/Input.ts +4 -0
- package/src/components/Input/InputThree.tsx +212 -0
- package/src/components/Input/PhoneNumberInput.tsx +4 -2
- package/src/components/Input/PhoneNumberInputTwo.tsx +418 -0
- package/src/components/Loader/Loader.tsx +25 -9
- package/src/components/Logo/Logo.tsx +53 -34
- package/src/components/NewRelease/NewReleaseSheet.tsx +250 -0
- package/src/components/NewRelease/index.ts +1 -0
- package/src/components/Reels/ReelsSeries/MediaControls/BottomControls.tsx +92 -27
- package/src/components/Reels/ReelsSeries/MediaControls/MediaControlsProvider.tsx +81 -1
- package/src/components/Reels/ReelsSeries/MediaControls/RightControls.tsx +4 -1
- package/src/components/Reels/ReelsSeries/Model/SettingModal.tsx +6 -3
- package/src/components/Reels/ReelsSeries/ReelsSeries.tsx +88 -55
- package/src/components/Reels/ReelsSeries/ReelsSeriesItem.tsx +92 -30
- package/src/components/Reels/ReelsSeries/components/VideoControls/QualityControl.tsx +35 -38
- package/src/components/Reels/ReelsSeries/types.ts +16 -0
- package/src/components/Reels/ReelsSeries/useReelsWatchProgress.ts +85 -0
- package/src/components/Reels/ReelsSeries/utils/quality.ts +48 -0
- package/src/components/Reels/index.ts +1 -0
- package/src/components/Search/One.tsx +8 -5
- package/src/components/Search/components/SearchCard.tsx +68 -11
- package/src/components/User/PurchaseHistory/PurchaseHistory.tsx +1 -0
- package/src/components/User/WatchHistory/WatchHistory.tsx +1 -0
- package/src/components/User/WatchLater/WatchLater.tsx +1 -0
- package/src/components/common/AppStatusBar.tsx +7 -1
- package/src/components/index.ts +1 -0
- package/src/constants/dummySections.ts +54 -3
- package/src/hooks/Images/index.ts +2 -0
- package/src/hooks/Images/useImageLoader.ts +206 -0
- package/src/hooks/Images/useImageValidation.ts +36 -0
- package/src/hooks/index.ts +3 -0
- package/src/hooks/useAdTracking.ts +349 -0
- package/src/hooks/useCards.ts +228 -0
- package/src/hooks/usePaginatedSection.ts +26 -7
- package/src/hooks/useSplashCache.ts +88 -69
- package/src/theme/ThemeProvider.tsx +15 -2
- package/src/theme/hook/index.ts +0 -1
- package/src/theme/hook/useInternalTheme.ts +22 -13
- package/src/theme/themes.ts +3 -0
- package/src/theme/utils/validateColor.ts +127 -0
- package/src/types/content/content-view.types.ts +43 -1
- package/src/types/sections/index.ts +7 -4
- package/src/utils/colorUtils.ts +70 -0
- package/lib/module/components/Auth/ForgotPassword/ForgotPassword.js.map +0 -1
- package/lib/module/components/Auth/Login/LoginWithEmail.js +0 -314
- package/lib/module/components/Auth/Login/LoginWithEmail.js.map +0 -1
- package/lib/module/components/Auth/Login/LoginWithPhone.js.map +0 -1
- package/lib/module/components/Auth/OTP/OTP.js.map +0 -1
- package/lib/module/components/Auth/QrLogin/QrLogin.js +0 -313
- package/lib/module/components/Auth/QrLogin/QrLogin.js.map +0 -1
- package/lib/module/components/Auth/QrLogin/components/QrViewArea.js +0 -243
- package/lib/module/components/Auth/QrLogin/components/QrViewArea.js.map +0 -1
- package/lib/module/components/Auth/SignUp/SignUp.js +0 -352
- package/lib/module/components/Auth/SignUp/SignUp.js.map +0 -1
- package/lib/module/components/Auth/SplashScreen/SplashScreen.js.map +0 -1
- package/lib/module/components/Auth/SplashScreen/components/SplashImage/SplashImage.js.map +0 -1
- package/lib/module/components/Auth/SplashScreen/components/SplashLottie/SplashLottie.js.map +0 -1
- package/lib/module/components/Auth/SplashScreen/components/SplashVideo/SplashVideo.js.map +0 -1
- package/lib/module/components/ContentView/ContentView.js.map +0 -1
- package/lib/module/components/ContentView/components/AboutSection.js.map +0 -1
- package/lib/module/components/ContentView/components/CastCard.js.map +0 -1
- package/lib/module/components/ContentView/components/EpisodeCard.js.map +0 -1
- package/lib/module/components/ContentView/components/GenreTags.js.map +0 -1
- package/lib/module/components/ContentView/components/HeroBanner.js.map +0 -1
- package/lib/module/components/ContentView/components/MiniInfo.js.map +0 -1
- package/lib/module/components/ContentView/components/PlayButton.js.map +0 -1
- package/lib/module/components/ContentView/components/Title.js.map +0 -1
- package/lib/module/components/ContentView/components/TrailerButton.js.map +0 -1
- package/lib/module/theme/hook/useThemeStatusBar.js +0 -33
- package/lib/module/theme/hook/useThemeStatusBar.js.map +0 -1
- package/lib/typescript/src/components/Auth/ForgotPassword/ForgotPassword.d.ts.map +0 -1
- package/lib/typescript/src/components/Auth/Login/LoginWithEmail.d.ts.map +0 -1
- package/lib/typescript/src/components/Auth/Login/LoginWithPhone.d.ts.map +0 -1
- package/lib/typescript/src/components/Auth/OTP/OTP.d.ts.map +0 -1
- package/lib/typescript/src/components/Auth/QrLogin/QrLogin.d.ts.map +0 -1
- package/lib/typescript/src/components/Auth/QrLogin/components/QrViewArea.d.ts.map +0 -1
- package/lib/typescript/src/components/Auth/SignUp/SignUp.d.ts.map +0 -1
- package/lib/typescript/src/components/Auth/SplashScreen/SplashScreen.d.ts.map +0 -1
- package/lib/typescript/src/components/Auth/SplashScreen/components/SplashImage/SplashImage.d.ts.map +0 -1
- package/lib/typescript/src/components/Auth/SplashScreen/components/SplashLottie/SplashLottie.d.ts.map +0 -1
- package/lib/typescript/src/components/Auth/SplashScreen/components/SplashVideo/SplashVideo.d.ts.map +0 -1
- package/lib/typescript/src/components/ContentView/ContentView.d.ts +0 -15
- package/lib/typescript/src/components/ContentView/ContentView.d.ts.map +0 -1
- package/lib/typescript/src/components/ContentView/components/AboutSection.d.ts.map +0 -1
- package/lib/typescript/src/components/ContentView/components/CastCard.d.ts.map +0 -1
- package/lib/typescript/src/components/ContentView/components/EpisodeCard.d.ts.map +0 -1
- package/lib/typescript/src/components/ContentView/components/GenreTags.d.ts.map +0 -1
- package/lib/typescript/src/components/ContentView/components/HeroBanner.d.ts.map +0 -1
- package/lib/typescript/src/components/ContentView/components/MiniInfo.d.ts.map +0 -1
- package/lib/typescript/src/components/ContentView/components/PlayButton.d.ts.map +0 -1
- package/lib/typescript/src/components/ContentView/components/Title.d.ts.map +0 -1
- package/lib/typescript/src/components/ContentView/components/TrailerButton.d.ts.map +0 -1
- package/lib/typescript/src/theme/hook/useThemeStatusBar.d.ts +0 -10
- package/lib/typescript/src/theme/hook/useThemeStatusBar.d.ts.map +0 -1
- package/src/components/Auth/Login/LoginWithEmail.tsx +0 -441
- package/src/components/Auth/QrLogin/QrLogin.tsx +0 -342
- package/src/components/Auth/QrLogin/components/QrViewArea.tsx +0 -329
- package/src/components/Auth/SignUp/SignUp.tsx +0 -462
- package/src/theme/hook/useThemeStatusBar.ts +0 -42
- /package/lib/typescript/src/components/Auth/{SplashScreen → One/SplashScreen}/components/SplashLottie/SplashLottie.d.ts +0 -0
- /package/lib/typescript/src/components/Auth/{SplashScreen → One/SplashScreen}/components/SplashVideo/SplashVideo.d.ts +0 -0
- /package/lib/typescript/src/components/Auth/{SplashScreen → Two/SplashScreen}/components/SplashImage/SplashImage.d.ts +0 -0
- /package/lib/typescript/src/components/ContentView/{components → One/components}/PlayButton.d.ts +0 -0
- /package/lib/typescript/src/components/ContentView/{components → One/components}/TrailerButton.d.ts +0 -0
|
@@ -202,7 +202,9 @@ const AuthProvider = /*#__PURE__*/React.memo(({
|
|
|
202
202
|
children: [/*#__PURE__*/_jsx(View, {
|
|
203
203
|
style: styles.logoWrapper,
|
|
204
204
|
children: /*#__PURE__*/_jsx(Logo, {
|
|
205
|
-
logoUri: logoUri
|
|
205
|
+
logoUri: logoUri,
|
|
206
|
+
width: 100,
|
|
207
|
+
height: 100
|
|
206
208
|
})
|
|
207
209
|
}), /*#__PURE__*/_jsxs(View, {
|
|
208
210
|
style: styles.bottomSection,
|
|
@@ -227,7 +229,8 @@ export default AuthProvider;
|
|
|
227
229
|
const styles = StyleSheet.create({
|
|
228
230
|
safeArea: {
|
|
229
231
|
flex: 1,
|
|
230
|
-
width: '100%'
|
|
232
|
+
width: '100%',
|
|
233
|
+
paddingBottom: verticalScale(12)
|
|
231
234
|
},
|
|
232
235
|
container: {
|
|
233
236
|
flex: 1,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","useEffect","useMemo","useRef","useState","useCallback","View","StyleSheet","SafeAreaView","TouchableOpacity","Animated","moderateScale","scale","verticalScale","useInternalTheme","Logo","Text","BackgroundLayout","Phone","Mail","Button","default","SkeletonPlaceholder","jsx","_jsx","jsxs","_jsxs","AuthProvider","memo","title","description","backgroundImage","logoUri","text","variant","theme","overrideTheme","isLoading","authProvider","phone","enabled","email","resolvedTheme","colors","phoneEnabled","emailEnabled","activeTab","setActiveTab","slideAnim","Value","current","opacityAnim","parallel","timing","toValue","duration","useNativeDriver","start","triggerEvent","type","onPress","handlePress","setTimeout","authMethods","key","label","loginWithPhone","icon","size","loginWithEmail","enabledMethods","filter","item","skeletonStyle","create","skeleton","width","height","borderRadius","toggleSkeletonStyle","toggleSkeleton","animatedViewStyle","transform","translateY","opacity","titleStyleMemo","styles","color","textPrimary","descriptionStyleMemo","textSecondary","toggleWrapperStyleMemo","toggleWrapper","backgroundColor","surfaceVariant","borderColor","border","renderButtons","style","buttonContainer","children","map","Fragment","skeletonBaseColor","highlightColor","skeletonHighlightColor","Secondary","containerStyle","button","borderWidth","titleStyle","buttonText","leftIcon","cloneElement","renderToggle","isActive","toggleHalf","primary","activeOpacity","iconTextRow","toggleText","source","gradientSplitBackground","resizeMode","safeArea","container","logoWrapper","bottomSection","numberOfLines","adjustsFontSizeToFit","flex","justifyContent","alignItems","paddingHorizontal","paddingVertical","paddingBottom","fontSize","fontWeight","textAlign","marginBottom","gap","flexDirection","padding","overflow"],"sourceRoot":"../../../../../src","sources":["components/Auth/AuthProvider/AuthProvider.tsx"],"mappings":";;AAAA;AACA;AACA;AACA;AACA,OAAOA,KAAK,IACVC,SAAS,EACTC,OAAO,EACPC,MAAM,EACNC,QAAQ,EACRC,WAAW,QACN,OAAO;AACd,SACEC,IAAI,EACJC,UAAU,EACVC,YAAY,EACZC,gBAAgB,EAChBC,QAAQ,QACH,cAAc;AACrB,SAASC,aAAa,EAAEC,KAAK,EAAEC,aAAa,QAAQ,2BAA2B;AAC/E,SAASC,gBAAgB,QAAQ,yCAAsC;AAEvE,SAASC,IAAI,QAAQ,oBAAiB;AACtC,SAASC,IAAI,QAAQ,qBAAY;AACjC,SAASC,gBAAgB,QAAQ,4CAAyC;AAC1E,SAASC,KAAK,EAAEC,IAAI,QAAQ,qBAAqB;AACjD,SAASC,MAAM,QAAQ,uBAAc;AACrC,S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AAU,EAAE;EAAM,CAAC;EAC9DlB,WAAW,EAAE;IAAEsB,aAAa,EAAE,KAAK;IAAET,UAAU,EAAE,QAAQ;IAAEQ,GAAG,EAAEhI,KAAK,CAAC,CAAC;EAAE;AAC3E,CAAC,CAAC","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":["React","useEffect","useMemo","useRef","useState","useCallback","View","StyleSheet","SafeAreaView","TouchableOpacity","Animated","moderateScale","scale","verticalScale","useInternalTheme","Logo","Text","BackgroundLayout","Phone","Mail","Button","default","SkeletonPlaceholder","jsx","_jsx","jsxs","_jsxs","AuthProvider","memo","title","description","backgroundImage","logoUri","text","variant","theme","overrideTheme","isLoading","authProvider","phone","enabled","email","resolvedTheme","colors","phoneEnabled","emailEnabled","activeTab","setActiveTab","slideAnim","Value","current","opacityAnim","parallel","timing","toValue","duration","useNativeDriver","start","triggerEvent","type","onPress","handlePress","setTimeout","authMethods","key","label","loginWithPhone","icon","size","loginWithEmail","enabledMethods","filter","item","skeletonStyle","create","skeleton","width","height","borderRadius","toggleSkeletonStyle","toggleSkeleton","animatedViewStyle","transform","translateY","opacity","titleStyleMemo","styles","color","textPrimary","descriptionStyleMemo","textSecondary","toggleWrapperStyleMemo","toggleWrapper","backgroundColor","surfaceVariant","borderColor","border","renderButtons","style","buttonContainer","children","map","Fragment","skeletonBaseColor","highlightColor","skeletonHighlightColor","Secondary","containerStyle","button","borderWidth","titleStyle","buttonText","leftIcon","cloneElement","renderToggle","isActive","toggleHalf","primary","activeOpacity","iconTextRow","toggleText","source","gradientSplitBackground","resizeMode","safeArea","container","logoWrapper","bottomSection","numberOfLines","adjustsFontSizeToFit","flex","paddingBottom","justifyContent","alignItems","paddingHorizontal","paddingVertical","fontSize","fontWeight","textAlign","marginBottom","gap","flexDirection","padding","overflow"],"sourceRoot":"../../../../../src","sources":["components/Auth/AuthProvider/AuthProvider.tsx"],"mappings":";;AAAA;AACA;AACA;AACA;AACA,OAAOA,KAAK,IACVC,SAAS,EACTC,OAA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a,EAAE,KAAK;IACpBhE,MAAM,EAAEhE,aAAa,CAAC,EAAE,CAAC;IACzBiE,YAAY,EAAE,EAAE;IAChB+B,WAAW,EAAEjG,KAAK,CAAC,GAAG,CAAC;IACvBkI,OAAO,EAAElI,KAAK,CAAC,CAAC,CAAC;IACjBmI,QAAQ,EAAE,QAAQ;IAClBV,UAAU,EAAE,QAAQ;IACpBzD,KAAK,EAAE;EACT,CAAC;EACDwC,UAAU,EAAE;IACVc,IAAI,EAAE,CAAC;IACPpD,YAAY,EAAElE,KAAK,CAAC,EAAE,CAAC;IACvBiE,MAAM,EAAE,MAAM;IACduD,cAAc,EAAE,QAAQ;IACxBC,UAAU,EAAE;EACd,CAAC;EACDb,UAAU,EAAE;IAAEgB,QAAQ,EAAE7H,aAAa,CAAC,EAAE,CAAC;IAAE8H,UAAU,EAAE;EAAM,CAAC;EAC9DlB,WAAW,EAAE;IAAEsB,aAAa,EAAE,KAAK;IAAER,UAAU,EAAE,QAAQ;IAAEO,GAAG,EAAEhI,KAAK,CAAC,CAAC;EAAE;AAC3E,CAAC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,232 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* @author Naresh Dhamu
|
|
5
|
+
* @lastModified Wed 18 Jun 2025 at 10:45 AM
|
|
6
|
+
**/
|
|
7
|
+
import React, { useCallback, useMemo, useState } from 'react';
|
|
8
|
+
import { StyleSheet, View, Platform, Alert, SafeAreaView } from 'react-native';
|
|
9
|
+
import { useForm, Controller } from 'react-hook-form';
|
|
10
|
+
import { scale, verticalScale } from 'react-native-size-matters';
|
|
11
|
+
import { Input } from "../../../Input/Input.js";
|
|
12
|
+
import { Button } from "../../../Button/index.js";
|
|
13
|
+
import { BackgroundLayout } from "../../../BackgroundLayout/BackgroundLayout.js";
|
|
14
|
+
import { Logo } from "../../../Logo/Logo.js";
|
|
15
|
+
import { useKeyboard } from "../../../../hooks/useKeyboard.js";
|
|
16
|
+
import HideKeyboard from "../../../Keyboard/HideKeyboard.js";
|
|
17
|
+
import BackBtn from "../../../Button/BackBtn.js";
|
|
18
|
+
import { Text } from "../../../Text/index.js";
|
|
19
|
+
import { RFValue } from 'react-native-responsive-fontsize';
|
|
20
|
+
import { useInternalTheme } from "../../../../theme/hook/useInternalTheme.js";
|
|
21
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
22
|
+
const ForgetPassword = ({
|
|
23
|
+
title = 'Forgot Password',
|
|
24
|
+
onSubmit,
|
|
25
|
+
onTopBackBtnPress,
|
|
26
|
+
containerStyle,
|
|
27
|
+
titleStyle,
|
|
28
|
+
formStyle,
|
|
29
|
+
inputStyle,
|
|
30
|
+
inputContainerStyle,
|
|
31
|
+
topBackBtnStyle,
|
|
32
|
+
loadingSubmitBtn = false,
|
|
33
|
+
backgroundImage,
|
|
34
|
+
logoUri,
|
|
35
|
+
theme: overrideTheme,
|
|
36
|
+
text = {
|
|
37
|
+
emailLabel: 'Email',
|
|
38
|
+
emailPlaceholder: 'Enter your email',
|
|
39
|
+
loadingSubmitBtnText: 'Processing...',
|
|
40
|
+
forgetPasswordButton: 'Send Reset Link'
|
|
41
|
+
},
|
|
42
|
+
renderLogo,
|
|
43
|
+
renderForgetPasswordHeader,
|
|
44
|
+
renderSubmitButton,
|
|
45
|
+
renderTopBackBtn,
|
|
46
|
+
renderBottomInfoText
|
|
47
|
+
}) => {
|
|
48
|
+
const {
|
|
49
|
+
theme
|
|
50
|
+
} = useInternalTheme(overrideTheme);
|
|
51
|
+
const {
|
|
52
|
+
control,
|
|
53
|
+
handleSubmit,
|
|
54
|
+
formState: {
|
|
55
|
+
errors,
|
|
56
|
+
isValid,
|
|
57
|
+
touchedFields
|
|
58
|
+
}
|
|
59
|
+
} = useForm({
|
|
60
|
+
defaultValues: {
|
|
61
|
+
email: ''
|
|
62
|
+
},
|
|
63
|
+
mode: 'onChange'
|
|
64
|
+
});
|
|
65
|
+
const {
|
|
66
|
+
isKeyboardOpen
|
|
67
|
+
} = useKeyboard();
|
|
68
|
+
const [isLoading, setIsLoading] = useState(false);
|
|
69
|
+
const handleFormSubmit = useCallback(async data => {
|
|
70
|
+
if (!onSubmit) return;
|
|
71
|
+
setIsLoading(true);
|
|
72
|
+
try {
|
|
73
|
+
await onSubmit(data);
|
|
74
|
+
} catch (error) {
|
|
75
|
+
console.error('Form submission error:', error);
|
|
76
|
+
Alert.alert('Error', 'Failed to process request. Please try again.');
|
|
77
|
+
} finally {
|
|
78
|
+
setIsLoading(false);
|
|
79
|
+
}
|
|
80
|
+
}, [onSubmit]);
|
|
81
|
+
const shouldRender = useMemo(() => condition => typeof condition === 'function' || !!condition, []);
|
|
82
|
+
const isSubmitDisabled = useMemo(() => loadingSubmitBtn || isLoading, [loadingSubmitBtn, isLoading]);
|
|
83
|
+
|
|
84
|
+
// Memoize gradient split background
|
|
85
|
+
const gradientSplitBackground = useMemo(() => isKeyboardOpen ? Platform.OS === 'ios' ? 0.19 : 0.14 : 0.3, [isKeyboardOpen]);
|
|
86
|
+
return /*#__PURE__*/_jsx(BackgroundLayout, {
|
|
87
|
+
backgroundImage: backgroundImage?.source,
|
|
88
|
+
theme: overrideTheme,
|
|
89
|
+
gradientSplitBackground: gradientSplitBackground,
|
|
90
|
+
children: /*#__PURE__*/_jsx(SafeAreaView, {
|
|
91
|
+
style: styles.safeArea,
|
|
92
|
+
children: /*#__PURE__*/_jsxs(View, {
|
|
93
|
+
style: [styles.container, containerStyle],
|
|
94
|
+
children: [shouldRender(renderTopBackBtn || onTopBackBtnPress) && /*#__PURE__*/_jsx(View, {
|
|
95
|
+
style: styles.topBackBtnWrapper,
|
|
96
|
+
children: renderTopBackBtn ? renderTopBackBtn({
|
|
97
|
+
onPress: onTopBackBtnPress ?? (() => {})
|
|
98
|
+
}) : /*#__PURE__*/_jsx(BackBtn, {
|
|
99
|
+
theme: overrideTheme,
|
|
100
|
+
style: topBackBtnStyle,
|
|
101
|
+
onPress: onTopBackBtnPress
|
|
102
|
+
})
|
|
103
|
+
}), /*#__PURE__*/_jsx(HideKeyboard, {
|
|
104
|
+
children: /*#__PURE__*/_jsxs(View, {
|
|
105
|
+
style: styles.centerContent,
|
|
106
|
+
children: [renderLogo ? renderLogo() : logoUri ? /*#__PURE__*/_jsx(Logo, {
|
|
107
|
+
logoUri: logoUri,
|
|
108
|
+
width: 100,
|
|
109
|
+
height: 100
|
|
110
|
+
}) : null, renderForgetPasswordHeader ? renderForgetPasswordHeader() : /*#__PURE__*/_jsx(Text, {
|
|
111
|
+
style: [styles.title, {
|
|
112
|
+
color: theme.colors.textPrimary
|
|
113
|
+
}, titleStyle],
|
|
114
|
+
accessibilityRole: "header",
|
|
115
|
+
testID: "title",
|
|
116
|
+
children: title
|
|
117
|
+
}), /*#__PURE__*/_jsxs(View, {
|
|
118
|
+
style: [styles.form, formStyle],
|
|
119
|
+
testID: "form",
|
|
120
|
+
children: [/*#__PURE__*/_jsx(Controller, {
|
|
121
|
+
control: control,
|
|
122
|
+
name: "email",
|
|
123
|
+
rules: {
|
|
124
|
+
required: 'Email is required',
|
|
125
|
+
pattern: {
|
|
126
|
+
value: /^\S+@\S+\.\S+$/,
|
|
127
|
+
message: 'Enter a valid email address'
|
|
128
|
+
}
|
|
129
|
+
},
|
|
130
|
+
render: ({
|
|
131
|
+
field: {
|
|
132
|
+
onChange,
|
|
133
|
+
onBlur,
|
|
134
|
+
value
|
|
135
|
+
}
|
|
136
|
+
}) => /*#__PURE__*/_jsx(Input.One, {
|
|
137
|
+
placeholder: text.emailPlaceholder || 'Enter your email',
|
|
138
|
+
label: text.emailLabel || 'Email',
|
|
139
|
+
value: value,
|
|
140
|
+
onChangeText: inputText => {
|
|
141
|
+
const sanitized = inputText.replace(/[^\w@.\-+]/g, '');
|
|
142
|
+
onChange(sanitized);
|
|
143
|
+
},
|
|
144
|
+
onBlur: onBlur,
|
|
145
|
+
disabled: isSubmitDisabled,
|
|
146
|
+
error: !!touchedFields.email && !!errors.email,
|
|
147
|
+
errorMessage: errors.email?.message,
|
|
148
|
+
inputStyle: inputStyle,
|
|
149
|
+
containerStyle: inputContainerStyle,
|
|
150
|
+
theme: overrideTheme,
|
|
151
|
+
textContentType: "emailAddress",
|
|
152
|
+
autoCapitalize: "none",
|
|
153
|
+
keyboardType: "email-address",
|
|
154
|
+
autoCorrect: false,
|
|
155
|
+
testID: "email-input"
|
|
156
|
+
})
|
|
157
|
+
}), renderSubmitButton ? renderSubmitButton({
|
|
158
|
+
onPress: handleSubmit(handleFormSubmit),
|
|
159
|
+
disabled: isSubmitDisabled || !isValid,
|
|
160
|
+
loading: loadingSubmitBtn || isLoading
|
|
161
|
+
}) : /*#__PURE__*/_jsx(Button.Primary, {
|
|
162
|
+
title: text.forgetPasswordButton || 'Continue',
|
|
163
|
+
disabled: isSubmitDisabled || !isValid,
|
|
164
|
+
theme: overrideTheme,
|
|
165
|
+
loading: loadingSubmitBtn || isLoading,
|
|
166
|
+
loadingText: text.loadingSubmitBtnText || 'Please wait...',
|
|
167
|
+
onPress: handleSubmit(handleFormSubmit)
|
|
168
|
+
})]
|
|
169
|
+
}), !isKeyboardOpen && /*#__PURE__*/_jsx(_Fragment, {
|
|
170
|
+
children: renderBottomInfoText ? renderBottomInfoText() : text.bottomInfoText ? /*#__PURE__*/_jsx(Text, {
|
|
171
|
+
style: [styles.bottomInfo, {
|
|
172
|
+
color: theme.colors.textSecondary
|
|
173
|
+
}],
|
|
174
|
+
accessibilityRole: "text",
|
|
175
|
+
testID: "bottom-info-text",
|
|
176
|
+
children: text.bottomInfoText
|
|
177
|
+
}) : null
|
|
178
|
+
})]
|
|
179
|
+
})
|
|
180
|
+
})]
|
|
181
|
+
})
|
|
182
|
+
})
|
|
183
|
+
});
|
|
184
|
+
};
|
|
185
|
+
export default /*#__PURE__*/React.memo(ForgetPassword);
|
|
186
|
+
const styles = StyleSheet.create({
|
|
187
|
+
safeArea: {
|
|
188
|
+
flex: 1,
|
|
189
|
+
width: '100%',
|
|
190
|
+
paddingBottom: verticalScale(32)
|
|
191
|
+
},
|
|
192
|
+
container: {
|
|
193
|
+
flex: 1,
|
|
194
|
+
width: '100%',
|
|
195
|
+
paddingHorizontal: scale(20),
|
|
196
|
+
justifyContent: 'center',
|
|
197
|
+
alignItems: 'center'
|
|
198
|
+
},
|
|
199
|
+
topBackBtnWrapper: {
|
|
200
|
+
position: 'absolute',
|
|
201
|
+
top: verticalScale(6),
|
|
202
|
+
left: 0,
|
|
203
|
+
zIndex: 10
|
|
204
|
+
},
|
|
205
|
+
centerContent: {
|
|
206
|
+
flex: 1,
|
|
207
|
+
width: '100%',
|
|
208
|
+
alignItems: 'center',
|
|
209
|
+
justifyContent: 'center',
|
|
210
|
+
gap: verticalScale(16)
|
|
211
|
+
},
|
|
212
|
+
title: {
|
|
213
|
+
fontSize: RFValue(23),
|
|
214
|
+
fontWeight: '700',
|
|
215
|
+
marginTop: verticalScale(12),
|
|
216
|
+
marginBottom: verticalScale(20),
|
|
217
|
+
textAlign: 'center'
|
|
218
|
+
},
|
|
219
|
+
form: {
|
|
220
|
+
width: '100%',
|
|
221
|
+
gap: verticalScale(14),
|
|
222
|
+
marginTop: verticalScale(8)
|
|
223
|
+
},
|
|
224
|
+
bottomInfo: {
|
|
225
|
+
marginTop: verticalScale(15),
|
|
226
|
+
fontSize: RFValue(10),
|
|
227
|
+
fontWeight: '500',
|
|
228
|
+
textAlign: 'center',
|
|
229
|
+
opacity: 0.7
|
|
230
|
+
}
|
|
231
|
+
});
|
|
232
|
+
//# sourceMappingURL=ForgotPassword.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","useCallback","useMemo","useState","StyleSheet","View","Platform","Alert","SafeAreaView","useForm","Controller","scale","verticalScale","Input","Button","BackgroundLayout","Logo","useKeyboard","HideKeyboard","BackBtn","Text","RFValue","useInternalTheme","jsx","_jsx","jsxs","_jsxs","Fragment","_Fragment","ForgetPassword","title","onSubmit","onTopBackBtnPress","containerStyle","titleStyle","formStyle","inputStyle","inputContainerStyle","topBackBtnStyle","loadingSubmitBtn","backgroundImage","logoUri","theme","overrideTheme","text","emailLabel","emailPlaceholder","loadingSubmitBtnText","forgetPasswordButton","renderLogo","renderForgetPasswordHeader","renderSubmitButton","renderTopBackBtn","renderBottomInfoText","control","handleSubmit","formState","errors","isValid","touchedFields","defaultValues","email","mode","isKeyboardOpen","isLoading","setIsLoading","handleFormSubmit","data","error","console","alert","shouldRender","condition","isSubmitDisabled","gradientSplitBackground","OS","source","children","style","styles","safeArea","container","topBackBtnWrapper","onPress","centerContent","width","height","color","colors","textPrimary","accessibilityRole","testID","form","name","rules","required","pattern","value","message","render","field","onChange","onBlur","One","placeholder","label","onChangeText","inputText","sanitized","replace","disabled","errorMessage","textContentType","autoCapitalize","keyboardType","autoCorrect","loading","Primary","loadingText","bottomInfoText","bottomInfo","textSecondary","memo","create","flex","paddingBottom","paddingHorizontal","justifyContent","alignItems","position","top","left","zIndex","gap","fontSize","fontWeight","marginTop","marginBottom","textAlign","opacity"],"sourceRoot":"../../../../../../src","sources":["components/Auth/One/ForgotPassword/ForgotPassword.tsx"],"mappings":";;AAAA;AACA;AACA;AACA;AACA,OAAOA,KAAK,IAAIC,WAAW,EAAEC,OAAO,EAAEC,QAAQ,QAAQ,OAAO;AAC7D,SACEC,UAAU,EACVC,IAAI,EACJC,QAAQ,EACRC,KAAK,EACLC,YAAY,QAGP,cAAc;AACrB,SAASC,OAAO,EAAEC,UAAU,QAAQ,iBAAiB;AACrD,SAASC,KAAK,EAAEC,aAAa,QAAQ,2BAA2B;AAChE,SAASC,KAAK,QAAQ,yBAAsB;AAC5C,SAASC,MAAM,QAAQ,0BAAiB;AACxC,SAASC,gBAAgB,QAAQ,+CAA4C;AAC7E,SAASC,IAAI,QAAQ,uBAAoB;AACzC,SAASC,WAAW,QAAQ,kCAA+B;AAC3D,OAAOC,YAAY,MAAM,mCAAgC;AACzD,OAAOC,OAAO,MAAM,4BAAyB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KAAK,EAAE,MAAM;IACb2C,UAAU,EAAE,QAAQ;IACpBD,cAAc,EAAE,QAAQ;IACxBM,GAAG,EAAEzH,aAAa,CAAC,EAAE;EACvB,CAAC;EACDkB,KAAK,EAAE;IACLwG,QAAQ,EAAEjH,OAAO,CAAC,EAAE,CAAC;IACrBkH,UAAU,EAAE,KAAK;IACjBC,SAAS,EAAE5H,aAAa,CAAC,EAAE,CAAC;IAC5B6H,YAAY,EAAE7H,aAAa,CAAC,EAAE,CAAC;IAC/B8H,SAAS,EAAE;EACb,CAAC;EACD9C,IAAI,EAAE;IACJP,KAAK,EAAE,MAAM;IACbgD,GAAG,EAAEzH,aAAa,CAAC,EAAE,CAAC;IACtB4H,SAAS,EAAE5H,aAAa,CAAC,CAAC;EAC5B,CAAC;EACD4G,UAAU,EAAE;IACVgB,SAAS,EAAE5H,aAAa,CAAC,EAAE,CAAC;IAC5B0H,QAAQ,EAAEjH,OAAO,CAAC,EAAE,CAAC;IACrBkH,UAAU,EAAE,KAAK;IACjBG,SAAS,EAAE,QAAQ;IACnBC,OAAO,EAAE;EACX;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,324 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* @author Naresh Dhamu
|
|
5
|
+
* @lastModified Mon 16 Jun 2025 at 03:05 PM
|
|
6
|
+
*/
|
|
7
|
+
import React, { useCallback, useMemo } from 'react';
|
|
8
|
+
import { StyleSheet, View, Keyboard, SafeAreaView } from 'react-native';
|
|
9
|
+
import { useForm, Controller } from 'react-hook-form';
|
|
10
|
+
import { scale, verticalScale } from 'react-native-size-matters';
|
|
11
|
+
import { Input } from "../../../Input/Input.js";
|
|
12
|
+
import { Button } from "../../../Button/index.js";
|
|
13
|
+
import { BackgroundLayout } from "../../../BackgroundLayout/BackgroundLayout.js";
|
|
14
|
+
import { Logo } from "../../../Logo/Logo.js";
|
|
15
|
+
import TextButton from "../../../Button/TextButton.js";
|
|
16
|
+
import { useInternalTheme } from "../../../../theme/hook/useInternalTheme.js";
|
|
17
|
+
import HideKeyboard from "../../../Keyboard/HideKeyboard.js";
|
|
18
|
+
import { useKeyboard } from "../../../../hooks/useKeyboard.js";
|
|
19
|
+
import BackBtn from "../../../Button/BackBtn.js";
|
|
20
|
+
import { Text } from "../../../Text/index.js";
|
|
21
|
+
import { RFValue } from 'react-native-responsive-fontsize';
|
|
22
|
+
import { getResponsiveBottomSpacing } from "../../../../utils/Spacing.js";
|
|
23
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
24
|
+
const LoginWithEmail = /*#__PURE__*/React.memo(({
|
|
25
|
+
title = 'Login',
|
|
26
|
+
onSubmit,
|
|
27
|
+
onSignup,
|
|
28
|
+
onForgotPassword,
|
|
29
|
+
onSwitchToPhoneLogin,
|
|
30
|
+
onTopBackBtnPress,
|
|
31
|
+
containerStyle,
|
|
32
|
+
titleStyle,
|
|
33
|
+
formStyle,
|
|
34
|
+
inputStyle,
|
|
35
|
+
inputContainerStyle,
|
|
36
|
+
loadingSubmitBtn,
|
|
37
|
+
topBackBtnStyle,
|
|
38
|
+
minPasswordLength = 6,
|
|
39
|
+
backgroundImage,
|
|
40
|
+
logoUri,
|
|
41
|
+
theme: overrideTheme,
|
|
42
|
+
text,
|
|
43
|
+
signupTextProps,
|
|
44
|
+
signupLinkTextProps,
|
|
45
|
+
renderLogo,
|
|
46
|
+
renderForgotPassword,
|
|
47
|
+
renderEmailHeader,
|
|
48
|
+
renderSignupPrompt,
|
|
49
|
+
renderSubmitButton,
|
|
50
|
+
renderSwitchToPhoneLogin,
|
|
51
|
+
renderTopBackBtn
|
|
52
|
+
}) => {
|
|
53
|
+
const {
|
|
54
|
+
isKeyboardOpen
|
|
55
|
+
} = useKeyboard();
|
|
56
|
+
const {
|
|
57
|
+
theme: resolvedTheme
|
|
58
|
+
} = useInternalTheme(overrideTheme);
|
|
59
|
+
const [isLoading, setIsLoading] = React.useState(false);
|
|
60
|
+
const {
|
|
61
|
+
control,
|
|
62
|
+
handleSubmit,
|
|
63
|
+
formState: {
|
|
64
|
+
errors,
|
|
65
|
+
isValid,
|
|
66
|
+
touchedFields
|
|
67
|
+
}
|
|
68
|
+
} = useForm({
|
|
69
|
+
defaultValues: {
|
|
70
|
+
email: '',
|
|
71
|
+
password: ''
|
|
72
|
+
},
|
|
73
|
+
mode: 'onChange'
|
|
74
|
+
});
|
|
75
|
+
const handleFormSubmit = useCallback(async data => {
|
|
76
|
+
if (!onSubmit) return;
|
|
77
|
+
setIsLoading(true);
|
|
78
|
+
try {
|
|
79
|
+
await onSubmit(data);
|
|
80
|
+
} catch (error) {
|
|
81
|
+
console.error('Form submission error:', error);
|
|
82
|
+
} finally {
|
|
83
|
+
setIsLoading(false);
|
|
84
|
+
}
|
|
85
|
+
}, [onSubmit]);
|
|
86
|
+
const handleKeyboardDismiss = useCallback(callback => {
|
|
87
|
+
Keyboard.dismiss();
|
|
88
|
+
requestAnimationFrame(() => callback?.());
|
|
89
|
+
}, []);
|
|
90
|
+
const shouldRender = useMemo(() => condition => typeof condition === 'function' || !!condition, []);
|
|
91
|
+
|
|
92
|
+
// Memoize gradient split background
|
|
93
|
+
const gradientSplitBackground = useMemo(() => isKeyboardOpen ? 0.31 : 0.35, [isKeyboardOpen]);
|
|
94
|
+
|
|
95
|
+
// Memoize disabled state
|
|
96
|
+
const isDisabled = useMemo(() => loadingSubmitBtn || isLoading, [loadingSubmitBtn, isLoading]);
|
|
97
|
+
return /*#__PURE__*/_jsx(BackgroundLayout, {
|
|
98
|
+
backgroundImage: backgroundImage?.source,
|
|
99
|
+
theme: overrideTheme,
|
|
100
|
+
gradientSplitBackground: gradientSplitBackground,
|
|
101
|
+
children: /*#__PURE__*/_jsx(SafeAreaView, {
|
|
102
|
+
style: styles.safeArea,
|
|
103
|
+
children: /*#__PURE__*/_jsxs(View, {
|
|
104
|
+
style: [styles.container, containerStyle],
|
|
105
|
+
children: [shouldRender(renderTopBackBtn || onTopBackBtnPress) && /*#__PURE__*/_jsx(View, {
|
|
106
|
+
style: styles.topBackBtnWrapper,
|
|
107
|
+
children: renderTopBackBtn ? renderTopBackBtn({
|
|
108
|
+
onPress: onTopBackBtnPress ?? (() => {})
|
|
109
|
+
}) : /*#__PURE__*/_jsx(BackBtn, {
|
|
110
|
+
theme: overrideTheme,
|
|
111
|
+
style: topBackBtnStyle,
|
|
112
|
+
onPress: onTopBackBtnPress
|
|
113
|
+
})
|
|
114
|
+
}), /*#__PURE__*/_jsxs(HideKeyboard, {
|
|
115
|
+
children: [/*#__PURE__*/_jsxs(View, {
|
|
116
|
+
style: styles.centerContent,
|
|
117
|
+
children: [renderLogo ? renderLogo() : logoUri ? /*#__PURE__*/_jsx(Logo, {
|
|
118
|
+
logoUri: logoUri,
|
|
119
|
+
width: 100,
|
|
120
|
+
height: 100
|
|
121
|
+
}) : null, renderEmailHeader ? renderEmailHeader() : /*#__PURE__*/_jsx(Text, {
|
|
122
|
+
style: [styles.title, titleStyle],
|
|
123
|
+
children: title
|
|
124
|
+
}), /*#__PURE__*/_jsxs(View, {
|
|
125
|
+
style: [styles.form, formStyle],
|
|
126
|
+
children: [/*#__PURE__*/_jsx(Controller, {
|
|
127
|
+
control: control,
|
|
128
|
+
name: "email",
|
|
129
|
+
rules: {
|
|
130
|
+
required: 'Email is required',
|
|
131
|
+
pattern: {
|
|
132
|
+
value: /^\S+@\S+\.\S+$/,
|
|
133
|
+
message: 'Enter a valid email address'
|
|
134
|
+
}
|
|
135
|
+
},
|
|
136
|
+
render: ({
|
|
137
|
+
field: {
|
|
138
|
+
onChange,
|
|
139
|
+
onBlur,
|
|
140
|
+
value
|
|
141
|
+
}
|
|
142
|
+
}) => /*#__PURE__*/_jsx(Input.One, {
|
|
143
|
+
label: text?.emailLabel || 'Email',
|
|
144
|
+
placeholder: text?.emailPlaceholder || 'Email',
|
|
145
|
+
value: value,
|
|
146
|
+
onChangeText: inputText => {
|
|
147
|
+
const sanitized = inputText.replace(/[^\w@.\-+]/g, '');
|
|
148
|
+
onChange(sanitized);
|
|
149
|
+
},
|
|
150
|
+
onBlur: onBlur,
|
|
151
|
+
disabled: isDisabled,
|
|
152
|
+
error: !!touchedFields.email && !!errors.email,
|
|
153
|
+
errorMessage: errors.email?.message,
|
|
154
|
+
inputStyle: inputStyle,
|
|
155
|
+
containerStyle: inputContainerStyle,
|
|
156
|
+
theme: overrideTheme,
|
|
157
|
+
textContentType: "emailAddress",
|
|
158
|
+
autoCapitalize: "none",
|
|
159
|
+
keyboardType: "email-address",
|
|
160
|
+
autoCorrect: false
|
|
161
|
+
})
|
|
162
|
+
}), /*#__PURE__*/_jsx(Controller, {
|
|
163
|
+
control: control,
|
|
164
|
+
name: "password",
|
|
165
|
+
rules: {
|
|
166
|
+
required: 'Password is required',
|
|
167
|
+
minLength: {
|
|
168
|
+
value: minPasswordLength,
|
|
169
|
+
message: `Password must be at least ${minPasswordLength} characters`
|
|
170
|
+
}
|
|
171
|
+
},
|
|
172
|
+
render: ({
|
|
173
|
+
field: {
|
|
174
|
+
onChange,
|
|
175
|
+
onBlur,
|
|
176
|
+
value
|
|
177
|
+
}
|
|
178
|
+
}) => /*#__PURE__*/_jsxs(_Fragment, {
|
|
179
|
+
children: [/*#__PURE__*/_jsx(Input.One, {
|
|
180
|
+
label: text?.passwordLabel || 'Password',
|
|
181
|
+
placeholder: text?.passwordPlaceholder || 'Password',
|
|
182
|
+
value: value,
|
|
183
|
+
secureTextEntry: true,
|
|
184
|
+
onChangeText: inputText => {
|
|
185
|
+
const sanitized = inputText.replace(/[^\w@.\-+]/g, '');
|
|
186
|
+
onChange(sanitized);
|
|
187
|
+
},
|
|
188
|
+
onBlur: onBlur,
|
|
189
|
+
disabled: isDisabled,
|
|
190
|
+
error: !!touchedFields.password && !!errors.password,
|
|
191
|
+
errorMessage: errors.password?.message,
|
|
192
|
+
inputStyle: inputStyle,
|
|
193
|
+
containerStyle: inputContainerStyle,
|
|
194
|
+
textContentType: "none",
|
|
195
|
+
autoCapitalize: "none",
|
|
196
|
+
spellCheck: false,
|
|
197
|
+
autoCorrect: false,
|
|
198
|
+
autoComplete: "off",
|
|
199
|
+
theme: overrideTheme
|
|
200
|
+
}), !isKeyboardOpen && shouldRender(renderForgotPassword || onForgotPassword) && (renderForgotPassword ? renderForgotPassword() : /*#__PURE__*/_jsx(TextButton, {
|
|
201
|
+
title: text?.forgotPassword || 'Forgot password?',
|
|
202
|
+
onPress: () => handleKeyboardDismiss(onForgotPassword),
|
|
203
|
+
color: resolvedTheme.colors.button,
|
|
204
|
+
align: "right",
|
|
205
|
+
style: styles.forgotPasswordText
|
|
206
|
+
}))]
|
|
207
|
+
})
|
|
208
|
+
}), !isKeyboardOpen && (renderSubmitButton ? renderSubmitButton({
|
|
209
|
+
onPress: handleSubmit(handleFormSubmit),
|
|
210
|
+
disabled: loadingSubmitBtn || !isValid || isLoading,
|
|
211
|
+
loading: loadingSubmitBtn || isLoading
|
|
212
|
+
}) : /*#__PURE__*/_jsx(Button.Primary, {
|
|
213
|
+
title: text?.loginButton || 'Login',
|
|
214
|
+
onPress: handleSubmit(handleFormSubmit),
|
|
215
|
+
disabled: isDisabled || !isValid,
|
|
216
|
+
theme: overrideTheme,
|
|
217
|
+
titleStyle: {
|
|
218
|
+
fontSize: RFValue(14)
|
|
219
|
+
},
|
|
220
|
+
loadingText: text?.loadingSubmitBtnText || 'Logging in...',
|
|
221
|
+
loading: isDisabled
|
|
222
|
+
}))]
|
|
223
|
+
}), !isKeyboardOpen && shouldRender(onSwitchToPhoneLogin || renderSwitchToPhoneLogin) && (renderSwitchToPhoneLogin ? renderSwitchToPhoneLogin({
|
|
224
|
+
onPress: () => handleKeyboardDismiss(onSwitchToPhoneLogin)
|
|
225
|
+
}) : /*#__PURE__*/_jsx(TextButton, {
|
|
226
|
+
title: text?.switchToPhoneLogin || 'Login with Phone',
|
|
227
|
+
onPress: () => handleKeyboardDismiss(onSwitchToPhoneLogin),
|
|
228
|
+
color: resolvedTheme.colors.button,
|
|
229
|
+
style: styles.switchPhoneText,
|
|
230
|
+
underline: true,
|
|
231
|
+
bold: true,
|
|
232
|
+
align: "center"
|
|
233
|
+
}))]
|
|
234
|
+
}), !isKeyboardOpen && shouldRender(onSignup || renderSignupPrompt) && /*#__PURE__*/_jsx(View, {
|
|
235
|
+
style: [styles.signupContainer, {
|
|
236
|
+
bottom: getResponsiveBottomSpacing(35)
|
|
237
|
+
}],
|
|
238
|
+
children: renderSignupPrompt ? renderSignupPrompt({
|
|
239
|
+
onPress: () => handleKeyboardDismiss(onSignup)
|
|
240
|
+
}) : /*#__PURE__*/_jsxs(View, {
|
|
241
|
+
style: styles.loginRow,
|
|
242
|
+
children: [/*#__PURE__*/_jsx(Text, {
|
|
243
|
+
style: [styles.loginPrompt, signupTextProps],
|
|
244
|
+
color: resolvedTheme.colors.textPrimary,
|
|
245
|
+
children: text?.signupPrompt || `Don't have an account?`
|
|
246
|
+
}), /*#__PURE__*/_jsx(TextButton, {
|
|
247
|
+
title: text?.signupLink || 'Sign Up',
|
|
248
|
+
onPress: () => handleKeyboardDismiss(onSignup),
|
|
249
|
+
bold: true,
|
|
250
|
+
underline: true,
|
|
251
|
+
align: "center",
|
|
252
|
+
color: resolvedTheme.colors.button,
|
|
253
|
+
style: signupLinkTextProps
|
|
254
|
+
})]
|
|
255
|
+
})
|
|
256
|
+
})]
|
|
257
|
+
})]
|
|
258
|
+
})
|
|
259
|
+
})
|
|
260
|
+
});
|
|
261
|
+
});
|
|
262
|
+
export default LoginWithEmail;
|
|
263
|
+
const styles = StyleSheet.create({
|
|
264
|
+
safeArea: {
|
|
265
|
+
flex: 1,
|
|
266
|
+
width: '100%',
|
|
267
|
+
paddingBottom: verticalScale(12)
|
|
268
|
+
},
|
|
269
|
+
container: {
|
|
270
|
+
flex: 1,
|
|
271
|
+
width: '100%',
|
|
272
|
+
paddingHorizontal: scale(16),
|
|
273
|
+
justifyContent: 'center',
|
|
274
|
+
alignItems: 'center'
|
|
275
|
+
},
|
|
276
|
+
topBackBtnWrapper: {
|
|
277
|
+
position: 'absolute',
|
|
278
|
+
top: verticalScale(6),
|
|
279
|
+
left: 0,
|
|
280
|
+
zIndex: 10
|
|
281
|
+
},
|
|
282
|
+
centerContent: {
|
|
283
|
+
flex: 1,
|
|
284
|
+
width: '100%',
|
|
285
|
+
alignItems: 'center',
|
|
286
|
+
justifyContent: 'center'
|
|
287
|
+
},
|
|
288
|
+
title: {
|
|
289
|
+
fontSize: RFValue(21),
|
|
290
|
+
fontWeight: '700',
|
|
291
|
+
marginTop: verticalScale(5),
|
|
292
|
+
marginBottom: verticalScale(20)
|
|
293
|
+
},
|
|
294
|
+
form: {
|
|
295
|
+
width: '100%',
|
|
296
|
+
gap: verticalScale(10)
|
|
297
|
+
},
|
|
298
|
+
forgotPasswordText: {
|
|
299
|
+
textAlign: 'right',
|
|
300
|
+
marginRight: scale(4),
|
|
301
|
+
marginTop: -verticalScale(10),
|
|
302
|
+
marginBottom: verticalScale(8)
|
|
303
|
+
},
|
|
304
|
+
switchPhoneText: {
|
|
305
|
+
marginTop: verticalScale(10)
|
|
306
|
+
},
|
|
307
|
+
signupContainer: {
|
|
308
|
+
position: 'absolute',
|
|
309
|
+
left: 0,
|
|
310
|
+
right: 0,
|
|
311
|
+
alignItems: 'center'
|
|
312
|
+
},
|
|
313
|
+
loginRow: {
|
|
314
|
+
flexDirection: 'row',
|
|
315
|
+
justifyContent: 'center',
|
|
316
|
+
alignItems: 'center',
|
|
317
|
+
flexWrap: 'wrap'
|
|
318
|
+
},
|
|
319
|
+
loginPrompt: {
|
|
320
|
+
textAlign: 'center',
|
|
321
|
+
marginRight: 4
|
|
322
|
+
}
|
|
323
|
+
});
|
|
324
|
+
//# sourceMappingURL=LoginWithEmail.js.map
|