@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.
- package/dist/components/Anchor.js +24 -7
- package/dist/components/BlogSection.js +8 -8
- package/dist/components/HeroSection.d.ts +4 -2
- package/dist/components/HeroSection.js +26 -15
- package/dist/components/HomeTemplate.d.ts +4 -2
- package/dist/components/Item.d.ts +3 -1
- package/dist/components/Item.js +19 -19
- package/dist/components/Jumbotron.d.ts +1 -1
- package/dist/components/Jumbotron.js +6 -6
- package/dist/components/Markdown.js +32 -31
- package/dist/components/MoreTemplatesSection.d.ts +3 -1
- package/dist/components/MoreTemplatesSection.js +9 -8
- package/dist/components/ProductTemplate.d.ts +1 -1
- package/dist/globals.css +1 -1
- package/package.json +1 -1
- package/dist/components/index.d.ts +0 -1016
|
@@ -1,12 +1,29 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import
|
|
3
|
-
const
|
|
4
|
-
const
|
|
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
|
-
},
|
|
8
|
-
|
|
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
|
-
|
|
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
|
|
4
|
-
import { LinkWrapper as
|
|
5
|
-
const x = ({ header:
|
|
6
|
-
/* @__PURE__ */ e(
|
|
7
|
-
/* @__PURE__ */ e("div", { className: "grid gap-6 lg:grid-cols-2", children:
|
|
8
|
-
/* @__PURE__ */ e("div", { className: "relative h-42 shrink-0 overflow-hidden rounded-
|
|
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(
|
|
12
|
+
/* @__PURE__ */ e(r, { className: "w-fit", variant: "tertiary-bold", children: l.cta })
|
|
13
13
|
] })
|
|
14
14
|
] }, l.title)) }),
|
|
15
|
-
/* @__PURE__ */ e(
|
|
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?:
|
|
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 {
|
|
1
|
+
import { jsx as e, jsxs as t } from "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
|
-
import { Item as
|
|
3
|
+
import { Item as c } from "./Item.js";
|
|
4
4
|
import { LinkWrapper as x } from "./LinkWrapper.js";
|
|
5
|
-
const g = ({
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
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?:
|
|
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?:
|
|
11
|
+
documentUrl?: string;
|
|
12
|
+
actions?: ReactNode;
|
|
12
13
|
variant?: 'default' | 'card';
|
|
13
14
|
className?: string;
|
|
15
|
+
titleClassName?: string;
|
|
14
16
|
}
|
|
15
17
|
|
package/dist/components/Item.js
CHANGED
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as t, jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
image: l,
|
|
7
|
-
title: t,
|
|
3
|
+
const h = ({
|
|
4
|
+
image: s,
|
|
5
|
+
title: r,
|
|
8
6
|
description: a,
|
|
9
|
-
documentUrl:
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
"
|
|
7
|
+
documentUrl: l,
|
|
8
|
+
actions: d,
|
|
9
|
+
variant: n = "default",
|
|
10
|
+
className: m = "",
|
|
11
|
+
titleClassName: o = ""
|
|
12
|
+
}) => /* @__PURE__ */ t(
|
|
13
|
+
"a",
|
|
14
14
|
{
|
|
15
|
-
|
|
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
|
-
}[
|
|
19
|
+
}[n]} ${m}`,
|
|
19
20
|
children: [
|
|
20
|
-
|
|
21
|
-
/* @__PURE__ */
|
|
22
|
-
|
|
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
|
-
|
|
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
|
-
|
|
31
|
+
h as Item
|
|
32
32
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { jsxs as
|
|
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:
|
|
4
|
-
/* @__PURE__ */
|
|
5
|
-
/* @__PURE__ */
|
|
6
|
-
/* @__PURE__ */
|
|
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
|
-
|
|
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
|
|
4
|
-
import
|
|
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
|
|
6
|
+
import { Blockquote as d } from "./Blockquote.js";
|
|
7
7
|
import { Code as c } from "./Code.js";
|
|
8
|
-
import { Header1 as
|
|
9
|
-
import { Header2 as
|
|
10
|
-
import { Header3 as
|
|
11
|
-
import { Header4 as
|
|
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
|
|
15
|
-
import { UnorderedList as
|
|
16
|
-
import { Video as
|
|
17
|
-
import { Emphasis as
|
|
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
|
|
20
|
-
const
|
|
21
|
-
h1:
|
|
22
|
-
h2: (o) => /* @__PURE__ */ r(
|
|
23
|
-
h3:
|
|
24
|
-
h4:
|
|
25
|
-
p: (o) => /* @__PURE__ */ r(k, { variant:
|
|
26
|
-
a: (o) => /* @__PURE__ */ r(l, { variant:
|
|
27
|
-
ul: (o) => /* @__PURE__ */ r(
|
|
28
|
-
ol: (o) => /* @__PURE__ */ r(b, { variant:
|
|
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:
|
|
31
|
-
video:
|
|
32
|
-
table:
|
|
30
|
+
blockquote: d,
|
|
31
|
+
video: R,
|
|
32
|
+
table: x,
|
|
33
33
|
td: H,
|
|
34
34
|
th: g,
|
|
35
35
|
tr: w,
|
|
36
|
-
em:
|
|
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: [
|
|
42
|
-
remarkPlugins: [
|
|
43
|
-
|
|
44
|
-
|
|
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
|
-
|
|
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?:
|
|
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
|
|
4
|
-
import { Item as
|
|
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
|
|
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(
|
|
9
|
-
/* @__PURE__ */ e("div", { className: "grid grid-
|
|
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:
|
|
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
|
-
|
|
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
|
-
|
|
32
|
+
x as MoreTemplatesSection
|
|
32
33
|
};
|