kupos-ui-components-lib 2.0.2 → 2.0.3
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.
|
@@ -317,11 +317,13 @@ function ServiceItemPB({ serviceItem, onBookButtonPress, colors, metaData, child
|
|
|
317
317
|
React.createElement("img", { src: (_b = serviceItem.icons) === null || _b === void 0 ? void 0 : _b.destination, className: `w-[18px] h-auto mr-[8px] ${isSoldOut ? "grayscale" : ""}` })))),
|
|
318
318
|
React.createElement("div", { className: "flex items-center capitalize relative group items-center justify-between ", style: { flex: 1 } },
|
|
319
319
|
React.createElement("span", { className: "cursor-pointer bold-text" }, DateService.getServiceItemDate(serviceItem.arrival_date)),
|
|
320
|
-
removeArrivalTime ? null : (React.createElement("div", { className: "absolute left-[53%]" }, "\u2022")),
|
|
320
|
+
removeArrivalTime ? null : serviceItem.arr_time ? (React.createElement("div", { className: "absolute left-[53%]" }, "\u2022")) : null,
|
|
321
321
|
React.createElement("div", { className: "font-[900] bold-text group relative" },
|
|
322
322
|
removeArrivalTime
|
|
323
323
|
? null
|
|
324
|
-
:
|
|
324
|
+
: serviceItem.arr_time
|
|
325
|
+
? DateService.formatTime(serviceItem.arr_time)
|
|
326
|
+
: null,
|
|
325
327
|
serviceItem.dropoff_stages && (React.createElement("div", { className: "hidden group-hover:block absolute -top-[8px] left-[100%] ml-[25px] text-white px-3 py-2 rounded-[10px] whitespace-nowrap z-10 shadow-service", style: { backgroundColor: colors === null || colors === void 0 ? void 0 : colors.tooltipColor } },
|
|
326
328
|
React.createElement("div", { className: "tooltip-arrow absolute top-2 -left-[7px] w-0 h-0 \n border-t-8 border-b-8 border-r-8 \n border-t-transparent border-b-transparent", style: { borderRightColor: colors === null || colors === void 0 ? void 0 : colors.tooltipColor } }),
|
|
327
329
|
React.createElement("div", { className: "text-center text-[14px]" }, renderStages(serviceItem.dropoff_stages, 2, busStage, hideBoardingTime((serviceItem === null || serviceItem === void 0 ? void 0 : serviceItem.api_type) || (serviceItem === null || serviceItem === void 0 ? void 0 : serviceItem.apiType)))))))))))),
|
package/package.json
CHANGED
|
@@ -606,13 +606,15 @@ function ServiceItemPB({
|
|
|
606
606
|
)}
|
|
607
607
|
</span>
|
|
608
608
|
|
|
609
|
-
{removeArrivalTime ? null : (
|
|
609
|
+
{removeArrivalTime ? null : serviceItem.arr_time ? (
|
|
610
610
|
<div className="absolute left-[53%]">•</div>
|
|
611
|
-
)}
|
|
611
|
+
) : null}
|
|
612
612
|
<div className="font-[900] bold-text group relative">
|
|
613
613
|
{removeArrivalTime
|
|
614
614
|
? null
|
|
615
|
-
:
|
|
615
|
+
: serviceItem.arr_time
|
|
616
|
+
? DateService.formatTime(serviceItem.arr_time)
|
|
617
|
+
: null}
|
|
616
618
|
|
|
617
619
|
{/* Dropping stage tooltip */}
|
|
618
620
|
{serviceItem.dropoff_stages && (
|