kitzo 2.1.9 → 2.1.10
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 +1 -1
- package/dist/react.esm.js +4 -4
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -26,7 +26,7 @@ npm i kitzo
|
|
|
26
26
|
or
|
|
27
27
|
|
|
28
28
|
```javascript
|
|
29
|
-
<script src="https://cdn.jsdelivr.net/npm/kitzo@2.1.
|
|
29
|
+
<script src="https://cdn.jsdelivr.net/npm/kitzo@2.1.10/dist/kitzo.umd.min.js"></script>
|
|
30
30
|
```
|
|
31
31
|
|
|
32
32
|
> Vanilla: Attach this script tag in the html head tag and you are good to go.
|
package/dist/react.esm.js
CHANGED
|
@@ -201,7 +201,7 @@ function subscribe(callback) {
|
|
|
201
201
|
function toast(text = 'Toast message', options = {}) {
|
|
202
202
|
const id = Date.now();
|
|
203
203
|
options = Object.assign({
|
|
204
|
-
duration:
|
|
204
|
+
duration: 2800,
|
|
205
205
|
id,
|
|
206
206
|
style: {},
|
|
207
207
|
showIcon: false
|
|
@@ -215,7 +215,7 @@ function toast(text = 'Toast message', options = {}) {
|
|
|
215
215
|
toast.success = (text = 'Toast success', options = {}) => {
|
|
216
216
|
const id = Date.now();
|
|
217
217
|
options = Object.assign({
|
|
218
|
-
duration:
|
|
218
|
+
duration: 2800,
|
|
219
219
|
id,
|
|
220
220
|
style: {},
|
|
221
221
|
showIcon: true
|
|
@@ -229,7 +229,7 @@ toast.success = (text = 'Toast success', options = {}) => {
|
|
|
229
229
|
toast.error = (text = 'Toast denied', options = {}) => {
|
|
230
230
|
const id = Date.now();
|
|
231
231
|
options = Object.assign({
|
|
232
|
-
duration:
|
|
232
|
+
duration: 2800,
|
|
233
233
|
id,
|
|
234
234
|
style: {},
|
|
235
235
|
showIcon: true
|
|
@@ -243,7 +243,7 @@ toast.error = (text = 'Toast denied', options = {}) => {
|
|
|
243
243
|
toast.promise = (callback, msgs = {}, options = {}) => {
|
|
244
244
|
const id = Date.now();
|
|
245
245
|
options = Object.assign({
|
|
246
|
-
duration:
|
|
246
|
+
duration: 2800,
|
|
247
247
|
id,
|
|
248
248
|
style: {},
|
|
249
249
|
showIcon: true
|