@planetaexo/design-system 0.41.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: {
@@ -6224,6 +6224,7 @@ function PartnerBookingCreatedEmail({
6224
6224
  var DEFAULT_LABELS9 = {
6225
6225
  logoAlt: "PlanetaEXO",
6226
6226
  greeting: (name) => `Hi ${name},`,
6227
+ introMessage: "",
6227
6228
  receiptHeading: "Payment receipt",
6228
6229
  bookingNumberLabel: "Booking number",
6229
6230
  paymentMethodLabel: "Payment method",
@@ -6256,6 +6257,7 @@ function PaymentReceiptEmail({
6256
6257
  remainingBalance,
6257
6258
  balanceDueDate,
6258
6259
  isPaidInFull,
6260
+ adventures,
6259
6261
  logoUrl,
6260
6262
  labels,
6261
6263
  className
@@ -6298,6 +6300,7 @@ function PaymentReceiptEmail({
6298
6300
  children: [
6299
6301
  /* @__PURE__ */ jsxRuntime.jsx(EmailLogo, { src: logoUrl, alt: l.logoAlt }),
6300
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 }),
6301
6304
  /* @__PURE__ */ jsxRuntime.jsx("p", { style: { marginBottom: "12px", fontWeight: 700, color: emailTokens.foreground, fontSize: "16px" }, children: l.receiptHeading }),
6302
6305
  /* @__PURE__ */ jsxRuntime.jsx(
6303
6306
  "div",
@@ -6317,10 +6320,77 @@ function PaymentReceiptEmail({
6317
6320
  ] }) })
6318
6321
  }
6319
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
+ )) }),
6320
6391
  /* @__PURE__ */ jsxRuntime.jsx(
6321
6392
  BookingSummary,
6322
6393
  {
6323
- heading: l.summaryHeading,
6324
6394
  rows: summaryRows,
6325
6395
  footer: isPaidInFull ? {
6326
6396
  text: l.paidInFullMessage,