react-native-ico-business 4.1.4 → 5.1.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/README.md CHANGED
@@ -23,6 +23,7 @@ render() {
23
23
  <Icon name="share-1" />
24
24
  <Icon name="idea-2" height="40" width="40" />
25
25
  <Icon name="thinking" color="red" />
26
+ <Icon name="thinking" colors={{ "#000000": "#FFFFFF" }} />
26
27
  <Icon name="idea-2" badge="10" />
27
28
  <Icon name="idea-2" badge={{value: 'A', fontSize: 25, radius: 22, position:'top_left', color:'orange', backgroundColor:'blue'}}/>
28
29
  <Icon name="share-1" background="circle" />
@@ -69,13 +70,14 @@ Returns a SvgXml icon by name and group.
69
70
  ------|----------|---------------|-------------|---------
70
71
  name | no | | name of icon | "share-1"
71
72
  color | yes | | line color, css style | "#00ff00", "#0f0", "green"
73
+ colors | yes | | replace colors | {"#FFFFFF": "#000000"} // white to black
72
74
  width | yes | 20 | width of the icon | 40
73
75
  height | yes | 20 | height of the icon | 40
74
- background | no | | background type | "circle"
75
- background | no | | background object | {type: "circle", color: 'yellow'}
76
- badge | no | | badge string | "10"
77
- badge | no | | badge object | {value: 'A', fontSize: 25, radius: 22, position:'top_left', color:'orange', backgroundColor:'blue'}
78
- ...rest | no | | other props | style={{backgroundColor: "#00f"}}
76
+ background | yes | | background type | "circle"
77
+ background | yes | | background object | {type: "circle", color: 'yellow'}
78
+ badge | yes | | badge string | "10"
79
+ badge | yes | | badge object | {value: 'A', fontSize: 25, radius: 22, position:'top_left', color:'orange', backgroundColor:'blue'}
80
+ ...rest | yes | | other props | style={{backgroundColor: "#00f"}}
79
81
 
80
82
  ## Icons Made by
81
83
 
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "react-native-ico-business",
3
- "version": "4.1.4",
3
+ "version": "5.1.2",
4
4
  "description": "Business Icons for React Native",
5
5
  "main": "src/index.jsx",
6
6
  "types": "typings.d.ts",
7
7
  "dependencies": {
8
- "react-svg-main": "^3.0.1"
8
+ "react-svg-main": "^4.0.1"
9
9
  },
10
10
  "repository": {
11
11
  "type": "git",
package/typings.d.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  declare module 'react-native-ico-business' {
2
2
  import { ReactNode } from 'react';
3
+ import { SvgProps, AdditionalProps } from 'react-native-svg';
3
4
 
4
5
  type iconNames = 'idea-3' |
5
6
  'minimize' |
@@ -115,8 +116,33 @@ declare module 'react-native-ico-business' {
115
116
  'buildings' |
116
117
  'email';
117
118
 
119
+ type iconColors = '#1BA9D8' |
120
+ '#1BB7EA' |
121
+ '#1CA6D4' |
122
+ '#1CA8D7' |
123
+ '#1F4254' |
124
+ '#7D8790' |
125
+ '#96A0A8' |
126
+ '#A4ABB1' |
127
+ '#B4C0C6' |
128
+ '#BEC7CB' |
129
+ '#C2CACE' |
130
+ '#C3CBCF' |
131
+ '#C5CED3' |
132
+ '#C7CED2' |
133
+ '#C8CFD2' |
134
+ '#D7DBDE' |
135
+ '#D8DDDF' |
136
+ '#DADEE0' |
137
+ '#DCE0E2' |
138
+ '#E8ECEE' |
139
+ '#F2F2F2' |
140
+ '#FFFFFF';
141
+
118
142
  type backgroundType = 'circle' | 'rect' | 'button';
119
143
 
144
+ type colorsType = Record<iconColors, string>;
145
+
120
146
  type positionType = 'top' | 'bottom' | 'right' | 'left' |
121
147
  'top_right' | 'top_left' | 'bottom_right' | 'bottom_left';
122
148
 
@@ -132,6 +158,7 @@ declare module 'react-native-ico-business' {
132
158
  fontSize?: string;
133
159
  position?: positionType;
134
160
  color?: string;
161
+ colors: colorsType;
135
162
  backgroundColor?: string;
136
163
  radius?: number;
137
164
  };
@@ -141,12 +168,13 @@ declare module 'react-native-ico-business' {
141
168
  width?: number;
142
169
  height?: number;
143
170
  color?: string;
171
+ colors: colorsType;
144
172
  stroke?: number;
145
173
  background?: backgroundType | backgroundTypeObj;
146
174
  badge?: number | string | badgeTypeObj;
147
175
  }
148
176
 
149
- const Icon: (props: IconProps) => ReactNode;
177
+ const Icon: (props: IconProps & SvgProps & AdditionalProps) => ReactNode;
150
178
 
151
179
  export { iconNames };
152
180
  export default Icon;