@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 CHANGED
@@ -1,5 +1,39 @@
1
- # Security holding package
1
+ # @igraal/web-design-system
2
2
 
3
- This package contained malicious code and was removed from the registry by the npm security team. A placeholder was published to ensure users are not affected in the future.
3
+ Igraal design system based on React components.
4
4
 
5
- Please refer to www.npmjs.com/advisories?search=%40igraal%2Fweb-design-system for more information.
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
+ ```