@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.js CHANGED
@@ -2579,23 +2579,31 @@ var ToastComponent = ({ toast, onRemove }) => {
2579
2579
  const typeConfig = {
2580
2580
  success: {
2581
2581
  icon: CheckCircle2,
2582
- className: "bg-success/10 border-success/20 text-foreground",
2583
- iconClassName: "text-success"
2582
+ containerClassName: "bg-success/5 border-success/30",
2583
+ iconClassName: "text-success",
2584
+ iconBgClassName: "bg-success/15",
2585
+ accentBarClassName: "bg-success"
2584
2586
  },
2585
2587
  error: {
2586
2588
  icon: AlertCircle2,
2587
- className: "bg-destructive/10 border-destructive/20 text-foreground",
2588
- iconClassName: "text-destructive"
2589
+ containerClassName: "bg-destructive/5 border-destructive/30",
2590
+ iconClassName: "text-destructive",
2591
+ iconBgClassName: "bg-destructive/15",
2592
+ accentBarClassName: "bg-destructive"
2589
2593
  },
2590
2594
  warning: {
2591
2595
  icon: AlertTriangle2,
2592
- className: "bg-warning/10 border-warning/20 text-foreground",
2593
- iconClassName: "text-warning"
2596
+ containerClassName: "bg-warning/5 border-warning/30",
2597
+ iconClassName: "text-warning",
2598
+ iconBgClassName: "bg-warning/15",
2599
+ accentBarClassName: "bg-warning"
2594
2600
  },
2595
2601
  info: {
2596
2602
  icon: Info,
2597
- className: "bg-info/10 border-info/20 text-foreground",
2598
- iconClassName: "text-info"
2603
+ containerClassName: "bg-info/5 border-info/30",
2604
+ iconClassName: "text-info",
2605
+ iconBgClassName: "bg-info/15",
2606
+ accentBarClassName: "bg-info"
2599
2607
  }
2600
2608
  };
2601
2609
  const config = typeConfig[toast.type];
@@ -2604,9 +2612,10 @@ var ToastComponent = ({ toast, onRemove }) => {
2604
2612
  "div",
2605
2613
  {
2606
2614
  className: cn(
2607
- "relative w-80 rounded-lg border backdrop-blur-sm transition-all duration-300 ease-soft pointer-events-auto",
2608
- "bg-card/95 shadow-lg animate-in slide-in-from-right-full",
2609
- config.className,
2615
+ "relative w-80 rounded-r-lg border border-l-0 backdrop-blur-md transition-all duration-300 pointer-events-auto overflow-hidden",
2616
+ "bg-card shadow-xl",
2617
+ "animate-in slide-in-from-right-full",
2618
+ config.containerClassName,
2610
2619
  isVisible ? "opacity-100 translate-x-0" : "opacity-0 translate-x-full"
2611
2620
  ),
2612
2621
  role: "status",
@@ -2624,8 +2633,9 @@ var ToastComponent = ({ toast, onRemove }) => {
2624
2633
  setPaused(false);
2625
2634
  },
2626
2635
  children: [
2627
- /* @__PURE__ */ jsxs13("div", { className: "flex items-start gap-3 p-4", children: [
2628
- /* @__PURE__ */ jsx15(Icon, { className: cn("h-5 w-5 mt-0.5 shrink-0", config.iconClassName) }),
2636
+ /* @__PURE__ */ jsx15("div", { className: cn("absolute left-0 top-0 bottom-0 w-1", config.accentBarClassName) }),
2637
+ /* @__PURE__ */ jsxs13("div", { className: "flex items-start gap-3 p-4 pl-5", children: [
2638
+ /* @__PURE__ */ jsx15("div", { className: cn("flex items-center justify-center w-8 h-8 rounded-full shrink-0", config.iconBgClassName), children: /* @__PURE__ */ jsx15(Icon, { className: cn("h-4 w-4", config.iconClassName) }) }),
2629
2639
  /* @__PURE__ */ jsxs13("div", { className: "flex-1 space-y-1", children: [
2630
2640
  toast.title && /* @__PURE__ */ jsx15("h4", { className: "font-medium text-sm leading-none", children: toast.title }),
2631
2641
  /* @__PURE__ */ jsx15("p", { className: "text-sm text-muted-foreground leading-relaxed", children: toast.message }),