@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,295 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* @author Ashok Desai
|
|
5
|
+
* @lastModified oct 02 Oct 2025 at 10:30 AM
|
|
6
|
+
*/
|
|
7
|
+
import React, { useEffect, useRef, useMemo, useCallback } from 'react';
|
|
8
|
+
import { View, StyleSheet, Animated, Easing, Dimensions, Platform } from 'react-native';
|
|
9
|
+
import { scale } from 'react-native-size-matters';
|
|
10
|
+
import { useInternalTheme } from "../../../../../theme/hook/useInternalTheme.js";
|
|
11
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
12
|
+
const {
|
|
13
|
+
width: SCREEN_W,
|
|
14
|
+
height: SCREEN_H
|
|
15
|
+
} = Dimensions.get('window');
|
|
16
|
+
|
|
17
|
+
// ==================== Constants ====================
|
|
18
|
+
const ANIMATION_DURATION = 2000;
|
|
19
|
+
const CORNER_SIZE = 18;
|
|
20
|
+
const CORNER_BORDER_WIDTH = 3;
|
|
21
|
+
const SCAN_LINE_HEIGHT = 3;
|
|
22
|
+
const SCAN_LINE_MARGIN = 12;
|
|
23
|
+
const BOX_WIDTH_RATIO = 0.7;
|
|
24
|
+
const BOX_SIZE_RATIO = 0.9;
|
|
25
|
+
const MAX_BOX_WIDTH = 320;
|
|
26
|
+
const VERTICAL_OFFSET = 40;
|
|
27
|
+
const DEFAULT_OVERLAY_COLOR = 'rgba(0, 0, 0, 0.6)';
|
|
28
|
+
const DEFAULT_SHADOW_COLOR = '#000';
|
|
29
|
+
|
|
30
|
+
// ==================== Types ====================
|
|
31
|
+
|
|
32
|
+
// ==================== Helper Functions ====================
|
|
33
|
+
/**
|
|
34
|
+
* Calculates the scan box dimensions and overlay positions
|
|
35
|
+
*/
|
|
36
|
+
const calculateBoxDimensions = (scanBoxWidth, headerHeight) => {
|
|
37
|
+
const defaultBoxW = scanBoxWidth || Math.min(SCREEN_W * BOX_WIDTH_RATIO, MAX_BOX_WIDTH);
|
|
38
|
+
const boxW = defaultBoxW * BOX_SIZE_RATIO;
|
|
39
|
+
const boxH = boxW;
|
|
40
|
+
const availableHeight = SCREEN_H - headerHeight;
|
|
41
|
+
const boxTop = Math.max(headerHeight, Math.floor(headerHeight + (availableHeight - boxH) / 2 - scale(VERTICAL_OFFSET)));
|
|
42
|
+
const topOverlayHeight = Math.max(0, Math.floor(boxTop - headerHeight));
|
|
43
|
+
const bottomOverlayHeight = Math.max(0, Math.floor(SCREEN_H - (boxTop + boxH)));
|
|
44
|
+
const leftOverlayWidth = Math.floor((SCREEN_W - boxW) / 2);
|
|
45
|
+
const scanBoxRight = leftOverlayWidth + boxW;
|
|
46
|
+
const rightOverlayWidth = Math.max(0, SCREEN_W - scanBoxRight);
|
|
47
|
+
return {
|
|
48
|
+
boxW,
|
|
49
|
+
boxH,
|
|
50
|
+
boxTop,
|
|
51
|
+
topOverlayHeight,
|
|
52
|
+
bottomOverlayHeight,
|
|
53
|
+
sideOverlayWidth: leftOverlayWidth,
|
|
54
|
+
rightOverlayWidth
|
|
55
|
+
};
|
|
56
|
+
};
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* Creates overlay style for a specific position
|
|
60
|
+
*/
|
|
61
|
+
const createOverlayStyle = (position, dimensions, headerHeight, overlayColor) => {
|
|
62
|
+
const baseStyleKey = `overlay${position.charAt(0).toUpperCase() + position.slice(1)}`;
|
|
63
|
+
const baseStyle = styles[baseStyleKey] || styles.overlaySide;
|
|
64
|
+
switch (position) {
|
|
65
|
+
case 'top':
|
|
66
|
+
return [baseStyle, {
|
|
67
|
+
top: headerHeight,
|
|
68
|
+
height: Math.max(0, dimensions.topOverlayHeight),
|
|
69
|
+
backgroundColor: overlayColor
|
|
70
|
+
}];
|
|
71
|
+
case 'bottom':
|
|
72
|
+
return [baseStyle, {
|
|
73
|
+
top: dimensions.boxTop + dimensions.boxH,
|
|
74
|
+
height: Math.max(0, dimensions.bottomOverlayHeight),
|
|
75
|
+
backgroundColor: overlayColor
|
|
76
|
+
}];
|
|
77
|
+
case 'left':
|
|
78
|
+
return [baseStyle, {
|
|
79
|
+
left: 0,
|
|
80
|
+
top: dimensions.boxTop,
|
|
81
|
+
height: dimensions.boxH,
|
|
82
|
+
width: Math.max(0, dimensions.sideOverlayWidth),
|
|
83
|
+
backgroundColor: overlayColor
|
|
84
|
+
}];
|
|
85
|
+
case 'right':
|
|
86
|
+
return [baseStyle, {
|
|
87
|
+
right: 0,
|
|
88
|
+
top: dimensions.boxTop,
|
|
89
|
+
height: dimensions.boxH,
|
|
90
|
+
width: Math.max(0, dimensions.rightOverlayWidth),
|
|
91
|
+
backgroundColor: overlayColor
|
|
92
|
+
}];
|
|
93
|
+
default:
|
|
94
|
+
return [baseStyle];
|
|
95
|
+
}
|
|
96
|
+
};
|
|
97
|
+
|
|
98
|
+
/**
|
|
99
|
+
* Creates corner style based on position
|
|
100
|
+
*/
|
|
101
|
+
const createCornerStyle = (position, borderColor, cornerSize, cornerBorderWidth) => {
|
|
102
|
+
const baseStyle = [styles.corner, styles[`corner_${position}`]];
|
|
103
|
+
const dynamicStyle = {
|
|
104
|
+
borderColor,
|
|
105
|
+
width: cornerSize,
|
|
106
|
+
height: cornerSize,
|
|
107
|
+
borderTopWidth: position.startsWith('t') ? cornerBorderWidth : 0,
|
|
108
|
+
borderBottomWidth: position.startsWith('b') ? cornerBorderWidth : 0,
|
|
109
|
+
borderLeftWidth: position.endsWith('l') ? cornerBorderWidth : 0,
|
|
110
|
+
borderRightWidth: position.endsWith('r') ? cornerBorderWidth : 0
|
|
111
|
+
};
|
|
112
|
+
return [...baseStyle, dynamicStyle];
|
|
113
|
+
};
|
|
114
|
+
|
|
115
|
+
/**
|
|
116
|
+
* Creates animated scan line style
|
|
117
|
+
*/
|
|
118
|
+
const createScanLineStyle = (margin, scanLineHeight, borderColor, shadowColor, translateY) => ({
|
|
119
|
+
position: 'absolute',
|
|
120
|
+
top: margin,
|
|
121
|
+
left: margin,
|
|
122
|
+
right: margin,
|
|
123
|
+
height: scanLineHeight,
|
|
124
|
+
borderRadius: scanLineHeight / 2,
|
|
125
|
+
backgroundColor: borderColor,
|
|
126
|
+
transform: [{
|
|
127
|
+
translateY
|
|
128
|
+
}],
|
|
129
|
+
shadowColor,
|
|
130
|
+
shadowOffset: {
|
|
131
|
+
width: 0,
|
|
132
|
+
height: 2
|
|
133
|
+
},
|
|
134
|
+
shadowOpacity: 0.4,
|
|
135
|
+
shadowRadius: 4,
|
|
136
|
+
elevation: Platform.OS === 'android' ? 5 : 0
|
|
137
|
+
});
|
|
138
|
+
|
|
139
|
+
// ==================== Custom Hooks ====================
|
|
140
|
+
/**
|
|
141
|
+
* Hook to manage scan line animation
|
|
142
|
+
*/
|
|
143
|
+
const useScanLineAnimation = lineTravel => {
|
|
144
|
+
const anim = useRef(new Animated.Value(0)).current;
|
|
145
|
+
useEffect(() => {
|
|
146
|
+
const animation = Animated.loop(Animated.sequence([Animated.timing(anim, {
|
|
147
|
+
toValue: 1,
|
|
148
|
+
duration: ANIMATION_DURATION,
|
|
149
|
+
easing: Easing.linear,
|
|
150
|
+
useNativeDriver: true
|
|
151
|
+
}), Animated.timing(anim, {
|
|
152
|
+
toValue: 0,
|
|
153
|
+
duration: ANIMATION_DURATION,
|
|
154
|
+
easing: Easing.linear,
|
|
155
|
+
useNativeDriver: true
|
|
156
|
+
})]));
|
|
157
|
+
animation.start();
|
|
158
|
+
return () => animation.stop();
|
|
159
|
+
}, [anim]);
|
|
160
|
+
const translateY = useMemo(() => anim.interpolate({
|
|
161
|
+
inputRange: [0, 1],
|
|
162
|
+
outputRange: [0, lineTravel]
|
|
163
|
+
}), [anim, lineTravel]);
|
|
164
|
+
return translateY;
|
|
165
|
+
};
|
|
166
|
+
|
|
167
|
+
// ==================== Component ====================
|
|
168
|
+
const QrViewArea = /*#__PURE__*/React.memo(({
|
|
169
|
+
scanBoxWidth,
|
|
170
|
+
headerHeight = 0,
|
|
171
|
+
theme
|
|
172
|
+
}) => {
|
|
173
|
+
const {
|
|
174
|
+
theme: appliedTheme
|
|
175
|
+
} = useInternalTheme(theme);
|
|
176
|
+
const {
|
|
177
|
+
colors
|
|
178
|
+
} = appliedTheme;
|
|
179
|
+
|
|
180
|
+
// Calculate dimensions
|
|
181
|
+
const boxDimensions = useMemo(() => calculateBoxDimensions(scanBoxWidth, headerHeight), [scanBoxWidth, headerHeight]);
|
|
182
|
+
|
|
183
|
+
// Calculate scan line properties
|
|
184
|
+
const margin = useMemo(() => scale(SCAN_LINE_MARGIN), []);
|
|
185
|
+
const lineTravel = useMemo(() => Math.max(0, boxDimensions.boxH - margin * 2 - scale(SCAN_LINE_HEIGHT)), [boxDimensions.boxH, margin]);
|
|
186
|
+
|
|
187
|
+
// Animation
|
|
188
|
+
const translateY = useScanLineAnimation(lineTravel);
|
|
189
|
+
|
|
190
|
+
// Theme colors
|
|
191
|
+
const overlayColor = colors.overlay || DEFAULT_OVERLAY_COLOR;
|
|
192
|
+
const shadowColor = colors.shadow || DEFAULT_SHADOW_COLOR;
|
|
193
|
+
|
|
194
|
+
// Corner properties
|
|
195
|
+
const cornerSize = useMemo(() => scale(CORNER_SIZE), []);
|
|
196
|
+
const cornerBorderWidth = useMemo(() => scale(CORNER_BORDER_WIDTH), []);
|
|
197
|
+
|
|
198
|
+
// Create overlay styles
|
|
199
|
+
const overlayStyles = useMemo(() => ({
|
|
200
|
+
top: createOverlayStyle('top', boxDimensions, headerHeight, overlayColor),
|
|
201
|
+
bottom: createOverlayStyle('bottom', boxDimensions, headerHeight, overlayColor),
|
|
202
|
+
left: createOverlayStyle('left', boxDimensions, headerHeight, overlayColor),
|
|
203
|
+
right: createOverlayStyle('right', boxDimensions, headerHeight, overlayColor)
|
|
204
|
+
}), [boxDimensions, headerHeight, overlayColor]);
|
|
205
|
+
|
|
206
|
+
// Scan box style
|
|
207
|
+
const scanBoxStyle = useMemo(() => [styles.scanBox, {
|
|
208
|
+
top: boxDimensions.boxTop,
|
|
209
|
+
left: boxDimensions.sideOverlayWidth,
|
|
210
|
+
width: boxDimensions.boxW,
|
|
211
|
+
height: boxDimensions.boxH
|
|
212
|
+
}], [boxDimensions]);
|
|
213
|
+
|
|
214
|
+
// Corner style generator
|
|
215
|
+
const getCornerStyle = useCallback(position => createCornerStyle(position, colors.button, cornerSize, cornerBorderWidth), [colors.button, cornerSize, cornerBorderWidth]);
|
|
216
|
+
|
|
217
|
+
// Scan line style
|
|
218
|
+
const scanLineHeight = useMemo(() => scale(SCAN_LINE_HEIGHT), []);
|
|
219
|
+
const scanLineStyle = useMemo(() => createScanLineStyle(margin, scanLineHeight, colors.button, shadowColor, translateY), [margin, scanLineHeight, colors.button, shadowColor, translateY]);
|
|
220
|
+
|
|
221
|
+
// Corner positions
|
|
222
|
+
const cornerPositions = ['tl', 'tr', 'bl', 'br'];
|
|
223
|
+
return /*#__PURE__*/_jsxs(View, {
|
|
224
|
+
style: styles.container,
|
|
225
|
+
pointerEvents: "box-none",
|
|
226
|
+
children: [/*#__PURE__*/_jsx(View, {
|
|
227
|
+
style: overlayStyles.top
|
|
228
|
+
}), /*#__PURE__*/_jsx(View, {
|
|
229
|
+
style: overlayStyles.bottom
|
|
230
|
+
}), /*#__PURE__*/_jsx(View, {
|
|
231
|
+
style: overlayStyles.left
|
|
232
|
+
}), /*#__PURE__*/_jsx(View, {
|
|
233
|
+
style: overlayStyles.right
|
|
234
|
+
}), /*#__PURE__*/_jsxs(View, {
|
|
235
|
+
style: scanBoxStyle,
|
|
236
|
+
pointerEvents: "none",
|
|
237
|
+
children: [cornerPositions.map(position => /*#__PURE__*/_jsx(View, {
|
|
238
|
+
style: getCornerStyle(position)
|
|
239
|
+
}, position)), /*#__PURE__*/_jsx(Animated.View, {
|
|
240
|
+
style: scanLineStyle
|
|
241
|
+
})]
|
|
242
|
+
})]
|
|
243
|
+
});
|
|
244
|
+
});
|
|
245
|
+
const styles = StyleSheet.create({
|
|
246
|
+
container: {
|
|
247
|
+
...StyleSheet.absoluteFillObject,
|
|
248
|
+
zIndex: 10
|
|
249
|
+
},
|
|
250
|
+
overlayTop: {
|
|
251
|
+
position: 'absolute',
|
|
252
|
+
left: 0,
|
|
253
|
+
right: 0,
|
|
254
|
+
zIndex: 1
|
|
255
|
+
},
|
|
256
|
+
overlayBottom: {
|
|
257
|
+
position: 'absolute',
|
|
258
|
+
left: 0,
|
|
259
|
+
right: 0,
|
|
260
|
+
zIndex: 1
|
|
261
|
+
},
|
|
262
|
+
overlaySide: {
|
|
263
|
+
position: 'absolute',
|
|
264
|
+
zIndex: 1
|
|
265
|
+
},
|
|
266
|
+
scanBox: {
|
|
267
|
+
position: 'absolute',
|
|
268
|
+
justifyContent: 'center',
|
|
269
|
+
alignItems: 'center',
|
|
270
|
+
overflow: 'hidden',
|
|
271
|
+
zIndex: 2
|
|
272
|
+
},
|
|
273
|
+
corner: {
|
|
274
|
+
position: 'absolute',
|
|
275
|
+
zIndex: 3
|
|
276
|
+
},
|
|
277
|
+
corner_tl: {
|
|
278
|
+
top: 0,
|
|
279
|
+
left: 0
|
|
280
|
+
},
|
|
281
|
+
corner_tr: {
|
|
282
|
+
top: 0,
|
|
283
|
+
right: 0
|
|
284
|
+
},
|
|
285
|
+
corner_bl: {
|
|
286
|
+
bottom: 0,
|
|
287
|
+
left: 0
|
|
288
|
+
},
|
|
289
|
+
corner_br: {
|
|
290
|
+
bottom: 0,
|
|
291
|
+
right: 0
|
|
292
|
+
}
|
|
293
|
+
});
|
|
294
|
+
export default QrViewArea;
|
|
295
|
+
//# sourceMappingURL=QrViewArea.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","useEffect","useRef","useMemo","useCallback","View","StyleSheet","Animated","Easing","Dimensions","Platform","scale","useInternalTheme","jsx","_jsx","jsxs","_jsxs","width","SCREEN_W","height","SCREEN_H","get","ANIMATION_DURATION","CORNER_SIZE","CORNER_BORDER_WIDTH","SCAN_LINE_HEIGHT","SCAN_LINE_MARGIN","BOX_WIDTH_RATIO","BOX_SIZE_RATIO","MAX_BOX_WIDTH","VERTICAL_OFFSET","DEFAULT_OVERLAY_COLOR","DEFAULT_SHADOW_COLOR","calculateBoxDimensions","scanBoxWidth","headerHeight","defaultBoxW","Math","min","boxW","boxH","availableHeight","boxTop","max","floor","topOverlayHeight","bottomOverlayHeight","leftOverlayWidth","scanBoxRight","rightOverlayWidth","sideOverlayWidth","createOverlayStyle","position","dimensions","overlayColor","baseStyleKey","charAt","toUpperCase","slice","baseStyle","styles","overlaySide","top","backgroundColor","left","right","createCornerStyle","borderColor","cornerSize","cornerBorderWidth","corner","dynamicStyle","borderTopWidth","startsWith","borderBottomWidth","borderLeftWidth","endsWith","borderRightWidth","createScanLineStyle","margin","scanLineHeight","shadowColor","translateY","borderRadius","transform","shadowOffset","shadowOpacity","shadowRadius","elevation","OS","useScanLineAnimation","lineTravel","anim","Value","current","animation","loop","sequence","timing","toValue","duration","easing","linear","useNativeDriver","start","stop","interpolate","inputRange","outputRange","QrViewArea","memo","theme","appliedTheme","colors","boxDimensions","overlay","shadow","overlayStyles","bottom","scanBoxStyle","scanBox","getCornerStyle","button","scanLineStyle","cornerPositions","style","container","pointerEvents","children","map","create","absoluteFillObject","zIndex","overlayTop","overlayBottom","justifyContent","alignItems","overflow","corner_tl","corner_tr","corner_bl","corner_br"],"sourceRoot":"../../../../../../../src","sources":["components/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EACR,CAAC;EACD2E,SAAS,EAAE;IACT7E,GAAG,EAAE,CAAC;IACNG,KAAK,EAAE;EACT,CAAC;EACD2E,SAAS,EAAE;IACTtB,MAAM,EAAE,CAAC;IACTtD,IAAI,EAAE;EACR,CAAC;EACD6E,SAAS,EAAE;IACTvB,MAAM,EAAE,CAAC;IACTrD,KAAK,EAAE;EACT;AACF,CAAC,CAAC;AAEF,eAAe4C,UAAU","ignoreList":[]}
|
|
@@ -0,0 +1,379 @@
|
|
|
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, KeyboardAvoidingView, Platform } 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 TextButton from "../../../Button/TextButton.js";
|
|
14
|
+
import { useInternalTheme } from "../../../../theme/hook/useInternalTheme.js";
|
|
15
|
+
import { useKeyboard } from "../../../../hooks/useKeyboard.js";
|
|
16
|
+
import HideKeyboard from "../../../Keyboard/HideKeyboard.js";
|
|
17
|
+
import { Text } from "../../../Text/index.js";
|
|
18
|
+
import { RFValue } from 'react-native-responsive-fontsize';
|
|
19
|
+
import { Lock, Mail, UserIcon } from 'lucide-react-native';
|
|
20
|
+
import BackgroundLayoutOne from "../../../BackgroundLayout/BackgroundLayoutOne.js";
|
|
21
|
+
import AuthHeader from "../AuthHeader/AuthHeader.js";
|
|
22
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
23
|
+
const Signup = /*#__PURE__*/React.memo(({
|
|
24
|
+
title = 'Sign Up',
|
|
25
|
+
subTitle = 'Enter your details to register.',
|
|
26
|
+
onSubmit,
|
|
27
|
+
onLogin,
|
|
28
|
+
containerStyle,
|
|
29
|
+
titleStyle,
|
|
30
|
+
subtitleStyle,
|
|
31
|
+
formStyle,
|
|
32
|
+
inputStyle,
|
|
33
|
+
inputContainerStyle,
|
|
34
|
+
minPasswordLength = 6,
|
|
35
|
+
loadingSubmitBtn,
|
|
36
|
+
// backgroundImage,
|
|
37
|
+
logoUri,
|
|
38
|
+
theme: overrideTheme,
|
|
39
|
+
text,
|
|
40
|
+
loginTextProps,
|
|
41
|
+
loginLinkTextProps,
|
|
42
|
+
renderSingUpHeader,
|
|
43
|
+
renderLoginPrompt,
|
|
44
|
+
renderSubmitButton
|
|
45
|
+
}) => {
|
|
46
|
+
const {
|
|
47
|
+
control,
|
|
48
|
+
handleSubmit,
|
|
49
|
+
formState: {
|
|
50
|
+
errors,
|
|
51
|
+
isValid,
|
|
52
|
+
touchedFields
|
|
53
|
+
},
|
|
54
|
+
getValues
|
|
55
|
+
} = useForm({
|
|
56
|
+
defaultValues: {
|
|
57
|
+
username: '',
|
|
58
|
+
email: '',
|
|
59
|
+
password: '',
|
|
60
|
+
confirmPassword: ''
|
|
61
|
+
},
|
|
62
|
+
mode: 'onChange'
|
|
63
|
+
});
|
|
64
|
+
const {
|
|
65
|
+
theme: resolvedTheme
|
|
66
|
+
} = useInternalTheme(overrideTheme);
|
|
67
|
+
const {
|
|
68
|
+
isKeyboardOpen
|
|
69
|
+
} = useKeyboard();
|
|
70
|
+
const [isLoading, setIsLoading] = React.useState(false);
|
|
71
|
+
const handleFormSubmit = useCallback(async data => {
|
|
72
|
+
if (!onSubmit) return;
|
|
73
|
+
setIsLoading(true);
|
|
74
|
+
try {
|
|
75
|
+
await onSubmit(data);
|
|
76
|
+
} catch (error) {
|
|
77
|
+
console.error('Form submission error:', error);
|
|
78
|
+
} finally {
|
|
79
|
+
setIsLoading(false);
|
|
80
|
+
}
|
|
81
|
+
}, [onSubmit]);
|
|
82
|
+
|
|
83
|
+
// Memoize gradient split background
|
|
84
|
+
// const gradientSplitBackground = useMemo(
|
|
85
|
+
// () => (isKeyboardOpen ? (Platform.OS === 'ios' ? 0.19 : 0.14) : 0.3),
|
|
86
|
+
// [isKeyboardOpen]
|
|
87
|
+
// );
|
|
88
|
+
|
|
89
|
+
// Memoize disabled state
|
|
90
|
+
const isDisabled = useMemo(() => loadingSubmitBtn || isLoading, [loadingSubmitBtn, isLoading]);
|
|
91
|
+
return /*#__PURE__*/_jsx(BackgroundLayoutOne, {
|
|
92
|
+
children: /*#__PURE__*/_jsxs(View, {
|
|
93
|
+
style: [styles.root, containerStyle],
|
|
94
|
+
children: [/*#__PURE__*/_jsx(HideKeyboard, {
|
|
95
|
+
keyboardVerticalOffset: 0,
|
|
96
|
+
children: /*#__PURE__*/_jsxs(KeyboardAvoidingView, {
|
|
97
|
+
style: styles.keyboardArea,
|
|
98
|
+
behavior: Platform.OS === 'ios' ? 'padding' : undefined,
|
|
99
|
+
keyboardVerticalOffset: Platform.OS === 'ios' ? verticalScale(40) : 0,
|
|
100
|
+
children: [/*#__PURE__*/_jsx(AuthHeader, {
|
|
101
|
+
logoUri: logoUri,
|
|
102
|
+
onLogoPress: () => {},
|
|
103
|
+
rightTitle: "Sign In",
|
|
104
|
+
onRightPress: () => {
|
|
105
|
+
Keyboard.dismiss();
|
|
106
|
+
requestAnimationFrame(() => onLogin?.());
|
|
107
|
+
},
|
|
108
|
+
theme: overrideTheme
|
|
109
|
+
}), /*#__PURE__*/_jsxs(View, {
|
|
110
|
+
style: styles.centerContent,
|
|
111
|
+
children: [renderSingUpHeader ? renderSingUpHeader() : /*#__PURE__*/_jsxs(View, {
|
|
112
|
+
style: styles.headerTextContainer,
|
|
113
|
+
children: [/*#__PURE__*/_jsx(Text, {
|
|
114
|
+
style: [styles.title, titleStyle, {
|
|
115
|
+
color: resolvedTheme?.colors?.textPrimary
|
|
116
|
+
}],
|
|
117
|
+
children: title
|
|
118
|
+
}), /*#__PURE__*/_jsx(Text, {
|
|
119
|
+
style: [styles.subTitle, subtitleStyle, {
|
|
120
|
+
color: resolvedTheme?.colors?.textPrimary
|
|
121
|
+
}],
|
|
122
|
+
children: subTitle
|
|
123
|
+
})]
|
|
124
|
+
}), /*#__PURE__*/_jsxs(View, {
|
|
125
|
+
style: [styles.form, formStyle],
|
|
126
|
+
children: [/*#__PURE__*/_jsx(Controller, {
|
|
127
|
+
control: control,
|
|
128
|
+
name: "username",
|
|
129
|
+
rules: {
|
|
130
|
+
required: 'Username is required',
|
|
131
|
+
minLength: {
|
|
132
|
+
value: 3,
|
|
133
|
+
message: 'At least 3 characters'
|
|
134
|
+
}
|
|
135
|
+
},
|
|
136
|
+
render: ({
|
|
137
|
+
field: {
|
|
138
|
+
onChange,
|
|
139
|
+
onBlur,
|
|
140
|
+
value
|
|
141
|
+
}
|
|
142
|
+
}) => /*#__PURE__*/_jsx(Input.Three, {
|
|
143
|
+
placeholder: text?.usernamePlaceholder || 'Name',
|
|
144
|
+
label: text?.usernameLabel || 'Name',
|
|
145
|
+
value: value,
|
|
146
|
+
onChangeText: onChange,
|
|
147
|
+
onBlur: onBlur,
|
|
148
|
+
disabled: isDisabled,
|
|
149
|
+
error: !!touchedFields.username && !!errors.username,
|
|
150
|
+
errorMessage: errors.username?.message,
|
|
151
|
+
inputStyle: inputStyle,
|
|
152
|
+
containerStyle: inputContainerStyle,
|
|
153
|
+
theme: overrideTheme,
|
|
154
|
+
leftIcon: /*#__PURE__*/_jsx(UserIcon, {
|
|
155
|
+
size: 22
|
|
156
|
+
})
|
|
157
|
+
})
|
|
158
|
+
}), /*#__PURE__*/_jsx(Controller, {
|
|
159
|
+
control: control,
|
|
160
|
+
name: "email",
|
|
161
|
+
rules: {
|
|
162
|
+
required: 'Email is required',
|
|
163
|
+
pattern: {
|
|
164
|
+
value: /^\S+@\S+\.\S+$/,
|
|
165
|
+
message: 'Enter a valid email address'
|
|
166
|
+
}
|
|
167
|
+
},
|
|
168
|
+
render: ({
|
|
169
|
+
field: {
|
|
170
|
+
onChange,
|
|
171
|
+
onBlur,
|
|
172
|
+
value
|
|
173
|
+
}
|
|
174
|
+
}) => /*#__PURE__*/_jsx(Input.Three, {
|
|
175
|
+
placeholder: text?.emailPlaceholder || 'Email',
|
|
176
|
+
label: text?.emailLabel || 'Email',
|
|
177
|
+
value: value,
|
|
178
|
+
onChangeText: inputText => {
|
|
179
|
+
const sanitized = inputText.replace(/[^\w@.\-+]/g, '');
|
|
180
|
+
onChange(sanitized);
|
|
181
|
+
},
|
|
182
|
+
onBlur: onBlur,
|
|
183
|
+
disabled: isDisabled,
|
|
184
|
+
error: !!touchedFields.email && !!errors.email,
|
|
185
|
+
errorMessage: errors.email?.message,
|
|
186
|
+
inputStyle: inputStyle,
|
|
187
|
+
containerStyle: inputContainerStyle,
|
|
188
|
+
theme: overrideTheme,
|
|
189
|
+
textContentType: "emailAddress",
|
|
190
|
+
autoCapitalize: "none",
|
|
191
|
+
keyboardType: "email-address",
|
|
192
|
+
autoCorrect: false,
|
|
193
|
+
leftIcon: /*#__PURE__*/_jsx(Mail, {
|
|
194
|
+
size: 22
|
|
195
|
+
})
|
|
196
|
+
})
|
|
197
|
+
}), /*#__PURE__*/_jsx(Controller, {
|
|
198
|
+
control: control,
|
|
199
|
+
name: "password",
|
|
200
|
+
rules: {
|
|
201
|
+
required: 'Password is required',
|
|
202
|
+
minLength: {
|
|
203
|
+
value: minPasswordLength,
|
|
204
|
+
message: `Minimum ${minPasswordLength} characters`
|
|
205
|
+
}
|
|
206
|
+
},
|
|
207
|
+
render: ({
|
|
208
|
+
field: {
|
|
209
|
+
onChange,
|
|
210
|
+
onBlur,
|
|
211
|
+
value
|
|
212
|
+
}
|
|
213
|
+
}) => /*#__PURE__*/_jsx(Input.Three, {
|
|
214
|
+
placeholder: text?.passwordPlaceholder || 'Password',
|
|
215
|
+
label: text?.passwordLabel || 'Password',
|
|
216
|
+
value: value,
|
|
217
|
+
secureTextEntry: true,
|
|
218
|
+
onChangeText: inputText => {
|
|
219
|
+
const sanitized = inputText.replace(/[^\w@.\-+]/g, '');
|
|
220
|
+
onChange(sanitized);
|
|
221
|
+
},
|
|
222
|
+
onBlur: onBlur,
|
|
223
|
+
disabled: isDisabled,
|
|
224
|
+
inputStyle: inputStyle,
|
|
225
|
+
error: !!touchedFields.password && !!errors.password,
|
|
226
|
+
errorMessage: errors.password?.message,
|
|
227
|
+
containerStyle: inputContainerStyle,
|
|
228
|
+
textContentType: "none",
|
|
229
|
+
autoCapitalize: "none",
|
|
230
|
+
spellCheck: false,
|
|
231
|
+
autoCorrect: false,
|
|
232
|
+
autoComplete: "off",
|
|
233
|
+
theme: overrideTheme,
|
|
234
|
+
leftIcon: /*#__PURE__*/_jsx(Lock, {
|
|
235
|
+
size: 22
|
|
236
|
+
})
|
|
237
|
+
})
|
|
238
|
+
}), /*#__PURE__*/_jsx(Controller, {
|
|
239
|
+
control: control,
|
|
240
|
+
name: "confirmPassword",
|
|
241
|
+
rules: {
|
|
242
|
+
required: 'Confirm password is required',
|
|
243
|
+
validate: value => value === getValues('password') || 'Passwords do not match'
|
|
244
|
+
},
|
|
245
|
+
render: ({
|
|
246
|
+
field: {
|
|
247
|
+
onChange,
|
|
248
|
+
onBlur,
|
|
249
|
+
value
|
|
250
|
+
}
|
|
251
|
+
}) => /*#__PURE__*/_jsx(Input.Three, {
|
|
252
|
+
placeholder: text?.confirmPasswordPlaceholder || 'Confirm Password',
|
|
253
|
+
label: text?.confirmPasswordLabel || 'Confirm Password',
|
|
254
|
+
value: value,
|
|
255
|
+
secureTextEntry: true,
|
|
256
|
+
onChangeText: inputText => {
|
|
257
|
+
const sanitized = inputText.replace(/[^\w@.\-+]/g, '');
|
|
258
|
+
onChange(sanitized);
|
|
259
|
+
},
|
|
260
|
+
onBlur: onBlur,
|
|
261
|
+
error: !!touchedFields.confirmPassword && !!errors.confirmPassword,
|
|
262
|
+
disabled: isDisabled,
|
|
263
|
+
errorMessage: errors.confirmPassword?.message,
|
|
264
|
+
inputStyle: inputStyle,
|
|
265
|
+
containerStyle: inputContainerStyle,
|
|
266
|
+
theme: overrideTheme,
|
|
267
|
+
textContentType: "none",
|
|
268
|
+
autoCapitalize: "none",
|
|
269
|
+
spellCheck: false,
|
|
270
|
+
autoCorrect: false,
|
|
271
|
+
autoComplete: "off",
|
|
272
|
+
leftIcon: /*#__PURE__*/_jsx(Lock, {
|
|
273
|
+
size: 22
|
|
274
|
+
})
|
|
275
|
+
})
|
|
276
|
+
}), !isKeyboardOpen && (renderSubmitButton ? renderSubmitButton({
|
|
277
|
+
onPress: handleSubmit(handleFormSubmit),
|
|
278
|
+
disabled: !isValid || isDisabled,
|
|
279
|
+
loading: isDisabled
|
|
280
|
+
}) : /*#__PURE__*/_jsx(Button.Primary, {
|
|
281
|
+
title: text?.signupButton || 'Sign up',
|
|
282
|
+
loadingText: text?.loadingSubmitBtnText || 'Signing up...',
|
|
283
|
+
disabled: !isValid || isDisabled,
|
|
284
|
+
loading: isDisabled,
|
|
285
|
+
theme: overrideTheme,
|
|
286
|
+
onPress: handleSubmit(handleFormSubmit)
|
|
287
|
+
}))]
|
|
288
|
+
})]
|
|
289
|
+
})]
|
|
290
|
+
})
|
|
291
|
+
}), (renderLoginPrompt || onLogin) && /*#__PURE__*/_jsx(View, {
|
|
292
|
+
style: styles.bottomFixed,
|
|
293
|
+
children: renderLoginPrompt ? renderLoginPrompt() : /*#__PURE__*/_jsxs(View, {
|
|
294
|
+
style: styles.loginRow,
|
|
295
|
+
children: [/*#__PURE__*/_jsx(Text, {
|
|
296
|
+
style: [styles.loginPrompt, loginTextProps],
|
|
297
|
+
children: text?.loginPrompt || 'Already have an account?'
|
|
298
|
+
}), /*#__PURE__*/_jsx(TextButton, {
|
|
299
|
+
title: text?.loginLink || 'Login',
|
|
300
|
+
bold: true,
|
|
301
|
+
style: loginLinkTextProps,
|
|
302
|
+
onPress: () => {
|
|
303
|
+
Keyboard.dismiss();
|
|
304
|
+
requestAnimationFrame(() => onLogin?.());
|
|
305
|
+
}
|
|
306
|
+
})]
|
|
307
|
+
})
|
|
308
|
+
})]
|
|
309
|
+
})
|
|
310
|
+
});
|
|
311
|
+
});
|
|
312
|
+
export default Signup;
|
|
313
|
+
const styles = StyleSheet.create({
|
|
314
|
+
container: {
|
|
315
|
+
flex: 1,
|
|
316
|
+
width: '100%',
|
|
317
|
+
justifyContent: 'center',
|
|
318
|
+
alignItems: 'center'
|
|
319
|
+
},
|
|
320
|
+
centerContent: {
|
|
321
|
+
flex: 1,
|
|
322
|
+
width: '100%',
|
|
323
|
+
alignItems: 'center',
|
|
324
|
+
justifyContent: 'flex-start',
|
|
325
|
+
paddingTop: Platform.OS === 'ios' ? verticalScale(70) : verticalScale(50)
|
|
326
|
+
},
|
|
327
|
+
root: {
|
|
328
|
+
flex: 1,
|
|
329
|
+
width: '100%',
|
|
330
|
+
position: 'relative'
|
|
331
|
+
},
|
|
332
|
+
keyboardArea: {
|
|
333
|
+
flex: 1,
|
|
334
|
+
width: '100%',
|
|
335
|
+
paddingHorizontal: scale(16)
|
|
336
|
+
},
|
|
337
|
+
headerTextContainer: {
|
|
338
|
+
width: '100%',
|
|
339
|
+
alignItems: 'center',
|
|
340
|
+
marginBottom: verticalScale(70)
|
|
341
|
+
},
|
|
342
|
+
title: {
|
|
343
|
+
fontSize: RFValue(21),
|
|
344
|
+
fontWeight: '700',
|
|
345
|
+
marginTop: verticalScale(4),
|
|
346
|
+
marginBottom: verticalScale(10)
|
|
347
|
+
},
|
|
348
|
+
subTitle: {
|
|
349
|
+
fontSize: RFValue(13),
|
|
350
|
+
opacity: 0.7,
|
|
351
|
+
textAlign: 'center'
|
|
352
|
+
},
|
|
353
|
+
form: {
|
|
354
|
+
width: '100%',
|
|
355
|
+
gap: verticalScale(6)
|
|
356
|
+
},
|
|
357
|
+
bottomFixed: {
|
|
358
|
+
position: 'absolute',
|
|
359
|
+
bottom: verticalScale(40),
|
|
360
|
+
left: 0,
|
|
361
|
+
right: 0,
|
|
362
|
+
alignItems: 'center',
|
|
363
|
+
zIndex: 999
|
|
364
|
+
},
|
|
365
|
+
loginRow: {
|
|
366
|
+
flexDirection: 'row',
|
|
367
|
+
alignItems: 'center',
|
|
368
|
+
justifyContent: 'center',
|
|
369
|
+
flexWrap: 'wrap'
|
|
370
|
+
},
|
|
371
|
+
loginPrompt: {
|
|
372
|
+
textAlign: 'center',
|
|
373
|
+
marginRight: 4
|
|
374
|
+
},
|
|
375
|
+
loginContainer: {
|
|
376
|
+
alignItems: 'center'
|
|
377
|
+
}
|
|
378
|
+
});
|
|
379
|
+
//# sourceMappingURL=SignUp.js.map
|