@umituz/react-native-design-system 2.6.99 → 2.6.101
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.6.
|
|
3
|
+
"version": "2.6.101",
|
|
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",
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* AtomicChip Type Definitions
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
-
import type { ViewStyle } from 'react-native';
|
|
5
|
+
import type { StyleProp, ViewStyle } from 'react-native';
|
|
6
6
|
import type { IconSize } from '../../AtomicIcon';
|
|
7
7
|
|
|
8
8
|
export type ChipVariant = 'filled' | 'outlined' | 'soft';
|
|
@@ -23,7 +23,7 @@ export interface AtomicChipProps {
|
|
|
23
23
|
readonly onPress?: () => void;
|
|
24
24
|
readonly selected?: boolean;
|
|
25
25
|
readonly disabled?: boolean;
|
|
26
|
-
readonly style?: ViewStyle
|
|
26
|
+
readonly style?: StyleProp<ViewStyle>;
|
|
27
27
|
readonly testID?: string;
|
|
28
28
|
readonly activeOpacity?: number;
|
|
29
29
|
}
|
|
@@ -42,11 +42,11 @@ export function FilterGroup<T = string>({
|
|
|
42
42
|
<AtomicChip
|
|
43
43
|
key={`${item.value}`}
|
|
44
44
|
variant={isSelected ? 'filled' : 'outlined'}
|
|
45
|
-
color={isSelected ? 'primary' : '
|
|
45
|
+
color={isSelected ? 'primary' : 'secondary'}
|
|
46
46
|
selected={isSelected}
|
|
47
47
|
onPress={() => onSelect(item.value)}
|
|
48
48
|
clickable
|
|
49
|
-
style={[styles.item, itemStyle]}
|
|
49
|
+
style={[styles.item, itemStyle] as any}
|
|
50
50
|
testID={item.testID}
|
|
51
51
|
>
|
|
52
52
|
{item.label}
|