@npm_leadtech/legal-contracts-ui 0.97.3 → 0.98.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.
@@ -42,12 +42,8 @@ export interface ContactUsSectionProps {
42
42
 
43
43
  export interface CtaSectionProps {
44
44
  title: string;
45
- paragraph?: ReactNode;
46
45
  cta: ButtonProps;
47
- children?: ReactNode;
48
- className?: string;
49
- contentClassName?: string;
50
- childrenClassName?: string;
46
+ children: ReactNode;
51
47
  }
52
48
 
53
49
  export interface ExpertsSectionProps {
@@ -5,13 +5,14 @@ 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
+ conversion: ConversionSectionProps;
10
11
  insights: FeaturesSectionProps;
11
- signAndSend: BannerTagSectionProps;
12
12
  trustPilot: ReactNode;
13
- askQuestions: BannerTagSectionProps;
14
- faq: FaqSectionProps;
13
+ askQuestions: Omit<BannerTagSectionProps, 'variant'>;
14
+ faq: Omit<FaqSectionProps, 'className'>;
15
+ toast?: ToastProps;
15
16
  };
16
17
 
17
18
  export interface BannerTagSectionProps {
@@ -24,6 +25,13 @@ export interface BannerTagSectionProps {
24
25
  middle: TagProps | null;
25
26
  bottom: TagProps | null;
26
27
  };
28
+ variant: 'esign' | 'ratafia';
29
+ }
30
+
31
+ export interface ConversionSectionProps {
32
+ icon: ReactNode;
33
+ title: string;
34
+ uploadZone: UploadZoneProps;
27
35
  }
28
36
 
29
37
  export interface FaqItemProps {
@@ -86,6 +94,7 @@ export interface HowItWorksSectionProps {
86
94
  title: string;
87
95
  description: string;
88
96
  steps: HowItWorksStep[];
97
+ variant: 'esign' | 'ratafia';
89
98
  }
90
99
 
91
100
  export interface HowItWorksStep {
@@ -109,6 +118,14 @@ export interface TagProps {
109
118
  className?: string;
110
119
  }
111
120
 
121
+ export interface ToastProps {
122
+ show: boolean;
123
+ title: string;
124
+ message: string;
125
+ type?: 'success' | 'error' | 'default';
126
+ onClose: () => void;
127
+ }
128
+
112
129
  export interface UploadZoneProps {
113
130
  uploadPromptText: string;
114
131
  addDocumentLabel: string;
@@ -1,32 +1,33 @@
1
- import { jsxs as p, jsx as e } from "react/jsx-runtime";
1
+ import { jsxs as c, jsx as a } from "react/jsx-runtime";
2
+ import { ConversionSection as s } from "./ConversionSection.js";
2
3
  import { Hero2Section as f } from "./Hero2Section.js";
3
4
  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 = ({
5
+ import { FastAndSimpleSection as g } from "./FastAndSimpleSection.js";
6
+ import { FeaturesSection as u } from "./FeaturesSection.js";
7
+ import { BannerTagSection as S } from "./BannerTagSection.js";
8
+ import { FaqSection as v } from "./FaqSection.js";
9
+ import { Toast as w } from "./Toast.js";
10
+ const H = ({
9
11
  hero: o,
10
- howItWorks: r,
11
- fastAndSimple: t,
12
+ howItWorks: t,
13
+ fastAndSimple: i,
14
+ conversion: e,
12
15
  insights: m,
13
- signAndSend: i,
14
16
  trustPilot: n,
15
17
  askQuestions: l,
16
- faq: s
17
- }) => {
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" }) })
28
- ] });
29
- };
18
+ faq: p,
19
+ toast: r
20
+ }) => /* @__PURE__ */ c("main", { className: "bg-neutral-25 w-full flex-1", children: [
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
  export {
31
- y as AiLegalDocumentReviewerTemplate
32
+ H as AiLegalDocumentReviewerTemplate
32
33
  };
@@ -13,6 +13,7 @@ export declare interface BannerTagSectionProps {
13
13
  middle: TagProps | null;
14
14
  bottom: TagProps | null;
15
15
  };
16
+ variant: 'esign' | 'ratafia';
16
17
  }
17
18
 
18
19
  export interface TagProps {
@@ -1,29 +1,29 @@
1
- import { jsx as e, jsxs as t } from "react/jsx-runtime";
2
- import n from "clsx";
3
- import { Markdown as d } from "./Markdown.js";
4
- import { LinkWrapper as m } from "./LinkWrapper.js";
5
- const s = ({ title: r, icon: a, variant: i, className: o = "" }) => /* @__PURE__ */ t("div", { className: n("text-small flex items-center gap-1 rounded shadow-lg", {
1
+ import { jsx as e, jsxs as l } from "react/jsx-runtime";
2
+ import d from "clsx";
3
+ import { Markdown as m } from "./Markdown.js";
4
+ import { LinkWrapper as p } from "./LinkWrapper.js";
5
+ const s = ({ title: t, icon: r, variant: i, className: o = "" }) => /* @__PURE__ */ l("div", { className: d("text-small flex items-center gap-1 rounded shadow-lg", {
6
6
  default: "text-neutral-600 bg-neutral-25 p-2",
7
7
  highlight: "text-primary-500 font-bold bg-primary-100 border border-primary-300 p-1",
8
8
  dark: "text-white font-bold bg-primary-800 p-2"
9
9
  }[i], o), children: [
10
- a,
11
- r
12
- ] }), b = ({ title: r, description: a, cta: i, rightImage: o, 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(d, { className: "text-medium text-neutral-800 [&_p:last-child]:mb-0", content: a })
10
+ r,
11
+ t
12
+ ] }), g = ({ title: t, description: r, cta: i, rightImage: o, tags: a, variant: n }) => /* @__PURE__ */ e("section", { className: "bg-white px-6 py-8 lg:px-8 lg:py-12 xl:px-0", children: /* @__PURE__ */ l("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__ */ l("div", { className: "flex flex-col gap-8 lg:pb-12", children: [
14
+ /* @__PURE__ */ l("div", { className: "flex flex-col gap-4", children: [
15
+ /* @__PURE__ */ e("h3", { className: "text-super-large text-primary-900 font-bold", children: t }),
16
+ /* @__PURE__ */ e(m, { className: "text-medium text-neutral-800 [&_p:last-child]:mb-0", content: r })
17
17
  ] }),
18
- /* @__PURE__ */ e(m, { className: "w-fit", variant: "primary-green", children: i })
18
+ /* @__PURE__ */ e(p, { className: "w-fit", variant: "primary-green", children: i })
19
19
  ] }),
20
- /* @__PURE__ */ t("div", { className: "relative hidden shrink-0 self-end lg:block", children: [
21
- /* @__PURE__ */ e("div", { className: "overflow-hidden", children: o }),
22
- l.top && /* @__PURE__ */ e(s, { ...l.top, className: "absolute -top-3 left-20" }),
23
- l.middle && /* @__PURE__ */ e(s, { ...l.middle, className: "absolute bottom-36 -left-4" }),
24
- l.bottom && /* @__PURE__ */ e(s, { ...l.bottom, className: "absolute top-19 -right-4" })
20
+ /* @__PURE__ */ l("div", { className: "relative hidden shrink-0 self-end lg:block", children: [
21
+ /* @__PURE__ */ e("div", { className: d("overflow-hidden", n === "ratafia" && "rounded-t-md shadow-sm"), children: o }),
22
+ a.top && /* @__PURE__ */ e(s, { ...a.top, className: "absolute -top-3 left-50/100 translate-x-[-50%]" }),
23
+ a.middle && /* @__PURE__ */ e(s, { ...a.middle, className: "absolute bottom-36 -left-4" }),
24
+ a.bottom && /* @__PURE__ */ e(s, { ...a.bottom, className: "absolute top-19 -right-4" })
25
25
  ] })
26
26
  ] }) });
27
27
  export {
28
- b as BannerTagSection
28
+ g as BannerTagSection
29
29
  };
@@ -0,0 +1,21 @@
1
+ import { FC } from 'react';
2
+ import { ReactNode } from 'react';
3
+
4
+ export declare const ConversionSection: FC<ConversionSectionProps>;
5
+
6
+ export declare interface ConversionSectionProps {
7
+ icon: ReactNode;
8
+ title: string;
9
+ uploadZone: UploadZoneProps;
10
+ }
11
+
12
+ export interface UploadZoneProps {
13
+ uploadPromptText: string;
14
+ addDocumentLabel: string;
15
+ fileSizeText: string;
16
+ disclaimer: string;
17
+ containerClassName?: string;
18
+ onAddDocument?: () => void;
19
+ onDropDocument?: (e: React.DragEvent<HTMLDivElement>) => void;
20
+ }
21
+
@@ -0,0 +1,12 @@
1
+ import { jsx as e, jsxs as l } from "react/jsx-runtime";
2
+ import { UploadZone as s } from "./UploadZone.js";
3
+ const n = ({ icon: a, title: t, uploadZone: r }) => /* @__PURE__ */ e("section", { className: "bg-white px-6 py-8 xl:px-0", children: /* @__PURE__ */ l("div", { className: "bg-ratafia mx-auto flex w-full max-w-300 shrink flex-col gap-6 rounded-2xl p-6 md:flex-row md:items-center md:gap-10 md:p-8 lg:pe-10 lg:pl-16 xl:items-start xl:gap-20", children: [
4
+ /* @__PURE__ */ l("div", { className: "flex flex-col gap-4", children: [
5
+ /* @__PURE__ */ e("span", { className: "xl:pt-12", children: a }),
6
+ /* @__PURE__ */ e("h4", { className: "text-super-large md:text-extra-large font-bold text-white", children: t })
7
+ ] }),
8
+ /* @__PURE__ */ e(s, { ...r, containerClassName: "md:min-w-77 lg:min-w-115" })
9
+ ] }) });
10
+ export {
11
+ n as ConversionSection
12
+ };
@@ -13,36 +13,14 @@ export type ButtonSize = 'small' | 'default' | 'large';
13
13
 
14
14
  export type ButtonVariant = 'primary-green' | 'primary-darkgreen' | 'primary-yellow' | 'primary-white' | 'secondary-green' | 'secondary-yellow' | 'secondary-red' | 'secondary-black' | 'tertiary-bold' | 'tertiary-thin' | 'tertiary-icon' | 'tertiary-link' | 'icon-black' | 'icon-grey' | 'icon-mobile';
15
15
 
16
- export declare const CtaFeatureTag: FC<CtaFeatureTagProps>;
17
-
18
- export declare interface CtaFeatureTagProps {
19
- icon: string;
20
- text: string;
21
- className?: string;
22
- }
23
-
24
- export declare const CtaSample: FC<CtaSampleProps>;
25
-
26
- export declare interface CtaSampleProps {
27
- image: ReactNode;
28
- children?: ReactNode;
29
- className?: string;
30
- }
31
-
32
16
  export declare const CtaSection: FC<CtaSectionProps>;
33
17
 
34
18
  export declare interface CtaSectionProps {
35
19
  title: string;
36
- paragraph?: ReactNode;
37
20
  cta: ButtonProps;
38
- children?: ReactNode;
39
- className?: string;
40
- contentClassName?: string;
41
- childrenClassName?: string;
21
+ children: ReactNode;
42
22
  }
43
23
 
44
- export declare const CtaSummarizedTag: FC<CtaFeatureTagProps>;
45
-
46
24
  export type IconPosition = 'left' | 'right' | 'top';
47
25
 
48
26
  export type ResponsiveButtonVariant = ButtonVariant | {
@@ -1,53 +1,12 @@
1
- import { jsxs as r, jsx as e } from "react/jsx-runtime";
2
- import { Button as c } from "./Button.js";
3
- const p = ({
4
- title: a,
5
- paragraph: l,
6
- cta: t,
7
- children: s,
8
- className: m = "",
9
- contentClassName: i = "",
10
- childrenClassName: d = "hidden lg:flex"
11
- }) => /* @__PURE__ */ e("section", { className: `flex w-full justify-center px-6 py-8 md:px-8 md:py-12 ${m}`, children: /* @__PURE__ */ r(
12
- "div",
13
- {
14
- className: `bg-primary-50 mx-auto flex w-full max-w-6xl flex-col items-center rounded-[1.25rem] px-8 pt-8 pb-0 md:px-16 md:pt-12 md:pb-0 lg:flex-row lg:items-stretch lg:gap-20 xl:pr-20 xl:pl-16 ${i}`,
15
- children: [
16
- /* @__PURE__ */ r("div", { className: "flex flex-1 flex-col items-start justify-center gap-8 pb-8 md:pb-12 lg:pb-[3rem]", children: [
17
- /* @__PURE__ */ r("div", { className: "flex flex-col items-start gap-4", children: [
18
- /* @__PURE__ */ e("h2", { className: "text-primary-900 text-[28px] leading-[32px] font-bold tracking-tight", children: a }),
19
- !!l && /* @__PURE__ */ e("div", { className: "text-super-medium text-neutral-500", children: l })
20
- ] }),
21
- /* @__PURE__ */ e(c, { size: "large", variant: "primary-darkgreen", className: "px-4 py-2.5", ...t })
22
- ] }),
23
- !!s && /* @__PURE__ */ e("div", { className: `w-full justify-center lg:w-auto lg:items-end ${d}`, children: s })
24
- ]
25
- }
26
- ) }), o = ({ image: a, children: l, className: t = "" }) => /* @__PURE__ */ r("div", { className: `relative flex items-end ${t}`, children: [
27
- /* @__PURE__ */ e("div", { className: "[&_img]:rounded-t-[0.75rem] [&_img]:shadow-[0px_-2px_6px_0px_rgba(2,55,74,0.15)] md:[&_img]:max-w-[25rem] lg:[&_img]:max-h-[30rem]", children: a }),
28
- l
29
- ] }), g = ({ icon: a, text: l, className: t = "" }) => /* @__PURE__ */ r(
30
- "div",
31
- {
32
- className: `bg-primary-50 border-primary-200 shadow-small absolute flex items-center justify-center gap-1 rounded-md border p-1 ${t}`,
33
- children: [
34
- /* @__PURE__ */ e("img", { src: a, alt: "", role: "img", className: "h-4 w-4" }),
35
- /* @__PURE__ */ e("span", { className: "text-primary-900 text-small font-bold", children: l })
36
- ]
37
- }
38
- ), u = ({ icon: a, text: l, className: t = "" }) => /* @__PURE__ */ r(
39
- "div",
40
- {
41
- className: `shadow-small absolute flex items-center justify-center gap-1 rounded-md bg-neutral-50 p-2 ${t}`,
42
- children: [
43
- /* @__PURE__ */ e("img", { src: a, alt: "", role: "img", className: "h-5 w-5" }),
44
- /* @__PURE__ */ e("span", { className: "text-small text-neutral-500", children: l })
45
- ]
46
- }
47
- );
1
+ import { jsx as e, jsxs as a } from "react/jsx-runtime";
2
+ import { Button as t } from "./Button.js";
3
+ const d = ({ title: r, cta: l, children: s }) => /* @__PURE__ */ e("section", { className: "px-4 py-16", children: /* @__PURE__ */ a("div", { className: "bg-primary-50 mx-auto max-w-6xl rounded-3xl p-10 shadow-sm lg:flex lg:items-center lg:gap-10", children: [
4
+ /* @__PURE__ */ a("div", { className: "flex-1 space-y-6", children: [
5
+ /* @__PURE__ */ e("p", { className: "text-super-large text-primary-900 font-bold", children: r }),
6
+ /* @__PURE__ */ e(t, { size: "large", variant: "primary-darkgreen", ...l })
7
+ ] }),
8
+ /* @__PURE__ */ e("div", { className: "mt-10 lg:mt-0", children: /* @__PURE__ */ e("div", { className: "relative rounded-3xl bg-white shadow-lg", children: s }) })
9
+ ] }) });
48
10
  export {
49
- u as CtaFeatureTag,
50
- o as CtaSample,
51
- p as CtaSection,
52
- g as CtaSummarizedTag
11
+ d as CtaSection
53
12
  };
@@ -11,18 +11,19 @@ export interface BannerTagSectionProps {
11
11
  middle: TagProps | null;
12
12
  bottom: TagProps | null;
13
13
  };
14
+ variant: 'esign' | 'ratafia';
14
15
  }
15
16
 
16
17
  export declare const ElectronicSignatureTemplate: FC<ElectronicSignatureTemplateProps>;
17
18
 
18
19
  export declare interface ElectronicSignatureTemplateProps {
19
20
  hero: Omit<Hero2SectionProps, 'variant'>;
20
- howItWorks: HowItWorksSectionProps;
21
+ howItWorks: Omit<HowItWorksSectionProps, 'variant'>;
21
22
  fastAndSimple: Omit<FastAndSimpleSectionProps, 'variant'>;
22
23
  benefits: FeaturesSectionProps;
23
24
  trustPilot: ReactNode;
24
- signAndSend: BannerTagSectionProps;
25
- faq: FaqSectionProps;
25
+ signAndSend: Omit<BannerTagSectionProps, 'variant'>;
26
+ faq: Omit<FaqSectionProps, 'className'>;
26
27
  toast?: ToastProps;
27
28
  }
28
29
 
@@ -86,6 +87,7 @@ export interface HowItWorksSectionProps {
86
87
  title: string;
87
88
  description: string;
88
89
  steps: HowItWorksStep[];
90
+ variant: 'esign' | 'ratafia';
89
91
  }
90
92
 
91
93
  export interface HowItWorksStep {
@@ -1,30 +1,30 @@
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
- const b = ({
10
- hero: r,
11
- howItWorks: i,
12
- fastAndSimple: m,
13
- benefits: t,
14
- trustPilot: a,
9
+ const T = ({
10
+ hero: o,
11
+ howItWorks: r,
12
+ fastAndSimple: t,
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, { ...r, variant: "esign" }),
20
- /* @__PURE__ */ o(c, { ...i }),
21
- /* @__PURE__ */ o(x, { ...m, variant: "esign" }),
22
- /* @__PURE__ */ o(f, { ...t }),
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 }),
25
- /* @__PURE__ */ o(u, { ...l, className: "mx-auto max-w-4xl px-4 py-16" }),
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
- b as ElectronicSignatureTemplate
29
+ T as ElectronicSignatureTemplate
30
30
  };
@@ -3,8 +3,8 @@ import t from "clsx";
3
3
  import { Markdown as n } from "./Markdown.js";
4
4
  const g = ({
5
5
  bgImage: r,
6
- title: o,
7
- description: s,
6
+ title: s,
7
+ description: o,
8
8
  benefits: c,
9
9
  variant: d
10
10
  }) => {
@@ -14,13 +14,13 @@ const g = ({
14
14
  {
15
15
  className: t(
16
16
  "relative mx-auto flex w-full max-w-300 flex-col gap-8 overflow-hidden rounded-2xl p-6 md:p-8 lg:p-12",
17
- l && "from-primary-900 to-primary-800 bg-linear-to-r",
17
+ l && "bg-ratafia",
18
18
  !l && "bg-neutral-50"
19
19
  ),
20
20
  children: [
21
21
  !!r && /* @__PURE__ */ e("div", { className: "pointer-events-none absolute top-35/100 -right-35 md:-right-50 lg:top-0 lg:right-5", children: r }),
22
22
  /* @__PURE__ */ i("div", { className: "flex flex-col gap-4", children: [
23
- /* @__PURE__ */ e("p", { className: t("text-super-large font-bold", l ? "text-white" : "text-neutral-900"), children: o }),
23
+ /* @__PURE__ */ e("p", { className: t("text-super-large font-bold", l ? "text-white" : "text-neutral-900"), children: s }),
24
24
  /* @__PURE__ */ e(
25
25
  n,
26
26
  {
@@ -28,7 +28,7 @@ const g = ({
28
28
  "text-medium [&_a]:text-primary-700 [&_p:last-child]:mb-0",
29
29
  l ? "text-white" : "text-neutral-800"
30
30
  ),
31
- content: s
31
+ content: o
32
32
  }
33
33
  )
34
34
  ] }),
@@ -1,75 +1,73 @@
1
- import { jsxs as l, jsx as a, Fragment as d } from "react/jsx-runtime";
2
- import { UploadZone as p } from "./UploadZone.js";
1
+ import { jsxs as l, Fragment as p, jsx as a } from "react/jsx-runtime";
2
+ import { UploadZone as f } from "./UploadZone.js";
3
3
  import t from "clsx";
4
- import { Markdown as h } from "./Markdown.js";
5
- const u = ({
6
- title: n,
7
- description: m,
8
- highlights: o,
4
+ import { renderRatafiaTitle as h } from "./Hero2SectionTitle.utils.js";
5
+ import { Markdown as s } from "./Markdown.js";
6
+ const v = ({
7
+ title: i,
8
+ description: o,
9
+ highlights: c,
9
10
  variant: x,
10
- uploadZone: c,
11
- bgLeft: r,
12
- bgRight: s
11
+ uploadZone: d,
12
+ bgLeft: n,
13
+ bgRight: m
13
14
  }) => {
14
15
  const e = x === "ratafia";
15
16
  return /* @__PURE__ */ l(
16
17
  "section",
17
18
  {
18
19
  className: t(
19
- "relative flex justify-center overflow-hidden",
20
- e && "bg-primary-900 isolate px-6 py-16 text-white sm:px-10 lg:px-24",
20
+ "relative flex justify-center overflow-hidden px-6 pt-10 pb-20 md:pb-20 lg:px-8 lg:pt-20 xl:gap-20 xl:px-0",
21
+ e && "bg-ratafia",
21
22
  !e && "bg-neutral-50"
22
23
  ),
23
24
  children: [
24
- e ? /* @__PURE__ */ l("div", { className: "pointer-events-none absolute inset-0", children: [
25
- /* @__PURE__ */ a("div", { className: "from-primary-800/70 via-primary-900 to-primary-900 absolute inset-0 bg-linear-to-br" }),
26
- /* @__PURE__ */ a("div", { className: "absolute inset-0 bg-white/10 mix-blend-lighten" })
27
- ] }) : /* @__PURE__ */ l(d, { children: [
28
- !!r && /* @__PURE__ */ a("div", { className: "absolute -left-25 hidden lg:block xl:left-0", children: r }),
29
- !!s && /* @__PURE__ */ a("div", { className: "absolute -right-15 bottom-0 xl:right-5", children: s })
25
+ !e && /* @__PURE__ */ l(p, { children: [
26
+ !!n && /* @__PURE__ */ a("div", { className: "absolute -left-25 hidden lg:block xl:left-0", children: n }),
27
+ !!m && /* @__PURE__ */ a("div", { className: "absolute -right-15 bottom-0 xl:right-5", children: m })
30
28
  ] }),
31
- /* @__PURE__ */ l("div", { className: "mx-auto flex max-w-300 shrink flex-col gap-10 px-6 pt-10 pb-20 md:flex-row md:items-center md:pb-26 lg:px-8 lg:pt-20 xl:gap-20 xl:px-0", children: [
29
+ /* @__PURE__ */ l("div", { className: "mx-auto flex max-w-300 shrink flex-col gap-10 md:flex-row md:items-center xl:gap-20", children: [
32
30
  /* @__PURE__ */ l("div", { className: "flex flex-col gap-4", children: [
33
31
  /* @__PURE__ */ a(
34
32
  "h1",
35
33
  {
36
34
  className: t(
37
35
  "text-extra-large leading-tight font-bold",
38
- e && "text-white",
39
- !e && "text-primary-900"
36
+ !e && "text-primary-900",
37
+ e && "text-white"
40
38
  ),
41
- children: n
39
+ children: e ? h(i) : i
42
40
  }
43
41
  ),
44
42
  /* @__PURE__ */ a(
45
- h,
43
+ s,
46
44
  {
47
45
  className: t("text-medium [&_p:last-child]:mb-0", e ? "text-white" : "text-neutral-800"),
48
- content: m
46
+ content: o
49
47
  }
50
48
  ),
51
- /* @__PURE__ */ a("div", { className: "flex gap-4", children: o.map((i) => /* @__PURE__ */ l(
49
+ /* @__PURE__ */ a("div", { className: "flex flex-wrap gap-4", children: c.map((r) => /* @__PURE__ */ l(
52
50
  "span",
53
51
  {
54
52
  className: t(
55
- "text-small flex flex-nowrap items-center gap-1 rounded p-1",
53
+ "text-small flex flex-nowrap items-center gap-1 rounded px-2 py-1",
56
54
  e && "bg-primary-50 text-primary-800 font-semibold",
57
55
  !e && "bg-primary-800 text-primary-50"
58
56
  ),
59
57
  children: [
60
- i.icon,
61
- i.label
58
+ /* @__PURE__ */ a("span", { className: "flex shrink-0", children: r.icon }),
59
+ /* @__PURE__ */ a(s, { content: r.label, className: "text-small [&_p:last-child]:mb-0" })
62
60
  ]
63
61
  },
64
- i.id
62
+ r.id
65
63
  )) })
66
64
  ] }),
67
- /* @__PURE__ */ a(p, { ...c, containerClassName: "md:min-w-85 lg:min-w-115 xl:min-w-140" })
65
+ /* @__PURE__ */ a(f, { ...d, containerClassName: "md:min-w-85 lg:min-w-115 xl:min-w-140" })
68
66
  ] })
69
67
  ]
70
68
  }
71
69
  );
72
70
  };
73
71
  export {
74
- u as Hero2Section
72
+ v as Hero2Section
75
73
  };
@@ -0,0 +1,4 @@
1
+ import { ReactNode } from 'react';
2
+
3
+ export declare const renderRatafiaTitle: (title: string) => ReactNode[];
4
+
@@ -0,0 +1,18 @@
1
+ import { jsx as _ } from "react/jsx-runtime";
2
+ import m from "clsx";
3
+ const p = /<span class=(?:"([^"]*)"|'([^']*)')>([\s\S]*?)<\/span>/g, A = /<[^>]*>/g, T = "jumbotron-ratafia-content__title__text__icon", f = "inline-flex items-center text-primary-900 font-extrabold bg-secondary-300 px-1.5 rounded-sm", d = (n) => {
4
+ const e = [];
5
+ let t = 0;
6
+ for (const s of n.matchAll(p)) {
7
+ const a = s.index;
8
+ a > t && e.push(n.slice(t, a));
9
+ const o = s[1] || s[2] || "", c = s[3].replaceAll(A, ""), l = `ratafia-title-${String(a)}-${o}-${c}`, r = o.split(" ").includes(T), i = m(o, r && f);
10
+ e.push(
11
+ /* @__PURE__ */ _("span", { className: i, children: c }, l)
12
+ ), t = a + s[0].length;
13
+ }
14
+ return t < n.length && e.push(n.slice(t)), e;
15
+ };
16
+ export {
17
+ d as renderRatafiaTitle
18
+ };
@@ -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 {