@npm_leadtech/legal-contracts-ui 0.141.0 → 0.141.2
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,7 +2,7 @@
|
|
|
2
2
|
import { jsxs as r, jsx as l } from "react/jsx-runtime";
|
|
3
3
|
import { useState as o, useEffect as d } from "react";
|
|
4
4
|
import f from "clsx";
|
|
5
|
-
const
|
|
5
|
+
const x = ({ categories: t, title: s }) => {
|
|
6
6
|
const [a, c] = o(t[0]?.id || "");
|
|
7
7
|
return d(() => {
|
|
8
8
|
if (t.length === 0) return;
|
|
@@ -21,7 +21,7 @@ const h = ({ categories: t, title: s }) => {
|
|
|
21
21
|
e.disconnect();
|
|
22
22
|
};
|
|
23
23
|
}, [t]), t.length === 0 ? null : /* @__PURE__ */ r("div", { className: "flex w-full max-w-71 min-w-65 flex-col gap-4 rounded bg-white", children: [
|
|
24
|
-
/* @__PURE__ */ l("
|
|
24
|
+
/* @__PURE__ */ l("h2", { className: "text-big font-bold text-neutral-800", children: s }),
|
|
25
25
|
/* @__PURE__ */ l("span", { className: "h-px w-full bg-neutral-200", "aria-hidden": !0 }),
|
|
26
26
|
/* @__PURE__ */ l("ul", { className: "flex flex-col gap-4", children: t.map((e) => {
|
|
27
27
|
const n = a === e.id;
|
|
@@ -44,5 +44,5 @@ const h = ({ categories: t, title: s }) => {
|
|
|
44
44
|
] });
|
|
45
45
|
};
|
|
46
46
|
export {
|
|
47
|
-
|
|
47
|
+
x as DocumentCategories
|
|
48
48
|
};
|
|
@@ -10,7 +10,7 @@ const m = ({ link: t, description: o, className: i = "" }) => /* @__PURE__ */ r(
|
|
|
10
10
|
),
|
|
11
11
|
children: [
|
|
12
12
|
/* @__PURE__ */ r("div", { className: "flex items-center justify-between", children: [
|
|
13
|
-
/* @__PURE__ */ e("
|
|
13
|
+
/* @__PURE__ */ e("h3", { className: "flex-1 font-bold", children: t }),
|
|
14
14
|
/* @__PURE__ */ e(l, { "aria-hidden": !0, fill: "var(--color-neutral-800)" })
|
|
15
15
|
] }),
|
|
16
16
|
/* @__PURE__ */ e("p", { children: o })
|
|
@@ -5,7 +5,7 @@ const x = ({ id: r, title: t, description: s, icon: c, documents: m }) => /* @__
|
|
|
5
5
|
/* @__PURE__ */ l("div", { className: "flex items-start gap-4 rounded bg-neutral-50 p-6", children: [
|
|
6
6
|
c,
|
|
7
7
|
/* @__PURE__ */ l("div", { className: "flex flex-1 flex-col gap-2 text-neutral-800", children: [
|
|
8
|
-
/* @__PURE__ */ e("
|
|
8
|
+
/* @__PURE__ */ e("h2", { className: "font-lora text-super-large", children: t }),
|
|
9
9
|
/* @__PURE__ */ e(o, { className: "text-medium [&_p:last-child]:mb-0", content: s })
|
|
10
10
|
] })
|
|
11
11
|
] }),
|
|
@@ -13,7 +13,7 @@ const I = ({
|
|
|
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 scroll-mt-24 flex-col rounded bg-white p-4 text-neutral-800 shadow", children: /* @__PURE__ */ r(p, { question: /* @__PURE__ */ e("
|
|
16
|
+
return /* @__PURE__ */ e("div", { id: c, className: "text-medium flex scroll-mt-24 flex-col rounded bg-white p-4 text-neutral-800 shadow", children: /* @__PURE__ */ r(p, { question: /* @__PURE__ */ e("h3", { 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" }),
|
|
@@ -8,7 +8,7 @@ const g = ({ title: l, description: o, faqItems: r, className: a = "", variant:
|
|
|
8
8
|
const m = l.toLowerCase().replace(/\s+/g, "-");
|
|
9
9
|
return /* @__PURE__ */ s("div", { id: m, className: n("flex scroll-mt-24 flex-col gap-2 p-0.5 text-neutral-800", a), children: [
|
|
10
10
|
/* @__PURE__ */ s("div", { className: "mb-4 flex flex-col", children: [
|
|
11
|
-
/* @__PURE__ */ e("
|
|
11
|
+
/* @__PURE__ */ e("h2", { className: "text-super-large font-bold", children: l }),
|
|
12
12
|
o !== "" && /* @__PURE__ */ e(i, { content: o, className: "text-medium mt-6" })
|
|
13
13
|
] }),
|
|
14
14
|
/* @__PURE__ */ e("div", { className: "flex flex-col gap-4", children: r.map((t) => /* @__PURE__ */ e(x, { ...t, variant: c }, t.question)) })
|