@umituz/react-native-design-system 2.6.20 → 2.6.22
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/src/atoms/datepicker/components/DatePickerModal.tsx +1 -1
- package/src/atoms/picker/components/PickerModal.tsx +1 -1
- package/src/layouts/AppHeader/AppHeader.tsx +1 -1
- package/src/layouts/ScreenLayout/ScreenLayout.tsx +1 -2
- package/src/molecules/alerts/AlertBanner.tsx +1 -1
- package/src/molecules/alerts/AlertContainer.tsx +1 -1
- package/src/molecules/bottom-sheet/components/filter/FilterSheet.tsx +1 -1
- package/src/molecules/navigation/hooks/useTabBarStyles.ts +1 -1
- package/src/molecules/splash/components/SplashScreen.tsx +1 -1
- package/src/organisms/FormContainer.tsx +1 -1
- package/src/responsive/useResponsive.ts +1 -1
- package/src/safe-area/index.ts +2 -1
- package/src/theme/infrastructure/providers/DesignSystemProvider.tsx +1 -1
- package/src/typography/presentation/utils/textColorUtils.ts +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@umituz/react-native-design-system",
|
|
3
|
-
"version": "2.6.
|
|
3
|
+
"version": "2.6.22",
|
|
4
4
|
"description": "Universal design system for React Native apps - Consolidated package with atoms, molecules, organisms, theme, typography, responsive and safe area utilities",
|
|
5
5
|
"main": "./src/index.ts",
|
|
6
6
|
"types": "./src/index.ts",
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
StyleSheet,
|
|
14
14
|
Platform,
|
|
15
15
|
} from 'react-native';
|
|
16
|
-
import { useSafeAreaInsets } from '
|
|
16
|
+
import { useSafeAreaInsets } from '../../../safe-area';
|
|
17
17
|
import DateTimePicker, { DateTimePickerEvent } from '@react-native-community/datetimepicker';
|
|
18
18
|
import { useAppDesignTokens } from '../../../theme';
|
|
19
19
|
import { AtomicText } from '../../AtomicText';
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
TextInput,
|
|
20
20
|
TouchableOpacity,
|
|
21
21
|
} from 'react-native';
|
|
22
|
-
import { useSafeAreaInsets } from '
|
|
22
|
+
import { useSafeAreaInsets } from '../../../safe-area';
|
|
23
23
|
import { useAppDesignTokens } from '../../../theme';
|
|
24
24
|
import { PickerOption } from '../types';
|
|
25
25
|
import { AtomicIcon } from '../../AtomicIcon';
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
|
|
11
11
|
import React from 'react';
|
|
12
12
|
import { View, type ViewStyle } from 'react-native';
|
|
13
|
-
import { SafeAreaView } from '
|
|
13
|
+
import { SafeAreaView } from '../../safe-area';
|
|
14
14
|
import { useAppDesignTokens } from '../../theme';
|
|
15
15
|
import { AtomicText, AtomicButton, type IconName } from '../../atoms';
|
|
16
16
|
|
|
@@ -25,8 +25,7 @@
|
|
|
25
25
|
|
|
26
26
|
import React, { useMemo } from 'react';
|
|
27
27
|
import { View, ScrollView, StyleSheet, KeyboardAvoidingView, type ViewStyle, type RefreshControlProps } from 'react-native';
|
|
28
|
-
import { SafeAreaView, useSafeAreaInsets } from '
|
|
29
|
-
import type { Edge } from 'react-native-safe-area-context';
|
|
28
|
+
import { SafeAreaView, useSafeAreaInsets, type Edge } from '../../safe-area';
|
|
30
29
|
import { useAppDesignTokens } from '../../theme';
|
|
31
30
|
import { getScreenLayoutConfig } from '../../responsive/responsiveLayout';
|
|
32
31
|
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
|
|
8
8
|
import React from 'react';
|
|
9
9
|
import { StyleSheet, View, Pressable } from 'react-native';
|
|
10
|
-
import { useSafeAreaInsets } from '
|
|
10
|
+
import { useSafeAreaInsets } from '../../safe-area';
|
|
11
11
|
import { AtomicText, AtomicIcon } from '../../atoms';
|
|
12
12
|
import { useAppDesignTokens } from '../../theme';
|
|
13
13
|
import { Alert, AlertType, AlertPosition } from './AlertTypes';
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
import React from 'react';
|
|
6
6
|
import { View, StyleSheet } from 'react-native';
|
|
7
|
-
import { useSafeAreaInsets } from '
|
|
7
|
+
import { useSafeAreaInsets } from '../../safe-area';
|
|
8
8
|
import { useAppDesignTokens } from '../../theme';
|
|
9
9
|
import { useAlertStore } from './AlertStore';
|
|
10
10
|
import { AlertToast } from './AlertToast';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { useCallback } from "react";
|
|
2
2
|
import { View, StyleSheet, ScrollView, Modal, Pressable, GestureResponderEvent } from "react-native";
|
|
3
|
-
import { useSafeAreaInsets } from "
|
|
3
|
+
import { useSafeAreaInsets } from "../../../../safe-area";
|
|
4
4
|
import { AtomicButton } from '../../../../atoms';
|
|
5
5
|
import { useAppDesignTokens } from '../../../../theme';
|
|
6
6
|
import type { FilterOption } from "../../types/Filter";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useMemo } from 'react';
|
|
2
|
-
import { useSafeAreaInsets } from '
|
|
2
|
+
import { useSafeAreaInsets } from '../../../safe-area';
|
|
3
3
|
import { useAppDesignTokens } from '../../../theme';
|
|
4
4
|
import { getResponsiveTabBarConfig } from '../../../responsive/responsiveLayout';
|
|
5
5
|
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
import React, { useEffect, useState, useCallback } from "react";
|
|
7
7
|
import { View, Image, StyleSheet, ActivityIndicator } from "react-native";
|
|
8
8
|
import { LinearGradient } from "expo-linear-gradient";
|
|
9
|
-
import { useSafeAreaInsets } from "
|
|
9
|
+
import { useSafeAreaInsets } from "../../../safe-area";
|
|
10
10
|
import { AtomicText } from "../../../atoms";
|
|
11
11
|
import { useAppDesignTokens } from "../../../theme";
|
|
12
12
|
import type { SplashScreenProps, SplashColors } from "../types";
|
|
@@ -51,7 +51,7 @@ import {
|
|
|
51
51
|
StyleProp,
|
|
52
52
|
ViewStyle,
|
|
53
53
|
} from 'react-native';
|
|
54
|
-
import { useSafeAreaInsets } from '
|
|
54
|
+
import { useSafeAreaInsets } from '../safe-area';
|
|
55
55
|
import { useAppDesignTokens } from '../theme';
|
|
56
56
|
import { useResponsive } from '../responsive';
|
|
57
57
|
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
|
|
13
13
|
import { useCallback, useMemo } from "react";
|
|
14
14
|
import { useWindowDimensions } from "react-native";
|
|
15
|
-
import { useSafeAreaInsets } from "
|
|
15
|
+
import { useSafeAreaInsets } from "../safe-area";
|
|
16
16
|
import {
|
|
17
17
|
getResponsiveLogoSize,
|
|
18
18
|
getResponsiveInputHeight,
|
package/src/safe-area/index.ts
CHANGED
|
@@ -21,4 +21,5 @@ export { useStableOptions, clearPerformanceCaches } from './utils/optimization';
|
|
|
21
21
|
export { validateNumericInput, throttledWarn, clearValidationCache } from './utils/validation';
|
|
22
22
|
|
|
23
23
|
// Re-export from react-native-safe-area-context for convenience
|
|
24
|
-
export { initialWindowMetrics } from 'react-native-safe-area-context';
|
|
24
|
+
export { initialWindowMetrics, SafeAreaView } from 'react-native-safe-area-context';
|
|
25
|
+
export type { Edge } from 'react-native-safe-area-context';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { useEffect, useState, ReactNode } from 'react';
|
|
2
2
|
import { ActivityIndicator, View, StyleSheet } from 'react-native';
|
|
3
|
-
import { SafeAreaProvider, initialWindowMetrics } from '
|
|
3
|
+
import { SafeAreaProvider, initialWindowMetrics } from '../../../safe-area';
|
|
4
4
|
import { useThemeStore } from '../stores/themeStore';
|
|
5
5
|
import { useDesignSystemTheme } from '../globalThemeStore';
|
|
6
6
|
import type { CustomThemeColors } from '../../core/CustomColors';
|
|
@@ -114,7 +114,7 @@ class MaterialColorMapper implements ColorMapper {
|
|
|
114
114
|
case 'secondary':
|
|
115
115
|
return tokens.colors.secondary;
|
|
116
116
|
case 'tertiary':
|
|
117
|
-
return tokens.colors.
|
|
117
|
+
return tokens.colors.textTertiary;
|
|
118
118
|
case 'disabled':
|
|
119
119
|
return tokens.colors.textDisabled;
|
|
120
120
|
case 'inverse':
|