kupos-ui-components-lib 10.4.64 → 10.4.65
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/ui/ExpendedDropDown/ExpandedDropdown.d.ts +1 -0
- package/dist/ui/ExpendedDropDown/ExpandedDropdown.js +7 -1
- package/dist/ui/mobileweb/ExpandedDropdownMobile.d.ts +1 -0
- package/dist/ui/mobileweb/ExpandedDropdownMobile.js +6 -1
- package/package.json +1 -1
- package/src/ui/ExpendedDropDown/ExpandedDropdown.tsx +12 -2
- package/src/ui/mobileweb/ExpandedDropdownMobile.tsx +13 -1
- package/dist/ServiceItemPb.d.ts +0 -4
- package/dist/ServiceItemPb.js +0 -486
- package/dist/assets/images/anims/service_list/60_percent_anim.json +0 -1
- package/dist/assets/images/directo-icon.png +0 -0
- package/dist/components/FilterSortBar/SingleFilterSheet.d.ts +0 -15
- package/dist/components/FilterSortBar/SingleFilterSheet.js +0 -21
- package/dist/components/PaymentOptions/PaymentOptionsDesktop.d.ts +0 -4
- package/dist/components/PaymentOptions/PaymentOptionsDesktop.js +0 -5
- package/dist/components/PaymentOptions/PaymentOptionsMobile.d.ts +0 -4
- package/dist/components/PaymentOptions/PaymentOptionsMobile.js +0 -5
- package/dist/components/PaymentOptions/ResponsivePaymentOptions.d.ts +0 -3
- package/dist/components/PaymentOptions/ResponsivePaymentOptions.js +0 -10
- package/dist/components/PaymentOptions/index.d.ts +0 -5
- package/dist/components/PaymentOptions/index.js +0 -4
- package/dist/components/PaymentOptions/mobileTypes.d.ts +0 -0
- package/dist/components/PaymentOptions/mobileTypes.js +0 -0
- package/dist/components/PaymentOptions/type.d.ts +0 -4
- package/dist/components/PaymentOptions/type.js +0 -1
- package/dist/components/ServiceItem/ExpandedDropdown.d.ts +0 -19
- package/dist/components/ServiceItem/ExpandedDropdown.js +0 -28
- package/dist/components/ServiceItem/ServiceItemDesktopPeru.d.ts +0 -6
- package/dist/components/ServiceItem/ServiceItemDesktopPeru.js +0 -612
- package/dist/example.d.ts +0 -5
- package/dist/example.js +0 -240
- package/dist/ui/ServiceType.d.ts +0 -9
- package/dist/ui/ServiceType.js +0 -9
- package/dist/ui/TopAmenities/PromoCountdown.d.ts +0 -18
- package/dist/ui/TopAmenities/PromoCountdown.js +0 -55
|
@@ -2,12 +2,18 @@ import React from "react";
|
|
|
2
2
|
function ExpandedDropdown({ serviceItem, isPeru = false, translation = {}, getAnimationIcon, isChangeTicket = false, isSoldOut, ladiesBookedSeats, isDpEnabled, renderIcon, operatorLabel, }) {
|
|
3
3
|
const hasPetInfo = serviceItem.pet_seat_info &&
|
|
4
4
|
Object.keys(serviceItem.pet_seat_info).length > 0;
|
|
5
|
+
console.log("ExpandedDropdown serviceItem:", serviceItem);
|
|
5
6
|
return (React.createElement("div", { className: "px-[15px] pt-[26px] pb-[14px] -mt-[16px] pt-[35px] relative -z-9", style: {
|
|
6
7
|
backgroundColor: "#ffefef",
|
|
7
8
|
borderRadius: "0 0 10px 10px",
|
|
8
9
|
} },
|
|
9
10
|
React.createElement("div", { className: "flex flex-col gap-[6px] text-[13px] text-[#464647]", style: { lineHeight: 1.5, opacity: isSoldOut ? 0.5 : 1 } },
|
|
10
|
-
isPeru || isDpEnabled ? null :
|
|
11
|
+
isPeru || isDpEnabled ? null : (serviceItem === null || serviceItem === void 0 ? void 0 : serviceItem.operator_service_name) ===
|
|
12
|
+
"Cóndor Bus" ? (React.createElement("div", { className: "flex gap-[8px] text-[13.33px]" },
|
|
13
|
+
React.createElement("span", null, renderIcon("changeTicketIcon", "16px")),
|
|
14
|
+
React.createElement("span", null,
|
|
15
|
+
React.createElement("span", { className: "bold-text" }, "Pasaje flexible:"),
|
|
16
|
+
" Esta empresa permite cambios hasta la hora del viaje."))) : isChangeTicket ? (React.createElement("div", { className: "flex gap-[8px]", style: { lineHeight: 1.5 } },
|
|
11
17
|
React.createElement("span", null, renderIcon("changeTicketIcon", "16px")),
|
|
12
18
|
React.createElement("span", null,
|
|
13
19
|
React.createElement("span", { className: "bold-text" }, "Pasaje flexible:"),
|
|
@@ -6,7 +6,12 @@ function ExpandedDropdownMobile({ serviceItem, isPeru, petSeatInfo, petFriendlyA
|
|
|
6
6
|
opacity: isSoldOut ? 0.5 : 1,
|
|
7
7
|
} },
|
|
8
8
|
React.createElement("div", { className: "flex flex-col gap-[8px] text-[11px] min-[420px]:text-[12px] text-[#464647]", style: { lineHeight: 1.6 } },
|
|
9
|
-
isPeru || isDpEnabled ? null :
|
|
9
|
+
isPeru || isDpEnabled ? null : (serviceItem === null || serviceItem === void 0 ? void 0 : serviceItem.operator_service_name) ===
|
|
10
|
+
"Cóndor Bus" ? (React.createElement("div", { className: "flex gap-[6px]" },
|
|
11
|
+
React.createElement("span", { className: "mt-[3px]" }, renderIcon("changeTicketIcon", "14px")),
|
|
12
|
+
React.createElement("span", null,
|
|
13
|
+
React.createElement("span", { className: "bold-text" }, "Pasaje flexible:"),
|
|
14
|
+
" Esta empresa permite cambios hasta la hora del viaje."))) : isChangeTicket ? (React.createElement("div", { className: "flex gap-[6px]" },
|
|
10
15
|
React.createElement("span", { className: "mt-[3px]" }, renderIcon("changeTicketIcon", "14px")),
|
|
11
16
|
React.createElement("span", null,
|
|
12
17
|
React.createElement("span", { className: "bold-text" }, "Pasaje flexible:"),
|
package/package.json
CHANGED
|
@@ -7,6 +7,7 @@ interface ExpandedDropdownProps {
|
|
|
7
7
|
pet_seat_info?: Record<string, any>;
|
|
8
8
|
is_change_ticket?: boolean;
|
|
9
9
|
is_tracking_enabled?: boolean;
|
|
10
|
+
operator_service_name?: string;
|
|
10
11
|
};
|
|
11
12
|
isPeru?: boolean;
|
|
12
13
|
translation?: Record<string, string>;
|
|
@@ -34,7 +35,7 @@ function ExpandedDropdown({
|
|
|
34
35
|
const hasPetInfo =
|
|
35
36
|
serviceItem.pet_seat_info &&
|
|
36
37
|
Object.keys(serviceItem.pet_seat_info).length > 0;
|
|
37
|
-
|
|
38
|
+
console.log("ExpandedDropdown serviceItem:", serviceItem);
|
|
38
39
|
return (
|
|
39
40
|
<div
|
|
40
41
|
className="px-[15px] pt-[26px] pb-[14px] -mt-[16px] pt-[35px] relative -z-9"
|
|
@@ -47,7 +48,16 @@ function ExpandedDropdown({
|
|
|
47
48
|
className="flex flex-col gap-[6px] text-[13px] text-[#464647]"
|
|
48
49
|
style={{ lineHeight: 1.5, opacity: isSoldOut ? 0.5 : 1 }}
|
|
49
50
|
>
|
|
50
|
-
{isPeru || isDpEnabled ? null :
|
|
51
|
+
{isPeru || isDpEnabled ? null : serviceItem?.operator_service_name ===
|
|
52
|
+
"Cóndor Bus" ? (
|
|
53
|
+
<div className="flex gap-[8px] text-[13.33px]">
|
|
54
|
+
<span>{renderIcon("changeTicketIcon", "16px")}</span>
|
|
55
|
+
<span>
|
|
56
|
+
<span className="bold-text">Pasaje flexible:</span> Esta empresa
|
|
57
|
+
permite cambios hasta la hora del viaje.
|
|
58
|
+
</span>
|
|
59
|
+
</div>
|
|
60
|
+
) : isChangeTicket ? (
|
|
51
61
|
<div className="flex gap-[8px]" style={{ lineHeight: 1.5 }}>
|
|
52
62
|
<span>{renderIcon("changeTicketIcon", "16px")}</span>
|
|
53
63
|
{/* <span style={{ marginTop: "2px" }}>
|
|
@@ -7,6 +7,7 @@ interface ExpandedDropdownMobileProps {
|
|
|
7
7
|
pet_seat_info?: Record<string, any>;
|
|
8
8
|
is_change_ticket?: boolean;
|
|
9
9
|
is_tracking_enabled?: boolean;
|
|
10
|
+
operator_service_name?: string;
|
|
10
11
|
};
|
|
11
12
|
isPeru?: boolean;
|
|
12
13
|
petSeatInfo?: Record<string, any>;
|
|
@@ -48,7 +49,18 @@ function ExpandedDropdownMobile({
|
|
|
48
49
|
className="flex flex-col gap-[8px] text-[11px] min-[420px]:text-[12px] text-[#464647]"
|
|
49
50
|
style={{ lineHeight: 1.6 }}
|
|
50
51
|
>
|
|
51
|
-
{isPeru || isDpEnabled ? null :
|
|
52
|
+
{isPeru || isDpEnabled ? null : serviceItem?.operator_service_name ===
|
|
53
|
+
"Cóndor Bus" ? (
|
|
54
|
+
<div className="flex gap-[6px]">
|
|
55
|
+
<span className="mt-[3px]">
|
|
56
|
+
{renderIcon("changeTicketIcon", "14px")}
|
|
57
|
+
</span>
|
|
58
|
+
<span>
|
|
59
|
+
<span className="bold-text">Pasaje flexible:</span> Esta empresa
|
|
60
|
+
permite cambios hasta la hora del viaje.
|
|
61
|
+
</span>
|
|
62
|
+
</div>
|
|
63
|
+
) : isChangeTicket ? (
|
|
52
64
|
<div className="flex gap-[6px]">
|
|
53
65
|
<span className="mt-[3px]">
|
|
54
66
|
{renderIcon("changeTicketIcon", "14px")}
|
package/dist/ServiceItemPb.d.ts
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { ServiceItemProps } from "./types";
|
|
3
|
-
declare function ServiceItemPB({ serviceItem, onBookButtonPress, colors, metaData, children, busStage, serviceDetailsLoading, cityOrigin, cityDestination, translation, orignLabel, destinationLabel, t, }: ServiceItemProps): React.ReactElement;
|
|
4
|
-
export default ServiceItemPB;
|