@npm_leadtech/legal-contracts-ui 0.154.4 → 0.155.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/MobileMenu.js +19 -19
- package/package.json +1 -1
|
@@ -6,27 +6,27 @@ import { LinkWrapper as h } from "./LinkWrapper.js";
|
|
|
6
6
|
import { PhoneTalkIcon as N } from "./PhoneTalkIcon.js";
|
|
7
7
|
const k = ({
|
|
8
8
|
isOpen: n,
|
|
9
|
-
onClose:
|
|
10
|
-
logo:
|
|
11
|
-
userActions:
|
|
9
|
+
onClose: m,
|
|
10
|
+
logo: c,
|
|
11
|
+
userActions: d,
|
|
12
12
|
searchBarProps: o,
|
|
13
13
|
sections: p = [],
|
|
14
|
-
contactInfo:
|
|
14
|
+
contactInfo: a,
|
|
15
15
|
closeText: u
|
|
16
16
|
}) => {
|
|
17
|
-
const x =
|
|
17
|
+
const x = a?.contactHoursLabel?.includes(a.contactHours ?? "");
|
|
18
18
|
return /* @__PURE__ */ l(
|
|
19
19
|
"div",
|
|
20
20
|
{
|
|
21
21
|
className: `fixed inset-0 z-50 flex flex-col overflow-y-auto bg-white text-neutral-800 lg:hidden ${n ? "block" : "hidden"}`,
|
|
22
22
|
children: [
|
|
23
23
|
/* @__PURE__ */ l("div", { className: "flex items-center justify-between px-6 py-4", children: [
|
|
24
|
-
|
|
24
|
+
c,
|
|
25
25
|
/* @__PURE__ */ l(
|
|
26
26
|
"button",
|
|
27
27
|
{
|
|
28
28
|
className: "text-small text-primary-700 flex cursor-pointer items-center justify-center gap-1 rounded border border-neutral-400 px-2 py-1",
|
|
29
|
-
onClick:
|
|
29
|
+
onClick: m,
|
|
30
30
|
"aria-label": "Close menu",
|
|
31
31
|
children: [
|
|
32
32
|
u,
|
|
@@ -37,7 +37,7 @@ const k = ({
|
|
|
37
37
|
] }),
|
|
38
38
|
/* @__PURE__ */ l("div", { className: "flex flex-1 flex-col pb-6", children: [
|
|
39
39
|
/* @__PURE__ */ l("div", { className: "flex flex-col gap-6 px-6", children: [
|
|
40
|
-
/* @__PURE__ */ r("div", { className: "flex items-center gap-4", children:
|
|
40
|
+
/* @__PURE__ */ r("div", { className: "flex items-center gap-4", children: d }),
|
|
41
41
|
/* @__PURE__ */ r(f, { ...o })
|
|
42
42
|
] }),
|
|
43
43
|
/* @__PURE__ */ r("nav", { id: "mobile-nav", className: "flex flex-col gap-0", children: p.map((e, s) => {
|
|
@@ -52,11 +52,11 @@ const k = ({
|
|
|
52
52
|
/* @__PURE__ */ r("p", { className: "text-medium font-semibold", children: e.title })
|
|
53
53
|
] }),
|
|
54
54
|
e.items != null && /* @__PURE__ */ l("ul", { className: `flex flex-col gap-4 ${i ? "p-6" : "px-6 py-4"}`, children: [
|
|
55
|
-
e.items.map((
|
|
56
|
-
|
|
55
|
+
e.items.map((t) => /* @__PURE__ */ l("li", { className: "text-medium flex items-center gap-1", children: [
|
|
56
|
+
t.link,
|
|
57
57
|
" ",
|
|
58
|
-
|
|
59
|
-
] },
|
|
58
|
+
t.tag && /* @__PURE__ */ r("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: t.tag })
|
|
59
|
+
] }, t.id)),
|
|
60
60
|
e.seeAll != null && /* @__PURE__ */ r("li", { className: "font-semibold", children: e.seeAll })
|
|
61
61
|
] })
|
|
62
62
|
]
|
|
@@ -64,25 +64,25 @@ const k = ({
|
|
|
64
64
|
e.id ?? e.title ?? s.toString()
|
|
65
65
|
);
|
|
66
66
|
}) }),
|
|
67
|
-
|
|
67
|
+
a && /* @__PURE__ */ l("div", { className: "mt-auto flex flex-col items-center justify-center border-t border-neutral-100 p-6", children: [
|
|
68
68
|
/* @__PURE__ */ l(
|
|
69
69
|
"a",
|
|
70
70
|
{
|
|
71
71
|
"data-qa": "mobile_menu_contact_phone",
|
|
72
|
-
href: `tel:${
|
|
72
|
+
href: `tel:${a.phoneNumber.replaceAll(" ", "")}`,
|
|
73
73
|
className: "bg-primary-700 flex w-full items-center justify-center gap-2 rounded-md p-3 text-base font-semibold text-white",
|
|
74
74
|
children: [
|
|
75
75
|
/* @__PURE__ */ r(N, { fill: "#ffff" }),
|
|
76
|
-
|
|
76
|
+
a.phoneNumber
|
|
77
77
|
]
|
|
78
78
|
}
|
|
79
79
|
),
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
80
|
+
a.contactHours && /* @__PURE__ */ l("p", { className: "text-small mt-4 text-base text-neutral-500", children: [
|
|
81
|
+
a.contactHoursLabel != null && /* @__PURE__ */ l("span", { children: [
|
|
82
|
+
a.contactHoursLabel,
|
|
83
83
|
" "
|
|
84
84
|
] }),
|
|
85
|
-
!x &&
|
|
85
|
+
!x && a.contactHours
|
|
86
86
|
] })
|
|
87
87
|
] })
|
|
88
88
|
] })
|