rails_toastify 0.1.5 → 0.1.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: dbe4093e4b00ca6aed884608e36832d9b4739c4101147ed6fb4f09725132c7d8
4
- data.tar.gz: bdeae6a73e70c205c253d6e428425e18d130df7b0368708a6430225a9e053ea1
3
+ metadata.gz: 4c9016ace17fcc8e2c9752befff1bb4dbe57a9759016fcaf4645fad02f747da2
4
+ data.tar.gz: d53c5284e34737ba275d1a2938dd281fdfa49157b75820565070fbdbf4c63bf7
5
5
  SHA512:
6
- metadata.gz: 65d7805c01a912990470de84c7de94abcfb62d0c62fcaa1cb10669dfff05f84c24f014b69657aa497f95d5eca406cc8f73cdf4ab3f8f9dd9872e8d7e68aac78e
7
- data.tar.gz: a16b9a1874d6cb99b7b6cce8caa1bd0d57b77856a5e55ead272184bdfd82397318a5b1852eb05575cd22afbf5a5db7e6dcbacbb71c2304eeb107d39756927ba9
6
+ metadata.gz: a56648ac935a1a150cdf1833b520e6666aed710930b174bb81b3ad030de8a617f1bf553061ecc0f7c3600c9b45309c18b143a8a9ac7fb7bb073eecc792b6dbde
7
+ data.tar.gz: cc9cbaec8bd2eb43bff831ce1922abd37cd5946e12c8f8d20e0309f191db50866eaaac49fa47954adb65b23a569956717d8821102d02e2103319609a946f561d
data/CHANGELOG.md CHANGED
@@ -1,4 +1,10 @@
1
- # 0.1.4
1
+ # 0.1.6
2
+
3
+ - Fix css and js
4
+ - Close toast on progress bar finish
5
+ - Toast appear on top right
6
+
7
+ # 0.1.5
2
8
 
3
9
  - Adjustments CSS progress bar and shadow
4
10
 
@@ -5,7 +5,7 @@ document.addEventListener('DOMContentLoaded', () => {
5
5
  const toast = createToast(message, type, duration);
6
6
  toastContainer.appendChild(toast);
7
7
  setTimeout(() => {
8
- toast.classList.add('fade-out');
8
+ toast.classList.add('hide');
9
9
  toast.addEventListener('transitionend', () => toast.remove());
10
10
  }, duration);
11
11
  }
@@ -52,5 +52,4 @@ document.addEventListener('DOMContentLoaded', () => {
52
52
 
53
53
  return toast;
54
54
  }
55
-
56
55
  });
@@ -17,7 +17,7 @@
17
17
  margin: 8px;
18
18
  color: #333;
19
19
  position: relative;
20
- transition: transform 0.5s ease-in-out, opacity 0.5s ease-in-out;
20
+ transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
21
21
  transform: translateX(100%);
22
22
  max-width: 300px;
23
23
  }
@@ -28,6 +28,7 @@
28
28
 
29
29
  .toast.hide {
30
30
  transform: translateX(100%);
31
+ opacity: 0;
31
32
  }
32
33
 
33
34
  .toast--success .toast__progress-bar {
@@ -86,7 +87,7 @@
86
87
 
87
88
  .toast {
88
89
  @apply flex items-center bg-white rounded-lg shadow-lg p-4 my-2 text-gray-800 relative max-w-sm;
89
- transition: transform 0.5s ease-in-out, opacity 0.5s ease-in-out;
90
+ transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
90
91
  transform: translateX(100%);
91
92
  }
92
93
 
@@ -96,6 +97,7 @@
96
97
 
97
98
  .toast.hide {
98
99
  transform: translateX(100%);
100
+ opacity: 0;
99
101
  }
100
102
 
101
103
  .toast--success .toast__progress-bar {
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RailsToastify
4
- VERSION = "0.1.5"
4
+ VERSION = "0.1.6"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_toastify
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Elton Santos