@planetaexo/design-system 0.14.0 → 0.14.2
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 +161 -155
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +112 -20
- package/dist/index.d.ts +112 -20
- package/dist/index.js +161 -155
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -81,6 +81,49 @@ interface OfferAdventureItem {
|
|
|
81
81
|
detailsSlot?: React.ReactNode;
|
|
82
82
|
/** Label shown above the itinerary/detailsSlot section. Defaults to "Details". */
|
|
83
83
|
itineraryLabel?: string;
|
|
84
|
+
/** Label da seção "What's included". Default: "What's included". */
|
|
85
|
+
includedLabel?: string;
|
|
86
|
+
/** Label da seção "What's not included". Default: "What's not included". */
|
|
87
|
+
notIncludedLabel?: string;
|
|
88
|
+
/** Label da seção "Cancellation policy". Default: "Cancellation policy". */
|
|
89
|
+
cancellationPolicyLabel?: string;
|
|
90
|
+
}
|
|
91
|
+
interface OfferLabels {
|
|
92
|
+
/** Cartão lateral "Booking Total". */
|
|
93
|
+
bookingTotal?: string;
|
|
94
|
+
/** Header "Available optionals". */
|
|
95
|
+
availableOptionals?: string;
|
|
96
|
+
/** Botão "Remove" do card de adventure. */
|
|
97
|
+
remove?: string;
|
|
98
|
+
/** Sumário "Summary". */
|
|
99
|
+
summary?: string;
|
|
100
|
+
/** "Subtotal". */
|
|
101
|
+
subtotal?: string;
|
|
102
|
+
/** "Total". */
|
|
103
|
+
total?: string;
|
|
104
|
+
/** "Remaining balance". */
|
|
105
|
+
remainingBalance?: string;
|
|
106
|
+
/** "Balance due". */
|
|
107
|
+
balanceDue?: string;
|
|
108
|
+
/** Card do agente "Need help with your offer?". */
|
|
109
|
+
needHelp?: string;
|
|
110
|
+
/** Header de seção "Included Adventures". */
|
|
111
|
+
includedAdventures?: string;
|
|
112
|
+
/** Header `PaymentMethodSelector` quando renderizado pelo wizard interno. */
|
|
113
|
+
paymentMethod?: string;
|
|
114
|
+
/** `BookingConfirmedCard.title` quando renderizado pelo wizard interno. */
|
|
115
|
+
bookingConfirmed?: string;
|
|
116
|
+
/** Steps do wizard interno. */
|
|
117
|
+
wizardSteps?: {
|
|
118
|
+
responsible?: string;
|
|
119
|
+
travellers?: string;
|
|
120
|
+
paymentAndTerms?: string;
|
|
121
|
+
};
|
|
122
|
+
/** Botão "Pay deposit". */
|
|
123
|
+
payDeposit?: string;
|
|
124
|
+
/** Wizard: badges "Adult" / "Child". */
|
|
125
|
+
adultLabel?: string;
|
|
126
|
+
childLabel?: string;
|
|
84
127
|
}
|
|
85
128
|
interface OfferDepositInfo {
|
|
86
129
|
depositPercent: number;
|
|
@@ -125,6 +168,8 @@ interface OfferProps {
|
|
|
125
168
|
};
|
|
126
169
|
/** Disable the primary continue button. */
|
|
127
170
|
continueDisabled?: boolean;
|
|
171
|
+
/** Overrides i18n para labels hardcoded no componente. */
|
|
172
|
+
labels?: OfferLabels;
|
|
128
173
|
className?: string;
|
|
129
174
|
}
|
|
130
175
|
interface BookingShellProps {
|
|
@@ -198,7 +243,7 @@ declare function BookingConfirmedCard({ title, email, message, onBack, backLabel
|
|
|
198
243
|
declare function OfferAdventureCard({ adventure }: {
|
|
199
244
|
adventure: OfferAdventureItem;
|
|
200
245
|
}): react_jsx_runtime.JSX.Element;
|
|
201
|
-
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;
|
|
246
|
+
declare function Offer({ logo, logoAlt, title, subtitle, adventures, subtotal, total, depositInfo, agent, onContinue, continueLabel, externalBookingFlow, checkoutSlot, summaryNotesSlot, summaryDiscountLine, continueDisabled, labels, className, }: OfferProps): react_jsx_runtime.JSX.Element;
|
|
202
247
|
|
|
203
248
|
type BookingStatus = "pending" | "confirmed" | "cancelled" | "completed" | "pendingRegistration" | "pendingPayment" | "pendingPaymentOverdue" | "complete";
|
|
204
249
|
interface BookingTraveller {
|
|
@@ -261,6 +306,59 @@ interface TravellerFormConfig {
|
|
|
261
306
|
childEmailFromContact?: string;
|
|
262
307
|
labels?: TravellerFormLabels;
|
|
263
308
|
}
|
|
309
|
+
interface BookingDetailsLabels {
|
|
310
|
+
/** "Created on {date}" — render em sub-header. */
|
|
311
|
+
createdOn?: (date: string) => string;
|
|
312
|
+
/** Header InfoCard "CONTACT". */
|
|
313
|
+
contactInfo?: string;
|
|
314
|
+
/** Header InfoCard "TOTAL PEOPLE". */
|
|
315
|
+
totalPeople?: string;
|
|
316
|
+
/** "{count} person(s)" (ICU plural). */
|
|
317
|
+
personCount?: (count: number) => string;
|
|
318
|
+
/** "Adults: {n}", "Children: {n}", "Seniors: {n}". */
|
|
319
|
+
peopleBreakdown?: {
|
|
320
|
+
adults?: (n: number) => string;
|
|
321
|
+
children?: (n: number) => string;
|
|
322
|
+
seniors?: (n: number) => string;
|
|
323
|
+
};
|
|
324
|
+
/** "Adventures ({count})" — header de seção. */
|
|
325
|
+
adventuresSection?: (count: number) => string;
|
|
326
|
+
/** "Travellers" — header de cada AdventureSection. */
|
|
327
|
+
travellersSection?: string;
|
|
328
|
+
/** Botão "Add contact as traveller" / "Add contact". */
|
|
329
|
+
addContactAsTraveller?: string;
|
|
330
|
+
addContactAsTravellerShort?: string;
|
|
331
|
+
/** Badge inline "Child". */
|
|
332
|
+
childBadge?: string;
|
|
333
|
+
/** Status do traveller (mostrado como badge). */
|
|
334
|
+
travellerStatusCompleted?: string;
|
|
335
|
+
travellerStatusPending?: string;
|
|
336
|
+
/** Link "Open" do form URL. */
|
|
337
|
+
openFormLink?: string;
|
|
338
|
+
/** aria-label "Copy form URL". */
|
|
339
|
+
copyFormUrlAria?: string;
|
|
340
|
+
/** aria-labels com placeholder {name}. */
|
|
341
|
+
editTravellerAria?: (name: string) => string;
|
|
342
|
+
deleteTravellerAria?: (name: string) => string;
|
|
343
|
+
removeFromAdventureAria?: (name: string) => string;
|
|
344
|
+
/** Header de sugestões: "Add to this adventure". */
|
|
345
|
+
addToThisAdventure?: string;
|
|
346
|
+
/** "{completed} of {total} travellers registered" (ICU). */
|
|
347
|
+
travellersRegistered?: (args: {
|
|
348
|
+
completed: number;
|
|
349
|
+
total: number;
|
|
350
|
+
}) => string;
|
|
351
|
+
/** Header h3 do OrderSummary: "Order Summary". */
|
|
352
|
+
orderSummary?: string;
|
|
353
|
+
/** Linha por aventura: "Subtotal this adventure". */
|
|
354
|
+
subtotalThisAdventure?: string;
|
|
355
|
+
/** Linha global: "Subtotal". */
|
|
356
|
+
subtotal?: string;
|
|
357
|
+
/** Linha total: "Total". */
|
|
358
|
+
total?: string;
|
|
359
|
+
/** Linha do bloco depósito: "Remaining balance". */
|
|
360
|
+
remainingBalance?: string;
|
|
361
|
+
}
|
|
264
362
|
interface SuggestedTraveller {
|
|
265
363
|
id: string;
|
|
266
364
|
firstName: string;
|
|
@@ -311,6 +409,14 @@ interface BookingAdventure {
|
|
|
311
409
|
/** Tooltip exibido quando chips de "Add to this adventure" estão desabilitados por capacidade.
|
|
312
410
|
* Default: "Adventure full". */
|
|
313
411
|
atCapacityLabel?: string;
|
|
412
|
+
/** Quando true, oculta a barra "X of N travellers registered" e o ícone de
|
|
413
|
+
* pendência. O sub-card passa a mostrar apenas o label
|
|
414
|
+
* `noRegistrationRequiredLabel`. Default: false (status quo). */
|
|
415
|
+
registrationNotRequired?: boolean;
|
|
416
|
+
/** Texto exibido quando `registrationNotRequired === true`.
|
|
417
|
+
* Default: "No registration required". O consumidor passa label
|
|
418
|
+
* localizado (i18n) — espelha o padrão de `addTravellerLabel`. */
|
|
419
|
+
noRegistrationRequiredLabel?: string;
|
|
314
420
|
}
|
|
315
421
|
interface BookingContact {
|
|
316
422
|
name: string;
|
|
@@ -428,9 +534,11 @@ interface BookingDetailsProps {
|
|
|
428
534
|
onSignOut?: () => void;
|
|
429
535
|
/** Texto do botão de Sign Out. Default: "Sign out". */
|
|
430
536
|
signOutLabel?: string;
|
|
537
|
+
/** Overrides i18n para labels hardcoded no componente. */
|
|
538
|
+
labels?: BookingDetailsLabels;
|
|
431
539
|
className?: string;
|
|
432
540
|
}
|
|
433
|
-
declare function BookingDetails({ bookingId, status, statusLabel, createdAt, contact, agent, agentName, agentContactUrl, agentNameFallback, agentLabel, agentContactLabel, contactSectionLabel, payBalanceLabel, balanceDueLabel, totalPaidLabel, 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;
|
|
541
|
+
declare function BookingDetails({ bookingId, status, statusLabel, createdAt, contact, agent, agentName, agentContactUrl, agentNameFallback, agentLabel, agentContactLabel, contactSectionLabel, payBalanceLabel, balanceDueLabel, totalPaidLabel, 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, labels, className, }: BookingDetailsProps): react_jsx_runtime.JSX.Element;
|
|
434
542
|
|
|
435
543
|
interface AgentContactCardProps {
|
|
436
544
|
layout: "compact" | "wide";
|
|
@@ -779,10 +887,6 @@ interface RegistrationFormLabels {
|
|
|
779
887
|
selectPlaceholder?: string;
|
|
780
888
|
optionalLabel?: string;
|
|
781
889
|
requiredFieldError?: string;
|
|
782
|
-
/** Singular date label (used when only one of startDate/endDate is set). Default: "Date". */
|
|
783
|
-
dateLabel?: string;
|
|
784
|
-
/** Plural date label (used when both startDate and endDate are set). Default: "Dates". */
|
|
785
|
-
datesLabel?: string;
|
|
786
890
|
}
|
|
787
891
|
interface RegistrationFormProps {
|
|
788
892
|
/** Logo shown above the title. Defaults to "/logo-planetaexo.png" (matching Offer). Pass null to hide. */
|
|
@@ -870,18 +974,6 @@ interface RegistrationSuccessCardProps {
|
|
|
870
974
|
bookingLabel?: string;
|
|
871
975
|
partnerLabel?: string;
|
|
872
976
|
travellerLabel?: string;
|
|
873
|
-
/** Singular date label. Default: "Date". */
|
|
874
|
-
dateLabel?: string;
|
|
875
|
-
/** Plural date label. Default: "Dates". */
|
|
876
|
-
datesLabel?: string;
|
|
877
|
-
};
|
|
878
|
-
/**
|
|
879
|
-
* Labels for boolean answers in the default formatAnswer (when no custom
|
|
880
|
-
* `formatAnswer` is supplied). Defaults: `{ yes: "Yes", no: "No" }`.
|
|
881
|
-
*/
|
|
882
|
-
booleanLabels?: {
|
|
883
|
-
yes?: string;
|
|
884
|
-
no?: string;
|
|
885
977
|
};
|
|
886
978
|
/**
|
|
887
979
|
* Visual density of the card.
|
|
@@ -904,7 +996,7 @@ interface RegistrationSuccessCardProps {
|
|
|
904
996
|
lastUpdatedAt?: string;
|
|
905
997
|
};
|
|
906
998
|
}
|
|
907
|
-
declare function RegistrationSuccessCard({ variant, title, message, answersTitle, fields, answers, dateFormatter, formatAnswer, className, actions, logo, logoAlt, terms, termsLayout, termsLabels, adventure, booking, traveller, tripInfoLabels,
|
|
999
|
+
declare function RegistrationSuccessCard({ variant, title, message, answersTitle, fields, answers, dateFormatter, formatAnswer, className, actions, logo, logoAlt, terms, termsLayout, termsLabels, adventure, booking, traveller, tripInfoLabels, density, submissionTimestamps, submissionTimestampsLabels, }: RegistrationSuccessCardProps): react_jsx_runtime.JSX.Element;
|
|
908
1000
|
|
|
909
1001
|
interface FloatingInputProps extends React.InputHTMLAttributes<HTMLInputElement> {
|
|
910
1002
|
label: string;
|
|
@@ -1754,4 +1846,4 @@ declare function LeadCapturePopup({ config: _config, }: {
|
|
|
1754
1846
|
config: LeadCapturePopupConfig;
|
|
1755
1847
|
}): react_jsx_runtime.JSX.Element | null;
|
|
1756
1848
|
|
|
1757
|
-
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 };
|
|
1849
|
+
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 BookingDetailsLabels, 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 OfferLabels, 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
|
@@ -81,6 +81,49 @@ interface OfferAdventureItem {
|
|
|
81
81
|
detailsSlot?: React.ReactNode;
|
|
82
82
|
/** Label shown above the itinerary/detailsSlot section. Defaults to "Details". */
|
|
83
83
|
itineraryLabel?: string;
|
|
84
|
+
/** Label da seção "What's included". Default: "What's included". */
|
|
85
|
+
includedLabel?: string;
|
|
86
|
+
/** Label da seção "What's not included". Default: "What's not included". */
|
|
87
|
+
notIncludedLabel?: string;
|
|
88
|
+
/** Label da seção "Cancellation policy". Default: "Cancellation policy". */
|
|
89
|
+
cancellationPolicyLabel?: string;
|
|
90
|
+
}
|
|
91
|
+
interface OfferLabels {
|
|
92
|
+
/** Cartão lateral "Booking Total". */
|
|
93
|
+
bookingTotal?: string;
|
|
94
|
+
/** Header "Available optionals". */
|
|
95
|
+
availableOptionals?: string;
|
|
96
|
+
/** Botão "Remove" do card de adventure. */
|
|
97
|
+
remove?: string;
|
|
98
|
+
/** Sumário "Summary". */
|
|
99
|
+
summary?: string;
|
|
100
|
+
/** "Subtotal". */
|
|
101
|
+
subtotal?: string;
|
|
102
|
+
/** "Total". */
|
|
103
|
+
total?: string;
|
|
104
|
+
/** "Remaining balance". */
|
|
105
|
+
remainingBalance?: string;
|
|
106
|
+
/** "Balance due". */
|
|
107
|
+
balanceDue?: string;
|
|
108
|
+
/** Card do agente "Need help with your offer?". */
|
|
109
|
+
needHelp?: string;
|
|
110
|
+
/** Header de seção "Included Adventures". */
|
|
111
|
+
includedAdventures?: string;
|
|
112
|
+
/** Header `PaymentMethodSelector` quando renderizado pelo wizard interno. */
|
|
113
|
+
paymentMethod?: string;
|
|
114
|
+
/** `BookingConfirmedCard.title` quando renderizado pelo wizard interno. */
|
|
115
|
+
bookingConfirmed?: string;
|
|
116
|
+
/** Steps do wizard interno. */
|
|
117
|
+
wizardSteps?: {
|
|
118
|
+
responsible?: string;
|
|
119
|
+
travellers?: string;
|
|
120
|
+
paymentAndTerms?: string;
|
|
121
|
+
};
|
|
122
|
+
/** Botão "Pay deposit". */
|
|
123
|
+
payDeposit?: string;
|
|
124
|
+
/** Wizard: badges "Adult" / "Child". */
|
|
125
|
+
adultLabel?: string;
|
|
126
|
+
childLabel?: string;
|
|
84
127
|
}
|
|
85
128
|
interface OfferDepositInfo {
|
|
86
129
|
depositPercent: number;
|
|
@@ -125,6 +168,8 @@ interface OfferProps {
|
|
|
125
168
|
};
|
|
126
169
|
/** Disable the primary continue button. */
|
|
127
170
|
continueDisabled?: boolean;
|
|
171
|
+
/** Overrides i18n para labels hardcoded no componente. */
|
|
172
|
+
labels?: OfferLabels;
|
|
128
173
|
className?: string;
|
|
129
174
|
}
|
|
130
175
|
interface BookingShellProps {
|
|
@@ -198,7 +243,7 @@ declare function BookingConfirmedCard({ title, email, message, onBack, backLabel
|
|
|
198
243
|
declare function OfferAdventureCard({ adventure }: {
|
|
199
244
|
adventure: OfferAdventureItem;
|
|
200
245
|
}): react_jsx_runtime.JSX.Element;
|
|
201
|
-
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;
|
|
246
|
+
declare function Offer({ logo, logoAlt, title, subtitle, adventures, subtotal, total, depositInfo, agent, onContinue, continueLabel, externalBookingFlow, checkoutSlot, summaryNotesSlot, summaryDiscountLine, continueDisabled, labels, className, }: OfferProps): react_jsx_runtime.JSX.Element;
|
|
202
247
|
|
|
203
248
|
type BookingStatus = "pending" | "confirmed" | "cancelled" | "completed" | "pendingRegistration" | "pendingPayment" | "pendingPaymentOverdue" | "complete";
|
|
204
249
|
interface BookingTraveller {
|
|
@@ -261,6 +306,59 @@ interface TravellerFormConfig {
|
|
|
261
306
|
childEmailFromContact?: string;
|
|
262
307
|
labels?: TravellerFormLabels;
|
|
263
308
|
}
|
|
309
|
+
interface BookingDetailsLabels {
|
|
310
|
+
/** "Created on {date}" — render em sub-header. */
|
|
311
|
+
createdOn?: (date: string) => string;
|
|
312
|
+
/** Header InfoCard "CONTACT". */
|
|
313
|
+
contactInfo?: string;
|
|
314
|
+
/** Header InfoCard "TOTAL PEOPLE". */
|
|
315
|
+
totalPeople?: string;
|
|
316
|
+
/** "{count} person(s)" (ICU plural). */
|
|
317
|
+
personCount?: (count: number) => string;
|
|
318
|
+
/** "Adults: {n}", "Children: {n}", "Seniors: {n}". */
|
|
319
|
+
peopleBreakdown?: {
|
|
320
|
+
adults?: (n: number) => string;
|
|
321
|
+
children?: (n: number) => string;
|
|
322
|
+
seniors?: (n: number) => string;
|
|
323
|
+
};
|
|
324
|
+
/** "Adventures ({count})" — header de seção. */
|
|
325
|
+
adventuresSection?: (count: number) => string;
|
|
326
|
+
/** "Travellers" — header de cada AdventureSection. */
|
|
327
|
+
travellersSection?: string;
|
|
328
|
+
/** Botão "Add contact as traveller" / "Add contact". */
|
|
329
|
+
addContactAsTraveller?: string;
|
|
330
|
+
addContactAsTravellerShort?: string;
|
|
331
|
+
/** Badge inline "Child". */
|
|
332
|
+
childBadge?: string;
|
|
333
|
+
/** Status do traveller (mostrado como badge). */
|
|
334
|
+
travellerStatusCompleted?: string;
|
|
335
|
+
travellerStatusPending?: string;
|
|
336
|
+
/** Link "Open" do form URL. */
|
|
337
|
+
openFormLink?: string;
|
|
338
|
+
/** aria-label "Copy form URL". */
|
|
339
|
+
copyFormUrlAria?: string;
|
|
340
|
+
/** aria-labels com placeholder {name}. */
|
|
341
|
+
editTravellerAria?: (name: string) => string;
|
|
342
|
+
deleteTravellerAria?: (name: string) => string;
|
|
343
|
+
removeFromAdventureAria?: (name: string) => string;
|
|
344
|
+
/** Header de sugestões: "Add to this adventure". */
|
|
345
|
+
addToThisAdventure?: string;
|
|
346
|
+
/** "{completed} of {total} travellers registered" (ICU). */
|
|
347
|
+
travellersRegistered?: (args: {
|
|
348
|
+
completed: number;
|
|
349
|
+
total: number;
|
|
350
|
+
}) => string;
|
|
351
|
+
/** Header h3 do OrderSummary: "Order Summary". */
|
|
352
|
+
orderSummary?: string;
|
|
353
|
+
/** Linha por aventura: "Subtotal this adventure". */
|
|
354
|
+
subtotalThisAdventure?: string;
|
|
355
|
+
/** Linha global: "Subtotal". */
|
|
356
|
+
subtotal?: string;
|
|
357
|
+
/** Linha total: "Total". */
|
|
358
|
+
total?: string;
|
|
359
|
+
/** Linha do bloco depósito: "Remaining balance". */
|
|
360
|
+
remainingBalance?: string;
|
|
361
|
+
}
|
|
264
362
|
interface SuggestedTraveller {
|
|
265
363
|
id: string;
|
|
266
364
|
firstName: string;
|
|
@@ -311,6 +409,14 @@ interface BookingAdventure {
|
|
|
311
409
|
/** Tooltip exibido quando chips de "Add to this adventure" estão desabilitados por capacidade.
|
|
312
410
|
* Default: "Adventure full". */
|
|
313
411
|
atCapacityLabel?: string;
|
|
412
|
+
/** Quando true, oculta a barra "X of N travellers registered" e o ícone de
|
|
413
|
+
* pendência. O sub-card passa a mostrar apenas o label
|
|
414
|
+
* `noRegistrationRequiredLabel`. Default: false (status quo). */
|
|
415
|
+
registrationNotRequired?: boolean;
|
|
416
|
+
/** Texto exibido quando `registrationNotRequired === true`.
|
|
417
|
+
* Default: "No registration required". O consumidor passa label
|
|
418
|
+
* localizado (i18n) — espelha o padrão de `addTravellerLabel`. */
|
|
419
|
+
noRegistrationRequiredLabel?: string;
|
|
314
420
|
}
|
|
315
421
|
interface BookingContact {
|
|
316
422
|
name: string;
|
|
@@ -428,9 +534,11 @@ interface BookingDetailsProps {
|
|
|
428
534
|
onSignOut?: () => void;
|
|
429
535
|
/** Texto do botão de Sign Out. Default: "Sign out". */
|
|
430
536
|
signOutLabel?: string;
|
|
537
|
+
/** Overrides i18n para labels hardcoded no componente. */
|
|
538
|
+
labels?: BookingDetailsLabels;
|
|
431
539
|
className?: string;
|
|
432
540
|
}
|
|
433
|
-
declare function BookingDetails({ bookingId, status, statusLabel, createdAt, contact, agent, agentName, agentContactUrl, agentNameFallback, agentLabel, agentContactLabel, contactSectionLabel, payBalanceLabel, balanceDueLabel, totalPaidLabel, 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;
|
|
541
|
+
declare function BookingDetails({ bookingId, status, statusLabel, createdAt, contact, agent, agentName, agentContactUrl, agentNameFallback, agentLabel, agentContactLabel, contactSectionLabel, payBalanceLabel, balanceDueLabel, totalPaidLabel, 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, labels, className, }: BookingDetailsProps): react_jsx_runtime.JSX.Element;
|
|
434
542
|
|
|
435
543
|
interface AgentContactCardProps {
|
|
436
544
|
layout: "compact" | "wide";
|
|
@@ -779,10 +887,6 @@ interface RegistrationFormLabels {
|
|
|
779
887
|
selectPlaceholder?: string;
|
|
780
888
|
optionalLabel?: string;
|
|
781
889
|
requiredFieldError?: string;
|
|
782
|
-
/** Singular date label (used when only one of startDate/endDate is set). Default: "Date". */
|
|
783
|
-
dateLabel?: string;
|
|
784
|
-
/** Plural date label (used when both startDate and endDate are set). Default: "Dates". */
|
|
785
|
-
datesLabel?: string;
|
|
786
890
|
}
|
|
787
891
|
interface RegistrationFormProps {
|
|
788
892
|
/** Logo shown above the title. Defaults to "/logo-planetaexo.png" (matching Offer). Pass null to hide. */
|
|
@@ -870,18 +974,6 @@ interface RegistrationSuccessCardProps {
|
|
|
870
974
|
bookingLabel?: string;
|
|
871
975
|
partnerLabel?: string;
|
|
872
976
|
travellerLabel?: string;
|
|
873
|
-
/** Singular date label. Default: "Date". */
|
|
874
|
-
dateLabel?: string;
|
|
875
|
-
/** Plural date label. Default: "Dates". */
|
|
876
|
-
datesLabel?: string;
|
|
877
|
-
};
|
|
878
|
-
/**
|
|
879
|
-
* Labels for boolean answers in the default formatAnswer (when no custom
|
|
880
|
-
* `formatAnswer` is supplied). Defaults: `{ yes: "Yes", no: "No" }`.
|
|
881
|
-
*/
|
|
882
|
-
booleanLabels?: {
|
|
883
|
-
yes?: string;
|
|
884
|
-
no?: string;
|
|
885
977
|
};
|
|
886
978
|
/**
|
|
887
979
|
* Visual density of the card.
|
|
@@ -904,7 +996,7 @@ interface RegistrationSuccessCardProps {
|
|
|
904
996
|
lastUpdatedAt?: string;
|
|
905
997
|
};
|
|
906
998
|
}
|
|
907
|
-
declare function RegistrationSuccessCard({ variant, title, message, answersTitle, fields, answers, dateFormatter, formatAnswer, className, actions, logo, logoAlt, terms, termsLayout, termsLabels, adventure, booking, traveller, tripInfoLabels,
|
|
999
|
+
declare function RegistrationSuccessCard({ variant, title, message, answersTitle, fields, answers, dateFormatter, formatAnswer, className, actions, logo, logoAlt, terms, termsLayout, termsLabels, adventure, booking, traveller, tripInfoLabels, density, submissionTimestamps, submissionTimestampsLabels, }: RegistrationSuccessCardProps): react_jsx_runtime.JSX.Element;
|
|
908
1000
|
|
|
909
1001
|
interface FloatingInputProps extends React.InputHTMLAttributes<HTMLInputElement> {
|
|
910
1002
|
label: string;
|
|
@@ -1754,4 +1846,4 @@ declare function LeadCapturePopup({ config: _config, }: {
|
|
|
1754
1846
|
config: LeadCapturePopupConfig;
|
|
1755
1847
|
}): react_jsx_runtime.JSX.Element | null;
|
|
1756
1848
|
|
|
1757
|
-
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 };
|
|
1849
|
+
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 BookingDetailsLabels, 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 OfferLabels, 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 };
|