@planetaexo/design-system 0.62.0 → 0.63.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 +46 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +36 -3
- package/dist/index.d.ts +36 -3
- package/dist/index.js +46 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -140,6 +140,12 @@ interface BookingAdventureCardProps {
|
|
|
140
140
|
location?: string;
|
|
141
141
|
/** Linha 🧭 destination/partner (legado BookingConfirmation). */
|
|
142
142
|
destination?: string;
|
|
143
|
+
/**
|
|
144
|
+
* Linha 🤝 do parceiro/operador local responsável por esta aventura.
|
|
145
|
+
* Renderiza uma linha própria (separada do `destination` 🧭) e só quando
|
|
146
|
+
* presente. Spec passport-and-partner-email-fields.
|
|
147
|
+
*/
|
|
148
|
+
partner?: string;
|
|
143
149
|
/** Lista de itens inclusos (legado BookingConfirmation). */
|
|
144
150
|
included?: string[];
|
|
145
151
|
/** Lista de itens não inclusos (legado BookingConfirmation). */
|
|
@@ -158,7 +164,7 @@ interface BookingAdventureCardProps {
|
|
|
158
164
|
/** className extra no container. */
|
|
159
165
|
className?: string;
|
|
160
166
|
}
|
|
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;
|
|
167
|
+
declare function BookingAdventureCard({ tag, name, startDate, endDate, travellerCount, slots, travellers, itinerary, description, image, imageAlt, location, destination, partner, included, notIncluded, lineItems, subtotal, rooms, labels, className, }: BookingAdventureCardProps): react_jsx_runtime.JSX.Element;
|
|
162
168
|
|
|
163
169
|
interface OfferSummaryLineItem {
|
|
164
170
|
label: string;
|
|
@@ -1036,6 +1042,13 @@ interface ConfirmationAdventure {
|
|
|
1036
1042
|
partner?: string;
|
|
1037
1043
|
/** Nome do destino (Adventure.adventureDestinations[].destination.name). Quando presente, prioriza este valor sobre `partner` na linha 🧭. */
|
|
1038
1044
|
destinationName?: string;
|
|
1045
|
+
/**
|
|
1046
|
+
* Nome do parceiro/operador local atribuído a ESTA aventura
|
|
1047
|
+
* (BookingAdventure.partner.name). Renderiza a linha 🤝 do card, separada da
|
|
1048
|
+
* linha 🧭 de destino. Quando ausente, a linha não aparece. Spec
|
|
1049
|
+
* passport-and-partner-email-fields.
|
|
1050
|
+
*/
|
|
1051
|
+
partnerName?: string;
|
|
1039
1052
|
/** Slot legado de endereço/localização (linha 📍). Quando ausente E `destinationName` presente, a linha 📍 some. Mantido em paralelo para compat backward. */
|
|
1040
1053
|
location?: string;
|
|
1041
1054
|
dateFrom: string;
|
|
@@ -1588,6 +1601,17 @@ interface PartnerRegistrationCompleteEmailProps {
|
|
|
1588
1601
|
adventureName: string;
|
|
1589
1602
|
/** Já formatado pelo backend (ex.: "12 May 2026 – 18 May 2026"). */
|
|
1590
1603
|
dateRange: string;
|
|
1604
|
+
/**
|
|
1605
|
+
* Nome da pessoa responsável pela reserva (booking person). Quando presente,
|
|
1606
|
+
* renderiza uma row "Booking person" no Trip details. Spec
|
|
1607
|
+
* passport-and-partner-email-fields.
|
|
1608
|
+
*/
|
|
1609
|
+
bookingPersonName?: string;
|
|
1610
|
+
/**
|
|
1611
|
+
* Passaporte / documento da pessoa responsável (booking person). Quando
|
|
1612
|
+
* presente, renderiza uma row "Passport" no Trip details; omitido quando ausente.
|
|
1613
|
+
*/
|
|
1614
|
+
bookingPersonPassport?: string;
|
|
1591
1615
|
travellersCount: number;
|
|
1592
1616
|
/** Seção Travellers Expectations. hasSection=false → nenhum campo marcado no form. */
|
|
1593
1617
|
expectations: {
|
|
@@ -1617,6 +1641,8 @@ interface PartnerRegistrationCompleteEmailLabels {
|
|
|
1617
1641
|
adventureLabel?: string;
|
|
1618
1642
|
datesLabel?: string;
|
|
1619
1643
|
partnerLabel?: string;
|
|
1644
|
+
bookingPersonLabel?: string;
|
|
1645
|
+
passportLabel?: string;
|
|
1620
1646
|
expectationsHeading?: string;
|
|
1621
1647
|
/** Quando hasSection=false OU rows vazio. */
|
|
1622
1648
|
expectationsEmptyNote?: string;
|
|
@@ -1629,7 +1655,7 @@ interface PartnerRegistrationCompleteEmailLabels {
|
|
|
1629
1655
|
closingNoAgent?: string;
|
|
1630
1656
|
teamSignature?: string;
|
|
1631
1657
|
}
|
|
1632
|
-
declare function PartnerRegistrationCompleteEmail({ scenario, topNotice, partnerName, bookingNumber, adventureName, dateRange, travellersCount, expectations, pdfAttached, agent, logoUrl, labels, className, }: PartnerRegistrationCompleteEmailProps): react_jsx_runtime.JSX.Element;
|
|
1658
|
+
declare function PartnerRegistrationCompleteEmail({ scenario, topNotice, partnerName, bookingNumber, adventureName, dateRange, bookingPersonName, bookingPersonPassport, travellersCount, expectations, pdfAttached, agent, logoUrl, labels, className, }: PartnerRegistrationCompleteEmailProps): react_jsx_runtime.JSX.Element;
|
|
1633
1659
|
|
|
1634
1660
|
interface PartnerBookingCreatedAgentContactLinks {
|
|
1635
1661
|
whatsappUrl?: string;
|
|
@@ -1723,6 +1749,7 @@ interface PaymentReceiptEmailLabels {
|
|
|
1723
1749
|
interestSurchargeLabel?: string;
|
|
1724
1750
|
statusLabel?: string;
|
|
1725
1751
|
travellersLabel?: string;
|
|
1752
|
+
passportLabel?: string;
|
|
1726
1753
|
summaryHeading?: string;
|
|
1727
1754
|
totalOrderLabel?: string;
|
|
1728
1755
|
totalPaidLabel?: string;
|
|
@@ -1766,6 +1793,12 @@ interface PaymentReceiptEmailProps {
|
|
|
1766
1793
|
statusLabel: string;
|
|
1767
1794
|
/** Lista de nomes dos viajantes da reserva. */
|
|
1768
1795
|
travellers: string[];
|
|
1796
|
+
/**
|
|
1797
|
+
* Passaporte / documento da pessoa responsável pela reserva (booking person).
|
|
1798
|
+
* Quando ausente/vazio, a row "Passport" não renderiza. Spec
|
|
1799
|
+
* passport-and-partner-email-fields.
|
|
1800
|
+
*/
|
|
1801
|
+
passport?: string;
|
|
1769
1802
|
/** Total da reserva formatado. */
|
|
1770
1803
|
totalOrderAmount: string;
|
|
1771
1804
|
/** Soma acumulada de pagamentos confirmados (após esta transação). */
|
|
@@ -1790,7 +1823,7 @@ interface PaymentReceiptEmailProps {
|
|
|
1790
1823
|
/** className adicional no container. */
|
|
1791
1824
|
className?: string;
|
|
1792
1825
|
}
|
|
1793
|
-
declare function PaymentReceiptEmail({ recipientName, bookingNumber, paymentMethodLabel, paymentDate, amount, chargedAmount, statusLabel, travellers, totalOrderAmount, totalPaidCumulative, remainingBalance, balanceDueDate, isPaidInFull, adventures, logoUrl, labels, className, }: PaymentReceiptEmailProps): react_jsx_runtime.JSX.Element;
|
|
1826
|
+
declare function PaymentReceiptEmail({ recipientName, bookingNumber, paymentMethodLabel, paymentDate, amount, chargedAmount, statusLabel, travellers, passport, totalOrderAmount, totalPaidCumulative, remainingBalance, balanceDueDate, isPaidInFull, adventures, logoUrl, labels, className, }: PaymentReceiptEmailProps): react_jsx_runtime.JSX.Element;
|
|
1794
1827
|
|
|
1795
1828
|
/**
|
|
1796
1829
|
* Variante do lembrete:
|
package/dist/index.d.ts
CHANGED
|
@@ -140,6 +140,12 @@ interface BookingAdventureCardProps {
|
|
|
140
140
|
location?: string;
|
|
141
141
|
/** Linha 🧭 destination/partner (legado BookingConfirmation). */
|
|
142
142
|
destination?: string;
|
|
143
|
+
/**
|
|
144
|
+
* Linha 🤝 do parceiro/operador local responsável por esta aventura.
|
|
145
|
+
* Renderiza uma linha própria (separada do `destination` 🧭) e só quando
|
|
146
|
+
* presente. Spec passport-and-partner-email-fields.
|
|
147
|
+
*/
|
|
148
|
+
partner?: string;
|
|
143
149
|
/** Lista de itens inclusos (legado BookingConfirmation). */
|
|
144
150
|
included?: string[];
|
|
145
151
|
/** Lista de itens não inclusos (legado BookingConfirmation). */
|
|
@@ -158,7 +164,7 @@ interface BookingAdventureCardProps {
|
|
|
158
164
|
/** className extra no container. */
|
|
159
165
|
className?: string;
|
|
160
166
|
}
|
|
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;
|
|
167
|
+
declare function BookingAdventureCard({ tag, name, startDate, endDate, travellerCount, slots, travellers, itinerary, description, image, imageAlt, location, destination, partner, included, notIncluded, lineItems, subtotal, rooms, labels, className, }: BookingAdventureCardProps): react_jsx_runtime.JSX.Element;
|
|
162
168
|
|
|
163
169
|
interface OfferSummaryLineItem {
|
|
164
170
|
label: string;
|
|
@@ -1036,6 +1042,13 @@ interface ConfirmationAdventure {
|
|
|
1036
1042
|
partner?: string;
|
|
1037
1043
|
/** Nome do destino (Adventure.adventureDestinations[].destination.name). Quando presente, prioriza este valor sobre `partner` na linha 🧭. */
|
|
1038
1044
|
destinationName?: string;
|
|
1045
|
+
/**
|
|
1046
|
+
* Nome do parceiro/operador local atribuído a ESTA aventura
|
|
1047
|
+
* (BookingAdventure.partner.name). Renderiza a linha 🤝 do card, separada da
|
|
1048
|
+
* linha 🧭 de destino. Quando ausente, a linha não aparece. Spec
|
|
1049
|
+
* passport-and-partner-email-fields.
|
|
1050
|
+
*/
|
|
1051
|
+
partnerName?: string;
|
|
1039
1052
|
/** Slot legado de endereço/localização (linha 📍). Quando ausente E `destinationName` presente, a linha 📍 some. Mantido em paralelo para compat backward. */
|
|
1040
1053
|
location?: string;
|
|
1041
1054
|
dateFrom: string;
|
|
@@ -1588,6 +1601,17 @@ interface PartnerRegistrationCompleteEmailProps {
|
|
|
1588
1601
|
adventureName: string;
|
|
1589
1602
|
/** Já formatado pelo backend (ex.: "12 May 2026 – 18 May 2026"). */
|
|
1590
1603
|
dateRange: string;
|
|
1604
|
+
/**
|
|
1605
|
+
* Nome da pessoa responsável pela reserva (booking person). Quando presente,
|
|
1606
|
+
* renderiza uma row "Booking person" no Trip details. Spec
|
|
1607
|
+
* passport-and-partner-email-fields.
|
|
1608
|
+
*/
|
|
1609
|
+
bookingPersonName?: string;
|
|
1610
|
+
/**
|
|
1611
|
+
* Passaporte / documento da pessoa responsável (booking person). Quando
|
|
1612
|
+
* presente, renderiza uma row "Passport" no Trip details; omitido quando ausente.
|
|
1613
|
+
*/
|
|
1614
|
+
bookingPersonPassport?: string;
|
|
1591
1615
|
travellersCount: number;
|
|
1592
1616
|
/** Seção Travellers Expectations. hasSection=false → nenhum campo marcado no form. */
|
|
1593
1617
|
expectations: {
|
|
@@ -1617,6 +1641,8 @@ interface PartnerRegistrationCompleteEmailLabels {
|
|
|
1617
1641
|
adventureLabel?: string;
|
|
1618
1642
|
datesLabel?: string;
|
|
1619
1643
|
partnerLabel?: string;
|
|
1644
|
+
bookingPersonLabel?: string;
|
|
1645
|
+
passportLabel?: string;
|
|
1620
1646
|
expectationsHeading?: string;
|
|
1621
1647
|
/** Quando hasSection=false OU rows vazio. */
|
|
1622
1648
|
expectationsEmptyNote?: string;
|
|
@@ -1629,7 +1655,7 @@ interface PartnerRegistrationCompleteEmailLabels {
|
|
|
1629
1655
|
closingNoAgent?: string;
|
|
1630
1656
|
teamSignature?: string;
|
|
1631
1657
|
}
|
|
1632
|
-
declare function PartnerRegistrationCompleteEmail({ scenario, topNotice, partnerName, bookingNumber, adventureName, dateRange, travellersCount, expectations, pdfAttached, agent, logoUrl, labels, className, }: PartnerRegistrationCompleteEmailProps): react_jsx_runtime.JSX.Element;
|
|
1658
|
+
declare function PartnerRegistrationCompleteEmail({ scenario, topNotice, partnerName, bookingNumber, adventureName, dateRange, bookingPersonName, bookingPersonPassport, travellersCount, expectations, pdfAttached, agent, logoUrl, labels, className, }: PartnerRegistrationCompleteEmailProps): react_jsx_runtime.JSX.Element;
|
|
1633
1659
|
|
|
1634
1660
|
interface PartnerBookingCreatedAgentContactLinks {
|
|
1635
1661
|
whatsappUrl?: string;
|
|
@@ -1723,6 +1749,7 @@ interface PaymentReceiptEmailLabels {
|
|
|
1723
1749
|
interestSurchargeLabel?: string;
|
|
1724
1750
|
statusLabel?: string;
|
|
1725
1751
|
travellersLabel?: string;
|
|
1752
|
+
passportLabel?: string;
|
|
1726
1753
|
summaryHeading?: string;
|
|
1727
1754
|
totalOrderLabel?: string;
|
|
1728
1755
|
totalPaidLabel?: string;
|
|
@@ -1766,6 +1793,12 @@ interface PaymentReceiptEmailProps {
|
|
|
1766
1793
|
statusLabel: string;
|
|
1767
1794
|
/** Lista de nomes dos viajantes da reserva. */
|
|
1768
1795
|
travellers: string[];
|
|
1796
|
+
/**
|
|
1797
|
+
* Passaporte / documento da pessoa responsável pela reserva (booking person).
|
|
1798
|
+
* Quando ausente/vazio, a row "Passport" não renderiza. Spec
|
|
1799
|
+
* passport-and-partner-email-fields.
|
|
1800
|
+
*/
|
|
1801
|
+
passport?: string;
|
|
1769
1802
|
/** Total da reserva formatado. */
|
|
1770
1803
|
totalOrderAmount: string;
|
|
1771
1804
|
/** Soma acumulada de pagamentos confirmados (após esta transação). */
|
|
@@ -1790,7 +1823,7 @@ interface PaymentReceiptEmailProps {
|
|
|
1790
1823
|
/** className adicional no container. */
|
|
1791
1824
|
className?: string;
|
|
1792
1825
|
}
|
|
1793
|
-
declare function PaymentReceiptEmail({ recipientName, bookingNumber, paymentMethodLabel, paymentDate, amount, chargedAmount, statusLabel, travellers, totalOrderAmount, totalPaidCumulative, remainingBalance, balanceDueDate, isPaidInFull, adventures, logoUrl, labels, className, }: PaymentReceiptEmailProps): react_jsx_runtime.JSX.Element;
|
|
1826
|
+
declare function PaymentReceiptEmail({ recipientName, bookingNumber, paymentMethodLabel, paymentDate, amount, chargedAmount, statusLabel, travellers, passport, totalOrderAmount, totalPaidCumulative, remainingBalance, balanceDueDate, isPaidInFull, adventures, logoUrl, labels, className, }: PaymentReceiptEmailProps): react_jsx_runtime.JSX.Element;
|
|
1794
1827
|
|
|
1795
1828
|
/**
|
|
1796
1829
|
* Variante do lembrete:
|
package/dist/index.js
CHANGED
|
@@ -4146,6 +4146,7 @@ function BookingAdventureCard({
|
|
|
4146
4146
|
imageAlt,
|
|
4147
4147
|
location,
|
|
4148
4148
|
destination,
|
|
4149
|
+
partner,
|
|
4149
4150
|
included,
|
|
4150
4151
|
notIncluded,
|
|
4151
4152
|
lineItems,
|
|
@@ -4404,6 +4405,39 @@ function BookingAdventureCard({
|
|
|
4404
4405
|
] }) })
|
|
4405
4406
|
}
|
|
4406
4407
|
),
|
|
4408
|
+
partner && /* @__PURE__ */ jsx(
|
|
4409
|
+
"table",
|
|
4410
|
+
{
|
|
4411
|
+
cellPadding: 0,
|
|
4412
|
+
cellSpacing: 0,
|
|
4413
|
+
style: { borderCollapse: "collapse", marginBottom: "10px" },
|
|
4414
|
+
children: /* @__PURE__ */ jsx("tbody", { children: /* @__PURE__ */ jsxs("tr", { children: [
|
|
4415
|
+
/* @__PURE__ */ jsx(
|
|
4416
|
+
"td",
|
|
4417
|
+
{
|
|
4418
|
+
style: {
|
|
4419
|
+
verticalAlign: "middle",
|
|
4420
|
+
paddingRight: "6px",
|
|
4421
|
+
width: "16px"
|
|
4422
|
+
},
|
|
4423
|
+
children: /* @__PURE__ */ jsx("span", { style: { display: "inline-block", fontSize: "14px", lineHeight: "1" }, children: "\u{1F91D}" })
|
|
4424
|
+
}
|
|
4425
|
+
),
|
|
4426
|
+
/* @__PURE__ */ jsx(
|
|
4427
|
+
"td",
|
|
4428
|
+
{
|
|
4429
|
+
style: {
|
|
4430
|
+
verticalAlign: "middle",
|
|
4431
|
+
fontSize: "14px",
|
|
4432
|
+
color: emailTokens.mutedForeground,
|
|
4433
|
+
lineHeight: "1"
|
|
4434
|
+
},
|
|
4435
|
+
children: partner
|
|
4436
|
+
}
|
|
4437
|
+
)
|
|
4438
|
+
] }) })
|
|
4439
|
+
}
|
|
4440
|
+
),
|
|
4407
4441
|
hasTravellers && /* @__PURE__ */ jsxs("div", { style: { marginTop: "4px" }, children: [
|
|
4408
4442
|
/* @__PURE__ */ jsx(
|
|
4409
4443
|
"hr",
|
|
@@ -5280,6 +5314,7 @@ function BookingPaymentConfirmationEmail({
|
|
|
5280
5314
|
imageAlt: adventure.imageAlt,
|
|
5281
5315
|
location: locationToPass,
|
|
5282
5316
|
destination: destinationToPass,
|
|
5317
|
+
partner: adventure.partnerName,
|
|
5283
5318
|
included: adventure.included,
|
|
5284
5319
|
notIncluded: adventure.notIncluded,
|
|
5285
5320
|
lineItems: lineItemsToPass,
|
|
@@ -6443,6 +6478,8 @@ var DEFAULT_LABELS8 = {
|
|
|
6443
6478
|
adventureLabel: "Adventure",
|
|
6444
6479
|
datesLabel: "Dates",
|
|
6445
6480
|
partnerLabel: "Partner",
|
|
6481
|
+
bookingPersonLabel: "Booking person",
|
|
6482
|
+
passportLabel: "Passport",
|
|
6446
6483
|
expectationsHeading: "Travellers Expectations",
|
|
6447
6484
|
expectationsEmptyNote: "No expectations were collected for this adventure.",
|
|
6448
6485
|
expectationsEmptyAnswer: "\u2014",
|
|
@@ -6470,6 +6507,8 @@ function PartnerRegistrationCompleteEmail({
|
|
|
6470
6507
|
bookingNumber,
|
|
6471
6508
|
adventureName,
|
|
6472
6509
|
dateRange,
|
|
6510
|
+
bookingPersonName,
|
|
6511
|
+
bookingPersonPassport,
|
|
6473
6512
|
travellersCount,
|
|
6474
6513
|
expectations,
|
|
6475
6514
|
pdfAttached,
|
|
@@ -6483,7 +6522,9 @@ function PartnerRegistrationCompleteEmail({
|
|
|
6483
6522
|
{ label: l.bookingNumberLabel, value: `#${bookingNumber}`, valueColor: emailTokens.primary },
|
|
6484
6523
|
{ label: l.adventureLabel, value: adventureName },
|
|
6485
6524
|
{ label: l.datesLabel, value: dateRange },
|
|
6486
|
-
{ label: l.partnerLabel, value: partnerName }
|
|
6525
|
+
{ label: l.partnerLabel, value: partnerName },
|
|
6526
|
+
...hasText4(bookingPersonName) ? [{ label: l.bookingPersonLabel, value: bookingPersonName }] : [],
|
|
6527
|
+
...hasText4(bookingPersonPassport) ? [{ label: l.passportLabel, value: bookingPersonPassport }] : []
|
|
6487
6528
|
];
|
|
6488
6529
|
const sectionDivider = /* @__PURE__ */ jsx(
|
|
6489
6530
|
"hr",
|
|
@@ -6799,6 +6840,7 @@ var DEFAULT_LABELS10 = {
|
|
|
6799
6840
|
interestSurchargeLabel: "Interest / surcharge",
|
|
6800
6841
|
statusLabel: "Status",
|
|
6801
6842
|
travellersLabel: "Travellers",
|
|
6843
|
+
passportLabel: "Passport",
|
|
6802
6844
|
summaryHeading: "Booking summary",
|
|
6803
6845
|
totalOrderLabel: "Total order",
|
|
6804
6846
|
totalPaidLabel: "Total paid",
|
|
@@ -6817,6 +6859,7 @@ function PaymentReceiptEmail({
|
|
|
6817
6859
|
chargedAmount,
|
|
6818
6860
|
statusLabel,
|
|
6819
6861
|
travellers,
|
|
6862
|
+
passport,
|
|
6820
6863
|
totalOrderAmount,
|
|
6821
6864
|
totalPaidCumulative,
|
|
6822
6865
|
remainingBalance,
|
|
@@ -6837,7 +6880,8 @@ function PaymentReceiptEmail({
|
|
|
6837
6880
|
{ label: l.amountLabel, value: amount },
|
|
6838
6881
|
...interestRow ? [{ label: l.chargedAmountLabel, value: chargedAmount }] : [],
|
|
6839
6882
|
{ label: l.statusLabel, value: statusLabel },
|
|
6840
|
-
...travellersLine.length > 0 ? [{ label: l.travellersLabel, value: travellersLine }] : []
|
|
6883
|
+
...travellersLine.length > 0 ? [{ label: l.travellersLabel, value: travellersLine }] : [],
|
|
6884
|
+
...passport && passport.trim().length > 0 ? [{ label: l.passportLabel, value: passport.trim() }] : []
|
|
6841
6885
|
];
|
|
6842
6886
|
const summaryRows = [
|
|
6843
6887
|
{ label: l.totalOrderLabel, value: totalOrderAmount },
|