@geoffreybunel/react-hrnet-modal 0.4.0 → 0.6.0
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 +10 -8
- package/package.json +13 -1
package/README.md
CHANGED
|
@@ -4,6 +4,14 @@ A lightweight and controlled React modal component, created as part of the HRNet
|
|
|
4
4
|
This component replaces a legacy jQuery modal plugin with a fully React-based, reusable solution.
|
|
5
5
|
The modal is designed to be simple, predictable, accessible, and easy to integrate into any React application.
|
|
6
6
|
|
|
7
|
+
## ✅ Prerequisites
|
|
8
|
+
|
|
9
|
+
Before installing this package, make sure your environment meets the following requirements:
|
|
10
|
+
|
|
11
|
+
- Node.js >= 18
|
|
12
|
+
- React >= 18
|
|
13
|
+
- React DOM >= 18
|
|
14
|
+
|
|
7
15
|
## ✨ Features
|
|
8
16
|
|
|
9
17
|
- Controlled component (isOpen / onClose)
|
|
@@ -17,15 +25,9 @@ The modal is designed to be simple, predictable, accessible, and easy to integra
|
|
|
17
25
|
|
|
18
26
|
## 📦 Installation
|
|
19
27
|
|
|
20
|
-
This package is published on
|
|
21
|
-
|
|
22
|
-
### 1. Configure npm (once per project)
|
|
23
|
-
Create or edit a .npmrc file at the root of your project:
|
|
24
|
-
```ini
|
|
25
|
-
@geoffreybunel:registry=https://npm.pkg.github.com
|
|
26
|
-
```
|
|
28
|
+
This package is published on npmjs.com.
|
|
27
29
|
|
|
28
|
-
###
|
|
30
|
+
### Install the package
|
|
29
31
|
```ini
|
|
30
32
|
npm install @geoffreybunel/react-hrnet-modal
|
|
31
33
|
```
|
package/package.json
CHANGED
|
@@ -1,7 +1,19 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@geoffreybunel/react-hrnet-modal",
|
|
3
|
+
"description": "Lightweight, reusable and accessible modal component for React.",
|
|
4
|
+
"author": "Geoffrey Bunel",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"react",
|
|
7
|
+
"react-modal",
|
|
8
|
+
"modal",
|
|
9
|
+
"dialog",
|
|
10
|
+
"popup",
|
|
11
|
+
"accessible",
|
|
12
|
+
"component",
|
|
13
|
+
"ui"
|
|
14
|
+
],
|
|
3
15
|
"private": false,
|
|
4
|
-
"version": "0.
|
|
16
|
+
"version": "0.6.0",
|
|
5
17
|
"type": "module",
|
|
6
18
|
"license": "MIT",
|
|
7
19
|
"main": "./dist/react-hrnet-modal.umd.js",
|