react-confirm 0.3.0-5 → 0.3.0-7

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.
Files changed (2) hide show
  1. package/README.md +7 -11
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -5,11 +5,8 @@ One key feature of react-confirm is that it doesn't provide a specific view or c
5
5
 
6
6
  [![npm version](https://badge.fury.io/js/react-confirm.svg)](https://badge.fury.io/js/react-confirm)
7
7
 
8
- ## Examples
9
- - [react-bootstrap demo in codesandbox](https://codesandbox.io/s/react-confirm-with-react-bootstrap-kjju1)
10
- - [chakra-ui(using context) demo in codesandbox](https://codesandbox.io/s/react-confirm-with-chakra-ui-oidpf1)
11
- - [react-bootstrap example](https://github.com/haradakunihiko/react-confirm/tree/master/example/react-bootstrap)
12
- - [material-ui example](https://github.com/haradakunihiko/react-confirm/tree/master/example/material-ui)
8
+ ## Demo
9
+ [![Open in StackBlitz](https://developer.stackblitz.com/img/open_in_stackblitz.svg)](https://stackblitz.com/fork/github/haradakunihiko/react-confirm-sample/tree/main/1_typescript)
13
10
 
14
11
  ## Motivation
15
12
  React is a powerful library that allows for reactive rendering based on component state. However, managing temporary states like confirmation dialogs can quickly become complex. The question is: is it worth implementing these states within your app? The answer is not always a clear yes.
@@ -22,12 +19,6 @@ react-confirm library offers several benefits:
22
19
  - You can retrieve values from the component in the promise.
23
20
  - The library provides flexibility in designing the dialog. There is no limitation in the type of components you can use, whether it be input forms or multiple buttons. You can even check out the demo site to see examples of how to customize the dialog.
24
21
 
25
- ## Demo
26
- [![Open in StackBlitz](https://developer.stackblitz.com/img/open_in_stackblitz.svg)](https://stackblitz.com/fork/github/haradakunihiko/react-confirm-sample/tree/main/1_typescript)
27
-
28
- Please note that interactions with the sample dialogs output details to the console. Review the console output while interacting with the dialogs to observe the behavior and outcomes.
29
-
30
-
31
22
  ## Versions
32
23
 
33
24
  - React 18+ users should use `react-confirm` version 0.2.x or 0.3.x
@@ -159,3 +150,8 @@ const Confirmation2: ConfirmDialog<Props, Response> = (props) => (<Dialog></Dial
159
150
  ```
160
151
 
161
152
  When defining your dialog component, set both the `Props` for the dialog and the `Response` value to be passed when the dialog closes. This will be handy when calling the dialog.
153
+
154
+
155
+ ## Other Examples
156
+ - [chakra-ui(using context) demo in codesandbox](https://codesandbox.io/s/react-confirm-with-chakra-ui-oidpf1)
157
+ - [material-ui example](https://github.com/haradakunihiko/react-confirm/tree/master/example/material-ui)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-confirm",
3
- "version": "0.3.0-5",
3
+ "version": "0.3.0-7",
4
4
  "description": "Small library which makes your Dialog component callable",
5
5
  "main": "lib/index.js",
6
6
  "repository": {