@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
|
@@ -5,65 +5,83 @@
|
|
|
5
5
|
* @lastModified Fri 17 Oct 2025 at 09:55 PM
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
import { useEffect, useState } from 'react';
|
|
8
|
+
import { useEffect, useRef, useState } from 'react';
|
|
9
9
|
import RNFS from 'react-native-fs';
|
|
10
10
|
import CryptoJS from 'crypto-js';
|
|
11
11
|
import { MMKV } from 'react-native-mmkv';
|
|
12
|
+
import NetInfo from '@react-native-community/netinfo';
|
|
12
13
|
import { useSplashStore } from "../store/splashStore.js";
|
|
13
|
-
const
|
|
14
|
-
const
|
|
15
|
-
const
|
|
16
|
-
const
|
|
14
|
+
const mmkvStorage = new MMKV();
|
|
15
|
+
const activeDownloadTasks = new Map();
|
|
16
|
+
const DEFAULT_EXTENSION = 'bin';
|
|
17
|
+
const CACHE_FILE_PREFIX = 'splash_';
|
|
18
|
+
const isNetworkOnline = async () => {
|
|
19
|
+
const state = await NetInfo.fetch();
|
|
20
|
+
return !!state.isConnected;
|
|
21
|
+
};
|
|
22
|
+
const getUrlExtension = url => {
|
|
17
23
|
try {
|
|
24
|
+
if (!url || typeof url !== 'string') return DEFAULT_EXTENSION;
|
|
18
25
|
const cleanUrl = url.split('?')[0];
|
|
19
|
-
const
|
|
20
|
-
|
|
26
|
+
const dot = cleanUrl?.lastIndexOf('.') ?? -1;
|
|
27
|
+
if (dot === -1) return DEFAULT_EXTENSION;
|
|
28
|
+
const ext = cleanUrl?.substring(dot + 1).toLowerCase() ?? DEFAULT_EXTENSION;
|
|
29
|
+
if (!/^[a-z0-9]+$/i.test(ext)) return DEFAULT_EXTENSION;
|
|
30
|
+
return ext;
|
|
21
31
|
} catch {
|
|
22
|
-
return
|
|
32
|
+
return DEFAULT_EXTENSION;
|
|
23
33
|
}
|
|
24
34
|
};
|
|
25
|
-
const
|
|
26
|
-
|
|
27
|
-
const ext = extension.replace(/^\./, '') || 'png';
|
|
35
|
+
const buildCachePath = (url, cacheKey, extension) => {
|
|
36
|
+
const ext = extension.replace(/^\./, '') || DEFAULT_EXTENSION;
|
|
28
37
|
const hash = CryptoJS.MD5(`${url}|${cacheKey}|${ext}`).toString();
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
38
|
+
return `${RNFS.CachesDirectoryPath}/${CACHE_FILE_PREFIX}${hash}.${ext}`;
|
|
39
|
+
};
|
|
40
|
+
const downloadAndCacheFile = async (url, extension, cacheKey, force) => {
|
|
41
|
+
if (!url?.trim()) return null;
|
|
42
|
+
const localFile = buildCachePath(url, cacheKey, extension);
|
|
43
|
+
if (activeDownloadTasks.has(localFile)) {
|
|
44
|
+
return activeDownloadTasks.get(localFile);
|
|
32
45
|
}
|
|
33
46
|
const task = (async () => {
|
|
47
|
+
let oldFile = null;
|
|
34
48
|
try {
|
|
35
|
-
const
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
if (await RNFS.exists(oldFile)) {
|
|
39
|
-
await RNFS.unlink(oldFile).catch(() => {});
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
if (!force) {
|
|
49
|
+
const savedPath = mmkvStorage.getString(cacheKey);
|
|
50
|
+
oldFile = savedPath && savedPath !== localFile ? savedPath : null;
|
|
51
|
+
if (!force && savedPath === localFile) {
|
|
43
52
|
const exists = await RNFS.exists(localFile);
|
|
44
|
-
if (exists
|
|
45
|
-
|
|
46
|
-
|
|
53
|
+
if (exists) return localFile;
|
|
54
|
+
}
|
|
55
|
+
if (!(await isNetworkOnline())) {
|
|
56
|
+
return oldFile && (await RNFS.exists(oldFile)) ? oldFile : null;
|
|
47
57
|
}
|
|
48
|
-
const {
|
|
49
|
-
statusCode
|
|
50
|
-
} = await RNFS.downloadFile({
|
|
58
|
+
const result = await RNFS.downloadFile({
|
|
51
59
|
fromUrl: url,
|
|
52
60
|
toFile: localFile,
|
|
53
61
|
cacheable: true,
|
|
54
62
|
readTimeout: 15000,
|
|
55
63
|
connectionTimeout: 10000
|
|
56
|
-
}).promise;
|
|
57
|
-
if (statusCode
|
|
58
|
-
|
|
59
|
-
|
|
64
|
+
}).promise.catch(() => null);
|
|
65
|
+
if (!result || result.statusCode !== 200) {
|
|
66
|
+
const code = result?.statusCode ?? 'unknown';
|
|
67
|
+
throw new Error(`RNFS download failed (status: ${code})`);
|
|
60
68
|
}
|
|
61
|
-
|
|
62
|
-
|
|
69
|
+
mmkvStorage.set(cacheKey, localFile);
|
|
70
|
+
if (oldFile && (await RNFS.exists(oldFile))) {
|
|
71
|
+
await RNFS.unlink(oldFile).catch(() => {});
|
|
72
|
+
}
|
|
73
|
+
return localFile;
|
|
74
|
+
} catch (err) {
|
|
75
|
+
console.warn('[SplashCache] download failed:', url, err);
|
|
76
|
+
}
|
|
77
|
+
if (oldFile && (await RNFS.exists(oldFile))) {
|
|
78
|
+
return oldFile;
|
|
63
79
|
}
|
|
64
80
|
return null;
|
|
65
|
-
})()
|
|
66
|
-
|
|
81
|
+
})().finally(() => {
|
|
82
|
+
activeDownloadTasks.delete(localFile);
|
|
83
|
+
});
|
|
84
|
+
activeDownloadTasks.set(localFile, task);
|
|
67
85
|
return task;
|
|
68
86
|
};
|
|
69
87
|
export const useSplashCache = ({
|
|
@@ -71,47 +89,47 @@ export const useSplashCache = ({
|
|
|
71
89
|
backgroundUrl,
|
|
72
90
|
forceDownload = false
|
|
73
91
|
}) => {
|
|
74
|
-
const [
|
|
92
|
+
const [loadState, setLoadState] = useState({
|
|
75
93
|
isReady: false,
|
|
76
94
|
error: null
|
|
77
95
|
});
|
|
78
|
-
const
|
|
79
|
-
const
|
|
96
|
+
const setLogoPath = useSplashStore(s => s.setLogoPath);
|
|
97
|
+
const setBackdropPath = useSplashStore(s => s.setBackdropPath);
|
|
98
|
+
const isMountedRef = useRef(true);
|
|
80
99
|
useEffect(() => {
|
|
81
|
-
|
|
100
|
+
isMountedRef.current = true;
|
|
82
101
|
const syncAssets = async () => {
|
|
83
102
|
try {
|
|
84
|
-
const [
|
|
85
|
-
if (!
|
|
86
|
-
if (
|
|
87
|
-
if (
|
|
88
|
-
|
|
103
|
+
const [logoLocalPath, backdropLocalPath] = await Promise.all([logoUrl ? downloadAndCacheFile(logoUrl, getUrlExtension(logoUrl), 'splash_logo', forceDownload) : Promise.resolve(null), backgroundUrl ? downloadAndCacheFile(backgroundUrl, getUrlExtension(backgroundUrl), 'splash_background', forceDownload) : Promise.resolve(null)]);
|
|
104
|
+
if (!isMountedRef.current) return;
|
|
105
|
+
if (logoLocalPath) setLogoPath?.(logoLocalPath);
|
|
106
|
+
if (backdropLocalPath) setBackdropPath?.(backdropLocalPath);
|
|
107
|
+
setLoadState({
|
|
89
108
|
isReady: true,
|
|
90
109
|
error: null
|
|
91
110
|
});
|
|
92
111
|
} catch (err) {
|
|
93
|
-
if (
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
}
|
|
112
|
+
if (!isMountedRef.current) return;
|
|
113
|
+
const error = err instanceof Error ? err : new Error('Splash cache failed');
|
|
114
|
+
setLoadState({
|
|
115
|
+
isReady: true,
|
|
116
|
+
error
|
|
117
|
+
});
|
|
99
118
|
}
|
|
100
119
|
};
|
|
101
120
|
syncAssets();
|
|
102
121
|
return () => {
|
|
103
|
-
|
|
122
|
+
isMountedRef.current = false;
|
|
104
123
|
};
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
const
|
|
108
|
-
const bgPath = useSplashStore(s => s.backdrop.localPath);
|
|
124
|
+
}, [logoUrl, backgroundUrl, forceDownload, setLogoPath, setBackdropPath]);
|
|
125
|
+
const logoLocalPath = useSplashStore(s => s.logo.localPath);
|
|
126
|
+
const backdropLocalPath = useSplashStore(s => s.backdrop.localPath);
|
|
109
127
|
return {
|
|
110
|
-
state,
|
|
111
|
-
isLoading: !
|
|
128
|
+
state: loadState,
|
|
129
|
+
isLoading: !loadState.isReady,
|
|
112
130
|
data: {
|
|
113
|
-
logoPath,
|
|
114
|
-
backgroundPath:
|
|
131
|
+
logoPath: logoLocalPath,
|
|
132
|
+
backgroundPath: backdropLocalPath
|
|
115
133
|
}
|
|
116
134
|
};
|
|
117
135
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["useEffect","useState","RNFS","CryptoJS","MMKV","useSplashStore","
|
|
1
|
+
{"version":3,"names":["useEffect","useRef","useState","RNFS","CryptoJS","MMKV","NetInfo","useSplashStore","mmkvStorage","activeDownloadTasks","Map","DEFAULT_EXTENSION","CACHE_FILE_PREFIX","isNetworkOnline","state","fetch","isConnected","getUrlExtension","url","cleanUrl","split","dot","lastIndexOf","ext","substring","toLowerCase","test","buildCachePath","cacheKey","extension","replace","hash","MD5","toString","CachesDirectoryPath","downloadAndCacheFile","force","trim","localFile","has","get","task","oldFile","savedPath","getString","exists","result","downloadFile","fromUrl","toFile","cacheable","readTimeout","connectionTimeout","promise","catch","statusCode","code","Error","set","unlink","err","console","warn","finally","delete","useSplashCache","logoUrl","backgroundUrl","forceDownload","loadState","setLoadState","isReady","error","setLogoPath","s","setBackdropPath","isMountedRef","current","syncAssets","logoLocalPath","backdropLocalPath","Promise","all","resolve","logo","localPath","backdrop","isLoading","data","logoPath","backgroundPath"],"sourceRoot":"../../../src","sources":["hooks/useSplashCache.ts"],"mappings":";;AAAA;AACA;AACA;AACA;;AAEA,SAASA,SAAS,EAAEC,MAAM,EAAEC,QAAQ,QAAQ,OAAO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EAAE;QAC3B,MAAML,KAAK,GACTZ,GAAG,YAAYH,KAAK,GAAGG,GAAG,GAAG,IAAIH,KAAK,CAAC,qBAAqB,CAAC;QAC/Da,YAAY,CAAC;UAAEC,OAAO,EAAE,IAAI;UAAEC;QAAM,CAAC,CAAC;MACxC;IACF,CAAC;IAEDM,UAAU,CAAC,CAAC;IAEZ,OAAO,MAAM;MACXF,YAAY,CAACC,OAAO,GAAG,KAAK;IAC9B,CAAC;EACH,CAAC,EAAE,CAACX,OAAO,EAAEC,aAAa,EAAEC,aAAa,EAAEK,WAAW,EAAEE,eAAe,CAAC,CAAC;EAEzE,MAAMI,aAAa,GAAGxE,cAAc,CAAEmE,CAAC,IAAKA,CAAC,CAACU,IAAI,CAACC,SAAS,CAAC;EAC7D,MAAML,iBAAiB,GAAGzE,cAAc,CAAEmE,CAAC,IAAKA,CAAC,CAACY,QAAQ,CAACD,SAAS,CAAC;EAErE,OAAO;IACLvE,KAAK,EAAEuD,SAAS;IAChBkB,SAAS,EAAE,CAAClB,SAAS,CAACE,OAAO;IAC7BiB,IAAI,EAAE;MACJC,QAAQ,EAAEV,aAAa;MACvBW,cAAc,EAAEV;IAClB;EACF,CAAC;AACH,CAAC","ignoreList":[]}
|
|
@@ -5,12 +5,16 @@
|
|
|
5
5
|
* @lastModified Wed 22 Oct 2025 at 11:29 AM
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
import React, { createContext, useContext, useMemo } from 'react';
|
|
9
|
-
import
|
|
8
|
+
import React, { createContext, useContext, useEffect, useMemo } from 'react';
|
|
9
|
+
import 'react-native-gesture-handler';
|
|
10
|
+
import 'react-native-reanimated';
|
|
11
|
+
import { Platform, StyleSheet, View } from 'react-native';
|
|
10
12
|
import { SafeAreaProvider, initialWindowMetrics } from 'react-native-safe-area-context';
|
|
11
13
|
import { GestureHandlerRootView } from 'react-native-gesture-handler';
|
|
12
14
|
import { AppStatusBar } from "../components/common/AppStatusBar.js";
|
|
13
15
|
import { useInternalTheme } from "./hook/useInternalTheme.js";
|
|
16
|
+
import SystemNavigationBar from 'react-native-system-navigation-bar';
|
|
17
|
+
import Color from 'color';
|
|
14
18
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
15
19
|
const ThemeContext = /*#__PURE__*/createContext(null);
|
|
16
20
|
|
|
@@ -52,6 +56,14 @@ export const ZezoUIProvider = ({
|
|
|
52
56
|
flex: 1,
|
|
53
57
|
backgroundColor: finalTheme.colors.background
|
|
54
58
|
}), [finalTheme.colors.background]);
|
|
59
|
+
|
|
60
|
+
// Update system navigation bar (Android) with theme colors
|
|
61
|
+
useEffect(() => {
|
|
62
|
+
const isDarkBackground = Color(finalTheme.colors.background).isDark();
|
|
63
|
+
if (Platform.OS === 'android') {
|
|
64
|
+
SystemNavigationBar.setNavigationColor(isDarkBackground ? '#212121' : '#FFFFFF');
|
|
65
|
+
}
|
|
66
|
+
}, [finalTheme.colors.background]);
|
|
55
67
|
return /*#__PURE__*/_jsx(GestureHandlerRootView, {
|
|
56
68
|
style: styles.container,
|
|
57
69
|
children: /*#__PURE__*/_jsx(SafeAreaProvider, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","createContext","useContext","useMemo","StyleSheet","View","SafeAreaProvider","initialWindowMetrics","GestureHandlerRootView","AppStatusBar","useInternalTheme","jsx","_jsx","jsxs","_jsxs","ThemeContext","useTheme","ctx","Error","ZezoUIProvider","children","theme","overrideTheme","isDark","finalTheme","isDarkMode","setTheme","themeFull","contextValue","containerStyle","flex","backgroundColor","colors","background","style","styles","container","initialMetrics","Provider","value","create"],"sourceRoot":"../../../src","sources":["theme/ThemeProvider.tsx"],"mappings":";;AAAA;AACA;AACA;AACA;;AAEA,OAAOA,KAAK,IACVC,aAAa,EACbC,UAAU,EACVC,OAAO,QAEF,OAAO;AACd,SAASC,UAAU,EAAEC,IAAI,QAAQ,cAAc;
|
|
1
|
+
{"version":3,"names":["React","createContext","useContext","useEffect","useMemo","Platform","StyleSheet","View","SafeAreaProvider","initialWindowMetrics","GestureHandlerRootView","AppStatusBar","useInternalTheme","SystemNavigationBar","Color","jsx","_jsx","jsxs","_jsxs","ThemeContext","useTheme","ctx","Error","ZezoUIProvider","children","theme","overrideTheme","isDark","finalTheme","isDarkMode","setTheme","themeFull","contextValue","containerStyle","flex","backgroundColor","colors","background","isDarkBackground","OS","setNavigationColor","style","styles","container","initialMetrics","Provider","value","create"],"sourceRoot":"../../../src","sources":["theme/ThemeProvider.tsx"],"mappings":";;AAAA;AACA;AACA;AACA;;AAEA,OAAOA,KAAK,IACVC,aAAa,EACbC,UAAU,EACVC,SAAS,EACTC,OAAO,QAEF,OAAO;AACd,OAAO,8BAA8B;AACrC,OAAO,yBAAyB;AAChC,SAASC,QAAQ,EAAEC,UAAU,EAAEC,IAAI,QAAQ,cAAc;AACzD,SACEC,gBAAgB,EAChBC,oBAAoB,QACf,gCAAgC;AACvC,SAASC,sBAAsB,QAAQ,8BAA8B;AACrE,SAASC,YAAY,QAAQ,sCAAmC;AAChE,SAASC,gBAAgB,QAAQ,4BAAyB;AAE1D,OAAOC,mBAAmB,MAAM,oCAAoC;AACpE,OAAOC,KAAK,MAAM,OAAO;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAW1B,MAAMC,YAAY,gBAAGlB,aAAa,CAA0B,IAAI,CAAC;;AAEjE;AACA;AACA;AACA,OAAO,MAAMmB,QAAQ,GAAGA,CAAA,KAAwB;EAC9C,MAAMC,GAAG,GAAGnB,UAAU,CAACiB,YAAY,CAAC;EACpC,IAAI,CAACE,GAAG,EAAE;IACR,MAAM,IAAIC,KAAK,CAAC,6CAA6C,CAAC;EAChE;EACA,OAAOD,GAAG;AACZ,CAAC;AAQD;AACA;AACA;AACA,OAAO,MAAME,cAA6C,GAAGA,CAAC;EAC5DC,QAAQ;EACRC,KAAK,EAAEC,aAAa;EACpBC;AACF,CAAC,KAAK;EACJ,MAAM;IACJF,KAAK,EAAEG,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A,CACzB;IAAC,CACR;EAAC,CACG,CAAC;AAE7B,CAAC;AAED,MAAMkB,MAAM,GAAGpC,UAAU,CAACyC,MAAM,CAAC;EAC/BJ,SAAS,EAAE;IACTT,IAAI,EAAE;EACR;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"sourceRoot":"../../../../src","sources":["theme/hook/index.ts"],"mappings":";;AAAA,cAAc,uBAAoB
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../src","sources":["theme/hook/index.ts"],"mappings":";;AAAA,cAAc,uBAAoB","ignoreList":[]}
|
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
|
|
8
8
|
import { useMemo, useEffect } from 'react';
|
|
9
9
|
import { DarkTheme, LightTheme } from "../themes.js";
|
|
10
|
+
import { filterValidOverrideColors } from "../utils/validateColor.js";
|
|
10
11
|
import { useInternalThemeStore } from "../../store/themeStore.js";
|
|
11
12
|
import { Appearance } from 'react-native';
|
|
12
13
|
export const useInternalTheme = (override, isDark) => {
|
|
@@ -37,8 +38,11 @@ export const useInternalTheme = (override, isDark) => {
|
|
|
37
38
|
// Memoize base theme selection
|
|
38
39
|
const baseTheme = useMemo(() => isDarkMode ? DarkTheme : LightTheme, [isDarkMode]);
|
|
39
40
|
|
|
40
|
-
// Memoize override colors
|
|
41
|
-
const overrideColors = useMemo(() =>
|
|
41
|
+
// Memoize override colors — only valid, non-empty colors; empty/invalid skipped
|
|
42
|
+
const overrideColors = useMemo(() => {
|
|
43
|
+
const raw = isDarkMode ? override?.dark ?? {} : override?.light ?? {};
|
|
44
|
+
return filterValidOverrideColors(raw);
|
|
45
|
+
}, [override?.dark, override?.light, isDarkMode]);
|
|
42
46
|
|
|
43
47
|
// Memoize final theme with proper dependencies
|
|
44
48
|
const finalTheme = useMemo(() => ({
|
|
@@ -49,11 +53,21 @@ export const useInternalTheme = (override, isDark) => {
|
|
|
49
53
|
}
|
|
50
54
|
}), [baseTheme, overrideColors]);
|
|
51
55
|
|
|
52
|
-
// Memoize themeFull with
|
|
53
|
-
const themeFull = useMemo(() =>
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
56
|
+
// Memoize themeFull — only valid overrides merged with base; empty/invalid skipped
|
|
57
|
+
const themeFull = useMemo(() => {
|
|
58
|
+
const validLight = filterValidOverrideColors(override?.light);
|
|
59
|
+
const validDark = filterValidOverrideColors(override?.dark);
|
|
60
|
+
return {
|
|
61
|
+
light: {
|
|
62
|
+
...LightTheme.colors,
|
|
63
|
+
...validLight
|
|
64
|
+
},
|
|
65
|
+
dark: {
|
|
66
|
+
...DarkTheme.colors,
|
|
67
|
+
...validDark
|
|
68
|
+
}
|
|
69
|
+
};
|
|
70
|
+
}, [override?.light, override?.dark]);
|
|
57
71
|
return useMemo(() => ({
|
|
58
72
|
theme: finalTheme,
|
|
59
73
|
isDarkMode,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["useMemo","useEffect","DarkTheme","LightTheme","useInternalThemeStore","Appearance","useInternalTheme","override","isDark","isDarkMode","storeDarkMode","setTheme","themeMode","setIsDarkMode","undefined","subscription","addChangeListener","colorScheme","remove","baseTheme","overrideColors","dark","light","finalTheme","colors","themeFull","theme"],"sourceRoot":"../../../../src","sources":["theme/hook/useInternalTheme.ts"],"mappings":";;AAAA;AACA;AACA;AACA;;AAEA,SAASA,OAAO,EAAEC,SAAS,QAAQ,OAAO;AAC1C,SACEC,SAAS,EACTC,UAAU,QAIL,cAAW;AAClB,SAASC,qBAAqB,QAAQ,2BAAwB;
|
|
1
|
+
{"version":3,"names":["useMemo","useEffect","DarkTheme","LightTheme","filterValidOverrideColors","useInternalThemeStore","Appearance","useInternalTheme","override","isDark","isDarkMode","storeDarkMode","setTheme","themeMode","setIsDarkMode","undefined","subscription","addChangeListener","colorScheme","remove","baseTheme","overrideColors","raw","dark","light","finalTheme","colors","themeFull","validLight","validDark","theme"],"sourceRoot":"../../../../src","sources":["theme/hook/use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0)',
|
|
62
|
+
newRelease: 'rgba(255, 221, 51, 1)',
|
|
62
63
|
backgroundLayoutGradient: ['rgba(255, 255, 255, 0.3)', 'rgba(255, 255, 255, 0.98)', 'rgb(255, 255, 255)', 'rgb(249, 250, 251)'],
|
|
63
64
|
heroBannerGradient: ['rgba(249,250,251,0)', 'rgba(249,250,251,0.4)', 'rgba(249,250,251,1)'],
|
|
64
65
|
cardGradient: ['rgba(223, 178, 50, 1)', 'rgba(243, 146, 35, 1)', 'rgba(248, 159, 16, 1)'],
|
|
@@ -134,6 +135,7 @@ export const DarkTheme = {
|
|
|
134
135
|
white: 'rgba(255, 255, 255, 1)',
|
|
135
136
|
black: 'rgba(0, 0, 0, 1)',
|
|
136
137
|
transparent: 'rgba(255, 255, 255, 0.04)',
|
|
138
|
+
newRelease: 'rgba(255, 221, 51, 1)',
|
|
137
139
|
backgroundLayoutGradient: ['rgba(22, 21, 21, 0.65)', 'rgba(22, 21, 21, 0.98)', 'rgb(22, 21, 21)', 'rgb(22, 21, 21)'],
|
|
138
140
|
heroBannerGradient: ['rgba(22,21,21,0)', 'rgba(22,21,21,0.4)', 'rgb(22,21,21)'],
|
|
139
141
|
cardGradient: ['rgba(223, 178, 50, 1)', 'rgba(243, 146, 35, 1)', 'rgba(248, 159, 16, 1)'],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["LightTheme","colors","primary","onPrimary","primaryContainer","onPrimaryContainer","secondary","onSecondary","secondaryContainer","onSecondaryContainer","tertiary","onTertiary","tertiaryContainer","onTertiaryContainer","background","onBackground","backgroundDisabled","blueBackground","surface","onSurface","surfaceVariant","onSurfaceVariant","surfaceDisabled","onSurfaceDisabled","error","onError","errorContainer","onErrorContainer","outline","outlineDisabled","outlineVariant","border","borderDisabled","shadow","scrim","backdrop","overlay","inverseSurface","inverseOnSurface","inversePrimary","elevation","level0","level1","level2","level3","level4","level5","textPrimary","textSecondary","textDisabled","button","buttonDisabled","buttonText","white","black","transparent","backgroundLayoutGradient","heroBannerGradient","cardGradient","skeletonHighlightColor","skeletonBaseColor","switchTrackColor","switchThumbColor","switchTrackColorDisabled","switchThumbColorDisabled","premiumIcon","alert","success","warning","info","DarkTheme"],"sourceRoot":"../../../src","sources":["theme/themes.ts"],"mappings":";;
|
|
1
|
+
{"version":3,"names":["LightTheme","colors","primary","onPrimary","primaryContainer","onPrimaryContainer","secondary","onSecondary","secondaryContainer","onSecondaryContainer","tertiary","onTertiary","tertiaryContainer","onTertiaryContainer","background","onBackground","backgroundDisabled","blueBackground","surface","onSurface","surfaceVariant","onSurfaceVariant","surfaceDisabled","onSurfaceDisabled","error","onError","errorContainer","onErrorContainer","outline","outlineDisabled","outlineVariant","border","borderDisabled","shadow","scrim","backdrop","overlay","inverseSurface","inverseOnSurface","inversePrimary","elevation","level0","level1","level2","level3","level4","level5","textPrimary","textSecondary","textDisabled","button","buttonDisabled","buttonText","white","black","transparent","newRelease","backgroundLayoutGradient","heroBannerGradient","cardGradient","skeletonHighlightColor","skeletonBaseColor","switchTrackColor","switchThumbColor","switchTrackColorDisabled","switchThumbColorDisabled","premiumIcon","alert","success","warning","info","DarkTheme"],"sourceRoot":"../../../src","sources":["theme/themes.ts"],"mappings":";;AAuGA;;AAeA,OAAO,MAAMA,UAAkB,GAAG;EAChCC,MAAM,EAAE;IACNC,OAAO,EAAE,uBAAuB;IAChCC,SAAS,EAAE,wBAAwB;IACnCC,gBAAgB,EAAE,wBAAwB;IAC1CC,kBAAkB,EAAE,sBAAsB;IAE1CC,SAAS,EAAE,sBAAsB;IACjCC,WAAW,EAAE,wBAAwB;IACrCC,kBAAkB,EAAE,wBAAwB;IAC5CC,oBAAoB,EAAE,sBAAsB;IAE5CC,QAAQ,EAAE,uBAAuB;IACjCC,UAAU,EAAE,qBAAqB;IACjCC,iBAAiB,EAAE,wBAAwB;IAC3CC,mBAAmB,EAAE,sBAAsB;IAE3CC,UAAU,EAAE,wBAAwB;IACpCC,YAAY,EAAE,qBAAqB;IACnCC,kBAA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AAS;IACnCC,wBAAwB,EAAE,OAAO;IACjCC,WAAW,EAAE,SAAS;IAEtBC,KAAK,EAAE;MACLC,OAAO,EAAE,SAAS;MAClB5C,KAAK,EAAE,oBAAoB;MAC3B6C,OAAO,EAAE,SAAS;MAClBC,IAAI,EAAE;IACR;EACF;AACF,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* @author Naresh Dhamu
|
|
5
|
+
* @lastModified Sun 08 Feb 2026
|
|
6
|
+
*
|
|
7
|
+
* Validates theme color values. Only valid colors are used for overrides.
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
/** Hex color: #RGB | #RRGGBB | #RRGGBBAA */
|
|
11
|
+
const HEX_REGEX = /^#([A-Fa-f0-9]{3}|[A-Fa-f0-9]{6}|[A-Fa-f0-9]{8})$/;
|
|
12
|
+
|
|
13
|
+
/** rgb(r, g, b) - numbers 0-255 */
|
|
14
|
+
const RGB_REGEX = /^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/;
|
|
15
|
+
|
|
16
|
+
/** rgba(r, g, b, a) */
|
|
17
|
+
const RGBA_REGEX = /^rgba\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*\)$/;
|
|
18
|
+
|
|
19
|
+
/** React Native / CSS named colors (common set) */
|
|
20
|
+
const VALID_NAMED_COLORS = new Set(['transparent', 'black', 'white', 'red', 'green', 'blue', 'yellow', 'orange', 'gray', 'grey', 'purple', 'pink', 'cyan', 'magenta', 'brown', 'lime', 'navy', 'teal', 'silver', 'maroon', 'olive', 'aqua', 'fuchsia', 'currentColor']);
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* Returns true if the given string is a valid color (hex, rgb, rgba, or named).
|
|
24
|
+
*/
|
|
25
|
+
export function isValidColorString(value) {
|
|
26
|
+
if (typeof value !== 'string' || value.length === 0) return false;
|
|
27
|
+
if (HEX_REGEX.test(value)) return true;
|
|
28
|
+
if (VALID_NAMED_COLORS.has(value.toLowerCase())) return true;
|
|
29
|
+
const rgbMatch = value.match(RGB_REGEX);
|
|
30
|
+
if (rgbMatch) {
|
|
31
|
+
const r = Number(rgbMatch[1]);
|
|
32
|
+
const g = Number(rgbMatch[2]);
|
|
33
|
+
const b = Number(rgbMatch[3]);
|
|
34
|
+
return r >= 0 && r <= 255 && g >= 0 && g <= 255 && b >= 0 && b <= 255;
|
|
35
|
+
}
|
|
36
|
+
const rgbaMatch = value.match(RGBA_REGEX);
|
|
37
|
+
if (rgbaMatch) {
|
|
38
|
+
const r = Number(rgbaMatch[1]);
|
|
39
|
+
const g = Number(rgbaMatch[2]);
|
|
40
|
+
const b = Number(rgbaMatch[3]);
|
|
41
|
+
const a = Number(rgbaMatch[4]);
|
|
42
|
+
return r >= 0 && r <= 255 && g >= 0 && g <= 255 && b >= 0 && b <= 255 && a >= 0 && a <= 1;
|
|
43
|
+
}
|
|
44
|
+
return false;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* Validates a single theme color value (string, string[], or nested object).
|
|
49
|
+
* Empty values (empty string, empty array, empty object) are invalid — no override.
|
|
50
|
+
*/
|
|
51
|
+
export function isValidColorValue(value) {
|
|
52
|
+
if (value == null) return false;
|
|
53
|
+
if (typeof value === 'string') {
|
|
54
|
+
if (value.trim().length === 0) return false;
|
|
55
|
+
return isValidColorString(value);
|
|
56
|
+
}
|
|
57
|
+
if (Array.isArray(value)) {
|
|
58
|
+
if (value.length === 0) return false;
|
|
59
|
+
return value.every(item => isValidColorString(item));
|
|
60
|
+
}
|
|
61
|
+
if (typeof value === 'object' && value !== null) {
|
|
62
|
+
const entries = Object.values(value);
|
|
63
|
+
if (entries.length === 0) return false;
|
|
64
|
+
return entries.every(v => isValidColorValue(v));
|
|
65
|
+
}
|
|
66
|
+
return false;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* Filters override colors to only include entries with valid, non-empty color values.
|
|
71
|
+
* Empty colors (empty string, [], {}) and invalid values are skipped — no override.
|
|
72
|
+
*/
|
|
73
|
+
export function filterValidOverrideColors(override) {
|
|
74
|
+
if (!override || typeof override !== 'object') return {};
|
|
75
|
+
const result = {};
|
|
76
|
+
for (const key of Object.keys(override)) {
|
|
77
|
+
const value = override[key];
|
|
78
|
+
if (isValidColorValue(value)) {
|
|
79
|
+
result[key] = value;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
return result;
|
|
83
|
+
}
|
|
84
|
+
//# sourceMappingURL=validateColor.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["HEX_REGEX","RGB_REGEX","RGBA_REGEX","VALID_NAMED_COLORS","Set","isValidColorString","value","length","test","has","toLowerCase","rgbMatch","match","r","Number","g","b","rgbaMatch","a","isValidColorValue","trim","Array","isArray","every","item","entries","Object","values","v","filterValidOverrideColors","override","result","key","keys"],"sourceRoot":"../../../../src","sources":["theme/utils/validateColor.ts"],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,MAAMA,SAAS,GAAG,mDAAmD;;AAErE;AACA,MAAMC,SAAS,GAAG,0DAA0D;;AAE5E;AACA,MAAMC,UAAU,GACd,uEAAuE;;AAEzE;AACA,MAAMC,kBAAkB,GAAG,IAAIC,GAAG,CAAC,CACjC,aAAa,EACb,OAAO,EACP,OAAO,EACP,KAAK,EACL,OAAO,EACP,MAAM,EACN,QAAQ,EACR,QAAQ,EACR,MAAM,EACN,MAAM,EACN,QAAQ,EACR,MAAM,EACN,MAAM,EACN,SAAS,EACT,OAAO,EACP,MAAM,EACN,MAAM,EACN,MAAM,EACN,QAAQ,EACR,QAAQ,EACR,OAAO,EACP,MAAM,EACN,SAAS,EACT,cAAc,CACf,CAAC;;AAEF;AACA;AACA;AACA,OAAO,SAASC,kBAAkBA,CAACC,KAAa,E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AAC;IAC3B,IAAIb,iBAAiB,CAACb,KAAK,CAAC,EAAE;MAC3ByB,MAAM,CAA6BC,GAAG,CAAW,GAAG1B,KAAK;IAC5D;EACF;EACA,OAAOyB,MAAM;AACf","ignoreList":[]}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Color utility functions
|
|
5
|
+
* @author Naresh Dhamu
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Converts a color string to rgba format with specified opacity
|
|
10
|
+
* Supports multiple color formats: rgba, rgb, hex (#RGB, #RRGGBB, #RRGGBBAA)
|
|
11
|
+
*
|
|
12
|
+
* @param color - Color string in any supported format
|
|
13
|
+
* @param opacity - Opacity value between 0 and 1 (default: 0.9)
|
|
14
|
+
* @returns Color string in rgba format with specified opacity
|
|
15
|
+
*
|
|
16
|
+
* @example
|
|
17
|
+
* convertColorWithOpacity('rgb(255, 0, 0)', 0.5) // 'rgba(255, 0, 0, 0.5)'
|
|
18
|
+
* convertColorWithOpacity('#FF0000', 0.8) // 'rgba(255, 0, 0, 0.8)'
|
|
19
|
+
* convertColorWithOpacity('rgba(255, 0, 0, 1)', 0.5) // 'rgba(255, 0, 0, 0.5)'
|
|
20
|
+
*/
|
|
21
|
+
export const convertColorWithOpacity = (color, opacity = 0.9) => {
|
|
22
|
+
// Handle rgba format
|
|
23
|
+
if (color.startsWith('rgba(')) {
|
|
24
|
+
return color.replace(/rgba\(([^)]+)\)/, (match, rgb) => {
|
|
25
|
+
const values = rgb.split(',').map(v => v.trim());
|
|
26
|
+
if (values.length === 4) {
|
|
27
|
+
return `rgba(${values[0]}, ${values[1]}, ${values[2]}, ${opacity})`;
|
|
28
|
+
}
|
|
29
|
+
return match;
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
// Handle rgb format
|
|
34
|
+
if (color.startsWith('rgb(')) {
|
|
35
|
+
return color.replace(/rgb\(([^)]+)\)/, (match, rgb) => {
|
|
36
|
+
const values = rgb.split(',').map(v => v.trim());
|
|
37
|
+
if (values.length === 3) {
|
|
38
|
+
return `rgba(${values[0]}, ${values[1]}, ${values[2]}, ${opacity})`;
|
|
39
|
+
}
|
|
40
|
+
return match;
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
// Handle hex format (#RGB, #RRGGBB, #RRGGBBAA)
|
|
45
|
+
if (color.startsWith('#')) {
|
|
46
|
+
const hex = color.replace('#', '');
|
|
47
|
+
let r, g, b;
|
|
48
|
+
if (hex.length === 3) {
|
|
49
|
+
// #RGB format
|
|
50
|
+
r = parseInt(hex[0] + hex[0], 16);
|
|
51
|
+
g = parseInt(hex[1] + hex[1], 16);
|
|
52
|
+
b = parseInt(hex[2] + hex[2], 16);
|
|
53
|
+
} else if (hex.length === 6 || hex.length === 8) {
|
|
54
|
+
// #RRGGBB or #RRGGBBAA format
|
|
55
|
+
r = parseInt(hex.substring(0, 2), 16);
|
|
56
|
+
g = parseInt(hex.substring(2, 4), 16);
|
|
57
|
+
b = parseInt(hex.substring(4, 6), 16);
|
|
58
|
+
} else {
|
|
59
|
+
return color; // Invalid hex, return as is
|
|
60
|
+
}
|
|
61
|
+
return `rgba(${r}, ${g}, ${b}, ${opacity})`;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
// For other formats (named colors, etc.), return as is
|
|
65
|
+
// In a real scenario, you might want to convert named colors to rgba
|
|
66
|
+
return color;
|
|
67
|
+
};
|
|
68
|
+
//# sourceMappingURL=colorUtils.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["convertColorWithOpacity","color","opacity","startsWith","replace","match","rgb","values","split","map","v","trim","length","hex","r","g","b","parseInt","substring"],"sourceRoot":"../../../src","sources":["utils/colorUtils.ts"],"mappings":";;AAAA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA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,EAAEC,CAAS,EAAEC,CAAS;IAEnC,IAAIH,GAAG,CAACD,MAAM,KAAK,CAAC,EAAE;MACpB;MACAE,CAAC,GAAGG,QAAQ,CAACJ,GAAG,CAAC,CAAC,CAAC,GAAIA,GAAG,CAAC,CAAC,CAAE,EAAE,EAAE,CAAC;MACnCE,CAAC,GAAGE,QAAQ,CAACJ,GAAG,CAAC,CAAC,CAAC,GAAIA,GAAG,CAAC,CAAC,CAAE,EAAE,EAAE,CAAC;MACnCG,CAAC,GAAGC,QAAQ,CAACJ,GAAG,CAAC,CAAC,CAAC,GAAIA,GAAG,CAAC,CAAC,CAAE,EAAE,EAAE,CAAC;IACrC,CAAC,MAAM,IAAIA,GAAG,CAACD,MAAM,KAAK,CAAC,IAAIC,GAAG,CAACD,MAAM,KAAK,CAAC,EAAE;MAC/C;MACAE,CAAC,GAAGG,QAAQ,CAACJ,GAAG,CAACK,SAAS,CAAC,CAAC,EAAE,CAAC,CAAC,EAAG,EAAE,CAAC;MACtCH,CAAC,GAAGE,QAAQ,CAACJ,GAAG,CAACK,SAAS,CAAC,CAAC,EAAE,CAAC,CAAC,EAAG,EAAE,CAAC;MACtCF,CAAC,GAAGC,QAAQ,CAACJ,GAAG,CAACK,SAAS,CAAC,CAAC,EAAE,CAAC,CAAC,EAAG,EAAE,CAAC;IACxC,CAAC,MAAM;MACL,OAAOjB,KAAK,CAAC,CAAC;IAChB;IAEA,OAAO,QAAQa,CAAC,KAAKC,CAAC,KAAKC,CAAC,KAAKd,OAAO,GAAG;EAC7C;;EAEA;EACA;EACA,OAAOD,KAAK;AACd,CAAC","ignoreList":[]}
|
package/lib/typescript/src/components/Auth/{ForgotPassword → One/ForgotPassword}/ForgotPassword.d.ts
RENAMED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
**/
|
|
5
5
|
import React from 'react';
|
|
6
6
|
import { type ViewStyle, type TextStyle } from 'react-native';
|
|
7
|
-
import type { ThemeOverride } from '
|
|
7
|
+
import type { ThemeOverride } from '../../../../theme/themes';
|
|
8
8
|
type TextConfig = {
|
|
9
9
|
emailLabel?: string;
|
|
10
10
|
emailPlaceholder?: string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ForgotPassword.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/Auth/One/ForgotPassword/ForgotPassword.tsx"],"names":[],"mappings":"AAAA;;;IAGI;AACJ,OAAO,KAAyC,MAAM,OAAO,CAAC;AAC9D,OAAO,EAML,KAAK,SAAS,EACd,KAAK,SAAS,EACf,MAAM,cAAc,CAAC;AAYtB,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAO9D,KAAK,UAAU,GAAG;IAChB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB,CAAC;AAEF,KAAK,mBAAmB,GAAG;IACzB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,CAAC,EAAE,KAAK,EAAE,EAAE;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE,KAAK,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC;IAClE,iBAAiB,CAAC,EAAE,MAAM,IAAI,CAAC;IAC/B,cAAc,CAAC,EAAE,SAAS,CAAC;IAC3B,UAAU,CAAC,EAAE,SAAS,CAAC;IACvB,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,UAAU,CAAC,EAAE,SAAS,CAAC;IACvB,mBAAmB,CAAC,EAAE,SAAS,CAAC;IAChC,eAAe,CAAC,EAAE,SAAS,CAAC;IAC5B,eAAe,CAAC,EAAE;QAChB,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;QACvB,YAAY,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;QACtC,uBAAuB,CAAC,EAAE,MAAM,CAAC;QACjC,UAAU,CAAC,EAAE,OAAO,GAAG,SAAS,GAAG,SAAS,GAAG,QAAQ,CAAC;KACzD,CAAC;IACF,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,aAAa,CAAC;IACtB,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,KAAK,CAAC,SAAS,CAAC;IACnC,0BAA0B,CAAC,EAAE,MAAM,KAAK,CAAC,SAAS,CAAC;IACnD,kBAAkB,CAAC,EAAE,CAAC,KAAK,EAAE;QAC3B,OAAO,EAAE,MAAM,IAAI,CAAC;QACpB,QAAQ,EAAE,OAAO,CAAC;QAClB,OAAO,EAAE,OAAO,CAAC;KAClB,KAAK,KAAK,CAAC,SAAS,CAAC;IACtB,gBAAgB,CAAC,EAAE,CAAC,KAAK,EAAE;QAAE,OAAO,EAAE,MAAM,IAAI,CAAA;KAAE,KAAK,KAAK,CAAC,SAAS,CAAC;IACvE,oBAAoB,CAAC,EAAE,MAAM,KAAK,CAAC,SAAS,CAAC;CAC9C,CAAC;;AA+MF,wBAA0C"}
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import React from 'react';
|
|
6
6
|
import { type ViewStyle, type TextStyle } from 'react-native';
|
|
7
|
-
import type { ThemeOverride } from '
|
|
7
|
+
import type { ThemeOverride } from '../../../../theme/themes';
|
|
8
8
|
type FormValues = {
|
|
9
9
|
email: string;
|
|
10
10
|
password: string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LoginWithEmail.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/Auth/One/Login/LoginWithEmail.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,KAA+B,MAAM,OAAO,CAAC;AACpD,OAAO,EAKL,KAAK,SAAS,EACd,KAA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
|
5
5
|
import React from 'react';
|
|
6
6
|
import { type TextStyle, type ViewStyle } from 'react-native';
|
|
7
|
-
import type { ThemeOverride } from '
|
|
7
|
+
import type { ThemeOverride } from '../../../../theme/themes';
|
|
8
8
|
type PhoneField = {
|
|
9
9
|
fullNumber: string;
|
|
10
10
|
countryCode: string;
|