kupos-ui-components-lib 10.3.3 → 10.3.4
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.
- package/dist/components/ServiceItem/ServiceItemDesktop.js +1 -1
- package/dist/styles.css +2 -2
- package/dist/ui/RatingBlock.js +1 -4
- package/dist/ui/SeatSection/SeatSection.js +3 -1
- package/package.json +1 -1
- package/src/components/ServiceItem/ServiceItemDesktop.tsx +1 -1
- package/src/ui/RatingBlock.tsx +1 -6
- package/src/ui/SeatSection/SeatSection.tsx +3 -1
|
@@ -314,7 +314,7 @@ function ServiceItemPB({ serviceItem, onBookButtonPress, colors, metaData, child
|
|
|
314
314
|
? "14px"
|
|
315
315
|
: "",
|
|
316
316
|
} },
|
|
317
|
-
React.createElement("div", { className: `grid text-[#464647] w-full ${isTrain ? "[grid-template-columns:
|
|
317
|
+
React.createElement("div", { className: `grid text-[#464647] w-full ${isTrain ? "[grid-template-columns:20%_27%_2.5%_27%_15.5%]" : "[grid-template-columns:20%_30%_2.5%_24%_15.5%]"} gap-x-[2%] items-center` },
|
|
318
318
|
React.createElement("div", { className: "flex flex-col gap-[5px]" },
|
|
319
319
|
React.createElement("div", null,
|
|
320
320
|
React.createElement("img", { src: serviceItem.operator_details[0], alt: "service logo", className: `h-[30px] w-[auto] ${isSoldOut ? "grayscale" : ""}` }),
|
package/dist/styles.css
CHANGED
|
@@ -572,8 +572,8 @@
|
|
|
572
572
|
.\[grid-template-columns\:14\%_40\%_0\.5\%_24\%_13\.5\%\] {
|
|
573
573
|
grid-template-columns: 14% 40% 0.5% 24% 13.5%;
|
|
574
574
|
}
|
|
575
|
-
.\[grid-template-columns\:
|
|
576
|
-
grid-template-columns:
|
|
575
|
+
.\[grid-template-columns\:20\%_27\%_2\.5\%_27\%_15\.5\%\] {
|
|
576
|
+
grid-template-columns: 20% 27% 2.5% 27% 15.5%;
|
|
577
577
|
}
|
|
578
578
|
.\[grid-template-columns\:20\%_30\%_2\.5\%_24\%_15\.5\%\] {
|
|
579
579
|
grid-template-columns: 20% 30% 2.5% 24% 15.5%;
|
package/dist/ui/RatingBlock.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import RatingHover from "../components/ServiceItem/RatingHover";
|
|
3
|
-
import commonService from "../utils/CommonService";
|
|
4
3
|
const RatingBlock = ({ showRating, serviceItem, isSoldOut, colors, t, translation, isPeru = false, isTrain = false, }) => {
|
|
5
4
|
return (React.createElement("div", { className: "flex items-center whitespace-nowrap" },
|
|
6
5
|
showRating && (React.createElement(RatingHover, { serviceItem: serviceItem, isSoldOut: isSoldOut, colors: colors, t: t, translation: translation, isPeru: isPeru })),
|
|
@@ -8,9 +7,7 @@ const RatingBlock = ({ showRating, serviceItem, isSoldOut, colors, t, translatio
|
|
|
8
7
|
marginLeft: showRating ? "6px" : "0",
|
|
9
8
|
color: isSoldOut ? "#c0c0c0" : "#464647",
|
|
10
9
|
} },
|
|
11
|
-
React.createElement("span", { className: `block max-w-[120px] cursor-pointer text-[12px] ${isPeru || isTrain ? "overflow-hidden text-ellipsis whitespace-nowrap" : ""}` },
|
|
12
|
-
? commonService.truncateSeatLabel(serviceItem.operator_details[2], 14)
|
|
13
|
-
: commonService.capitalize(serviceItem.operator_details[2])),
|
|
10
|
+
React.createElement("span", { className: `block max-w-[120px] cursor-pointer text-[12px] ${isPeru || isTrain ? "overflow-hidden text-ellipsis whitespace-nowrap" : ""}` }, serviceItem.operator_details[2]),
|
|
14
11
|
React.createElement("div", { className: "hidden group-hover:block absolute top-[24px] left-1/2 -translate-x-1/2 text-white p-3 rounded-[14px] whitespace-nowrap z-10 mt-2.5 w-max text-center shadow-service text-[12px]", style: { backgroundColor: colors.bottomStripColor, zIndex: "300" } },
|
|
15
12
|
React.createElement("div", { className: "tooltip-arrow absolute -top-[7px] left-1/2 -translate-x-1/2 w-0 h-0 border-l-8 border-r-8 border-b-8 border-l-transparent border-r-transparent ", style: { borderBottomColor: colors.bottomStripColor } }),
|
|
16
13
|
serviceItem.operator_details[2]))));
|
|
@@ -114,7 +114,9 @@ function SeatSection({ seatTypes, availableSeats, isSoldOut, priceColor, currenc
|
|
|
114
114
|
typeof val.label === "string" || typeof val.label === "number"
|
|
115
115
|
? removeDuplicateSeats && isPeru
|
|
116
116
|
? CommonService.truncateSeatLabel(val.label)
|
|
117
|
-
:
|
|
117
|
+
: isTrain
|
|
118
|
+
? CommonService.capitalize(String(val.apiSeatType))
|
|
119
|
+
: CommonService.capitalize(String(val.label))
|
|
118
120
|
: null)));
|
|
119
121
|
});
|
|
120
122
|
};
|
package/package.json
CHANGED
|
@@ -593,7 +593,7 @@ function ServiceItemPB({
|
|
|
593
593
|
}}
|
|
594
594
|
>
|
|
595
595
|
<div
|
|
596
|
-
className={`grid text-[#464647] w-full ${isTrain ? "[grid-template-columns:
|
|
596
|
+
className={`grid text-[#464647] w-full ${isTrain ? "[grid-template-columns:20%_27%_2.5%_27%_15.5%]" : "[grid-template-columns:20%_30%_2.5%_24%_15.5%]"} gap-x-[2%] items-center`}
|
|
597
597
|
>
|
|
598
598
|
{/* OPERATOR LOGO */}
|
|
599
599
|
<div className="flex flex-col gap-[5px]">
|
package/src/ui/RatingBlock.tsx
CHANGED
|
@@ -38,12 +38,7 @@ const RatingBlock = ({
|
|
|
38
38
|
<span
|
|
39
39
|
className={`block max-w-[120px] cursor-pointer text-[12px] ${isPeru || isTrain ? "overflow-hidden text-ellipsis whitespace-nowrap" : ""}`}
|
|
40
40
|
>
|
|
41
|
-
{
|
|
42
|
-
? commonService.truncateSeatLabel(
|
|
43
|
-
serviceItem.operator_details[2],
|
|
44
|
-
14,
|
|
45
|
-
)
|
|
46
|
-
: commonService.capitalize(serviceItem.operator_details[2])}
|
|
41
|
+
{serviceItem.operator_details[2]}
|
|
47
42
|
</span>
|
|
48
43
|
<div
|
|
49
44
|
className="hidden group-hover:block absolute top-[24px] left-1/2 -translate-x-1/2 text-white p-3 rounded-[14px] whitespace-nowrap z-10 mt-2.5 w-max text-center shadow-service text-[12px]"
|
|
@@ -217,7 +217,9 @@ function SeatSection({
|
|
|
217
217
|
{typeof val.label === "string" || typeof val.label === "number"
|
|
218
218
|
? removeDuplicateSeats && isPeru
|
|
219
219
|
? CommonService.truncateSeatLabel(val.label)
|
|
220
|
-
:
|
|
220
|
+
: isTrain
|
|
221
|
+
? CommonService.capitalize(String(val.apiSeatType))
|
|
222
|
+
: CommonService.capitalize(String(val.label))
|
|
221
223
|
: null}
|
|
222
224
|
</span>
|
|
223
225
|
</div>
|