quirk-ui 0.0.207 → 0.0.209
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.
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
import { jsxs as i, jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { useRef as d } from "react";
|
|
3
|
+
import { E as v } from "./external-link-BOPobeQJ.js";
|
|
4
|
+
import { C as k } from "./chevron-down-DSUzBz9F.js";
|
|
5
|
+
import './assets/NavLink.css';const p = "_navbar_qh9g1_5", C = "_left_qh9g1_18", f = "_container_qh9g1_19", y = "_logo_qh9g1_23", I = "_nav_qh9g1_5", w = "_center_qh9g1_38", N = "_hidden_qh9g1_44", T = "_visible_qh9g1_51", x = "_right_qh9g1_66", E = "_title_qh9g1_72", $ = "_sublinks_qh9g1_82", M = "_sublinksInner_qh9g1_94", W = "_linkItem_qh9g1_108", L = "_minimal_qh9g1_113", j = "_menuToggle_qh9g1_117", z = "_linkWrapper_qh9g1_121", R = "_triangle_qh9g1_159", D = "_transparent_qh9g1_164", S = "_sticky_qh9g1_216", A = "_twoColumn_qh9g1_245", B = "_utilityMobile_qh9g1_292", F = "_utility_qh9g1_292", G = "_navInner_qh9g1_320", H = "_grid_qh9g1_329", J = "_sublinkToggle_qh9g1_355", K = "_link_qh9g1_108", Q = "_newTabIcon_qh9g1_370", U = "_open_qh9g1_377", V = "_show_qh9g1_434", X = "_primaryColumn_qh9g1_464", Y = "_secondaryColumn_qh9g1_468", Z = "_spotlightColumn_qh9g1_472", O = "_sublinksColumn_qh9g1_494", P = "_chevron_qh9g1_504", nn = "_parent_qh9g1_583", e = {
|
|
6
|
+
navbar: p,
|
|
7
|
+
left: C,
|
|
8
|
+
container: f,
|
|
9
|
+
logo: y,
|
|
10
|
+
nav: I,
|
|
11
|
+
center: w,
|
|
12
|
+
hidden: N,
|
|
13
|
+
visible: T,
|
|
14
|
+
right: x,
|
|
15
|
+
title: E,
|
|
16
|
+
default: "_default_qh9g1_81",
|
|
17
|
+
sublinks: $,
|
|
18
|
+
sublinksInner: M,
|
|
19
|
+
linkItem: W,
|
|
20
|
+
minimal: L,
|
|
21
|
+
menuToggle: j,
|
|
22
|
+
linkWrapper: z,
|
|
23
|
+
triangle: R,
|
|
24
|
+
transparent: D,
|
|
25
|
+
sticky: S,
|
|
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 tn({
|
|
44
|
+
link: n,
|
|
45
|
+
path: s,
|
|
46
|
+
parentPath: r,
|
|
47
|
+
openPath: h,
|
|
48
|
+
togglePath: c,
|
|
49
|
+
updateTriangleIndicator: m,
|
|
50
|
+
setOpenPath: l,
|
|
51
|
+
renderLinks: b,
|
|
52
|
+
buttonRefs: q
|
|
53
|
+
}) {
|
|
54
|
+
var g;
|
|
55
|
+
const t = h === s, _ = !!((g = n.sublinks) != null && g.length), a = d(null);
|
|
56
|
+
return q.current.set(s, a.current), /* @__PURE__ */ i(
|
|
57
|
+
"div",
|
|
58
|
+
{
|
|
59
|
+
className: `${e.linkWrapper} ${r ? "" : e.parent}`,
|
|
60
|
+
children: [
|
|
61
|
+
/* @__PURE__ */ o("div", { className: e.linkItem, children: n.href ? /* @__PURE__ */ i(
|
|
62
|
+
"a",
|
|
63
|
+
{
|
|
64
|
+
href: n.href,
|
|
65
|
+
className: e.link,
|
|
66
|
+
target: n.isExternal ? "_blank" : "_self",
|
|
67
|
+
rel: n.isExternal ? "noopener noreferrer" : void 0,
|
|
68
|
+
onClick: () => {
|
|
69
|
+
var u;
|
|
70
|
+
l(null), (u = n.onClick) == null || u.call(n);
|
|
71
|
+
},
|
|
72
|
+
onMouseEnter: () => {
|
|
73
|
+
r || l(null);
|
|
74
|
+
},
|
|
75
|
+
role: "menuitem",
|
|
76
|
+
children: [
|
|
77
|
+
n.label,
|
|
78
|
+
n.isExternal && /* @__PURE__ */ o(v, { className: e.newTabIcon, size: 16 })
|
|
79
|
+
]
|
|
80
|
+
}
|
|
81
|
+
) : /* @__PURE__ */ i(
|
|
82
|
+
"button",
|
|
83
|
+
{
|
|
84
|
+
ref: a,
|
|
85
|
+
"aria-haspopup": _ ? "true" : void 0,
|
|
86
|
+
"aria-expanded": t,
|
|
87
|
+
className: `${e.sublinkToggle} ${t ? e.open : ""}`,
|
|
88
|
+
onClick: () => c(s),
|
|
89
|
+
onMouseEnter: () => {
|
|
90
|
+
m(s), l(s);
|
|
91
|
+
},
|
|
92
|
+
children: [
|
|
93
|
+
n.label,
|
|
94
|
+
_ && /* @__PURE__ */ o(k, { size: 18, className: e.chevron })
|
|
95
|
+
]
|
|
96
|
+
}
|
|
97
|
+
) }),
|
|
98
|
+
_ && /* @__PURE__ */ o(
|
|
99
|
+
"div",
|
|
100
|
+
{
|
|
101
|
+
className: `${e.sublinks} ${t ? e.show : ""}`,
|
|
102
|
+
onMouseLeave: () => c(s),
|
|
103
|
+
role: "menu",
|
|
104
|
+
"aria-label": `${n.label} submenu`,
|
|
105
|
+
children: /* @__PURE__ */ o("div", { children: /* @__PURE__ */ o("div", { className: e.sublinksInner, children: /* @__PURE__ */ o("div", { className: e.sublinksColumn, children: b(n.sublinks, s) }) }) })
|
|
106
|
+
}
|
|
107
|
+
)
|
|
108
|
+
]
|
|
109
|
+
},
|
|
110
|
+
s
|
|
111
|
+
);
|
|
112
|
+
}
|
|
113
|
+
export {
|
|
114
|
+
tn as N,
|
|
115
|
+
e as s
|
|
116
|
+
};
|
package/dist/assets/NavLink.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
:root{--nav-height: 65px}.
|
|
1
|
+
:root{--nav-height: 65px}._navbar_qh9g1_5{position:relative;height:var(--nav-height)}._left_qh9g1_18 ._container_qh9g1_19{justify-content:flex-start}._left_qh9g1_18 ._logo_qh9g1_23{flex:unset}._left_qh9g1_18 ._nav_qh9g1_5{flex:1}@media (max-width: 767px){._left_qh9g1_18 ._logo_qh9g1_23{flex:1}}._center_qh9g1_38 ._nav_qh9g1_5{transition:transform .3s ease-in-out,opacity .3s ease-in-out;will-change:transform,opacity}._center_qh9g1_38 ._nav_qh9g1_5._hidden_qh9g1_44{transform:translateY(-100%);opacity:0;pointer-events:none}@media (min-width: 768px){._center_qh9g1_38 ._nav_qh9g1_5._visible_qh9g1_51{transform:translateY(0);opacity:1;pointer-events:auto}}@media (max-width: 767px){._center_qh9g1_38 ._logo_qh9g1_23{flex:1}}._right_qh9g1_66 ._container_qh9g1_19{justify-content:flex-end}._right_qh9g1_66 ._logo_qh9g1_23,._right_qh9g1_66 ._title_qh9g1_72{flex:1}._right_qh9g1_66 ._nav_qh9g1_5{flex:unset}._default_qh9g1_81 ._sublinks_qh9g1_82{position:fixed;left:0;right:0;top:100%;padding-top:1rem}@media (max-width: 767px){._default_qh9g1_81 ._sublinks_qh9g1_82{position:relative}}._default_qh9g1_81 ._sublinksInner_qh9g1_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_qh9g1_81 ._sublinksInner_qh9g1_94{grid-template-columns:1fr;width:auto;min-height:unset}}._default_qh9g1_81 ._linkItem_qh9g1_108{justify-content:flex-start}._minimal_qh9g1_113{left:0;background-color:#fff}._minimal_qh9g1_113 ._menuToggle_qh9g1_117{grid-area:unset}._minimal_qh9g1_113 ._linkWrapper_qh9g1_121{position:relative}._minimal_qh9g1_113 ._sublinks_qh9g1_82{position:absolute;right:0;width:auto}@media (max-width: 767px){._minimal_qh9g1_113 ._sublinks_qh9g1_82{position:relative;justify-content:center;align-items:center}}._minimal_qh9g1_113 ._sublinksInner_qh9g1_94{display:flex;flex-direction:column;min-width:125px;justify-content:flex-end;align-items:flex-end}@media (max-width: 767px){._minimal_qh9g1_113 ._sublinksInner_qh9g1_94{justify-content:center;align-items:center}}._minimal_qh9g1_113 ._linkItem_qh9g1_108{justify-content:flex-end}@media (max-width: 767px){._minimal_qh9g1_113 ._linkItem_qh9g1_108{justify-content:center;align-items:center}}._minimal_qh9g1_113 ._triangle_qh9g1_159{display:none}._transparent_qh9g1_164{background-color:transparent}._transparent_qh9g1_164 ._nav_qh9g1_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_qh9g1_164 ._nav_qh9g1_5{padding:var(--nav-height) 0 0;background:#fffffff2;border-radius:0;top:0!important;left:0!important;height:100vh}._transparent_qh9g1_164 ._nav_qh9g1_5:before{border-radius:0}}._transparent_qh9g1_164 ._menuToggle_qh9g1_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_qh9g1_216{position:fixed;top:var(--spacing-md);left:0;right:0;z-index:1000;width:100%}._container_qh9g1_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_qh9g1_19{grid-template-areas:"first second third fourth"}}._container_qh9g1_19._twoColumn_qh9g1_245{grid-template-columns:minmax(auto,1fr) auto;grid-template-areas:"first second"}._title_qh9g1_72{grid-area:first;color:var(--color-text-primary);font-size:var(--font-size-lg);font-weight:var(--font-weight-semibold)}._logo_qh9g1_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_qh9g1_23 img{height:auto;width:auto}._menuToggle_qh9g1_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_qh9g1_117 svg{position:relative;z-index:5}._utilityMobile_qh9g1_292{display:none;grid-area:third;justify-content:flex-end}._utility_qh9g1_292{grid-area:third;display:flex;justify-content:flex-end}._utility_qh9g1_292 a{font-size:var(--font-size-sm)}._nav_qh9g1_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_qh9g1_5{height:100vh}}._navInner_qh9g1_320{position:relative}@media (max-width: 767px){._navInner_qh9g1_320{margin:var(--spacing-xl) auto 0;min-width:300px}}._grid_qh9g1_329{display:grid;align-items:center;grid-auto-flow:column}@media (max-width: 767px){._grid_qh9g1_329{display:flex;flex-direction:column}}._linkItem_qh9g1_108{display:flex;align-items:center;box-sizing:border-box}._navTitle_qh9g1_354,._sublinkToggle_qh9g1_355,._link_qh9g1_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_qh9g1_354 ._newTabIcon_qh9g1_370,._sublinkToggle_qh9g1_355 ._newTabIcon_qh9g1_370,._link_qh9g1_108 ._newTabIcon_qh9g1_370{color:var(--color-muted);transition:color .3s ease-in-out}._link_qh9g1_108:hover,._link_qh9g1_108._open_qh9g1_377,._sublinkToggle_qh9g1_355:hover,._sublinkToggle_qh9g1_355._open_qh9g1_377,._link_qh9g1_108:hover ._newTabIcon_qh9g1_370,._link_qh9g1_108._open_qh9g1_377 ._newTabIcon_qh9g1_370,._sublinkToggle_qh9g1_355:hover ._newTabIcon_qh9g1_370,._sublinkToggle_qh9g1_355._open_qh9g1_377 ._newTabIcon_qh9g1_370,._navItem_qh9g1_387:hover{color:var(--color-primary)}._sublinkToggle_qh9g1_355{background:none;border:none;display:flex;align-items:center;cursor:pointer;color:var(--color-text-primary)}._sublinks_qh9g1_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_qh9g1_82._show_qh9g1_434{max-height:500px;opacity:1;pointer-events:auto;visibility:visible;transform:translateY(0)}._triangle_qh9g1_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_qh9g1_159._show_qh9g1_434{top:calc(100% + .3rem);opacity:1;visibility:visible}._primaryColumn_qh9g1_464{border-right:1px solid var(--color-border)}._secondaryColumn_qh9g1_468{background-color:var(--color-border)}._spotlightColumn_qh9g1_472{background-color:var(--color-secondary)}._sublinksInner_qh9g1_94{background-color:var(--color-background);box-shadow:0 6px 8px #0000001a;border-radius:var(--radius-md);overflow:hidden}@media (max-width: 767px){._sublinksInner_qh9g1_94{display:flex;flex-direction:column;width:unset;max-width:unset;min-height:unset;background-color:unset;box-shadow:unset;border-radius:unset}}._sublinksColumn_qh9g1_494{display:flex;flex-direction:column;padding:var(--spacing-md)}@media (max-width: 767px){._sublinksColumn_qh9g1_494{padding:0}}._chevron_qh9g1_504{transition:transform .3s ease;display:flex;align-items:center;justify-content:center;margin-top:2px}._sublinkToggle_qh9g1_355._open_qh9g1_377 ._chevron_qh9g1_504{transform:rotate(180deg)}@media (max-width: 767px){._logo_qh9g1_23{flex:1}._menuToggle_qh9g1_117{display:flex;align-items:center;justify-content:center}._utility_qh9g1_292 a:not(._utility_qh9g1_292 a:first-of-type){display:none}._utilityMobile_qh9g1_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_qh9g1_292._open_qh9g1_377{transform:translateY(0)}._nav_qh9g1_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_qh9g1_5._open_qh9g1_377{transform:translate(0)}._linkWrapper_qh9g1_121{flex-direction:column;width:100%;max-width:300px;margin:0 auto;padding:var(--spacing-sm) 0}._linkWrapper_qh9g1_121._parent_qh9g1_583{border-bottom:1px solid var(--color-border)}._linkWrapper_qh9g1_121._parent_qh9g1_583:last-of-type{border:none}._linkItem_qh9g1_108{width:100%}._chevron_qh9g1_504{display:none}._sublinks_qh9g1_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_qh9g1_355{cursor:pointer;pointer-events:none;color:var(--color-muted)}}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as n, jsxs as d } from "react/jsx-runtime";
|
|
2
|
-
import { useState as h, useRef as
|
|
3
|
-
import { s as e, N as re } from "../../NavLink-
|
|
2
|
+
import { useState as h, useRef as C, useCallback as $, useEffect as D } from "react";
|
|
3
|
+
import { s as e, N as re } from "../../NavLink-Buitn10q.js";
|
|
4
4
|
import { CallToAction as V } from "../CallToAction/index.js";
|
|
5
5
|
import { ButtonGroup as H } from "../ButtonGroup/index.js";
|
|
6
6
|
import { X as ie } from "../../x-CnsEH4Ox.js";
|
|
@@ -20,50 +20,50 @@ const de = [
|
|
|
20
20
|
], he = oe("menu", de), fe = {
|
|
21
21
|
default: e.default,
|
|
22
22
|
minimal: e.minimal
|
|
23
|
-
},
|
|
23
|
+
}, ue = {
|
|
24
24
|
left: e.left,
|
|
25
25
|
center: e.center,
|
|
26
26
|
right: e.right
|
|
27
27
|
};
|
|
28
28
|
function ye({
|
|
29
|
-
title:
|
|
30
|
-
logo:
|
|
31
|
-
items:
|
|
32
|
-
groups:
|
|
29
|
+
title: q,
|
|
30
|
+
logo: x,
|
|
31
|
+
items: L,
|
|
32
|
+
groups: E,
|
|
33
33
|
utilityItems: l,
|
|
34
|
-
isSticky:
|
|
35
|
-
isTransparent:
|
|
34
|
+
isSticky: F = !1,
|
|
35
|
+
isTransparent: J = !1,
|
|
36
36
|
alignment: g = "right",
|
|
37
|
-
variant:
|
|
38
|
-
navigationType:
|
|
39
|
-
className:
|
|
37
|
+
variant: K = "default",
|
|
38
|
+
navigationType: M = "default",
|
|
39
|
+
className: Q
|
|
40
40
|
}) {
|
|
41
|
-
const [t,
|
|
42
|
-
|
|
41
|
+
const [t, R] = h(!1), [N, f] = h(null), [U, Y] = h(0), [Z, P] = h(!1), [I, ee] = h(null), k = C(null), v = C(null), S = C(/* @__PURE__ */ new Map()), ne = () => {
|
|
42
|
+
R((a) => !a);
|
|
43
43
|
}, ae = (a) => {
|
|
44
|
-
const s =
|
|
45
|
-
if (s &&
|
|
46
|
-
const c = s.getBoundingClientRect(),
|
|
44
|
+
const s = S.current.get(a);
|
|
45
|
+
if (s && v.current) {
|
|
46
|
+
const c = s.getBoundingClientRect(), u = v.current.getBoundingClientRect(), r = c.left - u.left + c.width / 4;
|
|
47
47
|
ee(r);
|
|
48
48
|
}
|
|
49
49
|
}, le = (a) => {
|
|
50
50
|
f((s) => s === a ? null : a);
|
|
51
|
-
},
|
|
52
|
-
|
|
53
|
-
}, []), T = $(() => {
|
|
54
|
-
f(null);
|
|
51
|
+
}, T = $((a) => {
|
|
52
|
+
k.current && !k.current.contains(a.target) && f(null);
|
|
55
53
|
}, []), z = $(() => {
|
|
56
|
-
|
|
54
|
+
f(null);
|
|
57
55
|
}, []), A = $(() => {
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
56
|
+
_(), typeof window < "u" && window.innerWidth > 768 && (R(!1), f(null), typeof document < "u" && (document.body.style.overflow = ""));
|
|
57
|
+
}, []), _ = $(() => {
|
|
58
|
+
if (v.current) {
|
|
59
|
+
const a = v.current.getBoundingClientRect().width;
|
|
60
|
+
Y(a), P(!0);
|
|
61
61
|
}
|
|
62
62
|
}, []);
|
|
63
63
|
D(() => {
|
|
64
64
|
const a = typeof window < "u", s = typeof document < "u";
|
|
65
|
-
return a && (window.addEventListener("resize",
|
|
66
|
-
a && (window.removeEventListener("resize",
|
|
65
|
+
return a && (window.addEventListener("resize", A), window.addEventListener("scroll", z)), s && document.addEventListener("click", T), _(), () => {
|
|
66
|
+
a && (window.removeEventListener("resize", A), window.removeEventListener("scroll", z)), s && document.removeEventListener("click", T);
|
|
67
67
|
};
|
|
68
68
|
}, []), D(() => {
|
|
69
69
|
if (typeof document < "u")
|
|
@@ -72,37 +72,37 @@ function ye({
|
|
|
72
72
|
};
|
|
73
73
|
}, [t]);
|
|
74
74
|
const se = (a) => {
|
|
75
|
-
const [s, c] = h(null), [
|
|
75
|
+
const [s, c] = h(null), [u, w] = h(
|
|
76
76
|
null
|
|
77
77
|
);
|
|
78
|
-
return
|
|
79
|
-
var W, B,
|
|
80
|
-
const O = `group-${
|
|
78
|
+
return a.map((r, p) => {
|
|
79
|
+
var W, B, j, G;
|
|
80
|
+
const O = `group-${p}`, y = u === p, o = (W = r.primaryItems) == null ? void 0 : W[s ?? 0];
|
|
81
81
|
return /* @__PURE__ */ d(
|
|
82
82
|
"div",
|
|
83
83
|
{
|
|
84
84
|
className: `${e.linkWrapper} ${e.parent}`,
|
|
85
|
-
onMouseEnter: () =>
|
|
85
|
+
onMouseEnter: () => w(p),
|
|
86
86
|
onMouseLeave: () => {
|
|
87
|
-
|
|
87
|
+
w(null), c(null);
|
|
88
88
|
},
|
|
89
89
|
children: [
|
|
90
90
|
/* @__PURE__ */ n("div", { className: e.linkItem, children: /* @__PURE__ */ d(
|
|
91
91
|
"button",
|
|
92
92
|
{
|
|
93
93
|
"aria-haspopup": "true",
|
|
94
|
-
"aria-expanded":
|
|
95
|
-
className: `${e.sublinkToggle} ${
|
|
94
|
+
"aria-expanded": y,
|
|
95
|
+
className: `${e.sublinkToggle} ${y ? e.open : ""} `,
|
|
96
96
|
children: [
|
|
97
97
|
r.title,
|
|
98
98
|
/* @__PURE__ */ n(ce, { size: 18, className: e.chevron })
|
|
99
99
|
]
|
|
100
100
|
}
|
|
101
101
|
) }),
|
|
102
|
-
|
|
102
|
+
/* @__PURE__ */ n(
|
|
103
103
|
"div",
|
|
104
104
|
{
|
|
105
|
-
className: `${e.sublinks} ${e.show}`,
|
|
105
|
+
className: `${e.sublinks} ${y ? e.show : ""}`,
|
|
106
106
|
role: "menu",
|
|
107
107
|
"aria-label": `${r.title} submenu`,
|
|
108
108
|
children: /* @__PURE__ */ n("div", { children: /* @__PURE__ */ d("div", { className: e.sublinksInner, children: [
|
|
@@ -113,18 +113,18 @@ function ye({
|
|
|
113
113
|
children: [
|
|
114
114
|
/* @__PURE__ */ n("div", { className: e.linkItem }),
|
|
115
115
|
(B = r.primaryItems) == null ? void 0 : B.map(
|
|
116
|
-
(i,
|
|
116
|
+
(i, m) => i.href ? /* @__PURE__ */ d(
|
|
117
117
|
"a",
|
|
118
118
|
{
|
|
119
119
|
href: i.href,
|
|
120
|
-
className: e.link
|
|
120
|
+
className: `${e.link} ${s === m ? e.open : ""}`,
|
|
121
121
|
target: i.isExternal ? "_blank" : "_self",
|
|
122
122
|
rel: i.isExternal ? "noopener noreferrer" : void 0,
|
|
123
123
|
onClick: () => {
|
|
124
124
|
var X;
|
|
125
125
|
f(null), (X = i.onClick) == null || X.call(i);
|
|
126
126
|
},
|
|
127
|
-
onMouseEnter: () => i.sublinks ? c(
|
|
127
|
+
onMouseEnter: () => i.sublinks ? c(m) : null,
|
|
128
128
|
role: "menuitem",
|
|
129
129
|
children: [
|
|
130
130
|
i.label,
|
|
@@ -136,34 +136,36 @@ function ye({
|
|
|
136
136
|
}
|
|
137
137
|
)
|
|
138
138
|
]
|
|
139
|
-
}
|
|
139
|
+
},
|
|
140
|
+
i._key ?? m
|
|
140
141
|
) : /* @__PURE__ */ n(
|
|
141
142
|
"button",
|
|
142
143
|
{
|
|
143
|
-
className: `${e.sublinkToggle} ${
|
|
144
|
-
onMouseEnter: () => c(
|
|
144
|
+
className: `${e.sublinkToggle} ${s === m ? e.open : ""}`,
|
|
145
|
+
onMouseEnter: () => c(m),
|
|
145
146
|
children: i.label
|
|
146
|
-
}
|
|
147
|
+
},
|
|
148
|
+
i._key ?? m
|
|
147
149
|
)
|
|
148
150
|
)
|
|
149
151
|
]
|
|
150
152
|
}
|
|
151
153
|
),
|
|
152
|
-
(o == null ? void 0 : o.sublinks) && ((
|
|
154
|
+
(o == null ? void 0 : o.sublinks) && ((j = o == null ? void 0 : o.sublinks) == null ? void 0 : j.length) > 0 && /* @__PURE__ */ n(
|
|
153
155
|
"div",
|
|
154
156
|
{
|
|
155
157
|
className: `${e.sublinksColumn} ${e.childrenColumn}`,
|
|
156
|
-
children: (o == null ? void 0 : o.sublinks) &&
|
|
158
|
+
children: (o == null ? void 0 : o.sublinks) && b(
|
|
157
159
|
o.sublinks,
|
|
158
160
|
`${O}-${s}`
|
|
159
161
|
)
|
|
160
162
|
}
|
|
161
163
|
),
|
|
162
|
-
(r == null ? void 0 : r.secondaryItems) && ((
|
|
164
|
+
(r == null ? void 0 : r.secondaryItems) && ((G = r == null ? void 0 : r.secondaryItems) == null ? void 0 : G.length) > 0 && /* @__PURE__ */ n(
|
|
163
165
|
"div",
|
|
164
166
|
{
|
|
165
167
|
className: `${e.sublinksColumn} ${e.secondaryColumn}`,
|
|
166
|
-
children:
|
|
168
|
+
children: b(r.secondaryItems, `${O}-secondary`)
|
|
167
169
|
}
|
|
168
170
|
),
|
|
169
171
|
r.spotlight && /* @__PURE__ */ n(
|
|
@@ -178,32 +180,32 @@ function ye({
|
|
|
178
180
|
)
|
|
179
181
|
]
|
|
180
182
|
},
|
|
181
|
-
|
|
183
|
+
p
|
|
182
184
|
);
|
|
183
185
|
});
|
|
184
|
-
},
|
|
185
|
-
const
|
|
186
|
+
}, b = (a, s = "") => a.map((c) => {
|
|
187
|
+
const u = `${s}/${c.label}`;
|
|
186
188
|
return /* @__PURE__ */ n(
|
|
187
189
|
re,
|
|
188
190
|
{
|
|
189
191
|
link: c,
|
|
190
|
-
path:
|
|
192
|
+
path: u,
|
|
191
193
|
parentPath: s,
|
|
192
194
|
openPath: N,
|
|
193
195
|
togglePath: le,
|
|
194
196
|
updateTriangleIndicator: ae,
|
|
195
197
|
setOpenPath: f,
|
|
196
|
-
renderLinks:
|
|
197
|
-
buttonRefs:
|
|
198
|
+
renderLinks: b,
|
|
199
|
+
buttonRefs: S
|
|
198
200
|
},
|
|
199
|
-
|
|
201
|
+
u
|
|
200
202
|
);
|
|
201
203
|
});
|
|
202
204
|
return /* @__PURE__ */ n(
|
|
203
205
|
"header",
|
|
204
206
|
{
|
|
205
|
-
ref:
|
|
206
|
-
className: `${
|
|
207
|
+
ref: k,
|
|
208
|
+
className: `${Q ?? ""} ${ue[g]} ${fe[K]} ${e.navbar} ${F ? e.sticky : ""} ${J ? e.transparent : ""} `,
|
|
207
209
|
role: "navigation",
|
|
208
210
|
"aria-label": "Main navigation",
|
|
209
211
|
children: /* @__PURE__ */ d(
|
|
@@ -211,15 +213,15 @@ function ye({
|
|
|
211
213
|
{
|
|
212
214
|
className: `${e.container} ${(!l || l.length === 0) && g !== "center" ? e.twoColumn : ""}`,
|
|
213
215
|
children: [
|
|
214
|
-
|
|
216
|
+
x ? /* @__PURE__ */ n("div", { className: e.logo, children: x }) : /* @__PURE__ */ n("div", { className: e.title, children: q }),
|
|
215
217
|
/* @__PURE__ */ n(
|
|
216
218
|
"nav",
|
|
217
219
|
{
|
|
218
|
-
ref:
|
|
220
|
+
ref: v,
|
|
219
221
|
style: {
|
|
220
|
-
left: g === "center" ? `calc(50% - ${
|
|
222
|
+
left: g === "center" ? `calc(50% - ${U / 2}px)` : "0"
|
|
221
223
|
},
|
|
222
|
-
className: `${e.nav} ${t ? e.open : ""} ${
|
|
224
|
+
className: `${e.nav} ${t ? e.open : ""} ${Z ? e.visible : e.hidden}`,
|
|
223
225
|
id: "main-menu",
|
|
224
226
|
role: "menubar",
|
|
225
227
|
children: /* @__PURE__ */ d("div", { className: e.navInner, children: [
|
|
@@ -249,8 +251,8 @@ function ye({
|
|
|
249
251
|
className: `${e.triangle} ${N ? e.show : ""}`
|
|
250
252
|
}
|
|
251
253
|
),
|
|
252
|
-
|
|
253
|
-
|
|
254
|
+
M === "default" && L && /* @__PURE__ */ n("div", { className: e.grid, children: b(L) }),
|
|
255
|
+
M === "advanced" && E && /* @__PURE__ */ n("div", { className: e.grid, children: se(E) })
|
|
254
256
|
] })
|
|
255
257
|
}
|
|
256
258
|
),
|
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_qh9g1_5{position:relative;height:var(--nav-height)}._left_qh9g1_18 ._container_qh9g1_19{justify-content:flex-start}._left_qh9g1_18 ._logo_qh9g1_23{flex:unset}._left_qh9g1_18 ._nav_qh9g1_5{flex:1}@media (max-width: 767px){._left_qh9g1_18 ._logo_qh9g1_23{flex:1}}._center_qh9g1_38 ._nav_qh9g1_5{transition:transform .3s ease-in-out,opacity .3s ease-in-out;will-change:transform,opacity}._center_qh9g1_38 ._nav_qh9g1_5._hidden_qh9g1_44{transform:translateY(-100%);opacity:0;pointer-events:none}@media (min-width: 768px){._center_qh9g1_38 ._nav_qh9g1_5._visible_qh9g1_51{transform:translateY(0);opacity:1;pointer-events:auto}}@media (max-width: 767px){._center_qh9g1_38 ._logo_qh9g1_23{flex:1}}._right_qh9g1_66 ._container_qh9g1_19{justify-content:flex-end}._right_qh9g1_66 ._logo_qh9g1_23,._right_qh9g1_66 ._title_qh9g1_72{flex:1}._right_qh9g1_66 ._nav_qh9g1_5{flex:unset}._default_qh9g1_81 ._sublinks_qh9g1_82{position:fixed;left:0;right:0;top:100%;padding-top:1rem}@media (max-width: 767px){._default_qh9g1_81 ._sublinks_qh9g1_82{position:relative}}._default_qh9g1_81 ._sublinksInner_qh9g1_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_qh9g1_81 ._sublinksInner_qh9g1_94{grid-template-columns:1fr;width:auto;min-height:unset}}._default_qh9g1_81 ._linkItem_qh9g1_108{justify-content:flex-start}._minimal_qh9g1_113{left:0;background-color:#fff}._minimal_qh9g1_113 ._menuToggle_qh9g1_117{grid-area:unset}._minimal_qh9g1_113 ._linkWrapper_qh9g1_121{position:relative}._minimal_qh9g1_113 ._sublinks_qh9g1_82{position:absolute;right:0;width:auto}@media (max-width: 767px){._minimal_qh9g1_113 ._sublinks_qh9g1_82{position:relative;justify-content:center;align-items:center}}._minimal_qh9g1_113 ._sublinksInner_qh9g1_94{display:flex;flex-direction:column;min-width:125px;justify-content:flex-end;align-items:flex-end}@media (max-width: 767px){._minimal_qh9g1_113 ._sublinksInner_qh9g1_94{justify-content:center;align-items:center}}._minimal_qh9g1_113 ._linkItem_qh9g1_108{justify-content:flex-end}@media (max-width: 767px){._minimal_qh9g1_113 ._linkItem_qh9g1_108{justify-content:center;align-items:center}}._minimal_qh9g1_113 ._triangle_qh9g1_159{display:none}._transparent_qh9g1_164{background-color:transparent}._transparent_qh9g1_164 ._nav_qh9g1_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_qh9g1_164 ._nav_qh9g1_5{padding:var(--nav-height) 0 0;background:#fffffff2;border-radius:0;top:0!important;left:0!important;height:100vh}._transparent_qh9g1_164 ._nav_qh9g1_5:before{border-radius:0}}._transparent_qh9g1_164 ._menuToggle_qh9g1_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_qh9g1_216{position:fixed;top:var(--spacing-md);left:0;right:0;z-index:1000;width:100%}._container_qh9g1_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_qh9g1_19{grid-template-areas:"first second third fourth"}}._container_qh9g1_19._twoColumn_qh9g1_245{grid-template-columns:minmax(auto,1fr) auto;grid-template-areas:"first second"}._title_qh9g1_72{grid-area:first;color:var(--color-text-primary);font-size:var(--font-size-lg);font-weight:var(--font-weight-semibold)}._logo_qh9g1_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_qh9g1_23 img{height:auto;width:auto}._menuToggle_qh9g1_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_qh9g1_117 svg{position:relative;z-index:5}._utilityMobile_qh9g1_292{display:none;grid-area:third;justify-content:flex-end}._utility_qh9g1_292{grid-area:third;display:flex;justify-content:flex-end}._utility_qh9g1_292 a{font-size:var(--font-size-sm)}._nav_qh9g1_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_qh9g1_5{height:100vh}}._navInner_qh9g1_320{position:relative}@media (max-width: 767px){._navInner_qh9g1_320{margin:var(--spacing-xl) auto 0;min-width:300px}}._grid_qh9g1_329{display:grid;align-items:center;grid-auto-flow:column}@media (max-width: 767px){._grid_qh9g1_329{display:flex;flex-direction:column}}._linkItem_qh9g1_108{display:flex;align-items:center;box-sizing:border-box}._navTitle_qh9g1_354,._sublinkToggle_qh9g1_355,._link_qh9g1_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_qh9g1_354 ._newTabIcon_qh9g1_370,._sublinkToggle_qh9g1_355 ._newTabIcon_qh9g1_370,._link_qh9g1_108 ._newTabIcon_qh9g1_370{color:var(--color-muted);transition:color .3s ease-in-out}._link_qh9g1_108:hover,._link_qh9g1_108._open_qh9g1_377,._sublinkToggle_qh9g1_355:hover,._sublinkToggle_qh9g1_355._open_qh9g1_377,._link_qh9g1_108:hover ._newTabIcon_qh9g1_370,._link_qh9g1_108._open_qh9g1_377 ._newTabIcon_qh9g1_370,._sublinkToggle_qh9g1_355:hover ._newTabIcon_qh9g1_370,._sublinkToggle_qh9g1_355._open_qh9g1_377 ._newTabIcon_qh9g1_370,._navItem_qh9g1_387:hover{color:var(--color-primary)}._sublinkToggle_qh9g1_355{background:none;border:none;display:flex;align-items:center;cursor:pointer;color:var(--color-text-primary)}._sublinks_qh9g1_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_qh9g1_82._show_qh9g1_434{max-height:500px;opacity:1;pointer-events:auto;visibility:visible;transform:translateY(0)}._triangle_qh9g1_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_qh9g1_159._show_qh9g1_434{top:calc(100% + .3rem);opacity:1;visibility:visible}._primaryColumn_qh9g1_464{border-right:1px solid var(--color-border)}._secondaryColumn_qh9g1_468{background-color:var(--color-border)}._spotlightColumn_qh9g1_472{background-color:var(--color-secondary)}._sublinksInner_qh9g1_94{background-color:var(--color-background);box-shadow:0 6px 8px #0000001a;border-radius:var(--radius-md);overflow:hidden}@media (max-width: 767px){._sublinksInner_qh9g1_94{display:flex;flex-direction:column;width:unset;max-width:unset;min-height:unset;background-color:unset;box-shadow:unset;border-radius:unset}}._sublinksColumn_qh9g1_494{display:flex;flex-direction:column;padding:var(--spacing-md)}@media (max-width: 767px){._sublinksColumn_qh9g1_494{padding:0}}._chevron_qh9g1_504{transition:transform .3s ease;display:flex;align-items:center;justify-content:center;margin-top:2px}._sublinkToggle_qh9g1_355._open_qh9g1_377 ._chevron_qh9g1_504{transform:rotate(180deg)}@media (max-width: 767px){._logo_qh9g1_23{flex:1}._menuToggle_qh9g1_117{display:flex;align-items:center;justify-content:center}._utility_qh9g1_292 a:not(._utility_qh9g1_292 a:first-of-type){display:none}._utilityMobile_qh9g1_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_qh9g1_292._open_qh9g1_377{transform:translateY(0)}._nav_qh9g1_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_qh9g1_5._open_qh9g1_377{transform:translate(0)}._linkWrapper_qh9g1_121{flex-direction:column;width:100%;max-width:300px;margin:0 auto;padding:var(--spacing-sm) 0}._linkWrapper_qh9g1_121._parent_qh9g1_583{border-bottom:1px solid var(--color-border)}._linkWrapper_qh9g1_121._parent_qh9g1_583:last-of-type{border:none}._linkItem_qh9g1_108{width:100%}._chevron_qh9g1_504{display:none}._sublinks_qh9g1_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_qh9g1_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-COdGW2oV.js
DELETED
|
@@ -1,116 +0,0 @@
|
|
|
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
|
-
};
|