@umituz/react-native-settings 5.3.3 → 5.3.5

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 (104) hide show
  1. package/package.json +5 -5
  2. package/src/account.ts +4 -40
  3. package/src/domains/about/presentation/components/AboutContent.tsx +2 -1
  4. package/src/domains/about/presentation/components/AboutHeader.tsx +2 -1
  5. package/src/domains/about/presentation/components/AboutSettingItem.tsx +2 -1
  6. package/src/domains/about/presentation/screens/AboutScreen.tsx +4 -1
  7. package/src/domains/about/presentation/screens/AboutScreenContent.tsx +1 -1
  8. package/src/domains/appearance/hooks/useAppearance.ts +1 -1
  9. package/src/domains/appearance/hooks/useAppearanceActions.ts +1 -1
  10. package/src/domains/appearance/presentation/components/AppearanceHeader.tsx +2 -2
  11. package/src/domains/appearance/presentation/components/AppearancePreview.tsx +2 -2
  12. package/src/domains/appearance/presentation/components/ColorPicker.tsx +2 -5
  13. package/src/domains/appearance/presentation/components/CustomColorsSection.tsx +2 -2
  14. package/src/domains/appearance/presentation/components/ThemeModeSection.tsx +2 -2
  15. package/src/domains/appearance/presentation/components/ThemeOption.tsx +2 -2
  16. package/src/domains/appearance/presentation/screens/AppearanceScreen.tsx +3 -6
  17. package/src/domains/appearance/types/index.ts +1 -4
  18. package/src/domains/dev/presentation/components/DevSettingsSection.tsx +2 -1
  19. package/src/domains/dev/presentation/components/EnvViewerSetting.tsx +2 -1
  20. package/src/domains/dev/presentation/screens/EnvViewerScreen.tsx +4 -10
  21. package/src/domains/disclaimer/presentation/components/DisclaimerCard.tsx +2 -3
  22. package/src/domains/disclaimer/presentation/components/DisclaimerModal.tsx +3 -1
  23. package/src/domains/disclaimer/presentation/components/DisclaimerSetting.tsx +1 -1
  24. package/src/domains/disclaimer/presentation/screens/DisclaimerScreen.tsx +4 -9
  25. package/src/domains/faqs/presentation/components/FAQCategory.tsx +2 -1
  26. package/src/domains/faqs/presentation/components/FAQEmptyState.tsx +2 -1
  27. package/src/domains/faqs/presentation/components/FAQItem.tsx +2 -1
  28. package/src/domains/faqs/presentation/components/FAQSearchBar.tsx +2 -1
  29. package/src/domains/faqs/presentation/screens/FAQScreen.tsx +4 -1
  30. package/src/domains/feedback/presentation/components/FeedbackForm.styles.ts +1 -1
  31. package/src/domains/feedback/presentation/components/FeedbackForm.tsx +2 -2
  32. package/src/domains/feedback/presentation/components/FeedbackModal.tsx +4 -1
  33. package/src/domains/gamification/components/AchievementCard.tsx +3 -1
  34. package/src/domains/gamification/components/AchievementItem.tsx +2 -1
  35. package/src/domains/gamification/components/AchievementToast.tsx +2 -1
  36. package/src/domains/gamification/components/GamificationScreen/AchievementsList.tsx +1 -1
  37. package/src/domains/gamification/components/GamificationScreen/GamificationScreen.tsx +4 -1
  38. package/src/domains/gamification/components/GamificationScreen/StatsGrid.tsx +1 -1
  39. package/src/domains/gamification/components/LevelProgress.tsx +3 -1
  40. package/src/domains/gamification/components/PointsBadge.tsx +3 -1
  41. package/src/domains/gamification/components/StatsCard.tsx +3 -1
  42. package/src/domains/gamification/components/StreakDisplay.tsx +3 -1
  43. package/src/domains/gamification/store/gamificationStore.ts +1 -1
  44. package/src/domains/legal/domain/services/StyleCacheService.ts +1 -1
  45. package/src/domains/legal/presentation/components/LegalDocumentsList.tsx +2 -1
  46. package/src/domains/legal/presentation/components/LegalItem.tsx +1 -1
  47. package/src/domains/legal/presentation/components/LegalScreenHeader.tsx +2 -1
  48. package/src/domains/legal/presentation/screens/LegalContentScreen.tsx +4 -3
  49. package/src/domains/legal/presentation/screens/LegalScreen.tsx +2 -1
  50. package/src/domains/legal/presentation/screens/PrivacyPolicyScreen.tsx +1 -1
  51. package/src/domains/legal/presentation/screens/TermsOfServiceScreen.tsx +1 -1
  52. package/src/domains/localization/infrastructure/components/LanguageSwitcher.tsx +2 -1
  53. package/src/domains/localization/infrastructure/storage/LanguageInitializer.ts +1 -1
  54. package/src/domains/localization/infrastructure/storage/LanguageSwitcher.ts +1 -1
  55. package/src/domains/localization/infrastructure/storage/LocalizationStore.ts +1 -1
  56. package/src/domains/localization/presentation/components/LanguageItem.tsx +2 -1
  57. package/src/domains/localization/presentation/components/LanguageSection.tsx +3 -5
  58. package/src/domains/localization/presentation/screens/LanguageSelectionScreen.tsx +3 -7
  59. package/src/domains/notifications/infrastructure/hooks/useNotificationSettings.ts +1 -1
  60. package/src/domains/notifications/infrastructure/storage/UnifiedNotificationStore.ts +1 -1
  61. package/src/domains/notifications/presentation/components/RemindersNavRow.styles.ts +1 -1
  62. package/src/domains/notifications/presentation/components/RemindersNavRow.tsx +2 -2
  63. package/src/domains/notifications/presentation/components/SettingRow.tsx +2 -2
  64. package/src/domains/notifications/presentation/screens/NotificationSettingsScreen.styles.ts +1 -1
  65. package/src/domains/notifications/presentation/screens/NotificationSettingsScreen.tsx +4 -9
  66. package/src/domains/notifications/presentation/screens/NotificationsScreen.tsx +4 -13
  67. package/src/domains/notifications/quietHours/presentation/components/QuietHoursCard.tsx +2 -2
  68. package/src/domains/notifications/reminders/presentation/components/FormButton.tsx +2 -2
  69. package/src/domains/notifications/reminders/presentation/components/FrequencySelector.tsx +2 -2
  70. package/src/domains/notifications/reminders/presentation/components/ReminderForm.styles.ts +1 -1
  71. package/src/domains/notifications/reminders/presentation/components/ReminderForm.tsx +2 -2
  72. package/src/domains/notifications/reminders/presentation/components/ReminderItem.tsx +2 -2
  73. package/src/domains/notifications/reminders/presentation/components/TimePresetSelector.tsx +2 -2
  74. package/src/domains/notifications/reminders/presentation/components/WeekdaySelector.tsx +2 -2
  75. package/src/domains/notifications/reminders/presentation/screens/ReminderListScreen.tsx +4 -9
  76. package/src/domains/rating/infrastructure/storage/RatingStorage.ts +1 -1
  77. package/src/domains/rating/presentation/components/RatingPromptModal.tsx +3 -7
  78. package/src/domains/rating/presentation/components/StarRating.tsx +2 -1
  79. package/src/domains/video-tutorials/presentation/components/VideoTutorialCard.tsx +2 -1
  80. package/src/domains/video-tutorials/presentation/screens/VideoTutorialsScreen.tsx +4 -9
  81. package/src/index.ts +1 -3
  82. package/src/infrastructure/repositories/SettingsRepository.ts +1 -1
  83. package/src/presentation/components/SettingsFooter.tsx +1 -1
  84. package/src/presentation/components/SettingsItemCard.tsx +2 -5
  85. package/src/presentation/components/SettingsNavigationItem.tsx +1 -1
  86. package/src/presentation/components/SettingsSection.tsx +2 -1
  87. package/src/presentation/components/settings/SettingsItemCardContent.tsx +2 -1
  88. package/src/presentation/components/settings/SettingsItemCardRightElement.tsx +1 -1
  89. package/src/presentation/components/settings/SettingsItemCardSection.tsx +1 -1
  90. package/src/presentation/hooks/mutations/useSettingsMutations.ts +1 -1
  91. package/src/presentation/hooks/queries/useSettingsQuery.ts +1 -1
  92. package/src/presentation/hooks/useSettingsScreenConfig.ts +26 -51
  93. package/src/presentation/navigation/SettingsStackNavigator.tsx +1 -4
  94. package/src/presentation/navigation/hooks/useSettingsScreens.ts +4 -8
  95. package/src/presentation/navigation/types.ts +4 -38
  96. package/src/presentation/screens/SettingsScreen.tsx +1 -7
  97. package/src/presentation/screens/components/SettingsContent.tsx +2 -4
  98. package/src/presentation/screens/components/SettingsHeader.tsx +3 -1
  99. package/src/presentation/screens/components/sections/ProfileSectionLoader.tsx +6 -7
  100. package/src/presentation/screens/components/types/SettingsContentProps.ts +0 -2
  101. package/src/presentation/screens/hooks/useSettingsScreen.ts +1 -1
  102. package/src/presentation/screens/types/CustomSection.ts +1 -1
  103. package/src/presentation/utils/accountConfigUtils.ts +1 -1
  104. package/src/presentation/utils/screenFactory.ts +1 -1
@@ -6,7 +6,8 @@
6
6
 
7
7
  import React from "react";
8
8
  import { View, StyleSheet } from "react-native";
9
- import { AtomicText, useAppDesignTokens } from "@umituz/react-native-design-system";
9
+ import { AtomicText } from "@umituz/react-native-design-system/atoms";
10
+ import { useAppDesignTokens } from "@umituz/react-native-design-system/theme";
10
11
  import { LegalItem } from "./LegalItem";
11
12
  import { UrlHandlerService } from "../../domain/services/UrlHandlerService";
12
13
 
@@ -6,7 +6,7 @@
6
6
  */
7
7
 
8
8
  import React from "react";
9
- import { ListItem } from "@umituz/react-native-design-system";
9
+ import { ListItem } from "@umituz/react-native-design-system/molecules";
10
10
 
11
11
  export interface LegalItemProps {
12
12
  /**
@@ -6,7 +6,8 @@
6
6
 
7
7
  import React from "react";
8
8
  import { View, StyleSheet } from "react-native";
9
- import { AtomicText, useAppDesignTokens } from "@umituz/react-native-design-system";
9
+ import { AtomicText } from "@umituz/react-native-design-system/atoms";
10
+ import { useAppDesignTokens } from "@umituz/react-native-design-system/theme";
10
11
 
11
12
  interface LegalScreenHeaderProps {
12
13
  title?: string;
@@ -4,12 +4,13 @@
4
4
  */
5
5
  import React from "react";
6
6
  import { View, StyleSheet } from "react-native";
7
- import { useAppDesignTokens, type DesignTokens, ScreenLayout } from "@umituz/react-native-design-system";
8
- import { AtomicText, AtomicButton } from "@umituz/react-native-design-system";
7
+ import { AtomicText, AtomicButton } from "@umituz/react-native-design-system/atoms";
8
+ import { ScreenLayout } from "@umituz/react-native-design-system/layouts";
9
+ import { useAppNavigation, NavigationHeader } from "@umituz/react-native-design-system/molecules";
10
+ import { useAppDesignTokens, type DesignTokens } from "@umituz/react-native-design-system/theme";
9
11
  import { UrlHandlerService } from "../../domain/services/UrlHandlerService";
10
12
  import { ContentValidationService } from "../../domain/services/ContentValidationService";
11
13
  import { StyleCacheService } from "../../domain/services/StyleCacheService";
12
- import { useAppNavigation, NavigationHeader } from "@umituz/react-native-design-system";
13
14
 
14
15
  export interface LegalContentScreenProps {
15
16
  content?: string;
@@ -6,7 +6,8 @@
6
6
  */
7
7
 
8
8
  import React from "react";
9
- import { ScreenLayout, NavigationHeader, useAppNavigation } from "@umituz/react-native-design-system";
9
+ import { ScreenLayout } from "@umituz/react-native-design-system/layouts";
10
+ import { NavigationHeader, useAppNavigation } from "@umituz/react-native-design-system/molecules";
10
11
  import { LegalScreenHeader } from "../components/LegalScreenHeader";
11
12
  import { LegalDocumentsList } from "../components/LegalDocumentsList";
12
13
 
@@ -4,7 +4,7 @@
4
4
  */
5
5
  import React from "react";
6
6
  import { StyleSheet } from "react-native";
7
- import type { DesignTokens } from "@umituz/react-native-design-system";
7
+ import type { DesignTokens } from "@umituz/react-native-design-system/theme";
8
8
  import { LegalContentScreen } from "./LegalContentScreen";
9
9
 
10
10
  export interface PrivacyPolicyScreenProps {
@@ -4,7 +4,7 @@
4
4
  */
5
5
  import React from "react";
6
6
  import { StyleSheet } from "react-native";
7
- import type { DesignTokens } from "@umituz/react-native-design-system";
7
+ import type { DesignTokens } from "@umituz/react-native-design-system/theme";
8
8
  import { LegalContentScreen } from "./LegalContentScreen";
9
9
 
10
10
  export interface TermsOfServiceScreenProps {
@@ -5,7 +5,8 @@
5
5
 
6
6
  import React, { useMemo } from 'react';
7
7
  import { TouchableOpacity, type StyleProp, type ViewStyle, type TextStyle } from 'react-native';
8
- import { useAppDesignTokens, AtomicText } from '@umituz/react-native-design-system';
8
+ import { AtomicText } from '@umituz/react-native-design-system/atoms';
9
+ import { useAppDesignTokens } from '@umituz/react-native-design-system/theme';
9
10
  import { useLanguageSwitcher } from './useLanguageSwitcher';
10
11
  import { styles, DEFAULT_CONFIG_VALUES } from './LanguageSwitcher.styles';
11
12
 
@@ -7,7 +7,7 @@
7
7
  * - i18n setup
8
8
  */
9
9
 
10
- import { storageRepository } from '@umituz/react-native-design-system';
10
+ import { storageRepository } from '@umituz/react-native-design-system/storage';
11
11
  import i18n from '../config/i18n';
12
12
  import { languageRepository } from '../repository/LanguageRepository';
13
13
  import { getDeviceLocale } from '../config/languages';
@@ -6,7 +6,7 @@
6
6
  * - Persistence
7
7
  */
8
8
 
9
- import { storageRepository } from '@umituz/react-native-design-system';
9
+ import { storageRepository } from '@umituz/react-native-design-system/storage';
10
10
  import i18n from '../config/i18n';
11
11
  import { languageRepository } from '../repository/LanguageRepository';
12
12
  import { isDev } from '../../../../utils/devUtils';
@@ -3,7 +3,7 @@
3
3
  * Manages localization state using createStore pattern for consistency
4
4
  */
5
5
 
6
- import { createStore, storageService } from "@umituz/react-native-design-system";
6
+ import { createStore, storageService } from "@umituz/react-native-design-system/storage";
7
7
  import type { LocalizationState, LocalizationActions, LocalizationGetters } from "./types/LocalizationState";
8
8
  import { languageRepository } from "../repository/LanguageRepository";
9
9
  import { InitializationManager, LanguageSwitchManager, localizationGetters } from "./localizationStoreUtils";
@@ -13,7 +13,8 @@ import {
13
13
  type ViewStyle,
14
14
  type TextStyle,
15
15
  } from 'react-native';
16
- import { useAppDesignTokens, AtomicText, AtomicIcon } from '@umituz/react-native-design-system';
16
+ import { AtomicText, AtomicIcon } from '@umituz/react-native-design-system/atoms';
17
+ import { useAppDesignTokens } from '@umituz/react-native-design-system/theme';
17
18
  import type { Language } from '../../infrastructure/storage/types/Language';
18
19
  import { styles } from './LanguageItem.styles';
19
20
 
@@ -1,10 +1,8 @@
1
1
  import React from 'react';
2
2
  import { View, StyleSheet, type ViewStyle } from 'react-native';
3
- import {
4
- useAppDesignTokens,
5
- AtomicText,
6
- ListItem,
7
- } from '@umituz/react-native-design-system';
3
+ import { AtomicText } from '@umituz/react-native-design-system/atoms';
4
+ import { ListItem } from '@umituz/react-native-design-system/molecules';
5
+ import { useAppDesignTokens } from '@umituz/react-native-design-system/theme';
8
6
  import { useLocalization } from '../../infrastructure/hooks/useLocalization';
9
7
  import { getLanguageByCode } from '../../infrastructure/config/languages';
10
8
  import { useSettingsNavigation } from '../../../../presentation/navigation/hooks/useSettingsNavigation';
@@ -5,13 +5,9 @@
5
5
 
6
6
  import React from 'react';
7
7
  import { FlatList } from 'react-native';
8
- import {
9
- useAppDesignTokens,
10
- SearchBar,
11
- ScreenLayout,
12
- NavigationHeader,
13
- useAppNavigation,
14
- } from '@umituz/react-native-design-system';
8
+ import { ScreenLayout } from '@umituz/react-native-design-system/layouts';
9
+ import { SearchBar, NavigationHeader, useAppNavigation } from '@umituz/react-native-design-system/molecules';
10
+ import { useAppDesignTokens } from '@umituz/react-native-design-system/theme';
15
11
  import { useLanguageSelection } from '../../infrastructure/hooks/useLanguageSelection';
16
12
  import { LanguageItem } from '../components/LanguageItem';
17
13
  import type { Language } from '../../infrastructure/storage/types/Language';
@@ -3,7 +3,7 @@
3
3
  */
4
4
 
5
5
  import { useEffect, useRef } from 'react';
6
- import { createStore } from '@umituz/react-native-design-system';
6
+ import { createStore } from '@umituz/react-native-design-system/storage';
7
7
 
8
8
  interface NotificationSettingsState {
9
9
  notificationsEnabled: boolean;
@@ -10,7 +10,7 @@
10
10
  */
11
11
 
12
12
  import { useMemo } from 'react';
13
- import { createStore, storageService } from '@umituz/react-native-design-system';
13
+ import { createStore, storageService } from '@umituz/react-native-design-system/storage';
14
14
  import type { Reminder, QuietHoursConfig, NotificationPreferences } from '../services/types';
15
15
 
16
16
  // ============================================================================
@@ -3,7 +3,7 @@
3
3
  */
4
4
 
5
5
  import { StyleSheet } from 'react-native';
6
- import type { DesignTokens } from '@umituz/react-native-design-system';
6
+ import type { DesignTokens } from '@umituz/react-native-design-system/theme';
7
7
 
8
8
  export const createStyles = (tokens: DesignTokens) =>
9
9
  StyleSheet.create({
@@ -5,9 +5,9 @@
5
5
 
6
6
  import React from 'react';
7
7
  import { View, TouchableOpacity } from 'react-native';
8
- import { AtomicText, AtomicIcon } from '@umituz/react-native-design-system';
8
+ import { AtomicText, AtomicIcon } from '@umituz/react-native-design-system/atoms';
9
+ import { useAppDesignTokens } from '@umituz/react-native-design-system/theme';
9
10
  import { createStyles } from './RemindersNavRow.styles';
10
- import { useAppDesignTokens } from '@umituz/react-native-design-system';
11
11
 
12
12
  export interface RemindersNavRowProps {
13
13
  title: string;
@@ -5,8 +5,8 @@
5
5
 
6
6
  import React, { useMemo, useCallback } from 'react';
7
7
  import { View, StyleSheet, Switch } from 'react-native';
8
- import { AtomicText, AtomicIcon } from '@umituz/react-native-design-system';
9
- import { useAppDesignTokens } from '@umituz/react-native-design-system';
8
+ import { AtomicText, AtomicIcon } from '@umituz/react-native-design-system/atoms';
9
+ import { useAppDesignTokens } from '@umituz/react-native-design-system/theme';
10
10
 
11
11
  export interface SettingRowProps {
12
12
  iconName: string;
@@ -4,7 +4,7 @@
4
4
  */
5
5
 
6
6
  import { StyleSheet } from 'react-native';
7
- import type { DesignTokens } from '@umituz/react-native-design-system';
7
+ import type { DesignTokens } from '@umituz/react-native-design-system/theme';
8
8
 
9
9
  export const createStyles = (tokens: DesignTokens) =>
10
10
  StyleSheet.create({
@@ -5,15 +5,10 @@
5
5
 
6
6
  import React from 'react';
7
7
  import { View } from 'react-native';
8
- import {
9
- AtomicCard,
10
- AtomicDatePicker,
11
- ScreenLayout,
12
- AtomicSpinner,
13
- NavigationHeader,
14
- useAppDesignTokens,
15
- useAppNavigation
16
- } from '@umituz/react-native-design-system';
8
+ import { AtomicCard, AtomicDatePicker, AtomicSpinner } from '@umituz/react-native-design-system/atoms';
9
+ import { ScreenLayout } from '@umituz/react-native-design-system/layouts';
10
+ import { NavigationHeader, useAppNavigation } from '@umituz/react-native-design-system/molecules';
11
+ import { useAppDesignTokens } from '@umituz/react-native-design-system/theme';
17
12
  import { QuietHoursCard } from '../../quietHours/presentation/components/QuietHoursCard';
18
13
  import { SettingRow } from '../components/SettingRow';
19
14
  import { RemindersNavRow } from '../components/RemindersNavRow';
@@ -7,19 +7,10 @@
7
7
 
8
8
  import React, { useMemo } from 'react';
9
9
  import { View, StyleSheet } from 'react-native';
10
- import {
11
- AtomicIcon,
12
- AtomicCard,
13
- AtomicText,
14
- ScreenLayout,
15
- BASE_TOKENS,
16
- AtomicSpinner,
17
- type IconColor,
18
- NavigationHeader,
19
- useAppNavigation,
20
- useAppDesignTokens,
21
- type DesignTokens
22
- } from '@umituz/react-native-design-system';
10
+ import { AtomicIcon, AtomicCard, AtomicText, AtomicSpinner, type IconColor } from '@umituz/react-native-design-system/atoms';
11
+ import { ScreenLayout } from '@umituz/react-native-design-system/layouts';
12
+ import { NavigationHeader, useAppNavigation } from '@umituz/react-native-design-system/molecules';
13
+ import { BASE_TOKENS, useAppDesignTokens, type DesignTokens } from '@umituz/react-native-design-system/theme';
23
14
  import { Switch } from 'react-native';
24
15
  import { useNotificationSettings } from '../../infrastructure/hooks/useNotificationSettings';
25
16
 
@@ -5,9 +5,9 @@
5
5
 
6
6
  import React, { useMemo } from 'react';
7
7
  import { View, TouchableOpacity, StyleSheet } from 'react-native';
8
- import { AtomicText, AtomicIcon, AtomicCard } from '@umituz/react-native-design-system';
8
+ import { AtomicText, AtomicIcon, AtomicCard } from '@umituz/react-native-design-system/atoms';
9
+ import { useAppDesignTokens } from '@umituz/react-native-design-system/theme';
9
10
  import { Switch } from 'react-native';
10
- import { useAppDesignTokens } from '@umituz/react-native-design-system';
11
11
  import type { QuietHoursConfig, QuietHoursTranslations } from '../../../infrastructure/services/types';
12
12
 
13
13
  export interface QuietHoursCardProps {
@@ -5,8 +5,8 @@
5
5
 
6
6
  import React, { useMemo } from 'react';
7
7
  import { TouchableOpacity, StyleSheet } from 'react-native';
8
- import { AtomicText } from '@umituz/react-native-design-system';
9
- import { useAppDesignTokens } from '@umituz/react-native-design-system';
8
+ import { AtomicText } from '@umituz/react-native-design-system/atoms';
9
+ import { useAppDesignTokens } from '@umituz/react-native-design-system/theme';
10
10
 
11
11
  export interface FormButtonProps {
12
12
  label: string;
@@ -5,8 +5,8 @@
5
5
 
6
6
  import React, { useMemo } from 'react';
7
7
  import { View, TouchableOpacity, StyleSheet } from 'react-native';
8
- import { AtomicText, AtomicIcon } from '@umituz/react-native-design-system';
9
- import { useAppDesignTokens } from '@umituz/react-native-design-system';
8
+ import { AtomicText, AtomicIcon } from '@umituz/react-native-design-system/atoms';
9
+ import { useAppDesignTokens } from '@umituz/react-native-design-system/theme';
10
10
  import type { ReminderFrequency } from '../../../infrastructure/services/types';
11
11
  import type { FrequencyOption } from '../../infrastructure/config/reminderPresets';
12
12
 
@@ -1,5 +1,5 @@
1
1
  import { StyleSheet } from 'react-native';
2
- import type { useAppDesignTokens } from '@umituz/react-native-design-system';
2
+ import type { useAppDesignTokens } from '@umituz/react-native-design-system/theme';
3
3
 
4
4
  export const createReminderFormStyles = (tokens: ReturnType<typeof useAppDesignTokens>) =>
5
5
  StyleSheet.create({
@@ -5,8 +5,8 @@
5
5
 
6
6
  import React, { useReducer, useMemo, useCallback } from 'react';
7
7
  import { View, TextInput, ScrollView } from 'react-native';
8
- import { AtomicText } from '@umituz/react-native-design-system';
9
- import { useAppDesignTokens } from '@umituz/react-native-design-system';
8
+ import { AtomicText } from '@umituz/react-native-design-system/atoms';
9
+ import { useAppDesignTokens } from '@umituz/react-native-design-system/theme';
10
10
  import { TimePresetSelector } from './TimePresetSelector';
11
11
  import { FrequencySelector } from './FrequencySelector';
12
12
  import { WeekdaySelector } from './WeekdaySelector';
@@ -5,9 +5,9 @@
5
5
 
6
6
  import React, { useMemo } from 'react';
7
7
  import { View, TouchableOpacity, StyleSheet } from 'react-native';
8
- import { AtomicText, AtomicIcon } from '@umituz/react-native-design-system';
8
+ import { AtomicText, AtomicIcon } from '@umituz/react-native-design-system/atoms';
9
+ import { useAppDesignTokens } from '@umituz/react-native-design-system/theme';
9
10
  import { Switch } from 'react-native';
10
- import { useAppDesignTokens } from '@umituz/react-native-design-system';
11
11
  import type { Reminder, ReminderFrequency } from '../../../infrastructure/services/types';
12
12
 
13
13
  export interface ReminderItemTranslations {
@@ -5,8 +5,8 @@
5
5
 
6
6
  import React, { useMemo } from 'react';
7
7
  import { View, TouchableOpacity, StyleSheet } from 'react-native';
8
- import { AtomicText, AtomicIcon } from '@umituz/react-native-design-system';
9
- import { useAppDesignTokens } from '@umituz/react-native-design-system';
8
+ import { AtomicText, AtomicIcon } from '@umituz/react-native-design-system/atoms';
9
+ import { useAppDesignTokens } from '@umituz/react-native-design-system/theme';
10
10
  import type { TimePreset } from '../../../infrastructure/services/types';
11
11
 
12
12
  export interface TimePresetSelectorProps {
@@ -5,8 +5,8 @@
5
5
 
6
6
  import React, { useMemo } from 'react';
7
7
  import { View, TouchableOpacity, StyleSheet } from 'react-native';
8
- import { AtomicText } from '@umituz/react-native-design-system';
9
- import { useAppDesignTokens } from '@umituz/react-native-design-system';
8
+ import { AtomicText } from '@umituz/react-native-design-system/atoms';
9
+ import { useAppDesignTokens } from '@umituz/react-native-design-system/theme';
10
10
  import { WEEKDAY_OPTIONS } from '../../infrastructure/config/reminderPresets';
11
11
 
12
12
  export interface WeekdaySelectorProps {
@@ -5,15 +5,10 @@
5
5
 
6
6
  import React, { useMemo, useCallback } from 'react';
7
7
  import { View, FlatList, StyleSheet, TouchableOpacity } from 'react-native';
8
- import {
9
- AtomicText,
10
- AtomicIcon,
11
- AtomicSpinner,
12
- ScreenLayout,
13
- NavigationHeader,
14
- useAppNavigation,
15
- useAppDesignTokens
16
- } from '@umituz/react-native-design-system';
8
+ import { AtomicText, AtomicIcon, AtomicSpinner } from '@umituz/react-native-design-system/atoms';
9
+ import { ScreenLayout } from '@umituz/react-native-design-system/layouts';
10
+ import { NavigationHeader, useAppNavigation } from '@umituz/react-native-design-system/molecules';
11
+ import { useAppDesignTokens } from '@umituz/react-native-design-system/theme';
17
12
  import { ReminderItem } from '../components/ReminderItem';
18
13
  import { useReminders, useRemindersLoading } from '../../../infrastructure/storage/UnifiedNotificationStore';
19
14
  import { useReminderActions } from '../../infrastructure/hooks/useReminderActions';
@@ -3,7 +3,7 @@
3
3
  * Storage layer for rating system using design system storageRepository
4
4
  */
5
5
 
6
- import { storageRepository, unwrap } from "@umituz/react-native-design-system";
6
+ import { storageRepository, unwrap } from "@umituz/react-native-design-system/storage";
7
7
  import type { RatingState } from "../../domain/entities/RatingConfig";
8
8
 
9
9
  /**
@@ -5,13 +5,9 @@
5
5
 
6
6
  import React from "react";
7
7
  import { Modal, View, StyleSheet } from "react-native";
8
- import {
9
- AtomicText,
10
- AtomicButton,
11
- AtomicIcon,
12
- useAppDesignTokens,
13
- useResponsive,
14
- } from "@umituz/react-native-design-system";
8
+ import { AtomicText, AtomicButton, AtomicIcon } from "@umituz/react-native-design-system/atoms";
9
+ import { useResponsive } from "@umituz/react-native-design-system/responsive";
10
+ import { useAppDesignTokens } from "@umituz/react-native-design-system/theme";
15
11
  import type { RatingTranslations } from "../../domain/entities/RatingConfig";
16
12
 
17
13
  export interface RatingPromptModalProps {
@@ -1,6 +1,7 @@
1
1
  import React, { useState } from "react";
2
2
  import { View, StyleSheet, TouchableOpacity, ViewStyle } from "react-native";
3
- import { useAppDesignTokens, AtomicIcon } from "@umituz/react-native-design-system";
3
+ import { AtomicIcon } from "@umituz/react-native-design-system/atoms";
4
+ import { useAppDesignTokens } from "@umituz/react-native-design-system/theme";
4
5
 
5
6
  export interface StarRatingProps {
6
7
  rating: number;
@@ -5,7 +5,8 @@
5
5
 
6
6
  import React from "react";
7
7
  import { View, Image, StyleSheet, TouchableOpacity } from "react-native";
8
- import { useAppDesignTokens, AtomicText } from "@umituz/react-native-design-system";
8
+ import { AtomicText } from "@umituz/react-native-design-system/atoms";
9
+ import { useAppDesignTokens } from "@umituz/react-native-design-system/theme";
9
10
  import type { VideoTutorial } from "../../types";
10
11
 
11
12
  interface VideoTutorialCardProps {
@@ -13,15 +13,10 @@
13
13
 
14
14
  import React from "react";
15
15
  import { View, FlatList, StyleSheet } from "react-native";
16
- import {
17
- useAppDesignTokens,
18
- ScreenLayout,
19
- AtomicSpinner,
20
- AtomicText,
21
- useAppNavigation,
22
- NavigationHeader,
23
- } from "@umituz/react-native-design-system";
24
- import type { DesignTokens } from "@umituz/react-native-design-system";
16
+ import { AtomicSpinner, AtomicText } from "@umituz/react-native-design-system/atoms";
17
+ import { ScreenLayout } from "@umituz/react-native-design-system/layouts";
18
+ import { useAppNavigation, NavigationHeader } from "@umituz/react-native-design-system/molecules";
19
+ import { useAppDesignTokens, type DesignTokens } from "@umituz/react-native-design-system/theme";
25
20
  import type { VideoTutorial } from "../../types";
26
21
  import { VideoTutorialCard } from "../components/VideoTutorialCard";
27
22
 
package/src/index.ts CHANGED
@@ -37,13 +37,11 @@ export {
37
37
  useResetSettingsMutation
38
38
  } from './presentation/hooks/mutations/useSettingsMutations';
39
39
 
40
- // useSettingsScreenConfig is available from '@umituz/react-native-settings/account'
41
- // for apps that use @umituz/react-native-auth
40
+ export { useSettingsScreenConfig } from './presentation/hooks/useSettingsScreenConfig';
42
41
  export type {
43
42
  UseSettingsScreenConfigParams,
44
43
  SettingsScreenConfigResult,
45
44
  SettingsFeatures,
46
- AuthData,
47
45
  } from './presentation/hooks/useSettingsScreenConfig';
48
46
 
49
47
 
@@ -4,7 +4,7 @@
4
4
  * Handles data access for user settings using @umituz/react-native-design-system
5
5
  */
6
6
 
7
- import { storageRepository, StorageKey, createUserKey } from '@umituz/react-native-design-system';
7
+ import { storageRepository, StorageKey, createUserKey } from '@umituz/react-native-design-system/storage';
8
8
  import type { ISettingsRepository, UserSettings, SettingsResult } from '../../application/ports/ISettingsRepository';
9
9
  import { TEXT_LENGTH_LIMITS } from '../utils/constants/textLimits';
10
10
 
@@ -1,6 +1,6 @@
1
1
  import React from "react";
2
2
  import { View, StyleSheet } from "react-native";
3
- import { AtomicText } from "@umituz/react-native-design-system";
3
+ import { AtomicText } from "@umituz/react-native-design-system/atoms";
4
4
 
5
5
  export interface SettingsFooterProps {
6
6
  versionText?: string;
@@ -1,10 +1,7 @@
1
1
  import React from "react";
2
2
  import { View, Pressable, StyleSheet, type StyleProp, type ViewStyle } from "react-native";
3
- import {
4
- useAppDesignTokens,
5
- type IconName,
6
- withAlpha,
7
- } from "@umituz/react-native-design-system";
3
+ import type { IconName } from "@umituz/react-native-design-system/atoms";
4
+ import { useAppDesignTokens, withAlpha } from "@umituz/react-native-design-system/theme";
8
5
  import { validateTitle, validateDescription, validateSwitchProps } from "../../infrastructure/utils/validators";
9
6
  import { sanitizeTitle, sanitizeDescription } from "../../infrastructure/utils/sanitizers";
10
7
  import { TEXT_LENGTH_LIMITS } from "../../infrastructure/utils/constants/textLimits";
@@ -5,7 +5,7 @@
5
5
  */
6
6
 
7
7
  import React from "react";
8
- import type { IconName } from "@umituz/react-native-design-system";
8
+ import type { IconName } from "@umituz/react-native-design-system/atoms";
9
9
  import { SettingsItemCard } from "./SettingsItemCard";
10
10
  import { useSettingsNavigation } from "../navigation/hooks/useSettingsNavigation";
11
11
  import { createRouteOrPressHandler } from "../navigation/utils/navigationHelpers";
@@ -1,6 +1,7 @@
1
1
  import React from "react";
2
2
  import { View, StyleSheet } from "react-native";
3
- import { useAppDesignTokens, AtomicText } from "@umituz/react-native-design-system";
3
+ import { AtomicText } from "@umituz/react-native-design-system/atoms";
4
+ import { useAppDesignTokens } from "@umituz/react-native-design-system/theme";
4
5
 
5
6
  export interface SettingsSectionProps {
6
7
  title: string;
@@ -1,6 +1,7 @@
1
1
  import React from "react";
2
2
  import { View } from "react-native";
3
- import { useAppDesignTokens, AtomicIcon, AtomicText, type IconName } from "@umituz/react-native-design-system";
3
+ import { AtomicIcon, AtomicText, type IconName } from "@umituz/react-native-design-system/atoms";
4
+ import { useAppDesignTokens } from "@umituz/react-native-design-system/theme";
4
5
 
5
6
  export interface SettingsItemCardContentProps {
6
7
  icon: IconName;
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- import { AtomicIcon, AtomicSwitch, type IconName } from "@umituz/react-native-design-system";
2
+ import { AtomicIcon, AtomicSwitch, type IconName } from "@umituz/react-native-design-system/atoms";
3
3
 
4
4
  export interface SettingsItemCardRightElementProps {
5
5
  showSwitch: boolean;
@@ -1,6 +1,6 @@
1
1
  import React from "react";
2
2
  import { View } from "react-native";
3
- import { AtomicText } from "@umituz/react-native-design-system";
3
+ import { AtomicText } from "@umituz/react-native-design-system/atoms";
4
4
 
5
5
  export interface SettingsItemCardSectionProps {
6
6
  sectionTitle?: string;
@@ -4,7 +4,7 @@
4
4
  * Mutations for updating and resetting user settings
5
5
  */
6
6
 
7
- import { useMutation, useQueryClient } from '@umituz/react-native-design-system';
7
+ import { useMutation, useQueryClient } from '@umituz/react-native-design-system/tanstack';
8
8
  import { getSettingsService } from '../../../infrastructure/services/SettingsService';
9
9
  import { SETTINGS_QUERY_KEY } from '../queries/useSettingsQuery';
10
10
  import type { UserSettings } from '../../../application/ports/ISettingsRepository';
@@ -4,7 +4,7 @@
4
4
  * Fetches user settings using TanStack Query
5
5
  */
6
6
 
7
- import { useQuery } from '@umituz/react-native-design-system';
7
+ import { useQuery } from '@umituz/react-native-design-system/tanstack';
8
8
  import { getSettingsService } from '../../../infrastructure/services/SettingsService';
9
9
 
10
10
  export const SETTINGS_QUERY_KEY = ['settings'];