@planetaexo/design-system 0.41.0 → 0.43.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 CHANGED
@@ -4597,7 +4597,7 @@ function BookingAdventureCard({
4597
4597
  function BookingSummary({ heading, rows, footer, className }) {
4598
4598
  var _a, _b;
4599
4599
  return /* @__PURE__ */ jsxRuntime.jsxs("div", { className, style: { marginBottom: "24px" }, children: [
4600
- /* @__PURE__ */ jsxRuntime.jsx(
4600
+ heading && /* @__PURE__ */ jsxRuntime.jsx(
4601
4601
  "p",
4602
4602
  {
4603
4603
  style: {
@@ -5834,7 +5834,7 @@ var DEFAULT_LABELS7 = {
5834
5834
  expectationsHeading: "Travellers Expectations",
5835
5835
  expectationsEmptyNote: "No expectations were collected for this adventure.",
5836
5836
  expectationsEmptyAnswer: "\u2014",
5837
- pdfNote: "The consolidated registration PDF is attached to this email.",
5837
+ 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.",
5838
5838
  closingAgent: (agentName, contact) => /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
5839
5839
  "If you have any questions, your contact ",
5840
5840
  agentName,
@@ -5982,7 +5982,21 @@ function PartnerConfirmationEmail({
5982
5982
  }) })
5983
5983
  }
5984
5984
  ) : /* @__PURE__ */ jsxRuntime.jsx("p", { style: { marginTop: 0, marginBottom: "24px", color: emailTokens.bodyText }, children: l.expectationsEmptyNote }),
5985
- pdfAttached && hasText3(l.pdfNote) && /* @__PURE__ */ jsxRuntime.jsx("p", { style: { marginBottom: "16px", color: emailTokens.bodyText }, children: l.pdfNote }),
5985
+ pdfAttached && hasText3(l.pdfNote) && /* @__PURE__ */ jsxRuntime.jsx(
5986
+ "div",
5987
+ {
5988
+ style: {
5989
+ padding: "12px 16px",
5990
+ borderRadius: 8,
5991
+ backgroundColor: "#fef3c7",
5992
+ color: "#78350f",
5993
+ fontSize: "14px",
5994
+ lineHeight: "1.6",
5995
+ marginBottom: "20px"
5996
+ },
5997
+ children: l.pdfNote
5998
+ }
5999
+ ),
5986
6000
  sectionDivider,
5987
6001
  /* @__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, {
5988
6002
  whatsappUrl: agent.whatsappUrl,
@@ -6224,6 +6238,7 @@ function PartnerBookingCreatedEmail({
6224
6238
  var DEFAULT_LABELS9 = {
6225
6239
  logoAlt: "PlanetaEXO",
6226
6240
  greeting: (name) => `Hi ${name},`,
6241
+ introMessage: "",
6227
6242
  receiptHeading: "Payment receipt",
6228
6243
  bookingNumberLabel: "Booking number",
6229
6244
  paymentMethodLabel: "Payment method",
@@ -6256,6 +6271,7 @@ function PaymentReceiptEmail({
6256
6271
  remainingBalance,
6257
6272
  balanceDueDate,
6258
6273
  isPaidInFull,
6274
+ adventures,
6259
6275
  logoUrl,
6260
6276
  labels,
6261
6277
  className
@@ -6298,6 +6314,7 @@ function PaymentReceiptEmail({
6298
6314
  children: [
6299
6315
  /* @__PURE__ */ jsxRuntime.jsx(EmailLogo, { src: logoUrl, alt: l.logoAlt }),
6300
6316
  /* @__PURE__ */ jsxRuntime.jsx("p", { style: { marginBottom: "16px" }, children: l.greeting(recipientName) }),
6317
+ l.introMessage && /* @__PURE__ */ jsxRuntime.jsx("p", { style: { marginBottom: "16px" }, children: l.introMessage }),
6301
6318
  /* @__PURE__ */ jsxRuntime.jsx("p", { style: { marginBottom: "12px", fontWeight: 700, color: emailTokens.foreground, fontSize: "16px" }, children: l.receiptHeading }),
6302
6319
  /* @__PURE__ */ jsxRuntime.jsx(
6303
6320
  "div",
@@ -6317,10 +6334,77 @@ function PaymentReceiptEmail({
6317
6334
  ] }) })
6318
6335
  }
6319
6336
  ),
6337
+ /* @__PURE__ */ jsxRuntime.jsx(
6338
+ "p",
6339
+ {
6340
+ style: {
6341
+ marginTop: 0,
6342
+ marginBottom: "20px",
6343
+ fontWeight: 700,
6344
+ color: emailTokens.foreground,
6345
+ fontSize: "18px",
6346
+ fontFamily: emailTokens.fontFamily
6347
+ },
6348
+ children: l.summaryHeading
6349
+ }
6350
+ ),
6351
+ adventures && adventures.length > 0 && /* @__PURE__ */ jsxRuntime.jsx("div", { style: { marginBottom: "16px" }, children: adventures.map((adv, i) => /* @__PURE__ */ jsxRuntime.jsxs(
6352
+ "div",
6353
+ {
6354
+ style: {
6355
+ borderRadius: "12px",
6356
+ border: `1px solid ${emailTokens.border}`,
6357
+ overflow: "hidden",
6358
+ marginBottom: "12px"
6359
+ },
6360
+ children: [
6361
+ /* @__PURE__ */ jsxRuntime.jsx(
6362
+ "div",
6363
+ {
6364
+ style: {
6365
+ padding: "12px 20px",
6366
+ backgroundColor: emailTokens.muted,
6367
+ fontWeight: 600,
6368
+ color: emailTokens.foreground,
6369
+ fontSize: "14px"
6370
+ },
6371
+ children: adv.name
6372
+ }
6373
+ ),
6374
+ adv.lineItems && adv.lineItems.length > 0 && /* @__PURE__ */ jsxRuntime.jsx("table", { style: { width: "100%", fontSize: "14px", borderCollapse: "collapse" }, children: /* @__PURE__ */ jsxRuntime.jsx("tbody", { children: adv.lineItems.map((li, j) => /* @__PURE__ */ jsxRuntime.jsxs("tr", { style: j > 0 ? { borderTop: `1px solid ${emailTokens.border}` } : {}, children: [
6375
+ /* @__PURE__ */ jsxRuntime.jsx(
6376
+ "td",
6377
+ {
6378
+ style: {
6379
+ padding: "10px 20px",
6380
+ color: emailTokens.mutedForeground,
6381
+ verticalAlign: "top"
6382
+ },
6383
+ children: li.label
6384
+ }
6385
+ ),
6386
+ /* @__PURE__ */ jsxRuntime.jsx(
6387
+ "td",
6388
+ {
6389
+ style: {
6390
+ padding: "10px 20px",
6391
+ textAlign: "right",
6392
+ fontWeight: 500,
6393
+ color: emailTokens.foreground,
6394
+ verticalAlign: "top",
6395
+ whiteSpace: "nowrap"
6396
+ },
6397
+ children: li.price
6398
+ }
6399
+ )
6400
+ ] }, j)) }) })
6401
+ ]
6402
+ },
6403
+ i
6404
+ )) }),
6320
6405
  /* @__PURE__ */ jsxRuntime.jsx(
6321
6406
  BookingSummary,
6322
6407
  {
6323
- heading: l.summaryHeading,
6324
6408
  rows: summaryRows,
6325
6409
  footer: isPaidInFull ? {
6326
6410
  text: l.paidInFullMessage,