@npm_leadtech/legal-contracts-ui 0.154.2 → 0.154.4

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.
@@ -9,7 +9,7 @@ const d = {
9
9
  time: /* @__PURE__ */ e(s, { "data-testid": "icon-3", className: "size-6 md:size-10", "aria-hidden": !0 })
10
10
  }, x = ({ benefits: t }) => /* @__PURE__ */ e("div", { className: "flex bg-neutral-200 px-6 py-4 md:justify-center md:py-6 lg:py-4", children: /* @__PURE__ */ e("div", { className: "flex flex-col gap-2 text-neutral-800 md:flex-row md:gap-12 lg:gap-20", children: t.map((i) => /* @__PURE__ */ a("div", { className: "flex items-center gap-4 md:gap-2", children: [
11
11
  d[i.src],
12
- /* @__PURE__ */ e("p", { className: "text-medium", children: i.text })
12
+ /* @__PURE__ */ e("p", { className: "text-medium whitespace-nowrap", children: i.text })
13
13
  ] }, i.text)) }) });
14
14
  export {
15
15
  x as BenefitsBar
@@ -1,92 +1,95 @@
1
1
  import { jsxs as l, jsx as r } from "react/jsx-runtime";
2
2
  import "react";
3
- import { SearchBar as u } from "./SearchBar.js";
4
- import { CloseIcon as f } from "./CloseIcon.js";
3
+ import { SearchBar as f } from "./SearchBar.js";
4
+ import { CloseIcon as b } from "./CloseIcon.js";
5
5
  import { LinkWrapper as h } from "./LinkWrapper.js";
6
- import { PhoneTalkIcon as b } from "./PhoneTalkIcon.js";
6
+ import { PhoneTalkIcon as N } from "./PhoneTalkIcon.js";
7
7
  const k = ({
8
- isOpen: s,
9
- onClose: m,
8
+ isOpen: n,
9
+ onClose: c,
10
10
  logo: d,
11
- userActions: c,
11
+ userActions: m,
12
12
  searchBarProps: o,
13
13
  sections: p = [],
14
14
  contactInfo: t,
15
- closeText: x
16
- }) => /* @__PURE__ */ l(
17
- "div",
18
- {
19
- className: `fixed inset-0 z-50 flex flex-col overflow-y-auto bg-white text-neutral-800 lg:hidden ${s ? "block" : "hidden"}`,
20
- children: [
21
- /* @__PURE__ */ l("div", { className: "flex items-center justify-between px-6 py-4", children: [
22
- d,
23
- /* @__PURE__ */ l(
24
- "button",
25
- {
26
- className: "text-small text-primary-700 flex cursor-pointer items-center justify-center gap-1 rounded border border-neutral-400 px-2 py-1",
27
- onClick: m,
28
- "aria-label": "Close menu",
29
- children: [
30
- x,
31
- /* @__PURE__ */ r(f, { fill: "var(--color-primary-700)" })
32
- ]
33
- }
34
- )
35
- ] }),
36
- /* @__PURE__ */ l("div", { className: "flex flex-1 flex-col pb-6", children: [
37
- /* @__PURE__ */ l("div", { className: "flex flex-col gap-6 px-6", children: [
38
- /* @__PURE__ */ r("div", { className: "flex items-center gap-4", children: c }),
39
- /* @__PURE__ */ r(u, { ...o })
40
- ] }),
41
- /* @__PURE__ */ r("nav", { id: "mobile-nav", className: "flex flex-col gap-0", children: p.map((e, n) => {
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(h, { variant: "secondary-green", children: e.content }) }, e.id ?? `custom-${n.toString()}`) : /* @__PURE__ */ l(
44
- "div",
45
- {
46
- className: e.title !== "" && !i ? "border-t border-b border-neutral-200 pt-4" : "",
47
- children: [
48
- e.title && /* @__PURE__ */ l("div", { className: `flex items-center gap-2 px-6 ${i ? "bg-neutral-50 py-4" : ""}`, children: [
49
- e.icon != null && /* @__PURE__ */ r("span", { className: "text-primary-700", children: e.icon }),
50
- /* @__PURE__ */ r("p", { className: "text-medium font-semibold", children: e.title })
51
- ] }),
52
- e.items != null && /* @__PURE__ */ l("ul", { className: `flex flex-col gap-4 ${i ? "p-6" : "px-6 py-4"}`, children: [
53
- e.items.map((a) => /* @__PURE__ */ l("li", { className: "text-medium flex items-center gap-1", children: [
54
- a.link,
55
- " ",
56
- a.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: a.tag })
57
- ] }, a.id)),
58
- e.seeAll != null && /* @__PURE__ */ r("li", { className: "font-semibold", children: e.seeAll })
59
- ] })
60
- ]
61
- },
62
- e.id ?? e.title ?? n.toString()
63
- );
64
- }) }),
65
- t && /* @__PURE__ */ l("div", { className: "mt-auto flex flex-col items-center justify-center border-t border-neutral-100 p-6", children: [
15
+ closeText: u
16
+ }) => {
17
+ const x = t?.contactHoursLabel?.includes(t?.contactHours ?? "");
18
+ return /* @__PURE__ */ l(
19
+ "div",
20
+ {
21
+ className: `fixed inset-0 z-50 flex flex-col overflow-y-auto bg-white text-neutral-800 lg:hidden ${n ? "block" : "hidden"}`,
22
+ children: [
23
+ /* @__PURE__ */ l("div", { className: "flex items-center justify-between px-6 py-4", children: [
24
+ d,
66
25
  /* @__PURE__ */ l(
67
- "a",
26
+ "button",
68
27
  {
69
- "data-qa": "mobile_menu_contact_phone",
70
- href: `tel:${t.phoneNumber.replaceAll(" ", "")}`,
71
- className: "bg-primary-700 flex w-full items-center justify-center gap-2 rounded-md p-3 text-base font-semibold text-white",
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: c,
30
+ "aria-label": "Close menu",
72
31
  children: [
73
- /* @__PURE__ */ r(b, { fill: "#ffff" }),
74
- t.phoneNumber
32
+ u,
33
+ /* @__PURE__ */ r(b, { fill: "var(--color-primary-700)" })
75
34
  ]
76
35
  }
77
- ),
78
- t.contactHours && /* @__PURE__ */ l("p", { className: "text-small mt-4 text-base text-neutral-500", children: [
79
- t.contactHoursLabel != null && /* @__PURE__ */ l("span", { children: [
80
- t.contactHoursLabel,
81
- " "
82
- ] }),
83
- t.contactHours
36
+ )
37
+ ] }),
38
+ /* @__PURE__ */ l("div", { className: "flex flex-1 flex-col pb-6", children: [
39
+ /* @__PURE__ */ l("div", { className: "flex flex-col gap-6 px-6", children: [
40
+ /* @__PURE__ */ r("div", { className: "flex items-center gap-4", children: m }),
41
+ /* @__PURE__ */ r(f, { ...o })
42
+ ] }),
43
+ /* @__PURE__ */ r("nav", { id: "mobile-nav", className: "flex flex-col gap-0", children: p.map((e, s) => {
44
+ const i = e.icon != null;
45
+ return e.content != null ? /* @__PURE__ */ r("div", { className: "flex items-center px-6 pb-8", children: /* @__PURE__ */ r(h, { variant: "secondary-green", children: e.content }) }, e.id ?? `custom-${s.toString()}`) : /* @__PURE__ */ l(
46
+ "div",
47
+ {
48
+ className: e.title !== "" && !i ? "border-t border-b border-neutral-200 pt-4" : "",
49
+ children: [
50
+ e.title && /* @__PURE__ */ l("div", { className: `flex items-center gap-2 px-6 ${i ? "bg-neutral-50 py-4" : ""}`, children: [
51
+ e.icon != null && /* @__PURE__ */ r("span", { className: "text-primary-700", children: e.icon }),
52
+ /* @__PURE__ */ r("p", { className: "text-medium font-semibold", children: e.title })
53
+ ] }),
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((a) => /* @__PURE__ */ l("li", { className: "text-medium flex items-center gap-1", children: [
56
+ a.link,
57
+ " ",
58
+ a.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: a.tag })
59
+ ] }, a.id)),
60
+ e.seeAll != null && /* @__PURE__ */ r("li", { className: "font-semibold", children: e.seeAll })
61
+ ] })
62
+ ]
63
+ },
64
+ e.id ?? e.title ?? s.toString()
65
+ );
66
+ }) }),
67
+ t && /* @__PURE__ */ l("div", { className: "mt-auto flex flex-col items-center justify-center border-t border-neutral-100 p-6", children: [
68
+ /* @__PURE__ */ l(
69
+ "a",
70
+ {
71
+ "data-qa": "mobile_menu_contact_phone",
72
+ href: `tel:${t.phoneNumber.replaceAll(" ", "")}`,
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
+ children: [
75
+ /* @__PURE__ */ r(N, { fill: "#ffff" }),
76
+ t.phoneNumber
77
+ ]
78
+ }
79
+ ),
80
+ t.contactHours && /* @__PURE__ */ l("p", { className: "text-small mt-4 text-base text-neutral-500", children: [
81
+ t.contactHoursLabel != null && /* @__PURE__ */ l("span", { children: [
82
+ t.contactHoursLabel,
83
+ " "
84
+ ] }),
85
+ !x && t.contactHours
86
+ ] })
84
87
  ] })
85
88
  ] })
86
- ] })
87
- ]
88
- }
89
- );
89
+ ]
90
+ }
91
+ );
92
+ };
90
93
  export {
91
94
  k as MobileMenu
92
95
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@npm_leadtech/legal-contracts-ui",
3
- "version": "0.154.2",
3
+ "version": "0.154.4",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",