@widergy/mobile-ui 1.49.2 → 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
CHANGED
|
@@ -1,3 +1,18 @@
|
|
|
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
|
+
|
|
9
|
+
## [1.49.3](https://github.com/widergy/mobile-ui/compare/v1.49.2...v1.49.3) (2025-06-25)
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
### Bug Fixes
|
|
13
|
+
|
|
14
|
+
* [UGC-1584] status style fix ([#444](https://github.com/widergy/mobile-ui/issues/444)) ([64ba220](https://github.com/widergy/mobile-ui/commit/64ba220bb0d1877edd02d84b7150dff43bd74f67))
|
|
15
|
+
|
|
1
16
|
## [1.49.2](https://github.com/widergy/mobile-ui/compare/v1.49.1...v1.49.2) (2025-06-13)
|
|
2
17
|
|
|
3
18
|
|
|
@@ -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
|
|
@@ -3,15 +3,18 @@ import { ViewPropTypes } from 'deprecated-react-native-prop-types';
|
|
|
3
3
|
import { bool, object, shape, string } from 'prop-types';
|
|
4
4
|
|
|
5
5
|
import UTStatus from '../../../UTStatus';
|
|
6
|
+
import { mergeMultipleStyles } from '../../../../utils/styleUtils';
|
|
6
7
|
|
|
7
8
|
const Status = ({ shouldUseGap, statusProps, themedStyles }) => {
|
|
8
|
-
const { label } = statusProps;
|
|
9
|
+
const { label, style: statusStyle, ...restStatusProps } = statusProps;
|
|
10
|
+
|
|
11
|
+
const mergedStyles = mergeMultipleStyles(
|
|
12
|
+
{ container: [shouldUseGap ? themedStyles.gap : null, themedStyles.status] },
|
|
13
|
+
statusStyle
|
|
14
|
+
);
|
|
9
15
|
|
|
10
16
|
return (
|
|
11
|
-
<UTStatus
|
|
12
|
-
style={{ container: [shouldUseGap ? themedStyles.gap : '', themedStyles.status] }}
|
|
13
|
-
{...statusProps}
|
|
14
|
-
>
|
|
17
|
+
<UTStatus style={mergedStyles} {...restStatusProps}>
|
|
15
18
|
{label}
|
|
16
19
|
</UTStatus>
|
|
17
20
|
);
|
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
|
}
|