@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
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import { View, StyleSheet, Pressable } from 'react-native';
|
|
5
|
+
import { verticalScale } from 'react-native-size-matters';
|
|
6
|
+
import { RFValue } from 'react-native-responsive-fontsize';
|
|
7
|
+
import { Text } from "../../../Text/index.js";
|
|
8
|
+
import { useInternalTheme } from "../../../../theme/hook/useInternalTheme.js";
|
|
9
|
+
import AuthHeader from "../AuthHeader/AuthHeader.js";
|
|
10
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
11
|
+
const AuthLoginShell = ({
|
|
12
|
+
activeTab,
|
|
13
|
+
onPhonePress,
|
|
14
|
+
onEmailPress,
|
|
15
|
+
onSignup,
|
|
16
|
+
logoUri,
|
|
17
|
+
title,
|
|
18
|
+
description,
|
|
19
|
+
bottomTitle,
|
|
20
|
+
children,
|
|
21
|
+
theme: overrideTheme
|
|
22
|
+
}) => {
|
|
23
|
+
const {
|
|
24
|
+
theme
|
|
25
|
+
} = useInternalTheme(overrideTheme);
|
|
26
|
+
return /*#__PURE__*/_jsxs(View, {
|
|
27
|
+
style: styles.wrapper,
|
|
28
|
+
children: [/*#__PURE__*/_jsx(AuthHeader, {
|
|
29
|
+
logoUri: logoUri,
|
|
30
|
+
rightTitle: "Sign Up",
|
|
31
|
+
onRightPress: onSignup,
|
|
32
|
+
theme: overrideTheme
|
|
33
|
+
}), /*#__PURE__*/_jsxs(View, {
|
|
34
|
+
style: styles.titleBlock,
|
|
35
|
+
children: [title && /*#__PURE__*/_jsx(Text, {
|
|
36
|
+
style: [styles.title, {
|
|
37
|
+
color: theme.colors.textPrimary
|
|
38
|
+
}],
|
|
39
|
+
children: title
|
|
40
|
+
}), description && /*#__PURE__*/_jsx(Text, {
|
|
41
|
+
style: [styles.subtitle, {
|
|
42
|
+
color: theme.colors.textPrimary
|
|
43
|
+
}],
|
|
44
|
+
children: description
|
|
45
|
+
})]
|
|
46
|
+
}), /*#__PURE__*/_jsxs(View, {
|
|
47
|
+
style: styles.tabRow,
|
|
48
|
+
children: [/*#__PURE__*/_jsxs(Pressable, {
|
|
49
|
+
style: styles.tab,
|
|
50
|
+
onPress: onPhonePress,
|
|
51
|
+
children: [/*#__PURE__*/_jsx(Text, {
|
|
52
|
+
style: [styles.tabText, {
|
|
53
|
+
color: theme.colors.textPrimary,
|
|
54
|
+
opacity: activeTab === 'phone' ? 1 : 0.6
|
|
55
|
+
}],
|
|
56
|
+
children: "Phone number"
|
|
57
|
+
}), activeTab === 'phone' && /*#__PURE__*/_jsx(View, {
|
|
58
|
+
style: [styles.activeLine, {
|
|
59
|
+
backgroundColor: theme.colors.button
|
|
60
|
+
}]
|
|
61
|
+
})]
|
|
62
|
+
}), /*#__PURE__*/_jsxs(Pressable, {
|
|
63
|
+
style: styles.tab,
|
|
64
|
+
onPress: onEmailPress,
|
|
65
|
+
children: [/*#__PURE__*/_jsx(Text, {
|
|
66
|
+
style: [styles.tabText, {
|
|
67
|
+
color: theme.colors.textPrimary,
|
|
68
|
+
opacity: activeTab === 'email' ? 1 : 0.6
|
|
69
|
+
}],
|
|
70
|
+
children: "Email address"
|
|
71
|
+
}), activeTab === 'email' && /*#__PURE__*/_jsx(View, {
|
|
72
|
+
style: [styles.activeLine, {
|
|
73
|
+
backgroundColor: theme.colors.button
|
|
74
|
+
}]
|
|
75
|
+
})]
|
|
76
|
+
})]
|
|
77
|
+
}), /*#__PURE__*/_jsx(View, {
|
|
78
|
+
style: styles.center,
|
|
79
|
+
children: children
|
|
80
|
+
}), bottomTitle && /*#__PURE__*/_jsx(Text, {
|
|
81
|
+
style: [styles.disclaimer, {
|
|
82
|
+
color: theme.colors.textPrimary
|
|
83
|
+
}],
|
|
84
|
+
children: bottomTitle
|
|
85
|
+
})]
|
|
86
|
+
});
|
|
87
|
+
};
|
|
88
|
+
export default AuthLoginShell;
|
|
89
|
+
const styles = StyleSheet.create({
|
|
90
|
+
wrapper: {
|
|
91
|
+
flex: 1,
|
|
92
|
+
width: '100%',
|
|
93
|
+
alignItems: 'center'
|
|
94
|
+
},
|
|
95
|
+
titleBlock: {
|
|
96
|
+
alignItems: 'center',
|
|
97
|
+
marginBottom: verticalScale(28),
|
|
98
|
+
marginTop: verticalScale(110) // ⬅ header ke liye thoda space
|
|
99
|
+
},
|
|
100
|
+
title: {
|
|
101
|
+
fontSize: RFValue(22),
|
|
102
|
+
fontWeight: '700',
|
|
103
|
+
marginBottom: verticalScale(6)
|
|
104
|
+
},
|
|
105
|
+
subtitle: {
|
|
106
|
+
fontSize: RFValue(12),
|
|
107
|
+
textAlign: 'center'
|
|
108
|
+
},
|
|
109
|
+
tabRow: {
|
|
110
|
+
flexDirection: 'row',
|
|
111
|
+
width: '100%',
|
|
112
|
+
marginBottom: verticalScale(20)
|
|
113
|
+
},
|
|
114
|
+
tab: {
|
|
115
|
+
flex: 1,
|
|
116
|
+
alignItems: 'center',
|
|
117
|
+
marginTop: verticalScale(30)
|
|
118
|
+
},
|
|
119
|
+
tabText: {
|
|
120
|
+
fontSize: RFValue(14.5),
|
|
121
|
+
fontWeight: '600'
|
|
122
|
+
},
|
|
123
|
+
activeLine: {
|
|
124
|
+
marginTop: verticalScale(6),
|
|
125
|
+
height: 2,
|
|
126
|
+
width: '70%'
|
|
127
|
+
},
|
|
128
|
+
center: {
|
|
129
|
+
width: '100%',
|
|
130
|
+
flexGrow: 1
|
|
131
|
+
},
|
|
132
|
+
disclaimer: {
|
|
133
|
+
marginBottom: verticalScale(45),
|
|
134
|
+
fontSize: RFValue(12.5),
|
|
135
|
+
textAlign: 'center'
|
|
136
|
+
}
|
|
137
|
+
});
|
|
138
|
+
//# sourceMappingURL=AuthLoginShell.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","View","StyleSheet","Pressable","verticalScale","RFValue","Text","useInternalTheme","AuthHeader","jsx","_jsx","jsxs","_jsxs","AuthLoginShell","activeTab","onPhonePress","onEmailPress","onSignup","logoUri","title","description","bottomTitle","children","theme","overrideTheme","style","styles","wrapper","rightTitle","onRightPress","titleBlock","color","colors","textPrimary","subtitle","tabRow","tab","onPress","tabText","opacity","activeLine","backgroundColor","button","center","disclaimer","create","flex","width","alignItems","marginBottom","marginTop","fontSize","fontWeight","textAlign","flexDirection","height","flexGrow"],"sourceRoot":"../../../../../../src","sources":["components/Auth/Two/Login/AuthLoginShell.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,IAAI,EAAEC,UAAU,EAAEC,SAAS,QAAQ,cAAc;AAC1D,SAASC,aAAa,QAAQ,2BAA2B;AACzD,SAASC,OAAO,QAAQ,kCAAkC;AAC1D,SAASC,IAAI,QAAQ,wBAAe;AACpC,SAASC,gBAAgB,QAAQ,4CAAyC;AAE1E,OAAOC,UAAU,MAAM,6BAA0B;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAelD,MAAMC,cAA+B,GAAGA,CAAC;EACvCC,SAAS;EACTC,YAAY;EACZC,YAAY;EACZC,QAAQ;EACRC,OAAO;EACPC,KAAK;EACLC,WAAW;EACXC,WAAW;EACXC,QAAQ;EACRC,KAAK,EAAEC;AACT,CAAC,KAAK;EACJ,MAAM;IAAED;EAAM,CAAC,GAAGhB,gBAAg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|
9
|
+
import { StyleSheet, View, Keyboard, KeyboardAvoidingView, Platform } from 'react-native';
|
|
10
|
+
import { useForm, Controller } from 'react-hook-form';
|
|
11
|
+
import { scale, verticalScale } from 'react-native-size-matters';
|
|
12
|
+
import { Input } from "../../../Input/Input.js";
|
|
13
|
+
import { Button } from "../../../Button/index.js";
|
|
14
|
+
import HideKeyboard from "../../../Keyboard/HideKeyboard.js";
|
|
15
|
+
import TextButton from "../../../Button/TextButton.js";
|
|
16
|
+
import { RFValue } from 'react-native-responsive-fontsize';
|
|
17
|
+
import AuthLoginShell from "./AuthLoginShell.js";
|
|
18
|
+
import { useInternalTheme } from "../../../../theme/hook/useInternalTheme.js";
|
|
19
|
+
import { useKeyboard } from "../../../../hooks/useKeyboard.js";
|
|
20
|
+
import { Lock, Mail } from 'lucide-react-native';
|
|
21
|
+
import BackgroundLayoutOne from "../../../BackgroundLayout/BackgroundLayoutOne.js";
|
|
22
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
23
|
+
const LoginWithEmail = /*#__PURE__*/React.memo(({
|
|
24
|
+
title = 'Ready to watch?',
|
|
25
|
+
description = 'Enter your email or phone number to create your account.',
|
|
26
|
+
bottomTitle = 'By proceeding you agree to our Terms of Service and Privacy Policy',
|
|
27
|
+
onSubmit,
|
|
28
|
+
onSignup,
|
|
29
|
+
onForgotPassword,
|
|
30
|
+
onSwitchToPhoneLogin,
|
|
31
|
+
containerStyle,
|
|
32
|
+
formStyle,
|
|
33
|
+
inputStyle,
|
|
34
|
+
inputContainerStyle,
|
|
35
|
+
loadingSubmitBtn,
|
|
36
|
+
minPasswordLength = 6,
|
|
37
|
+
// backgroundImage,
|
|
38
|
+
logoUri,
|
|
39
|
+
theme: overrideTheme,
|
|
40
|
+
text
|
|
41
|
+
}) => {
|
|
42
|
+
const {
|
|
43
|
+
isKeyboardOpen
|
|
44
|
+
} = useKeyboard();
|
|
45
|
+
const {
|
|
46
|
+
theme: resolvedTheme
|
|
47
|
+
} = useInternalTheme(overrideTheme);
|
|
48
|
+
const [isLoading, setIsLoading] = React.useState(false);
|
|
49
|
+
const {
|
|
50
|
+
control,
|
|
51
|
+
handleSubmit,
|
|
52
|
+
formState: {
|
|
53
|
+
errors,
|
|
54
|
+
isValid,
|
|
55
|
+
touchedFields
|
|
56
|
+
}
|
|
57
|
+
} = useForm({
|
|
58
|
+
defaultValues: {
|
|
59
|
+
email: '',
|
|
60
|
+
password: ''
|
|
61
|
+
},
|
|
62
|
+
mode: 'onChange'
|
|
63
|
+
});
|
|
64
|
+
const handleFormSubmit = useCallback(async data => {
|
|
65
|
+
if (!onSubmit) return;
|
|
66
|
+
setIsLoading(true);
|
|
67
|
+
try {
|
|
68
|
+
await onSubmit(data);
|
|
69
|
+
} finally {
|
|
70
|
+
setIsLoading(false);
|
|
71
|
+
}
|
|
72
|
+
}, [onSubmit]);
|
|
73
|
+
const handleKeyboardDismiss = useCallback(callback => {
|
|
74
|
+
Keyboard.dismiss();
|
|
75
|
+
requestAnimationFrame(() => callback?.());
|
|
76
|
+
}, []);
|
|
77
|
+
const isDisabled = useMemo(() => loadingSubmitBtn || isLoading, [loadingSubmitBtn, isLoading]);
|
|
78
|
+
|
|
79
|
+
// const gradientSplitBackground = useMemo(
|
|
80
|
+
// () => (isKeyboardOpen ? 0.31 : 0.35),
|
|
81
|
+
// [isKeyboardOpen]
|
|
82
|
+
// );
|
|
83
|
+
|
|
84
|
+
return /*#__PURE__*/_jsx(BackgroundLayoutOne, {
|
|
85
|
+
children: /*#__PURE__*/_jsx(KeyboardAvoidingView, {
|
|
86
|
+
style: {
|
|
87
|
+
flex: 1,
|
|
88
|
+
width: '100%'
|
|
89
|
+
},
|
|
90
|
+
behavior: Platform.OS === 'ios' ? 'padding' : undefined,
|
|
91
|
+
keyboardVerticalOffset: Platform.OS === 'ios' ? 20 : 0,
|
|
92
|
+
children: /*#__PURE__*/_jsx(View, {
|
|
93
|
+
style: [styles.container, containerStyle],
|
|
94
|
+
children: /*#__PURE__*/_jsx(HideKeyboard, {
|
|
95
|
+
children: /*#__PURE__*/_jsx(AuthLoginShell, {
|
|
96
|
+
activeTab: "email",
|
|
97
|
+
logoUri: logoUri,
|
|
98
|
+
onPhonePress: onSwitchToPhoneLogin,
|
|
99
|
+
onSignup: onSignup,
|
|
100
|
+
title: title,
|
|
101
|
+
description: description,
|
|
102
|
+
bottomTitle: bottomTitle,
|
|
103
|
+
theme: overrideTheme,
|
|
104
|
+
children: /*#__PURE__*/_jsxs(View, {
|
|
105
|
+
style: [styles.form, formStyle],
|
|
106
|
+
children: [/*#__PURE__*/_jsx(Controller, {
|
|
107
|
+
control: control,
|
|
108
|
+
name: "email",
|
|
109
|
+
rules: {
|
|
110
|
+
required: 'Email is required',
|
|
111
|
+
pattern: {
|
|
112
|
+
value: /^\S+@\S+\.\S+$/,
|
|
113
|
+
message: 'Enter a valid email address'
|
|
114
|
+
}
|
|
115
|
+
},
|
|
116
|
+
render: ({
|
|
117
|
+
field: {
|
|
118
|
+
onChange,
|
|
119
|
+
onBlur,
|
|
120
|
+
value
|
|
121
|
+
}
|
|
122
|
+
}) => /*#__PURE__*/_jsx(Input.Three, {
|
|
123
|
+
label: text?.emailLabel || 'Email',
|
|
124
|
+
placeholder: text?.emailPlaceholder || 'Email',
|
|
125
|
+
value: value,
|
|
126
|
+
onChangeText: inputText => onChange(inputText.replace(/[^\w@.\-+]/g, '')),
|
|
127
|
+
onBlur: onBlur,
|
|
128
|
+
disabled: isDisabled,
|
|
129
|
+
error: !!touchedFields.email && !!errors.email,
|
|
130
|
+
errorMessage: errors.email?.message,
|
|
131
|
+
inputStyle: inputStyle,
|
|
132
|
+
containerStyle: inputContainerStyle,
|
|
133
|
+
theme: overrideTheme,
|
|
134
|
+
textContentType: "emailAddress",
|
|
135
|
+
autoCapitalize: "none",
|
|
136
|
+
keyboardType: "email-address",
|
|
137
|
+
autoCorrect: false,
|
|
138
|
+
leftIcon: /*#__PURE__*/_jsx(Mail, {
|
|
139
|
+
size: 22
|
|
140
|
+
})
|
|
141
|
+
})
|
|
142
|
+
}), /*#__PURE__*/_jsx(Controller, {
|
|
143
|
+
control: control,
|
|
144
|
+
name: "password",
|
|
145
|
+
rules: {
|
|
146
|
+
required: 'Password is required',
|
|
147
|
+
minLength: {
|
|
148
|
+
value: minPasswordLength,
|
|
149
|
+
message: `Password must be at least ${minPasswordLength} characters`
|
|
150
|
+
}
|
|
151
|
+
},
|
|
152
|
+
render: ({
|
|
153
|
+
field: {
|
|
154
|
+
onChange,
|
|
155
|
+
onBlur,
|
|
156
|
+
value
|
|
157
|
+
}
|
|
158
|
+
}) => /*#__PURE__*/_jsxs(_Fragment, {
|
|
159
|
+
children: [/*#__PURE__*/_jsx(Input.Three, {
|
|
160
|
+
label: text?.passwordLabel || 'Password',
|
|
161
|
+
placeholder: text?.passwordPlaceholder || 'Password',
|
|
162
|
+
value: value,
|
|
163
|
+
secureTextEntry: true,
|
|
164
|
+
onChangeText: inputText => onChange(inputText.replace(/[^\w@.\-+]/g, '')),
|
|
165
|
+
onBlur: onBlur,
|
|
166
|
+
disabled: isDisabled,
|
|
167
|
+
error: !!touchedFields.password && !!errors.password,
|
|
168
|
+
errorMessage: errors.password?.message,
|
|
169
|
+
inputStyle: inputStyle,
|
|
170
|
+
containerStyle: inputContainerStyle,
|
|
171
|
+
textContentType: "none",
|
|
172
|
+
autoCapitalize: "none",
|
|
173
|
+
spellCheck: false,
|
|
174
|
+
autoCorrect: false,
|
|
175
|
+
autoComplete: "off",
|
|
176
|
+
theme: overrideTheme,
|
|
177
|
+
leftIcon: /*#__PURE__*/_jsx(Lock, {
|
|
178
|
+
size: 22
|
|
179
|
+
})
|
|
180
|
+
}), !isKeyboardOpen && onForgotPassword && /*#__PURE__*/_jsx(TextButton, {
|
|
181
|
+
title: text?.forgotPassword || 'Forgot password?',
|
|
182
|
+
onPress: () => handleKeyboardDismiss(onForgotPassword),
|
|
183
|
+
color: resolvedTheme.colors.button,
|
|
184
|
+
align: "right",
|
|
185
|
+
style: styles.forgotPasswordText
|
|
186
|
+
})]
|
|
187
|
+
})
|
|
188
|
+
}), /*#__PURE__*/_jsx(Button.Primary, {
|
|
189
|
+
title: text?.loginButton || 'Login',
|
|
190
|
+
onPress: handleSubmit(handleFormSubmit),
|
|
191
|
+
disabled: isDisabled || !isValid,
|
|
192
|
+
loading: isDisabled,
|
|
193
|
+
theme: overrideTheme,
|
|
194
|
+
titleStyle: {
|
|
195
|
+
fontSize: RFValue(14)
|
|
196
|
+
},
|
|
197
|
+
loadingText: text?.loadingSubmitBtnText || 'Logging in...'
|
|
198
|
+
})]
|
|
199
|
+
})
|
|
200
|
+
})
|
|
201
|
+
})
|
|
202
|
+
})
|
|
203
|
+
})
|
|
204
|
+
});
|
|
205
|
+
});
|
|
206
|
+
export default LoginWithEmail;
|
|
207
|
+
const styles = StyleSheet.create({
|
|
208
|
+
container: {
|
|
209
|
+
flex: 1,
|
|
210
|
+
width: '100%',
|
|
211
|
+
paddingHorizontal: scale(16),
|
|
212
|
+
justifyContent: 'center',
|
|
213
|
+
alignItems: 'center'
|
|
214
|
+
},
|
|
215
|
+
form: {
|
|
216
|
+
width: '100%',
|
|
217
|
+
gap: verticalScale(10)
|
|
218
|
+
},
|
|
219
|
+
forgotPasswordText: {
|
|
220
|
+
textAlign: 'right',
|
|
221
|
+
marginRight: scale(4),
|
|
222
|
+
marginTop: -verticalScale(10),
|
|
223
|
+
marginBottom: verticalScale(8)
|
|
224
|
+
}
|
|
225
|
+
});
|
|
226
|
+
//# sourceMappingURL=LoginWithEmail.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","useCallback","useMemo","StyleSheet","View","Keyboard","KeyboardAvoidingView","Platform","useForm","Controller","scale","verticalScale","Input","Button","HideKeyboard","TextButton","RFValue","AuthLoginShell","useInternalTheme","useKeyboard","Lock","Mail","BackgroundLayoutOne","jsx","_jsx","Fragment","_Fragment","jsxs","_jsxs","LoginWithEmail","memo","title","description","bottomTitle","onSubmit","onSignup","onForgotPassword","onSwitchToPhoneLogin","containerStyle","formStyle","inputStyle","inputContainerStyle","loadingSubmitBtn","minPasswordLength","logoUri","theme","overrideTheme","text","isKeyboardOpen","resolvedTheme","isLoading","setIsLoading","useState","control","handleSubmit","formState","errors","isValid","touchedFields","defaultValues","email","password","mode","handleFormSubmit","data","handleKeyboardDismiss","callback","dismiss","requestAnimationFrame","isDisabled","children","style","flex","width","behavior","OS","undefined","keyboardVerticalOffset","styles","container","activeTab","onPhonePress","form","name","rules","required","pattern","value","message","render","field","onChange","onBlur","Three","label","emailLabel","placeholder","emailPlaceholder","onChangeText","inputText","replace","disabled","error","errorMessage","textContentType","autoCapitalize","keyboardType","autoCorrect","leftIcon","size","minLength","passwordLabel","passwordPlaceholder","secureTextEntry","spellCheck","autoComplete","forgotPassword","onPress","color","colors","button","align","forgotPasswordText","Primary","loginButton","loading","titleStyle","fontSize","loadingText","loadingSubmitBtnText","create","paddingHorizontal","justifyContent","alignItems","gap","textAlign","marginRight","marginTop","marginBottom"],"sourceRoot":"../../../../../../src","sources":["components/Auth/Two/Login/LoginWithEmail.tsx"],"mappings":";;AAAA;AACA;AACA;AACA;;AAEA,OAAOA,KAAK,IAAIC,WAAW,EAAEC,OAAO,QAAQ,OAAO;AACnD,SACEC,UAAU,EACVC,IAAI,EACJC,QAAQ,EAGRC,oBAAoB,EACpBC,QAAQ,QACH,cAAc;AACrB,SAASC,OAAO,EAAEC,UAAU,QAAQ,iBAAiB;AACrD,SAASC,KAAK,EAAEC,aAAa,QAAQ,2BAA2B;AAEhE,SAASC,KAAK,QAAQ,yBAAsB;AAC5C,SAASC,MAAM,QAAQ,0BAAiB;AACxC,OAAOC,YAAY,MAAM,mCAAgC;AACzD,OAAOC,UAAU,MAAM,+BAA4B;AACnD,SAASC,OAAO,QAAQ,kCAAkC;AAE1D,OAAOC,cAAc,MAAM,qBAAkB;AAC7C,SAASC,gBAAgB,QAAQ,4CAAyC;AAC1E,SAAS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,CAAC;IAC7B+H,YAAY,EAAE/H,aAAa,CAAC,CAAC;EAC/B;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* @author Naresh Dhamu
|
|
5
|
+
* @lastModified Mon 16 Jun 2025 at 04:10 PM
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
import React, { memo, useCallback, useMemo } from 'react';
|
|
9
|
+
import { StyleSheet, View, KeyboardAvoidingView, Platform } from 'react-native';
|
|
10
|
+
import { useForm, Controller } from 'react-hook-form';
|
|
11
|
+
import { scale, verticalScale } from 'react-native-size-matters';
|
|
12
|
+
import HideKeyboard from "../../../Keyboard/HideKeyboard.js";
|
|
13
|
+
import { Button } from "../../../Button/index.js";
|
|
14
|
+
import PhoneNumberInputOne from "../../../Input/PhoneNumberInputTwo.js";
|
|
15
|
+
import AuthLoginShell from "./AuthLoginShell.js";
|
|
16
|
+
import { useInternalTheme } from "../../../../theme/hook/useInternalTheme.js";
|
|
17
|
+
import BackgroundLayoutOne from "../../../BackgroundLayout/BackgroundLayoutOne.js";
|
|
18
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
19
|
+
const LoginWithPhone = ({
|
|
20
|
+
title = 'Ready to watch?',
|
|
21
|
+
description = 'Enter your email or phone number to create your account.',
|
|
22
|
+
bottomTitle = 'By proceeding you agree to our Terms of Service and Privacy Policy',
|
|
23
|
+
onSubmit,
|
|
24
|
+
onLoginWithEmail,
|
|
25
|
+
onSignup,
|
|
26
|
+
containerStyle,
|
|
27
|
+
formStyle,
|
|
28
|
+
inputStyle,
|
|
29
|
+
inputContainerStyle,
|
|
30
|
+
// backgroundImage,
|
|
31
|
+
loadingSubmitBtn,
|
|
32
|
+
logoUri,
|
|
33
|
+
theme: overrideTheme
|
|
34
|
+
}) => {
|
|
35
|
+
useInternalTheme(overrideTheme);
|
|
36
|
+
// const { isKeyboardOpen } = useKeyboard();
|
|
37
|
+
const [isLoading, setIsLoading] = React.useState(false);
|
|
38
|
+
const {
|
|
39
|
+
control,
|
|
40
|
+
handleSubmit,
|
|
41
|
+
formState: {
|
|
42
|
+
errors,
|
|
43
|
+
isValid
|
|
44
|
+
}
|
|
45
|
+
} = useForm({
|
|
46
|
+
defaultValues: {
|
|
47
|
+
phone: {
|
|
48
|
+
fullNumber: '',
|
|
49
|
+
countryCode: '91',
|
|
50
|
+
formattedNumber: ''
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
mode: 'onChange'
|
|
54
|
+
});
|
|
55
|
+
const handleFormSubmit = useCallback(async data => {
|
|
56
|
+
if (!onSubmit) return;
|
|
57
|
+
setIsLoading(true);
|
|
58
|
+
try {
|
|
59
|
+
await onSubmit(data);
|
|
60
|
+
} finally {
|
|
61
|
+
setIsLoading(false);
|
|
62
|
+
}
|
|
63
|
+
}, [onSubmit]);
|
|
64
|
+
const isDisabled = useMemo(() => loadingSubmitBtn || isLoading, [loadingSubmitBtn, isLoading]);
|
|
65
|
+
|
|
66
|
+
// const gradientSplitBackground = useMemo(
|
|
67
|
+
// () => (isKeyboardOpen ? 0.3 : 0.4),
|
|
68
|
+
// [isKeyboardOpen]
|
|
69
|
+
// );
|
|
70
|
+
|
|
71
|
+
const styles = useMemo(() => StyleSheet.create({
|
|
72
|
+
container: {
|
|
73
|
+
flex: 1,
|
|
74
|
+
width: '100%',
|
|
75
|
+
paddingHorizontal: scale(16),
|
|
76
|
+
justifyContent: 'center',
|
|
77
|
+
alignItems: 'center'
|
|
78
|
+
},
|
|
79
|
+
form: {
|
|
80
|
+
width: '100%',
|
|
81
|
+
gap: verticalScale(12),
|
|
82
|
+
alignItems: 'center'
|
|
83
|
+
}
|
|
84
|
+
}), []);
|
|
85
|
+
return /*#__PURE__*/_jsx(BackgroundLayoutOne, {
|
|
86
|
+
children: /*#__PURE__*/_jsx(KeyboardAvoidingView, {
|
|
87
|
+
style: {
|
|
88
|
+
flex: 1,
|
|
89
|
+
width: '100%'
|
|
90
|
+
},
|
|
91
|
+
behavior: Platform.OS === 'ios' ? 'padding' : undefined,
|
|
92
|
+
keyboardVerticalOffset: Platform.OS === 'ios' ? 20 : 0,
|
|
93
|
+
children: /*#__PURE__*/_jsx(View, {
|
|
94
|
+
style: [styles.container, containerStyle],
|
|
95
|
+
children: /*#__PURE__*/_jsx(HideKeyboard, {
|
|
96
|
+
children: /*#__PURE__*/_jsx(AuthLoginShell, {
|
|
97
|
+
activeTab: "phone",
|
|
98
|
+
logoUri: logoUri,
|
|
99
|
+
onEmailPress: onLoginWithEmail,
|
|
100
|
+
onSignup: onSignup,
|
|
101
|
+
title: title,
|
|
102
|
+
description: description,
|
|
103
|
+
bottomTitle: bottomTitle,
|
|
104
|
+
theme: overrideTheme,
|
|
105
|
+
children: /*#__PURE__*/_jsxs(View, {
|
|
106
|
+
style: [styles.form, formStyle],
|
|
107
|
+
children: [/*#__PURE__*/_jsx(Controller, {
|
|
108
|
+
control: control,
|
|
109
|
+
name: "phone",
|
|
110
|
+
rules: {
|
|
111
|
+
validate: value => value?.fullNumber?.length >= 10 ? true : 'Please enter a valid phone number'
|
|
112
|
+
},
|
|
113
|
+
render: ({
|
|
114
|
+
field: {
|
|
115
|
+
onChange,
|
|
116
|
+
value
|
|
117
|
+
}
|
|
118
|
+
}) => /*#__PURE__*/_jsx(PhoneNumberInputOne, {
|
|
119
|
+
value: value.formattedNumber,
|
|
120
|
+
onChangeText: onChange,
|
|
121
|
+
disabled: isDisabled,
|
|
122
|
+
error: !!errors.phone,
|
|
123
|
+
errorMessage: errors.phone?.message,
|
|
124
|
+
inputStyle: inputStyle,
|
|
125
|
+
containerStyle: inputContainerStyle,
|
|
126
|
+
theme: overrideTheme
|
|
127
|
+
})
|
|
128
|
+
}), /*#__PURE__*/_jsx(Button.Primary, {
|
|
129
|
+
title: "Login",
|
|
130
|
+
disabled: !isValid || isDisabled,
|
|
131
|
+
loading: isDisabled,
|
|
132
|
+
onPress: handleSubmit(handleFormSubmit),
|
|
133
|
+
theme: overrideTheme
|
|
134
|
+
})]
|
|
135
|
+
})
|
|
136
|
+
})
|
|
137
|
+
})
|
|
138
|
+
})
|
|
139
|
+
})
|
|
140
|
+
});
|
|
141
|
+
};
|
|
142
|
+
export default /*#__PURE__*/memo(LoginWithPhone);
|
|
143
|
+
//# sourceMappingURL=LoginWithPhone.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","memo","useCallback","useMemo","StyleSheet","View","KeyboardAvoidingView","Platform","useForm","Controller","scale","verticalScale","HideKeyboard","Button","PhoneNumberInputOne","AuthLoginShell","useInternalTheme","BackgroundLayoutOne","jsx","_jsx","jsxs","_jsxs","LoginWithPhone","title","description","bottomTitle","onSubmit","onLoginWithEmail","onSignup","containerStyle","formStyle","inputStyle","inputContainerStyle","loadingSubmitBtn","logoUri","theme","overrideTheme","isLoading","setIsLoading","useState","control","handleSubmit","formState","errors","isValid","defaultValues","phone","fullNumber","countryCode","formattedNumber","mode","handleFormSubmit","data","isDisabled","styles","create","container","flex","width","paddingHorizontal","justifyContent","alignItems","form","gap","children","style","behavior","OS","undefined","keyboardVerticalOffset","activeTab","onEmailPress","name","rules","validate","value","length","render","field","onChange","onChangeText","disabled","error","errorMessage","message","Primary","loading","onPress"],"sourceRoot":"../../../../../../src","sources":["components/Auth/Two/Login/LoginWithPhone.tsx"],"mappings":";;AAAA;AACA;AACA;AACA;;AAEA,OAAOA,KAAK,IAAIC,IAAI,EAAEC,WAAW,EAAEC,OAAO,QAAQ,OAAO;AACzD,SACEC,UAAU,EACVC,IAAI,EAGJC,oBAAoB,EACpBC,QAAQ,QACH,cAAc;AACrB,SAASC,OAAO,EAAEC,UAAU,QAAQ,iBAAiB;AACrD,SAASC,KAAK,EAAEC,aAAa,QAAQ,2BAA2B;AAChE,OAAOC,YAAY,MAAM,mCAAgC;AACzD,SAASC,MAAM,QAAQ,0BAAiB;AACxC,OAAOC,mBAAm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