@moontra/moonui 6.23.0 → 6.24.0

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.
@@ -67,11 +67,20 @@ const buttonVariants = cva(
67
67
  "focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",
68
68
  "transition-all duration-200",
69
69
  ],
70
+ // #544: AÇIK tema zaten geçiyordu (`--destructive` light = #e11313, foreground
71
+ // #f8fafc ile 4.66) — #442'nin kuralı gereği DOKUNULMADI, regresyon yüzeyi sıfır.
72
+ // Kırık olan yalnız KOYU temaydı: dark `--destructive` = #ef4343 metin rolü için
73
+ // bilerek açık bırakılmış bir değer (tokens.css:518-526) ve dolgu rolünde
74
+ // foreground'la 3.61 veriyor. Token'a dokunmadan dark dolgusu opak `error`
75
+ // skalasına bağlandı (-600 → 4.62; ölçümle seçilen en açık geçen kademe).
76
+ // Not: `dark:bg-destructive` KALDIRILDI, yanına eklenmedi — iki `dark:bg-*`
77
+ // utility'si aynı anda yazılırsa hangisinin kazanacağını sınıf dizgesi sırası
78
+ // DEĞİL Tailwind'in kendi iç sıralaması belirler.
70
79
  destructive: [
71
80
  "bg-destructive text-destructive-foreground",
72
- "dark:bg-destructive dark:text-destructive-foreground",
73
- "hover:bg-destructive/90 dark:hover:bg-destructive/90",
74
- "active:bg-destructive/80 dark:active:bg-destructive/80",
81
+ "dark:bg-error-600 dark:text-destructive-foreground",
82
+ "hover:bg-destructive/90 dark:hover:bg-error-700",
83
+ "active:bg-destructive/80 dark:active:bg-error-800",
75
84
  "shadow-sm hover:shadow-md",
76
85
  "focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",
77
86
  "transition-all duration-200",