@planetaexo/design-system 0.40.0 → 0.42.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: {
@@ -5853,6 +5853,7 @@ function hasText3(s) {
5853
5853
  }
5854
5854
  function PartnerConfirmationEmail({
5855
5855
  scenario,
5856
+ topNotice,
5856
5857
  partnerName,
5857
5858
  bookingNumber,
5858
5859
  adventureName,
@@ -5904,6 +5905,21 @@ function PartnerConfirmationEmail({
5904
5905
  className,
5905
5906
  children: [
5906
5907
  /* @__PURE__ */ jsxRuntime.jsx(EmailLogo, { src: logoUrl, alt: l.logoAlt }),
5908
+ hasText3(topNotice) && /* @__PURE__ */ jsxRuntime.jsx(
5909
+ "div",
5910
+ {
5911
+ style: {
5912
+ padding: "12px 16px",
5913
+ borderRadius: 8,
5914
+ backgroundColor: "#fef3c7",
5915
+ color: "#78350f",
5916
+ fontWeight: 600,
5917
+ fontSize: "14px",
5918
+ marginBottom: "20px"
5919
+ },
5920
+ children: topNotice
5921
+ }
5922
+ ),
5907
5923
  /* @__PURE__ */ jsxRuntime.jsx("p", { style: { marginBottom: "16px" }, children: l.greeting(partnerName) }),
5908
5924
  /* @__PURE__ */ jsxRuntime.jsx("p", { style: { marginBottom: "16px" }, children: introText }),
5909
5925
  /* @__PURE__ */ jsxRuntime.jsx("p", { style: { marginBottom: "24px", fontWeight: 600 }, children: l.travellersCountLine(travellersCount) }),
@@ -6009,6 +6025,8 @@ var DEFAULT_LABELS8 = {
6009
6025
  bookerNameLabel: "Name",
6010
6026
  bookerEmailLabel: "Email",
6011
6027
  bookerPhoneLabel: "Phone",
6028
+ registrationPendingNotice: "The travellers' registration details will be sent to you as soon as all travellers have completed their forms.",
6029
+ mustReplyToConfirm: "Please reply to this email to confirm the booking.",
6012
6030
  closingAgent: (agentName, contact) => /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
6013
6031
  "If you have any questions, your contact ",
6014
6032
  agentName,
@@ -6023,6 +6041,7 @@ var DEFAULT_LABELS8 = {
6023
6041
  teamSignature: "The PlanetaEXO Team"
6024
6042
  };
6025
6043
  function PartnerBookingCreatedEmail({
6044
+ topNotice,
6026
6045
  partnerName,
6027
6046
  bookingNumber,
6028
6047
  adventureName,
@@ -6081,6 +6100,21 @@ function PartnerBookingCreatedEmail({
6081
6100
  className,
6082
6101
  children: [
6083
6102
  /* @__PURE__ */ jsxRuntime.jsx(EmailLogo, { src: logoUrl, alt: l.logoAlt }),
6103
+ hasText4(topNotice) && /* @__PURE__ */ jsxRuntime.jsx(
6104
+ "div",
6105
+ {
6106
+ style: {
6107
+ padding: "12px 16px",
6108
+ borderRadius: 8,
6109
+ backgroundColor: "#fef3c7",
6110
+ color: "#78350f",
6111
+ fontWeight: 600,
6112
+ fontSize: "14px",
6113
+ marginBottom: "20px"
6114
+ },
6115
+ children: topNotice
6116
+ }
6117
+ ),
6084
6118
  /* @__PURE__ */ jsxRuntime.jsx("p", { style: { marginBottom: "16px" }, children: l.greeting(partnerName) }),
6085
6119
  /* @__PURE__ */ jsxRuntime.jsx("p", { style: { marginBottom: "24px" }, children: l.intro(adventureName) }),
6086
6120
  sectionDivider,
@@ -6157,6 +6191,27 @@ function PartnerBookingCreatedEmail({
6157
6191
  }
6158
6192
  ),
6159
6193
  sectionDivider,
6194
+ /* @__PURE__ */ jsxRuntime.jsxs(
6195
+ "div",
6196
+ {
6197
+ style: {
6198
+ padding: "16px 20px",
6199
+ borderRadius: 8,
6200
+ border: "2px solid #f59e0b",
6201
+ backgroundColor: "#fef3c7",
6202
+ color: "#78350f",
6203
+ fontSize: "14px",
6204
+ marginBottom: "16px"
6205
+ },
6206
+ children: [
6207
+ /* @__PURE__ */ jsxRuntime.jsx("p", { style: { margin: 0, marginBottom: "10px", lineHeight: 1.5 }, children: l.registrationPendingNotice }),
6208
+ /* @__PURE__ */ jsxRuntime.jsxs("p", { style: { margin: 0, fontWeight: 700, fontSize: "15px", lineHeight: 1.5 }, children: [
6209
+ "\u26A0\uFE0F ",
6210
+ l.mustReplyToConfirm
6211
+ ] })
6212
+ ]
6213
+ }
6214
+ ),
6160
6215
  /* @__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, {
6161
6216
  whatsappUrl: agent.whatsappUrl,
6162
6217
  email: agent.email
@@ -6169,6 +6224,7 @@ function PartnerBookingCreatedEmail({
6169
6224
  var DEFAULT_LABELS9 = {
6170
6225
  logoAlt: "PlanetaEXO",
6171
6226
  greeting: (name) => `Hi ${name},`,
6227
+ introMessage: "",
6172
6228
  receiptHeading: "Payment receipt",
6173
6229
  bookingNumberLabel: "Booking number",
6174
6230
  paymentMethodLabel: "Payment method",
@@ -6201,6 +6257,7 @@ function PaymentReceiptEmail({
6201
6257
  remainingBalance,
6202
6258
  balanceDueDate,
6203
6259
  isPaidInFull,
6260
+ adventures,
6204
6261
  logoUrl,
6205
6262
  labels,
6206
6263
  className
@@ -6243,6 +6300,7 @@ function PaymentReceiptEmail({
6243
6300
  children: [
6244
6301
  /* @__PURE__ */ jsxRuntime.jsx(EmailLogo, { src: logoUrl, alt: l.logoAlt }),
6245
6302
  /* @__PURE__ */ jsxRuntime.jsx("p", { style: { marginBottom: "16px" }, children: l.greeting(recipientName) }),
6303
+ l.introMessage && /* @__PURE__ */ jsxRuntime.jsx("p", { style: { marginBottom: "16px" }, children: l.introMessage }),
6246
6304
  /* @__PURE__ */ jsxRuntime.jsx("p", { style: { marginBottom: "12px", fontWeight: 700, color: emailTokens.foreground, fontSize: "16px" }, children: l.receiptHeading }),
6247
6305
  /* @__PURE__ */ jsxRuntime.jsx(
6248
6306
  "div",
@@ -6262,10 +6320,77 @@ function PaymentReceiptEmail({
6262
6320
  ] }) })
6263
6321
  }
6264
6322
  ),
6323
+ /* @__PURE__ */ jsxRuntime.jsx(
6324
+ "p",
6325
+ {
6326
+ style: {
6327
+ marginTop: 0,
6328
+ marginBottom: "20px",
6329
+ fontWeight: 700,
6330
+ color: emailTokens.foreground,
6331
+ fontSize: "18px",
6332
+ fontFamily: emailTokens.fontFamily
6333
+ },
6334
+ children: l.summaryHeading
6335
+ }
6336
+ ),
6337
+ adventures && adventures.length > 0 && /* @__PURE__ */ jsxRuntime.jsx("div", { style: { marginBottom: "16px" }, children: adventures.map((adv, i) => /* @__PURE__ */ jsxRuntime.jsxs(
6338
+ "div",
6339
+ {
6340
+ style: {
6341
+ borderRadius: "12px",
6342
+ border: `1px solid ${emailTokens.border}`,
6343
+ overflow: "hidden",
6344
+ marginBottom: "12px"
6345
+ },
6346
+ children: [
6347
+ /* @__PURE__ */ jsxRuntime.jsx(
6348
+ "div",
6349
+ {
6350
+ style: {
6351
+ padding: "12px 20px",
6352
+ backgroundColor: emailTokens.muted,
6353
+ fontWeight: 600,
6354
+ color: emailTokens.foreground,
6355
+ fontSize: "14px"
6356
+ },
6357
+ children: adv.name
6358
+ }
6359
+ ),
6360
+ 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: [
6361
+ /* @__PURE__ */ jsxRuntime.jsx(
6362
+ "td",
6363
+ {
6364
+ style: {
6365
+ padding: "10px 20px",
6366
+ color: emailTokens.mutedForeground,
6367
+ verticalAlign: "top"
6368
+ },
6369
+ children: li.label
6370
+ }
6371
+ ),
6372
+ /* @__PURE__ */ jsxRuntime.jsx(
6373
+ "td",
6374
+ {
6375
+ style: {
6376
+ padding: "10px 20px",
6377
+ textAlign: "right",
6378
+ fontWeight: 500,
6379
+ color: emailTokens.foreground,
6380
+ verticalAlign: "top",
6381
+ whiteSpace: "nowrap"
6382
+ },
6383
+ children: li.price
6384
+ }
6385
+ )
6386
+ ] }, j)) }) })
6387
+ ]
6388
+ },
6389
+ i
6390
+ )) }),
6265
6391
  /* @__PURE__ */ jsxRuntime.jsx(
6266
6392
  BookingSummary,
6267
6393
  {
6268
- heading: l.summaryHeading,
6269
6394
  rows: summaryRows,
6270
6395
  footer: isPaidInFull ? {
6271
6396
  text: l.paidInFullMessage,