@npm_leadtech/legal-contracts-ui 0.129.6 → 0.129.7
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,31 +1,24 @@
|
|
|
1
|
-
import { jsx as e, jsxs as r, Fragment as
|
|
2
|
-
import { clsx as
|
|
3
|
-
import { howItWorksLawGeniusCtaLinkClassName as
|
|
4
|
-
import { HeroImageShell as
|
|
5
|
-
import { RatafiaSection as
|
|
6
|
-
import { LawGeniusStepCard as
|
|
7
|
-
import { ResourcesImageShell as
|
|
8
|
-
import { StepImageShell as
|
|
9
|
-
import {
|
|
1
|
+
import { jsx as e, jsxs as r, Fragment as w } from "react/jsx-runtime";
|
|
2
|
+
import { clsx as h } from "clsx";
|
|
3
|
+
import { howItWorksLawGeniusCtaLinkClassName as N, howItWorksHeroCtaLinkClassName as b, howItWorksLawGeniusBelowStepsMarkdownClassName as k, howItWorksResourcesSupportBodyClassName as y, howItWorksResourcesCtaLinkClassName as C } from "./HowItWorksTemplateTokens.js";
|
|
4
|
+
import { HeroImageShell as v } from "./HeroImageShell.js";
|
|
5
|
+
import { RatafiaSection as S } from "./RatafiaSection.js";
|
|
6
|
+
import { LawGeniusStepCard as M } from "./LawGeniusStepCard.js";
|
|
7
|
+
import { ResourcesImageShell as I } from "./ResourcesImageShell.js";
|
|
8
|
+
import { StepImageShell as W } from "./StepImageShell.js";
|
|
9
|
+
import { LinkWrapper as L } from "./LinkWrapper.js";
|
|
10
10
|
import { IntroSection as B } from "./IntroSection.js";
|
|
11
11
|
import { Markdown as m } from "./Markdown.js";
|
|
12
|
-
import { TwoColumnSection as
|
|
13
|
-
|
|
12
|
+
import { TwoColumnSection as o } from "./TwoColumnSection.js";
|
|
13
|
+
import { Button as j } from "./Button.js";
|
|
14
|
+
const A = (l) => {
|
|
14
15
|
const i = /* @__PURE__ */ r("div", { className: "w-full min-w-0 space-y-6 text-neutral-800 md:shrink md:grow-0 md:basis-1/2", children: [
|
|
15
16
|
/* @__PURE__ */ e("h2", { className: "text-super-large font-bold text-neutral-800", children: l.title }),
|
|
16
17
|
/* @__PURE__ */ e("div", { className: "text-medium space-y-3 text-neutral-800", children: /* @__PURE__ */ e(m, { variant: "legal", content: l.bodyMarkdown }) })
|
|
17
|
-
] }), a = /* @__PURE__ */ e("div", { className: "w-full min-w-0 md:shrink md:grow-0 md:basis-1/2", children: /* @__PURE__ */ e(
|
|
18
|
+
] }), a = /* @__PURE__ */ e("div", { className: "w-full min-w-0 md:shrink md:grow-0 md:basis-1/2", children: /* @__PURE__ */ e(W, { src: l.imageUrl, alt: l.imageAlt }) });
|
|
18
19
|
return { firstColumn: i, secondColumn: a };
|
|
19
|
-
},
|
|
20
|
-
const
|
|
21
|
-
o,
|
|
22
|
-
{
|
|
23
|
-
size: "small",
|
|
24
|
-
variant: "primary-green",
|
|
25
|
-
className: "text-medium inline-flex w-fit justify-center !rounded-md font-bold",
|
|
26
|
-
children: /* @__PURE__ */ e("a", { href: a.cta.href, className: b, children: a.cta.label })
|
|
27
|
-
}
|
|
28
|
-
);
|
|
20
|
+
}, J = ({ hero: l, processSteps: i, lawGenius: a, resources: n }) => {
|
|
21
|
+
const c = l.introMarkdown.trim().length > 0, d = l.closingMarkdown.trim().length > 0, p = n.supportBodyMarkdown.trim().length > 0, x = a.belowStepsMarkdown.trim().length > 0, { examples: s } = n, f = /* @__PURE__ */ e(L, { size: "default", variant: "primary-green", className: "text-medium inline-flex w-fit font-bold", children: /* @__PURE__ */ e("a", { href: a.cta.href, className: N, children: a.cta.label }) });
|
|
29
22
|
return /* @__PURE__ */ r("main", { className: "flex w-full max-w-full min-w-0 flex-1 flex-col overflow-x-clip", children: [
|
|
30
23
|
/* @__PURE__ */ e("section", { className: "bg-primary-50 lg:px-ds-10xl px-6 pt-4 pb-12", children: /* @__PURE__ */ r("div", { className: "mx-auto flex max-w-6xl flex-col gap-12", children: [
|
|
31
24
|
/* @__PURE__ */ r("div", { className: "text-center", children: [
|
|
@@ -40,15 +33,15 @@ const L = (l) => {
|
|
|
40
33
|
{
|
|
41
34
|
className: "bg-transparent",
|
|
42
35
|
containerClassName: "w-full !max-w-none !flex-col gap-10 !px-0 !py-0 md:!flex-row md:!gap-8 md:items-stretch lg:!gap-16",
|
|
43
|
-
image: /* @__PURE__ */ e(
|
|
36
|
+
image: /* @__PURE__ */ e(v, { src: l.imageUrl, alt: l.imageAlt, priority: l.imagePriority }),
|
|
44
37
|
cta: {
|
|
45
38
|
size: "default",
|
|
46
39
|
variant: "primary-green",
|
|
47
40
|
className: "text-medium mt-8 w-full justify-center font-bold md:w-fit md:justify-start",
|
|
48
|
-
children: /* @__PURE__ */ e("a", { href: l.cta.href, className:
|
|
41
|
+
children: /* @__PURE__ */ e("a", { href: l.cta.href, className: b, children: l.cta.label })
|
|
49
42
|
},
|
|
50
43
|
children: /* @__PURE__ */ r("div", { className: "text-medium space-y-4 [&_ul]:my-8 [&_ul]:list-disc [&_ul]:pl-[1.2rem]", children: [
|
|
51
|
-
|
|
44
|
+
c && /* @__PURE__ */ e(m, { variant: "legal", content: l.introMarkdown }),
|
|
52
45
|
/* @__PURE__ */ e("ul", { className: "text-medium space-y-3", children: l.bullets.map((t) => /* @__PURE__ */ r("li", { className: "flex items-start gap-2", children: [
|
|
53
46
|
/* @__PURE__ */ e("span", { className: "bg-primary-600 mt-1 h-2.5 w-2.5", "aria-hidden": !0 }),
|
|
54
47
|
/* @__PURE__ */ r("span", { children: [
|
|
@@ -59,35 +52,35 @@ const L = (l) => {
|
|
|
59
52
|
t.text
|
|
60
53
|
] })
|
|
61
54
|
] }, t.id)) }),
|
|
62
|
-
|
|
55
|
+
d && /* @__PURE__ */ e(m, { variant: "legal", content: l.closingMarkdown })
|
|
63
56
|
] })
|
|
64
57
|
}
|
|
65
58
|
)
|
|
66
59
|
] }) }),
|
|
67
60
|
i.map((t) => {
|
|
68
|
-
const { firstColumn:
|
|
61
|
+
const { firstColumn: u, secondColumn: g } = A(t);
|
|
69
62
|
return /* @__PURE__ */ e(
|
|
70
|
-
|
|
63
|
+
o,
|
|
71
64
|
{
|
|
72
65
|
className: `${t.background} lg:px-ds-10xl px-6 py-12`,
|
|
73
|
-
containerClassName:
|
|
66
|
+
containerClassName: h(
|
|
74
67
|
"!mx-auto !w-full !max-w-6xl !px-0 !py-0 !gap-8 md:items-center lg:!gap-20",
|
|
75
68
|
t.imageFirstOnMobile ? "!flex-col md:!flex-row" : "!flex-col-reverse md:!flex-row",
|
|
76
69
|
t.reverse && "md:!flex-row-reverse"
|
|
77
70
|
),
|
|
78
|
-
firstColumn:
|
|
79
|
-
secondColumn:
|
|
71
|
+
firstColumn: u,
|
|
72
|
+
secondColumn: g
|
|
80
73
|
},
|
|
81
74
|
t.id
|
|
82
75
|
);
|
|
83
76
|
}),
|
|
84
77
|
/* @__PURE__ */ e(
|
|
85
|
-
|
|
78
|
+
S,
|
|
86
79
|
{
|
|
87
80
|
title: a.title,
|
|
88
81
|
content: a.contentMarkdown,
|
|
89
|
-
stepsSlot: /* @__PURE__ */ e(
|
|
90
|
-
|
|
82
|
+
stepsSlot: /* @__PURE__ */ e(w, { children: a.steps.map((t) => /* @__PURE__ */ e(
|
|
83
|
+
M,
|
|
91
84
|
{
|
|
92
85
|
title: t.title,
|
|
93
86
|
descriptionMarkdown: t.descriptionMarkdown,
|
|
@@ -96,42 +89,42 @@ const L = (l) => {
|
|
|
96
89
|
},
|
|
97
90
|
t.id
|
|
98
91
|
)) }),
|
|
99
|
-
belowStepsSlot:
|
|
92
|
+
belowStepsSlot: x ? /* @__PURE__ */ e(
|
|
100
93
|
m,
|
|
101
94
|
{
|
|
102
95
|
variant: "ratafia",
|
|
103
96
|
content: a.belowStepsMarkdown,
|
|
104
|
-
className:
|
|
97
|
+
className: k
|
|
105
98
|
}
|
|
106
99
|
) : null,
|
|
107
|
-
cta:
|
|
100
|
+
cta: f,
|
|
108
101
|
skipCtaWrapper: !0,
|
|
109
102
|
image: a.image,
|
|
110
103
|
sectionClassName: a.sectionClassName ?? "bg-primary-50 px-6 py-12 lg:px-ds-10xl"
|
|
111
104
|
}
|
|
112
105
|
),
|
|
113
106
|
/* @__PURE__ */ e(
|
|
114
|
-
|
|
107
|
+
o,
|
|
115
108
|
{
|
|
116
109
|
className: "lg:px-ds-10xl bg-white px-6 pt-12 pb-14",
|
|
117
110
|
containerClassName: "!mx-auto !w-full !max-w-6xl !flex-col !items-start !gap-8 !px-0 !py-0 md:!flex-row md:!items-center lg:!gap-20",
|
|
118
|
-
firstColumn: /* @__PURE__ */ e("div", { className: "w-full min-w-0 md:shrink md:grow-0 md:basis-1/2", children: /* @__PURE__ */ e(
|
|
111
|
+
firstColumn: /* @__PURE__ */ e("div", { className: "w-full min-w-0 md:shrink md:grow-0 md:basis-1/2", children: /* @__PURE__ */ e(I, { src: n.imageUrl, alt: n.imageAlt }) }),
|
|
119
112
|
secondColumn: /* @__PURE__ */ r("div", { className: "w-full min-w-0 space-y-6 md:shrink md:grow-0 md:basis-1/2", children: [
|
|
120
113
|
s.eyebrow && /* @__PURE__ */ e("p", { className: "text-xs font-semibold tracking-[0.2em] text-neutral-500 uppercase", children: s.eyebrow }),
|
|
121
114
|
s.title && /* @__PURE__ */ e("h3", { className: "text-super-large font-bold text-neutral-800", children: s.title }),
|
|
122
|
-
|
|
115
|
+
p && /* @__PURE__ */ e("div", { className: `text-medium space-y-3 text-neutral-800 ${y}`, children: /* @__PURE__ */ e(m, { variant: "legal", content: n.supportBodyMarkdown }) }),
|
|
123
116
|
s.rows.length > 0 && /* @__PURE__ */ e("dl", { className: "text-medium space-y-2 text-neutral-800", children: s.rows.map((t) => /* @__PURE__ */ r("div", { className: "flex flex-wrap gap-x-2", children: [
|
|
124
117
|
/* @__PURE__ */ e("dt", { className: "font-semibold", children: t.label }),
|
|
125
118
|
/* @__PURE__ */ e("dd", { children: t.value })
|
|
126
119
|
] }, `${t.label}-${t.value}`)) }),
|
|
127
120
|
s.footer && /* @__PURE__ */ e("p", { className: "text-medium text-neutral-600", children: s.footer }),
|
|
128
121
|
/* @__PURE__ */ e(
|
|
129
|
-
|
|
122
|
+
j,
|
|
130
123
|
{
|
|
131
124
|
size: "small",
|
|
132
125
|
variant: "primary-green",
|
|
133
126
|
className: "text-medium inline-flex w-auto justify-center font-bold",
|
|
134
|
-
children: /* @__PURE__ */ e("a", { href: n.cta.href, className:
|
|
127
|
+
children: /* @__PURE__ */ e("a", { href: n.cta.href, className: C, children: n.cta.label })
|
|
135
128
|
}
|
|
136
129
|
)
|
|
137
130
|
] })
|
|
@@ -140,5 +133,5 @@ const L = (l) => {
|
|
|
140
133
|
] });
|
|
141
134
|
};
|
|
142
135
|
export {
|
|
143
|
-
|
|
136
|
+
J as HowItWorksTemplate
|
|
144
137
|
};
|