@umituz/react-native-design-system 2.5.4 → 2.5.6

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": "2.5.4",
3
+ "version": "2.5.6",
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",
@@ -1,4 +1,4 @@
1
- import React, { forwardRef, type Ref } from 'react';
1
+ import React from 'react';
2
2
  import {
3
3
  View,
4
4
  TextInput,
@@ -10,9 +10,7 @@ import { useAppDesignTokens } from '../../theme';
10
10
  import { AtomicIcon } from '../../atoms/AtomicIcon';
11
11
  import type { SearchBarProps } from './types';
12
12
 
13
- type TextInputRef = React.ComponentRef<typeof TextInput>;
14
-
15
- export const SearchBar = forwardRef<TextInputRef, SearchBarProps>(({
13
+ export const SearchBar: React.FC<SearchBarProps> = ({
16
14
  value,
17
15
  onChangeText,
18
16
  onSubmit,
@@ -26,7 +24,7 @@ export const SearchBar = forwardRef<TextInputRef, SearchBarProps>(({
26
24
  containerStyle,
27
25
  inputStyle,
28
26
  testID,
29
- }, ref) => {
27
+ }) => {
30
28
  const tokens = useAppDesignTokens();
31
29
 
32
30
  const handleClear = () => {
@@ -60,7 +58,6 @@ export const SearchBar = forwardRef<TextInputRef, SearchBarProps>(({
60
58
  </View>
61
59
 
62
60
  <TextInput
63
- ref={ref}
64
61
  value={value}
65
62
  onChangeText={onChangeText}
66
63
  onSubmitEditing={onSubmit}
@@ -112,9 +109,7 @@ export const SearchBar = forwardRef<TextInputRef, SearchBarProps>(({
112
109
  )}
113
110
  </View>
114
111
  );
115
- });
116
-
117
- SearchBar.displayName = 'SearchBar';
112
+ };
118
113
 
119
114
  const styles = StyleSheet.create({
120
115
  container: {
@@ -66,6 +66,7 @@ export const createDesignTokens = (
66
66
  return acc;
67
67
  }, {} as any),
68
68
  borderRadius,
69
+ radius: borderRadius,
69
70
  borders: {
70
71
  ...BASE_TOKENS.borders,
71
72
  radius: borderRadius,
@@ -45,14 +45,15 @@ export type DesignTokens = {
45
45
  opacity: BaseTokens['opacity'];
46
46
  avatarSizes: BaseTokens['avatarSizes'];
47
47
  borderRadius: ResponsiveBorderRadius;
48
+ radius: ResponsiveBorderRadius;
48
49
  borders: Borders & {
49
50
  card: Borders['card'] & { borderColor: string };
50
51
  input: Borders['input'] & { borderColor: string };
51
52
  };
52
-
53
+
53
54
  // Responsive metadata
54
55
  spacingMultiplier: number;
55
-
56
+
56
57
  // Base tokens for reference if needed
57
58
  baseSpacing: Spacing;
58
59
  baseTypography: Typography;