@umituz/react-native-design-system 2.0.6 → 2.0.8
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/AtomicButton.tsx +1 -0
- package/src/atoms/AtomicChip.tsx +1 -0
- package/src/atoms/AtomicPicker.tsx +1 -6
- package/src/atoms/picker/components/PickerChips.tsx +2 -1
- package/src/atoms/picker/components/PickerModal.tsx +2 -1
- package/src/molecules/ScreenHeader.tsx +1 -1
- package/src/organisms/ScreenLayout.example.tsx +5 -6
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@umituz/react-native-design-system",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.8",
|
|
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",
|
package/src/atoms/AtomicChip.tsx
CHANGED
|
@@ -197,12 +197,7 @@ export const AtomicPicker: React.FC<AtomicPickerProps> = ({
|
|
|
197
197
|
setSearchQuery(query);
|
|
198
198
|
};
|
|
199
199
|
|
|
200
|
-
|
|
201
|
-
* Check if option is selected
|
|
202
|
-
*/
|
|
203
|
-
const _isSelected = (optionValue: string): boolean => {
|
|
204
|
-
return selectedValues.includes(optionValue);
|
|
205
|
-
};
|
|
200
|
+
|
|
206
201
|
|
|
207
202
|
/**
|
|
208
203
|
* Handle chip removal
|
|
@@ -40,7 +40,7 @@ export interface ScreenHeaderProps {
|
|
|
40
40
|
backIconName?: string;
|
|
41
41
|
|
|
42
42
|
/** Custom back button icon color */
|
|
43
|
-
backIconColor
|
|
43
|
+
backIconColor?: 'primary' | 'secondary' | 'error' | 'warning' | 'success' | 'surfaceVariant';
|
|
44
44
|
}
|
|
45
45
|
|
|
46
46
|
/**
|
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
export function App() {
|
|
19
19
|
return (
|
|
20
20
|
<SafeAreaProvider>
|
|
21
|
-
<
|
|
21
|
+
<View />
|
|
22
22
|
</SafeAreaProvider>
|
|
23
23
|
);
|
|
24
24
|
}
|
|
@@ -35,7 +35,6 @@ export function HomeScreen() {
|
|
|
35
35
|
header={
|
|
36
36
|
<ScreenHeader
|
|
37
37
|
title="Home"
|
|
38
|
-
subtitle="Welcome back"
|
|
39
38
|
/>
|
|
40
39
|
}
|
|
41
40
|
// Optional footer
|
|
@@ -47,8 +46,8 @@ export function HomeScreen() {
|
|
|
47
46
|
</View>
|
|
48
47
|
}
|
|
49
48
|
>
|
|
50
|
-
<AtomicText type="
|
|
51
|
-
<AtomicText type="
|
|
49
|
+
<AtomicText type="headlineLarge">Welcome to Home</AtomicText>
|
|
50
|
+
<AtomicText type="bodyMedium">
|
|
52
51
|
This screen uses ScreenLayout with default safe area configuration.
|
|
53
52
|
</AtomicText>
|
|
54
53
|
</ScreenLayout>
|
|
@@ -63,7 +62,7 @@ export function ModalScreen() {
|
|
|
63
62
|
edges={['top', 'bottom']}
|
|
64
63
|
scrollable={false}
|
|
65
64
|
>
|
|
66
|
-
<AtomicText type="
|
|
65
|
+
<AtomicText type="headlineMedium">Modal Content</AtomicText>
|
|
67
66
|
</ScreenLayout>
|
|
68
67
|
);
|
|
69
68
|
}
|
|
@@ -73,7 +72,7 @@ export function CustomScrollScreen() {
|
|
|
73
72
|
return (
|
|
74
73
|
<ScreenLayout scrollable={false}>
|
|
75
74
|
{/* Your custom scroll component */}
|
|
76
|
-
<
|
|
75
|
+
<View />
|
|
77
76
|
</ScreenLayout>
|
|
78
77
|
);
|
|
79
78
|
}
|