@zezosoft/zezo-ott-react-native-ui-kit 1.0.2 → 1.0.4
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/LICENSE +0 -0
- package/README.md +6 -0
- package/lib/module/assets/animations/135037-payment-processing-error.json +1347 -1
- package/lib/module/assets/animations/7227-vui-animation.json +3377 -1
- package/lib/module/assets/animations/heart.json +788 -0
- package/lib/module/assets/animations/succesfull-payment.json +2379 -1
- package/lib/module/assets/animations/voice-icon.json +542 -1
- package/lib/module/components/Account/Account.js +6 -6
- package/lib/module/components/Account/Account.js.map +1 -1
- package/lib/module/components/Account/index.js +1 -1
- package/lib/module/components/Account/index.js.map +1 -1
- package/lib/module/components/Alert/UAAlert.js +138 -0
- package/lib/module/components/Alert/UAAlert.js.map +1 -0
- package/lib/module/components/Alert/index.js +4 -0
- package/lib/module/components/Alert/index.js.map +1 -0
- package/lib/module/components/Auth/ForgotPassword/ForgotPassword.js +9 -9
- package/lib/module/components/Auth/ForgotPassword/ForgotPassword.js.map +1 -1
- package/lib/module/components/Auth/Login/LoginWithEmail.js +10 -10
- package/lib/module/components/Auth/Login/LoginWithEmail.js.map +1 -1
- package/lib/module/components/Auth/Login/LoginWithPhone.js +10 -10
- package/lib/module/components/Auth/Login/LoginWithPhone.js.map +1 -1
- package/lib/module/components/Auth/OTP/OTP.js +9 -9
- package/lib/module/components/Auth/OTP/OTP.js.map +1 -1
- package/lib/module/components/Auth/QrLogin/QrLogin.js +267 -0
- package/lib/module/components/Auth/QrLogin/QrLogin.js.map +1 -0
- package/lib/module/components/Auth/QrLogin/components/QrViewArea.js +178 -0
- package/lib/module/components/Auth/QrLogin/components/QrViewArea.js.map +1 -0
- package/lib/module/components/Auth/SignUp/SignUp.js +10 -10
- package/lib/module/components/Auth/SignUp/SignUp.js.map +1 -1
- package/lib/module/components/Auth/SplashScreen/SplashScreen.js +6 -6
- package/lib/module/components/Auth/SplashScreen/SplashScreen.js.map +1 -1
- package/lib/module/components/Auth/SplashScreen/components/SplashImage/SplashImage.js +1 -6
- package/lib/module/components/Auth/SplashScreen/components/SplashImage/SplashImage.js.map +1 -1
- package/lib/module/components/Auth/SplashScreen/components/SplashLottie/SplashLottie.js +1 -1
- package/lib/module/components/Auth/SplashScreen/components/SplashLottie/SplashLottie.js.map +1 -1
- package/lib/module/components/Auth/SplashScreen/components/SplashVideo/SplashVideo.js +1 -1
- package/lib/module/components/Auth/SplashScreen/components/SplashVideo/SplashVideo.js.map +1 -1
- package/lib/module/components/Auth/index.js +9 -7
- package/lib/module/components/Auth/index.js.map +1 -1
- package/lib/module/components/BackgroundLayout/BackgroundLayout.js +1 -1
- package/lib/module/components/BackgroundLayout/BackgroundLayout.js.map +1 -1
- package/lib/module/components/BlogView/BlogView.js +4 -10
- package/lib/module/components/BlogView/BlogView.js.map +1 -1
- package/lib/module/components/BlogView/index.js +1 -1
- package/lib/module/components/BlogView/index.js.map +1 -1
- package/lib/module/components/Button/BackBtn.js +1 -1
- package/lib/module/components/Button/BackBtn.js.map +1 -1
- package/lib/module/components/Button/MenuBtn.js +1 -1
- 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/TextButton.js +2 -2
- package/lib/module/components/Button/TextButton.js.map +1 -1
- package/lib/module/components/Button/index.js +3 -3
- package/lib/module/components/Button/index.js.map +1 -1
- package/lib/module/components/Content/Card/Category/Category.js +2 -2
- package/lib/module/components/Content/Card/Category/Category.js.map +1 -1
- package/lib/module/components/Content/Card/NowWatching/NowWatching.js +6 -6
- package/lib/module/components/Content/Card/NowWatching/NowWatching.js.map +1 -1
- package/lib/module/components/Content/Card/Sliders/Styles/One.js +3 -3
- package/lib/module/components/Content/Card/Sliders/Styles/One.js.map +1 -1
- package/lib/module/components/Content/Card/Sliders/Styles/Two.js +4 -4
- package/lib/module/components/Content/Card/Sliders/Styles/Two.js.map +1 -1
- package/lib/module/components/Content/Card/Sliders/index.js +2 -2
- package/lib/module/components/Content/Card/Sliders/index.js.map +1 -1
- package/lib/module/components/Content/Card/Styles/Five.js +4 -4
- package/lib/module/components/Content/Card/Styles/Five.js.map +1 -1
- package/lib/module/components/Content/Card/Styles/Four.js +4 -4
- package/lib/module/components/Content/Card/Styles/Four.js.map +1 -1
- package/lib/module/components/Content/Card/Styles/One.js +4 -4
- package/lib/module/components/Content/Card/Styles/One.js.map +1 -1
- package/lib/module/components/Content/Card/Styles/RotateInOut.js +4 -4
- package/lib/module/components/Content/Card/Styles/RotateInOut.js.map +1 -1
- package/lib/module/components/Content/Card/Styles/Six.js +5 -5
- package/lib/module/components/Content/Card/Styles/Six.js.map +1 -1
- package/lib/module/components/Content/Card/Styles/Three.js +4 -4
- package/lib/module/components/Content/Card/Styles/Three.js.map +1 -1
- package/lib/module/components/Content/Card/Styles/TopTen.js +5 -5
- package/lib/module/components/Content/Card/Styles/TopTen.js.map +1 -1
- package/lib/module/components/Content/Card/Styles/Two.js +4 -4
- package/lib/module/components/Content/Card/Styles/Two.js.map +1 -1
- package/lib/module/components/Content/Card/components/CardPoster.js +1 -10
- package/lib/module/components/Content/Card/components/CardPoster.js.map +1 -1
- package/lib/module/components/Content/Card/components/NavigateToMore.js +2 -2
- package/lib/module/components/Content/Card/components/NavigateToMore.js.map +1 -1
- package/lib/module/components/Content/Card/components/NoContentFallback.js +3 -3
- package/lib/module/components/Content/Card/components/NoContentFallback.js.map +1 -1
- package/lib/module/components/Content/Card/components/ShowAllButton.js +1 -1
- package/lib/module/components/Content/Card/components/ShowAllButton.js.map +1 -1
- package/lib/module/components/Content/Card/components/ThumbnailCard.js +1 -1
- package/lib/module/components/Content/Card/components/ThumbnailCard.js.map +1 -1
- package/lib/module/components/Content/Card/index.js +10 -10
- package/lib/module/components/Content/Card/index.js.map +1 -1
- package/lib/module/components/Content/Content.js +4 -4
- package/lib/module/components/Content/Content.js.map +1 -1
- package/lib/module/components/Content/Sections.js +2 -2
- package/lib/module/components/Content/Sections.js.map +1 -1
- package/lib/module/components/ContentView/ContentView.js +8 -9
- package/lib/module/components/ContentView/ContentView.js.map +1 -1
- package/lib/module/components/ContentView/MoreContentList.js +6 -6
- package/lib/module/components/ContentView/MoreContentList.js.map +1 -1
- package/lib/module/components/ContentView/components/AboutSection.js +2 -2
- package/lib/module/components/ContentView/components/AboutSection.js.map +1 -1
- package/lib/module/components/ContentView/components/CastCard.js +2 -2
- package/lib/module/components/ContentView/components/CastCard.js.map +1 -1
- package/lib/module/components/ContentView/components/EpisodeCard.js +3 -3
- package/lib/module/components/ContentView/components/EpisodeCard.js.map +1 -1
- package/lib/module/components/ContentView/components/GenreTags.js +1 -1
- package/lib/module/components/ContentView/components/GenreTags.js.map +1 -1
- package/lib/module/components/ContentView/components/HeroBanner.js +5 -5
- package/lib/module/components/ContentView/components/HeroBanner.js.map +1 -1
- package/lib/module/components/ContentView/components/PlayButton.js +0 -1
- package/lib/module/components/ContentView/components/PlayButton.js.map +1 -1
- package/lib/module/components/ContentView/components/Title.js +1 -1
- package/lib/module/components/ContentView/components/Title.js.map +1 -1
- package/lib/module/components/ContentView/components/TrailerButton.js +1 -2
- package/lib/module/components/ContentView/components/TrailerButton.js.map +1 -1
- package/lib/module/components/ContentView/index.js +2 -2
- package/lib/module/components/ContentView/index.js.map +1 -1
- package/lib/module/components/Headers/AppHeader.js +3 -3
- package/lib/module/components/Headers/AppHeader.js.map +1 -1
- package/lib/module/components/Headers/One.js +3 -3
- 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 +6 -7
- package/lib/module/components/Headers/Two.js.map +1 -1
- package/lib/module/components/Headers/index.js +3 -3
- package/lib/module/components/Headers/index.js.map +1 -1
- package/lib/module/components/Input/Input.js +3 -3
- package/lib/module/components/Input/Input.js.map +1 -1
- package/lib/module/components/Input/InputOne.js +1 -1
- package/lib/module/components/Input/InputOne.js.map +1 -1
- package/lib/module/components/Input/InputTwo.js +1 -1
- package/lib/module/components/Input/InputTwo.js.map +1 -1
- package/lib/module/components/Input/PhoneNumberInput.js +1 -1
- package/lib/module/components/Input/PhoneNumberInput.js.map +1 -1
- package/lib/module/components/Keyboard/HideKeyboard.js.map +1 -1
- package/lib/module/components/Loader/Loader.js +1 -6
- package/lib/module/components/Loader/Loader.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/Reels/ReelsSeries/Model/Episodes.js +110 -0
- package/lib/module/components/Reels/ReelsSeries/Model/Episodes.js.map +1 -0
- package/lib/module/components/Reels/ReelsSeries/Model/Synopsis.js +216 -0
- package/lib/module/components/Reels/ReelsSeries/Model/Synopsis.js.map +1 -0
- package/lib/module/components/Reels/ReelsSeries/ReelSeriesDetailsModal.js +182 -0
- package/lib/module/components/Reels/ReelsSeries/ReelSeriesDetailsModal.js.map +1 -0
- package/lib/module/components/Reels/ReelsSeries/ReelSeriesOverlay.js +203 -0
- package/lib/module/components/Reels/ReelsSeries/ReelSeriesOverlay.js.map +1 -0
- package/lib/module/components/Reels/ReelsSeries/ReelsSeries.js +121 -0
- package/lib/module/components/Reels/ReelsSeries/ReelsSeries.js.map +1 -0
- package/lib/module/components/Reels/ReelsSeries/ReelsSeriesItem.js +290 -0
- package/lib/module/components/Reels/ReelsSeries/ReelsSeriesItem.js.map +1 -0
- package/lib/module/components/Reels/ReelsSeries/types.js +2 -0
- package/lib/module/components/Reels/ReelsSeries/types.js.map +1 -0
- package/lib/module/components/Reels/index.js +11 -0
- package/lib/module/components/Reels/index.js.map +1 -0
- package/lib/module/components/Search/One.js +9 -9
- package/lib/module/components/Search/One.js.map +1 -1
- package/lib/module/components/Search/components/RecentSearchesSection.js +1 -1
- package/lib/module/components/Search/components/RecentSearchesSection.js.map +1 -1
- package/lib/module/components/Search/components/SearchCard.js +3 -3
- package/lib/module/components/Search/components/SearchCard.js.map +1 -1
- package/lib/module/components/Search/index.js +2 -2
- package/lib/module/components/Search/index.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/Settings/index.js +1 -1
- package/lib/module/components/Settings/index.js.map +1 -1
- package/lib/module/components/Subscription/SubOne.js +4 -4
- package/lib/module/components/Subscription/SubOne.js.map +1 -1
- package/lib/module/components/Subscription/index.js +1 -1
- package/lib/module/components/Subscription/index.js.map +1 -1
- package/lib/module/components/TabBar/One.js +2 -2
- package/lib/module/components/TabBar/One.js.map +1 -1
- package/lib/module/components/TabBar/Three.js +1 -1
- package/lib/module/components/TabBar/Three.js.map +1 -1
- package/lib/module/components/TabBar/Two.js +2 -2
- package/lib/module/components/TabBar/Two.js.map +1 -1
- package/lib/module/components/TabBar/index.js +3 -3
- package/lib/module/components/TabBar/index.js.map +1 -1
- package/lib/module/components/Text/Text.js +1 -1
- package/lib/module/components/Text/Text.js.map +1 -1
- package/lib/module/components/Text/index.js +1 -1
- package/lib/module/components/Text/index.js.map +1 -1
- package/lib/module/components/User/DeviceSessions/DeviceSessions.js +11 -3
- package/lib/module/components/User/DeviceSessions/DeviceSessions.js.map +1 -1
- package/lib/module/components/User/ProfileUpdate/ProfileUpdate.js +258 -0
- package/lib/module/components/User/ProfileUpdate/ProfileUpdate.js.map +1 -0
- package/lib/module/components/User/WatchHistory/WatchHistory.js +4 -4
- package/lib/module/components/User/WatchHistory/WatchHistory.js.map +1 -1
- package/lib/module/components/User/WatchLater/WatchLater.js +5 -5
- package/lib/module/components/User/WatchLater/WatchLater.js.map +1 -1
- package/lib/module/components/User/components/UserAvatar.js +1 -1
- package/lib/module/components/User/components/UserAvatar.js.map +1 -1
- package/lib/module/components/User/components/UserSection.js +11 -16
- package/lib/module/components/User/components/UserSection.js.map +1 -1
- package/lib/module/components/User/index.js +5 -4
- package/lib/module/components/User/index.js.map +1 -1
- package/lib/module/components/View/View.js.map +1 -1
- package/lib/module/components/View/index.js +1 -1
- package/lib/module/components/View/index.js.map +1 -1
- package/lib/module/components/index.js +20 -18
- package/lib/module/components/index.js.map +1 -1
- package/lib/module/components/layout/SafeAreaWrapper.js +1 -1
- package/lib/module/components/layout/SafeAreaWrapper.js.map +1 -1
- package/lib/module/components/layout/index.js +1 -1
- package/lib/module/components/layout/index.js.map +1 -1
- package/lib/module/constants/dummySections.js.map +1 -1
- package/lib/module/hooks/useDebounce.js.map +1 -1
- package/lib/module/hooks/useInitSplashCacheSync.js +7 -7
- package/lib/module/hooks/useInitSplashCacheSync.js.map +1 -1
- package/lib/module/hooks/useKeyboard.js.map +1 -1
- package/lib/module/hooks/usePaginatedSection.js.map +1 -1
- package/lib/module/index.js +3 -3
- package/lib/module/index.js.map +1 -1
- package/lib/module/package.json +1 -0
- package/lib/module/store/RecentSearchesStore.js.map +1 -1
- package/lib/module/store/splashStore.js.map +1 -1
- package/lib/module/theme/ThemeProvider.js +24 -18
- package/lib/module/theme/ThemeProvider.js.map +1 -1
- package/lib/module/theme/hook/useTheme.js +2 -2
- package/lib/module/theme/hook/useTheme.js.map +1 -1
- package/lib/module/theme/index.js +3 -2
- package/lib/module/theme/index.js.map +1 -1
- package/lib/module/theme/themes.js +2 -13
- package/lib/module/theme/themes.js.map +1 -1
- package/lib/module/utils/Formater.js +17 -0
- package/lib/module/utils/Formater.js.map +1 -0
- package/lib/typescript/package.json +1 -0
- package/lib/typescript/src/components/Account/Account.d.ts +0 -1
- package/lib/typescript/src/components/Account/Account.d.ts.map +1 -1
- package/lib/typescript/src/components/Alert/UAAlert.d.ts +16 -0
- package/lib/typescript/src/components/Alert/UAAlert.d.ts.map +1 -0
- package/lib/typescript/src/components/Alert/index.d.ts +2 -0
- package/lib/typescript/src/components/Alert/index.d.ts.map +1 -0
- package/lib/typescript/src/components/Auth/ForgotPassword/ForgotPassword.d.ts.map +1 -1
- package/lib/typescript/src/components/Auth/Login/LoginWithEmail.d.ts.map +1 -1
- package/lib/typescript/src/components/Auth/Login/LoginWithPhone.d.ts.map +1 -1
- package/lib/typescript/src/components/Auth/OTP/OTP.d.ts.map +1 -1
- package/lib/typescript/src/components/Auth/QrLogin/QrLogin.d.ts +32 -0
- package/lib/typescript/src/components/Auth/QrLogin/QrLogin.d.ts.map +1 -0
- package/lib/typescript/src/components/Auth/QrLogin/components/QrViewArea.d.ts +15 -0
- package/lib/typescript/src/components/Auth/QrLogin/components/QrViewArea.d.ts.map +1 -0
- package/lib/typescript/src/components/Auth/SignUp/SignUp.d.ts.map +1 -1
- package/lib/typescript/src/components/Auth/SplashScreen/SplashScreen.d.ts.map +1 -1
- package/lib/typescript/src/components/Auth/SplashScreen/components/SplashImage/SplashImage.d.ts +0 -4
- package/lib/typescript/src/components/Auth/SplashScreen/components/SplashImage/SplashImage.d.ts.map +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 +2 -1
- package/lib/typescript/src/components/Auth/index.d.ts.map +1 -1
- package/lib/typescript/src/components/BackgroundLayout/BackgroundLayout.d.ts.map +1 -1
- package/lib/typescript/src/components/BlogView/BlogView.d.ts +0 -4
- package/lib/typescript/src/components/BlogView/BlogView.d.ts.map +1 -1
- package/lib/typescript/src/components/Button/BackBtn.d.ts.map +1 -1
- package/lib/typescript/src/components/Button/MenuBtn.d.ts.map +1 -1
- package/lib/typescript/src/components/Button/PrimaryBtn.d.ts.map +1 -1
- package/lib/typescript/src/components/Button/TextButton.d.ts.map +1 -1
- package/lib/typescript/src/components/Content/Card/Category/Category.d.ts +1 -1
- 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.map +1 -1
- 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.map +1 -1
- 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.map +1 -1
- 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.map +1 -1
- 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.map +1 -1
- 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.map +1 -1
- package/lib/typescript/src/components/Content/Card/components/CardPoster.d.ts +0 -8
- package/lib/typescript/src/components/Content/Card/components/CardPoster.d.ts.map +1 -1
- package/lib/typescript/src/components/Content/Card/components/NavigateToMore.d.ts.map +1 -1
- package/lib/typescript/src/components/Content/Card/components/NoContentFallback.d.ts +1 -2
- package/lib/typescript/src/components/Content/Card/components/NoContentFallback.d.ts.map +1 -1
- package/lib/typescript/src/components/Content/Card/components/ShowAllButton.d.ts.map +1 -1
- package/lib/typescript/src/components/Content/Card/components/ThumbnailCard.d.ts.map +1 -1
- package/lib/typescript/src/components/Content/Card/index.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.map +1 -1
- package/lib/typescript/src/components/ContentView/ContentView.d.ts +1 -2
- package/lib/typescript/src/components/ContentView/ContentView.d.ts.map +1 -1
- package/lib/typescript/src/components/ContentView/MoreContentList.d.ts.map +1 -1
- package/lib/typescript/src/components/ContentView/components/AboutSection.d.ts +1 -2
- package/lib/typescript/src/components/ContentView/components/AboutSection.d.ts.map +1 -1
- package/lib/typescript/src/components/ContentView/components/CastCard.d.ts +1 -6
- package/lib/typescript/src/components/ContentView/components/CastCard.d.ts.map +1 -1
- package/lib/typescript/src/components/ContentView/components/EpisodeCard.d.ts +1 -2
- package/lib/typescript/src/components/ContentView/components/EpisodeCard.d.ts.map +1 -1
- package/lib/typescript/src/components/ContentView/components/GenreTags.d.ts +1 -1
- package/lib/typescript/src/components/ContentView/components/GenreTags.d.ts.map +1 -1
- package/lib/typescript/src/components/ContentView/components/HeroBanner.d.ts +1 -2
- package/lib/typescript/src/components/ContentView/components/HeroBanner.d.ts.map +1 -1
- package/lib/typescript/src/components/ContentView/components/PlayButton.d.ts +1 -2
- package/lib/typescript/src/components/ContentView/components/PlayButton.d.ts.map +1 -1
- package/lib/typescript/src/components/ContentView/components/Title.d.ts +1 -1
- package/lib/typescript/src/components/ContentView/components/Title.d.ts.map +1 -1
- package/lib/typescript/src/components/ContentView/components/TrailerButton.d.ts +1 -2
- package/lib/typescript/src/components/ContentView/components/TrailerButton.d.ts.map +1 -1
- package/lib/typescript/src/components/Headers/AppHeader.d.ts.map +1 -1
- package/lib/typescript/src/components/Headers/One.d.ts.map +1 -1
- package/lib/typescript/src/components/Headers/Three.d.ts.map +1 -1
- package/lib/typescript/src/components/Headers/Two.d.ts.map +1 -1
- package/lib/typescript/src/components/Input/InputOne.d.ts.map +1 -1
- package/lib/typescript/src/components/Input/InputTwo.d.ts.map +1 -1
- package/lib/typescript/src/components/Input/PhoneNumberInput.d.ts.map +1 -1
- package/lib/typescript/src/components/Keyboard/HideKeyboard.d.ts.map +1 -1
- package/lib/typescript/src/components/Loader/Loader.d.ts +0 -4
- package/lib/typescript/src/components/Loader/Loader.d.ts.map +1 -1
- package/lib/typescript/src/components/Logo/Logo.d.ts.map +1 -1
- package/lib/typescript/src/components/Reels/ReelsSeries/Model/Episodes.d.ts +12 -0
- package/lib/typescript/src/components/Reels/ReelsSeries/Model/Episodes.d.ts.map +1 -0
- package/lib/typescript/src/components/Reels/ReelsSeries/Model/Synopsis.d.ts +9 -0
- package/lib/typescript/src/components/Reels/ReelsSeries/Model/Synopsis.d.ts.map +1 -0
- package/lib/typescript/src/components/Reels/ReelsSeries/ReelSeriesDetailsModal.d.ts +13 -0
- package/lib/typescript/src/components/Reels/ReelsSeries/ReelSeriesDetailsModal.d.ts.map +1 -0
- package/lib/typescript/src/components/Reels/ReelsSeries/ReelSeriesOverlay.d.ts +18 -0
- package/lib/typescript/src/components/Reels/ReelsSeries/ReelSeriesOverlay.d.ts.map +1 -0
- package/lib/typescript/src/components/Reels/ReelsSeries/ReelsSeries.d.ts +15 -0
- package/lib/typescript/src/components/Reels/ReelsSeries/ReelsSeries.d.ts.map +1 -0
- package/lib/typescript/src/components/Reels/ReelsSeries/ReelsSeriesItem.d.ts +18 -0
- package/lib/typescript/src/components/Reels/ReelsSeries/ReelsSeriesItem.d.ts.map +1 -0
- package/lib/typescript/src/components/Reels/ReelsSeries/types.d.ts +24 -0
- package/lib/typescript/src/components/Reels/ReelsSeries/types.d.ts.map +1 -0
- package/lib/typescript/src/components/Reels/index.d.ts +8 -0
- package/lib/typescript/src/components/Reels/index.d.ts.map +1 -0
- package/lib/typescript/src/components/Search/One.d.ts.map +1 -1
- package/lib/typescript/src/components/Search/components/RecentSearchesSection.d.ts.map +1 -1
- package/lib/typescript/src/components/Search/components/SearchCard.d.ts.map +1 -1
- package/lib/typescript/src/components/Settings/AppSettings.d.ts.map +1 -1
- package/lib/typescript/src/components/Subscription/SubOne.d.ts +1 -1
- package/lib/typescript/src/components/Subscription/SubOne.d.ts.map +1 -1
- package/lib/typescript/src/components/Subscription/index.d.ts +2 -2
- 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.map +1 -1
- package/lib/typescript/src/components/TabBar/Two.d.ts +1 -1
- package/lib/typescript/src/components/TabBar/Two.d.ts.map +1 -1
- package/lib/typescript/src/components/TabBar/index.d.ts +2 -2
- package/lib/typescript/src/components/Text/Text.d.ts.map +1 -1
- package/lib/typescript/src/components/User/DeviceSessions/DeviceSessions.d.ts +2 -1
- package/lib/typescript/src/components/User/DeviceSessions/DeviceSessions.d.ts.map +1 -1
- package/lib/typescript/src/components/User/ProfileUpdate/ProfileUpdate.d.ts +27 -0
- package/lib/typescript/src/components/User/ProfileUpdate/ProfileUpdate.d.ts.map +1 -0
- package/lib/typescript/src/components/User/WatchHistory/WatchHistory.d.ts.map +1 -1
- package/lib/typescript/src/components/User/WatchLater/WatchLater.d.ts.map +1 -1
- package/lib/typescript/src/components/User/components/UserAvatar.d.ts.map +1 -1
- package/lib/typescript/src/components/User/components/UserSection.d.ts.map +1 -1
- package/lib/typescript/src/components/User/index.d.ts +2 -1
- package/lib/typescript/src/components/User/index.d.ts.map +1 -1
- package/lib/typescript/src/components/View/View.d.ts.map +1 -1
- package/lib/typescript/src/components/index.d.ts +2 -0
- package/lib/typescript/src/components/index.d.ts.map +1 -1
- package/lib/typescript/src/components/layout/SafeAreaWrapper.d.ts.map +1 -1
- package/lib/typescript/src/constants/dummySections.d.ts.map +1 -1
- package/lib/typescript/src/hooks/useDebounce.d.ts.map +1 -1
- package/lib/typescript/src/hooks/useInitSplashCacheSync.d.ts +1 -1
- package/lib/typescript/src/hooks/useInitSplashCacheSync.d.ts.map +1 -1
- package/lib/typescript/src/hooks/useKeyboard.d.ts.map +1 -1
- package/lib/typescript/src/hooks/usePaginatedSection.d.ts.map +1 -1
- package/lib/typescript/src/index.d.ts.map +1 -1
- package/lib/typescript/src/store/RecentSearchesStore.d.ts +5 -3
- package/lib/typescript/src/store/RecentSearchesStore.d.ts.map +1 -1
- package/lib/typescript/src/store/splashStore.d.ts +5 -3
- package/lib/typescript/src/store/splashStore.d.ts.map +1 -1
- package/lib/typescript/src/theme/ThemeProvider.d.ts.map +1 -1
- package/lib/typescript/src/theme/hook/useTheme.d.ts.map +1 -1
- package/lib/typescript/src/theme/index.d.ts +5 -0
- package/lib/typescript/src/theme/index.d.ts.map +1 -1
- package/lib/typescript/src/theme/themes.d.ts +12 -4
- package/lib/typescript/src/theme/themes.d.ts.map +1 -1
- package/lib/typescript/src/types/content/content-view.types.d.ts.map +1 -1
- package/lib/typescript/src/types/hook/usePaginatedSetion.d.ts +1 -1
- package/lib/typescript/src/types/hook/usePaginatedSetion.d.ts.map +1 -1
- package/lib/typescript/src/utils/Formater.d.ts +2 -0
- package/lib/typescript/src/utils/Formater.d.ts.map +1 -0
- package/package.json +175 -70
- package/src/Styles/globalStyles.ts +18 -18
- package/src/assets/animations/135037-payment-processing-error.json +1347 -1
- package/src/assets/animations/7227-vui-animation.json +3377 -1
- package/src/assets/animations/heart.json +788 -0
- package/src/assets/animations/succesfull-payment.json +2379 -1
- package/src/assets/animations/voice-icon.json +542 -1
- package/src/components/Account/Account.tsx +139 -61
- package/src/components/Alert/UAAlert.tsx +168 -0
- package/src/components/Alert/index.ts +1 -0
- package/src/components/Auth/ForgotPassword/ForgotPassword.tsx +53 -23
- package/src/components/Auth/Login/LoginWithEmail.tsx +62 -32
- package/src/components/Auth/Login/LoginWithPhone.tsx +55 -24
- package/src/components/Auth/OTP/OTP.tsx +77 -32
- package/src/components/Auth/QrLogin/QrLogin.tsx +306 -0
- package/src/components/Auth/QrLogin/components/QrViewArea.tsx +213 -0
- package/src/components/Auth/SignUp/SignUp.tsx +67 -32
- package/src/components/Auth/SplashScreen/SplashScreen.tsx +44 -16
- package/src/components/Auth/SplashScreen/components/SplashImage/SplashImage.tsx +21 -12
- package/src/components/Auth/SplashScreen/components/SplashLottie/SplashLottie.tsx +5 -5
- package/src/components/Auth/SplashScreen/components/SplashVideo/SplashVideo.tsx +15 -5
- package/src/components/Auth/index.ts +3 -1
- package/src/components/BackgroundLayout/BackgroundLayout.tsx +45 -17
- package/src/components/BlogView/BlogView.tsx +51 -31
- package/src/components/Button/BackBtn.tsx +31 -9
- package/src/components/Button/MenuBtn.tsx +61 -22
- package/src/components/Button/PrimaryBtn.tsx +30 -10
- package/src/components/Button/TextButton.tsx +30 -15
- package/src/components/Button/index.ts +1 -1
- package/src/components/Content/Card/Category/Category.tsx +73 -32
- package/src/components/Content/Card/NowWatching/NowWatching.tsx +102 -44
- package/src/components/Content/Card/Sliders/Styles/One.tsx +89 -38
- package/src/components/Content/Card/Sliders/Styles/Two.tsx +47 -21
- package/src/components/Content/Card/Sliders/index.ts +2 -2
- package/src/components/Content/Card/Styles/Five.tsx +65 -22
- package/src/components/Content/Card/Styles/Four.tsx +73 -23
- package/src/components/Content/Card/Styles/One.tsx +68 -21
- package/src/components/Content/Card/Styles/RotateInOut.tsx +59 -23
- package/src/components/Content/Card/Styles/Six.tsx +57 -19
- package/src/components/Content/Card/Styles/Three.tsx +59 -23
- package/src/components/Content/Card/Styles/TopTen.tsx +59 -26
- package/src/components/Content/Card/Styles/Two.tsx +39 -18
- package/src/components/Content/Card/components/CardPoster.tsx +34 -32
- package/src/components/Content/Card/components/NavigateToMore.tsx +17 -7
- package/src/components/Content/Card/components/NoContentFallback.tsx +36 -19
- package/src/components/Content/Card/components/ShowAllButton.tsx +12 -8
- package/src/components/Content/Card/components/ThumbnailCard.tsx +26 -17
- package/src/components/Content/Card/index.ts +2 -2
- package/src/components/Content/Content.tsx +41 -17
- package/src/components/Content/Sections.tsx +14 -8
- package/src/components/ContentView/ContentView.tsx +34 -27
- package/src/components/ContentView/MoreContentList.tsx +40 -18
- package/src/components/ContentView/components/AboutSection.tsx +30 -12
- package/src/components/ContentView/components/CastCard.tsx +65 -24
- package/src/components/ContentView/components/EpisodeCard.tsx +109 -44
- package/src/components/ContentView/components/GenreTags.tsx +35 -11
- package/src/components/ContentView/components/HeroBanner.tsx +52 -21
- package/src/components/ContentView/components/PlayButton.tsx +13 -5
- package/src/components/ContentView/components/Title.tsx +30 -10
- package/src/components/ContentView/components/TrailerButton.tsx +16 -7
- package/src/components/Headers/AppHeader.tsx +41 -15
- package/src/components/Headers/One.tsx +19 -10
- package/src/components/Headers/Three.tsx +22 -7
- package/src/components/Headers/Two.tsx +25 -14
- package/src/components/Headers/index.ts +1 -1
- package/src/components/Input/Input.ts +1 -1
- package/src/components/Input/InputOne.tsx +69 -23
- package/src/components/Input/InputTwo.tsx +41 -18
- package/src/components/Input/PhoneNumberInput.tsx +94 -48
- package/src/components/Keyboard/HideKeyboard.tsx +16 -10
- package/src/components/Loader/Loader.tsx +3 -8
- package/src/components/Logo/Logo.tsx +17 -9
- package/src/components/Reels/ReelsSeries/Model/Episodes.tsx +133 -0
- package/src/components/Reels/ReelsSeries/Model/Synopsis.tsx +249 -0
- package/src/components/Reels/ReelsSeries/ReelSeriesDetailsModal.tsx +209 -0
- package/src/components/Reels/ReelsSeries/ReelSeriesOverlay.tsx +185 -0
- package/src/components/Reels/ReelsSeries/ReelsSeries.tsx +163 -0
- package/src/components/Reels/ReelsSeries/ReelsSeriesItem.tsx +333 -0
- package/src/components/Reels/ReelsSeries/types.ts +27 -0
- package/src/components/Reels/index.ts +8 -0
- package/src/components/Search/One.tsx +46 -17
- package/src/components/Search/components/RecentSearchesSection.tsx +48 -21
- package/src/components/Search/components/SearchCard.tsx +34 -16
- package/src/components/Search/index.ts +1 -1
- package/src/components/Settings/AppSettings.tsx +80 -29
- package/src/components/Subscription/SubOne.tsx +84 -39
- package/src/components/Subscription/index.ts +1 -1
- package/src/components/TabBar/One.tsx +22 -18
- package/src/components/TabBar/Three.tsx +55 -19
- package/src/components/TabBar/Two.tsx +16 -12
- package/src/components/TabBar/index.ts +1 -1
- package/src/components/Text/Text.tsx +7 -3
- package/src/components/User/DeviceSessions/DeviceSessions.tsx +104 -38
- package/src/components/User/ProfileUpdate/ProfileUpdate.tsx +265 -0
- package/src/components/User/WatchHistory/WatchHistory.tsx +37 -12
- package/src/components/User/WatchLater/WatchLater.tsx +94 -31
- package/src/components/User/components/UserAvatar.tsx +8 -4
- package/src/components/User/components/UserSection.tsx +39 -27
- package/src/components/User/index.ts +3 -1
- package/src/components/View/View.tsx +11 -2
- package/src/components/index.ts +2 -0
- package/src/components/layout/SafeAreaWrapper.tsx +10 -4
- package/src/constants/dummySections.ts +9 -7
- package/src/hooks/useDebounce.ts +4 -1
- package/src/hooks/useInitSplashCacheSync.ts +46 -18
- package/src/hooks/useKeyboard.ts +5 -3
- package/src/hooks/usePaginatedSection.ts +11 -7
- package/src/store/RecentSearchesStore.ts +12 -7
- package/src/store/splashStore.ts +16 -16
- package/src/theme/ThemeProvider.tsx +57 -24
- package/src/theme/hook/useTheme.ts +7 -3
- package/src/theme/index.ts +6 -0
- package/src/theme/themes.ts +45 -31
- package/src/types/content/content-view.types.ts +4 -1
- package/src/types/hook/usePaginatedSetion.ts +1 -1
- package/src/utils/Formater.ts +14 -0
- package/lib/module/components/Icons/AlertIcon.js +0 -33
- package/lib/module/components/Icons/AlertIcon.js.map +0 -1
- package/lib/module/components/Icons/DeviceIcon.js +0 -25
- package/lib/module/components/Icons/DeviceIcon.js.map +0 -1
- package/lib/module/components/Icons/DoneIcon/DoneIcon.js +0 -23
- package/lib/module/components/Icons/DoneIcon/DoneIcon.js.map +0 -1
- package/lib/module/components/Icons/ForgotPasswordMessageIcon.js +0 -65
- package/lib/module/components/Icons/ForgotPasswordMessageIcon.js.map +0 -1
- package/lib/module/components/Icons/ForgotPasswordMessageIconTwo.js +0 -56
- package/lib/module/components/Icons/ForgotPasswordMessageIconTwo.js.map +0 -1
- package/lib/module/components/Icons/NewIndex.js +0 -36
- package/lib/module/components/Icons/NewIndex.js.map +0 -1
- package/lib/module/components/Icons/ResendOTP.js +0 -21
- package/lib/module/components/Icons/ResendOTP.js.map +0 -1
- package/lib/typescript/src/components/Icons/AlertIcon.d.ts +0 -7
- package/lib/typescript/src/components/Icons/AlertIcon.d.ts.map +0 -1
- package/lib/typescript/src/components/Icons/DeviceIcon.d.ts +0 -7
- package/lib/typescript/src/components/Icons/DeviceIcon.d.ts.map +0 -1
- package/lib/typescript/src/components/Icons/DoneIcon/DoneIcon.d.ts +0 -6
- package/lib/typescript/src/components/Icons/DoneIcon/DoneIcon.d.ts.map +0 -1
- package/lib/typescript/src/components/Icons/ForgotPasswordMessageIcon.d.ts +0 -3
- package/lib/typescript/src/components/Icons/ForgotPasswordMessageIcon.d.ts.map +0 -1
- package/lib/typescript/src/components/Icons/ForgotPasswordMessageIconTwo.d.ts +0 -3
- package/lib/typescript/src/components/Icons/ForgotPasswordMessageIconTwo.d.ts.map +0 -1
- package/lib/typescript/src/components/Icons/NewIndex.d.ts +0 -19
- package/lib/typescript/src/components/Icons/NewIndex.d.ts.map +0 -1
- package/lib/typescript/src/components/Icons/ResendOTP.d.ts +0 -7
- package/lib/typescript/src/components/Icons/ResendOTP.d.ts.map +0 -1
- package/src/components/Icons/AlertIcon.tsx +0 -18
- package/src/components/Icons/DeviceIcon.tsx +0 -18
- package/src/components/Icons/DoneIcon/DoneIcon.tsx +0 -17
- package/src/components/Icons/ForgotPasswordMessageIcon.tsx +0 -34
- package/src/components/Icons/ForgotPasswordMessageIconTwo.tsx +0 -32
- package/src/components/Icons/NewIndex.ts +0 -35
- package/src/components/Icons/ResendOTP.tsx +0 -13
- /package/lib/module/assets/{img → svg}/h.svg +0 -0
- /package/src/assets/{img → svg}/h.svg +0 -0
- /package/src/{index.ts → index.tsx} +0 -0
|
@@ -12,13 +12,25 @@ import { useSplashStore } from '../store/splashStore';
|
|
|
12
12
|
const mmkvStorage = new MMKV();
|
|
13
13
|
const inFlightDownloadsMap = new Map<string, Promise<string | null>>();
|
|
14
14
|
|
|
15
|
-
const SUPPORTED_FILE_TYPES = [
|
|
15
|
+
const SUPPORTED_FILE_TYPES = [
|
|
16
|
+
'json',
|
|
17
|
+
'mp4',
|
|
18
|
+
'jpg',
|
|
19
|
+
'jpeg',
|
|
20
|
+
'png',
|
|
21
|
+
'webp',
|
|
22
|
+
] as const;
|
|
16
23
|
|
|
17
24
|
const extractFileExtension = (url: string): string => {
|
|
18
25
|
try {
|
|
19
26
|
const cleanUrl = url.split('?')[0];
|
|
20
|
-
const ext =
|
|
21
|
-
|
|
27
|
+
const ext =
|
|
28
|
+
cleanUrl?.substring(cleanUrl.lastIndexOf('.') + 1).toLowerCase() || '';
|
|
29
|
+
return SUPPORTED_FILE_TYPES.includes(
|
|
30
|
+
ext as (typeof SUPPORTED_FILE_TYPES)[number]
|
|
31
|
+
)
|
|
32
|
+
? ext
|
|
33
|
+
: 'png';
|
|
22
34
|
} catch {
|
|
23
35
|
return 'png';
|
|
24
36
|
}
|
|
@@ -34,7 +46,7 @@ const cacheSplashAsset = async (
|
|
|
34
46
|
|
|
35
47
|
const ext = extension.replace(/^\./, '').trim() || 'mp4';
|
|
36
48
|
const hash = CryptoJS.MD5(`${url}|${mmkvKey}|${ext}`).toString();
|
|
37
|
-
const localPath = `${RNFS
|
|
49
|
+
const localPath = `${RNFS?.CachesDirectoryPath}/splash_${hash}.${ext}`;
|
|
38
50
|
|
|
39
51
|
if (inFlightDownloadsMap.has(hash)) {
|
|
40
52
|
return inFlightDownloadsMap.get(hash)!;
|
|
@@ -45,26 +57,26 @@ const cacheSplashAsset = async (
|
|
|
45
57
|
const previousHash = mmkvStorage.getString(mmkvKey);
|
|
46
58
|
|
|
47
59
|
if (previousHash && previousHash !== hash) {
|
|
48
|
-
const oldPath = `${RNFS
|
|
49
|
-
const exists = await RNFS
|
|
60
|
+
const oldPath = `${RNFS?.CachesDirectoryPath}/splash_${previousHash}.${ext}`;
|
|
61
|
+
const exists = await RNFS?.exists(oldPath);
|
|
50
62
|
if (exists) {
|
|
51
|
-
await RNFS
|
|
63
|
+
await RNFS?.unlink(oldPath).catch(() => {});
|
|
52
64
|
}
|
|
53
65
|
}
|
|
54
66
|
|
|
55
67
|
if (!forceDownload) {
|
|
56
|
-
const exists = await RNFS
|
|
68
|
+
const exists = await RNFS?.exists(localPath);
|
|
57
69
|
if (exists && previousHash === hash) {
|
|
58
70
|
return localPath;
|
|
59
71
|
}
|
|
60
72
|
}
|
|
61
73
|
|
|
62
|
-
const { statusCode } = await RNFS
|
|
74
|
+
const { statusCode } = await RNFS?.downloadFile({
|
|
63
75
|
fromUrl: url,
|
|
64
76
|
toFile: localPath,
|
|
65
77
|
cacheable: true,
|
|
66
78
|
readTimeout: 15000,
|
|
67
|
-
connectionTimeout: 10000
|
|
79
|
+
connectionTimeout: 10000,
|
|
68
80
|
}).promise;
|
|
69
81
|
|
|
70
82
|
if (statusCode === 200) {
|
|
@@ -89,11 +101,11 @@ type UseSplashCacheSyncOptions = {
|
|
|
89
101
|
export const useInitSplashCacheSync = ({
|
|
90
102
|
logoUrl,
|
|
91
103
|
backgroundUrl,
|
|
92
|
-
forceDownload = false
|
|
104
|
+
forceDownload = false,
|
|
93
105
|
}: UseSplashCacheSyncOptions) => {
|
|
94
106
|
const [splashSyncState, setSplashSyncState] = useState({
|
|
95
107
|
isReady: false,
|
|
96
|
-
error: null as Error | null
|
|
108
|
+
error: null as Error | null,
|
|
97
109
|
});
|
|
98
110
|
|
|
99
111
|
const setSplashLogoPath = useSplashStore((s) => s.setLogoPath);
|
|
@@ -106,11 +118,21 @@ export const useInitSplashCacheSync = ({
|
|
|
106
118
|
try {
|
|
107
119
|
const [logoPath, backgroundPath] = await Promise.all([
|
|
108
120
|
logoUrl
|
|
109
|
-
? cacheSplashAsset(
|
|
121
|
+
? cacheSplashAsset(
|
|
122
|
+
logoUrl,
|
|
123
|
+
extractFileExtension(logoUrl),
|
|
124
|
+
'splash_logo',
|
|
125
|
+
forceDownload
|
|
126
|
+
)
|
|
110
127
|
: Promise.resolve(null),
|
|
111
128
|
backgroundUrl
|
|
112
|
-
? cacheSplashAsset(
|
|
113
|
-
|
|
129
|
+
? cacheSplashAsset(
|
|
130
|
+
backgroundUrl,
|
|
131
|
+
extractFileExtension(backgroundUrl),
|
|
132
|
+
'splash_background',
|
|
133
|
+
forceDownload
|
|
134
|
+
)
|
|
135
|
+
: Promise.resolve(null),
|
|
114
136
|
]);
|
|
115
137
|
|
|
116
138
|
if (!isMounted) return;
|
|
@@ -130,7 +152,13 @@ export const useInitSplashCacheSync = ({
|
|
|
130
152
|
return () => {
|
|
131
153
|
isMounted = false;
|
|
132
154
|
};
|
|
133
|
-
}, [
|
|
155
|
+
}, [
|
|
156
|
+
logoUrl,
|
|
157
|
+
backgroundUrl,
|
|
158
|
+
forceDownload,
|
|
159
|
+
setSplashLogoPath,
|
|
160
|
+
setSplashBackgroundPath,
|
|
161
|
+
]);
|
|
134
162
|
|
|
135
163
|
const splashLogoLocalPath = useSplashStore((s) => s.logo.localPath);
|
|
136
164
|
const splashBackgroundLocalPath = useSplashStore((s) => s.backdrop.localPath);
|
|
@@ -140,7 +168,7 @@ export const useInitSplashCacheSync = ({
|
|
|
140
168
|
isLoading: !splashSyncState.isReady && !splashSyncState.error,
|
|
141
169
|
data: {
|
|
142
170
|
localPathLogo: splashLogoLocalPath,
|
|
143
|
-
localPathBackground: splashBackgroundLocalPath
|
|
144
|
-
}
|
|
171
|
+
localPathBackground: splashBackgroundLocalPath,
|
|
172
|
+
},
|
|
145
173
|
};
|
|
146
174
|
};
|
package/src/hooks/useKeyboard.ts
CHANGED
|
@@ -10,8 +10,10 @@ export const useKeyboard = () => {
|
|
|
10
10
|
const [isKeyboardOpen, setKeyboardOpen] = useState(false);
|
|
11
11
|
|
|
12
12
|
useEffect(() => {
|
|
13
|
-
const showEvent =
|
|
14
|
-
|
|
13
|
+
const showEvent =
|
|
14
|
+
Platform.OS === 'ios' ? 'keyboardWillShow' : 'keyboardDidShow';
|
|
15
|
+
const hideEvent =
|
|
16
|
+
Platform.OS === 'ios' ? 'keyboardWillHide' : 'keyboardDidHide';
|
|
15
17
|
|
|
16
18
|
const showListener = Keyboard.addListener(showEvent, () => {
|
|
17
19
|
setKeyboardOpen(true);
|
|
@@ -29,6 +31,6 @@ export const useKeyboard = () => {
|
|
|
29
31
|
|
|
30
32
|
return {
|
|
31
33
|
isKeyboardOpen,
|
|
32
|
-
hideKeyboard: () => Keyboard.dismiss()
|
|
34
|
+
hideKeyboard: () => Keyboard.dismiss(),
|
|
33
35
|
};
|
|
34
36
|
};
|
|
@@ -17,7 +17,7 @@ export function usePaginatedSection<T>(
|
|
|
17
17
|
nextPage: number | null;
|
|
18
18
|
}>({
|
|
19
19
|
hasNextPage: true,
|
|
20
|
-
nextPage: 2
|
|
20
|
+
nextPage: 2,
|
|
21
21
|
});
|
|
22
22
|
const [loading, setLoading] = useState(false);
|
|
23
23
|
|
|
@@ -38,8 +38,8 @@ export function usePaginatedSection<T>(
|
|
|
38
38
|
sectionId,
|
|
39
39
|
meta: {
|
|
40
40
|
hasNextPage: pagination.hasNextPage,
|
|
41
|
-
nextPage: page
|
|
42
|
-
}
|
|
41
|
+
nextPage: page,
|
|
42
|
+
},
|
|
43
43
|
});
|
|
44
44
|
|
|
45
45
|
if (!res || !res.data || !res.meta?.pagination) {
|
|
@@ -50,14 +50,18 @@ export function usePaginatedSection<T>(
|
|
|
50
50
|
const { hasNextPage, nextPage } = res.meta.pagination;
|
|
51
51
|
|
|
52
52
|
setData((prev) => {
|
|
53
|
-
const existingIds = new Set(
|
|
54
|
-
|
|
53
|
+
const existingIds = new Set(
|
|
54
|
+
(prev as any[]).map((item: any) => item._id)
|
|
55
|
+
);
|
|
56
|
+
const newItems = res.data.filter(
|
|
57
|
+
(item: any) => !existingIds.has(item._id)
|
|
58
|
+
);
|
|
55
59
|
return [...prev, ...newItems];
|
|
56
60
|
});
|
|
57
61
|
|
|
58
62
|
setPagination({
|
|
59
63
|
hasNextPage,
|
|
60
|
-
nextPage
|
|
64
|
+
nextPage,
|
|
61
65
|
});
|
|
62
66
|
} catch (err) {
|
|
63
67
|
console.error(`❌ Error loading section [${sectionId}]:`, err);
|
|
@@ -73,6 +77,6 @@ export function usePaginatedSection<T>(
|
|
|
73
77
|
pagination,
|
|
74
78
|
loading,
|
|
75
79
|
hasMore: pagination.hasNextPage,
|
|
76
|
-
loadMoreData
|
|
80
|
+
loadMoreData,
|
|
77
81
|
};
|
|
78
82
|
}
|
|
@@ -33,32 +33,37 @@ export const useRecentSearchesStore = create<RecentSearchesState>()(
|
|
|
33
33
|
|
|
34
34
|
const maxCount = limit ?? get().pillMaxCount;
|
|
35
35
|
const current = get().recentSearches;
|
|
36
|
-
const updated = [
|
|
36
|
+
const updated = [
|
|
37
|
+
trimmed,
|
|
38
|
+
...current.filter((t) => t !== trimmed),
|
|
39
|
+
].slice(0, maxCount);
|
|
37
40
|
set({ recentSearches: updated });
|
|
38
41
|
},
|
|
39
42
|
|
|
40
43
|
removeSearchTerm: (term) =>
|
|
41
44
|
set((state) => ({
|
|
42
|
-
recentSearches: state.recentSearches.filter((t) => t !== term)
|
|
45
|
+
recentSearches: state.recentSearches.filter((t) => t !== term),
|
|
43
46
|
})),
|
|
44
47
|
|
|
45
48
|
clearSearches: () => set({ recentSearches: [] }),
|
|
46
49
|
|
|
47
|
-
setPillMaxCount: (count) => set({ pillMaxCount: count })
|
|
50
|
+
setPillMaxCount: (count) => set({ pillMaxCount: count }),
|
|
48
51
|
}),
|
|
49
52
|
{
|
|
50
53
|
name: 'recent-searches-storage',
|
|
51
54
|
storage: createJSONStorage(() => ({
|
|
52
55
|
getItem: (name) => mmkv.getString(name) ?? null,
|
|
53
56
|
setItem: (name, value) => mmkv.set(name, value),
|
|
54
|
-
removeItem: (name) => mmkv.delete(name)
|
|
57
|
+
removeItem: (name) => mmkv.delete(name),
|
|
55
58
|
})),
|
|
56
59
|
partialize: (state) => ({
|
|
57
60
|
recentSearches: state.recentSearches,
|
|
58
|
-
pillMaxCount: state.pillMaxCount
|
|
61
|
+
pillMaxCount: state.pillMaxCount,
|
|
59
62
|
}),
|
|
60
63
|
onRehydrateStorage: () => (state) => {
|
|
61
|
-
const hasData =
|
|
64
|
+
const hasData =
|
|
65
|
+
(state?.recentSearches?.length ?? 0) > 0 ||
|
|
66
|
+
(state?.pillMaxCount ?? 20) !== 20;
|
|
62
67
|
|
|
63
68
|
if (hasData) {
|
|
64
69
|
setTimeout(() => {
|
|
@@ -68,7 +73,7 @@ export const useRecentSearchesStore = create<RecentSearchesState>()(
|
|
|
68
73
|
} else {
|
|
69
74
|
useRecentSearchesStore.setState({ isLoading: false });
|
|
70
75
|
}
|
|
71
|
-
}
|
|
76
|
+
},
|
|
72
77
|
}
|
|
73
78
|
)
|
|
74
79
|
);
|
package/src/store/splashStore.ts
CHANGED
|
@@ -28,11 +28,11 @@ export const useSplashStore = create<SplashState>()(
|
|
|
28
28
|
(set) => ({
|
|
29
29
|
logo: {
|
|
30
30
|
localPath: null,
|
|
31
|
-
lastUpdated: null
|
|
31
|
+
lastUpdated: null,
|
|
32
32
|
},
|
|
33
33
|
backdrop: {
|
|
34
34
|
localPath: null,
|
|
35
|
-
lastUpdated: null
|
|
35
|
+
lastUpdated: null,
|
|
36
36
|
},
|
|
37
37
|
|
|
38
38
|
setLogoPath: (path) =>
|
|
@@ -40,16 +40,16 @@ export const useSplashStore = create<SplashState>()(
|
|
|
40
40
|
logo: {
|
|
41
41
|
...state.logo,
|
|
42
42
|
localPath: path,
|
|
43
|
-
lastUpdated: Date.now()
|
|
44
|
-
}
|
|
43
|
+
lastUpdated: Date.now(),
|
|
44
|
+
},
|
|
45
45
|
})),
|
|
46
46
|
|
|
47
47
|
clearLogoPath: () =>
|
|
48
48
|
set(() => ({
|
|
49
49
|
logo: {
|
|
50
50
|
localPath: null,
|
|
51
|
-
lastUpdated: null
|
|
52
|
-
}
|
|
51
|
+
lastUpdated: null,
|
|
52
|
+
},
|
|
53
53
|
})),
|
|
54
54
|
|
|
55
55
|
setBackdropPath: (path) =>
|
|
@@ -57,35 +57,35 @@ export const useSplashStore = create<SplashState>()(
|
|
|
57
57
|
backdrop: {
|
|
58
58
|
...state.backdrop,
|
|
59
59
|
localPath: path,
|
|
60
|
-
lastUpdated: Date.now()
|
|
61
|
-
}
|
|
60
|
+
lastUpdated: Date.now(),
|
|
61
|
+
},
|
|
62
62
|
})),
|
|
63
63
|
|
|
64
64
|
clearBackdropPath: () =>
|
|
65
65
|
set(() => ({
|
|
66
66
|
backdrop: {
|
|
67
67
|
localPath: null,
|
|
68
|
-
lastUpdated: null
|
|
69
|
-
}
|
|
70
|
-
}))
|
|
68
|
+
lastUpdated: null,
|
|
69
|
+
},
|
|
70
|
+
})),
|
|
71
71
|
}),
|
|
72
72
|
{
|
|
73
73
|
name: 'splash-storage',
|
|
74
74
|
storage: createJSONStorage(() => ({
|
|
75
75
|
getItem: (name) => mmkv.getString(name) || null, // Updated to use MMKV getString
|
|
76
76
|
setItem: (name, value) => mmkv.set(name, value), // Updated to use MMKV set
|
|
77
|
-
removeItem: (name) => mmkv.delete(name) // Updated to use MMKV delete
|
|
77
|
+
removeItem: (name) => mmkv.delete(name), // Updated to use MMKV delete
|
|
78
78
|
})),
|
|
79
79
|
partialize: (state) => ({
|
|
80
80
|
logo: {
|
|
81
81
|
localPath: state.logo.localPath,
|
|
82
|
-
lastUpdated: state.logo.lastUpdated
|
|
82
|
+
lastUpdated: state.logo.lastUpdated,
|
|
83
83
|
},
|
|
84
84
|
backdrop: {
|
|
85
85
|
localPath: state.backdrop.localPath,
|
|
86
|
-
lastUpdated: state.backdrop.lastUpdated
|
|
87
|
-
}
|
|
88
|
-
})
|
|
86
|
+
lastUpdated: state.backdrop.lastUpdated,
|
|
87
|
+
},
|
|
88
|
+
}),
|
|
89
89
|
}
|
|
90
90
|
)
|
|
91
91
|
);
|
|
@@ -2,10 +2,22 @@
|
|
|
2
2
|
* @author Naresh Dhamu
|
|
3
3
|
* @lastModified Sat 26 Jul 2025 at 02:11 PM
|
|
4
4
|
*/
|
|
5
|
-
import React, {
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
import React, {
|
|
6
|
+
createContext,
|
|
7
|
+
useMemo,
|
|
8
|
+
useState,
|
|
9
|
+
useCallback,
|
|
10
|
+
useEffect,
|
|
11
|
+
useContext,
|
|
12
|
+
type ReactNode,
|
|
13
|
+
} from 'react';
|
|
14
|
+
import { View, StatusBar, Platform, Appearance } from 'react-native';
|
|
15
|
+
import {
|
|
16
|
+
SafeAreaProvider,
|
|
17
|
+
initialWindowMetrics,
|
|
18
|
+
} from 'react-native-safe-area-context';
|
|
8
19
|
import { LightTheme, DarkTheme, type ITheme, type AppTheme } from './themes';
|
|
20
|
+
import { GestureHandlerRootView } from 'react-native-gesture-handler';
|
|
9
21
|
|
|
10
22
|
type ThemeContextType = {
|
|
11
23
|
theme: ITheme;
|
|
@@ -30,17 +42,22 @@ type ZezoUIProviderProps = {
|
|
|
30
42
|
|
|
31
43
|
const getIsDarkMode = (
|
|
32
44
|
autoSwitchTheme: boolean | undefined,
|
|
33
|
-
|
|
45
|
+
colorScheme: 'dark' | 'light' | null,
|
|
34
46
|
userDark?: boolean
|
|
35
47
|
): boolean => {
|
|
36
|
-
if (autoSwitchTheme) return
|
|
48
|
+
if (autoSwitchTheme) return colorScheme === 'dark';
|
|
37
49
|
return userDark ?? false;
|
|
38
50
|
};
|
|
39
51
|
|
|
40
|
-
export const ZezoUIProvider: React.FC<ZezoUIProviderProps> = ({
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
52
|
+
export const ZezoUIProvider: React.FC<ZezoUIProviderProps> = ({
|
|
53
|
+
children,
|
|
54
|
+
theme,
|
|
55
|
+
autoSwitchTheme,
|
|
56
|
+
}) => {
|
|
57
|
+
const colorScheme = Appearance.getColorScheme();
|
|
58
|
+
const [overrideTheme, setOverrideTheme] = useState<
|
|
59
|
+
Partial<AppTheme> | undefined
|
|
60
|
+
>(theme);
|
|
44
61
|
|
|
45
62
|
// ✅ Sync prop to state if changed externally
|
|
46
63
|
useEffect(() => {
|
|
@@ -52,10 +69,17 @@ export const ZezoUIProvider: React.FC<ZezoUIProviderProps> = ({ children, theme,
|
|
|
52
69
|
// ✅ This prioritizes externally passed theme.dark
|
|
53
70
|
const isDarkMode = useMemo(() => {
|
|
54
71
|
if (theme?.dark !== undefined) return theme.dark;
|
|
55
|
-
return getIsDarkMode(
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
72
|
+
return getIsDarkMode(
|
|
73
|
+
autoSwitchTheme,
|
|
74
|
+
colorScheme || 'dark',
|
|
75
|
+
overrideTheme?.dark
|
|
76
|
+
);
|
|
77
|
+
}, [theme?.dark, autoSwitchTheme, colorScheme, overrideTheme?.dark]);
|
|
78
|
+
|
|
79
|
+
const baseTheme = useMemo<ITheme>(
|
|
80
|
+
() => (isDarkMode ? DarkTheme : LightTheme),
|
|
81
|
+
[isDarkMode]
|
|
82
|
+
);
|
|
59
83
|
|
|
60
84
|
const mergedTheme = useMemo<ITheme>(() => {
|
|
61
85
|
return {
|
|
@@ -64,8 +88,8 @@ export const ZezoUIProvider: React.FC<ZezoUIProviderProps> = ({ children, theme,
|
|
|
64
88
|
dark: isDarkMode,
|
|
65
89
|
colors: {
|
|
66
90
|
...baseTheme.colors,
|
|
67
|
-
...(overrideTheme?.colors ?? {})
|
|
68
|
-
}
|
|
91
|
+
...(overrideTheme?.colors ?? {}),
|
|
92
|
+
},
|
|
69
93
|
};
|
|
70
94
|
}, [baseTheme, overrideTheme, isDarkMode]);
|
|
71
95
|
|
|
@@ -73,7 +97,7 @@ export const ZezoUIProvider: React.FC<ZezoUIProviderProps> = ({ children, theme,
|
|
|
73
97
|
if (autoSwitchTheme || theme?.dark !== undefined) return;
|
|
74
98
|
setOverrideTheme((prev) => ({
|
|
75
99
|
...prev,
|
|
76
|
-
dark: !getIsDarkMode(false, null, prev?.dark)
|
|
100
|
+
dark: !getIsDarkMode(false, null, prev?.dark),
|
|
77
101
|
}));
|
|
78
102
|
}, [autoSwitchTheme, theme?.dark]);
|
|
79
103
|
|
|
@@ -82,26 +106,35 @@ export const ZezoUIProvider: React.FC<ZezoUIProviderProps> = ({ children, theme,
|
|
|
82
106
|
}, []);
|
|
83
107
|
|
|
84
108
|
// ✅ Update StatusBar only when required
|
|
109
|
+
|
|
85
110
|
useEffect(() => {
|
|
86
111
|
StatusBar.setBarStyle(isDarkMode ? 'light-content' : 'dark-content', true);
|
|
87
|
-
StatusBar.setBackgroundColor(mergedTheme.colors.background, true);
|
|
88
|
-
}, [isDarkMode, mergedTheme.colors.background]);
|
|
89
112
|
|
|
113
|
+
if (Platform.OS === 'android') {
|
|
114
|
+
StatusBar.setBackgroundColor(mergedTheme.colors.background, true);
|
|
115
|
+
}
|
|
116
|
+
}, [isDarkMode, mergedTheme.colors.background]);
|
|
90
117
|
const contextValue = useMemo(
|
|
91
118
|
() => ({
|
|
92
119
|
theme: mergedTheme,
|
|
93
120
|
isDarkMode,
|
|
94
121
|
toggleTheme,
|
|
95
|
-
setThemeOverride
|
|
122
|
+
setThemeOverride,
|
|
96
123
|
}),
|
|
97
124
|
[mergedTheme, isDarkMode, toggleTheme, setThemeOverride]
|
|
98
125
|
);
|
|
99
126
|
|
|
100
127
|
return (
|
|
101
|
-
<
|
|
102
|
-
<
|
|
103
|
-
<
|
|
104
|
-
|
|
105
|
-
|
|
128
|
+
<GestureHandlerRootView>
|
|
129
|
+
<SafeAreaProvider initialMetrics={initialWindowMetrics}>
|
|
130
|
+
<ThemeContext.Provider value={contextValue}>
|
|
131
|
+
<View
|
|
132
|
+
style={{ flex: 1, backgroundColor: mergedTheme.colors.background }}
|
|
133
|
+
>
|
|
134
|
+
{children}
|
|
135
|
+
</View>
|
|
136
|
+
</ThemeContext.Provider>
|
|
137
|
+
</SafeAreaProvider>
|
|
138
|
+
</GestureHandlerRootView>
|
|
106
139
|
);
|
|
107
140
|
};
|
|
@@ -8,7 +8,11 @@ import { useThemeContext } from '../ThemeProvider';
|
|
|
8
8
|
import { DarkTheme, LightTheme, type AppTheme, type ITheme } from '../themes';
|
|
9
9
|
|
|
10
10
|
export const useTheme = (override?: Partial<AppTheme>): { theme: ITheme } => {
|
|
11
|
-
const {
|
|
11
|
+
const {
|
|
12
|
+
theme: contextTheme,
|
|
13
|
+
isDarkMode,
|
|
14
|
+
setThemeOverride,
|
|
15
|
+
} = useThemeContext();
|
|
12
16
|
|
|
13
17
|
const isOverrideDark = override?.dark ?? contextTheme.dark ?? isDarkMode;
|
|
14
18
|
|
|
@@ -23,8 +27,8 @@ export const useTheme = (override?: Partial<AppTheme>): { theme: ITheme } => {
|
|
|
23
27
|
dark: isOverrideDark,
|
|
24
28
|
colors: {
|
|
25
29
|
...baseTheme.colors,
|
|
26
|
-
...(override?.colors ?? {})
|
|
27
|
-
}
|
|
30
|
+
...(override?.colors ?? {}),
|
|
31
|
+
},
|
|
28
32
|
};
|
|
29
33
|
}, [baseTheme, override, isOverrideDark]);
|
|
30
34
|
|
package/src/theme/index.ts
CHANGED
|
@@ -1,7 +1,13 @@
|
|
|
1
|
+
import type { BaseColors, ITheme } from './themes';
|
|
2
|
+
|
|
1
3
|
/**
|
|
2
4
|
* @author Naresh Dhamu
|
|
3
5
|
* @lastModified Sat 14 Jun 2025 at 11:47 AM
|
|
4
6
|
*/
|
|
7
|
+
export type AppTheme = Omit<ITheme, 'colors'> & {
|
|
8
|
+
dark?: boolean;
|
|
9
|
+
colors?: Partial<BaseColors>;
|
|
10
|
+
};
|
|
5
11
|
|
|
6
12
|
export * from './ThemeProvider';
|
|
7
13
|
export * from './hook/useTheme';
|
package/src/theme/themes.ts
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
export type MD3ElevationColors = {
|
|
2
|
+
level0: string;
|
|
3
|
+
level1: string;
|
|
4
|
+
level2: string;
|
|
5
|
+
level3: string;
|
|
6
|
+
level4: string;
|
|
7
|
+
level5: string;
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
export type BaseColors = {
|
|
9
11
|
primary: string;
|
|
10
12
|
onPrimary: string;
|
|
11
13
|
primaryContainer: string;
|
|
@@ -49,6 +51,7 @@ type BaseColors = {
|
|
|
49
51
|
shadow: string;
|
|
50
52
|
scrim: string;
|
|
51
53
|
backdrop: string;
|
|
54
|
+
overlay: string;
|
|
52
55
|
|
|
53
56
|
inverseSurface: string;
|
|
54
57
|
inverseOnSurface: string;
|
|
@@ -81,22 +84,19 @@ type BaseColors = {
|
|
|
81
84
|
switchThumbColorDisabled: string;
|
|
82
85
|
};
|
|
83
86
|
|
|
84
|
-
export interface ITheme
|
|
85
|
-
|
|
87
|
+
export interface ITheme {
|
|
88
|
+
dark: boolean;
|
|
89
|
+
|
|
86
90
|
colors: BaseColors;
|
|
87
91
|
}
|
|
88
|
-
|
|
89
92
|
export type AppTheme = Omit<ITheme, 'colors'> & {
|
|
90
93
|
dark?: boolean;
|
|
91
94
|
colors?: Partial<BaseColors>;
|
|
92
95
|
};
|
|
93
96
|
|
|
94
97
|
export const LightTheme: ITheme = {
|
|
95
|
-
...DefaultTheme,
|
|
96
98
|
dark: false,
|
|
97
|
-
|
|
98
|
-
version: 3,
|
|
99
|
-
roundness: 4,
|
|
99
|
+
|
|
100
100
|
colors: {
|
|
101
101
|
primary: 'rgba(244, 197, 66, 1)',
|
|
102
102
|
onPrimary: 'rgba(255, 255, 255, 1)',
|
|
@@ -141,6 +141,7 @@ export const LightTheme: ITheme = {
|
|
|
141
141
|
shadow: 'rgba(0, 0, 0, 0.1)',
|
|
142
142
|
scrim: 'rgba(0, 0, 0, 0.2)',
|
|
143
143
|
backdrop: 'rgba(243, 244, 246, 0.7)',
|
|
144
|
+
overlay: 'rgba(0,0,0,0.55)',
|
|
144
145
|
|
|
145
146
|
inverseSurface: 'rgba(31, 41, 55, 1)',
|
|
146
147
|
inverseOnSurface: 'rgba(249, 250, 251, 1)',
|
|
@@ -152,7 +153,7 @@ export const LightTheme: ITheme = {
|
|
|
152
153
|
level2: 'rgba(229, 231, 235, 1)',
|
|
153
154
|
level3: 'rgba(209, 213, 219, 1)',
|
|
154
155
|
level4: 'rgba(156, 163, 175, 1)',
|
|
155
|
-
level5: 'rgba(107, 114, 128, 1)'
|
|
156
|
+
level5: 'rgba(107, 114, 128, 1)',
|
|
156
157
|
},
|
|
157
158
|
|
|
158
159
|
textPrimary: 'rgba(0, 0, 0, 1)',
|
|
@@ -171,12 +172,20 @@ export const LightTheme: ITheme = {
|
|
|
171
172
|
'rgba(255, 255, 255, 0.3)',
|
|
172
173
|
'rgba(255, 255, 255, 0.98)',
|
|
173
174
|
'rgb(255, 255, 255)',
|
|
174
|
-
'rgb(249, 250, 251)'
|
|
175
|
+
'rgb(249, 250, 251)',
|
|
175
176
|
],
|
|
176
177
|
|
|
177
|
-
heroBannerGradient: [
|
|
178
|
+
heroBannerGradient: [
|
|
179
|
+
'rgba(249,250,251,0)',
|
|
180
|
+
'rgba(249,250,251,0.4)',
|
|
181
|
+
'rgba(249,250,251,1)',
|
|
182
|
+
],
|
|
178
183
|
|
|
179
|
-
cardGradient: [
|
|
184
|
+
cardGradient: [
|
|
185
|
+
'rgba(223, 178, 50, 1)',
|
|
186
|
+
'rgba(243, 146, 35, 1)',
|
|
187
|
+
'rgba(248, 159, 16, 1)',
|
|
188
|
+
],
|
|
180
189
|
|
|
181
190
|
skeletonHighlightColor: '#D6D6D6',
|
|
182
191
|
skeletonBaseColor: '#EDEDED',
|
|
@@ -184,16 +193,12 @@ export const LightTheme: ITheme = {
|
|
|
184
193
|
switchTrackColor: '#3CD141',
|
|
185
194
|
switchThumbColor: 'white',
|
|
186
195
|
switchTrackColorDisabled: '#D5D5D5',
|
|
187
|
-
switchThumbColorDisabled: 'white'
|
|
188
|
-
}
|
|
196
|
+
switchThumbColorDisabled: 'white',
|
|
197
|
+
},
|
|
189
198
|
};
|
|
190
199
|
|
|
191
200
|
export const DarkTheme: ITheme = {
|
|
192
|
-
...MD3DarkTheme,
|
|
193
201
|
dark: true,
|
|
194
|
-
isV3: true,
|
|
195
|
-
version: 3,
|
|
196
|
-
roundness: 4,
|
|
197
202
|
colors: {
|
|
198
203
|
primary: 'rgba(244, 197, 66, 1)',
|
|
199
204
|
onPrimary: 'rgba(15, 23, 42, 1)',
|
|
@@ -238,6 +243,7 @@ export const DarkTheme: ITheme = {
|
|
|
238
243
|
shadow: 'rgba(0, 0, 0, 0.5)',
|
|
239
244
|
scrim: 'rgba(0, 0, 0, 0.4)',
|
|
240
245
|
backdrop: 'rgba(30, 41, 59, 0.7)',
|
|
246
|
+
overlay: 'rgba(0,0,0,0.55)',
|
|
241
247
|
|
|
242
248
|
inverseSurface: 'rgba(229, 231, 235, 1)',
|
|
243
249
|
inverseOnSurface: 'rgba(31, 41, 55, 1)',
|
|
@@ -249,7 +255,7 @@ export const DarkTheme: ITheme = {
|
|
|
249
255
|
level2: 'rgba(37, 44, 60, 1)',
|
|
250
256
|
level3: 'rgba(51, 65, 85, 1)',
|
|
251
257
|
level4: 'rgba(71, 85, 105, 1)',
|
|
252
|
-
level5: 'rgba(100, 116, 139, 1)'
|
|
258
|
+
level5: 'rgba(100, 116, 139, 1)',
|
|
253
259
|
},
|
|
254
260
|
|
|
255
261
|
textPrimary: 'rgba(243, 244, 246, 1)',
|
|
@@ -268,11 +274,19 @@ export const DarkTheme: ITheme = {
|
|
|
268
274
|
'rgba(22, 21, 21, 0.65)',
|
|
269
275
|
'rgba(22, 21, 21, 0.98)',
|
|
270
276
|
'rgb(22, 21, 21)',
|
|
271
|
-
'rgb(22, 21, 21)'
|
|
277
|
+
'rgb(22, 21, 21)',
|
|
278
|
+
],
|
|
279
|
+
heroBannerGradient: [
|
|
280
|
+
'rgba(22,21,21,0)',
|
|
281
|
+
'rgba(22,21,21,0.4)',
|
|
282
|
+
'rgb(22,21,21)',
|
|
272
283
|
],
|
|
273
|
-
heroBannerGradient: ['rgba(22,21,21,0)', 'rgba(22,21,21,0.4)', 'rgb(22,21,21)'],
|
|
274
284
|
|
|
275
|
-
cardGradient: [
|
|
285
|
+
cardGradient: [
|
|
286
|
+
'rgba(223, 178, 50, 1)',
|
|
287
|
+
'rgba(243, 146, 35, 1)',
|
|
288
|
+
'rgba(248, 159, 16, 1)',
|
|
289
|
+
],
|
|
276
290
|
|
|
277
291
|
skeletonHighlightColor: '#C2C2C2',
|
|
278
292
|
skeletonBaseColor: '#2A2A2A',
|
|
@@ -280,6 +294,6 @@ export const DarkTheme: ITheme = {
|
|
|
280
294
|
switchTrackColor: '#3CD141',
|
|
281
295
|
switchThumbColor: 'white',
|
|
282
296
|
switchTrackColorDisabled: '#D5D5D5',
|
|
283
|
-
switchThumbColorDisabled: 'white'
|
|
284
|
-
}
|
|
297
|
+
switchThumbColorDisabled: 'white',
|
|
298
|
+
},
|
|
285
299
|
};
|