@telus-uds/components-base 1.45.0 → 1.46.0

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,12 +1,22 @@
1
1
  # Change Log - @telus-uds/components-base
2
2
 
3
- This log was last generated on Sat, 27 May 2023 00:37:34 GMT and should not be manually modified.
3
+ This log was last generated on Tue, 30 May 2023 02:42:51 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
+ ## 1.46.0
8
+
9
+ Tue, 30 May 2023 02:42:51 GMT
10
+
11
+ ### Minor changes
12
+
13
+ - Standardized RadioCardGroup (wlsdud194@hotmail.com)
14
+ - Button outer width is no longer set to 0 if token width = 0 (wlsdud194@hotmail.com)
15
+ - fix:list overflowing (samuraix221@hotmail.com)
16
+
7
17
  ## 1.45.0
8
18
 
9
- Sat, 27 May 2023 00:37:34 GMT
19
+ Sat, 27 May 2023 00:44:50 GMT
10
20
 
11
21
  ### Minor changes
12
22
 
@@ -81,7 +81,7 @@ const selectOuterSizeStyles = _ref3 => {
81
81
  });
82
82
  const sizeStyles = {}; // Apply width/height tokens: number === pixels, string === explicit units e.g. %
83
83
 
84
- if (typeof width === 'number' || typeof height === 'number') {
84
+ if (typeof width === 'number' && width > 0 || typeof height === 'number' && height > 0) {
85
85
  sizeStyles.width = width ? width + outerBorderOffset * 2 : width;
86
86
  sizeStyles.height = height ? height + outerBorderOffset * 2 : height;
87
87
  return sizeStyles;
package/lib/List/List.js CHANGED
@@ -68,6 +68,10 @@ const List = /*#__PURE__*/(0, _react.forwardRef)((_ref, ref) => {
68
68
 
69
69
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(_View.default, {
70
70
  ref: ref,
71
+ style: {
72
+ flexShrink: 1,
73
+ flex: 1
74
+ },
71
75
  accessibilityRole: accessibilityRole,
72
76
  ...selectProps(rest),
73
77
  children: items
@@ -57,7 +57,7 @@ const selectOuterSizeStyles = _ref3 => {
57
57
  });
58
58
  const sizeStyles = {}; // Apply width/height tokens: number === pixels, string === explicit units e.g. %
59
59
 
60
- if (typeof width === 'number' || typeof height === 'number') {
60
+ if (typeof width === 'number' && width > 0 || typeof height === 'number' && height > 0) {
61
61
  sizeStyles.width = width ? width + outerBorderOffset * 2 : width;
62
62
  sizeStyles.height = height ? height + outerBorderOffset * 2 : height;
63
63
  return sizeStyles;
@@ -47,6 +47,10 @@ const List = /*#__PURE__*/forwardRef((_ref, ref) => {
47
47
  });
48
48
  return /*#__PURE__*/_jsx(View, {
49
49
  ref: ref,
50
+ style: {
51
+ flexShrink: 1,
52
+ flex: 1
53
+ },
50
54
  accessibilityRole: accessibilityRole,
51
55
  ...selectProps(rest),
52
56
  children: items
package/package.json CHANGED
@@ -72,5 +72,5 @@
72
72
  "standard-engine": {
73
73
  "skip": true
74
74
  },
75
- "version": "1.45.0"
75
+ "version": "1.46.0"
76
76
  }
@@ -55,7 +55,7 @@ const selectOuterSizeStyles = ({ outerBorderGap, outerBorderWidth, width, height
55
55
  const outerBorderOffset = getOuterBorderOffset({ outerBorderGap, outerBorderWidth })
56
56
  const sizeStyles = {}
57
57
  // Apply width/height tokens: number === pixels, string === explicit units e.g. %
58
- if (typeof width === 'number' || typeof height === 'number') {
58
+ if ((typeof width === 'number' && width > 0) || (typeof height === 'number' && height > 0)) {
59
59
  sizeStyles.width = width ? width + outerBorderOffset * 2 : width
60
60
  sizeStyles.height = height ? height + outerBorderOffset * 2 : height
61
61
  return sizeStyles
package/src/List/List.jsx CHANGED
@@ -42,7 +42,12 @@ const List = forwardRef(
42
42
  })
43
43
 
44
44
  return (
45
- <View ref={ref} accessibilityRole={accessibilityRole} {...selectProps(rest)}>
45
+ <View
46
+ ref={ref}
47
+ style={{ flexShrink: 1, flex: 1 }}
48
+ accessibilityRole={accessibilityRole}
49
+ {...selectProps(rest)}
50
+ >
46
51
  {items}
47
52
  </View>
48
53
  )