@planetaexo/design-system 0.11.0 → 0.12.1
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 +171 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +52 -1
- package/dist/index.d.ts +52 -1
- package/dist/index.js +171 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -623,6 +623,57 @@ interface TravellerFormInviteEmailProps {
|
|
|
623
623
|
}
|
|
624
624
|
declare function TravellerFormInviteEmail({ greeting, bodyIntro, bodyInstruction, links, ignoreNote, teamSignature, logoUrl, buttonLabel, className, tripDetails, tripDetailsLabels, bodyFooter, }: TravellerFormInviteEmailProps): react_jsx_runtime.JSX.Element;
|
|
625
625
|
|
|
626
|
+
type BookingWelcomeNewSystemFormsStatus = "COMPLETO" | "INCOMPLETO" | "ZERADO" | "SEM_FORM";
|
|
627
|
+
interface BookingWelcomeNewSystemBookingItem {
|
|
628
|
+
/** ID interno da reserva (ex.: 1234) — exibido como #1234. */
|
|
629
|
+
bookingId: number;
|
|
630
|
+
/** Referência pública estável (ex.: "EXO-R-MS-1234"). Opcional. */
|
|
631
|
+
publicRef?: string | null;
|
|
632
|
+
/** Nome da aventura principal ou rótulo agregado (ex.: "+ 2 aventuras"). */
|
|
633
|
+
adventureName: string;
|
|
634
|
+
/** Data de início formatada na locale do contato. */
|
|
635
|
+
startDate: string;
|
|
636
|
+
/** Status de progresso dos formulários (computed via computeBookingFormsSummary). */
|
|
637
|
+
formsStatus: BookingWelcomeNewSystemFormsStatus;
|
|
638
|
+
/** Quantidade de formulários já completos. */
|
|
639
|
+
formsCompleted: number;
|
|
640
|
+
/** Total de formulários requeridos para a reserva. */
|
|
641
|
+
formsRequired: number;
|
|
642
|
+
/** URL pública para a página da reserva (ex.: /pt/b?bookingId=1234). */
|
|
643
|
+
bookingPublicUrl: string;
|
|
644
|
+
}
|
|
645
|
+
interface BookingWelcomeNewSystemEmailProps {
|
|
646
|
+
/** "all" (todas reservas com forms ok) ou "formsPending" (alguma reserva tem pendência). */
|
|
647
|
+
variant: "all" | "formsPending";
|
|
648
|
+
/** Saudação completa (ex.: "Olá Maria,"). */
|
|
649
|
+
greeting: string;
|
|
650
|
+
/** Parágrafo de abertura — varia conforme variant. */
|
|
651
|
+
introParagraph: string;
|
|
652
|
+
/** Cabeçalho da seção de reservas (ex.: "Suas reservas:"). */
|
|
653
|
+
bookingsHeading: string;
|
|
654
|
+
/** Lista de reservas do contato (1 ou mais). */
|
|
655
|
+
bookings: BookingWelcomeNewSystemBookingItem[];
|
|
656
|
+
/** Label "Formulários completos" (status COMPLETO). */
|
|
657
|
+
bookingFormsCompleteLabel: string;
|
|
658
|
+
/** Label callback "N de M formulários pendentes" (status INCOMPLETO/ZERADO). */
|
|
659
|
+
bookingFormsPendingLabel: (done: number, total: number) => string;
|
|
660
|
+
/** Label "Sem formulário necessário" (status SEM_FORM). */
|
|
661
|
+
bookingFormsNoneLabel?: string;
|
|
662
|
+
/** Texto do botão CTA por reserva (ex.: "Ver reserva"). */
|
|
663
|
+
ctaLabel: string;
|
|
664
|
+
/** Label "Código da reserva:" — exibido antes do #ID. */
|
|
665
|
+
bookingCodeLabel: string;
|
|
666
|
+
/** Linha de assinatura (ex.: "Equipa PlanetaEXO"). */
|
|
667
|
+
signatureLine: string;
|
|
668
|
+
/** Texto do rodapé (ex.: convite a responder ao e-mail). */
|
|
669
|
+
footerText?: string;
|
|
670
|
+
/** URL da logo. Default: data URI embutido. */
|
|
671
|
+
logoUrl?: string;
|
|
672
|
+
/** className extra no container (uso no styleguide). */
|
|
673
|
+
className?: string;
|
|
674
|
+
}
|
|
675
|
+
declare function BookingWelcomeNewSystemEmail({ greeting, introParagraph, bookingsHeading, bookings, bookingFormsCompleteLabel, bookingFormsPendingLabel, bookingFormsNoneLabel, ctaLabel, bookingCodeLabel, signatureLine, footerText, logoUrl, className, }: BookingWelcomeNewSystemEmailProps): react_jsx_runtime.JSX.Element;
|
|
676
|
+
|
|
626
677
|
interface BookingFormValues {
|
|
627
678
|
adults: number;
|
|
628
679
|
children: number;
|
|
@@ -1684,4 +1735,4 @@ declare function LeadCapturePopup({ config: _config, }: {
|
|
|
1684
1735
|
config: LeadCapturePopupConfig;
|
|
1685
1736
|
}): react_jsx_runtime.JSX.Element | null;
|
|
1686
1737
|
|
|
1687
|
-
export { ActivityCard, type ActivityCardProps, type ActivityCardSize, AgentContactCard, type AgentContactCardProps, Alert, type AlertProps, type AlertVariant, BirthDateField, type BirthDateFieldProps, type BookingAdventure, BookingConfirmation, BookingConfirmationEmail, type BookingConfirmationEmailLabels, type BookingConfirmationEmailProps, type BookingConfirmationLabels, type BookingConfirmationProps, BookingConfirmedCard, type BookingConfirmedCardProps, type BookingContact, type BookingDepositInfo, BookingDetails, type BookingDetailsProps, BookingForm, type BookingFormProps, type BookingFormValues, BookingOtpEmail, type BookingOtpEmailProps, BookingShell, type BookingShellProps, type BookingStatus, type BookingSummaryLineItem, type BookingTraveller, Button, type ButtonProps, COUNTRIES, type ConfirmationAdventure, type ConfirmationDepositInfo, type ConfirmationLineItem, type ConfirmationTraveller, CounterField, type CounterFieldProps, type CountryOption, CountrySearchField, type CountrySearchFieldProps, 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, 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 OfferDepositInfo, type OfferOptionalItem, type OfferProps, type OfferSummaryLineItem, PaymentAmountSelector, type PaymentAmountSelectorProps, type PaymentMethodOption, PaymentMethodSelector, type PaymentMethodSelectorProps, PaymentModalShell, type PaymentModalShellProps, PhoneCountrySelect, PhotoGallery, type PhotoGalleryPhoto, type PhotoGalleryProps, type PhotoGalleryVariant, type PricingOption, 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, 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, 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 TripItineraryStep, type TripMeetingPoint, TripPage, type TripPageProps, type TripPricingOption, type TripReview, buttonVariants, cn, emailTokens, getStripeAppearance, stripeAppearance, wrapEmailHtml };
|
|
1738
|
+
export { ActivityCard, type ActivityCardProps, type ActivityCardSize, AgentContactCard, type AgentContactCardProps, Alert, type AlertProps, type AlertVariant, BirthDateField, type BirthDateFieldProps, type BookingAdventure, BookingConfirmation, BookingConfirmationEmail, type BookingConfirmationEmailLabels, type BookingConfirmationEmailProps, type BookingConfirmationLabels, type BookingConfirmationProps, BookingConfirmedCard, type BookingConfirmedCardProps, type BookingContact, type BookingDepositInfo, BookingDetails, type BookingDetailsProps, BookingForm, type BookingFormProps, type BookingFormValues, BookingOtpEmail, type BookingOtpEmailProps, BookingShell, type BookingShellProps, type BookingStatus, type BookingSummaryLineItem, type BookingTraveller, type BookingWelcomeNewSystemBookingItem, BookingWelcomeNewSystemEmail, type BookingWelcomeNewSystemEmailProps, type BookingWelcomeNewSystemFormsStatus, Button, type ButtonProps, COUNTRIES, type ConfirmationAdventure, type ConfirmationDepositInfo, type ConfirmationLineItem, type ConfirmationTraveller, CounterField, type CounterFieldProps, type CountryOption, CountrySearchField, type CountrySearchFieldProps, 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, 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 OfferDepositInfo, type OfferOptionalItem, type OfferProps, type OfferSummaryLineItem, PaymentAmountSelector, type PaymentAmountSelectorProps, type PaymentMethodOption, PaymentMethodSelector, type PaymentMethodSelectorProps, PaymentModalShell, type PaymentModalShellProps, PhoneCountrySelect, PhotoGallery, type PhotoGalleryPhoto, type PhotoGalleryProps, type PhotoGalleryVariant, type PricingOption, 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, 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, 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 TripItineraryStep, type TripMeetingPoint, TripPage, type TripPageProps, type TripPricingOption, type TripReview, buttonVariants, cn, emailTokens, getStripeAppearance, stripeAppearance, wrapEmailHtml };
|
package/dist/index.d.ts
CHANGED
|
@@ -623,6 +623,57 @@ interface TravellerFormInviteEmailProps {
|
|
|
623
623
|
}
|
|
624
624
|
declare function TravellerFormInviteEmail({ greeting, bodyIntro, bodyInstruction, links, ignoreNote, teamSignature, logoUrl, buttonLabel, className, tripDetails, tripDetailsLabels, bodyFooter, }: TravellerFormInviteEmailProps): react_jsx_runtime.JSX.Element;
|
|
625
625
|
|
|
626
|
+
type BookingWelcomeNewSystemFormsStatus = "COMPLETO" | "INCOMPLETO" | "ZERADO" | "SEM_FORM";
|
|
627
|
+
interface BookingWelcomeNewSystemBookingItem {
|
|
628
|
+
/** ID interno da reserva (ex.: 1234) — exibido como #1234. */
|
|
629
|
+
bookingId: number;
|
|
630
|
+
/** Referência pública estável (ex.: "EXO-R-MS-1234"). Opcional. */
|
|
631
|
+
publicRef?: string | null;
|
|
632
|
+
/** Nome da aventura principal ou rótulo agregado (ex.: "+ 2 aventuras"). */
|
|
633
|
+
adventureName: string;
|
|
634
|
+
/** Data de início formatada na locale do contato. */
|
|
635
|
+
startDate: string;
|
|
636
|
+
/** Status de progresso dos formulários (computed via computeBookingFormsSummary). */
|
|
637
|
+
formsStatus: BookingWelcomeNewSystemFormsStatus;
|
|
638
|
+
/** Quantidade de formulários já completos. */
|
|
639
|
+
formsCompleted: number;
|
|
640
|
+
/** Total de formulários requeridos para a reserva. */
|
|
641
|
+
formsRequired: number;
|
|
642
|
+
/** URL pública para a página da reserva (ex.: /pt/b?bookingId=1234). */
|
|
643
|
+
bookingPublicUrl: string;
|
|
644
|
+
}
|
|
645
|
+
interface BookingWelcomeNewSystemEmailProps {
|
|
646
|
+
/** "all" (todas reservas com forms ok) ou "formsPending" (alguma reserva tem pendência). */
|
|
647
|
+
variant: "all" | "formsPending";
|
|
648
|
+
/** Saudação completa (ex.: "Olá Maria,"). */
|
|
649
|
+
greeting: string;
|
|
650
|
+
/** Parágrafo de abertura — varia conforme variant. */
|
|
651
|
+
introParagraph: string;
|
|
652
|
+
/** Cabeçalho da seção de reservas (ex.: "Suas reservas:"). */
|
|
653
|
+
bookingsHeading: string;
|
|
654
|
+
/** Lista de reservas do contato (1 ou mais). */
|
|
655
|
+
bookings: BookingWelcomeNewSystemBookingItem[];
|
|
656
|
+
/** Label "Formulários completos" (status COMPLETO). */
|
|
657
|
+
bookingFormsCompleteLabel: string;
|
|
658
|
+
/** Label callback "N de M formulários pendentes" (status INCOMPLETO/ZERADO). */
|
|
659
|
+
bookingFormsPendingLabel: (done: number, total: number) => string;
|
|
660
|
+
/** Label "Sem formulário necessário" (status SEM_FORM). */
|
|
661
|
+
bookingFormsNoneLabel?: string;
|
|
662
|
+
/** Texto do botão CTA por reserva (ex.: "Ver reserva"). */
|
|
663
|
+
ctaLabel: string;
|
|
664
|
+
/** Label "Código da reserva:" — exibido antes do #ID. */
|
|
665
|
+
bookingCodeLabel: string;
|
|
666
|
+
/** Linha de assinatura (ex.: "Equipa PlanetaEXO"). */
|
|
667
|
+
signatureLine: string;
|
|
668
|
+
/** Texto do rodapé (ex.: convite a responder ao e-mail). */
|
|
669
|
+
footerText?: string;
|
|
670
|
+
/** URL da logo. Default: data URI embutido. */
|
|
671
|
+
logoUrl?: string;
|
|
672
|
+
/** className extra no container (uso no styleguide). */
|
|
673
|
+
className?: string;
|
|
674
|
+
}
|
|
675
|
+
declare function BookingWelcomeNewSystemEmail({ greeting, introParagraph, bookingsHeading, bookings, bookingFormsCompleteLabel, bookingFormsPendingLabel, bookingFormsNoneLabel, ctaLabel, bookingCodeLabel, signatureLine, footerText, logoUrl, className, }: BookingWelcomeNewSystemEmailProps): react_jsx_runtime.JSX.Element;
|
|
676
|
+
|
|
626
677
|
interface BookingFormValues {
|
|
627
678
|
adults: number;
|
|
628
679
|
children: number;
|
|
@@ -1684,4 +1735,4 @@ declare function LeadCapturePopup({ config: _config, }: {
|
|
|
1684
1735
|
config: LeadCapturePopupConfig;
|
|
1685
1736
|
}): react_jsx_runtime.JSX.Element | null;
|
|
1686
1737
|
|
|
1687
|
-
export { ActivityCard, type ActivityCardProps, type ActivityCardSize, AgentContactCard, type AgentContactCardProps, Alert, type AlertProps, type AlertVariant, BirthDateField, type BirthDateFieldProps, type BookingAdventure, BookingConfirmation, BookingConfirmationEmail, type BookingConfirmationEmailLabels, type BookingConfirmationEmailProps, type BookingConfirmationLabels, type BookingConfirmationProps, BookingConfirmedCard, type BookingConfirmedCardProps, type BookingContact, type BookingDepositInfo, BookingDetails, type BookingDetailsProps, BookingForm, type BookingFormProps, type BookingFormValues, BookingOtpEmail, type BookingOtpEmailProps, BookingShell, type BookingShellProps, type BookingStatus, type BookingSummaryLineItem, type BookingTraveller, Button, type ButtonProps, COUNTRIES, type ConfirmationAdventure, type ConfirmationDepositInfo, type ConfirmationLineItem, type ConfirmationTraveller, CounterField, type CounterFieldProps, type CountryOption, CountrySearchField, type CountrySearchFieldProps, 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, 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 OfferDepositInfo, type OfferOptionalItem, type OfferProps, type OfferSummaryLineItem, PaymentAmountSelector, type PaymentAmountSelectorProps, type PaymentMethodOption, PaymentMethodSelector, type PaymentMethodSelectorProps, PaymentModalShell, type PaymentModalShellProps, PhoneCountrySelect, PhotoGallery, type PhotoGalleryPhoto, type PhotoGalleryProps, type PhotoGalleryVariant, type PricingOption, 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, 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, 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 TripItineraryStep, type TripMeetingPoint, TripPage, type TripPageProps, type TripPricingOption, type TripReview, buttonVariants, cn, emailTokens, getStripeAppearance, stripeAppearance, wrapEmailHtml };
|
|
1738
|
+
export { ActivityCard, type ActivityCardProps, type ActivityCardSize, AgentContactCard, type AgentContactCardProps, Alert, type AlertProps, type AlertVariant, BirthDateField, type BirthDateFieldProps, type BookingAdventure, BookingConfirmation, BookingConfirmationEmail, type BookingConfirmationEmailLabels, type BookingConfirmationEmailProps, type BookingConfirmationLabels, type BookingConfirmationProps, BookingConfirmedCard, type BookingConfirmedCardProps, type BookingContact, type BookingDepositInfo, BookingDetails, type BookingDetailsProps, BookingForm, type BookingFormProps, type BookingFormValues, BookingOtpEmail, type BookingOtpEmailProps, BookingShell, type BookingShellProps, type BookingStatus, type BookingSummaryLineItem, type BookingTraveller, type BookingWelcomeNewSystemBookingItem, BookingWelcomeNewSystemEmail, type BookingWelcomeNewSystemEmailProps, type BookingWelcomeNewSystemFormsStatus, Button, type ButtonProps, COUNTRIES, type ConfirmationAdventure, type ConfirmationDepositInfo, type ConfirmationLineItem, type ConfirmationTraveller, CounterField, type CounterFieldProps, type CountryOption, CountrySearchField, type CountrySearchFieldProps, 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, 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 OfferDepositInfo, type OfferOptionalItem, type OfferProps, type OfferSummaryLineItem, PaymentAmountSelector, type PaymentAmountSelectorProps, type PaymentMethodOption, PaymentMethodSelector, type PaymentMethodSelectorProps, PaymentModalShell, type PaymentModalShellProps, PhoneCountrySelect, PhotoGallery, type PhotoGalleryPhoto, type PhotoGalleryProps, type PhotoGalleryVariant, type PricingOption, 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, 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, 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 TripItineraryStep, type TripMeetingPoint, TripPage, type TripPageProps, type TripPricingOption, type TripReview, buttonVariants, cn, emailTokens, getStripeAppearance, stripeAppearance, wrapEmailHtml };
|
package/dist/index.js
CHANGED
|
@@ -4244,6 +4244,176 @@ function TravellerFormInviteEmail({
|
|
|
4244
4244
|
}
|
|
4245
4245
|
);
|
|
4246
4246
|
}
|
|
4247
|
+
function BookingWelcomeNewSystemEmail({
|
|
4248
|
+
greeting,
|
|
4249
|
+
introParagraph,
|
|
4250
|
+
bookingsHeading,
|
|
4251
|
+
bookings,
|
|
4252
|
+
bookingFormsCompleteLabel,
|
|
4253
|
+
bookingFormsPendingLabel,
|
|
4254
|
+
bookingFormsNoneLabel,
|
|
4255
|
+
ctaLabel,
|
|
4256
|
+
bookingCodeLabel,
|
|
4257
|
+
signatureLine,
|
|
4258
|
+
footerText,
|
|
4259
|
+
logoUrl,
|
|
4260
|
+
className
|
|
4261
|
+
}) {
|
|
4262
|
+
const ctaStyle = {
|
|
4263
|
+
display: "inline-block",
|
|
4264
|
+
backgroundColor: emailTokens.primary,
|
|
4265
|
+
color: emailTokens.primaryForeground,
|
|
4266
|
+
padding: "10px 20px",
|
|
4267
|
+
borderRadius: "6px",
|
|
4268
|
+
fontSize: "14px",
|
|
4269
|
+
fontWeight: 600,
|
|
4270
|
+
textDecoration: "none",
|
|
4271
|
+
fontFamily: emailTokens.fontFamily
|
|
4272
|
+
};
|
|
4273
|
+
return /* @__PURE__ */ jsxs(
|
|
4274
|
+
"div",
|
|
4275
|
+
{
|
|
4276
|
+
style: {
|
|
4277
|
+
fontFamily: emailTokens.fontFamily,
|
|
4278
|
+
color: emailTokens.foreground,
|
|
4279
|
+
maxWidth: "600px",
|
|
4280
|
+
margin: "0 auto",
|
|
4281
|
+
padding: "32px",
|
|
4282
|
+
border: `1px solid ${emailTokens.border}`,
|
|
4283
|
+
borderRadius: "12px",
|
|
4284
|
+
backgroundColor: emailTokens.white
|
|
4285
|
+
},
|
|
4286
|
+
className,
|
|
4287
|
+
children: [
|
|
4288
|
+
/* @__PURE__ */ jsx(EmailLogo, { src: logoUrl }),
|
|
4289
|
+
/* @__PURE__ */ jsx("p", { style: { fontSize: "16px", lineHeight: "1.5", margin: "0 0 12px" }, children: greeting }),
|
|
4290
|
+
/* @__PURE__ */ jsx("p", { style: { fontSize: "15px", lineHeight: "1.5", margin: "0 0 24px" }, children: introParagraph }),
|
|
4291
|
+
/* @__PURE__ */ jsx(
|
|
4292
|
+
"hr",
|
|
4293
|
+
{
|
|
4294
|
+
style: {
|
|
4295
|
+
border: "none",
|
|
4296
|
+
borderTop: `1px solid ${emailTokens.border}`,
|
|
4297
|
+
margin: "0 0 24px"
|
|
4298
|
+
}
|
|
4299
|
+
}
|
|
4300
|
+
),
|
|
4301
|
+
/* @__PURE__ */ jsx(
|
|
4302
|
+
"p",
|
|
4303
|
+
{
|
|
4304
|
+
style: {
|
|
4305
|
+
fontSize: "15px",
|
|
4306
|
+
fontWeight: 700,
|
|
4307
|
+
margin: "0 0 16px",
|
|
4308
|
+
color: emailTokens.foreground
|
|
4309
|
+
},
|
|
4310
|
+
children: bookingsHeading
|
|
4311
|
+
}
|
|
4312
|
+
),
|
|
4313
|
+
/* @__PURE__ */ jsx("ul", { style: { listStyle: "none", padding: 0, margin: "0 0 24px" }, children: bookings.map((b) => {
|
|
4314
|
+
const statusLine = b.formsStatus === "COMPLETO" ? bookingFormsCompleteLabel : b.formsStatus === "SEM_FORM" ? bookingFormsNoneLabel != null ? bookingFormsNoneLabel : "" : bookingFormsPendingLabel(b.formsCompleted, b.formsRequired);
|
|
4315
|
+
const statusIcon = b.formsStatus === "COMPLETO" ? "\u2713" : b.formsStatus === "SEM_FORM" ? "" : "\u26A0";
|
|
4316
|
+
const statusColor = b.formsStatus === "COMPLETO" ? emailTokens.green : b.formsStatus === "SEM_FORM" ? emailTokens.mutedForeground : emailTokens.destructive;
|
|
4317
|
+
return /* @__PURE__ */ jsxs(
|
|
4318
|
+
"li",
|
|
4319
|
+
{
|
|
4320
|
+
style: {
|
|
4321
|
+
marginBottom: "16px",
|
|
4322
|
+
padding: "16px",
|
|
4323
|
+
backgroundColor: emailTokens.muted,
|
|
4324
|
+
border: `1px solid ${emailTokens.border}`,
|
|
4325
|
+
borderRadius: "8px"
|
|
4326
|
+
},
|
|
4327
|
+
children: [
|
|
4328
|
+
/* @__PURE__ */ jsx(
|
|
4329
|
+
"p",
|
|
4330
|
+
{
|
|
4331
|
+
style: {
|
|
4332
|
+
fontSize: "15px",
|
|
4333
|
+
fontWeight: 600,
|
|
4334
|
+
margin: "0 0 6px",
|
|
4335
|
+
color: emailTokens.foreground
|
|
4336
|
+
},
|
|
4337
|
+
children: b.adventureName
|
|
4338
|
+
}
|
|
4339
|
+
),
|
|
4340
|
+
/* @__PURE__ */ jsx(
|
|
4341
|
+
"p",
|
|
4342
|
+
{
|
|
4343
|
+
style: {
|
|
4344
|
+
fontSize: "13px",
|
|
4345
|
+
color: emailTokens.mutedForeground,
|
|
4346
|
+
margin: "0 0 4px"
|
|
4347
|
+
},
|
|
4348
|
+
children: b.startDate
|
|
4349
|
+
}
|
|
4350
|
+
),
|
|
4351
|
+
/* @__PURE__ */ jsxs(
|
|
4352
|
+
"p",
|
|
4353
|
+
{
|
|
4354
|
+
style: {
|
|
4355
|
+
fontSize: "13px",
|
|
4356
|
+
color: emailTokens.mutedForeground,
|
|
4357
|
+
margin: "0 0 8px"
|
|
4358
|
+
},
|
|
4359
|
+
children: [
|
|
4360
|
+
/* @__PURE__ */ jsx("span", { style: { fontWeight: 600 }, children: bookingCodeLabel }),
|
|
4361
|
+
" ",
|
|
4362
|
+
/* @__PURE__ */ jsxs(
|
|
4363
|
+
"span",
|
|
4364
|
+
{
|
|
4365
|
+
style: {
|
|
4366
|
+
fontFamily: emailTokens.fontFamily,
|
|
4367
|
+
color: emailTokens.foreground,
|
|
4368
|
+
fontWeight: 600
|
|
4369
|
+
},
|
|
4370
|
+
children: [
|
|
4371
|
+
"#",
|
|
4372
|
+
b.bookingId
|
|
4373
|
+
]
|
|
4374
|
+
}
|
|
4375
|
+
)
|
|
4376
|
+
]
|
|
4377
|
+
}
|
|
4378
|
+
),
|
|
4379
|
+
statusLine && /* @__PURE__ */ jsxs(
|
|
4380
|
+
"p",
|
|
4381
|
+
{
|
|
4382
|
+
style: {
|
|
4383
|
+
fontSize: "13px",
|
|
4384
|
+
color: statusColor,
|
|
4385
|
+
margin: "0 0 12px",
|
|
4386
|
+
fontWeight: 500
|
|
4387
|
+
},
|
|
4388
|
+
children: [
|
|
4389
|
+
statusIcon ? `${statusIcon} ` : "",
|
|
4390
|
+
statusLine
|
|
4391
|
+
]
|
|
4392
|
+
}
|
|
4393
|
+
),
|
|
4394
|
+
/* @__PURE__ */ jsx("a", { href: b.bookingPublicUrl, style: ctaStyle, children: ctaLabel })
|
|
4395
|
+
]
|
|
4396
|
+
},
|
|
4397
|
+
b.bookingId
|
|
4398
|
+
);
|
|
4399
|
+
}) }),
|
|
4400
|
+
footerText && /* @__PURE__ */ jsx(
|
|
4401
|
+
"p",
|
|
4402
|
+
{
|
|
4403
|
+
style: {
|
|
4404
|
+
color: emailTokens.mutedForeground,
|
|
4405
|
+
fontSize: "13px",
|
|
4406
|
+
lineHeight: "1.5",
|
|
4407
|
+
margin: "0 0 16px"
|
|
4408
|
+
},
|
|
4409
|
+
children: footerText
|
|
4410
|
+
}
|
|
4411
|
+
),
|
|
4412
|
+
/* @__PURE__ */ jsx("p", { style: { fontSize: "14px", lineHeight: "1.5", margin: "0" }, children: signatureLine })
|
|
4413
|
+
]
|
|
4414
|
+
}
|
|
4415
|
+
);
|
|
4416
|
+
}
|
|
4247
4417
|
function CounterField({
|
|
4248
4418
|
label,
|
|
4249
4419
|
sublabel,
|
|
@@ -9455,6 +9625,6 @@ function LeadCapturePopup({
|
|
|
9455
9625
|
);
|
|
9456
9626
|
}
|
|
9457
9627
|
|
|
9458
|
-
export { ActivityCard, AgentContactCard, Alert, BirthDateField, BookingConfirmation, BookingConfirmationEmail, BookingConfirmedCard, BookingDetails, BookingForm, BookingOtpEmail, BookingShell, Button, COUNTRIES, CounterField, CountrySearchField, DEFAULT_HEADER_LINKS, DEFAULT_LANGUAGES, DatePickerField, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, FilterPanel, FloatingInput, FloatingSelect, Itinerary, LOGO_PLANETAEXO_DATA_URI, LeadCapturePopup, MenuTrip, OTPCodeInput, Offer, OfferAdventureCard, PaymentAmountSelector, PaymentMethodSelector, PaymentModalShell, PhoneCountrySelect, PhotoGallery, PricingTrip, RegistrationForm, RegistrationSuccessCard, SiteHeader, TERMS_ACCEPT_KEY, TermsSection, ThemeToggle, Toast, TravellerFormInviteEmail, TripCard, TripHeader, TripPage, buttonVariants, cn, emailTokens, getStripeAppearance, stripeAppearance, wrapEmailHtml };
|
|
9628
|
+
export { ActivityCard, AgentContactCard, Alert, BirthDateField, BookingConfirmation, BookingConfirmationEmail, BookingConfirmedCard, BookingDetails, BookingForm, BookingOtpEmail, BookingShell, BookingWelcomeNewSystemEmail, Button, COUNTRIES, CounterField, CountrySearchField, DEFAULT_HEADER_LINKS, DEFAULT_LANGUAGES, DatePickerField, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, FilterPanel, FloatingInput, FloatingSelect, Itinerary, LOGO_PLANETAEXO_DATA_URI, LeadCapturePopup, MenuTrip, OTPCodeInput, Offer, OfferAdventureCard, PaymentAmountSelector, PaymentMethodSelector, PaymentModalShell, PhoneCountrySelect, PhotoGallery, PricingTrip, RegistrationForm, RegistrationSuccessCard, SiteHeader, TERMS_ACCEPT_KEY, TermsSection, ThemeToggle, Toast, TravellerFormInviteEmail, TripCard, TripHeader, TripPage, buttonVariants, cn, emailTokens, getStripeAppearance, stripeAppearance, wrapEmailHtml };
|
|
9459
9629
|
//# sourceMappingURL=index.js.map
|
|
9460
9630
|
//# sourceMappingURL=index.js.map
|