@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,208 @@
|
|
|
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/hook/useTheme';
|
|
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 { RFValue } from 'react-native-responsive-fontsize';
|
|
23
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
24
|
+
const DEFAULT_TEXT = {
|
|
25
|
+
phoneLabel: 'Phone Number',
|
|
26
|
+
phonePlaceholder: 'Enter phone number',
|
|
27
|
+
loginButton: 'Login',
|
|
28
|
+
loadingSubmitBtnText: 'Logging in...',
|
|
29
|
+
loginWithEmailButton: 'Login With Email'
|
|
30
|
+
};
|
|
31
|
+
const LoginWithPhone = ({
|
|
32
|
+
title = 'Login with Phone',
|
|
33
|
+
onSubmit,
|
|
34
|
+
onTopBackBtnPress,
|
|
35
|
+
containerStyle,
|
|
36
|
+
titleStyle,
|
|
37
|
+
formStyle,
|
|
38
|
+
inputStyle,
|
|
39
|
+
topBackBtnStyle,
|
|
40
|
+
inputContainerStyle,
|
|
41
|
+
backgroundImage,
|
|
42
|
+
loadingSubmitBtn,
|
|
43
|
+
logoUri,
|
|
44
|
+
theme: overrideTheme,
|
|
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: resolvedTheme
|
|
58
|
+
} = useTheme(overrideTheme);
|
|
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
|
+
topBackBtnWrapper: {
|
|
102
|
+
position: 'absolute',
|
|
103
|
+
top: verticalScale(6),
|
|
104
|
+
left: 0,
|
|
105
|
+
zIndex: 10
|
|
106
|
+
},
|
|
107
|
+
centerContent: {
|
|
108
|
+
flex: 1,
|
|
109
|
+
width: '100%',
|
|
110
|
+
alignItems: 'center',
|
|
111
|
+
justifyContent: 'center',
|
|
112
|
+
maxWidth: scale(400)
|
|
113
|
+
},
|
|
114
|
+
title: {
|
|
115
|
+
fontSize: RFValue(21),
|
|
116
|
+
fontWeight: '700',
|
|
117
|
+
marginTop: verticalScale(8),
|
|
118
|
+
marginBottom: verticalScale(24),
|
|
119
|
+
color: resolvedTheme.colors.textPrimary
|
|
120
|
+
},
|
|
121
|
+
form: {
|
|
122
|
+
width: '100%',
|
|
123
|
+
gap: verticalScale(10),
|
|
124
|
+
alignItems: 'center'
|
|
125
|
+
},
|
|
126
|
+
switchEmailText: {
|
|
127
|
+
marginTop: verticalScale(10)
|
|
128
|
+
}
|
|
129
|
+
}), [resolvedTheme]);
|
|
130
|
+
const shouldRender = condition => typeof condition === 'function' || !!condition;
|
|
131
|
+
return /*#__PURE__*/_jsx(BackgroundLayout, {
|
|
132
|
+
backgroundImage: backgroundImage?.source,
|
|
133
|
+
theme: resolvedTheme,
|
|
134
|
+
gradientSplitBackground: isKeyboardOpen ? 0.3 : 0.4,
|
|
135
|
+
children: /*#__PURE__*/_jsxs(View, {
|
|
136
|
+
style: [styles.container, containerStyle],
|
|
137
|
+
testID: "login-with-phone",
|
|
138
|
+
children: [shouldRender(renderTopBackBtn || onTopBackBtnPress) && /*#__PURE__*/_jsx(View, {
|
|
139
|
+
style: styles.topBackBtnWrapper,
|
|
140
|
+
children: renderTopBackBtn ? renderTopBackBtn({
|
|
141
|
+
onPress: onTopBackBtnPress ?? (() => {})
|
|
142
|
+
}) : /*#__PURE__*/_jsx(BackBtn, {
|
|
143
|
+
theme: resolvedTheme,
|
|
144
|
+
style: topBackBtnStyle,
|
|
145
|
+
onPress: onTopBackBtnPress
|
|
146
|
+
})
|
|
147
|
+
}), /*#__PURE__*/_jsx(HideKeyboard, {
|
|
148
|
+
children: /*#__PURE__*/_jsxs(View, {
|
|
149
|
+
style: styles.centerContent,
|
|
150
|
+
children: [renderLogo ? renderLogo() : logoUri ? /*#__PURE__*/_jsx(Logo, {
|
|
151
|
+
logoUri: logoUri
|
|
152
|
+
}) : null, renderPhoneHeader ? renderPhoneHeader() : /*#__PURE__*/_jsx(Text, {
|
|
153
|
+
style: [styles.title, titleStyle],
|
|
154
|
+
children: title
|
|
155
|
+
}), /*#__PURE__*/_jsxs(View, {
|
|
156
|
+
style: [styles.form, formStyle],
|
|
157
|
+
children: [/*#__PURE__*/_jsx(Controller, {
|
|
158
|
+
control: control,
|
|
159
|
+
name: "phone",
|
|
160
|
+
rules: {
|
|
161
|
+
validate: value => value?.fullNumber?.length >= 10 ? true : 'Please enter a valid phone number'
|
|
162
|
+
},
|
|
163
|
+
render: ({
|
|
164
|
+
field: {
|
|
165
|
+
onChange,
|
|
166
|
+
value
|
|
167
|
+
}
|
|
168
|
+
}) => /*#__PURE__*/_jsx(PhoneNumberInput, {
|
|
169
|
+
value: value.formattedNumber,
|
|
170
|
+
onChangeText: onChange,
|
|
171
|
+
label: text.phoneLabel || DEFAULT_TEXT.phoneLabel,
|
|
172
|
+
placeholder: text.phonePlaceholder || DEFAULT_TEXT.phonePlaceholder,
|
|
173
|
+
disabled: loadingSubmitBtn || isLoading,
|
|
174
|
+
error: !!errors.phone,
|
|
175
|
+
errorMessage: errors.phone?.message,
|
|
176
|
+
inputStyle: inputStyle,
|
|
177
|
+
containerStyle: inputContainerStyle,
|
|
178
|
+
theme: resolvedTheme,
|
|
179
|
+
accessibilityLabel: `Phone input${errors.phone ? ', error' : ''}`
|
|
180
|
+
})
|
|
181
|
+
}), renderSubmitButton ? renderSubmitButton({
|
|
182
|
+
onPress: handleSubmit(handleFormSubmit),
|
|
183
|
+
disabled: !isValid || loadingSubmitBtn || isLoading,
|
|
184
|
+
loading: loadingSubmitBtn || isLoading
|
|
185
|
+
}) : /*#__PURE__*/_jsx(Button.Primary, {
|
|
186
|
+
title: text.loginButton || DEFAULT_TEXT.loginButton,
|
|
187
|
+
disabled: loadingSubmitBtn || !isValid || isLoading,
|
|
188
|
+
theme: resolvedTheme,
|
|
189
|
+
onPress: handleSubmit(handleFormSubmit),
|
|
190
|
+
loadingText: text.loadingSubmitBtnText || DEFAULT_TEXT.loadingSubmitBtnText,
|
|
191
|
+
loading: loadingSubmitBtn || isLoading
|
|
192
|
+
})]
|
|
193
|
+
}), !isKeyboardOpen && shouldRender(renderLoginWithEmail || onLoginWithEmail) && (renderLoginWithEmail ? renderLoginWithEmail() : /*#__PURE__*/_jsx(TextButton, {
|
|
194
|
+
title: text.loginWithEmailButton || DEFAULT_TEXT.loginWithEmailButton,
|
|
195
|
+
onPress: handleEmailLogin,
|
|
196
|
+
color: resolvedTheme.colors.button,
|
|
197
|
+
style: styles.switchEmailText,
|
|
198
|
+
underline: true,
|
|
199
|
+
bold: true,
|
|
200
|
+
align: "center"
|
|
201
|
+
}))]
|
|
202
|
+
})
|
|
203
|
+
})]
|
|
204
|
+
})
|
|
205
|
+
});
|
|
206
|
+
};
|
|
207
|
+
export default /*#__PURE__*/memo(LoginWithPhone);
|
|
208
|
+
//# 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","RFValue","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","overrideTheme","text","renderLogo","renderPhoneHeader","renderSubmitButton","renderLoginWithEmail","onLoginWithEmail","renderTopBackBtn","isKeyboardOpen","resolvedTheme","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","topBackBtnWrapper","position","top","left","zIndex","centerContent","maxWidth","fontSize","fontWeight","marginTop","marginBottom","color","colors","textPrimary","form","gap","switchEmailText","shouldRender","condition","source","gradientSplitBackground","children","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,yCAAyC;AAC1E,SAASC,IAAI,QAAQ,iBAAiB;AACtC,SAASC,MAAM,QAAQ,cAAc;AACrC,OAAOC,YAAY,MAAM,6BAA6B;AACtD,SAASC,QAAQ,QAAQ,8BAA8B;AACvD,SAASC,WAAW,QAAQ,4BAA4B;AACxD,OAAOC,gBAAgB,MAAM,8BAA8B;AAC3D,OAAOC,UAAU,MAAM,yBAAyB;AAChD,OAAOC,OAAO,MAAM,sBAAsB;AAC1C,SAASC,IAAI,QAAQ,YAAY;AAEjC,SAASC,OAAO,QAAQ,kCAAkC;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AA8C3D,MAAMC,YAAY,GAAG;EACnBC,UAAU,EAAE,cAAc;EAC1BC,gBAAgB,EAAE,oBAAoB;EACtCC,WAAW,EAAE,OAAO;EACpBC,oBAAoB,EAAE,eAAe;EACrCC,oBAAoB,EAAE;AACxB,CAAC;AAED,MAAMC,cAA6C,GAAGA,CAAC;EACrDC,KAAK,GAAG,kBAAkB;EAC1BC,QAAQ;EACRC,iBAAiB;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oB,OAAO,IAAIP,SAAU;cACpDX,KAAK,EAAEU,aAAc;cACrBqD,OAAO,EAAEhD,YAAY,CAACU,gBAAgB,CAAE;cACxCwD,WAAW,EAAE/E,IAAI,CAACjB,oBAAoB,IAAIJ,YAAY,CAACI,oBAAqB;cAC5E8F,OAAO,EAAEjF,gBAAgB,IAAIa;YAAU,CACxC,CACF;UAAA,CACG,CAAC,EACN,CAACF,cAAc,IACd+C,YAAY,CAAClD,oBAAoB,IAAIC,gBAAgB,CAAC,KACrDD,oBAAoB,GACnBA,oBAAoB,CAAC,CAAC,gBAEtB5B,IAAA,CAACL,UAAU;YACTe,KAAK,EAAEc,IAAI,CAAChB,oBAAoB,IAAIL,YAAY,CAACK,oBAAqB;YACtE6E,OAAO,EAAElC,gBAAiB;YAC1BqB,KAAK,EAAExC,aAAa,CAACyC,MAAM,CAAC+B,MAAO;YACnCrB,KAAK,EAAE9B,MAAM,CAACwB,eAAgB;YAC9B4B,SAAS;YACTC,IAAI;YACJC,KAAK,EAAC;UAAQ,CACf,CACF,CAAC;QAAA,CACA;MAAC,CACK,CAAC;IAAA,CACX;EAAC,CACS,CAAC;AAEvB,CAAC;AAED,4BAAehI,IAAI,CAAC8B,cAAc,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,274 @@
|
|
|
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/hook/useTheme';
|
|
12
|
+
import { Logo } from '../../Logo/Logo';
|
|
13
|
+
import { Button } from '../../Button';
|
|
14
|
+
import Display from '../../../utils/Display';
|
|
15
|
+
import { Text } from '../../Text';
|
|
16
|
+
import { RFValue } from 'react-native-responsive-fontsize';
|
|
17
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
18
|
+
const DEFAULT_TEXT = {
|
|
19
|
+
otpLabel: 'Enter OTP',
|
|
20
|
+
otpPlaceholder: '••••',
|
|
21
|
+
submitButton: 'Verify OTP',
|
|
22
|
+
loadingSubmitBtnText: 'Verifying...',
|
|
23
|
+
otpSentText: 'A One-Time OTP has been sent to',
|
|
24
|
+
resendOtpText: 'Resend OTP',
|
|
25
|
+
resendOtpCountdownText: 'Resend OTP in'
|
|
26
|
+
};
|
|
27
|
+
const OTP = ({
|
|
28
|
+
title,
|
|
29
|
+
onSubmit,
|
|
30
|
+
onTopBackBtnPress,
|
|
31
|
+
containerStyle,
|
|
32
|
+
titleStyle,
|
|
33
|
+
formStyle,
|
|
34
|
+
backBtnStyle,
|
|
35
|
+
backgroundImage,
|
|
36
|
+
loading = false,
|
|
37
|
+
logoUri,
|
|
38
|
+
theme: overrideTheme,
|
|
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: resolvedTheme
|
|
57
|
+
} = useTheme(overrideTheme);
|
|
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
|
+
topBackBtnWrapper: {
|
|
81
|
+
position: 'absolute',
|
|
82
|
+
top: verticalScale(6),
|
|
83
|
+
left: 0,
|
|
84
|
+
zIndex: 10
|
|
85
|
+
},
|
|
86
|
+
centerContent: {
|
|
87
|
+
flex: 1,
|
|
88
|
+
width: '100%',
|
|
89
|
+
maxWidth: scale(400),
|
|
90
|
+
alignItems: 'center',
|
|
91
|
+
justifyContent: 'center',
|
|
92
|
+
gap: verticalScale(4)
|
|
93
|
+
},
|
|
94
|
+
title: {
|
|
95
|
+
fontSize: RFValue(21),
|
|
96
|
+
fontWeight: '700',
|
|
97
|
+
marginTop: verticalScale(8),
|
|
98
|
+
color: resolvedTheme.colors.textPrimary,
|
|
99
|
+
textAlign: 'center'
|
|
100
|
+
},
|
|
101
|
+
sentText: {
|
|
102
|
+
fontSize: RFValue(12),
|
|
103
|
+
color: resolvedTheme.colors.onSurfaceVariant,
|
|
104
|
+
textAlign: 'center',
|
|
105
|
+
lineHeight: scale(18)
|
|
106
|
+
},
|
|
107
|
+
sentNumberContainer: {
|
|
108
|
+
marginTop: verticalScale(8),
|
|
109
|
+
alignItems: 'center'
|
|
110
|
+
},
|
|
111
|
+
form: {
|
|
112
|
+
width: '100%',
|
|
113
|
+
gap: verticalScale(20),
|
|
114
|
+
alignItems: 'center',
|
|
115
|
+
marginTop: verticalScale(24),
|
|
116
|
+
marginBottom: isKeyboardOpen ? verticalScale(20) : 0
|
|
117
|
+
},
|
|
118
|
+
codeFieldRoot: {
|
|
119
|
+
width: Display.setWidth(80),
|
|
120
|
+
marginTop: scale(10)
|
|
121
|
+
},
|
|
122
|
+
cell: {
|
|
123
|
+
width: scale(55),
|
|
124
|
+
height: scale(55),
|
|
125
|
+
fontSize: RFValue(26),
|
|
126
|
+
fontWeight: '500',
|
|
127
|
+
paddingTop: Platform.OS === 'ios' ? scale(9) : scale(7),
|
|
128
|
+
borderWidth: scale(1),
|
|
129
|
+
borderRadius: scale(8),
|
|
130
|
+
justifyContent: 'center',
|
|
131
|
+
alignItems: 'center',
|
|
132
|
+
textAlign: 'center',
|
|
133
|
+
alignSelf: 'center',
|
|
134
|
+
overflow: 'hidden',
|
|
135
|
+
color: resolvedTheme.colors.textPrimary,
|
|
136
|
+
borderColor: resolvedTheme.colors.outline
|
|
137
|
+
},
|
|
138
|
+
focusCell: {
|
|
139
|
+
borderColor: resolvedTheme.colors.primary,
|
|
140
|
+
backgroundColor: resolvedTheme.colors.surfaceVariant
|
|
141
|
+
}
|
|
142
|
+
}), [isKeyboardOpen, resolvedTheme.colors.onSurfaceVariant, resolvedTheme.colors.outline, resolvedTheme.colors.primary, resolvedTheme.colors.surfaceVariant, resolvedTheme.colors.textPrimary]);
|
|
143
|
+
useEffect(() => {
|
|
144
|
+
if (resendTimer <= 0) return;
|
|
145
|
+
const timer = setInterval(() => {
|
|
146
|
+
setResendTimer(prev => prev - 1);
|
|
147
|
+
}, 1000);
|
|
148
|
+
return () => clearInterval(timer);
|
|
149
|
+
}, [resendTimer]);
|
|
150
|
+
const handleSubmit = useCallback(async () => {
|
|
151
|
+
if (!onSubmit || otp.length !== otpDigitCount) return;
|
|
152
|
+
setIsSubmitting(true);
|
|
153
|
+
try {
|
|
154
|
+
await onSubmit({
|
|
155
|
+
otp
|
|
156
|
+
});
|
|
157
|
+
} catch (error) {
|
|
158
|
+
console.error('OTP submission error:', error);
|
|
159
|
+
} finally {
|
|
160
|
+
setIsSubmitting(false);
|
|
161
|
+
}
|
|
162
|
+
}, [onSubmit, otp, otpDigitCount]);
|
|
163
|
+
const handleResendOtp = useCallback(() => {
|
|
164
|
+
if (onResendOtp) {
|
|
165
|
+
onResendOtp();
|
|
166
|
+
setResendTimer(resendDisabledTime);
|
|
167
|
+
}
|
|
168
|
+
}, [onResendOtp, resendDisabledTime]);
|
|
169
|
+
const isLoading = loading || isSubmitting;
|
|
170
|
+
const isSubmitDisabled = otp.length !== otpDigitCount || isLoading;
|
|
171
|
+
const shouldRender = condition => typeof condition === 'function' || !!condition;
|
|
172
|
+
return /*#__PURE__*/_jsx(BackgroundLayout, {
|
|
173
|
+
theme: resolvedTheme,
|
|
174
|
+
backgroundImage: backgroundImage?.source,
|
|
175
|
+
gradientSplitBackground: isKeyboardOpen ? 0.3 : 0.4,
|
|
176
|
+
children: /*#__PURE__*/_jsxs(View, {
|
|
177
|
+
style: [styles.container, containerStyle],
|
|
178
|
+
children: [shouldRender(renderBackButton || onTopBackBtnPress) && /*#__PURE__*/_jsx(View, {
|
|
179
|
+
style: styles.topBackBtnWrapper,
|
|
180
|
+
children: renderBackButton ? renderBackButton({
|
|
181
|
+
onPress: onTopBackBtnPress ?? (() => {})
|
|
182
|
+
}) : /*#__PURE__*/_jsx(BackBtn, {
|
|
183
|
+
theme: resolvedTheme,
|
|
184
|
+
style: backBtnStyle,
|
|
185
|
+
onPress: onTopBackBtnPress
|
|
186
|
+
})
|
|
187
|
+
}), /*#__PURE__*/_jsx(HideKeyboard, {
|
|
188
|
+
children: /*#__PURE__*/_jsxs(View, {
|
|
189
|
+
style: styles.centerContent,
|
|
190
|
+
children: [renderLogo ? renderLogo() : logoUri ? /*#__PURE__*/_jsx(Logo, {
|
|
191
|
+
logoUri: logoUri
|
|
192
|
+
}) : null, renderOtpHeader ? renderOtpHeader() : /*#__PURE__*/_jsx(Text, {
|
|
193
|
+
style: [styles.title, titleStyle],
|
|
194
|
+
children: title
|
|
195
|
+
}), phoneNumber && (renderPhoneText ? renderPhoneText(phoneNumber) : /*#__PURE__*/_jsxs(View, {
|
|
196
|
+
style: styles.sentNumberContainer,
|
|
197
|
+
children: [/*#__PURE__*/_jsx(Text, {
|
|
198
|
+
style: styles.sentText,
|
|
199
|
+
children: text?.otpSentText
|
|
200
|
+
}), /*#__PURE__*/_jsx(Text, {
|
|
201
|
+
style: {
|
|
202
|
+
fontWeight: '700',
|
|
203
|
+
fontSize: RFValue(13),
|
|
204
|
+
marginTop: verticalScale(4),
|
|
205
|
+
color: resolvedTheme.colors.primary
|
|
206
|
+
},
|
|
207
|
+
children: phoneNumber
|
|
208
|
+
})]
|
|
209
|
+
})), /*#__PURE__*/_jsxs(View, {
|
|
210
|
+
style: [styles.form, formStyle],
|
|
211
|
+
children: [renderOtpInput ? renderOtpInput({
|
|
212
|
+
value: otp,
|
|
213
|
+
onChange: val => setOtp(val.replace(/\D/g, '')),
|
|
214
|
+
isFocused: Array.from({
|
|
215
|
+
length: otpDigitCount
|
|
216
|
+
}, (_, i) => otp.length === i)
|
|
217
|
+
}) : /*#__PURE__*/_jsx(CodeField, {
|
|
218
|
+
ref: ref,
|
|
219
|
+
...codeFieldProps,
|
|
220
|
+
value: otp,
|
|
221
|
+
onChangeText: input => setOtp(input.replace(/\D/g, '')),
|
|
222
|
+
cellCount: otpDigitCount,
|
|
223
|
+
rootStyle: styles.codeFieldRoot,
|
|
224
|
+
keyboardType: keyboardType,
|
|
225
|
+
textContentType: "oneTimeCode",
|
|
226
|
+
renderCell: ({
|
|
227
|
+
index,
|
|
228
|
+
symbol,
|
|
229
|
+
isFocused
|
|
230
|
+
}) => /*#__PURE__*/_jsx(Text, {
|
|
231
|
+
style: [styles.cell, cellStyle, isFocused && styles.focusCell, isFocused && focusCellStyle],
|
|
232
|
+
onLayout: getCellOnLayoutHandler(index),
|
|
233
|
+
children: symbol || (isFocused ? /*#__PURE__*/_jsx(Cursor, {}) : null)
|
|
234
|
+
}, index)
|
|
235
|
+
}), renderSubmitButton ? renderSubmitButton({
|
|
236
|
+
onPress: handleSubmit,
|
|
237
|
+
disabled: isSubmitDisabled,
|
|
238
|
+
loading: isLoading
|
|
239
|
+
}) : /*#__PURE__*/_jsx(Button.Primary, {
|
|
240
|
+
title: text.submitButton || DEFAULT_TEXT.submitButton,
|
|
241
|
+
theme: resolvedTheme,
|
|
242
|
+
onPress: handleSubmit,
|
|
243
|
+
loadingText: text.loadingSubmitBtnText,
|
|
244
|
+
titleStyle: {
|
|
245
|
+
fontSize: RFValue(13)
|
|
246
|
+
},
|
|
247
|
+
disabled: isSubmitDisabled,
|
|
248
|
+
loading: isLoading
|
|
249
|
+
}), !isKeyboardOpen && /*#__PURE__*/_jsx(View, {
|
|
250
|
+
style: {
|
|
251
|
+
alignItems: 'center',
|
|
252
|
+
marginTop: verticalScale(10)
|
|
253
|
+
},
|
|
254
|
+
children: renderResendButton ? renderResendButton({
|
|
255
|
+
onPress: handleResendOtp,
|
|
256
|
+
disabled: resendTimer > 0
|
|
257
|
+
}) : /*#__PURE__*/_jsx(Text, {
|
|
258
|
+
onPress: resendTimer <= 0 ? handleResendOtp : undefined,
|
|
259
|
+
style: {
|
|
260
|
+
fontSize: RFValue(12),
|
|
261
|
+
color: resendTimer > 0 ? resolvedTheme.colors.onSurfaceVariant : resolvedTheme.colors.primary,
|
|
262
|
+
textAlign: 'center'
|
|
263
|
+
},
|
|
264
|
+
children: resendTimer > 0 ? `${text?.resendOtpCountdownText || DEFAULT_TEXT.resendOtpCountdownText} ${resendTimer}s` : text?.resendOtpText || DEFAULT_TEXT.resendOtpText
|
|
265
|
+
})
|
|
266
|
+
})]
|
|
267
|
+
})]
|
|
268
|
+
})
|
|
269
|
+
})]
|
|
270
|
+
})
|
|
271
|
+
});
|
|
272
|
+
};
|
|
273
|
+
export default /*#__PURE__*/memo(OTP);
|
|
274
|
+
//# 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","RFValue","jsx","_jsx","jsxs","_jsxs","DEFAULT_TEXT","otpLabel","otpPlaceholder","submitButton","loadingSubmitBtnText","otpSentText","resendOtpText","resendOtpCountdownText","OTP","title","onSubmit","onTopBackBtnPress","containerStyle","titleStyle","formStyle","backBtnStyle","backgroundImage","loading","logoUri","theme","overrideTheme","otpDigitCount","keyboardType","phoneNumber","text","onResendOtp","renderResendButton","resendDisabledTime","renderLogo","renderSubmitButton","renderBackButton","renderOtpHeader","renderOtpInput","renderPhoneText","cellStyle","focusCellStyle","resolvedTheme","isKeyboardOpen","otp","setOtp","isSubmitting","setIsSubmitting","resendTimer","setResendTimer","ref","value","cellCount","codeFieldProps","getCellOnLayoutHandler","setValue","styles","create","container","flex","width","paddingHorizontal","justifyContent","alignItems","topBackBtnWrapper","position","top","left","zIndex","centerContent","maxWidth","gap","fontSize","fontWeight","marginTop","color","colors","textPrimary","textAlign","sentText","onSurfaceVariant","lineHeight","sentNumberContainer","form","marginBottom","codeFieldRoot","setWidth","cell","height","paddingTop","OS","borderWidth","borderRadius","alignSelf","overflow","borderColor","outline","focusCell","primary","backgroundColor","surfaceVariant","timer","setInterval","prev","clearInterval","handleSubmit","length","error","console","handleResendOtp","isLoading","isSubmitDisabled","shouldRender","condition","source","gradientSplitBackground","children","style","onPress","onChange","val","replace","isFocused","Array","from","_","i","onChangeText","input","rootStyle","textContentType","renderCell","index","symbol","onLayout","disabled","Primary","loadingText","undefined"],"sourceRoot":"../../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