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