@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 @@
|
|
|
1
|
+
{"version":3,"names":["React","memo","useRef","useEffect","View","StyleSheet","Animated","ImageBackground","LinearGradient","jsx","_jsx","jsxs","_jsxs","IMAGE_URL","BackgroundLayoutOne","children","fadeAnim","Value","current","timing","toValue","duration","useNativeDriver","start","style","styles","root","source","uri","resizeMode","absoluteFillObject","opacity","colors","content","create","flex","backgroundColor","width"],"sourceRoot":"../../../../src","sources":["components/BackgroundLayout/BackgroundLayoutOne.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,IAAI,EAAEC,MAAM,EAAEC,SAAS,QAAQ,OAAO;AACtD,SAASC,IAAI,EAAEC,UAAU,EAAEC,QAAQ,EAAEC,eAAe,QAAQ,cAAc;AAC1E,OAAOC,cAAc,MAAM,8BAA8B;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAE1D,MAAMC,SAAS,GACb,iFAAiF;AAMnF,MAAMC,mBAAqC,GAAGA,CAAC;EAAEC;AAAS,CAAC,KAAK;EAC9D,MAAMC,QAAQ,GAAGd,MAAM,CAAC,IAAII,QAAQ,CAACW,KAAK,CAAC,CAAC,CAAC,CAAC,CAACC,OAAO;EAEtDf,SAAS,CAAC,MAAM;IACdG,QAAQ,CAACa,MAAM,CAACH,QAAQ,EAAE;MACxBI,OAAO,EAAE,CAAC;MACVC,QAAQ,EAAE,GAAG;MACbC,eAAe,EAAE;IACnB,CAAC,CAAC,CAACC,KAAK,CAAC,CAAC;EACZ,CAAC,EAAE,CAACP,QAAQ,CAAC,CAAC;EAEd,oBACEJ,KAAA,CAACR,IAAI;IAACoB,KAAK,EAAEC,MAAM,CAACC,IAAK;IAAAX,QAAA,gBACvBL,IAAA,CAACH,eAAe;MACdoB,MAAM,EAAE;QAAEC,GAAG,EAAEf;MAAU,CAAE;MAC3BgB,UAAU,EAAC,OAAO;MAClBL,KAAK,EAAEnB,UAAU,CAACyB;IAAmB,CACtC,CAAC,eAEFlB,KAAA,CAACN,QAAQ,CAACF,IAAI;MACZoB,KAAK,EAAE,CAACnB,UAAU,CAACyB,kBAAkB,EAAE;QAAEC,OAAO,EAAEf;MAAS,CAAC,CAAE;MAAAD,QAAA,gBAE9DL,IAAA,CAACF,cAAc;QACbwB,MAAM,EAAE,CAAC,kBAAkB,EAAE,iBAAiB,EAAE,kBAAkB,CAAE;QACpER,KAAK,EAAEnB,UAAU,CAACyB;MAAmB,CACtC,CAAC,eAEFpB,IAAA,CAACN,IAAI;QAACoB,KAAK,EAAEC,MAAM,CAACQ,OAAQ;QAAAlB,QAAA,EAAEA;MAAQ,CAAO,CAAC;IAAA,CACjC,CAAC;EAAA,CACZ,CAAC;AAEX,CAAC;AAED,4BAAed,IAAI,CAACa,mBAAmB,CAAC;AAExC,MAAMW,MAAM,GAAGpB,UAAU,CAAC6B,MAAM,CAAC;EAC/BR,IAAI,EAAE;IACJS,IAAI,EAAE,CAAC;IACPC,eAAe,EAAE;EACnB,CAAC;EACDH,OAAO,EAAE;IACPE,IAAI,EAAE,CAAC;IACPE,KAAK,EAAE;EACT;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -65,21 +65,25 @@ const BottomSheet = ({
|
|
|
65
65
|
return /*#__PURE__*/_jsx(Modal, {
|
|
66
66
|
isVisible: visible,
|
|
67
67
|
onBackdropPress: handleClosePress,
|
|
68
|
+
onBackButtonPress: handleClosePress,
|
|
68
69
|
onSwipeComplete: handleClosePress,
|
|
69
70
|
style: styles.modal,
|
|
70
|
-
backdropOpacity: 0.45
|
|
71
|
-
|
|
72
|
-
,
|
|
71
|
+
backdropOpacity: 0.45,
|
|
72
|
+
swipeDirection: "down",
|
|
73
73
|
animationIn: "slideInUp",
|
|
74
74
|
animationOut: "slideOutDown",
|
|
75
75
|
animationInTiming: 260,
|
|
76
76
|
animationOutTiming: 220,
|
|
77
|
+
backdropTransitionInTiming: 200,
|
|
78
|
+
backdropTransitionOutTiming: 180,
|
|
77
79
|
useNativeDriver: true,
|
|
78
80
|
useNativeDriverForBackdrop: true,
|
|
79
81
|
propagateSwipe: true,
|
|
80
82
|
avoidKeyboard: true,
|
|
81
83
|
statusBarTranslucent: false,
|
|
82
84
|
hardwareAccelerated: true,
|
|
85
|
+
hideModalContentWhileAnimating: false,
|
|
86
|
+
deviceHeight: SCREEN_HEIGHT,
|
|
83
87
|
children: /*#__PURE__*/_jsxs(Animated.View, {
|
|
84
88
|
style: [styles.bottomSheetContainer, {
|
|
85
89
|
backgroundColor: theme.colors.background,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","useCallback","useMemo","TouchableOpacity","StyleSheet","View","ScrollView","Dimensions","Modal","X","moderateScale","verticalScale","RFValue","Animated","Text","jsx","_jsx","jsxs","_jsxs","height","SCREEN_HEIGHT","get","BottomSheet","theme","children","title","showCloseButton","visible","onClose","handleIndicatorStyle","scrollable","calculatedHeight","includes","num","parseFloat","isNaN","handleClosePress","renderHeader","style","styles","color","colors","textPrimary","renderCloseButton","onPress","closeButtonWrapper","backgroundColor","button","activeOpacity","size","buttonText","isVisible","onBackdropPress","onSwipeComplete","modal","backdropOpacity","animationIn","animationOut","animationInTiming","animationOutTiming","useNativeDriver","useNativeDriverForBackdrop","propagateSwipe","avoidKeyboard","statusBarTranslucent","hardwareAccelerated","bottomSheetContainer","background","maxHeight","handleIndicator","showsVerticalScrollIndicator","bounces","nestedScrollEnabled","keyboardShouldPersistTaps","contentContainerStyle","scrollContent","viewContent","create","justifyContent","margin","borderTopLeftRadius","borderTopRightRadius","overflow","position","flex","width","borderRadius","alignSelf","marginVertical","paddingBottom","paddingHorizontal","top","right","padding","zIndex","elevation","fontSize","fontWeight","textAlign","marginBottom"],"sourceRoot":"../../../../src","sources":["components/BottomSheet/BottomSheet.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,WAAW,EAAEC,OAAO,QAAQ,OAAO;AAEnD,SACEC,gBAAgB,EAChBC,UAAU,EACVC,IAAI,EACJC,UAAU,EACVC,UAAU,QACL,cAAc;AAErB,OAAOC,KAAK,MAAM,oBAAoB;AACtC,SAASC,CAAC,QAAQ,qBAAqB;AACvC,SAASC,aAAa,EAAEC,aAAa,QAAQ,2BAA2B;AACxE,SAASC,OAAO,QAAQ,kCAAkC;AAC1D,OAAOC,QAAQ,MAAM,yBAAyB;AAE9C,SAASC,IAAI,QAAQ,kBAAS;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAE/B,MAAM;EAAEC,MAAM,EAAEC;AAAc,CAAC,GAAGb,UAAU,CAACc,GAAG,CAAC,QAAQ,CAAC;AAc1D,MAAMC,WAAuC,GAAGA,CAAC;EAC/CC,KAAK;EACLC,QAAQ;EACRC,KAAK;EACLN,MAAM;EACNO,eAAe,GAAG,IAAI;EACtBC,OAAO,GAAG,KAAK;EACfC,OAAO;EACPC,oBAAoB;EACpBC,UAAU,GAAG;AACf,CAAC,KAAK;EACJ,MAAMC,gBAAgB,GAAG7B,OAAO,CAAC,MAAM;IACrC,IAAI,CAACiB,MAAM,EAAE,OAAOC,aAAa,GAAG,IAAI;IAExC,IAAI,OAAOD,MAAM,KAAK,QAAQ,EAAE,OAAOA,MAAM;IAE7C,IAAI,OAAOA,MAAM,KAAK,QAAQ,IAAIA,MAAM,CAACa,QAAQ,CAAC,GAAG,CAAC,EAAE;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B,MAAM,CAAC,CAAC;EAErD,oBACEzB,IAAA,CAACR,KAAK;IACJ2C,SAAS,EAAExB,OAAQ;IACnByB,eAAe,EAAEhB,gBAAiB;IAClCiB,
|
|
1
|
+
{"version":3,"names":["React","useCallback","useMemo","TouchableOpacity","StyleSheet","View","ScrollView","Dimensions","Modal","X","moderateScale","verticalScale","RFValue","Animated","Text","jsx","_jsx","jsxs","_jsxs","height","SCREEN_HEIGHT","get","BottomSheet","theme","children","title","showCloseButton","visible","onClose","handleIndicatorStyle","scrollable","calculatedHeight","includes","num","parseFloat","isNaN","handleClosePress","renderHeader","style","styles","color","colors","textPrimary","renderCloseButton","onPress","closeButtonWrapper","backgroundColor","button","activeOpacity","size","buttonText","isVisible","onBackdropPress","onBackButtonPress","onSwipeComplete","modal","backdropOpacity","swipeDirection","animationIn","animationOut","animationInTiming","animationOutTiming","backdropTransitionInTiming","backdropTransitionOutTiming","useNativeDriver","useNativeDriverForBackdrop","propagateSwipe","avoidKeyboard","statusBarTranslucent","hardwareAccelerated","hideModalContentWhileAnimating","deviceHeight","bottomSheetContainer","background","maxHeight","handleIndicator","showsVerticalScrollIndicator","bounces","nestedScrollEnabled","keyboardShouldPersistTaps","contentContainerStyle","scrollContent","viewContent","create","justifyContent","margin","borderTopLeftRadius","borderTopRightRadius","overflow","position","flex","width","borderRadius","alignSelf","marginVertical","paddingBottom","paddingHorizontal","top","right","padding","zIndex","elevation","fontSize","fontWeight","textAlign","marginBottom"],"sourceRoot":"../../../../src","sources":["components/BottomSheet/BottomSheet.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,WAAW,EAAEC,OAAO,QAAQ,OAAO;AAEnD,SACEC,gBAAgB,EAChBC,UAAU,EACVC,IAAI,EACJC,UAAU,EACVC,UAAU,QACL,cAAc;AAErB,OAAOC,KAAK,MAAM,oBAAoB;AACtC,SAASC,CAAC,QAAQ,qBAAqB;AACvC,SAASC,aAAa,EAAEC,aAAa,QAAQ,2BAA2B;AACxE,SAASC,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K,EAAEjF,aAAa,CAAC,EAAE,CAAC;IACxBS,MAAM,EAAER,aAAa,CAAC,CAAC,CAAC;IACxBiF,YAAY,EAAElF,aAAa,CAAC,CAAC,CAAC;IAC9BmF,SAAS,EAAE,QAAQ;IACnBC,cAAc,EAAEnF,aAAa,CAAC,EAAE;EAClC,CAAC;EACDsE,aAAa,EAAE;IACbS,IAAI,EAAE,CAAC;IACPK,aAAa,EAAEpF,aAAa,CAAC,EAAE,CAAC;IAChCqF,iBAAiB,EAAEtF,aAAa,CAAC,EAAE;EACrC,CAAC;EACDwE,WAAW,EAAE;IACXa,aAAa,EAAEpF,aAAa,CAAC,EAAE,CAAC;IAChCqF,iBAAiB,EAAEtF,aAAa,CAAC,EAAE,CAAC;IACpCgF,IAAI,EAAE;EACR,CAAC;EACD7C,kBAAkB,EAAE;IAClB4C,QAAQ,EAAE,UAAU;IACpBQ,GAAG,EAAEtF,aAAa,CAAC,EAAE,CAAC;IACtBuF,KAAK,EAAExF,aAAa,CAAC,EAAE,CAAC;IACxBkF,YAAY,EAAElF,aAAa,CAAC,EAAE,CAAC;IAC/ByF,OAAO,EAAEzF,aAAa,CAAC,CAAC,CAAC;IACzB0F,MAAM,EAAE,IAAI;IACZC,SAAS,EAAE;EACb,CAAC;EACD5E,KAAK,EAAE;IACL6E,QAAQ,EAAE1F,OAAO,CAAC,EAAE,CAAC;IACrB2F,UAAU,EAAE,KAAK;IACjBC,SAAS,EAAE,QAAQ;IACnBC,YAAY,EAAE9F,aAAa,CAAC,EAAE;EAChC;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import React, { useCallback, useMemo } from 'react';
|
|
4
|
+
import { TouchableOpacity, StyleSheet, View, ScrollView, Dimensions, ImageBackground, Platform } from 'react-native';
|
|
5
|
+
import Modal from 'react-native-modal';
|
|
6
|
+
import { X } from 'lucide-react-native';
|
|
7
|
+
import { moderateScale, verticalScale } from 'react-native-size-matters';
|
|
8
|
+
import { RFValue } from 'react-native-responsive-fontsize';
|
|
9
|
+
import Animated from 'react-native-reanimated';
|
|
10
|
+
import { Text } from "../Text/index.js";
|
|
11
|
+
import FastImage from 'react-native-fast-image';
|
|
12
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
|
+
const {
|
|
14
|
+
height: SCREEN_HEIGHT
|
|
15
|
+
} = Dimensions.get('window');
|
|
16
|
+
const BottomSheetOne = ({
|
|
17
|
+
theme,
|
|
18
|
+
children,
|
|
19
|
+
title,
|
|
20
|
+
height,
|
|
21
|
+
backgroundImage,
|
|
22
|
+
showCloseButton = true,
|
|
23
|
+
visible = false,
|
|
24
|
+
onClose,
|
|
25
|
+
handleIndicatorStyle,
|
|
26
|
+
scrollable = true
|
|
27
|
+
}) => {
|
|
28
|
+
const calculatedHeight = useMemo(() => {
|
|
29
|
+
if (!height) return SCREEN_HEIGHT * 0.75;
|
|
30
|
+
if (typeof height === 'number') return height;
|
|
31
|
+
if (typeof height === 'string' && height.includes('%')) {
|
|
32
|
+
const num = parseFloat(height);
|
|
33
|
+
if (!isNaN(num)) {
|
|
34
|
+
return num / 100 * SCREEN_HEIGHT;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
return SCREEN_HEIGHT * 0.75;
|
|
38
|
+
}, [height]);
|
|
39
|
+
const handleClosePress = useCallback(() => {
|
|
40
|
+
onClose?.();
|
|
41
|
+
}, [onClose]);
|
|
42
|
+
const renderHeader = useMemo(() => {
|
|
43
|
+
if (title) {
|
|
44
|
+
return /*#__PURE__*/_jsx(Text, {
|
|
45
|
+
style: [styles.title, {
|
|
46
|
+
color: theme.colors.textPrimary
|
|
47
|
+
}],
|
|
48
|
+
children: title
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
return null;
|
|
52
|
+
}, [title, theme.colors.textPrimary]);
|
|
53
|
+
const renderCloseButton = useMemo(() => {
|
|
54
|
+
if (!showCloseButton) return null;
|
|
55
|
+
return /*#__PURE__*/_jsx(TouchableOpacity, {
|
|
56
|
+
onPress: handleClosePress,
|
|
57
|
+
style: [styles.closeButtonWrapper, {
|
|
58
|
+
backgroundColor: theme.colors.black
|
|
59
|
+
}],
|
|
60
|
+
activeOpacity: 0.8,
|
|
61
|
+
children: /*#__PURE__*/_jsx(X, {
|
|
62
|
+
size: moderateScale(22),
|
|
63
|
+
color: theme.colors.white
|
|
64
|
+
})
|
|
65
|
+
});
|
|
66
|
+
}, [showCloseButton, handleClosePress, theme.colors]);
|
|
67
|
+
return /*#__PURE__*/_jsx(Modal, {
|
|
68
|
+
isVisible: visible,
|
|
69
|
+
onBackdropPress: handleClosePress,
|
|
70
|
+
onSwipeComplete: handleClosePress,
|
|
71
|
+
style: styles.modal,
|
|
72
|
+
backdropOpacity: 0.45
|
|
73
|
+
// swipeDirection="down"
|
|
74
|
+
,
|
|
75
|
+
animationIn: "slideInUp",
|
|
76
|
+
animationOut: "slideOutDown",
|
|
77
|
+
animationInTiming: 260,
|
|
78
|
+
animationOutTiming: 220,
|
|
79
|
+
useNativeDriver: true,
|
|
80
|
+
useNativeDriverForBackdrop: true,
|
|
81
|
+
propagateSwipe: true,
|
|
82
|
+
avoidKeyboard: true,
|
|
83
|
+
statusBarTranslucent: false,
|
|
84
|
+
hardwareAccelerated: true,
|
|
85
|
+
children: /*#__PURE__*/_jsxs(Animated.View, {
|
|
86
|
+
style: [styles.bottomSheetContainer, {
|
|
87
|
+
backgroundColor: theme.colors.background,
|
|
88
|
+
height: calculatedHeight
|
|
89
|
+
}],
|
|
90
|
+
children: [backgroundImage && /*#__PURE__*/_jsxs(_Fragment, {
|
|
91
|
+
children: [/*#__PURE__*/_jsx(ImageBackground, {
|
|
92
|
+
source: {
|
|
93
|
+
uri: backgroundImage
|
|
94
|
+
},
|
|
95
|
+
style: [StyleSheet.absoluteFillObject, {
|
|
96
|
+
backgroundColor: theme.colors.background
|
|
97
|
+
}],
|
|
98
|
+
resizeMode: FastImage.resizeMode.cover,
|
|
99
|
+
blurRadius: Platform.OS === 'ios' ? 15 : 25
|
|
100
|
+
}), /*#__PURE__*/_jsx(View, {
|
|
101
|
+
style: styles.backgroundOverlay
|
|
102
|
+
})]
|
|
103
|
+
}), renderCloseButton, /*#__PURE__*/_jsx(View, {
|
|
104
|
+
style: [styles.handleIndicator, {
|
|
105
|
+
backgroundColor: theme.colors.textSecondary
|
|
106
|
+
}, handleIndicatorStyle]
|
|
107
|
+
}), scrollable ? /*#__PURE__*/_jsxs(ScrollView, {
|
|
108
|
+
showsVerticalScrollIndicator: false,
|
|
109
|
+
bounces: false,
|
|
110
|
+
nestedScrollEnabled: true,
|
|
111
|
+
keyboardShouldPersistTaps: "handled",
|
|
112
|
+
contentContainerStyle: styles.scrollContent,
|
|
113
|
+
children: [renderHeader, children]
|
|
114
|
+
}) : /*#__PURE__*/_jsxs(View, {
|
|
115
|
+
style: styles.viewContent,
|
|
116
|
+
children: [renderHeader, children]
|
|
117
|
+
})]
|
|
118
|
+
})
|
|
119
|
+
});
|
|
120
|
+
};
|
|
121
|
+
export default BottomSheetOne;
|
|
122
|
+
const styles = StyleSheet.create({
|
|
123
|
+
modal: {
|
|
124
|
+
justifyContent: 'flex-end',
|
|
125
|
+
margin: 0
|
|
126
|
+
},
|
|
127
|
+
bottomSheetContainer: {
|
|
128
|
+
borderTopLeftRadius: moderateScale(22),
|
|
129
|
+
borderTopRightRadius: moderateScale(22),
|
|
130
|
+
overflow: 'hidden',
|
|
131
|
+
position: 'relative'
|
|
132
|
+
},
|
|
133
|
+
backgroundOverlay: {
|
|
134
|
+
...StyleSheet.absoluteFillObject,
|
|
135
|
+
backgroundColor: 'rgba(0,0,0,0.55)'
|
|
136
|
+
},
|
|
137
|
+
handleIndicator: {
|
|
138
|
+
width: moderateScale(60),
|
|
139
|
+
height: verticalScale(4),
|
|
140
|
+
borderRadius: moderateScale(30),
|
|
141
|
+
alignSelf: 'center',
|
|
142
|
+
marginVertical: verticalScale(10)
|
|
143
|
+
},
|
|
144
|
+
scrollContent: {
|
|
145
|
+
flex: 1,
|
|
146
|
+
paddingBottom: verticalScale(30),
|
|
147
|
+
paddingHorizontal: moderateScale(12)
|
|
148
|
+
},
|
|
149
|
+
viewContent: {
|
|
150
|
+
paddingBottom: verticalScale(10),
|
|
151
|
+
paddingHorizontal: moderateScale(12),
|
|
152
|
+
flex: 1
|
|
153
|
+
},
|
|
154
|
+
closeButtonWrapper: {
|
|
155
|
+
position: 'absolute',
|
|
156
|
+
top: verticalScale(10),
|
|
157
|
+
right: moderateScale(14),
|
|
158
|
+
borderRadius: moderateScale(30),
|
|
159
|
+
padding: moderateScale(10),
|
|
160
|
+
zIndex: 1000,
|
|
161
|
+
elevation: 10
|
|
162
|
+
},
|
|
163
|
+
title: {
|
|
164
|
+
fontSize: RFValue(16),
|
|
165
|
+
fontWeight: '700',
|
|
166
|
+
textAlign: 'center',
|
|
167
|
+
marginBottom: verticalScale(15)
|
|
168
|
+
}
|
|
169
|
+
});
|
|
170
|
+
//# sourceMappingURL=BottomSheetOne.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","useCallback","useMemo","TouchableOpacity","StyleSheet","View","ScrollView","Dimensions","ImageBackground","Platform","Modal","X","moderateScale","verticalScale","RFValue","Animated","Text","FastImage","jsx","_jsx","Fragment","_Fragment","jsxs","_jsxs","height","SCREEN_HEIGHT","get","BottomSheetOne","theme","children","title","backgroundImage","showCloseButton","visible","onClose","handleIndicatorStyle","scrollable","calculatedHeight","includes","num","parseFloat","isNaN","handleClosePress","renderHeader","style","styles","color","colors","textPrimary","renderCloseButton","onPress","closeButtonWrapper","backgroundColor","black","activeOpacity","size","white","isVisible","onBackdropPress","onSwipeComplete","modal","backdropOpacity","animationIn","animationOut","animationInTiming","animationOutTiming","useNativeDriver","useNativeDriverForBackdrop","propagateSwipe","avoidKeyboard","statusBarTranslucent","hardwareAccelerated","bottomSheetContainer","background","source","uri","absoluteFillObject","resizeMode","cover","blurRadius","OS","backgroundOverlay","handleIndicator","textSecondary","showsVerticalScrollIndicator","bounces","nestedScrollEnabled","keyboardShouldPersistTaps","contentContainerStyle","scrollContent","viewContent","create","justifyContent","margin","borderTopLeftRadius","borderTopRightRadius","overflow","position","width","borderRadius","alignSelf","marginVertical","flex","paddingBottom","paddingHorizontal","top","right","padding","zIndex","elevation","fontSize","fontWeight","textAlign","marginBottom"],"sourceRoot":"../../../../src","sources":["components/BottomSheet/BottomSheetOne.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,WAAW,EAAEC,OAAO,QAAQ,OAAO;AAEnD,SACEC,gBAAgB,EAChBC,UAAU,EACVC,IAAI,EACJC,UAAU,EACVC,UAAU,EACVC,eAAe,EACfC,QAAQ,QACH,cAAc;AAErB,OAAOC,KAAK,MAAM,oBAAoB;AACtC,SAASC,CAAC,QAAQ,qBAAqB;AACvC,SAASC,aAAa,EAAEC,aAAa,QAAQ,2BAA2B;AACxE,SAASC,OAAO,QAAQ,kCAAkC;AAC1D,OAAOC,QAAQ,MAAM,yBAAyB;AAE9C,SAASC,IAAI,QAAQ,kBAAS;AAC9B,OAAOC,SAAS,MAAM,yBAAyB;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,QAAA,IAAAC,SAAA,EAAAC,IAAA,IAAAC,KAAA;AAEhD,MAAM;EAAEC,MAAM,EAAEC;AAAc,CAAC,GAAGlB,UAAU,CAACmB,GAAG,CAAC,QAAQ,CAAC;AAe1D,MAAMC,cAA6C,GAAGA,CAAC;EACrDC,KAAK;EACLC,QAAQ;EACRC,KAAK;EACLN,MAAM;EACNO,eAAe;EACfC,eAAe,GAAG,IAAI;EACtBC,OAAO,GAAG,KAAK;EACfC,OAAO;EACPC,oBAAoB;EACpBC,UAAU,GAAG;AACf,CAAC,KAAK;EACJ,MAAMC,gBAAgB,GAAGnC,OAAO,CAAC,MAAM;IACrC,IAAI,CAACsB,MAAM,EAAE,OAAOC,aAAa,GAA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BwF,SAAS,EAAE,QAAQ;IACnBC,cAAc,EAAExF,aAAa,CAAC,EAAE;EAClC,CAAC;EACD4E,aAAa,EAAE;IACba,IAAI,EAAE,CAAC;IACPC,aAAa,EAAE1F,aAAa,CAAC,EAAE,CAAC;IAChC2F,iBAAiB,EAAE5F,aAAa,CAAC,EAAE;EACrC,CAAC;EACD8E,WAAW,EAAE;IACXa,aAAa,EAAE1F,aAAa,CAAC,EAAE,CAAC;IAChC2F,iBAAiB,EAAE5F,aAAa,CAAC,EAAE,CAAC;IACpC0F,IAAI,EAAE;EACR,CAAC;EACDnD,kBAAkB,EAAE;IAClB8C,QAAQ,EAAE,UAAU;IACpBQ,GAAG,EAAE5F,aAAa,CAAC,EAAE,CAAC;IACtB6F,KAAK,EAAE9F,aAAa,CAAC,EAAE,CAAC;IACxBuF,YAAY,EAAEvF,aAAa,CAAC,EAAE,CAAC;IAC/B+F,OAAO,EAAE/F,aAAa,CAAC,EAAE,CAAC;IAC1BgG,MAAM,EAAE,IAAI;IACZC,SAAS,EAAE;EACb,CAAC;EACD/E,KAAK,EAAE;IACLgF,QAAQ,EAAEhG,OAAO,CAAC,EAAE,CAAC;IACrBiG,UAAU,EAAE,KAAK;IACjBC,SAAS,EAAE,QAAQ;IACnBC,YAAY,EAAEpG,aAAa,CAAC,EAAE;EAChC;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["default","BottomSheet"],"sourceRoot":"../../../../src","sources":["components/BottomSheet/index.ts"],"mappings":";;AAAA,SAASA,OAAO,IAAIC,WAAW,QAAQ,kBAAe","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":["default","BottomSheet","BottomSheetOne"],"sourceRoot":"../../../../src","sources":["components/BottomSheet/index.ts"],"mappings":";;AAAA,SAASA,OAAO,IAAIC,WAAW,QAAQ,kBAAe;AACtD,SAASD,OAAO,IAAIE,cAAc,QAAQ,qBAAkB","ignoreList":[]}
|
|
@@ -21,7 +21,8 @@ export const PrimaryBtn = ({
|
|
|
21
21
|
disabled = false,
|
|
22
22
|
containerStyle,
|
|
23
23
|
titleStyle,
|
|
24
|
-
theme
|
|
24
|
+
theme,
|
|
25
|
+
leftIcon
|
|
25
26
|
}) => {
|
|
26
27
|
const {
|
|
27
28
|
theme: appliedTheme
|
|
@@ -58,22 +59,31 @@ export const PrimaryBtn = ({
|
|
|
58
59
|
style: loadingTextStyle,
|
|
59
60
|
children: loadingText
|
|
60
61
|
})]
|
|
61
|
-
}) : /*#__PURE__*/
|
|
62
|
-
style:
|
|
63
|
-
children:
|
|
62
|
+
}) : /*#__PURE__*/_jsxs(View, {
|
|
63
|
+
style: styles.row,
|
|
64
|
+
children: [leftIcon && /*#__PURE__*/_jsx(View, {
|
|
65
|
+
style: {
|
|
66
|
+
marginRight: scale(8)
|
|
67
|
+
},
|
|
68
|
+
children: leftIcon
|
|
69
|
+
}), /*#__PURE__*/_jsx(Text, {
|
|
70
|
+
style: textStyle,
|
|
71
|
+
children: title
|
|
72
|
+
})]
|
|
64
73
|
})
|
|
65
74
|
});
|
|
66
75
|
};
|
|
67
76
|
export default /*#__PURE__*/React.memo(PrimaryBtn);
|
|
68
77
|
const styles = StyleSheet.create({
|
|
69
78
|
button: {
|
|
70
|
-
width: '100%',
|
|
71
79
|
alignSelf: 'stretch',
|
|
72
80
|
paddingVertical: verticalScale(12),
|
|
73
81
|
paddingHorizontal: scale(16),
|
|
74
82
|
borderRadius: scale(6),
|
|
75
83
|
alignItems: 'center',
|
|
76
|
-
justifyContent: 'center'
|
|
84
|
+
justifyContent: 'center',
|
|
85
|
+
minHeight: verticalScale(44),
|
|
86
|
+
flexShrink: 1
|
|
77
87
|
},
|
|
78
88
|
text: {
|
|
79
89
|
textAlign: 'center',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","useMemo","useSafePressHandler","TouchableOpacity","ActivityIndicator","StyleSheet","View","scale","verticalScale","useInternalTheme","Text","RFValue","jsx","_jsx","jsxs","_jsxs","PrimaryBtn","title","onPress","loading","loadingText","disabled","containerStyle","titleStyle","theme","appliedTheme","backgroundColor","colors","buttonDisabled","button","buttonStyle","styles","textStyle","text","color","buttonText","loadingTextStyle","opacity","handlePress","activeOpacity","style","accessibilityRole","accessibilityState","children","row","marginRight","memo","create","
|
|
1
|
+
{"version":3,"names":["React","useMemo","useSafePressHandler","TouchableOpacity","ActivityIndicator","StyleSheet","View","scale","verticalScale","useInternalTheme","Text","RFValue","jsx","_jsx","jsxs","_jsxs","PrimaryBtn","title","onPress","loading","loadingText","disabled","containerStyle","titleStyle","theme","leftIcon","appliedTheme","backgroundColor","colors","buttonDisabled","button","buttonStyle","styles","textStyle","text","color","buttonText","loadingTextStyle","opacity","handlePress","activeOpacity","style","accessibilityRole","accessibilityState","children","row","marginRight","memo","create","alignSelf","paddingVertical","paddingHorizontal","borderRadius","alignItems","justifyContent","minHeight","flexShrink","textAlign","fontSize","fontWeight","flexDirection"],"sourceRoot":"../../../../src","sources":["components/Button/PrimaryBtn.tsx"],"mappings":";;AAAA;AACA;AACA;AACA;;AAEA,OAAOA,KAAK,IAAIC,OAAO,QAAQ,OAAO;AACtC,SAASC,mBAAmB,QAAQ,gCAA6B;AACjE,SACEC,gBAAgB,EAChBC,iBAAiB,EACjBC,UAAU,EACVC,IAAI,QAIC,cAAc;AACrB,SAASC,KAAK,EAAEC,aAAa,QAAQ,2BAA2B;AAChE,SAASC,gBAAgB,QAAQ,sCAAmC;AACpE,SAASC,IAAI,QAAQ,kBAAS;AAE9B,SAASC,OAAO,QAAQ,kCAAkC;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAc3D,OAAO,MAAMC,UAAqC,GAAGA,CAAC;EACpDC,KAAK;EACLC,OAAO;EACPC,OAAO,GAAG,KAAK;EACfC,WAAW,GAAG,YAAY;EAC1BC,QAAQ,GAAG,KAAK;EAChBC,cAAc;EACdC,UAAU;EACVC,KAAK;EACLC;AACF,CAAC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AAE,CAAC;IAC5BgD,UAAU,EAAE;EACd,CAAC;EACDtB,IAAI,EAAE;IACJuB,SAAS,EAAE,QAAQ;IACnBC,QAAQ,EAAE/C,OAAO,CAAC,EAAE,CAAC;IACrBgD,UAAU,EAAE;EACd,CAAC;EACDd,GAAG,EAAE;IACHe,aAAa,EAAE,KAAK;IACpBP,UAAU,EAAE,QAAQ;IACpBC,cAAc,EAAE;EAClB;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -5,20 +5,21 @@
|
|
|
5
5
|
* @lastModified Mon 30 Jun 2025 at 10:46 PM
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
import React, { useRef, useLayoutEffect, useCallback, useMemo, useState } from 'react';
|
|
9
|
-
import { View, FlatList, TouchableOpacity, StyleSheet, Dimensions, InteractionManager } from 'react-native';
|
|
8
|
+
import React, { useRef, useLayoutEffect, useEffect, useCallback, useMemo, useState } from 'react';
|
|
9
|
+
import { View, FlatList, TouchableOpacity, StyleSheet, Dimensions, InteractionManager, Platform, Vibration } from 'react-native';
|
|
10
10
|
import { Text } from "../../../Text/index.js";
|
|
11
11
|
import { useInternalTheme } from "../../../../theme/hook/useInternalTheme.js";
|
|
12
12
|
import { scale, verticalScale } from 'react-native-size-matters';
|
|
13
13
|
import SkeletonPlaceholder from 'react-native-skeleton-placeholder';
|
|
14
14
|
import { RFValue } from 'react-native-responsive-fontsize';
|
|
15
15
|
const ITEM_WIDTH = scale(80);
|
|
16
|
-
const CONTAINER_PADDING = scale(
|
|
16
|
+
const CONTAINER_PADDING = scale(10);
|
|
17
17
|
const {
|
|
18
18
|
width: SCREEN_WIDTH
|
|
19
19
|
} = Dimensions.get('window');
|
|
20
20
|
import { usePrevious } from "../../../../hooks/usePrevious.js";
|
|
21
21
|
import { useSkeletonItems } from "../../../../hooks/useSkeletonItems.js";
|
|
22
|
+
import { debounce } from 'lodash';
|
|
22
23
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
23
24
|
const CategoryCard = /*#__PURE__*/React.memo(({
|
|
24
25
|
category = [],
|
|
@@ -33,6 +34,8 @@ const CategoryCard = /*#__PURE__*/React.memo(({
|
|
|
33
34
|
} = useInternalTheme(theme);
|
|
34
35
|
const flatListRef = useRef(null);
|
|
35
36
|
const [itemWidths, setItemWidths] = useState([]);
|
|
37
|
+
const isScrollingRef = useRef(false);
|
|
38
|
+
const lastPressedIndexRef = useRef(null);
|
|
36
39
|
|
|
37
40
|
// Memoize theme colors
|
|
38
41
|
const themeColors = useMemo(() => ({
|
|
@@ -61,8 +64,20 @@ const CategoryCard = /*#__PURE__*/React.memo(({
|
|
|
61
64
|
const listContainerStyle = useMemo(() => [styles.listContainer, {
|
|
62
65
|
flexDirection: 'row'
|
|
63
66
|
}], []);
|
|
67
|
+
|
|
68
|
+
// Haptic feedback utility
|
|
69
|
+
const triggerHapticFeedback = useCallback(() => {
|
|
70
|
+
if (Platform.OS === 'ios') {
|
|
71
|
+
// iOS haptic feedback (light impact)
|
|
72
|
+
Vibration.vibrate(1);
|
|
73
|
+
} else if (Platform.OS === 'android') {
|
|
74
|
+
// Android haptic feedback (short vibration)
|
|
75
|
+
Vibration.vibrate(10);
|
|
76
|
+
}
|
|
77
|
+
}, []);
|
|
64
78
|
const scrollToCategory = useCallback((index, animated) => {
|
|
65
|
-
if (!flatListRef.current || index < 0 || index >= category.length) return;
|
|
79
|
+
if (!flatListRef.current || index < 0 || index >= category.length || isScrollingRef.current) return;
|
|
80
|
+
isScrollingRef.current = true;
|
|
66
81
|
const RIGHT_SCROLL_BIAS = scale(40);
|
|
67
82
|
const offset = itemWidths.length ? itemWidths.slice(0, index).reduce((sum, w) => sum + w, 0) + (itemWidths[index] ?? ITEM_WIDTH) / 2 - SCREEN_WIDTH / 2 + RIGHT_SCROLL_BIAS : index * ITEM_WIDTH + ITEM_WIDTH / 2 - SCREEN_WIDTH / 2 + RIGHT_SCROLL_BIAS;
|
|
68
83
|
InteractionManager.runAfterInteractions(() => {
|
|
@@ -70,8 +85,28 @@ const CategoryCard = /*#__PURE__*/React.memo(({
|
|
|
70
85
|
offset: Math.max(0, offset),
|
|
71
86
|
animated
|
|
72
87
|
});
|
|
88
|
+
// Reset scrolling flag after animation completes
|
|
89
|
+
if (animated) {
|
|
90
|
+
setTimeout(() => {
|
|
91
|
+
isScrollingRef.current = false;
|
|
92
|
+
}, 300);
|
|
93
|
+
} else {
|
|
94
|
+
isScrollingRef.current = false;
|
|
95
|
+
}
|
|
73
96
|
});
|
|
74
97
|
}, [category, itemWidths]);
|
|
98
|
+
|
|
99
|
+
// Debounced scroll function to prevent rapid scrolling
|
|
100
|
+
const debouncedScrollToCategory = useMemo(() => debounce((index, animated) => {
|
|
101
|
+
scrollToCategory(index, animated);
|
|
102
|
+
}, 100), [scrollToCategory]);
|
|
103
|
+
|
|
104
|
+
// Cleanup debounced function on unmount
|
|
105
|
+
useEffect(() => {
|
|
106
|
+
return () => {
|
|
107
|
+
debouncedScrollToCategory.cancel();
|
|
108
|
+
};
|
|
109
|
+
}, [debouncedScrollToCategory]);
|
|
75
110
|
const onItemLayout = useCallback((event, index) => {
|
|
76
111
|
const {
|
|
77
112
|
width
|
|
@@ -85,16 +120,34 @@ const CategoryCard = /*#__PURE__*/React.memo(({
|
|
|
85
120
|
useLayoutEffect(() => {
|
|
86
121
|
if (selectedCategory && category.length > 0 && selectedCategory._id !== prevCategoryId) {
|
|
87
122
|
const index = category.findIndex(cat => cat._id === selectedCategory._id);
|
|
88
|
-
if (index >= 0
|
|
123
|
+
if (index >= 0 && index !== lastPressedIndexRef.current) {
|
|
124
|
+
// Use debounced scroll for external category changes
|
|
125
|
+
debouncedScrollToCategory(index, true);
|
|
126
|
+
}
|
|
89
127
|
}
|
|
90
|
-
}, [selectedCategory, category,
|
|
128
|
+
}, [selectedCategory, category, debouncedScrollToCategory, prevCategoryId]);
|
|
91
129
|
const handlePress = useCallback(item => {
|
|
92
|
-
|
|
130
|
+
// Prevent rapid successive taps on the same item
|
|
93
131
|
const index = category.findIndex(cat => cat._id === item._id);
|
|
94
|
-
if (index
|
|
95
|
-
|
|
132
|
+
if (index < 0) return;
|
|
133
|
+
|
|
134
|
+
// Check if same item is being pressed rapidly
|
|
135
|
+
if (lastPressedIndexRef.current === index && isScrollingRef.current) {
|
|
136
|
+
return;
|
|
96
137
|
}
|
|
97
|
-
|
|
138
|
+
lastPressedIndexRef.current = index;
|
|
139
|
+
|
|
140
|
+
// Trigger haptic feedback for better UX
|
|
141
|
+
triggerHapticFeedback();
|
|
142
|
+
|
|
143
|
+
// Call the callback
|
|
144
|
+
onPressCategory?.(item);
|
|
145
|
+
|
|
146
|
+
// Scroll to category with slight delay for smoother UX
|
|
147
|
+
requestAnimationFrame(() => {
|
|
148
|
+
scrollToCategory(index, true);
|
|
149
|
+
});
|
|
150
|
+
}, [category, onPressCategory, scrollToCategory, triggerHapticFeedback]);
|
|
98
151
|
|
|
99
152
|
// Memoize filled mode selected style
|
|
100
153
|
const filledSelectedStyle = useMemo(() => ({
|
|
@@ -128,11 +181,16 @@ const CategoryCard = /*#__PURE__*/React.memo(({
|
|
|
128
181
|
color: textColor
|
|
129
182
|
}];
|
|
130
183
|
return /*#__PURE__*/_jsxs(TouchableOpacity, {
|
|
131
|
-
activeOpacity: 0.
|
|
184
|
+
activeOpacity: 0.7,
|
|
132
185
|
onPress: () => handlePress(item),
|
|
133
186
|
style: containerStyle,
|
|
134
187
|
onLayout: event => onItemLayout(event, index),
|
|
135
188
|
accessibilityLabel: `Select category ${item.name}`,
|
|
189
|
+
accessibilityRole: "button",
|
|
190
|
+
accessibilityState: {
|
|
191
|
+
selected: isSelected
|
|
192
|
+
},
|
|
193
|
+
accessibilityHint: isSelected ? `${item.name} is currently selected` : `Double tap to select ${item.name} category`,
|
|
136
194
|
children: [/*#__PURE__*/_jsx(Text, {
|
|
137
195
|
style: textStyle,
|
|
138
196
|
children: item.name
|
|
@@ -167,7 +225,10 @@ const CategoryCard = /*#__PURE__*/React.memo(({
|
|
|
167
225
|
keyExtractor: keyExtractor,
|
|
168
226
|
horizontal: true,
|
|
169
227
|
showsHorizontalScrollIndicator: false,
|
|
170
|
-
contentContainerStyle: styles.listContainer,
|
|
228
|
+
contentContainerStyle: [styles.listContainer, {
|
|
229
|
+
paddingLeft: mode === 'filled' ? CONTAINER_PADDING : 0,
|
|
230
|
+
paddingRight: mode === 'filled' ? CONTAINER_PADDING + scale(2) : 0
|
|
231
|
+
}],
|
|
171
232
|
extraData: selectedCategory?._id,
|
|
172
233
|
renderItem: renderItem,
|
|
173
234
|
getItemLayout: getItemLayout,
|
|
@@ -177,7 +238,21 @@ const CategoryCard = /*#__PURE__*/React.memo(({
|
|
|
177
238
|
initialNumToRender: 10,
|
|
178
239
|
maxToRenderPerBatch: 12,
|
|
179
240
|
windowSize: 5,
|
|
180
|
-
removeClippedSubviews: true
|
|
241
|
+
removeClippedSubviews: true,
|
|
242
|
+
onScrollBeginDrag: () => {
|
|
243
|
+
isScrollingRef.current = true;
|
|
244
|
+
},
|
|
245
|
+
onScrollEndDrag: () => {
|
|
246
|
+
// Reset after a short delay to allow momentum scrolling
|
|
247
|
+
setTimeout(() => {
|
|
248
|
+
isScrollingRef.current = false;
|
|
249
|
+
}, 200);
|
|
250
|
+
},
|
|
251
|
+
onMomentumScrollEnd: () => {
|
|
252
|
+
isScrollingRef.current = false;
|
|
253
|
+
},
|
|
254
|
+
accessibilityLabel: "Category selection list",
|
|
255
|
+
accessibilityRole: "list"
|
|
181
256
|
})
|
|
182
257
|
});
|
|
183
258
|
}, (prev, next) => prev.category === next.category && prev.activeCategory?._id === next.activeCategory?._id && prev.isLoading === next.isLoading && prev.mode === next.mode && prev.theme === next.theme && prev.onPressCategory === next.onPressCategory);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","useRef","useLayoutEffect","useCallback","useMemo","useState","View","FlatList","TouchableOpacity","StyleSheet","Dimensions","InteractionManager","Text","useInternalTheme","scale","verticalScale","SkeletonPlaceholder","RFValue","ITEM_WIDTH","CONTAINER_PADDING","width","SCREEN_WIDTH","get","usePrevious","useSkeletonItems","jsx","_jsx","jsxs","_jsxs","CategoryCard","memo","category","activeCategory","onPressCategory","theme","mode","isLoading","appliedTheme","flatListRef","itemWidths","setItemWidths","themeColors","primary","colors","outline","buttonText","textPrimary","skeletonBaseColor","skeletonHighlightColor","selectedCategory","prevCategoryId","_id","skeletonItems","skeletonItemStyle","height","borderRadius","marginRight","listContainerStyle","styles","listContainer","flexDirection","scrollToCategory","index","animated","current","length","RIGHT_SCROLL_BIAS","offset","slice","reduce","sum","w","runAfterInteractions","scrollToOffset","Math","max","onItemLayout","event","nativeEvent","layout","prev","newWidths","findIndex","cat","handlePress","item","setTimeout","filledSelectedStyle","borderWidth","borderColor","backgroundColor","filledUnselectedStyle","underlineStyle","underline","renderItem","isSelected","isFilledMode","containerStyle","tabContainer","textColor","textStyle","tabText","color","activeOpacity","onPress","style","onLayout","accessibilityLabel","name","children","renderSkeleton","highlightColor","map","_","getItemLayout","keyExtractor","container","ref","data","horizontal","showsHorizontalScrollIndicator","contentContainerStyle","extraData","decelerationRate","scrollEnabled","scrollEventThrottle","initialNumToRender","maxToRenderPerBatch","windowSize","removeClippedSubviews","next","create","marginVertical","paddingVertical","paddingLeft","paddingRight","alignItems","justifyContent","paddingHorizontal","fontSize","textTransform","fontWeight","lineHeight","marginTop"],"sourceRoot":"../../../../../../src","sources":["components/Content/Card/Category/Category.tsx"],"mappings":";;AAAA;AACA;AACA;AACA;;AAEA,OAAOA,KAAK,IACVC,MAAM,EACNC,eAAe,EACfC,WAAW,EACXC,OAAO,EACPC,QAAQ,QACH,OAAO;AACd,SACEC,IAAI,EACJC,QAAQ,EACRC,gBAAgB,EAChBC,UAAU,EACVC,UAAU,EACVC,kBAAkB,QAGb,cAAc;AACrB,SAASC,IAAI,QAAQ,wBAAe;AACpC,SAASC,gBAAgB,QAAQ,4CAAyC;AAC1E,SAASC,KAAK,EAAEC,aAAa,QAAQ,2BAA2B;AAChE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E,CAAC;IACrB2H,aAAa,EAAE,YAAY;IAC3BC,UAAU,EAAE,KAAK;IACjBC,UAAU,EAAEhI,KAAK,CAAC,EAAE;EACtB,CAAC;EACD+E,SAAS,EAAE;IACTkD,SAAS,EAAEhI,aAAa,CAAC,CAAC,CAAC;IAC3BuC,MAAM,EAAExC,KAAK,CAAC,CAAC,CAAC;IAChBM,KAAK,EAAE,KAAK;IACZmC,YAAY,EAAEzC,KAAK,CAAC,CAAC;EACvB;AACF,CAAC,CAAC;AAEF,eAAee,YAAY","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":["React","useRef","useLayoutEffect","useEffect","useCallback","useMemo","useState","View","FlatList","TouchableOpacity","StyleSheet","Dimensions","InteractionManager","Platform","Vibration","Text","useInternalTheme","scale","verticalScale","SkeletonPlaceholder","RFValue","ITEM_WIDTH","CONTAINER_PADDING","width","SCREEN_WIDTH","get","usePrevious","useSkeletonItems","debounce","jsx","_jsx","jsxs","_jsxs","CategoryCard","memo","category","activeCategory","onPressCategory","theme","mode","isLoading","appliedTheme","flatListRef","itemWidths","setItemWidths","isScrollingRef","lastPressedIndexRef","themeColors","primary","colors","outline","buttonText","textPrimary","skeletonBaseColor","skeletonHighlightColor","selectedCategory","prevCategoryId","_id","skeletonItems","skeletonItemStyle","height","borderRadius","marginRight","listContainerStyle","styles","listContainer","flexDirection","triggerHapticFeedback","OS","vibrate","scrollToCategory","index","animated","current","length","RIGHT_SCROLL_BIAS","offset","slice","reduce","sum","w","runAfterInteractions","scrollToOffset","Math","max","setTimeout","debouncedScrollToCategory","cancel","onItemLayout","event","nativeEvent","layout","prev","newWidths","findIndex","cat","handlePress","item","requestAnimationFrame","filledSelectedStyle","borderWidth","borderColor","backgroundColor","filledUnselectedStyle","underlineStyle","underline","renderItem","isSelected","isFilledMode","containerStyle","tabContainer","textColor","textStyle","tabText","color","activeOpacity","onPress","style","onLayout","accessibilityLabel","name","accessibilityRole","accessibilityState","selected","accessibilityHint","children","renderSkeleton","highlightColor","map","_","getItemLayout","keyExtractor","container","ref","data","horizontal","showsHorizontalScrollIndicator","contentContainerStyle","paddingLeft","paddingRight","extraData","decelerationRate","scrollEnabled","scrollEventThrottle","initialNumToRender","maxToRenderPerBatch","windowSize","removeClippedSubviews","onScrollBeginDrag","onScrollEndDrag","onMomentumScrollEnd","next","create","marginVertical","paddingVertical","alignItems","justifyContent","paddingHorizontal","fontSize","textTransform","fontWeight","lineHeight","marginTop"],"sourceRoot":"../../../../../../src","sources":["components/Content/Card/Category/Category.tsx"],"mappings":";;AAAA;AACA;AACA;AACA;;AAEA,OAAOA,KAAK,IACVC,MAAM,EACNC,eAAe,EACfC,SAAS,EACTC,WAAW,EACXC,OAAO,EACPC,QAAQ,QACH,OAAO;AACd,SACEC,IAAI,EACJC,QAAQ,EACRC,gBAAgB,EAChBC,UAAU,EACVC,UAAU,EACVC,kBAAkB,EAClBC,QAAQ,EACRC,SAAS,QAGJ,cAAc;AACrB,SAASC,IAAI,QAAQ,wBAAe;AACpC,SAASC,gBAAgB,QAAQ,4CAAyC;AAC1E,SAASC,KAAK,EAAEC,aAAa,QAAQ,2BAA2B;AAChE,OAAOC,mBAAmB,MAAM,mCAAmC;AAEnE,SAASC,OAAO,QAAQ,kCAAkC;AAqB1D,MAAMC,UAAU,GAAGJ,KAAK,CAAC,EAAE,CAAC;AAC5B,MAAMK,iBAAiB,GAAGL,KAAK,CAAC,EAAE,CAAC;AACnC,MAAM;EAAEM,KAAK,EAAEC;AAAa,CAAC,GAAGb,UAAU,CAACc,GAAG,CAAC,QAAQ,CAAC;AAExD,SAASC,WAAW,QAAQ,kCAA+B;AAC3D,SAASC,gBAAgB,QAAQ,uCAAoC;AACrE,SAASC,QAAQ,QAAQ,QAAQ;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAElC,MAAMC,YAAY,gBAAGjC,KAAK,CAACkC,IAAI,CAC7B,CAAC;EACCC,QAAQ,GAAG,EAAE;EACbC,cAAc;EACdC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