@npm_leadtech/legal-contracts-ui 0.124.1 → 0.124.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/AboutUsTemplate.d.ts +2 -2
- package/dist/components/Anchor.d.ts +1 -1
- package/dist/components/Anchor.js +9 -8
- package/dist/components/Blockquote.d.ts +1 -1
- package/dist/components/Blockquote.js +9 -9
- package/dist/components/ContactUsTemplate.d.ts +2 -2
- package/dist/components/FaqsTemplate.d.ts +3 -2
- package/dist/components/Footer.js +15 -15
- package/dist/components/Header2.d.ts +1 -1
- package/dist/components/Header2.js +5 -4
- package/dist/components/HeroImageShell.d.ts +10 -0
- package/dist/components/HeroImageShell.js +15 -0
- package/dist/components/HomeTemplate.js +8 -8
- package/dist/components/HowItWorksLawGeniusSection.d.ts +16 -0
- package/dist/components/HowItWorksLawGeniusSection.js +41 -0
- package/dist/components/HowItWorksTemplate.d.ts +31 -39
- package/dist/components/HowItWorksTemplate.js +108 -92
- package/dist/components/HowItWorksTemplateTokens.d.ts +12 -0
- package/dist/components/HowItWorksTemplateTokens.js +8 -0
- package/dist/components/IntroSection.js +10 -10
- package/dist/components/Jumbotron2.d.ts +3 -2
- package/dist/components/LawGeniusImageShell.d.ts +9 -0
- package/dist/components/LawGeniusImageShell.js +15 -0
- package/dist/components/LawGeniusStepCard.d.ts +11 -0
- package/dist/components/LawGeniusStepCard.js +17 -0
- package/dist/components/Markdown.d.ts +1 -1
- package/dist/components/OrderedList.d.ts +1 -1
- package/dist/components/OrderedList.js +10 -9
- package/dist/components/Paragraph.d.ts +1 -1
- package/dist/components/Paragraph.js +6 -2
- package/dist/components/PricingTemplate.d.ts +2 -2
- package/dist/components/RatafiaSection.js +23 -23
- package/dist/components/ResourcesImageShell.d.ts +9 -0
- package/dist/components/ResourcesImageShell.js +15 -0
- package/dist/components/StepImageShell.d.ts +9 -0
- package/dist/components/StepImageShell.js +15 -0
- package/dist/components/TwoColumnSection.js +8 -8
- package/dist/components/UiComponents.d.ts +6 -6
- package/dist/components/UnorderedList.d.ts +1 -1
- package/dist/components/UnorderedList.js +13 -5
- package/dist/components/UnsubscribeTemplate.d.ts +1 -1
- package/dist/globals.css +1 -1
- package/package.json +29 -1
|
@@ -79,10 +79,10 @@ export interface IntroSectionProps {
|
|
|
79
79
|
}
|
|
80
80
|
|
|
81
81
|
export interface Jumbotron2Props {
|
|
82
|
-
title:
|
|
82
|
+
title: ReactNode;
|
|
83
83
|
subtitle?: string;
|
|
84
84
|
className?: string;
|
|
85
|
-
children?:
|
|
85
|
+
children?: ReactNode;
|
|
86
86
|
variant?: 'default' | 'contact';
|
|
87
87
|
}
|
|
88
88
|
|
|
@@ -3,6 +3,6 @@ import { JSX } from 'react/jsx-runtime';
|
|
|
3
3
|
export declare const Anchor: ({ children, variant, className, ...props }: AnchorProps) => JSX.Element;
|
|
4
4
|
|
|
5
5
|
export interface AnchorProps extends React.ComponentProps<'a'> {
|
|
6
|
-
variant?: 'default' | 'legal' | 'tooltip' | 'about-us' | 'pricing' | 'unsubscribe' | 'cookies';
|
|
6
|
+
variant?: 'default' | 'legal' | 'ratafia' | 'tooltip' | 'about-us' | 'pricing' | 'unsubscribe' | 'cookies';
|
|
7
7
|
}
|
|
8
8
|
|
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
import { jsx as d } from "react/jsx-runtime";
|
|
2
2
|
import p from "clsx";
|
|
3
|
-
const
|
|
4
|
-
const t = r.href || "",
|
|
3
|
+
const b = ({ children: a, variant: c = "default", className: l = "", ...r }) => {
|
|
4
|
+
const t = r.href || "", n = t.toLowerCase(), u = n.startsWith("mailto:"), o = n.startsWith("tel:"), e = "cursor-pointer text-primary-700", s = {
|
|
5
5
|
default: "text-neutral-900 underline",
|
|
6
6
|
legal: e,
|
|
7
|
+
ratafia: "cursor-pointer text-primary-200 underline decoration-white/40 underline-offset-2 hover:text-white",
|
|
7
8
|
"about-us": e,
|
|
8
9
|
pricing: "cursor-pointer text-neutral-900",
|
|
9
10
|
unsubscribe: e,
|
|
10
11
|
cookies: "text-white"
|
|
11
|
-
}, f =
|
|
12
|
-
if (!
|
|
12
|
+
}, f = s[c] ?? s.default, i = t.startsWith("http") && !o && !u, h = (() => {
|
|
13
|
+
if (!o) return t;
|
|
13
14
|
try {
|
|
14
15
|
return decodeURIComponent(t).replace(/\s/g, "");
|
|
15
16
|
} catch {
|
|
@@ -22,12 +23,12 @@ const v = ({ children: i, variant: c = "default", className: l = "", ...r }) =>
|
|
|
22
23
|
...r,
|
|
23
24
|
href: h,
|
|
24
25
|
className: p(l, f),
|
|
25
|
-
target:
|
|
26
|
-
rel:
|
|
27
|
-
children:
|
|
26
|
+
target: i ? "_blank" : void 0,
|
|
27
|
+
rel: i ? "noopener noreferrer" : void 0,
|
|
28
|
+
children: a
|
|
28
29
|
}
|
|
29
30
|
);
|
|
30
31
|
};
|
|
31
32
|
export {
|
|
32
|
-
|
|
33
|
+
b as Anchor
|
|
33
34
|
};
|
|
@@ -3,6 +3,6 @@ import { JSX } from 'react/jsx-runtime';
|
|
|
3
3
|
export declare const Blockquote: ({ children, variant }: BlockquoteProps) => JSX.Element;
|
|
4
4
|
|
|
5
5
|
export interface BlockquoteProps extends React.ComponentProps<'blockquote'> {
|
|
6
|
-
variant?: 'default' | 'legal' | 'tooltip' | 'about-us' | 'pricing' | 'unsubscribe' | 'cookies';
|
|
6
|
+
variant?: 'default' | 'legal' | 'ratafia' | 'tooltip' | 'about-us' | 'pricing' | 'unsubscribe' | 'cookies';
|
|
7
7
|
}
|
|
8
8
|
|
|
@@ -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 bg-neutral-25 pt-4 px-4 pb-0.5",
|
|
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
|
};
|
|
@@ -101,10 +101,10 @@ export declare interface ContactUsTemplateProps {
|
|
|
101
101
|
export type IconPosition = 'left' | 'right' | 'top';
|
|
102
102
|
|
|
103
103
|
export interface Jumbotron2Props {
|
|
104
|
-
title:
|
|
104
|
+
title: ReactNode;
|
|
105
105
|
subtitle?: string;
|
|
106
106
|
className?: string;
|
|
107
|
-
children?:
|
|
107
|
+
children?: ReactNode;
|
|
108
108
|
variant?: 'default' | 'contact';
|
|
109
109
|
}
|
|
110
110
|
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
2
3
|
|
|
3
4
|
export interface AsideNavMenuProps {
|
|
4
5
|
menuItems: Array<{
|
|
@@ -33,10 +34,10 @@ export declare interface FaqsTemplateProps {
|
|
|
33
34
|
}
|
|
34
35
|
|
|
35
36
|
export interface Jumbotron2Props {
|
|
36
|
-
title:
|
|
37
|
+
title: ReactNode;
|
|
37
38
|
subtitle?: string;
|
|
38
39
|
className?: string;
|
|
39
|
-
children?:
|
|
40
|
+
children?: ReactNode;
|
|
40
41
|
variant?: 'default' | 'contact';
|
|
41
42
|
}
|
|
42
43
|
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import { jsxs as l, jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
3
|
import { PhoneButton as o } from "./PhoneButton.js";
|
|
4
|
-
import { FooterNav as
|
|
4
|
+
import { FooterNav as f } from "./FooterNav.js";
|
|
5
5
|
const g = ({
|
|
6
6
|
nav: r,
|
|
7
7
|
contactInfo: t,
|
|
8
|
-
logoGray:
|
|
9
|
-
socialLinks:
|
|
10
|
-
legalLinks:
|
|
11
|
-
disclaimerText:
|
|
8
|
+
logoGray: d,
|
|
9
|
+
socialLinks: i,
|
|
10
|
+
legalLinks: x,
|
|
11
|
+
disclaimerText: c,
|
|
12
12
|
copyrightText: n,
|
|
13
|
-
trustPilot:
|
|
14
|
-
languageSelector:
|
|
15
|
-
}) => /* @__PURE__ */ l("footer", { className: "text-neutral-25", children: [
|
|
13
|
+
trustPilot: m,
|
|
14
|
+
languageSelector: s
|
|
15
|
+
}) => /* @__PURE__ */ l("footer", { className: "text-neutral-25 max-w-full overflow-x-hidden", children: [
|
|
16
16
|
/* @__PURE__ */ e("div", { className: "bg-primary-900", children: /* @__PURE__ */ l("div", { className: "mx-auto flex w-full max-w-300 flex-col items-start gap-8 px-6 py-10 md:grid md:grid-cols-3 lg:flex lg:flex-row lg:justify-between", children: [
|
|
17
|
-
r.map((a) => /* @__PURE__ */ e(
|
|
17
|
+
r.map((a) => /* @__PURE__ */ e(f, { ...a }, a.title)),
|
|
18
18
|
/* @__PURE__ */ l("div", { className: "flex flex-col gap-6 max-sm:w-full md:contents lg:flex", children: [
|
|
19
19
|
/* @__PURE__ */ l("div", { className: "", children: [
|
|
20
|
-
/* @__PURE__ */ e("div", { className: "mb-8 xl:hidden", children: !!
|
|
20
|
+
/* @__PURE__ */ e("div", { className: "mb-8 xl:hidden", children: !!s && /* @__PURE__ */ e("div", { className: "language-selector-mobile-container", children: s }) }),
|
|
21
21
|
/* @__PURE__ */ l("div", { children: [
|
|
22
22
|
/* @__PURE__ */ e("p", { className: "text-small hidden font-bold text-white sm:block", children: t.phoneNumber }),
|
|
23
23
|
/* @__PURE__ */ e("div", { className: "mb-2 w-full text-center sm:hidden", children: /* @__PURE__ */ e(o, { phoneNumber: t.phoneNumber }) }),
|
|
@@ -28,17 +28,17 @@ const g = ({
|
|
|
28
28
|
] })
|
|
29
29
|
] })
|
|
30
30
|
] }),
|
|
31
|
-
!!
|
|
31
|
+
!!m && /* @__PURE__ */ e("div", { className: "flex flex-col gap-2", children: m })
|
|
32
32
|
] })
|
|
33
33
|
] }) }),
|
|
34
34
|
/* @__PURE__ */ e("div", { className: "bg-neutral-900 px-6 py-8 text-neutral-400", children: /* @__PURE__ */ l("div", { className: "mx-auto flex w-full max-w-300 flex-col gap-6", children: [
|
|
35
35
|
/* @__PURE__ */ l("div", { className: "flex flex-col items-start gap-6 md:flex-row md:justify-between", children: [
|
|
36
|
-
|
|
37
|
-
/* @__PURE__ */ e("div", { className: "flex gap-4", children:
|
|
36
|
+
d,
|
|
37
|
+
/* @__PURE__ */ e("div", { className: "flex gap-4", children: i?.map((a) => a) })
|
|
38
38
|
] }),
|
|
39
39
|
/* @__PURE__ */ e("div", { className: "h-px w-full bg-neutral-600" }),
|
|
40
|
-
/* @__PURE__ */ e("div", { className: "text-extra-small flex flex-wrap gap-4", children:
|
|
41
|
-
/* @__PURE__ */ e("p", { className: "text-extra-small text-neutral-400", children:
|
|
40
|
+
/* @__PURE__ */ e("div", { className: "text-extra-small flex flex-wrap gap-4", children: x?.map((a) => a) }),
|
|
41
|
+
/* @__PURE__ */ e("p", { className: "text-extra-small text-neutral-400", children: c }),
|
|
42
42
|
/* @__PURE__ */ e("p", { className: "text-extra-small text-neutral-400", children: n })
|
|
43
43
|
] }) })
|
|
44
44
|
] });
|
|
@@ -3,6 +3,6 @@ import { JSX } from 'react/jsx-runtime';
|
|
|
3
3
|
export declare const Header2: ({ children, variant }: Header2Props) => JSX.Element;
|
|
4
4
|
|
|
5
5
|
export interface Header2Props extends React.ComponentProps<'h2'> {
|
|
6
|
-
variant?: 'default' | 'legal' | 'tooltip' | 'about-us' | 'pricing' | 'unsubscribe' | 'cookies';
|
|
6
|
+
variant?: 'default' | 'legal' | 'ratafia' | 'tooltip' | 'about-us' | 'pricing' | 'unsubscribe' | 'cookies';
|
|
7
7
|
}
|
|
8
8
|
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import { jsx as a } from "react/jsx-runtime";
|
|
2
|
-
import
|
|
3
|
-
const
|
|
2
|
+
import m from "clsx";
|
|
3
|
+
const s = ({ children: e, variant: l = "default" }) => {
|
|
4
4
|
const t = {
|
|
5
5
|
default: "mt-5 mb-3 text-3xl text-gray-900",
|
|
6
6
|
legal: "mt-5 -mx-ds-11xl mb-6 bg-white px-ds-11xl text-left text-neutral-800 text-3xl",
|
|
7
|
+
ratafia: "mt-4 mb-3 text-left text-xl font-bold text-white lg:text-2xl",
|
|
7
8
|
unsubscribe: "mt-0 mb-0 w-full bg-white pb-4 pt-8 text-left text-3xl leading-tight text-neutral-900 font-sans tracking-tight md:text-4xl md:leading-8"
|
|
8
9
|
}, x = t[l] ?? t.default;
|
|
9
|
-
return /* @__PURE__ */ a("h2", { className:
|
|
10
|
+
return /* @__PURE__ */ a("h2", { className: m("font-bold", x), children: e });
|
|
10
11
|
};
|
|
11
12
|
export {
|
|
12
|
-
|
|
13
|
+
s as Header2
|
|
13
14
|
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
+
const r = { w: 1200, h: 900 }, h = "relative aspect-[4/3] w-full overflow-hidden rounded-2xl bg-neutral-100 shadow-[0_25px_60px_rgba(3,42,56,0.12)]", t = "relative w-full overflow-hidden rounded-2xl shadow-[0_25px_60px_rgba(3,42,56,0.12)]", a = ({ empty: l, children: o }) => /* @__PURE__ */ e("div", { className: l ? h : t, "aria-hidden": l ? !0 : void 0, children: l ? null : o }), n = ({ src: l, alt: o, priority: d }) => l ? /* @__PURE__ */ e(a, { children: /* @__PURE__ */ e(
|
|
3
|
+
"img",
|
|
4
|
+
{
|
|
5
|
+
src: l,
|
|
6
|
+
alt: o,
|
|
7
|
+
width: r.w,
|
|
8
|
+
height: r.h,
|
|
9
|
+
className: "h-auto w-full max-w-full object-cover",
|
|
10
|
+
...d ? { loading: "eager" } : { loading: "lazy" }
|
|
11
|
+
}
|
|
12
|
+
) }) : /* @__PURE__ */ e(a, { empty: !0 });
|
|
13
|
+
export {
|
|
14
|
+
n as HeroImageShell
|
|
15
|
+
};
|
|
@@ -4,10 +4,10 @@ import { HeroSection as n } from "./HeroSection.js";
|
|
|
4
4
|
import { MoreTemplatesSection as f } from "./MoreTemplatesSection.js";
|
|
5
5
|
import { ProcessSection as l } from "./ProcessSection.js";
|
|
6
6
|
import { CategoriesSection as S } from "./CategoriesSection.js";
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
7
|
+
import { TrustSection as x } from "./TrustSection.js";
|
|
8
|
+
import { FaqTeaserSection as T } from "./FaqTeaserSection.js";
|
|
9
|
+
import { BlogSection as b } from "./BlogSection.js";
|
|
10
|
+
import { RatafiaSection as g } from "./RatafiaSection.js";
|
|
11
11
|
const M = ({
|
|
12
12
|
hero: t,
|
|
13
13
|
moreTemplates: m,
|
|
@@ -22,10 +22,10 @@ const M = ({
|
|
|
22
22
|
/* @__PURE__ */ o(f, { ...m }),
|
|
23
23
|
/* @__PURE__ */ o(l, { ...e }),
|
|
24
24
|
r && /* @__PURE__ */ o(S, { ...r }),
|
|
25
|
-
/* @__PURE__ */ o(
|
|
26
|
-
/* @__PURE__ */ o(
|
|
27
|
-
/* @__PURE__ */ o(
|
|
28
|
-
/* @__PURE__ */ o(
|
|
25
|
+
/* @__PURE__ */ o(g, { ...i }),
|
|
26
|
+
/* @__PURE__ */ o(x, { ...p }),
|
|
27
|
+
/* @__PURE__ */ o(T, { ...s }),
|
|
28
|
+
/* @__PURE__ */ o(b, { className: "pt-10 pb-12 lg:pb-14", ...a })
|
|
29
29
|
] });
|
|
30
30
|
export {
|
|
31
31
|
M as HomeTemplate
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
|
+
|
|
4
|
+
export declare const HowItWorksLawGeniusSection: FC<HowItWorksLawGeniusSectionProps>;
|
|
5
|
+
|
|
6
|
+
export declare interface HowItWorksLawGeniusSectionProps {
|
|
7
|
+
sectionTitle: string;
|
|
8
|
+
contentMarkdown: string;
|
|
9
|
+
descriptionMarkdown: string;
|
|
10
|
+
steps: ReactNode;
|
|
11
|
+
belowStepsMarkdown: string;
|
|
12
|
+
cta: ReactNode;
|
|
13
|
+
imageUrl: string | null;
|
|
14
|
+
imageAlt: string;
|
|
15
|
+
}
|
|
16
|
+
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { jsx as e, jsxs as l } from "react/jsx-runtime";
|
|
2
|
+
import { howItWorksLawGeniusBelowStepsMarkdownClassName as h } from "./HowItWorksTemplateTokens.js";
|
|
3
|
+
import { LawGeniusImageShell as p } from "./LawGeniusImageShell.js";
|
|
4
|
+
import { Markdown as t } from "./Markdown.js";
|
|
5
|
+
const v = ({
|
|
6
|
+
sectionTitle: s,
|
|
7
|
+
contentMarkdown: m,
|
|
8
|
+
descriptionMarkdown: a,
|
|
9
|
+
steps: r,
|
|
10
|
+
belowStepsMarkdown: i,
|
|
11
|
+
cta: n,
|
|
12
|
+
imageUrl: c,
|
|
13
|
+
imageAlt: x
|
|
14
|
+
}) => {
|
|
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
|
+
/* @__PURE__ */ l("div", { className: "flex flex-col gap-4 text-center text-white", children: [
|
|
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: 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
|
+
] }),
|
|
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
|
+
/* @__PURE__ */ l("div", { className: "flex min-h-0 flex-col gap-6", children: [
|
|
24
|
+
r,
|
|
25
|
+
d && /* @__PURE__ */ e(
|
|
26
|
+
t,
|
|
27
|
+
{
|
|
28
|
+
variant: "ratafia",
|
|
29
|
+
content: i,
|
|
30
|
+
className: h
|
|
31
|
+
}
|
|
32
|
+
),
|
|
33
|
+
/* @__PURE__ */ e("div", { className: "w-full lg:w-fit", children: n })
|
|
34
|
+
] }),
|
|
35
|
+
/* @__PURE__ */ e("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: /* @__PURE__ */ e(p, { src: c, alt: x }) })
|
|
36
|
+
] })
|
|
37
|
+
] }) }) });
|
|
38
|
+
};
|
|
39
|
+
export {
|
|
40
|
+
v as HowItWorksLawGeniusSection
|
|
41
|
+
};
|
|
@@ -1,17 +1,4 @@
|
|
|
1
|
-
import { ComponentPropsWithRef } from 'react';
|
|
2
1
|
import { FC } from 'react';
|
|
3
|
-
import { ReactNode } from 'react';
|
|
4
|
-
|
|
5
|
-
export interface ButtonProps extends Omit<ComponentPropsWithRef<'button'>, 'children'> {
|
|
6
|
-
children: ReactNode;
|
|
7
|
-
size?: ButtonSize;
|
|
8
|
-
variant?: ResponsiveButtonVariant;
|
|
9
|
-
iconPosition?: IconPosition;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
export type ButtonSize = 'small' | 'default' | 'large';
|
|
13
|
-
|
|
14
|
-
export type ButtonVariant = 'primary-green' | 'primary-darkgreen' | 'primary-yellow' | 'primary-white' | 'secondary-green' | 'secondary-yellow' | 'secondary-red' | 'secondary-black' | 'tertiary-bold' | 'tertiary-thin' | 'tertiary-icon' | 'tertiary-link' | 'icon-black' | 'icon-grey' | 'icon-mobile';
|
|
15
2
|
|
|
16
3
|
export declare type HowItWorksExamplesProps = {
|
|
17
4
|
eyebrow: string;
|
|
@@ -32,18 +19,20 @@ export declare type HowItWorksHeroBullet = {
|
|
|
32
19
|
export declare type HowItWorksLawGeniusStep = {
|
|
33
20
|
id: string;
|
|
34
21
|
title: string;
|
|
35
|
-
|
|
36
|
-
|
|
22
|
+
descriptionMarkdown: string;
|
|
23
|
+
iconUrl: string | null;
|
|
24
|
+
iconAlt?: string;
|
|
37
25
|
};
|
|
38
26
|
|
|
39
27
|
export declare type HowItWorksProcessStep = {
|
|
40
28
|
id: string;
|
|
41
29
|
title: string;
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
30
|
+
bodyMarkdown: string;
|
|
31
|
+
imageUrl: string | null;
|
|
32
|
+
imageAlt: string;
|
|
45
33
|
background: 'bg-white' | 'bg-neutral-25';
|
|
46
34
|
reverse?: boolean;
|
|
35
|
+
imageFirstOnMobile?: boolean;
|
|
47
36
|
};
|
|
48
37
|
|
|
49
38
|
export declare const HowItWorksTemplate: FC<HowItWorksTemplateProps>;
|
|
@@ -52,37 +41,40 @@ export declare interface HowItWorksTemplateProps {
|
|
|
52
41
|
hero: {
|
|
53
42
|
eyebrow: string;
|
|
54
43
|
title: string;
|
|
55
|
-
|
|
56
|
-
|
|
44
|
+
imageUrl: string | null;
|
|
45
|
+
imageAlt: string;
|
|
46
|
+
imagePriority?: boolean;
|
|
47
|
+
introMarkdown: string;
|
|
57
48
|
bullets: HowItWorksHeroBullet[];
|
|
58
|
-
|
|
59
|
-
cta:
|
|
49
|
+
closingMarkdown: string;
|
|
50
|
+
cta: {
|
|
51
|
+
href: string;
|
|
52
|
+
label: string;
|
|
53
|
+
};
|
|
60
54
|
};
|
|
61
55
|
processSteps: HowItWorksProcessStep[];
|
|
62
56
|
lawGenius: {
|
|
63
57
|
title: string;
|
|
64
|
-
|
|
58
|
+
contentMarkdown: string;
|
|
65
59
|
steps: HowItWorksLawGeniusStep[];
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
60
|
+
belowStepsMarkdown: string;
|
|
61
|
+
imageUrl: string | null;
|
|
62
|
+
imageAlt: string;
|
|
63
|
+
cta: {
|
|
64
|
+
href: string;
|
|
65
|
+
label: string;
|
|
66
|
+
};
|
|
69
67
|
sectionClassName?: string;
|
|
70
68
|
};
|
|
71
69
|
resources: {
|
|
72
70
|
examples: HowItWorksExamplesProps;
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
71
|
+
supportBodyMarkdown: string;
|
|
72
|
+
imageUrl: string | null;
|
|
73
|
+
imageAlt: string;
|
|
74
|
+
cta: {
|
|
75
|
+
href: string;
|
|
76
|
+
label: string;
|
|
77
|
+
};
|
|
76
78
|
};
|
|
77
79
|
}
|
|
78
|
-
|
|
79
|
-
export type IconPosition = 'left' | 'right' | 'top';
|
|
80
|
-
|
|
81
|
-
export type ResponsiveButtonVariant = ButtonVariant | {
|
|
82
|
-
initial?: ButtonVariant;
|
|
83
|
-
sm?: ButtonVariant;
|
|
84
|
-
md?: ButtonVariant;
|
|
85
|
-
lg?: ButtonVariant;
|
|
86
|
-
xl?: ButtonVariant;
|
|
87
|
-
};
|
|
88
80
|
|