kupos-ui-components-lib 2.0.5 → 2.0.6

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.
@@ -8,6 +8,7 @@ import LottiePlayer from "../../assets/LottiePlayer";
8
8
  const SEAT_EXCEPTIONS = ["Asiento mascota"];
9
9
  function ServiceItemPB({ serviceItem, onBookButtonPress, colors, metaData, children, busStage, serviceDetailsLoading, cityOrigin, cityDestination, translation, orignLabel, destinationLabel, currencySign, isCiva, showRating, showLastSeats, removeArrivalTime, originIconStyle, t = (key) => key, }) {
10
10
  var _a, _b, _c, _d, _e, _f, _g;
11
+ console.log("🚀 ~ ServiceItemPB ~ serviceItem:", serviceItem);
11
12
  const SvgAmenities = ({ moreAnemities, name, color, }) => {
12
13
  const amenityKey = name.toLowerCase().replace(/\s/g, "_");
13
14
  const getIconPath = () => {
@@ -282,9 +283,7 @@ function ServiceItemPB({ serviceItem, onBookButtonPress, colors, metaData, child
282
283
  const onBookButtonPressHandler = () => {
283
284
  onBookButtonPress();
284
285
  };
285
- return (React.createElement("div", { className: `relative ${serviceItem.offer_text || (serviceItem === null || serviceItem === void 0 ? void 0 : serviceItem.is_direct_trip)
286
- ? "mb-[60px]"
287
- : "mb-[20px]"} ${(serviceItem === null || serviceItem === void 0 ? void 0 : serviceItem.is_direct_trip) ||
286
+ return (React.createElement("div", { className: `relative ${serviceItem.offer_text ? "mb-[60px]" : "mb-[20px]"} ${(serviceItem === null || serviceItem === void 0 ? void 0 : serviceItem.is_direct_trip) ||
288
287
  (serviceItem === null || serviceItem === void 0 ? void 0 : serviceItem.train_type_label) === "Tren Express (Nuevo)" ||
289
288
  showTopLabel
290
289
  ? "mt-[24px]"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kupos-ui-components-lib",
3
- "version": "2.0.5",
3
+ "version": "2.0.6",
4
4
  "description": "A reusable UI components package",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -30,6 +30,7 @@ function ServiceItemPB({
30
30
  originIconStyle,
31
31
  t = (key: string) => key,
32
32
  }: ServiceItemProps & { currencySign?: string }): React.ReactElement {
33
+ console.log("🚀 ~ ServiceItemPB ~ serviceItem:", serviceItem);
33
34
  const SvgAmenities = ({
34
35
  moreAnemities,
35
36
  name,
@@ -402,9 +403,7 @@ function ServiceItemPB({
402
403
  return (
403
404
  <div
404
405
  className={`relative ${
405
- serviceItem.offer_text || serviceItem?.is_direct_trip
406
- ? "mb-[60px]"
407
- : "mb-[20px]"
406
+ serviceItem.offer_text ? "mb-[60px]" : "mb-[20px]"
408
407
  } ${
409
408
  serviceItem?.is_direct_trip ||
410
409
  serviceItem?.train_type_label === "Tren Express (Nuevo)" ||