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