kupos-ui-components-lib 9.2.5 → 9.2.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.
@@ -24,8 +24,8 @@ const getAmenitySplit = ({ isPeru, amenities, priorityIds }) => {
24
24
  ============================ */
25
25
  const sorted = [...amenities].sort((a, b) => Number(priorityIds.includes(b)) - Number(priorityIds.includes(a)));
26
26
  return {
27
- visible: sorted.slice(0, 3),
28
- plus: sorted.slice(3),
27
+ visible: sorted.slice(0, 2),
28
+ plus: sorted.slice(2),
29
29
  };
30
30
  };
31
31
  const AmenitiesBlock = ({ serviceItem, metaData, isSoldOut, colors, isPeru, getAnimationIcon, getAmenityName, SvgAmenities, }) => {
@@ -53,8 +53,8 @@ const AmenitiesBlock = ({ serviceItem, metaData, isSoldOut, colors, isPeru, getA
53
53
  if (isWater(raw))
54
54
  return null;
55
55
  const baseName = getAmenityBaseName(raw);
56
- return (React.createElement("div", { key: key, className: "relative group cursor-pointer", style: { opacity: isSoldOut ? 0.5 : 1 } },
57
- React.createElement("div", { className: grayscaleClass },
56
+ return (React.createElement("div", { key: key, className: "relative group cursor-pointer" },
57
+ React.createElement("div", { className: grayscaleClass, style: { opacity: isSoldOut ? 0.5 : 1 } },
58
58
  React.createElement(SvgAmenities, { moreAnemities: false, name: baseName.toLowerCase() })),
59
59
  React.createElement("div", { className: TOOLTIP_CLASS, style: {
60
60
  backgroundColor: colors.bottomStripColor,
@@ -67,7 +67,7 @@ const AmenitiesBlock = ({ serviceItem, metaData, isSoldOut, colors, isPeru, getA
67
67
  shouldShowPlus && (React.createElement("div", { className: "relative ml-1 cursor-pointer" },
68
68
  React.createElement("div", { className: "group" },
69
69
  React.createElement("img", { src: ((_c = serviceItem.icons) === null || _c === void 0 ? void 0 : _c.plus) ||
70
- "/images/icons/amenities/icon_plus.svg", className: "w-[16px] h-[16px]", alt: "plus" }),
70
+ "/images/icons/amenities/icon_plus.svg", className: "w-[16px] h-[16px]", alt: "plus", style: { opacity: isSoldOut ? 0.5 : 1 } }),
71
71
  React.createElement("div", { style: { zIndex: 100 }, className: TOOLTIP_CLASS },
72
72
  React.createElement(TooltipArrow, { color: colors.tooltipColor }),
73
73
  React.createElement("div", { className: "flex flex-col gap-[10px] p-3 rounded-[8px] shadow-md", style: { backgroundColor: colors.tooltipColor } }, plusAmenities.map((val, key) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kupos-ui-components-lib",
3
- "version": "9.2.5",
3
+ "version": "9.2.7",
4
4
  "description": "A reusable UI components package",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -42,8 +42,8 @@ const getAmenitySplit = ({ isPeru, amenities, priorityIds }) => {
42
42
  );
43
43
 
44
44
  return {
45
- visible: sorted.slice(0, 3),
46
- plus: sorted.slice(3),
45
+ visible: sorted.slice(0, 2),
46
+ plus: sorted.slice(2),
47
47
  };
48
48
  };
49
49
 
@@ -91,12 +91,11 @@ const AmenitiesBlock = ({
91
91
  const baseName = getAmenityBaseName(raw);
92
92
 
93
93
  return (
94
- <div
95
- key={key}
96
- className="relative group cursor-pointer"
97
- style={{ opacity: isSoldOut ? 0.5 : 1 }}
98
- >
99
- <div className={grayscaleClass}>
94
+ <div key={key} className="relative group cursor-pointer">
95
+ <div
96
+ className={grayscaleClass}
97
+ style={{ opacity: isSoldOut ? 0.5 : 1 }}
98
+ >
100
99
  <SvgAmenities
101
100
  moreAnemities={false}
102
101
  name={baseName.toLowerCase()}
@@ -131,6 +130,7 @@ const AmenitiesBlock = ({
131
130
  }
132
131
  className="w-[16px] h-[16px]"
133
132
  alt="plus"
133
+ style={{ opacity: isSoldOut ? 0.5 : 1 }}
134
134
  />
135
135
 
136
136
  <div style={{ zIndex: 100 }} className={TOOLTIP_CLASS}>