@momo-kits/chip 0.103.2-rc.2 → 0.103.2-rc.20

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.
Files changed (3) hide show
  1. package/index.tsx +5 -7
  2. package/package.json +1 -1
  3. package/styles.ts +0 -5
package/index.tsx CHANGED
@@ -3,7 +3,6 @@ import {
3
3
  ApplicationContext,
4
4
  Colors,
5
5
  Icon,
6
- Image,
7
6
  Text,
8
7
  Typography,
9
8
  } from '@momo-kits/foundation';
@@ -31,11 +30,9 @@ const Chip: FC<ChipProps> = ({
31
30
 
32
31
  let typo: Typography = 'label_default_medium';
33
32
  let chipStyle = styles.chip;
34
- let imageStyle = styles.image;
35
33
  let iconSize = 20;
36
34
  if (size === 'small') {
37
35
  chipStyle = styles.smallChip;
38
- imageStyle = styles.imageSmall;
39
36
  iconSize = 16;
40
37
  typo = 'label_s_medium';
41
38
  }
@@ -65,10 +62,11 @@ const Chip: FC<ChipProps> = ({
65
62
  },
66
63
  ]}>
67
64
  {!!iconLeft && (
68
- <Image
69
- source={{uri: iconLeft}}
70
- tintColor={iconLeftColor}
71
- style={imageStyle}
65
+ <Icon
66
+ source={iconLeft}
67
+ color={iconLeftColor}
68
+ size={iconSize}
69
+ style={styles.icon}
72
70
  />
73
71
  )}
74
72
  <Text typography={typo} color={textColor}>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@momo-kits/chip",
3
- "version": "0.103.2-rc.2",
3
+ "version": "0.103.2-rc.20",
4
4
  "private": false,
5
5
  "main": "index.tsx",
6
6
  "dependencies": {},
package/styles.ts CHANGED
@@ -29,11 +29,6 @@ export default StyleSheet.create({
29
29
  borderWidth: 2,
30
30
  borderRadius: Radius.L,
31
31
  },
32
- image: {
33
- width: 20,
34
- height: 20,
35
- marginRight: Spacing.XS,
36
- },
37
32
  imageSmall: {
38
33
  width: 16,
39
34
  height: 16,