@npm_leadtech/legal-contracts-ui 0.165.3 → 0.165.5
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/ContactFormSection.js +31 -31
- package/dist/components/ContinueEditingBanner.d.ts +11 -0
- package/dist/components/ContinueEditingBanner.js +19 -0
- package/dist/components/CookiesBar.js +1 -1
- package/dist/components/CtaSection.d.ts +3 -2
- package/dist/components/CtaSection.js +33 -28
- package/dist/components/HomeTemplate.d.ts +1 -0
- package/dist/components/HomeTemplate.js +27 -25
- package/dist/components/Preform.d.ts +0 -1
- package/dist/components/Preform.js +13 -21
- package/dist/components/PreformMobile.d.ts +0 -1
- package/dist/components/PreformMobile.js +45 -63
- package/dist/components/ProductTemplate.d.ts +0 -1
- package/dist/components/ProductTemplate.js +19 -19
- package/dist/components/Toast.js +3 -3
- package/package.json +5 -1
|
@@ -3,70 +3,70 @@ import { Textarea as b } from "./Textarea.js";
|
|
|
3
3
|
import { Checkbox as v } from "./Checkbox.js";
|
|
4
4
|
import { ClearIcon as y } from "./ClearIcon.js";
|
|
5
5
|
import { DoneIcon as w } from "./DoneIcon.js";
|
|
6
|
-
import { Input as
|
|
6
|
+
import { Input as n } from "./Input.js";
|
|
7
7
|
import { Select as j } from "./Select.js";
|
|
8
|
-
import { Markdown as
|
|
9
|
-
import { InfoIcon as
|
|
8
|
+
import { Markdown as I } from "./Markdown.js";
|
|
9
|
+
import { InfoIcon as S } from "./InfoIcon.js";
|
|
10
10
|
import { Button as o } from "./Button.js";
|
|
11
|
-
import { LinkWrapper as
|
|
12
|
-
const C = () => /* @__PURE__ */ e("div", { role: "status", "aria-live": "polite", className: "mt-6 flex items-center justify-center rounded py-6", children: /* @__PURE__ */ e("div", { className: "border-primary-500 h-[25px] w-[25px] animate-spin rounded-full border-3 border-t-transparent" }) }),
|
|
11
|
+
import { LinkWrapper as k } from "./LinkWrapper.js";
|
|
12
|
+
const C = () => /* @__PURE__ */ e("div", { role: "status", "aria-live": "polite", className: "mt-6 flex items-center justify-center rounded py-6", children: /* @__PURE__ */ e("div", { className: "border-primary-500 h-[25px] w-[25px] animate-spin rounded-full border-3 border-t-transparent" }) }), L = ({ title: r, message: l, cta: i }) => /* @__PURE__ */ t("div", { role: "status", "aria-live": "polite", className: "flex flex-col items-center justify-center gap-8 px-4 py-3", children: [
|
|
13
13
|
/* @__PURE__ */ t("div", { className: "flex flex-col items-center gap-2", children: [
|
|
14
14
|
/* @__PURE__ */ e("div", { className: "bg-error-20 w-fit rounded-full p-3", children: /* @__PURE__ */ e(y, { width: 48, height: 48, fill: "var(--error-500)" }) }),
|
|
15
15
|
/* @__PURE__ */ e("p", { className: "text-big font-bold text-neutral-800", children: r }),
|
|
16
|
-
/* @__PURE__ */ e("p", {
|
|
16
|
+
/* @__PURE__ */ e("p", { className: "text-medium text-neutral-800", children: l })
|
|
17
17
|
] }),
|
|
18
|
-
/* @__PURE__ */ e(o, { ...
|
|
19
|
-
] }),
|
|
18
|
+
/* @__PURE__ */ e(o, { ...i, variant: "primary-green" })
|
|
19
|
+
] }), B = ({ title: r, message: l, cta: i }) => /* @__PURE__ */ t("div", { role: "status", "aria-live": "polite", className: "flex flex-col items-center justify-center gap-8 px-4 py-3", children: [
|
|
20
20
|
/* @__PURE__ */ t("div", { className: "flex flex-col items-center gap-2", children: [
|
|
21
21
|
/* @__PURE__ */ e("div", { className: "bg-primary-100 w-fit rounded-full p-3", children: /* @__PURE__ */ e(w, { width: 48, height: 48, fill: "var(--color-primary-500)" }) }),
|
|
22
22
|
/* @__PURE__ */ e("p", { className: "text-big font-bold text-neutral-800", children: r }),
|
|
23
|
-
/* @__PURE__ */ e("p", {
|
|
23
|
+
/* @__PURE__ */ e("p", { className: "text-medium text-neutral-800", children: l })
|
|
24
24
|
] }),
|
|
25
|
-
/* @__PURE__ */ e(
|
|
25
|
+
/* @__PURE__ */ e(k, { className: "w-fit", children: i })
|
|
26
26
|
] }), G = ({
|
|
27
27
|
title: r,
|
|
28
|
-
subjectOptions:
|
|
29
|
-
fullNameField:
|
|
28
|
+
subjectOptions: l,
|
|
29
|
+
fullNameField: i,
|
|
30
30
|
emailField: m,
|
|
31
31
|
referenceNumberField: d,
|
|
32
32
|
subjectField: p,
|
|
33
33
|
messageField: f,
|
|
34
|
-
privacyField:
|
|
34
|
+
privacyField: s,
|
|
35
35
|
requiredFieldsText: h,
|
|
36
|
-
securityHint:
|
|
37
|
-
status:
|
|
38
|
-
successFeedback:
|
|
39
|
-
errorFeedback:
|
|
40
|
-
onSubmit:
|
|
41
|
-
button:
|
|
36
|
+
securityHint: x,
|
|
37
|
+
status: a = "default",
|
|
38
|
+
successFeedback: u,
|
|
39
|
+
errorFeedback: N,
|
|
40
|
+
onSubmit: g,
|
|
41
|
+
button: c
|
|
42
42
|
}) => /* @__PURE__ */ t("section", { className: "rounded-sm bg-white p-8 shadow-sm", children: [
|
|
43
43
|
/* @__PURE__ */ t("div", { className: "space-y-4", children: [
|
|
44
44
|
/* @__PURE__ */ e("p", { className: "text-big font-bold text-neutral-600", children: r }),
|
|
45
45
|
/* @__PURE__ */ e("div", { className: "h-px w-full bg-neutral-200", "aria-hidden": "true" })
|
|
46
46
|
] }),
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
/* @__PURE__ */ e(
|
|
52
|
-
/* @__PURE__ */ e(
|
|
53
|
-
/* @__PURE__ */ e(
|
|
54
|
-
/* @__PURE__ */ e(j, { ...p, options:
|
|
47
|
+
a === "loading" && /* @__PURE__ */ e(C, {}),
|
|
48
|
+
a === "error" && /* @__PURE__ */ e(L, { ...N }),
|
|
49
|
+
a === "success" && /* @__PURE__ */ e(B, { ...u }),
|
|
50
|
+
a === "default" && /* @__PURE__ */ t("form", { className: "mt-6 flex flex-col gap-6", noValidate: !0, onSubmit: g, children: [
|
|
51
|
+
/* @__PURE__ */ e(n, { ...i, type: "text" }),
|
|
52
|
+
/* @__PURE__ */ e(n, { ...m, type: "email" }),
|
|
53
|
+
/* @__PURE__ */ e(n, { ...d }),
|
|
54
|
+
/* @__PURE__ */ e(j, { ...p, options: l }),
|
|
55
55
|
/* @__PURE__ */ e(b, { ...f }),
|
|
56
56
|
/* @__PURE__ */ e("p", { className: "text-medium text-neutral-600", children: h }),
|
|
57
|
-
/* @__PURE__ */ e(v, { ...
|
|
57
|
+
/* @__PURE__ */ e(v, { ...s, children: /* @__PURE__ */ e(I, { className: "text-medium [&_p:last-child]:mb-0", content: s.label }) }),
|
|
58
58
|
/* @__PURE__ */ t(
|
|
59
59
|
"div",
|
|
60
60
|
{
|
|
61
61
|
id: "security-hint",
|
|
62
62
|
className: "text-small flex items-start gap-2 rounded bg-neutral-50 p-4 text-neutral-600",
|
|
63
63
|
children: [
|
|
64
|
-
/* @__PURE__ */ e(
|
|
65
|
-
/* @__PURE__ */ e("p", { children:
|
|
64
|
+
/* @__PURE__ */ e(S, { width: 24, height: 24, "aria-hidden": "true" }),
|
|
65
|
+
/* @__PURE__ */ e("p", { children: x })
|
|
66
66
|
]
|
|
67
67
|
}
|
|
68
68
|
),
|
|
69
|
-
/* @__PURE__ */ e(o, { ...
|
|
69
|
+
/* @__PURE__ */ e(o, { ...c, className: "w-fit self-center", type: "submit", children: c.children })
|
|
70
70
|
] })
|
|
71
71
|
] });
|
|
72
72
|
export {
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
|
|
3
|
+
export declare const ContinueEditingBanner: FC<ContinueEditingBannerProps>;
|
|
4
|
+
|
|
5
|
+
export declare interface ContinueEditingBannerProps {
|
|
6
|
+
editFormClicked?: () => void;
|
|
7
|
+
tagLine: string;
|
|
8
|
+
title: string;
|
|
9
|
+
buttonLabel: string;
|
|
10
|
+
}
|
|
11
|
+
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as e, jsxs as t } from "react/jsx-runtime";
|
|
3
|
+
import "react";
|
|
4
|
+
import { Button as l } from "./Button.js";
|
|
5
|
+
const m = ({
|
|
6
|
+
editFormClicked: a,
|
|
7
|
+
tagLine: n,
|
|
8
|
+
title: r,
|
|
9
|
+
buttonLabel: s
|
|
10
|
+
}) => /* @__PURE__ */ e("div", { className: "bg-primary-50 px-ds-sm py-0", children: /* @__PURE__ */ t("div", { className: "gap-ds-sm bg-neutral-white p-ds-lg flex flex-col items-center rounded-sm text-center", children: [
|
|
11
|
+
/* @__PURE__ */ t("div", { className: "gap-ds-2xs flex flex-col", children: [
|
|
12
|
+
/* @__PURE__ */ e("span", { className: "font-lora text-large text-primary-800 lg:text-super-large", children: r }),
|
|
13
|
+
/* @__PURE__ */ e("span", { className: "text-medium text-neutral-600", children: n })
|
|
14
|
+
] }),
|
|
15
|
+
/* @__PURE__ */ e(l, { "data-qa": "continue-editing-banner-button", className: "lg:w-auto", onClick: a, children: s })
|
|
16
|
+
] }) });
|
|
17
|
+
export {
|
|
18
|
+
m as ContinueEditingBanner
|
|
19
|
+
};
|
|
@@ -2,7 +2,7 @@ import { jsx as t, jsxs as a } from "react/jsx-runtime";
|
|
|
2
2
|
import "react";
|
|
3
3
|
import { Button as m } from "./Button.js";
|
|
4
4
|
import { Markdown as o } from "./Markdown.js";
|
|
5
|
-
const n = ({ policyMessage: e, acceptButton: l }) => /* @__PURE__ */ t("aside", { className: "fixed bottom-0 left-0 z-
|
|
5
|
+
const n = ({ policyMessage: e, acceptButton: l }) => /* @__PURE__ */ t("aside", { className: "fixed bottom-0 left-0 z-9 w-full bg-neutral-900", children: /* @__PURE__ */ a("div", { className: "mx-auto flex w-full flex-col gap-6 p-6 md:flex-row md:items-center md:gap-10 md:py-6 xl:max-w-300 xl:px-0", children: [
|
|
6
6
|
/* @__PURE__ */ t(o, { className: "text-small text-white [&_p:last-child]:mb-0", variant: "cookies", content: e }),
|
|
7
7
|
/* @__PURE__ */ t(m, { variant: "primary-yellow", className: "w-full text-nowrap md:w-fit", ...l })
|
|
8
8
|
] }) });
|
|
@@ -8,10 +8,9 @@ export type ButtonVariant = 'primary-green' | 'primary-darkgreen' | 'primary-yel
|
|
|
8
8
|
export declare const CtaFeatureTag: FC<CtaFeatureTagProps>;
|
|
9
9
|
|
|
10
10
|
export declare interface CtaFeatureTagProps {
|
|
11
|
-
icon:
|
|
11
|
+
icon: string;
|
|
12
12
|
text: string;
|
|
13
13
|
className?: string;
|
|
14
|
-
variant?: 'primary' | 'white';
|
|
15
14
|
}
|
|
16
15
|
|
|
17
16
|
export declare const CtaSample: FC<CtaSampleProps>;
|
|
@@ -34,6 +33,8 @@ export declare interface CtaSectionProps {
|
|
|
34
33
|
childrenClassName?: string;
|
|
35
34
|
}
|
|
36
35
|
|
|
36
|
+
export declare const CtaSummarizedTag: FC<CtaFeatureTagProps>;
|
|
37
|
+
|
|
37
38
|
export type IconPosition = 'left' | 'right' | 'top';
|
|
38
39
|
|
|
39
40
|
export interface LinkWrapperProps {
|
|
@@ -1,48 +1,53 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
title: r,
|
|
1
|
+
import { jsxs as t, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { LinkWrapper as c } from "./LinkWrapper.js";
|
|
3
|
+
const x = ({
|
|
4
|
+
title: a,
|
|
6
5
|
paragraph: l,
|
|
7
|
-
cta:
|
|
8
|
-
children:
|
|
6
|
+
cta: r,
|
|
7
|
+
children: m,
|
|
9
8
|
className: s = "",
|
|
10
|
-
contentClassName:
|
|
9
|
+
contentClassName: i = "",
|
|
11
10
|
childrenClassName: d = "hidden lg:flex"
|
|
12
|
-
}) => /* @__PURE__ */ e("section", { className: `flex w-full justify-center px-6 py-8 md:px-8 md:py-12 ${s}`, children: /* @__PURE__ */
|
|
11
|
+
}) => /* @__PURE__ */ e("section", { className: `flex w-full justify-center px-6 py-8 md:px-8 md:py-12 ${s}`, children: /* @__PURE__ */ t(
|
|
13
12
|
"div",
|
|
14
13
|
{
|
|
15
|
-
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 ${
|
|
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}`,
|
|
16
15
|
children: [
|
|
17
|
-
/* @__PURE__ */
|
|
18
|
-
/* @__PURE__ */
|
|
19
|
-
/* @__PURE__ */ e("h2", { className: "text-primary-900 text-[28px] leading-[32px] font-bold tracking-tight", children:
|
|
16
|
+
/* @__PURE__ */ t("div", { className: "flex flex-1 flex-col items-start justify-center gap-8 pb-8 md:pb-12 lg:pb-[3rem]", children: [
|
|
17
|
+
/* @__PURE__ */ t("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 }),
|
|
20
19
|
!!l && /* @__PURE__ */ e("div", { className: "text-super-medium text-neutral-500", children: l })
|
|
21
20
|
] }),
|
|
22
|
-
/* @__PURE__ */ e(
|
|
21
|
+
/* @__PURE__ */ e(c, { size: "large", variant: "primary-darkgreen", className: "bg-primary-700 px-4 py-2.5", ...r })
|
|
23
22
|
] }),
|
|
24
|
-
!!
|
|
23
|
+
!!m && /* @__PURE__ */ e("div", { className: `w-full justify-center lg:w-auto lg:items-end ${d}`, children: m })
|
|
25
24
|
]
|
|
26
25
|
}
|
|
27
|
-
) }),
|
|
28
|
-
/* @__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:
|
|
26
|
+
) }), o = ({ image: a, children: l, className: r = "" }) => /* @__PURE__ */ t("div", { className: `relative flex items-end ${r}`, 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 }),
|
|
29
28
|
l
|
|
30
|
-
] }),
|
|
29
|
+
] }), g = ({ icon: a, text: l, className: r = "" }) => /* @__PURE__ */ t(
|
|
31
30
|
"div",
|
|
32
31
|
{
|
|
33
|
-
className:
|
|
34
|
-
"shadow-small absolute flex items-center justify-center gap-1 rounded-md p-2",
|
|
35
|
-
a === "primary" ? "bg-primary-100" : "bg-primary-800",
|
|
36
|
-
t
|
|
37
|
-
),
|
|
32
|
+
className: `bg-primary-50 border-primary-200 shadow-small absolute flex items-center justify-center gap-1 rounded-md border p-1 ${r}`,
|
|
38
33
|
children: [
|
|
39
|
-
|
|
40
|
-
/* @__PURE__ */ e("span", { className:
|
|
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
|
+
), f = ({ icon: a, text: l, className: r = "" }) => /* @__PURE__ */ t(
|
|
39
|
+
"div",
|
|
40
|
+
{
|
|
41
|
+
className: `shadow-small absolute flex items-center justify-center gap-1 rounded-md bg-neutral-50 p-2 ${r}`,
|
|
42
|
+
children: [
|
|
43
|
+
/* @__PURE__ */ e("img", { src: a, alt: "", role: "img", className: "h-5 w-5" }),
|
|
44
|
+
/* @__PURE__ */ e("span", { className: "text-small text-primary-500", children: l })
|
|
41
45
|
]
|
|
42
46
|
}
|
|
43
47
|
);
|
|
44
48
|
export {
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
49
|
+
f as CtaFeatureTag,
|
|
50
|
+
o as CtaSample,
|
|
51
|
+
x as CtaSection,
|
|
52
|
+
g as CtaSummarizedTag
|
|
48
53
|
};
|
|
@@ -1,32 +1,34 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as f, jsx as o } from "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
|
-
import { HeroSection as
|
|
4
|
-
import { MoreTemplatesSection as
|
|
5
|
-
import { ProcessSection as
|
|
6
|
-
import { CategoriesSection as
|
|
7
|
-
import { TrustSection as
|
|
8
|
-
import { FaqTeaserSection as
|
|
9
|
-
import { BlogSection as
|
|
10
|
-
import { RatafiaSection as
|
|
11
|
-
const
|
|
3
|
+
import { HeroSection as l } from "./HeroSection.js";
|
|
4
|
+
import { MoreTemplatesSection as n } from "./MoreTemplatesSection.js";
|
|
5
|
+
import { ProcessSection as S } from "./ProcessSection.js";
|
|
6
|
+
import { CategoriesSection as x } from "./CategoriesSection.js";
|
|
7
|
+
import { TrustSection as T } from "./TrustSection.js";
|
|
8
|
+
import { FaqTeaserSection as b } from "./FaqTeaserSection.js";
|
|
9
|
+
import { BlogSection as j } from "./BlogSection.js";
|
|
10
|
+
import { RatafiaSection as u } from "./RatafiaSection.js";
|
|
11
|
+
const d = ({
|
|
12
12
|
hero: t,
|
|
13
|
-
moreTemplates:
|
|
14
|
-
process:
|
|
13
|
+
moreTemplates: e,
|
|
14
|
+
process: i,
|
|
15
15
|
categories: r,
|
|
16
|
-
ratafia:
|
|
17
|
-
trust:
|
|
18
|
-
faqTeaser:
|
|
19
|
-
articles:
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
/* @__PURE__ */ o(l, { ...
|
|
24
|
-
|
|
25
|
-
/* @__PURE__ */ o(
|
|
26
|
-
/* @__PURE__ */ o(x, { ...
|
|
16
|
+
ratafia: p,
|
|
17
|
+
trust: s,
|
|
18
|
+
faqTeaser: a,
|
|
19
|
+
articles: c,
|
|
20
|
+
continueEditingBannerSlot: m
|
|
21
|
+
}) => /* @__PURE__ */ f("main", { className: "flex-1", children: [
|
|
22
|
+
m != null && m,
|
|
23
|
+
/* @__PURE__ */ o(l, { ...t }),
|
|
24
|
+
/* @__PURE__ */ o(n, { ...e }),
|
|
25
|
+
/* @__PURE__ */ o(S, { ...i }),
|
|
26
|
+
r && /* @__PURE__ */ o(x, { ...r }),
|
|
27
|
+
/* @__PURE__ */ o(u, { ...p }),
|
|
27
28
|
/* @__PURE__ */ o(T, { ...s }),
|
|
28
|
-
/* @__PURE__ */ o(b, {
|
|
29
|
+
/* @__PURE__ */ o(b, { ...a }),
|
|
30
|
+
/* @__PURE__ */ o(j, { className: "pt-10 pb-12 lg:pb-14", ...c })
|
|
29
31
|
] });
|
|
30
32
|
export {
|
|
31
|
-
|
|
33
|
+
d as HomeTemplate
|
|
32
34
|
};
|
|
@@ -1,20 +1,13 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsxs as c, Fragment as x, jsx as e } from "react/jsx-runtime";
|
|
3
3
|
import "react";
|
|
4
|
-
import { Tooltips as
|
|
5
|
-
import { PreformMobile as
|
|
4
|
+
import { Tooltips as n } from "./Tooltips.js";
|
|
5
|
+
import { PreformMobile as a } from "./PreformMobile.js";
|
|
6
|
+
import { PreformOption as f } from "./PreformOption.js";
|
|
6
7
|
import { TrustedBadge as i } from "./TrustedBadge.js";
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
|
|
10
|
-
const C = ({
|
|
11
|
-
trustedBadge: s,
|
|
12
|
-
cta: o,
|
|
13
|
-
inputFieldData: l,
|
|
14
|
-
radioFieldData: m,
|
|
15
|
-
tooltips: p,
|
|
16
|
-
hasMobileRadioField: n
|
|
17
|
-
}) => /* @__PURE__ */ c(x, { children: [
|
|
8
|
+
import { Input as h } from "./Input.js";
|
|
9
|
+
import { LinkWrapper as t } from "./LinkWrapper.js";
|
|
10
|
+
const k = ({ trustedBadge: s, cta: o, inputFieldData: l, radioFieldData: m, tooltips: p }) => /* @__PURE__ */ c(x, { children: [
|
|
18
11
|
/* @__PURE__ */ e("section", { className: "bg-neutral-25 hidden pt-10 text-neutral-800 sm:block sm:px-6 lg:px-8 xl:px-30", children: /* @__PURE__ */ c("div", { className: "relative mx-auto flex max-w-300 flex-col gap-6 rounded bg-white px-6 pt-8 pb-6 shadow-md sm:items-center sm:gap-8 lg:px-26 xl:px-10", children: [
|
|
19
12
|
/* @__PURE__ */ e(i, { ...s }),
|
|
20
13
|
m?.isVisible && /* @__PURE__ */ c(x, { children: [
|
|
@@ -25,7 +18,7 @@ const C = ({
|
|
|
25
18
|
{
|
|
26
19
|
className: "w-[calc(50%-4px)] sm:w-[calc(25%-12px)] lg:w-[calc(20%-13px)] xl:w-[calc(16.66%-14px)]",
|
|
27
20
|
children: /* @__PURE__ */ e(
|
|
28
|
-
|
|
21
|
+
f,
|
|
29
22
|
{
|
|
30
23
|
...r,
|
|
31
24
|
selected: r.value === m.radioSelected,
|
|
@@ -36,7 +29,7 @@ const C = ({
|
|
|
36
29
|
r.value
|
|
37
30
|
)),
|
|
38
31
|
l?.isVisible && /* @__PURE__ */ e("div", { className: "mt-4 flex basis-full justify-center md:mt-0", children: /* @__PURE__ */ e(
|
|
39
|
-
|
|
32
|
+
h,
|
|
40
33
|
{
|
|
41
34
|
id: l.id,
|
|
42
35
|
label: l.label,
|
|
@@ -49,20 +42,19 @@ const C = ({
|
|
|
49
42
|
) }, l.name)
|
|
50
43
|
] })
|
|
51
44
|
] }),
|
|
52
|
-
/* @__PURE__ */ e(
|
|
53
|
-
p.length > 0 && /* @__PURE__ */ e("div", { className: "flex flex-col gap-8", children: p.map((r) => /* @__PURE__ */ e(
|
|
45
|
+
/* @__PURE__ */ e(t, { variant: "primary-green", children: o }),
|
|
46
|
+
p.length > 0 && /* @__PURE__ */ e("div", { className: "flex flex-col gap-8", children: p.map((r) => /* @__PURE__ */ e(n, { ...r }, r.title)) })
|
|
54
47
|
] }) }),
|
|
55
48
|
/* @__PURE__ */ e(
|
|
56
|
-
|
|
49
|
+
a,
|
|
57
50
|
{
|
|
58
51
|
cta: o,
|
|
59
52
|
trustedBadge: s,
|
|
60
53
|
inputFieldData: l,
|
|
61
|
-
radioFieldData: m
|
|
62
|
-
hasMobileRadioField: n
|
|
54
|
+
radioFieldData: m
|
|
63
55
|
}
|
|
64
56
|
)
|
|
65
57
|
] });
|
|
66
58
|
export {
|
|
67
|
-
|
|
59
|
+
k as Preform
|
|
68
60
|
};
|
|
@@ -1,71 +1,53 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { useState as
|
|
3
|
-
import { TrustedBadge as
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
|
|
8
|
-
const
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
const [f, u] = w(!1), h = p(null);
|
|
16
|
-
g(() => {
|
|
17
|
-
const n = h.current;
|
|
18
|
-
if (!n) return;
|
|
19
|
-
const s = new IntersectionObserver(
|
|
20
|
-
([m]) => {
|
|
21
|
-
u(!m.isIntersecting);
|
|
1
|
+
import { jsxs as o, Fragment as d, jsx as l } from "react/jsx-runtime";
|
|
2
|
+
import { useState as x, useRef as v, useEffect as u } from "react";
|
|
3
|
+
import { TrustedBadge as g } from "./TrustedBadge.js";
|
|
4
|
+
import { Select as w } from "./Select.js";
|
|
5
|
+
import { Input as f } from "./Input.js";
|
|
6
|
+
import { LinkWrapper as N } from "./LinkWrapper.js";
|
|
7
|
+
const y = ({ radioFieldData: r, inputFieldData: e, cta: h, trustedBadge: a }) => {
|
|
8
|
+
const [m, b] = x(!1), c = v(null);
|
|
9
|
+
u(() => {
|
|
10
|
+
const s = c.current;
|
|
11
|
+
if (!s) return;
|
|
12
|
+
const n = new IntersectionObserver(
|
|
13
|
+
([i]) => {
|
|
14
|
+
b(!i.isIntersecting);
|
|
22
15
|
},
|
|
23
16
|
{ threshold: 0 }
|
|
24
17
|
);
|
|
25
|
-
return
|
|
26
|
-
|
|
18
|
+
return n.observe(s), () => {
|
|
19
|
+
n.disconnect();
|
|
27
20
|
};
|
|
28
21
|
}, []);
|
|
29
|
-
const
|
|
30
|
-
if (!r?.isVisible) return null;
|
|
31
|
-
const s = t && !n, m = `${r.name}-${n ? "sticky" : "mobile"}`;
|
|
32
|
-
return s ? /* @__PURE__ */ l("div", { className: "flex w-full flex-wrap justify-center gap-2", children: r.options.map((o) => /* @__PURE__ */ l("div", { className: "w-[calc(50%-4px)]", children: /* @__PURE__ */ l(
|
|
33
|
-
C,
|
|
34
|
-
{
|
|
35
|
-
...o,
|
|
36
|
-
selected: o.value === r.radioSelected,
|
|
37
|
-
onClick: r.onClick
|
|
38
|
-
}
|
|
39
|
-
) }, o.value)) }) : /* @__PURE__ */ l(
|
|
40
|
-
$,
|
|
41
|
-
{
|
|
42
|
-
id: m,
|
|
43
|
-
name: r.name,
|
|
44
|
-
value: r.radioSelected,
|
|
45
|
-
options: r.options,
|
|
46
|
-
containerClassName: "w-full",
|
|
47
|
-
onChange: (o) => {
|
|
48
|
-
r.onClick(o.target.value);
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
);
|
|
52
|
-
}, b = (n) => /* @__PURE__ */ c(
|
|
22
|
+
const t = (s) => /* @__PURE__ */ o(
|
|
53
23
|
"div",
|
|
54
24
|
{
|
|
55
|
-
className: `flex flex-col bg-white px-6 pb-4 ${
|
|
25
|
+
className: `flex flex-col bg-white px-6 pb-4 ${s ? "border-t border-neutral-100 pt-4 shadow-md" : ""}`,
|
|
56
26
|
children: [
|
|
57
|
-
|
|
27
|
+
/* @__PURE__ */ l(
|
|
58
28
|
"label",
|
|
59
29
|
{
|
|
60
|
-
htmlFor: `${r?.name ?? ""}-${
|
|
30
|
+
htmlFor: `${r?.name ?? ""}-${s ? "sticky" : "mobile"}`,
|
|
61
31
|
className: "text-small mb-4 font-bold text-neutral-800",
|
|
62
32
|
children: r?.label
|
|
63
33
|
}
|
|
64
34
|
),
|
|
65
|
-
/* @__PURE__ */
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
35
|
+
/* @__PURE__ */ o("div", { className: `flex gap-4 ${s ? "flex-row items-center" : "flex-col"}`, children: [
|
|
36
|
+
r?.isVisible && /* @__PURE__ */ l(
|
|
37
|
+
w,
|
|
38
|
+
{
|
|
39
|
+
id: `${r.name}-${s ? "sticky" : "mobile"}`,
|
|
40
|
+
name: r.name,
|
|
41
|
+
value: r.radioSelected,
|
|
42
|
+
options: r.options,
|
|
43
|
+
containerClassName: "w-full",
|
|
44
|
+
onChange: (n) => {
|
|
45
|
+
r.onClick(n.target.value);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
),
|
|
49
|
+
e?.isVisible && !s && /* @__PURE__ */ l("div", { className: "flex justify-center", children: /* @__PURE__ */ l(
|
|
50
|
+
f,
|
|
69
51
|
{
|
|
70
52
|
containerClassName: "w-full text-small",
|
|
71
53
|
id: `${e.id}-mobile`,
|
|
@@ -76,10 +58,10 @@ const R = ({
|
|
|
76
58
|
onInputChange: e.onChange
|
|
77
59
|
}
|
|
78
60
|
) }, e.name),
|
|
79
|
-
/* @__PURE__ */ l(
|
|
61
|
+
/* @__PURE__ */ l(N, { variant: "primary-green", className: `text-small ${s ? "w-fit text-nowrap" : "w-full"}`, children: h })
|
|
80
62
|
] }),
|
|
81
|
-
e?.isVisible &&
|
|
82
|
-
|
|
63
|
+
e?.isVisible && s && /* @__PURE__ */ l("div", { className: "mt-4 flex w-full justify-center", children: /* @__PURE__ */ l(
|
|
64
|
+
f,
|
|
83
65
|
{
|
|
84
66
|
containerClassName: "w-full text-small",
|
|
85
67
|
id: `${e.id}-mobile-sticky`,
|
|
@@ -93,14 +75,14 @@ const R = ({
|
|
|
93
75
|
]
|
|
94
76
|
}
|
|
95
77
|
);
|
|
96
|
-
return /* @__PURE__ */
|
|
97
|
-
/* @__PURE__ */ l("section", { className: "bg-neutral-25 pt-10 text-neutral-800 sm:hidden", children: /* @__PURE__ */
|
|
98
|
-
/* @__PURE__ */ l("div", { className: "px-6", children: /* @__PURE__ */ l(
|
|
99
|
-
/* @__PURE__ */ l("div", { className:
|
|
78
|
+
return /* @__PURE__ */ o(d, { children: [
|
|
79
|
+
/* @__PURE__ */ l("section", { className: "bg-neutral-25 pt-10 text-neutral-800 sm:hidden", children: /* @__PURE__ */ o("div", { ref: c, className: "relative flex flex-col rounded bg-white pt-8 shadow", children: [
|
|
80
|
+
/* @__PURE__ */ l("div", { className: "px-6", children: /* @__PURE__ */ l(g, { ...a }) }),
|
|
81
|
+
/* @__PURE__ */ l("div", { className: m ? "hidden" : "block", children: t(!1) })
|
|
100
82
|
] }) }),
|
|
101
|
-
|
|
83
|
+
m && /* @__PURE__ */ l("div", { className: "fixed bottom-0 left-0 z-50 w-full sm:hidden", children: t(!0) })
|
|
102
84
|
] });
|
|
103
85
|
};
|
|
104
86
|
export {
|
|
105
|
-
|
|
87
|
+
y as PreformMobile
|
|
106
88
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as o, jsx as m } from "react/jsx-runtime";
|
|
2
2
|
import { Jumbotron as u } from "./Jumbotron.js";
|
|
3
3
|
import { JumboDocs as g } from "./JumboDocs.js";
|
|
4
4
|
import { Preform as h } from "./Preform.js";
|
|
5
5
|
import { ProductInfo as N } from "./ProductInfo.js";
|
|
6
6
|
import { BenefitsBar as b } from "./BenefitsBar.js";
|
|
7
|
-
import { Breadcrumb as
|
|
8
|
-
import { TableOfContents as
|
|
7
|
+
import { Breadcrumb as P } from "./Breadcrumb.js";
|
|
8
|
+
import { TableOfContents as v } from "./TableOfContents.js";
|
|
9
9
|
import { ContentItem as B } from "./ContentItem.js";
|
|
10
10
|
import { FaqSection as T } from "./FaqSection.js";
|
|
11
11
|
import { PreviewDownload as k } from "./PreviewDownload.js";
|
|
@@ -14,10 +14,10 @@ import { TryNowSection as F } from "./TryNowSection.js";
|
|
|
14
14
|
import { FreeDocumentModal as I } from "./FreeDocumentModal.js";
|
|
15
15
|
const M = ({
|
|
16
16
|
jumbotron: p,
|
|
17
|
-
jumboDocs:
|
|
17
|
+
jumboDocs: r,
|
|
18
18
|
preform: t,
|
|
19
|
-
productInfo:
|
|
20
|
-
benefitsBar:
|
|
19
|
+
productInfo: f,
|
|
20
|
+
benefitsBar: n,
|
|
21
21
|
breadcrumb: s,
|
|
22
22
|
tableOfContents: c,
|
|
23
23
|
contentItems: x,
|
|
@@ -25,27 +25,27 @@ const M = ({
|
|
|
25
25
|
previewDownload: w,
|
|
26
26
|
previewSection: e,
|
|
27
27
|
tryNowSection: l,
|
|
28
|
-
freeDocModal:
|
|
29
|
-
}) => /* @__PURE__ */
|
|
28
|
+
freeDocModal: i
|
|
29
|
+
}) => /* @__PURE__ */ o("main", { className: "min-w-0 flex-1", children: [
|
|
30
30
|
/* @__PURE__ */ m(u, { ...p }),
|
|
31
|
-
|
|
31
|
+
r && /* @__PURE__ */ m(g, { ...r }),
|
|
32
32
|
t && /* @__PURE__ */ m(h, { ...t }),
|
|
33
|
-
/* @__PURE__ */ m(N, { ...
|
|
34
|
-
/* @__PURE__ */ m(b, { ...
|
|
35
|
-
/* @__PURE__ */ m("section", { className: "px-4 pt-6 pb-10 text-neutral-800 md:px-6 lg:px-8 xl:px-30", children: /* @__PURE__ */
|
|
36
|
-
/* @__PURE__ */ m(
|
|
37
|
-
/* @__PURE__ */
|
|
38
|
-
/* @__PURE__ */
|
|
39
|
-
/* @__PURE__ */ m(
|
|
40
|
-
x.map((
|
|
41
|
-
/* @__PURE__ */ m(T, { ...d
|
|
33
|
+
/* @__PURE__ */ m(N, { ...f }),
|
|
34
|
+
/* @__PURE__ */ m(b, { ...n }),
|
|
35
|
+
/* @__PURE__ */ m("section", { className: "px-4 pt-6 pb-10 text-neutral-800 md:px-6 lg:px-8 xl:px-30", children: /* @__PURE__ */ o("div", { className: "mx-auto flex w-full max-w-300 flex-col gap-6", children: [
|
|
36
|
+
/* @__PURE__ */ m(P, { ...s }),
|
|
37
|
+
/* @__PURE__ */ o("div", { className: "flex w-full min-w-0 items-start md:gap-4 lg:gap-26.5 xl:gap-31", children: [
|
|
38
|
+
/* @__PURE__ */ o("div", { className: "flex w-full max-w-100 min-w-0 flex-col gap-8 lg:max-w-137.5 xl:max-w-172.5", children: [
|
|
39
|
+
/* @__PURE__ */ m(v, { ...c }),
|
|
40
|
+
x.map((a) => /* @__PURE__ */ m(B, { ...a }, a.id)),
|
|
41
|
+
/* @__PURE__ */ m(T, { ...d })
|
|
42
42
|
] }),
|
|
43
43
|
/* @__PURE__ */ m("aside", { className: "sticky top-20 hidden pt-4 md:block", children: /* @__PURE__ */ m(k, { ...w }) })
|
|
44
44
|
] })
|
|
45
45
|
] }) }),
|
|
46
46
|
e && /* @__PURE__ */ m(C, { ...e }),
|
|
47
47
|
l && /* @__PURE__ */ m(F, { ...l }),
|
|
48
|
-
|
|
48
|
+
i && /* @__PURE__ */ m(I, { ...i })
|
|
49
49
|
] });
|
|
50
50
|
export {
|
|
51
51
|
M as ProductTemplate
|
package/dist/components/Toast.js
CHANGED
|
@@ -18,8 +18,8 @@ const u = {
|
|
|
18
18
|
icon: /* @__PURE__ */ e(l, { fill: "white", width: 24, height: 24 }),
|
|
19
19
|
bg: "bg-neutral-500"
|
|
20
20
|
}
|
|
21
|
-
}, v = ({ show: i, title: s, message:
|
|
22
|
-
const [t, n] = h(i), o = u[
|
|
21
|
+
}, v = ({ show: i, title: s, message: c, type: a = "default", onClose: d }) => {
|
|
22
|
+
const [t, n] = h(i), o = u[a];
|
|
23
23
|
i && !t && n(!0);
|
|
24
24
|
const m = () => {
|
|
25
25
|
i || n(!1);
|
|
@@ -37,7 +37,7 @@ const u = {
|
|
|
37
37
|
/* @__PURE__ */ e("div", { className: "shrink-0", children: o.icon }),
|
|
38
38
|
/* @__PURE__ */ r("div", { className: "flex grow flex-col text-sm text-white", children: [
|
|
39
39
|
/* @__PURE__ */ e("p", { className: "font-bold", children: s }),
|
|
40
|
-
/* @__PURE__ */ e("p", {
|
|
40
|
+
/* @__PURE__ */ e("p", { children: c })
|
|
41
41
|
] }),
|
|
42
42
|
/* @__PURE__ */ e("button", { onClick: d, className: "cursor-pointer", children: /* @__PURE__ */ e(p, { fill: "white", className: "h-4 w-4" }) })
|
|
43
43
|
]
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@npm_leadtech/legal-contracts-ui",
|
|
3
|
-
"version": "0.165.
|
|
3
|
+
"version": "0.165.5",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -294,6 +294,10 @@
|
|
|
294
294
|
"import": "./dist/components/ContentItem.js",
|
|
295
295
|
"types": "./dist/components/ContentItem.d.ts"
|
|
296
296
|
},
|
|
297
|
+
"./components/ContinueEditingBanner": {
|
|
298
|
+
"import": "./dist/components/ContinueEditingBanner.js",
|
|
299
|
+
"types": "./dist/components/ContinueEditingBanner.d.ts"
|
|
300
|
+
},
|
|
297
301
|
"./components/CookiesBar": {
|
|
298
302
|
"import": "./dist/components/CookiesBar.js",
|
|
299
303
|
"types": "./dist/components/CookiesBar.d.ts"
|