willba-component-library 0.1.1 → 0.1.3

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.
Files changed (2) hide show
  1. package/README.md +13 -12
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -34,23 +34,24 @@ or you can add the willba-component-library using scripts:
34
34
  <script src="https://cdn.jsdelivr.net/npm/willba-component-library@0.0.90/lib/index.umd.js"></script>
35
35
 
36
36
  <script>
37
- const filterBarElement = React.createElement;
38
- const filterBarContainer = document.getElementById('will-filter-bar');
39
- const WillFilterBar = WillbaComponentLibrary.FilterBar ;
40
-
41
- ReactDOM.render(filterBarElement(
42
- WillFilterBar,
43
- {
44
- redirectUrl='http://localhost:3000/'
45
- },
46
- ), filterBarContainer )
37
+ const filterBarElement = React.createElement
38
+ const filterBarContainer = document.getElementById('will-filter-bar')
39
+ const WillFilterBar = WillbaComponentLibrary.FilterBar
40
+
41
+ ReactDOM.render(
42
+ filterBarElement(WillFilterBar, {
43
+ redirectUrl: 'http://localhost:3000/',
44
+ }),
45
+ filterBarContainer
46
+ )
47
47
  </script>
48
48
  ```
49
49
 
50
- ### Props of FilterBar
50
+ ## Props of FilterBar
51
51
 
52
52
  | Name | Value | Description |
53
53
  | ------------- | ------------- | ------------------------------------------------------------------------------------------------------------------------ |
54
54
  | redirectUrl | `"string"` | Define the URL where the component showld redirect on filtering. |
55
- | language | `"fi" , "en"` | Specify the language, available languages Finnish and English |
55
+ | language | `"fi" , "en"` | Specify the language, available languages Finnish and English. |
56
56
  | ageCategories | `[{}]` | Specify age categories for guests filter: [{id: string, name: string, minAge: number , maxAge: number , minVal: number}] |
57
+ | vendor | `"string"` | Add vendor name for custom theme. |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "willba-component-library",
3
- "version": "0.1.1",
3
+ "version": "0.1.3",
4
4
  "description": "A stroybook 6 with TypeScript demo",
5
5
  "main": "lib/index.js",
6
6
  "module": "lib/index.esm.js",