@npm_leadtech/legal-contracts-ui 0.83.0 → 0.84.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.
@@ -31,10 +31,7 @@ export interface AiLegalDocumentInsightsTab {
31
31
  export declare const AiLegalDocumentReviewerTemplate: FC<AiLegalDocumentReviewerTemplateProps>;
32
32
 
33
33
  export declare type AiLegalDocumentReviewerTemplateProps = {
34
- hero: Omit<Hero2SectionProps, 'uploadSlot' | 'theme'> & {
35
- theme: 'dark';
36
- upload: DocumentReviewUploadCardProps;
37
- };
34
+ hero: Hero2SectionProps;
38
35
  howItWorks: HowItWorksSectionProps;
39
36
  /** Same shape as e-sign `fastAndSimple`; template forces `variant="lawgeniusDark"`. */
40
37
  fastAndSimple: Omit<FastAndSimpleSectionProps, 'variant'>;
@@ -106,19 +103,16 @@ export interface Hero2SectionProps {
106
103
  }
107
104
 
108
105
  export interface HowItWorksSectionProps {
109
- imageSrc: string;
110
- imageAlt: string;
106
+ media: ReactNode;
111
107
  title: string;
112
108
  description: string;
113
109
  steps: HowItWorksStep[];
114
- /** Optional overlays (badges, labels) absolutely positioned on the media */
115
- imageOverlay?: ReactNode;
116
110
  }
117
111
 
118
112
  export interface HowItWorksStep {
119
113
  title: string;
120
114
  description: string;
121
- icon: string | ReactNode;
115
+ icon: ReactNode;
122
116
  }
123
117
 
124
118
  export interface LawgeniusAskQuestionsSectionProps {
@@ -13,6 +13,7 @@ export declare interface BlogSectionProps {
13
13
  }[];
14
14
  cta: ReactNode | null;
15
15
  className?: string;
16
+ variant?: 'column' | 'row';
16
17
  }
17
18
 
18
19
  export interface SectionHeadingProps {
@@ -1,20 +1,40 @@
1
1
  import { jsx as e, jsxs as i } from "react/jsx-runtime";
2
2
  import "react";
3
- import t from "clsx";
4
- import { SectionHeading as a } from "./SectionHeading.js";
5
- import { LinkWrapper as d } from "./LinkWrapper.js";
6
- const p = ({ header: m, articles: r, cta: o, className: n = "" }) => r.length === 0 ? null : /* @__PURE__ */ e("section", { className: t("mx-auto px-8 lg:px-12 xl:max-w-300 xl:px-0", n), children: /* @__PURE__ */ i("div", { className: "mx-auto flex flex-col items-center gap-8", children: [
7
- m && /* @__PURE__ */ e(a, { ...m }),
8
- /* @__PURE__ */ e("div", { className: "grid gap-6 lg:grid-cols-2", children: r.map((l) => /* @__PURE__ */ i("article", { className: "flex flex-col rounded-sm bg-white shadow md:flex-row", children: [
9
- /* @__PURE__ */ e("div", { className: "relative h-42 shrink-0 overflow-hidden rounded-t-sm md:h-full md:max-w-51 md:rounded-t-none md:rounded-l-sm [&_img]:h-full [&_img]:w-full [&_img]:object-cover", children: l.image }),
10
- /* @__PURE__ */ i("div", { className: "flex flex-col gap-4 p-6 text-neutral-800", children: [
11
- /* @__PURE__ */ e("h3", { className: "text-big font-semibold", children: l.title }),
12
- /* @__PURE__ */ e("p", { className: "text-medium", children: l.description }),
13
- /* @__PURE__ */ e(d, { className: "w-fit", variant: "tertiary-bold", children: l.cta })
14
- ] })
15
- ] }, l.title)) }),
16
- !!o && /* @__PURE__ */ e(d, { className: "w-full md:w-fit", variant: "secondary-green", children: o })
17
- ] }) });
3
+ import o from "clsx";
4
+ import { SectionHeading as c } from "./SectionHeading.js";
5
+ import { LinkWrapper as t } from "./LinkWrapper.js";
6
+ const u = ({ header: r, articles: m, cta: d, className: s = "", variant: a = "row" }) => {
7
+ if (m.length === 0) return null;
8
+ const n = a === "row";
9
+ return /* @__PURE__ */ e("section", { className: o("mx-auto px-8 lg:px-12 xl:max-w-300 xl:px-0", s), children: /* @__PURE__ */ i("div", { className: "mx-auto flex flex-col items-center gap-8", children: [
10
+ r && /* @__PURE__ */ e(c, { ...r }),
11
+ /* @__PURE__ */ e("div", { className: "grid gap-6 lg:grid-cols-2", children: m.map((l) => /* @__PURE__ */ i(
12
+ "article",
13
+ {
14
+ className: o("flex flex-col rounded-sm bg-white shadow", n && "md:flex-row"),
15
+ children: [
16
+ /* @__PURE__ */ e(
17
+ "div",
18
+ {
19
+ className: o(
20
+ "relative h-42 shrink-0 overflow-hidden rounded-t-sm [&_img]:h-full [&_img]:w-full [&_img]:object-cover",
21
+ n && "md:h-full md:max-w-51 md:rounded-t-none md:rounded-l-sm"
22
+ ),
23
+ children: l.image
24
+ }
25
+ ),
26
+ /* @__PURE__ */ i("div", { className: "flex flex-col gap-4 p-6 text-neutral-800", children: [
27
+ /* @__PURE__ */ e("h3", { className: "text-big font-semibold", children: l.title }),
28
+ /* @__PURE__ */ e("p", { className: "text-medium", children: l.description }),
29
+ /* @__PURE__ */ e(t, { className: "w-fit", variant: "tertiary-bold", children: l.cta })
30
+ ] })
31
+ ]
32
+ },
33
+ l.title
34
+ )) }),
35
+ !!d && /* @__PURE__ */ e(t, { className: "w-full md:w-fit", variant: "secondary-green", children: d })
36
+ ] }) });
37
+ };
18
38
  export {
19
- p as BlogSection
39
+ u as BlogSection
20
40
  };
@@ -11,6 +11,7 @@ export interface BlogSectionProps {
11
11
  }[];
12
12
  cta: ReactNode | null;
13
13
  className?: string;
14
+ variant?: 'column' | 'row';
14
15
  }
15
16
 
16
17
  export interface BreadcrumbProps {
@@ -5,7 +5,7 @@ import { DocumentSection as n } from "./DocumentSection.js";
5
5
  import { Breadcrumb as x } from "./Breadcrumb.js";
6
6
  import { FaqSection as f } from "./FaqSection.js";
7
7
  import { BlogSection as d } from "./BlogSection.js";
8
- const w = ({
8
+ const v = ({
9
9
  jumbo: r,
10
10
  breadcrumb: o,
11
11
  categories: m,
@@ -25,6 +25,8 @@ const w = ({
25
25
  d,
26
26
  {
27
27
  ...a,
28
+ className: "px-0!",
29
+ variant: "column",
28
30
  header: a.header ? {
29
31
  ...a.header,
30
32
  align: "start",
@@ -37,5 +39,5 @@ const w = ({
37
39
  ] })
38
40
  ] });
39
41
  export {
40
- w as CategoryProductTemplate
42
+ v as CategoryProductTemplate
41
43
  };
@@ -69,19 +69,16 @@ export interface Hero2SectionProps {
69
69
  }
70
70
 
71
71
  export interface HowItWorksSectionProps {
72
- imageSrc: string;
73
- imageAlt: string;
72
+ media: ReactNode;
74
73
  title: string;
75
74
  description: string;
76
75
  steps: HowItWorksStep[];
77
- /** Optional overlays (badges, labels) absolutely positioned on the media */
78
- imageOverlay?: ReactNode;
79
76
  }
80
77
 
81
78
  export interface HowItWorksStep {
82
79
  title: string;
83
80
  description: string;
84
- icon: string | ReactNode;
81
+ icon: ReactNode;
85
82
  }
86
83
 
87
84
  export interface OnlineBenefit {
@@ -11,6 +11,7 @@ export interface BlogSectionProps {
11
11
  }[];
12
12
  cta: ReactNode | null;
13
13
  className?: string;
14
+ variant?: 'column' | 'row';
14
15
  }
15
16
 
16
17
  export interface CategoriesSectionProps {
@@ -4,18 +4,15 @@ 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 {
17
14
  title: string;
18
15
  description: string;
19
- icon: string | ReactNode;
16
+ icon: ReactNode;
20
17
  }
21
18
 
@@ -1,27 +1,17 @@
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(
1
+ import { jsx as e, jsxs as a } from "react/jsx-runtime";
2
+ import { SectionHeading as t } from "./SectionHeading.js";
3
+ const o = ({ media: r, title: i, description: s, steps: d }) => /* @__PURE__ */ e("section", { className: "bg-white px-4 py-16", children: /* @__PURE__ */ a("div", { className: "mx-auto grid w-full max-w-6xl gap-12 lg:grid-cols-[minmax(0,1fr)_minmax(0,1fr)]", children: [
4
+ /* @__PURE__ */ e("div", { className: "relative order-2 overflow-hidden rounded-3xl shadow-[0_25px_80px_rgba(3,42,56,0.25)] lg:order-1", children: r }),
5
+ /* @__PURE__ */ a("div", { className: "order-1 space-y-6 lg:order-2", children: [
6
+ /* @__PURE__ */ e(t, { title: i, description: s, align: "start" }),
7
+ /* @__PURE__ */ e("div", { className: "space-y-4", children: d.map((l) => /* @__PURE__ */ e(
18
8
  "article",
19
9
  {
20
10
  className: "bg-neutral-25 rounded-lg p-5",
21
11
  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: [
12
+ children: /* @__PURE__ */ a("div", { className: "flex items-start gap-3", children: [
13
+ /* @__PURE__ */ e("span", { className: "inline-flex h-6 w-6 shrink-0 items-center justify-center", children: l.icon }),
14
+ /* @__PURE__ */ a("div", { children: [
25
15
  /* @__PURE__ */ e("p", { className: "text-medium font-bold text-neutral-800", children: l.title }),
26
16
  /* @__PURE__ */ e("p", { className: "text-small text-neutral-800", children: l.description })
27
17
  ] })
@@ -32,5 +22,5 @@ const h = ({
32
22
  ] })
33
23
  ] }) });
34
24
  export {
35
- h as HowItWorksSection
25
+ o as HowItWorksSection
36
26
  };