kupos-ui-components-lib 9.4.4 → 9.4.5
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.
|
@@ -115,7 +115,7 @@ function ServiceItemPB({ serviceItem, onBookButtonPress, colors, metaData, child
|
|
|
115
115
|
borderWidth: "3px 3px 0 3px",
|
|
116
116
|
borderRadius: isItemExpanded || coachKey ? "18px 18px 0 0" : "18px",
|
|
117
117
|
background: `linear-gradient(#fff, #fff) padding-box, ${offerGradient} border-box`,
|
|
118
|
-
zIndex:
|
|
118
|
+
// zIndex: 1,
|
|
119
119
|
}
|
|
120
120
|
: {};
|
|
121
121
|
const renderIcon = (iconKey, size = "14px") => {
|
|
@@ -292,7 +292,7 @@ function ServiceItemPB({ serviceItem, onBookButtonPress, colors, metaData, child
|
|
|
292
292
|
((serviceItem === null || serviceItem === void 0 ? void 0 : serviceItem.offer_text) || (serviceItem === null || serviceItem === void 0 ? void 0 : serviceItem.is_dp_enabled)) && (React.createElement("div", { className: "text-white p-[10px_15px] text-left w-full flex items-center absolute -bottom-[36px] pt-[50px] rounded-b-[14px] text-[14px]", style: {
|
|
293
293
|
background: offerGradient,
|
|
294
294
|
opacity: isSoldOut ? 0.5 : 1,
|
|
295
|
-
zIndex: isPeru ?
|
|
295
|
+
zIndex: isPeru ? -1 : -2,
|
|
296
296
|
// zIndex: hasOfferText ? 2 : isPeru ? 1 : -2,
|
|
297
297
|
} },
|
|
298
298
|
React.createElement("div", { className: "flex justify-between items-center w-full" },
|
package/dist/styles.css
CHANGED
|
@@ -135,6 +135,12 @@
|
|
|
135
135
|
.z-\[1\] {
|
|
136
136
|
z-index: 1;
|
|
137
137
|
}
|
|
138
|
+
.z-\[100\] {
|
|
139
|
+
z-index: 100;
|
|
140
|
+
}
|
|
141
|
+
.z-\[200\] {
|
|
142
|
+
z-index: 200;
|
|
143
|
+
}
|
|
138
144
|
.col-span-2 {
|
|
139
145
|
grid-column: span 2 / span 2;
|
|
140
146
|
}
|
|
@@ -1027,6 +1033,13 @@
|
|
|
1027
1033
|
}
|
|
1028
1034
|
}
|
|
1029
1035
|
}
|
|
1036
|
+
.hover\:z-\[500\] {
|
|
1037
|
+
&:hover {
|
|
1038
|
+
@media (hover: hover) {
|
|
1039
|
+
z-index: 500;
|
|
1040
|
+
}
|
|
1041
|
+
}
|
|
1042
|
+
}
|
|
1030
1043
|
.hover\:bg-\[\#FFE5E5\] {
|
|
1031
1044
|
&:hover {
|
|
1032
1045
|
@media (hover: hover) {
|
|
@@ -72,10 +72,10 @@ const AmenitiesBlock = ({ serviceItem, metaData, isSoldOut, colors, isPeru, getA
|
|
|
72
72
|
React.createElement(TooltipArrow, { color: colors.tooltipColor }),
|
|
73
73
|
React.createElement("div", { className: "text-xs whitespace-nowrap" }, getAmenityName(baseName.split("_").join(" "))))));
|
|
74
74
|
}),
|
|
75
|
-
shouldShowPlus && (React.createElement("div", { className: "relative ml-1 cursor-pointer" },
|
|
76
|
-
React.createElement("div", { className: "group" },
|
|
75
|
+
shouldShowPlus && (React.createElement("div", { className: "relative ml-1 cursor-pointer z-[200] hover:z-[500]" },
|
|
76
|
+
React.createElement("div", { className: "relative group cursor-pointer" },
|
|
77
77
|
React.createElement("img", { src: ((_c = serviceItem.icons) === null || _c === void 0 ? void 0 : _c.plus) ||
|
|
78
|
-
"/images/icons/amenities/icon_plus.svg", className: "w-[16px] h-[16px]", alt: "plus", style: { opacity: isSoldOut ? 0.5 : 1 } }),
|
|
78
|
+
"/images/icons/amenities/icon_plus.svg", className: "w-[16px] h-[16px] z-[100]", alt: "plus", style: { opacity: isSoldOut ? 0.5 : 1 } }),
|
|
79
79
|
React.createElement("div", { style: { zIndex: 100 }, className: TOOLTIP_CLASS },
|
|
80
80
|
React.createElement(TooltipArrow, { color: colors.tooltipColor }),
|
|
81
81
|
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
|
@@ -195,7 +195,7 @@ function ServiceItemPB({
|
|
|
195
195
|
borderWidth: "3px 3px 0 3px",
|
|
196
196
|
borderRadius: isItemExpanded || coachKey ? "18px 18px 0 0" : "18px",
|
|
197
197
|
background: `linear-gradient(#fff, #fff) padding-box, ${offerGradient} border-box`,
|
|
198
|
-
zIndex:
|
|
198
|
+
// zIndex: 1,
|
|
199
199
|
}
|
|
200
200
|
: {};
|
|
201
201
|
|
|
@@ -616,7 +616,7 @@ function ServiceItemPB({
|
|
|
616
616
|
style={{
|
|
617
617
|
background: offerGradient,
|
|
618
618
|
opacity: isSoldOut ? 0.5 : 1,
|
|
619
|
-
zIndex: isPeru ?
|
|
619
|
+
zIndex: isPeru ? -1 : -2,
|
|
620
620
|
// zIndex: hasOfferText ? 2 : isPeru ? 1 : -2,
|
|
621
621
|
}}
|
|
622
622
|
>
|
|
@@ -130,14 +130,14 @@ const AmenitiesBlock = ({
|
|
|
130
130
|
|
|
131
131
|
{/* PLUS ICON */}
|
|
132
132
|
{shouldShowPlus && (
|
|
133
|
-
<div className="relative ml-1 cursor-pointer">
|
|
134
|
-
<div className="group">
|
|
133
|
+
<div className="relative ml-1 cursor-pointer z-[200] hover:z-[500]">
|
|
134
|
+
<div className="relative group cursor-pointer">
|
|
135
135
|
<img
|
|
136
136
|
src={
|
|
137
137
|
serviceItem.icons?.plus ||
|
|
138
138
|
"/images/icons/amenities/icon_plus.svg"
|
|
139
139
|
}
|
|
140
|
-
className="w-[16px] h-[16px]"
|
|
140
|
+
className="w-[16px] h-[16px] z-[100]"
|
|
141
141
|
alt="plus"
|
|
142
142
|
style={{ opacity: isSoldOut ? 0.5 : 1 }}
|
|
143
143
|
/>
|