@zezosoft/zezo-ott-react-native-ui-kit 1.0.2 → 1.0.3

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.
Files changed (466) hide show
  1. package/LICENSE +0 -0
  2. package/README.md +6 -0
  3. package/lib/module/assets/animations/135037-payment-processing-error.json +1347 -1
  4. package/lib/module/assets/animations/7227-vui-animation.json +3377 -1
  5. package/lib/module/assets/animations/succesfull-payment.json +2379 -1
  6. package/lib/module/assets/animations/voice-icon.json +542 -1
  7. package/lib/module/components/Account/Account.js +6 -6
  8. package/lib/module/components/Account/Account.js.map +1 -1
  9. package/lib/module/components/Account/index.js +1 -1
  10. package/lib/module/components/Account/index.js.map +1 -1
  11. package/lib/module/components/Alert/UAAlert.js +138 -0
  12. package/lib/module/components/Alert/UAAlert.js.map +1 -0
  13. package/lib/module/components/Alert/index.js +4 -0
  14. package/lib/module/components/Alert/index.js.map +1 -0
  15. package/lib/module/components/Auth/ForgotPassword/ForgotPassword.js +9 -9
  16. package/lib/module/components/Auth/ForgotPassword/ForgotPassword.js.map +1 -1
  17. package/lib/module/components/Auth/Login/LoginWithEmail.js +10 -10
  18. package/lib/module/components/Auth/Login/LoginWithEmail.js.map +1 -1
  19. package/lib/module/components/Auth/Login/LoginWithPhone.js +10 -10
  20. package/lib/module/components/Auth/Login/LoginWithPhone.js.map +1 -1
  21. package/lib/module/components/Auth/OTP/OTP.js +9 -9
  22. package/lib/module/components/Auth/OTP/OTP.js.map +1 -1
  23. package/lib/module/components/Auth/SignUp/SignUp.js +10 -10
  24. package/lib/module/components/Auth/SignUp/SignUp.js.map +1 -1
  25. package/lib/module/components/Auth/SplashScreen/SplashScreen.js +6 -6
  26. package/lib/module/components/Auth/SplashScreen/SplashScreen.js.map +1 -1
  27. package/lib/module/components/Auth/SplashScreen/components/SplashImage/SplashImage.js +1 -6
  28. package/lib/module/components/Auth/SplashScreen/components/SplashImage/SplashImage.js.map +1 -1
  29. package/lib/module/components/Auth/SplashScreen/components/SplashLottie/SplashLottie.js +1 -1
  30. package/lib/module/components/Auth/SplashScreen/components/SplashLottie/SplashLottie.js.map +1 -1
  31. package/lib/module/components/Auth/SplashScreen/components/SplashVideo/SplashVideo.js +1 -1
  32. package/lib/module/components/Auth/SplashScreen/components/SplashVideo/SplashVideo.js.map +1 -1
  33. package/lib/module/components/Auth/index.js +6 -6
  34. package/lib/module/components/Auth/index.js.map +1 -1
  35. package/lib/module/components/BackgroundLayout/BackgroundLayout.js +1 -1
  36. package/lib/module/components/BackgroundLayout/BackgroundLayout.js.map +1 -1
  37. package/lib/module/components/BlogView/BlogView.js +4 -10
  38. package/lib/module/components/BlogView/BlogView.js.map +1 -1
  39. package/lib/module/components/BlogView/index.js +1 -1
  40. package/lib/module/components/BlogView/index.js.map +1 -1
  41. package/lib/module/components/Button/BackBtn.js +1 -1
  42. package/lib/module/components/Button/BackBtn.js.map +1 -1
  43. package/lib/module/components/Button/MenuBtn.js +1 -1
  44. package/lib/module/components/Button/MenuBtn.js.map +1 -1
  45. package/lib/module/components/Button/PrimaryBtn.js +2 -2
  46. package/lib/module/components/Button/PrimaryBtn.js.map +1 -1
  47. package/lib/module/components/Button/TextButton.js +2 -2
  48. package/lib/module/components/Button/TextButton.js.map +1 -1
  49. package/lib/module/components/Button/index.js +3 -3
  50. package/lib/module/components/Button/index.js.map +1 -1
  51. package/lib/module/components/Content/Card/Category/Category.js +2 -2
  52. package/lib/module/components/Content/Card/Category/Category.js.map +1 -1
  53. package/lib/module/components/Content/Card/NowWatching/NowWatching.js +6 -6
  54. package/lib/module/components/Content/Card/NowWatching/NowWatching.js.map +1 -1
  55. package/lib/module/components/Content/Card/Sliders/Styles/One.js +3 -3
  56. package/lib/module/components/Content/Card/Sliders/Styles/One.js.map +1 -1
  57. package/lib/module/components/Content/Card/Sliders/Styles/Two.js +4 -4
  58. package/lib/module/components/Content/Card/Sliders/Styles/Two.js.map +1 -1
  59. package/lib/module/components/Content/Card/Sliders/index.js +2 -2
  60. package/lib/module/components/Content/Card/Sliders/index.js.map +1 -1
  61. package/lib/module/components/Content/Card/Styles/Five.js +4 -4
  62. package/lib/module/components/Content/Card/Styles/Five.js.map +1 -1
  63. package/lib/module/components/Content/Card/Styles/Four.js +4 -4
  64. package/lib/module/components/Content/Card/Styles/Four.js.map +1 -1
  65. package/lib/module/components/Content/Card/Styles/One.js +4 -4
  66. package/lib/module/components/Content/Card/Styles/One.js.map +1 -1
  67. package/lib/module/components/Content/Card/Styles/RotateInOut.js +4 -4
  68. package/lib/module/components/Content/Card/Styles/RotateInOut.js.map +1 -1
  69. package/lib/module/components/Content/Card/Styles/Six.js +5 -5
  70. package/lib/module/components/Content/Card/Styles/Six.js.map +1 -1
  71. package/lib/module/components/Content/Card/Styles/Three.js +4 -4
  72. package/lib/module/components/Content/Card/Styles/Three.js.map +1 -1
  73. package/lib/module/components/Content/Card/Styles/TopTen.js +5 -5
  74. package/lib/module/components/Content/Card/Styles/TopTen.js.map +1 -1
  75. package/lib/module/components/Content/Card/Styles/Two.js +4 -4
  76. package/lib/module/components/Content/Card/Styles/Two.js.map +1 -1
  77. package/lib/module/components/Content/Card/components/CardPoster.js +1 -10
  78. package/lib/module/components/Content/Card/components/CardPoster.js.map +1 -1
  79. package/lib/module/components/Content/Card/components/NavigateToMore.js +2 -2
  80. package/lib/module/components/Content/Card/components/NavigateToMore.js.map +1 -1
  81. package/lib/module/components/Content/Card/components/NoContentFallback.js +3 -3
  82. package/lib/module/components/Content/Card/components/NoContentFallback.js.map +1 -1
  83. package/lib/module/components/Content/Card/components/ShowAllButton.js +1 -1
  84. package/lib/module/components/Content/Card/components/ShowAllButton.js.map +1 -1
  85. package/lib/module/components/Content/Card/components/ThumbnailCard.js +1 -1
  86. package/lib/module/components/Content/Card/components/ThumbnailCard.js.map +1 -1
  87. package/lib/module/components/Content/Card/index.js +10 -10
  88. package/lib/module/components/Content/Card/index.js.map +1 -1
  89. package/lib/module/components/Content/Content.js +4 -4
  90. package/lib/module/components/Content/Content.js.map +1 -1
  91. package/lib/module/components/Content/Sections.js +2 -2
  92. package/lib/module/components/Content/Sections.js.map +1 -1
  93. package/lib/module/components/ContentView/ContentView.js +8 -9
  94. package/lib/module/components/ContentView/ContentView.js.map +1 -1
  95. package/lib/module/components/ContentView/MoreContentList.js +6 -6
  96. package/lib/module/components/ContentView/MoreContentList.js.map +1 -1
  97. package/lib/module/components/ContentView/components/AboutSection.js +2 -2
  98. package/lib/module/components/ContentView/components/AboutSection.js.map +1 -1
  99. package/lib/module/components/ContentView/components/CastCard.js +2 -2
  100. package/lib/module/components/ContentView/components/CastCard.js.map +1 -1
  101. package/lib/module/components/ContentView/components/EpisodeCard.js +3 -3
  102. package/lib/module/components/ContentView/components/EpisodeCard.js.map +1 -1
  103. package/lib/module/components/ContentView/components/GenreTags.js +1 -1
  104. package/lib/module/components/ContentView/components/GenreTags.js.map +1 -1
  105. package/lib/module/components/ContentView/components/HeroBanner.js +5 -5
  106. package/lib/module/components/ContentView/components/HeroBanner.js.map +1 -1
  107. package/lib/module/components/ContentView/components/PlayButton.js +0 -1
  108. package/lib/module/components/ContentView/components/PlayButton.js.map +1 -1
  109. package/lib/module/components/ContentView/components/Title.js +1 -1
  110. package/lib/module/components/ContentView/components/Title.js.map +1 -1
  111. package/lib/module/components/ContentView/components/TrailerButton.js +1 -2
  112. package/lib/module/components/ContentView/components/TrailerButton.js.map +1 -1
  113. package/lib/module/components/ContentView/index.js +2 -2
  114. package/lib/module/components/ContentView/index.js.map +1 -1
  115. package/lib/module/components/Headers/AppHeader.js +2 -2
  116. package/lib/module/components/Headers/AppHeader.js.map +1 -1
  117. package/lib/module/components/Headers/One.js +2 -2
  118. package/lib/module/components/Headers/One.js.map +1 -1
  119. package/lib/module/components/Headers/Three.js +2 -2
  120. package/lib/module/components/Headers/Three.js.map +1 -1
  121. package/lib/module/components/Headers/Two.js +5 -6
  122. package/lib/module/components/Headers/Two.js.map +1 -1
  123. package/lib/module/components/Headers/index.js +3 -3
  124. package/lib/module/components/Headers/index.js.map +1 -1
  125. package/lib/module/components/Input/Input.js +3 -3
  126. package/lib/module/components/Input/Input.js.map +1 -1
  127. package/lib/module/components/Input/InputOne.js +1 -1
  128. package/lib/module/components/Input/InputOne.js.map +1 -1
  129. package/lib/module/components/Input/InputTwo.js +1 -1
  130. package/lib/module/components/Input/InputTwo.js.map +1 -1
  131. package/lib/module/components/Input/PhoneNumberInput.js +1 -1
  132. package/lib/module/components/Input/PhoneNumberInput.js.map +1 -1
  133. package/lib/module/components/Keyboard/HideKeyboard.js.map +1 -1
  134. package/lib/module/components/Loader/Loader.js +1 -6
  135. package/lib/module/components/Loader/Loader.js.map +1 -1
  136. package/lib/module/components/Logo/Logo.js +2 -2
  137. package/lib/module/components/Logo/Logo.js.map +1 -1
  138. package/lib/module/components/Search/One.js +9 -9
  139. package/lib/module/components/Search/One.js.map +1 -1
  140. package/lib/module/components/Search/components/RecentSearchesSection.js +1 -1
  141. package/lib/module/components/Search/components/RecentSearchesSection.js.map +1 -1
  142. package/lib/module/components/Search/components/SearchCard.js +3 -3
  143. package/lib/module/components/Search/components/SearchCard.js.map +1 -1
  144. package/lib/module/components/Search/index.js +2 -2
  145. package/lib/module/components/Search/index.js.map +1 -1
  146. package/lib/module/components/Settings/AppSettings.js +4 -4
  147. package/lib/module/components/Settings/AppSettings.js.map +1 -1
  148. package/lib/module/components/Settings/index.js +1 -1
  149. package/lib/module/components/Settings/index.js.map +1 -1
  150. package/lib/module/components/Subscription/SubOne.js +4 -4
  151. package/lib/module/components/Subscription/SubOne.js.map +1 -1
  152. package/lib/module/components/Subscription/index.js +1 -1
  153. package/lib/module/components/Subscription/index.js.map +1 -1
  154. package/lib/module/components/TabBar/One.js +2 -2
  155. package/lib/module/components/TabBar/One.js.map +1 -1
  156. package/lib/module/components/TabBar/Three.js +1 -1
  157. package/lib/module/components/TabBar/Three.js.map +1 -1
  158. package/lib/module/components/TabBar/Two.js +2 -2
  159. package/lib/module/components/TabBar/Two.js.map +1 -1
  160. package/lib/module/components/TabBar/index.js +3 -3
  161. package/lib/module/components/TabBar/index.js.map +1 -1
  162. package/lib/module/components/Text/Text.js +1 -1
  163. package/lib/module/components/Text/Text.js.map +1 -1
  164. package/lib/module/components/Text/index.js +1 -1
  165. package/lib/module/components/Text/index.js.map +1 -1
  166. package/lib/module/components/User/DeviceSessions/DeviceSessions.js +3 -3
  167. package/lib/module/components/User/DeviceSessions/DeviceSessions.js.map +1 -1
  168. package/lib/module/components/User/WatchHistory/WatchHistory.js +4 -4
  169. package/lib/module/components/User/WatchHistory/WatchHistory.js.map +1 -1
  170. package/lib/module/components/User/WatchLater/WatchLater.js +5 -5
  171. package/lib/module/components/User/WatchLater/WatchLater.js.map +1 -1
  172. package/lib/module/components/User/components/UserAvatar.js +1 -1
  173. package/lib/module/components/User/components/UserAvatar.js.map +1 -1
  174. package/lib/module/components/User/components/UserSection.js +3 -3
  175. package/lib/module/components/User/components/UserSection.js.map +1 -1
  176. package/lib/module/components/User/index.js +3 -3
  177. package/lib/module/components/User/index.js.map +1 -1
  178. package/lib/module/components/View/View.js.map +1 -1
  179. package/lib/module/components/View/index.js +1 -1
  180. package/lib/module/components/View/index.js.map +1 -1
  181. package/lib/module/components/index.js +19 -18
  182. package/lib/module/components/index.js.map +1 -1
  183. package/lib/module/components/layout/SafeAreaWrapper.js +1 -1
  184. package/lib/module/components/layout/SafeAreaWrapper.js.map +1 -1
  185. package/lib/module/components/layout/index.js +1 -1
  186. package/lib/module/components/layout/index.js.map +1 -1
  187. package/lib/module/constants/dummySections.js.map +1 -1
  188. package/lib/module/hooks/useDebounce.js.map +1 -1
  189. package/lib/module/hooks/useInitSplashCacheSync.js +7 -7
  190. package/lib/module/hooks/useInitSplashCacheSync.js.map +1 -1
  191. package/lib/module/hooks/useKeyboard.js.map +1 -1
  192. package/lib/module/hooks/usePaginatedSection.js.map +1 -1
  193. package/lib/module/index.js +3 -3
  194. package/lib/module/index.js.map +1 -1
  195. package/lib/module/package.json +1 -0
  196. package/lib/module/store/RecentSearchesStore.js.map +1 -1
  197. package/lib/module/store/splashStore.js.map +1 -1
  198. package/lib/module/theme/ThemeProvider.js +11 -8
  199. package/lib/module/theme/ThemeProvider.js.map +1 -1
  200. package/lib/module/theme/hook/useTheme.js +2 -2
  201. package/lib/module/theme/hook/useTheme.js.map +1 -1
  202. package/lib/module/theme/index.js +3 -2
  203. package/lib/module/theme/index.js.map +1 -1
  204. package/lib/module/theme/themes.js +0 -13
  205. package/lib/module/theme/themes.js.map +1 -1
  206. package/lib/typescript/package.json +1 -0
  207. package/lib/typescript/src/components/Account/Account.d.ts +0 -1
  208. package/lib/typescript/src/components/Account/Account.d.ts.map +1 -1
  209. package/lib/typescript/src/components/Alert/UAAlert.d.ts +16 -0
  210. package/lib/typescript/src/components/Alert/UAAlert.d.ts.map +1 -0
  211. package/lib/typescript/src/components/Alert/index.d.ts +2 -0
  212. package/lib/typescript/src/components/Alert/index.d.ts.map +1 -0
  213. package/lib/typescript/src/components/Auth/ForgotPassword/ForgotPassword.d.ts.map +1 -1
  214. package/lib/typescript/src/components/Auth/Login/LoginWithEmail.d.ts.map +1 -1
  215. package/lib/typescript/src/components/Auth/Login/LoginWithPhone.d.ts.map +1 -1
  216. package/lib/typescript/src/components/Auth/OTP/OTP.d.ts.map +1 -1
  217. package/lib/typescript/src/components/Auth/SignUp/SignUp.d.ts.map +1 -1
  218. package/lib/typescript/src/components/Auth/SplashScreen/SplashScreen.d.ts.map +1 -1
  219. package/lib/typescript/src/components/Auth/SplashScreen/components/SplashImage/SplashImage.d.ts +0 -4
  220. package/lib/typescript/src/components/Auth/SplashScreen/components/SplashImage/SplashImage.d.ts.map +1 -1
  221. package/lib/typescript/src/components/Auth/SplashScreen/components/SplashVideo/SplashVideo.d.ts.map +1 -1
  222. package/lib/typescript/src/components/Auth/index.d.ts +1 -1
  223. package/lib/typescript/src/components/Auth/index.d.ts.map +1 -1
  224. package/lib/typescript/src/components/BackgroundLayout/BackgroundLayout.d.ts.map +1 -1
  225. package/lib/typescript/src/components/BlogView/BlogView.d.ts +0 -4
  226. package/lib/typescript/src/components/BlogView/BlogView.d.ts.map +1 -1
  227. package/lib/typescript/src/components/Button/BackBtn.d.ts.map +1 -1
  228. package/lib/typescript/src/components/Button/MenuBtn.d.ts.map +1 -1
  229. package/lib/typescript/src/components/Button/PrimaryBtn.d.ts.map +1 -1
  230. package/lib/typescript/src/components/Button/TextButton.d.ts.map +1 -1
  231. package/lib/typescript/src/components/Content/Card/Category/Category.d.ts +1 -1
  232. package/lib/typescript/src/components/Content/Card/Category/Category.d.ts.map +1 -1
  233. package/lib/typescript/src/components/Content/Card/NowWatching/NowWatching.d.ts.map +1 -1
  234. package/lib/typescript/src/components/Content/Card/Sliders/Styles/One.d.ts.map +1 -1
  235. package/lib/typescript/src/components/Content/Card/Sliders/Styles/Two.d.ts.map +1 -1
  236. package/lib/typescript/src/components/Content/Card/Styles/Five.d.ts.map +1 -1
  237. package/lib/typescript/src/components/Content/Card/Styles/Four.d.ts.map +1 -1
  238. package/lib/typescript/src/components/Content/Card/Styles/One.d.ts.map +1 -1
  239. package/lib/typescript/src/components/Content/Card/Styles/RotateInOut.d.ts.map +1 -1
  240. package/lib/typescript/src/components/Content/Card/Styles/Six.d.ts.map +1 -1
  241. package/lib/typescript/src/components/Content/Card/Styles/Three.d.ts.map +1 -1
  242. package/lib/typescript/src/components/Content/Card/Styles/TopTen.d.ts.map +1 -1
  243. package/lib/typescript/src/components/Content/Card/Styles/Two.d.ts.map +1 -1
  244. package/lib/typescript/src/components/Content/Card/components/CardPoster.d.ts +0 -8
  245. package/lib/typescript/src/components/Content/Card/components/CardPoster.d.ts.map +1 -1
  246. package/lib/typescript/src/components/Content/Card/components/NavigateToMore.d.ts.map +1 -1
  247. package/lib/typescript/src/components/Content/Card/components/NoContentFallback.d.ts +1 -2
  248. package/lib/typescript/src/components/Content/Card/components/NoContentFallback.d.ts.map +1 -1
  249. package/lib/typescript/src/components/Content/Card/components/ShowAllButton.d.ts.map +1 -1
  250. package/lib/typescript/src/components/Content/Card/components/ThumbnailCard.d.ts.map +1 -1
  251. package/lib/typescript/src/components/Content/Card/index.d.ts +2 -2
  252. package/lib/typescript/src/components/Content/Content.d.ts.map +1 -1
  253. package/lib/typescript/src/components/Content/Sections.d.ts.map +1 -1
  254. package/lib/typescript/src/components/ContentView/ContentView.d.ts +1 -2
  255. package/lib/typescript/src/components/ContentView/ContentView.d.ts.map +1 -1
  256. package/lib/typescript/src/components/ContentView/MoreContentList.d.ts.map +1 -1
  257. package/lib/typescript/src/components/ContentView/components/AboutSection.d.ts +1 -2
  258. package/lib/typescript/src/components/ContentView/components/AboutSection.d.ts.map +1 -1
  259. package/lib/typescript/src/components/ContentView/components/CastCard.d.ts +1 -6
  260. package/lib/typescript/src/components/ContentView/components/CastCard.d.ts.map +1 -1
  261. package/lib/typescript/src/components/ContentView/components/EpisodeCard.d.ts +1 -2
  262. package/lib/typescript/src/components/ContentView/components/EpisodeCard.d.ts.map +1 -1
  263. package/lib/typescript/src/components/ContentView/components/GenreTags.d.ts +1 -1
  264. package/lib/typescript/src/components/ContentView/components/GenreTags.d.ts.map +1 -1
  265. package/lib/typescript/src/components/ContentView/components/HeroBanner.d.ts +1 -2
  266. package/lib/typescript/src/components/ContentView/components/HeroBanner.d.ts.map +1 -1
  267. package/lib/typescript/src/components/ContentView/components/PlayButton.d.ts +1 -2
  268. package/lib/typescript/src/components/ContentView/components/PlayButton.d.ts.map +1 -1
  269. package/lib/typescript/src/components/ContentView/components/Title.d.ts +1 -1
  270. package/lib/typescript/src/components/ContentView/components/Title.d.ts.map +1 -1
  271. package/lib/typescript/src/components/ContentView/components/TrailerButton.d.ts +1 -2
  272. package/lib/typescript/src/components/ContentView/components/TrailerButton.d.ts.map +1 -1
  273. package/lib/typescript/src/components/Headers/AppHeader.d.ts.map +1 -1
  274. package/lib/typescript/src/components/Headers/One.d.ts.map +1 -1
  275. package/lib/typescript/src/components/Headers/Three.d.ts.map +1 -1
  276. package/lib/typescript/src/components/Headers/Two.d.ts.map +1 -1
  277. package/lib/typescript/src/components/Input/InputOne.d.ts.map +1 -1
  278. package/lib/typescript/src/components/Input/InputTwo.d.ts.map +1 -1
  279. package/lib/typescript/src/components/Input/PhoneNumberInput.d.ts.map +1 -1
  280. package/lib/typescript/src/components/Keyboard/HideKeyboard.d.ts.map +1 -1
  281. package/lib/typescript/src/components/Loader/Loader.d.ts +0 -4
  282. package/lib/typescript/src/components/Loader/Loader.d.ts.map +1 -1
  283. package/lib/typescript/src/components/Logo/Logo.d.ts.map +1 -1
  284. package/lib/typescript/src/components/Search/One.d.ts.map +1 -1
  285. package/lib/typescript/src/components/Search/components/RecentSearchesSection.d.ts.map +1 -1
  286. package/lib/typescript/src/components/Search/components/SearchCard.d.ts.map +1 -1
  287. package/lib/typescript/src/components/Settings/AppSettings.d.ts.map +1 -1
  288. package/lib/typescript/src/components/Subscription/SubOne.d.ts +1 -1
  289. package/lib/typescript/src/components/Subscription/SubOne.d.ts.map +1 -1
  290. package/lib/typescript/src/components/Subscription/index.d.ts +2 -2
  291. package/lib/typescript/src/components/Subscription/index.d.ts.map +1 -1
  292. package/lib/typescript/src/components/TabBar/One.d.ts +2 -2
  293. package/lib/typescript/src/components/TabBar/One.d.ts.map +1 -1
  294. package/lib/typescript/src/components/TabBar/Three.d.ts.map +1 -1
  295. package/lib/typescript/src/components/TabBar/Two.d.ts +1 -1
  296. package/lib/typescript/src/components/TabBar/Two.d.ts.map +1 -1
  297. package/lib/typescript/src/components/TabBar/index.d.ts +2 -2
  298. package/lib/typescript/src/components/Text/Text.d.ts.map +1 -1
  299. package/lib/typescript/src/components/User/DeviceSessions/DeviceSessions.d.ts +1 -1
  300. package/lib/typescript/src/components/User/DeviceSessions/DeviceSessions.d.ts.map +1 -1
  301. package/lib/typescript/src/components/User/WatchHistory/WatchHistory.d.ts.map +1 -1
  302. package/lib/typescript/src/components/User/WatchLater/WatchLater.d.ts.map +1 -1
  303. package/lib/typescript/src/components/User/components/UserAvatar.d.ts.map +1 -1
  304. package/lib/typescript/src/components/User/components/UserSection.d.ts.map +1 -1
  305. package/lib/typescript/src/components/View/View.d.ts.map +1 -1
  306. package/lib/typescript/src/components/index.d.ts +1 -0
  307. package/lib/typescript/src/components/index.d.ts.map +1 -1
  308. package/lib/typescript/src/components/layout/SafeAreaWrapper.d.ts.map +1 -1
  309. package/lib/typescript/src/constants/dummySections.d.ts.map +1 -1
  310. package/lib/typescript/src/hooks/useDebounce.d.ts.map +1 -1
  311. package/lib/typescript/src/hooks/useInitSplashCacheSync.d.ts +1 -1
  312. package/lib/typescript/src/hooks/useInitSplashCacheSync.d.ts.map +1 -1
  313. package/lib/typescript/src/hooks/useKeyboard.d.ts.map +1 -1
  314. package/lib/typescript/src/hooks/usePaginatedSection.d.ts.map +1 -1
  315. package/lib/typescript/src/index.d.ts.map +1 -1
  316. package/lib/typescript/src/store/RecentSearchesStore.d.ts +5 -3
  317. package/lib/typescript/src/store/RecentSearchesStore.d.ts.map +1 -1
  318. package/lib/typescript/src/store/splashStore.d.ts +5 -3
  319. package/lib/typescript/src/store/splashStore.d.ts.map +1 -1
  320. package/lib/typescript/src/theme/ThemeProvider.d.ts.map +1 -1
  321. package/lib/typescript/src/theme/hook/useTheme.d.ts.map +1 -1
  322. package/lib/typescript/src/theme/index.d.ts +5 -0
  323. package/lib/typescript/src/theme/index.d.ts.map +1 -1
  324. package/lib/typescript/src/theme/themes.d.ts +11 -4
  325. package/lib/typescript/src/theme/themes.d.ts.map +1 -1
  326. package/lib/typescript/src/types/content/content-view.types.d.ts.map +1 -1
  327. package/lib/typescript/src/types/hook/usePaginatedSetion.d.ts +1 -1
  328. package/lib/typescript/src/types/hook/usePaginatedSetion.d.ts.map +1 -1
  329. package/package.json +167 -70
  330. package/src/Styles/globalStyles.ts +18 -18
  331. package/src/assets/animations/135037-payment-processing-error.json +1347 -1
  332. package/src/assets/animations/7227-vui-animation.json +3377 -1
  333. package/src/assets/animations/succesfull-payment.json +2379 -1
  334. package/src/assets/animations/voice-icon.json +542 -1
  335. package/src/components/Account/Account.tsx +139 -61
  336. package/src/components/Alert/UAAlert.tsx +168 -0
  337. package/src/components/Alert/index.ts +1 -0
  338. package/src/components/Auth/ForgotPassword/ForgotPassword.tsx +53 -23
  339. package/src/components/Auth/Login/LoginWithEmail.tsx +62 -32
  340. package/src/components/Auth/Login/LoginWithPhone.tsx +55 -24
  341. package/src/components/Auth/OTP/OTP.tsx +77 -32
  342. package/src/components/Auth/SignUp/SignUp.tsx +67 -32
  343. package/src/components/Auth/SplashScreen/SplashScreen.tsx +44 -16
  344. package/src/components/Auth/SplashScreen/components/SplashImage/SplashImage.tsx +21 -12
  345. package/src/components/Auth/SplashScreen/components/SplashLottie/SplashLottie.tsx +5 -5
  346. package/src/components/Auth/SplashScreen/components/SplashVideo/SplashVideo.tsx +15 -5
  347. package/src/components/Auth/index.ts +1 -1
  348. package/src/components/BackgroundLayout/BackgroundLayout.tsx +45 -17
  349. package/src/components/BlogView/BlogView.tsx +51 -31
  350. package/src/components/Button/BackBtn.tsx +31 -9
  351. package/src/components/Button/MenuBtn.tsx +61 -22
  352. package/src/components/Button/PrimaryBtn.tsx +30 -10
  353. package/src/components/Button/TextButton.tsx +30 -15
  354. package/src/components/Button/index.ts +1 -1
  355. package/src/components/Content/Card/Category/Category.tsx +73 -32
  356. package/src/components/Content/Card/NowWatching/NowWatching.tsx +102 -44
  357. package/src/components/Content/Card/Sliders/Styles/One.tsx +89 -38
  358. package/src/components/Content/Card/Sliders/Styles/Two.tsx +47 -21
  359. package/src/components/Content/Card/Sliders/index.ts +2 -2
  360. package/src/components/Content/Card/Styles/Five.tsx +65 -22
  361. package/src/components/Content/Card/Styles/Four.tsx +73 -23
  362. package/src/components/Content/Card/Styles/One.tsx +68 -21
  363. package/src/components/Content/Card/Styles/RotateInOut.tsx +59 -23
  364. package/src/components/Content/Card/Styles/Six.tsx +57 -19
  365. package/src/components/Content/Card/Styles/Three.tsx +59 -23
  366. package/src/components/Content/Card/Styles/TopTen.tsx +59 -26
  367. package/src/components/Content/Card/Styles/Two.tsx +39 -18
  368. package/src/components/Content/Card/components/CardPoster.tsx +34 -32
  369. package/src/components/Content/Card/components/NavigateToMore.tsx +17 -7
  370. package/src/components/Content/Card/components/NoContentFallback.tsx +36 -19
  371. package/src/components/Content/Card/components/ShowAllButton.tsx +12 -8
  372. package/src/components/Content/Card/components/ThumbnailCard.tsx +26 -17
  373. package/src/components/Content/Card/index.ts +2 -2
  374. package/src/components/Content/Content.tsx +41 -17
  375. package/src/components/Content/Sections.tsx +14 -8
  376. package/src/components/ContentView/ContentView.tsx +34 -27
  377. package/src/components/ContentView/MoreContentList.tsx +40 -18
  378. package/src/components/ContentView/components/AboutSection.tsx +30 -12
  379. package/src/components/ContentView/components/CastCard.tsx +65 -24
  380. package/src/components/ContentView/components/EpisodeCard.tsx +109 -44
  381. package/src/components/ContentView/components/GenreTags.tsx +35 -11
  382. package/src/components/ContentView/components/HeroBanner.tsx +52 -21
  383. package/src/components/ContentView/components/PlayButton.tsx +13 -5
  384. package/src/components/ContentView/components/Title.tsx +30 -10
  385. package/src/components/ContentView/components/TrailerButton.tsx +16 -7
  386. package/src/components/Headers/AppHeader.tsx +40 -14
  387. package/src/components/Headers/One.tsx +18 -9
  388. package/src/components/Headers/Three.tsx +22 -7
  389. package/src/components/Headers/Two.tsx +24 -13
  390. package/src/components/Headers/index.ts +1 -1
  391. package/src/components/Input/Input.ts +1 -1
  392. package/src/components/Input/InputOne.tsx +69 -23
  393. package/src/components/Input/InputTwo.tsx +41 -18
  394. package/src/components/Input/PhoneNumberInput.tsx +94 -48
  395. package/src/components/Keyboard/HideKeyboard.tsx +16 -10
  396. package/src/components/Loader/Loader.tsx +3 -8
  397. package/src/components/Logo/Logo.tsx +17 -9
  398. package/src/components/Search/One.tsx +46 -17
  399. package/src/components/Search/components/RecentSearchesSection.tsx +48 -21
  400. package/src/components/Search/components/SearchCard.tsx +34 -16
  401. package/src/components/Search/index.ts +1 -1
  402. package/src/components/Settings/AppSettings.tsx +80 -29
  403. package/src/components/Subscription/SubOne.tsx +84 -39
  404. package/src/components/Subscription/index.ts +1 -1
  405. package/src/components/TabBar/One.tsx +22 -18
  406. package/src/components/TabBar/Three.tsx +55 -19
  407. package/src/components/TabBar/Two.tsx +16 -12
  408. package/src/components/TabBar/index.ts +1 -1
  409. package/src/components/Text/Text.tsx +7 -3
  410. package/src/components/User/DeviceSessions/DeviceSessions.tsx +93 -38
  411. package/src/components/User/WatchHistory/WatchHistory.tsx +37 -12
  412. package/src/components/User/WatchLater/WatchLater.tsx +94 -31
  413. package/src/components/User/components/UserAvatar.tsx +8 -4
  414. package/src/components/User/components/UserSection.tsx +34 -19
  415. package/src/components/View/View.tsx +11 -2
  416. package/src/components/index.ts +1 -0
  417. package/src/components/layout/SafeAreaWrapper.tsx +10 -4
  418. package/src/constants/dummySections.ts +9 -7
  419. package/src/hooks/useDebounce.ts +4 -1
  420. package/src/hooks/useInitSplashCacheSync.ts +46 -18
  421. package/src/hooks/useKeyboard.ts +5 -3
  422. package/src/hooks/usePaginatedSection.ts +11 -7
  423. package/src/store/RecentSearchesStore.ts +12 -7
  424. package/src/store/splashStore.ts +16 -16
  425. package/src/theme/ThemeProvider.tsx +50 -20
  426. package/src/theme/hook/useTheme.ts +7 -3
  427. package/src/theme/index.ts +6 -0
  428. package/src/theme/themes.ts +42 -31
  429. package/src/types/content/content-view.types.ts +4 -1
  430. package/src/types/hook/usePaginatedSetion.ts +1 -1
  431. package/lib/module/components/Icons/AlertIcon.js +0 -33
  432. package/lib/module/components/Icons/AlertIcon.js.map +0 -1
  433. package/lib/module/components/Icons/DeviceIcon.js +0 -25
  434. package/lib/module/components/Icons/DeviceIcon.js.map +0 -1
  435. package/lib/module/components/Icons/DoneIcon/DoneIcon.js +0 -23
  436. package/lib/module/components/Icons/DoneIcon/DoneIcon.js.map +0 -1
  437. package/lib/module/components/Icons/ForgotPasswordMessageIcon.js +0 -65
  438. package/lib/module/components/Icons/ForgotPasswordMessageIcon.js.map +0 -1
  439. package/lib/module/components/Icons/ForgotPasswordMessageIconTwo.js +0 -56
  440. package/lib/module/components/Icons/ForgotPasswordMessageIconTwo.js.map +0 -1
  441. package/lib/module/components/Icons/NewIndex.js +0 -36
  442. package/lib/module/components/Icons/NewIndex.js.map +0 -1
  443. package/lib/module/components/Icons/ResendOTP.js +0 -21
  444. package/lib/module/components/Icons/ResendOTP.js.map +0 -1
  445. package/lib/typescript/src/components/Icons/AlertIcon.d.ts +0 -7
  446. package/lib/typescript/src/components/Icons/AlertIcon.d.ts.map +0 -1
  447. package/lib/typescript/src/components/Icons/DeviceIcon.d.ts +0 -7
  448. package/lib/typescript/src/components/Icons/DeviceIcon.d.ts.map +0 -1
  449. package/lib/typescript/src/components/Icons/DoneIcon/DoneIcon.d.ts +0 -6
  450. package/lib/typescript/src/components/Icons/DoneIcon/DoneIcon.d.ts.map +0 -1
  451. package/lib/typescript/src/components/Icons/ForgotPasswordMessageIcon.d.ts +0 -3
  452. package/lib/typescript/src/components/Icons/ForgotPasswordMessageIcon.d.ts.map +0 -1
  453. package/lib/typescript/src/components/Icons/ForgotPasswordMessageIconTwo.d.ts +0 -3
  454. package/lib/typescript/src/components/Icons/ForgotPasswordMessageIconTwo.d.ts.map +0 -1
  455. package/lib/typescript/src/components/Icons/NewIndex.d.ts +0 -19
  456. package/lib/typescript/src/components/Icons/NewIndex.d.ts.map +0 -1
  457. package/lib/typescript/src/components/Icons/ResendOTP.d.ts +0 -7
  458. package/lib/typescript/src/components/Icons/ResendOTP.d.ts.map +0 -1
  459. package/src/components/Icons/AlertIcon.tsx +0 -18
  460. package/src/components/Icons/DeviceIcon.tsx +0 -18
  461. package/src/components/Icons/DoneIcon/DoneIcon.tsx +0 -17
  462. package/src/components/Icons/ForgotPasswordMessageIcon.tsx +0 -34
  463. package/src/components/Icons/ForgotPasswordMessageIconTwo.tsx +0 -32
  464. package/src/components/Icons/NewIndex.ts +0 -35
  465. package/src/components/Icons/ResendOTP.tsx +0 -13
  466. /package/src/{index.ts → index.tsx} +0 -0
@@ -16,7 +16,7 @@ import {
16
16
  UIManager,
17
17
  StatusBar,
18
18
  type StyleProp,
19
- type ViewStyle
19
+ type ViewStyle,
20
20
  } from 'react-native';
21
21
  import { Ellipsis } from 'lucide-react-native';
22
22
  import { useSafeAreaInsets } from 'react-native-safe-area-context';
@@ -34,15 +34,26 @@ type MenuBtnProps = {
34
34
  enableBlur?: boolean;
35
35
  };
36
36
 
37
- const MenuBtn: React.FC<MenuBtnProps> = ({ actions, theme, style, enableBlur = false }) => {
37
+ const MenuBtn: React.FC<MenuBtnProps> = ({
38
+ actions,
39
+ theme,
40
+ style,
41
+ enableBlur = false,
42
+ }) => {
38
43
  const insets = useSafeAreaInsets();
39
44
  const { theme: appliedTheme } = useTheme(theme);
40
45
  const [visible, setVisible] = useState(false);
41
- const [menuPosition, setMenuPosition] = useState<{ top: number; right: number }>({ top: 0, right: scale(13) });
46
+ const [menuPosition, setMenuPosition] = useState<{
47
+ top: number;
48
+ right: number;
49
+ }>({ top: 0, right: scale(13) });
42
50
 
43
51
  const btnRef = useRef(null);
44
52
 
45
- const flattenedStyle = useMemo(() => StyleSheet.flatten(style) || {}, [style]);
53
+ const flattenedStyle = useMemo(
54
+ () => StyleSheet.flatten(style) || {},
55
+ [style]
56
+ );
46
57
  const shouldRenderBlur = useMemo(
47
58
  () => enableBlur && !!flattenedStyle.backgroundColor,
48
59
  [enableBlur, flattenedStyle.backgroundColor]
@@ -52,8 +63,14 @@ const MenuBtn: React.FC<MenuBtnProps> = ({ actions, theme, style, enableBlur = f
52
63
  const handle = findNodeHandle(btnRef.current);
53
64
  if (handle) {
54
65
  UIManager.measureInWindow(handle, (_x, y, _w, _h) => {
55
- const extraOffset = Platform.OS === 'android' ? (StatusBar.currentHeight ?? 0) - verticalScale(2) : 0;
56
- setMenuPosition({ top: y + verticalScale(32) + extraOffset, right: scale(13) });
66
+ const extraOffset =
67
+ Platform.OS === 'android'
68
+ ? (StatusBar.currentHeight ?? 0) - verticalScale(2)
69
+ : 0;
70
+ setMenuPosition({
71
+ top: y + verticalScale(32) + extraOffset,
72
+ right: scale(13),
73
+ });
57
74
  setVisible(true);
58
75
  });
59
76
  } else {
@@ -69,7 +86,11 @@ const MenuBtn: React.FC<MenuBtnProps> = ({ actions, theme, style, enableBlur = f
69
86
  <TouchableOpacity
70
87
  ref={btnRef}
71
88
  activeOpacity={0.7}
72
- style={[styles.container, { top: insets.top + verticalScale(5) }, style]}
89
+ style={[
90
+ styles.container,
91
+ { top: insets.top + verticalScale(5) },
92
+ style,
93
+ ]}
73
94
  onPress={openMenu}
74
95
  >
75
96
  {shouldRenderBlur && Platform.OS === 'ios' ? (
@@ -77,13 +98,19 @@ const MenuBtn: React.FC<MenuBtnProps> = ({ actions, theme, style, enableBlur = f
77
98
  style={StyleSheet.absoluteFill}
78
99
  blurType="light"
79
100
  blurAmount={10}
80
- reducedTransparencyFallbackColor={String(flattenedStyle.backgroundColor || appliedTheme.colors.backdrop)}
101
+ reducedTransparencyFallbackColor={String(
102
+ flattenedStyle.backgroundColor || appliedTheme.colors.backdrop
103
+ )}
81
104
  />
82
105
  ) : (
83
106
  <View
84
107
  style={[
85
108
  StyleSheet.absoluteFill,
86
- { backgroundColor: flattenedStyle.backgroundColor || appliedTheme.colors.backdrop }
109
+ {
110
+ backgroundColor:
111
+ flattenedStyle.backgroundColor ||
112
+ appliedTheme.colors.backdrop,
113
+ },
87
114
  ]}
88
115
  />
89
116
  )}
@@ -108,8 +135,8 @@ const MenuBtn: React.FC<MenuBtnProps> = ({ actions, theme, style, enableBlur = f
108
135
  position: 'absolute',
109
136
  top: menuPosition.top,
110
137
  right: menuPosition.right,
111
- backgroundColor: appliedTheme.colors.surface
112
- }
138
+ backgroundColor: appliedTheme.colors.surface,
139
+ },
113
140
  ]}
114
141
  >
115
142
  {memoizedActions.map((action, index) => (
@@ -127,16 +154,28 @@ const MenuBtn: React.FC<MenuBtnProps> = ({ actions, theme, style, enableBlur = f
127
154
  style={({ pressed }) => [
128
155
  styles.menuItem,
129
156
  {
130
- backgroundColor: pressed ? appliedTheme.colors.surfaceVariant : 'transparent'
131
- }
157
+ backgroundColor: pressed
158
+ ? appliedTheme.colors.surfaceVariant
159
+ : 'transparent',
160
+ },
132
161
  ]}
133
162
  >
134
163
  {action?.icon && (
135
164
  <View style={styles.iconBox}>
136
- <action.icon size={scale(18)} color={appliedTheme.colors.textPrimary} />
165
+ <action.icon
166
+ size={scale(18)}
167
+ color={appliedTheme.colors.textPrimary}
168
+ />
137
169
  </View>
138
170
  )}
139
- <Text style={[styles.label, { color: appliedTheme.colors.textPrimary }]}>{action.label}</Text>
171
+ <Text
172
+ style={[
173
+ styles.label,
174
+ { color: appliedTheme.colors.textPrimary },
175
+ ]}
176
+ >
177
+ {action.label}
178
+ </Text>
140
179
  </Pressable>
141
180
  ))}
142
181
  </Pressable>
@@ -157,11 +196,11 @@ const styles = StyleSheet.create({
157
196
  justifyContent: 'center',
158
197
  alignItems: 'center',
159
198
  overflow: 'hidden',
160
- zIndex: 4
199
+ zIndex: 4,
161
200
  },
162
201
  modalRoot: {
163
202
  ...StyleSheet.absoluteFillObject,
164
- backgroundColor: 'rgba(0,0,0,0.2)'
203
+ backgroundColor: 'rgba(0,0,0,0.2)',
165
204
  },
166
205
  menuBox: {
167
206
  borderRadius: scale(6),
@@ -171,20 +210,20 @@ const styles = StyleSheet.create({
171
210
  shadowOpacity: 0.15,
172
211
  shadowRadius: 4,
173
212
  minWidth: scale(150),
174
- paddingVertical: verticalScale(2)
213
+ paddingVertical: verticalScale(2),
175
214
  },
176
215
  menuItem: {
177
216
  flexDirection: 'row',
178
217
  alignItems: 'center',
179
218
  paddingVertical: verticalScale(8),
180
219
  paddingHorizontal: scale(10),
181
- borderRadius: scale(5)
220
+ borderRadius: scale(5),
182
221
  },
183
222
  iconBox: {
184
- marginRight: scale(8)
223
+ marginRight: scale(8),
185
224
  },
186
225
  label: {
187
226
  fontSize: RFValue(12),
188
- includeFontPadding: false
189
- }
227
+ includeFontPadding: false,
228
+ },
190
229
  });
@@ -11,7 +11,7 @@ import {
11
11
  View,
12
12
  type GestureResponderEvent,
13
13
  type ViewStyle,
14
- type TextStyle
14
+ type TextStyle,
15
15
  } from 'react-native';
16
16
  import { scale, verticalScale } from 'react-native-size-matters';
17
17
  import { useTheme } from '../../theme/hook/useTheme';
@@ -38,10 +38,13 @@ export const PrimaryBtn: React.FC<PrimaryBtnProps> = ({
38
38
  disabled = false,
39
39
  containerStyle,
40
40
  titleStyle,
41
- theme
41
+ theme,
42
42
  }) => {
43
43
  const { theme: appliedTheme } = useTheme(theme);
44
- const backgroundColor = disabled || loading ? appliedTheme.colors?.buttonDisabled : appliedTheme.colors?.button;
44
+ const backgroundColor =
45
+ disabled || loading
46
+ ? appliedTheme.colors?.buttonDisabled
47
+ : appliedTheme.colors?.button;
45
48
 
46
49
  return (
47
50
  <TouchableOpacity
@@ -54,13 +57,30 @@ export const PrimaryBtn: React.FC<PrimaryBtnProps> = ({
54
57
  >
55
58
  {loading ? (
56
59
  <View style={styles.row}>
57
- <ActivityIndicator color={appliedTheme.colors.buttonText} style={{ marginRight: scale(8) }} />
58
- <Text style={[styles.text, { color: appliedTheme.colors.buttonText, opacity: 0.75 }, titleStyle]}>
60
+ <ActivityIndicator
61
+ color={appliedTheme.colors.buttonText}
62
+ style={{ marginRight: scale(8) }}
63
+ />
64
+ <Text
65
+ style={[
66
+ styles.text,
67
+ { color: appliedTheme.colors.buttonText, opacity: 0.75 },
68
+ titleStyle,
69
+ ]}
70
+ >
59
71
  {loadingText}
60
72
  </Text>
61
73
  </View>
62
74
  ) : (
63
- <Text style={[styles.text, { color: appliedTheme.colors.buttonText }, titleStyle]}>{title}</Text>
75
+ <Text
76
+ style={[
77
+ styles.text,
78
+ { color: appliedTheme.colors.buttonText },
79
+ titleStyle,
80
+ ]}
81
+ >
82
+ {title}
83
+ </Text>
64
84
  )}
65
85
  </TouchableOpacity>
66
86
  );
@@ -74,16 +94,16 @@ const styles = StyleSheet.create({
74
94
  paddingHorizontal: scale(16),
75
95
  borderRadius: scale(6),
76
96
  alignItems: 'center',
77
- justifyContent: 'center'
97
+ justifyContent: 'center',
78
98
  },
79
99
  text: {
80
100
  textAlign: 'center',
81
101
  fontSize: RFValue(13),
82
- fontWeight: '600'
102
+ fontWeight: '600',
83
103
  },
84
104
  row: {
85
105
  flexDirection: 'row',
86
106
  alignItems: 'center',
87
- justifyContent: 'center'
88
- }
107
+ justifyContent: 'center',
108
+ },
89
109
  });
@@ -1,5 +1,12 @@
1
1
  import React from 'react';
2
- import { StyleSheet, Pressable, View, type GestureResponderEvent, type TextStyle, type ViewStyle } from 'react-native';
2
+ import {
3
+ StyleSheet,
4
+ Pressable,
5
+ View,
6
+ type GestureResponderEvent,
7
+ type TextStyle,
8
+ type ViewStyle,
9
+ } from 'react-native';
3
10
  import { useTheme } from '../../theme/hook/useTheme';
4
11
  import { scale, verticalScale } from 'react-native-size-matters';
5
12
  import { Text } from '../Text';
@@ -28,21 +35,24 @@ const TextButton: React.FC<TextButtonProps> = ({
28
35
  underline = false,
29
36
  bold = false,
30
37
  align = 'center',
31
- leftIcon
38
+ leftIcon,
32
39
  }) => {
33
40
  const { theme } = useTheme();
34
41
 
35
- const alignSelfMap: Record<'left' | 'center' | 'right', ViewStyle['alignSelf']> = {
42
+ const alignSelfMap: Record<
43
+ 'left' | 'center' | 'right',
44
+ ViewStyle['alignSelf']
45
+ > = {
36
46
  left: 'flex-start',
37
47
  center: 'center',
38
- right: 'flex-end'
48
+ right: 'flex-end',
39
49
  };
40
50
  const alignSelf = alignSelfMap[align];
41
51
 
42
52
  const textStyle: TextStyle = {
43
53
  textAlign: align,
44
54
  textDecorationLine: underline ? 'underline' : 'none',
45
- fontWeight: bold ? '700' : '400'
55
+ fontWeight: bold ? '700' : '400',
46
56
  };
47
57
 
48
58
  return (
@@ -56,15 +66,20 @@ const TextButton: React.FC<TextButtonProps> = ({
56
66
  { alignSelf },
57
67
  containerStyle,
58
68
  pressed && styles.pressed,
59
- disabled && styles.disabled
69
+ disabled && styles.disabled,
60
70
  ]}
61
71
  >
62
72
  <View
63
73
  style={[
64
74
  styles.row,
65
75
  {
66
- justifyContent: align === 'left' ? 'flex-start' : align === 'right' ? 'flex-end' : 'center'
67
- }
76
+ justifyContent:
77
+ align === 'left'
78
+ ? 'flex-start'
79
+ : align === 'right'
80
+ ? 'flex-end'
81
+ : 'center',
82
+ },
68
83
  ]}
69
84
  >
70
85
  {leftIcon && <View style={styles.iconSpacing}>{leftIcon}</View>}
@@ -87,22 +102,22 @@ export default TextButton;
87
102
  const styles = StyleSheet.create({
88
103
  defaultContainer: {
89
104
  paddingVertical: verticalScale(4),
90
- paddingHorizontal: scale(6)
105
+ paddingHorizontal: scale(6),
91
106
  },
92
107
  text: {
93
- fontSize: RFValue(10)
108
+ fontSize: RFValue(10),
94
109
  },
95
110
  row: {
96
111
  flexDirection: 'row',
97
- alignItems: 'center'
112
+ alignItems: 'center',
98
113
  },
99
114
  iconSpacing: {
100
- marginRight: scale(1)
115
+ marginRight: scale(1),
101
116
  },
102
117
  pressed: {
103
- opacity: 0.6
118
+ opacity: 0.6,
104
119
  },
105
120
  disabled: {
106
- opacity: 0.4
107
- }
121
+ opacity: 0.4,
122
+ },
108
123
  });
@@ -10,7 +10,7 @@ import TextButton from './TextButton';
10
10
  const Button = {
11
11
  Primary: PrimaryBtn,
12
12
  BackBtn,
13
- TextButton
13
+ TextButton,
14
14
  };
15
15
 
16
16
  export { Button };
@@ -3,7 +3,14 @@
3
3
  * @lastModified Mon 30 Jun 2025 at 10:46 PM
4
4
  */
5
5
 
6
- import React, { useRef, useLayoutEffect, useCallback, useMemo, useState, useEffect } from 'react';
6
+ import React, {
7
+ useRef,
8
+ useLayoutEffect,
9
+ useCallback,
10
+ useMemo,
11
+ useState,
12
+ useEffect,
13
+ } from 'react';
7
14
  import {
8
15
  View,
9
16
  FlatList,
@@ -12,7 +19,7 @@ import {
12
19
  Dimensions,
13
20
  InteractionManager,
14
21
  type LayoutChangeEvent,
15
- type ListRenderItemInfo
22
+ type ListRenderItemInfo,
16
23
  } from 'react-native';
17
24
  import { Text } from '../../../Text';
18
25
  import { useTheme } from '../../../../theme/hook/useTheme';
@@ -53,18 +60,29 @@ function usePrevious<T>(value: T): T | undefined {
53
60
  }
54
61
 
55
62
  const CategoryCard = React.memo(
56
- ({ category = [], activeCategory, onPressCategory, theme, mode = 'text', isLoading = false }: CategoryCardProps) => {
63
+ ({
64
+ category = [],
65
+ activeCategory,
66
+ onPressCategory,
67
+ theme,
68
+ mode = 'text',
69
+ isLoading = false,
70
+ }: CategoryCardProps) => {
57
71
  const { theme: appliedTheme } = useTheme(theme);
58
72
  const flatListRef = useRef<FlatList<ICategory>>(null);
59
73
  const [itemWidths, setItemWidths] = useState<number[]>([]);
60
74
 
61
- const selectedCategory = useMemo(() => activeCategory || category?.[0] || null, [activeCategory, category]);
75
+ const selectedCategory = useMemo(
76
+ () => activeCategory || category?.[0] || null,
77
+ [activeCategory, category]
78
+ );
62
79
 
63
80
  const prevCategoryId = usePrevious(selectedCategory?._id);
64
81
 
65
82
  const scrollToCategory = useCallback(
66
83
  (index: number, animated: boolean) => {
67
- if (!flatListRef.current || index < 0 || index >= category.length) return;
84
+ if (!flatListRef.current || index < 0 || index >= category.length)
85
+ return;
68
86
 
69
87
  const RIGHT_SCROLL_BIAS = scale(40);
70
88
  const offset = itemWidths.length
@@ -72,30 +90,42 @@ const CategoryCard = React.memo(
72
90
  (itemWidths[index] ?? ITEM_WIDTH) / 2 -
73
91
  SCREEN_WIDTH / 2 +
74
92
  RIGHT_SCROLL_BIAS
75
- : index * ITEM_WIDTH + ITEM_WIDTH / 2 - SCREEN_WIDTH / 2 + RIGHT_SCROLL_BIAS;
93
+ : index * ITEM_WIDTH +
94
+ ITEM_WIDTH / 2 -
95
+ SCREEN_WIDTH / 2 +
96
+ RIGHT_SCROLL_BIAS;
76
97
 
77
98
  InteractionManager.runAfterInteractions(() => {
78
99
  flatListRef.current?.scrollToOffset({
79
100
  offset: Math.max(0, offset),
80
- animated
101
+ animated,
81
102
  });
82
103
  });
83
104
  },
84
105
  [category, itemWidths]
85
106
  );
86
107
 
87
- const onItemLayout = useCallback((event: LayoutChangeEvent, index: number) => {
88
- const { width } = event.nativeEvent.layout;
89
- setItemWidths((prev) => {
90
- const newWidths = [...prev];
91
- newWidths[index] = width;
92
- return newWidths;
93
- });
94
- }, []);
108
+ const onItemLayout = useCallback(
109
+ (event: LayoutChangeEvent, index: number) => {
110
+ const { width } = event.nativeEvent.layout;
111
+ setItemWidths((prev) => {
112
+ const newWidths = [...prev];
113
+ newWidths[index] = width;
114
+ return newWidths;
115
+ });
116
+ },
117
+ []
118
+ );
95
119
 
96
120
  useLayoutEffect(() => {
97
- if (selectedCategory && category.length > 0 && selectedCategory._id !== prevCategoryId) {
98
- const index = category.findIndex((cat) => cat._id === selectedCategory._id);
121
+ if (
122
+ selectedCategory &&
123
+ category.length > 0 &&
124
+ selectedCategory._id !== prevCategoryId
125
+ ) {
126
+ const index = category.findIndex(
127
+ (cat) => cat._id === selectedCategory._id
128
+ );
99
129
  if (index >= 0) scrollToCategory(index, true);
100
130
  }
101
131
  }, [selectedCategory, category, scrollToCategory, prevCategoryId]);
@@ -121,9 +151,13 @@ const CategoryCard = React.memo(
121
151
  isFilledMode && {
122
152
  borderRadius: scale(8),
123
153
  borderWidth: scale(1),
124
- borderColor: isSelected ? appliedTheme.colors.primary : appliedTheme.colors.outline,
125
- backgroundColor: isSelected ? appliedTheme.colors.primary : 'transparent'
126
- }
154
+ borderColor: isSelected
155
+ ? appliedTheme.colors.primary
156
+ : appliedTheme.colors.outline,
157
+ backgroundColor: isSelected
158
+ ? appliedTheme.colors.primary
159
+ : 'transparent',
160
+ },
127
161
  ];
128
162
 
129
163
  const textColor = isFilledMode
@@ -146,14 +180,19 @@ const CategoryCard = React.memo(
146
180
  style={[
147
181
  styles.tabText,
148
182
  {
149
- color: textColor
150
- }
183
+ color: textColor,
184
+ },
151
185
  ]}
152
186
  >
153
187
  {item.name}
154
188
  </Text>
155
189
  {mode === 'text' && isSelected && (
156
- <View style={[styles.underline, { backgroundColor: appliedTheme.colors.primary }]} />
190
+ <View
191
+ style={[
192
+ styles.underline,
193
+ { backgroundColor: appliedTheme.colors.primary },
194
+ ]}
195
+ />
157
196
  )}
158
197
  </TouchableOpacity>
159
198
  );
@@ -175,7 +214,7 @@ const CategoryCard = React.memo(
175
214
  width: ITEM_WIDTH - scale(20),
176
215
  height: verticalScale(26),
177
216
  borderRadius: scale(8),
178
- marginRight: scale(8)
217
+ marginRight: scale(8),
179
218
  }}
180
219
  />
181
220
  ))}
@@ -188,8 +227,10 @@ const CategoryCard = React.memo(
188
227
  const getItemLayout = useCallback(
189
228
  (_: unknown, index: number) => ({
190
229
  length: itemWidths[index] || ITEM_WIDTH,
191
- offset: itemWidths.slice(0, index).reduce((sum, width) => sum + (width || ITEM_WIDTH), 0),
192
- index
230
+ offset: itemWidths
231
+ .slice(0, index)
232
+ .reduce((sum, width) => sum + (width || ITEM_WIDTH), 0),
233
+ index,
193
234
  }),
194
235
  [itemWidths]
195
236
  );
@@ -232,32 +273,32 @@ const CategoryCard = React.memo(
232
273
  const styles = StyleSheet.create({
233
274
  container: {
234
275
  marginVertical: verticalScale(2),
235
- paddingVertical: verticalScale(10)
276
+ paddingVertical: verticalScale(10),
236
277
  },
237
278
  listContainer: {
238
279
  paddingLeft: CONTAINER_PADDING,
239
280
  flexDirection: 'row',
240
- paddingRight: CONTAINER_PADDING + scale(2)
281
+ paddingRight: CONTAINER_PADDING + scale(2),
241
282
  },
242
283
  tabContainer: {
243
284
  alignItems: 'center',
244
285
  justifyContent: 'center',
245
286
  marginRight: scale(8),
246
287
  paddingHorizontal: scale(12),
247
- paddingVertical: verticalScale(6)
288
+ paddingVertical: verticalScale(6),
248
289
  },
249
290
  tabText: {
250
291
  fontSize: RFValue(10),
251
292
  textTransform: 'capitalize',
252
293
  fontWeight: '500',
253
- lineHeight: scale(13)
294
+ lineHeight: scale(13),
254
295
  },
255
296
  underline: {
256
297
  marginTop: verticalScale(2),
257
298
  height: scale(2),
258
299
  width: '60%',
259
- borderRadius: scale(2)
260
- }
300
+ borderRadius: scale(2),
301
+ },
261
302
  });
262
303
 
263
304
  export default CategoryCard;