@oxyhq/services 6.9.45 → 6.9.46

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 (255) hide show
  1. package/lib/commonjs/ui/components/OxyProvider.js +6 -5
  2. package/lib/commonjs/ui/components/OxyProvider.js.map +1 -1
  3. package/lib/commonjs/ui/components/SignInModal.js +271 -102
  4. package/lib/commonjs/ui/components/SignInModal.js.map +1 -1
  5. package/lib/commonjs/ui/components/fileManagement/FileViewer.js +24 -15
  6. package/lib/commonjs/ui/components/fileManagement/FileViewer.js.map +1 -1
  7. package/lib/commonjs/ui/components/index.js +0 -35
  8. package/lib/commonjs/ui/components/index.js.map +1 -1
  9. package/lib/commonjs/ui/components/payment/PaymentDetailsStep.js +26 -13
  10. package/lib/commonjs/ui/components/payment/PaymentDetailsStep.js.map +1 -1
  11. package/lib/commonjs/ui/components/payment/PaymentMethodStep.js +50 -28
  12. package/lib/commonjs/ui/components/payment/PaymentMethodStep.js.map +1 -1
  13. package/lib/commonjs/ui/components/payment/PaymentReviewStep.js +83 -48
  14. package/lib/commonjs/ui/components/payment/PaymentReviewStep.js.map +1 -1
  15. package/lib/commonjs/ui/components/payment/PaymentSuccessStep.js +11 -10
  16. package/lib/commonjs/ui/components/payment/PaymentSuccessStep.js.map +1 -1
  17. package/lib/commonjs/ui/components/payment/PaymentSummaryStep.js +38 -23
  18. package/lib/commonjs/ui/components/payment/PaymentSummaryStep.js.map +1 -1
  19. package/lib/commonjs/ui/context/hooks/useAuthOperations.js +4 -3
  20. package/lib/commonjs/ui/context/hooks/useAuthOperations.js.map +1 -1
  21. package/lib/commonjs/ui/screens/AccountCenterScreen.js +1 -3
  22. package/lib/commonjs/ui/screens/AccountCenterScreen.js.map +1 -1
  23. package/lib/commonjs/ui/screens/AccountOverviewScreen.js +47 -63
  24. package/lib/commonjs/ui/screens/AccountOverviewScreen.js.map +1 -1
  25. package/lib/commonjs/ui/screens/AccountSettingsScreen.js +90 -68
  26. package/lib/commonjs/ui/screens/AccountSettingsScreen.js.map +1 -1
  27. package/lib/commonjs/ui/screens/AccountSwitcherScreen.js +72 -63
  28. package/lib/commonjs/ui/screens/AccountSwitcherScreen.js.map +1 -1
  29. package/lib/commonjs/ui/screens/AccountVerificationScreen.js +5 -5
  30. package/lib/commonjs/ui/screens/AccountVerificationScreen.js.map +1 -1
  31. package/lib/commonjs/ui/screens/FeedbackScreen.js +57 -51
  32. package/lib/commonjs/ui/screens/FeedbackScreen.js.map +1 -1
  33. package/lib/commonjs/ui/screens/FileManagementScreen.js +25 -36
  34. package/lib/commonjs/ui/screens/FileManagementScreen.js.map +1 -1
  35. package/lib/commonjs/ui/screens/HistoryViewScreen.js +31 -31
  36. package/lib/commonjs/ui/screens/HistoryViewScreen.js.map +1 -1
  37. package/lib/commonjs/ui/screens/LanguageSelectorScreen.js +15 -8
  38. package/lib/commonjs/ui/screens/LanguageSelectorScreen.js.map +1 -1
  39. package/lib/commonjs/ui/screens/LegalDocumentsScreen.js +60 -54
  40. package/lib/commonjs/ui/screens/LegalDocumentsScreen.js.map +1 -1
  41. package/lib/commonjs/ui/screens/PaymentGatewayScreen.js +12 -9
  42. package/lib/commonjs/ui/screens/PaymentGatewayScreen.js.map +1 -1
  43. package/lib/commonjs/ui/screens/PrivacySettingsScreen.js +159 -190
  44. package/lib/commonjs/ui/screens/PrivacySettingsScreen.js.map +1 -1
  45. package/lib/commonjs/ui/screens/SavesCollectionsScreen.js +20 -22
  46. package/lib/commonjs/ui/screens/SavesCollectionsScreen.js.map +1 -1
  47. package/lib/commonjs/ui/screens/SearchSettingsScreen.js +16 -17
  48. package/lib/commonjs/ui/screens/SearchSettingsScreen.js.map +1 -1
  49. package/lib/commonjs/ui/screens/SessionManagementScreen.js +26 -4
  50. package/lib/commonjs/ui/screens/SessionManagementScreen.js.map +1 -1
  51. package/lib/commonjs/ui/screens/UserLinksScreen.js +13 -29
  52. package/lib/commonjs/ui/screens/UserLinksScreen.js.map +1 -1
  53. package/lib/commonjs/ui/screens/WelcomeNewUserScreen.js +110 -52
  54. package/lib/commonjs/ui/screens/WelcomeNewUserScreen.js.map +1 -1
  55. package/lib/commonjs/ui/screens/karma/KarmaFAQScreen.js +3 -5
  56. package/lib/commonjs/ui/screens/karma/KarmaFAQScreen.js.map +1 -1
  57. package/lib/module/ui/components/OxyProvider.js +6 -5
  58. package/lib/module/ui/components/OxyProvider.js.map +1 -1
  59. package/lib/module/ui/components/SignInModal.js +271 -100
  60. package/lib/module/ui/components/SignInModal.js.map +1 -1
  61. package/lib/module/ui/components/fileManagement/FileViewer.js +24 -15
  62. package/lib/module/ui/components/fileManagement/FileViewer.js.map +1 -1
  63. package/lib/module/ui/components/index.js +0 -5
  64. package/lib/module/ui/components/index.js.map +1 -1
  65. package/lib/module/ui/components/payment/PaymentDetailsStep.js +26 -13
  66. package/lib/module/ui/components/payment/PaymentDetailsStep.js.map +1 -1
  67. package/lib/module/ui/components/payment/PaymentMethodStep.js +49 -26
  68. package/lib/module/ui/components/payment/PaymentMethodStep.js.map +1 -1
  69. package/lib/module/ui/components/payment/PaymentReviewStep.js +84 -48
  70. package/lib/module/ui/components/payment/PaymentReviewStep.js.map +1 -1
  71. package/lib/module/ui/components/payment/PaymentSuccessStep.js +11 -9
  72. package/lib/module/ui/components/payment/PaymentSuccessStep.js.map +1 -1
  73. package/lib/module/ui/components/payment/PaymentSummaryStep.js +38 -22
  74. package/lib/module/ui/components/payment/PaymentSummaryStep.js.map +1 -1
  75. package/lib/module/ui/context/hooks/useAuthOperations.js +4 -3
  76. package/lib/module/ui/context/hooks/useAuthOperations.js.map +1 -1
  77. package/lib/module/ui/screens/AccountCenterScreen.js +1 -3
  78. package/lib/module/ui/screens/AccountCenterScreen.js.map +1 -1
  79. package/lib/module/ui/screens/AccountOverviewScreen.js +46 -62
  80. package/lib/module/ui/screens/AccountOverviewScreen.js.map +1 -1
  81. package/lib/module/ui/screens/AccountSettingsScreen.js +90 -68
  82. package/lib/module/ui/screens/AccountSettingsScreen.js.map +1 -1
  83. package/lib/module/ui/screens/AccountSwitcherScreen.js +73 -64
  84. package/lib/module/ui/screens/AccountSwitcherScreen.js.map +1 -1
  85. package/lib/module/ui/screens/AccountVerificationScreen.js +6 -6
  86. package/lib/module/ui/screens/AccountVerificationScreen.js.map +1 -1
  87. package/lib/module/ui/screens/FeedbackScreen.js +48 -42
  88. package/lib/module/ui/screens/FeedbackScreen.js.map +1 -1
  89. package/lib/module/ui/screens/FileManagementScreen.js +25 -36
  90. package/lib/module/ui/screens/FileManagementScreen.js.map +1 -1
  91. package/lib/module/ui/screens/HistoryViewScreen.js +32 -32
  92. package/lib/module/ui/screens/HistoryViewScreen.js.map +1 -1
  93. package/lib/module/ui/screens/LanguageSelectorScreen.js +16 -9
  94. package/lib/module/ui/screens/LanguageSelectorScreen.js.map +1 -1
  95. package/lib/module/ui/screens/LegalDocumentsScreen.js +61 -55
  96. package/lib/module/ui/screens/LegalDocumentsScreen.js.map +1 -1
  97. package/lib/module/ui/screens/PaymentGatewayScreen.js +12 -9
  98. package/lib/module/ui/screens/PaymentGatewayScreen.js.map +1 -1
  99. package/lib/module/ui/screens/PrivacySettingsScreen.js +161 -192
  100. package/lib/module/ui/screens/PrivacySettingsScreen.js.map +1 -1
  101. package/lib/module/ui/screens/SavesCollectionsScreen.js +21 -23
  102. package/lib/module/ui/screens/SavesCollectionsScreen.js.map +1 -1
  103. package/lib/module/ui/screens/SearchSettingsScreen.js +17 -18
  104. package/lib/module/ui/screens/SearchSettingsScreen.js.map +1 -1
  105. package/lib/module/ui/screens/SessionManagementScreen.js +27 -5
  106. package/lib/module/ui/screens/SessionManagementScreen.js.map +1 -1
  107. package/lib/module/ui/screens/UserLinksScreen.js +15 -31
  108. package/lib/module/ui/screens/UserLinksScreen.js.map +1 -1
  109. package/lib/module/ui/screens/WelcomeNewUserScreen.js +110 -52
  110. package/lib/module/ui/screens/WelcomeNewUserScreen.js.map +1 -1
  111. package/lib/module/ui/screens/karma/KarmaFAQScreen.js +4 -6
  112. package/lib/module/ui/screens/karma/KarmaFAQScreen.js.map +1 -1
  113. package/lib/typescript/commonjs/ui/components/OxyProvider.d.ts.map +1 -1
  114. package/lib/typescript/commonjs/ui/components/SignInModal.d.ts.map +1 -1
  115. package/lib/typescript/commonjs/ui/components/fileManagement/FileViewer.d.ts.map +1 -1
  116. package/lib/typescript/commonjs/ui/components/index.d.ts +0 -5
  117. package/lib/typescript/commonjs/ui/components/index.d.ts.map +1 -1
  118. package/lib/typescript/commonjs/ui/components/payment/PaymentDetailsStep.d.ts.map +1 -1
  119. package/lib/typescript/commonjs/ui/components/payment/PaymentMethodStep.d.ts.map +1 -1
  120. package/lib/typescript/commonjs/ui/components/payment/PaymentReviewStep.d.ts.map +1 -1
  121. package/lib/typescript/commonjs/ui/components/payment/PaymentSuccessStep.d.ts.map +1 -1
  122. package/lib/typescript/commonjs/ui/components/payment/PaymentSummaryStep.d.ts.map +1 -1
  123. package/lib/typescript/commonjs/ui/context/hooks/useAuthOperations.d.ts.map +1 -1
  124. package/lib/typescript/commonjs/ui/navigation/bottomSheetManager.d.ts +1 -1
  125. package/lib/typescript/commonjs/ui/navigation/bottomSheetManager.d.ts.map +1 -1
  126. package/lib/typescript/commonjs/ui/screens/AccountCenterScreen.d.ts.map +1 -1
  127. package/lib/typescript/commonjs/ui/screens/AccountOverviewScreen.d.ts.map +1 -1
  128. package/lib/typescript/commonjs/ui/screens/AccountSettingsScreen.d.ts.map +1 -1
  129. package/lib/typescript/commonjs/ui/screens/AccountSwitcherScreen.d.ts.map +1 -1
  130. package/lib/typescript/commonjs/ui/screens/AccountVerificationScreen.d.ts.map +1 -1
  131. package/lib/typescript/commonjs/ui/screens/FeedbackScreen.d.ts.map +1 -1
  132. package/lib/typescript/commonjs/ui/screens/FileManagementScreen.d.ts.map +1 -1
  133. package/lib/typescript/commonjs/ui/screens/HistoryViewScreen.d.ts.map +1 -1
  134. package/lib/typescript/commonjs/ui/screens/LanguageSelectorScreen.d.ts.map +1 -1
  135. package/lib/typescript/commonjs/ui/screens/LegalDocumentsScreen.d.ts.map +1 -1
  136. package/lib/typescript/commonjs/ui/screens/PaymentGatewayScreen.d.ts.map +1 -1
  137. package/lib/typescript/commonjs/ui/screens/PrivacySettingsScreen.d.ts.map +1 -1
  138. package/lib/typescript/commonjs/ui/screens/SearchSettingsScreen.d.ts.map +1 -1
  139. package/lib/typescript/commonjs/ui/screens/SessionManagementScreen.d.ts.map +1 -1
  140. package/lib/typescript/commonjs/ui/screens/UserLinksScreen.d.ts.map +1 -1
  141. package/lib/typescript/commonjs/ui/screens/WelcomeNewUserScreen.d.ts.map +1 -1
  142. package/lib/typescript/commonjs/ui/screens/karma/KarmaFAQScreen.d.ts.map +1 -1
  143. package/lib/typescript/module/ui/components/OxyProvider.d.ts.map +1 -1
  144. package/lib/typescript/module/ui/components/SignInModal.d.ts.map +1 -1
  145. package/lib/typescript/module/ui/components/fileManagement/FileViewer.d.ts.map +1 -1
  146. package/lib/typescript/module/ui/components/index.d.ts +0 -5
  147. package/lib/typescript/module/ui/components/index.d.ts.map +1 -1
  148. package/lib/typescript/module/ui/components/payment/PaymentDetailsStep.d.ts.map +1 -1
  149. package/lib/typescript/module/ui/components/payment/PaymentMethodStep.d.ts.map +1 -1
  150. package/lib/typescript/module/ui/components/payment/PaymentReviewStep.d.ts.map +1 -1
  151. package/lib/typescript/module/ui/components/payment/PaymentSuccessStep.d.ts.map +1 -1
  152. package/lib/typescript/module/ui/components/payment/PaymentSummaryStep.d.ts.map +1 -1
  153. package/lib/typescript/module/ui/context/hooks/useAuthOperations.d.ts.map +1 -1
  154. package/lib/typescript/module/ui/navigation/bottomSheetManager.d.ts +1 -1
  155. package/lib/typescript/module/ui/navigation/bottomSheetManager.d.ts.map +1 -1
  156. package/lib/typescript/module/ui/screens/AccountCenterScreen.d.ts.map +1 -1
  157. package/lib/typescript/module/ui/screens/AccountOverviewScreen.d.ts.map +1 -1
  158. package/lib/typescript/module/ui/screens/AccountSettingsScreen.d.ts.map +1 -1
  159. package/lib/typescript/module/ui/screens/AccountSwitcherScreen.d.ts.map +1 -1
  160. package/lib/typescript/module/ui/screens/AccountVerificationScreen.d.ts.map +1 -1
  161. package/lib/typescript/module/ui/screens/FeedbackScreen.d.ts.map +1 -1
  162. package/lib/typescript/module/ui/screens/FileManagementScreen.d.ts.map +1 -1
  163. package/lib/typescript/module/ui/screens/HistoryViewScreen.d.ts.map +1 -1
  164. package/lib/typescript/module/ui/screens/LanguageSelectorScreen.d.ts.map +1 -1
  165. package/lib/typescript/module/ui/screens/LegalDocumentsScreen.d.ts.map +1 -1
  166. package/lib/typescript/module/ui/screens/PaymentGatewayScreen.d.ts.map +1 -1
  167. package/lib/typescript/module/ui/screens/PrivacySettingsScreen.d.ts.map +1 -1
  168. package/lib/typescript/module/ui/screens/SearchSettingsScreen.d.ts.map +1 -1
  169. package/lib/typescript/module/ui/screens/SessionManagementScreen.d.ts.map +1 -1
  170. package/lib/typescript/module/ui/screens/UserLinksScreen.d.ts.map +1 -1
  171. package/lib/typescript/module/ui/screens/WelcomeNewUserScreen.d.ts.map +1 -1
  172. package/lib/typescript/module/ui/screens/karma/KarmaFAQScreen.d.ts.map +1 -1
  173. package/package.json +2 -2
  174. package/src/ui/components/OxyProvider.tsx +6 -5
  175. package/src/ui/components/SignInModal.tsx +186 -42
  176. package/src/ui/components/fileManagement/FileViewer.tsx +25 -15
  177. package/src/ui/components/index.ts +0 -5
  178. package/src/ui/components/payment/PaymentDetailsStep.tsx +16 -19
  179. package/src/ui/components/payment/PaymentMethodStep.tsx +33 -35
  180. package/src/ui/components/payment/PaymentReviewStep.tsx +63 -67
  181. package/src/ui/components/payment/PaymentSuccessStep.tsx +4 -12
  182. package/src/ui/components/payment/PaymentSummaryStep.tsx +26 -33
  183. package/src/ui/context/hooks/useAuthOperations.ts +4 -3
  184. package/src/ui/screens/AccountCenterScreen.tsx +2 -3
  185. package/src/ui/screens/AccountOverviewScreen.tsx +44 -65
  186. package/src/ui/screens/AccountSettingsScreen.tsx +121 -149
  187. package/src/ui/screens/AccountSwitcherScreen.tsx +94 -115
  188. package/src/ui/screens/AccountVerificationScreen.tsx +10 -9
  189. package/src/ui/screens/FeedbackScreen.tsx +50 -38
  190. package/src/ui/screens/FileManagementScreen.tsx +26 -34
  191. package/src/ui/screens/HistoryViewScreen.tsx +29 -10
  192. package/src/ui/screens/LanguageSelectorScreen.tsx +19 -7
  193. package/src/ui/screens/LegalDocumentsScreen.tsx +46 -63
  194. package/src/ui/screens/PaymentGatewayScreen.tsx +11 -12
  195. package/src/ui/screens/PrivacySettingsScreen.tsx +81 -193
  196. package/src/ui/screens/SavesCollectionsScreen.tsx +23 -23
  197. package/src/ui/screens/SearchSettingsScreen.tsx +11 -19
  198. package/src/ui/screens/SessionManagementScreen.tsx +29 -3
  199. package/src/ui/screens/UserLinksScreen.tsx +15 -32
  200. package/src/ui/screens/WelcomeNewUserScreen.tsx +46 -20
  201. package/src/ui/screens/karma/KarmaFAQScreen.tsx +4 -6
  202. package/lib/commonjs/ui/components/GroupedItem.js +0 -138
  203. package/lib/commonjs/ui/components/GroupedItem.js.map +0 -1
  204. package/lib/commonjs/ui/components/GroupedSection.js +0 -41
  205. package/lib/commonjs/ui/components/GroupedSection.js.map +0 -1
  206. package/lib/commonjs/ui/components/Section.js +0 -39
  207. package/lib/commonjs/ui/components/Section.js.map +0 -1
  208. package/lib/commonjs/ui/components/SectionTitle.js +0 -29
  209. package/lib/commonjs/ui/components/SectionTitle.js.map +0 -1
  210. package/lib/commonjs/ui/components/SettingRow.js +0 -96
  211. package/lib/commonjs/ui/components/SettingRow.js.map +0 -1
  212. package/lib/commonjs/ui/components/internal/GroupedPillButtons.js +0 -208
  213. package/lib/commonjs/ui/components/internal/GroupedPillButtons.js.map +0 -1
  214. package/lib/module/ui/components/GroupedItem.js +0 -135
  215. package/lib/module/ui/components/GroupedItem.js.map +0 -1
  216. package/lib/module/ui/components/GroupedSection.js +0 -37
  217. package/lib/module/ui/components/GroupedSection.js.map +0 -1
  218. package/lib/module/ui/components/Section.js +0 -34
  219. package/lib/module/ui/components/Section.js.map +0 -1
  220. package/lib/module/ui/components/SectionTitle.js +0 -25
  221. package/lib/module/ui/components/SectionTitle.js.map +0 -1
  222. package/lib/module/ui/components/SettingRow.js +0 -91
  223. package/lib/module/ui/components/SettingRow.js.map +0 -1
  224. package/lib/module/ui/components/internal/GroupedPillButtons.js +0 -204
  225. package/lib/module/ui/components/internal/GroupedPillButtons.js.map +0 -1
  226. package/lib/typescript/commonjs/ui/components/GroupedItem.d.ts +0 -24
  227. package/lib/typescript/commonjs/ui/components/GroupedItem.d.ts.map +0 -1
  228. package/lib/typescript/commonjs/ui/components/GroupedSection.d.ts +0 -30
  229. package/lib/typescript/commonjs/ui/components/GroupedSection.d.ts.map +0 -1
  230. package/lib/typescript/commonjs/ui/components/Section.d.ts +0 -12
  231. package/lib/typescript/commonjs/ui/components/Section.d.ts.map +0 -1
  232. package/lib/typescript/commonjs/ui/components/SectionTitle.d.ts +0 -10
  233. package/lib/typescript/commonjs/ui/components/SectionTitle.d.ts.map +0 -1
  234. package/lib/typescript/commonjs/ui/components/SettingRow.d.ts +0 -20
  235. package/lib/typescript/commonjs/ui/components/SettingRow.d.ts.map +0 -1
  236. package/lib/typescript/commonjs/ui/components/internal/GroupedPillButtons.d.ts +0 -24
  237. package/lib/typescript/commonjs/ui/components/internal/GroupedPillButtons.d.ts.map +0 -1
  238. package/lib/typescript/module/ui/components/GroupedItem.d.ts +0 -24
  239. package/lib/typescript/module/ui/components/GroupedItem.d.ts.map +0 -1
  240. package/lib/typescript/module/ui/components/GroupedSection.d.ts +0 -30
  241. package/lib/typescript/module/ui/components/GroupedSection.d.ts.map +0 -1
  242. package/lib/typescript/module/ui/components/Section.d.ts +0 -12
  243. package/lib/typescript/module/ui/components/Section.d.ts.map +0 -1
  244. package/lib/typescript/module/ui/components/SectionTitle.d.ts +0 -10
  245. package/lib/typescript/module/ui/components/SectionTitle.d.ts.map +0 -1
  246. package/lib/typescript/module/ui/components/SettingRow.d.ts +0 -20
  247. package/lib/typescript/module/ui/components/SettingRow.d.ts.map +0 -1
  248. package/lib/typescript/module/ui/components/internal/GroupedPillButtons.d.ts +0 -24
  249. package/lib/typescript/module/ui/components/internal/GroupedPillButtons.d.ts.map +0 -1
  250. package/src/ui/components/GroupedItem.tsx +0 -161
  251. package/src/ui/components/GroupedSection.tsx +0 -60
  252. package/src/ui/components/Section.tsx +0 -42
  253. package/src/ui/components/SectionTitle.tsx +0 -27
  254. package/src/ui/components/SettingRow.tsx +0 -105
  255. package/src/ui/components/internal/GroupedPillButtons.tsx +0 -253
@@ -10,7 +10,7 @@ import { useAuthStore } from '../stores/authStore';
10
10
  import { useTheme } from '@oxyhq/bloom/theme';
11
11
  import { fontFamilies } from '../styles/fonts';
12
12
  import { normalizeTheme } from '../utils/themeUtils';
13
- import GroupedPillButtons from '../components/internal/GroupedPillButtons';
13
+ import { Button } from '@oxyhq/bloom/button';
14
14
  import { useI18n } from '../hooks/useI18n';
15
15
  import { useOxy } from '../context/OxyContext';
16
16
  import { useUpdateProfile } from '../hooks/mutations/useAccountMutations';
@@ -177,30 +177,56 @@ const WelcomeNewUserScreen: React.FC<BaseScreenProps & { newUser?: any }> = ({
177
177
  }, [navigate, updateProfileMutation, oxyServices, currentStep, avatarStepIndex, animateToStepCallback, t]);
178
178
 
179
179
  const step = steps[currentStep];
180
- const pillButtons = useMemo(() => {
180
+ const renderActionButtons = useCallback(() => {
181
181
  if (currentStep === totalSteps - 1) {
182
- return [
183
- { text: t('welcomeNew.actions.back') || 'Back', onPress: prevStep, icon: 'arrow-back', variant: 'transparent' },
184
- { text: t('welcomeNew.actions.enter') || 'Enter', onPress: finish, icon: 'log-in-outline', variant: 'primary' },
185
- ];
182
+ return (
183
+ <View style={{ flexDirection: 'row', gap: 8, justifyContent: 'flex-end' }}>
184
+ <Button variant="secondary" onPress={prevStep} size="small" icon={<Ionicons name="arrow-back" size={16} />}>
185
+ {t('welcomeNew.actions.back') || 'Back'}
186
+ </Button>
187
+ <Button variant="primary" onPress={finish} size="small" icon={<Ionicons name="log-in-outline" size={16} />} iconPosition="right">
188
+ {t('welcomeNew.actions.enter') || 'Enter'}
189
+ </Button>
190
+ </View>
191
+ );
186
192
  }
187
193
  if (currentStep === 0) {
188
- const arr: any[] = [];
189
- if (avatarStepIndex > 0) arr.push({ text: t('welcomeNew.actions.skip') || 'Skip', onPress: skipToAvatar, icon: 'play-skip-forward', variant: 'transparent' });
190
- arr.push({ text: t('welcomeNew.actions.next') || 'Next', onPress: nextStep, icon: 'arrow-forward', variant: 'primary' });
191
- return arr;
194
+ return (
195
+ <View style={{ flexDirection: 'row', gap: 8, justifyContent: 'flex-end' }}>
196
+ {avatarStepIndex > 0 && (
197
+ <Button variant="secondary" onPress={skipToAvatar} size="small" icon={<Ionicons name="play-skip-forward" size={16} />}>
198
+ {t('welcomeNew.actions.skip') || 'Skip'}
199
+ </Button>
200
+ )}
201
+ <Button variant="primary" onPress={nextStep} size="small" icon={<Ionicons name="arrow-forward" size={16} />} iconPosition="right">
202
+ {t('welcomeNew.actions.next') || 'Next'}
203
+ </Button>
204
+ </View>
205
+ );
192
206
  }
193
207
  if (step.showAvatar) {
194
- return [
195
- { text: t('welcomeNew.actions.back') || 'Back', onPress: prevStep, icon: 'arrow-back', variant: 'transparent' },
196
- { text: avatarUri ? (t('welcomeNew.actions.continue') || 'Continue') : (t('welcomeNew.actions.skip') || 'Skip'), onPress: nextStep, icon: 'arrow-forward', variant: 'primary' },
197
- ];
208
+ return (
209
+ <View style={{ flexDirection: 'row', gap: 8, justifyContent: 'flex-end' }}>
210
+ <Button variant="secondary" onPress={prevStep} size="small" icon={<Ionicons name="arrow-back" size={16} />}>
211
+ {t('welcomeNew.actions.back') || 'Back'}
212
+ </Button>
213
+ <Button variant="primary" onPress={nextStep} size="small" icon={<Ionicons name="arrow-forward" size={16} />} iconPosition="right">
214
+ {avatarUri ? (t('welcomeNew.actions.continue') || 'Continue') : (t('welcomeNew.actions.skip') || 'Skip')}
215
+ </Button>
216
+ </View>
217
+ );
198
218
  }
199
- return [
200
- { text: t('welcomeNew.actions.back') || 'Back', onPress: prevStep, icon: 'arrow-back', variant: 'transparent' },
201
- { text: t('welcomeNew.actions.next') || 'Next', onPress: nextStep, icon: 'arrow-forward', variant: 'primary' },
202
- ];
203
- }, [currentStep, totalSteps, prevStep, nextStep, finish, skipToAvatar, avatarStepIndex, step.showAvatar, avatarUri]);
219
+ return (
220
+ <View style={{ flexDirection: 'row', gap: 8, justifyContent: 'flex-end' }}>
221
+ <Button variant="secondary" onPress={prevStep} size="small" icon={<Ionicons name="arrow-back" size={16} />}>
222
+ {t('welcomeNew.actions.back') || 'Back'}
223
+ </Button>
224
+ <Button variant="primary" onPress={nextStep} size="small" icon={<Ionicons name="arrow-forward" size={16} />} iconPosition="right">
225
+ {t('welcomeNew.actions.next') || 'Next'}
226
+ </Button>
227
+ </View>
228
+ );
229
+ }, [currentStep, totalSteps, prevStep, nextStep, finish, skipToAvatar, avatarStepIndex, step.showAvatar, avatarUri, t]);
204
230
 
205
231
  return (
206
232
  <View style={styles.container}>
@@ -247,7 +273,7 @@ const WelcomeNewUserScreen: React.FC<BaseScreenProps & { newUser?: any }> = ({
247
273
  </View>
248
274
  )}
249
275
  <View style={styles.sectionSpacing}>
250
- <GroupedPillButtons buttons={pillButtons} colors={colors} />
276
+ {renderActionButtons()}
251
277
  </View>
252
278
  </View>
253
279
  </Animated.View>
@@ -2,7 +2,8 @@ import React, { useState, useMemo, useCallback } from 'react';
2
2
  import { View, Text, StyleSheet, ScrollView, Platform, TextInput, LayoutAnimation } from 'react-native';
3
3
  import type { BaseScreenProps } from '../../types/navigation';
4
4
  import { Ionicons } from '@expo/vector-icons';
5
- import { Header, GroupedItem } from '../../components';
5
+ import { Header } from '../../components';
6
+ import { SettingsListItem } from '@oxyhq/bloom/settings-list';
6
7
  import { useI18n } from '../../hooks/useI18n';
7
8
  import { useTheme } from '@oxyhq/bloom/theme';
8
9
  import { normalizeColorScheme } from '../../utils/themeUtils';
@@ -86,18 +87,15 @@ const KarmaFAQScreen: React.FC<BaseScreenProps> = ({ goBack, theme }) => {
86
87
  <View style={styles.groupedSectionContainer}>
87
88
  {filteredFaqs.map((faq, idx) => {
88
89
  const isExpanded = expanded === faq.id;
89
- const isFirst = idx === 0;
90
90
  const isLast = idx === filteredFaqs.length - 1;
91
91
 
92
92
  return (
93
93
  <View key={faq.id} style={[styles.faqItemWrapper, { marginBottom: idx < filteredFaqs.length - 1 ? 4 : 0 }]}>
94
- <GroupedItem
94
+ <SettingsListItem
95
95
  title={faq.q}
96
96
  onPress={() => handleToggle(faq.id)}
97
- isFirst={isFirst}
98
- isLast={isLast && !isExpanded}
99
97
  showChevron={false}
100
- customContent={
98
+ rightElement={
101
99
  <Ionicons
102
100
  name={isExpanded ? 'chevron-up' : 'chevron-down'}
103
101
  size={20}
@@ -1,138 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = exports.GroupedItem = void 0;
7
- var _react = require("react");
8
- var _reactNative = require("react-native");
9
- var _vectorIcons = require("@expo/vector-icons");
10
- var _theme = require("@oxyhq/bloom/theme");
11
- var _colorUtils = require("../utils/colorUtils.js");
12
- var _jsxRuntime = require("react/jsx-runtime");
13
- const GroupedItemComponent = ({
14
- icon,
15
- iconColor,
16
- title,
17
- subtitle,
18
- onPress,
19
- isFirst = false,
20
- isLast = false,
21
- showChevron = false,
22
- disabled = false,
23
- customContent,
24
- customIcon,
25
- accessibilityLabel,
26
- accessibilityHint
27
- }) => {
28
- const {
29
- colors
30
- } = (0, _theme.useTheme)();
31
- // Use fallback color when iconColor is not provided
32
- const finalIconColor = iconColor || colors.icon;
33
- const itemStyles = (0, _react.useMemo)(() => [styles.groupedItem, isFirst && styles.firstGroupedItem, isLast && styles.lastGroupedItem], [isFirst, isLast]);
34
- const content = /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
35
- style: styles.groupedItemContent,
36
- children: [customIcon ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
37
- style: styles.actionIcon,
38
- children: customIcon
39
- }) : icon ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
40
- style: [styles.iconContainer, {
41
- backgroundColor: finalIconColor
42
- }],
43
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_vectorIcons.MaterialCommunityIcons, {
44
- name: icon,
45
- size: 22,
46
- color: (0, _colorUtils.darkenColor)(finalIconColor)
47
- })
48
- }) : null, /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
49
- style: styles.actionTextContainer,
50
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
51
- className: "text-foreground",
52
- style: styles.actionButtonText,
53
- children: title
54
- }), subtitle && /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
55
- className: "text-muted-foreground",
56
- style: styles.actionButtonSubtext,
57
- children: subtitle
58
- })]
59
- }), customContent, showChevron && /*#__PURE__*/(0, _jsxRuntime.jsx)(_vectorIcons.Ionicons, {
60
- name: "chevron-forward",
61
- size: 20,
62
- color: colors.icon
63
- })]
64
- });
65
- if (onPress && !disabled) {
66
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.TouchableOpacity, {
67
- className: "bg-card",
68
- style: itemStyles,
69
- onPress: onPress,
70
- activeOpacity: 0.7,
71
- accessibilityRole: "button",
72
- accessibilityLabel: accessibilityLabel || title,
73
- accessibilityHint: accessibilityHint || subtitle,
74
- accessibilityState: {
75
- disabled
76
- },
77
- children: content
78
- });
79
- }
80
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
81
- className: "bg-card",
82
- style: itemStyles,
83
- accessibilityRole: "text",
84
- accessibilityLabel: accessibilityLabel || title,
85
- children: content
86
- });
87
- };
88
- GroupedItemComponent.displayName = 'GroupedItem';
89
- const GroupedItem = exports.GroupedItem = /*#__PURE__*/(0, _react.memo)(GroupedItemComponent);
90
- const styles = _reactNative.StyleSheet.create({
91
- groupedItem: {
92
- flexDirection: 'row',
93
- alignItems: 'center',
94
- justifyContent: 'space-between',
95
- overflow: 'hidden',
96
- width: '100%'
97
- },
98
- firstGroupedItem: {
99
- borderTopLeftRadius: 18,
100
- borderTopRightRadius: 18
101
- },
102
- lastGroupedItem: {
103
- borderBottomLeftRadius: 18,
104
- borderBottomRightRadius: 18
105
- },
106
- groupedItemContent: {
107
- flexDirection: 'row',
108
- alignItems: 'center',
109
- paddingVertical: 8,
110
- paddingHorizontal: 10,
111
- width: '100%',
112
- gap: 10
113
- },
114
- actionIcon: {
115
- // marginRight handled by gap
116
- },
117
- iconContainer: {
118
- width: 36,
119
- height: 36,
120
- borderRadius: 18,
121
- alignItems: 'center',
122
- justifyContent: 'center'
123
- // marginRight handled by gap
124
- },
125
- actionTextContainer: {
126
- flex: 1
127
- },
128
- actionButtonText: {
129
- fontSize: 14,
130
- fontWeight: '400'
131
- },
132
- actionButtonSubtext: {
133
- fontSize: 12,
134
- marginTop: 2
135
- }
136
- });
137
- var _default = exports.default = GroupedItem;
138
- //# sourceMappingURL=GroupedItem.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["_react","require","_reactNative","_vectorIcons","_theme","_colorUtils","_jsxRuntime","GroupedItemComponent","icon","iconColor","title","subtitle","onPress","isFirst","isLast","showChevron","disabled","customContent","customIcon","accessibilityLabel","accessibilityHint","colors","useTheme","finalIconColor","itemStyles","useMemo","styles","groupedItem","firstGroupedItem","lastGroupedItem","content","jsxs","View","style","groupedItemContent","children","jsx","actionIcon","iconContainer","backgroundColor","MaterialCommunityIcons","name","size","color","darkenColor","actionTextContainer","Text","className","actionButtonText","actionButtonSubtext","Ionicons","TouchableOpacity","activeOpacity","accessibilityRole","accessibilityState","displayName","GroupedItem","exports","memo","StyleSheet","create","flexDirection","alignItems","justifyContent","overflow","width","borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius","paddingVertical","paddingHorizontal","gap","height","borderRadius","flex","fontSize","fontWeight","marginTop","_default","default"],"sourceRoot":"../../../../src","sources":["ui/components/GroupedItem.tsx"],"mappings":";;;;;;AACA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,YAAA,GAAAF,OAAA;AAEA,IAAAG,MAAA,GAAAH,OAAA;AACA,IAAAI,WAAA,GAAAJ,OAAA;AAAkD,IAAAK,WAAA,GAAAL,OAAA;AAqBlD,MAAMM,oBAAoB,GAAGA,CAAC;EAC1BC,IAAI;EACJC,SAAS;EACTC,KAAK;EACLC,QAAQ;EACRC,OAAO;EACPC,OAAO,GAAG,KAAK;EACfC,MAAM,GAAG,KAAK;EACdC,WAAW,GAAG,KAAK;EACnBC,QAAQ,GAAG,KAAK;EAChBC,aAAa;EACbC,UAAU;EACVC,kBAAkB;EAClBC;AACc,CAAC,KAAK;EACpB,MAAM;IAAEC;EAAO,CAAC,GAAG,IAAAC,eAAQ,EAAC,CAAC;EAC7B;EACA,MAAMC,cAAc,GAAGd,SAAS,IAAIY,MAAM,CAACb,IAAI;EAE/C,MAAMgB,UAAU,GAAG,IAAAC,cAAO,EACtB,MAAM,CACFC,MAAM,CAACC,WAAW,EAClBd,OAAO,IAAIa,MAAM,CAACE,gBAAgB,EAClCd,MAAM,IAAIY,MAAM,CAACG,eAAe,CACnC,EACD,CAAChB,OAAO,EAAEC,MAAM,CACpB,CAAC;EAED,MAAMgB,OAAO,gBACT,IAAAxB,WAAA,CAAAyB,IAAA,EAAC7B,YAAA,CAAA8B,IAAI;IAACC,KAAK,EAAEP,MAAM,CAACQ,kBAAmB;IAAAC,QAAA,GAClCjB,UAAU,gBACP,IAAAZ,WAAA,CAAA8B,GAAA,EAAClC,YAAA,CAAA8B,IAAI;MAACC,KAAK,EAAEP,MAAM,CAACW,UAAW;MAAAF,QAAA,EAAEjB;IAAU,CAAO,CAAC,GACnDV,IAAI,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AAa,EAAE;IACX2B,KAAK,EAAE,EAAE;IACTQ,MAAM,EAAE,EAAE;IACVC,YAAY,EAAE,EAAE;IAChBZ,UAAU,EAAE,QAAQ;IACpBC,cAAc,EAAE;IAChB;EACJ,CAAC;EACDlB,mBAAmB,EAAE;IACjB8B,IAAI,EAAE;EACV,CAAC;EACD3B,gBAAgB,EAAE;IACd4B,QAAQ,EAAE,EAAE;IACZC,UAAU,EAAE;EAChB,CAAC;EACD5B,mBAAmB,EAAE;IACjB2B,QAAQ,EAAE,EAAE;IACZE,SAAS,EAAE;EACf;AACJ,CAAC,CAAC;AAAC,IAAAC,QAAA,GAAAtB,OAAA,CAAAuB,OAAA,GAEYxB,WAAW","ignoreList":[]}
@@ -1,41 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = exports.GroupedSection = void 0;
7
- var _react = require("react");
8
- var _reactNative = require("react-native");
9
- var _GroupedItem = require("./GroupedItem.js");
10
- var _jsxRuntime = require("react/jsx-runtime");
11
- const GroupedSectionComponent = ({
12
- items
13
- }) => {
14
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
15
- style: {
16
- width: '100%'
17
- },
18
- children: items.map((item, index) => /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
19
- style: {
20
- marginBottom: index < items.length - 1 ? 4 : 0
21
- },
22
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_GroupedItem.GroupedItem, {
23
- icon: item.icon,
24
- iconColor: item.iconColor,
25
- title: item.title,
26
- subtitle: item.subtitle,
27
- onPress: item.onPress,
28
- isFirst: index === 0,
29
- isLast: index === items.length - 1,
30
- showChevron: item.showChevron,
31
- disabled: item.disabled,
32
- customContent: item.customContent,
33
- customIcon: item.customIcon
34
- })
35
- }, `${item.id}-${index}`))
36
- });
37
- };
38
- GroupedSectionComponent.displayName = 'GroupedSection';
39
- const GroupedSection = exports.GroupedSection = /*#__PURE__*/(0, _react.memo)(GroupedSectionComponent);
40
- var _default = exports.default = GroupedSection;
41
- //# sourceMappingURL=GroupedSection.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["_react","require","_reactNative","_GroupedItem","_jsxRuntime","GroupedSectionComponent","items","jsx","View","style","width","children","map","item","index","marginBottom","length","GroupedItem","icon","iconColor","title","subtitle","onPress","isFirst","isLast","showChevron","disabled","customContent","customIcon","id","displayName","GroupedSection","exports","memo","_default","default"],"sourceRoot":"../../../../src","sources":["ui/components/GroupedSection.tsx"],"mappings":";;;;;;AACA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,YAAA,GAAAF,OAAA;AAA4C,IAAAG,WAAA,GAAAH,OAAA;AA4B5C,MAAMI,uBAAuB,GAAGA,CAAC;EAAEC;AAA2B,CAAC,KAAK;EAChE,oBACI,IAAAF,WAAA,CAAAG,GAAA,EAACL,YAAA,CAAAM,IAAI;IAACC,KAAK,EAAE;MAAEC,KAAK,EAAE;IAAO,CAAE;IAAAC,QAAA,EAC1BL,KAAK,CAACM,GAAG,CAAC,CAACC,IAAI,EAAEC,KAAK,kBACnB,IAAAV,WAAA,CAAAG,GAAA,EAACL,YAAA,CAAAM,IAAI;MAA6BC,KAAK,EAAE;QAAEM,YAAY,EAAED,KAAK,GAAGR,KAAK,CAACU,MAAM,GAAG,CAAC,GAAG,CAAC,GAAG;MAAE,CAAE;MAAAL,QAAA,eACxF,IAAAP,WAAA,CAAAG,GAAA,EAACJ,YAAA,CAAAc,WAAW;QACRC,IAAI,EAAEL,IAAI,CAACK,IAAK;QAChBC,SAAS,EAAEN,IAAI,CAACM,SAAU;QAC1BC,KAAK,EAAEP,IAAI,CAACO,KAAM;QAClBC,QAAQ,EAAER,IAAI,CAACQ,QAAS;QACxBC,OAAO,EAAET,IAAI,CAACS,OAAQ;QACtBC,OAAO,EAAET,KAAK,KAAK,CAAE;QACrBU,MAAM,EAAEV,KAAK,KAAKR,KAAK,CAACU,MAAM,GAAG,CAAE;QACnCS,WAAW,EAAEZ,IAAI,CAACY,WAAY;QAC9BC,QAAQ,EAAEb,IAAI,CAACa,QAAS;QACxBC,aAAa,EAAEd,IAAI,CAACc,aAAc;QAClCC,UAAU,EAAEf,IAAI,CAACe;MAAW,CAC/B;IAAC,GAbK,GAAGf,IAAI,CAACgB,EAAE,IAAIf,KAAK,EAcxB,CACT;EAAC,CACA,CAAC;AAEf,CAAC;AAEDT,uBAAuB,CAACyB,WAAW,GAAG,gBAAgB;AAE/C,MAAMC,cAAc,GAAAC,OAAA,CAAAD,cAAA,gBAAG,IAAAE,WAAI,EAAC5B,uBAAuB,CAAC;AAAC,IAAA6B,QAAA,GAAAF,OAAA,CAAAG,OAAA,GAE7CJ,cAAc","ignoreList":[]}
@@ -1,39 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = void 0;
7
- var _reactNative = require("react-native");
8
- var _SectionTitle = _interopRequireDefault(require("./SectionTitle.js"));
9
- var _useColorScheme = require("../hooks/useColorScheme.js");
10
- var _themeUtils = require("../utils/themeUtils.js");
11
- var _jsxRuntime = require("react/jsx-runtime");
12
- function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
13
- const Section = ({
14
- title,
15
- theme,
16
- children,
17
- isFirst = false,
18
- style
19
- }) => {
20
- const colorScheme = (0, _themeUtils.normalizeColorScheme)((0, _useColorScheme.useColorScheme)(), theme);
21
- return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
22
- style: [styles.section, isFirst && styles.firstSection, style],
23
- children: [title && /*#__PURE__*/(0, _jsxRuntime.jsx)(_SectionTitle.default, {
24
- title: title,
25
- theme: colorScheme
26
- }), children]
27
- });
28
- };
29
- const styles = _reactNative.StyleSheet.create({
30
- section: {
31
- marginBottom: 10,
32
- gap: 12
33
- },
34
- firstSection: {
35
- marginTop: 8
36
- }
37
- });
38
- var _default = exports.default = Section;
39
- //# sourceMappingURL=Section.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["_reactNative","require","_SectionTitle","_interopRequireDefault","_useColorScheme","_themeUtils","_jsxRuntime","e","__esModule","default","Section","title","theme","children","isFirst","style","colorScheme","normalizeColorScheme","useColorScheme","jsxs","View","styles","section","firstSection","jsx","StyleSheet","create","marginBottom","gap","marginTop","_default","exports"],"sourceRoot":"../../../../src","sources":["ui/components/Section.tsx"],"mappings":";;;;;;AACA,IAAAA,YAAA,GAAAC,OAAA;AACA,IAAAC,aAAA,GAAAC,sBAAA,CAAAF,OAAA;AACA,IAAAG,eAAA,GAAAH,OAAA;AACA,IAAAI,WAAA,GAAAJ,OAAA;AAA2D,IAAAK,WAAA,GAAAL,OAAA;AAAA,SAAAE,uBAAAI,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAU3D,MAAMG,OAA+B,GAAGA,CAAC;EACrCC,KAAK;EACLC,KAAK;EACLC,QAAQ;EACRC,OAAO,GAAG,KAAK;EACfC;AACJ,CAAC,KAAK;EACF,MAAMC,WAAW,GAAG,IAAAC,gCAAoB,EAAC,IAAAC,8BAAc,EAAC,CAAC,EAAEN,KAAK,CAAC;EAEjE,oBACI,IAAAN,WAAA,CAAAa,IAAA,EAACnB,YAAA,CAAAoB,IAAI;IAACL,KAAK,EAAE,CAACM,MAAM,CAACC,OAAO,EAAER,OAAO,IAAIO,MAAM,CAACE,YAAY,EAAER,KAAK,CAAE;IAAAF,QAAA,GAChEF,KAAK,iBAAI,IAAAL,WAAA,CAAAkB,GAAA,EAACtB,aAAA,CAAAO,OAAY;MAACE,KAAK,EAAEA,KAAM;MAACC,KAAK,EAAEI;IAAY,CAAE,CAAC,EAC3DH,QAAQ;EAAA,CACP,CAAC;AAEf,CAAC;AAED,MAAMQ,MAAM,GAAGI,uBAAU,CAACC,MAAM,CAAC;EAC7BJ,OAAO,EAAE;IACLK,YAAY,EAAE,EAAE;IAChBC,GAAG,EAAE;EACT,CAAC;EACDL,YAAY,EAAE;IACVM,SAAS,EAAE;EACf;AACJ,CAAC,CAAC;AAAC,IAAAC,QAAA,GAAAC,OAAA,CAAAtB,OAAA,GAEYC,OAAO","ignoreList":[]}
@@ -1,29 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = void 0;
7
- var _reactNative = require("react-native");
8
- var _fonts = require("../styles/fonts.js");
9
- var _jsxRuntime = require("react/jsx-runtime");
10
- const SectionTitle = ({
11
- title,
12
- theme,
13
- style
14
- }) => {
15
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
16
- className: "text-foreground",
17
- style: [styles.sectionTitle, style],
18
- children: title
19
- });
20
- };
21
- const styles = _reactNative.StyleSheet.create({
22
- sectionTitle: {
23
- fontSize: 16,
24
- fontWeight: '600',
25
- fontFamily: _fonts.fontFamilies.interSemiBold
26
- }
27
- });
28
- var _default = exports.default = SectionTitle;
29
- //# sourceMappingURL=SectionTitle.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["_reactNative","require","_fonts","_jsxRuntime","SectionTitle","title","theme","style","jsx","Text","className","styles","sectionTitle","children","StyleSheet","create","fontSize","fontWeight","fontFamily","fontFamilies","interSemiBold","_default","exports","default"],"sourceRoot":"../../../../src","sources":["ui/components/SectionTitle.tsx"],"mappings":";;;;;;AACA,IAAAA,YAAA,GAAAC,OAAA;AACA,IAAAC,MAAA,GAAAD,OAAA;AAA+C,IAAAE,WAAA,GAAAF,OAAA;AAQ/C,MAAMG,YAAyC,GAAGA,CAAC;EAAEC,KAAK;EAAEC,KAAK;EAAEC;AAAM,CAAC,KAAK;EAC3E,oBACI,IAAAJ,WAAA,CAAAK,GAAA,EAACR,YAAA,CAAAS,IAAI;IAACC,SAAS,EAAC,iBAAiB;IAACH,KAAK,EAAE,CAACI,MAAM,CAACC,YAAY,EAAEL,KAAK,CAAE;IAAAM,QAAA,EACjER;EAAK,CACJ,CAAC;AAEf,CAAC;AAED,MAAMM,MAAM,GAAGG,uBAAU,CAACC,MAAM,CAAC;EAC7BH,YAAY,EAAE;IACVI,QAAQ,EAAE,EAAE;IACZC,UAAU,EAAE,KAAK;IACjBC,UAAU,EAAEC,mBAAY,CAACC;EAC7B;AACJ,CAAC,CAAC;AAAC,IAAAC,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAEYnB,YAAY","ignoreList":[]}
@@ -1,96 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = void 0;
7
- var _react = _interopRequireDefault(require("react"));
8
- var _reactNative = require("react-native");
9
- var _theme = require("@oxyhq/bloom/theme");
10
- var _jsxRuntime = require("react/jsx-runtime");
11
- function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
12
- /**
13
- * Reusable setting row component with switch
14
- * Extracted from PrivacySettingsScreen for reuse across settings screens
15
- */
16
- const SettingRow = ({
17
- title,
18
- description,
19
- value,
20
- onValueChange,
21
- disabled = false,
22
- textColor,
23
- mutedTextColor,
24
- borderColor,
25
- activeColor,
26
- inactiveColor,
27
- accessibilityLabel
28
- }) => {
29
- const theme = (0, _theme.useTheme)();
30
- const resolvedActiveColor = activeColor ?? theme.colors.primary;
31
- const resolvedInactiveColor = inactiveColor ?? theme.colors.textTertiary;
32
- const thumbOn = theme.colors.background;
33
- const thumbOff = theme.colors.backgroundSecondary;
34
- return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
35
- style: [styles.settingRow, borderColor ? {
36
- borderBottomColor: borderColor
37
- } : undefined],
38
- accessibilityRole: "none",
39
- children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
40
- style: styles.settingInfo,
41
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
42
- style: [styles.settingTitle, textColor ? {
43
- color: textColor
44
- } : undefined],
45
- accessibilityRole: "text",
46
- children: title
47
- }), description && /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
48
- style: [styles.settingDescription, mutedTextColor ? {
49
- color: mutedTextColor
50
- } : undefined],
51
- accessibilityRole: "text",
52
- children: description
53
- })]
54
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Switch, {
55
- value: value,
56
- onValueChange: onValueChange,
57
- disabled: disabled,
58
- trackColor: {
59
- false: resolvedInactiveColor,
60
- true: resolvedActiveColor
61
- },
62
- thumbColor: value ? thumbOn : thumbOff,
63
- accessibilityRole: "switch",
64
- accessibilityLabel: accessibilityLabel || title,
65
- accessibilityState: {
66
- checked: value,
67
- disabled
68
- },
69
- accessibilityHint: description
70
- })]
71
- });
72
- };
73
- const styles = _reactNative.StyleSheet.create({
74
- settingRow: {
75
- flexDirection: 'row',
76
- justifyContent: 'space-between',
77
- alignItems: 'center',
78
- paddingVertical: 16,
79
- borderBottomWidth: 1
80
- },
81
- settingInfo: {
82
- flex: 1,
83
- marginRight: 16
84
- },
85
- settingTitle: {
86
- fontSize: 16,
87
- fontWeight: '500',
88
- marginBottom: 4
89
- },
90
- settingDescription: {
91
- fontSize: 14,
92
- opacity: 0.7
93
- }
94
- });
95
- var _default = exports.default = /*#__PURE__*/_react.default.memo(SettingRow);
96
- //# sourceMappingURL=SettingRow.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_theme","_jsxRuntime","e","__esModule","default","SettingRow","title","description","value","onValueChange","disabled","textColor","mutedTextColor","borderColor","activeColor","inactiveColor","accessibilityLabel","theme","useTheme","resolvedActiveColor","colors","primary","resolvedInactiveColor","textTertiary","thumbOn","background","thumbOff","backgroundSecondary","jsxs","View","style","styles","settingRow","borderBottomColor","undefined","accessibilityRole","children","settingInfo","jsx","Text","settingTitle","color","settingDescription","Switch","trackColor","false","true","thumbColor","accessibilityState","checked","accessibilityHint","StyleSheet","create","flexDirection","justifyContent","alignItems","paddingVertical","borderBottomWidth","flex","marginRight","fontSize","fontWeight","marginBottom","opacity","_default","exports","React","memo"],"sourceRoot":"../../../../src","sources":["ui/components/SettingRow.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,MAAA,GAAAF,OAAA;AAA8C,IAAAG,WAAA,GAAAH,OAAA;AAAA,SAAAD,uBAAAK,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAmB9C;AACA;AACA;AACA;AACA,MAAMG,UAAqC,GAAGA,CAAC;EAC3CC,KAAK;EACLC,WAAW;EACXC,KAAK;EACLC,aAAa;EACbC,QAAQ,GAAG,KAAK;EAChBC,SAAS;EACTC,cAAc;EACdC,WAAW;EACXC,WAAW;EACXC,aAAa;EACbC;AACJ,CAAC,KAAK;EACF,MAAMC,KAAK,GAAG,IAAAC,eAAQ,EAAC,CAAC;EAExB,MAAMC,mBAAmB,GAAGL,WAAW,IAAIG,KAAK,CAACG,MAAM,CAACC,OAAO;EAC/D,MAAMC,qBAAqB,GAAGP,aAAa,IAAIE,KAAK,CAACG,MAAM,CAACG,YAAY;EACxE,MAAMC,OAAO,GAAGP,KAAK,CAACG,MAAM,CAACK,UAAU;EACvC,MAAMC,QAAQ,GAAGT,KAAK,CAACG,MAAM,CAACO,mBAAmB;EAEjD,oBACI,IAAA1B,WAAA,CAAA2B,IAAA,EAAC7B,YAAA,CAAA8B,IAAI;IACDC,KAAK,EAAE,CAACC,MAAM,CAACC,UAAU,EAAEnB,WAAW,GAAG;MAAEoB,iBAAiB,EAAEpB;IAAY,CAAC,GAAGqB,SAAS,CAAE;IACzFC,iBAAiB,EAAC,MAAM;IAAAC,QAAA,gBAExB,IAAAnC,WAAA,CAAA2B,IAAA,EAAC7B,YAAA,CAAA8B,IAAI;MAACC,KAAK,EAAEC,MAAM,CAACM,WAAY;MAAAD,QAA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