@momo-kits/chip 0.92.17 → 0.92.21-beta.0

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/index.tsx CHANGED
@@ -21,6 +21,7 @@ const Chip: FC<ChipProps> = ({
21
21
  size = 'large',
22
22
  iconLeftColor,
23
23
  iconRightColor,
24
+ itemContainerStyle,
24
25
  }) => {
25
26
  const {theme} = useContext(ApplicationContext);
26
27
  const textColor = selected ? theme.colors.primary : theme.colors.text.default;
@@ -57,6 +58,7 @@ const Chip: FC<ChipProps> = ({
57
58
  <TouchableOpacity
58
59
  onPress={onPress}
59
60
  style={[
61
+ itemContainerStyle,
60
62
  chipStyle,
61
63
  {
62
64
  backgroundColor,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@momo-kits/chip",
3
- "version": "0.92.17",
3
+ "version": "0.92.21-beta.0",
4
4
  "private": false,
5
5
  "main": "index.tsx",
6
6
  "dependencies": {},
package/publish.sh CHANGED
@@ -11,7 +11,7 @@ if [ "$1" == "stable" ]; then
11
11
  #npm version patch
12
12
  npm publish --tag stable --access=public
13
13
  elif [ "$1" == "latest" ]; then
14
- #npm version $(npm view @momo-kits/chip@latest version)
14
+ #npm version $(npm view @momo-kits/foundation@latest version)
15
15
  #npm version prerelease --preid=rc
16
16
  npm publish --tag latest --access=public
17
17
  else
package/styles.ts CHANGED
@@ -1,11 +1,11 @@
1
1
  import {StyleSheet} from 'react-native';
2
- import {Radius, Spacing} from '@momo-kits/foundation';
2
+ import {Radius, scaleSize, Spacing} from '@momo-kits/foundation';
3
3
 
4
4
  export default StyleSheet.create({
5
5
  chip: {
6
6
  borderRadius: Radius.L,
7
7
  paddingHorizontal: Spacing.S,
8
- height: 32,
8
+ height: scaleSize(32),
9
9
  justifyContent: 'center',
10
10
  alignItems: 'center',
11
11
  flexDirection: 'row',
@@ -13,7 +13,7 @@ export default StyleSheet.create({
13
13
  smallChip: {
14
14
  borderRadius: Radius.L,
15
15
  paddingHorizontal: Spacing.S,
16
- height: 24,
16
+ height: scaleSize(24),
17
17
  justifyContent: 'center',
18
18
  alignItems: 'center',
19
19
  flexDirection: 'row',
package/types.ts CHANGED
@@ -52,4 +52,6 @@ export type ChipProps = {
52
52
  * Optional. Specifies the color of the right icon. If not provided, a default icon color may be used.
53
53
  */
54
54
  iconRightColor?: string;
55
+
56
+ itemContainerStyle?: ViewStyle;
55
57
  };