@npm_leadtech/legal-contracts-ui 0.153.0 → 0.154.0
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/Input.js +54 -60
- package/dist/components/Modal.js +41 -41
- package/dist/components/NavMenuItem.js +53 -45
- package/dist/components/PricingPlanCard.js +9 -9
- package/dist/components/UploadZone.js +5 -4
- package/package.json +1 -1
- package/dist/components/index.d.ts +0 -1333
|
@@ -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: l, variant: o = "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: o, variant: l = "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[o] ?? i.default, h = e.startsWith("http"), d = (() => {
|
|
14
14
|
if (!a) return e;
|
|
15
15
|
try {
|
|
16
|
-
return decodeURIComponent(e).
|
|
16
|
+
return decodeURIComponent(e).replaceAll(/\s/g, "");
|
|
17
17
|
} catch {
|
|
18
|
-
return e.
|
|
18
|
+
return e.replaceAll("%20", "").replaceAll(/\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: l });
|
|
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().replaceAll(":", "")}`;
|
|
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().replaceAll(/\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 }),
|
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, r] = 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,64 +27,58 @@ 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
|
-
|
|
30
|
+
i && /* @__PURE__ */ t("span", { className: "group relative inline-flex", children: [
|
|
31
|
+
/* @__PURE__ */ e(
|
|
32
|
+
"button",
|
|
33
|
+
{
|
|
34
|
+
className: "cursor-pointer rounded-full p-0",
|
|
35
|
+
type: "button",
|
|
36
|
+
"aria-expanded": n,
|
|
37
|
+
onMouseEnter: () => {
|
|
38
|
+
r(!1);
|
|
39
|
+
},
|
|
40
|
+
onClick: () => {
|
|
41
|
+
r(!1), c((a) => !a);
|
|
42
|
+
},
|
|
43
|
+
children: /* @__PURE__ */ e(y, { "aria-hidden": "true" })
|
|
44
|
+
}
|
|
45
|
+
),
|
|
46
|
+
/* @__PURE__ */ t(
|
|
47
|
+
"span",
|
|
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"
|
|
49
54
|
),
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
"
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
children:
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
/* @__PURE__ */ e(
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
},
|
|
78
|
-
children: /* @__PURE__ */ e(I, { width: 20, height: 20, fill: "white" })
|
|
79
|
-
}
|
|
80
|
-
)
|
|
81
|
-
] })
|
|
82
|
-
]
|
|
83
|
-
}
|
|
84
|
-
)
|
|
85
|
-
]
|
|
86
|
-
}
|
|
87
|
-
)
|
|
55
|
+
role: "tooltip",
|
|
56
|
+
children: [
|
|
57
|
+
/* @__PURE__ */ e(
|
|
58
|
+
"span",
|
|
59
|
+
{
|
|
60
|
+
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)]",
|
|
61
|
+
"aria-hidden": "true"
|
|
62
|
+
}
|
|
63
|
+
),
|
|
64
|
+
/* @__PURE__ */ t("span", { className: "text-extra-small inline-flex items-center gap-2 px-1 py-2 leading-none font-bold text-white", children: [
|
|
65
|
+
/* @__PURE__ */ e("span", { children: i }),
|
|
66
|
+
/* @__PURE__ */ e(
|
|
67
|
+
"button",
|
|
68
|
+
{
|
|
69
|
+
type: "button",
|
|
70
|
+
className: "cursor-pointer p-0",
|
|
71
|
+
onClick: () => {
|
|
72
|
+
r(!0), c(!1);
|
|
73
|
+
},
|
|
74
|
+
children: /* @__PURE__ */ e(I, { width: 20, height: 20, fill: "white" })
|
|
75
|
+
}
|
|
76
|
+
)
|
|
77
|
+
] })
|
|
78
|
+
]
|
|
79
|
+
}
|
|
80
|
+
)
|
|
81
|
+
] })
|
|
88
82
|
] }),
|
|
89
83
|
/* @__PURE__ */ e(
|
|
90
84
|
"input",
|
|
@@ -99,8 +93,8 @@ const z = ({
|
|
|
99
93
|
"text-small focus-visible:outline-primary-500 w-full rounded border p-3 text-neutral-800 placeholder:text-neutral-600 focus-visible:outline-2",
|
|
100
94
|
s ? "border-error-500 bg-error-25" : "bg-neutral-25 border-neutral-400"
|
|
101
95
|
),
|
|
102
|
-
onChange: (
|
|
103
|
-
b?.(
|
|
96
|
+
onChange: (a) => {
|
|
97
|
+
b?.(a.target.value);
|
|
104
98
|
},
|
|
105
99
|
...w
|
|
106
100
|
}
|
package/dist/components/Modal.js
CHANGED
|
@@ -1,64 +1,64 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsxs as
|
|
2
|
+
import { jsxs as t, Fragment as u, jsx as e } 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 f } from "react-dom";
|
|
5
|
+
import { CloseIcon as b } from "./CloseIcon.js";
|
|
6
|
+
const x = ({ trigger: r, children: a, isOpen: o, setIsOpen: l, showClose: s, onTrigger: i }) => {
|
|
7
|
+
const c = () => {
|
|
8
|
+
i?.(), l(!0);
|
|
9
9
|
}, n = () => {
|
|
10
10
|
l(!1);
|
|
11
|
-
}, u = (e) => {
|
|
12
|
-
e.target === e.currentTarget && n();
|
|
13
11
|
};
|
|
14
12
|
return m(() => {
|
|
15
|
-
if (!
|
|
16
|
-
const
|
|
13
|
+
if (!o) return;
|
|
14
|
+
const d = document.body.style.overflow;
|
|
17
15
|
return document.body.style.overflow = "hidden", () => {
|
|
18
|
-
document.body.style.overflow =
|
|
16
|
+
document.body.style.overflow = d;
|
|
19
17
|
};
|
|
20
|
-
}, [
|
|
21
|
-
!!r && /* @__PURE__ */
|
|
18
|
+
}, [o]), /* @__PURE__ */ t(u, { children: [
|
|
19
|
+
!!r && /* @__PURE__ */ e(
|
|
22
20
|
"button",
|
|
23
21
|
{
|
|
24
22
|
type: "button",
|
|
25
23
|
"aria-label": "zoom",
|
|
26
|
-
onClick:
|
|
24
|
+
onClick: c,
|
|
27
25
|
className: "flex w-full cursor-pointer justify-center",
|
|
28
26
|
children: r
|
|
29
27
|
}
|
|
30
28
|
),
|
|
31
|
-
|
|
32
|
-
/* @__PURE__ */
|
|
29
|
+
o && f(
|
|
30
|
+
/* @__PURE__ */ t(
|
|
33
31
|
"div",
|
|
34
32
|
{
|
|
35
33
|
role: "dialog",
|
|
36
34
|
"aria-modal": "true",
|
|
37
|
-
"data-testid": "modal-backdrop",
|
|
38
35
|
className: "bg-primary-900/80 fixed inset-0 z-1001 flex items-center justify-center",
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
36
|
+
children: [
|
|
37
|
+
/* @__PURE__ */ e(
|
|
38
|
+
"button",
|
|
39
|
+
{
|
|
40
|
+
type: "button",
|
|
41
|
+
tabIndex: -1,
|
|
42
|
+
"data-testid": "modal-backdrop",
|
|
43
|
+
className: "absolute inset-0 cursor-default border-none bg-transparent p-0",
|
|
44
|
+
onClick: n,
|
|
45
|
+
"aria-label": "Close modal"
|
|
46
|
+
}
|
|
47
|
+
),
|
|
48
|
+
/* @__PURE__ */ e("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__ */ t("div", { className: "pointer-events-auto relative", children: [
|
|
49
|
+
s && /* @__PURE__ */ e(
|
|
50
|
+
"button",
|
|
51
|
+
{
|
|
52
|
+
type: "button",
|
|
53
|
+
className: "absolute top-4 right-4 z-10 cursor-pointer rounded-full p-2 transition-colors hover:bg-neutral-100 focus:outline-none",
|
|
54
|
+
onClick: n,
|
|
55
|
+
"aria-label": "Close",
|
|
56
|
+
children: /* @__PURE__ */ e(b, {})
|
|
57
|
+
}
|
|
58
|
+
),
|
|
59
|
+
a
|
|
60
|
+
] }) })
|
|
61
|
+
]
|
|
62
62
|
}
|
|
63
63
|
),
|
|
64
64
|
document.body
|
|
@@ -66,5 +66,5 @@ const w = ({ trigger: r, children: i, isOpen: t, setIsOpen: l, showClose: s, onT
|
|
|
66
66
|
] });
|
|
67
67
|
};
|
|
68
68
|
export {
|
|
69
|
-
|
|
69
|
+
x as Modal
|
|
70
70
|
};
|
|
@@ -1,83 +1,91 @@
|
|
|
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 m, jsx as t } from "react/jsx-runtime";
|
|
3
|
+
import { useState as v, useCallback as w, useRef as x, useEffect as C } from "react";
|
|
4
|
+
import { ChevronDownIcon as D } from "./ChevronDownIcon.js";
|
|
5
|
+
import { ChevronRightIcon as _ } from "./ChevronRightIcon.js";
|
|
6
|
+
const q = (r) => {
|
|
7
|
+
const { hasDropdown: I, isNested: b, isOpen: N, onToggle: i, dataQa: k, onItemClick: c } = r, [L, O] = v(!1), [y, f] = v(null), l = N ?? L, n = w(
|
|
8
8
|
(e) => {
|
|
9
|
-
e ||
|
|
9
|
+
e || f(null), i ? i(e) : O(e);
|
|
10
10
|
},
|
|
11
11
|
[i]
|
|
12
|
-
),
|
|
13
|
-
|
|
14
|
-
if (!
|
|
15
|
-
const e = (
|
|
16
|
-
|
|
12
|
+
), d = x(null);
|
|
13
|
+
C(() => {
|
|
14
|
+
if (!l) return;
|
|
15
|
+
const e = (u) => {
|
|
16
|
+
d.current && !d.current.contains(u.target) && n(!1);
|
|
17
17
|
};
|
|
18
18
|
return document.addEventListener("mousedown", e), () => {
|
|
19
19
|
document.removeEventListener("mousedown", e);
|
|
20
20
|
};
|
|
21
|
-
}, [
|
|
22
|
-
const
|
|
21
|
+
}, [l, n]);
|
|
22
|
+
const p = {
|
|
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: D
|
|
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: _
|
|
34
34
|
}
|
|
35
|
-
}, o =
|
|
36
|
-
n(!1),
|
|
37
|
-
},
|
|
38
|
-
|
|
39
|
-
|
|
35
|
+
}, o = b ? p.nested : p.topLevel, E = o.Icon, s = w(() => {
|
|
36
|
+
n(!1), c && c();
|
|
37
|
+
}, [c, n]), h = x(null);
|
|
38
|
+
C(() => {
|
|
39
|
+
const e = h.current;
|
|
40
|
+
if (e)
|
|
41
|
+
return e.addEventListener("click", s), () => {
|
|
42
|
+
e.removeEventListener("click", s);
|
|
43
|
+
};
|
|
44
|
+
}, [s]);
|
|
45
|
+
const M = (e) => {
|
|
46
|
+
e.stopPropagation(), n(!l);
|
|
47
|
+
}, T = () => {
|
|
40
48
|
globalThis.window.matchMedia("(hover: hover)").matches && n(!0);
|
|
41
|
-
},
|
|
49
|
+
}, $ = () => {
|
|
42
50
|
globalThis.window.matchMedia("(hover: hover)").matches && n(!1);
|
|
43
51
|
};
|
|
44
|
-
if (
|
|
45
|
-
const { dropdownItems: e, label:
|
|
46
|
-
return /* @__PURE__ */
|
|
52
|
+
if (I) {
|
|
53
|
+
const { dropdownItems: e, label: u } = r;
|
|
54
|
+
return /* @__PURE__ */ m(
|
|
47
55
|
"li",
|
|
48
56
|
{
|
|
49
|
-
ref:
|
|
57
|
+
ref: d,
|
|
50
58
|
className: o.liClass,
|
|
51
|
-
onMouseEnter:
|
|
52
|
-
onMouseLeave:
|
|
59
|
+
onMouseEnter: T,
|
|
60
|
+
onMouseLeave: $,
|
|
53
61
|
children: [
|
|
54
|
-
/* @__PURE__ */
|
|
62
|
+
/* @__PURE__ */ m(
|
|
55
63
|
"button",
|
|
56
64
|
{
|
|
57
|
-
"data-qa":
|
|
65
|
+
"data-qa": k,
|
|
58
66
|
className: `text-small flex w-full cursor-pointer items-center justify-between gap-1 text-nowrap text-neutral-800 transition-colors ${o.triggerClass}`,
|
|
59
67
|
"aria-haspopup": "menu",
|
|
60
|
-
"aria-expanded":
|
|
61
|
-
onClick:
|
|
68
|
+
"aria-expanded": l,
|
|
69
|
+
onClick: M,
|
|
62
70
|
children: [
|
|
63
|
-
/* @__PURE__ */ t("span", { className: "text-medium", children:
|
|
64
|
-
/* @__PURE__ */ t(
|
|
71
|
+
/* @__PURE__ */ t("span", { className: "text-medium", children: u }),
|
|
72
|
+
/* @__PURE__ */ t(E, { fill: "#000", width: 20, height: 20 })
|
|
65
73
|
]
|
|
66
74
|
}
|
|
67
75
|
),
|
|
68
76
|
/* @__PURE__ */ t(
|
|
69
77
|
"div",
|
|
70
78
|
{
|
|
71
|
-
className: `absolute z-50 min-w-48 transition-all duration-200 ${o.dropdownPosition} ${
|
|
79
|
+
className: `absolute z-50 min-w-48 transition-all duration-200 ${o.dropdownPosition} ${l ? "pointer-events-auto opacity-100" : "pointer-events-none opacity-0"}`,
|
|
72
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((a) => /* @__PURE__ */ t(
|
|
73
|
-
|
|
81
|
+
q,
|
|
74
82
|
{
|
|
75
83
|
...a,
|
|
76
84
|
isNested: !0,
|
|
77
|
-
onItemClick:
|
|
78
|
-
isOpen:
|
|
79
|
-
onToggle: (
|
|
80
|
-
|
|
85
|
+
onItemClick: s,
|
|
86
|
+
isOpen: y === a.id,
|
|
87
|
+
onToggle: (R) => {
|
|
88
|
+
f(R ? a.id : null);
|
|
81
89
|
}
|
|
82
90
|
},
|
|
83
91
|
a.id
|
|
@@ -88,18 +96,18 @@ const D = (l) => {
|
|
|
88
96
|
}
|
|
89
97
|
);
|
|
90
98
|
}
|
|
91
|
-
const { link:
|
|
92
|
-
return /* @__PURE__ */ t("li", { className: o.liClass,
|
|
99
|
+
const { link: j, tag: g, bold: P } = r;
|
|
100
|
+
return /* @__PURE__ */ t("li", { ref: h, className: o.liClass, children: /* @__PURE__ */ m(
|
|
93
101
|
"span",
|
|
94
102
|
{
|
|
95
103
|
className: `text-small relative flex w-full items-center gap-1 text-nowrap text-neutral-800 transition-colors ${o.triggerClass} `,
|
|
96
104
|
children: [
|
|
97
|
-
/* @__PURE__ */ t("span", { className: `text-medium flex-1 ${
|
|
98
|
-
|
|
105
|
+
/* @__PURE__ */ t("span", { className: `text-medium flex-1 ${P ? "font-bold" : ""} [&_a]:after:absolute [&_a]:after:inset-0`, children: j }),
|
|
106
|
+
g && /* @__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: g })
|
|
99
107
|
]
|
|
100
108
|
}
|
|
101
109
|
) });
|
|
102
110
|
};
|
|
103
111
|
export {
|
|
104
|
-
|
|
112
|
+
q as NavMenuItem
|
|
105
113
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as n, jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import { Markdown as d } from "./Markdown.js";
|
|
3
|
-
import { LinkWrapper as
|
|
4
|
-
const x = ({ variant: r, title: i, subtitle: s, items: o, cta:
|
|
3
|
+
import { LinkWrapper as m } from "./LinkWrapper.js";
|
|
4
|
+
const x = ({ variant: r, title: i, subtitle: s, items: o, cta: t }) => {
|
|
5
5
|
const a = {
|
|
6
6
|
Primary: {
|
|
7
7
|
container: "bg-neutral-25",
|
|
@@ -14,14 +14,14 @@ const x = ({ variant: r, title: i, subtitle: s, items: o, cta: n }) => {
|
|
|
14
14
|
button: "primary-yellow"
|
|
15
15
|
}
|
|
16
16
|
}, c = { Primary: "bg-primary-100 p-2 rounded-lg", Secondary: "bg-secondary-200 p-2 rounded-lg" };
|
|
17
|
-
return /* @__PURE__ */
|
|
17
|
+
return /* @__PURE__ */ n("div", { className: `${a[r].container} flex h-full flex-col gap-6 rounded-2xl p-6`, children: [
|
|
18
18
|
/* @__PURE__ */ e("span", { className: `text-big w-fit rounded-lg px-4 py-2 font-bold ${a[r].chip}`, children: i }),
|
|
19
19
|
/* @__PURE__ */ e("p", { className: "text-medium font-bold text-neutral-800", children: s }),
|
|
20
20
|
/* @__PURE__ */ e("div", { className: "h-px w-full bg-neutral-200" }),
|
|
21
|
-
/* @__PURE__ */ e("ul", { className: "flex flex-col gap-
|
|
21
|
+
/* @__PURE__ */ e("ul", { className: "flex flex-col gap-6", children: o.map((l) => /* @__PURE__ */ n(
|
|
22
22
|
"li",
|
|
23
23
|
{
|
|
24
|
-
className: `flex items-start gap-2 ${l.isHighlighted ? c[l.cardStyles || "Primary"] : ""}`,
|
|
24
|
+
className: `text-small flex items-start gap-2 ${l.isHighlighted ? c[l.cardStyles || "Primary"] : ""}`,
|
|
25
25
|
children: [
|
|
26
26
|
/* @__PURE__ */ e("div", { className: "pt-0.5", children: l.image }),
|
|
27
27
|
/* @__PURE__ */ e(d, { content: l.text, className: "mb-0!", variant: "legal" })
|
|
@@ -29,13 +29,13 @@ const x = ({ variant: r, title: i, subtitle: s, items: o, cta: n }) => {
|
|
|
29
29
|
},
|
|
30
30
|
l.id
|
|
31
31
|
)) }),
|
|
32
|
-
|
|
33
|
-
|
|
32
|
+
t != null && /* @__PURE__ */ e(
|
|
33
|
+
m,
|
|
34
34
|
{
|
|
35
35
|
size: "large",
|
|
36
36
|
variant: a[r].button,
|
|
37
37
|
className: "text-medium w-fit justify-center font-bold",
|
|
38
|
-
children:
|
|
38
|
+
children: t
|
|
39
39
|
}
|
|
40
40
|
)
|
|
41
41
|
] });
|
|
@@ -10,12 +10,13 @@ const b = ({
|
|
|
10
10
|
fileSizeText: o,
|
|
11
11
|
disclaimer: i,
|
|
12
12
|
onAddDocument: r,
|
|
13
|
-
onDropDocument:
|
|
14
|
-
containerClassName:
|
|
13
|
+
onDropDocument: s,
|
|
14
|
+
containerClassName: m = "",
|
|
15
15
|
dataQa: p
|
|
16
16
|
}) => /* @__PURE__ */ l(
|
|
17
17
|
"div",
|
|
18
18
|
{
|
|
19
|
+
role: "presentation",
|
|
19
20
|
onDragOver: (e) => {
|
|
20
21
|
e.preventDefault();
|
|
21
22
|
},
|
|
@@ -23,11 +24,11 @@ const b = ({
|
|
|
23
24
|
e.preventDefault();
|
|
24
25
|
},
|
|
25
26
|
onDrop: (e) => {
|
|
26
|
-
e.preventDefault(),
|
|
27
|
+
e.preventDefault(), s?.(e);
|
|
27
28
|
},
|
|
28
29
|
className: c(
|
|
29
30
|
"group rounded-3xl bg-neutral-200/50 p-4 backdrop-blur-xs md:max-w-80 lg:max-w-120 xl:max-w-140",
|
|
30
|
-
|
|
31
|
+
m
|
|
31
32
|
),
|
|
32
33
|
children: [
|
|
33
34
|
/* @__PURE__ */ t("input", { type: "file", id: "file-upload", className: "sr-only", onChange: r, multiple: !0 }),
|