@planetaexo/design-system 0.43.0 → 0.44.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
@@ -6031,14 +6031,12 @@ var DEFAULT_LABELS8 = {
6031
6031
  greeting: (n) => `Hi ${n},`,
6032
6032
  intro: (adv) => `You have a new booking for your adventure ${adv}. Here are the details:`,
6033
6033
  summaryHeading: "\u{1F4DD} Booking Summary",
6034
+ bookerNameLabel: "Name",
6035
+ bookerCountryLabel: "Country",
6034
6036
  bookingNumberLabel: "Booking Number",
6035
6037
  adventureLabel: "Adventure",
6036
6038
  datesLabel: "Dates",
6037
6039
  numberOfPeopleLabel: "Number of Travellers",
6038
- bookerHeading: "Booking contact",
6039
- bookerNameLabel: "Name",
6040
- bookerEmailLabel: "Email",
6041
- bookerPhoneLabel: "Phone",
6042
6040
  registrationPendingNotice: "The travellers' registration details will be sent to you as soon as all travellers have completed their forms.",
6043
6041
  mustReplyToConfirm: "Please reply to this email to confirm the booking.",
6044
6042
  closingAgent: (agentName, contact) => /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
@@ -6069,6 +6067,8 @@ function PartnerBookingCreatedEmail({
6069
6067
  }) {
6070
6068
  const l = __spreadValues(__spreadValues({}, DEFAULT_LABELS8), labels);
6071
6069
  const summaryRows = [
6070
+ { label: l.bookerNameLabel, value: booker.name },
6071
+ ...hasText4(booker.country) ? [{ label: l.bookerCountryLabel, value: booker.country }] : [],
6072
6072
  { label: l.bookingNumberLabel, value: `#${bookingNumber}`, valueColor: emailTokens.primary },
6073
6073
  { label: l.adventureLabel, value: adventureName },
6074
6074
  { label: l.datesLabel, value: dateRange },
@@ -6085,16 +6085,6 @@ function PartnerBookingCreatedEmail({
6085
6085
  }
6086
6086
  }
6087
6087
  );
6088
- const bookerRows = [
6089
- { label: l.bookerNameLabel, value: booker.name },
6090
- ...hasText4(booker.email) ? [
6091
- {
6092
- label: l.bookerEmailLabel,
6093
- value: /* @__PURE__ */ jsxRuntime.jsx("a", { href: `mailto:${booker.email}`, style: INLINE_LINK_STYLE4, children: booker.email })
6094
- }
6095
- ] : [],
6096
- ...hasText4(booker.phone) ? [{ label: l.bookerPhoneLabel, value: booker.phone }] : []
6097
- ];
6098
6088
  return /* @__PURE__ */ jsxRuntime.jsxs(
6099
6089
  "div",
6100
6090
  {
@@ -6133,77 +6123,6 @@ function PartnerBookingCreatedEmail({
6133
6123
  /* @__PURE__ */ jsxRuntime.jsx("p", { style: { marginBottom: "24px" }, children: l.intro(adventureName) }),
6134
6124
  sectionDivider,
6135
6125
  /* @__PURE__ */ jsxRuntime.jsx(BookingSummary, { heading: l.summaryHeading, rows: summaryRows }),
6136
- /* @__PURE__ */ jsxRuntime.jsx(
6137
- "p",
6138
- {
6139
- style: {
6140
- marginTop: 0,
6141
- marginBottom: "20px",
6142
- fontWeight: 700,
6143
- color: emailTokens.foreground,
6144
- fontSize: "18px",
6145
- fontFamily: emailTokens.fontFamily
6146
- },
6147
- children: l.bookerHeading
6148
- }
6149
- ),
6150
- /* @__PURE__ */ jsxRuntime.jsx(
6151
- "div",
6152
- {
6153
- style: {
6154
- borderRadius: "12px",
6155
- border: `1px solid ${emailTokens.border}`,
6156
- overflow: "hidden",
6157
- marginBottom: "24px"
6158
- },
6159
- children: /* @__PURE__ */ jsxRuntime.jsx(
6160
- "table",
6161
- {
6162
- style: {
6163
- width: "100%",
6164
- fontSize: "14px",
6165
- borderCollapse: "collapse"
6166
- },
6167
- children: /* @__PURE__ */ jsxRuntime.jsx("tbody", { children: bookerRows.map((row, i) => {
6168
- const isLastRow = i === bookerRows.length - 1;
6169
- return /* @__PURE__ */ jsxRuntime.jsxs(
6170
- "tr",
6171
- {
6172
- style: !isLastRow ? { borderBottom: `1px solid ${emailTokens.border}` } : {},
6173
- children: [
6174
- /* @__PURE__ */ jsxRuntime.jsx(
6175
- "td",
6176
- {
6177
- style: {
6178
- padding: "12px 20px",
6179
- color: emailTokens.mutedForeground,
6180
- backgroundColor: emailTokens.muted,
6181
- verticalAlign: "top"
6182
- },
6183
- children: row.label
6184
- }
6185
- ),
6186
- /* @__PURE__ */ jsxRuntime.jsx(
6187
- "td",
6188
- {
6189
- style: {
6190
- padding: "12px 20px",
6191
- fontWeight: 500,
6192
- color: emailTokens.foreground,
6193
- verticalAlign: "top"
6194
- },
6195
- children: row.value
6196
- }
6197
- )
6198
- ]
6199
- },
6200
- i
6201
- );
6202
- }) })
6203
- }
6204
- )
6205
- }
6206
- ),
6207
6126
  sectionDivider,
6208
6127
  /* @__PURE__ */ jsxRuntime.jsxs(
6209
6128
  "div",