quirk-ui 0.0.148 → 0.0.150
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/assets/index46.css +1 -1
- package/dist/components/NavBar/index.js +92 -92
- package/dist/styles.css +1 -1
- package/package.json +1 -1
package/dist/assets/index46.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
:root{--nav-height: 65px}.
|
|
1
|
+
:root{--nav-height: 65px}._navbar_1r3yp_5{padding:0 var(--spacing-md);position:fixed;top:0;left:0;right:0;z-index:1000;height:var(--nav-height)}._transparent_1r3yp_22{position:fixed;top:var(--spacing-sm);left:0;right:0;background-color:transparent}._transparent_1r3yp_22 ._nav_1r3yp_5{background:transparent;height:auto;border-radius:var(--radius-full);padding:0 var(--spacing-md);z-index:1001}._transparent_1r3yp_22 ._nav_1r3yp_5:before{content:"";position:absolute;left:0;right:0;top: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-full)}@media (max-width: 767px){._transparent_1r3yp_22 ._nav_1r3yp_5{padding:var(--nav-height) 0 0;background:#fffffff2;border-radius:0;top:0!important;left:0!important;height:100vh}}._left_1r3yp_70 ._container_1r3yp_71{justify-content:flex-start}._left_1r3yp_70 ._logo_1r3yp_29{flex:unset}._left_1r3yp_70 ._nav_1r3yp_5{flex:1}@media (max-width: 767px){._left_1r3yp_70 ._logo_1r3yp_29{flex:1}}._center_1r3yp_90 ._nav_1r3yp_5{transition:transform .3s ease-in-out,opacity .3s ease-in-out;will-change:transform,opacity}._center_1r3yp_90 ._nav_1r3yp_5._hidden_1r3yp_96{transform:translateY(-100%);opacity:0;pointer-events:none}@media (min-width: 768px){._center_1r3yp_90 ._nav_1r3yp_5._visible_1r3yp_103{transform:translateY(0);opacity:1;pointer-events:auto}}@media (max-width: 767px){._center_1r3yp_90 ._logo_1r3yp_29{flex:1}}._right_1r3yp_118 ._container_1r3yp_71{justify-content:flex-end}._right_1r3yp_118 ._logo_1r3yp_29{flex:1}._right_1r3yp_118 ._nav_1r3yp_5{flex:unset}._sticky_1r3yp_132{position:sticky;top:0;width:100%}._container_1r3yp_71{display:grid;align-items:center;grid-template-areas:"first second third fourth";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-md);position:relative}._logo_1r3yp_29{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_1r3yp_29 img{height:auto;width:auto}._menuToggle_1r3yp_171{grid-area:fourth;background:none;border:none;cursor:pointer;display:none;color:var(--color-text-primary);z-index:1100}._utilityMobile_1r3yp_181{display:none;grid-area:third;justify-content:flex-end}._utility_1r3yp_181{grid-area:third;display:flex;justify-content:flex-end}._utility_1r3yp_181 a{font-size:var(--font-size-sm)}._nav_1r3yp_5{grid-area:second;display:grid;grid-template-columns:minmax(auto,1fr) auto;grid-gap:var(--spacing-sm);height:100vh;transition:transform .3s ease}._navInner_1r3yp_206{position:relative}@media (max-width: 767px){._navInner_1r3yp_206{margin:0 auto;min-width:300px}}._grid_1r3yp_215{display:grid;align-items:center;grid-auto-flow:column}@media (max-width: 767px){._grid_1r3yp_215{display:flex;flex-direction:column}}._linkItem_1r3yp_232{display:flex;align-items:center;box-sizing:border-box}._sublinkToggle_1r3yp_240,._link_1r3yp_226{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}._link_1r3yp_226:hover,._sublinkToggle_1r3yp_240:hover,._navItem_1r3yp_257:hover{color:var(--color-primary)}._sublinkToggle_1r3yp_240{background:none;border:none;display:flex;align-items:center;cursor:pointer;color:var(--color-text-primary)}._sublinks_1r3yp_271{position:fixed;left:0;right:0;top:100%;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;padding-top:1rem}._sublinks_1r3yp_271._show_1r3yp_309{max-height:500px;opacity:1;pointer-events:auto;visibility:visible;transform:translateY(0)}._triangle_1r3yp_317{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_1r3yp_317._show_1r3yp_309{top:calc(100% + .3rem);opacity:1;visibility:visible}._sublinksInner_1r3yp_340{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));max-width:calc(100vh - 2rem);width:78rem;min-height:24rem;background-color:var(--color-background);box-shadow:0 6px 8px #0000001a;border-radius:var(--radius-md)}@media (max-width: 767px){._sublinksInner_1r3yp_340{display:flex;flex-direction:column;width:unset;max-width:unset;min-height:unset;background-color:unset;box-shadow:unset;border-radius:unset}}._sublinksColumn_1r3yp_362{display:flex;flex-direction:column;padding:var(--spacing-md)}@media (max-width: 767px){._sublinksColumn_1r3yp_362{padding:0}}._chevron_1r3yp_372{transition:transform .3s ease;display:flex;align-items:center;justify-content:center;margin-top:2px}._sublinkToggle_1r3yp_240._open_1r3yp_380 ._chevron_1r3yp_372{transform:rotate(180deg)}@media (max-width: 767px){._logo_1r3yp_29{flex:1}._menuToggle_1r3yp_171{display:flex;align-items:center;justify-content:center}._utility_1r3yp_181 a:first-of-type{display:none}._utilityMobile_1r3yp_181{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_1r3yp_181._open_1r3yp_380{transform:translateY(0)}._nav_1r3yp_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_1r3yp_5._open_1r3yp_380{transform:translate(0)}._linkWrapper_1r3yp_226{flex-direction:column;width:100%;max-width:300px;margin:0 auto;padding:var(--spacing-sm) 0}._linkWrapper_1r3yp_226._parent_1r3yp_451{border-bottom:1px solid var(--color-border)}._linkWrapper_1r3yp_226._parent_1r3yp_451:last-of-type{border:none}._linkItem_1r3yp_232{width:100%}._chevron_1r3yp_372{display:none}._sublinks_1r3yp_271{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_1r3yp_240{cursor:pointer;pointer-events:none;color:var(--color-muted)}}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { jsx as n, jsxs as
|
|
2
|
-
import { useState as u, useRef as
|
|
3
|
-
import { CallToAction as
|
|
4
|
-
import { ButtonGroup as
|
|
1
|
+
import { jsx as n, jsxs as h } from "react/jsx-runtime";
|
|
2
|
+
import { useState as u, useRef as f, useCallback as m, useEffect as I } from "react";
|
|
3
|
+
import { CallToAction as R } from "../CallToAction/index.js";
|
|
4
|
+
import { ButtonGroup as T } from "../ButtonGroup/index.js";
|
|
5
5
|
import { X as F } from "../../x-CnsEH4Ox.js";
|
|
6
6
|
import { c as H } from "../../createLucideIcon-C8GTh_Qx.js";
|
|
7
7
|
import { C as J } from "../../chevron-down-DSUzBz9F.js";
|
|
@@ -15,122 +15,122 @@ const K = [
|
|
|
15
15
|
["line", { x1: "4", x2: "20", y1: "12", y2: "12", key: "1e0a9i" }],
|
|
16
16
|
["line", { x1: "4", x2: "20", y1: "6", y2: "6", key: "1owob3" }],
|
|
17
17
|
["line", { x1: "4", x2: "20", y1: "18", y2: "18", key: "yk5zj1" }]
|
|
18
|
-
], Q = H("menu", K), U = "
|
|
18
|
+
], Q = H("menu", K), U = "_navbar_1r3yp_5", Y = "_transparent_1r3yp_22", Z = "_nav_1r3yp_5", ee = "_left_1r3yp_70", ne = "_container_1r3yp_71", te = "_logo_1r3yp_29", re = "_center_1r3yp_90", se = "_hidden_1r3yp_96", oe = "_visible_1r3yp_103", ie = "_right_1r3yp_118", le = "_sticky_1r3yp_132", ae = "_menuToggle_1r3yp_171", ce = "_utilityMobile_1r3yp_181", de = "_utility_1r3yp_181", ue = "_navInner_1r3yp_206", _e = "_grid_1r3yp_215", pe = "_linkWrapper_1r3yp_226", he = "_linkItem_1r3yp_232", fe = "_sublinkToggle_1r3yp_240", me = "_link_1r3yp_226", ve = "_sublinks_1r3yp_271", ye = "_show_1r3yp_309", ge = "_triangle_1r3yp_317", be = "_sublinksInner_1r3yp_340", we = "_sublinksColumn_1r3yp_362", ke = "_chevron_1r3yp_372", Ne = "_open_1r3yp_380", $e = "_parent_1r3yp_451", e = {
|
|
19
19
|
navbar: U,
|
|
20
20
|
transparent: Y,
|
|
21
21
|
nav: Z,
|
|
22
22
|
left: ee,
|
|
23
23
|
container: ne,
|
|
24
24
|
logo: te,
|
|
25
|
-
center:
|
|
26
|
-
hidden:
|
|
27
|
-
visible:
|
|
28
|
-
right:
|
|
29
|
-
sticky:
|
|
25
|
+
center: re,
|
|
26
|
+
hidden: se,
|
|
27
|
+
visible: oe,
|
|
28
|
+
right: ie,
|
|
29
|
+
sticky: le,
|
|
30
30
|
menuToggle: ae,
|
|
31
31
|
utilityMobile: ce,
|
|
32
32
|
utility: de,
|
|
33
33
|
navInner: ue,
|
|
34
34
|
grid: _e,
|
|
35
|
-
linkWrapper:
|
|
36
|
-
linkItem:
|
|
37
|
-
sublinkToggle:
|
|
38
|
-
link:
|
|
39
|
-
sublinks:
|
|
40
|
-
show:
|
|
41
|
-
triangle:
|
|
42
|
-
sublinksInner:
|
|
35
|
+
linkWrapper: pe,
|
|
36
|
+
linkItem: he,
|
|
37
|
+
sublinkToggle: fe,
|
|
38
|
+
link: me,
|
|
39
|
+
sublinks: ve,
|
|
40
|
+
show: ye,
|
|
41
|
+
triangle: ge,
|
|
42
|
+
sublinksInner: be,
|
|
43
43
|
sublinksColumn: we,
|
|
44
44
|
chevron: ke,
|
|
45
|
-
open:
|
|
46
|
-
parent:
|
|
47
|
-
},
|
|
45
|
+
open: Ne,
|
|
46
|
+
parent: $e
|
|
47
|
+
}, Ce = {
|
|
48
48
|
left: e.left,
|
|
49
49
|
center: e.center,
|
|
50
50
|
right: e.right
|
|
51
51
|
};
|
|
52
|
-
function
|
|
53
|
-
logo:
|
|
54
|
-
items:
|
|
52
|
+
function We({
|
|
53
|
+
logo: W,
|
|
54
|
+
items: z,
|
|
55
55
|
utilityItems: a,
|
|
56
|
-
isSticky:
|
|
57
|
-
isTransparent:
|
|
58
|
-
alignment:
|
|
59
|
-
className:
|
|
56
|
+
isSticky: O = !1,
|
|
57
|
+
isTransparent: B = !1,
|
|
58
|
+
alignment: y = "right",
|
|
59
|
+
className: j
|
|
60
60
|
}) {
|
|
61
|
-
const [
|
|
62
|
-
|
|
61
|
+
const [i, g] = u(!1), [_, l] = u(null), [X, S] = u(0), [D, V] = u(!1), [A, G] = u(null), v = f(null), c = f(null), b = f(/* @__PURE__ */ new Map()), P = () => {
|
|
62
|
+
g((t) => !t);
|
|
63
63
|
}, q = (t) => {
|
|
64
|
-
const
|
|
65
|
-
if (
|
|
66
|
-
const
|
|
64
|
+
const s = b.current.get(t);
|
|
65
|
+
if (s && c.current) {
|
|
66
|
+
const r = s.getBoundingClientRect(), o = c.current.getBoundingClientRect(), d = r.left - o.left + r.width / 4;
|
|
67
67
|
G(d);
|
|
68
68
|
}
|
|
69
69
|
}, w = (t) => {
|
|
70
|
-
|
|
70
|
+
l((s) => s === t ? null : t);
|
|
71
71
|
};
|
|
72
72
|
console.log(_);
|
|
73
|
-
const k =
|
|
74
|
-
|
|
75
|
-
}, []),
|
|
76
|
-
|
|
77
|
-
}, []),
|
|
78
|
-
|
|
79
|
-
}, []),
|
|
73
|
+
const k = m((t) => {
|
|
74
|
+
v.current && !v.current.contains(t.target) && l(null);
|
|
75
|
+
}, []), N = m(() => {
|
|
76
|
+
l(null);
|
|
77
|
+
}, []), $ = m(() => {
|
|
78
|
+
C(), typeof window < "u" && window.innerWidth > 768 && (g(!1), l(null), typeof document < "u" && (document.body.style.overflow = ""));
|
|
79
|
+
}, []), C = m(() => {
|
|
80
80
|
if (c.current) {
|
|
81
81
|
const t = c.current.getBoundingClientRect().width;
|
|
82
82
|
S(t), V(!0);
|
|
83
83
|
}
|
|
84
84
|
}, []);
|
|
85
|
-
|
|
86
|
-
const t = typeof window < "u",
|
|
87
|
-
return t && (window.addEventListener("resize",
|
|
88
|
-
t && (window.removeEventListener("resize",
|
|
85
|
+
I(() => {
|
|
86
|
+
const t = typeof window < "u", s = typeof document < "u";
|
|
87
|
+
return t && (window.addEventListener("resize", $), window.addEventListener("scroll", N)), s && document.addEventListener("click", k), C(), () => {
|
|
88
|
+
t && (window.removeEventListener("resize", $), window.removeEventListener("scroll", N)), s && document.removeEventListener("click", k);
|
|
89
89
|
};
|
|
90
|
-
}, []),
|
|
90
|
+
}, []), I(() => {
|
|
91
91
|
if (typeof document < "u")
|
|
92
|
-
return document.body.style.overflow =
|
|
92
|
+
return document.body.style.overflow = i ? "hidden" : "", () => {
|
|
93
93
|
document.body.style.overflow = "";
|
|
94
94
|
};
|
|
95
|
-
}, [
|
|
96
|
-
const
|
|
97
|
-
var
|
|
98
|
-
const
|
|
99
|
-
return
|
|
95
|
+
}, [i]);
|
|
96
|
+
const x = (t, s = "") => t.map((r) => {
|
|
97
|
+
var M;
|
|
98
|
+
const o = `${s}/${r.label}`, p = _ === o, d = (M = r.sublinks) == null ? void 0 : M.length, L = f(null);
|
|
99
|
+
return b.current.set(o, L.current), /* @__PURE__ */ h(
|
|
100
100
|
"div",
|
|
101
101
|
{
|
|
102
|
-
className: `${e.linkWrapper} ${
|
|
102
|
+
className: `${e.linkWrapper} ${s ? "" : e.parent}`,
|
|
103
103
|
children: [
|
|
104
|
-
/* @__PURE__ */ n("div", { className: e.linkItem, children:
|
|
104
|
+
/* @__PURE__ */ n("div", { className: e.linkItem, children: r.href ? /* @__PURE__ */ n(
|
|
105
105
|
"a",
|
|
106
106
|
{
|
|
107
|
-
href:
|
|
107
|
+
href: r.href,
|
|
108
108
|
className: e.link,
|
|
109
|
-
target:
|
|
110
|
-
rel:
|
|
109
|
+
target: r.isExternal ? "_blank" : "_self",
|
|
110
|
+
rel: r.isExternal ? "noopener noreferrer" : void 0,
|
|
111
111
|
onClick: () => {
|
|
112
|
-
var
|
|
113
|
-
|
|
112
|
+
var E;
|
|
113
|
+
l(null), (E = r.onClick) == null || E.call(r);
|
|
114
114
|
},
|
|
115
115
|
onMouseEnter: () => {
|
|
116
|
-
|
|
116
|
+
s || l(null);
|
|
117
117
|
},
|
|
118
118
|
role: "menuitem",
|
|
119
|
-
children:
|
|
119
|
+
children: r.label
|
|
120
120
|
}
|
|
121
|
-
) : /* @__PURE__ */
|
|
121
|
+
) : /* @__PURE__ */ h(
|
|
122
122
|
"button",
|
|
123
123
|
{
|
|
124
|
-
ref:
|
|
124
|
+
ref: L,
|
|
125
125
|
"aria-haspopup": d ? "true" : void 0,
|
|
126
|
-
"aria-expanded":
|
|
127
|
-
className: `${e.sublinkToggle} ${
|
|
128
|
-
onClick: () => w(
|
|
126
|
+
"aria-expanded": p,
|
|
127
|
+
className: `${e.sublinkToggle} ${p ? e.open : ""}`,
|
|
128
|
+
onClick: () => w(o),
|
|
129
129
|
onMouseEnter: () => {
|
|
130
|
-
q(
|
|
130
|
+
q(o), l(o);
|
|
131
131
|
},
|
|
132
132
|
children: [
|
|
133
|
-
|
|
133
|
+
r.label,
|
|
134
134
|
d && /* @__PURE__ */ n(J, { size: 18, className: e.chevron })
|
|
135
135
|
]
|
|
136
136
|
}
|
|
@@ -138,38 +138,38 @@ function Re({
|
|
|
138
138
|
d && /* @__PURE__ */ n(
|
|
139
139
|
"div",
|
|
140
140
|
{
|
|
141
|
-
className: `${e.sublinks} ${
|
|
142
|
-
onMouseLeave: () => w(
|
|
141
|
+
className: `${e.sublinks} ${p ? e.show : ""}`,
|
|
142
|
+
onMouseLeave: () => w(o),
|
|
143
143
|
role: "menu",
|
|
144
|
-
"aria-label": `${
|
|
145
|
-
children: /* @__PURE__ */ n("div", { children: /* @__PURE__ */ n("div", { className: e.sublinksInner, children: /* @__PURE__ */ n("div", { className: e.sublinksColumn, children:
|
|
144
|
+
"aria-label": `${r.label} submenu`,
|
|
145
|
+
children: /* @__PURE__ */ n("div", { children: /* @__PURE__ */ n("div", { className: e.sublinksInner, children: /* @__PURE__ */ n("div", { className: e.sublinksColumn, children: x(r.sublinks, o) }) }) })
|
|
146
146
|
}
|
|
147
147
|
)
|
|
148
148
|
]
|
|
149
149
|
},
|
|
150
|
-
|
|
150
|
+
o
|
|
151
151
|
);
|
|
152
152
|
});
|
|
153
153
|
return /* @__PURE__ */ n(
|
|
154
154
|
"header",
|
|
155
155
|
{
|
|
156
|
-
ref:
|
|
157
|
-
className: `${
|
|
156
|
+
ref: v,
|
|
157
|
+
className: `${j ?? ""} ${Ce[y]} ${e.navbar} ${O ? e.sticky : ""} ${B ? e.transparent : ""} `,
|
|
158
158
|
role: "navigation",
|
|
159
159
|
"aria-label": "Main navigation",
|
|
160
|
-
children: /* @__PURE__ */
|
|
161
|
-
/* @__PURE__ */ n("div", { className: e.logo, children:
|
|
160
|
+
children: /* @__PURE__ */ h("div", { className: e.container, children: [
|
|
161
|
+
/* @__PURE__ */ n("div", { className: e.logo, children: W }),
|
|
162
162
|
/* @__PURE__ */ n(
|
|
163
163
|
"nav",
|
|
164
164
|
{
|
|
165
165
|
ref: c,
|
|
166
166
|
style: {
|
|
167
|
-
left:
|
|
167
|
+
left: y === "center" ? `calc(50% - ${X / 2}px)` : "unset"
|
|
168
168
|
},
|
|
169
|
-
className: `${e.nav} ${
|
|
169
|
+
className: `${e.nav} ${i ? e.open : ""} ${D ? e.visible : e.hidden}`,
|
|
170
170
|
id: "main-menu",
|
|
171
171
|
role: "menubar",
|
|
172
|
-
children: /* @__PURE__ */
|
|
172
|
+
children: /* @__PURE__ */ h("div", { className: e.navInner, children: [
|
|
173
173
|
/* @__PURE__ */ n(
|
|
174
174
|
"svg",
|
|
175
175
|
{
|
|
@@ -183,7 +183,7 @@ function Re({
|
|
|
183
183
|
"polygon",
|
|
184
184
|
{
|
|
185
185
|
points: "50,5 95,70 5,70",
|
|
186
|
-
|
|
186
|
+
strokeLinejoin: "round",
|
|
187
187
|
fill: "white",
|
|
188
188
|
stroke: "white"
|
|
189
189
|
}
|
|
@@ -196,26 +196,26 @@ function Re({
|
|
|
196
196
|
className: `${e.triangle} ${_ ? e.show : ""}`
|
|
197
197
|
}
|
|
198
198
|
),
|
|
199
|
-
/* @__PURE__ */ n("div", { className: e.grid, children:
|
|
199
|
+
/* @__PURE__ */ n("div", { className: e.grid, children: x(z) })
|
|
200
200
|
] })
|
|
201
201
|
}
|
|
202
202
|
),
|
|
203
|
-
a && /* @__PURE__ */ n("nav", { className: e.utility, children: /* @__PURE__ */ n(
|
|
204
|
-
|
|
203
|
+
a && /* @__PURE__ */ n("nav", { className: e.utility, children: /* @__PURE__ */ n(T, { children: a.map((t, s) => /* @__PURE__ */ n(
|
|
204
|
+
R,
|
|
205
205
|
{
|
|
206
206
|
as: "a",
|
|
207
207
|
href: t.href ?? "/",
|
|
208
208
|
variant: t.variant,
|
|
209
209
|
children: t.label
|
|
210
210
|
},
|
|
211
|
-
t._id ||
|
|
211
|
+
t._id || s
|
|
212
212
|
)) }) }),
|
|
213
213
|
a && /* @__PURE__ */ n(
|
|
214
214
|
"nav",
|
|
215
215
|
{
|
|
216
|
-
className: `${e.utilityMobile} ${
|
|
217
|
-
children: /* @__PURE__ */ n(
|
|
218
|
-
|
|
216
|
+
className: `${e.utilityMobile} ${i ? e.open : ""}`,
|
|
217
|
+
children: /* @__PURE__ */ n(T, { alignment: "center", children: /* @__PURE__ */ n(
|
|
218
|
+
R,
|
|
219
219
|
{
|
|
220
220
|
as: "a",
|
|
221
221
|
href: a[0].href ?? "/",
|
|
@@ -231,10 +231,10 @@ function Re({
|
|
|
231
231
|
{
|
|
232
232
|
className: e.menuToggle,
|
|
233
233
|
onClick: P,
|
|
234
|
-
"aria-label":
|
|
235
|
-
"aria-expanded":
|
|
234
|
+
"aria-label": i ? "Close menu" : "Open menu",
|
|
235
|
+
"aria-expanded": i,
|
|
236
236
|
"aria-controls": "main-menu",
|
|
237
|
-
children:
|
|
237
|
+
children: i ? /* @__PURE__ */ n(F, { size: 24 }) : /* @__PURE__ */ n(Q, { size: 24 })
|
|
238
238
|
}
|
|
239
239
|
)
|
|
240
240
|
] })
|
|
@@ -242,5 +242,5 @@ function Re({
|
|
|
242
242
|
);
|
|
243
243
|
}
|
|
244
244
|
export {
|
|
245
|
-
|
|
245
|
+
We as Navbar
|
|
246
246
|
};
|
package/dist/styles.css
CHANGED
|
@@ -43,6 +43,6 @@ ul._list_4w9h5_1{list-style-type:none;padding:0;margin:0}ol._list_4w9h5_1{list-s
|
|
|
43
43
|
._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)}
|
|
44
44
|
._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)}
|
|
45
45
|
._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}
|
|
46
|
-
:root{--nav-height: 65px}.
|
|
46
|
+
:root{--nav-height: 65px}._navbar_1r3yp_5{padding:0 var(--spacing-md);position:fixed;top:0;left:0;right:0;z-index:1000;height:var(--nav-height)}._transparent_1r3yp_22{position:fixed;top:var(--spacing-sm);left:0;right:0;background-color:transparent}._transparent_1r3yp_22 ._nav_1r3yp_5{background:transparent;height:auto;border-radius:var(--radius-full);padding:0 var(--spacing-md);z-index:1001}._transparent_1r3yp_22 ._nav_1r3yp_5:before{content:"";position:absolute;left:0;right:0;top: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-full)}@media (max-width: 767px){._transparent_1r3yp_22 ._nav_1r3yp_5{padding:var(--nav-height) 0 0;background:#fffffff2;border-radius:0;top:0!important;left:0!important;height:100vh}}._left_1r3yp_70 ._container_1r3yp_71{justify-content:flex-start}._left_1r3yp_70 ._logo_1r3yp_29{flex:unset}._left_1r3yp_70 ._nav_1r3yp_5{flex:1}@media (max-width: 767px){._left_1r3yp_70 ._logo_1r3yp_29{flex:1}}._center_1r3yp_90 ._nav_1r3yp_5{transition:transform .3s ease-in-out,opacity .3s ease-in-out;will-change:transform,opacity}._center_1r3yp_90 ._nav_1r3yp_5._hidden_1r3yp_96{transform:translateY(-100%);opacity:0;pointer-events:none}@media (min-width: 768px){._center_1r3yp_90 ._nav_1r3yp_5._visible_1r3yp_103{transform:translateY(0);opacity:1;pointer-events:auto}}@media (max-width: 767px){._center_1r3yp_90 ._logo_1r3yp_29{flex:1}}._right_1r3yp_118 ._container_1r3yp_71{justify-content:flex-end}._right_1r3yp_118 ._logo_1r3yp_29{flex:1}._right_1r3yp_118 ._nav_1r3yp_5{flex:unset}._sticky_1r3yp_132{position:sticky;top:0;width:100%}._container_1r3yp_71{display:grid;align-items:center;grid-template-areas:"first second third fourth";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-md);position:relative}._logo_1r3yp_29{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_1r3yp_29 img{height:auto;width:auto}._menuToggle_1r3yp_171{grid-area:fourth;background:none;border:none;cursor:pointer;display:none;color:var(--color-text-primary);z-index:1100}._utilityMobile_1r3yp_181{display:none;grid-area:third;justify-content:flex-end}._utility_1r3yp_181{grid-area:third;display:flex;justify-content:flex-end}._utility_1r3yp_181 a{font-size:var(--font-size-sm)}._nav_1r3yp_5{grid-area:second;display:grid;grid-template-columns:minmax(auto,1fr) auto;grid-gap:var(--spacing-sm);height:100vh;transition:transform .3s ease}._navInner_1r3yp_206{position:relative}@media (max-width: 767px){._navInner_1r3yp_206{margin:0 auto;min-width:300px}}._grid_1r3yp_215{display:grid;align-items:center;grid-auto-flow:column}@media (max-width: 767px){._grid_1r3yp_215{display:flex;flex-direction:column}}._linkItem_1r3yp_232{display:flex;align-items:center;box-sizing:border-box}._sublinkToggle_1r3yp_240,._link_1r3yp_226{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}._link_1r3yp_226:hover,._sublinkToggle_1r3yp_240:hover,._navItem_1r3yp_257:hover{color:var(--color-primary)}._sublinkToggle_1r3yp_240{background:none;border:none;display:flex;align-items:center;cursor:pointer;color:var(--color-text-primary)}._sublinks_1r3yp_271{position:fixed;left:0;right:0;top:100%;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;padding-top:1rem}._sublinks_1r3yp_271._show_1r3yp_309{max-height:500px;opacity:1;pointer-events:auto;visibility:visible;transform:translateY(0)}._triangle_1r3yp_317{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_1r3yp_317._show_1r3yp_309{top:calc(100% + .3rem);opacity:1;visibility:visible}._sublinksInner_1r3yp_340{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));max-width:calc(100vh - 2rem);width:78rem;min-height:24rem;background-color:var(--color-background);box-shadow:0 6px 8px #0000001a;border-radius:var(--radius-md)}@media (max-width: 767px){._sublinksInner_1r3yp_340{display:flex;flex-direction:column;width:unset;max-width:unset;min-height:unset;background-color:unset;box-shadow:unset;border-radius:unset}}._sublinksColumn_1r3yp_362{display:flex;flex-direction:column;padding:var(--spacing-md)}@media (max-width: 767px){._sublinksColumn_1r3yp_362{padding:0}}._chevron_1r3yp_372{transition:transform .3s ease;display:flex;align-items:center;justify-content:center;margin-top:2px}._sublinkToggle_1r3yp_240._open_1r3yp_380 ._chevron_1r3yp_372{transform:rotate(180deg)}@media (max-width: 767px){._logo_1r3yp_29{flex:1}._menuToggle_1r3yp_171{display:flex;align-items:center;justify-content:center}._utility_1r3yp_181 a:first-of-type{display:none}._utilityMobile_1r3yp_181{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_1r3yp_181._open_1r3yp_380{transform:translateY(0)}._nav_1r3yp_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_1r3yp_5._open_1r3yp_380{transform:translate(0)}._linkWrapper_1r3yp_226{flex-direction:column;width:100%;max-width:300px;margin:0 auto;padding:var(--spacing-sm) 0}._linkWrapper_1r3yp_226._parent_1r3yp_451{border-bottom:1px solid var(--color-border)}._linkWrapper_1r3yp_226._parent_1r3yp_451:last-of-type{border:none}._linkItem_1r3yp_232{width:100%}._chevron_1r3yp_372{display:none}._sublinks_1r3yp_271{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_1r3yp_240{cursor:pointer;pointer-events:none;color:var(--color-muted)}}
|
|
47
47
|
._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}
|
|
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)}
|