@planetaexo/design-system 0.6.0 → 0.8.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 +614 -212
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +83 -3
- package/dist/index.d.ts +83 -3
- package/dist/index.js +614 -212
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -189,6 +189,57 @@ interface BookingTraveller {
|
|
|
189
189
|
status: "completed" | "pending";
|
|
190
190
|
isChild?: boolean;
|
|
191
191
|
formUrl?: string;
|
|
192
|
+
/** Usado pelos modais internos (edit) para pré-popular o formulário. */
|
|
193
|
+
documentNumber?: string;
|
|
194
|
+
/** Usado pelos modais internos (edit) para pré-popular o formulário. */
|
|
195
|
+
phone?: string;
|
|
196
|
+
/** "YYYY-MM-DD" — usado pelos modais internos (edit) para pré-popular o formulário. */
|
|
197
|
+
birthDate?: string;
|
|
198
|
+
/** Usado pelos modais internos (edit) para pré-popular o formulário. */
|
|
199
|
+
personType?: "ADULT" | "CHILD" | "SENIOR";
|
|
200
|
+
}
|
|
201
|
+
interface TravellerFormData {
|
|
202
|
+
firstName: string;
|
|
203
|
+
lastName: string;
|
|
204
|
+
email?: string;
|
|
205
|
+
documentNumber?: string;
|
|
206
|
+
phone?: string;
|
|
207
|
+
/** "YYYY-MM-DD" */
|
|
208
|
+
birthDate?: string;
|
|
209
|
+
personType: "ADULT" | "CHILD" | "SENIOR";
|
|
210
|
+
}
|
|
211
|
+
interface TravellerFormLabels {
|
|
212
|
+
modalAddTitle?: string;
|
|
213
|
+
modalEditTitle?: string;
|
|
214
|
+
modalDeleteTitle?: string;
|
|
215
|
+
/** Usa `{name}` como placeholder para o nome do viajante. */
|
|
216
|
+
modalDeleteConfirm?: string;
|
|
217
|
+
firstName?: string;
|
|
218
|
+
lastName?: string;
|
|
219
|
+
email?: string;
|
|
220
|
+
documentCpf?: string;
|
|
221
|
+
documentPassport?: string;
|
|
222
|
+
phone?: string;
|
|
223
|
+
birthDate?: string;
|
|
224
|
+
personTypeLabel?: string;
|
|
225
|
+
personTypeAdult?: string;
|
|
226
|
+
personTypeChild?: string;
|
|
227
|
+
personTypeSenior?: string;
|
|
228
|
+
cancel?: string;
|
|
229
|
+
add?: string;
|
|
230
|
+
save?: string;
|
|
231
|
+
saving?: string;
|
|
232
|
+
delete?: string;
|
|
233
|
+
deleting?: string;
|
|
234
|
+
}
|
|
235
|
+
interface TravellerFormConfig {
|
|
236
|
+
/** Quando true, label do documento alterna para CPF; senão Passport. */
|
|
237
|
+
requireCpf?: boolean;
|
|
238
|
+
/** Lista de person types desabilitados nas selects. */
|
|
239
|
+
disabledPersonTypes?: Array<"ADULT" | "CHILD" | "SENIOR">;
|
|
240
|
+
/** Quando viajante é CHILD, mostrar email do contato (readonly) em vez de campo livre. */
|
|
241
|
+
childEmailFromContact?: string;
|
|
242
|
+
labels?: TravellerFormLabels;
|
|
192
243
|
}
|
|
193
244
|
interface SuggestedTraveller {
|
|
194
245
|
id: string;
|
|
@@ -260,19 +311,48 @@ interface BookingDetailsProps {
|
|
|
260
311
|
contact: BookingContact;
|
|
261
312
|
agentName?: string;
|
|
262
313
|
agentContactUrl?: string;
|
|
314
|
+
/** Texto exibido no lugar do nome do agente quando `agentName` é falsy.
|
|
315
|
+
* Quando omitido, usa default "No agent assigned". O card do Agente é
|
|
316
|
+
* sempre renderizado (mesmo sem `agentName`), com esse placeholder. */
|
|
317
|
+
agentNameFallback?: string;
|
|
318
|
+
/** Label do card do Agente. Default: "Your Agent". */
|
|
319
|
+
agentLabel?: string;
|
|
320
|
+
/** Label do botão/link de contato com o agente. Default: "Contact". */
|
|
321
|
+
agentContactLabel?: string;
|
|
322
|
+
/** Tooltip/title exibido nos botões de remove/unassign desabilitados
|
|
323
|
+
* quando a aventura tem apenas 1 viajante. Default: "Cannot remove last traveller". */
|
|
324
|
+
cannotRemoveLastTravellerLabel?: string;
|
|
263
325
|
adventures: BookingAdventure[];
|
|
264
326
|
summaryLineItems?: BookingSummaryLineItem[];
|
|
265
327
|
subtotal?: string;
|
|
266
328
|
total: string;
|
|
267
329
|
depositInfo?: BookingDepositInfo;
|
|
268
330
|
onAddContactAsTraveller?: (adventureId: string) => void;
|
|
331
|
+
/** API legada — quando presente, o DS dispara o callback e NÃO abre o modal interno de edit. */
|
|
269
332
|
onEditTraveller?: (adventureId: string, travellerId: string) => void;
|
|
333
|
+
/** API legada — quando presente, o DS dispara o callback e NÃO abre o modal interno de delete. */
|
|
270
334
|
onRemoveTraveller?: (adventureId: string, travellerId: string) => void;
|
|
271
335
|
onAddSuggestedTraveller?: (adventureId: string, travellerId: string) => void;
|
|
272
|
-
/**
|
|
336
|
+
/** API legada — quando presente, substitui o modal interno do DS ao clicar "More travellers". */
|
|
273
337
|
onAddTraveller?: (adventureId: string) => void;
|
|
274
338
|
/** Quando fornecida, desassocia o viajante da aventura sem deletá-lo da reserva. */
|
|
275
339
|
onUnassignFromAdventure?: (adventureId: string, travellerId: string) => void;
|
|
340
|
+
/** Submit do modal de ADD interno. Usado quando `onAddTraveller` NÃO é passado. */
|
|
341
|
+
onSubmitAddTraveller?: (adventureId: string, data: TravellerFormData) => Promise<void> | void;
|
|
342
|
+
/** Submit do modal de EDIT interno. Usado quando `onEditTraveller` NÃO é passado. */
|
|
343
|
+
onSubmitEditTraveller?: (adventureId: string, travellerId: string, data: TravellerFormData) => Promise<void> | void;
|
|
344
|
+
/** Confirmação do modal de DELETE interno. Usado quando `onRemoveTraveller` NÃO é passado. */
|
|
345
|
+
onConfirmRemoveTraveller?: (adventureId: string, travellerId: string) => Promise<void> | void;
|
|
346
|
+
/** Configuração (i18n + validação visual) dos formulários de traveller gerenciados pelo DS. */
|
|
347
|
+
travellerFormConfig?: TravellerFormConfig;
|
|
348
|
+
/** Estado de saving controlado externamente para o modal de ADD interno. */
|
|
349
|
+
addTravellerSaving?: boolean;
|
|
350
|
+
/** Estado de saving controlado externamente para o modal de EDIT interno. */
|
|
351
|
+
editTravellerSaving?: boolean;
|
|
352
|
+
/** Estado de saving controlado externamente para o modal de DELETE interno. */
|
|
353
|
+
removeTravellerSaving?: boolean;
|
|
354
|
+
/** Erro a exibir dentro do modal ativo (qualquer um dos três). */
|
|
355
|
+
travellerFormError?: string | null;
|
|
276
356
|
onPayBalance?: () => void;
|
|
277
357
|
onCancelRequest?: () => void;
|
|
278
358
|
/** URL da logo exibida no cabeçalho (centralizada). Quando omitido junto com `onSignOut`, o header não é renderizado. */
|
|
@@ -285,7 +365,7 @@ interface BookingDetailsProps {
|
|
|
285
365
|
signOutLabel?: string;
|
|
286
366
|
className?: string;
|
|
287
367
|
}
|
|
288
|
-
declare function BookingDetails({ bookingId, status, createdAt, contact, agentName, agentContactUrl, adventures, summaryLineItems, subtotal, total, depositInfo, onAddContactAsTraveller, onEditTraveller, onRemoveTraveller, onAddSuggestedTraveller, onAddTraveller, onUnassignFromAdventure, onPayBalance, onCancelRequest, logoSrc, logoAlt, onSignOut, signOutLabel, className, }: BookingDetailsProps): react_jsx_runtime.JSX.Element;
|
|
368
|
+
declare function BookingDetails({ bookingId, status, createdAt, contact, agentName, agentContactUrl, agentNameFallback, agentLabel, agentContactLabel, cannotRemoveLastTravellerLabel, adventures, summaryLineItems, subtotal, total, depositInfo, onAddContactAsTraveller, onEditTraveller, onRemoveTraveller, onAddSuggestedTraveller, onAddTraveller, onUnassignFromAdventure, onSubmitAddTraveller, onSubmitEditTraveller, onConfirmRemoveTraveller, travellerFormConfig, addTravellerSaving, editTravellerSaving, removeTravellerSaving, travellerFormError, onPayBalance, onCancelRequest, logoSrc, logoAlt, onSignOut, signOutLabel, className, }: BookingDetailsProps): react_jsx_runtime.JSX.Element;
|
|
289
369
|
|
|
290
370
|
interface BookingConfirmationLabels {
|
|
291
371
|
ctaButton?: string;
|
|
@@ -1515,4 +1595,4 @@ declare function LeadCapturePopup({ config: _config, }: {
|
|
|
1515
1595
|
config: LeadCapturePopupConfig;
|
|
1516
1596
|
}): react_jsx_runtime.JSX.Element | null;
|
|
1517
1597
|
|
|
1518
|
-
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 BookingOtpEmailLabels, 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, TravellerFormInviteEmail, type TravellerFormInviteEmailLabels, type TravellerFormInviteEmailProps, type TravellerFormInviteLink, 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 };
|
|
1598
|
+
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 BookingOtpEmailLabels, 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
|
@@ -189,6 +189,57 @@ interface BookingTraveller {
|
|
|
189
189
|
status: "completed" | "pending";
|
|
190
190
|
isChild?: boolean;
|
|
191
191
|
formUrl?: string;
|
|
192
|
+
/** Usado pelos modais internos (edit) para pré-popular o formulário. */
|
|
193
|
+
documentNumber?: string;
|
|
194
|
+
/** Usado pelos modais internos (edit) para pré-popular o formulário. */
|
|
195
|
+
phone?: string;
|
|
196
|
+
/** "YYYY-MM-DD" — usado pelos modais internos (edit) para pré-popular o formulário. */
|
|
197
|
+
birthDate?: string;
|
|
198
|
+
/** Usado pelos modais internos (edit) para pré-popular o formulário. */
|
|
199
|
+
personType?: "ADULT" | "CHILD" | "SENIOR";
|
|
200
|
+
}
|
|
201
|
+
interface TravellerFormData {
|
|
202
|
+
firstName: string;
|
|
203
|
+
lastName: string;
|
|
204
|
+
email?: string;
|
|
205
|
+
documentNumber?: string;
|
|
206
|
+
phone?: string;
|
|
207
|
+
/** "YYYY-MM-DD" */
|
|
208
|
+
birthDate?: string;
|
|
209
|
+
personType: "ADULT" | "CHILD" | "SENIOR";
|
|
210
|
+
}
|
|
211
|
+
interface TravellerFormLabels {
|
|
212
|
+
modalAddTitle?: string;
|
|
213
|
+
modalEditTitle?: string;
|
|
214
|
+
modalDeleteTitle?: string;
|
|
215
|
+
/** Usa `{name}` como placeholder para o nome do viajante. */
|
|
216
|
+
modalDeleteConfirm?: string;
|
|
217
|
+
firstName?: string;
|
|
218
|
+
lastName?: string;
|
|
219
|
+
email?: string;
|
|
220
|
+
documentCpf?: string;
|
|
221
|
+
documentPassport?: string;
|
|
222
|
+
phone?: string;
|
|
223
|
+
birthDate?: string;
|
|
224
|
+
personTypeLabel?: string;
|
|
225
|
+
personTypeAdult?: string;
|
|
226
|
+
personTypeChild?: string;
|
|
227
|
+
personTypeSenior?: string;
|
|
228
|
+
cancel?: string;
|
|
229
|
+
add?: string;
|
|
230
|
+
save?: string;
|
|
231
|
+
saving?: string;
|
|
232
|
+
delete?: string;
|
|
233
|
+
deleting?: string;
|
|
234
|
+
}
|
|
235
|
+
interface TravellerFormConfig {
|
|
236
|
+
/** Quando true, label do documento alterna para CPF; senão Passport. */
|
|
237
|
+
requireCpf?: boolean;
|
|
238
|
+
/** Lista de person types desabilitados nas selects. */
|
|
239
|
+
disabledPersonTypes?: Array<"ADULT" | "CHILD" | "SENIOR">;
|
|
240
|
+
/** Quando viajante é CHILD, mostrar email do contato (readonly) em vez de campo livre. */
|
|
241
|
+
childEmailFromContact?: string;
|
|
242
|
+
labels?: TravellerFormLabels;
|
|
192
243
|
}
|
|
193
244
|
interface SuggestedTraveller {
|
|
194
245
|
id: string;
|
|
@@ -260,19 +311,48 @@ interface BookingDetailsProps {
|
|
|
260
311
|
contact: BookingContact;
|
|
261
312
|
agentName?: string;
|
|
262
313
|
agentContactUrl?: string;
|
|
314
|
+
/** Texto exibido no lugar do nome do agente quando `agentName` é falsy.
|
|
315
|
+
* Quando omitido, usa default "No agent assigned". O card do Agente é
|
|
316
|
+
* sempre renderizado (mesmo sem `agentName`), com esse placeholder. */
|
|
317
|
+
agentNameFallback?: string;
|
|
318
|
+
/** Label do card do Agente. Default: "Your Agent". */
|
|
319
|
+
agentLabel?: string;
|
|
320
|
+
/** Label do botão/link de contato com o agente. Default: "Contact". */
|
|
321
|
+
agentContactLabel?: string;
|
|
322
|
+
/** Tooltip/title exibido nos botões de remove/unassign desabilitados
|
|
323
|
+
* quando a aventura tem apenas 1 viajante. Default: "Cannot remove last traveller". */
|
|
324
|
+
cannotRemoveLastTravellerLabel?: string;
|
|
263
325
|
adventures: BookingAdventure[];
|
|
264
326
|
summaryLineItems?: BookingSummaryLineItem[];
|
|
265
327
|
subtotal?: string;
|
|
266
328
|
total: string;
|
|
267
329
|
depositInfo?: BookingDepositInfo;
|
|
268
330
|
onAddContactAsTraveller?: (adventureId: string) => void;
|
|
331
|
+
/** API legada — quando presente, o DS dispara o callback e NÃO abre o modal interno de edit. */
|
|
269
332
|
onEditTraveller?: (adventureId: string, travellerId: string) => void;
|
|
333
|
+
/** API legada — quando presente, o DS dispara o callback e NÃO abre o modal interno de delete. */
|
|
270
334
|
onRemoveTraveller?: (adventureId: string, travellerId: string) => void;
|
|
271
335
|
onAddSuggestedTraveller?: (adventureId: string, travellerId: string) => void;
|
|
272
|
-
/**
|
|
336
|
+
/** API legada — quando presente, substitui o modal interno do DS ao clicar "More travellers". */
|
|
273
337
|
onAddTraveller?: (adventureId: string) => void;
|
|
274
338
|
/** Quando fornecida, desassocia o viajante da aventura sem deletá-lo da reserva. */
|
|
275
339
|
onUnassignFromAdventure?: (adventureId: string, travellerId: string) => void;
|
|
340
|
+
/** Submit do modal de ADD interno. Usado quando `onAddTraveller` NÃO é passado. */
|
|
341
|
+
onSubmitAddTraveller?: (adventureId: string, data: TravellerFormData) => Promise<void> | void;
|
|
342
|
+
/** Submit do modal de EDIT interno. Usado quando `onEditTraveller` NÃO é passado. */
|
|
343
|
+
onSubmitEditTraveller?: (adventureId: string, travellerId: string, data: TravellerFormData) => Promise<void> | void;
|
|
344
|
+
/** Confirmação do modal de DELETE interno. Usado quando `onRemoveTraveller` NÃO é passado. */
|
|
345
|
+
onConfirmRemoveTraveller?: (adventureId: string, travellerId: string) => Promise<void> | void;
|
|
346
|
+
/** Configuração (i18n + validação visual) dos formulários de traveller gerenciados pelo DS. */
|
|
347
|
+
travellerFormConfig?: TravellerFormConfig;
|
|
348
|
+
/** Estado de saving controlado externamente para o modal de ADD interno. */
|
|
349
|
+
addTravellerSaving?: boolean;
|
|
350
|
+
/** Estado de saving controlado externamente para o modal de EDIT interno. */
|
|
351
|
+
editTravellerSaving?: boolean;
|
|
352
|
+
/** Estado de saving controlado externamente para o modal de DELETE interno. */
|
|
353
|
+
removeTravellerSaving?: boolean;
|
|
354
|
+
/** Erro a exibir dentro do modal ativo (qualquer um dos três). */
|
|
355
|
+
travellerFormError?: string | null;
|
|
276
356
|
onPayBalance?: () => void;
|
|
277
357
|
onCancelRequest?: () => void;
|
|
278
358
|
/** URL da logo exibida no cabeçalho (centralizada). Quando omitido junto com `onSignOut`, o header não é renderizado. */
|
|
@@ -285,7 +365,7 @@ interface BookingDetailsProps {
|
|
|
285
365
|
signOutLabel?: string;
|
|
286
366
|
className?: string;
|
|
287
367
|
}
|
|
288
|
-
declare function BookingDetails({ bookingId, status, createdAt, contact, agentName, agentContactUrl, adventures, summaryLineItems, subtotal, total, depositInfo, onAddContactAsTraveller, onEditTraveller, onRemoveTraveller, onAddSuggestedTraveller, onAddTraveller, onUnassignFromAdventure, onPayBalance, onCancelRequest, logoSrc, logoAlt, onSignOut, signOutLabel, className, }: BookingDetailsProps): react_jsx_runtime.JSX.Element;
|
|
368
|
+
declare function BookingDetails({ bookingId, status, createdAt, contact, agentName, agentContactUrl, agentNameFallback, agentLabel, agentContactLabel, cannotRemoveLastTravellerLabel, adventures, summaryLineItems, subtotal, total, depositInfo, onAddContactAsTraveller, onEditTraveller, onRemoveTraveller, onAddSuggestedTraveller, onAddTraveller, onUnassignFromAdventure, onSubmitAddTraveller, onSubmitEditTraveller, onConfirmRemoveTraveller, travellerFormConfig, addTravellerSaving, editTravellerSaving, removeTravellerSaving, travellerFormError, onPayBalance, onCancelRequest, logoSrc, logoAlt, onSignOut, signOutLabel, className, }: BookingDetailsProps): react_jsx_runtime.JSX.Element;
|
|
289
369
|
|
|
290
370
|
interface BookingConfirmationLabels {
|
|
291
371
|
ctaButton?: string;
|
|
@@ -1515,4 +1595,4 @@ declare function LeadCapturePopup({ config: _config, }: {
|
|
|
1515
1595
|
config: LeadCapturePopupConfig;
|
|
1516
1596
|
}): react_jsx_runtime.JSX.Element | null;
|
|
1517
1597
|
|
|
1518
|
-
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 BookingOtpEmailLabels, 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, TravellerFormInviteEmail, type TravellerFormInviteEmailLabels, type TravellerFormInviteEmailProps, type TravellerFormInviteLink, 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 };
|
|
1598
|
+
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 BookingOtpEmailLabels, 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 };
|