@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,755 +0,0 @@
1
- "use strict";
2
-
3
- import React, { useState, useRef } from 'react';
4
- import { View, Text, TextInput, TouchableOpacity, StyleSheet, ActivityIndicator, Platform, Animated } from 'react-native';
5
- import { useOxy } from '../context/OxyContext';
6
- import OxyLogo from '../components/OxyLogo';
7
- import { BottomSheetScrollView } from '../components/bottomSheet';
8
- // Add icon import
9
- import Svg, { Path, Circle } from 'react-native-svg';
10
- import { toast } from '../../lib/sonner';
11
- import { jsxs as _jsxs, jsx as _jsx } from "react/jsx-runtime";
12
- const SignUpScreen = ({
13
- navigate,
14
- goBack,
15
- theme
16
- }) => {
17
- // Form data states
18
- const [username, setUsername] = useState('');
19
- const [email, setEmail] = useState('');
20
- const [password, setPassword] = useState('');
21
- const [confirmPassword, setConfirmPassword] = useState('');
22
- const [errorMessage, setErrorMessage] = useState('');
23
-
24
- // Multi-step form states
25
- const [currentStep, setCurrentStep] = useState(0);
26
- const fadeAnim = useRef(new Animated.Value(1)).current;
27
- const slideAnim = useRef(new Animated.Value(0)).current;
28
- const heightAnim = useRef(new Animated.Value(400)).current; // Initial height value
29
- const [containerHeight, setContainerHeight] = useState(400); // Default height
30
-
31
- const {
32
- signUp,
33
- isLoading,
34
- user,
35
- isAuthenticated
36
- } = useOxy();
37
- const isDarkTheme = theme === 'dark';
38
- const textColor = isDarkTheme ? '#FFFFFF' : '#000000';
39
- const backgroundColor = isDarkTheme ? '#121212' : '#FFFFFF';
40
- const inputBackgroundColor = isDarkTheme ? '#333333' : '#F5F5F5';
41
- const placeholderColor = isDarkTheme ? '#AAAAAA' : '#999999';
42
- const primaryColor = '#d169e5';
43
- const borderColor = isDarkTheme ? '#444444' : '#E0E0E0';
44
-
45
- // If user is already authenticated, show user info and account center option
46
- // Animation functions
47
- const animateTransition = nextStep => {
48
- // Fade out
49
- Animated.timing(fadeAnim, {
50
- toValue: 0,
51
- duration: 250,
52
- useNativeDriver: true
53
- }).start(() => {
54
- setCurrentStep(nextStep);
55
-
56
- // Reset slide position
57
- slideAnim.setValue(-100);
58
-
59
- // Fade in and slide
60
- Animated.parallel([Animated.timing(fadeAnim, {
61
- toValue: 1,
62
- duration: 250,
63
- useNativeDriver: true
64
- }), Animated.timing(slideAnim, {
65
- toValue: 0,
66
- duration: 300,
67
- useNativeDriver: true
68
- })]).start();
69
- });
70
- };
71
- const nextStep = () => {
72
- if (currentStep < 3) {
73
- animateTransition(currentStep + 1);
74
- }
75
- };
76
- const prevStep = () => {
77
- if (currentStep > 0) {
78
- animateTransition(currentStep - 1);
79
- }
80
- };
81
- if (user && isAuthenticated) {
82
- return /*#__PURE__*/_jsxs(BottomSheetScrollView, {
83
- style: [styles.scrollContainer, {
84
- backgroundColor,
85
- padding: 20
86
- }],
87
- children: [/*#__PURE__*/_jsxs(Text, {
88
- style: [styles.welcomeTitle, {
89
- color: textColor,
90
- textAlign: 'center'
91
- }],
92
- children: ["Welcome, ", user.username, "!"]
93
- }), /*#__PURE__*/_jsxs(View, {
94
- style: styles.userInfoContainer,
95
- children: [/*#__PURE__*/_jsx(Text, {
96
- style: [styles.userInfoText, {
97
- color: textColor
98
- }],
99
- children: "You are already signed in."
100
- }), user.email && /*#__PURE__*/_jsxs(Text, {
101
- style: [styles.userInfoText, {
102
- color: isDarkTheme ? '#BBBBBB' : '#666666'
103
- }],
104
- children: ["Email: ", user.email]
105
- })]
106
- }), /*#__PURE__*/_jsx(View, {
107
- style: styles.actionButtonsContainer,
108
- children: /*#__PURE__*/_jsx(TouchableOpacity, {
109
- style: [styles.button, {
110
- backgroundColor: primaryColor
111
- }],
112
- onPress: () => navigate('AccountCenter'),
113
- children: /*#__PURE__*/_jsx(Text, {
114
- style: styles.buttonText,
115
- children: "Go to Account Center"
116
- })
117
- })
118
- })]
119
- });
120
- }
121
- const validateEmail = email => {
122
- const emailRegex = /^[^\s@]+@[^\s@]+\.[^\s@]+$/;
123
- return emailRegex.test(email);
124
- };
125
- const handleSignUp = async () => {
126
- // Validate inputs
127
- if (!username || !email || !password || !confirmPassword) {
128
- toast.error('Please fill in all fields');
129
- return;
130
- }
131
- if (!validateEmail(email)) {
132
- toast.error('Please enter a valid email address');
133
- return;
134
- }
135
- if (password !== confirmPassword) {
136
- toast.error('Passwords do not match');
137
- return;
138
- }
139
- if (password.length < 8) {
140
- toast.error('Password must be at least 8 characters long');
141
- return;
142
- }
143
- try {
144
- setErrorMessage('');
145
- await signUp(username, email, password);
146
- toast.success('Account created successfully! Welcome to Oxy!');
147
- // The authentication state change will be handled through context
148
- } catch (error) {
149
- toast.error(error.message || 'Sign up failed');
150
- }
151
- };
152
-
153
- // Step components
154
- const renderWelcomeStep = () => /*#__PURE__*/_jsxs(Animated.View, {
155
- style: [styles.stepContainer, {
156
- opacity: fadeAnim,
157
- transform: [{
158
- translateX: slideAnim
159
- }]
160
- }],
161
- children: [/*#__PURE__*/_jsx(View, {
162
- style: styles.welcomeImageContainer,
163
- children: /*#__PURE__*/_jsxs(Svg, {
164
- width: 220,
165
- height: 120,
166
- viewBox: "0 0 220 120",
167
- children: [/*#__PURE__*/_jsx(Path, {
168
- d: "M30 100 Q60 20 110 60 Q160 100 190 40",
169
- stroke: "#d169e5",
170
- strokeWidth: "8",
171
- fill: "none"
172
- }), /*#__PURE__*/_jsx(Circle, {
173
- cx: "60",
174
- cy: "60",
175
- r: "18",
176
- fill: "#d169e5",
177
- opacity: "0.18"
178
- }), /*#__PURE__*/_jsx(Circle, {
179
- cx: "110",
180
- cy: "60",
181
- r: "24",
182
- fill: "#d169e5",
183
- opacity: "0.25"
184
- }), /*#__PURE__*/_jsx(Circle, {
185
- cx: "170",
186
- cy: "50",
187
- r: "14",
188
- fill: "#d169e5",
189
- opacity: "0.15"
190
- }), /*#__PURE__*/_jsx(Circle, {
191
- cx: "110",
192
- cy: "60",
193
- r: "32",
194
- fill: "#fff",
195
- opacity: "0.7"
196
- }), /*#__PURE__*/_jsx(Circle, {
197
- cx: "100",
198
- cy: "55",
199
- r: "4",
200
- fill: "#d169e5"
201
- }), /*#__PURE__*/_jsx(Circle, {
202
- cx: "120",
203
- cy: "55",
204
- r: "4",
205
- fill: "#d169e5"
206
- }), /*#__PURE__*/_jsx(Path, {
207
- d: "M104 68 Q110 75 116 68",
208
- stroke: "#d169e5",
209
- strokeWidth: "2",
210
- fill: "none",
211
- strokeLinecap: "round"
212
- })]
213
- })
214
- }), /*#__PURE__*/_jsxs(View, {
215
- style: styles.header,
216
- children: [/*#__PURE__*/_jsx(Text, {
217
- style: [styles.welcomeTitle],
218
- children: "Create a Oxy Account"
219
- }), /*#__PURE__*/_jsx(View, {
220
- style: styles.placeholder
221
- })]
222
- }), /*#__PURE__*/_jsx(Text, {
223
- style: [styles.welcomeText, {
224
- color: textColor
225
- }],
226
- children: "We're excited to have you join us. Let's get your account set up in just a few easy steps."
227
- }), /*#__PURE__*/_jsx(TouchableOpacity, {
228
- style: [styles.button, {
229
- backgroundColor: primaryColor
230
- }],
231
- onPress: nextStep,
232
- testID: "welcome-next-button",
233
- children: /*#__PURE__*/_jsx(Text, {
234
- style: styles.buttonText,
235
- children: "Get Started"
236
- })
237
- }), /*#__PURE__*/_jsxs(View, {
238
- style: styles.footerTextContainer,
239
- children: [/*#__PURE__*/_jsxs(Text, {
240
- style: [styles.footerText, {
241
- color: textColor
242
- }],
243
- children: ["Already have an account?", ' ']
244
- }), /*#__PURE__*/_jsx(TouchableOpacity, {
245
- onPress: () => navigate('SignIn'),
246
- children: /*#__PURE__*/_jsx(Text, {
247
- style: [styles.linkText, {
248
- color: primaryColor
249
- }],
250
- children: "Sign In"
251
- })
252
- })]
253
- })]
254
- });
255
- const renderIdentityStep = () => /*#__PURE__*/_jsxs(Animated.View, {
256
- style: [styles.stepContainer, {
257
- opacity: fadeAnim,
258
- transform: [{
259
- translateX: slideAnim
260
- }]
261
- }],
262
- children: [/*#__PURE__*/_jsx(Text, {
263
- style: [styles.stepTitle, {
264
- color: textColor
265
- }],
266
- children: "Who are you?"
267
- }), /*#__PURE__*/_jsxs(View, {
268
- style: styles.inputContainer,
269
- children: [/*#__PURE__*/_jsx(Text, {
270
- style: [styles.label, {
271
- color: textColor
272
- }],
273
- children: "Username"
274
- }), /*#__PURE__*/_jsx(TextInput, {
275
- style: [styles.input, {
276
- backgroundColor: inputBackgroundColor,
277
- borderColor,
278
- color: textColor
279
- }],
280
- placeholder: "Choose a username",
281
- placeholderTextColor: placeholderColor,
282
- value: username,
283
- onChangeText: setUsername,
284
- autoCapitalize: "none",
285
- testID: "username-input"
286
- })]
287
- }), /*#__PURE__*/_jsxs(View, {
288
- style: styles.inputContainer,
289
- children: [/*#__PURE__*/_jsx(Text, {
290
- style: [styles.label, {
291
- color: textColor
292
- }],
293
- children: "Email"
294
- }), /*#__PURE__*/_jsx(TextInput, {
295
- style: [styles.input, {
296
- backgroundColor: inputBackgroundColor,
297
- borderColor,
298
- color: textColor
299
- }],
300
- placeholder: "Enter your email",
301
- placeholderTextColor: placeholderColor,
302
- value: email,
303
- onChangeText: setEmail,
304
- autoCapitalize: "none",
305
- keyboardType: "email-address",
306
- testID: "email-input"
307
- })]
308
- }), /*#__PURE__*/_jsxs(View, {
309
- style: styles.navigationButtons,
310
- children: [/*#__PURE__*/_jsx(TouchableOpacity, {
311
- style: [styles.navButton, styles.backButton],
312
- onPress: prevStep,
313
- children: /*#__PURE__*/_jsx(Text, {
314
- style: [styles.navButtonText, {
315
- color: textColor
316
- }],
317
- children: "Back"
318
- })
319
- }), /*#__PURE__*/_jsx(TouchableOpacity, {
320
- style: [styles.navButton, styles.nextButton, {
321
- backgroundColor: primaryColor
322
- }],
323
- onPress: nextStep,
324
- disabled: !username || !email || !validateEmail(email),
325
- children: /*#__PURE__*/_jsx(Text, {
326
- style: styles.navButtonText,
327
- children: "Next"
328
- })
329
- })]
330
- })]
331
- });
332
- const renderSecurityStep = () => /*#__PURE__*/_jsxs(Animated.View, {
333
- style: [styles.stepContainer, {
334
- opacity: fadeAnim,
335
- transform: [{
336
- translateX: slideAnim
337
- }]
338
- }],
339
- children: [/*#__PURE__*/_jsx(Text, {
340
- style: [styles.stepTitle, {
341
- color: textColor
342
- }],
343
- children: "Secure your account"
344
- }), /*#__PURE__*/_jsxs(View, {
345
- style: styles.inputContainer,
346
- children: [/*#__PURE__*/_jsx(Text, {
347
- style: [styles.label, {
348
- color: textColor
349
- }],
350
- children: "Password"
351
- }), /*#__PURE__*/_jsx(TextInput, {
352
- style: [styles.input, {
353
- backgroundColor: inputBackgroundColor,
354
- borderColor,
355
- color: textColor
356
- }],
357
- placeholder: "Create a password",
358
- placeholderTextColor: placeholderColor,
359
- value: password,
360
- onChangeText: setPassword,
361
- secureTextEntry: true,
362
- testID: "password-input"
363
- }), /*#__PURE__*/_jsx(Text, {
364
- style: [styles.passwordHint, {
365
- color: isDarkTheme ? '#AAAAAA' : '#666666'
366
- }],
367
- children: "Password must be at least 8 characters long"
368
- })]
369
- }), /*#__PURE__*/_jsxs(View, {
370
- style: styles.inputContainer,
371
- children: [/*#__PURE__*/_jsx(Text, {
372
- style: [styles.label, {
373
- color: textColor
374
- }],
375
- children: "Confirm Password"
376
- }), /*#__PURE__*/_jsx(TextInput, {
377
- style: [styles.input, {
378
- backgroundColor: inputBackgroundColor,
379
- borderColor,
380
- color: textColor
381
- }],
382
- placeholder: "Confirm your password",
383
- placeholderTextColor: placeholderColor,
384
- value: confirmPassword,
385
- onChangeText: setConfirmPassword,
386
- secureTextEntry: true,
387
- testID: "confirm-password-input"
388
- })]
389
- }), /*#__PURE__*/_jsxs(View, {
390
- style: styles.navigationButtons,
391
- children: [/*#__PURE__*/_jsx(TouchableOpacity, {
392
- style: [styles.navButton, styles.backButton],
393
- onPress: prevStep,
394
- children: /*#__PURE__*/_jsx(Text, {
395
- style: [styles.navButtonText, {
396
- color: textColor
397
- }],
398
- children: "Back"
399
- })
400
- }), /*#__PURE__*/_jsx(TouchableOpacity, {
401
- style: [styles.navButton, styles.nextButton, {
402
- backgroundColor: primaryColor
403
- }],
404
- onPress: nextStep,
405
- disabled: !password || password.length < 8 || password !== confirmPassword,
406
- children: /*#__PURE__*/_jsx(Text, {
407
- style: styles.navButtonText,
408
- children: "Next"
409
- })
410
- })]
411
- })]
412
- });
413
- const renderSummaryStep = () => /*#__PURE__*/_jsxs(Animated.View, {
414
- style: [styles.stepContainer, {
415
- opacity: fadeAnim,
416
- transform: [{
417
- translateX: slideAnim
418
- }]
419
- }],
420
- children: [/*#__PURE__*/_jsx(Text, {
421
- style: [styles.stepTitle, {
422
- color: textColor
423
- }],
424
- children: "Ready to join"
425
- }), /*#__PURE__*/_jsxs(View, {
426
- style: styles.summaryContainer,
427
- children: [/*#__PURE__*/_jsxs(View, {
428
- style: styles.summaryRow,
429
- children: [/*#__PURE__*/_jsx(Text, {
430
- style: [styles.summaryLabel, {
431
- color: isDarkTheme ? '#AAAAAA' : '#666666'
432
- }],
433
- children: "Username:"
434
- }), /*#__PURE__*/_jsx(Text, {
435
- style: [styles.summaryValue, {
436
- color: textColor
437
- }],
438
- children: username
439
- })]
440
- }), /*#__PURE__*/_jsxs(View, {
441
- style: styles.summaryRow,
442
- children: [/*#__PURE__*/_jsx(Text, {
443
- style: [styles.summaryLabel, {
444
- color: isDarkTheme ? '#AAAAAA' : '#666666'
445
- }],
446
- children: "Email:"
447
- }), /*#__PURE__*/_jsx(Text, {
448
- style: [styles.summaryValue, {
449
- color: textColor
450
- }],
451
- children: email
452
- })]
453
- })]
454
- }), errorMessage ? /*#__PURE__*/_jsx(View, {
455
- style: styles.errorContainer,
456
- children: /*#__PURE__*/_jsx(Text, {
457
- style: styles.errorText,
458
- children: errorMessage
459
- })
460
- }) : null, /*#__PURE__*/_jsxs(View, {
461
- style: styles.navigationButtons,
462
- children: [/*#__PURE__*/_jsx(TouchableOpacity, {
463
- style: [styles.navButton, styles.backButton],
464
- onPress: prevStep,
465
- children: /*#__PURE__*/_jsx(Text, {
466
- style: [styles.navButtonText, {
467
- color: textColor
468
- }],
469
- children: "Back"
470
- })
471
- }), /*#__PURE__*/_jsx(TouchableOpacity, {
472
- style: [styles.button, {
473
- opacity: isLoading ? 0.8 : 1
474
- }],
475
- onPress: handleSignUp,
476
- disabled: isLoading,
477
- testID: "signup-button",
478
- children: isLoading ? /*#__PURE__*/_jsx(ActivityIndicator, {
479
- color: "#FFFFFF",
480
- size: "small"
481
- }) : /*#__PURE__*/_jsx(Text, {
482
- style: styles.buttonText,
483
- children: "Create Account"
484
- })
485
- })]
486
- })]
487
- });
488
-
489
- // Progress indicators
490
- const renderProgressIndicators = () => /*#__PURE__*/_jsx(View, {
491
- style: styles.progressContainer,
492
- children: [0, 1, 2, 3].map(step => /*#__PURE__*/_jsx(View, {
493
- style: [styles.progressDot, currentStep === step ? {
494
- backgroundColor: primaryColor,
495
- width: 24
496
- } : {
497
- backgroundColor: isDarkTheme ? '#444444' : '#E0E0E0'
498
- }]
499
- }, step))
500
- });
501
-
502
- // Render step based on current step value
503
- const renderCurrentStep = () => {
504
- switch (currentStep) {
505
- case 0:
506
- return renderWelcomeStep();
507
- case 1:
508
- return renderIdentityStep();
509
- case 2:
510
- return renderSecurityStep();
511
- case 3:
512
- return renderSummaryStep();
513
- default:
514
- return null;
515
- }
516
- };
517
- return /*#__PURE__*/_jsxs(BottomSheetScrollView, {
518
- contentContainerStyle: styles.scrollContainer,
519
- keyboardShouldPersistTaps: "handled",
520
- children: [/*#__PURE__*/_jsx(OxyLogo, {
521
- style: {
522
- marginBottom: 24
523
- },
524
- width: 50,
525
- height: 50
526
- }), /*#__PURE__*/_jsx(View, {
527
- style: styles.formContainer,
528
- children: renderCurrentStep()
529
- }), currentStep > 0 && renderProgressIndicators()]
530
- });
531
- };
532
- const styles = StyleSheet.create({
533
- scrollContainer: {
534
- padding: 20
535
- },
536
- header: {
537
- flexDirection: 'row',
538
- alignItems: 'center',
539
- justifyContent: 'space-between'
540
- },
541
- placeholder: {
542
- width: 40
543
- },
544
- formContainer: {
545
- width: '100%',
546
- marginTop: 8
547
- },
548
- stepContainer: {
549
- width: '100%',
550
- paddingVertical: 8,
551
- paddingHorizontal: 0,
552
- marginBottom: 8
553
- },
554
- inputContainer: {
555
- marginBottom: 18
556
- },
557
- label: {
558
- fontSize: 15,
559
- marginBottom: 8,
560
- fontWeight: '500',
561
- letterSpacing: 0.1
562
- },
563
- input: {
564
- height: 48,
565
- borderRadius: 16,
566
- paddingHorizontal: 16,
567
- borderWidth: 1,
568
- fontSize: 16,
569
- backgroundColor: '#F5F5F5',
570
- borderColor: '#E0E0E0',
571
- marginBottom: 2
572
- },
573
- button: {
574
- backgroundColor: '#d169e5',
575
- height: 48,
576
- borderRadius: 24,
577
- alignItems: 'center',
578
- justifyContent: 'center',
579
- marginTop: 24,
580
- shadowColor: '#d169e5',
581
- shadowOpacity: 0.12,
582
- shadowOffset: {
583
- width: 0,
584
- height: 2
585
- },
586
- shadowRadius: 8,
587
- elevation: 2
588
- },
589
- buttonText: {
590
- color: '#FFFFFF',
591
- fontSize: 17,
592
- fontWeight: '700',
593
- letterSpacing: 0.2
594
- },
595
- footerTextContainer: {
596
- flexDirection: 'row',
597
- justifyContent: 'center',
598
- marginTop: 28
599
- },
600
- footerText: {
601
- fontSize: 15,
602
- color: '#888'
603
- },
604
- linkText: {
605
- fontSize: 15,
606
- fontWeight: '700',
607
- color: '#d169e5'
608
- },
609
- errorContainer: {
610
- backgroundColor: '#FFE4EC',
611
- padding: 14,
612
- borderRadius: 18,
613
- marginBottom: 16,
614
- borderWidth: 1,
615
- borderColor: '#F8BBD0'
616
- },
617
- errorText: {
618
- color: '#D32F2F',
619
- fontSize: 15,
620
- fontWeight: '500'
621
- },
622
- userInfoContainer: {
623
- padding: 20,
624
- marginVertical: 20,
625
- backgroundColor: '#F5F5F5',
626
- borderRadius: 24,
627
- alignItems: 'center',
628
- shadowColor: '#000',
629
- shadowOpacity: 0.04,
630
- shadowOffset: {
631
- width: 0,
632
- height: 1
633
- },
634
- shadowRadius: 4,
635
- elevation: 1
636
- },
637
- userInfoText: {
638
- fontSize: 16,
639
- marginBottom: 8,
640
- textAlign: 'center'
641
- },
642
- actionButtonsContainer: {
643
- marginTop: 24
644
- },
645
- // Multi-step form styles
646
- welcomeTitle: {
647
- fontFamily: Platform.OS === 'web' ? 'Phudu' // Use CSS font name directly for web
648
- : 'Phudu-Bold',
649
- // Use exact font name as registered with Font.loadAsync
650
- fontWeight: Platform.OS === 'web' ? 'bold' : undefined,
651
- // Only apply fontWeight on web
652
- fontSize: 54,
653
- marginBottom: 24
654
- },
655
- welcomeText: {
656
- fontSize: 16,
657
- textAlign: 'left',
658
- marginBottom: 30,
659
- lineHeight: 24,
660
- color: '#444'
661
- },
662
- welcomeImageContainer: {
663
- alignItems: 'center',
664
- justifyContent: 'center',
665
- marginVertical: 30
666
- },
667
- stepTitle: {
668
- fontFamily: Platform.OS === 'web' ? 'Phudu' // Use CSS font name directly for web
669
- : 'Phudu-Bold',
670
- // Use exact font name as registered with Font.loadAsync
671
- fontWeight: Platform.OS === 'web' ? 'bold' : undefined,
672
- // Only apply fontWeight on web
673
- fontSize: 34,
674
- marginBottom: 20,
675
- color: '#d169e5',
676
- maxWidth: '90%'
677
- },
678
- navigationButtons: {
679
- flexDirection: 'row',
680
- justifyContent: 'space-between',
681
- alignItems: 'center',
682
- marginTop: 28
683
- },
684
- navButton: {
685
- borderRadius: 24,
686
- height: 44,
687
- alignItems: 'center',
688
- justifyContent: 'center',
689
- paddingHorizontal: 28,
690
- backgroundColor: '#F3E5F5'
691
- },
692
- backButton: {
693
- backgroundColor: 'transparent',
694
- borderWidth: 1,
695
- borderColor: '#E0E0E0'
696
- },
697
- nextButton: {
698
- minWidth: 100,
699
- backgroundColor: '#d169e5'
700
- },
701
- navButtonText: {
702
- fontSize: 16,
703
- fontWeight: '700',
704
- color: '#d169e5'
705
- },
706
- passwordHint: {
707
- fontSize: 12,
708
- marginTop: 4,
709
- color: '#888'
710
- },
711
- progressContainer: {
712
- flexDirection: 'row',
713
- justifyContent: 'center',
714
- marginBottom: 20,
715
- marginTop: 8
716
- },
717
- progressDot: {
718
- height: 10,
719
- width: 10,
720
- borderRadius: 5,
721
- marginHorizontal: 6,
722
- backgroundColor: '#E0E0E0',
723
- borderWidth: 2,
724
- borderColor: '#fff',
725
- shadowColor: '#d169e5',
726
- shadowOpacity: 0.08,
727
- shadowOffset: {
728
- width: 0,
729
- height: 1
730
- },
731
- shadowRadius: 2,
732
- elevation: 1
733
- },
734
- summaryContainer: {
735
- padding: 0,
736
- marginBottom: 24
737
- },
738
- summaryRow: {
739
- flexDirection: 'row',
740
- marginBottom: 10
741
- },
742
- summaryLabel: {
743
- fontSize: 15,
744
- width: 90,
745
- color: '#888'
746
- },
747
- summaryValue: {
748
- fontSize: 15,
749
- fontWeight: '600',
750
- flex: 1,
751
- color: '#222'
752
- }
753
- });
754
- export default SignUpScreen;
755
- //# sourceMappingURL=SignUpScreen.js.map