@momo-kits/badge 0.0.52-beta.1 → 0.0.53-beta.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.
Files changed (3) hide show
  1. package/index.js +13 -5
  2. package/package.json +1 -1
  3. package/publish.sh +2 -2
package/index.js CHANGED
@@ -15,6 +15,7 @@ const Badge = ({ type, title, style, textStyle, containerWidth }) => {
15
15
  left: containerWidth ? containerWidth - 12 : null,
16
16
  },
17
17
  ];
18
+
18
19
  case 'dot':
19
20
  return styles.dot;
20
21
  case 'dot-small':
@@ -45,20 +46,27 @@ const Badge = ({ type, title, style, textStyle, containerWidth }) => {
45
46
  const styles = StyleSheet.create({
46
47
  container: {
47
48
  paddingHorizontal: Spacing.XS,
48
- backgroundColor: Colors.error,
49
+ backgroundColor: Colors.warning,
49
50
  borderRadius: Radius.M,
50
51
  justifyContent: 'center',
51
52
  alignItems: 'center',
52
53
  position: 'absolute',
53
54
  top: -4,
54
55
  },
56
+ ribbon: {
57
+ width: '100%',
58
+ height: '25%',
59
+ transform: [{ rotate: '45deg' }],
60
+ position: 'absolute',
61
+ backgroundColor: Colors.error,
62
+ },
55
63
  dot: {
56
- width: 16,
57
- height: 16,
58
- borderWidth: 1,
64
+ width: 14,
65
+ height: 14,
66
+ borderWidth: 2,
59
67
  borderColor: Colors.white,
60
68
  backgroundColor: Colors.error,
61
- borderRadius: 8,
69
+ borderRadius: 7,
62
70
  position: 'absolute',
63
71
  right: -8,
64
72
  top: -8,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@momo-kits/badge",
3
- "version": "0.0.52-beta.1",
3
+ "version": "0.0.53-beta.4",
4
4
  "private": false,
5
5
  "main": "index.js",
6
6
  "peerDependencies": {
package/publish.sh CHANGED
@@ -21,8 +21,8 @@ rsync -r --verbose --exclude '*.mdx' --exclude '*Demo.js' --exclude 'props-type
21
21
  #npm login
22
22
  #publish dist to npm
23
23
  cd dist
24
- npm publish --tag beta --access=public
24
+ npm publish --tag beta --access=public --otp=734211
25
25
  cd ..
26
26
  rm -rf dist
27
27
 
28
- #curl -X POST -H 'Content-Type: application/json' 'https://chat.googleapis.com/v1/spaces/AAAAbP8987c/messages?key=AIzaSyDdI0hCZtE6vySjMm-WEfRq3CPzqKqqsHI&token=UGSFRvk_oYb9uGsAgs31bVvMm6jDkmD8zihGm3eyaQA%3D&threadKey=JoaXTEYaNNkl' -d '{"text": "@momo-kits/bank new version release: '*"$VERSION"*' `https://www.npmjs.com/package/@momo-kits/bank`"}'
28
+ #curl -X POST -H 'Content-Type: application/json' 'https://chat.googleapis.com/v1/spaces/AAAAbP8987c/messages?key=AIzaSyDdI0hCZtE6vySjMm-WEfRq3CPzqKqqsHI&token=UGSFRvk_oYb9uGsAgs31bVvMm6jDkmD8zihGm3eyaQA%3D&threadKey=JoaXTEYaNNkl' -d '{"text": "@momo-kits/bank new version release: '*"$VERSION"*' `https://www.npmjs.com/package/@momo-kits/bank`"}'