@npm_leadtech/legal-contracts-ui 0.97.4 → 0.99.0

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.
@@ -5,13 +5,13 @@ export declare const AiLegalDocumentReviewerTemplate: FC<AiLegalDocumentReviewer
5
5
 
6
6
  export declare type AiLegalDocumentReviewerTemplateProps = {
7
7
  hero: Omit<Hero2SectionProps, 'variant'>;
8
- howItWorks: HowItWorksSectionProps;
8
+ howItWorks: Omit<HowItWorksSectionProps, 'variant'>;
9
9
  fastAndSimple: Omit<FastAndSimpleSectionProps, 'variant'>;
10
10
  conversion: ConversionSectionProps;
11
11
  insights: FeaturesSectionProps;
12
12
  trustPilot: ReactNode;
13
- askQuestions: BannerTagSectionProps;
14
- faq: FaqSectionProps;
13
+ askQuestions: Omit<BannerTagSectionProps, 'variant'>;
14
+ faq: Omit<FaqSectionProps, 'className'>;
15
15
  toast?: ToastProps;
16
16
  };
17
17
 
@@ -94,6 +94,7 @@ export interface HowItWorksSectionProps {
94
94
  title: string;
95
95
  description: string;
96
96
  steps: HowItWorksStep[];
97
+ variant: 'esign' | 'ratafia';
97
98
  }
98
99
 
99
100
  export interface HowItWorksStep {
@@ -1,32 +1,32 @@
1
- import { jsxs as c, jsx as r } from "react/jsx-runtime";
1
+ import { jsxs as c, jsx as a } from "react/jsx-runtime";
2
2
  import { ConversionSection as s } from "./ConversionSection.js";
3
- import { Hero2Section as x } from "./Hero2Section.js";
4
- import { HowItWorksSection as f } from "./HowItWorksSection.js";
3
+ import { Hero2Section as f } from "./Hero2Section.js";
4
+ import { HowItWorksSection as x } from "./HowItWorksSection.js";
5
5
  import { FastAndSimpleSection as g } from "./FastAndSimpleSection.js";
6
6
  import { FeaturesSection as u } from "./FeaturesSection.js";
7
7
  import { BannerTagSection as S } from "./BannerTagSection.js";
8
- import { FaqSection as w } from "./FaqSection.js";
9
- import { Toast as d } from "./Toast.js";
8
+ import { FaqSection as v } from "./FaqSection.js";
9
+ import { Toast as w } from "./Toast.js";
10
10
  const H = ({
11
11
  hero: o,
12
12
  howItWorks: t,
13
- fastAndSimple: e,
14
- conversion: i,
13
+ fastAndSimple: i,
14
+ conversion: e,
15
15
  insights: m,
16
16
  trustPilot: n,
17
17
  askQuestions: l,
18
18
  faq: p,
19
- toast: a
19
+ toast: r
20
20
  }) => /* @__PURE__ */ c("main", { className: "bg-neutral-25 w-full flex-1", children: [
21
- /* @__PURE__ */ r(x, { ...o, variant: "ratafia" }),
22
- /* @__PURE__ */ r(f, { ...t }),
23
- /* @__PURE__ */ r(g, { ...e, variant: "ratafia" }),
24
- /* @__PURE__ */ r(u, { ...m }),
25
- /* @__PURE__ */ r(s, { ...i }),
26
- /* @__PURE__ */ r("section", { className: "bg-white px-6 py-8 lg:px-8 lg:py-12 xl:px-0", children: /* @__PURE__ */ r("div", { className: "mx-auto w-full max-w-254 md:h-34", children: n }) }),
27
- /* @__PURE__ */ r(S, { ...l, variant: "ratafia" }),
28
- /* @__PURE__ */ r(w, { ...p, className: "mx-auto max-w-250 px-6 py-12 lg:px-8 lg:pb-20 xl:px-0" }),
29
- a && /* @__PURE__ */ r(d, { ...a })
21
+ /* @__PURE__ */ a(f, { ...o, variant: "ratafia" }),
22
+ /* @__PURE__ */ a(x, { ...t, variant: "ratafia" }),
23
+ /* @__PURE__ */ a(g, { ...i, variant: "ratafia" }),
24
+ /* @__PURE__ */ a(u, { ...m }),
25
+ /* @__PURE__ */ a(s, { ...e }),
26
+ /* @__PURE__ */ a("section", { className: "bg-white px-6 py-8 lg:px-8 lg:py-12 xl:px-0", children: /* @__PURE__ */ a("div", { className: "mx-auto w-full max-w-254 md:h-34", children: n }) }),
27
+ /* @__PURE__ */ a(S, { ...l, variant: "ratafia" }),
28
+ /* @__PURE__ */ a(v, { ...p, className: "mx-auto max-w-250 px-6 py-12 lg:px-8 lg:pb-20 xl:px-0" }),
29
+ r && /* @__PURE__ */ a(w, { ...r })
30
30
  ] });
31
31
  export {
32
32
  H as AiLegalDocumentReviewerTemplate
@@ -18,12 +18,12 @@ export declare const ElectronicSignatureTemplate: FC<ElectronicSignatureTemplate
18
18
 
19
19
  export declare interface ElectronicSignatureTemplateProps {
20
20
  hero: Omit<Hero2SectionProps, 'variant'>;
21
- howItWorks: HowItWorksSectionProps;
21
+ howItWorks: Omit<HowItWorksSectionProps, 'variant'>;
22
22
  fastAndSimple: Omit<FastAndSimpleSectionProps, 'variant'>;
23
23
  benefits: FeaturesSectionProps;
24
24
  trustPilot: ReactNode;
25
- signAndSend: BannerTagSectionProps;
26
- faq: FaqSectionProps;
25
+ signAndSend: Omit<BannerTagSectionProps, 'variant'>;
26
+ faq: Omit<FaqSectionProps, 'className'>;
27
27
  toast?: ToastProps;
28
28
  }
29
29
 
@@ -87,6 +87,7 @@ export interface HowItWorksSectionProps {
87
87
  title: string;
88
88
  description: string;
89
89
  steps: HowItWorksStep[];
90
+ variant: 'esign' | 'ratafia';
90
91
  }
91
92
 
92
93
  export interface HowItWorksStep {
@@ -1,29 +1,29 @@
1
- import { jsxs as p, jsx as o } from "react/jsx-runtime";
1
+ import { jsxs as p, jsx as i } from "react/jsx-runtime";
2
2
  import { Hero2Section as s } from "./Hero2Section.js";
3
3
  import { HowItWorksSection as c } from "./HowItWorksSection.js";
4
4
  import { FastAndSimpleSection as x } from "./FastAndSimpleSection.js";
5
- import { FeaturesSection as f } from "./FeaturesSection.js";
6
- import { BannerTagSection as g } from "./BannerTagSection.js";
5
+ import { FeaturesSection as g } from "./FeaturesSection.js";
6
+ import { BannerTagSection as f } from "./BannerTagSection.js";
7
7
  import { Toast as S } from "./Toast.js";
8
8
  import { FaqSection as u } from "./FaqSection.js";
9
9
  const T = ({
10
- hero: i,
10
+ hero: o,
11
11
  howItWorks: r,
12
12
  fastAndSimple: t,
13
- benefits: m,
14
- trustPilot: a,
13
+ benefits: a,
14
+ trustPilot: m,
15
15
  signAndSend: n,
16
16
  faq: l,
17
17
  toast: e
18
18
  }) => /* @__PURE__ */ p("main", { className: "bg-neutral-25 w-full flex-1", children: [
19
- /* @__PURE__ */ o(s, { ...i, variant: "esign" }),
20
- /* @__PURE__ */ o(c, { ...r }),
21
- /* @__PURE__ */ o(x, { ...t, variant: "esign" }),
22
- /* @__PURE__ */ o(f, { ...m }),
23
- /* @__PURE__ */ o("section", { className: "bg-white px-6 py-8 lg:px-8 lg:py-12 xl:px-0", children: /* @__PURE__ */ o("div", { className: "mx-auto w-full max-w-254 md:h-34", children: a }) }),
24
- /* @__PURE__ */ o(g, { ...n, variant: "esign" }),
25
- /* @__PURE__ */ o(u, { ...l, className: "mx-auto max-w-250 px-6 py-12 lg:px-8 lg:pb-20 xl:px-0" }),
26
- e && /* @__PURE__ */ o(S, { ...e })
19
+ /* @__PURE__ */ i(s, { ...o, variant: "esign" }),
20
+ /* @__PURE__ */ i(c, { ...r, variant: "esign" }),
21
+ /* @__PURE__ */ i(x, { ...t, variant: "esign" }),
22
+ /* @__PURE__ */ i(g, { ...a }),
23
+ /* @__PURE__ */ i("section", { className: "bg-white px-6 py-8 lg:px-8 lg:py-12 xl:px-0", children: /* @__PURE__ */ i("div", { className: "mx-auto w-full max-w-254 md:h-34", children: m }) }),
24
+ /* @__PURE__ */ i(f, { ...n, variant: "esign" }),
25
+ /* @__PURE__ */ i(u, { ...l, className: "mx-auto max-w-250 px-6 py-12 lg:px-8 lg:pb-20 xl:px-0" }),
26
+ e && /* @__PURE__ */ i(S, { ...e })
27
27
  ] });
28
28
  export {
29
29
  T as ElectronicSignatureTemplate
@@ -8,6 +8,7 @@ export declare interface HowItWorksSectionProps {
8
8
  title: string;
9
9
  description: string;
10
10
  steps: HowItWorksStep[];
11
+ variant: 'esign' | 'ratafia';
11
12
  }
12
13
 
13
14
  export declare interface HowItWorksStep {
@@ -1,22 +1,35 @@
1
1
  import { jsx as e, jsxs as l } from "react/jsx-runtime";
2
- import { Markdown as c } from "./Markdown.js";
3
- const m = ({ media: d, title: i, description: r, 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: d }),
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: i }),
7
- !!r && /* @__PURE__ */ e(c, { className: "text-medium [&_a]:text-primary-700 [&_p:last-child]:mb-0", content: r }),
8
- /* @__PURE__ */ e("div", { className: "grid grid-cols-1 gap-4 lg:grid-cols-3 xl:grid-cols-1", children: s.map((a) => /* @__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
- a.icon,
11
- /* @__PURE__ */ e("p", { className: "text-medium font-bold", children: a.title })
12
- ] }),
13
- /* @__PURE__ */ l("p", { className: "text-small", children: [
14
- a.description,
15
- " "
16
- ] })
17
- ] }) }, a.id)) })
18
- ] })
19
- ] }) });
2
+ import i from "clsx";
3
+ import { Markdown as m } from "./Markdown.js";
4
+ const f = ({ media: o, title: s, description: a, steps: t, variant: c }) => {
5
+ const d = c === "ratafia";
6
+ return /* @__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: [
7
+ /* @__PURE__ */ e(
8
+ "div",
9
+ {
10
+ className: i(
11
+ "relative overflow-hidden rounded-md shadow lg:mx-auto xl:shrink-0",
12
+ d ? "order-1" : "order-2 md:order-1"
13
+ ),
14
+ children: o
15
+ }
16
+ ),
17
+ /* @__PURE__ */ l("div", { className: i("flex flex-col gap-6 text-neutral-800", d ? "order-2" : "order-1 md:order-2"), children: [
18
+ /* @__PURE__ */ e("h2", { className: "text-super-large font-bold", children: s }),
19
+ !!a && /* @__PURE__ */ e(m, { className: "text-medium [&_a]:text-primary-700 [&_p:last-child]:mb-0", content: a }),
20
+ /* @__PURE__ */ e("div", { className: "grid grid-cols-1 gap-4 lg:grid-cols-3 xl:grid-cols-1", children: t.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: [
21
+ /* @__PURE__ */ l("div", { className: "flex justify-center gap-2", children: [
22
+ r.icon,
23
+ /* @__PURE__ */ e("p", { className: "text-medium font-bold", children: r.title })
24
+ ] }),
25
+ /* @__PURE__ */ l("p", { className: "text-small", children: [
26
+ r.description,
27
+ " "
28
+ ] })
29
+ ] }) }, r.id)) })
30
+ ] })
31
+ ] }) });
32
+ };
20
33
  export {
21
- m as HowItWorksSection
34
+ f as HowItWorksSection
22
35
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@npm_leadtech/legal-contracts-ui",
3
- "version": "0.97.4",
3
+ "version": "0.99.0",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",