@react95/core 8.0.1 → 8.0.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.
- package/README.md +22 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -40,7 +40,28 @@ export const MyApp = () => {
|
|
|
40
40
|
};
|
|
41
41
|
```
|
|
42
42
|
|
|
43
|
-
You can find a list of all available components on our [Storybook page](https://react95.github.io/React95/)
|
|
43
|
+
You can find a list of all available components on our [Storybook page](https://react95.github.io/React95/).
|
|
44
|
+
|
|
45
|
+
### About `Modal`
|
|
46
|
+
|
|
47
|
+
The `Modal` component is managed with `ModalContext`.
|
|
48
|
+
To ensure they are managed correctly, surround one or a group of Modals with a `<ModalProvider>`. Example:
|
|
49
|
+
|
|
50
|
+
```js
|
|
51
|
+
import { ModalProvider, Modal } from '@react95/core';
|
|
52
|
+
|
|
53
|
+
export const ModalExample = () => {
|
|
54
|
+
return (
|
|
55
|
+
<>
|
|
56
|
+
<ModalProvider>
|
|
57
|
+
<Modal title="Modal 1" />
|
|
58
|
+
<Modal title="Modal 2" />
|
|
59
|
+
...
|
|
60
|
+
</ModalProvider>
|
|
61
|
+
</>
|
|
62
|
+
);
|
|
63
|
+
};
|
|
64
|
+
```
|
|
44
65
|
|
|
45
66
|
### Next.JS
|
|
46
67
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@react95/core",
|
|
3
|
-
"version": "8.0.
|
|
3
|
+
"version": "8.0.2",
|
|
4
4
|
"description": "Windows 95 styleguide",
|
|
5
5
|
"main": "cjs/index.cjs",
|
|
6
6
|
"type": "module",
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"nostalgic",
|
|
56
56
|
"design-system"
|
|
57
57
|
],
|
|
58
|
-
"gitHead": "
|
|
58
|
+
"gitHead": "bfe9ff5c12371dfe96bc014e38820c7f38c7df72",
|
|
59
59
|
"module": "esm/index.mjs",
|
|
60
60
|
"private": false,
|
|
61
61
|
"types": "types/index.d.ts"
|