@npm_leadtech/legal-contracts-ui 0.136.1 → 0.136.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.
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
import { jsxs as f, jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import { ImageWithPreview as
|
|
2
|
+
import { ImageWithPreview as p } from "./ImageWithPreview.js";
|
|
3
3
|
import { LinkedProducts as h } from "./LinkedProducts.js";
|
|
4
4
|
import { Markdown as x } from "./Markdown.js";
|
|
5
5
|
import { LinkWrapper as l } from "./LinkWrapper.js";
|
|
6
6
|
import { AlternativeSubtypeDocument as u } from "./AlternativeSubtypeDocument.js";
|
|
7
7
|
import { DefaultSubtypeDocument as w } from "./DefaultSubtypeDocument.js";
|
|
8
8
|
const j = ({
|
|
9
|
-
id:
|
|
10
|
-
title:
|
|
9
|
+
id: d,
|
|
10
|
+
title: a,
|
|
11
11
|
content: n,
|
|
12
12
|
linkedProducts: i,
|
|
13
13
|
sampleImage: m,
|
|
14
|
-
cta:
|
|
15
|
-
comingSoonCta:
|
|
16
|
-
docsModules:
|
|
14
|
+
cta: o,
|
|
15
|
+
comingSoonCta: s,
|
|
16
|
+
docsModules: t,
|
|
17
17
|
subtypeDocs: c
|
|
18
|
-
}) => /* @__PURE__ */ f("div", { id:
|
|
19
|
-
|
|
18
|
+
}) => /* @__PURE__ */ f("div", { id: d, className: "flex min-w-0 scroll-mt-25 flex-col gap-6 text-neutral-900", children: [
|
|
19
|
+
a && /* @__PURE__ */ e("h2", { className: "text-super-large font-bold", children: a }),
|
|
20
20
|
n && /* @__PURE__ */ e(x, { content: n, className: "text-medium [&_p:last-child]:mb-0" }),
|
|
21
21
|
i.length > 0 && /* @__PURE__ */ e(h, { linkedProducts: i }),
|
|
22
|
-
m && /* @__PURE__ */ e(
|
|
23
|
-
!!
|
|
24
|
-
!!
|
|
25
|
-
|
|
26
|
-
/* @__PURE__ */ e(l, { className: "w-full", variant: "secondary-black", children:
|
|
27
|
-
/* @__PURE__ */ e(l, { className: "w-full", variant: "secondary-black", children:
|
|
22
|
+
m && /* @__PURE__ */ e(p, { ...m }),
|
|
23
|
+
!!o && /* @__PURE__ */ e(l, { className: "w-75 self-center text-center", children: o }),
|
|
24
|
+
!!s && /* @__PURE__ */ e(l, { variant: "icon-grey", disabled: !0, className: "w-75 self-center bg-neutral-200 text-center font-bold", children: s }),
|
|
25
|
+
t && /* @__PURE__ */ f("div", { className: "flex w-75 gap-4 self-center", children: [
|
|
26
|
+
/* @__PURE__ */ e(l, { className: "w-full", variant: "secondary-black", children: t.pdfDownload }),
|
|
27
|
+
/* @__PURE__ */ e(l, { className: "w-full", variant: "secondary-black", children: t.wordDownload })
|
|
28
28
|
] }),
|
|
29
29
|
c.length > 0 && /* @__PURE__ */ e("div", { className: "flex flex-wrap gap-2", children: c.map((r) => r.format === "Alternative" ? /* @__PURE__ */ e(u, { ...r }, r.id) : /* @__PURE__ */ e(w, { ...r }, r.id)) })
|
|
30
30
|
] });
|
|
@@ -1,26 +1,33 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx as e, jsxs as
|
|
3
|
-
import { useRef as
|
|
4
|
-
import { SectionHeading as
|
|
5
|
-
import { Markdown as
|
|
6
|
-
import { LinkWrapper as
|
|
7
|
-
const
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
2
|
+
import { jsx as e, jsxs as c } from "react/jsx-runtime";
|
|
3
|
+
import { useRef as i } from "react";
|
|
4
|
+
import { SectionHeading as m } from "./SectionHeading.js";
|
|
5
|
+
import { Markdown as d } from "./Markdown.js";
|
|
6
|
+
import { LinkWrapper as a } from "./LinkWrapper.js";
|
|
7
|
+
const b = ({
|
|
8
|
+
title: n,
|
|
9
|
+
documentPreview: s,
|
|
10
|
+
cta: l,
|
|
11
|
+
comingSoonCta: r,
|
|
12
|
+
onPreviewScroll: t
|
|
13
|
+
}) => {
|
|
14
|
+
const o = i(!1);
|
|
15
|
+
return /* @__PURE__ */ e("section", { className: "bg-secondary-50 px-4 py-10 text-neutral-900 md:px-8 xl:px-30", children: /* @__PURE__ */ c("div", { className: "mx-auto flex w-full max-w-300 flex-col items-center gap-8", children: [
|
|
16
|
+
/* @__PURE__ */ e(m, { title: n, titleClass: "text-neutral-800 font-bold font-inter text-large" }),
|
|
11
17
|
/* @__PURE__ */ e(
|
|
12
18
|
"div",
|
|
13
19
|
{
|
|
14
20
|
className: "flex max-h-89.75 w-full overflow-auto border border-neutral-200 bg-white px-8 py-8 md:py-16",
|
|
15
21
|
onScroll: () => {
|
|
16
|
-
!
|
|
22
|
+
!o.current && t && (o.current = !0, t());
|
|
17
23
|
},
|
|
18
|
-
children: /* @__PURE__ */ e(
|
|
24
|
+
children: /* @__PURE__ */ e(d, { useCustom: !1, className: "select-none", content: s })
|
|
19
25
|
}
|
|
20
26
|
),
|
|
21
|
-
/* @__PURE__ */ e(
|
|
27
|
+
!!l && /* @__PURE__ */ e(a, { className: "w-full md:w-auto", children: l }),
|
|
28
|
+
!!r && /* @__PURE__ */ e(a, { variant: "icon-grey", disabled: !0, className: "w-full bg-neutral-200 font-bold md:w-auto", children: r })
|
|
22
29
|
] }) });
|
|
23
30
|
};
|
|
24
31
|
export {
|
|
25
|
-
|
|
32
|
+
b as PreviewSection
|
|
26
33
|
};
|
|
@@ -145,6 +145,7 @@ export interface PreviewSectionProps {
|
|
|
145
145
|
title: string;
|
|
146
146
|
documentPreview: string;
|
|
147
147
|
cta: ReactNode;
|
|
148
|
+
comingSoonCta: ReactNode | null;
|
|
148
149
|
onPreviewScroll?: () => void;
|
|
149
150
|
}
|
|
150
151
|
|
|
@@ -170,7 +171,7 @@ export declare interface ProductTemplateProps {
|
|
|
170
171
|
contentItems: ContentItemProps[];
|
|
171
172
|
faqSection: FaqSectionProps;
|
|
172
173
|
previewDownload: PreviewDownloadProps;
|
|
173
|
-
previewSection?: PreviewSectionProps;
|
|
174
|
+
previewSection?: PreviewSectionProps | null;
|
|
174
175
|
tryNowSection?: TryNowSectionProps;
|
|
175
176
|
freeDocModal?: FreeDocumentModalProps;
|
|
176
177
|
}
|