@npm_leadtech/legal-contracts-ui 0.135.0 → 0.136.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.
@@ -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 flex-col rounded bg-white p-4 text-neutral-800 shadow scroll-mt-24", 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 scroll-mt-24 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: [
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" }),
@@ -1,18 +1,19 @@
1
- import { jsxs as a, jsx as e } from "react/jsx-runtime";
1
+ import { jsxs as s, jsx as e } from "react/jsx-runtime";
2
2
  import "react";
3
- import { Markdown as n } from "./Markdown.js";
4
- import { FaqItem as i } from "./FaqItem.js";
5
- const u = ({ title: l, description: o, faqItems: r, className: s = "", variant: c }) => {
3
+ import n from "clsx";
4
+ import { Markdown as i } from "./Markdown.js";
5
+ import { FaqItem as x } from "./FaqItem.js";
6
+ const g = ({ title: l, description: o, faqItems: r, className: a = "", variant: c }) => {
6
7
  if (r.length === 0) return null;
7
8
  const m = l.toLowerCase().replace(/\s+/g, "-");
8
- return /* @__PURE__ */ a("div", { id: m, className: `flex flex-col gap-2 text-neutral-800 ${s} scroll-mt-12 p-0.5`, children: [
9
- /* @__PURE__ */ a("div", { className: "mb-4 flex flex-col", children: [
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
+ /* @__PURE__ */ s("div", { className: "mb-4 flex flex-col", children: [
10
11
  /* @__PURE__ */ e("h3", { className: "text-super-large font-bold", children: l }),
11
- o !== "" && /* @__PURE__ */ e(n, { content: o, className: "text-medium mt-6" })
12
+ o !== "" && /* @__PURE__ */ e(i, { content: o, className: "text-medium mt-6" })
12
13
  ] }),
13
- /* @__PURE__ */ e("div", { className: "flex flex-col gap-4", children: r.map((t) => /* @__PURE__ */ e(i, { ...t, variant: c }, t.question)) })
14
+ /* @__PURE__ */ e("div", { className: "flex flex-col gap-4", children: r.map((t) => /* @__PURE__ */ e(x, { ...t, variant: c }, t.question)) })
14
15
  ] });
15
16
  };
16
17
  export {
17
- u as FaqSection
18
+ g as FaqSection
18
19
  };
@@ -1,27 +1,28 @@
1
1
  import { jsx as e, jsxs as l, Fragment as n } from "react/jsx-runtime";
2
- import { Note as c } from "./Note.js";
2
+ import { Note as a } from "./Note.js";
3
3
  import { HistoryIcon as i } from "./HistoryIcon.js";
4
4
  import { DocOutlineIcon as m } from "./DocOutlineIcon.js";
5
5
  import { DoneCircleIcon as o } from "./DoneCircleIcon.js";
6
- const u = ({ lastUpdate: s, reviewer: r, alsoKnownAs: a }) => /* @__PURE__ */ e("section", { className: "bg-neutral-25 px-6 py-4 text-neutral-800 lg:px-8 xl:px-30", children: /* @__PURE__ */ e("div", { className: "mx-auto flex w-full max-w-300 flex-col gap-6", children: /* @__PURE__ */ l("div", { className: "text-small flex flex-col gap-2 text-neutral-600", children: [
6
+ const u = ({ lastUpdate: s, reviewer: c, alsoKnownAs: r }) => /* @__PURE__ */ e("section", { className: "bg-neutral-25 px-6 py-4 text-neutral-800 lg:px-8 xl:px-30", children: /* @__PURE__ */ e("div", { className: "mx-auto flex w-full max-w-300 flex-col gap-6", children: /* @__PURE__ */ l("div", { className: "text-small flex flex-col gap-2 text-neutral-600", children: [
7
7
  /* @__PURE__ */ l("div", { className: "flex flex-wrap items-center gap-2 sm:gap-4", children: [
8
- /* @__PURE__ */ l(c, { children: [
8
+ /* @__PURE__ */ l(a, { children: [
9
9
  /* @__PURE__ */ e(i, { className: "size-4.5", fill: "var(--neutral-600)" }),
10
10
  /* @__PURE__ */ e("span", { children: s })
11
11
  ] }),
12
- !!r && /* @__PURE__ */ l(n, { children: [
12
+ !!c && /* @__PURE__ */ l(n, { children: [
13
13
  /* @__PURE__ */ e("span", { className: "hidden h-5 w-px bg-neutral-600 sm:block", "aria-hidden": !0 }),
14
- /* @__PURE__ */ l(c, { children: [
14
+ /* @__PURE__ */ l(a, { children: [
15
15
  /* @__PURE__ */ e(o, { className: "size-4.5", fill: "var(--neutral-600)" }),
16
- r
16
+ c
17
17
  ] })
18
18
  ] })
19
19
  ] }),
20
- a.docs.length > 0 && /* @__PURE__ */ l("div", { className: "flex flex-wrap items-center gap-2", children: [
21
- /* @__PURE__ */ e(m, { className: "size-4.5", fill: "var(--secondary-600)" }),
22
- " ",
23
- a.label,
24
- a.docs.map((t) => /* @__PURE__ */ e("span", { className: "text-small rounded border border-neutral-200 bg-white px-2 py-1", children: t }, t))
20
+ r.docs.length > 0 && /* @__PURE__ */ l("div", { className: "flex flex-wrap items-center gap-2", children: [
21
+ /* @__PURE__ */ l(a, { children: [
22
+ /* @__PURE__ */ e(m, { className: "size-4.5", fill: "var(--secondary-600)" }),
23
+ r.label
24
+ ] }),
25
+ r.docs.map((t) => /* @__PURE__ */ e("span", { className: "text-small rounded border border-neutral-200 bg-white px-2 py-1", children: t }, t))
25
26
  ] })
26
27
  ] }) }) });
27
28
  export {
@@ -12,7 +12,7 @@ const g = ({ header: r, trustReasons: m, cta: c, trustPilot: i }) => /* @__PURE_
12
12
  ] }, a)) }),
13
13
  /* @__PURE__ */ e(d, { className: "w-full md:w-fit", children: c })
14
14
  ] }) }),
15
- /* @__PURE__ */ e("section", { className: "mx-auto w-full bg-white", children: !!i && /* @__PURE__ */ e("div", { className: "mx-auto w-full max-w-254 md:h-34", children: i }) })
15
+ /* @__PURE__ */ e("section", { className: "mx-auto w-full bg-white px-6 py-10 lg:px-8 xl:px-0", children: !!i && /* @__PURE__ */ e("div", { className: "mx-auto w-full max-w-254 md:h-34", children: i }) })
16
16
  ] });
17
17
  export {
18
18
  g as TrustSection