@planetaexo/design-system 0.80.0 → 0.89.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 +164 -23
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +55 -3
- package/dist/index.d.ts +55 -3
- package/dist/index.js +164 -24
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -4089,13 +4089,21 @@ interface TripPageProps {
|
|
|
4089
4089
|
* default PNGs (the defaults are large source images loaded eagerly).
|
|
4090
4090
|
*/
|
|
4091
4091
|
footerBadges?: SiteFooterBadge[];
|
|
4092
|
+
/**
|
|
4093
|
+
* Override the internal footer's content — e.g. the WP-editable Destinations
|
|
4094
|
+
* and Themes link columns (`destinations`, `themes`, `destinationsTitle`,
|
|
4095
|
+
* `themesTitle`, `destinationsMore`). Spread onto the internal `<SiteFooter>`,
|
|
4096
|
+
* so any `SiteFooterProps` field works; `footerBadges` still applies unless
|
|
4097
|
+
* `footer.badges` is also set. When omitted the design-system defaults render.
|
|
4098
|
+
*/
|
|
4099
|
+
footer?: SiteFooterProps;
|
|
4092
4100
|
/** Preset de layout (ilha WP / styleguide). @default v1 */
|
|
4093
4101
|
uiVariant?: "v1" | "v2";
|
|
4094
4102
|
/** Feature flags para ramos de UI sem duplicar componentes. */
|
|
4095
4103
|
features?: Record<string, boolean>;
|
|
4096
4104
|
className?: string;
|
|
4097
4105
|
}
|
|
4098
|
-
declare function TripPage({ title, tagline, destination, duration, groupSize, images, heroImageSrcSet, heroImageSizes, videoUrl, breadcrumb, chips, highlights, howToGetThere, recommendedFor, overview, overviewHighlights, itinerary, itineraryDays, gallery, galleryLightbox, included, notIncluded, whatToBring, weather, optionalExtras, accommodation, accommodationGallery, accommodationGalleryVariant, whenItOperates, food, foodGallery, foodGalleryVariant, termsAndConditions, meetingPoints, meetingPoint, faqs, faqInitialCount, sectionIcons, labels, reviews, trustpilot, trustpilotMini, trustpilotHero, priceFrom, currency, season, departureTimes, benefits, currencyEstimates, priceInfo, onBook, onBookingSubmit, bookingLoading, bookingDefaults, bookingLabels, bookLabel, fromLabel, perPersonLabel, siteHeader, footerBadges, uiVariant, features, className, }: TripPageProps): react_jsx_runtime.JSX.Element;
|
|
4106
|
+
declare function TripPage({ title, tagline, destination, duration, groupSize, images, heroImageSrcSet, heroImageSizes, videoUrl, breadcrumb, chips, highlights, howToGetThere, recommendedFor, overview, overviewHighlights, itinerary, itineraryDays, gallery, galleryLightbox, included, notIncluded, whatToBring, weather, optionalExtras, accommodation, accommodationGallery, accommodationGalleryVariant, whenItOperates, food, foodGallery, foodGalleryVariant, termsAndConditions, meetingPoints, meetingPoint, faqs, faqInitialCount, sectionIcons, labels, reviews, trustpilot, trustpilotMini, trustpilotHero, priceFrom, currency, season, departureTimes, benefits, currencyEstimates, priceInfo, onBook, onBookingSubmit, bookingLoading, bookingDefaults, bookingLabels, bookLabel, fromLabel, perPersonLabel, siteHeader, footerBadges, footer, uiVariant, features, className, }: TripPageProps): react_jsx_runtime.JSX.Element;
|
|
4099
4107
|
|
|
4100
4108
|
interface Category2Trip extends TripCardProps {
|
|
4101
4109
|
/** Marca a trip como featured — sobe para o topo do grid principal. */
|
|
@@ -4161,6 +4169,13 @@ interface CategoryPage2Props {
|
|
|
4161
4169
|
* page swap in optimized/lazy badge nodes instead of the heavy default PNGs.
|
|
4162
4170
|
*/
|
|
4163
4171
|
footerBadges?: SiteFooterBadge[];
|
|
4172
|
+
/**
|
|
4173
|
+
* Override the internal footer's content — e.g. the WP-editable Destinations
|
|
4174
|
+
* and Themes link columns. Spread onto the internal `<SiteFooter>`, so any
|
|
4175
|
+
* `SiteFooterProps` field works; `footerBadges` still applies unless
|
|
4176
|
+
* `footer.badges` is also set. Defaults to the design-system footer.
|
|
4177
|
+
*/
|
|
4178
|
+
footer?: SiteFooterProps;
|
|
4164
4179
|
/**
|
|
4165
4180
|
* Optional node pinned to the top-right of the hero content (below the
|
|
4166
4181
|
* overlay header, aligned with the breadcrumb/title). Used e.g. for a
|
|
@@ -4232,7 +4247,7 @@ interface CategoryPage2Props {
|
|
|
4232
4247
|
filterLabels?: FilterPanelLabels;
|
|
4233
4248
|
className?: string;
|
|
4234
4249
|
}
|
|
4235
|
-
declare function CategoryPage2({ title, intro, heroImage, videoUrl, trustpilotMini, breadcrumb, siteHeader, heroRightSlot, popularTours, popularToursTitle, popularToursEyebrow, trips, tripsTitle, tripsEyebrow, filterGroups, sortOptions, defaultSort, tripsInitialCount, tripListingSlot, trustpilot, reviewsTitle, reviewsSubtitle, blogPosts, aboutTitle, aboutContent, blogIntro, travelGuideHref, travelGuideLabel, blogPostsTitle, blogPostsViewAllHref, faqs, faqsTitle, faqInitialCount, gallery, galleryTitle, galleryLightbox, loadMoreLabel, showLessLabel, seeMoreLabel, viewAllPostsLabel, cardLabels, filterLabels, footerBadges, className, }: CategoryPage2Props): react_jsx_runtime.JSX.Element;
|
|
4250
|
+
declare function CategoryPage2({ title, intro, heroImage, videoUrl, trustpilotMini, breadcrumb, siteHeader, heroRightSlot, popularTours, popularToursTitle, popularToursEyebrow, trips, tripsTitle, tripsEyebrow, filterGroups, sortOptions, defaultSort, tripsInitialCount, tripListingSlot, trustpilot, reviewsTitle, reviewsSubtitle, blogPosts, aboutTitle, aboutContent, blogIntro, travelGuideHref, travelGuideLabel, blogPostsTitle, blogPostsViewAllHref, faqs, faqsTitle, faqInitialCount, gallery, galleryTitle, galleryLightbox, loadMoreLabel, showLessLabel, seeMoreLabel, viewAllPostsLabel, cardLabels, filterLabels, footerBadges, footer, className, }: CategoryPage2Props): react_jsx_runtime.JSX.Element;
|
|
4236
4251
|
|
|
4237
4252
|
type ActivityCardSize = "sm" | "md" | "lg";
|
|
4238
4253
|
interface ActivityCardProps {
|
|
@@ -5343,6 +5358,43 @@ interface NewHomeProps {
|
|
|
5343
5358
|
}
|
|
5344
5359
|
declare function NewHome({ hero, explorer, expeditions, popular, stats, usp, reviews, journal, cta, footer, className, }: NewHomeProps): react_jsx_runtime.JSX.Element;
|
|
5345
5360
|
|
|
5361
|
+
interface ReviewsSpotlightReview {
|
|
5362
|
+
quote: string;
|
|
5363
|
+
/** Optional attribution (e.g. a reviewer name). Omitted → no caption line. */
|
|
5364
|
+
author?: string;
|
|
5365
|
+
/** Optional location shown under the author (e.g. "Netherlands"). */
|
|
5366
|
+
location?: string;
|
|
5367
|
+
/** Filled stars out of 5. @default 5 */
|
|
5368
|
+
stars?: number;
|
|
5369
|
+
}
|
|
5370
|
+
interface ReviewsSpotlightLink {
|
|
5371
|
+
label: string;
|
|
5372
|
+
href: string;
|
|
5373
|
+
}
|
|
5374
|
+
interface ReviewsSpotlightProps {
|
|
5375
|
+
/** Small uppercase kicker above the quote. */
|
|
5376
|
+
eyebrow?: string;
|
|
5377
|
+
/**
|
|
5378
|
+
* Section heading. Rendered visually hidden (`sr-only`) so the band keeps a
|
|
5379
|
+
* real `<h2>` for document outline / SEO without competing with the quote.
|
|
5380
|
+
*/
|
|
5381
|
+
title: string;
|
|
5382
|
+
/** Optional "Read all on Trustpilot" style link below the dots. */
|
|
5383
|
+
link?: ReviewsSpotlightLink;
|
|
5384
|
+
/** Testimonials cycled through, one at a time. */
|
|
5385
|
+
items: ReviewsSpotlightReview[];
|
|
5386
|
+
/** Auto-advance interval in ms. @default 7000 */
|
|
5387
|
+
intervalMs?: number;
|
|
5388
|
+
className?: string;
|
|
5389
|
+
}
|
|
5390
|
+
/**
|
|
5391
|
+
* ReviewsSpotlight — a single rotating testimonial. One large serif quote with
|
|
5392
|
+
* Trustpilot stars, auto-advancing through `items` with clickable dots and a
|
|
5393
|
+
* short crossfade. Honours `prefers-reduced-motion` (no auto-advance, instant
|
|
5394
|
+
* swap). The dark band matches the rest of {@link NewHome}.
|
|
5395
|
+
*/
|
|
5396
|
+
declare function ReviewsSpotlight({ eyebrow, title, link, items, intervalMs, className, }: ReviewsSpotlightProps): react_jsx_runtime.JSX.Element | null;
|
|
5397
|
+
|
|
5346
5398
|
interface SegmentItem {
|
|
5347
5399
|
/** Stable id returned by `onValueChange`. */
|
|
5348
5400
|
id: string;
|
|
@@ -5394,4 +5446,4 @@ interface SegmentedControlProps {
|
|
|
5394
5446
|
}
|
|
5395
5447
|
declare function SegmentedControl({ items, value, defaultValue, onValueChange, variant, size, fullWidth, collapse, "aria-label": ariaLabel, className, }: SegmentedControlProps): react_jsx_runtime.JSX.Element;
|
|
5396
5448
|
|
|
5397
|
-
export { type AccommodationRoomItem, ActivityCard, type ActivityCardProps, type ActivityCardSize, AdventureExplorer, type AdventureExplorerProps, AgentContactCard, type AgentContactCardProps, Alert, type AlertProps, type AlertVariant, AskExo, type AskExoProps, type AskExoSuggestion, BirthDateField, type BirthDateFieldProps, type BlogAuthor, type BlogBlock, type BlogCalloutBlock, BlogCard, type BlogCardCta, type BlogCardProps, type BlogCardSize, type BlogCollageBlock, type BlogHeadingBlock, type BlogImageBlock, BlogJournal, type BlogJournalFeature, type BlogJournalPost, type BlogJournalProps, type BlogListBlock, type BlogParagraphBlock, BlogPost, type BlogPostProps, type BlogQuoteBlock, type BlogTableBlock, type BlogTableColumn, type BookingAdventure, BookingAdventureCard, type BookingAdventureCardLabels, type BookingAdventureCardLineItem, type BookingAdventureCardProps, type BookingAdventureCardSlots, type BookingAdventureCardTraveller, type BookingCancellationAdventure, type BookingCancellationAgentContactLinks, BookingCancellationEmail, type BookingCancellationEmailLabels, type BookingCancellationEmailProps, 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, BookingPartialCancellationEmail, type BookingPartialCancellationEmailLabels, type BookingPartialCancellationEmailProps, BookingPaymentConfirmationEmail, type BookingPaymentConfirmationEmailLabels, type BookingPaymentConfirmationEmailProps, BookingShell, type BookingShellProps, type BookingStatus, BookingSummary, type BookingSummaryLineItem, type BookingSummaryProps, type BookingSummaryRoomItem, type BookingSummaryRow, type BookingTraveller, Button, type ButtonProps, COUNTRIES, CancellationForm, type CancellationFormAdventure, type CancellationFormLabels, type CancellationFormOption, type CancellationFormParticipant, type CancellationFormProps, type CancellationFormValues, type CancellationRequestReceivedAdventure, type CancellationRequestReceivedAgentContactLinks, CancellationRequestReceivedEmail, type CancellationRequestReceivedEmailLabels, type CancellationRequestReceivedEmailProps, type Category2BlogPost, type Category2Faq, type Category2SortOption, type Category2Trip, CategoryPage2, type CategoryPage2Props, Chip, type ChipProps, type ConfirmationAdventure, type ConfirmationDepositInfo, type ConfirmationLineItem, type ConfirmationTraveller, CounterField, type CounterFieldProps, type CountryOption, CountrySearchField, type CountrySearchFieldProps, CtaBanner, type CtaBannerCta, type CtaBannerProps, type CurrencyEstimate, DEFAULT_FOOTER_BADGES, DEFAULT_FOOTER_DESTINATIONS, DEFAULT_FOOTER_LANGUAGES, DEFAULT_FOOTER_LEGAL, DEFAULT_FOOTER_PAGES, DEFAULT_FOOTER_SOCIALS, DEFAULT_FOOTER_THEMES, DEFAULT_HEADER_LINKS, DEFAULT_LANGUAGES, STATUS_MAP as DEPARTURE_STATUS_MAP, DatePickerField, type DatePickerFieldProps, type DepartureStatus, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, type EmailTokens, ExoOrb, type ExoOrbProps, type ExploreCard, type ExploreTab, type FilterGroup, type FilterItem, FilterPanel, type FilterPanelProps, FloatingInput, type FloatingInputProps, FloatingSelect, type FloatingSelectProps, GroupProgressBar, type GroupProgressBarProps, GroupStatusBanner, type GroupStatusBannerProps, HomeHeader, type HomeHeaderCta, type HomeHeaderPressLogo, type HomeHeaderProps, type HomeHeaderRating, type HomeSiteHeaderConfig, 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, NewHome, type NewHomeExpeditions, type NewHomePopular, type NewHomePopularChip, type NewHomeProps, type NewHomeReview, type NewHomeReviews, type NewHomeSectionHead, type NewHomeSectionLink, type NewHomeStat, type NewHomeStats, NotificationEmail, type NotificationEmailCta, type NotificationEmailDetailItem, type NotificationEmailProps, type NotificationEmailRoster, type NotificationEmailRosterPerson, type NotificationEmailSummary, type NotificationEmailSummaryRow, OTPCodeInput, type OTPCodeInputProps, Offer, OfferAdventureCard, type OfferAdventureItem, type OfferAgentInfo, type OfferConfirmedState, type OfferDepositInfo, type OfferLabels, type OfferOptionalItem, type OfferProps, type OfferSummaryLineItem, type PartialCancellationAgentContactLinks, type PartialCancellationRemovedItem, type Participant, ParticipantCounter, type ParticipantCounterProps, ParticipantList, type ParticipantListProps, type PartnerBookingCreatedAgentContactLinks, PartnerBookingCreatedEmail, type PartnerBookingCreatedEmailLabels, type PartnerBookingCreatedEmailProps, type PartnerRegistrationCompleteAgentContactLinks, PartnerRegistrationCompleteEmail, type PartnerRegistrationCompleteEmailExpectationRow, type PartnerRegistrationCompleteEmailLabels, type PartnerRegistrationCompleteEmailProps, 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, PhotoTourProvider, type PhotoTourProviderProps, Picture, type PictureProps, type PopularSearchChip, PopularSearches, type PopularSearchesProps, PriceProgress, type PriceProgressProps, PricingMatrixCard, type PricingMatrixCardProps, type PricingTier, 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, type SegmentItem, SegmentedControl, type SegmentedControlProps, ShareWidget, type ShareWidgetProps, SiteFooter, type SiteFooterAddress, type SiteFooterBadge, type SiteFooterChip, type SiteFooterLanguage, type SiteFooterLink, type SiteFooterProps, type SiteFooterSocial, type SiteFooterVariant, SiteHeader, type SiteHeaderLanguage, type SiteHeaderLink, type SiteHeaderProps, type SiteHeaderSubItem, type SiteHeaderVariant, StatusBadge, type StatusBadgeProps, StickyBookingCard, type StickyBookingCardProps, 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 TripSiteHeaderConfig, type TripTrustpilotWidget, TrustpilotEmbed, type TrustpilotWidgetConfig, USP, USPBand, type USPBandCta, type USPBandProps, type USPItem, type USPProps, buttonVariants, chipVariants, cn, emailTokens, formatCpf, getStripeAppearance, itineraryDaySpecIcons, stripeAppearance, validateCpf, webpVariantUrl, wrapEmailHtml };
|
|
5449
|
+
export { type AccommodationRoomItem, ActivityCard, type ActivityCardProps, type ActivityCardSize, AdventureExplorer, type AdventureExplorerProps, AgentContactCard, type AgentContactCardProps, Alert, type AlertProps, type AlertVariant, AskExo, type AskExoProps, type AskExoSuggestion, BirthDateField, type BirthDateFieldProps, type BlogAuthor, type BlogBlock, type BlogCalloutBlock, BlogCard, type BlogCardCta, type BlogCardProps, type BlogCardSize, type BlogCollageBlock, type BlogHeadingBlock, type BlogImageBlock, BlogJournal, type BlogJournalFeature, type BlogJournalPost, type BlogJournalProps, type BlogListBlock, type BlogParagraphBlock, BlogPost, type BlogPostProps, type BlogQuoteBlock, type BlogTableBlock, type BlogTableColumn, type BookingAdventure, BookingAdventureCard, type BookingAdventureCardLabels, type BookingAdventureCardLineItem, type BookingAdventureCardProps, type BookingAdventureCardSlots, type BookingAdventureCardTraveller, type BookingCancellationAdventure, type BookingCancellationAgentContactLinks, BookingCancellationEmail, type BookingCancellationEmailLabels, type BookingCancellationEmailProps, 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, BookingPartialCancellationEmail, type BookingPartialCancellationEmailLabels, type BookingPartialCancellationEmailProps, BookingPaymentConfirmationEmail, type BookingPaymentConfirmationEmailLabels, type BookingPaymentConfirmationEmailProps, BookingShell, type BookingShellProps, type BookingStatus, BookingSummary, type BookingSummaryLineItem, type BookingSummaryProps, type BookingSummaryRoomItem, type BookingSummaryRow, type BookingTraveller, Button, type ButtonProps, COUNTRIES, CancellationForm, type CancellationFormAdventure, type CancellationFormLabels, type CancellationFormOption, type CancellationFormParticipant, type CancellationFormProps, type CancellationFormValues, type CancellationRequestReceivedAdventure, type CancellationRequestReceivedAgentContactLinks, CancellationRequestReceivedEmail, type CancellationRequestReceivedEmailLabels, type CancellationRequestReceivedEmailProps, type Category2BlogPost, type Category2Faq, type Category2SortOption, type Category2Trip, CategoryPage2, type CategoryPage2Props, Chip, type ChipProps, type ConfirmationAdventure, type ConfirmationDepositInfo, type ConfirmationLineItem, type ConfirmationTraveller, CounterField, type CounterFieldProps, type CountryOption, CountrySearchField, type CountrySearchFieldProps, CtaBanner, type CtaBannerCta, type CtaBannerProps, type CurrencyEstimate, DEFAULT_FOOTER_BADGES, DEFAULT_FOOTER_DESTINATIONS, DEFAULT_FOOTER_LANGUAGES, DEFAULT_FOOTER_LEGAL, DEFAULT_FOOTER_PAGES, DEFAULT_FOOTER_SOCIALS, DEFAULT_FOOTER_THEMES, DEFAULT_HEADER_LINKS, DEFAULT_LANGUAGES, STATUS_MAP as DEPARTURE_STATUS_MAP, DatePickerField, type DatePickerFieldProps, type DepartureStatus, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, type EmailTokens, ExoOrb, type ExoOrbProps, type ExploreCard, type ExploreTab, type FilterGroup, type FilterItem, FilterPanel, type FilterPanelProps, FloatingInput, type FloatingInputProps, FloatingSelect, type FloatingSelectProps, GroupProgressBar, type GroupProgressBarProps, GroupStatusBanner, type GroupStatusBannerProps, HomeHeader, type HomeHeaderCta, type HomeHeaderPressLogo, type HomeHeaderProps, type HomeHeaderRating, type HomeSiteHeaderConfig, 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, NewHome, type NewHomeExpeditions, type NewHomePopular, type NewHomePopularChip, type NewHomeProps, type NewHomeReview, type NewHomeReviews, type NewHomeSectionHead, type NewHomeSectionLink, type NewHomeStat, type NewHomeStats, NotificationEmail, type NotificationEmailCta, type NotificationEmailDetailItem, type NotificationEmailProps, type NotificationEmailRoster, type NotificationEmailRosterPerson, type NotificationEmailSummary, type NotificationEmailSummaryRow, OTPCodeInput, type OTPCodeInputProps, Offer, OfferAdventureCard, type OfferAdventureItem, type OfferAgentInfo, type OfferConfirmedState, type OfferDepositInfo, type OfferLabels, type OfferOptionalItem, type OfferProps, type OfferSummaryLineItem, type PartialCancellationAgentContactLinks, type PartialCancellationRemovedItem, type Participant, ParticipantCounter, type ParticipantCounterProps, ParticipantList, type ParticipantListProps, type PartnerBookingCreatedAgentContactLinks, PartnerBookingCreatedEmail, type PartnerBookingCreatedEmailLabels, type PartnerBookingCreatedEmailProps, type PartnerRegistrationCompleteAgentContactLinks, PartnerRegistrationCompleteEmail, type PartnerRegistrationCompleteEmailExpectationRow, type PartnerRegistrationCompleteEmailLabels, type PartnerRegistrationCompleteEmailProps, 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, PhotoTourProvider, type PhotoTourProviderProps, Picture, type PictureProps, type PopularSearchChip, PopularSearches, type PopularSearchesProps, PriceProgress, type PriceProgressProps, PricingMatrixCard, type PricingMatrixCardProps, type PricingTier, 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, ReviewsSpotlight, type ReviewsSpotlightLink, type ReviewsSpotlightProps, type ReviewsSpotlightReview, type SegmentItem, SegmentedControl, type SegmentedControlProps, ShareWidget, type ShareWidgetProps, SiteFooter, type SiteFooterAddress, type SiteFooterBadge, type SiteFooterChip, type SiteFooterLanguage, type SiteFooterLink, type SiteFooterProps, type SiteFooterSocial, type SiteFooterVariant, SiteHeader, type SiteHeaderLanguage, type SiteHeaderLink, type SiteHeaderProps, type SiteHeaderSubItem, type SiteHeaderVariant, StatusBadge, type StatusBadgeProps, StickyBookingCard, type StickyBookingCardProps, 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 TripSiteHeaderConfig, type TripTrustpilotWidget, TrustpilotEmbed, type TrustpilotWidgetConfig, USP, USPBand, type USPBandCta, type USPBandProps, type USPItem, type USPProps, buttonVariants, chipVariants, cn, emailTokens, formatCpf, getStripeAppearance, itineraryDaySpecIcons, stripeAppearance, validateCpf, webpVariantUrl, wrapEmailHtml };
|
package/dist/index.d.ts
CHANGED
|
@@ -4089,13 +4089,21 @@ interface TripPageProps {
|
|
|
4089
4089
|
* default PNGs (the defaults are large source images loaded eagerly).
|
|
4090
4090
|
*/
|
|
4091
4091
|
footerBadges?: SiteFooterBadge[];
|
|
4092
|
+
/**
|
|
4093
|
+
* Override the internal footer's content — e.g. the WP-editable Destinations
|
|
4094
|
+
* and Themes link columns (`destinations`, `themes`, `destinationsTitle`,
|
|
4095
|
+
* `themesTitle`, `destinationsMore`). Spread onto the internal `<SiteFooter>`,
|
|
4096
|
+
* so any `SiteFooterProps` field works; `footerBadges` still applies unless
|
|
4097
|
+
* `footer.badges` is also set. When omitted the design-system defaults render.
|
|
4098
|
+
*/
|
|
4099
|
+
footer?: SiteFooterProps;
|
|
4092
4100
|
/** Preset de layout (ilha WP / styleguide). @default v1 */
|
|
4093
4101
|
uiVariant?: "v1" | "v2";
|
|
4094
4102
|
/** Feature flags para ramos de UI sem duplicar componentes. */
|
|
4095
4103
|
features?: Record<string, boolean>;
|
|
4096
4104
|
className?: string;
|
|
4097
4105
|
}
|
|
4098
|
-
declare function TripPage({ title, tagline, destination, duration, groupSize, images, heroImageSrcSet, heroImageSizes, videoUrl, breadcrumb, chips, highlights, howToGetThere, recommendedFor, overview, overviewHighlights, itinerary, itineraryDays, gallery, galleryLightbox, included, notIncluded, whatToBring, weather, optionalExtras, accommodation, accommodationGallery, accommodationGalleryVariant, whenItOperates, food, foodGallery, foodGalleryVariant, termsAndConditions, meetingPoints, meetingPoint, faqs, faqInitialCount, sectionIcons, labels, reviews, trustpilot, trustpilotMini, trustpilotHero, priceFrom, currency, season, departureTimes, benefits, currencyEstimates, priceInfo, onBook, onBookingSubmit, bookingLoading, bookingDefaults, bookingLabels, bookLabel, fromLabel, perPersonLabel, siteHeader, footerBadges, uiVariant, features, className, }: TripPageProps): react_jsx_runtime.JSX.Element;
|
|
4106
|
+
declare function TripPage({ title, tagline, destination, duration, groupSize, images, heroImageSrcSet, heroImageSizes, videoUrl, breadcrumb, chips, highlights, howToGetThere, recommendedFor, overview, overviewHighlights, itinerary, itineraryDays, gallery, galleryLightbox, included, notIncluded, whatToBring, weather, optionalExtras, accommodation, accommodationGallery, accommodationGalleryVariant, whenItOperates, food, foodGallery, foodGalleryVariant, termsAndConditions, meetingPoints, meetingPoint, faqs, faqInitialCount, sectionIcons, labels, reviews, trustpilot, trustpilotMini, trustpilotHero, priceFrom, currency, season, departureTimes, benefits, currencyEstimates, priceInfo, onBook, onBookingSubmit, bookingLoading, bookingDefaults, bookingLabels, bookLabel, fromLabel, perPersonLabel, siteHeader, footerBadges, footer, uiVariant, features, className, }: TripPageProps): react_jsx_runtime.JSX.Element;
|
|
4099
4107
|
|
|
4100
4108
|
interface Category2Trip extends TripCardProps {
|
|
4101
4109
|
/** Marca a trip como featured — sobe para o topo do grid principal. */
|
|
@@ -4161,6 +4169,13 @@ interface CategoryPage2Props {
|
|
|
4161
4169
|
* page swap in optimized/lazy badge nodes instead of the heavy default PNGs.
|
|
4162
4170
|
*/
|
|
4163
4171
|
footerBadges?: SiteFooterBadge[];
|
|
4172
|
+
/**
|
|
4173
|
+
* Override the internal footer's content — e.g. the WP-editable Destinations
|
|
4174
|
+
* and Themes link columns. Spread onto the internal `<SiteFooter>`, so any
|
|
4175
|
+
* `SiteFooterProps` field works; `footerBadges` still applies unless
|
|
4176
|
+
* `footer.badges` is also set. Defaults to the design-system footer.
|
|
4177
|
+
*/
|
|
4178
|
+
footer?: SiteFooterProps;
|
|
4164
4179
|
/**
|
|
4165
4180
|
* Optional node pinned to the top-right of the hero content (below the
|
|
4166
4181
|
* overlay header, aligned with the breadcrumb/title). Used e.g. for a
|
|
@@ -4232,7 +4247,7 @@ interface CategoryPage2Props {
|
|
|
4232
4247
|
filterLabels?: FilterPanelLabels;
|
|
4233
4248
|
className?: string;
|
|
4234
4249
|
}
|
|
4235
|
-
declare function CategoryPage2({ title, intro, heroImage, videoUrl, trustpilotMini, breadcrumb, siteHeader, heroRightSlot, popularTours, popularToursTitle, popularToursEyebrow, trips, tripsTitle, tripsEyebrow, filterGroups, sortOptions, defaultSort, tripsInitialCount, tripListingSlot, trustpilot, reviewsTitle, reviewsSubtitle, blogPosts, aboutTitle, aboutContent, blogIntro, travelGuideHref, travelGuideLabel, blogPostsTitle, blogPostsViewAllHref, faqs, faqsTitle, faqInitialCount, gallery, galleryTitle, galleryLightbox, loadMoreLabel, showLessLabel, seeMoreLabel, viewAllPostsLabel, cardLabels, filterLabels, footerBadges, className, }: CategoryPage2Props): react_jsx_runtime.JSX.Element;
|
|
4250
|
+
declare function CategoryPage2({ title, intro, heroImage, videoUrl, trustpilotMini, breadcrumb, siteHeader, heroRightSlot, popularTours, popularToursTitle, popularToursEyebrow, trips, tripsTitle, tripsEyebrow, filterGroups, sortOptions, defaultSort, tripsInitialCount, tripListingSlot, trustpilot, reviewsTitle, reviewsSubtitle, blogPosts, aboutTitle, aboutContent, blogIntro, travelGuideHref, travelGuideLabel, blogPostsTitle, blogPostsViewAllHref, faqs, faqsTitle, faqInitialCount, gallery, galleryTitle, galleryLightbox, loadMoreLabel, showLessLabel, seeMoreLabel, viewAllPostsLabel, cardLabels, filterLabels, footerBadges, footer, className, }: CategoryPage2Props): react_jsx_runtime.JSX.Element;
|
|
4236
4251
|
|
|
4237
4252
|
type ActivityCardSize = "sm" | "md" | "lg";
|
|
4238
4253
|
interface ActivityCardProps {
|
|
@@ -5343,6 +5358,43 @@ interface NewHomeProps {
|
|
|
5343
5358
|
}
|
|
5344
5359
|
declare function NewHome({ hero, explorer, expeditions, popular, stats, usp, reviews, journal, cta, footer, className, }: NewHomeProps): react_jsx_runtime.JSX.Element;
|
|
5345
5360
|
|
|
5361
|
+
interface ReviewsSpotlightReview {
|
|
5362
|
+
quote: string;
|
|
5363
|
+
/** Optional attribution (e.g. a reviewer name). Omitted → no caption line. */
|
|
5364
|
+
author?: string;
|
|
5365
|
+
/** Optional location shown under the author (e.g. "Netherlands"). */
|
|
5366
|
+
location?: string;
|
|
5367
|
+
/** Filled stars out of 5. @default 5 */
|
|
5368
|
+
stars?: number;
|
|
5369
|
+
}
|
|
5370
|
+
interface ReviewsSpotlightLink {
|
|
5371
|
+
label: string;
|
|
5372
|
+
href: string;
|
|
5373
|
+
}
|
|
5374
|
+
interface ReviewsSpotlightProps {
|
|
5375
|
+
/** Small uppercase kicker above the quote. */
|
|
5376
|
+
eyebrow?: string;
|
|
5377
|
+
/**
|
|
5378
|
+
* Section heading. Rendered visually hidden (`sr-only`) so the band keeps a
|
|
5379
|
+
* real `<h2>` for document outline / SEO without competing with the quote.
|
|
5380
|
+
*/
|
|
5381
|
+
title: string;
|
|
5382
|
+
/** Optional "Read all on Trustpilot" style link below the dots. */
|
|
5383
|
+
link?: ReviewsSpotlightLink;
|
|
5384
|
+
/** Testimonials cycled through, one at a time. */
|
|
5385
|
+
items: ReviewsSpotlightReview[];
|
|
5386
|
+
/** Auto-advance interval in ms. @default 7000 */
|
|
5387
|
+
intervalMs?: number;
|
|
5388
|
+
className?: string;
|
|
5389
|
+
}
|
|
5390
|
+
/**
|
|
5391
|
+
* ReviewsSpotlight — a single rotating testimonial. One large serif quote with
|
|
5392
|
+
* Trustpilot stars, auto-advancing through `items` with clickable dots and a
|
|
5393
|
+
* short crossfade. Honours `prefers-reduced-motion` (no auto-advance, instant
|
|
5394
|
+
* swap). The dark band matches the rest of {@link NewHome}.
|
|
5395
|
+
*/
|
|
5396
|
+
declare function ReviewsSpotlight({ eyebrow, title, link, items, intervalMs, className, }: ReviewsSpotlightProps): react_jsx_runtime.JSX.Element | null;
|
|
5397
|
+
|
|
5346
5398
|
interface SegmentItem {
|
|
5347
5399
|
/** Stable id returned by `onValueChange`. */
|
|
5348
5400
|
id: string;
|
|
@@ -5394,4 +5446,4 @@ interface SegmentedControlProps {
|
|
|
5394
5446
|
}
|
|
5395
5447
|
declare function SegmentedControl({ items, value, defaultValue, onValueChange, variant, size, fullWidth, collapse, "aria-label": ariaLabel, className, }: SegmentedControlProps): react_jsx_runtime.JSX.Element;
|
|
5396
5448
|
|
|
5397
|
-
export { type AccommodationRoomItem, ActivityCard, type ActivityCardProps, type ActivityCardSize, AdventureExplorer, type AdventureExplorerProps, AgentContactCard, type AgentContactCardProps, Alert, type AlertProps, type AlertVariant, AskExo, type AskExoProps, type AskExoSuggestion, BirthDateField, type BirthDateFieldProps, type BlogAuthor, type BlogBlock, type BlogCalloutBlock, BlogCard, type BlogCardCta, type BlogCardProps, type BlogCardSize, type BlogCollageBlock, type BlogHeadingBlock, type BlogImageBlock, BlogJournal, type BlogJournalFeature, type BlogJournalPost, type BlogJournalProps, type BlogListBlock, type BlogParagraphBlock, BlogPost, type BlogPostProps, type BlogQuoteBlock, type BlogTableBlock, type BlogTableColumn, type BookingAdventure, BookingAdventureCard, type BookingAdventureCardLabels, type BookingAdventureCardLineItem, type BookingAdventureCardProps, type BookingAdventureCardSlots, type BookingAdventureCardTraveller, type BookingCancellationAdventure, type BookingCancellationAgentContactLinks, BookingCancellationEmail, type BookingCancellationEmailLabels, type BookingCancellationEmailProps, 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, BookingPartialCancellationEmail, type BookingPartialCancellationEmailLabels, type BookingPartialCancellationEmailProps, BookingPaymentConfirmationEmail, type BookingPaymentConfirmationEmailLabels, type BookingPaymentConfirmationEmailProps, BookingShell, type BookingShellProps, type BookingStatus, BookingSummary, type BookingSummaryLineItem, type BookingSummaryProps, type BookingSummaryRoomItem, type BookingSummaryRow, type BookingTraveller, Button, type ButtonProps, COUNTRIES, CancellationForm, type CancellationFormAdventure, type CancellationFormLabels, type CancellationFormOption, type CancellationFormParticipant, type CancellationFormProps, type CancellationFormValues, type CancellationRequestReceivedAdventure, type CancellationRequestReceivedAgentContactLinks, CancellationRequestReceivedEmail, type CancellationRequestReceivedEmailLabels, type CancellationRequestReceivedEmailProps, type Category2BlogPost, type Category2Faq, type Category2SortOption, type Category2Trip, CategoryPage2, type CategoryPage2Props, Chip, type ChipProps, type ConfirmationAdventure, type ConfirmationDepositInfo, type ConfirmationLineItem, type ConfirmationTraveller, CounterField, type CounterFieldProps, type CountryOption, CountrySearchField, type CountrySearchFieldProps, CtaBanner, type CtaBannerCta, type CtaBannerProps, type CurrencyEstimate, DEFAULT_FOOTER_BADGES, DEFAULT_FOOTER_DESTINATIONS, DEFAULT_FOOTER_LANGUAGES, DEFAULT_FOOTER_LEGAL, DEFAULT_FOOTER_PAGES, DEFAULT_FOOTER_SOCIALS, DEFAULT_FOOTER_THEMES, DEFAULT_HEADER_LINKS, DEFAULT_LANGUAGES, STATUS_MAP as DEPARTURE_STATUS_MAP, DatePickerField, type DatePickerFieldProps, type DepartureStatus, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, type EmailTokens, ExoOrb, type ExoOrbProps, type ExploreCard, type ExploreTab, type FilterGroup, type FilterItem, FilterPanel, type FilterPanelProps, FloatingInput, type FloatingInputProps, FloatingSelect, type FloatingSelectProps, GroupProgressBar, type GroupProgressBarProps, GroupStatusBanner, type GroupStatusBannerProps, HomeHeader, type HomeHeaderCta, type HomeHeaderPressLogo, type HomeHeaderProps, type HomeHeaderRating, type HomeSiteHeaderConfig, 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, NewHome, type NewHomeExpeditions, type NewHomePopular, type NewHomePopularChip, type NewHomeProps, type NewHomeReview, type NewHomeReviews, type NewHomeSectionHead, type NewHomeSectionLink, type NewHomeStat, type NewHomeStats, NotificationEmail, type NotificationEmailCta, type NotificationEmailDetailItem, type NotificationEmailProps, type NotificationEmailRoster, type NotificationEmailRosterPerson, type NotificationEmailSummary, type NotificationEmailSummaryRow, OTPCodeInput, type OTPCodeInputProps, Offer, OfferAdventureCard, type OfferAdventureItem, type OfferAgentInfo, type OfferConfirmedState, type OfferDepositInfo, type OfferLabels, type OfferOptionalItem, type OfferProps, type OfferSummaryLineItem, type PartialCancellationAgentContactLinks, type PartialCancellationRemovedItem, type Participant, ParticipantCounter, type ParticipantCounterProps, ParticipantList, type ParticipantListProps, type PartnerBookingCreatedAgentContactLinks, PartnerBookingCreatedEmail, type PartnerBookingCreatedEmailLabels, type PartnerBookingCreatedEmailProps, type PartnerRegistrationCompleteAgentContactLinks, PartnerRegistrationCompleteEmail, type PartnerRegistrationCompleteEmailExpectationRow, type PartnerRegistrationCompleteEmailLabels, type PartnerRegistrationCompleteEmailProps, 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, PhotoTourProvider, type PhotoTourProviderProps, Picture, type PictureProps, type PopularSearchChip, PopularSearches, type PopularSearchesProps, PriceProgress, type PriceProgressProps, PricingMatrixCard, type PricingMatrixCardProps, type PricingTier, 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, type SegmentItem, SegmentedControl, type SegmentedControlProps, ShareWidget, type ShareWidgetProps, SiteFooter, type SiteFooterAddress, type SiteFooterBadge, type SiteFooterChip, type SiteFooterLanguage, type SiteFooterLink, type SiteFooterProps, type SiteFooterSocial, type SiteFooterVariant, SiteHeader, type SiteHeaderLanguage, type SiteHeaderLink, type SiteHeaderProps, type SiteHeaderSubItem, type SiteHeaderVariant, StatusBadge, type StatusBadgeProps, StickyBookingCard, type StickyBookingCardProps, 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 TripSiteHeaderConfig, type TripTrustpilotWidget, TrustpilotEmbed, type TrustpilotWidgetConfig, USP, USPBand, type USPBandCta, type USPBandProps, type USPItem, type USPProps, buttonVariants, chipVariants, cn, emailTokens, formatCpf, getStripeAppearance, itineraryDaySpecIcons, stripeAppearance, validateCpf, webpVariantUrl, wrapEmailHtml };
|
|
5449
|
+
export { type AccommodationRoomItem, ActivityCard, type ActivityCardProps, type ActivityCardSize, AdventureExplorer, type AdventureExplorerProps, AgentContactCard, type AgentContactCardProps, Alert, type AlertProps, type AlertVariant, AskExo, type AskExoProps, type AskExoSuggestion, BirthDateField, type BirthDateFieldProps, type BlogAuthor, type BlogBlock, type BlogCalloutBlock, BlogCard, type BlogCardCta, type BlogCardProps, type BlogCardSize, type BlogCollageBlock, type BlogHeadingBlock, type BlogImageBlock, BlogJournal, type BlogJournalFeature, type BlogJournalPost, type BlogJournalProps, type BlogListBlock, type BlogParagraphBlock, BlogPost, type BlogPostProps, type BlogQuoteBlock, type BlogTableBlock, type BlogTableColumn, type BookingAdventure, BookingAdventureCard, type BookingAdventureCardLabels, type BookingAdventureCardLineItem, type BookingAdventureCardProps, type BookingAdventureCardSlots, type BookingAdventureCardTraveller, type BookingCancellationAdventure, type BookingCancellationAgentContactLinks, BookingCancellationEmail, type BookingCancellationEmailLabels, type BookingCancellationEmailProps, 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, BookingPartialCancellationEmail, type BookingPartialCancellationEmailLabels, type BookingPartialCancellationEmailProps, BookingPaymentConfirmationEmail, type BookingPaymentConfirmationEmailLabels, type BookingPaymentConfirmationEmailProps, BookingShell, type BookingShellProps, type BookingStatus, BookingSummary, type BookingSummaryLineItem, type BookingSummaryProps, type BookingSummaryRoomItem, type BookingSummaryRow, type BookingTraveller, Button, type ButtonProps, COUNTRIES, CancellationForm, type CancellationFormAdventure, type CancellationFormLabels, type CancellationFormOption, type CancellationFormParticipant, type CancellationFormProps, type CancellationFormValues, type CancellationRequestReceivedAdventure, type CancellationRequestReceivedAgentContactLinks, CancellationRequestReceivedEmail, type CancellationRequestReceivedEmailLabels, type CancellationRequestReceivedEmailProps, type Category2BlogPost, type Category2Faq, type Category2SortOption, type Category2Trip, CategoryPage2, type CategoryPage2Props, Chip, type ChipProps, type ConfirmationAdventure, type ConfirmationDepositInfo, type ConfirmationLineItem, type ConfirmationTraveller, CounterField, type CounterFieldProps, type CountryOption, CountrySearchField, type CountrySearchFieldProps, CtaBanner, type CtaBannerCta, type CtaBannerProps, type CurrencyEstimate, DEFAULT_FOOTER_BADGES, DEFAULT_FOOTER_DESTINATIONS, DEFAULT_FOOTER_LANGUAGES, DEFAULT_FOOTER_LEGAL, DEFAULT_FOOTER_PAGES, DEFAULT_FOOTER_SOCIALS, DEFAULT_FOOTER_THEMES, DEFAULT_HEADER_LINKS, DEFAULT_LANGUAGES, STATUS_MAP as DEPARTURE_STATUS_MAP, DatePickerField, type DatePickerFieldProps, type DepartureStatus, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, type EmailTokens, ExoOrb, type ExoOrbProps, type ExploreCard, type ExploreTab, type FilterGroup, type FilterItem, FilterPanel, type FilterPanelProps, FloatingInput, type FloatingInputProps, FloatingSelect, type FloatingSelectProps, GroupProgressBar, type GroupProgressBarProps, GroupStatusBanner, type GroupStatusBannerProps, HomeHeader, type HomeHeaderCta, type HomeHeaderPressLogo, type HomeHeaderProps, type HomeHeaderRating, type HomeSiteHeaderConfig, 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, NewHome, type NewHomeExpeditions, type NewHomePopular, type NewHomePopularChip, type NewHomeProps, type NewHomeReview, type NewHomeReviews, type NewHomeSectionHead, type NewHomeSectionLink, type NewHomeStat, type NewHomeStats, NotificationEmail, type NotificationEmailCta, type NotificationEmailDetailItem, type NotificationEmailProps, type NotificationEmailRoster, type NotificationEmailRosterPerson, type NotificationEmailSummary, type NotificationEmailSummaryRow, OTPCodeInput, type OTPCodeInputProps, Offer, OfferAdventureCard, type OfferAdventureItem, type OfferAgentInfo, type OfferConfirmedState, type OfferDepositInfo, type OfferLabels, type OfferOptionalItem, type OfferProps, type OfferSummaryLineItem, type PartialCancellationAgentContactLinks, type PartialCancellationRemovedItem, type Participant, ParticipantCounter, type ParticipantCounterProps, ParticipantList, type ParticipantListProps, type PartnerBookingCreatedAgentContactLinks, PartnerBookingCreatedEmail, type PartnerBookingCreatedEmailLabels, type PartnerBookingCreatedEmailProps, type PartnerRegistrationCompleteAgentContactLinks, PartnerRegistrationCompleteEmail, type PartnerRegistrationCompleteEmailExpectationRow, type PartnerRegistrationCompleteEmailLabels, type PartnerRegistrationCompleteEmailProps, 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, PhotoTourProvider, type PhotoTourProviderProps, Picture, type PictureProps, type PopularSearchChip, PopularSearches, type PopularSearchesProps, PriceProgress, type PriceProgressProps, PricingMatrixCard, type PricingMatrixCardProps, type PricingTier, 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, ReviewsSpotlight, type ReviewsSpotlightLink, type ReviewsSpotlightProps, type ReviewsSpotlightReview, type SegmentItem, SegmentedControl, type SegmentedControlProps, ShareWidget, type ShareWidgetProps, SiteFooter, type SiteFooterAddress, type SiteFooterBadge, type SiteFooterChip, type SiteFooterLanguage, type SiteFooterLink, type SiteFooterProps, type SiteFooterSocial, type SiteFooterVariant, SiteHeader, type SiteHeaderLanguage, type SiteHeaderLink, type SiteHeaderProps, type SiteHeaderSubItem, type SiteHeaderVariant, StatusBadge, type StatusBadgeProps, StickyBookingCard, type StickyBookingCardProps, 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 TripSiteHeaderConfig, type TripTrustpilotWidget, TrustpilotEmbed, type TrustpilotWidgetConfig, USP, USPBand, type USPBandCta, type USPBandProps, type USPItem, type USPProps, buttonVariants, chipVariants, cn, emailTokens, formatCpf, getStripeAppearance, itineraryDaySpecIcons, stripeAppearance, validateCpf, webpVariantUrl, wrapEmailHtml };
|
package/dist/index.js
CHANGED
|
@@ -15142,7 +15142,7 @@ var VARIANT2 = {
|
|
|
15142
15142
|
heading: "text-foreground",
|
|
15143
15143
|
body: "text-foreground/75",
|
|
15144
15144
|
muted: "text-foreground/60",
|
|
15145
|
-
link: "
|
|
15145
|
+
link: "rounded-full px-3 py-1.5 -ml-3 transition-colors text-foreground/85 hover:bg-primary hover:text-white",
|
|
15146
15146
|
badgeStroke: "text-foreground/80",
|
|
15147
15147
|
/** Inverts white logos so they read on the light background. */
|
|
15148
15148
|
badgeFilter: "[filter:invert(1)_brightness(0.2)]",
|
|
@@ -15159,7 +15159,7 @@ var VARIANT2 = {
|
|
|
15159
15159
|
heading: "text-white",
|
|
15160
15160
|
body: "text-white/75",
|
|
15161
15161
|
muted: "text-white/55",
|
|
15162
|
-
link: "
|
|
15162
|
+
link: "rounded-full px-3 py-1.5 -ml-3 transition-colors text-white/85 hover:bg-primary hover:text-white",
|
|
15163
15163
|
badgeStroke: "text-white",
|
|
15164
15164
|
badgeFilter: "",
|
|
15165
15165
|
socialBtn: "bg-white/10 text-white hover:bg-primary-400 hover:text-primary-900",
|
|
@@ -15369,8 +15369,8 @@ function SiteFooter({
|
|
|
15369
15369
|
title: "Basecamp S\xE3o Paulo",
|
|
15370
15370
|
lines: ["Av. Paulista, 1234", "01310-100 S\xE3o Paulo \xB7 Brasil"]
|
|
15371
15371
|
},
|
|
15372
|
-
phone
|
|
15373
|
-
email
|
|
15372
|
+
phone,
|
|
15373
|
+
email,
|
|
15374
15374
|
socials = DEFAULT_FOOTER_SOCIALS,
|
|
15375
15375
|
themesTitle = "Temas",
|
|
15376
15376
|
themes = DEFAULT_FOOTER_THEMES,
|
|
@@ -15379,11 +15379,7 @@ function SiteFooter({
|
|
|
15379
15379
|
destinationsMore = { label: "Ver todos os destinos", href: "#" },
|
|
15380
15380
|
pagesTitle = "P\xE1ginas",
|
|
15381
15381
|
pages = DEFAULT_FOOTER_PAGES,
|
|
15382
|
-
cta
|
|
15383
|
-
title: "Colaborar?",
|
|
15384
|
-
label: "parceiros@planetaexo.com",
|
|
15385
|
-
href: "mailto:parceiros@planetaexo.com"
|
|
15386
|
-
},
|
|
15382
|
+
cta,
|
|
15387
15383
|
copyright,
|
|
15388
15384
|
legalLinks = DEFAULT_FOOTER_LEGAL,
|
|
15389
15385
|
className
|
|
@@ -15483,22 +15479,22 @@ function SiteFooter({
|
|
|
15483
15479
|
] }),
|
|
15484
15480
|
themes.length > 0 && /* @__PURE__ */ jsxs("div", { className: "lg:col-span-3", children: [
|
|
15485
15481
|
/* @__PURE__ */ jsx(ColumnHeading, { className: t.heading, children: themesTitle }),
|
|
15486
|
-
/* @__PURE__ */ jsx("ul", { className: "space-y-
|
|
15482
|
+
/* @__PURE__ */ jsx("ul", { className: "space-y-0.5", children: themes.map((c) => /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx(
|
|
15487
15483
|
"a",
|
|
15488
15484
|
{
|
|
15489
15485
|
href: c.href,
|
|
15490
|
-
className: cn("text-sm font-ui font-bold", t.link),
|
|
15486
|
+
className: cn("inline-block text-sm font-ui font-bold", t.link),
|
|
15491
15487
|
children: c.label
|
|
15492
15488
|
}
|
|
15493
15489
|
) }, c.label)) })
|
|
15494
15490
|
] }),
|
|
15495
15491
|
destinations.length > 0 && /* @__PURE__ */ jsxs("div", { className: "lg:col-span-3", children: [
|
|
15496
15492
|
/* @__PURE__ */ jsx(ColumnHeading, { className: t.heading, children: destinationsTitle }),
|
|
15497
|
-
/* @__PURE__ */ jsx("ul", { className: "space-y-
|
|
15493
|
+
/* @__PURE__ */ jsx("ul", { className: "space-y-0.5", children: destinations.map((c) => /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx(
|
|
15498
15494
|
"a",
|
|
15499
15495
|
{
|
|
15500
15496
|
href: c.href,
|
|
15501
|
-
className: cn("text-sm font-ui font-bold", t.link),
|
|
15497
|
+
className: cn("inline-block text-sm font-ui font-bold", t.link),
|
|
15502
15498
|
children: c.label
|
|
15503
15499
|
}
|
|
15504
15500
|
) }, c.label)) }),
|
|
@@ -15520,11 +15516,11 @@ function SiteFooter({
|
|
|
15520
15516
|
/* @__PURE__ */ jsxs("div", { className: "lg:col-span-2 space-y-8", children: [
|
|
15521
15517
|
pages.length > 0 && /* @__PURE__ */ jsxs("div", { children: [
|
|
15522
15518
|
/* @__PURE__ */ jsx(ColumnHeading, { className: t.heading, children: pagesTitle }),
|
|
15523
|
-
/* @__PURE__ */ jsx("ul", { className: "space-y-
|
|
15519
|
+
/* @__PURE__ */ jsx("ul", { className: "space-y-0.5", children: pages.map((p) => /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx(
|
|
15524
15520
|
"a",
|
|
15525
15521
|
{
|
|
15526
15522
|
href: p.href,
|
|
15527
|
-
className: cn("text-sm font-ui font-bold", t.link),
|
|
15523
|
+
className: cn("inline-block text-sm font-ui font-bold", t.link),
|
|
15528
15524
|
children: p.label
|
|
15529
15525
|
}
|
|
15530
15526
|
) }, p.label)) })
|
|
@@ -15663,6 +15659,7 @@ function TripPage({
|
|
|
15663
15659
|
perPersonLabel,
|
|
15664
15660
|
siteHeader,
|
|
15665
15661
|
footerBadges,
|
|
15662
|
+
footer,
|
|
15666
15663
|
uiVariant = "v1",
|
|
15667
15664
|
features,
|
|
15668
15665
|
className
|
|
@@ -16297,7 +16294,7 @@ function TripPage({
|
|
|
16297
16294
|
}
|
|
16298
16295
|
) }),
|
|
16299
16296
|
/* @__PURE__ */ jsx("div", { className: "h-20 lg:hidden" }),
|
|
16300
|
-
/* @__PURE__ */ jsx(SiteFooter, { badges: footerBadges })
|
|
16297
|
+
/* @__PURE__ */ jsx(SiteFooter, __spreadValues({ badges: footerBadges }, footer))
|
|
16301
16298
|
]
|
|
16302
16299
|
}
|
|
16303
16300
|
)
|
|
@@ -16361,6 +16358,7 @@ function CategoryPage2({
|
|
|
16361
16358
|
cardLabels,
|
|
16362
16359
|
filterLabels,
|
|
16363
16360
|
footerBadges,
|
|
16361
|
+
footer,
|
|
16364
16362
|
className
|
|
16365
16363
|
}) {
|
|
16366
16364
|
var _a;
|
|
@@ -16693,7 +16691,7 @@ function CategoryPage2({
|
|
|
16693
16691
|
) })
|
|
16694
16692
|
] });
|
|
16695
16693
|
})(),
|
|
16696
|
-
/* @__PURE__ */ jsx(SiteFooter, { badges: footerBadges })
|
|
16694
|
+
/* @__PURE__ */ jsx(SiteFooter, __spreadValues({ badges: footerBadges }, footer))
|
|
16697
16695
|
] });
|
|
16698
16696
|
}
|
|
16699
16697
|
var sizeConfig3 = {
|
|
@@ -19431,16 +19429,16 @@ var SIZES = {
|
|
|
19431
19429
|
md: {
|
|
19432
19430
|
pad: "py-20 sm:py-28",
|
|
19433
19431
|
heading: "text-2xl sm:text-3xl lg:text-4xl",
|
|
19434
|
-
chip: "px-5 py-2.5 text-sm",
|
|
19435
|
-
gap: "gap-2.5",
|
|
19436
|
-
chipsMt: "mt-9"
|
|
19432
|
+
chip: "px-4 py-2 text-[13px] sm:px-5 sm:py-2.5 sm:text-sm",
|
|
19433
|
+
gap: "gap-2 sm:gap-2.5",
|
|
19434
|
+
chipsMt: "mt-6 sm:mt-9"
|
|
19437
19435
|
},
|
|
19438
19436
|
sm: {
|
|
19439
19437
|
pad: "py-16 sm:py-24",
|
|
19440
19438
|
heading: "text-xl sm:text-2xl lg:text-3xl",
|
|
19441
|
-
chip: "px-3.5 py-1.5 text-[13px]",
|
|
19442
|
-
gap: "gap-2",
|
|
19443
|
-
chipsMt: "mt-7"
|
|
19439
|
+
chip: "px-3.5 py-1.5 text-xs sm:px-3.5 sm:py-1.5 sm:text-[13px]",
|
|
19440
|
+
gap: "gap-1.5 sm:gap-2",
|
|
19441
|
+
chipsMt: "mt-5 sm:mt-7"
|
|
19444
19442
|
}
|
|
19445
19443
|
};
|
|
19446
19444
|
var SCOPED_CSS = `
|
|
@@ -20051,6 +20049,148 @@ function NewHome({
|
|
|
20051
20049
|
footer && /* @__PURE__ */ jsx(SiteFooter, __spreadValues({}, footer))
|
|
20052
20050
|
] });
|
|
20053
20051
|
}
|
|
20052
|
+
var SURFACE_PRIMARY_9002 = "bg-[oklch(0.27_0.040_179)]";
|
|
20053
|
+
function TrustpilotStar({
|
|
20054
|
+
filled,
|
|
20055
|
+
className
|
|
20056
|
+
}) {
|
|
20057
|
+
return /* @__PURE__ */ jsxs("svg", { viewBox: "0 0 24 24", className, "aria-hidden": true, children: [
|
|
20058
|
+
/* @__PURE__ */ jsx("rect", { width: "24", height: "24", fill: filled ? "#00b67a" : "#dcdce6" }),
|
|
20059
|
+
/* @__PURE__ */ jsx(
|
|
20060
|
+
"path",
|
|
20061
|
+
{
|
|
20062
|
+
fill: "#ffffff",
|
|
20063
|
+
d: "m12 2 3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14l-5-4.87 6.91-1.01L12 2z"
|
|
20064
|
+
}
|
|
20065
|
+
)
|
|
20066
|
+
] });
|
|
20067
|
+
}
|
|
20068
|
+
function TrustpilotStars({
|
|
20069
|
+
stars = 5,
|
|
20070
|
+
className = "h-7 w-7"
|
|
20071
|
+
}) {
|
|
20072
|
+
return /* @__PURE__ */ jsx(
|
|
20073
|
+
"div",
|
|
20074
|
+
{
|
|
20075
|
+
className: "flex items-center gap-1",
|
|
20076
|
+
"aria-label": `${stars} out of 5 stars`,
|
|
20077
|
+
children: Array.from({ length: 5 }).map((_, i) => /* @__PURE__ */ jsx(
|
|
20078
|
+
TrustpilotStar,
|
|
20079
|
+
{
|
|
20080
|
+
filled: i + 1 <= Math.round(stars),
|
|
20081
|
+
className
|
|
20082
|
+
},
|
|
20083
|
+
i
|
|
20084
|
+
))
|
|
20085
|
+
}
|
|
20086
|
+
);
|
|
20087
|
+
}
|
|
20088
|
+
function ReviewsSpotlight({
|
|
20089
|
+
eyebrow,
|
|
20090
|
+
title,
|
|
20091
|
+
link,
|
|
20092
|
+
items,
|
|
20093
|
+
intervalMs = 7e3,
|
|
20094
|
+
className
|
|
20095
|
+
}) {
|
|
20096
|
+
const [index, setIndex] = React20.useState(0);
|
|
20097
|
+
const [visible, setVisible] = React20.useState(true);
|
|
20098
|
+
const reduced = React20.useRef(false);
|
|
20099
|
+
const swapRef = React20.useRef(null);
|
|
20100
|
+
React20.useEffect(() => {
|
|
20101
|
+
var _a;
|
|
20102
|
+
const mq = window.matchMedia("(prefers-reduced-motion: reduce)");
|
|
20103
|
+
reduced.current = mq.matches;
|
|
20104
|
+
const onChange = () => {
|
|
20105
|
+
reduced.current = mq.matches;
|
|
20106
|
+
};
|
|
20107
|
+
(_a = mq.addEventListener) == null ? void 0 : _a.call(mq, "change", onChange);
|
|
20108
|
+
return () => {
|
|
20109
|
+
var _a2;
|
|
20110
|
+
return (_a2 = mq.removeEventListener) == null ? void 0 : _a2.call(mq, "change", onChange);
|
|
20111
|
+
};
|
|
20112
|
+
}, []);
|
|
20113
|
+
const goTo = React20.useCallback((resolve) => {
|
|
20114
|
+
if (reduced.current) {
|
|
20115
|
+
setIndex((i) => resolve(i));
|
|
20116
|
+
return;
|
|
20117
|
+
}
|
|
20118
|
+
setVisible(false);
|
|
20119
|
+
swapRef.current = setTimeout(() => {
|
|
20120
|
+
setIndex((i) => resolve(i));
|
|
20121
|
+
setVisible(true);
|
|
20122
|
+
}, 260);
|
|
20123
|
+
}, []);
|
|
20124
|
+
React20.useEffect(() => {
|
|
20125
|
+
if (items.length <= 1 || intervalMs <= 0) return;
|
|
20126
|
+
const id = setInterval(() => {
|
|
20127
|
+
if (!reduced.current) goTo((i) => (i + 1) % items.length);
|
|
20128
|
+
}, intervalMs);
|
|
20129
|
+
return () => {
|
|
20130
|
+
clearInterval(id);
|
|
20131
|
+
if (swapRef.current) clearTimeout(swapRef.current);
|
|
20132
|
+
};
|
|
20133
|
+
}, [items.length, intervalMs, goTo]);
|
|
20134
|
+
if (!items.length) return null;
|
|
20135
|
+
const safe = Math.min(index, items.length - 1);
|
|
20136
|
+
const review = items[safe];
|
|
20137
|
+
return /* @__PURE__ */ jsx(
|
|
20138
|
+
"section",
|
|
20139
|
+
{
|
|
20140
|
+
className: cn(SURFACE_PRIMARY_9002, "py-24 text-white sm:py-32", className),
|
|
20141
|
+
children: /* @__PURE__ */ jsxs("div", { className: "mx-auto w-full max-w-3xl px-6 text-center sm:px-8", children: [
|
|
20142
|
+
eyebrow && /* @__PURE__ */ jsx("p", { className: "font-ui text-xs font-bold uppercase tracking-[0.22em] text-primary", children: eyebrow }),
|
|
20143
|
+
/* @__PURE__ */ jsx("h2", { className: "sr-only", children: title }),
|
|
20144
|
+
/* @__PURE__ */ jsxs(
|
|
20145
|
+
"div",
|
|
20146
|
+
{
|
|
20147
|
+
className: cn(
|
|
20148
|
+
"transition-opacity duration-300",
|
|
20149
|
+
visible ? "opacity-100" : "opacity-0"
|
|
20150
|
+
),
|
|
20151
|
+
children: [
|
|
20152
|
+
/* @__PURE__ */ jsx("div", { className: "mt-8 flex justify-center", children: /* @__PURE__ */ jsx(TrustpilotStars, { stars: review.stars, className: "h-7 w-7" }) }),
|
|
20153
|
+
/* @__PURE__ */ jsxs("blockquote", { className: "mx-auto mt-8 max-w-[20ch] font-sans text-3xl font-normal italic leading-[1.3] text-white sm:text-4xl", children: [
|
|
20154
|
+
"\u201C",
|
|
20155
|
+
review.quote,
|
|
20156
|
+
"\u201D"
|
|
20157
|
+
] }),
|
|
20158
|
+
(review.author || review.location) && /* @__PURE__ */ jsxs("div", { className: "mt-6", children: [
|
|
20159
|
+
review.author && /* @__PURE__ */ jsx("p", { className: "font-ui text-base font-bold tracking-wide text-white", children: review.author }),
|
|
20160
|
+
review.location && /* @__PURE__ */ jsx("p", { className: "mt-1 font-sans text-sm text-white/55", children: review.location })
|
|
20161
|
+
] })
|
|
20162
|
+
]
|
|
20163
|
+
}
|
|
20164
|
+
),
|
|
20165
|
+
items.length > 1 && /* @__PURE__ */ jsx("div", { className: "mt-10 flex justify-center gap-2.5", children: items.map((_, i) => /* @__PURE__ */ jsx(
|
|
20166
|
+
"button",
|
|
20167
|
+
{
|
|
20168
|
+
type: "button",
|
|
20169
|
+
"aria-label": `Show review ${i + 1} of ${items.length}`,
|
|
20170
|
+
"aria-current": i === safe,
|
|
20171
|
+
onClick: () => goTo(() => i),
|
|
20172
|
+
className: cn(
|
|
20173
|
+
"h-2 w-2 rounded-full transition-colors",
|
|
20174
|
+
i === safe ? "bg-primary" : "bg-white/25 hover:bg-white/45"
|
|
20175
|
+
)
|
|
20176
|
+
},
|
|
20177
|
+
i
|
|
20178
|
+
)) }),
|
|
20179
|
+
link && /* @__PURE__ */ jsxs(
|
|
20180
|
+
"a",
|
|
20181
|
+
{
|
|
20182
|
+
href: link.href,
|
|
20183
|
+
className: "group mt-10 inline-flex items-center gap-1.5 font-ui text-sm font-bold text-primary transition-colors hover:text-primary-800",
|
|
20184
|
+
children: [
|
|
20185
|
+
link.label,
|
|
20186
|
+
/* @__PURE__ */ jsx(ArrowRightIcon, { className: "h-4 w-4 transition-transform group-hover:translate-x-1" })
|
|
20187
|
+
]
|
|
20188
|
+
}
|
|
20189
|
+
)
|
|
20190
|
+
] })
|
|
20191
|
+
}
|
|
20192
|
+
);
|
|
20193
|
+
}
|
|
20054
20194
|
var ACTIVE_PILL = "bg-primary text-white shadow-sm";
|
|
20055
20195
|
var VARIANT3 = {
|
|
20056
20196
|
black: {
|
|
@@ -20165,6 +20305,6 @@ function SegmentedControl({
|
|
|
20165
20305
|
);
|
|
20166
20306
|
}
|
|
20167
20307
|
|
|
20168
|
-
export { ActivityCard, AdventureExplorer, AgentContactCard, Alert, AskExo, BirthDateField, BlogCard, BlogJournal, BlogPost, BookingAdventureCard, BookingCancellationEmail, BookingConfirmedCard, BookingCreatedEmail, BookingDetails, BookingForm, BookingOtpEmail, BookingPartialCancellationEmail, BookingPaymentConfirmationEmail, BookingShell, BookingSummary, Button, COUNTRIES, CancellationForm, CancellationRequestReceivedEmail, CategoryPage2, Chip, CounterField, CountrySearchField, CtaBanner, DEFAULT_FOOTER_BADGES, DEFAULT_FOOTER_DESTINATIONS, DEFAULT_FOOTER_LANGUAGES, DEFAULT_FOOTER_LEGAL, DEFAULT_FOOTER_PAGES, DEFAULT_FOOTER_SOCIALS, DEFAULT_FOOTER_THEMES, DEFAULT_HEADER_LINKS, DEFAULT_LANGUAGES, STATUS_MAP as DEPARTURE_STATUS_MAP, DatePickerField, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, ExoOrb, FilterPanel, FloatingInput, FloatingSelect, GroupProgressBar, GroupStatusBanner, HomeHeader, Itinerary, ItineraryDay, LOGO_PLANETAEXO_DATA_URI, LeadCapturePopup, MenuTrip, NewHome, NotificationEmail, OTPCodeInput, Offer, OfferAdventureCard, ParticipantCounter, ParticipantList, PartnerBookingCreatedEmail, PartnerRegistrationCompleteEmail, PaymentAmountSelector, PaymentDetailsBlock, PaymentMethodSelector, PaymentModalShell, PaymentReceiptEmail, PaymentReminderEmail, PhoneCountrySelect, PhotoGallery, PhotoTourProvider, Picture, PopularSearches, PriceProgress, PricingMatrixCard, PricingTrip, RegistrationForm, RegistrationProgressBar, RegistrationReminderEmail, RegistrationReminderIndividualEmail, RegistrationSuccessCard, SegmentedControl, ShareWidget, SiteFooter, SiteHeader, StatusBadge2 as StatusBadge, StickyBookingCard, TERMS_ACCEPT_KEY, TermsSection, ThemeToggle, Toast, TransferDetailsBlock, TravellerFormInviteEmail, TripCard, TripHeader, TripPage, TrustpilotEmbed, USP, USPBand, buttonVariants, chipVariants, cn, emailTokens, formatCpf, getStripeAppearance, itineraryDaySpecIcons, stripeAppearance, validateCpf, webpVariantUrl, wrapEmailHtml };
|
|
20308
|
+
export { ActivityCard, AdventureExplorer, AgentContactCard, Alert, AskExo, BirthDateField, BlogCard, BlogJournal, BlogPost, BookingAdventureCard, BookingCancellationEmail, BookingConfirmedCard, BookingCreatedEmail, BookingDetails, BookingForm, BookingOtpEmail, BookingPartialCancellationEmail, BookingPaymentConfirmationEmail, BookingShell, BookingSummary, Button, COUNTRIES, CancellationForm, CancellationRequestReceivedEmail, CategoryPage2, Chip, CounterField, CountrySearchField, CtaBanner, DEFAULT_FOOTER_BADGES, DEFAULT_FOOTER_DESTINATIONS, DEFAULT_FOOTER_LANGUAGES, DEFAULT_FOOTER_LEGAL, DEFAULT_FOOTER_PAGES, DEFAULT_FOOTER_SOCIALS, DEFAULT_FOOTER_THEMES, DEFAULT_HEADER_LINKS, DEFAULT_LANGUAGES, STATUS_MAP as DEPARTURE_STATUS_MAP, DatePickerField, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, ExoOrb, FilterPanel, FloatingInput, FloatingSelect, GroupProgressBar, GroupStatusBanner, HomeHeader, Itinerary, ItineraryDay, LOGO_PLANETAEXO_DATA_URI, LeadCapturePopup, MenuTrip, NewHome, NotificationEmail, OTPCodeInput, Offer, OfferAdventureCard, ParticipantCounter, ParticipantList, PartnerBookingCreatedEmail, PartnerRegistrationCompleteEmail, PaymentAmountSelector, PaymentDetailsBlock, PaymentMethodSelector, PaymentModalShell, PaymentReceiptEmail, PaymentReminderEmail, PhoneCountrySelect, PhotoGallery, PhotoTourProvider, Picture, PopularSearches, PriceProgress, PricingMatrixCard, PricingTrip, RegistrationForm, RegistrationProgressBar, RegistrationReminderEmail, RegistrationReminderIndividualEmail, RegistrationSuccessCard, ReviewsSpotlight, SegmentedControl, ShareWidget, SiteFooter, SiteHeader, StatusBadge2 as StatusBadge, StickyBookingCard, TERMS_ACCEPT_KEY, TermsSection, ThemeToggle, Toast, TransferDetailsBlock, TravellerFormInviteEmail, TripCard, TripHeader, TripPage, TrustpilotEmbed, USP, USPBand, buttonVariants, chipVariants, cn, emailTokens, formatCpf, getStripeAppearance, itineraryDaySpecIcons, stripeAppearance, validateCpf, webpVariantUrl, wrapEmailHtml };
|
|
20169
20309
|
//# sourceMappingURL=index.js.map
|
|
20170
20310
|
//# sourceMappingURL=index.js.map
|