@planetaexo/design-system 0.4.12 → 0.4.14
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 +35 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +21 -2
- package/dist/index.d.ts +21 -2
- package/dist/index.js +35 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -426,6 +426,19 @@ interface TravellerFormInviteLink {
|
|
|
426
426
|
interface TravellerFormInviteEmailLabels {
|
|
427
427
|
buttonLabel?: string;
|
|
428
428
|
}
|
|
429
|
+
interface TripDetails {
|
|
430
|
+
bookingNumber: string;
|
|
431
|
+
adventure: string;
|
|
432
|
+
startingDate: string;
|
|
433
|
+
partner?: string | null;
|
|
434
|
+
}
|
|
435
|
+
interface TripDetailsLabels {
|
|
436
|
+
title?: string;
|
|
437
|
+
bookingNumber?: string;
|
|
438
|
+
adventure?: string;
|
|
439
|
+
startingDate?: string;
|
|
440
|
+
partner?: string;
|
|
441
|
+
}
|
|
429
442
|
interface TravellerFormInviteEmailProps {
|
|
430
443
|
/** Saudação (ex: "Olá Carlos!" ou "Hello!") */
|
|
431
444
|
greeting: string;
|
|
@@ -445,8 +458,14 @@ interface TravellerFormInviteEmailProps {
|
|
|
445
458
|
buttonLabel?: string;
|
|
446
459
|
/** className extra no container (para uso no styleguide) */
|
|
447
460
|
className?: string;
|
|
448
|
-
|
|
449
|
-
|
|
461
|
+
/** Dados da viagem para exibição na seção Trip Details */
|
|
462
|
+
tripDetails?: TripDetails;
|
|
463
|
+
/** Labels da seção Trip Details (para i18n) */
|
|
464
|
+
tripDetailsLabels?: TripDetailsLabels;
|
|
465
|
+
/** Texto após os links (instrução de obrigatoriedade). */
|
|
466
|
+
bodyFooter?: string;
|
|
467
|
+
}
|
|
468
|
+
declare function TravellerFormInviteEmail({ greeting, bodyIntro, bodyInstruction, links, ignoreNote, teamSignature, logoUrl, buttonLabel, className, tripDetails, tripDetailsLabels, bodyFooter, }: TravellerFormInviteEmailProps): react_jsx_runtime.JSX.Element;
|
|
450
469
|
|
|
451
470
|
interface BookingFormValues {
|
|
452
471
|
adults: number;
|
package/dist/index.d.ts
CHANGED
|
@@ -426,6 +426,19 @@ interface TravellerFormInviteLink {
|
|
|
426
426
|
interface TravellerFormInviteEmailLabels {
|
|
427
427
|
buttonLabel?: string;
|
|
428
428
|
}
|
|
429
|
+
interface TripDetails {
|
|
430
|
+
bookingNumber: string;
|
|
431
|
+
adventure: string;
|
|
432
|
+
startingDate: string;
|
|
433
|
+
partner?: string | null;
|
|
434
|
+
}
|
|
435
|
+
interface TripDetailsLabels {
|
|
436
|
+
title?: string;
|
|
437
|
+
bookingNumber?: string;
|
|
438
|
+
adventure?: string;
|
|
439
|
+
startingDate?: string;
|
|
440
|
+
partner?: string;
|
|
441
|
+
}
|
|
429
442
|
interface TravellerFormInviteEmailProps {
|
|
430
443
|
/** Saudação (ex: "Olá Carlos!" ou "Hello!") */
|
|
431
444
|
greeting: string;
|
|
@@ -445,8 +458,14 @@ interface TravellerFormInviteEmailProps {
|
|
|
445
458
|
buttonLabel?: string;
|
|
446
459
|
/** className extra no container (para uso no styleguide) */
|
|
447
460
|
className?: string;
|
|
448
|
-
|
|
449
|
-
|
|
461
|
+
/** Dados da viagem para exibição na seção Trip Details */
|
|
462
|
+
tripDetails?: TripDetails;
|
|
463
|
+
/** Labels da seção Trip Details (para i18n) */
|
|
464
|
+
tripDetailsLabels?: TripDetailsLabels;
|
|
465
|
+
/** Texto após os links (instrução de obrigatoriedade). */
|
|
466
|
+
bodyFooter?: string;
|
|
467
|
+
}
|
|
468
|
+
declare function TravellerFormInviteEmail({ greeting, bodyIntro, bodyInstruction, links, ignoreNote, teamSignature, logoUrl, buttonLabel, className, tripDetails, tripDetailsLabels, bodyFooter, }: TravellerFormInviteEmailProps): react_jsx_runtime.JSX.Element;
|
|
450
469
|
|
|
451
470
|
interface BookingFormValues {
|
|
452
471
|
adults: number;
|
package/dist/index.js
CHANGED
|
@@ -3171,7 +3171,13 @@ function BookingConfirmation({
|
|
|
3171
3171
|
adventure.description && /* @__PURE__ */ jsxs("div", { style: { marginTop: "4px" }, children: [
|
|
3172
3172
|
/* @__PURE__ */ jsx("hr", { style: { border: "none", borderTop: `1px solid ${emailTokens.border}`, marginBottom: "10px" } }),
|
|
3173
3173
|
/* @__PURE__ */ jsx("p", { style: { fontSize: "10px", fontWeight: "700", color: emailTokens.mutedForeground, textTransform: "uppercase", letterSpacing: "0.1em", margin: "0 0 8px 0" }, children: l.itineraryLabel }),
|
|
3174
|
-
/* @__PURE__ */ jsx(
|
|
3174
|
+
/* @__PURE__ */ jsx(
|
|
3175
|
+
"div",
|
|
3176
|
+
{
|
|
3177
|
+
style: { fontSize: "14px", color: emailTokens.bodyText, lineHeight: "1.6", margin: 0 },
|
|
3178
|
+
dangerouslySetInnerHTML: { __html: adventure.description }
|
|
3179
|
+
}
|
|
3180
|
+
)
|
|
3175
3181
|
] }),
|
|
3176
3182
|
adventure.included && adventure.included.length > 0 && /* @__PURE__ */ jsxs("div", { style: { marginTop: "10px" }, children: [
|
|
3177
3183
|
/* @__PURE__ */ jsx("h4", { style: { fontSize: "14px", fontWeight: "700", color: emailTokens.foreground, margin: "0 0 8px 0" }, children: l.includedLabel }),
|
|
@@ -3403,8 +3409,12 @@ function TravellerFormInviteEmail({
|
|
|
3403
3409
|
teamSignature,
|
|
3404
3410
|
logoUrl,
|
|
3405
3411
|
buttonLabel = "Preencher formul\xE1rio",
|
|
3406
|
-
className
|
|
3412
|
+
className,
|
|
3413
|
+
tripDetails,
|
|
3414
|
+
tripDetailsLabels,
|
|
3415
|
+
bodyFooter
|
|
3407
3416
|
}) {
|
|
3417
|
+
var _a, _b, _c, _d, _e;
|
|
3408
3418
|
return /* @__PURE__ */ jsxs(
|
|
3409
3419
|
"div",
|
|
3410
3420
|
{
|
|
@@ -3455,6 +3465,29 @@ function TravellerFormInviteEmail({
|
|
|
3455
3465
|
}
|
|
3456
3466
|
)
|
|
3457
3467
|
] }, i)) }),
|
|
3468
|
+
tripDetails && /* @__PURE__ */ jsxs("div", { style: {
|
|
3469
|
+
backgroundColor: "#f8fafc",
|
|
3470
|
+
border: "1px solid #e2e8f0",
|
|
3471
|
+
borderRadius: "8px",
|
|
3472
|
+
padding: "16px 20px",
|
|
3473
|
+
margin: "24px 0"
|
|
3474
|
+
}, children: [
|
|
3475
|
+
/* @__PURE__ */ jsx("p", { style: { fontWeight: "600", margin: "0 0 12px 0", fontSize: "14px" }, children: (_a = tripDetailsLabels == null ? void 0 : tripDetailsLabels.title) != null ? _a : "\u{1F4DD} Trip details:" }),
|
|
3476
|
+
[
|
|
3477
|
+
[(_b = tripDetailsLabels == null ? void 0 : tripDetailsLabels.bookingNumber) != null ? _b : "Booking Number", tripDetails.bookingNumber],
|
|
3478
|
+
[(_c = tripDetailsLabels == null ? void 0 : tripDetailsLabels.adventure) != null ? _c : "Adventure", tripDetails.adventure],
|
|
3479
|
+
[(_d = tripDetailsLabels == null ? void 0 : tripDetailsLabels.startingDate) != null ? _d : "Starting Date", tripDetails.startingDate],
|
|
3480
|
+
...tripDetails.partner ? [[(_e = tripDetailsLabels == null ? void 0 : tripDetailsLabels.partner) != null ? _e : "Partner", tripDetails.partner]] : []
|
|
3481
|
+
].map(([label, value], i) => /* @__PURE__ */ jsxs("p", { style: { margin: "4px 0", fontSize: "13px" }, children: [
|
|
3482
|
+
/* @__PURE__ */ jsxs("strong", { children: [
|
|
3483
|
+
label,
|
|
3484
|
+
":"
|
|
3485
|
+
] }),
|
|
3486
|
+
" ",
|
|
3487
|
+
value
|
|
3488
|
+
] }, i))
|
|
3489
|
+
] }),
|
|
3490
|
+
bodyFooter && /* @__PURE__ */ jsx("p", { style: { fontSize: "14px", lineHeight: "1.6", margin: "0 0 16px" }, children: bodyFooter }),
|
|
3458
3491
|
/* @__PURE__ */ jsx(
|
|
3459
3492
|
"p",
|
|
3460
3493
|
{
|