@npm_leadtech/legal-contracts-ui 0.129.0 → 0.129.2
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/Blockquote.js +9 -9
- package/dist/components/ContactFormSection.d.ts +1 -1
- package/dist/components/ContactUsTemplate.d.ts +1 -1
- package/dist/components/HowItWorksLawGeniusSection.js +8 -8
- package/dist/components/HowItWorksTemplate.d.ts +2 -2
- package/dist/components/HowItWorksTemplate.js +50 -50
- package/dist/components/HowItWorksTemplateTokens.d.ts +1 -3
- package/dist/components/HowItWorksTemplateTokens.js +4 -4
- package/dist/components/IntroSection.js +13 -12
- package/dist/components/LawGeniusImageShell.js +4 -4
- package/dist/components/Modal.d.ts +1 -2
- package/dist/components/Modal.js +13 -13
- package/dist/components/OrderedList.js +9 -9
- package/dist/components/RatafiaSection.js +48 -38
- package/dist/components/TwoColumnSection.js +10 -10
- package/dist/components/index.d.ts +1345 -0
- package/dist/globals.css +1 -1
- package/package.json +1 -1
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import
|
|
3
|
-
const
|
|
1
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import l from "clsx";
|
|
3
|
+
const b = ({ children: r, variant: e = "default" }) => {
|
|
4
4
|
const t = {
|
|
5
|
-
default: "
|
|
6
|
-
"about-us": "
|
|
7
|
-
unsubscribe: "
|
|
8
|
-
},
|
|
9
|
-
return /* @__PURE__ */
|
|
5
|
+
default: "border-l-4 border-gray-300 pl-4 text-gray-700 ",
|
|
6
|
+
"about-us": "text-gray-700 bg-neutral-25 pt-4 px-4 pb-0.5",
|
|
7
|
+
unsubscribe: "border-l-4 border-neutral-300 pl-4 text-neutral-700 "
|
|
8
|
+
}, a = t[e] ?? t.default;
|
|
9
|
+
return /* @__PURE__ */ o("blockquote", { className: l("my-4 italic", a), children: r });
|
|
10
10
|
};
|
|
11
11
|
export {
|
|
12
|
-
|
|
12
|
+
b as Blockquote
|
|
13
13
|
};
|
|
@@ -4,25 +4,25 @@ import { LawGeniusImageShell as p } from "./LawGeniusImageShell.js";
|
|
|
4
4
|
import { Markdown as t } from "./Markdown.js";
|
|
5
5
|
const v = ({
|
|
6
6
|
sectionTitle: s,
|
|
7
|
-
contentMarkdown:
|
|
7
|
+
contentMarkdown: r,
|
|
8
8
|
descriptionMarkdown: a,
|
|
9
|
-
steps:
|
|
9
|
+
steps: m,
|
|
10
10
|
belowStepsMarkdown: i,
|
|
11
11
|
cta: n,
|
|
12
12
|
imageUrl: c,
|
|
13
13
|
imageAlt: x
|
|
14
14
|
}) => {
|
|
15
|
-
const
|
|
16
|
-
return /* @__PURE__ */ e("section", { className: "bg-neutral-25 lg:px-ds-10xl px-6 pt-16 pb-12 sm:px-10", children: /* @__PURE__ */ e("div", { className: "bg-
|
|
15
|
+
const d = a.trim().length > 0, o = i.trim().length > 0;
|
|
16
|
+
return /* @__PURE__ */ e("section", { className: "bg-neutral-25 lg:px-ds-10xl px-6 pt-16 pb-12 sm:px-10", children: /* @__PURE__ */ e("div", { className: "bg-ratafia mx-auto w-full max-w-6xl rounded-3xl px-8 pt-16 pb-8 text-white shadow-[0_25px_80px_rgba(3,42,56,0.35)] sm:px-10 sm:pt-16 sm:pb-10", children: /* @__PURE__ */ l("div", { className: "flex w-full flex-col gap-8 lg:gap-10", children: [
|
|
17
17
|
/* @__PURE__ */ l("div", { className: "flex flex-col gap-4 text-center text-white", children: [
|
|
18
18
|
/* @__PURE__ */ e("h2", { className: "lg:text-super-large text-3xl font-bold lg:leading-tight", children: s }),
|
|
19
|
-
/* @__PURE__ */ e("div", { className: "[&_p]:text-medium [&_p]:text-white/80 [&_p:last-child]:mb-0", children: /* @__PURE__ */ e(t, { variant: "ratafia", content:
|
|
20
|
-
|
|
19
|
+
/* @__PURE__ */ e("div", { className: "[&_p]:text-medium [&_p]:text-white/80 [&_p:last-child]:mb-0", children: /* @__PURE__ */ e(t, { variant: "ratafia", content: r }) }),
|
|
20
|
+
d && /* @__PURE__ */ e("div", { className: "[&_p]:text-medium [&_p]:text-white/80 [&_p:last-child]:mb-0", children: /* @__PURE__ */ e(t, { variant: "ratafia", content: a }) })
|
|
21
21
|
] }),
|
|
22
22
|
/* @__PURE__ */ l("div", { className: "flex w-full flex-col gap-8 lg:grid lg:grid-cols-[minmax(0,1fr)_minmax(0,1.05fr)] lg:items-stretch lg:gap-10", children: [
|
|
23
23
|
/* @__PURE__ */ l("div", { className: "flex min-h-0 flex-col gap-6", children: [
|
|
24
|
-
|
|
25
|
-
|
|
24
|
+
m,
|
|
25
|
+
o && /* @__PURE__ */ e(
|
|
26
26
|
t,
|
|
27
27
|
{
|
|
28
28
|
variant: "ratafia",
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
2
3
|
|
|
3
4
|
export declare type HowItWorksExamplesProps = {
|
|
4
5
|
eyebrow: string;
|
|
@@ -58,8 +59,7 @@ export declare interface HowItWorksTemplateProps {
|
|
|
58
59
|
contentMarkdown: string;
|
|
59
60
|
steps: HowItWorksLawGeniusStep[];
|
|
60
61
|
belowStepsMarkdown: string;
|
|
61
|
-
|
|
62
|
-
imageAlt: string;
|
|
62
|
+
image: ReactNode;
|
|
63
63
|
cta: {
|
|
64
64
|
href: string;
|
|
65
65
|
label: string;
|
|
@@ -1,46 +1,45 @@
|
|
|
1
|
-
import { jsx as e, jsxs as r, Fragment as
|
|
1
|
+
import { jsx as e, jsxs as r, Fragment as h } from "react/jsx-runtime";
|
|
2
2
|
import { clsx as N } from "clsx";
|
|
3
3
|
import { howItWorksLawGeniusCtaLinkClassName as b, howItWorksHeroCtaLinkClassName as k, howItWorksLawGeniusBelowStepsMarkdownClassName as y, howItWorksResourcesSupportBodyClassName as C, howItWorksResourcesCtaLinkClassName as v } from "./HowItWorksTemplateTokens.js";
|
|
4
4
|
import { HeroImageShell as S } from "./HeroImageShell.js";
|
|
5
5
|
import { RatafiaSection as M } from "./RatafiaSection.js";
|
|
6
6
|
import { LawGeniusStepCard as I } from "./LawGeniusStepCard.js";
|
|
7
|
-
import { ResourcesImageShell as
|
|
8
|
-
import { StepImageShell as
|
|
7
|
+
import { ResourcesImageShell as W } from "./ResourcesImageShell.js";
|
|
8
|
+
import { StepImageShell as B } from "./StepImageShell.js";
|
|
9
9
|
import { Button as o } from "./Button.js";
|
|
10
|
-
import { IntroSection as
|
|
11
|
-
import { Markdown as
|
|
10
|
+
import { IntroSection as L } from "./IntroSection.js";
|
|
11
|
+
import { Markdown as m } from "./Markdown.js";
|
|
12
12
|
import { TwoColumnSection as c } from "./TwoColumnSection.js";
|
|
13
|
-
|
|
14
|
-
const
|
|
15
|
-
|
|
16
|
-
/* @__PURE__ */ e("
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
const d = t.introMarkdown.trim().length > 0, p = t.closingMarkdown.trim().length > 0, x = s.supportBodyMarkdown.trim().length > 0, g = a.belowStepsMarkdown.trim().length > 0, { examples: n } = s, f = /* @__PURE__ */ e(
|
|
13
|
+
const j = (t) => {
|
|
14
|
+
const i = /* @__PURE__ */ r("div", { className: "w-full min-w-0 space-y-4 text-neutral-800 md:shrink md:grow-0 md:basis-1/2", children: [
|
|
15
|
+
/* @__PURE__ */ e("h2", { className: "font-lora text-super-large font-bold text-neutral-800", children: t.title }),
|
|
16
|
+
/* @__PURE__ */ e("div", { className: "text-small space-y-3 text-neutral-700", children: /* @__PURE__ */ e(m, { variant: "legal", content: t.bodyMarkdown }) })
|
|
17
|
+
] }), a = /* @__PURE__ */ e("div", { className: "w-full min-w-0 md:shrink md:grow-0 md:basis-1/2", children: /* @__PURE__ */ e(B, { src: t.imageUrl, alt: t.imageAlt }) });
|
|
18
|
+
return { firstColumn: i, secondColumn: a };
|
|
19
|
+
}, D = ({ hero: t, processSteps: i, lawGenius: a, resources: n }) => {
|
|
20
|
+
const d = t.introMarkdown.trim().length > 0, p = t.closingMarkdown.trim().length > 0, x = n.supportBodyMarkdown.trim().length > 0, f = a.belowStepsMarkdown.trim().length > 0, { examples: s } = n, u = /* @__PURE__ */ e(
|
|
22
21
|
o,
|
|
23
22
|
{
|
|
24
|
-
size: "
|
|
23
|
+
size: "small",
|
|
25
24
|
variant: "primary-green",
|
|
26
|
-
className: "text-
|
|
25
|
+
className: "text-small inline-flex w-fit justify-center !rounded-md font-bold",
|
|
27
26
|
children: /* @__PURE__ */ e("a", { href: a.cta.href, className: b, children: a.cta.label })
|
|
28
27
|
}
|
|
29
28
|
);
|
|
30
|
-
return /* @__PURE__ */ r("main", { className: "flex w-full max-w-full min-w-0 flex-1 flex-col", children: [
|
|
31
|
-
/* @__PURE__ */ e("section", { className: "bg-primary-50
|
|
29
|
+
return /* @__PURE__ */ r("main", { className: "flex w-full max-w-full min-w-0 flex-1 flex-col overflow-x-clip", children: [
|
|
30
|
+
/* @__PURE__ */ e("section", { className: "bg-primary-50 md: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: [
|
|
32
31
|
/* @__PURE__ */ r("div", { className: "text-center", children: [
|
|
33
|
-
/* @__PURE__ */ r("div", { className: "mx-auto
|
|
34
|
-
/* @__PURE__ */ e("p", { className: "text-small font-semibold tracking-[0.3em]
|
|
35
|
-
/* @__PURE__ */ e("span", { className: "
|
|
32
|
+
/* @__PURE__ */ r("div", { className: "mx-auto flex w-full max-w-full flex-col items-center gap-2", children: [
|
|
33
|
+
/* @__PURE__ */ e("p", { className: "text-small text-center font-semibold tracking-[0.3em] text-neutral-600 uppercase", children: t.eyebrow }),
|
|
34
|
+
/* @__PURE__ */ e("span", { className: "max-w-ds-10xl min-w-ds-7xl h-px w-full shrink-0 bg-neutral-400", "aria-hidden": !0 })
|
|
36
35
|
] }),
|
|
37
|
-
/* @__PURE__ */ e("h1", { className: "font-lora mx-auto mt-12 max-w-
|
|
36
|
+
/* @__PURE__ */ e("h1", { className: "font-lora mx-auto mt-12 max-w-3xl text-4xl leading-tight font-bold tracking-tight text-neutral-800 md:text-5xl md:leading-tight", children: t.title })
|
|
38
37
|
] }),
|
|
39
38
|
/* @__PURE__ */ e(
|
|
40
|
-
|
|
39
|
+
L,
|
|
41
40
|
{
|
|
42
41
|
className: "bg-transparent",
|
|
43
|
-
containerClassName: "w-full !max-w-none flex-col gap-10 !px-0 !py-0
|
|
42
|
+
containerClassName: "w-full !max-w-none !flex-col gap-10 !px-0 !py-0 md:!flex-row md:items-stretch",
|
|
44
43
|
image: /* @__PURE__ */ e(S, { src: t.imageUrl, alt: t.imageAlt, priority: t.imagePriority }),
|
|
45
44
|
cta: {
|
|
46
45
|
size: "large",
|
|
@@ -49,7 +48,7 @@ const U = (t) => {
|
|
|
49
48
|
children: /* @__PURE__ */ e("a", { href: t.cta.href, className: k, children: t.cta.label })
|
|
50
49
|
},
|
|
51
50
|
children: /* @__PURE__ */ r("div", { className: "text-medium space-y-4 [&_ul]:my-8 [&_ul]:list-disc [&_ul]:pl-[1.2rem]", children: [
|
|
52
|
-
d && /* @__PURE__ */ e(
|
|
51
|
+
d && /* @__PURE__ */ e(m, { variant: "legal", content: t.introMarkdown }),
|
|
53
52
|
/* @__PURE__ */ e("ul", { className: "text-medium space-y-3", children: t.bullets.map((l) => /* @__PURE__ */ r("li", { className: "flex items-start gap-2", children: [
|
|
54
53
|
/* @__PURE__ */ e("span", { className: "bg-primary-600 mt-1 h-2.5 w-2.5", "aria-hidden": !0 }),
|
|
55
54
|
/* @__PURE__ */ r("span", { children: [
|
|
@@ -60,23 +59,24 @@ const U = (t) => {
|
|
|
60
59
|
l.text
|
|
61
60
|
] })
|
|
62
61
|
] }, l.id)) }),
|
|
63
|
-
p && /* @__PURE__ */ e(
|
|
62
|
+
p && /* @__PURE__ */ e(m, { variant: "legal", content: t.closingMarkdown })
|
|
64
63
|
] })
|
|
65
64
|
}
|
|
66
65
|
)
|
|
67
66
|
] }) }),
|
|
68
|
-
|
|
69
|
-
const { firstColumn:
|
|
67
|
+
i.map((l) => {
|
|
68
|
+
const { firstColumn: g, secondColumn: w } = j(l);
|
|
70
69
|
return /* @__PURE__ */ e(
|
|
71
70
|
c,
|
|
72
71
|
{
|
|
73
|
-
className: `${l.background}
|
|
72
|
+
className: `${l.background} md:px-ds-10xl px-6 py-12`,
|
|
74
73
|
containerClassName: N(
|
|
75
|
-
"!mx-auto !w-full !max-w-6xl !px-0 !py-0 !gap-8 md:!gap-10
|
|
76
|
-
l.imageFirstOnMobile ? "!flex-col
|
|
74
|
+
"!mx-auto !w-full !max-w-6xl !px-0 !py-0 !gap-8 md:!gap-10 md:items-start",
|
|
75
|
+
l.imageFirstOnMobile ? "!flex-col md:!flex-row" : "!flex-col-reverse md:!flex-row",
|
|
76
|
+
l.reverse && "md:!flex-row-reverse"
|
|
77
77
|
),
|
|
78
|
-
firstColumn:
|
|
79
|
-
secondColumn:
|
|
78
|
+
firstColumn: g,
|
|
79
|
+
secondColumn: w
|
|
80
80
|
},
|
|
81
81
|
l.id
|
|
82
82
|
);
|
|
@@ -86,7 +86,7 @@ const U = (t) => {
|
|
|
86
86
|
{
|
|
87
87
|
title: a.title,
|
|
88
88
|
content: a.contentMarkdown,
|
|
89
|
-
stepsSlot: /* @__PURE__ */ e(
|
|
89
|
+
stepsSlot: /* @__PURE__ */ e(h, { children: a.steps.map((l) => /* @__PURE__ */ e(
|
|
90
90
|
I,
|
|
91
91
|
{
|
|
92
92
|
title: l.title,
|
|
@@ -96,42 +96,42 @@ const U = (t) => {
|
|
|
96
96
|
},
|
|
97
97
|
l.id
|
|
98
98
|
)) }),
|
|
99
|
-
belowStepsSlot:
|
|
100
|
-
|
|
99
|
+
belowStepsSlot: f ? /* @__PURE__ */ e(
|
|
100
|
+
m,
|
|
101
101
|
{
|
|
102
102
|
variant: "ratafia",
|
|
103
103
|
content: a.belowStepsMarkdown,
|
|
104
104
|
className: y
|
|
105
105
|
}
|
|
106
106
|
) : null,
|
|
107
|
-
cta:
|
|
107
|
+
cta: u,
|
|
108
108
|
skipCtaWrapper: !0,
|
|
109
|
-
image:
|
|
110
|
-
sectionClassName: a.sectionClassName ?? "bg-neutral-25 px-6 pt-16 pb-12
|
|
109
|
+
image: a.image,
|
|
110
|
+
sectionClassName: a.sectionClassName ?? "bg-neutral-25 px-6 pt-16 pb-12 md:px-ds-10xl"
|
|
111
111
|
}
|
|
112
112
|
),
|
|
113
113
|
/* @__PURE__ */ e(
|
|
114
114
|
c,
|
|
115
115
|
{
|
|
116
|
-
className: "
|
|
117
|
-
containerClassName: "!mx-auto !w-full !max-w-6xl !items-start !gap-8 !px-0 !py-0 md:!gap-10
|
|
118
|
-
firstColumn: /* @__PURE__ */ e("div", { className: "w-full min-w-0 shrink-0
|
|
119
|
-
secondColumn: /* @__PURE__ */ r("div", { className: "w-full space-y-4
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
x && /* @__PURE__ */ e("div", { className: `text-small space-y-3 text-neutral-700 ${C}`, children: /* @__PURE__ */ e(
|
|
123
|
-
|
|
116
|
+
className: "md:px-ds-10xl bg-neutral-25 px-6 py-12",
|
|
117
|
+
containerClassName: "!mx-auto !w-full !max-w-6xl !flex-col !items-start !gap-8 !px-0 !py-0 md:!gap-10 md:!flex-row md:!items-start",
|
|
118
|
+
firstColumn: /* @__PURE__ */ e("div", { className: "w-full min-w-0 md:shrink md:grow-0 md:basis-1/2", children: /* @__PURE__ */ e(W, { src: n.imageUrl, alt: n.imageAlt }) }),
|
|
119
|
+
secondColumn: /* @__PURE__ */ r("div", { className: "w-full min-w-0 space-y-4 md:shrink md:grow-0 md:basis-1/2", children: [
|
|
120
|
+
s.eyebrow && /* @__PURE__ */ e("p", { className: "text-xs font-semibold tracking-[0.2em] text-neutral-500 uppercase", children: s.eyebrow }),
|
|
121
|
+
s.title && /* @__PURE__ */ e("h3", { className: "font-lora text-super-large font-bold text-neutral-800", children: s.title }),
|
|
122
|
+
x && /* @__PURE__ */ e("div", { className: `text-small space-y-3 text-neutral-700 ${C}`, children: /* @__PURE__ */ e(m, { variant: "legal", content: n.supportBodyMarkdown }) }),
|
|
123
|
+
s.rows.length > 0 && /* @__PURE__ */ e("dl", { className: "text-small space-y-2 text-neutral-700", children: s.rows.map((l) => /* @__PURE__ */ r("div", { className: "flex flex-wrap gap-x-2", children: [
|
|
124
124
|
/* @__PURE__ */ e("dt", { className: "font-semibold", children: l.label }),
|
|
125
125
|
/* @__PURE__ */ e("dd", { children: l.value })
|
|
126
126
|
] }, `${l.label}-${l.value}`)) }),
|
|
127
|
-
|
|
127
|
+
s.footer && /* @__PURE__ */ e("p", { className: "text-small text-neutral-600", children: s.footer }),
|
|
128
128
|
/* @__PURE__ */ e(
|
|
129
129
|
o,
|
|
130
130
|
{
|
|
131
131
|
size: "small",
|
|
132
132
|
variant: "primary-green",
|
|
133
133
|
className: "text-small inline-flex w-auto justify-center font-bold",
|
|
134
|
-
children: /* @__PURE__ */ e("a", { href:
|
|
134
|
+
children: /* @__PURE__ */ e("a", { href: n.cta.href, className: v, children: n.cta.label })
|
|
135
135
|
}
|
|
136
136
|
)
|
|
137
137
|
] })
|
|
@@ -140,5 +140,5 @@ const U = (t) => {
|
|
|
140
140
|
] });
|
|
141
141
|
};
|
|
142
142
|
export {
|
|
143
|
-
|
|
143
|
+
D as HowItWorksTemplate
|
|
144
144
|
};
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/** Tailwind class strings for `next/link` / markdown in How It Works Strapi mappers (consumed by legal-contracts-web). */
|
|
2
1
|
export declare const howItWorksHeroCtaLinkClassName = "font-semibold text-white";
|
|
3
2
|
|
|
4
3
|
export declare const howItWorksLawGeniusBelowStepsMarkdownClassName = "text-medium";
|
|
@@ -7,6 +6,5 @@ export declare const howItWorksLawGeniusCtaLinkClassName = "font-semibold text-w
|
|
|
7
6
|
|
|
8
7
|
export declare const howItWorksResourcesCtaLinkClassName = "font-semibold";
|
|
9
8
|
|
|
10
|
-
|
|
11
|
-
export declare const howItWorksResourcesSupportBodyClassName = "[&_h2]:mb-8";
|
|
9
|
+
export declare const howItWorksResourcesSupportBodyClassName = "[&_h2]:font-lora [&_h2]:text-super-large [&_h2]:mx-0 [&_h2]:mb-8 [&_h2]:bg-transparent [&_h2]:px-0 [&_h2]:text-neutral-800";
|
|
12
10
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
const
|
|
1
|
+
const t = "font-semibold text-white", s = "font-semibold text-white", o = "font-semibold", e = "text-medium", a = "[&_h2]:font-lora [&_h2]:text-super-large [&_h2]:mx-0 [&_h2]:mb-8 [&_h2]:bg-transparent [&_h2]:px-0 [&_h2]:text-neutral-800";
|
|
2
2
|
export {
|
|
3
|
-
|
|
3
|
+
t as howItWorksHeroCtaLinkClassName,
|
|
4
4
|
e as howItWorksLawGeniusBelowStepsMarkdownClassName,
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
s as howItWorksLawGeniusCtaLinkClassName,
|
|
6
|
+
o as howItWorksResourcesCtaLinkClassName,
|
|
7
7
|
a as howItWorksResourcesSupportBodyClassName
|
|
8
8
|
};
|
|
@@ -1,18 +1,19 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { jsx as m, jsxs as a } from "react/jsx-runtime";
|
|
2
|
+
import { clsx as e } from "clsx";
|
|
3
|
+
import { TwoColumnSection as l } from "./TwoColumnSection.js";
|
|
4
|
+
import { LinkWrapper as t } from "./LinkWrapper.js";
|
|
5
|
+
const w = ({ image: s, children: i, cta: r, className: n, containerClassName: o }) => /* @__PURE__ */ m(
|
|
6
|
+
l,
|
|
6
7
|
{
|
|
7
|
-
className:
|
|
8
|
-
containerClassName:
|
|
9
|
-
firstColumn: /* @__PURE__ */
|
|
10
|
-
secondColumn: /* @__PURE__ */
|
|
11
|
-
|
|
12
|
-
|
|
8
|
+
className: n ?? "",
|
|
9
|
+
containerClassName: e("gap-6 md:gap-10", o),
|
|
10
|
+
firstColumn: /* @__PURE__ */ m("div", { className: "mb-4 min-h-0 w-full min-w-0 md:mb-0 md:shrink md:grow-0 md:basis-1/2", children: s }),
|
|
11
|
+
secondColumn: /* @__PURE__ */ a("div", { className: "mt-4 w-full min-w-0 md:mt-0 md:shrink md:grow-0 md:basis-1/2", children: [
|
|
12
|
+
i,
|
|
13
|
+
r && /* @__PURE__ */ m(t, { size: "large", variant: "primary-green", className: "mt-8", ...r })
|
|
13
14
|
] })
|
|
14
15
|
}
|
|
15
16
|
);
|
|
16
17
|
export {
|
|
17
|
-
|
|
18
|
+
w as IntroSection
|
|
18
19
|
};
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
-
const a = { w: 898, h: 1100 }, i = "aspect-[449/550]", n = "relative w-full max-w-md overflow-hidden rounded-lg", r =
|
|
2
|
+
const a = { w: 898, h: 1100 }, i = "aspect-[449/550]", n = "relative w-full max-w-md overflow-hidden rounded-lg", r = n, o = `${n} ${i}`, t = ({ empty: l, children: s }) => l ? /* @__PURE__ */ e("div", { className: o, "aria-hidden": !0 }) : /* @__PURE__ */ e("div", { className: r, children: s }), c = ({ src: l, alt: s }) => l ? /* @__PURE__ */ e(t, { children: /* @__PURE__ */ e(
|
|
3
3
|
"img",
|
|
4
4
|
{
|
|
5
5
|
src: l,
|
|
6
|
-
alt:
|
|
6
|
+
alt: s,
|
|
7
7
|
width: a.w,
|
|
8
8
|
height: a.h,
|
|
9
9
|
className: "h-auto w-full max-w-full object-cover",
|
|
10
10
|
loading: "lazy"
|
|
11
11
|
}
|
|
12
|
-
) }) : /* @__PURE__ */ e(
|
|
12
|
+
) }) : /* @__PURE__ */ e(t, { empty: !0 });
|
|
13
13
|
export {
|
|
14
|
-
|
|
14
|
+
c as LawGeniusImageShell
|
|
15
15
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { JSX } from 'react/jsx-runtime';
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
3
|
|
|
4
|
-
export declare const Modal: ({ trigger, children, isOpen, setIsOpen, showClose
|
|
4
|
+
export declare const Modal: ({ trigger, children, isOpen, setIsOpen, showClose }: ModalProps) => JSX.Element;
|
|
5
5
|
|
|
6
6
|
export interface ModalProps {
|
|
7
7
|
trigger?: ReactNode;
|
|
@@ -9,6 +9,5 @@ export interface ModalProps {
|
|
|
9
9
|
isOpen: boolean;
|
|
10
10
|
setIsOpen: (open: boolean) => void;
|
|
11
11
|
showClose?: boolean;
|
|
12
|
-
onTrigger?: () => void;
|
|
13
12
|
}
|
|
14
13
|
|
package/dist/components/Modal.js
CHANGED
|
@@ -1,36 +1,36 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsxs as
|
|
2
|
+
import { jsxs as t, Fragment as c, jsx as e } from "react/jsx-runtime";
|
|
3
3
|
import "react";
|
|
4
|
-
import { CloseIcon as
|
|
5
|
-
const
|
|
4
|
+
import { CloseIcon as u } from "./CloseIcon.js";
|
|
5
|
+
const p = ({ trigger: l, children: n, isOpen: r, setIsOpen: a, showClose: i }) => {
|
|
6
6
|
const o = () => {
|
|
7
|
-
|
|
7
|
+
a(!r);
|
|
8
8
|
};
|
|
9
|
-
return /* @__PURE__ */
|
|
9
|
+
return /* @__PURE__ */ t(c, { children: [
|
|
10
10
|
!!l && /* @__PURE__ */ e("button", { "aria-label": "zoom", onClick: o, className: "flex w-full cursor-pointer justify-center", children: l }),
|
|
11
|
-
|
|
11
|
+
r && /* @__PURE__ */ e(
|
|
12
12
|
"button",
|
|
13
13
|
{
|
|
14
14
|
className: "bg-primary-900/80 fixed inset-0 z-1001 flex items-center justify-center",
|
|
15
15
|
onClick: o,
|
|
16
|
-
children: /* @__PURE__ */ e("div", { className: "relative flex max-h-screen w-full items-start justify-center overflow-y-auto px-6 py-24", children: /* @__PURE__ */
|
|
16
|
+
children: /* @__PURE__ */ e("div", { className: "relative flex max-h-screen w-full items-start justify-center overflow-y-auto px-6 py-24", children: /* @__PURE__ */ t(
|
|
17
17
|
"div",
|
|
18
18
|
{
|
|
19
19
|
className: "relative",
|
|
20
|
-
onClick: (
|
|
21
|
-
|
|
20
|
+
onClick: (s) => {
|
|
21
|
+
s.stopPropagation();
|
|
22
22
|
},
|
|
23
23
|
children: [
|
|
24
|
-
|
|
24
|
+
i && /* @__PURE__ */ e(
|
|
25
25
|
"span",
|
|
26
26
|
{
|
|
27
27
|
className: "absolute top-4 right-4 z-10 cursor-pointer rounded-full p-2 transition-colors hover:bg-neutral-100 focus:outline-none",
|
|
28
28
|
onClick: o,
|
|
29
29
|
"aria-label": "Close",
|
|
30
|
-
children: /* @__PURE__ */ e(
|
|
30
|
+
children: /* @__PURE__ */ e(u, {})
|
|
31
31
|
}
|
|
32
32
|
),
|
|
33
|
-
|
|
33
|
+
n
|
|
34
34
|
]
|
|
35
35
|
}
|
|
36
36
|
) })
|
|
@@ -39,5 +39,5 @@ const h = ({ trigger: l, children: a, isOpen: t, setIsOpen: i, showClose: s, onT
|
|
|
39
39
|
] });
|
|
40
40
|
};
|
|
41
41
|
export {
|
|
42
|
-
|
|
42
|
+
p as Modal
|
|
43
43
|
};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as l } from "react/jsx-runtime";
|
|
2
2
|
import a from "clsx";
|
|
3
|
-
const
|
|
3
|
+
const u = ({ variant: e = "default", children: s }) => {
|
|
4
4
|
const t = {
|
|
5
|
-
default: "mb-4 list-inside
|
|
6
|
-
legal: "list-outside
|
|
7
|
-
ratafia: "mb-3 list-outside
|
|
8
|
-
unsubscribe: "mb-4 w-full list-outside
|
|
9
|
-
}
|
|
10
|
-
return /* @__PURE__ */
|
|
5
|
+
default: "mb-4 list-inside space-y-2 text-gray-900",
|
|
6
|
+
legal: "mb-4 list-outside space-y-4 pl-8 text-neutral-800",
|
|
7
|
+
ratafia: "mb-3 list-outside space-y-2 pl-5 text-white/85 marker:text-white/60",
|
|
8
|
+
unsubscribe: "mb-4 w-full list-outside space-y-2 pl-10 text-neutral-800"
|
|
9
|
+
};
|
|
10
|
+
return /* @__PURE__ */ l("ol", { className: a("list-decimal", t[e] ?? t.default), children: s });
|
|
11
11
|
};
|
|
12
12
|
export {
|
|
13
|
-
|
|
13
|
+
u as OrderedList
|
|
14
14
|
};
|
|
@@ -1,45 +1,55 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as e, jsxs as l } from "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
|
-
import { clsx as
|
|
4
|
-
import { Markdown as
|
|
3
|
+
import { clsx as m } from "clsx";
|
|
4
|
+
import { Markdown as d } from "./Markdown.js";
|
|
5
5
|
import { LinkWrapper as f } from "./LinkWrapper.js";
|
|
6
|
-
const
|
|
7
|
-
title:
|
|
6
|
+
const C = ({
|
|
7
|
+
title: s,
|
|
8
8
|
content: r,
|
|
9
9
|
benefits: t = [],
|
|
10
|
-
stepsSlot:
|
|
11
|
-
belowStepsSlot:
|
|
12
|
-
cta:
|
|
13
|
-
image:
|
|
14
|
-
skipCtaWrapper:
|
|
15
|
-
sectionClassName:
|
|
16
|
-
innerClassName:
|
|
10
|
+
stepsSlot: n,
|
|
11
|
+
belowStepsSlot: h,
|
|
12
|
+
cta: i,
|
|
13
|
+
image: c,
|
|
14
|
+
skipCtaWrapper: g = !1,
|
|
15
|
+
sectionClassName: x,
|
|
16
|
+
innerClassName: o
|
|
17
17
|
}) => {
|
|
18
|
-
const
|
|
19
|
-
if (
|
|
20
|
-
const a =
|
|
21
|
-
return /* @__PURE__ */
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
18
|
+
const w = "bg-primary-50 px-6 py-10 lg:px-8 lg:py-12 xl:px-0", u = "from-primary-900 via-primary-700 to-primary-900 mx-auto flex flex-col justify-between gap-8 rounded-2xl bg-linear-to-bl p-6 text-white md:flex-row md:items-center md:gap-10 md:p-10 lg:gap-16 lg:p-16 xl:mx-auto xl:max-w-300";
|
|
19
|
+
if (n != null) {
|
|
20
|
+
const a = r.trim().length > 0, p = "[&_p]:text-medium [&_p]:text-white/80 [&_p:last-child]:mb-0", N = g ? /* @__PURE__ */ e("div", { className: "flex w-fit justify-start", children: i }) : /* @__PURE__ */ e(f, { className: "flex w-fit justify-start", children: i });
|
|
21
|
+
return /* @__PURE__ */ e(
|
|
22
|
+
"section",
|
|
23
|
+
{
|
|
24
|
+
className: m(
|
|
25
|
+
"max-w-full overflow-x-hidden",
|
|
26
|
+
x ?? "bg-neutral-25 md:px-ds-10xl px-6 pt-16 pb-12"
|
|
27
|
+
),
|
|
28
|
+
children: /* @__PURE__ */ e("div", { className: m("bg-ratafia mx-auto w-full max-w-6xl rounded-3xl px-6 pb-8 pt-16 text-white shadow-[0_25px_80px_rgba(3,42,56,0.35)] md:px-10 md:pb-10 md:pt-16", o), children: /* @__PURE__ */ l("div", { className: "flex w-full flex-col gap-8 md:gap-10", children: [
|
|
29
|
+
/* @__PURE__ */ l("div", { className: "flex flex-col gap-4 text-center text-white", children: [
|
|
30
|
+
/* @__PURE__ */ e("h2", { className: "md:text-super-large text-3xl font-bold md:leading-tight", children: s }),
|
|
31
|
+
a && /* @__PURE__ */ e("div", { className: "hidden md:block", children: /* @__PURE__ */ e(d, { content: r, className: p }) })
|
|
32
|
+
] }),
|
|
33
|
+
/* @__PURE__ */ l("div", { className: "grid w-full grid-cols-1 gap-8 min-[48.0625rem]:grid-cols-2 min-[48.0625rem]:items-stretch min-[48.0625rem]:gap-10", children: [
|
|
34
|
+
/* @__PURE__ */ e("div", { className: "relative z-10 order-1 mx-auto flex min-h-0 w-full max-w-77 shrink-0 items-center justify-center overflow-hidden rounded-lg min-[48.0625rem]:order-2 min-[48.0625rem]:mx-0 min-[48.0625rem]:max-w-none", children: c }),
|
|
35
|
+
/* @__PURE__ */ l("div", { className: "order-2 flex min-h-0 flex-col gap-6 min-[48.0625rem]:order-1", children: [
|
|
36
|
+
a && /* @__PURE__ */ e("div", { className: "text-left md:hidden", children: /* @__PURE__ */ e(d, { content: r, className: p }) }),
|
|
37
|
+
n,
|
|
38
|
+
h,
|
|
39
|
+
N
|
|
40
|
+
] })
|
|
41
|
+
] })
|
|
42
|
+
] }) })
|
|
43
|
+
}
|
|
44
|
+
);
|
|
35
45
|
}
|
|
36
|
-
return /* @__PURE__ */
|
|
37
|
-
/* @__PURE__ */
|
|
38
|
-
/* @__PURE__ */
|
|
39
|
-
/* @__PURE__ */
|
|
40
|
-
/* @__PURE__ */
|
|
46
|
+
return /* @__PURE__ */ e("section", { className: m("max-w-full overflow-x-hidden", x ?? w), children: /* @__PURE__ */ l("div", { className: m(u, o), children: [
|
|
47
|
+
/* @__PURE__ */ l("div", { className: "flex flex-col gap-8", children: [
|
|
48
|
+
/* @__PURE__ */ l("div", { className: "flex flex-col gap-4", children: [
|
|
49
|
+
/* @__PURE__ */ e("h2", { className: "text-super-large leading-tight font-bold", children: s }),
|
|
50
|
+
/* @__PURE__ */ e(d, { content: r, className: "[&_p:last-child]:mb-0" })
|
|
41
51
|
] }),
|
|
42
|
-
t.length > 0 && /* @__PURE__ */
|
|
52
|
+
t.length > 0 && /* @__PURE__ */ e("div", { className: "flex flex-wrap gap-3", children: t.map((a) => /* @__PURE__ */ l(
|
|
43
53
|
"span",
|
|
44
54
|
{
|
|
45
55
|
className: "bg-primary-50 text-small text-primary-800 flex flex-nowrap gap-1 rounded-md p-1 font-semibold",
|
|
@@ -50,11 +60,11 @@ const j = ({
|
|
|
50
60
|
},
|
|
51
61
|
a.id
|
|
52
62
|
)) }),
|
|
53
|
-
/* @__PURE__ */
|
|
63
|
+
/* @__PURE__ */ e(f, { className: "w-full md:w-fit", children: i })
|
|
54
64
|
] }),
|
|
55
|
-
/* @__PURE__ */
|
|
65
|
+
/* @__PURE__ */ e("div", { className: "mx-auto w-full max-w-77 md:mx-0 md:min-w-74", children: c })
|
|
56
66
|
] }) });
|
|
57
67
|
};
|
|
58
68
|
export {
|
|
59
|
-
|
|
69
|
+
C as RatafiaSection
|
|
60
70
|
};
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as r, jsxs as x } from "react/jsx-runtime";
|
|
2
2
|
import { clsx as c } from "clsx";
|
|
3
3
|
const t = ({
|
|
4
|
-
firstColumn:
|
|
5
|
-
secondColumn:
|
|
6
|
-
className:
|
|
7
|
-
containerClassName:
|
|
8
|
-
}) => /* @__PURE__ */
|
|
4
|
+
firstColumn: o,
|
|
5
|
+
secondColumn: e,
|
|
6
|
+
className: l,
|
|
7
|
+
containerClassName: m
|
|
8
|
+
}) => /* @__PURE__ */ r("section", { className: l ?? "", children: /* @__PURE__ */ x(
|
|
9
9
|
"div",
|
|
10
10
|
{
|
|
11
11
|
className: c(
|
|
12
|
-
"
|
|
13
|
-
|
|
12
|
+
"mx-auto flex w-full max-w-300 min-w-0 flex-col justify-center overflow-x-clip px-4 py-10 md:flex-row md:px-8",
|
|
13
|
+
m
|
|
14
14
|
),
|
|
15
15
|
children: [
|
|
16
|
-
|
|
17
|
-
|
|
16
|
+
o,
|
|
17
|
+
e
|
|
18
18
|
]
|
|
19
19
|
}
|
|
20
20
|
) });
|