kupos-ui-components-lib 9.2.6 → 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.
|
@@ -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"
|
|
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
|
@@ -91,12 +91,11 @@ const AmenitiesBlock = ({
|
|
|
91
91
|
const baseName = getAmenityBaseName(raw);
|
|
92
92
|
|
|
93
93
|
return (
|
|
94
|
-
<div
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
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}>
|