@planetaexo/design-system 0.5.5 → 0.7.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 +654 -264
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +92 -3
- package/dist/index.d.ts +92 -3
- package/dist/index.js +655 -265
- 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;
|
|
@@ -219,6 +270,11 @@ interface BookingAdventure {
|
|
|
219
270
|
tags?: string[];
|
|
220
271
|
travellers: BookingTraveller[];
|
|
221
272
|
description?: string;
|
|
273
|
+
/** Conteúdo rico de itinerário (HTML / ReactNode). Quando presente, substitui `description`
|
|
274
|
+
* e é renderizado SEMPRE VISÍVEL (fora do accordion). */
|
|
275
|
+
detailsSlot?: React.ReactNode;
|
|
276
|
+
/** Label acima do bloco de itinerário. Default: "Itinerary". */
|
|
277
|
+
itineraryLabel?: string;
|
|
222
278
|
included?: string[];
|
|
223
279
|
notIncluded?: string[];
|
|
224
280
|
cancellationPolicy?: string[];
|
|
@@ -226,6 +282,8 @@ interface BookingAdventure {
|
|
|
226
282
|
subtotal?: string;
|
|
227
283
|
suggestedTravellers?: SuggestedTraveller[];
|
|
228
284
|
formName?: string;
|
|
285
|
+
/** Quando true, desabilita o botão "Add contact as traveller" desta aventura. */
|
|
286
|
+
addContactAsTravellerDisabled?: boolean;
|
|
229
287
|
}
|
|
230
288
|
interface BookingContact {
|
|
231
289
|
name: string;
|
|
@@ -240,6 +298,11 @@ interface BookingDepositInfo {
|
|
|
240
298
|
remainingAmount: string;
|
|
241
299
|
balanceDueDate: string;
|
|
242
300
|
isPaidInFull?: boolean;
|
|
301
|
+
/** Valor numérico do saldo restante (em unidade monetária). Quando fornecido,
|
|
302
|
+
* o botão "Pay remaining balance" só é renderizado se > 0.
|
|
303
|
+
* Mantém backward compat: consumers que não passam o valor conservam o
|
|
304
|
+
* comportamento antigo (dependente apenas de `isPaidInFull`). */
|
|
305
|
+
remainingAmountValue?: number;
|
|
243
306
|
}
|
|
244
307
|
interface BookingDetailsProps {
|
|
245
308
|
bookingId: string;
|
|
@@ -254,18 +317,44 @@ interface BookingDetailsProps {
|
|
|
254
317
|
total: string;
|
|
255
318
|
depositInfo?: BookingDepositInfo;
|
|
256
319
|
onAddContactAsTraveller?: (adventureId: string) => void;
|
|
320
|
+
/** API legada — quando presente, o DS dispara o callback e NÃO abre o modal interno de edit. */
|
|
257
321
|
onEditTraveller?: (adventureId: string, travellerId: string) => void;
|
|
322
|
+
/** API legada — quando presente, o DS dispara o callback e NÃO abre o modal interno de delete. */
|
|
258
323
|
onRemoveTraveller?: (adventureId: string, travellerId: string) => void;
|
|
259
324
|
onAddSuggestedTraveller?: (adventureId: string, travellerId: string) => void;
|
|
260
|
-
/**
|
|
325
|
+
/** API legada — quando presente, substitui o modal interno do DS ao clicar "More travellers". */
|
|
261
326
|
onAddTraveller?: (adventureId: string) => void;
|
|
262
327
|
/** Quando fornecida, desassocia o viajante da aventura sem deletá-lo da reserva. */
|
|
263
328
|
onUnassignFromAdventure?: (adventureId: string, travellerId: string) => void;
|
|
329
|
+
/** Submit do modal de ADD interno. Usado quando `onAddTraveller` NÃO é passado. */
|
|
330
|
+
onSubmitAddTraveller?: (adventureId: string, data: TravellerFormData) => Promise<void> | void;
|
|
331
|
+
/** Submit do modal de EDIT interno. Usado quando `onEditTraveller` NÃO é passado. */
|
|
332
|
+
onSubmitEditTraveller?: (adventureId: string, travellerId: string, data: TravellerFormData) => Promise<void> | void;
|
|
333
|
+
/** Confirmação do modal de DELETE interno. Usado quando `onRemoveTraveller` NÃO é passado. */
|
|
334
|
+
onConfirmRemoveTraveller?: (adventureId: string, travellerId: string) => Promise<void> | void;
|
|
335
|
+
/** Configuração (i18n + validação visual) dos formulários de traveller gerenciados pelo DS. */
|
|
336
|
+
travellerFormConfig?: TravellerFormConfig;
|
|
337
|
+
/** Estado de saving controlado externamente para o modal de ADD interno. */
|
|
338
|
+
addTravellerSaving?: boolean;
|
|
339
|
+
/** Estado de saving controlado externamente para o modal de EDIT interno. */
|
|
340
|
+
editTravellerSaving?: boolean;
|
|
341
|
+
/** Estado de saving controlado externamente para o modal de DELETE interno. */
|
|
342
|
+
removeTravellerSaving?: boolean;
|
|
343
|
+
/** Erro a exibir dentro do modal ativo (qualquer um dos três). */
|
|
344
|
+
travellerFormError?: string | null;
|
|
264
345
|
onPayBalance?: () => void;
|
|
265
346
|
onCancelRequest?: () => void;
|
|
347
|
+
/** URL da logo exibida no cabeçalho (centralizada). Quando omitido junto com `onSignOut`, o header não é renderizado. */
|
|
348
|
+
logoSrc?: string;
|
|
349
|
+
/** Alt text da logo. Default: "". */
|
|
350
|
+
logoAlt?: string;
|
|
351
|
+
/** Callback disparado pelo botão Sign Out. Quando omitido, o botão não é renderizado. */
|
|
352
|
+
onSignOut?: () => void;
|
|
353
|
+
/** Texto do botão de Sign Out. Default: "Sign out". */
|
|
354
|
+
signOutLabel?: string;
|
|
266
355
|
className?: string;
|
|
267
356
|
}
|
|
268
|
-
declare function BookingDetails({ bookingId, status, createdAt, contact, agentName, agentContactUrl, adventures, summaryLineItems, subtotal, total, depositInfo, onAddContactAsTraveller, onEditTraveller, onRemoveTraveller, onAddSuggestedTraveller, onAddTraveller, onUnassignFromAdventure, onPayBalance, onCancelRequest, className, }: BookingDetailsProps): react_jsx_runtime.JSX.Element;
|
|
357
|
+
declare function BookingDetails({ bookingId, status, createdAt, contact, agentName, agentContactUrl, 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;
|
|
269
358
|
|
|
270
359
|
interface BookingConfirmationLabels {
|
|
271
360
|
ctaButton?: string;
|
|
@@ -1495,4 +1584,4 @@ declare function LeadCapturePopup({ config: _config, }: {
|
|
|
1495
1584
|
config: LeadCapturePopupConfig;
|
|
1496
1585
|
}): react_jsx_runtime.JSX.Element | null;
|
|
1497
1586
|
|
|
1498
|
-
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 };
|
|
1587
|
+
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;
|
|
@@ -219,6 +270,11 @@ interface BookingAdventure {
|
|
|
219
270
|
tags?: string[];
|
|
220
271
|
travellers: BookingTraveller[];
|
|
221
272
|
description?: string;
|
|
273
|
+
/** Conteúdo rico de itinerário (HTML / ReactNode). Quando presente, substitui `description`
|
|
274
|
+
* e é renderizado SEMPRE VISÍVEL (fora do accordion). */
|
|
275
|
+
detailsSlot?: React.ReactNode;
|
|
276
|
+
/** Label acima do bloco de itinerário. Default: "Itinerary". */
|
|
277
|
+
itineraryLabel?: string;
|
|
222
278
|
included?: string[];
|
|
223
279
|
notIncluded?: string[];
|
|
224
280
|
cancellationPolicy?: string[];
|
|
@@ -226,6 +282,8 @@ interface BookingAdventure {
|
|
|
226
282
|
subtotal?: string;
|
|
227
283
|
suggestedTravellers?: SuggestedTraveller[];
|
|
228
284
|
formName?: string;
|
|
285
|
+
/** Quando true, desabilita o botão "Add contact as traveller" desta aventura. */
|
|
286
|
+
addContactAsTravellerDisabled?: boolean;
|
|
229
287
|
}
|
|
230
288
|
interface BookingContact {
|
|
231
289
|
name: string;
|
|
@@ -240,6 +298,11 @@ interface BookingDepositInfo {
|
|
|
240
298
|
remainingAmount: string;
|
|
241
299
|
balanceDueDate: string;
|
|
242
300
|
isPaidInFull?: boolean;
|
|
301
|
+
/** Valor numérico do saldo restante (em unidade monetária). Quando fornecido,
|
|
302
|
+
* o botão "Pay remaining balance" só é renderizado se > 0.
|
|
303
|
+
* Mantém backward compat: consumers que não passam o valor conservam o
|
|
304
|
+
* comportamento antigo (dependente apenas de `isPaidInFull`). */
|
|
305
|
+
remainingAmountValue?: number;
|
|
243
306
|
}
|
|
244
307
|
interface BookingDetailsProps {
|
|
245
308
|
bookingId: string;
|
|
@@ -254,18 +317,44 @@ interface BookingDetailsProps {
|
|
|
254
317
|
total: string;
|
|
255
318
|
depositInfo?: BookingDepositInfo;
|
|
256
319
|
onAddContactAsTraveller?: (adventureId: string) => void;
|
|
320
|
+
/** API legada — quando presente, o DS dispara o callback e NÃO abre o modal interno de edit. */
|
|
257
321
|
onEditTraveller?: (adventureId: string, travellerId: string) => void;
|
|
322
|
+
/** API legada — quando presente, o DS dispara o callback e NÃO abre o modal interno de delete. */
|
|
258
323
|
onRemoveTraveller?: (adventureId: string, travellerId: string) => void;
|
|
259
324
|
onAddSuggestedTraveller?: (adventureId: string, travellerId: string) => void;
|
|
260
|
-
/**
|
|
325
|
+
/** API legada — quando presente, substitui o modal interno do DS ao clicar "More travellers". */
|
|
261
326
|
onAddTraveller?: (adventureId: string) => void;
|
|
262
327
|
/** Quando fornecida, desassocia o viajante da aventura sem deletá-lo da reserva. */
|
|
263
328
|
onUnassignFromAdventure?: (adventureId: string, travellerId: string) => void;
|
|
329
|
+
/** Submit do modal de ADD interno. Usado quando `onAddTraveller` NÃO é passado. */
|
|
330
|
+
onSubmitAddTraveller?: (adventureId: string, data: TravellerFormData) => Promise<void> | void;
|
|
331
|
+
/** Submit do modal de EDIT interno. Usado quando `onEditTraveller` NÃO é passado. */
|
|
332
|
+
onSubmitEditTraveller?: (adventureId: string, travellerId: string, data: TravellerFormData) => Promise<void> | void;
|
|
333
|
+
/** Confirmação do modal de DELETE interno. Usado quando `onRemoveTraveller` NÃO é passado. */
|
|
334
|
+
onConfirmRemoveTraveller?: (adventureId: string, travellerId: string) => Promise<void> | void;
|
|
335
|
+
/** Configuração (i18n + validação visual) dos formulários de traveller gerenciados pelo DS. */
|
|
336
|
+
travellerFormConfig?: TravellerFormConfig;
|
|
337
|
+
/** Estado de saving controlado externamente para o modal de ADD interno. */
|
|
338
|
+
addTravellerSaving?: boolean;
|
|
339
|
+
/** Estado de saving controlado externamente para o modal de EDIT interno. */
|
|
340
|
+
editTravellerSaving?: boolean;
|
|
341
|
+
/** Estado de saving controlado externamente para o modal de DELETE interno. */
|
|
342
|
+
removeTravellerSaving?: boolean;
|
|
343
|
+
/** Erro a exibir dentro do modal ativo (qualquer um dos três). */
|
|
344
|
+
travellerFormError?: string | null;
|
|
264
345
|
onPayBalance?: () => void;
|
|
265
346
|
onCancelRequest?: () => void;
|
|
347
|
+
/** URL da logo exibida no cabeçalho (centralizada). Quando omitido junto com `onSignOut`, o header não é renderizado. */
|
|
348
|
+
logoSrc?: string;
|
|
349
|
+
/** Alt text da logo. Default: "". */
|
|
350
|
+
logoAlt?: string;
|
|
351
|
+
/** Callback disparado pelo botão Sign Out. Quando omitido, o botão não é renderizado. */
|
|
352
|
+
onSignOut?: () => void;
|
|
353
|
+
/** Texto do botão de Sign Out. Default: "Sign out". */
|
|
354
|
+
signOutLabel?: string;
|
|
266
355
|
className?: string;
|
|
267
356
|
}
|
|
268
|
-
declare function BookingDetails({ bookingId, status, createdAt, contact, agentName, agentContactUrl, adventures, summaryLineItems, subtotal, total, depositInfo, onAddContactAsTraveller, onEditTraveller, onRemoveTraveller, onAddSuggestedTraveller, onAddTraveller, onUnassignFromAdventure, onPayBalance, onCancelRequest, className, }: BookingDetailsProps): react_jsx_runtime.JSX.Element;
|
|
357
|
+
declare function BookingDetails({ bookingId, status, createdAt, contact, agentName, agentContactUrl, 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;
|
|
269
358
|
|
|
270
359
|
interface BookingConfirmationLabels {
|
|
271
360
|
ctaButton?: string;
|
|
@@ -1495,4 +1584,4 @@ declare function LeadCapturePopup({ config: _config, }: {
|
|
|
1495
1584
|
config: LeadCapturePopupConfig;
|
|
1496
1585
|
}): react_jsx_runtime.JSX.Element | null;
|
|
1497
1586
|
|
|
1498
|
-
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 };
|
|
1587
|
+
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 };
|