@planetaexo/design-system 0.58.3 → 0.59.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 +241 -13
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +203 -134
- package/dist/index.d.ts +203 -134
- package/dist/index.js +241 -13
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
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". */
|
|
@@ -929,118 +1090,6 @@ interface BookingPaymentConfirmationEmailProps {
|
|
|
929
1090
|
}
|
|
930
1091
|
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
1092
|
|
|
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
1093
|
interface PaymentDetailsBlockRow {
|
|
1045
1094
|
/** Label da linha (ex.: "Amount already paid"). */
|
|
1046
1095
|
label: string;
|
|
@@ -1235,6 +1284,16 @@ interface BookingSummaryRow {
|
|
|
1235
1284
|
*/
|
|
1236
1285
|
valueColor?: string;
|
|
1237
1286
|
}
|
|
1287
|
+
/**
|
|
1288
|
+
* Spec planetaexo-bookings accommodations-fk-unification §5.5 — item de quarto
|
|
1289
|
+
* para o bloco compacto no BookingSummary. Markup texto puro (sem foto — foto
|
|
1290
|
+
* fica em BookingAdventureCard).
|
|
1291
|
+
*/
|
|
1292
|
+
interface BookingSummaryRoomItem {
|
|
1293
|
+
roomName: string;
|
|
1294
|
+
bedArrangement: "DOUBLE" | "TWIN" | "SINGLE" | "TRIPLE";
|
|
1295
|
+
qty: number;
|
|
1296
|
+
}
|
|
1238
1297
|
interface BookingSummaryProps {
|
|
1239
1298
|
/**
|
|
1240
1299
|
* Heading do bloco (ex.: "Booking summary" ou "📝 Here's a quick summary of your booking:").
|
|
@@ -1244,6 +1303,21 @@ interface BookingSummaryProps {
|
|
|
1244
1303
|
heading?: string;
|
|
1245
1304
|
/** Linhas do resumo. Cada par renderiza como (label | value) na tabela. */
|
|
1246
1305
|
rows: BookingSummaryRow[];
|
|
1306
|
+
/**
|
|
1307
|
+
* Spec planetaexo-bookings accommodations-fk-unification §C4 — bloco de
|
|
1308
|
+
* quartos selecionados, renderizado após a tabela de rows e antes do footer.
|
|
1309
|
+
* Vazio = bloco oculto.
|
|
1310
|
+
*/
|
|
1311
|
+
rooms?: BookingSummaryRoomItem[];
|
|
1312
|
+
/** Heading do bloco de quartos. Default "Accommodations". */
|
|
1313
|
+
roomsHeading?: string;
|
|
1314
|
+
/** Labels localizados para o chip de bedArrangement. */
|
|
1315
|
+
bedArrangementLabels?: {
|
|
1316
|
+
DOUBLE?: string;
|
|
1317
|
+
TWIN?: string;
|
|
1318
|
+
SINGLE?: string;
|
|
1319
|
+
TRIPLE?: string;
|
|
1320
|
+
};
|
|
1247
1321
|
/**
|
|
1248
1322
|
* Conteúdo opcional renderizado como última row do card, ocupando as duas
|
|
1249
1323
|
* colunas com `colSpan={2}`. Útil para banners de estado (ex.: "Paid in full"
|
|
@@ -1260,26 +1334,7 @@ interface BookingSummaryProps {
|
|
|
1260
1334
|
/** className adicional no wrapper externo. */
|
|
1261
1335
|
className?: string;
|
|
1262
1336
|
}
|
|
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;
|
|
1337
|
+
declare function BookingSummary({ heading, rows, rooms, roomsHeading, bedArrangementLabels, footer, className }: BookingSummaryProps): react_jsx_runtime.JSX.Element;
|
|
1283
1338
|
|
|
1284
1339
|
type RegistrationProgressTone = "complete" | "partial" | "empty";
|
|
1285
1340
|
interface RegistrationProgressBarProps {
|
|
@@ -1576,6 +1631,11 @@ interface PartnerBookingCreatedEmailProps {
|
|
|
1576
1631
|
travellersCount: number;
|
|
1577
1632
|
/** Opcionais já formatados pelo backend (regra ×N aplicada). Vazio/undefined → row omitida. */
|
|
1578
1633
|
optionals?: string[];
|
|
1634
|
+
/**
|
|
1635
|
+
* Spec planetaexo-bookings accommodations-fk-unification §C4 — quartos
|
|
1636
|
+
* selecionados nesta BookingAdventure. Propagados ao BookingSummary.
|
|
1637
|
+
*/
|
|
1638
|
+
rooms?: BookingSummaryRoomItem[];
|
|
1579
1639
|
/** Booker: nome completo + país (exibidos no topo do Booking Summary). */
|
|
1580
1640
|
booker: {
|
|
1581
1641
|
name: string;
|
|
@@ -1606,6 +1666,15 @@ interface PartnerBookingCreatedEmailLabels {
|
|
|
1606
1666
|
numberOfPeopleLabel?: string;
|
|
1607
1667
|
/** Label da row "Optionals" no Booking Summary. */
|
|
1608
1668
|
optionalsLabel?: string;
|
|
1669
|
+
/** Heading da seção Accommodations no BookingSummary. */
|
|
1670
|
+
accommodationsHeading?: string;
|
|
1671
|
+
/** Labels localizados para o chip de bedArrangement. */
|
|
1672
|
+
bedArrangementLabels?: {
|
|
1673
|
+
DOUBLE?: string;
|
|
1674
|
+
TWIN?: string;
|
|
1675
|
+
SINGLE?: string;
|
|
1676
|
+
TRIPLE?: string;
|
|
1677
|
+
};
|
|
1609
1678
|
/** Aviso (linha 1) antes do closing — sempre visível. */
|
|
1610
1679
|
registrationPendingNotice?: string;
|
|
1611
1680
|
/** Aviso (linha 2, enfatizado) antes do closing — sempre visível. */
|
|
@@ -1616,7 +1685,7 @@ interface PartnerBookingCreatedEmailLabels {
|
|
|
1616
1685
|
closingNoAgent?: string;
|
|
1617
1686
|
teamSignature?: string;
|
|
1618
1687
|
}
|
|
1619
|
-
declare function PartnerBookingCreatedEmail({ topNotice, partnerName, bookingNumber, adventureName, dateRange, travellersCount, optionals, booker, agent, logoUrl, labels, className, }: PartnerBookingCreatedEmailProps): react_jsx_runtime.JSX.Element;
|
|
1688
|
+
declare function PartnerBookingCreatedEmail({ topNotice, partnerName, bookingNumber, adventureName, dateRange, travellersCount, optionals, rooms, booker, agent, logoUrl, labels, className, }: PartnerBookingCreatedEmailProps): react_jsx_runtime.JSX.Element;
|
|
1620
1689
|
|
|
1621
1690
|
interface PaymentReceiptEmailLabels {
|
|
1622
1691
|
logoAlt?: string;
|
|
@@ -4035,4 +4104,4 @@ interface StickyBookingCardProps {
|
|
|
4035
4104
|
}
|
|
4036
4105
|
declare function StickyBookingCard({ currentPrice, deposit, spotsRemaining, mode, onPrimary, note, className, }: StickyBookingCardProps): react_jsx_runtime.JSX.Element;
|
|
4037
4106
|
|
|
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 };
|
|
4107
|
+
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 };
|