@hotelcard/ui 0.0.58 → 0.0.59

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.

Potentially problematic release.


This version of @hotelcard/ui might be problematic. Click here for more details.

package/dist/index.d.ts CHANGED
@@ -1530,6 +1530,8 @@ export declare interface MembershipCardProps {
1530
1530
  domainText?: string;
1531
1531
  /** URL for the card background image */
1532
1532
  cardImageUrl: string;
1533
+ /** URL for the overlay/wrapper background image (e.g. mountain texture). When provided, renders a container behind the card. */
1534
+ overlayImageUrl?: string;
1533
1535
  }
1534
1536
 
1535
1537
  /**
package/dist/index.js CHANGED
@@ -8049,10 +8049,10 @@ const tu = {
8049
8049
  validUntil: r,
8050
8050
  validThruLabel: s,
8051
8051
  domainText: c = "hotelcard.ch",
8052
- cardImageUrl: i
8052
+ cardImageUrl: i,
8053
+ overlayImageUrl: l
8053
8054
  }) => {
8054
- const { t: l } = ue(), d = s || l("membership.valid_thru", "Gültigkeit/Validité");
8055
- return /* @__PURE__ */ o(
8055
+ const { t: d } = ue(), h = s || d("membership.valid_thru", "Gültigkeit/Validité"), u = /* @__PURE__ */ o(
8056
8056
  "div",
8057
8057
  {
8058
8058
  className: "hc-membership-card",
@@ -8060,7 +8060,7 @@ const tu = {
8060
8060
  children: [
8061
8061
  /* @__PURE__ */ e("span", { className: "hc-membership-card__field hc-membership-card__name", children: t }),
8062
8062
  /* @__PURE__ */ e("span", { className: "hc-membership-card__field hc-membership-card__number", children: a }),
8063
- /* @__PURE__ */ e("span", { className: "hc-membership-card__field hc-membership-card__valid-thru-label", children: d }),
8063
+ /* @__PURE__ */ e("span", { className: "hc-membership-card__field hc-membership-card__valid-thru-label", children: h }),
8064
8064
  /* @__PURE__ */ o("span", { className: "hc-membership-card__field hc-membership-card__dates", children: [
8065
8065
  n,
8066
8066
  " – ",
@@ -8070,6 +8070,14 @@ const tu = {
8070
8070
  ]
8071
8071
  }
8072
8072
  );
8073
+ return l ? /* @__PURE__ */ e(
8074
+ "div",
8075
+ {
8076
+ className: "hc-membership-card-overlay",
8077
+ style: { backgroundImage: `url(${l})` },
8078
+ children: u
8079
+ }
8080
+ ) : u;
8073
8081
  };
8074
8082
  Mu.displayName = "MembershipCard";
8075
8083
  export {