@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,193 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* @author Ashok Desai
|
|
5
|
+
* @lastModified jun 23 Jun 2025 at 11:40 AM
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
import React, { memo, useCallback, useMemo } from 'react';
|
|
9
|
+
import { View, StyleSheet, Platform, FlatList, Keyboard } from 'react-native';
|
|
10
|
+
import { useTheme } from '../../theme/hook/useTheme';
|
|
11
|
+
import InputTwo from '../Input/InputTwo';
|
|
12
|
+
import { LucideSearch, XCircle } from 'lucide-react-native';
|
|
13
|
+
import { Text } from '../Text';
|
|
14
|
+
import { scale, verticalScale } from 'react-native-size-matters';
|
|
15
|
+
import HideKeyboard from '../Keyboard/HideKeyboard';
|
|
16
|
+
import SearchCard from './components/SearchCard';
|
|
17
|
+
import { useDebounce } from '../../hooks/useDebounce';
|
|
18
|
+
import { useRecentSearchesStore } from '../../store/RecentSearchesStore';
|
|
19
|
+
import RecentSearchesSection from './components/RecentSearchesSection';
|
|
20
|
+
import Cards from '../Content/Card';
|
|
21
|
+
import { RFValue } from 'react-native-responsive-fontsize';
|
|
22
|
+
|
|
23
|
+
// Types
|
|
24
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
25
|
+
const SearchBar = ({
|
|
26
|
+
placeholder = 'Search',
|
|
27
|
+
results,
|
|
28
|
+
search = '',
|
|
29
|
+
isLoading = false,
|
|
30
|
+
events,
|
|
31
|
+
pillMaxCount = 20,
|
|
32
|
+
skeletonCardCount = 6,
|
|
33
|
+
skeletonConfig,
|
|
34
|
+
noResultsText = 'No results found',
|
|
35
|
+
recommendedContentCardStyles,
|
|
36
|
+
theme,
|
|
37
|
+
recommendedContent
|
|
38
|
+
}) => {
|
|
39
|
+
const {
|
|
40
|
+
theme: appliedTheme
|
|
41
|
+
} = useTheme(theme);
|
|
42
|
+
const {
|
|
43
|
+
recentSearches,
|
|
44
|
+
addSearchTerm,
|
|
45
|
+
clearSearches,
|
|
46
|
+
isLoading: recentSearchesLoading
|
|
47
|
+
} = useRecentSearchesStore();
|
|
48
|
+
const {
|
|
49
|
+
colors: {
|
|
50
|
+
textPrimary,
|
|
51
|
+
background
|
|
52
|
+
}
|
|
53
|
+
} = appliedTheme;
|
|
54
|
+
const debouncedSubmit = useDebounce(keyword => {
|
|
55
|
+
const trimmed = keyword.trim();
|
|
56
|
+
if (trimmed) {
|
|
57
|
+
events?.onSubmit({
|
|
58
|
+
keyword: trimmed
|
|
59
|
+
});
|
|
60
|
+
addSearchTerm(trimmed, pillMaxCount);
|
|
61
|
+
}
|
|
62
|
+
}, 600);
|
|
63
|
+
const handleTyping = useCallback(text => {
|
|
64
|
+
events?.onChangeText?.(text);
|
|
65
|
+
debouncedSubmit(text);
|
|
66
|
+
}, [events, debouncedSubmit]);
|
|
67
|
+
const handleClear = useCallback(() => {
|
|
68
|
+
events?.onChangeText?.('');
|
|
69
|
+
events?.onSubmit({
|
|
70
|
+
keyword: ''
|
|
71
|
+
});
|
|
72
|
+
events?.onClear?.();
|
|
73
|
+
Keyboard.dismiss();
|
|
74
|
+
}, [events]);
|
|
75
|
+
const handleItemPress = useCallback(item => {
|
|
76
|
+
events?.onItemPress?.({
|
|
77
|
+
item
|
|
78
|
+
});
|
|
79
|
+
}, [events]);
|
|
80
|
+
const skeletonItems = useMemo(() => Array(skeletonCardCount).fill({}), [skeletonCardCount]);
|
|
81
|
+
const showRecent = !recentSearchesLoading && search.trim() === '' && recentSearches.length > 0;
|
|
82
|
+
const shouldShowFooter = !isLoading && search.trim().length === 0 && results?.length === 0;
|
|
83
|
+
const renderItem = ({
|
|
84
|
+
item,
|
|
85
|
+
index
|
|
86
|
+
}) => /*#__PURE__*/_jsx(View, {
|
|
87
|
+
style: styles.container,
|
|
88
|
+
children: /*#__PURE__*/_jsx(SearchCard, {
|
|
89
|
+
isLoading: isLoading,
|
|
90
|
+
title: item?.name,
|
|
91
|
+
thumbnail: item?.thumbnail || item?.poster || '',
|
|
92
|
+
description: item?.description,
|
|
93
|
+
category: item?.type || item?.content_offering_type,
|
|
94
|
+
onPress: () => !isLoading && handleItemPress(item),
|
|
95
|
+
skeletonConfig: skeletonConfig
|
|
96
|
+
})
|
|
97
|
+
}, item?._id || index);
|
|
98
|
+
const renderFooter = useMemo(() => {
|
|
99
|
+
if (!shouldShowFooter) return null;
|
|
100
|
+
return /*#__PURE__*/_jsxs(_Fragment, {
|
|
101
|
+
children: [showRecent && /*#__PURE__*/_jsx(View, {
|
|
102
|
+
style: styles.container,
|
|
103
|
+
children: /*#__PURE__*/_jsx(RecentSearchesSection, {
|
|
104
|
+
recentSearches: recentSearches,
|
|
105
|
+
isLoading: isLoading,
|
|
106
|
+
onPressItem: handleTyping,
|
|
107
|
+
onClearAll: clearSearches,
|
|
108
|
+
theme: appliedTheme
|
|
109
|
+
})
|
|
110
|
+
}), recommendedContent && recommendedContent?.content?.data.length > 0 && /*#__PURE__*/_jsx(Cards.Styles.Two, {
|
|
111
|
+
section_id: recommendedContent._id,
|
|
112
|
+
title: recommendedContent.name,
|
|
113
|
+
titleStyle: styles.recommendedTitle,
|
|
114
|
+
type: recommendedContent.type,
|
|
115
|
+
data: recommendedContent.content,
|
|
116
|
+
isLoading: isLoading,
|
|
117
|
+
theme: appliedTheme,
|
|
118
|
+
onPressItem: item => events?.onPressRecommendedItem?.({
|
|
119
|
+
item
|
|
120
|
+
}),
|
|
121
|
+
onPressMore: events?.onPressRecommendedMore,
|
|
122
|
+
moreFetchData: events?.moreFetchDataRecommended,
|
|
123
|
+
...recommendedContentCardStyles
|
|
124
|
+
})]
|
|
125
|
+
});
|
|
126
|
+
}, [shouldShowFooter, showRecent, recommendedContent, recentSearches, appliedTheme, clearSearches, handleTyping, events, isLoading, recommendedContentCardStyles]);
|
|
127
|
+
const renderEmptyComponent = () => !isLoading && search.trim().length > 0 && results?.length === 0 ? /*#__PURE__*/_jsx(Text, {
|
|
128
|
+
style: styles.emptyText,
|
|
129
|
+
color: textPrimary,
|
|
130
|
+
children: noResultsText
|
|
131
|
+
}) : null;
|
|
132
|
+
return /*#__PURE__*/_jsxs(View, {
|
|
133
|
+
style: [styles.mainContainer, {
|
|
134
|
+
backgroundColor: background
|
|
135
|
+
}],
|
|
136
|
+
children: [/*#__PURE__*/_jsx(View, {
|
|
137
|
+
style: styles.container,
|
|
138
|
+
children: /*#__PURE__*/_jsx(InputTwo, {
|
|
139
|
+
value: search,
|
|
140
|
+
placeholder: placeholder,
|
|
141
|
+
onChangeText: handleTyping,
|
|
142
|
+
leftIcon: /*#__PURE__*/_jsx(LucideSearch, {
|
|
143
|
+
size: scale(20),
|
|
144
|
+
color: "#aaa"
|
|
145
|
+
}),
|
|
146
|
+
rightIcon: search.length > 0 ? /*#__PURE__*/_jsx(XCircle, {
|
|
147
|
+
size: 24,
|
|
148
|
+
color: textPrimary
|
|
149
|
+
}) : null,
|
|
150
|
+
onPressRightIcon: handleClear,
|
|
151
|
+
accessibilityLabel: "Search"
|
|
152
|
+
})
|
|
153
|
+
}), /*#__PURE__*/_jsx(HideKeyboard, {
|
|
154
|
+
keyboardVerticalOffset: scale(10),
|
|
155
|
+
children: /*#__PURE__*/_jsx(FlatList, {
|
|
156
|
+
data: isLoading ? skeletonItems : results,
|
|
157
|
+
keyExtractor: (item, idx) => item?._id || `item-${idx}`,
|
|
158
|
+
renderItem: renderItem,
|
|
159
|
+
ListEmptyComponent: renderEmptyComponent(),
|
|
160
|
+
ListFooterComponent: renderFooter,
|
|
161
|
+
contentContainerStyle: {
|
|
162
|
+
paddingBottom: verticalScale(80),
|
|
163
|
+
paddingTop: scale(12)
|
|
164
|
+
},
|
|
165
|
+
showsVerticalScrollIndicator: false,
|
|
166
|
+
keyboardShouldPersistTaps: "handled",
|
|
167
|
+
style: {
|
|
168
|
+
flex: 1,
|
|
169
|
+
marginTop: scale(2)
|
|
170
|
+
}
|
|
171
|
+
})
|
|
172
|
+
})]
|
|
173
|
+
});
|
|
174
|
+
};
|
|
175
|
+
export default /*#__PURE__*/memo(SearchBar);
|
|
176
|
+
const styles = StyleSheet.create({
|
|
177
|
+
mainContainer: {
|
|
178
|
+
flex: 1,
|
|
179
|
+
paddingTop: Platform.OS === 'ios' ? scale(18) : scale(12)
|
|
180
|
+
},
|
|
181
|
+
container: {
|
|
182
|
+
paddingHorizontal: scale(16)
|
|
183
|
+
},
|
|
184
|
+
recommendedTitle: {
|
|
185
|
+
fontSize: RFValue(13)
|
|
186
|
+
},
|
|
187
|
+
emptyText: {
|
|
188
|
+
fontSize: RFValue(12),
|
|
189
|
+
textAlign: 'center',
|
|
190
|
+
marginTop: verticalScale(20)
|
|
191
|
+
}
|
|
192
|
+
});
|
|
193
|
+
//# sourceMappingURL=One.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","memo","useCallback","useMemo","View","StyleSheet","Platform","FlatList","Keyboard","useTheme","InputTwo","LucideSearch","XCircle","Text","scale","verticalScale","HideKeyboard","SearchCard","useDebounce","useRecentSearchesStore","RecentSearchesSection","Cards","RFValue","jsx","_jsx","Fragment","_Fragment","jsxs","_jsxs","SearchBar","placeholder","results","search","isLoading","events","pillMaxCount","skeletonCardCount","skeletonConfig","noResultsText","recommendedContentCardStyles","theme","recommendedContent","appliedTheme","recentSearches","addSearchTerm","clearSearches","recentSearchesLoading","colors","textPrimary","background","debouncedSubmit","keyword","trimmed","trim","onSubmit","handleTyping","text","onChangeText","handleClear","onClear","dismiss","handleItemPress","item","onItemPress","skeletonItems","Array","fill","showRecent","length","shouldShowFooter","renderItem","index","style","styles","container","children","title","name","thumbnail","poster","description","category","type","content_offering_type","onPress","_id","renderFooter","onPressItem","onClearAll","content","data","Styles","Two","section_id","titleStyle","recommendedTitle","onPressRecommendedItem","onPressMore","onPressRecommendedMore","moreFetchData","moreFetchDataRecommended","renderEmptyComponent","emptyText","color","mainContainer","backgroundColor","value","leftIcon","size","rightIcon","onPressRightIcon","accessibilityLabel","keyboardVerticalOffset","keyExtractor","idx","ListEmptyComponent","ListFooterComponent","contentContainerStyle","paddingBottom","paddingTop","showsVerticalScrollIndicator","keyboardShouldPersistTaps","flex","marginTop","create","OS","paddingHorizontal","fontSize","textAlign"],"sourceRoot":"../../../../src","sources":["components/Search/One.tsx"],"mappings":";;AAAA;AACA;AACA;AACA;;AAEA,OAAOA,KAAK,IAAIC,IAAI,EAAEC,WAAW,EAAEC,OAAO,QAAQ,OAAO;AACzD,SAASC,IAAI,EAAEC,UAAU,EAAEC,QAAQ,EAAEC,QAAQ,EAAEC,QAAQ,QAA6B,cAAc;AAClG,SAASC,QAAQ,QAAQ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EjH,QAAQ,CAACuH,EAAE,KAAK,KAAK,GAAG/G,KAAK,CAAC,EAAE,CAAC,GAAGA,KAAK,CAAC,EAAE;EAC1D,CAAC;EACD4D,SAAS,EAAE;IACToD,iBAAiB,EAAEhH,KAAK,CAAC,EAAE;EAC7B,CAAC;EACDiF,gBAAgB,EAAE;IAChBgC,QAAQ,EAAEzG,OAAO,CAAC,EAAE;EACtB,CAAC;EACDgF,SAAS,EAAE;IACTyB,QAAQ,EAAEzG,OAAO,CAAC,EAAE,CAAC;IACrB0G,SAAS,EAAE,QAAQ;IACnBL,SAAS,EAAE5G,aAAa,CAAC,EAAE;EAC7B;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* @author Ashok Desai
|
|
5
|
+
* @lastModified jun 23 Jun 2025 at 11:40 AM
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
import React, { memo } from 'react';
|
|
9
|
+
import { View, StyleSheet, TouchableOpacity } from 'react-native';
|
|
10
|
+
import { RotateCcw } from 'lucide-react-native';
|
|
11
|
+
import SkeletonPlaceholder from 'react-native-skeleton-placeholder';
|
|
12
|
+
import { scale } from 'react-native-size-matters';
|
|
13
|
+
import { Text } from '../../Text';
|
|
14
|
+
import { RFValue } from 'react-native-responsive-fontsize';
|
|
15
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
16
|
+
const RecentSearchesSection = ({
|
|
17
|
+
recentSearches,
|
|
18
|
+
isLoading,
|
|
19
|
+
onPressItem,
|
|
20
|
+
onClearAll,
|
|
21
|
+
theme
|
|
22
|
+
}) => {
|
|
23
|
+
const {
|
|
24
|
+
colors: {
|
|
25
|
+
textPrimary,
|
|
26
|
+
skeletonBaseColor,
|
|
27
|
+
skeletonHighlightColor,
|
|
28
|
+
border
|
|
29
|
+
}
|
|
30
|
+
} = theme;
|
|
31
|
+
const uniqueRecentSearches = [...new Set(recentSearches)];
|
|
32
|
+
const randomWidths = Array(8).fill(null).map(() => Math.round(scale(Math.floor(Math.random() * (80 - 50 + 1)) + 50)));
|
|
33
|
+
return /*#__PURE__*/_jsxs(View, {
|
|
34
|
+
style: styles.container,
|
|
35
|
+
children: [/*#__PURE__*/_jsxs(View, {
|
|
36
|
+
style: styles.headerRow,
|
|
37
|
+
children: [/*#__PURE__*/_jsx(Text, {
|
|
38
|
+
style: [styles.recentSearchText, {
|
|
39
|
+
color: textPrimary
|
|
40
|
+
}],
|
|
41
|
+
children: "Recent Searches"
|
|
42
|
+
}), uniqueRecentSearches.length > 0 && /*#__PURE__*/_jsx(TouchableOpacity, {
|
|
43
|
+
onPress: onClearAll,
|
|
44
|
+
accessibilityRole: "button",
|
|
45
|
+
accessibilityLabel: "Clear all recent searches",
|
|
46
|
+
children: /*#__PURE__*/_jsx(Text, {
|
|
47
|
+
style: styles.clearAllText,
|
|
48
|
+
children: "Clear All"
|
|
49
|
+
})
|
|
50
|
+
})]
|
|
51
|
+
}), /*#__PURE__*/_jsx(View, {
|
|
52
|
+
style: styles.pillContainer,
|
|
53
|
+
children: isLoading ? /*#__PURE__*/_jsx(SkeletonPlaceholder, {
|
|
54
|
+
backgroundColor: skeletonBaseColor,
|
|
55
|
+
highlightColor: skeletonHighlightColor,
|
|
56
|
+
speed: 1200,
|
|
57
|
+
children: /*#__PURE__*/_jsx(SkeletonPlaceholder.Item, {
|
|
58
|
+
style: styles.pillSkeletonWrapper,
|
|
59
|
+
children: randomWidths.map((width, index) => /*#__PURE__*/_jsx(SkeletonPlaceholder.Item, {
|
|
60
|
+
width: width,
|
|
61
|
+
height: scale(32),
|
|
62
|
+
borderRadius: scale(5),
|
|
63
|
+
borderWidth: scale(0.5),
|
|
64
|
+
borderColor: border,
|
|
65
|
+
marginRight: scale(6.5),
|
|
66
|
+
marginBottom: scale(6)
|
|
67
|
+
}, index))
|
|
68
|
+
})
|
|
69
|
+
}) : uniqueRecentSearches.length > 0 ? uniqueRecentSearches.map((item, index) => /*#__PURE__*/_jsxs(TouchableOpacity, {
|
|
70
|
+
onPress: () => onPressItem(item),
|
|
71
|
+
style: [styles.pill, {
|
|
72
|
+
backgroundColor: skeletonBaseColor,
|
|
73
|
+
borderColor: border
|
|
74
|
+
}],
|
|
75
|
+
accessibilityRole: "button",
|
|
76
|
+
accessibilityLabel: `Search for ${item}`,
|
|
77
|
+
activeOpacity: 0.7,
|
|
78
|
+
children: [/*#__PURE__*/_jsx(RotateCcw, {
|
|
79
|
+
size: scale(15),
|
|
80
|
+
color: textPrimary,
|
|
81
|
+
style: styles.pillIcon
|
|
82
|
+
}), /*#__PURE__*/_jsx(Text, {
|
|
83
|
+
style: [styles.pillText, {
|
|
84
|
+
color: textPrimary
|
|
85
|
+
}],
|
|
86
|
+
numberOfLines: 1,
|
|
87
|
+
ellipsizeMode: "tail",
|
|
88
|
+
children: item
|
|
89
|
+
})]
|
|
90
|
+
}, `${item}-${index}`)) : /*#__PURE__*/_jsx(Text, {
|
|
91
|
+
style: [styles.noResultsText, {
|
|
92
|
+
color: textPrimary
|
|
93
|
+
}],
|
|
94
|
+
children: "No recent searches"
|
|
95
|
+
})
|
|
96
|
+
})]
|
|
97
|
+
});
|
|
98
|
+
};
|
|
99
|
+
export default /*#__PURE__*/memo(RecentSearchesSection);
|
|
100
|
+
const styles = StyleSheet.create({
|
|
101
|
+
container: {
|
|
102
|
+
paddingVertical: scale(10),
|
|
103
|
+
backgroundColor: 'transparent'
|
|
104
|
+
},
|
|
105
|
+
headerRow: {
|
|
106
|
+
flexDirection: 'row',
|
|
107
|
+
justifyContent: 'space-between',
|
|
108
|
+
alignItems: 'center',
|
|
109
|
+
marginBottom: scale(12)
|
|
110
|
+
},
|
|
111
|
+
recentSearchText: {
|
|
112
|
+
fontSize: RFValue(12),
|
|
113
|
+
fontWeight: '600',
|
|
114
|
+
letterSpacing: 0.2
|
|
115
|
+
},
|
|
116
|
+
clearAllText: {
|
|
117
|
+
fontSize: RFValue(10),
|
|
118
|
+
fontWeight: '500',
|
|
119
|
+
textDecorationLine: 'underline'
|
|
120
|
+
},
|
|
121
|
+
pillContainer: {
|
|
122
|
+
flexDirection: 'row',
|
|
123
|
+
flexWrap: 'wrap'
|
|
124
|
+
},
|
|
125
|
+
pillSkeletonWrapper: {
|
|
126
|
+
flexDirection: 'row',
|
|
127
|
+
justifyContent: 'space-evenly',
|
|
128
|
+
flexWrap: 'wrap'
|
|
129
|
+
},
|
|
130
|
+
pill: {
|
|
131
|
+
flexDirection: 'row',
|
|
132
|
+
alignItems: 'center',
|
|
133
|
+
borderRadius: scale(5),
|
|
134
|
+
paddingHorizontal: scale(10),
|
|
135
|
+
borderWidth: scale(0.5),
|
|
136
|
+
paddingVertical: scale(5),
|
|
137
|
+
marginRight: scale(6.5),
|
|
138
|
+
marginBottom: scale(6),
|
|
139
|
+
maxWidth: scale(150)
|
|
140
|
+
},
|
|
141
|
+
pillText: {
|
|
142
|
+
fontSize: RFValue(10),
|
|
143
|
+
fontWeight: '500',
|
|
144
|
+
flexShrink: 1
|
|
145
|
+
},
|
|
146
|
+
pillIcon: {
|
|
147
|
+
marginRight: scale(5)
|
|
148
|
+
},
|
|
149
|
+
skeletonPill: {
|
|
150
|
+
height: scale(32),
|
|
151
|
+
borderRadius: scale(16),
|
|
152
|
+
marginRight: scale(6.5),
|
|
153
|
+
marginBottom: scale(6)
|
|
154
|
+
},
|
|
155
|
+
noResultsText: {
|
|
156
|
+
fontSize: RFValue(11),
|
|
157
|
+
fontStyle: 'italic',
|
|
158
|
+
opacity: 0.7
|
|
159
|
+
}
|
|
160
|
+
});
|
|
161
|
+
//# sourceMappingURL=RecentSearchesSection.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","memo","View","StyleSheet","TouchableOpacity","RotateCcw","SkeletonPlaceholder","scale","Text","RFValue","jsx","_jsx","jsxs","_jsxs","RecentSearchesSection","recentSearches","isLoading","onPressItem","onClearAll","theme","colors","textPrimary","skeletonBaseColor","skeletonHighlightColor","border","uniqueRecentSearches","Set","randomWidths","Array","fill","map","Math","round","floor","random","style","styles","container","children","headerRow","recentSearchText","color","length","onPress","accessibilityRole","accessibilityLabel","clearAllText","pillContainer","backgroundColor","highlightColor","speed","Item","pillSkeletonWrapper","width","index","height","borderRadius","borderWidth","borderColor","marginRight","marginBottom","item","pill","activeOpacity","size","pillIcon","pillText","numberOfLines","ellipsizeMode","noResultsText","create","paddingVertical","flexDirection","justifyContent","alignItems","fontSize","fontWeight","letterSpacing","textDecorationLine","flexWrap","paddingHorizontal","maxWidth","flexShrink","skeletonPill","fontStyle","opacity"],"sourceRoot":"../../../../../src","sources":["components/Search/components/RecentSearchesSection.tsx"],"mappings":";;AAAA;AACA;AACA;AACA;;AAEA,OAAOA,KAAK,IAAIC,IAAI,QAAQ,OAAO;AACnC,SAASC,IAAI,EAAEC,UAAU,EAAEC,gBAAgB,QAAQ,cAAc;AACjE,SAASC,SAAS,QAAQ,qBAAqB;AAC/C,OAAOC,mBAAmB,MAAM,mCAAmC;AACnE,SAASC,KAAK,QAAQ,2BAA2B;AACjD,SAASC,IAAI,QAAQ,YAAY;AAEjC,SAASC,OAAO,QAAQ,kCAAkC;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAU3D,MAAMC,qBAAsC,GAAGA,CAAC;EAAEC,cAAc;EAAEC,SAAS;EAAEC,WAAW;EAAEC,UAAU;EAAEC;AAAM,CAAC,KAAK;EAChH,MAAM;IACJC,MAAM,EAAE;MAAEC,WAAW;MAAEC,iBAAiB;MAAEC,sBAAsB;MAAEC;IAAO;EAC3E,CAAC,GAAGL,KAAK;EAET,MAAMM,oBAAoB,GAAG,CAAC,GAAG,IAAIC,GAAG,CAACX,cAAc,CAAC,CAAC;EACzD,MAAMY,YAAY,GAAGC,KAAK,CAAC,CAAC,CAAC,CAC1BC,IAAI,CAAC,IAAI,CAAC,CACVC,GAAG,CAAC,MAAMC,IA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GAAG,CAAC;IACvBqD,YAAY,EAAErD,KAAK,CAAC,CAAC,CAAC;IACtB0E,QAAQ,EAAE1E,KAAK,CAAC,GAAG;EACrB,CAAC;EACD2D,QAAQ,EAAE;IACRS,QAAQ,EAAElE,OAAO,CAAC,EAAE,CAAC;IACrBmE,UAAU,EAAE,KAAK;IACjBM,UAAU,EAAE;EACd,CAAC;EACDjB,QAAQ,EAAE;IACRN,WAAW,EAAEpD,KAAK,CAAC,CAAC;EACtB,CAAC;EACD4E,YAAY,EAAE;IACZ5B,MAAM,EAAEhD,KAAK,CAAC,EAAE,CAAC;IACjBiD,YAAY,EAAEjD,KAAK,CAAC,EAAE,CAAC;IACvBoD,WAAW,EAAEpD,KAAK,CAAC,GAAG,CAAC;IACvBqD,YAAY,EAAErD,KAAK,CAAC,CAAC;EACvB,CAAC;EACD8D,aAAa,EAAE;IACbM,QAAQ,EAAElE,OAAO,CAAC,EAAE,CAAC;IACrB2E,SAAS,EAAE,QAAQ;IACnBC,OAAO,EAAE;EACX;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,182 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* @author Ashok Desai
|
|
5
|
+
* @lastModified jun 23 Jun 2025 at 11:40 AM
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
import React from 'react';
|
|
9
|
+
import { View, Pressable, StyleSheet } from 'react-native';
|
|
10
|
+
import SkeletonPlaceholder from 'react-native-skeleton-placeholder';
|
|
11
|
+
import FastImage from 'react-native-fast-image';
|
|
12
|
+
import { scale, verticalScale, moderateScale } from 'react-native-size-matters';
|
|
13
|
+
import { useTheme } from '../../../theme/hook/useTheme';
|
|
14
|
+
import { ThumbnailCard } from '../../Content/Card/components/ThumbnailCard';
|
|
15
|
+
import { Text } from '../../Text';
|
|
16
|
+
import { RFValue } from 'react-native-responsive-fontsize';
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* Configuration for SearchCard skeleton rendering.
|
|
20
|
+
*/
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* Props for SearchCard component.
|
|
24
|
+
*/
|
|
25
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
26
|
+
/**
|
|
27
|
+
* A reusable search result card with skeleton support for loading state.
|
|
28
|
+
*/
|
|
29
|
+
const SearchCard = ({
|
|
30
|
+
title,
|
|
31
|
+
thumbnail,
|
|
32
|
+
description,
|
|
33
|
+
category = 'Unknown',
|
|
34
|
+
isLoading = false,
|
|
35
|
+
onPress,
|
|
36
|
+
theme,
|
|
37
|
+
skeletonConfig
|
|
38
|
+
}) => {
|
|
39
|
+
const {
|
|
40
|
+
theme: appliedTheme
|
|
41
|
+
} = useTheme(theme);
|
|
42
|
+
const {
|
|
43
|
+
colors: {
|
|
44
|
+
textPrimary,
|
|
45
|
+
textSecondary,
|
|
46
|
+
skeletonBaseColor,
|
|
47
|
+
skeletonHighlightColor
|
|
48
|
+
}
|
|
49
|
+
} = appliedTheme;
|
|
50
|
+
const {
|
|
51
|
+
items = 5,
|
|
52
|
+
textWidths = ['80%', '100%', '70%', '50%', '40%']
|
|
53
|
+
} = skeletonConfig ?? {};
|
|
54
|
+
const renderSkeleton = () => /*#__PURE__*/_jsx(SkeletonPlaceholder, {
|
|
55
|
+
backgroundColor: skeletonBaseColor,
|
|
56
|
+
highlightColor: skeletonHighlightColor,
|
|
57
|
+
borderRadius: scale(8),
|
|
58
|
+
children: /*#__PURE__*/_jsxs(View, {
|
|
59
|
+
style: styles.card,
|
|
60
|
+
children: [/*#__PURE__*/_jsx(View, {
|
|
61
|
+
style: styles.imageContainer,
|
|
62
|
+
children: /*#__PURE__*/_jsx(SkeletonPlaceholder.Item, {
|
|
63
|
+
width: scale(150),
|
|
64
|
+
height: verticalScale(80),
|
|
65
|
+
borderRadius: scale(8)
|
|
66
|
+
})
|
|
67
|
+
}), /*#__PURE__*/_jsx(View, {
|
|
68
|
+
style: [styles.textContainer, {
|
|
69
|
+
marginTop: verticalScale(3)
|
|
70
|
+
}],
|
|
71
|
+
children: Array.from({
|
|
72
|
+
length: items
|
|
73
|
+
}).map((_, lineIdx) => {
|
|
74
|
+
const rawWidth = textWidths[lineIdx] ?? '90%';
|
|
75
|
+
const resolvedWidth = typeof rawWidth === 'string' ? rawWidth : `${Math.min(rawWidth, 100)}%`;
|
|
76
|
+
return /*#__PURE__*/_jsx(SkeletonPlaceholder.Item, {
|
|
77
|
+
width: resolvedWidth,
|
|
78
|
+
height: moderateScale(12),
|
|
79
|
+
borderRadius: 4,
|
|
80
|
+
marginBottom: verticalScale(4)
|
|
81
|
+
}, `skeleton-line-${lineIdx}`);
|
|
82
|
+
})
|
|
83
|
+
})]
|
|
84
|
+
})
|
|
85
|
+
});
|
|
86
|
+
if (isLoading) return renderSkeleton();
|
|
87
|
+
return /*#__PURE__*/_jsxs(Pressable, {
|
|
88
|
+
onPress: onPress,
|
|
89
|
+
style: ({
|
|
90
|
+
pressed
|
|
91
|
+
}) => [styles.card, {
|
|
92
|
+
opacity: pressed ? 0.9 : 1
|
|
93
|
+
}],
|
|
94
|
+
accessibilityRole: "button",
|
|
95
|
+
accessibilityLabel: title,
|
|
96
|
+
disabled: !onPress,
|
|
97
|
+
children: [/*#__PURE__*/_jsx(View, {
|
|
98
|
+
style: styles.imageContainer,
|
|
99
|
+
children: /*#__PURE__*/_jsx(ThumbnailCard, {
|
|
100
|
+
thumbnailUri: thumbnail,
|
|
101
|
+
theme: appliedTheme,
|
|
102
|
+
borderRadius: scale(8),
|
|
103
|
+
resizeMode: FastImage.resizeMode.cover,
|
|
104
|
+
wrapperStyle: styles.thumbnail,
|
|
105
|
+
isLoading: false
|
|
106
|
+
})
|
|
107
|
+
}), /*#__PURE__*/_jsxs(View, {
|
|
108
|
+
style: styles.textContainer,
|
|
109
|
+
children: [/*#__PURE__*/_jsx(Text, {
|
|
110
|
+
style: styles.title,
|
|
111
|
+
color: textPrimary,
|
|
112
|
+
numberOfLines: 1,
|
|
113
|
+
accessibilityLabel: `Title: ${title}`,
|
|
114
|
+
children: title
|
|
115
|
+
}), /*#__PURE__*/_jsx(Text, {
|
|
116
|
+
style: styles.description,
|
|
117
|
+
color: textSecondary,
|
|
118
|
+
numberOfLines: 3,
|
|
119
|
+
accessibilityLabel: `Description: ${description}`,
|
|
120
|
+
children: description
|
|
121
|
+
}), /*#__PURE__*/_jsx(Text, {
|
|
122
|
+
style: styles.categoryTextLine,
|
|
123
|
+
color: textSecondary,
|
|
124
|
+
numberOfLines: 1,
|
|
125
|
+
accessibilityLabel: `Category: ${category}`,
|
|
126
|
+
children: category
|
|
127
|
+
})]
|
|
128
|
+
})]
|
|
129
|
+
});
|
|
130
|
+
};
|
|
131
|
+
export default SearchCard;
|
|
132
|
+
const styles = StyleSheet.create({
|
|
133
|
+
card: {
|
|
134
|
+
flexDirection: 'row',
|
|
135
|
+
alignItems: 'flex-start',
|
|
136
|
+
marginBottom: verticalScale(5)
|
|
137
|
+
},
|
|
138
|
+
imageContainer: {
|
|
139
|
+
width: scale(150),
|
|
140
|
+
height: verticalScale(80),
|
|
141
|
+
borderRadius: scale(8),
|
|
142
|
+
overflow: 'hidden',
|
|
143
|
+
justifyContent: 'center',
|
|
144
|
+
alignItems: 'center'
|
|
145
|
+
},
|
|
146
|
+
thumbnail: {
|
|
147
|
+
width: '100%',
|
|
148
|
+
height: '100%',
|
|
149
|
+
borderRadius: scale(8),
|
|
150
|
+
position: 'absolute',
|
|
151
|
+
top: 0,
|
|
152
|
+
left: 0
|
|
153
|
+
},
|
|
154
|
+
textContainer: {
|
|
155
|
+
flex: 1,
|
|
156
|
+
height: verticalScale(80),
|
|
157
|
+
marginLeft: scale(5),
|
|
158
|
+
justifyContent: 'flex-start'
|
|
159
|
+
},
|
|
160
|
+
title: {
|
|
161
|
+
fontSize: RFValue(10),
|
|
162
|
+
fontWeight: '600',
|
|
163
|
+
lineHeight: moderateScale(20),
|
|
164
|
+
marginTop: verticalScale(2)
|
|
165
|
+
},
|
|
166
|
+
description: {
|
|
167
|
+
fontSize: RFValue(9),
|
|
168
|
+
fontWeight: '400',
|
|
169
|
+
lineHeight: moderateScale(16),
|
|
170
|
+
marginLeft: scale(1),
|
|
171
|
+
marginBottom: verticalScale(2),
|
|
172
|
+
flexShrink: 1
|
|
173
|
+
},
|
|
174
|
+
categoryTextLine: {
|
|
175
|
+
fontSize: RFValue(9),
|
|
176
|
+
textTransform: 'capitalize',
|
|
177
|
+
fontWeight: '500',
|
|
178
|
+
marginLeft: scale(1),
|
|
179
|
+
lineHeight: moderateScale(16)
|
|
180
|
+
}
|
|
181
|
+
});
|
|
182
|
+
//# sourceMappingURL=SearchCard.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","View","Pressable","StyleSheet","SkeletonPlaceholder","FastImage","scale","verticalScale","moderateScale","useTheme","ThumbnailCard","Text","RFValue","jsx","_jsx","jsxs","_jsxs","SearchCard","title","thumbnail","description","category","isLoading","onPress","theme","skeletonConfig","appliedTheme","colors","textPrimary","textSecondary","skeletonBaseColor","skeletonHighlightColor","items","textWidths","renderSkeleton","backgroundColor","highlightColor","borderRadius","children","style","styles","card","imageContainer","Item","width","height","textContainer","marginTop","Array","from","length","map","_","lineIdx","rawWidth","resolvedWidth","Math","min","marginBottom","pressed","opacity","accessibilityRole","accessibilityLabel","disabled","thumbnailUri","resizeMode","cover","wrapperStyle","color","numberOfLines","categoryTextLine","create","flexDirection","alignItems","overflow","justifyContent","position","top","left","flex","marginLeft","fontSize","fontWeight","lineHeight","flexShrink","textTransform"],"sourceRoot":"../../../../../src","sources":["components/Search/components/SearchCard.tsx"],"mappings":";;AAAA;AACA;AACA;AACA;;AAEA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,IAAI,EAAEC,SAAS,EAAEC,UAAU,QAA6B,cAAc;AAC/E,OAAOC,mBAAmB,MAAM,mCAAmC;AACnE,OAAOC,SAAS,MAAM,yBAAyB;AAC/C,SAAS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EAAE,YAAY;IAC3BH,UAAU,EAAE,KAAK;IACjBF,UAAU,EAAE1E,KAAK,CAAC,CAAC,CAAC;IACpB6E,UAAU,EAAE3E,aAAa,CAAC,EAAE;EAC9B;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* @author Ashok Desai
|
|
5
|
+
* @lastModified jun 23 Jun 2025 at 11:40 AM
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
import SearchOne from './One';
|
|
9
|
+
import SearchCard from './components/SearchCard';
|
|
10
|
+
export const Search = {
|
|
11
|
+
One: SearchOne,
|
|
12
|
+
Two: SearchCard
|
|
13
|
+
};
|
|
14
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["SearchOne","SearchCard","Search","One","Two"],"sourceRoot":"../../../../src","sources":["components/Search/index.ts"],"mappings":";;AAAA;AACA;AACA;AACA;;AAEA,OAAOA,SAAS,MAAM,OAAO;AAE7B,OAAOC,UAAU,MAAM,yBAAyB;AAEhD,OAAO,MAAMC,MAAM,GAAG;EACpBC,GAAG,EAAEH,SAAS;EACdI,GAAG,EAAEH;AACP,CAAC","ignoreList":[]}
|