@telus-uds/components-base 1.42.0 → 1.43.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,24 @@
1
1
  # Change Log - @telus-uds/components-base
2
2
 
3
- This log was last generated on Fri, 19 May 2023 04:52:38 GMT and should not be manually modified.
3
+ This log was last generated on Wed, 24 May 2023 01:36:34 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
+ ## 1.43.0
8
+
9
+ Wed, 24 May 2023 01:36:34 GMT
10
+
11
+ ### Minor changes
12
+
13
+ - installation, usage and license update in readme.md (srikanthkhari@gmail.com)
14
+ - fix: list (samuraix221@hotmail.com)
15
+ - Bump @telus-uds/system-constants to v1.2.1
16
+ - Bump @telus-uds/system-theme-tokens to v2.26.1
17
+ - Bump @telus-uds/browserslist-config to v1.0.5
18
+
7
19
  ## 1.42.0
8
20
 
9
- Fri, 19 May 2023 04:52:38 GMT
21
+ Fri, 19 May 2023 04:57:25 GMT
10
22
 
11
23
  ### Minor changes
12
24
 
package/README.md CHANGED
@@ -3,3 +3,38 @@
3
3
  The UDS base components are a set of low level react-native components themed by UDS themes.
4
4
 
5
5
  Refer to the [UDS monorepo README](https://github.com/telus/universal-design-system/#readme) for details.
6
+
7
+ ## Install
8
+
9
+ ```javascript
10
+
11
+ npm install @telus-uds/components-base
12
+ ```
13
+
14
+ To ensure proper functionality, it is important to install the brand palette and theme since the components package does not include a default theme. For example, you can install the Telus brand palette and theme by running the following command:
15
+
16
+ ```javascript
17
+
18
+ npm install @telus-uds/palette-allium @telus-uds/theme-allium
19
+ ```
20
+
21
+ This will provide the necessary components, along with the corresponding palette and theme, for your project.
22
+
23
+ ## Usage
24
+
25
+ 1. Export component as a named export from root
26
+ 2. Wrap the UDS component in an BaseProvider
27
+ 3. Include the BaseProvider provider once at the root of your application (e.g. in App.jsx)
28
+
29
+ ```javascript
30
+
31
+ import { BaseProvider, Button } from '@telus-uds/components-base'
32
+ import alliumTheme from '@telus-uds/theme-allium'
33
+ ...
34
+ <BaseProvider defaultTheme={alliumTheme}>
35
+ ...
36
+ <Button onPress={() => {}}>Hello World!</Button>
37
+ ...
38
+ </BaseProvider>
39
+ ...
40
+ ```
@@ -110,8 +110,8 @@ const ListItemBase = /*#__PURE__*/(0, _react.forwardRef)((_ref3, ref) => {
110
110
  isLastItem
111
111
  }) : /*#__PURE__*/(0, _jsxRuntime.jsxs)(_View.default, {
112
112
  style: [{
113
- flexDirection: 'row',
114
- flex: 'wrap'
113
+ flex: 1,
114
+ flexDirection: 'row'
115
115
  }, !title && {
116
116
  alignItems: 'center'
117
117
  }],
@@ -143,7 +143,8 @@ const staticStyles = _StyleSheet.default.create({
143
143
  flexDirection: 'row'
144
144
  },
145
145
  titleAndContentContainer: {
146
- flexDirection: 'column'
146
+ flexDirection: 'column',
147
+ flexShrink: 1
147
148
  }
148
149
  });
149
150
 
@@ -88,8 +88,8 @@ const ListItemBase = /*#__PURE__*/forwardRef((_ref3, ref) => {
88
88
  isLastItem
89
89
  }) : /*#__PURE__*/_jsxs(View, {
90
90
  style: [{
91
- flexDirection: 'row',
92
- flex: 'wrap'
91
+ flex: 1,
92
+ flexDirection: 'row'
93
93
  }, !title && {
94
94
  alignItems: 'center'
95
95
  }],
@@ -120,7 +120,8 @@ const staticStyles = StyleSheet.create({
120
120
  flexDirection: 'row'
121
121
  },
122
122
  titleAndContentContainer: {
123
- flexDirection: 'column'
123
+ flexDirection: 'column',
124
+ flexShrink: 1
124
125
  }
125
126
  });
126
127
  ListItemBase.propTypes = { ...selectedSystemPropTypes,
package/package.json CHANGED
@@ -10,8 +10,8 @@
10
10
  "@floating-ui/react-dom": "^1.0.1",
11
11
  "@floating-ui/react-native": "^0.8.1",
12
12
  "@gorhom/portal": "^1.0.14",
13
- "@telus-uds/system-constants": "^1.2.0",
14
- "@telus-uds/system-theme-tokens": "^2.26.0",
13
+ "@telus-uds/system-constants": "^1.2.1",
14
+ "@telus-uds/system-theme-tokens": "^2.26.1",
15
15
  "airbnb-prop-types": "^2.16.0",
16
16
  "lodash.debounce": "^4.0.8",
17
17
  "lodash.merge": "^4.6.2",
@@ -21,7 +21,7 @@
21
21
  },
22
22
  "description": "Base components",
23
23
  "devDependencies": {
24
- "@telus-uds/browserslist-config": "^1.0.4",
24
+ "@telus-uds/browserslist-config": "^1.0.5",
25
25
  "@testing-library/jest-native": "^4.0.1",
26
26
  "@testing-library/react": "^13.3.0",
27
27
  "@testing-library/react-hooks": "~7.0.1",
@@ -39,7 +39,7 @@
39
39
  "keywords": [
40
40
  "base"
41
41
  ],
42
- "license": "UNLICENSED",
42
+ "license": "MIT",
43
43
  "main": "lib/index.js",
44
44
  "module": "lib-module/index.js",
45
45
  "name": "@telus-uds/components-base",
@@ -72,5 +72,5 @@
72
72
  "standard-engine": {
73
73
  "skip": true
74
74
  },
75
- "version": "1.42.0"
75
+ "version": "1.43.0"
76
76
  }
@@ -74,8 +74,8 @@ const ListItemBase = forwardRef(
74
74
  <View
75
75
  style={[
76
76
  {
77
- flexDirection: 'row',
78
- flex: 'wrap'
77
+ flex: 1,
78
+ flexDirection: 'row'
79
79
  },
80
80
  !title && { alignItems: 'center' }
81
81
  ]}
@@ -99,7 +99,7 @@ const staticStyles = StyleSheet.create({
99
99
  itemContainer: {
100
100
  flexDirection: 'row'
101
101
  },
102
- titleAndContentContainer: { flexDirection: 'column' }
102
+ titleAndContentContainer: { flexDirection: 'column', flexShrink: 1 }
103
103
  })
104
104
 
105
105
  ListItemBase.propTypes = {