@npm_leadtech/legal-contracts-ui 0.181.2 → 0.182.1
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/LeadGateErrorModal.d.ts +4 -0
- package/dist/components/LeadGateErrorModal.js +67 -30
- package/dist/components/LeadGateModal.d.ts +4 -0
- package/dist/components/LeadGateModal.js +122 -84
- package/dist/components/LeadGateSuccessFeatureItem.d.ts +6 -2
- package/dist/components/LeadGateSuccessFeatureItem.js +14 -7
- package/dist/components/LeadGateSuccessModal.d.ts +12 -4
- package/dist/components/LeadGateSuccessModal.js +90 -39
- package/dist/components/index.d.ts +19 -2
- package/package.json +1 -1
|
@@ -3,6 +3,10 @@ import { FC } from 'react';
|
|
|
3
3
|
export declare const LeadGateErrorModal: FC<LeadGateErrorModalProps>;
|
|
4
4
|
|
|
5
5
|
export declare interface LeadGateErrorModalProps {
|
|
6
|
+
isOpen: boolean;
|
|
7
|
+
setIsOpen: (open: boolean) => void;
|
|
8
|
+
title: string;
|
|
9
|
+
closeLeadGateLabel: string;
|
|
6
10
|
heading: string;
|
|
7
11
|
description: string;
|
|
8
12
|
ctaLabel: string;
|
|
@@ -1,41 +1,78 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
"use client";
|
|
1
3
|
import { ClearIcon as e } from "./ClearIcon.js";
|
|
2
4
|
import { Button as t } from "./Button.js";
|
|
3
5
|
import { Markdown as n } from "./Markdown.js";
|
|
4
|
-
import {
|
|
6
|
+
import { Modal as r } from "./Modal.js";
|
|
7
|
+
import { jsx as i, jsxs as a } from "react/jsx-runtime";
|
|
5
8
|
//#region lib/components/molecules/LeadGateErrorModal.tsx
|
|
6
|
-
var
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
9
|
+
var o = "lead-gate-modal-title", s = ({ isOpen: s, setIsOpen: c, title: l, closeLeadGateLabel: u, heading: d, description: f, ctaLabel: p, onRetry: m }) => /* @__PURE__ */ i(r, {
|
|
10
|
+
isOpen: s,
|
|
11
|
+
setIsOpen: c,
|
|
12
|
+
showClose: !1,
|
|
13
|
+
overlayVariant: "grey",
|
|
14
|
+
children: /* @__PURE__ */ a("div", {
|
|
15
|
+
className: "shadow-small flex w-[338px] max-w-[calc(100vw-3rem)] flex-col rounded-sm bg-white p-6 sm:w-96",
|
|
16
|
+
children: [/* @__PURE__ */ a("div", {
|
|
17
|
+
className: "flex items-center gap-2",
|
|
18
|
+
children: [/* @__PURE__ */ i("div", {
|
|
19
|
+
className: "flex min-w-0 flex-1 items-center gap-1",
|
|
20
|
+
children: /* @__PURE__ */ i("h2", {
|
|
21
|
+
id: o,
|
|
22
|
+
className: "text-big min-w-0 flex-1 font-bold break-words text-neutral-800",
|
|
23
|
+
children: l
|
|
24
|
+
})
|
|
25
|
+
}), /* @__PURE__ */ i(t, {
|
|
26
|
+
type: "button",
|
|
27
|
+
variant: "tertiary-icon",
|
|
28
|
+
className: "shrink-0 p-0!",
|
|
29
|
+
dataQa: "lead_gate_close",
|
|
30
|
+
"aria-label": u,
|
|
31
|
+
onClick: () => {
|
|
32
|
+
c(!1);
|
|
33
|
+
},
|
|
34
|
+
children: /* @__PURE__ */ i(e, {
|
|
35
|
+
width: 24,
|
|
36
|
+
height: 24,
|
|
37
|
+
fill: "var(--color-neutral-800)",
|
|
18
38
|
"aria-hidden": "true"
|
|
19
39
|
})
|
|
20
|
-
})
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
className: "
|
|
27
|
-
|
|
40
|
+
})]
|
|
41
|
+
}), /* @__PURE__ */ a("div", {
|
|
42
|
+
className: "mt-4 flex w-full flex-col",
|
|
43
|
+
children: [/* @__PURE__ */ i("span", { className: "h-px w-full bg-neutral-200" }), /* @__PURE__ */ a("div", {
|
|
44
|
+
className: "mt-10 flex w-full flex-col gap-10",
|
|
45
|
+
children: [/* @__PURE__ */ a("div", {
|
|
46
|
+
className: "mx-auto flex w-full max-w-80 flex-col items-center gap-4",
|
|
47
|
+
children: [/* @__PURE__ */ i("div", {
|
|
48
|
+
className: "bg-error-20 flex size-[74px] items-center justify-center rounded-full",
|
|
49
|
+
children: /* @__PURE__ */ i(e, {
|
|
50
|
+
width: 48,
|
|
51
|
+
height: 48,
|
|
52
|
+
fill: "var(--color-error-500)",
|
|
53
|
+
"aria-hidden": "true"
|
|
54
|
+
})
|
|
55
|
+
}), /* @__PURE__ */ a("div", {
|
|
56
|
+
className: "flex w-full flex-col gap-2 text-center",
|
|
57
|
+
children: [/* @__PURE__ */ i("p", {
|
|
58
|
+
className: "text-big font-bold text-neutral-800",
|
|
59
|
+
children: d
|
|
60
|
+
}), /* @__PURE__ */ i(n, {
|
|
61
|
+
className: "text-medium w-auto! text-neutral-800 [&_p]:mb-0",
|
|
62
|
+
content: f
|
|
63
|
+
})]
|
|
64
|
+
})]
|
|
65
|
+
}), /* @__PURE__ */ i(t, {
|
|
66
|
+
type: "button",
|
|
67
|
+
variant: "primary-green",
|
|
68
|
+
className: "w-full",
|
|
69
|
+
dataQa: "lead_gate_retry",
|
|
70
|
+
onClick: m,
|
|
71
|
+
children: p
|
|
28
72
|
})]
|
|
29
73
|
})]
|
|
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
74
|
})]
|
|
38
|
-
})
|
|
75
|
+
})
|
|
39
76
|
});
|
|
40
77
|
//#endregion
|
|
41
|
-
export {
|
|
78
|
+
export { s as LeadGateErrorModal };
|
|
@@ -14,6 +14,10 @@ export declare interface LeadGateModalPayload {
|
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
export declare interface LeadGateModalProps {
|
|
17
|
+
isOpen: boolean;
|
|
18
|
+
setIsOpen: (open: boolean) => void;
|
|
19
|
+
title: string;
|
|
20
|
+
closeLeadGateLabel: string;
|
|
17
21
|
description: string;
|
|
18
22
|
emailLabel: string;
|
|
19
23
|
emailPlaceholder: string;
|
|
@@ -1,90 +1,128 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
1
|
+
"use client";
|
|
2
|
+
"use client";
|
|
3
|
+
import { ClearIcon as e } from "./ClearIcon.js";
|
|
4
|
+
import { Button as t } from "./Button.js";
|
|
5
|
+
import { Markdown as n } from "./Markdown.js";
|
|
6
|
+
import { Input as r } from "./Input.js";
|
|
7
|
+
import { Checkbox as i } from "./Checkbox.js";
|
|
8
|
+
import { Modal as a } from "./Modal.js";
|
|
9
|
+
import { jsx as o, jsxs as s } from "react/jsx-runtime";
|
|
6
10
|
//#region lib/components/molecules/LeadGateModal.tsx
|
|
7
|
-
var
|
|
11
|
+
var c = "lead-gate-modal-title", l = (e) => {
|
|
8
12
|
!(e.target instanceof HTMLElement) || !e.target.closest("a") || e.stopPropagation();
|
|
9
|
-
},
|
|
10
|
-
let
|
|
11
|
-
return /* @__PURE__ */ a
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
/* @__PURE__ */
|
|
21
|
-
className: "
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
id: "lead-gate-email",
|
|
26
|
-
name: "email",
|
|
27
|
-
type: "email",
|
|
28
|
-
label: c,
|
|
29
|
-
placeholder: l,
|
|
30
|
-
dataQa: "lead_gate_email",
|
|
31
|
-
value: m.email,
|
|
32
|
-
error: v,
|
|
33
|
-
errorMessage: u,
|
|
34
|
-
onInputChange: (e) => {
|
|
35
|
-
g({
|
|
36
|
-
...m,
|
|
37
|
-
email: e
|
|
38
|
-
});
|
|
39
|
-
}
|
|
40
|
-
}),
|
|
41
|
-
/* @__PURE__ */ a("div", {
|
|
42
|
-
className: "flex flex-col gap-4",
|
|
43
|
-
children: [/* @__PURE__ */ i(r, {
|
|
44
|
-
id: "lead-gate-terms",
|
|
45
|
-
name: "hasAcceptedTerms",
|
|
46
|
-
dataQa: "lead_gate_terms",
|
|
47
|
-
checked: m.hasAcceptedTerms,
|
|
48
|
-
error: h.hasAcceptedTerms,
|
|
49
|
-
onChange: (e) => {
|
|
50
|
-
g({
|
|
51
|
-
...m,
|
|
52
|
-
hasAcceptedTerms: e.currentTarget.checked
|
|
53
|
-
});
|
|
54
|
-
},
|
|
55
|
-
children: /* @__PURE__ */ i("span", {
|
|
56
|
-
className: "min-w-0",
|
|
57
|
-
onClick: o,
|
|
58
|
-
onKeyDown: o,
|
|
59
|
-
children: /* @__PURE__ */ i(t, {
|
|
60
|
-
className: "[&_p]:mb-0",
|
|
61
|
-
content: d
|
|
62
|
-
})
|
|
63
|
-
})
|
|
64
|
-
}), /* @__PURE__ */ i(r, {
|
|
65
|
-
id: "lead-gate-marketing",
|
|
66
|
-
name: "hasAcceptedMarketing",
|
|
67
|
-
dataQa: "lead_gate_marketing",
|
|
68
|
-
checked: m.hasAcceptedMarketing,
|
|
69
|
-
onChange: (e) => {
|
|
70
|
-
g({
|
|
71
|
-
...m,
|
|
72
|
-
hasAcceptedMarketing: e.currentTarget.checked
|
|
73
|
-
});
|
|
74
|
-
},
|
|
13
|
+
}, u = ({ isOpen: u, setIsOpen: d, title: f, closeLeadGateLabel: p, description: m, emailLabel: h, emailPlaceholder: g, emailErrorMessage: _, termsLabel: v, marketingLabel: y, ctaLabel: b, payload: x, errors: S = {}, onPayloadChange: C, onSubmit: w }) => {
|
|
14
|
+
let T = !!(S.email || S.hasAcceptedTerms);
|
|
15
|
+
return /* @__PURE__ */ o(a, {
|
|
16
|
+
isOpen: u,
|
|
17
|
+
setIsOpen: d,
|
|
18
|
+
showClose: !1,
|
|
19
|
+
overlayVariant: "grey",
|
|
20
|
+
children: /* @__PURE__ */ s("div", {
|
|
21
|
+
className: "shadow-small flex w-[338px] max-w-[calc(100vw-3rem)] flex-col rounded-sm bg-white p-6 sm:w-96",
|
|
22
|
+
children: [/* @__PURE__ */ s("div", {
|
|
23
|
+
className: "flex items-center gap-2",
|
|
24
|
+
children: [/* @__PURE__ */ o("div", {
|
|
25
|
+
className: "flex min-w-0 flex-1 items-center gap-1",
|
|
26
|
+
children: /* @__PURE__ */ o("h2", {
|
|
27
|
+
id: c,
|
|
28
|
+
className: "text-big min-w-0 flex-1 font-bold break-words text-neutral-800",
|
|
75
29
|
children: f
|
|
76
|
-
})
|
|
77
|
-
}),
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
30
|
+
})
|
|
31
|
+
}), /* @__PURE__ */ o(t, {
|
|
32
|
+
type: "button",
|
|
33
|
+
variant: "tertiary-icon",
|
|
34
|
+
className: "shrink-0 p-0!",
|
|
35
|
+
dataQa: "lead_gate_close",
|
|
36
|
+
"aria-label": p,
|
|
37
|
+
onClick: () => {
|
|
38
|
+
d(!1);
|
|
39
|
+
},
|
|
40
|
+
children: /* @__PURE__ */ o(e, {
|
|
41
|
+
width: 24,
|
|
42
|
+
height: 24,
|
|
43
|
+
fill: "var(--color-neutral-800)",
|
|
44
|
+
"aria-hidden": "true"
|
|
45
|
+
})
|
|
46
|
+
})]
|
|
47
|
+
}), /* @__PURE__ */ s("div", {
|
|
48
|
+
className: "mt-4 flex w-full flex-col gap-4",
|
|
49
|
+
children: [/* @__PURE__ */ o("span", { className: "h-px w-full bg-neutral-200" }), /* @__PURE__ */ s("form", {
|
|
50
|
+
className: "flex w-full flex-col gap-4",
|
|
51
|
+
noValidate: !0,
|
|
52
|
+
onSubmit: (e) => {
|
|
53
|
+
e.preventDefault(), w?.();
|
|
54
|
+
},
|
|
55
|
+
children: [
|
|
56
|
+
/* @__PURE__ */ o(n, {
|
|
57
|
+
className: "text-medium w-auto! text-center text-neutral-800 [&_p]:mb-0",
|
|
58
|
+
content: m
|
|
59
|
+
}),
|
|
60
|
+
/* @__PURE__ */ o(r, {
|
|
61
|
+
id: "lead-gate-email",
|
|
62
|
+
name: "email",
|
|
63
|
+
type: "email",
|
|
64
|
+
label: h,
|
|
65
|
+
placeholder: g,
|
|
66
|
+
dataQa: "lead_gate_email",
|
|
67
|
+
value: x.email,
|
|
68
|
+
error: T,
|
|
69
|
+
errorMessage: _,
|
|
70
|
+
onInputChange: (e) => {
|
|
71
|
+
C({
|
|
72
|
+
...x,
|
|
73
|
+
email: e
|
|
74
|
+
});
|
|
75
|
+
}
|
|
76
|
+
}),
|
|
77
|
+
/* @__PURE__ */ s("div", {
|
|
78
|
+
className: "flex flex-col gap-4",
|
|
79
|
+
children: [/* @__PURE__ */ o(i, {
|
|
80
|
+
id: "lead-gate-terms",
|
|
81
|
+
name: "hasAcceptedTerms",
|
|
82
|
+
dataQa: "lead_gate_terms",
|
|
83
|
+
checked: x.hasAcceptedTerms,
|
|
84
|
+
error: S.hasAcceptedTerms,
|
|
85
|
+
onChange: (e) => {
|
|
86
|
+
C({
|
|
87
|
+
...x,
|
|
88
|
+
hasAcceptedTerms: e.currentTarget.checked
|
|
89
|
+
});
|
|
90
|
+
},
|
|
91
|
+
children: /* @__PURE__ */ o("span", {
|
|
92
|
+
className: "min-w-0",
|
|
93
|
+
onClick: l,
|
|
94
|
+
onKeyDown: l,
|
|
95
|
+
children: /* @__PURE__ */ o(n, {
|
|
96
|
+
className: "[&_p]:mb-0",
|
|
97
|
+
content: v
|
|
98
|
+
})
|
|
99
|
+
})
|
|
100
|
+
}), /* @__PURE__ */ o(i, {
|
|
101
|
+
id: "lead-gate-marketing",
|
|
102
|
+
name: "hasAcceptedMarketing",
|
|
103
|
+
dataQa: "lead_gate_marketing",
|
|
104
|
+
checked: x.hasAcceptedMarketing,
|
|
105
|
+
onChange: (e) => {
|
|
106
|
+
C({
|
|
107
|
+
...x,
|
|
108
|
+
hasAcceptedMarketing: e.currentTarget.checked
|
|
109
|
+
});
|
|
110
|
+
},
|
|
111
|
+
children: y
|
|
112
|
+
})]
|
|
113
|
+
}),
|
|
114
|
+
/* @__PURE__ */ o(t, {
|
|
115
|
+
type: "submit",
|
|
116
|
+
variant: "primary-green",
|
|
117
|
+
className: "w-full",
|
|
118
|
+
dataQa: "lead_gate_download",
|
|
119
|
+
children: b
|
|
120
|
+
})
|
|
121
|
+
]
|
|
122
|
+
})]
|
|
123
|
+
})]
|
|
124
|
+
})
|
|
87
125
|
});
|
|
88
126
|
};
|
|
89
127
|
//#endregion
|
|
90
|
-
export {
|
|
128
|
+
export { u as LeadGateModal };
|
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
|
-
|
|
2
|
+
|
|
3
|
+
export declare type LeadGateMediaContent = {
|
|
4
|
+
url: string;
|
|
5
|
+
alternativeText?: string | null;
|
|
6
|
+
};
|
|
3
7
|
|
|
4
8
|
export declare const LeadGateSuccessFeatureItem: FC<LeadGateSuccessFeatureItemProps>;
|
|
5
9
|
|
|
6
10
|
export declare interface LeadGateSuccessFeatureItemProps {
|
|
7
|
-
icon?: ReactNode;
|
|
8
11
|
title: string;
|
|
9
12
|
description: string;
|
|
13
|
+
icon?: LeadGateMediaContent | null;
|
|
10
14
|
}
|
|
11
15
|
|
|
@@ -1,20 +1,27 @@
|
|
|
1
1
|
import { jsx as e, jsxs as t } from "react/jsx-runtime";
|
|
2
2
|
//#region lib/components/molecules/LeadGateSuccessFeatureItem.tsx
|
|
3
|
-
var n = ({
|
|
3
|
+
var n = ({ url: t }) => /* @__PURE__ */ e("div", {
|
|
4
|
+
className: "bg-primary-500 h-6 w-6",
|
|
5
|
+
style: {
|
|
6
|
+
WebkitMask: `url(${t}) no-repeat center / contain`,
|
|
7
|
+
mask: `url(${t}) no-repeat center / contain`
|
|
8
|
+
},
|
|
9
|
+
"aria-hidden": "true"
|
|
10
|
+
}), r = ({ icon: r, title: i, description: a }) => /* @__PURE__ */ t("li", {
|
|
4
11
|
className: "flex items-start gap-4",
|
|
5
|
-
children: [
|
|
12
|
+
children: [r?.url ? /* @__PURE__ */ e("span", {
|
|
6
13
|
className: "mt-0.5 shrink-0",
|
|
7
|
-
children: n
|
|
8
|
-
}), /* @__PURE__ */ t("div", {
|
|
14
|
+
children: /* @__PURE__ */ e(n, { url: r.url })
|
|
15
|
+
}) : null, /* @__PURE__ */ t("div", {
|
|
9
16
|
className: "flex min-w-0 flex-1 flex-col gap-2",
|
|
10
17
|
children: [/* @__PURE__ */ e("p", {
|
|
11
18
|
className: "text-medium font-bold text-neutral-800",
|
|
12
|
-
children:
|
|
19
|
+
children: i
|
|
13
20
|
}), /* @__PURE__ */ e("p", {
|
|
14
21
|
className: "text-small text-neutral-600",
|
|
15
|
-
children:
|
|
22
|
+
children: a
|
|
16
23
|
})]
|
|
17
24
|
})]
|
|
18
25
|
});
|
|
19
26
|
//#endregion
|
|
20
|
-
export {
|
|
27
|
+
export { r as LeadGateSuccessFeatureItem };
|
|
@@ -1,20 +1,28 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
|
-
import { ReactNode } from 'react';
|
|
3
2
|
|
|
4
|
-
export
|
|
5
|
-
|
|
3
|
+
export declare type LeadGateMediaContent = {
|
|
4
|
+
url: string;
|
|
5
|
+
alternativeText?: string | null;
|
|
6
|
+
};
|
|
7
|
+
|
|
8
|
+
export declare interface LeadGateSuccessFeatureItemProps {
|
|
6
9
|
title: string;
|
|
7
10
|
description: string;
|
|
11
|
+
icon?: LeadGateMediaContent | null;
|
|
8
12
|
}
|
|
9
13
|
|
|
10
14
|
export declare const LeadGateSuccessModal: FC<LeadGateSuccessModalProps>;
|
|
11
15
|
|
|
12
16
|
export declare interface LeadGateSuccessModalProps {
|
|
17
|
+
isOpen: boolean;
|
|
18
|
+
setIsOpen: (open: boolean) => void;
|
|
19
|
+
title: string;
|
|
20
|
+
closeLeadGateLabel: string;
|
|
13
21
|
subtitle: string;
|
|
14
22
|
featureItems: LeadGateSuccessFeatureItemProps[];
|
|
15
23
|
ctaLabel: string;
|
|
16
24
|
footer: string;
|
|
17
|
-
|
|
25
|
+
headerImage: LeadGateMediaContent | null;
|
|
18
26
|
onCtaClick?: () => void;
|
|
19
27
|
}
|
|
20
28
|
|
|
@@ -1,45 +1,96 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
1
|
+
"use client";
|
|
2
|
+
"use client";
|
|
3
|
+
import { DoneCircleIcon as e } from "./DoneCircleIcon.js";
|
|
4
|
+
import { DocOutlineIcon as t } from "./DocOutlineIcon.js";
|
|
5
|
+
import { ClearIcon as n } from "./ClearIcon.js";
|
|
6
|
+
import { Button as r } from "./Button.js";
|
|
7
|
+
import { Markdown as i } from "./Markdown.js";
|
|
8
|
+
import { Modal as a } from "./Modal.js";
|
|
9
|
+
import { LeadGateSuccessFeatureItem as o } from "./LeadGateSuccessFeatureItem.js";
|
|
10
|
+
import { jsx as s, jsxs as c } from "react/jsx-runtime";
|
|
6
11
|
//#region lib/components/molecules/LeadGateSuccessModal.tsx
|
|
7
|
-
var
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
/* @__PURE__ */
|
|
15
|
-
className: "
|
|
16
|
-
children:
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
12
|
+
var l = "lead-gate-modal-title", u = ({ isOpen: u, setIsOpen: d, title: f, closeLeadGateLabel: p, subtitle: m, featureItems: h, ctaLabel: g, footer: _, headerImage: v, onCtaClick: y }) => /* @__PURE__ */ s(a, {
|
|
13
|
+
isOpen: u,
|
|
14
|
+
setIsOpen: d,
|
|
15
|
+
showClose: !1,
|
|
16
|
+
overlayVariant: "grey",
|
|
17
|
+
children: /* @__PURE__ */ c("div", {
|
|
18
|
+
className: "shadow-small flex w-[338px] max-w-[calc(100vw-3rem)] flex-col rounded-sm bg-white p-6 sm:w-96",
|
|
19
|
+
children: [/* @__PURE__ */ c("div", {
|
|
20
|
+
className: "flex items-center gap-2",
|
|
21
|
+
children: [/* @__PURE__ */ c("div", {
|
|
22
|
+
className: "flex min-w-0 flex-1 items-center gap-1",
|
|
23
|
+
children: [/* @__PURE__ */ s(e, {
|
|
24
|
+
width: 20,
|
|
25
|
+
height: 20,
|
|
26
|
+
fill: "var(--color-primary-500)",
|
|
27
|
+
"aria-hidden": "true",
|
|
28
|
+
className: "shrink-0"
|
|
29
|
+
}), /* @__PURE__ */ s("h2", {
|
|
30
|
+
id: l,
|
|
31
|
+
className: "text-big min-w-0 flex-1 font-bold break-words text-neutral-800",
|
|
32
|
+
children: f
|
|
33
|
+
})]
|
|
34
|
+
}), /* @__PURE__ */ s(r, {
|
|
26
35
|
type: "button",
|
|
27
|
-
variant: "
|
|
28
|
-
className: "
|
|
29
|
-
dataQa: "
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
36
|
+
variant: "tertiary-icon",
|
|
37
|
+
className: "shrink-0 p-0!",
|
|
38
|
+
dataQa: "lead_gate_close",
|
|
39
|
+
"aria-label": p,
|
|
40
|
+
onClick: () => {
|
|
41
|
+
d(!1);
|
|
42
|
+
},
|
|
43
|
+
children: /* @__PURE__ */ s(n, {
|
|
44
|
+
width: 24,
|
|
45
|
+
height: 24,
|
|
46
|
+
fill: "var(--color-neutral-800)",
|
|
35
47
|
"aria-hidden": "true"
|
|
36
|
-
})
|
|
37
|
-
}), /* @__PURE__ */ i(n, {
|
|
38
|
-
className: "text-extra-small [&_strong]:text-primary-500 text-center text-neutral-600 [&_p]:mb-0",
|
|
39
|
-
content: l
|
|
48
|
+
})
|
|
40
49
|
})]
|
|
41
|
-
})
|
|
42
|
-
|
|
50
|
+
}), /* @__PURE__ */ c("div", {
|
|
51
|
+
className: "mt-6 flex w-full flex-col gap-6",
|
|
52
|
+
children: [
|
|
53
|
+
/* @__PURE__ */ s("div", {
|
|
54
|
+
className: "relative h-[227px] w-[302px] max-w-full overflow-hidden",
|
|
55
|
+
children: v ? /* @__PURE__ */ s("img", {
|
|
56
|
+
src: v.url,
|
|
57
|
+
alt: v.alternativeText ?? "",
|
|
58
|
+
width: 302,
|
|
59
|
+
height: 227,
|
|
60
|
+
className: "h-full w-full object-contain"
|
|
61
|
+
}) : null
|
|
62
|
+
}),
|
|
63
|
+
/* @__PURE__ */ s("p", {
|
|
64
|
+
className: "text-medium text-primary-500 w-full text-center",
|
|
65
|
+
children: m
|
|
66
|
+
}),
|
|
67
|
+
/* @__PURE__ */ s("span", { className: "h-px w-full bg-neutral-200" }),
|
|
68
|
+
/* @__PURE__ */ s("ul", {
|
|
69
|
+
className: "flex w-full flex-col gap-4",
|
|
70
|
+
children: h.map((e) => /* @__PURE__ */ s(o, { ...e }, e.title))
|
|
71
|
+
}),
|
|
72
|
+
/* @__PURE__ */ c("div", {
|
|
73
|
+
className: "flex w-full flex-col gap-4",
|
|
74
|
+
children: [/* @__PURE__ */ c(r, {
|
|
75
|
+
type: "button",
|
|
76
|
+
variant: "primary-green",
|
|
77
|
+
className: "w-full",
|
|
78
|
+
dataQa: "lead_gate_success_cta",
|
|
79
|
+
onClick: y,
|
|
80
|
+
children: [/* @__PURE__ */ s(t, {
|
|
81
|
+
width: 22,
|
|
82
|
+
height: 22,
|
|
83
|
+
fill: "currentColor",
|
|
84
|
+
"aria-hidden": "true"
|
|
85
|
+
}), g]
|
|
86
|
+
}), /* @__PURE__ */ s(i, {
|
|
87
|
+
className: "text-extra-small [&_strong]:text-primary-500 text-center text-neutral-600 [&_p]:mb-0",
|
|
88
|
+
content: _
|
|
89
|
+
})]
|
|
90
|
+
})
|
|
91
|
+
]
|
|
92
|
+
})]
|
|
93
|
+
})
|
|
43
94
|
});
|
|
44
95
|
//#endregion
|
|
45
|
-
export {
|
|
96
|
+
export { u as LeadGateSuccessModal };
|
|
@@ -794,12 +794,21 @@ export declare interface LawGeniusStepCardProps {
|
|
|
794
794
|
export declare const LeadGateErrorModal: FC<LeadGateErrorModalProps>;
|
|
795
795
|
|
|
796
796
|
export declare interface LeadGateErrorModalProps {
|
|
797
|
+
isOpen: boolean;
|
|
798
|
+
setIsOpen: (open: boolean) => void;
|
|
799
|
+
title: string;
|
|
800
|
+
closeLeadGateLabel: string;
|
|
797
801
|
heading: string;
|
|
798
802
|
description: string;
|
|
799
803
|
ctaLabel: string;
|
|
800
804
|
onRetry?: () => void;
|
|
801
805
|
}
|
|
802
806
|
|
|
807
|
+
export declare type LeadGateMediaContent = {
|
|
808
|
+
url: string;
|
|
809
|
+
alternativeText?: string | null;
|
|
810
|
+
};
|
|
811
|
+
|
|
803
812
|
export declare const LeadGateModal: FC<LeadGateModalProps>;
|
|
804
813
|
|
|
805
814
|
export declare interface LeadGateModalErrors {
|
|
@@ -814,6 +823,10 @@ export declare interface LeadGateModalPayload {
|
|
|
814
823
|
}
|
|
815
824
|
|
|
816
825
|
export declare interface LeadGateModalProps {
|
|
826
|
+
isOpen: boolean;
|
|
827
|
+
setIsOpen: (open: boolean) => void;
|
|
828
|
+
title: string;
|
|
829
|
+
closeLeadGateLabel: string;
|
|
817
830
|
description: string;
|
|
818
831
|
emailLabel: string;
|
|
819
832
|
emailPlaceholder: string;
|
|
@@ -830,19 +843,23 @@ export declare interface LeadGateModalProps {
|
|
|
830
843
|
export declare const LeadGateSuccessFeatureItem: FC<LeadGateSuccessFeatureItemProps>;
|
|
831
844
|
|
|
832
845
|
export declare interface LeadGateSuccessFeatureItemProps {
|
|
833
|
-
icon?: ReactNode;
|
|
834
846
|
title: string;
|
|
835
847
|
description: string;
|
|
848
|
+
icon?: LeadGateMediaContent | null;
|
|
836
849
|
}
|
|
837
850
|
|
|
838
851
|
export declare const LeadGateSuccessModal: FC<LeadGateSuccessModalProps>;
|
|
839
852
|
|
|
840
853
|
export declare interface LeadGateSuccessModalProps {
|
|
854
|
+
isOpen: boolean;
|
|
855
|
+
setIsOpen: (open: boolean) => void;
|
|
856
|
+
title: string;
|
|
857
|
+
closeLeadGateLabel: string;
|
|
841
858
|
subtitle: string;
|
|
842
859
|
featureItems: LeadGateSuccessFeatureItemProps[];
|
|
843
860
|
ctaLabel: string;
|
|
844
861
|
footer: string;
|
|
845
|
-
|
|
862
|
+
headerImage: LeadGateMediaContent | null;
|
|
846
863
|
onCtaClick?: () => void;
|
|
847
864
|
}
|
|
848
865
|
|