@widergy/mobile-ui 1.10.1 → 1.10.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/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ ## [1.10.2](https://github.com/widergy/mobile-ui/compare/v1.10.1...v1.10.2) (2024-05-22)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * visual errors icons ([#282](https://github.com/widergy/mobile-ui/issues/282)) ([e5b5ae6](https://github.com/widergy/mobile-ui/commit/e5b5ae6fdb8fbd1e3aa73ab41bc1649e4e6374b8))
7
+
1
8
  ## [1.10.1](https://github.com/widergy/mobile-ui/compare/v1.10.0...v1.10.1) (2024-05-20)
2
9
 
3
10
 
@@ -8,12 +8,12 @@ const Icon = ({ color, height, name, size, style, type, width }) => {
8
8
  return (
9
9
  <IconComponent
10
10
  color={color}
11
- height={height}
11
+ height={size || height || DEFAULT_ICON_SIZE}
12
12
  name={name}
13
- size={size}
13
+ size={size || DEFAULT_ICON_SIZE}
14
14
  style={style}
15
15
  type={type}
16
- width={width}
16
+ width={size || width || DEFAULT_ICON_SIZE}
17
17
  />
18
18
  );
19
19
  };
@@ -21,10 +21,7 @@ const Icon = ({ color, height, name, size, style, type, width }) => {
21
21
  Icon.propTypes = propTypes;
22
22
 
23
23
  Icon.defaultProps = {
24
- height: DEFAULT_ICON_SIZE,
25
- size: DEFAULT_ICON_SIZE,
26
- type: DEFAULT_ICON_TYPE,
27
- width: DEFAULT_ICON_SIZE
24
+ type: DEFAULT_ICON_TYPE
28
25
  };
29
26
 
30
27
  export default Icon;
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@widergy/mobile-ui",
3
3
  "description": "Widergy Mobile Components",
4
4
  "author": "widergy",
5
- "version": "1.10.1",
5
+ "version": "1.10.2",
6
6
  "repository": "https://github.com/widergy/mobile-ui.git",
7
7
  "main": "lib/index.js",
8
8
  "files": [