@planetaexo/design-system 0.12.2 → 0.12.4

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.
package/dist/index.d.cts CHANGED
@@ -567,8 +567,16 @@ interface BookingConfirmationEmailProps {
567
567
  * Apenas renderizado quando `nextSteps` está presente.
568
568
  */
569
569
  nextStepsImportant?: string;
570
+ /**
571
+ * Label que precede o link puro da reserva renderizado antes do `closingMessage`
572
+ * (ex.: "Direct link to your booking:"). Quando informada e `addTravellersUrl` existe,
573
+ * renderiza um parágrafo com `{label} <a href={url}>{url}</a>` para clientes que prefiram
574
+ * copiar/colar o URL ou em casos onde o botão CTA não renderiza.
575
+ * Quando omitida, nada é renderizado (mantém compat com fluxos que não querem o link puro).
576
+ */
577
+ directBookingLinkLabel?: string;
570
578
  }
571
- declare function BookingConfirmationEmail({ recipientName, addTravellersUrl, logoUrl, bookingNumber, activity, adventure, startingDate, numberOfPeople, host, labels, className, nextSteps, nextStepsImportant, }: BookingConfirmationEmailProps): react_jsx_runtime.JSX.Element;
579
+ declare function BookingConfirmationEmail({ recipientName, addTravellersUrl, logoUrl, bookingNumber, activity, adventure, startingDate, numberOfPeople, host, labels, className, nextSteps, nextStepsImportant, directBookingLinkLabel, }: BookingConfirmationEmailProps): react_jsx_runtime.JSX.Element;
572
580
 
573
581
  interface BookingOtpEmailProps {
574
582
  /** Saudação (ex.: "Hello!" / "Olá!"). */
package/dist/index.d.ts CHANGED
@@ -567,8 +567,16 @@ interface BookingConfirmationEmailProps {
567
567
  * Apenas renderizado quando `nextSteps` está presente.
568
568
  */
569
569
  nextStepsImportant?: string;
570
+ /**
571
+ * Label que precede o link puro da reserva renderizado antes do `closingMessage`
572
+ * (ex.: "Direct link to your booking:"). Quando informada e `addTravellersUrl` existe,
573
+ * renderiza um parágrafo com `{label} <a href={url}>{url}</a>` para clientes que prefiram
574
+ * copiar/colar o URL ou em casos onde o botão CTA não renderiza.
575
+ * Quando omitida, nada é renderizado (mantém compat com fluxos que não querem o link puro).
576
+ */
577
+ directBookingLinkLabel?: string;
570
578
  }
571
- declare function BookingConfirmationEmail({ recipientName, addTravellersUrl, logoUrl, bookingNumber, activity, adventure, startingDate, numberOfPeople, host, labels, className, nextSteps, nextStepsImportant, }: BookingConfirmationEmailProps): react_jsx_runtime.JSX.Element;
579
+ declare function BookingConfirmationEmail({ recipientName, addTravellersUrl, logoUrl, bookingNumber, activity, adventure, startingDate, numberOfPeople, host, labels, className, nextSteps, nextStepsImportant, directBookingLinkLabel, }: BookingConfirmationEmailProps): react_jsx_runtime.JSX.Element;
572
580
 
573
581
  interface BookingOtpEmailProps {
574
582
  /** Saudação (ex.: "Hello!" / "Olá!"). */
package/dist/index.js CHANGED
@@ -4001,7 +4001,8 @@ function BookingConfirmationEmail({
4001
4001
  labels,
4002
4002
  className,
4003
4003
  nextSteps,
4004
- nextStepsImportant
4004
+ nextStepsImportant,
4005
+ directBookingLinkLabel
4005
4006
  }) {
4006
4007
  const l = __spreadValues(__spreadValues({}, DEFAULT_LABELS2), labels);
4007
4008
  const ctaStyle = {
@@ -4074,12 +4075,17 @@ function BookingConfirmationEmail({
4074
4075
  /* @__PURE__ */ jsx("td", { style: { verticalAlign: "top" }, children: /* @__PURE__ */ jsx("p", { style: { fontSize: "14px", color: emailTokens.bodyText, lineHeight: "1.6", margin: 0 }, children: step }) })
4075
4076
  ] }) }) }, i)) }),
4076
4077
  nextStepsImportant && nextStepsImportant.trim().length > 0 && /* @__PURE__ */ jsx("p", { style: { marginBottom: "32px", fontSize: "14px", color: emailTokens.foreground, lineHeight: "1.6" }, children: nextStepsImportant.split("\n").map((line, idx, arr) => /* @__PURE__ */ jsxs(React23.Fragment, { children: [
4077
- line,
4078
+ idx === 0 ? /* @__PURE__ */ jsx("strong", { children: line }) : line,
4078
4079
  idx < arr.length - 1 ? /* @__PURE__ */ jsx("br", {}) : null
4079
4080
  ] }, idx)) })
4080
4081
  ] }),
4081
4082
  /* @__PURE__ */ jsx("hr", { style: { border: "none", borderTop: `1px solid ${emailTokens.border}`, marginBottom: "32px" } }),
4082
4083
  /* @__PURE__ */ jsx("p", { style: { marginBottom: "16px" }, children: l.postCtaMessage }),
4084
+ addTravellersUrl && directBookingLinkLabel && directBookingLinkLabel.trim().length > 0 && /* @__PURE__ */ jsxs("p", { style: { marginBottom: "16px", fontSize: "14px", color: emailTokens.mutedForeground }, children: [
4085
+ directBookingLinkLabel,
4086
+ " ",
4087
+ /* @__PURE__ */ jsx("a", { href: addTravellersUrl, style: { color: emailTokens.primary, wordBreak: "break-all" }, children: addTravellersUrl })
4088
+ ] }),
4083
4089
  /* @__PURE__ */ jsx("p", { children: l.closingMessage })
4084
4090
  ]
4085
4091
  }