@npm_leadtech/legal-contracts-ui 0.128.6 → 0.128.8
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 +33 -33
- package/dist/components/ImageWithPreview.js +10 -10
- package/dist/components/IntroSection.js +12 -13
- package/dist/components/LawGeniusImageShell.js +4 -4
- package/dist/components/Modal.d.ts +2 -1
- package/dist/components/Modal.js +13 -13
- package/dist/components/OrderedList.js +9 -9
- package/dist/components/ProductTemplate.js +20 -20
- package/dist/components/RatafiaSection.js +34 -44
- package/dist/components/TwoColumnSection.js +10 -10
- package/dist/globals.css +1 -1
- package/package.json +1 -1
- package/dist/components/index.d.ts +0 -1345
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import
|
|
3
|
-
const
|
|
1
|
+
import { jsx as l } from "react/jsx-runtime";
|
|
2
|
+
import o from "clsx";
|
|
3
|
+
const s = ({ children: r, variant: a = "default" }) => {
|
|
4
4
|
const t = {
|
|
5
|
-
default: "border-l-4 border-gray-300 pl-4 text-gray-700 ",
|
|
6
|
-
"about-us": "text-gray-700
|
|
7
|
-
unsubscribe: "border-l-4 border-neutral-300 pl-4 text-neutral-700 "
|
|
8
|
-
},
|
|
9
|
-
return /* @__PURE__ */
|
|
5
|
+
default: "my-4 border-l-4 border-gray-300 pl-4 text-gray-700 italic",
|
|
6
|
+
"about-us": "my-4 text-gray-700 italic bg-neutral-25 pt-4 px-4 pb-0.5",
|
|
7
|
+
unsubscribe: "my-4 border-l-4 border-neutral-300 pl-4 text-neutral-700 italic"
|
|
8
|
+
}, e = t[a] ?? t.default;
|
|
9
|
+
return /* @__PURE__ */ l("blockquote", { className: o("my-4 italic", e), children: r });
|
|
10
10
|
};
|
|
11
11
|
export {
|
|
12
|
-
|
|
12
|
+
s 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: m,
|
|
8
8
|
descriptionMarkdown: a,
|
|
9
|
-
steps:
|
|
9
|
+
steps: r,
|
|
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 o = a.trim().length > 0, d = 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-law-genius-section 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: m }) }),
|
|
20
|
+
o && /* @__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
|
+
r,
|
|
25
|
+
d && /* @__PURE__ */ e(
|
|
26
26
|
t,
|
|
27
27
|
{
|
|
28
28
|
variant: "ratafia",
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
|
-
import { ReactNode } from 'react';
|
|
3
2
|
|
|
4
3
|
export declare type HowItWorksExamplesProps = {
|
|
5
4
|
eyebrow: string;
|
|
@@ -59,7 +58,8 @@ export declare interface HowItWorksTemplateProps {
|
|
|
59
58
|
contentMarkdown: string;
|
|
60
59
|
steps: HowItWorksLawGeniusStep[];
|
|
61
60
|
belowStepsMarkdown: string;
|
|
62
|
-
|
|
61
|
+
imageUrl: string | null;
|
|
62
|
+
imageAlt: string;
|
|
63
63
|
cta: {
|
|
64
64
|
href: string;
|
|
65
65
|
label: string;
|
|
@@ -1,45 +1,46 @@
|
|
|
1
|
-
import { jsx as e, jsxs as r, Fragment as
|
|
1
|
+
import { jsx as e, jsxs as r, Fragment as w } 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 L } from "./ResourcesImageShell.js";
|
|
8
|
+
import { StepImageShell as W } from "./StepImageShell.js";
|
|
9
9
|
import { Button as o } from "./Button.js";
|
|
10
|
-
import { IntroSection as
|
|
10
|
+
import { IntroSection as A } from "./IntroSection.js";
|
|
11
11
|
import { Markdown as i } from "./Markdown.js";
|
|
12
12
|
import { TwoColumnSection as c } from "./TwoColumnSection.js";
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
import { LawGeniusImageShell as B } from "./LawGeniusImageShell.js";
|
|
14
|
+
const U = (t) => {
|
|
15
|
+
const m = /* @__PURE__ */ r("div", { className: "min-w-0 space-y-4 text-neutral-800 lg:basis-[47%]", children: [
|
|
15
16
|
/* @__PURE__ */ e("h2", { className: "font-lora text-[2.05rem] leading-[1.15] font-bold text-neutral-800", children: t.title }),
|
|
16
17
|
/* @__PURE__ */ e("div", { className: "text-small space-y-3 text-neutral-700", children: /* @__PURE__ */ e(i, { variant: "legal", content: t.bodyMarkdown }) })
|
|
17
|
-
] }), a = /* @__PURE__ */ e("div", { className: "w-full
|
|
18
|
-
return { firstColumn: m, secondColumn: a };
|
|
19
|
-
},
|
|
20
|
-
const d = t.introMarkdown.trim().length > 0, p = t.closingMarkdown.trim().length > 0, x =
|
|
18
|
+
] }), a = /* @__PURE__ */ e("div", { className: "w-full shrink-0 lg:w-1/2 lg:max-w-[50%]", children: /* @__PURE__ */ e(W, { src: t.imageUrl, alt: t.imageAlt }) });
|
|
19
|
+
return t.reverse ? { firstColumn: a, secondColumn: m } : { firstColumn: m, secondColumn: a };
|
|
20
|
+
}, J = ({ hero: t, processSteps: m, lawGenius: a, resources: s }) => {
|
|
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(
|
|
21
22
|
o,
|
|
22
23
|
{
|
|
23
|
-
size: "
|
|
24
|
+
size: "large",
|
|
24
25
|
variant: "primary-green",
|
|
25
|
-
className: "text-
|
|
26
|
+
className: "text-medium w-full justify-center !rounded-md font-bold lg:w-auto",
|
|
26
27
|
children: /* @__PURE__ */ e("a", { href: a.cta.href, className: b, children: a.cta.label })
|
|
27
28
|
}
|
|
28
29
|
);
|
|
29
|
-
return /* @__PURE__ */ r("main", { className: "flex w-full max-w-full min-w-0 flex-1 flex-col
|
|
30
|
+
return /* @__PURE__ */ r("main", { className: "flex w-full max-w-full min-w-0 flex-1 flex-col", children: [
|
|
30
31
|
/* @__PURE__ */ e("section", { className: "bg-primary-50 lg:px-ds-10xl px-6 pt-4 pb-12 sm:px-10", children: /* @__PURE__ */ r("div", { className: "mx-auto flex max-w-6xl flex-col gap-12", children: [
|
|
31
32
|
/* @__PURE__ */ r("div", { className: "text-center", children: [
|
|
32
|
-
/* @__PURE__ */ r("div", { className: "mx-auto flex
|
|
33
|
-
/* @__PURE__ */ e("p", { className: "text-small
|
|
33
|
+
/* @__PURE__ */ r("div", { className: "mx-auto inline-flex max-w-full flex-col items-center gap-2", children: [
|
|
34
|
+
/* @__PURE__ */ e("p", { className: "text-small font-semibold tracking-[0.3em] whitespace-nowrap text-neutral-600 uppercase", children: t.eyebrow }),
|
|
34
35
|
/* @__PURE__ */ e("span", { className: "h-px w-full max-w-[7.5rem] min-w-[5.5rem] shrink-0 bg-neutral-400", "aria-hidden": !0 })
|
|
35
36
|
] }),
|
|
36
37
|
/* @__PURE__ */ e("h1", { className: "font-lora mx-auto mt-12 max-w-[48rem] text-4xl leading-tight font-bold tracking-tight text-neutral-800 sm:text-5xl sm:leading-tight", children: t.title })
|
|
37
38
|
] }),
|
|
38
39
|
/* @__PURE__ */ e(
|
|
39
|
-
|
|
40
|
+
A,
|
|
40
41
|
{
|
|
41
42
|
className: "bg-transparent",
|
|
42
|
-
containerClassName: "w-full !max-w-none
|
|
43
|
+
containerClassName: "w-full !max-w-none flex-col gap-10 !px-0 !py-0 lg:flex-row lg:items-stretch",
|
|
43
44
|
image: /* @__PURE__ */ e(S, { src: t.imageUrl, alt: t.imageAlt, priority: t.imagePriority }),
|
|
44
45
|
cta: {
|
|
45
46
|
size: "large",
|
|
@@ -65,18 +66,17 @@ const j = (t) => {
|
|
|
65
66
|
)
|
|
66
67
|
] }) }),
|
|
67
68
|
m.map((l) => {
|
|
68
|
-
const { firstColumn: u, secondColumn:
|
|
69
|
+
const { firstColumn: u, secondColumn: h } = U(l);
|
|
69
70
|
return /* @__PURE__ */ e(
|
|
70
71
|
c,
|
|
71
72
|
{
|
|
72
73
|
className: `${l.background} lg:px-ds-10xl px-6 py-12 sm:px-10`,
|
|
73
74
|
containerClassName: N(
|
|
74
75
|
"!mx-auto !w-full !max-w-6xl !px-0 !py-0 !gap-8 md:!gap-10 lg:items-start",
|
|
75
|
-
l.imageFirstOnMobile ? "!flex-col
|
|
76
|
-
l.reverse && "lg:!flex-row-reverse"
|
|
76
|
+
l.imageFirstOnMobile ? "!flex-col-reverse md:!flex-row" : "!flex-col md:!flex-row"
|
|
77
77
|
),
|
|
78
78
|
firstColumn: u,
|
|
79
|
-
secondColumn:
|
|
79
|
+
secondColumn: h
|
|
80
80
|
},
|
|
81
81
|
l.id
|
|
82
82
|
);
|
|
@@ -86,7 +86,7 @@ const j = (t) => {
|
|
|
86
86
|
{
|
|
87
87
|
title: a.title,
|
|
88
88
|
content: a.contentMarkdown,
|
|
89
|
-
stepsSlot: /* @__PURE__ */ e(
|
|
89
|
+
stepsSlot: /* @__PURE__ */ e(w, { children: a.steps.map((l) => /* @__PURE__ */ e(
|
|
90
90
|
I,
|
|
91
91
|
{
|
|
92
92
|
title: l.title,
|
|
@@ -106,7 +106,7 @@ const j = (t) => {
|
|
|
106
106
|
) : null,
|
|
107
107
|
cta: f,
|
|
108
108
|
skipCtaWrapper: !0,
|
|
109
|
-
image: a.
|
|
109
|
+
image: /* @__PURE__ */ e(B, { src: a.imageUrl, alt: a.imageAlt }),
|
|
110
110
|
sectionClassName: a.sectionClassName ?? "bg-neutral-25 px-6 pt-16 pb-12 sm:px-10 lg:px-ds-10xl"
|
|
111
111
|
}
|
|
112
112
|
),
|
|
@@ -114,24 +114,24 @@ const j = (t) => {
|
|
|
114
114
|
c,
|
|
115
115
|
{
|
|
116
116
|
className: "bg-neutral-25 lg:px-ds-10xl px-6 py-12 sm:px-10",
|
|
117
|
-
containerClassName: "!mx-auto !w-full !max-w-6xl !
|
|
118
|
-
firstColumn: /* @__PURE__ */ e("div", { className: "w-full min-w-0 shrink-0 rounded-2xl border border-neutral-100 bg-white p-4 lg:basis-[48%] lg:p-5", children: /* @__PURE__ */ e(
|
|
119
|
-
secondColumn: /* @__PURE__ */ r("div", { className: "w-full
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
x && /* @__PURE__ */ e("div", { className: `text-small space-y-3 text-neutral-700 ${C}`, children: /* @__PURE__ */ e(i, { variant: "legal", content:
|
|
123
|
-
|
|
117
|
+
containerClassName: "!mx-auto !w-full !max-w-6xl !items-start !gap-8 !px-0 !py-0 md:!gap-10 lg:!items-stretch",
|
|
118
|
+
firstColumn: /* @__PURE__ */ e("div", { className: "w-full min-w-0 shrink-0 rounded-2xl border border-neutral-100 bg-white p-4 lg:basis-[48%] lg:p-5", children: /* @__PURE__ */ e(L, { src: s.imageUrl, alt: s.imageAlt }) }),
|
|
119
|
+
secondColumn: /* @__PURE__ */ r("div", { className: "w-full space-y-4 lg:basis-[52%]", children: [
|
|
120
|
+
n.eyebrow && /* @__PURE__ */ e("p", { className: "text-xs font-semibold tracking-[0.2em] text-neutral-500 uppercase", children: n.eyebrow }),
|
|
121
|
+
n.title && /* @__PURE__ */ e("h3", { className: "font-lora text-[2rem] leading-[1.2] font-bold text-neutral-800", children: n.title }),
|
|
122
|
+
x && /* @__PURE__ */ e("div", { className: `text-small space-y-3 text-neutral-700 ${C}`, children: /* @__PURE__ */ e(i, { variant: "legal", content: s.supportBodyMarkdown }) }),
|
|
123
|
+
n.rows.length > 0 && /* @__PURE__ */ e("dl", { className: "text-small space-y-2 text-neutral-700", children: n.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
|
+
n.footer && /* @__PURE__ */ e("p", { className: "text-small text-neutral-600", children: n.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: s.cta.href, className: v, children: s.cta.label })
|
|
135
135
|
}
|
|
136
136
|
)
|
|
137
137
|
] })
|
|
@@ -140,5 +140,5 @@ const j = (t) => {
|
|
|
140
140
|
] });
|
|
141
141
|
};
|
|
142
142
|
export {
|
|
143
|
-
|
|
143
|
+
J as HowItWorksTemplate
|
|
144
144
|
};
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsxs as
|
|
3
|
-
import { useState as
|
|
2
|
+
import { jsxs as n, jsx as e } from "react/jsx-runtime";
|
|
3
|
+
import { useState as o } from "react";
|
|
4
4
|
import { ZoomIcon as c } from "./ZoomIcon.js";
|
|
5
5
|
import { Modal as m } from "./Modal.js";
|
|
6
|
-
const
|
|
7
|
-
const [
|
|
8
|
-
return /* @__PURE__ */
|
|
9
|
-
/* @__PURE__ */ e("div", { className: "h-full w-full [&_img]:h-full [&_img]:w-full [&_img]:object-cover", children:
|
|
10
|
-
/* @__PURE__ */ e("div", { className: "absolute inset-0 flex items-center justify-center", children: /* @__PURE__ */ e(m, { trigger: /* @__PURE__ */ e(c, { className: "bg-primary-700 size-8 rounded p-2 opacity-80 hover:opacity-100" }), isOpen:
|
|
11
|
-
|
|
12
|
-
}, children:
|
|
6
|
+
const v = ({ small: s, large: t, onZoomClick: r }) => {
|
|
7
|
+
const [l, a] = o(!1);
|
|
8
|
+
return /* @__PURE__ */ n("div", { className: "relative aspect-3/4 w-75 self-center overflow-hidden border border-neutral-200", children: [
|
|
9
|
+
/* @__PURE__ */ e("div", { className: "h-full w-full [&_img]:h-full [&_img]:w-full [&_img]:object-cover", children: s }),
|
|
10
|
+
/* @__PURE__ */ e("div", { className: "absolute inset-0 flex items-center justify-center", children: /* @__PURE__ */ e(m, { trigger: /* @__PURE__ */ e(c, { className: "bg-primary-700 size-8 rounded p-2 opacity-80 hover:opacity-100" }), isOpen: l, setIsOpen: (i) => {
|
|
11
|
+
a(i), i && r && r();
|
|
12
|
+
}, onTrigger: r, children: t }) })
|
|
13
13
|
] });
|
|
14
14
|
};
|
|
15
15
|
export {
|
|
16
|
-
|
|
16
|
+
v as ImageWithPreview
|
|
17
17
|
};
|
|
@@ -1,19 +1,18 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
a,
|
|
1
|
+
import { jsx as s, jsxs as n } from "react/jsx-runtime";
|
|
2
|
+
import { TwoColumnSection as e } from "./TwoColumnSection.js";
|
|
3
|
+
import { LinkWrapper as o } from "./LinkWrapper.js";
|
|
4
|
+
const c = ({ image: i, children: r, cta: m, className: a, containerClassName: l }) => /* @__PURE__ */ s(
|
|
5
|
+
e,
|
|
7
6
|
{
|
|
8
|
-
className:
|
|
9
|
-
containerClassName:
|
|
10
|
-
firstColumn: /* @__PURE__ */
|
|
11
|
-
secondColumn: /* @__PURE__ */
|
|
12
|
-
|
|
13
|
-
|
|
7
|
+
className: a ?? "",
|
|
8
|
+
containerClassName: l,
|
|
9
|
+
firstColumn: /* @__PURE__ */ s("div", { className: "mb-4 min-h-0 w-full min-w-0 shrink-0 md:mr-6 md:mb-0 md:basis-42/100 lg:mr-10 lg:basis-39/100 xl:basis-36/100", children: i }),
|
|
10
|
+
secondColumn: /* @__PURE__ */ n("div", { className: "mt-4 basis-full md:mt-0 md:basis-56/100 lg:basis-59/100 xl:basis-60/100", children: [
|
|
11
|
+
r,
|
|
12
|
+
m && /* @__PURE__ */ s(o, { size: "large", variant: "primary-green", className: "mt-8", ...m })
|
|
14
13
|
] })
|
|
15
14
|
}
|
|
16
15
|
);
|
|
17
16
|
export {
|
|
18
|
-
|
|
17
|
+
c as IntroSection
|
|
19
18
|
};
|
|
@@ -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 = n
|
|
2
|
+
const a = { w: 898, h: 1100 }, i = "aspect-[449/550]", n = "relative w-full max-w-md overflow-hidden rounded-lg", r = `${n} bg-white`, o = `${n} bg-neutral-100 ${i}`, s = ({ empty: l, children: t }) => l ? /* @__PURE__ */ e("div", { className: o, "aria-hidden": !0 }) : /* @__PURE__ */ e("div", { className: r, children: t }), h = ({ src: l, alt: t }) => l ? /* @__PURE__ */ e(s, { children: /* @__PURE__ */ e(
|
|
3
3
|
"img",
|
|
4
4
|
{
|
|
5
5
|
src: l,
|
|
6
|
-
alt:
|
|
6
|
+
alt: t,
|
|
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(s, { empty: !0 });
|
|
13
13
|
export {
|
|
14
|
-
|
|
14
|
+
h 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 }: ModalProps) => JSX.Element;
|
|
4
|
+
export declare const Modal: ({ trigger, children, isOpen, setIsOpen, showClose, onTrigger }: ModalProps) => JSX.Element;
|
|
5
5
|
|
|
6
6
|
export interface ModalProps {
|
|
7
7
|
trigger?: ReactNode;
|
|
@@ -9,5 +9,6 @@ export interface ModalProps {
|
|
|
9
9
|
isOpen: boolean;
|
|
10
10
|
setIsOpen: (open: boolean) => void;
|
|
11
11
|
showClose?: boolean;
|
|
12
|
+
onTrigger?: () => void;
|
|
12
13
|
}
|
|
13
14
|
|
package/dist/components/Modal.js
CHANGED
|
@@ -1,36 +1,36 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsxs as
|
|
2
|
+
import { jsxs as n, Fragment as u, jsx as e } from "react/jsx-runtime";
|
|
3
3
|
import "react";
|
|
4
|
-
import { CloseIcon as
|
|
5
|
-
const
|
|
4
|
+
import { CloseIcon as m } from "./CloseIcon.js";
|
|
5
|
+
const h = ({ trigger: l, children: a, isOpen: t, setIsOpen: i, showClose: s, onTrigger: r }) => {
|
|
6
6
|
const o = () => {
|
|
7
|
-
|
|
7
|
+
r && r(), i(!t);
|
|
8
8
|
};
|
|
9
|
-
return /* @__PURE__ */
|
|
9
|
+
return /* @__PURE__ */ n(u, { children: [
|
|
10
10
|
!!l && /* @__PURE__ */ e("button", { "aria-label": "zoom", onClick: o, className: "flex w-full cursor-pointer justify-center", children: l }),
|
|
11
|
-
|
|
11
|
+
t && /* @__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__ */ n(
|
|
17
17
|
"div",
|
|
18
18
|
{
|
|
19
19
|
className: "relative",
|
|
20
|
-
onClick: (
|
|
21
|
-
|
|
20
|
+
onClick: (c) => {
|
|
21
|
+
c.stopPropagation();
|
|
22
22
|
},
|
|
23
23
|
children: [
|
|
24
|
-
|
|
24
|
+
s && /* @__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(m, {})
|
|
31
31
|
}
|
|
32
32
|
),
|
|
33
|
-
|
|
33
|
+
a
|
|
34
34
|
]
|
|
35
35
|
}
|
|
36
36
|
) })
|
|
@@ -39,5 +39,5 @@ const p = ({ trigger: l, children: n, isOpen: r, setIsOpen: a, showClose: i }) =
|
|
|
39
39
|
] });
|
|
40
40
|
};
|
|
41
41
|
export {
|
|
42
|
-
|
|
42
|
+
h as Modal
|
|
43
43
|
};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as i } from "react/jsx-runtime";
|
|
2
2
|
import a from "clsx";
|
|
3
|
-
const
|
|
3
|
+
const m = ({ variant: e = "default", children: l }) => {
|
|
4
4
|
const t = {
|
|
5
|
-
default: "mb-4 list-inside
|
|
6
|
-
legal: "
|
|
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__ */
|
|
5
|
+
default: "mb-4 list-inside list-decimal text-gray-900 space-y-2",
|
|
6
|
+
legal: "list-outside list-decimal pl-8 mb-4 text-neutral-800 space-y-4",
|
|
7
|
+
ratafia: "mb-3 list-outside list-decimal space-y-2 pl-5 text-white/85 marker:text-white/60",
|
|
8
|
+
unsubscribe: "mb-4 w-full list-outside list-decimal space-y-2 pl-10 text-neutral-800"
|
|
9
|
+
}, s = t[e] ?? t.default;
|
|
10
|
+
return /* @__PURE__ */ i("ol", { className: a("mb-4 list-decimal", s), children: l });
|
|
11
11
|
};
|
|
12
12
|
export {
|
|
13
|
-
|
|
13
|
+
m as OrderedList
|
|
14
14
|
};
|
|
@@ -13,40 +13,40 @@ import { PreviewSection as C } from "./PreviewSection.js";
|
|
|
13
13
|
import { TryNowSection as F } from "./TryNowSection.js";
|
|
14
14
|
import { FreeDocumentModal as I } from "./FreeDocumentModal.js";
|
|
15
15
|
const M = ({
|
|
16
|
-
jumbotron:
|
|
16
|
+
jumbotron: n,
|
|
17
17
|
jumboDocs: r,
|
|
18
|
-
preform:
|
|
18
|
+
preform: e,
|
|
19
19
|
productInfo: f,
|
|
20
|
-
benefitsBar:
|
|
21
|
-
breadcrumb:
|
|
22
|
-
tableOfContents:
|
|
23
|
-
contentItems:
|
|
20
|
+
benefitsBar: s,
|
|
21
|
+
breadcrumb: c,
|
|
22
|
+
tableOfContents: x,
|
|
23
|
+
contentItems: l,
|
|
24
24
|
faqSection: d,
|
|
25
25
|
previewDownload: w,
|
|
26
|
-
previewSection:
|
|
27
|
-
tryNowSection:
|
|
28
|
-
freeDocModal:
|
|
29
|
-
}) => /* @__PURE__ */ o("main", { className: "min-w-0 flex-1", children: [
|
|
30
|
-
/* @__PURE__ */ m(u, { ...
|
|
26
|
+
previewSection: t,
|
|
27
|
+
tryNowSection: i,
|
|
28
|
+
freeDocModal: a
|
|
29
|
+
}) => (console.log("contentItems", l), /* @__PURE__ */ o("main", { className: "min-w-0 flex-1", children: [
|
|
30
|
+
/* @__PURE__ */ m(u, { ...n }),
|
|
31
31
|
r && /* @__PURE__ */ m(g, { ...r }),
|
|
32
|
-
|
|
32
|
+
e && /* @__PURE__ */ m(h, { ...e }),
|
|
33
33
|
/* @__PURE__ */ m(N, { ...f }),
|
|
34
|
-
/* @__PURE__ */ m(b, { ...
|
|
34
|
+
/* @__PURE__ */ m(b, { ...s }),
|
|
35
35
|
/* @__PURE__ */ m("section", { className: "px-4 pt-6 pb-10 text-neutral-800 md:px-6 lg:px-8 xl:px-30", children: /* @__PURE__ */ o("div", { className: "mx-auto flex w-full max-w-300 flex-col gap-6", children: [
|
|
36
|
-
/* @__PURE__ */ m(P, { ...
|
|
36
|
+
/* @__PURE__ */ m(P, { ...c }),
|
|
37
37
|
/* @__PURE__ */ o("div", { className: "flex w-full min-w-0 items-start md:gap-4 lg:gap-26.5 xl:gap-31", children: [
|
|
38
38
|
/* @__PURE__ */ o("div", { className: "flex w-full max-w-100 min-w-0 flex-col gap-8 lg:max-w-137.5 xl:max-w-172.5", children: [
|
|
39
|
-
/* @__PURE__ */ m(v, { ...
|
|
40
|
-
|
|
39
|
+
/* @__PURE__ */ m(v, { ...x }),
|
|
40
|
+
l.map((p) => /* @__PURE__ */ m(B, { ...p }, p.id)),
|
|
41
41
|
/* @__PURE__ */ m(T, { ...d })
|
|
42
42
|
] }),
|
|
43
43
|
/* @__PURE__ */ m("aside", { className: "sticky top-20 hidden pt-4 md:block", children: /* @__PURE__ */ m(k, { ...w }) })
|
|
44
44
|
] })
|
|
45
45
|
] }) }),
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
] });
|
|
46
|
+
t && /* @__PURE__ */ m(C, { ...t }),
|
|
47
|
+
i && /* @__PURE__ */ m(F, { ...i }),
|
|
48
|
+
a && /* @__PURE__ */ m(I, { ...a })
|
|
49
|
+
] }));
|
|
50
50
|
export {
|
|
51
51
|
M as ProductTemplate
|
|
52
52
|
};
|
|
@@ -1,55 +1,45 @@
|
|
|
1
1
|
import { jsx as l, jsxs as e } from "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
|
-
import { clsx as
|
|
4
|
-
import { Markdown as
|
|
3
|
+
import { clsx as i } from "clsx";
|
|
4
|
+
import { Markdown as o } from "./Markdown.js";
|
|
5
5
|
import { LinkWrapper as f } from "./LinkWrapper.js";
|
|
6
|
-
const
|
|
7
|
-
title:
|
|
6
|
+
const j = ({
|
|
7
|
+
title: m,
|
|
8
8
|
content: r,
|
|
9
|
-
benefits:
|
|
10
|
-
stepsSlot:
|
|
9
|
+
benefits: t = [],
|
|
10
|
+
stepsSlot: d,
|
|
11
11
|
belowStepsSlot: g,
|
|
12
|
-
cta:
|
|
13
|
-
image:
|
|
12
|
+
cta: s,
|
|
13
|
+
image: x,
|
|
14
14
|
skipCtaWrapper: h = !1,
|
|
15
|
-
sectionClassName:
|
|
16
|
-
innerClassName:
|
|
15
|
+
sectionClassName: c,
|
|
16
|
+
innerClassName: n
|
|
17
17
|
}) => {
|
|
18
|
-
const
|
|
19
|
-
if (
|
|
20
|
-
const a =
|
|
21
|
-
return /* @__PURE__ */ l(
|
|
22
|
-
"
|
|
23
|
-
|
|
24
|
-
className:
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
/* @__PURE__ */ e("div", { className: "order-2 flex min-h-0 flex-col gap-6 lg:order-1", children: [
|
|
36
|
-
a && /* @__PURE__ */ l("div", { className: "text-left lg:hidden", children: /* @__PURE__ */ l(t, { content: r, className: p }) }),
|
|
37
|
-
x,
|
|
38
|
-
g,
|
|
39
|
-
N
|
|
40
|
-
] })
|
|
41
|
-
] })
|
|
42
|
-
] }) })
|
|
43
|
-
}
|
|
44
|
-
);
|
|
18
|
+
const p = "bg-primary-50 px-6 pb-10 pt-16 lg:px-8 lg:pb-12 lg:pt-16 xl:px-0", w = "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 (d != null) {
|
|
20
|
+
const a = h ? /* @__PURE__ */ l("div", { className: "w-full lg:w-fit", children: s }) : /* @__PURE__ */ l(f, { className: "w-full lg:w-fit", children: s });
|
|
21
|
+
return /* @__PURE__ */ l("section", { className: i("max-w-full overflow-x-hidden", c ?? p), children: /* @__PURE__ */ l("div", { className: i("bg-law-genius-section mx-auto w-full max-w-6xl rounded-3xl px-8 pb-8 pt-16 text-white shadow-[0_25px_80px_rgba(3,42,56,0.35)] sm:px-10 sm:pb-10 sm:pt-16", n), children: /* @__PURE__ */ e("div", { className: "flex w-full flex-col gap-8 lg:gap-10", children: [
|
|
22
|
+
/* @__PURE__ */ e("div", { className: "flex flex-col gap-4 text-center text-white", children: [
|
|
23
|
+
/* @__PURE__ */ l("h2", { className: "lg:text-super-large text-3xl font-bold lg:leading-tight", children: m }),
|
|
24
|
+
/* @__PURE__ */ l(o, { content: r, className: "[&_p]:text-medium [&_p]:text-white/80 [&_p:last-child]:mb-0" })
|
|
25
|
+
] }),
|
|
26
|
+
/* @__PURE__ */ e("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: [
|
|
27
|
+
/* @__PURE__ */ e("div", { className: "flex min-h-0 flex-col gap-6", children: [
|
|
28
|
+
d,
|
|
29
|
+
g,
|
|
30
|
+
a
|
|
31
|
+
] }),
|
|
32
|
+
/* @__PURE__ */ l("div", { className: "relative z-10 mx-auto flex min-h-0 w-full max-w-77 shrink-0 items-center justify-center overflow-hidden rounded-lg md:mx-0 md:max-w-none", children: x })
|
|
33
|
+
] })
|
|
34
|
+
] }) }) });
|
|
45
35
|
}
|
|
46
|
-
return /* @__PURE__ */ l("section", { className:
|
|
36
|
+
return /* @__PURE__ */ l("section", { className: i("max-w-full overflow-x-hidden", c ?? p), children: /* @__PURE__ */ e("div", { className: i(w, n), children: [
|
|
47
37
|
/* @__PURE__ */ e("div", { className: "flex flex-col gap-8", children: [
|
|
48
38
|
/* @__PURE__ */ e("div", { className: "flex flex-col gap-4", children: [
|
|
49
|
-
/* @__PURE__ */ l("h2", { className: "text-super-large leading-tight font-bold", children:
|
|
50
|
-
/* @__PURE__ */ l(
|
|
39
|
+
/* @__PURE__ */ l("h2", { className: "text-super-large leading-tight font-bold", children: m }),
|
|
40
|
+
/* @__PURE__ */ l(o, { content: r, className: "[&_p:last-child]:mb-0" })
|
|
51
41
|
] }),
|
|
52
|
-
|
|
42
|
+
t.length > 0 && /* @__PURE__ */ l("div", { className: "flex flex-wrap gap-3", children: t.map((a) => /* @__PURE__ */ e(
|
|
53
43
|
"span",
|
|
54
44
|
{
|
|
55
45
|
className: "bg-primary-50 text-small text-primary-800 flex flex-nowrap gap-1 rounded-md p-1 font-semibold",
|
|
@@ -60,11 +50,11 @@ const C = ({
|
|
|
60
50
|
},
|
|
61
51
|
a.id
|
|
62
52
|
)) }),
|
|
63
|
-
/* @__PURE__ */ l(f, { className: "w-full md:w-fit", children:
|
|
53
|
+
/* @__PURE__ */ l(f, { className: "w-full md:w-fit", children: s })
|
|
64
54
|
] }),
|
|
65
|
-
/* @__PURE__ */ l("div", { className: "mx-auto w-full max-w-77 md:mx-0 md:min-w-74", children:
|
|
55
|
+
/* @__PURE__ */ l("div", { className: "mx-auto w-full max-w-77 md:mx-0 md:min-w-74", children: x })
|
|
66
56
|
] }) });
|
|
67
57
|
};
|
|
68
58
|
export {
|
|
69
|
-
|
|
59
|
+
j as RatafiaSection
|
|
70
60
|
};
|