kupos-ui-components-lib 10.0.7 → 10.0.8
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.
|
@@ -210,7 +210,7 @@ function SeatSection({ seatTypes, availableSeats, isSoldOut, priceColor, currenc
|
|
|
210
210
|
const filteredSeats = seats.filter((s) => !SEAT_EXCEPTIONS.includes(s.label));
|
|
211
211
|
const seatLabel = filteredSeats.length > 0
|
|
212
212
|
? removeDuplicateSeats
|
|
213
|
-
?
|
|
213
|
+
? filteredSeats[0].label
|
|
214
214
|
: filteredSeats[0].label
|
|
215
215
|
: null;
|
|
216
216
|
const operatorServiceName = (serviceItem === null || serviceItem === void 0 ? void 0 : serviceItem.operator_service_name) === "MovilBus" ||
|
|
@@ -357,7 +357,7 @@ function SeatSection({ seatTypes, availableSeats, isSoldOut, priceColor, currenc
|
|
|
357
357
|
color: isSoldOut ? "#c0c0c0" : priceColor,
|
|
358
358
|
top: 0,
|
|
359
359
|
bottom: 0,
|
|
360
|
-
left: isTrain
|
|
360
|
+
left: isTrain || isPeru
|
|
361
361
|
? "73%"
|
|
362
362
|
: "clamp(60%, 65% + (100vw - 1300px) * 0.1, 65%)",
|
|
363
363
|
right: 0,
|
package/package.json
CHANGED
|
@@ -390,7 +390,7 @@ function SeatSection({
|
|
|
390
390
|
const seatLabel =
|
|
391
391
|
filteredSeats.length > 0
|
|
392
392
|
? removeDuplicateSeats
|
|
393
|
-
?
|
|
393
|
+
? filteredSeats[0].label
|
|
394
394
|
: filteredSeats[0].label
|
|
395
395
|
: null;
|
|
396
396
|
|
|
@@ -416,7 +416,12 @@ function SeatSection({
|
|
|
416
416
|
<span className="text-[13.33px] whitespace-nowrap flex items-center">
|
|
417
417
|
{isSeatIcon && !hasDiscount && (
|
|
418
418
|
<img
|
|
419
|
-
src={
|
|
419
|
+
src={
|
|
420
|
+
getSeatTypeIcon(
|
|
421
|
+
seatLabel as string,
|
|
422
|
+
serviceItem,
|
|
423
|
+
) as string
|
|
424
|
+
}
|
|
420
425
|
alt="seattype"
|
|
421
426
|
style={{
|
|
422
427
|
width: "20px",
|
|
@@ -711,9 +716,10 @@ function SeatSection({
|
|
|
711
716
|
color: isSoldOut ? "#c0c0c0" : priceColor,
|
|
712
717
|
top: 0,
|
|
713
718
|
bottom: 0,
|
|
714
|
-
left:
|
|
715
|
-
|
|
716
|
-
|
|
719
|
+
left:
|
|
720
|
+
isTrain || isPeru
|
|
721
|
+
? "73%"
|
|
722
|
+
: "clamp(60%, 65% + (100vw - 1300px) * 0.1, 65%)",
|
|
717
723
|
right: 0,
|
|
718
724
|
justifyContent: isCentered ? "center" : "",
|
|
719
725
|
gap: "10px",
|