@npm_leadtech/legal-contracts-ui 0.129.4 → 0.129.6
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/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 +68 -68
- package/dist/components/HowItWorksTemplateTokens.d.ts +1 -3
- package/dist/components/HowItWorksTemplateTokens.js +4 -4
- package/dist/components/IntroSection.js +13 -12
- 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/Modal.d.ts +1 -2
- package/dist/components/Modal.js +13 -13
- 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/ProductInfo.js +15 -13
- package/dist/components/RatafiaSection.js +47 -37
- 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 +3 -4
- package/dist/globals.css +1 -1
- package/package.json +1 -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,84 +1,84 @@
|
|
|
1
|
-
import { jsx as e, jsxs as r, Fragment as
|
|
1
|
+
import { jsx as e, jsxs as r, Fragment as h } from "react/jsx-runtime";
|
|
2
2
|
import { clsx as N } from "clsx";
|
|
3
3
|
import { howItWorksLawGeniusCtaLinkClassName as b, howItWorksHeroCtaLinkClassName as k, howItWorksLawGeniusBelowStepsMarkdownClassName as y, howItWorksResourcesSupportBodyClassName as C, howItWorksResourcesCtaLinkClassName as v } from "./HowItWorksTemplateTokens.js";
|
|
4
4
|
import { HeroImageShell as S } from "./HeroImageShell.js";
|
|
5
5
|
import { RatafiaSection as M } from "./RatafiaSection.js";
|
|
6
6
|
import { LawGeniusStepCard as I } from "./LawGeniusStepCard.js";
|
|
7
|
-
import { ResourcesImageShell as
|
|
8
|
-
import { StepImageShell as
|
|
7
|
+
import { ResourcesImageShell as W } from "./ResourcesImageShell.js";
|
|
8
|
+
import { StepImageShell as j } from "./StepImageShell.js";
|
|
9
9
|
import { Button as o } from "./Button.js";
|
|
10
|
-
import { IntroSection as
|
|
11
|
-
import { Markdown as
|
|
10
|
+
import { IntroSection as B } from "./IntroSection.js";
|
|
11
|
+
import { Markdown as m } from "./Markdown.js";
|
|
12
12
|
import { TwoColumnSection as c } from "./TwoColumnSection.js";
|
|
13
|
-
|
|
14
|
-
const
|
|
15
|
-
|
|
16
|
-
/* @__PURE__ */ e("
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
const d = t.introMarkdown.trim().length > 0, p = t.closingMarkdown.trim().length > 0, x = s.supportBodyMarkdown.trim().length > 0, g = a.belowStepsMarkdown.trim().length > 0, { examples: n } = s, f = /* @__PURE__ */ e(
|
|
13
|
+
const L = (l) => {
|
|
14
|
+
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: [
|
|
15
|
+
/* @__PURE__ */ e("h2", { className: "text-super-large font-bold text-neutral-800", children: l.title }),
|
|
16
|
+
/* @__PURE__ */ e("div", { className: "text-medium space-y-3 text-neutral-800", children: /* @__PURE__ */ e(m, { variant: "legal", content: l.bodyMarkdown }) })
|
|
17
|
+
] }), a = /* @__PURE__ */ e("div", { className: "w-full min-w-0 md:shrink md:grow-0 md:basis-1/2", children: /* @__PURE__ */ e(j, { src: l.imageUrl, alt: l.imageAlt }) });
|
|
18
|
+
return { firstColumn: i, secondColumn: a };
|
|
19
|
+
}, D = ({ hero: l, processSteps: i, lawGenius: a, resources: n }) => {
|
|
20
|
+
const d = l.introMarkdown.trim().length > 0, p = l.closingMarkdown.trim().length > 0, x = n.supportBodyMarkdown.trim().length > 0, f = a.belowStepsMarkdown.trim().length > 0, { examples: s } = n, u = /* @__PURE__ */ e(
|
|
22
21
|
o,
|
|
23
22
|
{
|
|
24
|
-
size: "
|
|
23
|
+
size: "small",
|
|
25
24
|
variant: "primary-green",
|
|
26
|
-
className: "text-medium w-
|
|
25
|
+
className: "text-medium inline-flex w-fit justify-center !rounded-md font-bold",
|
|
27
26
|
children: /* @__PURE__ */ e("a", { href: a.cta.href, className: b, children: a.cta.label })
|
|
28
27
|
}
|
|
29
28
|
);
|
|
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
|
|
29
|
+
return /* @__PURE__ */ r("main", { className: "flex w-full max-w-full min-w-0 flex-1 flex-col overflow-x-clip", children: [
|
|
30
|
+
/* @__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 gap-12", children: [
|
|
32
31
|
/* @__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]
|
|
35
|
-
/* @__PURE__ */ e("span", { className: "
|
|
32
|
+
/* @__PURE__ */ r("div", { className: "mx-auto flex w-full max-w-full flex-col items-center gap-2", children: [
|
|
33
|
+
/* @__PURE__ */ e("p", { className: "text-small text-center font-semibold tracking-[0.3em] text-neutral-600 uppercase", children: l.eyebrow }),
|
|
34
|
+
/* @__PURE__ */ e("span", { className: "max-w-ds-10xl min-w-ds-7xl h-px w-full shrink-0 bg-neutral-400", "aria-hidden": !0 })
|
|
36
35
|
] }),
|
|
37
|
-
/* @__PURE__ */ e("h1", { className: "font-lora mx-auto mt-12 max-w-
|
|
36
|
+
/* @__PURE__ */ e("h1", { className: "font-lora text-super-hero mx-auto mt-12 max-w-3xl font-bold text-neutral-800", children: l.title })
|
|
38
37
|
] }),
|
|
39
38
|
/* @__PURE__ */ e(
|
|
40
|
-
|
|
39
|
+
B,
|
|
41
40
|
{
|
|
42
41
|
className: "bg-transparent",
|
|
43
|
-
containerClassName: "w-full !max-w-none flex-col gap-10 !px-0 !py-0
|
|
44
|
-
image: /* @__PURE__ */ e(S, { src:
|
|
42
|
+
containerClassName: "w-full !max-w-none !flex-col gap-10 !px-0 !py-0 md:!flex-row md:!gap-8 md:items-stretch lg:!gap-16",
|
|
43
|
+
image: /* @__PURE__ */ e(S, { src: l.imageUrl, alt: l.imageAlt, priority: l.imagePriority }),
|
|
45
44
|
cta: {
|
|
46
|
-
size: "
|
|
45
|
+
size: "default",
|
|
47
46
|
variant: "primary-green",
|
|
48
|
-
className: "text-medium mt-8 w-full justify-center font-bold",
|
|
49
|
-
children: /* @__PURE__ */ e("a", { href:
|
|
47
|
+
className: "text-medium mt-8 w-full justify-center font-bold md:w-fit md:justify-start",
|
|
48
|
+
children: /* @__PURE__ */ e("a", { href: l.cta.href, className: k, children: l.cta.label })
|
|
50
49
|
},
|
|
51
50
|
children: /* @__PURE__ */ r("div", { className: "text-medium space-y-4 [&_ul]:my-8 [&_ul]:list-disc [&_ul]:pl-[1.2rem]", children: [
|
|
52
|
-
d && /* @__PURE__ */ e(
|
|
53
|
-
/* @__PURE__ */ e("ul", { className: "text-medium space-y-3", children:
|
|
51
|
+
d && /* @__PURE__ */ e(m, { variant: "legal", content: l.introMarkdown }),
|
|
52
|
+
/* @__PURE__ */ e("ul", { className: "text-medium space-y-3", children: l.bullets.map((t) => /* @__PURE__ */ r("li", { className: "flex items-start gap-2", children: [
|
|
54
53
|
/* @__PURE__ */ e("span", { className: "bg-primary-600 mt-1 h-2.5 w-2.5", "aria-hidden": !0 }),
|
|
55
54
|
/* @__PURE__ */ r("span", { children: [
|
|
56
55
|
/* @__PURE__ */ r("strong", { children: [
|
|
57
|
-
|
|
56
|
+
t.strong,
|
|
58
57
|
" "
|
|
59
58
|
] }),
|
|
60
|
-
|
|
59
|
+
t.text
|
|
61
60
|
] })
|
|
62
|
-
] },
|
|
63
|
-
p && /* @__PURE__ */ e(
|
|
61
|
+
] }, t.id)) }),
|
|
62
|
+
p && /* @__PURE__ */ e(m, { variant: "legal", content: l.closingMarkdown })
|
|
64
63
|
] })
|
|
65
64
|
}
|
|
66
65
|
)
|
|
67
66
|
] }) }),
|
|
68
|
-
|
|
69
|
-
const { firstColumn:
|
|
67
|
+
i.map((t) => {
|
|
68
|
+
const { firstColumn: g, secondColumn: w } = L(t);
|
|
70
69
|
return /* @__PURE__ */ e(
|
|
71
70
|
c,
|
|
72
71
|
{
|
|
73
|
-
className: `${
|
|
72
|
+
className: `${t.background} lg:px-ds-10xl px-6 py-12`,
|
|
74
73
|
containerClassName: N(
|
|
75
|
-
"!mx-auto !w-full !max-w-6xl !px-0 !py-0 !gap-8 md
|
|
76
|
-
|
|
74
|
+
"!mx-auto !w-full !max-w-6xl !px-0 !py-0 !gap-8 md:items-center lg:!gap-20",
|
|
75
|
+
t.imageFirstOnMobile ? "!flex-col md:!flex-row" : "!flex-col-reverse md:!flex-row",
|
|
76
|
+
t.reverse && "md:!flex-row-reverse"
|
|
77
77
|
),
|
|
78
|
-
firstColumn:
|
|
79
|
-
secondColumn:
|
|
78
|
+
firstColumn: g,
|
|
79
|
+
secondColumn: w
|
|
80
80
|
},
|
|
81
|
-
|
|
81
|
+
t.id
|
|
82
82
|
);
|
|
83
83
|
}),
|
|
84
84
|
/* @__PURE__ */ e(
|
|
@@ -86,52 +86,52 @@ const U = (t) => {
|
|
|
86
86
|
{
|
|
87
87
|
title: a.title,
|
|
88
88
|
content: a.contentMarkdown,
|
|
89
|
-
stepsSlot: /* @__PURE__ */ e(
|
|
89
|
+
stepsSlot: /* @__PURE__ */ e(h, { children: a.steps.map((t) => /* @__PURE__ */ e(
|
|
90
90
|
I,
|
|
91
91
|
{
|
|
92
|
-
title:
|
|
93
|
-
descriptionMarkdown:
|
|
94
|
-
iconUrl:
|
|
95
|
-
iconAlt:
|
|
92
|
+
title: t.title,
|
|
93
|
+
descriptionMarkdown: t.descriptionMarkdown,
|
|
94
|
+
iconUrl: t.iconUrl,
|
|
95
|
+
iconAlt: t.iconAlt ?? ""
|
|
96
96
|
},
|
|
97
|
-
|
|
97
|
+
t.id
|
|
98
98
|
)) }),
|
|
99
|
-
belowStepsSlot:
|
|
100
|
-
|
|
99
|
+
belowStepsSlot: f ? /* @__PURE__ */ e(
|
|
100
|
+
m,
|
|
101
101
|
{
|
|
102
102
|
variant: "ratafia",
|
|
103
103
|
content: a.belowStepsMarkdown,
|
|
104
104
|
className: y
|
|
105
105
|
}
|
|
106
106
|
) : null,
|
|
107
|
-
cta:
|
|
107
|
+
cta: u,
|
|
108
108
|
skipCtaWrapper: !0,
|
|
109
|
-
image:
|
|
110
|
-
sectionClassName: a.sectionClassName ?? "bg-
|
|
109
|
+
image: a.image,
|
|
110
|
+
sectionClassName: a.sectionClassName ?? "bg-primary-50 px-6 py-12 lg:px-ds-10xl"
|
|
111
111
|
}
|
|
112
112
|
),
|
|
113
113
|
/* @__PURE__ */ e(
|
|
114
114
|
c,
|
|
115
115
|
{
|
|
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
|
-
x && /* @__PURE__ */ e("div", { className: `text-
|
|
123
|
-
|
|
124
|
-
/* @__PURE__ */ e("dt", { className: "font-semibold", children:
|
|
125
|
-
/* @__PURE__ */ e("dd", { children:
|
|
126
|
-
] }, `${
|
|
127
|
-
|
|
116
|
+
className: "lg:px-ds-10xl bg-white px-6 pt-12 pb-14",
|
|
117
|
+
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",
|
|
118
|
+
firstColumn: /* @__PURE__ */ e("div", { className: "w-full min-w-0 md:shrink md:grow-0 md:basis-1/2", children: /* @__PURE__ */ e(W, { src: n.imageUrl, alt: n.imageAlt }) }),
|
|
119
|
+
secondColumn: /* @__PURE__ */ r("div", { className: "w-full min-w-0 space-y-6 md:shrink md:grow-0 md:basis-1/2", children: [
|
|
120
|
+
s.eyebrow && /* @__PURE__ */ e("p", { className: "text-xs font-semibold tracking-[0.2em] text-neutral-500 uppercase", children: s.eyebrow }),
|
|
121
|
+
s.title && /* @__PURE__ */ e("h3", { className: "text-super-large font-bold text-neutral-800", children: s.title }),
|
|
122
|
+
x && /* @__PURE__ */ e("div", { className: `text-medium space-y-3 text-neutral-800 ${C}`, children: /* @__PURE__ */ e(m, { variant: "legal", content: n.supportBodyMarkdown }) }),
|
|
123
|
+
s.rows.length > 0 && /* @__PURE__ */ e("dl", { className: "text-medium space-y-2 text-neutral-800", children: s.rows.map((t) => /* @__PURE__ */ r("div", { className: "flex flex-wrap gap-x-2", children: [
|
|
124
|
+
/* @__PURE__ */ e("dt", { className: "font-semibold", children: t.label }),
|
|
125
|
+
/* @__PURE__ */ e("dd", { children: t.value })
|
|
126
|
+
] }, `${t.label}-${t.value}`)) }),
|
|
127
|
+
s.footer && /* @__PURE__ */ e("p", { className: "text-medium text-neutral-600", children: s.footer }),
|
|
128
128
|
/* @__PURE__ */ e(
|
|
129
129
|
o,
|
|
130
130
|
{
|
|
131
131
|
size: "small",
|
|
132
132
|
variant: "primary-green",
|
|
133
|
-
className: "text-
|
|
134
|
-
children: /* @__PURE__ */ e("a", { href:
|
|
133
|
+
className: "text-medium inline-flex w-auto justify-center font-bold",
|
|
134
|
+
children: /* @__PURE__ */ e("a", { href: n.cta.href, className: v, children: n.cta.label })
|
|
135
135
|
}
|
|
136
136
|
)
|
|
137
137
|
] })
|
|
@@ -140,5 +140,5 @@ const U = (t) => {
|
|
|
140
140
|
] });
|
|
141
141
|
};
|
|
142
142
|
export {
|
|
143
|
-
|
|
143
|
+
D as HowItWorksTemplate
|
|
144
144
|
};
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/** Tailwind class strings for `next/link` / markdown in How It Works Strapi mappers (consumed by legal-contracts-web). */
|
|
2
1
|
export declare const howItWorksHeroCtaLinkClassName = "font-semibold text-white";
|
|
3
2
|
|
|
4
3
|
export declare const howItWorksLawGeniusBelowStepsMarkdownClassName = "text-medium";
|
|
@@ -7,6 +6,5 @@ export declare const howItWorksLawGeniusCtaLinkClassName = "font-semibold text-w
|
|
|
7
6
|
|
|
8
7
|
export declare const howItWorksResourcesCtaLinkClassName = "font-semibold";
|
|
9
8
|
|
|
10
|
-
|
|
11
|
-
export declare const howItWorksResourcesSupportBodyClassName = "[&_h2]:mb-8";
|
|
9
|
+
export declare const howItWorksResourcesSupportBodyClassName = "[&_h2]:text-super-large [&_h2]:mx-0 [&_h2]:mb-8 [&_h2]:bg-transparent [&_h2]:px-0 [&_h2]:font-bold [&_h2]:text-neutral-800";
|
|
12
10
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
const
|
|
1
|
+
const t = "font-semibold text-white", s = "font-semibold text-white", o = "font-semibold", e = "text-medium", a = "[&_h2]:text-super-large [&_h2]:mx-0 [&_h2]:mb-8 [&_h2]:bg-transparent [&_h2]:px-0 [&_h2]:font-bold [&_h2]:text-neutral-800";
|
|
2
2
|
export {
|
|
3
|
-
|
|
3
|
+
t as howItWorksHeroCtaLinkClassName,
|
|
4
4
|
e as howItWorksLawGeniusBelowStepsMarkdownClassName,
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
s as howItWorksLawGeniusCtaLinkClassName,
|
|
6
|
+
o as howItWorksResourcesCtaLinkClassName,
|
|
7
7
|
a as howItWorksResourcesSupportBodyClassName
|
|
8
8
|
};
|