@widergy/mobile-ui 1.10.3 → 1.10.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.10.4](https://github.com/widergy/mobile-ui/compare/v1.10.3...v1.10.4) (2024-05-31)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* integrate uticon ([#289](https://github.com/widergy/mobile-ui/issues/289)) ([b7b058d](https://github.com/widergy/mobile-ui/commit/b7b058d129983a3c4eb658b89d84ab07bbda7dd3))
|
|
7
|
+
|
|
1
8
|
## [1.10.3](https://github.com/widergy/mobile-ui/compare/v1.10.2...v1.10.3) (2024-05-24)
|
|
2
9
|
|
|
3
10
|
|
|
@@ -8,7 +8,7 @@ import UTLoading from '../UTLoading';
|
|
|
8
8
|
|
|
9
9
|
import { DEFAULT_PROPS, ICON_PLACEMENTS } from './constants';
|
|
10
10
|
import { retrieveStyle } from './theme';
|
|
11
|
-
import {
|
|
11
|
+
import { isUTIcon } from './utils';
|
|
12
12
|
|
|
13
13
|
const UTButton = ({
|
|
14
14
|
children,
|
|
@@ -50,10 +50,10 @@ const UTButton = ({
|
|
|
50
50
|
|
|
51
51
|
const IconToShow =
|
|
52
52
|
Icon &&
|
|
53
|
-
(
|
|
54
|
-
<
|
|
53
|
+
(isUTIcon(Icon) ? (
|
|
54
|
+
<UTIcon color={themeTextStyles.color} style={iconClassname} size={iconClassname.fontSize} name={Icon} />
|
|
55
55
|
) : (
|
|
56
|
-
<
|
|
56
|
+
<Icon style={iconClassname} fill={themeTextStyles.color} />
|
|
57
57
|
));
|
|
58
58
|
|
|
59
59
|
const RenderedChildren = (
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export const
|
|
1
|
+
export const isUTIcon = icon => typeof icon === 'string';
|
package/package.json
CHANGED