@npm_leadtech/legal-contracts-ui 0.68.3 → 0.69.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.
@@ -16,7 +16,7 @@ const w = ({
16
16
  /* @__PURE__ */ e(p, { ...l }),
17
17
  /* @__PURE__ */ e(c, { ...r, className: "pb-4" }),
18
18
  /* @__PURE__ */ m("div", { className: "mx-auto flex justify-center gap-4 text-neutral-800 lg:gap-26.5 xl:gap-31.5", children: [
19
- /* @__PURE__ */ e("aside", { className: "sticky top-25 hidden self-start md:block", children: /* @__PURE__ */ e(n, { ...t }) }),
19
+ /* @__PURE__ */ e("aside", { className: "sticky top-24 hidden self-start md:block", children: /* @__PURE__ */ e(n, { ...t }) }),
20
20
  /* @__PURE__ */ m("div", { className: "flex flex-col gap-10", children: [
21
21
  o.map((a) => /* @__PURE__ */ e(x, { ...a }, a.id)),
22
22
  /* @__PURE__ */ e("span", { className: "h-px w-full bg-neutral-200" }),
@@ -1,48 +1,48 @@
1
1
  "use client";
2
- import { jsxs as s, jsx as n } from "react/jsx-runtime";
3
- import { useState as d, useEffect as f } from "react";
4
- import m from "clsx";
5
- const p = ({ categories: t, title: a }) => {
6
- const [c, o] = d(t[0]?.id || "");
7
- return f(() => {
2
+ import { jsxs as r, jsx as l } from "react/jsx-runtime";
3
+ import { useState as o, useEffect as d } from "react";
4
+ import f from "clsx";
5
+ const h = ({ categories: t, title: s }) => {
6
+ const [a, c] = o(t[0]?.id || "");
7
+ return d(() => {
8
8
  if (t.length === 0) return;
9
9
  const e = new IntersectionObserver(
10
- (l) => {
11
- l.forEach((i) => {
12
- i.isIntersecting && o(i.target.id);
10
+ (n) => {
11
+ n.forEach((i) => {
12
+ i.isIntersecting && c(i.target.id);
13
13
  });
14
14
  },
15
- { rootMargin: "-10% 0px -80% 0px", threshold: 0.1 }
15
+ { rootMargin: "-10% 0px -75% 0px", threshold: 0 }
16
16
  );
17
- return t.forEach((l) => {
18
- const i = l.id, r = document.getElementById(i);
19
- r && e.observe(r);
17
+ return t.forEach(({ id: n }) => {
18
+ const i = document.getElementById(n);
19
+ i && e.observe(i);
20
20
  }), () => {
21
21
  e.disconnect();
22
22
  };
23
- }, [t]), t.length === 0 ? null : /* @__PURE__ */ s("div", { className: "flex w-full max-w-71 min-w-65 flex-col gap-4 rounded bg-white", children: [
24
- /* @__PURE__ */ n("p", { className: "text-big font-bold text-neutral-800", children: a }),
25
- /* @__PURE__ */ n("span", { className: "h-px w-full bg-neutral-200", "aria-hidden": !0 }),
26
- /* @__PURE__ */ n("ul", { className: "flex flex-col gap-4", children: t.map((e) => {
27
- const l = c === e.id;
28
- return /* @__PURE__ */ n("li", { children: /* @__PURE__ */ s(
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("p", { className: "text-big font-bold text-neutral-800", children: s }),
25
+ /* @__PURE__ */ l("span", { className: "h-px w-full bg-neutral-200", "aria-hidden": !0 }),
26
+ /* @__PURE__ */ l("ul", { className: "flex flex-col gap-4", children: t.map((e) => {
27
+ const n = a === e.id;
28
+ return /* @__PURE__ */ l("li", { children: /* @__PURE__ */ r(
29
29
  "a",
30
30
  {
31
31
  href: `#${e.id}`,
32
- className: m(
32
+ className: f(
33
33
  "text-small flex items-center gap-4 text-neutral-800 transition-all",
34
- l && "font-bold"
34
+ n && "font-bold"
35
35
  ),
36
36
  children: [
37
37
  e.icon,
38
- /* @__PURE__ */ n("span", { className: "flex-1", children: e.title })
38
+ /* @__PURE__ */ l("span", { className: "flex-1", children: e.title })
39
39
  ]
40
40
  }
41
41
  ) }, e.id);
42
42
  }) }),
43
- /* @__PURE__ */ n("span", { className: "h-px w-full bg-neutral-200", "aria-hidden": !0 })
43
+ /* @__PURE__ */ l("span", { className: "h-px w-full bg-neutral-200", "aria-hidden": !0 })
44
44
  ] });
45
45
  };
46
46
  export {
47
- p as DocumentCategories
47
+ h as DocumentCategories
48
48
  };
@@ -1,6 +1,6 @@
1
1
  import { jsxs as l, jsx as e } from "react/jsx-runtime";
2
2
  import { DocumentItem as i } from "./DocumentItem.js";
3
- const o = ({ id: r, title: s, description: t, icon: c, documents: m }) => /* @__PURE__ */ l("article", { id: r, className: "flex max-w-198 scroll-mt-25 flex-col gap-6", children: [
3
+ const o = ({ id: r, title: s, description: t, icon: c, documents: m }) => /* @__PURE__ */ l("article", { id: r, className: "flex max-w-198 scroll-mt-24 flex-col gap-6", children: [
4
4
  /* @__PURE__ */ l("div", { className: "flex gap-4 rounded bg-neutral-50 p-6", children: [
5
5
  c,
6
6
  /* @__PURE__ */ l("div", { className: "flex flex-1 flex-col gap-2 text-neutral-800", children: [