@planetaexo/design-system 0.21.0 → 0.22.1

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
@@ -1236,12 +1236,14 @@ interface RegistrationSuccessCardProps {
1236
1236
  */
1237
1237
  labels?: RegistrationFormLabels;
1238
1238
  /**
1239
- * Override de `break-inside` da seção "Trip info" default `"avoid"` preserva
1240
- * o comportamento legado (não quebra). Em PDFs onde header + Trip info juntos
1241
- * podem ultrapassar a página, passar `"auto"` deixa a quebra fluir
1242
- * naturalmente em vez de empurrar a seção inteira para a página 2.
1239
+ * Override de `break-inside` aplicado a TODAS as seções do card (Trip info,
1240
+ * Your answers, Terms). Default `"avoid"` preserva o comportamento legado
1241
+ * (cada seção tenta não quebrar). Em PDFs com muito conteúdo, passar `"auto"`
1242
+ * permite que as seções fluam naturalmente entre páginas evita o caso em
1243
+ * que uma seção grande é empurrada inteira para a próxima página, deixando
1244
+ * espaço em branco na anterior.
1243
1245
  */
1244
- tripInfoBreakInside?: "auto" | "avoid";
1246
+ sectionsBreakInside?: "auto" | "avoid";
1245
1247
  /**
1246
1248
  * Tipografia do conteúdo do parágrafo de Terms & Conditions.
1247
1249
  * - `"default"` (padrão): sans-serif (`font-ui`) — usado no fluxo web.
@@ -1252,7 +1254,7 @@ interface RegistrationSuccessCardProps {
1252
1254
  */
1253
1255
  termsTypography?: "default" | "compact-serif";
1254
1256
  }
1255
- declare function RegistrationSuccessCard({ variant, title, message, answersTitle, fields, answers, dateFormatter, formatAnswer, className, actions, logo, logoAlt, showSuccessIcon, terms, termsLayout, termsLabels, adventure, booking, traveller, tripInfoLabels, density, submissionTimestamps, submissionTimestampsLabels, labels: scLabels, tripInfoBreakInside, termsTypography, }: RegistrationSuccessCardProps): react_jsx_runtime.JSX.Element;
1257
+ declare function RegistrationSuccessCard({ variant, title, message, answersTitle, fields, answers, dateFormatter, formatAnswer, className, actions, logo, logoAlt, showSuccessIcon, terms, termsLayout, termsLabels, adventure, booking, traveller, tripInfoLabels, density, submissionTimestamps, submissionTimestampsLabels, labels: scLabels, sectionsBreakInside, termsTypography, }: RegistrationSuccessCardProps): react_jsx_runtime.JSX.Element;
1256
1258
 
1257
1259
  interface FloatingInputProps extends React.InputHTMLAttributes<HTMLInputElement> {
1258
1260
  label: string;
package/dist/index.d.ts CHANGED
@@ -1236,12 +1236,14 @@ interface RegistrationSuccessCardProps {
1236
1236
  */
1237
1237
  labels?: RegistrationFormLabels;
1238
1238
  /**
1239
- * Override de `break-inside` da seção "Trip info" default `"avoid"` preserva
1240
- * o comportamento legado (não quebra). Em PDFs onde header + Trip info juntos
1241
- * podem ultrapassar a página, passar `"auto"` deixa a quebra fluir
1242
- * naturalmente em vez de empurrar a seção inteira para a página 2.
1239
+ * Override de `break-inside` aplicado a TODAS as seções do card (Trip info,
1240
+ * Your answers, Terms). Default `"avoid"` preserva o comportamento legado
1241
+ * (cada seção tenta não quebrar). Em PDFs com muito conteúdo, passar `"auto"`
1242
+ * permite que as seções fluam naturalmente entre páginas evita o caso em
1243
+ * que uma seção grande é empurrada inteira para a próxima página, deixando
1244
+ * espaço em branco na anterior.
1243
1245
  */
1244
- tripInfoBreakInside?: "auto" | "avoid";
1246
+ sectionsBreakInside?: "auto" | "avoid";
1245
1247
  /**
1246
1248
  * Tipografia do conteúdo do parágrafo de Terms & Conditions.
1247
1249
  * - `"default"` (padrão): sans-serif (`font-ui`) — usado no fluxo web.
@@ -1252,7 +1254,7 @@ interface RegistrationSuccessCardProps {
1252
1254
  */
1253
1255
  termsTypography?: "default" | "compact-serif";
1254
1256
  }
1255
- declare function RegistrationSuccessCard({ variant, title, message, answersTitle, fields, answers, dateFormatter, formatAnswer, className, actions, logo, logoAlt, showSuccessIcon, terms, termsLayout, termsLabels, adventure, booking, traveller, tripInfoLabels, density, submissionTimestamps, submissionTimestampsLabels, labels: scLabels, tripInfoBreakInside, termsTypography, }: RegistrationSuccessCardProps): react_jsx_runtime.JSX.Element;
1257
+ declare function RegistrationSuccessCard({ variant, title, message, answersTitle, fields, answers, dateFormatter, formatAnswer, className, actions, logo, logoAlt, showSuccessIcon, terms, termsLayout, termsLabels, adventure, booking, traveller, tripInfoLabels, density, submissionTimestamps, submissionTimestampsLabels, labels: scLabels, sectionsBreakInside, termsTypography, }: RegistrationSuccessCardProps): react_jsx_runtime.JSX.Element;
1256
1258
 
1257
1259
  interface FloatingInputProps extends React.InputHTMLAttributes<HTMLInputElement> {
1258
1260
  label: string;
package/dist/index.js CHANGED
@@ -6104,7 +6104,7 @@ function RegistrationSuccessCard({
6104
6104
  submissionTimestamps,
6105
6105
  submissionTimestampsLabels,
6106
6106
  labels: scLabels,
6107
- tripInfoBreakInside = "avoid",
6107
+ sectionsBreakInside = "avoid",
6108
6108
  termsTypography = "default"
6109
6109
  }) {
6110
6110
  var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l;
@@ -6170,7 +6170,7 @@ function RegistrationSuccessCard({
6170
6170
  /* @__PURE__ */ jsx("span", { className: "tabular-nums", children: submissionTimestamps.lastUpdatedAt })
6171
6171
  ] })
6172
6172
  ] }),
6173
- hasTripInfo && /* @__PURE__ */ jsx(FormSection2, { title: TL.sectionTitle, breakInside: tripInfoBreakInside, children: /* @__PURE__ */ jsxs("dl", { className: "flex flex-col gap-y-3 text-sm font-ui", children: [
6173
+ hasTripInfo && /* @__PURE__ */ jsx(FormSection2, { title: TL.sectionTitle, breakInside: sectionsBreakInside, children: /* @__PURE__ */ jsxs("dl", { className: "flex flex-col gap-y-3 text-sm font-ui", children: [
6174
6174
  adventure && /* @__PURE__ */ jsxs("div", { className: "flex items-start gap-x-4", children: [
6175
6175
  /* @__PURE__ */ jsx("dt", { className: "w-1/2 text-muted-foreground break-words", children: TL.adventureLabel }),
6176
6176
  /* @__PURE__ */ jsx("dd", { className: "w-1/2 text-foreground font-medium text-right min-w-0 break-words", children: adventure.name })
@@ -6192,7 +6192,7 @@ function RegistrationSuccessCard({
6192
6192
  /* @__PURE__ */ jsx("dd", { className: "w-1/2 text-foreground font-medium text-right min-w-0 break-words", children: traveller.fullName })
6193
6193
  ] })
6194
6194
  ] }) }),
6195
- sorted.length > 0 && /* @__PURE__ */ jsx(FormSection2, { title: answersTitle, children: /* @__PURE__ */ jsx("dl", { className: "flex flex-col gap-y-3 text-sm font-ui", children: sorted.map((f) => /* @__PURE__ */ jsxs("div", { className: "flex items-start gap-x-4", children: [
6195
+ sorted.length > 0 && /* @__PURE__ */ jsx(FormSection2, { title: answersTitle, breakInside: sectionsBreakInside, children: /* @__PURE__ */ jsx("dl", { className: "flex flex-col gap-y-3 text-sm font-ui", children: sorted.map((f) => /* @__PURE__ */ jsxs("div", { className: "flex items-start gap-x-4", children: [
6196
6196
  /* @__PURE__ */ jsx("dt", { className: "w-1/2 text-muted-foreground break-words", children: f.label }),
6197
6197
  /* @__PURE__ */ 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, {
6198
6198
  yesLabel: scLabels == null ? void 0 : scLabels.yesLabel,
@@ -6202,7 +6202,7 @@ function RegistrationSuccessCard({
6202
6202
  answers[f.id]
6203
6203
  ) })
6204
6204
  ] }, f.id)) }) }),
6205
- !isMinimal && terms && /* @__PURE__ */ jsx(FormSection2, { title: (_j = termsLabels == null ? void 0 : termsLabels.title) != null ? _j : "Terms & Conditions", children: /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-3 text-sm font-ui", children: [
6205
+ !isMinimal && terms && /* @__PURE__ */ jsx(FormSection2, { title: (_j = termsLabels == null ? void 0 : termsLabels.title) != null ? _j : "Terms & Conditions", breakInside: sectionsBreakInside, children: /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-3 text-sm font-ui", children: [
6206
6206
  /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
6207
6207
  /* @__PURE__ */ jsx("div", { className: cn(
6208
6208
  "inline-flex h-5 w-5 items-center justify-center rounded-full text-white text-xs font-bold",