@planetaexo/design-system 0.42.0 → 0.44.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 +20 -87
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +6 -6
- package/dist/index.d.ts +6 -6
- package/dist/index.js +20 -87
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -1432,10 +1432,10 @@ interface PartnerBookingCreatedEmailProps {
|
|
|
1432
1432
|
dateRange: string;
|
|
1433
1433
|
/** Viajantes DESTA aventura. */
|
|
1434
1434
|
travellersCount: number;
|
|
1435
|
+
/** Booker: nome completo + país (exibidos no topo do Booking Summary). */
|
|
1435
1436
|
booker: {
|
|
1436
1437
|
name: string;
|
|
1437
|
-
|
|
1438
|
-
phone?: string | null;
|
|
1438
|
+
country?: string | null;
|
|
1439
1439
|
};
|
|
1440
1440
|
agent: {
|
|
1441
1441
|
name: string;
|
|
@@ -1452,14 +1452,14 @@ interface PartnerBookingCreatedEmailLabels {
|
|
|
1452
1452
|
/** "You have a new booking for {adventure}." */
|
|
1453
1453
|
intro?: (adventureName: string) => string;
|
|
1454
1454
|
summaryHeading?: string;
|
|
1455
|
+
/** Nome completo do booker (1ª linha do Booking Summary). */
|
|
1456
|
+
bookerNameLabel?: string;
|
|
1457
|
+
/** País do booker (2ª linha do Booking Summary; omitido se vazio). */
|
|
1458
|
+
bookerCountryLabel?: string;
|
|
1455
1459
|
bookingNumberLabel?: string;
|
|
1456
1460
|
adventureLabel?: string;
|
|
1457
1461
|
datesLabel?: string;
|
|
1458
1462
|
numberOfPeopleLabel?: string;
|
|
1459
|
-
bookerHeading?: string;
|
|
1460
|
-
bookerNameLabel?: string;
|
|
1461
|
-
bookerEmailLabel?: string;
|
|
1462
|
-
bookerPhoneLabel?: string;
|
|
1463
1463
|
/** Aviso (linha 1) antes do closing — sempre visível. */
|
|
1464
1464
|
registrationPendingNotice?: string;
|
|
1465
1465
|
/** Aviso (linha 2, enfatizado) antes do closing — sempre visível. */
|
package/dist/index.d.ts
CHANGED
|
@@ -1432,10 +1432,10 @@ interface PartnerBookingCreatedEmailProps {
|
|
|
1432
1432
|
dateRange: string;
|
|
1433
1433
|
/** Viajantes DESTA aventura. */
|
|
1434
1434
|
travellersCount: number;
|
|
1435
|
+
/** Booker: nome completo + país (exibidos no topo do Booking Summary). */
|
|
1435
1436
|
booker: {
|
|
1436
1437
|
name: string;
|
|
1437
|
-
|
|
1438
|
-
phone?: string | null;
|
|
1438
|
+
country?: string | null;
|
|
1439
1439
|
};
|
|
1440
1440
|
agent: {
|
|
1441
1441
|
name: string;
|
|
@@ -1452,14 +1452,14 @@ interface PartnerBookingCreatedEmailLabels {
|
|
|
1452
1452
|
/** "You have a new booking for {adventure}." */
|
|
1453
1453
|
intro?: (adventureName: string) => string;
|
|
1454
1454
|
summaryHeading?: string;
|
|
1455
|
+
/** Nome completo do booker (1ª linha do Booking Summary). */
|
|
1456
|
+
bookerNameLabel?: string;
|
|
1457
|
+
/** País do booker (2ª linha do Booking Summary; omitido se vazio). */
|
|
1458
|
+
bookerCountryLabel?: string;
|
|
1455
1459
|
bookingNumberLabel?: string;
|
|
1456
1460
|
adventureLabel?: string;
|
|
1457
1461
|
datesLabel?: string;
|
|
1458
1462
|
numberOfPeopleLabel?: string;
|
|
1459
|
-
bookerHeading?: string;
|
|
1460
|
-
bookerNameLabel?: string;
|
|
1461
|
-
bookerEmailLabel?: string;
|
|
1462
|
-
bookerPhoneLabel?: string;
|
|
1463
1463
|
/** Aviso (linha 1) antes do closing — sempre visível. */
|
|
1464
1464
|
registrationPendingNotice?: string;
|
|
1465
1465
|
/** Aviso (linha 2, enfatizado) antes do closing — sempre visível. */
|
package/dist/index.js
CHANGED
|
@@ -5813,7 +5813,7 @@ var DEFAULT_LABELS7 = {
|
|
|
5813
5813
|
expectationsHeading: "Travellers Expectations",
|
|
5814
5814
|
expectationsEmptyNote: "No expectations were collected for this adventure.",
|
|
5815
5815
|
expectationsEmptyAnswer: "\u2014",
|
|
5816
|
-
pdfNote: "The consolidated registration PDF is attached
|
|
5816
|
+
pdfNote: "The consolidated registration PDF is attached. Please review it carefully, as it contains important traveller information, including dietary restrictions, medical conditions, preferences, and other details that may help improve the guest experience and ensure proper preparation.",
|
|
5817
5817
|
closingAgent: (agentName, contact) => /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
5818
5818
|
"If you have any questions, your contact ",
|
|
5819
5819
|
agentName,
|
|
@@ -5961,7 +5961,21 @@ function PartnerConfirmationEmail({
|
|
|
5961
5961
|
}) })
|
|
5962
5962
|
}
|
|
5963
5963
|
) : /* @__PURE__ */ jsx("p", { style: { marginTop: 0, marginBottom: "24px", color: emailTokens.bodyText }, children: l.expectationsEmptyNote }),
|
|
5964
|
-
pdfAttached && hasText3(l.pdfNote) && /* @__PURE__ */ jsx(
|
|
5964
|
+
pdfAttached && hasText3(l.pdfNote) && /* @__PURE__ */ jsx(
|
|
5965
|
+
"div",
|
|
5966
|
+
{
|
|
5967
|
+
style: {
|
|
5968
|
+
padding: "12px 16px",
|
|
5969
|
+
borderRadius: 8,
|
|
5970
|
+
backgroundColor: "#fef3c7",
|
|
5971
|
+
color: "#78350f",
|
|
5972
|
+
fontSize: "14px",
|
|
5973
|
+
lineHeight: "1.6",
|
|
5974
|
+
marginBottom: "20px"
|
|
5975
|
+
},
|
|
5976
|
+
children: l.pdfNote
|
|
5977
|
+
}
|
|
5978
|
+
),
|
|
5965
5979
|
sectionDivider,
|
|
5966
5980
|
/* @__PURE__ */ jsx("p", { style: { marginBottom: "16px", fontSize: "14px", fontWeight: 700, color: emailTokens.bodyText }, children: (agent == null ? void 0 : agent.name) ? l.closingAgent(agent.name, {
|
|
5967
5981
|
whatsappUrl: agent.whatsappUrl,
|
|
@@ -5996,14 +6010,12 @@ var DEFAULT_LABELS8 = {
|
|
|
5996
6010
|
greeting: (n) => `Hi ${n},`,
|
|
5997
6011
|
intro: (adv) => `You have a new booking for your adventure ${adv}. Here are the details:`,
|
|
5998
6012
|
summaryHeading: "\u{1F4DD} Booking Summary",
|
|
6013
|
+
bookerNameLabel: "Name",
|
|
6014
|
+
bookerCountryLabel: "Country",
|
|
5999
6015
|
bookingNumberLabel: "Booking Number",
|
|
6000
6016
|
adventureLabel: "Adventure",
|
|
6001
6017
|
datesLabel: "Dates",
|
|
6002
6018
|
numberOfPeopleLabel: "Number of Travellers",
|
|
6003
|
-
bookerHeading: "Booking contact",
|
|
6004
|
-
bookerNameLabel: "Name",
|
|
6005
|
-
bookerEmailLabel: "Email",
|
|
6006
|
-
bookerPhoneLabel: "Phone",
|
|
6007
6019
|
registrationPendingNotice: "The travellers' registration details will be sent to you as soon as all travellers have completed their forms.",
|
|
6008
6020
|
mustReplyToConfirm: "Please reply to this email to confirm the booking.",
|
|
6009
6021
|
closingAgent: (agentName, contact) => /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
@@ -6034,6 +6046,8 @@ function PartnerBookingCreatedEmail({
|
|
|
6034
6046
|
}) {
|
|
6035
6047
|
const l = __spreadValues(__spreadValues({}, DEFAULT_LABELS8), labels);
|
|
6036
6048
|
const summaryRows = [
|
|
6049
|
+
{ label: l.bookerNameLabel, value: booker.name },
|
|
6050
|
+
...hasText4(booker.country) ? [{ label: l.bookerCountryLabel, value: booker.country }] : [],
|
|
6037
6051
|
{ label: l.bookingNumberLabel, value: `#${bookingNumber}`, valueColor: emailTokens.primary },
|
|
6038
6052
|
{ label: l.adventureLabel, value: adventureName },
|
|
6039
6053
|
{ label: l.datesLabel, value: dateRange },
|
|
@@ -6050,16 +6064,6 @@ function PartnerBookingCreatedEmail({
|
|
|
6050
6064
|
}
|
|
6051
6065
|
}
|
|
6052
6066
|
);
|
|
6053
|
-
const bookerRows = [
|
|
6054
|
-
{ label: l.bookerNameLabel, value: booker.name },
|
|
6055
|
-
...hasText4(booker.email) ? [
|
|
6056
|
-
{
|
|
6057
|
-
label: l.bookerEmailLabel,
|
|
6058
|
-
value: /* @__PURE__ */ jsx("a", { href: `mailto:${booker.email}`, style: INLINE_LINK_STYLE4, children: booker.email })
|
|
6059
|
-
}
|
|
6060
|
-
] : [],
|
|
6061
|
-
...hasText4(booker.phone) ? [{ label: l.bookerPhoneLabel, value: booker.phone }] : []
|
|
6062
|
-
];
|
|
6063
6067
|
return /* @__PURE__ */ jsxs(
|
|
6064
6068
|
"div",
|
|
6065
6069
|
{
|
|
@@ -6098,77 +6102,6 @@ function PartnerBookingCreatedEmail({
|
|
|
6098
6102
|
/* @__PURE__ */ jsx("p", { style: { marginBottom: "24px" }, children: l.intro(adventureName) }),
|
|
6099
6103
|
sectionDivider,
|
|
6100
6104
|
/* @__PURE__ */ jsx(BookingSummary, { heading: l.summaryHeading, rows: summaryRows }),
|
|
6101
|
-
/* @__PURE__ */ jsx(
|
|
6102
|
-
"p",
|
|
6103
|
-
{
|
|
6104
|
-
style: {
|
|
6105
|
-
marginTop: 0,
|
|
6106
|
-
marginBottom: "20px",
|
|
6107
|
-
fontWeight: 700,
|
|
6108
|
-
color: emailTokens.foreground,
|
|
6109
|
-
fontSize: "18px",
|
|
6110
|
-
fontFamily: emailTokens.fontFamily
|
|
6111
|
-
},
|
|
6112
|
-
children: l.bookerHeading
|
|
6113
|
-
}
|
|
6114
|
-
),
|
|
6115
|
-
/* @__PURE__ */ jsx(
|
|
6116
|
-
"div",
|
|
6117
|
-
{
|
|
6118
|
-
style: {
|
|
6119
|
-
borderRadius: "12px",
|
|
6120
|
-
border: `1px solid ${emailTokens.border}`,
|
|
6121
|
-
overflow: "hidden",
|
|
6122
|
-
marginBottom: "24px"
|
|
6123
|
-
},
|
|
6124
|
-
children: /* @__PURE__ */ jsx(
|
|
6125
|
-
"table",
|
|
6126
|
-
{
|
|
6127
|
-
style: {
|
|
6128
|
-
width: "100%",
|
|
6129
|
-
fontSize: "14px",
|
|
6130
|
-
borderCollapse: "collapse"
|
|
6131
|
-
},
|
|
6132
|
-
children: /* @__PURE__ */ jsx("tbody", { children: bookerRows.map((row, i) => {
|
|
6133
|
-
const isLastRow = i === bookerRows.length - 1;
|
|
6134
|
-
return /* @__PURE__ */ jsxs(
|
|
6135
|
-
"tr",
|
|
6136
|
-
{
|
|
6137
|
-
style: !isLastRow ? { borderBottom: `1px solid ${emailTokens.border}` } : {},
|
|
6138
|
-
children: [
|
|
6139
|
-
/* @__PURE__ */ jsx(
|
|
6140
|
-
"td",
|
|
6141
|
-
{
|
|
6142
|
-
style: {
|
|
6143
|
-
padding: "12px 20px",
|
|
6144
|
-
color: emailTokens.mutedForeground,
|
|
6145
|
-
backgroundColor: emailTokens.muted,
|
|
6146
|
-
verticalAlign: "top"
|
|
6147
|
-
},
|
|
6148
|
-
children: row.label
|
|
6149
|
-
}
|
|
6150
|
-
),
|
|
6151
|
-
/* @__PURE__ */ jsx(
|
|
6152
|
-
"td",
|
|
6153
|
-
{
|
|
6154
|
-
style: {
|
|
6155
|
-
padding: "12px 20px",
|
|
6156
|
-
fontWeight: 500,
|
|
6157
|
-
color: emailTokens.foreground,
|
|
6158
|
-
verticalAlign: "top"
|
|
6159
|
-
},
|
|
6160
|
-
children: row.value
|
|
6161
|
-
}
|
|
6162
|
-
)
|
|
6163
|
-
]
|
|
6164
|
-
},
|
|
6165
|
-
i
|
|
6166
|
-
);
|
|
6167
|
-
}) })
|
|
6168
|
-
}
|
|
6169
|
-
)
|
|
6170
|
-
}
|
|
6171
|
-
),
|
|
6172
6105
|
sectionDivider,
|
|
6173
6106
|
/* @__PURE__ */ jsxs(
|
|
6174
6107
|
"div",
|