kupos-ui-components-lib 9.6.4 → 9.6.5

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.
@@ -299,7 +299,7 @@ function ServiceItemPB({ serviceItem, onBookButtonPress, colors, metaData, child
299
299
  boxSizing: "border-box",
300
300
  }
301
301
  : {})) },
302
- React.createElement(ExpandedDropdown, { serviceItem: serviceItem, isPeru: isPeru, translation: translation, getAnimationIcon: getAnimationIcon, isChangeTicket: serviceItem.is_change_ticket === true, isSoldOut: isSoldOut })))),
302
+ React.createElement(ExpandedDropdown, { serviceItem: serviceItem, isPeru: isPeru, translation: translation, getAnimationIcon: getAnimationIcon, isChangeTicket: serviceItem.is_change_ticket === true, isSoldOut: isSoldOut, ladiesBookedSeats: serviceItem.ladies_booked_seats, isDpEnabled: serviceItem.is_dp_enabled })))),
303
303
  children,
304
304
  React.createElement(ServiceBadges, { showTopLabel: showTopLabel, isSoldOut: isSoldOut, colors: colors, renderIcon: renderIcon, translation: translation, serviceItem: serviceItem })))));
305
305
  }
@@ -11,6 +11,8 @@ interface ExpandedDropdownProps {
11
11
  getAnimationIcon?: (iconName: string) => any;
12
12
  isChangeTicket?: boolean;
13
13
  isSoldOut?: boolean;
14
+ ladiesBookedSeats?: string;
15
+ isDpEnabled?: boolean;
14
16
  }
15
- declare function ExpandedDropdown({ serviceItem, isPeru, translation, getAnimationIcon, isChangeTicket, isSoldOut, }: ExpandedDropdownProps): React.ReactElement;
17
+ declare function ExpandedDropdown({ serviceItem, isPeru, translation, getAnimationIcon, isChangeTicket, isSoldOut, ladiesBookedSeats, isDpEnabled, }: ExpandedDropdownProps): React.ReactElement;
16
18
  export default ExpandedDropdown;
@@ -1,6 +1,6 @@
1
1
  import React from "react";
2
2
  import LottiePlayer from "../../assets/LottiePlayer";
3
- function ExpandedDropdown({ serviceItem, isPeru = false, translation = {}, getAnimationIcon, isChangeTicket = false, isSoldOut, }) {
3
+ function ExpandedDropdown({ serviceItem, isPeru = false, translation = {}, getAnimationIcon, isChangeTicket = false, isSoldOut, ladiesBookedSeats, isDpEnabled, }) {
4
4
  const hasPetInfo = serviceItem.pet_seat_info &&
5
5
  Object.keys(serviceItem.pet_seat_info).length > 0;
6
6
  return (React.createElement("div", { className: "px-[15px] pt-[26px] pb-[14px] -mt-[16px] pt-[35px] relative -z-9", style: {
@@ -29,6 +29,13 @@ function ExpandedDropdown({ serviceItem, isPeru = false, translation = {}, getAn
29
29
  React.createElement(LottiePlayer, { animationData: getAnimationIcon("petFriendlyAnim"), width: "20px", height: "20px" }),
30
30
  React.createElement("div", { className: "h-auto mr-[4px] text-[13px] text-[#464647] bold-text" },
31
31
  React.createElement("span", null, translation === null || translation === void 0 ? void 0 : translation.petFriendly)))),
32
+ ladiesBookedSeats &&
33
+ String(ladiesBookedSeats).trim() !== "" &&
34
+ isDpEnabled === true && (React.createElement("div", { className: "flex gap-[6px]" },
35
+ React.createElement("span", { style: { marginTop: "2px" } }, "\u2022"),
36
+ React.createElement("span", null,
37
+ React.createElement("span", { className: "bold-text" }, "Asientos para damas:"),
38
+ " Esta empresa cuenta con asientos recomendados para mujeres."))),
32
39
  React.createElement("div", { className: "flex gap-[8px] text-[13.33px]" },
33
40
  React.createElement("span", { style: { marginTop: "2px" } }, "\u2022"),
34
41
  React.createElement("span", null,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kupos-ui-components-lib",
3
- "version": "9.6.4",
3
+ "version": "9.6.5",
4
4
  "description": "A reusable UI components package",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -611,6 +611,8 @@ function ServiceItemPB({
611
611
  getAnimationIcon={getAnimationIcon}
612
612
  isChangeTicket={serviceItem.is_change_ticket === true}
613
613
  isSoldOut={isSoldOut}
614
+ ladiesBookedSeats={serviceItem.ladies_booked_seats}
615
+ isDpEnabled={serviceItem.is_dp_enabled}
614
616
  />
615
617
  </div>
616
618
  </div>
@@ -13,6 +13,8 @@ interface ExpandedDropdownProps {
13
13
  getAnimationIcon?: (iconName: string) => any;
14
14
  isChangeTicket?: boolean;
15
15
  isSoldOut?: boolean;
16
+ ladiesBookedSeats?: string;
17
+ isDpEnabled?: boolean;
16
18
  }
17
19
 
18
20
  function ExpandedDropdown({
@@ -22,6 +24,8 @@ function ExpandedDropdown({
22
24
  getAnimationIcon,
23
25
  isChangeTicket = false,
24
26
  isSoldOut,
27
+ ladiesBookedSeats,
28
+ isDpEnabled,
25
29
  }: ExpandedDropdownProps): React.ReactElement {
26
30
  const hasPetInfo =
27
31
  serviceItem.pet_seat_info &&
@@ -76,6 +80,18 @@ function ExpandedDropdown({
76
80
  </div>
77
81
  )}
78
82
 
83
+ {ladiesBookedSeats &&
84
+ String(ladiesBookedSeats).trim() !== "" &&
85
+ isDpEnabled === true && (
86
+ <div className="flex gap-[6px]">
87
+ <span style={{ marginTop: "2px" }}>•</span>
88
+ <span>
89
+ <span className="bold-text">Asientos para damas:</span> Esta
90
+ empresa cuenta con asientos recomendados para mujeres.
91
+ </span>
92
+ </div>
93
+ )}
94
+
79
95
  <div className="flex gap-[8px] text-[13.33px]">
80
96
  <span style={{ marginTop: "2px" }}>•</span>
81
97
  <span>