@npm_leadtech/legal-contracts-ui 0.52.0 → 0.52.2
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/Header.d.ts +21 -11
- package/dist/components/Header.js +26 -97
- package/dist/components/MobileMenu.d.ts +52 -0
- package/dist/components/MobileMenu.js +76 -0
- package/dist/components/NavMenu.d.ts +2 -0
- package/dist/components/NavMenu.js +2 -2
- package/dist/components/NavMenuItem.d.ts +1 -0
- package/dist/components/NavMenuItem.js +28 -26
- package/dist/components/SearchBar.js +1 -1
- package/dist/components/index.d.ts +21 -9
- package/dist/globals.css +1 -1
- package/package.json +5 -1
|
@@ -14,15 +14,10 @@ export declare const Header: FC<HeaderProps>;
|
|
|
14
14
|
export declare interface HeaderProps {
|
|
15
15
|
logo: ReactNode;
|
|
16
16
|
navMenu: NavMenuProps;
|
|
17
|
-
seeAll: ReactNode;
|
|
18
17
|
searchBarProps: SearchBarProps;
|
|
19
18
|
languageSelectorProps?: LanguageSelectorProps;
|
|
20
19
|
userActions: ReactNode;
|
|
21
|
-
|
|
22
|
-
onOpenMobileMenu?: () => void;
|
|
23
|
-
onCloseMobileMenu?: () => void;
|
|
24
|
-
mobileMenuSections?: MobileMenuSection[];
|
|
25
|
-
mobileContactInfo?: MobileContactInfo;
|
|
20
|
+
mobileMenu: MobileMenuProps;
|
|
26
21
|
}
|
|
27
22
|
|
|
28
23
|
export interface LanguageSelectorProps {
|
|
@@ -35,20 +30,33 @@ export interface LanguageSelectorProps {
|
|
|
35
30
|
|
|
36
31
|
export type LanguageSelectorVariant = 'default' | 'compact';
|
|
37
32
|
|
|
38
|
-
export
|
|
33
|
+
export interface MobileContactInfo {
|
|
39
34
|
phoneNumber: string;
|
|
40
35
|
contactHoursLabel?: string;
|
|
41
36
|
contactHours?: string;
|
|
42
37
|
}
|
|
43
38
|
|
|
44
|
-
export
|
|
39
|
+
export interface MobileMenuProps {
|
|
40
|
+
isOpen: boolean;
|
|
41
|
+
onOpen: () => void;
|
|
42
|
+
onClose: () => void;
|
|
43
|
+
logo: ReactNode;
|
|
44
|
+
userActions: ReactNode;
|
|
45
|
+
searchBarProps: SearchBarProps;
|
|
46
|
+
sections?: MobileMenuSection[];
|
|
47
|
+
contactInfo?: MobileContactInfo;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export interface MobileMenuSection {
|
|
51
|
+
id?: string;
|
|
45
52
|
title?: string;
|
|
46
|
-
icon
|
|
47
|
-
items
|
|
53
|
+
icon: ReactNode | null;
|
|
54
|
+
items?: {
|
|
48
55
|
label: string;
|
|
49
56
|
href?: string;
|
|
50
57
|
}[];
|
|
51
|
-
seeAll?: ReactNode;
|
|
58
|
+
seeAll?: ReactNode | null;
|
|
59
|
+
content?: ReactNode | null;
|
|
52
60
|
}
|
|
53
61
|
|
|
54
62
|
export interface NavMenuItemProps {
|
|
@@ -59,10 +67,12 @@ export interface NavMenuItemProps {
|
|
|
59
67
|
dropdownContent?: ReactNode;
|
|
60
68
|
tag?: string;
|
|
61
69
|
isNested?: boolean;
|
|
70
|
+
bold?: boolean;
|
|
62
71
|
}
|
|
63
72
|
|
|
64
73
|
export interface NavMenuProps {
|
|
65
74
|
navItems: NavMenuItemProps[];
|
|
75
|
+
className?: string;
|
|
66
76
|
}
|
|
67
77
|
|
|
68
78
|
export interface SearchBarProps {
|
|
@@ -1,112 +1,41 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as r, Fragment as d, jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
|
-
import {
|
|
3
|
+
import { MobileMenu as c } from "./MobileMenu.js";
|
|
4
|
+
import { NavMenu as s } from "./NavMenu.js";
|
|
5
|
+
import { LanguageSelector as p } from "./LanguageSelector.js";
|
|
6
|
+
import { HamburgerIcon as o } from "./HamburgerIcon.js";
|
|
4
7
|
import { SearchBar as x } from "./SearchBar.js";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
onOpenMobileMenu: h,
|
|
18
|
-
onCloseMobileMenu: m,
|
|
19
|
-
mobileMenuSections: o = [],
|
|
20
|
-
mobileContactInfo: a
|
|
21
|
-
}) => /* @__PURE__ */ l(N, { children: [
|
|
22
|
-
/* @__PURE__ */ e("header", { className: "bg-primary-50", children: /* @__PURE__ */ l("div", { className: "flex w-full items-center justify-between px-4 py-4 text-neutral-800 md:px-8", children: [
|
|
23
|
-
/* @__PURE__ */ l("div", { className: "flex flex-1 items-center gap-8", children: [
|
|
24
|
-
i,
|
|
25
|
-
/* @__PURE__ */ e("div", { className: "hidden lg:block", children: /* @__PURE__ */ e(b, { ...p }) })
|
|
8
|
+
const j = ({
|
|
9
|
+
logo: a,
|
|
10
|
+
navMenu: m,
|
|
11
|
+
searchBarProps: l,
|
|
12
|
+
languageSelectorProps: n,
|
|
13
|
+
userActions: t,
|
|
14
|
+
mobileMenu: i
|
|
15
|
+
}) => /* @__PURE__ */ r(d, { children: [
|
|
16
|
+
/* @__PURE__ */ e("header", { className: "bg-primary-50", children: /* @__PURE__ */ r("div", { className: "flex w-full items-center justify-between px-4 py-4 text-neutral-800 md:px-8", children: [
|
|
17
|
+
/* @__PURE__ */ r("div", { className: "flex flex-1 items-center gap-8", children: [
|
|
18
|
+
a,
|
|
19
|
+
/* @__PURE__ */ e(s, { className: "hidden lg:block", ...m })
|
|
26
20
|
] }),
|
|
27
|
-
/* @__PURE__ */
|
|
28
|
-
/* @__PURE__ */ e(x, { ...
|
|
29
|
-
|
|
30
|
-
|
|
21
|
+
/* @__PURE__ */ r("div", { className: "text-medium hidden flex-wrap items-center gap-4 lg:flex xl:gap-6", children: [
|
|
22
|
+
/* @__PURE__ */ e(x, { ...l }),
|
|
23
|
+
n && /* @__PURE__ */ e("div", { className: "hidden xl:block", children: /* @__PURE__ */ e(p, { ...n }) }),
|
|
24
|
+
t
|
|
31
25
|
] }),
|
|
32
26
|
/* @__PURE__ */ e(
|
|
33
27
|
"button",
|
|
34
28
|
{
|
|
35
29
|
className: "flex cursor-pointer items-center justify-center p-2 lg:hidden",
|
|
36
|
-
onClick:
|
|
30
|
+
onClick: i.onOpen,
|
|
37
31
|
"aria-label": "Open menu",
|
|
38
|
-
"aria-expanded":
|
|
39
|
-
children: /* @__PURE__ */ e(
|
|
32
|
+
"aria-expanded": i.isOpen,
|
|
33
|
+
children: /* @__PURE__ */ e(o, {})
|
|
40
34
|
}
|
|
41
35
|
)
|
|
42
36
|
] }) }),
|
|
43
|
-
|
|
44
|
-
/* @__PURE__ */ l("div", { className: "flex items-center justify-between px-6 py-4", children: [
|
|
45
|
-
i,
|
|
46
|
-
/* @__PURE__ */ e(
|
|
47
|
-
"button",
|
|
48
|
-
{
|
|
49
|
-
className: "flex cursor-pointer items-center justify-center p-2",
|
|
50
|
-
onClick: m,
|
|
51
|
-
"aria-label": "Close menu",
|
|
52
|
-
children: /* @__PURE__ */ e(j, {})
|
|
53
|
-
}
|
|
54
|
-
)
|
|
55
|
-
] }),
|
|
56
|
-
/* @__PURE__ */ l("div", { className: "flex flex-1 flex-col pb-6", children: [
|
|
57
|
-
/* @__PURE__ */ l("div", { className: "flex flex-col gap-6 px-6", children: [
|
|
58
|
-
/* @__PURE__ */ e("div", { className: "flex items-center gap-4", children: n }),
|
|
59
|
-
/* @__PURE__ */ e(x, { ...c })
|
|
60
|
-
] }),
|
|
61
|
-
/* @__PURE__ */ e("nav", { className: "flex-1", children: o.map((r, u) => /* @__PURE__ */ l(
|
|
62
|
-
"div",
|
|
63
|
-
{
|
|
64
|
-
className: `py-4 ${r.icon == null && r.title ? "border-t border-b border-neutral-200" : ""}`,
|
|
65
|
-
children: [
|
|
66
|
-
r.title && /* @__PURE__ */ l("div", { className: `flex items-start px-6 ${r.icon == null ? "py-2" : "bg-neutral-50 py-4"}`, children: [
|
|
67
|
-
r.icon !== null && /* @__PURE__ */ e("span", { className: "text-primary-700 mr-4", children: r.icon }),
|
|
68
|
-
/* @__PURE__ */ e("h4", { className: "text-base font-semibold text-neutral-800", children: r.title })
|
|
69
|
-
] }),
|
|
70
|
-
/* @__PURE__ */ l("div", { className: "", children: [
|
|
71
|
-
/* @__PURE__ */ e("ul", { className: "mt-3 flex flex-col", children: r.items.map((t) => /* @__PURE__ */ e("li", { className: "hover:bg-primary-100 py-3 pl-6", children: /* @__PURE__ */ e(
|
|
72
|
-
"a",
|
|
73
|
-
{
|
|
74
|
-
href: t.href ?? "#",
|
|
75
|
-
className: "hover:text-primary-700 text-base transition-colors",
|
|
76
|
-
onClick: m,
|
|
77
|
-
children: t.label
|
|
78
|
-
}
|
|
79
|
-
) }, t.label)) }),
|
|
80
|
-
r.seeAll
|
|
81
|
-
] })
|
|
82
|
-
]
|
|
83
|
-
},
|
|
84
|
-
r.title ?? u
|
|
85
|
-
)) }),
|
|
86
|
-
/* @__PURE__ */ e("div", { className: "my-4 flex items-center justify-center", children: f }),
|
|
87
|
-
a && /* @__PURE__ */ l("div", { className: "mt-auto flex flex-col items-center justify-center border-t border-neutral-100 p-6", children: [
|
|
88
|
-
/* @__PURE__ */ l(
|
|
89
|
-
"a",
|
|
90
|
-
{
|
|
91
|
-
href: `tel:${a.phoneNumber.replaceAll(" ", "")}`,
|
|
92
|
-
className: "bg-primary-700 flex w-full items-center justify-center gap-2 rounded-md p-3 text-base font-semibold text-white",
|
|
93
|
-
children: [
|
|
94
|
-
/* @__PURE__ */ e(g, { fill: "#ffff" }),
|
|
95
|
-
a.phoneNumber
|
|
96
|
-
]
|
|
97
|
-
}
|
|
98
|
-
),
|
|
99
|
-
a.contactHours && /* @__PURE__ */ l("p", { className: "text-small mt-4 text-base text-neutral-500", children: [
|
|
100
|
-
a.contactHoursLabel != null && /* @__PURE__ */ l("span", { children: [
|
|
101
|
-
a.contactHoursLabel,
|
|
102
|
-
" "
|
|
103
|
-
] }),
|
|
104
|
-
a.contactHours
|
|
105
|
-
] })
|
|
106
|
-
] })
|
|
107
|
-
] })
|
|
108
|
-
] })
|
|
37
|
+
/* @__PURE__ */ e(c, { ...i, logo: a, userActions: t, searchBarProps: l })
|
|
109
38
|
] });
|
|
110
39
|
export {
|
|
111
|
-
|
|
40
|
+
j as Header
|
|
112
41
|
};
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import * as React_2 from 'react';
|
|
3
|
+
import { ReactNode } from 'react';
|
|
4
|
+
|
|
5
|
+
export declare interface MobileContactInfo {
|
|
6
|
+
phoneNumber: string;
|
|
7
|
+
contactHoursLabel?: string;
|
|
8
|
+
contactHours?: string;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export declare const MobileMenu: FC<MobileMenuProps>;
|
|
12
|
+
|
|
13
|
+
export declare interface MobileMenuProps {
|
|
14
|
+
isOpen: boolean;
|
|
15
|
+
onOpen: () => void;
|
|
16
|
+
onClose: () => void;
|
|
17
|
+
logo: ReactNode;
|
|
18
|
+
userActions: ReactNode;
|
|
19
|
+
searchBarProps: SearchBarProps;
|
|
20
|
+
sections?: MobileMenuSection[];
|
|
21
|
+
contactInfo?: MobileContactInfo;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export declare interface MobileMenuSection {
|
|
25
|
+
id?: string;
|
|
26
|
+
title?: string;
|
|
27
|
+
icon: ReactNode | null;
|
|
28
|
+
items?: {
|
|
29
|
+
label: string;
|
|
30
|
+
href?: string;
|
|
31
|
+
}[];
|
|
32
|
+
seeAll?: ReactNode | null;
|
|
33
|
+
content?: ReactNode | null;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export interface SearchBarProps {
|
|
37
|
+
items: SearchItem[];
|
|
38
|
+
placeholder?: string;
|
|
39
|
+
isOpen?: boolean;
|
|
40
|
+
onToggle?: () => void;
|
|
41
|
+
searchValue?: string;
|
|
42
|
+
onInputChange?: (e: React_2.ChangeEvent<HTMLInputElement>) => void;
|
|
43
|
+
onClear?: () => void;
|
|
44
|
+
noResultsText?: string;
|
|
45
|
+
allDocumentsItem?: SearchItem;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export interface SearchItem {
|
|
49
|
+
label: string;
|
|
50
|
+
href: string;
|
|
51
|
+
}
|
|
52
|
+
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { jsxs as r, jsx as l } from "react/jsx-runtime";
|
|
2
|
+
import "react";
|
|
3
|
+
import { SearchBar as f } from "./SearchBar.js";
|
|
4
|
+
import { PhoneTalkIcon as o } from "./PhoneTalkIcon.js";
|
|
5
|
+
import { CloseIcon as x } from "./CloseIcon.js";
|
|
6
|
+
const y = ({
|
|
7
|
+
isOpen: m,
|
|
8
|
+
onClose: s,
|
|
9
|
+
logo: c,
|
|
10
|
+
userActions: d,
|
|
11
|
+
searchBarProps: p,
|
|
12
|
+
sections: u = [],
|
|
13
|
+
contactInfo: t
|
|
14
|
+
}) => m ? /* @__PURE__ */ r("div", { className: "fixed inset-0 z-50 flex flex-col overflow-y-auto bg-white text-neutral-800 lg:hidden", children: [
|
|
15
|
+
/* @__PURE__ */ r("div", { className: "flex items-center justify-between px-6 py-4", children: [
|
|
16
|
+
c,
|
|
17
|
+
/* @__PURE__ */ l(
|
|
18
|
+
"button",
|
|
19
|
+
{
|
|
20
|
+
className: "flex cursor-pointer items-center justify-center p-2",
|
|
21
|
+
onClick: s,
|
|
22
|
+
"aria-label": "Close menu",
|
|
23
|
+
children: /* @__PURE__ */ l(x, {})
|
|
24
|
+
}
|
|
25
|
+
)
|
|
26
|
+
] }),
|
|
27
|
+
/* @__PURE__ */ r("div", { className: "flex flex-1 flex-col pb-6", children: [
|
|
28
|
+
/* @__PURE__ */ r("div", { className: "flex flex-col gap-6 px-6", children: [
|
|
29
|
+
/* @__PURE__ */ l("div", { className: "flex items-center gap-4", children: d }),
|
|
30
|
+
/* @__PURE__ */ l(f, { ...p })
|
|
31
|
+
] }),
|
|
32
|
+
/* @__PURE__ */ l("nav", { className: "flex flex-col gap-0", children: u.map((e, n) => {
|
|
33
|
+
const a = e.icon != null;
|
|
34
|
+
return e.content != null ? /* @__PURE__ */ l("div", { className: "flex items-center px-6 pb-8", children: e.content }, e.id ?? `custom-${n.toString()}`) : /* @__PURE__ */ r(
|
|
35
|
+
"div",
|
|
36
|
+
{
|
|
37
|
+
className: e.title !== "" && !a ? "border-t border-b border-neutral-200 pt-4" : "",
|
|
38
|
+
children: [
|
|
39
|
+
e.title && /* @__PURE__ */ r("div", { className: `flex items-center gap-2 px-6 ${a ? "bg-neutral-50 py-4" : ""}`, children: [
|
|
40
|
+
e.icon != null && /* @__PURE__ */ l("span", { className: "text-primary-700", children: e.icon }),
|
|
41
|
+
/* @__PURE__ */ l("h4", { className: "text-medium font-semibold", children: e.title })
|
|
42
|
+
] }),
|
|
43
|
+
e.items != null && /* @__PURE__ */ r("ul", { className: `flex flex-col gap-4 ${a ? "p-6" : "px-6 py-4"}`, children: [
|
|
44
|
+
e.items.map((i) => /* @__PURE__ */ l("li", { children: /* @__PURE__ */ l("a", { href: i.href ?? "#", className: "text-medium", onClick: s, children: i.label }) }, i.label)),
|
|
45
|
+
e.seeAll != null && /* @__PURE__ */ l("li", { className: "font-semibold", children: e.seeAll })
|
|
46
|
+
] })
|
|
47
|
+
]
|
|
48
|
+
},
|
|
49
|
+
e.id ?? e.title ?? n.toString()
|
|
50
|
+
);
|
|
51
|
+
}) }),
|
|
52
|
+
t && /* @__PURE__ */ r("div", { className: "mt-auto flex flex-col items-center justify-center border-t border-neutral-100 p-6", children: [
|
|
53
|
+
/* @__PURE__ */ r(
|
|
54
|
+
"a",
|
|
55
|
+
{
|
|
56
|
+
href: `tel:${t.phoneNumber.replaceAll(" ", "")}`,
|
|
57
|
+
className: "bg-primary-700 flex w-full items-center justify-center gap-2 rounded-md p-3 text-base font-semibold text-white",
|
|
58
|
+
children: [
|
|
59
|
+
/* @__PURE__ */ l(o, { fill: "#ffff" }),
|
|
60
|
+
t.phoneNumber
|
|
61
|
+
]
|
|
62
|
+
}
|
|
63
|
+
),
|
|
64
|
+
t.contactHours && /* @__PURE__ */ r("p", { className: "text-small mt-4 text-base text-neutral-500", children: [
|
|
65
|
+
t.contactHoursLabel != null && /* @__PURE__ */ r("span", { children: [
|
|
66
|
+
t.contactHoursLabel,
|
|
67
|
+
" "
|
|
68
|
+
] }),
|
|
69
|
+
t.contactHours
|
|
70
|
+
] })
|
|
71
|
+
] })
|
|
72
|
+
] })
|
|
73
|
+
] }) : null;
|
|
74
|
+
export {
|
|
75
|
+
y as MobileMenu
|
|
76
|
+
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
|
-
import { NavMenuItem as
|
|
4
|
-
const o = ({ navItems: m }) => /* @__PURE__ */ e("nav", { children: /* @__PURE__ */ e("ul", { className: "text-medium flex flex-wrap items-center xl:gap-
|
|
3
|
+
import { NavMenuItem as a } from "./NavMenuItem.js";
|
|
4
|
+
const o = ({ navItems: m, className: t = "" }) => /* @__PURE__ */ e("nav", { className: t, children: /* @__PURE__ */ e("ul", { className: "text-medium flex flex-wrap items-center gap-4 xl:gap-8", children: m.map((r) => /* @__PURE__ */ e(a, { ...r }, r.label)) }) });
|
|
5
5
|
export {
|
|
6
6
|
o as NavMenu
|
|
7
7
|
};
|
|
@@ -1,60 +1,62 @@
|
|
|
1
1
|
import { jsxs as n, jsx as t } from "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
|
-
import { ChevronDownIcon as
|
|
4
|
-
import { ChevronRightIcon as
|
|
5
|
-
const
|
|
6
|
-
label:
|
|
3
|
+
import { ChevronDownIcon as f } from "./ChevronDownIcon.js";
|
|
4
|
+
import { ChevronRightIcon as v } from "./ChevronRightIcon.js";
|
|
5
|
+
const h = ({
|
|
6
|
+
label: l,
|
|
7
7
|
href: c,
|
|
8
|
-
hasDropdown: e = !1,
|
|
9
8
|
dropdownItems: r,
|
|
10
|
-
tag:
|
|
11
|
-
|
|
9
|
+
tag: i,
|
|
10
|
+
hasDropdown: e = !1,
|
|
11
|
+
isNested: d = !1,
|
|
12
|
+
bold: p = !1
|
|
12
13
|
}) => {
|
|
13
|
-
const
|
|
14
|
+
const u = e && r != null && r.length > 0, g = e ? "span" : "a", s = {
|
|
14
15
|
topLevel: {
|
|
15
|
-
liClass: "group relative
|
|
16
|
-
triggerClass: "
|
|
17
|
-
dropdownPosition: "top-full left-0
|
|
16
|
+
liClass: "group relative py-2",
|
|
17
|
+
triggerClass: "hover:text-neutral-600",
|
|
18
|
+
dropdownPosition: "top-full left-0",
|
|
18
19
|
dropdownTrigger: "group-hover:pointer-events-auto group-hover:opacity-100",
|
|
19
|
-
Icon:
|
|
20
|
+
Icon: f,
|
|
20
21
|
iconClass: "transition-transform duration-200 group-hover:rotate-180"
|
|
21
22
|
},
|
|
22
23
|
nested: {
|
|
23
|
-
liClass: "group/nested relative
|
|
24
|
-
triggerClass: "
|
|
25
|
-
dropdownPosition: "top-0 left-full pl-
|
|
24
|
+
liClass: "group/nested relative",
|
|
25
|
+
triggerClass: "p-1 hover:bg-primary-100 w-full rounded",
|
|
26
|
+
dropdownPosition: "top-0 left-full -mt-4 pl-6",
|
|
26
27
|
dropdownTrigger: "group-hover/nested:pointer-events-auto group-hover/nested:opacity-100",
|
|
27
|
-
Icon:
|
|
28
|
+
Icon: v,
|
|
28
29
|
iconClass: ""
|
|
29
30
|
}
|
|
30
|
-
}, o =
|
|
31
|
-
return /* @__PURE__ */ n("li", { className: o.liClass
|
|
31
|
+
}, o = d ? s.nested : s.topLevel, m = o.Icon;
|
|
32
|
+
return /* @__PURE__ */ n("li", { className: `${o.liClass} `, children: [
|
|
32
33
|
/* @__PURE__ */ n(
|
|
33
|
-
|
|
34
|
+
g,
|
|
34
35
|
{
|
|
35
36
|
href: e ? void 0 : c ?? "#",
|
|
36
37
|
role: e ? "button" : void 0,
|
|
37
|
-
className: `text-small flex w-full items-center justify-between gap-1 font-medium text-neutral-800 transition-colors ${e ? "cursor-pointer" : ""} ${o.triggerClass} `,
|
|
38
|
+
className: `text-small flex w-full items-center justify-between gap-1 font-medium text-nowrap text-neutral-800 transition-colors ${e ? "cursor-pointer" : ""} ${o.triggerClass} `,
|
|
38
39
|
"aria-haspopup": e ? "menu" : void 0,
|
|
39
40
|
"aria-expanded": e ? "false" : void 0,
|
|
41
|
+
title: e ? void 0 : l,
|
|
40
42
|
children: [
|
|
41
43
|
/* @__PURE__ */ n("span", { className: "flex items-center gap-1", children: [
|
|
42
|
-
/* @__PURE__ */ t("span", { className:
|
|
43
|
-
|
|
44
|
+
/* @__PURE__ */ t("span", { className: `text-medium ${p ? "font-bold" : ""}`, children: l }),
|
|
45
|
+
i && /* @__PURE__ */ t("span", { className: "bg-secondary-200 text-extra-small rounded px-1 font-bold", children: i })
|
|
44
46
|
] }),
|
|
45
|
-
e && /* @__PURE__ */ t(
|
|
47
|
+
e && /* @__PURE__ */ t(m, { className: o.iconClass, fill: "#000", width: 20, height: 20 })
|
|
46
48
|
]
|
|
47
49
|
}
|
|
48
50
|
),
|
|
49
|
-
|
|
51
|
+
u && /* @__PURE__ */ t(
|
|
50
52
|
"div",
|
|
51
53
|
{
|
|
52
54
|
className: `pointer-events-none absolute z-50 min-w-48 opacity-0 transition-opacity duration-200 ${o.dropdownPosition} ${o.dropdownTrigger} `,
|
|
53
|
-
children: /* @__PURE__ */ t("div", { className: "rounded-md border border-neutral-200 bg-white
|
|
55
|
+
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: r.map((a) => /* @__PURE__ */ t(h, { ...a, isNested: !0 }, a.label)) }) })
|
|
54
56
|
}
|
|
55
57
|
)
|
|
56
58
|
] });
|
|
57
59
|
};
|
|
58
60
|
export {
|
|
59
|
-
|
|
61
|
+
h as NavMenuItem
|
|
60
62
|
};
|
|
@@ -74,7 +74,7 @@ const w = ({
|
|
|
74
74
|
] })
|
|
75
75
|
] }),
|
|
76
76
|
/* @__PURE__ */ r("div", { className: "block lg:hidden", children: [
|
|
77
|
-
/* @__PURE__ */ r("div", { className: "flex items-center gap-3 border-b border-neutral-200 bg-white
|
|
77
|
+
/* @__PURE__ */ r("div", { className: "flex items-center gap-3 border-b border-neutral-200 bg-white py-1", children: [
|
|
78
78
|
/* @__PURE__ */ e(
|
|
79
79
|
"input",
|
|
80
80
|
{
|
|
@@ -360,15 +360,10 @@ export declare const Header: FC<HeaderProps>;
|
|
|
360
360
|
export declare interface HeaderProps {
|
|
361
361
|
logo: ReactNode;
|
|
362
362
|
navMenu: NavMenuProps;
|
|
363
|
-
seeAll: ReactNode;
|
|
364
363
|
searchBarProps: SearchBarProps;
|
|
365
364
|
languageSelectorProps?: LanguageSelectorProps;
|
|
366
365
|
userActions: ReactNode;
|
|
367
|
-
|
|
368
|
-
onOpenMobileMenu?: () => void;
|
|
369
|
-
onCloseMobileMenu?: () => void;
|
|
370
|
-
mobileMenuSections?: MobileMenuSection[];
|
|
371
|
-
mobileContactInfo?: MobileContactInfo;
|
|
366
|
+
mobileMenu: MobileMenuProps;
|
|
372
367
|
}
|
|
373
368
|
|
|
374
369
|
export declare const HelpGuideIcon: React_2.FC<React_2.SVGProps<SVGSVGElement>>;
|
|
@@ -551,14 +546,29 @@ export declare interface MobileContactInfo {
|
|
|
551
546
|
contactHours?: string;
|
|
552
547
|
}
|
|
553
548
|
|
|
549
|
+
export declare const MobileMenu: FC<MobileMenuProps>;
|
|
550
|
+
|
|
551
|
+
export declare interface MobileMenuProps {
|
|
552
|
+
isOpen: boolean;
|
|
553
|
+
onOpen: () => void;
|
|
554
|
+
onClose: () => void;
|
|
555
|
+
logo: ReactNode;
|
|
556
|
+
userActions: ReactNode;
|
|
557
|
+
searchBarProps: SearchBarProps;
|
|
558
|
+
sections?: MobileMenuSection[];
|
|
559
|
+
contactInfo?: MobileContactInfo;
|
|
560
|
+
}
|
|
561
|
+
|
|
554
562
|
export declare interface MobileMenuSection {
|
|
563
|
+
id?: string;
|
|
555
564
|
title?: string;
|
|
556
|
-
icon
|
|
557
|
-
items
|
|
565
|
+
icon: ReactNode | null;
|
|
566
|
+
items?: {
|
|
558
567
|
label: string;
|
|
559
568
|
href?: string;
|
|
560
569
|
}[];
|
|
561
|
-
seeAll?: ReactNode;
|
|
570
|
+
seeAll?: ReactNode | null;
|
|
571
|
+
content?: ReactNode | null;
|
|
562
572
|
}
|
|
563
573
|
|
|
564
574
|
export declare const MoreTemplatesSection: FC<PopularDocumentsProps>;
|
|
@@ -575,10 +585,12 @@ export declare interface NavMenuItemProps {
|
|
|
575
585
|
dropdownContent?: ReactNode;
|
|
576
586
|
tag?: string;
|
|
577
587
|
isNested?: boolean;
|
|
588
|
+
bold?: boolean;
|
|
578
589
|
}
|
|
579
590
|
|
|
580
591
|
export declare interface NavMenuProps {
|
|
581
592
|
navItems: NavMenuItemProps[];
|
|
593
|
+
className?: string;
|
|
582
594
|
}
|
|
583
595
|
|
|
584
596
|
export declare const Note: FC<NoteProps>;
|