raku-toast-react 1.0.4 → 1.0.6
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/dist/ToastProvider.js +2 -2
- package/package.json +1 -1
package/dist/ToastProvider.js
CHANGED
|
@@ -13,7 +13,7 @@ export const ToastProvider = () => {
|
|
|
13
13
|
error: _jsx(XCircle, { size: 22, className: "text-white" }),
|
|
14
14
|
info: _jsx(Info, { size: 22, className: "text-white" }),
|
|
15
15
|
};
|
|
16
|
-
return (_jsx("div", { className: "fixed top-4 right-4 z-50
|
|
16
|
+
return (_jsx("div", { className: "fixed top-4 right-4 z-50 pointer-events-none", children: _jsx("div", { className: "relative h-[600px] w-[250px] sm:w-[360px]", children: toasts.map((t, index) => {
|
|
17
17
|
const offset = index * 78;
|
|
18
18
|
const scale = 1 - index * 0.03;
|
|
19
19
|
const opacity = 1 - index * 0.12;
|
|
@@ -23,7 +23,7 @@ export const ToastProvider = () => {
|
|
|
23
23
|
zIndex: 100 - index,
|
|
24
24
|
pointerEvents: "auto",
|
|
25
25
|
transition: "transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.35s ease-out",
|
|
26
|
-
}, className: "toast-item absolute top-0 right-0 w-full flex items-start gap-3 sm:gap-4 px-4 py-3 sm:px-5 sm:py-4 rounded-2xl sm:rounded-lg shadow-2xl backdrop-blur-lg hover:scale-[1.02]", onMouseEnter: () => toastStore.pause(t.id), onMouseLeave: () => toastStore.resume(t.id), children: [_jsx("div", { className: `absolute inset-0 rounded-2xl sm:rounded-lg opacity-90 blur-sm shadow-lg ${t.type === "success"
|
|
26
|
+
}, className: "toast-item w-[360px] sm:w-[360px] absolute top-0 right-0 w-full flex items-start gap-3 sm:gap-4 px-4 py-3 sm:px-5 sm:py-4 rounded-2xl sm:rounded-lg shadow-2xl backdrop-blur-lg hover:scale-[1.02]", onMouseEnter: () => toastStore.pause(t.id), onMouseLeave: () => toastStore.resume(t.id), children: [_jsx("div", { className: `absolute inset-0 rounded-2xl sm:rounded-lg opacity-90 blur-sm shadow-lg ${t.type === "success"
|
|
27
27
|
? "bg-gradient-to-r from-purple-500 to-indigo-500"
|
|
28
28
|
: t.type === "error"
|
|
29
29
|
? "bg-gradient-to-r from-pink-500 to-red-500"
|