@oxyhq/services 6.9.27 → 6.9.29

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 (47) hide show
  1. package/lib/commonjs/ui/components/SettingsIcon.js +45 -0
  2. package/lib/commonjs/ui/components/SettingsIcon.js.map +1 -0
  3. package/lib/commonjs/ui/components/index.js +7 -0
  4. package/lib/commonjs/ui/components/index.js.map +1 -1
  5. package/lib/commonjs/ui/screens/AccountCenterScreen.js +127 -126
  6. package/lib/commonjs/ui/screens/AccountCenterScreen.js.map +1 -1
  7. package/lib/commonjs/ui/screens/AccountOverviewScreen.js +203 -191
  8. package/lib/commonjs/ui/screens/AccountOverviewScreen.js.map +1 -1
  9. package/lib/commonjs/ui/screens/AppInfoScreen.js +209 -205
  10. package/lib/commonjs/ui/screens/AppInfoScreen.js.map +1 -1
  11. package/lib/commonjs/ui/screens/HelpSupportScreen.js +66 -63
  12. package/lib/commonjs/ui/screens/HelpSupportScreen.js.map +1 -1
  13. package/lib/module/ui/components/SettingsIcon.js +40 -0
  14. package/lib/module/ui/components/SettingsIcon.js.map +1 -0
  15. package/lib/module/ui/components/index.js +1 -0
  16. package/lib/module/ui/components/index.js.map +1 -1
  17. package/lib/module/ui/screens/AccountCenterScreen.js +127 -126
  18. package/lib/module/ui/screens/AccountCenterScreen.js.map +1 -1
  19. package/lib/module/ui/screens/AccountOverviewScreen.js +204 -192
  20. package/lib/module/ui/screens/AccountOverviewScreen.js.map +1 -1
  21. package/lib/module/ui/screens/AppInfoScreen.js +210 -206
  22. package/lib/module/ui/screens/AppInfoScreen.js.map +1 -1
  23. package/lib/module/ui/screens/HelpSupportScreen.js +67 -64
  24. package/lib/module/ui/screens/HelpSupportScreen.js.map +1 -1
  25. package/lib/typescript/commonjs/ui/components/SettingsIcon.d.ts +14 -0
  26. package/lib/typescript/commonjs/ui/components/SettingsIcon.d.ts.map +1 -0
  27. package/lib/typescript/commonjs/ui/components/index.d.ts +1 -0
  28. package/lib/typescript/commonjs/ui/components/index.d.ts.map +1 -1
  29. package/lib/typescript/commonjs/ui/screens/AccountCenterScreen.d.ts.map +1 -1
  30. package/lib/typescript/commonjs/ui/screens/AccountOverviewScreen.d.ts.map +1 -1
  31. package/lib/typescript/commonjs/ui/screens/AppInfoScreen.d.ts.map +1 -1
  32. package/lib/typescript/commonjs/ui/screens/HelpSupportScreen.d.ts.map +1 -1
  33. package/lib/typescript/module/ui/components/SettingsIcon.d.ts +14 -0
  34. package/lib/typescript/module/ui/components/SettingsIcon.d.ts.map +1 -0
  35. package/lib/typescript/module/ui/components/index.d.ts +1 -0
  36. package/lib/typescript/module/ui/components/index.d.ts.map +1 -1
  37. package/lib/typescript/module/ui/screens/AccountCenterScreen.d.ts.map +1 -1
  38. package/lib/typescript/module/ui/screens/AccountOverviewScreen.d.ts.map +1 -1
  39. package/lib/typescript/module/ui/screens/AppInfoScreen.d.ts.map +1 -1
  40. package/lib/typescript/module/ui/screens/HelpSupportScreen.d.ts.map +1 -1
  41. package/package.json +2 -2
  42. package/src/ui/components/SettingsIcon.tsx +43 -0
  43. package/src/ui/components/index.ts +1 -0
  44. package/src/ui/screens/AccountCenterScreen.tsx +97 -145
  45. package/src/ui/screens/AccountOverviewScreen.tsx +154 -220
  46. package/src/ui/screens/AppInfoScreen.tsx +177 -248
  47. package/src/ui/screens/HelpSupportScreen.tsx +53 -76
@@ -8,9 +8,11 @@ var _react = _interopRequireWildcard(require("react"));
8
8
  var _reactNative = require("react-native");
9
9
  var _sonner = require("../../lib/sonner");
10
10
  var _index = require("../components/index.js");
11
+ var _SettingsIcon = require("../components/SettingsIcon.js");
11
12
  var _useI18n = require("../hooks/useI18n.js");
12
13
  var _useThemeStyles = require("../hooks/useThemeStyles.js");
13
14
  var _useColorScheme = require("../hooks/useColorScheme.js");
15
+ var _settingsList = require("@oxyhq/bloom/settings-list");
14
16
  var _jsxRuntime = require("react/jsx-runtime");
15
17
  function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
16
18
  const HelpSupportScreen = ({
@@ -53,71 +55,72 @@ const HelpSupportScreen = ({
53
55
  elevation: "subtle"
54
56
  }), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.ScrollView, {
55
57
  style: styles.content,
56
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_index.Section, {
58
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_settingsList.SettingsListGroup, {
57
59
  title: t('help.options') || 'Get Help',
58
- isFirst: true,
59
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.GroupedSection, {
60
- items: [{
61
- id: 'faq',
62
- icon: 'help-circle',
63
- iconColor: themeStyles.colors.iconSecurity,
64
- title: t('help.faq.title') || 'Frequently Asked Questions',
65
- subtitle: t('help.faq.subtitle') || 'Find answers to common questions',
66
- onPress: handleFAQ
67
- }, {
68
- id: 'contact',
69
- icon: 'mail',
70
- iconColor: themeStyles.colors.iconPersonalInfo,
71
- title: t('help.contact.title') || 'Contact Support',
72
- subtitle: t('help.contact.subtitle') || 'Get help from our support team',
73
- onPress: handleContactSupport
74
- }, {
75
- id: 'report-bug',
76
- icon: 'bug',
77
- iconColor: themeStyles.colors.iconStorage,
78
- title: t('help.reportBug.title') || 'Report a Bug',
79
- subtitle: t('help.reportBug.subtitle') || 'Help us improve by reporting issues',
80
- onPress: handleReportBug
81
- }]
82
- })
83
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.Section, {
60
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_settingsList.SettingsListItem, {
61
+ icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_SettingsIcon.SettingsIcon, {
62
+ name: "help-circle",
63
+ color: themeStyles.colors.iconSecurity
64
+ }),
65
+ title: t('help.faq.title') || 'Frequently Asked Questions',
66
+ description: t('help.faq.subtitle') || 'Find answers to common questions',
67
+ onPress: handleFAQ
68
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_settingsList.SettingsListItem, {
69
+ icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_SettingsIcon.SettingsIcon, {
70
+ name: "email",
71
+ color: themeStyles.colors.iconPersonalInfo
72
+ }),
73
+ title: t('help.contact.title') || 'Contact Support',
74
+ description: t('help.contact.subtitle') || 'Get help from our support team',
75
+ onPress: handleContactSupport
76
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_settingsList.SettingsListItem, {
77
+ icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_SettingsIcon.SettingsIcon, {
78
+ name: "bug",
79
+ color: themeStyles.colors.iconStorage
80
+ }),
81
+ title: t('help.reportBug.title') || 'Report a Bug',
82
+ description: t('help.reportBug.subtitle') || 'Help us improve by reporting issues',
83
+ onPress: handleReportBug
84
+ })]
85
+ }), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_settingsList.SettingsListGroup, {
84
86
  title: t('help.resources') || 'Resources',
85
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.GroupedSection, {
86
- items: [{
87
- id: 'documentation',
88
- icon: 'file-document',
89
- iconColor: '#8E8E93',
90
- title: t('help.documentation.title') || 'Documentation',
91
- subtitle: t('help.documentation.subtitle') || 'User guides and tutorials',
92
- onPress: () => {
93
- _reactNative.Linking.openURL('https://developer.oxy.so/docs').catch(() => {
94
- _sonner.toast.error(t('help.linkError') || 'Failed to open link');
95
- });
96
- }
97
- }, {
98
- id: 'community',
99
- icon: 'account-group',
100
- iconColor: themeStyles.colors.iconData,
101
- title: t('help.community.title') || 'Community',
102
- subtitle: t('help.community.subtitle') || 'Join our community',
103
- onPress: () => {
104
- _reactNative.Linking.openURL('https://community.oxy.so').catch(() => {
105
- _sonner.toast.error(t('help.linkError') || 'Failed to open link');
106
- });
107
- }
108
- }, {
109
- id: 'developers-portal',
110
- icon: 'code-tags',
111
- iconColor: themeStyles.colors.iconSharing,
112
- title: t('help.developersPortal.title') || 'Developers Portal',
113
- subtitle: t('help.developersPortal.subtitle') || 'API documentation and developer resources',
114
- onPress: () => {
115
- _reactNative.Linking.openURL('https://developer.oxy.so').catch(() => {
116
- _sonner.toast.error(t('help.linkError') || 'Failed to open link');
117
- });
118
- }
119
- }]
120
- })
87
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_settingsList.SettingsListItem, {
88
+ icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_SettingsIcon.SettingsIcon, {
89
+ name: "file-document",
90
+ color: "#8E8E93"
91
+ }),
92
+ title: t('help.documentation.title') || 'Documentation',
93
+ description: t('help.documentation.subtitle') || 'User guides and tutorials',
94
+ onPress: () => {
95
+ _reactNative.Linking.openURL('https://developer.oxy.so/docs').catch(() => {
96
+ _sonner.toast.error(t('help.linkError') || 'Failed to open link');
97
+ });
98
+ }
99
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_settingsList.SettingsListItem, {
100
+ icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_SettingsIcon.SettingsIcon, {
101
+ name: "account-group",
102
+ color: themeStyles.colors.iconData
103
+ }),
104
+ title: t('help.community.title') || 'Community',
105
+ description: t('help.community.subtitle') || 'Join our community',
106
+ onPress: () => {
107
+ _reactNative.Linking.openURL('https://community.oxy.so').catch(() => {
108
+ _sonner.toast.error(t('help.linkError') || 'Failed to open link');
109
+ });
110
+ }
111
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_settingsList.SettingsListItem, {
112
+ icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_SettingsIcon.SettingsIcon, {
113
+ name: "code-tags",
114
+ color: themeStyles.colors.iconSharing
115
+ }),
116
+ title: t('help.developersPortal.title') || 'Developers Portal',
117
+ description: t('help.developersPortal.subtitle') || 'API documentation and developer resources',
118
+ onPress: () => {
119
+ _reactNative.Linking.openURL('https://developer.oxy.so').catch(() => {
120
+ _sonner.toast.error(t('help.linkError') || 'Failed to open link');
121
+ });
122
+ }
123
+ })]
121
124
  })]
122
125
  })]
123
126
  });
@@ -1 +1 @@
1
- {"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_sonner","_index","_useI18n","_useThemeStyles","_useColorScheme","_jsxRuntime","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","HelpSupportScreen","onClose","theme","goBack","navigate","useI18n","colorScheme","useColorScheme","themeStyles","useThemeStyles","handleContactSupport","useMemo","Linking","openURL","catch","toast","error","handleFAQ","info","handleReportBug","jsxs","View","style","styles","container","backgroundColor","children","jsx","Header","title","onBack","variant","elevation","ScrollView","content","Section","isFirst","GroupedSection","items","id","icon","iconColor","colors","iconSecurity","subtitle","onPress","iconPersonalInfo","iconStorage","iconData","iconSharing","StyleSheet","create","flex","padding","_default","exports","React","memo"],"sourceRoot":"../../../../src","sources":["ui/screens/HelpSupportScreen.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AASA,IAAAE,OAAA,GAAAF,OAAA;AACA,IAAAG,MAAA,GAAAH,OAAA;AACA,IAAAI,QAAA,GAAAJ,OAAA;AACA,IAAAK,eAAA,GAAAL,OAAA;AACA,IAAAM,eAAA,GAAAN,OAAA;AAAyD,IAAAO,WAAA,GAAAP,OAAA;AAAA,SAAAD,wBAAAS,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAX,uBAAA,YAAAA,CAAAS,C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oBAAO,CAACC,OAAO,CAAC,0BAA0B,CAAC,CAACC,KAAK,CAAC,MAAM;gBACpDC,aAAK,CAACC,KAAK,CAAClC,CAAC,CAAC,gBAAgB,CAAC,IAAI,qBAAqB,CAAC;cAC7D,CAAC,CAAC;YACN;UACJ,CAAC;QACH,CAEL;MAAC,CACG,CAAC;IAAA,CACF,CAAC;EAAA,CACX,CAAC;AAEf,CAAC;AAED,MAAMyC,MAAM,GAAG2B,uBAAU,CAACC,MAAM,CAAC;EAC7B3B,SAAS,EAAE;IACP4B,IAAI,EAAE;EACV,CAAC;EACDlB,OAAO,EAAE;IACLkB,IAAI,EAAE,CAAC;IACPC,OAAO,EAAE;EACb;AACJ,CAAC,CAAC;AAAC,IAAAC,QAAA,GAAAC,OAAA,CAAAhE,OAAA,gBAEYiE,cAAK,CAACC,IAAI,CAACzD,iBAAiB,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_sonner","_index","_SettingsIcon","_useI18n","_useThemeStyles","_useColorScheme","_settingsList","_jsxRuntime","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","HelpSupportScreen","onClose","theme","goBack","navigate","useI18n","colorScheme","useColorScheme","themeStyles","useThemeStyles","handleContactSupport","useMemo","Linking","openURL","catch","toast","error","handleFAQ","info","handleReportBug","jsxs","View","style","styles","container","backgroundColor","children","jsx","Header","title","onBack","variant","elevation","ScrollView","content","SettingsListGroup","SettingsListItem","icon","SettingsIcon","name","color","colors","iconSecurity","description","onPress","iconPersonalInfo","iconStorage","iconData","iconSharing","StyleSheet","create","flex","padding","_default","exports","React","memo"],"sourceRoot":"../../../../src","sources":["ui/screens/HelpSupportScreen.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAOA,IAAAE,OAAA,GAAAF,OAAA;AACA,I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EAAE;EACV,CAAC;EACDjB,OAAO,EAAE;IACLiB,IAAI,EAAE,CAAC;IACPC,OAAO,EAAE;EACb;AACJ,CAAC,CAAC;AAAC,IAAAC,QAAA,GAAAC,OAAA,CAAA/D,OAAA,gBAEYgE,cAAK,CAACC,IAAI,CAACxD,iBAAiB,CAAC","ignoreList":[]}
@@ -0,0 +1,40 @@
1
+ "use strict";
2
+
3
+ import React, { memo } from 'react';
4
+ import { View, StyleSheet } from 'react-native';
5
+ import { MaterialCommunityIcons } from '@expo/vector-icons';
6
+ import { darkenColor } from "../utils/colorUtils.js";
7
+ import { jsx as _jsx } from "react/jsx-runtime";
8
+ /**
9
+ * Compact colored-circle icon for use with bloom's SettingsListItem.
10
+ * Renders a MaterialCommunityIcons glyph inside a tinted circle,
11
+ * sized to fit bloom's 20x20 icon container.
12
+ */
13
+ const SettingsIconComponent = ({
14
+ name,
15
+ color,
16
+ iconSize = 14,
17
+ size = 20
18
+ }) => /*#__PURE__*/_jsx(View, {
19
+ style: [styles.circle, {
20
+ width: size,
21
+ height: size,
22
+ borderRadius: size / 2,
23
+ backgroundColor: color
24
+ }],
25
+ children: /*#__PURE__*/_jsx(MaterialCommunityIcons, {
26
+ name: name,
27
+ size: iconSize,
28
+ color: darkenColor(color)
29
+ })
30
+ });
31
+ SettingsIconComponent.displayName = 'SettingsIcon';
32
+ export const SettingsIcon = /*#__PURE__*/memo(SettingsIconComponent);
33
+ export default SettingsIcon;
34
+ const styles = StyleSheet.create({
35
+ circle: {
36
+ alignItems: 'center',
37
+ justifyContent: 'center'
38
+ }
39
+ });
40
+ //# sourceMappingURL=SettingsIcon.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","memo","View","StyleSheet","MaterialCommunityIcons","darkenColor","jsx","_jsx","SettingsIconComponent","name","color","iconSize","size","style","styles","circle","width","height","borderRadius","backgroundColor","children","displayName","SettingsIcon","create","alignItems","justifyContent"],"sourceRoot":"../../../../src","sources":["ui/components/SettingsIcon.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,IAAI,QAAQ,OAAO;AACnC,SAASC,IAAI,EAAEC,UAAU,QAAQ,cAAc;AAC/C,SAASC,sBAAsB,QAAQ,oBAAoB;AAC3D,SAASC,WAAW,QAAQ,wBAAqB;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAalD;AACA;AACA;AACA;AACA;AACA,MAAMC,qBAAkD,GAAGA,CAAC;EACxDC,IAAI;EACJC,KAAK;EACLC,QAAQ,GAAG,EAAE;EACbC,IAAI,GAAG;AACX,CAAC,kBACGL,IAAA,CAACL,IAAI;EAACW,KAAK,EAAE,CAACC,MAAM,CAACC,MAAM,EAAE;IAAEC,KAAK,EAAEJ,IAAI;IAAEK,MAAM,EAAEL,IAAI;IAAEM,YAAY,EAAEN,IAAI,GAAG,CAAC;IAAEO,eAAe,EAAET;EAAM,CAAC,CAAE;EAAAU,QAAA,eACxGb,IAAA,CAACH,sBAAsB;IAACK,IAAI,EAAEA,IAAY;IAACG,IAAI,EAAED,QAAS;IAACD,KAAK,EAAEL,WAAW,CAACK,KAAK;EAAE,CAAE;AAAC,CACtF,CACT;AAEDF,qBAAqB,CAACa,WAAW,GAAG,cAAc;AAElD,OAAO,MAAMC,YAAY,gBAAGrB,IAAI,CAACO,qBAAqB,CAAC;AACvD,eAAec,YAAY;AAE3B,MAAMR,MAAM,GAAGX,UAAU,CAACoB,MAAM,CAAC;EAC7BR,MAAM,EAAE;IACJS,UAAU,EAAE,QAAQ;IACpBC,cAAc,EAAE;EACpB;AACJ,CAAC,CAAC","ignoreList":[]}
@@ -11,6 +11,7 @@ export { default as Header, getHeaderHeight } from "./Header.js";
11
11
  export { default as LoadingState } from "./LoadingState.js";
12
12
  export { default as EmptyState } from "./EmptyState.js";
13
13
  export { default as SettingRow } from "./SettingRow.js";
14
+ export { SettingsIcon } from "./SettingsIcon.js";
14
15
 
15
16
  // Re-export existing components
16
17
  export { default as Avatar } from "./Avatar.js";
@@ -1 +1 @@
1
- {"version":3,"names":["default","ProfileCard","Section","SectionTitle","GroupedItem","GroupedSection","QuickActions","Header","getHeaderHeight","LoadingState","EmptyState","SettingRow","Avatar","FollowButton","FontLoader","setupFonts","OxyLogo","OxySignInButton","OxyPayButton"],"sourceRoot":"../../../../src","sources":["ui/components/index.ts"],"mappings":";;AAAA;AACA,SAASA,OAAO,IAAIC,WAAW,QAAQ,kBAAe;AACtD,SAASD,OAAO,IAAIE,OAAO,QAAQ,cAAW;AAC9C,SAASF,OAAO,IAAIG,YAAY,QAAQ,mBAAgB;AACxD,SAASH,OAAO,IAAII,WAAW,QAAQ,kBAAe;AACtD,SAASJ,OAAO,IAAIK,cAAc,QAAQ,qBAAkB;AAC5D,SAASL,OAAO,IAAIM,YAAY,QAAQ,mBAAgB;AACxD,SAASN,OAAO,IAAIO,MAAM,EAAEC,eAAe,QAAQ,aAAU;AAC7D,SAASR,OAAO,IAAIS,YAAY,QAAQ,mBAAgB;AACxD,SAAST,OAAO,IAAIU,UAAU,QAAQ,iBAAc;AACpD,SAASV,OAAO,IAAIW,UAAU,QAAQ,iBAAc;;AAEpD;AACA,SAASX,OAAO,IAAIY,MAAM,QAAQ,aAAU;AAC5C,SAASZ,OAAO,IAAIa,YAAY,QAAQ,mBAAgB;AACxD,SAASC,UAAU,EAAEC,UAAU,QAAQ,iBAAc;AACrD,SAASf,OAAO,IAAIgB,OAAO,QAAQ,cAAW;AAC9C,SAAShB,OAAO,IAAIiB,eAAe,QAAQ,sBAAmB;AAC9D,SAASjB,OAAO,IAAIkB,YAAY,QAAQ,mBAAgB","ignoreList":[]}
1
+ {"version":3,"names":["default","ProfileCard","Section","SectionTitle","GroupedItem","GroupedSection","QuickActions","Header","getHeaderHeight","LoadingState","EmptyState","SettingRow","SettingsIcon","Avatar","FollowButton","FontLoader","setupFonts","OxyLogo","OxySignInButton","OxyPayButton"],"sourceRoot":"../../../../src","sources":["ui/components/index.ts"],"mappings":";;AAAA;AACA,SAASA,OAAO,IAAIC,WAAW,QAAQ,kBAAe;AACtD,SAASD,OAAO,IAAIE,OAAO,QAAQ,cAAW;AAC9C,SAASF,OAAO,IAAIG,YAAY,QAAQ,mBAAgB;AACxD,SAASH,OAAO,IAAII,WAAW,QAAQ,kBAAe;AACtD,SAASJ,OAAO,IAAIK,cAAc,QAAQ,qBAAkB;AAC5D,SAASL,OAAO,IAAIM,YAAY,QAAQ,mBAAgB;AACxD,SAASN,OAAO,IAAIO,MAAM,EAAEC,eAAe,QAAQ,aAAU;AAC7D,SAASR,OAAO,IAAIS,YAAY,QAAQ,mBAAgB;AACxD,SAAST,OAAO,IAAIU,UAAU,QAAQ,iBAAc;AACpD,SAASV,OAAO,IAAIW,UAAU,QAAQ,iBAAc;AACpD,SAASC,YAAY,QAAQ,mBAAgB;;AAE7C;AACA,SAASZ,OAAO,IAAIa,MAAM,QAAQ,aAAU;AAC5C,SAASb,OAAO,IAAIc,YAAY,QAAQ,mBAAgB;AACxD,SAASC,UAAU,EAAEC,UAAU,QAAQ,iBAAc;AACrD,SAAShB,OAAO,IAAIiB,OAAO,QAAQ,cAAW;AAC9C,SAASjB,OAAO,IAAIkB,eAAe,QAAQ,sBAAmB;AAC9D,SAASlB,OAAO,IAAImB,YAAY,QAAQ,mBAAgB","ignoreList":[]}
@@ -9,8 +9,7 @@ import { fontFamilies } from "../styles/fonts.js";
9
9
  import ProfileCard from "../components/ProfileCard.js";
10
10
  import Section from "../components/Section.js";
11
11
  import QuickActions from "../components/QuickActions.js";
12
- import GroupedSection from "../components/GroupedSection.js";
13
- import GroupedItem from "../components/GroupedItem.js";
12
+ import { SettingsIcon } from "../components/SettingsIcon.js";
14
13
  import { useI18n } from "../hooks/useI18n.js";
15
14
  import { useThemeStyles } from "../hooks/useThemeStyles.js";
16
15
  import { useColorScheme } from "../hooks/useColorScheme.js";
@@ -18,6 +17,7 @@ import { Colors } from "../constants/theme.js";
18
17
  import { normalizeColorScheme, normalizeTheme } from "../utils/themeUtils.js";
19
18
  import { useOxy } from "../context/OxyContext.js";
20
19
  import { screenContentStyle } from "../constants/spacing.js";
20
+ import { SettingsListGroup, SettingsListItem } from '@oxyhq/bloom/settings-list';
21
21
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
22
22
  const AccountCenterScreen = ({
23
23
  onClose,
@@ -43,8 +43,6 @@ const AccountCenterScreen = ({
43
43
  // Extract commonly used colors for readability - ensure colors is always defined
44
44
  const {
45
45
  textColor,
46
- secondaryBackgroundColor,
47
- borderColor,
48
46
  primaryColor,
49
47
  dangerColor,
50
48
  colors: themeColors
@@ -154,138 +152,141 @@ const AccountCenterScreen = ({
154
152
  onPress: () => navigate?.('AccountSwitcher')
155
153
  }] : [])], [user?.isPremium, sessions, navigate, t, colors])
156
154
  })
157
- }), /*#__PURE__*/_jsx(Section, {
155
+ }), /*#__PURE__*/_jsxs(SettingsListGroup, {
158
156
  title: t('accountCenter.sections.accountManagement') || 'Account Management',
159
- children: /*#__PURE__*/_jsx(GroupedSection, {
160
- items: useMemo(() => [{
161
- id: 'overview',
162
- icon: 'account-circle',
163
- iconColor: colors.iconSecurity,
164
- title: t('accountCenter.items.accountOverview.title') || 'Account Overview',
165
- subtitle: t('accountCenter.items.accountOverview.subtitle') || 'Complete account information',
166
- onPress: () => navigate?.('AccountOverview')
167
- }, {
168
- id: 'settings',
169
- icon: 'cog',
170
- iconColor: colors.iconData,
171
- title: t('accountCenter.items.editProfile.title') || 'Edit Profile',
172
- subtitle: t('accountCenter.items.editProfile.subtitle') || 'Manage your profile and preferences',
173
- onPress: () => navigate?.('AccountSettings')
174
- }, {
175
- id: 'sessions',
176
- icon: 'shield-check',
177
- iconColor: colors.iconSecurity,
178
- title: t('accountCenter.items.manageSessions.title') || 'Manage Sessions',
179
- subtitle: t('accountCenter.items.manageSessions.subtitle') || 'Security and active devices',
180
- onPress: () => navigate?.('SessionManagement')
181
- }, {
182
- id: 'files',
183
- icon: 'folder',
184
- iconColor: colors.iconStorage,
185
- title: t('accountCenter.items.fileManagement.title') || 'File Management',
186
- subtitle: t('accountCenter.items.fileManagement.subtitle') || 'Upload, download, and manage your files',
187
- onPress: () => navigate?.('FileManagement')
188
- }, {
189
- id: 'premium',
190
- icon: 'star',
191
- iconColor: colors.iconPayments,
192
- title: t('accountCenter.items.premium.title') || 'Oxy+ Subscriptions',
193
- subtitle: user?.isPremium ? t('accountCenter.items.premium.manage') || 'Manage your premium plan' : t('accountCenter.items.premium.upgrade') || 'Upgrade to premium features',
194
- onPress: () => navigate?.('PremiumSubscription')
195
- }, ...(user?.isPremium ? [{
196
- id: 'billing',
197
- icon: 'card',
198
- iconColor: colors.iconPersonalInfo,
199
- title: t('accountCenter.items.billing.title') || 'Billing Management',
200
- subtitle: t('accountCenter.items.billing.subtitle') || 'Payment methods and invoices',
201
- onPress: () => navigate?.('PaymentGateway')
202
- }] : [])], [user?.isPremium, navigate, t, colors])
203
- })
204
- }), sessions && sessions.length > 1 && /*#__PURE__*/_jsx(Section, {
157
+ children: [/*#__PURE__*/_jsx(SettingsListItem, {
158
+ icon: /*#__PURE__*/_jsx(SettingsIcon, {
159
+ name: "account-circle",
160
+ color: colors.iconSecurity
161
+ }),
162
+ title: t('accountCenter.items.accountOverview.title') || 'Account Overview',
163
+ description: t('accountCenter.items.accountOverview.subtitle') || 'Complete account information',
164
+ onPress: () => navigate?.('AccountOverview')
165
+ }), /*#__PURE__*/_jsx(SettingsListItem, {
166
+ icon: /*#__PURE__*/_jsx(SettingsIcon, {
167
+ name: "cog",
168
+ color: colors.iconData
169
+ }),
170
+ title: t('accountCenter.items.editProfile.title') || 'Edit Profile',
171
+ description: t('accountCenter.items.editProfile.subtitle') || 'Manage your profile and preferences',
172
+ onPress: () => navigate?.('AccountSettings')
173
+ }), /*#__PURE__*/_jsx(SettingsListItem, {
174
+ icon: /*#__PURE__*/_jsx(SettingsIcon, {
175
+ name: "shield-check",
176
+ color: colors.iconSecurity
177
+ }),
178
+ title: t('accountCenter.items.manageSessions.title') || 'Manage Sessions',
179
+ description: t('accountCenter.items.manageSessions.subtitle') || 'Security and active devices',
180
+ onPress: () => navigate?.('SessionManagement')
181
+ }), /*#__PURE__*/_jsx(SettingsListItem, {
182
+ icon: /*#__PURE__*/_jsx(SettingsIcon, {
183
+ name: "folder",
184
+ color: colors.iconStorage
185
+ }),
186
+ title: t('accountCenter.items.fileManagement.title') || 'File Management',
187
+ description: t('accountCenter.items.fileManagement.subtitle') || 'Upload, download, and manage your files',
188
+ onPress: () => navigate?.('FileManagement')
189
+ }), /*#__PURE__*/_jsx(SettingsListItem, {
190
+ icon: /*#__PURE__*/_jsx(SettingsIcon, {
191
+ name: "star",
192
+ color: colors.iconPayments
193
+ }),
194
+ title: t('accountCenter.items.premium.title') || 'Oxy+ Subscriptions',
195
+ description: user?.isPremium ? t('accountCenter.items.premium.manage') || 'Manage your premium plan' : t('accountCenter.items.premium.upgrade') || 'Upgrade to premium features',
196
+ onPress: () => navigate?.('PremiumSubscription')
197
+ }), user?.isPremium ? /*#__PURE__*/_jsx(SettingsListItem, {
198
+ icon: /*#__PURE__*/_jsx(SettingsIcon, {
199
+ name: "credit-card",
200
+ color: colors.iconPersonalInfo
201
+ }),
202
+ title: t('accountCenter.items.billing.title') || 'Billing Management',
203
+ description: t('accountCenter.items.billing.subtitle') || 'Payment methods and invoices',
204
+ onPress: () => navigate?.('PaymentGateway')
205
+ }) : null]
206
+ }), sessions && sessions.length > 1 && /*#__PURE__*/_jsxs(SettingsListGroup, {
205
207
  title: t('accountCenter.sections.multiAccount') || 'Multi-Account',
206
- children: /*#__PURE__*/_jsx(GroupedSection, {
207
- items: useMemo(() => [{
208
- id: 'switch',
209
- icon: 'account-group',
210
- iconColor: colors.iconStorage,
211
- title: t('accountCenter.items.switchAccount.title') || 'Switch Account',
212
- subtitle: t('accountCenter.items.switchAccount.subtitle', {
213
- count: sessions.length
214
- }) || `${sessions.length} accounts available`,
215
- onPress: () => navigate?.('AccountSwitcher')
216
- }, {
217
- id: 'add',
218
- icon: 'account-plus',
219
- iconColor: colors.iconPersonalInfo,
220
- title: t('accountCenter.items.addAccount.title') || 'Add Another Account',
221
- subtitle: t('accountCenter.items.addAccount.subtitle') || 'Sign in with a different account',
222
- onPress: () => navigate?.('OxyAuth')
223
- }], [sessions.length, navigate, t, colors])
224
- })
225
- }), (!sessions || sessions.length <= 1) && /*#__PURE__*/_jsx(Section, {
208
+ children: [/*#__PURE__*/_jsx(SettingsListItem, {
209
+ icon: /*#__PURE__*/_jsx(SettingsIcon, {
210
+ name: "account-group",
211
+ color: colors.iconStorage
212
+ }),
213
+ title: t('accountCenter.items.switchAccount.title') || 'Switch Account',
214
+ description: t('accountCenter.items.switchAccount.subtitle', {
215
+ count: sessions.length
216
+ }) || `${sessions.length} accounts available`,
217
+ onPress: () => navigate?.('AccountSwitcher')
218
+ }), /*#__PURE__*/_jsx(SettingsListItem, {
219
+ icon: /*#__PURE__*/_jsx(SettingsIcon, {
220
+ name: "account-plus",
221
+ color: colors.iconPersonalInfo
222
+ }),
223
+ title: t('accountCenter.items.addAccount.title') || 'Add Another Account',
224
+ description: t('accountCenter.items.addAccount.subtitle') || 'Sign in with a different account',
225
+ onPress: () => navigate?.('OxyAuth')
226
+ })]
227
+ }), (!sessions || sessions.length <= 1) && /*#__PURE__*/_jsx(SettingsListGroup, {
226
228
  title: t('accountCenter.sections.addAccount') || 'Add Account',
227
- children: /*#__PURE__*/_jsx(GroupedSection, {
228
- items: useMemo(() => [{
229
- id: 'add',
230
- icon: 'account-plus',
231
- iconColor: colors.iconPersonalInfo,
232
- title: t('accountCenter.items.addAccount.title') || 'Add Another Account',
233
- subtitle: t('accountCenter.items.addAccount.subtitle') || 'Sign in with a different account',
234
- onPress: () => navigate?.('OxyAuth')
235
- }], [navigate, t, colors])
229
+ children: /*#__PURE__*/_jsx(SettingsListItem, {
230
+ icon: /*#__PURE__*/_jsx(SettingsIcon, {
231
+ name: "account-plus",
232
+ color: colors.iconPersonalInfo
233
+ }),
234
+ title: t('accountCenter.items.addAccount.title') || 'Add Another Account',
235
+ description: t('accountCenter.items.addAccount.subtitle') || 'Sign in with a different account',
236
+ onPress: () => navigate?.('OxyAuth')
236
237
  })
237
- }), /*#__PURE__*/_jsx(Section, {
238
+ }), /*#__PURE__*/_jsxs(SettingsListGroup, {
238
239
  title: t('accountCenter.sections.moreOptions') || 'More Options',
239
- children: /*#__PURE__*/_jsx(GroupedSection, {
240
- items: useMemo(() => [...(Platform.OS !== 'web' ? [{
241
- id: 'notifications',
242
- icon: 'bell',
243
- iconColor: colors.iconStorage,
244
- title: t('accountCenter.items.notifications.title') || 'Notifications',
245
- subtitle: t('accountCenter.items.notifications.subtitle') || 'Manage notification settings',
246
- onPress: () => navigate?.('AccountSettings', {
247
- activeTab: 'notifications'
248
- })
249
- }] : []), {
250
- id: 'language',
251
- icon: 'translate',
252
- iconColor: colors.iconPersonalInfo,
253
- title: t('language.title') || 'Language',
254
- subtitle: t('language.subtitle') || 'Choose your preferred language',
255
- onPress: () => navigate?.('LanguageSelector')
256
- }, {
257
- id: 'help',
258
- icon: 'help-circle',
259
- iconColor: colors.iconSecurity,
260
- title: t('accountOverview.items.help.title') || 'Help & Support',
261
- subtitle: t('accountOverview.items.help.subtitle') || 'Get help and contact support',
262
- onPress: () => navigate?.('HelpSupport')
263
- }, {
264
- id: 'appinfo',
265
- icon: 'information',
266
- iconColor: '#8E8E93',
267
- title: t('accountCenter.items.appInfo.title') || 'App Information',
268
- subtitle: t('accountCenter.items.appInfo.subtitle') || 'Version and system details',
269
- onPress: () => navigate?.('AppInfo')
270
- }], [navigate, t, colors, Platform.OS])
271
- })
272
- }), /*#__PURE__*/_jsx(Section, {
273
- children: /*#__PURE__*/_jsx(GroupedItem, {
274
- icon: "logout",
275
- iconColor: dangerColor,
240
+ children: [Platform.OS !== 'web' ? /*#__PURE__*/_jsx(SettingsListItem, {
241
+ icon: /*#__PURE__*/_jsx(SettingsIcon, {
242
+ name: "bell",
243
+ color: colors.iconStorage
244
+ }),
245
+ title: t('accountCenter.items.notifications.title') || 'Notifications',
246
+ description: t('accountCenter.items.notifications.subtitle') || 'Manage notification settings',
247
+ onPress: () => navigate?.('AccountSettings', {
248
+ activeTab: 'notifications'
249
+ })
250
+ }) : null, /*#__PURE__*/_jsx(SettingsListItem, {
251
+ icon: /*#__PURE__*/_jsx(SettingsIcon, {
252
+ name: "translate",
253
+ color: colors.iconPersonalInfo
254
+ }),
255
+ title: t('language.title') || 'Language',
256
+ description: t('language.subtitle') || 'Choose your preferred language',
257
+ onPress: () => navigate?.('LanguageSelector')
258
+ }), /*#__PURE__*/_jsx(SettingsListItem, {
259
+ icon: /*#__PURE__*/_jsx(SettingsIcon, {
260
+ name: "help-circle",
261
+ color: colors.iconSecurity
262
+ }),
263
+ title: t('accountOverview.items.help.title') || 'Help & Support',
264
+ description: t('accountOverview.items.help.subtitle') || 'Get help and contact support',
265
+ onPress: () => navigate?.('HelpSupport')
266
+ }), /*#__PURE__*/_jsx(SettingsListItem, {
267
+ icon: /*#__PURE__*/_jsx(SettingsIcon, {
268
+ name: "information",
269
+ color: "#8E8E93"
270
+ }),
271
+ title: t('accountCenter.items.appInfo.title') || 'App Information',
272
+ description: t('accountCenter.items.appInfo.subtitle') || 'Version and system details',
273
+ onPress: () => navigate?.('AppInfo')
274
+ })]
275
+ }), /*#__PURE__*/_jsx(SettingsListGroup, {
276
+ children: /*#__PURE__*/_jsx(SettingsListItem, {
277
+ icon: /*#__PURE__*/_jsx(SettingsIcon, {
278
+ name: "logout",
279
+ color: dangerColor
280
+ }),
276
281
  title: isLoading ? t('accountCenter.signingOut') || 'Signing out...' : t('common.actions.signOut') || 'Sign Out',
277
282
  onPress: confirmLogout,
278
- isFirst: true,
279
- isLast: true,
283
+ destructive: true,
280
284
  showChevron: false,
281
285
  disabled: isLoading,
282
- customContent: isLoading ? /*#__PURE__*/_jsx(ActivityIndicator, {
286
+ rightElement: isLoading ? /*#__PURE__*/_jsx(ActivityIndicator, {
283
287
  color: dangerColor,
284
- size: "small",
285
- style: {
286
- marginRight: 16
287
- }
288
- }) : null
288
+ size: "small"
289
+ }) : undefined
289
290
  })
290
291
  }), /*#__PURE__*/_jsx(View, {
291
292
  style: styles.versionContainer,