@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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @author Naresh Dhamu
|
|
3
|
-
* @lastModified
|
|
3
|
+
* @lastModified Tue 22 Oct 2025
|
|
4
4
|
*/
|
|
5
5
|
import React, { useEffect, useRef, useState } from 'react';
|
|
6
6
|
import {
|
|
@@ -12,8 +12,8 @@ import {
|
|
|
12
12
|
Platform,
|
|
13
13
|
} from 'react-native';
|
|
14
14
|
import { moderateScale, scale, verticalScale } from 'react-native-size-matters';
|
|
15
|
-
import {
|
|
16
|
-
import { type
|
|
15
|
+
import { useInternalTheme } from '../../../theme/hook/useInternalTheme';
|
|
16
|
+
import { type ThemeOverride } from '../../../theme/themes';
|
|
17
17
|
import { Logo } from '../../Logo/Logo';
|
|
18
18
|
import { Text } from '../../Text';
|
|
19
19
|
import { BackgroundLayout } from '../../BackgroundLayout/BackgroundLayout';
|
|
@@ -21,20 +21,20 @@ import { Phone, Mail } from 'lucide-react-native';
|
|
|
21
21
|
import { Button } from '../../Button';
|
|
22
22
|
|
|
23
23
|
export interface AuthProviderProps {
|
|
24
|
-
|
|
24
|
+
logoUri: string;
|
|
25
|
+
title: string;
|
|
25
26
|
description?: string;
|
|
26
27
|
backgroundImage?: {
|
|
27
|
-
source
|
|
28
|
+
source: string | null;
|
|
28
29
|
gradientSplitBackground?: number;
|
|
29
30
|
resizeMode?: 'cover' | 'contain' | 'stretch' | 'repeat';
|
|
30
31
|
};
|
|
31
|
-
logoUri?: string;
|
|
32
32
|
text?: {
|
|
33
33
|
loginWithPhone?: string;
|
|
34
34
|
loginWithEmail?: string;
|
|
35
35
|
};
|
|
36
36
|
variant?: 'one' | 'two';
|
|
37
|
-
theme?:
|
|
37
|
+
theme?: ThemeOverride;
|
|
38
38
|
authProvider?: {
|
|
39
39
|
phone?: {
|
|
40
40
|
enabled?: boolean;
|
|
@@ -60,7 +60,7 @@ const AuthProvider: React.FC<AuthProviderProps> = ({
|
|
|
60
60
|
email: { enabled: true },
|
|
61
61
|
},
|
|
62
62
|
}) => {
|
|
63
|
-
const { theme: resolvedTheme } =
|
|
63
|
+
const { theme: resolvedTheme } = useInternalTheme(overrideTheme);
|
|
64
64
|
const { colors } = resolvedTheme;
|
|
65
65
|
|
|
66
66
|
const phoneEnabled = !!authProvider.phone?.enabled;
|
|
@@ -74,6 +74,8 @@ const AuthProvider: React.FC<AuthProviderProps> = ({
|
|
|
74
74
|
const opacityAnim = useRef(new Animated.Value(0)).current;
|
|
75
75
|
|
|
76
76
|
useEffect(() => {
|
|
77
|
+
setActiveTab(phoneEnabled ? 'phone' : 'email');
|
|
78
|
+
|
|
77
79
|
Animated.parallel([
|
|
78
80
|
Animated.timing(slideAnim, {
|
|
79
81
|
toValue: 0,
|
|
@@ -86,11 +88,7 @@ const AuthProvider: React.FC<AuthProviderProps> = ({
|
|
|
86
88
|
useNativeDriver: true,
|
|
87
89
|
}),
|
|
88
90
|
]).start();
|
|
89
|
-
}, [
|
|
90
|
-
|
|
91
|
-
useEffect(() => {
|
|
92
|
-
setActiveTab(phoneEnabled ? 'phone' : 'email');
|
|
93
|
-
}, [phoneEnabled, emailEnabled]);
|
|
91
|
+
}, [phoneEnabled, emailEnabled, slideAnim, opacityAnim]);
|
|
94
92
|
|
|
95
93
|
const triggerEvent = (type: 'phone' | 'email') => {
|
|
96
94
|
if (type === 'phone') authProvider.phone?.onPress?.();
|
|
@@ -98,126 +96,117 @@ const AuthProvider: React.FC<AuthProviderProps> = ({
|
|
|
98
96
|
};
|
|
99
97
|
|
|
100
98
|
const handlePress = (type: 'phone' | 'email') => {
|
|
101
|
-
if (
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
if (activeTab !== type) {
|
|
105
|
-
setActiveTab(type);
|
|
106
|
-
setTimeout(() => triggerEvent(type), 150);
|
|
107
|
-
} else {
|
|
108
|
-
triggerEvent(type);
|
|
109
|
-
}
|
|
99
|
+
if (activeTab !== type) setActiveTab(type);
|
|
100
|
+
setTimeout(() => triggerEvent(type), 100);
|
|
110
101
|
};
|
|
111
102
|
|
|
103
|
+
const authMethods: {
|
|
104
|
+
key: 'phone' | 'email';
|
|
105
|
+
label: string;
|
|
106
|
+
icon: React.ReactNode;
|
|
107
|
+
enabled: boolean;
|
|
108
|
+
}[] = [
|
|
109
|
+
{
|
|
110
|
+
key: 'phone',
|
|
111
|
+
label: text?.loginWithPhone || 'Phone',
|
|
112
|
+
icon: <Phone size={moderateScale(16)} />,
|
|
113
|
+
enabled: phoneEnabled,
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
key: 'email',
|
|
117
|
+
label: text?.loginWithEmail || 'Email',
|
|
118
|
+
icon: <Mail size={moderateScale(16)} />,
|
|
119
|
+
enabled: emailEnabled,
|
|
120
|
+
},
|
|
121
|
+
];
|
|
122
|
+
|
|
112
123
|
const renderButtons = () => (
|
|
113
124
|
<View style={styles.buttonContainer}>
|
|
114
|
-
{
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
{emailEnabled && (
|
|
139
|
-
<Button.Secondary
|
|
140
|
-
title={text?.loginWithEmail || 'Continue with Email'}
|
|
141
|
-
onPress={() => handlePress('email')}
|
|
142
|
-
containerStyle={{
|
|
143
|
-
backgroundColor:
|
|
144
|
-
activeTab === 'email' ? colors.button : 'transparent',
|
|
145
|
-
borderWidth: 1.2,
|
|
146
|
-
borderColor: colors.button,
|
|
147
|
-
}}
|
|
148
|
-
titleStyle={{
|
|
149
|
-
color:
|
|
150
|
-
activeTab === 'email' ? colors.buttonText : colors.textPrimary,
|
|
151
|
-
}}
|
|
152
|
-
leftIcon={
|
|
153
|
-
<Mail
|
|
154
|
-
size={moderateScale(18)}
|
|
155
|
-
color={
|
|
156
|
-
activeTab === 'email' ? colors.buttonText : colors.textPrimary
|
|
157
|
-
}
|
|
158
|
-
/>
|
|
159
|
-
}
|
|
160
|
-
/>
|
|
161
|
-
)}
|
|
125
|
+
{authMethods
|
|
126
|
+
.filter((item) => item.enabled)
|
|
127
|
+
.map((item) => (
|
|
128
|
+
<Button.Secondary
|
|
129
|
+
key={item.key}
|
|
130
|
+
containerStyle={{
|
|
131
|
+
backgroundColor:
|
|
132
|
+
activeTab === item.key ? colors.button : 'transparent',
|
|
133
|
+
borderWidth: 1.2,
|
|
134
|
+
borderColor: colors.button,
|
|
135
|
+
}}
|
|
136
|
+
titleStyle={{
|
|
137
|
+
color:
|
|
138
|
+
activeTab === item.key ? colors.buttonText : colors.textPrimary,
|
|
139
|
+
}}
|
|
140
|
+
title={`Continue with ${item.label}`}
|
|
141
|
+
onPress={() => handlePress(item.key)}
|
|
142
|
+
leftIcon={React.cloneElement(item.icon as any, {
|
|
143
|
+
color:
|
|
144
|
+
activeTab === item.key ? colors.buttonText : colors.textPrimary,
|
|
145
|
+
size: moderateScale(18),
|
|
146
|
+
})}
|
|
147
|
+
/>
|
|
148
|
+
))}
|
|
162
149
|
</View>
|
|
163
150
|
);
|
|
164
151
|
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
<
|
|
152
|
+
// Toggle render without absolute
|
|
153
|
+
const renderToggle = () => {
|
|
154
|
+
const enabledMethods = authMethods.filter((m) => m.enabled);
|
|
155
|
+
return (
|
|
156
|
+
<View
|
|
170
157
|
style={[
|
|
171
|
-
styles.
|
|
158
|
+
styles.toggleWrapper,
|
|
172
159
|
{
|
|
173
|
-
backgroundColor: colors.
|
|
174
|
-
|
|
175
|
-
left:
|
|
176
|
-
phoneEnabled && emailEnabled
|
|
177
|
-
? activeTab === 'phone'
|
|
178
|
-
? '2%'
|
|
179
|
-
: '48%'
|
|
180
|
-
: '2%',
|
|
160
|
+
backgroundColor: colors.surfaceVariant,
|
|
161
|
+
borderColor: colors.border,
|
|
181
162
|
},
|
|
182
163
|
]}
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
164
|
+
>
|
|
165
|
+
{enabledMethods.map((item) => {
|
|
166
|
+
const isActive = activeTab === item.key;
|
|
167
|
+
return (
|
|
168
|
+
<TouchableOpacity
|
|
169
|
+
key={item.key}
|
|
170
|
+
style={[
|
|
171
|
+
styles.toggleHalf,
|
|
172
|
+
{ backgroundColor: isActive ? colors.primary : 'transparent' },
|
|
173
|
+
]}
|
|
174
|
+
onPress={() => handlePress(item.key)}
|
|
175
|
+
activeOpacity={0.8}
|
|
176
|
+
>
|
|
177
|
+
<View style={styles.iconTextRow}>
|
|
178
|
+
{React.cloneElement(item.icon as any, {
|
|
179
|
+
color: isActive ? colors.buttonText : colors.textPrimary,
|
|
180
|
+
})}
|
|
181
|
+
<Text
|
|
182
|
+
style={[
|
|
183
|
+
styles.toggleText,
|
|
184
|
+
{
|
|
185
|
+
color: isActive ? colors.buttonText : colors.textPrimary,
|
|
186
|
+
},
|
|
187
|
+
]}
|
|
188
|
+
>
|
|
189
|
+
{item.label}
|
|
190
|
+
</Text>
|
|
191
|
+
</View>
|
|
192
|
+
</TouchableOpacity>
|
|
193
|
+
);
|
|
194
|
+
})}
|
|
195
|
+
</View>
|
|
196
|
+
);
|
|
197
|
+
};
|
|
204
198
|
|
|
205
199
|
return (
|
|
206
200
|
<BackgroundLayout
|
|
207
201
|
backgroundImage={backgroundImage?.source}
|
|
208
|
-
theme={
|
|
202
|
+
theme={overrideTheme}
|
|
209
203
|
gradientSplitBackground={backgroundImage?.gradientSplitBackground ?? 0.35}
|
|
210
204
|
resizeMode={backgroundImage?.resizeMode ?? 'cover'}
|
|
211
205
|
>
|
|
212
206
|
<SafeAreaView style={styles.safeArea}>
|
|
213
207
|
<View style={styles.container}>
|
|
214
208
|
<View style={styles.logoWrapper}>
|
|
215
|
-
<Logo
|
|
216
|
-
logoUri={
|
|
217
|
-
logoUri ||
|
|
218
|
-
'https://res.cloudinary.com/dcxtwwtl0/image/upload/v1759578007/Logo_y4uzsd.png'
|
|
219
|
-
}
|
|
220
|
-
/>
|
|
209
|
+
<Logo logoUri={logoUri} />
|
|
221
210
|
</View>
|
|
222
211
|
|
|
223
212
|
<View style={styles.bottomSection}>
|
|
@@ -248,40 +237,6 @@ const AuthProvider: React.FC<AuthProviderProps> = ({
|
|
|
248
237
|
);
|
|
249
238
|
};
|
|
250
239
|
|
|
251
|
-
const ToggleButton = ({
|
|
252
|
-
active,
|
|
253
|
-
icon,
|
|
254
|
-
text,
|
|
255
|
-
onPress,
|
|
256
|
-
colors,
|
|
257
|
-
}: {
|
|
258
|
-
active: boolean;
|
|
259
|
-
icon: React.ReactNode;
|
|
260
|
-
text: string;
|
|
261
|
-
onPress: () => void;
|
|
262
|
-
colors: any;
|
|
263
|
-
}) => (
|
|
264
|
-
<TouchableOpacity
|
|
265
|
-
style={styles.toggleHalf}
|
|
266
|
-
onPress={onPress}
|
|
267
|
-
activeOpacity={0.8}
|
|
268
|
-
>
|
|
269
|
-
<View style={styles.iconTextRow}>
|
|
270
|
-
{React.cloneElement(icon as any, {
|
|
271
|
-
color: active ? colors.buttonText : colors.textPrimary,
|
|
272
|
-
})}
|
|
273
|
-
<Text
|
|
274
|
-
style={[
|
|
275
|
-
styles.toggleText,
|
|
276
|
-
{ color: active ? colors.buttonText : colors.textPrimary },
|
|
277
|
-
]}
|
|
278
|
-
>
|
|
279
|
-
{text}
|
|
280
|
-
</Text>
|
|
281
|
-
</View>
|
|
282
|
-
</TouchableOpacity>
|
|
283
|
-
);
|
|
284
|
-
|
|
285
240
|
export default AuthProvider;
|
|
286
241
|
|
|
287
242
|
const styles = StyleSheet.create({
|
|
@@ -292,7 +247,6 @@ const styles = StyleSheet.create({
|
|
|
292
247
|
alignItems: 'center',
|
|
293
248
|
width: '100%',
|
|
294
249
|
paddingHorizontal: scale(18),
|
|
295
|
-
|
|
296
250
|
paddingVertical: verticalScale(20),
|
|
297
251
|
},
|
|
298
252
|
logoWrapper: {
|
|
@@ -309,6 +263,7 @@ const styles = StyleSheet.create({
|
|
|
309
263
|
fontSize: moderateScale(18),
|
|
310
264
|
fontWeight: '700',
|
|
311
265
|
textAlign: 'center',
|
|
266
|
+
marginBottom: verticalScale(12),
|
|
312
267
|
},
|
|
313
268
|
description: {
|
|
314
269
|
fontSize: moderateScale(14),
|
|
@@ -321,24 +276,19 @@ const styles = StyleSheet.create({
|
|
|
321
276
|
flexDirection: 'row',
|
|
322
277
|
height: verticalScale(48),
|
|
323
278
|
borderRadius: 50,
|
|
279
|
+
borderWidth: scale(0.5),
|
|
280
|
+
padding: scale(4),
|
|
324
281
|
overflow: 'hidden',
|
|
325
282
|
alignItems: 'center',
|
|
326
283
|
width: '100%',
|
|
327
|
-
position: 'relative',
|
|
328
284
|
},
|
|
329
285
|
toggleHalf: {
|
|
330
286
|
flex: 1,
|
|
287
|
+
borderRadius: scale(50),
|
|
288
|
+
height: '100%',
|
|
331
289
|
justifyContent: 'center',
|
|
332
290
|
alignItems: 'center',
|
|
333
|
-
zIndex: 2,
|
|
334
291
|
},
|
|
335
292
|
toggleText: { fontSize: moderateScale(14), fontWeight: '600' },
|
|
336
|
-
activeHighlight: {
|
|
337
|
-
position: 'absolute',
|
|
338
|
-
top: '7%',
|
|
339
|
-
height: '86%',
|
|
340
|
-
borderRadius: 50,
|
|
341
|
-
zIndex: 1,
|
|
342
|
-
},
|
|
343
293
|
iconTextRow: { flexDirection: 'row', alignItems: 'center', gap: scale(6) },
|
|
344
294
|
});
|
|
@@ -17,13 +17,12 @@ import { Input } from '../../Input/Input';
|
|
|
17
17
|
import { Button } from '../../Button';
|
|
18
18
|
import { BackgroundLayout } from '../../BackgroundLayout/BackgroundLayout';
|
|
19
19
|
import { Logo } from '../../Logo/Logo';
|
|
20
|
-
import { useTheme } from '../../../theme/hook/useTheme';
|
|
21
20
|
import { useKeyboard } from '../../../hooks/useKeyboard';
|
|
22
21
|
import HideKeyboard from '../../Keyboard/HideKeyboard';
|
|
23
22
|
import BackBtn from '../../Button/BackBtn';
|
|
24
23
|
import { Text } from '../../Text';
|
|
25
|
-
import type { AppTheme } from '../../../theme/themes';
|
|
26
24
|
import { RFValue } from 'react-native-responsive-fontsize';
|
|
25
|
+
import type { ThemeOverride } from '../../../theme/themes';
|
|
27
26
|
|
|
28
27
|
type FormValues = {
|
|
29
28
|
email: string;
|
|
@@ -54,7 +53,7 @@ type ForgetPasswordProps = {
|
|
|
54
53
|
resizeMode?: 'cover' | 'contain' | 'stretch' | 'repeat';
|
|
55
54
|
};
|
|
56
55
|
logoUri?: string;
|
|
57
|
-
theme?:
|
|
56
|
+
theme?: ThemeOverride;
|
|
58
57
|
loadingSubmitBtn?: boolean;
|
|
59
58
|
text?: TextConfig;
|
|
60
59
|
renderLogo?: () => React.ReactNode;
|
|
@@ -103,7 +102,6 @@ const ForgetPassword: React.FC<ForgetPasswordProps> = ({
|
|
|
103
102
|
mode: 'onChange',
|
|
104
103
|
});
|
|
105
104
|
|
|
106
|
-
const { theme: resolvedTheme } = useTheme(overrideTheme);
|
|
107
105
|
const { isKeyboardOpen } = useKeyboard();
|
|
108
106
|
const [isLoading, setIsLoading] = useState(false);
|
|
109
107
|
|
|
@@ -134,7 +132,7 @@ const ForgetPassword: React.FC<ForgetPasswordProps> = ({
|
|
|
134
132
|
return (
|
|
135
133
|
<BackgroundLayout
|
|
136
134
|
backgroundImage={backgroundImage?.source}
|
|
137
|
-
theme={
|
|
135
|
+
theme={overrideTheme}
|
|
138
136
|
gradientSplitBackground={
|
|
139
137
|
isKeyboardOpen ? (Platform.OS === 'ios' ? 0.19 : 0.14) : 0.3
|
|
140
138
|
}
|
|
@@ -149,7 +147,7 @@ const ForgetPassword: React.FC<ForgetPasswordProps> = ({
|
|
|
149
147
|
})
|
|
150
148
|
) : (
|
|
151
149
|
<BackBtn
|
|
152
|
-
theme={
|
|
150
|
+
theme={overrideTheme}
|
|
153
151
|
style={topBackBtnStyle}
|
|
154
152
|
onPress={onTopBackBtnPress}
|
|
155
153
|
/>
|
|
@@ -205,7 +203,7 @@ const ForgetPassword: React.FC<ForgetPasswordProps> = ({
|
|
|
205
203
|
errorMessage={errors.email?.message}
|
|
206
204
|
inputStyle={inputStyle}
|
|
207
205
|
containerStyle={inputContainerStyle}
|
|
208
|
-
theme={
|
|
206
|
+
theme={overrideTheme}
|
|
209
207
|
textContentType="emailAddress"
|
|
210
208
|
autoCapitalize="none"
|
|
211
209
|
keyboardType="email-address"
|
|
@@ -225,7 +223,7 @@ const ForgetPassword: React.FC<ForgetPasswordProps> = ({
|
|
|
225
223
|
<Button.Primary
|
|
226
224
|
title={text.forgetPasswordButton || 'Continue'}
|
|
227
225
|
disabled={isSubmitDisabled || !isValid}
|
|
228
|
-
theme={
|
|
226
|
+
theme={overrideTheme}
|
|
229
227
|
loading={loadingSubmitBtn || isLoading}
|
|
230
228
|
loadingText={text.loadingSubmitBtnText || 'Please wait...'}
|
|
231
229
|
onPress={handleSubmit(handleFormSubmit)}
|
|
@@ -17,12 +17,12 @@ import { Button } from '../../Button';
|
|
|
17
17
|
import { BackgroundLayout } from '../../BackgroundLayout/BackgroundLayout';
|
|
18
18
|
import { Logo } from '../../Logo/Logo';
|
|
19
19
|
import TextButton from '../../Button/TextButton';
|
|
20
|
-
import {
|
|
20
|
+
import { useInternalTheme } from '../../../theme/hook/useInternalTheme';
|
|
21
21
|
import HideKeyboard from '../../Keyboard/HideKeyboard';
|
|
22
22
|
import { useKeyboard } from '../../../hooks/useKeyboard';
|
|
23
23
|
import BackBtn from '../../Button/BackBtn';
|
|
24
24
|
import { Text } from '../../Text';
|
|
25
|
-
import type {
|
|
25
|
+
import type { ThemeOverride } from '../../../theme/themes';
|
|
26
26
|
import { RFValue } from 'react-native-responsive-fontsize';
|
|
27
27
|
|
|
28
28
|
type FormValues = {
|
|
@@ -53,7 +53,7 @@ type LoginWithEmailProps = {
|
|
|
53
53
|
logoUri?: string;
|
|
54
54
|
loadingSubmitBtn?: boolean;
|
|
55
55
|
|
|
56
|
-
theme?:
|
|
56
|
+
theme?: ThemeOverride;
|
|
57
57
|
text?: {
|
|
58
58
|
emailLabel?: string;
|
|
59
59
|
emailPlaceholder?: string;
|
|
@@ -113,7 +113,7 @@ const LoginWithEmail: React.FC<LoginWithEmailProps> = ({
|
|
|
113
113
|
renderTopBackBtn,
|
|
114
114
|
}) => {
|
|
115
115
|
const { isKeyboardOpen } = useKeyboard();
|
|
116
|
-
const { theme: resolvedTheme } =
|
|
116
|
+
const { theme: resolvedTheme } = useInternalTheme(overrideTheme);
|
|
117
117
|
const [isLoading, setIsLoading] = React.useState(false);
|
|
118
118
|
const {
|
|
119
119
|
control,
|
|
@@ -150,7 +150,7 @@ const LoginWithEmail: React.FC<LoginWithEmailProps> = ({
|
|
|
150
150
|
return (
|
|
151
151
|
<BackgroundLayout
|
|
152
152
|
backgroundImage={backgroundImage?.source}
|
|
153
|
-
theme={
|
|
153
|
+
theme={overrideTheme}
|
|
154
154
|
gradientSplitBackground={isKeyboardOpen ? 0.31 : 0.35}
|
|
155
155
|
>
|
|
156
156
|
<View style={[styles.container, containerStyle]}>
|
|
@@ -162,7 +162,7 @@ const LoginWithEmail: React.FC<LoginWithEmailProps> = ({
|
|
|
162
162
|
})
|
|
163
163
|
) : (
|
|
164
164
|
<BackBtn
|
|
165
|
-
theme={
|
|
165
|
+
theme={overrideTheme}
|
|
166
166
|
style={topBackBtnStyle}
|
|
167
167
|
onPress={onTopBackBtnPress}
|
|
168
168
|
/>
|
|
@@ -209,7 +209,7 @@ const LoginWithEmail: React.FC<LoginWithEmailProps> = ({
|
|
|
209
209
|
errorMessage={errors.email?.message}
|
|
210
210
|
inputStyle={inputStyle}
|
|
211
211
|
containerStyle={inputContainerStyle}
|
|
212
|
-
theme={
|
|
212
|
+
theme={overrideTheme}
|
|
213
213
|
textContentType="emailAddress"
|
|
214
214
|
autoCapitalize="none"
|
|
215
215
|
keyboardType="email-address"
|
|
@@ -250,7 +250,7 @@ const LoginWithEmail: React.FC<LoginWithEmailProps> = ({
|
|
|
250
250
|
spellCheck={false}
|
|
251
251
|
autoCorrect={false}
|
|
252
252
|
autoComplete="off"
|
|
253
|
-
theme={
|
|
253
|
+
theme={overrideTheme}
|
|
254
254
|
/>
|
|
255
255
|
{!isKeyboardOpen &&
|
|
256
256
|
shouldRender(renderForgotPassword || onForgotPassword) &&
|
|
@@ -283,7 +283,7 @@ const LoginWithEmail: React.FC<LoginWithEmailProps> = ({
|
|
|
283
283
|
title={text?.loginButton || 'Login'}
|
|
284
284
|
onPress={handleSubmit(handleFormSubmit)}
|
|
285
285
|
disabled={loadingSubmitBtn || !isValid || isLoading}
|
|
286
|
-
theme={
|
|
286
|
+
theme={overrideTheme}
|
|
287
287
|
titleStyle={{
|
|
288
288
|
fontSize: RFValue(14),
|
|
289
289
|
}}
|
|
@@ -12,13 +12,13 @@ import { BackgroundLayout } from '../../BackgroundLayout/BackgroundLayout';
|
|
|
12
12
|
import { Logo } from '../../Logo/Logo';
|
|
13
13
|
import { Button } from '../../Button';
|
|
14
14
|
import HideKeyboard from '../../Keyboard/HideKeyboard';
|
|
15
|
-
import {
|
|
15
|
+
import { useInternalTheme } from '../../../theme/hook/useInternalTheme';
|
|
16
16
|
import { useKeyboard } from '../../../hooks/useKeyboard';
|
|
17
17
|
import PhoneNumberInput from '../../Input/PhoneNumberInput';
|
|
18
18
|
import TextButton from '../../Button/TextButton';
|
|
19
19
|
import BackBtn from '../../Button/BackBtn';
|
|
20
20
|
import { Text } from '../../Text';
|
|
21
|
-
import type {
|
|
21
|
+
import type { ThemeOverride } from '../../../theme/themes';
|
|
22
22
|
import { RFValue } from 'react-native-responsive-fontsize';
|
|
23
23
|
|
|
24
24
|
type PhoneField = {
|
|
@@ -49,7 +49,7 @@ type LoginWithPhoneProps = {
|
|
|
49
49
|
};
|
|
50
50
|
loadingSubmitBtn?: boolean;
|
|
51
51
|
logoUri?: string;
|
|
52
|
-
theme?:
|
|
52
|
+
theme?: ThemeOverride;
|
|
53
53
|
text?: {
|
|
54
54
|
phoneLabel?: string;
|
|
55
55
|
phonePlaceholder?: string;
|
|
@@ -100,7 +100,7 @@ const LoginWithPhone: React.FC<LoginWithPhoneProps> = ({
|
|
|
100
100
|
renderTopBackBtn,
|
|
101
101
|
}) => {
|
|
102
102
|
const { isKeyboardOpen } = useKeyboard();
|
|
103
|
-
const { theme: resolvedTheme } =
|
|
103
|
+
const { theme: resolvedTheme } = useInternalTheme(overrideTheme);
|
|
104
104
|
const [isLoading, setIsLoading] = React.useState(false);
|
|
105
105
|
|
|
106
106
|
const {
|
|
@@ -181,7 +181,7 @@ const LoginWithPhone: React.FC<LoginWithPhoneProps> = ({
|
|
|
181
181
|
return (
|
|
182
182
|
<BackgroundLayout
|
|
183
183
|
backgroundImage={backgroundImage?.source}
|
|
184
|
-
theme={
|
|
184
|
+
theme={overrideTheme}
|
|
185
185
|
gradientSplitBackground={isKeyboardOpen ? 0.3 : 0.4}
|
|
186
186
|
>
|
|
187
187
|
<View
|
|
@@ -196,7 +196,7 @@ const LoginWithPhone: React.FC<LoginWithPhoneProps> = ({
|
|
|
196
196
|
})
|
|
197
197
|
) : (
|
|
198
198
|
<BackBtn
|
|
199
|
-
theme={
|
|
199
|
+
theme={overrideTheme}
|
|
200
200
|
style={topBackBtnStyle}
|
|
201
201
|
onPress={onTopBackBtnPress}
|
|
202
202
|
/>
|
|
@@ -240,7 +240,7 @@ const LoginWithPhone: React.FC<LoginWithPhoneProps> = ({
|
|
|
240
240
|
errorMessage={errors.phone?.message}
|
|
241
241
|
inputStyle={inputStyle}
|
|
242
242
|
containerStyle={inputContainerStyle}
|
|
243
|
-
theme={
|
|
243
|
+
theme={overrideTheme}
|
|
244
244
|
accessibilityLabel={`Phone input${errors.phone ? ', error' : ''}`}
|
|
245
245
|
/>
|
|
246
246
|
)}
|
|
@@ -256,7 +256,7 @@ const LoginWithPhone: React.FC<LoginWithPhoneProps> = ({
|
|
|
256
256
|
<Button.Primary
|
|
257
257
|
title={text.loginButton || DEFAULT_TEXT.loginButton}
|
|
258
258
|
disabled={loadingSubmitBtn || !isValid || isLoading}
|
|
259
|
-
theme={
|
|
259
|
+
theme={overrideTheme}
|
|
260
260
|
onPress={handleSubmit(handleFormSubmit)}
|
|
261
261
|
loadingText={
|
|
262
262
|
text.loadingSubmitBtnText ||
|
|
@@ -19,12 +19,12 @@ import { BackgroundLayout } from '../../BackgroundLayout/BackgroundLayout';
|
|
|
19
19
|
import HideKeyboard from '../../Keyboard/HideKeyboard';
|
|
20
20
|
import { useKeyboard } from '../../../hooks/useKeyboard';
|
|
21
21
|
import BackBtn from '../../Button/BackBtn';
|
|
22
|
-
import {
|
|
22
|
+
import { useInternalTheme } from '../../../theme/hook/useInternalTheme';
|
|
23
23
|
import { Logo } from '../../Logo/Logo';
|
|
24
24
|
import { Button } from '../../Button';
|
|
25
25
|
import Display from '../../../utils/Display';
|
|
26
26
|
import { Text } from '../../Text';
|
|
27
|
-
import type {
|
|
27
|
+
import type { ThemeOverride } from '../../../theme/themes';
|
|
28
28
|
import { RFValue } from 'react-native-responsive-fontsize';
|
|
29
29
|
|
|
30
30
|
type OTPProps = {
|
|
@@ -43,7 +43,7 @@ type OTPProps = {
|
|
|
43
43
|
};
|
|
44
44
|
loading?: boolean;
|
|
45
45
|
logoUri?: string;
|
|
46
|
-
theme?:
|
|
46
|
+
theme?: ThemeOverride;
|
|
47
47
|
otpDigitCount?: number;
|
|
48
48
|
keyboardType?: KeyboardTypeOptions;
|
|
49
49
|
phoneNumber?: string;
|
|
@@ -123,7 +123,7 @@ const OTP: React.FC<OTPProps> = ({
|
|
|
123
123
|
cellStyle,
|
|
124
124
|
focusCellStyle,
|
|
125
125
|
}) => {
|
|
126
|
-
const { theme: resolvedTheme } =
|
|
126
|
+
const { theme: resolvedTheme } = useInternalTheme(overrideTheme);
|
|
127
127
|
const { isKeyboardOpen } = useKeyboard();
|
|
128
128
|
const [otp, setOtp] = useState('');
|
|
129
129
|
const [isSubmitting, setIsSubmitting] = useState(false);
|
|
@@ -252,7 +252,7 @@ const OTP: React.FC<OTPProps> = ({
|
|
|
252
252
|
typeof condition === 'function' || !!condition;
|
|
253
253
|
return (
|
|
254
254
|
<BackgroundLayout
|
|
255
|
-
theme={
|
|
255
|
+
theme={overrideTheme}
|
|
256
256
|
backgroundImage={backgroundImage?.source}
|
|
257
257
|
gradientSplitBackground={isKeyboardOpen ? 0.3 : 0.4}
|
|
258
258
|
>
|
|
@@ -266,7 +266,7 @@ const OTP: React.FC<OTPProps> = ({
|
|
|
266
266
|
})
|
|
267
267
|
) : (
|
|
268
268
|
<BackBtn
|
|
269
|
-
theme={
|
|
269
|
+
theme={overrideTheme}
|
|
270
270
|
style={backBtnStyle}
|
|
271
271
|
onPress={onTopBackBtnPress}
|
|
272
272
|
/>
|
|
@@ -352,7 +352,7 @@ const OTP: React.FC<OTPProps> = ({
|
|
|
352
352
|
) : (
|
|
353
353
|
<Button.Primary
|
|
354
354
|
title={text.submitButton || DEFAULT_TEXT.submitButton}
|
|
355
|
-
theme={
|
|
355
|
+
theme={overrideTheme}
|
|
356
356
|
onPress={handleSubmit}
|
|
357
357
|
loadingText={text.loadingSubmitBtnText}
|
|
358
358
|
titleStyle={{ fontSize: RFValue(13) }}
|