@igraal/web-design-system 0.0.1-security → 3.677.2
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.
Potentially problematic release.
This version of @igraal/web-design-system might be problematic. Click here for more details.
- package/README.md +37 -3
- package/dist/index.cjs.js +1 -0
- package/dist/index.esm.js +1 -0
- package/package.json +23 -4
- package/scripts/build.js +91 -0
package/README.md
CHANGED
@@ -1,5 +1,39 @@
|
|
1
|
-
#
|
1
|
+
# @igraal/web-design-system
|
2
2
|
|
3
|
-
|
3
|
+
Igraal design system based on React components.
|
4
4
|
|
5
|
-
|
5
|
+
## Features
|
6
|
+
|
7
|
+
- ES6 syntax, managed with Prettier + Eslint and Stylelint
|
8
|
+
- Unit testing via Jest
|
9
|
+
- React v17
|
10
|
+
- ESM
|
11
|
+
|
12
|
+
## Install
|
13
|
+
|
14
|
+
```sh
|
15
|
+
yarn add @igraal/web-design-system
|
16
|
+
// or
|
17
|
+
npm i @igraal/web-design-system
|
18
|
+
```
|
19
|
+
|
20
|
+
### Requirements
|
21
|
+
|
22
|
+
- Node.js `v12.x` or later
|
23
|
+
|
24
|
+
|
25
|
+
### Usage
|
26
|
+
|
27
|
+
```js
|
28
|
+
import { useModal } from '@igraal/web-design-system';
|
29
|
+
|
30
|
+
const App = () => {
|
31
|
+
const [Modal, openModal] = useModal();
|
32
|
+
return (
|
33
|
+
<div>
|
34
|
+
<button onClick={() => openModal(true)}>Open modal</button>
|
35
|
+
<Modal>This is inside a modal</Modal>
|
36
|
+
</div>
|
37
|
+
);
|
38
|
+
}
|
39
|
+
```
|