@momo-kits/badge 0.80.9 → 0.81.2
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/Shape.tsx +40 -52
- package/package.json +1 -1
package/Shape.tsx
CHANGED
|
@@ -1,63 +1,51 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import Svg, {
|
|
2
|
+
import Svg, {G, Path} from 'react-native-svg';
|
|
3
3
|
|
|
4
4
|
const UpTail = () => {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
/>
|
|
22
|
-
</G>
|
|
23
|
-
</Svg>
|
|
24
|
-
);
|
|
5
|
+
return (
|
|
6
|
+
<Svg width="5px" height="20px" viewBox="0 0 5 20">
|
|
7
|
+
<G stroke="none" strokeWidth={1} fill="none" fillRule="evenodd">
|
|
8
|
+
<Path
|
|
9
|
+
d="M0 0h2v4a2 2 0 01-2-2V0z"
|
|
10
|
+
fill="#C41B24"
|
|
11
|
+
transform="matrix(1 0 0 -1 0 4)"
|
|
12
|
+
/>
|
|
13
|
+
<Path
|
|
14
|
+
d="M5 2l-.001 15.998H2.651l-.261-.003-.208.004-.229.014-.119.01-.246.036C.843 18.189.05 18.855 0 20V6a4 4 0 014-4h1z"
|
|
15
|
+
fill="#FA541C"
|
|
16
|
+
transform="matrix(1 0 0 -1 0 22)"
|
|
17
|
+
/>
|
|
18
|
+
</G>
|
|
19
|
+
</Svg>
|
|
20
|
+
);
|
|
25
21
|
};
|
|
26
22
|
|
|
27
23
|
const DownTail = () => {
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
/>
|
|
40
|
-
</G>
|
|
41
|
-
</Svg>
|
|
42
|
-
);
|
|
24
|
+
return (
|
|
25
|
+
<Svg width="5px" height="20px" viewBox="0 0 5 20">
|
|
26
|
+
<G stroke="none" strokeWidth={1} fill="none" fillRule="evenodd">
|
|
27
|
+
<Path d="M0 16h2v4a2 2 0 01-2-2v-2z" fill="#C41B24" />
|
|
28
|
+
<Path
|
|
29
|
+
d="M5 0l-.001 15.998H2.651l-.261-.003-.208.004-.229.014-.119.01-.246.036C.843 16.189.05 16.855 0 18V4a4 4 0 014-4h1z"
|
|
30
|
+
fill="#FA541C"
|
|
31
|
+
/>
|
|
32
|
+
</G>
|
|
33
|
+
</Svg>
|
|
34
|
+
);
|
|
43
35
|
};
|
|
44
36
|
|
|
45
37
|
const Skew = () => {
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
fillRule="evenodd"
|
|
58
|
-
/>
|
|
59
|
-
</Svg>
|
|
60
|
-
);
|
|
38
|
+
return (
|
|
39
|
+
<Svg width="4px" height="16px" viewBox="0 0 4 16">
|
|
40
|
+
<Path
|
|
41
|
+
d="M3 0a1 1 0 011 1v1.143L.2 8 4 14v1a1 1 0 01-1 1H0V0h3z"
|
|
42
|
+
fill="#FA541C"
|
|
43
|
+
stroke="none"
|
|
44
|
+
strokeWidth={1}
|
|
45
|
+
fillRule="evenodd"
|
|
46
|
+
/>
|
|
47
|
+
</Svg>
|
|
48
|
+
);
|
|
61
49
|
};
|
|
62
50
|
|
|
63
|
-
export {
|
|
51
|
+
export {UpTail, DownTail, Skew};
|