@widergy/mobile-ui 1.4.2 → 1.4.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,17 @@
1
+ ## [1.4.4](https://github.com/widergy/mobile-ui/compare/v1.4.3...v1.4.4) (2024-04-18)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * elevation ([96132e6](https://github.com/widergy/mobile-ui/commit/96132e62cc7fe502f7a1ec621995d4ae67602b75))
7
+
8
+ ## [1.4.3](https://github.com/widergy/mobile-ui/compare/v1.4.2...v1.4.3) (2024-04-15)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * utselectablecard width with long titles ([#274](https://github.com/widergy/mobile-ui/issues/274)) ([32def84](https://github.com/widergy/mobile-ui/commit/32def847aeaca0d10598aad28c2b9625aa42826a))
14
+
1
15
  ## [1.4.2](https://github.com/widergy/mobile-ui/compare/v1.4.1...v1.4.2) (2024-04-15)
2
16
 
3
17
 
@@ -44,7 +44,7 @@ const Button = ({
44
44
  ? NO_ELEVATION
45
45
  : mode === OUTLINED
46
46
  ? NO_ELEVATION
47
- : elevation || themeStyles.buttonElevation
47
+ : elevation ?? themeStyles.buttonElevation
48
48
  }
49
49
  style={[
50
50
  styles.container,
@@ -62,10 +62,10 @@ const UTSelectableCard = ({
62
62
  )}
63
63
  <View style={themedStyles.textContainer}>
64
64
  <View style={themedStyles.column}>
65
- <View style={themedStyles.titleAndTooltip}>
65
+ <View style={[themedStyles.titleAndTooltip, selected && themedStyles.selectedTitleAndTooltip]}>
66
66
  <Label
67
67
  color={selected ? selectedColor : disabled ? disabledColor : baseColor}
68
- style={themedStyles.title}
68
+ style={tooltip && themedStyles.titleMargin}
69
69
  >
70
70
  {titleText}
71
71
  </Label>
@@ -30,7 +30,7 @@ export const getUTSelectableCardStyles = (theme = {}) =>
30
30
  flexGrow: 1,
31
31
  justifyContent: 'space-between'
32
32
  },
33
- title: {
33
+ titleMargin: {
34
34
  marginRight: 8
35
35
  },
36
36
  titleAndTooltip: {
@@ -38,6 +38,9 @@ export const getUTSelectableCardStyles = (theme = {}) =>
38
38
  display: 'flex',
39
39
  flexDirection: 'row'
40
40
  },
41
+ selectedTitleAndTooltip: {
42
+ maxWidth: 300
43
+ },
41
44
 
42
45
  // Sizes
43
46
  mediumSize: {
@@ -15,13 +15,14 @@ const ActionButton = ({ hidden, disabled, onPress, label, mode, style }) => {
15
15
  return (
16
16
  <View style={themedStyles.actionButton}>
17
17
  <Button
18
+ containerStyle={themedStyles.buttonContainer}
19
+ contentStyle={themedStyles.buttonContent}
18
20
  disabled={disabled || hidden}
19
- mode={mode}
21
+ elevation={themedStyles.elevation}
20
22
  lowerCase
21
- title={label}
23
+ mode={mode}
22
24
  onPress={onPress}
23
- contentStyle={themedStyles.buttonContent}
24
- containerStyle={themedStyles.buttonContainer}
25
+ title={label}
25
26
  />
26
27
  </View>
27
28
  );
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.4.2",
5
+ "version": "1.4.4",
6
6
  "repository": "https://github.com/widergy/mobile-ui.git",
7
7
  "main": "lib/index.js",
8
8
  "files": [