@widergy/mobile-ui 1.3.0 → 1.3.1

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.3.1](https://github.com/widergy/mobile-ui/compare/v1.3.0...v1.3.1) (2024-03-13)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * action button styles ([#267](https://github.com/widergy/mobile-ui/issues/267)) ([133048b](https://github.com/widergy/mobile-ui/commit/133048b8f8adeeef25eb86179a4588d8ed048d37))
7
+
1
8
  # [1.3.0](https://github.com/widergy/mobile-ui/compare/v1.2.1...v1.3.0) (2024-03-11)
2
9
 
3
10
 
@@ -4,11 +4,13 @@ import { View } from 'react-native';
4
4
  import _ from 'lodash';
5
5
 
6
6
  import Button from '../../../../../../../Button';
7
+ import { useTheme } from '../../../../../../../../theming';
7
8
 
8
9
  import ownStyles from './styles';
9
10
 
10
11
  const ActionButton = ({ hidden, disabled, onPress, label, mode, style }) => {
11
- const themedStyles = _.merge({}, ownStyles, style);
12
+ const theme = useTheme();
13
+ const themedStyles = _.merge({}, ownStyles, theme?.UTWorkflowContainer?.actionButton, style);
12
14
 
13
15
  return (
14
16
  <View style={themedStyles.actionButton}>
@@ -4,9 +4,6 @@ export default StyleSheet.create({
4
4
  actionButton: {
5
5
  flexGrow: 1
6
6
  },
7
- button: {
8
- width: '100%'
9
- },
10
7
  buttonContainer: {
11
8
  width: '100%'
12
9
  }
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.3.0",
5
+ "version": "1.3.1",
6
6
  "repository": "https://github.com/widergy/mobile-ui.git",
7
7
  "main": "lib/index.js",
8
8
  "files": [