react-native-ico-business 4.1.3 → 4.1.5

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 (2) hide show
  1. package/package.json +1 -1
  2. package/typings.d.ts +29 -4
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-ico-business",
3
- "version": "4.1.3",
3
+ "version": "4.1.5",
4
4
  "description": "Business Icons for React Native",
5
5
  "main": "src/index.jsx",
6
6
  "types": "typings.d.ts",
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,15 +116,39 @@ declare module 'react-native-ico-business' {
115
116
  'buildings' |
116
117
  'email';
117
118
 
119
+ type backgroundType = 'circle' | 'rect' | 'button';
120
+
121
+ type positionType = 'top' | 'bottom' | 'right' | 'left' |
122
+ 'top_right' | 'top_left' | 'bottom_right' | 'bottom_left';
123
+
124
+ type backgroundTypeObj = {
125
+ type?: backgroundType;
126
+ color?: string;
127
+ radius?: number;
128
+ borderRadius?: number;
129
+ };
130
+
131
+ type badgeTypeObj = {
132
+ value?: number | string;
133
+ fontSize?: string;
134
+ position?: positionType;
135
+ color?: string;
136
+ backgroundColor?: string;
137
+ radius?: number;
138
+ };
139
+
118
140
  interface IconProps {
119
141
  name: iconNames;
120
- color: string;
121
- size: number;
142
+ width?: number;
143
+ height?: number;
144
+ color?: string;
145
+ stroke?: number;
146
+ background?: backgroundType | backgroundTypeObj;
147
+ badge?: number | string | badgeTypeObj;
122
148
  }
123
149
 
124
- const Icon: (props: IconProps) => ReactNode;
150
+ const Icon: (props: IconProps & SvgProps & AdditionalProps) => ReactNode;
125
151
 
126
152
  export { iconNames };
127
153
  export default Icon;
128
154
  }
129
-