@moontra/moonui 6.25.0 → 6.26.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@moontra/moonui",
3
- "version": "6.25.0",
3
+ "version": "6.26.0",
4
4
  "description": "Premium React component library with modern design and customization",
5
5
  "author": "MoonUI",
6
6
  "license": "MIT",
@@ -87,10 +87,15 @@ const buttonVariants = cva(
87
87
  "transition-all duration-200",
88
88
  ],
89
89
  success: [
90
+ // Koyu temada `--success` (#16a34a) foreground'uyla 3.15 veriyordu (AA 4.5
91
+ // ister) — `--destructive`in #544'teki birebir aynı kusuru. Açık tema
92
+ // dokunulmadı (#442 kuralı: geçen yüzeyde regresyon riski açma).
93
+ // Dolgu opak `success` skalasına bağlandı: -600 hâlâ 3.15, ölçümle geçen
94
+ // en açık kademe -700 (4.79).
90
95
  "bg-success text-success-foreground",
91
- "dark:bg-success dark:text-success-foreground",
92
- "hover:bg-success/90 dark:hover:bg-success/90",
93
- "active:bg-success/80 dark:active:bg-success/80",
96
+ "dark:bg-success-700 dark:text-success-foreground",
97
+ "hover:bg-success/90 dark:hover:bg-success-800",
98
+ "active:bg-success/80 dark:active:bg-success-900",
94
99
  "shadow-sm hover:shadow-md",
95
100
  "focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",
96
101
  "transition-all duration-200",
@@ -112,13 +117,16 @@ const buttonVariants = cva(
112
117
  "transition-all duration-300",
113
118
  ],
114
119
  glow: [
115
- "bg-blue-500 text-white",
120
+ // blue-500 (#3b82f6) beyaz metinle 3.68 veriyordu (AA 4.5 ister).
121
+ // Ölçümle geçen en açık kademe blue-600 (#2563eb → 5.17); parıltı
122
+ // gölgesi `--glow-blue-rgb` üzerinden AYNI kaldı, yalnız dolgu koyulaştı.
123
+ "bg-blue-600 text-white",
116
124
  // #664 S3: rgba(59,130,246,…) → --glow-blue-rgb (tokens.css). Değer AYNI
117
125
  // (Tailwind blue-500), yalnız merkezi token'a taşındı — görsel değişiklik yok.
118
126
  "shadow-[0_0_30px_rgba(var(--glow-blue-rgb),0.5)]",
119
127
  "hover:shadow-[0_0_40px_rgba(var(--glow-blue-rgb),0.7)]",
120
128
  "active:shadow-[0_0_20px_rgba(var(--glow-blue-rgb),0.4)]",
121
- "hover:bg-blue-600",
129
+ "hover:bg-blue-700",
122
130
  "focus-visible:ring-blue-500/50",
123
131
  "transition-all duration-300",
124
132
  ],
@@ -127,7 +135,12 @@ const buttonVariants = cva(
127
135
  "hover:bg-primary/20",
128
136
  "active:bg-primary/30",
129
137
  "focus-visible:ring-primary/50",
130
- "dark:bg-primary/20 dark:text-primary-foreground",
138
+ // Koyu temada `bg-primary/20` + `text-primary-foreground` 1.76 veriyordu:
139
+ // dark `--primary` neredeyse beyaz olduğu için /20 açık-gri bir zemin
140
+ // üretiyor, `--primary-foreground` ise koyu — ikisi birbirini yiyordu.
141
+ // #354'ün sidebar'da kanıtlanmış çözümü: subtle token ÇİFTİ (zemin+metin
142
+ // birlikte tanımlı, koyu temada koyu zemin + açık metin).
143
+ "dark:bg-primary-subtle dark:text-primary-subtle-foreground",
131
144
  "dark:hover:bg-primary/30 dark:active:bg-primary/40",
132
145
  "transition-colors duration-200",
133
146
  ],