@npm_leadtech/legal-contracts-ui 0.97.2 → 0.97.4
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.
- package/dist/components/AiLegalDocumentReviewerTemplate.d.ts +17 -1
- package/dist/components/AiLegalDocumentReviewerTemplate.js +27 -26
- package/dist/components/BannerTagSection.d.ts +1 -0
- package/dist/components/BannerTagSection.js +19 -19
- package/dist/components/ConversionSection.d.ts +21 -0
- package/dist/components/ConversionSection.js +12 -0
- package/dist/components/CtaSection.js +2 -2
- package/dist/components/ElectronicSignatureTemplate.d.ts +1 -0
- package/dist/components/ElectronicSignatureTemplate.js +12 -12
- package/dist/components/FastAndSimpleSection.js +5 -5
- package/dist/components/Hero2Section.js +29 -31
- package/dist/components/Hero2SectionTitle.utils.d.ts +4 -0
- package/dist/components/Hero2SectionTitle.utils.js +18 -0
- package/dist/components/HowItWorksSection.js +9 -9
- package/dist/components/UploadZone.js +1 -1
- package/dist/globals.css +1 -1
- package/package.json +9 -1
|
@@ -7,11 +7,12 @@ export declare type AiLegalDocumentReviewerTemplateProps = {
|
|
|
7
7
|
hero: Omit<Hero2SectionProps, 'variant'>;
|
|
8
8
|
howItWorks: HowItWorksSectionProps;
|
|
9
9
|
fastAndSimple: Omit<FastAndSimpleSectionProps, 'variant'>;
|
|
10
|
+
conversion: ConversionSectionProps;
|
|
10
11
|
insights: FeaturesSectionProps;
|
|
11
|
-
signAndSend: BannerTagSectionProps;
|
|
12
12
|
trustPilot: ReactNode;
|
|
13
13
|
askQuestions: BannerTagSectionProps;
|
|
14
14
|
faq: FaqSectionProps;
|
|
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 {
|
|
@@ -109,6 +117,14 @@ export interface TagProps {
|
|
|
109
117
|
className?: string;
|
|
110
118
|
}
|
|
111
119
|
|
|
120
|
+
export interface ToastProps {
|
|
121
|
+
show: boolean;
|
|
122
|
+
title: string;
|
|
123
|
+
message: string;
|
|
124
|
+
type?: 'success' | 'error' | 'default';
|
|
125
|
+
onClose: () => void;
|
|
126
|
+
}
|
|
127
|
+
|
|
112
128
|
export interface UploadZoneProps {
|
|
113
129
|
uploadPromptText: string;
|
|
114
130
|
addDocumentLabel: string;
|
|
@@ -1,32 +1,33 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
|
|
1
|
+
import { jsxs as c, jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { ConversionSection as s } from "./ConversionSection.js";
|
|
3
|
+
import { Hero2Section as x } from "./Hero2Section.js";
|
|
4
|
+
import { HowItWorksSection as f } from "./HowItWorksSection.js";
|
|
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 w } from "./FaqSection.js";
|
|
9
|
+
import { Toast as d } from "./Toast.js";
|
|
10
|
+
const H = ({
|
|
9
11
|
hero: o,
|
|
10
|
-
howItWorks:
|
|
11
|
-
fastAndSimple:
|
|
12
|
+
howItWorks: t,
|
|
13
|
+
fastAndSimple: e,
|
|
14
|
+
conversion: i,
|
|
12
15
|
insights: m,
|
|
13
|
-
signAndSend: i,
|
|
14
16
|
trustPilot: n,
|
|
15
17
|
askQuestions: l,
|
|
16
|
-
faq:
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
};
|
|
18
|
+
faq: p,
|
|
19
|
+
toast: a
|
|
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 })
|
|
30
|
+
] });
|
|
30
31
|
export {
|
|
31
|
-
|
|
32
|
+
H as AiLegalDocumentReviewerTemplate
|
|
32
33
|
};
|
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
import { jsx as e, jsxs as
|
|
2
|
-
import
|
|
3
|
-
import { Markdown as
|
|
4
|
-
import { LinkWrapper as
|
|
5
|
-
const s = ({ title:
|
|
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
|
-
|
|
11
|
-
|
|
12
|
-
] }),
|
|
13
|
-
/* @__PURE__ */
|
|
14
|
-
/* @__PURE__ */
|
|
15
|
-
/* @__PURE__ */ e("h3", { className: "text-super-large text-primary-900 font-bold", children:
|
|
16
|
-
/* @__PURE__ */ e(
|
|
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(
|
|
18
|
+
/* @__PURE__ */ e(p, { className: "w-fit", variant: "primary-green", children: i })
|
|
19
19
|
] }),
|
|
20
|
-
/* @__PURE__ */
|
|
21
|
-
/* @__PURE__ */ e("div", { className: "overflow-hidden", children: o }),
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
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
|
-
|
|
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
|
+
};
|
|
@@ -16,11 +16,11 @@ const p = ({
|
|
|
16
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
17
|
/* @__PURE__ */ r("div", { className: "flex flex-col items-start gap-4", children: [
|
|
18
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 })
|
|
19
|
+
!!l && /* @__PURE__ */ e("div", { className: "text-super-medium text-neutral-500", children: l })
|
|
20
20
|
] }),
|
|
21
21
|
/* @__PURE__ */ e(c, { size: "large", variant: "primary-darkgreen", className: "px-4 py-2.5", ...t })
|
|
22
22
|
] }),
|
|
23
|
-
s && /* @__PURE__ */ e("div", { className: `w-full justify-center lg:w-auto lg:items-end ${d}`, children: s })
|
|
23
|
+
!!s && /* @__PURE__ */ e("div", { className: `w-full justify-center lg:w-auto lg:items-end ${d}`, children: s })
|
|
24
24
|
]
|
|
25
25
|
}
|
|
26
26
|
) }), o = ({ image: a, children: l, className: t = "" }) => /* @__PURE__ */ r("div", { className: `relative flex items-end ${t}`, children: [
|
|
@@ -6,25 +6,25 @@ import { FeaturesSection as f } from "./FeaturesSection.js";
|
|
|
6
6
|
import { BannerTagSection as g } from "./BannerTagSection.js";
|
|
7
7
|
import { Toast as S } from "./Toast.js";
|
|
8
8
|
import { FaqSection as u } from "./FaqSection.js";
|
|
9
|
-
const
|
|
10
|
-
hero:
|
|
11
|
-
howItWorks:
|
|
12
|
-
fastAndSimple:
|
|
13
|
-
benefits:
|
|
9
|
+
const T = ({
|
|
10
|
+
hero: i,
|
|
11
|
+
howItWorks: r,
|
|
12
|
+
fastAndSimple: t,
|
|
13
|
+
benefits: m,
|
|
14
14
|
trustPilot: a,
|
|
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, { ...
|
|
20
|
-
/* @__PURE__ */ o(c, { ...
|
|
21
|
-
/* @__PURE__ */ o(x, { ...
|
|
22
|
-
/* @__PURE__ */ o(f, { ...
|
|
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
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-
|
|
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
26
|
e && /* @__PURE__ */ o(S, { ...e })
|
|
27
27
|
] });
|
|
28
28
|
export {
|
|
29
|
-
|
|
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:
|
|
7
|
-
description:
|
|
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 && "
|
|
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:
|
|
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:
|
|
31
|
+
content: o
|
|
32
32
|
}
|
|
33
33
|
)
|
|
34
34
|
] }),
|
|
@@ -1,75 +1,73 @@
|
|
|
1
|
-
import { jsxs as l,
|
|
2
|
-
import { UploadZone as
|
|
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 {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
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:
|
|
11
|
-
bgLeft:
|
|
12
|
-
bgRight:
|
|
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-
|
|
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
|
|
25
|
-
/* @__PURE__ */ a("div", { className: "
|
|
26
|
-
/* @__PURE__ */ a("div", { className: "absolute
|
|
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
|
|
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-
|
|
39
|
-
|
|
36
|
+
!e && "text-primary-900",
|
|
37
|
+
e && "text-white"
|
|
40
38
|
),
|
|
41
|
-
children:
|
|
39
|
+
children: e ? h(i) : i
|
|
42
40
|
}
|
|
43
41
|
),
|
|
44
42
|
/* @__PURE__ */ a(
|
|
45
|
-
|
|
43
|
+
s,
|
|
46
44
|
{
|
|
47
45
|
className: t("text-medium [&_p:last-child]:mb-0", e ? "text-white" : "text-neutral-800"),
|
|
48
|
-
content:
|
|
46
|
+
content: o
|
|
49
47
|
}
|
|
50
48
|
),
|
|
51
|
-
/* @__PURE__ */ a("div", { className: "flex gap-4", children:
|
|
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
|
|
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
|
-
|
|
61
|
-
|
|
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
|
-
|
|
62
|
+
r.id
|
|
65
63
|
)) })
|
|
66
64
|
] }),
|
|
67
|
-
/* @__PURE__ */ a(
|
|
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
|
-
|
|
72
|
+
v as Hero2Section
|
|
75
73
|
};
|
|
@@ -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
|
+
};
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { jsx as e, jsxs as l } from "react/jsx-runtime";
|
|
2
2
|
import { Markdown as c } from "./Markdown.js";
|
|
3
|
-
const m = ({ media:
|
|
4
|
-
/* @__PURE__ */ e("div", { className: "relative order-2 overflow-hidden rounded-md shadow md:order-1 lg:mx-auto xl:shrink-0", children:
|
|
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
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:
|
|
7
|
-
/* @__PURE__ */ e(c, { className: "text-medium [&_a]:text-primary-700 [&_p:last-child]:mb-0", content:
|
|
8
|
-
/* @__PURE__ */ e("div", { className: "grid grid-cols-1 gap-4 lg:grid-cols-3 xl:grid-cols-1", children: s.map((
|
|
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
9
|
/* @__PURE__ */ l("div", { className: "flex justify-center gap-2", children: [
|
|
10
|
-
|
|
11
|
-
/* @__PURE__ */ e("p", { className: "text-medium font-bold", children:
|
|
10
|
+
a.icon,
|
|
11
|
+
/* @__PURE__ */ e("p", { className: "text-medium font-bold", children: a.title })
|
|
12
12
|
] }),
|
|
13
13
|
/* @__PURE__ */ l("p", { className: "text-small", children: [
|
|
14
|
-
|
|
14
|
+
a.description,
|
|
15
15
|
" "
|
|
16
16
|
] })
|
|
17
|
-
] }) },
|
|
17
|
+
] }) }, a.id)) })
|
|
18
18
|
] })
|
|
19
19
|
] }) });
|
|
20
20
|
export {
|
|
@@ -39,7 +39,7 @@ const N = ({
|
|
|
39
39
|
] })
|
|
40
40
|
] }),
|
|
41
41
|
/* @__PURE__ */ l("div", { className: "flex flex-col gap-2", children: [
|
|
42
|
-
/* @__PURE__ */ t("p", { className: "text-extra-small text-
|
|
42
|
+
/* @__PURE__ */ t("p", { className: "text-extra-small text-neutral-400", children: o }),
|
|
43
43
|
/* @__PURE__ */ t(d, { className: "text-tiny text-neutral-400 [&_a]:text-neutral-400", content: i })
|
|
44
44
|
] })
|
|
45
45
|
] })
|