@oxyhq/services 5.4.0 → 5.4.2

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 (395) hide show
  1. package/package.json +3 -2
  2. package/src/__tests__/ui/screens/AccountSettingsScreen.test.tsx +8 -8
  3. package/src/core/index.ts +103 -0
  4. package/src/lib/sonner.ts +9 -4
  5. package/src/ui/components/OxyProvider.tsx +5 -5
  6. package/src/ui/context/OxyContext.tsx +61 -41
  7. package/src/ui/screens/AccountManagementDemo.tsx +1 -1
  8. package/src/ui/screens/AccountOverviewScreen.tsx +44 -26
  9. package/src/ui/screens/AccountSettingsScreen.tsx +25 -19
  10. package/src/ui/screens/AppInfoScreen.tsx +5 -5
  11. package/src/ui/screens/FileManagementScreen.tsx +246 -211
  12. package/src/ui/screens/SignInScreen.tsx +382 -326
  13. package/src/ui/screens/SignUpScreen.tsx +443 -273
  14. package/src/ui/screens/karma/KarmaFAQScreen.tsx +50 -29
  15. package/lib/commonjs/assets/OxyLogo.svg +0 -1
  16. package/lib/commonjs/assets/assets/OxyLogo.svg +0 -1
  17. package/lib/commonjs/assets/assets/fonts/Phudu/Phudu-Black.ttf +0 -0
  18. package/lib/commonjs/assets/assets/fonts/Phudu/Phudu-Bold.ttf +0 -0
  19. package/lib/commonjs/assets/assets/fonts/Phudu/Phudu-ExtraBold.ttf +0 -0
  20. package/lib/commonjs/assets/assets/fonts/Phudu/Phudu-Light.ttf +0 -0
  21. package/lib/commonjs/assets/assets/fonts/Phudu/Phudu-Medium.ttf +0 -0
  22. package/lib/commonjs/assets/assets/fonts/Phudu/Phudu-Regular.ttf +0 -0
  23. package/lib/commonjs/assets/assets/fonts/Phudu/Phudu-SemiBold.ttf +0 -0
  24. package/lib/commonjs/assets/assets/icons/OxyServices.tsx +0 -67
  25. package/lib/commonjs/assets/assets/icons/logo_OxyServices.svg +0 -1
  26. package/lib/commonjs/assets/fonts/Phudu/Phudu-Black.ttf +0 -0
  27. package/lib/commonjs/assets/fonts/Phudu/Phudu-Bold.ttf +0 -0
  28. package/lib/commonjs/assets/fonts/Phudu/Phudu-ExtraBold.ttf +0 -0
  29. package/lib/commonjs/assets/fonts/Phudu/Phudu-Light.ttf +0 -0
  30. package/lib/commonjs/assets/fonts/Phudu/Phudu-Medium.ttf +0 -0
  31. package/lib/commonjs/assets/fonts/Phudu/Phudu-Regular.ttf +0 -0
  32. package/lib/commonjs/assets/fonts/Phudu/Phudu-SemiBold.ttf +0 -0
  33. package/lib/commonjs/assets/icons/OxyServices.js +0 -53
  34. package/lib/commonjs/assets/icons/OxyServices.js.map +0 -1
  35. package/lib/commonjs/assets/icons/logo_OxyServices.svg +0 -1
  36. package/lib/commonjs/constants/version.js +0 -28
  37. package/lib/commonjs/constants/version.js.map +0 -1
  38. package/lib/commonjs/core/index.js +0 -1543
  39. package/lib/commonjs/core/index.js.map +0 -1
  40. package/lib/commonjs/index.js +0 -160
  41. package/lib/commonjs/index.js.map +0 -1
  42. package/lib/commonjs/lib/react-native-polyfills.js +0 -181
  43. package/lib/commonjs/lib/react-native-polyfills.js.map +0 -1
  44. package/lib/commonjs/lib/sonner-safe.js +0 -41
  45. package/lib/commonjs/lib/sonner-safe.js.map +0 -1
  46. package/lib/commonjs/lib/sonner.js +0 -18
  47. package/lib/commonjs/lib/sonner.js.map +0 -1
  48. package/lib/commonjs/lib/sonner.web.js +0 -17
  49. package/lib/commonjs/lib/sonner.web.js.map +0 -1
  50. package/lib/commonjs/models/interfaces.js +0 -2
  51. package/lib/commonjs/models/interfaces.js.map +0 -1
  52. package/lib/commonjs/models/secureSession.js +0 -2
  53. package/lib/commonjs/models/secureSession.js.map +0 -1
  54. package/lib/commonjs/node/index.js +0 -54
  55. package/lib/commonjs/node/index.js.map +0 -1
  56. package/lib/commonjs/package.json +0 -1
  57. package/lib/commonjs/ui/components/Avatar.js +0 -98
  58. package/lib/commonjs/ui/components/Avatar.js.map +0 -1
  59. package/lib/commonjs/ui/components/FollowButton.js +0 -246
  60. package/lib/commonjs/ui/components/FollowButton.js.map +0 -1
  61. package/lib/commonjs/ui/components/FontLoader.js +0 -181
  62. package/lib/commonjs/ui/components/FontLoader.js.map +0 -1
  63. package/lib/commonjs/ui/components/GroupedItem.js +0 -109
  64. package/lib/commonjs/ui/components/GroupedItem.js.map +0 -1
  65. package/lib/commonjs/ui/components/GroupedSection.js +0 -33
  66. package/lib/commonjs/ui/components/GroupedSection.js.map +0 -1
  67. package/lib/commonjs/ui/components/OxyLogo.js +0 -56
  68. package/lib/commonjs/ui/components/OxyLogo.js.map +0 -1
  69. package/lib/commonjs/ui/components/OxyProvider.js +0 -517
  70. package/lib/commonjs/ui/components/OxyProvider.js.map +0 -1
  71. package/lib/commonjs/ui/components/OxySignInButton.js +0 -178
  72. package/lib/commonjs/ui/components/OxySignInButton.js.map +0 -1
  73. package/lib/commonjs/ui/components/ProfileCard.js +0 -124
  74. package/lib/commonjs/ui/components/ProfileCard.js.map +0 -1
  75. package/lib/commonjs/ui/components/QuickActions.js +0 -87
  76. package/lib/commonjs/ui/components/QuickActions.js.map +0 -1
  77. package/lib/commonjs/ui/components/Section.js +0 -36
  78. package/lib/commonjs/ui/components/Section.js.map +0 -1
  79. package/lib/commonjs/ui/components/SectionTitle.js +0 -35
  80. package/lib/commonjs/ui/components/SectionTitle.js.map +0 -1
  81. package/lib/commonjs/ui/components/bottomSheet/index.js +0 -37
  82. package/lib/commonjs/ui/components/bottomSheet/index.js.map +0 -1
  83. package/lib/commonjs/ui/components/icon/OxyIcon.js +0 -27
  84. package/lib/commonjs/ui/components/icon/OxyIcon.js.map +0 -1
  85. package/lib/commonjs/ui/components/icon/index.js +0 -14
  86. package/lib/commonjs/ui/components/icon/index.js.map +0 -1
  87. package/lib/commonjs/ui/components/index.js +0 -97
  88. package/lib/commonjs/ui/components/index.js.map +0 -1
  89. package/lib/commonjs/ui/context/OxyContext.js +0 -568
  90. package/lib/commonjs/ui/context/OxyContext.js.map +0 -1
  91. package/lib/commonjs/ui/index.js +0 -128
  92. package/lib/commonjs/ui/index.js.map +0 -1
  93. package/lib/commonjs/ui/navigation/OxyRouter.js +0 -264
  94. package/lib/commonjs/ui/navigation/OxyRouter.js.map +0 -1
  95. package/lib/commonjs/ui/navigation/types.js +0 -6
  96. package/lib/commonjs/ui/navigation/types.js.map +0 -1
  97. package/lib/commonjs/ui/screens/AccountCenterScreen.js +0 -313
  98. package/lib/commonjs/ui/screens/AccountCenterScreen.js.map +0 -1
  99. package/lib/commonjs/ui/screens/AccountManagementDemo.js +0 -299
  100. package/lib/commonjs/ui/screens/AccountManagementDemo.js.map +0 -1
  101. package/lib/commonjs/ui/screens/AccountOverviewScreen.js +0 -837
  102. package/lib/commonjs/ui/screens/AccountOverviewScreen.js.map +0 -1
  103. package/lib/commonjs/ui/screens/AccountSettingsScreen.js +0 -836
  104. package/lib/commonjs/ui/screens/AccountSettingsScreen.js.map +0 -1
  105. package/lib/commonjs/ui/screens/AccountSwitcherScreen.js +0 -788
  106. package/lib/commonjs/ui/screens/AccountSwitcherScreen.js.map +0 -1
  107. package/lib/commonjs/ui/screens/AppInfoScreen.js +0 -664
  108. package/lib/commonjs/ui/screens/AppInfoScreen.js.map +0 -1
  109. package/lib/commonjs/ui/screens/BillingManagementScreen.js +0 -636
  110. package/lib/commonjs/ui/screens/BillingManagementScreen.js.map +0 -1
  111. package/lib/commonjs/ui/screens/FileManagementScreen.js +0 -2497
  112. package/lib/commonjs/ui/screens/FileManagementScreen.js.map +0 -1
  113. package/lib/commonjs/ui/screens/PremiumSubscriptionScreen.js +0 -1620
  114. package/lib/commonjs/ui/screens/PremiumSubscriptionScreen.js.map +0 -1
  115. package/lib/commonjs/ui/screens/ProfileScreen.js +0 -450
  116. package/lib/commonjs/ui/screens/ProfileScreen.js.map +0 -1
  117. package/lib/commonjs/ui/screens/SessionManagementScreen.js +0 -449
  118. package/lib/commonjs/ui/screens/SessionManagementScreen.js.map +0 -1
  119. package/lib/commonjs/ui/screens/SignInScreen.js +0 -956
  120. package/lib/commonjs/ui/screens/SignInScreen.js.map +0 -1
  121. package/lib/commonjs/ui/screens/SignUpScreen.js +0 -762
  122. package/lib/commonjs/ui/screens/SignUpScreen.js.map +0 -1
  123. package/lib/commonjs/ui/screens/karma/KarmaAboutScreen.js +0 -88
  124. package/lib/commonjs/ui/screens/karma/KarmaAboutScreen.js.map +0 -1
  125. package/lib/commonjs/ui/screens/karma/KarmaCenterScreen.js +0 -364
  126. package/lib/commonjs/ui/screens/karma/KarmaCenterScreen.js.map +0 -1
  127. package/lib/commonjs/ui/screens/karma/KarmaFAQScreen.js +0 -202
  128. package/lib/commonjs/ui/screens/karma/KarmaFAQScreen.js.map +0 -1
  129. package/lib/commonjs/ui/screens/karma/KarmaLeaderboardScreen.js +0 -148
  130. package/lib/commonjs/ui/screens/karma/KarmaLeaderboardScreen.js.map +0 -1
  131. package/lib/commonjs/ui/screens/karma/KarmaRewardsScreen.js +0 -127
  132. package/lib/commonjs/ui/screens/karma/KarmaRewardsScreen.js.map +0 -1
  133. package/lib/commonjs/ui/screens/karma/KarmaRulesScreen.js +0 -105
  134. package/lib/commonjs/ui/screens/karma/KarmaRulesScreen.js.map +0 -1
  135. package/lib/commonjs/ui/styles/FONTS.md +0 -126
  136. package/lib/commonjs/ui/styles/fonts.js +0 -84
  137. package/lib/commonjs/ui/styles/fonts.js.map +0 -1
  138. package/lib/commonjs/ui/styles/index.js +0 -28
  139. package/lib/commonjs/ui/styles/index.js.map +0 -1
  140. package/lib/commonjs/ui/styles/theme.js +0 -121
  141. package/lib/commonjs/ui/styles/theme.js.map +0 -1
  142. package/lib/commonjs/utils/deviceManager.js +0 -173
  143. package/lib/commonjs/utils/deviceManager.js.map +0 -1
  144. package/lib/commonjs/utils/index.js +0 -13
  145. package/lib/commonjs/utils/index.js.map +0 -1
  146. package/lib/commonjs/utils/polyfills.js +0 -42
  147. package/lib/commonjs/utils/polyfills.js.map +0 -1
  148. package/lib/module/assets/OxyLogo.svg +0 -1
  149. package/lib/module/assets/assets/OxyLogo.svg +0 -1
  150. package/lib/module/assets/assets/fonts/Phudu/Phudu-Black.ttf +0 -0
  151. package/lib/module/assets/assets/fonts/Phudu/Phudu-Bold.ttf +0 -0
  152. package/lib/module/assets/assets/fonts/Phudu/Phudu-ExtraBold.ttf +0 -0
  153. package/lib/module/assets/assets/fonts/Phudu/Phudu-Light.ttf +0 -0
  154. package/lib/module/assets/assets/fonts/Phudu/Phudu-Medium.ttf +0 -0
  155. package/lib/module/assets/assets/fonts/Phudu/Phudu-Regular.ttf +0 -0
  156. package/lib/module/assets/assets/fonts/Phudu/Phudu-SemiBold.ttf +0 -0
  157. package/lib/module/assets/assets/icons/OxyServices.tsx +0 -67
  158. package/lib/module/assets/assets/icons/logo_OxyServices.svg +0 -1
  159. package/lib/module/assets/fonts/Phudu/Phudu-Black.ttf +0 -0
  160. package/lib/module/assets/fonts/Phudu/Phudu-Bold.ttf +0 -0
  161. package/lib/module/assets/fonts/Phudu/Phudu-ExtraBold.ttf +0 -0
  162. package/lib/module/assets/fonts/Phudu/Phudu-Light.ttf +0 -0
  163. package/lib/module/assets/fonts/Phudu/Phudu-Medium.ttf +0 -0
  164. package/lib/module/assets/fonts/Phudu/Phudu-Regular.ttf +0 -0
  165. package/lib/module/assets/fonts/Phudu/Phudu-SemiBold.ttf +0 -0
  166. package/lib/module/assets/icons/OxyServices.js +0 -46
  167. package/lib/module/assets/icons/OxyServices.js.map +0 -1
  168. package/lib/module/assets/icons/logo_OxyServices.svg +0 -1
  169. package/lib/module/constants/version.js +0 -21
  170. package/lib/module/constants/version.js.map +0 -1
  171. package/lib/module/core/index.js +0 -1517
  172. package/lib/module/core/index.js.map +0 -1
  173. package/lib/module/index.js +0 -48
  174. package/lib/module/index.js.map +0 -1
  175. package/lib/module/lib/react-native-polyfills.js +0 -179
  176. package/lib/module/lib/react-native-polyfills.js.map +0 -1
  177. package/lib/module/lib/sonner-safe.js +0 -37
  178. package/lib/module/lib/sonner-safe.js.map +0 -1
  179. package/lib/module/lib/sonner.js +0 -8
  180. package/lib/module/lib/sonner.js.map +0 -1
  181. package/lib/module/lib/sonner.web.js +0 -4
  182. package/lib/module/lib/sonner.web.js.map +0 -1
  183. package/lib/module/models/interfaces.js +0 -2
  184. package/lib/module/models/interfaces.js.map +0 -1
  185. package/lib/module/models/secureSession.js +0 -2
  186. package/lib/module/models/secureSession.js.map +0 -1
  187. package/lib/module/node/index.js +0 -23
  188. package/lib/module/node/index.js.map +0 -1
  189. package/lib/module/package.json +0 -1
  190. package/lib/module/ui/components/Avatar.js +0 -93
  191. package/lib/module/ui/components/Avatar.js.map +0 -1
  192. package/lib/module/ui/components/FollowButton.js +0 -241
  193. package/lib/module/ui/components/FollowButton.js.map +0 -1
  194. package/lib/module/ui/components/FontLoader.js +0 -176
  195. package/lib/module/ui/components/FontLoader.js.map +0 -1
  196. package/lib/module/ui/components/GroupedItem.js +0 -104
  197. package/lib/module/ui/components/GroupedItem.js.map +0 -1
  198. package/lib/module/ui/components/GroupedSection.js +0 -28
  199. package/lib/module/ui/components/GroupedSection.js.map +0 -1
  200. package/lib/module/ui/components/OxyLogo.js +0 -49
  201. package/lib/module/ui/components/OxyLogo.js.map +0 -1
  202. package/lib/module/ui/components/OxyProvider.js +0 -511
  203. package/lib/module/ui/components/OxyProvider.js.map +0 -1
  204. package/lib/module/ui/components/OxySignInButton.js +0 -172
  205. package/lib/module/ui/components/OxySignInButton.js.map +0 -1
  206. package/lib/module/ui/components/ProfileCard.js +0 -119
  207. package/lib/module/ui/components/ProfileCard.js.map +0 -1
  208. package/lib/module/ui/components/QuickActions.js +0 -82
  209. package/lib/module/ui/components/QuickActions.js.map +0 -1
  210. package/lib/module/ui/components/Section.js +0 -31
  211. package/lib/module/ui/components/Section.js.map +0 -1
  212. package/lib/module/ui/components/SectionTitle.js +0 -30
  213. package/lib/module/ui/components/SectionTitle.js.map +0 -1
  214. package/lib/module/ui/components/bottomSheet/index.js +0 -5
  215. package/lib/module/ui/components/bottomSheet/index.js.map +0 -1
  216. package/lib/module/ui/components/icon/OxyIcon.js +0 -22
  217. package/lib/module/ui/components/icon/OxyIcon.js.map +0 -1
  218. package/lib/module/ui/components/icon/index.js +0 -4
  219. package/lib/module/ui/components/icon/index.js.map +0 -1
  220. package/lib/module/ui/components/index.js +0 -18
  221. package/lib/module/ui/components/index.js.map +0 -1
  222. package/lib/module/ui/context/OxyContext.js +0 -563
  223. package/lib/module/ui/context/OxyContext.js.map +0 -1
  224. package/lib/module/ui/index.js +0 -24
  225. package/lib/module/ui/index.js.map +0 -1
  226. package/lib/module/ui/navigation/OxyRouter.js +0 -257
  227. package/lib/module/ui/navigation/OxyRouter.js.map +0 -1
  228. package/lib/module/ui/navigation/types.js +0 -4
  229. package/lib/module/ui/navigation/types.js.map +0 -1
  230. package/lib/module/ui/screens/AccountCenterScreen.js +0 -308
  231. package/lib/module/ui/screens/AccountCenterScreen.js.map +0 -1
  232. package/lib/module/ui/screens/AccountManagementDemo.js +0 -296
  233. package/lib/module/ui/screens/AccountManagementDemo.js.map +0 -1
  234. package/lib/module/ui/screens/AccountOverviewScreen.js +0 -831
  235. package/lib/module/ui/screens/AccountOverviewScreen.js.map +0 -1
  236. package/lib/module/ui/screens/AccountSettingsScreen.js +0 -830
  237. package/lib/module/ui/screens/AccountSettingsScreen.js.map +0 -1
  238. package/lib/module/ui/screens/AccountSwitcherScreen.js +0 -782
  239. package/lib/module/ui/screens/AccountSwitcherScreen.js.map +0 -1
  240. package/lib/module/ui/screens/AppInfoScreen.js +0 -658
  241. package/lib/module/ui/screens/AppInfoScreen.js.map +0 -1
  242. package/lib/module/ui/screens/BillingManagementScreen.js +0 -631
  243. package/lib/module/ui/screens/BillingManagementScreen.js.map +0 -1
  244. package/lib/module/ui/screens/FileManagementScreen.js +0 -2492
  245. package/lib/module/ui/screens/FileManagementScreen.js.map +0 -1
  246. package/lib/module/ui/screens/PremiumSubscriptionScreen.js +0 -1615
  247. package/lib/module/ui/screens/PremiumSubscriptionScreen.js.map +0 -1
  248. package/lib/module/ui/screens/ProfileScreen.js +0 -444
  249. package/lib/module/ui/screens/ProfileScreen.js.map +0 -1
  250. package/lib/module/ui/screens/SessionManagementScreen.js +0 -444
  251. package/lib/module/ui/screens/SessionManagementScreen.js.map +0 -1
  252. package/lib/module/ui/screens/SignInScreen.js +0 -950
  253. package/lib/module/ui/screens/SignInScreen.js.map +0 -1
  254. package/lib/module/ui/screens/SignUpScreen.js +0 -755
  255. package/lib/module/ui/screens/SignUpScreen.js.map +0 -1
  256. package/lib/module/ui/screens/karma/KarmaAboutScreen.js +0 -83
  257. package/lib/module/ui/screens/karma/KarmaAboutScreen.js.map +0 -1
  258. package/lib/module/ui/screens/karma/KarmaCenterScreen.js +0 -358
  259. package/lib/module/ui/screens/karma/KarmaCenterScreen.js.map +0 -1
  260. package/lib/module/ui/screens/karma/KarmaFAQScreen.js +0 -197
  261. package/lib/module/ui/screens/karma/KarmaFAQScreen.js.map +0 -1
  262. package/lib/module/ui/screens/karma/KarmaLeaderboardScreen.js +0 -142
  263. package/lib/module/ui/screens/karma/KarmaLeaderboardScreen.js.map +0 -1
  264. package/lib/module/ui/screens/karma/KarmaRewardsScreen.js +0 -122
  265. package/lib/module/ui/screens/karma/KarmaRewardsScreen.js.map +0 -1
  266. package/lib/module/ui/screens/karma/KarmaRulesScreen.js +0 -100
  267. package/lib/module/ui/screens/karma/KarmaRulesScreen.js.map +0 -1
  268. package/lib/module/ui/styles/FONTS.md +0 -126
  269. package/lib/module/ui/styles/fonts.js +0 -81
  270. package/lib/module/ui/styles/fonts.js.map +0 -1
  271. package/lib/module/ui/styles/index.js +0 -5
  272. package/lib/module/ui/styles/index.js.map +0 -1
  273. package/lib/module/ui/styles/theme.js +0 -114
  274. package/lib/module/ui/styles/theme.js.map +0 -1
  275. package/lib/module/utils/deviceManager.js +0 -167
  276. package/lib/module/utils/deviceManager.js.map +0 -1
  277. package/lib/module/utils/index.js +0 -4
  278. package/lib/module/utils/index.js.map +0 -1
  279. package/lib/module/utils/polyfills.js +0 -36
  280. package/lib/module/utils/polyfills.js.map +0 -1
  281. package/lib/typescript/assets/icons/OxyServices.d.ts +0 -29
  282. package/lib/typescript/assets/icons/OxyServices.d.ts.map +0 -1
  283. package/lib/typescript/constants/version.d.ts +0 -14
  284. package/lib/typescript/constants/version.d.ts.map +0 -1
  285. package/lib/typescript/core/index.d.ts +0 -563
  286. package/lib/typescript/core/index.d.ts.map +0 -1
  287. package/lib/typescript/index.d.ts +0 -20
  288. package/lib/typescript/index.d.ts.map +0 -1
  289. package/lib/typescript/lib/react-native-polyfills.d.ts +0 -8
  290. package/lib/typescript/lib/react-native-polyfills.d.ts.map +0 -1
  291. package/lib/typescript/lib/sonner-safe.d.ts +0 -11
  292. package/lib/typescript/lib/sonner-safe.d.ts.map +0 -1
  293. package/lib/typescript/lib/sonner.d.ts +0 -3
  294. package/lib/typescript/lib/sonner.d.ts.map +0 -1
  295. package/lib/typescript/lib/sonner.web.d.ts +0 -2
  296. package/lib/typescript/lib/sonner.web.d.ts.map +0 -1
  297. package/lib/typescript/models/interfaces.d.ts +0 -179
  298. package/lib/typescript/models/interfaces.d.ts.map +0 -1
  299. package/lib/typescript/models/secureSession.d.ts +0 -27
  300. package/lib/typescript/models/secureSession.d.ts.map +0 -1
  301. package/lib/typescript/node/index.d.ts +0 -11
  302. package/lib/typescript/node/index.d.ts.map +0 -1
  303. package/lib/typescript/ui/components/Avatar.d.ts +0 -62
  304. package/lib/typescript/ui/components/Avatar.d.ts.map +0 -1
  305. package/lib/typescript/ui/components/FollowButton.d.ts +0 -92
  306. package/lib/typescript/ui/components/FollowButton.d.ts.map +0 -1
  307. package/lib/typescript/ui/components/FontLoader.d.ts +0 -15
  308. package/lib/typescript/ui/components/FontLoader.d.ts.map +0 -1
  309. package/lib/typescript/ui/components/GroupedItem.d.ts +0 -17
  310. package/lib/typescript/ui/components/GroupedItem.d.ts.map +0 -1
  311. package/lib/typescript/ui/components/GroupedSection.d.ts +0 -19
  312. package/lib/typescript/ui/components/GroupedSection.d.ts.map +0 -1
  313. package/lib/typescript/ui/components/OxyLogo.d.ts +0 -29
  314. package/lib/typescript/ui/components/OxyLogo.d.ts.map +0 -1
  315. package/lib/typescript/ui/components/OxyProvider.d.ts +0 -12
  316. package/lib/typescript/ui/components/OxyProvider.d.ts.map +0 -1
  317. package/lib/typescript/ui/components/OxySignInButton.d.ts +0 -70
  318. package/lib/typescript/ui/components/OxySignInButton.d.ts.map +0 -1
  319. package/lib/typescript/ui/components/ProfileCard.d.ts +0 -20
  320. package/lib/typescript/ui/components/ProfileCard.d.ts.map +0 -1
  321. package/lib/typescript/ui/components/QuickActions.d.ts +0 -15
  322. package/lib/typescript/ui/components/QuickActions.d.ts.map +0 -1
  323. package/lib/typescript/ui/components/Section.d.ts +0 -11
  324. package/lib/typescript/ui/components/Section.d.ts.map +0 -1
  325. package/lib/typescript/ui/components/SectionTitle.d.ts +0 -9
  326. package/lib/typescript/ui/components/SectionTitle.d.ts.map +0 -1
  327. package/lib/typescript/ui/components/bottomSheet/index.d.ts +0 -4
  328. package/lib/typescript/ui/components/bottomSheet/index.d.ts.map +0 -1
  329. package/lib/typescript/ui/components/icon/OxyIcon.d.ts +0 -10
  330. package/lib/typescript/ui/components/icon/OxyIcon.d.ts.map +0 -1
  331. package/lib/typescript/ui/components/icon/index.d.ts +0 -3
  332. package/lib/typescript/ui/components/icon/index.d.ts.map +0 -1
  333. package/lib/typescript/ui/components/index.d.ts +0 -13
  334. package/lib/typescript/ui/components/index.d.ts.map +0 -1
  335. package/lib/typescript/ui/context/OxyContext.d.ts +0 -42
  336. package/lib/typescript/ui/context/OxyContext.d.ts.map +0 -1
  337. package/lib/typescript/ui/index.d.ts +0 -15
  338. package/lib/typescript/ui/index.d.ts.map +0 -1
  339. package/lib/typescript/ui/navigation/OxyRouter.d.ts +0 -5
  340. package/lib/typescript/ui/navigation/OxyRouter.d.ts.map +0 -1
  341. package/lib/typescript/ui/navigation/types.d.ts +0 -116
  342. package/lib/typescript/ui/navigation/types.d.ts.map +0 -1
  343. package/lib/typescript/ui/screens/AccountCenterScreen.d.ts +0 -5
  344. package/lib/typescript/ui/screens/AccountCenterScreen.d.ts.map +0 -1
  345. package/lib/typescript/ui/screens/AccountManagementDemo.d.ts +0 -8
  346. package/lib/typescript/ui/screens/AccountManagementDemo.d.ts.map +0 -1
  347. package/lib/typescript/ui/screens/AccountOverviewScreen.d.ts +0 -5
  348. package/lib/typescript/ui/screens/AccountOverviewScreen.d.ts.map +0 -1
  349. package/lib/typescript/ui/screens/AccountSettingsScreen.d.ts +0 -5
  350. package/lib/typescript/ui/screens/AccountSettingsScreen.d.ts.map +0 -1
  351. package/lib/typescript/ui/screens/AccountSwitcherScreen.d.ts +0 -5
  352. package/lib/typescript/ui/screens/AccountSwitcherScreen.d.ts.map +0 -1
  353. package/lib/typescript/ui/screens/AppInfoScreen.d.ts +0 -5
  354. package/lib/typescript/ui/screens/AppInfoScreen.d.ts.map +0 -1
  355. package/lib/typescript/ui/screens/BillingManagementScreen.d.ts +0 -5
  356. package/lib/typescript/ui/screens/BillingManagementScreen.d.ts.map +0 -1
  357. package/lib/typescript/ui/screens/FileManagementScreen.d.ts +0 -8
  358. package/lib/typescript/ui/screens/FileManagementScreen.d.ts.map +0 -1
  359. package/lib/typescript/ui/screens/PremiumSubscriptionScreen.d.ts +0 -5
  360. package/lib/typescript/ui/screens/PremiumSubscriptionScreen.d.ts.map +0 -1
  361. package/lib/typescript/ui/screens/ProfileScreen.d.ts +0 -9
  362. package/lib/typescript/ui/screens/ProfileScreen.d.ts.map +0 -1
  363. package/lib/typescript/ui/screens/SessionManagementScreen.d.ts +0 -5
  364. package/lib/typescript/ui/screens/SessionManagementScreen.d.ts.map +0 -1
  365. package/lib/typescript/ui/screens/SignInScreen.d.ts +0 -5
  366. package/lib/typescript/ui/screens/SignInScreen.d.ts.map +0 -1
  367. package/lib/typescript/ui/screens/SignUpScreen.d.ts +0 -5
  368. package/lib/typescript/ui/screens/SignUpScreen.d.ts.map +0 -1
  369. package/lib/typescript/ui/screens/karma/KarmaAboutScreen.d.ts +0 -5
  370. package/lib/typescript/ui/screens/karma/KarmaAboutScreen.d.ts.map +0 -1
  371. package/lib/typescript/ui/screens/karma/KarmaCenterScreen.d.ts +0 -5
  372. package/lib/typescript/ui/screens/karma/KarmaCenterScreen.d.ts.map +0 -1
  373. package/lib/typescript/ui/screens/karma/KarmaFAQScreen.d.ts +0 -5
  374. package/lib/typescript/ui/screens/karma/KarmaFAQScreen.d.ts.map +0 -1
  375. package/lib/typescript/ui/screens/karma/KarmaLeaderboardScreen.d.ts +0 -5
  376. package/lib/typescript/ui/screens/karma/KarmaLeaderboardScreen.d.ts.map +0 -1
  377. package/lib/typescript/ui/screens/karma/KarmaRewardsScreen.d.ts +0 -5
  378. package/lib/typescript/ui/screens/karma/KarmaRewardsScreen.d.ts.map +0 -1
  379. package/lib/typescript/ui/screens/karma/KarmaRulesScreen.d.ts +0 -5
  380. package/lib/typescript/ui/screens/karma/KarmaRulesScreen.d.ts.map +0 -1
  381. package/lib/typescript/ui/styles/fonts.d.ts +0 -21
  382. package/lib/typescript/ui/styles/fonts.d.ts.map +0 -1
  383. package/lib/typescript/ui/styles/index.d.ts +0 -3
  384. package/lib/typescript/ui/styles/index.d.ts.map +0 -1
  385. package/lib/typescript/ui/styles/theme.d.ts +0 -68
  386. package/lib/typescript/ui/styles/theme.d.ts.map +0 -1
  387. package/lib/typescript/utils/deviceManager.d.ts +0 -66
  388. package/lib/typescript/utils/deviceManager.d.ts.map +0 -1
  389. package/lib/typescript/utils/index.d.ts +0 -3
  390. package/lib/typescript/utils/index.d.ts.map +0 -1
  391. package/lib/typescript/utils/polyfills.d.ts +0 -6
  392. package/lib/typescript/utils/polyfills.d.ts.map +0 -1
  393. package/src/lib/react-native-polyfills.ts +0 -219
  394. package/src/lib/sonner-safe.ts +0 -37
  395. package/src/lib/sonner.web.ts +0 -1
@@ -1,956 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = void 0;
7
- var _react = _interopRequireWildcard(require("react"));
8
- var _reactNative = require("react-native");
9
- var _OxyContext = require("../context/OxyContext");
10
- var _styles = require("../styles");
11
- var _OxyLogo = _interopRequireDefault(require("../components/OxyLogo"));
12
- var _Avatar = _interopRequireDefault(require("../components/Avatar"));
13
- var _bottomSheet = require("../components/bottomSheet");
14
- var _vectorIcons = require("@expo/vector-icons");
15
- var _reactNativeSvg = _interopRequireWildcard(require("react-native-svg"));
16
- var _sonner = require("../../lib/sonner");
17
- var _jsxRuntime = require("react/jsx-runtime");
18
- function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
19
- function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
20
- const SignInScreen = ({
21
- navigate,
22
- goBack,
23
- theme
24
- }) => {
25
- // Form data states
26
- const [username, setUsername] = (0, _react.useState)('');
27
- const [password, setPassword] = (0, _react.useState)('');
28
- const [errorMessage, setErrorMessage] = (0, _react.useState)('');
29
- const [userProfile, setUserProfile] = (0, _react.useState)(null);
30
-
31
- // Multi-step form states
32
- const [currentStep, setCurrentStep] = (0, _react.useState)(0);
33
- const [isInputFocused, setIsInputFocused] = (0, _react.useState)(false);
34
- const fadeAnim = (0, _react.useRef)(new _reactNative.Animated.Value(1)).current;
35
- const slideAnim = (0, _react.useRef)(new _reactNative.Animated.Value(0)).current;
36
- const scaleAnim = (0, _react.useRef)(new _reactNative.Animated.Value(1)).current;
37
- const inputScaleAnim = (0, _react.useRef)(new _reactNative.Animated.Value(1)).current;
38
- const logoAnim = (0, _react.useRef)(new _reactNative.Animated.Value(0)).current;
39
- const progressAnim = (0, _react.useRef)(new _reactNative.Animated.Value(0.5)).current;
40
- const {
41
- login,
42
- isLoading,
43
- user,
44
- isAuthenticated,
45
- sessions
46
- } = (0, _OxyContext.useOxy)();
47
- const colors = (0, _styles.useThemeColors)(theme);
48
- const commonStyles = (0, _styles.createCommonStyles)(theme);
49
-
50
- // Check if this should be treated as "Add Account" mode
51
- const isAddAccountMode = user && isAuthenticated && sessions && sessions.length > 0;
52
-
53
- // Initialize logo animation
54
- (0, _react.useEffect)(() => {
55
- _reactNative.Animated.spring(logoAnim, {
56
- toValue: 1,
57
- tension: 50,
58
- friction: 8,
59
- useNativeDriver: true
60
- }).start();
61
- }, []);
62
-
63
- // Input focus animations
64
- const handleInputFocus = () => {
65
- setIsInputFocused(true);
66
- _reactNative.Animated.spring(inputScaleAnim, {
67
- toValue: 1.02,
68
- useNativeDriver: true
69
- }).start();
70
- };
71
- const handleInputBlur = () => {
72
- setIsInputFocused(false);
73
- _reactNative.Animated.spring(inputScaleAnim, {
74
- toValue: 1,
75
- useNativeDriver: true
76
- }).start();
77
- };
78
-
79
- // Animation functions
80
- const animateTransition = nextStep => {
81
- // Scale down current content
82
- _reactNative.Animated.timing(scaleAnim, {
83
- toValue: 0.95,
84
- duration: 150,
85
- useNativeDriver: true
86
- }).start();
87
-
88
- // Fade out
89
- _reactNative.Animated.timing(fadeAnim, {
90
- toValue: 0,
91
- duration: 200,
92
- useNativeDriver: true
93
- }).start(() => {
94
- setCurrentStep(nextStep);
95
-
96
- // Reset animations
97
- slideAnim.setValue(-50);
98
- scaleAnim.setValue(0.95);
99
-
100
- // Animate in new content
101
- _reactNative.Animated.parallel([_reactNative.Animated.timing(fadeAnim, {
102
- toValue: 1,
103
- duration: 300,
104
- useNativeDriver: true
105
- }), _reactNative.Animated.spring(slideAnim, {
106
- toValue: 0,
107
- tension: 80,
108
- friction: 8,
109
- useNativeDriver: true
110
- }), _reactNative.Animated.spring(scaleAnim, {
111
- toValue: 1,
112
- tension: 80,
113
- friction: 8,
114
- useNativeDriver: true
115
- })]).start();
116
- });
117
- };
118
- const nextStep = () => {
119
- if (currentStep < 1) {
120
- // Animate progress bar
121
- _reactNative.Animated.timing(progressAnim, {
122
- toValue: 1.0,
123
- duration: 300,
124
- useNativeDriver: false
125
- }).start();
126
- animateTransition(currentStep + 1);
127
- }
128
- };
129
- const prevStep = () => {
130
- if (currentStep > 0) {
131
- // Animate progress bar
132
- _reactNative.Animated.timing(progressAnim, {
133
- toValue: 0.5,
134
- duration: 300,
135
- useNativeDriver: false
136
- }).start();
137
- animateTransition(currentStep - 1);
138
- }
139
- };
140
-
141
- // Fetch user profile when username is entered
142
- (0, _react.useEffect)(() => {
143
- const fetchUserProfile = async () => {
144
- if (username.length >= 3 && currentStep === 1) {
145
- try {
146
- // For now, we'll create a mock profile based on username
147
- // In a real app, you'd fetch this from your API
148
- setUserProfile({
149
- displayName: username,
150
- name: username,
151
- avatar: null // Could be fetched from API
152
- });
153
- } catch (error) {
154
- // If user not found, we'll show a generic avatar
155
- setUserProfile(null);
156
- }
157
- }
158
- };
159
- fetchUserProfile();
160
- }, [username, currentStep]);
161
- const handleUsernameNext = () => {
162
- if (!username) {
163
- _sonner.toast.error('Please enter your username');
164
- return;
165
- }
166
- setErrorMessage('');
167
- nextStep();
168
- };
169
- const handleLogin = async () => {
170
- if (!username || !password) {
171
- _sonner.toast.error('Please enter both username and password');
172
- return;
173
- }
174
- try {
175
- setErrorMessage('');
176
- await login(username, password);
177
- // The authentication state change will be handled through context
178
- } catch (error) {
179
- _sonner.toast.error(error.message || 'Login failed');
180
- }
181
- };
182
-
183
- // Step components
184
- const renderUsernameStep = () => /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.Animated.View, {
185
- style: [styles.stepContainer, {
186
- opacity: fadeAnim,
187
- transform: [{
188
- translateX: slideAnim
189
- }, {
190
- scale: scaleAnim
191
- }]
192
- }],
193
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
194
- style: styles.modernImageContainer,
195
- children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNativeSvg.default, {
196
- width: 280,
197
- height: 160,
198
- viewBox: "0 0 280 160",
199
- children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNativeSvg.Defs, {
200
- children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNativeSvg.LinearGradient, {
201
- id: "primaryGradient",
202
- x1: "0%",
203
- y1: "0%",
204
- x2: "100%",
205
- y2: "100%",
206
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeSvg.Stop, {
207
- offset: "0%",
208
- stopColor: colors.primary,
209
- stopOpacity: "0.8"
210
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeSvg.Stop, {
211
- offset: "100%",
212
- stopColor: colors.primary,
213
- stopOpacity: "0.2"
214
- })]
215
- }), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNativeSvg.LinearGradient, {
216
- id: "secondaryGradient",
217
- x1: "0%",
218
- y1: "0%",
219
- x2: "100%",
220
- y2: "100%",
221
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeSvg.Stop, {
222
- offset: "0%",
223
- stopColor: colors.primary,
224
- stopOpacity: "0.1"
225
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeSvg.Stop, {
226
- offset: "100%",
227
- stopColor: colors.primary,
228
- stopOpacity: "0.3"
229
- })]
230
- })]
231
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeSvg.Circle, {
232
- cx: "80",
233
- cy: "80",
234
- r: "45",
235
- fill: "url(#primaryGradient)"
236
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeSvg.Circle, {
237
- cx: "200",
238
- cy: "80",
239
- r: "35",
240
- fill: "url(#secondaryGradient)"
241
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeSvg.Path, {
242
- d: "M40 120 Q80 40 140 80 Q200 120 240 60",
243
- stroke: colors.primary,
244
- strokeWidth: "4",
245
- fill: "none",
246
- strokeLinecap: "round"
247
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeSvg.Circle, {
248
- cx: "60",
249
- cy: "50",
250
- r: "8",
251
- fill: colors.primary,
252
- opacity: "0.6"
253
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeSvg.Circle, {
254
- cx: "220",
255
- cy: "120",
256
- r: "6",
257
- fill: colors.primary,
258
- opacity: "0.4"
259
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeSvg.Circle, {
260
- cx: "250",
261
- cy: "40",
262
- r: "4",
263
- fill: colors.primary,
264
- opacity: "0.8"
265
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeSvg.Circle, {
266
- cx: "140",
267
- cy: "80",
268
- r: "25",
269
- fill: colors.background,
270
- opacity: "0.9"
271
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeSvg.Circle, {
272
- cx: "135",
273
- cy: "75",
274
- r: "3",
275
- fill: colors.primary
276
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeSvg.Circle, {
277
- cx: "145",
278
- cy: "75",
279
- r: "3",
280
- fill: colors.primary
281
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeSvg.Path, {
282
- d: "M132 85 Q140 92 148 85",
283
- stroke: colors.primary,
284
- strokeWidth: "2",
285
- fill: "none",
286
- strokeLinecap: "round"
287
- })]
288
- })
289
- }), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
290
- style: styles.modernHeader,
291
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
292
- style: [styles.modernTitle, {
293
- color: colors.text
294
- }],
295
- children: isAddAccountMode ? 'Add Account' : 'Welcome Back'
296
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
297
- style: [styles.modernSubtitle, {
298
- color: colors.secondaryText
299
- }],
300
- children: isAddAccountMode ? 'Sign in with another account' : 'Sign in to continue your journey'
301
- })]
302
- }), isAddAccountMode && /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
303
- style: [styles.modernInfoCard, {
304
- backgroundColor: colors.inputBackground
305
- }],
306
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_vectorIcons.Ionicons, {
307
- name: "information-circle",
308
- size: 20,
309
- color: colors.primary
310
- }), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.Text, {
311
- style: [styles.modernInfoText, {
312
- color: colors.text
313
- }],
314
- children: ["Currently signed in as ", /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
315
- style: {
316
- fontWeight: 'bold'
317
- },
318
- children: user?.username
319
- })]
320
- })]
321
- }), errorMessage ? /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.Animated.View, {
322
- style: [styles.modernErrorCard, {
323
- backgroundColor: '#FF6B6B20'
324
- }],
325
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_vectorIcons.Ionicons, {
326
- name: "alert-circle",
327
- size: 20,
328
- color: "#FF6B6B"
329
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
330
- style: [styles.errorText, {
331
- color: '#FF6B6B'
332
- }],
333
- children: errorMessage
334
- })]
335
- }) : null, /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Animated.View, {
336
- style: [styles.modernInputContainer, {
337
- transform: [{
338
- scale: inputScaleAnim
339
- }]
340
- }],
341
- children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
342
- style: [styles.inputWrapper, {
343
- borderColor: isInputFocused ? colors.primary : colors.border
344
- }],
345
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_vectorIcons.Ionicons, {
346
- name: "person-outline",
347
- size: 20,
348
- color: isInputFocused ? colors.primary : colors.secondaryText,
349
- style: styles.inputIcon
350
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.TextInput, {
351
- style: [styles.modernInput, {
352
- color: colors.text
353
- }],
354
- placeholder: "Enter your username",
355
- placeholderTextColor: colors.placeholder,
356
- value: username,
357
- onChangeText: setUsername,
358
- onFocus: handleInputFocus,
359
- onBlur: handleInputBlur,
360
- autoCapitalize: "none",
361
- testID: "username-input"
362
- })]
363
- })
364
- }), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.TouchableOpacity, {
365
- style: [styles.modernButton, {
366
- backgroundColor: colors.primary,
367
- opacity: !username ? 0.5 : 1,
368
- shadowColor: colors.primary
369
- }],
370
- onPress: handleUsernameNext,
371
- disabled: !username,
372
- testID: "username-next-button",
373
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
374
- style: styles.modernButtonText,
375
- children: "Continue"
376
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_vectorIcons.Ionicons, {
377
- name: "arrow-forward",
378
- size: 20,
379
- color: "#FFFFFF",
380
- style: styles.buttonIcon
381
- })]
382
- }), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
383
- style: styles.footerTextContainer,
384
- children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.Text, {
385
- style: [styles.footerText, {
386
- color: colors.secondaryText
387
- }],
388
- children: ["Don't have an account?", ' ']
389
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.TouchableOpacity, {
390
- onPress: () => navigate('SignUp'),
391
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
392
- style: [styles.modernLinkText, {
393
- color: colors.primary
394
- }],
395
- children: "Sign Up"
396
- })
397
- })]
398
- })]
399
- });
400
- const renderPasswordStep = () => /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.Animated.View, {
401
- style: [styles.stepContainer, {
402
- opacity: fadeAnim,
403
- transform: [{
404
- translateX: slideAnim
405
- }, {
406
- scale: scaleAnim
407
- }]
408
- }],
409
- children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
410
- style: styles.modernUserProfileContainer,
411
- children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.Animated.View, {
412
- style: [styles.avatarContainer, {
413
- transform: [{
414
- scale: logoAnim
415
- }]
416
- }],
417
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_Avatar.default, {
418
- uri: userProfile?.avatar,
419
- name: userProfile?.displayName || userProfile?.name || username,
420
- size: 100,
421
- theme: theme,
422
- style: styles.modernUserAvatar
423
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
424
- style: [styles.statusIndicator, {
425
- backgroundColor: colors.primary
426
- }]
427
- })]
428
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
429
- style: [styles.modernUserDisplayName, {
430
- color: colors.text
431
- }],
432
- children: userProfile?.displayName || userProfile?.name || username
433
- }), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.Text, {
434
- style: [styles.modernUsernameSubtext, {
435
- color: colors.secondaryText
436
- }],
437
- children: ["@", username]
438
- }), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
439
- style: [styles.welcomeBackBadge, {
440
- backgroundColor: colors.primary + '15'
441
- }],
442
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_vectorIcons.Ionicons, {
443
- name: "checkmark-circle",
444
- size: 16,
445
- color: colors.primary
446
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
447
- style: [styles.welcomeBackText, {
448
- color: colors.primary
449
- }],
450
- children: "Welcome back!"
451
- })]
452
- })]
453
- }), errorMessage ? /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.Animated.View, {
454
- style: [styles.modernErrorCard, {
455
- backgroundColor: '#FF6B6B20'
456
- }],
457
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_vectorIcons.Ionicons, {
458
- name: "alert-circle",
459
- size: 20,
460
- color: "#FF6B6B"
461
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
462
- style: [styles.errorText, {
463
- color: '#FF6B6B'
464
- }],
465
- children: errorMessage
466
- })]
467
- }) : null, /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Animated.View, {
468
- style: [styles.modernInputContainer, {
469
- transform: [{
470
- scale: inputScaleAnim
471
- }]
472
- }],
473
- children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
474
- style: [styles.inputWrapper, {
475
- borderColor: isInputFocused ? colors.primary : colors.border
476
- }],
477
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_vectorIcons.Ionicons, {
478
- name: "lock-closed-outline",
479
- size: 20,
480
- color: isInputFocused ? colors.primary : colors.secondaryText,
481
- style: styles.inputIcon
482
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.TextInput, {
483
- style: [styles.modernInput, {
484
- color: colors.text
485
- }],
486
- placeholder: "Enter your password",
487
- placeholderTextColor: colors.placeholder,
488
- value: password,
489
- onChangeText: setPassword,
490
- onFocus: handleInputFocus,
491
- onBlur: handleInputBlur,
492
- secureTextEntry: true,
493
- testID: "password-input"
494
- })]
495
- })
496
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.TouchableOpacity, {
497
- style: [styles.modernButton, {
498
- backgroundColor: colors.primary,
499
- opacity: isLoading ? 0.8 : 1,
500
- shadowColor: colors.primary
501
- }],
502
- onPress: handleLogin,
503
- disabled: isLoading,
504
- testID: "login-button",
505
- children: isLoading ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.ActivityIndicator, {
506
- color: "#FFFFFF",
507
- size: "small"
508
- }) : /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
509
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
510
- style: styles.modernButtonText,
511
- children: isAddAccountMode ? 'Add Account' : 'Sign In'
512
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_vectorIcons.Ionicons, {
513
- name: "arrow-forward",
514
- size: 20,
515
- color: "#FFFFFF",
516
- style: styles.buttonIcon
517
- })]
518
- })
519
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
520
- style: styles.modernNavigationButtons,
521
- children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.TouchableOpacity, {
522
- style: [styles.modernBackButton, {
523
- borderColor: colors.border
524
- }],
525
- onPress: prevStep,
526
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_vectorIcons.Ionicons, {
527
- name: "chevron-back",
528
- size: 20,
529
- color: colors.text
530
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
531
- style: [styles.modernBackButtonText, {
532
- color: colors.text
533
- }],
534
- children: "Back"
535
- })]
536
- })
537
- }), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
538
- style: styles.securityNotice,
539
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_vectorIcons.Ionicons, {
540
- name: "shield-checkmark",
541
- size: 16,
542
- color: colors.secondaryText
543
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
544
- style: [styles.securityText, {
545
- color: colors.secondaryText
546
- }],
547
- children: "Your connection is secure and encrypted"
548
- })]
549
- })]
550
- });
551
- const renderCurrentStep = () => {
552
- switch (currentStep) {
553
- case 0:
554
- return renderUsernameStep();
555
- case 1:
556
- return renderPasswordStep();
557
- default:
558
- return renderUsernameStep();
559
- }
560
- };
561
- return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_bottomSheet.BottomSheetScrollView, {
562
- contentContainerStyle: commonStyles.scrollContainer,
563
- keyboardShouldPersistTaps: "handled",
564
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Animated.View, {
565
- style: [styles.logoContainer, {
566
- transform: [{
567
- scale: logoAnim
568
- }]
569
- }],
570
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_OxyLogo.default, {
571
- style: {
572
- marginBottom: 24
573
- },
574
- width: 50,
575
- height: 50
576
- })
577
- }), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
578
- style: styles.modernProgressContainer,
579
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
580
- style: styles.progressTrack,
581
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Animated.View, {
582
- style: [styles.progressFill, {
583
- backgroundColor: colors.primary,
584
- width: progressAnim.interpolate({
585
- inputRange: [0, 1],
586
- outputRange: ['50%', '100%']
587
- })
588
- }]
589
- })
590
- }), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.Text, {
591
- style: [styles.progressText, {
592
- color: colors.secondaryText
593
- }],
594
- children: ["Step ", currentStep + 1, " of 2"]
595
- })]
596
- }), renderCurrentStep()]
597
- });
598
- };
599
- const styles = _reactNative.StyleSheet.create({
600
- // Legacy styles (keeping for compatibility)
601
- title: {
602
- fontFamily: _reactNative.Platform.OS === 'web' ? 'Phudu' : 'Phudu-Bold',
603
- fontWeight: _reactNative.Platform.OS === 'web' ? 'bold' : undefined,
604
- fontSize: 54,
605
- marginBottom: 24
606
- },
607
- formContainer: {
608
- width: '100%'
609
- },
610
- inputContainer: {
611
- marginBottom: 16
612
- },
613
- label: {
614
- fontSize: 14,
615
- fontWeight: '500',
616
- marginBottom: 8
617
- },
618
- footerTextContainer: {
619
- flexDirection: 'row',
620
- justifyContent: 'center',
621
- marginTop: 24
622
- },
623
- footerText: {
624
- fontSize: 14,
625
- lineHeight: 20
626
- },
627
- linkText: {
628
- fontSize: 14,
629
- lineHeight: 20,
630
- fontWeight: '600'
631
- },
632
- userInfoContainer: {
633
- padding: 20,
634
- marginVertical: 20,
635
- borderRadius: 35,
636
- alignItems: 'center'
637
- },
638
- userInfoText: {
639
- fontSize: 16,
640
- lineHeight: 24,
641
- textAlign: 'center'
642
- },
643
- actionButtonsContainer: {
644
- marginTop: 20
645
- },
646
- infoContainer: {
647
- padding: 16,
648
- marginVertical: 16,
649
- borderRadius: 8,
650
- alignItems: 'center'
651
- },
652
- infoText: {
653
- fontSize: 14,
654
- lineHeight: 20,
655
- textAlign: 'center'
656
- },
657
- // Modern UI Styles
658
- logoContainer: {
659
- alignItems: 'center',
660
- marginBottom: 16
661
- },
662
- modernProgressContainer: {
663
- alignItems: 'center',
664
- marginBottom: 40,
665
- paddingHorizontal: 20
666
- },
667
- progressTrack: {
668
- width: '100%',
669
- height: 4,
670
- backgroundColor: '#E5E5E5',
671
- borderRadius: 2,
672
- marginBottom: 8,
673
- overflow: 'hidden'
674
- },
675
- progressFill: {
676
- height: '100%',
677
- borderRadius: 2
678
- },
679
- progressText: {
680
- fontSize: 12,
681
- fontWeight: '500'
682
- },
683
- stepContainer: {
684
- width: '100%',
685
- minHeight: 450,
686
- paddingHorizontal: 20
687
- },
688
- // Modern Image Container
689
- modernImageContainer: {
690
- alignItems: 'center',
691
- marginBottom: 40,
692
- paddingVertical: 20
693
- },
694
- modernHeader: {
695
- alignItems: 'center',
696
- marginBottom: 24
697
- },
698
- modernTitle: {
699
- fontFamily: _reactNative.Platform.OS === 'web' ? 'Phudu' : 'Phudu-Bold',
700
- fontWeight: _reactNative.Platform.OS === 'web' ? 'bold' : undefined,
701
- fontSize: 54,
702
- textAlign: 'center',
703
- marginBottom: 8,
704
- letterSpacing: -0.5
705
- },
706
- modernSubtitle: {
707
- fontSize: 16,
708
- lineHeight: 22,
709
- textAlign: 'center',
710
- opacity: 0.8
711
- },
712
- // Modern Cards
713
- modernInfoCard: {
714
- flexDirection: 'row',
715
- alignItems: 'center',
716
- padding: 16,
717
- marginVertical: 16,
718
- borderRadius: 12,
719
- gap: 12
720
- },
721
- modernInfoText: {
722
- fontSize: 14,
723
- lineHeight: 20,
724
- flex: 1
725
- },
726
- modernErrorCard: {
727
- flexDirection: 'row',
728
- alignItems: 'center',
729
- padding: 16,
730
- marginVertical: 16,
731
- borderRadius: 12,
732
- gap: 12
733
- },
734
- errorText: {
735
- fontSize: 14,
736
- lineHeight: 20,
737
- flex: 1
738
- },
739
- // Modern Input Styles
740
- modernInputContainer: {
741
- marginBottom: 24
742
- },
743
- inputWrapper: {
744
- flexDirection: 'row',
745
- alignItems: 'center',
746
- borderWidth: 2,
747
- borderRadius: 16,
748
- paddingHorizontal: 16,
749
- paddingVertical: 4,
750
- backgroundColor: 'rgba(0,0,0,0.02)'
751
- },
752
- inputIcon: {
753
- marginRight: 12
754
- },
755
- modernInput: {
756
- flex: 1,
757
- fontSize: 16,
758
- paddingVertical: 16,
759
- fontWeight: '500'
760
- },
761
- // Modern Button Styles
762
- modernButton: {
763
- flexDirection: 'row',
764
- alignItems: 'center',
765
- justifyContent: 'center',
766
- paddingVertical: 18,
767
- paddingHorizontal: 32,
768
- borderRadius: 16,
769
- marginVertical: 8,
770
- shadowOffset: {
771
- width: 0,
772
- height: 4
773
- },
774
- shadowOpacity: 0.3,
775
- shadowRadius: 8,
776
- elevation: 6,
777
- gap: 8
778
- },
779
- modernButtonText: {
780
- color: '#FFFFFF',
781
- fontSize: 16,
782
- fontWeight: '600',
783
- letterSpacing: 0.5
784
- },
785
- buttonIcon: {
786
- marginLeft: 4
787
- },
788
- modernLinkText: {
789
- fontSize: 14,
790
- lineHeight: 20,
791
- fontWeight: '600',
792
- textDecorationLine: 'underline'
793
- },
794
- // Modern User Profile Styles
795
- modernUserProfileContainer: {
796
- alignItems: 'center',
797
- marginBottom: 32,
798
- paddingVertical: 24
799
- },
800
- avatarContainer: {
801
- position: 'relative',
802
- marginBottom: 20
803
- },
804
- modernUserAvatar: {
805
- borderWidth: 4,
806
- borderColor: 'rgba(209, 105, 229, 0.2)'
807
- },
808
- statusIndicator: {
809
- position: 'absolute',
810
- bottom: 4,
811
- right: 4,
812
- width: 20,
813
- height: 20,
814
- borderRadius: 10,
815
- borderWidth: 3,
816
- borderColor: '#FFFFFF'
817
- },
818
- modernUserDisplayName: {
819
- fontSize: 26,
820
- fontWeight: '700',
821
- marginBottom: 4,
822
- textAlign: 'center',
823
- letterSpacing: -0.5
824
- },
825
- modernUsernameSubtext: {
826
- fontSize: 16,
827
- textAlign: 'center',
828
- marginBottom: 16,
829
- opacity: 0.7
830
- },
831
- welcomeBackBadge: {
832
- flexDirection: 'row',
833
- alignItems: 'center',
834
- paddingHorizontal: 12,
835
- paddingVertical: 6,
836
- borderRadius: 20,
837
- gap: 6
838
- },
839
- welcomeBackText: {
840
- fontSize: 12,
841
- fontWeight: '600',
842
- textTransform: 'uppercase',
843
- letterSpacing: 0.5
844
- },
845
- // Modern Navigation
846
- modernNavigationButtons: {
847
- flexDirection: 'row',
848
- justifyContent: 'center',
849
- marginTop: 24,
850
- marginBottom: 16
851
- },
852
- modernBackButton: {
853
- flexDirection: 'row',
854
- alignItems: 'center',
855
- paddingVertical: 12,
856
- paddingHorizontal: 20,
857
- borderRadius: 12,
858
- borderWidth: 1,
859
- gap: 8
860
- },
861
- modernBackButtonText: {
862
- fontSize: 16,
863
- fontWeight: '500'
864
- },
865
- // Security Notice
866
- securityNotice: {
867
- flexDirection: 'row',
868
- alignItems: 'center',
869
- justifyContent: 'center',
870
- marginTop: 20,
871
- gap: 6
872
- },
873
- securityText: {
874
- fontSize: 12,
875
- fontWeight: '500'
876
- },
877
- // Legacy compatibility styles
878
- progressContainer: {
879
- flexDirection: 'row',
880
- alignItems: 'center',
881
- justifyContent: 'center',
882
- marginBottom: 32,
883
- paddingHorizontal: 40
884
- },
885
- progressDot: {
886
- width: 12,
887
- height: 12,
888
- borderRadius: 6,
889
- marginHorizontal: 4
890
- },
891
- progressLine: {
892
- flex: 1,
893
- height: 2,
894
- marginHorizontal: 8
895
- },
896
- welcomeImageContainer: {
897
- alignItems: 'center',
898
- marginBottom: 32
899
- },
900
- header: {
901
- alignItems: 'center',
902
- marginBottom: 16
903
- },
904
- welcomeTitle: {
905
- fontFamily: _reactNative.Platform.OS === 'web' ? 'Phudu' : 'Phudu-Bold',
906
- fontWeight: _reactNative.Platform.OS === 'web' ? 'bold' : undefined,
907
- fontSize: 32,
908
- textAlign: 'center',
909
- marginBottom: 8
910
- },
911
- welcomeText: {
912
- fontSize: 16,
913
- lineHeight: 24,
914
- textAlign: 'center',
915
- marginBottom: 32,
916
- paddingHorizontal: 20
917
- },
918
- userProfileContainer: {
919
- alignItems: 'center',
920
- marginBottom: 32,
921
- paddingVertical: 20
922
- },
923
- userAvatar: {
924
- marginBottom: 16
925
- },
926
- userDisplayName: {
927
- fontSize: 24,
928
- fontWeight: 'bold',
929
- marginBottom: 4,
930
- textAlign: 'center'
931
- },
932
- usernameSubtext: {
933
- fontSize: 16,
934
- textAlign: 'center'
935
- },
936
- navigationButtons: {
937
- flexDirection: 'row',
938
- justifyContent: 'center',
939
- marginTop: 24
940
- },
941
- backButton: {
942
- flexDirection: 'row',
943
- alignItems: 'center',
944
- paddingVertical: 12,
945
- paddingHorizontal: 20,
946
- borderRadius: 12,
947
- borderWidth: 1
948
- },
949
- backButtonText: {
950
- fontSize: 16,
951
- fontWeight: '500',
952
- marginLeft: 8
953
- }
954
- });
955
- var _default = exports.default = SignInScreen;
956
- //# sourceMappingURL=SignInScreen.js.map