kupos-ui-components-lib 9.5.4 → 9.5.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.
@@ -246,9 +246,7 @@ function ServiceItemPB({ serviceItem, onBookButtonPress, colors, metaData, child
246
246
  ? "z-[3] rounded-[18px]"
247
247
  : "rounded-[10px] border border-[#ccc]"}`, style: serviceCardStyle },
248
248
  React.createElement("div", { className: " pt-[20px]", style: {
249
- padding: (serviceItem === null || serviceItem === void 0 ? void 0 : serviceItem.is_dp_enabled) ||
250
- (serviceItem === null || serviceItem === void 0 ? void 0 : serviceItem.offer_text) ||
251
- hasDiscount
249
+ padding: (serviceItem === null || serviceItem === void 0 ? void 0 : serviceItem.is_dp_enabled) || (serviceItem === null || serviceItem === void 0 ? void 0 : serviceItem.offer_text)
252
250
  ? "20px 15px 10px 15px"
253
251
  : coachKey
254
252
  ? "20px 15px 20px 15px"
@@ -284,7 +282,9 @@ function ServiceItemPB({ serviceItem, onBookButtonPress, colors, metaData, child
284
282
  position: "relative",
285
283
  zIndex: hasOfferText || (serviceItem === null || serviceItem === void 0 ? void 0 : serviceItem.is_dp_enabled) ? 0 : -1,
286
284
  } },
287
- React.createElement("div", { style: Object.assign({ overflow: "hidden", minHeight: 0 }, (hasOfferText || (serviceItem === null || serviceItem === void 0 ? void 0 : serviceItem.is_dp_enabled)
285
+ React.createElement("div", { style: Object.assign({ overflow: "hidden", minHeight: 0, marginTop: (serviceItem === null || serviceItem === void 0 ? void 0 : serviceItem.is_dp_enabled) || (serviceItem === null || serviceItem === void 0 ? void 0 : serviceItem.offer_text)
286
+ ? ""
287
+ : "-10px" }, (hasOfferText || (serviceItem === null || serviceItem === void 0 ? void 0 : serviceItem.is_dp_enabled)
288
288
  ? {
289
289
  borderLeft: `3px solid ${isSoldOut ? "rgba(255, 89, 100, 0.5)" : "#ff5964"}`,
290
290
  borderRight: `3px solid ${isSoldOut ? "rgba(255, 136, 66, 0.5)" : "#ff8842"}`,
@@ -5,7 +5,7 @@ const OfferBanner = ({ offerGradient, isSoldOut, serviceItem, renderIcon, isLogg
5
5
  return (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: {
6
6
  background: offerGradient,
7
7
  opacity: isSoldOut ? 0.5 : 1,
8
- zIndex: 0,
8
+ // zIndex: 0,
9
9
  } },
10
10
  React.createElement("div", { className: "flex justify-between items-center w-full" },
11
11
  React.createElement("div", { className: "flex items-center " }, (serviceItem === null || serviceItem === void 0 ? void 0 : serviceItem.is_dp_enabled) ? (React.createElement("div", { className: "flex items-center gap-[5px]" },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kupos-ui-components-lib",
3
- "version": "9.5.4",
3
+ "version": "9.5.5",
4
4
  "description": "A reusable UI components package",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -439,9 +439,7 @@ function ServiceItemPB({
439
439
  className=" pt-[20px]"
440
440
  style={{
441
441
  padding:
442
- serviceItem?.is_dp_enabled ||
443
- serviceItem?.offer_text ||
444
- hasDiscount
442
+ serviceItem?.is_dp_enabled || serviceItem?.offer_text
445
443
  ? "20px 15px 10px 15px"
446
444
  : coachKey
447
445
  ? "20px 15px 20px 15px"
@@ -578,7 +576,10 @@ function ServiceItemPB({
578
576
  style={{
579
577
  overflow: "hidden",
580
578
  minHeight: 0,
581
- // marginTop: "-10px",
579
+ marginTop:
580
+ serviceItem?.is_dp_enabled || serviceItem?.offer_text
581
+ ? ""
582
+ : "-10px",
582
583
  ...(hasOfferText || serviceItem?.is_dp_enabled
583
584
  ? {
584
585
  borderLeft: `3px solid ${isSoldOut ? "rgba(255, 89, 100, 0.5)" : "#ff5964"}`,
@@ -33,7 +33,7 @@ const OfferBanner: React.FC<OfferBannerProps> = ({
33
33
  style={{
34
34
  background: offerGradient,
35
35
  opacity: isSoldOut ? 0.5 : 1,
36
- zIndex: 0,
36
+ // zIndex: 0,
37
37
  }}
38
38
  >
39
39
  <div className="flex justify-between items-center w-full">