@planetaexo/design-system 0.59.1 → 0.60.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
@@ -5305,6 +5305,7 @@ function BookingPaymentConfirmationEmail({
5305
5305
  notIncluded: adventure.notIncluded,
5306
5306
  lineItems: lineItemsToPass,
5307
5307
  subtotal: adventure.subtotal,
5308
+ rooms: adventure.rooms,
5308
5309
  labels: {
5309
5310
  travellersHeading: l.travellersLabel,
5310
5311
  detailsHeading: l.itineraryLabel,
@@ -8331,6 +8332,7 @@ function FieldRenderer({
8331
8332
  onChange,
8332
8333
  defaultPhoneCountry,
8333
8334
  labels,
8335
+ countries,
8334
8336
  error,
8335
8337
  disabled
8336
8338
  }) {
@@ -8565,6 +8567,7 @@ function FieldRenderer({
8565
8567
  required: field.required,
8566
8568
  value: typeof value === "string" ? value : "",
8567
8569
  onChange: (code) => onChange(code),
8570
+ countries,
8568
8571
  disabled
8569
8572
  }
8570
8573
  );
@@ -8710,6 +8713,7 @@ function RegistrationForm({
8710
8713
  defaultPhoneCountry = "BR",
8711
8714
  dateFormatter,
8712
8715
  labels,
8716
+ countries,
8713
8717
  className,
8714
8718
  readOnly = false
8715
8719
  }) {
@@ -8895,6 +8899,7 @@ function RegistrationForm({
8895
8899
  onChange: (v) => setField(field.id, v),
8896
8900
  defaultPhoneCountry,
8897
8901
  labels: L,
8902
+ countries,
8898
8903
  error: fieldErrors[field.id],
8899
8904
  disabled: readOnly
8900
8905
  }
@@ -9042,7 +9047,7 @@ function phoneCountryDial(code) {
9042
9047
  var _a, _b;
9043
9048
  return (_b = (_a = PHONE_COUNTRIES.find((c) => c.code === code)) == null ? void 0 : _a.dial) != null ? _b : code;
9044
9049
  }
9045
- function defaultFormatAnswer(field, value, fmtDate, yesNoLabels) {
9050
+ function defaultFormatAnswer(field, value, fmtDate, yesNoLabels, countries) {
9046
9051
  var _a, _b, _c, _d, _e, _f, _g, _h;
9047
9052
  if (value == null || value === "") return "\u2014";
9048
9053
  if (value instanceof Date) return fmtDate(value);
@@ -9071,7 +9076,7 @@ function defaultFormatAnswer(field, value, fmtDate, yesNoLabels) {
9071
9076
  }
9072
9077
  }
9073
9078
  if (field.type === "nationality" && typeof value === "string") {
9074
- return (_d = (_c = COUNTRIES.find((c) => c.code === value)) == null ? void 0 : _c.name) != null ? _d : value;
9079
+ return (_d = (_c = (countries != null ? countries : COUNTRIES).find((c) => c.code === value)) == null ? void 0 : _c.name) != null ? _d : value;
9075
9080
  }
9076
9081
  if (field.type === "select" && field.options) {
9077
9082
  return (_f = (_e = field.options.find((o) => o.value === value)) == null ? void 0 : _e.label) != null ? _f : String(value);
@@ -9097,6 +9102,7 @@ function RegistrationSuccessCard({
9097
9102
  answers = {},
9098
9103
  dateFormatter = isoOrDateToString,
9099
9104
  formatAnswer,
9105
+ countries,
9100
9106
  className,
9101
9107
  actions,
9102
9108
  logo,
@@ -9206,7 +9212,7 @@ function RegistrationSuccessCard({
9206
9212
  /* @__PURE__ */ jsxRuntime.jsx("dd", { className: "w-1/2 text-foreground text-right min-w-0 break-words", children: (formatAnswer != null ? formatAnswer : ((field, v) => defaultFormatAnswer(field, v, dateFormatter, {
9207
9213
  yesLabel: scLabels == null ? void 0 : scLabels.yesLabel,
9208
9214
  noLabel: scLabels == null ? void 0 : scLabels.noLabel
9209
- })))(
9215
+ }, countries)))(
9210
9216
  f,
9211
9217
  answers[f.id]
9212
9218
  ) })