kupos-ui-components-lib 9.8.1 → 9.8.2
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.
|
@@ -293,7 +293,7 @@ function ServiceItemPB({ serviceItem, onBookButtonPress, colors, metaData, child
|
|
|
293
293
|
React.createElement("div", { className: "relative" },
|
|
294
294
|
React.createElement(KuposButton, { isSoldOut: isSoldOut, isLoading: serviceDetailsLoading, buttonColor: colors.kuposButtonColor, buyLabel: translation === null || translation === void 0 ? void 0 : translation.buyButton, soldOutLabel: translation === null || translation === void 0 ? void 0 : translation.soldOutButton, soldOutIcon: renderIcon("soldOutIcon", "14px"), onClick: checkMidnight }),
|
|
295
295
|
showSeatSelectionError === serviceItem.id && isTrain && (React.createElement("div", { className: "flex justify-center mr-[11px] w-[100%] right-[0px] absolute left-[0] top-[40px]" },
|
|
296
|
-
React.createElement("div", { className: "text-[
|
|
296
|
+
React.createElement("div", { className: "text-[9px] text-center whitespace-nowrap", style: {
|
|
297
297
|
color: colors.seatPriceColor,
|
|
298
298
|
} }, "Selecciona el tipo de servicio"))),
|
|
299
299
|
showLastSeats ? (React.createElement("div", { className: "flex justify-center mr-[11px] w-[100%] right-[0px] absolute left-[0] top-[40px]" }, (serviceItem === null || serviceItem === void 0 ? void 0 : serviceItem.available_seats) < 10 &&
|
package/dist/styles.css
CHANGED
|
@@ -67,7 +67,9 @@ function SeatSection({ seatTypes, availableSeats, isSoldOut, priceColor, currenc
|
|
|
67
67
|
const renderSeatNames = () => {
|
|
68
68
|
const seats = removeDuplicateSeats ? uniqueSeats : sortedSeatTypes;
|
|
69
69
|
return seats.map((val, key) => SEAT_EXCEPTIONS.includes(val.label) ? null : (React.createElement("div", { className: "flex items-center", style: isTrain ? { cursor: "pointer" } : undefined, onClick: isTrain && !isSoldOut
|
|
70
|
-
? () =>
|
|
70
|
+
? () => val.label === selectedSeatKey
|
|
71
|
+
? onSeatSelect === null || onSeatSelect === void 0 ? void 0 : onSeatSelect(null, 0)
|
|
72
|
+
: onSeatSelect === null || onSeatSelect === void 0 ? void 0 : onSeatSelect(val.label, val.price)
|
|
71
73
|
: undefined },
|
|
72
74
|
isTrain && (React.createElement("div", { style: {
|
|
73
75
|
border: `1px solid ${val.label === selectedSeatKey ? topLabelColor : "#ccc"}`,
|
package/package.json
CHANGED
|
@@ -569,7 +569,7 @@ function ServiceItemPB({
|
|
|
569
569
|
{showSeatSelectionError === serviceItem.id && isTrain && (
|
|
570
570
|
<div className="flex justify-center mr-[11px] w-[100%] right-[0px] absolute left-[0] top-[40px]">
|
|
571
571
|
<div
|
|
572
|
-
className="text-[
|
|
572
|
+
className="text-[9px] text-center whitespace-nowrap"
|
|
573
573
|
style={{
|
|
574
574
|
color: colors.seatPriceColor,
|
|
575
575
|
}}
|
|
@@ -132,7 +132,10 @@ function SeatSection({
|
|
|
132
132
|
style={isTrain ? { cursor: "pointer" } : undefined}
|
|
133
133
|
onClick={
|
|
134
134
|
isTrain && !isSoldOut
|
|
135
|
-
? () =>
|
|
135
|
+
? () =>
|
|
136
|
+
val.label === selectedSeatKey
|
|
137
|
+
? onSeatSelect?.(null, 0)
|
|
138
|
+
: onSeatSelect?.(val.label, val.price)
|
|
136
139
|
: undefined
|
|
137
140
|
}
|
|
138
141
|
>
|