@planetaexo/design-system 0.58.3 → 0.59.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +274 -20
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +216 -134
- package/dist/index.d.ts +216 -134
- package/dist/index.js +274 -20
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -13,6 +13,153 @@ interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, Var
|
|
|
13
13
|
}
|
|
14
14
|
declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
15
15
|
|
|
16
|
+
interface BookingAdventureCardLineItem {
|
|
17
|
+
/** Valor unitário formatado, ex.: "R$ 1.500,00". Opcional quando o caller usa `label` livre. */
|
|
18
|
+
unitPrice?: string;
|
|
19
|
+
/** Quantidade, ex.: 2. Opcional quando o caller usa `label` livre. */
|
|
20
|
+
quantity?: number;
|
|
21
|
+
/** Label localizado da categoria de viajante (ex.: "Adults"). Opcional quando o caller usa `label` livre. */
|
|
22
|
+
categoryLabel?: string;
|
|
23
|
+
/** Subtotal/preço formatado, ex.: "R$ 3.000,00". */
|
|
24
|
+
subtotal: string;
|
|
25
|
+
/**
|
|
26
|
+
* Label livre alternativa. Quando informada, prevalece sobre o formato
|
|
27
|
+
* "unitPrice × quantity categoryLabel =". Usada pelo consumer
|
|
28
|
+
* `BookingConfirmation`, cujos line items têm rótulos arbitrários
|
|
29
|
+
* (ex.: "Coupon", "Optional: Snorkel"). Aceitada para preservar
|
|
30
|
+
* paridade visual no card extraído.
|
|
31
|
+
*/
|
|
32
|
+
label?: string;
|
|
33
|
+
/** Quando `true`, valor renderiza em verde com prefixo "−". */
|
|
34
|
+
isDiscount?: boolean;
|
|
35
|
+
}
|
|
36
|
+
interface BookingAdventureCardTraveller {
|
|
37
|
+
/** Nome completo do viajante (já formatado pelo caller). */
|
|
38
|
+
fullName: string;
|
|
39
|
+
/** Quando `true`, renderiza badge "child" à direita do nome. */
|
|
40
|
+
isChild?: boolean;
|
|
41
|
+
/** Texto do badge "child" — fallback para labels.childBadge. */
|
|
42
|
+
childBadgeLabel?: string;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Spec planetaexo-bookings accommodations-fk-unification §5.5 — item de quarto
|
|
46
|
+
* selecionado em uma BookingAdventure / ProposalAdventure (FK no catálogo
|
|
47
|
+
* Accommodation→Room). Renderizado em bloco "ACCOMMODATIONS" no card.
|
|
48
|
+
*/
|
|
49
|
+
interface AccommodationRoomItem {
|
|
50
|
+
/** Nome da Acomodação-pai (ex.: "Pousada do Vale"). */
|
|
51
|
+
accommodationName: string;
|
|
52
|
+
/** Nome do Quarto (ex.: "Suíte Master"). */
|
|
53
|
+
roomName: string;
|
|
54
|
+
/** Nome do tipo (RoomType.name — ex.: "Suíte"). */
|
|
55
|
+
roomTypeName: string;
|
|
56
|
+
/** Arranjo de camas raw — DS resolve label via `bedArrangementLabels`. */
|
|
57
|
+
bedArrangement: "DOUBLE" | "TWIN" | "SINGLE" | "TRIPLE";
|
|
58
|
+
/** URL da foto do quarto (use `-email.jpg` no e-mail; original no público). */
|
|
59
|
+
imageUrl: string | null;
|
|
60
|
+
/** Quantidade selecionada. */
|
|
61
|
+
qty: number;
|
|
62
|
+
/** Descrição opcional do quarto. */
|
|
63
|
+
description?: string | null;
|
|
64
|
+
}
|
|
65
|
+
interface BookingAdventureCardLabels {
|
|
66
|
+
/** Heading da seção VIAJANTES. */
|
|
67
|
+
travellersHeading?: string;
|
|
68
|
+
/** Heading da seção DETALHES (itinerário). */
|
|
69
|
+
detailsHeading?: string;
|
|
70
|
+
/** Heading da seção PREÇOS (line items). */
|
|
71
|
+
pricesHeading?: string;
|
|
72
|
+
/** Label do subtotal. */
|
|
73
|
+
subtotalLabel?: string;
|
|
74
|
+
/** Função que produz o texto curto da linha "👥 N viajante(s)". */
|
|
75
|
+
travellersCountLabel?: (count: number) => string;
|
|
76
|
+
/** Símbolo separador em "R$ X × N Adults = R$ Y" (default "×"). */
|
|
77
|
+
lineItemSeparator?: string;
|
|
78
|
+
/** Símbolo de igual em "R$ X × N Adults = R$ Y" (default "="). */
|
|
79
|
+
lineItemEquals?: string;
|
|
80
|
+
/** Heading "O que está incluso" (usado pelo BookingConfirmation). */
|
|
81
|
+
includedHeading?: string;
|
|
82
|
+
/** Heading "O que não está incluso" (usado pelo BookingConfirmation). */
|
|
83
|
+
notIncludedHeading?: string;
|
|
84
|
+
/** Texto do pill de badge "child" (usado pelo BookingConfirmation). */
|
|
85
|
+
childBadge?: string;
|
|
86
|
+
/** Unidade adulto em slots (ex.: "adult(s)"). */
|
|
87
|
+
adultsUnit?: string;
|
|
88
|
+
/** Unidade criança em slots (ex.: "child(ren)"). */
|
|
89
|
+
childrenUnit?: string;
|
|
90
|
+
/** Heading da seção ACCOMMODATIONS. Default "ACCOMMODATIONS". */
|
|
91
|
+
accommodationsHeading?: string;
|
|
92
|
+
/** Labels localizados para o chip de bedArrangement. */
|
|
93
|
+
bedArrangementLabels?: {
|
|
94
|
+
DOUBLE?: string;
|
|
95
|
+
TWIN?: string;
|
|
96
|
+
SINGLE?: string;
|
|
97
|
+
TRIPLE?: string;
|
|
98
|
+
};
|
|
99
|
+
}
|
|
100
|
+
interface BookingAdventureCardSlots {
|
|
101
|
+
adults: number;
|
|
102
|
+
children?: number;
|
|
103
|
+
}
|
|
104
|
+
interface BookingAdventureCardProps {
|
|
105
|
+
/** Tag opcional renderizada como pill verde acima do título (ex.: "TST-C1"). */
|
|
106
|
+
tag?: string;
|
|
107
|
+
/** Nome da aventura, ex.: "Vale do Pati Trek". */
|
|
108
|
+
name: string;
|
|
109
|
+
/** Data de início formatada (ex.: "1 de junho de 2026"). */
|
|
110
|
+
startDate: string;
|
|
111
|
+
/** Data de fim formatada. Quando ausente, range vira apenas startDate. */
|
|
112
|
+
endDate?: string;
|
|
113
|
+
/**
|
|
114
|
+
* Quantidade total de viajantes (renderizada na linha "👥 N viajante(s)").
|
|
115
|
+
* Quando `slots` for fornecido, este campo é ignorado em favor de
|
|
116
|
+
* "👥 X adult(s) · Y child(ren)" (compat BookingConfirmation).
|
|
117
|
+
*/
|
|
118
|
+
travellerCount?: number;
|
|
119
|
+
/** Slots adults/children — quando presente, sobrepõe `travellerCount`. */
|
|
120
|
+
slots?: BookingAdventureCardSlots;
|
|
121
|
+
/**
|
|
122
|
+
* Lista de viajantes. Aceita strings (nome cru, modo PaymentReminder) ou
|
|
123
|
+
* objetos `{fullName, isChild}` (modo BookingConfirmation com badge child).
|
|
124
|
+
* Vazio = seção VIAJANTES não renderiza.
|
|
125
|
+
*/
|
|
126
|
+
travellers?: (string | BookingAdventureCardTraveller)[];
|
|
127
|
+
/** Itinerário (cada item já formatado). Vazio = seção DETALHES não renderiza. */
|
|
128
|
+
itinerary?: string[];
|
|
129
|
+
/**
|
|
130
|
+
* Descrição em HTML (alternativa a `itinerary`). Quando ambos presentes,
|
|
131
|
+
* `description` prevalece. Usada pelo BookingConfirmation para itinerário
|
|
132
|
+
* pré-formatado em HTML.
|
|
133
|
+
*/
|
|
134
|
+
description?: string;
|
|
135
|
+
/** Imagem de cover (opcional). Usada pelo BookingConfirmation. */
|
|
136
|
+
image?: string;
|
|
137
|
+
/** Alt da imagem de cover (default: `name`). */
|
|
138
|
+
imageAlt?: string;
|
|
139
|
+
/** Linha 📍 location (legado BookingConfirmation). */
|
|
140
|
+
location?: string;
|
|
141
|
+
/** Linha 🧭 destination/partner (legado BookingConfirmation). */
|
|
142
|
+
destination?: string;
|
|
143
|
+
/** Lista de itens inclusos (legado BookingConfirmation). */
|
|
144
|
+
included?: string[];
|
|
145
|
+
/** Lista de itens não inclusos (legado BookingConfirmation). */
|
|
146
|
+
notIncluded?: string[];
|
|
147
|
+
/** Line items de pricing por categoria. */
|
|
148
|
+
lineItems: BookingAdventureCardLineItem[];
|
|
149
|
+
/** Subtotal formatado, ex.: "R$ 1.500,00". Quando ausente, linha do subtotal some. */
|
|
150
|
+
subtotal?: string;
|
|
151
|
+
/**
|
|
152
|
+
* Spec planetaexo-bookings accommodations-fk-unification §5.5 — lista de
|
|
153
|
+
* quartos selecionados (renderiza bloco "ACCOMMODATIONS"). Vazio = bloco oculto.
|
|
154
|
+
*/
|
|
155
|
+
rooms?: AccommodationRoomItem[];
|
|
156
|
+
/** Labels para i18n / customização. */
|
|
157
|
+
labels?: BookingAdventureCardLabels;
|
|
158
|
+
/** className extra no container. */
|
|
159
|
+
className?: string;
|
|
160
|
+
}
|
|
161
|
+
declare function BookingAdventureCard({ tag, name, startDate, endDate, travellerCount, slots, travellers, itinerary, description, image, imageAlt, location, destination, included, notIncluded, lineItems, subtotal, rooms, labels, className, }: BookingAdventureCardProps): react_jsx_runtime.JSX.Element;
|
|
162
|
+
|
|
16
163
|
interface OfferSummaryLineItem {
|
|
17
164
|
label: string;
|
|
18
165
|
price: string;
|
|
@@ -93,6 +240,20 @@ interface OfferAdventureItem {
|
|
|
93
240
|
notIncludedLabel?: string;
|
|
94
241
|
/** Label da seção "Cancellation policy". Default: "Cancellation policy". */
|
|
95
242
|
cancellationPolicyLabel?: string;
|
|
243
|
+
/**
|
|
244
|
+
* Spec planetaexo-bookings accommodations-fk-unification §C4 — lista de
|
|
245
|
+
* quartos selecionados (renderiza bloco "Accommodations"). Vazio = bloco oculto.
|
|
246
|
+
*/
|
|
247
|
+
rooms?: AccommodationRoomItem[];
|
|
248
|
+
/** Heading do bloco Accommodations. Default: "Accommodations". */
|
|
249
|
+
accommodationsLabel?: string;
|
|
250
|
+
/** Labels localizados para o chip de bedArrangement. */
|
|
251
|
+
bedArrangementLabels?: {
|
|
252
|
+
DOUBLE?: string;
|
|
253
|
+
TWIN?: string;
|
|
254
|
+
SINGLE?: string;
|
|
255
|
+
TRIPLE?: string;
|
|
256
|
+
};
|
|
96
257
|
}
|
|
97
258
|
interface OfferLabels {
|
|
98
259
|
/** Cartão lateral "Booking Total". */
|
|
@@ -467,6 +628,15 @@ interface BookingDetailsLabels {
|
|
|
467
628
|
adventuresSection?: (count: number) => string;
|
|
468
629
|
/** "Travellers" — header de cada AdventureSection. */
|
|
469
630
|
travellersSection?: string;
|
|
631
|
+
/** "Accommodations" — header do bloco de quartos da aventura. Default "ACCOMMODATIONS". */
|
|
632
|
+
accommodationsHeading?: string;
|
|
633
|
+
/** Labels localizados para o chip de bedArrangement (DOUBLE/TWIN/SINGLE/TRIPLE). */
|
|
634
|
+
bedArrangementLabels?: {
|
|
635
|
+
DOUBLE?: string;
|
|
636
|
+
TWIN?: string;
|
|
637
|
+
SINGLE?: string;
|
|
638
|
+
TRIPLE?: string;
|
|
639
|
+
};
|
|
470
640
|
/** Botão "Add contact as traveller" / "Add contact". */
|
|
471
641
|
addContactAsTraveller?: string;
|
|
472
642
|
addContactAsTravellerShort?: string;
|
|
@@ -575,6 +745,10 @@ interface BookingAdventure {
|
|
|
575
745
|
seniors?: number;
|
|
576
746
|
};
|
|
577
747
|
tags?: string[];
|
|
748
|
+
/** Quartos selecionados para esta aventura (catalogo Accommodation->Room).
|
|
749
|
+
* Quando presente e nao-vazio, renderiza bloco "ACCOMMODATIONS" abaixo do
|
|
750
|
+
* accordion de details (paridade visual com BookingAdventureCard). */
|
|
751
|
+
rooms?: AccommodationRoomItem[];
|
|
578
752
|
travellers: BookingTraveller[];
|
|
579
753
|
description?: string;
|
|
580
754
|
/** Conteúdo rico de itinerário (HTML / ReactNode). Quando presente, substitui `description`
|
|
@@ -929,118 +1103,6 @@ interface BookingPaymentConfirmationEmailProps {
|
|
|
929
1103
|
}
|
|
930
1104
|
declare function BookingPaymentConfirmationEmail({ recipientName, logoUrl, bookingReference, adventures, summaryLineItems, subtotal, total, depositInfo, agent, responsiblePersonAddress, responsiblePersonEmail, responsiblePersonPhone, responsiblePersonCountry, viewBookingUrl, labels, className, flow, }: BookingPaymentConfirmationEmailProps): react_jsx_runtime.JSX.Element;
|
|
931
1105
|
|
|
932
|
-
interface BookingAdventureCardLineItem {
|
|
933
|
-
/** Valor unitário formatado, ex.: "R$ 1.500,00". Opcional quando o caller usa `label` livre. */
|
|
934
|
-
unitPrice?: string;
|
|
935
|
-
/** Quantidade, ex.: 2. Opcional quando o caller usa `label` livre. */
|
|
936
|
-
quantity?: number;
|
|
937
|
-
/** Label localizado da categoria de viajante (ex.: "Adults"). Opcional quando o caller usa `label` livre. */
|
|
938
|
-
categoryLabel?: string;
|
|
939
|
-
/** Subtotal/preço formatado, ex.: "R$ 3.000,00". */
|
|
940
|
-
subtotal: string;
|
|
941
|
-
/**
|
|
942
|
-
* Label livre alternativa. Quando informada, prevalece sobre o formato
|
|
943
|
-
* "unitPrice × quantity categoryLabel =". Usada pelo consumer
|
|
944
|
-
* `BookingConfirmation`, cujos line items têm rótulos arbitrários
|
|
945
|
-
* (ex.: "Coupon", "Optional: Snorkel"). Aceitada para preservar
|
|
946
|
-
* paridade visual no card extraído.
|
|
947
|
-
*/
|
|
948
|
-
label?: string;
|
|
949
|
-
/** Quando `true`, valor renderiza em verde com prefixo "−". */
|
|
950
|
-
isDiscount?: boolean;
|
|
951
|
-
}
|
|
952
|
-
interface BookingAdventureCardTraveller {
|
|
953
|
-
/** Nome completo do viajante (já formatado pelo caller). */
|
|
954
|
-
fullName: string;
|
|
955
|
-
/** Quando `true`, renderiza badge "child" à direita do nome. */
|
|
956
|
-
isChild?: boolean;
|
|
957
|
-
/** Texto do badge "child" — fallback para labels.childBadge. */
|
|
958
|
-
childBadgeLabel?: string;
|
|
959
|
-
}
|
|
960
|
-
interface BookingAdventureCardLabels {
|
|
961
|
-
/** Heading da seção VIAJANTES. */
|
|
962
|
-
travellersHeading?: string;
|
|
963
|
-
/** Heading da seção DETALHES (itinerário). */
|
|
964
|
-
detailsHeading?: string;
|
|
965
|
-
/** Heading da seção PREÇOS (line items). */
|
|
966
|
-
pricesHeading?: string;
|
|
967
|
-
/** Label do subtotal. */
|
|
968
|
-
subtotalLabel?: string;
|
|
969
|
-
/** Função que produz o texto curto da linha "👥 N viajante(s)". */
|
|
970
|
-
travellersCountLabel?: (count: number) => string;
|
|
971
|
-
/** Símbolo separador em "R$ X × N Adults = R$ Y" (default "×"). */
|
|
972
|
-
lineItemSeparator?: string;
|
|
973
|
-
/** Símbolo de igual em "R$ X × N Adults = R$ Y" (default "="). */
|
|
974
|
-
lineItemEquals?: string;
|
|
975
|
-
/** Heading "O que está incluso" (usado pelo BookingConfirmation). */
|
|
976
|
-
includedHeading?: string;
|
|
977
|
-
/** Heading "O que não está incluso" (usado pelo BookingConfirmation). */
|
|
978
|
-
notIncludedHeading?: string;
|
|
979
|
-
/** Texto do pill de badge "child" (usado pelo BookingConfirmation). */
|
|
980
|
-
childBadge?: string;
|
|
981
|
-
/** Unidade adulto em slots (ex.: "adult(s)"). */
|
|
982
|
-
adultsUnit?: string;
|
|
983
|
-
/** Unidade criança em slots (ex.: "child(ren)"). */
|
|
984
|
-
childrenUnit?: string;
|
|
985
|
-
}
|
|
986
|
-
interface BookingAdventureCardSlots {
|
|
987
|
-
adults: number;
|
|
988
|
-
children?: number;
|
|
989
|
-
}
|
|
990
|
-
interface BookingAdventureCardProps {
|
|
991
|
-
/** Tag opcional renderizada como pill verde acima do título (ex.: "TST-C1"). */
|
|
992
|
-
tag?: string;
|
|
993
|
-
/** Nome da aventura, ex.: "Vale do Pati Trek". */
|
|
994
|
-
name: string;
|
|
995
|
-
/** Data de início formatada (ex.: "1 de junho de 2026"). */
|
|
996
|
-
startDate: string;
|
|
997
|
-
/** Data de fim formatada. Quando ausente, range vira apenas startDate. */
|
|
998
|
-
endDate?: string;
|
|
999
|
-
/**
|
|
1000
|
-
* Quantidade total de viajantes (renderizada na linha "👥 N viajante(s)").
|
|
1001
|
-
* Quando `slots` for fornecido, este campo é ignorado em favor de
|
|
1002
|
-
* "👥 X adult(s) · Y child(ren)" (compat BookingConfirmation).
|
|
1003
|
-
*/
|
|
1004
|
-
travellerCount?: number;
|
|
1005
|
-
/** Slots adults/children — quando presente, sobrepõe `travellerCount`. */
|
|
1006
|
-
slots?: BookingAdventureCardSlots;
|
|
1007
|
-
/**
|
|
1008
|
-
* Lista de viajantes. Aceita strings (nome cru, modo PaymentReminder) ou
|
|
1009
|
-
* objetos `{fullName, isChild}` (modo BookingConfirmation com badge child).
|
|
1010
|
-
* Vazio = seção VIAJANTES não renderiza.
|
|
1011
|
-
*/
|
|
1012
|
-
travellers?: (string | BookingAdventureCardTraveller)[];
|
|
1013
|
-
/** Itinerário (cada item já formatado). Vazio = seção DETALHES não renderiza. */
|
|
1014
|
-
itinerary?: string[];
|
|
1015
|
-
/**
|
|
1016
|
-
* Descrição em HTML (alternativa a `itinerary`). Quando ambos presentes,
|
|
1017
|
-
* `description` prevalece. Usada pelo BookingConfirmation para itinerário
|
|
1018
|
-
* pré-formatado em HTML.
|
|
1019
|
-
*/
|
|
1020
|
-
description?: string;
|
|
1021
|
-
/** Imagem de cover (opcional). Usada pelo BookingConfirmation. */
|
|
1022
|
-
image?: string;
|
|
1023
|
-
/** Alt da imagem de cover (default: `name`). */
|
|
1024
|
-
imageAlt?: string;
|
|
1025
|
-
/** Linha 📍 location (legado BookingConfirmation). */
|
|
1026
|
-
location?: string;
|
|
1027
|
-
/** Linha 🧭 destination/partner (legado BookingConfirmation). */
|
|
1028
|
-
destination?: string;
|
|
1029
|
-
/** Lista de itens inclusos (legado BookingConfirmation). */
|
|
1030
|
-
included?: string[];
|
|
1031
|
-
/** Lista de itens não inclusos (legado BookingConfirmation). */
|
|
1032
|
-
notIncluded?: string[];
|
|
1033
|
-
/** Line items de pricing por categoria. */
|
|
1034
|
-
lineItems: BookingAdventureCardLineItem[];
|
|
1035
|
-
/** Subtotal formatado, ex.: "R$ 1.500,00". Quando ausente, linha do subtotal some. */
|
|
1036
|
-
subtotal?: string;
|
|
1037
|
-
/** Labels para i18n / customização. */
|
|
1038
|
-
labels?: BookingAdventureCardLabels;
|
|
1039
|
-
/** className extra no container. */
|
|
1040
|
-
className?: string;
|
|
1041
|
-
}
|
|
1042
|
-
declare function BookingAdventureCard({ tag, name, startDate, endDate, travellerCount, slots, travellers, itinerary, description, image, imageAlt, location, destination, included, notIncluded, lineItems, subtotal, labels, className, }: BookingAdventureCardProps): react_jsx_runtime.JSX.Element;
|
|
1043
|
-
|
|
1044
1106
|
interface PaymentDetailsBlockRow {
|
|
1045
1107
|
/** Label da linha (ex.: "Amount already paid"). */
|
|
1046
1108
|
label: string;
|
|
@@ -1235,6 +1297,16 @@ interface BookingSummaryRow {
|
|
|
1235
1297
|
*/
|
|
1236
1298
|
valueColor?: string;
|
|
1237
1299
|
}
|
|
1300
|
+
/**
|
|
1301
|
+
* Spec planetaexo-bookings accommodations-fk-unification §5.5 — item de quarto
|
|
1302
|
+
* para o bloco compacto no BookingSummary. Markup texto puro (sem foto — foto
|
|
1303
|
+
* fica em BookingAdventureCard).
|
|
1304
|
+
*/
|
|
1305
|
+
interface BookingSummaryRoomItem {
|
|
1306
|
+
roomName: string;
|
|
1307
|
+
bedArrangement: "DOUBLE" | "TWIN" | "SINGLE" | "TRIPLE";
|
|
1308
|
+
qty: number;
|
|
1309
|
+
}
|
|
1238
1310
|
interface BookingSummaryProps {
|
|
1239
1311
|
/**
|
|
1240
1312
|
* Heading do bloco (ex.: "Booking summary" ou "📝 Here's a quick summary of your booking:").
|
|
@@ -1244,6 +1316,21 @@ interface BookingSummaryProps {
|
|
|
1244
1316
|
heading?: string;
|
|
1245
1317
|
/** Linhas do resumo. Cada par renderiza como (label | value) na tabela. */
|
|
1246
1318
|
rows: BookingSummaryRow[];
|
|
1319
|
+
/**
|
|
1320
|
+
* Spec planetaexo-bookings accommodations-fk-unification §C4 — bloco de
|
|
1321
|
+
* quartos selecionados, renderizado após a tabela de rows e antes do footer.
|
|
1322
|
+
* Vazio = bloco oculto.
|
|
1323
|
+
*/
|
|
1324
|
+
rooms?: BookingSummaryRoomItem[];
|
|
1325
|
+
/** Heading do bloco de quartos. Default "Accommodations". */
|
|
1326
|
+
roomsHeading?: string;
|
|
1327
|
+
/** Labels localizados para o chip de bedArrangement. */
|
|
1328
|
+
bedArrangementLabels?: {
|
|
1329
|
+
DOUBLE?: string;
|
|
1330
|
+
TWIN?: string;
|
|
1331
|
+
SINGLE?: string;
|
|
1332
|
+
TRIPLE?: string;
|
|
1333
|
+
};
|
|
1247
1334
|
/**
|
|
1248
1335
|
* Conteúdo opcional renderizado como última row do card, ocupando as duas
|
|
1249
1336
|
* colunas com `colSpan={2}`. Útil para banners de estado (ex.: "Paid in full"
|
|
@@ -1260,26 +1347,7 @@ interface BookingSummaryProps {
|
|
|
1260
1347
|
/** className adicional no wrapper externo. */
|
|
1261
1348
|
className?: string;
|
|
1262
1349
|
}
|
|
1263
|
-
|
|
1264
|
-
* Bloco "Booking summary" reusável entre os e-mails transacionais.
|
|
1265
|
-
*
|
|
1266
|
-
* Visual (canônico, espelhando o markup original do BookingPaymentConfirmationEmail):
|
|
1267
|
-
* - heading 18px / fontWeight 700 / marginBottom 20px
|
|
1268
|
-
* - card encaixotado (borderRadius 12px + border 1px)
|
|
1269
|
-
* - cells com padding 12px 20px
|
|
1270
|
-
* - label com `backgroundColor: t.muted` (coluna esquerda destacada)
|
|
1271
|
-
* - value alinhado à esquerda; `valueColor` opcional por row (ex.: Booking Number em verde)
|
|
1272
|
-
* - quando valueColor === t.primary, fontWeight do value vira 600 (paridade BookingPaymentConfirmation)
|
|
1273
|
-
* - separador entre rows via `borderBottom` (na última row sem footer fica sem borda)
|
|
1274
|
-
*
|
|
1275
|
-
* Histórico: bloco originalmente inline em `BookingCreatedEmail.tsx` (extraído na
|
|
1276
|
-
* v0.29.0) e duplicado também inline em `PaymentReceiptEmail.tsx` e
|
|
1277
|
-
* `BookingPaymentConfirmationEmail.tsx`. Consolidado num único componente na
|
|
1278
|
-
* v0.32.x — todos os 4 e-mails (`BookingPaymentConfirmationEmail`,
|
|
1279
|
-
* `BookingCreatedEmail`, `PaymentReceiptEmail`, `RegistrationReminderEmail`)
|
|
1280
|
-
* agora usam exatamente o mesmo markup.
|
|
1281
|
-
*/
|
|
1282
|
-
declare function BookingSummary({ heading, rows, footer, className }: BookingSummaryProps): react_jsx_runtime.JSX.Element;
|
|
1350
|
+
declare function BookingSummary({ heading, rows, rooms, roomsHeading, bedArrangementLabels, footer, className }: BookingSummaryProps): react_jsx_runtime.JSX.Element;
|
|
1283
1351
|
|
|
1284
1352
|
type RegistrationProgressTone = "complete" | "partial" | "empty";
|
|
1285
1353
|
interface RegistrationProgressBarProps {
|
|
@@ -1576,6 +1644,11 @@ interface PartnerBookingCreatedEmailProps {
|
|
|
1576
1644
|
travellersCount: number;
|
|
1577
1645
|
/** Opcionais já formatados pelo backend (regra ×N aplicada). Vazio/undefined → row omitida. */
|
|
1578
1646
|
optionals?: string[];
|
|
1647
|
+
/**
|
|
1648
|
+
* Spec planetaexo-bookings accommodations-fk-unification §C4 — quartos
|
|
1649
|
+
* selecionados nesta BookingAdventure. Propagados ao BookingSummary.
|
|
1650
|
+
*/
|
|
1651
|
+
rooms?: BookingSummaryRoomItem[];
|
|
1579
1652
|
/** Booker: nome completo + país (exibidos no topo do Booking Summary). */
|
|
1580
1653
|
booker: {
|
|
1581
1654
|
name: string;
|
|
@@ -1606,6 +1679,15 @@ interface PartnerBookingCreatedEmailLabels {
|
|
|
1606
1679
|
numberOfPeopleLabel?: string;
|
|
1607
1680
|
/** Label da row "Optionals" no Booking Summary. */
|
|
1608
1681
|
optionalsLabel?: string;
|
|
1682
|
+
/** Heading da seção Accommodations no BookingSummary. */
|
|
1683
|
+
accommodationsHeading?: string;
|
|
1684
|
+
/** Labels localizados para o chip de bedArrangement. */
|
|
1685
|
+
bedArrangementLabels?: {
|
|
1686
|
+
DOUBLE?: string;
|
|
1687
|
+
TWIN?: string;
|
|
1688
|
+
SINGLE?: string;
|
|
1689
|
+
TRIPLE?: string;
|
|
1690
|
+
};
|
|
1609
1691
|
/** Aviso (linha 1) antes do closing — sempre visível. */
|
|
1610
1692
|
registrationPendingNotice?: string;
|
|
1611
1693
|
/** Aviso (linha 2, enfatizado) antes do closing — sempre visível. */
|
|
@@ -1616,7 +1698,7 @@ interface PartnerBookingCreatedEmailLabels {
|
|
|
1616
1698
|
closingNoAgent?: string;
|
|
1617
1699
|
teamSignature?: string;
|
|
1618
1700
|
}
|
|
1619
|
-
declare function PartnerBookingCreatedEmail({ topNotice, partnerName, bookingNumber, adventureName, dateRange, travellersCount, optionals, booker, agent, logoUrl, labels, className, }: PartnerBookingCreatedEmailProps): react_jsx_runtime.JSX.Element;
|
|
1701
|
+
declare function PartnerBookingCreatedEmail({ topNotice, partnerName, bookingNumber, adventureName, dateRange, travellersCount, optionals, rooms, booker, agent, logoUrl, labels, className, }: PartnerBookingCreatedEmailProps): react_jsx_runtime.JSX.Element;
|
|
1620
1702
|
|
|
1621
1703
|
interface PaymentReceiptEmailLabels {
|
|
1622
1704
|
logoAlt?: string;
|
|
@@ -4035,4 +4117,4 @@ interface StickyBookingCardProps {
|
|
|
4035
4117
|
}
|
|
4036
4118
|
declare function StickyBookingCard({ currentPrice, deposit, spotsRemaining, mode, onPrimary, note, className, }: StickyBookingCardProps): react_jsx_runtime.JSX.Element;
|
|
4037
4119
|
|
|
4038
|
-
export { ActivityCard, type ActivityCardProps, type ActivityCardSize, AgentContactCard, type AgentContactCardProps, Alert, type AlertProps, type AlertVariant, AskExo, type AskExoProps, type AskExoSuggestion, BirthDateField, type BirthDateFieldProps, type BlogAuthor, type BlogBlock, type BlogCalloutBlock, BlogCard, type BlogCardCta, type BlogCardProps, type BlogCardSize, type BlogCollageBlock, type BlogHeadingBlock, type BlogImageBlock, type BlogListBlock, type BlogParagraphBlock, BlogPost, type BlogPostProps, type BlogQuoteBlock, type BlogTableBlock, type BlogTableColumn, type BookingAdventure, BookingAdventureCard, type BookingAdventureCardLabels, type BookingAdventureCardLineItem, type BookingAdventureCardProps, type BookingAdventureCardSlots, type BookingAdventureCardTraveller, type BookingCancellationAdventure, type BookingCancellationAgentContactLinks, BookingCancellationEmail, type BookingCancellationEmailLabels, type BookingCancellationEmailProps, BookingConfirmedCard, type BookingConfirmedCardProps, type BookingContact, BookingCreatedEmail, type BookingCreatedEmailLabels, type BookingCreatedEmailProps, type BookingDepositInfo, BookingDetails, type BookingDetailsLabels, type BookingDetailsProps, BookingForm, type BookingFormProps, type BookingFormValues, BookingOtpEmail, type BookingOtpEmailProps, BookingPaymentConfirmationEmail, type BookingPaymentConfirmationEmailLabels, type BookingPaymentConfirmationEmailProps, BookingShell, type BookingShellProps, type BookingStatus, BookingSummary, type BookingSummaryLineItem, type BookingSummaryProps, type BookingSummaryRow, type BookingTraveller, Button, type ButtonProps, COUNTRIES, type Category2BlogPost, type Category2Faq, type Category2SortOption, type Category2Trip, CategoryPage2, type CategoryPage2Props, type ConfirmationAdventure, type ConfirmationDepositInfo, type ConfirmationLineItem, type ConfirmationTraveller, CounterField, type CounterFieldProps, type CountryOption, CountrySearchField, type CountrySearchFieldProps, type CurrencyEstimate, DEFAULT_HEADER_LINKS, DEFAULT_LANGUAGES, STATUS_MAP as DEPARTURE_STATUS_MAP, DatePickerField, type DatePickerFieldProps, type DepartureStatus, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, type EmailTokens, ExoOrb, type ExoOrbProps, type FilterGroup, type FilterItem, FilterPanel, type FilterPanelProps, FloatingInput, type FloatingInputProps, FloatingSelect, type FloatingSelectProps, GroupProgressBar, type GroupProgressBarProps, GroupStatusBanner, type GroupStatusBannerProps, Itinerary, ItineraryDay, type ItineraryDayPhoto, type ItineraryDayPhotoLayout, type ItineraryDayProps, type ItineraryDaySpec, type ItineraryProps, type ItineraryRoute, type ItineraryStop, LOGO_PLANETAEXO_DATA_URI, LeadCapturePopup, type LeadCapturePopupConfig, MenuTrip, type MenuTripProps, type MenuTripSection, type MenuTripVariant, OTPCodeInput, type OTPCodeInputProps, Offer, OfferAdventureCard, type OfferAdventureItem, type OfferAgentInfo, type OfferConfirmedState, type OfferDepositInfo, type OfferLabels, type OfferOptionalItem, type OfferProps, type OfferSummaryLineItem, type Participant, ParticipantCounter, type ParticipantCounterProps, ParticipantList, type ParticipantListProps, type PartnerBookingCreatedAgentContactLinks, PartnerBookingCreatedEmail, type PartnerBookingCreatedEmailLabels, type PartnerBookingCreatedEmailProps, type PartnerRegistrationCompleteAgentContactLinks, PartnerRegistrationCompleteEmail, type PartnerRegistrationCompleteEmailExpectationRow, type PartnerRegistrationCompleteEmailLabels, type PartnerRegistrationCompleteEmailProps, PaymentAmountSelector, type PaymentAmountSelectorProps, PaymentDetailsBlock, type PaymentDetailsBlockFooterBanner, type PaymentDetailsBlockLabels, type PaymentDetailsBlockProps, type PaymentDetailsBlockRow, type PaymentMethodOption, PaymentMethodSelector, type PaymentMethodSelectorProps, PaymentModalShell, type PaymentModalShellProps, type PaymentReceiptAdventure, type PaymentReceiptAdventureLineItem, PaymentReceiptEmail, type PaymentReceiptEmailLabels, type PaymentReceiptEmailProps, type PaymentReminderAgentContactLinks, PaymentReminderEmail, type PaymentReminderEmailAdventure, type PaymentReminderEmailLabels, type PaymentReminderEmailLineItem, type PaymentReminderEmailProps, type PaymentReminderEmailVariantLabels, type PaymentReminderVariant, PhoneCountrySelect, PhotoGallery, type PhotoGalleryPhoto, type PhotoGalleryProps, type PhotoGalleryVariant, Picture, type PictureProps, PriceProgress, type PriceProgressProps, PricingMatrixCard, type PricingMatrixCardProps, type PricingTier, PricingTrip, type PricingTripProps, type PricingTripVariant, type RegistrationAdventure, type RegistrationBooking, type RegistrationEmergencyContactValue, type RegistrationField, type RegistrationFieldOption, type RegistrationFieldType, type RegistrationFieldValue, RegistrationForm, type RegistrationFormLabels, type RegistrationFormProps, type RegistrationFormValues, type RegistrationNameValue, type RegistrationPhoneValue, RegistrationProgressBar, type RegistrationProgressBarProps, type RegistrationProgressTone, type RegistrationReminderAdventureBlock, type RegistrationReminderAgentContactLinks, RegistrationReminderEmail, type RegistrationReminderEmailLabels, type RegistrationReminderEmailProps, type RegistrationReminderEmailVariantLabels, type RegistrationReminderIndividualAgentContactLinks, RegistrationReminderIndividualEmail, type RegistrationReminderIndividualEmailLabels, type RegistrationReminderIndividualEmailProps, type RegistrationReminderIndividualRoute, type RegistrationReminderIndividualSlug, type RegistrationReminderIndividualVariantLabels, type RegistrationReminderSlug, RegistrationSuccessCard, type RegistrationSuccessCardProps, type RegistrationTerms, type RegistrationTraveller, ShareWidget, type ShareWidgetProps, SiteHeader, type SiteHeaderLanguage, type SiteHeaderLink, type SiteHeaderProps, type SiteHeaderSubItem, type SiteHeaderVariant, StatusBadge, type StatusBadgeProps, StickyBookingCard, type StickyBookingCardProps, type StripeAppearance, type SuggestedTraveller, TERMS_ACCEPT_KEY, TermsSection, type TermsSectionProps, ThemeToggle, Toast, type ToastProps, type ToastVariant, TransferDetailsBlock, type TransferDetailsBlockProps, type TravellerFormConfig, type TravellerFormData, TravellerFormInviteEmail, type TravellerFormInviteEmailLabels, type TravellerFormInviteEmailProps, type TravellerFormInviteLink, type TravellerFormLabels, TripCard, type TripCardCta, type TripCardProps, type TripCardSize, type TripCardStatus, type TripDuration, type TripFaq, TripHeader, type TripHeaderProps, type TripHighlight, type TripInfoGroup, type TripItineraryDay, type TripItineraryStep, type TripMeetingPoint, type TripOverviewHighlight, TripPage, type TripPageLabels, type TripPageProps, type TripReview, type TripSectionIcons, type TripSiteHeaderConfig, type TripTrustpilotWidget, TrustpilotEmbed, type TrustpilotWidgetConfig, buttonVariants, cn, emailTokens, formatCpf, getStripeAppearance, itineraryDaySpecIcons, stripeAppearance, validateCpf, webpVariantUrl, wrapEmailHtml };
|
|
4120
|
+
export { type AccommodationRoomItem, ActivityCard, type ActivityCardProps, type ActivityCardSize, AgentContactCard, type AgentContactCardProps, Alert, type AlertProps, type AlertVariant, AskExo, type AskExoProps, type AskExoSuggestion, BirthDateField, type BirthDateFieldProps, type BlogAuthor, type BlogBlock, type BlogCalloutBlock, BlogCard, type BlogCardCta, type BlogCardProps, type BlogCardSize, type BlogCollageBlock, type BlogHeadingBlock, type BlogImageBlock, type BlogListBlock, type BlogParagraphBlock, BlogPost, type BlogPostProps, type BlogQuoteBlock, type BlogTableBlock, type BlogTableColumn, type BookingAdventure, BookingAdventureCard, type BookingAdventureCardLabels, type BookingAdventureCardLineItem, type BookingAdventureCardProps, type BookingAdventureCardSlots, type BookingAdventureCardTraveller, type BookingCancellationAdventure, type BookingCancellationAgentContactLinks, BookingCancellationEmail, type BookingCancellationEmailLabels, type BookingCancellationEmailProps, BookingConfirmedCard, type BookingConfirmedCardProps, type BookingContact, BookingCreatedEmail, type BookingCreatedEmailLabels, type BookingCreatedEmailProps, type BookingDepositInfo, BookingDetails, type BookingDetailsLabels, type BookingDetailsProps, BookingForm, type BookingFormProps, type BookingFormValues, BookingOtpEmail, type BookingOtpEmailProps, BookingPaymentConfirmationEmail, type BookingPaymentConfirmationEmailLabels, type BookingPaymentConfirmationEmailProps, BookingShell, type BookingShellProps, type BookingStatus, BookingSummary, type BookingSummaryLineItem, type BookingSummaryProps, type BookingSummaryRoomItem, type BookingSummaryRow, type BookingTraveller, Button, type ButtonProps, COUNTRIES, type Category2BlogPost, type Category2Faq, type Category2SortOption, type Category2Trip, CategoryPage2, type CategoryPage2Props, type ConfirmationAdventure, type ConfirmationDepositInfo, type ConfirmationLineItem, type ConfirmationTraveller, CounterField, type CounterFieldProps, type CountryOption, CountrySearchField, type CountrySearchFieldProps, type CurrencyEstimate, DEFAULT_HEADER_LINKS, DEFAULT_LANGUAGES, STATUS_MAP as DEPARTURE_STATUS_MAP, DatePickerField, type DatePickerFieldProps, type DepartureStatus, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, type EmailTokens, ExoOrb, type ExoOrbProps, type FilterGroup, type FilterItem, FilterPanel, type FilterPanelProps, FloatingInput, type FloatingInputProps, FloatingSelect, type FloatingSelectProps, GroupProgressBar, type GroupProgressBarProps, GroupStatusBanner, type GroupStatusBannerProps, Itinerary, ItineraryDay, type ItineraryDayPhoto, type ItineraryDayPhotoLayout, type ItineraryDayProps, type ItineraryDaySpec, type ItineraryProps, type ItineraryRoute, type ItineraryStop, LOGO_PLANETAEXO_DATA_URI, LeadCapturePopup, type LeadCapturePopupConfig, MenuTrip, type MenuTripProps, type MenuTripSection, type MenuTripVariant, OTPCodeInput, type OTPCodeInputProps, Offer, OfferAdventureCard, type OfferAdventureItem, type OfferAgentInfo, type OfferConfirmedState, type OfferDepositInfo, type OfferLabels, type OfferOptionalItem, type OfferProps, type OfferSummaryLineItem, type Participant, ParticipantCounter, type ParticipantCounterProps, ParticipantList, type ParticipantListProps, type PartnerBookingCreatedAgentContactLinks, PartnerBookingCreatedEmail, type PartnerBookingCreatedEmailLabels, type PartnerBookingCreatedEmailProps, type PartnerRegistrationCompleteAgentContactLinks, PartnerRegistrationCompleteEmail, type PartnerRegistrationCompleteEmailExpectationRow, type PartnerRegistrationCompleteEmailLabels, type PartnerRegistrationCompleteEmailProps, PaymentAmountSelector, type PaymentAmountSelectorProps, PaymentDetailsBlock, type PaymentDetailsBlockFooterBanner, type PaymentDetailsBlockLabels, type PaymentDetailsBlockProps, type PaymentDetailsBlockRow, type PaymentMethodOption, PaymentMethodSelector, type PaymentMethodSelectorProps, PaymentModalShell, type PaymentModalShellProps, type PaymentReceiptAdventure, type PaymentReceiptAdventureLineItem, PaymentReceiptEmail, type PaymentReceiptEmailLabels, type PaymentReceiptEmailProps, type PaymentReminderAgentContactLinks, PaymentReminderEmail, type PaymentReminderEmailAdventure, type PaymentReminderEmailLabels, type PaymentReminderEmailLineItem, type PaymentReminderEmailProps, type PaymentReminderEmailVariantLabels, type PaymentReminderVariant, PhoneCountrySelect, PhotoGallery, type PhotoGalleryPhoto, type PhotoGalleryProps, type PhotoGalleryVariant, Picture, type PictureProps, PriceProgress, type PriceProgressProps, PricingMatrixCard, type PricingMatrixCardProps, type PricingTier, PricingTrip, type PricingTripProps, type PricingTripVariant, type RegistrationAdventure, type RegistrationBooking, type RegistrationEmergencyContactValue, type RegistrationField, type RegistrationFieldOption, type RegistrationFieldType, type RegistrationFieldValue, RegistrationForm, type RegistrationFormLabels, type RegistrationFormProps, type RegistrationFormValues, type RegistrationNameValue, type RegistrationPhoneValue, RegistrationProgressBar, type RegistrationProgressBarProps, type RegistrationProgressTone, type RegistrationReminderAdventureBlock, type RegistrationReminderAgentContactLinks, RegistrationReminderEmail, type RegistrationReminderEmailLabels, type RegistrationReminderEmailProps, type RegistrationReminderEmailVariantLabels, type RegistrationReminderIndividualAgentContactLinks, RegistrationReminderIndividualEmail, type RegistrationReminderIndividualEmailLabels, type RegistrationReminderIndividualEmailProps, type RegistrationReminderIndividualRoute, type RegistrationReminderIndividualSlug, type RegistrationReminderIndividualVariantLabels, type RegistrationReminderSlug, RegistrationSuccessCard, type RegistrationSuccessCardProps, type RegistrationTerms, type RegistrationTraveller, ShareWidget, type ShareWidgetProps, SiteHeader, type SiteHeaderLanguage, type SiteHeaderLink, type SiteHeaderProps, type SiteHeaderSubItem, type SiteHeaderVariant, StatusBadge, type StatusBadgeProps, StickyBookingCard, type StickyBookingCardProps, type StripeAppearance, type SuggestedTraveller, TERMS_ACCEPT_KEY, TermsSection, type TermsSectionProps, ThemeToggle, Toast, type ToastProps, type ToastVariant, TransferDetailsBlock, type TransferDetailsBlockProps, type TravellerFormConfig, type TravellerFormData, TravellerFormInviteEmail, type TravellerFormInviteEmailLabels, type TravellerFormInviteEmailProps, type TravellerFormInviteLink, type TravellerFormLabels, TripCard, type TripCardCta, type TripCardProps, type TripCardSize, type TripCardStatus, type TripDuration, type TripFaq, TripHeader, type TripHeaderProps, type TripHighlight, type TripInfoGroup, type TripItineraryDay, type TripItineraryStep, type TripMeetingPoint, type TripOverviewHighlight, TripPage, type TripPageLabels, type TripPageProps, type TripReview, type TripSectionIcons, type TripSiteHeaderConfig, type TripTrustpilotWidget, TrustpilotEmbed, type TrustpilotWidgetConfig, buttonVariants, cn, emailTokens, formatCpf, getStripeAppearance, itineraryDaySpecIcons, stripeAppearance, validateCpf, webpVariantUrl, wrapEmailHtml };
|