@npm_leadtech/legal-contracts-ui 0.129.13 → 0.129.15
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/assets/style/themes.css +1 -1
- package/dist/components/AboutUsTemplate.d.ts +2 -0
- package/dist/components/AllDocumentsTemplate.d.ts +1 -1
- package/dist/components/AllDocumentsTemplate.js +21 -21
- package/dist/components/Anchor.d.ts +1 -1
- package/dist/components/Blockquote.d.ts +1 -1
- package/dist/components/Blockquote.js +9 -9
- package/dist/components/ContactFormSection.d.ts +1 -1
- package/dist/components/ContactUsTemplate.d.ts +1 -1
- package/dist/components/Emphasis.d.ts +1 -5
- package/dist/components/Emphasis.js +2 -8
- package/dist/components/Header.js +10 -10
- package/dist/components/Header2.d.ts +1 -1
- package/dist/components/Hero2Section.js +1 -2
- package/dist/components/HeroImageShell.js +7 -7
- package/dist/components/HowItWorksLawGeniusSection.js +8 -8
- package/dist/components/HowItWorksTemplate.d.ts +2 -2
- package/dist/components/HowItWorksTemplate.js +80 -95
- package/dist/components/HowItWorksTemplateTokens.d.ts +3 -5
- package/dist/components/HowItWorksTemplateTokens.js +5 -5
- package/dist/components/IntroSection.d.ts +2 -0
- package/dist/components/IntroSection.js +38 -13
- package/dist/components/LawGeniusImageShell.js +4 -4
- package/dist/components/LawGeniusStepCard.js +1 -1
- package/dist/components/Markdown.d.ts +1 -1
- package/dist/components/Markdown.js +9 -9
- package/dist/components/NotFoundTemplate.d.ts +2 -2
- package/dist/components/NotFoundTemplate.js +9 -10
- package/dist/components/OrderedList.d.ts +1 -1
- package/dist/components/OrderedList.js +9 -9
- package/dist/components/Paragraph.d.ts +1 -1
- package/dist/components/Paragraph.js +5 -2
- package/dist/components/PreviewDownload.js +1 -1
- package/dist/components/PricingContactChannelsSection.d.ts +18 -0
- package/dist/components/PricingContactChannelsSection.js +19 -0
- package/dist/components/PricingTemplate.d.ts +16 -0
- package/dist/components/ProductInfo.js +15 -13
- package/dist/components/RatafiaSection.js +44 -34
- package/dist/components/SearchBar.js +4 -4
- package/dist/components/StepImageShell.js +5 -5
- package/dist/components/TwoColumnSection.js +10 -10
- package/dist/components/UiComponents.d.ts +7 -11
- package/dist/components/UnorderedList.d.ts +1 -1
- package/dist/components/UnorderedList.js +7 -7
- package/dist/components/UnsubscribeTemplate.d.ts +1 -1
- package/dist/components/UploadZone.js +1 -1
- package/dist/components/index.d.ts +19 -2
- package/dist/globals.css +1 -1
- package/package.json +5 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
html
|
|
1
|
+
html{--color-principal: #078080;--color-background: #f8f9fa;--color-bg-modal-01: #6d727551;--color-drop-shadow-01: #02374a33;--color-error-25: #ffecef;--color-error-200: #f09d9e;--color-error-principal: #d63737;--color-neutral-White: #ffffff;--color-neutral-25: #f8f9fa;--color-neutral-50: #f3f7fa;--color-neutral-200: #dbe1e5;--color-neutral-400: #b5babd;--color-neutral-600: #6d7275;--color-neutral-800: #3d4042;--color-neutral-900: #1e2021;--color-primary-50: #eff7f5;--color-primary-100: #e4f8f3;--color-primary-200: #c0f7e8;--color-primary-300: #5dd8c3;--color-primary-400: #34b2a7;--color-primary-500: #078080;--color-primary-700: #05646e;--color-primary-800: #02374a;--color-primary-900: #032a38;--color-secondary-50: #fcf9f5;--color-secondary-100: #fcf4e5;--color-secondary-200: #f7e8cf;--color-secondary-300: #f5dab0;--color-secondary-400: #f4cc8c;--color-secondary-500: #f2bd6a;--color-secondary-600: #cd9a4c;--color-secondary-700: #936c2f}html[data-theme=districtlaws]{--font-main: "Inter", sans-serif;--color-principal: #f26600;--color-background: #f8f9fa;--color-bg-modal-01: #6d727551;--color-drop-shadow-01: #02374a33;--color-error-25: #ffecef;--color-error-200: #f09d9e;--color-error-principal: #d63737;--color-neutral-white: #ffffff;--color-neutral-25: #f8f9fa;--color-neutral-50: #f3f7fa;--color-neutral-200: #dbe1e5;--color-neutral-400: #b5babd;--color-neutral-600: #6d7275;--color-neutral-800: #3d4042;--color-neutral-900: #1e2021;--color-primary-50: #fff5ee;--color-primary-100: #ffe1cc;--color-primary-200: #ffc59b;--color-primary-300: #ffa05c;--color-primary-400: #ff862e;--color-primary-500: #f26600;--color-primary-700: #c95500;--color-primary-800: #4f2100;--color-primary-900: #220f00;--color-secondary-50: #eff7f5;--color-secondary-100: #e4f8f3;--color-secondary-200: #c0f7e8;--color-secondary-300: #5dd8c3;--color-secondary-400: #34b2a7;--color-secondary-500: #078080;--color-secondary-600: #05646e;--color-secondary-700: #02374a;--color-secondary-900: #032a38}html[data-theme=lawdistricts]{--font-main: "Inter", sans-serif;--color-principal: #485aff;--color-background: #f8f9fa;--color-bg-modal-01: #6d727551;--color-drop-shadow-01: #02374a33;--color-error-25: #ffecef;--color-error-200: #f09d9e;--color-error-principal: #d63737;--color-neutral-white: #ffffff;--color-neutral-25: #f8f9fa;--color-neutral-50: #f3f7fa;--color-neutral-200: #dbe1e5;--color-neutral-400: #b5babd;--color-neutral-600: #6d7275;--color-neutral-800: #3d4042;--color-neutral-900: #1e2021;--color-primary-50: #f9f9ff;--color-primary-100: #eceeff;--color-primary-200: #c3c9ff;--color-primary-300: #9aa4ff;--color-primary-400: #717fff;--color-primary-500: #485aff;--color-primary-700: #1725a6;--color-primary-800: #050e5a;--color-primary-900: #000533;--color-secondary-50: #eff7f5;--color-secondary-100: #e4f8f3;--color-secondary-200: #c0f7e8;--color-secondary-300: #5dd8c3;--color-secondary-400: #34b2a7;--color-secondary-500: #078080;--color-secondary-600: #05646e;--color-secondary-700: #02374a;--color-secondary-900: #032a38}html[data-theme=lawdistrict]{--font-main: "Inter", sans-serif;--background: #ffffff;--foreground: #171717;--font-inter: "Inter", sans-serif;--font-lora: "Lora", serif;--primary-50: #eff7f5;--primary-100: #e4f8f3;--primary-200: #c0f7e8;--primary-300: #5dd8c3;--primary-400: #34b2a7;--primary-500: #078080;--primary-700: #05646e;--primary-800: #02374a;--primary-900: #032a38;--secondary-50: #fcf9f5;--secondary-100: #fcf4e5;--secondary-200: #f7e8cf;--secondary-300: #f5dab0;--secondary-400: #f4cc8c;--secondary-500: #f2bd6a;--secondary-600: #cd9a4c;--secondary-700: #936c2f;--neutral-25: #f8f9fa;--neutral-50: #f3f7fa;--neutral-200: #dbe1e5;--neutral-400: #b5babd;--neutral-600: #6d7275;--neutral-800: #3d4042;--neutral-900: #1e2021;--neutral-white: #ffffff;--error-25: #ffecef;--error-200: #f09d9e;--error-500: #d63737}html[data-theme=lawsdistrict]{--font-main: "Inter", sans-serif;--color-principal: #7d2eff;--color-background: #f8f9fa;--color-bg-modal-01: #6d727551;--color-drop-shadow-01: #02374a33;--color-error-25: #ffecef;--color-error-200: #f09d9e;--color-error-principal: #d63737;--color-neutral-white: #ffffff;--color-neutral-25: #f8f9fa;--color-neutral-50: #f3f7fa;--color-neutral-200: #dbe1e5;--color-neutral-400: #b5babd;--color-neutral-600: #6d7275;--color-neutral-800: #3d4042;--color-neutral-900: #1e2021;--color-primary-50: #f9f5ff;--color-primary-100: #e3d1ff;--color-primary-200: #b68aff;--color-primary-300: #a56dff;--color-primary-400: #9e63ff;--color-primary-500: #7d2eff;--color-primary-700: #320085;--color-primary-800: #23005c;--color-primary-900: #11002d;--color-secondary-50: #eff7f5;--color-secondary-100: #e4f8f3;--color-secondary-200: #c0f7e8;--color-secondary-300: #5dd8c3;--color-secondary-400: #34b2a7;--color-secondary-500: #078080;--color-secondary-600: #05646e;--color-secondary-700: #02374a;--color-secondary-900: #032a38}html[data-theme=lawdistrictinfo]{--font-main: "Inter", sans-serif;--color-principal: #00b649;--color-background: #f8f9fa;--color-bg-modal-01: #6d727551;--color-drop-shadow-01: #02374a33;--color-error-25: #ffecef;--color-error-200: #f09d9e;--color-error-principal: #d63737;--color-neutral-white: #ffffff;--color-neutral-25: #f8f9fa;--color-neutral-50: #f3f7fa;--color-neutral-200: #dbe1e5;--color-neutral-400: #b5babd;--color-neutral-600: #6d7275;--color-neutral-800: #3d4042;--color-neutral-900: #1e2021;--color-primary-50: #e7fff1;--color-primary-100: #d5ffe6;--color-primary-200: #6affa5;--color-primary-300: #16ff73;--color-primary-400: #00df59;--color-primary-500: #00b649;--color-primary-700: #008e39;--color-primary-800: #003c18;--color-primary-900: #001709;--color-secondary-50: #eff7f5;--color-secondary-100: #e4f8f3;--color-secondary-200: #c0f7e8;--color-secondary-300: #5dd8c3;--color-secondary-400: #34b2a7;--color-secondary-500: #078080;--color-secondary-600: #05646e;--color-secondary-700: #02374a;--color-secondary-900: #032a38}html[data-theme=uslawdistrict]{--font-main: "Inter", sans-serif;--color-principal: #d68d00;--color-background: #f8f9fa;--color-bg-modal-01: #6d727551;--color-drop-shadow-01: #02374a33;--color-error-25: #ffecef;--color-error-200: #f09d9e;--color-error-principal: #d63737;--color-neutral-white: #ffffff;--color-neutral-25: #f8f9fa;--color-neutral-50: #f3f7fa;--color-neutral-200: #dbe1e5;--color-neutral-400: #b5babd;--color-neutral-600: #6d7275;--color-neutral-800: #3d4042;--color-neutral-900: #1e2021;--color-primary-50: #fffbf2;--color-primary-100: #fff6e5;--color-primary-200: #ffe6b7;--color-primary-300: #ffc75c;--color-primary-400: #ffa800;--color-primary-500: #d68d00;--color-primary-700: #855800;--color-primary-800: #3d2800;--color-primary-900: #231700;--color-secondary-50: #eff7f5;--color-secondary-100: #e4f8f3;--color-secondary-200: #c0f7e8;--color-secondary-300: #5dd8c3;--color-secondary-400: #34b2a7;--color-secondary-500: #078080;--color-secondary-600: #05646e;--color-secondary-700: #02374a;--color-secondary-900: #032a38}html[data-theme=legalfinity]{--font-main: "Poppins", sans-serif;--background: #ffffff;--foreground: #171717;--font-inter: "Poppins", sans-serif;--font-lora: "Poppins", serif;--primary-50: #e9f5ff;--primary-100: #d7ecff;--primary-200: #b7daff;--primary-300: #8bc1ff;--primary-400: #5e99ff;--primary-500: #3970ff;--primary-700: #1039f5;--primary-800: #163399;--primary-900: #07144b;--secondary-50: #fff6ed;--secondary-100: #fff0d5;--secondary-200: #fedcaa;--secondary-300: #fdc374;--secondary-400: #fb9e3c;--secondary-500: #f98116;--secondary-600: #ea660c;--secondary-700: #d3530d;--neutral-25: #f5f7fa;--neutral-50: #ebeef3;--neutral-200: #d2d9e5;--neutral-400: #abbbce;--neutral-600: #496080;--neutral-800: #2f3a4b;--neutral-900: #1f2532;--neutral-white: #ffffff;--error-25: #ffecef;--error-200: #f09d9e;--error-500: #d63737}
|
|
@@ -9,7 +9,7 @@ export declare interface AllDocumentsTemplateProps {
|
|
|
9
9
|
categories: DocumentCategoriesProps;
|
|
10
10
|
documentSections: DocumentSectionProps[];
|
|
11
11
|
contentItems: ContentItemProps[];
|
|
12
|
-
faqSection
|
|
12
|
+
faqSection: FaqSectionProps;
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
export interface AlternativeSubtypeDocumentProps extends BaseSubtypeDocumentProps {
|
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { JumboCard as
|
|
3
|
-
import { Breadcrumb as
|
|
1
|
+
import { jsxs as a, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { JumboCard as c } from "./JumboCard.js";
|
|
3
|
+
import { Breadcrumb as i } from "./Breadcrumb.js";
|
|
4
4
|
import { DocumentCategories as x } from "./DocumentCategories.js";
|
|
5
5
|
import { DocumentSection as n } from "./DocumentSection.js";
|
|
6
|
-
import { ContentItem as
|
|
7
|
-
import { FaqSection as
|
|
6
|
+
import { ContentItem as f } from "./ContentItem.js";
|
|
7
|
+
import { FaqSection as d } from "./FaqSection.js";
|
|
8
8
|
const w = ({
|
|
9
|
-
jumbo:
|
|
10
|
-
breadcrumb:
|
|
11
|
-
categories:
|
|
12
|
-
documentSections:
|
|
13
|
-
contentItems:
|
|
14
|
-
faqSection:
|
|
15
|
-
}) => /* @__PURE__ */
|
|
16
|
-
/* @__PURE__ */
|
|
17
|
-
/* @__PURE__ */
|
|
18
|
-
/* @__PURE__ */
|
|
19
|
-
/* @__PURE__ */
|
|
20
|
-
/* @__PURE__ */
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
/* @__PURE__ */
|
|
24
|
-
|
|
9
|
+
jumbo: m,
|
|
10
|
+
breadcrumb: t,
|
|
11
|
+
categories: r,
|
|
12
|
+
documentSections: o,
|
|
13
|
+
contentItems: p,
|
|
14
|
+
faqSection: s
|
|
15
|
+
}) => /* @__PURE__ */ a("main", { className: "mx-auto flex flex-1 flex-col gap-4 px-6 pt-8 pb-16 lg:px-8 xl:max-w-300 xl:px-0", children: [
|
|
16
|
+
/* @__PURE__ */ e(c, { ...m }),
|
|
17
|
+
/* @__PURE__ */ e(i, { ...t, className: "pt-2" }),
|
|
18
|
+
/* @__PURE__ */ a("div", { className: "mx-auto flex justify-center gap-4 text-neutral-800 lg:gap-26.5 xl:gap-31.5", children: [
|
|
19
|
+
/* @__PURE__ */ e("aside", { className: "sticky top-24 hidden self-start md:block", children: /* @__PURE__ */ e(x, { ...r }) }),
|
|
20
|
+
/* @__PURE__ */ a("div", { className: "flex flex-col gap-10", children: [
|
|
21
|
+
o.map((l) => /* @__PURE__ */ e(n, { ...l }, l.id)),
|
|
22
|
+
/* @__PURE__ */ e("span", { className: "h-px w-full bg-neutral-200" }),
|
|
23
|
+
/* @__PURE__ */ e("div", { className: "w-full", children: p.map((l) => /* @__PURE__ */ e(f, { ...l }, l.id)) }),
|
|
24
|
+
/* @__PURE__ */ e(d, { ...s })
|
|
25
25
|
] })
|
|
26
26
|
] })
|
|
27
27
|
] });
|
|
@@ -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' | 'ratafia' | 'tooltip' | 'about-us' | 'pricing' | 'unsubscribe' | 'cookies'
|
|
6
|
+
variant?: 'default' | 'legal' | 'ratafia' | 'tooltip' | 'about-us' | 'pricing' | 'unsubscribe' | 'cookies';
|
|
7
7
|
}
|
|
8
8
|
|
|
@@ -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' | 'ratafia' | '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 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
|
};
|
|
@@ -1,8 +1,4 @@
|
|
|
1
1
|
import { JSX } from 'react/jsx-runtime';
|
|
2
2
|
|
|
3
|
-
export declare const Emphasis: ({ children
|
|
4
|
-
|
|
5
|
-
export interface EmphasisProps extends React.ComponentProps<'em'> {
|
|
6
|
-
variant?: 'default' | 'legal' | 'ratafia' | 'tooltip' | 'about-us' | 'pricing' | 'unsubscribe' | 'cookies' | 'ai';
|
|
7
|
-
}
|
|
3
|
+
export declare const Emphasis: ({ children }: React.ComponentProps<"em">) => JSX.Element;
|
|
8
4
|
|
|
@@ -1,11 +1,5 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
const i = ({ children: a,
|
|
3
|
-
const t = {
|
|
4
|
-
default: "font-normal tracking-tight text-neutral-600 not-italic",
|
|
5
|
-
ai: ""
|
|
6
|
-
}, s = t[n] ?? t.default;
|
|
7
|
-
return /* @__PURE__ */ r("em", { className: s, children: a });
|
|
8
|
-
};
|
|
1
|
+
import { jsx as a } from "react/jsx-runtime";
|
|
2
|
+
const i = ({ children: t }) => /* @__PURE__ */ a("em", { className: "font-normal tracking-tight text-neutral-600 not-italic", children: t });
|
|
9
3
|
export {
|
|
10
4
|
i as Emphasis
|
|
11
5
|
};
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { jsxs as r, jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
3
|
import { MobileMenu as o } from "./MobileMenu.js";
|
|
4
|
-
import { useScroll as
|
|
5
|
-
import { NavMenu as
|
|
4
|
+
import { useScroll as c } from "../shared/hooks/useScroll.js";
|
|
5
|
+
import { NavMenu as s } from "./NavMenu.js";
|
|
6
6
|
import { LanguageSelector as p } from "./LanguageSelector.js";
|
|
7
7
|
import { ScalatorIcon as x } from "./ScalatorIcon.js";
|
|
8
8
|
import { SearchBar as f } from "./SearchBar.js";
|
|
9
9
|
const j = ({
|
|
10
10
|
logo: l,
|
|
11
11
|
navMenu: d,
|
|
12
|
-
searchBarProps:
|
|
13
|
-
languageSelectorProps:
|
|
12
|
+
searchBarProps: i,
|
|
13
|
+
languageSelectorProps: a,
|
|
14
14
|
userActions: n,
|
|
15
15
|
mobileMenu: t
|
|
16
16
|
}) => {
|
|
17
|
-
const m =
|
|
17
|
+
const m = c(10);
|
|
18
18
|
return /* @__PURE__ */ r("div", { className: "sticky top-0 z-1000 flex w-full flex-col", children: [
|
|
19
19
|
/* @__PURE__ */ e(
|
|
20
20
|
"header",
|
|
@@ -23,17 +23,17 @@ const j = ({
|
|
|
23
23
|
children: /* @__PURE__ */ r("div", { className: "flex w-full items-center justify-between px-4 py-4 text-neutral-800 md:px-8", children: [
|
|
24
24
|
/* @__PURE__ */ r("div", { className: "flex flex-1 items-center gap-8", children: [
|
|
25
25
|
l,
|
|
26
|
-
/* @__PURE__ */ e(
|
|
26
|
+
/* @__PURE__ */ e(s, { className: "hidden lg:block", ...d })
|
|
27
27
|
] }),
|
|
28
28
|
/* @__PURE__ */ r("div", { className: "text-medium hidden flex-wrap items-center gap-4 lg:flex xl:gap-6", children: [
|
|
29
|
-
/* @__PURE__ */ e(f, { ...
|
|
30
|
-
|
|
29
|
+
/* @__PURE__ */ e(f, { ...i }),
|
|
30
|
+
a && /* @__PURE__ */ e("div", { className: "hidden xl:block", children: /* @__PURE__ */ e(p, { ...a }) }),
|
|
31
31
|
n
|
|
32
32
|
] }),
|
|
33
33
|
/* @__PURE__ */ r(
|
|
34
34
|
"button",
|
|
35
35
|
{
|
|
36
|
-
className: "text-small text-primary-500 flex items-center justify-center gap-1 rounded border border-neutral-400 bg-
|
|
36
|
+
className: "text-small text-primary-500 flex items-center justify-center gap-1 rounded border border-neutral-400 bg-white px-2 py-1 lg:hidden",
|
|
37
37
|
onClick: t.onOpen,
|
|
38
38
|
"aria-label": "Open menu",
|
|
39
39
|
"aria-expanded": t.isOpen,
|
|
@@ -46,7 +46,7 @@ const j = ({
|
|
|
46
46
|
] })
|
|
47
47
|
}
|
|
48
48
|
),
|
|
49
|
-
/* @__PURE__ */ e(o, { ...t, logo: l, userActions: n, searchBarProps:
|
|
49
|
+
/* @__PURE__ */ e(o, { ...t, logo: l, userActions: n, searchBarProps: i })
|
|
50
50
|
] });
|
|
51
51
|
};
|
|
52
52
|
export {
|
|
@@ -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' | 'ratafia' | 'tooltip' | 'about-us' | 'pricing' | 'unsubscribe' | 'cookies'
|
|
6
|
+
variant?: 'default' | 'legal' | 'ratafia' | 'tooltip' | 'about-us' | 'pricing' | 'unsubscribe' | 'cookies';
|
|
7
7
|
}
|
|
8
8
|
|
|
@@ -43,8 +43,7 @@ const v = ({
|
|
|
43
43
|
s,
|
|
44
44
|
{
|
|
45
45
|
className: t("text-medium [&_p:last-child]:mb-0", e ? "text-white" : "text-neutral-800"),
|
|
46
|
-
content: o
|
|
47
|
-
variant: "ai"
|
|
46
|
+
content: o
|
|
48
47
|
}
|
|
49
48
|
),
|
|
50
49
|
/* @__PURE__ */ a("div", { className: "flex flex-wrap gap-4", children: c.map((r) => /* @__PURE__ */ l(
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
const
|
|
1
|
+
import { jsx as l } from "react/jsx-runtime";
|
|
2
|
+
const a = { w: 1200, h: 900 }, n = "relative mx-auto aspect-[4/3] w-full max-w-79 overflow-hidden rounded-2xl bg-neutral-100 md:mx-0 md:max-w-none", t = "relative mx-auto w-full max-w-79 overflow-hidden rounded-2xl md:mx-0 md:max-w-none", r = ({ empty: e, children: o }) => /* @__PURE__ */ l("div", { className: e ? n : t, "aria-hidden": e ? !0 : void 0, children: e ? null : o }), i = ({ src: e, alt: o, priority: d }) => e ? /* @__PURE__ */ l(r, { children: /* @__PURE__ */ l(
|
|
3
3
|
"img",
|
|
4
4
|
{
|
|
5
|
-
src:
|
|
5
|
+
src: e,
|
|
6
6
|
alt: o,
|
|
7
|
-
width:
|
|
8
|
-
height:
|
|
7
|
+
width: a.w,
|
|
8
|
+
height: a.h,
|
|
9
9
|
className: "h-auto w-full max-w-full object-cover",
|
|
10
10
|
...d ? { loading: "eager" } : { loading: "lazy" }
|
|
11
11
|
}
|
|
12
|
-
) }) : /* @__PURE__ */
|
|
12
|
+
) }) : /* @__PURE__ */ l(r, { empty: !0 });
|
|
13
13
|
export {
|
|
14
|
-
|
|
14
|
+
i as HeroImageShell
|
|
15
15
|
};
|
|
@@ -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",
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
2
3
|
|
|
3
4
|
export declare type HowItWorksExamplesProps = {
|
|
4
5
|
eyebrow: string;
|
|
@@ -58,8 +59,7 @@ export declare interface HowItWorksTemplateProps {
|
|
|
58
59
|
contentMarkdown: string;
|
|
59
60
|
steps: HowItWorksLawGeniusStep[];
|
|
60
61
|
belowStepsMarkdown: string;
|
|
61
|
-
|
|
62
|
-
imageAlt: string;
|
|
62
|
+
image: ReactNode;
|
|
63
63
|
cta: {
|
|
64
64
|
href: string;
|
|
65
65
|
label: string;
|
|
@@ -1,139 +1,124 @@
|
|
|
1
1
|
import { jsx as e, jsxs as r, Fragment as w } from "react/jsx-runtime";
|
|
2
|
-
import { clsx as
|
|
3
|
-
import { howItWorksLawGeniusCtaLinkClassName as
|
|
4
|
-
import { HeroImageShell as
|
|
5
|
-
import { RatafiaSection as
|
|
6
|
-
import { LawGeniusStepCard as
|
|
7
|
-
import { ResourcesImageShell as
|
|
2
|
+
import { clsx as h } from "clsx";
|
|
3
|
+
import { howItWorksLawGeniusCtaLinkClassName as N, howItWorksHeroCtaLinkClassName as b, howItWorksLawGeniusBelowStepsMarkdownClassName as k, howItWorksResourcesSupportBodyClassName as C, howItWorksResourcesCtaLinkClassName as y } from "./HowItWorksTemplateTokens.js";
|
|
4
|
+
import { HeroImageShell as v } from "./HeroImageShell.js";
|
|
5
|
+
import { RatafiaSection as S } from "./RatafiaSection.js";
|
|
6
|
+
import { LawGeniusStepCard as M } from "./LawGeniusStepCard.js";
|
|
7
|
+
import { ResourcesImageShell as I } from "./ResourcesImageShell.js";
|
|
8
8
|
import { StepImageShell as W } from "./StepImageShell.js";
|
|
9
|
-
import {
|
|
10
|
-
import { IntroSection as
|
|
11
|
-
import { Markdown as
|
|
12
|
-
import { TwoColumnSection as
|
|
13
|
-
import {
|
|
9
|
+
import { LinkWrapper as L } from "./LinkWrapper.js";
|
|
10
|
+
import { IntroSection as B } from "./IntroSection.js";
|
|
11
|
+
import { Markdown as m } from "./Markdown.js";
|
|
12
|
+
import { TwoColumnSection as o } from "./TwoColumnSection.js";
|
|
13
|
+
import { Button as A } from "./Button.js";
|
|
14
14
|
const U = (t) => {
|
|
15
|
-
const
|
|
16
|
-
/* @__PURE__ */ e("h2", { className: "
|
|
17
|
-
/* @__PURE__ */ e("div", { className: "text-
|
|
18
|
-
] }),
|
|
19
|
-
return
|
|
20
|
-
}, J = ({ hero: t, processSteps:
|
|
21
|
-
const
|
|
22
|
-
|
|
23
|
-
{
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
children: /* @__PURE__ */ e("a", { href: a.cta.href, className: b, children: a.cta.label })
|
|
28
|
-
}
|
|
29
|
-
);
|
|
30
|
-
return /* @__PURE__ */ r("main", { className: "flex w-full max-w-full min-w-0 flex-1 flex-col", children: [
|
|
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
|
-
/* @__PURE__ */ r("div", { className: "text-center", children: [
|
|
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: t.eyebrow }),
|
|
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
|
-
] }),
|
|
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 })
|
|
15
|
+
const i = /* @__PURE__ */ r("div", { className: "w-full min-w-0 space-y-6 text-neutral-800 md:shrink md:grow-0 md:basis-1/2", children: [
|
|
16
|
+
/* @__PURE__ */ e("h2", { className: "text-super-large font-bold text-neutral-800", children: t.title }),
|
|
17
|
+
/* @__PURE__ */ e("div", { className: "text-medium space-y-3 text-neutral-800", children: /* @__PURE__ */ e(m, { variant: "legal", content: t.bodyMarkdown }) })
|
|
18
|
+
] }), l = /* @__PURE__ */ e("div", { className: "w-full min-w-0 md:shrink md:grow-0 md:basis-1/2", children: /* @__PURE__ */ e(W, { src: t.imageUrl, alt: t.imageAlt }) });
|
|
19
|
+
return { firstColumn: i, secondColumn: l };
|
|
20
|
+
}, J = ({ hero: t, processSteps: i, lawGenius: l, resources: n }) => {
|
|
21
|
+
const c = t.introMarkdown.trim().length > 0, d = t.closingMarkdown.trim().length > 0, p = n.supportBodyMarkdown.trim().length > 0, x = l.belowStepsMarkdown.trim().length > 0, { examples: s } = n, f = /* @__PURE__ */ e(L, { size: "default", variant: "primary-green", className: "shrink-0 font-bold", children: /* @__PURE__ */ e("a", { href: l.cta.href, className: N, children: l.cta.label }) });
|
|
22
|
+
return /* @__PURE__ */ r("main", { className: "flex w-full max-w-full min-w-0 flex-1 flex-col overflow-x-clip", children: [
|
|
23
|
+
/* @__PURE__ */ e("section", { className: "bg-primary-50 lg:px-ds-10xl px-6 pt-4 pb-12", children: /* @__PURE__ */ r("div", { className: "mx-auto flex max-w-6xl flex-col items-center gap-12", children: [
|
|
24
|
+
/* @__PURE__ */ r("div", { className: "flex w-full flex-col items-center gap-2", children: [
|
|
25
|
+
/* @__PURE__ */ e("p", { className: "text-small text-center font-semibold tracking-[0.3em] text-neutral-600 uppercase", children: t.eyebrow }),
|
|
26
|
+
/* @__PURE__ */ e("span", { className: "max-w-ds-10xl min-w-ds-7xl h-px w-full shrink-0 bg-neutral-400", "aria-hidden": !0 })
|
|
38
27
|
] }),
|
|
28
|
+
/* @__PURE__ */ e("h1", { className: "font-lora text-super-hero mx-auto max-w-3xl text-center font-normal text-neutral-800", children: t.title }),
|
|
39
29
|
/* @__PURE__ */ e(
|
|
40
|
-
|
|
30
|
+
B,
|
|
41
31
|
{
|
|
42
|
-
className: "bg-transparent",
|
|
43
|
-
containerClassName: "w-full !max-w-none flex-col gap-
|
|
44
|
-
|
|
32
|
+
className: "w-full bg-transparent",
|
|
33
|
+
containerClassName: "w-full !max-w-none !flex-col !gap-8 !px-0 !py-0 md:!flex-row md:!items-stretch md:!gap-16",
|
|
34
|
+
firstColumnClassName: "!mb-0",
|
|
35
|
+
secondColumnClassName: "!mt-0",
|
|
36
|
+
image: /* @__PURE__ */ e(v, { src: t.imageUrl, alt: t.imageAlt, priority: t.imagePriority }),
|
|
45
37
|
cta: {
|
|
46
|
-
size: "
|
|
38
|
+
size: "default",
|
|
47
39
|
variant: "primary-green",
|
|
48
|
-
className: "text-medium
|
|
49
|
-
children: /* @__PURE__ */ e("a", { href: t.cta.href, className:
|
|
40
|
+
className: "text-medium w-full shrink-0 justify-center font-bold md:w-fit md:justify-start",
|
|
41
|
+
children: /* @__PURE__ */ e("a", { href: t.cta.href, className: b, children: t.cta.label })
|
|
50
42
|
},
|
|
51
|
-
children: /* @__PURE__ */ r("div", { className: "text-medium space-y-4 [&_ul]:my-
|
|
52
|
-
|
|
53
|
-
/* @__PURE__ */ e("ul", { className: "text-medium space-y-3", children: t.bullets.map((
|
|
43
|
+
children: /* @__PURE__ */ r("div", { className: "text-medium space-y-4 [&_ul]:my-4 [&_ul]:list-disc [&_ul]:pl-[1.2rem]", children: [
|
|
44
|
+
c && /* @__PURE__ */ e(m, { variant: "legal", content: t.introMarkdown }),
|
|
45
|
+
/* @__PURE__ */ e("ul", { className: "text-medium space-y-3", children: t.bullets.map((a) => /* @__PURE__ */ r("li", { className: "flex items-start gap-2", children: [
|
|
54
46
|
/* @__PURE__ */ e("span", { className: "bg-primary-600 mt-1 h-2.5 w-2.5", "aria-hidden": !0 }),
|
|
55
47
|
/* @__PURE__ */ r("span", { children: [
|
|
56
48
|
/* @__PURE__ */ r("strong", { children: [
|
|
57
|
-
|
|
49
|
+
a.strong,
|
|
58
50
|
" "
|
|
59
51
|
] }),
|
|
60
|
-
|
|
52
|
+
a.text
|
|
61
53
|
] })
|
|
62
|
-
] },
|
|
63
|
-
|
|
54
|
+
] }, a.id)) }),
|
|
55
|
+
d && /* @__PURE__ */ e(m, { variant: "legal", content: t.closingMarkdown })
|
|
64
56
|
] })
|
|
65
57
|
}
|
|
66
58
|
)
|
|
67
59
|
] }) }),
|
|
68
|
-
|
|
69
|
-
const { firstColumn: u, secondColumn:
|
|
60
|
+
i.map((a) => {
|
|
61
|
+
const { firstColumn: u, secondColumn: g } = U(a);
|
|
70
62
|
return /* @__PURE__ */ e(
|
|
71
|
-
|
|
63
|
+
o,
|
|
72
64
|
{
|
|
73
|
-
className: `${
|
|
74
|
-
containerClassName:
|
|
75
|
-
"!mx-auto !w-full !max-w-6xl !px-0 !py-0 !gap-8 md
|
|
76
|
-
|
|
65
|
+
className: `${a.background} lg:px-ds-10xl px-6 py-12`,
|
|
66
|
+
containerClassName: h(
|
|
67
|
+
"!mx-auto !w-full !max-w-6xl !px-0 !py-0 !gap-8 md:items-center lg:!gap-20",
|
|
68
|
+
a.imageFirstOnMobile ? "!flex-col md:!flex-row" : "!flex-col-reverse md:!flex-row",
|
|
69
|
+
a.reverse && "md:!flex-row-reverse"
|
|
77
70
|
),
|
|
78
71
|
firstColumn: u,
|
|
79
|
-
secondColumn:
|
|
72
|
+
secondColumn: g
|
|
80
73
|
},
|
|
81
|
-
|
|
74
|
+
a.id
|
|
82
75
|
);
|
|
83
76
|
}),
|
|
84
77
|
/* @__PURE__ */ e(
|
|
85
|
-
|
|
78
|
+
S,
|
|
86
79
|
{
|
|
87
|
-
title:
|
|
88
|
-
content:
|
|
89
|
-
stepsSlot: /* @__PURE__ */ e(w, { children:
|
|
90
|
-
|
|
80
|
+
title: l.title,
|
|
81
|
+
content: l.contentMarkdown,
|
|
82
|
+
stepsSlot: /* @__PURE__ */ e(w, { children: l.steps.map((a) => /* @__PURE__ */ e(
|
|
83
|
+
M,
|
|
91
84
|
{
|
|
92
|
-
title:
|
|
93
|
-
descriptionMarkdown:
|
|
94
|
-
iconUrl:
|
|
95
|
-
iconAlt:
|
|
85
|
+
title: a.title,
|
|
86
|
+
descriptionMarkdown: a.descriptionMarkdown,
|
|
87
|
+
iconUrl: a.iconUrl,
|
|
88
|
+
iconAlt: a.iconAlt ?? ""
|
|
96
89
|
},
|
|
97
|
-
|
|
90
|
+
a.id
|
|
98
91
|
)) }),
|
|
99
|
-
belowStepsSlot:
|
|
100
|
-
|
|
92
|
+
belowStepsSlot: x ? /* @__PURE__ */ e(
|
|
93
|
+
m,
|
|
101
94
|
{
|
|
102
95
|
variant: "ratafia",
|
|
103
|
-
content:
|
|
104
|
-
className:
|
|
96
|
+
content: l.belowStepsMarkdown,
|
|
97
|
+
className: k
|
|
105
98
|
}
|
|
106
99
|
) : null,
|
|
107
100
|
cta: f,
|
|
108
101
|
skipCtaWrapper: !0,
|
|
109
|
-
image:
|
|
110
|
-
sectionClassName:
|
|
102
|
+
image: l.image,
|
|
103
|
+
sectionClassName: l.sectionClassName ?? "bg-primary-50 px-6 py-12 lg:px-ds-10xl"
|
|
111
104
|
}
|
|
112
105
|
),
|
|
113
106
|
/* @__PURE__ */ e(
|
|
114
|
-
|
|
107
|
+
o,
|
|
115
108
|
{
|
|
116
|
-
className: "
|
|
117
|
-
containerClassName: "!mx-auto !w-full !max-w-6xl !items-start !gap-8 !px-0 !py-0 md:!
|
|
118
|
-
firstColumn: /* @__PURE__ */ e("div", { className: "w-full min-w-0 shrink-0
|
|
119
|
-
secondColumn: /* @__PURE__ */ r("div", { className: "w-full space-y-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
/* @__PURE__ */ e("dt", { className: "font-semibold", children:
|
|
125
|
-
/* @__PURE__ */ e("dd", { children:
|
|
126
|
-
] }, `${
|
|
127
|
-
|
|
128
|
-
/* @__PURE__ */ e(
|
|
129
|
-
o,
|
|
130
|
-
{
|
|
131
|
-
size: "small",
|
|
132
|
-
variant: "primary-green",
|
|
133
|
-
className: "text-small inline-flex w-auto justify-center font-bold",
|
|
134
|
-
children: /* @__PURE__ */ e("a", { href: s.cta.href, className: v, children: s.cta.label })
|
|
135
|
-
}
|
|
136
|
-
)
|
|
109
|
+
className: "lg:px-ds-10xl bg-white px-6 pt-12 pb-14",
|
|
110
|
+
containerClassName: "!mx-auto !w-full !max-w-6xl !flex-col !items-start !gap-8 !px-0 !py-0 md:!flex-row md:!items-center lg:!gap-20",
|
|
111
|
+
firstColumn: /* @__PURE__ */ e("div", { className: "w-full min-w-0 md:shrink md:grow-0 md:basis-1/2", children: /* @__PURE__ */ e(I, { src: n.imageUrl, alt: n.imageAlt }) }),
|
|
112
|
+
secondColumn: /* @__PURE__ */ r("div", { className: "w-full min-w-0 space-y-6 md:shrink md:grow-0 md:basis-1/2", children: [
|
|
113
|
+
s.eyebrow && /* @__PURE__ */ e("p", { className: "text-xs font-semibold tracking-[0.2em] text-neutral-500 uppercase", children: s.eyebrow }),
|
|
114
|
+
s.title && /* @__PURE__ */ e("h3", { className: "text-super-large font-bold text-neutral-800", children: s.title }),
|
|
115
|
+
p && /* @__PURE__ */ e("div", { className: `text-medium space-y-3 text-neutral-800 ${C}`, children: /* @__PURE__ */ e(m, { variant: "legal", content: n.supportBodyMarkdown }) }),
|
|
116
|
+
s.rows.length > 0 && /* @__PURE__ */ e("dl", { className: "text-medium space-y-2 text-neutral-800", children: s.rows.map((a) => /* @__PURE__ */ r("div", { className: "flex flex-wrap gap-x-2", children: [
|
|
117
|
+
/* @__PURE__ */ e("dt", { className: "font-semibold", children: a.label }),
|
|
118
|
+
/* @__PURE__ */ e("dd", { children: a.value })
|
|
119
|
+
] }, `${a.label}-${a.value}`)) }),
|
|
120
|
+
s.footer && /* @__PURE__ */ e("p", { className: "text-medium text-neutral-600", children: s.footer }),
|
|
121
|
+
/* @__PURE__ */ e(A, { size: "default", variant: "primary-green", className: "self-start font-bold", children: /* @__PURE__ */ e("a", { href: n.cta.href, className: y, children: n.cta.label }) })
|
|
137
122
|
] })
|
|
138
123
|
}
|
|
139
124
|
)
|