@npm_leadtech/legal-contracts-ui 0.72.2 → 0.73.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.
@@ -1,12 +1,29 @@
1
- import { jsx as n } from "react/jsx-runtime";
2
- import l from "clsx";
3
- const m = ({ children: t, variant: r = "default", className: e = "", ...a }) => {
4
- const i = a.href?.toLowerCase().startsWith("mailto:"), c = r === "legal", o = {
1
+ import { jsx as u } from "react/jsx-runtime";
2
+ import h from "clsx";
3
+ const v = ({ children: o, variant: i = "default", className: l = "", ...e }) => {
4
+ const t = e.href || "", r = t.toLowerCase(), c = r.startsWith("mailto:"), n = r.startsWith("tel:"), a = {
5
5
  default: "text-neutral-900 underline ",
6
6
  legal: "text-primary-700 cursor-pointer"
7
- }, s = o[r] ?? o.default;
8
- return c && i ? /* @__PURE__ */ n("span", { className: l(e, s), children: t }) : /* @__PURE__ */ n("a", { className: l(e, s), target: "_blank", rel: "noopener noreferrer", ...a, children: t });
7
+ }, f = a[i] ?? a.default, s = t.startsWith("http") && !n && !c, d = (() => {
8
+ if (!n) return t;
9
+ try {
10
+ return decodeURIComponent(t).replace(/\s/g, "");
11
+ } catch {
12
+ return t.replace(/%20/g, "").replace(/\s/g, "");
13
+ }
14
+ })();
15
+ return /* @__PURE__ */ u(
16
+ "a",
17
+ {
18
+ ...e,
19
+ href: d,
20
+ className: h(l, f),
21
+ target: s ? "_blank" : void 0,
22
+ rel: s ? "noopener noreferrer" : void 0,
23
+ children: o
24
+ }
25
+ );
9
26
  };
10
27
  export {
11
- m as Anchor
28
+ v as Anchor
12
29
  };
@@ -1,18 +1,18 @@
1
1
  import { jsx as e, jsxs as i } from "react/jsx-runtime";
2
2
  import "react";
3
- import { SectionHeading as a } from "./SectionHeading.js";
4
- import { LinkWrapper as d } from "./LinkWrapper.js";
5
- const x = ({ header: m, articles: r, cta: t }) => r.length === 0 ? null : /* @__PURE__ */ e("section", { className: "mx-auto px-8 pt-10 pb-12 lg:px-12 lg:pb-14 xl:max-w-300 xl:px-0", children: /* @__PURE__ */ i("div", { className: "mx-auto flex flex-col items-center gap-8", children: [
6
- /* @__PURE__ */ e(a, { ...m }),
7
- /* @__PURE__ */ e("div", { className: "grid gap-6 lg:grid-cols-2", children: r.map((l) => /* @__PURE__ */ i("article", { className: "flex flex-col rounded-sm bg-white shadow md:flex-row", children: [
8
- /* @__PURE__ */ e("div", { className: "relative h-42 shrink-0 overflow-hidden rounded-t-sm md:h-full md:max-w-51 md:rounded-t-none md:rounded-l-sm [&_img]:h-full [&_img]:w-full [&_img]:object-cover", children: l.image }),
3
+ import { SectionHeading as o } from "./SectionHeading.js";
4
+ import { LinkWrapper as r } from "./LinkWrapper.js";
5
+ const x = ({ header: t, articles: a, cta: m }) => a.length === 0 ? null : /* @__PURE__ */ e("section", { className: "mx-auto px-8 pt-10 pb-12 lg:px-12 lg:pb-14 xl:max-w-300 xl:px-0", children: /* @__PURE__ */ i("div", { className: "mx-auto flex flex-col items-center gap-8", children: [
6
+ /* @__PURE__ */ e(o, { ...t }),
7
+ /* @__PURE__ */ e("div", { className: "grid gap-6 lg:grid-cols-2", children: a.map((l) => /* @__PURE__ */ i("article", { className: "flex flex-col rounded-sm bg-white shadow md:flex-row", children: [
8
+ /* @__PURE__ */ e("div", { className: "relative h-42 shrink-0 overflow-hidden rounded-l-sm md:h-50 lg:h-auto lg:max-w-51 [&_img]:h-full [&_img]:w-full [&_img]:object-cover", children: l.image }),
9
9
  /* @__PURE__ */ i("div", { className: "flex flex-col gap-4 p-6 text-neutral-800", children: [
10
10
  /* @__PURE__ */ e("h3", { className: "text-big font-semibold", children: l.title }),
11
11
  /* @__PURE__ */ e("p", { className: "text-medium", children: l.description }),
12
- /* @__PURE__ */ e(d, { className: "w-fit", variant: "tertiary-bold", children: l.cta })
12
+ /* @__PURE__ */ e(r, { className: "w-fit", variant: "tertiary-bold", children: l.cta })
13
13
  ] })
14
14
  ] }, l.title)) }),
15
- /* @__PURE__ */ e(d, { className: "w-full md:w-fit", variant: "secondary-green", children: t })
15
+ /* @__PURE__ */ e(r, { className: "w-full md:w-fit", variant: "secondary-green", children: m })
16
16
  ] }) });
17
17
  export {
18
18
  x as BlogSection
@@ -6,10 +6,10 @@ export declare const HeroSection: FC<HeroSectionProps>;
6
6
  export declare interface HeroSectionProps {
7
7
  title: string;
8
8
  description?: string;
9
- bgImage: ReactNode | null;
10
9
  cta?: ReactNode;
11
10
  heroDocuments: ItemProps[];
12
11
  listTitle?: string;
12
+ backgroundImage?: string;
13
13
  }
14
14
 
15
15
  export interface ItemProps {
@@ -17,8 +17,10 @@ export interface ItemProps {
17
17
  image: ReactNode;
18
18
  title?: string;
19
19
  description?: string;
20
- documentUrl?: ReactNode;
20
+ documentUrl?: string;
21
+ actions?: ReactNode;
21
22
  variant?: 'default' | 'card';
22
23
  className?: string;
24
+ titleClassName?: string;
23
25
  }
24
26
 
@@ -1,21 +1,32 @@
1
- import { jsxs as t, jsx as e } from "react/jsx-runtime";
1
+ import { jsx as e, jsxs as t } from "react/jsx-runtime";
2
2
  import "react";
3
- import { Item as n } from "./Item.js";
3
+ import { Item as c } from "./Item.js";
4
4
  import { LinkWrapper as x } from "./LinkWrapper.js";
5
- const g = ({ title: i, description: s, cta: l, heroDocuments: m, listTitle: c, bgImage: r }) => /* @__PURE__ */ t("section", { className: "bg-primary-50 relative", children: [
6
- !!r && r,
7
- /* @__PURE__ */ t("div", { className: "flex flex-col items-center gap-6 px-6 py-10 md:px-20 lg:flex-row lg:gap-14 lg:px-8 lg:py-12 xl:justify-center xl:gap-20", children: [
8
- /* @__PURE__ */ t("div", { className: "flex flex-col items-center gap-6 pb-6 text-center lg:items-start lg:text-left xl:max-w-115", children: [
9
- /* @__PURE__ */ e("h1", { className: "font-lora text-hero md:text-super-hero text-neutral-900", children: i }),
10
- /* @__PURE__ */ e("p", { className: "text-big text-neutral-800", children: s }),
11
- !!l && /* @__PURE__ */ e(x, { variant: "primary-darkgreen", className: "w-full md:w-fit", children: l })
12
- ] }),
13
- /* @__PURE__ */ t("div", { className: "flex flex-col items-center justify-center gap-4 md:w-full md:items-start md:justify-start xl:max-w-115", children: [
14
- /* @__PURE__ */ e("div", { className: "flex items-center justify-between", children: /* @__PURE__ */ e("p", { className: "text-big text-primary-800 font-semibold", children: c }) }),
15
- /* @__PURE__ */ e("div", { className: "flex w-full flex-col gap-2", children: m.map((a) => /* @__PURE__ */ e(n, { ...a, variant: "card" }, a.title)) })
5
+ const g = ({
6
+ title: i,
7
+ description: s,
8
+ cta: l,
9
+ heroDocuments: m,
10
+ listTitle: n,
11
+ backgroundImage: r
12
+ }) => /* @__PURE__ */ e("section", { className: "bg-primary-50", children: /* @__PURE__ */ e(
13
+ "div",
14
+ {
15
+ className: "bg-none bg-size-[420px_442px] bg-bottom-right bg-no-repeat xl:bg-(image:--hero-bg)",
16
+ style: { "--hero-bg": r ? `url(${r})` : "none" },
17
+ children: /* @__PURE__ */ t("div", { className: "flex flex-col items-center gap-6 px-6 py-10 md:px-20 lg:flex-row lg:gap-14 lg:px-8 lg:py-12 xl:justify-center xl:gap-20", children: [
18
+ /* @__PURE__ */ t("div", { className: "flex flex-col items-center gap-6 pb-6 text-center lg:items-start lg:text-left xl:max-w-115", children: [
19
+ /* @__PURE__ */ e("h1", { className: "font-lora text-hero md:text-super-hero text-neutral-900", children: i }),
20
+ /* @__PURE__ */ e("p", { className: "text-big text-neutral-800", children: s }),
21
+ !!l && /* @__PURE__ */ e(x, { variant: "primary-darkgreen", className: "w-full md:w-fit", children: l })
22
+ ] }),
23
+ /* @__PURE__ */ t("div", { className: "flex flex-col items-center justify-center gap-4 md:w-full md:items-start md:justify-start xl:max-w-115", children: [
24
+ /* @__PURE__ */ e("div", { className: "flex items-center justify-between", children: /* @__PURE__ */ e("p", { className: "text-big text-primary-800 font-semibold", children: n }) }),
25
+ /* @__PURE__ */ e("div", { className: "flex w-full flex-col gap-2", children: m.map((a) => /* @__PURE__ */ e(c, { ...a, variant: "card" }, a.title)) })
26
+ ] })
16
27
  ] })
17
- ] })
18
- ] });
28
+ }
29
+ ) });
19
30
  export {
20
31
  g as HeroSection
21
32
  };
@@ -36,10 +36,10 @@ export interface FaqTeaserSectionProps {
36
36
  export interface HeroSectionProps {
37
37
  title: string;
38
38
  description?: string;
39
- bgImage: ReactNode | null;
40
39
  cta?: ReactNode;
41
40
  heroDocuments: ItemProps[];
42
41
  listTitle?: string;
42
+ backgroundImage?: string;
43
43
  }
44
44
 
45
45
  export interface HomeStepsProps {
@@ -71,9 +71,11 @@ export interface ItemProps {
71
71
  image: ReactNode;
72
72
  title?: string;
73
73
  description?: string;
74
- documentUrl?: ReactNode;
74
+ documentUrl?: string;
75
+ actions?: ReactNode;
75
76
  variant?: 'default' | 'card';
76
77
  className?: string;
78
+ titleClassName?: string;
77
79
  }
78
80
 
79
81
  export interface LawGeniusSectionProps {
@@ -8,8 +8,10 @@ export declare interface ItemProps {
8
8
  image: ReactNode;
9
9
  title?: string;
10
10
  description?: string;
11
- documentUrl?: ReactNode;
11
+ documentUrl?: string;
12
+ actions?: ReactNode;
12
13
  variant?: 'default' | 'card';
13
14
  className?: string;
15
+ titleClassName?: string;
14
16
  }
15
17
 
@@ -1,32 +1,32 @@
1
- import { jsxs as o, jsx as e } from "react/jsx-runtime";
1
+ import { jsxs as t, jsx as e } from "react/jsx-runtime";
2
2
  import "react";
3
- import d from "clsx";
4
- import { ChevronRightIcon as c } from "./ChevronRightIcon.js";
5
- const x = ({
6
- image: l,
7
- title: t,
3
+ const h = ({
4
+ image: s,
5
+ title: r,
8
6
  description: a,
9
- documentUrl: s,
10
- variant: r = "default",
11
- className: i = ""
12
- }) => /* @__PURE__ */ o(
13
- "div",
7
+ documentUrl: l,
8
+ actions: d,
9
+ variant: n = "default",
10
+ className: m = "",
11
+ titleClassName: o = ""
12
+ }) => /* @__PURE__ */ t(
13
+ "a",
14
14
  {
15
- className: `hover:bg-primary-50 relative flex cursor-pointer items-center gap-4 rounded-sm p-4 pl-6 [&_a]:before:absolute [&_a]:before:inset-0 [&_a]:before:content-[""] ${{
15
+ href: l,
16
+ className: `hover:bg-primary-50 flex cursor-pointer items-center gap-4 rounded-sm p-4 pl-6 ${{
16
17
  default: "",
17
18
  card: "border border-0.5 border-neutral-200 shadow-lg bg-white"
18
- }[r]} ${i}`,
19
+ }[n]} ${m}`,
19
20
  children: [
20
- l,
21
- /* @__PURE__ */ o("div", { className: "flex-1", children: [
22
- t && /* @__PURE__ */ e("p", { className: d("text-medium text-neutral-900", r === "card" && "font-semibold"), children: t }),
21
+ s,
22
+ /* @__PURE__ */ t("div", { className: "flex-1", children: [
23
+ r && /* @__PURE__ */ e("p", { className: `text-medium font-semibold text-neutral-900 ${o}`, children: r }),
23
24
  a && /* @__PURE__ */ e("p", { className: "text-extra-small text-neutral-600", children: a })
24
25
  ] }),
25
- !!s && /* @__PURE__ */ e("div", { className: "h-0 w-0 opacity-0", children: s }),
26
- r === "card" && /* @__PURE__ */ e(c, { width: 20, height: 20 })
26
+ /* @__PURE__ */ e("div", { children: d })
27
27
  ]
28
28
  }
29
29
  );
30
30
  export {
31
- x as Item
31
+ h as Item
32
32
  };
@@ -6,6 +6,6 @@ export declare const Jumbotron: FC<JumbotronProps>;
6
6
  export declare interface JumbotronProps {
7
7
  title: string;
8
8
  description: string;
9
- bgImage: ReactNode | null;
9
+ bgImage: ReactNode;
10
10
  }
11
11
 
@@ -1,11 +1,11 @@
1
- import { jsxs as e, jsx as a } from "react/jsx-runtime";
1
+ import { jsxs as t, jsx as e } from "react/jsx-runtime";
2
2
  import { Markdown as l } from "./Markdown.js";
3
- const n = ({ title: o, description: r, bgImage: t }) => /* @__PURE__ */ e("section", { className: "bg-primary-900 relative isolate overflow-hidden p-6 text-white", children: [
4
- /* @__PURE__ */ e("div", { className: "mx-auto flex max-w-250 flex-col gap-4 md:text-center", children: [
5
- /* @__PURE__ */ a("h1", { className: "font-lora text-large text-neutral-25 md:text-jumbotron", children: o }),
6
- /* @__PURE__ */ a(l, { content: r, className: "text-small text-neutral-25 mx-auto max-w-201 xl:max-w-250" })
3
+ const n = ({ title: a, description: r, bgImage: o }) => /* @__PURE__ */ t("section", { className: "bg-primary-900 relative isolate overflow-hidden p-6 text-white", children: [
4
+ /* @__PURE__ */ t("div", { className: "mx-auto flex max-w-250 flex-col gap-4 md:text-center", children: [
5
+ /* @__PURE__ */ e("h1", { className: "font-lora text-large text-neutral-25 md:text-jumbotron", children: a }),
6
+ /* @__PURE__ */ e(l, { content: r, className: "text-small text-neutral-25 mx-auto max-w-201 xl:max-w-250" })
7
7
  ] }),
8
- !!t && t
8
+ o
9
9
  ] });
10
10
  export {
11
11
  n as Jumbotron
@@ -1,50 +1,51 @@
1
1
  import { jsx as r } from "react/jsx-runtime";
2
- import a from "react-markdown";
3
- import i from "rehype-raw";
4
- import d from "remark-gfm";
2
+ import a, { defaultUrlTransform as i } from "react-markdown";
3
+ import s from "rehype-raw";
4
+ import f from "remark-gfm";
5
5
  import { Anchor as l } from "./Anchor.js";
6
- import { Blockquote as f } from "./Blockquote.js";
6
+ import { Blockquote as d } from "./Blockquote.js";
7
7
  import { Code as c } from "./Code.js";
8
- import { Header1 as s } from "./Header1.js";
9
- import { Header2 as h } from "./Header2.js";
10
- import { Header3 as u } from "./Header3.js";
11
- import { Header4 as C } from "./Header4.js";
8
+ import { Header1 as h } from "./Header1.js";
9
+ import { Header2 as u } from "./Header2.js";
10
+ import { Header3 as C } from "./Header3.js";
11
+ import { Header4 as T } from "./Header4.js";
12
12
  import { OrderedList as b } from "./OrderedList.js";
13
13
  import { Paragraph as k } from "./Paragraph.js";
14
- import { TableRow as w, TableHeader as g, TableData as H, Table as T } from "./Table.js";
15
- import { UnorderedList as x } from "./UnorderedList.js";
16
- import { Video as P } from "./Video.js";
17
- import { Emphasis as R } from "./Emphasis.js";
14
+ import { TableRow as w, TableHeader as g, TableData as H, Table as x } from "./Table.js";
15
+ import { UnorderedList as P } from "./UnorderedList.js";
16
+ import { Video as R } from "./Video.js";
17
+ import { Emphasis as U } from "./Emphasis.js";
18
18
  import q from "clsx";
19
- const Z = ({ content: m, className: t = "", useCustom: p = !0, variant: e = "default" }) => {
20
- const n = {
21
- h1: s,
22
- h2: (o) => /* @__PURE__ */ r(h, { variant: e, ...o }),
23
- h3: u,
24
- h4: C,
25
- p: (o) => /* @__PURE__ */ r(k, { variant: e, ...o }),
26
- a: (o) => /* @__PURE__ */ r(l, { variant: e, ...o }),
27
- ul: (o) => /* @__PURE__ */ r(x, { variant: e, ...o }),
28
- ol: (o) => /* @__PURE__ */ r(b, { variant: e, ...o }),
19
+ const y = (e) => e.startsWith("tel:") ? e : i(e), $ = ({ content: e, className: t = "", useCustom: n = !0, variant: m = "default" }) => {
20
+ const p = {
21
+ h1: h,
22
+ h2: (o) => /* @__PURE__ */ r(u, { variant: m, ...o }),
23
+ h3: C,
24
+ h4: T,
25
+ p: (o) => /* @__PURE__ */ r(k, { variant: m, ...o }),
26
+ a: (o) => /* @__PURE__ */ r(l, { variant: m, ...o }),
27
+ ul: (o) => /* @__PURE__ */ r(P, { variant: m, ...o }),
28
+ ol: (o) => /* @__PURE__ */ r(b, { variant: m, ...o }),
29
29
  code: c,
30
- blockquote: f,
31
- video: P,
32
- table: T,
30
+ blockquote: d,
31
+ video: R,
32
+ table: x,
33
33
  td: H,
34
34
  th: g,
35
35
  tr: w,
36
- em: R
36
+ em: U
37
37
  };
38
38
  return /* @__PURE__ */ r("div", { className: q("w-full min-w-0", t), children: /* @__PURE__ */ r(
39
39
  a,
40
40
  {
41
- rehypePlugins: [i],
42
- remarkPlugins: [d],
43
- components: p ? n : void 0,
44
- children: m
41
+ rehypePlugins: [s],
42
+ remarkPlugins: [f],
43
+ urlTransform: y,
44
+ components: n ? p : void 0,
45
+ children: e
45
46
  }
46
47
  ) });
47
48
  };
48
49
  export {
49
- Z as Markdown
50
+ $ as Markdown
50
51
  };
@@ -6,9 +6,11 @@ export interface ItemProps {
6
6
  image: ReactNode;
7
7
  title?: string;
8
8
  description?: string;
9
- documentUrl?: ReactNode;
9
+ documentUrl?: string;
10
+ actions?: ReactNode;
10
11
  variant?: 'default' | 'card';
11
12
  className?: string;
13
+ titleClassName?: string;
12
14
  }
13
15
 
14
16
  export declare const MoreTemplatesSection: FC<PopularDocumentsProps>;
@@ -1,25 +1,26 @@
1
1
  import { jsxs as i, jsx as e } from "react/jsx-runtime";
2
2
  import "react";
3
- import { SectionHeading as n } from "./SectionHeading.js";
4
- import { Item as d } from "./Item.js";
3
+ import { SectionHeading as s } from "./SectionHeading.js";
4
+ import { Item as o } from "./Item.js";
5
5
  import { ChevronDownIcon as a } from "./ChevronDownIcon.js";
6
- const b = ({ header: o, moreDocuments: l = [] }) => l.length === 0 ? null : /* @__PURE__ */ i("section", { className: "mx-auto px-6 py-10 text-neutral-800 lg:px-8 lg:py-12 xl:max-w-300 xl:px-0", children: [
6
+ const x = ({ header: n, moreDocuments: l = [] }) => l.length === 0 ? null : /* @__PURE__ */ i("section", { className: "mx-auto px-6 py-10 text-neutral-800 lg:px-8 lg:py-12 xl:max-w-300 xl:px-0", children: [
7
7
  /* @__PURE__ */ i("div", { className: "hidden flex-col gap-6 md:flex", children: [
8
- /* @__PURE__ */ e(n, { ...o, align: "start" }),
9
- /* @__PURE__ */ e("div", { className: "grid grid-flow-col grid-rows-3", children: l.map((r, s) => /* @__PURE__ */ e("div", { className: `border-neutral-200 px-6 ${s < 6 ? "border-r" : ""} `, children: /* @__PURE__ */ e(d, { ...r, className: "items-start! px-2!" }) }, `desktop-${r.id}`)) })
8
+ /* @__PURE__ */ e(s, { ...n, align: "start" }),
9
+ /* @__PURE__ */ e("div", { className: "grid grid-cols-3", children: l.map((r) => /* @__PURE__ */ e("div", { className: "border-neutral-200 px-6 not-nth-[3n]:border-r", children: /* @__PURE__ */ e(o, { ...r, className: "items-start! px-2!", titleClassName: "font-normal!" }) }, `desktop-${r.id}`)) })
10
10
  ] }),
11
11
  /* @__PURE__ */ e("div", { className: "flex flex-col gap-10 md:hidden", children: /* @__PURE__ */ i("details", { className: "group", children: [
12
12
  /* @__PURE__ */ i("summary", { className: "flex cursor-pointer list-none items-center justify-between rounded-sm border border-neutral-200 p-4", children: [
13
- /* @__PURE__ */ e("span", { children: o.title }),
13
+ /* @__PURE__ */ e("span", { children: n.title }),
14
14
  /* @__PURE__ */ e(a, { className: "h-5 w-5 transition-transform group-open:rotate-180" })
15
15
  ] }),
16
16
  /* @__PURE__ */ e("div", { className: "flex flex-col border-x border-b border-neutral-200", children: l.map((r) => /* @__PURE__ */ e(
17
- d,
17
+ o,
18
18
  {
19
19
  id: r.id,
20
20
  image: r.image,
21
21
  title: r.title,
22
22
  description: r.description,
23
+ actions: null,
23
24
  className: "border-b border-neutral-200 p-6 last:border-b-0",
24
25
  documentUrl: r.documentUrl
25
26
  },
@@ -28,5 +29,5 @@ const b = ({ header: o, moreDocuments: l = [] }) => l.length === 0 ? null : /* @
28
29
  ] }) })
29
30
  ] });
30
31
  export {
31
- b as MoreTemplatesSection
32
+ x as MoreTemplatesSection
32
33
  };
@@ -99,7 +99,7 @@ export interface JumboDocsProps {
99
99
  export interface JumbotronProps {
100
100
  title: string;
101
101
  description: string;
102
- bgImage: ReactNode | null;
102
+ bgImage: ReactNode;
103
103
  }
104
104
 
105
105
  export interface LinkedProductProps {