@npm_leadtech/legal-contracts-ui 0.152.1 → 0.152.3
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/Anchor.js +5 -5
- package/dist/components/FaqItem.js +1 -1
- package/dist/components/FaqSection.js +1 -1
- package/dist/components/Header2.js +8 -8
- package/dist/components/Input.js +60 -54
- package/dist/components/Jumbotron3.d.ts +0 -2
- package/dist/components/Jumbotron3.js +3 -3
- package/dist/components/LegalTemplate.d.ts +1 -7
- package/dist/components/LegalTemplate.js +6 -6
- package/dist/components/Modal.js +41 -41
- package/dist/components/NavMenuItem.js +43 -51
- package/dist/components/Tooltips.js +5 -5
- package/dist/components/UnorderedList.js +9 -15
- package/dist/components/UnsubscribeTemplate.d.ts +2 -17
- package/dist/components/UnsubscribeTemplate.js +6 -6
- package/dist/components/UploadZone.js +4 -5
- package/dist/components/Video.js +1 -4
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as x } from "react/jsx-runtime";
|
|
2
2
|
import m from "clsx";
|
|
3
|
-
const w = ({ children:
|
|
3
|
+
const w = ({ children: o, variant: l = "default", className: c = "", ...t }) => {
|
|
4
4
|
const e = t.href || "", n = e.toLowerCase(), u = n.startsWith("mailto:"), a = n.startsWith("tel:"), r = "cursor-pointer text-primary-700", i = {
|
|
5
5
|
default: "text-neutral-900 underline",
|
|
6
6
|
legal: r,
|
|
@@ -10,15 +10,15 @@ const w = ({ children: l, variant: o = "default", className: c = "", ...t }) =>
|
|
|
10
10
|
unsubscribe: r,
|
|
11
11
|
cookies: "text-white",
|
|
12
12
|
story: "text-neutral-800 underline"
|
|
13
|
-
}, f = i[
|
|
13
|
+
}, f = i[l] ?? i.default, h = e.startsWith("http"), d = (() => {
|
|
14
14
|
if (!a) return e;
|
|
15
15
|
try {
|
|
16
|
-
return decodeURIComponent(e).
|
|
16
|
+
return decodeURIComponent(e).replace(/\s/g, "");
|
|
17
17
|
} catch {
|
|
18
|
-
return e.
|
|
18
|
+
return e.replace(/%20/g, "").replace(/\s/g, "");
|
|
19
19
|
}
|
|
20
20
|
})(), s = t.target === "_blank" || h && !a && !u ? "_blank" : t.target, g = s === "_blank" ? "noopener noreferrer" : t.rel;
|
|
21
|
-
return /* @__PURE__ */ x("a", { ...t, href: d, className: m(c, f), target: s, rel: g, children:
|
|
21
|
+
return /* @__PURE__ */ x("a", { ...t, href: d, className: m(c, f), target: s, rel: g, children: o });
|
|
22
22
|
};
|
|
23
23
|
export {
|
|
24
24
|
w as Anchor
|
|
@@ -12,7 +12,7 @@ const I = ({
|
|
|
12
12
|
variant: m,
|
|
13
13
|
slug: c
|
|
14
14
|
}) => {
|
|
15
|
-
const t = `toggle-${d().
|
|
15
|
+
const t = `toggle-${d().replace(/:/g, "")}`;
|
|
16
16
|
return /* @__PURE__ */ e("div", { id: c, className: "text-medium flex scroll-mt-24 flex-col rounded bg-white p-4 text-neutral-800 shadow", children: /* @__PURE__ */ r(p, { question: /* @__PURE__ */ e("h3", { className: "font-bold", children: n }), children: [
|
|
17
17
|
/* @__PURE__ */ e(h, { content: l, className: "text-medium", variant: m ?? "default" }),
|
|
18
18
|
o && /* @__PURE__ */ r("div", { className: "mt-4 rounded-lg bg-neutral-50 p-6", children: [
|
|
@@ -5,7 +5,7 @@ import { Markdown as i } from "./Markdown.js";
|
|
|
5
5
|
import { FaqItem as x } from "./FaqItem.js";
|
|
6
6
|
const g = ({ title: l, description: o, faqItems: r, className: a = "", variant: c }) => {
|
|
7
7
|
if (r.length === 0) return null;
|
|
8
|
-
const m = l.toLowerCase().
|
|
8
|
+
const m = l.toLowerCase().replace(/\s+/g, "-");
|
|
9
9
|
return /* @__PURE__ */ s("div", { id: m, className: n("flex scroll-mt-24 flex-col gap-2 p-0.5 text-neutral-800", a), children: [
|
|
10
10
|
/* @__PURE__ */ s("div", { className: "mb-4 flex flex-col", children: [
|
|
11
11
|
/* @__PURE__ */ e("h2", { className: "text-super-large font-bold", children: l }),
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import
|
|
3
|
-
const m = ({ children: e, variant:
|
|
1
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import s from "clsx";
|
|
3
|
+
const m = ({ children: e, variant: a = "default" }) => {
|
|
4
4
|
const t = {
|
|
5
5
|
default: "mt-5 mb-3 text-super-large text-neutral-800",
|
|
6
|
-
legal: "
|
|
7
|
-
ratafia: "mt-4 mb-3 text-left text-xl
|
|
8
|
-
unsubscribe: "
|
|
9
|
-
},
|
|
10
|
-
return /* @__PURE__ */
|
|
6
|
+
legal: "my-4 text-neutral-800 text-super-large w-full",
|
|
7
|
+
ratafia: "mt-4 mb-3 text-left text-xl text-white lg:text-2xl",
|
|
8
|
+
unsubscribe: "text-super-large my-6 text-neutral-800"
|
|
9
|
+
}, l = t[a] ?? t.default;
|
|
10
|
+
return /* @__PURE__ */ r("h2", { className: s("font-bold", l), children: e });
|
|
11
11
|
};
|
|
12
12
|
export {
|
|
13
13
|
m as Header2
|
package/dist/components/Input.js
CHANGED
|
@@ -19,7 +19,7 @@ const z = ({
|
|
|
19
19
|
errorMessage: v,
|
|
20
20
|
...w
|
|
21
21
|
}) => {
|
|
22
|
-
const [n, c] = p(!1), [N,
|
|
22
|
+
const [n, c] = p(!1), [N, a] = p(!1);
|
|
23
23
|
return /* @__PURE__ */ t("div", { className: `flex flex-col gap-2 ${g}`, children: [
|
|
24
24
|
/* @__PURE__ */ t("div", { className: "flex items-center gap-2", children: [
|
|
25
25
|
/* @__PURE__ */ t("label", { htmlFor: l, className: "font-bold text-neutral-800", children: [
|
|
@@ -27,58 +27,64 @@ const z = ({
|
|
|
27
27
|
" ",
|
|
28
28
|
o && /* @__PURE__ */ e("span", { className: "text-neutral-800", children: "*" })
|
|
29
29
|
] }),
|
|
30
|
-
i && /* @__PURE__ */ t(
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
className: u(
|
|
50
|
-
"invisible absolute top-6 -left-21 z-10 w-max max-w-60 rounded bg-neutral-800 p-2 transition-opacity lg:max-w-80 xl:-left-15 xl:max-w-112",
|
|
51
|
-
"opacity-0",
|
|
52
|
-
!N && "group-focus-within:visible group-focus-within:opacity-100 group-hover:visible group-hover:opacity-100",
|
|
53
|
-
n && "visible opacity-100"
|
|
30
|
+
i && /* @__PURE__ */ t(
|
|
31
|
+
"span",
|
|
32
|
+
{
|
|
33
|
+
className: "group relative inline-flex",
|
|
34
|
+
onMouseLeave: () => {
|
|
35
|
+
a(!1);
|
|
36
|
+
},
|
|
37
|
+
children: [
|
|
38
|
+
/* @__PURE__ */ e(
|
|
39
|
+
"button",
|
|
40
|
+
{
|
|
41
|
+
className: "cursor-pointer rounded-full p-0",
|
|
42
|
+
type: "button",
|
|
43
|
+
"aria-expanded": n,
|
|
44
|
+
onClick: () => {
|
|
45
|
+
a(!1), c((r) => !r);
|
|
46
|
+
},
|
|
47
|
+
children: /* @__PURE__ */ e(y, { "aria-hidden": "true" })
|
|
48
|
+
}
|
|
54
49
|
),
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
"
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
50
|
+
/* @__PURE__ */ t(
|
|
51
|
+
"span",
|
|
52
|
+
{
|
|
53
|
+
className: u(
|
|
54
|
+
"invisible absolute top-6 -left-21 z-10 w-max max-w-60 rounded bg-neutral-800 p-2 transition-opacity lg:max-w-80 xl:-left-15 xl:max-w-112",
|
|
55
|
+
"opacity-0",
|
|
56
|
+
!N && "group-focus-within:visible group-focus-within:opacity-100 group-hover:visible group-hover:opacity-100",
|
|
57
|
+
n && "visible opacity-100"
|
|
58
|
+
),
|
|
59
|
+
role: "tooltip",
|
|
60
|
+
children: [
|
|
61
|
+
/* @__PURE__ */ e(
|
|
62
|
+
"span",
|
|
63
|
+
{
|
|
64
|
+
className: "absolute -top-1 right-[calc(100%-5.75rem)] h-2 w-2 translate-x-1/2 rotate-45 bg-neutral-800 xl:right-[calc(100%-4.25rem)]",
|
|
65
|
+
"aria-hidden": "true"
|
|
66
|
+
}
|
|
67
|
+
),
|
|
68
|
+
/* @__PURE__ */ t("span", { className: "text-extra-small inline-flex items-center gap-2 px-1 py-2 leading-none font-bold text-white", children: [
|
|
69
|
+
/* @__PURE__ */ e("span", { children: i }),
|
|
70
|
+
/* @__PURE__ */ e(
|
|
71
|
+
"button",
|
|
72
|
+
{
|
|
73
|
+
type: "button",
|
|
74
|
+
className: "cursor-pointer p-0",
|
|
75
|
+
onClick: () => {
|
|
76
|
+
a(!0), c(!1);
|
|
77
|
+
},
|
|
78
|
+
children: /* @__PURE__ */ e(I, { width: 20, height: 20, fill: "white" })
|
|
79
|
+
}
|
|
80
|
+
)
|
|
81
|
+
] })
|
|
82
|
+
]
|
|
83
|
+
}
|
|
84
|
+
)
|
|
85
|
+
]
|
|
86
|
+
}
|
|
87
|
+
)
|
|
82
88
|
] }),
|
|
83
89
|
/* @__PURE__ */ e(
|
|
84
90
|
"input",
|
|
@@ -93,8 +99,8 @@ const z = ({
|
|
|
93
99
|
"text-small focus-visible:outline-primary-500 w-full rounded border p-3 text-neutral-800 placeholder:text-neutral-600 focus-visible:outline-2",
|
|
94
100
|
s ? "border-error-500 bg-error-25" : "bg-neutral-25 border-neutral-400"
|
|
95
101
|
),
|
|
96
|
-
onChange: (
|
|
97
|
-
b?.(
|
|
102
|
+
onChange: (r) => {
|
|
103
|
+
b?.(r.target.value);
|
|
98
104
|
},
|
|
99
105
|
...w
|
|
100
106
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
const
|
|
1
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
+
const r = ({ title: e }) => /* @__PURE__ */ t("section", { className: "bg-primary-50 mx-auto w-full pt-10 pb-20", children: /* @__PURE__ */ t("div", { className: "mx-auto w-full max-w-5xl px-6 text-center md:px-8 lg:px-30 xl:max-w-300 xl:px-0", children: /* @__PURE__ */ t("h1", { className: "font-lora text-super-hero text-neutral-900", children: e }) }) });
|
|
3
3
|
export {
|
|
4
|
-
|
|
4
|
+
r as Jumbotron3
|
|
5
5
|
};
|
|
@@ -1,15 +1,9 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
2
|
|
|
3
|
-
export interface Jumbotron3Props {
|
|
4
|
-
title: string;
|
|
5
|
-
domain: string;
|
|
6
|
-
className?: string;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
3
|
export declare const LegalTemplate: FC<LegalTemplateProps>;
|
|
10
4
|
|
|
11
5
|
export declare interface LegalTemplateProps {
|
|
12
|
-
|
|
6
|
+
title: string;
|
|
13
7
|
legalSection: string;
|
|
14
8
|
}
|
|
15
9
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { Jumbotron3 as
|
|
3
|
-
import { Markdown as
|
|
4
|
-
const i = ({
|
|
5
|
-
/* @__PURE__ */ l(
|
|
6
|
-
/* @__PURE__ */ l("div", { className: "
|
|
1
|
+
import { jsxs as a, jsx as l } from "react/jsx-runtime";
|
|
2
|
+
import { Jumbotron3 as o } from "./Jumbotron3.js";
|
|
3
|
+
import { Markdown as t } from "./Markdown.js";
|
|
4
|
+
const i = ({ title: e, legalSection: r }) => /* @__PURE__ */ a("main", { className: "bg-neutral-white flex w-full flex-col", children: [
|
|
5
|
+
/* @__PURE__ */ l(o, { title: e }),
|
|
6
|
+
/* @__PURE__ */ l("div", { className: "px-6 py-8 lg:px-8 xl:mx-auto xl:max-w-300 xl:px-0", children: /* @__PURE__ */ l(t, { content: r, variant: "legal" }) })
|
|
7
7
|
] });
|
|
8
8
|
export {
|
|
9
9
|
i as LegalTemplate
|
package/dist/components/Modal.js
CHANGED
|
@@ -1,64 +1,64 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsxs as
|
|
2
|
+
import { jsxs as a, Fragment as f, jsx as o } from "react/jsx-runtime";
|
|
3
3
|
import { useEffect as m } from "react";
|
|
4
|
-
import { createPortal as
|
|
5
|
-
import { CloseIcon as
|
|
6
|
-
const
|
|
7
|
-
const
|
|
8
|
-
|
|
4
|
+
import { createPortal as p } from "react-dom";
|
|
5
|
+
import { CloseIcon as y } from "./CloseIcon.js";
|
|
6
|
+
const w = ({ trigger: r, children: i, isOpen: t, setIsOpen: l, showClose: s, onTrigger: c }) => {
|
|
7
|
+
const d = () => {
|
|
8
|
+
c?.(), l(!0);
|
|
9
9
|
}, n = () => {
|
|
10
10
|
l(!1);
|
|
11
|
+
}, u = (e) => {
|
|
12
|
+
e.target === e.currentTarget && n();
|
|
11
13
|
};
|
|
12
14
|
return m(() => {
|
|
13
|
-
if (!
|
|
14
|
-
const
|
|
15
|
+
if (!t) return;
|
|
16
|
+
const e = document.body.style.overflow;
|
|
15
17
|
return document.body.style.overflow = "hidden", () => {
|
|
16
|
-
document.body.style.overflow =
|
|
18
|
+
document.body.style.overflow = e;
|
|
17
19
|
};
|
|
18
|
-
}, [
|
|
19
|
-
!!r && /* @__PURE__ */
|
|
20
|
+
}, [t]), /* @__PURE__ */ a(f, { children: [
|
|
21
|
+
!!r && /* @__PURE__ */ o(
|
|
20
22
|
"button",
|
|
21
23
|
{
|
|
22
24
|
type: "button",
|
|
23
25
|
"aria-label": "zoom",
|
|
24
|
-
onClick:
|
|
26
|
+
onClick: d,
|
|
25
27
|
className: "flex w-full cursor-pointer justify-center",
|
|
26
28
|
children: r
|
|
27
29
|
}
|
|
28
30
|
),
|
|
29
|
-
|
|
30
|
-
/* @__PURE__ */
|
|
31
|
+
t && p(
|
|
32
|
+
/* @__PURE__ */ o(
|
|
31
33
|
"div",
|
|
32
34
|
{
|
|
33
35
|
role: "dialog",
|
|
34
36
|
"aria-modal": "true",
|
|
37
|
+
"data-testid": "modal-backdrop",
|
|
35
38
|
className: "bg-primary-900/80 fixed inset-0 z-1001 flex items-center justify-center",
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
a
|
|
60
|
-
] }) })
|
|
61
|
-
]
|
|
39
|
+
onClick: u,
|
|
40
|
+
children: /* @__PURE__ */ o("div", { className: "pointer-events-none relative flex max-h-screen w-full items-start justify-center overflow-y-auto px-6 py-24", children: /* @__PURE__ */ a(
|
|
41
|
+
"div",
|
|
42
|
+
{
|
|
43
|
+
className: "pointer-events-auto relative",
|
|
44
|
+
onClick: (e) => {
|
|
45
|
+
e.stopPropagation();
|
|
46
|
+
},
|
|
47
|
+
children: [
|
|
48
|
+
s && /* @__PURE__ */ o(
|
|
49
|
+
"button",
|
|
50
|
+
{
|
|
51
|
+
type: "button",
|
|
52
|
+
className: "absolute top-4 right-4 z-10 cursor-pointer rounded-full p-2 transition-colors hover:bg-neutral-100 focus:outline-none",
|
|
53
|
+
onClick: n,
|
|
54
|
+
"aria-label": "Close",
|
|
55
|
+
children: /* @__PURE__ */ o(y, {})
|
|
56
|
+
}
|
|
57
|
+
),
|
|
58
|
+
i
|
|
59
|
+
]
|
|
60
|
+
}
|
|
61
|
+
) })
|
|
62
62
|
}
|
|
63
63
|
),
|
|
64
64
|
document.body
|
|
@@ -66,5 +66,5 @@ const x = ({ trigger: r, children: a, isOpen: o, setIsOpen: l, showClose: s, onT
|
|
|
66
66
|
] });
|
|
67
67
|
};
|
|
68
68
|
export {
|
|
69
|
-
|
|
69
|
+
w as Modal
|
|
70
70
|
};
|
|
@@ -1,75 +1,67 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsxs as
|
|
3
|
-
import { useState as
|
|
4
|
-
import { ChevronDownIcon as
|
|
5
|
-
import { ChevronRightIcon as
|
|
6
|
-
const
|
|
7
|
-
const { hasDropdown:
|
|
2
|
+
import { jsxs as d, jsx as t } from "react/jsx-runtime";
|
|
3
|
+
import { useState as p, useCallback as T, useRef as $, useEffect as j } from "react";
|
|
4
|
+
import { ChevronDownIcon as P } from "./ChevronDownIcon.js";
|
|
5
|
+
import { ChevronRightIcon as R } from "./ChevronRightIcon.js";
|
|
6
|
+
const D = (l) => {
|
|
7
|
+
const { hasDropdown: g, isNested: w, isOpen: v, onToggle: i, dataQa: x } = l, [C, I] = p(!1), [b, u] = p(null), s = v ?? C, n = T(
|
|
8
8
|
(e) => {
|
|
9
|
-
e ||
|
|
9
|
+
e || u(null), i ? i(e) : I(e);
|
|
10
10
|
},
|
|
11
|
-
[
|
|
12
|
-
),
|
|
13
|
-
|
|
11
|
+
[i]
|
|
12
|
+
), r = $(null);
|
|
13
|
+
j(() => {
|
|
14
14
|
if (!s) return;
|
|
15
|
-
const e = (
|
|
16
|
-
|
|
15
|
+
const e = (c) => {
|
|
16
|
+
r.current && !r.current.contains(c.target) && n(!1);
|
|
17
17
|
};
|
|
18
18
|
return document.addEventListener("mousedown", e), () => {
|
|
19
19
|
document.removeEventListener("mousedown", e);
|
|
20
20
|
};
|
|
21
21
|
}, [s, n]);
|
|
22
|
-
const
|
|
22
|
+
const m = {
|
|
23
23
|
topLevel: {
|
|
24
24
|
liClass: "relative py-2",
|
|
25
25
|
triggerClass: "hover:text-neutral-600",
|
|
26
26
|
dropdownPosition: "top-full left-0",
|
|
27
|
-
Icon:
|
|
27
|
+
Icon: P
|
|
28
28
|
},
|
|
29
29
|
nested: {
|
|
30
30
|
liClass: "relative",
|
|
31
31
|
triggerClass: "p-1 hover:bg-primary-100 w-full rounded min-w-48.5",
|
|
32
32
|
dropdownPosition: "top-0 left-full -mt-4 pl-6",
|
|
33
|
-
Icon:
|
|
33
|
+
Icon: R
|
|
34
34
|
}
|
|
35
|
-
}, o =
|
|
35
|
+
}, o = w ? m.nested : m.topLevel, N = o.Icon, f = () => {
|
|
36
36
|
n(!1), l.onItemClick && l.onItemClick();
|
|
37
|
-
},
|
|
38
|
-
x(() => {
|
|
39
|
-
const e = h.current;
|
|
40
|
-
if (e)
|
|
41
|
-
return e.addEventListener("click", a), () => {
|
|
42
|
-
e.removeEventListener("click", a);
|
|
43
|
-
};
|
|
44
|
-
}, [a]);
|
|
45
|
-
const E = (e) => {
|
|
37
|
+
}, k = (e) => {
|
|
46
38
|
e.stopPropagation(), n(!s);
|
|
47
|
-
},
|
|
39
|
+
}, O = () => {
|
|
48
40
|
globalThis.window.matchMedia("(hover: hover)").matches && n(!0);
|
|
49
|
-
},
|
|
41
|
+
}, y = () => {
|
|
50
42
|
globalThis.window.matchMedia("(hover: hover)").matches && n(!1);
|
|
51
43
|
};
|
|
52
|
-
if (
|
|
53
|
-
const { dropdownItems: e, label:
|
|
54
|
-
return /* @__PURE__ */
|
|
44
|
+
if (g) {
|
|
45
|
+
const { dropdownItems: e, label: c } = l;
|
|
46
|
+
return /* @__PURE__ */ d(
|
|
55
47
|
"li",
|
|
56
48
|
{
|
|
57
|
-
ref:
|
|
49
|
+
ref: r,
|
|
58
50
|
className: o.liClass,
|
|
59
|
-
onMouseEnter:
|
|
60
|
-
onMouseLeave:
|
|
51
|
+
onMouseEnter: O,
|
|
52
|
+
onMouseLeave: y,
|
|
61
53
|
children: [
|
|
62
|
-
/* @__PURE__ */
|
|
54
|
+
/* @__PURE__ */ d(
|
|
63
55
|
"button",
|
|
64
56
|
{
|
|
65
|
-
"data-qa":
|
|
57
|
+
"data-qa": x,
|
|
66
58
|
className: `text-small flex w-full cursor-pointer items-center justify-between gap-1 text-nowrap text-neutral-800 transition-colors ${o.triggerClass}`,
|
|
67
59
|
"aria-haspopup": "menu",
|
|
68
60
|
"aria-expanded": s,
|
|
69
|
-
onClick:
|
|
61
|
+
onClick: k,
|
|
70
62
|
children: [
|
|
71
|
-
/* @__PURE__ */ t("span", { className: "text-medium", children:
|
|
72
|
-
/* @__PURE__ */ t(
|
|
63
|
+
/* @__PURE__ */ t("span", { className: "text-medium", children: c }),
|
|
64
|
+
/* @__PURE__ */ t(N, { fill: "#000", width: 20, height: 20 })
|
|
73
65
|
]
|
|
74
66
|
}
|
|
75
67
|
),
|
|
@@ -77,18 +69,18 @@ const _ = (l) => {
|
|
|
77
69
|
"div",
|
|
78
70
|
{
|
|
79
71
|
className: `absolute z-50 min-w-48 transition-all duration-200 ${o.dropdownPosition} ${s ? "pointer-events-auto opacity-100" : "pointer-events-none opacity-0"}`,
|
|
80
|
-
children: /* @__PURE__ */ t("div", { className: "rounded-md border border-neutral-200 bg-white p-4 shadow-lg", children: /* @__PURE__ */ t("ul", { className: "flex flex-col gap-2", children: e.map((
|
|
81
|
-
|
|
72
|
+
children: /* @__PURE__ */ t("div", { className: "rounded-md border border-neutral-200 bg-white p-4 shadow-lg", children: /* @__PURE__ */ t("ul", { className: "flex flex-col gap-2", children: e.map((a) => /* @__PURE__ */ t(
|
|
73
|
+
D,
|
|
82
74
|
{
|
|
83
|
-
...
|
|
75
|
+
...a,
|
|
84
76
|
isNested: !0,
|
|
85
|
-
onItemClick:
|
|
86
|
-
isOpen:
|
|
87
|
-
onToggle: (
|
|
88
|
-
|
|
77
|
+
onItemClick: f,
|
|
78
|
+
isOpen: b === a.id,
|
|
79
|
+
onToggle: (E) => {
|
|
80
|
+
u(E ? a.id : null);
|
|
89
81
|
}
|
|
90
82
|
},
|
|
91
|
-
|
|
83
|
+
a.id
|
|
92
84
|
)) }) })
|
|
93
85
|
}
|
|
94
86
|
)
|
|
@@ -96,18 +88,18 @@ const _ = (l) => {
|
|
|
96
88
|
}
|
|
97
89
|
);
|
|
98
90
|
}
|
|
99
|
-
const { link:
|
|
100
|
-
return /* @__PURE__ */ t("li", {
|
|
91
|
+
const { link: L, tag: h, bold: M } = l;
|
|
92
|
+
return /* @__PURE__ */ t("li", { className: o.liClass, onClick: f, children: /* @__PURE__ */ d(
|
|
101
93
|
"span",
|
|
102
94
|
{
|
|
103
95
|
className: `text-small relative flex w-full items-center gap-1 text-nowrap text-neutral-800 transition-colors ${o.triggerClass} `,
|
|
104
96
|
children: [
|
|
105
|
-
/* @__PURE__ */ t("span", { className: `text-medium flex-1 ${
|
|
106
|
-
|
|
97
|
+
/* @__PURE__ */ t("span", { className: `text-medium flex-1 ${M ? "font-bold" : ""} [&_a]:after:absolute [&_a]:after:inset-0`, children: L }),
|
|
98
|
+
h && /* @__PURE__ */ t("span", { className: "bg-secondary-200 text-extra-small flex h-4.5 w-5.25 items-center justify-center rounded align-middle font-bold", children: h })
|
|
107
99
|
]
|
|
108
100
|
}
|
|
109
101
|
) });
|
|
110
102
|
};
|
|
111
103
|
export {
|
|
112
|
-
|
|
104
|
+
D as NavMenuItem
|
|
113
105
|
};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { jsxs as o, jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import { QuestionIcon as t } from "./QuestionIcon.js";
|
|
3
|
-
import { Markdown as
|
|
4
|
-
const
|
|
3
|
+
import { Markdown as a } from "./Markdown.js";
|
|
4
|
+
const i = ({ title: r, content: l }) => /* @__PURE__ */ o("div", { className: "border-secondary-200 hidden flex-col gap-4 rounded border p-6 md:flex", children: [
|
|
5
5
|
/* @__PURE__ */ o("div", { className: "flex items-center gap-1.5", children: [
|
|
6
6
|
/* @__PURE__ */ e(t, { fill: "var(--color-secondary-600)" }),
|
|
7
|
-
/* @__PURE__ */ e("
|
|
7
|
+
/* @__PURE__ */ e("p", { className: "text-small font-bold text-neutral-900", children: r })
|
|
8
8
|
] }),
|
|
9
|
-
/* @__PURE__ */ e(
|
|
9
|
+
/* @__PURE__ */ e(a, { className: "text-small", variant: "tooltip", content: l })
|
|
10
10
|
] });
|
|
11
11
|
export {
|
|
12
|
-
|
|
12
|
+
i as Tooltips
|
|
13
13
|
};
|
|
@@ -1,21 +1,15 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import
|
|
3
|
-
const
|
|
4
|
-
const
|
|
5
|
-
default: "
|
|
6
|
-
legal: "list-outside list-disc pl-8 pr-4 text-neutral-800",
|
|
7
|
-
ratafia: "list-outside list-disc pl-5 pr-1 text-white/85 marker:text-white/60",
|
|
8
|
-
tooltip: "flex list-inside list-disc flex-col px-4 text-neutral-900",
|
|
9
|
-
unsubscribe: "w-full list-outside list-disc pl-10 text-neutral-800"
|
|
10
|
-
}, s = {
|
|
11
|
-
default: "bg-primary-50 gap-4 mb-4 py-2 flex list-inside list-disc flex-col px-4 text-neutral-900",
|
|
1
|
+
import { jsx as i } from "react/jsx-runtime";
|
|
2
|
+
import a from "clsx";
|
|
3
|
+
const c = ({ variant: s = "default", children: e }) => {
|
|
4
|
+
const t = {
|
|
5
|
+
default: "bg-primary-50 mb-4 py-2 list-disc space-y-4 px-4 text-neutral-900 list-outside [&_li]:ml-4",
|
|
12
6
|
legal: "space-y-4 mb-4 py-2 list-outside list-disc pl-8 pr-4 text-neutral-800",
|
|
13
|
-
ratafia: "mb-3 space-y-2 py-0",
|
|
7
|
+
ratafia: "mb-3 space-y-2 py-0 list-outside list-disc pl-5 pr-1 text-white/85 marker:text-white/60",
|
|
14
8
|
tooltip: "gap-2 marker:text-secondary-600 flex list-inside list-disc flex-col px-4 text-neutral-900",
|
|
15
9
|
unsubscribe: "mb-4 py-2 w-full list-outside list-disc pl-10 text-neutral-800"
|
|
16
|
-
},
|
|
17
|
-
return /* @__PURE__ */
|
|
10
|
+
}, l = t[s] ?? t.default;
|
|
11
|
+
return /* @__PURE__ */ i("ul", { className: a(l), children: e });
|
|
18
12
|
};
|
|
19
13
|
export {
|
|
20
|
-
|
|
14
|
+
c as UnorderedList
|
|
21
15
|
};
|
|
@@ -1,24 +1,9 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
2
|
|
|
3
|
-
export interface Jumbotron3Props {
|
|
4
|
-
title: string;
|
|
5
|
-
domain: string;
|
|
6
|
-
className?: string;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
export interface MarkdownProps {
|
|
10
|
-
content: string;
|
|
11
|
-
className?: string;
|
|
12
|
-
useCustom?: boolean;
|
|
13
|
-
variant?: MarkdownVariants;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
export type MarkdownVariants = 'default' | 'legal' | 'ratafia' | 'tooltip' | 'about-us' | 'pricing' | 'unsubscribe' | 'cookies' | 'story';
|
|
17
|
-
|
|
18
3
|
export declare const UnsubscribeTemplate: FC<UnsubscribeTemplateProps>;
|
|
19
4
|
|
|
20
5
|
export declare interface UnsubscribeTemplateProps {
|
|
21
|
-
|
|
22
|
-
stepDescription:
|
|
6
|
+
title: string;
|
|
7
|
+
stepDescription: string;
|
|
23
8
|
}
|
|
24
9
|
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsxs as i, jsx as l } from "react/jsx-runtime";
|
|
2
|
-
import { Jumbotron3 as
|
|
3
|
-
import { Markdown as
|
|
4
|
-
const
|
|
5
|
-
/* @__PURE__ */ l(
|
|
6
|
-
/* @__PURE__ */ l("div", { className: "mx-auto w-full max-w-300", children: /* @__PURE__ */ l("section", { className: "[&_img]:bg-neutral-25 mb-16 w-full overflow-hidden rounded-lg
|
|
2
|
+
import { Jumbotron3 as o } from "./Jumbotron3.js";
|
|
3
|
+
import { Markdown as r } from "./Markdown.js";
|
|
4
|
+
const a = ({ title: e, stepDescription: m }) => /* @__PURE__ */ i("main", { className: "flex min-h-screen flex-1 flex-col bg-white", children: [
|
|
5
|
+
/* @__PURE__ */ l(o, { title: e }),
|
|
6
|
+
/* @__PURE__ */ l("div", { className: "mx-auto w-full bg-white px-6 pt-2 pb-8 lg:px-8 xl:mx-auto xl:max-w-300 xl:px-0", children: /* @__PURE__ */ l("section", { className: "[&_img]:bg-neutral-25 mb-16 w-full overflow-hidden rounded-lg md:mb-12 xl:px-12 [&_h2+p]:pt-6 [&_img]:block [&_img]:h-auto [&_img]:w-full [&_img]:max-w-full", children: /* @__PURE__ */ l(r, { content: m, variant: "unsubscribe" }) }) })
|
|
7
7
|
] });
|
|
8
8
|
export {
|
|
9
|
-
|
|
9
|
+
a as UnsubscribeTemplate
|
|
10
10
|
};
|
|
@@ -10,13 +10,12 @@ const b = ({
|
|
|
10
10
|
fileSizeText: o,
|
|
11
11
|
disclaimer: i,
|
|
12
12
|
onAddDocument: r,
|
|
13
|
-
onDropDocument:
|
|
14
|
-
containerClassName:
|
|
13
|
+
onDropDocument: m,
|
|
14
|
+
containerClassName: s = "",
|
|
15
15
|
dataQa: p
|
|
16
16
|
}) => /* @__PURE__ */ l(
|
|
17
17
|
"div",
|
|
18
18
|
{
|
|
19
|
-
role: "presentation",
|
|
20
19
|
onDragOver: (e) => {
|
|
21
20
|
e.preventDefault();
|
|
22
21
|
},
|
|
@@ -24,11 +23,11 @@ const b = ({
|
|
|
24
23
|
e.preventDefault();
|
|
25
24
|
},
|
|
26
25
|
onDrop: (e) => {
|
|
27
|
-
e.preventDefault(),
|
|
26
|
+
e.preventDefault(), m?.(e);
|
|
28
27
|
},
|
|
29
28
|
className: c(
|
|
30
29
|
"group rounded-3xl bg-neutral-200/50 p-4 backdrop-blur-xs md:max-w-80 lg:max-w-120 xl:max-w-140",
|
|
31
|
-
|
|
30
|
+
s
|
|
32
31
|
),
|
|
33
32
|
children: [
|
|
34
33
|
/* @__PURE__ */ t("input", { type: "file", id: "file-upload", className: "sr-only", onChange: r, multiple: !0 }),
|
package/dist/components/Video.js
CHANGED
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
-
const r = ({ children: o }) => (
|
|
3
|
-
// eslint-disable-next-line jsx-a11y/media-has-caption
|
|
4
|
-
/* @__PURE__ */ e("video", { className: "my-4 w-full max-w-2xl rounded-lg", controls: !0, children: o })
|
|
5
|
-
);
|
|
2
|
+
const r = ({ children: o }) => /* @__PURE__ */ e("video", { className: "my-4 w-full max-w-2xl rounded-lg", controls: !0, children: o });
|
|
6
3
|
export {
|
|
7
4
|
r as Video
|
|
8
5
|
};
|