toastify 1.0.0 → 1.0.1
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.
- checksums.yaml +4 -4
- data/README.md +3 -0
- data/lib/toastify/assets/toastify.js +4 -4
- data/lib/toastify/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: fb51a11fd1f4a71bc4eec59d1ce63e41617ba18a7ad8bd10f9359ff182b20dd4
|
|
4
|
+
data.tar.gz: 4ffdc6148a49de0d4e96ce54d5c7996da717bbf2d69789f1fd7076b77c9bf0e8
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 98267e7a27bd414779e4e6f0526dd80aeece3e85997e6d735cdcdccf91d68fc67130ff9989cdcfe0fc3d9839acf4bea94a443f66eb5324ce55ae8e054f1239bd
|
|
7
|
+
data.tar.gz: 3b6e90230c0c3b45c716c2ec17f50d813207228abeb69a0a60d03e475adbac620a2e600f4311cc5f6aa53294dcaa281e2ba54cf3867e71bdc6eee6e68f20bfce
|
data/README.md
CHANGED
|
@@ -5,6 +5,9 @@
|
|
|
5
5
|
Compatible with Rails 4+ and also integrates seamlessly with Turbo Stream requests.
|
|
6
6
|
It can also be used directly in JavaScript (e.g., `Toastify.success("Saved!")`).
|
|
7
7
|
|
|
8
|
+
[](https://rubygems.org/gems/toastify)
|
|
9
|
+
[](https://github.com/vasanthakumar-a/toastify/releases)
|
|
10
|
+
|
|
8
11
|
### Example Images
|
|
9
12
|
|
|
10
13
|
<img width="346" height="85" alt="Light Theme Example" src="https://github.com/user-attachments/assets/b7a3123a-89a3-4f49-97ff-aa25f4b870d0" />
|
|
@@ -12,11 +12,11 @@ const TRANSITIONS = { SLIDE: "slide", BOUNCE: "bounce", ZOOM: "zoom", FLIP: "fli
|
|
|
12
12
|
const TYPES = { SUCCESS: "success", ERROR: "error", WARNING: "warning", INFO: "info", DEFAULT: "default" }
|
|
13
13
|
|
|
14
14
|
const ICONS = {
|
|
15
|
-
success: `<svg viewBox="0 0 24 24"
|
|
15
|
+
success: `<svg fill="currentColor" width="20" height="20" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" d="M12,2 C17.5228475,2 22,6.4771525 22,12 C22,17.5228475 17.5228475,22 12,22 C6.4771525,22 2,17.5228475 2,12 C2,6.4771525 6.4771525,2 12,2 Z M12,4 C7.581722,4 4,7.581722 4,12 C4,16.418278 7.581722,20 12,20 C16.418278,20 20,16.418278 20,12 C20,7.581722 16.418278,4 12,4 Z M15.2928932,8.29289322 L10,13.5857864 L8.70710678,12.2928932 C8.31658249,11.9023689 7.68341751,11.9023689 7.29289322,12.2928932 C6.90236893,12.6834175 6.90236893,13.3165825 7.29289322,13.7071068 L9.29289322,15.7071068 C9.68341751,16.0976311 10.3165825,16.0976311 10.7071068,15.7071068 L16.7071068,9.70710678 C17.0976311,9.31658249 17.0976311,8.68341751 16.7071068,8.29289322 C16.3165825,7.90236893 15.6834175,7.90236893 15.2928932,8.29289322 Z"/></svg>`,
|
|
16
16
|
error: `<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" width="20" height="20"><circle cx="12" cy="12" r="10"/><line x1="15" y1="9" x2="9" y2="15"/><line x1="9" y1="9" x2="15" y2="15"/></svg>`,
|
|
17
|
-
warning: `<svg viewBox="0 0 24 24" fill="none"
|
|
18
|
-
info: `<svg
|
|
19
|
-
default: `<svg
|
|
17
|
+
warning: `<svg width="20" height="20" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M12 14a1 1 0 0 1-1-1v-3a1 1 0 1 1 2 0v3a1 1 0 0 1-1 1zm-1.5 2.5a1.5 1.5 0 1 1 3 0 1.5 1.5 0 0 1-3 0z" fill="currentColor"/><path d="M10.23 3.216c.75-1.425 2.79-1.425 3.54 0l8.343 15.852C22.814 20.4 21.85 22 20.343 22H3.657c-1.505 0-2.47-1.6-1.77-2.931L10.23 3.216zM20.344 20L12 4.147 3.656 20h16.688z" fill="currentColor"/></svg>`,
|
|
18
|
+
info: `<svg fill="currentColor" width="20" height="20" viewBox="-2 -2 24 24" preserveAspectRatio="xMinYMin"><path d='M10 20C4.477 20 0 15.523 0 10S4.477 0 10 0s10 4.477 10 10-4.477 10-10 10zm0-2a8 8 0 1 0 0-16 8 8 0 0 0 0 16zm0-10a1 1 0 0 1 1 1v5a1 1 0 0 1-2 0V9a1 1 0 0 1 1-1zm0-1a1 1 0 1 1 0-2 1 1 0 0 1 0 2z'/></svg>`,
|
|
19
|
+
default: `<svg fill="currentColor" width="20" height="20" viewBox="-2 -2 24 24" preserveAspectRatio="xMinYMin"><path d='M10 20C4.477 20 0 15.523 0 10S4.477 0 10 0s10 4.477 10 10-4.477 10-10 10zm0-2a8 8 0 1 0 0-16 8 8 0 0 0 0 16zm0-10a1 1 0 0 1 1 1v5a1 1 0 0 1-2 0V9a1 1 0 0 1 1-1zm0-1a1 1 0 1 1 0-2 1 1 0 0 1 0 2z'/></svg>`,
|
|
20
20
|
}
|
|
21
21
|
|
|
22
22
|
const ENTER_ANIMS = {
|
data/lib/toastify/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: toastify
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.
|
|
4
|
+
version: 1.0.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- vasanthakumar-a
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-04-
|
|
11
|
+
date: 2026-04-21 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|