@npm_leadtech/legal-contracts-ui 0.84.3 → 0.85.1

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.
@@ -77,13 +77,11 @@ export interface FaqSectionProps {
77
77
  }
78
78
 
79
79
  export interface FastAndSimpleSectionProps {
80
- /** Decorative graphic (hidden for `variant: 'lawgeniusDark'`) */
81
- graphicSrc?: string;
80
+ bgImage: ReactNode | null;
82
81
  title: string;
83
82
  description: string;
84
83
  benefits: QuickBenefit[];
85
- /** `default`: e-sign style card. `lawgeniusDark`: gradient container + light benefit tiles */
86
- variant?: 'default' | 'lawgeniusDark';
84
+ variant: 'esign' | 'ratafia';
87
85
  }
88
86
 
89
87
  export type Hero2Highlight = {
@@ -103,19 +101,17 @@ export interface Hero2SectionProps {
103
101
  }
104
102
 
105
103
  export interface HowItWorksSectionProps {
106
- imageSrc: string;
107
- imageAlt: string;
104
+ media: ReactNode;
108
105
  title: string;
109
106
  description: string;
110
107
  steps: HowItWorksStep[];
111
- /** Optional overlays (badges, labels) absolutely positioned on the media */
112
- imageOverlay?: ReactNode;
113
108
  }
114
109
 
115
110
  export interface HowItWorksStep {
111
+ id: string;
116
112
  title: string;
117
113
  description: string;
118
- icon: string | ReactNode;
114
+ icon: ReactNode;
119
115
  }
120
116
 
121
117
  export interface LawgeniusAskQuestionsSectionProps {
@@ -142,9 +138,10 @@ export interface LawgeniusFloatingTagsIllustrationProps {
142
138
  }
143
139
 
144
140
  export interface QuickBenefit {
141
+ id: string;
145
142
  title: string;
146
143
  description: string;
147
- icon: string | ReactNode;
144
+ icon: ReactNode;
148
145
  }
149
146
 
150
147
  export interface SectionHeadingProps {
@@ -2,11 +2,11 @@ import { jsxs as d, jsx as o } from "react/jsx-runtime";
2
2
  import { AiLegalDocumentInsightsSection as x } from "./AiLegalDocumentInsightsSection.js";
3
3
  import { DocumentReviewUploadCard as S } from "./DocumentReviewUploadCard.js";
4
4
  import { FaqSection as w } from "./FaqSection.js";
5
- import { FastAndSimpleSection as k } from "./FastAndSimpleSection.js";
6
- import { Hero2Section as D } from "./Hero2Section.js";
7
- import { HowItWorksSection as h } from "./HowItWorksSection.js";
8
- import { LawgeniusAskQuestionsSection as v } from "./LawgeniusAskQuestionsSection.js";
9
- import { LawgeniusFloatingTagsIllustration as A } from "./LawgeniusFloatingTagsIllustration.js";
5
+ import { FastAndSimpleSection as h } from "./FastAndSimpleSection.js";
6
+ import { Hero2Section as k } from "./Hero2Section.js";
7
+ import { HowItWorksSection as v } from "./HowItWorksSection.js";
8
+ import { LawgeniusAskQuestionsSection as A } from "./LawgeniusAskQuestionsSection.js";
9
+ import { LawgeniusFloatingTagsIllustration as D } from "./LawgeniusFloatingTagsIllustration.js";
10
10
  import { SignAndSendSection as R } from "./SignAndSendSection.js";
11
11
  import { TrustpilotSection as I } from "./TrustpilotSection.js";
12
12
  const O = ({
@@ -19,11 +19,11 @@ const O = ({
19
19
  askQuestions: s,
20
20
  faq: m
21
21
  }) => {
22
- const { ...l } = t, { upload: c, leadingIcon: p, ...u } = n, { illustration: g, ...f } = s;
22
+ const { ...l } = t, { upload: c, leadingIcon: p, ...u } = n, { illustration: f, ...g } = s;
23
23
  return /* @__PURE__ */ d("main", { className: "flex w-full flex-col", children: [
24
- /* @__PURE__ */ o(D, { ...l }),
25
- /* @__PURE__ */ o(h, { ...i }),
26
- /* @__PURE__ */ o(k, { ...e, variant: "lawgeniusDark" }),
24
+ /* @__PURE__ */ o(k, { ...l }),
25
+ /* @__PURE__ */ o(v, { ...i }),
26
+ /* @__PURE__ */ o(h, { ...e, variant: "ratafia" }),
27
27
  /* @__PURE__ */ o(x, { ...r }),
28
28
  /* @__PURE__ */ o(
29
29
  R,
@@ -36,10 +36,10 @@ const O = ({
36
36
  ),
37
37
  /* @__PURE__ */ o(I, { ...a }),
38
38
  /* @__PURE__ */ o(
39
- v,
39
+ A,
40
40
  {
41
- ...f,
42
- illustration: /* @__PURE__ */ o(A, { ...g })
41
+ ...g,
42
+ illustration: /* @__PURE__ */ o(D, { ...f })
43
43
  }
44
44
  ),
45
45
  /* @__PURE__ */ o("section", { className: "bg-neutral-25 px-6 py-16 sm:px-10 lg:px-32", children: /* @__PURE__ */ o(w, { ...m, className: "mx-auto max-w-6xl space-y-6" }) })
@@ -1,13 +1,13 @@
1
1
  import { jsx as e } from "react/jsx-runtime";
2
- const o = (l) => /* @__PURE__ */ e("svg", { xmlns: "http://www.w3.org/2000/svg", width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", ...l, children: /* @__PURE__ */ e(
2
+ const i = (l) => /* @__PURE__ */ e("svg", { xmlns: "http://www.w3.org/2000/svg", width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", ...l, children: /* @__PURE__ */ e(
3
3
  "path",
4
4
  {
5
5
  fillRule: "evenodd",
6
6
  clipRule: "evenodd",
7
7
  d: "M10.793 1.793a1 1 0 00-.707-.293H4.5C3.675 1.5 3 2.175 3 3v12c0 .825.667 1.5 1.492 1.5H13.5c.825 0 1.5-.675 1.5-1.5V6.414a1 1 0 00-.293-.707l-3.914-3.914zM6.75 9a.75.75 0 000 1.5h4.5a.75.75 0 000-1.5h-4.5zm0 3a.75.75 0 000 1.5h4.5a.75.75 0 000-1.5h-4.5zM4.5 15h9V6.75h-2.75a1 1 0 01-1-1V3H4.5v12z",
8
- fill: "var(--secondary-600)"
8
+ fill: l.fill ?? "var(--secondary-600)"
9
9
  }
10
10
  ) });
11
11
  export {
12
- o as DocOutlineIcon
12
+ i as DocOutlineIcon
13
13
  };
@@ -43,13 +43,11 @@ export interface FaqSectionProps {
43
43
  }
44
44
 
45
45
  export interface FastAndSimpleSectionProps {
46
- /** Decorative graphic (hidden for `variant: 'lawgeniusDark'`) */
47
- graphicSrc?: string;
46
+ bgImage: ReactNode | null;
48
47
  title: string;
49
48
  description: string;
50
49
  benefits: QuickBenefit[];
51
- /** `default`: e-sign style card. `lawgeniusDark`: gradient container + light benefit tiles */
52
- variant?: 'default' | 'lawgeniusDark';
50
+ variant: 'esign' | 'ratafia';
53
51
  }
54
52
 
55
53
  export type Hero2Highlight = {
@@ -69,19 +67,17 @@ export interface Hero2SectionProps {
69
67
  }
70
68
 
71
69
  export interface HowItWorksSectionProps {
72
- imageSrc: string;
73
- imageAlt: string;
70
+ media: ReactNode;
74
71
  title: string;
75
72
  description: string;
76
73
  steps: HowItWorksStep[];
77
- /** Optional overlays (badges, labels) absolutely positioned on the media */
78
- imageOverlay?: ReactNode;
79
74
  }
80
75
 
81
76
  export interface HowItWorksStep {
77
+ id: string;
82
78
  title: string;
83
79
  description: string;
84
- icon: string | ReactNode;
80
+ icon: ReactNode;
85
81
  }
86
82
 
87
83
  export interface OnlineBenefit {
@@ -90,9 +86,10 @@ export interface OnlineBenefit {
90
86
  }
91
87
 
92
88
  export interface QuickBenefit {
89
+ id: string;
93
90
  title: string;
94
91
  description: string;
95
- icon: string | ReactNode;
92
+ icon: ReactNode;
96
93
  }
97
94
 
98
95
  export interface SectionHeadingProps {
@@ -4,18 +4,17 @@ import { ReactNode } from 'react';
4
4
  export declare const FastAndSimpleSection: FC<FastAndSimpleSectionProps>;
5
5
 
6
6
  export declare interface FastAndSimpleSectionProps {
7
- /** Decorative graphic (hidden for `variant: 'lawgeniusDark'`) */
8
- graphicSrc?: string;
7
+ bgImage: ReactNode | null;
9
8
  title: string;
10
9
  description: string;
11
10
  benefits: QuickBenefit[];
12
- /** `default`: e-sign style card. `lawgeniusDark`: gradient container + light benefit tiles */
13
- variant?: 'default' | 'lawgeniusDark';
11
+ variant: 'esign' | 'ratafia';
14
12
  }
15
13
 
16
14
  export declare interface QuickBenefit {
15
+ id: string;
17
16
  title: string;
18
17
  description: string;
19
- icon: string | ReactNode;
18
+ icon: ReactNode;
20
19
  }
21
20
 
@@ -1,54 +1,25 @@
1
- import { jsx as e, jsxs as l, Fragment as c } from "react/jsx-runtime";
2
- import { Card as n } from "./Card.js";
3
- import { SectionHeading as m } from "./SectionHeading.js";
4
- const x = ({
5
- graphicSrc: i = "",
6
- title: a,
7
- description: r,
8
- benefits: s,
9
- variant: d = "default"
10
- }) => d === "lawgeniusDark" ? /* @__PURE__ */ e("section", { className: "px-6 py-16 sm:px-10 lg:px-24", children: /* @__PURE__ */ l("div", { className: "from-primary-900 to-primary-800 mx-auto max-w-6xl rounded-3xl bg-gradient-to-r p-10 text-white shadow-[0_25px_70px_rgba(3,42,56,0.35)]", children: [
11
- /* @__PURE__ */ l("div", { className: "space-y-4", children: [
12
- /* @__PURE__ */ e("p", { className: "text-super-large font-bold", children: a }),
13
- /* @__PURE__ */ e("p", { className: "text-medium text-white/85", children: r })
1
+ import { jsx as e, jsxs as a } from "react/jsx-runtime";
2
+ import { Markdown as o } from "./Markdown.js";
3
+ const p = ({
4
+ bgImage: t,
5
+ title: r,
6
+ description: i,
7
+ benefits: d,
8
+ variant: s
9
+ }) => s === "ratafia" ? /* @__PURE__ */ e("section", { className: "px-6 py-16 sm:px-10 lg:px-24", children: /* @__PURE__ */ e("div", { className: "from-primary-900 to-primary-800 mx-auto max-w-6xl rounded-3xl bg-gradient-to-r p-10 text-white shadow-[0_25px_70px_rgba(3,42,56,0.35)]", children: /* @__PURE__ */ e("div", { className: "mt-10 grid gap-6 md:grid-cols-3" }) }) }) : /* @__PURE__ */ e("section", { className: "bg-white px-6 py-8 xl:px-0", children: /* @__PURE__ */ a("div", { className: "relative mx-auto flex w-full max-w-300 flex-col gap-8 overflow-hidden rounded-2xl bg-neutral-50 p-6 md:p-8 lg:p-12", children: [
10
+ !!t && /* @__PURE__ */ e("div", { className: "pointer-events-none absolute top-35/100 -right-35 md:-right-50 lg:top-0 lg:right-5", children: t }),
11
+ /* @__PURE__ */ a("div", { className: "flex flex-col gap-4", children: [
12
+ /* @__PURE__ */ e("p", { className: "text-super-large font-bold text-neutral-900", children: r }),
13
+ /* @__PURE__ */ e(o, { className: "text-medium text-neutral-800 [&_p:last-child]:mb-0", content: i })
14
14
  ] }),
15
- /* @__PURE__ */ e("div", { className: "mt-10 grid gap-6 md:grid-cols-3", children: s.map((t) => /* @__PURE__ */ l("div", { className: "rounded-2xl bg-white/15 p-5 text-white shadow-inner", children: [
16
- /* @__PURE__ */ e("span", { className: "inline-flex h-10 w-10 items-center justify-center rounded-lg bg-white/20", children: typeof t.icon == "string" ? /* @__PURE__ */ e("img", { src: t.icon, alt: "", width: 32, height: 32 }) : t.icon }),
17
- /* @__PURE__ */ e("p", { className: "text-big mt-4 font-bold", children: t.title }),
18
- /* @__PURE__ */ e("p", { className: "text-small mt-2 text-white/80", children: t.description })
19
- ] }, t.title)) })
20
- ] }) }) : /* @__PURE__ */ e("section", { className: "px-4 pb-16", children: /* @__PURE__ */ l(
21
- "div",
22
- {
23
- className: "relative mx-auto flex w-full max-w-6xl flex-col gap-10 overflow-hidden rounded-2xl bg-neutral-50 px-6 py-10 lg:px-12",
24
- style: { boxShadow: "var(--shadow-medium)" },
25
- children: [
26
- i !== "" && /* @__PURE__ */ e(
27
- "img",
28
- {
29
- src: i,
30
- alt: "",
31
- width: 189,
32
- height: 482,
33
- className: "pointer-events-none absolute top-1/2 -right-6 hidden -translate-y-1/2 opacity-60 lg:block",
34
- "aria-hidden": !0
35
- }
36
- ),
37
- /* @__PURE__ */ e("div", { className: "max-w-2xl space-y-4", children: /* @__PURE__ */ e(m, { title: a, description: r, align: "start" }) }),
38
- /* @__PURE__ */ e("div", { className: "grid gap-4 md:grid-cols-3", children: s.map((t) => /* @__PURE__ */ e(
39
- n,
40
- {
41
- title: /* @__PURE__ */ l(c, { children: [
42
- /* @__PURE__ */ e("div", { className: "mb-4 inline-flex h-12 w-12 items-center justify-center rounded-md bg-neutral-50", children: typeof t.icon == "string" ? /* @__PURE__ */ e("img", { src: t.icon, alt: "", width: 32, height: 32 }) : t.icon }),
43
- /* @__PURE__ */ e("p", { className: "text-big text-primary-900 font-bold", children: t.title })
44
- ] }),
45
- children: /* @__PURE__ */ e("p", { className: "text-small text-neutral-800", children: t.description })
46
- },
47
- t.title
48
- )) })
49
- ]
50
- }
51
- ) });
15
+ /* @__PURE__ */ e("div", { className: "z-1 grid grid-cols-1 gap-4 lg:grid-cols-3 lg:gap-8", children: d.map((l) => /* @__PURE__ */ a("div", { className: "flex flex-col gap-4 rounded bg-white p-6 md:flex-row lg:flex-col", children: [
16
+ /* @__PURE__ */ e("span", { className: "h-fit w-fit rounded-lg bg-neutral-50 p-2", children: l.icon }),
17
+ /* @__PURE__ */ a("div", { className: "flex flex-col gap-2", children: [
18
+ /* @__PURE__ */ e("p", { className: "text-big text-primary-900 font-bold", children: l.title }),
19
+ /* @__PURE__ */ e("p", { className: "text-medium text-neutral-800", children: l.description })
20
+ ] })
21
+ ] }, l.title)) })
22
+ ] }) });
52
23
  export {
53
- x as FastAndSimpleSection
24
+ p as FastAndSimpleSection
54
25
  };
@@ -4,18 +4,16 @@ import { ReactNode } from 'react';
4
4
  export declare const HowItWorksSection: FC<HowItWorksSectionProps>;
5
5
 
6
6
  export declare interface HowItWorksSectionProps {
7
- imageSrc: string;
8
- imageAlt: string;
7
+ media: ReactNode;
9
8
  title: string;
10
9
  description: string;
11
10
  steps: HowItWorksStep[];
12
- /** Optional overlays (badges, labels) absolutely positioned on the media */
13
- imageOverlay?: ReactNode;
14
11
  }
15
12
 
16
13
  export declare interface HowItWorksStep {
14
+ id: string;
17
15
  title: string;
18
16
  description: string;
19
- icon: string | ReactNode;
17
+ icon: ReactNode;
20
18
  }
21
19
 
@@ -1,36 +1,22 @@
1
- import { jsx as e, jsxs as i } from "react/jsx-runtime";
2
- import { SectionHeading as n } from "./SectionHeading.js";
3
- const h = ({
4
- imageSrc: a,
5
- imageAlt: r,
6
- title: s,
7
- description: t,
8
- steps: c,
9
- imageOverlay: d
10
- }) => /* @__PURE__ */ e("section", { className: "bg-white px-4 py-16", children: /* @__PURE__ */ i("div", { className: "mx-auto grid w-full max-w-6xl gap-12 lg:grid-cols-[minmax(0,1fr)_minmax(0,1fr)]", children: [
11
- /* @__PURE__ */ i("div", { className: "relative order-2 overflow-hidden rounded-3xl shadow-[0_25px_80px_rgba(3,42,56,0.25)] lg:order-1", children: [
12
- /* @__PURE__ */ e("img", { src: a, alt: r, width: 737, height: 524, className: "h-full w-full object-cover" }),
13
- d
14
- ] }),
15
- /* @__PURE__ */ i("div", { className: "order-1 space-y-6 lg:order-2", children: [
16
- /* @__PURE__ */ e(n, { title: s, description: t, align: "start" }),
17
- /* @__PURE__ */ e("div", { className: "space-y-4", children: c.map((l) => /* @__PURE__ */ e(
18
- "article",
19
- {
20
- className: "bg-neutral-25 rounded-lg p-5",
21
- style: { boxShadow: "var(--shadow-small)" },
22
- children: /* @__PURE__ */ i("div", { className: "flex items-start gap-3", children: [
23
- typeof l.icon == "string" ? /* @__PURE__ */ e("img", { src: l.icon, alt: "", width: 24, height: 24, className: "h-6 w-6" }) : /* @__PURE__ */ e("span", { className: "inline-flex h-6 w-6 shrink-0 items-center justify-center", children: l.icon }),
24
- /* @__PURE__ */ i("div", { children: [
25
- /* @__PURE__ */ e("p", { className: "text-medium font-bold text-neutral-800", children: l.title }),
26
- /* @__PURE__ */ e("p", { className: "text-small text-neutral-800", children: l.description })
27
- ] })
28
- ] })
29
- },
30
- l.title
31
- )) })
1
+ import { jsx as e, jsxs as l } from "react/jsx-runtime";
2
+ import { Markdown as c } from "./Markdown.js";
3
+ const m = ({ media: a, title: d, description: i, steps: s }) => /* @__PURE__ */ e("section", { className: "bg-white", children: /* @__PURE__ */ l("div", { className: "mx-auto flex w-full flex-col gap-8 px-6 py-8 md:gap-12 lg:px-8 lg:py-12 xl:max-w-300 xl:flex-row xl:items-center xl:px-0", children: [
4
+ /* @__PURE__ */ e("div", { className: "relative order-2 overflow-hidden rounded-md shadow md:order-1 lg:mx-auto xl:shrink-0", children: a }),
5
+ /* @__PURE__ */ l("div", { className: "order-1 flex flex-col gap-6 text-neutral-800 md:order-2", children: [
6
+ /* @__PURE__ */ e("h2", { className: "text-super-large font-bold", children: d }),
7
+ /* @__PURE__ */ e(c, { className: "text-medium [&_p:last-child]:mb-0", content: i }),
8
+ /* @__PURE__ */ e("div", { className: "grid grid-cols-1 gap-4 lg:grid-cols-3 xl:grid-cols-1", children: s.map((r) => /* @__PURE__ */ e("article", { className: "bg-neutral-25 rounded p-6", children: /* @__PURE__ */ l("div", { className: "flex flex-col items-start gap-2", children: [
9
+ /* @__PURE__ */ l("div", { className: "flex justify-center gap-2", children: [
10
+ r.icon,
11
+ /* @__PURE__ */ e("p", { className: "text-medium font-bold", children: r.title })
12
+ ] }),
13
+ /* @__PURE__ */ l("p", { className: "text-small", children: [
14
+ r.description,
15
+ " "
16
+ ] })
17
+ ] }) }, r.id)) })
32
18
  ] })
33
19
  ] }) });
34
20
  export {
35
- h as HowItWorksSection
21
+ m as HowItWorksSection
36
22
  };
@@ -1,7 +1,7 @@
1
1
  import { jsxs as l, jsx as e } from "react/jsx-runtime";
2
2
  import { IntroSection as c } from "./IntroSection.js";
3
- import { ContactMethodsSection as n } from "./ContactMethodsSection.js";
4
3
  import { Card as o } from "./Card.js";
4
+ import { ContactMethodsSection as n } from "./ContactMethodsSection.js";
5
5
  import { DocumentItem as s } from "./DocumentItem.js";
6
6
  import { SearchBar as f } from "./SearchBar.js";
7
7
  const g = ({ intro: m, popularDocuments: r, searchBar: t, contactMethods: i }) => /* @__PURE__ */ l("main", { className: "flex-1", children: [
@@ -1,16 +1,16 @@
1
- import { jsx as e, jsxs as t } from "react/jsx-runtime";
2
- import { TwoColumnSection as a } from "./TwoColumnSection.js";
3
- const o = ({ title: s, children: l, image: r }) => /* @__PURE__ */ e(
4
- a,
1
+ import { jsx as e, jsxs as l } from "react/jsx-runtime";
2
+ import { TwoColumnSection as r } from "./TwoColumnSection.js";
3
+ const i = ({ title: s, children: t, image: a }) => /* @__PURE__ */ e(
4
+ r,
5
5
  {
6
- containerClassName: "gap-20 items-center flex-col-reverse",
7
- firstColumn: /* @__PURE__ */ e("div", { className: "flex-1", children: /* @__PURE__ */ e("div", { className: "bg-primary-50 rounded-3xl p-6", children: r }) }),
8
- secondColumn: /* @__PURE__ */ t("div", { className: "flex-1 space-y-6 text-neutral-800", children: [
6
+ containerClassName: "gap-20 items-center",
7
+ firstColumn: /* @__PURE__ */ e("div", { className: "flex-1", children: /* @__PURE__ */ e("div", { className: "bg-primary-50 rounded-3xl p-6", children: a }) }),
8
+ secondColumn: /* @__PURE__ */ l("div", { className: "flex-1 space-y-6 text-neutral-800", children: [
9
9
  /* @__PURE__ */ e("p", { className: "text-super-large font-bold text-neutral-900", children: s }),
10
- /* @__PURE__ */ e("div", { className: "text-medium space-y-4", children: l })
10
+ /* @__PURE__ */ e("div", { className: "text-medium space-y-4", children: t })
11
11
  ] })
12
12
  }
13
13
  );
14
14
  export {
15
- o as ValuesSection
15
+ i as ValuesSection
16
16
  };