@npm_leadtech/legal-contracts-ui 0.154.0 → 0.154.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/MobileMenu.js +11 -11
- package/package.json +1 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsxs as l, jsx as r } from "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
|
-
import { SearchBar as
|
|
3
|
+
import { SearchBar as x } from "./SearchBar.js";
|
|
4
4
|
import { CloseIcon as f } from "./CloseIcon.js";
|
|
5
|
-
import { LinkWrapper as
|
|
6
|
-
import { PhoneTalkIcon as
|
|
7
|
-
const
|
|
5
|
+
import { LinkWrapper as b } from "./LinkWrapper.js";
|
|
6
|
+
import { PhoneTalkIcon as h } from "./PhoneTalkIcon.js";
|
|
7
|
+
const H = ({
|
|
8
8
|
isOpen: s,
|
|
9
9
|
onClose: m,
|
|
10
10
|
logo: d,
|
|
@@ -12,7 +12,7 @@ const k = ({
|
|
|
12
12
|
searchBarProps: o,
|
|
13
13
|
sections: p = [],
|
|
14
14
|
contactInfo: t,
|
|
15
|
-
closeText:
|
|
15
|
+
closeText: u
|
|
16
16
|
}) => /* @__PURE__ */ l(
|
|
17
17
|
"div",
|
|
18
18
|
{
|
|
@@ -27,7 +27,7 @@ const k = ({
|
|
|
27
27
|
onClick: m,
|
|
28
28
|
"aria-label": "Close menu",
|
|
29
29
|
children: [
|
|
30
|
-
|
|
30
|
+
u,
|
|
31
31
|
/* @__PURE__ */ r(f, { fill: "var(--color-primary-700)" })
|
|
32
32
|
]
|
|
33
33
|
}
|
|
@@ -36,11 +36,11 @@ const k = ({
|
|
|
36
36
|
/* @__PURE__ */ l("div", { className: "flex flex-1 flex-col pb-6", children: [
|
|
37
37
|
/* @__PURE__ */ l("div", { className: "flex flex-col gap-6 px-6", children: [
|
|
38
38
|
/* @__PURE__ */ r("div", { className: "flex items-center gap-4", children: c }),
|
|
39
|
-
/* @__PURE__ */ r(
|
|
39
|
+
/* @__PURE__ */ r(x, { ...o })
|
|
40
40
|
] }),
|
|
41
41
|
/* @__PURE__ */ r("nav", { id: "mobile-nav", className: "flex flex-col gap-0", children: p.map((e, n) => {
|
|
42
42
|
const i = e.icon != null;
|
|
43
|
-
return e.content != null ? /* @__PURE__ */ r("div", { className: "flex items-center px-6 pb-8", children: /* @__PURE__ */ r(
|
|
43
|
+
return e.content != null ? /* @__PURE__ */ r("div", { className: "flex items-center px-6 pb-8", children: /* @__PURE__ */ r(b, { variant: "secondary-green", children: e.content }) }, e.id ?? `custom-${n.toString()}`) : /* @__PURE__ */ l(
|
|
44
44
|
"div",
|
|
45
45
|
{
|
|
46
46
|
className: e.title !== "" && !i ? "border-t border-b border-neutral-200 pt-4" : "",
|
|
@@ -70,7 +70,7 @@ const k = ({
|
|
|
70
70
|
href: `tel:${t.phoneNumber.replaceAll(" ", "")}`,
|
|
71
71
|
className: "bg-primary-700 flex w-full items-center justify-center gap-2 rounded-md p-3 text-base font-semibold text-white",
|
|
72
72
|
children: [
|
|
73
|
-
/* @__PURE__ */ r(
|
|
73
|
+
/* @__PURE__ */ r(h, { fill: "#ffff" }),
|
|
74
74
|
t.phoneNumber
|
|
75
75
|
]
|
|
76
76
|
}
|
|
@@ -80,7 +80,7 @@ const k = ({
|
|
|
80
80
|
t.contactHoursLabel,
|
|
81
81
|
" "
|
|
82
82
|
] }),
|
|
83
|
-
t.contactHours
|
|
83
|
+
!t.contactHoursLabel?.includes(t.contactHours) && t.contactHours
|
|
84
84
|
] })
|
|
85
85
|
] })
|
|
86
86
|
] })
|
|
@@ -88,5 +88,5 @@ const k = ({
|
|
|
88
88
|
}
|
|
89
89
|
);
|
|
90
90
|
export {
|
|
91
|
-
|
|
91
|
+
H as MobileMenu
|
|
92
92
|
};
|