kupos-ui-components-lib 5.0.6 → 5.0.7

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.
@@ -25,7 +25,6 @@ const renderSummaryDetailsCard = ({ serviceName, date, source, dest, boardingSta
25
25
  }
26
26
  else {
27
27
  cleanedDepTime = timePart;
28
- console.log("🚀 ~ cleanedDepTime:", cleanedDepTime);
29
28
  }
30
29
  let cleanBoardingReturnTime;
31
30
  const hasBoardingReturnAM = returnTime.includes("AM");
@@ -52,7 +51,6 @@ const renderSummaryDetailsCard = ({ serviceName, date, source, dest, boardingSta
52
51
  else {
53
52
  cleanBoardingReturnTime = returnTimePart;
54
53
  }
55
- console.log("🚀 ~ cleanBoardingReturnTime:", cleanBoardingReturnTime);
56
54
  }
57
55
  // REMOVED AM/PM DUPLICATION AND ADDED 24 HOUR TIME FORMAT IN DROPPING STAGE
58
56
  const dropdDepTime = droppingTime || "";
@@ -202,7 +200,6 @@ const PaymentSideBarDesktop = ({ serviceNameOnward, serviceNameReturn, metaData,
202
200
  }
203
201
  else {
204
202
  cleanedDepTime = timePart;
205
- console.log("🚀 ~ cleanedDepTime:", cleanedDepTime);
206
203
  }
207
204
  let cleanBoardingReturnTime;
208
205
  const hasBoardingReturnAM = returnTime.includes("AM");
@@ -229,7 +226,6 @@ const PaymentSideBarDesktop = ({ serviceNameOnward, serviceNameReturn, metaData,
229
226
  else {
230
227
  cleanBoardingReturnTime = returnTimePart;
231
228
  }
232
- console.log("🚀 ~ cleanBoardingReturnTime:", cleanBoardingReturnTime);
233
229
  }
234
230
  // REMOVED AM/PM DUPLICATION AND ADDED 24 HOUR TIME FORMAT IN DROPPING STAGE
235
231
  const dropdDepTime = droppingTimeOnward || "";
@@ -415,7 +411,7 @@ const PaymentSideBarDesktop = ({ serviceNameOnward, serviceNameReturn, metaData,
415
411
  removeDiscountAtomValue && (React.createElement(PaymentItem, { label: "Cup\u00F3n", amount: CommonService.currency(netFare, currencySign), isNegative: true, currency: "" })),
416
412
  React.createElement("div", { style: { margin: "6px 0" } }, renderDiscount(discountAmount)),
417
413
  React.createElement(PaymentItem, { label: `${translation === null || translation === void 0 ? void 0 : translation.promotionalCode}:`, amount: CommonService.currency((promoCode === null || promoCode === void 0 ? void 0 : promoCode.promoCouponAmount) ? promoCode === null || promoCode === void 0 ? void 0 : promoCode.promoCouponAmount : 0, currencySign), className: "text-[13.33px]", currency: currency, customStyle: { color: colors === null || colors === void 0 ? void 0 : colors.promoCodePriceColor } }),
418
- (promoCode === null || promoCode === void 0 ? void 0 : promoCode.promoCouponAmount) ? (React.createElement("div", { className: "promocode font10" },
414
+ (promoCode === null || promoCode === void 0 ? void 0 : promoCode.promoCouponAmount) ? (React.createElement("div", { className: "promocode font10 flex items-center gap-[5px]" },
419
415
  React.createElement("div", null, promoCode === null || promoCode === void 0 ? void 0 : promoCode.promoCode),
420
416
  React.createElement("span", { className: "promo-remove", onClick: onPromoRemove },
421
417
  React.createElement("img", { src: icons === null || icons === void 0 ? void 0 : icons.closeIcon, alt: "close", className: "w-[16px] h-[16px]" })))) : null,
@@ -161,7 +161,7 @@ const PaymentSideBarMobile = ({ serviceNameOnward, serviceNameReturn, metaData,
161
161
  color: colors === null || colors === void 0 ? void 0 : colors.whatsappDeliveryChargesTextColor,
162
162
  } }, translation === null || translation === void 0 ? void 0 : translation.whatsappInfoIcon)))), amount: metaData.whatsapp_delivery_charges, className: "text-[14px]", customStyle: { color: colors === null || colors === void 0 ? void 0 : colors.whatsappDeliveryChargesColor } })) : null,
163
163
  React.createElement(PaymentItem, { label: `${translation === null || translation === void 0 ? void 0 : translation.promotionalCode}:`, amount: CommonService.currency((promoCode === null || promoCode === void 0 ? void 0 : promoCode.promoCouponAmount) ? promoCode === null || promoCode === void 0 ? void 0 : promoCode.promoCouponAmount : 0, currencySign), className: "text-[14px]", showCurrency: false, customStyle: { color: colors === null || colors === void 0 ? void 0 : colors.promoCodePriceColor }, currency: "" }),
164
- (promoCode === null || promoCode === void 0 ? void 0 : promoCode.promoCouponAmount) ? (React.createElement("div", { className: "promocode font10" },
164
+ (promoCode === null || promoCode === void 0 ? void 0 : promoCode.promoCouponAmount) ? (React.createElement("div", { className: "promocode font14 flex items-center gap-[5px]" },
165
165
  React.createElement("div", null, promoCode === null || promoCode === void 0 ? void 0 : promoCode.promoCode),
166
166
  React.createElement("span", { className: "promo-remove", onClick: onPromoRemove },
167
167
  React.createElement("img", { src: icons === null || icons === void 0 ? void 0 : icons.closeIcon, alt: "close", className: "w-[16px] h-[16px]" })))) : null,
@@ -16,7 +16,6 @@ const SEAT_EXCEPTIONS = ["Asiento mascota"];
16
16
  function ServiceItemPB({ serviceItem, onBookButtonPress, colors, metaData, children, busStage, serviceDetailsLoading, cityOrigin, cityDestination, translation, orignLabel, destinationLabel, currencySign, isCiva, showRating, showLastSeats, removeArrivalTime, removeDuplicateSeats, isPeruSites, showAvailableSeats, isSeatIcon, isLinatal, flexibleIcon, locationAnim, directoAnim, petFriendlyAnim, priorityStageAnim, promoAnim, t = (key) => key, }) {
17
17
  var _a, _b, _c, _d, _e, _f, _g;
18
18
  const getAnimationIcon = (icon) => {
19
- console.log("🚀 ~ getAnimationIcon ~ icon:", icon);
20
19
  if (icon === "promoAnim") {
21
20
  return promoAnimation;
22
21
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kupos-ui-components-lib",
3
- "version": "5.0.6",
3
+ "version": "5.0.7",
4
4
  "description": "A reusable UI components package",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -46,7 +46,6 @@ const renderSummaryDetailsCard = ({
46
46
  : `${hour + 12}:${minute < 10 ? "0" + minute : minute}`;
47
47
  } else {
48
48
  cleanedDepTime = timePart;
49
- console.log("🚀 ~ cleanedDepTime:", cleanedDepTime);
50
49
  }
51
50
 
52
51
  let cleanBoardingReturnTime;
@@ -79,8 +78,6 @@ const renderSummaryDetailsCard = ({
79
78
  } else {
80
79
  cleanBoardingReturnTime = returnTimePart;
81
80
  }
82
-
83
- console.log("🚀 ~ cleanBoardingReturnTime:", cleanBoardingReturnTime);
84
81
  }
85
82
 
86
83
  // REMOVED AM/PM DUPLICATION AND ADDED 24 HOUR TIME FORMAT IN DROPPING STAGE
@@ -360,7 +357,6 @@ const PaymentSideBarDesktop: React.FC<PaymentSideBarProps> = ({
360
357
  : `${hour + 12}:${minute < 10 ? "0" + minute : minute}`;
361
358
  } else {
362
359
  cleanedDepTime = timePart;
363
- console.log("🚀 ~ cleanedDepTime:", cleanedDepTime);
364
360
  }
365
361
 
366
362
  let cleanBoardingReturnTime;
@@ -393,8 +389,6 @@ const PaymentSideBarDesktop: React.FC<PaymentSideBarProps> = ({
393
389
  } else {
394
390
  cleanBoardingReturnTime = returnTimePart;
395
391
  }
396
-
397
- console.log("🚀 ~ cleanBoardingReturnTime:", cleanBoardingReturnTime);
398
392
  }
399
393
 
400
394
  // REMOVED AM/PM DUPLICATION AND ADDED 24 HOUR TIME FORMAT IN DROPPING STAGE
@@ -714,7 +708,7 @@ const PaymentSideBarDesktop: React.FC<PaymentSideBarProps> = ({
714
708
  customStyle={{ color: colors?.promoCodePriceColor }}
715
709
  />
716
710
  {promoCode?.promoCouponAmount ? (
717
- <div className="promocode font10">
711
+ <div className="promocode font10 flex items-center gap-[5px]">
718
712
  <div>{promoCode?.promoCode}</div>
719
713
  <span className="promo-remove" onClick={onPromoRemove}>
720
714
  <img
@@ -396,7 +396,7 @@ const PaymentSideBarMobile: React.FC<PaymentSideBarProps> = ({
396
396
  currency=""
397
397
  />
398
398
  {promoCode?.promoCouponAmount ? (
399
- <div className="promocode font10">
399
+ <div className="promocode font14 flex items-center gap-[5px]">
400
400
  <div>{promoCode?.promoCode}</div>
401
401
  <span className="promo-remove" onClick={onPromoRemove}>
402
402
  <img
@@ -48,7 +48,6 @@ function ServiceItemPB({
48
48
  t = (key: string) => key,
49
49
  }: ServiceItemProps & { currencySign?: string }): React.ReactElement {
50
50
  const getAnimationIcon = (icon: string) => {
51
- console.log("🚀 ~ getAnimationIcon ~ icon:", icon);
52
51
  if (icon === "promoAnim") {
53
52
  return promoAnimation;
54
53
  } else if (icon === "locationAnim") {