@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,293 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @author Naresh Dhamu
|
|
3
|
+
* @lastModified Tue 24 Jun 2025 at 10:15 PM
|
|
4
|
+
**/
|
|
5
|
+
|
|
6
|
+
import React from 'react';
|
|
7
|
+
import {
|
|
8
|
+
StyleSheet,
|
|
9
|
+
View,
|
|
10
|
+
TouchableOpacity,
|
|
11
|
+
FlatList,
|
|
12
|
+
type TextStyle,
|
|
13
|
+
type StyleProp,
|
|
14
|
+
type ViewStyle,
|
|
15
|
+
type ListRenderItem
|
|
16
|
+
} from 'react-native';
|
|
17
|
+
import { FlatGrid } from 'react-native-super-grid';
|
|
18
|
+
import { scale } from 'react-native-size-matters';
|
|
19
|
+
import { Search } from 'lucide-react-native';
|
|
20
|
+
import SkeletonPlaceholder from 'react-native-skeleton-placeholder';
|
|
21
|
+
|
|
22
|
+
import { useTheme } from '../../../theme/hook/useTheme';
|
|
23
|
+
|
|
24
|
+
import AppHeader from '../../Headers/AppHeader';
|
|
25
|
+
import { Text } from '../../Text';
|
|
26
|
+
import { ThumbnailCard } from '../../Content/Card/components/ThumbnailCard';
|
|
27
|
+
import CardPoster from '../../Content/Card/components/CardPoster';
|
|
28
|
+
import type { IContentData } from '../../../types';
|
|
29
|
+
import type { AppTheme, ITheme } from '../../../theme/themes';
|
|
30
|
+
import { RFValue } from 'react-native-responsive-fontsize';
|
|
31
|
+
|
|
32
|
+
type IWatchLaterItem = {
|
|
33
|
+
_id: string;
|
|
34
|
+
user_id?: string;
|
|
35
|
+
content: IContentData;
|
|
36
|
+
updatedAt?: string;
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
export type WatchLaterProps = {
|
|
40
|
+
data: IWatchLaterItem[];
|
|
41
|
+
isLoading?: boolean;
|
|
42
|
+
title?: string;
|
|
43
|
+
headerComponent?: React.ReactNode;
|
|
44
|
+
onBackPress?: () => void;
|
|
45
|
+
onSearchPress?: () => void;
|
|
46
|
+
showSearchIcon?: boolean;
|
|
47
|
+
itemDimension?: number;
|
|
48
|
+
spacing?: number;
|
|
49
|
+
titleStyle?: StyleProp<TextStyle>;
|
|
50
|
+
listStyle?: StyleProp<ViewStyle>;
|
|
51
|
+
contentContainerStyle?: StyleProp<ViewStyle>;
|
|
52
|
+
theme?: AppTheme;
|
|
53
|
+
viewMode?: 'poster' | 'detailed';
|
|
54
|
+
renderItem?: (item: IWatchLaterItem, index: number) => React.ReactElement | null;
|
|
55
|
+
skeletonCount?: number;
|
|
56
|
+
skeletonComponent?: React.ReactElement;
|
|
57
|
+
noDataComponent?: React.ReactNode;
|
|
58
|
+
noDataText?: string;
|
|
59
|
+
onPressItem?: (item: IWatchLaterItem) => void;
|
|
60
|
+
onEndReached?: () => void;
|
|
61
|
+
onEndReachedThreshold?: number;
|
|
62
|
+
};
|
|
63
|
+
|
|
64
|
+
const DefaultSkeleton: React.FC<{ theme: ITheme; viewMode: 'poster' | 'detailed' }> = ({ theme, viewMode }) => {
|
|
65
|
+
if (viewMode === 'detailed') {
|
|
66
|
+
return (
|
|
67
|
+
<SkeletonPlaceholder
|
|
68
|
+
borderRadius={6}
|
|
69
|
+
highlightColor={theme.colors.skeletonHighlightColor}
|
|
70
|
+
backgroundColor={theme.colors.skeletonBaseColor}
|
|
71
|
+
>
|
|
72
|
+
<View style={styles.detailedItem}>
|
|
73
|
+
<View style={styles.thumbnailWrapper} />
|
|
74
|
+
<View style={[styles.detailedInfo, { justifyContent: 'center' }]}>
|
|
75
|
+
<View style={{ width: '60%', height: scale(12), marginBottom: scale(6) }} />
|
|
76
|
+
<View style={{ width: '90%', height: scale(10), marginBottom: scale(4) }} />
|
|
77
|
+
<View style={{ width: '70%', height: scale(10), marginBottom: scale(4) }} />
|
|
78
|
+
<View style={{ width: '40%', height: scale(10), marginBottom: scale(4) }} />
|
|
79
|
+
<View style={{ width: '30%', height: scale(10) }} />
|
|
80
|
+
</View>
|
|
81
|
+
</View>
|
|
82
|
+
</SkeletonPlaceholder>
|
|
83
|
+
);
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
return (
|
|
87
|
+
<SkeletonPlaceholder
|
|
88
|
+
borderRadius={6}
|
|
89
|
+
highlightColor={theme.colors.skeletonHighlightColor}
|
|
90
|
+
backgroundColor={theme.colors.skeletonBaseColor}
|
|
91
|
+
>
|
|
92
|
+
<View style={{ height: scale(140), borderRadius: scale(6), margin: scale(1) }} />
|
|
93
|
+
</SkeletonPlaceholder>
|
|
94
|
+
);
|
|
95
|
+
};
|
|
96
|
+
|
|
97
|
+
export const WatchLater: React.FC<WatchLaterProps> = ({
|
|
98
|
+
data = [],
|
|
99
|
+
isLoading = false,
|
|
100
|
+
title = 'Watch Later',
|
|
101
|
+
headerComponent,
|
|
102
|
+
onBackPress,
|
|
103
|
+
onSearchPress = () => {},
|
|
104
|
+
showSearchIcon = true,
|
|
105
|
+
itemDimension = 90,
|
|
106
|
+
spacing = 10,
|
|
107
|
+
listStyle,
|
|
108
|
+
titleStyle,
|
|
109
|
+
contentContainerStyle,
|
|
110
|
+
theme,
|
|
111
|
+
renderItem,
|
|
112
|
+
skeletonCount = 9,
|
|
113
|
+
skeletonComponent,
|
|
114
|
+
noDataComponent,
|
|
115
|
+
noDataText = 'No Watch Later Found',
|
|
116
|
+
onPressItem,
|
|
117
|
+
onEndReached,
|
|
118
|
+
onEndReachedThreshold,
|
|
119
|
+
viewMode = 'poster'
|
|
120
|
+
}) => {
|
|
121
|
+
const { theme: appliedTheme } = useTheme(theme);
|
|
122
|
+
|
|
123
|
+
const listData = isLoading
|
|
124
|
+
? (Array.from({ length: skeletonCount }, (_, i) => ({
|
|
125
|
+
_id: `skeleton-${i}`,
|
|
126
|
+
content: {
|
|
127
|
+
name: '',
|
|
128
|
+
description: '',
|
|
129
|
+
poster: '',
|
|
130
|
+
thumbnail: ''
|
|
131
|
+
}
|
|
132
|
+
})) as any)
|
|
133
|
+
: data;
|
|
134
|
+
|
|
135
|
+
const renderGridItem: ListRenderItem<IWatchLaterItem> = ({ item, index }) => {
|
|
136
|
+
if (isLoading) {
|
|
137
|
+
return skeletonComponent ?? <DefaultSkeleton theme={appliedTheme} viewMode={viewMode} />;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
if (renderItem) return renderItem(item, index);
|
|
141
|
+
|
|
142
|
+
if (viewMode === 'detailed') {
|
|
143
|
+
return (
|
|
144
|
+
<TouchableOpacity
|
|
145
|
+
key={item._id}
|
|
146
|
+
onPress={() => onPressItem?.(item)}
|
|
147
|
+
activeOpacity={0.8}
|
|
148
|
+
style={styles.detailedItem}
|
|
149
|
+
>
|
|
150
|
+
<View style={styles.thumbnailWrapper}>
|
|
151
|
+
<ThumbnailCard
|
|
152
|
+
theme={appliedTheme}
|
|
153
|
+
isLoading={false}
|
|
154
|
+
thumbnailUri={item?.content?.thumbnail}
|
|
155
|
+
wrapperStyle={styles.thumbnailImage}
|
|
156
|
+
/>
|
|
157
|
+
</View>
|
|
158
|
+
<View style={styles.detailedInfo}>
|
|
159
|
+
<Text numberOfLines={1} style={styles.detailedTitle}>
|
|
160
|
+
{item?.content?.name}
|
|
161
|
+
</Text>
|
|
162
|
+
<Text numberOfLines={5} style={[styles.detailedDesc, { color: appliedTheme.colors.textSecondary }]}>
|
|
163
|
+
{item?.content?.description}
|
|
164
|
+
</Text>
|
|
165
|
+
</View>
|
|
166
|
+
</TouchableOpacity>
|
|
167
|
+
);
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
return (
|
|
171
|
+
<TouchableOpacity key={item._id || index} onPress={() => onPressItem?.(item)} activeOpacity={0.8}>
|
|
172
|
+
<CardPoster theme={appliedTheme} isLoading={isLoading} posterUri={item?.content?.poster} />
|
|
173
|
+
</TouchableOpacity>
|
|
174
|
+
);
|
|
175
|
+
};
|
|
176
|
+
|
|
177
|
+
return (
|
|
178
|
+
<View style={styles.container}>
|
|
179
|
+
{React.isValidElement(headerComponent) ? (
|
|
180
|
+
headerComponent
|
|
181
|
+
) : (
|
|
182
|
+
<AppHeader
|
|
183
|
+
onBackPress={onBackPress}
|
|
184
|
+
title={title}
|
|
185
|
+
titleAlign="left"
|
|
186
|
+
theme={appliedTheme}
|
|
187
|
+
titleStyle={{
|
|
188
|
+
...(titleStyle ? StyleSheet.flatten(titleStyle) : {}),
|
|
189
|
+
color: appliedTheme.colors.onBackground
|
|
190
|
+
}}
|
|
191
|
+
onRightPress={onSearchPress}
|
|
192
|
+
rightIcon={showSearchIcon ? <Search size={scale(23)} color={appliedTheme.colors.onBackground} /> : undefined}
|
|
193
|
+
/>
|
|
194
|
+
)}
|
|
195
|
+
|
|
196
|
+
{isLoading || data.length > 0 ? (
|
|
197
|
+
viewMode === 'poster' ? (
|
|
198
|
+
<FlatGrid
|
|
199
|
+
itemDimension={itemDimension}
|
|
200
|
+
spacing={spacing}
|
|
201
|
+
data={listData}
|
|
202
|
+
keyExtractor={(item, index) => item._id || `item-${index}`}
|
|
203
|
+
style={listStyle}
|
|
204
|
+
showsVerticalScrollIndicator={false}
|
|
205
|
+
contentContainerStyle={[styles.contentContainerFlatStyle, contentContainerStyle]}
|
|
206
|
+
renderItem={renderGridItem}
|
|
207
|
+
onEndReached={onEndReached}
|
|
208
|
+
onEndReachedThreshold={onEndReachedThreshold ?? 0.5}
|
|
209
|
+
/>
|
|
210
|
+
) : (
|
|
211
|
+
<FlatList
|
|
212
|
+
data={listData}
|
|
213
|
+
keyExtractor={(item, index) => item._id || `item-${index}`}
|
|
214
|
+
renderItem={renderGridItem}
|
|
215
|
+
style={listStyle}
|
|
216
|
+
contentContainerStyle={[styles.contentContainerFlatStyle, contentContainerStyle]}
|
|
217
|
+
onEndReached={onEndReached}
|
|
218
|
+
onEndReachedThreshold={onEndReachedThreshold ?? 0.5}
|
|
219
|
+
showsVerticalScrollIndicator={false}
|
|
220
|
+
/>
|
|
221
|
+
)
|
|
222
|
+
) : noDataComponent ? (
|
|
223
|
+
<>{noDataComponent}</>
|
|
224
|
+
) : (
|
|
225
|
+
<View style={styles.noData}>
|
|
226
|
+
<Text style={styles.noDataText}>{noDataText}</Text>
|
|
227
|
+
</View>
|
|
228
|
+
)}
|
|
229
|
+
</View>
|
|
230
|
+
);
|
|
231
|
+
};
|
|
232
|
+
|
|
233
|
+
const styles = StyleSheet.create({
|
|
234
|
+
container: {
|
|
235
|
+
flex: 1
|
|
236
|
+
},
|
|
237
|
+
noData: {
|
|
238
|
+
flex: 1,
|
|
239
|
+
alignItems: 'center',
|
|
240
|
+
justifyContent: 'center'
|
|
241
|
+
},
|
|
242
|
+
noDataText: {
|
|
243
|
+
fontSize: RFValue(13),
|
|
244
|
+
opacity: 0.5
|
|
245
|
+
},
|
|
246
|
+
contentContainerFlatStyle: {
|
|
247
|
+
paddingBottom: scale(50)
|
|
248
|
+
},
|
|
249
|
+
thumbnailWrapper: {
|
|
250
|
+
width: scale(150),
|
|
251
|
+
aspectRatio: 16 / 9,
|
|
252
|
+
borderRadius: scale(6),
|
|
253
|
+
overflow: 'hidden',
|
|
254
|
+
backgroundColor: '#222',
|
|
255
|
+
alignSelf: 'stretch'
|
|
256
|
+
},
|
|
257
|
+
thumbnailImage: {
|
|
258
|
+
width: '100%',
|
|
259
|
+
height: '100%',
|
|
260
|
+
borderRadius: 0
|
|
261
|
+
},
|
|
262
|
+
detailedItem: {
|
|
263
|
+
flexDirection: 'row',
|
|
264
|
+
marginVertical: scale(6),
|
|
265
|
+
paddingHorizontal: scale(10),
|
|
266
|
+
alignItems: 'flex-start'
|
|
267
|
+
},
|
|
268
|
+
detailedPoster: {
|
|
269
|
+
width: scale(80),
|
|
270
|
+
height: scale(120),
|
|
271
|
+
borderRadius: scale(6)
|
|
272
|
+
},
|
|
273
|
+
detailedInfo: {
|
|
274
|
+
flex: 1,
|
|
275
|
+
marginLeft: scale(5)
|
|
276
|
+
},
|
|
277
|
+
detailedTitle: {
|
|
278
|
+
fontSize: RFValue(11),
|
|
279
|
+
fontWeight: '500'
|
|
280
|
+
},
|
|
281
|
+
detailedDesc: {
|
|
282
|
+
fontSize: RFValue(9),
|
|
283
|
+
textAlign: 'auto',
|
|
284
|
+
fontWeight: '400',
|
|
285
|
+
marginTop: scale(1)
|
|
286
|
+
}
|
|
287
|
+
});
|
|
288
|
+
|
|
289
|
+
export namespace WatchLater {
|
|
290
|
+
export type Props = WatchLaterProps;
|
|
291
|
+
export type Data = Props['data'];
|
|
292
|
+
export type Item = Props['data'][number];
|
|
293
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import React, { useState } from 'react';
|
|
2
|
+
import { Image, StyleSheet, View } from 'react-native';
|
|
3
|
+
import { scale } from 'react-native-size-matters';
|
|
4
|
+
import { useTheme } from '../../../theme/hook/useTheme';
|
|
5
|
+
import type { AppTheme } from '../../../theme/themes';
|
|
6
|
+
|
|
7
|
+
const fallbackAvatar = require('../../../assets/img/profile.jpg');
|
|
8
|
+
|
|
9
|
+
type UserAvatarProps = {
|
|
10
|
+
avatarUri?: string;
|
|
11
|
+
size?: number;
|
|
12
|
+
theme?: AppTheme;
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
const UserAvatar: React.FC<UserAvatarProps> = ({ avatarUri, size = scale(80), theme }) => {
|
|
16
|
+
const [imageError, setImageError] = useState(false);
|
|
17
|
+
const { theme: appliedTheme } = useTheme(theme);
|
|
18
|
+
const borderColor = appliedTheme.colors.primary;
|
|
19
|
+
|
|
20
|
+
return (
|
|
21
|
+
<View style={styles(size).wrapper}>
|
|
22
|
+
<Image
|
|
23
|
+
source={imageError || !avatarUri ? fallbackAvatar : { uri: avatarUri }}
|
|
24
|
+
style={[styles(size).avatar, { borderColor }]}
|
|
25
|
+
onError={() => setImageError(true)}
|
|
26
|
+
/>
|
|
27
|
+
</View>
|
|
28
|
+
);
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
export default UserAvatar;
|
|
32
|
+
const styles = (size: number) =>
|
|
33
|
+
StyleSheet.create({
|
|
34
|
+
wrapper: {
|
|
35
|
+
position: 'relative'
|
|
36
|
+
},
|
|
37
|
+
avatar: {
|
|
38
|
+
width: size,
|
|
39
|
+
height: size,
|
|
40
|
+
borderRadius: size / 2,
|
|
41
|
+
borderWidth: scale(1.5)
|
|
42
|
+
}
|
|
43
|
+
});
|
|
@@ -0,0 +1,182 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @author Naresh Dhamu
|
|
3
|
+
* @lastModified Mon 23 Jun 2025 at 11:22 AM
|
|
4
|
+
*/
|
|
5
|
+
import React from 'react';
|
|
6
|
+
import { View, Pressable, type TextStyle, type ViewStyle } from 'react-native';
|
|
7
|
+
import { Edit3 } from 'lucide-react-native';
|
|
8
|
+
import SkeletonPlaceholder from 'react-native-skeleton-placeholder';
|
|
9
|
+
import { moderateScale, scale, verticalScale } from 'react-native-size-matters';
|
|
10
|
+
import UserAvatar from './UserAvatar';
|
|
11
|
+
import { Text } from '../../Text';
|
|
12
|
+
import { useTheme } from '../../../theme/hook/useTheme';
|
|
13
|
+
import type { AppTheme } from '../../../theme/themes';
|
|
14
|
+
import { RFValue } from 'react-native-responsive-fontsize';
|
|
15
|
+
|
|
16
|
+
export interface UserInfo {
|
|
17
|
+
name: string;
|
|
18
|
+
avatarUri: string;
|
|
19
|
+
emailOrPhone: string;
|
|
20
|
+
onEditPress?: () => void;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export interface UserInfoTextStyle {
|
|
24
|
+
nameStyle?: TextStyle;
|
|
25
|
+
emailStyle?: TextStyle;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
interface UserSectionProps {
|
|
29
|
+
userInfo: UserInfo;
|
|
30
|
+
isLoading?: boolean;
|
|
31
|
+
renderUserInfo?: (userInfo: UserInfo) => React.ReactNode;
|
|
32
|
+
theme?: AppTheme;
|
|
33
|
+
avatarComponent?: React.ReactNode;
|
|
34
|
+
skeletonProps?: Partial<React.ComponentProps<typeof SkeletonPlaceholder>>;
|
|
35
|
+
userInfoTextStyle?: UserInfoTextStyle;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
const UserSection: React.FC<UserSectionProps> = ({
|
|
39
|
+
userInfo,
|
|
40
|
+
isLoading,
|
|
41
|
+
renderUserInfo,
|
|
42
|
+
theme,
|
|
43
|
+
avatarComponent,
|
|
44
|
+
skeletonProps = {},
|
|
45
|
+
userInfoTextStyle = {}
|
|
46
|
+
}) => {
|
|
47
|
+
const { theme: appliedTheme } = useTheme(theme);
|
|
48
|
+
if (!userInfo) return null;
|
|
49
|
+
if (renderUserInfo) return renderUserInfo(userInfo);
|
|
50
|
+
|
|
51
|
+
if (isLoading) {
|
|
52
|
+
return (
|
|
53
|
+
<View style={styles.userInfoContainer}>
|
|
54
|
+
<SkeletonPlaceholder
|
|
55
|
+
backgroundColor={appliedTheme.colors.skeletonBaseColor}
|
|
56
|
+
highlightColor={appliedTheme.colors.skeletonHighlightColor}
|
|
57
|
+
borderRadius={moderateScale(8)}
|
|
58
|
+
{...skeletonProps}
|
|
59
|
+
>
|
|
60
|
+
<View style={styles.skeletonWrapper}>
|
|
61
|
+
<View style={styles.skeletonAvatar} />
|
|
62
|
+
<View style={styles.skeletonName} />
|
|
63
|
+
<View style={styles.skeletonEmail} />
|
|
64
|
+
</View>
|
|
65
|
+
</SkeletonPlaceholder>
|
|
66
|
+
</View>
|
|
67
|
+
);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
return (
|
|
71
|
+
<View style={styles.userInfoContainer}>
|
|
72
|
+
<View style={styles.avatarWrapper}>
|
|
73
|
+
{avatarComponent ?? (
|
|
74
|
+
<>
|
|
75
|
+
<UserAvatar avatarUri={userInfo.avatarUri} theme={appliedTheme} />
|
|
76
|
+
{userInfo.onEditPress && (
|
|
77
|
+
<Pressable
|
|
78
|
+
onPress={userInfo.onEditPress}
|
|
79
|
+
style={[
|
|
80
|
+
styles.editButton,
|
|
81
|
+
{
|
|
82
|
+
borderColor: appliedTheme.colors.primary,
|
|
83
|
+
backgroundColor: appliedTheme.colors.white,
|
|
84
|
+
shadowColor: appliedTheme.colors.surface
|
|
85
|
+
}
|
|
86
|
+
]}
|
|
87
|
+
android_ripple={{
|
|
88
|
+
color: appliedTheme.colors.surfaceDisabled
|
|
89
|
+
}}
|
|
90
|
+
>
|
|
91
|
+
<View style={styles.editContent}>
|
|
92
|
+
<Edit3 size={moderateScale(14)} color={appliedTheme.colors.primary} />
|
|
93
|
+
</View>
|
|
94
|
+
</Pressable>
|
|
95
|
+
)}
|
|
96
|
+
</>
|
|
97
|
+
)}
|
|
98
|
+
</View>
|
|
99
|
+
|
|
100
|
+
{userInfo.name && (
|
|
101
|
+
<Text style={[styles.userName, { color: appliedTheme.colors.onBackground }, userInfoTextStyle.nameStyle]}>
|
|
102
|
+
{userInfo.name}
|
|
103
|
+
</Text>
|
|
104
|
+
)}
|
|
105
|
+
{userInfo.emailOrPhone && (
|
|
106
|
+
<Text style={[styles.userEmail, { color: appliedTheme.colors.onBackground }, userInfoTextStyle.emailStyle]}>
|
|
107
|
+
{userInfo.emailOrPhone}
|
|
108
|
+
</Text>
|
|
109
|
+
)}
|
|
110
|
+
</View>
|
|
111
|
+
);
|
|
112
|
+
};
|
|
113
|
+
|
|
114
|
+
export default UserSection;
|
|
115
|
+
|
|
116
|
+
// Styles
|
|
117
|
+
const styles = {
|
|
118
|
+
userInfoContainer: {
|
|
119
|
+
alignItems: 'center',
|
|
120
|
+
justifyContent: 'center',
|
|
121
|
+
paddingVertical: verticalScale(10),
|
|
122
|
+
height: verticalScale(200)
|
|
123
|
+
} as ViewStyle,
|
|
124
|
+
avatarWrapper: {
|
|
125
|
+
position: 'relative'
|
|
126
|
+
} as ViewStyle,
|
|
127
|
+
editButton: {
|
|
128
|
+
position: 'absolute',
|
|
129
|
+
bottom: scale(2),
|
|
130
|
+
right: scale(2),
|
|
131
|
+
width: scale(22),
|
|
132
|
+
height: scale(22),
|
|
133
|
+
borderRadius: scale(11),
|
|
134
|
+
alignItems: 'center',
|
|
135
|
+
justifyContent: 'center',
|
|
136
|
+
borderWidth: 1,
|
|
137
|
+
elevation: 1,
|
|
138
|
+
shadowOffset: { width: 0, height: 0.5 },
|
|
139
|
+
shadowOpacity: 0.1,
|
|
140
|
+
shadowRadius: 0.5
|
|
141
|
+
} as ViewStyle,
|
|
142
|
+
editContent: {
|
|
143
|
+
alignItems: 'center',
|
|
144
|
+
justifyContent: 'center'
|
|
145
|
+
} as ViewStyle,
|
|
146
|
+
editLabel: {
|
|
147
|
+
fontSize: RFValue(8),
|
|
148
|
+
marginTop: verticalScale(1),
|
|
149
|
+
fontWeight: '500',
|
|
150
|
+
lineHeight: moderateScale(12)
|
|
151
|
+
} as TextStyle,
|
|
152
|
+
userName: {
|
|
153
|
+
fontSize: RFValue(15),
|
|
154
|
+
fontWeight: '600',
|
|
155
|
+
marginTop: verticalScale(10),
|
|
156
|
+
marginBottom: verticalScale(2)
|
|
157
|
+
} as TextStyle,
|
|
158
|
+
userEmail: {
|
|
159
|
+
fontSize: RFValue(13),
|
|
160
|
+
opacity: 0.7
|
|
161
|
+
} as TextStyle,
|
|
162
|
+
skeletonWrapper: {
|
|
163
|
+
alignItems: 'center'
|
|
164
|
+
} as ViewStyle,
|
|
165
|
+
skeletonAvatar: {
|
|
166
|
+
width: scale(80),
|
|
167
|
+
height: scale(80),
|
|
168
|
+
borderRadius: scale(40),
|
|
169
|
+
marginBottom: verticalScale(12)
|
|
170
|
+
} as ViewStyle,
|
|
171
|
+
skeletonName: {
|
|
172
|
+
width: scale(120),
|
|
173
|
+
height: verticalScale(18),
|
|
174
|
+
borderRadius: moderateScale(4),
|
|
175
|
+
marginBottom: verticalScale(6)
|
|
176
|
+
} as ViewStyle,
|
|
177
|
+
skeletonEmail: {
|
|
178
|
+
width: scale(160),
|
|
179
|
+
height: verticalScale(14),
|
|
180
|
+
borderRadius: moderateScale(4)
|
|
181
|
+
} as ViewStyle
|
|
182
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @author Naresh Dhamu
|
|
3
|
+
* @lastModified Tue 24 Jun 2025 at 05:02 PM
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import { WatchHistory } from './WatchHistory/WatchHistory';
|
|
7
|
+
import { WatchLater } from './WatchLater/WatchLater';
|
|
8
|
+
import { DeviceSessions } from './DeviceSessions/DeviceSessions';
|
|
9
|
+
export { WatchHistory, WatchLater, DeviceSessions };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @author Naresh Dhamu
|
|
3
|
+
* @lastModified Mon 07 Jul 2025 at 11:49 AM
|
|
4
|
+
*/
|
|
5
|
+
import React from 'react';
|
|
6
|
+
import { View as RNView, type ViewProps as RNViewProps, type ViewStyle } from 'react-native';
|
|
7
|
+
|
|
8
|
+
export type ViewProps = RNViewProps & {
|
|
9
|
+
style?: ViewStyle;
|
|
10
|
+
backgroundColor?: string;
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
export const View: React.FC<ViewProps> = ({ style, backgroundColor = 'transparent', children, ...rest }) => {
|
|
14
|
+
return (
|
|
15
|
+
<RNView style={[style, { backgroundColor }]} {...rest}>
|
|
16
|
+
{children}
|
|
17
|
+
</RNView>
|
|
18
|
+
);
|
|
19
|
+
};
|
package/src/components/index.ts
CHANGED
|
@@ -3,8 +3,21 @@
|
|
|
3
3
|
* @lastModified Sun 08 Jun 2025 at 03:23 PM
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
export * from './Button/
|
|
6
|
+
export * from './Button/PrimaryBtn';
|
|
7
7
|
export * from './Loader/Loader';
|
|
8
8
|
export * from './Headers';
|
|
9
|
-
export * from './
|
|
9
|
+
export * from './Content/Content';
|
|
10
10
|
export * from './Logo/Logo';
|
|
11
|
+
export * from './Auth';
|
|
12
|
+
export * from './layout';
|
|
13
|
+
export * from './Settings';
|
|
14
|
+
export * from './Account';
|
|
15
|
+
export * from './TabBar';
|
|
16
|
+
export * from './Input/Input';
|
|
17
|
+
export * from './Text';
|
|
18
|
+
export * from './View';
|
|
19
|
+
export * from './User';
|
|
20
|
+
export * from './BlogView';
|
|
21
|
+
export * from './ContentView';
|
|
22
|
+
export * from './Search';
|
|
23
|
+
export * from './Subscription';
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import React, { useMemo } from 'react';
|
|
2
|
+
import { StyleSheet, type ViewStyle } from 'react-native';
|
|
3
|
+
import { SafeAreaView } from 'react-native-safe-area-context';
|
|
4
|
+
import type { AppTheme } from '../../theme/themes';
|
|
5
|
+
import { useTheme } from '../../theme/hook/useTheme';
|
|
6
|
+
|
|
7
|
+
type SafeAreaWrapperProps = {
|
|
8
|
+
children: React.ReactNode;
|
|
9
|
+
style?: ViewStyle;
|
|
10
|
+
theme?: AppTheme;
|
|
11
|
+
edges?: ('top' | 'right' | 'bottom' | 'left')[];
|
|
12
|
+
fallbackBackground?: string;
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
export const SafeAreaWrapper: React.FC<SafeAreaWrapperProps> = ({
|
|
16
|
+
children,
|
|
17
|
+
style,
|
|
18
|
+
theme,
|
|
19
|
+
edges = ['top'],
|
|
20
|
+
fallbackBackground = '#fff'
|
|
21
|
+
}) => {
|
|
22
|
+
const { theme: appliedTheme } = useTheme(theme);
|
|
23
|
+
|
|
24
|
+
const containerStyle = useMemo(() => {
|
|
25
|
+
return [styles.container, { backgroundColor: appliedTheme?.colors?.background || fallbackBackground }, style];
|
|
26
|
+
}, [appliedTheme.colors.background, fallbackBackground, style]);
|
|
27
|
+
|
|
28
|
+
return (
|
|
29
|
+
<SafeAreaView edges={edges} style={containerStyle}>
|
|
30
|
+
{children}
|
|
31
|
+
</SafeAreaView>
|
|
32
|
+
);
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
const styles = StyleSheet.create({
|
|
36
|
+
container: {
|
|
37
|
+
flex: 1
|
|
38
|
+
}
|
|
39
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './SafeAreaWrapper';
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import type { IGetSectionData } from '../types';
|
|
2
|
+
|
|
3
|
+
const generateDummySection = (type: IGetSectionData['type']): IGetSectionData => {
|
|
4
|
+
return {
|
|
5
|
+
_id: `dummy-${type}`,
|
|
6
|
+
name: `Loading ${type.charAt(0).toUpperCase() + type.slice(1)}`,
|
|
7
|
+
type,
|
|
8
|
+
content_ids: Array(5).fill(''),
|
|
9
|
+
category: {
|
|
10
|
+
_id: 'dummy-cat-id',
|
|
11
|
+
name: 'Dummy',
|
|
12
|
+
slug: 'dummy'
|
|
13
|
+
},
|
|
14
|
+
content: {
|
|
15
|
+
data: Array(5).fill({ id: '', order: 0 }),
|
|
16
|
+
meta: {
|
|
17
|
+
pagination: {
|
|
18
|
+
total: 5,
|
|
19
|
+
limit: 5,
|
|
20
|
+
page: 1,
|
|
21
|
+
hasNextPage: true,
|
|
22
|
+
length: 5,
|
|
23
|
+
nextPage: 2
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
label: '',
|
|
28
|
+
order: 0,
|
|
29
|
+
status: false,
|
|
30
|
+
createdAt: new Date(),
|
|
31
|
+
updatedAt: new Date()
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
export const dummySections: IGetSectionData[] = [
|
|
36
|
+
generateDummySection('slider'),
|
|
37
|
+
generateDummySection('normal'),
|
|
38
|
+
generateDummySection('continue_watching'),
|
|
39
|
+
generateDummySection('card_style_2'),
|
|
40
|
+
generateDummySection('card_style_3'),
|
|
41
|
+
generateDummySection('card_style_4'),
|
|
42
|
+
generateDummySection('card_style_5'),
|
|
43
|
+
generateDummySection('card_style_6'),
|
|
44
|
+
generateDummySection('top_10')
|
|
45
|
+
];
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
|
|
3
|
+
export const useDebounce = (callback: (value: string) => void, delay: number) => {
|
|
4
|
+
const timeoutRef = React.useRef<NodeJS.Timeout | null>(null);
|
|
5
|
+
|
|
6
|
+
return React.useCallback(
|
|
7
|
+
(value: string) => {
|
|
8
|
+
if (timeoutRef.current) clearTimeout(timeoutRef.current);
|
|
9
|
+
timeoutRef.current = setTimeout(() => callback(value), delay);
|
|
10
|
+
},
|
|
11
|
+
[callback, delay]
|
|
12
|
+
);
|
|
13
|
+
};
|