@yusufceng1z/ding-react 0.0.1 → 0.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.
Files changed (2) hide show
  1. package/README.md +37 -0
  2. package/package.json +6 -2
package/README.md ADDED
@@ -0,0 +1,37 @@
1
+ # @yusufceng1z/ding-react
2
+
3
+ Toasts with real spring physics for React 18+. One toast that morphs in place. No stylesheet to import.
4
+
5
+ ## Install
6
+
7
+ ```bash
8
+ npm i @yusufceng1z/ding-react
9
+ ```
10
+
11
+ ## Use
12
+
13
+ Render the toaster once, then call `toast` from anywhere.
14
+
15
+ ```tsx
16
+ import { Toaster, toast } from '@yusufceng1z/ding-react';
17
+
18
+ export default function App() {
19
+ return (
20
+ <>
21
+ <Toaster position="top-center" theme="system" />
22
+ <button onClick={() => toast.success('Saved')}>Save</button>
23
+ </>
24
+ );
25
+ }
26
+ ```
27
+
28
+ Options, actions, progress, sound and accessibility are covered in the [docs](https://ding.yusufcengiz.dev/docs.html).
29
+
30
+ ## Links
31
+
32
+ - [Live demo and docs](https://ding.yusufcengiz.dev)
33
+ - [Source on GitHub](https://github.com/YusufCeng1z/ding)
34
+
35
+ ## License
36
+
37
+ [MIT](LICENSE)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yusufceng1z/ding-react",
3
- "version": "0.0.1",
3
+ "version": "0.0.2",
4
4
  "type": "module",
5
5
  "sideEffects": false,
6
6
  "main": "./dist/index.cjs",
@@ -22,7 +22,7 @@
22
22
  "dist"
23
23
  ],
24
24
  "dependencies": {
25
- "@yusufceng1z/ding": "0.0.1"
25
+ "@yusufceng1z/ding": "0.0.2"
26
26
  },
27
27
  "peerDependencies": {
28
28
  "react": ">=18"
@@ -32,6 +32,10 @@
32
32
  "react": ">=18"
33
33
  },
34
34
  "description": "React renderer for Ding spring-physics toasts.",
35
+ "homepage": "https://ding.yusufcengiz.dev",
36
+ "bugs": {
37
+ "url": "https://github.com/YusufCeng1z/ding/issues"
38
+ },
35
39
  "repository": {
36
40
  "type": "git",
37
41
  "url": "git+https://github.com/YusufCeng1z/ding.git",