@umituz/react-native-settings 5.3.34 → 5.3.35
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.
- package/package.json +1 -1
- package/LICENSE +0 -21
- package/README.md +0 -355
- package/dist/account.d.ts +0 -27
- package/dist/application/ports/ISettingsRepository.d.ts +0 -45
- package/dist/domains/about/domain/entities/AppInfo.d.ts +0 -76
- package/dist/domains/about/domain/repositories/IAboutRepository.d.ts +0 -19
- package/dist/domains/about/index.d.ts +0 -10
- package/dist/domains/about/infrastructure/repositories/AboutRepository.d.ts +0 -18
- package/dist/domains/about/presentation/components/AboutContent.d.ts +0 -14
- package/dist/domains/about/presentation/components/AboutHeader.d.ts +0 -21
- package/dist/domains/about/presentation/components/AboutSection.d.ts +0 -14
- package/dist/domains/about/presentation/components/AboutSettingItem.d.ts +0 -39
- package/dist/domains/about/presentation/hooks/useAboutInfo.d.ts +0 -2
- package/dist/domains/about/presentation/hooks/useAboutInfo.types.d.ts +0 -29
- package/dist/domains/about/presentation/screens/AboutScreen.d.ts +0 -21
- package/dist/domains/about/presentation/screens/AboutScreenContent.d.ts +0 -15
- package/dist/domains/about/utils/AppInfoFactory.d.ts +0 -9
- package/dist/domains/appearance/data/colorPalettes.d.ts +0 -25
- package/dist/domains/appearance/hooks/useAppearance.d.ts +0 -11
- package/dist/domains/appearance/hooks/useAppearanceActions.d.ts +0 -9
- package/dist/domains/appearance/index.d.ts +0 -9
- package/dist/domains/appearance/presentation/components/AppearanceHeader.d.ts +0 -18
- package/dist/domains/appearance/presentation/components/AppearancePreview.d.ts +0 -21
- package/dist/domains/appearance/presentation/components/AppearanceSection.d.ts +0 -16
- package/dist/domains/appearance/presentation/components/ColorPicker.d.ts +0 -15
- package/dist/domains/appearance/presentation/components/CustomColorsSection.d.ts +0 -25
- package/dist/domains/appearance/presentation/components/ThemeModeSection.d.ts +0 -24
- package/dist/domains/appearance/presentation/components/ThemeOption.d.ts +0 -20
- package/dist/domains/appearance/presentation/components/index.d.ts +0 -6
- package/dist/domains/appearance/presentation/screens/AppearanceScreen.d.ts +0 -16
- package/dist/domains/appearance/types/index.d.ts +0 -48
- package/dist/domains/cloud-sync/index.d.ts +0 -6
- package/dist/domains/cloud-sync/presentation/components/CloudSyncSetting.d.ts +0 -14
- package/dist/domains/dev/index.d.ts +0 -14
- package/dist/domains/dev/presentation/components/DevSettingsSection.d.ts +0 -34
- package/dist/domains/dev/presentation/components/EnvViewerSetting.d.ts +0 -20
- package/dist/domains/dev/presentation/components/StorageClearSetting.d.ts +0 -13
- package/dist/domains/dev/presentation/screens/EnvViewerScreen.d.ts +0 -12
- package/dist/domains/dev/types.d.ts +0 -22
- package/dist/domains/disclaimer/index.d.ts +0 -17
- package/dist/domains/disclaimer/presentation/components/DisclaimerCard.d.ts +0 -14
- package/dist/domains/disclaimer/presentation/components/DisclaimerModal.d.ts +0 -12
- package/dist/domains/disclaimer/presentation/components/DisclaimerSetting.d.ts +0 -34
- package/dist/domains/disclaimer/presentation/screens/DisclaimerScreen.d.ts +0 -27
- package/dist/domains/faqs/domain/entities/FAQEntity.d.ts +0 -21
- package/dist/domains/faqs/domain/services/FAQSearchService.d.ts +0 -12
- package/dist/domains/faqs/index.d.ts +0 -8
- package/dist/domains/faqs/presentation/components/FAQCategory.d.ts +0 -21
- package/dist/domains/faqs/presentation/components/FAQEmptyState.d.ts +0 -20
- package/dist/domains/faqs/presentation/components/FAQItem.d.ts +0 -24
- package/dist/domains/faqs/presentation/components/FAQSearchBar.d.ts +0 -18
- package/dist/domains/faqs/presentation/components/index.d.ts +0 -11
- package/dist/domains/faqs/presentation/hooks/index.d.ts +0 -5
- package/dist/domains/faqs/presentation/hooks/useFAQExpansion.d.ts +0 -12
- package/dist/domains/faqs/presentation/hooks/useFAQSearch.d.ts +0 -12
- package/dist/domains/faqs/presentation/screens/FAQScreen.d.ts +0 -33
- package/dist/domains/feedback/domain/entities/FeedbackEntity.d.ts +0 -25
- package/dist/domains/feedback/domain/repositories/IFeedbackRepository.d.ts +0 -20
- package/dist/domains/feedback/index.d.ts +0 -10
- package/dist/domains/feedback/presentation/components/FeedbackForm.d.ts +0 -7
- package/dist/domains/feedback/presentation/components/FeedbackForm.styles.d.ts +0 -48
- package/dist/domains/feedback/presentation/components/FeedbackFormProps.d.ts +0 -26
- package/dist/domains/feedback/presentation/components/FeedbackModal.d.ts +0 -23
- package/dist/domains/feedback/presentation/components/SupportSection.d.ts +0 -62
- package/dist/domains/feedback/presentation/hooks/useFeedbackForm.d.ts +0 -19
- package/dist/domains/gamification/components/AchievementCard.d.ts +0 -23
- package/dist/domains/gamification/components/AchievementItem.d.ts +0 -7
- package/dist/domains/gamification/components/AchievementToast.d.ts +0 -21
- package/dist/domains/gamification/components/GamificationScreen/AchievementsList.d.ts +0 -17
- package/dist/domains/gamification/components/GamificationScreen/GamificationScreen.d.ts +0 -11
- package/dist/domains/gamification/components/GamificationScreen/GamificationScreenWithConfig.d.ts +0 -11
- package/dist/domains/gamification/components/GamificationScreen/StatsGrid.d.ts +0 -16
- package/dist/domains/gamification/components/GamificationScreen/index.d.ts +0 -17
- package/dist/domains/gamification/components/GamificationScreen/styles.d.ts +0 -40
- package/dist/domains/gamification/components/GamificationScreen/types.d.ts +0 -42
- package/dist/domains/gamification/components/LevelProgress.d.ts +0 -27
- package/dist/domains/gamification/components/PointsBadge.d.ts +0 -16
- package/dist/domains/gamification/components/StatsCard.d.ts +0 -20
- package/dist/domains/gamification/components/StreakDisplay.d.ts +0 -21
- package/dist/domains/gamification/components/index.d.ts +0 -14
- package/dist/domains/gamification/components/styles/achievementItemStyles.d.ts +0 -71
- package/dist/domains/gamification/components/types/AchievementItemProps.d.ts +0 -22
- package/dist/domains/gamification/hooks/useGamification.d.ts +0 -22
- package/dist/domains/gamification/index.d.ts +0 -13
- package/dist/domains/gamification/store/gamificationStore.d.ts +0 -6
- package/dist/domains/gamification/types/index.d.ts +0 -99
- package/dist/domains/gamification/utils/calculations.d.ts +0 -10
- package/dist/domains/legal/domain/entities/LegalConfig.d.ts +0 -28
- package/dist/domains/legal/domain/services/ContentValidationService.d.ts +0 -19
- package/dist/domains/legal/domain/services/StyleCacheService.d.ts +0 -38
- package/dist/domains/legal/domain/services/UrlHandlerService.d.ts +0 -32
- package/dist/domains/legal/index.d.ts +0 -8
- package/dist/domains/legal/presentation/components/LegalDocumentsList.d.ts +0 -21
- package/dist/domains/legal/presentation/components/LegalItem.d.ts +0 -35
- package/dist/domains/legal/presentation/components/LegalScreenHeader.d.ts +0 -12
- package/dist/domains/legal/presentation/components/LegalSection.d.ts +0 -14
- package/dist/domains/legal/presentation/screens/LegalContentScreen.d.ts +0 -19
- package/dist/domains/legal/presentation/screens/LegalScreen.d.ts +0 -24
- package/dist/domains/legal/presentation/screens/PrivacyPolicyScreen.d.ts +0 -15
- package/dist/domains/legal/presentation/screens/TermsOfServiceScreen.d.ts +0 -15
- package/dist/domains/localization/domain/repositories/ILocalizationRepository.d.ts +0 -16
- package/dist/domains/localization/index.d.ts +0 -16
- package/dist/domains/localization/infrastructure/components/LanguageSwitcher.d.ts +0 -19
- package/dist/domains/localization/infrastructure/components/LanguageSwitcher.styles.d.ts +0 -37
- package/dist/domains/localization/infrastructure/components/useLanguageNavigation.d.ts +0 -4
- package/dist/domains/localization/infrastructure/components/useLanguageSwitcher.d.ts +0 -13
- package/dist/domains/localization/infrastructure/config/DeviceLocale.d.ts +0 -10
- package/dist/domains/localization/infrastructure/config/I18nInitializer.d.ts +0 -14
- package/dist/domains/localization/infrastructure/config/LanguageQuery.d.ts +0 -10
- package/dist/domains/localization/infrastructure/config/LocaleMapping.d.ts +0 -5
- package/dist/domains/localization/infrastructure/config/NamespaceResolver.d.ts +0 -11
- package/dist/domains/localization/infrastructure/config/ResourceBuilder.d.ts +0 -10
- package/dist/domains/localization/infrastructure/config/TranslationLoader.d.ts +0 -16
- package/dist/domains/localization/infrastructure/config/constants/defaultLanguages.d.ts +0 -6
- package/dist/domains/localization/infrastructure/config/i18n.d.ts +0 -7
- package/dist/domains/localization/infrastructure/config/languages.d.ts +0 -7
- package/dist/domains/localization/infrastructure/hooks/useLanguageSelection.d.ts +0 -11
- package/dist/domains/localization/infrastructure/hooks/useLocalization.d.ts +0 -12
- package/dist/domains/localization/infrastructure/hooks/useTranslation.d.ts +0 -23
- package/dist/domains/localization/infrastructure/repository/LanguageRepository.d.ts +0 -18
- package/dist/domains/localization/infrastructure/storage/LanguageInitializer.d.ts +0 -20
- package/dist/domains/localization/infrastructure/storage/LanguageSwitcher.d.ts +0 -16
- package/dist/domains/localization/infrastructure/storage/LocalizationStore.d.ts +0 -6
- package/dist/domains/localization/infrastructure/storage/localizationStoreUtils.d.ts +0 -44
- package/dist/domains/localization/infrastructure/storage/types/Language.d.ts +0 -12
- package/dist/domains/localization/infrastructure/storage/types/LocalizationState.d.ts +0 -22
- package/dist/domains/localization/presentation/components/LanguageItem.d.ts +0 -23
- package/dist/domains/localization/presentation/components/LanguageItem.styles.d.ts +0 -30
- package/dist/domains/localization/presentation/components/LanguageSection.d.ts +0 -15
- package/dist/domains/localization/presentation/providers/LocalizationManager.d.ts +0 -12
- package/dist/domains/localization/presentation/screens/LanguageSelectionScreen.d.ts +0 -7
- package/dist/domains/localization/presentation/screens/LanguageSelectionScreen.styles.d.ts +0 -7
- package/dist/domains/localization/presentation/screens/LanguageSelectionScreen.types.d.ts +0 -26
- package/dist/domains/notifications/index.d.ts +0 -46
- package/dist/domains/notifications/infrastructure/config/notificationsConfig.d.ts +0 -19
- package/dist/domains/notifications/infrastructure/hooks/useNotificationSettings.d.ts +0 -8
- package/dist/domains/notifications/infrastructure/services/NotificationBadgeManager.d.ts +0 -4
- package/dist/domains/notifications/infrastructure/services/NotificationManager.d.ts +0 -23
- package/dist/domains/notifications/infrastructure/services/NotificationPermissions.d.ts +0 -5
- package/dist/domains/notifications/infrastructure/services/NotificationScheduler.d.ts +0 -7
- package/dist/domains/notifications/infrastructure/services/NotificationService.d.ts +0 -31
- package/dist/domains/notifications/infrastructure/services/types.d.ts +0 -147
- package/dist/domains/notifications/infrastructure/storage/UnifiedNotificationStore.d.ts +0 -42
- package/dist/domains/notifications/infrastructure/utils/idGenerator.d.ts +0 -6
- package/dist/domains/notifications/infrastructure/utils/triggerBuilder.d.ts +0 -6
- package/dist/domains/notifications/presentation/components/NotificationsSection.d.ts +0 -16
- package/dist/domains/notifications/presentation/components/RemindersNavRow.d.ts +0 -12
- package/dist/domains/notifications/presentation/components/RemindersNavRow.styles.d.ts +0 -34
- package/dist/domains/notifications/presentation/components/SettingRow.d.ts +0 -14
- package/dist/domains/notifications/presentation/hooks/useNotificationSettingsUI.d.ts +0 -13
- package/dist/domains/notifications/presentation/hooks/useTimePicker.d.ts +0 -21
- package/dist/domains/notifications/presentation/screens/NotificationSettingsScreen.d.ts +0 -12
- package/dist/domains/notifications/presentation/screens/NotificationSettingsScreen.styles.d.ts +0 -26
- package/dist/domains/notifications/presentation/screens/NotificationsScreen.d.ts +0 -18
- package/dist/domains/notifications/quietHours/infrastructure/hooks/useQuietHoursActions.d.ts +0 -13
- package/dist/domains/notifications/quietHours/presentation/components/QuietHoursCard.d.ts +0 -14
- package/dist/domains/notifications/reminders/infrastructure/config/reminderPresets.d.ts +0 -24
- package/dist/domains/notifications/reminders/infrastructure/hooks/useReminderActions.d.ts +0 -11
- package/dist/domains/notifications/reminders/presentation/components/FormButton.d.ts +0 -12
- package/dist/domains/notifications/reminders/presentation/components/FrequencySelector.d.ts +0 -14
- package/dist/domains/notifications/reminders/presentation/components/ReminderForm.constants.d.ts +0 -28
- package/dist/domains/notifications/reminders/presentation/components/ReminderForm.d.ts +0 -7
- package/dist/domains/notifications/reminders/presentation/components/ReminderForm.styles.d.ts +0 -31
- package/dist/domains/notifications/reminders/presentation/components/ReminderItem.d.ts +0 -20
- package/dist/domains/notifications/reminders/presentation/components/TimePresetSelector.d.ts +0 -20
- package/dist/domains/notifications/reminders/presentation/components/WeekdaySelector.d.ts +0 -11
- package/dist/domains/notifications/reminders/presentation/screens/ReminderListScreen.d.ts +0 -13
- package/dist/domains/rating/application/services/RatingService.d.ts +0 -33
- package/dist/domains/rating/domain/entities/Rating.d.ts +0 -15
- package/dist/domains/rating/domain/entities/RatingConfig.d.ts +0 -120
- package/dist/domains/rating/index.d.ts +0 -12
- package/dist/domains/rating/infrastructure/storage/RatingStorage.d.ts +0 -50
- package/dist/domains/rating/presentation/components/RatingPromptModal.d.ts +0 -16
- package/dist/domains/rating/presentation/components/StarRating.d.ts +0 -13
- package/dist/domains/rating/presentation/hooks/useAppRating.d.ts +0 -9
- package/dist/domains/video-tutorials/index.d.ts +0 -18
- package/dist/domains/video-tutorials/presentation/components/VideoTutorialCard.d.ts +0 -13
- package/dist/domains/video-tutorials/presentation/components/VideoTutorialSection.d.ts +0 -25
- package/dist/domains/video-tutorials/presentation/screens/VideoTutorialsScreen.d.ts +0 -25
- package/dist/domains/video-tutorials/types/index.d.ts +0 -26
- package/dist/index.d.ts +0 -41
- package/dist/infrastructure/repositories/SettingsRepository.d.ts +0 -12
- package/dist/infrastructure/services/SettingsService.d.ts +0 -14
- package/dist/infrastructure/utils/configFactory.d.ts +0 -39
- package/dist/infrastructure/utils/constants/textLimits.d.ts +0 -16
- package/dist/infrastructure/utils/sanitizers.d.ts +0 -13
- package/dist/infrastructure/utils/validation/core.d.ts +0 -8
- package/dist/infrastructure/utils/validation/formValidators.d.ts +0 -26
- package/dist/infrastructure/utils/validation/index.d.ts +0 -5
- package/dist/infrastructure/utils/validators.d.ts +0 -21
- package/dist/presentation/components/SettingsFooter.d.ts +0 -7
- package/dist/presentation/components/SettingsItemCard.d.ts +0 -22
- package/dist/presentation/components/SettingsNavigationItem.d.ts +0 -67
- package/dist/presentation/components/SettingsSection.d.ts +0 -6
- package/dist/presentation/components/settings/SettingsItemCardContent.d.ts +0 -12
- package/dist/presentation/components/settings/SettingsItemCardRightElement.d.ts +0 -11
- package/dist/presentation/components/settings/SettingsItemCardSection.d.ts +0 -5
- package/dist/presentation/hooks/mutations/useSettingsMutations.d.ts +0 -20
- package/dist/presentation/hooks/queries/useSettingsQuery.d.ts +0 -7
- package/dist/presentation/hooks/useSettings.d.ts +0 -26
- package/dist/presentation/hooks/useSettingsScreenConfig.d.ts +0 -41
- package/dist/presentation/navigation/SettingsStackNavigator.d.ts +0 -9
- package/dist/presentation/navigation/hooks/index.d.ts +0 -5
- package/dist/presentation/navigation/hooks/useNavigationHandlers.d.ts +0 -14
- package/dist/presentation/navigation/hooks/useSettingsNavigation.d.ts +0 -22
- package/dist/presentation/navigation/hooks/useSettingsScreens.d.ts +0 -12
- package/dist/presentation/navigation/types.d.ts +0 -134
- package/dist/presentation/navigation/utils/index.d.ts +0 -5
- package/dist/presentation/navigation/utils/navigationHelpers.d.ts +0 -13
- package/dist/presentation/navigation/utils/navigationTranslations.d.ts +0 -35
- package/dist/presentation/screens/AppearanceScreen.d.ts +0 -6
- package/dist/presentation/screens/SettingsScreen.d.ts +0 -49
- package/dist/presentation/screens/components/SettingsContent.d.ts +0 -3
- package/dist/presentation/screens/components/SettingsHeader.d.ts +0 -8
- package/dist/presentation/screens/components/sections/CustomSettingsList.d.ts +0 -7
- package/dist/presentation/screens/components/sections/FeatureSettingsSection.d.ts +0 -13
- package/dist/presentation/screens/components/sections/IdentitySettingsSection.d.ts +0 -12
- package/dist/presentation/screens/components/sections/ProfileSectionLoader.d.ts +0 -17
- package/dist/presentation/screens/components/sections/SupportSettingsSection.d.ts +0 -13
- package/dist/presentation/screens/components/types/SettingsContentProps.d.ts +0 -47
- package/dist/presentation/screens/components/utils/featureChecker.d.ts +0 -10
- package/dist/presentation/screens/hooks/useFeatureDetection.d.ts +0 -28
- package/dist/presentation/screens/hooks/useSettingsScreen.d.ts +0 -36
- package/dist/presentation/screens/types/BaseTypes.d.ts +0 -11
- package/dist/presentation/screens/types/ContentConfig.d.ts +0 -76
- package/dist/presentation/screens/types/CustomSection.d.ts +0 -38
- package/dist/presentation/screens/types/SettingsConfig.d.ts +0 -122
- package/dist/presentation/screens/types/SettingsTranslations.d.ts +0 -159
- package/dist/presentation/screens/types/UserFeatureConfig.d.ts +0 -178
- package/dist/presentation/screens/types/index.d.ts +0 -11
- package/dist/presentation/screens/utils/normalizeConfig.d.ts +0 -68
- package/dist/presentation/utils/accountConfigUtils.d.ts +0 -34
- package/dist/presentation/utils/config-creators/base-configs.d.ts +0 -26
- package/dist/presentation/utils/config-creators/feature-configs.d.ts +0 -17
- package/dist/presentation/utils/config-creators/index.d.ts +0 -7
- package/dist/presentation/utils/config-creators/support-configs.d.ts +0 -19
- package/dist/presentation/utils/config-creators/types.d.ts +0 -20
- package/dist/presentation/utils/faqTranslator.d.ts +0 -3
- package/dist/presentation/utils/index.d.ts +0 -8
- package/dist/presentation/utils/screenFactory.d.ts +0 -26
- package/dist/presentation/utils/settingsConfigFactory.d.ts +0 -33
- package/dist/presentation/utils/userProfileUtils.d.ts +0 -20
- package/dist/utils/appUtils.d.ts +0 -4
- package/dist/utils/devUtils.d.ts +0 -31
- package/dist/utils/errorUtils.d.ts +0 -22
- package/dist/utils/hooks/useAsyncStateUpdate.d.ts +0 -35
- package/dist/utils/hooks/useMountSafety.d.ts +0 -1
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* LevelProgress Component
|
|
3
|
-
* Displays level and progress - all text via props
|
|
4
|
-
*/
|
|
5
|
-
import React from "react";
|
|
6
|
-
import { type ViewStyle, type TextStyle } from "react-native";
|
|
7
|
-
export interface LevelProgressProps {
|
|
8
|
-
level: number;
|
|
9
|
-
points: number;
|
|
10
|
-
levelTitle: string;
|
|
11
|
-
pointsToNext: number;
|
|
12
|
-
progress: number;
|
|
13
|
-
showPoints?: boolean;
|
|
14
|
-
containerStyle?: ViewStyle;
|
|
15
|
-
titleStyle?: TextStyle;
|
|
16
|
-
subtitleStyle?: TextStyle;
|
|
17
|
-
progressBarStyle?: ViewStyle;
|
|
18
|
-
progressFillStyle?: ViewStyle;
|
|
19
|
-
badgeStyle?: ViewStyle;
|
|
20
|
-
badgeTextStyle?: TextStyle;
|
|
21
|
-
primaryColor?: string;
|
|
22
|
-
secondaryColor?: string;
|
|
23
|
-
backgroundColor?: string;
|
|
24
|
-
textColor?: string;
|
|
25
|
-
subtextColor?: string;
|
|
26
|
-
}
|
|
27
|
-
export declare const LevelProgress: React.FC<LevelProgressProps>;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* PointsBadge Component
|
|
3
|
-
* Displays points with optional icon - all text via props
|
|
4
|
-
*/
|
|
5
|
-
import React from "react";
|
|
6
|
-
import { type ViewStyle, type TextStyle } from "react-native";
|
|
7
|
-
export interface PointsBadgeProps {
|
|
8
|
-
points: number;
|
|
9
|
-
icon?: React.ReactNode;
|
|
10
|
-
containerStyle?: ViewStyle;
|
|
11
|
-
textStyle?: TextStyle;
|
|
12
|
-
backgroundColor?: string;
|
|
13
|
-
textColor?: string;
|
|
14
|
-
borderColor?: string;
|
|
15
|
-
}
|
|
16
|
-
export declare const PointsBadge: React.FC<PointsBadgeProps>;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* StatsCard Component - Modern Design
|
|
3
|
-
* Clean card-based stat display with large emoji icons
|
|
4
|
-
*/
|
|
5
|
-
import React from "react";
|
|
6
|
-
import { type ViewStyle, type TextStyle } from "react-native";
|
|
7
|
-
export interface StatsCardProps {
|
|
8
|
-
value: number;
|
|
9
|
-
label: string;
|
|
10
|
-
icon?: React.ReactNode | string;
|
|
11
|
-
suffix?: string;
|
|
12
|
-
containerStyle?: ViewStyle;
|
|
13
|
-
valueStyle?: TextStyle;
|
|
14
|
-
labelStyle?: TextStyle;
|
|
15
|
-
accentColor?: string;
|
|
16
|
-
backgroundColor?: string;
|
|
17
|
-
textColor?: string;
|
|
18
|
-
subtextColor?: string;
|
|
19
|
-
}
|
|
20
|
-
export declare const StatsCard: React.FC<StatsCardProps>;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* StreakDisplay Component - Modern Design
|
|
3
|
-
* Clean card-based design with gradient fire icon
|
|
4
|
-
*/
|
|
5
|
-
import React from "react";
|
|
6
|
-
import { type ViewStyle, type TextStyle } from "react-native";
|
|
7
|
-
export interface StreakDisplayProps {
|
|
8
|
-
current: number;
|
|
9
|
-
longest: number;
|
|
10
|
-
bestLabel: string;
|
|
11
|
-
daysLabel: string;
|
|
12
|
-
icon?: React.ReactNode | string;
|
|
13
|
-
containerStyle?: ViewStyle;
|
|
14
|
-
numberStyle?: TextStyle;
|
|
15
|
-
labelStyle?: TextStyle;
|
|
16
|
-
primaryColor?: string;
|
|
17
|
-
backgroundColor?: string;
|
|
18
|
-
textColor?: string;
|
|
19
|
-
subtextColor?: string;
|
|
20
|
-
}
|
|
21
|
-
export declare const StreakDisplay: React.FC<StreakDisplayProps>;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Gamification Components
|
|
3
|
-
* All text via props - NO hardcoded strings
|
|
4
|
-
*/
|
|
5
|
-
export { LevelProgress, type LevelProgressProps } from "./LevelProgress";
|
|
6
|
-
export { PointsBadge, type PointsBadgeProps } from "./PointsBadge";
|
|
7
|
-
export { AchievementCard, type AchievementCardProps } from "./AchievementCard";
|
|
8
|
-
export { AchievementToast, type AchievementToastProps } from "./AchievementToast";
|
|
9
|
-
export { StreakDisplay, type StreakDisplayProps } from "./StreakDisplay";
|
|
10
|
-
export { StatsCard, type StatsCardProps } from "./StatsCard";
|
|
11
|
-
export { AchievementItem } from "./AchievementItem";
|
|
12
|
-
export type { AchievementItemProps } from "./types/AchievementItemProps";
|
|
13
|
-
export { GamificationScreen } from "./GamificationScreen/index";
|
|
14
|
-
export type { GamificationScreenProps, GamificationConfigProps } from "./GamificationScreen/types";
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* AchievementItem Styles
|
|
3
|
-
*/
|
|
4
|
-
export declare const achievementItemStyles: {
|
|
5
|
-
container: {
|
|
6
|
-
flexDirection: "row";
|
|
7
|
-
alignItems: "center";
|
|
8
|
-
padding: number;
|
|
9
|
-
borderRadius: number;
|
|
10
|
-
marginBottom: number;
|
|
11
|
-
};
|
|
12
|
-
iconContainer: {
|
|
13
|
-
width: number;
|
|
14
|
-
height: number;
|
|
15
|
-
borderRadius: number;
|
|
16
|
-
alignItems: "center";
|
|
17
|
-
justifyContent: "center";
|
|
18
|
-
marginRight: number;
|
|
19
|
-
};
|
|
20
|
-
content: {
|
|
21
|
-
flex: number;
|
|
22
|
-
};
|
|
23
|
-
header: {
|
|
24
|
-
flexDirection: "row";
|
|
25
|
-
alignItems: "center";
|
|
26
|
-
justifyContent: "space-between";
|
|
27
|
-
marginBottom: number;
|
|
28
|
-
};
|
|
29
|
-
title: {
|
|
30
|
-
fontSize: number;
|
|
31
|
-
fontWeight: "600";
|
|
32
|
-
flex: number;
|
|
33
|
-
};
|
|
34
|
-
checkmark: {
|
|
35
|
-
width: number;
|
|
36
|
-
height: number;
|
|
37
|
-
borderRadius: number;
|
|
38
|
-
alignItems: "center";
|
|
39
|
-
justifyContent: "center";
|
|
40
|
-
marginLeft: number;
|
|
41
|
-
};
|
|
42
|
-
checkmarkText: {
|
|
43
|
-
fontSize: number;
|
|
44
|
-
fontWeight: "bold";
|
|
45
|
-
};
|
|
46
|
-
description: {
|
|
47
|
-
fontSize: number;
|
|
48
|
-
lineHeight: number;
|
|
49
|
-
};
|
|
50
|
-
progressContainer: {
|
|
51
|
-
marginTop: number;
|
|
52
|
-
flexDirection: "row";
|
|
53
|
-
alignItems: "center";
|
|
54
|
-
gap: number;
|
|
55
|
-
};
|
|
56
|
-
progressBar: {
|
|
57
|
-
flex: number;
|
|
58
|
-
height: number;
|
|
59
|
-
borderRadius: number;
|
|
60
|
-
overflow: "hidden";
|
|
61
|
-
};
|
|
62
|
-
progressFill: {
|
|
63
|
-
height: "100%";
|
|
64
|
-
borderRadius: number;
|
|
65
|
-
};
|
|
66
|
-
progressText: {
|
|
67
|
-
fontSize: number;
|
|
68
|
-
minWidth: number;
|
|
69
|
-
textAlign: "right";
|
|
70
|
-
};
|
|
71
|
-
};
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* AchievementItem Props Types
|
|
3
|
-
*/
|
|
4
|
-
import type { ViewStyle, TextStyle } from 'react-native';
|
|
5
|
-
export interface AchievementItemProps {
|
|
6
|
-
id?: string;
|
|
7
|
-
title: string;
|
|
8
|
-
description: string;
|
|
9
|
-
icon: React.ReactNode | string;
|
|
10
|
-
isUnlocked: boolean;
|
|
11
|
-
progress: number;
|
|
12
|
-
threshold: number;
|
|
13
|
-
progressLabel?: string;
|
|
14
|
-
containerStyle?: ViewStyle;
|
|
15
|
-
titleStyle?: TextStyle;
|
|
16
|
-
descriptionStyle?: TextStyle;
|
|
17
|
-
accentColor?: string;
|
|
18
|
-
backgroundColor?: string;
|
|
19
|
-
textColor?: string;
|
|
20
|
-
subtextColor?: string;
|
|
21
|
-
lockedOpacity?: number;
|
|
22
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* useGamification Hook
|
|
3
|
-
* Main hook for gamification operations
|
|
4
|
-
*/
|
|
5
|
-
import type { GamificationConfig, LevelState, Achievement } from "../types";
|
|
6
|
-
export interface UseGamificationReturn {
|
|
7
|
-
points: number;
|
|
8
|
-
totalTasksCompleted: number;
|
|
9
|
-
level: LevelState;
|
|
10
|
-
streak: {
|
|
11
|
-
current: number;
|
|
12
|
-
longest: number;
|
|
13
|
-
};
|
|
14
|
-
achievements: Achievement[];
|
|
15
|
-
isLoading: boolean;
|
|
16
|
-
isInitialized: boolean;
|
|
17
|
-
initialize: (config: GamificationConfig) => Promise<void>;
|
|
18
|
-
completeTask: () => void;
|
|
19
|
-
addPoints: (amount: number) => void;
|
|
20
|
-
reset: () => Promise<void>;
|
|
21
|
-
}
|
|
22
|
-
export declare const useGamification: (config?: GamificationConfig) => UseGamificationReturn;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Gamification Domain
|
|
3
|
-
* Part of @umituz/react-native-settings
|
|
4
|
-
*
|
|
5
|
-
* Generic gamification system for React Native apps
|
|
6
|
-
* All text via props - NO hardcoded strings
|
|
7
|
-
* Designed for 100+ apps
|
|
8
|
-
*/
|
|
9
|
-
export type { AchievementDefinition, Achievement, LevelDefinition, LevelState, StreakState, GamificationConfig, GamificationSettingsConfig, GamificationState, GamificationActions, GamificationStore, } from "./types";
|
|
10
|
-
export { useGamificationStore } from "./store/gamificationStore";
|
|
11
|
-
export { useGamification, type UseGamificationReturn } from "./hooks/useGamification";
|
|
12
|
-
export { calculateLevel, checkAchievementUnlock, updateAchievementProgress, isStreakActive, isSameDay, } from "./utils/calculations";
|
|
13
|
-
export { LevelProgress, type LevelProgressProps, PointsBadge, type PointsBadgeProps, AchievementCard, type AchievementCardProps, AchievementToast, type AchievementToastProps, StreakDisplay, type StreakDisplayProps, StatsCard, type StatsCardProps, AchievementItem, type AchievementItemProps, GamificationScreen, type GamificationScreenProps, } from "./components";
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Gamification Store
|
|
3
|
-
* Zustand store with persist middleware
|
|
4
|
-
*/
|
|
5
|
-
import type { GamificationState, GamificationActions } from "../types";
|
|
6
|
-
export declare const useGamificationStore: import("zustand").UseBoundStore<import("zustand").StoreApi<GamificationState & GamificationActions>>;
|
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Gamification Types
|
|
3
|
-
* Generic types for 100+ apps - NO app-specific code
|
|
4
|
-
*/
|
|
5
|
-
export interface AchievementDefinition {
|
|
6
|
-
id: string;
|
|
7
|
-
threshold: number;
|
|
8
|
-
type: "count" | "streak" | "milestone";
|
|
9
|
-
title: string;
|
|
10
|
-
description: string;
|
|
11
|
-
icon: string;
|
|
12
|
-
}
|
|
13
|
-
export interface Achievement extends AchievementDefinition {
|
|
14
|
-
isUnlocked: boolean;
|
|
15
|
-
unlockedAt?: string;
|
|
16
|
-
progress: number;
|
|
17
|
-
}
|
|
18
|
-
export interface LevelDefinition {
|
|
19
|
-
level: number;
|
|
20
|
-
minPoints: number;
|
|
21
|
-
maxPoints: number;
|
|
22
|
-
}
|
|
23
|
-
export interface LevelState {
|
|
24
|
-
currentLevel: number;
|
|
25
|
-
currentPoints: number;
|
|
26
|
-
pointsToNext: number;
|
|
27
|
-
progress: number;
|
|
28
|
-
}
|
|
29
|
-
export interface StreakState {
|
|
30
|
-
current: number;
|
|
31
|
-
longest: number;
|
|
32
|
-
lastActivityDate: string | null;
|
|
33
|
-
}
|
|
34
|
-
export interface GamificationTranslations {
|
|
35
|
-
title?: string;
|
|
36
|
-
statsTitle?: string;
|
|
37
|
-
pointsLabel?: string;
|
|
38
|
-
totalCompletedLabel?: string;
|
|
39
|
-
achievementsTitle?: string;
|
|
40
|
-
streakTitle?: string;
|
|
41
|
-
bestStreak?: string;
|
|
42
|
-
currentStreak?: string;
|
|
43
|
-
days?: string;
|
|
44
|
-
levelTitle?: string;
|
|
45
|
-
emptyAchievements?: string;
|
|
46
|
-
}
|
|
47
|
-
export interface GamificationConfig {
|
|
48
|
-
storageKey: string;
|
|
49
|
-
achievements: AchievementDefinition[];
|
|
50
|
-
levels: LevelDefinition[];
|
|
51
|
-
pointsPerAction?: number;
|
|
52
|
-
streakBonusMultiplier?: number;
|
|
53
|
-
enabled?: boolean;
|
|
54
|
-
translations?: GamificationTranslations;
|
|
55
|
-
}
|
|
56
|
-
export type GamificationSettingsConfig = GamificationConfig;
|
|
57
|
-
export interface GamificationState {
|
|
58
|
-
points: number;
|
|
59
|
-
totalTasksCompleted: number;
|
|
60
|
-
achievements: Achievement[];
|
|
61
|
-
streak: StreakState;
|
|
62
|
-
isLoading: boolean;
|
|
63
|
-
isInitialized: boolean;
|
|
64
|
-
}
|
|
65
|
-
export interface GamificationActions {
|
|
66
|
-
initialize: (config: GamificationConfig) => Promise<void>;
|
|
67
|
-
addPoints: (amount: number) => void;
|
|
68
|
-
completeTask: () => void;
|
|
69
|
-
updateStreak: () => void;
|
|
70
|
-
checkAchievements: () => Achievement[];
|
|
71
|
-
reset: () => Promise<void>;
|
|
72
|
-
}
|
|
73
|
-
export type GamificationStore = GamificationState & GamificationActions;
|
|
74
|
-
export interface LevelProgressProps {
|
|
75
|
-
level: number;
|
|
76
|
-
points: number;
|
|
77
|
-
levelTitle: string;
|
|
78
|
-
pointsToNext: number;
|
|
79
|
-
progress: number;
|
|
80
|
-
showPoints?: boolean;
|
|
81
|
-
}
|
|
82
|
-
export interface AchievementCardProps {
|
|
83
|
-
title: string;
|
|
84
|
-
description: string;
|
|
85
|
-
icon: string;
|
|
86
|
-
isUnlocked: boolean;
|
|
87
|
-
progress: number;
|
|
88
|
-
threshold: number;
|
|
89
|
-
}
|
|
90
|
-
export interface StreakDisplayProps {
|
|
91
|
-
current: number;
|
|
92
|
-
longest: number;
|
|
93
|
-
streakLabel: string;
|
|
94
|
-
bestLabel: string;
|
|
95
|
-
}
|
|
96
|
-
export interface PointsBadgeProps {
|
|
97
|
-
points: number;
|
|
98
|
-
label?: string;
|
|
99
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Gamification Calculations
|
|
3
|
-
* Pure utility functions - NO side effects
|
|
4
|
-
*/
|
|
5
|
-
import type { LevelDefinition, LevelState, AchievementDefinition } from "../types";
|
|
6
|
-
export declare const calculateLevel: (points: number, levels: LevelDefinition[]) => LevelState;
|
|
7
|
-
export declare const checkAchievementUnlock: (definition: AchievementDefinition, tasksCompleted: number, currentStreak: number) => boolean;
|
|
8
|
-
export declare const updateAchievementProgress: (definition: AchievementDefinition, tasksCompleted: number, currentStreak: number) => number;
|
|
9
|
-
export declare const isStreakActive: (lastActivityDate: string | null) => boolean;
|
|
10
|
-
export declare const isSameDay: (date1: Date, date2: Date) => boolean;
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Legal Config
|
|
3
|
-
* Configuration for the Legal section
|
|
4
|
-
*/
|
|
5
|
-
export interface LegalConfig {
|
|
6
|
-
/** Section title */
|
|
7
|
-
title?: string;
|
|
8
|
-
/** Section description */
|
|
9
|
-
description?: string;
|
|
10
|
-
/** Navigation route name */
|
|
11
|
-
route?: string;
|
|
12
|
-
/** Default navigation route name */
|
|
13
|
-
defaultRoute?: string;
|
|
14
|
-
/** Privacy Policy title */
|
|
15
|
-
privacyTitle?: string;
|
|
16
|
-
/** Terms of Service title */
|
|
17
|
-
termsTitle?: string;
|
|
18
|
-
/** EULA title */
|
|
19
|
-
eulaTitle?: string;
|
|
20
|
-
/** Privacy Policy URL */
|
|
21
|
-
privacyUrl?: string;
|
|
22
|
-
/** Terms of Service URL */
|
|
23
|
-
termsUrl?: string;
|
|
24
|
-
/** EULA URL */
|
|
25
|
-
eulaUrl?: string;
|
|
26
|
-
/** Custom onPress handler (overrides navigation) */
|
|
27
|
-
onPress?: () => void;
|
|
28
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Content Validation Service
|
|
3
|
-
* Single Responsibility: Validate content and URL requirements
|
|
4
|
-
* Extracted from screens to follow SOLID principles
|
|
5
|
-
*/
|
|
6
|
-
export declare class ContentValidationService {
|
|
7
|
-
/**
|
|
8
|
-
* Check if content is valid
|
|
9
|
-
*/
|
|
10
|
-
static hasValidContent(content?: string, url?: string): boolean;
|
|
11
|
-
/**
|
|
12
|
-
* Check if URL section should be shown
|
|
13
|
-
*/
|
|
14
|
-
static shouldShowUrlSection(url?: string, onUrlPress?: () => void): boolean;
|
|
15
|
-
/**
|
|
16
|
-
* Check if legal item should be shown
|
|
17
|
-
*/
|
|
18
|
-
static shouldShowLegalItem(onPress?: () => void, title?: string): boolean;
|
|
19
|
-
}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Style Cache Service
|
|
3
|
-
* Single Responsibility: Manage style caching to prevent memory leaks
|
|
4
|
-
* Extracted from components to follow SOLID principles
|
|
5
|
-
*/
|
|
6
|
-
import type { DesignTokens } from "@umituz/react-native-design-system/theme";
|
|
7
|
-
export interface StyleCacheOptions {
|
|
8
|
-
maxSize?: number;
|
|
9
|
-
cacheKey?: string;
|
|
10
|
-
}
|
|
11
|
-
export declare class StyleCacheService {
|
|
12
|
-
private static caches;
|
|
13
|
-
private static readonly DEFAULT_MAX_SIZE;
|
|
14
|
-
/**
|
|
15
|
-
* Get or create cached styles
|
|
16
|
-
*/
|
|
17
|
-
static getCachedStyles<T>(cacheName: string, cacheKey: string, styleFactory: () => T, maxSize?: number): T;
|
|
18
|
-
/**
|
|
19
|
-
* Clear specific cache
|
|
20
|
-
*/
|
|
21
|
-
static clearCache(cacheName: string): void;
|
|
22
|
-
/**
|
|
23
|
-
* Clear all caches
|
|
24
|
-
*/
|
|
25
|
-
static clearAllCaches(): void;
|
|
26
|
-
/**
|
|
27
|
-
* Get cache size
|
|
28
|
-
*/
|
|
29
|
-
static getCacheSize(cacheName: string): number;
|
|
30
|
-
/**
|
|
31
|
-
* Create cache key from design tokens
|
|
32
|
-
*/
|
|
33
|
-
static createTokenCacheKey(tokens: DesignTokens, additionalKeys?: Record<string, any>): string;
|
|
34
|
-
/**
|
|
35
|
-
* Create simple cache key
|
|
36
|
-
*/
|
|
37
|
-
static createSimpleCacheKey(key: string): string;
|
|
38
|
-
}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* URL Handler Service
|
|
3
|
-
* Single Responsibility: Handle URL operations
|
|
4
|
-
* Extracted from screens to follow SOLID principles
|
|
5
|
-
* Performance optimized with caching and error handling
|
|
6
|
-
*/
|
|
7
|
-
export declare class UrlHandlerService {
|
|
8
|
-
/**
|
|
9
|
-
* Get Linking module - using static import for stability
|
|
10
|
-
*/
|
|
11
|
-
private static getLinkingModule;
|
|
12
|
-
/**
|
|
13
|
-
* Clean cache to prevent memory leaks
|
|
14
|
-
*/
|
|
15
|
-
private static cleanCache;
|
|
16
|
-
/**
|
|
17
|
-
* Validate URL format to prevent invalid operations
|
|
18
|
-
*/
|
|
19
|
-
private static isValidUrl;
|
|
20
|
-
/**
|
|
21
|
-
* Open URL in external browser with performance optimizations
|
|
22
|
-
*/
|
|
23
|
-
static openUrl(url: string): Promise<void>;
|
|
24
|
-
/**
|
|
25
|
-
* Check if URL can be opened with caching
|
|
26
|
-
*/
|
|
27
|
-
static canOpenUrl(url: string): Promise<boolean>;
|
|
28
|
-
/**
|
|
29
|
-
* Clear all caches (useful for testing or memory cleanup)
|
|
30
|
-
*/
|
|
31
|
-
static clearCache(): void;
|
|
32
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Legal Domain
|
|
3
|
-
* Terms, privacy policy, licenses
|
|
4
|
-
*/
|
|
5
|
-
export * from './presentation/screens/LegalScreen';
|
|
6
|
-
export * from './presentation/screens/PrivacyPolicyScreen';
|
|
7
|
-
export * from './presentation/screens/TermsOfServiceScreen';
|
|
8
|
-
export { LegalContentScreen } from './presentation/screens/LegalContentScreen';
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Legal Documents List Component
|
|
3
|
-
*
|
|
4
|
-
* Displays list of legal documents (Privacy, Terms, EULA).
|
|
5
|
-
*/
|
|
6
|
-
import React from "react";
|
|
7
|
-
interface LegalDocumentsListProps {
|
|
8
|
-
documentsHeader?: string;
|
|
9
|
-
privacyTitle?: string;
|
|
10
|
-
privacyDescription?: string;
|
|
11
|
-
termsTitle?: string;
|
|
12
|
-
termsDescription?: string;
|
|
13
|
-
eulaTitle?: string;
|
|
14
|
-
eulaDescription?: string;
|
|
15
|
-
onPrivacyPress?: () => void;
|
|
16
|
-
onTermsPress?: () => void;
|
|
17
|
-
onEulaPress?: () => void;
|
|
18
|
-
eulaUrl?: string;
|
|
19
|
-
}
|
|
20
|
-
export declare const LegalDocumentsList: React.FC<LegalDocumentsListProps>;
|
|
21
|
-
export {};
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* LegalItem Component
|
|
3
|
-
*
|
|
4
|
-
* Single Responsibility: Display a single legal document item
|
|
5
|
-
* Reusable component for Privacy Policy, Terms of Service, and EULA items
|
|
6
|
-
*/
|
|
7
|
-
import React from "react";
|
|
8
|
-
export interface LegalItemProps {
|
|
9
|
-
/**
|
|
10
|
-
* Icon name from theme library (Ionicons)
|
|
11
|
-
* If not provided, will use emoji icon
|
|
12
|
-
*/
|
|
13
|
-
iconName?: string;
|
|
14
|
-
/**
|
|
15
|
-
* Icon emoji or text (fallback if iconName not provided)
|
|
16
|
-
*/
|
|
17
|
-
icon?: string;
|
|
18
|
-
/**
|
|
19
|
-
* Title text
|
|
20
|
-
*/
|
|
21
|
-
title: string;
|
|
22
|
-
/**
|
|
23
|
-
* Optional description text
|
|
24
|
-
*/
|
|
25
|
-
description?: string;
|
|
26
|
-
/**
|
|
27
|
-
* Callback when item is pressed
|
|
28
|
-
*/
|
|
29
|
-
onPress?: () => void;
|
|
30
|
-
/**
|
|
31
|
-
* Test ID for E2E testing
|
|
32
|
-
*/
|
|
33
|
-
testID?: string;
|
|
34
|
-
}
|
|
35
|
-
export declare const LegalItem: React.FC<LegalItemProps>;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Legal Screen Header Component
|
|
3
|
-
*
|
|
4
|
-
* Displays title and description for legal screen.
|
|
5
|
-
*/
|
|
6
|
-
import React from "react";
|
|
7
|
-
interface LegalScreenHeaderProps {
|
|
8
|
-
title?: string;
|
|
9
|
-
description?: string;
|
|
10
|
-
}
|
|
11
|
-
export declare const LegalScreenHeader: React.FC<LegalScreenHeaderProps>;
|
|
12
|
-
export {};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { ViewStyle } from 'react-native';
|
|
3
|
-
import { LegalConfig } from '../../domain/entities/LegalConfig';
|
|
4
|
-
export interface LegalSectionProps {
|
|
5
|
-
config?: LegalConfig;
|
|
6
|
-
onPress?: () => void;
|
|
7
|
-
containerStyle?: ViewStyle;
|
|
8
|
-
title?: string;
|
|
9
|
-
description?: string;
|
|
10
|
-
sectionTitle?: string;
|
|
11
|
-
noBackground?: boolean;
|
|
12
|
-
hideMargin?: boolean;
|
|
13
|
-
}
|
|
14
|
-
export declare const LegalSection: React.FC<LegalSectionProps>;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Base Legal Content Screen Component
|
|
3
|
-
* Shared logic for legal document screens
|
|
4
|
-
*/
|
|
5
|
-
import React from "react";
|
|
6
|
-
import { StyleSheet } from "react-native";
|
|
7
|
-
import { type DesignTokens } from "@umituz/react-native-design-system/theme";
|
|
8
|
-
export interface LegalContentScreenProps {
|
|
9
|
-
content?: string;
|
|
10
|
-
url?: string;
|
|
11
|
-
title: string;
|
|
12
|
-
viewOnlineText?: string;
|
|
13
|
-
openText?: string;
|
|
14
|
-
onUrlPress?: () => void;
|
|
15
|
-
testID?: string;
|
|
16
|
-
styleCacheKey: string;
|
|
17
|
-
createStyles: (tokens: DesignTokens) => ReturnType<typeof StyleSheet.create>;
|
|
18
|
-
}
|
|
19
|
-
export declare const LegalContentScreen: React.FC<LegalContentScreenProps>;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Legal Screen Component
|
|
3
|
-
*
|
|
4
|
-
* Single Responsibility: Layout and orchestration of legal documents list
|
|
5
|
-
* Uses ScreenLayout from design system for consistent UI.
|
|
6
|
-
*/
|
|
7
|
-
import React from "react";
|
|
8
|
-
export interface LegalScreenProps {
|
|
9
|
-
title?: string;
|
|
10
|
-
description?: string;
|
|
11
|
-
documentsHeader?: string;
|
|
12
|
-
privacyTitle?: string;
|
|
13
|
-
privacyDescription?: string;
|
|
14
|
-
termsTitle?: string;
|
|
15
|
-
termsDescription?: string;
|
|
16
|
-
eulaTitle?: string;
|
|
17
|
-
eulaDescription?: string;
|
|
18
|
-
onPrivacyPress?: () => void;
|
|
19
|
-
onTermsPress?: () => void;
|
|
20
|
-
onEulaPress?: () => void;
|
|
21
|
-
eulaUrl?: string;
|
|
22
|
-
testID?: string;
|
|
23
|
-
}
|
|
24
|
-
export declare const LegalScreen: React.FC<LegalScreenProps>;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Privacy Policy Screen Component
|
|
3
|
-
* Display Privacy Policy content
|
|
4
|
-
*/
|
|
5
|
-
import React from "react";
|
|
6
|
-
export interface PrivacyPolicyScreenProps {
|
|
7
|
-
content?: string;
|
|
8
|
-
url?: string;
|
|
9
|
-
title: string;
|
|
10
|
-
viewOnlineText?: string;
|
|
11
|
-
openText?: string;
|
|
12
|
-
onUrlPress?: () => void;
|
|
13
|
-
testID?: string;
|
|
14
|
-
}
|
|
15
|
-
export declare const PrivacyPolicyScreen: React.FC<PrivacyPolicyScreenProps>;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Terms of Service Screen Component
|
|
3
|
-
* Display Terms of Service content
|
|
4
|
-
*/
|
|
5
|
-
import React from "react";
|
|
6
|
-
export interface TermsOfServiceScreenProps {
|
|
7
|
-
content?: string;
|
|
8
|
-
url?: string;
|
|
9
|
-
title: string;
|
|
10
|
-
viewOnlineText?: string;
|
|
11
|
-
openText?: string;
|
|
12
|
-
onUrlPress?: () => void;
|
|
13
|
-
testID?: string;
|
|
14
|
-
}
|
|
15
|
-
export declare const TermsOfServiceScreen: React.FC<TermsOfServiceScreenProps>;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Localization Repository Interface
|
|
3
|
-
* Defines language configuration and types
|
|
4
|
-
*/
|
|
5
|
-
export interface Language {
|
|
6
|
-
code: string;
|
|
7
|
-
name: string;
|
|
8
|
-
nativeName: string;
|
|
9
|
-
flag?: string;
|
|
10
|
-
isRTL?: boolean;
|
|
11
|
-
}
|
|
12
|
-
export interface ILocalizationRepository {
|
|
13
|
-
getSupportedLanguages(): Language[];
|
|
14
|
-
getLanguageByCode(code: string): Language | undefined;
|
|
15
|
-
isLanguageSupported(code: string): boolean;
|
|
16
|
-
}
|