@zezosoft/zezo-ott-react-native-ui-kit 1.0.4 → 1.0.6
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/assets/animations/Failed.json +2103 -0
- package/lib/module/assets/animations/Pending.json +522 -0
- package/lib/module/assets/animations/Successful.json +2289 -0
- 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 +208 -0
- package/lib/module/components/Alert/AlertDialog.js.map +1 -0
- package/lib/module/components/Alert/UAAlert.js +5 -1
- package/lib/module/components/Alert/UAAlert.js.map +1 -1
- package/lib/module/components/Alert/index.js +1 -0
- package/lib/module/components/Alert/index.js.map +1 -1
- package/lib/module/components/Auth/AuthProvider/AuthProvider.js +240 -0
- package/lib/module/components/Auth/AuthProvider/AuthProvider.js.map +1 -0
- 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 +62 -73
- package/lib/module/components/Auth/SplashScreen/SplashScreen.js.map +1 -1
- package/lib/module/components/Auth/SplashScreen/components/SplashVideo/SplashVideo.js +82 -41
- package/lib/module/components/Auth/SplashScreen/components/SplashVideo/SplashVideo.js.map +1 -1
- package/lib/module/components/Auth/index.js +2 -0
- package/lib/module/components/Auth/index.js.map +1 -1
- package/lib/module/components/BackgroundLayout/BackgroundLayout.js +8 -4
- 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 +91 -0
- package/lib/module/components/Button/SecondaryBtn.js.map +1 -0
- package/lib/module/components/Button/TextButton.js +2 -2
- package/lib/module/components/Button/TextButton.js.map +1 -1
- package/lib/module/components/Button/index.js +2 -0
- package/lib/module/components/Button/index.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 +11 -6
- package/lib/module/components/Content/Card/NowWatching/NowWatching.js.map +1 -1
- package/lib/module/components/Content/Card/Sliders/Styles/One.js +9 -6
- package/lib/module/components/Content/Card/Sliders/Styles/One.js.map +1 -1
- package/lib/module/components/Content/Card/Sliders/Styles/Two.js +7 -3
- package/lib/module/components/Content/Card/Sliders/Styles/Two.js.map +1 -1
- package/lib/module/components/Content/Card/Styles/Five.js +5 -3
- package/lib/module/components/Content/Card/Styles/Five.js.map +1 -1
- package/lib/module/components/Content/Card/Styles/Four.js +5 -3
- package/lib/module/components/Content/Card/Styles/Four.js.map +1 -1
- package/lib/module/components/Content/Card/Styles/One.js +11 -6
- package/lib/module/components/Content/Card/Styles/One.js.map +1 -1
- package/lib/module/components/Content/Card/Styles/RotateInOut.js +5 -3
- package/lib/module/components/Content/Card/Styles/RotateInOut.js.map +1 -1
- package/lib/module/components/Content/Card/Styles/Six.js +9 -4
- package/lib/module/components/Content/Card/Styles/Six.js.map +1 -1
- package/lib/module/components/Content/Card/Styles/Three.js +5 -3
- package/lib/module/components/Content/Card/Styles/Three.js.map +1 -1
- package/lib/module/components/Content/Card/Styles/TopTen.js +5 -3
- package/lib/module/components/Content/Card/Styles/TopTen.js.map +1 -1
- package/lib/module/components/Content/Card/Styles/Two.js +5 -3
- package/lib/module/components/Content/Card/Styles/Two.js.map +1 -1
- package/lib/module/components/Content/Card/components/CardPoster.js +13 -28
- package/lib/module/components/Content/Card/components/CardPoster.js.map +1 -1
- package/lib/module/components/Content/Card/components/NoContentFallback.js +2 -2
- package/lib/module/components/Content/Card/components/NoContentFallback.js.map +1 -1
- package/lib/module/components/Content/Card/components/RentOrBuyIcon.js +116 -0
- package/lib/module/components/Content/Card/components/RentOrBuyIcon.js.map +1 -0
- 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/Card/components/ThumbnailCard.js +1 -2
- package/lib/module/components/Content/Card/components/ThumbnailCard.js.map +1 -1
- package/lib/module/components/ContentView/ContentView.js +6 -5
- package/lib/module/components/ContentView/ContentView.js.map +1 -1
- package/lib/module/components/ContentView/MoreContentList.js +4 -2
- package/lib/module/components/ContentView/MoreContentList.js.map +1 -1
- package/lib/module/components/ContentView/components/EpisodeCard.js +21 -16
- package/lib/module/components/ContentView/components/EpisodeCard.js.map +1 -1
- package/lib/module/components/ContentView/components/HeroBanner.js +29 -8
- package/lib/module/components/ContentView/components/HeroBanner.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/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 +2 -2
- 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 +7 -7
- package/lib/module/components/Logo/Logo.js.map +1 -1
- package/lib/module/components/Reels/ReelsSeries/Model/Synopsis.js +0 -4
- package/lib/module/components/Reels/ReelsSeries/Model/Synopsis.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 +11 -10
- 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 +3 -2
- 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 +17 -20
- package/lib/module/components/User/ProfileUpdate/ProfileUpdate.js.map +1 -1
- package/lib/module/components/User/WatchHistory/WatchHistory.js +4 -3
- package/lib/module/components/User/WatchHistory/WatchHistory.js.map +1 -1
- package/lib/module/components/User/WatchLater/WatchLater.js +6 -3
- package/lib/module/components/User/WatchLater/WatchLater.js.map +1 -1
- package/lib/module/components/User/components/UserAvatar.js +41 -11
- 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/common/AppStatusBar.js +41 -0
- package/lib/module/components/common/AppStatusBar.js.map +1 -0
- package/lib/module/components/layout/SafeAreaWrapper.js +2 -2
- package/lib/module/components/layout/SafeAreaWrapper.js.map +1 -1
- package/lib/module/hooks/useSplashCache.js +117 -0
- package/lib/module/hooks/useSplashCache.js.map +1 -0
- package/lib/module/store/RecentSearchesStore.js +0 -1
- package/lib/module/store/RecentSearchesStore.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 +39 -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 +46 -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 +6 -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 +18 -0
- package/lib/typescript/src/components/Alert/AlertDialog.d.ts.map +1 -0
- 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/Alert/index.d.ts +1 -0
- package/lib/typescript/src/components/Alert/index.d.ts.map +1 -1
- package/lib/typescript/src/components/Auth/AuthProvider/AuthProvider.d.ts +35 -0
- package/lib/typescript/src/components/Auth/AuthProvider/AuthProvider.d.ts.map +1 -0
- 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 +6 -5
- 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 +1 -1
- package/lib/typescript/src/components/Auth/SplashScreen/components/SplashVideo/SplashVideo.d.ts.map +1 -1
- package/lib/typescript/src/components/Auth/index.d.ts +7 -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 +21 -0
- package/lib/typescript/src/components/Button/SecondaryBtn.d.ts.map +1 -0
- package/lib/typescript/src/components/Button/index.d.ts +13 -2
- package/lib/typescript/src/components/Button/index.d.ts.map +1 -1
- 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 -2
- package/lib/typescript/src/components/Content/Card/components/CardPoster.d.ts.map +1 -1
- package/lib/typescript/src/components/Content/Card/components/NoContentFallback.d.ts +2 -2
- package/lib/typescript/src/components/Content/Card/components/NoContentFallback.d.ts.map +1 -1
- package/lib/typescript/src/components/Content/Card/components/RentOrBuyIcon.d.ts +14 -0
- package/lib/typescript/src/components/Content/Card/components/RentOrBuyIcon.d.ts.map +1 -0
- 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 +2 -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.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/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/TrailerButton.d.ts +2 -2
- package/lib/typescript/src/components/ContentView/components/TrailerButton.d.ts.map +1 -1
- 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/Reels/ReelsSeries/Model/Synopsis.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 +2 -0
- 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 +4 -4
- 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 +6 -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/common/AppStatusBar.d.ts +17 -0
- package/lib/typescript/src/components/common/AppStatusBar.d.ts.map +1 -0
- 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/hooks/useSplashCache.d.ts +22 -0
- package/lib/typescript/src/hooks/useSplashCache.d.ts.map +1 -0
- package/lib/typescript/src/store/RecentSearchesStore.d.ts.map +1 -1
- package/lib/typescript/src/store/themeStore.d.ts +7 -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 +3 -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 +14 -2
- package/lib/typescript/src/theme/themes.d.ts.map +1 -1
- package/lib/typescript/src/types/content/content-view.types.d.ts +4 -3
- package/lib/typescript/src/types/content/content-view.types.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/assets/animations/Failed.json +2103 -0
- package/src/assets/animations/Pending.json +522 -0
- package/src/assets/animations/Successful.json +2289 -0
- package/src/components/Account/Account.tsx +6 -6
- package/src/components/Alert/AlertDialog.tsx +247 -0
- package/src/components/Alert/UAAlert.tsx +5 -3
- package/src/components/Alert/index.ts +1 -0
- package/src/components/Auth/AuthProvider/AuthProvider.tsx +294 -0
- 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 +87 -91
- package/src/components/Auth/SplashScreen/components/SplashVideo/SplashVideo.tsx +90 -40
- package/src/components/Auth/index.ts +2 -0
- package/src/components/BackgroundLayout/BackgroundLayout.tsx +8 -6
- 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 +116 -0
- package/src/components/Button/TextButton.tsx +2 -2
- package/src/components/Button/index.ts +2 -0
- package/src/components/Content/Card/Category/Category.tsx +5 -5
- package/src/components/Content/Card/NowWatching/NowWatching.tsx +10 -5
- package/src/components/Content/Card/Sliders/Styles/One.tsx +10 -5
- package/src/components/Content/Card/Sliders/Styles/Two.tsx +9 -4
- package/src/components/Content/Card/Styles/Five.tsx +6 -5
- package/src/components/Content/Card/Styles/Four.tsx +6 -5
- package/src/components/Content/Card/Styles/One.tsx +12 -6
- package/src/components/Content/Card/Styles/RotateInOut.tsx +6 -5
- package/src/components/Content/Card/Styles/Six.tsx +10 -5
- package/src/components/Content/Card/Styles/Three.tsx +6 -5
- package/src/components/Content/Card/Styles/TopTen.tsx +6 -5
- package/src/components/Content/Card/Styles/Two.tsx +6 -5
- package/src/components/Content/Card/components/CardPoster.tsx +24 -51
- package/src/components/Content/Card/components/NoContentFallback.tsx +4 -4
- package/src/components/Content/Card/components/RentOrBuyIcon.tsx +109 -0
- package/src/components/Content/Card/components/ShowAllButton.tsx +6 -1
- package/src/components/Content/Card/components/ThumbnailCard.tsx +1 -2
- package/src/components/Content/Content.tsx +2 -2
- package/src/components/Content/Sections.tsx +2 -2
- package/src/components/ContentView/ContentView.tsx +6 -5
- package/src/components/ContentView/MoreContentList.tsx +6 -4
- package/src/components/ContentView/components/EpisodeCard.tsx +25 -17
- package/src/components/ContentView/components/HeroBanner.tsx +26 -3
- package/src/components/ContentView/components/TrailerButton.tsx +6 -5
- 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 +4 -4
- package/src/components/Input/InputTwo.tsx +4 -4
- package/src/components/Input/PhoneNumberInput.tsx +5 -5
- package/src/components/Logo/Logo.tsx +9 -11
- package/src/components/Reels/ReelsSeries/Model/Synopsis.tsx +1 -8
- 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 +19 -18
- 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 +5 -2
- package/src/components/User/DeviceSessions/DeviceSessions.tsx +6 -5
- package/src/components/User/ProfileUpdate/ProfileUpdate.tsx +20 -26
- package/src/components/User/WatchHistory/WatchHistory.tsx +6 -5
- package/src/components/User/WatchLater/WatchLater.tsx +8 -6
- package/src/components/User/components/UserAvatar.tsx +46 -7
- package/src/components/User/components/UserSection.tsx +5 -5
- package/src/components/common/AppStatusBar.tsx +51 -0
- package/src/components/layout/SafeAreaWrapper.tsx +4 -4
- package/src/hooks/useSplashCache.ts +166 -0
- package/src/store/RecentSearchesStore.ts +0 -1
- package/src/store/splashStore.ts +5 -5
- package/src/store/themeStore.ts +53 -0
- package/src/theme/ThemeProvider.tsx +40 -102
- package/src/theme/hook/index.ts +2 -0
- package/src/theme/hook/useInternalTheme.ts +61 -0
- package/src/theme/hook/useThemeStatusBar.ts +33 -0
- package/src/theme/index.ts +1 -7
- package/src/theme/themes.ts +20 -6
- package/src/types/content/content-view.types.ts +4 -3
- package/lib/module/hooks/useInitSplashCacheSync.js +0 -116
- package/lib/module/hooks/useInitSplashCacheSync.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/hooks/useInitSplashCacheSync.d.ts +0 -22
- package/lib/typescript/src/hooks/useInitSplashCacheSync.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/hooks/useInitSplashCacheSync.ts +0 -174
- package/src/theme/hook/useTheme.ts +0 -45
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
|
|
8
8
|
import { View, StyleSheet, ScrollView, TouchableOpacity } from 'react-native';
|
|
9
9
|
import { ChevronRight, Trash2 } from 'lucide-react-native';
|
|
10
|
-
import {
|
|
10
|
+
import { useInternalTheme } from "../../theme/hook/useInternalTheme.js";
|
|
11
11
|
import { moderateScale, scale, verticalScale } from 'react-native-size-matters';
|
|
12
12
|
import AppHeader from "../Headers/AppHeader.js";
|
|
13
13
|
import UserSection from "../User/components/UserSection.js";
|
|
@@ -47,7 +47,7 @@ export const Account = ({
|
|
|
47
47
|
}) => {
|
|
48
48
|
const {
|
|
49
49
|
theme: appliedTheme
|
|
50
|
-
} =
|
|
50
|
+
} = useInternalTheme(theme);
|
|
51
51
|
const insets = useSafeAreaInsets();
|
|
52
52
|
return /*#__PURE__*/_jsxs(View, {
|
|
53
53
|
style: [styles.container, {
|
|
@@ -56,7 +56,7 @@ export const Account = ({
|
|
|
56
56
|
children: [/*#__PURE__*/_jsx(AppHeader, {
|
|
57
57
|
onBackPress: onBackPress,
|
|
58
58
|
title: title,
|
|
59
|
-
theme:
|
|
59
|
+
theme: theme
|
|
60
60
|
}), /*#__PURE__*/_jsxs(ScrollView, {
|
|
61
61
|
contentContainerStyle: [styles.content, {
|
|
62
62
|
paddingBottom: insets.bottom + verticalScale(40)
|
|
@@ -64,7 +64,7 @@ export const Account = ({
|
|
|
64
64
|
showsVerticalScrollIndicator: false,
|
|
65
65
|
keyboardShouldPersistTaps: "handled",
|
|
66
66
|
children: [/*#__PURE__*/_jsx(UserSection, {
|
|
67
|
-
theme:
|
|
67
|
+
theme: theme,
|
|
68
68
|
userInfo: userInfo,
|
|
69
69
|
avatarComponent: avatarComponent,
|
|
70
70
|
isLoading: isLoading,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["View","StyleSheet","ScrollView","TouchableOpacity","ChevronRight","Trash2","
|
|
1
|
+
{"version":3,"names":["View","StyleSheet","ScrollView","TouchableOpacity","ChevronRight","Trash2","useInternalTheme","moderateScale","scale","verticalScale","AppHeader","UserSection","TextButton","Text","useSafeAreaInsets","RFValue","cloneElement","isValidElement","memo","jsx","_jsx","jsxs","_jsxs","isInvalidText","val","trim","includes","renderIconWithColor","icon","color","getValidSectionItems","items","filter","item","type","title","subtitle","Account","userInfo","renderUserInfo","sections","onBackPress","theme","isLoading","avatarComponent","userInfoTextStyle","skeletonProps","helpText","clickableText","deleteAccountText","deleteAccountIcon","onHelpPress","onDeleteAccountPress","appliedTheme","insets","style","styles","container","backgroundColor","colors","background","children","contentContainerStyle","content","paddingBottom","bottom","showsVerticalScrollIndicator","keyboardShouldPersistTaps","map","sectionTitle","validItems","length","sectionBlock","textSecondary","index","CardItemView","MenuItemView","bottomBlock","onPress","fontWeight","error","underline","leftIcon","size","marginRight","helpSubContainer","primary","card","surfaceDisabled","cardTitle","textPrimary","cardSub","label","showRightIcon","activeOpacity","row","borderColor","border","leftRow","menuIcon","rowText","create","flex","paddingHorizontal","marginBottom","fontSize","textTransform","borderRadius","padding","paddingVertical","borderWidth","flexDirection","alignItems","justifyContent","flexShrink","marginTop","gap"],"sourceRoot":"../../../../src","sources":["components/Account/Account.tsx"],"mappings":";;AAAA;AACA;AACA;AACA;;AAEA,SACEA,IAAI,EACJC,UAAU,EACVC,UAAU,EACVC,gBAAgB,QAEX,cAAc;AACrB,SAASC,YAAY,EAAEC,M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,EAAE;IACPa,aAAa,EAAE,KAAK;IACpBC,UAAU,EAAE,QAAQ;IACpBE,UAAU,EAAE;EACd,CAAC;EACDf,QAAQ,EAAE;IACRf,WAAW,EAAE5E,KAAK,CAAC,CAAC,CAAC;IACrBwG,UAAU,EAAE,QAAQ;IACpBC,cAAc,EAAE;EAClB,CAAC;EACDb,OAAO,EAAE;IACPK,QAAQ,EAAE1F,OAAO,CAAC,EAAE,CAAC;IACrBgE,UAAU,EAAE;EACd,CAAC;EAEDF,WAAW,EAAE;IACXsC,SAAS,EAAE1G,aAAa,CAAC,EAAE,CAAC;IAC5BuG,UAAU,EAAE,QAAQ;IACpBC,cAAc,EAAE,QAAQ;IACxBG,GAAG,EAAE3G,aAAa,CAAC,CAAC;EACtB,CAAC;EACD4E,gBAAgB,EAAE;IAChB0B,aAAa,EAAE,KAAK;IACpBC,UAAU,EAAE,QAAQ;IACpBI,GAAG,EAAE5G,KAAK,CAAC,CAAC;EACd,CAAC;EACDuC,QAAQ,EAAE;IACR0D,QAAQ,EAAE1F,OAAO,CAAC,EAAE;EACtB;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,208 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* @author Naresh Dhamu
|
|
5
|
+
* @lastModified Sat 18 Oct 2025 at 06:45 PM
|
|
6
|
+
*/
|
|
7
|
+
import React, { useEffect, useRef } from 'react';
|
|
8
|
+
import { View, TouchableOpacity, StyleSheet, Dimensions, Modal, Animated, TouchableWithoutFeedback } from 'react-native';
|
|
9
|
+
import { Text } from "../Text/index.js";
|
|
10
|
+
import { X } from 'lucide-react-native';
|
|
11
|
+
import LottieView from 'lottie-react-native';
|
|
12
|
+
import { useInternalTheme } from "../../theme/hook/useInternalTheme.js";
|
|
13
|
+
import { scale, verticalScale, moderateScale } from 'react-native-size-matters';
|
|
14
|
+
import { RFValue } from 'react-native-responsive-fontsize';
|
|
15
|
+
import { Button } from "../Button/index.js";
|
|
16
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
17
|
+
const {
|
|
18
|
+
width
|
|
19
|
+
} = Dimensions.get('window');
|
|
20
|
+
export const AlertDialog = ({
|
|
21
|
+
visible,
|
|
22
|
+
type = 'success',
|
|
23
|
+
title,
|
|
24
|
+
buttonText,
|
|
25
|
+
onPressButton,
|
|
26
|
+
onClose,
|
|
27
|
+
theme
|
|
28
|
+
}) => {
|
|
29
|
+
const {
|
|
30
|
+
theme: appliedTheme
|
|
31
|
+
} = useInternalTheme(theme);
|
|
32
|
+
const fadeAnim = useRef(new Animated.Value(0)).current;
|
|
33
|
+
const scaleAnim = useRef(new Animated.Value(0.85)).current;
|
|
34
|
+
useEffect(() => {
|
|
35
|
+
if (visible) {
|
|
36
|
+
Animated.parallel([Animated.timing(fadeAnim, {
|
|
37
|
+
toValue: 1,
|
|
38
|
+
duration: 220,
|
|
39
|
+
useNativeDriver: true
|
|
40
|
+
}), Animated.spring(scaleAnim, {
|
|
41
|
+
toValue: 1,
|
|
42
|
+
friction: 7,
|
|
43
|
+
tension: 90,
|
|
44
|
+
useNativeDriver: true
|
|
45
|
+
})]).start();
|
|
46
|
+
} else {
|
|
47
|
+
Animated.parallel([Animated.timing(fadeAnim, {
|
|
48
|
+
toValue: 0,
|
|
49
|
+
duration: 180,
|
|
50
|
+
useNativeDriver: true
|
|
51
|
+
}), Animated.timing(scaleAnim, {
|
|
52
|
+
toValue: 0.85,
|
|
53
|
+
duration: 180,
|
|
54
|
+
useNativeDriver: true
|
|
55
|
+
})]).start();
|
|
56
|
+
}
|
|
57
|
+
}, [fadeAnim, scaleAnim, visible]);
|
|
58
|
+
const animationMap = {
|
|
59
|
+
success: require('../../assets/animations/Successful.json'),
|
|
60
|
+
pending: require('../../assets/animations/Pending.json'),
|
|
61
|
+
failed: require('../../assets/animations/Failed.json')
|
|
62
|
+
};
|
|
63
|
+
const defaultTitles = {
|
|
64
|
+
success: 'Account successfully created!',
|
|
65
|
+
pending: 'Please wait... Processing',
|
|
66
|
+
failed: 'Something went wrong!'
|
|
67
|
+
};
|
|
68
|
+
const defaultButtonText = {
|
|
69
|
+
success: 'Go to Home',
|
|
70
|
+
pending: 'Please Wait...',
|
|
71
|
+
failed: 'Try Again'
|
|
72
|
+
};
|
|
73
|
+
return /*#__PURE__*/_jsx(Modal, {
|
|
74
|
+
transparent: true,
|
|
75
|
+
visible: visible,
|
|
76
|
+
animationType: "none",
|
|
77
|
+
onRequestClose: onClose,
|
|
78
|
+
children: /*#__PURE__*/_jsxs(Animated.View, {
|
|
79
|
+
style: [styles.backdrop, {
|
|
80
|
+
backgroundColor: appliedTheme.colors.shadow
|
|
81
|
+
}],
|
|
82
|
+
children: [/*#__PURE__*/_jsx(TouchableWithoutFeedback, {
|
|
83
|
+
onPress: onClose,
|
|
84
|
+
children: /*#__PURE__*/_jsx(View, {
|
|
85
|
+
style: StyleSheet.absoluteFillObject
|
|
86
|
+
})
|
|
87
|
+
}), /*#__PURE__*/_jsx(Animated.View, {
|
|
88
|
+
style: [styles.centerContainer, {
|
|
89
|
+
opacity: fadeAnim,
|
|
90
|
+
transform: [{
|
|
91
|
+
scale: scaleAnim
|
|
92
|
+
}]
|
|
93
|
+
}],
|
|
94
|
+
children: /*#__PURE__*/_jsxs(View, {
|
|
95
|
+
style: [styles.dialogBox, {
|
|
96
|
+
backgroundColor: appliedTheme.colors.surface,
|
|
97
|
+
shadowColor: appliedTheme.colors.shadow
|
|
98
|
+
}],
|
|
99
|
+
children: [/*#__PURE__*/_jsx(TouchableOpacity, {
|
|
100
|
+
style: [styles.closeButton, {
|
|
101
|
+
backgroundColor: appliedTheme.colors.background
|
|
102
|
+
}],
|
|
103
|
+
onPress: onClose,
|
|
104
|
+
activeOpacity: 0.7,
|
|
105
|
+
children: /*#__PURE__*/_jsx(X, {
|
|
106
|
+
color: appliedTheme.colors.textPrimary,
|
|
107
|
+
size: scale(18),
|
|
108
|
+
strokeWidth: 2
|
|
109
|
+
})
|
|
110
|
+
}), /*#__PURE__*/_jsxs(View, {
|
|
111
|
+
style: styles.contentWrapper,
|
|
112
|
+
children: [/*#__PURE__*/_jsx(View, {
|
|
113
|
+
style: styles.lottieStyle,
|
|
114
|
+
children: /*#__PURE__*/_jsx(LottieView, {
|
|
115
|
+
source: animationMap[type],
|
|
116
|
+
autoPlay: true,
|
|
117
|
+
loop: type === 'pending',
|
|
118
|
+
style: {
|
|
119
|
+
width: 500,
|
|
120
|
+
height: 500,
|
|
121
|
+
padding: 0
|
|
122
|
+
}
|
|
123
|
+
})
|
|
124
|
+
}), /*#__PURE__*/_jsx(Text, {
|
|
125
|
+
style: [styles.titleText, {
|
|
126
|
+
color: appliedTheme.colors.textPrimary
|
|
127
|
+
}],
|
|
128
|
+
children: title || defaultTitles[type]
|
|
129
|
+
})]
|
|
130
|
+
}), /*#__PURE__*/_jsx(Button.Primary, {
|
|
131
|
+
title: buttonText || defaultButtonText[type],
|
|
132
|
+
onPress: onPressButton,
|
|
133
|
+
disabled: type === 'pending',
|
|
134
|
+
containerStyle: styles.bottomButton
|
|
135
|
+
})]
|
|
136
|
+
})
|
|
137
|
+
})]
|
|
138
|
+
})
|
|
139
|
+
});
|
|
140
|
+
};
|
|
141
|
+
export default AlertDialog;
|
|
142
|
+
const styles = StyleSheet.create({
|
|
143
|
+
backdrop: {
|
|
144
|
+
flex: 1,
|
|
145
|
+
zIndex: 10,
|
|
146
|
+
backgroundColor: 'rgba(0,0,0,0.5)',
|
|
147
|
+
justifyContent: 'center',
|
|
148
|
+
alignItems: 'center',
|
|
149
|
+
overflow: 'hidden',
|
|
150
|
+
paddingHorizontal: scale(15)
|
|
151
|
+
},
|
|
152
|
+
centerContainer: {
|
|
153
|
+
justifyContent: 'center',
|
|
154
|
+
alignItems: 'center'
|
|
155
|
+
},
|
|
156
|
+
dialogBox: {
|
|
157
|
+
width: width * 0.85,
|
|
158
|
+
borderRadius: moderateScale(16),
|
|
159
|
+
paddingTop: verticalScale(20),
|
|
160
|
+
paddingBottom: verticalScale(15),
|
|
161
|
+
paddingHorizontal: scale(20),
|
|
162
|
+
shadowOpacity: 0.25,
|
|
163
|
+
shadowRadius: moderateScale(8),
|
|
164
|
+
shadowOffset: {
|
|
165
|
+
width: 0,
|
|
166
|
+
height: 3
|
|
167
|
+
},
|
|
168
|
+
elevation: 8,
|
|
169
|
+
minHeight: verticalScale(250),
|
|
170
|
+
justifyContent: 'flex-start'
|
|
171
|
+
},
|
|
172
|
+
closeButton: {
|
|
173
|
+
position: 'absolute',
|
|
174
|
+
top: verticalScale(8),
|
|
175
|
+
right: scale(8),
|
|
176
|
+
width: scale(28),
|
|
177
|
+
height: scale(28),
|
|
178
|
+
borderRadius: scale(14),
|
|
179
|
+
justifyContent: 'center',
|
|
180
|
+
alignItems: 'center',
|
|
181
|
+
zIndex: 10,
|
|
182
|
+
elevation: 6
|
|
183
|
+
},
|
|
184
|
+
contentWrapper: {
|
|
185
|
+
alignItems: 'center',
|
|
186
|
+
marginBottom: verticalScale(50)
|
|
187
|
+
},
|
|
188
|
+
lottieStyle: {
|
|
189
|
+
width: scale(150),
|
|
190
|
+
height: scale(150),
|
|
191
|
+
justifyContent: 'center',
|
|
192
|
+
alignItems: 'center',
|
|
193
|
+
marginBottom: verticalScale(10)
|
|
194
|
+
},
|
|
195
|
+
titleText: {
|
|
196
|
+
fontSize: RFValue(15),
|
|
197
|
+
fontWeight: '600',
|
|
198
|
+
textAlign: 'center',
|
|
199
|
+
lineHeight: RFValue(20)
|
|
200
|
+
},
|
|
201
|
+
bottomButton: {
|
|
202
|
+
position: 'absolute',
|
|
203
|
+
bottom: verticalScale(15),
|
|
204
|
+
left: scale(15),
|
|
205
|
+
right: scale(15)
|
|
206
|
+
}
|
|
207
|
+
});
|
|
208
|
+
//# sourceMappingURL=AlertDialog.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","useEffect","useRef","View","TouchableOpacity","StyleSheet","Dimensions","Modal","Animated","TouchableWithoutFeedback","Text","X","LottieView","useInternalTheme","scale","verticalScale","moderateScale","RFValue","Button","jsx","_jsx","jsxs","_jsxs","width","get","AlertDialog","visible","type","title","buttonText","onPressButton","onClose","theme","appliedTheme","fadeAnim","Value","current","scaleAnim","parallel","timing","toValue","duration","useNativeDriver","spring","friction","tension","start","animationMap","success","require","pending","failed","defaultTitles","defaultButtonText","transparent","animationType","onRequestClose","children","style","styles","backdrop","backgroundColor","colors","shadow","onPress","absoluteFillObject","centerContainer","opacity","transform","dialogBox","surface","shadowColor","closeButton","background","activeOpacity","color","textPrimary","size","strokeWidth","contentWrapper","lottieStyle","source","autoPlay","loop","height","padding","titleText","Primary","disabled","containerStyle","bottomButton","create","flex","zIndex","justifyContent","alignItems","overflow","paddingHorizontal","borderRadius","paddingTop","paddingBottom","shadowOpacity","shadowRadius","shadowOffset","elevation","minHeight","position","top","right","marginBottom","fontSize","fontWeight","textAlign","lineHeight","bottom","left"],"sourceRoot":"../../../../src","sources":["components/Alert/AlertDialog.tsx"],"mappings":";;AAAA;AACA;AACA;AACA;AACA,OAAOA,KAAK,IAAIC,SAAS,EAAEC,MAAM,QAAQ,OAAO;AAChD,SACEC,IAAI,EACJC,gBAAgB,EAChBC,UAAU,EACVC,UAAU,EACVC,KAAK,EACLC,QAAQ,EACRC,wBAAwB,QACnB,cAAc;AACrB,SAASC,IAAI,QAAQ,kBAAS;AAC9B,SAASC,CAAC,QAAQ,qBAAqB;AACvC,OAAOC,UAAU,MAAM,qBAAqB;AAC5C,SAASC,gBAAgB,QAAQ,sCAAmC;AAEpE,SAASC,KAAK,EAAEC,aAAa,EAAEC,aAAa,QAAQ,2BAA2B;AAC/E,SAASC,OAAO,QAAQ,kCAAkC;AAC1D,SAASC,MAAM,QAAQ,oBAAW;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAEnC,MAAM;EAAEC;AAAM,CAAC,GAAGjB,UAAU,CAACkB,GAAG,CAAC,QAAQ,C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C,CAAC;IACrB6F,KAAK,EAAE9F,KAAK,CAAC,CAAC,CAAC;IACfS,KAAK,EAAET,KAAK,CAAC,EAAE,CAAC;IAChBsE,MAAM,EAAEtE,KAAK,CAAC,EAAE,CAAC;IACjBoF,YAAY,EAAEpF,KAAK,CAAC,EAAE,CAAC;IACvBgF,cAAc,EAAE,QAAQ;IACxBC,UAAU,EAAE,QAAQ;IACpBF,MAAM,EAAE,EAAE;IACVW,SAAS,EAAE;EACb,CAAC;EACDzB,cAAc,EAAE;IACdgB,UAAU,EAAE,QAAQ;IACpBc,YAAY,EAAE9F,aAAa,CAAC,EAAE;EAChC,CAAC;EACDiE,WAAW,EAAE;IACXzD,KAAK,EAAET,KAAK,CAAC,GAAG,CAAC;IACjBsE,MAAM,EAAEtE,KAAK,CAAC,GAAG,CAAC;IAClBgF,cAAc,EAAE,QAAQ;IACxBC,UAAU,EAAE,QAAQ;IACpBc,YAAY,EAAE9F,aAAa,CAAC,EAAE;EAChC,CAAC;EACDuE,SAAS,EAAE;IACTwB,QAAQ,EAAE7F,OAAO,CAAC,EAAE,CAAC;IACrB8F,UAAU,EAAE,KAAK;IACjBC,SAAS,EAAE,QAAQ;IACnBC,UAAU,EAAEhG,OAAO,CAAC,EAAE;EACxB,CAAC;EACDyE,YAAY,EAAE;IACZgB,QAAQ,EAAE,UAAU;IACpBQ,MAAM,EAAEnG,aAAa,CAAC,EAAE,CAAC;IACzBoG,IAAI,EAAErG,KAAK,CAAC,EAAE,CAAC;IACf8F,KAAK,EAAE9F,KAAK,CAAC,EAAE;EACjB;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -3,9 +3,10 @@
|
|
|
3
3
|
import React from 'react';
|
|
4
4
|
import { Modal, Text, View, TouchableOpacity, StyleSheet } from 'react-native';
|
|
5
5
|
import { scale } from 'react-native-size-matters';
|
|
6
|
+
import { useInternalTheme } from "../../theme/hook/index.js";
|
|
6
7
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
7
8
|
export const UAAlert = ({
|
|
8
|
-
theme,
|
|
9
|
+
theme: themeOverride,
|
|
9
10
|
visible,
|
|
10
11
|
title = 'Maturity Rating: 18+',
|
|
11
12
|
message = 'May contain non-explicit sexual behavior, nudity, violence, strong language, substances.',
|
|
@@ -15,6 +16,9 @@ export const UAAlert = ({
|
|
|
15
16
|
onPress,
|
|
16
17
|
onRequestClose
|
|
17
18
|
}) => {
|
|
19
|
+
const {
|
|
20
|
+
theme
|
|
21
|
+
} = useInternalTheme(themeOverride);
|
|
18
22
|
return /*#__PURE__*/_jsx(Modal, {
|
|
19
23
|
animationType: "fade",
|
|
20
24
|
transparent: true,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","Modal","Text","View","TouchableOpacity","StyleSheet","scale","jsx","_jsx","jsxs","_jsxs","UAAlert","theme","visible","title","message","confirmationText","rejectText","resolveText","onPress","onRequestClose","animationType","transparent","children","style","styles","overlay","container","backgroundColor","colors","surface","color","textPrimary","textSecondary","confirmation","divider","buttonRow","activeOpacity","button","buttonText","black","primary","create","flex","justifyContent","alignItems","width","padding","borderRadius","elevation","shadowColor","shadowOpacity","shadowOffset","height","shadowRadius","fontSize","fontWeight","textAlign","marginTop","hairlineWidth","marginVertical","marginHorizontal","flexDirection","paddingVertical"],"sourceRoot":"../../../../src","sources":["components/Alert/UAAlert.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,KAAK,EAAEC,IAAI,EAAEC,IAAI,EAAEC,gBAAgB,EAAEC,UAAU,QAAQ,cAAc;AAC9E,SAASC,KAAK,QAAQ,2BAA2B;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;
|
|
1
|
+
{"version":3,"names":["React","Modal","Text","View","TouchableOpacity","StyleSheet","scale","useInternalTheme","jsx","_jsx","jsxs","_jsxs","UAAlert","theme","themeOverride","visible","title","message","confirmationText","rejectText","resolveText","onPress","onRequestClose","animationType","transparent","children","style","styles","overlay","container","backgroundColor","colors","surface","color","textPrimary","textSecondary","confirmation","divider","buttonRow","activeOpacity","button","buttonText","black","primary","create","flex","justifyContent","alignItems","width","padding","borderRadius","elevation","shadowColor","shadowOpacity","shadowOffset","height","shadowRadius","fontSize","fontWeight","textAlign","marginTop","hairlineWidth","marginVertical","marginHorizontal","flexDirection","paddingVertical"],"sourceRoot":"../../../../src","sources":["components/Alert/UAAlert.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,KAAK,EAAEC,IAAI,EAAEC,IAAI,EAAEC,gBAAgB,EAAEC,UAAU,QAAQ,cAAc;AAC9E,SAASC,KAAK,QAAQ,2BAA2B;AAEjD,SAASC,gBAAgB,QAAQ,2BAAkB;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAcpD,OAAO,MAAMC,OAAyB,GAAGA,CAAC;EACxCC,KAAK,EAAEC,aAAa;EACpBC,OAAO;EACPC,KAAK,GAAG,sBAAsB;EAC9BC,OAAO,GAAG,0FAA0F;EACpGC,gBAAgB,GAAG,yCAAyC;EAC5DC,UAAU,GAAG,IAAI;EACjBC,WAAW,GAAG,KAAK;EACnBC,OAAO;EACPC;AACF,CAAC,KAAyB;EACxB,MAAM;IAAET;EAAM,CAAC,GAAGN,gBAAgB,CAACO,aAAa,CAAC;EACjD,oBACEL,IAAA,CAACR,KAAK;IACJsB,aAAa,EAAC,MAAM;IACpBC,WAAW;IACXT,OAAO,EAAEA,OAAQ;IACjBO,cAAc,EAAEA,cAAc,KAAK,MAAMD,OAAO,CAAC,QAAQ,CAAC,CAAE;IAAAI,QAAA,eAE5DhB,IAAA,CAACN,IAAI;MAACuB,KAAK,EAAEC,MAAM,CAACC,OAAQ;MAAAH,QAAA,eAC1Bd,KAAA,CAACR,IAAI;QACHuB,KAAK,EAAE,CACLC,MAAM,CAACE,SAAS,EAChB;UAAEC,eAAe,EAAEjB,KAAK,EAAEkB,MAAM,EA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AE,CAAC;IACnBqD,SAAS,EAAE,QAAQ;IACnBC,SAAS,EAAEtD,KAAK,CAAC,EAAE;EACrB,CAAC;EACD8B,YAAY,EAAE;IACZqB,QAAQ,EAAEnD,KAAK,CAAC,IAAI,CAAC;IACrBqD,SAAS,EAAE,QAAQ;IACnBC,SAAS,EAAEtD,KAAK,CAAC,EAAE;EACrB,CAAC;EACD+B,OAAO,EAAE;IACPkB,MAAM,EAAElD,UAAU,CAACwD,aAAa;IAChCC,cAAc,EAAExD,KAAK,CAAC,EAAE,CAAC;IACzByD,gBAAgB,EAAEzD,KAAK,CAAC,EAAE;EAC5B,CAAC;EACDgC,SAAS,EAAE;IACT0B,aAAa,EAAE,KAAK;IACpBlB,cAAc,EAAE,cAAc;IAC9Bc,SAAS,EAAEtD,KAAK,CAAC,EAAE;EACrB,CAAC;EACDkC,MAAM,EAAE;IACNQ,KAAK,EAAE1C,KAAK,CAAC,GAAG,CAAC;IACjB2D,eAAe,EAAE3D,KAAK,CAAC,EAAE,CAAC;IAC1B4C,YAAY,EAAE5C,KAAK,CAAC,CAAC,CAAC;IACtByC,UAAU,EAAE;EACd,CAAC;EACDN,UAAU,EAAE;IACVgB,QAAQ,EAAEnD,KAAK,CAAC,EAAE,CAAC;IACnBoD,UAAU,EAAE;EACd;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"sourceRoot":"../../../../src","sources":["components/Alert/index.ts"],"mappings":";;AAAA,cAAc,cAAW","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../src","sources":["components/Alert/index.ts"],"mappings":";;AAAA,cAAc,cAAW;AACzB,cAAc,kBAAe","ignoreList":[]}
|
|
@@ -0,0 +1,240 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* @author Naresh Dhamu
|
|
5
|
+
* @lastModified Tue 22 Oct 2025
|
|
6
|
+
*/
|
|
7
|
+
import React, { useEffect, useRef, useState } from 'react';
|
|
8
|
+
import { View, StyleSheet, SafeAreaView, TouchableOpacity, Animated, Platform } from 'react-native';
|
|
9
|
+
import { moderateScale, scale, verticalScale } from 'react-native-size-matters';
|
|
10
|
+
import { useInternalTheme } from "../../../theme/hook/useInternalTheme.js";
|
|
11
|
+
import { Logo } from "../../Logo/Logo.js";
|
|
12
|
+
import { Text } from "../../Text/index.js";
|
|
13
|
+
import { BackgroundLayout } from "../../BackgroundLayout/BackgroundLayout.js";
|
|
14
|
+
import { Phone, Mail } from 'lucide-react-native';
|
|
15
|
+
import { Button } from "../../Button/index.js";
|
|
16
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
17
|
+
const AuthProvider = ({
|
|
18
|
+
title = 'Your Favourite OTT Platform',
|
|
19
|
+
description,
|
|
20
|
+
backgroundImage,
|
|
21
|
+
logoUri,
|
|
22
|
+
text,
|
|
23
|
+
variant = 'one',
|
|
24
|
+
theme: overrideTheme,
|
|
25
|
+
authProvider = {
|
|
26
|
+
phone: {
|
|
27
|
+
enabled: true
|
|
28
|
+
},
|
|
29
|
+
email: {
|
|
30
|
+
enabled: true
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}) => {
|
|
34
|
+
const {
|
|
35
|
+
theme: resolvedTheme
|
|
36
|
+
} = useInternalTheme(overrideTheme);
|
|
37
|
+
const {
|
|
38
|
+
colors
|
|
39
|
+
} = resolvedTheme;
|
|
40
|
+
const phoneEnabled = !!authProvider.phone?.enabled;
|
|
41
|
+
const emailEnabled = !!authProvider.email?.enabled;
|
|
42
|
+
const [activeTab, setActiveTab] = useState(phoneEnabled ? 'phone' : 'email');
|
|
43
|
+
const slideAnim = useRef(new Animated.Value(80)).current;
|
|
44
|
+
const opacityAnim = useRef(new Animated.Value(0)).current;
|
|
45
|
+
useEffect(() => {
|
|
46
|
+
setActiveTab(phoneEnabled ? 'phone' : 'email');
|
|
47
|
+
Animated.parallel([Animated.timing(slideAnim, {
|
|
48
|
+
toValue: 0,
|
|
49
|
+
duration: 600,
|
|
50
|
+
useNativeDriver: true
|
|
51
|
+
}), Animated.timing(opacityAnim, {
|
|
52
|
+
toValue: 1,
|
|
53
|
+
duration: 600,
|
|
54
|
+
useNativeDriver: true
|
|
55
|
+
})]).start();
|
|
56
|
+
}, [phoneEnabled, emailEnabled, slideAnim, opacityAnim]);
|
|
57
|
+
const triggerEvent = type => {
|
|
58
|
+
if (type === 'phone') authProvider.phone?.onPress?.();else authProvider.email?.onPress?.();
|
|
59
|
+
};
|
|
60
|
+
const handlePress = type => {
|
|
61
|
+
if (activeTab !== type) setActiveTab(type);
|
|
62
|
+
setTimeout(() => triggerEvent(type), 100);
|
|
63
|
+
};
|
|
64
|
+
const authMethods = [{
|
|
65
|
+
key: 'phone',
|
|
66
|
+
label: text?.loginWithPhone || 'Phone',
|
|
67
|
+
icon: /*#__PURE__*/_jsx(Phone, {
|
|
68
|
+
size: moderateScale(16)
|
|
69
|
+
}),
|
|
70
|
+
enabled: phoneEnabled
|
|
71
|
+
}, {
|
|
72
|
+
key: 'email',
|
|
73
|
+
label: text?.loginWithEmail || 'Email',
|
|
74
|
+
icon: /*#__PURE__*/_jsx(Mail, {
|
|
75
|
+
size: moderateScale(16)
|
|
76
|
+
}),
|
|
77
|
+
enabled: emailEnabled
|
|
78
|
+
}];
|
|
79
|
+
const renderButtons = () => /*#__PURE__*/_jsx(View, {
|
|
80
|
+
style: styles.buttonContainer,
|
|
81
|
+
children: authMethods.filter(item => item.enabled).map(item => /*#__PURE__*/_jsx(Button.Secondary, {
|
|
82
|
+
containerStyle: {
|
|
83
|
+
backgroundColor: activeTab === item.key ? colors.button : 'transparent',
|
|
84
|
+
borderWidth: 1.2,
|
|
85
|
+
borderColor: colors.button
|
|
86
|
+
},
|
|
87
|
+
titleStyle: {
|
|
88
|
+
color: activeTab === item.key ? colors.buttonText : colors.textPrimary
|
|
89
|
+
},
|
|
90
|
+
title: `Continue with ${item.label}`,
|
|
91
|
+
onPress: () => handlePress(item.key),
|
|
92
|
+
leftIcon: /*#__PURE__*/React.cloneElement(item.icon, {
|
|
93
|
+
color: activeTab === item.key ? colors.buttonText : colors.textPrimary,
|
|
94
|
+
size: moderateScale(18)
|
|
95
|
+
})
|
|
96
|
+
}, item.key))
|
|
97
|
+
});
|
|
98
|
+
|
|
99
|
+
// Toggle render without absolute
|
|
100
|
+
const renderToggle = () => {
|
|
101
|
+
const enabledMethods = authMethods.filter(m => m.enabled);
|
|
102
|
+
return /*#__PURE__*/_jsx(View, {
|
|
103
|
+
style: [styles.toggleWrapper, {
|
|
104
|
+
backgroundColor: colors.surfaceVariant,
|
|
105
|
+
borderColor: colors.border
|
|
106
|
+
}],
|
|
107
|
+
children: enabledMethods.map(item => {
|
|
108
|
+
const isActive = activeTab === item.key;
|
|
109
|
+
return /*#__PURE__*/_jsx(TouchableOpacity, {
|
|
110
|
+
style: [styles.toggleHalf, {
|
|
111
|
+
backgroundColor: isActive ? colors.primary : 'transparent'
|
|
112
|
+
}],
|
|
113
|
+
onPress: () => handlePress(item.key),
|
|
114
|
+
activeOpacity: 0.8,
|
|
115
|
+
children: /*#__PURE__*/_jsxs(View, {
|
|
116
|
+
style: styles.iconTextRow,
|
|
117
|
+
children: [/*#__PURE__*/React.cloneElement(item.icon, {
|
|
118
|
+
color: isActive ? colors.buttonText : colors.textPrimary
|
|
119
|
+
}), /*#__PURE__*/_jsx(Text, {
|
|
120
|
+
style: [styles.toggleText, {
|
|
121
|
+
color: isActive ? colors.buttonText : colors.textPrimary
|
|
122
|
+
}],
|
|
123
|
+
children: item.label
|
|
124
|
+
})]
|
|
125
|
+
})
|
|
126
|
+
}, item.key);
|
|
127
|
+
})
|
|
128
|
+
});
|
|
129
|
+
};
|
|
130
|
+
return /*#__PURE__*/_jsx(BackgroundLayout, {
|
|
131
|
+
backgroundImage: backgroundImage?.source,
|
|
132
|
+
theme: overrideTheme,
|
|
133
|
+
gradientSplitBackground: backgroundImage?.gradientSplitBackground ?? 0.35,
|
|
134
|
+
resizeMode: backgroundImage?.resizeMode ?? 'cover',
|
|
135
|
+
children: /*#__PURE__*/_jsx(SafeAreaView, {
|
|
136
|
+
style: styles.safeArea,
|
|
137
|
+
children: /*#__PURE__*/_jsxs(View, {
|
|
138
|
+
style: styles.container,
|
|
139
|
+
children: [/*#__PURE__*/_jsx(View, {
|
|
140
|
+
style: styles.logoWrapper,
|
|
141
|
+
children: /*#__PURE__*/_jsx(Logo, {
|
|
142
|
+
logoUri: logoUri
|
|
143
|
+
})
|
|
144
|
+
}), /*#__PURE__*/_jsxs(View, {
|
|
145
|
+
style: styles.bottomSection,
|
|
146
|
+
children: [/*#__PURE__*/_jsx(Text, {
|
|
147
|
+
style: [styles.title, {
|
|
148
|
+
color: colors.textPrimary
|
|
149
|
+
}],
|
|
150
|
+
children: title
|
|
151
|
+
}), /*#__PURE__*/_jsx(Text, {
|
|
152
|
+
style: [styles.description, {
|
|
153
|
+
color: colors.textSecondary
|
|
154
|
+
}],
|
|
155
|
+
numberOfLines: 2,
|
|
156
|
+
adjustsFontSizeToFit: true,
|
|
157
|
+
children: description
|
|
158
|
+
}), /*#__PURE__*/_jsx(Animated.View, {
|
|
159
|
+
style: {
|
|
160
|
+
transform: [{
|
|
161
|
+
translateY: slideAnim
|
|
162
|
+
}],
|
|
163
|
+
opacity: opacityAnim,
|
|
164
|
+
width: '100%'
|
|
165
|
+
},
|
|
166
|
+
children: variant === 'one' ? renderButtons() : renderToggle()
|
|
167
|
+
})]
|
|
168
|
+
})]
|
|
169
|
+
})
|
|
170
|
+
})
|
|
171
|
+
});
|
|
172
|
+
};
|
|
173
|
+
export default AuthProvider;
|
|
174
|
+
const styles = StyleSheet.create({
|
|
175
|
+
safeArea: {
|
|
176
|
+
flex: 1,
|
|
177
|
+
width: '100%'
|
|
178
|
+
},
|
|
179
|
+
container: {
|
|
180
|
+
flex: 1,
|
|
181
|
+
justifyContent: 'space-between',
|
|
182
|
+
alignItems: 'center',
|
|
183
|
+
width: '100%',
|
|
184
|
+
paddingHorizontal: scale(18),
|
|
185
|
+
paddingVertical: verticalScale(20)
|
|
186
|
+
},
|
|
187
|
+
logoWrapper: {
|
|
188
|
+
flex: 1,
|
|
189
|
+
justifyContent: 'center',
|
|
190
|
+
alignItems: 'center'
|
|
191
|
+
},
|
|
192
|
+
bottomSection: {
|
|
193
|
+
width: '100%',
|
|
194
|
+
alignItems: 'center',
|
|
195
|
+
paddingBottom: verticalScale(Platform.OS === 'ios' ? 40 : 30)
|
|
196
|
+
},
|
|
197
|
+
title: {
|
|
198
|
+
fontSize: moderateScale(18),
|
|
199
|
+
fontWeight: '700',
|
|
200
|
+
textAlign: 'center',
|
|
201
|
+
marginBottom: verticalScale(12)
|
|
202
|
+
},
|
|
203
|
+
description: {
|
|
204
|
+
fontSize: moderateScale(14),
|
|
205
|
+
textAlign: 'center',
|
|
206
|
+
width: '90%',
|
|
207
|
+
marginBottom: verticalScale(30)
|
|
208
|
+
},
|
|
209
|
+
buttonContainer: {
|
|
210
|
+
width: '100%',
|
|
211
|
+
gap: verticalScale(10)
|
|
212
|
+
},
|
|
213
|
+
toggleWrapper: {
|
|
214
|
+
flexDirection: 'row',
|
|
215
|
+
height: verticalScale(48),
|
|
216
|
+
borderRadius: 50,
|
|
217
|
+
borderWidth: scale(0.5),
|
|
218
|
+
padding: scale(4),
|
|
219
|
+
overflow: 'hidden',
|
|
220
|
+
alignItems: 'center',
|
|
221
|
+
width: '100%'
|
|
222
|
+
},
|
|
223
|
+
toggleHalf: {
|
|
224
|
+
flex: 1,
|
|
225
|
+
borderRadius: scale(50),
|
|
226
|
+
height: '100%',
|
|
227
|
+
justifyContent: 'center',
|
|
228
|
+
alignItems: 'center'
|
|
229
|
+
},
|
|
230
|
+
toggleText: {
|
|
231
|
+
fontSize: moderateScale(14),
|
|
232
|
+
fontWeight: '600'
|
|
233
|
+
},
|
|
234
|
+
iconTextRow: {
|
|
235
|
+
flexDirection: 'row',
|
|
236
|
+
alignItems: 'center',
|
|
237
|
+
gap: scale(6)
|
|
238
|
+
}
|
|
239
|
+
});
|
|
240
|
+
//# sourceMappingURL=AuthProvider.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","useEffect","useRef","useState","View","StyleSheet","SafeAreaView","TouchableOpacity","Animated","Platform","moderateScale","scale","verticalScale","useInternalTheme","Logo","Text","BackgroundLayout","Phone","Mail","Button","jsx","_jsx","jsxs","_jsxs","AuthProvider","title","description","backgroundImage","logoUri","text","variant","theme","overrideTheme","authProvider","phone","enabled","email","resolvedTheme","colors","phoneEnabled","emailEnabled","activeTab","setActiveTab","slideAnim","Value","current","opacityAnim","parallel","timing","toValue","duration","useNativeDriver","start","triggerEvent","type","onPress","handlePress","setTimeout","authMethods","key","label","loginWithPhone","icon","size","loginWithEmail","renderButtons","style","styles","buttonContainer","children","filter","item","map","Secondary","containerStyle","backgroundColor","button","borderWidth","borderColor","titleStyle","color","buttonText","textPrimary","leftIcon","cloneElement","renderToggle","enabledMethods","m","toggleWrapper","surfaceVariant","border","isActive","toggleHalf","primary","activeOpacity","iconTextRow","toggleText","source","gradientSplitBackground","resizeMode","safeArea","container","logoWrapper","bottomSection","textSecondary","numberOfLines","adjustsFontSizeToFit","transform","translateY","opacity","width","create","flex","justifyContent","alignItems","paddingHorizontal","paddingVertical","paddingBottom","OS","fontSize","fontWeight","textAlign","marginBottom","gap","flexDirection","height","borderRadius","padding","overflow"],"sourceRoot":"../../../../../src","sources":["components/Auth/AuthProvider/AuthProvider.tsx"],"mappings":";;AAAA;AACA;AACA;AACA;AACA,OAAOA,KAAK,IAAIC,SAAS,EAAEC,MAAM,EAAEC,QAAQ,QAAQ,OAAO;AAC1D,SACEC,IAAI,EACJC,UAAU,EACVC,YAAY,EACZC,gBAAgB,EAChBC,QAAQ,EACRC,QAAQ,QACH,cAAc;AACrB,SAASC,aAAa,EAAEC,KAAK,EAAEC,aAAa,QAAQ,2BAA2B;AAC/E,SAASC,gBAAgB,Q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