@planetaexo/design-system 0.96.0 → 0.97.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
@@ -2405,6 +2405,8 @@ function Offer({
2405
2405
  confirmedState,
2406
2406
  interactionsDisabled,
2407
2407
  internalDemoCheckout = false,
2408
+ hideAdventures = false,
2409
+ hideSidebar = false,
2408
2410
  className
2409
2411
  }) {
2410
2412
  var _a, _b, _c;
@@ -2420,7 +2422,7 @@ function Offer({
2420
2422
  /* @__PURE__ */ jsxRuntime.jsx("img", { src: logo, alt: logoAlt, className: "w-[150px] h-auto object-contain mx-auto block" }),
2421
2423
  /* @__PURE__ */ jsxRuntime.jsx("h1", { className: "text-2xl font-black text-foreground font-heading leading-tight", children: title }),
2422
2424
  subtitle && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "text-sm text-muted-foreground font-sans space-y-1 leading-relaxed", children: subtitle }),
2423
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "grid grid-cols-1 lg:grid-cols-[1fr_280px] gap-6 lg:gap-8 items-start", children: [
2425
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cn("grid grid-cols-1 gap-6 lg:gap-8 items-start", !hideSidebar && "lg:grid-cols-[1fr_280px]"), children: [
2424
2426
  /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex flex-col gap-6", children: confirmedState ? /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
2425
2427
  /* @__PURE__ */ jsxRuntime.jsx(
2426
2428
  BookingConfirmedCard,
@@ -2436,7 +2438,7 @@ function Offer({
2436
2438
  ),
2437
2439
  confirmedState.belowSlot
2438
2440
  ] }) : /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
2439
- /* @__PURE__ */ jsxRuntime.jsxs("section", { className: "flex flex-col gap-5", children: [
2441
+ !hideAdventures && /* @__PURE__ */ jsxRuntime.jsxs("section", { className: "flex flex-col gap-5", children: [
2440
2442
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-2", children: [
2441
2443
  /* @__PURE__ */ jsxRuntime.jsx(lucideReact.MapIcon, { className: "w-5 h-5 text-primary shrink-0" }),
2442
2444
  /* @__PURE__ */ jsxRuntime.jsx("h2", { className: "font-bold text-foreground font-heading text-base", children: (_b = labels == null ? void 0 : labels.includedAdventures) != null ? _b : "Included Adventures" })
@@ -2469,7 +2471,7 @@ function Offer({
2469
2471
  }
2470
2472
  ) : null)
2471
2473
  ] }) }),
2472
- /* @__PURE__ */ jsxRuntime.jsx("div", { className: "lg:sticky lg:top-8", children: /* @__PURE__ */ jsxRuntime.jsx(
2474
+ !hideSidebar && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "lg:sticky lg:top-8", children: /* @__PURE__ */ jsxRuntime.jsx(
2473
2475
  OfferSidebar,
2474
2476
  {
2475
2477
  total,
@@ -2482,7 +2484,7 @@ function Offer({
2482
2484
  }
2483
2485
  ) })
2484
2486
  ] }),
2485
- !isShowingCheckout && !confirmedState && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "fixed bottom-0 inset-x-0 z-40 border-t border-border bg-background/95 backdrop-blur-sm px-4 py-3 lg:hidden", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center justify-between gap-4 max-w-5xl mx-auto", children: [
2487
+ !isShowingCheckout && !confirmedState && !hideSidebar && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "fixed bottom-0 inset-x-0 z-40 border-t border-border bg-background/95 backdrop-blur-sm px-4 py-3 lg:hidden", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center justify-between gap-4 max-w-5xl mx-auto", children: [
2486
2488
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col", children: [
2487
2489
  /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-[10px] uppercase tracking-widest text-muted-foreground font-heading", children: (_c = labels == null ? void 0 : labels.total) != null ? _c : "Total" }),
2488
2490
  /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-xl font-black text-primary font-heading leading-tight", children: total })
@@ -7422,6 +7424,7 @@ var DEFAULT_LABELS11 = {
7422
7424
  },
7423
7425
  registrationPendingNotice: "The travellers' registration details will be sent to you as soon as all travellers have completed their forms.",
7424
7426
  mustReplyToConfirm: "Please reply to this email to confirm the booking.",
7427
+ partnerNotesHeading: "Notes from the team",
7425
7428
  closingAgent: (agentName, contact) => /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
7426
7429
  "If you have any questions, your contact ",
7427
7430
  agentName,
@@ -7445,6 +7448,7 @@ function PartnerBookingCreatedEmail({
7445
7448
  optionals,
7446
7449
  rooms,
7447
7450
  booker,
7451
+ partnerNotes,
7448
7452
  agent,
7449
7453
  logoUrl,
7450
7454
  labels,
@@ -7518,6 +7522,52 @@ function PartnerBookingCreatedEmail({
7518
7522
  bedArrangementLabels: l.bedArrangementLabels
7519
7523
  }
7520
7524
  ),
7525
+ Array.isArray(partnerNotes) && partnerNotes.length > 0 && /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
7526
+ sectionDivider,
7527
+ /* @__PURE__ */ jsxRuntime.jsx(
7528
+ "p",
7529
+ {
7530
+ style: {
7531
+ marginTop: 0,
7532
+ marginBottom: "16px",
7533
+ paddingBottom: "8px",
7534
+ borderBottom: `2px solid ${emailTokens.primary}`,
7535
+ fontWeight: 700,
7536
+ fontSize: "18px",
7537
+ color: emailTokens.foreground,
7538
+ fontFamily: emailTokens.fontFamily
7539
+ },
7540
+ children: l.partnerNotesHeading
7541
+ }
7542
+ ),
7543
+ /* @__PURE__ */ jsxRuntime.jsx(
7544
+ "table",
7545
+ {
7546
+ role: "presentation",
7547
+ style: {
7548
+ width: "100%",
7549
+ borderCollapse: "collapse",
7550
+ fontSize: "14px",
7551
+ marginBottom: "24px"
7552
+ },
7553
+ children: /* @__PURE__ */ jsxRuntime.jsx("tbody", { children: partnerNotes.map((note, i) => /* @__PURE__ */ jsxRuntime.jsx("tr", { style: { borderBottom: `1px solid ${emailTokens.border}` }, children: /* @__PURE__ */ jsxRuntime.jsxs("td", { style: { padding: "10px 0", color: emailTokens.bodyText, verticalAlign: "top" }, children: [
7554
+ hasText7(note.meta) && /* @__PURE__ */ jsxRuntime.jsx(
7555
+ "div",
7556
+ {
7557
+ style: {
7558
+ fontSize: "12px",
7559
+ fontWeight: 600,
7560
+ color: emailTokens.foreground,
7561
+ marginBottom: "4px"
7562
+ },
7563
+ children: note.meta
7564
+ }
7565
+ ),
7566
+ /* @__PURE__ */ jsxRuntime.jsx("div", { style: { whiteSpace: "pre-wrap" }, children: note.body })
7567
+ ] }) }, i)) })
7568
+ }
7569
+ )
7570
+ ] }),
7521
7571
  sectionDivider,
7522
7572
  /* @__PURE__ */ jsxRuntime.jsxs(
7523
7573
  "div",