@npm_leadtech/legal-contracts-ui 0.176.1 → 0.176.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/Checkbox.js +3 -3
- package/dist/components/Input.js +8 -11
- package/dist/components/JumboDocs.d.ts +5 -1
- package/dist/components/JumboDocs.js +33 -32
- package/dist/components/LeadGateError.d.ts +11 -0
- package/dist/components/LeadGateError.js +41 -0
- package/dist/components/LeadGateModal.d.ts +29 -0
- package/dist/components/LeadGateModal.js +87 -0
- package/dist/components/LeadGateSuccess.d.ts +20 -0
- package/dist/components/LeadGateSuccess.js +45 -0
- package/dist/components/LeadGateSuccessFeatureItem.d.ts +11 -0
- package/dist/components/LeadGateSuccessFeatureItem.js +20 -0
- package/dist/components/Preform.d.ts +5 -1
- package/dist/components/Preform.js +35 -34
- package/dist/components/PreformMobile.d.ts +5 -1
- package/dist/components/PreformMobile.js +60 -59
- package/dist/components/ProductSemTemplate.d.ts +5 -1
- package/dist/components/ProductTemplate.d.ts +6 -2
- package/dist/components/Select.js +8 -11
- package/dist/components/Textarea.js +8 -11
- package/dist/components/index.d.ts +57 -2
- package/dist/index.js +53 -49
- package/package.json +46 -22
|
@@ -4,7 +4,7 @@ import r from "clsx";
|
|
|
4
4
|
//#region lib/components/atoms/Checkbox.tsx
|
|
5
5
|
var i = ({ dataQa: i, id: a, name: o, required: s = !1, children: c, checked: l, error: u = !1, ...d }) => /* @__PURE__ */ n("label", {
|
|
6
6
|
htmlFor: a,
|
|
7
|
-
className: "text-medium flex cursor-pointer items-
|
|
7
|
+
className: "text-medium flex cursor-pointer items-start gap-2 text-neutral-800 select-none",
|
|
8
8
|
children: [
|
|
9
9
|
/* @__PURE__ */ t("input", {
|
|
10
10
|
id: a,
|
|
@@ -16,11 +16,11 @@ var i = ({ dataQa: i, id: a, name: o, required: s = !1, children: c, checked: l,
|
|
|
16
16
|
}),
|
|
17
17
|
/* @__PURE__ */ t("div", {
|
|
18
18
|
"data-qa": i,
|
|
19
|
-
className: r("flex h-5.5 w-5.5 items-center justify-center rounded transition-colors", "peer-focus-visible:ring-primary-500 peer-focus-visible:ring-2 peer-focus-visible:ring-offset-2", !u && !l && "hover:bg-primary-200 border border-neutral-800 bg-white", l && "border-primary-500 bg-primary-200 border-2", u && "border-error-500 bg-error-20 border"),
|
|
19
|
+
className: r("flex h-5.5 w-5.5 shrink-0 items-center justify-center rounded transition-colors", "peer-focus-visible:ring-primary-500 peer-focus-visible:ring-2 peer-focus-visible:ring-offset-2", !u && !l && "hover:bg-primary-200 border border-neutral-800 bg-white", l && "border-primary-500 bg-primary-200 border-2", u && "border-error-500 bg-error-20 border"),
|
|
20
20
|
children: l && /* @__PURE__ */ t(e, {})
|
|
21
21
|
}),
|
|
22
22
|
/* @__PURE__ */ t("span", {
|
|
23
|
-
className: "leading-tight text-neutral-800",
|
|
23
|
+
className: "min-w-0 leading-tight text-neutral-800",
|
|
24
24
|
children: c
|
|
25
25
|
})
|
|
26
26
|
]
|
package/dist/components/Input.js
CHANGED
|
@@ -75,17 +75,14 @@ var s = ({ dataQa: s, label: c, id: l, name: u, type: d = "text", placeholder: f
|
|
|
75
75
|
}),
|
|
76
76
|
_ && /* @__PURE__ */ a("p", {
|
|
77
77
|
id: `${l}-error-message`,
|
|
78
|
-
className: "text-small text-error-500 flex items-
|
|
79
|
-
children: [
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
" ",
|
|
87
|
-
v
|
|
88
|
-
]
|
|
78
|
+
className: "text-small text-error-500 flex items-start gap-1",
|
|
79
|
+
children: [/* @__PURE__ */ i(e, {
|
|
80
|
+
className: "shrink-0",
|
|
81
|
+
width: 20,
|
|
82
|
+
height: 20,
|
|
83
|
+
fill: "var(--color-error-500)",
|
|
84
|
+
"aria-hidden": "true"
|
|
85
|
+
}), v]
|
|
89
86
|
})
|
|
90
87
|
]
|
|
91
88
|
});
|
|
@@ -4,11 +4,15 @@ import { ReactNode } from 'react';
|
|
|
4
4
|
export declare const JumboDocs: FC<JumboDocsProps>;
|
|
5
5
|
|
|
6
6
|
export declare interface JumboDocsProps {
|
|
7
|
-
trustedBadge?:
|
|
7
|
+
trustedBadge?: TrustedBadgeProps;
|
|
8
8
|
imagePreview: ReactNode | null;
|
|
9
9
|
title: string;
|
|
10
10
|
freeDocTexts: string[];
|
|
11
11
|
pdfDownload: ReactNode;
|
|
12
12
|
wordDownload: ReactNode;
|
|
13
13
|
}
|
|
14
|
+
|
|
15
|
+
export interface TrustedBadgeProps {
|
|
16
|
+
children: ReactNode;
|
|
17
|
+
}
|
|
14
18
|
|
|
@@ -1,79 +1,80 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use client";
|
|
3
3
|
import { LinkWrapper as e } from "./LinkWrapper.js";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
4
|
+
import { TrustedBadge as t } from "./TrustedBadge.js";
|
|
5
|
+
import { useEffect as n, useRef as r, useState as i } from "react";
|
|
6
|
+
import { Fragment as a, jsx as o, jsxs as s } from "react/jsx-runtime";
|
|
6
7
|
//#region lib/components/organisms/JumboDocs.tsx
|
|
7
|
-
var
|
|
8
|
-
let [
|
|
9
|
-
return
|
|
10
|
-
let e =
|
|
8
|
+
var c = ({ trustedBadge: c, imagePreview: l, freeDocTexts: u, title: d, pdfDownload: f, wordDownload: p }) => {
|
|
9
|
+
let [m, h] = i(!1), g = r(null);
|
|
10
|
+
return n(() => {
|
|
11
|
+
let e = g.current;
|
|
11
12
|
if (!e) return;
|
|
12
13
|
let t = new IntersectionObserver(([e]) => {
|
|
13
|
-
|
|
14
|
+
h(!e.isIntersecting);
|
|
14
15
|
}, { threshold: 0 });
|
|
15
16
|
return t.observe(e), () => {
|
|
16
17
|
t.disconnect();
|
|
17
18
|
};
|
|
18
|
-
}, []), /* @__PURE__ */
|
|
19
|
+
}, []), /* @__PURE__ */ s(a, { children: [/* @__PURE__ */ o("section", {
|
|
19
20
|
className: "bg-neutral-25 pt-8 text-neutral-800 sm:px-6 lg:px-8 xl:px-30",
|
|
20
|
-
children: /* @__PURE__ */
|
|
21
|
-
ref:
|
|
21
|
+
children: /* @__PURE__ */ s("div", {
|
|
22
|
+
ref: g,
|
|
22
23
|
className: "relative mx-auto flex max-w-300 flex-col items-center justify-center gap-8 rounded bg-white px-6 py-8 shadow-md sm:px-4 md:flex-row lg:px-14",
|
|
23
24
|
children: [
|
|
24
|
-
|
|
25
|
-
/* @__PURE__ */
|
|
25
|
+
c && /* @__PURE__ */ o(t, { ...c }),
|
|
26
|
+
/* @__PURE__ */ o("div", {
|
|
26
27
|
className: "border border-neutral-200 shadow",
|
|
27
|
-
children:
|
|
28
|
+
children: l
|
|
28
29
|
}),
|
|
29
|
-
/* @__PURE__ */
|
|
30
|
+
/* @__PURE__ */ s("div", {
|
|
30
31
|
className: "flex flex-col gap-8 self-start",
|
|
31
|
-
children: [/* @__PURE__ */
|
|
32
|
+
children: [/* @__PURE__ */ s("div", {
|
|
32
33
|
className: "flex flex-col gap-4",
|
|
33
34
|
children: [
|
|
34
|
-
/* @__PURE__ */
|
|
35
|
+
/* @__PURE__ */ o("p", {
|
|
35
36
|
className: "text-big md:text-large font-bold",
|
|
36
|
-
children:
|
|
37
|
+
children: d
|
|
37
38
|
}),
|
|
38
|
-
/* @__PURE__ */
|
|
39
|
-
|
|
39
|
+
/* @__PURE__ */ o("span", { className: "h-px w-full bg-neutral-200" }),
|
|
40
|
+
u.length > 0 && /* @__PURE__ */ o("ul", {
|
|
40
41
|
className: "flex flex-col gap-4 md:gap-8",
|
|
41
|
-
children:
|
|
42
|
+
children: u.map((e) => /* @__PURE__ */ s("li", {
|
|
42
43
|
className: "text-small flex gap-2",
|
|
43
|
-
children: [/* @__PURE__ */
|
|
44
|
+
children: [/* @__PURE__ */ o("span", {
|
|
44
45
|
className: "text-primary-500",
|
|
45
46
|
children: "•"
|
|
46
47
|
}), e]
|
|
47
48
|
}, e))
|
|
48
49
|
})
|
|
49
50
|
]
|
|
50
|
-
}), /* @__PURE__ */
|
|
51
|
+
}), /* @__PURE__ */ s("div", {
|
|
51
52
|
className: "flex w-full gap-4",
|
|
52
|
-
children: [/* @__PURE__ */
|
|
53
|
+
children: [/* @__PURE__ */ o(e, {
|
|
53
54
|
className: "w-full md:w-26.25",
|
|
54
55
|
variant: "secondary-black",
|
|
55
|
-
children:
|
|
56
|
-
}), /* @__PURE__ */
|
|
56
|
+
children: f
|
|
57
|
+
}), /* @__PURE__ */ o(e, {
|
|
57
58
|
className: "w-full md:w-26.25",
|
|
58
59
|
variant: "secondary-black",
|
|
59
|
-
children:
|
|
60
|
+
children: p
|
|
60
61
|
})]
|
|
61
62
|
})]
|
|
62
63
|
})
|
|
63
64
|
]
|
|
64
65
|
})
|
|
65
|
-
}),
|
|
66
|
+
}), m && /* @__PURE__ */ s("div", {
|
|
66
67
|
className: "fixed bottom-0 left-0 z-50 flex w-full gap-4 bg-white px-6 py-4 shadow sm:hidden",
|
|
67
|
-
children: [/* @__PURE__ */
|
|
68
|
+
children: [/* @__PURE__ */ o(e, {
|
|
68
69
|
className: "w-full",
|
|
69
70
|
variant: "secondary-black",
|
|
70
|
-
children:
|
|
71
|
-
}), /* @__PURE__ */
|
|
71
|
+
children: f
|
|
72
|
+
}), /* @__PURE__ */ o(e, {
|
|
72
73
|
className: "w-full",
|
|
73
74
|
variant: "secondary-black",
|
|
74
|
-
children:
|
|
75
|
+
children: p
|
|
75
76
|
})]
|
|
76
77
|
})] });
|
|
77
78
|
};
|
|
78
79
|
//#endregion
|
|
79
|
-
export {
|
|
80
|
+
export { c as JumboDocs };
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { ClearIcon as e } from "./ClearIcon.js";
|
|
2
|
+
import { Button as t } from "./Button.js";
|
|
3
|
+
import { Markdown as n } from "./Markdown.js";
|
|
4
|
+
import { jsx as r, jsxs as i } from "react/jsx-runtime";
|
|
5
|
+
//#region lib/components/molecules/LeadGateError.tsx
|
|
6
|
+
var a = ({ heading: a, description: o, ctaLabel: s, onRetry: c }) => /* @__PURE__ */ i("div", {
|
|
7
|
+
className: "mt-4 flex w-full flex-col",
|
|
8
|
+
children: [/* @__PURE__ */ r("span", { className: "h-px w-full bg-neutral-200" }), /* @__PURE__ */ i("div", {
|
|
9
|
+
className: "mt-10 flex w-full flex-col gap-10",
|
|
10
|
+
children: [/* @__PURE__ */ i("div", {
|
|
11
|
+
className: "flex w-full flex-col items-center gap-4",
|
|
12
|
+
children: [/* @__PURE__ */ r("div", {
|
|
13
|
+
className: "bg-error-20 flex size-[74px] items-center justify-center rounded-full",
|
|
14
|
+
children: /* @__PURE__ */ r(e, {
|
|
15
|
+
width: 48,
|
|
16
|
+
height: 48,
|
|
17
|
+
fill: "var(--color-error-500)",
|
|
18
|
+
"aria-hidden": "true"
|
|
19
|
+
})
|
|
20
|
+
}), /* @__PURE__ */ i("div", {
|
|
21
|
+
className: "flex w-full flex-col gap-2 text-center",
|
|
22
|
+
children: [/* @__PURE__ */ r("p", {
|
|
23
|
+
className: "text-big font-bold text-neutral-800",
|
|
24
|
+
children: a
|
|
25
|
+
}), /* @__PURE__ */ r(n, {
|
|
26
|
+
className: "text-medium w-auto! text-neutral-800 [&_p]:mb-0",
|
|
27
|
+
content: o
|
|
28
|
+
})]
|
|
29
|
+
})]
|
|
30
|
+
}), /* @__PURE__ */ r(t, {
|
|
31
|
+
type: "button",
|
|
32
|
+
variant: "primary-green",
|
|
33
|
+
className: "w-full",
|
|
34
|
+
dataQa: "lead_gate_retry",
|
|
35
|
+
onClick: c,
|
|
36
|
+
children: s
|
|
37
|
+
})]
|
|
38
|
+
})]
|
|
39
|
+
});
|
|
40
|
+
//#endregion
|
|
41
|
+
export { a as LeadGateError };
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
|
|
3
|
+
export declare const LeadGateModal: FC<LeadGateModalProps>;
|
|
4
|
+
|
|
5
|
+
export declare interface LeadGateModalErrors {
|
|
6
|
+
email?: boolean;
|
|
7
|
+
hasAcceptedTerms?: boolean;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export declare interface LeadGateModalPayload {
|
|
11
|
+
email: string;
|
|
12
|
+
hasAcceptedTerms: boolean;
|
|
13
|
+
hasAcceptedMarketing: boolean;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export declare interface LeadGateModalProps {
|
|
17
|
+
description: string;
|
|
18
|
+
emailLabel: string;
|
|
19
|
+
emailPlaceholder: string;
|
|
20
|
+
emailErrorMessage: string;
|
|
21
|
+
termsLabel: string;
|
|
22
|
+
marketingLabel: string;
|
|
23
|
+
ctaLabel: string;
|
|
24
|
+
payload: LeadGateModalPayload;
|
|
25
|
+
errors?: LeadGateModalErrors;
|
|
26
|
+
onPayloadChange: (payload: LeadGateModalPayload) => void;
|
|
27
|
+
onSubmit?: () => void;
|
|
28
|
+
}
|
|
29
|
+
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import { Button as e } from "./Button.js";
|
|
2
|
+
import { Markdown as t } from "./Markdown.js";
|
|
3
|
+
import { Input as n } from "./Input.js";
|
|
4
|
+
import { Checkbox as r } from "./Checkbox.js";
|
|
5
|
+
import { jsx as i, jsxs as a } from "react/jsx-runtime";
|
|
6
|
+
//#region lib/components/molecules/LeadGateModal.tsx
|
|
7
|
+
var o = (e) => {
|
|
8
|
+
!(e.target instanceof HTMLElement) || !e.target.closest("a") || e.stopPropagation();
|
|
9
|
+
}, s = ({ description: s, emailLabel: c, emailPlaceholder: l, emailErrorMessage: u, termsLabel: d, marketingLabel: f, ctaLabel: p, payload: m, errors: h = {}, onPayloadChange: g, onSubmit: _ }) => /* @__PURE__ */ a("div", {
|
|
10
|
+
className: "mt-4 flex w-full flex-col gap-4",
|
|
11
|
+
children: [/* @__PURE__ */ i("span", { className: "h-px w-full bg-neutral-200" }), /* @__PURE__ */ a("form", {
|
|
12
|
+
className: "flex w-full flex-col gap-4",
|
|
13
|
+
noValidate: !0,
|
|
14
|
+
onSubmit: (e) => {
|
|
15
|
+
e.preventDefault(), _?.();
|
|
16
|
+
},
|
|
17
|
+
children: [
|
|
18
|
+
/* @__PURE__ */ i(t, {
|
|
19
|
+
className: "text-medium w-auto! text-center text-neutral-800 [&_p]:mb-0",
|
|
20
|
+
content: s
|
|
21
|
+
}),
|
|
22
|
+
/* @__PURE__ */ i(n, {
|
|
23
|
+
id: "lead-gate-email",
|
|
24
|
+
name: "email",
|
|
25
|
+
type: "email",
|
|
26
|
+
label: c,
|
|
27
|
+
placeholder: l,
|
|
28
|
+
dataQa: "lead_gate_email",
|
|
29
|
+
value: m.email,
|
|
30
|
+
error: h.email,
|
|
31
|
+
errorMessage: u,
|
|
32
|
+
onInputChange: (e) => {
|
|
33
|
+
g({
|
|
34
|
+
...m,
|
|
35
|
+
email: e
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
}),
|
|
39
|
+
/* @__PURE__ */ a("div", {
|
|
40
|
+
className: "flex flex-col gap-4",
|
|
41
|
+
children: [/* @__PURE__ */ i(r, {
|
|
42
|
+
id: "lead-gate-terms",
|
|
43
|
+
name: "hasAcceptedTerms",
|
|
44
|
+
dataQa: "lead_gate_terms",
|
|
45
|
+
checked: m.hasAcceptedTerms,
|
|
46
|
+
error: h.hasAcceptedTerms,
|
|
47
|
+
onChange: (e) => {
|
|
48
|
+
g({
|
|
49
|
+
...m,
|
|
50
|
+
hasAcceptedTerms: e.currentTarget.checked
|
|
51
|
+
});
|
|
52
|
+
},
|
|
53
|
+
children: /* @__PURE__ */ i("span", {
|
|
54
|
+
className: "min-w-0",
|
|
55
|
+
onClick: o,
|
|
56
|
+
onKeyDown: o,
|
|
57
|
+
children: /* @__PURE__ */ i(t, {
|
|
58
|
+
className: "[&_p]:mb-0",
|
|
59
|
+
content: d
|
|
60
|
+
})
|
|
61
|
+
})
|
|
62
|
+
}), /* @__PURE__ */ i(r, {
|
|
63
|
+
id: "lead-gate-marketing",
|
|
64
|
+
name: "hasAcceptedMarketing",
|
|
65
|
+
dataQa: "lead_gate_marketing",
|
|
66
|
+
checked: m.hasAcceptedMarketing,
|
|
67
|
+
onChange: (e) => {
|
|
68
|
+
g({
|
|
69
|
+
...m,
|
|
70
|
+
hasAcceptedMarketing: e.currentTarget.checked
|
|
71
|
+
});
|
|
72
|
+
},
|
|
73
|
+
children: f
|
|
74
|
+
})]
|
|
75
|
+
}),
|
|
76
|
+
/* @__PURE__ */ i(e, {
|
|
77
|
+
type: "submit",
|
|
78
|
+
variant: "primary-green",
|
|
79
|
+
className: "w-full",
|
|
80
|
+
dataQa: "lead_gate_download",
|
|
81
|
+
children: p
|
|
82
|
+
})
|
|
83
|
+
]
|
|
84
|
+
})]
|
|
85
|
+
});
|
|
86
|
+
//#endregion
|
|
87
|
+
export { s as LeadGateModal };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
|
+
|
|
4
|
+
export declare const LeadGateSuccess: FC<LeadGateSuccessProps>;
|
|
5
|
+
|
|
6
|
+
export interface LeadGateSuccessFeatureItemProps {
|
|
7
|
+
icon?: ReactNode;
|
|
8
|
+
title: string;
|
|
9
|
+
description: string;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export declare interface LeadGateSuccessProps {
|
|
13
|
+
subtitle: string;
|
|
14
|
+
featureItems: LeadGateSuccessFeatureItemProps[];
|
|
15
|
+
ctaLabel: string;
|
|
16
|
+
footer: string;
|
|
17
|
+
illustration: ReactNode;
|
|
18
|
+
onCtaClick?: () => void;
|
|
19
|
+
}
|
|
20
|
+
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { DocOutlineIcon as e } from "./DocOutlineIcon.js";
|
|
2
|
+
import { Button as t } from "./Button.js";
|
|
3
|
+
import { Markdown as n } from "./Markdown.js";
|
|
4
|
+
import { LeadGateSuccessFeatureItem as r } from "./LeadGateSuccessFeatureItem.js";
|
|
5
|
+
import { jsx as i, jsxs as a } from "react/jsx-runtime";
|
|
6
|
+
//#region lib/components/molecules/LeadGateSuccess.tsx
|
|
7
|
+
var o = ({ subtitle: o, featureItems: s, ctaLabel: c, footer: l, illustration: u, onCtaClick: d }) => /* @__PURE__ */ a("div", {
|
|
8
|
+
className: "mt-6 flex w-full flex-col gap-6",
|
|
9
|
+
children: [
|
|
10
|
+
/* @__PURE__ */ i("div", {
|
|
11
|
+
className: "relative h-[227px] w-[302px] max-w-full overflow-hidden",
|
|
12
|
+
children: u
|
|
13
|
+
}),
|
|
14
|
+
/* @__PURE__ */ i("p", {
|
|
15
|
+
className: "text-medium text-primary-500 w-full text-center",
|
|
16
|
+
children: o
|
|
17
|
+
}),
|
|
18
|
+
/* @__PURE__ */ i("span", { className: "h-px w-full bg-neutral-200" }),
|
|
19
|
+
/* @__PURE__ */ i("ul", {
|
|
20
|
+
className: "flex w-full flex-col gap-4",
|
|
21
|
+
children: s.map((e) => /* @__PURE__ */ i(r, { ...e }, e.title))
|
|
22
|
+
}),
|
|
23
|
+
/* @__PURE__ */ a("div", {
|
|
24
|
+
className: "flex w-full flex-col gap-4",
|
|
25
|
+
children: [/* @__PURE__ */ a(t, {
|
|
26
|
+
type: "button",
|
|
27
|
+
variant: "primary-green",
|
|
28
|
+
className: "w-full",
|
|
29
|
+
dataQa: "lead_gate_success_cta",
|
|
30
|
+
onClick: d,
|
|
31
|
+
children: [/* @__PURE__ */ i(e, {
|
|
32
|
+
width: 22,
|
|
33
|
+
height: 22,
|
|
34
|
+
fill: "currentColor",
|
|
35
|
+
"aria-hidden": "true"
|
|
36
|
+
}), c]
|
|
37
|
+
}), /* @__PURE__ */ i(n, {
|
|
38
|
+
className: "text-extra-small [&_strong]:text-primary-500 text-center text-neutral-600 [&_p]:mb-0",
|
|
39
|
+
content: l
|
|
40
|
+
})]
|
|
41
|
+
})
|
|
42
|
+
]
|
|
43
|
+
});
|
|
44
|
+
//#endregion
|
|
45
|
+
export { o as LeadGateSuccess };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
|
+
|
|
4
|
+
export declare const LeadGateSuccessFeatureItem: FC<LeadGateSuccessFeatureItemProps>;
|
|
5
|
+
|
|
6
|
+
export declare interface LeadGateSuccessFeatureItemProps {
|
|
7
|
+
icon?: ReactNode;
|
|
8
|
+
title: string;
|
|
9
|
+
description: string;
|
|
10
|
+
}
|
|
11
|
+
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { jsx as e, jsxs as t } from "react/jsx-runtime";
|
|
2
|
+
//#region lib/components/molecules/LeadGateSuccessFeatureItem.tsx
|
|
3
|
+
var n = ({ icon: n, title: r, description: i }) => /* @__PURE__ */ t("li", {
|
|
4
|
+
className: "flex items-start gap-4",
|
|
5
|
+
children: [n == null ? null : /* @__PURE__ */ e("span", {
|
|
6
|
+
className: "mt-0.5 shrink-0",
|
|
7
|
+
children: n
|
|
8
|
+
}), /* @__PURE__ */ t("div", {
|
|
9
|
+
className: "flex min-w-0 flex-1 flex-col gap-2",
|
|
10
|
+
children: [/* @__PURE__ */ e("p", {
|
|
11
|
+
className: "text-medium font-bold text-neutral-800",
|
|
12
|
+
children: r
|
|
13
|
+
}), /* @__PURE__ */ e("p", {
|
|
14
|
+
className: "text-small text-neutral-600",
|
|
15
|
+
children: i
|
|
16
|
+
})]
|
|
17
|
+
})]
|
|
18
|
+
});
|
|
19
|
+
//#endregion
|
|
20
|
+
export { n as LeadGateSuccessFeatureItem };
|
|
@@ -25,7 +25,7 @@ export interface PreformOptionProps {
|
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
export declare interface PreformProps {
|
|
28
|
-
trustedBadge:
|
|
28
|
+
trustedBadge: TrustedBadgeProps;
|
|
29
29
|
cta: ReactNode;
|
|
30
30
|
radioFieldData?: RadioFieldData;
|
|
31
31
|
inputFieldData?: InputFieldData;
|
|
@@ -46,4 +46,8 @@ export interface TooltipsProps {
|
|
|
46
46
|
title: string;
|
|
47
47
|
content: string;
|
|
48
48
|
}
|
|
49
|
+
|
|
50
|
+
export interface TrustedBadgeProps {
|
|
51
|
+
children: ReactNode;
|
|
52
|
+
}
|
|
49
53
|
|
|
@@ -3,58 +3,59 @@
|
|
|
3
3
|
import { Input as e } from "./Input.js";
|
|
4
4
|
import { LinkWrapper as t } from "./LinkWrapper.js";
|
|
5
5
|
import { PreformOption as n } from "./PreformOption.js";
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
6
|
+
import { TrustedBadge as r } from "./TrustedBadge.js";
|
|
7
|
+
import { Tooltips as i } from "./Tooltips.js";
|
|
8
|
+
import { PreformMobile as a } from "./PreformMobile.js";
|
|
8
9
|
import "react";
|
|
9
|
-
import { Fragment as
|
|
10
|
+
import { Fragment as o, jsx as s, jsxs as c } from "react/jsx-runtime";
|
|
10
11
|
//#region lib/components/organisms/Preform.tsx
|
|
11
|
-
var
|
|
12
|
+
var l = ({ trustedBadge: l, cta: u, inputFieldData: d, radioFieldData: f, tooltips: p, hasMobileRadioField: m }) => /* @__PURE__ */ c(o, { children: [/* @__PURE__ */ s("section", {
|
|
12
13
|
className: "bg-neutral-25 hidden pt-10 text-neutral-800 sm:block sm:px-6 lg:px-8 xl:px-30",
|
|
13
|
-
children: /* @__PURE__ */
|
|
14
|
+
children: /* @__PURE__ */ c("div", {
|
|
14
15
|
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",
|
|
15
16
|
children: [
|
|
16
|
-
|
|
17
|
-
|
|
17
|
+
/* @__PURE__ */ s(r, { ...l }),
|
|
18
|
+
f?.isVisible && /* @__PURE__ */ c(o, { children: [/* @__PURE__ */ s("p", {
|
|
18
19
|
className: "text-large font-bold",
|
|
19
|
-
children:
|
|
20
|
-
}), /* @__PURE__ */
|
|
20
|
+
children: f.label
|
|
21
|
+
}), /* @__PURE__ */ c("div", {
|
|
21
22
|
className: "flex w-full max-w-272 flex-wrap justify-center gap-2 sm:gap-4",
|
|
22
|
-
children: [
|
|
23
|
+
children: [f.options.map((e) => /* @__PURE__ */ s("div", {
|
|
23
24
|
className: "w-[calc(25%-12px)] lg:w-[calc(20%-13px)] xl:w-[calc(16.66%-14px)]",
|
|
24
|
-
children: /* @__PURE__ */
|
|
25
|
+
children: /* @__PURE__ */ s(n, {
|
|
25
26
|
...e,
|
|
26
|
-
selected: e.value ===
|
|
27
|
-
onClick:
|
|
27
|
+
selected: e.value === f.radioSelected,
|
|
28
|
+
onClick: f.onClick
|
|
28
29
|
})
|
|
29
|
-
}, e.value)),
|
|
30
|
+
}, e.value)), d?.isVisible && /* @__PURE__ */ s("div", {
|
|
30
31
|
className: "mt-4 flex basis-full justify-center md:mt-0",
|
|
31
|
-
children: /* @__PURE__ */
|
|
32
|
-
id:
|
|
33
|
-
label:
|
|
34
|
-
name:
|
|
35
|
-
placeholder:
|
|
36
|
-
value:
|
|
37
|
-
onInputChange:
|
|
38
|
-
"data-qa":
|
|
32
|
+
children: /* @__PURE__ */ s(e, {
|
|
33
|
+
id: d.id,
|
|
34
|
+
label: d.label,
|
|
35
|
+
name: d.name,
|
|
36
|
+
placeholder: d.placeholder,
|
|
37
|
+
value: d.value,
|
|
38
|
+
onInputChange: d.onChange,
|
|
39
|
+
"data-qa": d.dataQa
|
|
39
40
|
})
|
|
40
|
-
},
|
|
41
|
+
}, d.name)]
|
|
41
42
|
})] }),
|
|
42
|
-
/* @__PURE__ */
|
|
43
|
+
/* @__PURE__ */ s(t, {
|
|
43
44
|
variant: "primary-green",
|
|
44
|
-
children:
|
|
45
|
+
children: u
|
|
45
46
|
}),
|
|
46
|
-
|
|
47
|
+
p.length > 0 && /* @__PURE__ */ s("div", {
|
|
47
48
|
className: "flex flex-col gap-8",
|
|
48
|
-
children:
|
|
49
|
+
children: p.map((e) => /* @__PURE__ */ s(i, { ...e }, e.title))
|
|
49
50
|
})
|
|
50
51
|
]
|
|
51
52
|
})
|
|
52
|
-
}), /* @__PURE__ */
|
|
53
|
-
cta:
|
|
54
|
-
trustedBadge:
|
|
55
|
-
inputFieldData:
|
|
56
|
-
radioFieldData:
|
|
57
|
-
hasMobileRadioField:
|
|
53
|
+
}), /* @__PURE__ */ s(a, {
|
|
54
|
+
cta: u,
|
|
55
|
+
trustedBadge: l,
|
|
56
|
+
inputFieldData: d,
|
|
57
|
+
radioFieldData: f,
|
|
58
|
+
hasMobileRadioField: m
|
|
58
59
|
})] });
|
|
59
60
|
//#endregion
|
|
60
|
-
export {
|
|
61
|
+
export { l as Preform };
|
|
@@ -15,7 +15,7 @@ export type InputFieldData = {
|
|
|
15
15
|
export declare const PreformMobile: FC<PreformMobileProps>;
|
|
16
16
|
|
|
17
17
|
export declare interface PreformMobileProps {
|
|
18
|
-
trustedBadge:
|
|
18
|
+
trustedBadge: TrustedBadgeProps;
|
|
19
19
|
radioFieldData?: RadioFieldData;
|
|
20
20
|
inputFieldData?: InputFieldData;
|
|
21
21
|
cta: ReactNode;
|
|
@@ -40,4 +40,8 @@ export type RadioFieldData = {
|
|
|
40
40
|
radioSelected: string;
|
|
41
41
|
onClick: (str: string) => void;
|
|
42
42
|
};
|
|
43
|
+
|
|
44
|
+
export interface TrustedBadgeProps {
|
|
45
|
+
children: ReactNode;
|
|
46
|
+
}
|
|
43
47
|
|
|
@@ -2,109 +2,110 @@ import { Input as e } from "./Input.js";
|
|
|
2
2
|
import { Select as t } from "./Select.js";
|
|
3
3
|
import { LinkWrapper as n } from "./LinkWrapper.js";
|
|
4
4
|
import { PreformOption as r } from "./PreformOption.js";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
5
|
+
import { TrustedBadge as i } from "./TrustedBadge.js";
|
|
6
|
+
import { useEffect as a, useRef as o, useState as s } from "react";
|
|
7
|
+
import { Fragment as c, jsx as l, jsxs as u } from "react/jsx-runtime";
|
|
7
8
|
//#region lib/components/organisms/PreformMobile.tsx
|
|
8
|
-
var
|
|
9
|
-
let [
|
|
10
|
-
|
|
11
|
-
let e =
|
|
9
|
+
var d = ({ radioFieldData: d, inputFieldData: f, cta: p, trustedBadge: m, hasMobileRadioField: h }) => {
|
|
10
|
+
let [g, _] = s(!1), v = o(null);
|
|
11
|
+
a(() => {
|
|
12
|
+
let e = v.current;
|
|
12
13
|
if (!e) return;
|
|
13
14
|
let t = new IntersectionObserver(([e]) => {
|
|
14
|
-
|
|
15
|
+
_(!e.isIntersecting);
|
|
15
16
|
}, { threshold: 0 });
|
|
16
17
|
return t.observe(e), () => {
|
|
17
18
|
t.disconnect();
|
|
18
19
|
};
|
|
19
20
|
}, []);
|
|
20
|
-
let
|
|
21
|
-
if (!
|
|
22
|
-
let n =
|
|
23
|
-
return n ? /* @__PURE__ */
|
|
21
|
+
let y = (e) => {
|
|
22
|
+
if (!d?.isVisible) return null;
|
|
23
|
+
let n = h && !e, i = `${d.name}-${e ? "sticky" : "mobile"}`;
|
|
24
|
+
return n ? /* @__PURE__ */ l("div", {
|
|
24
25
|
className: "flex w-full flex-wrap justify-center gap-2",
|
|
25
|
-
children:
|
|
26
|
+
children: d.options.map((e) => /* @__PURE__ */ l("div", {
|
|
26
27
|
className: "w-[calc(50%-4px)]",
|
|
27
|
-
children: /* @__PURE__ */
|
|
28
|
+
children: /* @__PURE__ */ l(r, {
|
|
28
29
|
...e,
|
|
29
|
-
selected: e.value ===
|
|
30
|
-
onClick:
|
|
30
|
+
selected: e.value === d.radioSelected,
|
|
31
|
+
onClick: d.onClick
|
|
31
32
|
})
|
|
32
33
|
}, e.value))
|
|
33
|
-
}) : /* @__PURE__ */
|
|
34
|
+
}) : /* @__PURE__ */ l(t, {
|
|
34
35
|
id: i,
|
|
35
|
-
name:
|
|
36
|
-
value:
|
|
37
|
-
options:
|
|
36
|
+
name: d.name,
|
|
37
|
+
value: d.radioSelected,
|
|
38
|
+
options: d.options,
|
|
38
39
|
containerClassName: "w-full",
|
|
39
40
|
onChange: (e) => {
|
|
40
|
-
|
|
41
|
+
d.onClick(e.target.value);
|
|
41
42
|
}
|
|
42
43
|
});
|
|
43
|
-
},
|
|
44
|
+
}, b = (t) => /* @__PURE__ */ u("div", {
|
|
44
45
|
className: `flex flex-col bg-white px-6 pb-4 ${t ? "border-t border-neutral-100 pt-4 shadow-md" : ""}`,
|
|
45
46
|
children: [
|
|
46
|
-
|
|
47
|
+
h && !t ? /* @__PURE__ */ l("p", {
|
|
47
48
|
className: "text-small mb-4 font-bold text-neutral-800",
|
|
48
|
-
children:
|
|
49
|
-
}) : /* @__PURE__ */
|
|
50
|
-
htmlFor: `${
|
|
49
|
+
children: d?.label
|
|
50
|
+
}) : /* @__PURE__ */ l("label", {
|
|
51
|
+
htmlFor: `${d?.name ?? ""}-${t ? "sticky" : "mobile"}`,
|
|
51
52
|
className: "text-small mb-4 font-bold text-neutral-800",
|
|
52
|
-
children:
|
|
53
|
+
children: d?.label
|
|
53
54
|
}),
|
|
54
|
-
/* @__PURE__ */
|
|
55
|
+
/* @__PURE__ */ u("div", {
|
|
55
56
|
className: `flex gap-4 ${t ? "flex-row items-center" : "flex-col"}`,
|
|
56
57
|
children: [
|
|
57
|
-
|
|
58
|
-
|
|
58
|
+
y(t),
|
|
59
|
+
f?.isVisible && !t && /* @__PURE__ */ l("div", {
|
|
59
60
|
className: "flex justify-center",
|
|
60
|
-
children: /* @__PURE__ */
|
|
61
|
+
children: /* @__PURE__ */ l(e, {
|
|
61
62
|
containerClassName: "w-full text-small",
|
|
62
|
-
id: `${
|
|
63
|
-
label:
|
|
64
|
-
name: `${
|
|
65
|
-
placeholder:
|
|
66
|
-
value:
|
|
67
|
-
onInputChange:
|
|
63
|
+
id: `${f.id}-mobile`,
|
|
64
|
+
label: f.label,
|
|
65
|
+
name: `${f.name}-mobile`,
|
|
66
|
+
placeholder: f.placeholder,
|
|
67
|
+
value: f.value,
|
|
68
|
+
onInputChange: f.onChange
|
|
68
69
|
})
|
|
69
|
-
},
|
|
70
|
-
/* @__PURE__ */
|
|
70
|
+
}, f.name),
|
|
71
|
+
/* @__PURE__ */ l(n, {
|
|
71
72
|
variant: "primary-green",
|
|
72
73
|
className: `text-small ${t ? "w-fit text-nowrap" : "w-full"}`,
|
|
73
|
-
children:
|
|
74
|
+
children: p
|
|
74
75
|
})
|
|
75
76
|
]
|
|
76
77
|
}),
|
|
77
|
-
|
|
78
|
+
f?.isVisible && t && /* @__PURE__ */ l("div", {
|
|
78
79
|
className: "mt-4 flex w-full justify-center",
|
|
79
|
-
children: /* @__PURE__ */
|
|
80
|
+
children: /* @__PURE__ */ l(e, {
|
|
80
81
|
containerClassName: "w-full text-small",
|
|
81
|
-
id: `${
|
|
82
|
-
label:
|
|
83
|
-
name: `${
|
|
84
|
-
placeholder:
|
|
85
|
-
value:
|
|
86
|
-
onInputChange:
|
|
82
|
+
id: `${f.id}-mobile-sticky`,
|
|
83
|
+
label: f.label,
|
|
84
|
+
name: `${f.name}-mobile-sticky`,
|
|
85
|
+
placeholder: f.placeholder,
|
|
86
|
+
value: f.value,
|
|
87
|
+
onInputChange: f.onChange
|
|
87
88
|
})
|
|
88
|
-
},
|
|
89
|
+
}, f.name)
|
|
89
90
|
]
|
|
90
91
|
});
|
|
91
|
-
return /* @__PURE__ */
|
|
92
|
+
return /* @__PURE__ */ u(c, { children: [/* @__PURE__ */ l("section", {
|
|
92
93
|
className: "bg-neutral-25 pt-10 text-neutral-800 sm:hidden",
|
|
93
|
-
children: /* @__PURE__ */
|
|
94
|
-
ref:
|
|
94
|
+
children: /* @__PURE__ */ u("div", {
|
|
95
|
+
ref: v,
|
|
95
96
|
className: "relative flex flex-col rounded bg-white pt-8 shadow",
|
|
96
|
-
children: [/* @__PURE__ */
|
|
97
|
+
children: [/* @__PURE__ */ l("div", {
|
|
97
98
|
className: "px-6",
|
|
98
|
-
children:
|
|
99
|
-
}), /* @__PURE__ */
|
|
100
|
-
className:
|
|
101
|
-
children:
|
|
99
|
+
children: /* @__PURE__ */ l(i, { ...m })
|
|
100
|
+
}), /* @__PURE__ */ l("div", {
|
|
101
|
+
className: g ? "hidden" : "block",
|
|
102
|
+
children: b(!1)
|
|
102
103
|
})]
|
|
103
104
|
})
|
|
104
|
-
}),
|
|
105
|
+
}), g && /* @__PURE__ */ l("div", {
|
|
105
106
|
className: "fixed bottom-0 left-0 z-50 w-full sm:hidden",
|
|
106
|
-
children:
|
|
107
|
+
children: b(!0)
|
|
107
108
|
})] });
|
|
108
109
|
};
|
|
109
110
|
//#endregion
|
|
110
|
-
export {
|
|
111
|
+
export { d as PreformMobile };
|
|
@@ -36,7 +36,7 @@ export interface PreformOptionProps {
|
|
|
36
36
|
}
|
|
37
37
|
|
|
38
38
|
export interface PreformProps {
|
|
39
|
-
trustedBadge:
|
|
39
|
+
trustedBadge: TrustedBadgeProps;
|
|
40
40
|
cta: ReactNode;
|
|
41
41
|
radioFieldData?: RadioFieldData;
|
|
42
42
|
inputFieldData?: InputFieldData;
|
|
@@ -65,4 +65,8 @@ export interface TooltipsProps {
|
|
|
65
65
|
title: string;
|
|
66
66
|
content: string;
|
|
67
67
|
}
|
|
68
|
+
|
|
69
|
+
export interface TrustedBadgeProps {
|
|
70
|
+
children: ReactNode;
|
|
71
|
+
}
|
|
68
72
|
|
|
@@ -94,7 +94,7 @@ export type InputFieldData = {
|
|
|
94
94
|
};
|
|
95
95
|
|
|
96
96
|
export interface JumboDocsProps {
|
|
97
|
-
trustedBadge?:
|
|
97
|
+
trustedBadge?: TrustedBadgeProps;
|
|
98
98
|
imagePreview: ReactNode | null;
|
|
99
99
|
title: string;
|
|
100
100
|
freeDocTexts: string[];
|
|
@@ -124,7 +124,7 @@ export interface PreformOptionProps {
|
|
|
124
124
|
}
|
|
125
125
|
|
|
126
126
|
export interface PreformProps {
|
|
127
|
-
trustedBadge:
|
|
127
|
+
trustedBadge: TrustedBadgeProps;
|
|
128
128
|
cta: ReactNode;
|
|
129
129
|
radioFieldData?: RadioFieldData;
|
|
130
130
|
inputFieldData?: InputFieldData;
|
|
@@ -201,6 +201,10 @@ export interface TooltipsProps {
|
|
|
201
201
|
content: string;
|
|
202
202
|
}
|
|
203
203
|
|
|
204
|
+
export interface TrustedBadgeProps {
|
|
205
|
+
children: ReactNode;
|
|
206
|
+
}
|
|
207
|
+
|
|
204
208
|
export interface TryNowSectionProps {
|
|
205
209
|
title: string;
|
|
206
210
|
benefits: string[];
|
|
@@ -45,17 +45,14 @@ var a = ({ dataQa: a, label: o, id: s, name: c, required: l = !1, placeholder: u
|
|
|
45
45
|
}),
|
|
46
46
|
p && /* @__PURE__ */ r("p", {
|
|
47
47
|
id: `${s}-error-message`,
|
|
48
|
-
className: "text-small text-error-500 flex items-
|
|
49
|
-
children: [
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
" ",
|
|
57
|
-
m
|
|
58
|
-
]
|
|
48
|
+
className: "text-small text-error-500 flex items-start gap-1",
|
|
49
|
+
children: [/* @__PURE__ */ n(t, {
|
|
50
|
+
className: "shrink-0",
|
|
51
|
+
width: 20,
|
|
52
|
+
height: 20,
|
|
53
|
+
fill: "var(--color-error-500)",
|
|
54
|
+
"aria-hidden": "true"
|
|
55
|
+
}), m]
|
|
59
56
|
})
|
|
60
57
|
]
|
|
61
58
|
});
|
|
@@ -28,17 +28,14 @@ var i = ({ dataQa: i, label: a, id: o, name: s, required: c = !1, placeholder: l
|
|
|
28
28
|
}),
|
|
29
29
|
u && /* @__PURE__ */ n("p", {
|
|
30
30
|
id: `${o}-error-message`,
|
|
31
|
-
className: "text-small text-error-500 flex items-
|
|
32
|
-
children: [
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
" ",
|
|
40
|
-
d
|
|
41
|
-
]
|
|
31
|
+
className: "text-small text-error-500 flex items-start gap-1",
|
|
32
|
+
children: [/* @__PURE__ */ t(e, {
|
|
33
|
+
className: "shrink-0",
|
|
34
|
+
width: 20,
|
|
35
|
+
height: 20,
|
|
36
|
+
fill: "var(--color-error-500)",
|
|
37
|
+
"aria-hidden": "true"
|
|
38
|
+
}), d]
|
|
42
39
|
})
|
|
43
40
|
]
|
|
44
41
|
});
|
|
@@ -711,7 +711,7 @@ export declare interface JumboCardProps {
|
|
|
711
711
|
export declare const JumboDocs: FC<JumboDocsProps>;
|
|
712
712
|
|
|
713
713
|
export declare interface JumboDocsProps {
|
|
714
|
-
trustedBadge?:
|
|
714
|
+
trustedBadge?: TrustedBadgeProps;
|
|
715
715
|
imagePreview: ReactNode | null;
|
|
716
716
|
title: string;
|
|
717
717
|
freeDocTexts: string[];
|
|
@@ -791,6 +791,61 @@ export declare interface LawGeniusStepCardProps {
|
|
|
791
791
|
iconAlt?: string;
|
|
792
792
|
}
|
|
793
793
|
|
|
794
|
+
export declare const LeadGateError: FC<LeadGateErrorProps>;
|
|
795
|
+
|
|
796
|
+
export declare interface LeadGateErrorProps {
|
|
797
|
+
heading: string;
|
|
798
|
+
description: string;
|
|
799
|
+
ctaLabel: string;
|
|
800
|
+
onRetry?: () => void;
|
|
801
|
+
}
|
|
802
|
+
|
|
803
|
+
export declare const LeadGateModal: FC<LeadGateModalProps>;
|
|
804
|
+
|
|
805
|
+
export declare interface LeadGateModalErrors {
|
|
806
|
+
email?: boolean;
|
|
807
|
+
hasAcceptedTerms?: boolean;
|
|
808
|
+
}
|
|
809
|
+
|
|
810
|
+
export declare interface LeadGateModalPayload {
|
|
811
|
+
email: string;
|
|
812
|
+
hasAcceptedTerms: boolean;
|
|
813
|
+
hasAcceptedMarketing: boolean;
|
|
814
|
+
}
|
|
815
|
+
|
|
816
|
+
export declare interface LeadGateModalProps {
|
|
817
|
+
description: string;
|
|
818
|
+
emailLabel: string;
|
|
819
|
+
emailPlaceholder: string;
|
|
820
|
+
emailErrorMessage: string;
|
|
821
|
+
termsLabel: string;
|
|
822
|
+
marketingLabel: string;
|
|
823
|
+
ctaLabel: string;
|
|
824
|
+
payload: LeadGateModalPayload;
|
|
825
|
+
errors?: LeadGateModalErrors;
|
|
826
|
+
onPayloadChange: (payload: LeadGateModalPayload) => void;
|
|
827
|
+
onSubmit?: () => void;
|
|
828
|
+
}
|
|
829
|
+
|
|
830
|
+
export declare const LeadGateSuccess: FC<LeadGateSuccessProps>;
|
|
831
|
+
|
|
832
|
+
export declare const LeadGateSuccessFeatureItem: FC<LeadGateSuccessFeatureItemProps>;
|
|
833
|
+
|
|
834
|
+
export declare interface LeadGateSuccessFeatureItemProps {
|
|
835
|
+
icon?: ReactNode;
|
|
836
|
+
title: string;
|
|
837
|
+
description: string;
|
|
838
|
+
}
|
|
839
|
+
|
|
840
|
+
export declare interface LeadGateSuccessProps {
|
|
841
|
+
subtitle: string;
|
|
842
|
+
featureItems: LeadGateSuccessFeatureItemProps[];
|
|
843
|
+
ctaLabel: string;
|
|
844
|
+
footer: string;
|
|
845
|
+
illustration: ReactNode;
|
|
846
|
+
onCtaClick?: () => void;
|
|
847
|
+
}
|
|
848
|
+
|
|
794
849
|
export declare const LinkedinIcon: React_2.FC<React_2.SVGProps<SVGSVGElement>>;
|
|
795
850
|
|
|
796
851
|
export declare interface LinkedProductProps {
|
|
@@ -971,7 +1026,7 @@ export declare interface PreformOptionProps {
|
|
|
971
1026
|
}
|
|
972
1027
|
|
|
973
1028
|
export declare interface PreformProps {
|
|
974
|
-
trustedBadge:
|
|
1029
|
+
trustedBadge: TrustedBadgeProps;
|
|
975
1030
|
cta: ReactNode;
|
|
976
1031
|
radioFieldData?: RadioFieldData;
|
|
977
1032
|
inputFieldData?: InputFieldData;
|
package/dist/index.js
CHANGED
|
@@ -98,52 +98,56 @@ import { Tooltips as Ve } from "./components/Tooltips.js";
|
|
|
98
98
|
import { FreeDocumentModal as He } from "./components/FreeDocumentModal.js";
|
|
99
99
|
import { Article as Ue } from "./components/Article.js";
|
|
100
100
|
import { ContinueEditingBanner as We } from "./components/ContinueEditingBanner.js";
|
|
101
|
-
import {
|
|
102
|
-
import {
|
|
103
|
-
import {
|
|
104
|
-
import {
|
|
105
|
-
import {
|
|
106
|
-
import {
|
|
107
|
-
import {
|
|
108
|
-
import {
|
|
109
|
-
import {
|
|
110
|
-
import {
|
|
111
|
-
import {
|
|
112
|
-
import {
|
|
113
|
-
import {
|
|
114
|
-
import {
|
|
115
|
-
import {
|
|
116
|
-
import {
|
|
117
|
-
import {
|
|
118
|
-
import {
|
|
119
|
-
import {
|
|
120
|
-
import {
|
|
121
|
-
import {
|
|
122
|
-
import {
|
|
123
|
-
import {
|
|
124
|
-
import {
|
|
125
|
-
import {
|
|
126
|
-
import {
|
|
127
|
-
import {
|
|
128
|
-
import {
|
|
129
|
-
import {
|
|
130
|
-
import {
|
|
131
|
-
import {
|
|
132
|
-
import {
|
|
133
|
-
import {
|
|
134
|
-
import {
|
|
135
|
-
import {
|
|
136
|
-
import {
|
|
137
|
-
import {
|
|
138
|
-
import {
|
|
139
|
-
import {
|
|
140
|
-
import {
|
|
141
|
-
import {
|
|
142
|
-
import {
|
|
143
|
-
import {
|
|
144
|
-
import {
|
|
145
|
-
import {
|
|
146
|
-
import {
|
|
147
|
-
import {
|
|
148
|
-
import {
|
|
149
|
-
|
|
101
|
+
import { LeadGateError as Ge } from "./components/LeadGateError.js";
|
|
102
|
+
import { LeadGateModal as Ke } from "./components/LeadGateModal.js";
|
|
103
|
+
import { LeadGateSuccessFeatureItem as qe } from "./components/LeadGateSuccessFeatureItem.js";
|
|
104
|
+
import { LeadGateSuccess as Je } from "./components/LeadGateSuccess.js";
|
|
105
|
+
import { BlogSection as Ye } from "./components/BlogSection.js";
|
|
106
|
+
import { AsideNavMenu as Xe } from "./components/AsideNavMenu.js";
|
|
107
|
+
import { BenefitsBar as Ze } from "./components/BenefitsBar.js";
|
|
108
|
+
import { CategoriesSection as Qe } from "./components/CategoriesSection.js";
|
|
109
|
+
import { ContactBanner as $e } from "./components/ContactBanner.js";
|
|
110
|
+
import { FaqSection as et } from "./components/FaqSection.js";
|
|
111
|
+
import { FaqTeaserSection as tt } from "./components/FaqTeaserSection.js";
|
|
112
|
+
import { Footer as nt } from "./components/Footer.js";
|
|
113
|
+
import { MobileMenu as rt } from "./components/MobileMenu.js";
|
|
114
|
+
import { Header as it } from "./components/Header.js";
|
|
115
|
+
import { HeroSection as at } from "./components/HeroSection.js";
|
|
116
|
+
import { Hero2Section as ot } from "./components/Hero2Section.js";
|
|
117
|
+
import { HowItWorksSection as st } from "./components/HowItWorksSection.js";
|
|
118
|
+
import { Jumbotron as ct } from "./components/Jumbotron.js";
|
|
119
|
+
import { Jumbotron2 as lt } from "./components/Jumbotron2.js";
|
|
120
|
+
import { Jumbotron3 as ut } from "./components/Jumbotron3.js";
|
|
121
|
+
import { MoreTemplatesSection as dt } from "./components/MoreTemplatesSection.js";
|
|
122
|
+
import { PricingOfferingsSection as ft } from "./components/PricingOfferingsSection.js";
|
|
123
|
+
import { PricingPlansSection as pt } from "./components/PricingPlansSection.js";
|
|
124
|
+
import { PricingSupportTeaserSection as mt } from "./components/PricingSupportTeaserSection.js";
|
|
125
|
+
import { Preform as ht } from "./components/Preform.js";
|
|
126
|
+
import { PreviewSection as gt } from "./components/PreviewSection.js";
|
|
127
|
+
import { ProcessSection as _t } from "./components/ProcessSection.js";
|
|
128
|
+
import { ProductInfo as vt } from "./components/ProductInfo.js";
|
|
129
|
+
import { RatafiaSection as yt } from "./components/RatafiaSection.js";
|
|
130
|
+
import { TrustSection as bt } from "./components/TrustSection.js";
|
|
131
|
+
import { TryNowSection as xt } from "./components/TryNowSection.js";
|
|
132
|
+
import { IntroSection as St } from "./components/IntroSection.js";
|
|
133
|
+
import { MissionSection as Ct } from "./components/MissionSection.js";
|
|
134
|
+
import { ValuesSection as wt } from "./components/ValuesSection.js";
|
|
135
|
+
import { Storyline as Tt } from "./components/Storyline.js";
|
|
136
|
+
import { WeHelpSection as Et } from "./components/WeHelpSection.js";
|
|
137
|
+
import { GuidelinesSection as Dt } from "./components/GuidelinesSection.js";
|
|
138
|
+
import { ExpertsSection as Ot } from "./components/ExpertsSection.js";
|
|
139
|
+
import { FastAndSimpleSection as kt } from "./components/FastAndSimpleSection.js";
|
|
140
|
+
import { FeaturesSection as At } from "./components/FeaturesSection.js";
|
|
141
|
+
import { BannerTagSection as jt } from "./components/BannerTagSection.js";
|
|
142
|
+
import { PartnersSection as Mt } from "./components/PartnersSection.js";
|
|
143
|
+
import { CtaFeatureTag as Nt, CtaSample as Pt, CtaSection as Ft } from "./components/CtaSection.js";
|
|
144
|
+
import { ContactUsSection as It } from "./components/ContactUsSection.js";
|
|
145
|
+
import { UnsubscribeSection as Lt } from "./components/UnsubscribeSection.js";
|
|
146
|
+
import { JumboCard as Rt } from "./components/JumboCard.js";
|
|
147
|
+
import { DocumentCategories as zt } from "./components/DocumentCategories.js";
|
|
148
|
+
import { DocumentSection as Bt } from "./components/DocumentSection.js";
|
|
149
|
+
import { ContactFormSection as Vt } from "./components/ContactFormSection.js";
|
|
150
|
+
import { ContactMethodsSection as Ht } from "./components/ContactMethodsSection.js";
|
|
151
|
+
import { JumboDocs as Ut } from "./components/JumboDocs.js";
|
|
152
|
+
import { TrustPilotSection as Wt } from "./components/TrustPilotSection.js";
|
|
153
|
+
export { i as AddIcon, Re as AlternativeSubtypeDocument, Ue as Article, Xe as AsideNavMenu, e as Badge, jt as BannerTagSection, Ze as BenefitsBar, Ye as BlogSection, Q as Breadcrumb, y as BusinessIcon, ee as Button, B as CaFlagIcon, Qe as CategoriesSection, X as CheckIcon, ce as Checkbox, c as ChevronDownIcon, l as ChevronRightIcon, J as ClearIcon, N as CloseIcon, D as CommunicationIcon, $e as ContactBanner, Vt as ContactFormSection, Le as ContactMethodCard, Ht as ContactMethodsSection, It as ContactUsSection, he as ContentItem, We as ContinueEditingBanner, ge as CookiesBar, Nt as CtaFeatureTag, Pt as CtaSample, Ft as CtaSection, H as DeFlagIcon, ze as DefaultSubtypeDocument, O as DocEditFillIcon, I as DocOutlineIcon, zt as DocumentCategories, Ie as DocumentItem, Be as DocumentReviewUploadCard, Bt as DocumentSection, T as DoneCircleIcon, q as DoneIcon, x as EmploymentIcon, _ as EstatePlanningIcon, Ot as ExpertsSection, t as FacebookIcon, b as FamilyIcon, ve as FaqItem, _e as FaqItemWrapper, et as FaqSection, tt as FaqTeaserSection, kt as FastAndSimpleSection, At as FeaturesSection, L as FillFormsIcon, h as FinanceIcon, nt as Footer, ye as FooterNav, He as FreeDocumentModal, V as GbFlagIcon, Dt as GuidelinesSection, M as HamburgerIcon, it as Header, E as HelpGuideIcon, ot as Hero2Section, be as HeroImageShell, at as HeroSection, te as HighlightedText, F as HistoryIcon, st as HowItWorksSection, pe as ImageWithPreview, u as InfoIcon, ae as Input, s as InstagramIcon, St as IntroSection, ne as Item, Rt as JumboCard, Ut as JumboDocs, ct as Jumbotron, lt as Jumbotron2, ut as Jumbotron3, xe as LanguageSelector, Se as LawGeniusImageShell, Ce as LawGeniusStepCard, Ge as LeadGateError, Ke as LeadGateModal, Je as LeadGateSuccess, qe as LeadGateSuccessFeatureItem, le as LinkWrapper, me as LinkedProducts, o as LinkedinIcon, P as LocationIcon, j as MailFillIcon, ie as Markdown, Ct as MissionSection, rt as MobileMenu, ue as Modal, dt as MoreTemplatesSection, we as NavMenu, re as NavMenuItem, Mt as PartnersSection, v as PersonalIcon, fe as PhoneButton, r as PhoneIcon, k as PhoneTalkIcon, A as PlusIcon, ht as Preform, Ee as PreformOption, De as PreviewDownload, gt as PreviewSection, ft as PricingOfferingsSection, Te as PricingPlanCard, pt as PricingPlansSection, mt as PricingSupportTeaserSection, R as PrintIcon, C as PrivateIcon, _t as ProcessSection, vt as ProductInfo, G as QuestionIcon, Y as QuestionOutlineIcon, yt as RatafiaSection, g as RealStateIcon, Oe as ResourcesImageShell, m as SaveIcon, U as ScalatorIcon, ke as SearchBar, d as SearchIcon, Ae as SectionHeading, Z as SecurityIcon, oe as Select, K as SinglePhoneIcon, W as SparkIcon, S as StarsIcon, je as StepImageShell, Tt as Storyline, Ne as TableOfContents, Me as TableOfContentsWrapper, se as Textarea, n as TikTokIcon, z as TimeIcon, de as Toast, Ve as Tooltips, Wt as TrustPilotSection, bt as TrustSection, Pe as TrustedBadge, p as TrustedIcon, xt as TryNowSection, Fe as TwoColumnSection, Lt as UnsubscribeSection, f as UsFlagIcon, wt as ValuesSection, w as VerifiedIcon, Et as WeHelpSection, a as ZoomIcon, $ as getButtonClasses };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@npm_leadtech/legal-contracts-ui",
|
|
3
|
-
"version": "0.176.
|
|
3
|
+
"version": "0.176.4",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -354,6 +354,22 @@
|
|
|
354
354
|
"import": "./dist/components/LawGeniusStepCard.js",
|
|
355
355
|
"types": "./dist/components/LawGeniusStepCard.d.ts"
|
|
356
356
|
},
|
|
357
|
+
"./components/LeadGateError": {
|
|
358
|
+
"import": "./dist/components/LeadGateError.js",
|
|
359
|
+
"types": "./dist/components/LeadGateError.d.ts"
|
|
360
|
+
},
|
|
361
|
+
"./components/LeadGateModal": {
|
|
362
|
+
"import": "./dist/components/LeadGateModal.js",
|
|
363
|
+
"types": "./dist/components/LeadGateModal.d.ts"
|
|
364
|
+
},
|
|
365
|
+
"./components/LeadGateSuccess": {
|
|
366
|
+
"import": "./dist/components/LeadGateSuccess.js",
|
|
367
|
+
"types": "./dist/components/LeadGateSuccess.d.ts"
|
|
368
|
+
},
|
|
369
|
+
"./components/LeadGateSuccessFeatureItem": {
|
|
370
|
+
"import": "./dist/components/LeadGateSuccessFeatureItem.js",
|
|
371
|
+
"types": "./dist/components/LeadGateSuccessFeatureItem.d.ts"
|
|
372
|
+
},
|
|
357
373
|
"./components/LinkedProducts": {
|
|
358
374
|
"import": "./dist/components/LinkedProducts.js",
|
|
359
375
|
"types": "./dist/components/LinkedProducts.d.ts"
|
|
@@ -701,6 +717,27 @@
|
|
|
701
717
|
"bugs": {
|
|
702
718
|
"url": "https://bitbucket.org/grupoblidoo/legal-contracts-ui/issues"
|
|
703
719
|
},
|
|
720
|
+
"scripts": {
|
|
721
|
+
"dev": "vite",
|
|
722
|
+
"build": "tsc --project tsconfig.build.json && vite build && cp lib/globals-core.css dist/globals.css",
|
|
723
|
+
"sonar:scan": "bash scripts/sonar.sh",
|
|
724
|
+
"sonar": "pnpm test && pnpm sonar:scan",
|
|
725
|
+
"chromatic": "npx chromatic --project-token=chpt_f2cdc115a03f4c9",
|
|
726
|
+
"yalc-push": "pnpm build && yalc push",
|
|
727
|
+
"format": "prettier --write .",
|
|
728
|
+
"prettier": "prettier --check .",
|
|
729
|
+
"eslint": "eslint . --quiet",
|
|
730
|
+
"test": "vitest run --coverage",
|
|
731
|
+
"test:watch": "vitest --coverage",
|
|
732
|
+
"storybook": "storybook dev -p 6006",
|
|
733
|
+
"build-storybook": "storybook build",
|
|
734
|
+
"reinstall-force": "rm -Rf node_modules && pnpm install",
|
|
735
|
+
"prepare-upgrade": "pnpm reinstall-force && pnpm build && pnpm chromatic && git add . && git commit -m \"$MSG\" --allow-empty && npm config set tag-version-prefix ''",
|
|
736
|
+
"upgrade-patch": "pnpm prepare-upgrade && npm version patch -m \"Update patch version number\" && git push && git push --tags",
|
|
737
|
+
"upgrade-minor": "pnpm prepare-upgrade && npm version minor -m \"Update minor version number\" && git push && git push --tags",
|
|
738
|
+
"upgrade-major": "pnpm prepare-upgrade && npm version major -m \"Update major version number\" && git push && git push --tags",
|
|
739
|
+
"prepare": "husky"
|
|
740
|
+
},
|
|
704
741
|
"dependencies": {
|
|
705
742
|
"clsx": "^2.1.1",
|
|
706
743
|
"react-markdown": "^10.1.0",
|
|
@@ -772,30 +809,17 @@
|
|
|
772
809
|
"@ast-grep/napi-linux-x64-gnu": "^0.44.1",
|
|
773
810
|
"@rollup/rollup-linux-x64-gnu": "^4.62.2"
|
|
774
811
|
},
|
|
812
|
+
"pnpm": {
|
|
813
|
+
"onlyBuiltDependencies": [
|
|
814
|
+
"esbuild",
|
|
815
|
+
"unrs-resolver"
|
|
816
|
+
]
|
|
817
|
+
},
|
|
775
818
|
"lint-staged": {
|
|
776
819
|
"**/*": [
|
|
777
820
|
"eslint --fix",
|
|
778
821
|
"prettier --write --ignore-unknown"
|
|
779
822
|
]
|
|
780
823
|
},
|
|
781
|
-
"
|
|
782
|
-
|
|
783
|
-
"build": "tsc --project tsconfig.build.json && vite build && cp lib/globals-core.css dist/globals.css",
|
|
784
|
-
"sonar:scan": "bash scripts/sonar.sh",
|
|
785
|
-
"sonar": "pnpm test && pnpm sonar:scan",
|
|
786
|
-
"chromatic": "npx chromatic --project-token=chpt_f2cdc115a03f4c9",
|
|
787
|
-
"yalc-push": "pnpm build && yalc push",
|
|
788
|
-
"format": "prettier --write .",
|
|
789
|
-
"prettier": "prettier --check .",
|
|
790
|
-
"eslint": "eslint . --quiet",
|
|
791
|
-
"test": "vitest run --coverage --project unit",
|
|
792
|
-
"test:watch": "vitest --coverage --project unit",
|
|
793
|
-
"storybook": "storybook dev -p 6006",
|
|
794
|
-
"build-storybook": "storybook build",
|
|
795
|
-
"reinstall-force": "rm -Rf node_modules && pnpm install",
|
|
796
|
-
"prepare-upgrade": "pnpm reinstall-force && pnpm build && pnpm chromatic && git add . && git commit -m \"$MSG\" --allow-empty && npm config set tag-version-prefix ''",
|
|
797
|
-
"upgrade-patch": "pnpm prepare-upgrade && npm version patch -m \"Update patch version number\" && git push && git push --tags",
|
|
798
|
-
"upgrade-minor": "pnpm prepare-upgrade && npm version minor -m \"Update minor version number\" && git push && git push --tags",
|
|
799
|
-
"upgrade-major": "pnpm prepare-upgrade && npm version major -m \"Update major version number\" && git push && git push --tags"
|
|
800
|
-
}
|
|
801
|
-
}
|
|
824
|
+
"packageManager": "pnpm@10.28.0+sha512.05df71d1421f21399e053fde567cea34d446fa02c76571441bfc1c7956e98e363088982d940465fd34480d4d90a0668bc12362f8aa88000a64e83d0b0e47be48"
|
|
825
|
+
}
|