kupos-ui-components-lib 9.5.7 → 9.5.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.
@@ -369,14 +369,14 @@ function PeruServiceItemDesktop({ serviceItem, onBookButtonPress, colors, metaDa
369
369
  React.createElement("div", { className: "flex flex-col gap-[10px]" },
370
370
  React.createElement(StageTooltip, { stageData: serviceItem.boarding_stages, direction: 1, terminals: busStage, serviceItem: serviceItem, metaData: metaData, colors: colors },
371
371
  React.createElement("span", { className: "cursor-pointer bold-text capitalize" }, DateService.getServiceItemDate(serviceItem.travel_date))),
372
- !isCiva && (React.createElement(StageTooltip, { stageData: serviceItem.boarding_stages, direction: 1, terminals: busStage, serviceItem: serviceItem, metaData: metaData, colors: colors },
372
+ !isCiva && (React.createElement(StageTooltip, { stageData: serviceItem.dropoff_stages, direction: 2, terminals: busStage, serviceItem: serviceItem, metaData: metaData, colors: colors },
373
373
  React.createElement("span", { className: "cursor-pointer bold-text capitalize" }, DateService.getServiceItemDate(serviceItem.arrival_date))))),
374
374
  React.createElement("div", { className: "flex flex-col gap-[10px] items-center" },
375
375
  React.createElement("div", { className: "h-[20px] flex items-center justify-center" },
376
376
  React.createElement("div", null, "\u2022")),
377
377
  !isCiva && (React.createElement("div", { className: "h-[20px] flex items-center justify-center" }, removeArrivalTime ? null : serviceItem.arr_time ? (React.createElement("div", null, "\u2022")) : null))),
378
378
  React.createElement("div", { className: "flex flex-col gap-[10px]" },
379
- React.createElement(StageTooltip, { stageData: serviceItem.dropoff_stages, direction: 2, terminals: busStage, serviceItem: serviceItem, metaData: metaData, colors: colors },
379
+ React.createElement(StageTooltip, { stageData: serviceItem.boarding_stages, direction: 1, terminals: busStage, serviceItem: serviceItem, metaData: metaData, colors: colors },
380
380
  React.createElement("div", { className: "font-[900] bold-text" }, DateService.formatTime(serviceItem.dep_time))),
381
381
  !isCiva && (React.createElement(StageTooltip, { stageData: serviceItem.dropoff_stages, direction: 2, terminals: busStage, serviceItem: serviceItem, metaData: metaData, colors: colors },
382
382
  React.createElement("div", { className: "font-[900] bold-text" }, removeArrivalTime
@@ -402,10 +402,11 @@ function PeruServiceItemDesktop({ serviceItem, onBookButtonPress, colors, metaDa
402
402
  left: "68%",
403
403
  right: 0,
404
404
  justifyContent: getNumberOfSeats() < 2 ? "center" : "center",
405
+ gap: "5px",
405
406
  } },
406
407
  React.createElement("span", { style: {
407
408
  position: "absolute",
408
- top: -5,
409
+ top: getNumberOfSeats() > 1 ? -10 : -5,
409
410
  fontWeight: "initial",
410
411
  fontSize: "12px",
411
412
  left: 0,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kupos-ui-components-lib",
3
- "version": "9.5.7",
3
+ "version": "9.5.8",
4
4
  "description": "A reusable UI components package",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -665,8 +665,8 @@ function PeruServiceItemDesktop({
665
665
  {/* Arrival Date */}
666
666
  {!isCiva && (
667
667
  <StageTooltip
668
- stageData={serviceItem.boarding_stages}
669
- direction={1}
668
+ stageData={serviceItem.dropoff_stages}
669
+ direction={2}
670
670
  terminals={busStage}
671
671
  serviceItem={serviceItem}
672
672
  metaData={metaData}
@@ -700,8 +700,8 @@ function PeruServiceItemDesktop({
700
700
  <div className="flex flex-col gap-[10px]">
701
701
  {/* Departure Time */}
702
702
  <StageTooltip
703
- stageData={serviceItem.dropoff_stages}
704
- direction={2}
703
+ stageData={serviceItem.boarding_stages}
704
+ direction={1}
705
705
  terminals={busStage}
706
706
  serviceItem={serviceItem}
707
707
  metaData={metaData}
@@ -767,12 +767,13 @@ function PeruServiceItemDesktop({
767
767
  right: 0,
768
768
  justifyContent:
769
769
  getNumberOfSeats() < 2 ? "center" : "center",
770
+ gap: "5px",
770
771
  }}
771
772
  >
772
773
  <span
773
774
  style={{
774
775
  position: "absolute",
775
- top: -5,
776
+ top: getNumberOfSeats() > 1 ? -10 : -5,
776
777
  fontWeight: "initial",
777
778
  fontSize: "12px",
778
779
  left: 0,