@codesinger0/shared-components 1.1.93 → 1.1.95
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.
|
@@ -77,12 +77,20 @@ const FullscreenCarousel = ({
|
|
|
77
77
|
<div key={index} className="fullscreen-carousel__slide">
|
|
78
78
|
{isSingleSlide ? (
|
|
79
79
|
/* Single Slide Mode */
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
80
|
+
<>
|
|
81
|
+
<div
|
|
82
|
+
className="hidden md:block w-full h-full"
|
|
83
|
+
style={{ height: desktopHeight }}
|
|
84
|
+
>
|
|
85
|
+
{slide.content}
|
|
86
|
+
</div>
|
|
87
|
+
<div
|
|
88
|
+
className="block md:hidden w-full h-full"
|
|
89
|
+
style={{ height: mobileHeight }}
|
|
90
|
+
>
|
|
91
|
+
{slide.content}
|
|
92
|
+
</div>
|
|
93
|
+
</>
|
|
86
94
|
) : (
|
|
87
95
|
<>
|
|
88
96
|
{/* Desktop Layout - Horizontal Split */}
|
|
@@ -14,6 +14,8 @@ const LargeItemCard = ({
|
|
|
14
14
|
description,
|
|
15
15
|
buttonLabel,
|
|
16
16
|
onButtonClick,
|
|
17
|
+
secondaryButtonLabel,
|
|
18
|
+
onSecondaryButtonClick,
|
|
17
19
|
reverse = false,
|
|
18
20
|
price,
|
|
19
21
|
discountPrice,
|
|
@@ -168,15 +170,26 @@ const LargeItemCard = ({
|
|
|
168
170
|
{soldOutLabel}
|
|
169
171
|
</div>
|
|
170
172
|
) : (
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
173
|
+
<div className="flex gap-4 justify-center lg:justify-start">
|
|
174
|
+
{buttonLabel && (
|
|
175
|
+
<RoundButton
|
|
176
|
+
variant="primary"
|
|
177
|
+
onClick={onButtonClick}
|
|
178
|
+
disabled={amountAvailable !== undefined && amountAvailable <= 0}
|
|
179
|
+
>
|
|
180
|
+
{buttonLabel}
|
|
181
|
+
</RoundButton>
|
|
182
|
+
)}
|
|
183
|
+
{secondaryButtonLabel && onSecondaryButtonClick && (
|
|
184
|
+
<RoundButton
|
|
185
|
+
variant="secondary"
|
|
186
|
+
onClick={onSecondaryButtonClick}
|
|
187
|
+
disabled={amountAvailable !== undefined && amountAvailable <= 0}
|
|
188
|
+
>
|
|
189
|
+
{secondaryButtonLabel}
|
|
190
|
+
</RoundButton>
|
|
191
|
+
)}
|
|
192
|
+
</div>
|
|
180
193
|
)}
|
|
181
194
|
</div>
|
|
182
195
|
|