kupos-ui-components-lib 9.4.4 → 9.4.6

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.
@@ -11,7 +11,7 @@ const RatingHover = ({ serviceItem, isSoldOut, colors, t = (key) => key, transla
11
11
  const val = parseFloat(details[key]);
12
12
  return isNaN(val) ? 0 : +val.toFixed(1);
13
13
  };
14
- return (React.createElement("div", { className: "flex items-center relative cursor-pointer group" },
14
+ return (React.createElement("div", { className: "flex items-center relative cursor-pointer group hover:z-[500]" },
15
15
  React.createElement("div", { className: "w-[18px] h-auto mr-[4px]", style: { opacity: isSoldOut ? 0.5 : 1 } },
16
16
  React.createElement("img", { src: serviceItem.icons.rating, alt: "origin", className: `w-[16px] h-[16px] mr-[4px] object-contain mb-[4px] ${isSoldOut ? "grayscale" : ""}` })),
17
17
  React.createElement("span", { className: "text-[#464647] text-[13.33px]", style: { opacity: isSoldOut ? 0.5 : 1 } }, typeof serviceItem.operator_details[1] === "number"
@@ -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: 2,
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 ? undefined : -2,
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kupos-ui-components-lib",
3
- "version": "9.4.4",
3
+ "version": "9.4.6",
4
4
  "description": "A reusable UI components package",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -30,7 +30,7 @@ const RatingHover: React.FC<RatingHoverProps> = ({
30
30
  };
31
31
 
32
32
  return (
33
- <div className="flex items-center relative cursor-pointer group">
33
+ <div className="flex items-center relative cursor-pointer group hover:z-[500]">
34
34
  <div
35
35
  className="w-[18px] h-auto mr-[4px]"
36
36
  style={{ opacity: isSoldOut ? 0.5 : 1 }}
@@ -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: 2,
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 ? undefined : -2,
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
  />
@@ -35,5 +35,8 @@ module.exports = {
35
35
  "flex",
36
36
  "justify-between",
37
37
  "items-center",
38
+ "hidden",
39
+ "group-hover:block",
40
+ "hover:z-[500]",
38
41
  ],
39
42
  };