react-confirm-lite 1.2.1 → 1.2.3
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 +3 -1
- package/package.json +11 -18
package/README.md
CHANGED
|
@@ -33,7 +33,7 @@ If you're using **Tailwind CSS** and want a **simple, lightweight** confirm dial
|
|
|
33
33
|
|
|
34
34
|
## 🔗 Live Demo
|
|
35
35
|
|
|
36
|
-
[](https://stackblitz.com/edit/vitejs-vite-bfthlpmw?
|
|
36
|
+
[](https://stackblitz.com/edit/vitejs-vite-bfthlpmw?file=src%2FApp.tsx)
|
|
37
37
|
|
|
38
38
|
## Getting Started
|
|
39
39
|
|
|
@@ -155,6 +155,8 @@ If you want more customization then you can pass children like this
|
|
|
155
155
|
</div>
|
|
156
156
|
)
|
|
157
157
|
```
|
|
158
|
+
Use `isVisible` parameter if you want your custom animation.
|
|
159
|
+
|
|
158
160
|
## Using with Next.js and want to add the ConfirmContainer in layout.tsx
|
|
159
161
|
If you will directly add the ConfirmContainer in layout.tsx then it will throw an error this problem can be solve easily.
|
|
160
162
|
Make the client side component and then add the ConfirmContainer in this client side component like this.
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-confirm-lite",
|
|
3
|
-
"version": "1.2.
|
|
4
|
-
"description": "A lightweight, promise-based confirm dialog for React
|
|
3
|
+
"version": "1.2.3",
|
|
4
|
+
"description": "A lightweight, promise-based confirm dialog for React, designed to be as easy to use as `react-toastify`, while remaining fully customizable.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
@@ -28,27 +28,20 @@
|
|
|
28
28
|
"dist"
|
|
29
29
|
],
|
|
30
30
|
"keywords": [
|
|
31
|
+
"react-confirm-lite",
|
|
32
|
+
"npm react-confirm-lite",
|
|
33
|
+
"react confirm lite",
|
|
34
|
+
"react confirm",
|
|
35
|
+
"easy react confirmation dialog",
|
|
31
36
|
"react",
|
|
32
37
|
"confirm",
|
|
33
|
-
"dialog",
|
|
34
|
-
"
|
|
35
|
-
"
|
|
36
|
-
"async",
|
|
37
|
-
"tailwind",
|
|
38
|
-
"confirmation",
|
|
39
|
-
"alert",
|
|
38
|
+
"confirm dialog",
|
|
39
|
+
"confirmation dialog",
|
|
40
|
+
"alert dialog",
|
|
40
41
|
"window.confirm",
|
|
41
42
|
"react-confirm",
|
|
42
43
|
"npm react-confirm",
|
|
43
|
-
"
|
|
44
|
-
"react-confirm-lite",
|
|
45
|
-
"tailwindcss",
|
|
46
|
-
"lightweight",
|
|
47
|
-
"zero-dependencies",
|
|
48
|
-
"simple",
|
|
49
|
-
"easy",
|
|
50
|
-
"ui",
|
|
51
|
-
"component"
|
|
44
|
+
"tailwindcss"
|
|
52
45
|
],
|
|
53
46
|
"author": "Saad Nasir",
|
|
54
47
|
"license": "MIT",
|