@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 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","View","Pressable","Edit3","SkeletonPlaceholder","moderateScale","scale","verticalScale","UserAvatar","Text","
|
|
1
|
+
{"version":3,"names":["React","View","Pressable","Edit3","SkeletonPlaceholder","moderateScale","scale","verticalScale","UserAvatar","Text","useInternalTheme","RFValue","jsx","_jsx","jsxs","_jsxs","Fragment","_Fragment","UserSection","userInfo","isLoading","renderUserInfo","theme","avatarComponent","skeletonProps","userInfoTextStyle","appliedTheme","style","styles","userInfoContainer","children","backgroundColor","colors","skeletonBaseColor","highlightColor","skeletonHighlightColor","borderRadius","skeletonWrapper","skeletonAvatar","skeletonName","skeletonEmail","avatarWrapper","avatarUri","onEditPress","onPress","editButton","borderColor","primary","surfaceVariant","shadowColor","surface","android_ripple","color","surfaceDisabled","size","name","userName","onBackground","nameStyle","emailOrPhone","userEmail","emailStyle","alignItems","justifyContent","paddingVertical","height","position","bottom","right","padding","width","overflow","borderWidth","elevation","shadowOffset","shadowOpacity","shadowRadius","editLabel","fontSize","marginTop","fontWeight","lineHeight","marginBottom","opacity"],"sourceRoot":"../../../../../src","sources":["components/User/components/UserSection.tsx"],"mappings":";;AAAA;AACA;AACA;AACA;AACA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,IAAI,EAAEC,SAAS,QAAwC,cAAc;AAC9E,SAASC,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","style","backgroundColor","children","rest"],"sourceRoot":"../../../../src","sources":["components/View/View.tsx"],"mappings":";;AAAA;AACA;AACA;AACA;AACA,OAAOA,KAAK,MAAM,OAAO;AACzB,SACEC,IAAI,IAAIC,MAAM,
|
|
1
|
+
{"version":3,"names":["React","View","RNView","jsx","_jsx","style","backgroundColor","children","rest"],"sourceRoot":"../../../../src","sources":["components/View/View.tsx"],"mappings":";;AAAA;AACA;AACA;AACA;AACA,OAAOA,KAAK,MAAM,OAAO;AACzB,SACEC,IAAI,IAAIC,MAAM,QAIT,cAAc;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAOtB,OAAO,MAAMH,IAAyB,GAAGA,CAAC;EACxCI,KAAK;EACLC,eAAe,GAAG,aAAa;EAC/BC,QAAQ;EACR,GAAGC;AACL,CAAC,KAAK;EACJ,oBACEJ,IAAA,CAACF,MAAM;IAACG,KAAK,EAAE,CAACA,KAAK,EAAE;MAAEC;IAAgB,CAAC,CAAE;IAAA,GAAKE,IAAI;IAAAD,QAAA,EAClDA;EAAQ,CACH,CAAC;AAEb,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* @author Naresh Dhamu
|
|
5
|
+
* @lastModified Wed 22 Oct 2025 at 11:22 AM
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
import React, { useMemo } from 'react';
|
|
9
|
+
import { StatusBar, Platform } from 'react-native';
|
|
10
|
+
import Color from 'color';
|
|
11
|
+
import { useInternalTheme } from "../../theme/hook/index.js";
|
|
12
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
|
+
export const AppStatusBar = ({
|
|
14
|
+
backgroundColor,
|
|
15
|
+
barStyle,
|
|
16
|
+
translucent = true,
|
|
17
|
+
hidden = false,
|
|
18
|
+
theme: overrideTheme
|
|
19
|
+
}) => {
|
|
20
|
+
const {
|
|
21
|
+
theme
|
|
22
|
+
} = useInternalTheme(overrideTheme);
|
|
23
|
+
const resolvedBackground = useMemo(() => {
|
|
24
|
+
if (backgroundColor) return backgroundColor;
|
|
25
|
+
return theme.colors.background;
|
|
26
|
+
}, [backgroundColor, theme]);
|
|
27
|
+
|
|
28
|
+
// 🌗 Auto bar style
|
|
29
|
+
const resolvedBarStyle = useMemo(() => {
|
|
30
|
+
if (barStyle) return barStyle;
|
|
31
|
+
const isDarkBg = Color(resolvedBackground).isDark();
|
|
32
|
+
return isDarkBg ? 'light-content' : 'dark-content';
|
|
33
|
+
}, [barStyle, resolvedBackground]);
|
|
34
|
+
return /*#__PURE__*/_jsx(StatusBar, {
|
|
35
|
+
translucent: translucent,
|
|
36
|
+
hidden: hidden,
|
|
37
|
+
barStyle: resolvedBarStyle,
|
|
38
|
+
backgroundColor: Platform.OS === 'android' ? resolvedBackground : 'transparent'
|
|
39
|
+
});
|
|
40
|
+
};
|
|
41
|
+
//# sourceMappingURL=AppStatusBar.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","useMemo","StatusBar","Platform","Color","useInternalTheme","jsx","_jsx","AppStatusBar","backgroundColor","barStyle","translucent","hidden","theme","overrideTheme","resolvedBackground","colors","background","resolvedBarStyle","isDarkBg","isDark","OS"],"sourceRoot":"../../../../src","sources":["components/common/AppStatusBar.tsx"],"mappings":";;AAAA;AACA;AACA;AACA;;AAEA,OAAOA,KAAK,IAAIC,OAAO,QAAQ,OAAO;AACtC,SAASC,SAAS,EAAEC,QAAQ,QAA6B,cAAc;AACvE,OAAOC,KAAK,MAAM,OAAO;AAEzB,SAASC,gBAAgB,QAAQ,2BAAkB;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAUpD,OAAO,MAAMC,YAAyC,GAAGA,CAAC;EACxDC,eAAe;EACfC,QAAQ;EACRC,WAAW,GAAG,IAAI;EAClBC,MAAM,GAAG,KAAK;EACdC,KAAK,EAAEC;AACT,CAAC,KAAK;EACJ,MAAM;IAAED;EAAM,CAAC,GAAGR,gBAAgB,CAACS,aAAa,CAAC;EAEjD,MAAMC,kBAAkB,GAAGd,OAAO,CAAC,MAAM;IACvC,IAAIQ,eAAe,EAAE,OAAOA,eAAe;IAC3C,OAAOI,KAAK,CAACG,MAAM,CAACC,UAAU;EAChC,CAAC,EAAE,CAACR,eAAe,EAAEI,KAAK,CAAC,CAAC;;EAE5B;EACA,MAAMK,gBAAgC,GAAGjB,OAAO,CAAC,MAAM;IACrD,IAAIS,QAAQ,EAAE,OAAOA,QAAQ;IAC7B,MAAMS,QAAQ,GAAGf,KAAK,CAACW,kBAAkB,CAAC,CAACK,MAAM,CAAC,CAAC;IACnD,OAAOD,QAAQ,GAAG,eAAe,GAAG,cAAc;EACpD,CAAC,EAAE,CAACT,QAAQ,EAAEK,kBAAkB,CAAC,CAAC;EAElC,oBACER,IAAA,CAACL,SAAS;IACRS,WAAW,EAAEA,WAAY;IACzBC,MAAM,EAAEA,MAAO;IACfF,QAAQ,EAAEQ,gBAAiB;IAC3BT,eAAe,EACbN,QAAQ,CAACkB,EAAE,KAAK,SAAS,GAAGN,kBAAkB,GAAG;EAClD,CACF,CAAC;AAEN,CAAC","ignoreList":[]}
|
|
@@ -5,7 +5,9 @@
|
|
|
5
5
|
* @lastModified Sun 08 Jun 2025 at 03:23 PM
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
export * from "./Button/
|
|
8
|
+
export * from "./Button/index.js";
|
|
9
|
+
export * from "./Fallbacks/index.js";
|
|
10
|
+
export * from "./Input/Input.js";
|
|
9
11
|
export * from "./Loader/Loader.js";
|
|
10
12
|
export * from "./Headers/index.js";
|
|
11
13
|
export * from "./Content/Content.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"sourceRoot":"../../../src","sources":["components/index.ts"],"mappings":";;AAAA;AACA;AACA;AACA;;AAEA,cAAc,
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../src","sources":["components/index.ts"],"mappings":";;AAAA;AACA;AACA;AACA;;AAEA,cAAc,mBAAU;AACxB,cAAc,sBAAa;AAC3B,cAAc,kBAAe;AAC7B,cAAc,oBAAiB;AAC/B,cAAc,oBAAW;AACzB,cAAc,sBAAmB;AACjC,cAAc,gBAAa;AAC3B,cAAc,iBAAQ;AACtB,cAAc,mBAAU;AACxB,cAAc,qBAAY;AAC1B,cAAc,oBAAW;AACzB,cAAc,mBAAU;AACxB,cAAc,kBAAe;AAC7B,cAAc,iBAAQ;AACtB,cAAc,iBAAQ;AACtB,cAAc,iBAAQ;AACtB,cAAc,qBAAY;AAC1B,cAAc,wBAAe;AAC7B,cAAc,mBAAU;AACxB,cAAc,yBAAgB;AAC9B,cAAc,kBAAS;AACvB,cAAc,kBAAS","ignoreList":[]}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import React, { useMemo } from 'react';
|
|
4
4
|
import { StyleSheet } from 'react-native';
|
|
5
5
|
import { SafeAreaView } from 'react-native-safe-area-context';
|
|
6
|
-
import {
|
|
6
|
+
import { useInternalTheme } from "../../theme/hook/useInternalTheme.js";
|
|
7
7
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
8
8
|
export const SafeAreaWrapper = ({
|
|
9
9
|
children,
|
|
@@ -14,7 +14,7 @@ export const SafeAreaWrapper = ({
|
|
|
14
14
|
}) => {
|
|
15
15
|
const {
|
|
16
16
|
theme: appliedTheme
|
|
17
|
-
} =
|
|
17
|
+
} = useInternalTheme(theme);
|
|
18
18
|
const containerStyle = useMemo(() => {
|
|
19
19
|
return [styles.container, {
|
|
20
20
|
backgroundColor: appliedTheme?.colors?.background || fallbackBackground
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","useMemo","StyleSheet","SafeAreaView","
|
|
1
|
+
{"version":3,"names":["React","useMemo","StyleSheet","SafeAreaView","useInternalTheme","jsx","_jsx","SafeAreaWrapper","children","style","theme","edges","fallbackBackground","appliedTheme","containerStyle","styles","container","backgroundColor","colors","background","create","flex"],"sourceRoot":"../../../../src","sources":["components/layout/SafeAreaWrapper.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,OAAO,QAAQ,OAAO;AACtC,SAASC,UAAU,QAAwB,cAAc;AACzD,SAASC,YAAY,QAAQ,gCAAgC;AAE7D,SAASC,gBAAgB,QAAQ,sCAAmC;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAUrE,OAAO,MAAMC,eAA+C,GAAGA,CAAC;EAC9DC,QAAQ;EACRC,KAAK;EACLC,KAAK;EACLC,KAAK,GAAG,CAAC,KAAK,CAAC;EACfC,kBAAkB,GAAG;AACvB,CAAC,KAAK;EACJ,MAAM;IAAEF,KAAK,EAAEG;EAAa,CAAC,GAAGT,gBAAgB,CAACM,KAAK,CAAC;EAEvD,MAAMI,cAAc,GAAGb,OAAO,CAAC,MAAM;IACnC,OAAO,CACLc,MAAM,CAACC,SAAS,EAChB;MACEC,eAAe,EAAEJ,YAAY,EAAEK,MAAM,EAAEC,UAAU,IAAIP;IACvD,CAAC,EACDH,KAAK,CACN;EACH,CAAC,EAAE,CAACI,YAAY,CAACK,MAAM,CAACC,UAAU,EAAEP,kBAAkB,EAAEH,KAAK,CAAC,CAAC;EAE/D,oBACEH,IAAA,CAACH,YAAY;IAACQ,KAAK,EAAEA,KAAM;IAACF,KAAK,EAAEK,cAAe;IAAAN,QAAA,EAC/CA;EAAQ,CACG,CAAC;AAEnB,CAAC;AAED,MAAMO,MAAM,GAAGb,UAAU,CAACkB,MAAM,CAAC;EAC/BJ,SAAS,EAAE;IACTK,IAAI,EAAE;EACR;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -7,10 +7,8 @@
|
|
|
7
7
|
|
|
8
8
|
import { create } from 'zustand';
|
|
9
9
|
import { persist, createJSONStorage } from 'zustand/middleware';
|
|
10
|
-
import { MMKV } from 'react-native-mmkv';
|
|
11
|
-
|
|
12
|
-
const mmkv = new MMKV(); // Initialize MMKV instance
|
|
13
|
-
|
|
10
|
+
import { MMKV } from 'react-native-mmkv';
|
|
11
|
+
const mmkv = new MMKV();
|
|
14
12
|
export const useSplashStore = create()(persist(set => ({
|
|
15
13
|
logo: {
|
|
16
14
|
localPath: null,
|
|
@@ -50,10 +48,8 @@ export const useSplashStore = create()(persist(set => ({
|
|
|
50
48
|
name: 'splash-storage',
|
|
51
49
|
storage: createJSONStorage(() => ({
|
|
52
50
|
getItem: name => mmkv.getString(name) || null,
|
|
53
|
-
// Updated to use MMKV getString
|
|
54
51
|
setItem: (name, value) => mmkv.set(name, value),
|
|
55
|
-
|
|
56
|
-
removeItem: name => mmkv.delete(name) // Updated to use MMKV delete
|
|
52
|
+
removeItem: name => mmkv.delete(name)
|
|
57
53
|
})),
|
|
58
54
|
partialize: state => ({
|
|
59
55
|
logo: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["create","persist","createJSONStorage","MMKV","mmkv","useSplashStore","set","logo","localPath","lastUpdated","backdrop","setLogoPath","path","state","Date","now","clearLogoPath","setBackdropPath","clearBackdropPath","name","storage","getItem","getString","setItem","value","removeItem","delete","partialize"],"sourceRoot":"../../../src","sources":["store/splashStore.ts"],"mappings":";;AAAA;AACA;AACA;AACA;;AAEA,SAASA,MAAM,QAAQ,SAAS;AAChC,SAASC,OAAO,EAAEC,iBAAiB,QAAQ,oBAAoB;AAC/D,SAASC,IAAI,QAAQ,mBAAmB,
|
|
1
|
+
{"version":3,"names":["create","persist","createJSONStorage","MMKV","mmkv","useSplashStore","set","logo","localPath","lastUpdated","backdrop","setLogoPath","path","state","Date","now","clearLogoPath","setBackdropPath","clearBackdropPath","name","storage","getItem","getString","setItem","value","removeItem","delete","partialize"],"sourceRoot":"../../../src","sources":["store/splashStore.ts"],"mappings":";;AAAA;AACA;AACA;AACA;;AAEA,SAASA,MAAM,QAAQ,SAAS;AAChC,SAASC,OAAO,EAAEC,iBAAiB,QAAQ,oBAAoB;AAC/D,SAASC,IAAI,QAAQ,mBAAmB;AAExC,MAAMC,IAAI,GAAG,IAAID,IAAI,CAAC,CAAC;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I,CAACsB,MAAM,CAACP,IAAI;EACxC,CAAC,CAAC,CAAC;EACHQ,UAAU,EAAGd,KAAK,KAAM;IACtBN,IAAI,EAAE;MACJC,SAAS,EAAEK,KAAK,CAACN,IAAI,CAACC,SAAS;MAC/BC,WAAW,EAAEI,KAAK,CAACN,IAAI,CAACE;IAC1B,CAAC;IACDC,QAAQ,EAAE;MACRF,SAAS,EAAEK,KAAK,CAACH,QAAQ,CAACF,SAAS;MACnCC,WAAW,EAAEI,KAAK,CAACH,QAAQ,CAACD;IAC9B;EACF,CAAC;AACH,CACF,CACF,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* @author Naresh Dhamu
|
|
5
|
+
* @lastModified Thu 12 Jun 2025 at 07:57 PM
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
import { create } from 'zustand';
|
|
9
|
+
import { persist, createJSONStorage } from 'zustand/middleware';
|
|
10
|
+
import { MMKV } from 'react-native-mmkv';
|
|
11
|
+
const storage = new MMKV();
|
|
12
|
+
export const useInternalThemeStore = create(persist((set, _get) => ({
|
|
13
|
+
isDarkMode: false,
|
|
14
|
+
themeMode: 'system',
|
|
15
|
+
setIsDarkMode: value => {
|
|
16
|
+
const mode = value ? 'dark' : 'light';
|
|
17
|
+
set({
|
|
18
|
+
isDarkMode: value,
|
|
19
|
+
themeMode: mode
|
|
20
|
+
});
|
|
21
|
+
},
|
|
22
|
+
setTheme: mode => {
|
|
23
|
+
set({
|
|
24
|
+
themeMode: mode,
|
|
25
|
+
isDarkMode: mode === 'dark'
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
}), {
|
|
29
|
+
name: 'theme-storage',
|
|
30
|
+
storage: createJSONStorage(() => ({
|
|
31
|
+
getItem: key => storage.getString(key) ?? null,
|
|
32
|
+
setItem: (key, value) => storage.set(key, value),
|
|
33
|
+
removeItem: key => storage.delete(key)
|
|
34
|
+
}))
|
|
35
|
+
}));
|
|
36
|
+
//# sourceMappingURL=themeStore.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["create","persist","createJSONStorage","MMKV","storage","useInternalThemeStore","set","_get","isDarkMode","themeMode","setIsDarkMode","value","mode","setTheme","name","getItem","key","getString","setItem","removeItem","delete"],"sourceRoot":"../../../src","sources":["store/themeStore.ts"],"mappings":";;AAAA;AACA;AACA;AACA;;AAEA,SAASA,MAAM,QAAQ,SAAS;AAChC,SAASC,OAAO,EAAEC,iBAAiB,QAAQ,oBAAoB;AAC/D,SAASC,IAAI,QAAQ,mBAAmB;AAExC,MAAMC,OAAO,GAAG,IAAID,IAAI,CAAC,CAAC;AAS1B,OAAO,MAAME,qBAAqB,GAAGL,MAAM,CACzCC,OAAO,CACL,CAACK,GAAG,EAAEC,IAAI,MAAM;EACdC,UAAU,EAAE,KAAK;EACjBC,SAAS,EAAE,QAAQ;EAEnBC,aAAa,EAAGC,KAAc,IAAK;IACjC,MAAMC,IAAI,GAAGD,KAAK,GAAG,MAAM,GAAG,OAAO;IACrCL,GAAG,CAAC;MAAEE,UAAU,EAAEG,KAAK;MAAEF,SAAS,EAAEG;IAAK,CAAC,CAAC;EAC7C,CAAC;EAEDC,QAAQ,EAAGD,IAAiC,IAAK;IAC/CN,GAAG,CAAC;MAAEG,SAAS,EAAEG,IAAI;MAAEJ,UAAU,EAAEI,IAAI,KAAK;IAAO,CAAC,CAAC;EACvD;AACF,CAAC,CAAC,EACF;EACEE,IAAI,EAAE,eAAe;EACrBV,OAAO,EAAEF,iBAAiB,CAAC,OAAO;IAChCa,OAAO,EAAGC,GAAW,IAAKZ,OAAO,CAACa,SAAS,CAACD,GAAG,CAAC,IAAI,IAAI;IACxDE,OAAO,EAAEA,CAACF,GAAW,EAAEL,KAAa,KAAKP,OAAO,CAACE,GAAG,CAACU,GAAG,EAAEL,KAAK,CAAC;IAChEQ,UAAU,EAAGH,GAAW,IAAKZ,OAAO,CAACgB,MAAM,CAACJ,GAAG;EACjD,CAAC,CAAC;AACJ,CACF,CACF,CAAC","ignoreList":[]}
|
|
@@ -2,93 +2,64 @@
|
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* @author Naresh Dhamu
|
|
5
|
-
* @lastModified
|
|
5
|
+
* @lastModified Wed 22 Oct 2025 at 11:29 AM
|
|
6
6
|
*/
|
|
7
|
-
|
|
8
|
-
import
|
|
7
|
+
|
|
8
|
+
import React, { createContext, useContext } from 'react';
|
|
9
|
+
import { View } from 'react-native';
|
|
9
10
|
import { SafeAreaProvider, initialWindowMetrics } from 'react-native-safe-area-context';
|
|
10
|
-
import { LightTheme, DarkTheme } from "./themes.js";
|
|
11
11
|
import { GestureHandlerRootView } from 'react-native-gesture-handler';
|
|
12
|
-
import {
|
|
12
|
+
import { AppStatusBar } from "../components/common/AppStatusBar.js";
|
|
13
|
+
import { useInternalTheme } from "./hook/useInternalTheme.js";
|
|
14
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
15
|
const ThemeContext = /*#__PURE__*/createContext(null);
|
|
14
|
-
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* Custom hook to access ZezoUI theme context.
|
|
19
|
+
*/
|
|
20
|
+
export const useTheme = () => {
|
|
15
21
|
const ctx = useContext(ThemeContext);
|
|
16
|
-
if (!ctx)
|
|
22
|
+
if (!ctx) {
|
|
23
|
+
throw new Error('useTheme must be used within ZezoUIProvider');
|
|
24
|
+
}
|
|
17
25
|
return ctx;
|
|
18
26
|
};
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
};
|
|
27
|
+
/**
|
|
28
|
+
* ZezoUIProvider — Wraps your app with theming, safe area, and gesture support.
|
|
29
|
+
*/
|
|
23
30
|
export const ZezoUIProvider = ({
|
|
24
31
|
children,
|
|
25
|
-
theme,
|
|
26
|
-
|
|
32
|
+
theme: overrideTheme,
|
|
33
|
+
isDark
|
|
27
34
|
}) => {
|
|
28
|
-
const
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
// ✅ Sync prop to state if changed externally
|
|
32
|
-
useEffect(() => {
|
|
33
|
-
if (theme) {
|
|
34
|
-
setOverrideTheme(theme);
|
|
35
|
-
}
|
|
36
|
-
}, [theme]);
|
|
37
|
-
|
|
38
|
-
// ✅ This prioritizes externally passed theme.dark
|
|
39
|
-
const isDarkMode = useMemo(() => {
|
|
40
|
-
if (theme?.dark !== undefined) return theme.dark;
|
|
41
|
-
return getIsDarkMode(autoSwitchTheme, colorScheme || 'dark', overrideTheme?.dark);
|
|
42
|
-
}, [theme?.dark, autoSwitchTheme, colorScheme, overrideTheme?.dark]);
|
|
43
|
-
const baseTheme = useMemo(() => isDarkMode ? DarkTheme : LightTheme, [isDarkMode]);
|
|
44
|
-
const mergedTheme = useMemo(() => {
|
|
45
|
-
return {
|
|
46
|
-
...baseTheme,
|
|
47
|
-
...overrideTheme,
|
|
48
|
-
dark: isDarkMode,
|
|
49
|
-
colors: {
|
|
50
|
-
...baseTheme.colors,
|
|
51
|
-
...(overrideTheme?.colors ?? {})
|
|
52
|
-
}
|
|
53
|
-
};
|
|
54
|
-
}, [baseTheme, overrideTheme, isDarkMode]);
|
|
55
|
-
const toggleTheme = useCallback(() => {
|
|
56
|
-
if (autoSwitchTheme || theme?.dark !== undefined) return;
|
|
57
|
-
setOverrideTheme(prev => ({
|
|
58
|
-
...prev,
|
|
59
|
-
dark: !getIsDarkMode(false, null, prev?.dark)
|
|
60
|
-
}));
|
|
61
|
-
}, [autoSwitchTheme, theme?.dark]);
|
|
62
|
-
const setThemeOverride = useCallback(override => {
|
|
63
|
-
setOverrideTheme(override);
|
|
64
|
-
}, []);
|
|
65
|
-
|
|
66
|
-
// ✅ Update StatusBar only when required
|
|
67
|
-
|
|
68
|
-
useEffect(() => {
|
|
69
|
-
StatusBar.setBarStyle(isDarkMode ? 'light-content' : 'dark-content', true);
|
|
70
|
-
if (Platform.OS === 'android') {
|
|
71
|
-
StatusBar.setBackgroundColor(mergedTheme.colors.background, true);
|
|
72
|
-
}
|
|
73
|
-
}, [isDarkMode, mergedTheme.colors.background]);
|
|
74
|
-
const contextValue = useMemo(() => ({
|
|
75
|
-
theme: mergedTheme,
|
|
35
|
+
const {
|
|
36
|
+
theme: finalTheme,
|
|
76
37
|
isDarkMode,
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
}
|
|
38
|
+
setTheme,
|
|
39
|
+
themeFull
|
|
40
|
+
} = useInternalTheme(overrideTheme, isDark);
|
|
80
41
|
return /*#__PURE__*/_jsx(GestureHandlerRootView, {
|
|
42
|
+
style: {
|
|
43
|
+
flex: 1
|
|
44
|
+
},
|
|
81
45
|
children: /*#__PURE__*/_jsx(SafeAreaProvider, {
|
|
82
46
|
initialMetrics: initialWindowMetrics,
|
|
83
|
-
children: /*#__PURE__*/
|
|
84
|
-
value:
|
|
85
|
-
|
|
47
|
+
children: /*#__PURE__*/_jsxs(ThemeContext.Provider, {
|
|
48
|
+
value: {
|
|
49
|
+
theme: themeFull,
|
|
50
|
+
isDarkMode,
|
|
51
|
+
setTheme,
|
|
52
|
+
finalTheme
|
|
53
|
+
},
|
|
54
|
+
children: [/*#__PURE__*/_jsx(AppStatusBar, {
|
|
55
|
+
theme: overrideTheme
|
|
56
|
+
}), /*#__PURE__*/_jsx(View, {
|
|
86
57
|
style: {
|
|
87
58
|
flex: 1,
|
|
88
|
-
backgroundColor:
|
|
59
|
+
backgroundColor: finalTheme.colors.background
|
|
89
60
|
},
|
|
90
61
|
children: children
|
|
91
|
-
})
|
|
62
|
+
})]
|
|
92
63
|
})
|
|
93
64
|
})
|
|
94
65
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","createContext","
|
|
1
|
+
{"version":3,"names":["React","createContext","useContext","View","SafeAreaProvider","initialWindowMetrics","GestureHandlerRootView","AppStatusBar","useInternalTheme","jsx","_jsx","jsxs","_jsxs","ThemeContext","useTheme","ctx","Error","ZezoUIProvider","children","theme","overrideTheme","isDark","finalTheme","isDarkMode","setTheme","themeFull","style","flex","initialMetrics","Provider","value","backgroundColor","colors","background"],"sourceRoot":"../../../src","sources":["theme/ThemeProvider.tsx"],"mappings":";;AAAA;AACA;AACA;AACA;;AAEA,OAAOA,KAAK,IAAIC,aAAa,EAAEC,UAAU,QAAwB,OAAO;AACxE,SAASC,IAAI,QAAQ,cAAc;AACnC,SACEC,gBAAgB,EAChBC,oBAAoB,QACf,gCAAgC;AACvC,SAASC,sBAAsB,QAAQ,8BAA8B;AACrE,SAASC,YAAY,QAAQ,sCAAmC;AAChE,SAASC,gBAAgB,QAAQ,4BAAyB;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAa3D,MAAMC,YAAY,gBAAGZ,aAAa,CAA0B,IAAI,CAAC;;AAEjE;AACA;AACA;AACA,OAAO,MAAMa,QAAQ,GAAGA,CAAA,KAAwB;EAC9C,MAAMC,GAAG,GAAGb,UAAU,CAACW,YAAY,CAAC;EACpC,IAAI,CAACE,GAAG,EAAE;IACR,MAAM,IAAIC,KAAK,CAAC,6CAA6C,CAAC;EAChE;EACA,OAAOD,GAAG;AACZ,CAAC;AAQD;AACA;AACA;AACA,OAAO,MAAME,cAA6C,GAAGA,CAAC;EAC5DC,QAAQ;EACRC,KAAK,EAAEC,aAAa;EACpBC;AACF,CAAC,KAAK;EACJ,MAAM;IACJF,KAAK,EAAEG,UAAU;IACjBC,UAAU;IACVC,QAAQ;IACRC;EACF,CAAC,GAAGjB,gBAAgB,CAACY,aAAa,EAAEC,MAAM,CAAC;EAE3C,oBACEX,IAAA,CAACJ,sBAAsB;IAACoB,KAAK,EAAE;MAAEC,IAAI,EAAE;IAAE,CAAE;IAAAT,QAAA,eACzCR,IAAA,CAACN,gBAAgB;MAACwB,cAAc,EAAEvB,oBAAqB;MAAAa,QAAA,eACrDN,KAAA,CAACC,YAAY,CAACgB,QAAQ;QACpBC,KAAK,EAAE;UAAEX,KAAK,EAAEM,SAAS;UAAEF,UAAU;UAAEC,QAAQ;UAAEF;QAAW,CAAE;QAAAJ,QAAA,gBAE9DR,IAAA,CAACH,YAAY;UAACY,KAAK,EAAEC;QAAc,CAAE,CAAC,eACtCV,IAAA,CAACP,IAAI;UACHuB,KAAK,EAAE;YAAEC,IAAI,EAAE,CAAC;YAAEI,eAAe,EAAET,UAAU,CAACU,MAAM,CAACC;UAAW,CAAE;UAAAf,QAAA,EAEjEA;QAAQ,CACL,CAAC;MAAA,CACc;IAAC,CACR;EAAC,CACG,CAAC;AAE7B,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../src","sources":["theme/hook/index.ts"],"mappings":";;AAAA,cAAc,uBAAoB;AAClC,cAAc,wBAAqB","ignoreList":[]}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
/* eslint-disable react-hooks/exhaustive-deps */
|
|
4
|
+
/**
|
|
5
|
+
* @author Naresh Dhamu
|
|
6
|
+
* @lastModified Fri 24 Oct 2025 at 10:45 AM
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
import React from 'react';
|
|
10
|
+
import { DarkTheme, LightTheme } from "../themes.js";
|
|
11
|
+
import { useInternalThemeStore } from "../../store/themeStore.js";
|
|
12
|
+
import { Appearance } from 'react-native';
|
|
13
|
+
export const useInternalTheme = (override, isDark) => {
|
|
14
|
+
const {
|
|
15
|
+
isDarkMode: storeDarkMode,
|
|
16
|
+
setTheme,
|
|
17
|
+
themeMode,
|
|
18
|
+
setIsDarkMode
|
|
19
|
+
} = useInternalThemeStore();
|
|
20
|
+
const isDarkMode = isDark ?? storeDarkMode;
|
|
21
|
+
React.useEffect(() => {
|
|
22
|
+
if (isDark !== undefined) {
|
|
23
|
+
setTheme(isDark ? 'dark' : 'light');
|
|
24
|
+
}
|
|
25
|
+
}, [isDark, setTheme]);
|
|
26
|
+
React.useEffect(() => {
|
|
27
|
+
if (themeMode !== 'system') return;
|
|
28
|
+
const subscription = Appearance.addChangeListener(({
|
|
29
|
+
colorScheme
|
|
30
|
+
}) => {
|
|
31
|
+
if (colorScheme === 'dark' || colorScheme === 'light') {
|
|
32
|
+
setIsDarkMode(colorScheme === 'dark');
|
|
33
|
+
}
|
|
34
|
+
});
|
|
35
|
+
return () => subscription.remove();
|
|
36
|
+
}, []);
|
|
37
|
+
const overrideColors = React.useMemo(() => isDarkMode ? override?.dark ?? {} : override?.light ?? {}, [override, isDarkMode]);
|
|
38
|
+
const baseTheme = isDarkMode ? DarkTheme : LightTheme;
|
|
39
|
+
const finalTheme = React.useMemo(() => ({
|
|
40
|
+
...baseTheme,
|
|
41
|
+
colors: {
|
|
42
|
+
...baseTheme.colors,
|
|
43
|
+
...overrideColors
|
|
44
|
+
}
|
|
45
|
+
}), [baseTheme, overrideColors]);
|
|
46
|
+
const themeFull = React.useMemo(() => ({
|
|
47
|
+
light: override?.light ?? LightTheme.colors,
|
|
48
|
+
dark: override?.dark ?? DarkTheme.colors
|
|
49
|
+
}), [override]);
|
|
50
|
+
return React.useMemo(() => ({
|
|
51
|
+
theme: finalTheme,
|
|
52
|
+
isDarkMode,
|
|
53
|
+
setTheme,
|
|
54
|
+
themeFull
|
|
55
|
+
}), [finalTheme, isDarkMode, setTheme, themeFull]);
|
|
56
|
+
};
|
|
57
|
+
//# sourceMappingURL=useInternalTheme.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","DarkTheme","LightTheme","useInternalThemeStore","Appearance","useInternalTheme","override","isDark","isDarkMode","storeDarkMode","setTheme","themeMode","setIsDarkMode","useEffect","undefined","subscription","addChangeListener","colorScheme","remove","overrideColors","useMemo","dark","light","baseTheme","finalTheme","colors","themeFull","theme"],"sourceRoot":"../../../../src","sources":["theme/hook/useInternalTheme.ts"],"mappings":";;AAAA;AACA;AACA;AACA;AACA;;AAEA,OAAOA,KAAK,MAAM,OAAO;AAC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GAAGG,SAAS;IACZE,MAAM,EAAE;MACN,GAAGF,SAAS,CAACE,MAAM;MACnB,GAAGN;IACL;EACF,CAAC,CAAC,EACF,CAACI,SAAS,EAAEJ,cAAc,CAC5B,CAAC;EAED,MAAMO,SAAS,GAAG1B,KAAK,CAACoB,OAAO,CAC7B,OAAO;IACLE,KAAK,EAAGhB,QAAQ,EAAEgB,KAAK,IAAyBpB,UAAU,CAACuB,MAAM;IACjEJ,IAAI,EAAGf,QAAQ,EAAEe,IAAI,IAAyBpB,SAAS,CAACwB;EAC1D,CAAC,CAAC,EACF,CAACnB,QAAQ,CACX,CAAC;EAED,OAAON,KAAK,CAACoB,OAAO,CAClB,OAAO;IACLO,KAAK,EAAEH,UAAU;IACjBhB,UAAU;IACVE,QAAQ;IACRgB;EACF,CAAC,CAAC,EACF,CAACF,UAAU,EAAEhB,UAAU,EAAEE,QAAQ,EAAEgB,SAAS,CAC9C,CAAC;AACH,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* @author Naresh Dhamu
|
|
5
|
+
* @lastModified Wed 22 Oct 2025 at 10:29 AM
|
|
6
|
+
*/
|
|
7
|
+
/**
|
|
8
|
+
* Automatically syncs StatusBar color & style with current theme.
|
|
9
|
+
*/
|
|
10
|
+
import { useEffect } from 'react';
|
|
11
|
+
import { StatusBar, Platform } from 'react-native';
|
|
12
|
+
import Color from 'color';
|
|
13
|
+
export const useThemeStatusBar = ({
|
|
14
|
+
theme,
|
|
15
|
+
backgroundColor,
|
|
16
|
+
barStyle
|
|
17
|
+
}) => {
|
|
18
|
+
useEffect(() => {
|
|
19
|
+
const bgColor = backgroundColor ?? theme.colors.background;
|
|
20
|
+
const contentStyle = barStyle ?? (Color(bgColor).isDark() ? 'light-content' : 'dark-content');
|
|
21
|
+
StatusBar.setBarStyle(contentStyle, true);
|
|
22
|
+
if (Platform.OS === 'android') {
|
|
23
|
+
StatusBar.setBackgroundColor(bgColor, true);
|
|
24
|
+
}
|
|
25
|
+
}, [theme, backgroundColor, barStyle]);
|
|
26
|
+
};
|
|
27
|
+
//# sourceMappingURL=useThemeStatusBar.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["useEffect","StatusBar","Platform","Color","useThemeStatusBar","theme","backgroundColor","barStyle","bgColor","colors","background","contentStyle","isDark","setBarStyle","OS","setBackgroundColor"],"sourceRoot":"../../../../src","sources":["theme/hook/useThemeStatusBar.ts"],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAASA,SAAS,QAAQ,OAAO;AACjC,SAASC,SAAS,EAAEC,QAAQ,QAA6B,cAAc;AACvE,OAAOC,KAAK,MAAM,OAAO;AASzB,OAAO,MAAMC,iBAAiB,GAAGA,CAAC;EAChCC,KAAK;EACLC,eAAe;EACfC;AACwB,CAAC,KAAK;EAC9BP,SAAS,CAAC,MAAM;IACd,MAAMQ,OAAO,GAAGF,eAAe,IAAID,KAAK,CAACI,MAAM,CAACC,UAAU;IAC1D,MAAMC,YAA4B,GAChCJ,QAAQ,KAAKJ,KAAK,CAACK,OAAO,CAAC,CAACI,MAAM,CAAC,CAAC,GAAG,eAAe,GAAG,cAAc,CAAC;IAC1EX,SAAS,CAACY,WAAW,CAACF,YAAY,EAAE,IAAI,CAAC;IACzC,IAAIT,QAAQ,CAACY,EAAE,KAAK,SAAS,EAAE;MAC7Bb,SAAS,CAACc,kBAAkB,CAACP,OAAO,EAAE,IAAI,CAAC;IAC7C;EACF,CAAC,EAAE,CAACH,KAAK,EAAEC,eAAe,EAAEC,QAAQ,CAAC,CAAC;AACxC,CAAC","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"sourceRoot":"../../../src","sources":["theme/index.ts"],"mappings":";;
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../src","sources":["theme/index.ts"],"mappings":";;AAAA;AACA;AACA;AACA;;AAEA,cAAc,oBAAiB;AAC/B,cAAc,aAAU","ignoreList":[]}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
// New type for override object
|
|
4
|
+
|
|
3
5
|
export const LightTheme = {
|
|
4
|
-
dark: false,
|
|
5
6
|
colors: {
|
|
6
7
|
primary: 'rgba(244, 197, 66, 1)',
|
|
7
8
|
onPrimary: 'rgba(255, 255, 255, 1)',
|
|
@@ -66,11 +67,17 @@ export const LightTheme = {
|
|
|
66
67
|
switchTrackColor: '#3CD141',
|
|
67
68
|
switchThumbColor: 'white',
|
|
68
69
|
switchTrackColorDisabled: '#D5D5D5',
|
|
69
|
-
switchThumbColorDisabled: 'white'
|
|
70
|
+
switchThumbColorDisabled: 'white',
|
|
71
|
+
premiumIcon: '#CA091E',
|
|
72
|
+
alert: {
|
|
73
|
+
success: '#4CAF50',
|
|
74
|
+
error: 'rgba(255, 0, 0, 1)',
|
|
75
|
+
warning: '#FF9800',
|
|
76
|
+
info: '#2196F3'
|
|
77
|
+
}
|
|
70
78
|
}
|
|
71
79
|
};
|
|
72
80
|
export const DarkTheme = {
|
|
73
|
-
dark: true,
|
|
74
81
|
colors: {
|
|
75
82
|
primary: 'rgba(244, 197, 66, 1)',
|
|
76
83
|
onPrimary: 'rgba(15, 23, 42, 1)',
|
|
@@ -135,7 +142,14 @@ export const DarkTheme = {
|
|
|
135
142
|
switchTrackColor: '#3CD141',
|
|
136
143
|
switchThumbColor: 'white',
|
|
137
144
|
switchTrackColorDisabled: '#D5D5D5',
|
|
138
|
-
switchThumbColorDisabled: 'white'
|
|
145
|
+
switchThumbColorDisabled: 'white',
|
|
146
|
+
premiumIcon: '#CA091E',
|
|
147
|
+
alert: {
|
|
148
|
+
success: '#4CAF50',
|
|
149
|
+
error: 'rgba(255, 0, 0, 1)',
|
|
150
|
+
warning: '#FF9800',
|
|
151
|
+
info: '#2196F3'
|
|
152
|
+
}
|
|
139
153
|
}
|
|
140
154
|
};
|
|
141
155
|
//# sourceMappingURL=themes.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["LightTheme","
|
|
1
|
+
{"version":3,"names":["LightTheme","colors","primary","onPrimary","primaryContainer","onPrimaryContainer","secondary","onSecondary","secondaryContainer","onSecondaryContainer","tertiary","onTertiary","tertiaryContainer","onTertiaryContainer","background","onBackground","backgroundDisabled","blueBackground","surface","onSurface","surfaceVariant","onSurfaceVariant","surfaceDisabled","onSurfaceDisabled","error","onError","errorContainer","onErrorContainer","outline","outlineDisabled","outlineVariant","border","borderDisabled","shadow","scrim","backdrop","overlay","inverseSurface","inverseOnSurface","inversePrimary","elevation","level0","level1","level2","level3","level4","level5","textPrimary","textSecondary","textDisabled","button","buttonDisabled","buttonText","white","black","transparent","backgroundLayoutGradient","heroBannerGradient","cardGradient","skeletonHighlightColor","skeletonBaseColor","switchTrackColor","switchThumbColor","switchTrackColorDisabled","switchThumbColorDisabled","premiumIcon","alert","success","warning","info","DarkTheme"],"sourceRoot":"../../../src","sources":["theme/themes.ts"],"mappings":";;AAsGA;;AAeA,OAAO,MAAMA,UAAkB,GAAG;EAChCC,MAAM,EAAE;IACNC,OAAO,EAAE,uBAAuB;IAChCC,SAAS,EAAE,wBAAwB;IACnCC,gBAAgB,EAAE,wBAAwB;IAC1CC,kBAAkB,EAAE,sBAAsB;IAE1CC,SAAS,EAAE,sBAAsB;IACjCC,WAAW,EAAE,wBAAwB;IACrCC,kBAAkB,EAAE,wBAAwB;IAC5CC,oBAAoB,EAAE,sBAAsB;IAE5CC,QAAQ,EAAE,uBAAuB;IACjCC,UAAU,EAAE,qBAAqB;IACjCC,iBAAiB,EAAE,wBAAwB;IAC3CC,mBAAmB,EAAE,sBAAsB;IAE3CC,UAAU,EAAE,wBAAwB;IACpCC,YAAY,EAAE,qBAAqB;IACnCC,kBAAkB,EAAE,2BAA2B;IAC/CC,cAAc,EAAE,2BAA2B;IAE3CC,OAAO,EAAE,wBAAwB;IACjC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C,OAAO,EAAE,SAAS;MAClBC,IAAI,EAAE;IACR;EACF;AACF,CAAC","ignoreList":[]}
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import { type TextStyle } from 'react-native';
|
|
6
6
|
import SkeletonPlaceholder from 'react-native-skeleton-placeholder';
|
|
7
|
-
import type {
|
|
7
|
+
import type { ThemeOverride } from '../../theme/themes';
|
|
8
8
|
type CardItem = {
|
|
9
9
|
type: 'card';
|
|
10
10
|
title: string;
|
|
@@ -38,7 +38,7 @@ export type AccountProps = {
|
|
|
38
38
|
renderUserInfo?: (userInfo: UserInfo) => React.ReactNode;
|
|
39
39
|
sections: AccountSection[];
|
|
40
40
|
onBackPress?: () => void;
|
|
41
|
-
theme?:
|
|
41
|
+
theme?: ThemeOverride;
|
|
42
42
|
isLoading?: boolean;
|
|
43
43
|
avatarComponent?: React.ReactNode;
|
|
44
44
|
skeletonProps?: Partial<React.ComponentProps<typeof SkeletonPlaceholder>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Account.d.ts","sourceRoot":"","sources":["../../../../../src/components/Account/Account.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAKL,KAAK,SAAS,EACf,MAAM,cAAc,CAAC;AAKtB,OAAO,mBAAmB,MAAM,mCAAmC,CAAC;AAKpE,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"Account.d.ts","sourceRoot":"","sources":["../../../../../src/components/Account/Account.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAKL,KAAK,SAAS,EACf,MAAM,cAAc,CAAC;AAKtB,OAAO,mBAAmB,MAAM,mCAAmC,CAAC;AAKpE,OAAO,KAAK,EAAE,aAAa,EAAU,MAAM,oBAAoB,CAAC;AAIhE,KAAK,QAAQ,GAAG;IACd,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;CAClB,C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AAM,CAAC;IACvB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,iBAAiB,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACpC,WAAW,CAAC,EAAE,MAAM,IAAI,CAAC;IACzB,oBAAoB,CAAC,EAAE,MAAM,IAAI,CAAC;CACnC,CAAC;AA2BF,eAAO,MAAM,OAAO,EAAE,KAAK,CAAC,EAAE,CAAC,YAAY,CAqI1C,CAAC"}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* @lastModified Sat 18 Oct 2025 at 06:45 PM
|
|
4
4
|
*/
|
|
5
5
|
import React from 'react';
|
|
6
|
-
import type {
|
|
6
|
+
import type { ThemeOverride } from '../../theme/themes';
|
|
7
7
|
export interface AlertDialogProps {
|
|
8
8
|
visible: boolean;
|
|
9
9
|
type: 'success' | 'pending' | 'failed';
|
|
@@ -11,7 +11,7 @@ export interface AlertDialogProps {
|
|
|
11
11
|
buttonText?: string;
|
|
12
12
|
onPressButton?: () => void;
|
|
13
13
|
onClose?: () => void;
|
|
14
|
-
theme?:
|
|
14
|
+
theme?: ThemeOverride;
|
|
15
15
|
}
|
|
16
16
|
export declare const AlertDialog: React.FC<AlertDialogProps>;
|
|
17
17
|
export default AlertDialog;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AlertDialog.d.ts","sourceRoot":"","sources":["../../../../../src/components/Alert/AlertDialog.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,KAA4B,MAAM,OAAO,CAAC;AAcjD,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"AlertDialog.d.ts","sourceRoot":"","sources":["../../../../../src/components/Alert/AlertDialog.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,KAA4B,MAAM,OAAO,CAAC;AAcjD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAOxD,MAAM,WAAW,gBAAgB;IAC/B,OAAO,EAAE,OAAO,CAAC;IACjB,IAAI,EAAE,SAAS,GAAG,SAAS,GAAG,QAAQ,CAAC;IACvC,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,aAAa,CAAC,EAAE,MAAM,IAAI,CAAC;IAC3B,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,KAAK,CAAC,EAAE,aAAa,CAAC;CACvB;AAED,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CAkJlD,CAAC;AAEF,eAAe,WAAW,CAAC"}
|