kupos-ui-components-lib 9.2.3 → 9.2.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/ServiceItemMobile.js +1 -1
- package/dist/ui/mobileweb/BottomAmenitiesMobile.d.ts +2 -1
- package/dist/ui/mobileweb/BottomAmenitiesMobile.js +3 -3
- package/dist/ui/mobileweb/ExpandedDropdownMobile.js +12 -14
- package/package.json +1 -1
- package/src/components/ServiceItem/ServiceItemMobile.tsx +1 -0
- package/src/ui/mobileweb/BottomAmenitiesMobile.tsx +15 -13
- package/src/ui/mobileweb/ExpandedDropdownMobile.tsx +27 -22
|
@@ -153,7 +153,7 @@ function ServiceItemMobile({ serviceItem, onBookButtonPress, colors, busStage, o
|
|
|
153
153
|
// }}
|
|
154
154
|
onDropdownToggle: () => {
|
|
155
155
|
setIsExpanded(isItemExpanded ? null : serviceItem.id);
|
|
156
|
-
} })),
|
|
156
|
+
}, isPeru: isPeru })),
|
|
157
157
|
React.createElement("div", { className: "absolute -top-[14px] left-0 w-full flex items-center justify-end gap-[12px] pr-[13px] z-10 " },
|
|
158
158
|
showTopLabel && (React.createElement("div", { className: `flex items-center gap-[2px] py-[4px] px-[10px] rounded-[38px] min-[420]:text-[12px] text-[10px] z-20 `, style: {
|
|
159
159
|
backgroundColor: isSoldOut ? "#ccc" : colors.ratingBottomColor,
|
|
@@ -19,6 +19,7 @@ interface BottomAmenitiesMobileProps {
|
|
|
19
19
|
setShowDropdown: (val: boolean) => void;
|
|
20
20
|
onDropdownToggle: () => void;
|
|
21
21
|
isItemExpanded?: boolean;
|
|
22
|
+
isPeru?: boolean;
|
|
22
23
|
}
|
|
23
|
-
declare function BottomAmenitiesMobile({ isSoldOut, amenitiesNodes, hoursIcon, duration, isDirectTrip, directoColor, directoAnim, isChangeTicket, isPetSeat, petSeatInfo, petFriendlyAnim, flexibleAnim, isTrackingEnabled, locationAnim, downArrowIcon, showDropdown, setShowDropdown, onDropdownToggle, isItemExpanded, }: BottomAmenitiesMobileProps): React.ReactElement;
|
|
24
|
+
declare function BottomAmenitiesMobile({ isSoldOut, amenitiesNodes, hoursIcon, duration, isDirectTrip, directoColor, directoAnim, isChangeTicket, isPetSeat, petSeatInfo, petFriendlyAnim, flexibleAnim, isTrackingEnabled, locationAnim, downArrowIcon, showDropdown, setShowDropdown, onDropdownToggle, isItemExpanded, isPeru, }: BottomAmenitiesMobileProps): React.ReactElement;
|
|
24
25
|
export default BottomAmenitiesMobile;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import LottiePlayer from "../../assets/LottiePlayer";
|
|
3
|
-
function BottomAmenitiesMobile({ isSoldOut, amenitiesNodes, hoursIcon, duration, isDirectTrip, directoColor, directoAnim, isChangeTicket, isPetSeat, petSeatInfo, petFriendlyAnim, flexibleAnim, isTrackingEnabled, locationAnim, downArrowIcon, showDropdown, setShowDropdown, onDropdownToggle, isItemExpanded, }) {
|
|
3
|
+
function BottomAmenitiesMobile({ isSoldOut, amenitiesNodes, hoursIcon, duration, isDirectTrip, directoColor, directoAnim, isChangeTicket, isPetSeat, petSeatInfo, petFriendlyAnim, flexibleAnim, isTrackingEnabled, locationAnim, downArrowIcon, showDropdown, setShowDropdown, onDropdownToggle, isItemExpanded, isPeru, }) {
|
|
4
4
|
return (React.createElement("div", { className: `${"flex justify-between items-center items-center "}` },
|
|
5
5
|
React.createElement("div", { className: "w-[55%] flex justify-between items-center" },
|
|
6
6
|
React.createElement("div", { style: { opacity: isSoldOut ? 0.5 : 1 } }, amenitiesNodes),
|
|
@@ -25,7 +25,7 @@ function BottomAmenitiesMobile({ isSoldOut, amenitiesNodes, hoursIcon, duration,
|
|
|
25
25
|
isTrackingEnabled && (React.createElement("div", { className: "flex items-center mr-[10px]" },
|
|
26
26
|
React.createElement("div", { className: `h-auto mr-[4px] min-[420]:text-[13px] text-[11px] text-[#464647] ${isSoldOut ? "grayscale" : ""}` },
|
|
27
27
|
React.createElement(LottiePlayer, { animationData: locationAnim, width: "16px", height: "16px" }))))))),
|
|
28
|
-
React.createElement("div", { onClick: onDropdownToggle },
|
|
29
|
-
React.createElement("img", { src: downArrowIcon, alt: "icon", width: 14, height: 14, className: `${showDropdown ? "rotate-180" : ""} transition-transform duration-300` })))));
|
|
28
|
+
isPeru ? null : (React.createElement("div", { onClick: onDropdownToggle },
|
|
29
|
+
React.createElement("img", { src: downArrowIcon, alt: "icon", width: 14, height: 14, className: `${showDropdown ? "rotate-180" : ""} transition-transform duration-300` }))))));
|
|
30
30
|
}
|
|
31
31
|
export default BottomAmenitiesMobile;
|
|
@@ -23,26 +23,24 @@ function ExpandedDropdownMobile({ serviceItem, isPeru, petSeatInfo, petFriendlyA
|
|
|
23
23
|
React.createElement("span", null,
|
|
24
24
|
React.createElement("span", { className: "bold-text" }, "Pol\u00EDticas de anulaci\u00F3n:"),
|
|
25
25
|
" Tu pasaje puede ser anulado de forma online",
|
|
26
|
+
React.createElement("span", { className: "bold-text" }, " hasta 4 horas antes"),
|
|
27
|
+
" antes de la salida del bus.")),
|
|
28
|
+
isPeru ? null : isChangeTicket ? (React.createElement("div", { className: "flex gap-[6px]" },
|
|
29
|
+
React.createElement("span", { style: { marginTop: "2px" } }, "\u2022"),
|
|
30
|
+
React.createElement("span", null,
|
|
31
|
+
React.createElement("span", { className: "bold-text" }, "Pol\u00EDticas de cambios:"),
|
|
32
|
+
" Tu pasaje puede ser cambiado de manera online",
|
|
26
33
|
" ",
|
|
27
34
|
React.createElement("span", { className: "bold-text" },
|
|
28
35
|
"hasta ",
|
|
29
36
|
(serviceItem === null || serviceItem === void 0 ? void 0 : serviceItem.change_ticket_hours) || 6,
|
|
30
37
|
" horas antes"),
|
|
31
38
|
" ",
|
|
32
|
-
"de la salida del bus.
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
: isChangeTicket && (React.createElement("div", { className: "flex gap-[6px]" },
|
|
36
|
-
React.createElement("span", { style: { marginTop: "2px" } }, "\u2022"),
|
|
39
|
+
"de la salida del bus. El monto ser\u00E1 reembolsado a tu billetera kupospay."))) : (React.createElement("div", { className: "flex gap-[8px] " },
|
|
40
|
+
React.createElement("span", { style: { marginTop: "2px" } }, "\u2022"),
|
|
41
|
+
React.createElement("span", null,
|
|
37
42
|
React.createElement("span", null,
|
|
38
|
-
React.createElement("span", { className: "bold-text" }, "Pol\
|
|
39
|
-
"
|
|
40
|
-
" ",
|
|
41
|
-
React.createElement("span", { className: "bold-text" },
|
|
42
|
-
"hasta ",
|
|
43
|
-
(serviceItem === null || serviceItem === void 0 ? void 0 : serviceItem.change_ticket_hours) || 6,
|
|
44
|
-
" horas antes"),
|
|
45
|
-
" ",
|
|
46
|
-
"de la salida del bus. El monto ser\u00E1 reembolsado a tu billetera kupospay."))))));
|
|
43
|
+
React.createElement("span", { className: "bold-text" }, "Pol\u00EDtica de cambios:"),
|
|
44
|
+
" Esta empresa no permite cambios de pasajes")))))));
|
|
47
45
|
}
|
|
48
46
|
export default ExpandedDropdownMobile;
|
package/package.json
CHANGED
|
@@ -21,6 +21,7 @@ interface BottomAmenitiesMobileProps {
|
|
|
21
21
|
setShowDropdown: (val: boolean) => void;
|
|
22
22
|
onDropdownToggle: () => void;
|
|
23
23
|
isItemExpanded?: boolean;
|
|
24
|
+
isPeru?: boolean;
|
|
24
25
|
}
|
|
25
26
|
|
|
26
27
|
function BottomAmenitiesMobile({
|
|
@@ -43,6 +44,7 @@ function BottomAmenitiesMobile({
|
|
|
43
44
|
setShowDropdown,
|
|
44
45
|
onDropdownToggle,
|
|
45
46
|
isItemExpanded,
|
|
47
|
+
isPeru,
|
|
46
48
|
}: BottomAmenitiesMobileProps): React.ReactElement {
|
|
47
49
|
return (
|
|
48
50
|
<div className={`${"flex justify-between items-center items-center "}`}>
|
|
@@ -148,19 +150,19 @@ function BottomAmenitiesMobile({
|
|
|
148
150
|
</div>
|
|
149
151
|
)}
|
|
150
152
|
</div>
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
153
|
+
{isPeru ? null : (
|
|
154
|
+
<div onClick={onDropdownToggle}>
|
|
155
|
+
<img
|
|
156
|
+
src={downArrowIcon}
|
|
157
|
+
alt="icon"
|
|
158
|
+
width={14}
|
|
159
|
+
height={14}
|
|
160
|
+
className={`${
|
|
161
|
+
showDropdown ? "rotate-180" : ""
|
|
162
|
+
} transition-transform duration-300`}
|
|
163
|
+
/>
|
|
164
|
+
</div>
|
|
165
|
+
)}
|
|
164
166
|
</div>
|
|
165
167
|
</div>
|
|
166
168
|
);
|
|
@@ -67,30 +67,35 @@ function ExpandedDropdownMobile({
|
|
|
67
67
|
<span style={{ marginTop: "2px" }}>•</span>
|
|
68
68
|
<span>
|
|
69
69
|
<span className="bold-text">Políticas de anulación:</span> Tu pasaje
|
|
70
|
-
puede ser anulado de forma online
|
|
71
|
-
<span className="bold-text">
|
|
72
|
-
|
|
73
|
-
</span>{" "}
|
|
74
|
-
de la salida del bus. Al anular tu pasaje recibirás una devolución
|
|
75
|
-
del 85% del monto de tu compra.
|
|
70
|
+
puede ser anulado de forma online
|
|
71
|
+
<span className="bold-text"> hasta 4 horas antes</span> antes de la
|
|
72
|
+
salida del bus.
|
|
76
73
|
</span>
|
|
77
74
|
</div>
|
|
78
|
-
{isPeru
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
75
|
+
{isPeru ? null : isChangeTicket ? (
|
|
76
|
+
<div className="flex gap-[6px]">
|
|
77
|
+
<span style={{ marginTop: "2px" }}>•</span>
|
|
78
|
+
<span>
|
|
79
|
+
<span className="bold-text">Políticas de cambios:</span> Tu pasaje
|
|
80
|
+
puede ser cambiado de manera online{" "}
|
|
81
|
+
<span className="bold-text">
|
|
82
|
+
hasta {serviceItem?.change_ticket_hours || 6} horas antes
|
|
83
|
+
</span>{" "}
|
|
84
|
+
de la salida del bus. El monto será reembolsado a tu billetera
|
|
85
|
+
kupospay.
|
|
86
|
+
</span>
|
|
87
|
+
</div>
|
|
88
|
+
) : (
|
|
89
|
+
<div className="flex gap-[8px] ">
|
|
90
|
+
<span style={{ marginTop: "2px" }}>•</span>
|
|
91
|
+
<span>
|
|
92
|
+
<span>
|
|
93
|
+
<span className="bold-text">Política de cambios:</span> Esta
|
|
94
|
+
empresa no permite cambios de pasajes
|
|
95
|
+
</span>
|
|
96
|
+
</span>
|
|
97
|
+
</div>
|
|
98
|
+
)}
|
|
94
99
|
</div>
|
|
95
100
|
</div>
|
|
96
101
|
);
|