@marktiderman/genesis-forms-web 0.6.0 → 0.6.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.js +6 -6
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -34,7 +34,7 @@ function FieldChrome({ props, children, className }) {
|
|
|
34
34
|
const description = field.description ? props.engine.text(field.description) : void 0;
|
|
35
35
|
const questionSize = pageFocus ? "text-2xl font-semibold leading-tight tracking-tight text-balance sm:text-3xl" : pageClassic ? "text-lg font-medium leading-snug" : "text-base";
|
|
36
36
|
const body = /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
37
|
-
description ? /* @__PURE__ */ jsx(FormDescription, { id: `${inputId}-desc`, className: cn(pageFocus && "text-base sm:text-lg text-pretty"), children: description }) : null,
|
|
37
|
+
description ? /* @__PURE__ */ jsx(FormDescription, { id: `${inputId}-desc`, className: cn("whitespace-pre-line", pageFocus && "text-base sm:text-lg text-pretty"), children: description }) : null,
|
|
38
38
|
pageFocus ? /* @__PURE__ */ jsx("div", { className: "pt-6 sm:pt-8", children }) : children,
|
|
39
39
|
pageFocus ? (
|
|
40
40
|
// A calm note under the answer, Typeform style; the question keeps its colour.
|
|
@@ -1976,7 +1976,7 @@ function DefaultHeader({ title, description, image, requiredNote, className }) {
|
|
|
1976
1976
|
return /* @__PURE__ */ jsxs("header", { className: cn("space-y-1", className), children: [
|
|
1977
1977
|
image ? /* @__PURE__ */ jsx(HeaderImage, { image, className: "mb-4 rounded-lg" }) : null,
|
|
1978
1978
|
/* @__PURE__ */ jsx("h1", { className: "text-sm font-medium text-muted-foreground", children: title }),
|
|
1979
|
-
description ? /* @__PURE__ */ jsx("p", { className: "text-sm text-muted-foreground", children: description }) : null,
|
|
1979
|
+
description ? /* @__PURE__ */ jsx("p", { className: "text-sm text-muted-foreground whitespace-pre-line", children: description }) : null,
|
|
1980
1980
|
requiredNote ? /* @__PURE__ */ jsx(RequiredNote, { text: requiredNote }) : null
|
|
1981
1981
|
] });
|
|
1982
1982
|
}
|
|
@@ -1993,7 +1993,7 @@ function DefaultHeader({ title, description, image, requiredNote, className }) {
|
|
|
1993
1993
|
image ? /* @__PURE__ */ jsx(HeaderImage, { image }) : null,
|
|
1994
1994
|
/* @__PURE__ */ jsxs("div", { className: cn("px-5 py-6 sm:px-8 sm:py-8", image && "border-t-8 border-t-primary"), children: [
|
|
1995
1995
|
/* @__PURE__ */ jsx("h1", { className: "text-3xl font-semibold tracking-tight text-balance sm:text-4xl", children: title }),
|
|
1996
|
-
description ? /* @__PURE__ */ jsx("p", { className: "mt-3 text-base text-muted-foreground text-pretty", children: description }) : null,
|
|
1996
|
+
description ? /* @__PURE__ */ jsx("p", { className: "mt-3 text-base text-muted-foreground text-pretty whitespace-pre-line", children: description }) : null,
|
|
1997
1997
|
requiredNote ? /* @__PURE__ */ jsx(RequiredNote, { text: requiredNote, className: "mt-4" }) : null
|
|
1998
1998
|
] })
|
|
1999
1999
|
]
|
|
@@ -2003,7 +2003,7 @@ function DefaultHeader({ title, description, image, requiredNote, className }) {
|
|
|
2003
2003
|
return /* @__PURE__ */ jsxs("header", { className: cn("space-y-1", className), children: [
|
|
2004
2004
|
image ? /* @__PURE__ */ jsx(HeaderImage, { image, className: "mb-4 rounded-lg" }) : null,
|
|
2005
2005
|
/* @__PURE__ */ jsx("h1", { className: "text-2xl font-semibold tracking-tight", children: title }),
|
|
2006
|
-
description ? /* @__PURE__ */ jsx("p", { className: "text-muted-foreground", children: description }) : null,
|
|
2006
|
+
description ? /* @__PURE__ */ jsx("p", { className: "text-muted-foreground whitespace-pre-line", children: description }) : null,
|
|
2007
2007
|
requiredNote ? /* @__PURE__ */ jsx(RequiredNote, { text: requiredNote, className: "pt-1" }) : null
|
|
2008
2008
|
] });
|
|
2009
2009
|
}
|
|
@@ -2166,13 +2166,13 @@ function DefaultEnding({ title, description, actions, className }) {
|
|
|
2166
2166
|
children: title
|
|
2167
2167
|
}
|
|
2168
2168
|
),
|
|
2169
|
-
description ? /* @__PURE__ */ jsx("p", { className: "max-w-md text-lg text-muted-foreground text-pretty", children: description }) : null,
|
|
2169
|
+
description ? /* @__PURE__ */ jsx("p", { className: "max-w-md text-lg text-muted-foreground text-pretty whitespace-pre-line", children: description }) : null,
|
|
2170
2170
|
actionRow
|
|
2171
2171
|
] });
|
|
2172
2172
|
}
|
|
2173
2173
|
return /* @__PURE__ */ jsxs("div", { className: cn("space-y-2 py-8 text-center", className), children: [
|
|
2174
2174
|
/* @__PURE__ */ jsx("h2", { tabIndex: -1, "data-gf-focus": "", className: cn("rounded-sm text-2xl font-semibold", focusRing), children: title }),
|
|
2175
|
-
description ? /* @__PURE__ */ jsx("p", { className: "text-muted-foreground", children: description }) : null,
|
|
2175
|
+
description ? /* @__PURE__ */ jsx("p", { className: "text-muted-foreground whitespace-pre-line", children: description }) : null,
|
|
2176
2176
|
actionRow
|
|
2177
2177
|
] });
|
|
2178
2178
|
}
|