@planetaexo/design-system 0.12.2 → 0.12.3
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.cjs +7 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +9 -1
- package/dist/index.d.ts +9 -1
- package/dist/index.js +7 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
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 = {
|
|
@@ -4080,6 +4081,11 @@ function BookingConfirmationEmail({
|
|
|
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
|
}
|