@umituz/react-native-settings 2.4.1 → 3.0.1

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 (129) hide show
  1. package/package.json +5 -13
  2. package/src/presentation/components/CloudSyncSetting.tsx +2 -2
  3. package/src/presentation/components/SettingItem.tsx +4 -4
  4. package/src/presentation/components/StorageClearSetting.tsx +2 -2
  5. package/src/presentation/components/UserProfileHeader.tsx +3 -3
  6. package/src/presentation/screens/components/AboutLegalSection.tsx +3 -3
  7. package/src/presentation/screens/components/AppearanceSection.tsx +2 -2
  8. package/src/presentation/screens/components/LanguageSection.tsx +2 -2
  9. package/src/presentation/screens/components/NotificationsSection.tsx +3 -3
  10. package/lib/__tests__/setup.d.ts +0 -5
  11. package/lib/__tests__/setup.d.ts.map +0 -1
  12. package/lib/__tests__/setup.js +0 -143
  13. package/lib/__tests__/setup.js.map +0 -1
  14. package/lib/domain/repositories/ISettingsRepository.d.ts +0 -51
  15. package/lib/domain/repositories/ISettingsRepository.d.ts.map +0 -1
  16. package/lib/domain/repositories/ISettingsRepository.js +0 -8
  17. package/lib/domain/repositories/ISettingsRepository.js.map +0 -1
  18. package/lib/index.d.ts +0 -35
  19. package/lib/index.d.ts.map +0 -1
  20. package/lib/index.js +0 -32
  21. package/lib/index.js.map +0 -1
  22. package/lib/infrastructure/storage/SettingsStore.d.ts +0 -36
  23. package/lib/infrastructure/storage/SettingsStore.d.ts.map +0 -1
  24. package/lib/infrastructure/storage/SettingsStore.js +0 -144
  25. package/lib/infrastructure/storage/SettingsStore.js.map +0 -1
  26. package/lib/presentation/components/CloudSyncSetting.d.ts +0 -16
  27. package/lib/presentation/components/CloudSyncSetting.d.ts.map +0 -1
  28. package/lib/presentation/components/CloudSyncSetting.js +0 -30
  29. package/lib/presentation/components/CloudSyncSetting.js.map +0 -1
  30. package/lib/presentation/components/DisclaimerCard.d.ts +0 -15
  31. package/lib/presentation/components/DisclaimerCard.d.ts.map +0 -1
  32. package/lib/presentation/components/DisclaimerCard.js +0 -73
  33. package/lib/presentation/components/DisclaimerCard.js.map +0 -1
  34. package/lib/presentation/components/DisclaimerModal.d.ts +0 -13
  35. package/lib/presentation/components/DisclaimerModal.d.ts.map +0 -1
  36. package/lib/presentation/components/DisclaimerModal.js +0 -62
  37. package/lib/presentation/components/DisclaimerModal.js.map +0 -1
  38. package/lib/presentation/components/DisclaimerSetting.d.ts +0 -39
  39. package/lib/presentation/components/DisclaimerSetting.d.ts.map +0 -1
  40. package/lib/presentation/components/DisclaimerSetting.js +0 -59
  41. package/lib/presentation/components/DisclaimerSetting.js.map +0 -1
  42. package/lib/presentation/components/SettingItem.d.ts +0 -45
  43. package/lib/presentation/components/SettingItem.d.ts.map +0 -1
  44. package/lib/presentation/components/SettingItem.js +0 -113
  45. package/lib/presentation/components/SettingItem.js.map +0 -1
  46. package/lib/presentation/components/SettingsErrorBoundary.d.ts +0 -23
  47. package/lib/presentation/components/SettingsErrorBoundary.d.ts.map +0 -1
  48. package/lib/presentation/components/SettingsErrorBoundary.js +0 -73
  49. package/lib/presentation/components/SettingsErrorBoundary.js.map +0 -1
  50. package/lib/presentation/components/SettingsFooter.d.ts +0 -11
  51. package/lib/presentation/components/SettingsFooter.d.ts.map +0 -1
  52. package/lib/presentation/components/SettingsFooter.js +0 -31
  53. package/lib/presentation/components/SettingsFooter.js.map +0 -1
  54. package/lib/presentation/components/SettingsSection.d.ts +0 -13
  55. package/lib/presentation/components/SettingsSection.d.ts.map +0 -1
  56. package/lib/presentation/components/SettingsSection.js +0 -37
  57. package/lib/presentation/components/SettingsSection.js.map +0 -1
  58. package/lib/presentation/components/StorageClearSetting.d.ts +0 -16
  59. package/lib/presentation/components/StorageClearSetting.d.ts.map +0 -1
  60. package/lib/presentation/components/StorageClearSetting.js +0 -21
  61. package/lib/presentation/components/StorageClearSetting.js.map +0 -1
  62. package/lib/presentation/components/UserProfileHeader.d.ts +0 -30
  63. package/lib/presentation/components/UserProfileHeader.d.ts.map +0 -1
  64. package/lib/presentation/components/UserProfileHeader.js +0 -119
  65. package/lib/presentation/components/UserProfileHeader.js.map +0 -1
  66. package/lib/presentation/screens/AppearanceScreen.d.ts +0 -8
  67. package/lib/presentation/screens/AppearanceScreen.d.ts.map +0 -1
  68. package/lib/presentation/screens/AppearanceScreen.js +0 -8
  69. package/lib/presentation/screens/AppearanceScreen.js.map +0 -1
  70. package/lib/presentation/screens/SettingsScreen.d.ts +0 -38
  71. package/lib/presentation/screens/SettingsScreen.d.ts.map +0 -1
  72. package/lib/presentation/screens/SettingsScreen.js +0 -37
  73. package/lib/presentation/screens/SettingsScreen.js.map +0 -1
  74. package/lib/presentation/screens/components/AboutLegalSection.d.ts +0 -15
  75. package/lib/presentation/screens/components/AboutLegalSection.d.ts.map +0 -1
  76. package/lib/presentation/screens/components/AboutLegalSection.js +0 -28
  77. package/lib/presentation/screens/components/AboutLegalSection.js.map +0 -1
  78. package/lib/presentation/screens/components/AppearanceSection.d.ts +0 -12
  79. package/lib/presentation/screens/components/AppearanceSection.d.ts.map +0 -1
  80. package/lib/presentation/screens/components/AppearanceSection.js +0 -21
  81. package/lib/presentation/screens/components/AppearanceSection.js.map +0 -1
  82. package/lib/presentation/screens/components/LanguageSection.d.ts +0 -12
  83. package/lib/presentation/screens/components/LanguageSection.d.ts.map +0 -1
  84. package/lib/presentation/screens/components/LanguageSection.js +0 -26
  85. package/lib/presentation/screens/components/LanguageSection.js.map +0 -1
  86. package/lib/presentation/screens/components/NotificationsSection.d.ts +0 -12
  87. package/lib/presentation/screens/components/NotificationsSection.d.ts.map +0 -1
  88. package/lib/presentation/screens/components/NotificationsSection.js +0 -58
  89. package/lib/presentation/screens/components/NotificationsSection.js.map +0 -1
  90. package/lib/presentation/screens/components/SettingsContent.d.ts +0 -36
  91. package/lib/presentation/screens/components/SettingsContent.d.ts.map +0 -1
  92. package/lib/presentation/screens/components/SettingsContent.js +0 -81
  93. package/lib/presentation/screens/components/SettingsContent.js.map +0 -1
  94. package/lib/presentation/screens/components/SettingsHeader.d.ts +0 -12
  95. package/lib/presentation/screens/components/SettingsHeader.d.ts.map +0 -1
  96. package/lib/presentation/screens/components/SettingsHeader.js +0 -59
  97. package/lib/presentation/screens/components/SettingsHeader.js.map +0 -1
  98. package/lib/presentation/screens/components/index.d.ts +0 -9
  99. package/lib/presentation/screens/components/index.d.ts.map +0 -1
  100. package/lib/presentation/screens/components/index.js +0 -9
  101. package/lib/presentation/screens/components/index.js.map +0 -1
  102. package/lib/presentation/screens/hooks/useFeatureDetection.d.ts +0 -21
  103. package/lib/presentation/screens/hooks/useFeatureDetection.d.ts.map +0 -1
  104. package/lib/presentation/screens/hooks/useFeatureDetection.js +0 -82
  105. package/lib/presentation/screens/hooks/useFeatureDetection.js.map +0 -1
  106. package/lib/presentation/screens/types/CustomSection.d.ts +0 -19
  107. package/lib/presentation/screens/types/CustomSection.d.ts.map +0 -1
  108. package/lib/presentation/screens/types/CustomSection.js +0 -6
  109. package/lib/presentation/screens/types/CustomSection.js.map +0 -1
  110. package/lib/presentation/screens/types/ExtendedConfig.d.ts +0 -68
  111. package/lib/presentation/screens/types/ExtendedConfig.d.ts.map +0 -1
  112. package/lib/presentation/screens/types/ExtendedConfig.js +0 -6
  113. package/lib/presentation/screens/types/ExtendedConfig.js.map +0 -1
  114. package/lib/presentation/screens/types/FeatureConfig.d.ts +0 -95
  115. package/lib/presentation/screens/types/FeatureConfig.d.ts.map +0 -1
  116. package/lib/presentation/screens/types/FeatureConfig.js +0 -6
  117. package/lib/presentation/screens/types/FeatureConfig.js.map +0 -1
  118. package/lib/presentation/screens/types/SettingsConfig.d.ts +0 -97
  119. package/lib/presentation/screens/types/SettingsConfig.d.ts.map +0 -1
  120. package/lib/presentation/screens/types/SettingsConfig.js +0 -6
  121. package/lib/presentation/screens/types/SettingsConfig.js.map +0 -1
  122. package/lib/presentation/screens/types/index.d.ts +0 -10
  123. package/lib/presentation/screens/types/index.d.ts.map +0 -1
  124. package/lib/presentation/screens/types/index.js +0 -6
  125. package/lib/presentation/screens/types/index.js.map +0 -1
  126. package/lib/presentation/screens/utils/normalizeConfig.d.ts +0 -44
  127. package/lib/presentation/screens/utils/normalizeConfig.d.ts.map +0 -1
  128. package/lib/presentation/screens/utils/normalizeConfig.js +0 -38
  129. package/lib/presentation/screens/utils/normalizeConfig.js.map +0 -1
@@ -1,113 +0,0 @@
1
- /**
2
- * Setting Item Component
3
- * Single Responsibility: Render a single settings item
4
- * Material Design 3 style with hover effects and modern spacing
5
- */
6
- import React from "react";
7
- import { View, Text, Pressable, StyleSheet, Switch } from "react-native";
8
- import { ChevronRight } from "lucide-react-native";
9
- import { useAppDesignTokens } from "@umituz/react-native-design-system-theme";
10
- export const SettingItem = ({ icon: Icon, title, value, onPress, showSwitch = false, switchValue, onSwitchChange, isLast = false, iconColor, titleColor, testID, disabled = false, switchThumbColor, switchTrackColors, }) => {
11
- const tokens = useAppDesignTokens();
12
- const colors = tokens.colors;
13
- const spacing = tokens.spacing;
14
- return (<>
15
- <Pressable style={({ pressed }) => [
16
- styles.container,
17
- {
18
- backgroundColor: pressed && !disabled && !showSwitch
19
- ? `${colors.primary}08`
20
- : 'transparent',
21
- },
22
- ]} onPress={onPress} disabled={showSwitch || disabled} testID={testID}>
23
- <View style={styles.content}>
24
- <View style={[
25
- styles.iconContainer,
26
- {
27
- backgroundColor: iconColor
28
- ? `${iconColor}15`
29
- : `${colors.primary}15`,
30
- },
31
- ]}>
32
- <Icon size={24} color={iconColor || colors.primary}/>
33
- </View>
34
- <View style={styles.textContainer}>
35
- <Text style={[
36
- styles.title,
37
- {
38
- color: disabled
39
- ? colors.textSecondary
40
- : titleColor || colors.textPrimary,
41
- opacity: disabled ? 0.5 : 1,
42
- },
43
- ]} numberOfLines={1}>
44
- {title}
45
- </Text>
46
- {value && !showSwitch && (<Text style={[styles.value, { color: colors.textSecondary }]} numberOfLines={2}>
47
- {value}
48
- </Text>)}
49
- </View>
50
- </View>
51
-
52
- <View style={styles.rightContainer}>
53
- {showSwitch ? (<Switch value={switchValue} onValueChange={onSwitchChange} trackColor={switchTrackColors || {
54
- false: `${colors.textSecondary}30`,
55
- true: colors.primary,
56
- }} thumbColor={switchThumbColor || "#FFFFFF"} ios_backgroundColor={`${colors.textSecondary}30`}/>) : (<ChevronRight size={20} color={colors.textSecondary}/>)}
57
- </View>
58
- </Pressable>
59
-
60
- {!isLast && (<View style={[
61
- styles.divider,
62
- { backgroundColor: `${colors.textSecondary}20` },
63
- ]}/>)}
64
- </>);
65
- };
66
- const styles = StyleSheet.create({
67
- container: {
68
- flexDirection: "row",
69
- alignItems: "center",
70
- justifyContent: "space-between",
71
- paddingHorizontal: 16,
72
- paddingVertical: 16,
73
- minHeight: 72,
74
- },
75
- content: {
76
- flexDirection: "row",
77
- alignItems: "center",
78
- flex: 1,
79
- },
80
- iconContainer: {
81
- width: 48,
82
- height: 48,
83
- borderRadius: 12,
84
- justifyContent: "center",
85
- alignItems: "center",
86
- marginRight: 16,
87
- },
88
- textContainer: {
89
- flex: 1,
90
- minWidth: 0,
91
- },
92
- title: {
93
- fontSize: 16,
94
- fontWeight: "500",
95
- lineHeight: 20,
96
- },
97
- value: {
98
- fontSize: 14,
99
- fontWeight: "400",
100
- marginTop: 4,
101
- lineHeight: 18,
102
- },
103
- rightContainer: {
104
- flexDirection: "row",
105
- alignItems: "center",
106
- gap: 8,
107
- },
108
- divider: {
109
- height: 1,
110
- marginLeft: 80,
111
- },
112
- });
113
- //# sourceMappingURL=SettingItem.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SettingItem.js","sourceRoot":"","sources":["../../../src/presentation/components/SettingItem.tsx"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AACzE,OAAO,EAAE,YAAY,EAAmB,MAAM,qBAAqB,CAAC;AACpE,O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d,aAAa,EAAE,KAAK;QACpB,UAAU,EAAE,QAAQ;QACpB,GAAG,EAAE,CAAC;KACP;IACD,OAAO,EAAE;QACP,MAAM,EAAE,CAAC;QACT,UAAU,EAAE,EAAE;KACf;CACF,CAAC,CAAC"}
@@ -1,23 +0,0 @@
1
- /**
2
- * Settings Error Boundary Component
3
- * Catches and handles errors in settings components
4
- */
5
- import React, { Component, ReactNode } from 'react';
6
- interface Props {
7
- children: ReactNode;
8
- fallback?: ReactNode;
9
- fallbackTitle?: string;
10
- fallbackMessage?: string;
11
- }
12
- interface State {
13
- hasError: boolean;
14
- error?: Error;
15
- }
16
- export declare class SettingsErrorBoundary extends Component<Props, State> {
17
- constructor(props: Props);
18
- static getDerivedStateFromError(error: Error): State;
19
- componentDidCatch(error: Error, errorInfo: React.ErrorInfo): void;
20
- render(): string | number | boolean | Iterable<React.ReactNode> | React.JSX.Element | null | undefined;
21
- }
22
- export {};
23
- //# sourceMappingURL=SettingsErrorBoundary.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SettingsErrorBoundary.d.ts","sourceRoot":"","sources":["../../../src/presentation/components/SettingsErrorBoundary.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAKpD,UAAU,KAAK;IACb,QAAQ,EAAE,SAAS,CAAC;IACpB,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED,UAAU,KAAK;IACb,QAAQ,EAAE,OAAO,CAAC;IAClB,KAAK,CAAC,EAAE,KAAK,CAAC;CACf;AAED,qBAAa,qBAAsB,SAAQ,SAAS,CAAC,KAAK,EAAE,KAAK,CAAC;gBACpD,KAAK,EAAE,KAAK;IAKxB,MAAM,CAAC,wBAAwB,CAAC,KAAK,EAAE,KAAK,GAAG,KAAK;IAI3C,iBAAiB,CAAC,KAAK,EAAE,KAAK,EAAE,SAAS,EAAE,KAAK,CAAC,SAAS;IAM1D,MAAM;CAiBhB"}
@@ -1,73 +0,0 @@
1
- /**
2
- * Settings Error Boundary Component
3
- * Catches and handles errors in settings components
4
- */
5
- import React, { Component } from 'react';
6
- import { View, StyleSheet } from 'react-native';
7
- import { useAppDesignTokens } from '@umituz/react-native-design-system-theme';
8
- import { AtomicText, AtomicIcon } from '@umituz/react-native-design-system-atoms';
9
- export class SettingsErrorBoundary extends Component {
10
- constructor(props) {
11
- super(props);
12
- this.state = { hasError: false };
13
- }
14
- static getDerivedStateFromError(error) {
15
- return { hasError: true, error };
16
- }
17
- componentDidCatch(error, errorInfo) {
18
- if (__DEV__) {
19
- console.error('Settings Error Boundary caught an error:', error, errorInfo);
20
- }
21
- }
22
- render() {
23
- if (this.state.hasError) {
24
- if (this.props.fallback) {
25
- return this.props.fallback;
26
- }
27
- return (<ErrorBoundaryFallback error={this.state.error} fallbackTitle={this.props.fallbackTitle} fallbackMessage={this.props.fallbackMessage}/>);
28
- }
29
- return this.props.children;
30
- }
31
- }
32
- const ErrorBoundaryFallback = ({ error, fallbackTitle = "error_boundary.title", fallbackMessage = "error_boundary.message" }) => {
33
- const tokens = useAppDesignTokens();
34
- const title = __DEV__ && error?.message ? "error_boundary.dev_title" : fallbackTitle;
35
- const message = __DEV__ && error?.message
36
- ? `error_boundary.dev_message: ${error.message}`
37
- : fallbackMessage;
38
- return (<View style={[styles.container, { backgroundColor: tokens.colors.backgroundPrimary }]}>
39
- <View style={[styles.content, { backgroundColor: tokens.colors.surface }]}>
40
- <AtomicIcon name="AlertTriangle" color="warning" size="lg" style={styles.icon}/>
41
- <AtomicText type="headlineSmall" color="primary" style={styles.title}>
42
- {title}
43
- </AtomicText>
44
- <AtomicText type="bodyMedium" color="secondary" style={styles.message}>
45
- {message}
46
- </AtomicText>
47
- </View>
48
- </View>);
49
- };
50
- const styles = StyleSheet.create({
51
- container: {
52
- flex: 1,
53
- padding: 16,
54
- justifyContent: 'center',
55
- },
56
- content: {
57
- alignItems: 'center',
58
- padding: 24,
59
- borderRadius: 12,
60
- },
61
- icon: {
62
- marginBottom: 16,
63
- },
64
- title: {
65
- marginBottom: 8,
66
- textAlign: 'center',
67
- },
68
- message: {
69
- textAlign: 'center',
70
- lineHeight: 20,
71
- },
72
- });
73
- //# sourceMappingURL=SettingsErrorBoundary.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SettingsErrorBoundary.js","sourceRoot":"","sources":["../../../src/presentation/components/SettingsErrorBoundary.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,EAAE,SAAS,EAAa,MAAM,OAAO,CAAC;AACpD,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAChD,OAAO,EAAE,kBAAkB,EAAE,MAAM,0CAA0C,CAAC;AAC9E,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,0CAA0C,CAAC;AAclF,MAAM,OAAO,qBAAsB,SAAQ,SAAuB;IAChE,YAAY,KAAY;QACtB,KAAK,CAAC,KAAK,CAAC,CAAC;QACb,IAAI,CAAC,KAAK,GAAG,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;IACnC,CAAC;IAED,MAAM,CAAC,wBAAwB,CAAC,KAAY;QAC1C,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;IACnC,CAAC;IAEQ,iBAAiB,CAAC,KAAY,EAAE,SAA0B;QACjE,IAAI,OAAO,EAAE,CAAC;YACZ,OAAO,CAAC,KAAK,CAAC,0CAA0C,EAAE,KAAK,EAAE,SAAS,CAAC,CAAC;QAC9E,CAAC;IACH,CAAC;IAEQ,MAAM;QACb,IAAI,IAAI,CAAC,KAAK,CAAC,QAAQ,EAAE,CAAC;YACxB,IAAI,IAAI,CAAC,KAAK,CAAC,QAAQ,EAAE,CAAC;gBACxB,OAAO,IAAI,CAAC,KAAK,C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pB,KAAK,CAAC,SAAS,CACf,KAAK,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAEpB;UAAA,CAAC,KAAK,CACR;QAAA,EAAE,UAAU,CACZ;QAAA,CAAC,UAAU,CACT,IAAI,CAAC,YAAY,CACjB,KAAK,CAAC,WAAW,CACjB,KAAK,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAEtB;UAAA,CAAC,OAAO,CACV;QAAA,EAAE,UAAU,CACd;MAAA,EAAE,IAAI,CACR;IAAA,EAAE,IAAI,CAAC,CACR,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC;IAC/B,SAAS,EAAE;QACT,IAAI,EAAE,CAAC;QACP,OAAO,EAAE,EAAE;QACX,cAAc,EAAE,QAAQ;KACzB;IACD,OAAO,EAAE;QACP,UAAU,EAAE,QAAQ;QACpB,OAAO,EAAE,EAAE;QACX,YAAY,EAAE,EAAE;KACjB;IACD,IAAI,EAAE;QACJ,YAAY,EAAE,EAAE;KACjB;IACD,KAAK,EAAE;QACL,YAAY,EAAE,CAAC;QACf,SAAS,EAAE,QAAQ;KACpB;IACD,OAAO,EAAE;QACP,SAAS,EAAE,QAAQ;QACnB,UAAU,EAAE,EAAE;KACf;CACF,CAAC,CAAC"}
@@ -1,11 +0,0 @@
1
- /**
2
- * Settings Footer Component
3
- * Single Responsibility: Display app version information
4
- */
5
- import React from "react";
6
- export interface SettingsFooterProps {
7
- /** Custom version text (optional) */
8
- versionText?: string;
9
- }
10
- export declare const SettingsFooter: React.FC<SettingsFooterProps>;
11
- //# sourceMappingURL=SettingsFooter.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SettingsFooter.d.ts","sourceRoot":"","sources":["../../../src/presentation/components/SettingsFooter.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,MAAM,WAAW,mBAAmB;IAClC,qCAAqC;IACrC,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAkBxD,CAAC"}
@@ -1,31 +0,0 @@
1
- /**
2
- * Settings Footer Component
3
- * Single Responsibility: Display app version information
4
- */
5
- import React from "react";
6
- import { View, Text, StyleSheet } from "react-native";
7
- import { useLocalization } from "@umituz/react-native-localization";
8
- import { useAppDesignTokens } from "@umituz/react-native-design-system-theme";
9
- export const SettingsFooter = ({ versionText, }) => {
10
- const { t } = useLocalization();
11
- const tokens = useAppDesignTokens();
12
- const colors = tokens.colors;
13
- const displayText = versionText ||
14
- `${t("settings.about.version")} ${t("settings.about.versionNumber")}`;
15
- return (<View style={styles.container}>
16
- <Text style={[styles.text, { color: colors.textSecondary }]}>
17
- {displayText}
18
- </Text>
19
- </View>);
20
- };
21
- const styles = StyleSheet.create({
22
- container: {
23
- paddingVertical: 24,
24
- alignItems: "center",
25
- },
26
- text: {
27
- fontSize: 12,
28
- fontWeight: "500",
29
- },
30
- });
31
- //# sourceMappingURL=SettingsFooter.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SettingsFooter.js","sourceRoot":"","sources":["../../../src/presentation/components/SettingsFooter.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AACtD,OAAO,EAAE,eAAe,EAAE,MAAM,mCAAmC,CAAC;AACpE,OAAO,EAAE,kBAAkB,EAAE,MAAM,0CAA0C,CAAC;AAO9E,MAAM,CAAC,MAAM,cAAc,GAAkC,CAAC,EAC5D,WAAW,GACZ,EAAE,EAAE;IACH,MAAM,EAAE,CAAC,EAAE,GAAG,eAAe,EAAE,CAAC;IAChC,MAAM,MAAM,GAAG,kBAAkB,EAAE,CAAC;IACpC,MAAM,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC;IAE7B,MAAM,WAAW,GACf,WAAW;QACX,GAAG,CAAC,CAAC,wBAAwB,CAAC,IAAI,CAAC,CAAC,8BAA8B,CAAC,EAAE,CAAC;IAExE,OAAO,CACL,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC,SAAS,CAAC,CAC5B;MAAA,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,IAAI,EAAE,EAAE,KAAK,EAAE,MAAM,CAAC,aAAa,EAAE,CAAC,CAAC,CAC1D;QAAA,CAAC,WAAW,CACd;MAAA,EAAE,IAAI,CACR;IAAA,EAAE,IAAI,CAAC,CACR,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC;IAC/B,SAAS,EAAE;QACT,eAAe,EAAE,EAAE;QACnB,UAAU,EAAE,QAAQ;KACrB;IACD,IAAI,EAAE;QACJ,QAAQ,EAAE,EAAE;QACZ,UAAU,EAAE,KAAK;KAClB;CACF,CAAC,CAAC"}
@@ -1,13 +0,0 @@
1
- /**
2
- * Settings Section Component
3
- * Single Responsibility: Render a settings section with title and container
4
- */
5
- import React from "react";
6
- export interface SettingsSectionProps {
7
- /** Section title */
8
- title: string;
9
- /** Section content */
10
- children: React.ReactNode;
11
- }
12
- export declare const SettingsSection: React.FC<SettingsSectionProps>;
13
- //# sourceMappingURL=SettingsSection.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SettingsSection.d.ts","sourceRoot":"","sources":["../../../src/presentation/components/SettingsSection.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,MAAM,WAAW,oBAAoB;IACnC,oBAAoB;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,sBAAsB;IACtB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAED,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,CAiB1D,CAAC"}
@@ -1,37 +0,0 @@
1
- /**
2
- * Settings Section Component
3
- * Single Responsibility: Render a settings section with title and container
4
- */
5
- import React from "react";
6
- import { View, Text, StyleSheet } from "react-native";
7
- import { useAppDesignTokens } from "@umituz/react-native-design-system-theme";
8
- export const SettingsSection = ({ title, children, }) => {
9
- const tokens = useAppDesignTokens();
10
- const colors = tokens.colors;
11
- return (<View style={[styles.container, { backgroundColor: colors.surface }]}>
12
- <Text style={[styles.title, { color: colors.textPrimary }]}>
13
- {title}
14
- </Text>
15
- <View style={styles.content}>
16
- {children}
17
- </View>
18
- </View>);
19
- };
20
- const styles = StyleSheet.create({
21
- container: {
22
- marginBottom: 16,
23
- borderRadius: 12,
24
- overflow: "hidden",
25
- },
26
- title: {
27
- fontSize: 18,
28
- fontWeight: "600",
29
- paddingHorizontal: 16,
30
- paddingTop: 16,
31
- paddingBottom: 8,
32
- },
33
- content: {
34
- borderRadius: 0,
35
- },
36
- });
37
- //# sourceMappingURL=SettingsSection.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SettingsSection.js","sourceRoot":"","sources":["../../../src/presentation/components/SettingsSection.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AACtD,OAAO,EAAE,kBAAkB,EAAE,MAAM,0CAA0C,CAAC;AAS9E,MAAM,CAAC,MAAM,eAAe,GAAmC,CAAC,EAC9D,KAAK,EACL,QAAQ,GACT,EAAE,EAAE;IACH,MAAM,MAAM,GAAG,kBAAkB,EAAE,CAAC;IACpC,MAAM,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC;IAE7B,OAAO,CACL,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,SAAS,EAAE,EAAE,eAAe,EAAE,MAAM,CAAC,OAAO,EAAE,CAAC,CAAC,CACnE;MAAA,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,EAAE,EAAE,KAAK,EAAE,MAAM,CAAC,WAAW,EAAE,CAAC,CAAC,CACzD;QAAA,CAAC,KAAK,CACR;MAAA,EAAE,IAAI,CACN;MAAA,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAC1B;QAAA,CAAC,QAAQ,CACX;MAAA,EAAE,IAAI,CACR;IAAA,EAAE,IAAI,CAAC,CACR,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC;IAC/B,SAAS,EAAE;QACT,YAAY,EAAE,EAAE;QAChB,YAAY,EAAE,EAAE;QAChB,QAAQ,EAAE,QAAQ;KACnB;IACD,KAAK,EAAE;QACL,QAAQ,EAAE,EAAE;QACZ,UAAU,EAAE,KAAK;QACjB,iBAAiB,EAAE,EAAE;QACrB,UAAU,EAAE,EAAE;QACd,aAAa,EAAE,CAAC;KACjB;IACD,OAAO,EAAE;QACP,YAAY,EAAE,CAAC;KAChB;CACF,CAAC,CAAC"}
@@ -1,16 +0,0 @@
1
- /**
2
- * Storage Clear Setting Component
3
- * Single Responsibility: Display storage clear setting (DEV only)
4
- * Only visible in __DEV__ mode
5
- */
6
- import React from "react";
7
- export interface StorageClearSettingProps {
8
- title?: string;
9
- description?: string;
10
- onPress?: () => void;
11
- iconColor?: string;
12
- titleColor?: string;
13
- isLast?: boolean;
14
- }
15
- export declare const StorageClearSetting: React.FC<StorageClearSettingProps>;
16
- //# sourceMappingURL=StorageClearSetting.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"StorageClearSetting.d.ts","sourceRoot":"","sources":["../../../src/presentation/components/StorageClearSetting.tsx"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,MAAM,WAAW,wBAAwB;IACvC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AAED,eAAO,MAAM,mBAAmB,EAAE,KAAK,CAAC,EAAE,CAAC,wBAAwB,CA6BlE,CAAC"}
@@ -1,21 +0,0 @@
1
- /**
2
- * Storage Clear Setting Component
3
- * Single Responsibility: Display storage clear setting (DEV only)
4
- * Only visible in __DEV__ mode
5
- */
6
- import React from "react";
7
- import { Trash2 } from "lucide-react-native";
8
- import { SettingItem } from "./SettingItem";
9
- export const StorageClearSetting = ({ title, description, onPress, iconColor, titleColor, isLast = false, }) => {
10
- // Default values for DEV mode
11
- const defaultTitle = title || "Clear All Storage";
12
- const defaultDescription = description || "Clear all local storage data (DEV only)";
13
- const defaultIconColor = iconColor || "#EF4444";
14
- const defaultTitleColor = titleColor || "#EF4444";
15
- // Only render in DEV mode
16
- if (!__DEV__) {
17
- return null;
18
- }
19
- return (<SettingItem icon={Trash2} title={defaultTitle} value={defaultDescription} onPress={onPress} iconColor={defaultIconColor} titleColor={defaultTitleColor} isLast={isLast}/>);
20
- };
21
- //# sourceMappingURL=StorageClearSetting.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"StorageClearSetting.js","sourceRoot":"","sources":["../../../src/presentation/components/StorageClearSetting.tsx"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAC7C,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAW5C,MAAM,CAAC,MAAM,mBAAmB,GAAuC,CAAC,EACtE,KAAK,EACL,WAAW,EACX,OAAO,EACP,SAAS,EACT,UAAU,EACV,MAAM,GAAG,KAAK,GACf,EAAE,EAAE;IACH,8BAA8B;IAC9B,MAAM,YAAY,GAAG,KAAK,IAAI,mBAAmB,CAAC;IAClD,MAAM,kBAAkB,GAAG,WAAW,IAAI,yCAAyC,CAAC;IACpF,MAAM,gBAAgB,GAAG,SAAS,IAAI,SAAS,CAAC;IAChD,MAAM,iBAAiB,GAAG,UAAU,IAAI,SAAS,CAAC;IAClD,0BAA0B;IAC1B,IAAI,CAAC,OAAO,EAAE,CAAC;QACb,OAAO,IAAI,CAAC;IACd,CAAC;IAED,OAAO,CACL,CAAC,WAAW,CACV,IAAI,CAAC,CAAC,MAAM,CAAC,CACb,KAAK,CAAC,CAAC,YAAY,CAAC,CACpB,KAAK,CAAC,CAAC,kBAAkB,CAAC,CAC1B,OAAO,CAAC,CAAC,OAAO,CAAC,CACjB,SAAS,CAAC,CAAC,gBAAgB,CAAC,CAC5B,UAAU,CAAC,CAAC,iBAAiB,CAAC,CAC9B,MAAM,CAAC,CAAC,MAAM,CAAC,EACf,CACH,CAAC;AACJ,CAAC,CAAC"}
@@ -1,30 +0,0 @@
1
- /**
2
- * User Profile Header Component
3
- * Displays user avatar, name, and ID
4
- * Works for both guest and authenticated users
5
- */
6
- import React from "react";
7
- export interface UserProfileHeaderProps {
8
- /** User display name */
9
- displayName?: string;
10
- /** User ID */
11
- userId?: string;
12
- /** Whether user is guest */
13
- isGuest?: boolean;
14
- /** Avatar URL (optional) */
15
- avatarUrl?: string;
16
- /** Navigation route for account settings */
17
- accountSettingsRoute?: string;
18
- /** Custom onPress handler */
19
- onPress?: () => void;
20
- /** Custom guest user display name */
21
- guestDisplayName?: string;
22
- /** Custom avatar service URL */
23
- avatarServiceUrl?: string;
24
- /** Default user display name when no displayName provided */
25
- defaultUserDisplayName?: string;
26
- /** Default guest display name */
27
- defaultGuestDisplayName?: string;
28
- }
29
- export declare const UserProfileHeader: React.FC<UserProfileHeaderProps>;
30
- //# sourceMappingURL=UserProfileHeader.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"UserProfileHeader.d.ts","sourceRoot":"","sources":["../../../src/presentation/components/UserProfileHeader.tsx"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAgC,MAAM,OAAO,CAAC;AAOrD,MAAM,WAAW,sBAAsB;IACrC,wBAAwB;IACxB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,cAAc;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,4BAA4B;IAC5B,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,4BAA4B;IAC5B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,4CAA4C;IAC5C,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,6BAA6B;IAC7B,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,qCAAqC;IACrC,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,gCAAgC;IAChC,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,6DAA6D;IAC7D,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,iCAAiC;IACjC,uBAAuB,CAAC,EAAE,MAAM,CAAC;CAClC;AAED,eAAO,MAAM,iBAAiB,EAAE,KAAK,CAAC,EAAE,CAAC,sBAAsB,CAoG9D,CAAC"}
@@ -1,119 +0,0 @@
1
- /**
2
- * User Profile Header Component
3
- * Displays user avatar, name, and ID
4
- * Works for both guest and authenticated users
5
- */
6
- import React, { useState, useCallback } from "react";
7
- import { View, TouchableOpacity, StyleSheet, Image } from "react-native";
8
- import { ChevronRight } from "lucide-react-native";
9
- import { useAppDesignTokens } from "@umituz/react-native-design-system-theme";
10
- import { AtomicText } from "@umituz/react-native-design-system-atoms";
11
- import { useNavigation } from "@react-navigation/native";
12
- export const UserProfileHeader = ({ displayName, userId, isGuest = false, avatarUrl, accountSettingsRoute, onPress, guestDisplayName, avatarServiceUrl, defaultUserDisplayName, defaultGuestDisplayName, }) => {
13
- const tokens = useAppDesignTokens();
14
- const navigation = useNavigation();
15
- const colors = tokens.colors;
16
- const spacing = tokens.spacing;
17
- const [imageError, setImageError] = useState(false);
18
- const finalDisplayName = displayName || (isGuest ? guestDisplayName || defaultGuestDisplayName || "Guest" : defaultUserDisplayName || "User");
19
- const avatarName = isGuest ? guestDisplayName || defaultGuestDisplayName || defaultGuestDisplayName || "Guest" : finalDisplayName;
20
- const defaultAvatarService = avatarServiceUrl || "https://ui-avatars.com/api";
21
- const finalAvatarUrl = (imageError ? null : avatarUrl) ||
22
- `${defaultAvatarService}/?name=${encodeURIComponent(avatarName)}&background=${colors.primary.replace("#", "")}&color=fff&size=64`;
23
- const handlePress = useCallback(() => {
24
- if (onPress) {
25
- onPress();
26
- }
27
- else if (accountSettingsRoute) {
28
- navigation.navigate(accountSettingsRoute);
29
- }
30
- }, [onPress, accountSettingsRoute, navigation]);
31
- const shouldShowChevron = !!(onPress || accountSettingsRoute);
32
- const isPressable = !!(onPress || accountSettingsRoute);
33
- const containerStyle = [
34
- styles.container,
35
- {
36
- backgroundColor: colors.surface,
37
- paddingHorizontal: spacing.md,
38
- paddingVertical: spacing.md,
39
- marginHorizontal: spacing.md,
40
- },
41
- ];
42
- const content = (<>
43
- <View style={styles.content}>
44
- <View style={[styles.avatarContainer, { borderColor: `${colors.primary}30` }]}>
45
- {finalAvatarUrl ? (<Image source={{ uri: finalAvatarUrl }} style={styles.avatar} onError={() => setImageError(true)}/>) : (<View style={[styles.avatarFallback, { backgroundColor: `${colors.primary}20` }]}>
46
- <AtomicText type="headlineMedium" color="primary" style={styles.avatarText}>
47
- {avatarName.charAt(0).toUpperCase()}
48
- </AtomicText>
49
- </View>)}
50
- </View>
51
- <View style={[styles.textContainer, { marginLeft: spacing.md }]}>
52
- <AtomicText type="headlineSmall" style={[styles.name, { color: colors.textPrimary }]} numberOfLines={1}>
53
- {finalDisplayName}
54
- </AtomicText>
55
- </View>
56
- </View>
57
- {shouldShowChevron && (<View style={[styles.chevronContainer, { marginLeft: spacing.sm }]}>
58
- <ChevronRight size={22} color={colors.textSecondary} strokeWidth={2.5}/>
59
- </View>)}
60
- </>);
61
- if (isPressable) {
62
- return (<TouchableOpacity style={containerStyle} onPress={handlePress} activeOpacity={0.7}>
63
- {content}
64
- </TouchableOpacity>);
65
- }
66
- return <View style={containerStyle}>{content}</View>;
67
- };
68
- const styles = StyleSheet.create({
69
- container: {
70
- flexDirection: "row",
71
- alignItems: "center",
72
- justifyContent: "space-between",
73
- marginTop: 0,
74
- marginBottom: 0,
75
- borderRadius: 20,
76
- minHeight: 80,
77
- },
78
- content: {
79
- flexDirection: "row",
80
- alignItems: "center",
81
- flex: 1,
82
- },
83
- avatarContainer: {
84
- width: 64,
85
- height: 64,
86
- borderRadius: 32,
87
- borderWidth: 2,
88
- overflow: "hidden",
89
- backgroundColor: "transparent",
90
- },
91
- avatar: {
92
- width: "100%",
93
- height: "100%",
94
- },
95
- avatarFallback: {
96
- width: "100%",
97
- height: "100%",
98
- justifyContent: "center",
99
- alignItems: "center",
100
- },
101
- avatarText: {
102
- fontWeight: "700",
103
- },
104
- textContainer: {
105
- flex: 1,
106
- },
107
- name: {
108
- fontWeight: "700",
109
- },
110
- id: {
111
- fontWeight: "500",
112
- opacity: 0.7,
113
- },
114
- chevronContainer: {
115
- justifyContent: "center",
116
- alignItems: "center",
117
- },
118
- });
119
- //# sourceMappingURL=UserProfileHeader.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"UserProfileHeader.js","sourceRoot":"","sources":["../../../src/presentation/components/UserProfileHeader.tsx"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AACrD,OAAO,EAAE,IAAI,EAAE,gBAAgB,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AACzE,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACnD,OAAO,EAAE,kBAAkB,EAAE,MAAM,0CAA0C,CAAC;AAC9E,OAAO,EAAE,UAAU,EAAE,MAAM,0CAA0C,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AC,CACpB,CAAC;IACJ,CAAC;IAED,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,OAAO,CAAC,EAAE,IAAI,CAAC,CAAC;AACvD,CAAC,CAAC;AAEF,MAAM,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC;IAC/B,SAAS,EAAE;QACT,aAAa,EAAE,KAAK;QACpB,UAAU,EAAE,QAAQ;QACpB,cAAc,EAAE,eAAe;QAC/B,SAAS,EAAE,CAAC;QACZ,YAAY,EAAE,CAAC;QACf,YAAY,EAAE,EAAE;QAChB,SAAS,EAAE,EAAE;KACd;IACD,OAAO,EAAE;QACP,aAAa,EAAE,KAAK;QACpB,UAAU,EAAE,QAAQ;QACpB,IAAI,EAAE,CAAC;KACR;IACD,eAAe,EAAE;QACf,KAAK,EAAE,EAAE;QACT,MAAM,EAAE,EAAE;QACV,YAAY,EAAE,EAAE;QAChB,WAAW,EAAE,CAAC;QACd,QAAQ,EAAE,QAAQ;QAClB,eAAe,EAAE,aAAa;KAC/B;IACD,MAAM,EAAE;QACN,KAAK,EAAE,MAAM;QACb,MAAM,EAAE,MAAM;KACf;IACD,cAAc,EAAE;QACd,KAAK,EAAE,MAAM;QACb,MAAM,EAAE,MAAM;QACd,cAAc,EAAE,QAAQ;QACxB,UAAU,EAAE,QAAQ;KACrB;IACD,UAAU,EAAE;QACV,UAAU,EAAE,KAAK;KAClB;IACD,aAAa,EAAE;QACb,IAAI,EAAE,CAAC;KACR;IACD,IAAI,EAAE;QACJ,UAAU,EAAE,KAAK;KAClB;IACD,EAAE,EAAE;QACF,UAAU,EAAE,KAAK;QACjB,OAAO,EAAE,GAAG;KACb;IACD,gBAAgB,EAAE;QAChB,cAAc,EAAE,QAAQ;QACxB,UAAU,EAAE,QAAQ;KACrB;CACF,CAAC,CAAC"}
@@ -1,8 +0,0 @@
1
- /**
2
- * Appearance Settings Screen
3
- * Advanced appearance settings with theme customization and custom colors
4
- * Uses @umituz/react-native-appearance package
5
- */
6
- import { AppearanceScreen } from "@umituz/react-native-appearance";
7
- export { AppearanceScreen };
8
- //# sourceMappingURL=AppearanceScreen.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"AppearanceScreen.d.ts","sourceRoot":"","sources":["../../../src/presentation/screens/AppearanceScreen.tsx"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AAEnE,OAAO,EAAE,gBAAgB,EAAE,CAAC"}
@@ -1,8 +0,0 @@
1
- /**
2
- * Appearance Settings Screen
3
- * Advanced appearance settings with theme customization and custom colors
4
- * Uses @umituz/react-native-appearance package
5
- */
6
- import { AppearanceScreen } from "@umituz/react-native-appearance";
7
- export { AppearanceScreen };
8
- //# sourceMappingURL=AppearanceScreen.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"AppearanceScreen.js","sourceRoot":"","sources":["../../../src/presentation/screens/AppearanceScreen.tsx"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AAEnE,OAAO,EAAE,gBAAgB,EAAE,CAAC"}
@@ -1,38 +0,0 @@
1
- /**
2
- * Settings Screen
3
- * Presentation layer - Composition only, no business logic
4
- */
5
- import React from "react";
6
- import type { SettingsConfig, CustomSettingsSection } from "./types";
7
- export interface SettingsScreenProps {
8
- config?: SettingsConfig;
9
- /** Show user profile header */
10
- showUserProfile?: boolean;
11
- /** User profile props */
12
- userProfile?: {
13
- displayName?: string;
14
- userId?: string;
15
- isGuest?: boolean;
16
- avatarUrl?: string;
17
- accountSettingsRoute?: string;
18
- onPress?: () => void;
19
- guestDisplayName?: string;
20
- avatarServiceUrl?: string;
21
- };
22
- /** Show footer with version */
23
- showFooter?: boolean;
24
- /** Custom footer text */
25
- footerText?: string;
26
- /** Custom sections to render */
27
- customSections?: CustomSettingsSection[];
28
- /** Show close button in header */
29
- showCloseButton?: boolean;
30
- /** Custom close handler */
31
- onClose?: () => void;
32
- /** Feature detection options */
33
- featureOptions?: {
34
- notificationServiceAvailable?: boolean;
35
- };
36
- }
37
- export declare const SettingsScreen: React.FC<SettingsScreenProps>;
38
- //# sourceMappingURL=SettingsScreen.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SettingsScreen.d.ts","sourceRoot":"","sources":["../../../src/presentation/screens/SettingsScreen.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAY1B,OAAO,KAAK,EAAE,cAAc,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAC;AAErE,MAAM,WAAW,mBAAmB;IAClC,MAAM,CAAC,EAAE,cAAc,CAAC;IACxB,+BAA+B;IAC/B,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,yBAAyB;IACzB,WAAW,CAAC,EAAE;QACZ,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,OAAO,CAAC,EAAE,OAAO,CAAC;QAClB,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,oBAAoB,CAAC,EAAE,MAAM,CAAC;QAC9B,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;QACrB,gBAAgB,CAAC,EAAE,MAAM,CAAC;QAC1B,gBAAgB,CAAC,EAAE,MAAM,CAAC;KAC3B,CAAC;IACF,+BAA+B;IAC/B,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,yBAAyB;IACzB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,gCAAgC;IAChC,cAAc,CAAC,EAAE,qBAAqB,EAAE,CAAC;IACzC,kCAAkC;IAClC,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,2BAA2B;IAC3B,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,gCAAgC;IAChC,cAAc,CAAC,EAAE;QACf,4BAA4B,CAAC,EAAE,OAAO,CAAC;KACxC,CAAC;CACH;AAED,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAyCxD,CAAC"}