@zezosoft/zezo-ott-react-native-ui-kit 0.1.0 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +0 -0
- package/README.md +46 -15
- package/lib/module/Styles/globalStyles.js +76 -0
- package/lib/module/Styles/globalStyles.js.map +1 -0
- package/lib/module/assets/animations/135037-payment-processing-error.json +0 -0
- package/lib/module/assets/animations/7227-vui-animation.json +0 -0
- package/lib/module/assets/animations/succesfull-payment.json +0 -0
- package/lib/module/assets/animations/voice-icon.json +0 -0
- package/lib/module/assets/img/back.png +0 -0
- package/lib/module/assets/img/bottom-panel.png +0 -0
- package/lib/module/assets/img/camera.png +0 -0
- package/lib/module/assets/img/camera2.png +0 -0
- package/lib/module/assets/img/h.svg +0 -0
- package/lib/module/assets/img/home.png +0 -0
- package/lib/module/assets/img/lock.png +0 -0
- package/lib/module/assets/img/play.png +0 -0
- package/lib/module/assets/img/profile.jpg +0 -0
- package/lib/module/assets/img/qr-code.png +0 -0
- package/lib/module/assets/img/shadow.png +0 -0
- package/lib/module/assets/img/shadow2.png +0 -0
- package/lib/module/assets/img/user.png +0 -0
- package/lib/module/assets/svg/Account.svg +4 -0
- package/lib/module/assets/svg/Favourite.svg +14 -0
- package/lib/module/assets/svg/Upcoming.svg +4 -0
- package/lib/module/assets/svg/content-error.svg +0 -0
- package/lib/module/assets/svg/download.svg +0 -0
- package/lib/module/assets/svg/eye-off.svg +10 -0
- package/lib/module/assets/svg/favorites.svg +0 -0
- package/lib/module/assets/svg/home.svg +0 -0
- package/lib/module/assets/svg/home1.svg +3 -0
- package/lib/module/assets/svg/menu-bar.svg +0 -0
- package/lib/module/assets/svg/my-space.svg +0 -0
- package/lib/module/assets/svg/play-icon-with-bg.svg +0 -0
- package/lib/module/assets/svg/profile.svg +4 -0
- package/lib/module/assets/svg/search.svg +0 -0
- package/lib/module/assets/svg/search1.svg +4 -0
- package/lib/module/assets/svg/server-error.svg +0 -0
- package/lib/module/components/Account/Account.js +254 -0
- package/lib/module/components/Account/Account.js.map +1 -0
- package/lib/module/components/Account/index.js +4 -0
- package/lib/module/components/Account/index.js.map +1 -0
- package/lib/module/components/Auth/ForgotPassword/ForgotPassword.js +205 -0
- package/lib/module/components/Auth/ForgotPassword/ForgotPassword.js.map +1 -0
- package/lib/module/components/Auth/Login/LoginWithEmail.js +292 -0
- package/lib/module/components/Auth/Login/LoginWithEmail.js.map +1 -0
- package/lib/module/components/Auth/Login/LoginWithPhone.js +199 -0
- package/lib/module/components/Auth/Login/LoginWithPhone.js.map +1 -0
- package/lib/module/components/Auth/OTP/OTP.js +255 -0
- package/lib/module/components/Auth/OTP/OTP.js.map +1 -0
- package/lib/module/components/Auth/SignUp/SignUp.js +329 -0
- package/lib/module/components/Auth/SignUp/SignUp.js.map +1 -0
- package/lib/module/components/Auth/index.js +21 -0
- package/lib/module/components/Auth/index.js.map +1 -0
- package/lib/module/components/BackgroundLayout/BackgroundLayout.js +104 -0
- package/lib/module/components/BackgroundLayout/BackgroundLayout.js.map +1 -0
- package/lib/module/components/BlogView/BlogView.js +192 -0
- package/lib/module/components/BlogView/BlogView.js.map +1 -0
- package/lib/module/components/BlogView/index.js +10 -0
- package/lib/module/components/BlogView/index.js.map +1 -0
- package/lib/module/components/Button/BackBtn.js +72 -0
- package/lib/module/components/Button/BackBtn.js.map +1 -0
- package/lib/module/components/Button/MenuBtn.js +167 -0
- package/lib/module/components/Button/MenuBtn.js.map +1 -0
- package/lib/module/components/Button/PrimaryBtn.js +82 -0
- package/lib/module/components/Button/PrimaryBtn.js.map +1 -0
- package/lib/module/components/Button/TextButton.js +88 -0
- package/lib/module/components/Button/TextButton.js.map +1 -0
- package/lib/module/components/Button/index.js +17 -0
- package/lib/module/components/Button/index.js.map +1 -0
- package/lib/module/components/Content/Card/Category/Category.js +181 -0
- package/lib/module/components/Content/Card/Category/Category.js.map +1 -0
- package/lib/module/components/Content/Card/NowWatching/NowWatching.js +354 -0
- package/lib/module/components/Content/Card/NowWatching/NowWatching.js.map +1 -0
- package/lib/module/components/Content/Card/Sliders/Styles/One.js +313 -0
- package/lib/module/components/Content/Card/Sliders/Styles/One.js.map +1 -0
- package/lib/module/components/Content/Card/Sliders/Styles/Two.js +198 -0
- package/lib/module/components/Content/Card/Sliders/Styles/Two.js.map +1 -0
- package/lib/module/components/{Section → Content}/Card/Sliders/index.js +4 -2
- package/lib/module/components/Content/Card/Sliders/index.js.map +1 -0
- package/lib/module/components/Content/Card/Styles/Five.js +197 -0
- package/lib/module/components/Content/Card/Styles/Five.js.map +1 -0
- package/lib/module/components/Content/Card/Styles/Four.js +202 -0
- package/lib/module/components/Content/Card/Styles/Four.js.map +1 -0
- package/lib/module/components/Content/Card/Styles/One.js +237 -0
- package/lib/module/components/Content/Card/Styles/One.js.map +1 -0
- package/lib/module/components/Content/Card/Styles/RotateInOut.js +215 -0
- package/lib/module/components/Content/Card/Styles/RotateInOut.js.map +1 -0
- package/lib/module/components/Content/Card/Styles/Six.js +207 -0
- package/lib/module/components/Content/Card/Styles/Six.js.map +1 -0
- package/lib/module/components/Content/Card/Styles/Three.js +213 -0
- package/lib/module/components/Content/Card/Styles/Three.js.map +1 -0
- package/lib/module/components/Content/Card/Styles/TopTen.js +289 -0
- package/lib/module/components/Content/Card/Styles/TopTen.js.map +1 -0
- package/lib/module/components/Content/Card/Styles/Two.js +215 -0
- package/lib/module/components/Content/Card/Styles/Two.js.map +1 -0
- package/lib/module/components/Content/Card/components/CardPoster.js +175 -0
- package/lib/module/components/Content/Card/components/CardPoster.js.map +1 -0
- package/lib/module/components/Content/Card/components/NavigateToMore.js +56 -0
- package/lib/module/components/Content/Card/components/NavigateToMore.js.map +1 -0
- package/lib/module/components/Content/Card/components/NoContentFallback.js +115 -0
- package/lib/module/components/Content/Card/components/NoContentFallback.js.map +1 -0
- package/lib/module/components/Content/Card/components/ShowAllButton.js +71 -0
- package/lib/module/components/Content/Card/components/ShowAllButton.js.map +1 -0
- package/lib/module/components/Content/Card/components/ThumbnailCard.js +128 -0
- package/lib/module/components/Content/Card/components/ThumbnailCard.js.map +1 -0
- package/lib/module/components/Content/Card/index.js +32 -0
- package/lib/module/components/Content/Card/index.js.map +1 -0
- package/lib/module/components/Content/Content.js +113 -0
- package/lib/module/components/Content/Content.js.map +1 -0
- package/lib/module/components/Content/Sections.js +145 -0
- package/lib/module/components/Content/Sections.js.map +1 -0
- package/lib/module/components/ContentView/ContentView.js +128 -0
- package/lib/module/components/ContentView/ContentView.js.map +1 -0
- package/lib/module/components/ContentView/components/AboutSection.js +114 -0
- package/lib/module/components/ContentView/components/AboutSection.js.map +1 -0
- package/lib/module/components/ContentView/components/CastCard.js +190 -0
- package/lib/module/components/ContentView/components/CastCard.js.map +1 -0
- package/lib/module/components/ContentView/components/EpisodeCard.js +373 -0
- package/lib/module/components/ContentView/components/EpisodeCard.js.map +1 -0
- package/lib/module/components/ContentView/components/GenreTags.js +77 -0
- package/lib/module/components/ContentView/components/GenreTags.js.map +1 -0
- package/lib/module/components/ContentView/components/HeroBanner.js +222 -0
- package/lib/module/components/ContentView/components/HeroBanner.js.map +1 -0
- package/lib/module/components/ContentView/components/PlayButton.js +40 -0
- package/lib/module/components/ContentView/components/PlayButton.js.map +1 -0
- package/lib/module/components/ContentView/components/Title.js +103 -0
- package/lib/module/components/ContentView/components/Title.js.map +1 -0
- package/lib/module/components/ContentView/components/TrailerButton.js +53 -0
- package/lib/module/components/ContentView/components/TrailerButton.js.map +1 -0
- package/lib/module/components/ContentView/index.js +9 -0
- package/lib/module/components/ContentView/index.js.map +1 -0
- package/lib/module/components/Headers/AppHeader.js +101 -0
- package/lib/module/components/Headers/AppHeader.js.map +1 -0
- package/lib/module/components/Headers/One.js +31 -28
- package/lib/module/components/Headers/One.js.map +1 -1
- package/lib/module/components/Headers/Three.js +7 -12
- package/lib/module/components/Headers/Three.js.map +1 -1
- package/lib/module/components/Headers/Two.js +8 -8
- package/lib/module/components/Headers/Two.js.map +1 -1
- package/lib/module/components/Headers/index.js +4 -4
- package/lib/module/components/Headers/index.js.map +1 -1
- package/lib/module/components/Icons/AlertIcon.js.map +1 -1
- package/lib/module/components/Icons/DeviceIcon.js.map +1 -1
- package/lib/module/components/Icons/ForgotPasswordMessageIcon.js.map +1 -1
- package/lib/module/components/Icons/ForgotPasswordMessageIconTwo.js.map +1 -1
- package/lib/module/components/Icons/NewIndex.js +13 -1
- package/lib/module/components/Icons/NewIndex.js.map +1 -1
- package/lib/module/components/Icons/ResendOTP.js.map +1 -1
- package/lib/module/components/Input/Input.js +17 -0
- package/lib/module/components/Input/Input.js.map +1 -0
- package/lib/module/components/Input/InputOne.js +124 -0
- package/lib/module/components/Input/InputOne.js.map +1 -0
- package/lib/module/components/Input/InputTwo.js +152 -0
- package/lib/module/components/Input/InputTwo.js.map +1 -0
- package/lib/module/components/Input/PhoneNumberInput.js +284 -0
- package/lib/module/components/Input/PhoneNumberInput.js.map +1 -0
- package/lib/module/components/Keyboard/HideKeyboard.js +41 -0
- package/lib/module/components/Keyboard/HideKeyboard.js.map +1 -0
- package/lib/module/components/Loader/Loader.js.map +1 -1
- package/lib/module/components/Logo/Logo.js +42 -5
- package/lib/module/components/Logo/Logo.js.map +1 -1
- package/lib/module/components/Search/One.js +191 -0
- package/lib/module/components/Search/One.js.map +1 -0
- package/lib/module/components/Search/components/RecentSearchesSection.js +160 -0
- package/lib/module/components/Search/components/RecentSearchesSection.js.map +1 -0
- package/lib/module/components/Search/components/SearchCard.js +181 -0
- package/lib/module/components/Search/components/SearchCard.js.map +1 -0
- package/lib/module/components/Search/index.js +14 -0
- package/lib/module/components/Search/index.js.map +1 -0
- package/lib/module/components/Settings/AppSettings.js +225 -0
- package/lib/module/components/Settings/AppSettings.js.map +1 -0
- package/lib/module/components/Settings/index.js +4 -0
- package/lib/module/components/Settings/index.js.map +1 -0
- package/lib/module/components/SplashScreen/SplashScreen.js +109 -0
- package/lib/module/components/SplashScreen/SplashScreen.js.map +1 -0
- package/lib/module/components/SplashScreen/components/SplashImage/SplashImage.js +68 -0
- package/lib/module/components/SplashScreen/components/SplashImage/SplashImage.js.map +1 -0
- package/lib/module/components/SplashScreen/components/SplashLottie/SplashLottie.js +66 -0
- package/lib/module/components/SplashScreen/components/SplashLottie/SplashLottie.js.map +1 -0
- package/lib/module/components/SplashScreen/components/SplashVideo/SplashVideo.js +68 -0
- package/lib/module/components/SplashScreen/components/SplashVideo/SplashVideo.js.map +1 -0
- package/lib/module/components/SplashScreen/index.js +9 -0
- package/lib/module/components/SplashScreen/index.js.map +1 -0
- package/lib/module/components/Subscription/SubOne.js +332 -0
- package/lib/module/components/Subscription/SubOne.js.map +1 -0
- package/lib/module/components/Subscription/index.js +13 -0
- package/lib/module/components/Subscription/index.js.map +1 -0
- package/lib/module/components/TabBar/One.js +144 -0
- package/lib/module/components/TabBar/One.js.map +1 -0
- package/lib/module/components/TabBar/Three.js +127 -0
- package/lib/module/components/TabBar/Three.js.map +1 -0
- package/lib/module/components/TabBar/Two.js +131 -0
- package/lib/module/components/TabBar/Two.js.map +1 -0
- package/lib/module/components/TabBar/index.js +17 -0
- package/lib/module/components/TabBar/index.js.map +1 -0
- package/lib/module/components/Text/Text.js +43 -0
- package/lib/module/components/Text/Text.js.map +1 -0
- package/lib/module/components/Text/index.js +8 -0
- package/lib/module/components/Text/index.js.map +1 -0
- package/lib/module/components/User/DeviceSessions/DeviceSessions.js +314 -0
- package/lib/module/components/User/DeviceSessions/DeviceSessions.js.map +1 -0
- package/lib/module/components/User/WatchHistory/WatchHistory.js +118 -0
- package/lib/module/components/User/WatchHistory/WatchHistory.js.map +1 -0
- package/lib/module/components/User/WatchLater/WatchLater.js +272 -0
- package/lib/module/components/User/WatchLater/WatchLater.js.map +1 -0
- package/lib/module/components/User/components/UserAvatar.js +44 -0
- package/lib/module/components/User/components/UserAvatar.js.map +1 -0
- package/lib/module/components/User/components/UserSection.js +163 -0
- package/lib/module/components/User/components/UserSection.js.map +1 -0
- package/lib/module/components/User/index.js +12 -0
- package/lib/module/components/User/index.js.map +1 -0
- package/lib/module/components/View/View.js +24 -0
- package/lib/module/components/View/View.js.map +1 -0
- package/lib/module/components/View/index.js +8 -0
- package/lib/module/components/View/index.js.map +1 -0
- package/lib/module/components/index.js +19 -5
- package/lib/module/components/index.js.map +1 -1
- package/lib/module/components/layout/SafeAreaWrapper.js +33 -0
- package/lib/module/components/layout/SafeAreaWrapper.js.map +1 -0
- package/lib/module/components/layout/index.js +4 -0
- package/lib/module/components/layout/index.js.map +1 -0
- package/lib/module/constants/dummySections.js +38 -0
- package/lib/module/constants/dummySections.js.map +1 -0
- package/lib/module/hooks/useDebounce.js +11 -0
- package/lib/module/hooks/useDebounce.js.map +1 -0
- package/lib/module/hooks/useInitSplashCacheSync.js +112 -0
- package/lib/module/hooks/useInitSplashCacheSync.js.map +1 -0
- package/lib/module/hooks/useKeyboard.js +33 -0
- package/lib/module/hooks/useKeyboard.js.map +1 -0
- package/lib/module/hooks/usePaginatedSection.js +57 -0
- package/lib/module/hooks/usePaginatedSection.js.map +1 -0
- package/lib/module/index.js +3 -2
- package/lib/module/index.js.map +1 -1
- package/lib/module/store/RecentSearchesStore.js +65 -0
- package/lib/module/store/RecentSearchesStore.js.map +1 -0
- package/lib/module/store/splashStore.js +69 -0
- package/lib/module/store/splashStore.js.map +1 -0
- package/lib/module/theme/ThemeProvider.js +87 -0
- package/lib/module/theme/ThemeProvider.js.map +1 -0
- package/lib/module/theme/index.js +9 -0
- package/lib/module/theme/index.js.map +1 -0
- package/lib/module/theme/themes.js +124 -90
- package/lib/module/theme/themes.js.map +1 -1
- package/lib/module/types/content/content-view.types.js +4 -0
- package/lib/module/types/content/content-view.types.js.map +1 -0
- package/lib/module/types/content/index.js +2 -0
- package/lib/module/types/content/index.js.map +1 -0
- package/lib/module/types/hook/index.js +2 -0
- package/lib/module/types/hook/index.js.map +1 -0
- package/lib/module/types/hook/usePaginatedSetion.js +4 -0
- package/lib/module/types/hook/usePaginatedSetion.js.map +1 -0
- package/lib/module/types/index.js +0 -3
- package/lib/module/types/index.js.map +1 -1
- package/lib/module/types/sections/index.js +4 -0
- package/lib/module/types/sections/index.js.map +1 -0
- package/lib/module/utils/Display.js +22 -0
- package/lib/module/utils/Display.js.map +1 -0
- package/lib/module/utils/PlatformSelector.js +31 -0
- package/lib/module/utils/PlatformSelector.js.map +1 -0
- package/lib/module/utils/SizeMatters.js +9 -0
- package/lib/module/utils/SizeMatters.js.map +1 -0
- package/lib/typescript/src/Styles/globalStyles.d.ts +71 -0
- package/lib/typescript/src/Styles/globalStyles.d.ts.map +1 -0
- package/lib/typescript/src/components/Account/Account.d.ts +56 -0
- package/lib/typescript/src/components/Account/Account.d.ts.map +1 -0
- package/lib/typescript/src/components/Account/index.d.ts +2 -0
- package/lib/typescript/src/components/Account/index.d.ts.map +1 -0
- package/lib/typescript/src/components/Auth/ForgotPassword/ForgotPassword.d.ts +48 -0
- package/lib/typescript/src/components/Auth/ForgotPassword/ForgotPassword.d.ts.map +1 -0
- package/lib/typescript/src/components/Auth/Login/LoginWithEmail.d.ts +65 -0
- package/lib/typescript/src/components/Auth/Login/LoginWithEmail.d.ts.map +1 -0
- package/lib/typescript/src/components/Auth/Login/LoginWithPhone.d.ts +53 -0
- package/lib/typescript/src/components/Auth/Login/LoginWithPhone.d.ts.map +1 -0
- package/lib/typescript/src/components/Auth/OTP/OTP.d.ts +58 -0
- package/lib/typescript/src/components/Auth/OTP/OTP.d.ts.map +1 -0
- package/lib/typescript/src/components/Auth/SignUp/SignUp.d.ts +61 -0
- package/lib/typescript/src/components/Auth/SignUp/SignUp.d.ts.map +1 -0
- package/lib/typescript/src/components/Auth/index.d.ts +192 -0
- package/lib/typescript/src/components/Auth/index.d.ts.map +1 -0
- package/lib/typescript/src/components/BackgroundLayout/BackgroundLayout.d.ts +15 -0
- package/lib/typescript/src/components/BackgroundLayout/BackgroundLayout.d.ts.map +1 -0
- package/lib/typescript/src/components/BlogView/BlogView.d.ts +28 -0
- package/lib/typescript/src/components/BlogView/BlogView.d.ts.map +1 -0
- package/lib/typescript/src/components/BlogView/index.d.ts +7 -0
- package/lib/typescript/src/components/BlogView/index.d.ts.map +1 -0
- package/lib/typescript/src/components/Button/BackBtn.d.ts +18 -0
- package/lib/typescript/src/components/Button/BackBtn.d.ts.map +1 -0
- package/lib/typescript/src/components/Button/MenuBtn.d.ts +24 -0
- package/lib/typescript/src/components/Button/MenuBtn.d.ts.map +1 -0
- package/lib/typescript/src/components/Button/PrimaryBtn.d.ts +20 -0
- package/lib/typescript/src/components/Button/PrimaryBtn.d.ts.map +1 -0
- package/lib/typescript/src/components/Button/TextButton.d.ts +17 -0
- package/lib/typescript/src/components/Button/TextButton.d.ts.map +1 -0
- package/lib/typescript/src/components/Button/index.d.ts +38 -0
- package/lib/typescript/src/components/Button/index.d.ts.map +1 -0
- package/lib/typescript/src/components/Content/Card/Category/Category.d.ts +26 -0
- package/lib/typescript/src/components/Content/Card/Category/Category.d.ts.map +1 -0
- package/lib/typescript/src/components/Content/Card/NowWatching/NowWatching.d.ts +49 -0
- package/lib/typescript/src/components/Content/Card/NowWatching/NowWatching.d.ts.map +1 -0
- package/lib/typescript/src/components/Content/Card/Sliders/Styles/One.d.ts +20 -0
- package/lib/typescript/src/components/Content/Card/Sliders/Styles/One.d.ts.map +1 -0
- package/lib/typescript/src/components/Content/Card/Sliders/Styles/Two.d.ts +18 -0
- package/lib/typescript/src/components/Content/Card/Sliders/Styles/Two.d.ts.map +1 -0
- package/lib/typescript/src/components/Content/Card/Sliders/index.d.ts +22 -0
- package/lib/typescript/src/components/Content/Card/Sliders/index.d.ts.map +1 -0
- package/lib/typescript/src/components/Content/Card/Styles/Five.d.ts +36 -0
- package/lib/typescript/src/components/Content/Card/Styles/Five.d.ts.map +1 -0
- package/lib/typescript/src/components/Content/Card/Styles/Four.d.ts +37 -0
- package/lib/typescript/src/components/Content/Card/Styles/Four.d.ts.map +1 -0
- package/lib/typescript/src/components/Content/Card/Styles/One.d.ts +37 -0
- package/lib/typescript/src/components/Content/Card/Styles/One.d.ts.map +1 -0
- package/lib/typescript/src/components/Content/Card/Styles/RotateInOut.d.ts +37 -0
- package/lib/typescript/src/components/Content/Card/Styles/RotateInOut.d.ts.map +1 -0
- package/lib/typescript/src/components/Content/Card/Styles/Six.d.ts +32 -0
- package/lib/typescript/src/components/Content/Card/Styles/Six.d.ts.map +1 -0
- package/lib/typescript/src/components/Content/Card/Styles/Three.d.ts +37 -0
- package/lib/typescript/src/components/Content/Card/Styles/Three.d.ts.map +1 -0
- package/lib/typescript/src/components/Content/Card/Styles/TopTen.d.ts +33 -0
- package/lib/typescript/src/components/Content/Card/Styles/TopTen.d.ts.map +1 -0
- package/lib/typescript/src/components/Content/Card/Styles/Two.d.ts +36 -0
- package/lib/typescript/src/components/Content/Card/Styles/Two.d.ts.map +1 -0
- package/lib/typescript/src/components/Content/Card/components/CardPoster.d.ts +20 -0
- package/lib/typescript/src/components/Content/Card/components/CardPoster.d.ts.map +1 -0
- package/lib/typescript/src/components/Content/Card/components/NavigateToMore.d.ts +17 -0
- package/lib/typescript/src/components/Content/Card/components/NavigateToMore.d.ts.map +1 -0
- package/lib/typescript/src/components/Content/Card/components/NoContentFallback.d.ts +18 -0
- package/lib/typescript/src/components/Content/Card/components/NoContentFallback.d.ts.map +1 -0
- package/lib/typescript/src/components/Content/Card/components/ShowAllButton.d.ts +20 -0
- package/lib/typescript/src/components/Content/Card/components/ShowAllButton.d.ts.map +1 -0
- package/lib/typescript/src/components/Content/Card/components/ThumbnailCard.d.ts +19 -0
- package/lib/typescript/src/components/Content/Card/components/ThumbnailCard.d.ts.map +1 -0
- package/lib/typescript/src/components/Content/Card/index.d.ts +237 -0
- package/lib/typescript/src/components/Content/Card/index.d.ts.map +1 -0
- package/lib/typescript/src/components/Content/Content.d.ts +58 -0
- package/lib/typescript/src/components/Content/Content.d.ts.map +1 -0
- package/lib/typescript/src/components/Content/Sections.d.ts +45 -0
- package/lib/typescript/src/components/Content/Sections.d.ts.map +1 -0
- package/lib/typescript/src/components/ContentView/ContentView.d.ts +15 -0
- package/lib/typescript/src/components/ContentView/ContentView.d.ts.map +1 -0
- package/lib/typescript/src/components/ContentView/components/AboutSection.d.ts +24 -0
- package/lib/typescript/src/components/ContentView/components/AboutSection.d.ts.map +1 -0
- package/lib/typescript/src/components/ContentView/components/CastCard.d.ts +32 -0
- package/lib/typescript/src/components/ContentView/components/CastCard.d.ts.map +1 -0
- package/lib/typescript/src/components/ContentView/components/EpisodeCard.d.ts +22 -0
- package/lib/typescript/src/components/ContentView/components/EpisodeCard.d.ts.map +1 -0
- package/lib/typescript/src/components/ContentView/components/GenreTags.d.ts +22 -0
- package/lib/typescript/src/components/ContentView/components/GenreTags.d.ts.map +1 -0
- package/lib/typescript/src/components/ContentView/components/HeroBanner.d.ts +8 -0
- package/lib/typescript/src/components/ContentView/components/HeroBanner.d.ts.map +1 -0
- package/lib/typescript/src/components/ContentView/components/PlayButton.d.ts +15 -0
- package/lib/typescript/src/components/ContentView/components/PlayButton.d.ts.map +1 -0
- package/lib/typescript/src/components/ContentView/components/Title.d.ts +24 -0
- package/lib/typescript/src/components/ContentView/components/Title.d.ts.map +1 -0
- package/lib/typescript/src/components/ContentView/components/TrailerButton.d.ts +18 -0
- package/lib/typescript/src/components/ContentView/components/TrailerButton.d.ts.map +1 -0
- package/lib/typescript/src/components/ContentView/index.d.ts +6 -0
- package/lib/typescript/src/components/ContentView/index.d.ts.map +1 -0
- package/lib/typescript/src/components/Headers/AppHeader.d.ts +20 -0
- package/lib/typescript/src/components/Headers/AppHeader.d.ts.map +1 -0
- package/lib/typescript/src/components/Headers/One.d.ts +4 -3
- package/lib/typescript/src/components/Headers/One.d.ts.map +1 -1
- package/lib/typescript/src/components/Headers/Three.d.ts +3 -3
- package/lib/typescript/src/components/Headers/Three.d.ts.map +1 -1
- package/lib/typescript/src/components/Headers/Two.d.ts +3 -3
- package/lib/typescript/src/components/Headers/Two.d.ts.map +1 -1
- package/lib/typescript/src/components/Headers/index.d.ts +2 -2
- package/lib/typescript/src/components/Icons/AlertIcon.d.ts +1 -1
- package/lib/typescript/src/components/Icons/AlertIcon.d.ts.map +1 -1
- package/lib/typescript/src/components/Icons/DeviceIcon.d.ts +1 -1
- package/lib/typescript/src/components/Icons/DeviceIcon.d.ts.map +1 -1
- package/lib/typescript/src/components/Icons/ForgotPasswordMessageIcon.d.ts.map +1 -1
- package/lib/typescript/src/components/Icons/ForgotPasswordMessageIconTwo.d.ts.map +1 -1
- package/lib/typescript/src/components/Icons/NewIndex.d.ts +6 -0
- package/lib/typescript/src/components/Icons/NewIndex.d.ts.map +1 -1
- package/lib/typescript/src/components/Icons/ResendOTP.d.ts.map +1 -1
- package/lib/typescript/src/components/Input/Input.d.ts +11 -0
- package/lib/typescript/src/components/Input/Input.d.ts.map +1 -0
- package/lib/typescript/src/components/Input/InputOne.d.ts +21 -0
- package/lib/typescript/src/components/Input/InputOne.d.ts.map +1 -0
- package/lib/typescript/src/components/Input/InputTwo.d.ts +25 -0
- package/lib/typescript/src/components/Input/InputTwo.d.ts.map +1 -0
- package/lib/typescript/src/components/Input/PhoneNumberInput.d.ts +26 -0
- package/lib/typescript/src/components/Input/PhoneNumberInput.d.ts.map +1 -0
- package/lib/typescript/src/components/Keyboard/HideKeyboard.d.ts +15 -0
- package/lib/typescript/src/components/Keyboard/HideKeyboard.d.ts.map +1 -0
- package/lib/typescript/src/components/Logo/Logo.d.ts +3 -0
- package/lib/typescript/src/components/Logo/Logo.d.ts.map +1 -1
- package/lib/typescript/src/components/Search/One.d.ts +46 -0
- package/lib/typescript/src/components/Search/One.d.ts.map +1 -0
- package/lib/typescript/src/components/Search/components/RecentSearchesSection.d.ts +16 -0
- package/lib/typescript/src/components/Search/components/RecentSearchesSection.d.ts.map +1 -0
- package/lib/typescript/src/components/Search/components/SearchCard.d.ts +32 -0
- package/lib/typescript/src/components/Search/components/SearchCard.d.ts.map +1 -0
- package/lib/typescript/src/components/Search/index.d.ts +11 -0
- package/lib/typescript/src/components/Search/index.d.ts.map +1 -0
- package/lib/typescript/src/components/Settings/AppSettings.d.ts +53 -0
- package/lib/typescript/src/components/Settings/AppSettings.d.ts.map +1 -0
- package/lib/typescript/src/components/Settings/index.d.ts +2 -0
- package/lib/typescript/src/components/Settings/index.d.ts.map +1 -0
- package/lib/typescript/src/components/SplashScreen/SplashScreen.d.ts +32 -0
- package/lib/typescript/src/components/SplashScreen/SplashScreen.d.ts.map +1 -0
- package/lib/typescript/src/components/SplashScreen/components/SplashImage/SplashImage.d.ts +17 -0
- package/lib/typescript/src/components/SplashScreen/components/SplashImage/SplashImage.d.ts.map +1 -0
- package/lib/typescript/src/components/SplashScreen/components/SplashLottie/SplashLottie.d.ts +17 -0
- package/lib/typescript/src/components/SplashScreen/components/SplashLottie/SplashLottie.d.ts.map +1 -0
- package/lib/typescript/src/components/SplashScreen/components/SplashVideo/SplashVideo.d.ts +19 -0
- package/lib/typescript/src/components/SplashScreen/components/SplashVideo/SplashVideo.d.ts.map +1 -0
- package/lib/typescript/src/components/SplashScreen/index.d.ts +6 -0
- package/lib/typescript/src/components/SplashScreen/index.d.ts.map +1 -0
- package/lib/typescript/src/components/Subscription/SubOne.d.ts +40 -0
- package/lib/typescript/src/components/Subscription/SubOne.d.ts.map +1 -0
- package/lib/typescript/src/components/Subscription/index.d.ts +30 -0
- package/lib/typescript/src/components/Subscription/index.d.ts.map +1 -0
- package/lib/typescript/src/components/TabBar/One.d.ts +33 -0
- package/lib/typescript/src/components/TabBar/One.d.ts.map +1 -0
- package/lib/typescript/src/components/TabBar/Three.d.ts +24 -0
- package/lib/typescript/src/components/TabBar/Three.d.ts.map +1 -0
- package/lib/typescript/src/components/TabBar/Two.d.ts +24 -0
- package/lib/typescript/src/components/TabBar/Two.d.ts.map +1 -0
- package/lib/typescript/src/components/TabBar/index.d.ts +14 -0
- package/lib/typescript/src/components/TabBar/index.d.ts.map +1 -0
- package/lib/typescript/src/components/Text/Text.d.ts +19 -0
- package/lib/typescript/src/components/Text/Text.d.ts.map +1 -0
- package/lib/typescript/src/components/Text/index.d.ts +6 -0
- package/lib/typescript/src/components/Text/index.d.ts.map +1 -0
- package/lib/typescript/src/components/User/DeviceSessions/DeviceSessions.d.ts +69 -0
- package/lib/typescript/src/components/User/DeviceSessions/DeviceSessions.d.ts.map +1 -0
- package/lib/typescript/src/components/User/WatchHistory/WatchHistory.d.ts +49 -0
- package/lib/typescript/src/components/User/WatchHistory/WatchHistory.d.ts.map +1 -0
- package/lib/typescript/src/components/User/WatchLater/WatchLater.d.ts +46 -0
- package/lib/typescript/src/components/User/WatchLater/WatchLater.d.ts.map +1 -0
- package/lib/typescript/src/components/User/components/UserAvatar.d.ts +10 -0
- package/lib/typescript/src/components/User/components/UserAvatar.d.ts.map +1 -0
- package/lib/typescript/src/components/User/components/UserSection.d.ts +30 -0
- package/lib/typescript/src/components/User/components/UserSection.d.ts.map +1 -0
- package/lib/typescript/src/components/User/index.d.ts +9 -0
- package/lib/typescript/src/components/User/index.d.ts.map +1 -0
- package/lib/typescript/src/components/View/View.d.ts +12 -0
- package/lib/typescript/src/components/View/View.d.ts.map +1 -0
- package/lib/typescript/src/components/View/index.d.ts +6 -0
- package/lib/typescript/src/components/View/index.d.ts.map +1 -0
- package/lib/typescript/src/components/index.d.ts +16 -2
- package/lib/typescript/src/components/index.d.ts.map +1 -1
- package/lib/typescript/src/components/layout/SafeAreaWrapper.d.ts +15 -0
- package/lib/typescript/src/components/layout/SafeAreaWrapper.d.ts.map +1 -0
- package/lib/typescript/src/components/layout/index.d.ts +2 -0
- package/lib/typescript/src/components/layout/index.d.ts.map +1 -0
- package/lib/typescript/src/constants/dummySections.d.ts +3 -0
- package/lib/typescript/src/constants/dummySections.d.ts.map +1 -0
- package/lib/typescript/src/hooks/useDebounce.d.ts +2 -0
- package/lib/typescript/src/hooks/useDebounce.d.ts.map +1 -0
- package/lib/typescript/src/hooks/useInitSplashCacheSync.d.ts +22 -0
- package/lib/typescript/src/hooks/useInitSplashCacheSync.d.ts.map +1 -0
- package/lib/typescript/src/hooks/useKeyboard.d.ts +9 -0
- package/lib/typescript/src/hooks/useKeyboard.d.ts.map +1 -0
- package/lib/typescript/src/hooks/usePaginatedSection.d.ts +11 -0
- package/lib/typescript/src/hooks/usePaginatedSection.d.ts.map +1 -0
- package/lib/typescript/src/index.d.ts +3 -1
- package/lib/typescript/src/index.d.ts.map +1 -1
- package/lib/typescript/src/store/RecentSearchesStore.d.ts +26 -0
- package/lib/typescript/src/store/RecentSearchesStore.d.ts.map +1 -0
- package/lib/typescript/src/store/splashStore.d.ts +29 -0
- package/lib/typescript/src/store/splashStore.d.ts.map +1 -0
- package/lib/typescript/src/theme/ThemeProvider.d.ts +19 -0
- package/lib/typescript/src/theme/ThemeProvider.d.ts.map +1 -0
- package/lib/typescript/src/theme/index.d.ts +6 -0
- package/lib/typescript/src/theme/index.d.ts.map +1 -0
- package/lib/typescript/src/theme/themes.d.ts +38 -25
- package/lib/typescript/src/theme/themes.d.ts.map +1 -1
- package/lib/typescript/src/types/content/content-view.types.d.ts +137 -0
- package/lib/typescript/src/types/content/content-view.types.d.ts.map +1 -0
- package/lib/typescript/src/types/{content.types.d.ts → content/index.d.ts} +89 -69
- package/lib/typescript/src/types/content/index.d.ts.map +1 -0
- package/lib/typescript/src/types/hook/index.d.ts +6 -0
- package/lib/typescript/src/types/hook/index.d.ts.map +1 -0
- package/lib/typescript/src/types/hook/usePaginatedSetion.d.ts +16 -0
- package/lib/typescript/src/types/hook/usePaginatedSetion.d.ts.map +1 -0
- package/lib/typescript/src/types/index.d.ts +7 -2
- package/lib/typescript/src/types/index.d.ts.map +1 -1
- package/lib/typescript/src/types/sections/index.d.ts +62 -0
- package/lib/typescript/src/types/sections/index.d.ts.map +1 -0
- package/lib/typescript/src/utils/Display.d.ts +8 -0
- package/lib/typescript/src/utils/Display.d.ts.map +1 -0
- package/lib/typescript/src/utils/PlatformSelector.d.ts +22 -0
- package/lib/typescript/src/utils/PlatformSelector.d.ts.map +1 -0
- package/lib/typescript/src/utils/SizeMatters.d.ts +7 -0
- package/lib/typescript/src/utils/SizeMatters.d.ts.map +1 -0
- package/package.json +73 -125
- package/src/Styles/globalStyles.ts +75 -0
- package/src/assets/animations/135037-payment-processing-error.json +0 -0
- package/src/assets/animations/7227-vui-animation.json +0 -0
- package/src/assets/animations/succesfull-payment.json +0 -0
- package/src/assets/animations/voice-icon.json +0 -0
- package/src/assets/img/back.png +0 -0
- package/src/assets/img/bottom-panel.png +0 -0
- package/src/assets/img/camera.png +0 -0
- package/src/assets/img/camera2.png +0 -0
- package/src/assets/img/h.svg +0 -0
- package/src/assets/img/home.png +0 -0
- package/src/assets/img/lock.png +0 -0
- package/src/assets/img/play.png +0 -0
- package/src/assets/img/profile.jpg +0 -0
- package/src/assets/img/qr-code.png +0 -0
- package/src/assets/img/shadow.png +0 -0
- package/src/assets/img/shadow2.png +0 -0
- package/src/assets/img/user.png +0 -0
- package/src/assets/svg/Account.svg +4 -0
- package/src/assets/svg/Favourite.svg +14 -0
- package/src/assets/svg/Upcoming.svg +4 -0
- package/src/assets/svg/content-error.svg +0 -0
- package/src/assets/svg/download.svg +0 -0
- package/src/assets/svg/eye-off.svg +10 -0
- package/src/assets/svg/favorites.svg +0 -0
- package/src/assets/svg/home.svg +0 -0
- package/src/assets/svg/home1.svg +3 -0
- package/src/assets/svg/menu-bar.svg +0 -0
- package/src/assets/svg/my-space.svg +0 -0
- package/src/assets/svg/play-icon-with-bg.svg +0 -0
- package/src/assets/svg/profile.svg +4 -0
- package/src/assets/svg/search.svg +0 -0
- package/src/assets/svg/search1.svg +4 -0
- package/src/assets/svg/server-error.svg +0 -0
- package/src/components/Account/Account.tsx +288 -0
- package/src/components/Account/index.ts +1 -0
- package/src/components/Auth/ForgotPassword/ForgotPassword.tsx +254 -0
- package/src/components/Auth/Login/LoginWithEmail.tsx +357 -0
- package/src/components/Auth/Login/LoginWithPhone.tsx +249 -0
- package/src/components/Auth/OTP/OTP.tsx +322 -0
- package/src/components/Auth/SignUp/SignUp.tsx +383 -0
- package/src/components/Auth/index.ts +20 -0
- package/src/components/BackgroundLayout/BackgroundLayout.tsx +114 -0
- package/src/components/BlogView/BlogView.tsx +195 -0
- package/src/components/BlogView/index.ts +8 -0
- package/src/components/Button/BackBtn.tsx +83 -0
- package/src/components/Button/MenuBtn.tsx +193 -0
- package/src/components/Button/PrimaryBtn.tsx +88 -0
- package/src/components/Button/TextButton.tsx +107 -0
- package/src/components/Button/index.ts +16 -0
- package/src/components/Content/Card/Category/Category.tsx +262 -0
- package/src/components/Content/Card/NowWatching/NowWatching.tsx +412 -0
- package/src/components/Content/Card/Sliders/Styles/One.tsx +320 -0
- package/src/components/Content/Card/Sliders/Styles/Two.tsx +209 -0
- package/src/components/{Section → Content}/Card/Sliders/index.ts +3 -1
- package/src/components/Content/Card/Styles/Five.tsx +240 -0
- package/src/components/Content/Card/Styles/Four.tsx +245 -0
- package/src/components/Content/Card/Styles/One.tsx +309 -0
- package/src/components/Content/Card/Styles/RotateInOut.tsx +280 -0
- package/src/components/Content/Card/Styles/Six.tsx +247 -0
- package/src/components/Content/Card/Styles/Three.tsx +279 -0
- package/src/components/Content/Card/Styles/TopTen.tsx +342 -0
- package/src/components/Content/Card/Styles/Two.tsx +288 -0
- package/src/components/Content/Card/components/CardPoster.tsx +204 -0
- package/src/components/Content/Card/components/NavigateToMore.tsx +58 -0
- package/src/components/Content/Card/components/NoContentFallback.tsx +129 -0
- package/src/components/Content/Card/components/ShowAllButton.tsx +83 -0
- package/src/components/Content/Card/components/ThumbnailCard.tsx +150 -0
- package/src/components/Content/Card/index.ts +30 -0
- package/src/components/Content/Content.tsx +187 -0
- package/src/components/Content/Sections.tsx +169 -0
- package/src/components/ContentView/ContentView.tsx +137 -0
- package/src/components/ContentView/components/AboutSection.tsx +138 -0
- package/src/components/ContentView/components/CastCard.tsx +212 -0
- package/src/components/ContentView/components/EpisodeCard.tsx +428 -0
- package/src/components/ContentView/components/GenreTags.tsx +92 -0
- package/src/components/ContentView/components/HeroBanner.tsx +244 -0
- package/src/components/ContentView/components/PlayButton.tsx +37 -0
- package/src/components/ContentView/components/Title.tsx +120 -0
- package/src/components/ContentView/components/TrailerButton.tsx +53 -0
- package/src/components/ContentView/index.ts +6 -0
- package/src/components/Headers/AppHeader.tsx +122 -0
- package/src/components/Headers/One.tsx +34 -28
- package/src/components/Headers/Three.tsx +12 -23
- package/src/components/Headers/Two.tsx +14 -22
- package/src/components/Headers/index.ts +2 -2
- package/src/components/Icons/AlertIcon.tsx +2 -13
- package/src/components/Icons/DeviceIcon.tsx +1 -7
- package/src/components/Icons/DoneIcon/DoneIcon.tsx +0 -0
- package/src/components/Icons/ForgotPasswordMessageIcon.tsx +3 -24
- package/src/components/Icons/ForgotPasswordMessageIconTwo.tsx +2 -16
- package/src/components/Icons/NewIndex.ts +12 -0
- package/src/components/Icons/ResendOTP.tsx +2 -12
- package/src/components/Input/Input.ts +16 -0
- package/src/components/Input/InputOne.tsx +160 -0
- package/src/components/Input/InputTwo.tsx +188 -0
- package/src/components/Input/PhoneNumberInput.tsx +382 -0
- package/src/components/Keyboard/HideKeyboard.tsx +56 -0
- package/src/components/Loader/Loader.tsx +2 -2
- package/src/components/Logo/Logo.tsx +69 -26
- package/src/components/Search/One.tsx +228 -0
- package/src/components/Search/components/RecentSearchesSection.tsx +153 -0
- package/src/components/Search/components/SearchCard.tsx +193 -0
- package/src/components/Search/index.ts +16 -0
- package/src/components/Settings/AppSettings.tsx +287 -0
- package/src/components/Settings/index.ts +1 -0
- package/src/components/SplashScreen/SplashScreen.tsx +131 -0
- package/src/components/SplashScreen/components/SplashImage/SplashImage.tsx +84 -0
- package/src/components/SplashScreen/components/SplashLottie/SplashLottie.tsx +83 -0
- package/src/components/SplashScreen/components/SplashVideo/SplashVideo.tsx +94 -0
- package/src/components/SplashScreen/index.ts +6 -0
- package/src/components/Subscription/SubOne.tsx +336 -0
- package/src/components/Subscription/index.ts +12 -0
- package/src/components/TabBar/One.tsx +199 -0
- package/src/components/TabBar/Three.tsx +134 -0
- package/src/components/TabBar/Two.tsx +151 -0
- package/src/components/TabBar/index.ts +20 -0
- package/src/components/Text/Text.tsx +57 -0
- package/src/components/Text/index.ts +5 -0
- package/src/components/User/DeviceSessions/DeviceSessions.tsx +373 -0
- package/src/components/User/WatchHistory/WatchHistory.tsx +175 -0
- package/src/components/User/WatchLater/WatchLater.tsx +290 -0
- package/src/components/User/components/UserAvatar.tsx +43 -0
- package/src/components/User/components/UserSection.tsx +181 -0
- package/src/components/User/index.ts +9 -0
- package/src/components/View/View.tsx +19 -0
- package/src/components/View/index.ts +5 -0
- package/src/components/index.ts +16 -2
- package/src/components/layout/SafeAreaWrapper.tsx +32 -0
- package/src/components/layout/index.ts +1 -0
- package/src/constants/dummySections.ts +45 -0
- package/src/hooks/useDebounce.ts +13 -0
- package/src/hooks/useInitSplashCacheSync.ts +159 -0
- package/src/hooks/useKeyboard.ts +33 -0
- package/src/hooks/usePaginatedSection.ts +74 -0
- package/src/index.ts +3 -1
- package/src/store/RecentSearchesStore.ts +74 -0
- package/src/store/splashStore.ts +91 -0
- package/src/theme/ThemeProvider.tsx +103 -0
- package/src/theme/index.ts +6 -0
- package/src/theme/themes.ts +210 -123
- package/src/types/content/content-view.types.ts +146 -0
- package/src/types/{content.types.ts → content/index.ts} +108 -77
- package/src/types/hook/index.ts +5 -0
- package/src/types/hook/usePaginatedSetion.ts +19 -0
- package/src/types/index.ts +7 -2
- package/src/types/sections/index.ts +81 -0
- package/src/utils/Display.ts +14 -0
- package/src/utils/PlatformSelector.ts +29 -0
- package/src/utils/SizeMatters.ts +7 -0
- package/lib/module/assets/img/profile.png +0 -0
- package/lib/module/components/Button/Button.js +0 -22
- package/lib/module/components/Button/Button.js.map +0 -1
- package/lib/module/components/Button/styles.js +0 -23
- package/lib/module/components/Button/styles.js.map +0 -1
- package/lib/module/components/Section/Card/Sliders/Styles/One.js +0 -123
- package/lib/module/components/Section/Card/Sliders/Styles/One.js.map +0 -1
- package/lib/module/components/Section/Card/Sliders/index.js.map +0 -1
- package/lib/module/components/Section/Card/Styles/One.js +0 -92
- package/lib/module/components/Section/Card/Styles/One.js.map +0 -1
- package/lib/module/components/Section/Card/index.js +0 -14
- package/lib/module/components/Section/Card/index.js.map +0 -1
- package/lib/module/components/Section/SectionType.js +0 -98
- package/lib/module/components/Section/SectionType.js.map +0 -1
- package/lib/module/components/Section/Sections.js +0 -72
- package/lib/module/components/Section/Sections.js.map +0 -1
- package/lib/module/package.json +0 -1
- package/lib/module/sample.test.js +0 -8
- package/lib/module/sample.test.js.map +0 -1
- package/lib/module/theme/useAppTheme.js +0 -14
- package/lib/module/theme/useAppTheme.js.map +0 -1
- package/lib/module/types/content.types.js +0 -2
- package/lib/module/types/content.types.js.map +0 -1
- package/lib/module/types/sections.types.js +0 -4
- package/lib/module/types/sections.types.js.map +0 -1
- package/lib/typescript/package.json +0 -1
- package/lib/typescript/src/components/Button/Button.d.ts +0 -9
- package/lib/typescript/src/components/Button/Button.d.ts.map +0 -1
- package/lib/typescript/src/components/Button/styles.d.ts +0 -20
- package/lib/typescript/src/components/Button/styles.d.ts.map +0 -1
- package/lib/typescript/src/components/Section/Card/Sliders/Styles/One.d.ts +0 -18
- package/lib/typescript/src/components/Section/Card/Sliders/Styles/One.d.ts.map +0 -1
- package/lib/typescript/src/components/Section/Card/Sliders/index.d.ts +0 -7
- package/lib/typescript/src/components/Section/Card/Sliders/index.d.ts.map +0 -1
- package/lib/typescript/src/components/Section/Card/Styles/One.d.ts +0 -19
- package/lib/typescript/src/components/Section/Card/Styles/One.d.ts.map +0 -1
- package/lib/typescript/src/components/Section/Card/index.d.ts +0 -7
- package/lib/typescript/src/components/Section/Card/index.d.ts.map +0 -1
- package/lib/typescript/src/components/Section/SectionType.d.ts +0 -26
- package/lib/typescript/src/components/Section/SectionType.d.ts.map +0 -1
- package/lib/typescript/src/components/Section/Sections.d.ts +0 -27
- package/lib/typescript/src/components/Section/Sections.d.ts.map +0 -1
- package/lib/typescript/src/sample.test.d.ts +0 -1
- package/lib/typescript/src/sample.test.d.ts.map +0 -1
- package/lib/typescript/src/theme/useAppTheme.d.ts +0 -46
- package/lib/typescript/src/theme/useAppTheme.d.ts.map +0 -1
- package/lib/typescript/src/types/content.types.d.ts.map +0 -1
- package/lib/typescript/src/types/sections.types.d.ts +0 -41
- package/lib/typescript/src/types/sections.types.d.ts.map +0 -1
- package/src/assets/img/profile.png +0 -0
- package/src/components/Button/Button.tsx +0 -32
- package/src/components/Button/styles.ts +0 -21
- package/src/components/Section/Card/Sliders/Styles/One.tsx +0 -147
- package/src/components/Section/Card/Styles/One.tsx +0 -112
- package/src/components/Section/Card/index.ts +0 -13
- package/src/components/Section/SectionType.tsx +0 -127
- package/src/components/Section/Sections.tsx +0 -120
- package/src/sample.test.ts +0 -5
- package/src/theme/useAppTheme.ts +0 -13
- package/src/types/sections.types.ts +0 -56
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","ScrollView","StyleSheet","View","Markdown","Text","useTheme","AppHeader","scale","moderateScale","jsx","_jsx","jsxs","_jsxs","BlogView","content","containerStyle","scrollable","emptyText","theme","headerTitle","onBackPress","onRightPress","headerComponent","renderHeader","renderContent","renderEmpty","appliedTheme","renderFinalHeader","title","titleAlign","titleStyle","styles","color","colors","onBackground","renderFinalContent","style","getMarkdownStyles","children","center","onSurfaceVariant","flex","backgroundColor","background","contentContainerStyle","container","paddingBottom","showsVerticalScrollIndicator","keyboardShouldPersistTaps","baseColor","textPrimary","body","fontSize","text","paragraph","marginBottom","heading1","fontWeight","heading2","heading3","strong","listItem","bullet_list","ordered_list","link","primary","blockquote","dark","surfaceVariant","surface","onSurface","borderLeftWidth","borderLeftColor","paddingHorizontal","borderRadius","marginVertical","fontStyle","code_inline","fontFamily","code_block","padding","fence","hr","borderBottomColor","outline","borderBottomWidth","hairlineWidth","create","alignItems","justifyContent","textAlign"],"sourceRoot":"../../../../src","sources":["components/BlogView/BlogView.tsx"],"mappings":";;AAAA;AACA;AACA;A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CAACsF,MAAM,CAAC;EAC/B9C,IAAI,EAAE;IACJA,IAAI,EAAE;EACR,CAAC;EACDI,SAAS,EAAE;IACTmC,OAAO,EAAEzE,KAAK,CAAC,EAAE;EACnB,CAAC;EACDgC,MAAM,EAAE;IACNE,IAAI,EAAE,CAAC;IACP+C,UAAU,EAAE,QAAQ;IACpBC,cAAc,EAAE,QAAQ;IACxBhB,iBAAiB,EAAElE,KAAK,CAAC,EAAE;EAC7B,CAAC;EACDU,SAAS,EAAE;IACTyE,SAAS,EAAE,QAAQ;IACnBtC,QAAQ,EAAE5C,aAAa,CAAC,EAAE;EAC5B,CAAC;EACDW,WAAW,EAAE;IACXiC,QAAQ,EAAE5C,aAAa,CAAC,EAAE,CAAC;IAC3BiD,UAAU,EAAE;EACd;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["BlogView"],"sourceRoot":"../../../../src","sources":["components/BlogView/index.ts"],"mappings":";;AAAA;AACA;AACA;AACA;;AAEA,SAASA,QAAQ,QAAQ,YAAY;AAErC,SAASA,QAAQ","ignoreList":[]}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* @author Naresh Dhamu
|
|
5
|
+
* @lastModified Wed 02 Jul 2025 at 09:30 AM
|
|
6
|
+
*/
|
|
7
|
+
import React from 'react';
|
|
8
|
+
import { TouchableOpacity, StyleSheet, Alert, Platform } from 'react-native';
|
|
9
|
+
import { ArrowLeft } from 'lucide-react-native';
|
|
10
|
+
import { useSafeAreaInsets } from 'react-native-safe-area-context';
|
|
11
|
+
import { useTheme } from '../../theme';
|
|
12
|
+
import { scale, verticalScale } from 'react-native-size-matters';
|
|
13
|
+
import { BlurView } from '@react-native-community/blur';
|
|
14
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
15
|
+
const BackBtn = ({
|
|
16
|
+
size = scale(24),
|
|
17
|
+
color,
|
|
18
|
+
onPress,
|
|
19
|
+
style,
|
|
20
|
+
theme,
|
|
21
|
+
enableBlur = false
|
|
22
|
+
}) => {
|
|
23
|
+
const insets = useSafeAreaInsets();
|
|
24
|
+
const {
|
|
25
|
+
theme: appliedTheme
|
|
26
|
+
} = useTheme(theme);
|
|
27
|
+
const handlePress = () => {
|
|
28
|
+
if (onPress) {
|
|
29
|
+
onPress();
|
|
30
|
+
} else {
|
|
31
|
+
Alert.alert('Back Action Not Provided', 'Please define the back action using onPress prop.');
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
const hasTopInStyle = style && StyleSheet.flatten(style).top !== undefined;
|
|
35
|
+
const calculatedTop = Platform.select({
|
|
36
|
+
ios: insets.top > 20 ? insets.top - verticalScale(5) : insets.top,
|
|
37
|
+
android: insets.top + verticalScale(5),
|
|
38
|
+
default: insets.top
|
|
39
|
+
});
|
|
40
|
+
const flattenedStyle = StyleSheet.flatten(style) || {};
|
|
41
|
+
const hasBackground = !!flattenedStyle.backgroundColor;
|
|
42
|
+
const shouldRenderBlur = enableBlur && hasBackground;
|
|
43
|
+
return /*#__PURE__*/_jsxs(TouchableOpacity, {
|
|
44
|
+
activeOpacity: 0.8,
|
|
45
|
+
style: [styles.container, !hasTopInStyle && {
|
|
46
|
+
top: calculatedTop
|
|
47
|
+
}, style],
|
|
48
|
+
onPress: handlePress,
|
|
49
|
+
children: [shouldRenderBlur && /*#__PURE__*/_jsx(BlurView, {
|
|
50
|
+
style: StyleSheet.absoluteFill,
|
|
51
|
+
blurType: "light",
|
|
52
|
+
blurAmount: 10,
|
|
53
|
+
reducedTransparencyFallbackColor: (typeof flattenedStyle.backgroundColor === 'string' ? flattenedStyle.backgroundColor : undefined) || String(appliedTheme.colors.backdrop)
|
|
54
|
+
}), /*#__PURE__*/_jsx(ArrowLeft, {
|
|
55
|
+
size: size,
|
|
56
|
+
color: color || appliedTheme.colors.textPrimary
|
|
57
|
+
})]
|
|
58
|
+
});
|
|
59
|
+
};
|
|
60
|
+
export default BackBtn;
|
|
61
|
+
const styles = StyleSheet.create({
|
|
62
|
+
container: {
|
|
63
|
+
position: 'absolute',
|
|
64
|
+
left: scale(13),
|
|
65
|
+
padding: scale(6),
|
|
66
|
+
borderRadius: scale(100),
|
|
67
|
+
justifyContent: 'center',
|
|
68
|
+
alignItems: 'center',
|
|
69
|
+
overflow: 'hidden'
|
|
70
|
+
}
|
|
71
|
+
});
|
|
72
|
+
//# sourceMappingURL=BackBtn.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","TouchableOpacity","StyleSheet","Alert","Platform","ArrowLeft","useSafeAreaInsets","useTheme","scale","verticalScale","BlurView","jsx","_jsx","jsxs","_jsxs","BackBtn","size","color","onPress","style","theme","enableBlur","insets","appliedTheme","handlePress","alert","hasTopInStyle","flatten","top","undefined","calculatedTop","select","ios","android","default","flattenedStyle","hasBackground","backgroundColor","shouldRenderBlur","activeOpacity","styles","container","children","absoluteFill","blurType","blurAmount","reducedTransparencyFallbackColor","String","colors","backdrop","textPrimary","create","position","left","padding","borderRadius","justifyContent","alignItems","overflow"],"sourceRoot":"../../../../src","sources":["components/Button/BackBtn.tsx"],"mappings":";;AAAA;AACA;AACA;AACA;AACA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,gBAAgB,EAAEC,UAAU,EAAEC,KAAK,EAAEC,QAAQ,QAAwC,cAAc;AAC5G,SAASC,SAAS,QAAQ,qBAAqB;AAC/C,SAASC,iBAAiB,QAAQ,gCAAgC;AAClE,SAASC,QAAQ,QAAQ,aAAa;AACtC,SAASC,KAAK,EAAEC,aAAa,QAAQ,2BAA2B;AAChE,SAASC,QAAQ,QAAQ,8BAA8B;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAYxD,MAAMC,OAA+B,GAAGA,CAAC;EAAEC,IAAI,GAAGR,KAAK,CAAC,EAAE,CAAC;EAAES,KAAK;EAAEC,OAAO;E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AAA,CAACF,QAAQ;MACPS,KAAK,EAAEjB,UAAU,CAACyC,YAAa;MAC/BC,QAAQ,EAAC,OAAO;MAChBC,UAAU,EAAE,EAAG;MACfC,gCAAgC,EAC9B,CAAC,OAAOX,cAAc,CAACE,eAAe,KAAK,QAAQ,GAAGF,cAAc,CAACE,eAAe,GAAGR,SAAS,KAChGkB,MAAM,CAACxB,YAAY,CAACyB,MAAM,CAACC,QAAQ;IACpC,CACF,CACF,eAEDrC,IAAA,CAACP,SAAS;MAACW,IAAI,EAAEA,IAAK;MAACC,KAAK,EAAEA,KAAK,IAAIM,YAAY,CAACyB,MAAM,CAACE;IAAY,CAAE,CAAC;EAAA,CAC1D,CAAC;AAEvB,CAAC;AAED,eAAenC,OAAO;AAEtB,MAAMyB,MAAM,GAAGtC,UAAU,CAACiD,MAAM,CAAC;EAC/BV,SAAS,EAAE;IACTW,QAAQ,EAAE,UAAU;IACpBC,IAAI,EAAE7C,KAAK,CAAC,EAAE,CAAC;IACf8C,OAAO,EAAE9C,KAAK,CAAC,CAAC,CAAC;IACjB+C,YAAY,EAAE/C,KAAK,CAAC,GAAG,CAAC;IACxBgD,cAAc,EAAE,QAAQ;IACxBC,UAAU,EAAE,QAAQ;IACpBC,QAAQ,EAAE;EACZ;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,167 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* @author Naresh Dhamu
|
|
5
|
+
* @lastModified Wed 02 Jul 2025 at 12:35 PM
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
import React, { useState, useMemo, useCallback, useRef } from 'react';
|
|
9
|
+
import { TouchableOpacity, View, StyleSheet, Modal, Pressable, Text, Platform, findNodeHandle, UIManager, StatusBar } from 'react-native';
|
|
10
|
+
import { Ellipsis } from 'lucide-react-native';
|
|
11
|
+
import { useSafeAreaInsets } from 'react-native-safe-area-context';
|
|
12
|
+
import { BlurView } from '@react-native-community/blur';
|
|
13
|
+
import { useTheme } from '../../theme';
|
|
14
|
+
import { scale, verticalScale } from 'react-native-size-matters';
|
|
15
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
16
|
+
const MenuBtn = ({
|
|
17
|
+
actions,
|
|
18
|
+
theme,
|
|
19
|
+
style,
|
|
20
|
+
enableBlur = false
|
|
21
|
+
}) => {
|
|
22
|
+
const insets = useSafeAreaInsets();
|
|
23
|
+
const {
|
|
24
|
+
theme: appliedTheme
|
|
25
|
+
} = useTheme(theme);
|
|
26
|
+
const [visible, setVisible] = useState(false);
|
|
27
|
+
const [menuPosition, setMenuPosition] = useState({
|
|
28
|
+
top: 0,
|
|
29
|
+
right: scale(13)
|
|
30
|
+
});
|
|
31
|
+
const btnRef = useRef(null);
|
|
32
|
+
const flattenedStyle = useMemo(() => StyleSheet.flatten(style) || {}, [style]);
|
|
33
|
+
const shouldRenderBlur = useMemo(() => enableBlur && !!flattenedStyle.backgroundColor, [enableBlur, flattenedStyle.backgroundColor]);
|
|
34
|
+
const openMenu = useCallback(() => {
|
|
35
|
+
const handle = findNodeHandle(btnRef.current);
|
|
36
|
+
if (handle) {
|
|
37
|
+
UIManager.measureInWindow(handle, (_x, y, _w, _h) => {
|
|
38
|
+
const extraOffset = Platform.OS === 'android' ? (StatusBar.currentHeight ?? 0) - verticalScale(2) : 0;
|
|
39
|
+
setMenuPosition({
|
|
40
|
+
top: y + verticalScale(32) + extraOffset,
|
|
41
|
+
right: scale(13)
|
|
42
|
+
});
|
|
43
|
+
setVisible(true);
|
|
44
|
+
});
|
|
45
|
+
} else {
|
|
46
|
+
setVisible(true);
|
|
47
|
+
}
|
|
48
|
+
}, []);
|
|
49
|
+
const closeMenu = useCallback(() => setVisible(false), []);
|
|
50
|
+
const memoizedActions = useMemo(() => actions, [actions]);
|
|
51
|
+
return /*#__PURE__*/_jsxs(_Fragment, {
|
|
52
|
+
children: [/*#__PURE__*/_jsxs(TouchableOpacity, {
|
|
53
|
+
ref: btnRef,
|
|
54
|
+
activeOpacity: 0.7,
|
|
55
|
+
style: [styles.container, {
|
|
56
|
+
top: insets.top + verticalScale(5)
|
|
57
|
+
}, style],
|
|
58
|
+
onPress: openMenu,
|
|
59
|
+
children: [shouldRenderBlur && Platform.OS === 'ios' ? /*#__PURE__*/_jsx(BlurView, {
|
|
60
|
+
style: StyleSheet.absoluteFill,
|
|
61
|
+
blurType: "light",
|
|
62
|
+
blurAmount: 10,
|
|
63
|
+
reducedTransparencyFallbackColor: String(flattenedStyle.backgroundColor || appliedTheme.colors.backdrop)
|
|
64
|
+
}) : /*#__PURE__*/_jsx(View, {
|
|
65
|
+
style: [StyleSheet.absoluteFill, {
|
|
66
|
+
backgroundColor: flattenedStyle.backgroundColor || appliedTheme.colors.backdrop
|
|
67
|
+
}]
|
|
68
|
+
}), /*#__PURE__*/_jsx(Ellipsis, {
|
|
69
|
+
size: scale(20),
|
|
70
|
+
color: appliedTheme.colors.textPrimary
|
|
71
|
+
})]
|
|
72
|
+
}), /*#__PURE__*/_jsx(Modal, {
|
|
73
|
+
transparent: true,
|
|
74
|
+
visible: visible,
|
|
75
|
+
animationType: "fade",
|
|
76
|
+
onRequestClose: closeMenu,
|
|
77
|
+
hardwareAccelerated: true,
|
|
78
|
+
presentationStyle: "overFullScreen",
|
|
79
|
+
statusBarTranslucent: true,
|
|
80
|
+
children: /*#__PURE__*/_jsx(Pressable, {
|
|
81
|
+
style: styles.modalRoot,
|
|
82
|
+
onPress: closeMenu,
|
|
83
|
+
children: /*#__PURE__*/_jsx(Pressable, {
|
|
84
|
+
onPress: () => {},
|
|
85
|
+
style: [styles.menuBox, {
|
|
86
|
+
position: 'absolute',
|
|
87
|
+
top: menuPosition.top,
|
|
88
|
+
right: menuPosition.right,
|
|
89
|
+
backgroundColor: appliedTheme.colors.surface
|
|
90
|
+
}],
|
|
91
|
+
children: memoizedActions.map((action, index) => /*#__PURE__*/_jsxs(Pressable, {
|
|
92
|
+
onPress: () => {
|
|
93
|
+
closeMenu();
|
|
94
|
+
try {
|
|
95
|
+
action.onPress();
|
|
96
|
+
} catch (error) {
|
|
97
|
+
console.error('Action failed:', error);
|
|
98
|
+
}
|
|
99
|
+
},
|
|
100
|
+
style: ({
|
|
101
|
+
pressed
|
|
102
|
+
}) => [styles.menuItem, {
|
|
103
|
+
backgroundColor: pressed ? appliedTheme.colors.surfaceVariant : 'transparent'
|
|
104
|
+
}],
|
|
105
|
+
children: [action.icon && /*#__PURE__*/_jsx(View, {
|
|
106
|
+
style: styles.iconBox,
|
|
107
|
+
children: /*#__PURE__*/_jsx(action.icon, {
|
|
108
|
+
size: scale(18),
|
|
109
|
+
color: appliedTheme.colors.textPrimary
|
|
110
|
+
})
|
|
111
|
+
}), /*#__PURE__*/_jsx(Text, {
|
|
112
|
+
style: [styles.label, {
|
|
113
|
+
color: appliedTheme.colors.textPrimary
|
|
114
|
+
}],
|
|
115
|
+
children: action.label
|
|
116
|
+
})]
|
|
117
|
+
}, `${action.label}-${index}`))
|
|
118
|
+
})
|
|
119
|
+
})
|
|
120
|
+
})]
|
|
121
|
+
});
|
|
122
|
+
};
|
|
123
|
+
export default /*#__PURE__*/React.memo(MenuBtn);
|
|
124
|
+
const styles = StyleSheet.create({
|
|
125
|
+
container: {
|
|
126
|
+
position: 'absolute',
|
|
127
|
+
right: scale(13),
|
|
128
|
+
padding: scale(6),
|
|
129
|
+
borderRadius: scale(100),
|
|
130
|
+
justifyContent: 'center',
|
|
131
|
+
alignItems: 'center',
|
|
132
|
+
overflow: 'hidden',
|
|
133
|
+
zIndex: 4
|
|
134
|
+
},
|
|
135
|
+
modalRoot: {
|
|
136
|
+
...StyleSheet.absoluteFillObject,
|
|
137
|
+
backgroundColor: 'rgba(0,0,0,0.2)'
|
|
138
|
+
},
|
|
139
|
+
menuBox: {
|
|
140
|
+
borderRadius: scale(6),
|
|
141
|
+
elevation: 5,
|
|
142
|
+
shadowColor: '#000',
|
|
143
|
+
shadowOffset: {
|
|
144
|
+
width: 0,
|
|
145
|
+
height: 2
|
|
146
|
+
},
|
|
147
|
+
shadowOpacity: 0.15,
|
|
148
|
+
shadowRadius: 4,
|
|
149
|
+
minWidth: scale(150),
|
|
150
|
+
paddingVertical: verticalScale(2)
|
|
151
|
+
},
|
|
152
|
+
menuItem: {
|
|
153
|
+
flexDirection: 'row',
|
|
154
|
+
alignItems: 'center',
|
|
155
|
+
paddingVertical: verticalScale(8),
|
|
156
|
+
paddingHorizontal: scale(10),
|
|
157
|
+
borderRadius: scale(5)
|
|
158
|
+
},
|
|
159
|
+
iconBox: {
|
|
160
|
+
marginRight: scale(8)
|
|
161
|
+
},
|
|
162
|
+
label: {
|
|
163
|
+
fontSize: scale(13),
|
|
164
|
+
includeFontPadding: false
|
|
165
|
+
}
|
|
166
|
+
});
|
|
167
|
+
//# sourceMappingURL=MenuBtn.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","useState","useMemo","useCallback","useRef","TouchableOpacity","View","StyleSheet","Modal","Pressable","Text","Platform","findNodeHandle","UIManager","StatusBar","Ellipsis","useSafeAreaInsets","BlurView","useTheme","scale","verticalScale","jsx","_jsx","jsxs","_jsxs","Fragment","_Fragment","MenuBtn","actions","theme","style","enableBlur","insets","appliedTheme","visible","setVisible","menuPosition","setMenuPosition","top","right","btnRef","flattenedStyle","flatten","shouldRenderBlur","backgroundColor","openMenu","handle","current","measureInWindow","_x","y","_w","_h","extraOffset","OS","currentHeight","closeMenu","memoizedActions","children","ref","activeOpacity","styles","container","onPress","absoluteFill","blurType","blurAmount","reducedTransparencyFallbackColor","String","colors","backdrop","size","color","textPrimary","transparent","animationType","onRequestClose","hardwareAccelerated","presentationStyle","statusBarTranslucent","modalRoot","menuBox","position","surface","map","action","index","error","console","pressed","menuItem","surfaceVariant","icon","iconBox","label","memo","create","padding","borderRadius","justifyContent","alignItems","overflow","zIndex","absoluteFillObject","elevation","shadowColor","shadowOffset","width","height","shadowOpacity","shadowRadius","minWidth","paddingVertical","flexDirection","paddingHorizontal","marginRight","fontSize","includeFontPadding"],"sourceRoot":"../../../../src","sources":["components/Button/MenuBtn.tsx"],"mappings":";;AAAA;AACA;AACA;AACA;;AAEA,OAAOA,KAAK,IAAIC,QAAQ,EAAEC,OAAO,EAAEC,WAAW,EAAEC,MAAM,QAAQ,OAAO;AACrE,SACEC,gBAAgB,EAChBC,IAAI,EACJC,UAAU,EACVC,KAAK,EACLC,SAAS,EACTC,IAAI,EACJC,QAAQ,EACRC,cAAc,EACdC,SAAS,EACTC,SAAS,QAGJ,cAAc;AACrB,SAASC,QAAQ,QAAQ,qBAAqB;AAC9C,SAASC,iBAAiB,QAAQ,gCAAgC;AAClE,SAASC,QAAQ,QAAQ,8BAA8B;AACvD,SAASC,QAAQ,QAAQ,aAAa;AACtC,SAASC,KAAK,EAAEC,aAAa,QAAQ,2BAA2B;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA,EAAAC,QAAA,IAAAC,SAAA;AAgBjE,MAAMC,OAA+B,GAAGA,CAAC;EAAEC,OAAO;EAAEC,KAAK;EAAEC,KAAK;EAAEC,UAAU,GAAG;AAAM,CAAC,KAAK;EACzF,MAAMC,MAAM,GAAGhB,iBAAiB,CAAC,CAAC;EAClC,MAAM;IAAEa,KAAK,EAAEI;EAAa,CAAC,GAAGf,QAAQ,CAACW,KAAK,CAAC;EAC/C,MAAM,CAACK,OAAO,EAAEC,UAAU,CAAC,GAAGlC,QAAQ,CAAC,KAAK,CAAC;EAC7C,MAAM,CAACmC,YAAY,EAAEC,eAAe,CAAC,GAAGpC,QAAQ,CAAiC;IAAEqC,GAAG,EAAE,CAAC;IAAEC,KAAK,EAAEpB,KAAK,CAAC,EAAE;EAAE,CAAC,CAAC;EAE9G,MAAMqB,MAAM,GAAGpC,MAAM,CAAC,IAAI,CAAC;EAE3B,MAAMqC,cAAc,GAAGvC,OAAO,CAAC,MAAMK,UAAU,CAACmC,OAAO,CAACZ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;IACnBkG,kBAAkB,EAAE;EACtB;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* @author Naresh Dhamu
|
|
5
|
+
* @lastModified Tue 17 Jun 2025 at 10:45 AM
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
import React from 'react';
|
|
9
|
+
import { TouchableOpacity, ActivityIndicator, StyleSheet, View } from 'react-native';
|
|
10
|
+
import { scale, verticalScale } from 'react-native-size-matters';
|
|
11
|
+
import { useTheme } from '../../theme/ThemeProvider';
|
|
12
|
+
import { Text } from '../Text';
|
|
13
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
14
|
+
export const PrimaryBtn = ({
|
|
15
|
+
title,
|
|
16
|
+
onPress,
|
|
17
|
+
loading = false,
|
|
18
|
+
loadingText = 'Loading...',
|
|
19
|
+
disabled = false,
|
|
20
|
+
containerStyle,
|
|
21
|
+
titleStyle,
|
|
22
|
+
theme
|
|
23
|
+
}) => {
|
|
24
|
+
const {
|
|
25
|
+
theme: appliedTheme
|
|
26
|
+
} = useTheme(theme);
|
|
27
|
+
const backgroundColor = disabled || loading ? appliedTheme.colors?.buttonDisabled : appliedTheme.colors?.button;
|
|
28
|
+
return /*#__PURE__*/_jsx(TouchableOpacity, {
|
|
29
|
+
onPress: onPress,
|
|
30
|
+
disabled: disabled || loading,
|
|
31
|
+
activeOpacity: 0.8,
|
|
32
|
+
style: [styles.button, {
|
|
33
|
+
backgroundColor
|
|
34
|
+
}, containerStyle],
|
|
35
|
+
accessibilityRole: "button",
|
|
36
|
+
accessibilityState: {
|
|
37
|
+
disabled: disabled || loading
|
|
38
|
+
},
|
|
39
|
+
children: loading ? /*#__PURE__*/_jsxs(View, {
|
|
40
|
+
style: styles.row,
|
|
41
|
+
children: [/*#__PURE__*/_jsx(ActivityIndicator, {
|
|
42
|
+
color: appliedTheme.colors.buttonText,
|
|
43
|
+
style: {
|
|
44
|
+
marginRight: scale(8)
|
|
45
|
+
}
|
|
46
|
+
}), /*#__PURE__*/_jsx(Text, {
|
|
47
|
+
style: [styles.text, {
|
|
48
|
+
color: appliedTheme.colors.buttonText,
|
|
49
|
+
opacity: 0.75
|
|
50
|
+
}, titleStyle],
|
|
51
|
+
children: loadingText
|
|
52
|
+
})]
|
|
53
|
+
}) : /*#__PURE__*/_jsx(Text, {
|
|
54
|
+
style: [styles.text, {
|
|
55
|
+
color: appliedTheme.colors.buttonText
|
|
56
|
+
}, titleStyle],
|
|
57
|
+
children: title
|
|
58
|
+
})
|
|
59
|
+
});
|
|
60
|
+
};
|
|
61
|
+
const styles = StyleSheet.create({
|
|
62
|
+
button: {
|
|
63
|
+
width: '100%',
|
|
64
|
+
alignSelf: 'stretch',
|
|
65
|
+
paddingVertical: verticalScale(12),
|
|
66
|
+
paddingHorizontal: scale(16),
|
|
67
|
+
borderRadius: scale(6),
|
|
68
|
+
alignItems: 'center',
|
|
69
|
+
justifyContent: 'center'
|
|
70
|
+
},
|
|
71
|
+
text: {
|
|
72
|
+
textAlign: 'center',
|
|
73
|
+
fontSize: scale(16),
|
|
74
|
+
fontWeight: '600'
|
|
75
|
+
},
|
|
76
|
+
row: {
|
|
77
|
+
flexDirection: 'row',
|
|
78
|
+
alignItems: 'center',
|
|
79
|
+
justifyContent: 'center'
|
|
80
|
+
}
|
|
81
|
+
});
|
|
82
|
+
//# sourceMappingURL=PrimaryBtn.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","TouchableOpacity","ActivityIndicator","StyleSheet","View","scale","verticalScale","useTheme","Text","jsx","_jsx","jsxs","_jsxs","PrimaryBtn","title","onPress","loading","loadingText","disabled","containerStyle","titleStyle","theme","appliedTheme","backgroundColor","colors","buttonDisabled","button","activeOpacity","style","styles","accessibilityRole","accessibilityState","children","row","color","buttonText","marginRight","text","opacity","create","width","alignSelf","paddingVertical","paddingHorizontal","borderRadius","alignItems","justifyContent","textAlign","fontSize","fontWeight","flexDirection"],"sourceRoot":"../../../../src","sources":["components/Button/PrimaryBtn.tsx"],"mappings":";;AAAA;AACA;AACA;AACA;;AAEA,OAAOA,KAAK,MAAM,OAAO;AACzB,SACEC,gBAAgB,EAChBC,iBAAiB,EACjBC,UAAU,EACVC,IAAI,QAIC,cAAc;AACrB,SAASC,KAAK,EAAEC,aAAa,QAAQ,2BAA2B;AAChE,SAASC,QAAQ,QAAQ,2BAA2B;AACpD,SAASC,IAAI,QAAQ,SAAS;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAc/B,OAAO,MAAMC,UAAqC,GAAGA,CAAC;EACpDC,KAAK;EACLC,OAAO;EACPC,OAAO,GAAG,KAAK;EACfC,WAAW,GAAG,YAAY;EAC1BC,QAAQ,GAAG,KAAK;EAChBC,cAAc;EACdC,UAAU;EACVC;AACF,CAAC,KAAK;EACJ,MAAM;IAAEA,KAAK,EAAEC;EAAa,CAAC,GAAGf,QAAQ,CAACc,KAAK,CAAC;EAC/C,MAAME,eAAe,GAAGL,QAAQ,IAAIF,OAAO,GAAGM,YAAY,CAACE,MAAM,EAAEC,cAAc,GAAGH,YAAY,CAACE,MAAM,EAAEE,MAAM;EAE/G,oBACEhB,IAAA,CAACT,gBAAgB;IACfc,OAAO,EAAEA,OAAQ;IACjBG,QAAQ,EAAEA,QAAQ,IAAIF,OAAQ;IAC9BW,aAAa,EAAE,GAAI;IACnBC,KAAK,EAAE,CAACC,MAAM,CAACH,MAAM,EAAE;MAAEH;IAAgB,CAAC,EAAEJ,cAAc,CAAE;IAC5DW,iBAAiB,EAAC,QAAQ;IAC1BC,kBAAkB,EAAE;MAAEb,QAAQ,EAAEA,QAAQ,IAAIF;IAAQ,CAAE;IAAAgB,QAAA,EAErDhB,OAAO,gBACNJ,KAAA,CAACR,IAAI;MAACwB,KAAK,EAAEC,MAAM,CAACI,GAAI;MAAAD,QAAA,gBACtBtB,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
+
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import { StyleSheet, Pressable, View } from 'react-native';
|
|
5
|
+
import { useTheme } from '../../theme';
|
|
6
|
+
import { scale, verticalScale } from 'react-native-size-matters';
|
|
7
|
+
import { Text } from '../Text';
|
|
8
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
9
|
+
const TextButton = ({
|
|
10
|
+
title,
|
|
11
|
+
onPress,
|
|
12
|
+
color,
|
|
13
|
+
style,
|
|
14
|
+
containerStyle,
|
|
15
|
+
disabled = false,
|
|
16
|
+
underline = false,
|
|
17
|
+
bold = false,
|
|
18
|
+
align = 'center',
|
|
19
|
+
leftIcon
|
|
20
|
+
}) => {
|
|
21
|
+
const {
|
|
22
|
+
theme
|
|
23
|
+
} = useTheme();
|
|
24
|
+
const alignSelfMap = {
|
|
25
|
+
left: 'flex-start',
|
|
26
|
+
center: 'center',
|
|
27
|
+
right: 'flex-end'
|
|
28
|
+
};
|
|
29
|
+
const alignSelf = alignSelfMap[align];
|
|
30
|
+
const textStyle = {
|
|
31
|
+
textAlign: align,
|
|
32
|
+
textDecorationLine: underline ? 'underline' : 'none',
|
|
33
|
+
fontWeight: bold ? '700' : '400'
|
|
34
|
+
};
|
|
35
|
+
return /*#__PURE__*/_jsx(Pressable, {
|
|
36
|
+
onPress: onPress,
|
|
37
|
+
disabled: disabled,
|
|
38
|
+
accessibilityRole: "button",
|
|
39
|
+
accessibilityState: {
|
|
40
|
+
disabled
|
|
41
|
+
},
|
|
42
|
+
style: ({
|
|
43
|
+
pressed
|
|
44
|
+
}) => [styles.defaultContainer, {
|
|
45
|
+
alignSelf
|
|
46
|
+
}, containerStyle, pressed && styles.pressed, disabled && styles.disabled],
|
|
47
|
+
children: /*#__PURE__*/_jsxs(View, {
|
|
48
|
+
style: [styles.row, {
|
|
49
|
+
justifyContent: align === 'left' ? 'flex-start' : align === 'right' ? 'flex-end' : 'center'
|
|
50
|
+
}],
|
|
51
|
+
children: [leftIcon && /*#__PURE__*/_jsx(View, {
|
|
52
|
+
style: styles.iconSpacing,
|
|
53
|
+
children: leftIcon
|
|
54
|
+
}), /*#__PURE__*/_jsx(Text, {
|
|
55
|
+
color: color || theme.colors.textPrimary,
|
|
56
|
+
style: [styles.text, textStyle, style],
|
|
57
|
+
size: 12,
|
|
58
|
+
numberOfLines: 1,
|
|
59
|
+
allowFontScaling: false,
|
|
60
|
+
children: title
|
|
61
|
+
})]
|
|
62
|
+
})
|
|
63
|
+
});
|
|
64
|
+
};
|
|
65
|
+
export default TextButton;
|
|
66
|
+
const styles = StyleSheet.create({
|
|
67
|
+
defaultContainer: {
|
|
68
|
+
paddingVertical: verticalScale(4),
|
|
69
|
+
paddingHorizontal: scale(6)
|
|
70
|
+
},
|
|
71
|
+
text: {
|
|
72
|
+
fontSize: scale(12)
|
|
73
|
+
},
|
|
74
|
+
row: {
|
|
75
|
+
flexDirection: 'row',
|
|
76
|
+
alignItems: 'center'
|
|
77
|
+
},
|
|
78
|
+
iconSpacing: {
|
|
79
|
+
marginRight: scale(1)
|
|
80
|
+
},
|
|
81
|
+
pressed: {
|
|
82
|
+
opacity: 0.6
|
|
83
|
+
},
|
|
84
|
+
disabled: {
|
|
85
|
+
opacity: 0.4
|
|
86
|
+
}
|
|
87
|
+
});
|
|
88
|
+
//# sourceMappingURL=TextButton.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","StyleSheet","Pressable","View","useTheme","scale","verticalScale","Text","jsx","_jsx","jsxs","_jsxs","TextButton","title","onPress","color","style","containerStyle","disabled","underline","bold","align","leftIcon","theme","alignSelfMap","left","center","right","alignSelf","textStyle","textAlign","textDecorationLine","fontWeight","accessibilityRole","accessibilityState","pressed","styles","defaultContainer","children","row","justifyContent","iconSpacing","colors","textPrimary","text","size","numberOfLines","allowFontScaling","create","paddingVertical","paddingHorizontal","fontSize","flexDirection","alignItems","marginRight","opacity"],"sourceRoot":"../../../../src","sources":["components/Button/TextButton.tsx"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17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* @author Naresh Dhamu
|
|
5
|
+
* @lastModified Fri 13 Jun 2025 at 12:26 PM
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
import BackBtn from './BackBtn';
|
|
9
|
+
import { PrimaryBtn } from './PrimaryBtn';
|
|
10
|
+
import TextButton from './TextButton';
|
|
11
|
+
const Button = {
|
|
12
|
+
Primary: PrimaryBtn,
|
|
13
|
+
BackBtn,
|
|
14
|
+
TextButton
|
|
15
|
+
};
|
|
16
|
+
export { Button };
|
|
17
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["BackBtn","PrimaryBtn","TextButton","Button","Primary"],"sourceRoot":"../../../../src","sources":["components/Button/index.ts"],"mappings":";;AAAA;AACA;AACA;AACA;;AAEA,OAAOA,OAAO,MAAM,WAAW;AAC/B,SAASC,UAAU,QAAQ,cAAc;AACzC,OAAOC,UAAU,MAAM,cAAc;AAErC,MAAMC,MAAM,GAAG;EACbC,OAAO,EAAEH,UAAU;EACnBD,OAAO;EACPE;AACF,CAAC;AAED,SAASC,MAAM","ignoreList":[]}
|