@zezosoft/zezo-ott-react-native-ui-kit 0.1.0 → 1.0.0
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 +254 -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 +205 -0
- package/lib/module/components/Auth/ForgotPassword/ForgotPassword.js.map +1 -0
- package/lib/module/components/Auth/Login/LoginWithEmail.js +292 -0
- package/lib/module/components/Auth/Login/LoginWithEmail.js.map +1 -0
- package/lib/module/components/Auth/Login/LoginWithPhone.js +199 -0
- package/lib/module/components/Auth/Login/LoginWithPhone.js.map +1 -0
- package/lib/module/components/Auth/OTP/OTP.js +255 -0
- package/lib/module/components/Auth/OTP/OTP.js.map +1 -0
- package/lib/module/components/Auth/SignUp/SignUp.js +329 -0
- package/lib/module/components/Auth/SignUp/SignUp.js.map +1 -0
- package/lib/module/components/Auth/index.js +21 -0
- package/lib/module/components/Auth/index.js.map +1 -0
- package/lib/module/components/BackgroundLayout/BackgroundLayout.js +104 -0
- package/lib/module/components/BackgroundLayout/BackgroundLayout.js.map +1 -0
- package/lib/module/components/BlogView/BlogView.js +192 -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 +167 -0
- package/lib/module/components/Button/MenuBtn.js.map +1 -0
- package/lib/module/components/Button/PrimaryBtn.js +82 -0
- package/lib/module/components/Button/PrimaryBtn.js.map +1 -0
- package/lib/module/components/Button/TextButton.js +88 -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 +181 -0
- package/lib/module/components/Content/Card/Category/Category.js.map +1 -0
- package/lib/module/components/Content/Card/NowWatching/NowWatching.js +354 -0
- package/lib/module/components/Content/Card/NowWatching/NowWatching.js.map +1 -0
- package/lib/module/components/Content/Card/Sliders/Styles/One.js +313 -0
- package/lib/module/components/Content/Card/Sliders/Styles/One.js.map +1 -0
- package/lib/module/components/Content/Card/Sliders/Styles/Two.js +198 -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 +197 -0
- package/lib/module/components/Content/Card/Styles/Five.js.map +1 -0
- package/lib/module/components/Content/Card/Styles/Four.js +202 -0
- package/lib/module/components/Content/Card/Styles/Four.js.map +1 -0
- package/lib/module/components/Content/Card/Styles/One.js +237 -0
- package/lib/module/components/Content/Card/Styles/One.js.map +1 -0
- package/lib/module/components/Content/Card/Styles/RotateInOut.js +215 -0
- package/lib/module/components/Content/Card/Styles/RotateInOut.js.map +1 -0
- package/lib/module/components/Content/Card/Styles/Six.js +207 -0
- package/lib/module/components/Content/Card/Styles/Six.js.map +1 -0
- package/lib/module/components/Content/Card/Styles/Three.js +213 -0
- package/lib/module/components/Content/Card/Styles/Three.js.map +1 -0
- package/lib/module/components/Content/Card/Styles/TopTen.js +289 -0
- package/lib/module/components/Content/Card/Styles/TopTen.js.map +1 -0
- package/lib/module/components/Content/Card/Styles/Two.js +215 -0
- package/lib/module/components/Content/Card/Styles/Two.js.map +1 -0
- package/lib/module/components/Content/Card/components/CardPoster.js +175 -0
- package/lib/module/components/Content/Card/components/CardPoster.js.map +1 -0
- package/lib/module/components/Content/Card/components/NavigateToMore.js +56 -0
- package/lib/module/components/Content/Card/components/NavigateToMore.js.map +1 -0
- package/lib/module/components/Content/Card/components/NoContentFallback.js +115 -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 +128 -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 +113 -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/components/AboutSection.js +114 -0
- package/lib/module/components/ContentView/components/AboutSection.js.map +1 -0
- package/lib/module/components/ContentView/components/CastCard.js +190 -0
- package/lib/module/components/ContentView/components/CastCard.js.map +1 -0
- package/lib/module/components/ContentView/components/EpisodeCard.js +373 -0
- package/lib/module/components/ContentView/components/EpisodeCard.js.map +1 -0
- package/lib/module/components/ContentView/components/GenreTags.js +77 -0
- package/lib/module/components/ContentView/components/GenreTags.js.map +1 -0
- package/lib/module/components/ContentView/components/HeroBanner.js +222 -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 +103 -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 +9 -0
- package/lib/module/components/ContentView/index.js.map +1 -0
- package/lib/module/components/Headers/AppHeader.js +101 -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 +7 -12
- package/lib/module/components/Headers/Three.js.map +1 -1
- package/lib/module/components/Headers/Two.js +8 -8
- 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 +124 -0
- package/lib/module/components/Input/InputOne.js.map +1 -0
- package/lib/module/components/Input/InputTwo.js +152 -0
- package/lib/module/components/Input/InputTwo.js.map +1 -0
- package/lib/module/components/Input/PhoneNumberInput.js +284 -0
- package/lib/module/components/Input/PhoneNumberInput.js.map +1 -0
- package/lib/module/components/Keyboard/HideKeyboard.js +41 -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 +42 -5
- package/lib/module/components/Logo/Logo.js.map +1 -1
- package/lib/module/components/Search/One.js +191 -0
- package/lib/module/components/Search/One.js.map +1 -0
- package/lib/module/components/Search/components/RecentSearchesSection.js +160 -0
- package/lib/module/components/Search/components/RecentSearchesSection.js.map +1 -0
- package/lib/module/components/Search/components/SearchCard.js +181 -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 +225 -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/SplashScreen/SplashScreen.js +109 -0
- package/lib/module/components/SplashScreen/SplashScreen.js.map +1 -0
- package/lib/module/components/SplashScreen/components/SplashImage/SplashImage.js +68 -0
- package/lib/module/components/SplashScreen/components/SplashImage/SplashImage.js.map +1 -0
- package/lib/module/components/SplashScreen/components/SplashLottie/SplashLottie.js +66 -0
- package/lib/module/components/SplashScreen/components/SplashLottie/SplashLottie.js.map +1 -0
- package/lib/module/components/SplashScreen/components/SplashVideo/SplashVideo.js +68 -0
- package/lib/module/components/SplashScreen/components/SplashVideo/SplashVideo.js.map +1 -0
- package/lib/module/components/SplashScreen/index.js +9 -0
- package/lib/module/components/SplashScreen/index.js.map +1 -0
- package/lib/module/components/Subscription/SubOne.js +332 -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 +144 -0
- package/lib/module/components/TabBar/One.js.map +1 -0
- package/lib/module/components/TabBar/Three.js +127 -0
- package/lib/module/components/TabBar/Three.js.map +1 -0
- package/lib/module/components/TabBar/Two.js +131 -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 +314 -0
- package/lib/module/components/User/DeviceSessions/DeviceSessions.js.map +1 -0
- package/lib/module/components/User/WatchHistory/WatchHistory.js +118 -0
- package/lib/module/components/User/WatchHistory/WatchHistory.js.map +1 -0
- package/lib/module/components/User/WatchLater/WatchLater.js +272 -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 +163 -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 +19 -5
- package/lib/module/components/index.js.map +1 -1
- package/lib/module/components/layout/SafeAreaWrapper.js +33 -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 +112 -0
- package/lib/module/hooks/useInitSplashCacheSync.js.map +1 -0
- package/lib/module/hooks/useKeyboard.js +33 -0
- package/lib/module/hooks/useKeyboard.js.map +1 -0
- package/lib/module/hooks/usePaginatedSection.js +57 -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 +87 -0
- package/lib/module/theme/ThemeProvider.js.map +1 -0
- package/lib/module/theme/index.js +9 -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 +48 -0
- package/lib/typescript/src/components/Auth/ForgotPassword/ForgotPassword.d.ts.map +1 -0
- package/lib/typescript/src/components/Auth/Login/LoginWithEmail.d.ts +65 -0
- package/lib/typescript/src/components/Auth/Login/LoginWithEmail.d.ts.map +1 -0
- package/lib/typescript/src/components/Auth/Login/LoginWithPhone.d.ts +53 -0
- package/lib/typescript/src/components/Auth/Login/LoginWithPhone.d.ts.map +1 -0
- package/lib/typescript/src/components/Auth/OTP/OTP.d.ts +58 -0
- package/lib/typescript/src/components/Auth/OTP/OTP.d.ts.map +1 -0
- package/lib/typescript/src/components/Auth/SignUp/SignUp.d.ts +61 -0
- package/lib/typescript/src/components/Auth/SignUp/SignUp.d.ts.map +1 -0
- package/lib/typescript/src/components/Auth/index.d.ts +192 -0
- package/lib/typescript/src/components/Auth/index.d.ts.map +1 -0
- package/lib/typescript/src/components/BackgroundLayout/BackgroundLayout.d.ts +15 -0
- package/lib/typescript/src/components/BackgroundLayout/BackgroundLayout.d.ts.map +1 -0
- package/lib/typescript/src/components/BlogView/BlogView.d.ts +28 -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 +24 -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 +20 -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 +58 -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/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 +6 -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 +3 -3
- package/lib/typescript/src/components/Headers/Three.d.ts.map +1 -1
- package/lib/typescript/src/components/Headers/Two.d.ts +3 -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/SplashScreen/SplashScreen.d.ts +32 -0
- package/lib/typescript/src/components/SplashScreen/SplashScreen.d.ts.map +1 -0
- package/lib/typescript/src/components/SplashScreen/components/SplashImage/SplashImage.d.ts +17 -0
- package/lib/typescript/src/components/SplashScreen/components/SplashImage/SplashImage.d.ts.map +1 -0
- package/lib/typescript/src/components/SplashScreen/components/SplashLottie/SplashLottie.d.ts +17 -0
- package/lib/typescript/src/components/SplashScreen/components/SplashLottie/SplashLottie.d.ts.map +1 -0
- package/lib/typescript/src/components/SplashScreen/components/SplashVideo/SplashVideo.d.ts +19 -0
- package/lib/typescript/src/components/SplashScreen/components/SplashVideo/SplashVideo.d.ts.map +1 -0
- package/lib/typescript/src/components/SplashScreen/index.d.ts +6 -0
- package/lib/typescript/src/components/SplashScreen/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 +16 -2
- package/lib/typescript/src/components/index.d.ts.map +1 -1
- package/lib/typescript/src/components/layout/SafeAreaWrapper.d.ts +15 -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 +11 -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 +19 -0
- package/lib/typescript/src/theme/ThemeProvider.d.ts.map +1 -0
- package/lib/typescript/src/theme/index.d.ts +6 -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 +137 -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 +73 -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 +288 -0
- package/src/components/Account/index.ts +1 -0
- package/src/components/Auth/ForgotPassword/ForgotPassword.tsx +254 -0
- package/src/components/Auth/Login/LoginWithEmail.tsx +357 -0
- package/src/components/Auth/Login/LoginWithPhone.tsx +249 -0
- package/src/components/Auth/OTP/OTP.tsx +322 -0
- package/src/components/Auth/SignUp/SignUp.tsx +383 -0
- package/src/components/Auth/index.ts +20 -0
- package/src/components/BackgroundLayout/BackgroundLayout.tsx +114 -0
- package/src/components/BlogView/BlogView.tsx +195 -0
- package/src/components/BlogView/index.ts +8 -0
- package/src/components/Button/BackBtn.tsx +83 -0
- package/src/components/Button/MenuBtn.tsx +193 -0
- package/src/components/Button/PrimaryBtn.tsx +88 -0
- package/src/components/Button/TextButton.tsx +107 -0
- package/src/components/Button/index.ts +16 -0
- package/src/components/Content/Card/Category/Category.tsx +262 -0
- package/src/components/Content/Card/NowWatching/NowWatching.tsx +412 -0
- package/src/components/Content/Card/Sliders/Styles/One.tsx +320 -0
- package/src/components/Content/Card/Sliders/Styles/Two.tsx +209 -0
- package/src/components/{Section → Content}/Card/Sliders/index.ts +3 -1
- package/src/components/Content/Card/Styles/Five.tsx +240 -0
- package/src/components/Content/Card/Styles/Four.tsx +245 -0
- package/src/components/Content/Card/Styles/One.tsx +309 -0
- package/src/components/Content/Card/Styles/RotateInOut.tsx +280 -0
- package/src/components/Content/Card/Styles/Six.tsx +247 -0
- package/src/components/Content/Card/Styles/Three.tsx +279 -0
- package/src/components/Content/Card/Styles/TopTen.tsx +342 -0
- package/src/components/Content/Card/Styles/Two.tsx +288 -0
- package/src/components/Content/Card/components/CardPoster.tsx +204 -0
- package/src/components/Content/Card/components/NavigateToMore.tsx +58 -0
- package/src/components/Content/Card/components/NoContentFallback.tsx +129 -0
- package/src/components/Content/Card/components/ShowAllButton.tsx +83 -0
- package/src/components/Content/Card/components/ThumbnailCard.tsx +150 -0
- package/src/components/Content/Card/index.ts +30 -0
- package/src/components/Content/Content.tsx +187 -0
- package/src/components/Content/Sections.tsx +169 -0
- package/src/components/ContentView/ContentView.tsx +137 -0
- package/src/components/ContentView/components/AboutSection.tsx +138 -0
- package/src/components/ContentView/components/CastCard.tsx +212 -0
- package/src/components/ContentView/components/EpisodeCard.tsx +428 -0
- package/src/components/ContentView/components/GenreTags.tsx +92 -0
- package/src/components/ContentView/components/HeroBanner.tsx +244 -0
- package/src/components/ContentView/components/PlayButton.tsx +37 -0
- package/src/components/ContentView/components/Title.tsx +120 -0
- package/src/components/ContentView/components/TrailerButton.tsx +53 -0
- package/src/components/ContentView/index.ts +6 -0
- package/src/components/Headers/AppHeader.tsx +122 -0
- package/src/components/Headers/One.tsx +34 -28
- package/src/components/Headers/Three.tsx +12 -23
- package/src/components/Headers/Two.tsx +14 -22
- 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 +160 -0
- package/src/components/Input/InputTwo.tsx +188 -0
- package/src/components/Input/PhoneNumberInput.tsx +382 -0
- package/src/components/Keyboard/HideKeyboard.tsx +56 -0
- package/src/components/Loader/Loader.tsx +2 -2
- package/src/components/Logo/Logo.tsx +69 -26
- package/src/components/Search/One.tsx +228 -0
- package/src/components/Search/components/RecentSearchesSection.tsx +153 -0
- package/src/components/Search/components/SearchCard.tsx +193 -0
- package/src/components/Search/index.ts +16 -0
- package/src/components/Settings/AppSettings.tsx +287 -0
- package/src/components/Settings/index.ts +1 -0
- package/src/components/SplashScreen/SplashScreen.tsx +131 -0
- package/src/components/SplashScreen/components/SplashImage/SplashImage.tsx +84 -0
- package/src/components/SplashScreen/components/SplashLottie/SplashLottie.tsx +83 -0
- package/src/components/SplashScreen/components/SplashVideo/SplashVideo.tsx +94 -0
- package/src/components/SplashScreen/index.ts +6 -0
- package/src/components/Subscription/SubOne.tsx +336 -0
- package/src/components/Subscription/index.ts +12 -0
- package/src/components/TabBar/One.tsx +199 -0
- package/src/components/TabBar/Three.tsx +134 -0
- package/src/components/TabBar/Two.tsx +151 -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 +373 -0
- package/src/components/User/WatchHistory/WatchHistory.tsx +175 -0
- package/src/components/User/WatchLater/WatchLater.tsx +290 -0
- package/src/components/User/components/UserAvatar.tsx +43 -0
- package/src/components/User/components/UserSection.tsx +181 -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 +16 -2
- package/src/components/layout/SafeAreaWrapper.tsx +32 -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 +159 -0
- package/src/hooks/useKeyboard.ts +33 -0
- package/src/hooks/usePaginatedSection.ts +74 -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 +103 -0
- package/src/theme/index.ts +6 -0
- package/src/theme/themes.ts +210 -123
- package/src/types/content/content-view.types.ts +146 -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,199 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* @author Naresh Dhamu
|
|
5
|
+
* @lastModified Mon 16 Jun 2025 at 04:10 PM
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
import React, { memo, useCallback, useMemo } from 'react';
|
|
9
|
+
import { StyleSheet, View } from 'react-native';
|
|
10
|
+
import { useForm, Controller } from 'react-hook-form';
|
|
11
|
+
import { scale, verticalScale } from 'react-native-size-matters';
|
|
12
|
+
import { BackgroundLayout } from '../../BackgroundLayout/BackgroundLayout';
|
|
13
|
+
import { Logo } from '../../Logo/Logo';
|
|
14
|
+
import { Button } from '../../Button';
|
|
15
|
+
import HideKeyboard from '../../Keyboard/HideKeyboard';
|
|
16
|
+
import { useTheme } from '../../../theme';
|
|
17
|
+
import { useKeyboard } from '../../../hooks/useKeyboard';
|
|
18
|
+
import PhoneNumberInput from '../../Input/PhoneNumberInput';
|
|
19
|
+
import TextButton from '../../Button/TextButton';
|
|
20
|
+
import BackBtn from '../../Button/BackBtn';
|
|
21
|
+
import { Text } from '../../Text';
|
|
22
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
23
|
+
const DEFAULT_TEXT = {
|
|
24
|
+
phoneLabel: 'Phone Number',
|
|
25
|
+
phonePlaceholder: 'Enter phone number',
|
|
26
|
+
loginButton: 'Login',
|
|
27
|
+
loadingSubmitBtnText: 'Logging in...',
|
|
28
|
+
loginWithEmailButton: 'Login With Email'
|
|
29
|
+
};
|
|
30
|
+
const LoginWithPhone = ({
|
|
31
|
+
title = 'Login with Phone',
|
|
32
|
+
onSubmit,
|
|
33
|
+
onTopBackBtnPress,
|
|
34
|
+
containerStyle,
|
|
35
|
+
titleStyle,
|
|
36
|
+
formStyle,
|
|
37
|
+
inputStyle,
|
|
38
|
+
topBackBtnStyle,
|
|
39
|
+
inputContainerStyle,
|
|
40
|
+
backgroundImage,
|
|
41
|
+
loadingSubmitBtn,
|
|
42
|
+
logoUri,
|
|
43
|
+
theme,
|
|
44
|
+
gradientEnabled = true,
|
|
45
|
+
text = DEFAULT_TEXT,
|
|
46
|
+
renderLogo,
|
|
47
|
+
renderPhoneHeader,
|
|
48
|
+
renderSubmitButton,
|
|
49
|
+
renderLoginWithEmail,
|
|
50
|
+
onLoginWithEmail,
|
|
51
|
+
renderTopBackBtn
|
|
52
|
+
}) => {
|
|
53
|
+
const {
|
|
54
|
+
isKeyboardOpen
|
|
55
|
+
} = useKeyboard();
|
|
56
|
+
const {
|
|
57
|
+
theme: appliedTheme
|
|
58
|
+
} = useTheme(theme);
|
|
59
|
+
const [isLoading, setIsLoading] = React.useState(false);
|
|
60
|
+
const {
|
|
61
|
+
control,
|
|
62
|
+
handleSubmit,
|
|
63
|
+
formState: {
|
|
64
|
+
errors,
|
|
65
|
+
isValid
|
|
66
|
+
}
|
|
67
|
+
} = useForm({
|
|
68
|
+
defaultValues: {
|
|
69
|
+
phone: {
|
|
70
|
+
fullNumber: '',
|
|
71
|
+
countryCode: '+91',
|
|
72
|
+
formattedNumber: ''
|
|
73
|
+
}
|
|
74
|
+
},
|
|
75
|
+
mode: 'onChange'
|
|
76
|
+
});
|
|
77
|
+
const handleFormSubmit = useCallback(async data => {
|
|
78
|
+
if (!onSubmit) return;
|
|
79
|
+
setIsLoading(true);
|
|
80
|
+
try {
|
|
81
|
+
await onSubmit(data);
|
|
82
|
+
} catch (error) {
|
|
83
|
+
console.error('Form submission error:', error);
|
|
84
|
+
} finally {
|
|
85
|
+
setIsLoading(false);
|
|
86
|
+
}
|
|
87
|
+
}, [onSubmit]);
|
|
88
|
+
const handleEmailLogin = useCallback(() => {
|
|
89
|
+
if (onLoginWithEmail) {
|
|
90
|
+
requestAnimationFrame(onLoginWithEmail);
|
|
91
|
+
}
|
|
92
|
+
}, [onLoginWithEmail]);
|
|
93
|
+
const styles = useMemo(() => StyleSheet.create({
|
|
94
|
+
container: {
|
|
95
|
+
flex: 1,
|
|
96
|
+
width: '100%',
|
|
97
|
+
paddingHorizontal: scale(16),
|
|
98
|
+
justifyContent: 'center',
|
|
99
|
+
alignItems: 'center'
|
|
100
|
+
},
|
|
101
|
+
centerContent: {
|
|
102
|
+
width: '100%',
|
|
103
|
+
alignItems: 'center',
|
|
104
|
+
justifyContent: 'center',
|
|
105
|
+
maxWidth: scale(400)
|
|
106
|
+
},
|
|
107
|
+
title: {
|
|
108
|
+
fontSize: scale(22),
|
|
109
|
+
fontWeight: '700',
|
|
110
|
+
marginTop: verticalScale(8),
|
|
111
|
+
marginBottom: verticalScale(24),
|
|
112
|
+
color: appliedTheme.colors.textPrimary
|
|
113
|
+
},
|
|
114
|
+
form: {
|
|
115
|
+
width: '100%',
|
|
116
|
+
gap: verticalScale(10),
|
|
117
|
+
alignItems: 'center'
|
|
118
|
+
},
|
|
119
|
+
switchEmailText: {
|
|
120
|
+
marginTop: verticalScale(10)
|
|
121
|
+
}
|
|
122
|
+
}), [appliedTheme]);
|
|
123
|
+
const shouldRender = condition => typeof condition === 'function' || !!condition;
|
|
124
|
+
return /*#__PURE__*/_jsx(BackgroundLayout, {
|
|
125
|
+
gradientEnabled: gradientEnabled,
|
|
126
|
+
backgroundImage: backgroundImage,
|
|
127
|
+
gradientSplit: isKeyboardOpen ? 0.3 : 0.4,
|
|
128
|
+
children: /*#__PURE__*/_jsx(HideKeyboard, {
|
|
129
|
+
keyboardVerticalOffset: verticalScale(-80),
|
|
130
|
+
children: /*#__PURE__*/_jsxs(View, {
|
|
131
|
+
style: [styles.container, containerStyle],
|
|
132
|
+
testID: "login-with-phone",
|
|
133
|
+
children: [shouldRender(renderTopBackBtn || onTopBackBtnPress) && (renderTopBackBtn ? renderTopBackBtn({
|
|
134
|
+
onPress: onTopBackBtnPress ?? (() => {})
|
|
135
|
+
}) : /*#__PURE__*/_jsx(BackBtn, {
|
|
136
|
+
theme: appliedTheme,
|
|
137
|
+
style: topBackBtnStyle,
|
|
138
|
+
onPress: onTopBackBtnPress
|
|
139
|
+
})), /*#__PURE__*/_jsxs(View, {
|
|
140
|
+
style: styles.centerContent,
|
|
141
|
+
children: [renderLogo ? renderLogo() : logoUri ? /*#__PURE__*/_jsx(Logo, {
|
|
142
|
+
logoUri: logoUri
|
|
143
|
+
}) : null, renderPhoneHeader ? renderPhoneHeader() : /*#__PURE__*/_jsx(Text, {
|
|
144
|
+
style: [styles.title, titleStyle],
|
|
145
|
+
children: title
|
|
146
|
+
}), /*#__PURE__*/_jsxs(View, {
|
|
147
|
+
style: [styles.form, formStyle],
|
|
148
|
+
children: [/*#__PURE__*/_jsx(Controller, {
|
|
149
|
+
control: control,
|
|
150
|
+
name: "phone",
|
|
151
|
+
rules: {
|
|
152
|
+
validate: value => value?.fullNumber?.length >= 10 ? true : 'Please enter a valid phone number'
|
|
153
|
+
},
|
|
154
|
+
render: ({
|
|
155
|
+
field: {
|
|
156
|
+
onChange,
|
|
157
|
+
value
|
|
158
|
+
}
|
|
159
|
+
}) => /*#__PURE__*/_jsx(PhoneNumberInput, {
|
|
160
|
+
value: value.formattedNumber,
|
|
161
|
+
onChangeText: onChange,
|
|
162
|
+
label: text.phoneLabel || DEFAULT_TEXT.phoneLabel,
|
|
163
|
+
placeholder: text.phonePlaceholder || DEFAULT_TEXT.phonePlaceholder,
|
|
164
|
+
disabled: loadingSubmitBtn || isLoading,
|
|
165
|
+
error: !!errors.phone,
|
|
166
|
+
errorMessage: errors.phone?.message,
|
|
167
|
+
inputStyle: inputStyle,
|
|
168
|
+
containerStyle: inputContainerStyle,
|
|
169
|
+
theme: appliedTheme,
|
|
170
|
+
accessibilityLabel: `Phone input${errors.phone ? ', error' : ''}`
|
|
171
|
+
})
|
|
172
|
+
}), renderSubmitButton ? renderSubmitButton({
|
|
173
|
+
onPress: handleSubmit(handleFormSubmit),
|
|
174
|
+
disabled: !isValid || loadingSubmitBtn || isLoading,
|
|
175
|
+
loading: loadingSubmitBtn || isLoading
|
|
176
|
+
}) : /*#__PURE__*/_jsx(Button.Primary, {
|
|
177
|
+
title: text.loginButton || DEFAULT_TEXT.loginButton,
|
|
178
|
+
disabled: loadingSubmitBtn || !isValid || isLoading,
|
|
179
|
+
theme: appliedTheme,
|
|
180
|
+
onPress: handleSubmit(handleFormSubmit),
|
|
181
|
+
loadingText: text.loadingSubmitBtnText || DEFAULT_TEXT.loadingSubmitBtnText,
|
|
182
|
+
loading: loadingSubmitBtn || isLoading
|
|
183
|
+
})]
|
|
184
|
+
}), !isKeyboardOpen && shouldRender(renderLoginWithEmail || onLoginWithEmail) && (renderLoginWithEmail ? renderLoginWithEmail() : /*#__PURE__*/_jsx(TextButton, {
|
|
185
|
+
title: text.loginWithEmailButton || DEFAULT_TEXT.loginWithEmailButton,
|
|
186
|
+
onPress: handleEmailLogin,
|
|
187
|
+
color: appliedTheme.colors.button,
|
|
188
|
+
style: styles.switchEmailText,
|
|
189
|
+
underline: true,
|
|
190
|
+
bold: true,
|
|
191
|
+
align: "center"
|
|
192
|
+
}))]
|
|
193
|
+
})]
|
|
194
|
+
})
|
|
195
|
+
})
|
|
196
|
+
});
|
|
197
|
+
};
|
|
198
|
+
export default /*#__PURE__*/memo(LoginWithPhone);
|
|
199
|
+
//# sourceMappingURL=LoginWithPhone.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","memo","useCallback","useMemo","StyleSheet","View","useForm","Controller","scale","verticalScale","BackgroundLayout","Logo","Button","HideKeyboard","useTheme","useKeyboard","PhoneNumberInput","TextButton","BackBtn","Text","jsx","_jsx","jsxs","_jsxs","DEFAULT_TEXT","phoneLabel","phonePlaceholder","loginButton","loadingSubmitBtnText","loginWithEmailButton","LoginWithPhone","title","onSubmit","onTopBackBtnPress","containerStyle","titleStyle","formStyle","inputStyle","topBackBtnStyle","inputContainerStyle","backgroundImage","loadingSubmitBtn","logoUri","theme","gradientEnabled","text","renderLogo","renderPhoneHeader","renderSubmitButton","renderLoginWithEmail","onLoginWithEmail","renderTopBackBtn","isKeyboardOpen","appliedTheme","isLoading","setIsLoading","useState","control","handleSubmit","formState","errors","isValid","defaultValues","phone","fullNumber","countryCode","formattedNumber","mode","handleFormSubmit","data","error","console","handleEmailLogin","requestAnimationFrame","styles","create","container","flex","width","paddingHorizontal","justifyContent","alignItems","centerContent","maxWidth","fontSize","fontWeight","marginTop","marginBottom","color","colors","textPrimary","form","gap","switchEmailText","shouldRender","condition","gradientSplit","children","keyboardVerticalOffset","style","testID","onPress","name","rules","validate","value","length","render","field","onChange","onChangeText","label","placeholder","disabled","errorMessage","message","accessibilityLabel","loading","Primary","loadingText","button","underline","bold","align"],"sourceRoot":"../../../../../src","sources":["components/Auth/Login/LoginWithPhone.tsx"],"mappings":";;AAAA;AACA;AACA;AACA;;AAEA,OAAOA,KAAK,IAAIC,IAAI,EAAEC,WAAW,EAAEC,OAAO,QAAQ,OAAO;AACzD,SAASC,UAAU,EAAEC,IAAI,QAAwC,cAAc;AAC/E,SAASC,OAAO,EAAEC,UAAU,QAAQ,iBAAiB;AACrD,SAASC,KAAK,EAAEC,aAAa,QAAQ,2BAA2B;AAEhE,SAASC,gBAAgB,QAAQ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|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import React, { memo, useMemo, useState, useCallback, useEffect } from 'react';
|
|
4
|
+
import { View, StyleSheet, Platform } from 'react-native';
|
|
5
|
+
import { CodeField, Cursor, useBlurOnFulfill, useClearByFocusCell } from 'react-native-confirmation-code-field';
|
|
6
|
+
import { scale, verticalScale } from 'react-native-size-matters';
|
|
7
|
+
import { BackgroundLayout } from '../../BackgroundLayout/BackgroundLayout';
|
|
8
|
+
import HideKeyboard from '../../Keyboard/HideKeyboard';
|
|
9
|
+
import { useKeyboard } from '../../../hooks/useKeyboard';
|
|
10
|
+
import BackBtn from '../../Button/BackBtn';
|
|
11
|
+
import { useTheme } from '../../../theme';
|
|
12
|
+
import { Logo } from '../../Logo/Logo';
|
|
13
|
+
import { Button } from '../../Button';
|
|
14
|
+
import Display from '../../../utils/Display';
|
|
15
|
+
import { Text } from '../../Text';
|
|
16
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
17
|
+
const DEFAULT_TEXT = {
|
|
18
|
+
otpLabel: 'Enter OTP',
|
|
19
|
+
otpPlaceholder: '••••',
|
|
20
|
+
submitButton: 'Verify OTP',
|
|
21
|
+
loadingSubmitBtnText: 'Verifying...',
|
|
22
|
+
otpSentText: 'A One-Time OTP has been sent to',
|
|
23
|
+
resendOtpText: 'Resend OTP',
|
|
24
|
+
resendOtpCountdownText: 'Resend OTP in'
|
|
25
|
+
};
|
|
26
|
+
const OTP = ({
|
|
27
|
+
title,
|
|
28
|
+
onSubmit,
|
|
29
|
+
onBackPress,
|
|
30
|
+
containerStyle,
|
|
31
|
+
titleStyle,
|
|
32
|
+
formStyle,
|
|
33
|
+
backBtnStyle,
|
|
34
|
+
backgroundImage,
|
|
35
|
+
loading = false,
|
|
36
|
+
logoUri,
|
|
37
|
+
theme,
|
|
38
|
+
gradientEnabled = true,
|
|
39
|
+
otpDigitCount = 4,
|
|
40
|
+
keyboardType = 'number-pad',
|
|
41
|
+
phoneNumber,
|
|
42
|
+
text = DEFAULT_TEXT,
|
|
43
|
+
onResendOtp,
|
|
44
|
+
renderResendButton,
|
|
45
|
+
resendDisabledTime = 30,
|
|
46
|
+
renderLogo,
|
|
47
|
+
renderSubmitButton,
|
|
48
|
+
renderBackButton,
|
|
49
|
+
renderOtpHeader,
|
|
50
|
+
renderOtpInput,
|
|
51
|
+
renderPhoneText,
|
|
52
|
+
cellStyle,
|
|
53
|
+
focusCellStyle
|
|
54
|
+
}) => {
|
|
55
|
+
const {
|
|
56
|
+
theme: appliedTheme
|
|
57
|
+
} = useTheme(theme);
|
|
58
|
+
const {
|
|
59
|
+
isKeyboardOpen
|
|
60
|
+
} = useKeyboard();
|
|
61
|
+
const [otp, setOtp] = useState('');
|
|
62
|
+
const [isSubmitting, setIsSubmitting] = useState(false);
|
|
63
|
+
const [resendTimer, setResendTimer] = useState(resendDisabledTime);
|
|
64
|
+
const ref = useBlurOnFulfill({
|
|
65
|
+
value: otp,
|
|
66
|
+
cellCount: otpDigitCount
|
|
67
|
+
});
|
|
68
|
+
const [codeFieldProps, getCellOnLayoutHandler] = useClearByFocusCell({
|
|
69
|
+
value: otp,
|
|
70
|
+
setValue: setOtp
|
|
71
|
+
});
|
|
72
|
+
const styles = useMemo(() => StyleSheet.create({
|
|
73
|
+
container: {
|
|
74
|
+
flex: 1,
|
|
75
|
+
width: '100%',
|
|
76
|
+
paddingHorizontal: scale(16),
|
|
77
|
+
justifyContent: 'center',
|
|
78
|
+
alignItems: 'center'
|
|
79
|
+
},
|
|
80
|
+
content: {
|
|
81
|
+
width: '100%',
|
|
82
|
+
maxWidth: scale(400),
|
|
83
|
+
alignItems: 'center',
|
|
84
|
+
gap: verticalScale(12)
|
|
85
|
+
},
|
|
86
|
+
title: {
|
|
87
|
+
fontSize: scale(22),
|
|
88
|
+
fontWeight: '700',
|
|
89
|
+
marginTop: verticalScale(8),
|
|
90
|
+
color: appliedTheme.colors.textPrimary,
|
|
91
|
+
textAlign: 'center'
|
|
92
|
+
},
|
|
93
|
+
sentText: {
|
|
94
|
+
fontSize: scale(14),
|
|
95
|
+
color: appliedTheme.colors.onSurfaceVariant,
|
|
96
|
+
textAlign: 'center',
|
|
97
|
+
lineHeight: scale(18)
|
|
98
|
+
},
|
|
99
|
+
sentNumberContainer: {
|
|
100
|
+
marginTop: verticalScale(8),
|
|
101
|
+
alignItems: 'center'
|
|
102
|
+
},
|
|
103
|
+
form: {
|
|
104
|
+
width: '100%',
|
|
105
|
+
gap: verticalScale(20),
|
|
106
|
+
alignItems: 'center',
|
|
107
|
+
marginTop: verticalScale(24)
|
|
108
|
+
},
|
|
109
|
+
codeFieldRoot: {
|
|
110
|
+
width: Display.setWidth(80),
|
|
111
|
+
marginTop: scale(10)
|
|
112
|
+
},
|
|
113
|
+
cell: {
|
|
114
|
+
width: scale(55),
|
|
115
|
+
height: scale(55),
|
|
116
|
+
fontSize: scale(30),
|
|
117
|
+
fontWeight: '500',
|
|
118
|
+
paddingTop: Platform.OS === 'ios' ? scale(10) : scale(7),
|
|
119
|
+
borderWidth: scale(1),
|
|
120
|
+
borderRadius: scale(8),
|
|
121
|
+
textAlign: 'center',
|
|
122
|
+
color: appliedTheme.colors.textPrimary,
|
|
123
|
+
borderColor: appliedTheme.colors.outline
|
|
124
|
+
},
|
|
125
|
+
focusCell: {
|
|
126
|
+
borderColor: appliedTheme.colors.primary,
|
|
127
|
+
backgroundColor: appliedTheme.colors.surface
|
|
128
|
+
}
|
|
129
|
+
}), [appliedTheme]);
|
|
130
|
+
useEffect(() => {
|
|
131
|
+
if (resendTimer <= 0) return;
|
|
132
|
+
const timer = setInterval(() => {
|
|
133
|
+
setResendTimer(prev => prev - 1);
|
|
134
|
+
}, 1000);
|
|
135
|
+
return () => clearInterval(timer);
|
|
136
|
+
}, [resendTimer]);
|
|
137
|
+
const handleSubmit = useCallback(async () => {
|
|
138
|
+
if (!onSubmit || otp.length !== otpDigitCount) return;
|
|
139
|
+
setIsSubmitting(true);
|
|
140
|
+
try {
|
|
141
|
+
await onSubmit({
|
|
142
|
+
otp
|
|
143
|
+
});
|
|
144
|
+
} catch (error) {
|
|
145
|
+
console.error('OTP submission error:', error);
|
|
146
|
+
} finally {
|
|
147
|
+
setIsSubmitting(false);
|
|
148
|
+
}
|
|
149
|
+
}, [onSubmit, otp, otpDigitCount]);
|
|
150
|
+
const handleResendOtp = useCallback(() => {
|
|
151
|
+
if (onResendOtp) {
|
|
152
|
+
onResendOtp();
|
|
153
|
+
setResendTimer(resendDisabledTime);
|
|
154
|
+
}
|
|
155
|
+
}, [onResendOtp, resendDisabledTime]);
|
|
156
|
+
const isLoading = loading || isSubmitting;
|
|
157
|
+
const isSubmitDisabled = otp.length !== otpDigitCount || isLoading;
|
|
158
|
+
return /*#__PURE__*/_jsx(BackgroundLayout, {
|
|
159
|
+
gradientEnabled: gradientEnabled,
|
|
160
|
+
backgroundImage: backgroundImage,
|
|
161
|
+
gradientSplit: isKeyboardOpen ? 0.3 : 0.4,
|
|
162
|
+
children: /*#__PURE__*/_jsx(HideKeyboard, {
|
|
163
|
+
keyboardVerticalOffset: verticalScale(-80),
|
|
164
|
+
children: /*#__PURE__*/_jsxs(View, {
|
|
165
|
+
style: [styles.container, containerStyle],
|
|
166
|
+
children: [renderBackButton ? renderBackButton({
|
|
167
|
+
onPress: onBackPress ?? (() => {})
|
|
168
|
+
}) : onBackPress ? /*#__PURE__*/_jsx(BackBtn, {
|
|
169
|
+
theme: appliedTheme,
|
|
170
|
+
style: backBtnStyle,
|
|
171
|
+
onPress: onBackPress
|
|
172
|
+
}) : null, /*#__PURE__*/_jsxs(View, {
|
|
173
|
+
style: styles.content,
|
|
174
|
+
children: [renderLogo ? renderLogo() : logoUri ? /*#__PURE__*/_jsx(Logo, {
|
|
175
|
+
logoUri: logoUri
|
|
176
|
+
}) : null, renderOtpHeader ? renderOtpHeader() : /*#__PURE__*/_jsx(Text, {
|
|
177
|
+
style: [styles.title, titleStyle],
|
|
178
|
+
children: title
|
|
179
|
+
}), phoneNumber && (renderPhoneText ? renderPhoneText(phoneNumber) : /*#__PURE__*/_jsxs(View, {
|
|
180
|
+
style: styles.sentNumberContainer,
|
|
181
|
+
children: [/*#__PURE__*/_jsx(Text, {
|
|
182
|
+
style: styles.sentText,
|
|
183
|
+
children: text?.otpSentText
|
|
184
|
+
}), /*#__PURE__*/_jsx(Text, {
|
|
185
|
+
style: {
|
|
186
|
+
fontWeight: '700',
|
|
187
|
+
fontSize: scale(15),
|
|
188
|
+
marginTop: verticalScale(4),
|
|
189
|
+
color: appliedTheme.colors.primary
|
|
190
|
+
},
|
|
191
|
+
children: phoneNumber
|
|
192
|
+
})]
|
|
193
|
+
})), /*#__PURE__*/_jsxs(View, {
|
|
194
|
+
style: [styles.form, formStyle],
|
|
195
|
+
children: [renderOtpInput ? renderOtpInput({
|
|
196
|
+
value: otp,
|
|
197
|
+
onChange: val => setOtp(val.replace(/\D/g, '')),
|
|
198
|
+
isFocused: Array.from({
|
|
199
|
+
length: otpDigitCount
|
|
200
|
+
}, (_, i) => otp.length === i)
|
|
201
|
+
}) : /*#__PURE__*/_jsx(CodeField, {
|
|
202
|
+
ref: ref,
|
|
203
|
+
...codeFieldProps,
|
|
204
|
+
value: otp,
|
|
205
|
+
onChangeText: input => setOtp(input.replace(/\D/g, '')),
|
|
206
|
+
cellCount: otpDigitCount,
|
|
207
|
+
rootStyle: styles.codeFieldRoot,
|
|
208
|
+
keyboardType: keyboardType,
|
|
209
|
+
textContentType: "oneTimeCode",
|
|
210
|
+
renderCell: ({
|
|
211
|
+
index,
|
|
212
|
+
symbol,
|
|
213
|
+
isFocused
|
|
214
|
+
}) => /*#__PURE__*/_jsx(Text, {
|
|
215
|
+
style: [styles.cell, cellStyle, isFocused && styles.focusCell, isFocused && focusCellStyle],
|
|
216
|
+
onLayout: getCellOnLayoutHandler(index),
|
|
217
|
+
children: symbol || (isFocused ? /*#__PURE__*/_jsx(Cursor, {}) : null)
|
|
218
|
+
}, index)
|
|
219
|
+
}), renderSubmitButton ? renderSubmitButton({
|
|
220
|
+
onPress: handleSubmit,
|
|
221
|
+
disabled: isSubmitDisabled,
|
|
222
|
+
loading: isLoading
|
|
223
|
+
}) : /*#__PURE__*/_jsx(Button.Primary, {
|
|
224
|
+
title: text.submitButton || DEFAULT_TEXT.submitButton,
|
|
225
|
+
theme: appliedTheme,
|
|
226
|
+
onPress: handleSubmit,
|
|
227
|
+
loadingText: text.loadingSubmitBtnText,
|
|
228
|
+
disabled: isSubmitDisabled,
|
|
229
|
+
loading: isLoading
|
|
230
|
+
}), /*#__PURE__*/_jsx(View, {
|
|
231
|
+
style: {
|
|
232
|
+
alignItems: 'center',
|
|
233
|
+
marginTop: verticalScale(10)
|
|
234
|
+
},
|
|
235
|
+
children: renderResendButton ? renderResendButton({
|
|
236
|
+
onPress: handleResendOtp,
|
|
237
|
+
disabled: resendTimer > 0
|
|
238
|
+
}) : /*#__PURE__*/_jsx(Text, {
|
|
239
|
+
onPress: resendTimer <= 0 ? handleResendOtp : undefined,
|
|
240
|
+
style: {
|
|
241
|
+
fontSize: scale(14),
|
|
242
|
+
color: resendTimer > 0 ? appliedTheme.colors.onSurfaceVariant : appliedTheme.colors.primary,
|
|
243
|
+
textAlign: 'center'
|
|
244
|
+
},
|
|
245
|
+
children: resendTimer > 0 ? `${text?.resendOtpCountdownText || DEFAULT_TEXT.resendOtpCountdownText} ${resendTimer}s` : text?.resendOtpText || DEFAULT_TEXT.resendOtpText
|
|
246
|
+
})
|
|
247
|
+
})]
|
|
248
|
+
})]
|
|
249
|
+
})]
|
|
250
|
+
})
|
|
251
|
+
})
|
|
252
|
+
});
|
|
253
|
+
};
|
|
254
|
+
export default /*#__PURE__*/memo(OTP);
|
|
255
|
+
//# sourceMappingURL=OTP.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","memo","useMemo","useState","useCallback","useEffect","View","StyleSheet","Platform","CodeField","Cursor","useBlurOnFulfill","useClearByFocusCell","scale","verticalScale","BackgroundLayout","HideKeyboard","useKeyboard","BackBtn","useTheme","Logo","Button","Display","Text","jsx","_jsx","jsxs","_jsxs","DEFAULT_TEXT","otpLabel","otpPlaceholder","submitButton","loadingSubmitBtnText","otpSentText","resendOtpText","resendOtpCountdownText","OTP","title","onSubmit","onBackPress","containerStyle","titleStyle","formStyle","backBtnStyle","backgroundImage","loading","logoUri","theme","gradientEnabled","otpDigitCount","keyboardType","phoneNumber","text","onResendOtp","renderResendButton","resendDisabledTime","renderLogo","renderSubmitButton","renderBackButton","renderOtpHeader","renderOtpInput","renderPhoneText","cellStyle","focusCellStyle","appliedTheme","isKeyboardOpen","otp","setOtp","isSubmitting","setIsSubmitting","resendTimer","setResendTimer","ref","value","cellCount","codeFieldProps","getCellOnLayoutHandler","setValue","styles","create","container","flex","width","paddingHorizontal","justifyContent","alignItems","content","maxWidth","gap","fontSize","fontWeight","marginTop","color","colors","textPrimary","textAlign","sentText","onSurfaceVariant","lineHeight","sentNumberContainer","form","codeFieldRoot","setWidth","cell","height","paddingTop","OS","borderWidth","borderRadius","borderColor","outline","focusCell","primary","backgroundColor","surface","timer","setInterval","prev","clearInterval","handleSubmit","length","error","console","handleResendOtp","isLoading","isSubmitDisabled","gradientSplit","children","keyboardVerticalOffset","style","onPress","onChange","val","replace","isFocused","Array","from","_","i","onChangeText","input","rootStyle","textContentType","renderCell","index","symbol","onLayout","disabled","Primary","loadingText","undefined"],"sourceRoot":"../../../../../src","sources":["components/Auth/OTP/OTP.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,IAAI,EAAEC,OAAO,EAAEC,QAAQ,EAAEC,WAAW,EAAEC,SAAS,QAAQ,OAAO;AAC9E,SAASC,IAAI,EAA4DC,UAAU,EAAEC,QAAQ,QAAQ,cAAc;AACnH,SAASC,SAAS,EAAEC,MAAM,EAAEC,gBAAgB,EAAEC,mBAAmB,QAAQ,sCAAsC;AAC/G,SAASC,KAAK,EAAEC,aAAa,QAAQ,2BAA2B;AAEhE,SAASC,gBAAg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