@planetaexo/design-system 0.46.2 → 0.48.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 +159 -44
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +80 -3
- package/dist/index.d.ts +80 -3
- package/dist/index.js +158 -45
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -1856,7 +1856,13 @@ declare function BookingForm({ defaultValues, onSubmit, submitLabel, loading, sh
|
|
|
1856
1856
|
type RegistrationFieldType = "text" | "textarea" | "number" | "date" | "birthDate" | "select" | "radio" | "checkbox" | "name" | "phone" | "nationality" | "emergencyContact"
|
|
1857
1857
|
/** Texto longo semântico: a resposta do viajante a "expectativas" da aventura.
|
|
1858
1858
|
* Renderiza como `textarea`; identificado pelo tipo (não por id/label). */
|
|
1859
|
-
| "travellersExpectations"
|
|
1859
|
+
| "travellersExpectations"
|
|
1860
|
+
/** Tipos semânticos de endereço/identidade. Renderizam como FloatingInput com
|
|
1861
|
+
* `autoComplete` hint apropriado para acelerar preenchimento (D4/D7 do PRD
|
|
1862
|
+
* semantic-types-form-fields). `document` aplica máscara CPF condicional
|
|
1863
|
+
* (D3): só formata quando valor não tem letras e ≤11 dígitos — preserva
|
|
1864
|
+
* passport/internacional sem alteração. */
|
|
1865
|
+
| "city" | "address" | "addressLine2" | "postalCode" | "document";
|
|
1860
1866
|
interface RegistrationFieldOption {
|
|
1861
1867
|
value: string;
|
|
1862
1868
|
label: string;
|
|
@@ -2677,6 +2683,48 @@ interface TripSectionIcons {
|
|
|
2677
2683
|
weather?: React.ReactNode;
|
|
2678
2684
|
terms?: React.ReactNode;
|
|
2679
2685
|
}
|
|
2686
|
+
/**
|
|
2687
|
+
* i18n overrides for every section / accordion heading and floating-menu
|
|
2688
|
+
* entry rendered by `<TripPage>`. Any key left undefined falls back to the
|
|
2689
|
+
* built-in English string used today, so existing consumers don't need to
|
|
2690
|
+
* pass anything to keep working.
|
|
2691
|
+
*
|
|
2692
|
+
* The same key drives both the floating menu entry and the section/accordion
|
|
2693
|
+
* heading for that concept — they always match in the design, and giving
|
|
2694
|
+
* editors two slots to keep in sync would be a footgun.
|
|
2695
|
+
*/
|
|
2696
|
+
interface TripPageLabels {
|
|
2697
|
+
/** Section nav + section heading: "Overview" */
|
|
2698
|
+
overview?: string;
|
|
2699
|
+
/** Section nav + section heading: "Itinerary" */
|
|
2700
|
+
itinerary?: string;
|
|
2701
|
+
/** Section nav + section heading: "What is Included" */
|
|
2702
|
+
whatIsIncluded?: string;
|
|
2703
|
+
/** Section heading: "Not included" */
|
|
2704
|
+
notIncluded?: string;
|
|
2705
|
+
/** Section nav + accordion heading: "What to bring" */
|
|
2706
|
+
whatToBring?: string;
|
|
2707
|
+
/** Section nav + accordion heading: "When this tour operates" */
|
|
2708
|
+
whenItOperates?: string;
|
|
2709
|
+
/** Section nav + accordion heading: "Accommodation" */
|
|
2710
|
+
accommodation?: string;
|
|
2711
|
+
/** Accordion heading: "Food" */
|
|
2712
|
+
food?: string;
|
|
2713
|
+
/** Accordion heading: "Meeting point" */
|
|
2714
|
+
meetingPoint?: string;
|
|
2715
|
+
/** Accordion heading: "How to get there" */
|
|
2716
|
+
howToGetThere?: string;
|
|
2717
|
+
/** Accordion heading: "Weather" */
|
|
2718
|
+
weather?: string;
|
|
2719
|
+
/** Accordion heading: "Optional extras" */
|
|
2720
|
+
optionalExtras?: string;
|
|
2721
|
+
/** Section nav + accordion heading: "Terms & conditions" */
|
|
2722
|
+
terms?: string;
|
|
2723
|
+
/** Section nav + section heading: "FAQ" */
|
|
2724
|
+
faq?: string;
|
|
2725
|
+
/** Section nav + section heading: "What our guests think" */
|
|
2726
|
+
reviews?: string;
|
|
2727
|
+
}
|
|
2680
2728
|
|
|
2681
2729
|
interface TripPageProps {
|
|
2682
2730
|
title: string;
|
|
@@ -2738,6 +2786,12 @@ interface TripPageProps {
|
|
|
2738
2786
|
* editor-driven (e.g. an ACF Select on each section group).
|
|
2739
2787
|
*/
|
|
2740
2788
|
sectionIcons?: TripSectionIcons;
|
|
2789
|
+
/**
|
|
2790
|
+
* i18n overrides for every section/accordion heading and floating-menu
|
|
2791
|
+
* entry. Any key left undefined falls back to the built-in English
|
|
2792
|
+
* string, so existing callers don't need to pass anything.
|
|
2793
|
+
*/
|
|
2794
|
+
labels?: TripPageLabels;
|
|
2741
2795
|
reviews?: TripReview[];
|
|
2742
2796
|
/** When provided, replaces the manual `reviews` block with a Trustpilot widget. */
|
|
2743
2797
|
trustpilot?: TripTrustpilotWidget;
|
|
@@ -2775,7 +2829,7 @@ interface TripPageProps {
|
|
|
2775
2829
|
features?: Record<string, boolean>;
|
|
2776
2830
|
className?: string;
|
|
2777
2831
|
}
|
|
2778
|
-
declare function TripPage({ title, tagline, destination, duration, images, videoUrl, breadcrumb, chips, highlights, howToGetThere, recommendedFor, overview, overviewHighlights, itinerary, itineraryDays, gallery, included, notIncluded, whatToBring, weather, optionalExtras, accommodation, whenItOperates, food, termsAndConditions, meetingPoints, meetingPoint, faqs, faqInitialCount, sectionIcons, reviews, trustpilot, trustpilotMini, trustpilotHero, priceFrom, currency, season, departureTimes, benefits, currencyEstimates, priceInfo, onBook, bookLabel, siteHeader, uiVariant, features, className, }: TripPageProps): react_jsx_runtime.JSX.Element;
|
|
2832
|
+
declare function TripPage({ title, tagline, destination, duration, images, videoUrl, breadcrumb, chips, highlights, howToGetThere, recommendedFor, overview, overviewHighlights, itinerary, itineraryDays, gallery, included, notIncluded, whatToBring, weather, optionalExtras, accommodation, whenItOperates, food, termsAndConditions, meetingPoints, meetingPoint, faqs, faqInitialCount, sectionIcons, labels, reviews, trustpilot, trustpilotMini, trustpilotHero, priceFrom, currency, season, departureTimes, benefits, currencyEstimates, priceInfo, onBook, bookLabel, siteHeader, uiVariant, features, className, }: TripPageProps): react_jsx_runtime.JSX.Element;
|
|
2779
2833
|
|
|
2780
2834
|
type ActivityCardSize = "sm" | "md" | "lg";
|
|
2781
2835
|
interface ActivityCardProps {
|
|
@@ -3140,6 +3194,29 @@ type StripeAppearance = typeof LIGHT;
|
|
|
3140
3194
|
|
|
3141
3195
|
declare function cn(...inputs: ClassValue[]): string;
|
|
3142
3196
|
|
|
3197
|
+
/**
|
|
3198
|
+
* formatCpf — formata um CPF brasileiro aplicando máscara `XXX.XXX.XXX-XX`.
|
|
3199
|
+
*
|
|
3200
|
+
* Idempotente: faz strip de caracteres não-numéricos antes de reformatar.
|
|
3201
|
+
* Aceita até 11 dígitos; truncamento via `slice(0, 11)` para evitar overflow.
|
|
3202
|
+
*/
|
|
3203
|
+
declare function formatCpf(value: string): string;
|
|
3204
|
+
/**
|
|
3205
|
+
* validateCpf — verifica se uma string é um CPF brasileiro válido conforme
|
|
3206
|
+
* algoritmo de dígito verificador.
|
|
3207
|
+
*
|
|
3208
|
+
* Critérios:
|
|
3209
|
+
* - Exatamente 11 dígitos (após strip de caracteres não-numéricos).
|
|
3210
|
+
* - Não pode ser sequência de dígitos iguais (`11111111111`, `22222222222`, …).
|
|
3211
|
+
* - Os dois dígitos verificadores precisam bater com o cálculo padrão.
|
|
3212
|
+
*
|
|
3213
|
+
* Usado pelo branch `document` do `FieldRenderer` em `RegistrationForm` para
|
|
3214
|
+
* decidir quando aplicar a máscara visual `formatCpf` — não para validar
|
|
3215
|
+
* obrigatoriedade do campo. Passaporte (com letras ou número diferente de
|
|
3216
|
+
* CPF) renderiza cru.
|
|
3217
|
+
*/
|
|
3218
|
+
declare function validateCpf(value: string): boolean;
|
|
3219
|
+
|
|
3143
3220
|
/**
|
|
3144
3221
|
* emailTokens — resolved design-token values for email components.
|
|
3145
3222
|
*
|
|
@@ -3248,4 +3325,4 @@ declare function LeadCapturePopup({ config: _config, }: {
|
|
|
3248
3325
|
config: LeadCapturePopupConfig;
|
|
3249
3326
|
}): react_jsx_runtime.JSX.Element | null;
|
|
3250
3327
|
|
|
3251
|
-
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 };
|
|
3328
|
+
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 TripPageLabels, type TripPageProps, type TripReview, type TripSectionIcons, type TripTrustpilotWidget, TrustpilotEmbed, type TrustpilotWidgetConfig, buttonVariants, cn, emailTokens, formatCpf, getStripeAppearance, itineraryDaySpecIcons, stripeAppearance, validateCpf, wrapEmailHtml };
|
package/dist/index.d.ts
CHANGED
|
@@ -1856,7 +1856,13 @@ declare function BookingForm({ defaultValues, onSubmit, submitLabel, loading, sh
|
|
|
1856
1856
|
type RegistrationFieldType = "text" | "textarea" | "number" | "date" | "birthDate" | "select" | "radio" | "checkbox" | "name" | "phone" | "nationality" | "emergencyContact"
|
|
1857
1857
|
/** Texto longo semântico: a resposta do viajante a "expectativas" da aventura.
|
|
1858
1858
|
* Renderiza como `textarea`; identificado pelo tipo (não por id/label). */
|
|
1859
|
-
| "travellersExpectations"
|
|
1859
|
+
| "travellersExpectations"
|
|
1860
|
+
/** Tipos semânticos de endereço/identidade. Renderizam como FloatingInput com
|
|
1861
|
+
* `autoComplete` hint apropriado para acelerar preenchimento (D4/D7 do PRD
|
|
1862
|
+
* semantic-types-form-fields). `document` aplica máscara CPF condicional
|
|
1863
|
+
* (D3): só formata quando valor não tem letras e ≤11 dígitos — preserva
|
|
1864
|
+
* passport/internacional sem alteração. */
|
|
1865
|
+
| "city" | "address" | "addressLine2" | "postalCode" | "document";
|
|
1860
1866
|
interface RegistrationFieldOption {
|
|
1861
1867
|
value: string;
|
|
1862
1868
|
label: string;
|
|
@@ -2677,6 +2683,48 @@ interface TripSectionIcons {
|
|
|
2677
2683
|
weather?: React.ReactNode;
|
|
2678
2684
|
terms?: React.ReactNode;
|
|
2679
2685
|
}
|
|
2686
|
+
/**
|
|
2687
|
+
* i18n overrides for every section / accordion heading and floating-menu
|
|
2688
|
+
* entry rendered by `<TripPage>`. Any key left undefined falls back to the
|
|
2689
|
+
* built-in English string used today, so existing consumers don't need to
|
|
2690
|
+
* pass anything to keep working.
|
|
2691
|
+
*
|
|
2692
|
+
* The same key drives both the floating menu entry and the section/accordion
|
|
2693
|
+
* heading for that concept — they always match in the design, and giving
|
|
2694
|
+
* editors two slots to keep in sync would be a footgun.
|
|
2695
|
+
*/
|
|
2696
|
+
interface TripPageLabels {
|
|
2697
|
+
/** Section nav + section heading: "Overview" */
|
|
2698
|
+
overview?: string;
|
|
2699
|
+
/** Section nav + section heading: "Itinerary" */
|
|
2700
|
+
itinerary?: string;
|
|
2701
|
+
/** Section nav + section heading: "What is Included" */
|
|
2702
|
+
whatIsIncluded?: string;
|
|
2703
|
+
/** Section heading: "Not included" */
|
|
2704
|
+
notIncluded?: string;
|
|
2705
|
+
/** Section nav + accordion heading: "What to bring" */
|
|
2706
|
+
whatToBring?: string;
|
|
2707
|
+
/** Section nav + accordion heading: "When this tour operates" */
|
|
2708
|
+
whenItOperates?: string;
|
|
2709
|
+
/** Section nav + accordion heading: "Accommodation" */
|
|
2710
|
+
accommodation?: string;
|
|
2711
|
+
/** Accordion heading: "Food" */
|
|
2712
|
+
food?: string;
|
|
2713
|
+
/** Accordion heading: "Meeting point" */
|
|
2714
|
+
meetingPoint?: string;
|
|
2715
|
+
/** Accordion heading: "How to get there" */
|
|
2716
|
+
howToGetThere?: string;
|
|
2717
|
+
/** Accordion heading: "Weather" */
|
|
2718
|
+
weather?: string;
|
|
2719
|
+
/** Accordion heading: "Optional extras" */
|
|
2720
|
+
optionalExtras?: string;
|
|
2721
|
+
/** Section nav + accordion heading: "Terms & conditions" */
|
|
2722
|
+
terms?: string;
|
|
2723
|
+
/** Section nav + section heading: "FAQ" */
|
|
2724
|
+
faq?: string;
|
|
2725
|
+
/** Section nav + section heading: "What our guests think" */
|
|
2726
|
+
reviews?: string;
|
|
2727
|
+
}
|
|
2680
2728
|
|
|
2681
2729
|
interface TripPageProps {
|
|
2682
2730
|
title: string;
|
|
@@ -2738,6 +2786,12 @@ interface TripPageProps {
|
|
|
2738
2786
|
* editor-driven (e.g. an ACF Select on each section group).
|
|
2739
2787
|
*/
|
|
2740
2788
|
sectionIcons?: TripSectionIcons;
|
|
2789
|
+
/**
|
|
2790
|
+
* i18n overrides for every section/accordion heading and floating-menu
|
|
2791
|
+
* entry. Any key left undefined falls back to the built-in English
|
|
2792
|
+
* string, so existing callers don't need to pass anything.
|
|
2793
|
+
*/
|
|
2794
|
+
labels?: TripPageLabels;
|
|
2741
2795
|
reviews?: TripReview[];
|
|
2742
2796
|
/** When provided, replaces the manual `reviews` block with a Trustpilot widget. */
|
|
2743
2797
|
trustpilot?: TripTrustpilotWidget;
|
|
@@ -2775,7 +2829,7 @@ interface TripPageProps {
|
|
|
2775
2829
|
features?: Record<string, boolean>;
|
|
2776
2830
|
className?: string;
|
|
2777
2831
|
}
|
|
2778
|
-
declare function TripPage({ title, tagline, destination, duration, images, videoUrl, breadcrumb, chips, highlights, howToGetThere, recommendedFor, overview, overviewHighlights, itinerary, itineraryDays, gallery, included, notIncluded, whatToBring, weather, optionalExtras, accommodation, whenItOperates, food, termsAndConditions, meetingPoints, meetingPoint, faqs, faqInitialCount, sectionIcons, reviews, trustpilot, trustpilotMini, trustpilotHero, priceFrom, currency, season, departureTimes, benefits, currencyEstimates, priceInfo, onBook, bookLabel, siteHeader, uiVariant, features, className, }: TripPageProps): react_jsx_runtime.JSX.Element;
|
|
2832
|
+
declare function TripPage({ title, tagline, destination, duration, images, videoUrl, breadcrumb, chips, highlights, howToGetThere, recommendedFor, overview, overviewHighlights, itinerary, itineraryDays, gallery, included, notIncluded, whatToBring, weather, optionalExtras, accommodation, whenItOperates, food, termsAndConditions, meetingPoints, meetingPoint, faqs, faqInitialCount, sectionIcons, labels, reviews, trustpilot, trustpilotMini, trustpilotHero, priceFrom, currency, season, departureTimes, benefits, currencyEstimates, priceInfo, onBook, bookLabel, siteHeader, uiVariant, features, className, }: TripPageProps): react_jsx_runtime.JSX.Element;
|
|
2779
2833
|
|
|
2780
2834
|
type ActivityCardSize = "sm" | "md" | "lg";
|
|
2781
2835
|
interface ActivityCardProps {
|
|
@@ -3140,6 +3194,29 @@ type StripeAppearance = typeof LIGHT;
|
|
|
3140
3194
|
|
|
3141
3195
|
declare function cn(...inputs: ClassValue[]): string;
|
|
3142
3196
|
|
|
3197
|
+
/**
|
|
3198
|
+
* formatCpf — formata um CPF brasileiro aplicando máscara `XXX.XXX.XXX-XX`.
|
|
3199
|
+
*
|
|
3200
|
+
* Idempotente: faz strip de caracteres não-numéricos antes de reformatar.
|
|
3201
|
+
* Aceita até 11 dígitos; truncamento via `slice(0, 11)` para evitar overflow.
|
|
3202
|
+
*/
|
|
3203
|
+
declare function formatCpf(value: string): string;
|
|
3204
|
+
/**
|
|
3205
|
+
* validateCpf — verifica se uma string é um CPF brasileiro válido conforme
|
|
3206
|
+
* algoritmo de dígito verificador.
|
|
3207
|
+
*
|
|
3208
|
+
* Critérios:
|
|
3209
|
+
* - Exatamente 11 dígitos (após strip de caracteres não-numéricos).
|
|
3210
|
+
* - Não pode ser sequência de dígitos iguais (`11111111111`, `22222222222`, …).
|
|
3211
|
+
* - Os dois dígitos verificadores precisam bater com o cálculo padrão.
|
|
3212
|
+
*
|
|
3213
|
+
* Usado pelo branch `document` do `FieldRenderer` em `RegistrationForm` para
|
|
3214
|
+
* decidir quando aplicar a máscara visual `formatCpf` — não para validar
|
|
3215
|
+
* obrigatoriedade do campo. Passaporte (com letras ou número diferente de
|
|
3216
|
+
* CPF) renderiza cru.
|
|
3217
|
+
*/
|
|
3218
|
+
declare function validateCpf(value: string): boolean;
|
|
3219
|
+
|
|
3143
3220
|
/**
|
|
3144
3221
|
* emailTokens — resolved design-token values for email components.
|
|
3145
3222
|
*
|
|
@@ -3248,4 +3325,4 @@ declare function LeadCapturePopup({ config: _config, }: {
|
|
|
3248
3325
|
config: LeadCapturePopupConfig;
|
|
3249
3326
|
}): react_jsx_runtime.JSX.Element | null;
|
|
3250
3327
|
|
|
3251
|
-
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 };
|
|
3328
|
+
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 TripPageLabels, type TripPageProps, type TripReview, type TripSectionIcons, type TripTrustpilotWidget, TrustpilotEmbed, type TrustpilotWidgetConfig, buttonVariants, cn, emailTokens, formatCpf, getStripeAppearance, itineraryDaySpecIcons, stripeAppearance, validateCpf, wrapEmailHtml };
|