@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,75 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @author Naresh Dhamu
|
|
3
|
+
* @lastModified Sat 14 Jun 2025 at 02:59 PM
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import { StyleSheet } from 'react-native';
|
|
7
|
+
|
|
8
|
+
const globalStyles = StyleSheet.create({
|
|
9
|
+
centerContainer: {
|
|
10
|
+
flex: 1,
|
|
11
|
+
width: '100%',
|
|
12
|
+
alignItems: 'center',
|
|
13
|
+
justifyContent: 'center'
|
|
14
|
+
},
|
|
15
|
+
container: {
|
|
16
|
+
flex: 1
|
|
17
|
+
},
|
|
18
|
+
newContainer: {
|
|
19
|
+
flex: 1
|
|
20
|
+
},
|
|
21
|
+
// new styles
|
|
22
|
+
flexOneJustifyContentAndAlignItemsCenter: {
|
|
23
|
+
flex: 1,
|
|
24
|
+
justifyContent: 'center',
|
|
25
|
+
alignItems: 'center'
|
|
26
|
+
},
|
|
27
|
+
flexOneJustifyContentCenterAndAlignItemsCenter: {
|
|
28
|
+
flex: 1,
|
|
29
|
+
justifyContent: 'center',
|
|
30
|
+
alignItems: 'center'
|
|
31
|
+
},
|
|
32
|
+
hundredPercentWidth: {
|
|
33
|
+
width: '100%'
|
|
34
|
+
},
|
|
35
|
+
hundredPercentHeight: {
|
|
36
|
+
height: '100%'
|
|
37
|
+
},
|
|
38
|
+
marginZeroAndPaddingZero: {
|
|
39
|
+
margin: 0,
|
|
40
|
+
padding: 0
|
|
41
|
+
},
|
|
42
|
+
overflowHidden: {
|
|
43
|
+
overflow: 'hidden'
|
|
44
|
+
},
|
|
45
|
+
flexOne: {
|
|
46
|
+
flex: 1
|
|
47
|
+
},
|
|
48
|
+
flexZero: {
|
|
49
|
+
flex: 0
|
|
50
|
+
},
|
|
51
|
+
positionAbsolute: {
|
|
52
|
+
position: 'absolute'
|
|
53
|
+
},
|
|
54
|
+
twentyPercentWidth: {
|
|
55
|
+
width: '20%'
|
|
56
|
+
},
|
|
57
|
+
alignItemsCenterAndJustifyContentCenter: {
|
|
58
|
+
alignItems: 'center',
|
|
59
|
+
justifyContent: 'center'
|
|
60
|
+
},
|
|
61
|
+
textAlignCenter: {
|
|
62
|
+
textAlign: 'center'
|
|
63
|
+
},
|
|
64
|
+
flexRow_alignCenter_justifyBetween: {
|
|
65
|
+
flexDirection: 'row',
|
|
66
|
+
alignItems: 'center',
|
|
67
|
+
justifyContent: 'space-between'
|
|
68
|
+
},
|
|
69
|
+
flexOneWithBlackBackground: {
|
|
70
|
+
flex: 1,
|
|
71
|
+
backgroundColor: 'black'
|
|
72
|
+
}
|
|
73
|
+
});
|
|
74
|
+
|
|
75
|
+
export default globalStyles;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/src/assets/img/back.png
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/src/assets/img/h.svg
CHANGED
|
File without changes
|
package/src/assets/img/home.png
CHANGED
|
File without changes
|
package/src/assets/img/lock.png
CHANGED
|
File without changes
|
package/src/assets/img/play.png
CHANGED
|
File without changes
|
|
Binary file
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/src/assets/img/user.png
CHANGED
|
File without changes
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
<svg width="18" height="20" viewBox="0 0 18 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M16.5995 19.007V17.0571C16.5995 16.0228 16.1886 15.0308 15.4573 14.2995C14.7259 13.5681 13.7339 13.1572 12.6996 13.1572H4.89988C3.86557 13.1572 2.87362 13.5681 2.14225 14.2995C1.41088 15.0308 1 16.0228 1 17.0571V19.007" stroke="currentColor" stroke-width="1.94994" stroke-linecap="round" stroke-linejoin="round"/>
|
|
3
|
+
<path d="M8.79978 9.25776C10.9536 9.25776 12.6997 7.51173 12.6997 5.35788C12.6997 3.20404 10.9536 1.45801 8.79978 1.45801C6.64594 1.45801 4.8999 3.20404 4.8999 5.35788C4.8999 7.51173 6.64594 9.25776 8.79978 9.25776Z" stroke="currentColor" stroke-width="1.94994" stroke-linecap="round" stroke-linejoin="round"/>
|
|
4
|
+
</svg>
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
|
2
|
+
<mask id="mask0_105_3024" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="0" y="0" width="20" height="20">
|
|
3
|
+
<rect width="20" height="20" fill="url(#pattern0_105_3024)"/>
|
|
4
|
+
</mask>
|
|
5
|
+
<g mask="url(#mask0_105_3024)">
|
|
6
|
+
<rect width="20" height="21.4706" fill="currentColor"/>
|
|
7
|
+
</g>
|
|
8
|
+
<defs>
|
|
9
|
+
<pattern id="pattern0_105_3024" patternContentUnits="objectBoundingBox" width="1" height="1">
|
|
10
|
+
<use xlink:href="#image0_105_3024" transform="scale(0.00195312)"/>
|
|
11
|
+
</pattern>
|
|
12
|
+
<image id="image0_105_3024" width="512" height="512" preserveAspectRatio="none" xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAgAAAAIACAMAAADDpiTIAAAAA3NCSVQICAjb4U/gAAAACXBIWXMAAA52AAAOdgEU2nBfAAAAGXRFWHRTb2Z0d2FyZQB3d3cuaW5rc2NhcGUub3Jnm+48GgAAAwBQTFRF////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA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4VPV9lEubXg4LAofnka5fdVg+FiN/9CCfXc6YIHjzn204D81YPhcrUO0YsMNELthA604VAuGDWofoSVL6kGk3hJacqQ2DFtcfpyW5L9TH1r138mnJccvh2GTekm0aM+E1iEoVEjrCXtoUVI9GLZJSKZlybPviMVFxN4xJ5mWJSfAsFHDk3RD9ooJI3q3rh2DX8XUbt17xIQV2XTDyYYwbNX4NN13Zufq1TvP0H2nG8Ow2bVnaJsz18Kw3XWptEnqdTD8QIt02iK9BQy/cEMGbZBxAww/cVMWfS7rJhh+45Zs+lj2LTD8SIcc+lROBxh+pX0mfSizPQw/0yKFPpPSAobfueo4feT4VTD80GX76BP7LoPhlypvow9sqwzDT5X+kl73ZWkYfit0nIte5RoXCsOfdThJLzrZAYafq76eXrO+Ogy/FzaRXjIxDEYg6HiAXnCgI4wAEf1SLj0s96VoGIGj7hf0qC/qwggsfX6hx/zSB0bAiRuTQo9IGRMHIxCVGnmCRXZiZCkYgSp62GEWyeFh0TACWfigTXTbpkHhMAJewstH6IYjLyfAKB6cbeek05L0OW2dMIqRmG6Tt1No++RuMTCKn4q939lDjT3v9K4Io/iq0vahN1ceKOAFCg6sfPOhtlVgBIPIhA533jds1Pgps2dPGT9q2H13dkiIhGEYhmEYhmEYhmEYhmEYhmEYhmEYhmEYhmEYhmEYhmEYhmEYhmEYhmEYhmEYhmH4q/8HzzUEEzqpCYoAAAAASUVORK5CYII="/>
|
|
13
|
+
</defs>
|
|
14
|
+
</svg>
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
<svg width="19" height="21" viewBox="0 0 19 21" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M14.8502 6.99807C14.8502 5.52876 14.2665 4.11962 13.2275 3.08066C12.1886 2.04169 10.7794 1.45801 9.3101 1.45801C7.84078 1.45801 6.43164 2.04169 5.39268 3.08066C4.35372 4.11962 3.77003 5.52876 3.77003 6.99807C3.77003 13.4615 1 15.3082 1 15.3082H17.6202C17.6202 15.3082 14.8502 13.4615 14.8502 6.99807Z" stroke="currentColor" stroke-width="1.84669" stroke-linecap="round" stroke-linejoin="round"/>
|
|
3
|
+
<path d="M10.9074 19.002C10.7451 19.2818 10.5121 19.5141 10.2317 19.6756C9.9514 19.837 9.63355 19.922 9.31003 19.922C8.98651 19.922 8.66867 19.837 8.38833 19.6756C8.10798 19.5141 7.87498 19.2818 7.71265 19.002" stroke="currentColor" stroke-width="1.84669" stroke-linecap="round" stroke-linejoin="round"/>
|
|
4
|
+
</svg>
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<g clip-path="url(#clip0_105_2703)">
|
|
3
|
+
<path d="M13.7977 4.88525C13.1547 4.73475 12.4965 4.65952 11.8362 4.66107C5.29772 4.66107 1.56147 12.1336 1.56147 12.1336C2.12847 13.1943 2.80466 14.1929 3.57905 15.1132M9.85595 14.1138C10.1125 14.3891 10.4218 14.6099 10.7656 14.7631C11.1093 14.9162 11.4804 14.9986 11.8566 15.0052C12.2329 15.0119 12.6066 14.9426 12.9555 14.8017C13.3044 14.6608 13.6214 14.451 13.8875 14.1849C14.1536 13.9188 14.3634 13.6019 14.5043 13.2529C14.6452 12.904 14.7144 12.5303 14.7078 12.154C14.7012 11.7778 14.6188 11.4067 14.4657 11.063C14.3125 10.7193 14.0917 10.4099 13.8164 10.1534M22.1108 1.85889L1.56147 22.4083M6.28783 17.6819C7.88452 18.899 9.82876 19.5732 11.8362 19.6061C18.3746 19.6061 22.1108 12.1336 22.1108 12.1336C20.949 9.96832 19.3375 8.07657 17.3845 6.58524L6.28783 17.6819Z" stroke="white" stroke-width="1.86812" stroke-linecap="round" stroke-linejoin="round"/>
|
|
4
|
+
</g>
|
|
5
|
+
<defs>
|
|
6
|
+
<clipPath id="clip0_105_2703">
|
|
7
|
+
<rect width="22.4175" height="22.4175" fill="white" transform="matrix(-1 0 0 1 23.0449 0.924805)"/>
|
|
8
|
+
</clipPath>
|
|
9
|
+
</defs>
|
|
10
|
+
</svg>
|
|
File without changes
|
package/src/assets/svg/home.svg
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
<svg width="19" height="19" viewBox="0 0 19 19" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<circle cx="9.5057" cy="4.74252" r="4.29232" fill="currentColor"/>
|
|
3
|
+
<path d="M0.166016 15.6515C0.166016 13.11 2.22626 11.0498 4.7677 11.0498L13.735 11.0498C16.2764 11.0498 18.3366 13.1101 18.3366 15.6515V18.6209H0.166016V15.6515Z" fill="currentColor"/>
|
|
4
|
+
</svg>
|
|
File without changes
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
<svg width="21" height="23" viewBox="0 0 21 23" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M9.2062 17.5744C13.6671 17.5744 17.2834 13.9581 17.2834 9.49716C17.2834 5.03622 13.6671 1.41992 9.2062 1.41992C4.74527 1.41992 1.12897 5.03622 1.12897 9.49716C1.12897 13.9581 4.74527 17.5744 9.2062 17.5744Z" fill="currentColor" stroke="currentColor" stroke-width="2.01931" stroke-linecap="round" stroke-linejoin="round"/>
|
|
3
|
+
<path d="M19.9773 21.2783L16.2752 17.5762" stroke="currentColor" stroke-width="2.01931" stroke-linecap="round" stroke-linejoin="round"/>
|
|
4
|
+
</svg>
|
|
File without changes
|
|
@@ -0,0 +1,289 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @author Naresh Dhamu
|
|
3
|
+
* @lastModified Mon 21 Jul 2025 at 12:35 PM
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import React, { cloneElement, isValidElement, memo, type ReactElement } from 'react';
|
|
7
|
+
import { View, StyleSheet, ScrollView, TouchableOpacity, type TextStyle } from 'react-native';
|
|
8
|
+
import { ChevronRight, Trash2 } from 'lucide-react-native';
|
|
9
|
+
import { useTheme } from '../../theme/hook/useTheme';
|
|
10
|
+
import { moderateScale, scale, verticalScale } from 'react-native-size-matters';
|
|
11
|
+
import AppHeader from '../Headers/AppHeader';
|
|
12
|
+
import SkeletonPlaceholder from 'react-native-skeleton-placeholder';
|
|
13
|
+
import UserSection from '../User/components/UserSection';
|
|
14
|
+
import TextButton from '../Button/TextButton';
|
|
15
|
+
import { Text } from '../Text';
|
|
16
|
+
import { useSafeAreaInsets } from 'react-native-safe-area-context';
|
|
17
|
+
import type { AppTheme, ITheme } from '../../theme/themes';
|
|
18
|
+
import { RFValue } from 'react-native-responsive-fontsize';
|
|
19
|
+
|
|
20
|
+
type CardItem = {
|
|
21
|
+
type: 'card';
|
|
22
|
+
title: string;
|
|
23
|
+
subtitle: string;
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
type RowItem = {
|
|
27
|
+
type?: 'row';
|
|
28
|
+
label: string;
|
|
29
|
+
leftIcon?: React.ReactNode;
|
|
30
|
+
showRightIcon?: boolean;
|
|
31
|
+
onPress?: () => void;
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
type AccountSectionItem = CardItem | RowItem;
|
|
35
|
+
|
|
36
|
+
type AccountSection = {
|
|
37
|
+
title: string;
|
|
38
|
+
items: AccountSectionItem[];
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
type UserInfo = {
|
|
42
|
+
name: string;
|
|
43
|
+
avatarUri: string;
|
|
44
|
+
emailOrPhone: string;
|
|
45
|
+
onEditPress?: () => void;
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
interface UserInfoTextStyle {
|
|
49
|
+
nameStyle?: TextStyle;
|
|
50
|
+
emailStyle?: TextStyle;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export type AccountProps = {
|
|
54
|
+
title?: string;
|
|
55
|
+
userInfo: UserInfo;
|
|
56
|
+
renderUserInfo?: (userInfo: UserInfo) => React.ReactNode;
|
|
57
|
+
sections: AccountSection[];
|
|
58
|
+
onBackPress?: () => void;
|
|
59
|
+
theme?: AppTheme;
|
|
60
|
+
isLoading?: boolean;
|
|
61
|
+
avatarComponent?: React.ReactNode;
|
|
62
|
+
skeletonProps?: Partial<React.ComponentProps<typeof SkeletonPlaceholder>>;
|
|
63
|
+
userInfoTextStyle?: UserInfoTextStyle;
|
|
64
|
+
helpText?: string;
|
|
65
|
+
clickableText?: string;
|
|
66
|
+
deleteAccountText?: string;
|
|
67
|
+
deleteAccountIcon?: React.ReactNode;
|
|
68
|
+
onHelpPress?: () => void;
|
|
69
|
+
onDeleteAccountPress?: () => void;
|
|
70
|
+
};
|
|
71
|
+
|
|
72
|
+
const isInvalidText = (val?: string | null): boolean =>
|
|
73
|
+
!val || val.trim() === '' || val.includes('undefined') || val.includes('Invalid');
|
|
74
|
+
|
|
75
|
+
const renderIconWithColor = (icon: React.ReactNode, color: string): React.ReactNode => {
|
|
76
|
+
if (isValidElement(icon)) {
|
|
77
|
+
return cloneElement(icon as ReactElement<any>, { color });
|
|
78
|
+
}
|
|
79
|
+
return icon;
|
|
80
|
+
};
|
|
81
|
+
|
|
82
|
+
const getValidSectionItems = (items: AccountSectionItem[]): AccountSectionItem[] =>
|
|
83
|
+
items.filter((item) => (item.type === 'card' ? !isInvalidText(item.title) || !isInvalidText(item.subtitle) : true));
|
|
84
|
+
|
|
85
|
+
export const Account: React.FC<AccountProps> = ({
|
|
86
|
+
title = 'Account',
|
|
87
|
+
userInfo,
|
|
88
|
+
renderUserInfo,
|
|
89
|
+
sections,
|
|
90
|
+
onBackPress,
|
|
91
|
+
theme,
|
|
92
|
+
isLoading,
|
|
93
|
+
avatarComponent,
|
|
94
|
+
userInfoTextStyle = {},
|
|
95
|
+
skeletonProps = {},
|
|
96
|
+
helpText = 'Need Help?',
|
|
97
|
+
clickableText = 'Click Here',
|
|
98
|
+
deleteAccountText = 'Delete Account',
|
|
99
|
+
deleteAccountIcon,
|
|
100
|
+
onHelpPress,
|
|
101
|
+
onDeleteAccountPress
|
|
102
|
+
}) => {
|
|
103
|
+
const { theme: appliedTheme } = useTheme(theme);
|
|
104
|
+
const insets = useSafeAreaInsets();
|
|
105
|
+
|
|
106
|
+
return (
|
|
107
|
+
<View style={[styles.container, { backgroundColor: appliedTheme.colors.background }]}>
|
|
108
|
+
<AppHeader onBackPress={onBackPress} title={title} theme={appliedTheme} />
|
|
109
|
+
|
|
110
|
+
<ScrollView
|
|
111
|
+
contentContainerStyle={[styles.content, { paddingBottom: insets.bottom + verticalScale(40) }]}
|
|
112
|
+
showsVerticalScrollIndicator={false}
|
|
113
|
+
keyboardShouldPersistTaps="handled"
|
|
114
|
+
>
|
|
115
|
+
<UserSection
|
|
116
|
+
theme={appliedTheme}
|
|
117
|
+
userInfo={userInfo}
|
|
118
|
+
avatarComponent={avatarComponent}
|
|
119
|
+
isLoading={isLoading}
|
|
120
|
+
renderUserInfo={renderUserInfo}
|
|
121
|
+
skeletonProps={skeletonProps}
|
|
122
|
+
userInfoTextStyle={userInfoTextStyle}
|
|
123
|
+
/>
|
|
124
|
+
|
|
125
|
+
{sections?.map(({ title: sectionTitle, items }) => {
|
|
126
|
+
const validItems = getValidSectionItems(items);
|
|
127
|
+
if (validItems.length === 0) return null;
|
|
128
|
+
|
|
129
|
+
return (
|
|
130
|
+
<View key={sectionTitle} style={styles.sectionBlock}>
|
|
131
|
+
<Text style={[styles.sectionTitle, { color: appliedTheme.colors.textSecondary }]}>{sectionTitle}</Text>
|
|
132
|
+
|
|
133
|
+
{validItems.map((item, index) =>
|
|
134
|
+
item.type === 'card' ? (
|
|
135
|
+
<CardItemView key={`card-${index}`} {...item} theme={appliedTheme} />
|
|
136
|
+
) : (
|
|
137
|
+
<MenuItemView key={`row-${index}`} {...item} theme={appliedTheme} />
|
|
138
|
+
)
|
|
139
|
+
)}
|
|
140
|
+
</View>
|
|
141
|
+
);
|
|
142
|
+
})}
|
|
143
|
+
|
|
144
|
+
{(onDeleteAccountPress || helpText || clickableText) && (
|
|
145
|
+
<View style={styles.bottomBlock}>
|
|
146
|
+
{onDeleteAccountPress && (
|
|
147
|
+
<TextButton
|
|
148
|
+
onPress={onDeleteAccountPress}
|
|
149
|
+
style={{
|
|
150
|
+
fontWeight: '500',
|
|
151
|
+
color: appliedTheme.colors.error
|
|
152
|
+
}}
|
|
153
|
+
title={deleteAccountText}
|
|
154
|
+
underline
|
|
155
|
+
leftIcon={
|
|
156
|
+
deleteAccountIcon ?? (
|
|
157
|
+
<Trash2 size={18} color={appliedTheme.colors.error} style={{ marginRight: scale(4) }} />
|
|
158
|
+
)
|
|
159
|
+
}
|
|
160
|
+
/>
|
|
161
|
+
)}
|
|
162
|
+
|
|
163
|
+
{(helpText || clickableText) && (
|
|
164
|
+
<View style={styles.helpSubContainer}>
|
|
165
|
+
<Text style={[styles.helpText, { color: appliedTheme.colors.textSecondary }]}>{helpText}</Text>
|
|
166
|
+
{clickableText && (
|
|
167
|
+
<TextButton
|
|
168
|
+
onPress={() => onHelpPress?.()}
|
|
169
|
+
style={{
|
|
170
|
+
fontWeight: '500',
|
|
171
|
+
color: appliedTheme.colors.primary
|
|
172
|
+
}}
|
|
173
|
+
title={clickableText}
|
|
174
|
+
underline
|
|
175
|
+
/>
|
|
176
|
+
)}
|
|
177
|
+
</View>
|
|
178
|
+
)}
|
|
179
|
+
</View>
|
|
180
|
+
)}
|
|
181
|
+
</ScrollView>
|
|
182
|
+
</View>
|
|
183
|
+
);
|
|
184
|
+
};
|
|
185
|
+
|
|
186
|
+
const CardItemView = memo(({ title, subtitle, theme }: CardItem & { theme: ITheme }) => {
|
|
187
|
+
if (isInvalidText(title) && isInvalidText(subtitle)) return null;
|
|
188
|
+
|
|
189
|
+
return (
|
|
190
|
+
<View style={[styles.card, { backgroundColor: theme.colors.surfaceDisabled }]}>
|
|
191
|
+
{!isInvalidText(title) && <Text style={[styles.cardTitle, { color: theme.colors.textPrimary }]}>{title}</Text>}
|
|
192
|
+
{!isInvalidText(subtitle) && (
|
|
193
|
+
<Text style={[styles.cardSub, { color: theme.colors.textSecondary }]}>{subtitle}</Text>
|
|
194
|
+
)}
|
|
195
|
+
</View>
|
|
196
|
+
);
|
|
197
|
+
});
|
|
198
|
+
|
|
199
|
+
const MenuItemView = memo(({ label, leftIcon, showRightIcon, onPress, theme }: RowItem & { theme: ITheme }) => {
|
|
200
|
+
return (
|
|
201
|
+
<TouchableOpacity
|
|
202
|
+
onPress={onPress}
|
|
203
|
+
activeOpacity={0.6}
|
|
204
|
+
style={[
|
|
205
|
+
styles.row,
|
|
206
|
+
{
|
|
207
|
+
backgroundColor: theme.colors.surfaceDisabled,
|
|
208
|
+
borderColor: theme.colors.border
|
|
209
|
+
}
|
|
210
|
+
]}
|
|
211
|
+
>
|
|
212
|
+
<View style={styles.leftRow}>
|
|
213
|
+
{leftIcon && <View style={styles.menuIcon}>{renderIconWithColor(leftIcon, theme.colors.textPrimary)}</View>}
|
|
214
|
+
<Text style={[styles.rowText, { color: theme.colors.textPrimary }]}>{label}</Text>
|
|
215
|
+
</View>
|
|
216
|
+
|
|
217
|
+
{showRightIcon && <ChevronRight color={theme.colors.textSecondary} size={20} />}
|
|
218
|
+
</TouchableOpacity>
|
|
219
|
+
);
|
|
220
|
+
});
|
|
221
|
+
|
|
222
|
+
const styles = StyleSheet.create({
|
|
223
|
+
container: { flex: 1 },
|
|
224
|
+
content: { paddingHorizontal: moderateScale(16) },
|
|
225
|
+
|
|
226
|
+
sectionBlock: {
|
|
227
|
+
marginBottom: verticalScale(16)
|
|
228
|
+
},
|
|
229
|
+
sectionTitle: {
|
|
230
|
+
fontSize: RFValue(11),
|
|
231
|
+
fontWeight: '500',
|
|
232
|
+
marginBottom: verticalScale(8),
|
|
233
|
+
textTransform: 'uppercase'
|
|
234
|
+
},
|
|
235
|
+
|
|
236
|
+
card: {
|
|
237
|
+
borderRadius: scale(8),
|
|
238
|
+
padding: moderateScale(16),
|
|
239
|
+
marginBottom: verticalScale(12)
|
|
240
|
+
},
|
|
241
|
+
cardTitle: {
|
|
242
|
+
fontSize: RFValue(12),
|
|
243
|
+
fontWeight: '600',
|
|
244
|
+
marginBottom: verticalScale(4)
|
|
245
|
+
},
|
|
246
|
+
cardSub: {
|
|
247
|
+
fontSize: RFValue(10)
|
|
248
|
+
},
|
|
249
|
+
|
|
250
|
+
row: {
|
|
251
|
+
paddingVertical: verticalScale(14),
|
|
252
|
+
paddingHorizontal: scale(16),
|
|
253
|
+
borderRadius: scale(8),
|
|
254
|
+
borderWidth: 1,
|
|
255
|
+
marginBottom: verticalScale(12),
|
|
256
|
+
flexDirection: 'row',
|
|
257
|
+
alignItems: 'center',
|
|
258
|
+
justifyContent: 'space-between'
|
|
259
|
+
},
|
|
260
|
+
leftRow: {
|
|
261
|
+
flexDirection: 'row',
|
|
262
|
+
alignItems: 'center',
|
|
263
|
+
flexShrink: 1
|
|
264
|
+
},
|
|
265
|
+
menuIcon: {
|
|
266
|
+
marginRight: scale(8),
|
|
267
|
+
alignItems: 'center',
|
|
268
|
+
justifyContent: 'center'
|
|
269
|
+
},
|
|
270
|
+
rowText: {
|
|
271
|
+
fontSize: RFValue(12),
|
|
272
|
+
fontWeight: '500'
|
|
273
|
+
},
|
|
274
|
+
|
|
275
|
+
bottomBlock: {
|
|
276
|
+
marginTop: verticalScale(32),
|
|
277
|
+
alignItems: 'center',
|
|
278
|
+
justifyContent: 'center',
|
|
279
|
+
gap: verticalScale(8)
|
|
280
|
+
},
|
|
281
|
+
helpSubContainer: {
|
|
282
|
+
flexDirection: 'row',
|
|
283
|
+
alignItems: 'center',
|
|
284
|
+
gap: scale(1)
|
|
285
|
+
},
|
|
286
|
+
helpText: {
|
|
287
|
+
fontSize: RFValue(10)
|
|
288
|
+
}
|
|
289
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Account';
|