kupos-ui-components-lib 9.11.3 → 9.11.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/ui/BottomAmenities/BottomAmenities.d.ts +2 -1
- package/dist/ui/BottomAmenities/BottomAmenities.js +4 -2
- package/package.json +1 -1
- package/src/components/ServiceItem/ServiceItemDesktop.tsx +1 -0
- package/src/ui/BottomAmenities/BottomAmenities.tsx +5 -1
|
@@ -338,7 +338,7 @@ function ServiceItemPB({ serviceItem, onBookButtonPress, colors, metaData, child
|
|
|
338
338
|
color: colors.seatPriceColor,
|
|
339
339
|
} }, "\u00A1\u00DAltimos Asientos!")))) : null)),
|
|
340
340
|
React.createElement(BottomAmenities, { otherItems: otherItems, serviceItem: serviceItem, grayscaleClass: grayscaleClass, isSoldOut: isSoldOut, isItemExpanded: isItemExpanded, colors: colors, translation: translation, getAnimationIcon: getAnimationIcon, downArrowIcon: renderIcon("downArrow", "10px"), onToggleExpand: () => setIsExpand &&
|
|
341
|
-
setIsExpand(isItemExpanded ? null : serviceItem.id), isPeru: isPeru }))),
|
|
341
|
+
setIsExpand(isItemExpanded ? null : serviceItem.id), isPeru: isPeru, isTrain: isTrain }))),
|
|
342
342
|
isPeru ? null : (React.createElement("div", { style: {
|
|
343
343
|
display: "grid",
|
|
344
344
|
gridTemplateRows: isItemExpanded ? "1fr" : "0fr",
|
|
@@ -24,6 +24,7 @@ interface BottomAmenitiesProps {
|
|
|
24
24
|
downArrowIcon?: React.ReactNode;
|
|
25
25
|
onToggleExpand: () => void;
|
|
26
26
|
isPeru?: boolean;
|
|
27
|
+
isTrain?: boolean;
|
|
27
28
|
}
|
|
28
|
-
declare function BottomAmenities({ otherItems, serviceItem, grayscaleClass, isSoldOut, isItemExpanded, colors, translation, getAnimationIcon, downArrowIcon, onToggleExpand, isPeru, }: BottomAmenitiesProps): React.ReactElement;
|
|
29
|
+
declare function BottomAmenities({ otherItems, serviceItem, grayscaleClass, isSoldOut, isItemExpanded, colors, translation, getAnimationIcon, downArrowIcon, onToggleExpand, isPeru, isTrain, }: BottomAmenitiesProps): React.ReactElement;
|
|
29
30
|
export default BottomAmenities;
|
|
@@ -3,7 +3,7 @@ import LottiePlayer from "../../assets/LottiePlayer";
|
|
|
3
3
|
import FlexibleBlock from "../FlexibleBlock";
|
|
4
4
|
import PetBlock from "../PetBlock";
|
|
5
5
|
import FemaleBlock from "../FemaleBlock";
|
|
6
|
-
function BottomAmenities({ otherItems, serviceItem, grayscaleClass, isSoldOut, isItemExpanded, colors, translation, getAnimationIcon, downArrowIcon, onToggleExpand, isPeru, }) {
|
|
6
|
+
function BottomAmenities({ otherItems, serviceItem, grayscaleClass, isSoldOut, isItemExpanded, colors, translation, getAnimationIcon, downArrowIcon, onToggleExpand, isPeru, isTrain, }) {
|
|
7
7
|
const hasPetInfo = serviceItem.pet_seat_info &&
|
|
8
8
|
Object.keys(serviceItem.pet_seat_info).length > 0;
|
|
9
9
|
const showDownArrow = ((serviceItem === null || serviceItem === void 0 ? void 0 : serviceItem.is_change_ticket) && serviceItem.pet_seat_info) ||
|
|
@@ -12,7 +12,9 @@ function BottomAmenities({ otherItems, serviceItem, grayscaleClass, isSoldOut, i
|
|
|
12
12
|
return (React.createElement("div", { className: "flex items-center mt-[15px] border-t border-[#eee] pt-[6px]" },
|
|
13
13
|
React.createElement("div", { className: "grid items-center gap-[2%] flex-1 ", style: {
|
|
14
14
|
// gridTemplateColumns: " 28% 21% 23% 23%",
|
|
15
|
-
gridTemplateColumns:
|
|
15
|
+
gridTemplateColumns: isTrain
|
|
16
|
+
? "20.6% 17% 23% 23%"
|
|
17
|
+
: "25.3% 17% 23% 23%",
|
|
16
18
|
} }, otherItems.map((item) => (React.createElement("div", { key: item.key, className: "flex items-center" }, item.render)))),
|
|
17
19
|
React.createElement("div", { className: "flex items-center justify-end shrink-0 ml-[5px] w-[150px]" },
|
|
18
20
|
(serviceItem === null || serviceItem === void 0 ? void 0 : serviceItem.is_tracking_enabled) && (React.createElement("div", { className: grayscaleClass + " mr-[10px]" },
|
package/package.json
CHANGED
|
@@ -28,6 +28,7 @@ interface BottomAmenitiesProps {
|
|
|
28
28
|
downArrowIcon?: React.ReactNode;
|
|
29
29
|
onToggleExpand: () => void;
|
|
30
30
|
isPeru?: boolean;
|
|
31
|
+
isTrain?: boolean;
|
|
31
32
|
}
|
|
32
33
|
|
|
33
34
|
function BottomAmenities({
|
|
@@ -42,6 +43,7 @@ function BottomAmenities({
|
|
|
42
43
|
downArrowIcon,
|
|
43
44
|
onToggleExpand,
|
|
44
45
|
isPeru,
|
|
46
|
+
isTrain,
|
|
45
47
|
}: BottomAmenitiesProps): React.ReactElement {
|
|
46
48
|
const hasPetInfo =
|
|
47
49
|
serviceItem.pet_seat_info &&
|
|
@@ -59,7 +61,9 @@ function BottomAmenities({
|
|
|
59
61
|
className="grid items-center gap-[2%] flex-1 "
|
|
60
62
|
style={{
|
|
61
63
|
// gridTemplateColumns: " 28% 21% 23% 23%",
|
|
62
|
-
gridTemplateColumns:
|
|
64
|
+
gridTemplateColumns: isTrain
|
|
65
|
+
? "20.6% 17% 23% 23%"
|
|
66
|
+
: "25.3% 17% 23% 23%",
|
|
63
67
|
}}
|
|
64
68
|
>
|
|
65
69
|
{otherItems.map((item) => (
|