@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,241 +0,0 @@
1
- "use strict";
2
-
3
- import React, { useState, useEffect } from 'react';
4
- import { TouchableOpacity, StyleSheet, Platform, ActivityIndicator } from 'react-native';
5
- import Animated, { useSharedValue, useAnimatedStyle, withSpring, interpolateColor, Easing, withTiming } from 'react-native-reanimated';
6
- import { useOxy } from '../context/OxyContext';
7
- import { fontFamilies } from '../styles/fonts';
8
- import { toast } from '../../lib/sonner';
9
- import { jsx as _jsx } from "react/jsx-runtime";
10
- /**
11
- * An animated follow button with interactive state changes and preventDefault support
12
- *
13
- * @example
14
- * ```tsx
15
- * // Basic usage
16
- * <FollowButton userId="123" />
17
- *
18
- * // With custom styling
19
- * <FollowButton
20
- * userId="123"
21
- * initiallyFollowing={true}
22
- * size="large"
23
- * style={{ borderRadius: 12 }}
24
- * onFollowChange={(isFollowing) => console.log(`User is now ${isFollowing ? 'followed' : 'unfollowed'}`)}
25
- * />
26
- *
27
- * // Inside a pressable container (prevents parent actions)
28
- * <TouchableOpacity onPress={() => navigateToProfile()}>
29
- * <View>
30
- * <Text>User Profile</Text>
31
- * <FollowButton
32
- * userId="123"
33
- * preventParentActions={true} // Default: true
34
- * />
35
- * </View>
36
- * </TouchableOpacity>
37
- *
38
- * // Custom onPress handler
39
- * <FollowButton
40
- * userId="123"
41
- * onPress={(event) => {
42
- * event.preventDefault(); // Custom preventDefault
43
- * // Custom logic here
44
- * }}
45
- * />
46
- * ```
47
- */
48
- const FollowButton = ({
49
- userId,
50
- initiallyFollowing = false,
51
- size = 'medium',
52
- onFollowChange,
53
- style,
54
- textStyle,
55
- disabled = false,
56
- showLoadingState = true,
57
- preventParentActions = true,
58
- onPress
59
- }) => {
60
- const {
61
- oxyServices,
62
- isAuthenticated
63
- } = useOxy();
64
- const [isFollowing, setIsFollowing] = useState(initiallyFollowing);
65
- const [isLoading, setIsLoading] = useState(false);
66
-
67
- // Animation values
68
- const animationProgress = useSharedValue(initiallyFollowing ? 1 : 0);
69
- const scale = useSharedValue(1);
70
-
71
- // Update the animation value when isFollowing changes
72
- useEffect(() => {
73
- animationProgress.value = withTiming(isFollowing ? 1 : 0, {
74
- duration: 300,
75
- easing: Easing.bezier(0.25, 0.1, 0.25, 1)
76
- });
77
- }, [isFollowing, animationProgress]);
78
-
79
- // The button press handler with preventDefault support
80
- const handlePress = async event => {
81
- // Prevent parent actions if enabled (e.g., if inside a link or pressable container)
82
- if (preventParentActions && event) {
83
- // For React Native Web compatibility
84
- if (Platform.OS === 'web' && event.preventDefault) {
85
- event.preventDefault();
86
- }
87
-
88
- // Stop event propagation to prevent parent TouchableOpacity/Pressable actions
89
- if (event.stopPropagation) {
90
- event.stopPropagation();
91
- }
92
-
93
- // For React Native, prevent gesture bubbling
94
- if (event.nativeEvent && event.nativeEvent.stopPropagation) {
95
- event.nativeEvent.stopPropagation();
96
- }
97
- }
98
-
99
- // If custom onPress is provided, use it instead of default behavior
100
- if (onPress) {
101
- onPress(event);
102
- return;
103
- }
104
- if (disabled || isLoading || !isAuthenticated) return;
105
-
106
- // Touch feedback animation
107
- scale.value = withSpring(0.95, {
108
- damping: 10
109
- }, () => {
110
- scale.value = withSpring(1);
111
- });
112
- setIsLoading(true);
113
- try {
114
- // This should be replaced with actual API call to your services
115
- if (isFollowing) {
116
- // Unfollow API call would go here
117
- // await oxyServices.user.unfollowUser(userId);
118
- console.log(`Unfollowing user: ${userId}`);
119
- await new Promise(resolve => setTimeout(resolve, 500)); // Simulating API call
120
- } else {
121
- // Follow API call would go here
122
- // await oxyServices.user.followUser(userId);
123
- console.log(`Following user: ${userId}`);
124
- await new Promise(resolve => setTimeout(resolve, 500)); // Simulating API call
125
- }
126
-
127
- // Toggle following state with animation
128
- const newFollowingState = !isFollowing;
129
- setIsFollowing(newFollowingState);
130
-
131
- // Call the callback if provided
132
- if (onFollowChange) {
133
- onFollowChange(newFollowingState);
134
- }
135
-
136
- // Show success toast
137
- toast.success(newFollowingState ? 'Following user!' : 'Unfollowed user');
138
- } catch (error) {
139
- console.error('Follow action failed:', error);
140
- toast.error('Failed to update follow status. Please try again.');
141
- } finally {
142
- setIsLoading(false);
143
- }
144
- };
145
-
146
- // Animated styles for the button
147
- const animatedButtonStyle = useAnimatedStyle(() => {
148
- const backgroundColor = interpolateColor(animationProgress.value, [0, 1], ['#d169e5', '#FFFFFF']);
149
- const borderColor = interpolateColor(animationProgress.value, [0, 1], ['#d169e5', '#d169e5']);
150
-
151
- // Add a slight scaling effect during the transition
152
- const transitionScale = 1 + 0.05 * Math.sin(animationProgress.value * Math.PI);
153
- return {
154
- backgroundColor,
155
- borderColor,
156
- borderWidth: 1,
157
- transform: [{
158
- scale: scale.value * transitionScale
159
- }]
160
- };
161
- });
162
-
163
- // Animated styles for the text
164
- const animatedTextStyle = useAnimatedStyle(() => {
165
- const color = interpolateColor(animationProgress.value, [0, 1], ['#FFFFFF', '#d169e5']);
166
- return {
167
- color
168
- };
169
- });
170
-
171
- // Get size-specific styles
172
- const getSizeStyles = () => {
173
- switch (size) {
174
- case 'small':
175
- return {
176
- button: {
177
- paddingVertical: 6,
178
- paddingHorizontal: 12
179
- },
180
- text: {
181
- fontSize: 12
182
- }
183
- };
184
- case 'large':
185
- return {
186
- button: {
187
- paddingVertical: 12,
188
- paddingHorizontal: 24
189
- },
190
- text: {
191
- fontSize: 18
192
- }
193
- };
194
- default:
195
- // medium
196
- return {
197
- button: {
198
- paddingVertical: 8,
199
- paddingHorizontal: 16
200
- },
201
- text: {
202
- fontSize: 14
203
- }
204
- };
205
- }
206
- };
207
- const sizeStyles = getSizeStyles();
208
- return /*#__PURE__*/_jsx(TouchableOpacity, {
209
- activeOpacity: 0.8,
210
- onPress: handlePress,
211
- disabled: disabled || isLoading || !isAuthenticated,
212
- children: /*#__PURE__*/_jsx(Animated.View, {
213
- style: [styles.button, sizeStyles.button, animatedButtonStyle, style],
214
- children: isLoading && showLoadingState ? /*#__PURE__*/_jsx(ActivityIndicator, {
215
- size: "small",
216
- color: isFollowing ? '#d169e5' : '#FFFFFF'
217
- }) : /*#__PURE__*/_jsx(Animated.Text, {
218
- style: [styles.text, sizeStyles.text, animatedTextStyle, textStyle],
219
- children: isFollowing ? 'Following' : 'Follow'
220
- })
221
- })
222
- });
223
- };
224
- const styles = StyleSheet.create({
225
- button: {
226
- justifyContent: 'center',
227
- alignItems: 'center',
228
- flexDirection: 'row',
229
- borderRadius: 100
230
- },
231
- text: {
232
- fontFamily: Platform.select({
233
- web: 'Phudu',
234
- default: fontFamilies.phuduSemiBold
235
- }),
236
- fontWeight: Platform.OS === 'web' ? '600' : undefined,
237
- textAlign: 'center'
238
- }
239
- });
240
- export default FollowButton;
241
- //# sourceMappingURL=FollowButton.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["React","useState","useEffect","TouchableOpacity","StyleSheet","Platform","ActivityIndicator","Animated","useSharedValue","useAnimatedStyle","withSpring","interpolateColor","Easing","withTiming","useOxy","fontFamilies","toast","jsx","_jsx","FollowButton","userId","initiallyFollowing","size","onFollowChange","style","textStyle","disabled","showLoadingState","preventParentActions","onPress","oxyServices","isAuthenticated","isFollowing","setIsFollowing","isLoading","setIsLoading","animationProgress","scale","value","duration","easing","bezier","handlePress","event","OS","preventDefault","stopPropagation","nativeEvent","damping","console","log","Promise","resolve","setTimeout","newFollowingState","success","error","animatedButtonStyle","backgroundColor","borderColor","transitionScale","Math","sin","PI","borderWidth","transform","animatedTextStyle","color","getSizeStyles","button","paddingVertical","paddingHorizontal","text","fontSize","sizeStyles","activeOpacity","children","View","styles","Text","create","justifyContent","alignItems","flexDirection","borderRadius","fontFamily","select","web","default","phuduSemiBold","fontWeight","undefined","textAlign"],"sourceRoot":"../../../../src","sources":["ui/components/FollowButton.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,QAAQ,EAAEC,SAAS,QAAQ,OAAO;AAClD,SACEC,gBAAgB,EAEhBC,UAAU,EAIVC,QAAQ,EACRC,iBAAiB,QACZ,cAAc;AACrB,OAAOC,QAAQ,IACbC,cAAc,EACdC,gBAAgB,EAChBC,UAAU,EACVC,gBAAgB,EAChBC,MAAM,EACNC,UAAU,QACL,yBA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I;QACZvD,KAAK,EAAE,CACLsD,MAAM,CAACN,IAAI,EACXE,UAAU,CAACF,IAAI,EACfN,iBAAiB,EACjBzC,SAAS,CACT;QAAAmD,QAAA,EAED5C,WAAW,GAAG,WAAW,GAAG;MAAQ,CACxB;IAChB,CACY;EAAC,CACA,CAAC;AAEvB,CAAC;AAED,MAAM8C,MAAM,GAAG1E,UAAU,CAAC4E,MAAM,CAAC;EAC/BX,MAAM,EAAE;IACNY,cAAc,EAAE,QAAQ;IACxBC,UAAU,EAAE,QAAQ;IACpBC,aAAa,EAAE,KAAK;IACpBC,YAAY,EAAE;EAChB,CAAC;EACDZ,IAAI,EAAE;IACJa,UAAU,EAAEhF,QAAQ,CAACiF,MAAM,CAAC;MAC1BC,GAAG,EAAE,OAAO;MACZC,OAAO,EAAEzE,YAAY,CAAC0E;IACxB,CAAC,CAAC;IACFC,UAAU,EAAErF,QAAQ,CAACuC,EAAE,KAAK,KAAK,GAAG,KAAK,GAAG+C,SAAS;IACrDC,SAAS,EAAE;EACb;AACF,CAAC,CAAC;AAEF,eAAezE,YAAY","ignoreList":[]}
@@ -1,176 +0,0 @@
1
- "use strict";
2
-
3
- import React, { useState, useEffect } from 'react';
4
- import { View, ActivityIndicator, StyleSheet, Platform } from 'react-native';
5
- import * as Font from 'expo-font';
6
-
7
- /**
8
- * Get the Phudu font sources for both native and web environments
9
- * This is specifically designed to work when distributed as an npm package
10
- */
11
- import { Fragment as _Fragment, jsx as _jsx } from "react/jsx-runtime";
12
- const getPhuduFonts = () => {
13
- try {
14
- // For both development and when used as a package
15
- // Load all static font weights
16
- return {
17
- 'Phudu-Light': require('../../assets/fonts/Phudu/Phudu-Light.ttf'),
18
- 'Phudu-Regular': require('../../assets/fonts/Phudu/Phudu-Regular.ttf'),
19
- 'Phudu-Medium': require('../../assets/fonts/Phudu/Phudu-Medium.ttf'),
20
- 'Phudu-SemiBold': require('../../assets/fonts/Phudu/Phudu-SemiBold.ttf'),
21
- 'Phudu-Bold': require('../../assets/fonts/Phudu/Phudu-Bold.ttf'),
22
- 'Phudu-ExtraBold': require('../../assets/fonts/Phudu/Phudu-ExtraBold.ttf'),
23
- 'Phudu-Black': require('../../assets/fonts/Phudu/Phudu-Black.ttf')
24
- };
25
- } catch (error) {
26
- console.warn('Failed to load Phudu fonts:', error);
27
- return null;
28
- }
29
- };
30
-
31
- /**
32
- * FontLoader component that loads custom fonts before rendering children
33
- * This works in both the package development and when consumed as an npm package
34
- */
35
- export const FontLoader = ({
36
- children,
37
- fallbackContent
38
- }) => {
39
- const [fontState, setFontState] = useState('loading');
40
- useEffect(() => {
41
- const loadFonts = async () => {
42
- try {
43
- // Get all the font weights
44
- const phuduFonts = getPhuduFonts();
45
- if (!phuduFonts) {
46
- throw new Error('Phudu font files not found');
47
- }
48
-
49
- // Load all the static Phudu fonts with their respective weights
50
- await Font.loadAsync(phuduFonts);
51
- setFontState('loaded');
52
- } catch (error) {
53
- console.error('Error loading fonts:', error);
54
- // Fallback to render without custom fonts
55
- setFontState('error');
56
- }
57
- };
58
- loadFonts();
59
- }, []);
60
- if (fontState === 'loading') {
61
- // Render a loading placeholder while fonts are loading
62
- if (fallbackContent) {
63
- return /*#__PURE__*/_jsx(_Fragment, {
64
- children: fallbackContent
65
- });
66
- }
67
- return /*#__PURE__*/_jsx(View, {
68
- style: styles.loaderContainer,
69
- children: /*#__PURE__*/_jsx(ActivityIndicator, {
70
- size: "small",
71
- color: "#d169e5"
72
- })
73
- });
74
- }
75
- if (fontState === 'error') {
76
- console.warn('Fonts failed to load. Using system fonts instead.');
77
- }
78
-
79
- // Return children even on error - the app will use system fonts as fallback
80
- return /*#__PURE__*/_jsx(_Fragment, {
81
- children: children
82
- });
83
- };
84
-
85
- /**
86
- * Setup fonts for applications consuming this package
87
- * This should be called by applications using your package
88
- */
89
- export const setupFonts = async () => {
90
- try {
91
- const phuduFonts = getPhuduFonts();
92
- if (!phuduFonts) {
93
- throw new Error('Phudu font files not found');
94
- }
95
- if (Platform.OS === 'web') {
96
- // For web platform, dynamically inject CSS to load the fonts
97
- if (typeof document !== 'undefined') {
98
- // Create a style element
99
- const style = document.createElement('style');
100
-
101
- // Define @font-face rules for each font weight
102
- const fontFaceRules = `
103
- @font-face {
104
- font-family: 'Phudu';
105
- src: url(${phuduFonts['Phudu-Light']}) format('truetype');
106
- font-weight: 300;
107
- font-style: normal;
108
- }
109
- @font-face {
110
- font-family: 'Phudu';
111
- src: url(${phuduFonts['Phudu-Regular']}) format('truetype');
112
- font-weight: 400;
113
- font-style: normal;
114
- }
115
- @font-face {
116
- font-family: 'Phudu';
117
- src: url(${phuduFonts['Phudu-Medium']}) format('truetype');
118
- font-weight: 500;
119
- font-style: normal;
120
- }
121
- @font-face {
122
- font-family: 'Phudu';
123
- src: url(${phuduFonts['Phudu-SemiBold']}) format('truetype');
124
- font-weight: 600;
125
- font-style: normal;
126
- }
127
- @font-face {
128
- font-family: 'Phudu';
129
- src: url(${phuduFonts['Phudu-Bold']}) format('truetype');
130
- font-weight: 700;
131
- font-style: normal;
132
- }
133
- @font-face {
134
- font-family: 'Phudu';
135
- src: url(${phuduFonts['Phudu-ExtraBold']}) format('truetype');
136
- font-weight: 800;
137
- font-style: normal;
138
- }
139
- @font-face {
140
- font-family: 'Phudu';
141
- src: url(${phuduFonts['Phudu-Black']}) format('truetype');
142
- font-weight: 900;
143
- font-style: normal;
144
- }
145
- `;
146
- style.textContent = fontFaceRules;
147
- // Append to the document head
148
- document.head.appendChild(style);
149
- console.info('All Phudu web fonts have been dynamically loaded');
150
- }
151
- } else {
152
- // For native platforms, guidance for the package users
153
- console.info('Fonts should be linked in native projects to use Phudu fonts');
154
-
155
- // Attempt to load the fonts anyway (this works if the consumer has linked the assets)
156
- await Font.loadAsync(phuduFonts);
157
- }
158
- return true;
159
- } catch (error) {
160
- console.warn('Error setting up fonts:', error?.message || error);
161
- return false;
162
- }
163
- };
164
- const styles = StyleSheet.create({
165
- loaderContainer: {
166
- position: 'absolute',
167
- top: 0,
168
- left: 0,
169
- right: 0,
170
- bottom: 0,
171
- justifyContent: 'center',
172
- alignItems: 'center',
173
- backgroundColor: 'transparent'
174
- }
175
- });
176
- //# sourceMappingURL=FontLoader.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["React","useState","useEffect","View","ActivityIndicator","StyleSheet","Platform","Font","Fragment","_Fragment","jsx","_jsx","getPhuduFonts","require","error","console","warn","FontLoader","children","fallbackContent","fontState","setFontState","loadFonts","phuduFonts","Error","loadAsync","style","styles","loaderContainer","size","color","setupFonts","OS","document","createElement","fontFaceRules","textContent","head","appendChild","info","message","create","position","top","left","right","bottom","justifyContent","alignItems","backgroundColor"],"sourceRoot":"../../../../src","sources":["ui/components/FontLoader.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,QAAQ,EAAEC,SAAS,QAAQ,OAAO;AAClD,SAAeC,IAAI,EAAEC,iBAAiB,EAAEC,UAAU,EAAEC,QAAQ,QAAQ,cAAc;AAClF,OAAO,KAAKC,IAAI,MAAM,WAAW;;AAEjC;AACA;AACA;AACA;AAHA,SAAAC,QAAA,IAAAC,SAAA,EAAAC,GAAA,IAAAC,IAAA;AAIA,MAAMC,aAAa,GAAGA,CAAA,KAAM;EACxB,IAAI;IACA;IACA;IACA,OAAO;MACH,aAAa,EAAEC,OAAO,CAAC,0CAA0C,CAAC;MAClE,eAAe,EAAEA,OAAO,CAAC,4CAA4C,CAAC;MACtE,cAAc,EAAEA,OAAO,CAAC,2CAA2C,CAAC;MACpE,gBAAgB,EAAEA,OAAO,CAAC,6CAA6C,CAAC;MACxE,YAAY,EAAEA,OAAO,CAAC,yCAAyC,CAAC;MAChE,iBAAiB,EAAEA,OAAO,CAAC,8CAA8C,CAAC;MAC1E,aAAa,EAAEA,OAAO,CAAC,0CAA0C;IACrE,CAAC;EACL,CAAC,CAAC,OAAOC,KAAK,EAAE;IACZC,OAAO,CAACC,IAAI,CAAC,6BAA6B,EAAEF,KAAK,CAAC;IAClD,OAAO,IAAI;EACf;AACJ,CA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BAAyB,EAAEF,KAAK,EAAE0B,OAAO,IAAI1B,KAAK,CAAC;IAChE,OAAO,KAAK;EAChB;AACJ,CAAC;AAED,MAAMa,MAAM,GAAGtB,UAAU,CAACoC,MAAM,CAAC;EAC7Bb,eAAe,EAAE;IACbc,QAAQ,EAAE,UAAU;IACpBC,GAAG,EAAE,CAAC;IACNC,IAAI,EAAE,CAAC;IACPC,KAAK,EAAE,CAAC;IACRC,MAAM,EAAE,CAAC;IACTC,cAAc,EAAE,QAAQ;IACxBC,UAAU,EAAE,QAAQ;IACpBC,eAAe,EAAE;EACrB;AACJ,CAAC,CAAC","ignoreList":[]}
@@ -1,104 +0,0 @@
1
- "use strict";
2
-
3
- import React from 'react';
4
- import { View, Text, TouchableOpacity, StyleSheet } from 'react-native';
5
- import { Ionicons } from '@expo/vector-icons';
6
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
7
- const GroupedItem = ({
8
- icon,
9
- iconColor = '#007AFF',
10
- title,
11
- subtitle,
12
- theme,
13
- onPress,
14
- isFirst = false,
15
- isLast = false,
16
- showChevron = true,
17
- disabled = false,
18
- customContent
19
- }) => {
20
- const isDarkTheme = theme === 'dark';
21
- const textColor = isDarkTheme ? '#FFFFFF' : '#000000';
22
- const secondaryBackgroundColor = isDarkTheme ? '#222222' : '#FFFFFF';
23
- const itemStyles = [styles.groupedItem, isFirst && styles.firstGroupedItem, isLast && styles.lastGroupedItem, {
24
- backgroundColor: secondaryBackgroundColor
25
- }];
26
- const content = /*#__PURE__*/_jsxs(View, {
27
- style: styles.groupedItemContent,
28
- children: [icon && /*#__PURE__*/_jsx(Ionicons, {
29
- name: icon,
30
- size: 20,
31
- color: iconColor,
32
- style: styles.actionIcon
33
- }), /*#__PURE__*/_jsxs(View, {
34
- style: styles.actionTextContainer,
35
- children: [/*#__PURE__*/_jsx(Text, {
36
- style: [styles.actionButtonText, {
37
- color: textColor
38
- }],
39
- children: title
40
- }), subtitle && /*#__PURE__*/_jsx(Text, {
41
- style: [styles.actionButtonSubtext, {
42
- color: isDarkTheme ? '#BBBBBB' : '#666666'
43
- }],
44
- children: subtitle
45
- })]
46
- }), customContent, showChevron && /*#__PURE__*/_jsx(Ionicons, {
47
- name: "chevron-forward",
48
- size: 16,
49
- color: isDarkTheme ? '#666666' : '#999999'
50
- })]
51
- });
52
- if (onPress && !disabled) {
53
- return /*#__PURE__*/_jsx(TouchableOpacity, {
54
- style: itemStyles,
55
- onPress: onPress,
56
- children: content
57
- });
58
- }
59
- return /*#__PURE__*/_jsx(View, {
60
- style: itemStyles,
61
- children: content
62
- });
63
- };
64
- const styles = StyleSheet.create({
65
- groupedItem: {
66
- flexDirection: 'row',
67
- alignItems: 'center',
68
- justifyContent: 'space-between',
69
- marginBottom: 2,
70
- overflow: 'hidden'
71
- },
72
- firstGroupedItem: {
73
- borderTopLeftRadius: 24,
74
- borderTopRightRadius: 24
75
- },
76
- lastGroupedItem: {
77
- borderBottomLeftRadius: 24,
78
- borderBottomRightRadius: 24,
79
- marginBottom: 8
80
- },
81
- groupedItemContent: {
82
- flexDirection: 'row',
83
- alignItems: 'center',
84
- padding: 16,
85
- width: '100%'
86
- },
87
- actionIcon: {
88
- marginRight: 12
89
- },
90
- actionTextContainer: {
91
- flex: 1
92
- },
93
- actionButtonText: {
94
- fontSize: 16,
95
- fontWeight: '500',
96
- marginBottom: 2
97
- },
98
- actionButtonSubtext: {
99
- fontSize: 13,
100
- lineHeight: 18
101
- }
102
- });
103
- export default GroupedItem;
104
- //# sourceMappingURL=GroupedItem.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["React","View","Text","TouchableOpacity","StyleSheet","Ionicons","jsx","_jsx","jsxs","_jsxs","GroupedItem","icon","iconColor","title","subtitle","theme","onPress","isFirst","isLast","showChevron","disabled","customContent","isDarkTheme","textColor","secondaryBackgroundColor","itemStyles","styles","groupedItem","firstGroupedItem","lastGroupedItem","backgroundColor","content","style","groupedItemContent","children","name","size","color","actionIcon","actionTextContainer","actionButtonText","actionButtonSubtext","create","flexDirection","alignItems","justifyContent","marginBottom","overflow","borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius","padding","width","marginRight","flex","fontSize","fontWeight","lineHeight"],"sourceRoot":"../../../../src","sources":["ui/components/GroupedItem.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,IAAI,EAAEC,IAAI,EAAEC,gBAAgB,EAAEC,UAAU,QAAQ,cAAc;AACvE,SAASC,QAAQ,QAAQ,oBAAoB;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAgB9C,MAAMC,WAAuC,GAAGA,CAAC;EAC7CC,IAAI;EACJC,SAAS,GAAG,SAAS;EACrBC,KAAK;EACLC,QAAQ;EACRC,KAAK;EACLC,OAAO;EACPC,OAAO,GAAG,KAAK;EACfC,MAAM,GAAG,KAAK;EACdC,WAAW,GAAG,IAAI;EAClBC,QAAQ,GAAG,KAAK;EAChBC;AACJ,CAAC,KAAK;EACF,MAAMC,WAAW,GAAGP,KAAK,KAAK,MAAM;EACpC,MAAMQ,SAAS,GAAGD,WAAW,GAAG,SAAS,GAAG,SAAS;EACrD,MAAME,wBAAwB,GAAGF,WAAW,GAAG,SAAS,GAAG,SAAS;EAEpE,MAAMG,UAAU,GAAG,CACfC,MAAM,CAACC,WAAW,EAClBV,OAAO,IAAIS,MAAM,CAACE,gBAAgB,EAClCV,MAAM,IAAIQ,MAAM,CAACG,eAAe,EAChC;IAAEC,eAAe,EAAEN;EAAyB,CAAC,CAChD;EAED,MAAMO,OAAO,gBACTtB,KAAA,CAACR,IAAI;IAAC+B,KAAK,EAAEN,MAAM,CAACO,kBAAmB;IAAAC,QAAA,GAClCvB,IAAI,iBACDJ,IAAA,CAACF,QAAQ;MAAC8B,IAAI,EAAExB,IAAY;MAACyB,IAAI,EAAE,EAAG;MAACC,KAAK,EAAEzB,SAAU;MAACoB,KAAK,EAAEN,MAAM,CAACY;IAAW,C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Ae,EAAE;IACbqB,sBAAsB,EAAE,EAAE;IAC1BC,uBAAuB,EAAE,EAAE;IAC3BL,YAAY,EAAE;EAClB,CAAC;EACDb,kBAAkB,EAAE;IAChBU,aAAa,EAAE,KAAK;IACpBC,UAAU,EAAE,QAAQ;IACpBQ,OAAO,EAAE,EAAE;IACXC,KAAK,EAAE;EACX,CAAC;EACDf,UAAU,EAAE;IACRgB,WAAW,EAAE;EACjB,CAAC;EACDf,mBAAmB,EAAE;IACjBgB,IAAI,EAAE;EACV,CAAC;EACDf,gBAAgB,EAAE;IACdgB,QAAQ,EAAE,EAAE;IACZC,UAAU,EAAE,KAAK;IACjBX,YAAY,EAAE;EAClB,CAAC;EACDL,mBAAmB,EAAE;IACjBe,QAAQ,EAAE,EAAE;IACZE,UAAU,EAAE;EAChB;AACJ,CAAC,CAAC;AAEF,eAAehD,WAAW","ignoreList":[]}
@@ -1,28 +0,0 @@
1
- "use strict";
2
-
3
- import React from 'react';
4
- import { View } from 'react-native';
5
- import GroupedItem from './GroupedItem';
6
- import { jsx as _jsx } from "react/jsx-runtime";
7
- const GroupedSection = ({
8
- items,
9
- theme
10
- }) => {
11
- return /*#__PURE__*/_jsx(View, {
12
- children: items.map((item, index) => /*#__PURE__*/_jsx(GroupedItem, {
13
- icon: item.icon,
14
- iconColor: item.iconColor,
15
- title: item.title,
16
- subtitle: item.subtitle,
17
- theme: theme,
18
- onPress: item.onPress,
19
- isFirst: index === 0,
20
- isLast: index === items.length - 1,
21
- showChevron: item.showChevron,
22
- disabled: item.disabled,
23
- customContent: item.customContent
24
- }, item.id))
25
- });
26
- };
27
- export default GroupedSection;
28
- //# sourceMappingURL=GroupedSection.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["React","View","GroupedItem","jsx","_jsx","GroupedSection","items","theme","children","map","item","index","icon","iconColor","title","subtitle","onPress","isFirst","isLast","length","showChevron","disabled","customContent","id"],"sourceRoot":"../../../../src","sources":["ui/components/GroupedSection.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,IAAI,QAAQ,cAAc;AACnC,OAAOC,WAAW,MAAM,eAAe;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAmBxC,MAAMC,cAA6C,GAAGA,CAAC;EAAEC,KAAK;EAAEC;AAAM,CAAC,KAAK;EACxE,oBACIH,IAAA,CAACH,IAAI;IAAAO,QAAA,EACAF,KAAK,CAACG,GAAG,CAAC,CAACC,IAAI,EAAEC,KAAK,kBACnBP,IAAA,CAACF,WAAW;MAERU,IAAI,EAAEF,IAAI,CAACE,IAAK;MAChBC,SAAS,EAAEH,IAAI,CAACG,SAAU;MAC1BC,KAAK,EAAEJ,IAAI,CAACI,KAAM;MAClBC,QAAQ,EAAEL,IAAI,CAACK,QAAS;MACxBR,KAAK,EAAEA,KAAM;MACbS,OAAO,EAAEN,IAAI,CAACM,OAAQ;MACtBC,OAAO,EAAEN,KAAK,KAAK,CAAE;MACrBO,MAAM,EAAEP,KAAK,KAAKL,KAAK,CAACa,MAAM,GAAG,CAAE;MACnCC,WAAW,EAAEV,IAAI,CAACU,WAAY;MAC9BC,QAAQ,EAAEX,IAAI,CAACW,QAAS;MACxBC,aAAa,EAAEZ,IAAI,CAACY;IAAc,GAX7BZ,IAAI,CAACa,EAYb,CACJ;EAAC,CACA,CAAC;AAEf,CAAC;AAED,eAAelB,cAAc","ignoreList":[]}
@@ -1,49 +0,0 @@
1
- "use strict";
2
-
3
- import React from 'react';
4
- import Svg, { Path } from 'react-native-svg';
5
- import { useThemeColors } from '../styles/theme';
6
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
7
- /**
8
- * SVG logo component for Oxy
9
- * This component renders the Oxy logo as an SVG and uses theme colors by default
10
- */
11
- export const OxyLogo = ({
12
- width = 24,
13
- height = 24,
14
- style,
15
- fillColor,
16
- secondaryFillColor,
17
- theme = 'light'
18
- }) => {
19
- // Get colors from theme
20
- const themeColors = useThemeColors(theme);
21
-
22
- // Use theme primary color if no fillColor is provided
23
- const primaryColor = fillColor || themeColors.primary;
24
- const innerFillColor = secondaryFillColor || themeColors.background;
25
- return /*#__PURE__*/_jsxs(Svg, {
26
- width: width,
27
- height: height,
28
- viewBox: "0 0 294.84 174.42",
29
- style: style,
30
- children: [/*#__PURE__*/_jsx(Path, {
31
- d: "M241.03 24.83c-3.42-9.32-9.47-19.01-19.05-22.86-6.33-2.55-13.1-2.6-19.49-.26-.52.19-2.22 1.12-2.54 1.12-.22 0-3.3-1.39-4.05-1.61-15.97-4.57-30.37 9.5-39.44 20.8-1.15 1.43-2.29 2.92-3.27 4.48-.35.28-.56-.8-.69-1.06C146.04 12.12 135.23-.4 118.95 1 106.2 2.09 97.86 12.26 96.36 24.5 89.8 16.6 81.31 9.75 71.2 7.08c-15.67-4.13-33.09-.39-45.34 10.17C-3.79 42.81-5.21 97.16 7.9 131.37c9.4 24.5 28.9 43.2 56.85 40.1 11.33-1.25 21.77-5.76 29.87-13.81.13-.03 1.58 1.62 1.9 1.91 2.63 2.38 5.97 4.23 9.43 5.07 17.29 4.17 30.59-11.83 39.99-23.82.21-.05.29.13.41.26 1.22 1.26 2.48 3.38 3.67 4.83 4.4 5.34 10.34 11.44 16.49 14.67 6.58 3.46 14.76 4.48 21.74 1.59 6.43 11.54 20.66 15.21 32.49 9.8 15.49-7.08 28.86-30.53 36.97-45.03 9.26-16.56 18.94-34.11 26.22-51.62 7.51-18.09 19.12-51.35 2.09-67.08-13.19-12.18-31.47-2.47-40.24 9.94l-4.77 6.65z",
32
- fill: primaryColor
33
- }), /*#__PURE__*/_jsx(Path, {
34
- d: "M241.03 24.83l4.77-6.65c8.77-12.41 27.04-22.12 40.24-9.94 17.03 15.73 5.42 48.99-2.09 67.08-7.27 17.51-16.96 35.06-26.22 51.62-8.11 14.5-21.48 37.95-36.97 45.03-11.83 5.41-26.07 1.74-32.49-9.8-6.98 2.89-15.16 1.87-21.74-1.59-6.15-3.23-12.09-9.34-16.49-14.67-1.19-1.45-2.46-3.56-3.67-4.83-.12-.13-.2-.3-.41-.26-9.4 11.99-22.7 28-39.99 23.82-3.46-.84-6.8-2.69-9.43-5.07-.32-.29-1.77-1.94-1.9-1.91-8.1 8.04-18.53 12.55-29.87 13.81-27.95 3.09-47.46-15.6-56.85-40.1C-5.21 97.16-3.79 42.81 25.86 17.24 38.11 6.68 55.52 2.94 71.2 7.07c10.11 2.67 18.6 9.52 25.16 17.42 1.5-12.24 9.84-22.4 22.59-23.5 16.29-1.4 27.1 11.12 33.56 24.44.13.26.34 1.34.69 1.06.98-1.56 2.12-3.05 3.27-4.48 9.07-11.31 23.46-25.37 39.44-20.8.75.22 3.83 1.61 4.05 1.61.32 0 2.02-.93 2.54-1.12 6.4-2.33 13.16-2.28 19.49.26 9.58 3.85 15.64 13.54 19.05 22.86zm-6.67 48c-.88-9.38-1.79-18.77-3.55-28.03s-6.28-28.62-17.53-29.63-15.8 12.97-16.25 22.08c-.74 15.27 4.07 34.76 8.66 49.33 1.38 4.37 3 10.74 6.08 14.08 2.11 2.28 5.31 4.24 8.25 5.17-7.02 9.48-14.5 19.44-18.34 30.74-2.02 5.96-3.84 17.45 2.68 21.32 9.11 5.41 18.68-5.84 23.72-12.25 5.64-7.18 10.62-15.76 15.13-23.7 7.64-13.46 15.57-27.88 22.11-41.89 6.55-14.02 15.36-34.93 14.36-50.48-.25-3.85-2.02-10.44-6.3-11.53-8.54-2.18-17.65 11.65-21.44 17.8-7.07 11.49-12.42 24.19-17.22 36.77l-.37.21zm-83.67-14.84c-.11.08-.3-.27-.36-.38-.89-1.66-1.61-4.13-2.39-5.94-3.05-7.11-6.55-15.22-10.16-22.01s-11.12-16.46-20.3-12.96-6.07 17.71-4.28 24.7c3.59 13.98 9.21 27.75 14.81 41.02-5.93 11.33-11.94 22.65-17.47 34.19-3.8 7.92-10.58 22.31-4.93 30.54 6.13 8.92 18.44-3.44 22.73-8.57l19.09-23.41.39.27c6.19 10.08 12.58 21.57 21.85 29.14 6.31 5.16 15.72 6.95 17.45-3.38 1.09-6.53-3.31-16.75-5.87-22.86-4.2-10-9.25-19.64-14.62-29.05l-.13-.52c1.51-2.98 3.38-5.75 5.03-8.65 4-7.06 7.7-14.28 11.61-21.39 4.97-9.05 14.77-23.79 13.86-34.3-.31-3.61-2.31-8.51-6.42-8.92-8.41-.84-18.76 11.28-23.48 17.35-6.12 7.86-11.53 16.49-16.43 25.15zM55 20.71c-28.18 1.93-38.49 35.65-39.8 59.2-1.68 30.16 10.02 82.97 50.53 76.2 32.13-5.37 37.37-46.47 34.97-72.86S88.19 18.44 55 20.71zm140.7 93.28c.31.07.32-.1.47-.28 1-1.16 1.69-3.21 2.78-4.4l.06-.37c-3.26-4.14-4.87-9.22-6.52-14.16-1.44-4.32-2.5-8.78-3.91-13.09-.07-.2-.12-.7-.38-.7-1.27 2.82-3.17 5.34-4.31 8.21 4.29 8.08 8.46 16.26 11.81 24.79z",
35
- fill: primaryColor
36
- }), /*#__PURE__*/_jsx(Path, {
37
- d: "M55 20.71c33.19-2.27 43.33 36.41 45.7 62.54s-2.84 67.49-34.97 72.86c-40.5 6.77-52.21-46.03-50.53-76.2 1.31-23.56 11.62-57.27 39.8-59.2zm.99 38.66c-4.57.62-7.12 6.56-8.21 10.46-3.47 12.39-1.15 36.95 5.85 47.99 4 6.3 10.59 7.71 14.1.13 5.48-11.82 4.06-35.72-.36-47.87-1.84-5.06-5-11.57-11.38-10.7zM150.69 57.99c4.9-8.66 10.31-17.29 16.43-25.15 4.73-6.07 15.07-18.19 23.48-17.35 4.11.41 6.1 5.31 6.42 8.92.91 10.52-8.89 25.26-13.86 34.3-3.9 7.11-7.61 14.33-11.61 21.39-1.64 2.9-3.52 5.67-5.03 8.65l.13.52c5.37 9.41 10.42 19.05 14.62 29.05 2.57 6.11 6.97 16.33 5.87 22.86-1.73 10.33-11.14 8.54-17.45 3.38-9.27-7.57-15.67-19.07-21.85-29.14l-.39-.27-19.09 23.41c-4.29 5.13-16.6 17.49-22.73 8.57-5.66-8.23 1.13-22.63 4.93-30.54 5.53-11.54 11.54-22.86 17.47-34.19-5.61-13.27-11.22-27.03-14.81-41.02-1.8-6.99-4.69-21.27 4.28-24.7s16.55 5.88 20.3 12.96 7.11 14.9 10.16 22.01c.78 1.81 1.5 4.29 2.39 5.94.06.11.25.46.36.38zM234.36 72.83l.37-.21c4.8-12.59 10.15-25.29 17.22-36.77 3.79-6.16 12.9-19.98 21.44-17.8 4.28 1.09 6.06 7.68 6.3 11.53.99 15.56-7.82 36.47-14.36 50.48-6.54 14.01-14.47 28.42-22.11 41.89-4.51 7.95-9.49 16.53-15.13 23.7-5.03 6.41-14.61 17.66-23.72 12.25-6.52-3.87-4.71-15.36-2.68-21.32 3.84-11.31 11.32-21.27 18.34-30.74-2.94-.93-6.15-2.89-8.25-5.17-3.09-3.34-4.71-9.71-6.08-14.08-4.59-14.57-9.4-34.06-8.66-49.33.44-9.11 4.77-23.11 16.25-22.08s15.83 20.68 17.53 29.63 2.67 18.65 3.55 28.03z",
38
- fill: innerFillColor
39
- }), /*#__PURE__*/_jsx(Path, {
40
- d: "M195.7 113.99c-3.35-8.52-7.52-16.71-11.81-24.79 1.14-2.87 3.04-5.39 4.31-8.21.25 0 .31.5.38.7 1.41 4.31 2.47 8.77 3.91 13.09 1.65 4.94 3.26 10.02 6.52 14.16l-.06.37c-1.09 1.19-1.78 3.24-2.78 4.4-.15.17-.16.35-.47.28z",
41
- fill: primaryColor
42
- }), /*#__PURE__*/_jsx(Path, {
43
- d: "M55.99 59.37c6.38-.87 9.53 5.65 11.38 10.7 4.42 12.14 5.84 36.05.36 47.87-3.51 7.58-10.1 6.17-14.1-.13-7-11.03-9.32-35.6-5.85-47.99 1.09-3.9 3.64-9.84 8.21-10.46z",
44
- fill: primaryColor
45
- })]
46
- });
47
- };
48
- export default OxyLogo;
49
- //# sourceMappingURL=OxyLogo.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["React","Svg","Path","useThemeColors","jsx","_jsx","jsxs","_jsxs","OxyLogo","width","height","style","fillColor","secondaryFillColor","theme","themeColors","primaryColor","primary","innerFillColor","background","viewBox","children","d","fill"],"sourceRoot":"../../../../src","sources":["ui/components/OxyLogo.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,GAAG,IAAYC,IAAI,QAAQ,kBAAkB;AAEpD,SAASC,cAAc,QAAQ,iBAAiB;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAuBjD;AACA;AACA;AACA;AACA,OAAO,MAAMC,OAA+B,GAAGA,CAAC;EAC5CC,KAAK,GAAG,EAAE;EACVC,MAAM,GAAG,EAAE;EACXC,KAAK;EACLC,SAAS;EACTC,kBAAkB;EAClBC,KAAK,GAAG;AACZ,CAAC,KAAK;EACF;EACA,MAAMC,WAAW,GAAGZ,cAAc,CAACW,KAAK,CAAC;;EAEzC;EACA,MAAME,YAAY,GAAGJ,SAAS,IAAIG,WAAW,CAACE,OAAO;EAErD,MAAMC,cAAc,GAAGL,kBAAkB,IAAIE,WAAW,CAACI,UAAU;EAEnE,oBACIZ,KAAA,CAACN,GAAG;IAACQ,KAAK,EAAEA,KAAM;IAACC,MAAM,EAAEA,MAAO;IAACU,OAAO,EAAC,mBAAmB;IAACT,KAAK,EAAEA,KAAM;IAAAU,QAAA,gBACxEhB,IAAA,CAACH,IAAI;MACDoB,CAAC,EAAC,g0BAAg0B;MACl0BC,IAAI,EAAEP;IAAa,CACtB,CAAC,eACFX,IAAA,CAACH,IAAI;MACDoB,CAAC,EAAC,wuEAAwuE;MAC1uEC,IAAI,EAAEP;IAAa,CACtB,CAAC,eACFX,IAAA,CAACH,IAAI;MACDoB,CAAC,EAAC,w3CAAw3C;MAC13CC,IAAI,EAAEL;IAAe,CACxB,CAAC,eACFb,IAAA,CAACH,IAAI;MACDoB,CAAC,EAAC,0NAA0N;MAC5NC,IAAI,EAAEP;IAAa,CACtB,CAAC,eACFX,IAAA,CAACH,IAAI;MACDoB,CAAC,EAAC,oK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