kupos-ui-components-lib 10.4.53 → 10.4.54

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.
@@ -168,7 +168,7 @@ function PeruServiceItemDesktop({ serviceItem, onBookButtonPress, colors, metaDa
168
168
  };
169
169
  // Seat type icon logic
170
170
  const getSeatTypeIcon = (seatLabel) => {
171
- var _a, _b, _c, _d;
171
+ var _a, _b, _c, _d, _e;
172
172
  // Icon keys follow the seat{degrees}Icon format in serviceItem.icons
173
173
  if (seatLabel.includes("180°"))
174
174
  return (_a = serviceItem.icons) === null || _a === void 0 ? void 0 : _a.seat180Icon;
@@ -176,7 +176,9 @@ function PeruServiceItemDesktop({ serviceItem, onBookButtonPress, colors, metaDa
176
176
  return (_b = serviceItem.icons) === null || _b === void 0 ? void 0 : _b.seat160Icon;
177
177
  if (seatLabel.includes("140°"))
178
178
  return (_c = serviceItem.icons) === null || _c === void 0 ? void 0 : _c.seat140Icon;
179
- return (_d = serviceItem.icons) === null || _d === void 0 ? void 0 : _d.seatFallBackIcon;
179
+ if (seatLabel.includes("145°"))
180
+ return (_d = serviceItem.icons) === null || _d === void 0 ? void 0 : _d.seat145Icon;
181
+ return (_e = serviceItem.icons) === null || _e === void 0 ? void 0 : _e.seatFallBackIcon;
180
182
  };
181
183
  const getSeatNames = () => {
182
184
  const uniqueSeats = getUniqueSeats();
@@ -60,7 +60,7 @@ function hasInclinationSeatTypes(seatTypes) {
60
60
  return (seatTypes !== null && seatTypes !== void 0 ? seatTypes : []).some((seat) => { var _a; return String((_a = seat === null || seat === void 0 ? void 0 : seat.label) !== null && _a !== void 0 ? _a : "").includes("°"); });
61
61
  }
62
62
  function getSeatTypeIcon(label, serviceItem) {
63
- var _a, _b, _c, _d;
63
+ var _a, _b, _c, _d, _e;
64
64
  const seatLabel = String(label !== null && label !== void 0 ? label : "");
65
65
  if (seatLabel.includes("180°"))
66
66
  return (_a = serviceItem === null || serviceItem === void 0 ? void 0 : serviceItem.icons) === null || _a === void 0 ? void 0 : _a.seat180Icon;
@@ -68,7 +68,9 @@ function getSeatTypeIcon(label, serviceItem) {
68
68
  return (_b = serviceItem === null || serviceItem === void 0 ? void 0 : serviceItem.icons) === null || _b === void 0 ? void 0 : _b.seat160Icon;
69
69
  if (seatLabel.includes("140°"))
70
70
  return (_c = serviceItem === null || serviceItem === void 0 ? void 0 : serviceItem.icons) === null || _c === void 0 ? void 0 : _c.seat140Icon;
71
- return (_d = serviceItem === null || serviceItem === void 0 ? void 0 : serviceItem.icons) === null || _d === void 0 ? void 0 : _d.seatFallBackIcon;
71
+ if (seatLabel.includes("145°"))
72
+ return (_d = serviceItem.icons) === null || _d === void 0 ? void 0 : _d.seat145Icon;
73
+ return (_e = serviceItem === null || serviceItem === void 0 ? void 0 : serviceItem.icons) === null || _e === void 0 ? void 0 : _e.seatFallBackIcon;
72
74
  }
73
75
  function PeruSeatSection({ seatTypes, availableSeats, isSoldOut, priceColor, currencySign, removeDuplicateSeats, serviceItem, renderIcon, discountSeatPriceColor, isSeatIcon, }) {
74
76
  var _a;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kupos-ui-components-lib",
3
- "version": "10.4.53",
3
+ "version": "10.4.54",
4
4
  "description": "A reusable UI components package",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -263,6 +263,7 @@ function PeruServiceItemDesktop({
263
263
  if (seatLabel.includes("180°")) return serviceItem.icons?.seat180Icon;
264
264
  if (seatLabel.includes("160°")) return serviceItem.icons?.seat160Icon;
265
265
  if (seatLabel.includes("140°")) return serviceItem.icons?.seat140Icon;
266
+ if (seatLabel.includes("145°")) return serviceItem.icons?.seat145Icon;
266
267
 
267
268
  return serviceItem.icons?.seatFallBackIcon;
268
269
  };
@@ -105,6 +105,7 @@ function getSeatTypeIcon(label: string, serviceItem: any) {
105
105
  if (seatLabel.includes("180°")) return serviceItem?.icons?.seat180Icon;
106
106
  if (seatLabel.includes("160°")) return serviceItem?.icons?.seat160Icon;
107
107
  if (seatLabel.includes("140°")) return serviceItem?.icons?.seat140Icon;
108
+ if (seatLabel.includes("145°")) return serviceItem.icons?.seat145Icon;
108
109
  return serviceItem?.icons?.seatFallBackIcon;
109
110
  }
110
111