@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.d.cts CHANGED
@@ -1432,10 +1432,10 @@ interface PartnerBookingCreatedEmailProps {
1432
1432
  dateRange: string;
1433
1433
  /** Viajantes DESTA aventura. */
1434
1434
  travellersCount: number;
1435
+ /** Booker: nome completo + país (exibidos no topo do Booking Summary). */
1435
1436
  booker: {
1436
1437
  name: string;
1437
- email?: string | null;
1438
- phone?: string | null;
1438
+ country?: string | null;
1439
1439
  };
1440
1440
  agent: {
1441
1441
  name: string;
@@ -1452,14 +1452,14 @@ interface PartnerBookingCreatedEmailLabels {
1452
1452
  /** "You have a new booking for {adventure}." */
1453
1453
  intro?: (adventureName: string) => string;
1454
1454
  summaryHeading?: string;
1455
+ /** Nome completo do booker (1ª linha do Booking Summary). */
1456
+ bookerNameLabel?: string;
1457
+ /** País do booker (2ª linha do Booking Summary; omitido se vazio). */
1458
+ bookerCountryLabel?: string;
1455
1459
  bookingNumberLabel?: string;
1456
1460
  adventureLabel?: string;
1457
1461
  datesLabel?: string;
1458
1462
  numberOfPeopleLabel?: string;
1459
- bookerHeading?: string;
1460
- bookerNameLabel?: string;
1461
- bookerEmailLabel?: string;
1462
- bookerPhoneLabel?: string;
1463
1463
  /** Aviso (linha 1) antes do closing — sempre visível. */
1464
1464
  registrationPendingNotice?: string;
1465
1465
  /** Aviso (linha 2, enfatizado) antes do closing — sempre visível. */
package/dist/index.d.ts CHANGED
@@ -1432,10 +1432,10 @@ interface PartnerBookingCreatedEmailProps {
1432
1432
  dateRange: string;
1433
1433
  /** Viajantes DESTA aventura. */
1434
1434
  travellersCount: number;
1435
+ /** Booker: nome completo + país (exibidos no topo do Booking Summary). */
1435
1436
  booker: {
1436
1437
  name: string;
1437
- email?: string | null;
1438
- phone?: string | null;
1438
+ country?: string | null;
1439
1439
  };
1440
1440
  agent: {
1441
1441
  name: string;
@@ -1452,14 +1452,14 @@ interface PartnerBookingCreatedEmailLabels {
1452
1452
  /** "You have a new booking for {adventure}." */
1453
1453
  intro?: (adventureName: string) => string;
1454
1454
  summaryHeading?: string;
1455
+ /** Nome completo do booker (1ª linha do Booking Summary). */
1456
+ bookerNameLabel?: string;
1457
+ /** País do booker (2ª linha do Booking Summary; omitido se vazio). */
1458
+ bookerCountryLabel?: string;
1455
1459
  bookingNumberLabel?: string;
1456
1460
  adventureLabel?: string;
1457
1461
  datesLabel?: string;
1458
1462
  numberOfPeopleLabel?: string;
1459
- bookerHeading?: string;
1460
- bookerNameLabel?: string;
1461
- bookerEmailLabel?: string;
1462
- bookerPhoneLabel?: string;
1463
1463
  /** Aviso (linha 1) antes do closing — sempre visível. */
1464
1464
  registrationPendingNotice?: string;
1465
1465
  /** Aviso (linha 2, enfatizado) antes do closing — sempre visível. */
package/dist/index.js CHANGED
@@ -6010,14 +6010,12 @@ var DEFAULT_LABELS8 = {
6010
6010
  greeting: (n) => `Hi ${n},`,
6011
6011
  intro: (adv) => `You have a new booking for your adventure ${adv}. Here are the details:`,
6012
6012
  summaryHeading: "\u{1F4DD} Booking Summary",
6013
+ bookerNameLabel: "Name",
6014
+ bookerCountryLabel: "Country",
6013
6015
  bookingNumberLabel: "Booking Number",
6014
6016
  adventureLabel: "Adventure",
6015
6017
  datesLabel: "Dates",
6016
6018
  numberOfPeopleLabel: "Number of Travellers",
6017
- bookerHeading: "Booking contact",
6018
- bookerNameLabel: "Name",
6019
- bookerEmailLabel: "Email",
6020
- bookerPhoneLabel: "Phone",
6021
6019
  registrationPendingNotice: "The travellers' registration details will be sent to you as soon as all travellers have completed their forms.",
6022
6020
  mustReplyToConfirm: "Please reply to this email to confirm the booking.",
6023
6021
  closingAgent: (agentName, contact) => /* @__PURE__ */ jsxs(Fragment, { children: [
@@ -6048,6 +6046,8 @@ function PartnerBookingCreatedEmail({
6048
6046
  }) {
6049
6047
  const l = __spreadValues(__spreadValues({}, DEFAULT_LABELS8), labels);
6050
6048
  const summaryRows = [
6049
+ { label: l.bookerNameLabel, value: booker.name },
6050
+ ...hasText4(booker.country) ? [{ label: l.bookerCountryLabel, value: booker.country }] : [],
6051
6051
  { label: l.bookingNumberLabel, value: `#${bookingNumber}`, valueColor: emailTokens.primary },
6052
6052
  { label: l.adventureLabel, value: adventureName },
6053
6053
  { label: l.datesLabel, value: dateRange },
@@ -6064,16 +6064,6 @@ function PartnerBookingCreatedEmail({
6064
6064
  }
6065
6065
  }
6066
6066
  );
6067
- const bookerRows = [
6068
- { label: l.bookerNameLabel, value: booker.name },
6069
- ...hasText4(booker.email) ? [
6070
- {
6071
- label: l.bookerEmailLabel,
6072
- value: /* @__PURE__ */ jsx("a", { href: `mailto:${booker.email}`, style: INLINE_LINK_STYLE4, children: booker.email })
6073
- }
6074
- ] : [],
6075
- ...hasText4(booker.phone) ? [{ label: l.bookerPhoneLabel, value: booker.phone }] : []
6076
- ];
6077
6067
  return /* @__PURE__ */ jsxs(
6078
6068
  "div",
6079
6069
  {
@@ -6112,77 +6102,6 @@ function PartnerBookingCreatedEmail({
6112
6102
  /* @__PURE__ */ jsx("p", { style: { marginBottom: "24px" }, children: l.intro(adventureName) }),
6113
6103
  sectionDivider,
6114
6104
  /* @__PURE__ */ jsx(BookingSummary, { heading: l.summaryHeading, rows: summaryRows }),
6115
- /* @__PURE__ */ jsx(
6116
- "p",
6117
- {
6118
- style: {
6119
- marginTop: 0,
6120
- marginBottom: "20px",
6121
- fontWeight: 700,
6122
- color: emailTokens.foreground,
6123
- fontSize: "18px",
6124
- fontFamily: emailTokens.fontFamily
6125
- },
6126
- children: l.bookerHeading
6127
- }
6128
- ),
6129
- /* @__PURE__ */ jsx(
6130
- "div",
6131
- {
6132
- style: {
6133
- borderRadius: "12px",
6134
- border: `1px solid ${emailTokens.border}`,
6135
- overflow: "hidden",
6136
- marginBottom: "24px"
6137
- },
6138
- children: /* @__PURE__ */ jsx(
6139
- "table",
6140
- {
6141
- style: {
6142
- width: "100%",
6143
- fontSize: "14px",
6144
- borderCollapse: "collapse"
6145
- },
6146
- children: /* @__PURE__ */ jsx("tbody", { children: bookerRows.map((row, i) => {
6147
- const isLastRow = i === bookerRows.length - 1;
6148
- return /* @__PURE__ */ jsxs(
6149
- "tr",
6150
- {
6151
- style: !isLastRow ? { borderBottom: `1px solid ${emailTokens.border}` } : {},
6152
- children: [
6153
- /* @__PURE__ */ jsx(
6154
- "td",
6155
- {
6156
- style: {
6157
- padding: "12px 20px",
6158
- color: emailTokens.mutedForeground,
6159
- backgroundColor: emailTokens.muted,
6160
- verticalAlign: "top"
6161
- },
6162
- children: row.label
6163
- }
6164
- ),
6165
- /* @__PURE__ */ jsx(
6166
- "td",
6167
- {
6168
- style: {
6169
- padding: "12px 20px",
6170
- fontWeight: 500,
6171
- color: emailTokens.foreground,
6172
- verticalAlign: "top"
6173
- },
6174
- children: row.value
6175
- }
6176
- )
6177
- ]
6178
- },
6179
- i
6180
- );
6181
- }) })
6182
- }
6183
- )
6184
- }
6185
- ),
6186
6105
  sectionDivider,
6187
6106
  /* @__PURE__ */ jsxs(
6188
6107
  "div",