@zezosoft/zezo-ott-react-native-ui-kit 0.1.0 → 1.0.1
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 +46 -15
- package/lib/module/Styles/globalStyles.js +76 -0
- package/lib/module/Styles/globalStyles.js.map +1 -0
- package/lib/module/assets/animations/135037-payment-processing-error.json +0 -0
- package/lib/module/assets/animations/7227-vui-animation.json +0 -0
- package/lib/module/assets/animations/succesfull-payment.json +0 -0
- package/lib/module/assets/animations/voice-icon.json +0 -0
- package/lib/module/assets/img/back.png +0 -0
- package/lib/module/assets/img/bottom-panel.png +0 -0
- package/lib/module/assets/img/camera.png +0 -0
- package/lib/module/assets/img/camera2.png +0 -0
- package/lib/module/assets/img/h.svg +0 -0
- package/lib/module/assets/img/home.png +0 -0
- package/lib/module/assets/img/lock.png +0 -0
- package/lib/module/assets/img/play.png +0 -0
- package/lib/module/assets/img/profile.jpg +0 -0
- package/lib/module/assets/img/qr-code.png +0 -0
- package/lib/module/assets/img/shadow.png +0 -0
- package/lib/module/assets/img/shadow2.png +0 -0
- package/lib/module/assets/img/user.png +0 -0
- package/lib/module/assets/svg/Account.svg +4 -0
- package/lib/module/assets/svg/Favourite.svg +14 -0
- package/lib/module/assets/svg/Upcoming.svg +4 -0
- package/lib/module/assets/svg/content-error.svg +0 -0
- package/lib/module/assets/svg/download.svg +0 -0
- package/lib/module/assets/svg/eye-off.svg +10 -0
- package/lib/module/assets/svg/favorites.svg +0 -0
- package/lib/module/assets/svg/home.svg +0 -0
- package/lib/module/assets/svg/home1.svg +3 -0
- package/lib/module/assets/svg/menu-bar.svg +0 -0
- package/lib/module/assets/svg/my-space.svg +0 -0
- package/lib/module/assets/svg/play-icon-with-bg.svg +0 -0
- package/lib/module/assets/svg/profile.svg +4 -0
- package/lib/module/assets/svg/search.svg +0 -0
- package/lib/module/assets/svg/search1.svg +4 -0
- package/lib/module/assets/svg/server-error.svg +0 -0
- package/lib/module/components/Account/Account.js +255 -0
- package/lib/module/components/Account/Account.js.map +1 -0
- package/lib/module/components/Account/index.js +4 -0
- package/lib/module/components/Account/index.js.map +1 -0
- package/lib/module/components/Auth/ForgotPassword/ForgotPassword.js +217 -0
- package/lib/module/components/Auth/ForgotPassword/ForgotPassword.js.map +1 -0
- package/lib/module/components/Auth/Login/LoginWithEmail.js +306 -0
- package/lib/module/components/Auth/Login/LoginWithEmail.js.map +1 -0
- package/lib/module/components/Auth/Login/LoginWithPhone.js +208 -0
- package/lib/module/components/Auth/Login/LoginWithPhone.js.map +1 -0
- package/lib/module/components/Auth/OTP/OTP.js +274 -0
- package/lib/module/components/Auth/OTP/OTP.js.map +1 -0
- package/lib/module/components/Auth/SignUp/SignUp.js +344 -0
- package/lib/module/components/Auth/SignUp/SignUp.js.map +1 -0
- package/lib/module/components/Auth/SplashScreen/SplashScreen.js +132 -0
- package/lib/module/components/Auth/SplashScreen/SplashScreen.js.map +1 -0
- package/lib/module/components/Auth/SplashScreen/components/SplashImage/SplashImage.js +61 -0
- package/lib/module/components/Auth/SplashScreen/components/SplashImage/SplashImage.js.map +1 -0
- package/lib/module/components/Auth/SplashScreen/components/SplashLottie/SplashLottie.js +57 -0
- package/lib/module/components/Auth/SplashScreen/components/SplashLottie/SplashLottie.js.map +1 -0
- package/lib/module/components/Auth/SplashScreen/components/SplashVideo/SplashVideo.js +82 -0
- package/lib/module/components/Auth/SplashScreen/components/SplashVideo/SplashVideo.js.map +1 -0
- package/lib/module/components/Auth/index.js +23 -0
- package/lib/module/components/Auth/index.js.map +1 -0
- package/lib/module/components/BackgroundLayout/BackgroundLayout.js +124 -0
- package/lib/module/components/BackgroundLayout/BackgroundLayout.js.map +1 -0
- package/lib/module/components/BlogView/BlogView.js +211 -0
- package/lib/module/components/BlogView/BlogView.js.map +1 -0
- package/lib/module/components/BlogView/index.js +10 -0
- package/lib/module/components/BlogView/index.js.map +1 -0
- package/lib/module/components/Button/BackBtn.js +72 -0
- package/lib/module/components/Button/BackBtn.js.map +1 -0
- package/lib/module/components/Button/MenuBtn.js +169 -0
- package/lib/module/components/Button/MenuBtn.js.map +1 -0
- package/lib/module/components/Button/PrimaryBtn.js +83 -0
- package/lib/module/components/Button/PrimaryBtn.js.map +1 -0
- package/lib/module/components/Button/TextButton.js +89 -0
- package/lib/module/components/Button/TextButton.js.map +1 -0
- package/lib/module/components/Button/index.js +17 -0
- package/lib/module/components/Button/index.js.map +1 -0
- package/lib/module/components/Content/Card/Category/Category.js +182 -0
- package/lib/module/components/Content/Card/Category/Category.js.map +1 -0
- package/lib/module/components/Content/Card/NowWatching/NowWatching.js +355 -0
- package/lib/module/components/Content/Card/NowWatching/NowWatching.js.map +1 -0
- package/lib/module/components/Content/Card/Sliders/Styles/One.js +315 -0
- package/lib/module/components/Content/Card/Sliders/Styles/One.js.map +1 -0
- package/lib/module/components/Content/Card/Sliders/Styles/Two.js +199 -0
- package/lib/module/components/Content/Card/Sliders/Styles/Two.js.map +1 -0
- package/lib/module/components/{Section → Content}/Card/Sliders/index.js +4 -2
- package/lib/module/components/Content/Card/Sliders/index.js.map +1 -0
- package/lib/module/components/Content/Card/Styles/Five.js +198 -0
- package/lib/module/components/Content/Card/Styles/Five.js.map +1 -0
- package/lib/module/components/Content/Card/Styles/Four.js +204 -0
- package/lib/module/components/Content/Card/Styles/Four.js.map +1 -0
- package/lib/module/components/Content/Card/Styles/One.js +200 -0
- package/lib/module/components/Content/Card/Styles/One.js.map +1 -0
- package/lib/module/components/Content/Card/Styles/RotateInOut.js +216 -0
- package/lib/module/components/Content/Card/Styles/RotateInOut.js.map +1 -0
- package/lib/module/components/Content/Card/Styles/Six.js +209 -0
- package/lib/module/components/Content/Card/Styles/Six.js.map +1 -0
- package/lib/module/components/Content/Card/Styles/Three.js +214 -0
- package/lib/module/components/Content/Card/Styles/Three.js.map +1 -0
- package/lib/module/components/Content/Card/Styles/TopTen.js +287 -0
- package/lib/module/components/Content/Card/Styles/TopTen.js.map +1 -0
- package/lib/module/components/Content/Card/Styles/Two.js +217 -0
- package/lib/module/components/Content/Card/Styles/Two.js.map +1 -0
- package/lib/module/components/Content/Card/components/CardPoster.js +183 -0
- package/lib/module/components/Content/Card/components/CardPoster.js.map +1 -0
- package/lib/module/components/Content/Card/components/NavigateToMore.js +57 -0
- package/lib/module/components/Content/Card/components/NavigateToMore.js.map +1 -0
- package/lib/module/components/Content/Card/components/NoContentFallback.js +116 -0
- package/lib/module/components/Content/Card/components/NoContentFallback.js.map +1 -0
- package/lib/module/components/Content/Card/components/ShowAllButton.js +71 -0
- package/lib/module/components/Content/Card/components/ShowAllButton.js.map +1 -0
- package/lib/module/components/Content/Card/components/ThumbnailCard.js +129 -0
- package/lib/module/components/Content/Card/components/ThumbnailCard.js.map +1 -0
- package/lib/module/components/Content/Card/index.js +32 -0
- package/lib/module/components/Content/Card/index.js.map +1 -0
- package/lib/module/components/Content/Content.js +127 -0
- package/lib/module/components/Content/Content.js.map +1 -0
- package/lib/module/components/Content/Sections.js +145 -0
- package/lib/module/components/Content/Sections.js.map +1 -0
- package/lib/module/components/ContentView/ContentView.js +128 -0
- package/lib/module/components/ContentView/ContentView.js.map +1 -0
- package/lib/module/components/ContentView/MoreContentList.js +211 -0
- package/lib/module/components/ContentView/MoreContentList.js.map +1 -0
- package/lib/module/components/ContentView/components/AboutSection.js +115 -0
- package/lib/module/components/ContentView/components/AboutSection.js.map +1 -0
- package/lib/module/components/ContentView/components/CastCard.js +191 -0
- package/lib/module/components/ContentView/components/CastCard.js.map +1 -0
- package/lib/module/components/ContentView/components/EpisodeCard.js +393 -0
- package/lib/module/components/ContentView/components/EpisodeCard.js.map +1 -0
- package/lib/module/components/ContentView/components/GenreTags.js +78 -0
- package/lib/module/components/ContentView/components/GenreTags.js.map +1 -0
- package/lib/module/components/ContentView/components/HeroBanner.js +223 -0
- package/lib/module/components/ContentView/components/HeroBanner.js.map +1 -0
- package/lib/module/components/ContentView/components/PlayButton.js +40 -0
- package/lib/module/components/ContentView/components/PlayButton.js.map +1 -0
- package/lib/module/components/ContentView/components/Title.js +104 -0
- package/lib/module/components/ContentView/components/Title.js.map +1 -0
- package/lib/module/components/ContentView/components/TrailerButton.js +53 -0
- package/lib/module/components/ContentView/components/TrailerButton.js.map +1 -0
- package/lib/module/components/ContentView/index.js +10 -0
- package/lib/module/components/ContentView/index.js.map +1 -0
- package/lib/module/components/Headers/AppHeader.js +96 -0
- package/lib/module/components/Headers/AppHeader.js.map +1 -0
- package/lib/module/components/Headers/One.js +31 -28
- package/lib/module/components/Headers/One.js.map +1 -1
- package/lib/module/components/Headers/Three.js +11 -14
- package/lib/module/components/Headers/Three.js.map +1 -1
- package/lib/module/components/Headers/Two.js +12 -10
- package/lib/module/components/Headers/Two.js.map +1 -1
- package/lib/module/components/Headers/index.js +4 -4
- package/lib/module/components/Headers/index.js.map +1 -1
- package/lib/module/components/Icons/AlertIcon.js.map +1 -1
- package/lib/module/components/Icons/DeviceIcon.js.map +1 -1
- package/lib/module/components/Icons/ForgotPasswordMessageIcon.js.map +1 -1
- package/lib/module/components/Icons/ForgotPasswordMessageIconTwo.js.map +1 -1
- package/lib/module/components/Icons/NewIndex.js +13 -1
- package/lib/module/components/Icons/NewIndex.js.map +1 -1
- package/lib/module/components/Icons/ResendOTP.js.map +1 -1
- package/lib/module/components/Input/Input.js +17 -0
- package/lib/module/components/Input/Input.js.map +1 -0
- package/lib/module/components/Input/InputOne.js +126 -0
- package/lib/module/components/Input/InputOne.js.map +1 -0
- package/lib/module/components/Input/InputTwo.js +153 -0
- package/lib/module/components/Input/InputTwo.js.map +1 -0
- package/lib/module/components/Input/PhoneNumberInput.js +285 -0
- package/lib/module/components/Input/PhoneNumberInput.js.map +1 -0
- package/lib/module/components/Keyboard/HideKeyboard.js +69 -0
- package/lib/module/components/Keyboard/HideKeyboard.js.map +1 -0
- package/lib/module/components/Loader/Loader.js.map +1 -1
- package/lib/module/components/Logo/Logo.js +43 -5
- package/lib/module/components/Logo/Logo.js.map +1 -1
- package/lib/module/components/Search/One.js +193 -0
- package/lib/module/components/Search/One.js.map +1 -0
- package/lib/module/components/Search/components/RecentSearchesSection.js +161 -0
- package/lib/module/components/Search/components/RecentSearchesSection.js.map +1 -0
- package/lib/module/components/Search/components/SearchCard.js +182 -0
- package/lib/module/components/Search/components/SearchCard.js.map +1 -0
- package/lib/module/components/Search/index.js +14 -0
- package/lib/module/components/Search/index.js.map +1 -0
- package/lib/module/components/Settings/AppSettings.js +226 -0
- package/lib/module/components/Settings/AppSettings.js.map +1 -0
- package/lib/module/components/Settings/index.js +4 -0
- package/lib/module/components/Settings/index.js.map +1 -0
- package/lib/module/components/Subscription/SubOne.js +333 -0
- package/lib/module/components/Subscription/SubOne.js.map +1 -0
- package/lib/module/components/Subscription/index.js +13 -0
- package/lib/module/components/Subscription/index.js.map +1 -0
- package/lib/module/components/TabBar/One.js +146 -0
- package/lib/module/components/TabBar/One.js.map +1 -0
- package/lib/module/components/TabBar/Three.js +131 -0
- package/lib/module/components/TabBar/Three.js.map +1 -0
- package/lib/module/components/TabBar/Two.js +133 -0
- package/lib/module/components/TabBar/Two.js.map +1 -0
- package/lib/module/components/TabBar/index.js +17 -0
- package/lib/module/components/TabBar/index.js.map +1 -0
- package/lib/module/components/Text/Text.js +43 -0
- package/lib/module/components/Text/Text.js.map +1 -0
- package/lib/module/components/Text/index.js +8 -0
- package/lib/module/components/Text/index.js.map +1 -0
- package/lib/module/components/User/DeviceSessions/DeviceSessions.js +315 -0
- package/lib/module/components/User/DeviceSessions/DeviceSessions.js.map +1 -0
- package/lib/module/components/User/WatchHistory/WatchHistory.js +117 -0
- package/lib/module/components/User/WatchHistory/WatchHistory.js.map +1 -0
- package/lib/module/components/User/WatchLater/WatchLater.js +275 -0
- package/lib/module/components/User/WatchLater/WatchLater.js.map +1 -0
- package/lib/module/components/User/components/UserAvatar.js +44 -0
- package/lib/module/components/User/components/UserAvatar.js.map +1 -0
- package/lib/module/components/User/components/UserSection.js +164 -0
- package/lib/module/components/User/components/UserSection.js.map +1 -0
- package/lib/module/components/User/index.js +12 -0
- package/lib/module/components/User/index.js.map +1 -0
- package/lib/module/components/View/View.js +24 -0
- package/lib/module/components/View/View.js.map +1 -0
- package/lib/module/components/View/index.js +8 -0
- package/lib/module/components/View/index.js.map +1 -0
- package/lib/module/components/index.js +18 -5
- package/lib/module/components/index.js.map +1 -1
- package/lib/module/components/layout/SafeAreaWrapper.js +34 -0
- package/lib/module/components/layout/SafeAreaWrapper.js.map +1 -0
- package/lib/module/components/layout/index.js +4 -0
- package/lib/module/components/layout/index.js.map +1 -0
- package/lib/module/constants/dummySections.js +38 -0
- package/lib/module/constants/dummySections.js.map +1 -0
- package/lib/module/hooks/useDebounce.js +11 -0
- package/lib/module/hooks/useDebounce.js.map +1 -0
- package/lib/module/hooks/useInitSplashCacheSync.js +116 -0
- package/lib/module/hooks/useInitSplashCacheSync.js.map +1 -0
- package/lib/module/hooks/useKeyboard.js +31 -0
- package/lib/module/hooks/useKeyboard.js.map +1 -0
- package/lib/module/hooks/usePaginatedSection.js +64 -0
- package/lib/module/hooks/usePaginatedSection.js.map +1 -0
- package/lib/module/index.js +3 -2
- package/lib/module/index.js.map +1 -1
- package/lib/module/store/RecentSearchesStore.js +65 -0
- package/lib/module/store/RecentSearchesStore.js.map +1 -0
- package/lib/module/store/splashStore.js +69 -0
- package/lib/module/store/splashStore.js.map +1 -0
- package/lib/module/theme/ThemeProvider.js +90 -0
- package/lib/module/theme/ThemeProvider.js.map +1 -0
- package/lib/module/theme/hook/useTheme.js +45 -0
- package/lib/module/theme/hook/useTheme.js.map +1 -0
- package/lib/module/theme/index.js +10 -0
- package/lib/module/theme/index.js.map +1 -0
- package/lib/module/theme/themes.js +124 -90
- package/lib/module/theme/themes.js.map +1 -1
- package/lib/module/types/content/content-view.types.js +4 -0
- package/lib/module/types/content/content-view.types.js.map +1 -0
- package/lib/module/types/content/index.js +2 -0
- package/lib/module/types/content/index.js.map +1 -0
- package/lib/module/types/hook/index.js +2 -0
- package/lib/module/types/hook/index.js.map +1 -0
- package/lib/module/types/hook/usePaginatedSetion.js +4 -0
- package/lib/module/types/hook/usePaginatedSetion.js.map +1 -0
- package/lib/module/types/index.js +0 -3
- package/lib/module/types/index.js.map +1 -1
- package/lib/module/types/sections/index.js +4 -0
- package/lib/module/types/sections/index.js.map +1 -0
- package/lib/module/utils/Display.js +22 -0
- package/lib/module/utils/Display.js.map +1 -0
- package/lib/module/utils/PlatformSelector.js +31 -0
- package/lib/module/utils/PlatformSelector.js.map +1 -0
- package/lib/module/utils/SizeMatters.js +9 -0
- package/lib/module/utils/SizeMatters.js.map +1 -0
- package/lib/typescript/src/Styles/globalStyles.d.ts +71 -0
- package/lib/typescript/src/Styles/globalStyles.d.ts.map +1 -0
- package/lib/typescript/src/components/Account/Account.d.ts +56 -0
- package/lib/typescript/src/components/Account/Account.d.ts.map +1 -0
- package/lib/typescript/src/components/Account/index.d.ts +2 -0
- package/lib/typescript/src/components/Account/index.d.ts.map +1 -0
- package/lib/typescript/src/components/Auth/ForgotPassword/ForgotPassword.d.ts +51 -0
- package/lib/typescript/src/components/Auth/ForgotPassword/ForgotPassword.d.ts.map +1 -0
- package/lib/typescript/src/components/Auth/Login/LoginWithEmail.d.ts +69 -0
- package/lib/typescript/src/components/Auth/Login/LoginWithEmail.d.ts.map +1 -0
- package/lib/typescript/src/components/Auth/Login/LoginWithPhone.d.ts +57 -0
- package/lib/typescript/src/components/Auth/Login/LoginWithPhone.d.ts.map +1 -0
- package/lib/typescript/src/components/Auth/OTP/OTP.d.ts +62 -0
- package/lib/typescript/src/components/Auth/OTP/OTP.d.ts.map +1 -0
- package/lib/typescript/src/components/Auth/SignUp/SignUp.d.ts +65 -0
- package/lib/typescript/src/components/Auth/SignUp/SignUp.d.ts.map +1 -0
- package/lib/typescript/src/components/Auth/SplashScreen/SplashScreen.d.ts +34 -0
- package/lib/typescript/src/components/Auth/SplashScreen/SplashScreen.d.ts.map +1 -0
- package/lib/typescript/src/components/Auth/SplashScreen/components/SplashImage/SplashImage.d.ts +16 -0
- package/lib/typescript/src/components/Auth/SplashScreen/components/SplashImage/SplashImage.d.ts.map +1 -0
- package/lib/typescript/src/components/Auth/SplashScreen/components/SplashLottie/SplashLottie.d.ts +17 -0
- package/lib/typescript/src/components/Auth/SplashScreen/components/SplashLottie/SplashLottie.d.ts.map +1 -0
- package/lib/typescript/src/components/Auth/SplashScreen/components/SplashVideo/SplashVideo.d.ts +19 -0
- package/lib/typescript/src/components/Auth/SplashScreen/components/SplashVideo/SplashVideo.d.ts.map +1 -0
- package/lib/typescript/src/components/Auth/index.d.ts +230 -0
- package/lib/typescript/src/components/Auth/index.d.ts.map +1 -0
- package/lib/typescript/src/components/BackgroundLayout/BackgroundLayout.d.ts +16 -0
- package/lib/typescript/src/components/BackgroundLayout/BackgroundLayout.d.ts.map +1 -0
- package/lib/typescript/src/components/BlogView/BlogView.d.ts +29 -0
- package/lib/typescript/src/components/BlogView/BlogView.d.ts.map +1 -0
- package/lib/typescript/src/components/BlogView/index.d.ts +7 -0
- package/lib/typescript/src/components/BlogView/index.d.ts.map +1 -0
- package/lib/typescript/src/components/Button/BackBtn.d.ts +18 -0
- package/lib/typescript/src/components/Button/BackBtn.d.ts.map +1 -0
- package/lib/typescript/src/components/Button/MenuBtn.d.ts +17 -0
- package/lib/typescript/src/components/Button/MenuBtn.d.ts.map +1 -0
- package/lib/typescript/src/components/Button/PrimaryBtn.d.ts +20 -0
- package/lib/typescript/src/components/Button/PrimaryBtn.d.ts.map +1 -0
- package/lib/typescript/src/components/Button/TextButton.d.ts +17 -0
- package/lib/typescript/src/components/Button/TextButton.d.ts.map +1 -0
- package/lib/typescript/src/components/Button/index.d.ts +38 -0
- package/lib/typescript/src/components/Button/index.d.ts.map +1 -0
- package/lib/typescript/src/components/Content/Card/Category/Category.d.ts +26 -0
- package/lib/typescript/src/components/Content/Card/Category/Category.d.ts.map +1 -0
- package/lib/typescript/src/components/Content/Card/NowWatching/NowWatching.d.ts +49 -0
- package/lib/typescript/src/components/Content/Card/NowWatching/NowWatching.d.ts.map +1 -0
- package/lib/typescript/src/components/Content/Card/Sliders/Styles/One.d.ts +20 -0
- package/lib/typescript/src/components/Content/Card/Sliders/Styles/One.d.ts.map +1 -0
- package/lib/typescript/src/components/Content/Card/Sliders/Styles/Two.d.ts +18 -0
- package/lib/typescript/src/components/Content/Card/Sliders/Styles/Two.d.ts.map +1 -0
- package/lib/typescript/src/components/Content/Card/Sliders/index.d.ts +22 -0
- package/lib/typescript/src/components/Content/Card/Sliders/index.d.ts.map +1 -0
- package/lib/typescript/src/components/Content/Card/Styles/Five.d.ts +36 -0
- package/lib/typescript/src/components/Content/Card/Styles/Five.d.ts.map +1 -0
- package/lib/typescript/src/components/Content/Card/Styles/Four.d.ts +37 -0
- package/lib/typescript/src/components/Content/Card/Styles/Four.d.ts.map +1 -0
- package/lib/typescript/src/components/Content/Card/Styles/One.d.ts +37 -0
- package/lib/typescript/src/components/Content/Card/Styles/One.d.ts.map +1 -0
- package/lib/typescript/src/components/Content/Card/Styles/RotateInOut.d.ts +37 -0
- package/lib/typescript/src/components/Content/Card/Styles/RotateInOut.d.ts.map +1 -0
- package/lib/typescript/src/components/Content/Card/Styles/Six.d.ts +32 -0
- package/lib/typescript/src/components/Content/Card/Styles/Six.d.ts.map +1 -0
- package/lib/typescript/src/components/Content/Card/Styles/Three.d.ts +37 -0
- package/lib/typescript/src/components/Content/Card/Styles/Three.d.ts.map +1 -0
- package/lib/typescript/src/components/Content/Card/Styles/TopTen.d.ts +33 -0
- package/lib/typescript/src/components/Content/Card/Styles/TopTen.d.ts.map +1 -0
- package/lib/typescript/src/components/Content/Card/Styles/Two.d.ts +36 -0
- package/lib/typescript/src/components/Content/Card/Styles/Two.d.ts.map +1 -0
- package/lib/typescript/src/components/Content/Card/components/CardPoster.d.ts +24 -0
- package/lib/typescript/src/components/Content/Card/components/CardPoster.d.ts.map +1 -0
- package/lib/typescript/src/components/Content/Card/components/NavigateToMore.d.ts +17 -0
- package/lib/typescript/src/components/Content/Card/components/NavigateToMore.d.ts.map +1 -0
- package/lib/typescript/src/components/Content/Card/components/NoContentFallback.d.ts +18 -0
- package/lib/typescript/src/components/Content/Card/components/NoContentFallback.d.ts.map +1 -0
- package/lib/typescript/src/components/Content/Card/components/ShowAllButton.d.ts +20 -0
- package/lib/typescript/src/components/Content/Card/components/ShowAllButton.d.ts.map +1 -0
- package/lib/typescript/src/components/Content/Card/components/ThumbnailCard.d.ts +19 -0
- package/lib/typescript/src/components/Content/Card/components/ThumbnailCard.d.ts.map +1 -0
- package/lib/typescript/src/components/Content/Card/index.d.ts +237 -0
- package/lib/typescript/src/components/Content/Card/index.d.ts.map +1 -0
- package/lib/typescript/src/components/Content/Content.d.ts +59 -0
- package/lib/typescript/src/components/Content/Content.d.ts.map +1 -0
- package/lib/typescript/src/components/Content/Sections.d.ts +45 -0
- package/lib/typescript/src/components/Content/Sections.d.ts.map +1 -0
- package/lib/typescript/src/components/ContentView/ContentView.d.ts +15 -0
- package/lib/typescript/src/components/ContentView/ContentView.d.ts.map +1 -0
- package/lib/typescript/src/components/ContentView/MoreContentList.d.ts +27 -0
- package/lib/typescript/src/components/ContentView/MoreContentList.d.ts.map +1 -0
- package/lib/typescript/src/components/ContentView/components/AboutSection.d.ts +24 -0
- package/lib/typescript/src/components/ContentView/components/AboutSection.d.ts.map +1 -0
- package/lib/typescript/src/components/ContentView/components/CastCard.d.ts +32 -0
- package/lib/typescript/src/components/ContentView/components/CastCard.d.ts.map +1 -0
- package/lib/typescript/src/components/ContentView/components/EpisodeCard.d.ts +22 -0
- package/lib/typescript/src/components/ContentView/components/EpisodeCard.d.ts.map +1 -0
- package/lib/typescript/src/components/ContentView/components/GenreTags.d.ts +22 -0
- package/lib/typescript/src/components/ContentView/components/GenreTags.d.ts.map +1 -0
- package/lib/typescript/src/components/ContentView/components/HeroBanner.d.ts +8 -0
- package/lib/typescript/src/components/ContentView/components/HeroBanner.d.ts.map +1 -0
- package/lib/typescript/src/components/ContentView/components/PlayButton.d.ts +15 -0
- package/lib/typescript/src/components/ContentView/components/PlayButton.d.ts.map +1 -0
- package/lib/typescript/src/components/ContentView/components/Title.d.ts +24 -0
- package/lib/typescript/src/components/ContentView/components/Title.d.ts.map +1 -0
- package/lib/typescript/src/components/ContentView/components/TrailerButton.d.ts +18 -0
- package/lib/typescript/src/components/ContentView/components/TrailerButton.d.ts.map +1 -0
- package/lib/typescript/src/components/ContentView/index.d.ts +7 -0
- package/lib/typescript/src/components/ContentView/index.d.ts.map +1 -0
- package/lib/typescript/src/components/Headers/AppHeader.d.ts +20 -0
- package/lib/typescript/src/components/Headers/AppHeader.d.ts.map +1 -0
- package/lib/typescript/src/components/Headers/One.d.ts +4 -3
- package/lib/typescript/src/components/Headers/One.d.ts.map +1 -1
- package/lib/typescript/src/components/Headers/Three.d.ts +4 -3
- package/lib/typescript/src/components/Headers/Three.d.ts.map +1 -1
- package/lib/typescript/src/components/Headers/Two.d.ts +4 -3
- package/lib/typescript/src/components/Headers/Two.d.ts.map +1 -1
- package/lib/typescript/src/components/Headers/index.d.ts +2 -2
- package/lib/typescript/src/components/Icons/AlertIcon.d.ts +1 -1
- package/lib/typescript/src/components/Icons/AlertIcon.d.ts.map +1 -1
- package/lib/typescript/src/components/Icons/DeviceIcon.d.ts +1 -1
- package/lib/typescript/src/components/Icons/DeviceIcon.d.ts.map +1 -1
- package/lib/typescript/src/components/Icons/ForgotPasswordMessageIcon.d.ts.map +1 -1
- package/lib/typescript/src/components/Icons/ForgotPasswordMessageIconTwo.d.ts.map +1 -1
- package/lib/typescript/src/components/Icons/NewIndex.d.ts +6 -0
- package/lib/typescript/src/components/Icons/NewIndex.d.ts.map +1 -1
- package/lib/typescript/src/components/Icons/ResendOTP.d.ts.map +1 -1
- package/lib/typescript/src/components/Input/Input.d.ts +11 -0
- package/lib/typescript/src/components/Input/Input.d.ts.map +1 -0
- package/lib/typescript/src/components/Input/InputOne.d.ts +21 -0
- package/lib/typescript/src/components/Input/InputOne.d.ts.map +1 -0
- package/lib/typescript/src/components/Input/InputTwo.d.ts +25 -0
- package/lib/typescript/src/components/Input/InputTwo.d.ts.map +1 -0
- package/lib/typescript/src/components/Input/PhoneNumberInput.d.ts +26 -0
- package/lib/typescript/src/components/Input/PhoneNumberInput.d.ts.map +1 -0
- package/lib/typescript/src/components/Keyboard/HideKeyboard.d.ts +15 -0
- package/lib/typescript/src/components/Keyboard/HideKeyboard.d.ts.map +1 -0
- package/lib/typescript/src/components/Logo/Logo.d.ts +3 -0
- package/lib/typescript/src/components/Logo/Logo.d.ts.map +1 -1
- package/lib/typescript/src/components/Search/One.d.ts +46 -0
- package/lib/typescript/src/components/Search/One.d.ts.map +1 -0
- package/lib/typescript/src/components/Search/components/RecentSearchesSection.d.ts +16 -0
- package/lib/typescript/src/components/Search/components/RecentSearchesSection.d.ts.map +1 -0
- package/lib/typescript/src/components/Search/components/SearchCard.d.ts +32 -0
- package/lib/typescript/src/components/Search/components/SearchCard.d.ts.map +1 -0
- package/lib/typescript/src/components/Search/index.d.ts +11 -0
- package/lib/typescript/src/components/Search/index.d.ts.map +1 -0
- package/lib/typescript/src/components/Settings/AppSettings.d.ts +53 -0
- package/lib/typescript/src/components/Settings/AppSettings.d.ts.map +1 -0
- package/lib/typescript/src/components/Settings/index.d.ts +2 -0
- package/lib/typescript/src/components/Settings/index.d.ts.map +1 -0
- package/lib/typescript/src/components/Subscription/SubOne.d.ts +40 -0
- package/lib/typescript/src/components/Subscription/SubOne.d.ts.map +1 -0
- package/lib/typescript/src/components/Subscription/index.d.ts +30 -0
- package/lib/typescript/src/components/Subscription/index.d.ts.map +1 -0
- package/lib/typescript/src/components/TabBar/One.d.ts +33 -0
- package/lib/typescript/src/components/TabBar/One.d.ts.map +1 -0
- package/lib/typescript/src/components/TabBar/Three.d.ts +24 -0
- package/lib/typescript/src/components/TabBar/Three.d.ts.map +1 -0
- package/lib/typescript/src/components/TabBar/Two.d.ts +24 -0
- package/lib/typescript/src/components/TabBar/Two.d.ts.map +1 -0
- package/lib/typescript/src/components/TabBar/index.d.ts +14 -0
- package/lib/typescript/src/components/TabBar/index.d.ts.map +1 -0
- package/lib/typescript/src/components/Text/Text.d.ts +19 -0
- package/lib/typescript/src/components/Text/Text.d.ts.map +1 -0
- package/lib/typescript/src/components/Text/index.d.ts +6 -0
- package/lib/typescript/src/components/Text/index.d.ts.map +1 -0
- package/lib/typescript/src/components/User/DeviceSessions/DeviceSessions.d.ts +69 -0
- package/lib/typescript/src/components/User/DeviceSessions/DeviceSessions.d.ts.map +1 -0
- package/lib/typescript/src/components/User/WatchHistory/WatchHistory.d.ts +49 -0
- package/lib/typescript/src/components/User/WatchHistory/WatchHistory.d.ts.map +1 -0
- package/lib/typescript/src/components/User/WatchLater/WatchLater.d.ts +46 -0
- package/lib/typescript/src/components/User/WatchLater/WatchLater.d.ts.map +1 -0
- package/lib/typescript/src/components/User/components/UserAvatar.d.ts +10 -0
- package/lib/typescript/src/components/User/components/UserAvatar.d.ts.map +1 -0
- package/lib/typescript/src/components/User/components/UserSection.d.ts +30 -0
- package/lib/typescript/src/components/User/components/UserSection.d.ts.map +1 -0
- package/lib/typescript/src/components/User/index.d.ts +9 -0
- package/lib/typescript/src/components/User/index.d.ts.map +1 -0
- package/lib/typescript/src/components/View/View.d.ts +12 -0
- package/lib/typescript/src/components/View/View.d.ts.map +1 -0
- package/lib/typescript/src/components/View/index.d.ts +6 -0
- package/lib/typescript/src/components/View/index.d.ts.map +1 -0
- package/lib/typescript/src/components/index.d.ts +15 -2
- package/lib/typescript/src/components/index.d.ts.map +1 -1
- package/lib/typescript/src/components/layout/SafeAreaWrapper.d.ts +13 -0
- package/lib/typescript/src/components/layout/SafeAreaWrapper.d.ts.map +1 -0
- package/lib/typescript/src/components/layout/index.d.ts +2 -0
- package/lib/typescript/src/components/layout/index.d.ts.map +1 -0
- package/lib/typescript/src/constants/dummySections.d.ts +3 -0
- package/lib/typescript/src/constants/dummySections.d.ts.map +1 -0
- package/lib/typescript/src/hooks/useDebounce.d.ts +2 -0
- package/lib/typescript/src/hooks/useDebounce.d.ts.map +1 -0
- package/lib/typescript/src/hooks/useInitSplashCacheSync.d.ts +22 -0
- package/lib/typescript/src/hooks/useInitSplashCacheSync.d.ts.map +1 -0
- package/lib/typescript/src/hooks/useKeyboard.d.ts +9 -0
- package/lib/typescript/src/hooks/useKeyboard.d.ts.map +1 -0
- package/lib/typescript/src/hooks/usePaginatedSection.d.ts +12 -0
- package/lib/typescript/src/hooks/usePaginatedSection.d.ts.map +1 -0
- package/lib/typescript/src/index.d.ts +3 -1
- package/lib/typescript/src/index.d.ts.map +1 -1
- package/lib/typescript/src/store/RecentSearchesStore.d.ts +26 -0
- package/lib/typescript/src/store/RecentSearchesStore.d.ts.map +1 -0
- package/lib/typescript/src/store/splashStore.d.ts +29 -0
- package/lib/typescript/src/store/splashStore.d.ts.map +1 -0
- package/lib/typescript/src/theme/ThemeProvider.d.ts +23 -0
- package/lib/typescript/src/theme/ThemeProvider.d.ts.map +1 -0
- package/lib/typescript/src/theme/hook/useTheme.d.ts +9 -0
- package/lib/typescript/src/theme/hook/useTheme.d.ts.map +1 -0
- package/lib/typescript/src/theme/index.d.ts +7 -0
- package/lib/typescript/src/theme/index.d.ts.map +1 -0
- package/lib/typescript/src/theme/themes.d.ts +38 -25
- package/lib/typescript/src/theme/themes.d.ts.map +1 -1
- package/lib/typescript/src/types/content/content-view.types.d.ts +139 -0
- package/lib/typescript/src/types/content/content-view.types.d.ts.map +1 -0
- package/lib/typescript/src/types/{content.types.d.ts → content/index.d.ts} +89 -69
- package/lib/typescript/src/types/content/index.d.ts.map +1 -0
- package/lib/typescript/src/types/hook/index.d.ts +6 -0
- package/lib/typescript/src/types/hook/index.d.ts.map +1 -0
- package/lib/typescript/src/types/hook/usePaginatedSetion.d.ts +16 -0
- package/lib/typescript/src/types/hook/usePaginatedSetion.d.ts.map +1 -0
- package/lib/typescript/src/types/index.d.ts +7 -2
- package/lib/typescript/src/types/index.d.ts.map +1 -1
- package/lib/typescript/src/types/sections/index.d.ts +62 -0
- package/lib/typescript/src/types/sections/index.d.ts.map +1 -0
- package/lib/typescript/src/utils/Display.d.ts +8 -0
- package/lib/typescript/src/utils/Display.d.ts.map +1 -0
- package/lib/typescript/src/utils/PlatformSelector.d.ts +22 -0
- package/lib/typescript/src/utils/PlatformSelector.d.ts.map +1 -0
- package/lib/typescript/src/utils/SizeMatters.d.ts +7 -0
- package/lib/typescript/src/utils/SizeMatters.d.ts.map +1 -0
- package/package.json +74 -125
- package/src/Styles/globalStyles.ts +75 -0
- package/src/assets/animations/135037-payment-processing-error.json +0 -0
- package/src/assets/animations/7227-vui-animation.json +0 -0
- package/src/assets/animations/succesfull-payment.json +0 -0
- package/src/assets/animations/voice-icon.json +0 -0
- package/src/assets/img/back.png +0 -0
- package/src/assets/img/bottom-panel.png +0 -0
- package/src/assets/img/camera.png +0 -0
- package/src/assets/img/camera2.png +0 -0
- package/src/assets/img/h.svg +0 -0
- package/src/assets/img/home.png +0 -0
- package/src/assets/img/lock.png +0 -0
- package/src/assets/img/play.png +0 -0
- package/src/assets/img/profile.jpg +0 -0
- package/src/assets/img/qr-code.png +0 -0
- package/src/assets/img/shadow.png +0 -0
- package/src/assets/img/shadow2.png +0 -0
- package/src/assets/img/user.png +0 -0
- package/src/assets/svg/Account.svg +4 -0
- package/src/assets/svg/Favourite.svg +14 -0
- package/src/assets/svg/Upcoming.svg +4 -0
- package/src/assets/svg/content-error.svg +0 -0
- package/src/assets/svg/download.svg +0 -0
- package/src/assets/svg/eye-off.svg +10 -0
- package/src/assets/svg/favorites.svg +0 -0
- package/src/assets/svg/home.svg +0 -0
- package/src/assets/svg/home1.svg +3 -0
- package/src/assets/svg/menu-bar.svg +0 -0
- package/src/assets/svg/my-space.svg +0 -0
- package/src/assets/svg/play-icon-with-bg.svg +0 -0
- package/src/assets/svg/profile.svg +4 -0
- package/src/assets/svg/search.svg +0 -0
- package/src/assets/svg/search1.svg +4 -0
- package/src/assets/svg/server-error.svg +0 -0
- package/src/components/Account/Account.tsx +289 -0
- package/src/components/Account/index.ts +1 -0
- package/src/components/Auth/ForgotPassword/ForgotPassword.tsx +273 -0
- package/src/components/Auth/Login/LoginWithEmail.tsx +376 -0
- package/src/components/Auth/Login/LoginWithPhone.tsx +263 -0
- package/src/components/Auth/OTP/OTP.tsx +357 -0
- package/src/components/Auth/SignUp/SignUp.tsx +401 -0
- package/src/components/Auth/SplashScreen/SplashScreen.tsx +166 -0
- package/src/components/Auth/SplashScreen/components/SplashImage/SplashImage.tsx +66 -0
- package/src/components/Auth/SplashScreen/components/SplashLottie/SplashLottie.tsx +71 -0
- package/src/components/Auth/SplashScreen/components/SplashVideo/SplashVideo.tsx +103 -0
- package/src/components/Auth/index.ts +22 -0
- package/src/components/BackgroundLayout/BackgroundLayout.tsx +136 -0
- package/src/components/BlogView/BlogView.tsx +215 -0
- package/src/components/BlogView/index.ts +8 -0
- package/src/components/Button/BackBtn.tsx +83 -0
- package/src/components/Button/MenuBtn.tsx +190 -0
- package/src/components/Button/PrimaryBtn.tsx +89 -0
- package/src/components/Button/TextButton.tsx +108 -0
- package/src/components/Button/index.ts +16 -0
- package/src/components/Content/Card/Category/Category.tsx +263 -0
- package/src/components/Content/Card/NowWatching/NowWatching.tsx +413 -0
- package/src/components/Content/Card/Sliders/Styles/One.tsx +321 -0
- package/src/components/Content/Card/Sliders/Styles/Two.tsx +210 -0
- package/src/components/{Section → Content}/Card/Sliders/index.ts +3 -1
- package/src/components/Content/Card/Styles/Five.tsx +241 -0
- package/src/components/Content/Card/Styles/Four.tsx +246 -0
- package/src/components/Content/Card/Styles/One.tsx +242 -0
- package/src/components/Content/Card/Styles/RotateInOut.tsx +280 -0
- package/src/components/Content/Card/Styles/Six.tsx +249 -0
- package/src/components/Content/Card/Styles/Three.tsx +279 -0
- package/src/components/Content/Card/Styles/TopTen.tsx +338 -0
- package/src/components/Content/Card/Styles/Two.tsx +290 -0
- package/src/components/Content/Card/components/CardPoster.tsx +217 -0
- package/src/components/Content/Card/components/NavigateToMore.tsx +59 -0
- package/src/components/Content/Card/components/NoContentFallback.tsx +130 -0
- package/src/components/Content/Card/components/ShowAllButton.tsx +83 -0
- package/src/components/Content/Card/components/ThumbnailCard.tsx +151 -0
- package/src/components/Content/Card/index.ts +30 -0
- package/src/components/Content/Content.tsx +218 -0
- package/src/components/Content/Sections.tsx +169 -0
- package/src/components/ContentView/ContentView.tsx +137 -0
- package/src/components/ContentView/MoreContentList.tsx +238 -0
- package/src/components/ContentView/components/AboutSection.tsx +139 -0
- package/src/components/ContentView/components/CastCard.tsx +213 -0
- package/src/components/ContentView/components/EpisodeCard.tsx +454 -0
- package/src/components/ContentView/components/GenreTags.tsx +93 -0
- package/src/components/ContentView/components/HeroBanner.tsx +245 -0
- package/src/components/ContentView/components/PlayButton.tsx +37 -0
- package/src/components/ContentView/components/Title.tsx +121 -0
- package/src/components/ContentView/components/TrailerButton.tsx +53 -0
- package/src/components/ContentView/index.ts +7 -0
- package/src/components/Headers/AppHeader.tsx +108 -0
- package/src/components/Headers/One.tsx +34 -28
- package/src/components/Headers/Three.tsx +14 -24
- package/src/components/Headers/Two.tsx +16 -23
- package/src/components/Headers/index.ts +2 -2
- package/src/components/Icons/AlertIcon.tsx +2 -13
- package/src/components/Icons/DeviceIcon.tsx +1 -7
- package/src/components/Icons/DoneIcon/DoneIcon.tsx +0 -0
- package/src/components/Icons/ForgotPasswordMessageIcon.tsx +3 -24
- package/src/components/Icons/ForgotPasswordMessageIconTwo.tsx +2 -16
- package/src/components/Icons/NewIndex.ts +12 -0
- package/src/components/Icons/ResendOTP.tsx +2 -12
- package/src/components/Input/Input.ts +16 -0
- package/src/components/Input/InputOne.tsx +162 -0
- package/src/components/Input/InputTwo.tsx +189 -0
- package/src/components/Input/PhoneNumberInput.tsx +383 -0
- package/src/components/Keyboard/HideKeyboard.tsx +82 -0
- package/src/components/Loader/Loader.tsx +2 -2
- package/src/components/Logo/Logo.tsx +70 -26
- package/src/components/Search/One.tsx +229 -0
- package/src/components/Search/components/RecentSearchesSection.tsx +154 -0
- package/src/components/Search/components/SearchCard.tsx +194 -0
- package/src/components/Search/index.ts +16 -0
- package/src/components/Settings/AppSettings.tsx +288 -0
- package/src/components/Settings/index.ts +1 -0
- package/src/components/Subscription/SubOne.tsx +337 -0
- package/src/components/Subscription/index.ts +12 -0
- package/src/components/TabBar/One.tsx +202 -0
- package/src/components/TabBar/Three.tsx +148 -0
- package/src/components/TabBar/Two.tsx +153 -0
- package/src/components/TabBar/index.ts +20 -0
- package/src/components/Text/Text.tsx +57 -0
- package/src/components/Text/index.ts +5 -0
- package/src/components/User/DeviceSessions/DeviceSessions.tsx +374 -0
- package/src/components/User/WatchHistory/WatchHistory.tsx +173 -0
- package/src/components/User/WatchLater/WatchLater.tsx +293 -0
- package/src/components/User/components/UserAvatar.tsx +43 -0
- package/src/components/User/components/UserSection.tsx +182 -0
- package/src/components/User/index.ts +9 -0
- package/src/components/View/View.tsx +19 -0
- package/src/components/View/index.ts +5 -0
- package/src/components/index.ts +15 -2
- package/src/components/layout/SafeAreaWrapper.tsx +39 -0
- package/src/components/layout/index.ts +1 -0
- package/src/constants/dummySections.ts +45 -0
- package/src/hooks/useDebounce.ts +13 -0
- package/src/hooks/useInitSplashCacheSync.ts +146 -0
- package/src/hooks/useKeyboard.ts +34 -0
- package/src/hooks/usePaginatedSection.ts +78 -0
- package/src/index.ts +3 -1
- package/src/store/RecentSearchesStore.ts +74 -0
- package/src/store/splashStore.ts +91 -0
- package/src/theme/ThemeProvider.tsx +107 -0
- package/src/theme/hook/useTheme.ts +41 -0
- package/src/theme/index.ts +7 -0
- package/src/theme/themes.ts +210 -123
- package/src/types/content/content-view.types.ts +148 -0
- package/src/types/{content.types.ts → content/index.ts} +108 -77
- package/src/types/hook/index.ts +5 -0
- package/src/types/hook/usePaginatedSetion.ts +19 -0
- package/src/types/index.ts +7 -2
- package/src/types/sections/index.ts +81 -0
- package/src/utils/Display.ts +14 -0
- package/src/utils/PlatformSelector.ts +29 -0
- package/src/utils/SizeMatters.ts +7 -0
- package/lib/module/assets/img/profile.png +0 -0
- package/lib/module/components/Button/Button.js +0 -22
- package/lib/module/components/Button/Button.js.map +0 -1
- package/lib/module/components/Button/styles.js +0 -23
- package/lib/module/components/Button/styles.js.map +0 -1
- package/lib/module/components/Section/Card/Sliders/Styles/One.js +0 -123
- package/lib/module/components/Section/Card/Sliders/Styles/One.js.map +0 -1
- package/lib/module/components/Section/Card/Sliders/index.js.map +0 -1
- package/lib/module/components/Section/Card/Styles/One.js +0 -92
- package/lib/module/components/Section/Card/Styles/One.js.map +0 -1
- package/lib/module/components/Section/Card/index.js +0 -14
- package/lib/module/components/Section/Card/index.js.map +0 -1
- package/lib/module/components/Section/SectionType.js +0 -98
- package/lib/module/components/Section/SectionType.js.map +0 -1
- package/lib/module/components/Section/Sections.js +0 -72
- package/lib/module/components/Section/Sections.js.map +0 -1
- package/lib/module/package.json +0 -1
- package/lib/module/sample.test.js +0 -8
- package/lib/module/sample.test.js.map +0 -1
- package/lib/module/theme/useAppTheme.js +0 -14
- package/lib/module/theme/useAppTheme.js.map +0 -1
- package/lib/module/types/content.types.js +0 -2
- package/lib/module/types/content.types.js.map +0 -1
- package/lib/module/types/sections.types.js +0 -4
- package/lib/module/types/sections.types.js.map +0 -1
- package/lib/typescript/package.json +0 -1
- package/lib/typescript/src/components/Button/Button.d.ts +0 -9
- package/lib/typescript/src/components/Button/Button.d.ts.map +0 -1
- package/lib/typescript/src/components/Button/styles.d.ts +0 -20
- package/lib/typescript/src/components/Button/styles.d.ts.map +0 -1
- package/lib/typescript/src/components/Section/Card/Sliders/Styles/One.d.ts +0 -18
- package/lib/typescript/src/components/Section/Card/Sliders/Styles/One.d.ts.map +0 -1
- package/lib/typescript/src/components/Section/Card/Sliders/index.d.ts +0 -7
- package/lib/typescript/src/components/Section/Card/Sliders/index.d.ts.map +0 -1
- package/lib/typescript/src/components/Section/Card/Styles/One.d.ts +0 -19
- package/lib/typescript/src/components/Section/Card/Styles/One.d.ts.map +0 -1
- package/lib/typescript/src/components/Section/Card/index.d.ts +0 -7
- package/lib/typescript/src/components/Section/Card/index.d.ts.map +0 -1
- package/lib/typescript/src/components/Section/SectionType.d.ts +0 -26
- package/lib/typescript/src/components/Section/SectionType.d.ts.map +0 -1
- package/lib/typescript/src/components/Section/Sections.d.ts +0 -27
- package/lib/typescript/src/components/Section/Sections.d.ts.map +0 -1
- package/lib/typescript/src/sample.test.d.ts +0 -1
- package/lib/typescript/src/sample.test.d.ts.map +0 -1
- package/lib/typescript/src/theme/useAppTheme.d.ts +0 -46
- package/lib/typescript/src/theme/useAppTheme.d.ts.map +0 -1
- package/lib/typescript/src/types/content.types.d.ts.map +0 -1
- package/lib/typescript/src/types/sections.types.d.ts +0 -41
- package/lib/typescript/src/types/sections.types.d.ts.map +0 -1
- package/src/assets/img/profile.png +0 -0
- package/src/components/Button/Button.tsx +0 -32
- package/src/components/Button/styles.ts +0 -21
- package/src/components/Section/Card/Sliders/Styles/One.tsx +0 -147
- package/src/components/Section/Card/Styles/One.tsx +0 -112
- package/src/components/Section/Card/index.ts +0 -13
- package/src/components/Section/SectionType.tsx +0 -127
- package/src/components/Section/Sections.tsx +0 -120
- package/src/sample.test.ts +0 -5
- package/src/theme/useAppTheme.ts +0 -13
- package/src/types/sections.types.ts +0 -56
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @author Ashok Desai
|
|
3
|
+
* @lastModified jun 23 Jun 2025 at 11:40 AM
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import SearchOne from './One';
|
|
7
|
+
|
|
8
|
+
import SearchCard from './components/SearchCard';
|
|
9
|
+
|
|
10
|
+
export const Search = {
|
|
11
|
+
One: SearchOne,
|
|
12
|
+
Two: SearchCard
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
export type { SearchOneProps } from './One';
|
|
16
|
+
export type { SearchCardProps } from './components/SearchCard';
|
|
@@ -0,0 +1,288 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @author Naresh Dhamu
|
|
3
|
+
* @lastModified Mon 23 Jun 2025 at 11:22 AM
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import React, { useState, isValidElement, cloneElement, type FC, type ReactElement } from 'react';
|
|
7
|
+
import { View, ScrollView, StyleSheet, Switch, TouchableOpacity, type ViewStyle, type TextStyle } from 'react-native';
|
|
8
|
+
import SkeletonPlaceholder from 'react-native-skeleton-placeholder';
|
|
9
|
+
import { useTheme } from '../../theme/hook/useTheme';
|
|
10
|
+
import DeviceInfo from 'react-native-device-info';
|
|
11
|
+
import AppHeader from '../Headers/AppHeader';
|
|
12
|
+
import { scale, verticalScale, moderateScale } from 'react-native-size-matters';
|
|
13
|
+
import UserSection, { type UserInfo, type UserInfoTextStyle } from '../User/components/UserSection';
|
|
14
|
+
import { Text } from '../Text';
|
|
15
|
+
import { useSafeAreaInsets } from 'react-native-safe-area-context';
|
|
16
|
+
import type { AppTheme } from '../../theme/themes';
|
|
17
|
+
import { RFValue } from 'react-native-responsive-fontsize';
|
|
18
|
+
|
|
19
|
+
// ✅ Types
|
|
20
|
+
interface ToggleMenuItem {
|
|
21
|
+
key: string;
|
|
22
|
+
icon?: React.ReactNode;
|
|
23
|
+
label: string;
|
|
24
|
+
isToggle: true;
|
|
25
|
+
toggleValue?: boolean;
|
|
26
|
+
onToggleChange?: (value: boolean) => void;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
interface PressableMenuItem {
|
|
30
|
+
key: string;
|
|
31
|
+
icon?: React.ReactNode;
|
|
32
|
+
label: string;
|
|
33
|
+
isToggle?: false;
|
|
34
|
+
onPress: () => void;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
type MenuItem = ToggleMenuItem | PressableMenuItem;
|
|
38
|
+
|
|
39
|
+
interface MenuItemStyle {
|
|
40
|
+
container?: ViewStyle;
|
|
41
|
+
icon?: ViewStyle;
|
|
42
|
+
label?: TextStyle;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export type AppSettingsProps = {
|
|
46
|
+
title?: string;
|
|
47
|
+
titleAlign?: 'left' | 'center';
|
|
48
|
+
userInfo?: UserInfo;
|
|
49
|
+
menuItems: MenuItem[];
|
|
50
|
+
theme?: AppTheme;
|
|
51
|
+
isLoading?: boolean;
|
|
52
|
+
versionText?: string;
|
|
53
|
+
onBackPress?: () => void;
|
|
54
|
+
renderHeader?: () => React.ReactNode;
|
|
55
|
+
renderMenuItem?: (item: MenuItem) => React.ReactNode;
|
|
56
|
+
renderFooter?: () => React.ReactNode;
|
|
57
|
+
renderUserInfo?: (userInfo: UserInfo) => React.ReactNode;
|
|
58
|
+
avatarComponent?: React.ReactNode;
|
|
59
|
+
onMenuItemPress?: (item: MenuItem) => void;
|
|
60
|
+
skeletonProps?: Partial<React.ComponentProps<typeof SkeletonPlaceholder>>;
|
|
61
|
+
headerStyle?: ViewStyle;
|
|
62
|
+
userInfoTextStyle?: UserInfoTextStyle;
|
|
63
|
+
menuItemStyle?: MenuItemStyle;
|
|
64
|
+
};
|
|
65
|
+
|
|
66
|
+
// ✅ Type Guard
|
|
67
|
+
const isToggleMenuItem = (item: MenuItem): item is ToggleMenuItem => {
|
|
68
|
+
return item.isToggle === true;
|
|
69
|
+
};
|
|
70
|
+
|
|
71
|
+
// ✅ Main Component
|
|
72
|
+
export const AppSettings: FC<AppSettingsProps> = ({
|
|
73
|
+
title,
|
|
74
|
+
titleAlign = 'center',
|
|
75
|
+
userInfo,
|
|
76
|
+
menuItems,
|
|
77
|
+
theme,
|
|
78
|
+
isLoading = false,
|
|
79
|
+
versionText = `Version ${DeviceInfo.getVersion()}`,
|
|
80
|
+
onBackPress,
|
|
81
|
+
renderHeader,
|
|
82
|
+
renderMenuItem,
|
|
83
|
+
renderFooter,
|
|
84
|
+
renderUserInfo,
|
|
85
|
+
avatarComponent,
|
|
86
|
+
onMenuItemPress,
|
|
87
|
+
skeletonProps = {},
|
|
88
|
+
headerStyle,
|
|
89
|
+
userInfoTextStyle = {},
|
|
90
|
+
menuItemStyle = {}
|
|
91
|
+
}) => {
|
|
92
|
+
const { theme: appliedTheme } = useTheme(theme);
|
|
93
|
+
const insets = useSafeAreaInsets();
|
|
94
|
+
// ✅ State for toggle values
|
|
95
|
+
const [toggleStates, setToggleStates] = useState<Record<string, boolean>>(
|
|
96
|
+
menuItems.reduce<Record<string, boolean>>((acc, item) => {
|
|
97
|
+
if (isToggleMenuItem(item)) {
|
|
98
|
+
acc[item.key] = item.toggleValue ?? false;
|
|
99
|
+
}
|
|
100
|
+
return acc;
|
|
101
|
+
}, {})
|
|
102
|
+
);
|
|
103
|
+
|
|
104
|
+
// ✅ Handle toggle change
|
|
105
|
+
const handleToggleChange = (key: string, value: boolean) => {
|
|
106
|
+
setToggleStates((prev) => ({ ...prev, [key]: value }));
|
|
107
|
+
const item = menuItems.find((i) => i.key === key) as ToggleMenuItem | undefined;
|
|
108
|
+
item?.onToggleChange?.(value);
|
|
109
|
+
};
|
|
110
|
+
const renderIconWithColor = (icon: React.ReactNode, color: string): React.ReactNode => {
|
|
111
|
+
if (isValidElement(icon)) {
|
|
112
|
+
return cloneElement(icon as ReactElement<any>, { color });
|
|
113
|
+
}
|
|
114
|
+
return icon;
|
|
115
|
+
};
|
|
116
|
+
const renderToggleMenuItem = (item: ToggleMenuItem) => {
|
|
117
|
+
return (
|
|
118
|
+
<View
|
|
119
|
+
key={item.key}
|
|
120
|
+
style={[
|
|
121
|
+
styles.menuItem,
|
|
122
|
+
{
|
|
123
|
+
backgroundColor: appliedTheme.colors.surfaceDisabled,
|
|
124
|
+
borderColor: appliedTheme.colors.border
|
|
125
|
+
},
|
|
126
|
+
menuItemStyle.container
|
|
127
|
+
]}
|
|
128
|
+
>
|
|
129
|
+
<View style={styles.menuItemContent}>
|
|
130
|
+
{item.icon && (
|
|
131
|
+
<View style={[styles.menuIcon, menuItemStyle.icon]}>
|
|
132
|
+
{renderIconWithColor(item.icon, appliedTheme.colors.textPrimary)}
|
|
133
|
+
</View>
|
|
134
|
+
)}
|
|
135
|
+
<Text
|
|
136
|
+
numberOfLines={1}
|
|
137
|
+
style={[styles.menuLabel, { color: appliedTheme.colors.onBackground }, menuItemStyle.label]}
|
|
138
|
+
>
|
|
139
|
+
{item.label}
|
|
140
|
+
</Text>
|
|
141
|
+
</View>
|
|
142
|
+
<Switch
|
|
143
|
+
trackColor={{
|
|
144
|
+
false: appliedTheme.colors.switchTrackColorDisabled,
|
|
145
|
+
true: appliedTheme.colors.switchTrackColor
|
|
146
|
+
}}
|
|
147
|
+
thumbColor={
|
|
148
|
+
toggleStates[item.key] ? appliedTheme.colors.switchThumbColor : appliedTheme.colors.switchThumbColorDisabled
|
|
149
|
+
}
|
|
150
|
+
value={toggleStates[item.key]}
|
|
151
|
+
onValueChange={(value) => handleToggleChange(item.key, value)}
|
|
152
|
+
style={styles.switchStyle}
|
|
153
|
+
/>
|
|
154
|
+
</View>
|
|
155
|
+
);
|
|
156
|
+
};
|
|
157
|
+
|
|
158
|
+
const renderPressableMenuItem = (item: PressableMenuItem) => {
|
|
159
|
+
return (
|
|
160
|
+
<TouchableOpacity
|
|
161
|
+
key={item.key}
|
|
162
|
+
activeOpacity={0.6}
|
|
163
|
+
onPress={() => {
|
|
164
|
+
item.onPress?.();
|
|
165
|
+
onMenuItemPress?.(item);
|
|
166
|
+
}}
|
|
167
|
+
style={[
|
|
168
|
+
styles.menuItem,
|
|
169
|
+
{
|
|
170
|
+
backgroundColor: appliedTheme.colors.surfaceDisabled,
|
|
171
|
+
borderColor: appliedTheme.colors.border
|
|
172
|
+
},
|
|
173
|
+
menuItemStyle.container
|
|
174
|
+
]}
|
|
175
|
+
>
|
|
176
|
+
{item.icon && (
|
|
177
|
+
<View style={[styles.menuIcon, menuItemStyle.icon]}>
|
|
178
|
+
{renderIconWithColor(item.icon, appliedTheme.colors.textPrimary)}
|
|
179
|
+
</View>
|
|
180
|
+
)}
|
|
181
|
+
<Text
|
|
182
|
+
numberOfLines={1}
|
|
183
|
+
style={[styles.menuLabel, { color: appliedTheme.colors.onBackground }, menuItemStyle.label]}
|
|
184
|
+
>
|
|
185
|
+
{item.label}
|
|
186
|
+
</Text>
|
|
187
|
+
</TouchableOpacity>
|
|
188
|
+
);
|
|
189
|
+
};
|
|
190
|
+
|
|
191
|
+
const renderMenuItemDefault = (item: MenuItem) => {
|
|
192
|
+
return isToggleMenuItem(item) ? renderToggleMenuItem(item) : renderPressableMenuItem(item);
|
|
193
|
+
};
|
|
194
|
+
|
|
195
|
+
return (
|
|
196
|
+
<View style={[styles.container, { backgroundColor: appliedTheme.colors.background }]}>
|
|
197
|
+
{(renderHeader || title || onBackPress) &&
|
|
198
|
+
(renderHeader ? (
|
|
199
|
+
renderHeader()
|
|
200
|
+
) : (
|
|
201
|
+
<AppHeader
|
|
202
|
+
style={headerStyle}
|
|
203
|
+
title={title || 'Settings'}
|
|
204
|
+
titleAlign={titleAlign}
|
|
205
|
+
onBackPress={onBackPress}
|
|
206
|
+
theme={appliedTheme}
|
|
207
|
+
/>
|
|
208
|
+
))}
|
|
209
|
+
<ScrollView
|
|
210
|
+
contentContainerStyle={[styles.scrollContent, { paddingBottom: verticalScale(60) + insets.bottom }]}
|
|
211
|
+
showsVerticalScrollIndicator={false}
|
|
212
|
+
keyboardShouldPersistTaps="handled"
|
|
213
|
+
>
|
|
214
|
+
{userInfo && (
|
|
215
|
+
<UserSection
|
|
216
|
+
theme={appliedTheme}
|
|
217
|
+
userInfo={userInfo}
|
|
218
|
+
avatarComponent={avatarComponent}
|
|
219
|
+
isLoading={isLoading}
|
|
220
|
+
renderUserInfo={renderUserInfo}
|
|
221
|
+
skeletonProps={skeletonProps}
|
|
222
|
+
userInfoTextStyle={userInfoTextStyle}
|
|
223
|
+
/>
|
|
224
|
+
)}
|
|
225
|
+
<View style={styles.menuList}>
|
|
226
|
+
{menuItems.map((item) =>
|
|
227
|
+
renderMenuItem ? (
|
|
228
|
+
<React.Fragment key={item.key}>{renderMenuItem(item)}</React.Fragment>
|
|
229
|
+
) : (
|
|
230
|
+
renderMenuItemDefault(item)
|
|
231
|
+
)
|
|
232
|
+
)}
|
|
233
|
+
</View>
|
|
234
|
+
{renderFooter?.()}
|
|
235
|
+
<View style={styles.versionContainer}>
|
|
236
|
+
<Text style={[styles.versionText, { color: appliedTheme.colors.onSurface }]}>{versionText}</Text>
|
|
237
|
+
</View>
|
|
238
|
+
</ScrollView>
|
|
239
|
+
</View>
|
|
240
|
+
);
|
|
241
|
+
};
|
|
242
|
+
|
|
243
|
+
// ✅ Styles
|
|
244
|
+
const styles = StyleSheet.create({
|
|
245
|
+
container: { flex: 1 },
|
|
246
|
+
scrollContent: {
|
|
247
|
+
paddingHorizontal: scale(12)
|
|
248
|
+
},
|
|
249
|
+
menuList: {
|
|
250
|
+
marginBottom: verticalScale(16)
|
|
251
|
+
},
|
|
252
|
+
menuItem: {
|
|
253
|
+
flexDirection: 'row',
|
|
254
|
+
alignItems: 'center',
|
|
255
|
+
borderWidth: scale(1),
|
|
256
|
+
paddingVertical: verticalScale(10),
|
|
257
|
+
paddingHorizontal: scale(12),
|
|
258
|
+
borderRadius: moderateScale(8),
|
|
259
|
+
marginBottom: verticalScale(10),
|
|
260
|
+
position: 'relative'
|
|
261
|
+
},
|
|
262
|
+
menuIcon: {
|
|
263
|
+
marginRight: scale(10),
|
|
264
|
+
alignItems: 'center',
|
|
265
|
+
justifyContent: 'center'
|
|
266
|
+
},
|
|
267
|
+
menuLabel: {
|
|
268
|
+
flex: 1,
|
|
269
|
+
fontSize: RFValue(12),
|
|
270
|
+
fontWeight: '500'
|
|
271
|
+
},
|
|
272
|
+
menuItemContent: {
|
|
273
|
+
flex: 1,
|
|
274
|
+
flexDirection: 'row',
|
|
275
|
+
alignItems: 'center'
|
|
276
|
+
},
|
|
277
|
+
switchStyle: {
|
|
278
|
+
transform: [{ scaleX: 1 }, { scaleY: 1 }]
|
|
279
|
+
},
|
|
280
|
+
versionContainer: {
|
|
281
|
+
alignItems: 'center',
|
|
282
|
+
justifyContent: 'center'
|
|
283
|
+
},
|
|
284
|
+
versionText: {
|
|
285
|
+
fontSize: RFValue(10),
|
|
286
|
+
opacity: 0.6
|
|
287
|
+
}
|
|
288
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './AppSettings';
|
|
@@ -0,0 +1,337 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @author Naresh Dhamu
|
|
3
|
+
* @lastModified Mon 21 Jul 2025 at 04:55 PM
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import React, { memo, useCallback, useMemo } from 'react';
|
|
7
|
+
import { View, StyleSheet, TouchableOpacity, ActivityIndicator } from 'react-native';
|
|
8
|
+
import Carousel from 'react-native-reanimated-carousel';
|
|
9
|
+
import { scale, verticalScale } from 'react-native-size-matters';
|
|
10
|
+
import LinearGradient from 'react-native-linear-gradient';
|
|
11
|
+
import SkeletonPlaceholder from 'react-native-skeleton-placeholder';
|
|
12
|
+
import Animated, { FadeIn, FadeOut } from 'react-native-reanimated';
|
|
13
|
+
import { Text } from '../Text';
|
|
14
|
+
import AppHeader from '../Headers/AppHeader';
|
|
15
|
+
import { useTheme } from '../../theme/hook/useTheme';
|
|
16
|
+
import Display from '../../utils/Display';
|
|
17
|
+
import type { AppTheme } from '../../theme/themes';
|
|
18
|
+
import { RFValue } from 'react-native-responsive-fontsize';
|
|
19
|
+
|
|
20
|
+
export type Plan = {
|
|
21
|
+
id: string;
|
|
22
|
+
title: string;
|
|
23
|
+
price: string;
|
|
24
|
+
duration: string;
|
|
25
|
+
platforms: string;
|
|
26
|
+
benefits?: string[];
|
|
27
|
+
isPopular?: boolean;
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
type SubscriptionSliderOneProps = {
|
|
31
|
+
theme?: AppTheme;
|
|
32
|
+
headerTitleAlign?: 'center' | 'left';
|
|
33
|
+
subscribeButtonText?: string;
|
|
34
|
+
onSubscribe?: (plan: Plan) => void;
|
|
35
|
+
subscribeLoadingId?: string | null;
|
|
36
|
+
plans: Plan[];
|
|
37
|
+
errorMessage?: string;
|
|
38
|
+
isLoading?: boolean;
|
|
39
|
+
onBackPress?: () => void;
|
|
40
|
+
header: {
|
|
41
|
+
topTitle: string;
|
|
42
|
+
topTitleAlign?: 'center' | 'left';
|
|
43
|
+
title: string;
|
|
44
|
+
subTitle: string;
|
|
45
|
+
};
|
|
46
|
+
footer: {
|
|
47
|
+
title: string;
|
|
48
|
+
subTitle: string;
|
|
49
|
+
};
|
|
50
|
+
extraContentText?: React.ReactNode;
|
|
51
|
+
};
|
|
52
|
+
const CAROUSEL_WIDTH = Display.fullWidth;
|
|
53
|
+
const CAROUSEL_HEIGHT = verticalScale(CAROUSEL_WIDTH / 1.4);
|
|
54
|
+
const SubscriptionSliderOne = ({
|
|
55
|
+
theme,
|
|
56
|
+
onSubscribe,
|
|
57
|
+
subscribeButtonText = 'Subscribe',
|
|
58
|
+
subscribeLoadingId,
|
|
59
|
+
plans,
|
|
60
|
+
errorMessage,
|
|
61
|
+
isLoading = false,
|
|
62
|
+
onBackPress = () => {},
|
|
63
|
+
header,
|
|
64
|
+
footer,
|
|
65
|
+
extraContentText
|
|
66
|
+
}: SubscriptionSliderOneProps) => {
|
|
67
|
+
const { theme: appliedTheme } = useTheme(theme);
|
|
68
|
+
const colors = appliedTheme.colors;
|
|
69
|
+
const parsePrice = (price: string) => parseFloat(price.replace(/[^\d.]/g, '')) || 0;
|
|
70
|
+
const sortedPlans = useMemo(() => {
|
|
71
|
+
return [...plans].sort((a, b) => {
|
|
72
|
+
const aPopular = a?.isPopular ? 1 : 0;
|
|
73
|
+
const bPopular = b?.isPopular ? 1 : 0;
|
|
74
|
+
|
|
75
|
+
if (aPopular !== bPopular) {
|
|
76
|
+
return bPopular - aPopular;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
if (aPopular === 1 && bPopular === 1) {
|
|
80
|
+
return parsePrice(b.price) - parsePrice(a.price);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
return 0;
|
|
84
|
+
});
|
|
85
|
+
}, [plans]);
|
|
86
|
+
const placeholderData = useMemo(() => new Array(plans.length || 1).fill({}), [plans]);
|
|
87
|
+
|
|
88
|
+
const renderSkeleton = useCallback(
|
|
89
|
+
() => (
|
|
90
|
+
<Animated.View entering={FadeIn} exiting={FadeOut} style={styles.cardContainer}>
|
|
91
|
+
<SkeletonPlaceholder
|
|
92
|
+
borderRadius={20}
|
|
93
|
+
backgroundColor={colors.skeletonBaseColor}
|
|
94
|
+
highlightColor={colors.skeletonHighlightColor}
|
|
95
|
+
>
|
|
96
|
+
<View style={styles.card} />
|
|
97
|
+
</SkeletonPlaceholder>
|
|
98
|
+
</Animated.View>
|
|
99
|
+
),
|
|
100
|
+
[colors.skeletonBaseColor, colors.skeletonHighlightColor]
|
|
101
|
+
);
|
|
102
|
+
|
|
103
|
+
const renderPlan = useCallback(
|
|
104
|
+
({ item }: { item: Plan }) => (
|
|
105
|
+
<View style={styles.cardContainer}>
|
|
106
|
+
<LinearGradient
|
|
107
|
+
colors={colors.cardGradient}
|
|
108
|
+
start={{ x: 1, y: 0 }}
|
|
109
|
+
end={{ x: 0, y: 1.2 }}
|
|
110
|
+
locations={[0, 0.7, 1]}
|
|
111
|
+
style={[styles.card, { shadowColor: colors.primary }]}
|
|
112
|
+
>
|
|
113
|
+
{item?.isPopular && (
|
|
114
|
+
<View style={[styles.popularBadge, { backgroundColor: colors.onBackground }]}>
|
|
115
|
+
<Text style={[styles.popularText, { color: colors.onSecondary }]}>POPULAR</Text>
|
|
116
|
+
</View>
|
|
117
|
+
)}
|
|
118
|
+
|
|
119
|
+
<Text style={[styles.cardTitle, { color: colors.white }]}>{item.title}</Text>
|
|
120
|
+
<Text style={[styles.price, { color: colors.white }]}>{item.price}</Text>
|
|
121
|
+
<Text style={[styles.per, { color: colors.white }]}>{item.duration}</Text>
|
|
122
|
+
<Text style={[styles.platforms, { color: colors.white }]}>{item.platforms}</Text>
|
|
123
|
+
{!!item.benefits?.length && (
|
|
124
|
+
<View style={styles.benefitsContainer}>
|
|
125
|
+
{item.benefits.map((benefit, i) => (
|
|
126
|
+
<Text key={i} style={[styles.benefit, { color: colors.white }]}>
|
|
127
|
+
• {benefit}
|
|
128
|
+
</Text>
|
|
129
|
+
))}
|
|
130
|
+
</View>
|
|
131
|
+
)}
|
|
132
|
+
<TouchableOpacity
|
|
133
|
+
style={[styles.subscribeButton, { backgroundColor: colors.button }]}
|
|
134
|
+
onPress={() => onSubscribe?.(item)}
|
|
135
|
+
activeOpacity={0.8}
|
|
136
|
+
disabled={subscribeLoadingId === item.id}
|
|
137
|
+
>
|
|
138
|
+
{subscribeLoadingId === item.id ? (
|
|
139
|
+
<ActivityIndicator size="small" color={colors.black} />
|
|
140
|
+
) : (
|
|
141
|
+
<Text style={[styles.subscribeText, { color: colors.black }]}>{subscribeButtonText}</Text>
|
|
142
|
+
)}
|
|
143
|
+
</TouchableOpacity>
|
|
144
|
+
</LinearGradient>
|
|
145
|
+
</View>
|
|
146
|
+
),
|
|
147
|
+
[
|
|
148
|
+
colors.black,
|
|
149
|
+
colors.button,
|
|
150
|
+
colors.cardGradient,
|
|
151
|
+
colors.onBackground,
|
|
152
|
+
colors.onSecondary,
|
|
153
|
+
colors.primary,
|
|
154
|
+
colors.white,
|
|
155
|
+
onSubscribe,
|
|
156
|
+
subscribeButtonText,
|
|
157
|
+
subscribeLoadingId
|
|
158
|
+
]
|
|
159
|
+
);
|
|
160
|
+
|
|
161
|
+
return (
|
|
162
|
+
<View style={[styles.container, { backgroundColor: colors.background }]}>
|
|
163
|
+
<AppHeader
|
|
164
|
+
title={header.topTitle}
|
|
165
|
+
onBackPress={onBackPress}
|
|
166
|
+
titleAlign={header.topTitleAlign}
|
|
167
|
+
theme={appliedTheme}
|
|
168
|
+
/>
|
|
169
|
+
<View style={styles.content}>
|
|
170
|
+
<Text style={[styles.heading]}>{header.title}</Text>
|
|
171
|
+
<Text style={[styles.subText, { color: colors.onSurfaceVariant }]}>{header.subTitle}</Text>
|
|
172
|
+
|
|
173
|
+
{errorMessage ? (
|
|
174
|
+
<Text style={[styles.errorMessage, { color: colors.error }]}>{errorMessage}</Text>
|
|
175
|
+
) : (
|
|
176
|
+
<Carousel
|
|
177
|
+
width={CAROUSEL_WIDTH}
|
|
178
|
+
height={CAROUSEL_HEIGHT}
|
|
179
|
+
data={isLoading ? placeholderData : sortedPlans}
|
|
180
|
+
renderItem={isLoading ? renderSkeleton : renderPlan}
|
|
181
|
+
loop
|
|
182
|
+
autoPlay={false}
|
|
183
|
+
scrollAnimationDuration={500}
|
|
184
|
+
mode="parallax"
|
|
185
|
+
modeConfig={{
|
|
186
|
+
parallaxScrollingOffset: Display.fullWidth * 0.21,
|
|
187
|
+
parallaxAdjacentItemScale: 0.8
|
|
188
|
+
}}
|
|
189
|
+
/>
|
|
190
|
+
)}
|
|
191
|
+
|
|
192
|
+
<Text style={[styles.info, { color: colors.onSurfaceVariant }]}>{footer.title}</Text>
|
|
193
|
+
<Text style={[styles.cancelText, { color: colors.onSurfaceVariant }]}>{footer.subTitle}</Text>
|
|
194
|
+
|
|
195
|
+
{extraContentText && (
|
|
196
|
+
<View style={styles.extraContentTextWrapper}>
|
|
197
|
+
{React.isValidElement(extraContentText) ? (
|
|
198
|
+
extraContentText
|
|
199
|
+
) : (
|
|
200
|
+
<Text style={[styles.extraContentTextText, { color: colors.onSurfaceVariant }]}>{extraContentText}</Text>
|
|
201
|
+
)}
|
|
202
|
+
</View>
|
|
203
|
+
)}
|
|
204
|
+
</View>
|
|
205
|
+
</View>
|
|
206
|
+
);
|
|
207
|
+
};
|
|
208
|
+
|
|
209
|
+
export default memo(SubscriptionSliderOne);
|
|
210
|
+
|
|
211
|
+
namespace SubscriptionSliderOne {
|
|
212
|
+
export type Props = SubscriptionSliderOneProps;
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
const styles = StyleSheet.create({
|
|
216
|
+
container: { flex: 1 },
|
|
217
|
+
content: { flex: 1, paddingTop: verticalScale(16) },
|
|
218
|
+
heading: {
|
|
219
|
+
fontSize: RFValue(21),
|
|
220
|
+
fontWeight: '700',
|
|
221
|
+
textAlign: 'center',
|
|
222
|
+
marginBottom: verticalScale(12),
|
|
223
|
+
marginHorizontal: scale(16)
|
|
224
|
+
},
|
|
225
|
+
subText: {
|
|
226
|
+
textAlign: 'center',
|
|
227
|
+
fontSize: RFValue(12),
|
|
228
|
+
fontWeight: '400',
|
|
229
|
+
marginBottom: verticalScale(12),
|
|
230
|
+
marginHorizontal: scale(16)
|
|
231
|
+
},
|
|
232
|
+
errorMessage: {
|
|
233
|
+
fontSize: RFValue(13),
|
|
234
|
+
fontWeight: '600',
|
|
235
|
+
textAlign: 'center',
|
|
236
|
+
marginVertical: verticalScale(12)
|
|
237
|
+
},
|
|
238
|
+
|
|
239
|
+
cardContainer: {
|
|
240
|
+
alignItems: 'center',
|
|
241
|
+
justifyContent: 'center'
|
|
242
|
+
},
|
|
243
|
+
card: {
|
|
244
|
+
position: 'relative',
|
|
245
|
+
width: Display.fullWidth * 0.95,
|
|
246
|
+
aspectRatio: 1,
|
|
247
|
+
borderRadius: scale(20),
|
|
248
|
+
justifyContent: 'center',
|
|
249
|
+
alignItems: 'center',
|
|
250
|
+
alignSelf: 'center',
|
|
251
|
+
shadowOffset: { width: 0, height: 4 },
|
|
252
|
+
shadowOpacity: 0.2,
|
|
253
|
+
shadowRadius: 8,
|
|
254
|
+
elevation: 5
|
|
255
|
+
},
|
|
256
|
+
cardTitle: {
|
|
257
|
+
fontSize: RFValue(17),
|
|
258
|
+
fontWeight: '700',
|
|
259
|
+
marginBottom: verticalScale(8)
|
|
260
|
+
},
|
|
261
|
+
price: {
|
|
262
|
+
fontSize: RFValue(43),
|
|
263
|
+
fontWeight: 'bold',
|
|
264
|
+
marginBottom: verticalScale(4)
|
|
265
|
+
},
|
|
266
|
+
per: {
|
|
267
|
+
fontSize: RFValue(13),
|
|
268
|
+
textTransform: 'capitalize',
|
|
269
|
+
marginBottom: verticalScale(6)
|
|
270
|
+
},
|
|
271
|
+
platforms: {
|
|
272
|
+
fontSize: RFValue(13),
|
|
273
|
+
textTransform: 'capitalize',
|
|
274
|
+
textAlign: 'center',
|
|
275
|
+
marginBottom: verticalScale(8)
|
|
276
|
+
},
|
|
277
|
+
benefitsContainer: {
|
|
278
|
+
marginTop: verticalScale(8),
|
|
279
|
+
alignItems: 'flex-start',
|
|
280
|
+
justifyContent: 'center',
|
|
281
|
+
paddingHorizontal: scale(16)
|
|
282
|
+
},
|
|
283
|
+
benefit: {
|
|
284
|
+
fontSize: RFValue(12)
|
|
285
|
+
},
|
|
286
|
+
subscribeButton: {
|
|
287
|
+
paddingVertical: verticalScale(10),
|
|
288
|
+
paddingHorizontal: scale(60),
|
|
289
|
+
borderRadius: scale(30),
|
|
290
|
+
alignItems: 'center',
|
|
291
|
+
marginTop: verticalScale(15)
|
|
292
|
+
},
|
|
293
|
+
subscribeText: {
|
|
294
|
+
fontSize: RFValue(14),
|
|
295
|
+
fontWeight: '700'
|
|
296
|
+
},
|
|
297
|
+
info: {
|
|
298
|
+
fontSize: RFValue(11),
|
|
299
|
+
textAlign: 'center',
|
|
300
|
+
fontWeight: '400',
|
|
301
|
+
marginVertical: verticalScale(8),
|
|
302
|
+
marginHorizontal: scale(16)
|
|
303
|
+
},
|
|
304
|
+
cancelText: {
|
|
305
|
+
fontSize: RFValue(11),
|
|
306
|
+
textAlign: 'center',
|
|
307
|
+
fontWeight: '400',
|
|
308
|
+
marginBottom: verticalScale(16),
|
|
309
|
+
marginHorizontal: scale(16)
|
|
310
|
+
},
|
|
311
|
+
extraContentTextWrapper: {
|
|
312
|
+
marginTop: verticalScale(18),
|
|
313
|
+
alignItems: 'center',
|
|
314
|
+
justifyContent: 'center',
|
|
315
|
+
paddingHorizontal: scale(16)
|
|
316
|
+
},
|
|
317
|
+
extraContentTextText: {
|
|
318
|
+
fontSize: RFValue(10),
|
|
319
|
+
marginHorizontal: scale(16),
|
|
320
|
+
fontWeight: '400',
|
|
321
|
+
textAlign: 'center'
|
|
322
|
+
},
|
|
323
|
+
popularBadge: {
|
|
324
|
+
position: 'absolute',
|
|
325
|
+
top: verticalScale(12),
|
|
326
|
+
right: scale(12),
|
|
327
|
+
paddingHorizontal: scale(10),
|
|
328
|
+
paddingVertical: verticalScale(4),
|
|
329
|
+
borderRadius: scale(12),
|
|
330
|
+
zIndex: 10
|
|
331
|
+
},
|
|
332
|
+
popularText: {
|
|
333
|
+
fontSize: RFValue(12),
|
|
334
|
+
textTransform: 'uppercase',
|
|
335
|
+
fontWeight: '700'
|
|
336
|
+
}
|
|
337
|
+
});
|