@zezosoft/zezo-ott-react-native-ui-kit 1.0.5 → 1.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/module/components/Account/Account.js +4 -4
- package/lib/module/components/Account/Account.js.map +1 -1
- package/lib/module/components/Alert/AlertDialog.js +2 -2
- package/lib/module/components/Alert/AlertDialog.js.map +1 -1
- package/lib/module/components/Alert/UAAlert.js +5 -1
- package/lib/module/components/Alert/UAAlert.js.map +1 -1
- package/lib/module/components/Auth/AuthProvider/AuthProvider.js +74 -104
- package/lib/module/components/Auth/AuthProvider/AuthProvider.js.map +1 -1
- package/lib/module/components/Auth/ForgotPassword/ForgotPassword.js +4 -8
- package/lib/module/components/Auth/ForgotPassword/ForgotPassword.js.map +1 -1
- package/lib/module/components/Auth/Login/LoginWithEmail.js +7 -7
- package/lib/module/components/Auth/Login/LoginWithEmail.js.map +1 -1
- package/lib/module/components/Auth/Login/LoginWithPhone.js +6 -6
- package/lib/module/components/Auth/Login/LoginWithPhone.js.map +1 -1
- package/lib/module/components/Auth/OTP/OTP.js +5 -5
- package/lib/module/components/Auth/OTP/OTP.js.map +1 -1
- package/lib/module/components/Auth/QrLogin/QrLogin.js +8 -9
- package/lib/module/components/Auth/QrLogin/QrLogin.js.map +1 -1
- package/lib/module/components/Auth/QrLogin/components/QrViewArea.js +2 -2
- package/lib/module/components/Auth/QrLogin/components/QrViewArea.js.map +1 -1
- package/lib/module/components/Auth/SignUp/SignUp.js +9 -9
- package/lib/module/components/Auth/SignUp/SignUp.js.map +1 -1
- package/lib/module/components/Auth/SplashScreen/SplashScreen.js +14 -23
- package/lib/module/components/Auth/SplashScreen/SplashScreen.js.map +1 -1
- package/lib/module/components/Auth/SplashScreen/components/SplashVideo/SplashVideo.js +71 -47
- package/lib/module/components/Auth/SplashScreen/components/SplashVideo/SplashVideo.js.map +1 -1
- package/lib/module/components/BackgroundLayout/BackgroundLayout.js +5 -1
- package/lib/module/components/BackgroundLayout/BackgroundLayout.js.map +1 -1
- package/lib/module/components/BlogView/BlogView.js +8 -7
- package/lib/module/components/BlogView/BlogView.js.map +1 -1
- package/lib/module/components/Button/BackBtn.js +2 -2
- package/lib/module/components/Button/BackBtn.js.map +1 -1
- package/lib/module/components/Button/MenuBtn.js +2 -2
- package/lib/module/components/Button/MenuBtn.js.map +1 -1
- package/lib/module/components/Button/PrimaryBtn.js +2 -2
- package/lib/module/components/Button/PrimaryBtn.js.map +1 -1
- package/lib/module/components/Button/SecondaryBtn.js +2 -2
- package/lib/module/components/Button/SecondaryBtn.js.map +1 -1
- package/lib/module/components/Button/TextButton.js +2 -2
- package/lib/module/components/Button/TextButton.js.map +1 -1
- package/lib/module/components/Content/Card/Category/Category.js +3 -3
- package/lib/module/components/Content/Card/Category/Category.js.map +1 -1
- package/lib/module/components/Content/Card/NowWatching/NowWatching.js +5 -3
- package/lib/module/components/Content/Card/NowWatching/NowWatching.js.map +1 -1
- package/lib/module/components/Content/Card/Sliders/Styles/One.js +5 -5
- package/lib/module/components/Content/Card/Sliders/Styles/One.js.map +1 -1
- package/lib/module/components/Content/Card/Sliders/Styles/Two.js +3 -2
- package/lib/module/components/Content/Card/Sliders/Styles/Two.js.map +1 -1
- package/lib/module/components/Content/Card/Styles/Five.js +4 -3
- package/lib/module/components/Content/Card/Styles/Five.js.map +1 -1
- package/lib/module/components/Content/Card/Styles/Four.js +4 -3
- package/lib/module/components/Content/Card/Styles/Four.js.map +1 -1
- package/lib/module/components/Content/Card/Styles/One.js +4 -3
- package/lib/module/components/Content/Card/Styles/One.js.map +1 -1
- package/lib/module/components/Content/Card/Styles/RotateInOut.js +4 -3
- package/lib/module/components/Content/Card/Styles/RotateInOut.js.map +1 -1
- package/lib/module/components/Content/Card/Styles/Six.js +5 -3
- package/lib/module/components/Content/Card/Styles/Six.js.map +1 -1
- package/lib/module/components/Content/Card/Styles/Three.js +4 -3
- package/lib/module/components/Content/Card/Styles/Three.js.map +1 -1
- package/lib/module/components/Content/Card/Styles/TopTen.js +4 -3
- package/lib/module/components/Content/Card/Styles/TopTen.js.map +1 -1
- package/lib/module/components/Content/Card/Styles/Two.js +4 -3
- package/lib/module/components/Content/Card/Styles/Two.js.map +1 -1
- package/lib/module/components/Content/Card/components/CardPoster.js +6 -0
- package/lib/module/components/Content/Card/components/CardPoster.js.map +1 -1
- package/lib/module/components/Content/Card/components/RentOrBuyIcon.js +1 -1
- package/lib/module/components/Content/Card/components/RentOrBuyIcon.js.map +1 -1
- package/lib/module/components/Content/Card/components/ShowAllButton.js +3 -1
- package/lib/module/components/Content/Card/components/ShowAllButton.js.map +1 -1
- package/lib/module/components/Content/Content.js +22 -7
- package/lib/module/components/Content/Content.js.map +1 -1
- package/lib/module/components/ContentView/ContentView.js +101 -85
- package/lib/module/components/ContentView/ContentView.js.map +1 -1
- package/lib/module/components/ContentView/MoreContentList.js +3 -2
- package/lib/module/components/ContentView/MoreContentList.js.map +1 -1
- package/lib/module/components/ContentView/components/AboutSection.js +15 -1
- package/lib/module/components/ContentView/components/AboutSection.js.map +1 -1
- package/lib/module/components/ContentView/components/CastCard.js +1 -1
- package/lib/module/components/ContentView/components/EpisodeCard.js +15 -6
- package/lib/module/components/ContentView/components/EpisodeCard.js.map +1 -1
- package/lib/module/components/ContentView/components/HeroBanner.js +56 -20
- package/lib/module/components/ContentView/components/HeroBanner.js.map +1 -1
- package/lib/module/components/ContentView/components/MiniInfo.js +136 -0
- package/lib/module/components/ContentView/components/MiniInfo.js.map +1 -0
- package/lib/module/components/ContentView/components/Title.js +19 -27
- package/lib/module/components/ContentView/components/Title.js.map +1 -1
- package/lib/module/components/ContentView/components/TrailerButton.js +5 -5
- package/lib/module/components/ContentView/components/TrailerButton.js.map +1 -1
- package/lib/module/components/{Content/Card/components → Fallbacks}/NoContentFallback.js +50 -33
- package/lib/module/components/Fallbacks/NoContentFallback.js.map +1 -0
- package/lib/module/components/Fallbacks/NotFoundFallback.js +79 -0
- package/lib/module/components/Fallbacks/NotFoundFallback.js.map +1 -0
- package/lib/module/components/Fallbacks/index.js +5 -0
- package/lib/module/components/Fallbacks/index.js.map +1 -0
- package/lib/module/components/Headers/AppHeader.js +2 -2
- package/lib/module/components/Headers/AppHeader.js.map +1 -1
- package/lib/module/components/Headers/One.js +2 -2
- package/lib/module/components/Headers/One.js.map +1 -1
- package/lib/module/components/Headers/Three.js +2 -2
- package/lib/module/components/Headers/Three.js.map +1 -1
- package/lib/module/components/Headers/Two.js +2 -2
- package/lib/module/components/Headers/Two.js.map +1 -1
- package/lib/module/components/Input/InputOne.js +11 -5
- package/lib/module/components/Input/InputOne.js.map +1 -1
- package/lib/module/components/Input/InputTwo.js +2 -2
- package/lib/module/components/Input/InputTwo.js.map +1 -1
- package/lib/module/components/Input/PhoneNumberInput.js +5 -4
- package/lib/module/components/Input/PhoneNumberInput.js.map +1 -1
- package/lib/module/components/Logo/Logo.js +2 -2
- package/lib/module/components/Logo/Logo.js.map +1 -1
- package/lib/module/components/Search/One.js +4 -4
- package/lib/module/components/Search/One.js.map +1 -1
- package/lib/module/components/Search/components/SearchCard.js +2 -2
- package/lib/module/components/Search/components/SearchCard.js.map +1 -1
- package/lib/module/components/Settings/AppSettings.js +4 -4
- package/lib/module/components/Settings/AppSettings.js.map +1 -1
- package/lib/module/components/Subscription/SubOne.js +9 -8
- package/lib/module/components/Subscription/SubOne.js.map +1 -1
- package/lib/module/components/TabBar/One.js +8 -5
- package/lib/module/components/TabBar/One.js.map +1 -1
- package/lib/module/components/TabBar/Three.js +2 -2
- package/lib/module/components/TabBar/Three.js.map +1 -1
- package/lib/module/components/TabBar/Two.js +8 -5
- package/lib/module/components/TabBar/Two.js.map +1 -1
- package/lib/module/components/Text/Text.js +34 -12
- package/lib/module/components/Text/Text.js.map +1 -1
- package/lib/module/components/User/DeviceSessions/DeviceSessions.js +4 -3
- package/lib/module/components/User/DeviceSessions/DeviceSessions.js.map +1 -1
- package/lib/module/components/User/ProfileUpdate/ProfileUpdate.js +8 -8
- package/lib/module/components/User/ProfileUpdate/ProfileUpdate.js.map +1 -1
- package/lib/module/components/User/WatchHistory/WatchHistory.js +3 -3
- package/lib/module/components/User/WatchHistory/WatchHistory.js.map +1 -1
- package/lib/module/components/User/WatchLater/WatchLater.js +5 -3
- package/lib/module/components/User/WatchLater/WatchLater.js.map +1 -1
- package/lib/module/components/User/components/UserAvatar.js +13 -10
- package/lib/module/components/User/components/UserAvatar.js.map +1 -1
- package/lib/module/components/User/components/UserSection.js +3 -3
- package/lib/module/components/User/components/UserSection.js.map +1 -1
- package/lib/module/components/View/View.js.map +1 -1
- package/lib/module/components/common/AppStatusBar.js +41 -0
- package/lib/module/components/common/AppStatusBar.js.map +1 -0
- package/lib/module/components/index.js +3 -1
- package/lib/module/components/index.js.map +1 -1
- package/lib/module/components/layout/SafeAreaWrapper.js +2 -2
- package/lib/module/components/layout/SafeAreaWrapper.js.map +1 -1
- package/lib/module/store/splashStore.js +3 -7
- package/lib/module/store/splashStore.js.map +1 -1
- package/lib/module/store/themeStore.js +36 -0
- package/lib/module/store/themeStore.js.map +1 -0
- package/lib/module/theme/ThemeProvider.js +40 -69
- package/lib/module/theme/ThemeProvider.js.map +1 -1
- package/lib/module/theme/hook/index.js +5 -0
- package/lib/module/theme/hook/index.js.map +1 -0
- package/lib/module/theme/hook/useInternalTheme.js +57 -0
- package/lib/module/theme/hook/useInternalTheme.js.map +1 -0
- package/lib/module/theme/hook/useThemeStatusBar.js +27 -0
- package/lib/module/theme/hook/useThemeStatusBar.js.map +1 -0
- package/lib/module/theme/index.js +1 -2
- package/lib/module/theme/index.js.map +1 -1
- package/lib/module/theme/themes.js +18 -4
- package/lib/module/theme/themes.js.map +1 -1
- package/lib/typescript/src/components/Account/Account.d.ts +2 -2
- package/lib/typescript/src/components/Account/Account.d.ts.map +1 -1
- package/lib/typescript/src/components/Alert/AlertDialog.d.ts +2 -2
- package/lib/typescript/src/components/Alert/AlertDialog.d.ts.map +1 -1
- package/lib/typescript/src/components/Alert/UAAlert.d.ts +2 -2
- package/lib/typescript/src/components/Alert/UAAlert.d.ts.map +1 -1
- package/lib/typescript/src/components/Auth/AuthProvider/AuthProvider.d.ts +6 -6
- package/lib/typescript/src/components/Auth/AuthProvider/AuthProvider.d.ts.map +1 -1
- package/lib/typescript/src/components/Auth/ForgotPassword/ForgotPassword.d.ts +2 -2
- package/lib/typescript/src/components/Auth/ForgotPassword/ForgotPassword.d.ts.map +1 -1
- package/lib/typescript/src/components/Auth/Login/LoginWithEmail.d.ts +2 -2
- package/lib/typescript/src/components/Auth/Login/LoginWithEmail.d.ts.map +1 -1
- package/lib/typescript/src/components/Auth/Login/LoginWithPhone.d.ts +2 -2
- package/lib/typescript/src/components/Auth/Login/LoginWithPhone.d.ts.map +1 -1
- package/lib/typescript/src/components/Auth/OTP/OTP.d.ts +2 -2
- package/lib/typescript/src/components/Auth/OTP/OTP.d.ts.map +1 -1
- package/lib/typescript/src/components/Auth/QrLogin/QrLogin.d.ts +2 -2
- package/lib/typescript/src/components/Auth/QrLogin/QrLogin.d.ts.map +1 -1
- package/lib/typescript/src/components/Auth/QrLogin/components/QrViewArea.d.ts +2 -2
- package/lib/typescript/src/components/Auth/QrLogin/components/QrViewArea.d.ts.map +1 -1
- package/lib/typescript/src/components/Auth/SignUp/SignUp.d.ts +2 -2
- package/lib/typescript/src/components/Auth/SignUp/SignUp.d.ts.map +1 -1
- package/lib/typescript/src/components/Auth/SplashScreen/SplashScreen.d.ts +2 -2
- package/lib/typescript/src/components/Auth/SplashScreen/SplashScreen.d.ts.map +1 -1
- package/lib/typescript/src/components/Auth/SplashScreen/components/SplashVideo/SplashVideo.d.ts +7 -6
- package/lib/typescript/src/components/Auth/SplashScreen/components/SplashVideo/SplashVideo.d.ts.map +1 -1
- package/lib/typescript/src/components/Auth/index.d.ts +5 -5
- package/lib/typescript/src/components/Auth/index.d.ts.map +1 -1
- package/lib/typescript/src/components/BackgroundLayout/BackgroundLayout.d.ts +2 -2
- package/lib/typescript/src/components/BackgroundLayout/BackgroundLayout.d.ts.map +1 -1
- package/lib/typescript/src/components/BlogView/BlogView.d.ts +2 -2
- package/lib/typescript/src/components/BlogView/BlogView.d.ts.map +1 -1
- package/lib/typescript/src/components/Button/BackBtn.d.ts +2 -2
- package/lib/typescript/src/components/Button/BackBtn.d.ts.map +1 -1
- package/lib/typescript/src/components/Button/MenuBtn.d.ts +2 -2
- package/lib/typescript/src/components/Button/MenuBtn.d.ts.map +1 -1
- package/lib/typescript/src/components/Button/PrimaryBtn.d.ts +2 -2
- package/lib/typescript/src/components/Button/PrimaryBtn.d.ts.map +1 -1
- package/lib/typescript/src/components/Button/SecondaryBtn.d.ts +2 -2
- package/lib/typescript/src/components/Button/SecondaryBtn.d.ts.map +1 -1
- package/lib/typescript/src/components/Button/index.d.ts +3 -3
- package/lib/typescript/src/components/Content/Card/Category/Category.d.ts +2 -2
- package/lib/typescript/src/components/Content/Card/Category/Category.d.ts.map +1 -1
- package/lib/typescript/src/components/Content/Card/NowWatching/NowWatching.d.ts +2 -2
- package/lib/typescript/src/components/Content/Card/NowWatching/NowWatching.d.ts.map +1 -1
- package/lib/typescript/src/components/Content/Card/Sliders/Styles/One.d.ts +2 -2
- package/lib/typescript/src/components/Content/Card/Sliders/Styles/One.d.ts.map +1 -1
- package/lib/typescript/src/components/Content/Card/Sliders/Styles/Two.d.ts +2 -2
- package/lib/typescript/src/components/Content/Card/Sliders/Styles/Two.d.ts.map +1 -1
- package/lib/typescript/src/components/Content/Card/Sliders/index.d.ts +2 -2
- package/lib/typescript/src/components/Content/Card/Styles/Five.d.ts +2 -2
- package/lib/typescript/src/components/Content/Card/Styles/Five.d.ts.map +1 -1
- package/lib/typescript/src/components/Content/Card/Styles/Four.d.ts +2 -2
- package/lib/typescript/src/components/Content/Card/Styles/Four.d.ts.map +1 -1
- package/lib/typescript/src/components/Content/Card/Styles/One.d.ts +2 -2
- package/lib/typescript/src/components/Content/Card/Styles/One.d.ts.map +1 -1
- package/lib/typescript/src/components/Content/Card/Styles/RotateInOut.d.ts +2 -2
- package/lib/typescript/src/components/Content/Card/Styles/RotateInOut.d.ts.map +1 -1
- package/lib/typescript/src/components/Content/Card/Styles/Six.d.ts +2 -2
- package/lib/typescript/src/components/Content/Card/Styles/Six.d.ts.map +1 -1
- package/lib/typescript/src/components/Content/Card/Styles/Three.d.ts +2 -2
- package/lib/typescript/src/components/Content/Card/Styles/Three.d.ts.map +1 -1
- package/lib/typescript/src/components/Content/Card/Styles/TopTen.d.ts +2 -2
- package/lib/typescript/src/components/Content/Card/Styles/TopTen.d.ts.map +1 -1
- package/lib/typescript/src/components/Content/Card/Styles/Two.d.ts +2 -2
- package/lib/typescript/src/components/Content/Card/Styles/Two.d.ts.map +1 -1
- package/lib/typescript/src/components/Content/Card/components/CardPoster.d.ts +4 -0
- package/lib/typescript/src/components/Content/Card/components/CardPoster.d.ts.map +1 -1
- package/lib/typescript/src/components/Content/Card/components/ShowAllButton.d.ts +2 -0
- package/lib/typescript/src/components/Content/Card/components/ShowAllButton.d.ts.map +1 -1
- package/lib/typescript/src/components/Content/Card/index.d.ts +10 -10
- package/lib/typescript/src/components/Content/Content.d.ts +4 -2
- package/lib/typescript/src/components/Content/Content.d.ts.map +1 -1
- package/lib/typescript/src/components/Content/Sections.d.ts +2 -2
- package/lib/typescript/src/components/Content/Sections.d.ts.map +1 -1
- package/lib/typescript/src/components/ContentView/ContentView.d.ts +1 -5
- package/lib/typescript/src/components/ContentView/ContentView.d.ts.map +1 -1
- package/lib/typescript/src/components/ContentView/MoreContentList.d.ts +2 -2
- package/lib/typescript/src/components/ContentView/MoreContentList.d.ts.map +1 -1
- package/lib/typescript/src/components/ContentView/components/AboutSection.d.ts +6 -3
- package/lib/typescript/src/components/ContentView/components/AboutSection.d.ts.map +1 -1
- package/lib/typescript/src/components/ContentView/components/EpisodeCard.d.ts +3 -3
- package/lib/typescript/src/components/ContentView/components/EpisodeCard.d.ts.map +1 -1
- package/lib/typescript/src/components/ContentView/components/HeroBanner.d.ts +1 -1
- package/lib/typescript/src/components/ContentView/components/HeroBanner.d.ts.map +1 -1
- package/lib/typescript/src/components/ContentView/components/MiniInfo.d.ts +22 -0
- package/lib/typescript/src/components/ContentView/components/MiniInfo.d.ts.map +1 -0
- package/lib/typescript/src/components/ContentView/components/TrailerButton.d.ts +2 -2
- package/lib/typescript/src/components/ContentView/components/TrailerButton.d.ts.map +1 -1
- package/lib/typescript/src/components/Fallbacks/NoContentFallback.d.ts +16 -0
- package/lib/typescript/src/components/Fallbacks/NoContentFallback.d.ts.map +1 -0
- package/lib/typescript/src/components/Fallbacks/NotFoundFallback.d.ts +19 -0
- package/lib/typescript/src/components/Fallbacks/NotFoundFallback.d.ts.map +1 -0
- package/lib/typescript/src/components/Fallbacks/index.d.ts +3 -0
- package/lib/typescript/src/components/Fallbacks/index.d.ts.map +1 -0
- package/lib/typescript/src/components/Headers/AppHeader.d.ts +2 -2
- package/lib/typescript/src/components/Headers/AppHeader.d.ts.map +1 -1
- package/lib/typescript/src/components/Headers/One.d.ts +2 -2
- package/lib/typescript/src/components/Headers/One.d.ts.map +1 -1
- package/lib/typescript/src/components/Headers/Three.d.ts +2 -2
- package/lib/typescript/src/components/Headers/Three.d.ts.map +1 -1
- package/lib/typescript/src/components/Headers/Two.d.ts +2 -2
- package/lib/typescript/src/components/Headers/Two.d.ts.map +1 -1
- package/lib/typescript/src/components/Input/InputOne.d.ts +2 -2
- package/lib/typescript/src/components/Input/InputOne.d.ts.map +1 -1
- package/lib/typescript/src/components/Input/InputTwo.d.ts +2 -2
- package/lib/typescript/src/components/Input/InputTwo.d.ts.map +1 -1
- package/lib/typescript/src/components/Input/PhoneNumberInput.d.ts +2 -2
- package/lib/typescript/src/components/Input/PhoneNumberInput.d.ts.map +1 -1
- package/lib/typescript/src/components/Logo/Logo.d.ts +2 -2
- package/lib/typescript/src/components/Logo/Logo.d.ts.map +1 -1
- package/lib/typescript/src/components/Search/One.d.ts +2 -2
- package/lib/typescript/src/components/Search/One.d.ts.map +1 -1
- package/lib/typescript/src/components/Search/components/SearchCard.d.ts +2 -2
- package/lib/typescript/src/components/Search/components/SearchCard.d.ts.map +1 -1
- package/lib/typescript/src/components/Settings/AppSettings.d.ts +2 -2
- package/lib/typescript/src/components/Settings/AppSettings.d.ts.map +1 -1
- package/lib/typescript/src/components/Subscription/SubOne.d.ts +2 -2
- package/lib/typescript/src/components/Subscription/SubOne.d.ts.map +1 -1
- package/lib/typescript/src/components/Subscription/index.d.ts +1 -1
- package/lib/typescript/src/components/Subscription/index.d.ts.map +1 -1
- package/lib/typescript/src/components/TabBar/One.d.ts +2 -2
- package/lib/typescript/src/components/TabBar/One.d.ts.map +1 -1
- package/lib/typescript/src/components/TabBar/Three.d.ts +2 -2
- package/lib/typescript/src/components/TabBar/Three.d.ts.map +1 -1
- package/lib/typescript/src/components/TabBar/Two.d.ts +2 -2
- package/lib/typescript/src/components/TabBar/Two.d.ts.map +1 -1
- package/lib/typescript/src/components/Text/Text.d.ts +3 -4
- package/lib/typescript/src/components/Text/Text.d.ts.map +1 -1
- package/lib/typescript/src/components/User/DeviceSessions/DeviceSessions.d.ts +2 -2
- package/lib/typescript/src/components/User/DeviceSessions/DeviceSessions.d.ts.map +1 -1
- package/lib/typescript/src/components/User/ProfileUpdate/ProfileUpdate.d.ts +2 -2
- package/lib/typescript/src/components/User/ProfileUpdate/ProfileUpdate.d.ts.map +1 -1
- package/lib/typescript/src/components/User/WatchHistory/WatchHistory.d.ts +2 -2
- package/lib/typescript/src/components/User/WatchHistory/WatchHistory.d.ts.map +1 -1
- package/lib/typescript/src/components/User/WatchLater/WatchLater.d.ts +2 -2
- package/lib/typescript/src/components/User/WatchLater/WatchLater.d.ts.map +1 -1
- package/lib/typescript/src/components/User/components/UserAvatar.d.ts +2 -2
- package/lib/typescript/src/components/User/components/UserAvatar.d.ts.map +1 -1
- package/lib/typescript/src/components/User/components/UserSection.d.ts +2 -2
- package/lib/typescript/src/components/User/components/UserSection.d.ts.map +1 -1
- package/lib/typescript/src/components/View/View.d.ts +2 -2
- package/lib/typescript/src/components/View/View.d.ts.map +1 -1
- package/lib/typescript/src/components/common/AppStatusBar.d.ts +17 -0
- package/lib/typescript/src/components/common/AppStatusBar.d.ts.map +1 -0
- package/lib/typescript/src/components/index.d.ts +3 -1
- package/lib/typescript/src/components/index.d.ts.map +1 -1
- package/lib/typescript/src/components/layout/SafeAreaWrapper.d.ts +2 -2
- package/lib/typescript/src/components/layout/SafeAreaWrapper.d.ts.map +1 -1
- package/lib/typescript/src/store/themeStore.d.ts +25 -0
- package/lib/typescript/src/store/themeStore.d.ts.map +1 -0
- package/lib/typescript/src/theme/ThemeProvider.d.ts +17 -10
- package/lib/typescript/src/theme/ThemeProvider.d.ts.map +1 -1
- package/lib/typescript/src/theme/hook/index.d.ts +3 -0
- package/lib/typescript/src/theme/hook/index.d.ts.map +1 -0
- package/lib/typescript/src/theme/hook/useInternalTheme.d.ts +7 -0
- package/lib/typescript/src/theme/hook/useInternalTheme.d.ts.map +1 -0
- package/lib/typescript/src/theme/hook/useThemeStatusBar.d.ts +10 -0
- package/lib/typescript/src/theme/hook/useThemeStatusBar.d.ts.map +1 -0
- package/lib/typescript/src/theme/index.d.ts +1 -6
- package/lib/typescript/src/theme/index.d.ts.map +1 -1
- package/lib/typescript/src/theme/themes.d.ts +20 -2
- package/lib/typescript/src/theme/themes.d.ts.map +1 -1
- package/lib/typescript/src/types/content/content-view.types.d.ts +10 -3
- package/lib/typescript/src/types/content/content-view.types.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/components/Account/Account.tsx +6 -6
- package/src/components/Alert/AlertDialog.tsx +4 -4
- package/src/components/Alert/UAAlert.tsx +5 -3
- package/src/components/Auth/AuthProvider/AuthProvider.tsx +106 -156
- package/src/components/Auth/ForgotPassword/ForgotPassword.tsx +6 -8
- package/src/components/Auth/Login/LoginWithEmail.tsx +9 -9
- package/src/components/Auth/Login/LoginWithPhone.tsx +8 -8
- package/src/components/Auth/OTP/OTP.tsx +7 -7
- package/src/components/Auth/QrLogin/QrLogin.tsx +8 -12
- package/src/components/Auth/QrLogin/components/QrViewArea.tsx +4 -4
- package/src/components/Auth/SignUp/SignUp.tsx +11 -11
- package/src/components/Auth/SplashScreen/SplashScreen.tsx +17 -30
- package/src/components/Auth/SplashScreen/components/SplashVideo/SplashVideo.tsx +90 -74
- package/src/components/BackgroundLayout/BackgroundLayout.tsx +5 -3
- package/src/components/BlogView/BlogView.tsx +13 -8
- package/src/components/Button/BackBtn.tsx +4 -4
- package/src/components/Button/MenuBtn.tsx +4 -4
- package/src/components/Button/PrimaryBtn.tsx +4 -4
- package/src/components/Button/SecondaryBtn.tsx +4 -4
- package/src/components/Button/TextButton.tsx +2 -2
- package/src/components/Content/Card/Category/Category.tsx +5 -5
- package/src/components/Content/Card/NowWatching/NowWatching.tsx +6 -5
- package/src/components/Content/Card/Sliders/Styles/One.tsx +9 -6
- package/src/components/Content/Card/Sliders/Styles/Two.tsx +8 -5
- package/src/components/Content/Card/Styles/Five.tsx +5 -5
- package/src/components/Content/Card/Styles/Four.tsx +5 -5
- package/src/components/Content/Card/Styles/One.tsx +5 -5
- package/src/components/Content/Card/Styles/RotateInOut.tsx +5 -5
- package/src/components/Content/Card/Styles/Six.tsx +9 -6
- package/src/components/Content/Card/Styles/Three.tsx +5 -5
- package/src/components/Content/Card/Styles/TopTen.tsx +5 -5
- package/src/components/Content/Card/Styles/Two.tsx +5 -5
- package/src/components/Content/Card/components/CardPoster.tsx +6 -0
- package/src/components/Content/Card/components/RentOrBuyIcon.tsx +1 -1
- package/src/components/Content/Card/components/ShowAllButton.tsx +6 -1
- package/src/components/Content/Content.tsx +25 -5
- package/src/components/Content/Sections.tsx +2 -2
- package/src/components/ContentView/ContentView.tsx +112 -88
- package/src/components/ContentView/MoreContentList.tsx +5 -4
- package/src/components/ContentView/components/AboutSection.tsx +23 -3
- package/src/components/ContentView/components/CastCard.tsx +1 -1
- package/src/components/ContentView/components/EpisodeCard.tsx +21 -8
- package/src/components/ContentView/components/HeroBanner.tsx +55 -20
- package/src/components/ContentView/components/MiniInfo.tsx +193 -0
- package/src/components/ContentView/components/Title.tsx +17 -26
- package/src/components/ContentView/components/TrailerButton.tsx +6 -5
- package/src/components/Fallbacks/NoContentFallback.tsx +172 -0
- package/src/components/Fallbacks/NotFoundFallback.tsx +86 -0
- package/src/components/Fallbacks/index.ts +2 -0
- package/src/components/Headers/AppHeader.tsx +4 -4
- package/src/components/Headers/One.tsx +4 -4
- package/src/components/Headers/Three.tsx +4 -4
- package/src/components/Headers/Two.tsx +4 -4
- package/src/components/Input/InputOne.tsx +30 -7
- package/src/components/Input/InputTwo.tsx +4 -4
- package/src/components/Input/PhoneNumberInput.tsx +5 -5
- package/src/components/Logo/Logo.tsx +4 -4
- package/src/components/Search/One.tsx +10 -9
- package/src/components/Search/components/SearchCard.tsx +4 -4
- package/src/components/Settings/AppSettings.tsx +6 -6
- package/src/components/Subscription/SubOne.tsx +15 -16
- package/src/components/TabBar/One.tsx +10 -6
- package/src/components/TabBar/Three.tsx +4 -4
- package/src/components/TabBar/Two.tsx +9 -6
- package/src/components/Text/Text.tsx +26 -13
- package/src/components/User/DeviceSessions/DeviceSessions.tsx +6 -5
- package/src/components/User/ProfileUpdate/ProfileUpdate.tsx +10 -14
- package/src/components/User/WatchHistory/WatchHistory.tsx +5 -5
- package/src/components/User/WatchLater/WatchLater.tsx +7 -6
- package/src/components/User/components/UserAvatar.tsx +16 -10
- package/src/components/User/components/UserSection.tsx +5 -5
- package/src/components/View/View.tsx +2 -1
- package/src/components/common/AppStatusBar.tsx +51 -0
- package/src/components/index.ts +3 -1
- package/src/components/layout/SafeAreaWrapper.tsx +4 -4
- package/src/store/splashStore.ts +5 -5
- package/src/store/themeStore.ts +43 -0
- package/src/theme/ThemeProvider.tsx +39 -102
- package/src/theme/hook/index.ts +2 -0
- package/src/theme/hook/useInternalTheme.ts +83 -0
- package/src/theme/hook/useThemeStatusBar.ts +33 -0
- package/src/theme/index.ts +1 -7
- package/src/theme/themes.ts +40 -6
- package/src/types/content/content-view.types.ts +10 -3
- package/lib/module/components/Content/Card/components/NoContentFallback.js.map +0 -1
- package/lib/module/theme/hook/useTheme.js +0 -45
- package/lib/module/theme/hook/useTheme.js.map +0 -1
- package/lib/typescript/src/components/Content/Card/components/NoContentFallback.d.ts +0 -17
- package/lib/typescript/src/components/Content/Card/components/NoContentFallback.d.ts.map +0 -1
- package/lib/typescript/src/theme/hook/useTheme.d.ts +0 -9
- package/lib/typescript/src/theme/hook/useTheme.d.ts.map +0 -1
- package/src/components/Content/Card/components/NoContentFallback.tsx +0 -147
- package/src/theme/hook/useTheme.ts +0 -45
|
@@ -17,6 +17,7 @@ import { moderateScale, scale } from 'react-native-size-matters';
|
|
|
17
17
|
import { Text } from '../../../Text';
|
|
18
18
|
import { ChevronRight } from 'lucide-react-native';
|
|
19
19
|
import { RFValue } from 'react-native-responsive-fontsize';
|
|
20
|
+
import type { ThemeOverride } from '../../../../theme/themes';
|
|
20
21
|
export type ShowAllButtonProps = {
|
|
21
22
|
text?: string;
|
|
22
23
|
onPress?: (event: GestureResponderEvent) => void;
|
|
@@ -27,6 +28,7 @@ export type ShowAllButtonProps = {
|
|
|
27
28
|
containerStyle?: StyleProp<ViewStyle>;
|
|
28
29
|
iconPosition?: 'left' | 'right';
|
|
29
30
|
IconComponent?: React.ReactNode;
|
|
31
|
+
theme?: ThemeOverride;
|
|
30
32
|
};
|
|
31
33
|
|
|
32
34
|
const ShowAllButton: React.FC<ShowAllButtonProps> = ({
|
|
@@ -39,6 +41,7 @@ const ShowAllButton: React.FC<ShowAllButtonProps> = ({
|
|
|
39
41
|
IconComponent,
|
|
40
42
|
textStyle,
|
|
41
43
|
containerStyle,
|
|
44
|
+
theme: overrideTheme,
|
|
42
45
|
}): React.ReactElement => {
|
|
43
46
|
const icon = IconComponent ?? (
|
|
44
47
|
<View style={styles.iconWrapper}>
|
|
@@ -54,7 +57,9 @@ const ShowAllButton: React.FC<ShowAllButtonProps> = ({
|
|
|
54
57
|
>
|
|
55
58
|
<View style={[styles.innerRow, { columnGap: moderateScale(gap) }]}>
|
|
56
59
|
{iconPosition === 'left' && icon}
|
|
57
|
-
<Text style={[styles.text, textStyle]}
|
|
60
|
+
<Text style={[styles.text, textStyle]} theme={overrideTheme}>
|
|
61
|
+
{text}
|
|
62
|
+
</Text>
|
|
58
63
|
{iconPosition === 'right' && icon}
|
|
59
64
|
</View>
|
|
60
65
|
</TouchableOpacity>
|
|
@@ -22,9 +22,10 @@ import SectionType from './Sections';
|
|
|
22
22
|
import type { IContentData, IGetSectionData, MoreFetchData } from '../../types';
|
|
23
23
|
import { dummySections } from '../../constants/dummySections';
|
|
24
24
|
import CategoryCard, { type ICategory } from './Card/Category/Category';
|
|
25
|
-
import NoContentFallback from './Card/components/NoContentFallback';
|
|
26
25
|
import type { IHistoryItem } from './Card/NowWatching/NowWatching';
|
|
27
|
-
import type {
|
|
26
|
+
import type { ThemeOverride } from '../../theme/themes';
|
|
27
|
+
import { NoContentFallback, type NoContentFallbackProps } from '../Fallbacks';
|
|
28
|
+
import { useInternalTheme } from '../../theme/hook';
|
|
28
29
|
|
|
29
30
|
export interface ICustomComponentsForContent {
|
|
30
31
|
type: string;
|
|
@@ -56,7 +57,7 @@ export interface IContentProps {
|
|
|
56
57
|
| StyleProp<ViewStyle>
|
|
57
58
|
| AnimatedStyle<StyleProp<ViewStyle>>;
|
|
58
59
|
onEndReached?: () => void;
|
|
59
|
-
theme?:
|
|
60
|
+
theme?: ThemeOverride;
|
|
60
61
|
autoSwitchTheme?: boolean;
|
|
61
62
|
events?: {
|
|
62
63
|
onPressItem?: (item: IContentData) => void;
|
|
@@ -75,6 +76,8 @@ export interface IContentProps {
|
|
|
75
76
|
moreFetchData?: MoreFetchData<IContentData>;
|
|
76
77
|
moreFetchDataHistory?: MoreFetchData<IHistoryItem>;
|
|
77
78
|
isLoading?: IContentLoading;
|
|
79
|
+
|
|
80
|
+
noContentFallbackProps?: NoContentFallbackProps;
|
|
78
81
|
}
|
|
79
82
|
|
|
80
83
|
const AnimatedFlatList = Animated.createAnimatedComponent(
|
|
@@ -85,6 +88,8 @@ interface FooterProps {
|
|
|
85
88
|
ErrorComponent?: React.ReactNode;
|
|
86
89
|
InfiniteScrollIsLoading?: boolean;
|
|
87
90
|
InfiniteScrollLoaderComponent?: React.ReactNode;
|
|
91
|
+
theme?: ThemeOverride;
|
|
92
|
+
noContentFallbackProps?: NoContentFallbackProps;
|
|
88
93
|
}
|
|
89
94
|
|
|
90
95
|
const ContentFooter = ({
|
|
@@ -92,7 +97,10 @@ const ContentFooter = ({
|
|
|
92
97
|
ErrorComponent,
|
|
93
98
|
InfiniteScrollIsLoading,
|
|
94
99
|
InfiniteScrollLoaderComponent,
|
|
100
|
+
theme,
|
|
101
|
+
noContentFallbackProps,
|
|
95
102
|
}: FooterProps) => {
|
|
103
|
+
const { theme: appliedTheme } = useInternalTheme(theme);
|
|
96
104
|
if (InfiniteScrollIsLoading) {
|
|
97
105
|
return (
|
|
98
106
|
InfiniteScrollLoaderComponent ?? (
|
|
@@ -101,16 +109,25 @@ const ContentFooter = ({
|
|
|
101
109
|
paddingVertical: scale(30),
|
|
102
110
|
alignItems: 'center',
|
|
103
111
|
justifyContent: 'center',
|
|
112
|
+
backgroundColor: 'transparent',
|
|
104
113
|
}}
|
|
105
114
|
>
|
|
106
|
-
<ActivityIndicator size="
|
|
115
|
+
<ActivityIndicator size="large" color={appliedTheme.colors.primary} />
|
|
107
116
|
</Animated.View>
|
|
108
117
|
)
|
|
109
118
|
);
|
|
110
119
|
}
|
|
111
120
|
|
|
112
121
|
if (isEmpty) {
|
|
113
|
-
return ErrorComponent ?
|
|
122
|
+
return ErrorComponent ? (
|
|
123
|
+
<>{ErrorComponent}</>
|
|
124
|
+
) : (
|
|
125
|
+
<NoContentFallback
|
|
126
|
+
theme={theme}
|
|
127
|
+
{...noContentFallbackProps}
|
|
128
|
+
isLoading={noContentFallbackProps?.isLoading ?? false}
|
|
129
|
+
/>
|
|
130
|
+
);
|
|
114
131
|
}
|
|
115
132
|
|
|
116
133
|
return null;
|
|
@@ -131,6 +148,7 @@ export const Content: React.FC<IContentProps> = ({
|
|
|
131
148
|
moreFetchData,
|
|
132
149
|
moreFetchDataHistory,
|
|
133
150
|
isLoading,
|
|
151
|
+
noContentFallbackProps,
|
|
134
152
|
}) => {
|
|
135
153
|
const sectionData = useMemo<IGetSectionData[]>(
|
|
136
154
|
() => contentData?.sectionData ?? [],
|
|
@@ -223,6 +241,8 @@ export const Content: React.FC<IContentProps> = ({
|
|
|
223
241
|
InfiniteScrollIsLoading={isLoading?.InfiniteScrollIsLoading}
|
|
224
242
|
isEmpty={isEmpty}
|
|
225
243
|
ErrorComponent={ErrorComponent}
|
|
244
|
+
theme={theme}
|
|
245
|
+
noContentFallbackProps={noContentFallbackProps}
|
|
226
246
|
/>
|
|
227
247
|
}
|
|
228
248
|
onEndReachedThreshold={0.7}
|
|
@@ -8,7 +8,7 @@ import Cards from './Card';
|
|
|
8
8
|
import type { IContentData, IGetSectionData, MoreFetchData } from '../../types';
|
|
9
9
|
import type { IHistoryItem } from './Card/NowWatching/NowWatching';
|
|
10
10
|
import type { ICategory } from './Card/Category/Category';
|
|
11
|
-
import type {
|
|
11
|
+
import type { ThemeOverride } from '../../theme/themes';
|
|
12
12
|
import type { IContentLoading } from './Content';
|
|
13
13
|
|
|
14
14
|
export interface ICustomComponentsForSections {
|
|
@@ -25,7 +25,7 @@ export interface IProps {
|
|
|
25
25
|
};
|
|
26
26
|
name: string;
|
|
27
27
|
customComponents?: ICustomComponentsForSections[];
|
|
28
|
-
theme?:
|
|
28
|
+
theme?: ThemeOverride;
|
|
29
29
|
index: number;
|
|
30
30
|
section_id: string;
|
|
31
31
|
events?: {
|
|
@@ -2,24 +2,27 @@
|
|
|
2
2
|
* @author Naresh Dhamu
|
|
3
3
|
* @lastModified Tue 01 Jul 2025 at 02:28 PM
|
|
4
4
|
*/
|
|
5
|
-
|
|
6
5
|
import { ScrollView, StyleSheet } from 'react-native';
|
|
7
6
|
import { HeroBanner } from './components/HeroBanner';
|
|
8
7
|
import { GenreTags } from './components/GenreTags';
|
|
9
8
|
import { AboutSection } from './components/AboutSection';
|
|
10
9
|
import { Title } from './components/Title';
|
|
11
|
-
import {
|
|
10
|
+
import { useInternalTheme } from '../../theme/hook/useInternalTheme';
|
|
12
11
|
import { CastCard } from './components/CastCard';
|
|
13
12
|
import Cards from '../Content/Card';
|
|
14
13
|
import { scale } from 'react-native-size-matters';
|
|
15
14
|
import { EpisodeCard } from './components/EpisodeCard';
|
|
16
15
|
import type { ComponentProps } from '../../types/content/content-view.types';
|
|
16
|
+
import { NotFoundFallback } from '../Fallbacks';
|
|
17
|
+
import { MiniInfo } from './components/MiniInfo';
|
|
18
|
+
|
|
17
19
|
export const ContentView = ({
|
|
18
20
|
content,
|
|
19
21
|
seasons,
|
|
20
22
|
isLoading = false,
|
|
21
23
|
seasonsIsLoading = false,
|
|
22
24
|
theme,
|
|
25
|
+
text,
|
|
23
26
|
recommendedContent,
|
|
24
27
|
events,
|
|
25
28
|
heroBannerProps,
|
|
@@ -31,100 +34,121 @@ export const ContentView = ({
|
|
|
31
34
|
history,
|
|
32
35
|
episodeCardMode,
|
|
33
36
|
}: ComponentProps) => {
|
|
34
|
-
const { theme: appliedTheme } =
|
|
37
|
+
const { theme: appliedTheme } = useInternalTheme(theme);
|
|
35
38
|
const seekTime = history?.currentTime || 0;
|
|
36
39
|
const isComplete = history?.completed || false;
|
|
37
40
|
const currentEpisode = history?.current_episode;
|
|
41
|
+
|
|
42
|
+
const isNotFound = !isLoading && !content;
|
|
43
|
+
|
|
38
44
|
return (
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
isLoading={isLoading}
|
|
82
|
-
style={aboutSectionStyles}
|
|
83
|
-
/>
|
|
84
|
-
<CastCard
|
|
85
|
-
theme={appliedTheme}
|
|
86
|
-
data={content?.cast || null}
|
|
87
|
-
isLoading={isLoading}
|
|
88
|
-
onItemPress={() => {}}
|
|
89
|
-
style={castStyles}
|
|
90
|
-
/>
|
|
91
|
-
{content?.type === 'series' &&
|
|
92
|
-
(seasonsIsLoading || (seasons && seasons.length > 0)) && (
|
|
93
|
-
<EpisodeCard
|
|
94
|
-
isLoading={seasonsIsLoading}
|
|
95
|
-
seasons={seasonsIsLoading ? [] : (seasons ?? [])}
|
|
96
|
-
onPress={({ season_id, episode_id, episode_number }) => {
|
|
97
|
-
if (!seasonsIsLoading) {
|
|
98
|
-
events?.onPlay?.({
|
|
99
|
-
id: content._id,
|
|
100
|
-
slug: content.slug,
|
|
101
|
-
type: content.type,
|
|
102
|
-
current_episode: episode_id,
|
|
103
|
-
current_season: season_id,
|
|
104
|
-
episode_number,
|
|
105
|
-
});
|
|
106
|
-
}
|
|
107
|
-
}}
|
|
45
|
+
<>
|
|
46
|
+
{isNotFound ? (
|
|
47
|
+
<NotFoundFallback
|
|
48
|
+
title={text?.notFound?.title || 'Oops! Content Not Found'}
|
|
49
|
+
subtitle={
|
|
50
|
+
text?.notFound?.subtitle ||
|
|
51
|
+
'We couldn’t find anything to show here. Please check back later.'
|
|
52
|
+
}
|
|
53
|
+
backButtonText={text?.notFound?.buttonText || 'Go Back'}
|
|
54
|
+
onPressBack={events?.onBackPress}
|
|
55
|
+
theme={theme}
|
|
56
|
+
/>
|
|
57
|
+
) : (
|
|
58
|
+
<ScrollView
|
|
59
|
+
showsVerticalScrollIndicator={false}
|
|
60
|
+
keyboardShouldPersistTaps="handled"
|
|
61
|
+
contentContainerStyle={styles.scrollContent}
|
|
62
|
+
>
|
|
63
|
+
<HeroBanner
|
|
64
|
+
backgroundImage={content?.thumbnail}
|
|
65
|
+
title={content?.name}
|
|
66
|
+
theme={theme}
|
|
67
|
+
isLoading={isLoading}
|
|
68
|
+
content_offering_type={content?.content_offering_type}
|
|
69
|
+
onPressPlay={({ is_trailer }) =>
|
|
70
|
+
events?.onPlay?.({
|
|
71
|
+
id: content._id,
|
|
72
|
+
slug: content.slug,
|
|
73
|
+
type: content.type,
|
|
74
|
+
current_episode: currentEpisode,
|
|
75
|
+
mode: 'fullscreen',
|
|
76
|
+
is_trailer,
|
|
77
|
+
seekTime: isComplete ? 0 : seekTime,
|
|
78
|
+
})
|
|
79
|
+
}
|
|
80
|
+
onBackPress={events?.onBackPress}
|
|
81
|
+
{...heroBannerProps}
|
|
82
|
+
/>
|
|
83
|
+
<Title
|
|
84
|
+
title={content?.name}
|
|
85
|
+
subtitle={content?.u_age}
|
|
86
|
+
rating={content?.rating}
|
|
108
87
|
theme={appliedTheme}
|
|
109
|
-
|
|
88
|
+
isLoading={isLoading}
|
|
89
|
+
style={titleStyles}
|
|
110
90
|
/>
|
|
111
|
-
)}
|
|
112
91
|
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
isLoading={isLoading}
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
92
|
+
<GenreTags
|
|
93
|
+
genres={content?.genres}
|
|
94
|
+
theme={appliedTheme}
|
|
95
|
+
isLoading={isLoading}
|
|
96
|
+
style={genreTagsStyles}
|
|
97
|
+
/>
|
|
98
|
+
<MiniInfo content={content} theme={theme} isLoading={isLoading} />
|
|
99
|
+
<AboutSection
|
|
100
|
+
theme={appliedTheme}
|
|
101
|
+
description={content?.description}
|
|
102
|
+
release_year={content?.release_year}
|
|
103
|
+
isLoading={isLoading}
|
|
104
|
+
style={aboutSectionStyles}
|
|
105
|
+
/>
|
|
106
|
+
<CastCard
|
|
107
|
+
theme={appliedTheme}
|
|
108
|
+
data={content?.cast || null}
|
|
109
|
+
isLoading={isLoading}
|
|
110
|
+
onItemPress={() => {}}
|
|
111
|
+
style={castStyles}
|
|
112
|
+
/>
|
|
113
|
+
{content?.type === 'series' &&
|
|
114
|
+
(seasonsIsLoading || (seasons && seasons.length > 0)) && (
|
|
115
|
+
<EpisodeCard
|
|
116
|
+
isLoading={seasonsIsLoading}
|
|
117
|
+
seasons={seasonsIsLoading ? [] : (seasons ?? [])}
|
|
118
|
+
onPress={({ season_id, episode_id, episode_number }) => {
|
|
119
|
+
if (!seasonsIsLoading) {
|
|
120
|
+
events?.onPlay?.({
|
|
121
|
+
id: content._id,
|
|
122
|
+
slug: content.slug,
|
|
123
|
+
type: content.type,
|
|
124
|
+
current_episode: episode_id,
|
|
125
|
+
current_season: season_id,
|
|
126
|
+
episode_number,
|
|
127
|
+
});
|
|
128
|
+
}
|
|
129
|
+
}}
|
|
130
|
+
theme={theme}
|
|
131
|
+
mode={episodeCardMode ?? 'horizontal'}
|
|
132
|
+
/>
|
|
133
|
+
)}
|
|
134
|
+
|
|
135
|
+
{recommendedContent && recommendedContent?.content && (
|
|
136
|
+
<Cards.Styles.Four
|
|
137
|
+
section_id={recommendedContent._id}
|
|
138
|
+
title={recommendedContent.name}
|
|
139
|
+
type={recommendedContent.type}
|
|
140
|
+
data={recommendedContent.content}
|
|
141
|
+
isLoading={isLoading}
|
|
142
|
+
theme={theme}
|
|
143
|
+
onPressItem={(item) => events?.onPressRecommendedItem?.({ item })}
|
|
144
|
+
onPressMore={events?.onPressRecommendedMore}
|
|
145
|
+
moreFetchData={events?.moreFetchDataRecommended}
|
|
146
|
+
{...recommendedContentCardStyles}
|
|
147
|
+
/>
|
|
148
|
+
)}
|
|
149
|
+
</ScrollView>
|
|
126
150
|
)}
|
|
127
|
-
|
|
151
|
+
</>
|
|
128
152
|
);
|
|
129
153
|
};
|
|
130
154
|
|
|
@@ -19,8 +19,8 @@ import { View } from '../View';
|
|
|
19
19
|
import AppHeader, { type AppHeaderProps } from '../Headers/AppHeader';
|
|
20
20
|
import { RFValue } from 'react-native-responsive-fontsize';
|
|
21
21
|
import CardPoster from '../Content/Card/components/CardPoster';
|
|
22
|
-
import type {
|
|
23
|
-
import {
|
|
22
|
+
import type { ThemeOverride } from '../../theme/themes';
|
|
23
|
+
import { useInternalTheme } from '../../theme/hook';
|
|
24
24
|
import Animated from 'react-native-reanimated';
|
|
25
25
|
import { Search } from 'lucide-react-native';
|
|
26
26
|
|
|
@@ -31,7 +31,7 @@ interface Props {
|
|
|
31
31
|
isLoading?: boolean;
|
|
32
32
|
error?: boolean | string | Error;
|
|
33
33
|
errorText?: string;
|
|
34
|
-
theme?:
|
|
34
|
+
theme?: ThemeOverride;
|
|
35
35
|
moreDataIsLoading?: boolean;
|
|
36
36
|
onEndReached?: () => void;
|
|
37
37
|
skeletonCount?: number;
|
|
@@ -61,7 +61,7 @@ const MoreContentList: React.FC<Props> = ({
|
|
|
61
61
|
refreshing = false,
|
|
62
62
|
onRefresh,
|
|
63
63
|
}) => {
|
|
64
|
-
const { theme: appliedTheme } =
|
|
64
|
+
const { theme: appliedTheme } = useInternalTheme(theme);
|
|
65
65
|
const onEndReachedCalledDuringMomentum = useRef(false);
|
|
66
66
|
const isEmpty = !isLoading && (!contentList || contentList.length === 0);
|
|
67
67
|
|
|
@@ -208,6 +208,7 @@ const MoreContentList: React.FC<Props> = ({
|
|
|
208
208
|
<Search size={scale(23)} color={appliedTheme.colors.onBackground} />
|
|
209
209
|
)
|
|
210
210
|
}
|
|
211
|
+
theme={theme}
|
|
211
212
|
{...headerProps}
|
|
212
213
|
/>
|
|
213
214
|
{renderContent()}
|
|
@@ -18,11 +18,13 @@ import SkeletonPlaceholder from 'react-native-skeleton-placeholder';
|
|
|
18
18
|
import { scale, verticalScale } from 'react-native-size-matters';
|
|
19
19
|
import type { ITheme } from '../../../theme/themes';
|
|
20
20
|
import { RFValue } from 'react-native-responsive-fontsize';
|
|
21
|
+
import type { IContentData } from '../../../types';
|
|
21
22
|
|
|
22
23
|
type Props = {
|
|
23
24
|
theme: ITheme;
|
|
24
|
-
title?:
|
|
25
|
-
description?:
|
|
25
|
+
title?: IContentData['name'];
|
|
26
|
+
description?: IContentData['description'];
|
|
27
|
+
release_year?: IContentData['release_year'];
|
|
26
28
|
isLoading?: boolean;
|
|
27
29
|
style?: {
|
|
28
30
|
container?: StyleProp<ViewStyle>;
|
|
@@ -31,12 +33,14 @@ type Props = {
|
|
|
31
33
|
scrollExpanded?: StyleProp<ViewStyle>;
|
|
32
34
|
toggleText?: StyleProp<TextStyle>;
|
|
33
35
|
skeletonLine?: StyleProp<ViewStyle>;
|
|
36
|
+
releaseYear?: StyleProp<ViewStyle>;
|
|
34
37
|
};
|
|
35
38
|
};
|
|
36
39
|
|
|
37
40
|
export const AboutSection = ({
|
|
38
41
|
theme,
|
|
39
42
|
title = 'About',
|
|
43
|
+
release_year,
|
|
40
44
|
description,
|
|
41
45
|
isLoading = false,
|
|
42
46
|
style,
|
|
@@ -89,6 +93,16 @@ export const AboutSection = ({
|
|
|
89
93
|
{title}
|
|
90
94
|
</Text>
|
|
91
95
|
|
|
96
|
+
{/* Release Year */}
|
|
97
|
+
{release_year && (
|
|
98
|
+
<Text
|
|
99
|
+
color={theme.colors.textSecondary}
|
|
100
|
+
style={[styles.releaseYear, style?.releaseYear]}
|
|
101
|
+
>
|
|
102
|
+
Release: <Text color={theme.colors.textPrimary}>{release_year}</Text>
|
|
103
|
+
</Text>
|
|
104
|
+
)}
|
|
105
|
+
|
|
92
106
|
{!expanded ? (
|
|
93
107
|
<Text
|
|
94
108
|
color={theme.colors.textSecondary}
|
|
@@ -137,7 +151,7 @@ const styles = StyleSheet.create({
|
|
|
137
151
|
marginTop: verticalScale(7),
|
|
138
152
|
},
|
|
139
153
|
title: {
|
|
140
|
-
fontSize: RFValue(
|
|
154
|
+
fontSize: RFValue(13),
|
|
141
155
|
fontWeight: 'bold',
|
|
142
156
|
marginBottom: scale(6),
|
|
143
157
|
},
|
|
@@ -149,6 +163,12 @@ const styles = StyleSheet.create({
|
|
|
149
163
|
scrollExpanded: {
|
|
150
164
|
maxHeight: verticalScale(250),
|
|
151
165
|
},
|
|
166
|
+
releaseYear: {
|
|
167
|
+
fontSize: RFValue(12),
|
|
168
|
+
fontWeight: '500',
|
|
169
|
+
marginBottom: scale(6),
|
|
170
|
+
letterSpacing: 0.3,
|
|
171
|
+
},
|
|
152
172
|
toggleText: {
|
|
153
173
|
fontSize: RFValue(9.5),
|
|
154
174
|
fontWeight: '600',
|
|
@@ -11,10 +11,11 @@ import { scale, verticalScale, moderateScale } from 'react-native-size-matters';
|
|
|
11
11
|
import { Text } from '../../Text';
|
|
12
12
|
import Display from '../../../utils/Display';
|
|
13
13
|
import type { IContentEpisodes, IContentSeasons } from '../../../types';
|
|
14
|
-
import type { ITheme } from '../../../theme/themes';
|
|
14
|
+
import type { ITheme, ThemeOverride } from '../../../theme/themes';
|
|
15
15
|
import { ThumbnailCard } from '../../Content/Card/components/ThumbnailCard';
|
|
16
16
|
import { RFValue } from 'react-native-responsive-fontsize';
|
|
17
17
|
import RentOrBuyIcon from '../../Content/Card/components/RentOrBuyIcon';
|
|
18
|
+
import { useInternalTheme } from '../../../theme/hook';
|
|
18
19
|
|
|
19
20
|
// Constants
|
|
20
21
|
const SKELETON_COUNT = 3;
|
|
@@ -43,6 +44,7 @@ interface EpisodeCardItemProps {
|
|
|
43
44
|
season_id: string;
|
|
44
45
|
season_number: number;
|
|
45
46
|
episode: IContentEpisodes;
|
|
47
|
+
isDarkMode: boolean;
|
|
46
48
|
onPress: (e: IOnPressParams) => void;
|
|
47
49
|
theme: ITheme;
|
|
48
50
|
style?: React.ComponentProps<typeof TouchableOpacity>['style'];
|
|
@@ -53,7 +55,7 @@ interface EpisodeCardItemProps {
|
|
|
53
55
|
interface EpisodeCardProps {
|
|
54
56
|
seasons: IContentSeasons[];
|
|
55
57
|
onPress: (e: IOnPressParams) => void;
|
|
56
|
-
theme
|
|
58
|
+
theme?: ThemeOverride;
|
|
57
59
|
isLoading?: boolean;
|
|
58
60
|
mode?: 'horizontal' | 'vertical';
|
|
59
61
|
}
|
|
@@ -74,6 +76,7 @@ const EpisodeCardItem = memo(
|
|
|
74
76
|
season_number,
|
|
75
77
|
episode,
|
|
76
78
|
onPress,
|
|
79
|
+
isDarkMode,
|
|
77
80
|
theme,
|
|
78
81
|
style,
|
|
79
82
|
thumbnailHeight,
|
|
@@ -109,15 +112,21 @@ const EpisodeCardItem = memo(
|
|
|
109
112
|
flexDirection: isVerticalMode
|
|
110
113
|
? ('row' as const)
|
|
111
114
|
: ('column' as const),
|
|
112
|
-
borderWidth: isVerticalMode ? 0 :
|
|
115
|
+
borderWidth: isVerticalMode ? 0 : isDarkMode ? 0 : BORDER_WIDTH,
|
|
113
116
|
borderColor: isVerticalMode
|
|
114
117
|
? 'transparent'
|
|
115
|
-
:
|
|
118
|
+
: isDarkMode
|
|
116
119
|
? 'transparent'
|
|
117
120
|
: theme.colors.border,
|
|
118
121
|
},
|
|
119
122
|
],
|
|
120
|
-
[
|
|
123
|
+
[
|
|
124
|
+
style,
|
|
125
|
+
isVerticalMode,
|
|
126
|
+
theme.colors.surfaceVariant,
|
|
127
|
+
theme.colors.border,
|
|
128
|
+
isDarkMode,
|
|
129
|
+
]
|
|
121
130
|
);
|
|
122
131
|
|
|
123
132
|
const windowWidth = Display.fullWidth;
|
|
@@ -202,6 +211,7 @@ const EpisodeCardItem = memo(
|
|
|
202
211
|
<View style={[styles.cardContent, isVerticalMode && styles.cardGrid]}>
|
|
203
212
|
<View style={thumbnailStyle}>
|
|
204
213
|
<RentOrBuyIcon
|
|
214
|
+
theme={theme}
|
|
205
215
|
content_offering_type={episode.content_offering_type}
|
|
206
216
|
/>
|
|
207
217
|
<ThumbnailCard
|
|
@@ -254,10 +264,11 @@ const EpisodeCardItem = memo(
|
|
|
254
264
|
export const EpisodeCard = ({
|
|
255
265
|
seasons,
|
|
256
266
|
onPress,
|
|
257
|
-
theme,
|
|
267
|
+
theme: themeOverride,
|
|
258
268
|
isLoading = false,
|
|
259
269
|
mode = 'horizontal',
|
|
260
270
|
}: EpisodeCardProps) => {
|
|
271
|
+
const { isDarkMode, theme } = useInternalTheme(themeOverride);
|
|
261
272
|
const [selectedSeasonIndex, setSelectedSeasonIndex] = useState(0);
|
|
262
273
|
const windowWidth = Display.fullWidth;
|
|
263
274
|
|
|
@@ -324,13 +335,14 @@ export const EpisodeCard = ({
|
|
|
324
335
|
theme={theme}
|
|
325
336
|
season_id={selectedSeason._id}
|
|
326
337
|
episode={item}
|
|
338
|
+
isDarkMode={isDarkMode}
|
|
327
339
|
season_number={selectedSeason.season_number}
|
|
328
340
|
onPress={onPress}
|
|
329
341
|
style={{ width: cardWidth }}
|
|
330
342
|
thumbnailHeight={thumbnailHeight}
|
|
331
343
|
/>
|
|
332
344
|
) : null,
|
|
333
|
-
[theme,
|
|
345
|
+
[selectedSeason, theme, isDarkMode, onPress, cardWidth, thumbnailHeight]
|
|
334
346
|
);
|
|
335
347
|
|
|
336
348
|
const renderLoadingItem = useCallback(
|
|
@@ -338,6 +350,7 @@ export const EpisodeCard = ({
|
|
|
338
350
|
<EpisodeCardItem
|
|
339
351
|
theme={theme}
|
|
340
352
|
season_id=""
|
|
353
|
+
isDarkMode={isDarkMode}
|
|
341
354
|
season_number={0}
|
|
342
355
|
episode={{
|
|
343
356
|
_id: '',
|
|
@@ -361,7 +374,7 @@ export const EpisodeCard = ({
|
|
|
361
374
|
isLoading
|
|
362
375
|
/>
|
|
363
376
|
),
|
|
364
|
-
[theme, onPress, cardWidth, thumbnailHeight]
|
|
377
|
+
[theme, isDarkMode, onPress, cardWidth, thumbnailHeight]
|
|
365
378
|
);
|
|
366
379
|
|
|
367
380
|
if (isLoading) {
|