@widergy/mobile-ui 1.14.1 → 1.14.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.14.2](https://github.com/widergy/mobile-ui/compare/v1.14.1...v1.14.2) (2024-07-22)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * update prop ([#316](https://github.com/widergy/mobile-ui/issues/316)) ([4128c3b](https://github.com/widergy/mobile-ui/commit/4128c3b884df4292edae4b6f9229dc36d2fb85d6))
7
+
1
8
  ## [1.14.1](https://github.com/widergy/mobile-ui/compare/v1.14.0...v1.14.1) (2024-07-19)
2
9
 
3
10
 
@@ -7,13 +7,13 @@ import { useTheme } from '../../theming';
7
7
 
8
8
  import { retrieveColor } from './theme';
9
9
 
10
- const UTIcon = ({ colorTheme = 'dark', name, shade, size, style }) => {
10
+ const UTIcon = ({ color, colorTheme = 'dark', name, shade, size, style }) => {
11
11
  const theme = useTheme();
12
12
 
13
13
  const IconComponent = TablerIcons[name];
14
14
  if (!IconComponent) return null;
15
15
 
16
- const themeColor = retrieveColor({ colorTheme, theme, shade });
16
+ const themeColor = retrieveColor({ colorTheme: color || colorTheme, theme, shade });
17
17
  const filled = name.endsWith('Filled');
18
18
  const iconColor = filled ? 'transparent' : themeColor;
19
19
 
@@ -21,6 +21,10 @@ const UTIcon = ({ colorTheme = 'dark', name, shade, size, style }) => {
21
21
  };
22
22
 
23
23
  UTIcon.propTypes = {
24
+ /**
25
+ * @deprecated The "color" prop is deprecated and will be removed in a future release. Please use "colorTheme" instead.
26
+ */
27
+ color: string,
24
28
  colorTheme: string,
25
29
  name: string,
26
30
  shade: string,
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.14.1",
5
+ "version": "1.14.2",
6
6
  "repository": "https://github.com/widergy/mobile-ui.git",
7
7
  "main": "lib/index.js",
8
8
  "files": [