@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,21 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* FAQ Category Component
|
|
3
|
-
* Renders a category with its FAQ items
|
|
4
|
-
* Uses design system tokens for theming
|
|
5
|
-
*/
|
|
6
|
-
import React from 'react';
|
|
7
|
-
import { ViewStyle } from 'react-native';
|
|
8
|
-
import { FAQCategory as FAQCategoryType } from '../../domain/entities/FAQEntity';
|
|
9
|
-
import { FAQItemStyles } from './FAQItem';
|
|
10
|
-
export interface FAQCategoryStyles {
|
|
11
|
-
container?: ViewStyle;
|
|
12
|
-
titleStyle?: object;
|
|
13
|
-
itemStyles?: FAQItemStyles;
|
|
14
|
-
}
|
|
15
|
-
export interface FAQCategoryProps {
|
|
16
|
-
category: FAQCategoryType;
|
|
17
|
-
isExpanded: (itemId: string) => boolean;
|
|
18
|
-
onToggleItem: (itemId: string) => void;
|
|
19
|
-
styles?: FAQCategoryStyles;
|
|
20
|
-
}
|
|
21
|
-
export declare const FAQCategoryComponent: React.FC<FAQCategoryProps>;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* FAQ Empty State Component
|
|
3
|
-
* Shown when no search results found
|
|
4
|
-
* Uses design system tokens for theming
|
|
5
|
-
*/
|
|
6
|
-
import React from 'react';
|
|
7
|
-
import { ViewStyle, TextStyle } from 'react-native';
|
|
8
|
-
export interface FAQEmptyStateStyles {
|
|
9
|
-
container?: ViewStyle;
|
|
10
|
-
icon?: TextStyle;
|
|
11
|
-
titleStyle?: object;
|
|
12
|
-
messageStyle?: object;
|
|
13
|
-
}
|
|
14
|
-
export interface FAQEmptyStateProps {
|
|
15
|
-
title: string;
|
|
16
|
-
message: string;
|
|
17
|
-
icon?: string;
|
|
18
|
-
styles?: FAQEmptyStateStyles;
|
|
19
|
-
}
|
|
20
|
-
export declare const FAQEmptyState: React.FC<FAQEmptyStateProps>;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* FAQ Item Component
|
|
3
|
-
* Individual FAQ question/answer item
|
|
4
|
-
* Uses design system tokens for theming
|
|
5
|
-
*/
|
|
6
|
-
import React from 'react';
|
|
7
|
-
import { ViewStyle } from 'react-native';
|
|
8
|
-
import { FAQItem as FAQItemType } from '../../domain/entities/FAQEntity';
|
|
9
|
-
export interface FAQItemStyles {
|
|
10
|
-
container?: ViewStyle;
|
|
11
|
-
header?: ViewStyle;
|
|
12
|
-
content?: ViewStyle;
|
|
13
|
-
questionStyle?: object;
|
|
14
|
-
answerContainer?: ViewStyle;
|
|
15
|
-
answerStyle?: object;
|
|
16
|
-
}
|
|
17
|
-
export interface FAQItemProps {
|
|
18
|
-
item: FAQItemType;
|
|
19
|
-
isExpanded: boolean;
|
|
20
|
-
onToggle: () => void;
|
|
21
|
-
isLast?: boolean;
|
|
22
|
-
styles?: FAQItemStyles;
|
|
23
|
-
}
|
|
24
|
-
export declare const FAQItemComponent: React.FC<FAQItemProps>;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* FAQ Search Bar Component
|
|
3
|
-
* Search input for filtering FAQ items
|
|
4
|
-
* Uses design system tokens for theming
|
|
5
|
-
*/
|
|
6
|
-
import React from 'react';
|
|
7
|
-
import { ViewStyle, TextStyle } from 'react-native';
|
|
8
|
-
export interface FAQSearchBarStyles {
|
|
9
|
-
container?: ViewStyle;
|
|
10
|
-
input?: TextStyle;
|
|
11
|
-
}
|
|
12
|
-
export interface FAQSearchBarProps {
|
|
13
|
-
value: string;
|
|
14
|
-
onChangeText: (text: string) => void;
|
|
15
|
-
placeholder: string;
|
|
16
|
-
styles?: FAQSearchBarStyles;
|
|
17
|
-
}
|
|
18
|
-
export declare const FAQSearchBar: React.FC<FAQSearchBarProps>;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @umituz/react-native-faqs - Components
|
|
3
|
-
*/
|
|
4
|
-
export { FAQItemComponent } from './FAQItem';
|
|
5
|
-
export type { FAQItemProps } from './FAQItem';
|
|
6
|
-
export { FAQEmptyState } from './FAQEmptyState';
|
|
7
|
-
export type { FAQEmptyStateProps } from './FAQEmptyState';
|
|
8
|
-
export { FAQSearchBar } from './FAQSearchBar';
|
|
9
|
-
export type { FAQSearchBarProps } from './FAQSearchBar';
|
|
10
|
-
export { FAQCategoryComponent } from './FAQCategory';
|
|
11
|
-
export type { FAQCategoryProps } from './FAQCategory';
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* FAQ Expansion Hook
|
|
3
|
-
* Manages FAQ item expansion state
|
|
4
|
-
*/
|
|
5
|
-
export interface UseFAQExpansionResult {
|
|
6
|
-
expandedItems: Set<string>;
|
|
7
|
-
isExpanded: (itemId: string) => boolean;
|
|
8
|
-
toggleExpansion: (itemId: string) => void;
|
|
9
|
-
expandAll: (itemIds: string[]) => void;
|
|
10
|
-
collapseAll: () => void;
|
|
11
|
-
}
|
|
12
|
-
export declare function useFAQExpansion(): UseFAQExpansionResult;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* FAQ Search Hook
|
|
3
|
-
* Handles FAQ search state and filtering with debounce
|
|
4
|
-
*/
|
|
5
|
-
import { FAQCategory } from '../../domain/entities/FAQEntity';
|
|
6
|
-
export interface UseFAQSearchResult {
|
|
7
|
-
searchQuery: string;
|
|
8
|
-
setSearchQuery: (query: string) => void;
|
|
9
|
-
filteredCategories: FAQCategory[];
|
|
10
|
-
hasResults: boolean;
|
|
11
|
-
}
|
|
12
|
-
export declare function useFAQSearch(categories: FAQCategory[]): UseFAQSearchResult;
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* FAQ Screen Component
|
|
3
|
-
* Full-screen FAQ viewer with search functionality
|
|
4
|
-
* Uses design system tokens for theming
|
|
5
|
-
*/
|
|
6
|
-
import React from 'react';
|
|
7
|
-
import { ViewStyle, TextStyle } from 'react-native';
|
|
8
|
-
import { FAQCategory } from '../../domain/entities/FAQEntity';
|
|
9
|
-
import { FAQSearchBarStyles } from '../components/FAQSearchBar';
|
|
10
|
-
import { FAQEmptyStateStyles } from '../components/FAQEmptyState';
|
|
11
|
-
import { FAQCategoryStyles } from '../components/FAQCategory';
|
|
12
|
-
export interface FAQScreenStyles {
|
|
13
|
-
container?: ViewStyle;
|
|
14
|
-
header?: ViewStyle;
|
|
15
|
-
title?: TextStyle;
|
|
16
|
-
content?: ViewStyle;
|
|
17
|
-
searchBar?: FAQSearchBarStyles;
|
|
18
|
-
emptyState?: FAQEmptyStateStyles;
|
|
19
|
-
category?: FAQCategoryStyles;
|
|
20
|
-
}
|
|
21
|
-
export interface FAQScreenProps {
|
|
22
|
-
categories: FAQCategory[];
|
|
23
|
-
searchPlaceholder: string;
|
|
24
|
-
emptySearchTitle: string;
|
|
25
|
-
emptySearchMessage: string;
|
|
26
|
-
headerTitle: string;
|
|
27
|
-
onBack?: () => void;
|
|
28
|
-
renderHeader?: (props: {
|
|
29
|
-
onBack: () => void;
|
|
30
|
-
}) => React.ReactElement | null;
|
|
31
|
-
styles?: FAQScreenStyles;
|
|
32
|
-
}
|
|
33
|
-
export declare const FAQScreen: React.FC<FAQScreenProps>;
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Feedback Entity
|
|
3
|
-
*/
|
|
4
|
-
export type FeedbackType = 'general' | 'bug_report' | 'feature_request' | 'improvement' | 'other';
|
|
5
|
-
export type FeedbackStatus = 'pending' | 'reviewed' | 'resolved' | 'closed';
|
|
6
|
-
export type FeedbackRating = 1 | 2 | 3 | 4 | 5;
|
|
7
|
-
export interface FeedbackEntity {
|
|
8
|
-
id: string;
|
|
9
|
-
userId: string | null;
|
|
10
|
-
userEmail?: string | null;
|
|
11
|
-
type: FeedbackType;
|
|
12
|
-
title: string;
|
|
13
|
-
description: string;
|
|
14
|
-
rating?: FeedbackRating;
|
|
15
|
-
status: FeedbackStatus;
|
|
16
|
-
deviceInfo?: {
|
|
17
|
-
platform: string;
|
|
18
|
-
osVersion: string;
|
|
19
|
-
appVersion: string;
|
|
20
|
-
};
|
|
21
|
-
metadata?: Record<string, unknown>;
|
|
22
|
-
createdAt: string;
|
|
23
|
-
updatedAt: string;
|
|
24
|
-
}
|
|
25
|
-
export declare function createFeedback(userId: string | null, type: FeedbackType, title: string, description: string, userEmail?: string | null, rating?: FeedbackRating, deviceInfo?: FeedbackEntity['deviceInfo'], metadata?: Record<string, unknown>): Omit<FeedbackEntity, 'id'>;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Feedback Repository Interface
|
|
3
|
-
*/
|
|
4
|
-
import type { FeedbackEntity } from '../entities/FeedbackEntity';
|
|
5
|
-
export interface FeedbackError {
|
|
6
|
-
message: string;
|
|
7
|
-
code?: 'SUBMIT_FAILED' | 'FETCH_FAILED' | 'DELETE_FAILED' | 'VALIDATION_ERROR';
|
|
8
|
-
}
|
|
9
|
-
export type FeedbackResult<T> = {
|
|
10
|
-
success: true;
|
|
11
|
-
data: T;
|
|
12
|
-
} | {
|
|
13
|
-
success: false;
|
|
14
|
-
error: FeedbackError;
|
|
15
|
-
};
|
|
16
|
-
export interface IFeedbackRepository {
|
|
17
|
-
submitFeedback(feedback: FeedbackEntity | Omit<FeedbackEntity, 'id'>): Promise<FeedbackResult<FeedbackEntity>>;
|
|
18
|
-
getUserFeedback(userId: string): Promise<FeedbackResult<FeedbackEntity[]>>;
|
|
19
|
-
deleteFeedback(feedbackId: string): Promise<FeedbackResult<boolean>>;
|
|
20
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Feedback Domain
|
|
3
|
-
* User feedback, bug reports
|
|
4
|
-
*/
|
|
5
|
-
export * from './presentation/components/FeedbackForm';
|
|
6
|
-
export * from './presentation/components/FeedbackModal';
|
|
7
|
-
export * from './presentation/components/SupportSection';
|
|
8
|
-
export * from './presentation/hooks/useFeedbackForm';
|
|
9
|
-
export * from './domain/entities/FeedbackEntity';
|
|
10
|
-
export * from './domain/repositories/IFeedbackRepository';
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Feedback Form Component
|
|
3
|
-
* Form for submitting user feedback with type, rating, and description
|
|
4
|
-
*/
|
|
5
|
-
import React from "react";
|
|
6
|
-
import type { FeedbackFormProps } from "./FeedbackFormProps";
|
|
7
|
-
export declare const FeedbackForm: React.FC<FeedbackFormProps>;
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import type { useAppDesignTokens } from "@umituz/react-native-design-system/theme";
|
|
2
|
-
export declare const getFeedbackFormStyles: (_tokens: ReturnType<typeof useAppDesignTokens>) => {
|
|
3
|
-
container: {
|
|
4
|
-
width: "100%";
|
|
5
|
-
};
|
|
6
|
-
typeContainer: {
|
|
7
|
-
marginBottom: number;
|
|
8
|
-
};
|
|
9
|
-
typeScroll: {
|
|
10
|
-
gap: number;
|
|
11
|
-
};
|
|
12
|
-
typeButton: {
|
|
13
|
-
flexDirection: "row";
|
|
14
|
-
alignItems: "center";
|
|
15
|
-
paddingHorizontal: number;
|
|
16
|
-
paddingVertical: number;
|
|
17
|
-
borderRadius: number;
|
|
18
|
-
borderWidth: number;
|
|
19
|
-
gap: number;
|
|
20
|
-
};
|
|
21
|
-
ratingContainer: {
|
|
22
|
-
alignItems: "center";
|
|
23
|
-
marginBottom: number;
|
|
24
|
-
};
|
|
25
|
-
stars: {
|
|
26
|
-
flexDirection: "row";
|
|
27
|
-
gap: number;
|
|
28
|
-
};
|
|
29
|
-
starButton: {
|
|
30
|
-
padding: number;
|
|
31
|
-
};
|
|
32
|
-
inputContainer: {
|
|
33
|
-
marginBottom: number;
|
|
34
|
-
};
|
|
35
|
-
textArea: {
|
|
36
|
-
textAlignVertical: "top";
|
|
37
|
-
minHeight: number;
|
|
38
|
-
borderWidth: number;
|
|
39
|
-
borderRadius: number;
|
|
40
|
-
padding: number;
|
|
41
|
-
};
|
|
42
|
-
errorText: {
|
|
43
|
-
marginTop: number;
|
|
44
|
-
};
|
|
45
|
-
submitButton: {
|
|
46
|
-
width: "100%";
|
|
47
|
-
};
|
|
48
|
-
};
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* FeedbackForm Props Types
|
|
3
|
-
*/
|
|
4
|
-
import type { FeedbackType, FeedbackRating } from "../../domain/entities/FeedbackEntity";
|
|
5
|
-
export interface FeedbackFormTexts {
|
|
6
|
-
ratingLabel: string;
|
|
7
|
-
descriptionPlaceholder: string;
|
|
8
|
-
submitButton: string;
|
|
9
|
-
submittingButton: string;
|
|
10
|
-
feedbackTypes: Array<{
|
|
11
|
-
type: FeedbackType;
|
|
12
|
-
label: string;
|
|
13
|
-
}>;
|
|
14
|
-
defaultTitle: (type: FeedbackType) => string;
|
|
15
|
-
}
|
|
16
|
-
export interface FeedbackFormProps {
|
|
17
|
-
onSubmit: (data: {
|
|
18
|
-
type: FeedbackType;
|
|
19
|
-
rating: FeedbackRating;
|
|
20
|
-
description: string;
|
|
21
|
-
title: string;
|
|
22
|
-
}) => Promise<void>;
|
|
23
|
-
texts: FeedbackFormTexts;
|
|
24
|
-
initialType?: FeedbackType;
|
|
25
|
-
isSubmitting?: boolean;
|
|
26
|
-
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Feedback Modal Component
|
|
3
|
-
* Modal wrapper for providing feedback
|
|
4
|
-
*/
|
|
5
|
-
import React from "react";
|
|
6
|
-
import type { FeedbackType, FeedbackRating } from "../../domain/entities/FeedbackEntity";
|
|
7
|
-
import type { FeedbackFormProps } from "./FeedbackFormProps";
|
|
8
|
-
export interface FeedbackModalProps {
|
|
9
|
-
visible: boolean;
|
|
10
|
-
onClose: () => void;
|
|
11
|
-
onSubmit: (data: {
|
|
12
|
-
type: FeedbackType;
|
|
13
|
-
rating: FeedbackRating;
|
|
14
|
-
description: string;
|
|
15
|
-
title: string;
|
|
16
|
-
}) => Promise<void>;
|
|
17
|
-
initialType?: FeedbackType;
|
|
18
|
-
isSubmitting?: boolean;
|
|
19
|
-
title?: string;
|
|
20
|
-
subtitle?: string;
|
|
21
|
-
texts: FeedbackFormProps['texts'];
|
|
22
|
-
}
|
|
23
|
-
export declare const FeedbackModal: React.FC<FeedbackModalProps>;
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Support Section Component
|
|
3
|
-
* Renders Support entry points: Feedback and Rating
|
|
4
|
-
* Agnostic of UI implementation via render props
|
|
5
|
-
*/
|
|
6
|
-
import React from "react";
|
|
7
|
-
import type { FeedbackType } from "../../domain/entities/FeedbackEntity";
|
|
8
|
-
export interface FeedbackConfig {
|
|
9
|
-
enabled?: boolean;
|
|
10
|
-
title?: string;
|
|
11
|
-
description?: string;
|
|
12
|
-
initialType?: FeedbackType;
|
|
13
|
-
onSubmit?: (data: {
|
|
14
|
-
type: FeedbackType;
|
|
15
|
-
rating: number;
|
|
16
|
-
description: string;
|
|
17
|
-
title: string;
|
|
18
|
-
}) => Promise<void>;
|
|
19
|
-
onPress?: () => void;
|
|
20
|
-
}
|
|
21
|
-
export interface RatingConfig {
|
|
22
|
-
enabled?: boolean;
|
|
23
|
-
title?: string;
|
|
24
|
-
description?: string;
|
|
25
|
-
storeUrl?: string;
|
|
26
|
-
onRate?: () => void;
|
|
27
|
-
}
|
|
28
|
-
export interface FeedbackModalTexts {
|
|
29
|
-
title?: string;
|
|
30
|
-
ratingLabel: string;
|
|
31
|
-
descriptionPlaceholder: string;
|
|
32
|
-
submitButton: string;
|
|
33
|
-
submittingButton: string;
|
|
34
|
-
feedbackTypes: Array<{
|
|
35
|
-
type: FeedbackType;
|
|
36
|
-
label: string;
|
|
37
|
-
}>;
|
|
38
|
-
defaultTitle: (type: FeedbackType) => string;
|
|
39
|
-
}
|
|
40
|
-
export interface SupportSectionProps {
|
|
41
|
-
feedbackConfig: {
|
|
42
|
-
enabled: boolean;
|
|
43
|
-
config?: FeedbackConfig;
|
|
44
|
-
};
|
|
45
|
-
ratingConfig: {
|
|
46
|
-
enabled: boolean;
|
|
47
|
-
config?: RatingConfig;
|
|
48
|
-
};
|
|
49
|
-
renderSection: (props: {
|
|
50
|
-
title: string;
|
|
51
|
-
children: React.ReactNode;
|
|
52
|
-
}) => React.ReactElement | null;
|
|
53
|
-
renderItem: (props: {
|
|
54
|
-
title: string;
|
|
55
|
-
icon: string;
|
|
56
|
-
onPress: () => void;
|
|
57
|
-
isLast?: boolean;
|
|
58
|
-
}) => React.ReactElement | null;
|
|
59
|
-
/** Texts for the feedback modal */
|
|
60
|
-
feedbackModalTexts?: FeedbackModalTexts;
|
|
61
|
-
}
|
|
62
|
-
export declare const SupportSection: React.FC<SupportSectionProps>;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Feedback Form Hook
|
|
3
|
-
*/
|
|
4
|
-
import type { FeedbackType, FeedbackRating } from '../../domain/entities/FeedbackEntity';
|
|
5
|
-
export interface FeedbackFormState {
|
|
6
|
-
type: FeedbackType;
|
|
7
|
-
title: string;
|
|
8
|
-
description: string;
|
|
9
|
-
rating?: FeedbackRating;
|
|
10
|
-
}
|
|
11
|
-
export declare function useFeedbackForm(defaultValues?: Partial<FeedbackFormState>): {
|
|
12
|
-
formState: FeedbackFormState;
|
|
13
|
-
setType: (type: FeedbackType) => void;
|
|
14
|
-
setTitle: (title: string) => void;
|
|
15
|
-
setDescription: (description: string) => void;
|
|
16
|
-
setRating: (rating: FeedbackRating | undefined) => void;
|
|
17
|
-
reset: () => void;
|
|
18
|
-
isValid: boolean;
|
|
19
|
-
};
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* AchievementCard Component
|
|
3
|
-
* Displays achievement - all text via props
|
|
4
|
-
*/
|
|
5
|
-
import React from "react";
|
|
6
|
-
import { type ViewStyle, type TextStyle } from "react-native";
|
|
7
|
-
export interface AchievementCardProps {
|
|
8
|
-
title: string;
|
|
9
|
-
description: string;
|
|
10
|
-
icon: React.ReactNode;
|
|
11
|
-
isUnlocked: boolean;
|
|
12
|
-
progress: number;
|
|
13
|
-
containerStyle?: ViewStyle;
|
|
14
|
-
titleStyle?: TextStyle;
|
|
15
|
-
descriptionStyle?: TextStyle;
|
|
16
|
-
progressBarStyle?: ViewStyle;
|
|
17
|
-
unlockedColor?: string;
|
|
18
|
-
lockedColor?: string;
|
|
19
|
-
backgroundColor?: string;
|
|
20
|
-
textColor?: string;
|
|
21
|
-
subtextColor?: string;
|
|
22
|
-
}
|
|
23
|
-
export declare const AchievementCard: React.FC<AchievementCardProps>;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* AchievementToast Component
|
|
3
|
-
* Shows achievement unlock notification - all text via props
|
|
4
|
-
*/
|
|
5
|
-
import React from "react";
|
|
6
|
-
import { type ViewStyle, type TextStyle } from "react-native";
|
|
7
|
-
export interface AchievementToastProps {
|
|
8
|
-
visible: boolean;
|
|
9
|
-
title: string;
|
|
10
|
-
label: string;
|
|
11
|
-
icon: React.ReactNode;
|
|
12
|
-
onDismiss: () => void;
|
|
13
|
-
duration?: number;
|
|
14
|
-
containerStyle?: ViewStyle;
|
|
15
|
-
labelStyle?: TextStyle;
|
|
16
|
-
titleStyle?: TextStyle;
|
|
17
|
-
backgroundColor?: string;
|
|
18
|
-
textColor?: string;
|
|
19
|
-
labelColor?: string;
|
|
20
|
-
}
|
|
21
|
-
export declare const AchievementToast: React.FC<AchievementToastProps>;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* GamificationScreen AchievementsList Component
|
|
3
|
-
*/
|
|
4
|
-
import React from "react";
|
|
5
|
-
import { type TextStyle } from "react-native";
|
|
6
|
-
import type { AchievementItemProps } from "../types/AchievementItemProps";
|
|
7
|
-
export interface AchievementsListProps {
|
|
8
|
-
achievementsTitle: string;
|
|
9
|
-
achievements: Array<Omit<AchievementItemProps, "accentColor" | "backgroundColor" | "textColor" | "subtextColor" | "lockedOpacity">>;
|
|
10
|
-
emptyAchievementsText?: string;
|
|
11
|
-
accentColor: string;
|
|
12
|
-
cardBackgroundColor: string;
|
|
13
|
-
textColor: string;
|
|
14
|
-
subtextColor: string;
|
|
15
|
-
sectionTitleStyle?: TextStyle;
|
|
16
|
-
}
|
|
17
|
-
export declare const AchievementsList: React.FC<AchievementsListProps>;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* GamificationScreen - Pure Presentational Component
|
|
3
|
-
* Renders the gamification dashboard with all data provided as props
|
|
4
|
-
* Under 200 lines - only presentation logic
|
|
5
|
-
*/
|
|
6
|
-
import React from "react";
|
|
7
|
-
import type { GamificationScreenProps } from "./types";
|
|
8
|
-
/**
|
|
9
|
-
* Internal component that renders the screen with all props
|
|
10
|
-
*/
|
|
11
|
-
export declare const GamificationScreenInner: React.FC<GamificationScreenProps>;
|
package/dist/domains/gamification/components/GamificationScreen/GamificationScreenWithConfig.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* GamificationScreen With Config
|
|
3
|
-
* Component that uses the hook to fetch data and render the screen
|
|
4
|
-
* Separated to satisfy React Hooks rules
|
|
5
|
-
*/
|
|
6
|
-
import React from "react";
|
|
7
|
-
import type { GamificationConfigProps } from "./types";
|
|
8
|
-
/**
|
|
9
|
-
* Component that uses the hook - separated to satisfy React Hooks rules
|
|
10
|
-
*/
|
|
11
|
-
export declare const GamificationScreenWithConfig: React.FC<GamificationConfigProps>;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* GamificationScreen StatsGrid Component
|
|
3
|
-
*/
|
|
4
|
-
import React from "react";
|
|
5
|
-
import { type TextStyle } from "react-native";
|
|
6
|
-
import type { StatsCardProps } from "../StatsCard";
|
|
7
|
-
export interface StatsGridProps {
|
|
8
|
-
statsTitle: string;
|
|
9
|
-
stats: Array<Omit<StatsCardProps, "accentColor" | "backgroundColor" | "textColor" | "subtextColor">>;
|
|
10
|
-
accentColor: string;
|
|
11
|
-
cardBackgroundColor: string;
|
|
12
|
-
textColor: string;
|
|
13
|
-
subtextColor: string;
|
|
14
|
-
sectionTitleStyle?: TextStyle;
|
|
15
|
-
}
|
|
16
|
-
export declare const StatsGrid: React.FC<StatsGridProps>;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* GamificationScreen Component
|
|
3
|
-
* Full gamification screen with integrated hook
|
|
4
|
-
* Generic for 100+ apps - NO hardcoded strings
|
|
5
|
-
*
|
|
6
|
-
* Split into multiple files to keep each under 200 lines:
|
|
7
|
-
* - GamificationScreen.tsx: Pure presentational component
|
|
8
|
-
* - GamificationScreenWithConfig.tsx: Config-based version with hook
|
|
9
|
-
* - index.tsx: Main entry point that routes to appropriate component
|
|
10
|
-
*/
|
|
11
|
-
import React from "react";
|
|
12
|
-
import type { GamificationScreenProps, GamificationConfigProps } from "./types";
|
|
13
|
-
/**
|
|
14
|
-
* GamificationScreen that accepts either detailed props OR a config object
|
|
15
|
-
* When config is provided, a hook consumer component is used
|
|
16
|
-
*/
|
|
17
|
-
export declare const GamificationScreen: React.FC<GamificationScreenProps | GamificationConfigProps>;
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* GamificationScreen Styles
|
|
3
|
-
*/
|
|
4
|
-
export declare const styles: {
|
|
5
|
-
container: {
|
|
6
|
-
flex: number;
|
|
7
|
-
};
|
|
8
|
-
scrollView: {
|
|
9
|
-
flex: number;
|
|
10
|
-
};
|
|
11
|
-
scrollContent: {
|
|
12
|
-
padding: number;
|
|
13
|
-
paddingBottom: number;
|
|
14
|
-
};
|
|
15
|
-
header: {
|
|
16
|
-
marginBottom: number;
|
|
17
|
-
};
|
|
18
|
-
title: {
|
|
19
|
-
fontSize: number;
|
|
20
|
-
fontWeight: "bold";
|
|
21
|
-
};
|
|
22
|
-
section: {
|
|
23
|
-
marginBottom: number;
|
|
24
|
-
};
|
|
25
|
-
sectionTitle: {
|
|
26
|
-
fontSize: number;
|
|
27
|
-
fontWeight: "600";
|
|
28
|
-
marginBottom: number;
|
|
29
|
-
};
|
|
30
|
-
statsGrid: {
|
|
31
|
-
flexDirection: "row";
|
|
32
|
-
flexWrap: "wrap";
|
|
33
|
-
gap: number;
|
|
34
|
-
};
|
|
35
|
-
emptyText: {
|
|
36
|
-
fontSize: number;
|
|
37
|
-
textAlign: "center";
|
|
38
|
-
paddingVertical: number;
|
|
39
|
-
};
|
|
40
|
-
};
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* GamificationScreen Types
|
|
3
|
-
* Generic types for 100+ apps - NO app-specific code
|
|
4
|
-
*/
|
|
5
|
-
import type React from 'react';
|
|
6
|
-
import type { LevelProgressProps } from "../LevelProgress";
|
|
7
|
-
import type { StatsCardProps } from "../StatsCard";
|
|
8
|
-
import type { AchievementItemProps } from "../types/AchievementItemProps";
|
|
9
|
-
import type { StreakDisplayProps } from "../StreakDisplay";
|
|
10
|
-
import type { ViewStyle, TextStyle } from "react-native";
|
|
11
|
-
import type { GamificationConfig } from "../../types";
|
|
12
|
-
export interface GamificationConfigProps extends Partial<Omit<GamificationScreenProps, 'config'>> {
|
|
13
|
-
config: GamificationConfig;
|
|
14
|
-
}
|
|
15
|
-
export interface GamificationScreenProps {
|
|
16
|
-
title: string;
|
|
17
|
-
statsTitle: string;
|
|
18
|
-
achievementsTitle: string;
|
|
19
|
-
streakTitle: string;
|
|
20
|
-
levelProps: Omit<LevelProgressProps, "primaryColor" | "backgroundColor" | "textColor" | "subtextColor">;
|
|
21
|
-
stats: Array<Omit<StatsCardProps, "accentColor" | "backgroundColor" | "textColor" | "subtextColor">>;
|
|
22
|
-
achievements: Array<Omit<AchievementItemProps, "accentColor" | "backgroundColor" | "textColor" | "subtextColor" | "lockedOpacity">>;
|
|
23
|
-
streakProps?: Omit<StreakDisplayProps, "primaryColor" | "backgroundColor" | "textColor" | "subtextColor">;
|
|
24
|
-
emptyAchievementsText?: string;
|
|
25
|
-
containerStyle?: ViewStyle;
|
|
26
|
-
headerStyle?: ViewStyle;
|
|
27
|
-
titleStyle?: TextStyle;
|
|
28
|
-
sectionTitleStyle?: TextStyle;
|
|
29
|
-
accentColor?: string;
|
|
30
|
-
backgroundColor?: string;
|
|
31
|
-
cardBackgroundColor?: string;
|
|
32
|
-
textColor?: string;
|
|
33
|
-
subtextColor?: string;
|
|
34
|
-
headerComponent?: React.ReactNode;
|
|
35
|
-
}
|
|
36
|
-
export interface GamificationScreenStyleProps {
|
|
37
|
-
accentColor: string;
|
|
38
|
-
backgroundColor: string;
|
|
39
|
-
cardBackgroundColor: string;
|
|
40
|
-
textColor: string;
|
|
41
|
-
subtextColor: string;
|
|
42
|
-
}
|