kupos-ui-components-lib 9.2.7 → 9.2.9

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.
@@ -429,6 +429,7 @@ function ServiceItemPB({
429
429
  isPeru={isPeru}
430
430
  siteType={siteType}
431
431
  isAllinBus={isAllinBus}
432
+ viewersConfig={viewersConfig}
432
433
  />
433
434
  ) : (
434
435
  <div
@@ -503,7 +504,7 @@ function ServiceItemPB({
503
504
  style={{
504
505
  display: "flex",
505
506
  flexDirection: "column",
506
- // gap: "5px",
507
+ gap: "5px",
507
508
  }}
508
509
  >
509
510
  <div
@@ -570,14 +571,12 @@ function ServiceItemPB({
570
571
 
571
572
  {/* BUTTON */}
572
573
 
573
- <div>
574
+ <div className="relative">
574
575
  {showLastSeats ? (
575
576
  <div
576
- className="flex justify-end mr-[11px] "
577
+ className="flex justify-end mr-[11px] w-[100%] right-[0px] absolute"
577
578
  style={{
578
- position: "absolute",
579
- top: serviceDetailsLoading ? "7px" : "5px",
580
- right: "16px",
579
+ top: serviceDetailsLoading ? "-17px" : "-20px",
581
580
  }}
582
581
  >
583
582
  {serviceItem?.available_seats < 10 &&
@@ -753,17 +752,18 @@ function ServiceItemPB({
753
752
  )}
754
753
  {serviceItem?.is_transpordo && (
755
754
  <div
756
- className={`flex items-center gap-[10px] py-[4px] text-white px-[14px] rounded-[38px] text-[12.5px] z-20`}
755
+ className={`flex items-center gap-[6px] py-[4px] text-white px-[14px] rounded-[38px] text-[12.5px] z-20`}
757
756
  style={{
758
757
  backgroundColor: isSoldOut ? "#ddd" : colors.tooltipColor,
759
758
  }}
760
759
  >
761
- <LottiePlayer
760
+ {renderIcon("connectingServiceIcon", "12px")}
761
+ {/* <LottiePlayer
762
762
  animationData={serviceItem.icons.connectingServiceIcon}
763
763
  // animationData={getAnimationIcon(connectingServiceIcon)}
764
764
  width="14px"
765
765
  height="14px"
766
- />
766
+ /> */}
767
767
  <div>{"Conexión"}</div>
768
768
  </div>
769
769
  )}
@@ -28,10 +28,19 @@ const getAmenitySplit = ({ isPeru, amenities, priorityIds }) => {
28
28
  /* ============================
29
29
  🇵🇪 PERU LOGIC
30
30
  ============================ */
31
+ // if (isPeru) {
32
+ // return hasPriority
33
+ // ? { visible: priority, plus: nonPriority }
34
+ // : { visible: [], plus: amenities };
35
+ // }
36
+
31
37
  if (isPeru) {
32
38
  return hasPriority
33
- ? { visible: priority, plus: nonPriority }
34
- : { visible: [], plus: amenities };
39
+ ? {
40
+ visible: priority.slice(0, 2),
41
+ plus: [...priority.slice(2), ...nonPriority],
42
+ }
43
+ : { visible: amenities.slice(0, 2), plus: amenities.slice(2) };
35
44
  }
36
45
 
37
46
  /* ============================
@@ -26,13 +26,13 @@ const RatingBlock = ({
26
26
  )}
27
27
 
28
28
  <div
29
- className="group relative ml-[10px] text-[13.33px]"
29
+ className="group relative ml-[10px] text-[12px]"
30
30
  style={{
31
- marginLeft: showRating ? "10px" : "0",
31
+ marginLeft: showRating ? "6px" : "0",
32
32
  color: isSoldOut ? "#c0c0c0" : "#464647",
33
33
  }}
34
34
  >
35
- <span className="block max-w-[120px] overflow-hidden text-ellipsis whitespace-nowrap cursor-pointer">
35
+ <span className="block max-w-[120px] overflow-hidden text-ellipsis whitespace-nowrap cursor-pointer text-[12px]">
36
36
  {serviceItem.operator_details[2]}
37
37
  </span>
38
38
  <div