@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,287 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* @author Naresh Dhamu
|
|
5
|
+
* @LastModified Wed 25 Jun 2025 at 11:59 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 { moderateScale, scale, verticalScale } from 'react-native-size-matters';
|
|
12
|
+
import { useTheme } from '../../../../theme/hook/useTheme';
|
|
13
|
+
import NavigateToMore from '../components/NavigateToMore';
|
|
14
|
+
import { usePaginatedSection } from '../../../../hooks/usePaginatedSection';
|
|
15
|
+
import FastImage from 'react-native-fast-image';
|
|
16
|
+
import LinearGradient from 'react-native-linear-gradient';
|
|
17
|
+
import { Text } from '../../../Text';
|
|
18
|
+
import CardPoster from '../components/CardPoster';
|
|
19
|
+
import { RFValue } from 'react-native-responsive-fontsize';
|
|
20
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
21
|
+
const DEFAULT_ITEM_WIDTH = moderateScale(120);
|
|
22
|
+
const DEFAULT_ITEM_HEIGHT = moderateScale(180);
|
|
23
|
+
const DEFAULT_BORDER_RADIUS = moderateScale(8);
|
|
24
|
+
const DEFAULT_SKELETON_COUNT = 5;
|
|
25
|
+
const TopTenCard = ({
|
|
26
|
+
title,
|
|
27
|
+
section_id,
|
|
28
|
+
data: initialData,
|
|
29
|
+
moreFetchData,
|
|
30
|
+
onPressMore,
|
|
31
|
+
type,
|
|
32
|
+
onPressItem,
|
|
33
|
+
itemWidth = DEFAULT_ITEM_WIDTH,
|
|
34
|
+
itemHeight = DEFAULT_ITEM_HEIGHT,
|
|
35
|
+
borderRadius = DEFAULT_BORDER_RADIUS,
|
|
36
|
+
skeletonCount = DEFAULT_SKELETON_COUNT,
|
|
37
|
+
containerStyle,
|
|
38
|
+
titleStyle,
|
|
39
|
+
itemStyle,
|
|
40
|
+
isLoading = false,
|
|
41
|
+
theme,
|
|
42
|
+
accessibilityLabel,
|
|
43
|
+
accessibilityHint
|
|
44
|
+
}) => {
|
|
45
|
+
const flatListRef = useRef(null);
|
|
46
|
+
const onEndReachedDuringMomentum = useRef(false);
|
|
47
|
+
const {
|
|
48
|
+
theme: appliedTheme
|
|
49
|
+
} = useTheme(theme);
|
|
50
|
+
const styles = useMemo(() => getStyles(appliedTheme, itemWidth, itemHeight, borderRadius), [appliedTheme, itemWidth, itemHeight, borderRadius]);
|
|
51
|
+
const {
|
|
52
|
+
data,
|
|
53
|
+
pagination: paginated,
|
|
54
|
+
loading: isPaginating,
|
|
55
|
+
loadMoreData
|
|
56
|
+
} = usePaginatedSection(section_id, moreFetchData, initialData?.data || [], isLoading);
|
|
57
|
+
const listData = useMemo(() => Array.isArray(data) ? data : [], [data]);
|
|
58
|
+
const handleEndReached = useCallback(() => {
|
|
59
|
+
if (!onEndReachedDuringMomentum.current && paginated?.hasNextPage && paginated?.nextPage) {
|
|
60
|
+
onEndReachedDuringMomentum.current = true;
|
|
61
|
+
loadMoreData(paginated.nextPage);
|
|
62
|
+
}
|
|
63
|
+
}, [loadMoreData, paginated?.hasNextPage, paginated?.nextPage]);
|
|
64
|
+
const handleItemPress = useCallback(item => {
|
|
65
|
+
onPressItem?.(item);
|
|
66
|
+
}, [onPressItem]);
|
|
67
|
+
const renderItem = useCallback(({
|
|
68
|
+
item,
|
|
69
|
+
index
|
|
70
|
+
}) => {
|
|
71
|
+
return /*#__PURE__*/_jsx(TouchableOpacity, {
|
|
72
|
+
style: [styles.item, index === 0 && styles.firstItem, itemStyle],
|
|
73
|
+
onPress: () => handleItemPress(item),
|
|
74
|
+
activeOpacity: 0.8,
|
|
75
|
+
children: /*#__PURE__*/_jsxs(LinearGradient, {
|
|
76
|
+
colors: ['rgba(0,0,0,0)', 'rgba(0,0,0,0.8)'],
|
|
77
|
+
style: styles.imageOverlay,
|
|
78
|
+
children: [/*#__PURE__*/_jsx(CardPoster, {
|
|
79
|
+
posterUri: item.poster,
|
|
80
|
+
isLoading: isLoading,
|
|
81
|
+
borderRadius: borderRadius,
|
|
82
|
+
posterWrapperStyle: [styles.image],
|
|
83
|
+
resizeMode: FastImage.resizeMode.cover,
|
|
84
|
+
theme: appliedTheme
|
|
85
|
+
}), /*#__PURE__*/_jsx(View, {
|
|
86
|
+
style: styles.numberContainer,
|
|
87
|
+
children: /*#__PURE__*/_jsx(LinearGradient, {
|
|
88
|
+
colors: appliedTheme.colors.backgroundLayoutGradient,
|
|
89
|
+
start: {
|
|
90
|
+
x: 1,
|
|
91
|
+
y: 0.5
|
|
92
|
+
},
|
|
93
|
+
end: {
|
|
94
|
+
x: 0.5,
|
|
95
|
+
y: 1
|
|
96
|
+
},
|
|
97
|
+
style: styles.rankNumberBox,
|
|
98
|
+
children: /*#__PURE__*/_jsx(Text, {
|
|
99
|
+
style: styles.rankNumberText,
|
|
100
|
+
children: index + 1
|
|
101
|
+
})
|
|
102
|
+
})
|
|
103
|
+
})]
|
|
104
|
+
})
|
|
105
|
+
});
|
|
106
|
+
}, [styles.item, styles.firstItem, styles.imageOverlay, styles.image, styles.numberContainer, styles.rankNumberBox, styles.rankNumberText, itemStyle, isLoading, borderRadius, appliedTheme, handleItemPress]);
|
|
107
|
+
const renderSkeletonItem = useCallback(({
|
|
108
|
+
index
|
|
109
|
+
}) => /*#__PURE__*/_jsx(SkeletonPlaceholder, {
|
|
110
|
+
highlightColor: appliedTheme.colors.skeletonHighlightColor,
|
|
111
|
+
backgroundColor: appliedTheme.colors.skeletonBaseColor,
|
|
112
|
+
borderRadius: borderRadius,
|
|
113
|
+
children: /*#__PURE__*/_jsx(SkeletonPlaceholder.Item, {
|
|
114
|
+
width: itemWidth,
|
|
115
|
+
height: itemHeight,
|
|
116
|
+
borderRadius: borderRadius,
|
|
117
|
+
marginRight: moderateScale(12),
|
|
118
|
+
marginLeft: index === 0 ? moderateScale(12) : 0
|
|
119
|
+
})
|
|
120
|
+
}, `skeleton-${index}`), [appliedTheme, itemWidth, itemHeight, borderRadius]);
|
|
121
|
+
if (!initialData) {
|
|
122
|
+
return null;
|
|
123
|
+
}
|
|
124
|
+
if (!isLoading && (!listData || listData.length === 0)) return null;
|
|
125
|
+
if (isLoading) {
|
|
126
|
+
return /*#__PURE__*/_jsxs(View, {
|
|
127
|
+
style: [styles.root, containerStyle],
|
|
128
|
+
testID: `movie-card-skeleton-${section_id}`,
|
|
129
|
+
children: [/*#__PURE__*/_jsx(SkeletonPlaceholder, {
|
|
130
|
+
highlightColor: appliedTheme.colors.skeletonHighlightColor,
|
|
131
|
+
backgroundColor: appliedTheme.colors.skeletonBaseColor,
|
|
132
|
+
children: /*#__PURE__*/_jsx(SkeletonPlaceholder.Item, {
|
|
133
|
+
width: moderateScale(100),
|
|
134
|
+
height: verticalScale(14),
|
|
135
|
+
borderRadius: moderateScale(4),
|
|
136
|
+
marginLeft: moderateScale(12),
|
|
137
|
+
marginBottom: verticalScale(6)
|
|
138
|
+
})
|
|
139
|
+
}), /*#__PURE__*/_jsx(FlatList, {
|
|
140
|
+
data: Array.from({
|
|
141
|
+
length: skeletonCount
|
|
142
|
+
}, () => null),
|
|
143
|
+
horizontal: true,
|
|
144
|
+
keyExtractor: (_, index) => `skeleton-${index}`,
|
|
145
|
+
renderItem: renderSkeletonItem,
|
|
146
|
+
showsHorizontalScrollIndicator: false,
|
|
147
|
+
contentContainerStyle: styles.listContent
|
|
148
|
+
})]
|
|
149
|
+
});
|
|
150
|
+
}
|
|
151
|
+
return /*#__PURE__*/_jsxs(View, {
|
|
152
|
+
style: [styles.root, containerStyle],
|
|
153
|
+
accessibilityLabel: accessibilityLabel || `Top Ten Section: ${title}`,
|
|
154
|
+
accessibilityHint: accessibilityHint || 'Scroll to view top content',
|
|
155
|
+
children: [/*#__PURE__*/_jsx(NavigateToMore, {
|
|
156
|
+
title: title,
|
|
157
|
+
onPress: () => onPressMore?.({
|
|
158
|
+
section_id,
|
|
159
|
+
name: title,
|
|
160
|
+
type
|
|
161
|
+
}),
|
|
162
|
+
titleStyle: [styles.title, titleStyle],
|
|
163
|
+
containerStyle: styles.navigateToMoreContainer,
|
|
164
|
+
showAllProps: {
|
|
165
|
+
iconColor: appliedTheme.colors.textPrimary
|
|
166
|
+
}
|
|
167
|
+
}), /*#__PURE__*/_jsx(FlatList, {
|
|
168
|
+
ref: flatListRef,
|
|
169
|
+
data: listData,
|
|
170
|
+
horizontal: true,
|
|
171
|
+
showsHorizontalScrollIndicator: false,
|
|
172
|
+
keyExtractor: (item, index) => `${item._id ?? item.name}-${index}`,
|
|
173
|
+
renderItem: renderItem,
|
|
174
|
+
contentContainerStyle: styles.listContent,
|
|
175
|
+
initialNumToRender: 5,
|
|
176
|
+
maxToRenderPerBatch: 10,
|
|
177
|
+
windowSize: 5,
|
|
178
|
+
onEndReachedThreshold: 0.5,
|
|
179
|
+
onMomentumScrollBegin: () => {
|
|
180
|
+
onEndReachedDuringMomentum.current = false;
|
|
181
|
+
},
|
|
182
|
+
onEndReached: handleEndReached,
|
|
183
|
+
ListFooterComponent: isPaginating ? /*#__PURE__*/_jsx(SkeletonPlaceholder, {
|
|
184
|
+
highlightColor: appliedTheme.colors.skeletonHighlightColor,
|
|
185
|
+
backgroundColor: appliedTheme.colors.skeletonBaseColor,
|
|
186
|
+
borderRadius: borderRadius,
|
|
187
|
+
speed: 800,
|
|
188
|
+
children: /*#__PURE__*/_jsxs(View, {
|
|
189
|
+
style: [styles.item, styles.skeletonItem],
|
|
190
|
+
children: [/*#__PURE__*/_jsx(SkeletonPlaceholder.Item, {
|
|
191
|
+
width: itemWidth,
|
|
192
|
+
height: itemHeight,
|
|
193
|
+
borderRadius: borderRadius
|
|
194
|
+
}), /*#__PURE__*/_jsx(View, {
|
|
195
|
+
style: styles.numberContainer,
|
|
196
|
+
children: /*#__PURE__*/_jsx(SkeletonPlaceholder.Item, {
|
|
197
|
+
width: scale(40),
|
|
198
|
+
height: scale(40),
|
|
199
|
+
borderRadius: borderRadius
|
|
200
|
+
})
|
|
201
|
+
})]
|
|
202
|
+
})
|
|
203
|
+
}) : null
|
|
204
|
+
})]
|
|
205
|
+
});
|
|
206
|
+
};
|
|
207
|
+
const getStyles = (theme, width, height, radius) => StyleSheet.create({
|
|
208
|
+
root: {
|
|
209
|
+
marginVertical: verticalScale(6)
|
|
210
|
+
},
|
|
211
|
+
item: {
|
|
212
|
+
width,
|
|
213
|
+
height,
|
|
214
|
+
marginRight: moderateScale(12),
|
|
215
|
+
overflow: 'hidden',
|
|
216
|
+
borderColor: theme.colors.outlineDisabled,
|
|
217
|
+
borderWidth: scale(0.5),
|
|
218
|
+
aspectRatio: 2 / 3,
|
|
219
|
+
borderRadius: radius,
|
|
220
|
+
position: 'relative'
|
|
221
|
+
},
|
|
222
|
+
firstItem: {
|
|
223
|
+
marginLeft: moderateScale(10)
|
|
224
|
+
},
|
|
225
|
+
imageOverlay: {
|
|
226
|
+
width: '100%',
|
|
227
|
+
height: '100%',
|
|
228
|
+
justifyContent: 'flex-end',
|
|
229
|
+
alignItems: 'flex-start'
|
|
230
|
+
},
|
|
231
|
+
image: {
|
|
232
|
+
width: '100%',
|
|
233
|
+
height: '100%',
|
|
234
|
+
borderRadius: radius
|
|
235
|
+
},
|
|
236
|
+
rankNumberBox: {
|
|
237
|
+
width: scale(40),
|
|
238
|
+
height: scale(40),
|
|
239
|
+
borderTopRightRadius: scale(30),
|
|
240
|
+
justifyContent: 'center',
|
|
241
|
+
alignItems: 'center'
|
|
242
|
+
},
|
|
243
|
+
rankNumberText: {
|
|
244
|
+
fontSize: RFValue(27),
|
|
245
|
+
fontWeight: '900',
|
|
246
|
+
color: theme.colors.textPrimary,
|
|
247
|
+
textShadowColor: 'rgba(0, 0, 0, 0.6)',
|
|
248
|
+
textShadowOffset: {
|
|
249
|
+
width: 1,
|
|
250
|
+
height: 1
|
|
251
|
+
},
|
|
252
|
+
textShadowRadius: 3,
|
|
253
|
+
marginTop: scale(5),
|
|
254
|
+
marginRight: scale(5),
|
|
255
|
+
letterSpacing: 0.5
|
|
256
|
+
},
|
|
257
|
+
numberContainer: {
|
|
258
|
+
position: 'absolute',
|
|
259
|
+
bottom: 0,
|
|
260
|
+
left: 0,
|
|
261
|
+
zIndex: 10
|
|
262
|
+
},
|
|
263
|
+
navigateToMoreContainer: {
|
|
264
|
+
paddingHorizontal: moderateScale(16),
|
|
265
|
+
marginBottom: verticalScale(8)
|
|
266
|
+
},
|
|
267
|
+
listContent: {
|
|
268
|
+
paddingRight: moderateScale(20)
|
|
269
|
+
},
|
|
270
|
+
title: {
|
|
271
|
+
fontSize: RFValue(13),
|
|
272
|
+
fontWeight: '600',
|
|
273
|
+
color: theme.colors.textPrimary
|
|
274
|
+
},
|
|
275
|
+
skeletonItem: {
|
|
276
|
+
shadowColor: '#000',
|
|
277
|
+
shadowOffset: {
|
|
278
|
+
width: 0,
|
|
279
|
+
height: 1
|
|
280
|
+
},
|
|
281
|
+
shadowOpacity: 0.1,
|
|
282
|
+
shadowRadius: 2,
|
|
283
|
+
elevation: 1
|
|
284
|
+
}
|
|
285
|
+
});
|
|
286
|
+
export default /*#__PURE__*/memo(TopTenCard);
|
|
287
|
+
//# sourceMappingURL=TopTen.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","memo","useCallback","useMemo","useRef","View","FlatList","TouchableOpacity","StyleSheet","SkeletonPlaceholder","moderateScale","scale","verticalScale","useTheme","NavigateToMore","usePaginatedSection","FastImage","LinearGradient","Text","CardPoster","RFValue","jsx","_jsx","jsxs","_jsxs","DEFAULT_ITEM_WIDTH","DEFAULT_ITEM_HEIGHT","DEFAULT_BORDER_RADIUS","DEFAULT_SKELETON_COUNT","TopTenCard","title","section_id","data","initialData","moreFetchData","onPressMore","type","onPressItem","itemWidth","itemHeight","borderRadius","skeletonCount","containerStyle","titleStyle","itemStyle","isLoading","theme","accessibilityLabel","accessibilityHint","flatListRef","onEndReachedDuringMomentum","appliedTheme","styles","getStyles","pagination","paginated","loading","isPaginating","loadMoreData","listData","Array","isArray","handleEndReached","current","hasNextPage","nextPage","handleItemPress","item","renderItem","index","style","firstItem","onPress","activeOpacity","children","colors","imageOverlay","posterUri","poster","posterWrapperStyle","image","resizeMode","cover","numberContainer","backgroundLayoutGradient","start","x","y","end","rankNumberBox","rankNumberText","renderSkeletonItem","highlightColor","skeletonHighlightColor","backgroundColor","skeletonBaseColor","Item","width","height","marginRight","marginLeft","length","root","testID","marginBottom","from","horizontal","keyExtractor","_","showsHorizontalScrollIndicator","contentContainerStyle","listContent","name","navigateToMoreContainer","showAllProps","iconColor","textPrimary","ref","_id","initialNumToRender","maxToRenderPerBatch","windowSize","onEndReachedThreshold","onMomentumScrollBegin","onEndReached","ListFooterComponent","speed","skeletonItem","radius","create","marginVertical","overflow","borderColor","outlineDisabled","borderWidth","aspectRatio","position","justifyContent","alignItems","borderTopRightRadius","fontSize","fontWeight","color","textShadowColor","textShadowOffset","textShadowRadius","marginTop","letterSpacing","bottom","left","zIndex","paddingHorizontal","paddingRight","shadowColor","shadowOffset","shadowOpacity","shadowRadius","elevation"],"sourceRoot":"../../../../../../src","sources":["components/Content/Card/Styles/TopTen.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,SAASC,aAAa,EAAEC,KAAK,EAAEC,aAAa,QAAQ,2BAA2B;AAC/E,SAASC,QAAQ,QAAQ,iCAAiC;AAC1D,OAAOC,cAAc,MAAM,8BAA8B;AACzD,SAASC,mBAAmB,QAAQ,uCAAuC;AAG3E,OAAOC,SAAS,MAAM,yBAAyB;AAC/C,OAAOC,cAAc,MAAM,8BAA8B;AACzD,SAASC,IAAI,QAAQ,eAAe;AACpC,OAAOC,UAAU,MAAM,0BAA0B;AACjD,SAASC,OAAO,QAAQ,kCAAkC;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAE3D,MAAMC,kBAAkB,GAAGf,aAAa,CAAC,GAAG,CAAC;AAC7C,MAAMgB,mBAAmB,GAAGhB,aAAa,CAAC,GAAG,CAAC;AAC9C,MAAMiB,qBAAqB,GAAGjB,aAAa,CAAC,CAAC,CAAC;AAC9C,MAAMkB,sBAAsB,GAAG,CAAC;AAyBhC,MAAMC,UAAq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AC;EACDoB,KAAK,EAAE;IACL8G,QAAQ,EAAExH,OAAO,CAAC,EAAE,CAAC;IACrByH,UAAU,EAAE,KAAK;IACjBC,KAAK,EAAEhG,KAAK,CAAC6B,MAAM,CAACyC;EACtB,CAAC;EACDW,YAAY,EAAE;IACZ0B,WAAW,EAAE,MAAM;IACnBC,YAAY,EAAE;MAAEzD,KAAK,EAAE,CAAC;MAAEC,MAAM,EAAE;IAAE,CAAC;IACrCyD,aAAa,EAAE,GAAG;IAClBC,YAAY,EAAE,CAAC;IACfC,SAAS,EAAE;EACb;AACF,CAAC,CAAC;AAEJ,4BAAe5J,IAAI,CAAC4B,UAAU,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,217 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* @author Naresh Dhamu
|
|
5
|
+
* @lastModified Thu 26 Jun 2025 at 10:00 AM
|
|
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 { usePaginatedSection } from '../../../../hooks/usePaginatedSection';
|
|
14
|
+
import { useTheme } from '../../../../theme/hook/useTheme';
|
|
15
|
+
import NavigateToMore from '../components/NavigateToMore';
|
|
16
|
+
import CardPoster from '../components/CardPoster';
|
|
17
|
+
import { RFValue } from 'react-native-responsive-fontsize';
|
|
18
|
+
|
|
19
|
+
// Defaults
|
|
20
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
21
|
+
const DEFAULT_WIDTH = moderateScale(172);
|
|
22
|
+
const DEFAULT_BORDER_RADIUS = moderateScale(5);
|
|
23
|
+
const DEFAULT_SKELETON_COUNT = 3;
|
|
24
|
+
const MovieCardTwo = ({
|
|
25
|
+
title,
|
|
26
|
+
section_id,
|
|
27
|
+
data: initialData,
|
|
28
|
+
moreFetchData,
|
|
29
|
+
onPressMore,
|
|
30
|
+
onPressItem,
|
|
31
|
+
type,
|
|
32
|
+
renderItemImage,
|
|
33
|
+
itemWidth = DEFAULT_WIDTH,
|
|
34
|
+
borderRadius = DEFAULT_BORDER_RADIUS,
|
|
35
|
+
skeletonCount = DEFAULT_SKELETON_COUNT,
|
|
36
|
+
containerStyle,
|
|
37
|
+
titleStyle,
|
|
38
|
+
itemStyle,
|
|
39
|
+
isLoading = false,
|
|
40
|
+
theme,
|
|
41
|
+
accessibilityLabel,
|
|
42
|
+
accessibilityHint
|
|
43
|
+
}) => {
|
|
44
|
+
const flatListRef = useRef(null);
|
|
45
|
+
const onEndReachedCalledDuringMomentum = useRef(false);
|
|
46
|
+
const {
|
|
47
|
+
theme: appliedTheme
|
|
48
|
+
} = useTheme(theme);
|
|
49
|
+
const styles = useMemo(() => getStyles(appliedTheme, itemWidth, borderRadius), [appliedTheme, itemWidth, borderRadius]);
|
|
50
|
+
const {
|
|
51
|
+
data,
|
|
52
|
+
pagination: paginated,
|
|
53
|
+
loading: isPaginating,
|
|
54
|
+
loadMoreData
|
|
55
|
+
} = usePaginatedSection(section_id, moreFetchData, initialData?.data || [], isLoading);
|
|
56
|
+
const handleItemPress = useCallback(item => {
|
|
57
|
+
onPressItem?.(item);
|
|
58
|
+
}, [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 && paginated?.hasNextPage && paginated?.nextPage) {
|
|
68
|
+
onEndReachedCalledDuringMomentum.current = true;
|
|
69
|
+
loadMoreData(paginated.nextPage);
|
|
70
|
+
}
|
|
71
|
+
}, [loadMoreData, paginated?.hasNextPage, paginated?.nextPage]);
|
|
72
|
+
const renderItem = useCallback(({
|
|
73
|
+
item,
|
|
74
|
+
index
|
|
75
|
+
}) => {
|
|
76
|
+
return /*#__PURE__*/_jsx(TouchableOpacity, {
|
|
77
|
+
style: [styles.item, index === 0 && styles.firstItem, itemStyle],
|
|
78
|
+
onPress: () => handleItemPress(item),
|
|
79
|
+
activeOpacity: 0.85,
|
|
80
|
+
testID: `movie-card-two-item-${index}`,
|
|
81
|
+
accessibilityLabel: `Card Two: ${item.name || 'item'} ${index + 1}`,
|
|
82
|
+
accessibilityHint: "Press to view movie details",
|
|
83
|
+
children: renderItemImage ? renderItemImage({
|
|
84
|
+
item,
|
|
85
|
+
index
|
|
86
|
+
}) : /*#__PURE__*/_jsx(CardPoster, {
|
|
87
|
+
posterUri: item.poster,
|
|
88
|
+
theme: appliedTheme,
|
|
89
|
+
borderRadius: borderRadius,
|
|
90
|
+
posterWrapperStyle: styles.image,
|
|
91
|
+
resizeMode: FastImage.resizeMode.cover,
|
|
92
|
+
isLoading: isLoading
|
|
93
|
+
})
|
|
94
|
+
}, index);
|
|
95
|
+
}, [styles.item, styles.firstItem, styles.image, itemStyle, renderItemImage, appliedTheme, borderRadius, isLoading, handleItemPress]);
|
|
96
|
+
const renderSkeletonItem = useCallback(({
|
|
97
|
+
index
|
|
98
|
+
}) => /*#__PURE__*/_jsx(SkeletonPlaceholder, {
|
|
99
|
+
highlightColor: appliedTheme.colors.skeletonHighlightColor,
|
|
100
|
+
backgroundColor: appliedTheme.colors.skeletonBaseColor,
|
|
101
|
+
children: /*#__PURE__*/_jsx(SkeletonPlaceholder.Item, {
|
|
102
|
+
width: itemWidth,
|
|
103
|
+
height: itemWidth / 0.67,
|
|
104
|
+
borderRadius: borderRadius,
|
|
105
|
+
marginRight: moderateScale(12),
|
|
106
|
+
marginLeft: index === 0 ? moderateScale(12) : 0
|
|
107
|
+
})
|
|
108
|
+
}, `skeleton-${index}`), [appliedTheme, itemWidth, borderRadius]);
|
|
109
|
+
if (!initialData) {
|
|
110
|
+
return null;
|
|
111
|
+
}
|
|
112
|
+
const listData = data ?? [];
|
|
113
|
+
if (!isLoading && listData.length === 0) {
|
|
114
|
+
return null;
|
|
115
|
+
}
|
|
116
|
+
if (isLoading) {
|
|
117
|
+
return /*#__PURE__*/_jsxs(View, {
|
|
118
|
+
style: [styles.root, containerStyle],
|
|
119
|
+
children: [/*#__PURE__*/_jsx(SkeletonPlaceholder, {
|
|
120
|
+
highlightColor: appliedTheme.colors.skeletonHighlightColor,
|
|
121
|
+
backgroundColor: appliedTheme.colors.skeletonBaseColor,
|
|
122
|
+
children: /*#__PURE__*/_jsx(SkeletonPlaceholder.Item, {
|
|
123
|
+
width: moderateScale(100),
|
|
124
|
+
height: verticalScale(14),
|
|
125
|
+
borderRadius: moderateScale(4),
|
|
126
|
+
marginLeft: moderateScale(12),
|
|
127
|
+
marginBottom: verticalScale(6)
|
|
128
|
+
})
|
|
129
|
+
}), /*#__PURE__*/_jsx(FlatList, {
|
|
130
|
+
data: Array.from({
|
|
131
|
+
length: skeletonCount
|
|
132
|
+
}, () => null),
|
|
133
|
+
horizontal: true,
|
|
134
|
+
keyExtractor: (_, index) => `skeleton-${index}`,
|
|
135
|
+
renderItem: renderSkeletonItem,
|
|
136
|
+
showsHorizontalScrollIndicator: false,
|
|
137
|
+
contentContainerStyle: styles.listContent
|
|
138
|
+
})]
|
|
139
|
+
});
|
|
140
|
+
}
|
|
141
|
+
return /*#__PURE__*/_jsxs(View, {
|
|
142
|
+
style: [styles.root, containerStyle],
|
|
143
|
+
testID: `movie-card-two-${section_id}`,
|
|
144
|
+
accessibilityLabel: accessibilityLabel || `CardTwo section: ${title}`,
|
|
145
|
+
accessibilityHint: accessibilityHint || 'Scroll to view content',
|
|
146
|
+
children: [/*#__PURE__*/_jsx(NavigateToMore, {
|
|
147
|
+
title: title,
|
|
148
|
+
onPress: handlePressMore,
|
|
149
|
+
containerStyle: styles.navigateToMoreContainer,
|
|
150
|
+
titleStyle: [styles.title, {
|
|
151
|
+
color: appliedTheme.colors.textPrimary
|
|
152
|
+
}, titleStyle],
|
|
153
|
+
showAllProps: {
|
|
154
|
+
iconColor: appliedTheme.colors.textPrimary
|
|
155
|
+
}
|
|
156
|
+
}), /*#__PURE__*/_jsx(FlatList, {
|
|
157
|
+
ref: flatListRef,
|
|
158
|
+
data: listData,
|
|
159
|
+
horizontal: true,
|
|
160
|
+
showsHorizontalScrollIndicator: false,
|
|
161
|
+
keyExtractor: (item, index) => `${item._id ?? item.name}-${index}`,
|
|
162
|
+
renderItem: renderItem,
|
|
163
|
+
contentContainerStyle: styles.listContent,
|
|
164
|
+
onEndReached: handleEndReached,
|
|
165
|
+
onEndReachedThreshold: 0.5,
|
|
166
|
+
onMomentumScrollBegin: () => {
|
|
167
|
+
onEndReachedCalledDuringMomentum.current = false;
|
|
168
|
+
},
|
|
169
|
+
ListFooterComponent: isPaginating ? /*#__PURE__*/_jsx(SkeletonPlaceholder, {
|
|
170
|
+
highlightColor: appliedTheme.colors.skeletonHighlightColor,
|
|
171
|
+
backgroundColor: appliedTheme.colors.skeletonBaseColor,
|
|
172
|
+
borderRadius: borderRadius,
|
|
173
|
+
children: /*#__PURE__*/_jsx(SkeletonPlaceholder.Item, {
|
|
174
|
+
width: itemWidth,
|
|
175
|
+
height: itemWidth / 0.67,
|
|
176
|
+
borderRadius: borderRadius,
|
|
177
|
+
marginRight: moderateScale(12)
|
|
178
|
+
})
|
|
179
|
+
}) : null
|
|
180
|
+
})]
|
|
181
|
+
});
|
|
182
|
+
};
|
|
183
|
+
const getStyles = (theme, width, radius) => StyleSheet.create({
|
|
184
|
+
root: {
|
|
185
|
+
marginVertical: verticalScale(6)
|
|
186
|
+
},
|
|
187
|
+
item: {
|
|
188
|
+
width: width,
|
|
189
|
+
height: width / 0.67,
|
|
190
|
+
marginRight: moderateScale(12),
|
|
191
|
+
borderRadius: radius,
|
|
192
|
+
overflow: 'hidden',
|
|
193
|
+
backgroundColor: theme.colors.background ?? '#2c2c2c'
|
|
194
|
+
},
|
|
195
|
+
firstItem: {
|
|
196
|
+
marginLeft: moderateScale(10)
|
|
197
|
+
},
|
|
198
|
+
image: {
|
|
199
|
+
width: '100%',
|
|
200
|
+
height: '100%',
|
|
201
|
+
borderRadius: radius,
|
|
202
|
+
backgroundColor: theme.colors.background ?? '#222'
|
|
203
|
+
},
|
|
204
|
+
navigateToMoreContainer: {
|
|
205
|
+
paddingHorizontal: moderateScale(10),
|
|
206
|
+
marginBottom: verticalScale(8)
|
|
207
|
+
},
|
|
208
|
+
title: {
|
|
209
|
+
fontSize: RFValue(13),
|
|
210
|
+
fontWeight: '600'
|
|
211
|
+
},
|
|
212
|
+
listContent: {
|
|
213
|
+
paddingRight: moderateScale(15)
|
|
214
|
+
}
|
|
215
|
+
});
|
|
216
|
+
export default /*#__PURE__*/memo(MovieCardTwo);
|
|
217
|
+
//# sourceMappingURL=Two.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","memo","useCallback","useMemo","useRef","View","FlatList","TouchableOpacity","StyleSheet","SkeletonPlaceholder","FastImage","moderateScale","verticalScale","usePaginatedSection","useTheme","NavigateToMore","CardPoster","RFValue","jsx","_jsx","jsxs","_jsxs","DEFAULT_WIDTH","DEFAULT_BORDER_RADIUS","DEFAULT_SKELETON_COUNT","MovieCardTwo","title","section_id","data","initialData","moreFetchData","onPressMore","onPressItem","type","renderItemImage","itemWidth","borderRadius","skeletonCount","containerStyle","titleStyle","itemStyle","isLoading","theme","accessibilityLabel","accessibilityHint","flatListRef","onEndReachedCalledDuringMomentum","appliedTheme","styles","getStyles","pagination","paginated","loading","isPaginating","loadMoreData","handleItemPress","item","handlePressMore","name","handleEndReached","current","hasNextPage","nextPage","renderItem","index","style","firstItem","onPress","activeOpacity","testID","children","posterUri","poster","posterWrapperStyle","image","resizeMode","cover","renderSkeletonItem","highlightColor","colors","skeletonHighlightColor","backgroundColor","skeletonBaseColor","Item","width","height","marginRight","marginLeft","listData","length","root","marginBottom","Array","from","horizontal","keyExtractor","_","showsHorizontalScrollIndicator","contentContainerStyle","listContent","navigateToMoreContainer","color","textPrimary","showAllProps","iconColor","ref","_id","onEndReached","onEndReachedThreshold","onMomentumScrollBegin","ListFooterComponent","radius","create","marginVertical","overflow","background","paddingHorizontal","fontSize","fontWeight","paddingRight"],"sourceRoot":"../../../../../../src","sources":["components/Content/Card/Styles/Two.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,QAOL,cAAc;AACrB,OAAOC,mBAAmB,MAAM,mCAAmC;AACnE,OAAOC,SAAS,MAAM,yBAAyB;AAC/C,SAASC,aAAa,EAAEC,aAAa,QAAQ,2BAA2B;AAExE,SAASC,mBAAmB,QAAQ,uCAAuC;AAG3E,SAASC,QAAQ,QAAQ,iCAAiC;AAC1D,OAAOC,cAAc,MAAM,8BAA8B;AACzD,OAAOC,UAAU,MAAM,0BAA0B;AACjD,SAASC,OAAO,QAAQ,kCAAkC;;AAE1D;AAAA,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AACA,MAAMC,aAAa,GAAGX,aAAa,CAAC,GAAG,CAAC;AACxC,MAAMY,qBAAqB,GAAGZ,aAAa,CAAC,CAAC,CAAC;AAC9C,MAAMa,sBAAsB,GAAG,CAAC;AAyBhC,MAAMC,YAAyC,GAAGA,CAAC;EACjDC,KAAK;EACLC,UAAU;EACVC,IAAI,EAAEC,WAAW;EACjBC,aAAa;EACbC,WAAW;EACXC,WAAW;EACXC,IAAI;EACJC,eAAe;EACfC,SAAS,GAAGb,aAAa;EACzBc,YAAY,GAAGb,qBAAqB;EACpCc,aAAa,G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