@npm_leadtech/legal-contracts-ui 0.124.7 → 0.124.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/AboutUsTemplate.d.ts +0 -1
- package/dist/components/AiLegalDocumentReviewerTemplate.d.ts +0 -2
- package/dist/components/Blockquote.js +9 -9
- package/dist/components/Button.d.ts +1 -2
- package/dist/components/Button.js +10 -23
- package/dist/components/Checkbox.d.ts +0 -1
- package/dist/components/Checkbox.js +15 -27
- package/dist/components/ContactFormSection.d.ts +0 -2
- package/dist/components/ContactUsSection.d.ts +0 -1
- package/dist/components/ContactUsSection.js +6 -6
- package/dist/components/ContactUsTemplate.d.ts +0 -2
- package/dist/components/ConversionSection.d.ts +0 -2
- package/dist/components/ConversionSection.js +4 -4
- package/dist/components/CookiesBar.d.ts +0 -1
- package/dist/components/ElectronicSignatureTemplate.d.ts +0 -1
- package/dist/components/Footer.d.ts +0 -1
- package/dist/components/Footer.js +3 -3
- package/dist/components/Header.d.ts +0 -1
- package/dist/components/Hero2Section.d.ts +0 -1
- package/dist/components/HowItWorksLawGeniusSection.js +8 -8
- package/dist/components/HowItWorksTemplate.d.ts +0 -1
- package/dist/components/HowItWorksTemplate.js +23 -22
- package/dist/components/Input.d.ts +0 -1
- package/dist/components/Input.js +30 -32
- package/dist/components/IntroSection.js +13 -12
- package/dist/components/MobileMenu.d.ts +0 -1
- package/dist/components/MobileMenu.js +4 -5
- package/dist/components/OrderedList.js +9 -9
- package/dist/components/PhoneButton.d.ts +1 -2
- package/dist/components/PhoneButton.js +4 -5
- package/dist/components/Preform.d.ts +0 -2
- package/dist/components/Preform.js +6 -7
- package/dist/components/PreformMobile.d.ts +0 -2
- package/dist/components/PreformOption.d.ts +0 -1
- package/dist/components/PreformOption.js +2 -3
- package/dist/components/ProductTemplate.d.ts +0 -2
- package/dist/components/RatafiaSection.js +44 -34
- package/dist/components/Select.d.ts +0 -1
- package/dist/components/Select.js +20 -22
- package/dist/components/Textarea.d.ts +0 -1
- package/dist/components/Textarea.js +16 -18
- package/dist/components/TwoColumnSection.js +10 -10
- package/dist/components/UploadZone.d.ts +0 -1
- package/dist/components/UploadZone.js +20 -21
- package/dist/components/index.d.ts +1 -13
- package/dist/globals.css +1 -1
- package/package.json +1 -1
|
@@ -32,7 +32,6 @@ export interface ConversionSectionProps {
|
|
|
32
32
|
icon: ReactNode;
|
|
33
33
|
title: string;
|
|
34
34
|
uploadZone: UploadZoneProps;
|
|
35
|
-
dataQa?: string;
|
|
36
35
|
}
|
|
37
36
|
|
|
38
37
|
export interface FaqItemProps {
|
|
@@ -137,6 +136,5 @@ export interface UploadZoneProps {
|
|
|
137
136
|
containerClassName?: string;
|
|
138
137
|
onAddDocument?: () => void;
|
|
139
138
|
onDropDocument?: (e: React.DragEvent<HTMLDivElement>) => void;
|
|
140
|
-
dataQa?: string;
|
|
141
139
|
}
|
|
142
140
|
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import
|
|
3
|
-
const
|
|
1
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import l from "clsx";
|
|
3
|
+
const b = ({ children: r, variant: e = "default" }) => {
|
|
4
4
|
const t = {
|
|
5
|
-
default: "
|
|
6
|
-
"about-us": "
|
|
7
|
-
unsubscribe: "
|
|
8
|
-
},
|
|
9
|
-
return /* @__PURE__ */
|
|
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
|
+
}, a = t[e] ?? t.default;
|
|
9
|
+
return /* @__PURE__ */ o("blockquote", { className: l("my-4 italic", a), children: r });
|
|
10
10
|
};
|
|
11
11
|
export {
|
|
12
|
-
|
|
12
|
+
b as Blockquote
|
|
13
13
|
};
|
|
@@ -2,14 +2,13 @@ import { ComponentPropsWithRef } from 'react';
|
|
|
2
2
|
import { JSX } from 'react/jsx-runtime';
|
|
3
3
|
import { ReactNode } from 'react';
|
|
4
4
|
|
|
5
|
-
export declare const Button: ({ children, type, size, variant, iconPosition, className, disabled, ref,
|
|
5
|
+
export declare const Button: ({ children, type, size, variant, iconPosition, className, disabled, ref, ...props }: ButtonProps) => JSX.Element;
|
|
6
6
|
|
|
7
7
|
export declare interface ButtonProps extends Omit<ComponentPropsWithRef<'button'>, 'children'> {
|
|
8
8
|
children: ReactNode;
|
|
9
9
|
size?: ButtonSize;
|
|
10
10
|
variant?: ResponsiveButtonVariant;
|
|
11
11
|
iconPosition?: IconPosition;
|
|
12
|
-
dataQa?: string;
|
|
13
12
|
}
|
|
14
13
|
|
|
15
14
|
export type ButtonSize = 'small' | 'default' | 'large';
|
|
@@ -1,33 +1,20 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { getButtonClasses as
|
|
1
|
+
import { jsx as l } from "react/jsx-runtime";
|
|
2
|
+
import { getButtonClasses as p } from "./Button.utils.js";
|
|
3
3
|
import "react";
|
|
4
|
-
const
|
|
4
|
+
const x = ({
|
|
5
5
|
children: o,
|
|
6
6
|
type: r = "button",
|
|
7
|
-
size:
|
|
8
|
-
variant:
|
|
9
|
-
iconPosition:
|
|
7
|
+
size: s = "default",
|
|
8
|
+
variant: e = "primary-green",
|
|
9
|
+
iconPosition: a = "left",
|
|
10
10
|
className: n,
|
|
11
11
|
disabled: t = !1,
|
|
12
12
|
ref: m,
|
|
13
|
-
|
|
14
|
-
...f
|
|
13
|
+
...u
|
|
15
14
|
}) => {
|
|
16
|
-
const
|
|
17
|
-
return /* @__PURE__ */
|
|
18
|
-
"button",
|
|
19
|
-
{
|
|
20
|
-
"data-qa": u,
|
|
21
|
-
ref: m,
|
|
22
|
-
type: r,
|
|
23
|
-
disabled: t,
|
|
24
|
-
"aria-disabled": t,
|
|
25
|
-
className: l,
|
|
26
|
-
...f,
|
|
27
|
-
children: o
|
|
28
|
-
}
|
|
29
|
-
);
|
|
15
|
+
const f = p(s, e, a, t, n);
|
|
16
|
+
return /* @__PURE__ */ l("button", { ref: m, type: r, disabled: t, "aria-disabled": t, className: f, ...u, children: o });
|
|
30
17
|
};
|
|
31
18
|
export {
|
|
32
|
-
|
|
19
|
+
x as Button
|
|
33
20
|
};
|
|
@@ -1,43 +1,31 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import
|
|
3
|
-
import { CheckIcon as
|
|
4
|
-
const
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
required: a = !1,
|
|
1
|
+
import { jsxs as a, jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import m from "clsx";
|
|
3
|
+
import { CheckIcon as c } from "./CheckIcon.js";
|
|
4
|
+
const u = ({
|
|
5
|
+
id: o,
|
|
6
|
+
name: s,
|
|
7
|
+
required: i = !1,
|
|
9
8
|
children: l,
|
|
10
9
|
checked: e,
|
|
11
|
-
error:
|
|
10
|
+
error: t = !1,
|
|
12
11
|
...n
|
|
13
|
-
}) => /* @__PURE__ */
|
|
14
|
-
/* @__PURE__ */ r(
|
|
15
|
-
"input",
|
|
16
|
-
{
|
|
17
|
-
"data-qa": s,
|
|
18
|
-
id: t,
|
|
19
|
-
name: i,
|
|
20
|
-
type: "checkbox",
|
|
21
|
-
required: a,
|
|
22
|
-
className: "peer sr-only",
|
|
23
|
-
...n
|
|
24
|
-
}
|
|
25
|
-
),
|
|
12
|
+
}) => /* @__PURE__ */ a("label", { htmlFor: o, className: "text-medium flex cursor-pointer items-center gap-2 text-neutral-800 select-none", children: [
|
|
13
|
+
/* @__PURE__ */ r("input", { id: o, name: s, type: "checkbox", required: i, className: "peer sr-only", ...n }),
|
|
26
14
|
/* @__PURE__ */ r(
|
|
27
15
|
"div",
|
|
28
16
|
{
|
|
29
|
-
className:
|
|
17
|
+
className: m(
|
|
30
18
|
"flex h-5.5 w-5.5 items-center justify-center rounded transition-colors",
|
|
31
19
|
"peer-focus-visible:ring-primary-500 peer-focus-visible:ring-2 peer-focus-visible:ring-offset-2",
|
|
32
|
-
!
|
|
20
|
+
!t && !e && "hover:bg-primary-200 border border-neutral-800 bg-white",
|
|
33
21
|
e && "border-primary-500 bg-primary-200 border-2",
|
|
34
|
-
|
|
22
|
+
t && "border-error-500 bg-error-20 border"
|
|
35
23
|
),
|
|
36
|
-
children: e && /* @__PURE__ */ r(
|
|
24
|
+
children: e && /* @__PURE__ */ r(c, {})
|
|
37
25
|
}
|
|
38
26
|
),
|
|
39
27
|
/* @__PURE__ */ r("span", { className: "leading-tight text-neutral-800", children: l })
|
|
40
28
|
] });
|
|
41
29
|
export {
|
|
42
|
-
|
|
30
|
+
u as Checkbox
|
|
43
31
|
};
|
|
@@ -9,7 +9,6 @@ export interface ButtonProps extends Omit<ComponentPropsWithRef<'button'>, 'chil
|
|
|
9
9
|
size?: ButtonSize;
|
|
10
10
|
variant?: ResponsiveButtonVariant;
|
|
11
11
|
iconPosition?: IconPosition;
|
|
12
|
-
dataQa?: string;
|
|
13
12
|
}
|
|
14
13
|
|
|
15
14
|
export type ButtonSize = 'small' | 'default' | 'large';
|
|
@@ -28,7 +27,6 @@ export interface ContactFormFeedbackProps {
|
|
|
28
27
|
}
|
|
29
28
|
|
|
30
29
|
export declare interface ContactFormFieldProps {
|
|
31
|
-
dataQa: string;
|
|
32
30
|
label: string;
|
|
33
31
|
id: string;
|
|
34
32
|
name: string;
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { jsx as l, jsxs as r } from "react/jsx-runtime";
|
|
2
|
-
import
|
|
2
|
+
import a from "clsx";
|
|
3
3
|
import { SectionHeading as c } from "./SectionHeading.js";
|
|
4
|
-
const d = ({ header:
|
|
5
|
-
/* @__PURE__ */ l(c, { ...
|
|
6
|
-
/* @__PURE__ */ l("div", { className: "flex flex-col items-center gap-6 sm:flex-row sm:items-start sm:justify-center", children:
|
|
4
|
+
const d = ({ header: t, contactOptions: s }) => s.length === 0 ? null : /* @__PURE__ */ l("section", { className: "bg-neutral-25 px-4 pt-16 pb-20", children: /* @__PURE__ */ r("div", { className: "mx-auto max-w-6xl space-y-10", children: [
|
|
5
|
+
/* @__PURE__ */ l(c, { ...t, className: "px-6" }),
|
|
6
|
+
/* @__PURE__ */ l("div", { className: "flex flex-col items-center gap-6 sm:flex-row sm:items-start sm:justify-center", children: s.map((e) => /* @__PURE__ */ r(
|
|
7
7
|
"article",
|
|
8
8
|
{
|
|
9
|
-
className:
|
|
9
|
+
className: a(
|
|
10
10
|
"relative flex h-36 w-52 flex-col items-center justify-center gap-4 rounded bg-white text-center shadow-sm",
|
|
11
11
|
e.url && 'cursor-pointer [&_a]:before:absolute [&_a]:before:inset-0 [&_a]:before:content-[""]'
|
|
12
12
|
),
|
|
13
13
|
children: [
|
|
14
|
-
e.url && /* @__PURE__ */ l("a", {
|
|
14
|
+
e.url && /* @__PURE__ */ l("a", { href: e.url, children: /* @__PURE__ */ l("span", { className: "sr-only", children: e.title }) }),
|
|
15
15
|
/* @__PURE__ */ l("div", { className: "bg-primary-50 rounded-full p-3", children: e.icon }),
|
|
16
16
|
/* @__PURE__ */ r("div", { className: "flex flex-col items-center justify-center", children: [
|
|
17
17
|
/* @__PURE__ */ l("p", { className: "text-neutral-800", children: e.title }),
|
|
@@ -9,7 +9,6 @@ export interface ButtonProps extends Omit<ComponentPropsWithRef<'button'>, 'chil
|
|
|
9
9
|
size?: ButtonSize;
|
|
10
10
|
variant?: ResponsiveButtonVariant;
|
|
11
11
|
iconPosition?: IconPosition;
|
|
12
|
-
dataQa?: string;
|
|
13
12
|
}
|
|
14
13
|
|
|
15
14
|
export type ButtonSize = 'small' | 'default' | 'large';
|
|
@@ -28,7 +27,6 @@ export interface ContactFormFeedbackProps {
|
|
|
28
27
|
}
|
|
29
28
|
|
|
30
29
|
export interface ContactFormFieldProps {
|
|
31
|
-
dataQa: string;
|
|
32
30
|
label: string;
|
|
33
31
|
id: string;
|
|
34
32
|
name: string;
|
|
@@ -7,7 +7,6 @@ export declare interface ConversionSectionProps {
|
|
|
7
7
|
icon: ReactNode;
|
|
8
8
|
title: string;
|
|
9
9
|
uploadZone: UploadZoneProps;
|
|
10
|
-
dataQa?: string;
|
|
11
10
|
}
|
|
12
11
|
|
|
13
12
|
export interface UploadZoneProps {
|
|
@@ -18,6 +17,5 @@ export interface UploadZoneProps {
|
|
|
18
17
|
containerClassName?: string;
|
|
19
18
|
onAddDocument?: () => void;
|
|
20
19
|
onDropDocument?: (e: React.DragEvent<HTMLDivElement>) => void;
|
|
21
|
-
dataQa?: string;
|
|
22
20
|
}
|
|
23
21
|
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { jsx as e, jsxs as l } from "react/jsx-runtime";
|
|
2
|
-
import { UploadZone as
|
|
3
|
-
const
|
|
2
|
+
import { UploadZone as s } from "./UploadZone.js";
|
|
3
|
+
const n = ({ icon: a, title: t, uploadZone: r }) => /* @__PURE__ */ e("section", { className: "bg-white px-6 py-8 xl:px-0", children: /* @__PURE__ */ l("div", { className: "bg-ratafia mx-auto flex w-full max-w-300 shrink flex-col gap-6 rounded-2xl p-6 md:flex-row md:items-center md:gap-10 md:p-8 lg:pe-10 lg:pl-16 xl:items-start xl:gap-20", children: [
|
|
4
4
|
/* @__PURE__ */ l("div", { className: "flex flex-col gap-4", children: [
|
|
5
5
|
/* @__PURE__ */ e("span", { className: "xl:pt-12", children: a }),
|
|
6
6
|
/* @__PURE__ */ e("h4", { className: "text-super-large md:text-extra-large font-bold text-white", children: t })
|
|
7
7
|
] }),
|
|
8
|
-
/* @__PURE__ */ e(
|
|
8
|
+
/* @__PURE__ */ e(s, { ...r, containerClassName: "md:min-w-77 lg:min-w-115" })
|
|
9
9
|
] }) });
|
|
10
10
|
export {
|
|
11
|
-
|
|
11
|
+
n as ConversionSection
|
|
12
12
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
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,
|
|
@@ -14,13 +14,13 @@ const g = ({
|
|
|
14
14
|
languageSelector: s
|
|
15
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
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
|
-
/* @__PURE__ */ e("div", { className: "mb-2 w-full text-center sm:hidden", children: /* @__PURE__ */ e(o, {
|
|
23
|
+
/* @__PURE__ */ e("div", { className: "mb-2 w-full text-center sm:hidden", children: /* @__PURE__ */ e(o, { phoneNumber: t.phoneNumber }) }),
|
|
24
24
|
/* @__PURE__ */ l("p", { className: "text-neutral-25 text-medium md:text-small text-center md:text-left", children: [
|
|
25
25
|
t.contactHoursText,
|
|
26
26
|
" ",
|
|
@@ -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",
|
|
@@ -12,26 +12,26 @@ 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
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
|
+
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
16
|
/* @__PURE__ */ e("h2", { className: "font-lora text-[2.05rem] leading-[1.15] font-bold text-neutral-800", children: t.title }),
|
|
17
17
|
/* @__PURE__ */ e("div", { className: "text-small space-y-3 text-neutral-700", children: /* @__PURE__ */ e(i, { variant: "legal", content: t.bodyMarkdown }) })
|
|
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
|
|
20
|
-
},
|
|
21
|
-
const d = t.introMarkdown.trim().length > 0, p = t.closingMarkdown.trim().length > 0, x =
|
|
18
|
+
] }), a = /* @__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: t.imageUrl, alt: t.imageAlt }) });
|
|
19
|
+
return { firstColumn: m, secondColumn: a };
|
|
20
|
+
}, K = ({ hero: t, processSteps: m, lawGenius: a, resources: n }) => {
|
|
21
|
+
const d = t.introMarkdown.trim().length > 0, p = t.closingMarkdown.trim().length > 0, x = n.supportBodyMarkdown.trim().length > 0, g = a.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-
|
|
26
|
+
className: "text-small inline-flex w-fit justify-center !rounded-md font-bold",
|
|
27
27
|
children: /* @__PURE__ */ e("a", { href: a.cta.href, className: b, children: a.cta.label })
|
|
28
28
|
}
|
|
29
29
|
);
|
|
30
|
-
return /* @__PURE__ */ r("main", { className: "flex w-full max-w-full min-w-0 flex-1 flex-col", children: [
|
|
30
|
+
return /* @__PURE__ */ r("main", { className: "flex w-full max-w-full min-w-0 flex-1 flex-col overflow-x-clip", 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
|
-
/* @__PURE__ */ r("div", { className: "mx-auto
|
|
34
|
-
/* @__PURE__ */ e("p", { className: "text-small font-semibold tracking-[0.3em]
|
|
33
|
+
/* @__PURE__ */ r("div", { className: "mx-auto flex w-full max-w-full flex-col items-center gap-2", children: [
|
|
34
|
+
/* @__PURE__ */ e("p", { className: "text-small text-center font-semibold tracking-[0.3em] text-neutral-600 uppercase", children: t.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
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 })
|
|
@@ -40,7 +40,7 @@ const U = (t) => {
|
|
|
40
40
|
A,
|
|
41
41
|
{
|
|
42
42
|
className: "bg-transparent",
|
|
43
|
-
containerClassName: "w-full !max-w-none flex-col gap-10 !px-0 !py-0 lg
|
|
43
|
+
containerClassName: "w-full !max-w-none !flex-col gap-10 !px-0 !py-0 md:!flex-col lg:!flex-row lg:items-stretch",
|
|
44
44
|
image: /* @__PURE__ */ e(S, { src: t.imageUrl, alt: t.imageAlt, priority: t.imagePriority }),
|
|
45
45
|
cta: {
|
|
46
46
|
size: "large",
|
|
@@ -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
|
|
@@ -114,24 +115,24 @@ const U = (t) => {
|
|
|
114
115
|
c,
|
|
115
116
|
{
|
|
116
117
|
className: "bg-neutral-25 lg:px-ds-10xl px-6 py-12 sm:px-10",
|
|
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:
|
|
119
|
-
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
|
-
|
|
118
|
+
containerClassName: "!mx-auto !w-full !max-w-6xl !flex-col !items-start !gap-8 !px-0 !py-0 md:!gap-10 lg:!flex-row lg:!items-stretch",
|
|
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 }) }),
|
|
120
|
+
secondColumn: /* @__PURE__ */ r("div", { className: "w-full min-w-0 space-y-4 lg:min-w-0 lg:basis-[52%]", children: [
|
|
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
|
};
|
package/dist/components/Input.js
CHANGED
|
@@ -1,29 +1,28 @@
|
|
|
1
1
|
import { jsxs as t, jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import { useState as p } from "react";
|
|
3
3
|
import u from "clsx";
|
|
4
|
-
import { QuestionOutlineIcon as
|
|
5
|
-
import { CloseIcon as
|
|
6
|
-
import { InfoIcon as
|
|
7
|
-
const
|
|
8
|
-
|
|
9
|
-
label: d,
|
|
4
|
+
import { QuestionOutlineIcon as N } from "./QuestionOutlineIcon.js";
|
|
5
|
+
import { CloseIcon as y } from "./CloseIcon.js";
|
|
6
|
+
import { InfoIcon as I } from "./InfoIcon.js";
|
|
7
|
+
const $ = ({
|
|
8
|
+
label: m,
|
|
10
9
|
id: l,
|
|
11
|
-
name:
|
|
12
|
-
type:
|
|
13
|
-
placeholder:
|
|
10
|
+
name: d,
|
|
11
|
+
type: f = "text",
|
|
12
|
+
placeholder: h,
|
|
14
13
|
required: o = !1,
|
|
15
14
|
tooltip: i,
|
|
16
|
-
onInputChange:
|
|
17
|
-
containerClassName:
|
|
15
|
+
onInputChange: x,
|
|
16
|
+
containerClassName: b = "",
|
|
18
17
|
error: s = !1,
|
|
19
|
-
errorMessage:
|
|
20
|
-
...
|
|
18
|
+
errorMessage: g,
|
|
19
|
+
...v
|
|
21
20
|
}) => {
|
|
22
|
-
const [n, c] = p(!1), [
|
|
23
|
-
return /* @__PURE__ */ t("div", { className: `flex flex-col gap-2 ${
|
|
21
|
+
const [n, c] = p(!1), [w, r] = p(!1);
|
|
22
|
+
return /* @__PURE__ */ t("div", { className: `flex flex-col gap-2 ${b}`, children: [
|
|
24
23
|
/* @__PURE__ */ t("div", { className: "flex items-center gap-2", children: [
|
|
25
24
|
/* @__PURE__ */ t("label", { htmlFor: l, className: "font-bold text-neutral-800", children: [
|
|
26
|
-
|
|
25
|
+
m,
|
|
27
26
|
" ",
|
|
28
27
|
o && /* @__PURE__ */ e("span", { className: "text-neutral-800", children: "*" })
|
|
29
28
|
] }),
|
|
@@ -32,7 +31,7 @@ const z = ({
|
|
|
32
31
|
{
|
|
33
32
|
className: "group relative inline-flex",
|
|
34
33
|
onMouseLeave: () => {
|
|
35
|
-
|
|
34
|
+
r(!1);
|
|
36
35
|
},
|
|
37
36
|
children: [
|
|
38
37
|
/* @__PURE__ */ e(
|
|
@@ -42,9 +41,9 @@ const z = ({
|
|
|
42
41
|
type: "button",
|
|
43
42
|
"aria-expanded": n,
|
|
44
43
|
onClick: () => {
|
|
45
|
-
|
|
44
|
+
r(!1), c((a) => !a);
|
|
46
45
|
},
|
|
47
|
-
children: /* @__PURE__ */ e(
|
|
46
|
+
children: /* @__PURE__ */ e(N, { "aria-hidden": "true" })
|
|
48
47
|
}
|
|
49
48
|
),
|
|
50
49
|
/* @__PURE__ */ t(
|
|
@@ -53,7 +52,7 @@ const z = ({
|
|
|
53
52
|
className: u(
|
|
54
53
|
"invisible absolute top-6 -left-21 z-10 w-max max-w-60 rounded bg-neutral-800 p-2 transition-opacity lg:max-w-80 xl:-left-15 xl:max-w-112",
|
|
55
54
|
"opacity-0",
|
|
56
|
-
!
|
|
55
|
+
!w && "group-focus-within:visible group-focus-within:opacity-100 group-hover:visible group-hover:opacity-100",
|
|
57
56
|
n && "visible opacity-100"
|
|
58
57
|
),
|
|
59
58
|
role: "tooltip",
|
|
@@ -73,9 +72,9 @@ const z = ({
|
|
|
73
72
|
type: "button",
|
|
74
73
|
className: "cursor-pointer p-0",
|
|
75
74
|
onClick: () => {
|
|
76
|
-
|
|
75
|
+
r(!0), c(!1);
|
|
77
76
|
},
|
|
78
|
-
children: /* @__PURE__ */ e(
|
|
77
|
+
children: /* @__PURE__ */ e(y, { width: 20, height: 20, fill: "white" })
|
|
79
78
|
}
|
|
80
79
|
)
|
|
81
80
|
] })
|
|
@@ -89,29 +88,28 @@ const z = ({
|
|
|
89
88
|
/* @__PURE__ */ e(
|
|
90
89
|
"input",
|
|
91
90
|
{
|
|
92
|
-
"data-qa": m,
|
|
93
91
|
id: l,
|
|
94
|
-
name:
|
|
95
|
-
type:
|
|
96
|
-
placeholder:
|
|
92
|
+
name: d,
|
|
93
|
+
type: f,
|
|
94
|
+
placeholder: h,
|
|
97
95
|
required: o,
|
|
98
96
|
className: u(
|
|
99
97
|
"text-small focus-visible:outline-primary-500 w-full rounded border p-3 text-neutral-800 placeholder:text-neutral-600 focus-visible:outline-2",
|
|
100
98
|
s ? "border-error-500 bg-error-25" : "bg-neutral-25 border-neutral-400"
|
|
101
99
|
),
|
|
102
|
-
onChange: (
|
|
103
|
-
|
|
100
|
+
onChange: (a) => {
|
|
101
|
+
x?.(a.target.value);
|
|
104
102
|
},
|
|
105
|
-
...
|
|
103
|
+
...v
|
|
106
104
|
}
|
|
107
105
|
),
|
|
108
106
|
s && /* @__PURE__ */ t("p", { id: `${l}-error-message`, className: "text-small text-error-500 flex items-center gap-1", children: [
|
|
109
|
-
/* @__PURE__ */ e(
|
|
107
|
+
/* @__PURE__ */ e(I, { width: 20, height: 20, fill: "var(--color-error-500)", "aria-hidden": "true" }),
|
|
110
108
|
" ",
|
|
111
|
-
|
|
109
|
+
g
|
|
112
110
|
] })
|
|
113
111
|
] });
|
|
114
112
|
};
|
|
115
113
|
export {
|
|
116
|
-
|
|
114
|
+
$ as Input
|
|
117
115
|
};
|