@widergy/mobile-ui 1.18.3 → 1.18.5

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,17 @@
1
+ ## [1.18.5](https://github.com/widergy/mobile-ui/compare/v1.18.4...v1.18.5) (2024-08-23)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * utlabel for workflow message ([#339](https://github.com/widergy/mobile-ui/issues/339)) ([a9124d8](https://github.com/widergy/mobile-ui/commit/a9124d8b9205dba965c7d2b6e3a25365d794689a))
7
+
8
+ ## [1.18.4](https://github.com/widergy/mobile-ui/compare/v1.18.3...v1.18.4) (2024-08-21)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * style prop for utmodal ([#342](https://github.com/widergy/mobile-ui/issues/342)) ([034702c](https://github.com/widergy/mobile-ui/commit/034702c33c648cd7a4aebf6f348201be8a9ed30b))
14
+
1
15
  ## [1.18.3](https://github.com/widergy/mobile-ui/compare/v1.18.2...v1.18.3) (2024-08-21)
2
16
 
3
17
 
@@ -35,11 +35,12 @@ const UTModal = ({
35
35
  subtitle,
36
36
  subtitleProps = {},
37
37
  title,
38
- visible
38
+ visible,
39
+ style
39
40
  }) => {
40
41
  const theme = useTheme();
41
42
  const themeStyles = theme.simpleButton;
42
- const styles = _.merge({}, ownStyles, themeStyles);
43
+ const styles = _.merge({}, ownStyles, themeStyles, style);
43
44
 
44
45
  const ParentView = disableTouchable ? View : TouchableWithoutFeedback;
45
46
  return (
@@ -3,9 +3,9 @@ import { View } from 'react-native';
3
3
  import merge from 'lodash/merge';
4
4
  import { number } from 'prop-types';
5
5
 
6
- import Label from '../../../../../Label';
6
+ import UTLabel from '../../../../../UTLabel';
7
7
  import Surface from '../../../../../Surface';
8
- import Icon from '../../../../../Icon';
8
+ import UTIcon from '../../../../../UTIcon';
9
9
  import Checkbox from '../../../../../Checkbox';
10
10
  import { MessagePropTypes, SummaryPropTypes } from '../../types';
11
11
  import UTButton from '../../../../../UTButton';
@@ -17,7 +17,7 @@ import ownStyles from './styles';
17
17
  import { NEXT, RETURN } from './constants';
18
18
 
19
19
  const BottomActions = ({ bottomSafeArea, message, nextButton, returnButton, summary, style }) => {
20
- const messageIcon = message?.icon;
20
+ const messageIcon = message?.Icon;
21
21
  const MESSAGE_ICON_SIZE = 16;
22
22
  const checkboxProps = summary?.checkbox;
23
23
 
@@ -33,10 +33,12 @@ const BottomActions = ({ bottomSafeArea, message, nextButton, returnButton, summ
33
33
  <Checkbox {...checkboxProps} />
34
34
  ) : (
35
35
  <View style={themedStyles.summaryTitles}>
36
- <Label disabled medium style={themedStyles.summaryTitlesChild}>
36
+ <UTLabel colorTheme="gray" variant="small" style={themedStyles.summaryTitlesChild}>
37
37
  {summary.title}
38
- </Label>
39
- <Label>{summary.mainInfo}</Label>
38
+ </UTLabel>
39
+ <UTLabel weight="medium" variant="subtitle1">
40
+ {summary.mainInfo}
41
+ </UTLabel>
40
42
  </View>
41
43
  )}
42
44
  {summary.actions && !checkboxProps && (
@@ -73,19 +75,10 @@ const BottomActions = ({ bottomSafeArea, message, nextButton, returnButton, summ
73
75
  themedStyles[`message${message.variant?.charAt(0).toUpperCase()}${message.variant?.slice(1)}`]
74
76
  ]}
75
77
  >
76
- <Label style={themedStyles.messageChild} white>
78
+ <UTLabel colorTheme="negative" weight="medium" style={themedStyles.messageChild}>
77
79
  {message.title}
78
- </Label>
79
- {messageIcon && (
80
- <Icon
81
- color="white"
82
- height={MESSAGE_ICON_SIZE}
83
- name={messageIcon.name}
84
- size={MESSAGE_ICON_SIZE}
85
- type={messageIcon.type}
86
- width={MESSAGE_ICON_SIZE}
87
- />
88
- )}
80
+ </UTLabel>
81
+ {messageIcon && <UTIcon colorTheme="negative" name={messageIcon} size={MESSAGE_ICON_SIZE} />}
89
82
  </View>
90
83
  )}
91
84
  <View style={themedStyles.actionsContainer}>
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.18.3",
5
+ "version": "1.18.5",
6
6
  "repository": "https://github.com/widergy/mobile-ui.git",
7
7
  "main": "lib/index.js",
8
8
  "files": [