@widergy/mobile-ui 1.29.3 → 1.29.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/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ ## [1.29.4](https://github.com/widergy/mobile-ui/compare/v1.29.3...v1.29.4) (2024-10-29)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * icon fixes ([#380](https://github.com/widergy/mobile-ui/issues/380)) ([c4a6d84](https://github.com/widergy/mobile-ui/commit/c4a6d8467b9ee0f1eb22161d89df3154afbbb828))
7
+
1
8
  ## [1.29.3](https://github.com/widergy/mobile-ui/compare/v1.29.2...v1.29.3) (2024-10-23)
2
9
 
3
10
 
@@ -34,7 +34,6 @@ const UTIcon = ({
34
34
  name,
35
35
  shade,
36
36
  size,
37
- style,
38
37
  theme
39
38
  });
40
39
 
@@ -46,7 +45,7 @@ const UTIcon = ({
46
45
  ownStyles[`size${size}`],
47
46
  getVariantStyle({ color: colorTheme || color, shade, theme, variant })
48
47
  ],
49
- iconProps.style
48
+ style
50
49
  ]}
51
50
  >
52
51
  <IconComponent {...iconProps} />
@@ -3,17 +3,7 @@ import { retrieveColor } from './theme';
3
3
 
4
4
  export const isUTIcon = icon => typeof icon === 'string';
5
5
 
6
- export const getIconProps = ({
7
- color,
8
- colorTheme,
9
- fillShade,
10
- fillTheme,
11
- name,
12
- shade,
13
- size,
14
- style,
15
- theme
16
- }) => {
6
+ export const getIconProps = ({ color, colorTheme, fillShade, fillTheme, name, shade, size, theme }) => {
17
7
  const themeColor = retrieveColor({ colorTheme: color || colorTheme, theme, shade });
18
8
  const filled = name.endsWith('Filled');
19
9
  const isEnergyIcon = name.startsWith('Energy');
@@ -29,7 +19,7 @@ export const getIconProps = ({
29
19
  };
30
20
 
31
21
  return {
32
- style: [filled && { color: themeColor }, style],
22
+ style: [filled && { color: themeColor }],
33
23
  ...(internalFill && { fill: internalFill }),
34
24
  ...(isEnergyIcon || isBrandIcon ? customIconProps : defaultIconProps)
35
25
  };
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.29.3",
5
+ "version": "1.29.4",
6
6
  "repository": "https://github.com/widergy/mobile-ui.git",
7
7
  "main": "lib/index.js",
8
8
  "files": [