@npm_leadtech/legal-contracts-ui 0.131.3 → 0.131.5
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.
|
@@ -2,22 +2,22 @@ import { jsx as e, jsxs as r } from "react/jsx-runtime";
|
|
|
2
2
|
import { useId as d } from "react";
|
|
3
3
|
import { FaqItemWrapper as p } from "./FaqItemWrapper.js";
|
|
4
4
|
import { Markdown as h } from "./Markdown.js";
|
|
5
|
-
import { ChevronDownIcon as
|
|
5
|
+
import { ChevronDownIcon as a } from "./ChevronDownIcon.js";
|
|
6
6
|
const I = ({
|
|
7
7
|
question: n,
|
|
8
8
|
answer: l,
|
|
9
|
-
showMoreText:
|
|
9
|
+
showMoreText: o,
|
|
10
10
|
collapsedButtonText: i,
|
|
11
11
|
expandedButtonText: s,
|
|
12
12
|
variant: m,
|
|
13
13
|
slug: c
|
|
14
14
|
}) => {
|
|
15
15
|
const t = `toggle-${d().replace(/:/g, "")}`;
|
|
16
|
-
return /* @__PURE__ */ e("div", { id: c, className: "text-medium flex flex-col rounded bg-white p-4 text-neutral-800 shadow", children: /* @__PURE__ */ r(p, { question: /* @__PURE__ */ e("span", { className: "font-bold", children: n }), children: [
|
|
16
|
+
return /* @__PURE__ */ e("div", { id: c, className: "text-medium flex flex-col rounded bg-white p-4 text-neutral-800 shadow scroll-mt-20", children: /* @__PURE__ */ r(p, { question: /* @__PURE__ */ e("span", { className: "font-bold", children: n }), children: [
|
|
17
17
|
/* @__PURE__ */ e(h, { content: l, className: "text-medium", variant: m ?? "default" }),
|
|
18
|
-
|
|
18
|
+
o && /* @__PURE__ */ r("div", { className: "mt-4 rounded-lg bg-neutral-50 p-6", children: [
|
|
19
19
|
/* @__PURE__ */ e("input", { type: "checkbox", id: t, className: "peer sr-only" }),
|
|
20
|
-
/* @__PURE__ */ e("p", { className: "mb-4 line-clamp-4 text-xs leading-relaxed wrap-break-word text-neutral-800 peer-checked:line-clamp-none", children:
|
|
20
|
+
/* @__PURE__ */ e("p", { className: "mb-4 line-clamp-4 text-xs leading-relaxed wrap-break-word text-neutral-800 peer-checked:line-clamp-none", children: o }),
|
|
21
21
|
/* @__PURE__ */ r(
|
|
22
22
|
"label",
|
|
23
23
|
{
|
|
@@ -25,7 +25,7 @@ const I = ({
|
|
|
25
25
|
className: "text-primary-700 flex cursor-pointer items-center gap-1 text-sm transition-colors peer-checked:hidden",
|
|
26
26
|
children: [
|
|
27
27
|
s,
|
|
28
|
-
/* @__PURE__ */ e(
|
|
28
|
+
/* @__PURE__ */ e(a, { fill: "var(--color-primary-700)", className: "h-4 w-4 transition-transform duration-200" })
|
|
29
29
|
]
|
|
30
30
|
}
|
|
31
31
|
),
|
|
@@ -37,7 +37,7 @@ const I = ({
|
|
|
37
37
|
children: [
|
|
38
38
|
i,
|
|
39
39
|
/* @__PURE__ */ e(
|
|
40
|
-
|
|
40
|
+
a,
|
|
41
41
|
{
|
|
42
42
|
fill: "var(--color-primary-700)",
|
|
43
43
|
className: "h-4 w-4 rotate-180 transition-transform duration-200"
|
|
@@ -1,28 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
const o = () => {
|
|
11
|
-
const l = document.getElementById(e);
|
|
12
|
-
return l ? (l.scrollIntoView({ behavior: "smooth", block: "start" }), !0) : !1;
|
|
13
|
-
};
|
|
14
|
-
if (o()) return;
|
|
15
|
-
const t = new MutationObserver(() => {
|
|
16
|
-
o() && t.disconnect();
|
|
17
|
-
});
|
|
18
|
-
return t.observe(document.body, { childList: !0, subtree: !0 }), () => t.disconnect();
|
|
19
|
-
}, []), /* @__PURE__ */ r("main", { className: "bg-primary-50 flex-1 px-4 py-10 text-neutral-800 md:px-8", children: /* @__PURE__ */ s("div", { className: "mx-auto flex w-full max-w-300 flex-col gap-10", children: [
|
|
20
|
-
/* @__PURE__ */ r(f, { ...n }),
|
|
21
|
-
/* @__PURE__ */ s("div", { className: "flex flex-col gap-10 md:flex-row md:gap-24", children: [
|
|
22
|
-
/* @__PURE__ */ r(m, { ...a }),
|
|
23
|
-
/* @__PURE__ */ r("div", { className: "flex flex-1 flex-col gap-10", children: c.map((e) => /* @__PURE__ */ r(d, { ...e }, e.title)) })
|
|
1
|
+
import { jsx as e, jsxs as m } from "react/jsx-runtime";
|
|
2
|
+
import { AsideNavMenu as x } from "./AsideNavMenu.js";
|
|
3
|
+
import { Jumbotron2 as i } from "./Jumbotron2.js";
|
|
4
|
+
import { FaqSection as p } from "./FaqSection.js";
|
|
5
|
+
const d = ({ jumbotron: a, asideNavMenu: r, faqSections: o }) => /* @__PURE__ */ e("main", { className: "bg-primary-50 flex-1 px-4 py-10 text-neutral-800 md:px-8", children: /* @__PURE__ */ m("div", { className: "mx-auto flex w-full max-w-300 flex-col gap-10", children: [
|
|
6
|
+
/* @__PURE__ */ e(i, { ...a }),
|
|
7
|
+
/* @__PURE__ */ m("div", { className: "flex flex-col gap-10 md:flex-row md:gap-24", children: [
|
|
8
|
+
/* @__PURE__ */ e(x, { ...r }),
|
|
9
|
+
/* @__PURE__ */ e("div", { className: "flex flex-1 flex-col gap-10", children: o.map((l) => /* @__PURE__ */ e(p, { ...l }, l.title)) })
|
|
24
10
|
] })
|
|
25
|
-
] }) })
|
|
11
|
+
] }) });
|
|
26
12
|
export {
|
|
27
|
-
|
|
13
|
+
d as FaqsTemplate
|
|
28
14
|
};
|