@npm_leadtech/legal-contracts-ui 0.89.0 → 0.89.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.
@@ -8,31 +8,24 @@ export declare type AiLegalDocumentReviewerTemplateProps = {
8
8
  howItWorks: HowItWorksSectionProps;
9
9
  fastAndSimple: Omit<FastAndSimpleSectionProps, 'variant'>;
10
10
  insights: FeaturesSectionProps;
11
- signAndSend: Omit<SignAndSendSectionProps, 'rightColumn' | 'variant' | 'leadingIcon'> & {
12
- leadingIcon: ReactNode;
13
- upload: DocumentReviewUploadCardProps;
14
- };
11
+ signAndSend: BannerTagSectionProps;
15
12
  trustPilot: ReactNode;
16
- askQuestions: Omit<LawgeniusAskQuestionsSectionProps, 'illustration'> & {
17
- illustration: LawgeniusFloatingTagsIllustrationProps;
18
- };
13
+ askQuestions: BannerTagSectionProps;
19
14
  faq: FaqSectionProps;
20
15
  };
21
16
 
22
- export interface DocumentReviewUploadCardProps {
23
- uploadPromptText: string;
24
- addDocumentLabel: string;
25
- fileSizeText: string;
26
- disclaimer: ReactNode;
27
- onAddDocument?: () => void;
28
- /** Default shows PlusIcon; override for custom icon */
29
- addDocumentIcon?: ReactNode;
30
- variant?: DocumentReviewUploadCardVariant;
31
- className?: string;
17
+ export interface BannerTagSectionProps {
18
+ title: string;
19
+ description: string;
20
+ cta: ReactNode;
21
+ rightImage: ReactNode | null;
22
+ tags: {
23
+ top: TagProps | null;
24
+ middle: TagProps | null;
25
+ bottom: TagProps | null;
26
+ };
32
27
  }
33
28
 
34
- export type DocumentReviewUploadCardVariant = 'glassOnDark' | 'embeddedOnDark';
35
-
36
29
  export interface FaqItemProps {
37
30
  question: string;
38
31
  answer: string;
@@ -102,29 +95,6 @@ export interface HowItWorksStep {
102
95
  icon: ReactNode;
103
96
  }
104
97
 
105
- export interface LawgeniusAskQuestionsSectionProps {
106
- title: string;
107
- description: string;
108
- paragraphs: string[];
109
- ctaLabel: string;
110
- onCtaClick?: () => void;
111
- illustration: ReactNode;
112
- className?: string;
113
- }
114
-
115
- export interface LawgeniusFloatingTag {
116
- id: string;
117
- className: string;
118
- children: ReactNode;
119
- }
120
-
121
- export interface LawgeniusFloatingTagsIllustrationProps {
122
- imageSrc: string;
123
- imageAlt: string;
124
- tags: LawgeniusFloatingTag[];
125
- className?: string;
126
- }
127
-
128
98
  export interface QuickBenefit {
129
99
  id: string;
130
100
  title: string;
@@ -132,18 +102,11 @@ export interface QuickBenefit {
132
102
  icon: ReactNode;
133
103
  }
134
104
 
135
- export interface SignAndSendSectionProps {
105
+ export interface TagProps {
136
106
  title: string;
137
- description: string;
138
- ctaLabel: string;
139
- imageSrc?: string;
140
- imageAlt?: string;
141
- /** When set, replaces the image column (e.g. upload card for Lawgenius) */
142
- rightColumn?: ReactNode;
143
- leadingIcon?: ReactNode;
144
- onCtaClick?: () => void;
145
- /** `default`: neutral card (e-sign). `lawgeniusDark`: primary-900 rounded panel + light text */
146
- variant?: 'default' | 'lawgeniusDark';
107
+ icon: ReactNode;
108
+ variant: 'default' | 'highlight' | 'dark';
109
+ className?: string;
147
110
  }
148
111
 
149
112
  export interface UploadZoneProps {
@@ -1,49 +1,32 @@
1
- import { jsxs as g, jsx as o } from "react/jsx-runtime";
2
- import { DocumentReviewUploadCard as x } from "./DocumentReviewUploadCard.js";
3
- import { LawgeniusAskQuestionsSection as w } from "./LawgeniusAskQuestionsSection.js";
4
- import { LawgeniusFloatingTagsIllustration as S } from "./LawgeniusFloatingTagsIllustration.js";
5
- import { SignAndSendSection as v } from "./SignAndSendSection.js";
6
- import { Hero2Section as h } from "./Hero2Section.js";
7
- import { HowItWorksSection as k } from "./HowItWorksSection.js";
8
- import { FastAndSimpleSection as R } from "./FastAndSimpleSection.js";
9
- import { FeaturesSection as A } from "./FeaturesSection.js";
10
- import { FaqSection as D } from "./FaqSection.js";
11
- const U = ({
12
- hero: t,
13
- howItWorks: a,
14
- fastAndSimple: i,
15
- insights: e,
16
- signAndSend: r,
1
+ import { jsxs as p, jsx as e } from "react/jsx-runtime";
2
+ import { Hero2Section as f } from "./Hero2Section.js";
3
+ import { HowItWorksSection as x } from "./HowItWorksSection.js";
4
+ import { FastAndSimpleSection as u } from "./FastAndSimpleSection.js";
5
+ import { FeaturesSection as S } from "./FeaturesSection.js";
6
+ import { BannerTagSection as a } from "./BannerTagSection.js";
7
+ import { FaqSection as d } from "./FaqSection.js";
8
+ const y = ({
9
+ hero: o,
10
+ howItWorks: r,
11
+ fastAndSimple: t,
12
+ insights: m,
13
+ signAndSend: i,
17
14
  trustPilot: n,
18
- askQuestions: s,
19
- faq: m
15
+ askQuestions: l,
16
+ faq: s
20
17
  }) => {
21
- const { ...l } = t, { upload: c, leadingIcon: p, ...u } = r, { illustration: d, ...f } = s;
22
- return /* @__PURE__ */ g("main", { className: "flex w-full flex-col", children: [
23
- /* @__PURE__ */ o(h, { ...l, variant: "ratafia" }),
24
- /* @__PURE__ */ o(k, { ...a }),
25
- /* @__PURE__ */ o(R, { ...i, variant: "ratafia" }),
26
- /* @__PURE__ */ o(A, { ...e }),
27
- /* @__PURE__ */ o(
28
- v,
29
- {
30
- ...u,
31
- variant: "lawgeniusDark",
32
- leadingIcon: p,
33
- rightColumn: /* @__PURE__ */ o(x, { ...c, variant: "embeddedOnDark" })
34
- }
35
- ),
36
- /* @__PURE__ */ o("div", { className: "w-full max-w-254 md:h-34", children: n }),
37
- /* @__PURE__ */ o(
38
- w,
39
- {
40
- ...f,
41
- illustration: /* @__PURE__ */ o(S, { ...d })
42
- }
43
- ),
44
- /* @__PURE__ */ o("section", { className: "bg-neutral-25 px-6 py-16 sm:px-10 lg:px-32", children: /* @__PURE__ */ o(D, { ...m, className: "mx-auto max-w-6xl space-y-6" }) })
18
+ const { ...c } = o;
19
+ return /* @__PURE__ */ p("main", { className: "flex w-full flex-col", children: [
20
+ /* @__PURE__ */ e(f, { ...c, variant: "ratafia" }),
21
+ /* @__PURE__ */ e(x, { ...r }),
22
+ /* @__PURE__ */ e(u, { ...t, variant: "ratafia" }),
23
+ /* @__PURE__ */ e(S, { ...m }),
24
+ /* @__PURE__ */ e(a, { ...i }),
25
+ /* @__PURE__ */ e("div", { className: "w-full max-w-254 md:h-34", children: n }),
26
+ /* @__PURE__ */ e(a, { ...l }),
27
+ /* @__PURE__ */ e("section", { className: "bg-neutral-25 px-6 py-16 sm:px-10 lg:px-32", children: /* @__PURE__ */ e(d, { ...s, className: "mx-auto max-w-6xl space-y-6" }) })
45
28
  ] });
46
29
  };
47
30
  export {
48
- U as AiLegalDocumentReviewerTemplate
31
+ y as AiLegalDocumentReviewerTemplate
49
32
  };
@@ -0,0 +1,24 @@
1
+ import { FC } from 'react';
2
+ import { ReactNode } from 'react';
3
+
4
+ export declare const BannerTagSection: FC<BannerTagSectionProps>;
5
+
6
+ export declare interface BannerTagSectionProps {
7
+ title: string;
8
+ description: string;
9
+ cta: ReactNode;
10
+ rightImage: ReactNode | null;
11
+ tags: {
12
+ top: TagProps | null;
13
+ middle: TagProps | null;
14
+ bottom: TagProps | null;
15
+ };
16
+ }
17
+
18
+ export interface TagProps {
19
+ title: string;
20
+ icon: ReactNode;
21
+ variant: 'default' | 'highlight' | 'dark';
22
+ className?: string;
23
+ }
24
+
@@ -0,0 +1,29 @@
1
+ import { jsx as e, jsxs as t } from "react/jsx-runtime";
2
+ import s from "clsx";
3
+ import { Markdown as n } from "./Markdown.js";
4
+ import { LinkWrapper as m } from "./LinkWrapper.js";
5
+ const d = ({ title: r, icon: a, variant: o, className: i = "" }) => /* @__PURE__ */ t("div", { className: s("text-small flex items-center gap-1 rounded shadow-lg", {
6
+ default: "text-neutral-600 bg-neutral-25 p-2",
7
+ highlight: "text-primary-500 font-bold bg-primary-100 border border-primary-300 p-1",
8
+ dark: "text-white font-bold bg-primary-800 p-2"
9
+ }[o], i), children: [
10
+ a,
11
+ r
12
+ ] }), g = ({ title: r, description: a, cta: o, rightImage: i, tags: l }) => /* @__PURE__ */ e("section", { className: "bg-white px-6 py-8 lg:px-8 lg:py-12 xl:px-0", children: /* @__PURE__ */ t("div", { className: "bg-neutral-25 mx-auto flex w-full max-w-298 rounded-2xl p-8 lg:gap-20 lg:px-16 lg:pt-12 lg:pb-0", children: [
13
+ /* @__PURE__ */ t("div", { className: "flex flex-col gap-8 lg:pb-12", children: [
14
+ /* @__PURE__ */ t("div", { className: "flex flex-col gap-4", children: [
15
+ /* @__PURE__ */ e("h3", { className: "text-super-large text-primary-900 font-bold", children: r }),
16
+ /* @__PURE__ */ e(n, { className: "text-medium text-neutral-800 [&_p:last-child]:mb-0", content: a })
17
+ ] }),
18
+ /* @__PURE__ */ e(m, { className: "w-fit", variant: "primary-green", children: o })
19
+ ] }),
20
+ /* @__PURE__ */ t("div", { className: "relative hidden shrink-0 self-end lg:block", children: [
21
+ /* @__PURE__ */ e("div", { className: "overflow-hidden rounded-t-lg shadow", children: i }),
22
+ l.top && /* @__PURE__ */ e(d, { ...l.top, className: "absolute -top-3 left-20" }),
23
+ l.middle && /* @__PURE__ */ e(d, { ...l.middle, className: "absolute bottom-36 -left-4" }),
24
+ l.bottom && /* @__PURE__ */ e(d, { ...l.bottom, className: "absolute top-19 -right-4" })
25
+ ] })
26
+ ] }) });
27
+ export {
28
+ g as BannerTagSection
29
+ };
@@ -1,6 +1,18 @@
1
1
  import { FC } from 'react';
2
2
  import { ReactNode } from 'react';
3
3
 
4
+ export interface BannerTagSectionProps {
5
+ title: string;
6
+ description: string;
7
+ cta: ReactNode;
8
+ rightImage: ReactNode | null;
9
+ tags: {
10
+ top: TagProps | null;
11
+ middle: TagProps | null;
12
+ bottom: TagProps | null;
13
+ };
14
+ }
15
+
4
16
  export declare const ElectronicSignatureTemplate: FC<ElectronicSignatureTemplateProps>;
5
17
 
6
18
  export declare interface ElectronicSignatureTemplateProps {
@@ -9,7 +21,7 @@ export declare interface ElectronicSignatureTemplateProps {
9
21
  fastAndSimple: Omit<FastAndSimpleSectionProps, 'variant'>;
10
22
  benefits: FeaturesSectionProps;
11
23
  trustPilot: ReactNode;
12
- signAndSend: SignAndSendSectionProps;
24
+ signAndSend: BannerTagSectionProps;
13
25
  faq: FaqSectionProps;
14
26
  }
15
27
 
@@ -89,18 +101,11 @@ export interface QuickBenefit {
89
101
  icon: ReactNode;
90
102
  }
91
103
 
92
- export interface SignAndSendSectionProps {
104
+ export interface TagProps {
93
105
  title: string;
94
- description: string;
95
- ctaLabel: string;
96
- imageSrc?: string;
97
- imageAlt?: string;
98
- /** When set, replaces the image column (e.g. upload card for Lawgenius) */
99
- rightColumn?: ReactNode;
100
- leadingIcon?: ReactNode;
101
- onCtaClick?: () => void;
102
- /** `default`: neutral card (e-sign). `lawgeniusDark`: primary-900 rounded panel + light text */
103
- variant?: 'default' | 'lawgeniusDark';
106
+ icon: ReactNode;
107
+ variant: 'default' | 'highlight' | 'dark';
108
+ className?: string;
104
109
  }
105
110
 
106
111
  export interface UploadZoneProps {
@@ -3,24 +3,24 @@ import { Hero2Section as s } from "./Hero2Section.js";
3
3
  import { HowItWorksSection as c } from "./HowItWorksSection.js";
4
4
  import { FastAndSimpleSection as p } from "./FastAndSimpleSection.js";
5
5
  import { FeaturesSection as f } from "./FeaturesSection.js";
6
- import { SignAndSendSection as S } from "./SignAndSendSection.js";
7
- import { FaqSection as x } from "./FaqSection.js";
6
+ import { BannerTagSection as x } from "./BannerTagSection.js";
7
+ import { FaqSection as S } from "./FaqSection.js";
8
8
  const N = ({
9
- hero: e,
10
- howItWorks: i,
11
- fastAndSimple: r,
12
- benefits: t,
9
+ hero: r,
10
+ howItWorks: e,
11
+ fastAndSimple: t,
12
+ benefits: i,
13
13
  trustPilot: m,
14
- signAndSend: n,
15
- faq: a
14
+ signAndSend: a,
15
+ faq: n
16
16
  }) => /* @__PURE__ */ l("main", { className: "w-full flex-1 bg-neutral-50", children: [
17
- /* @__PURE__ */ o(s, { ...e, variant: "esign" }),
18
- /* @__PURE__ */ o(c, { ...i }),
19
- /* @__PURE__ */ o(p, { ...r, variant: "esign" }),
20
- /* @__PURE__ */ o(f, { ...t }),
17
+ /* @__PURE__ */ o(s, { ...r, variant: "esign" }),
18
+ /* @__PURE__ */ o(c, { ...e }),
19
+ /* @__PURE__ */ o(p, { ...t, variant: "esign" }),
20
+ /* @__PURE__ */ o(f, { ...i }),
21
21
  /* @__PURE__ */ o("div", { className: "w-full max-w-254 md:h-34", children: m }),
22
- /* @__PURE__ */ o(S, { ...n }),
23
- /* @__PURE__ */ o(x, { ...a, className: "mx-auto max-w-4xl px-4 py-16" })
22
+ /* @__PURE__ */ o(x, { ...a }),
23
+ /* @__PURE__ */ o(S, { ...n, className: "mx-auto max-w-4xl px-4 py-16" })
24
24
  ] });
25
25
  export {
26
26
  N as ElectronicSignatureTemplate