@liner-fe/prism 1.10.11 → 1.10.12
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/lib/index.mjs +1 -1
- package/lib/index.mjs.map +1 -1
- package/package.json +1 -1
package/lib/index.mjs
CHANGED
|
@@ -5940,7 +5940,7 @@ var useToast = /* @__PURE__ */ __name(() => {
|
|
|
5940
5940
|
return {
|
|
5941
5941
|
open: /* @__PURE__ */ __name((toast) => {
|
|
5942
5942
|
const toastId = Date.now() + Math.random();
|
|
5943
|
-
const timer = toast.button ? ONE_SECOND *
|
|
5943
|
+
const timer = toast.button ? ONE_SECOND * 5 : ONE_SECOND + 800;
|
|
5944
5944
|
const list = { toastId, timer, ...toast };
|
|
5945
5945
|
setToasts({
|
|
5946
5946
|
list: [...toasts.list, list]
|