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