@umituz/react-native-design-system 4.28.15 → 4.28.16
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.16",
|
|
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",
|
|
@@ -166,8 +166,11 @@ export type {
|
|
|
166
166
|
export { EmojiCategory, EmojiUtils } from './domain/entities/Emoji';
|
|
167
167
|
|
|
168
168
|
// Presentation Components
|
|
169
|
-
|
|
170
|
-
|
|
169
|
+
// NOTE: EmojiPicker requires rn-emoji-keyboard (optional peer dependency)
|
|
170
|
+
// Import it directly when needed:
|
|
171
|
+
// import { EmojiPicker } from '@umituz/react-native-design-system/src/molecules/emoji/presentation/components/EmojiPicker';
|
|
172
|
+
// export { EmojiPicker } from './presentation/components/EmojiPicker';
|
|
173
|
+
// export type { EmojiPickerProps } from './presentation/components/EmojiPicker';
|
|
171
174
|
|
|
172
175
|
// Presentation Hooks
|
|
173
176
|
export { useEmojiPicker } from './presentation/hooks/useEmojiPicker';
|
|
@@ -25,14 +25,14 @@ export const NavigationHeader: React.FC<NavigationHeaderProps> = ({
|
|
|
25
25
|
const arrowLeftIcon = useIconName('arrowLeft');
|
|
26
26
|
const spacingMultiplier = tokens.spacingMultiplier;
|
|
27
27
|
|
|
28
|
-
const styles = useMemo(() =>
|
|
28
|
+
const styles = useMemo(() => ({
|
|
29
29
|
container: {
|
|
30
30
|
paddingTop: insets.top,
|
|
31
31
|
paddingHorizontal: tokens.spacing.md,
|
|
32
32
|
paddingBottom: tokens.spacing.sm,
|
|
33
33
|
backgroundColor: tokens.colors.backgroundPrimary,
|
|
34
|
-
flexDirection: 'row',
|
|
35
|
-
alignItems: 'center',
|
|
34
|
+
flexDirection: 'row' as const,
|
|
35
|
+
alignItems: 'center' as const,
|
|
36
36
|
borderBottomWidth: 1,
|
|
37
37
|
borderBottomColor: tokens.colors.outlineVariant,
|
|
38
38
|
zIndex: 100,
|
|
@@ -42,16 +42,16 @@ export const NavigationHeader: React.FC<NavigationHeaderProps> = ({
|
|
|
42
42
|
width: calculateResponsiveSize(NAVIGATION.backButton.width, spacingMultiplier),
|
|
43
43
|
height: calculateResponsiveSize(NAVIGATION.backButton.height, spacingMultiplier),
|
|
44
44
|
borderRadius: tokens.borders.radius.full,
|
|
45
|
-
alignItems: 'center',
|
|
46
|
-
justifyContent: 'center',
|
|
45
|
+
alignItems: 'center' as const,
|
|
46
|
+
justifyContent: 'center' as const,
|
|
47
47
|
backgroundColor: tokens.colors.surfaceVariant,
|
|
48
48
|
},
|
|
49
49
|
title: {
|
|
50
50
|
flex: 1,
|
|
51
|
-
textAlign: centerTitle ? 'center' : 'left',
|
|
51
|
+
textAlign: (centerTitle ? 'center' : 'left') as 'center' | 'left',
|
|
52
52
|
},
|
|
53
53
|
sideElement: {
|
|
54
|
-
width: centerTitle ? calculateResponsiveSize(40, spacingMultiplier) : 'auto',
|
|
54
|
+
width: centerTitle ? calculateResponsiveSize(40, spacingMultiplier) : 'auto' as const,
|
|
55
55
|
}
|
|
56
56
|
}), [tokens, insets, centerTitle, spacingMultiplier]);
|
|
57
57
|
|