@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
|
@@ -12,10 +12,10 @@ import {
|
|
|
12
12
|
type TextStyle,
|
|
13
13
|
} from 'react-native';
|
|
14
14
|
import { ArrowLeft } from 'lucide-react-native';
|
|
15
|
-
import {
|
|
15
|
+
import { useInternalTheme } from '../../theme/hook/useInternalTheme';
|
|
16
16
|
import { scale, verticalScale } from 'react-native-size-matters';
|
|
17
17
|
import { Text } from '../Text';
|
|
18
|
-
import type {
|
|
18
|
+
import type { ThemeOverride } from '../../theme/themes';
|
|
19
19
|
import { RFValue } from 'react-native-responsive-fontsize';
|
|
20
20
|
|
|
21
21
|
export type AppHeaderProps = {
|
|
@@ -26,7 +26,7 @@ export type AppHeaderProps = {
|
|
|
26
26
|
style?: StyleProp<ViewStyle>;
|
|
27
27
|
titleStyle?: TextStyle;
|
|
28
28
|
titleAlign?: 'center' | 'left';
|
|
29
|
-
theme?:
|
|
29
|
+
theme?: ThemeOverride;
|
|
30
30
|
};
|
|
31
31
|
|
|
32
32
|
const AppHeader: React.FC<AppHeaderProps> = ({
|
|
@@ -39,7 +39,7 @@ const AppHeader: React.FC<AppHeaderProps> = ({
|
|
|
39
39
|
titleAlign = 'center',
|
|
40
40
|
theme,
|
|
41
41
|
}) => {
|
|
42
|
-
const { theme: appliedTheme } =
|
|
42
|
+
const { theme: appliedTheme } = useInternalTheme(theme);
|
|
43
43
|
|
|
44
44
|
return (
|
|
45
45
|
<View
|
|
@@ -7,15 +7,15 @@ import React, { useMemo } from 'react';
|
|
|
7
7
|
import { Platform, Pressable, StyleSheet, View } from 'react-native';
|
|
8
8
|
import { scale, verticalScale } from 'react-native-size-matters';
|
|
9
9
|
import { Logo } from '../Logo/Logo';
|
|
10
|
-
import type {
|
|
11
|
-
import {
|
|
10
|
+
import type { ThemeOverride } from '../../theme/themes';
|
|
11
|
+
import { useInternalTheme } from '../../theme/hook/useInternalTheme';
|
|
12
12
|
import {
|
|
13
13
|
Menu as DefaultMenuIcon,
|
|
14
14
|
Search as DefaultSearchIcon,
|
|
15
15
|
} from 'lucide-react-native';
|
|
16
16
|
|
|
17
17
|
export interface HeaderOneProps {
|
|
18
|
-
theme?:
|
|
18
|
+
theme?: ThemeOverride;
|
|
19
19
|
logoUri: string;
|
|
20
20
|
MenuIcon?: React.FC<{ width: number; height: number; color?: string }>;
|
|
21
21
|
SearchIcon?: React.FC<{ width: number; height: number; color?: string }>;
|
|
@@ -34,7 +34,7 @@ const HeaderOne: React.FC<HeaderOneProps> = ({
|
|
|
34
34
|
onSearchPress,
|
|
35
35
|
isLoading,
|
|
36
36
|
}) => {
|
|
37
|
-
const { theme: appliedTheme } =
|
|
37
|
+
const { theme: appliedTheme } = useInternalTheme(theme);
|
|
38
38
|
|
|
39
39
|
const iconColor = appliedTheme.colors?.onSurface;
|
|
40
40
|
const rippleColor = appliedTheme.colors.surfaceVariant + '33';
|
|
@@ -6,13 +6,13 @@ import React from 'react';
|
|
|
6
6
|
import { Platform, StyleSheet, View } from 'react-native';
|
|
7
7
|
import { scale, verticalScale } from 'react-native-size-matters';
|
|
8
8
|
import { Logo } from '../Logo/Logo';
|
|
9
|
-
import type {
|
|
10
|
-
import {
|
|
9
|
+
import type { ThemeOverride } from '../../theme/themes';
|
|
10
|
+
import { useInternalTheme } from '../../theme/hook/useInternalTheme';
|
|
11
11
|
|
|
12
12
|
export interface HeaderThreeProps {
|
|
13
13
|
logoUri: string;
|
|
14
14
|
category?: React.ReactNode;
|
|
15
|
-
theme?:
|
|
15
|
+
theme?: ThemeOverride;
|
|
16
16
|
isLoading?: boolean;
|
|
17
17
|
}
|
|
18
18
|
|
|
@@ -22,7 +22,7 @@ const HeaderThree: React.FC<HeaderThreeProps> = ({
|
|
|
22
22
|
theme,
|
|
23
23
|
isLoading,
|
|
24
24
|
}) => {
|
|
25
|
-
const { theme: appliedTheme } =
|
|
25
|
+
const { theme: appliedTheme } = useInternalTheme(theme);
|
|
26
26
|
return (
|
|
27
27
|
<View
|
|
28
28
|
style={[
|
|
@@ -6,11 +6,11 @@ import React from 'react';
|
|
|
6
6
|
import { Platform, Pressable, StyleSheet, View } from 'react-native';
|
|
7
7
|
import { scale, verticalScale } from 'react-native-size-matters';
|
|
8
8
|
import { Logo } from '../Logo/Logo';
|
|
9
|
-
import type {
|
|
10
|
-
import {
|
|
9
|
+
import type { ThemeOverride } from '../../theme/themes';
|
|
10
|
+
import { useInternalTheme } from '../../theme/hook/useInternalTheme';
|
|
11
11
|
import { Menu } from 'lucide-react-native';
|
|
12
12
|
export interface HeaderTwoProps {
|
|
13
|
-
theme?:
|
|
13
|
+
theme?: ThemeOverride;
|
|
14
14
|
logoUri: string;
|
|
15
15
|
MenuIcon?: React.FC<{ width: number; height: number; color?: string }>;
|
|
16
16
|
onMenuPress?: () => void;
|
|
@@ -24,7 +24,7 @@ const HeaderTwo: React.FC<HeaderTwoProps> = ({
|
|
|
24
24
|
onMenuPress,
|
|
25
25
|
isLoading,
|
|
26
26
|
}) => {
|
|
27
|
-
const { theme: appliedTheme } =
|
|
27
|
+
const { theme: appliedTheme } = useInternalTheme(theme);
|
|
28
28
|
|
|
29
29
|
const rippleColor = appliedTheme.colors.surfaceVariant + '33';
|
|
30
30
|
const pressedBackgroundColor = appliedTheme.colors.surfaceVariant;
|
|
@@ -15,8 +15,8 @@ import {
|
|
|
15
15
|
} from 'react-native';
|
|
16
16
|
import { Eye, EyeOff } from 'lucide-react-native';
|
|
17
17
|
import { scale, verticalScale, moderateScale } from 'react-native-size-matters';
|
|
18
|
-
import {
|
|
19
|
-
import type {
|
|
18
|
+
import { useInternalTheme } from '../../theme/hook/useInternalTheme';
|
|
19
|
+
import type { ThemeOverride } from '../../theme/themes';
|
|
20
20
|
import { RFValue } from 'react-native-responsive-fontsize';
|
|
21
21
|
|
|
22
22
|
export interface InputOneProps extends Omit<TextInputProps, 'theme'> {
|
|
@@ -25,7 +25,7 @@ export interface InputOneProps extends Omit<TextInputProps, 'theme'> {
|
|
|
25
25
|
errorMessage?: string;
|
|
26
26
|
error?: boolean;
|
|
27
27
|
secureTextEntry?: boolean;
|
|
28
|
-
theme?:
|
|
28
|
+
theme?: ThemeOverride;
|
|
29
29
|
label?: string;
|
|
30
30
|
placeholderTextColor?: string;
|
|
31
31
|
disabled?: boolean;
|
|
@@ -43,8 +43,9 @@ const InputOne: React.FC<InputOneProps> = ({
|
|
|
43
43
|
disabled,
|
|
44
44
|
...props
|
|
45
45
|
}) => {
|
|
46
|
-
const { theme: appliedTheme } =
|
|
46
|
+
const { theme: appliedTheme } = useInternalTheme(theme);
|
|
47
47
|
const [showPassword, setShowPassword] = useState(false);
|
|
48
|
+
const [isFocused, setIsFocused] = useState(false); // 👈 focus state जोड़ी गई
|
|
48
49
|
const isPasswordField = !!secureTextEntry;
|
|
49
50
|
const inputSecure = isPasswordField && !showPassword;
|
|
50
51
|
|
|
@@ -56,6 +57,7 @@ const InputOne: React.FC<InputOneProps> = ({
|
|
|
56
57
|
outlineDisabled,
|
|
57
58
|
error: inputErrorColor,
|
|
58
59
|
background,
|
|
60
|
+
primary, // अगर theme में primary color हो तो उसे भी use करेंगे
|
|
59
61
|
} = appliedTheme?.colors || {};
|
|
60
62
|
|
|
61
63
|
return (
|
|
@@ -87,13 +89,14 @@ const InputOne: React.FC<InputOneProps> = ({
|
|
|
87
89
|
<View
|
|
88
90
|
style={[
|
|
89
91
|
styles.inputWrapper,
|
|
90
|
-
|
|
91
92
|
{
|
|
92
93
|
borderColor: disabled
|
|
93
94
|
? outlineDisabled
|
|
94
95
|
: error
|
|
95
96
|
? inputErrorColor
|
|
96
|
-
:
|
|
97
|
+
: isFocused
|
|
98
|
+
? primary || '#007AFF'
|
|
99
|
+
: outline,
|
|
97
100
|
backgroundColor: disabled
|
|
98
101
|
? appliedTheme.colors.backgroundDisabled
|
|
99
102
|
: error
|
|
@@ -107,6 +110,8 @@ const InputOne: React.FC<InputOneProps> = ({
|
|
|
107
110
|
<TextInput
|
|
108
111
|
{...props}
|
|
109
112
|
editable={!disabled}
|
|
113
|
+
onFocus={() => setIsFocused(true)}
|
|
114
|
+
onBlur={() => setIsFocused(false)}
|
|
110
115
|
placeholderTextColor={
|
|
111
116
|
placeholderTextColor || (disabled ? textDisabled : textSecondary)
|
|
112
117
|
}
|
|
@@ -114,6 +119,24 @@ const InputOne: React.FC<InputOneProps> = ({
|
|
|
114
119
|
textContentType={
|
|
115
120
|
isPasswordField ? 'oneTimeCode' : props.textContentType || 'none'
|
|
116
121
|
}
|
|
122
|
+
cursorColor={
|
|
123
|
+
disabled
|
|
124
|
+
? textDisabled
|
|
125
|
+
: error
|
|
126
|
+
? inputErrorColor
|
|
127
|
+
: isFocused
|
|
128
|
+
? primary || '#007AFF'
|
|
129
|
+
: textPrimary
|
|
130
|
+
}
|
|
131
|
+
selectionColor={
|
|
132
|
+
disabled
|
|
133
|
+
? textDisabled
|
|
134
|
+
: error
|
|
135
|
+
? inputErrorColor
|
|
136
|
+
: isFocused
|
|
137
|
+
? primary || '#007AFF'
|
|
138
|
+
: textPrimary
|
|
139
|
+
}
|
|
117
140
|
style={[
|
|
118
141
|
styles.input,
|
|
119
142
|
{
|
|
@@ -189,7 +212,7 @@ const styles = StyleSheet.create({
|
|
|
189
212
|
},
|
|
190
213
|
inputWrapper: {
|
|
191
214
|
width: '100%',
|
|
192
|
-
borderWidth: scale(1),
|
|
215
|
+
borderWidth: scale(1.4),
|
|
193
216
|
borderRadius: moderateScale(10),
|
|
194
217
|
paddingHorizontal: scale(10),
|
|
195
218
|
paddingVertical: verticalScale(6),
|
|
@@ -16,8 +16,8 @@ import {
|
|
|
16
16
|
} from 'react-native';
|
|
17
17
|
import { Eye, EyeOff } from 'lucide-react-native';
|
|
18
18
|
import { scale, verticalScale, moderateScale } from 'react-native-size-matters';
|
|
19
|
-
import {
|
|
20
|
-
import type {
|
|
19
|
+
import { useInternalTheme } from '../../theme/hook/useInternalTheme';
|
|
20
|
+
import type { ThemeOverride } from '../../theme/themes';
|
|
21
21
|
import { RFValue } from 'react-native-responsive-fontsize';
|
|
22
22
|
|
|
23
23
|
export interface InputTwoProps extends Omit<TextInputProps, 'theme'> {
|
|
@@ -26,7 +26,7 @@ export interface InputTwoProps extends Omit<TextInputProps, 'theme'> {
|
|
|
26
26
|
errorMessage?: string;
|
|
27
27
|
error?: boolean;
|
|
28
28
|
secureTextEntry?: boolean;
|
|
29
|
-
theme?:
|
|
29
|
+
theme?: ThemeOverride;
|
|
30
30
|
label?: string;
|
|
31
31
|
placeholderTextColor?: string;
|
|
32
32
|
disabled?: boolean;
|
|
@@ -53,7 +53,7 @@ const InputTwo: React.FC<InputTwoProps> = ({
|
|
|
53
53
|
onPressRightIcon,
|
|
54
54
|
...props
|
|
55
55
|
}) => {
|
|
56
|
-
const { theme: appliedTheme } =
|
|
56
|
+
const { theme: appliedTheme } = useInternalTheme(theme);
|
|
57
57
|
const [showPassword, setShowPassword] = useState(false);
|
|
58
58
|
const isPasswordField = !!secureTextEntry;
|
|
59
59
|
const inputSecure = isPasswordField && !showPassword;
|
|
@@ -26,8 +26,8 @@ import { getExampleNumber } from 'libphonenumber-js';
|
|
|
26
26
|
import examples from 'libphonenumber-js/mobile/examples';
|
|
27
27
|
import { parsePhoneNumberFromString } from 'libphonenumber-js';
|
|
28
28
|
import debounce from 'lodash.debounce';
|
|
29
|
-
import {
|
|
30
|
-
import type {
|
|
29
|
+
import { useInternalTheme } from '../../theme/hook/useInternalTheme';
|
|
30
|
+
import type { ThemeOverride } from '../../theme/themes';
|
|
31
31
|
import { RFValue } from 'react-native-responsive-fontsize';
|
|
32
32
|
|
|
33
33
|
export interface PhoneNumberInputProps
|
|
@@ -44,7 +44,7 @@ export interface PhoneNumberInputProps
|
|
|
44
44
|
errorMessage?: string;
|
|
45
45
|
inputStyle?: TextStyle;
|
|
46
46
|
containerStyle?: ViewStyle;
|
|
47
|
-
theme?:
|
|
47
|
+
theme?: ThemeOverride;
|
|
48
48
|
disabled?: boolean;
|
|
49
49
|
}
|
|
50
50
|
|
|
@@ -79,7 +79,7 @@ const PhoneNumberInputOne: React.FC<PhoneNumberInputProps> = ({
|
|
|
79
79
|
disabled = false,
|
|
80
80
|
}) => {
|
|
81
81
|
const phoneInputRef = useRef<PhoneInput>(null);
|
|
82
|
-
const { theme: appliedTheme } =
|
|
82
|
+
const { theme: appliedTheme, isDarkMode } = useInternalTheme(propTheme);
|
|
83
83
|
const [inputError, setInputError] = useState<string | null>(null);
|
|
84
84
|
const [isFocused, setIsFocused] = useState<boolean>(false);
|
|
85
85
|
const errorAnimation = useRef(new Animated.Value(0)).current;
|
|
@@ -343,7 +343,7 @@ const PhoneNumberInputOne: React.FC<PhoneNumberInputProps> = ({
|
|
|
343
343
|
onFocus: () => setIsFocused(true),
|
|
344
344
|
onBlur: () => setIsFocused(false),
|
|
345
345
|
}}
|
|
346
|
-
withDarkTheme={
|
|
346
|
+
withDarkTheme={isDarkMode}
|
|
347
347
|
/>
|
|
348
348
|
</View>
|
|
349
349
|
{(error || inputError) && (
|
|
@@ -13,8 +13,8 @@ import {
|
|
|
13
13
|
import { moderateScale } from 'react-native-size-matters';
|
|
14
14
|
import SkeletonPlaceholder from 'react-native-skeleton-placeholder';
|
|
15
15
|
import { useSplashCache } from '../../hooks/useSplashCache';
|
|
16
|
-
import {
|
|
17
|
-
import type {
|
|
16
|
+
import { useInternalTheme } from '../../theme/hook/useInternalTheme';
|
|
17
|
+
import type { ThemeOverride } from '../../theme/themes';
|
|
18
18
|
|
|
19
19
|
interface ILogoProps {
|
|
20
20
|
width?: number;
|
|
@@ -25,7 +25,7 @@ interface ILogoProps {
|
|
|
25
25
|
containerStyle?: StyleProp<ViewStyle>;
|
|
26
26
|
aspectRatio?: number;
|
|
27
27
|
fallbackUri?: string;
|
|
28
|
-
theme?:
|
|
28
|
+
theme?: ThemeOverride;
|
|
29
29
|
isLoading?: boolean;
|
|
30
30
|
}
|
|
31
31
|
|
|
@@ -41,7 +41,7 @@ export const Logo: React.FC<ILogoProps> = ({
|
|
|
41
41
|
theme,
|
|
42
42
|
isLoading = false,
|
|
43
43
|
}) => {
|
|
44
|
-
const { theme: appliedTheme } =
|
|
44
|
+
const { theme: appliedTheme } = useInternalTheme(theme);
|
|
45
45
|
|
|
46
46
|
const {
|
|
47
47
|
data: { logoPath },
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
Keyboard,
|
|
13
13
|
type ListRenderItem,
|
|
14
14
|
} from 'react-native';
|
|
15
|
-
import {
|
|
15
|
+
import { useInternalTheme } from '../../theme/hook/useInternalTheme';
|
|
16
16
|
import InputTwo from '../Input/InputTwo';
|
|
17
17
|
import { LucideSearch, XCircle } from 'lucide-react-native';
|
|
18
18
|
import { Text } from '../Text';
|
|
@@ -28,7 +28,7 @@ import type {
|
|
|
28
28
|
ISectionItem,
|
|
29
29
|
MoreFetchData,
|
|
30
30
|
} from '../../types';
|
|
31
|
-
import type {
|
|
31
|
+
import type { ThemeOverride } from '../../theme/themes';
|
|
32
32
|
import { useRecentSearchesStore } from '../../store/RecentSearchesStore';
|
|
33
33
|
import RecentSearchesSection from './components/RecentSearchesSection';
|
|
34
34
|
import Cards from '../Content/Card';
|
|
@@ -62,7 +62,7 @@ export type SearchOneProps = {
|
|
|
62
62
|
noResultsText?: string;
|
|
63
63
|
recommendedContentCardStyles?: RecommendedCardStyles;
|
|
64
64
|
skeletonConfig?: SearchCardSkeletonConfig;
|
|
65
|
-
theme?:
|
|
65
|
+
theme?: ThemeOverride;
|
|
66
66
|
recommendedContent?: ISectionItem | null;
|
|
67
67
|
};
|
|
68
68
|
|
|
@@ -80,7 +80,7 @@ const SearchBar: React.FC<SearchOneProps> = ({
|
|
|
80
80
|
theme,
|
|
81
81
|
recommendedContent,
|
|
82
82
|
}) => {
|
|
83
|
-
const { theme: appliedTheme } =
|
|
83
|
+
const { theme: appliedTheme } = useInternalTheme(theme);
|
|
84
84
|
const {
|
|
85
85
|
recentSearches,
|
|
86
86
|
addSearchTerm,
|
|
@@ -172,7 +172,7 @@ const SearchBar: React.FC<SearchOneProps> = ({
|
|
|
172
172
|
type={recommendedContent.type}
|
|
173
173
|
data={recommendedContent.content}
|
|
174
174
|
isLoading={isLoading}
|
|
175
|
-
theme={
|
|
175
|
+
theme={theme}
|
|
176
176
|
onPressItem={(item) => events?.onPressRecommendedItem?.({ item })}
|
|
177
177
|
onPressMore={events?.onPressRecommendedMore}
|
|
178
178
|
moreFetchData={events?.moreFetchDataRecommended}
|
|
@@ -184,13 +184,14 @@ const SearchBar: React.FC<SearchOneProps> = ({
|
|
|
184
184
|
}, [
|
|
185
185
|
shouldShowFooter,
|
|
186
186
|
showRecent,
|
|
187
|
-
recommendedContent,
|
|
188
187
|
recentSearches,
|
|
189
|
-
|
|
190
|
-
clearSearches,
|
|
188
|
+
isLoading,
|
|
191
189
|
handleTyping,
|
|
190
|
+
clearSearches,
|
|
191
|
+
appliedTheme,
|
|
192
|
+
recommendedContent,
|
|
193
|
+
theme,
|
|
192
194
|
events,
|
|
193
|
-
isLoading,
|
|
194
195
|
recommendedContentCardStyles,
|
|
195
196
|
]);
|
|
196
197
|
|
|
@@ -9,8 +9,8 @@ import SkeletonPlaceholder from 'react-native-skeleton-placeholder';
|
|
|
9
9
|
import FastImage from 'react-native-fast-image';
|
|
10
10
|
import { scale, verticalScale, moderateScale } from 'react-native-size-matters';
|
|
11
11
|
|
|
12
|
-
import {
|
|
13
|
-
import type {
|
|
12
|
+
import { useInternalTheme } from '../../../theme/hook/useInternalTheme';
|
|
13
|
+
import type { ThemeOverride } from '../../../theme/themes';
|
|
14
14
|
|
|
15
15
|
import { ThumbnailCard } from '../../Content/Card/components/ThumbnailCard';
|
|
16
16
|
import { Text } from '../../Text';
|
|
@@ -34,7 +34,7 @@ export type SearchCardProps = {
|
|
|
34
34
|
category?: string;
|
|
35
35
|
isLoading?: boolean;
|
|
36
36
|
onPress?: () => void;
|
|
37
|
-
theme?:
|
|
37
|
+
theme?: ThemeOverride;
|
|
38
38
|
skeletonConfig?: SearchCardSkeletonConfig;
|
|
39
39
|
};
|
|
40
40
|
|
|
@@ -51,7 +51,7 @@ const SearchCard: React.FC<SearchCardProps> = ({
|
|
|
51
51
|
theme,
|
|
52
52
|
skeletonConfig,
|
|
53
53
|
}) => {
|
|
54
|
-
const { theme: appliedTheme } =
|
|
54
|
+
const { theme: appliedTheme } = useInternalTheme(theme);
|
|
55
55
|
const {
|
|
56
56
|
colors: {
|
|
57
57
|
textPrimary,
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
type TextStyle,
|
|
21
21
|
} from 'react-native';
|
|
22
22
|
import SkeletonPlaceholder from 'react-native-skeleton-placeholder';
|
|
23
|
-
import {
|
|
23
|
+
import { useInternalTheme } from '../../theme/hook/useInternalTheme';
|
|
24
24
|
import DeviceInfo from 'react-native-device-info';
|
|
25
25
|
import AppHeader from '../Headers/AppHeader';
|
|
26
26
|
import { scale, verticalScale, moderateScale } from 'react-native-size-matters';
|
|
@@ -30,7 +30,7 @@ import UserSection, {
|
|
|
30
30
|
} from '../User/components/UserSection';
|
|
31
31
|
import { Text } from '../Text';
|
|
32
32
|
import { useSafeAreaInsets } from 'react-native-safe-area-context';
|
|
33
|
-
import type {
|
|
33
|
+
import type { ThemeOverride } from '../../theme/themes';
|
|
34
34
|
import { RFValue } from 'react-native-responsive-fontsize';
|
|
35
35
|
|
|
36
36
|
// ✅ Types
|
|
@@ -64,7 +64,7 @@ export type AppSettingsProps = {
|
|
|
64
64
|
titleAlign?: 'left' | 'center';
|
|
65
65
|
userInfo?: UserInfo;
|
|
66
66
|
menuItems: MenuItem[];
|
|
67
|
-
theme?:
|
|
67
|
+
theme?: ThemeOverride;
|
|
68
68
|
isLoading?: boolean;
|
|
69
69
|
versionText?: string;
|
|
70
70
|
onBackPress?: () => void;
|
|
@@ -106,7 +106,7 @@ export const AppSettings: FC<AppSettingsProps> = ({
|
|
|
106
106
|
userInfoTextStyle = {},
|
|
107
107
|
menuItemStyle = {},
|
|
108
108
|
}) => {
|
|
109
|
-
const { theme: appliedTheme } =
|
|
109
|
+
const { theme: appliedTheme } = useInternalTheme(theme);
|
|
110
110
|
const insets = useSafeAreaInsets();
|
|
111
111
|
// ✅ State for toggle values
|
|
112
112
|
const [toggleStates, setToggleStates] = useState<Record<string, boolean>>(
|
|
@@ -242,7 +242,7 @@ export const AppSettings: FC<AppSettingsProps> = ({
|
|
|
242
242
|
title={title || 'Settings'}
|
|
243
243
|
titleAlign={titleAlign}
|
|
244
244
|
onBackPress={onBackPress}
|
|
245
|
-
theme={
|
|
245
|
+
theme={theme}
|
|
246
246
|
/>
|
|
247
247
|
))}
|
|
248
248
|
<ScrollView
|
|
@@ -255,7 +255,7 @@ export const AppSettings: FC<AppSettingsProps> = ({
|
|
|
255
255
|
>
|
|
256
256
|
{userInfo && (
|
|
257
257
|
<UserSection
|
|
258
|
-
theme={
|
|
258
|
+
theme={theme}
|
|
259
259
|
userInfo={userInfo}
|
|
260
260
|
avatarComponent={avatarComponent}
|
|
261
261
|
isLoading={isLoading}
|
|
@@ -17,9 +17,9 @@ import SkeletonPlaceholder from 'react-native-skeleton-placeholder';
|
|
|
17
17
|
import Animated, { FadeIn, FadeOut } from 'react-native-reanimated';
|
|
18
18
|
import { Text } from '../Text';
|
|
19
19
|
import AppHeader from '../Headers/AppHeader';
|
|
20
|
-
import {
|
|
20
|
+
import { useInternalTheme } from '../../theme/hook/useInternalTheme';
|
|
21
21
|
import Display from '../../utils/Display';
|
|
22
|
-
import type {
|
|
22
|
+
import type { ThemeOverride } from '../../theme/themes';
|
|
23
23
|
import { RFValue } from 'react-native-responsive-fontsize';
|
|
24
24
|
|
|
25
25
|
export type Plan = {
|
|
@@ -33,7 +33,7 @@ export type Plan = {
|
|
|
33
33
|
};
|
|
34
34
|
|
|
35
35
|
type SubscriptionSliderOneProps = {
|
|
36
|
-
theme?:
|
|
36
|
+
theme?: ThemeOverride;
|
|
37
37
|
headerTitleAlign?: 'center' | 'left';
|
|
38
38
|
subscribeButtonText?: string;
|
|
39
39
|
onSubscribe?: (plan: Plan) => void;
|
|
@@ -69,7 +69,7 @@ const SubscriptionSliderOne = ({
|
|
|
69
69
|
footer,
|
|
70
70
|
extraContentText,
|
|
71
71
|
}: SubscriptionSliderOneProps) => {
|
|
72
|
-
const { theme: appliedTheme } =
|
|
72
|
+
const { theme: appliedTheme } = useInternalTheme(theme);
|
|
73
73
|
const colors = appliedTheme.colors;
|
|
74
74
|
const parsePrice = (price: string) =>
|
|
75
75
|
parseFloat(price.replace(/[^\d.]/g, '')) || 0;
|
|
@@ -125,12 +125,9 @@ const SubscriptionSliderOne = ({
|
|
|
125
125
|
>
|
|
126
126
|
{item?.isPopular && (
|
|
127
127
|
<View
|
|
128
|
-
style={[
|
|
129
|
-
styles.popularBadge,
|
|
130
|
-
{ backgroundColor: colors.onBackground },
|
|
131
|
-
]}
|
|
128
|
+
style={[styles.popularBadge, { backgroundColor: colors.button }]}
|
|
132
129
|
>
|
|
133
|
-
<Text style={[styles.popularText, { color: colors.
|
|
130
|
+
<Text style={[styles.popularText, { color: colors.buttonText }]}>
|
|
134
131
|
POPULAR
|
|
135
132
|
</Text>
|
|
136
133
|
</View>
|
|
@@ -164,9 +161,11 @@ const SubscriptionSliderOne = ({
|
|
|
164
161
|
disabled={subscribeLoadingId === item.id}
|
|
165
162
|
>
|
|
166
163
|
{subscribeLoadingId === item.id ? (
|
|
167
|
-
<ActivityIndicator size="small" color={colors.
|
|
164
|
+
<ActivityIndicator size="small" color={colors.buttonText} />
|
|
168
165
|
) : (
|
|
169
|
-
<Text
|
|
166
|
+
<Text
|
|
167
|
+
style={[styles.subscribeText, { color: colors.buttonText }]}
|
|
168
|
+
>
|
|
170
169
|
{subscribeButtonText}
|
|
171
170
|
</Text>
|
|
172
171
|
)}
|
|
@@ -175,11 +174,9 @@ const SubscriptionSliderOne = ({
|
|
|
175
174
|
</View>
|
|
176
175
|
),
|
|
177
176
|
[
|
|
178
|
-
colors.black,
|
|
179
177
|
colors.button,
|
|
178
|
+
colors.buttonText,
|
|
180
179
|
colors.cardGradient,
|
|
181
|
-
colors.onBackground,
|
|
182
|
-
colors.onSecondary,
|
|
183
180
|
colors.primary,
|
|
184
181
|
colors.white,
|
|
185
182
|
onSubscribe,
|
|
@@ -194,10 +191,12 @@ const SubscriptionSliderOne = ({
|
|
|
194
191
|
title={header.topTitle}
|
|
195
192
|
onBackPress={onBackPress}
|
|
196
193
|
titleAlign={header.topTitleAlign}
|
|
197
|
-
theme={
|
|
194
|
+
theme={theme}
|
|
198
195
|
/>
|
|
199
196
|
<View style={styles.content}>
|
|
200
|
-
<Text style={[styles.heading]}
|
|
197
|
+
<Text style={[styles.heading]} color={colors.textPrimary}>
|
|
198
|
+
{header.title}
|
|
199
|
+
</Text>
|
|
201
200
|
<Text style={[styles.subText, { color: colors.onSurfaceVariant }]}>
|
|
202
201
|
{header.subTitle}
|
|
203
202
|
</Text>
|
|
@@ -7,9 +7,9 @@ import React, { useState } from 'react';
|
|
|
7
7
|
import { View, Pressable, Platform, StyleSheet } from 'react-native';
|
|
8
8
|
import { createBottomTabNavigator } from '@react-navigation/bottom-tabs';
|
|
9
9
|
import { scale } from 'react-native-size-matters';
|
|
10
|
-
import {
|
|
10
|
+
import { useInternalTheme } from '../../theme/hook/useInternalTheme';
|
|
11
11
|
import { Text } from '../Text';
|
|
12
|
-
import type {
|
|
12
|
+
import type { ITheme, ThemeOverride } from '../../theme/themes';
|
|
13
13
|
import { RFValue } from 'react-native-responsive-fontsize';
|
|
14
14
|
|
|
15
15
|
type ITab = {
|
|
@@ -26,7 +26,7 @@ type ITab = {
|
|
|
26
26
|
export type TabBarOneProps = {
|
|
27
27
|
tabs: ITab[];
|
|
28
28
|
onTabPress?: (key: string) => void;
|
|
29
|
-
theme?:
|
|
29
|
+
theme?: ThemeOverride;
|
|
30
30
|
renderIcon?: ({
|
|
31
31
|
icon,
|
|
32
32
|
color,
|
|
@@ -44,6 +44,7 @@ type TabBarButtonProps = {
|
|
|
44
44
|
tab: ITab;
|
|
45
45
|
isActive: boolean;
|
|
46
46
|
appliedTheme: ITheme;
|
|
47
|
+
isDarkMode: boolean;
|
|
47
48
|
setActiveTab: (key: string) => void;
|
|
48
49
|
onTabPress?: (key: string) => void;
|
|
49
50
|
renderIcon?: ({
|
|
@@ -62,6 +63,7 @@ const TabBarButton: React.FC<TabBarButtonProps> = ({
|
|
|
62
63
|
tab,
|
|
63
64
|
isActive,
|
|
64
65
|
appliedTheme,
|
|
66
|
+
isDarkMode,
|
|
65
67
|
setActiveTab,
|
|
66
68
|
onTabPress,
|
|
67
69
|
renderIcon,
|
|
@@ -87,7 +89,7 @@ const TabBarButton: React.FC<TabBarButtonProps> = ({
|
|
|
87
89
|
onTabPress?.(tab.key);
|
|
88
90
|
}}
|
|
89
91
|
android_ripple={{
|
|
90
|
-
color:
|
|
92
|
+
color: isDarkMode
|
|
91
93
|
? 'rgba(255, 255, 255, 0.12)'
|
|
92
94
|
: 'rgba(0, 0, 0, 0.08)',
|
|
93
95
|
borderless: true,
|
|
@@ -107,7 +109,7 @@ const TabBarButton: React.FC<TabBarButtonProps> = ({
|
|
|
107
109
|
};
|
|
108
110
|
|
|
109
111
|
const TabBarOne = ({ tabs, theme, onTabPress, renderIcon }: TabBarOneProps) => {
|
|
110
|
-
const { theme: appliedTheme } =
|
|
112
|
+
const { theme: appliedTheme, isDarkMode } = useInternalTheme(theme);
|
|
111
113
|
const [activeTab, setActiveTab] = useState(tabs[0]?.key);
|
|
112
114
|
|
|
113
115
|
return (
|
|
@@ -128,7 +130,7 @@ const TabBarOne = ({ tabs, theme, onTabPress, renderIcon }: TabBarOneProps) => {
|
|
|
128
130
|
position: 'absolute',
|
|
129
131
|
bottom: 0,
|
|
130
132
|
height: scale(80),
|
|
131
|
-
backgroundColor: appliedTheme.colors.background
|
|
133
|
+
backgroundColor: appliedTheme.colors.background,
|
|
132
134
|
borderTopColor: appliedTheme.colors.border,
|
|
133
135
|
borderTopWidth: 0.5,
|
|
134
136
|
paddingBottom: Platform.OS === 'ios' ? scale(28) : scale(18),
|
|
@@ -149,6 +151,7 @@ const TabBarOne = ({ tabs, theme, onTabPress, renderIcon }: TabBarOneProps) => {
|
|
|
149
151
|
tab,
|
|
150
152
|
isActive: tab.key === activeTab,
|
|
151
153
|
appliedTheme: appliedTheme,
|
|
154
|
+
isDarkMode,
|
|
152
155
|
setActiveTab: setActiveTab,
|
|
153
156
|
onTabPress: onTabPress,
|
|
154
157
|
renderIcon: renderIcon,
|
|
@@ -164,6 +167,7 @@ type TabBarButtonWrapperProps = {
|
|
|
164
167
|
onPress?: (e: any) => void;
|
|
165
168
|
tab: ITab;
|
|
166
169
|
isActive: boolean;
|
|
170
|
+
isDarkMode: boolean;
|
|
167
171
|
appliedTheme: ITheme;
|
|
168
172
|
setActiveTab: (key: string) => void;
|
|
169
173
|
onTabPress?: (key: string) => void;
|
|
@@ -11,8 +11,8 @@ import {
|
|
|
11
11
|
} from '@react-navigation/bottom-tabs';
|
|
12
12
|
import { scale } from 'react-native-size-matters';
|
|
13
13
|
|
|
14
|
-
import type {
|
|
15
|
-
import {
|
|
14
|
+
import type { ITheme, ThemeOverride } from '../../theme/themes';
|
|
15
|
+
import { useInternalTheme } from '../../theme/hook/useInternalTheme';
|
|
16
16
|
|
|
17
17
|
export interface ITab {
|
|
18
18
|
key: string;
|
|
@@ -27,7 +27,7 @@ export interface ITab {
|
|
|
27
27
|
|
|
28
28
|
export interface TabBarThreeProps {
|
|
29
29
|
tabs: ITab[];
|
|
30
|
-
theme?:
|
|
30
|
+
theme?: ThemeOverride;
|
|
31
31
|
onTabPress?: (key: string) => void;
|
|
32
32
|
}
|
|
33
33
|
|
|
@@ -122,7 +122,7 @@ const TabBarThree: React.FC<TabBarThreeProps> = ({
|
|
|
122
122
|
theme,
|
|
123
123
|
onTabPress,
|
|
124
124
|
}) => {
|
|
125
|
-
const { theme: appliedTheme } =
|
|
125
|
+
const { theme: appliedTheme } = useInternalTheme(theme);
|
|
126
126
|
|
|
127
127
|
return (
|
|
128
128
|
<Tab.Navigator
|