@telus-uds/components-web 2.0.0 → 2.2.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,40 @@
1
1
  # Change Log - @telus-uds/components-web
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 23:40:09 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
+ ## 2.2.0
8
+
9
+ Wed, 24 May 2023 23:40:09 GMT
10
+
11
+ ### Minor changes
12
+
13
+ - Add `onStartVideo` and `onSelectVideo` for `VideoPicker` (shahzaibkhalidmalik@outlook.com)
14
+ - Added cellMinWidth token to Table (wlsdud194@hotmail.com)
15
+ - Bump @telus-uds/components-base to v1.44.0
16
+ - Bump @telus-uds/system-theme-tokens to v2.27.0
17
+
18
+ ### Patches
19
+
20
+ - Fix an issue where `Card` may show double spacing when custom padding tokens are passed (shahzaibkhalidmalik@outlook.com)
21
+
22
+ ## 2.1.0
23
+
24
+ Wed, 24 May 2023 01:43:02 GMT
25
+
26
+ ### Minor changes
27
+
28
+ - Adding SSRstyles (srikanthkhari@gmail.com)
29
+ - chore: update snapshot for list (samuraix221@hotmail.com)
30
+ - Bump @telus-uds/components-base to v1.43.0
31
+ - Bump @telus-uds/system-constants to v1.2.1
32
+ - Bump @telus-uds/system-theme-tokens to v2.26.1
33
+ - Bump @telus-uds/browserslist-config to v1.0.5
34
+
7
35
  ## 2.0.0
8
36
 
9
- Fri, 19 May 2023 04:52:38 GMT
37
+ Fri, 19 May 2023 04:57:25 GMT
10
38
 
11
39
  ### Major changes
12
40
 
package/README.md CHANGED
@@ -1 +1,40 @@
1
- # Web Components
1
+ # Web components
2
+
3
+ The UDS web components are a set of low level react components themed by UDS themes.
4
+
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-web
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-web'
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
+ ```