@planetaexo/design-system 0.41.0 → 0.43.0
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 +88 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +39 -4
- package/dist/index.d.ts +39 -4
- package/dist/index.js +88 -4
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -1094,8 +1094,12 @@ interface BookingSummaryRow {
|
|
|
1094
1094
|
valueColor?: string;
|
|
1095
1095
|
}
|
|
1096
1096
|
interface BookingSummaryProps {
|
|
1097
|
-
/**
|
|
1098
|
-
|
|
1097
|
+
/**
|
|
1098
|
+
* Heading do bloco (ex.: "Booking summary" ou "📝 Here's a quick summary of your booking:").
|
|
1099
|
+
* Opcional desde v0.38.0 — quando ausente/vazio, o consumer renderiza o heading externamente
|
|
1100
|
+
* (ex.: PaymentReceiptEmail injeta cards de aventura entre heading e tabela de totais).
|
|
1101
|
+
*/
|
|
1102
|
+
heading?: string;
|
|
1099
1103
|
/** Linhas do resumo. Cada par renderiza como (label | value) na tabela. */
|
|
1100
1104
|
rows: BookingSummaryRow[];
|
|
1101
1105
|
/**
|
|
@@ -1471,6 +1475,13 @@ declare function PartnerBookingCreatedEmail({ topNotice, partnerName, bookingNum
|
|
|
1471
1475
|
interface PaymentReceiptEmailLabels {
|
|
1472
1476
|
logoAlt?: string;
|
|
1473
1477
|
greeting?: (name: string) => string;
|
|
1478
|
+
/**
|
|
1479
|
+
* Frase de contexto exibida entre o greeting e o `receiptHeading`.
|
|
1480
|
+
* Vazio (`""`) ou ausente omite o parágrafo — comportamento default.
|
|
1481
|
+
* Usado pelo Payment Receipt para reforçar "pagamento confirmado"
|
|
1482
|
+
* em paridade com o Booking Confirmation Email.
|
|
1483
|
+
*/
|
|
1484
|
+
introMessage?: string;
|
|
1474
1485
|
receiptHeading?: string;
|
|
1475
1486
|
bookingNumberLabel?: string;
|
|
1476
1487
|
paymentMethodLabel?: string;
|
|
@@ -1489,6 +1500,23 @@ interface PaymentReceiptEmailLabels {
|
|
|
1489
1500
|
closingMessage?: string;
|
|
1490
1501
|
teamSignature?: string;
|
|
1491
1502
|
}
|
|
1503
|
+
interface PaymentReceiptAdventureLineItem {
|
|
1504
|
+
/** Texto do lado esquerdo da linha (ex.: "R$ 1.500,00 (Adults) × 2"). */
|
|
1505
|
+
label: string;
|
|
1506
|
+
/** Total formatado da linha (ex.: "R$ 3.000,00"). */
|
|
1507
|
+
price: string;
|
|
1508
|
+
}
|
|
1509
|
+
/**
|
|
1510
|
+
* Aventura exibida no bloco "Booking summary" do Payment Receipt — versão enxuta
|
|
1511
|
+
* (nome + line items), distinta da `ConfirmationAdventure` do Booking Payment
|
|
1512
|
+
* Confirmation (que carrega imagem, viajantes, included/notIncluded, etc.).
|
|
1513
|
+
*
|
|
1514
|
+
* Spec payment-receipt-intro-and-adventure-items.
|
|
1515
|
+
*/
|
|
1516
|
+
interface PaymentReceiptAdventure {
|
|
1517
|
+
name: string;
|
|
1518
|
+
lineItems?: PaymentReceiptAdventureLineItem[];
|
|
1519
|
+
}
|
|
1492
1520
|
interface PaymentReceiptEmailProps {
|
|
1493
1521
|
/** Nome do destinatário (ex.: "Maria"). */
|
|
1494
1522
|
recipientName: string;
|
|
@@ -1516,6 +1544,13 @@ interface PaymentReceiptEmailProps {
|
|
|
1516
1544
|
balanceDueDate?: string;
|
|
1517
1545
|
/** Sinal: "totalPaid >= total - epsilon". Quando true, exibe banner verde. */
|
|
1518
1546
|
isPaidInFull: boolean;
|
|
1547
|
+
/**
|
|
1548
|
+
* Itens de aventura exibidos no bloco "Booking summary" (cards com nome +
|
|
1549
|
+
* tabela `label/price`). Quando vazio/undefined, a seção é omitida e o
|
|
1550
|
+
* recibo mantém o layout legado (apenas tabela de totais). Spec
|
|
1551
|
+
* payment-receipt-intro-and-adventure-items.
|
|
1552
|
+
*/
|
|
1553
|
+
adventures?: PaymentReceiptAdventure[];
|
|
1519
1554
|
/** URL da logo. Default: data URI embutido no pacote (via EmailLogo). */
|
|
1520
1555
|
logoUrl?: string;
|
|
1521
1556
|
/** Optional label overrides for i18n. */
|
|
@@ -1523,7 +1558,7 @@ interface PaymentReceiptEmailProps {
|
|
|
1523
1558
|
/** className adicional no container. */
|
|
1524
1559
|
className?: string;
|
|
1525
1560
|
}
|
|
1526
|
-
declare function PaymentReceiptEmail({ recipientName, bookingNumber, paymentMethodLabel, paymentDate, amount, chargedAmount, statusLabel, travellers, totalOrderAmount, totalPaidCumulative, remainingBalance, balanceDueDate, isPaidInFull, logoUrl, labels, className, }: PaymentReceiptEmailProps): react_jsx_runtime.JSX.Element;
|
|
1561
|
+
declare function PaymentReceiptEmail({ recipientName, bookingNumber, paymentMethodLabel, paymentDate, amount, chargedAmount, statusLabel, travellers, totalOrderAmount, totalPaidCumulative, remainingBalance, balanceDueDate, isPaidInFull, adventures, logoUrl, labels, className, }: PaymentReceiptEmailProps): react_jsx_runtime.JSX.Element;
|
|
1527
1562
|
|
|
1528
1563
|
/**
|
|
1529
1564
|
* Variante do lembrete:
|
|
@@ -3178,4 +3213,4 @@ declare function LeadCapturePopup({ config: _config, }: {
|
|
|
3178
3213
|
config: LeadCapturePopupConfig;
|
|
3179
3214
|
}): react_jsx_runtime.JSX.Element | null;
|
|
3180
3215
|
|
|
3181
|
-
export { ActivityCard, type ActivityCardProps, type ActivityCardSize, AgentContactCard, type AgentContactCardProps, Alert, type AlertProps, type AlertVariant, BirthDateField, type BirthDateFieldProps, type BookingAdventure, BookingAdventureCard, type BookingAdventureCardLabels, type BookingAdventureCardLineItem, type BookingAdventureCardProps, type BookingAdventureCardSlots, type BookingAdventureCardTraveller, BookingConfirmedCard, type BookingConfirmedCardProps, type BookingContact, BookingCreatedEmail, type BookingCreatedEmailLabels, type BookingCreatedEmailProps, type BookingDepositInfo, BookingDetails, type BookingDetailsLabels, type BookingDetailsProps, BookingForm, type BookingFormProps, type BookingFormValues, BookingOtpEmail, type BookingOtpEmailProps, BookingPaymentConfirmationEmail, type BookingPaymentConfirmationEmailLabels, type BookingPaymentConfirmationEmailProps, BookingShell, type BookingShellProps, type BookingStatus, BookingSummary, type BookingSummaryLineItem, type BookingSummaryProps, type BookingSummaryRow, type BookingTraveller, Button, type ButtonProps, COUNTRIES, type ConfirmationAdventure, type ConfirmationDepositInfo, type ConfirmationLineItem, type ConfirmationTraveller, CounterField, type CounterFieldProps, type CountryOption, CountrySearchField, type CountrySearchFieldProps, type CurrencyEstimate, DEFAULT_HEADER_LINKS, DEFAULT_LANGUAGES, DatePickerField, type DatePickerFieldProps, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, type EmailTokens, type FilterGroup, type FilterItem, FilterPanel, type FilterPanelProps, FloatingInput, type FloatingInputProps, FloatingSelect, type FloatingSelectProps, Itinerary, ItineraryDay, type ItineraryDayPhoto, type ItineraryDayPhotoLayout, type ItineraryDayProps, type ItineraryDaySpec, type ItineraryProps, type ItineraryRoute, type ItineraryStop, LOGO_PLANETAEXO_DATA_URI, LeadCapturePopup, type LeadCapturePopupConfig, MenuTrip, type MenuTripProps, type MenuTripSection, type MenuTripVariant, OTPCodeInput, type OTPCodeInputProps, Offer, OfferAdventureCard, type OfferAdventureItem, type OfferAgentInfo, type OfferConfirmedState, type OfferDepositInfo, type OfferLabels, type OfferOptionalItem, type OfferProps, type OfferSummaryLineItem, type PartnerBookingCreatedAgentContactLinks, PartnerBookingCreatedEmail, type PartnerBookingCreatedEmailLabels, type PartnerBookingCreatedEmailProps, type PartnerConfirmationAgentContactLinks, PartnerConfirmationEmail, type PartnerConfirmationEmailExpectationRow, type PartnerConfirmationEmailLabels, type PartnerConfirmationEmailProps, PaymentAmountSelector, type PaymentAmountSelectorProps, PaymentDetailsBlock, type PaymentDetailsBlockFooterBanner, type PaymentDetailsBlockLabels, type PaymentDetailsBlockProps, type PaymentDetailsBlockRow, type PaymentMethodOption, PaymentMethodSelector, type PaymentMethodSelectorProps, PaymentModalShell, type PaymentModalShellProps, PaymentReceiptEmail, type PaymentReceiptEmailLabels, type PaymentReceiptEmailProps, type PaymentReminderAgentContactLinks, PaymentReminderEmail, type PaymentReminderEmailAdventure, type PaymentReminderEmailLabels, type PaymentReminderEmailLineItem, type PaymentReminderEmailProps, type PaymentReminderEmailVariantLabels, type PaymentReminderVariant, PhoneCountrySelect, PhotoGallery, type PhotoGalleryPhoto, type PhotoGalleryProps, type PhotoGalleryVariant, PricingTrip, type PricingTripProps, type PricingTripVariant, type RegistrationAdventure, type RegistrationBooking, type RegistrationEmergencyContactValue, type RegistrationField, type RegistrationFieldOption, type RegistrationFieldType, type RegistrationFieldValue, RegistrationForm, type RegistrationFormLabels, type RegistrationFormProps, type RegistrationFormValues, type RegistrationNameValue, type RegistrationPhoneValue, RegistrationProgressBar, type RegistrationProgressBarProps, type RegistrationProgressTone, type RegistrationReminderAdventureBlock, type RegistrationReminderAgentContactLinks, RegistrationReminderEmail, type RegistrationReminderEmailLabels, type RegistrationReminderEmailProps, type RegistrationReminderEmailVariantLabels, type RegistrationReminderIndividualAgentContactLinks, RegistrationReminderIndividualEmail, type RegistrationReminderIndividualEmailLabels, type RegistrationReminderIndividualEmailProps, type RegistrationReminderIndividualRoute, type RegistrationReminderIndividualSlug, type RegistrationReminderIndividualVariantLabels, type RegistrationReminderSlug, RegistrationSuccessCard, type RegistrationSuccessCardProps, type RegistrationTerms, type RegistrationTraveller, SiteHeader, type SiteHeaderLanguage, type SiteHeaderLink, type SiteHeaderProps, type SiteHeaderSubItem, type SiteHeaderVariant, type StripeAppearance, type SuggestedTraveller, TERMS_ACCEPT_KEY, TermsSection, type TermsSectionProps, ThemeToggle, Toast, type ToastProps, type ToastVariant, TransferDetailsBlock, type TransferDetailsBlockProps, type TravellerFormConfig, type TravellerFormData, TravellerFormInviteEmail, type TravellerFormInviteEmailLabels, type TravellerFormInviteEmailProps, type TravellerFormInviteLink, type TravellerFormLabels, TripCard, type TripCardCta, type TripCardProps, type TripCardSize, type TripCardStatus, type TripDuration, type TripFaq, TripHeader, type TripHeaderProps, type TripHighlight, type TripInfoGroup, type TripItineraryDay, type TripItineraryStep, type TripMeetingPoint, type TripOverviewHighlight, TripPage, type TripPageProps, type TripReview, type TripTrustpilotWidget, TrustpilotEmbed, type TrustpilotWidgetConfig, buttonVariants, cn, emailTokens, getStripeAppearance, itineraryDaySpecIcons, stripeAppearance, wrapEmailHtml };
|
|
3216
|
+
export { ActivityCard, type ActivityCardProps, type ActivityCardSize, AgentContactCard, type AgentContactCardProps, Alert, type AlertProps, type AlertVariant, BirthDateField, type BirthDateFieldProps, type BookingAdventure, BookingAdventureCard, type BookingAdventureCardLabels, type BookingAdventureCardLineItem, type BookingAdventureCardProps, type BookingAdventureCardSlots, type BookingAdventureCardTraveller, BookingConfirmedCard, type BookingConfirmedCardProps, type BookingContact, BookingCreatedEmail, type BookingCreatedEmailLabels, type BookingCreatedEmailProps, type BookingDepositInfo, BookingDetails, type BookingDetailsLabels, type BookingDetailsProps, BookingForm, type BookingFormProps, type BookingFormValues, BookingOtpEmail, type BookingOtpEmailProps, BookingPaymentConfirmationEmail, type BookingPaymentConfirmationEmailLabels, type BookingPaymentConfirmationEmailProps, BookingShell, type BookingShellProps, type BookingStatus, BookingSummary, type BookingSummaryLineItem, type BookingSummaryProps, type BookingSummaryRow, type BookingTraveller, Button, type ButtonProps, COUNTRIES, type ConfirmationAdventure, type ConfirmationDepositInfo, type ConfirmationLineItem, type ConfirmationTraveller, CounterField, type CounterFieldProps, type CountryOption, CountrySearchField, type CountrySearchFieldProps, type CurrencyEstimate, DEFAULT_HEADER_LINKS, DEFAULT_LANGUAGES, DatePickerField, type DatePickerFieldProps, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, type EmailTokens, type FilterGroup, type FilterItem, FilterPanel, type FilterPanelProps, FloatingInput, type FloatingInputProps, FloatingSelect, type FloatingSelectProps, Itinerary, ItineraryDay, type ItineraryDayPhoto, type ItineraryDayPhotoLayout, type ItineraryDayProps, type ItineraryDaySpec, type ItineraryProps, type ItineraryRoute, type ItineraryStop, LOGO_PLANETAEXO_DATA_URI, LeadCapturePopup, type LeadCapturePopupConfig, MenuTrip, type MenuTripProps, type MenuTripSection, type MenuTripVariant, OTPCodeInput, type OTPCodeInputProps, Offer, OfferAdventureCard, type OfferAdventureItem, type OfferAgentInfo, type OfferConfirmedState, type OfferDepositInfo, type OfferLabels, type OfferOptionalItem, type OfferProps, type OfferSummaryLineItem, type PartnerBookingCreatedAgentContactLinks, PartnerBookingCreatedEmail, type PartnerBookingCreatedEmailLabels, type PartnerBookingCreatedEmailProps, type PartnerConfirmationAgentContactLinks, PartnerConfirmationEmail, type PartnerConfirmationEmailExpectationRow, type PartnerConfirmationEmailLabels, type PartnerConfirmationEmailProps, PaymentAmountSelector, type PaymentAmountSelectorProps, PaymentDetailsBlock, type PaymentDetailsBlockFooterBanner, type PaymentDetailsBlockLabels, type PaymentDetailsBlockProps, type PaymentDetailsBlockRow, type PaymentMethodOption, PaymentMethodSelector, type PaymentMethodSelectorProps, PaymentModalShell, type PaymentModalShellProps, type PaymentReceiptAdventure, type PaymentReceiptAdventureLineItem, PaymentReceiptEmail, type PaymentReceiptEmailLabels, type PaymentReceiptEmailProps, type PaymentReminderAgentContactLinks, PaymentReminderEmail, type PaymentReminderEmailAdventure, type PaymentReminderEmailLabels, type PaymentReminderEmailLineItem, type PaymentReminderEmailProps, type PaymentReminderEmailVariantLabels, type PaymentReminderVariant, PhoneCountrySelect, PhotoGallery, type PhotoGalleryPhoto, type PhotoGalleryProps, type PhotoGalleryVariant, PricingTrip, type PricingTripProps, type PricingTripVariant, type RegistrationAdventure, type RegistrationBooking, type RegistrationEmergencyContactValue, type RegistrationField, type RegistrationFieldOption, type RegistrationFieldType, type RegistrationFieldValue, RegistrationForm, type RegistrationFormLabels, type RegistrationFormProps, type RegistrationFormValues, type RegistrationNameValue, type RegistrationPhoneValue, RegistrationProgressBar, type RegistrationProgressBarProps, type RegistrationProgressTone, type RegistrationReminderAdventureBlock, type RegistrationReminderAgentContactLinks, RegistrationReminderEmail, type RegistrationReminderEmailLabels, type RegistrationReminderEmailProps, type RegistrationReminderEmailVariantLabels, type RegistrationReminderIndividualAgentContactLinks, RegistrationReminderIndividualEmail, type RegistrationReminderIndividualEmailLabels, type RegistrationReminderIndividualEmailProps, type RegistrationReminderIndividualRoute, type RegistrationReminderIndividualSlug, type RegistrationReminderIndividualVariantLabels, type RegistrationReminderSlug, RegistrationSuccessCard, type RegistrationSuccessCardProps, type RegistrationTerms, type RegistrationTraveller, SiteHeader, type SiteHeaderLanguage, type SiteHeaderLink, type SiteHeaderProps, type SiteHeaderSubItem, type SiteHeaderVariant, type StripeAppearance, type SuggestedTraveller, TERMS_ACCEPT_KEY, TermsSection, type TermsSectionProps, ThemeToggle, Toast, type ToastProps, type ToastVariant, TransferDetailsBlock, type TransferDetailsBlockProps, type TravellerFormConfig, type TravellerFormData, TravellerFormInviteEmail, type TravellerFormInviteEmailLabels, type TravellerFormInviteEmailProps, type TravellerFormInviteLink, type TravellerFormLabels, TripCard, type TripCardCta, type TripCardProps, type TripCardSize, type TripCardStatus, type TripDuration, type TripFaq, TripHeader, type TripHeaderProps, type TripHighlight, type TripInfoGroup, type TripItineraryDay, type TripItineraryStep, type TripMeetingPoint, type TripOverviewHighlight, TripPage, type TripPageProps, type TripReview, type TripTrustpilotWidget, TrustpilotEmbed, type TrustpilotWidgetConfig, buttonVariants, cn, emailTokens, getStripeAppearance, itineraryDaySpecIcons, stripeAppearance, wrapEmailHtml };
|
package/dist/index.d.ts
CHANGED
|
@@ -1094,8 +1094,12 @@ interface BookingSummaryRow {
|
|
|
1094
1094
|
valueColor?: string;
|
|
1095
1095
|
}
|
|
1096
1096
|
interface BookingSummaryProps {
|
|
1097
|
-
/**
|
|
1098
|
-
|
|
1097
|
+
/**
|
|
1098
|
+
* Heading do bloco (ex.: "Booking summary" ou "📝 Here's a quick summary of your booking:").
|
|
1099
|
+
* Opcional desde v0.38.0 — quando ausente/vazio, o consumer renderiza o heading externamente
|
|
1100
|
+
* (ex.: PaymentReceiptEmail injeta cards de aventura entre heading e tabela de totais).
|
|
1101
|
+
*/
|
|
1102
|
+
heading?: string;
|
|
1099
1103
|
/** Linhas do resumo. Cada par renderiza como (label | value) na tabela. */
|
|
1100
1104
|
rows: BookingSummaryRow[];
|
|
1101
1105
|
/**
|
|
@@ -1471,6 +1475,13 @@ declare function PartnerBookingCreatedEmail({ topNotice, partnerName, bookingNum
|
|
|
1471
1475
|
interface PaymentReceiptEmailLabels {
|
|
1472
1476
|
logoAlt?: string;
|
|
1473
1477
|
greeting?: (name: string) => string;
|
|
1478
|
+
/**
|
|
1479
|
+
* Frase de contexto exibida entre o greeting e o `receiptHeading`.
|
|
1480
|
+
* Vazio (`""`) ou ausente omite o parágrafo — comportamento default.
|
|
1481
|
+
* Usado pelo Payment Receipt para reforçar "pagamento confirmado"
|
|
1482
|
+
* em paridade com o Booking Confirmation Email.
|
|
1483
|
+
*/
|
|
1484
|
+
introMessage?: string;
|
|
1474
1485
|
receiptHeading?: string;
|
|
1475
1486
|
bookingNumberLabel?: string;
|
|
1476
1487
|
paymentMethodLabel?: string;
|
|
@@ -1489,6 +1500,23 @@ interface PaymentReceiptEmailLabels {
|
|
|
1489
1500
|
closingMessage?: string;
|
|
1490
1501
|
teamSignature?: string;
|
|
1491
1502
|
}
|
|
1503
|
+
interface PaymentReceiptAdventureLineItem {
|
|
1504
|
+
/** Texto do lado esquerdo da linha (ex.: "R$ 1.500,00 (Adults) × 2"). */
|
|
1505
|
+
label: string;
|
|
1506
|
+
/** Total formatado da linha (ex.: "R$ 3.000,00"). */
|
|
1507
|
+
price: string;
|
|
1508
|
+
}
|
|
1509
|
+
/**
|
|
1510
|
+
* Aventura exibida no bloco "Booking summary" do Payment Receipt — versão enxuta
|
|
1511
|
+
* (nome + line items), distinta da `ConfirmationAdventure` do Booking Payment
|
|
1512
|
+
* Confirmation (que carrega imagem, viajantes, included/notIncluded, etc.).
|
|
1513
|
+
*
|
|
1514
|
+
* Spec payment-receipt-intro-and-adventure-items.
|
|
1515
|
+
*/
|
|
1516
|
+
interface PaymentReceiptAdventure {
|
|
1517
|
+
name: string;
|
|
1518
|
+
lineItems?: PaymentReceiptAdventureLineItem[];
|
|
1519
|
+
}
|
|
1492
1520
|
interface PaymentReceiptEmailProps {
|
|
1493
1521
|
/** Nome do destinatário (ex.: "Maria"). */
|
|
1494
1522
|
recipientName: string;
|
|
@@ -1516,6 +1544,13 @@ interface PaymentReceiptEmailProps {
|
|
|
1516
1544
|
balanceDueDate?: string;
|
|
1517
1545
|
/** Sinal: "totalPaid >= total - epsilon". Quando true, exibe banner verde. */
|
|
1518
1546
|
isPaidInFull: boolean;
|
|
1547
|
+
/**
|
|
1548
|
+
* Itens de aventura exibidos no bloco "Booking summary" (cards com nome +
|
|
1549
|
+
* tabela `label/price`). Quando vazio/undefined, a seção é omitida e o
|
|
1550
|
+
* recibo mantém o layout legado (apenas tabela de totais). Spec
|
|
1551
|
+
* payment-receipt-intro-and-adventure-items.
|
|
1552
|
+
*/
|
|
1553
|
+
adventures?: PaymentReceiptAdventure[];
|
|
1519
1554
|
/** URL da logo. Default: data URI embutido no pacote (via EmailLogo). */
|
|
1520
1555
|
logoUrl?: string;
|
|
1521
1556
|
/** Optional label overrides for i18n. */
|
|
@@ -1523,7 +1558,7 @@ interface PaymentReceiptEmailProps {
|
|
|
1523
1558
|
/** className adicional no container. */
|
|
1524
1559
|
className?: string;
|
|
1525
1560
|
}
|
|
1526
|
-
declare function PaymentReceiptEmail({ recipientName, bookingNumber, paymentMethodLabel, paymentDate, amount, chargedAmount, statusLabel, travellers, totalOrderAmount, totalPaidCumulative, remainingBalance, balanceDueDate, isPaidInFull, logoUrl, labels, className, }: PaymentReceiptEmailProps): react_jsx_runtime.JSX.Element;
|
|
1561
|
+
declare function PaymentReceiptEmail({ recipientName, bookingNumber, paymentMethodLabel, paymentDate, amount, chargedAmount, statusLabel, travellers, totalOrderAmount, totalPaidCumulative, remainingBalance, balanceDueDate, isPaidInFull, adventures, logoUrl, labels, className, }: PaymentReceiptEmailProps): react_jsx_runtime.JSX.Element;
|
|
1527
1562
|
|
|
1528
1563
|
/**
|
|
1529
1564
|
* Variante do lembrete:
|
|
@@ -3178,4 +3213,4 @@ declare function LeadCapturePopup({ config: _config, }: {
|
|
|
3178
3213
|
config: LeadCapturePopupConfig;
|
|
3179
3214
|
}): react_jsx_runtime.JSX.Element | null;
|
|
3180
3215
|
|
|
3181
|
-
export { ActivityCard, type ActivityCardProps, type ActivityCardSize, AgentContactCard, type AgentContactCardProps, Alert, type AlertProps, type AlertVariant, BirthDateField, type BirthDateFieldProps, type BookingAdventure, BookingAdventureCard, type BookingAdventureCardLabels, type BookingAdventureCardLineItem, type BookingAdventureCardProps, type BookingAdventureCardSlots, type BookingAdventureCardTraveller, BookingConfirmedCard, type BookingConfirmedCardProps, type BookingContact, BookingCreatedEmail, type BookingCreatedEmailLabels, type BookingCreatedEmailProps, type BookingDepositInfo, BookingDetails, type BookingDetailsLabels, type BookingDetailsProps, BookingForm, type BookingFormProps, type BookingFormValues, BookingOtpEmail, type BookingOtpEmailProps, BookingPaymentConfirmationEmail, type BookingPaymentConfirmationEmailLabels, type BookingPaymentConfirmationEmailProps, BookingShell, type BookingShellProps, type BookingStatus, BookingSummary, type BookingSummaryLineItem, type BookingSummaryProps, type BookingSummaryRow, type BookingTraveller, Button, type ButtonProps, COUNTRIES, type ConfirmationAdventure, type ConfirmationDepositInfo, type ConfirmationLineItem, type ConfirmationTraveller, CounterField, type CounterFieldProps, type CountryOption, CountrySearchField, type CountrySearchFieldProps, type CurrencyEstimate, DEFAULT_HEADER_LINKS, DEFAULT_LANGUAGES, DatePickerField, type DatePickerFieldProps, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, type EmailTokens, type FilterGroup, type FilterItem, FilterPanel, type FilterPanelProps, FloatingInput, type FloatingInputProps, FloatingSelect, type FloatingSelectProps, Itinerary, ItineraryDay, type ItineraryDayPhoto, type ItineraryDayPhotoLayout, type ItineraryDayProps, type ItineraryDaySpec, type ItineraryProps, type ItineraryRoute, type ItineraryStop, LOGO_PLANETAEXO_DATA_URI, LeadCapturePopup, type LeadCapturePopupConfig, MenuTrip, type MenuTripProps, type MenuTripSection, type MenuTripVariant, OTPCodeInput, type OTPCodeInputProps, Offer, OfferAdventureCard, type OfferAdventureItem, type OfferAgentInfo, type OfferConfirmedState, type OfferDepositInfo, type OfferLabels, type OfferOptionalItem, type OfferProps, type OfferSummaryLineItem, type PartnerBookingCreatedAgentContactLinks, PartnerBookingCreatedEmail, type PartnerBookingCreatedEmailLabels, type PartnerBookingCreatedEmailProps, type PartnerConfirmationAgentContactLinks, PartnerConfirmationEmail, type PartnerConfirmationEmailExpectationRow, type PartnerConfirmationEmailLabels, type PartnerConfirmationEmailProps, PaymentAmountSelector, type PaymentAmountSelectorProps, PaymentDetailsBlock, type PaymentDetailsBlockFooterBanner, type PaymentDetailsBlockLabels, type PaymentDetailsBlockProps, type PaymentDetailsBlockRow, type PaymentMethodOption, PaymentMethodSelector, type PaymentMethodSelectorProps, PaymentModalShell, type PaymentModalShellProps, PaymentReceiptEmail, type PaymentReceiptEmailLabels, type PaymentReceiptEmailProps, type PaymentReminderAgentContactLinks, PaymentReminderEmail, type PaymentReminderEmailAdventure, type PaymentReminderEmailLabels, type PaymentReminderEmailLineItem, type PaymentReminderEmailProps, type PaymentReminderEmailVariantLabels, type PaymentReminderVariant, PhoneCountrySelect, PhotoGallery, type PhotoGalleryPhoto, type PhotoGalleryProps, type PhotoGalleryVariant, PricingTrip, type PricingTripProps, type PricingTripVariant, type RegistrationAdventure, type RegistrationBooking, type RegistrationEmergencyContactValue, type RegistrationField, type RegistrationFieldOption, type RegistrationFieldType, type RegistrationFieldValue, RegistrationForm, type RegistrationFormLabels, type RegistrationFormProps, type RegistrationFormValues, type RegistrationNameValue, type RegistrationPhoneValue, RegistrationProgressBar, type RegistrationProgressBarProps, type RegistrationProgressTone, type RegistrationReminderAdventureBlock, type RegistrationReminderAgentContactLinks, RegistrationReminderEmail, type RegistrationReminderEmailLabels, type RegistrationReminderEmailProps, type RegistrationReminderEmailVariantLabels, type RegistrationReminderIndividualAgentContactLinks, RegistrationReminderIndividualEmail, type RegistrationReminderIndividualEmailLabels, type RegistrationReminderIndividualEmailProps, type RegistrationReminderIndividualRoute, type RegistrationReminderIndividualSlug, type RegistrationReminderIndividualVariantLabels, type RegistrationReminderSlug, RegistrationSuccessCard, type RegistrationSuccessCardProps, type RegistrationTerms, type RegistrationTraveller, SiteHeader, type SiteHeaderLanguage, type SiteHeaderLink, type SiteHeaderProps, type SiteHeaderSubItem, type SiteHeaderVariant, type StripeAppearance, type SuggestedTraveller, TERMS_ACCEPT_KEY, TermsSection, type TermsSectionProps, ThemeToggle, Toast, type ToastProps, type ToastVariant, TransferDetailsBlock, type TransferDetailsBlockProps, type TravellerFormConfig, type TravellerFormData, TravellerFormInviteEmail, type TravellerFormInviteEmailLabels, type TravellerFormInviteEmailProps, type TravellerFormInviteLink, type TravellerFormLabels, TripCard, type TripCardCta, type TripCardProps, type TripCardSize, type TripCardStatus, type TripDuration, type TripFaq, TripHeader, type TripHeaderProps, type TripHighlight, type TripInfoGroup, type TripItineraryDay, type TripItineraryStep, type TripMeetingPoint, type TripOverviewHighlight, TripPage, type TripPageProps, type TripReview, type TripTrustpilotWidget, TrustpilotEmbed, type TrustpilotWidgetConfig, buttonVariants, cn, emailTokens, getStripeAppearance, itineraryDaySpecIcons, stripeAppearance, wrapEmailHtml };
|
|
3216
|
+
export { ActivityCard, type ActivityCardProps, type ActivityCardSize, AgentContactCard, type AgentContactCardProps, Alert, type AlertProps, type AlertVariant, BirthDateField, type BirthDateFieldProps, type BookingAdventure, BookingAdventureCard, type BookingAdventureCardLabels, type BookingAdventureCardLineItem, type BookingAdventureCardProps, type BookingAdventureCardSlots, type BookingAdventureCardTraveller, BookingConfirmedCard, type BookingConfirmedCardProps, type BookingContact, BookingCreatedEmail, type BookingCreatedEmailLabels, type BookingCreatedEmailProps, type BookingDepositInfo, BookingDetails, type BookingDetailsLabels, type BookingDetailsProps, BookingForm, type BookingFormProps, type BookingFormValues, BookingOtpEmail, type BookingOtpEmailProps, BookingPaymentConfirmationEmail, type BookingPaymentConfirmationEmailLabels, type BookingPaymentConfirmationEmailProps, BookingShell, type BookingShellProps, type BookingStatus, BookingSummary, type BookingSummaryLineItem, type BookingSummaryProps, type BookingSummaryRow, type BookingTraveller, Button, type ButtonProps, COUNTRIES, type ConfirmationAdventure, type ConfirmationDepositInfo, type ConfirmationLineItem, type ConfirmationTraveller, CounterField, type CounterFieldProps, type CountryOption, CountrySearchField, type CountrySearchFieldProps, type CurrencyEstimate, DEFAULT_HEADER_LINKS, DEFAULT_LANGUAGES, DatePickerField, type DatePickerFieldProps, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, type EmailTokens, type FilterGroup, type FilterItem, FilterPanel, type FilterPanelProps, FloatingInput, type FloatingInputProps, FloatingSelect, type FloatingSelectProps, Itinerary, ItineraryDay, type ItineraryDayPhoto, type ItineraryDayPhotoLayout, type ItineraryDayProps, type ItineraryDaySpec, type ItineraryProps, type ItineraryRoute, type ItineraryStop, LOGO_PLANETAEXO_DATA_URI, LeadCapturePopup, type LeadCapturePopupConfig, MenuTrip, type MenuTripProps, type MenuTripSection, type MenuTripVariant, OTPCodeInput, type OTPCodeInputProps, Offer, OfferAdventureCard, type OfferAdventureItem, type OfferAgentInfo, type OfferConfirmedState, type OfferDepositInfo, type OfferLabels, type OfferOptionalItem, type OfferProps, type OfferSummaryLineItem, type PartnerBookingCreatedAgentContactLinks, PartnerBookingCreatedEmail, type PartnerBookingCreatedEmailLabels, type PartnerBookingCreatedEmailProps, type PartnerConfirmationAgentContactLinks, PartnerConfirmationEmail, type PartnerConfirmationEmailExpectationRow, type PartnerConfirmationEmailLabels, type PartnerConfirmationEmailProps, PaymentAmountSelector, type PaymentAmountSelectorProps, PaymentDetailsBlock, type PaymentDetailsBlockFooterBanner, type PaymentDetailsBlockLabels, type PaymentDetailsBlockProps, type PaymentDetailsBlockRow, type PaymentMethodOption, PaymentMethodSelector, type PaymentMethodSelectorProps, PaymentModalShell, type PaymentModalShellProps, type PaymentReceiptAdventure, type PaymentReceiptAdventureLineItem, PaymentReceiptEmail, type PaymentReceiptEmailLabels, type PaymentReceiptEmailProps, type PaymentReminderAgentContactLinks, PaymentReminderEmail, type PaymentReminderEmailAdventure, type PaymentReminderEmailLabels, type PaymentReminderEmailLineItem, type PaymentReminderEmailProps, type PaymentReminderEmailVariantLabels, type PaymentReminderVariant, PhoneCountrySelect, PhotoGallery, type PhotoGalleryPhoto, type PhotoGalleryProps, type PhotoGalleryVariant, PricingTrip, type PricingTripProps, type PricingTripVariant, type RegistrationAdventure, type RegistrationBooking, type RegistrationEmergencyContactValue, type RegistrationField, type RegistrationFieldOption, type RegistrationFieldType, type RegistrationFieldValue, RegistrationForm, type RegistrationFormLabels, type RegistrationFormProps, type RegistrationFormValues, type RegistrationNameValue, type RegistrationPhoneValue, RegistrationProgressBar, type RegistrationProgressBarProps, type RegistrationProgressTone, type RegistrationReminderAdventureBlock, type RegistrationReminderAgentContactLinks, RegistrationReminderEmail, type RegistrationReminderEmailLabels, type RegistrationReminderEmailProps, type RegistrationReminderEmailVariantLabels, type RegistrationReminderIndividualAgentContactLinks, RegistrationReminderIndividualEmail, type RegistrationReminderIndividualEmailLabels, type RegistrationReminderIndividualEmailProps, type RegistrationReminderIndividualRoute, type RegistrationReminderIndividualSlug, type RegistrationReminderIndividualVariantLabels, type RegistrationReminderSlug, RegistrationSuccessCard, type RegistrationSuccessCardProps, type RegistrationTerms, type RegistrationTraveller, SiteHeader, type SiteHeaderLanguage, type SiteHeaderLink, type SiteHeaderProps, type SiteHeaderSubItem, type SiteHeaderVariant, type StripeAppearance, type SuggestedTraveller, TERMS_ACCEPT_KEY, TermsSection, type TermsSectionProps, ThemeToggle, Toast, type ToastProps, type ToastVariant, TransferDetailsBlock, type TransferDetailsBlockProps, type TravellerFormConfig, type TravellerFormData, TravellerFormInviteEmail, type TravellerFormInviteEmailLabels, type TravellerFormInviteEmailProps, type TravellerFormInviteLink, type TravellerFormLabels, TripCard, type TripCardCta, type TripCardProps, type TripCardSize, type TripCardStatus, type TripDuration, type TripFaq, TripHeader, type TripHeaderProps, type TripHighlight, type TripInfoGroup, type TripItineraryDay, type TripItineraryStep, type TripMeetingPoint, type TripOverviewHighlight, TripPage, type TripPageProps, type TripReview, type TripTrustpilotWidget, TrustpilotEmbed, type TrustpilotWidgetConfig, buttonVariants, cn, emailTokens, getStripeAppearance, itineraryDaySpecIcons, stripeAppearance, wrapEmailHtml };
|
package/dist/index.js
CHANGED
|
@@ -4576,7 +4576,7 @@ function BookingAdventureCard({
|
|
|
4576
4576
|
function BookingSummary({ heading, rows, footer, className }) {
|
|
4577
4577
|
var _a, _b;
|
|
4578
4578
|
return /* @__PURE__ */ jsxs("div", { className, style: { marginBottom: "24px" }, children: [
|
|
4579
|
-
/* @__PURE__ */ jsx(
|
|
4579
|
+
heading && /* @__PURE__ */ jsx(
|
|
4580
4580
|
"p",
|
|
4581
4581
|
{
|
|
4582
4582
|
style: {
|
|
@@ -5813,7 +5813,7 @@ var DEFAULT_LABELS7 = {
|
|
|
5813
5813
|
expectationsHeading: "Travellers Expectations",
|
|
5814
5814
|
expectationsEmptyNote: "No expectations were collected for this adventure.",
|
|
5815
5815
|
expectationsEmptyAnswer: "\u2014",
|
|
5816
|
-
pdfNote: "The consolidated registration PDF is attached
|
|
5816
|
+
pdfNote: "The consolidated registration PDF is attached. Please review it carefully, as it contains important traveller information, including dietary restrictions, medical conditions, preferences, and other details that may help improve the guest experience and ensure proper preparation.",
|
|
5817
5817
|
closingAgent: (agentName, contact) => /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
5818
5818
|
"If you have any questions, your contact ",
|
|
5819
5819
|
agentName,
|
|
@@ -5961,7 +5961,21 @@ function PartnerConfirmationEmail({
|
|
|
5961
5961
|
}) })
|
|
5962
5962
|
}
|
|
5963
5963
|
) : /* @__PURE__ */ jsx("p", { style: { marginTop: 0, marginBottom: "24px", color: emailTokens.bodyText }, children: l.expectationsEmptyNote }),
|
|
5964
|
-
pdfAttached && hasText3(l.pdfNote) && /* @__PURE__ */ jsx(
|
|
5964
|
+
pdfAttached && hasText3(l.pdfNote) && /* @__PURE__ */ jsx(
|
|
5965
|
+
"div",
|
|
5966
|
+
{
|
|
5967
|
+
style: {
|
|
5968
|
+
padding: "12px 16px",
|
|
5969
|
+
borderRadius: 8,
|
|
5970
|
+
backgroundColor: "#fef3c7",
|
|
5971
|
+
color: "#78350f",
|
|
5972
|
+
fontSize: "14px",
|
|
5973
|
+
lineHeight: "1.6",
|
|
5974
|
+
marginBottom: "20px"
|
|
5975
|
+
},
|
|
5976
|
+
children: l.pdfNote
|
|
5977
|
+
}
|
|
5978
|
+
),
|
|
5965
5979
|
sectionDivider,
|
|
5966
5980
|
/* @__PURE__ */ jsx("p", { style: { marginBottom: "16px", fontSize: "14px", fontWeight: 700, color: emailTokens.bodyText }, children: (agent == null ? void 0 : agent.name) ? l.closingAgent(agent.name, {
|
|
5967
5981
|
whatsappUrl: agent.whatsappUrl,
|
|
@@ -6203,6 +6217,7 @@ function PartnerBookingCreatedEmail({
|
|
|
6203
6217
|
var DEFAULT_LABELS9 = {
|
|
6204
6218
|
logoAlt: "PlanetaEXO",
|
|
6205
6219
|
greeting: (name) => `Hi ${name},`,
|
|
6220
|
+
introMessage: "",
|
|
6206
6221
|
receiptHeading: "Payment receipt",
|
|
6207
6222
|
bookingNumberLabel: "Booking number",
|
|
6208
6223
|
paymentMethodLabel: "Payment method",
|
|
@@ -6235,6 +6250,7 @@ function PaymentReceiptEmail({
|
|
|
6235
6250
|
remainingBalance,
|
|
6236
6251
|
balanceDueDate,
|
|
6237
6252
|
isPaidInFull,
|
|
6253
|
+
adventures,
|
|
6238
6254
|
logoUrl,
|
|
6239
6255
|
labels,
|
|
6240
6256
|
className
|
|
@@ -6277,6 +6293,7 @@ function PaymentReceiptEmail({
|
|
|
6277
6293
|
children: [
|
|
6278
6294
|
/* @__PURE__ */ jsx(EmailLogo, { src: logoUrl, alt: l.logoAlt }),
|
|
6279
6295
|
/* @__PURE__ */ jsx("p", { style: { marginBottom: "16px" }, children: l.greeting(recipientName) }),
|
|
6296
|
+
l.introMessage && /* @__PURE__ */ jsx("p", { style: { marginBottom: "16px" }, children: l.introMessage }),
|
|
6280
6297
|
/* @__PURE__ */ jsx("p", { style: { marginBottom: "12px", fontWeight: 700, color: emailTokens.foreground, fontSize: "16px" }, children: l.receiptHeading }),
|
|
6281
6298
|
/* @__PURE__ */ jsx(
|
|
6282
6299
|
"div",
|
|
@@ -6296,10 +6313,77 @@ function PaymentReceiptEmail({
|
|
|
6296
6313
|
] }) })
|
|
6297
6314
|
}
|
|
6298
6315
|
),
|
|
6316
|
+
/* @__PURE__ */ jsx(
|
|
6317
|
+
"p",
|
|
6318
|
+
{
|
|
6319
|
+
style: {
|
|
6320
|
+
marginTop: 0,
|
|
6321
|
+
marginBottom: "20px",
|
|
6322
|
+
fontWeight: 700,
|
|
6323
|
+
color: emailTokens.foreground,
|
|
6324
|
+
fontSize: "18px",
|
|
6325
|
+
fontFamily: emailTokens.fontFamily
|
|
6326
|
+
},
|
|
6327
|
+
children: l.summaryHeading
|
|
6328
|
+
}
|
|
6329
|
+
),
|
|
6330
|
+
adventures && adventures.length > 0 && /* @__PURE__ */ jsx("div", { style: { marginBottom: "16px" }, children: adventures.map((adv, i) => /* @__PURE__ */ jsxs(
|
|
6331
|
+
"div",
|
|
6332
|
+
{
|
|
6333
|
+
style: {
|
|
6334
|
+
borderRadius: "12px",
|
|
6335
|
+
border: `1px solid ${emailTokens.border}`,
|
|
6336
|
+
overflow: "hidden",
|
|
6337
|
+
marginBottom: "12px"
|
|
6338
|
+
},
|
|
6339
|
+
children: [
|
|
6340
|
+
/* @__PURE__ */ jsx(
|
|
6341
|
+
"div",
|
|
6342
|
+
{
|
|
6343
|
+
style: {
|
|
6344
|
+
padding: "12px 20px",
|
|
6345
|
+
backgroundColor: emailTokens.muted,
|
|
6346
|
+
fontWeight: 600,
|
|
6347
|
+
color: emailTokens.foreground,
|
|
6348
|
+
fontSize: "14px"
|
|
6349
|
+
},
|
|
6350
|
+
children: adv.name
|
|
6351
|
+
}
|
|
6352
|
+
),
|
|
6353
|
+
adv.lineItems && adv.lineItems.length > 0 && /* @__PURE__ */ jsx("table", { style: { width: "100%", fontSize: "14px", borderCollapse: "collapse" }, children: /* @__PURE__ */ jsx("tbody", { children: adv.lineItems.map((li, j) => /* @__PURE__ */ jsxs("tr", { style: j > 0 ? { borderTop: `1px solid ${emailTokens.border}` } : {}, children: [
|
|
6354
|
+
/* @__PURE__ */ jsx(
|
|
6355
|
+
"td",
|
|
6356
|
+
{
|
|
6357
|
+
style: {
|
|
6358
|
+
padding: "10px 20px",
|
|
6359
|
+
color: emailTokens.mutedForeground,
|
|
6360
|
+
verticalAlign: "top"
|
|
6361
|
+
},
|
|
6362
|
+
children: li.label
|
|
6363
|
+
}
|
|
6364
|
+
),
|
|
6365
|
+
/* @__PURE__ */ jsx(
|
|
6366
|
+
"td",
|
|
6367
|
+
{
|
|
6368
|
+
style: {
|
|
6369
|
+
padding: "10px 20px",
|
|
6370
|
+
textAlign: "right",
|
|
6371
|
+
fontWeight: 500,
|
|
6372
|
+
color: emailTokens.foreground,
|
|
6373
|
+
verticalAlign: "top",
|
|
6374
|
+
whiteSpace: "nowrap"
|
|
6375
|
+
},
|
|
6376
|
+
children: li.price
|
|
6377
|
+
}
|
|
6378
|
+
)
|
|
6379
|
+
] }, j)) }) })
|
|
6380
|
+
]
|
|
6381
|
+
},
|
|
6382
|
+
i
|
|
6383
|
+
)) }),
|
|
6299
6384
|
/* @__PURE__ */ jsx(
|
|
6300
6385
|
BookingSummary,
|
|
6301
6386
|
{
|
|
6302
|
-
heading: l.summaryHeading,
|
|
6303
6387
|
rows: summaryRows,
|
|
6304
6388
|
footer: isPaidInFull ? {
|
|
6305
6389
|
text: l.paidInFullMessage,
|