@codesinger0/shared-components 1.1.98 → 1.1.99

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.
@@ -78,7 +78,7 @@ const SmallItemCard = ({
78
78
 
79
79
  {/* Discount Badge */}
80
80
  {hasDiscount && (
81
- <div className="absolute top-2 left-2 bg-red-500 text-white px-2 py-1 rounded-full text-xs font-bold shadow-lg">
81
+ <div className="absolute top-2 left-2 text-white px-2 py-1 rounded-full text-xs font-bold shadow-lg discount-badge">
82
82
  -{discountPercentage}%
83
83
  </div>
84
84
  )}
@@ -26,4 +26,9 @@
26
26
  background: color-mix(in srgb, var(--card-bg) 55%, transparent);
27
27
  box-shadow: 0 12px 40px 0 color-mix(in srgb, var(--primary) 30%, transparent);
28
28
  transform: translateY(-2px);
29
+ }
30
+
31
+ /* Discount Badge */
32
+ .discount-badge {
33
+ background-color: var(--discount-color, #ef4444); /* Falls back to Tailwind's red-500 (#ef4444) */
29
34
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codesinger0/shared-components",
3
- "version": "1.1.98",
3
+ "version": "1.1.99",
4
4
  "description": "Shared React components for customer projects",
5
5
  "main": "dist/index.js",
6
6
  "files": [