@umituz/react-native-design-system 1.0.3 → 1.0.4

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": "1.0.3",
3
+ "version": "1.0.4",
4
4
  "description": "Universal design system for React Native apps - Domain-Driven Design architecture with Material Design 3 components",
5
5
  "main": "src/index.ts",
6
6
  "types": "src/index.ts",
@@ -16,7 +16,7 @@ export const ListItem: React.FC<ListItemProps> = ({
16
16
  const Component: React.ComponentType<any> = onPress ? TouchableOpacity : View;
17
17
 
18
18
  return (
19
- <Component style={[listItemStyles.container, disabled && listItemStyles.disabled, style]} onPress={onPress} disabled={disabled} activeOpacity={0.7}>
19
+ <Component style={[listItemStyles.container, disabled ? listItemStyles.disabled : undefined, style]} onPress={onPress} disabled={disabled} activeOpacity={0.7}>
20
20
  {leftIcon && (
21
21
  <View style={listItemStyles.iconContainer}>
22
22
  <AtomicIcon name={leftIcon} color={disabled ? 'surfaceVariant' : 'primary'} />
@@ -24,11 +24,11 @@ export const ListItem: React.FC<ListItemProps> = ({
24
24
  )}
25
25
  <View style={listItemStyles.content}>
26
26
  <AtomicText type="bodyLarge" color={disabled ? 'surfaceVariant' : 'onSurface'} numberOfLines={1}>{title}</AtomicText>
27
- {subtitle && <AtomicText type="bodySmall" color={disabled ? 'surfaceVariant' : 'surfaceVariant'} numberOfLines={2} style={listItemStyles.subtitle}>{subtitle}</AtomicText>}
27
+ {subtitle && <AtomicText type="bodySmall" color="surfaceVariant" numberOfLines={2} style={listItemStyles.subtitle}>{subtitle}</AtomicText>}
28
28
  </View>
29
29
  {rightIcon && onPress && (
30
30
  <View style={listItemStyles.iconContainer}>
31
- <AtomicIcon name={rightIcon} color={disabled ? 'surfaceVariant' : 'surfaceVariant'} />
31
+ <AtomicIcon name={rightIcon} color="surfaceVariant" />
32
32
  </View>
33
33
  )}
34
34
  </Component>