@planetaexo/design-system 0.9.5 → 0.10.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 +265 -79
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +49 -7
- package/dist/index.d.ts +49 -7
- package/dist/index.js +266 -81
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -59,7 +59,7 @@ interface OfferAdventureItem {
|
|
|
59
59
|
onRemove?: () => void;
|
|
60
60
|
/** Extra rich content below the standard blocks (e.g. traveller table, HTML itinerary from the host app). */
|
|
61
61
|
detailsSlot?: React.ReactNode;
|
|
62
|
-
/** Label shown above the itinerary/detailsSlot section. Defaults to "
|
|
62
|
+
/** Label shown above the itinerary/detailsSlot section. Defaults to "Details". */
|
|
63
63
|
itineraryLabel?: string;
|
|
64
64
|
}
|
|
65
65
|
interface OfferDepositInfo {
|
|
@@ -180,7 +180,7 @@ declare function OfferAdventureCard({ adventure }: {
|
|
|
180
180
|
}): react_jsx_runtime.JSX.Element;
|
|
181
181
|
declare function Offer({ logo, logoAlt, title, subtitle, adventures, subtotal, total, depositInfo, agent, onContinue, continueLabel, externalBookingFlow, checkoutSlot, summaryNotesSlot, summaryDiscountLine, continueDisabled, className, }: OfferProps): react_jsx_runtime.JSX.Element;
|
|
182
182
|
|
|
183
|
-
type BookingStatus = "pending" | "confirmed" | "cancelled" | "completed";
|
|
183
|
+
type BookingStatus = "pending" | "confirmed" | "cancelled" | "completed" | "pendingRegistration" | "pendingPayment" | "pendingPaymentOverdue" | "complete";
|
|
184
184
|
interface BookingTraveller {
|
|
185
185
|
id: string;
|
|
186
186
|
firstName: string;
|
|
@@ -273,7 +273,7 @@ interface BookingAdventure {
|
|
|
273
273
|
/** Conteúdo rico de itinerário (HTML / ReactNode). Quando presente, substitui `description`
|
|
274
274
|
* e é renderizado SEMPRE VISÍVEL (fora do accordion). */
|
|
275
275
|
detailsSlot?: React.ReactNode;
|
|
276
|
-
/** Label acima do bloco de itinerário. Default: "
|
|
276
|
+
/** Label acima do bloco de detalhes/itinerário. Default: "Details". */
|
|
277
277
|
itineraryLabel?: string;
|
|
278
278
|
included?: string[];
|
|
279
279
|
notIncluded?: string[];
|
|
@@ -310,22 +310,44 @@ interface BookingDepositInfo {
|
|
|
310
310
|
* Mantém backward compat: consumers que não passam o valor conservam o
|
|
311
311
|
* comportamento antigo (dependente apenas de `isPaidInFull`). */
|
|
312
312
|
remainingAmountValue?: number;
|
|
313
|
+
/** Texto pré-formatado (ex.: "Due May 15, 2026" ou "Overdue"). Quando presente,
|
|
314
|
+
* exibido abaixo do botão "Pay remaining balance". */
|
|
315
|
+
dueDateLabel?: string;
|
|
316
|
+
/** Quando true, troca cor do botão "Pay remaining balance" para variante destructive. */
|
|
317
|
+
isOverdue?: boolean;
|
|
313
318
|
}
|
|
314
319
|
interface BookingDetailsProps {
|
|
315
320
|
bookingId: string;
|
|
316
321
|
status: BookingStatus;
|
|
322
|
+
/** Texto exibido no badge de status. Quando ausente, usa um default em inglês baseado no `status`. */
|
|
323
|
+
statusLabel?: string;
|
|
317
324
|
createdAt: string;
|
|
318
325
|
contact: BookingContact;
|
|
326
|
+
/** Dados completos do agente para renderizar o `AgentContactCard` (avatar + email + whatsapp).
|
|
327
|
+
* Tem prioridade sobre `agentName` quando ambos forem passados. */
|
|
328
|
+
agent?: {
|
|
329
|
+
name?: string;
|
|
330
|
+
avatar?: string;
|
|
331
|
+
email?: string;
|
|
332
|
+
whatsappUrl?: string;
|
|
333
|
+
};
|
|
334
|
+
/** @deprecated Use `agent.name`. Mantido para retrocompat. */
|
|
319
335
|
agentName?: string;
|
|
320
336
|
agentContactUrl?: string;
|
|
321
|
-
/** Texto exibido no lugar do nome do agente quando `agentName` é falsy.
|
|
337
|
+
/** Texto exibido no lugar do nome do agente quando `agent.name`/`agentName` é falsy.
|
|
322
338
|
* Quando omitido, usa default "No agent assigned". O card do Agente é
|
|
323
|
-
* sempre renderizado (mesmo sem
|
|
339
|
+
* sempre renderizado (mesmo sem agent), com esse placeholder. */
|
|
324
340
|
agentNameFallback?: string;
|
|
325
341
|
/** Label do card do Agente. Default: "Your Agent". */
|
|
326
342
|
agentLabel?: string;
|
|
327
343
|
/** Label do botão/link de contato com o agente. Default: "Contact". */
|
|
328
344
|
agentContactLabel?: string;
|
|
345
|
+
/** Label do bloco de dados de contato (default: "Responsible Person"). */
|
|
346
|
+
contactSectionLabel?: string;
|
|
347
|
+
/** Label do botão "Pay remaining balance" (default: "Pay remaining balance"). */
|
|
348
|
+
payBalanceLabel?: string;
|
|
349
|
+
/** Label da linha "Balance due" no OrderSummary (default: "Balance due"). */
|
|
350
|
+
balanceDueLabel?: string;
|
|
329
351
|
/** Tooltip/title exibido nos botões de remove/unassign desabilitados
|
|
330
352
|
* quando a aventura tem apenas 1 viajante. Default: "Cannot remove last traveller". */
|
|
331
353
|
cannotRemoveLastTravellerLabel?: string;
|
|
@@ -375,7 +397,27 @@ interface BookingDetailsProps {
|
|
|
375
397
|
signOutLabel?: string;
|
|
376
398
|
className?: string;
|
|
377
399
|
}
|
|
378
|
-
declare function BookingDetails({ bookingId, status, createdAt, contact, agentName, agentContactUrl, agentNameFallback, agentLabel, agentContactLabel, cannotRemoveLastTravellerLabel, adventures, summaryLineItems, subtotal, total, depositInfo, onAddContactAsTraveller, onEditTraveller, onRemoveTraveller, onAddSuggestedTraveller, onAddTraveller, onUnassignFromAdventure, onCopyFormLink, onSubmitAddTraveller, onSubmitEditTraveller, onConfirmRemoveTraveller, travellerFormConfig, addTravellerSaving, editTravellerSaving, removeTravellerSaving, travellerFormError, onPayBalance, onCancelRequest, logoSrc, logoAlt, onSignOut, signOutLabel, className, }: BookingDetailsProps): react_jsx_runtime.JSX.Element;
|
|
400
|
+
declare function BookingDetails({ bookingId, status, statusLabel, createdAt, contact, agent, agentName, agentContactUrl, agentNameFallback, agentLabel, agentContactLabel, contactSectionLabel, payBalanceLabel, balanceDueLabel, cannotRemoveLastTravellerLabel, adventures, summaryLineItems, subtotal, total, depositInfo, onAddContactAsTraveller, onEditTraveller, onRemoveTraveller, onAddSuggestedTraveller, onAddTraveller, onUnassignFromAdventure, onCopyFormLink, onSubmitAddTraveller, onSubmitEditTraveller, onConfirmRemoveTraveller, travellerFormConfig, addTravellerSaving, editTravellerSaving, removeTravellerSaving, travellerFormError, onPayBalance, onCancelRequest, logoSrc, logoAlt, onSignOut, signOutLabel, className, }: BookingDetailsProps): react_jsx_runtime.JSX.Element;
|
|
401
|
+
|
|
402
|
+
interface AgentContactCardProps {
|
|
403
|
+
layout: "compact" | "wide";
|
|
404
|
+
name?: string;
|
|
405
|
+
avatar?: string;
|
|
406
|
+
email?: string;
|
|
407
|
+
whatsappUrl?: string;
|
|
408
|
+
/** Label do card. Default em `compact`: "Your Agent". */
|
|
409
|
+
label?: string;
|
|
410
|
+
/** Texto exibido quando não há nome — default: "No agent assigned". */
|
|
411
|
+
nameFallback?: string;
|
|
412
|
+
/** Fallback de contato genérico (ex.: usado por `BookingDetails` quando
|
|
413
|
+
* não há email/whatsapp e há um link bruto). Apenas no `compact`. */
|
|
414
|
+
legacyContactUrl?: string;
|
|
415
|
+
legacyContactLabel?: string;
|
|
416
|
+
/** Texto adicional descritivo (ex.: "your travel advisor"). Usado em `wide`. */
|
|
417
|
+
helperText?: string;
|
|
418
|
+
className?: string;
|
|
419
|
+
}
|
|
420
|
+
declare function AgentContactCard(props: AgentContactCardProps): react_jsx_runtime.JSX.Element;
|
|
379
421
|
|
|
380
422
|
interface BookingConfirmationLabels {
|
|
381
423
|
ctaButton?: string;
|
|
@@ -1622,4 +1664,4 @@ declare function LeadCapturePopup({ config: _config, }: {
|
|
|
1622
1664
|
config: LeadCapturePopupConfig;
|
|
1623
1665
|
}): react_jsx_runtime.JSX.Element | null;
|
|
1624
1666
|
|
|
1625
|
-
export { ActivityCard, type ActivityCardProps, type ActivityCardSize, Alert, type AlertProps, type AlertVariant, BirthDateField, type BirthDateFieldProps, type BookingAdventure, BookingConfirmation, BookingConfirmationEmail, type BookingConfirmationEmailLabels, type BookingConfirmationEmailProps, type BookingConfirmationLabels, type BookingConfirmationProps, BookingConfirmedCard, type BookingConfirmedCardProps, type BookingContact, type BookingDepositInfo, BookingDetails, type BookingDetailsProps, BookingForm, type BookingFormProps, type BookingFormValues, BookingOtpEmail, type BookingOtpEmailProps, BookingShell, type BookingShellProps, type BookingStatus, type BookingSummaryLineItem, type BookingTraveller, Button, type ButtonProps, COUNTRIES, type ConfirmationAdventure, type ConfirmationDepositInfo, type ConfirmationLineItem, type ConfirmationTraveller, CounterField, type CounterFieldProps, type CountryOption, CountrySearchField, type CountrySearchFieldProps, DEFAULT_HEADER_LINKS, DEFAULT_LANGUAGES, DatePickerField, type DatePickerFieldProps, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, type EmailTokens, type FilterGroup, type FilterItem, FilterPanel, type FilterPanelProps, FloatingInput, type FloatingInputProps, FloatingSelect, type FloatingSelectProps, Itinerary, type ItineraryProps, type ItineraryRoute, type ItineraryStop, LOGO_PLANETAEXO_DATA_URI, LeadCapturePopup, type LeadCapturePopupConfig, MenuTrip, type MenuTripProps, type MenuTripSection, type MenuTripVariant, OTPCodeInput, type OTPCodeInputProps, Offer, OfferAdventureCard, type OfferAdventureItem, type OfferAgentInfo, type OfferDepositInfo, type OfferOptionalItem, type OfferProps, type OfferSummaryLineItem, PaymentAmountSelector, type PaymentAmountSelectorProps, type PaymentMethodOption, PaymentMethodSelector, type PaymentMethodSelectorProps, PaymentModalShell, type PaymentModalShellProps, PhoneCountrySelect, PhotoGallery, type PhotoGalleryPhoto, type PhotoGalleryProps, type PhotoGalleryVariant, type PricingOption, PricingTrip, type PricingTripProps, type PricingTripVariant, type RegistrationAdventure, type RegistrationBooking, type RegistrationEmergencyContactValue, type RegistrationField, type RegistrationFieldOption, type RegistrationFieldType, type RegistrationFieldValue, RegistrationForm, type RegistrationFormLabels, type RegistrationFormProps, type RegistrationFormValues, type RegistrationNameValue, type RegistrationPhoneValue, RegistrationSuccessCard, type RegistrationSuccessCardProps, type RegistrationTerms, type RegistrationTraveller, SiteHeader, type SiteHeaderLanguage, type SiteHeaderLink, type SiteHeaderProps, type SiteHeaderSubItem, type SiteHeaderVariant, type StripeAppearance, type SuggestedTraveller, TERMS_ACCEPT_KEY, TermsSection, type TermsSectionProps, ThemeToggle, Toast, type ToastProps, type ToastVariant, type TravellerFormConfig, type TravellerFormData, TravellerFormInviteEmail, type TravellerFormInviteEmailLabels, type TravellerFormInviteEmailProps, type TravellerFormInviteLink, type TravellerFormLabels, TripCard, type TripCardCta, type TripCardProps, type TripCardSize, type TripCardStatus, type TripDuration, type TripFaq, TripHeader, type TripHeaderProps, type TripHighlight, type TripInfoGroup, type TripItineraryStep, type TripMeetingPoint, TripPage, type TripPageProps, type TripPricingOption, type TripReview, buttonVariants, cn, emailTokens, getStripeAppearance, stripeAppearance, wrapEmailHtml };
|
|
1667
|
+
export { ActivityCard, type ActivityCardProps, type ActivityCardSize, AgentContactCard, type AgentContactCardProps, Alert, type AlertProps, type AlertVariant, BirthDateField, type BirthDateFieldProps, type BookingAdventure, BookingConfirmation, BookingConfirmationEmail, type BookingConfirmationEmailLabels, type BookingConfirmationEmailProps, type BookingConfirmationLabels, type BookingConfirmationProps, BookingConfirmedCard, type BookingConfirmedCardProps, type BookingContact, type BookingDepositInfo, BookingDetails, type BookingDetailsProps, BookingForm, type BookingFormProps, type BookingFormValues, BookingOtpEmail, type BookingOtpEmailProps, BookingShell, type BookingShellProps, type BookingStatus, type BookingSummaryLineItem, type BookingTraveller, Button, type ButtonProps, COUNTRIES, type ConfirmationAdventure, type ConfirmationDepositInfo, type ConfirmationLineItem, type ConfirmationTraveller, CounterField, type CounterFieldProps, type CountryOption, CountrySearchField, type CountrySearchFieldProps, DEFAULT_HEADER_LINKS, DEFAULT_LANGUAGES, DatePickerField, type DatePickerFieldProps, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, type EmailTokens, type FilterGroup, type FilterItem, FilterPanel, type FilterPanelProps, FloatingInput, type FloatingInputProps, FloatingSelect, type FloatingSelectProps, Itinerary, type ItineraryProps, type ItineraryRoute, type ItineraryStop, LOGO_PLANETAEXO_DATA_URI, LeadCapturePopup, type LeadCapturePopupConfig, MenuTrip, type MenuTripProps, type MenuTripSection, type MenuTripVariant, OTPCodeInput, type OTPCodeInputProps, Offer, OfferAdventureCard, type OfferAdventureItem, type OfferAgentInfo, type OfferDepositInfo, type OfferOptionalItem, type OfferProps, type OfferSummaryLineItem, PaymentAmountSelector, type PaymentAmountSelectorProps, type PaymentMethodOption, PaymentMethodSelector, type PaymentMethodSelectorProps, PaymentModalShell, type PaymentModalShellProps, PhoneCountrySelect, PhotoGallery, type PhotoGalleryPhoto, type PhotoGalleryProps, type PhotoGalleryVariant, type PricingOption, PricingTrip, type PricingTripProps, type PricingTripVariant, type RegistrationAdventure, type RegistrationBooking, type RegistrationEmergencyContactValue, type RegistrationField, type RegistrationFieldOption, type RegistrationFieldType, type RegistrationFieldValue, RegistrationForm, type RegistrationFormLabels, type RegistrationFormProps, type RegistrationFormValues, type RegistrationNameValue, type RegistrationPhoneValue, RegistrationSuccessCard, type RegistrationSuccessCardProps, type RegistrationTerms, type RegistrationTraveller, SiteHeader, type SiteHeaderLanguage, type SiteHeaderLink, type SiteHeaderProps, type SiteHeaderSubItem, type SiteHeaderVariant, type StripeAppearance, type SuggestedTraveller, TERMS_ACCEPT_KEY, TermsSection, type TermsSectionProps, ThemeToggle, Toast, type ToastProps, type ToastVariant, type TravellerFormConfig, type TravellerFormData, TravellerFormInviteEmail, type TravellerFormInviteEmailLabels, type TravellerFormInviteEmailProps, type TravellerFormInviteLink, type TravellerFormLabels, TripCard, type TripCardCta, type TripCardProps, type TripCardSize, type TripCardStatus, type TripDuration, type TripFaq, TripHeader, type TripHeaderProps, type TripHighlight, type TripInfoGroup, type TripItineraryStep, type TripMeetingPoint, TripPage, type TripPageProps, type TripPricingOption, type TripReview, buttonVariants, cn, emailTokens, getStripeAppearance, stripeAppearance, wrapEmailHtml };
|
package/dist/index.d.ts
CHANGED
|
@@ -59,7 +59,7 @@ interface OfferAdventureItem {
|
|
|
59
59
|
onRemove?: () => void;
|
|
60
60
|
/** Extra rich content below the standard blocks (e.g. traveller table, HTML itinerary from the host app). */
|
|
61
61
|
detailsSlot?: React.ReactNode;
|
|
62
|
-
/** Label shown above the itinerary/detailsSlot section. Defaults to "
|
|
62
|
+
/** Label shown above the itinerary/detailsSlot section. Defaults to "Details". */
|
|
63
63
|
itineraryLabel?: string;
|
|
64
64
|
}
|
|
65
65
|
interface OfferDepositInfo {
|
|
@@ -180,7 +180,7 @@ declare function OfferAdventureCard({ adventure }: {
|
|
|
180
180
|
}): react_jsx_runtime.JSX.Element;
|
|
181
181
|
declare function Offer({ logo, logoAlt, title, subtitle, adventures, subtotal, total, depositInfo, agent, onContinue, continueLabel, externalBookingFlow, checkoutSlot, summaryNotesSlot, summaryDiscountLine, continueDisabled, className, }: OfferProps): react_jsx_runtime.JSX.Element;
|
|
182
182
|
|
|
183
|
-
type BookingStatus = "pending" | "confirmed" | "cancelled" | "completed";
|
|
183
|
+
type BookingStatus = "pending" | "confirmed" | "cancelled" | "completed" | "pendingRegistration" | "pendingPayment" | "pendingPaymentOverdue" | "complete";
|
|
184
184
|
interface BookingTraveller {
|
|
185
185
|
id: string;
|
|
186
186
|
firstName: string;
|
|
@@ -273,7 +273,7 @@ interface BookingAdventure {
|
|
|
273
273
|
/** Conteúdo rico de itinerário (HTML / ReactNode). Quando presente, substitui `description`
|
|
274
274
|
* e é renderizado SEMPRE VISÍVEL (fora do accordion). */
|
|
275
275
|
detailsSlot?: React.ReactNode;
|
|
276
|
-
/** Label acima do bloco de itinerário. Default: "
|
|
276
|
+
/** Label acima do bloco de detalhes/itinerário. Default: "Details". */
|
|
277
277
|
itineraryLabel?: string;
|
|
278
278
|
included?: string[];
|
|
279
279
|
notIncluded?: string[];
|
|
@@ -310,22 +310,44 @@ interface BookingDepositInfo {
|
|
|
310
310
|
* Mantém backward compat: consumers que não passam o valor conservam o
|
|
311
311
|
* comportamento antigo (dependente apenas de `isPaidInFull`). */
|
|
312
312
|
remainingAmountValue?: number;
|
|
313
|
+
/** Texto pré-formatado (ex.: "Due May 15, 2026" ou "Overdue"). Quando presente,
|
|
314
|
+
* exibido abaixo do botão "Pay remaining balance". */
|
|
315
|
+
dueDateLabel?: string;
|
|
316
|
+
/** Quando true, troca cor do botão "Pay remaining balance" para variante destructive. */
|
|
317
|
+
isOverdue?: boolean;
|
|
313
318
|
}
|
|
314
319
|
interface BookingDetailsProps {
|
|
315
320
|
bookingId: string;
|
|
316
321
|
status: BookingStatus;
|
|
322
|
+
/** Texto exibido no badge de status. Quando ausente, usa um default em inglês baseado no `status`. */
|
|
323
|
+
statusLabel?: string;
|
|
317
324
|
createdAt: string;
|
|
318
325
|
contact: BookingContact;
|
|
326
|
+
/** Dados completos do agente para renderizar o `AgentContactCard` (avatar + email + whatsapp).
|
|
327
|
+
* Tem prioridade sobre `agentName` quando ambos forem passados. */
|
|
328
|
+
agent?: {
|
|
329
|
+
name?: string;
|
|
330
|
+
avatar?: string;
|
|
331
|
+
email?: string;
|
|
332
|
+
whatsappUrl?: string;
|
|
333
|
+
};
|
|
334
|
+
/** @deprecated Use `agent.name`. Mantido para retrocompat. */
|
|
319
335
|
agentName?: string;
|
|
320
336
|
agentContactUrl?: string;
|
|
321
|
-
/** Texto exibido no lugar do nome do agente quando `agentName` é falsy.
|
|
337
|
+
/** Texto exibido no lugar do nome do agente quando `agent.name`/`agentName` é falsy.
|
|
322
338
|
* Quando omitido, usa default "No agent assigned". O card do Agente é
|
|
323
|
-
* sempre renderizado (mesmo sem
|
|
339
|
+
* sempre renderizado (mesmo sem agent), com esse placeholder. */
|
|
324
340
|
agentNameFallback?: string;
|
|
325
341
|
/** Label do card do Agente. Default: "Your Agent". */
|
|
326
342
|
agentLabel?: string;
|
|
327
343
|
/** Label do botão/link de contato com o agente. Default: "Contact". */
|
|
328
344
|
agentContactLabel?: string;
|
|
345
|
+
/** Label do bloco de dados de contato (default: "Responsible Person"). */
|
|
346
|
+
contactSectionLabel?: string;
|
|
347
|
+
/** Label do botão "Pay remaining balance" (default: "Pay remaining balance"). */
|
|
348
|
+
payBalanceLabel?: string;
|
|
349
|
+
/** Label da linha "Balance due" no OrderSummary (default: "Balance due"). */
|
|
350
|
+
balanceDueLabel?: string;
|
|
329
351
|
/** Tooltip/title exibido nos botões de remove/unassign desabilitados
|
|
330
352
|
* quando a aventura tem apenas 1 viajante. Default: "Cannot remove last traveller". */
|
|
331
353
|
cannotRemoveLastTravellerLabel?: string;
|
|
@@ -375,7 +397,27 @@ interface BookingDetailsProps {
|
|
|
375
397
|
signOutLabel?: string;
|
|
376
398
|
className?: string;
|
|
377
399
|
}
|
|
378
|
-
declare function BookingDetails({ bookingId, status, createdAt, contact, agentName, agentContactUrl, agentNameFallback, agentLabel, agentContactLabel, cannotRemoveLastTravellerLabel, adventures, summaryLineItems, subtotal, total, depositInfo, onAddContactAsTraveller, onEditTraveller, onRemoveTraveller, onAddSuggestedTraveller, onAddTraveller, onUnassignFromAdventure, onCopyFormLink, onSubmitAddTraveller, onSubmitEditTraveller, onConfirmRemoveTraveller, travellerFormConfig, addTravellerSaving, editTravellerSaving, removeTravellerSaving, travellerFormError, onPayBalance, onCancelRequest, logoSrc, logoAlt, onSignOut, signOutLabel, className, }: BookingDetailsProps): react_jsx_runtime.JSX.Element;
|
|
400
|
+
declare function BookingDetails({ bookingId, status, statusLabel, createdAt, contact, agent, agentName, agentContactUrl, agentNameFallback, agentLabel, agentContactLabel, contactSectionLabel, payBalanceLabel, balanceDueLabel, cannotRemoveLastTravellerLabel, adventures, summaryLineItems, subtotal, total, depositInfo, onAddContactAsTraveller, onEditTraveller, onRemoveTraveller, onAddSuggestedTraveller, onAddTraveller, onUnassignFromAdventure, onCopyFormLink, onSubmitAddTraveller, onSubmitEditTraveller, onConfirmRemoveTraveller, travellerFormConfig, addTravellerSaving, editTravellerSaving, removeTravellerSaving, travellerFormError, onPayBalance, onCancelRequest, logoSrc, logoAlt, onSignOut, signOutLabel, className, }: BookingDetailsProps): react_jsx_runtime.JSX.Element;
|
|
401
|
+
|
|
402
|
+
interface AgentContactCardProps {
|
|
403
|
+
layout: "compact" | "wide";
|
|
404
|
+
name?: string;
|
|
405
|
+
avatar?: string;
|
|
406
|
+
email?: string;
|
|
407
|
+
whatsappUrl?: string;
|
|
408
|
+
/** Label do card. Default em `compact`: "Your Agent". */
|
|
409
|
+
label?: string;
|
|
410
|
+
/** Texto exibido quando não há nome — default: "No agent assigned". */
|
|
411
|
+
nameFallback?: string;
|
|
412
|
+
/** Fallback de contato genérico (ex.: usado por `BookingDetails` quando
|
|
413
|
+
* não há email/whatsapp e há um link bruto). Apenas no `compact`. */
|
|
414
|
+
legacyContactUrl?: string;
|
|
415
|
+
legacyContactLabel?: string;
|
|
416
|
+
/** Texto adicional descritivo (ex.: "your travel advisor"). Usado em `wide`. */
|
|
417
|
+
helperText?: string;
|
|
418
|
+
className?: string;
|
|
419
|
+
}
|
|
420
|
+
declare function AgentContactCard(props: AgentContactCardProps): react_jsx_runtime.JSX.Element;
|
|
379
421
|
|
|
380
422
|
interface BookingConfirmationLabels {
|
|
381
423
|
ctaButton?: string;
|
|
@@ -1622,4 +1664,4 @@ declare function LeadCapturePopup({ config: _config, }: {
|
|
|
1622
1664
|
config: LeadCapturePopupConfig;
|
|
1623
1665
|
}): react_jsx_runtime.JSX.Element | null;
|
|
1624
1666
|
|
|
1625
|
-
export { ActivityCard, type ActivityCardProps, type ActivityCardSize, Alert, type AlertProps, type AlertVariant, BirthDateField, type BirthDateFieldProps, type BookingAdventure, BookingConfirmation, BookingConfirmationEmail, type BookingConfirmationEmailLabels, type BookingConfirmationEmailProps, type BookingConfirmationLabels, type BookingConfirmationProps, BookingConfirmedCard, type BookingConfirmedCardProps, type BookingContact, type BookingDepositInfo, BookingDetails, type BookingDetailsProps, BookingForm, type BookingFormProps, type BookingFormValues, BookingOtpEmail, type BookingOtpEmailProps, BookingShell, type BookingShellProps, type BookingStatus, type BookingSummaryLineItem, type BookingTraveller, Button, type ButtonProps, COUNTRIES, type ConfirmationAdventure, type ConfirmationDepositInfo, type ConfirmationLineItem, type ConfirmationTraveller, CounterField, type CounterFieldProps, type CountryOption, CountrySearchField, type CountrySearchFieldProps, DEFAULT_HEADER_LINKS, DEFAULT_LANGUAGES, DatePickerField, type DatePickerFieldProps, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, type EmailTokens, type FilterGroup, type FilterItem, FilterPanel, type FilterPanelProps, FloatingInput, type FloatingInputProps, FloatingSelect, type FloatingSelectProps, Itinerary, type ItineraryProps, type ItineraryRoute, type ItineraryStop, LOGO_PLANETAEXO_DATA_URI, LeadCapturePopup, type LeadCapturePopupConfig, MenuTrip, type MenuTripProps, type MenuTripSection, type MenuTripVariant, OTPCodeInput, type OTPCodeInputProps, Offer, OfferAdventureCard, type OfferAdventureItem, type OfferAgentInfo, type OfferDepositInfo, type OfferOptionalItem, type OfferProps, type OfferSummaryLineItem, PaymentAmountSelector, type PaymentAmountSelectorProps, type PaymentMethodOption, PaymentMethodSelector, type PaymentMethodSelectorProps, PaymentModalShell, type PaymentModalShellProps, PhoneCountrySelect, PhotoGallery, type PhotoGalleryPhoto, type PhotoGalleryProps, type PhotoGalleryVariant, type PricingOption, PricingTrip, type PricingTripProps, type PricingTripVariant, type RegistrationAdventure, type RegistrationBooking, type RegistrationEmergencyContactValue, type RegistrationField, type RegistrationFieldOption, type RegistrationFieldType, type RegistrationFieldValue, RegistrationForm, type RegistrationFormLabels, type RegistrationFormProps, type RegistrationFormValues, type RegistrationNameValue, type RegistrationPhoneValue, RegistrationSuccessCard, type RegistrationSuccessCardProps, type RegistrationTerms, type RegistrationTraveller, SiteHeader, type SiteHeaderLanguage, type SiteHeaderLink, type SiteHeaderProps, type SiteHeaderSubItem, type SiteHeaderVariant, type StripeAppearance, type SuggestedTraveller, TERMS_ACCEPT_KEY, TermsSection, type TermsSectionProps, ThemeToggle, Toast, type ToastProps, type ToastVariant, type TravellerFormConfig, type TravellerFormData, TravellerFormInviteEmail, type TravellerFormInviteEmailLabels, type TravellerFormInviteEmailProps, type TravellerFormInviteLink, type TravellerFormLabels, TripCard, type TripCardCta, type TripCardProps, type TripCardSize, type TripCardStatus, type TripDuration, type TripFaq, TripHeader, type TripHeaderProps, type TripHighlight, type TripInfoGroup, type TripItineraryStep, type TripMeetingPoint, TripPage, type TripPageProps, type TripPricingOption, type TripReview, buttonVariants, cn, emailTokens, getStripeAppearance, stripeAppearance, wrapEmailHtml };
|
|
1667
|
+
export { ActivityCard, type ActivityCardProps, type ActivityCardSize, AgentContactCard, type AgentContactCardProps, Alert, type AlertProps, type AlertVariant, BirthDateField, type BirthDateFieldProps, type BookingAdventure, BookingConfirmation, BookingConfirmationEmail, type BookingConfirmationEmailLabels, type BookingConfirmationEmailProps, type BookingConfirmationLabels, type BookingConfirmationProps, BookingConfirmedCard, type BookingConfirmedCardProps, type BookingContact, type BookingDepositInfo, BookingDetails, type BookingDetailsProps, BookingForm, type BookingFormProps, type BookingFormValues, BookingOtpEmail, type BookingOtpEmailProps, BookingShell, type BookingShellProps, type BookingStatus, type BookingSummaryLineItem, type BookingTraveller, Button, type ButtonProps, COUNTRIES, type ConfirmationAdventure, type ConfirmationDepositInfo, type ConfirmationLineItem, type ConfirmationTraveller, CounterField, type CounterFieldProps, type CountryOption, CountrySearchField, type CountrySearchFieldProps, DEFAULT_HEADER_LINKS, DEFAULT_LANGUAGES, DatePickerField, type DatePickerFieldProps, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, type EmailTokens, type FilterGroup, type FilterItem, FilterPanel, type FilterPanelProps, FloatingInput, type FloatingInputProps, FloatingSelect, type FloatingSelectProps, Itinerary, type ItineraryProps, type ItineraryRoute, type ItineraryStop, LOGO_PLANETAEXO_DATA_URI, LeadCapturePopup, type LeadCapturePopupConfig, MenuTrip, type MenuTripProps, type MenuTripSection, type MenuTripVariant, OTPCodeInput, type OTPCodeInputProps, Offer, OfferAdventureCard, type OfferAdventureItem, type OfferAgentInfo, type OfferDepositInfo, type OfferOptionalItem, type OfferProps, type OfferSummaryLineItem, PaymentAmountSelector, type PaymentAmountSelectorProps, type PaymentMethodOption, PaymentMethodSelector, type PaymentMethodSelectorProps, PaymentModalShell, type PaymentModalShellProps, PhoneCountrySelect, PhotoGallery, type PhotoGalleryPhoto, type PhotoGalleryProps, type PhotoGalleryVariant, type PricingOption, PricingTrip, type PricingTripProps, type PricingTripVariant, type RegistrationAdventure, type RegistrationBooking, type RegistrationEmergencyContactValue, type RegistrationField, type RegistrationFieldOption, type RegistrationFieldType, type RegistrationFieldValue, RegistrationForm, type RegistrationFormLabels, type RegistrationFormProps, type RegistrationFormValues, type RegistrationNameValue, type RegistrationPhoneValue, RegistrationSuccessCard, type RegistrationSuccessCardProps, type RegistrationTerms, type RegistrationTraveller, SiteHeader, type SiteHeaderLanguage, type SiteHeaderLink, type SiteHeaderProps, type SiteHeaderSubItem, type SiteHeaderVariant, type StripeAppearance, type SuggestedTraveller, TERMS_ACCEPT_KEY, TermsSection, type TermsSectionProps, ThemeToggle, Toast, type ToastProps, type ToastVariant, type TravellerFormConfig, type TravellerFormData, TravellerFormInviteEmail, type TravellerFormInviteEmailLabels, type TravellerFormInviteEmailProps, type TravellerFormInviteLink, type TravellerFormLabels, TripCard, type TripCardCta, type TripCardProps, type TripCardSize, type TripCardStatus, type TripDuration, type TripFaq, TripHeader, type TripHeaderProps, type TripHighlight, type TripInfoGroup, type TripItineraryStep, type TripMeetingPoint, TripPage, type TripPageProps, type TripPricingOption, type TripReview, buttonVariants, cn, emailTokens, getStripeAppearance, stripeAppearance, wrapEmailHtml };
|