@umituz/react-native-design-system 4.28.14 → 4.28.15
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
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@umituz/react-native-design-system",
|
|
3
|
-
"version": "4.28.
|
|
3
|
+
"version": "4.28.15",
|
|
4
4
|
"description": "Universal design system for React Native apps with safe navigation hooks - updated SKILL.md with navigation documentation",
|
|
5
5
|
"main": "./src/index.ts",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
import React, { useMemo } from 'react';
|
|
3
|
-
import { View
|
|
3
|
+
import { View } from 'react-native';
|
|
4
4
|
import { AtomicText } from '../../atoms/AtomicText';
|
|
5
5
|
import { AtomicIcon } from '../../atoms';
|
|
6
6
|
import { useAppDesignTokens } from '../../theme';
|
|
@@ -19,13 +19,13 @@ export const InfoGrid: React.FC<InfoGridProps> = React.memo(({
|
|
|
19
19
|
const tokens = useAppDesignTokens();
|
|
20
20
|
const spacingMultiplier = tokens.spacingMultiplier;
|
|
21
21
|
|
|
22
|
-
const styles = useMemo(() =>
|
|
22
|
+
const styles = useMemo(() => ({
|
|
23
23
|
container: {
|
|
24
24
|
gap: tokens.spacing.md,
|
|
25
25
|
},
|
|
26
26
|
header: {
|
|
27
|
-
flexDirection: 'row',
|
|
28
|
-
alignItems: 'center',
|
|
27
|
+
flexDirection: 'row' as const,
|
|
28
|
+
alignItems: 'center' as const,
|
|
29
29
|
gap: tokens.spacing.xs,
|
|
30
30
|
},
|
|
31
31
|
headerIcon: {
|
|
@@ -33,24 +33,24 @@ export const InfoGrid: React.FC<InfoGridProps> = React.memo(({
|
|
|
33
33
|
height: calculateResponsiveSize(INFO_GRID_ICONS.small, spacingMultiplier),
|
|
34
34
|
borderRadius: tokens.borders.radius.sm,
|
|
35
35
|
backgroundColor: `${tokens.colors.primary}20`,
|
|
36
|
-
justifyContent: 'center',
|
|
37
|
-
alignItems: 'center',
|
|
36
|
+
justifyContent: 'center' as const,
|
|
37
|
+
alignItems: 'center' as const,
|
|
38
38
|
},
|
|
39
39
|
headerTitle: {
|
|
40
40
|
...tokens.typography.labelLarge,
|
|
41
|
-
fontWeight: '700',
|
|
41
|
+
fontWeight: '700' as const,
|
|
42
42
|
color: tokens.colors.primary,
|
|
43
43
|
},
|
|
44
44
|
grid: {
|
|
45
|
-
flexDirection: 'row',
|
|
46
|
-
flexWrap: 'wrap',
|
|
45
|
+
flexDirection: 'row' as const,
|
|
46
|
+
flexWrap: 'wrap' as const,
|
|
47
47
|
gap: tokens.spacing.sm,
|
|
48
48
|
},
|
|
49
49
|
item: {
|
|
50
|
-
flexDirection: 'row',
|
|
51
|
-
alignItems: 'center',
|
|
50
|
+
flexDirection: 'row' as const,
|
|
51
|
+
alignItems: 'center' as const,
|
|
52
52
|
gap: tokens.spacing.sm,
|
|
53
|
-
width: `${100 / columns - 2}
|
|
53
|
+
width: `${100 / columns - 2}%` as const, // Basic percentage calculation
|
|
54
54
|
backgroundColor: tokens.colors.surfaceVariant,
|
|
55
55
|
padding: tokens.spacing.md,
|
|
56
56
|
borderRadius: tokens.borders.radius.md,
|
|
@@ -62,14 +62,14 @@ export const InfoGrid: React.FC<InfoGridProps> = React.memo(({
|
|
|
62
62
|
height: calculateResponsiveSize(INFO_GRID_ICONS.large, spacingMultiplier),
|
|
63
63
|
borderRadius: tokens.borders.radius.sm,
|
|
64
64
|
backgroundColor: `${tokens.colors.primary}20`,
|
|
65
|
-
justifyContent: 'center',
|
|
66
|
-
alignItems: 'center',
|
|
65
|
+
justifyContent: 'center' as const,
|
|
66
|
+
alignItems: 'center' as const,
|
|
67
67
|
},
|
|
68
68
|
itemText: {
|
|
69
69
|
flex: 1,
|
|
70
70
|
...tokens.typography.bodySmall,
|
|
71
71
|
color: tokens.colors.textPrimary,
|
|
72
|
-
fontWeight: '500',
|
|
72
|
+
fontWeight: '500' as const,
|
|
73
73
|
},
|
|
74
74
|
}), [tokens, columns, spacingMultiplier]);
|
|
75
75
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { useMemo } from 'react';
|
|
2
|
-
import { View,
|
|
2
|
+
import { View, TouchableOpacity } from 'react-native';
|
|
3
3
|
import { AtomicText } from '../../../atoms';
|
|
4
4
|
import { AtomicIcon, useIconName } from '../../../atoms';
|
|
5
5
|
import { useAppDesignTokens } from '../../../theme';
|