@underverse-ui/underverse 0.2.31 → 0.2.32
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/index.cjs +23 -13
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +23 -13
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -2736,23 +2736,31 @@ var ToastComponent = ({ toast, onRemove }) => {
|
|
|
2736
2736
|
const typeConfig = {
|
|
2737
2737
|
success: {
|
|
2738
2738
|
icon: import_lucide_react7.CheckCircle,
|
|
2739
|
-
|
|
2740
|
-
iconClassName: "text-success"
|
|
2739
|
+
containerClassName: "bg-success/5 border-success/30",
|
|
2740
|
+
iconClassName: "text-success",
|
|
2741
|
+
iconBgClassName: "bg-success/15",
|
|
2742
|
+
accentBarClassName: "bg-success"
|
|
2741
2743
|
},
|
|
2742
2744
|
error: {
|
|
2743
2745
|
icon: import_lucide_react7.AlertCircle,
|
|
2744
|
-
|
|
2745
|
-
iconClassName: "text-destructive"
|
|
2746
|
+
containerClassName: "bg-destructive/5 border-destructive/30",
|
|
2747
|
+
iconClassName: "text-destructive",
|
|
2748
|
+
iconBgClassName: "bg-destructive/15",
|
|
2749
|
+
accentBarClassName: "bg-destructive"
|
|
2746
2750
|
},
|
|
2747
2751
|
warning: {
|
|
2748
2752
|
icon: import_lucide_react7.AlertTriangle,
|
|
2749
|
-
|
|
2750
|
-
iconClassName: "text-warning"
|
|
2753
|
+
containerClassName: "bg-warning/5 border-warning/30",
|
|
2754
|
+
iconClassName: "text-warning",
|
|
2755
|
+
iconBgClassName: "bg-warning/15",
|
|
2756
|
+
accentBarClassName: "bg-warning"
|
|
2751
2757
|
},
|
|
2752
2758
|
info: {
|
|
2753
2759
|
icon: import_lucide_react7.Info,
|
|
2754
|
-
|
|
2755
|
-
iconClassName: "text-info"
|
|
2760
|
+
containerClassName: "bg-info/5 border-info/30",
|
|
2761
|
+
iconClassName: "text-info",
|
|
2762
|
+
iconBgClassName: "bg-info/15",
|
|
2763
|
+
accentBarClassName: "bg-info"
|
|
2756
2764
|
}
|
|
2757
2765
|
};
|
|
2758
2766
|
const config = typeConfig[toast.type];
|
|
@@ -2761,9 +2769,10 @@ var ToastComponent = ({ toast, onRemove }) => {
|
|
|
2761
2769
|
"div",
|
|
2762
2770
|
{
|
|
2763
2771
|
className: cn(
|
|
2764
|
-
"relative w-80 rounded-lg border backdrop-blur-
|
|
2765
|
-
"bg-card
|
|
2766
|
-
|
|
2772
|
+
"relative w-80 rounded-r-lg border border-l-0 backdrop-blur-md transition-all duration-300 pointer-events-auto overflow-hidden",
|
|
2773
|
+
"bg-card shadow-xl",
|
|
2774
|
+
"animate-in slide-in-from-right-full",
|
|
2775
|
+
config.containerClassName,
|
|
2767
2776
|
isVisible ? "opacity-100 translate-x-0" : "opacity-0 translate-x-full"
|
|
2768
2777
|
),
|
|
2769
2778
|
role: "status",
|
|
@@ -2781,8 +2790,9 @@ var ToastComponent = ({ toast, onRemove }) => {
|
|
|
2781
2790
|
setPaused(false);
|
|
2782
2791
|
},
|
|
2783
2792
|
children: [
|
|
2784
|
-
/* @__PURE__ */ (0, import_jsx_runtime15.
|
|
2785
|
-
|
|
2793
|
+
/* @__PURE__ */ (0, import_jsx_runtime15.jsx)("div", { className: cn("absolute left-0 top-0 bottom-0 w-1", config.accentBarClassName) }),
|
|
2794
|
+
/* @__PURE__ */ (0, import_jsx_runtime15.jsxs)("div", { className: "flex items-start gap-3 p-4 pl-5", children: [
|
|
2795
|
+
/* @__PURE__ */ (0, import_jsx_runtime15.jsx)("div", { className: cn("flex items-center justify-center w-8 h-8 rounded-full shrink-0", config.iconBgClassName), children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(Icon, { className: cn("h-4 w-4", config.iconClassName) }) }),
|
|
2786
2796
|
/* @__PURE__ */ (0, import_jsx_runtime15.jsxs)("div", { className: "flex-1 space-y-1", children: [
|
|
2787
2797
|
toast.title && /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("h4", { className: "font-medium text-sm leading-none", children: toast.title }),
|
|
2788
2798
|
/* @__PURE__ */ (0, import_jsx_runtime15.jsx)("p", { className: "text-sm text-muted-foreground leading-relaxed", children: toast.message }),
|