@npm_leadtech/legal-contracts-ui 0.44.8 → 0.44.10
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/{BlogSection.d.ts → ArticlesSection.d.ts} +3 -3
- package/dist/components/{BlogSection.js → ArticlesSection.js} +2 -2
- package/dist/components/AsideNavMenu.js +35 -14
- package/dist/components/CategoryProductTemplate.d.ts +2 -2
- package/dist/components/CategoryProductTemplate.js +14 -14
- package/dist/components/FaqItem.js +1 -1
- package/dist/components/FaqItemWrapper.js +14 -22
- package/dist/components/FaqSection.js +13 -9
- package/dist/components/FaqsTemplate.js +7 -7
- package/dist/components/HeroSection.d.ts +2 -3
- package/dist/components/HeroSection.js +22 -16
- package/dist/components/HomeTemplate.d.ts +15 -12
- package/dist/components/HomeTemplate.js +21 -21
- package/dist/components/Item.d.ts +0 -2
- package/dist/components/Item.js +13 -15
- package/dist/components/MoreTemplatesSection.d.ts +0 -2
- package/dist/components/MoreTemplatesSection.js +53 -19
- package/dist/components/TrustSection.d.ts +5 -1
- package/dist/components/TrustSection.js +17 -12
- package/dist/globals.css +1 -1
- package/package.json +5 -5
- package/dist/components/index.d.ts +0 -823
|
@@ -2,16 +2,16 @@ import { ComponentPropsWithRef } from 'react';
|
|
|
2
2
|
import { FC } from 'react';
|
|
3
3
|
import { ReactNode } from 'react';
|
|
4
4
|
|
|
5
|
-
export declare const
|
|
5
|
+
export declare const ArticlesSection: FC<BlogSectionProps>;
|
|
6
6
|
|
|
7
7
|
export declare interface BlogSectionProps {
|
|
8
8
|
header: SectionHeadingProps;
|
|
9
|
-
articles
|
|
9
|
+
articles?: Array<{
|
|
10
10
|
title: string;
|
|
11
11
|
image: ReactNode;
|
|
12
12
|
excerpt: string;
|
|
13
13
|
cta: ReactNode;
|
|
14
|
-
}
|
|
14
|
+
}>;
|
|
15
15
|
cta: ButtonProps;
|
|
16
16
|
}
|
|
17
17
|
|
|
@@ -2,7 +2,7 @@ import { jsx as e, jsxs as r } from "react/jsx-runtime";
|
|
|
2
2
|
import "react";
|
|
3
3
|
import { SectionHeading as d } from "./SectionHeading.js";
|
|
4
4
|
import { Button as s } from "./Button.js";
|
|
5
|
-
const x = ({ header: i, articles: t, cta: a }) => t.length === 0 ? null : /* @__PURE__ */ e("section", { className: "px-6 pt-16 pb-20", children: /* @__PURE__ */ r("div", { className: "mx-auto max-w-6xl space-y-8", children: [
|
|
5
|
+
const x = ({ header: i, articles: t = [], cta: a }) => t.length === 0 ? null : /* @__PURE__ */ e("section", { className: "px-6 pt-16 pb-20", children: /* @__PURE__ */ r("div", { className: "mx-auto max-w-6xl space-y-8", children: [
|
|
6
6
|
/* @__PURE__ */ e(d, { ...i }),
|
|
7
7
|
/* @__PURE__ */ e("div", { className: "grid gap-6 md:grid-cols-2", children: t.map((l) => /* @__PURE__ */ r("article", { className: "flex flex-col rounded-sm bg-white shadow md:flex-row", children: [
|
|
8
8
|
/* @__PURE__ */ e("div", { className: "relative h-48 shrink-0 overflow-hidden rounded-l-sm md:h-auto md:w-48", children: l.image }),
|
|
@@ -15,5 +15,5 @@ const x = ({ header: i, articles: t, cta: a }) => t.length === 0 ? null : /* @__
|
|
|
15
15
|
/* @__PURE__ */ e("div", { className: "flex justify-center", children: /* @__PURE__ */ e(s, { size: "large", variant: "secondary-green", ...a }) })
|
|
16
16
|
] }) });
|
|
17
17
|
export {
|
|
18
|
-
x as
|
|
18
|
+
x as ArticlesSection
|
|
19
19
|
};
|
|
@@ -1,17 +1,38 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as t, jsxs as o } from "react/jsx-runtime";
|
|
3
|
+
import { useState as n, useEffect as f } from "react";
|
|
4
|
+
const p = ({ menuItems: r }) => {
|
|
5
|
+
const [a, c] = n(r[0]?.href || "");
|
|
6
|
+
return f(() => {
|
|
7
|
+
const e = new IntersectionObserver(
|
|
8
|
+
(l) => {
|
|
9
|
+
l.forEach((s) => {
|
|
10
|
+
s.isIntersecting && c(`#${s.target.id}`);
|
|
11
|
+
});
|
|
12
|
+
},
|
|
13
|
+
{ rootMargin: "-10% 0px -80% 0px", threshold: 0.1 }
|
|
14
|
+
);
|
|
15
|
+
return r.forEach((l) => {
|
|
16
|
+
const s = l.href.replace("#", ""), i = document.getElementById(s);
|
|
17
|
+
i && e.observe(i);
|
|
18
|
+
}), () => {
|
|
19
|
+
e.disconnect();
|
|
20
|
+
};
|
|
21
|
+
}, [r]), r.length === 0 ? null : /* @__PURE__ */ t("aside", { className: "flex w-full flex-col gap-4 md:sticky md:h-fit md:w-55 lg:top-24", children: /* @__PURE__ */ t("ul", { className: "flex flex-col gap-1", children: r.map((e) => {
|
|
22
|
+
const l = a === e.href;
|
|
23
|
+
return /* @__PURE__ */ o(
|
|
24
|
+
"li",
|
|
6
25
|
{
|
|
7
|
-
"
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
26
|
+
className: `flex items-baseline gap-2 border-b border-neutral-200 ${l ? "text-primary-500 font-bold" : ""}`,
|
|
27
|
+
children: [
|
|
28
|
+
l && /* @__PURE__ */ t("div", { className: "bg-primary-500 h-1.5 w-1.5", style: { borderRadius: "50%" } }),
|
|
29
|
+
/* @__PURE__ */ t("a", { href: e.href, className: "text-small block w-full py-3 text-left", children: /* @__PURE__ */ t("span", { className: "inline-block w-full transition-all duration-300", children: e.label }) })
|
|
30
|
+
]
|
|
31
|
+
},
|
|
32
|
+
e.label
|
|
33
|
+
);
|
|
34
|
+
}) }) });
|
|
35
|
+
};
|
|
15
36
|
export {
|
|
16
|
-
|
|
37
|
+
p as AsideNavMenu
|
|
17
38
|
};
|
|
@@ -4,12 +4,12 @@ import { ReactNode } from 'react';
|
|
|
4
4
|
|
|
5
5
|
export interface BlogSectionProps {
|
|
6
6
|
header: SectionHeadingProps;
|
|
7
|
-
articles
|
|
7
|
+
articles?: Array<{
|
|
8
8
|
title: string;
|
|
9
9
|
image: ReactNode;
|
|
10
10
|
excerpt: string;
|
|
11
11
|
cta: ReactNode;
|
|
12
|
-
}
|
|
12
|
+
}>;
|
|
13
13
|
cta: ButtonProps;
|
|
14
14
|
}
|
|
15
15
|
|
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { JumboCard as
|
|
1
|
+
import { jsxs as e, jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { JumboCard as n } from "./JumboCard.js";
|
|
3
3
|
import { DocumentCategories as p } from "./DocumentCategories.js";
|
|
4
4
|
import { DocumentSection as f } from "./DocumentSection.js";
|
|
5
5
|
import { Breadcrumb as d } from "./Breadcrumb.js";
|
|
6
6
|
import { MarkdownSection as u } from "./MarkdownSection.js";
|
|
7
7
|
import { FaqSection as x } from "./FaqSection.js";
|
|
8
|
-
import {
|
|
8
|
+
import { ArticlesSection as N } from "./ArticlesSection.js";
|
|
9
9
|
const y = ({
|
|
10
10
|
jumbo: m,
|
|
11
11
|
breadcrumb: a,
|
|
12
12
|
categories: t,
|
|
13
13
|
documentSections: i,
|
|
14
|
-
ctaSection:
|
|
15
|
-
faqSection:
|
|
16
|
-
articles:
|
|
17
|
-
}) => /* @__PURE__ */
|
|
18
|
-
/* @__PURE__ */ r(
|
|
14
|
+
ctaSection: c,
|
|
15
|
+
faqSection: l,
|
|
16
|
+
articles: s
|
|
17
|
+
}) => /* @__PURE__ */ e("main", { className: "mx-auto max-w-6xl flex-1", children: [
|
|
18
|
+
/* @__PURE__ */ r(n, { ...m }),
|
|
19
19
|
/* @__PURE__ */ r(d, { ...a, className: "pb-4" }),
|
|
20
|
-
/* @__PURE__ */
|
|
20
|
+
/* @__PURE__ */ e("div", { className: "container mx-auto flex flex-col justify-center gap-30 lg:flex-row", children: [
|
|
21
21
|
/* @__PURE__ */ r(p, { ...t }),
|
|
22
|
-
/* @__PURE__ */
|
|
23
|
-
i.map((
|
|
22
|
+
/* @__PURE__ */ e("div", { className: "", children: [
|
|
23
|
+
i.map((o) => /* @__PURE__ */ r(f, { ...o }, o.id)),
|
|
24
24
|
/* @__PURE__ */ r("div", { className: "h-px w-full bg-neutral-200", "aria-hidden": !0 }),
|
|
25
|
-
/* @__PURE__ */ r(u, { ...
|
|
26
|
-
/* @__PURE__ */ r(x, { ...
|
|
27
|
-
/* @__PURE__ */ r(
|
|
25
|
+
/* @__PURE__ */ r(u, { ...c }),
|
|
26
|
+
/* @__PURE__ */ r(x, { ...l, className: "pb-6" }),
|
|
27
|
+
/* @__PURE__ */ r(N, { ...s })
|
|
28
28
|
] })
|
|
29
29
|
] })
|
|
30
30
|
] });
|
|
@@ -2,7 +2,7 @@ import { jsx as e } from "react/jsx-runtime";
|
|
|
2
2
|
import "react";
|
|
3
3
|
import { FaqItemWrapper as n } from "./FaqItemWrapper.js";
|
|
4
4
|
import { Markdown as m } from "./Markdown.js";
|
|
5
|
-
const l = ({ question: t, answer: o }) => /* @__PURE__ */ e("div", { className: "text-medium flex flex-col rounded bg-white p-4 text-neutral-800 shadow", children: /* @__PURE__ */ e(n, { question: /* @__PURE__ */ e("
|
|
5
|
+
const l = ({ question: t, answer: o }) => /* @__PURE__ */ e("div", { className: "text-medium flex flex-col rounded bg-white p-4 text-neutral-800 shadow", children: /* @__PURE__ */ e(n, { question: /* @__PURE__ */ e("span", { className: "font-bold", children: t }), children: /* @__PURE__ */ e(m, { content: o, className: "text-medium" }) }) });
|
|
6
6
|
export {
|
|
7
7
|
l as FaqItem
|
|
8
8
|
};
|
|
@@ -1,32 +1,24 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
const
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import { jsxs as t, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { useId as i } from "react";
|
|
3
|
+
import { ChevronDownIcon as a } from "./ChevronDownIcon.js";
|
|
4
|
+
const d = ({ question: o, children: s }) => {
|
|
5
|
+
const r = i();
|
|
6
|
+
return /* @__PURE__ */ t("div", { className: "w-full", children: [
|
|
7
|
+
/* @__PURE__ */ e("input", { type: "checkbox", id: r, className: "peer sr-only" }),
|
|
8
8
|
/* @__PURE__ */ t(
|
|
9
|
-
"
|
|
9
|
+
"label",
|
|
10
10
|
{
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
},
|
|
14
|
-
"aria-expanded": e,
|
|
15
|
-
className: "flex w-full cursor-pointer items-center justify-between text-left",
|
|
11
|
+
htmlFor: r,
|
|
12
|
+
className: "flex w-full cursor-pointer items-center justify-between text-left peer-checked:[&_.chevron]:rotate-0",
|
|
16
13
|
children: [
|
|
17
|
-
|
|
18
|
-
/* @__PURE__ */
|
|
19
|
-
l,
|
|
20
|
-
{
|
|
21
|
-
className: `size-6 -rotate-90 transition-transform duration-300 ${e ? "rotate-0" : ""}`
|
|
22
|
-
}
|
|
23
|
-
)
|
|
14
|
+
o,
|
|
15
|
+
/* @__PURE__ */ e(a, { className: "chevron size-6 -rotate-90 transition-transform duration-300" })
|
|
24
16
|
]
|
|
25
17
|
}
|
|
26
18
|
),
|
|
27
|
-
/* @__PURE__ */
|
|
19
|
+
/* @__PURE__ */ e("div", { className: "grid grid-rows-[0fr] transition-all duration-300 peer-checked:grid-rows-[1fr]", children: /* @__PURE__ */ e("div", { className: "overflow-hidden", children: /* @__PURE__ */ e("div", { className: "pt-4", children: s }) }) })
|
|
28
20
|
] });
|
|
29
21
|
};
|
|
30
22
|
export {
|
|
31
|
-
|
|
23
|
+
d as FaqItemWrapper
|
|
32
24
|
};
|
|
@@ -1,14 +1,18 @@
|
|
|
1
1
|
import { jsxs as a, jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
|
-
import { Markdown as
|
|
3
|
+
import { Markdown as n } from "./Markdown.js";
|
|
4
4
|
import { FaqItem as m } from "./FaqItem.js";
|
|
5
|
-
const
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
5
|
+
const p = ({ title: l, description: o, faqItems: r, className: s = "" }) => {
|
|
6
|
+
if (r.length === 0) return null;
|
|
7
|
+
const c = l.toLowerCase().replace(/\s+/g, "-");
|
|
8
|
+
return /* @__PURE__ */ a("div", { id: c, className: `flex flex-col gap-2 text-neutral-800 ${s} p-0.5`, children: [
|
|
9
|
+
/* @__PURE__ */ a("div", { className: "mb-4 flex flex-col", children: [
|
|
10
|
+
/* @__PURE__ */ e("h3", { className: "text-super-large font-bold", children: l }),
|
|
11
|
+
o !== "" && /* @__PURE__ */ e(n, { content: o, className: "text-medium mt-6" })
|
|
12
|
+
] }),
|
|
13
|
+
/* @__PURE__ */ e("div", { className: "flex flex-col gap-4", children: r.map((t) => /* @__PURE__ */ e(m, { ...t }, t.question)) })
|
|
14
|
+
] });
|
|
15
|
+
};
|
|
12
16
|
export {
|
|
13
|
-
|
|
17
|
+
p as FaqSection
|
|
14
18
|
};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as e, jsxs as m } from "react/jsx-runtime";
|
|
2
2
|
import { Jumbotron2 as x } from "./Jumbotron2.js";
|
|
3
3
|
import { AsideNavMenu as i } from "./AsideNavMenu.js";
|
|
4
4
|
import { FaqSection as p } from "./FaqSection.js";
|
|
5
|
-
const
|
|
6
|
-
/* @__PURE__ */
|
|
7
|
-
/* @__PURE__ */
|
|
8
|
-
/* @__PURE__ */
|
|
9
|
-
/* @__PURE__ */
|
|
5
|
+
const d = ({ jumbotron: a, asideNavMenu: r, faqSections: o }) => /* @__PURE__ */ e("main", { className: "bg-primary-50 flex-1 px-4 py-10 text-neutral-800 md:px-8", children: /* @__PURE__ */ m("div", { className: "mx-auto flex w-full max-w-300 flex-col gap-10", children: [
|
|
6
|
+
/* @__PURE__ */ e(x, { ...a }),
|
|
7
|
+
/* @__PURE__ */ m("div", { className: "flex flex-col gap-10 md:flex-row md:gap-24", children: [
|
|
8
|
+
/* @__PURE__ */ e(i, { ...r }),
|
|
9
|
+
/* @__PURE__ */ e("div", { className: "flex flex-1 flex-col gap-10", children: o.map((l) => /* @__PURE__ */ e(p, { ...l }, l.title)) })
|
|
10
10
|
] })
|
|
11
11
|
] }) });
|
|
12
12
|
export {
|
|
13
|
-
|
|
13
|
+
d as FaqsTemplate
|
|
14
14
|
};
|
|
@@ -19,15 +19,15 @@ export declare interface HeroSectionProps {
|
|
|
19
19
|
title: string;
|
|
20
20
|
description?: string;
|
|
21
21
|
cta: ButtonProps;
|
|
22
|
-
heroDocuments
|
|
22
|
+
heroDocuments?: ItemProps[];
|
|
23
23
|
listTitle?: string;
|
|
24
|
+
listNote?: string;
|
|
24
25
|
backgroundImage?: string;
|
|
25
26
|
}
|
|
26
27
|
|
|
27
28
|
export type IconPosition = 'left' | 'right' | 'top';
|
|
28
29
|
|
|
29
30
|
export interface ItemProps {
|
|
30
|
-
id?: string;
|
|
31
31
|
image: ReactNode;
|
|
32
32
|
title?: string;
|
|
33
33
|
description?: string;
|
|
@@ -35,6 +35,5 @@ export interface ItemProps {
|
|
|
35
35
|
actions?: ReactNode;
|
|
36
36
|
variant?: 'default' | 'card';
|
|
37
37
|
className?: string;
|
|
38
|
-
titleClassName?: string;
|
|
39
38
|
}
|
|
40
39
|
|
|
@@ -1,32 +1,38 @@
|
|
|
1
1
|
import { jsx as e, jsxs as t } from "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
3
|
import { Item as x } from "./Item.js";
|
|
4
|
-
import { Button as
|
|
5
|
-
const
|
|
4
|
+
import { Button as o } from "./Button.js";
|
|
5
|
+
const h = ({
|
|
6
6
|
title: a,
|
|
7
|
-
description:
|
|
8
|
-
cta:
|
|
9
|
-
heroDocuments:
|
|
10
|
-
listTitle:
|
|
7
|
+
description: s,
|
|
8
|
+
cta: i,
|
|
9
|
+
heroDocuments: c = [],
|
|
10
|
+
listTitle: m,
|
|
11
|
+
listNote: n,
|
|
11
12
|
backgroundImage: l
|
|
12
13
|
}) => /* @__PURE__ */ e("section", { className: "bg-primary-50", children: /* @__PURE__ */ e(
|
|
13
14
|
"div",
|
|
14
15
|
{
|
|
15
|
-
className: "bg-none bg-size-[420px_442px] bg-bottom-right bg-no-repeat
|
|
16
|
+
className: "bg-none bg-size-[420px_442px] bg-bottom-right bg-no-repeat lg:bg-(image:--hero-bg)",
|
|
16
17
|
style: { "--hero-bg": l ? `url(${l})` : "none" },
|
|
17
|
-
children: /* @__PURE__ */ t("div", { className: "flex flex-col items-center
|
|
18
|
-
/* @__PURE__ */ t("div", { className: "flex flex-col items-center gap-6
|
|
19
|
-
/* @__PURE__ */
|
|
20
|
-
|
|
21
|
-
|
|
18
|
+
children: /* @__PURE__ */ t("div", { className: "mx-auto flex max-w-6xl flex-col items-center px-6 py-12 lg:flex-row", children: [
|
|
19
|
+
/* @__PURE__ */ t("div", { className: "flex max-w-[486px] flex-1 flex-col items-center gap-6 text-center lg:items-start lg:text-left", children: [
|
|
20
|
+
/* @__PURE__ */ t("div", { className: "space-y-5", children: [
|
|
21
|
+
/* @__PURE__ */ e("h1", { className: "font-lora text-super-hero text-neutral-900", children: a }),
|
|
22
|
+
/* @__PURE__ */ e("p", { className: "text-big text-neutral-800", children: s })
|
|
23
|
+
] }),
|
|
24
|
+
/* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(o, { size: "large", ...i }) })
|
|
22
25
|
] }),
|
|
23
|
-
/* @__PURE__ */ t("div", { className: "flex flex-col items-center justify-center gap-4
|
|
24
|
-
/* @__PURE__ */
|
|
25
|
-
|
|
26
|
+
/* @__PURE__ */ t("div", { className: "flex w-full flex-1 flex-col items-center justify-center gap-4 rounded-lg p-6 lg:items-start lg:justify-start", children: [
|
|
27
|
+
/* @__PURE__ */ t("div", { className: "flex w-full max-w-[486px] items-center justify-between", children: [
|
|
28
|
+
/* @__PURE__ */ e("p", { className: "text-big text-primary-800 font-semibold", children: m }),
|
|
29
|
+
/* @__PURE__ */ e("span", { className: "text-extra-small text-neutral-600", children: n })
|
|
30
|
+
] }),
|
|
31
|
+
/* @__PURE__ */ e("div", { className: "grid w-full max-w-[486px] gap-2", children: c.map((r) => /* @__PURE__ */ e(x, { ...r, variant: "card" }, r.title)) })
|
|
26
32
|
] })
|
|
27
33
|
] })
|
|
28
34
|
}
|
|
29
35
|
) });
|
|
30
36
|
export {
|
|
31
|
-
|
|
37
|
+
h as HeroSection
|
|
32
38
|
};
|
|
@@ -4,12 +4,12 @@ import { ReactNode } from 'react';
|
|
|
4
4
|
|
|
5
5
|
export interface BlogSectionProps {
|
|
6
6
|
header: SectionHeadingProps;
|
|
7
|
-
articles
|
|
7
|
+
articles?: Array<{
|
|
8
8
|
title: string;
|
|
9
9
|
image: ReactNode;
|
|
10
10
|
excerpt: string;
|
|
11
11
|
cta: ReactNode;
|
|
12
|
-
}
|
|
12
|
+
}>;
|
|
13
13
|
cta: ButtonProps;
|
|
14
14
|
}
|
|
15
15
|
|
|
@@ -49,8 +49,9 @@ export interface HeroSectionProps {
|
|
|
49
49
|
title: string;
|
|
50
50
|
description?: string;
|
|
51
51
|
cta: ButtonProps;
|
|
52
|
-
heroDocuments
|
|
52
|
+
heroDocuments?: ItemProps[];
|
|
53
53
|
listTitle?: string;
|
|
54
|
+
listNote?: string;
|
|
54
55
|
backgroundImage?: string;
|
|
55
56
|
}
|
|
56
57
|
|
|
@@ -67,20 +68,19 @@ export interface HomeStepsProps {
|
|
|
67
68
|
export declare const HomeTemplate: FC<HomeTemplateProps>;
|
|
68
69
|
|
|
69
70
|
export declare interface HomeTemplateProps {
|
|
70
|
-
hero
|
|
71
|
-
moreTemplates
|
|
72
|
-
process
|
|
71
|
+
hero?: HeroSectionProps;
|
|
72
|
+
moreTemplates?: PopularDocumentsProps;
|
|
73
|
+
process?: HomeStepsProps;
|
|
73
74
|
categories?: CategoriesSectionProps;
|
|
74
|
-
ratafia
|
|
75
|
-
trust
|
|
75
|
+
ratafia?: LawGeniusSectionProps;
|
|
76
|
+
trust?: TrustSectionProps;
|
|
76
77
|
faqTeaser: FaqTeaserSectionProps;
|
|
77
|
-
articles
|
|
78
|
+
articles?: BlogSectionProps;
|
|
78
79
|
}
|
|
79
80
|
|
|
80
81
|
export type IconPosition = 'left' | 'right' | 'top';
|
|
81
82
|
|
|
82
83
|
export interface ItemProps {
|
|
83
|
-
id?: string;
|
|
84
84
|
image: ReactNode;
|
|
85
85
|
title?: string;
|
|
86
86
|
description?: string;
|
|
@@ -88,7 +88,6 @@ export interface ItemProps {
|
|
|
88
88
|
actions?: ReactNode;
|
|
89
89
|
variant?: 'default' | 'card';
|
|
90
90
|
className?: string;
|
|
91
|
-
titleClassName?: string;
|
|
92
91
|
}
|
|
93
92
|
|
|
94
93
|
export interface LawGeniusSectionProps {
|
|
@@ -117,7 +116,11 @@ export interface SectionHeadingProps {
|
|
|
117
116
|
|
|
118
117
|
export interface TrustSectionProps {
|
|
119
118
|
header: SectionHeadingProps;
|
|
120
|
-
trustReasons
|
|
119
|
+
trustReasons?: Array<{
|
|
120
|
+
label: string;
|
|
121
|
+
icon?: ReactNode;
|
|
122
|
+
}>;
|
|
121
123
|
cta: ButtonProps;
|
|
124
|
+
children?: ReactNode;
|
|
122
125
|
}
|
|
123
126
|
|
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
import { jsxs as f, jsx as o } from "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
|
-
import { HeroSection as
|
|
4
|
-
import { MoreTemplatesSection as
|
|
5
|
-
import { ProcessSection as
|
|
3
|
+
import { HeroSection as S } from "./HeroSection.js";
|
|
4
|
+
import { MoreTemplatesSection as s } from "./MoreTemplatesSection.js";
|
|
5
|
+
import { ProcessSection as a } from "./ProcessSection.js";
|
|
6
6
|
import { CategoriesSection as l } from "./CategoriesSection.js";
|
|
7
7
|
import { RatafiaSection as x } from "./RatafiaSection.js";
|
|
8
8
|
import { TrustSection as T } from "./TrustSection.js";
|
|
9
9
|
import { FaqTeaserSection as j } from "./FaqTeaserSection.js";
|
|
10
|
-
import {
|
|
11
|
-
const
|
|
12
|
-
hero:
|
|
10
|
+
import { ArticlesSection as H } from "./ArticlesSection.js";
|
|
11
|
+
const b = ({
|
|
12
|
+
hero: r,
|
|
13
13
|
moreTemplates: m,
|
|
14
|
-
process:
|
|
15
|
-
categories:
|
|
16
|
-
ratafia:
|
|
17
|
-
trust:
|
|
18
|
-
faqTeaser:
|
|
19
|
-
articles:
|
|
14
|
+
process: t,
|
|
15
|
+
categories: i,
|
|
16
|
+
ratafia: e,
|
|
17
|
+
trust: n,
|
|
18
|
+
faqTeaser: c,
|
|
19
|
+
articles: p
|
|
20
20
|
}) => /* @__PURE__ */ f("main", { className: "flex-1", children: [
|
|
21
|
-
/* @__PURE__ */ o(
|
|
22
|
-
/* @__PURE__ */ o(
|
|
23
|
-
/* @__PURE__ */ o(
|
|
24
|
-
|
|
25
|
-
/* @__PURE__ */ o(x, { ...
|
|
26
|
-
/* @__PURE__ */ o(T, { ...
|
|
27
|
-
/* @__PURE__ */ o(j, { ...
|
|
28
|
-
/* @__PURE__ */ o(
|
|
21
|
+
r && /* @__PURE__ */ o(S, { ...r }),
|
|
22
|
+
m && /* @__PURE__ */ o(s, { ...m }),
|
|
23
|
+
t && /* @__PURE__ */ o(a, { ...t }),
|
|
24
|
+
i && /* @__PURE__ */ o(l, { ...i }),
|
|
25
|
+
e && /* @__PURE__ */ o(x, { ...e }),
|
|
26
|
+
n && /* @__PURE__ */ o(T, { ...n }),
|
|
27
|
+
/* @__PURE__ */ o(j, { ...c }),
|
|
28
|
+
p && /* @__PURE__ */ o(H, { ...p })
|
|
29
29
|
] });
|
|
30
30
|
export {
|
|
31
|
-
|
|
31
|
+
b as HomeTemplate
|
|
32
32
|
};
|
|
@@ -4,7 +4,6 @@ import { ReactNode } from 'react';
|
|
|
4
4
|
export declare const Item: FC<ItemProps>;
|
|
5
5
|
|
|
6
6
|
export declare interface ItemProps {
|
|
7
|
-
id?: string;
|
|
8
7
|
image: ReactNode;
|
|
9
8
|
title?: string;
|
|
10
9
|
description?: string;
|
|
@@ -12,6 +11,5 @@ export declare interface ItemProps {
|
|
|
12
11
|
actions?: ReactNode;
|
|
13
12
|
variant?: 'default' | 'card';
|
|
14
13
|
className?: string;
|
|
15
|
-
titleClassName?: string;
|
|
16
14
|
}
|
|
17
15
|
|
package/dist/components/Item.js
CHANGED
|
@@ -1,34 +1,32 @@
|
|
|
1
1
|
import { jsxs as s, jsx as r } from "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
|
-
const
|
|
4
|
-
|
|
5
|
-
image: l,
|
|
3
|
+
const x = ({
|
|
4
|
+
image: t,
|
|
6
5
|
title: e,
|
|
7
6
|
description: a,
|
|
8
|
-
documentUrl:
|
|
9
|
-
actions:
|
|
10
|
-
variant:
|
|
11
|
-
className:
|
|
12
|
-
titleClassName: c = ""
|
|
7
|
+
documentUrl: l,
|
|
8
|
+
actions: d,
|
|
9
|
+
variant: n = "default",
|
|
10
|
+
className: m = ""
|
|
13
11
|
}) => /* @__PURE__ */ s(
|
|
14
12
|
"a",
|
|
15
13
|
{
|
|
16
|
-
href:
|
|
14
|
+
href: l,
|
|
17
15
|
className: `hover:bg-primary-50 flex cursor-pointer items-center gap-4 rounded-sm p-4 pl-6 ${{
|
|
18
16
|
default: "",
|
|
19
17
|
card: "border border-0.5 border-neutral-200 shadow-lg bg-white"
|
|
20
|
-
}[
|
|
18
|
+
}[n]} ${m}`,
|
|
21
19
|
children: [
|
|
22
|
-
|
|
20
|
+
t,
|
|
23
21
|
/* @__PURE__ */ s("div", { className: "flex-1", children: [
|
|
24
|
-
e && /* @__PURE__ */ r("p", { className:
|
|
22
|
+
e && /* @__PURE__ */ r("p", { className: "text-medium font-semibold text-neutral-900", children: e }),
|
|
25
23
|
a && /* @__PURE__ */ r("p", { className: "text-extra-small text-neutral-600", children: a })
|
|
26
24
|
] }),
|
|
27
|
-
/* @__PURE__ */ r("div", { children:
|
|
25
|
+
/* @__PURE__ */ r("div", { children: d })
|
|
28
26
|
]
|
|
29
27
|
},
|
|
30
|
-
|
|
28
|
+
e
|
|
31
29
|
);
|
|
32
30
|
export {
|
|
33
|
-
|
|
31
|
+
x as Item
|
|
34
32
|
};
|
|
@@ -2,7 +2,6 @@ import { FC } from 'react';
|
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
3
|
|
|
4
4
|
export interface ItemProps {
|
|
5
|
-
id?: string;
|
|
6
5
|
image: ReactNode;
|
|
7
6
|
title?: string;
|
|
8
7
|
description?: string;
|
|
@@ -10,7 +9,6 @@ export interface ItemProps {
|
|
|
10
9
|
actions?: ReactNode;
|
|
11
10
|
variant?: 'default' | 'card';
|
|
12
11
|
className?: string;
|
|
13
|
-
titleClassName?: string;
|
|
14
12
|
}
|
|
15
13
|
|
|
16
14
|
export declare const MoreTemplatesSection: FC<PopularDocumentsProps>;
|