@codesinger0/shared-components 1.1.5 → 1.1.6

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.
@@ -85,64 +85,66 @@ const SmallItemCard = ({
85
85
  </div>
86
86
 
87
87
  {/* Content */}
88
- <div className="p-4 flex flex-col">
89
- {/* Name */}
90
- <h3 className="subtitle font-semibold line-clamp-2 flex-shrink-0">
91
- {label}
92
- </h3>
88
+ <div className='flex flex-col justify-between'>
89
+ <div className="p-4 flex flex-col">
90
+ {/* Name */}
91
+ <h3 className="subtitle font-semibold line-clamp-2 flex-shrink-0">
92
+ {label}
93
+ </h3>
93
94
 
94
- {/* Description */}
95
- {description && (
96
- <div className="flex-grow">
97
- <p className="caption-text line-clamp-2 leading-relaxed">
98
- {description}
99
- </p>
100
- </div>
101
- )}
95
+ {/* Description */}
96
+ {description && (
97
+ <div className="flex-grow">
98
+ <p className="caption-text line-clamp-2 leading-relaxed">
99
+ {description}
100
+ </p>
101
+ </div>
102
+ )}
102
103
 
103
- {/* Price Section */}
104
- <div className="mb-3 flex-shrink-0 leading-relaxed">
105
- {hasDiscount ? (
106
- <div className="space-y-2">
107
- <div className="flex items-center justify-between">
108
- <div className="flex items-center gap-2">
109
- <span className="price-tag text-green-600">
110
- ₪{discountPrice}
111
- </span>
112
- <span className="text-sm text-gray-400 line-through">
113
- ₪{price}
114
- </span>
104
+ {/* Price Section */}
105
+ <div className="mb-3 flex-shrink-0 leading-relaxed">
106
+ {hasDiscount ? (
107
+ <div className="space-y-2">
108
+ <div className="flex items-center justify-between">
109
+ <div className="flex items-center gap-2">
110
+ <span className="price-tag text-green-600">
111
+ ₪{discountPrice}
112
+ </span>
113
+ <span className="text-sm text-gray-400 line-through">
114
+ ₪{price}
115
+ </span>
116
+ </div>
117
+ </div>
118
+ <div className="text-xs text-green-600 font-medium">
119
+ חיסכון ₪{price - discountPrice}
115
120
  </div>
116
121
  </div>
117
- <div className="text-xs text-green-600 font-medium">
118
- חיסכון ₪{price - discountPrice}
122
+ ) : (
123
+ <div className="flex items-center justify-between">
124
+ <span className="price-tag">
125
+ ₪{price}
126
+ </span>
119
127
  </div>
120
- </div>
121
- ) : (
122
- <div className="flex items-center justify-between">
123
- <span className="price-tag">
124
- {price}
125
- </span>
128
+ )}
129
+ </div>
130
+
131
+ {/* Stock Availability */}
132
+ {amountAvailable !== undefined && amountAvailable > 0 && (
133
+ <div className="text-xs text-gray-600 font-medium mb-2">
134
+ {availableLabel}: {amountAvailable}
126
135
  </div>
127
136
  )}
128
137
  </div>
129
-
130
- {/* Stock Availability */}
131
- {amountAvailable !== undefined && amountAvailable > 0 && (
132
- <div className="text-xs text-gray-600 font-medium mb-2">
133
- {availableLabel}: {amountAvailable}
134
- </div>
135
- )}
136
-
137
- <SmallButton
138
- onClick={handleAddToCartClick}
139
- disabled={amountAvailable !== undefined && amountAvailable <= 0}
140
- className="w-full flex items-center justify-center gap-2"
141
- >
142
- <ShoppingCart size={16} />
143
- הוסף לעגלה
144
- </SmallButton>
145
-
138
+ <div>
139
+ <SmallButton
140
+ onClick={handleAddToCartClick}
141
+ disabled={amountAvailable !== undefined && amountAvailable <= 0}
142
+ className="w-full flex items-center justify-center gap-2"
143
+ >
144
+ <ShoppingCart size={16} />
145
+ הוסף לעגלה
146
+ </SmallButton>
147
+ </div>
146
148
  </div>
147
149
  </div>
148
150
  );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codesinger0/shared-components",
3
- "version": "1.1.5",
3
+ "version": "1.1.6",
4
4
  "description": "Shared React components for customer projects",
5
5
  "main": "dist/index.js",
6
6
  "files": [