@widergy/mobile-ui 1.49.3 → 1.49.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 +8 -0
- package/lib/components/UTLabel/index.js +21 -15
- package/package.json +4 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
## [1.49.4](https://github.com/widergy/mobile-ui/compare/v1.49.3...v1.49.4) (2025-07-14)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* added posibility to pass props in theme for utlabel ([#445](https://github.com/widergy/mobile-ui/issues/445)) ([c38b587](https://github.com/widergy/mobile-ui/commit/c38b587ee852ab6a85cdf6250c315f37dcbe8cbc))
|
|
7
|
+
* added resolution ([#447](https://github.com/widergy/mobile-ui/issues/447)) ([4aa8d9d](https://github.com/widergy/mobile-ui/commit/4aa8d9dec5174690a8b89be246724383e5691258))
|
|
8
|
+
|
|
1
9
|
## [1.49.3](https://github.com/widergy/mobile-ui/compare/v1.49.2...v1.49.3) (2025-06-25)
|
|
2
10
|
|
|
3
11
|
|
|
@@ -8,23 +8,28 @@ import { markdownFormat } from './utils';
|
|
|
8
8
|
import { retrieveStyle } from './theme';
|
|
9
9
|
import { DEFAULT_PROPS, propTypes } from './proptypes';
|
|
10
10
|
|
|
11
|
-
const UTLabel =
|
|
12
|
-
children,
|
|
13
|
-
colorTheme,
|
|
14
|
-
dataTestId,
|
|
15
|
-
field,
|
|
16
|
-
markdownStyles,
|
|
17
|
-
numberOfLines,
|
|
18
|
-
onLinkPress,
|
|
19
|
-
onTextLayout,
|
|
20
|
-
shade,
|
|
21
|
-
style,
|
|
22
|
-
variant,
|
|
23
|
-
weight,
|
|
24
|
-
withMarkdown
|
|
25
|
-
}) => {
|
|
11
|
+
const UTLabel = props => {
|
|
26
12
|
const theme = useTheme();
|
|
27
13
|
|
|
14
|
+
const labelProps = { ...(theme?.componentsProps?.UTLabel || {}), ...props };
|
|
15
|
+
|
|
16
|
+
const {
|
|
17
|
+
children,
|
|
18
|
+
colorTheme,
|
|
19
|
+
dataTestId,
|
|
20
|
+
field,
|
|
21
|
+
markdownStyles,
|
|
22
|
+
numberOfLines,
|
|
23
|
+
onLinkPress,
|
|
24
|
+
onTextLayout,
|
|
25
|
+
rules,
|
|
26
|
+
shade,
|
|
27
|
+
style,
|
|
28
|
+
variant,
|
|
29
|
+
weight,
|
|
30
|
+
withMarkdown
|
|
31
|
+
} = labelProps;
|
|
32
|
+
|
|
28
33
|
if (!children) return null;
|
|
29
34
|
|
|
30
35
|
const themeStyles = retrieveStyle({ colorTheme, field, shade, theme, variant, weight });
|
|
@@ -39,6 +44,7 @@ const UTLabel = ({
|
|
|
39
44
|
{...additionalProps}
|
|
40
45
|
onLinkPress={onLinkPress}
|
|
41
46
|
onTextLayout={onTextLayout}
|
|
47
|
+
rules={rules}
|
|
42
48
|
testID={dataTestId}
|
|
43
49
|
style={
|
|
44
50
|
withMarkdown
|
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.49.
|
|
5
|
+
"version": "1.49.4",
|
|
6
6
|
"repository": "https://github.com/widergy/mobile-ui.git",
|
|
7
7
|
"main": "lib/index.js",
|
|
8
8
|
"files": [
|
|
@@ -90,5 +90,8 @@
|
|
|
90
90
|
},
|
|
91
91
|
"release": {
|
|
92
92
|
"extends": "@widergy/semantic-release-package-config"
|
|
93
|
+
},
|
|
94
|
+
"resolutions": {
|
|
95
|
+
"minimatch": "9.0.5"
|
|
93
96
|
}
|
|
94
97
|
}
|