@janiscommerce/ui-web 0.0.12 → 0.0.15
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/README.md +33 -0
- package/index.umd.js +2199 -105
- package/index.umd.js.map +1 -1
- package/package.json +17 -2
package/README.md
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# @janis-commerce/ui-web
|
|
2
|
+
|
|
3
|
+
A package for use generic components from Janis
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
`npm install @janiscommerce/ui-web`
|
|
8
|
+
|
|
9
|
+
### Usage
|
|
10
|
+
|
|
11
|
+
```js
|
|
12
|
+
import React from 'react';
|
|
13
|
+
const { Button, Icon } = '@janiscommerce/ui-web';
|
|
14
|
+
|
|
15
|
+
const MyComponent = () => {
|
|
16
|
+
const handleClick = () => {
|
|
17
|
+
console.log('some action');
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
return (
|
|
21
|
+
<div>
|
|
22
|
+
<Button onClick={handleClick} variant="contained">Click</Button>
|
|
23
|
+
<Icon name="box" color="primary" />
|
|
24
|
+
</div>
|
|
25
|
+
);
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
export default MyComponent;
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
### Important
|
|
32
|
+
|
|
33
|
+
All the components that can be used and other documentation can be found at ***[https://janis-commerce.github.io/ui-web](https://janis-commerce.github.io/ui-web)***
|