@planetaexo/design-system 0.45.0 → 0.46.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 +75 -7
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +21 -13
- package/dist/index.d.ts +21 -13
- package/dist/index.js +75 -7
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -4809,7 +4809,12 @@ var DEFAULT_LABELS3 = {
|
|
|
4809
4809
|
adventuresLabel: "Adventures",
|
|
4810
4810
|
totalTravellersLabel: "Total Travellers",
|
|
4811
4811
|
agentLabel: "Agent",
|
|
4812
|
-
|
|
4812
|
+
bookingPersonHeading: "Booking person",
|
|
4813
|
+
nameLabel: "Name",
|
|
4814
|
+
emailLabel: "Email",
|
|
4815
|
+
phoneLabel: "Phone",
|
|
4816
|
+
countryLabel: "Country",
|
|
4817
|
+
addressLabel: "Billing address",
|
|
4813
4818
|
adultsUnit: "adult(s)",
|
|
4814
4819
|
childrenUnit: "child(ren)",
|
|
4815
4820
|
travellersLabel: "Travellers",
|
|
@@ -4841,6 +4846,9 @@ function BookingPaymentConfirmationEmail({
|
|
|
4841
4846
|
depositInfo,
|
|
4842
4847
|
agent,
|
|
4843
4848
|
responsiblePersonAddress,
|
|
4849
|
+
responsiblePersonEmail,
|
|
4850
|
+
responsiblePersonPhone,
|
|
4851
|
+
responsiblePersonCountry,
|
|
4844
4852
|
viewBookingUrl,
|
|
4845
4853
|
labels,
|
|
4846
4854
|
className,
|
|
@@ -4852,6 +4860,26 @@ function BookingPaymentConfirmationEmail({
|
|
|
4852
4860
|
return (_a = a.travellers) != null ? _a : [];
|
|
4853
4861
|
});
|
|
4854
4862
|
const isManualFlow = flow === "manual";
|
|
4863
|
+
const personFieldLabel = {
|
|
4864
|
+
margin: "0 0 2px 0",
|
|
4865
|
+
fontSize: "11px",
|
|
4866
|
+
fontWeight: 700,
|
|
4867
|
+
color: emailTokens.mutedForeground,
|
|
4868
|
+
textTransform: "uppercase",
|
|
4869
|
+
letterSpacing: "0.08em",
|
|
4870
|
+
fontFamily: emailTokens.fontFamily
|
|
4871
|
+
};
|
|
4872
|
+
const personFieldValue = {
|
|
4873
|
+
margin: 0,
|
|
4874
|
+
fontSize: "14px",
|
|
4875
|
+
color: emailTokens.foreground,
|
|
4876
|
+
lineHeight: "1.5"
|
|
4877
|
+
};
|
|
4878
|
+
const personFieldCell = {
|
|
4879
|
+
verticalAlign: "top",
|
|
4880
|
+
padding: "0 12px 14px 0",
|
|
4881
|
+
width: "50%"
|
|
4882
|
+
};
|
|
4855
4883
|
const ctaStyle = {
|
|
4856
4884
|
display: "inline-block",
|
|
4857
4885
|
backgroundColor: emailTokens.primary,
|
|
@@ -4919,8 +4947,7 @@ function BookingPaymentConfirmationEmail({
|
|
|
4919
4947
|
{ label: l.bookingNumberLabel, value: bookingReference, valueColor: emailTokens.primary },
|
|
4920
4948
|
{ label: l.adventuresLabel, value: adventures.length },
|
|
4921
4949
|
{ label: l.totalTravellersLabel, value: allTravellers.length },
|
|
4922
|
-
{ label: l.agentLabel, value: agent }
|
|
4923
|
-
...responsiblePersonAddress && responsiblePersonAddress.trim().length > 0 ? [{ label: l.addressLabel, value: responsiblePersonAddress }] : []
|
|
4950
|
+
{ label: l.agentLabel, value: agent }
|
|
4924
4951
|
]
|
|
4925
4952
|
}
|
|
4926
4953
|
) }),
|
|
@@ -5029,6 +5056,50 @@ function BookingPaymentConfirmationEmail({
|
|
|
5029
5056
|
) })
|
|
5030
5057
|
] }),
|
|
5031
5058
|
/* @__PURE__ */ jsxRuntime.jsx("hr", { style: { border: "none", borderTop: `1px solid ${emailTokens.border}`, margin: "0 32px" } }),
|
|
5059
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { style: { paddingLeft: "32px", paddingRight: "32px", paddingTop: "32px", paddingBottom: "32px" }, children: /* @__PURE__ */ jsxRuntime.jsxs("div", { style: { borderRadius: "16px", border: `1px solid ${emailTokens.border}`, padding: "20px" }, children: [
|
|
5060
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
5061
|
+
"p",
|
|
5062
|
+
{
|
|
5063
|
+
style: {
|
|
5064
|
+
margin: "0 0 16px 0",
|
|
5065
|
+
fontSize: "12px",
|
|
5066
|
+
fontWeight: 700,
|
|
5067
|
+
color: emailTokens.mutedForeground,
|
|
5068
|
+
textTransform: "uppercase",
|
|
5069
|
+
letterSpacing: "0.1em",
|
|
5070
|
+
fontFamily: emailTokens.fontFamily
|
|
5071
|
+
},
|
|
5072
|
+
children: l.bookingPersonHeading
|
|
5073
|
+
}
|
|
5074
|
+
),
|
|
5075
|
+
/* @__PURE__ */ jsxRuntime.jsx("table", { cellPadding: 0, cellSpacing: 0, style: { width: "100%", borderCollapse: "collapse" }, children: /* @__PURE__ */ jsxRuntime.jsxs("tbody", { children: [
|
|
5076
|
+
/* @__PURE__ */ jsxRuntime.jsxs("tr", { children: [
|
|
5077
|
+
/* @__PURE__ */ jsxRuntime.jsxs("td", { style: personFieldCell, children: [
|
|
5078
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { style: personFieldLabel, children: l.nameLabel }),
|
|
5079
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { style: __spreadProps(__spreadValues({}, personFieldValue), { fontWeight: 600 }), children: recipientName })
|
|
5080
|
+
] }),
|
|
5081
|
+
/* @__PURE__ */ jsxRuntime.jsxs("td", { style: personFieldCell, children: [
|
|
5082
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { style: personFieldLabel, children: l.emailLabel }),
|
|
5083
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { style: personFieldValue, children: responsiblePersonEmail || "\u2014" })
|
|
5084
|
+
] })
|
|
5085
|
+
] }),
|
|
5086
|
+
/* @__PURE__ */ jsxRuntime.jsxs("tr", { children: [
|
|
5087
|
+
/* @__PURE__ */ jsxRuntime.jsxs("td", { style: personFieldCell, children: [
|
|
5088
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { style: personFieldLabel, children: l.phoneLabel }),
|
|
5089
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { style: personFieldValue, children: responsiblePersonPhone || "\u2014" })
|
|
5090
|
+
] }),
|
|
5091
|
+
/* @__PURE__ */ jsxRuntime.jsx("td", { style: personFieldCell, children: responsiblePersonCountry && responsiblePersonCountry.trim().length > 0 ? /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
5092
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { style: personFieldLabel, children: l.countryLabel }),
|
|
5093
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { style: personFieldValue, children: responsiblePersonCountry })
|
|
5094
|
+
] }) : null })
|
|
5095
|
+
] }),
|
|
5096
|
+
responsiblePersonAddress && responsiblePersonAddress.trim().length > 0 && /* @__PURE__ */ jsxRuntime.jsx("tr", { children: /* @__PURE__ */ jsxRuntime.jsxs("td", { colSpan: 2, style: __spreadProps(__spreadValues({}, personFieldCell), { width: "auto", paddingRight: 0, paddingBottom: 0 }), children: [
|
|
5097
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { style: personFieldLabel, children: l.addressLabel }),
|
|
5098
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { style: __spreadProps(__spreadValues({}, personFieldValue), { whiteSpace: "pre-line" }), children: responsiblePersonAddress })
|
|
5099
|
+
] }) })
|
|
5100
|
+
] }) })
|
|
5101
|
+
] }) }),
|
|
5102
|
+
/* @__PURE__ */ jsxRuntime.jsx("hr", { style: { border: "none", borderTop: `1px solid ${emailTokens.border}`, margin: "0 32px" } }),
|
|
5032
5103
|
/* @__PURE__ */ jsxRuntime.jsx("div", { style: { paddingLeft: "32px", paddingRight: "32px", paddingTop: "32px", paddingBottom: "40px" }, children: isManualFlow ? (
|
|
5033
5104
|
// Manual flow: closing message + CTA no rodapé (substitui footerMessage/footerContact).
|
|
5034
5105
|
/* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
@@ -5056,7 +5127,6 @@ var DEFAULT_LABELS4 = {
|
|
|
5056
5127
|
startingDateLabel: "Starting Date:",
|
|
5057
5128
|
numberOfPeopleLabel: "Number of People:",
|
|
5058
5129
|
hostLabel: "Host:",
|
|
5059
|
-
addressLabel: "Address:",
|
|
5060
5130
|
postCtaMessage: "After adding everyone, you will also receive your own registration email, just like the other travellers. Please make sure everyone completes this step so we can organise everything properly.",
|
|
5061
5131
|
closingMessage: "If you have any questions, just reply to this email \u2014 happy to help.",
|
|
5062
5132
|
nextStepsHeading: "Next steps:"
|
|
@@ -5075,7 +5145,6 @@ function BookingCreatedEmail({
|
|
|
5075
5145
|
className,
|
|
5076
5146
|
nextSteps,
|
|
5077
5147
|
nextStepsImportant,
|
|
5078
|
-
responsiblePersonAddress,
|
|
5079
5148
|
directBookingLinkLabel
|
|
5080
5149
|
}) {
|
|
5081
5150
|
const l = __spreadValues(__spreadValues({}, DEFAULT_LABELS4), labels);
|
|
@@ -5097,8 +5166,7 @@ function BookingCreatedEmail({
|
|
|
5097
5166
|
{ label: l.adventureLabel, value: adventure },
|
|
5098
5167
|
{ label: l.startingDateLabel, value: startingDate },
|
|
5099
5168
|
{ label: l.numberOfPeopleLabel, value: String(numberOfPeople) },
|
|
5100
|
-
{ label: l.hostLabel, value: host }
|
|
5101
|
-
...responsiblePersonAddress && responsiblePersonAddress.trim().length > 0 ? [{ label: l.addressLabel, value: responsiblePersonAddress }] : []
|
|
5169
|
+
{ label: l.hostLabel, value: host }
|
|
5102
5170
|
];
|
|
5103
5171
|
const showNextSteps = Array.isArray(nextSteps) && nextSteps.length > 0;
|
|
5104
5172
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|