@planetaexo/design-system 0.4.12 → 0.4.13

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
@@ -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
- declare function TravellerFormInviteEmail({ greeting, bodyIntro, bodyInstruction, links, ignoreNote, teamSignature, logoUrl, buttonLabel, className, }: TravellerFormInviteEmailProps): react_jsx_runtime.JSX.Element;
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
- declare function TravellerFormInviteEmail({ greeting, bodyIntro, bodyInstruction, links, ignoreNote, teamSignature, logoUrl, buttonLabel, className, }: TravellerFormInviteEmailProps): react_jsx_runtime.JSX.Element;
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
@@ -3403,8 +3403,12 @@ function TravellerFormInviteEmail({
3403
3403
  teamSignature,
3404
3404
  logoUrl,
3405
3405
  buttonLabel = "Preencher formul\xE1rio",
3406
- className
3406
+ className,
3407
+ tripDetails,
3408
+ tripDetailsLabels,
3409
+ bodyFooter
3407
3410
  }) {
3411
+ var _a, _b, _c, _d, _e;
3408
3412
  return /* @__PURE__ */ jsxs(
3409
3413
  "div",
3410
3414
  {
@@ -3455,6 +3459,29 @@ function TravellerFormInviteEmail({
3455
3459
  }
3456
3460
  )
3457
3461
  ] }, i)) }),
3462
+ tripDetails && /* @__PURE__ */ jsxs("div", { style: {
3463
+ backgroundColor: "#f8fafc",
3464
+ border: "1px solid #e2e8f0",
3465
+ borderRadius: "8px",
3466
+ padding: "16px 20px",
3467
+ margin: "24px 0"
3468
+ }, children: [
3469
+ /* @__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:" }),
3470
+ [
3471
+ [(_b = tripDetailsLabels == null ? void 0 : tripDetailsLabels.bookingNumber) != null ? _b : "Booking Number", tripDetails.bookingNumber],
3472
+ [(_c = tripDetailsLabels == null ? void 0 : tripDetailsLabels.adventure) != null ? _c : "Adventure", tripDetails.adventure],
3473
+ [(_d = tripDetailsLabels == null ? void 0 : tripDetailsLabels.startingDate) != null ? _d : "Starting Date", tripDetails.startingDate],
3474
+ ...tripDetails.partner ? [[(_e = tripDetailsLabels == null ? void 0 : tripDetailsLabels.partner) != null ? _e : "Partner", tripDetails.partner]] : []
3475
+ ].map(([label, value], i) => /* @__PURE__ */ jsxs("p", { style: { margin: "4px 0", fontSize: "13px" }, children: [
3476
+ /* @__PURE__ */ jsxs("strong", { children: [
3477
+ label,
3478
+ ":"
3479
+ ] }),
3480
+ " ",
3481
+ value
3482
+ ] }, i))
3483
+ ] }),
3484
+ bodyFooter && /* @__PURE__ */ jsx("p", { style: { fontSize: "14px", lineHeight: "1.6", margin: "0 0 16px" }, children: bodyFooter }),
3458
3485
  /* @__PURE__ */ jsx(
3459
3486
  "p",
3460
3487
  {