@planetaexo/design-system 0.29.0 → 0.30.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 +40 -18
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +23 -2
- package/dist/index.d.ts +23 -2
- package/dist/index.js +40 -18
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -5027,6 +5027,22 @@ function RegistrationProgressBar({
|
|
|
5027
5027
|
}
|
|
5028
5028
|
) });
|
|
5029
5029
|
}
|
|
5030
|
+
var INLINE_LINK_STYLE = {
|
|
5031
|
+
color: emailTokens.primary,
|
|
5032
|
+
textDecoration: "underline"
|
|
5033
|
+
};
|
|
5034
|
+
function renderWhatsappLink(contact, label) {
|
|
5035
|
+
if (contact.whatsappUrl) {
|
|
5036
|
+
return /* @__PURE__ */ jsxRuntime.jsx("a", { href: contact.whatsappUrl, style: INLINE_LINK_STYLE, children: label });
|
|
5037
|
+
}
|
|
5038
|
+
return label;
|
|
5039
|
+
}
|
|
5040
|
+
function renderEmailLink(contact, label) {
|
|
5041
|
+
if (contact.email) {
|
|
5042
|
+
return /* @__PURE__ */ jsxRuntime.jsx("a", { href: `mailto:${contact.email}`, style: INLINE_LINK_STYLE, children: label });
|
|
5043
|
+
}
|
|
5044
|
+
return label;
|
|
5045
|
+
}
|
|
5030
5046
|
var DEFAULT_LABELS5 = {
|
|
5031
5047
|
logoAlt: "PlanetaEXO",
|
|
5032
5048
|
greeting: (n) => `Hi ${n},`,
|
|
@@ -5042,7 +5058,15 @@ var DEFAULT_LABELS5 = {
|
|
|
5042
5058
|
startsLabel: "Starts",
|
|
5043
5059
|
completedFractionLabel: (c, total) => `Completed: ${c} / ${total} travellers`,
|
|
5044
5060
|
ctaLabel: "View Booking & Registrations",
|
|
5045
|
-
closingAgent: (
|
|
5061
|
+
closingAgent: (agentName, contact) => /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
5062
|
+
"If you need any assistance with the traveller registrations, feel free to contact your agent ",
|
|
5063
|
+
agentName,
|
|
5064
|
+
" via ",
|
|
5065
|
+
renderWhatsappLink(contact, "WhatsApp"),
|
|
5066
|
+
" or ",
|
|
5067
|
+
renderEmailLink(contact, "email"),
|
|
5068
|
+
"."
|
|
5069
|
+
] }),
|
|
5046
5070
|
closingNoAgent: "If you need any assistance with the traveller registrations, feel free to contact us via WhatsApp or email.",
|
|
5047
5071
|
teamSignature: "The PlanetaEXO Team",
|
|
5048
5072
|
variants: {
|
|
@@ -5314,12 +5338,10 @@ function RegistrationReminderEmail({
|
|
|
5314
5338
|
),
|
|
5315
5339
|
showMultiTraveller && /* @__PURE__ */ jsxRuntime.jsx("p", { style: { marginBottom: "16px", color: emailTokens.bodyText }, children: v.multiTravellerNote }),
|
|
5316
5340
|
/* @__PURE__ */ jsxRuntime.jsx("div", { style: { marginBottom: "24px", textAlign: "left" }, children: /* @__PURE__ */ jsxRuntime.jsx("a", { href: ctaUrl, style: ctaStyle, children: l.ctaLabel }) }),
|
|
5317
|
-
/* @__PURE__ */ jsxRuntime.jsx("p", { style: { marginBottom: "16px", fontWeight: 700, color: emailTokens.
|
|
5318
|
-
|
|
5319
|
-
|
|
5320
|
-
|
|
5321
|
-
agent.email && /* @__PURE__ */ jsxRuntime.jsx("a", { href: `mailto:${agent.email}`, style: { color: emailTokens.primary, textDecoration: "none" }, children: agent.email })
|
|
5322
|
-
] }),
|
|
5341
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { style: { marginBottom: "16px", fontSize: "14px", fontWeight: 700, color: emailTokens.bodyText }, children: (agent == null ? void 0 : agent.name) ? l.closingAgent(agent.name, {
|
|
5342
|
+
whatsappUrl: agent.whatsappUrl,
|
|
5343
|
+
email: agent.email
|
|
5344
|
+
}) : l.closingNoAgent }),
|
|
5323
5345
|
showDisregard && /* @__PURE__ */ jsxRuntime.jsx(
|
|
5324
5346
|
"p",
|
|
5325
5347
|
{
|
|
@@ -5332,8 +5354,8 @@ function RegistrationReminderEmail({
|
|
|
5332
5354
|
children: v.disregardIfCompleted
|
|
5333
5355
|
}
|
|
5334
5356
|
),
|
|
5335
|
-
showClosingThanks && /* @__PURE__ */ jsxRuntime.jsx("p", { style: { marginBottom: "16px" }, children: v.closingThanks }),
|
|
5336
|
-
/* @__PURE__ */ jsxRuntime.jsx("p", { style: { marginBottom: 0, color: emailTokens.
|
|
5357
|
+
showClosingThanks && /* @__PURE__ */ jsxRuntime.jsx("p", { style: { marginBottom: "16px", fontSize: "14px", color: emailTokens.bodyText }, children: v.closingThanks }),
|
|
5358
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { style: { marginTop: 0, marginBottom: 0, fontSize: "14px", color: emailTokens.bodyText }, children: l.teamSignature })
|
|
5337
5359
|
]
|
|
5338
5360
|
}
|
|
5339
5361
|
);
|
|
@@ -5473,19 +5495,19 @@ function PaymentReceiptEmail({
|
|
|
5473
5495
|
}
|
|
5474
5496
|
);
|
|
5475
5497
|
}
|
|
5476
|
-
var
|
|
5498
|
+
var INLINE_LINK_STYLE2 = {
|
|
5477
5499
|
color: emailTokens.primary,
|
|
5478
5500
|
textDecoration: "underline"
|
|
5479
5501
|
};
|
|
5480
|
-
function
|
|
5502
|
+
function renderWhatsappLink2(contact, label) {
|
|
5481
5503
|
if (contact.whatsappUrl) {
|
|
5482
|
-
return /* @__PURE__ */ jsxRuntime.jsx("a", { href: contact.whatsappUrl, style:
|
|
5504
|
+
return /* @__PURE__ */ jsxRuntime.jsx("a", { href: contact.whatsappUrl, style: INLINE_LINK_STYLE2, children: label });
|
|
5483
5505
|
}
|
|
5484
5506
|
return label;
|
|
5485
5507
|
}
|
|
5486
|
-
function
|
|
5508
|
+
function renderEmailLink2(contact, label) {
|
|
5487
5509
|
if (contact.email) {
|
|
5488
|
-
return /* @__PURE__ */ jsxRuntime.jsx("a", { href: `mailto:${contact.email}`, style:
|
|
5510
|
+
return /* @__PURE__ */ jsxRuntime.jsx("a", { href: `mailto:${contact.email}`, style: INLINE_LINK_STYLE2, children: label });
|
|
5489
5511
|
}
|
|
5490
5512
|
return label;
|
|
5491
5513
|
}
|
|
@@ -5505,9 +5527,9 @@ var DEFAULT_LABELS7 = {
|
|
|
5505
5527
|
"If you need any assistance or would like to discuss your payment, feel free to contact your agent ",
|
|
5506
5528
|
agentName,
|
|
5507
5529
|
" via ",
|
|
5508
|
-
|
|
5530
|
+
renderWhatsappLink2(contact, "WhatsApp"),
|
|
5509
5531
|
" or ",
|
|
5510
|
-
|
|
5532
|
+
renderEmailLink2(contact, "email"),
|
|
5511
5533
|
"."
|
|
5512
5534
|
] }),
|
|
5513
5535
|
closingNoAgent: "If you need any assistance or would like to discuss your payment, feel free to contact us via WhatsApp or email.",
|
|
@@ -5551,9 +5573,9 @@ var DEFAULT_LABELS7 = {
|
|
|
5551
5573
|
"If you are experiencing any issues with payment or need additional time, please contact your agent ",
|
|
5552
5574
|
agentName,
|
|
5553
5575
|
" via ",
|
|
5554
|
-
|
|
5576
|
+
renderWhatsappLink2(contact, "WhatsApp"),
|
|
5555
5577
|
" or ",
|
|
5556
|
-
|
|
5578
|
+
renderEmailLink2(contact, "email"),
|
|
5557
5579
|
". We'll be happy to assist."
|
|
5558
5580
|
] })
|
|
5559
5581
|
}
|