quirk-ui 0.0.205 → 0.0.207
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/NavLink-COdGW2oV.js +116 -0
- package/dist/assets/NavLink.css +1 -1
- package/dist/components/NavBar/NavBar.test.js +39 -49
- package/dist/components/NavBar/NavLink.js +1 -1
- package/dist/components/NavBar/index.js +158 -105
- package/dist/styles.css +1 -1
- package/package.json +1 -1
- package/dist/NavLink-D8ccaE3T.js +0 -113
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
import { jsxs as _, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { useRef as g } from "react";
|
|
3
|
+
import { E as k } from "./external-link-BOPobeQJ.js";
|
|
4
|
+
import { C as p } from "./chevron-down-DSUzBz9F.js";
|
|
5
|
+
import './assets/NavLink.css';const h = "_navbar_blvrw_5", C = "_left_blvrw_18", f = "_container_blvrw_19", y = "_logo_blvrw_23", I = "_nav_blvrw_5", N = "_center_blvrw_38", T = "_hidden_blvrw_44", x = "_visible_blvrw_51", E = "_right_blvrw_66", $ = "_title_blvrw_72", M = "_sublinks_blvrw_82", W = "_sublinksInner_blvrw_94", L = "_linkItem_blvrw_108", j = "_minimal_blvrw_113", z = "_menuToggle_blvrw_117", R = "_linkWrapper_blvrw_121", D = "_triangle_blvrw_159", S = "_transparent_blvrw_164", q = "_sticky_blvrw_216", A = "_twoColumn_blvrw_245", B = "_utilityMobile_blvrw_292", F = "_utility_blvrw_292", G = "_navInner_blvrw_320", H = "_grid_blvrw_329", J = "_sublinkToggle_blvrw_355", K = "_link_blvrw_108", Q = "_newTabIcon_blvrw_370", U = "_open_blvrw_378", V = "_show_blvrw_433", X = "_primaryColumn_blvrw_463", Y = "_secondaryColumn_blvrw_467", Z = "_spotlightColumn_blvrw_471", O = "_sublinksColumn_blvrw_492", P = "_chevron_blvrw_502", nn = "_parent_blvrw_581", l = {
|
|
6
|
+
navbar: h,
|
|
7
|
+
left: C,
|
|
8
|
+
container: f,
|
|
9
|
+
logo: y,
|
|
10
|
+
nav: I,
|
|
11
|
+
center: N,
|
|
12
|
+
hidden: T,
|
|
13
|
+
visible: x,
|
|
14
|
+
right: E,
|
|
15
|
+
title: $,
|
|
16
|
+
default: "_default_blvrw_81",
|
|
17
|
+
sublinks: M,
|
|
18
|
+
sublinksInner: W,
|
|
19
|
+
linkItem: L,
|
|
20
|
+
minimal: j,
|
|
21
|
+
menuToggle: z,
|
|
22
|
+
linkWrapper: R,
|
|
23
|
+
triangle: D,
|
|
24
|
+
transparent: S,
|
|
25
|
+
sticky: q,
|
|
26
|
+
twoColumn: A,
|
|
27
|
+
utilityMobile: B,
|
|
28
|
+
utility: F,
|
|
29
|
+
navInner: G,
|
|
30
|
+
grid: H,
|
|
31
|
+
sublinkToggle: J,
|
|
32
|
+
link: K,
|
|
33
|
+
newTabIcon: Q,
|
|
34
|
+
open: U,
|
|
35
|
+
show: V,
|
|
36
|
+
primaryColumn: X,
|
|
37
|
+
secondaryColumn: Y,
|
|
38
|
+
spotlightColumn: Z,
|
|
39
|
+
sublinksColumn: O,
|
|
40
|
+
chevron: P,
|
|
41
|
+
parent: nn
|
|
42
|
+
};
|
|
43
|
+
function on({
|
|
44
|
+
link: n,
|
|
45
|
+
path: r,
|
|
46
|
+
parentPath: i,
|
|
47
|
+
openPath: v,
|
|
48
|
+
togglePath: c,
|
|
49
|
+
updateTriangleIndicator: m,
|
|
50
|
+
setOpenPath: s,
|
|
51
|
+
renderLinks: w,
|
|
52
|
+
buttonRefs: d
|
|
53
|
+
}) {
|
|
54
|
+
var b;
|
|
55
|
+
const o = v === r, t = !!((b = n.sublinks) != null && b.length), a = g(null);
|
|
56
|
+
return d.current.set(r, a.current), /* @__PURE__ */ _(
|
|
57
|
+
"div",
|
|
58
|
+
{
|
|
59
|
+
className: `${l.linkWrapper} ${i ? "" : l.parent}`,
|
|
60
|
+
children: [
|
|
61
|
+
/* @__PURE__ */ e("div", { className: l.linkItem, children: n.href ? /* @__PURE__ */ _(
|
|
62
|
+
"a",
|
|
63
|
+
{
|
|
64
|
+
href: n.href,
|
|
65
|
+
className: l.link,
|
|
66
|
+
target: n.isExternal ? "_blank" : "_self",
|
|
67
|
+
rel: n.isExternal ? "noopener noreferrer" : void 0,
|
|
68
|
+
onClick: () => {
|
|
69
|
+
var u;
|
|
70
|
+
s(null), (u = n.onClick) == null || u.call(n);
|
|
71
|
+
},
|
|
72
|
+
onMouseEnter: () => {
|
|
73
|
+
i || s(null);
|
|
74
|
+
},
|
|
75
|
+
role: "menuitem",
|
|
76
|
+
children: [
|
|
77
|
+
n.label,
|
|
78
|
+
n.isExternal && /* @__PURE__ */ e(k, { className: l.newTabIcon, size: 16 })
|
|
79
|
+
]
|
|
80
|
+
}
|
|
81
|
+
) : /* @__PURE__ */ _(
|
|
82
|
+
"button",
|
|
83
|
+
{
|
|
84
|
+
ref: a,
|
|
85
|
+
"aria-haspopup": t ? "true" : void 0,
|
|
86
|
+
"aria-expanded": o,
|
|
87
|
+
className: `${l.sublinkToggle} ${o ? l.open : ""}`,
|
|
88
|
+
onClick: () => c(r),
|
|
89
|
+
onMouseEnter: () => {
|
|
90
|
+
m(r), s(r);
|
|
91
|
+
},
|
|
92
|
+
children: [
|
|
93
|
+
n.label,
|
|
94
|
+
t && /* @__PURE__ */ e(p, { size: 18, className: l.chevron })
|
|
95
|
+
]
|
|
96
|
+
}
|
|
97
|
+
) }),
|
|
98
|
+
t && /* @__PURE__ */ e(
|
|
99
|
+
"div",
|
|
100
|
+
{
|
|
101
|
+
className: `${l.sublinks} ${o ? l.show : ""}`,
|
|
102
|
+
onMouseLeave: () => c(r),
|
|
103
|
+
role: "menu",
|
|
104
|
+
"aria-label": `${n.label} submenu`,
|
|
105
|
+
children: /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e("div", { className: l.sublinksInner, children: /* @__PURE__ */ e("div", { className: l.sublinksColumn, children: w(n.sublinks, r) }) }) })
|
|
106
|
+
}
|
|
107
|
+
)
|
|
108
|
+
]
|
|
109
|
+
},
|
|
110
|
+
r
|
|
111
|
+
);
|
|
112
|
+
}
|
|
113
|
+
export {
|
|
114
|
+
on as N,
|
|
115
|
+
l as s
|
|
116
|
+
};
|
package/dist/assets/NavLink.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
:root{--nav-height: 65px}.
|
|
1
|
+
:root{--nav-height: 65px}._navbar_blvrw_5{position:relative;height:var(--nav-height)}._left_blvrw_18 ._container_blvrw_19{justify-content:flex-start}._left_blvrw_18 ._logo_blvrw_23{flex:unset}._left_blvrw_18 ._nav_blvrw_5{flex:1}@media (max-width: 767px){._left_blvrw_18 ._logo_blvrw_23{flex:1}}._center_blvrw_38 ._nav_blvrw_5{transition:transform .3s ease-in-out,opacity .3s ease-in-out;will-change:transform,opacity}._center_blvrw_38 ._nav_blvrw_5._hidden_blvrw_44{transform:translateY(-100%);opacity:0;pointer-events:none}@media (min-width: 768px){._center_blvrw_38 ._nav_blvrw_5._visible_blvrw_51{transform:translateY(0);opacity:1;pointer-events:auto}}@media (max-width: 767px){._center_blvrw_38 ._logo_blvrw_23{flex:1}}._right_blvrw_66 ._container_blvrw_19{justify-content:flex-end}._right_blvrw_66 ._logo_blvrw_23,._right_blvrw_66 ._title_blvrw_72{flex:1}._right_blvrw_66 ._nav_blvrw_5{flex:unset}._default_blvrw_81 ._sublinks_blvrw_82{position:fixed;left:0;right:0;top:100%;padding-top:1rem}@media (max-width: 767px){._default_blvrw_81 ._sublinks_blvrw_82{position:relative}}._default_blvrw_81 ._sublinksInner_blvrw_94{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));max-width:calc(100vw - 4rem);width:78rem;min-height:24rem}@media (max-width: 767px){._default_blvrw_81 ._sublinksInner_blvrw_94{grid-template-columns:1fr;width:auto;min-height:unset}}._default_blvrw_81 ._linkItem_blvrw_108{justify-content:flex-start}._minimal_blvrw_113{left:0;background-color:#fff}._minimal_blvrw_113 ._menuToggle_blvrw_117{grid-area:unset}._minimal_blvrw_113 ._linkWrapper_blvrw_121{position:relative}._minimal_blvrw_113 ._sublinks_blvrw_82{position:absolute;right:0;width:auto}@media (max-width: 767px){._minimal_blvrw_113 ._sublinks_blvrw_82{position:relative;justify-content:center;align-items:center}}._minimal_blvrw_113 ._sublinksInner_blvrw_94{display:flex;flex-direction:column;min-width:125px;justify-content:flex-end;align-items:flex-end}@media (max-width: 767px){._minimal_blvrw_113 ._sublinksInner_blvrw_94{justify-content:center;align-items:center}}._minimal_blvrw_113 ._linkItem_blvrw_108{justify-content:flex-end}@media (max-width: 767px){._minimal_blvrw_113 ._linkItem_blvrw_108{justify-content:center;align-items:center}}._minimal_blvrw_113 ._triangle_blvrw_159{display:none}._transparent_blvrw_164{background-color:transparent}._transparent_blvrw_164 ._nav_blvrw_5{height:auto;border-radius:var(--radius-full);padding:0 var(--spacing-md);z-index:1001;background:#ffffff80;backdrop-filter:saturate(1.1) blur(1rem);-webkit-backdrop-filter:saturate(1.1) blur(1rem)}@media (max-width: 767px){._transparent_blvrw_164 ._nav_blvrw_5{padding:var(--nav-height) 0 0;background:#fffffff2;border-radius:0;top:0!important;left:0!important;height:100vh}._transparent_blvrw_164 ._nav_blvrw_5:before{border-radius:0}}._transparent_blvrw_164 ._menuToggle_blvrw_117:before{content:"";position:absolute;top:0;left:0;right:0;bottom:0;width:100%;height:100%;background:#ffffff80;backdrop-filter:saturate(1.1) blur(1rem);-webkit-backdrop-filter:saturate(1.1) blur(1rem);border-radius:var(--radius-md)}._sticky_blvrw_216{position:fixed;top:var(--spacing-md);left:0;right:0;z-index:1000;width:100%}._container_blvrw_19{display:grid;align-items:center;grid-template-areas:"first second third";grid-template-columns:minmax(auto,1fr) auto minmax(auto,1fr);grid-gap:var(--spacing-md);width:100%;max-width:var(--layout-width);height:100%;margin:0 auto;padding:0 var(--spacing-lg);position:relative}@media (max-width: 767px){._container_blvrw_19{grid-template-areas:"first second third fourth"}}._container_blvrw_19._twoColumn_blvrw_245{grid-template-columns:minmax(auto,1fr) auto;grid-template-areas:"first second"}._title_blvrw_72{grid-area:first;color:var(--color-text-primary);font-size:var(--font-size-lg);font-weight:var(--font-weight-semibold)}._logo_blvrw_23{grid-area:first;font-size:var(--font-size-lg);font-weight:var(--font-weight-bold);color:var(--color-primary);display:flex;align-items:center;justify-content:flex-start;position:relative;z-index:1005}._logo_blvrw_23 img{height:auto;width:auto}._menuToggle_blvrw_117{grid-area:fourth;background:none;border:none;cursor:pointer;display:none;color:var(--color-text-primary);z-index:1100;position:relative;width:40px;height:40px}._menuToggle_blvrw_117 svg{position:relative;z-index:5}._utilityMobile_blvrw_292{display:none;grid-area:third;justify-content:flex-end}._utility_blvrw_292{grid-area:third;display:flex;justify-content:flex-end}._utility_blvrw_292 a{font-size:var(--font-size-sm)}._nav_blvrw_5{grid-area:second;display:grid;grid-template-columns:minmax(auto,1fr) auto;grid-gap:var(--spacing-sm);transition:transform .3s ease}@media (max-width: 767px){._nav_blvrw_5{height:100vh}}._navInner_blvrw_320{position:relative}@media (max-width: 767px){._navInner_blvrw_320{margin:var(--spacing-xl) auto 0;min-width:300px}}._grid_blvrw_329{display:grid;align-items:center;grid-auto-flow:column}@media (max-width: 767px){._grid_blvrw_329{display:flex;flex-direction:column}}._linkItem_blvrw_108{display:flex;align-items:center;box-sizing:border-box}._navTitle_blvrw_354,._sublinkToggle_blvrw_355,._link_blvrw_108{text-decoration:none;color:var(--color-text-primary);padding:var(--spacing-sm);transition:color .3s ease;font-family:inherit;font-weight:var(--font-weight-semibold);font-size:var(--font-size-sm);box-sizing:border-box;display:flex;align-items:center;gap:var(--spacing-xs)}._navTitle_blvrw_354 ._newTabIcon_blvrw_370,._sublinkToggle_blvrw_355 ._newTabIcon_blvrw_370,._link_blvrw_108 ._newTabIcon_blvrw_370{color:var(--color-muted);transition:color .3s ease-in-out}._link_blvrw_108:hover,._sublinkToggle_blvrw_355:hover,._sublinkToggle_blvrw_355._open_blvrw_378,._link_blvrw_108:hover ._newTabIcon_blvrw_370,._sublinkToggle_blvrw_355:hover ._newTabIcon_blvrw_370,._sublinkToggle_blvrw_355._open_blvrw_378 ._newTabIcon_blvrw_370,._navItem_blvrw_386:hover{color:var(--color-primary)}._sublinkToggle_blvrw_355{background:none;border:none;display:flex;align-items:center;cursor:pointer;color:var(--color-text-primary)}._sublinks_blvrw_82{display:flex;justify-content:center;opacity:0;visibility:hidden;z-index:1000;transition:transform .3s ease-in-out,max-height .3s ease,opacity .3s ease,visibility .3s ease}._sublinks_blvrw_82._show_blvrw_433{max-height:500px;opacity:1;pointer-events:auto;visibility:visible;transform:translateY(0)}._triangle_blvrw_159{visibility:hidden;opacity:0;position:absolute;top:calc(100% + .5rem);transform:translate(-50%);z-index:10;pointer-events:none;transition:top .3s ease-in-out,left .3s ease-in-out,visbility .3s ease-in-out,opacity .3s ease-in-out}._triangle_blvrw_159._show_blvrw_433{top:calc(100% + .3rem);opacity:1;visibility:visible}._primaryColumn_blvrw_463{border-radius:1px solid var(--color-border)}._secondaryColumn_blvrw_467{background-color:var(--color-border)}._spotlightColumn_blvrw_471{background-color:var(--color-secondary)}._sublinksInner_blvrw_94{background-color:var(--color-background);box-shadow:0 6px 8px #0000001a;border-radius:var(--radius-md)}@media (max-width: 767px){._sublinksInner_blvrw_94{display:flex;flex-direction:column;width:unset;max-width:unset;min-height:unset;background-color:unset;box-shadow:unset;border-radius:unset}}._sublinksColumn_blvrw_492{display:flex;flex-direction:column;padding:var(--spacing-md)}@media (max-width: 767px){._sublinksColumn_blvrw_492{padding:0}}._chevron_blvrw_502{transition:transform .3s ease;display:flex;align-items:center;justify-content:center;margin-top:2px}._sublinkToggle_blvrw_355._open_blvrw_378 ._chevron_blvrw_502{transform:rotate(180deg)}@media (max-width: 767px){._logo_blvrw_23{flex:1}._menuToggle_blvrw_117{display:flex;align-items:center;justify-content:center}._utility_blvrw_292 a:not(._utility_blvrw_292 a:first-of-type){display:none}._utilityMobile_blvrw_292{display:block;transform:translateY(100px);position:fixed;bottom:1rem;left:0;right:0;margin:0 auto;width:calc(100% - 2rem);z-index:1001;transition:transform .3s ease-in-out}._utilityMobile_blvrw_292._open_blvrw_378{transform:translateY(0)}._nav_blvrw_5{display:none;position:fixed;top:calc(var(--nav-height) - 1px);left:0;width:100%;height:100%;background-color:var(--color-background);display:flex;flex-direction:column;align-items:flex-start;gap:var(--spacing-md);padding:var(--spacing-md);border-top:1px solid var(--color-border);z-index:1000;overflow-y:auto;transform:translate(100%)}._nav_blvrw_5._open_blvrw_378{transform:translate(0)}._linkWrapper_blvrw_121{flex-direction:column;width:100%;max-width:300px;margin:0 auto;padding:var(--spacing-sm) 0}._linkWrapper_blvrw_121._parent_blvrw_581{border-bottom:1px solid var(--color-border)}._linkWrapper_blvrw_121._parent_blvrw_581:last-of-type{border:none}._linkItem_blvrw_108{width:100%}._chevron_blvrw_502{display:none}._sublinks_blvrw_82{position:relative;top:0;box-shadow:none;max-height:fit-content;opacity:1;visibility:visible;align-items:flex-start;justify-content:flex-start;padding:var(--spacing-sm);gap:0;pointer-events:auto}._sublinkToggle_blvrw_355{cursor:pointer;pointer-events:none;color:var(--color-muted)}}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { d as
|
|
1
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
2
|
+
import { d as u, i as o, r as s, g as t, s as a, f as i, w as l } from "../../vi.ClIskdbk-CZ8iFAMK.js";
|
|
3
3
|
import { Navbar as r } from "./index.js";
|
|
4
4
|
const c = [
|
|
5
5
|
{ label: "Home", href: "/" },
|
|
@@ -18,7 +18,7 @@ const c = [
|
|
|
18
18
|
]
|
|
19
19
|
},
|
|
20
20
|
{ label: "External", href: "https://example.com", isExternal: !0 }
|
|
21
|
-
],
|
|
21
|
+
], m = [
|
|
22
22
|
{
|
|
23
23
|
title: "Company",
|
|
24
24
|
primaryItems: [
|
|
@@ -34,60 +34,50 @@ const c = [
|
|
|
34
34
|
{ label: "Careers", href: "/careers" },
|
|
35
35
|
{ label: "Blog", href: "/blog" }
|
|
36
36
|
],
|
|
37
|
-
spotlight: /* @__PURE__ */
|
|
37
|
+
spotlight: /* @__PURE__ */ n("div", { children: "Spotlight Content" })
|
|
38
38
|
}
|
|
39
39
|
];
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
}),
|
|
44
|
-
|
|
45
|
-
const
|
|
46
|
-
|
|
47
|
-
}),
|
|
48
|
-
|
|
49
|
-
const
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
}),
|
|
53
|
-
|
|
40
|
+
u("Navbar (default navigation)", () => {
|
|
41
|
+
o("renders all top-level nav items", () => {
|
|
42
|
+
s(/* @__PURE__ */ n(r, { navigationType: "default", alignment: "right", items: c })), t(a.getByText("Home")).toBeInTheDocument(), t(a.getByText("Services")).toBeInTheDocument(), t(a.getByText("External")).toBeInTheDocument();
|
|
43
|
+
}), o("toggles mobile menu", () => {
|
|
44
|
+
s(/* @__PURE__ */ n(r, { navigationType: "default", alignment: "right", items: c }));
|
|
45
|
+
const e = a.getByLabelText("Open menu");
|
|
46
|
+
i.click(e), t(e).toHaveAttribute("aria-label", "Close menu"), i.click(e), t(e).toHaveAttribute("aria-label", "Open menu");
|
|
47
|
+
}), o("open and closes submenu on click", async () => {
|
|
48
|
+
s(/* @__PURE__ */ n(r, { navigationType: "default", alignment: "right", items: c }));
|
|
49
|
+
const e = a.getByText("Services"), g = a.getByRole("menu", { name: "Services submenu" });
|
|
50
|
+
i.click(e), await l(() => {
|
|
51
|
+
t(g).toHaveClass("show");
|
|
52
|
+
}), i.click(e), await l(() => {
|
|
53
|
+
t(g).not.toHaveClass("show");
|
|
54
54
|
});
|
|
55
|
-
}),
|
|
56
|
-
|
|
57
|
-
const
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
}),
|
|
61
|
-
|
|
55
|
+
}), o("has appropriate aria attributes", async () => {
|
|
56
|
+
s(/* @__PURE__ */ n(r, { navigationType: "default", alignment: "right", items: c }));
|
|
57
|
+
const e = a.getByText("Services");
|
|
58
|
+
i.click(e), await l(() => {
|
|
59
|
+
t(e).toHaveAttribute("aria-expanded", "true");
|
|
60
|
+
}), i.click(e), await l(() => {
|
|
61
|
+
t(e).toHaveAttribute("aria-expanded", "false");
|
|
62
62
|
});
|
|
63
|
-
}),
|
|
64
|
-
|
|
65
|
-
const
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
63
|
+
}), o("only allows one submenu open at a time", async () => {
|
|
64
|
+
s(/* @__PURE__ */ n(r, { navigationType: "default", alignment: "right", items: c }));
|
|
65
|
+
const e = a.getByText("Services"), g = a.getByText("About");
|
|
66
|
+
i.click(e), await l(() => {
|
|
67
|
+
t(
|
|
68
|
+
a.getByRole("menu", { name: "Services submenu" })
|
|
69
69
|
).toHaveClass("show");
|
|
70
|
-
}),
|
|
71
|
-
|
|
72
|
-
|
|
70
|
+
}), i.click(g), await l(() => {
|
|
71
|
+
t(
|
|
72
|
+
a.getByRole("menu", { name: "Services submenu" })
|
|
73
73
|
).not.toHaveClass("show");
|
|
74
74
|
});
|
|
75
75
|
});
|
|
76
76
|
});
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
/* @__PURE__ */
|
|
81
|
-
), a
|
|
82
|
-
}), s("renders dropdown on hover and shows all columns", async () => {
|
|
83
|
-
l(
|
|
84
|
-
/* @__PURE__ */ i(r, { alignment: "right", groups: u, navigationType: "advanced" })
|
|
85
|
-
);
|
|
86
|
-
const t = e.getByText("Company");
|
|
87
|
-
n.mouseEnter(t), await o(() => {
|
|
88
|
-
a(e.getByText("About")).toBeInTheDocument();
|
|
89
|
-
}), n.mouseEnter(e.getByText("About")), await o(() => {
|
|
90
|
-
a(e.getByText("Team")).toBeInTheDocument(), a(e.getByText("Careers")).toBeInTheDocument(), a(e.getByText("Spotlight Content")).toBeInTheDocument();
|
|
91
|
-
});
|
|
77
|
+
u("Navbar (advanced navigation with groups)", () => {
|
|
78
|
+
o("renders group title", () => {
|
|
79
|
+
s(
|
|
80
|
+
/* @__PURE__ */ n(r, { alignment: "right", groups: m, navigationType: "advanced" })
|
|
81
|
+
), t(a.getByText("Company")).toBeInTheDocument();
|
|
92
82
|
});
|
|
93
83
|
});
|
|
@@ -1,180 +1,233 @@
|
|
|
1
|
-
import { jsx as n, jsxs as
|
|
2
|
-
import { useState as
|
|
3
|
-
import { s as e, N as
|
|
4
|
-
import { CallToAction as
|
|
5
|
-
import { ButtonGroup as
|
|
1
|
+
import { jsx as n, jsxs as d } from "react/jsx-runtime";
|
|
2
|
+
import { useState as h, useRef as y, useCallback as $, useEffect as D } from "react";
|
|
3
|
+
import { s as e, N as re } from "../../NavLink-COdGW2oV.js";
|
|
4
|
+
import { CallToAction as V } from "../CallToAction/index.js";
|
|
5
|
+
import { ButtonGroup as H } from "../ButtonGroup/index.js";
|
|
6
6
|
import { X as ie } from "../../x-CnsEH4Ox.js";
|
|
7
|
-
import { c as
|
|
7
|
+
import { c as oe } from "../../createLucideIcon-C8GTh_Qx.js";
|
|
8
8
|
import { C as ce } from "../../chevron-down-DSUzBz9F.js";
|
|
9
|
+
import { E as te } from "../../external-link-BOPobeQJ.js";
|
|
9
10
|
/**
|
|
10
11
|
* @license lucide-react v0.488.0 - ISC
|
|
11
12
|
*
|
|
12
13
|
* This source code is licensed under the ISC license.
|
|
13
14
|
* See the LICENSE file in the root directory of this source tree.
|
|
14
15
|
*/
|
|
15
|
-
const
|
|
16
|
+
const de = [
|
|
16
17
|
["line", { x1: "4", x2: "20", y1: "12", y2: "12", key: "1e0a9i" }],
|
|
17
18
|
["line", { x1: "4", x2: "20", y1: "6", y2: "6", key: "1owob3" }],
|
|
18
19
|
["line", { x1: "4", x2: "20", y1: "18", y2: "18", key: "yk5zj1" }]
|
|
19
|
-
],
|
|
20
|
+
], he = oe("menu", de), fe = {
|
|
20
21
|
default: e.default,
|
|
21
22
|
minimal: e.minimal
|
|
22
|
-
},
|
|
23
|
+
}, me = {
|
|
23
24
|
left: e.left,
|
|
24
25
|
center: e.center,
|
|
25
26
|
right: e.right
|
|
26
27
|
};
|
|
27
|
-
function
|
|
28
|
-
title:
|
|
29
|
-
logo:
|
|
28
|
+
function ye({
|
|
29
|
+
title: U,
|
|
30
|
+
logo: C,
|
|
30
31
|
items: x,
|
|
31
|
-
groups:
|
|
32
|
+
groups: L,
|
|
32
33
|
utilityItems: l,
|
|
33
|
-
isSticky:
|
|
34
|
-
isTransparent:
|
|
35
|
-
alignment:
|
|
36
|
-
variant:
|
|
37
|
-
navigationType:
|
|
38
|
-
className:
|
|
34
|
+
isSticky: q = !1,
|
|
35
|
+
isTransparent: F = !1,
|
|
36
|
+
alignment: g = "right",
|
|
37
|
+
variant: J = "default",
|
|
38
|
+
navigationType: E = "default",
|
|
39
|
+
className: K
|
|
39
40
|
}) {
|
|
40
|
-
const [
|
|
41
|
-
|
|
42
|
-
}, ne = (a) => {
|
|
43
|
-
const s = S.current.get(a);
|
|
44
|
-
if (s && m.current) {
|
|
45
|
-
const c = s.getBoundingClientRect(), d = m.current.getBoundingClientRect(), i = c.left - d.left + c.width / 4;
|
|
46
|
-
I(i);
|
|
47
|
-
}
|
|
41
|
+
const [t, M] = h(!1), [N, f] = h(null), [P, Q] = h(0), [Y, Z] = h(!1), [I, ee] = h(null), w = y(null), u = y(null), R = y(/* @__PURE__ */ new Map()), ne = () => {
|
|
42
|
+
M((a) => !a);
|
|
48
43
|
}, ae = (a) => {
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
},
|
|
55
|
-
|
|
56
|
-
},
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
44
|
+
const s = R.current.get(a);
|
|
45
|
+
if (s && u.current) {
|
|
46
|
+
const c = s.getBoundingClientRect(), m = u.current.getBoundingClientRect(), r = c.left - m.left + c.width / 4;
|
|
47
|
+
ee(r);
|
|
48
|
+
}
|
|
49
|
+
}, le = (a) => {
|
|
50
|
+
f((s) => s === a ? null : a);
|
|
51
|
+
}, S = $((a) => {
|
|
52
|
+
w.current && !w.current.contains(a.target) && f(null);
|
|
53
|
+
}, []), T = $(() => {
|
|
54
|
+
f(null);
|
|
55
|
+
}, []), z = $(() => {
|
|
56
|
+
A(), typeof window < "u" && window.innerWidth > 768 && (M(!1), f(null), typeof document < "u" && (document.body.style.overflow = ""));
|
|
57
|
+
}, []), A = $(() => {
|
|
58
|
+
if (u.current) {
|
|
59
|
+
const a = u.current.getBoundingClientRect().width;
|
|
60
|
+
Q(a), Z(!0);
|
|
60
61
|
}
|
|
61
62
|
}, []);
|
|
62
|
-
|
|
63
|
+
D(() => {
|
|
63
64
|
const a = typeof window < "u", s = typeof document < "u";
|
|
64
|
-
return a && (window.addEventListener("resize",
|
|
65
|
-
a && (window.removeEventListener("resize",
|
|
65
|
+
return a && (window.addEventListener("resize", z), window.addEventListener("scroll", T)), s && document.addEventListener("click", S), A(), () => {
|
|
66
|
+
a && (window.removeEventListener("resize", z), window.removeEventListener("scroll", T)), s && document.removeEventListener("click", S);
|
|
66
67
|
};
|
|
67
|
-
}, []),
|
|
68
|
+
}, []), D(() => {
|
|
68
69
|
if (typeof document < "u")
|
|
69
|
-
return document.body.style.overflow =
|
|
70
|
+
return document.body.style.overflow = t ? "hidden" : "", () => {
|
|
70
71
|
document.body.style.overflow = "";
|
|
71
72
|
};
|
|
72
|
-
}, [
|
|
73
|
-
const
|
|
74
|
-
const [s, c] =
|
|
73
|
+
}, [t]);
|
|
74
|
+
const se = (a) => {
|
|
75
|
+
const [s, c] = h(null), [m, k] = h(
|
|
75
76
|
null
|
|
76
77
|
);
|
|
77
|
-
return console.log("GROUPS", a), a.map((
|
|
78
|
-
var
|
|
79
|
-
const
|
|
80
|
-
return /* @__PURE__ */
|
|
78
|
+
return console.log("GROUPS", a), a.map((r, b) => {
|
|
79
|
+
var W, B, G, _;
|
|
80
|
+
const O = `group-${b}`, p = m === b, o = (W = r.primaryItems) == null ? void 0 : W[s ?? 0];
|
|
81
|
+
return /* @__PURE__ */ d(
|
|
81
82
|
"div",
|
|
82
83
|
{
|
|
83
84
|
className: `${e.linkWrapper} ${e.parent}`,
|
|
84
|
-
onMouseEnter: () =>
|
|
85
|
+
onMouseEnter: () => k(b),
|
|
85
86
|
onMouseLeave: () => {
|
|
86
|
-
|
|
87
|
+
k(null), c(null);
|
|
87
88
|
},
|
|
88
89
|
children: [
|
|
89
|
-
/* @__PURE__ */ n("div", { className: e.linkItem, children: /* @__PURE__ */
|
|
90
|
+
/* @__PURE__ */ n("div", { className: e.linkItem, children: /* @__PURE__ */ d(
|
|
90
91
|
"button",
|
|
91
92
|
{
|
|
92
93
|
"aria-haspopup": "true",
|
|
93
|
-
"aria-expanded":
|
|
94
|
-
className: `${e.sublinkToggle} ${
|
|
94
|
+
"aria-expanded": p,
|
|
95
|
+
className: `${e.sublinkToggle} ${p ? e.open : ""} `,
|
|
95
96
|
children: [
|
|
96
|
-
|
|
97
|
+
r.title,
|
|
97
98
|
/* @__PURE__ */ n(ce, { size: 18, className: e.chevron })
|
|
98
99
|
]
|
|
99
100
|
}
|
|
100
101
|
) }),
|
|
101
|
-
|
|
102
|
+
p && /* @__PURE__ */ n(
|
|
102
103
|
"div",
|
|
103
104
|
{
|
|
104
105
|
className: `${e.sublinks} ${e.show}`,
|
|
105
106
|
role: "menu",
|
|
106
|
-
"aria-label": `${
|
|
107
|
-
children: /* @__PURE__ */ n("div", { children: /* @__PURE__ */
|
|
108
|
-
/* @__PURE__ */
|
|
107
|
+
"aria-label": `${r.title} submenu`,
|
|
108
|
+
children: /* @__PURE__ */ n("div", { children: /* @__PURE__ */ d("div", { className: e.sublinksInner, children: [
|
|
109
|
+
/* @__PURE__ */ d(
|
|
110
|
+
"div",
|
|
111
|
+
{
|
|
112
|
+
className: `${e.sublinksColumn} ${e.primaryColumn}`,
|
|
113
|
+
children: [
|
|
114
|
+
/* @__PURE__ */ n("div", { className: e.linkItem }),
|
|
115
|
+
(B = r.primaryItems) == null ? void 0 : B.map(
|
|
116
|
+
(i, j) => i.href ? /* @__PURE__ */ d(
|
|
117
|
+
"a",
|
|
118
|
+
{
|
|
119
|
+
href: i.href,
|
|
120
|
+
className: e.link,
|
|
121
|
+
target: i.isExternal ? "_blank" : "_self",
|
|
122
|
+
rel: i.isExternal ? "noopener noreferrer" : void 0,
|
|
123
|
+
onClick: () => {
|
|
124
|
+
var X;
|
|
125
|
+
f(null), (X = i.onClick) == null || X.call(i);
|
|
126
|
+
},
|
|
127
|
+
onMouseEnter: () => i.sublinks ? c(j) : null,
|
|
128
|
+
role: "menuitem",
|
|
129
|
+
children: [
|
|
130
|
+
i.label,
|
|
131
|
+
i.isExternal && /* @__PURE__ */ n(
|
|
132
|
+
te,
|
|
133
|
+
{
|
|
134
|
+
className: e.newTabIcon,
|
|
135
|
+
size: 16
|
|
136
|
+
}
|
|
137
|
+
)
|
|
138
|
+
]
|
|
139
|
+
}
|
|
140
|
+
) : /* @__PURE__ */ n(
|
|
141
|
+
"button",
|
|
142
|
+
{
|
|
143
|
+
className: `${e.sublinkToggle} ${p ? e.open : ""}`,
|
|
144
|
+
onMouseEnter: () => c(j),
|
|
145
|
+
children: i.label
|
|
146
|
+
}
|
|
147
|
+
)
|
|
148
|
+
)
|
|
149
|
+
]
|
|
150
|
+
}
|
|
151
|
+
),
|
|
152
|
+
(o == null ? void 0 : o.sublinks) && ((G = o == null ? void 0 : o.sublinks) == null ? void 0 : G.length) > 0 && /* @__PURE__ */ n(
|
|
153
|
+
"div",
|
|
154
|
+
{
|
|
155
|
+
className: `${e.sublinksColumn} ${e.childrenColumn}`,
|
|
156
|
+
children: (o == null ? void 0 : o.sublinks) && v(
|
|
157
|
+
o.sublinks,
|
|
158
|
+
`${O}-${s}`
|
|
159
|
+
)
|
|
160
|
+
}
|
|
161
|
+
),
|
|
162
|
+
(r == null ? void 0 : r.secondaryItems) && ((_ = r == null ? void 0 : r.secondaryItems) == null ? void 0 : _.length) > 0 && /* @__PURE__ */ n(
|
|
163
|
+
"div",
|
|
164
|
+
{
|
|
165
|
+
className: `${e.sublinksColumn} ${e.secondaryColumn}`,
|
|
166
|
+
children: v(r.secondaryItems, `${O}-secondary`)
|
|
167
|
+
}
|
|
168
|
+
),
|
|
169
|
+
r.spotlight && /* @__PURE__ */ n(
|
|
109
170
|
"div",
|
|
110
171
|
{
|
|
111
|
-
className: e.
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
j._key ?? X
|
|
116
|
-
)) }),
|
|
117
|
-
(r == null ? void 0 : r.sublinks) && ((B = r == null ? void 0 : r.sublinks) == null ? void 0 : B.length) > 0 && /* @__PURE__ */ n("div", { className: e.sublinksColumn, children: (r == null ? void 0 : r.sublinks) && v(
|
|
118
|
-
r.sublinks,
|
|
119
|
-
`${z}-${s}`
|
|
120
|
-
) }),
|
|
121
|
-
(i == null ? void 0 : i.secondaryItems) && ((G = i == null ? void 0 : i.secondaryItems) == null ? void 0 : G.length) > 0 && /* @__PURE__ */ n("div", { className: e.sublinksColumn, children: v(i.secondaryItems, `${z}-secondary`) }),
|
|
122
|
-
i.spotlight && /* @__PURE__ */ n("div", { className: e.sublinksColumn, children: i.spotlight })
|
|
172
|
+
className: `${e.sublinksColumn} ${e.spotlightColumn}`,
|
|
173
|
+
children: r.spotlight
|
|
174
|
+
}
|
|
175
|
+
)
|
|
123
176
|
] }) })
|
|
124
177
|
}
|
|
125
178
|
)
|
|
126
179
|
]
|
|
127
180
|
},
|
|
128
|
-
|
|
181
|
+
b
|
|
129
182
|
);
|
|
130
183
|
});
|
|
131
184
|
}, v = (a, s = "") => a.map((c) => {
|
|
132
|
-
const
|
|
185
|
+
const m = `${s}/${c.label}`;
|
|
133
186
|
return /* @__PURE__ */ n(
|
|
134
|
-
|
|
187
|
+
re,
|
|
135
188
|
{
|
|
136
189
|
link: c,
|
|
137
|
-
path:
|
|
190
|
+
path: m,
|
|
138
191
|
parentPath: s,
|
|
139
|
-
openPath:
|
|
140
|
-
togglePath:
|
|
141
|
-
updateTriangleIndicator:
|
|
142
|
-
setOpenPath:
|
|
192
|
+
openPath: N,
|
|
193
|
+
togglePath: le,
|
|
194
|
+
updateTriangleIndicator: ae,
|
|
195
|
+
setOpenPath: f,
|
|
143
196
|
renderLinks: v,
|
|
144
|
-
buttonRefs:
|
|
197
|
+
buttonRefs: R
|
|
145
198
|
},
|
|
146
|
-
|
|
199
|
+
m
|
|
147
200
|
);
|
|
148
201
|
});
|
|
149
202
|
return /* @__PURE__ */ n(
|
|
150
203
|
"header",
|
|
151
204
|
{
|
|
152
205
|
ref: w,
|
|
153
|
-
className: `${
|
|
206
|
+
className: `${K ?? ""} ${me[g]} ${fe[J]} ${e.navbar} ${q ? e.sticky : ""} ${F ? e.transparent : ""} `,
|
|
154
207
|
role: "navigation",
|
|
155
208
|
"aria-label": "Main navigation",
|
|
156
|
-
children: /* @__PURE__ */
|
|
209
|
+
children: /* @__PURE__ */ d(
|
|
157
210
|
"div",
|
|
158
211
|
{
|
|
159
|
-
className: `${e.container} ${(!l || l.length === 0) &&
|
|
212
|
+
className: `${e.container} ${(!l || l.length === 0) && g !== "center" ? e.twoColumn : ""}`,
|
|
160
213
|
children: [
|
|
161
|
-
|
|
214
|
+
C ? /* @__PURE__ */ n("div", { className: e.logo, children: C }) : /* @__PURE__ */ n("div", { className: e.title, children: U }),
|
|
162
215
|
/* @__PURE__ */ n(
|
|
163
216
|
"nav",
|
|
164
217
|
{
|
|
165
|
-
ref:
|
|
218
|
+
ref: u,
|
|
166
219
|
style: {
|
|
167
|
-
left:
|
|
220
|
+
left: g === "center" ? `calc(50% - ${P / 2}px)` : "0"
|
|
168
221
|
},
|
|
169
|
-
className: `${e.nav} ${
|
|
222
|
+
className: `${e.nav} ${t ? e.open : ""} ${Y ? e.visible : e.hidden}`,
|
|
170
223
|
id: "main-menu",
|
|
171
224
|
role: "menubar",
|
|
172
|
-
children: /* @__PURE__ */
|
|
225
|
+
children: /* @__PURE__ */ d("div", { className: e.navInner, children: [
|
|
173
226
|
/* @__PURE__ */ n(
|
|
174
227
|
"svg",
|
|
175
228
|
{
|
|
176
|
-
style: { left: `${
|
|
177
|
-
className: `${e.triangle} ${
|
|
229
|
+
style: { left: `${I}px` },
|
|
230
|
+
className: `${e.triangle} ${N ? e.show : ""}`,
|
|
178
231
|
width: 16,
|
|
179
232
|
height: 12,
|
|
180
233
|
viewBox: "0 0 100 75",
|
|
@@ -193,16 +246,16 @@ function Ne({
|
|
|
193
246
|
/* @__PURE__ */ n(
|
|
194
247
|
"div",
|
|
195
248
|
{
|
|
196
|
-
className: `${e.triangle} ${
|
|
249
|
+
className: `${e.triangle} ${N ? e.show : ""}`
|
|
197
250
|
}
|
|
198
251
|
),
|
|
199
|
-
|
|
200
|
-
|
|
252
|
+
E === "default" && x && /* @__PURE__ */ n("div", { className: e.grid, children: v(x) }),
|
|
253
|
+
E === "advanced" && L && /* @__PURE__ */ n("div", { className: e.grid, children: se(L) })
|
|
201
254
|
] })
|
|
202
255
|
}
|
|
203
256
|
),
|
|
204
|
-
l && /* @__PURE__ */ n("nav", { className: e.utility, children: /* @__PURE__ */ n(
|
|
205
|
-
|
|
257
|
+
l && /* @__PURE__ */ n("nav", { className: e.utility, children: /* @__PURE__ */ n(H, { children: l.map((a, s) => /* @__PURE__ */ n(
|
|
258
|
+
V,
|
|
206
259
|
{
|
|
207
260
|
as: "a",
|
|
208
261
|
href: a.href ?? "/",
|
|
@@ -225,9 +278,9 @@ function Ne({
|
|
|
225
278
|
l && /* @__PURE__ */ n(
|
|
226
279
|
"nav",
|
|
227
280
|
{
|
|
228
|
-
className: `${e.utilityMobile} ${
|
|
229
|
-
children: /* @__PURE__ */ n(
|
|
230
|
-
|
|
281
|
+
className: `${e.utilityMobile} ${t ? e.open : ""}`,
|
|
282
|
+
children: /* @__PURE__ */ n(H, { alignment: "center", children: /* @__PURE__ */ n(
|
|
283
|
+
V,
|
|
231
284
|
{
|
|
232
285
|
as: "a",
|
|
233
286
|
href: l[1].href ?? "/",
|
|
@@ -252,11 +305,11 @@ function Ne({
|
|
|
252
305
|
"button",
|
|
253
306
|
{
|
|
254
307
|
className: e.menuToggle,
|
|
255
|
-
onClick:
|
|
256
|
-
"aria-label":
|
|
257
|
-
"aria-expanded":
|
|
308
|
+
onClick: ne,
|
|
309
|
+
"aria-label": t ? "Close menu" : "Open menu",
|
|
310
|
+
"aria-expanded": t,
|
|
258
311
|
"aria-controls": "main-menu",
|
|
259
|
-
children:
|
|
312
|
+
children: t ? /* @__PURE__ */ n(ie, { size: 24 }) : /* @__PURE__ */ n(he, { size: 24 })
|
|
260
313
|
}
|
|
261
314
|
)
|
|
262
315
|
]
|
|
@@ -266,5 +319,5 @@ function Ne({
|
|
|
266
319
|
);
|
|
267
320
|
}
|
|
268
321
|
export {
|
|
269
|
-
|
|
322
|
+
ye as Navbar
|
|
270
323
|
};
|
package/dist/styles.css
CHANGED
|
@@ -42,7 +42,7 @@ ul._list_4w9h5_1{list-style-type:none;padding:0;margin:0}ol._list_4w9h5_1{list-s
|
|
|
42
42
|
._wrapper_13tha_1{display:flex;flex-direction:column;position:relative}._input_13tha_7{padding:var(--spacing-sm) var(--spacing-sm);border:2px solid var(--color-border, #ccc);border-radius:var(--radius-md);font-size:var(--font-size-md);outline:none;background-color:var(--color-background);color:var(--color-text-primary)}._input_13tha_7::placeholder{color:var(--color-muted)}._input_13tha_7:focus{border-color:var(--color-primary)}._popover_13tha_25{position:absolute;top:100%;left:0;z-index:10;border-radius:var(--radius-md);background-color:var(--color-background);border:1px solid var(--color-border);margin-top:var(--spacing-xs)}
|
|
43
43
|
._wrapper_7toxm_1{display:flex;flex-direction:column;gap:var(--spacing-sm)}._trackContainer_7toxm_7{display:flex;align-items:center;gap:var(--spacing-sm)}._track_7toxm_7{flex:1;-webkit-appearance:none;-moz-appearance:none;appearance:none;height:4px;background-color:var(--color-muted);border-radius:4px;outline:none}._track_7toxm_7::-webkit-slider-thumb{-webkit-appearance:none;-moz-appearance:none;appearance:none;width:16px;height:16px;background-color:var(--color-primary);border-radius:var(--radius-full);cursor:pointer;border:none}._track_7toxm_7::-moz-range-thumb{-webkit-appearance:none;-moz-appearance:none;appearance:none;width:16px;height:16px;background-color:var(--color-primary);border-radius:var(--radius-full);cursor:pointer;border:none}._value_7toxm_44{width:2rem;text-align:right;font-size:var(--font-size-sm);font-weight:var(--font-weight-bold);color:var(--color-primary)}._error_7toxm_52{color:var(--color-error)}._errorMessage_7toxm_56{font-size:var(--font-size-sm);color:var(--color-error)}
|
|
44
44
|
._wrapper_s8dew_1{display:flex;flex-direction:column;gap:var(--spacing-sm)}._dropZone_s8dew_7{border:2px dashed var(--color-border);border-radius:var(--radius-md);padding:var(--spacing-xl);text-align:center;cursor:pointer;background-color:var(--color-background);transition:background-color .3s ease}._dropZone_s8dew_7 p{color:var(--color-text-primary)}._dropZone_s8dew_7:hover{background-color:var(--color-background)}._dragging_s8dew_25{background-color:var(--color-primary);border-color:var(--color-primary)}._input_s8dew_30{display:none}._fileList_s8dew_34{display:flex;flex-direction:column;gap:var(--spacing-sm);margin-top:var(--spacing-md);list-style:none;padding:0}._fileList_s8dew_34 li{color:var(--color-text-primary);display:flex;align-items:center;gap:var(--spacing-sm)}._fileList_s8dew_34 li button{cursor:pointer}
|
|
45
|
-
:root{--nav-height: 65px}.
|
|
45
|
+
:root{--nav-height: 65px}._navbar_blvrw_5{position:relative;height:var(--nav-height)}._left_blvrw_18 ._container_blvrw_19{justify-content:flex-start}._left_blvrw_18 ._logo_blvrw_23{flex:unset}._left_blvrw_18 ._nav_blvrw_5{flex:1}@media (max-width: 767px){._left_blvrw_18 ._logo_blvrw_23{flex:1}}._center_blvrw_38 ._nav_blvrw_5{transition:transform .3s ease-in-out,opacity .3s ease-in-out;will-change:transform,opacity}._center_blvrw_38 ._nav_blvrw_5._hidden_blvrw_44{transform:translateY(-100%);opacity:0;pointer-events:none}@media (min-width: 768px){._center_blvrw_38 ._nav_blvrw_5._visible_blvrw_51{transform:translateY(0);opacity:1;pointer-events:auto}}@media (max-width: 767px){._center_blvrw_38 ._logo_blvrw_23{flex:1}}._right_blvrw_66 ._container_blvrw_19{justify-content:flex-end}._right_blvrw_66 ._logo_blvrw_23,._right_blvrw_66 ._title_blvrw_72{flex:1}._right_blvrw_66 ._nav_blvrw_5{flex:unset}._default_blvrw_81 ._sublinks_blvrw_82{position:fixed;left:0;right:0;top:100%;padding-top:1rem}@media (max-width: 767px){._default_blvrw_81 ._sublinks_blvrw_82{position:relative}}._default_blvrw_81 ._sublinksInner_blvrw_94{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));max-width:calc(100vw - 4rem);width:78rem;min-height:24rem}@media (max-width: 767px){._default_blvrw_81 ._sublinksInner_blvrw_94{grid-template-columns:1fr;width:auto;min-height:unset}}._default_blvrw_81 ._linkItem_blvrw_108{justify-content:flex-start}._minimal_blvrw_113{left:0;background-color:#fff}._minimal_blvrw_113 ._menuToggle_blvrw_117{grid-area:unset}._minimal_blvrw_113 ._linkWrapper_blvrw_121{position:relative}._minimal_blvrw_113 ._sublinks_blvrw_82{position:absolute;right:0;width:auto}@media (max-width: 767px){._minimal_blvrw_113 ._sublinks_blvrw_82{position:relative;justify-content:center;align-items:center}}._minimal_blvrw_113 ._sublinksInner_blvrw_94{display:flex;flex-direction:column;min-width:125px;justify-content:flex-end;align-items:flex-end}@media (max-width: 767px){._minimal_blvrw_113 ._sublinksInner_blvrw_94{justify-content:center;align-items:center}}._minimal_blvrw_113 ._linkItem_blvrw_108{justify-content:flex-end}@media (max-width: 767px){._minimal_blvrw_113 ._linkItem_blvrw_108{justify-content:center;align-items:center}}._minimal_blvrw_113 ._triangle_blvrw_159{display:none}._transparent_blvrw_164{background-color:transparent}._transparent_blvrw_164 ._nav_blvrw_5{height:auto;border-radius:var(--radius-full);padding:0 var(--spacing-md);z-index:1001;background:#ffffff80;backdrop-filter:saturate(1.1) blur(1rem);-webkit-backdrop-filter:saturate(1.1) blur(1rem)}@media (max-width: 767px){._transparent_blvrw_164 ._nav_blvrw_5{padding:var(--nav-height) 0 0;background:#fffffff2;border-radius:0;top:0!important;left:0!important;height:100vh}._transparent_blvrw_164 ._nav_blvrw_5:before{border-radius:0}}._transparent_blvrw_164 ._menuToggle_blvrw_117:before{content:"";position:absolute;top:0;left:0;right:0;bottom:0;width:100%;height:100%;background:#ffffff80;backdrop-filter:saturate(1.1) blur(1rem);-webkit-backdrop-filter:saturate(1.1) blur(1rem);border-radius:var(--radius-md)}._sticky_blvrw_216{position:fixed;top:var(--spacing-md);left:0;right:0;z-index:1000;width:100%}._container_blvrw_19{display:grid;align-items:center;grid-template-areas:"first second third";grid-template-columns:minmax(auto,1fr) auto minmax(auto,1fr);grid-gap:var(--spacing-md);width:100%;max-width:var(--layout-width);height:100%;margin:0 auto;padding:0 var(--spacing-lg);position:relative}@media (max-width: 767px){._container_blvrw_19{grid-template-areas:"first second third fourth"}}._container_blvrw_19._twoColumn_blvrw_245{grid-template-columns:minmax(auto,1fr) auto;grid-template-areas:"first second"}._title_blvrw_72{grid-area:first;color:var(--color-text-primary);font-size:var(--font-size-lg);font-weight:var(--font-weight-semibold)}._logo_blvrw_23{grid-area:first;font-size:var(--font-size-lg);font-weight:var(--font-weight-bold);color:var(--color-primary);display:flex;align-items:center;justify-content:flex-start;position:relative;z-index:1005}._logo_blvrw_23 img{height:auto;width:auto}._menuToggle_blvrw_117{grid-area:fourth;background:none;border:none;cursor:pointer;display:none;color:var(--color-text-primary);z-index:1100;position:relative;width:40px;height:40px}._menuToggle_blvrw_117 svg{position:relative;z-index:5}._utilityMobile_blvrw_292{display:none;grid-area:third;justify-content:flex-end}._utility_blvrw_292{grid-area:third;display:flex;justify-content:flex-end}._utility_blvrw_292 a{font-size:var(--font-size-sm)}._nav_blvrw_5{grid-area:second;display:grid;grid-template-columns:minmax(auto,1fr) auto;grid-gap:var(--spacing-sm);transition:transform .3s ease}@media (max-width: 767px){._nav_blvrw_5{height:100vh}}._navInner_blvrw_320{position:relative}@media (max-width: 767px){._navInner_blvrw_320{margin:var(--spacing-xl) auto 0;min-width:300px}}._grid_blvrw_329{display:grid;align-items:center;grid-auto-flow:column}@media (max-width: 767px){._grid_blvrw_329{display:flex;flex-direction:column}}._linkItem_blvrw_108{display:flex;align-items:center;box-sizing:border-box}._navTitle_blvrw_354,._sublinkToggle_blvrw_355,._link_blvrw_108{text-decoration:none;color:var(--color-text-primary);padding:var(--spacing-sm);transition:color .3s ease;font-family:inherit;font-weight:var(--font-weight-semibold);font-size:var(--font-size-sm);box-sizing:border-box;display:flex;align-items:center;gap:var(--spacing-xs)}._navTitle_blvrw_354 ._newTabIcon_blvrw_370,._sublinkToggle_blvrw_355 ._newTabIcon_blvrw_370,._link_blvrw_108 ._newTabIcon_blvrw_370{color:var(--color-muted);transition:color .3s ease-in-out}._link_blvrw_108:hover,._sublinkToggle_blvrw_355:hover,._sublinkToggle_blvrw_355._open_blvrw_378,._link_blvrw_108:hover ._newTabIcon_blvrw_370,._sublinkToggle_blvrw_355:hover ._newTabIcon_blvrw_370,._sublinkToggle_blvrw_355._open_blvrw_378 ._newTabIcon_blvrw_370,._navItem_blvrw_386:hover{color:var(--color-primary)}._sublinkToggle_blvrw_355{background:none;border:none;display:flex;align-items:center;cursor:pointer;color:var(--color-text-primary)}._sublinks_blvrw_82{display:flex;justify-content:center;opacity:0;visibility:hidden;z-index:1000;transition:transform .3s ease-in-out,max-height .3s ease,opacity .3s ease,visibility .3s ease}._sublinks_blvrw_82._show_blvrw_433{max-height:500px;opacity:1;pointer-events:auto;visibility:visible;transform:translateY(0)}._triangle_blvrw_159{visibility:hidden;opacity:0;position:absolute;top:calc(100% + .5rem);transform:translate(-50%);z-index:10;pointer-events:none;transition:top .3s ease-in-out,left .3s ease-in-out,visbility .3s ease-in-out,opacity .3s ease-in-out}._triangle_blvrw_159._show_blvrw_433{top:calc(100% + .3rem);opacity:1;visibility:visible}._primaryColumn_blvrw_463{border-radius:1px solid var(--color-border)}._secondaryColumn_blvrw_467{background-color:var(--color-border)}._spotlightColumn_blvrw_471{background-color:var(--color-secondary)}._sublinksInner_blvrw_94{background-color:var(--color-background);box-shadow:0 6px 8px #0000001a;border-radius:var(--radius-md)}@media (max-width: 767px){._sublinksInner_blvrw_94{display:flex;flex-direction:column;width:unset;max-width:unset;min-height:unset;background-color:unset;box-shadow:unset;border-radius:unset}}._sublinksColumn_blvrw_492{display:flex;flex-direction:column;padding:var(--spacing-md)}@media (max-width: 767px){._sublinksColumn_blvrw_492{padding:0}}._chevron_blvrw_502{transition:transform .3s ease;display:flex;align-items:center;justify-content:center;margin-top:2px}._sublinkToggle_blvrw_355._open_blvrw_378 ._chevron_blvrw_502{transform:rotate(180deg)}@media (max-width: 767px){._logo_blvrw_23{flex:1}._menuToggle_blvrw_117{display:flex;align-items:center;justify-content:center}._utility_blvrw_292 a:not(._utility_blvrw_292 a:first-of-type){display:none}._utilityMobile_blvrw_292{display:block;transform:translateY(100px);position:fixed;bottom:1rem;left:0;right:0;margin:0 auto;width:calc(100% - 2rem);z-index:1001;transition:transform .3s ease-in-out}._utilityMobile_blvrw_292._open_blvrw_378{transform:translateY(0)}._nav_blvrw_5{display:none;position:fixed;top:calc(var(--nav-height) - 1px);left:0;width:100%;height:100%;background-color:var(--color-background);display:flex;flex-direction:column;align-items:flex-start;gap:var(--spacing-md);padding:var(--spacing-md);border-top:1px solid var(--color-border);z-index:1000;overflow-y:auto;transform:translate(100%)}._nav_blvrw_5._open_blvrw_378{transform:translate(0)}._linkWrapper_blvrw_121{flex-direction:column;width:100%;max-width:300px;margin:0 auto;padding:var(--spacing-sm) 0}._linkWrapper_blvrw_121._parent_blvrw_581{border-bottom:1px solid var(--color-border)}._linkWrapper_blvrw_121._parent_blvrw_581:last-of-type{border:none}._linkItem_blvrw_108{width:100%}._chevron_blvrw_502{display:none}._sublinks_blvrw_82{position:relative;top:0;box-shadow:none;max-height:fit-content;opacity:1;visibility:visible;align-items:flex-start;justify-content:flex-start;padding:var(--spacing-sm);gap:0;pointer-events:auto}._sublinkToggle_blvrw_355{cursor:pointer;pointer-events:none;color:var(--color-muted)}}
|
|
46
46
|
._label_15ngo_1{font-weight:var(--font-weight-semibold);margin-bottom:var(--spacing-xs)}._text_15ngo_6{display:inline-flex;align-items:center;gap:var(--spacing-xs)}._sm_15ngo_13{font-size:.75rem}._md_15ngo_17{font-size:.875rem}._lg_15ngo_21{font-size:1rem}._default_15ngo_26{color:var(--color-text-primary)}._muted_15ngo_30{color:var(--color-muted)}._accent_15ngo_34{color:var(--color-primary)}._disabled_15ngo_38{color:var(--color-muted)}._error_15ngo_42{color:var(--color-error)}._required_15ngo_47{color:var(--color-error);margin-left:.25rem}._optional_15ngo_52{color:var(--color-muted);font-style:italic;margin-left:.25rem}._srOnly_15ngo_58{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}._icon_15ngo_71{line-height:0;margin-left:var(--spacing-xs)}._tooltipWrapper_15ngo_77{position:relative;display:inline-flex;align-items:center}._tooltipIcon_15ngo_83{line-height:0;font-size:var(--font-size-md);cursor:help;margin-left:var(--spacing-xs);color:var(--color-muted)}._tooltipText_15ngo_91{visibility:hidden;background-color:#111;color:#fff;text-align:center;padding:var(--spacing-xs) var(--spacing-sm);border-radius:var(--radius-md);position:absolute;z-index:10;bottom:125%;left:50%;transform:translate(-50%);font-size:var(--font-size-xs);white-space:nowrap;opacity:0;transition:opacity .2s ease}._tooltipWrapper_15ngo_77:hover ._tooltipText_15ngo_91,._tooltipWrapper_15ngo_77:focus-within ._tooltipText_15ngo_91{visibility:visible;opacity:1}
|
|
47
47
|
._footer_xfxi7_1{background-color:var(--color-background);padding:var(--spacing-xl) var(--spacing-md);font-size:var(--font-size-sm);color:var(--color-text-primary)}._container_xfxi7_8{display:flex;flex-direction:column;align-items:flex-start;gap:2rem}._utilityImage_xfxi7_17{width:100%}._primaryNav_xfxi7_21{display:flex;gap:var(--spacing-xl)}@media (max-width: 767px){._primaryNav_xfxi7_21{flex-direction:column}}._secondaryNav_xfxi7_30{display:flex;align-items:flex-end;justify-content:space-between;flex-wrap:wrap;width:100%;gap:var(--spacing-xl);margin-top:var(--spacing-xl)}._secondaryNav_xfxi7_30 a:has(img){height:unset;background-color:transparent}._secondaryNav_xfxi7_30 a:has(img) img{width:175px;height:auto}._secondaryNav_xfxi7_30 a:has(img):hover{background-color:transparent}@media (max-width: 480px){._secondaryNav_xfxi7_30{flex-direction:column-reverse}._secondaryNav_xfxi7_30 nav{width:100%}}._details_xfxi7_62{flex-basis:200px;display:flex;flex-direction:column;gap:var(--spacing-lg)}._nav_xfxi7_69{display:flex;flex-direction:row;align-items:flex-start;gap:var(--spacing-lg);flex:1}._logo_xfxi7_77{font-size:var(--font-size-lg);font-weight:var(--font-weight-bold);color:var(--color-primary)}._socialItems_xfxi7_83{display:flex;align-items:center;justify-content:flex-start;gap:var(--spacing-sm)}._socialItems_xfxi7_83 ._group_xfxi7_90{min-width:unset}._socialItems_xfxi7_83 a{transition:color .3s ease-in-out;font-size:var(--font-size-xl)}._groups_xfxi7_99{display:flex;flex-wrap:wrap;gap:var(--spacing-xl)}._group_xfxi7_90{min-width:140px}._groupTitle_xfxi7_109{font-weight:var(--font-weight-semibold);margin-bottom:var(--spacing-xs)}._sublinks_xfxi7_114{position:relative;display:flex;flex-direction:column;gap:var(--spacing-sm);margin-top:var(--spacing-md)}._linkList_xfxi7_122{display:flex;flex-direction:column;gap:var(--spacing-xs);list-style:none;padding:0;margin:0}._link_xfxi7_122{color:var(--color-text-primary);text-decoration:none;display:block;transition:color .3s ease-in-out;display:flex;align-items:center;gap:var(--spacing-xs)}._link_xfxi7_122 ._newTabIcon_xfxi7_140{color:var(--color-muted);transition:color .3s ease-in-out}._link_xfxi7_122:hover,._link_xfxi7_122:hover ._newTabIcon_xfxi7_140{color:var(--color-primary)}._bottom_xfxi7_154{text-align:left;font-size:var(--font-size-sm);color:var(--color-muted)}._left_xfxi7_161 ._container_xfxi7_8{justify-content:flex-start}._left_xfxi7_161 ._logo_xfxi7_77{flex:unset}._left_xfxi7_161 ._nav_xfxi7_69{flex:1}@media (max-width: 767px){._left_xfxi7_161 ._logo_xfxi7_77{flex:1}}._center_xfxi7_181 ._nav_xfxi7_69{transition:transform .3s ease-in-out,opacity .3s ease-in-out;will-change:transform,opacity}._center_xfxi7_181 ._nav_xfxi7_69._hidden_xfxi7_187{transform:translateY(-100%);opacity:0;pointer-events:none}@media (min-width: 768px){._center_xfxi7_181 ._nav_xfxi7_69._visible_xfxi7_194{transform:translateY(0);opacity:1;pointer-events:auto}}@media (max-width: 767px){._center_xfxi7_181 ._logo_xfxi7_77{flex:1}}._right_xfxi7_209 ._container_xfxi7_8{justify-content:flex-end}._right_xfxi7_209 ._logo_xfxi7_77,._right_xfxi7_209 ._title_xfxi7_215{flex:1}._right_xfxi7_209 ._nav_xfxi7_69{flex:unset}
|
|
48
48
|
._calendar_zbxci_1{padding:var(--spacing-sm);border-radius:var(--radius-md);min-width:250px}._header_zbxci_7{display:flex;justify-content:space-between;margin-bottom:var(--spacing-sm)}._dayName_zbxci_13{font-weight:var(--font-weight-semibold);color:var(--color-text-primary);width:30px;text-align:center;flex:1;font-size:var(--font-size-sm)}._monthName_zbxci_23{font-weight:var(--font-weight-bold);color:var(--color-text-primary)}._week_zbxci_28{display:flex;justify-content:space-between;color:var(--color-text-primary)}._cell_zbxci_34{flex:1;padding:var(--spacing-xs) 0;text-align:center;background:none;color:var(--color-text-primary);border:none;cursor:pointer;width:30px}._outside_zbxci_45{color:var(--color-muted)}._selected_zbxci_49{background-color:var(--color-primary);color:#fff;border-radius:var(--radius-md)}
|
package/package.json
CHANGED
package/dist/NavLink-D8ccaE3T.js
DELETED
|
@@ -1,113 +0,0 @@
|
|
|
1
|
-
import { jsxs as _, jsx as o } from "react/jsx-runtime";
|
|
2
|
-
import { useRef as v } from "react";
|
|
3
|
-
import { E as g } from "./external-link-BOPobeQJ.js";
|
|
4
|
-
import { C as k } from "./chevron-down-DSUzBz9F.js";
|
|
5
|
-
import './assets/NavLink.css';const p = "_navbar_wd0jm_5", f = "_left_wd0jm_18", h = "_container_wd0jm_19", I = "_logo_wd0jm_23", C = "_nav_wd0jm_5", N = "_center_wd0jm_38", T = "_hidden_wd0jm_44", y = "_visible_wd0jm_51", x = "_right_wd0jm_66", E = "_title_wd0jm_72", $ = "_sublinks_wd0jm_82", M = "_sublinksInner_wd0jm_94", W = "_linkItem_wd0jm_108", L = "_minimal_wd0jm_113", z = "_menuToggle_wd0jm_117", R = "_linkWrapper_wd0jm_121", D = "_triangle_wd0jm_159", S = "_transparent_wd0jm_164", q = "_sticky_wd0jm_216", A = "_twoColumn_wd0jm_245", B = "_utilityMobile_wd0jm_292", F = "_utility_wd0jm_292", G = "_navInner_wd0jm_320", H = "_grid_wd0jm_329", J = "_sublinkToggle_wd0jm_355", K = "_link_wd0jm_108", Q = "_newTabIcon_wd0jm_370", U = "_open_wd0jm_378", V = "_show_wd0jm_433", X = "_sublinksColumn_wd0jm_481", Y = "_chevron_wd0jm_491", Z = "_parent_wd0jm_570", e = {
|
|
6
|
-
navbar: p,
|
|
7
|
-
left: f,
|
|
8
|
-
container: h,
|
|
9
|
-
logo: I,
|
|
10
|
-
nav: C,
|
|
11
|
-
center: N,
|
|
12
|
-
hidden: T,
|
|
13
|
-
visible: y,
|
|
14
|
-
right: x,
|
|
15
|
-
title: E,
|
|
16
|
-
default: "_default_wd0jm_81",
|
|
17
|
-
sublinks: $,
|
|
18
|
-
sublinksInner: M,
|
|
19
|
-
linkItem: W,
|
|
20
|
-
minimal: L,
|
|
21
|
-
menuToggle: z,
|
|
22
|
-
linkWrapper: R,
|
|
23
|
-
triangle: D,
|
|
24
|
-
transparent: S,
|
|
25
|
-
sticky: q,
|
|
26
|
-
twoColumn: A,
|
|
27
|
-
utilityMobile: B,
|
|
28
|
-
utility: F,
|
|
29
|
-
navInner: G,
|
|
30
|
-
grid: H,
|
|
31
|
-
sublinkToggle: J,
|
|
32
|
-
link: K,
|
|
33
|
-
newTabIcon: Q,
|
|
34
|
-
open: U,
|
|
35
|
-
show: V,
|
|
36
|
-
sublinksColumn: X,
|
|
37
|
-
chevron: Y,
|
|
38
|
-
parent: Z
|
|
39
|
-
};
|
|
40
|
-
function sn({
|
|
41
|
-
link: n,
|
|
42
|
-
path: s,
|
|
43
|
-
parentPath: r,
|
|
44
|
-
openPath: u,
|
|
45
|
-
togglePath: c,
|
|
46
|
-
updateTriangleIndicator: w,
|
|
47
|
-
setOpenPath: l,
|
|
48
|
-
renderLinks: b,
|
|
49
|
-
buttonRefs: j
|
|
50
|
-
}) {
|
|
51
|
-
var a;
|
|
52
|
-
const i = u === s, t = !!((a = n.sublinks) != null && a.length), m = v(null);
|
|
53
|
-
return j.current.set(s, m.current), /* @__PURE__ */ _(
|
|
54
|
-
"div",
|
|
55
|
-
{
|
|
56
|
-
className: `${e.linkWrapper} ${r ? "" : e.parent}`,
|
|
57
|
-
children: [
|
|
58
|
-
/* @__PURE__ */ o("div", { className: e.linkItem, children: n.href ? /* @__PURE__ */ _(
|
|
59
|
-
"a",
|
|
60
|
-
{
|
|
61
|
-
href: n.href,
|
|
62
|
-
className: e.link,
|
|
63
|
-
target: n.isExternal ? "_blank" : "_self",
|
|
64
|
-
rel: n.isExternal ? "noopener noreferrer" : void 0,
|
|
65
|
-
onClick: () => {
|
|
66
|
-
var d;
|
|
67
|
-
l(null), (d = n.onClick) == null || d.call(n);
|
|
68
|
-
},
|
|
69
|
-
onMouseEnter: () => {
|
|
70
|
-
r || l(null);
|
|
71
|
-
},
|
|
72
|
-
role: "menuitem",
|
|
73
|
-
children: [
|
|
74
|
-
n.label,
|
|
75
|
-
n.isExternal && /* @__PURE__ */ o(g, { className: e.newTabIcon, size: 16 })
|
|
76
|
-
]
|
|
77
|
-
}
|
|
78
|
-
) : /* @__PURE__ */ _(
|
|
79
|
-
"button",
|
|
80
|
-
{
|
|
81
|
-
ref: m,
|
|
82
|
-
"aria-haspopup": t ? "true" : void 0,
|
|
83
|
-
"aria-expanded": i,
|
|
84
|
-
className: `${e.sublinkToggle} ${i ? e.open : ""}`,
|
|
85
|
-
onClick: () => c(s),
|
|
86
|
-
onMouseEnter: () => {
|
|
87
|
-
w(s), l(s);
|
|
88
|
-
},
|
|
89
|
-
children: [
|
|
90
|
-
n.label,
|
|
91
|
-
t && /* @__PURE__ */ o(k, { size: 18, className: e.chevron })
|
|
92
|
-
]
|
|
93
|
-
}
|
|
94
|
-
) }),
|
|
95
|
-
t && /* @__PURE__ */ o(
|
|
96
|
-
"div",
|
|
97
|
-
{
|
|
98
|
-
className: `${e.sublinks} ${i ? e.show : ""}`,
|
|
99
|
-
onMouseLeave: () => c(s),
|
|
100
|
-
role: "menu",
|
|
101
|
-
"aria-label": `${n.label} submenu`,
|
|
102
|
-
children: /* @__PURE__ */ o("div", { children: /* @__PURE__ */ o("div", { className: e.sublinksInner, children: /* @__PURE__ */ o("div", { className: e.sublinksColumn, children: b(n.sublinks, s) }) }) })
|
|
103
|
-
}
|
|
104
|
-
)
|
|
105
|
-
]
|
|
106
|
-
},
|
|
107
|
-
s
|
|
108
|
-
);
|
|
109
|
-
}
|
|
110
|
-
export {
|
|
111
|
-
sn as N,
|
|
112
|
-
e as s
|
|
113
|
-
};
|