react-native-ico-new-year 3.3.1 → 4.1.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 +4 -3
- package/typings.d.ts +90 -0
- /package/src/{index.js → index.jsx} +0 -0
package/package.json
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-native-ico-new-year",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.1.4",
|
|
4
4
|
"description": "New Year Icons for React Native",
|
|
5
|
-
"main": "src/index.
|
|
5
|
+
"main": "src/index.jsx",
|
|
6
|
+
"types": "typings.d.ts",
|
|
6
7
|
"dependencies": {
|
|
7
|
-
"react-svg-main": "^
|
|
8
|
+
"react-svg-main": "^3.0.1"
|
|
8
9
|
},
|
|
9
10
|
"repository": {
|
|
10
11
|
"type": "git",
|
package/typings.d.ts
ADDED
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
declare module 'react-native-ico-new-year' {
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
|
+
|
|
4
|
+
type iconNames = 'new-years-eve' |
|
|
5
|
+
'christmas-tree' |
|
|
6
|
+
'bells' |
|
|
7
|
+
'santa-claus' |
|
|
8
|
+
'candelabra' |
|
|
9
|
+
'star' |
|
|
10
|
+
'music-sheet' |
|
|
11
|
+
'shooting-star' |
|
|
12
|
+
'snow-globe' |
|
|
13
|
+
'snowflake' |
|
|
14
|
+
'lantern' |
|
|
15
|
+
'shopping-bag' |
|
|
16
|
+
'lollipop' |
|
|
17
|
+
'snowflake-1' |
|
|
18
|
+
'sleigh' |
|
|
19
|
+
'orange' |
|
|
20
|
+
'moustache' |
|
|
21
|
+
'midnight' |
|
|
22
|
+
'margarita' |
|
|
23
|
+
'christmas-card' |
|
|
24
|
+
'fortune-cookie' |
|
|
25
|
+
'mittens' |
|
|
26
|
+
'bauble' |
|
|
27
|
+
'christmas-day' |
|
|
28
|
+
'santa-claus-1' |
|
|
29
|
+
'christmas-sock' |
|
|
30
|
+
'lantern-1' |
|
|
31
|
+
'star-1' |
|
|
32
|
+
'bird' |
|
|
33
|
+
'gift' |
|
|
34
|
+
'angel' |
|
|
35
|
+
'christmas-card-1' |
|
|
36
|
+
'mistletoe' |
|
|
37
|
+
'cocktail' |
|
|
38
|
+
'chimney' |
|
|
39
|
+
'confetti' |
|
|
40
|
+
'deer' |
|
|
41
|
+
'new-year' |
|
|
42
|
+
'garland' |
|
|
43
|
+
'chat' |
|
|
44
|
+
'window' |
|
|
45
|
+
'jingle-bell' |
|
|
46
|
+
'stars' |
|
|
47
|
+
'champagne' |
|
|
48
|
+
'list' |
|
|
49
|
+
'bauble-1' |
|
|
50
|
+
'candle' |
|
|
51
|
+
'confetti-1' |
|
|
52
|
+
'scroll' |
|
|
53
|
+
'pattern';
|
|
54
|
+
|
|
55
|
+
type backgroundType = 'circle' | 'rect' | 'button';
|
|
56
|
+
|
|
57
|
+
type positionType = 'top' | 'bottom' | 'right' | 'left' |
|
|
58
|
+
'top_right' | 'top_left' | 'bottom_right' | 'bottom_left';
|
|
59
|
+
|
|
60
|
+
type backgroundTypeObj = {
|
|
61
|
+
type?: backgroundType;
|
|
62
|
+
color?: string;
|
|
63
|
+
radius?: number;
|
|
64
|
+
borderRadius?: number;
|
|
65
|
+
};
|
|
66
|
+
|
|
67
|
+
type badgeTypeObj = {
|
|
68
|
+
value?: number | string;
|
|
69
|
+
fontSize?: string;
|
|
70
|
+
position?: positionType;
|
|
71
|
+
color?: string;
|
|
72
|
+
backgroundColor?: string;
|
|
73
|
+
radius?: number;
|
|
74
|
+
};
|
|
75
|
+
|
|
76
|
+
interface IconProps {
|
|
77
|
+
name: iconNames;
|
|
78
|
+
width?: number;
|
|
79
|
+
height?: number;
|
|
80
|
+
color?: string;
|
|
81
|
+
stroke?: number;
|
|
82
|
+
background?: backgroundType | backgroundTypeObj;
|
|
83
|
+
badge?: number | string | badgeTypeObj;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
const Icon: (props: IconProps) => ReactNode;
|
|
87
|
+
|
|
88
|
+
export { iconNames };
|
|
89
|
+
export default Icon;
|
|
90
|
+
}
|
|
File without changes
|