@npm_leadtech/legal-contracts-ui 0.124.2 → 0.124.4
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/AllDocumentsTemplate.d.ts +0 -1
- package/dist/components/ContentItem.d.ts +0 -1
- package/dist/components/HowItWorksLawGeniusSection.js +8 -8
- package/dist/components/HowItWorksTemplate.d.ts +0 -1
- package/dist/components/HowItWorksTemplate.js +34 -33
- package/dist/components/ImageWithPreview.d.ts +0 -1
- package/dist/components/ImageWithPreview.js +9 -11
- package/dist/components/IntroSection.js +1 -1
- package/dist/components/PreviewDownload.d.ts +0 -2
- package/dist/components/PreviewDownload.js +19 -22
- package/dist/components/PreviewSection.d.ts +0 -1
- package/dist/components/PreviewSection.js +11 -24
- package/dist/components/ProductTemplate.d.ts +0 -3
- package/dist/components/RatafiaSection.js +31 -30
- package/dist/components/index.d.ts +1328 -0
- package/dist/globals.css +1 -1
- package/package.json +1 -1
|
@@ -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",
|
|
@@ -11,46 +11,46 @@ 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
13
|
import { LawGeniusImageShell as B } from "./LawGeniusImageShell.js";
|
|
14
|
-
const U = (
|
|
15
|
-
const m = /* @__PURE__ */ r("div", { className: "min-w-0 space-y-4 text-neutral-800 lg:basis-[47%]", children: [
|
|
16
|
-
/* @__PURE__ */ e("h2", { className: "font-lora text-[2.05rem] leading-[1.15] font-bold text-neutral-800", children:
|
|
17
|
-
/* @__PURE__ */ e("div", { className: "text-small space-y-3 text-neutral-700", children: /* @__PURE__ */ e(i, { variant: "legal", content:
|
|
18
|
-
] }),
|
|
19
|
-
return
|
|
20
|
-
},
|
|
21
|
-
const d =
|
|
14
|
+
const U = (a) => {
|
|
15
|
+
const m = /* @__PURE__ */ r("div", { className: "w-full min-w-0 space-y-4 text-neutral-800 md:shrink md:grow-0 md:basis-1/2 lg:basis-[47%]", children: [
|
|
16
|
+
/* @__PURE__ */ e("h2", { className: "font-lora text-[2.05rem] leading-[1.15] font-bold text-neutral-800", children: a.title }),
|
|
17
|
+
/* @__PURE__ */ e("div", { className: "text-small space-y-3 text-neutral-700", children: /* @__PURE__ */ e(i, { variant: "legal", content: a.bodyMarkdown }) })
|
|
18
|
+
] }), t = /* @__PURE__ */ e("div", { className: "w-full min-w-0 md:shrink md:grow-0 md:basis-1/2 lg:w-1/2 lg:max-w-[50%] lg:basis-auto", children: /* @__PURE__ */ e(W, { src: a.imageUrl, alt: a.imageAlt }) });
|
|
19
|
+
return { firstColumn: m, secondColumn: t };
|
|
20
|
+
}, K = ({ hero: a, processSteps: m, lawGenius: t, resources: n }) => {
|
|
21
|
+
const d = a.introMarkdown.trim().length > 0, p = a.closingMarkdown.trim().length > 0, x = n.supportBodyMarkdown.trim().length > 0, g = t.belowStepsMarkdown.trim().length > 0, { examples: s } = n, f = /* @__PURE__ */ e(
|
|
22
22
|
o,
|
|
23
23
|
{
|
|
24
|
-
size: "
|
|
24
|
+
size: "small",
|
|
25
25
|
variant: "primary-green",
|
|
26
|
-
className: "text-
|
|
27
|
-
children: /* @__PURE__ */ e("a", { href:
|
|
26
|
+
className: "text-small inline-flex w-fit justify-center !rounded-md font-bold",
|
|
27
|
+
children: /* @__PURE__ */ e("a", { href: t.cta.href, className: b, children: t.cta.label })
|
|
28
28
|
}
|
|
29
29
|
);
|
|
30
30
|
return /* @__PURE__ */ r("main", { className: "flex w-full max-w-full min-w-0 flex-1 flex-col", children: [
|
|
31
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: [
|
|
32
32
|
/* @__PURE__ */ r("div", { className: "text-center", children: [
|
|
33
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:
|
|
34
|
+
/* @__PURE__ */ e("p", { className: "text-small font-semibold tracking-[0.3em] whitespace-nowrap text-neutral-600 uppercase", children: a.eyebrow }),
|
|
35
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 })
|
|
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:
|
|
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: a.title })
|
|
38
38
|
] }),
|
|
39
39
|
/* @__PURE__ */ e(
|
|
40
40
|
A,
|
|
41
41
|
{
|
|
42
42
|
className: "bg-transparent",
|
|
43
43
|
containerClassName: "w-full !max-w-none flex-col gap-10 !px-0 !py-0 lg:flex-row lg:items-stretch",
|
|
44
|
-
image: /* @__PURE__ */ e(S, { src:
|
|
44
|
+
image: /* @__PURE__ */ e(S, { src: a.imageUrl, alt: a.imageAlt, priority: a.imagePriority }),
|
|
45
45
|
cta: {
|
|
46
46
|
size: "large",
|
|
47
47
|
variant: "primary-green",
|
|
48
48
|
className: "text-medium mt-8 w-full justify-center font-bold",
|
|
49
|
-
children: /* @__PURE__ */ e("a", { href:
|
|
49
|
+
children: /* @__PURE__ */ e("a", { href: a.cta.href, className: k, children: a.cta.label })
|
|
50
50
|
},
|
|
51
51
|
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(i, { variant: "legal", content:
|
|
53
|
-
/* @__PURE__ */ e("ul", { className: "text-medium space-y-3", children:
|
|
52
|
+
d && /* @__PURE__ */ e(i, { variant: "legal", content: a.introMarkdown }),
|
|
53
|
+
/* @__PURE__ */ e("ul", { className: "text-medium space-y-3", children: a.bullets.map((l) => /* @__PURE__ */ r("li", { className: "flex items-start gap-2", children: [
|
|
54
54
|
/* @__PURE__ */ e("span", { className: "bg-primary-600 mt-1 h-2.5 w-2.5", "aria-hidden": !0 }),
|
|
55
55
|
/* @__PURE__ */ r("span", { children: [
|
|
56
56
|
/* @__PURE__ */ r("strong", { children: [
|
|
@@ -60,7 +60,7 @@ const U = (t) => {
|
|
|
60
60
|
l.text
|
|
61
61
|
] })
|
|
62
62
|
] }, l.id)) }),
|
|
63
|
-
p && /* @__PURE__ */ e(i, { variant: "legal", content:
|
|
63
|
+
p && /* @__PURE__ */ e(i, { variant: "legal", content: a.closingMarkdown })
|
|
64
64
|
] })
|
|
65
65
|
}
|
|
66
66
|
)
|
|
@@ -73,7 +73,8 @@ const U = (t) => {
|
|
|
73
73
|
className: `${l.background} lg:px-ds-10xl px-6 py-12 sm:px-10`,
|
|
74
74
|
containerClassName: N(
|
|
75
75
|
"!mx-auto !w-full !max-w-6xl !px-0 !py-0 !gap-8 md:!gap-10 lg:items-start",
|
|
76
|
-
|
|
76
|
+
"!flex-col-reverse lg:!flex-row",
|
|
77
|
+
l.reverse && "lg:!flex-row-reverse"
|
|
77
78
|
),
|
|
78
79
|
firstColumn: u,
|
|
79
80
|
secondColumn: h
|
|
@@ -84,9 +85,9 @@ const U = (t) => {
|
|
|
84
85
|
/* @__PURE__ */ e(
|
|
85
86
|
M,
|
|
86
87
|
{
|
|
87
|
-
title:
|
|
88
|
-
content:
|
|
89
|
-
stepsSlot: /* @__PURE__ */ e(w, { children:
|
|
88
|
+
title: t.title,
|
|
89
|
+
content: t.contentMarkdown,
|
|
90
|
+
stepsSlot: /* @__PURE__ */ e(w, { children: t.steps.map((l) => /* @__PURE__ */ e(
|
|
90
91
|
I,
|
|
91
92
|
{
|
|
92
93
|
title: l.title,
|
|
@@ -100,14 +101,14 @@ const U = (t) => {
|
|
|
100
101
|
i,
|
|
101
102
|
{
|
|
102
103
|
variant: "ratafia",
|
|
103
|
-
content:
|
|
104
|
+
content: t.belowStepsMarkdown,
|
|
104
105
|
className: y
|
|
105
106
|
}
|
|
106
107
|
) : null,
|
|
107
108
|
cta: f,
|
|
108
109
|
skipCtaWrapper: !0,
|
|
109
|
-
image: /* @__PURE__ */ e(B, { src:
|
|
110
|
-
sectionClassName:
|
|
110
|
+
image: /* @__PURE__ */ e(B, { src: t.imageUrl, alt: t.imageAlt }),
|
|
111
|
+
sectionClassName: t.sectionClassName ?? "bg-neutral-25 px-6 pt-16 pb-12 sm:px-10 lg:px-ds-10xl"
|
|
111
112
|
}
|
|
112
113
|
),
|
|
113
114
|
/* @__PURE__ */ e(
|
|
@@ -115,23 +116,23 @@ const U = (t) => {
|
|
|
115
116
|
{
|
|
116
117
|
className: "bg-neutral-25 lg:px-ds-10xl px-6 py-12 sm:px-10",
|
|
117
118
|
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:
|
|
119
|
+
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: n.imageUrl, alt: n.imageAlt }) }),
|
|
119
120
|
secondColumn: /* @__PURE__ */ r("div", { className: "w-full space-y-4 lg:basis-[52%]", children: [
|
|
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
|
-
|
|
121
|
+
s.eyebrow && /* @__PURE__ */ e("p", { className: "text-xs font-semibold tracking-[0.2em] text-neutral-500 uppercase", children: s.eyebrow }),
|
|
122
|
+
s.title && /* @__PURE__ */ e("h3", { className: "font-lora text-[2rem] leading-[1.2] font-bold text-neutral-800", children: s.title }),
|
|
123
|
+
x && /* @__PURE__ */ e("div", { className: `text-small space-y-3 text-neutral-700 ${C}`, children: /* @__PURE__ */ e(i, { variant: "legal", content: n.supportBodyMarkdown }) }),
|
|
124
|
+
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
125
|
/* @__PURE__ */ e("dt", { className: "font-semibold", children: l.label }),
|
|
125
126
|
/* @__PURE__ */ e("dd", { children: l.value })
|
|
126
127
|
] }, `${l.label}-${l.value}`)) }),
|
|
127
|
-
|
|
128
|
+
s.footer && /* @__PURE__ */ e("p", { className: "text-small text-neutral-600", children: s.footer }),
|
|
128
129
|
/* @__PURE__ */ e(
|
|
129
130
|
o,
|
|
130
131
|
{
|
|
131
132
|
size: "small",
|
|
132
133
|
variant: "primary-green",
|
|
133
134
|
className: "text-small inline-flex w-auto justify-center font-bold",
|
|
134
|
-
children: /* @__PURE__ */ e("a", { href:
|
|
135
|
+
children: /* @__PURE__ */ e("a", { href: n.cta.href, className: v, children: n.cta.label })
|
|
135
136
|
}
|
|
136
137
|
)
|
|
137
138
|
] })
|
|
@@ -140,5 +141,5 @@ const U = (t) => {
|
|
|
140
141
|
] });
|
|
141
142
|
};
|
|
142
143
|
export {
|
|
143
|
-
|
|
144
|
+
K as HowItWorksTemplate
|
|
144
145
|
};
|
|
@@ -1,17 +1,15 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsxs as
|
|
3
|
-
import { useState as
|
|
4
|
-
import { ZoomIcon as
|
|
2
|
+
import { jsxs as l, jsx as e } from "react/jsx-runtime";
|
|
3
|
+
import { useState as s } from "react";
|
|
4
|
+
import { ZoomIcon as a } 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(
|
|
11
|
-
o(i), i && r && r();
|
|
12
|
-
}, children: s }) })
|
|
6
|
+
const u = ({ small: r, large: i }) => {
|
|
7
|
+
const [o, t] = s(!1);
|
|
8
|
+
return /* @__PURE__ */ l("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: r }),
|
|
10
|
+
/* @__PURE__ */ e("div", { className: "absolute inset-0 flex items-center justify-center", children: /* @__PURE__ */ e(m, { trigger: /* @__PURE__ */ e(a, { className: "bg-primary-700 size-8 rounded p-2 opacity-80 hover:opacity-100" }), isOpen: o, setIsOpen: t, children: i }) })
|
|
13
11
|
] });
|
|
14
12
|
};
|
|
15
13
|
export {
|
|
16
|
-
|
|
14
|
+
u as ImageWithPreview
|
|
17
15
|
};
|
|
@@ -6,7 +6,7 @@ const c = ({ image: i, children: r, cta: m, className: a, containerClassName: l
|
|
|
6
6
|
{
|
|
7
7
|
className: a ?? "",
|
|
8
8
|
containerClassName: l,
|
|
9
|
-
firstColumn: /* @__PURE__ */ s("div", { className: "mb-4 min-h-0 w-full min-w-0
|
|
9
|
+
firstColumn: /* @__PURE__ */ s("div", { className: "mb-4 min-h-0 w-full min-w-0 md:mr-6 md:mb-0 md:shrink md:basis-42/100 lg:mr-10 lg:basis-39/100 xl:basis-36/100", children: i }),
|
|
10
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
11
|
r,
|
|
12
12
|
m && /* @__PURE__ */ s(o, { size: "large", variant: "primary-green", className: "mt-8", ...m })
|
|
@@ -4,7 +4,6 @@ import { ReactNode } from 'react';
|
|
|
4
4
|
export interface ImageWithPreviewProps {
|
|
5
5
|
small: ReactNode;
|
|
6
6
|
large: ReactNode;
|
|
7
|
-
onZoomClick?: () => void;
|
|
8
7
|
}
|
|
9
8
|
|
|
10
9
|
export declare const PreviewDownload: FC<PreviewDownloadProps>;
|
|
@@ -16,6 +15,5 @@ export declare interface PreviewDownloadProps {
|
|
|
16
15
|
footerText: string;
|
|
17
16
|
pdfDownload: ReactNode;
|
|
18
17
|
wordDownload: ReactNode;
|
|
19
|
-
onZoomClick?: () => void;
|
|
20
18
|
}
|
|
21
19
|
|
|
@@ -1,41 +1,38 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsxs as l, jsx as e } from "react/jsx-runtime";
|
|
3
|
-
import { useState as
|
|
4
|
-
import { ZoomIcon as
|
|
5
|
-
import { Modal as
|
|
6
|
-
import { Markdown as
|
|
3
|
+
import { useState as f } from "react";
|
|
4
|
+
import { ZoomIcon as u } from "./ZoomIcon.js";
|
|
5
|
+
import { Modal as p } from "./Modal.js";
|
|
6
|
+
import { Markdown as x } from "./Markdown.js";
|
|
7
7
|
import { LinkWrapper as r } from "./LinkWrapper.js";
|
|
8
|
-
const
|
|
9
|
-
title:
|
|
10
|
-
footerText:
|
|
8
|
+
const y = ({
|
|
9
|
+
title: t,
|
|
10
|
+
footerText: s,
|
|
11
11
|
preview: a,
|
|
12
|
-
cta:
|
|
13
|
-
pdfDownload:
|
|
14
|
-
wordDownload:
|
|
15
|
-
onZoomClick: t
|
|
12
|
+
cta: n,
|
|
13
|
+
pdfDownload: i,
|
|
14
|
+
wordDownload: c
|
|
16
15
|
}) => {
|
|
17
|
-
const [
|
|
18
|
-
f(s), s && t && t();
|
|
19
|
-
};
|
|
16
|
+
const [o, m] = f(!1);
|
|
20
17
|
if (!a) return;
|
|
21
|
-
const
|
|
18
|
+
const d = /* @__PURE__ */ e(u, { className: "bg-primary-700 size-8 rounded p-2 opacity-80 hover:opacity-100" });
|
|
22
19
|
return /* @__PURE__ */ l("div", { className: "bg-neutral-25 relative mt-24 flex flex-col items-center gap-4 rounded border border-neutral-200 p-6 pt-44 lg:max-w-76 xl:max-w-96.5", children: [
|
|
23
20
|
/* @__PURE__ */ l("div", { className: "absolute -top-24 border border-neutral-200 shadow", children: [
|
|
24
21
|
/* @__PURE__ */ e("div", { className: "h-full max-h-64.5 w-full max-w-50 overflow-hidden", children: a.small }),
|
|
25
|
-
/* @__PURE__ */ e("div", { className: "absolute inset-0 flex items-center justify-center", children: /* @__PURE__ */ e(
|
|
22
|
+
/* @__PURE__ */ e("div", { className: "absolute inset-0 flex items-center justify-center", children: /* @__PURE__ */ e(p, { trigger: d, isOpen: o, setIsOpen: m, children: a.large }) })
|
|
26
23
|
] }),
|
|
27
|
-
/* @__PURE__ */ e(
|
|
28
|
-
/* @__PURE__ */ e(r, { className: "w-full", variant: "primary-green", children:
|
|
24
|
+
/* @__PURE__ */ e(x, { className: "text-medium text-center text-neutral-800 [&_p:last-child]:mb-0", content: t }),
|
|
25
|
+
/* @__PURE__ */ e(r, { className: "w-full", variant: "primary-green", children: n }),
|
|
29
26
|
/* @__PURE__ */ e("div", { className: "h-px w-full bg-neutral-200" }),
|
|
30
27
|
/* @__PURE__ */ l("div", { className: "flex w-full flex-col items-center gap-6", children: [
|
|
31
|
-
/* @__PURE__ */ e("p", { className: "text-small text-neutral-800", children:
|
|
28
|
+
/* @__PURE__ */ e("p", { className: "text-small text-neutral-800", children: s }),
|
|
32
29
|
/* @__PURE__ */ l("div", { className: "flex w-full gap-4", children: [
|
|
33
|
-
/* @__PURE__ */ e(r, { className: "w-full", variant: "secondary-black", children:
|
|
34
|
-
/* @__PURE__ */ e(r, { className: "w-full", variant: "secondary-black", children:
|
|
30
|
+
/* @__PURE__ */ e(r, { className: "w-full", variant: "secondary-black", children: i }),
|
|
31
|
+
/* @__PURE__ */ e(r, { className: "w-full", variant: "secondary-black", children: c })
|
|
35
32
|
] })
|
|
36
33
|
] })
|
|
37
34
|
] });
|
|
38
35
|
};
|
|
39
36
|
export {
|
|
40
|
-
|
|
37
|
+
y as PreviewDownload
|
|
41
38
|
};
|
|
@@ -1,26 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
/* @__PURE__ */ e(
|
|
12
|
-
"div",
|
|
13
|
-
{
|
|
14
|
-
className: "flex max-h-89.75 w-full overflow-auto border border-neutral-200 bg-white px-8 py-8 md:py-16",
|
|
15
|
-
onScroll: () => {
|
|
16
|
-
!t.current && r && (t.current = !0, r());
|
|
17
|
-
},
|
|
18
|
-
children: /* @__PURE__ */ e(m, { useCustom: !1, className: "select-none", content: o })
|
|
19
|
-
}
|
|
20
|
-
),
|
|
21
|
-
/* @__PURE__ */ e(i, { className: "w-full md:w-auto", children: a })
|
|
22
|
-
] }) });
|
|
23
|
-
};
|
|
1
|
+
import { jsx as e, jsxs as o } from "react/jsx-runtime";
|
|
2
|
+
import "react";
|
|
3
|
+
import { SectionHeading as a } from "./SectionHeading.js";
|
|
4
|
+
import { Markdown as n } from "./Markdown.js";
|
|
5
|
+
import { LinkWrapper as s } from "./LinkWrapper.js";
|
|
6
|
+
const d = ({ title: t, documentPreview: r, cta: l }) => /* @__PURE__ */ e("section", { className: "bg-secondary-50 px-4 py-10 text-neutral-900 md:px-8 xl:px-30", children: /* @__PURE__ */ o("div", { className: "mx-auto flex w-full max-w-300 flex-col items-center gap-8", children: [
|
|
7
|
+
/* @__PURE__ */ e(a, { title: t, titleClass: "text-neutral-800 font-bold font-inter text-large" }),
|
|
8
|
+
/* @__PURE__ */ e("div", { className: "flex max-h-89.75 w-full overflow-auto border border-neutral-200 bg-white px-8 py-8 md:py-16", children: /* @__PURE__ */ e(n, { useCustom: !1, className: "select-none", content: r }) }),
|
|
9
|
+
/* @__PURE__ */ e(s, { className: "w-full md:w-auto", children: l })
|
|
10
|
+
] }) });
|
|
24
11
|
export {
|
|
25
|
-
|
|
12
|
+
d as PreviewSection
|
|
26
13
|
};
|
|
@@ -77,7 +77,6 @@ export interface FreeDocumentModalProps {
|
|
|
77
77
|
export interface ImageWithPreviewProps {
|
|
78
78
|
small: ReactNode;
|
|
79
79
|
large: ReactNode;
|
|
80
|
-
onZoomClick?: () => void;
|
|
81
80
|
}
|
|
82
81
|
|
|
83
82
|
export type InputFieldData = {
|
|
@@ -134,14 +133,12 @@ export interface PreviewDownloadProps {
|
|
|
134
133
|
footerText: string;
|
|
135
134
|
pdfDownload: ReactNode;
|
|
136
135
|
wordDownload: ReactNode;
|
|
137
|
-
onZoomClick?: () => void;
|
|
138
136
|
}
|
|
139
137
|
|
|
140
138
|
export interface PreviewSectionProps {
|
|
141
139
|
title: string;
|
|
142
140
|
documentPreview: string;
|
|
143
141
|
cta: ReactNode;
|
|
144
|
-
onPreviewScroll?: () => void;
|
|
145
142
|
}
|
|
146
143
|
|
|
147
144
|
export interface ProductInfoProps {
|
|
@@ -1,45 +1,46 @@
|
|
|
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
|
|
5
|
-
import { LinkWrapper as
|
|
6
|
-
const
|
|
7
|
-
title:
|
|
3
|
+
import { clsx as s } from "clsx";
|
|
4
|
+
import { Markdown as t } from "./Markdown.js";
|
|
5
|
+
import { LinkWrapper as g } from "./LinkWrapper.js";
|
|
6
|
+
const C = ({
|
|
7
|
+
title: d,
|
|
8
8
|
content: r,
|
|
9
|
-
benefits:
|
|
10
|
-
stepsSlot:
|
|
11
|
-
belowStepsSlot:
|
|
12
|
-
cta:
|
|
9
|
+
benefits: m = [],
|
|
10
|
+
stepsSlot: c,
|
|
11
|
+
belowStepsSlot: h,
|
|
12
|
+
cta: i,
|
|
13
13
|
image: x,
|
|
14
|
-
skipCtaWrapper:
|
|
15
|
-
sectionClassName:
|
|
16
|
-
innerClassName:
|
|
14
|
+
skipCtaWrapper: w = !1,
|
|
15
|
+
sectionClassName: n,
|
|
16
|
+
innerClassName: o
|
|
17
17
|
}) => {
|
|
18
|
-
const p = "bg-primary-50 px-6 pb-10 pt-16 lg:px-8 lg:pb-12 lg:pt-16 xl:px-0",
|
|
19
|
-
if (
|
|
20
|
-
const a =
|
|
21
|
-
return /* @__PURE__ */ l("section", { className:
|
|
18
|
+
const p = "bg-primary-50 px-6 pb-10 pt-16 lg:px-8 lg:pb-12 lg:pt-16 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 (c != null) {
|
|
20
|
+
const a = r.trim().length > 0, f = "[&_p]:text-medium [&_p]:text-white/80 [&_p:last-child]:mb-0", N = w ? /* @__PURE__ */ l("div", { className: "flex w-fit justify-start", children: i }) : /* @__PURE__ */ l(g, { className: "flex w-fit justify-start", children: i });
|
|
21
|
+
return /* @__PURE__ */ l("section", { className: s("max-w-full overflow-x-hidden", n ?? p), children: /* @__PURE__ */ l("div", { className: s("bg-ratafia 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", o), children: /* @__PURE__ */ e("div", { className: "flex w-full flex-col gap-8 lg:gap-10", children: [
|
|
22
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:
|
|
24
|
-
/* @__PURE__ */ l(
|
|
23
|
+
/* @__PURE__ */ l("h2", { className: "lg:text-super-large text-3xl font-bold lg:leading-tight", children: d }),
|
|
24
|
+
a && /* @__PURE__ */ l("div", { className: "hidden lg:block", children: /* @__PURE__ */ l(t, { content: r, className: f }) })
|
|
25
25
|
] }),
|
|
26
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__ */
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
27
|
+
/* @__PURE__ */ l("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 md:mx-0 md:max-w-none lg:order-2", children: x }),
|
|
28
|
+
/* @__PURE__ */ e("div", { className: "order-2 flex min-h-0 flex-col gap-6 lg:order-1", children: [
|
|
29
|
+
a && /* @__PURE__ */ l("div", { className: "text-left lg:hidden", children: /* @__PURE__ */ l(t, { content: r, className: f }) }),
|
|
30
|
+
c,
|
|
31
|
+
h,
|
|
32
|
+
N
|
|
33
|
+
] })
|
|
33
34
|
] })
|
|
34
35
|
] }) }) });
|
|
35
36
|
}
|
|
36
|
-
return /* @__PURE__ */ l("section", { className:
|
|
37
|
+
return /* @__PURE__ */ l("section", { className: s("max-w-full overflow-x-hidden", n ?? p), children: /* @__PURE__ */ e("div", { className: s(u, o), children: [
|
|
37
38
|
/* @__PURE__ */ e("div", { className: "flex flex-col gap-8", children: [
|
|
38
39
|
/* @__PURE__ */ e("div", { className: "flex flex-col gap-4", children: [
|
|
39
|
-
/* @__PURE__ */ l("h2", { className: "text-super-large leading-tight font-bold", children:
|
|
40
|
-
/* @__PURE__ */ l(
|
|
40
|
+
/* @__PURE__ */ l("h2", { className: "text-super-large leading-tight font-bold", children: d }),
|
|
41
|
+
/* @__PURE__ */ l(t, { content: r, className: "[&_p:last-child]:mb-0" })
|
|
41
42
|
] }),
|
|
42
|
-
|
|
43
|
+
m.length > 0 && /* @__PURE__ */ l("div", { className: "flex flex-wrap gap-3", children: m.map((a) => /* @__PURE__ */ e(
|
|
43
44
|
"span",
|
|
44
45
|
{
|
|
45
46
|
className: "bg-primary-50 text-small text-primary-800 flex flex-nowrap gap-1 rounded-md p-1 font-semibold",
|
|
@@ -50,11 +51,11 @@ const j = ({
|
|
|
50
51
|
},
|
|
51
52
|
a.id
|
|
52
53
|
)) }),
|
|
53
|
-
/* @__PURE__ */ l(
|
|
54
|
+
/* @__PURE__ */ l(g, { className: "w-full md:w-fit", children: i })
|
|
54
55
|
] }),
|
|
55
56
|
/* @__PURE__ */ l("div", { className: "mx-auto w-full max-w-77 md:mx-0 md:min-w-74", children: x })
|
|
56
57
|
] }) });
|
|
57
58
|
};
|
|
58
59
|
export {
|
|
59
|
-
|
|
60
|
+
C as RatafiaSection
|
|
60
61
|
};
|