@zezosoft/zezo-ott-react-native-ui-kit 0.1.0 → 1.0.1
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/LICENSE +0 -0
- package/README.md +46 -15
- package/lib/module/Styles/globalStyles.js +76 -0
- package/lib/module/Styles/globalStyles.js.map +1 -0
- package/lib/module/assets/animations/135037-payment-processing-error.json +0 -0
- package/lib/module/assets/animations/7227-vui-animation.json +0 -0
- package/lib/module/assets/animations/succesfull-payment.json +0 -0
- package/lib/module/assets/animations/voice-icon.json +0 -0
- package/lib/module/assets/img/back.png +0 -0
- package/lib/module/assets/img/bottom-panel.png +0 -0
- package/lib/module/assets/img/camera.png +0 -0
- package/lib/module/assets/img/camera2.png +0 -0
- package/lib/module/assets/img/h.svg +0 -0
- package/lib/module/assets/img/home.png +0 -0
- package/lib/module/assets/img/lock.png +0 -0
- package/lib/module/assets/img/play.png +0 -0
- package/lib/module/assets/img/profile.jpg +0 -0
- package/lib/module/assets/img/qr-code.png +0 -0
- package/lib/module/assets/img/shadow.png +0 -0
- package/lib/module/assets/img/shadow2.png +0 -0
- package/lib/module/assets/img/user.png +0 -0
- package/lib/module/assets/svg/Account.svg +4 -0
- package/lib/module/assets/svg/Favourite.svg +14 -0
- package/lib/module/assets/svg/Upcoming.svg +4 -0
- package/lib/module/assets/svg/content-error.svg +0 -0
- package/lib/module/assets/svg/download.svg +0 -0
- package/lib/module/assets/svg/eye-off.svg +10 -0
- package/lib/module/assets/svg/favorites.svg +0 -0
- package/lib/module/assets/svg/home.svg +0 -0
- package/lib/module/assets/svg/home1.svg +3 -0
- package/lib/module/assets/svg/menu-bar.svg +0 -0
- package/lib/module/assets/svg/my-space.svg +0 -0
- package/lib/module/assets/svg/play-icon-with-bg.svg +0 -0
- package/lib/module/assets/svg/profile.svg +4 -0
- package/lib/module/assets/svg/search.svg +0 -0
- package/lib/module/assets/svg/search1.svg +4 -0
- package/lib/module/assets/svg/server-error.svg +0 -0
- package/lib/module/components/Account/Account.js +255 -0
- package/lib/module/components/Account/Account.js.map +1 -0
- package/lib/module/components/Account/index.js +4 -0
- package/lib/module/components/Account/index.js.map +1 -0
- package/lib/module/components/Auth/ForgotPassword/ForgotPassword.js +217 -0
- package/lib/module/components/Auth/ForgotPassword/ForgotPassword.js.map +1 -0
- package/lib/module/components/Auth/Login/LoginWithEmail.js +306 -0
- package/lib/module/components/Auth/Login/LoginWithEmail.js.map +1 -0
- package/lib/module/components/Auth/Login/LoginWithPhone.js +208 -0
- package/lib/module/components/Auth/Login/LoginWithPhone.js.map +1 -0
- package/lib/module/components/Auth/OTP/OTP.js +274 -0
- package/lib/module/components/Auth/OTP/OTP.js.map +1 -0
- package/lib/module/components/Auth/SignUp/SignUp.js +344 -0
- package/lib/module/components/Auth/SignUp/SignUp.js.map +1 -0
- package/lib/module/components/Auth/SplashScreen/SplashScreen.js +132 -0
- package/lib/module/components/Auth/SplashScreen/SplashScreen.js.map +1 -0
- package/lib/module/components/Auth/SplashScreen/components/SplashImage/SplashImage.js +61 -0
- package/lib/module/components/Auth/SplashScreen/components/SplashImage/SplashImage.js.map +1 -0
- package/lib/module/components/Auth/SplashScreen/components/SplashLottie/SplashLottie.js +57 -0
- package/lib/module/components/Auth/SplashScreen/components/SplashLottie/SplashLottie.js.map +1 -0
- package/lib/module/components/Auth/SplashScreen/components/SplashVideo/SplashVideo.js +82 -0
- package/lib/module/components/Auth/SplashScreen/components/SplashVideo/SplashVideo.js.map +1 -0
- package/lib/module/components/Auth/index.js +23 -0
- package/lib/module/components/Auth/index.js.map +1 -0
- package/lib/module/components/BackgroundLayout/BackgroundLayout.js +124 -0
- package/lib/module/components/BackgroundLayout/BackgroundLayout.js.map +1 -0
- package/lib/module/components/BlogView/BlogView.js +211 -0
- package/lib/module/components/BlogView/BlogView.js.map +1 -0
- package/lib/module/components/BlogView/index.js +10 -0
- package/lib/module/components/BlogView/index.js.map +1 -0
- package/lib/module/components/Button/BackBtn.js +72 -0
- package/lib/module/components/Button/BackBtn.js.map +1 -0
- package/lib/module/components/Button/MenuBtn.js +169 -0
- package/lib/module/components/Button/MenuBtn.js.map +1 -0
- package/lib/module/components/Button/PrimaryBtn.js +83 -0
- package/lib/module/components/Button/PrimaryBtn.js.map +1 -0
- package/lib/module/components/Button/TextButton.js +89 -0
- package/lib/module/components/Button/TextButton.js.map +1 -0
- package/lib/module/components/Button/index.js +17 -0
- package/lib/module/components/Button/index.js.map +1 -0
- package/lib/module/components/Content/Card/Category/Category.js +182 -0
- package/lib/module/components/Content/Card/Category/Category.js.map +1 -0
- package/lib/module/components/Content/Card/NowWatching/NowWatching.js +355 -0
- package/lib/module/components/Content/Card/NowWatching/NowWatching.js.map +1 -0
- package/lib/module/components/Content/Card/Sliders/Styles/One.js +315 -0
- package/lib/module/components/Content/Card/Sliders/Styles/One.js.map +1 -0
- package/lib/module/components/Content/Card/Sliders/Styles/Two.js +199 -0
- package/lib/module/components/Content/Card/Sliders/Styles/Two.js.map +1 -0
- package/lib/module/components/{Section → Content}/Card/Sliders/index.js +4 -2
- package/lib/module/components/Content/Card/Sliders/index.js.map +1 -0
- package/lib/module/components/Content/Card/Styles/Five.js +198 -0
- package/lib/module/components/Content/Card/Styles/Five.js.map +1 -0
- package/lib/module/components/Content/Card/Styles/Four.js +204 -0
- package/lib/module/components/Content/Card/Styles/Four.js.map +1 -0
- package/lib/module/components/Content/Card/Styles/One.js +200 -0
- package/lib/module/components/Content/Card/Styles/One.js.map +1 -0
- package/lib/module/components/Content/Card/Styles/RotateInOut.js +216 -0
- package/lib/module/components/Content/Card/Styles/RotateInOut.js.map +1 -0
- package/lib/module/components/Content/Card/Styles/Six.js +209 -0
- package/lib/module/components/Content/Card/Styles/Six.js.map +1 -0
- package/lib/module/components/Content/Card/Styles/Three.js +214 -0
- package/lib/module/components/Content/Card/Styles/Three.js.map +1 -0
- package/lib/module/components/Content/Card/Styles/TopTen.js +287 -0
- package/lib/module/components/Content/Card/Styles/TopTen.js.map +1 -0
- package/lib/module/components/Content/Card/Styles/Two.js +217 -0
- package/lib/module/components/Content/Card/Styles/Two.js.map +1 -0
- package/lib/module/components/Content/Card/components/CardPoster.js +183 -0
- package/lib/module/components/Content/Card/components/CardPoster.js.map +1 -0
- package/lib/module/components/Content/Card/components/NavigateToMore.js +57 -0
- package/lib/module/components/Content/Card/components/NavigateToMore.js.map +1 -0
- package/lib/module/components/Content/Card/components/NoContentFallback.js +116 -0
- package/lib/module/components/Content/Card/components/NoContentFallback.js.map +1 -0
- package/lib/module/components/Content/Card/components/ShowAllButton.js +71 -0
- package/lib/module/components/Content/Card/components/ShowAllButton.js.map +1 -0
- package/lib/module/components/Content/Card/components/ThumbnailCard.js +129 -0
- package/lib/module/components/Content/Card/components/ThumbnailCard.js.map +1 -0
- package/lib/module/components/Content/Card/index.js +32 -0
- package/lib/module/components/Content/Card/index.js.map +1 -0
- package/lib/module/components/Content/Content.js +127 -0
- package/lib/module/components/Content/Content.js.map +1 -0
- package/lib/module/components/Content/Sections.js +145 -0
- package/lib/module/components/Content/Sections.js.map +1 -0
- package/lib/module/components/ContentView/ContentView.js +128 -0
- package/lib/module/components/ContentView/ContentView.js.map +1 -0
- package/lib/module/components/ContentView/MoreContentList.js +211 -0
- package/lib/module/components/ContentView/MoreContentList.js.map +1 -0
- package/lib/module/components/ContentView/components/AboutSection.js +115 -0
- package/lib/module/components/ContentView/components/AboutSection.js.map +1 -0
- package/lib/module/components/ContentView/components/CastCard.js +191 -0
- package/lib/module/components/ContentView/components/CastCard.js.map +1 -0
- package/lib/module/components/ContentView/components/EpisodeCard.js +393 -0
- package/lib/module/components/ContentView/components/EpisodeCard.js.map +1 -0
- package/lib/module/components/ContentView/components/GenreTags.js +78 -0
- package/lib/module/components/ContentView/components/GenreTags.js.map +1 -0
- package/lib/module/components/ContentView/components/HeroBanner.js +223 -0
- package/lib/module/components/ContentView/components/HeroBanner.js.map +1 -0
- package/lib/module/components/ContentView/components/PlayButton.js +40 -0
- package/lib/module/components/ContentView/components/PlayButton.js.map +1 -0
- package/lib/module/components/ContentView/components/Title.js +104 -0
- package/lib/module/components/ContentView/components/Title.js.map +1 -0
- package/lib/module/components/ContentView/components/TrailerButton.js +53 -0
- package/lib/module/components/ContentView/components/TrailerButton.js.map +1 -0
- package/lib/module/components/ContentView/index.js +10 -0
- package/lib/module/components/ContentView/index.js.map +1 -0
- package/lib/module/components/Headers/AppHeader.js +96 -0
- package/lib/module/components/Headers/AppHeader.js.map +1 -0
- package/lib/module/components/Headers/One.js +31 -28
- package/lib/module/components/Headers/One.js.map +1 -1
- package/lib/module/components/Headers/Three.js +11 -14
- package/lib/module/components/Headers/Three.js.map +1 -1
- package/lib/module/components/Headers/Two.js +12 -10
- package/lib/module/components/Headers/Two.js.map +1 -1
- package/lib/module/components/Headers/index.js +4 -4
- package/lib/module/components/Headers/index.js.map +1 -1
- package/lib/module/components/Icons/AlertIcon.js.map +1 -1
- package/lib/module/components/Icons/DeviceIcon.js.map +1 -1
- package/lib/module/components/Icons/ForgotPasswordMessageIcon.js.map +1 -1
- package/lib/module/components/Icons/ForgotPasswordMessageIconTwo.js.map +1 -1
- package/lib/module/components/Icons/NewIndex.js +13 -1
- package/lib/module/components/Icons/NewIndex.js.map +1 -1
- package/lib/module/components/Icons/ResendOTP.js.map +1 -1
- package/lib/module/components/Input/Input.js +17 -0
- package/lib/module/components/Input/Input.js.map +1 -0
- package/lib/module/components/Input/InputOne.js +126 -0
- package/lib/module/components/Input/InputOne.js.map +1 -0
- package/lib/module/components/Input/InputTwo.js +153 -0
- package/lib/module/components/Input/InputTwo.js.map +1 -0
- package/lib/module/components/Input/PhoneNumberInput.js +285 -0
- package/lib/module/components/Input/PhoneNumberInput.js.map +1 -0
- package/lib/module/components/Keyboard/HideKeyboard.js +69 -0
- package/lib/module/components/Keyboard/HideKeyboard.js.map +1 -0
- package/lib/module/components/Loader/Loader.js.map +1 -1
- package/lib/module/components/Logo/Logo.js +43 -5
- package/lib/module/components/Logo/Logo.js.map +1 -1
- package/lib/module/components/Search/One.js +193 -0
- package/lib/module/components/Search/One.js.map +1 -0
- package/lib/module/components/Search/components/RecentSearchesSection.js +161 -0
- package/lib/module/components/Search/components/RecentSearchesSection.js.map +1 -0
- package/lib/module/components/Search/components/SearchCard.js +182 -0
- package/lib/module/components/Search/components/SearchCard.js.map +1 -0
- package/lib/module/components/Search/index.js +14 -0
- package/lib/module/components/Search/index.js.map +1 -0
- package/lib/module/components/Settings/AppSettings.js +226 -0
- package/lib/module/components/Settings/AppSettings.js.map +1 -0
- package/lib/module/components/Settings/index.js +4 -0
- package/lib/module/components/Settings/index.js.map +1 -0
- package/lib/module/components/Subscription/SubOne.js +333 -0
- package/lib/module/components/Subscription/SubOne.js.map +1 -0
- package/lib/module/components/Subscription/index.js +13 -0
- package/lib/module/components/Subscription/index.js.map +1 -0
- package/lib/module/components/TabBar/One.js +146 -0
- package/lib/module/components/TabBar/One.js.map +1 -0
- package/lib/module/components/TabBar/Three.js +131 -0
- package/lib/module/components/TabBar/Three.js.map +1 -0
- package/lib/module/components/TabBar/Two.js +133 -0
- package/lib/module/components/TabBar/Two.js.map +1 -0
- package/lib/module/components/TabBar/index.js +17 -0
- package/lib/module/components/TabBar/index.js.map +1 -0
- package/lib/module/components/Text/Text.js +43 -0
- package/lib/module/components/Text/Text.js.map +1 -0
- package/lib/module/components/Text/index.js +8 -0
- package/lib/module/components/Text/index.js.map +1 -0
- package/lib/module/components/User/DeviceSessions/DeviceSessions.js +315 -0
- package/lib/module/components/User/DeviceSessions/DeviceSessions.js.map +1 -0
- package/lib/module/components/User/WatchHistory/WatchHistory.js +117 -0
- package/lib/module/components/User/WatchHistory/WatchHistory.js.map +1 -0
- package/lib/module/components/User/WatchLater/WatchLater.js +275 -0
- package/lib/module/components/User/WatchLater/WatchLater.js.map +1 -0
- package/lib/module/components/User/components/UserAvatar.js +44 -0
- package/lib/module/components/User/components/UserAvatar.js.map +1 -0
- package/lib/module/components/User/components/UserSection.js +164 -0
- package/lib/module/components/User/components/UserSection.js.map +1 -0
- package/lib/module/components/User/index.js +12 -0
- package/lib/module/components/User/index.js.map +1 -0
- package/lib/module/components/View/View.js +24 -0
- package/lib/module/components/View/View.js.map +1 -0
- package/lib/module/components/View/index.js +8 -0
- package/lib/module/components/View/index.js.map +1 -0
- package/lib/module/components/index.js +18 -5
- package/lib/module/components/index.js.map +1 -1
- package/lib/module/components/layout/SafeAreaWrapper.js +34 -0
- package/lib/module/components/layout/SafeAreaWrapper.js.map +1 -0
- package/lib/module/components/layout/index.js +4 -0
- package/lib/module/components/layout/index.js.map +1 -0
- package/lib/module/constants/dummySections.js +38 -0
- package/lib/module/constants/dummySections.js.map +1 -0
- package/lib/module/hooks/useDebounce.js +11 -0
- package/lib/module/hooks/useDebounce.js.map +1 -0
- package/lib/module/hooks/useInitSplashCacheSync.js +116 -0
- package/lib/module/hooks/useInitSplashCacheSync.js.map +1 -0
- package/lib/module/hooks/useKeyboard.js +31 -0
- package/lib/module/hooks/useKeyboard.js.map +1 -0
- package/lib/module/hooks/usePaginatedSection.js +64 -0
- package/lib/module/hooks/usePaginatedSection.js.map +1 -0
- package/lib/module/index.js +3 -2
- package/lib/module/index.js.map +1 -1
- package/lib/module/store/RecentSearchesStore.js +65 -0
- package/lib/module/store/RecentSearchesStore.js.map +1 -0
- package/lib/module/store/splashStore.js +69 -0
- package/lib/module/store/splashStore.js.map +1 -0
- package/lib/module/theme/ThemeProvider.js +90 -0
- package/lib/module/theme/ThemeProvider.js.map +1 -0
- package/lib/module/theme/hook/useTheme.js +45 -0
- package/lib/module/theme/hook/useTheme.js.map +1 -0
- package/lib/module/theme/index.js +10 -0
- package/lib/module/theme/index.js.map +1 -0
- package/lib/module/theme/themes.js +124 -90
- package/lib/module/theme/themes.js.map +1 -1
- package/lib/module/types/content/content-view.types.js +4 -0
- package/lib/module/types/content/content-view.types.js.map +1 -0
- package/lib/module/types/content/index.js +2 -0
- package/lib/module/types/content/index.js.map +1 -0
- package/lib/module/types/hook/index.js +2 -0
- package/lib/module/types/hook/index.js.map +1 -0
- package/lib/module/types/hook/usePaginatedSetion.js +4 -0
- package/lib/module/types/hook/usePaginatedSetion.js.map +1 -0
- package/lib/module/types/index.js +0 -3
- package/lib/module/types/index.js.map +1 -1
- package/lib/module/types/sections/index.js +4 -0
- package/lib/module/types/sections/index.js.map +1 -0
- package/lib/module/utils/Display.js +22 -0
- package/lib/module/utils/Display.js.map +1 -0
- package/lib/module/utils/PlatformSelector.js +31 -0
- package/lib/module/utils/PlatformSelector.js.map +1 -0
- package/lib/module/utils/SizeMatters.js +9 -0
- package/lib/module/utils/SizeMatters.js.map +1 -0
- package/lib/typescript/src/Styles/globalStyles.d.ts +71 -0
- package/lib/typescript/src/Styles/globalStyles.d.ts.map +1 -0
- package/lib/typescript/src/components/Account/Account.d.ts +56 -0
- package/lib/typescript/src/components/Account/Account.d.ts.map +1 -0
- package/lib/typescript/src/components/Account/index.d.ts +2 -0
- package/lib/typescript/src/components/Account/index.d.ts.map +1 -0
- package/lib/typescript/src/components/Auth/ForgotPassword/ForgotPassword.d.ts +51 -0
- package/lib/typescript/src/components/Auth/ForgotPassword/ForgotPassword.d.ts.map +1 -0
- package/lib/typescript/src/components/Auth/Login/LoginWithEmail.d.ts +69 -0
- package/lib/typescript/src/components/Auth/Login/LoginWithEmail.d.ts.map +1 -0
- package/lib/typescript/src/components/Auth/Login/LoginWithPhone.d.ts +57 -0
- package/lib/typescript/src/components/Auth/Login/LoginWithPhone.d.ts.map +1 -0
- package/lib/typescript/src/components/Auth/OTP/OTP.d.ts +62 -0
- package/lib/typescript/src/components/Auth/OTP/OTP.d.ts.map +1 -0
- package/lib/typescript/src/components/Auth/SignUp/SignUp.d.ts +65 -0
- package/lib/typescript/src/components/Auth/SignUp/SignUp.d.ts.map +1 -0
- package/lib/typescript/src/components/Auth/SplashScreen/SplashScreen.d.ts +34 -0
- package/lib/typescript/src/components/Auth/SplashScreen/SplashScreen.d.ts.map +1 -0
- package/lib/typescript/src/components/Auth/SplashScreen/components/SplashImage/SplashImage.d.ts +16 -0
- package/lib/typescript/src/components/Auth/SplashScreen/components/SplashImage/SplashImage.d.ts.map +1 -0
- package/lib/typescript/src/components/Auth/SplashScreen/components/SplashLottie/SplashLottie.d.ts +17 -0
- package/lib/typescript/src/components/Auth/SplashScreen/components/SplashLottie/SplashLottie.d.ts.map +1 -0
- package/lib/typescript/src/components/Auth/SplashScreen/components/SplashVideo/SplashVideo.d.ts +19 -0
- package/lib/typescript/src/components/Auth/SplashScreen/components/SplashVideo/SplashVideo.d.ts.map +1 -0
- package/lib/typescript/src/components/Auth/index.d.ts +230 -0
- package/lib/typescript/src/components/Auth/index.d.ts.map +1 -0
- package/lib/typescript/src/components/BackgroundLayout/BackgroundLayout.d.ts +16 -0
- package/lib/typescript/src/components/BackgroundLayout/BackgroundLayout.d.ts.map +1 -0
- package/lib/typescript/src/components/BlogView/BlogView.d.ts +29 -0
- package/lib/typescript/src/components/BlogView/BlogView.d.ts.map +1 -0
- package/lib/typescript/src/components/BlogView/index.d.ts +7 -0
- package/lib/typescript/src/components/BlogView/index.d.ts.map +1 -0
- package/lib/typescript/src/components/Button/BackBtn.d.ts +18 -0
- package/lib/typescript/src/components/Button/BackBtn.d.ts.map +1 -0
- package/lib/typescript/src/components/Button/MenuBtn.d.ts +17 -0
- package/lib/typescript/src/components/Button/MenuBtn.d.ts.map +1 -0
- package/lib/typescript/src/components/Button/PrimaryBtn.d.ts +20 -0
- package/lib/typescript/src/components/Button/PrimaryBtn.d.ts.map +1 -0
- package/lib/typescript/src/components/Button/TextButton.d.ts +17 -0
- package/lib/typescript/src/components/Button/TextButton.d.ts.map +1 -0
- package/lib/typescript/src/components/Button/index.d.ts +38 -0
- package/lib/typescript/src/components/Button/index.d.ts.map +1 -0
- package/lib/typescript/src/components/Content/Card/Category/Category.d.ts +26 -0
- package/lib/typescript/src/components/Content/Card/Category/Category.d.ts.map +1 -0
- package/lib/typescript/src/components/Content/Card/NowWatching/NowWatching.d.ts +49 -0
- package/lib/typescript/src/components/Content/Card/NowWatching/NowWatching.d.ts.map +1 -0
- package/lib/typescript/src/components/Content/Card/Sliders/Styles/One.d.ts +20 -0
- package/lib/typescript/src/components/Content/Card/Sliders/Styles/One.d.ts.map +1 -0
- package/lib/typescript/src/components/Content/Card/Sliders/Styles/Two.d.ts +18 -0
- package/lib/typescript/src/components/Content/Card/Sliders/Styles/Two.d.ts.map +1 -0
- package/lib/typescript/src/components/Content/Card/Sliders/index.d.ts +22 -0
- package/lib/typescript/src/components/Content/Card/Sliders/index.d.ts.map +1 -0
- package/lib/typescript/src/components/Content/Card/Styles/Five.d.ts +36 -0
- package/lib/typescript/src/components/Content/Card/Styles/Five.d.ts.map +1 -0
- package/lib/typescript/src/components/Content/Card/Styles/Four.d.ts +37 -0
- package/lib/typescript/src/components/Content/Card/Styles/Four.d.ts.map +1 -0
- package/lib/typescript/src/components/Content/Card/Styles/One.d.ts +37 -0
- package/lib/typescript/src/components/Content/Card/Styles/One.d.ts.map +1 -0
- package/lib/typescript/src/components/Content/Card/Styles/RotateInOut.d.ts +37 -0
- package/lib/typescript/src/components/Content/Card/Styles/RotateInOut.d.ts.map +1 -0
- package/lib/typescript/src/components/Content/Card/Styles/Six.d.ts +32 -0
- package/lib/typescript/src/components/Content/Card/Styles/Six.d.ts.map +1 -0
- package/lib/typescript/src/components/Content/Card/Styles/Three.d.ts +37 -0
- package/lib/typescript/src/components/Content/Card/Styles/Three.d.ts.map +1 -0
- package/lib/typescript/src/components/Content/Card/Styles/TopTen.d.ts +33 -0
- package/lib/typescript/src/components/Content/Card/Styles/TopTen.d.ts.map +1 -0
- package/lib/typescript/src/components/Content/Card/Styles/Two.d.ts +36 -0
- package/lib/typescript/src/components/Content/Card/Styles/Two.d.ts.map +1 -0
- package/lib/typescript/src/components/Content/Card/components/CardPoster.d.ts +24 -0
- package/lib/typescript/src/components/Content/Card/components/CardPoster.d.ts.map +1 -0
- package/lib/typescript/src/components/Content/Card/components/NavigateToMore.d.ts +17 -0
- package/lib/typescript/src/components/Content/Card/components/NavigateToMore.d.ts.map +1 -0
- package/lib/typescript/src/components/Content/Card/components/NoContentFallback.d.ts +18 -0
- package/lib/typescript/src/components/Content/Card/components/NoContentFallback.d.ts.map +1 -0
- package/lib/typescript/src/components/Content/Card/components/ShowAllButton.d.ts +20 -0
- package/lib/typescript/src/components/Content/Card/components/ShowAllButton.d.ts.map +1 -0
- package/lib/typescript/src/components/Content/Card/components/ThumbnailCard.d.ts +19 -0
- package/lib/typescript/src/components/Content/Card/components/ThumbnailCard.d.ts.map +1 -0
- package/lib/typescript/src/components/Content/Card/index.d.ts +237 -0
- package/lib/typescript/src/components/Content/Card/index.d.ts.map +1 -0
- package/lib/typescript/src/components/Content/Content.d.ts +59 -0
- package/lib/typescript/src/components/Content/Content.d.ts.map +1 -0
- package/lib/typescript/src/components/Content/Sections.d.ts +45 -0
- package/lib/typescript/src/components/Content/Sections.d.ts.map +1 -0
- package/lib/typescript/src/components/ContentView/ContentView.d.ts +15 -0
- package/lib/typescript/src/components/ContentView/ContentView.d.ts.map +1 -0
- package/lib/typescript/src/components/ContentView/MoreContentList.d.ts +27 -0
- package/lib/typescript/src/components/ContentView/MoreContentList.d.ts.map +1 -0
- package/lib/typescript/src/components/ContentView/components/AboutSection.d.ts +24 -0
- package/lib/typescript/src/components/ContentView/components/AboutSection.d.ts.map +1 -0
- package/lib/typescript/src/components/ContentView/components/CastCard.d.ts +32 -0
- package/lib/typescript/src/components/ContentView/components/CastCard.d.ts.map +1 -0
- package/lib/typescript/src/components/ContentView/components/EpisodeCard.d.ts +22 -0
- package/lib/typescript/src/components/ContentView/components/EpisodeCard.d.ts.map +1 -0
- package/lib/typescript/src/components/ContentView/components/GenreTags.d.ts +22 -0
- package/lib/typescript/src/components/ContentView/components/GenreTags.d.ts.map +1 -0
- package/lib/typescript/src/components/ContentView/components/HeroBanner.d.ts +8 -0
- package/lib/typescript/src/components/ContentView/components/HeroBanner.d.ts.map +1 -0
- package/lib/typescript/src/components/ContentView/components/PlayButton.d.ts +15 -0
- package/lib/typescript/src/components/ContentView/components/PlayButton.d.ts.map +1 -0
- package/lib/typescript/src/components/ContentView/components/Title.d.ts +24 -0
- package/lib/typescript/src/components/ContentView/components/Title.d.ts.map +1 -0
- package/lib/typescript/src/components/ContentView/components/TrailerButton.d.ts +18 -0
- package/lib/typescript/src/components/ContentView/components/TrailerButton.d.ts.map +1 -0
- package/lib/typescript/src/components/ContentView/index.d.ts +7 -0
- package/lib/typescript/src/components/ContentView/index.d.ts.map +1 -0
- package/lib/typescript/src/components/Headers/AppHeader.d.ts +20 -0
- package/lib/typescript/src/components/Headers/AppHeader.d.ts.map +1 -0
- package/lib/typescript/src/components/Headers/One.d.ts +4 -3
- package/lib/typescript/src/components/Headers/One.d.ts.map +1 -1
- package/lib/typescript/src/components/Headers/Three.d.ts +4 -3
- package/lib/typescript/src/components/Headers/Three.d.ts.map +1 -1
- package/lib/typescript/src/components/Headers/Two.d.ts +4 -3
- package/lib/typescript/src/components/Headers/Two.d.ts.map +1 -1
- package/lib/typescript/src/components/Headers/index.d.ts +2 -2
- package/lib/typescript/src/components/Icons/AlertIcon.d.ts +1 -1
- package/lib/typescript/src/components/Icons/AlertIcon.d.ts.map +1 -1
- package/lib/typescript/src/components/Icons/DeviceIcon.d.ts +1 -1
- package/lib/typescript/src/components/Icons/DeviceIcon.d.ts.map +1 -1
- package/lib/typescript/src/components/Icons/ForgotPasswordMessageIcon.d.ts.map +1 -1
- package/lib/typescript/src/components/Icons/ForgotPasswordMessageIconTwo.d.ts.map +1 -1
- package/lib/typescript/src/components/Icons/NewIndex.d.ts +6 -0
- package/lib/typescript/src/components/Icons/NewIndex.d.ts.map +1 -1
- package/lib/typescript/src/components/Icons/ResendOTP.d.ts.map +1 -1
- package/lib/typescript/src/components/Input/Input.d.ts +11 -0
- package/lib/typescript/src/components/Input/Input.d.ts.map +1 -0
- package/lib/typescript/src/components/Input/InputOne.d.ts +21 -0
- package/lib/typescript/src/components/Input/InputOne.d.ts.map +1 -0
- package/lib/typescript/src/components/Input/InputTwo.d.ts +25 -0
- package/lib/typescript/src/components/Input/InputTwo.d.ts.map +1 -0
- package/lib/typescript/src/components/Input/PhoneNumberInput.d.ts +26 -0
- package/lib/typescript/src/components/Input/PhoneNumberInput.d.ts.map +1 -0
- package/lib/typescript/src/components/Keyboard/HideKeyboard.d.ts +15 -0
- package/lib/typescript/src/components/Keyboard/HideKeyboard.d.ts.map +1 -0
- package/lib/typescript/src/components/Logo/Logo.d.ts +3 -0
- package/lib/typescript/src/components/Logo/Logo.d.ts.map +1 -1
- package/lib/typescript/src/components/Search/One.d.ts +46 -0
- package/lib/typescript/src/components/Search/One.d.ts.map +1 -0
- package/lib/typescript/src/components/Search/components/RecentSearchesSection.d.ts +16 -0
- package/lib/typescript/src/components/Search/components/RecentSearchesSection.d.ts.map +1 -0
- package/lib/typescript/src/components/Search/components/SearchCard.d.ts +32 -0
- package/lib/typescript/src/components/Search/components/SearchCard.d.ts.map +1 -0
- package/lib/typescript/src/components/Search/index.d.ts +11 -0
- package/lib/typescript/src/components/Search/index.d.ts.map +1 -0
- package/lib/typescript/src/components/Settings/AppSettings.d.ts +53 -0
- package/lib/typescript/src/components/Settings/AppSettings.d.ts.map +1 -0
- package/lib/typescript/src/components/Settings/index.d.ts +2 -0
- package/lib/typescript/src/components/Settings/index.d.ts.map +1 -0
- package/lib/typescript/src/components/Subscription/SubOne.d.ts +40 -0
- package/lib/typescript/src/components/Subscription/SubOne.d.ts.map +1 -0
- package/lib/typescript/src/components/Subscription/index.d.ts +30 -0
- package/lib/typescript/src/components/Subscription/index.d.ts.map +1 -0
- package/lib/typescript/src/components/TabBar/One.d.ts +33 -0
- package/lib/typescript/src/components/TabBar/One.d.ts.map +1 -0
- package/lib/typescript/src/components/TabBar/Three.d.ts +24 -0
- package/lib/typescript/src/components/TabBar/Three.d.ts.map +1 -0
- package/lib/typescript/src/components/TabBar/Two.d.ts +24 -0
- package/lib/typescript/src/components/TabBar/Two.d.ts.map +1 -0
- package/lib/typescript/src/components/TabBar/index.d.ts +14 -0
- package/lib/typescript/src/components/TabBar/index.d.ts.map +1 -0
- package/lib/typescript/src/components/Text/Text.d.ts +19 -0
- package/lib/typescript/src/components/Text/Text.d.ts.map +1 -0
- package/lib/typescript/src/components/Text/index.d.ts +6 -0
- package/lib/typescript/src/components/Text/index.d.ts.map +1 -0
- package/lib/typescript/src/components/User/DeviceSessions/DeviceSessions.d.ts +69 -0
- package/lib/typescript/src/components/User/DeviceSessions/DeviceSessions.d.ts.map +1 -0
- package/lib/typescript/src/components/User/WatchHistory/WatchHistory.d.ts +49 -0
- package/lib/typescript/src/components/User/WatchHistory/WatchHistory.d.ts.map +1 -0
- package/lib/typescript/src/components/User/WatchLater/WatchLater.d.ts +46 -0
- package/lib/typescript/src/components/User/WatchLater/WatchLater.d.ts.map +1 -0
- package/lib/typescript/src/components/User/components/UserAvatar.d.ts +10 -0
- package/lib/typescript/src/components/User/components/UserAvatar.d.ts.map +1 -0
- package/lib/typescript/src/components/User/components/UserSection.d.ts +30 -0
- package/lib/typescript/src/components/User/components/UserSection.d.ts.map +1 -0
- package/lib/typescript/src/components/User/index.d.ts +9 -0
- package/lib/typescript/src/components/User/index.d.ts.map +1 -0
- package/lib/typescript/src/components/View/View.d.ts +12 -0
- package/lib/typescript/src/components/View/View.d.ts.map +1 -0
- package/lib/typescript/src/components/View/index.d.ts +6 -0
- package/lib/typescript/src/components/View/index.d.ts.map +1 -0
- package/lib/typescript/src/components/index.d.ts +15 -2
- package/lib/typescript/src/components/index.d.ts.map +1 -1
- package/lib/typescript/src/components/layout/SafeAreaWrapper.d.ts +13 -0
- package/lib/typescript/src/components/layout/SafeAreaWrapper.d.ts.map +1 -0
- package/lib/typescript/src/components/layout/index.d.ts +2 -0
- package/lib/typescript/src/components/layout/index.d.ts.map +1 -0
- package/lib/typescript/src/constants/dummySections.d.ts +3 -0
- package/lib/typescript/src/constants/dummySections.d.ts.map +1 -0
- package/lib/typescript/src/hooks/useDebounce.d.ts +2 -0
- package/lib/typescript/src/hooks/useDebounce.d.ts.map +1 -0
- package/lib/typescript/src/hooks/useInitSplashCacheSync.d.ts +22 -0
- package/lib/typescript/src/hooks/useInitSplashCacheSync.d.ts.map +1 -0
- package/lib/typescript/src/hooks/useKeyboard.d.ts +9 -0
- package/lib/typescript/src/hooks/useKeyboard.d.ts.map +1 -0
- package/lib/typescript/src/hooks/usePaginatedSection.d.ts +12 -0
- package/lib/typescript/src/hooks/usePaginatedSection.d.ts.map +1 -0
- package/lib/typescript/src/index.d.ts +3 -1
- package/lib/typescript/src/index.d.ts.map +1 -1
- package/lib/typescript/src/store/RecentSearchesStore.d.ts +26 -0
- package/lib/typescript/src/store/RecentSearchesStore.d.ts.map +1 -0
- package/lib/typescript/src/store/splashStore.d.ts +29 -0
- package/lib/typescript/src/store/splashStore.d.ts.map +1 -0
- package/lib/typescript/src/theme/ThemeProvider.d.ts +23 -0
- package/lib/typescript/src/theme/ThemeProvider.d.ts.map +1 -0
- package/lib/typescript/src/theme/hook/useTheme.d.ts +9 -0
- package/lib/typescript/src/theme/hook/useTheme.d.ts.map +1 -0
- package/lib/typescript/src/theme/index.d.ts +7 -0
- package/lib/typescript/src/theme/index.d.ts.map +1 -0
- package/lib/typescript/src/theme/themes.d.ts +38 -25
- package/lib/typescript/src/theme/themes.d.ts.map +1 -1
- package/lib/typescript/src/types/content/content-view.types.d.ts +139 -0
- package/lib/typescript/src/types/content/content-view.types.d.ts.map +1 -0
- package/lib/typescript/src/types/{content.types.d.ts → content/index.d.ts} +89 -69
- package/lib/typescript/src/types/content/index.d.ts.map +1 -0
- package/lib/typescript/src/types/hook/index.d.ts +6 -0
- package/lib/typescript/src/types/hook/index.d.ts.map +1 -0
- package/lib/typescript/src/types/hook/usePaginatedSetion.d.ts +16 -0
- package/lib/typescript/src/types/hook/usePaginatedSetion.d.ts.map +1 -0
- package/lib/typescript/src/types/index.d.ts +7 -2
- package/lib/typescript/src/types/index.d.ts.map +1 -1
- package/lib/typescript/src/types/sections/index.d.ts +62 -0
- package/lib/typescript/src/types/sections/index.d.ts.map +1 -0
- package/lib/typescript/src/utils/Display.d.ts +8 -0
- package/lib/typescript/src/utils/Display.d.ts.map +1 -0
- package/lib/typescript/src/utils/PlatformSelector.d.ts +22 -0
- package/lib/typescript/src/utils/PlatformSelector.d.ts.map +1 -0
- package/lib/typescript/src/utils/SizeMatters.d.ts +7 -0
- package/lib/typescript/src/utils/SizeMatters.d.ts.map +1 -0
- package/package.json +74 -125
- package/src/Styles/globalStyles.ts +75 -0
- package/src/assets/animations/135037-payment-processing-error.json +0 -0
- package/src/assets/animations/7227-vui-animation.json +0 -0
- package/src/assets/animations/succesfull-payment.json +0 -0
- package/src/assets/animations/voice-icon.json +0 -0
- package/src/assets/img/back.png +0 -0
- package/src/assets/img/bottom-panel.png +0 -0
- package/src/assets/img/camera.png +0 -0
- package/src/assets/img/camera2.png +0 -0
- package/src/assets/img/h.svg +0 -0
- package/src/assets/img/home.png +0 -0
- package/src/assets/img/lock.png +0 -0
- package/src/assets/img/play.png +0 -0
- package/src/assets/img/profile.jpg +0 -0
- package/src/assets/img/qr-code.png +0 -0
- package/src/assets/img/shadow.png +0 -0
- package/src/assets/img/shadow2.png +0 -0
- package/src/assets/img/user.png +0 -0
- package/src/assets/svg/Account.svg +4 -0
- package/src/assets/svg/Favourite.svg +14 -0
- package/src/assets/svg/Upcoming.svg +4 -0
- package/src/assets/svg/content-error.svg +0 -0
- package/src/assets/svg/download.svg +0 -0
- package/src/assets/svg/eye-off.svg +10 -0
- package/src/assets/svg/favorites.svg +0 -0
- package/src/assets/svg/home.svg +0 -0
- package/src/assets/svg/home1.svg +3 -0
- package/src/assets/svg/menu-bar.svg +0 -0
- package/src/assets/svg/my-space.svg +0 -0
- package/src/assets/svg/play-icon-with-bg.svg +0 -0
- package/src/assets/svg/profile.svg +4 -0
- package/src/assets/svg/search.svg +0 -0
- package/src/assets/svg/search1.svg +4 -0
- package/src/assets/svg/server-error.svg +0 -0
- package/src/components/Account/Account.tsx +289 -0
- package/src/components/Account/index.ts +1 -0
- package/src/components/Auth/ForgotPassword/ForgotPassword.tsx +273 -0
- package/src/components/Auth/Login/LoginWithEmail.tsx +376 -0
- package/src/components/Auth/Login/LoginWithPhone.tsx +263 -0
- package/src/components/Auth/OTP/OTP.tsx +357 -0
- package/src/components/Auth/SignUp/SignUp.tsx +401 -0
- package/src/components/Auth/SplashScreen/SplashScreen.tsx +166 -0
- package/src/components/Auth/SplashScreen/components/SplashImage/SplashImage.tsx +66 -0
- package/src/components/Auth/SplashScreen/components/SplashLottie/SplashLottie.tsx +71 -0
- package/src/components/Auth/SplashScreen/components/SplashVideo/SplashVideo.tsx +103 -0
- package/src/components/Auth/index.ts +22 -0
- package/src/components/BackgroundLayout/BackgroundLayout.tsx +136 -0
- package/src/components/BlogView/BlogView.tsx +215 -0
- package/src/components/BlogView/index.ts +8 -0
- package/src/components/Button/BackBtn.tsx +83 -0
- package/src/components/Button/MenuBtn.tsx +190 -0
- package/src/components/Button/PrimaryBtn.tsx +89 -0
- package/src/components/Button/TextButton.tsx +108 -0
- package/src/components/Button/index.ts +16 -0
- package/src/components/Content/Card/Category/Category.tsx +263 -0
- package/src/components/Content/Card/NowWatching/NowWatching.tsx +413 -0
- package/src/components/Content/Card/Sliders/Styles/One.tsx +321 -0
- package/src/components/Content/Card/Sliders/Styles/Two.tsx +210 -0
- package/src/components/{Section → Content}/Card/Sliders/index.ts +3 -1
- package/src/components/Content/Card/Styles/Five.tsx +241 -0
- package/src/components/Content/Card/Styles/Four.tsx +246 -0
- package/src/components/Content/Card/Styles/One.tsx +242 -0
- package/src/components/Content/Card/Styles/RotateInOut.tsx +280 -0
- package/src/components/Content/Card/Styles/Six.tsx +249 -0
- package/src/components/Content/Card/Styles/Three.tsx +279 -0
- package/src/components/Content/Card/Styles/TopTen.tsx +338 -0
- package/src/components/Content/Card/Styles/Two.tsx +290 -0
- package/src/components/Content/Card/components/CardPoster.tsx +217 -0
- package/src/components/Content/Card/components/NavigateToMore.tsx +59 -0
- package/src/components/Content/Card/components/NoContentFallback.tsx +130 -0
- package/src/components/Content/Card/components/ShowAllButton.tsx +83 -0
- package/src/components/Content/Card/components/ThumbnailCard.tsx +151 -0
- package/src/components/Content/Card/index.ts +30 -0
- package/src/components/Content/Content.tsx +218 -0
- package/src/components/Content/Sections.tsx +169 -0
- package/src/components/ContentView/ContentView.tsx +137 -0
- package/src/components/ContentView/MoreContentList.tsx +238 -0
- package/src/components/ContentView/components/AboutSection.tsx +139 -0
- package/src/components/ContentView/components/CastCard.tsx +213 -0
- package/src/components/ContentView/components/EpisodeCard.tsx +454 -0
- package/src/components/ContentView/components/GenreTags.tsx +93 -0
- package/src/components/ContentView/components/HeroBanner.tsx +245 -0
- package/src/components/ContentView/components/PlayButton.tsx +37 -0
- package/src/components/ContentView/components/Title.tsx +121 -0
- package/src/components/ContentView/components/TrailerButton.tsx +53 -0
- package/src/components/ContentView/index.ts +7 -0
- package/src/components/Headers/AppHeader.tsx +108 -0
- package/src/components/Headers/One.tsx +34 -28
- package/src/components/Headers/Three.tsx +14 -24
- package/src/components/Headers/Two.tsx +16 -23
- package/src/components/Headers/index.ts +2 -2
- package/src/components/Icons/AlertIcon.tsx +2 -13
- package/src/components/Icons/DeviceIcon.tsx +1 -7
- package/src/components/Icons/DoneIcon/DoneIcon.tsx +0 -0
- package/src/components/Icons/ForgotPasswordMessageIcon.tsx +3 -24
- package/src/components/Icons/ForgotPasswordMessageIconTwo.tsx +2 -16
- package/src/components/Icons/NewIndex.ts +12 -0
- package/src/components/Icons/ResendOTP.tsx +2 -12
- package/src/components/Input/Input.ts +16 -0
- package/src/components/Input/InputOne.tsx +162 -0
- package/src/components/Input/InputTwo.tsx +189 -0
- package/src/components/Input/PhoneNumberInput.tsx +383 -0
- package/src/components/Keyboard/HideKeyboard.tsx +82 -0
- package/src/components/Loader/Loader.tsx +2 -2
- package/src/components/Logo/Logo.tsx +70 -26
- package/src/components/Search/One.tsx +229 -0
- package/src/components/Search/components/RecentSearchesSection.tsx +154 -0
- package/src/components/Search/components/SearchCard.tsx +194 -0
- package/src/components/Search/index.ts +16 -0
- package/src/components/Settings/AppSettings.tsx +288 -0
- package/src/components/Settings/index.ts +1 -0
- package/src/components/Subscription/SubOne.tsx +337 -0
- package/src/components/Subscription/index.ts +12 -0
- package/src/components/TabBar/One.tsx +202 -0
- package/src/components/TabBar/Three.tsx +148 -0
- package/src/components/TabBar/Two.tsx +153 -0
- package/src/components/TabBar/index.ts +20 -0
- package/src/components/Text/Text.tsx +57 -0
- package/src/components/Text/index.ts +5 -0
- package/src/components/User/DeviceSessions/DeviceSessions.tsx +374 -0
- package/src/components/User/WatchHistory/WatchHistory.tsx +173 -0
- package/src/components/User/WatchLater/WatchLater.tsx +293 -0
- package/src/components/User/components/UserAvatar.tsx +43 -0
- package/src/components/User/components/UserSection.tsx +182 -0
- package/src/components/User/index.ts +9 -0
- package/src/components/View/View.tsx +19 -0
- package/src/components/View/index.ts +5 -0
- package/src/components/index.ts +15 -2
- package/src/components/layout/SafeAreaWrapper.tsx +39 -0
- package/src/components/layout/index.ts +1 -0
- package/src/constants/dummySections.ts +45 -0
- package/src/hooks/useDebounce.ts +13 -0
- package/src/hooks/useInitSplashCacheSync.ts +146 -0
- package/src/hooks/useKeyboard.ts +34 -0
- package/src/hooks/usePaginatedSection.ts +78 -0
- package/src/index.ts +3 -1
- package/src/store/RecentSearchesStore.ts +74 -0
- package/src/store/splashStore.ts +91 -0
- package/src/theme/ThemeProvider.tsx +107 -0
- package/src/theme/hook/useTheme.ts +41 -0
- package/src/theme/index.ts +7 -0
- package/src/theme/themes.ts +210 -123
- package/src/types/content/content-view.types.ts +148 -0
- package/src/types/{content.types.ts → content/index.ts} +108 -77
- package/src/types/hook/index.ts +5 -0
- package/src/types/hook/usePaginatedSetion.ts +19 -0
- package/src/types/index.ts +7 -2
- package/src/types/sections/index.ts +81 -0
- package/src/utils/Display.ts +14 -0
- package/src/utils/PlatformSelector.ts +29 -0
- package/src/utils/SizeMatters.ts +7 -0
- package/lib/module/assets/img/profile.png +0 -0
- package/lib/module/components/Button/Button.js +0 -22
- package/lib/module/components/Button/Button.js.map +0 -1
- package/lib/module/components/Button/styles.js +0 -23
- package/lib/module/components/Button/styles.js.map +0 -1
- package/lib/module/components/Section/Card/Sliders/Styles/One.js +0 -123
- package/lib/module/components/Section/Card/Sliders/Styles/One.js.map +0 -1
- package/lib/module/components/Section/Card/Sliders/index.js.map +0 -1
- package/lib/module/components/Section/Card/Styles/One.js +0 -92
- package/lib/module/components/Section/Card/Styles/One.js.map +0 -1
- package/lib/module/components/Section/Card/index.js +0 -14
- package/lib/module/components/Section/Card/index.js.map +0 -1
- package/lib/module/components/Section/SectionType.js +0 -98
- package/lib/module/components/Section/SectionType.js.map +0 -1
- package/lib/module/components/Section/Sections.js +0 -72
- package/lib/module/components/Section/Sections.js.map +0 -1
- package/lib/module/package.json +0 -1
- package/lib/module/sample.test.js +0 -8
- package/lib/module/sample.test.js.map +0 -1
- package/lib/module/theme/useAppTheme.js +0 -14
- package/lib/module/theme/useAppTheme.js.map +0 -1
- package/lib/module/types/content.types.js +0 -2
- package/lib/module/types/content.types.js.map +0 -1
- package/lib/module/types/sections.types.js +0 -4
- package/lib/module/types/sections.types.js.map +0 -1
- package/lib/typescript/package.json +0 -1
- package/lib/typescript/src/components/Button/Button.d.ts +0 -9
- package/lib/typescript/src/components/Button/Button.d.ts.map +0 -1
- package/lib/typescript/src/components/Button/styles.d.ts +0 -20
- package/lib/typescript/src/components/Button/styles.d.ts.map +0 -1
- package/lib/typescript/src/components/Section/Card/Sliders/Styles/One.d.ts +0 -18
- package/lib/typescript/src/components/Section/Card/Sliders/Styles/One.d.ts.map +0 -1
- package/lib/typescript/src/components/Section/Card/Sliders/index.d.ts +0 -7
- package/lib/typescript/src/components/Section/Card/Sliders/index.d.ts.map +0 -1
- package/lib/typescript/src/components/Section/Card/Styles/One.d.ts +0 -19
- package/lib/typescript/src/components/Section/Card/Styles/One.d.ts.map +0 -1
- package/lib/typescript/src/components/Section/Card/index.d.ts +0 -7
- package/lib/typescript/src/components/Section/Card/index.d.ts.map +0 -1
- package/lib/typescript/src/components/Section/SectionType.d.ts +0 -26
- package/lib/typescript/src/components/Section/SectionType.d.ts.map +0 -1
- package/lib/typescript/src/components/Section/Sections.d.ts +0 -27
- package/lib/typescript/src/components/Section/Sections.d.ts.map +0 -1
- package/lib/typescript/src/sample.test.d.ts +0 -1
- package/lib/typescript/src/sample.test.d.ts.map +0 -1
- package/lib/typescript/src/theme/useAppTheme.d.ts +0 -46
- package/lib/typescript/src/theme/useAppTheme.d.ts.map +0 -1
- package/lib/typescript/src/types/content.types.d.ts.map +0 -1
- package/lib/typescript/src/types/sections.types.d.ts +0 -41
- package/lib/typescript/src/types/sections.types.d.ts.map +0 -1
- package/src/assets/img/profile.png +0 -0
- package/src/components/Button/Button.tsx +0 -32
- package/src/components/Button/styles.ts +0 -21
- package/src/components/Section/Card/Sliders/Styles/One.tsx +0 -147
- package/src/components/Section/Card/Styles/One.tsx +0 -112
- package/src/components/Section/Card/index.ts +0 -13
- package/src/components/Section/SectionType.tsx +0 -127
- package/src/components/Section/Sections.tsx +0 -120
- package/src/sample.test.ts +0 -5
- package/src/theme/useAppTheme.ts +0 -13
- package/src/types/sections.types.ts +0 -56
|
@@ -0,0 +1,204 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* @author Naresh Dhamu
|
|
5
|
+
* @LastModified Thu 26 Jun 2025 at 07:21 PM
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
import React, { memo, useCallback, useMemo, useRef } from 'react';
|
|
9
|
+
import { View, FlatList, TouchableOpacity, StyleSheet, ScrollView } from 'react-native';
|
|
10
|
+
import SkeletonPlaceholder from 'react-native-skeleton-placeholder';
|
|
11
|
+
import { moderateScale, verticalScale } from 'react-native-size-matters';
|
|
12
|
+
import { usePaginatedSection } from '../../../../hooks/usePaginatedSection';
|
|
13
|
+
import NavigateToMore from '../components/NavigateToMore';
|
|
14
|
+
import { useTheme } from '../../../../theme/hook/useTheme';
|
|
15
|
+
import CardPoster from '../components/CardPoster';
|
|
16
|
+
import FastImage from 'react-native-fast-image';
|
|
17
|
+
import { RFValue } from 'react-native-responsive-fontsize';
|
|
18
|
+
|
|
19
|
+
// default values
|
|
20
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
21
|
+
const DEFAULT_ITEM_WIDTH = moderateScale(100);
|
|
22
|
+
const DEFAULT_BORDER_RADIUS = moderateScale(5);
|
|
23
|
+
const DEFAULT_SKELETON_COUNT = 5;
|
|
24
|
+
const ASPECT_RATIO = 0.7 / 1;
|
|
25
|
+
const MovieCardFour = ({
|
|
26
|
+
title,
|
|
27
|
+
section_id,
|
|
28
|
+
type,
|
|
29
|
+
data: initialData,
|
|
30
|
+
moreFetchData,
|
|
31
|
+
onPressItem,
|
|
32
|
+
onPressMore,
|
|
33
|
+
renderItemImage,
|
|
34
|
+
itemWidth = DEFAULT_ITEM_WIDTH,
|
|
35
|
+
itemHeight = DEFAULT_ITEM_WIDTH / ASPECT_RATIO,
|
|
36
|
+
borderRadius = DEFAULT_BORDER_RADIUS,
|
|
37
|
+
skeletonCount = DEFAULT_SKELETON_COUNT,
|
|
38
|
+
containerStyle,
|
|
39
|
+
titleStyle,
|
|
40
|
+
itemStyle,
|
|
41
|
+
isLoading = false,
|
|
42
|
+
theme,
|
|
43
|
+
accessibilityLabel,
|
|
44
|
+
accessibilityHint
|
|
45
|
+
}) => {
|
|
46
|
+
const flatListRef = useRef(null);
|
|
47
|
+
const onEndReachedCalledDuringMomentum = useRef(false);
|
|
48
|
+
const {
|
|
49
|
+
theme: appliedTheme
|
|
50
|
+
} = useTheme(theme);
|
|
51
|
+
const styles = useMemo(() => getStyles(appliedTheme, itemWidth, itemHeight, borderRadius), [appliedTheme, itemWidth, itemHeight, borderRadius]);
|
|
52
|
+
const {
|
|
53
|
+
data,
|
|
54
|
+
pagination,
|
|
55
|
+
loading: isPaginating,
|
|
56
|
+
loadMoreData
|
|
57
|
+
} = usePaginatedSection(section_id, moreFetchData, initialData?.data || [], isLoading);
|
|
58
|
+
const handleItemPress = useCallback(item => onPressItem?.(item), [onPressItem]);
|
|
59
|
+
const handlePressMore = useCallback(() => {
|
|
60
|
+
onPressMore?.({
|
|
61
|
+
section_id,
|
|
62
|
+
name: title,
|
|
63
|
+
type
|
|
64
|
+
});
|
|
65
|
+
}, [onPressMore, section_id, title, type]);
|
|
66
|
+
const handleEndReached = useCallback(() => {
|
|
67
|
+
if (!onEndReachedCalledDuringMomentum.current && pagination?.hasNextPage && pagination?.nextPage) {
|
|
68
|
+
onEndReachedCalledDuringMomentum.current = true;
|
|
69
|
+
loadMoreData(pagination.nextPage);
|
|
70
|
+
}
|
|
71
|
+
}, [loadMoreData, pagination]);
|
|
72
|
+
const renderItem = useCallback(({
|
|
73
|
+
item,
|
|
74
|
+
index
|
|
75
|
+
}) => {
|
|
76
|
+
return /*#__PURE__*/_jsx(TouchableOpacity, {
|
|
77
|
+
style: [styles.item, itemStyle],
|
|
78
|
+
onPress: () => handleItemPress(item),
|
|
79
|
+
activeOpacity: 0.8,
|
|
80
|
+
children: renderItemImage ? renderItemImage({
|
|
81
|
+
item,
|
|
82
|
+
index
|
|
83
|
+
}) : /*#__PURE__*/_jsx(CardPoster, {
|
|
84
|
+
posterUri: item.poster,
|
|
85
|
+
theme: appliedTheme,
|
|
86
|
+
borderRadius: borderRadius,
|
|
87
|
+
posterWrapperStyle: styles.image,
|
|
88
|
+
resizeMode: FastImage.resizeMode.cover,
|
|
89
|
+
isLoading: isLoading
|
|
90
|
+
})
|
|
91
|
+
});
|
|
92
|
+
}, [styles.item, styles.image, itemStyle, renderItemImage, appliedTheme, borderRadius, isLoading, handleItemPress]);
|
|
93
|
+
const renderSkeletonItem = ({
|
|
94
|
+
index
|
|
95
|
+
}) => /*#__PURE__*/_jsx(SkeletonPlaceholder, {
|
|
96
|
+
highlightColor: appliedTheme.colors.skeletonHighlightColor,
|
|
97
|
+
backgroundColor: appliedTheme.colors.skeletonBaseColor,
|
|
98
|
+
children: /*#__PURE__*/_jsx(SkeletonPlaceholder.Item, {
|
|
99
|
+
width: itemWidth,
|
|
100
|
+
height: itemHeight,
|
|
101
|
+
borderRadius: borderRadius,
|
|
102
|
+
marginLeft: index === 0 ? moderateScale(12) : 0,
|
|
103
|
+
marginRight: moderateScale(12)
|
|
104
|
+
})
|
|
105
|
+
}, `skeleton-${index}`);
|
|
106
|
+
if (!initialData) {
|
|
107
|
+
return null;
|
|
108
|
+
}
|
|
109
|
+
if (!isLoading && data.length === 0) return null;
|
|
110
|
+
return /*#__PURE__*/_jsx(View, {
|
|
111
|
+
style: [styles.root, containerStyle],
|
|
112
|
+
accessibilityLabel: accessibilityLabel || `Movie section: ${title}`,
|
|
113
|
+
accessibilityHint: accessibilityHint || 'Scroll to view movies',
|
|
114
|
+
children: isLoading ? /*#__PURE__*/_jsxs(_Fragment, {
|
|
115
|
+
children: [/*#__PURE__*/_jsx(SkeletonPlaceholder, {
|
|
116
|
+
highlightColor: appliedTheme.colors.skeletonHighlightColor,
|
|
117
|
+
backgroundColor: appliedTheme.colors.skeletonBaseColor,
|
|
118
|
+
children: /*#__PURE__*/_jsx(SkeletonPlaceholder.Item, {
|
|
119
|
+
width: moderateScale(100),
|
|
120
|
+
height: moderateScale(20),
|
|
121
|
+
borderRadius: moderateScale(4),
|
|
122
|
+
marginHorizontal: moderateScale(15),
|
|
123
|
+
marginBottom: verticalScale(6)
|
|
124
|
+
})
|
|
125
|
+
}), /*#__PURE__*/_jsx(ScrollView, {
|
|
126
|
+
horizontal: true,
|
|
127
|
+
showsHorizontalScrollIndicator: false,
|
|
128
|
+
contentContainerStyle: styles.skeletonList,
|
|
129
|
+
children: skeletonCount > 0 && /*#__PURE__*/_jsx(View, {
|
|
130
|
+
style: styles.skeletonList,
|
|
131
|
+
children: Array.from({
|
|
132
|
+
length: skeletonCount
|
|
133
|
+
}).map((_, index) => renderSkeletonItem({
|
|
134
|
+
index
|
|
135
|
+
}))
|
|
136
|
+
})
|
|
137
|
+
})]
|
|
138
|
+
}) : /*#__PURE__*/_jsxs(_Fragment, {
|
|
139
|
+
children: [/*#__PURE__*/_jsx(NavigateToMore, {
|
|
140
|
+
title: title,
|
|
141
|
+
onPress: handlePressMore,
|
|
142
|
+
titleStyle: [styles.title, {
|
|
143
|
+
color: appliedTheme.colors.textPrimary
|
|
144
|
+
}, titleStyle],
|
|
145
|
+
containerStyle: styles.navigateToMoreContainer,
|
|
146
|
+
showAllProps: {
|
|
147
|
+
iconColor: appliedTheme.colors.textPrimary
|
|
148
|
+
}
|
|
149
|
+
}), /*#__PURE__*/_jsx(FlatList, {
|
|
150
|
+
ref: flatListRef,
|
|
151
|
+
data: data,
|
|
152
|
+
horizontal: true,
|
|
153
|
+
keyExtractor: (item, index) => `${item._id}-${index}`,
|
|
154
|
+
renderItem: renderItem,
|
|
155
|
+
showsHorizontalScrollIndicator: false,
|
|
156
|
+
contentContainerStyle: styles.listContent,
|
|
157
|
+
initialNumToRender: 5,
|
|
158
|
+
onEndReached: handleEndReached,
|
|
159
|
+
onEndReachedThreshold: 0.5,
|
|
160
|
+
onScrollBeginDrag: () => {
|
|
161
|
+
onEndReachedCalledDuringMomentum.current = false;
|
|
162
|
+
},
|
|
163
|
+
onMomentumScrollBegin: () => {
|
|
164
|
+
onEndReachedCalledDuringMomentum.current = false;
|
|
165
|
+
},
|
|
166
|
+
ListFooterComponent: isPaginating ? renderSkeletonItem({
|
|
167
|
+
index: 0
|
|
168
|
+
}) : null
|
|
169
|
+
})]
|
|
170
|
+
})
|
|
171
|
+
});
|
|
172
|
+
};
|
|
173
|
+
const getStyles = (theme, width, height, radius) => StyleSheet.create({
|
|
174
|
+
root: {
|
|
175
|
+
marginVertical: verticalScale(6)
|
|
176
|
+
},
|
|
177
|
+
item: {
|
|
178
|
+
marginLeft: moderateScale(10)
|
|
179
|
+
},
|
|
180
|
+
image: {
|
|
181
|
+
width,
|
|
182
|
+
height,
|
|
183
|
+
borderRadius: radius,
|
|
184
|
+
backgroundColor: theme.colors.surfaceVariant
|
|
185
|
+
},
|
|
186
|
+
navigateToMoreContainer: {
|
|
187
|
+
paddingHorizontal: moderateScale(10),
|
|
188
|
+
marginBottom: verticalScale(8)
|
|
189
|
+
},
|
|
190
|
+
title: {
|
|
191
|
+
fontSize: RFValue(13),
|
|
192
|
+
fontWeight: '600'
|
|
193
|
+
},
|
|
194
|
+
listContent: {
|
|
195
|
+
paddingRight: moderateScale(12)
|
|
196
|
+
},
|
|
197
|
+
skeletonList: {
|
|
198
|
+
flexDirection: 'row',
|
|
199
|
+
alignItems: 'flex-start',
|
|
200
|
+
paddingRight: moderateScale(15)
|
|
201
|
+
}
|
|
202
|
+
});
|
|
203
|
+
export default /*#__PURE__*/memo(MovieCardFour);
|
|
204
|
+
//# sourceMappingURL=Four.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","memo","useCallback","useMemo","useRef","View","FlatList","TouchableOpacity","StyleSheet","ScrollView","SkeletonPlaceholder","moderateScale","verticalScale","usePaginatedSection","NavigateToMore","useTheme","CardPoster","FastImage","RFValue","jsx","_jsx","Fragment","_Fragment","jsxs","_jsxs","DEFAULT_ITEM_WIDTH","DEFAULT_BORDER_RADIUS","DEFAULT_SKELETON_COUNT","ASPECT_RATIO","MovieCardFour","title","section_id","type","data","initialData","moreFetchData","onPressItem","onPressMore","renderItemImage","itemWidth","itemHeight","borderRadius","skeletonCount","containerStyle","titleStyle","itemStyle","isLoading","theme","accessibilityLabel","accessibilityHint","flatListRef","onEndReachedCalledDuringMomentum","appliedTheme","styles","getStyles","pagination","loading","isPaginating","loadMoreData","handleItemPress","item","handlePressMore","name","handleEndReached","current","hasNextPage","nextPage","renderItem","index","style","onPress","activeOpacity","children","posterUri","poster","posterWrapperStyle","image","resizeMode","cover","renderSkeletonItem","highlightColor","colors","skeletonHighlightColor","backgroundColor","skeletonBaseColor","Item","width","height","marginLeft","marginRight","length","root","marginHorizontal","marginBottom","horizontal","showsHorizontalScrollIndicator","contentContainerStyle","skeletonList","Array","from","map","_","color","textPrimary","navigateToMoreContainer","showAllProps","iconColor","ref","keyExtractor","_id","listContent","initialNumToRender","onEndReached","onEndReachedThreshold","onScrollBeginDrag","onMomentumScrollBegin","ListFooterComponent","radius","create","marginVertical","surfaceVariant","paddingHorizontal","fontSize","fontWeight","paddingRight","flexDirection","alignItems"],"sourceRoot":"../../../../../../src","sources":["components/Content/Card/Styles/Four.tsx"],"mappings":";;AAAA;AACA;AACA;AACA;;AAEA,OAAOA,KAAK,IAAIC,IAAI,EAAEC,WAAW,EAAEC,OAAO,EAAEC,MAAM,QAAQ,OAAO;AACjE,SACEC,IAAI,EACJC,QAAQ,EACRC,gBAAgB,EAChBC,UAAU,EACVC,UAAU,QAML,cAAc;AACrB,OAAOC,mBAAmB,MAAM,mCAAmC;AACnE,SAASC,aAAa,EAAEC,aAAa,QAAQ,2BAA2B;AACxE,SAASC,mBAAmB,QAAQ,uCAAuC;AAC3E,OAAOC,cAAc,MAAM,8BAA8B;AACzD,SAASC,QAAQ,QAAQ,iCAAiC;AAC1D,OAAOC,UAAU,MAAM,0BAA0B;AACjD,OAAOC,SAAS,MAAM,yBAAyB;AAG/C,SAASC,OAAO,QAAQ,kCAAkC;;AAE1D;AAAA,SAAAC,GAAA,IAAAC,IAAA,EAAAC,QAAA,IAAAC,SAAA,EAAAC,IAAA,IAAAC,KAAA;AACA,MAAMC,kBAAkB,GAAGd,aAAa,CAAC,GAAG,CAAC;AAC7C,MAAMe,qBAAqB,GAAGf,aAAa,CAAC,CAAC,CAAC;AAC9C,MAAMgB,sBAAsB,GAAG,CAAC;AAChC,MAAMC,YAAY,GAAG,GAAG,GAAG,CAAC;AA0B5B,MAAMC,aAA2C,GAAGA,CAAC;EACnDC,KAAK;EACLC,UAAU;EACVC,I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ict";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* @author Naresh Dhamu
|
|
5
|
+
* @LastModified Wed 25 Jun 2025 at 05:18 PM
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
import React, { memo, useCallback, useMemo, useRef } from 'react';
|
|
9
|
+
import { View, FlatList, TouchableOpacity, StyleSheet } from 'react-native';
|
|
10
|
+
import SkeletonPlaceholder from 'react-native-skeleton-placeholder';
|
|
11
|
+
import FastImage from 'react-native-fast-image';
|
|
12
|
+
import { moderateScale, verticalScale } from 'react-native-size-matters';
|
|
13
|
+
import { useTheme } from '../../../../theme/hook/useTheme';
|
|
14
|
+
import CardPoster from '../components/CardPoster';
|
|
15
|
+
import NavigateToMore from '../components/NavigateToMore';
|
|
16
|
+
import { usePaginatedSection } from '../../../../hooks/usePaginatedSection';
|
|
17
|
+
import { RFValue } from 'react-native-responsive-fontsize';
|
|
18
|
+
|
|
19
|
+
// Constants
|
|
20
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
21
|
+
const DEFAULT_ITEM_WIDTH = moderateScale(105);
|
|
22
|
+
const DEFAULT_ITEM_HEIGHT = moderateScale(160);
|
|
23
|
+
const DEFAULT_BORDER_RADIUS = moderateScale(6);
|
|
24
|
+
const DEFAULT_SKELETON_COUNT = 5;
|
|
25
|
+
const MovieCard = ({
|
|
26
|
+
title,
|
|
27
|
+
section_id,
|
|
28
|
+
type,
|
|
29
|
+
data: initialData,
|
|
30
|
+
moreFetchData,
|
|
31
|
+
onPressMore,
|
|
32
|
+
onPressItem,
|
|
33
|
+
renderItemImage,
|
|
34
|
+
itemWidth = DEFAULT_ITEM_WIDTH,
|
|
35
|
+
itemHeight = DEFAULT_ITEM_HEIGHT,
|
|
36
|
+
borderRadius = DEFAULT_BORDER_RADIUS,
|
|
37
|
+
skeletonCount = DEFAULT_SKELETON_COUNT,
|
|
38
|
+
containerStyle,
|
|
39
|
+
titleStyle,
|
|
40
|
+
itemStyle,
|
|
41
|
+
isLoading = false,
|
|
42
|
+
theme,
|
|
43
|
+
accessibilityLabel,
|
|
44
|
+
accessibilityHint
|
|
45
|
+
}) => {
|
|
46
|
+
const flatListRef = useRef(null);
|
|
47
|
+
const onEndReachedCalledDuringMomentum = useRef(false);
|
|
48
|
+
const {
|
|
49
|
+
theme: appliedTheme
|
|
50
|
+
} = useTheme(theme);
|
|
51
|
+
const styles = useMemo(() => getStyles(appliedTheme, itemWidth, itemHeight, borderRadius), [appliedTheme, itemWidth, itemHeight, borderRadius]);
|
|
52
|
+
const {
|
|
53
|
+
data,
|
|
54
|
+
pagination,
|
|
55
|
+
loading: isPaginating,
|
|
56
|
+
loadMoreData
|
|
57
|
+
} = usePaginatedSection(section_id, moreFetchData, initialData?.data || [], isLoading);
|
|
58
|
+
const handleItemPress = useCallback(item => onPressItem?.(item), [onPressItem]);
|
|
59
|
+
const handlePressMore = useCallback(() => {
|
|
60
|
+
onPressMore?.({
|
|
61
|
+
section_id,
|
|
62
|
+
name: title,
|
|
63
|
+
type
|
|
64
|
+
});
|
|
65
|
+
}, [onPressMore, section_id, title, type]);
|
|
66
|
+
const handleEndReached = useCallback(() => {
|
|
67
|
+
if (!onEndReachedCalledDuringMomentum.current && pagination?.hasNextPage && pagination?.nextPage) {
|
|
68
|
+
onEndReachedCalledDuringMomentum.current = true;
|
|
69
|
+
loadMoreData(pagination.nextPage);
|
|
70
|
+
}
|
|
71
|
+
}, [loadMoreData, pagination]);
|
|
72
|
+
const renderItem = useCallback(({
|
|
73
|
+
item,
|
|
74
|
+
index
|
|
75
|
+
}) => {
|
|
76
|
+
return /*#__PURE__*/_jsx(TouchableOpacity, {
|
|
77
|
+
style: [styles.item, itemStyle],
|
|
78
|
+
onPress: () => handleItemPress(item),
|
|
79
|
+
activeOpacity: 0.8,
|
|
80
|
+
children: renderItemImage ? renderItemImage({
|
|
81
|
+
item,
|
|
82
|
+
index
|
|
83
|
+
}) : /*#__PURE__*/_jsx(CardPoster, {
|
|
84
|
+
posterUri: item.poster,
|
|
85
|
+
theme: appliedTheme,
|
|
86
|
+
borderRadius: borderRadius,
|
|
87
|
+
posterWrapperStyle: styles.image,
|
|
88
|
+
resizeMode: FastImage.resizeMode.cover,
|
|
89
|
+
isLoading: isLoading
|
|
90
|
+
})
|
|
91
|
+
});
|
|
92
|
+
}, [styles.item, styles.image, itemStyle, renderItemImage, appliedTheme, borderRadius, isLoading, handleItemPress]);
|
|
93
|
+
const renderSkeletonItem = ({
|
|
94
|
+
index
|
|
95
|
+
}) => /*#__PURE__*/_jsx(SkeletonPlaceholder, {
|
|
96
|
+
highlightColor: appliedTheme.colors.skeletonHighlightColor,
|
|
97
|
+
backgroundColor: appliedTheme.colors.skeletonBaseColor,
|
|
98
|
+
children: /*#__PURE__*/_jsx(SkeletonPlaceholder.Item, {
|
|
99
|
+
width: itemWidth,
|
|
100
|
+
height: itemHeight,
|
|
101
|
+
borderRadius: borderRadius,
|
|
102
|
+
marginLeft: index === 0 ? moderateScale(12) : 0,
|
|
103
|
+
marginRight: moderateScale(12)
|
|
104
|
+
})
|
|
105
|
+
}, `skeleton-${index}`);
|
|
106
|
+
if (!initialData) {
|
|
107
|
+
return null;
|
|
108
|
+
}
|
|
109
|
+
if (!isLoading && data.length === 0) return null;
|
|
110
|
+
if (isLoading) {
|
|
111
|
+
return /*#__PURE__*/_jsxs(View, {
|
|
112
|
+
style: [styles.root, containerStyle],
|
|
113
|
+
testID: `movie-card-skeleton-${section_id}`,
|
|
114
|
+
children: [/*#__PURE__*/_jsx(SkeletonPlaceholder, {
|
|
115
|
+
highlightColor: appliedTheme.colors.skeletonHighlightColor,
|
|
116
|
+
backgroundColor: appliedTheme.colors.skeletonBaseColor,
|
|
117
|
+
children: /*#__PURE__*/_jsx(SkeletonPlaceholder.Item, {
|
|
118
|
+
width: moderateScale(100),
|
|
119
|
+
height: verticalScale(14),
|
|
120
|
+
borderRadius: moderateScale(4),
|
|
121
|
+
marginLeft: moderateScale(12),
|
|
122
|
+
marginBottom: verticalScale(6)
|
|
123
|
+
})
|
|
124
|
+
}), /*#__PURE__*/_jsx(FlatList, {
|
|
125
|
+
data: Array.from({
|
|
126
|
+
length: skeletonCount
|
|
127
|
+
}, () => null),
|
|
128
|
+
horizontal: true,
|
|
129
|
+
keyExtractor: (_, index) => `skeleton-${index}`,
|
|
130
|
+
renderItem: renderSkeletonItem,
|
|
131
|
+
showsHorizontalScrollIndicator: false,
|
|
132
|
+
contentContainerStyle: styles.listContent
|
|
133
|
+
})]
|
|
134
|
+
});
|
|
135
|
+
}
|
|
136
|
+
return /*#__PURE__*/_jsxs(View, {
|
|
137
|
+
style: [styles.root, containerStyle],
|
|
138
|
+
testID: `movie-card-${section_id}`,
|
|
139
|
+
accessibilityLabel: accessibilityLabel || `Movie section: ${title}`,
|
|
140
|
+
accessibilityHint: accessibilityHint || 'Scroll to view movies',
|
|
141
|
+
children: [/*#__PURE__*/_jsx(NavigateToMore, {
|
|
142
|
+
title: title,
|
|
143
|
+
onPress: handlePressMore,
|
|
144
|
+
titleStyle: [styles.title, {
|
|
145
|
+
color: appliedTheme.colors.textPrimary
|
|
146
|
+
}, titleStyle],
|
|
147
|
+
containerStyle: styles.navigateToMoreContainer,
|
|
148
|
+
showAllProps: {
|
|
149
|
+
iconColor: appliedTheme.colors.textPrimary
|
|
150
|
+
}
|
|
151
|
+
}), /*#__PURE__*/_jsx(FlatList, {
|
|
152
|
+
ref: flatListRef,
|
|
153
|
+
data: data,
|
|
154
|
+
horizontal: true,
|
|
155
|
+
keyExtractor: (item, index) => `${item._id}-${index}`,
|
|
156
|
+
renderItem: renderItem,
|
|
157
|
+
showsHorizontalScrollIndicator: false,
|
|
158
|
+
contentContainerStyle: styles.listContent,
|
|
159
|
+
initialNumToRender: 5,
|
|
160
|
+
onEndReached: handleEndReached,
|
|
161
|
+
onEndReachedThreshold: 0.5,
|
|
162
|
+
onScrollBeginDrag: () => {
|
|
163
|
+
onEndReachedCalledDuringMomentum.current = false;
|
|
164
|
+
},
|
|
165
|
+
onMomentumScrollBegin: () => {
|
|
166
|
+
onEndReachedCalledDuringMomentum.current = false;
|
|
167
|
+
},
|
|
168
|
+
ListFooterComponent: isPaginating ? renderSkeletonItem({
|
|
169
|
+
index: 0
|
|
170
|
+
}) : null
|
|
171
|
+
})]
|
|
172
|
+
});
|
|
173
|
+
};
|
|
174
|
+
const getStyles = (theme, width, height, radius) => StyleSheet.create({
|
|
175
|
+
root: {
|
|
176
|
+
marginVertical: verticalScale(6)
|
|
177
|
+
},
|
|
178
|
+
item: {
|
|
179
|
+
marginLeft: moderateScale(10)
|
|
180
|
+
},
|
|
181
|
+
image: {
|
|
182
|
+
width,
|
|
183
|
+
height,
|
|
184
|
+
borderRadius: radius,
|
|
185
|
+
backgroundColor: theme.colors.surfaceVariant
|
|
186
|
+
},
|
|
187
|
+
navigateToMoreContainer: {
|
|
188
|
+
paddingHorizontal: moderateScale(10),
|
|
189
|
+
marginBottom: verticalScale(8)
|
|
190
|
+
},
|
|
191
|
+
title: {
|
|
192
|
+
fontSize: RFValue(13),
|
|
193
|
+
fontWeight: '600'
|
|
194
|
+
},
|
|
195
|
+
listContent: {
|
|
196
|
+
paddingRight: moderateScale(15)
|
|
197
|
+
}
|
|
198
|
+
});
|
|
199
|
+
export default /*#__PURE__*/memo(MovieCard);
|
|
200
|
+
//# sourceMappingURL=One.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","memo","useCallback","useMemo","useRef","View","FlatList","TouchableOpacity","StyleSheet","SkeletonPlaceholder","FastImage","moderateScale","verticalScale","useTheme","CardPoster","NavigateToMore","usePaginatedSection","RFValue","jsx","_jsx","jsxs","_jsxs","DEFAULT_ITEM_WIDTH","DEFAULT_ITEM_HEIGHT","DEFAULT_BORDER_RADIUS","DEFAULT_SKELETON_COUNT","MovieCard","title","section_id","type","data","initialData","moreFetchData","onPressMore","onPressItem","renderItemImage","itemWidth","itemHeight","borderRadius","skeletonCount","containerStyle","titleStyle","itemStyle","isLoading","theme","accessibilityLabel","accessibilityHint","flatListRef","onEndReachedCalledDuringMomentum","appliedTheme","styles","getStyles","pagination","loading","isPaginating","loadMoreData","handleItemPress","item","handlePressMore","name","handleEndReached","current","hasNextPage","nextPage","renderItem","index","style","onPress","activeOpacity","children","posterUri","poster","posterWrapperStyle","image","resizeMode","cover","renderSkeletonItem","highlightColor","colors","skeletonHighlightColor","backgroundColor","skeletonBaseColor","Item","width","height","marginLeft","marginRight","length","root","testID","marginBottom","Array","from","horizontal","keyExtractor","_","showsHorizontalScrollIndicator","contentContainerStyle","listContent","color","textPrimary","navigateToMoreContainer","showAllProps","iconColor","ref","_id","initialNumToRender","onEndReached","onEndReachedThreshold","onScrollBeginDrag","onMomentumScrollBegin","ListFooterComponent","radius","create","marginVertical","surfaceVariant","paddingHorizontal","fontSize","fontWeight","paddingRight"],"sourceRoot":"../../../../../../src","sources":["components/Content/Card/Styles/One.tsx"],"mappings":";;AAAA;AACA;AACA;AACA;;AAEA,OAAOA,KAAK,IAAIC,IAAI,EAAEC,WAAW,EAAEC,OAAO,EAAEC,MAAM,QAAQ,OAAO;AACjE,SACEC,IAAI,EACJC,QAAQ,EACRC,gBAAgB,EAChBC,UAAU,QAML,cAAc;AACrB,OAAOC,mBAAmB,MAAM,mCAAmC;AACnE,OAAOC,SAAS,MAAM,yBAAyB;AAC/C,SAASC,aAAa,EAAEC,aAAa,QAAQ,2BAA2B;AACxE,SAASC,QAAQ,QAAQ,iCAAiC;AAC1D,OAAOC,UAAU,MAAM,0BAA0B;AACjD,OAAOC,cAAc,MAAM,8BAA8B;AACzD,SAASC,mBAAmB,QAAQ,uCAAuC;AAG3E,SAASC,OAAO,QAAQ,kCAAkC;;AAE1D;AAAA,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AACA,MAAMC,kBAAkB,GAAGX,aAAa,CAAC,GAAG,CAAC;AAC7C,MAAMY,mBAAmB,GAAGZ,aAAa,CAAC,GAAG,CAAC;AAC9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 -0,0 +1,216 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* @author Naresh Dhamu
|
|
5
|
+
* @LastModified Thu 26 Jun 2025 at 05:45 PM
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
import React, { memo, useCallback, useMemo, useRef } from 'react';
|
|
9
|
+
import { View, StyleSheet, Dimensions, TouchableOpacity } from 'react-native';
|
|
10
|
+
import SkeletonPlaceholder from 'react-native-skeleton-placeholder';
|
|
11
|
+
import FastImage from 'react-native-fast-image';
|
|
12
|
+
import Carousel from 'react-native-snap-carousel';
|
|
13
|
+
import { moderateScale, verticalScale } from 'react-native-size-matters';
|
|
14
|
+
import { debounce } from 'lodash';
|
|
15
|
+
import { useTheme } from '../../../../theme/hook/useTheme';
|
|
16
|
+
import CardPoster from '../components/CardPoster';
|
|
17
|
+
import NavigateToMore from '../components/NavigateToMore';
|
|
18
|
+
import { usePaginatedSection } from '../../../../hooks/usePaginatedSection';
|
|
19
|
+
import { RFValue } from 'react-native-responsive-fontsize';
|
|
20
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
21
|
+
const {
|
|
22
|
+
width,
|
|
23
|
+
height
|
|
24
|
+
} = Dimensions.get('window');
|
|
25
|
+
const DEFAULT_ITEM_WIDTH = width * 0.42;
|
|
26
|
+
const DEFAULT_ITEM_HEIGHT = height * 0.28;
|
|
27
|
+
const DEFAULT_BORDER_RADIUS = moderateScale(10);
|
|
28
|
+
|
|
29
|
+
// Static styles defined outside getStyles to avoid recalculation
|
|
30
|
+
const staticStyles = StyleSheet.create({
|
|
31
|
+
root: {
|
|
32
|
+
marginVertical: verticalScale(6)
|
|
33
|
+
},
|
|
34
|
+
navigateToMoreContainer: {
|
|
35
|
+
paddingHorizontal: moderateScale(10),
|
|
36
|
+
marginBottom: verticalScale(8)
|
|
37
|
+
},
|
|
38
|
+
title: {
|
|
39
|
+
fontSize: RFValue(13),
|
|
40
|
+
fontWeight: '600',
|
|
41
|
+
marginHorizontal: moderateScale(15),
|
|
42
|
+
marginVertical: moderateScale(5)
|
|
43
|
+
}
|
|
44
|
+
});
|
|
45
|
+
const RotateCarousel = ({
|
|
46
|
+
title,
|
|
47
|
+
section_id,
|
|
48
|
+
type,
|
|
49
|
+
data: initialData,
|
|
50
|
+
moreFetchData,
|
|
51
|
+
onPressMore,
|
|
52
|
+
onPressItem,
|
|
53
|
+
renderItemImage,
|
|
54
|
+
itemWidth = DEFAULT_ITEM_WIDTH,
|
|
55
|
+
itemHeight = DEFAULT_ITEM_HEIGHT,
|
|
56
|
+
borderRadius = DEFAULT_BORDER_RADIUS,
|
|
57
|
+
skeletonCount = 5,
|
|
58
|
+
containerStyle,
|
|
59
|
+
titleStyle,
|
|
60
|
+
itemStyle,
|
|
61
|
+
isLoading = false,
|
|
62
|
+
theme
|
|
63
|
+
}) => {
|
|
64
|
+
const {
|
|
65
|
+
theme: appliedTheme
|
|
66
|
+
} = useTheme(theme);
|
|
67
|
+
const carouselRef = useRef(null);
|
|
68
|
+
|
|
69
|
+
// Memoized dynamic styles
|
|
70
|
+
const styles = useMemo(() => StyleSheet.create({
|
|
71
|
+
item: {
|
|
72
|
+
width: itemWidth,
|
|
73
|
+
height: itemHeight,
|
|
74
|
+
borderRadius,
|
|
75
|
+
overflow: 'hidden',
|
|
76
|
+
elevation: 0,
|
|
77
|
+
shadowColor: 'transparent',
|
|
78
|
+
shadowOffset: {
|
|
79
|
+
width: 0,
|
|
80
|
+
height: 0
|
|
81
|
+
},
|
|
82
|
+
shadowOpacity: 0,
|
|
83
|
+
shadowRadius: 0
|
|
84
|
+
},
|
|
85
|
+
image: {
|
|
86
|
+
width: '100%',
|
|
87
|
+
height: '100%',
|
|
88
|
+
backgroundColor: appliedTheme.colors.skeletonBaseColor ?? '#222'
|
|
89
|
+
},
|
|
90
|
+
skeleton: {
|
|
91
|
+
width: itemWidth,
|
|
92
|
+
height: itemHeight,
|
|
93
|
+
borderRadius,
|
|
94
|
+
overflow: 'hidden',
|
|
95
|
+
marginRight: moderateScale(12)
|
|
96
|
+
}
|
|
97
|
+
}), [appliedTheme.colors.skeletonBaseColor, itemWidth, itemHeight, borderRadius]);
|
|
98
|
+
const {
|
|
99
|
+
data,
|
|
100
|
+
loading: isPaginating,
|
|
101
|
+
pagination,
|
|
102
|
+
loadMoreData
|
|
103
|
+
} = usePaginatedSection(section_id, moreFetchData, initialData?.data || [], isLoading);
|
|
104
|
+
|
|
105
|
+
// Memoized skeleton items
|
|
106
|
+
const skeletonItems = useMemo(() => {
|
|
107
|
+
const count = isLoading ? skeletonCount : isPaginating ? 1 : 0;
|
|
108
|
+
return Array.from({
|
|
109
|
+
length: count
|
|
110
|
+
}, (_, i) => ({
|
|
111
|
+
_id: `skeleton-${i}`,
|
|
112
|
+
isSkeleton: true
|
|
113
|
+
}));
|
|
114
|
+
}, [isLoading, isPaginating, skeletonCount]);
|
|
115
|
+
|
|
116
|
+
// Optimized finalData to avoid unnecessary spread
|
|
117
|
+
const finalData = useMemo(() => isLoading ? skeletonItems : skeletonItems.length > 0 ? [...data, ...skeletonItems] : data, [isLoading, data, skeletonItems]);
|
|
118
|
+
|
|
119
|
+
// Debounced loadMoreData to prevent excessive calls
|
|
120
|
+
const debouncedLoadMore = useMemo(() => debounce(nextPage => {
|
|
121
|
+
return loadMoreData(nextPage);
|
|
122
|
+
}, 300), [loadMoreData]);
|
|
123
|
+
const handleItemPress = useCallback(item => {
|
|
124
|
+
onPressItem?.(item);
|
|
125
|
+
}, [onPressItem]);
|
|
126
|
+
const handlePressMore = useCallback(() => {
|
|
127
|
+
onPressMore?.({
|
|
128
|
+
section_id,
|
|
129
|
+
name: title,
|
|
130
|
+
type
|
|
131
|
+
});
|
|
132
|
+
}, [onPressMore, section_id, title, type]);
|
|
133
|
+
const renderItem = useCallback(({
|
|
134
|
+
item,
|
|
135
|
+
index
|
|
136
|
+
}) => {
|
|
137
|
+
if ('isSkeleton' in item) {
|
|
138
|
+
return /*#__PURE__*/_jsx(View, {
|
|
139
|
+
style: styles.skeleton,
|
|
140
|
+
children: /*#__PURE__*/_jsx(SkeletonPlaceholder, {
|
|
141
|
+
highlightColor: appliedTheme.colors.skeletonHighlightColor,
|
|
142
|
+
backgroundColor: appliedTheme.colors.skeletonBaseColor,
|
|
143
|
+
children: /*#__PURE__*/_jsx(SkeletonPlaceholder.Item, {
|
|
144
|
+
width: itemWidth,
|
|
145
|
+
height: itemHeight,
|
|
146
|
+
borderRadius: borderRadius
|
|
147
|
+
})
|
|
148
|
+
})
|
|
149
|
+
}, item._id);
|
|
150
|
+
}
|
|
151
|
+
return /*#__PURE__*/_jsx(TouchableOpacity, {
|
|
152
|
+
activeOpacity: 0.8,
|
|
153
|
+
style: [styles.item, itemStyle],
|
|
154
|
+
disabled: !item || !onPressItem || isLoading,
|
|
155
|
+
onPress: () => handleItemPress(item),
|
|
156
|
+
children: renderItemImage ? renderItemImage({
|
|
157
|
+
item,
|
|
158
|
+
index
|
|
159
|
+
}) : /*#__PURE__*/_jsx(CardPoster, {
|
|
160
|
+
posterUri: item.poster,
|
|
161
|
+
theme: appliedTheme,
|
|
162
|
+
borderRadius: borderRadius,
|
|
163
|
+
posterWrapperStyle: styles.image,
|
|
164
|
+
resizeMode: FastImage.resizeMode.cover,
|
|
165
|
+
isLoading: isLoading
|
|
166
|
+
})
|
|
167
|
+
}, item._id || `item-${index}`);
|
|
168
|
+
}, [styles.item, styles.image, styles.skeleton, itemStyle, onPressItem, isLoading, renderItemImage, appliedTheme, borderRadius, itemWidth, itemHeight, handleItemPress]);
|
|
169
|
+
if (!initialData) {
|
|
170
|
+
return null;
|
|
171
|
+
}
|
|
172
|
+
if (!isLoading && (!data || data.length === 0)) return null;
|
|
173
|
+
return /*#__PURE__*/_jsxs(View, {
|
|
174
|
+
style: [staticStyles.root, containerStyle],
|
|
175
|
+
testID: `movie-card-${section_id}`,
|
|
176
|
+
children: [isLoading ? /*#__PURE__*/_jsx(SkeletonPlaceholder, {
|
|
177
|
+
highlightColor: appliedTheme.colors.skeletonHighlightColor,
|
|
178
|
+
backgroundColor: appliedTheme.colors.skeletonBaseColor,
|
|
179
|
+
children: /*#__PURE__*/_jsx(SkeletonPlaceholder.Item, {
|
|
180
|
+
width: moderateScale(100),
|
|
181
|
+
height: verticalScale(14),
|
|
182
|
+
borderRadius: moderateScale(4),
|
|
183
|
+
marginLeft: moderateScale(12),
|
|
184
|
+
marginBottom: verticalScale(6)
|
|
185
|
+
})
|
|
186
|
+
}) : /*#__PURE__*/_jsx(NavigateToMore, {
|
|
187
|
+
title: title,
|
|
188
|
+
onPress: handlePressMore,
|
|
189
|
+
titleStyle: [staticStyles.title, {
|
|
190
|
+
color: appliedTheme.colors.textPrimary
|
|
191
|
+
}, titleStyle],
|
|
192
|
+
containerStyle: staticStyles.navigateToMoreContainer,
|
|
193
|
+
showAllProps: {
|
|
194
|
+
iconColor: appliedTheme.colors.textPrimary
|
|
195
|
+
}
|
|
196
|
+
}), /*#__PURE__*/_jsx(Carousel, {
|
|
197
|
+
ref: carouselRef,
|
|
198
|
+
data: finalData,
|
|
199
|
+
vertical: false,
|
|
200
|
+
renderItem: renderItem,
|
|
201
|
+
firstItem: 1,
|
|
202
|
+
inactiveSlideOpacity: 0.6,
|
|
203
|
+
inactiveSlideScale: 0.9,
|
|
204
|
+
sliderWidth: width,
|
|
205
|
+
itemWidth: itemWidth,
|
|
206
|
+
onSnapToItem: index => {
|
|
207
|
+
if (isLoading || !pagination?.hasNextPage || !pagination?.nextPage) return;
|
|
208
|
+
if (index >= finalData.length - 2) {
|
|
209
|
+
debouncedLoadMore(pagination.nextPage);
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
})]
|
|
213
|
+
});
|
|
214
|
+
};
|
|
215
|
+
export default /*#__PURE__*/memo(RotateCarousel);
|
|
216
|
+
//# sourceMappingURL=RotateInOut.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","memo","useCallback","useMemo","useRef","View","StyleSheet","Dimensions","TouchableOpacity","SkeletonPlaceholder","FastImage","Carousel","moderateScale","verticalScale","debounce","useTheme","CardPoster","NavigateToMore","usePaginatedSection","RFValue","jsx","_jsx","jsxs","_jsxs","width","height","get","DEFAULT_ITEM_WIDTH","DEFAULT_ITEM_HEIGHT","DEFAULT_BORDER_RADIUS","staticStyles","create","root","marginVertical","navigateToMoreContainer","paddingHorizontal","marginBottom","title","fontSize","fontWeight","marginHorizontal","RotateCarousel","section_id","type","data","initialData","moreFetchData","onPressMore","onPressItem","renderItemImage","itemWidth","itemHeight","borderRadius","skeletonCount","containerStyle","titleStyle","itemStyle","isLoading","theme","appliedTheme","carouselRef","styles","item","overflow","elevation","shadowColor","shadowOffset","shadowOpacity","shadowRadius","image","backgroundColor","colors","skeletonBaseColor","skeleton","marginRight","loading","isPaginating","pagination","loadMoreData","skeletonItems","count","Array","from","length","_","i","_id","isSkeleton","finalData","debouncedLoadMore","nextPage","handleItemPress","handlePressMore","name","renderItem","index","style","children","highlightColor","skeletonHighlightColor","Item","activeOpacity","disabled","onPress","posterUri","poster","posterWrapperStyle","resizeMode","cover","testID","marginLeft","color","textPrimary","showAllProps","iconColor","ref","vertical","firstItem","inactiveSlideOpacity","inactiveSlideScale","sliderWidth","onSnapToItem","hasNextPage"],"sourceRoot":"../../../../../../src","sources":["components/Content/Card/Styles/RotateInOut.tsx"],"mappings":";;AAAA;AACA;AACA;AACA;;AAEA,OAAOA,KAAK,IAAIC,IAAI,EAAEC,WAAW,EAAEC,OAAO,EAAEC,MAAM,QAAQ,OAAO;AACjE,SACEC,IAAI,EACJC,UAAU,EACVC,UAAU,EACVC,gBAAgB,QAIX,cAAc;AACrB,OAAOC,mBAAmB,MAAM,mCAAmC;AACnE,OAAOC,SAAS,MAAM,yBAAyB;AAC/C,OAAOC,QAAQ,MAAM,4BAA4B;AACjD,SAASC,aAAa,EAAEC,aAAa,QAAQ,2BAA2B;AACxE,SAASC,QAAQ,QAAQ,QAAQ;AAEj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