@planetaexo/design-system 0.20.0 → 0.21.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 +9 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +17 -1
- package/dist/index.d.ts +17 -1
- package/dist/index.js +9 -6
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -1235,8 +1235,24 @@ interface RegistrationSuccessCardProps {
|
|
|
1235
1235
|
* campos da interface são ignorados aqui.
|
|
1236
1236
|
*/
|
|
1237
1237
|
labels?: RegistrationFormLabels;
|
|
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 1ª página, passar `"auto"` deixa a quebra fluir
|
|
1242
|
+
* naturalmente em vez de empurrar a seção inteira para a página 2.
|
|
1243
|
+
*/
|
|
1244
|
+
tripInfoBreakInside?: "auto" | "avoid";
|
|
1245
|
+
/**
|
|
1246
|
+
* Tipografia do conteúdo do parágrafo de Terms & Conditions.
|
|
1247
|
+
* - `"default"` (padrão): sans-serif (`font-ui`) — usado no fluxo web.
|
|
1248
|
+
* - `"compact-serif"`: serifada (`font-serif`) menor (`text-[8pt]`,
|
|
1249
|
+
* `leading-tight`) otimizada para PDF impresso/visualização A4.
|
|
1250
|
+
* Apenas o `<p>` do conteúdo é afetado — título da seção e badge
|
|
1251
|
+
* "Accepted/Not accepted" permanecem inalterados.
|
|
1252
|
+
*/
|
|
1253
|
+
termsTypography?: "default" | "compact-serif";
|
|
1238
1254
|
}
|
|
1239
|
-
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, }: RegistrationSuccessCardProps): react_jsx_runtime.JSX.Element;
|
|
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;
|
|
1240
1256
|
|
|
1241
1257
|
interface FloatingInputProps extends React.InputHTMLAttributes<HTMLInputElement> {
|
|
1242
1258
|
label: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -1235,8 +1235,24 @@ interface RegistrationSuccessCardProps {
|
|
|
1235
1235
|
* campos da interface são ignorados aqui.
|
|
1236
1236
|
*/
|
|
1237
1237
|
labels?: RegistrationFormLabels;
|
|
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 1ª página, passar `"auto"` deixa a quebra fluir
|
|
1242
|
+
* naturalmente em vez de empurrar a seção inteira para a página 2.
|
|
1243
|
+
*/
|
|
1244
|
+
tripInfoBreakInside?: "auto" | "avoid";
|
|
1245
|
+
/**
|
|
1246
|
+
* Tipografia do conteúdo do parágrafo de Terms & Conditions.
|
|
1247
|
+
* - `"default"` (padrão): sans-serif (`font-ui`) — usado no fluxo web.
|
|
1248
|
+
* - `"compact-serif"`: serifada (`font-serif`) menor (`text-[8pt]`,
|
|
1249
|
+
* `leading-tight`) otimizada para PDF impresso/visualização A4.
|
|
1250
|
+
* Apenas o `<p>` do conteúdo é afetado — título da seção e badge
|
|
1251
|
+
* "Accepted/Not accepted" permanecem inalterados.
|
|
1252
|
+
*/
|
|
1253
|
+
termsTypography?: "default" | "compact-serif";
|
|
1238
1254
|
}
|
|
1239
|
-
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, }: RegistrationSuccessCardProps): react_jsx_runtime.JSX.Element;
|
|
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;
|
|
1240
1256
|
|
|
1241
1257
|
interface FloatingInputProps extends React.InputHTMLAttributes<HTMLInputElement> {
|
|
1242
1258
|
label: string;
|
package/dist/index.js
CHANGED
|
@@ -5160,13 +5160,14 @@ function formatDateRange(adventure, fmt) {
|
|
|
5160
5160
|
function FormSection2({
|
|
5161
5161
|
title,
|
|
5162
5162
|
children,
|
|
5163
|
-
className
|
|
5163
|
+
className,
|
|
5164
|
+
breakInside = "avoid"
|
|
5164
5165
|
}) {
|
|
5165
5166
|
return /* @__PURE__ */ jsxs(
|
|
5166
5167
|
"div",
|
|
5167
5168
|
{
|
|
5168
5169
|
className: cn("flex flex-col gap-5", className),
|
|
5169
|
-
style: { breakInside
|
|
5170
|
+
style: { breakInside },
|
|
5170
5171
|
children: [
|
|
5171
5172
|
/* @__PURE__ */ jsxs(
|
|
5172
5173
|
"div",
|
|
@@ -6102,7 +6103,9 @@ function RegistrationSuccessCard({
|
|
|
6102
6103
|
density = "comfortable",
|
|
6103
6104
|
submissionTimestamps,
|
|
6104
6105
|
submissionTimestampsLabels,
|
|
6105
|
-
labels: scLabels
|
|
6106
|
+
labels: scLabels,
|
|
6107
|
+
tripInfoBreakInside = "avoid",
|
|
6108
|
+
termsTypography = "default"
|
|
6106
6109
|
}) {
|
|
6107
6110
|
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l;
|
|
6108
6111
|
const isMinimal = variant === "minimal";
|
|
@@ -6167,7 +6170,7 @@ function RegistrationSuccessCard({
|
|
|
6167
6170
|
/* @__PURE__ */ jsx("span", { className: "tabular-nums", children: submissionTimestamps.lastUpdatedAt })
|
|
6168
6171
|
] })
|
|
6169
6172
|
] }),
|
|
6170
|
-
hasTripInfo && /* @__PURE__ */ jsx(FormSection2, { title: TL.sectionTitle, 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: tripInfoBreakInside, children: /* @__PURE__ */ jsxs("dl", { className: "flex flex-col gap-y-3 text-sm font-ui", children: [
|
|
6171
6174
|
adventure && /* @__PURE__ */ jsxs("div", { className: "flex items-start gap-x-4", children: [
|
|
6172
6175
|
/* @__PURE__ */ jsx("dt", { className: "w-1/2 text-muted-foreground break-words", children: TL.adventureLabel }),
|
|
6173
6176
|
/* @__PURE__ */ jsx("dd", { className: "w-1/2 text-foreground font-medium text-right min-w-0 break-words", children: adventure.name })
|
|
@@ -6219,8 +6222,8 @@ function RegistrationSuccessCard({
|
|
|
6219
6222
|
"p",
|
|
6220
6223
|
{
|
|
6221
6224
|
className: cn(
|
|
6222
|
-
"whitespace-pre-wrap break-words text-foreground
|
|
6223
|
-
isCompact ? "text-xs leading-snug" : "text-sm leading-relaxed"
|
|
6225
|
+
"whitespace-pre-wrap break-words text-foreground",
|
|
6226
|
+
termsTypography === "compact-serif" ? "font-serif text-[8pt] leading-tight" : cn("font-ui", isCompact ? "text-xs leading-snug" : "text-sm leading-relaxed")
|
|
6224
6227
|
),
|
|
6225
6228
|
children: terms.markdown
|
|
6226
6229
|
}
|