@zezosoft/zezo-ott-react-native-ui-kit 0.1.0 → 1.0.0
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 +254 -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 +205 -0
- package/lib/module/components/Auth/ForgotPassword/ForgotPassword.js.map +1 -0
- package/lib/module/components/Auth/Login/LoginWithEmail.js +292 -0
- package/lib/module/components/Auth/Login/LoginWithEmail.js.map +1 -0
- package/lib/module/components/Auth/Login/LoginWithPhone.js +199 -0
- package/lib/module/components/Auth/Login/LoginWithPhone.js.map +1 -0
- package/lib/module/components/Auth/OTP/OTP.js +255 -0
- package/lib/module/components/Auth/OTP/OTP.js.map +1 -0
- package/lib/module/components/Auth/SignUp/SignUp.js +329 -0
- package/lib/module/components/Auth/SignUp/SignUp.js.map +1 -0
- package/lib/module/components/Auth/index.js +21 -0
- package/lib/module/components/Auth/index.js.map +1 -0
- package/lib/module/components/BackgroundLayout/BackgroundLayout.js +104 -0
- package/lib/module/components/BackgroundLayout/BackgroundLayout.js.map +1 -0
- package/lib/module/components/BlogView/BlogView.js +192 -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 +167 -0
- package/lib/module/components/Button/MenuBtn.js.map +1 -0
- package/lib/module/components/Button/PrimaryBtn.js +82 -0
- package/lib/module/components/Button/PrimaryBtn.js.map +1 -0
- package/lib/module/components/Button/TextButton.js +88 -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 +181 -0
- package/lib/module/components/Content/Card/Category/Category.js.map +1 -0
- package/lib/module/components/Content/Card/NowWatching/NowWatching.js +354 -0
- package/lib/module/components/Content/Card/NowWatching/NowWatching.js.map +1 -0
- package/lib/module/components/Content/Card/Sliders/Styles/One.js +313 -0
- package/lib/module/components/Content/Card/Sliders/Styles/One.js.map +1 -0
- package/lib/module/components/Content/Card/Sliders/Styles/Two.js +198 -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 +197 -0
- package/lib/module/components/Content/Card/Styles/Five.js.map +1 -0
- package/lib/module/components/Content/Card/Styles/Four.js +202 -0
- package/lib/module/components/Content/Card/Styles/Four.js.map +1 -0
- package/lib/module/components/Content/Card/Styles/One.js +237 -0
- package/lib/module/components/Content/Card/Styles/One.js.map +1 -0
- package/lib/module/components/Content/Card/Styles/RotateInOut.js +215 -0
- package/lib/module/components/Content/Card/Styles/RotateInOut.js.map +1 -0
- package/lib/module/components/Content/Card/Styles/Six.js +207 -0
- package/lib/module/components/Content/Card/Styles/Six.js.map +1 -0
- package/lib/module/components/Content/Card/Styles/Three.js +213 -0
- package/lib/module/components/Content/Card/Styles/Three.js.map +1 -0
- package/lib/module/components/Content/Card/Styles/TopTen.js +289 -0
- package/lib/module/components/Content/Card/Styles/TopTen.js.map +1 -0
- package/lib/module/components/Content/Card/Styles/Two.js +215 -0
- package/lib/module/components/Content/Card/Styles/Two.js.map +1 -0
- package/lib/module/components/Content/Card/components/CardPoster.js +175 -0
- package/lib/module/components/Content/Card/components/CardPoster.js.map +1 -0
- package/lib/module/components/Content/Card/components/NavigateToMore.js +56 -0
- package/lib/module/components/Content/Card/components/NavigateToMore.js.map +1 -0
- package/lib/module/components/Content/Card/components/NoContentFallback.js +115 -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 +128 -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 +113 -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/components/AboutSection.js +114 -0
- package/lib/module/components/ContentView/components/AboutSection.js.map +1 -0
- package/lib/module/components/ContentView/components/CastCard.js +190 -0
- package/lib/module/components/ContentView/components/CastCard.js.map +1 -0
- package/lib/module/components/ContentView/components/EpisodeCard.js +373 -0
- package/lib/module/components/ContentView/components/EpisodeCard.js.map +1 -0
- package/lib/module/components/ContentView/components/GenreTags.js +77 -0
- package/lib/module/components/ContentView/components/GenreTags.js.map +1 -0
- package/lib/module/components/ContentView/components/HeroBanner.js +222 -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 +103 -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 +9 -0
- package/lib/module/components/ContentView/index.js.map +1 -0
- package/lib/module/components/Headers/AppHeader.js +101 -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 +7 -12
- package/lib/module/components/Headers/Three.js.map +1 -1
- package/lib/module/components/Headers/Two.js +8 -8
- 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 +124 -0
- package/lib/module/components/Input/InputOne.js.map +1 -0
- package/lib/module/components/Input/InputTwo.js +152 -0
- package/lib/module/components/Input/InputTwo.js.map +1 -0
- package/lib/module/components/Input/PhoneNumberInput.js +284 -0
- package/lib/module/components/Input/PhoneNumberInput.js.map +1 -0
- package/lib/module/components/Keyboard/HideKeyboard.js +41 -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 +42 -5
- package/lib/module/components/Logo/Logo.js.map +1 -1
- package/lib/module/components/Search/One.js +191 -0
- package/lib/module/components/Search/One.js.map +1 -0
- package/lib/module/components/Search/components/RecentSearchesSection.js +160 -0
- package/lib/module/components/Search/components/RecentSearchesSection.js.map +1 -0
- package/lib/module/components/Search/components/SearchCard.js +181 -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 +225 -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/SplashScreen/SplashScreen.js +109 -0
- package/lib/module/components/SplashScreen/SplashScreen.js.map +1 -0
- package/lib/module/components/SplashScreen/components/SplashImage/SplashImage.js +68 -0
- package/lib/module/components/SplashScreen/components/SplashImage/SplashImage.js.map +1 -0
- package/lib/module/components/SplashScreen/components/SplashLottie/SplashLottie.js +66 -0
- package/lib/module/components/SplashScreen/components/SplashLottie/SplashLottie.js.map +1 -0
- package/lib/module/components/SplashScreen/components/SplashVideo/SplashVideo.js +68 -0
- package/lib/module/components/SplashScreen/components/SplashVideo/SplashVideo.js.map +1 -0
- package/lib/module/components/SplashScreen/index.js +9 -0
- package/lib/module/components/SplashScreen/index.js.map +1 -0
- package/lib/module/components/Subscription/SubOne.js +332 -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 +144 -0
- package/lib/module/components/TabBar/One.js.map +1 -0
- package/lib/module/components/TabBar/Three.js +127 -0
- package/lib/module/components/TabBar/Three.js.map +1 -0
- package/lib/module/components/TabBar/Two.js +131 -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 +314 -0
- package/lib/module/components/User/DeviceSessions/DeviceSessions.js.map +1 -0
- package/lib/module/components/User/WatchHistory/WatchHistory.js +118 -0
- package/lib/module/components/User/WatchHistory/WatchHistory.js.map +1 -0
- package/lib/module/components/User/WatchLater/WatchLater.js +272 -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 +163 -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 +19 -5
- package/lib/module/components/index.js.map +1 -1
- package/lib/module/components/layout/SafeAreaWrapper.js +33 -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 +112 -0
- package/lib/module/hooks/useInitSplashCacheSync.js.map +1 -0
- package/lib/module/hooks/useKeyboard.js +33 -0
- package/lib/module/hooks/useKeyboard.js.map +1 -0
- package/lib/module/hooks/usePaginatedSection.js +57 -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 +87 -0
- package/lib/module/theme/ThemeProvider.js.map +1 -0
- package/lib/module/theme/index.js +9 -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 +48 -0
- package/lib/typescript/src/components/Auth/ForgotPassword/ForgotPassword.d.ts.map +1 -0
- package/lib/typescript/src/components/Auth/Login/LoginWithEmail.d.ts +65 -0
- package/lib/typescript/src/components/Auth/Login/LoginWithEmail.d.ts.map +1 -0
- package/lib/typescript/src/components/Auth/Login/LoginWithPhone.d.ts +53 -0
- package/lib/typescript/src/components/Auth/Login/LoginWithPhone.d.ts.map +1 -0
- package/lib/typescript/src/components/Auth/OTP/OTP.d.ts +58 -0
- package/lib/typescript/src/components/Auth/OTP/OTP.d.ts.map +1 -0
- package/lib/typescript/src/components/Auth/SignUp/SignUp.d.ts +61 -0
- package/lib/typescript/src/components/Auth/SignUp/SignUp.d.ts.map +1 -0
- package/lib/typescript/src/components/Auth/index.d.ts +192 -0
- package/lib/typescript/src/components/Auth/index.d.ts.map +1 -0
- package/lib/typescript/src/components/BackgroundLayout/BackgroundLayout.d.ts +15 -0
- package/lib/typescript/src/components/BackgroundLayout/BackgroundLayout.d.ts.map +1 -0
- package/lib/typescript/src/components/BlogView/BlogView.d.ts +28 -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 +24 -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 +20 -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 +58 -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/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 +6 -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 +3 -3
- package/lib/typescript/src/components/Headers/Three.d.ts.map +1 -1
- package/lib/typescript/src/components/Headers/Two.d.ts +3 -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/SplashScreen/SplashScreen.d.ts +32 -0
- package/lib/typescript/src/components/SplashScreen/SplashScreen.d.ts.map +1 -0
- package/lib/typescript/src/components/SplashScreen/components/SplashImage/SplashImage.d.ts +17 -0
- package/lib/typescript/src/components/SplashScreen/components/SplashImage/SplashImage.d.ts.map +1 -0
- package/lib/typescript/src/components/SplashScreen/components/SplashLottie/SplashLottie.d.ts +17 -0
- package/lib/typescript/src/components/SplashScreen/components/SplashLottie/SplashLottie.d.ts.map +1 -0
- package/lib/typescript/src/components/SplashScreen/components/SplashVideo/SplashVideo.d.ts +19 -0
- package/lib/typescript/src/components/SplashScreen/components/SplashVideo/SplashVideo.d.ts.map +1 -0
- package/lib/typescript/src/components/SplashScreen/index.d.ts +6 -0
- package/lib/typescript/src/components/SplashScreen/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 +16 -2
- package/lib/typescript/src/components/index.d.ts.map +1 -1
- package/lib/typescript/src/components/layout/SafeAreaWrapper.d.ts +15 -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 +11 -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 +19 -0
- package/lib/typescript/src/theme/ThemeProvider.d.ts.map +1 -0
- package/lib/typescript/src/theme/index.d.ts +6 -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 +137 -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 +73 -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 +288 -0
- package/src/components/Account/index.ts +1 -0
- package/src/components/Auth/ForgotPassword/ForgotPassword.tsx +254 -0
- package/src/components/Auth/Login/LoginWithEmail.tsx +357 -0
- package/src/components/Auth/Login/LoginWithPhone.tsx +249 -0
- package/src/components/Auth/OTP/OTP.tsx +322 -0
- package/src/components/Auth/SignUp/SignUp.tsx +383 -0
- package/src/components/Auth/index.ts +20 -0
- package/src/components/BackgroundLayout/BackgroundLayout.tsx +114 -0
- package/src/components/BlogView/BlogView.tsx +195 -0
- package/src/components/BlogView/index.ts +8 -0
- package/src/components/Button/BackBtn.tsx +83 -0
- package/src/components/Button/MenuBtn.tsx +193 -0
- package/src/components/Button/PrimaryBtn.tsx +88 -0
- package/src/components/Button/TextButton.tsx +107 -0
- package/src/components/Button/index.ts +16 -0
- package/src/components/Content/Card/Category/Category.tsx +262 -0
- package/src/components/Content/Card/NowWatching/NowWatching.tsx +412 -0
- package/src/components/Content/Card/Sliders/Styles/One.tsx +320 -0
- package/src/components/Content/Card/Sliders/Styles/Two.tsx +209 -0
- package/src/components/{Section → Content}/Card/Sliders/index.ts +3 -1
- package/src/components/Content/Card/Styles/Five.tsx +240 -0
- package/src/components/Content/Card/Styles/Four.tsx +245 -0
- package/src/components/Content/Card/Styles/One.tsx +309 -0
- package/src/components/Content/Card/Styles/RotateInOut.tsx +280 -0
- package/src/components/Content/Card/Styles/Six.tsx +247 -0
- package/src/components/Content/Card/Styles/Three.tsx +279 -0
- package/src/components/Content/Card/Styles/TopTen.tsx +342 -0
- package/src/components/Content/Card/Styles/Two.tsx +288 -0
- package/src/components/Content/Card/components/CardPoster.tsx +204 -0
- package/src/components/Content/Card/components/NavigateToMore.tsx +58 -0
- package/src/components/Content/Card/components/NoContentFallback.tsx +129 -0
- package/src/components/Content/Card/components/ShowAllButton.tsx +83 -0
- package/src/components/Content/Card/components/ThumbnailCard.tsx +150 -0
- package/src/components/Content/Card/index.ts +30 -0
- package/src/components/Content/Content.tsx +187 -0
- package/src/components/Content/Sections.tsx +169 -0
- package/src/components/ContentView/ContentView.tsx +137 -0
- package/src/components/ContentView/components/AboutSection.tsx +138 -0
- package/src/components/ContentView/components/CastCard.tsx +212 -0
- package/src/components/ContentView/components/EpisodeCard.tsx +428 -0
- package/src/components/ContentView/components/GenreTags.tsx +92 -0
- package/src/components/ContentView/components/HeroBanner.tsx +244 -0
- package/src/components/ContentView/components/PlayButton.tsx +37 -0
- package/src/components/ContentView/components/Title.tsx +120 -0
- package/src/components/ContentView/components/TrailerButton.tsx +53 -0
- package/src/components/ContentView/index.ts +6 -0
- package/src/components/Headers/AppHeader.tsx +122 -0
- package/src/components/Headers/One.tsx +34 -28
- package/src/components/Headers/Three.tsx +12 -23
- package/src/components/Headers/Two.tsx +14 -22
- 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 +160 -0
- package/src/components/Input/InputTwo.tsx +188 -0
- package/src/components/Input/PhoneNumberInput.tsx +382 -0
- package/src/components/Keyboard/HideKeyboard.tsx +56 -0
- package/src/components/Loader/Loader.tsx +2 -2
- package/src/components/Logo/Logo.tsx +69 -26
- package/src/components/Search/One.tsx +228 -0
- package/src/components/Search/components/RecentSearchesSection.tsx +153 -0
- package/src/components/Search/components/SearchCard.tsx +193 -0
- package/src/components/Search/index.ts +16 -0
- package/src/components/Settings/AppSettings.tsx +287 -0
- package/src/components/Settings/index.ts +1 -0
- package/src/components/SplashScreen/SplashScreen.tsx +131 -0
- package/src/components/SplashScreen/components/SplashImage/SplashImage.tsx +84 -0
- package/src/components/SplashScreen/components/SplashLottie/SplashLottie.tsx +83 -0
- package/src/components/SplashScreen/components/SplashVideo/SplashVideo.tsx +94 -0
- package/src/components/SplashScreen/index.ts +6 -0
- package/src/components/Subscription/SubOne.tsx +336 -0
- package/src/components/Subscription/index.ts +12 -0
- package/src/components/TabBar/One.tsx +199 -0
- package/src/components/TabBar/Three.tsx +134 -0
- package/src/components/TabBar/Two.tsx +151 -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 +373 -0
- package/src/components/User/WatchHistory/WatchHistory.tsx +175 -0
- package/src/components/User/WatchLater/WatchLater.tsx +290 -0
- package/src/components/User/components/UserAvatar.tsx +43 -0
- package/src/components/User/components/UserSection.tsx +181 -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 +16 -2
- package/src/components/layout/SafeAreaWrapper.tsx +32 -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 +159 -0
- package/src/hooks/useKeyboard.ts +33 -0
- package/src/hooks/usePaginatedSection.ts +74 -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 +103 -0
- package/src/theme/index.ts +6 -0
- package/src/theme/themes.ts +210 -123
- package/src/types/content/content-view.types.ts +146 -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,215 @@
|
|
|
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';
|
|
15
|
+
import NavigateToMore from '../components/NavigateToMore';
|
|
16
|
+
import CardPoster from '../components/CardPoster';
|
|
17
|
+
|
|
18
|
+
// Defaults
|
|
19
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
20
|
+
const DEFAULT_WIDTH = moderateScale(172);
|
|
21
|
+
const DEFAULT_BORDER_RADIUS = moderateScale(5);
|
|
22
|
+
const DEFAULT_SKELETON_COUNT = 3;
|
|
23
|
+
const MovieCardTwo = ({
|
|
24
|
+
title,
|
|
25
|
+
section_id,
|
|
26
|
+
data: initialData,
|
|
27
|
+
moreFetchData,
|
|
28
|
+
onPressMore,
|
|
29
|
+
onPressItem,
|
|
30
|
+
type,
|
|
31
|
+
renderItemImage,
|
|
32
|
+
itemWidth = DEFAULT_WIDTH,
|
|
33
|
+
borderRadius = DEFAULT_BORDER_RADIUS,
|
|
34
|
+
skeletonCount = DEFAULT_SKELETON_COUNT,
|
|
35
|
+
containerStyle,
|
|
36
|
+
titleStyle,
|
|
37
|
+
itemStyle,
|
|
38
|
+
isLoading = false,
|
|
39
|
+
theme,
|
|
40
|
+
accessibilityLabel,
|
|
41
|
+
accessibilityHint
|
|
42
|
+
}) => {
|
|
43
|
+
const flatListRef = useRef(null);
|
|
44
|
+
const onEndReachedCalledDuringMomentum = useRef(false);
|
|
45
|
+
const {
|
|
46
|
+
theme: appliedTheme
|
|
47
|
+
} = useTheme(theme);
|
|
48
|
+
const styles = useMemo(() => getStyles(appliedTheme, itemWidth, borderRadius), [appliedTheme, itemWidth, borderRadius]);
|
|
49
|
+
const {
|
|
50
|
+
data,
|
|
51
|
+
pagination: paginated,
|
|
52
|
+
loading: isPaginating,
|
|
53
|
+
loadMoreData
|
|
54
|
+
} = usePaginatedSection(section_id, moreFetchData, initialData?.data || [], isLoading);
|
|
55
|
+
const handleItemPress = useCallback(item => {
|
|
56
|
+
onPressItem?.(item);
|
|
57
|
+
}, [onPressItem]);
|
|
58
|
+
const handlePressMore = useCallback(() => {
|
|
59
|
+
onPressMore?.({
|
|
60
|
+
section_id,
|
|
61
|
+
name: title,
|
|
62
|
+
type
|
|
63
|
+
});
|
|
64
|
+
}, [onPressMore, section_id, title, type]);
|
|
65
|
+
const handleEndReached = useCallback(() => {
|
|
66
|
+
if (!onEndReachedCalledDuringMomentum.current && paginated?.hasNextPage && paginated?.nextPage) {
|
|
67
|
+
onEndReachedCalledDuringMomentum.current = true;
|
|
68
|
+
loadMoreData(paginated.nextPage);
|
|
69
|
+
}
|
|
70
|
+
}, [loadMoreData, paginated?.hasNextPage, paginated?.nextPage]);
|
|
71
|
+
const renderItem = useCallback(({
|
|
72
|
+
item,
|
|
73
|
+
index
|
|
74
|
+
}) => {
|
|
75
|
+
return /*#__PURE__*/_jsx(TouchableOpacity, {
|
|
76
|
+
style: [styles.item, index === 0 && styles.firstItem, itemStyle],
|
|
77
|
+
onPress: () => handleItemPress(item),
|
|
78
|
+
activeOpacity: 0.85,
|
|
79
|
+
testID: `movie-card-two-item-${index}`,
|
|
80
|
+
accessibilityLabel: `Card Two: ${item.name || 'item'} ${index + 1}`,
|
|
81
|
+
accessibilityHint: "Press to view movie details",
|
|
82
|
+
children: renderItemImage ? renderItemImage({
|
|
83
|
+
item,
|
|
84
|
+
index
|
|
85
|
+
}) : /*#__PURE__*/_jsx(CardPoster, {
|
|
86
|
+
posterUri: item.poster,
|
|
87
|
+
theme: appliedTheme,
|
|
88
|
+
borderRadius: borderRadius,
|
|
89
|
+
posterWrapperStyle: styles.image,
|
|
90
|
+
resizeMode: FastImage.resizeMode.cover,
|
|
91
|
+
isLoading: isPaginating
|
|
92
|
+
})
|
|
93
|
+
}, index);
|
|
94
|
+
}, [renderItemImage, styles.item, styles.firstItem, styles.image, itemStyle, appliedTheme, borderRadius, isPaginating, handleItemPress]);
|
|
95
|
+
const renderSkeletonItem = useCallback(({
|
|
96
|
+
index
|
|
97
|
+
}) => /*#__PURE__*/_jsx(SkeletonPlaceholder, {
|
|
98
|
+
highlightColor: appliedTheme.colors.skeletonHighlightColor,
|
|
99
|
+
backgroundColor: appliedTheme.colors.skeletonBaseColor,
|
|
100
|
+
children: /*#__PURE__*/_jsx(SkeletonPlaceholder.Item, {
|
|
101
|
+
width: itemWidth,
|
|
102
|
+
height: itemWidth / 0.67,
|
|
103
|
+
borderRadius: borderRadius,
|
|
104
|
+
marginRight: moderateScale(12),
|
|
105
|
+
marginLeft: index === 0 ? moderateScale(12) : 0
|
|
106
|
+
})
|
|
107
|
+
}, `skeleton-${index}`), [appliedTheme, itemWidth, borderRadius]);
|
|
108
|
+
if (!initialData) {
|
|
109
|
+
return null;
|
|
110
|
+
}
|
|
111
|
+
const listData = data ?? [];
|
|
112
|
+
if (!isLoading && listData.length === 0) {
|
|
113
|
+
return null;
|
|
114
|
+
}
|
|
115
|
+
if (isLoading) {
|
|
116
|
+
return /*#__PURE__*/_jsxs(View, {
|
|
117
|
+
style: [styles.root, containerStyle],
|
|
118
|
+
children: [/*#__PURE__*/_jsx(SkeletonPlaceholder, {
|
|
119
|
+
highlightColor: appliedTheme.colors.skeletonHighlightColor,
|
|
120
|
+
backgroundColor: appliedTheme.colors.skeletonBaseColor,
|
|
121
|
+
children: /*#__PURE__*/_jsx(SkeletonPlaceholder.Item, {
|
|
122
|
+
width: moderateScale(100),
|
|
123
|
+
height: verticalScale(14),
|
|
124
|
+
borderRadius: moderateScale(4),
|
|
125
|
+
marginLeft: moderateScale(12),
|
|
126
|
+
marginBottom: verticalScale(6)
|
|
127
|
+
})
|
|
128
|
+
}), /*#__PURE__*/_jsx(FlatList, {
|
|
129
|
+
data: Array.from({
|
|
130
|
+
length: skeletonCount
|
|
131
|
+
}, () => null),
|
|
132
|
+
horizontal: true,
|
|
133
|
+
keyExtractor: (_, index) => `skeleton-${index}`,
|
|
134
|
+
renderItem: renderSkeletonItem,
|
|
135
|
+
showsHorizontalScrollIndicator: false,
|
|
136
|
+
contentContainerStyle: styles.listContent
|
|
137
|
+
})]
|
|
138
|
+
});
|
|
139
|
+
}
|
|
140
|
+
return /*#__PURE__*/_jsxs(View, {
|
|
141
|
+
style: [styles.root, containerStyle],
|
|
142
|
+
testID: `movie-card-two-${section_id}`,
|
|
143
|
+
accessibilityLabel: accessibilityLabel || `CardTwo section: ${title}`,
|
|
144
|
+
accessibilityHint: accessibilityHint || 'Scroll to view content',
|
|
145
|
+
children: [/*#__PURE__*/_jsx(NavigateToMore, {
|
|
146
|
+
title: title,
|
|
147
|
+
onPress: handlePressMore,
|
|
148
|
+
containerStyle: styles.navigateToMoreContainer,
|
|
149
|
+
titleStyle: [styles.title, {
|
|
150
|
+
color: appliedTheme.colors.textPrimary
|
|
151
|
+
}, titleStyle],
|
|
152
|
+
showAllProps: {
|
|
153
|
+
iconColor: appliedTheme.colors.textPrimary
|
|
154
|
+
}
|
|
155
|
+
}), /*#__PURE__*/_jsx(FlatList, {
|
|
156
|
+
ref: flatListRef,
|
|
157
|
+
data: listData,
|
|
158
|
+
horizontal: true,
|
|
159
|
+
showsHorizontalScrollIndicator: false,
|
|
160
|
+
keyExtractor: (item, index) => `${item._id ?? item.name}-${index}`,
|
|
161
|
+
renderItem: renderItem,
|
|
162
|
+
contentContainerStyle: styles.listContent,
|
|
163
|
+
onEndReached: handleEndReached,
|
|
164
|
+
onEndReachedThreshold: 0.5,
|
|
165
|
+
onMomentumScrollBegin: () => {
|
|
166
|
+
onEndReachedCalledDuringMomentum.current = false;
|
|
167
|
+
},
|
|
168
|
+
ListFooterComponent: isPaginating ? /*#__PURE__*/_jsx(SkeletonPlaceholder, {
|
|
169
|
+
highlightColor: appliedTheme.colors.skeletonHighlightColor,
|
|
170
|
+
backgroundColor: appliedTheme.colors.skeletonBaseColor,
|
|
171
|
+
children: /*#__PURE__*/_jsx(SkeletonPlaceholder.Item, {
|
|
172
|
+
width: itemWidth,
|
|
173
|
+
height: itemWidth / 0.67,
|
|
174
|
+
borderRadius: borderRadius,
|
|
175
|
+
marginRight: moderateScale(12)
|
|
176
|
+
})
|
|
177
|
+
}) : null
|
|
178
|
+
})]
|
|
179
|
+
});
|
|
180
|
+
};
|
|
181
|
+
const getStyles = (theme, width, radius) => StyleSheet.create({
|
|
182
|
+
root: {
|
|
183
|
+
marginVertical: verticalScale(6)
|
|
184
|
+
},
|
|
185
|
+
item: {
|
|
186
|
+
width: width,
|
|
187
|
+
height: width / 0.67,
|
|
188
|
+
marginRight: moderateScale(12),
|
|
189
|
+
borderRadius: radius,
|
|
190
|
+
overflow: 'hidden',
|
|
191
|
+
backgroundColor: theme.colors.background ?? '#2c2c2c'
|
|
192
|
+
},
|
|
193
|
+
firstItem: {
|
|
194
|
+
marginLeft: moderateScale(12)
|
|
195
|
+
},
|
|
196
|
+
image: {
|
|
197
|
+
width: '100%',
|
|
198
|
+
height: '100%',
|
|
199
|
+
borderRadius: radius,
|
|
200
|
+
backgroundColor: theme.colors.background ?? '#222'
|
|
201
|
+
},
|
|
202
|
+
navigateToMoreContainer: {
|
|
203
|
+
paddingHorizontal: moderateScale(12),
|
|
204
|
+
marginBottom: verticalScale(8)
|
|
205
|
+
},
|
|
206
|
+
title: {
|
|
207
|
+
fontSize: moderateScale(14),
|
|
208
|
+
fontWeight: '600'
|
|
209
|
+
},
|
|
210
|
+
listContent: {
|
|
211
|
+
paddingRight: moderateScale(15)
|
|
212
|
+
}
|
|
213
|
+
});
|
|
214
|
+
export default /*#__PURE__*/memo(MovieCardTwo);
|
|
215
|
+
//# 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","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,mBAAmB;AAC5C,OAAOC,cAAc,MAAM,8BAA8B;AACzD,OAAOC,UAAU,MAAM,0BAA0B;;AAEjD;AAAA,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AACA,MAAMC,aAAa,GAAGV,aAAa,CAAC,GAAG,CAAC;AACxC,MAAMW,qBAAqB,GAAGX,aAAa,CAAC,CAAC,CAAC;AAC9C,MAAMY,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,GA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,aAAa,CAAC,EAAE;EAC9B,CAAC;EACD8D,KAAK,EAAE;IACLU,KAAK,EAAE,MAAM;IACbC,MAAM,EAAE,MAAM;IACdjD,YAAY,EAAE2E,MAAM;IACpB9B,eAAe,EAAEvC,KAAK,CAACqC,MAAM,CAACoC,UAAU,IAAI;EAC9C,CAAC;EACDf,uBAAuB,EAAE;IACvBgB,iBAAiB,EAAExG,aAAa,CAAC,EAAE,CAAC;IACpC+E,YAAY,EAAE9E,aAAa,CAAC,CAAC;EAC/B,CAAC;EACDa,KAAK,EAAE;IACL2F,QAAQ,EAAEzG,aAAa,CAAC,EAAE,CAAC;IAC3B0G,UAAU,EAAE;EACd,CAAC;EACDnB,WAAW,EAAE;IACXoB,YAAY,EAAE3G,aAAa,CAAC,EAAE;EAChC;AACF,CAAC,CAAC;AAEJ,4BAAeV,IAAI,CAACuB,YAAY,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,175 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* @author Naresh Dhamu
|
|
5
|
+
* @lastModified Wed 02 Jul 2025 at 10:29 AM
|
|
6
|
+
*/
|
|
7
|
+
import React, { useState, useEffect, useMemo } from 'react';
|
|
8
|
+
import { View, StyleSheet } from 'react-native';
|
|
9
|
+
import FastImage from 'react-native-fast-image';
|
|
10
|
+
import SkeletonPlaceholder from 'react-native-skeleton-placeholder';
|
|
11
|
+
import { scale } from 'react-native-size-matters';
|
|
12
|
+
import { Text } from '../../../Text';
|
|
13
|
+
import { ImageOff } from 'lucide-react-native';
|
|
14
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
15
|
+
const CardPoster = ({
|
|
16
|
+
posterUri,
|
|
17
|
+
theme,
|
|
18
|
+
isLoading = false,
|
|
19
|
+
borderRadius = scale(6),
|
|
20
|
+
posterWrapperStyle,
|
|
21
|
+
imageStyle,
|
|
22
|
+
resizeMode = FastImage.resizeMode.cover
|
|
23
|
+
}) => {
|
|
24
|
+
const [imageLoading, setImageLoading] = useState(true);
|
|
25
|
+
const [imageError, setImageError] = useState(false);
|
|
26
|
+
useEffect(() => {
|
|
27
|
+
setImageLoading(true);
|
|
28
|
+
setImageError(false);
|
|
29
|
+
}, [posterUri]);
|
|
30
|
+
const hasValidPoster = useMemo(() => {
|
|
31
|
+
if (!posterUri || typeof posterUri !== 'string') return false;
|
|
32
|
+
const cleaned = posterUri.trim();
|
|
33
|
+
return (cleaned.startsWith('http://') || cleaned.startsWith('https://')) && /\.(jpg|jpeg|png|webp|gif|bmp)$/i.test(cleaned);
|
|
34
|
+
}, [posterUri]);
|
|
35
|
+
useEffect(() => {
|
|
36
|
+
if (hasValidPoster) {
|
|
37
|
+
FastImage.preload([{
|
|
38
|
+
uri: posterUri
|
|
39
|
+
}]);
|
|
40
|
+
}
|
|
41
|
+
}, [posterUri, hasValidPoster]);
|
|
42
|
+
const showSkeleton = isLoading || imageLoading && !imageError && hasValidPoster;
|
|
43
|
+
const fallbackImageStyle = useMemo(() => ({
|
|
44
|
+
width: '100%',
|
|
45
|
+
aspectRatio: 2 / 3,
|
|
46
|
+
borderRadius,
|
|
47
|
+
position: 'absolute',
|
|
48
|
+
top: 0,
|
|
49
|
+
left: 0
|
|
50
|
+
}), [borderRadius]);
|
|
51
|
+
return /*#__PURE__*/_jsxs(View, {
|
|
52
|
+
style: [styles.posterWrapper, styles.defaultPosterWrapper, {
|
|
53
|
+
borderRadius,
|
|
54
|
+
backgroundColor: theme.colors.background,
|
|
55
|
+
shadowColor: theme.colors.shadow
|
|
56
|
+
}, posterWrapperStyle],
|
|
57
|
+
children: [showSkeleton && /*#__PURE__*/_jsx(View, {
|
|
58
|
+
style: [styles.skeletonWrapper, {
|
|
59
|
+
borderRadius
|
|
60
|
+
}],
|
|
61
|
+
children: /*#__PURE__*/_jsx(SkeletonPlaceholder, {
|
|
62
|
+
backgroundColor: theme.colors.skeletonBaseColor,
|
|
63
|
+
highlightColor: theme.colors.skeletonHighlightColor,
|
|
64
|
+
speed: 1000,
|
|
65
|
+
children: /*#__PURE__*/_jsx(SkeletonPlaceholder.Item, {
|
|
66
|
+
style: [styles.skeleton, {
|
|
67
|
+
borderRadius
|
|
68
|
+
}]
|
|
69
|
+
})
|
|
70
|
+
})
|
|
71
|
+
}), hasValidPoster && /*#__PURE__*/_jsx(FastImage, {
|
|
72
|
+
source: {
|
|
73
|
+
uri: posterUri,
|
|
74
|
+
cache: FastImage.cacheControl.immutable,
|
|
75
|
+
priority: FastImage.priority.normal
|
|
76
|
+
},
|
|
77
|
+
style: [fallbackImageStyle, showSkeleton ? styles.hidden : styles.visible, imageStyle],
|
|
78
|
+
resizeMode: resizeMode,
|
|
79
|
+
onLoadStart: () => {
|
|
80
|
+
if (hasValidPoster) {
|
|
81
|
+
setImageLoading(true);
|
|
82
|
+
setImageError(false);
|
|
83
|
+
}
|
|
84
|
+
},
|
|
85
|
+
onLoad: () => {
|
|
86
|
+
setImageLoading(false);
|
|
87
|
+
},
|
|
88
|
+
onError: () => {
|
|
89
|
+
setTimeout(() => {
|
|
90
|
+
setImageLoading(false);
|
|
91
|
+
setImageError(true);
|
|
92
|
+
}, 100);
|
|
93
|
+
}
|
|
94
|
+
}), !showSkeleton && (!hasValidPoster || imageError) && /*#__PURE__*/_jsx(View, {
|
|
95
|
+
style: [styles.fallbackWrapper, {
|
|
96
|
+
borderRadius,
|
|
97
|
+
backgroundColor: theme.colors.background,
|
|
98
|
+
borderColor: theme.colors.error
|
|
99
|
+
}],
|
|
100
|
+
children: /*#__PURE__*/_jsxs(View, {
|
|
101
|
+
style: [styles.fallback, {
|
|
102
|
+
backgroundColor: theme.colors.errorContainer
|
|
103
|
+
}],
|
|
104
|
+
children: [/*#__PURE__*/_jsx(ImageOff, {
|
|
105
|
+
size: scale(18),
|
|
106
|
+
color: theme.colors.error
|
|
107
|
+
}), /*#__PURE__*/_jsx(Text, {
|
|
108
|
+
style: styles.fallbackText,
|
|
109
|
+
color: theme.colors.error,
|
|
110
|
+
children: "Image Failed"
|
|
111
|
+
})]
|
|
112
|
+
})
|
|
113
|
+
})]
|
|
114
|
+
});
|
|
115
|
+
};
|
|
116
|
+
export default /*#__PURE__*/React.memo(CardPoster);
|
|
117
|
+
const styles = StyleSheet.create({
|
|
118
|
+
posterWrapper: {
|
|
119
|
+
width: '100%',
|
|
120
|
+
aspectRatio: 2 / 3,
|
|
121
|
+
overflow: 'hidden',
|
|
122
|
+
position: 'relative'
|
|
123
|
+
},
|
|
124
|
+
defaultPosterWrapper: {
|
|
125
|
+
shadowOffset: {
|
|
126
|
+
width: 0,
|
|
127
|
+
height: 2
|
|
128
|
+
},
|
|
129
|
+
shadowOpacity: 0.1,
|
|
130
|
+
shadowRadius: 3,
|
|
131
|
+
elevation: 2
|
|
132
|
+
},
|
|
133
|
+
skeletonWrapper: {
|
|
134
|
+
position: 'absolute',
|
|
135
|
+
top: 0,
|
|
136
|
+
left: 0,
|
|
137
|
+
width: '100%',
|
|
138
|
+
aspectRatio: 2 / 3,
|
|
139
|
+
overflow: 'hidden'
|
|
140
|
+
},
|
|
141
|
+
skeleton: {
|
|
142
|
+
width: '100%',
|
|
143
|
+
aspectRatio: 2 / 3
|
|
144
|
+
},
|
|
145
|
+
visible: {
|
|
146
|
+
opacity: 1
|
|
147
|
+
},
|
|
148
|
+
hidden: {
|
|
149
|
+
opacity: 0
|
|
150
|
+
},
|
|
151
|
+
fallbackWrapper: {
|
|
152
|
+
position: 'absolute',
|
|
153
|
+
top: 0,
|
|
154
|
+
left: 0,
|
|
155
|
+
width: '100%',
|
|
156
|
+
aspectRatio: 2 / 3,
|
|
157
|
+
borderWidth: scale(1),
|
|
158
|
+
alignItems: 'center',
|
|
159
|
+
justifyContent: 'center'
|
|
160
|
+
},
|
|
161
|
+
fallback: {
|
|
162
|
+
position: 'absolute',
|
|
163
|
+
top: 0,
|
|
164
|
+
left: 0,
|
|
165
|
+
width: '100%',
|
|
166
|
+
aspectRatio: 2 / 3,
|
|
167
|
+
alignItems: 'center',
|
|
168
|
+
justifyContent: 'center'
|
|
169
|
+
},
|
|
170
|
+
fallbackText: {
|
|
171
|
+
marginTop: scale(4),
|
|
172
|
+
fontSize: scale(10)
|
|
173
|
+
}
|
|
174
|
+
});
|
|
175
|
+
//# sourceMappingURL=CardPoster.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","useState","useEffect","useMemo","View","StyleSheet","FastImage","SkeletonPlaceholder","scale","Text","ImageOff","jsx","_jsx","jsxs","_jsxs","CardPoster","posterUri","theme","isLoading","borderRadius","posterWrapperStyle","imageStyle","resizeMode","cover","imageLoading","setImageLoading","imageError","setImageError","hasValidPoster","cleaned","trim","startsWith","test","preload","uri","showSkeleton","fallbackImageStyle","width","aspectRatio","position","top","left","style","styles","posterWrapper","defaultPosterWrapper","backgroundColor","colors","background","shadowColor","shadow","children","skeletonWrapper","skeletonBaseColor","highlightColor","skeletonHighlightColor","speed","Item","skeleton","source","cache","cacheControl","immutable","priority","normal","hidden","visible","onLoadStart","onLoad","onError","setTimeout","fallbackWrapper","borderColor","error","fallback","errorContainer","size","color","fallbackText","memo","create","overflow","shadowOffset","height","shadowOpacity","shadowRadius","elevation","opacity","borderWidth","alignItems","justifyContent","marginTop","fontSize"],"sourceRoot":"../../../../../../src","sources":["components/Content/Card/components/CardPoster.tsx"],"mappings":";;AAAA;AACA;AACA;AACA;AACA,OAAOA,KAAK,IAAIC,QAAQ,EAAEC,SAAS,EAAEC,OAAO,QAAQ,OAAO;AAC3D,SAASC,IAAI,EAAEC,UAAU,QAAwC,cAAc;AAE/E,OAAOC,SAAS,MAAM,yBAAyB;AAC/C,OAAOC,mBAAmB,MAAM,mCAAmC;AACnE,SAASC,KAAK,QAAQ,2BAA2B;AACjD,SAASC,IAAI,QAAQ,eAAe;AACpC,SAASC,QAAQ,QAAQ,qBAAqB;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAa/C,MAAMC,UAAqC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EAClB,CAAC;EACDZ,YAAY,EAAE;IACZa,SAAS,EAAEnF,KAAK,CAAC,CAAC,CAAC;IACnBoF,QAAQ,EAAEpF,KAAK,CAAC,EAAE;EACpB;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* @author Naresh Dhamu
|
|
5
|
+
* @lastModified Wed 25 Jun 2025 at 11:59 AM
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
import React from 'react';
|
|
9
|
+
import { StyleSheet, View } from 'react-native';
|
|
10
|
+
import { scale, verticalScale } from 'react-native-size-matters';
|
|
11
|
+
import ShowAllButton from './ShowAllButton';
|
|
12
|
+
import { Text } from '../../../Text';
|
|
13
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
14
|
+
const NavigateToMore = ({
|
|
15
|
+
onPress,
|
|
16
|
+
title,
|
|
17
|
+
titleStyle,
|
|
18
|
+
containerStyle,
|
|
19
|
+
showAllProps
|
|
20
|
+
}) => {
|
|
21
|
+
return /*#__PURE__*/_jsxs(View, {
|
|
22
|
+
style: [styles.container, containerStyle],
|
|
23
|
+
children: [/*#__PURE__*/_jsx(View, {
|
|
24
|
+
style: styles.titleWrapper,
|
|
25
|
+
children: /*#__PURE__*/_jsx(Text, {
|
|
26
|
+
style: [styles.title, titleStyle],
|
|
27
|
+
numberOfLines: 1,
|
|
28
|
+
ellipsizeMode: "tail",
|
|
29
|
+
children: title
|
|
30
|
+
})
|
|
31
|
+
}), /*#__PURE__*/_jsx(ShowAllButton, {
|
|
32
|
+
onPress: onPress,
|
|
33
|
+
...showAllProps
|
|
34
|
+
})]
|
|
35
|
+
});
|
|
36
|
+
};
|
|
37
|
+
export default NavigateToMore;
|
|
38
|
+
const styles = StyleSheet.create({
|
|
39
|
+
container: {
|
|
40
|
+
flexDirection: 'row',
|
|
41
|
+
alignItems: 'center',
|
|
42
|
+
justifyContent: 'space-between',
|
|
43
|
+
marginBottom: verticalScale(6),
|
|
44
|
+
marginTop: verticalScale(1)
|
|
45
|
+
},
|
|
46
|
+
titleWrapper: {
|
|
47
|
+
flex: 1,
|
|
48
|
+
justifyContent: 'center'
|
|
49
|
+
},
|
|
50
|
+
title: {
|
|
51
|
+
fontSize: scale(13),
|
|
52
|
+
fontWeight: '600',
|
|
53
|
+
textTransform: 'capitalize'
|
|
54
|
+
}
|
|
55
|
+
});
|
|
56
|
+
//# sourceMappingURL=NavigateToMore.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","StyleSheet","View","scale","verticalScale","ShowAllButton","Text","jsx","_jsx","jsxs","_jsxs","NavigateToMore","onPress","title","titleStyle","containerStyle","showAllProps","style","styles","container","children","titleWrapper","numberOfLines","ellipsizeMode","create","flexDirection","alignItems","justifyContent","marginBottom","marginTop","flex","fontSize","fontWeight","textTransform"],"sourceRoot":"../../../../../../src","sources":["components/Content/Card/components/NavigateToMore.tsx"],"mappings":";;AAAA;AACA;AACA;AACA;;AAEA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,UAAU,EAAEC,IAAI,QAAwD,cAAc;AAC/F,SAASC,KAAK,EAAEC,aAAa,QAAQ,2BAA2B;AAChE,OAAOC,aAAa,MAAmC,iBAAiB;AACxE,SAASC,IAAI,QAAQ,eAAe;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAUrC,MAAMC,cAAgC,GAAGA,CAAC;EACxCC,OAAO;EACPC,KAAK;EACLC,UAAU;EACVC,cAAc;EACdC;AACF,CAAC,KAAyB;EACxB,oBACEN,KAAA,CAACR,IAAI;IAACe,KAAK,EAAE,CAACC,MAAM,CAACC,SAAS,EAAEJ,cAAc,CAAE;IAAAK,QAAA,gBAC9CZ,IAAA,CAACN,IAAI;MAACe,KAAK,EAAEC,MAAM,CAACG,YAAa;MAAAD,QAAA,eAC/BZ,IAAA,CAACF,IAAI;QAACW,KAAK,EAAE,CAACC,MAAM,CAACL,KAAK,EAAEC,UAAU,CAAE;QAACQ,aAAa,EAAE,CAAE;QAACC,aAAa,EAAC,MAAM;QAAAH,QAAA,EAC5EP;MAAK,CACF;IAAC,CACH,CAAC,eACPL,IAAA,CAACH,aAAa;MAACO,OAAO,EAAEA,OAAQ;MAAA,GAAKI;IAAY,CAAG,CAAC;EAAA,CACjD,CAAC;AAEX,CAAC;AAED,eAAeL,cAAc;AAE7B,MAAMO,MAAM,GAAGjB,UAAU,CAACuB,MAAM,CAAC;EAC/BL,SAAS,EAAE;IACTM,aAAa,EAAE,KAAK;IACpBC,UAAU,EAAE,QAAQ;IACpBC,cAAc,EAAE,eAAe;IAC/BC,YAAY,EAAExB,aAAa,CAAC,CAAC,CAAC;IAC9ByB,SAAS,EAAEzB,aAAa,CAAC,CAAC;EAC5B,CAAC;EACDiB,YAAY,EAAE;IACZS,IAAI,EAAE,CAAC;IACPH,cAAc,EAAE;EAClB,CAAC;EACDd,KAAK,EAAE;IACLkB,QAAQ,EAAE5B,KAAK,CAAC,EAAE,CAAC;IACnB6B,UAAU,EAAE,KAAK;IACjBC,aAAa,EAAE;EACjB;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* @author Naresh Dhamu
|
|
5
|
+
* @lastModified Wed 25 Jun 2025 at 11:59 AM
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
import React, { useCallback } from 'react';
|
|
9
|
+
import { TouchableOpacity, StyleSheet } from 'react-native';
|
|
10
|
+
import Animated, { useSharedValue, useAnimatedStyle, withSpring } from 'react-native-reanimated';
|
|
11
|
+
import { scale, verticalScale } from 'react-native-size-matters';
|
|
12
|
+
import { Text } from '../../../Text';
|
|
13
|
+
import { useTheme } from '../../../../theme';
|
|
14
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
15
|
+
const NoContentFallback = ({
|
|
16
|
+
message = 'No content available right now.\nPlease check back later.',
|
|
17
|
+
retryText = 'Try Again',
|
|
18
|
+
onRetry,
|
|
19
|
+
theme,
|
|
20
|
+
emoji = '😔',
|
|
21
|
+
style
|
|
22
|
+
}) => {
|
|
23
|
+
const {
|
|
24
|
+
theme: appliedTheme
|
|
25
|
+
} = useTheme(theme);
|
|
26
|
+
const scaleValue = useSharedValue(1);
|
|
27
|
+
const handlePressIn = useCallback(() => {
|
|
28
|
+
scaleValue.value = withSpring(0.95, {
|
|
29
|
+
damping: 15,
|
|
30
|
+
stiffness: 200
|
|
31
|
+
});
|
|
32
|
+
}, [scaleValue]);
|
|
33
|
+
const handlePressOut = useCallback(() => {
|
|
34
|
+
scaleValue.value = withSpring(1, {
|
|
35
|
+
damping: 15,
|
|
36
|
+
stiffness: 200
|
|
37
|
+
});
|
|
38
|
+
}, [scaleValue]);
|
|
39
|
+
const animatedButtonStyle = useAnimatedStyle(() => ({
|
|
40
|
+
transform: [{
|
|
41
|
+
scale: scaleValue.value
|
|
42
|
+
}]
|
|
43
|
+
}));
|
|
44
|
+
return /*#__PURE__*/_jsxs(Animated.View, {
|
|
45
|
+
style: [styles.container, style, {
|
|
46
|
+
backgroundColor: appliedTheme.colors.background
|
|
47
|
+
}],
|
|
48
|
+
accessibilityLabel: "No content available",
|
|
49
|
+
accessibilityHint: "Check back later or try again",
|
|
50
|
+
children: [/*#__PURE__*/_jsx(Animated.Text, {
|
|
51
|
+
style: [styles.emoji, {
|
|
52
|
+
color: appliedTheme.colors.textPrimary
|
|
53
|
+
}],
|
|
54
|
+
children: emoji
|
|
55
|
+
}), /*#__PURE__*/_jsx(Text, {
|
|
56
|
+
style: [styles.message, {
|
|
57
|
+
color: appliedTheme.colors.textSecondary
|
|
58
|
+
}],
|
|
59
|
+
children: message
|
|
60
|
+
}), onRetry && /*#__PURE__*/_jsx(TouchableOpacity, {
|
|
61
|
+
onPress: onRetry,
|
|
62
|
+
onPressIn: handlePressIn,
|
|
63
|
+
onPressOut: handlePressOut,
|
|
64
|
+
style: [styles.retryButton, {
|
|
65
|
+
backgroundColor: appliedTheme.colors.primary,
|
|
66
|
+
borderColor: appliedTheme.colors.outline
|
|
67
|
+
}],
|
|
68
|
+
accessibilityLabel: retryText,
|
|
69
|
+
accessibilityRole: "button",
|
|
70
|
+
children: /*#__PURE__*/_jsx(Animated.View, {
|
|
71
|
+
style: animatedButtonStyle,
|
|
72
|
+
children: /*#__PURE__*/_jsx(Text, {
|
|
73
|
+
style: [styles.retryText, {
|
|
74
|
+
color: appliedTheme.colors.textPrimary
|
|
75
|
+
}],
|
|
76
|
+
children: retryText
|
|
77
|
+
})
|
|
78
|
+
})
|
|
79
|
+
})]
|
|
80
|
+
});
|
|
81
|
+
};
|
|
82
|
+
const styles = StyleSheet.create({
|
|
83
|
+
container: {
|
|
84
|
+
flex: 1,
|
|
85
|
+
alignItems: 'center',
|
|
86
|
+
justifyContent: 'center',
|
|
87
|
+
paddingHorizontal: scale(20),
|
|
88
|
+
paddingVertical: verticalScale(40)
|
|
89
|
+
},
|
|
90
|
+
emoji: {
|
|
91
|
+
fontSize: scale(64),
|
|
92
|
+
marginBottom: verticalScale(16),
|
|
93
|
+
textAlign: 'center'
|
|
94
|
+
},
|
|
95
|
+
message: {
|
|
96
|
+
fontSize: scale(16),
|
|
97
|
+
textAlign: 'center',
|
|
98
|
+
fontWeight: '500',
|
|
99
|
+
lineHeight: verticalScale(22),
|
|
100
|
+
marginBottom: verticalScale(20)
|
|
101
|
+
},
|
|
102
|
+
retryButton: {
|
|
103
|
+
paddingHorizontal: scale(24),
|
|
104
|
+
paddingVertical: verticalScale(12),
|
|
105
|
+
borderRadius: scale(8),
|
|
106
|
+
borderWidth: scale(1)
|
|
107
|
+
},
|
|
108
|
+
retryText: {
|
|
109
|
+
fontSize: scale(14),
|
|
110
|
+
fontWeight: '600',
|
|
111
|
+
textAlign: 'center'
|
|
112
|
+
}
|
|
113
|
+
});
|
|
114
|
+
export default NoContentFallback;
|
|
115
|
+
//# sourceMappingURL=NoContentFallback.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","useCallback","TouchableOpacity","StyleSheet","Animated","useSharedValue","useAnimatedStyle","withSpring","scale","verticalScale","Text","useTheme","jsx","_jsx","jsxs","_jsxs","NoContentFallback","message","retryText","onRetry","theme","emoji","style","appliedTheme","scaleValue","handlePressIn","value","damping","stiffness","handlePressOut","animatedButtonStyle","transform","View","styles","container","backgroundColor","colors","background","accessibilityLabel","accessibilityHint","children","color","textPrimary","textSecondary","onPress","onPressIn","onPressOut","retryButton","primary","borderColor","outline","accessibilityRole","create","flex","alignItems","justifyContent","paddingHorizontal","paddingVertical","fontSize","marginBottom","textAlign","fontWeight","lineHeight","borderRadius","borderWidth"],"sourceRoot":"../../../../../../src","sources":["components/Content/Card/components/NoContentFallback.tsx"],"mappings":";;AAAA;AACA;AACA;AACA;;AAEA,OAAOA,KAAK,IAAIC,WAAW,QAAQ,OAAO;AAC1C,SAASC,gBAAgB,EAAEC,UAAU,QAAwC,cAAc;AAC3F,OAAOC,QAAQ,IAAIC,cAAc,EAAEC,gBAAgB,EAAEC,UAAU,QAAQ,yBAAyB;AAChG,SAASC,KAAK,EAAEC,aAAa,QAAQ,2BAA2B;AAChE,SAASC,IAAI,QAAQ,eAAe;AACpC,SAASC,QAAQ,QAAQ,mBAAmB;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAY7C,MAAMC,iBAAiB,GAAGA,CAAC;EACzBC,OAAO,GAAG,2DAA2D;EACrEC,SAAS,GAAG,WAAW;EACvBC,OAAO;EACPC,KAAK;EACLC,KAAK,GAAG,IAAI;EACZC;AACsB,CAAC,KAAK;EAC5B,MAAM;IAAEF,KAAK,EAAEG;EAAa,CAAC,GAAGZ,QAAQ,CAACS,KAAK,CAAC;EAC/C,MAAMI,UAAU,GAAGnB,cAAc,CAAC,CAAC,CAAC;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