quirk-ui 0.0.169 → 0.0.171
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
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
:root{--nav-height: 65px}.
|
|
1
|
+
:root{--nav-height: 65px}._navbar_937v2_5{position:relative;height:var(--nav-height)}._left_937v2_18 ._container_937v2_19{justify-content:flex-start}._left_937v2_18 ._logo_937v2_23{flex:unset}._left_937v2_18 ._nav_937v2_5{flex:1}@media (max-width: 767px){._left_937v2_18 ._logo_937v2_23{flex:1}}._center_937v2_38 ._nav_937v2_5{transition:transform .3s ease-in-out,opacity .3s ease-in-out;will-change:transform,opacity}._center_937v2_38 ._nav_937v2_5._hidden_937v2_44{transform:translateY(-100%);opacity:0;pointer-events:none}@media (min-width: 768px){._center_937v2_38 ._nav_937v2_5._visible_937v2_51{transform:translateY(0);opacity:1;pointer-events:auto}}@media (max-width: 767px){._center_937v2_38 ._logo_937v2_23{flex:1}}._right_937v2_66 ._container_937v2_19{justify-content:flex-end}._right_937v2_66 ._logo_937v2_23,._right_937v2_66 ._title_937v2_72{flex:1}._right_937v2_66 ._nav_937v2_5{flex:unset}._default_937v2_81 ._sublinks_937v2_82{position:fixed;left:0;right:0;top:100%;padding-top:1rem}@media (max-width: 767px){._default_937v2_81 ._sublinks_937v2_82{position:relative}}._default_937v2_81 ._sublinksInner_937v2_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_937v2_81 ._sublinksInner_937v2_94{grid-template-columns:1fr;width:auto;min-height:unset}}._default_937v2_81 ._linkItem_937v2_108{justify-content:flex-start}._minimal_937v2_113{left:0;background-color:#fff}._minimal_937v2_113 ._menuToggle_937v2_117{grid-area:unset}._minimal_937v2_113 ._linkWrapper_937v2_121{position:relative}._minimal_937v2_113 ._sublinks_937v2_82{position:absolute;right:0;width:auto}@media (max-width: 767px){._minimal_937v2_113 ._sublinks_937v2_82{position:relative;justify-content:center;align-items:center}}._minimal_937v2_113 ._sublinksInner_937v2_94{display:flex;flex-direction:column;min-width:125px;justify-content:flex-end;align-items:flex-end}@media (max-width: 767px){._minimal_937v2_113 ._sublinksInner_937v2_94{justify-content:center;align-items:center}}._minimal_937v2_113 ._linkItem_937v2_108{justify-content:flex-end}@media (max-width: 767px){._minimal_937v2_113 ._linkItem_937v2_108{justify-content:center;align-items:center}}._minimal_937v2_113 ._triangle_937v2_159{display:none}._transparent_937v2_164{background-color:transparent}._transparent_937v2_164 ._nav_937v2_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_937v2_164 ._nav_937v2_5{padding:var(--nav-height) 0 0;background:#fffffff2;border-radius:0;top:0!important;left:0!important;height:100vh}._transparent_937v2_164 ._nav_937v2_5:before{border-radius:0}}._transparent_937v2_164 ._menuToggle_937v2_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_937v2_216{position:fixed;top:var(--spacing-md);left:0;right:0;z-index:1000;width:100%}._container_937v2_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_937v2_19{grid-template-areas:"first second third fourth"}}._container_937v2_19._twoColumn_937v2_245{grid-template-columns:minmax(auto,1fr) auto;grid-template-areas:"first second"}._title_937v2_72{grid-area:first;color:var(--color-text-primary);font-size:var(--font-size-lg);font-weight:var(--font-weight-semibold)}._logo_937v2_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_937v2_23 img{height:auto;width:auto}._menuToggle_937v2_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_937v2_117 svg{position:relative;z-index:5}._utilityMobile_937v2_292{display:none;grid-area:third;justify-content:flex-end}._utility_937v2_292{grid-area:third;display:flex;justify-content:flex-end}._utility_937v2_292 a{font-size:var(--font-size-sm)}._nav_937v2_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_937v2_5{height:100vh}}._navInner_937v2_320{position:relative}@media (max-width: 767px){._navInner_937v2_320{margin:var(--spacing-xl) auto 0;min-width:300px}}._grid_937v2_329{display:grid;align-items:center;grid-auto-flow:column}@media (max-width: 767px){._grid_937v2_329{display:flex;flex-direction:column}}._linkItem_937v2_108{display:flex;align-items:center;box-sizing:border-box}._sublinkToggle_937v2_354,._link_937v2_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}._link_937v2_108:hover,._sublinkToggle_937v2_354:hover,._sublinkToggle_937v2_354._open_937v2_368,._navItem_937v2_372:hover{color:var(--color-primary)}._sublinkToggle_937v2_354{background:none;border:none;display:flex;align-items:center;cursor:pointer;color:var(--color-text-primary)}._sublinks_937v2_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_937v2_82._show_937v2_419{max-height:500px;opacity:1;pointer-events:auto;visibility:visible;transform:translateY(0)}._triangle_937v2_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_937v2_159._show_937v2_419{top:calc(100% + .3rem);opacity:1;visibility:visible}._sublinksInner_937v2_94{background-color:var(--color-background);box-shadow:0 6px 8px #0000001a;border-radius:var(--radius-md)}@media (max-width: 767px){._sublinksInner_937v2_94{display:flex;flex-direction:column;width:unset;max-width:unset;min-height:unset;background-color:unset;box-shadow:unset;border-radius:unset}}._sublinksColumn_937v2_467{display:flex;flex-direction:column;padding:var(--spacing-md)}@media (max-width: 767px){._sublinksColumn_937v2_467{padding:0}}._chevron_937v2_477{transition:transform .3s ease;display:flex;align-items:center;justify-content:center;margin-top:2px}._sublinkToggle_937v2_354._open_937v2_368 ._chevron_937v2_477{transform:rotate(180deg)}@media (max-width: 767px){._logo_937v2_23{flex:1}._menuToggle_937v2_117{display:flex;align-items:center;justify-content:center}._utility_937v2_292 a:not(._utility_937v2_292 a:first-of-type){display:none}._utilityMobile_937v2_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_937v2_292._open_937v2_368{transform:translateY(0)}._nav_937v2_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_937v2_5._open_937v2_368{transform:translate(0)}._linkWrapper_937v2_121{flex-direction:column;width:100%;max-width:300px;margin:0 auto;padding:var(--spacing-sm) 0}._linkWrapper_937v2_121._parent_937v2_556{border-bottom:1px solid var(--color-border)}._linkWrapper_937v2_121._parent_937v2_556:last-of-type{border:none}._linkItem_937v2_108{width:100%}._chevron_937v2_477{display:none}._sublinks_937v2_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_937v2_354{cursor:pointer;pointer-events:none;color:var(--color-muted)}}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsxs as A, jsx as r } from "react/jsx-runtime";
|
|
2
|
-
import { useState as c, useRef as
|
|
2
|
+
import { useState as c, useRef as C, useEffect as E } from "react";
|
|
3
3
|
import { A as wt } from "../../arrow-left-BIJvHwNQ.js";
|
|
4
4
|
import { A as bt } from "../../arrow-right-QEwnX3Sk.js";
|
|
5
|
-
import '../../assets/index31.css';const gt = "_carousel_1e9ij_1", xt = "_noPointerEvents_1e9ij_9", $t = "_trackContainer_1e9ij_13", Ct = "_track_1e9ij_13", Et = "_page_1e9ij_28", Xt = "_controls_1e9ij_34", jt = "_indicators_1e9ij_45",
|
|
5
|
+
import '../../assets/index31.css';const gt = "_carousel_1e9ij_1", xt = "_noPointerEvents_1e9ij_9", $t = "_trackContainer_1e9ij_13", Ct = "_track_1e9ij_13", Et = "_page_1e9ij_28", Xt = "_controls_1e9ij_34", jt = "_indicators_1e9ij_45", It = "_indicator_1e9ij_45", yt = "_active_1e9ij_62", Nt = "_buttons_1e9ij_66", kt = "_prev_1e9ij_71", Tt = "_disabled_1e9ij_71", At = "_next_1e9ij_72", o = {
|
|
6
6
|
carousel: gt,
|
|
7
7
|
noPointerEvents: xt,
|
|
8
8
|
trackContainer: $t,
|
|
@@ -10,15 +10,15 @@ import '../../assets/index31.css';const gt = "_carousel_1e9ij_1", xt = "_noPoint
|
|
|
10
10
|
page: Et,
|
|
11
11
|
controls: Xt,
|
|
12
12
|
indicators: jt,
|
|
13
|
-
indicator:
|
|
14
|
-
active:
|
|
13
|
+
indicator: It,
|
|
14
|
+
active: yt,
|
|
15
15
|
buttons: Nt,
|
|
16
16
|
prev: kt,
|
|
17
17
|
disabled: Tt,
|
|
18
18
|
next: At
|
|
19
19
|
};
|
|
20
20
|
function Pt({
|
|
21
|
-
items:
|
|
21
|
+
items: _,
|
|
22
22
|
itemsPerPage: i = 9,
|
|
23
23
|
itemsPerRow: J = 3,
|
|
24
24
|
autoplay: K = !1,
|
|
@@ -28,60 +28,60 @@ function Pt({
|
|
|
28
28
|
siblingRef: l,
|
|
29
29
|
isSplit: D = !1
|
|
30
30
|
}) {
|
|
31
|
-
const [d, u] = c(0), [
|
|
32
|
-
Math.abs((
|
|
31
|
+
const [d, u] = c(0), [m, M] = c(0), [S, Z] = c(0), [w, tt] = c(i), [b, et] = c(!1), [L, nt] = c(K), ot = C(null), g = C(null), f = C(null), x = V, [p, X] = c(!1), [P, z] = c(null), [$, Y] = c(null), [R, U] = c(null), [st, B] = c(!1), [v, G] = c(null), [j, O] = c(null), ct = (t) => {
|
|
32
|
+
Math.abs((j ?? 0) - (v ?? 0)) > 25 && (t.stopPropagation(), t.preventDefault());
|
|
33
33
|
}, rt = (t) => {
|
|
34
34
|
G(t.clientX);
|
|
35
35
|
}, at = (t) => {
|
|
36
|
-
|
|
36
|
+
v !== null && Math.abs(t.clientX - v) > 5 && (B(!0), O(t.clientX));
|
|
37
37
|
}, it = () => {
|
|
38
|
-
if (!
|
|
38
|
+
if (!v || !j) {
|
|
39
39
|
I();
|
|
40
40
|
return;
|
|
41
41
|
}
|
|
42
|
-
const t =
|
|
42
|
+
const t = v - j;
|
|
43
43
|
Math.abs(t) > 50 && (t > 0 ? k() : T()), I();
|
|
44
44
|
}, lt = () => {
|
|
45
45
|
I();
|
|
46
46
|
}, I = () => {
|
|
47
47
|
B(!1), G(null), O(null);
|
|
48
48
|
}, dt = (t) => {
|
|
49
|
-
Y(t.touches[0].clientX), z(t.touches[0].clientY),
|
|
50
|
-
}, q =
|
|
51
|
-
|
|
49
|
+
Y(t.touches[0].clientX), z(t.touches[0].clientY), X(!1);
|
|
50
|
+
}, q = C(null);
|
|
51
|
+
E(() => {
|
|
52
52
|
const t = q.current;
|
|
53
53
|
if (!t) return;
|
|
54
54
|
const e = (n) => {
|
|
55
55
|
const s = n.touches[0].clientX - ($ ?? 0), a = n.touches[0].clientY - (P ?? 0);
|
|
56
|
-
!
|
|
56
|
+
!p && Math.abs(s) > Math.abs(a) && X(!0), p && (n.preventDefault(), U(n.touches[0].clientX));
|
|
57
57
|
};
|
|
58
58
|
return t.addEventListener("touchmove", e), () => {
|
|
59
59
|
t.removeEventListener("touchmove", e);
|
|
60
60
|
};
|
|
61
|
-
}, [
|
|
61
|
+
}, [p, $, P]);
|
|
62
62
|
const ut = () => {
|
|
63
63
|
if ($ === null || R === null) return;
|
|
64
64
|
const t = $ - R;
|
|
65
|
-
Math.abs(t) > 50 && (t > 0 ? k() : T()), Y(null), U(null), z(null),
|
|
65
|
+
Math.abs(t) > 50 && (t > 0 ? k() : T()), Y(null), U(null), z(null), X(!1);
|
|
66
66
|
}, ht = (t, e) => {
|
|
67
67
|
const n = [];
|
|
68
68
|
for (let s = 0; s < t.length; s += e)
|
|
69
69
|
n.push(t.slice(s, s + e));
|
|
70
70
|
return n;
|
|
71
71
|
};
|
|
72
|
-
|
|
72
|
+
E(() => {
|
|
73
73
|
if (typeof window < "u") {
|
|
74
74
|
const t = () => {
|
|
75
75
|
const e = window.innerWidth < 768, n = e ? 1 : i;
|
|
76
76
|
et(e), tt(e ? 1 : i), u(
|
|
77
|
-
(s) => Math.min(s, Math.ceil(
|
|
77
|
+
(s) => Math.min(s, Math.ceil(_.length / n) - 1)
|
|
78
78
|
);
|
|
79
79
|
};
|
|
80
80
|
return t(), window.addEventListener("resize", t), () => window.removeEventListener("resize", t);
|
|
81
81
|
}
|
|
82
82
|
}, [i]);
|
|
83
|
-
const
|
|
84
|
-
|
|
83
|
+
const y = Math.ceil(w / J), F = ht(_, w), h = F.length, ft = 3 * 16, pt = 3 * 16;
|
|
84
|
+
E(() => {
|
|
85
85
|
const t = new ResizeObserver((e) => {
|
|
86
86
|
var n, s;
|
|
87
87
|
for (let a of e)
|
|
@@ -93,38 +93,38 @@ function Pt({
|
|
|
93
93
|
));
|
|
94
94
|
const mt = b ? 1 : i;
|
|
95
95
|
u(
|
|
96
|
-
(Mt) => Math.min(Mt, Math.ceil(
|
|
96
|
+
(Mt) => Math.min(Mt, Math.ceil(_.length / mt) - 1)
|
|
97
97
|
);
|
|
98
98
|
}
|
|
99
99
|
});
|
|
100
100
|
return x != null && x.current && t.observe(x.current), () => t.disconnect();
|
|
101
101
|
}, [b, D]);
|
|
102
102
|
const N = () => {
|
|
103
|
-
|
|
103
|
+
f.current && clearInterval(f.current), nt(!1);
|
|
104
104
|
}, k = () => {
|
|
105
105
|
N(), u((t) => Math.min(t + 1, h - 1));
|
|
106
106
|
}, T = () => {
|
|
107
107
|
N(), u((t) => Math.max(t - 1, 0));
|
|
108
108
|
}, vt = (t) => {
|
|
109
109
|
N(), u(t);
|
|
110
|
-
}, _t = () =>
|
|
110
|
+
}, _t = () => m ? `translateX(-${d * m}px)` : "translateX(0px)", H = () => {
|
|
111
111
|
u((t) => t >= h - 1 ? 0 : t + 1);
|
|
112
112
|
};
|
|
113
|
-
return
|
|
113
|
+
return E(() => (L && (f.current = setInterval(
|
|
114
114
|
H,
|
|
115
115
|
W * 1e3
|
|
116
116
|
)), () => {
|
|
117
|
-
|
|
117
|
+
f.current && clearInterval(f.current);
|
|
118
118
|
}), [L, W, H]), /* @__PURE__ */ A("div", { className: `${Q ?? ""} ${o.carousel}`, ref: ot, children: [
|
|
119
119
|
/* @__PURE__ */ r(
|
|
120
120
|
"div",
|
|
121
121
|
{
|
|
122
122
|
ref: q,
|
|
123
|
-
className: `${o.trackContainer} ${st ||
|
|
123
|
+
className: `${o.trackContainer} ${st || p ? o.noPointerEvents : ""}
|
|
124
124
|
`,
|
|
125
125
|
style: {
|
|
126
|
-
maxWidth: `${
|
|
127
|
-
touchAction:
|
|
126
|
+
maxWidth: `${m}px`,
|
|
127
|
+
touchAction: p ? "none" : "pan-y"
|
|
128
128
|
},
|
|
129
129
|
onTouchStart: dt,
|
|
130
130
|
onTouchEnd: ut,
|
|
@@ -143,20 +143,17 @@ function Pt({
|
|
|
143
143
|
{
|
|
144
144
|
className: o.page,
|
|
145
145
|
style: {
|
|
146
|
-
display:
|
|
146
|
+
display: y > 1 ? "grid" : "flex",
|
|
147
147
|
gridTemplateColumns: `repeat(${Math.ceil(
|
|
148
|
-
w /
|
|
148
|
+
w / y
|
|
149
149
|
)}, 1fr)`,
|
|
150
|
-
gridTemplateRows: `repeat(${
|
|
151
|
-
width: `${
|
|
150
|
+
gridTemplateRows: `repeat(${y}, auto)`,
|
|
151
|
+
width: `${m}px`
|
|
152
152
|
},
|
|
153
153
|
children: t.map((n, s) => /* @__PURE__ */ r(
|
|
154
154
|
"div",
|
|
155
155
|
{
|
|
156
156
|
onClickCapture: ct,
|
|
157
|
-
style: {
|
|
158
|
-
width: `${f / C - 16}px`
|
|
159
|
-
},
|
|
160
157
|
children: n
|
|
161
158
|
},
|
|
162
159
|
s
|
|
@@ -202,7 +199,7 @@ function Pt({
|
|
|
202
199
|
"aria-label": "Next slide",
|
|
203
200
|
className: `${o.next} ${d >= h - 1 ? o.disabled : ""}`,
|
|
204
201
|
onClick: k,
|
|
205
|
-
disabled: d >=
|
|
202
|
+
disabled: d >= _.length - w,
|
|
206
203
|
children: /* @__PURE__ */ r(bt, { size: 36 })
|
|
207
204
|
}
|
|
208
205
|
)
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { jsx as n, jsxs as
|
|
2
|
-
import { useState as u, useRef as
|
|
1
|
+
import { jsx as n, jsxs as v } from "react/jsx-runtime";
|
|
2
|
+
import { useState as u, useRef as m, useCallback as f, useEffect as T } from "react";
|
|
3
3
|
import { CallToAction as I } from "../CallToAction/index.js";
|
|
4
4
|
import { ButtonGroup as W } from "../ButtonGroup/index.js";
|
|
5
5
|
import { X as J } from "../../x-CnsEH4Ox.js";
|
|
@@ -15,7 +15,7 @@ const U = [
|
|
|
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
|
-
], Y = K("menu", U), Z = "
|
|
18
|
+
], Y = K("menu", U), Z = "_navbar_937v2_5", ee = "_left_937v2_18", ne = "_container_937v2_19", te = "_logo_937v2_23", oe = "_nav_937v2_5", se = "_center_937v2_38", ie = "_hidden_937v2_44", le = "_visible_937v2_51", re = "_right_937v2_66", ae = "_title_937v2_72", ce = "_sublinks_937v2_82", de = "_sublinksInner_937v2_94", ue = "_linkItem_937v2_108", _e = "_minimal_937v2_113", ve = "_menuToggle_937v2_117", me = "_linkWrapper_937v2_121", fe = "_triangle_937v2_159", he = "_transparent_937v2_164", ge = "_sticky_937v2_216", pe = "_twoColumn_937v2_245", be = "_utilityMobile_937v2_292", we = "_utility_937v2_292", ke = "_navInner_937v2_320", ye = "_grid_937v2_329", $e = "_sublinkToggle_937v2_354", Ne = "_link_937v2_108", Ce = "_open_937v2_368", xe = "_show_937v2_419", Me = "_sublinksColumn_937v2_467", Le = "_chevron_937v2_477", Ee = "_parent_937v2_556", e = {
|
|
19
19
|
navbar: Z,
|
|
20
20
|
left: ee,
|
|
21
21
|
container: ne,
|
|
@@ -26,19 +26,19 @@ const U = [
|
|
|
26
26
|
visible: le,
|
|
27
27
|
right: re,
|
|
28
28
|
title: ae,
|
|
29
|
-
default: "
|
|
29
|
+
default: "_default_937v2_81",
|
|
30
30
|
sublinks: ce,
|
|
31
31
|
sublinksInner: de,
|
|
32
32
|
linkItem: ue,
|
|
33
33
|
minimal: _e,
|
|
34
|
-
menuToggle:
|
|
35
|
-
linkWrapper:
|
|
36
|
-
triangle:
|
|
37
|
-
transparent:
|
|
38
|
-
sticky:
|
|
39
|
-
twoColumn:
|
|
40
|
-
utilityMobile:
|
|
41
|
-
utility:
|
|
34
|
+
menuToggle: ve,
|
|
35
|
+
linkWrapper: me,
|
|
36
|
+
triangle: fe,
|
|
37
|
+
transparent: he,
|
|
38
|
+
sticky: ge,
|
|
39
|
+
twoColumn: pe,
|
|
40
|
+
utilityMobile: be,
|
|
41
|
+
utility: we,
|
|
42
42
|
navInner: ke,
|
|
43
43
|
grid: ye,
|
|
44
44
|
sublinkToggle: $e,
|
|
@@ -58,17 +58,17 @@ const U = [
|
|
|
58
58
|
};
|
|
59
59
|
function Se({
|
|
60
60
|
title: z,
|
|
61
|
-
logo:
|
|
61
|
+
logo: b,
|
|
62
62
|
items: O,
|
|
63
63
|
utilityItems: l,
|
|
64
64
|
isSticky: B = !1,
|
|
65
65
|
isTransparent: j = !1,
|
|
66
|
-
alignment:
|
|
66
|
+
alignment: h = "right",
|
|
67
67
|
variant: X = "default",
|
|
68
68
|
className: S
|
|
69
69
|
}) {
|
|
70
|
-
const [r,
|
|
71
|
-
|
|
70
|
+
const [r, w] = u(!1), [g, a] = u(null), [D, V] = u(0), [A, G] = u(!1), [P, q] = u(null), p = m(null), c = m(null), k = m(/* @__PURE__ */ new Map()), F = () => {
|
|
71
|
+
w((t) => !t);
|
|
72
72
|
}, H = (t) => {
|
|
73
73
|
const s = k.current.get(t);
|
|
74
74
|
if (s && c.current) {
|
|
@@ -77,13 +77,13 @@ function Se({
|
|
|
77
77
|
}
|
|
78
78
|
}, y = (t) => {
|
|
79
79
|
a((s) => s === t ? null : t);
|
|
80
|
-
}, $ =
|
|
81
|
-
|
|
82
|
-
}, []), N =
|
|
80
|
+
}, $ = f((t) => {
|
|
81
|
+
p.current && !p.current.contains(t.target) && a(null);
|
|
82
|
+
}, []), N = f(() => {
|
|
83
83
|
a(null);
|
|
84
|
-
}, []), C =
|
|
85
|
-
x(), typeof window < "u" && window.innerWidth > 768 && (
|
|
86
|
-
}, []), x =
|
|
84
|
+
}, []), C = f(() => {
|
|
85
|
+
x(), typeof window < "u" && window.innerWidth > 768 && (w(!1), a(null), typeof document < "u" && (document.body.style.overflow = ""));
|
|
86
|
+
}, []), x = f(() => {
|
|
87
87
|
if (c.current) {
|
|
88
88
|
const t = c.current.getBoundingClientRect().width;
|
|
89
89
|
V(t), G(!0);
|
|
@@ -102,8 +102,8 @@ function Se({
|
|
|
102
102
|
}, [r]);
|
|
103
103
|
const M = (t, s = "") => t.map((o) => {
|
|
104
104
|
var E;
|
|
105
|
-
const i = `${s}/${o.label}`, _ =
|
|
106
|
-
return k.current.set(i, L.current), /* @__PURE__ */
|
|
105
|
+
const i = `${s}/${o.label}`, _ = g === i, d = (E = o.sublinks) == null ? void 0 : E.length, L = m(null);
|
|
106
|
+
return k.current.set(i, L.current), /* @__PURE__ */ v(
|
|
107
107
|
"div",
|
|
108
108
|
{
|
|
109
109
|
className: `${e.linkWrapper} ${s ? "" : e.parent}`,
|
|
@@ -125,7 +125,7 @@ function Se({
|
|
|
125
125
|
role: "menuitem",
|
|
126
126
|
children: o.label
|
|
127
127
|
}
|
|
128
|
-
) : /* @__PURE__ */
|
|
128
|
+
) : /* @__PURE__ */ v(
|
|
129
129
|
"button",
|
|
130
130
|
{
|
|
131
131
|
ref: L,
|
|
@@ -160,32 +160,32 @@ function Se({
|
|
|
160
160
|
return /* @__PURE__ */ n(
|
|
161
161
|
"header",
|
|
162
162
|
{
|
|
163
|
-
ref:
|
|
164
|
-
className: `${S ?? ""} ${Te[
|
|
163
|
+
ref: p,
|
|
164
|
+
className: `${S ?? ""} ${Te[h]} ${Re[X]} ${e.navbar} ${B ? e.sticky : ""} ${j ? e.transparent : ""} `,
|
|
165
165
|
role: "navigation",
|
|
166
166
|
"aria-label": "Main navigation",
|
|
167
|
-
children: /* @__PURE__ */
|
|
167
|
+
children: /* @__PURE__ */ v(
|
|
168
168
|
"div",
|
|
169
169
|
{
|
|
170
|
-
className: `${e.container} ${(!l || l.length === 0) &&
|
|
170
|
+
className: `${e.container} ${(!l || l.length === 0) && h !== "center" ? e.twoColumn : ""}`,
|
|
171
171
|
children: [
|
|
172
|
-
|
|
172
|
+
b ? /* @__PURE__ */ n("div", { className: e.logo, children: b }) : /* @__PURE__ */ n("div", { className: e.title, children: z }),
|
|
173
173
|
/* @__PURE__ */ n(
|
|
174
174
|
"nav",
|
|
175
175
|
{
|
|
176
176
|
ref: c,
|
|
177
177
|
style: {
|
|
178
|
-
left:
|
|
178
|
+
left: h === "center" ? `calc(50% - ${D / 2}px)` : "0"
|
|
179
179
|
},
|
|
180
180
|
className: `${e.nav} ${r ? e.open : ""} ${A ? e.visible : e.hidden}`,
|
|
181
181
|
id: "main-menu",
|
|
182
182
|
role: "menubar",
|
|
183
|
-
children: /* @__PURE__ */
|
|
183
|
+
children: /* @__PURE__ */ v("div", { className: e.navInner, children: [
|
|
184
184
|
/* @__PURE__ */ n(
|
|
185
185
|
"svg",
|
|
186
186
|
{
|
|
187
187
|
style: { left: `${P}px` },
|
|
188
|
-
className: `${e.triangle} ${
|
|
188
|
+
className: `${e.triangle} ${g ? e.show : ""}`,
|
|
189
189
|
width: 16,
|
|
190
190
|
height: 12,
|
|
191
191
|
viewBox: "0 0 100 75",
|
|
@@ -204,7 +204,7 @@ function Se({
|
|
|
204
204
|
/* @__PURE__ */ n(
|
|
205
205
|
"div",
|
|
206
206
|
{
|
|
207
|
-
className: `${e.triangle} ${
|
|
207
|
+
className: `${e.triangle} ${g ? e.show : ""}`
|
|
208
208
|
}
|
|
209
209
|
),
|
|
210
210
|
/* @__PURE__ */ n("div", { className: e.grid, children: M(O) })
|
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_937v2_5{position:relative;height:var(--nav-height)}._left_937v2_18 ._container_937v2_19{justify-content:flex-start}._left_937v2_18 ._logo_937v2_23{flex:unset}._left_937v2_18 ._nav_937v2_5{flex:1}@media (max-width: 767px){._left_937v2_18 ._logo_937v2_23{flex:1}}._center_937v2_38 ._nav_937v2_5{transition:transform .3s ease-in-out,opacity .3s ease-in-out;will-change:transform,opacity}._center_937v2_38 ._nav_937v2_5._hidden_937v2_44{transform:translateY(-100%);opacity:0;pointer-events:none}@media (min-width: 768px){._center_937v2_38 ._nav_937v2_5._visible_937v2_51{transform:translateY(0);opacity:1;pointer-events:auto}}@media (max-width: 767px){._center_937v2_38 ._logo_937v2_23{flex:1}}._right_937v2_66 ._container_937v2_19{justify-content:flex-end}._right_937v2_66 ._logo_937v2_23,._right_937v2_66 ._title_937v2_72{flex:1}._right_937v2_66 ._nav_937v2_5{flex:unset}._default_937v2_81 ._sublinks_937v2_82{position:fixed;left:0;right:0;top:100%;padding-top:1rem}@media (max-width: 767px){._default_937v2_81 ._sublinks_937v2_82{position:relative}}._default_937v2_81 ._sublinksInner_937v2_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_937v2_81 ._sublinksInner_937v2_94{grid-template-columns:1fr;width:auto;min-height:unset}}._default_937v2_81 ._linkItem_937v2_108{justify-content:flex-start}._minimal_937v2_113{left:0;background-color:#fff}._minimal_937v2_113 ._menuToggle_937v2_117{grid-area:unset}._minimal_937v2_113 ._linkWrapper_937v2_121{position:relative}._minimal_937v2_113 ._sublinks_937v2_82{position:absolute;right:0;width:auto}@media (max-width: 767px){._minimal_937v2_113 ._sublinks_937v2_82{position:relative;justify-content:center;align-items:center}}._minimal_937v2_113 ._sublinksInner_937v2_94{display:flex;flex-direction:column;min-width:125px;justify-content:flex-end;align-items:flex-end}@media (max-width: 767px){._minimal_937v2_113 ._sublinksInner_937v2_94{justify-content:center;align-items:center}}._minimal_937v2_113 ._linkItem_937v2_108{justify-content:flex-end}@media (max-width: 767px){._minimal_937v2_113 ._linkItem_937v2_108{justify-content:center;align-items:center}}._minimal_937v2_113 ._triangle_937v2_159{display:none}._transparent_937v2_164{background-color:transparent}._transparent_937v2_164 ._nav_937v2_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_937v2_164 ._nav_937v2_5{padding:var(--nav-height) 0 0;background:#fffffff2;border-radius:0;top:0!important;left:0!important;height:100vh}._transparent_937v2_164 ._nav_937v2_5:before{border-radius:0}}._transparent_937v2_164 ._menuToggle_937v2_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_937v2_216{position:fixed;top:var(--spacing-md);left:0;right:0;z-index:1000;width:100%}._container_937v2_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_937v2_19{grid-template-areas:"first second third fourth"}}._container_937v2_19._twoColumn_937v2_245{grid-template-columns:minmax(auto,1fr) auto;grid-template-areas:"first second"}._title_937v2_72{grid-area:first;color:var(--color-text-primary);font-size:var(--font-size-lg);font-weight:var(--font-weight-semibold)}._logo_937v2_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_937v2_23 img{height:auto;width:auto}._menuToggle_937v2_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_937v2_117 svg{position:relative;z-index:5}._utilityMobile_937v2_292{display:none;grid-area:third;justify-content:flex-end}._utility_937v2_292{grid-area:third;display:flex;justify-content:flex-end}._utility_937v2_292 a{font-size:var(--font-size-sm)}._nav_937v2_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_937v2_5{height:100vh}}._navInner_937v2_320{position:relative}@media (max-width: 767px){._navInner_937v2_320{margin:var(--spacing-xl) auto 0;min-width:300px}}._grid_937v2_329{display:grid;align-items:center;grid-auto-flow:column}@media (max-width: 767px){._grid_937v2_329{display:flex;flex-direction:column}}._linkItem_937v2_108{display:flex;align-items:center;box-sizing:border-box}._sublinkToggle_937v2_354,._link_937v2_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}._link_937v2_108:hover,._sublinkToggle_937v2_354:hover,._sublinkToggle_937v2_354._open_937v2_368,._navItem_937v2_372:hover{color:var(--color-primary)}._sublinkToggle_937v2_354{background:none;border:none;display:flex;align-items:center;cursor:pointer;color:var(--color-text-primary)}._sublinks_937v2_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_937v2_82._show_937v2_419{max-height:500px;opacity:1;pointer-events:auto;visibility:visible;transform:translateY(0)}._triangle_937v2_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_937v2_159._show_937v2_419{top:calc(100% + .3rem);opacity:1;visibility:visible}._sublinksInner_937v2_94{background-color:var(--color-background);box-shadow:0 6px 8px #0000001a;border-radius:var(--radius-md)}@media (max-width: 767px){._sublinksInner_937v2_94{display:flex;flex-direction:column;width:unset;max-width:unset;min-height:unset;background-color:unset;box-shadow:unset;border-radius:unset}}._sublinksColumn_937v2_467{display:flex;flex-direction:column;padding:var(--spacing-md)}@media (max-width: 767px){._sublinksColumn_937v2_467{padding:0}}._chevron_937v2_477{transition:transform .3s ease;display:flex;align-items:center;justify-content:center;margin-top:2px}._sublinkToggle_937v2_354._open_937v2_368 ._chevron_937v2_477{transform:rotate(180deg)}@media (max-width: 767px){._logo_937v2_23{flex:1}._menuToggle_937v2_117{display:flex;align-items:center;justify-content:center}._utility_937v2_292 a:not(._utility_937v2_292 a:first-of-type){display:none}._utilityMobile_937v2_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_937v2_292._open_937v2_368{transform:translateY(0)}._nav_937v2_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_937v2_5._open_937v2_368{transform:translate(0)}._linkWrapper_937v2_121{flex-direction:column;width:100%;max-width:300px;margin:0 auto;padding:var(--spacing-sm) 0}._linkWrapper_937v2_121._parent_937v2_556{border-bottom:1px solid var(--color-border)}._linkWrapper_937v2_121._parent_937v2_556:last-of-type{border:none}._linkItem_937v2_108{width:100%}._chevron_937v2_477{display:none}._sublinks_937v2_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_937v2_354{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)}
|