quirk-ui 0.0.134 → 0.0.136
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/index33.css +1 -1
- package/dist/assets/index46.css +1 -1
- package/dist/components/NavBar/NavBar.test.js +23 -23
- package/dist/components/NavBar/index.js +122 -83
- package/dist/components/Tabs/index.js +85 -85
- package/dist/lib/components/CallToAction/index.d.ts +2 -2
- package/dist/lib/components/NavBar/index.d.ts +16 -1
- package/dist/lib/main.d.ts +1 -0
- package/dist/styles.css +2 -2
- package/package.json +1 -1
package/dist/assets/index33.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._tabs_1eb1d_1{display:flex;flex-direction:column;width:100%}._tabsList_1eb1d_7{display:flex;width:100%;background-color:var(--color-tab-background);border-radius:calc(var(--radius-md) + 5px);position:relative;overflow-x:auto;scrollbar-width:none;-ms-overflow-style:none}._tabsList_1eb1d_7::-webkit-scrollbar{display:none}._horizontal_1eb1d_24{flex-direction:column}._horizontal_1eb1d_24 ._tabsPanel_1eb1d_26{padding:var(--spacing-lg) var(--spacing-md)}._vertical_1eb1d_31{flex-direction:row;align-items:flex-start;gap:3rem}._vertical_1eb1d_31 ._tabsList_1eb1d_7{flex-direction:column;overflow-x:visible;flex:.25 0 150px}._vertical_1eb1d_31 ._tabsTrigger_1eb1d_42{white-space:normal;text-align:left}._vertical_1eb1d_31 ._tabsPanelWrapper_1eb1d_47{flex:1;width:100%}@media (max-width: 767px){._vertical_1eb1d_31{flex-direction:column}}._left_1eb1d_58{justify-content:flex-start}._center_1eb1d_62{justify-content:center}._right_1eb1d_66{justify-content:flex-end}._indicator_1eb1d_70{position:absolute;left:0;top:0;border-radius:var(--radius-md);transition:transform .3s ease-in-out,width .3s ease-in-out;z-index:0;border:5px solid var(--color-tab-background)}._indicator_1eb1d_70:after{content:"";border-radius:var(--radius-md);background-color:var(--color-primary);display:block;position:absolute;width:100%;height:100%}._tabsTrigger_1eb1d_42{padding:var(--spacing-md);border:none;background:none;cursor:pointer;color:var(--color-muted);font-weight:var(--font-weight-semibold);font-size:var(--font-size-md);transition:color .3s ease;position:relative;z-index:1;white-space:nowrap;text-align:center;width:100%}._tabsTrigger_1eb1d_42._active_1eb1d_117{color:#fff}@media (max-width: 767px){._tabsList_1eb1d_7{flex-direction:column;overflow-x:visible}._tabsTrigger_1eb1d_42{white-space:normal;text-align:left}}._tabsPanelWrapper_1eb1d_47{position:relative;overflow:hidden;height:auto;transition:height .3s ease-in-out}._tabsPanel_1eb1d_26{animation:_fadeSlide_1eb1d_1 .3s ease both;position:relative;width:100%;color:var(--color-text-primary)}@keyframes _fadeSlide_1eb1d_1{0%{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}._default_1eb1d_161{background-color:transparent}._dark_1eb1d_165{background-color:var(--color-tab-background)}._dark_1eb1d_165 ._indicator_1eb1d_70{border:5px solid transparent}._dark_1eb1d_165 ._tabsTrigger_1eb1d_42{color:var(--color-muted)}._light_1eb1d_177{background-color:#fff}._light_1eb1d_177 ._indicator_1eb1d_70{border:5px solid transparent}._light_1eb1d_177 ._tabsList_1eb1d_7{background-color:#fff}._light_1eb1d_177 ._tabsTrigger_1eb1d_42{color:var(--color-text-primary)}._light_1eb1d_177 ._tabsTrigger_1eb1d_42:hover{color:var(--color-primary)}._light_1eb1d_177 ._tabsTrigger_1eb1d_42._active_1eb1d_117{color:#fff}._transparent_1eb1d_201{background-color:transparent}._transparent_1eb1d_201 ._indicator_1eb1d_70{border:5px solid transparent}._transparent_1eb1d_201 ._tabsList_1eb1d_7{background-color:transparent}._transparent_1eb1d_201 ._tabsTrigger_1eb1d_42{color:var(--color-text-primary)}._transparent_1eb1d_201 ._tabsTrigger_1eb1d_42:hover{color:var(--color-primary)}._transparent_1eb1d_201 ._tabsTrigger_1eb1d_42._active_1eb1d_117{color:#fff}
|
package/dist/assets/index46.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
:root{--nav-height: 65px}.
|
|
1
|
+
:root{--nav-height: 65px}._navbar_94sx1_5{display:flex;align-items:center;justify-content:space-between;width:100%;height:100%;background-color:var(--color-background);border-bottom:1px solid var(--color-border);padding:0 var(--spacing-md);position:relative;z-index:1000;height:var(--nav-height)}._left_94sx1_19 ._container_94sx1_20{justify-content:flex-start}._left_94sx1_19 ._logo_94sx1_24{flex:unset}._left_94sx1_19 ._nav_94sx1_5{flex:1}@media (max-width: 767px){._left_94sx1_19 ._logo_94sx1_24{flex:1}}._center_94sx1_39 ._logo_94sx1_24,._center_94sx1_39 ._utility_94sx1_44{flex:.2}@media (max-width: 767px){._center_94sx1_39 ._logo_94sx1_24{flex:1}}._right_94sx1_55 ._container_94sx1_20{justify-content:flex-end}._right_94sx1_55 ._logo_94sx1_24{flex:1}._right_94sx1_55 ._nav_94sx1_5{flex:unset}._sticky_94sx1_69{position:sticky;top:0;width:100%}._container_94sx1_20{display:flex;align-items:center;justify-content:space-between;gap:var(--spacing-md);width:100%;height:100%;max-width:1280px;margin:0 auto}._logo_94sx1_24{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;flex:.2}._logo_94sx1_24 img{height:auto;width:100%}._menuToggle_94sx1_101{background:none;border:none;cursor:pointer;display:none;color:var(--color-text-primary);z-index:1100}._utility_94sx1_44{flex:.2}._utilityMobile_94sx1_114{display:none}._nav_94sx1_5{display:flex;gap:var(--spacing-lg);height:100%;transition:transform .3s ease}._linkWrapper_94sx1_125{position:relative;display:flex;align-items:center}._linkItem_94sx1_131{display:flex;align-items:center;box-sizing:border-box}._sublinkToggle_94sx1_139,._link_94sx1_125{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-md);box-sizing:border-box}._link_94sx1_125:hover,._sublinkToggle_94sx1_139:hover,._navItem_94sx1_156:hover{color:var(--color-primary)}._sublinkToggle_94sx1_139{background:none;border:none;display:flex;align-items:center;cursor:pointer;color:var(--color-text-primary)}._sublinks_94sx1_170{position:absolute;right:0;top:100%;background-color:var(--color-background);box-shadow:0 6px 8px #0000001a;overflow:hidden;max-height:0;min-width:100%;width:max-content;opacity:0;z-index:100;transition:max-height .3s ease,opacity .3s ease,visibility .3s ease;display:flex;visibility:hidden;flex-direction:column;align-items:flex-end;gap:var(--spacing-md);padding:var(--spacing-md);border-radius:0 0 var(--radius-md) var(--radius-md);pointer-events:none}._sublinks_94sx1_170._show_94sx1_193{max-height:500px;opacity:1;pointer-events:auto;visibility:visible}._chevron_94sx1_200{transition:transform .3s ease}._sublinkToggle_94sx1_139._open_94sx1_204 ._chevron_94sx1_200{transform:rotate(180deg)}@media (max-width: 767px){._logo_94sx1_24{flex:1}._menuToggle_94sx1_101{display:flex;align-items:center;justify-content:center}._utility_94sx1_44 a:first-of-type{display:none}._utilityMobile_94sx1_114{display:block;transform:translateY(100px);position:fixed;bottom:1rem;margin:0 auto;width:100%;z-index:1001;transition:transform .3s ease-in-out}._utilityMobile_94sx1_114._open_94sx1_204{transform:translateY(0)}._nav_94sx1_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_94sx1_5._open_94sx1_204{transform:translate(0)}._linkWrapper_94sx1_125{flex-direction:column;width:100%;max-width:300px;margin:0 auto;padding:var(--spacing-sm) 0}._linkWrapper_94sx1_125._parent_94sx1_273{border-bottom:1px solid var(--color-border)}._linkWrapper_94sx1_125._parent_94sx1_273:last-of-type{border:none}._linkItem_94sx1_131{width:100%}._chevron_94sx1_200{display:none}._sublinks_94sx1_170{position:relative;top:0;box-shadow:none;max-height:fit-content;opacity:1;visibility:visible;align-items:flex-start;padding:var(--spacing-sm);gap:0;pointer-events:auto}._sublinkToggle_94sx1_139{cursor:pointer;pointer-events:none;color:var(--color-muted)}}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { d as
|
|
3
|
-
import { Navbar as
|
|
1
|
+
import { jsx as l } from "react/jsx-runtime";
|
|
2
|
+
import { d as u, i as n, r, g as t, s as a, f as s, w as i } from "../../vi.ClIskdbk-CZ8iFAMK.js";
|
|
3
|
+
import { Navbar as o } from "./index.js";
|
|
4
4
|
const c = [
|
|
5
5
|
{ label: "Home", href: "/" },
|
|
6
6
|
{
|
|
@@ -19,35 +19,35 @@ const c = [
|
|
|
19
19
|
},
|
|
20
20
|
{ label: "External", href: "https://example.com", isExternal: !0 }
|
|
21
21
|
];
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
}),
|
|
26
|
-
|
|
22
|
+
u("Navbar", () => {
|
|
23
|
+
n("renders all top-level nav items", () => {
|
|
24
|
+
r(/* @__PURE__ */ l(o, { alignment: "right", items: c })), t(a.getByText("Home")).toBeInTheDocument(), t(a.getByText("Services")).toBeInTheDocument(), t(a.getByText("External")).toBeInTheDocument();
|
|
25
|
+
}), n("toggles mobile menu", () => {
|
|
26
|
+
r(/* @__PURE__ */ l(o, { alignment: "right", items: c }));
|
|
27
27
|
const e = a.getByLabelText("Open menu");
|
|
28
28
|
s.click(e), t(e).toHaveAttribute("aria-label", "Close menu"), s.click(e), t(e).toHaveAttribute("aria-label", "Open menu");
|
|
29
|
-
}),
|
|
30
|
-
|
|
31
|
-
const e = a.getByText("Services"),
|
|
32
|
-
s.click(e), await
|
|
33
|
-
t(
|
|
34
|
-
}), s.click(e), await
|
|
35
|
-
t(
|
|
29
|
+
}), n("open and closes submenu on click", async () => {
|
|
30
|
+
r(/* @__PURE__ */ l(o, { alignment: "right", items: c }));
|
|
31
|
+
const e = a.getByText("Services"), m = a.getByRole("menu", { name: "Services submenu" });
|
|
32
|
+
s.click(e), await i(() => {
|
|
33
|
+
t(m).toHaveClass("show");
|
|
34
|
+
}), s.click(e), await i(() => {
|
|
35
|
+
t(m).not.toHaveClass("show");
|
|
36
36
|
});
|
|
37
|
-
}),
|
|
38
|
-
|
|
37
|
+
}), n("has appropriate aria attributes", async () => {
|
|
38
|
+
r(/* @__PURE__ */ l(o, { alignment: "right", items: c }));
|
|
39
39
|
const e = a.getByText("Services");
|
|
40
|
-
s.click(e), await
|
|
40
|
+
s.click(e), await i(() => {
|
|
41
41
|
t(e).toHaveAttribute("aria-expanded", "true");
|
|
42
|
-
}), s.click(e), await
|
|
42
|
+
}), s.click(e), await i(() => {
|
|
43
43
|
t(e).toHaveAttribute("aria-expanded", "false");
|
|
44
44
|
});
|
|
45
|
-
}),
|
|
46
|
-
|
|
45
|
+
}), n("only allows one submenu open at a time", async () => {
|
|
46
|
+
r(/* @__PURE__ */ l(o, { alignment: "right", items: c }));
|
|
47
47
|
const e = a.getByRole("menu", { name: "Services submenu" });
|
|
48
|
-
s.click(a.getByText("Services")), await
|
|
48
|
+
s.click(a.getByText("Services")), await i(() => {
|
|
49
49
|
t(e).toHaveClass("show");
|
|
50
|
-
}), s.click(a.getByText("About")), await
|
|
50
|
+
}), s.click(a.getByText("About")), await i(() => {
|
|
51
51
|
t(e).not.toHaveClass("show");
|
|
52
52
|
});
|
|
53
53
|
});
|
|
@@ -1,139 +1,178 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { useState as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
1
|
+
import { jsx as o, jsxs as _ } from "react/jsx-runtime";
|
|
2
|
+
import { useState as y, useRef as W, useCallback as m, useEffect as k } from "react";
|
|
3
|
+
import { CallToAction as w } from "../CallToAction/index.js";
|
|
4
|
+
import { ButtonGroup as $ } from "../ButtonGroup/index.js";
|
|
5
|
+
import { X as j } from "../../x-CnsEH4Ox.js";
|
|
6
|
+
import { c as R } from "../../createLucideIcon-C8GTh_Qx.js";
|
|
7
|
+
import { C as S } from "../../chevron-down-DSUzBz9F.js";
|
|
6
8
|
import '../../assets/index46.css';/**
|
|
7
9
|
* @license lucide-react v0.488.0 - ISC
|
|
8
10
|
*
|
|
9
11
|
* This source code is licensed under the ISC license.
|
|
10
12
|
* See the LICENSE file in the root directory of this source tree.
|
|
11
13
|
*/
|
|
12
|
-
const
|
|
14
|
+
const D = [
|
|
13
15
|
["line", { x1: "4", x2: "20", y1: "12", y2: "12", key: "1e0a9i" }],
|
|
14
16
|
["line", { x1: "4", x2: "20", y1: "6", y2: "6", key: "1owob3" }],
|
|
15
17
|
["line", { x1: "4", x2: "20", y1: "18", y2: "18", key: "yk5zj1" }]
|
|
16
|
-
],
|
|
17
|
-
navbar:
|
|
18
|
-
|
|
19
|
-
container:
|
|
20
|
-
logo:
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
18
|
+
], P = R("menu", D), A = "_navbar_94sx1_5", B = "_left_94sx1_19", G = "_container_94sx1_20", X = "_logo_94sx1_24", q = "_nav_94sx1_5", F = "_center_94sx1_39", H = "_utility_94sx1_44", I = "_right_94sx1_55", J = "_sticky_94sx1_69", K = "_menuToggle_94sx1_101", Q = "_utilityMobile_94sx1_114", U = "_linkWrapper_94sx1_125", V = "_linkItem_94sx1_131", Y = "_sublinkToggle_94sx1_139", Z = "_link_94sx1_125", ee = "_sublinks_94sx1_170", ne = "_show_94sx1_193", oe = "_chevron_94sx1_200", se = "_open_94sx1_204", te = "_parent_94sx1_273", e = {
|
|
19
|
+
navbar: A,
|
|
20
|
+
left: B,
|
|
21
|
+
container: G,
|
|
22
|
+
logo: X,
|
|
23
|
+
nav: q,
|
|
24
|
+
center: F,
|
|
25
|
+
utility: H,
|
|
26
|
+
right: I,
|
|
27
|
+
sticky: J,
|
|
28
|
+
menuToggle: K,
|
|
29
|
+
utilityMobile: Q,
|
|
30
|
+
linkWrapper: U,
|
|
31
|
+
linkItem: V,
|
|
32
|
+
sublinkToggle: Y,
|
|
33
|
+
link: Z,
|
|
34
|
+
sublinks: ee,
|
|
35
|
+
show: ne,
|
|
36
|
+
chevron: oe,
|
|
37
|
+
open: se,
|
|
38
|
+
parent: te
|
|
39
|
+
}, le = {
|
|
40
|
+
left: e.left,
|
|
41
|
+
center: e.center,
|
|
42
|
+
right: e.right
|
|
32
43
|
};
|
|
33
|
-
function
|
|
34
|
-
logo:
|
|
35
|
-
items:
|
|
36
|
-
|
|
37
|
-
|
|
44
|
+
function me({
|
|
45
|
+
logo: N,
|
|
46
|
+
items: C,
|
|
47
|
+
utilityItems: l,
|
|
48
|
+
isSticky: E = !1,
|
|
49
|
+
alignment: T = "right",
|
|
50
|
+
className: L
|
|
38
51
|
}) {
|
|
39
|
-
const [
|
|
40
|
-
|
|
41
|
-
},
|
|
42
|
-
|
|
43
|
-
},
|
|
44
|
-
|
|
45
|
-
}, []), f = m(() => {
|
|
46
|
-
i(null);
|
|
52
|
+
const [i, f] = y(!1), [M, r] = y(null), c = W(null), z = () => {
|
|
53
|
+
f((n) => !n);
|
|
54
|
+
}, O = (n) => {
|
|
55
|
+
r((t) => t === n ? null : n);
|
|
56
|
+
}, h = m((n) => {
|
|
57
|
+
c.current && !c.current.contains(n.target) && r(null);
|
|
47
58
|
}, []), p = m(() => {
|
|
48
|
-
|
|
59
|
+
r(null);
|
|
60
|
+
}, []), v = m(() => {
|
|
61
|
+
typeof window < "u" && window.innerWidth > 768 && (f(!1), r(null), typeof document < "u" && (document.body.style.overflow = ""));
|
|
49
62
|
}, []);
|
|
50
63
|
k(() => {
|
|
51
|
-
const
|
|
52
|
-
return
|
|
53
|
-
|
|
64
|
+
const n = typeof window < "u", t = typeof window < "u";
|
|
65
|
+
return n && (window.addEventListener("resize", v), window.addEventListener("scroll", p)), t && document.addEventListener("click", h), () => {
|
|
66
|
+
n && (window.removeEventListener("resize", v), window.removeEventListener("scroll", p)), t && document.removeEventListener("click", h);
|
|
54
67
|
};
|
|
55
68
|
}, []), k(() => {
|
|
56
69
|
if (typeof document < "u")
|
|
57
|
-
return document.body.style.overflow =
|
|
70
|
+
return document.body.style.overflow = i ? "hidden" : "", () => {
|
|
58
71
|
document.body.style.overflow = "";
|
|
59
72
|
};
|
|
60
|
-
}, [
|
|
61
|
-
const
|
|
62
|
-
var
|
|
63
|
-
const
|
|
64
|
-
return /* @__PURE__ */
|
|
73
|
+
}, [i]);
|
|
74
|
+
const b = (n, t = "") => n.map((s) => {
|
|
75
|
+
var g;
|
|
76
|
+
const a = `${t}/${s.label}`, d = M === a, u = (g = s.sublinks) == null ? void 0 : g.length;
|
|
77
|
+
return /* @__PURE__ */ _(
|
|
65
78
|
"div",
|
|
66
79
|
{
|
|
67
80
|
className: `${e.linkWrapper} ${t ? "" : e.parent}`,
|
|
68
81
|
children: [
|
|
69
|
-
/* @__PURE__ */
|
|
82
|
+
/* @__PURE__ */ o("div", { className: e.linkItem, children: s.href ? /* @__PURE__ */ o(
|
|
70
83
|
"a",
|
|
71
84
|
{
|
|
72
|
-
href:
|
|
85
|
+
href: s.href,
|
|
73
86
|
className: e.link,
|
|
74
|
-
target:
|
|
75
|
-
rel:
|
|
87
|
+
target: s.isExternal ? "_blank" : "_self",
|
|
88
|
+
rel: s.isExternal ? "noopener noreferrer" : void 0,
|
|
76
89
|
onClick: () => {
|
|
77
|
-
var
|
|
78
|
-
|
|
90
|
+
var x;
|
|
91
|
+
r(null), (x = s.onClick) == null || x.call(s);
|
|
79
92
|
},
|
|
80
93
|
role: "menuitem",
|
|
81
|
-
children:
|
|
94
|
+
children: s.label
|
|
82
95
|
}
|
|
83
|
-
) : /* @__PURE__ */
|
|
96
|
+
) : /* @__PURE__ */ _(
|
|
84
97
|
"button",
|
|
85
98
|
{
|
|
86
|
-
"aria-haspopup":
|
|
87
|
-
"aria-expanded":
|
|
88
|
-
className: `${e.sublinkToggle} ${
|
|
89
|
-
onClick: () =>
|
|
99
|
+
"aria-haspopup": u ? "true" : void 0,
|
|
100
|
+
"aria-expanded": d,
|
|
101
|
+
className: `${e.sublinkToggle} ${d ? e.open : ""}`,
|
|
102
|
+
onClick: () => O(a),
|
|
90
103
|
children: [
|
|
91
|
-
|
|
92
|
-
|
|
104
|
+
s.label,
|
|
105
|
+
u && /* @__PURE__ */ o(S, { size: 21, className: e.chevron })
|
|
93
106
|
]
|
|
94
107
|
}
|
|
95
108
|
) }),
|
|
96
|
-
|
|
109
|
+
u && /* @__PURE__ */ o(
|
|
97
110
|
"div",
|
|
98
111
|
{
|
|
99
|
-
className: `${e.sublinks} ${
|
|
112
|
+
className: `${e.sublinks} ${d ? e.show : ""}`,
|
|
100
113
|
role: "menu",
|
|
101
|
-
"aria-label": `${
|
|
102
|
-
children:
|
|
114
|
+
"aria-label": `${s.label} submenu`,
|
|
115
|
+
children: b(s.sublinks, a)
|
|
103
116
|
}
|
|
104
117
|
)
|
|
105
118
|
]
|
|
106
119
|
},
|
|
107
|
-
|
|
120
|
+
a
|
|
108
121
|
);
|
|
109
122
|
});
|
|
110
|
-
return /* @__PURE__ */
|
|
123
|
+
return /* @__PURE__ */ o(
|
|
111
124
|
"header",
|
|
112
125
|
{
|
|
113
|
-
ref:
|
|
114
|
-
className: `${
|
|
126
|
+
ref: c,
|
|
127
|
+
className: `${L ?? ""} ${le[T]} ${e.navbar} ${E ? e.sticky : ""} `,
|
|
115
128
|
role: "navigation",
|
|
116
129
|
"aria-label": "Main navigation",
|
|
117
|
-
children: /* @__PURE__ */
|
|
118
|
-
/* @__PURE__ */
|
|
119
|
-
/* @__PURE__ */
|
|
120
|
-
"
|
|
130
|
+
children: /* @__PURE__ */ _("div", { className: e.container, children: [
|
|
131
|
+
/* @__PURE__ */ o("div", { className: e.logo, children: N }),
|
|
132
|
+
/* @__PURE__ */ o(
|
|
133
|
+
"nav",
|
|
121
134
|
{
|
|
122
|
-
className: e.
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
"aria-controls": "main-menu",
|
|
127
|
-
children: l ? /* @__PURE__ */ s(T, { size: 24 }) : /* @__PURE__ */ s(j, { size: 24 })
|
|
135
|
+
className: `${e.nav} ${i ? e.open : ""}`,
|
|
136
|
+
id: "main-menu",
|
|
137
|
+
role: "menubar",
|
|
138
|
+
children: b(C)
|
|
128
139
|
}
|
|
129
140
|
),
|
|
130
|
-
/* @__PURE__ */
|
|
141
|
+
l && /* @__PURE__ */ o("nav", { className: e.utility, children: /* @__PURE__ */ o($, { children: l.map((n, t) => /* @__PURE__ */ o(
|
|
142
|
+
w,
|
|
143
|
+
{
|
|
144
|
+
as: "a",
|
|
145
|
+
href: n.href ?? "/",
|
|
146
|
+
variant: n.variant,
|
|
147
|
+
children: n.label
|
|
148
|
+
},
|
|
149
|
+
n._id || t
|
|
150
|
+
)) }) }),
|
|
151
|
+
l && /* @__PURE__ */ o(
|
|
131
152
|
"nav",
|
|
132
153
|
{
|
|
133
|
-
className: `${e.
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
154
|
+
className: `${e.utilityMobile} ${i ? e.open : ""}`,
|
|
155
|
+
children: /* @__PURE__ */ o($, { alignment: "center", children: /* @__PURE__ */ o(
|
|
156
|
+
w,
|
|
157
|
+
{
|
|
158
|
+
as: "a",
|
|
159
|
+
href: l[0].href ?? "/",
|
|
160
|
+
variant: l[0].variant,
|
|
161
|
+
children: l[0].label
|
|
162
|
+
},
|
|
163
|
+
l[0]._id
|
|
164
|
+
) })
|
|
165
|
+
}
|
|
166
|
+
),
|
|
167
|
+
/* @__PURE__ */ o(
|
|
168
|
+
"button",
|
|
169
|
+
{
|
|
170
|
+
className: e.menuToggle,
|
|
171
|
+
onClick: z,
|
|
172
|
+
"aria-label": i ? "Close menu" : "Open menu",
|
|
173
|
+
"aria-expanded": i,
|
|
174
|
+
"aria-controls": "main-menu",
|
|
175
|
+
children: i ? /* @__PURE__ */ o(j, { size: 24 }) : /* @__PURE__ */ o(P, { size: 24 })
|
|
137
176
|
}
|
|
138
177
|
)
|
|
139
178
|
] })
|
|
@@ -141,5 +180,5 @@ function ne({
|
|
|
141
180
|
);
|
|
142
181
|
}
|
|
143
182
|
export {
|
|
144
|
-
|
|
183
|
+
me as Navbar
|
|
145
184
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import
|
|
3
|
-
import { TabsContext as B, useTabsContext as
|
|
4
|
-
import '../../assets/index33.css';const D = "
|
|
1
|
+
import { jsx as p, jsxs as z } from "react/jsx-runtime";
|
|
2
|
+
import N, { useState as I, useId as W, useRef as w, useMemo as H, useCallback as S, useLayoutEffect as k, useEffect as j } from "react";
|
|
3
|
+
import { TabsContext as B, useTabsContext as m } from "./Context.js";
|
|
4
|
+
import '../../assets/index33.css';const D = "_tabs_1eb1d_1", K = "_tabsList_1eb1d_7", O = "_horizontal_1eb1d_24", X = "_tabsPanel_1eb1d_26", Y = "_vertical_1eb1d_31", q = "_tabsTrigger_1eb1d_42", F = "_tabsPanelWrapper_1eb1d_47", G = "_indicator_1eb1d_70", J = "_active_1eb1d_117", Q = "_dark_1eb1d_165", U = "_light_1eb1d_177", V = "_transparent_1eb1d_201", n = {
|
|
5
5
|
tabs: D,
|
|
6
6
|
tabsList: K,
|
|
7
7
|
horizontal: O,
|
|
@@ -11,102 +11,102 @@ import '../../assets/index33.css';const D = "_tabs_k4ojr_1", K = "_tabsList_k4oj
|
|
|
11
11
|
tabsPanelWrapper: F,
|
|
12
12
|
indicator: G,
|
|
13
13
|
active: J,
|
|
14
|
-
default: "
|
|
14
|
+
default: "_default_1eb1d_161",
|
|
15
15
|
dark: Q,
|
|
16
16
|
light: U,
|
|
17
17
|
transparent: V
|
|
18
18
|
}, Z = {
|
|
19
|
-
horizontal:
|
|
20
|
-
vertical:
|
|
19
|
+
horizontal: n.horizontal,
|
|
20
|
+
vertical: n.vertical
|
|
21
21
|
}, tt = {
|
|
22
|
-
default:
|
|
23
|
-
light:
|
|
24
|
-
dark:
|
|
25
|
-
transparent:
|
|
22
|
+
default: n.default,
|
|
23
|
+
light: n.light,
|
|
24
|
+
dark: n.dark,
|
|
25
|
+
transparent: n.transparent
|
|
26
26
|
};
|
|
27
|
-
function
|
|
27
|
+
function y({
|
|
28
28
|
children: c,
|
|
29
29
|
defaultIndex: e = 0,
|
|
30
|
-
orientation:
|
|
31
|
-
theme:
|
|
30
|
+
orientation: a = "horizontal",
|
|
31
|
+
theme: s = "default"
|
|
32
32
|
}) {
|
|
33
|
-
const [
|
|
33
|
+
const [r, f] = I(e), [b, _] = I({
|
|
34
34
|
width: 0,
|
|
35
35
|
left: 0,
|
|
36
36
|
top: 0,
|
|
37
37
|
height: 0
|
|
38
|
-
}), l = typeof window < "u",
|
|
38
|
+
}), l = typeof window < "u", u = l ? k : j, P = W(), $ = [], L = [], R = w(null), T = w([]), x = w([]), M = H(
|
|
39
39
|
() => ({
|
|
40
|
-
activeIndex:
|
|
41
|
-
setActiveIndex:
|
|
42
|
-
idPrefix:
|
|
43
|
-
orientation:
|
|
44
|
-
theme:
|
|
45
|
-
panelRefs:
|
|
46
|
-
triggerRefs:
|
|
47
|
-
indicatorStyle:
|
|
40
|
+
activeIndex: r,
|
|
41
|
+
setActiveIndex: f,
|
|
42
|
+
idPrefix: P,
|
|
43
|
+
orientation: a,
|
|
44
|
+
theme: s,
|
|
45
|
+
panelRefs: T,
|
|
46
|
+
triggerRefs: x,
|
|
47
|
+
indicatorStyle: b
|
|
48
48
|
}),
|
|
49
|
-
[
|
|
49
|
+
[r, P, a, s, b]
|
|
50
50
|
);
|
|
51
|
-
|
|
52
|
-
var
|
|
53
|
-
(t == null ? void 0 : t.type) ===
|
|
51
|
+
N.Children.forEach(c, (t) => {
|
|
52
|
+
var i;
|
|
53
|
+
(t == null ? void 0 : t.type) === E ? $.push(t) : ((t == null ? void 0 : t.type) === A || ((i = t == null ? void 0 : t.type) == null ? void 0 : i.name) === "Panel") && L.push(t);
|
|
54
54
|
});
|
|
55
|
-
const g =
|
|
56
|
-
var
|
|
57
|
-
const t =
|
|
55
|
+
const g = S(() => {
|
|
56
|
+
var i;
|
|
57
|
+
const t = x.current[r];
|
|
58
58
|
if (t) {
|
|
59
|
-
const
|
|
60
|
-
if (!
|
|
61
|
-
if (window.innerWidth < 768 ||
|
|
62
|
-
const h =
|
|
63
|
-
_({ top: h, height: v, left: 0, width:
|
|
59
|
+
const d = t.getBoundingClientRect(), o = (i = t.parentElement) == null ? void 0 : i.getBoundingClientRect();
|
|
60
|
+
if (!o) return;
|
|
61
|
+
if (window.innerWidth < 768 || a === "vertical") {
|
|
62
|
+
const h = d.top - o.top, v = d.height;
|
|
63
|
+
_({ top: h, height: v, left: 0, width: o.width });
|
|
64
64
|
} else {
|
|
65
|
-
const h =
|
|
65
|
+
const h = d.left - o.left, v = d.width;
|
|
66
66
|
_({
|
|
67
67
|
left: h,
|
|
68
68
|
width: v,
|
|
69
69
|
top: 0,
|
|
70
|
-
height:
|
|
70
|
+
height: o.height
|
|
71
71
|
});
|
|
72
72
|
}
|
|
73
73
|
}
|
|
74
|
-
}, [
|
|
75
|
-
return
|
|
74
|
+
}, [r, a]);
|
|
75
|
+
return u(() => {
|
|
76
76
|
if (!(typeof window > "u") && l)
|
|
77
77
|
return g(), window.addEventListener("resize", g), () => {
|
|
78
78
|
window.removeEventListener("resize", g);
|
|
79
79
|
};
|
|
80
|
-
}, [g]),
|
|
81
|
-
const t =
|
|
82
|
-
if (!t || !
|
|
83
|
-
const
|
|
84
|
-
const
|
|
85
|
-
t.offsetHeight, t.style.height = `${
|
|
80
|
+
}, [g]), k(() => {
|
|
81
|
+
const t = R.current, i = T.current[r];
|
|
82
|
+
if (!t || !i) return;
|
|
83
|
+
const d = () => {
|
|
84
|
+
const C = i.offsetHeight;
|
|
85
|
+
t.offsetHeight, t.style.height = `${C}px`;
|
|
86
86
|
};
|
|
87
|
-
|
|
88
|
-
const
|
|
89
|
-
return
|
|
90
|
-
|
|
87
|
+
d();
|
|
88
|
+
const o = new ResizeObserver(d);
|
|
89
|
+
return o.observe(i), () => {
|
|
90
|
+
o.disconnect();
|
|
91
91
|
};
|
|
92
|
-
}, [
|
|
92
|
+
}, [r]), /* @__PURE__ */ p(B.Provider, { value: M, children: /* @__PURE__ */ z(
|
|
93
93
|
"div",
|
|
94
94
|
{
|
|
95
|
-
className: `${
|
|
95
|
+
className: `${n.tabs} ${Z[a]} ${tt[s]}`,
|
|
96
96
|
children: [
|
|
97
|
-
|
|
98
|
-
/* @__PURE__ */
|
|
97
|
+
$,
|
|
98
|
+
/* @__PURE__ */ p("div", { ref: R, className: n.tabsPanelWrapper, children: L })
|
|
99
99
|
]
|
|
100
100
|
}
|
|
101
101
|
) });
|
|
102
102
|
}
|
|
103
|
-
function
|
|
104
|
-
const { indicatorStyle: e } =
|
|
105
|
-
return /* @__PURE__ */
|
|
106
|
-
/* @__PURE__ */
|
|
103
|
+
function E({ children: c }) {
|
|
104
|
+
const { indicatorStyle: e } = m();
|
|
105
|
+
return /* @__PURE__ */ z("div", { className: `${n.tabsList}`, role: "tablist", "aria-label": "Tabs", children: [
|
|
106
|
+
/* @__PURE__ */ p(
|
|
107
107
|
"div",
|
|
108
108
|
{
|
|
109
|
-
className:
|
|
109
|
+
className: n.indicator,
|
|
110
110
|
style: {
|
|
111
111
|
width: e.width,
|
|
112
112
|
height: e.height,
|
|
@@ -118,50 +118,50 @@ function z({ children: c }) {
|
|
|
118
118
|
] });
|
|
119
119
|
}
|
|
120
120
|
function et({ children: c, index: e }) {
|
|
121
|
-
const { activeIndex:
|
|
122
|
-
l.key === "ArrowRight" ?
|
|
123
|
-
}, _ =
|
|
124
|
-
return /* @__PURE__ */
|
|
121
|
+
const { activeIndex: a, setActiveIndex: s, idPrefix: r, triggerRefs: f } = m(), b = (l) => {
|
|
122
|
+
l.key === "ArrowRight" ? s((u) => u + 1) : l.key === "ArrowLeft" && s((u) => Math.max(0, u - 1));
|
|
123
|
+
}, _ = a === e;
|
|
124
|
+
return /* @__PURE__ */ p(
|
|
125
125
|
"button",
|
|
126
126
|
{
|
|
127
|
-
className: `${
|
|
127
|
+
className: `${n.tabsTrigger} ${_ ? n.active : ""}`,
|
|
128
128
|
role: "tab",
|
|
129
129
|
ref: (l) => {
|
|
130
|
-
|
|
130
|
+
f.current[e] = l;
|
|
131
131
|
},
|
|
132
|
-
id: `${
|
|
133
|
-
"aria-selected":
|
|
134
|
-
tabIndex:
|
|
135
|
-
onClick: () =>
|
|
136
|
-
onKeyDown:
|
|
132
|
+
id: `${r}-tab-${e}`,
|
|
133
|
+
"aria-selected": a === e,
|
|
134
|
+
tabIndex: a === e ? 0 : -1,
|
|
135
|
+
onClick: () => s(e),
|
|
136
|
+
onKeyDown: b,
|
|
137
137
|
children: c
|
|
138
138
|
}
|
|
139
139
|
);
|
|
140
140
|
}
|
|
141
|
-
function
|
|
142
|
-
const { activeIndex:
|
|
143
|
-
return /* @__PURE__ */
|
|
141
|
+
function A({ children: c, index: e }) {
|
|
142
|
+
const { activeIndex: a, idPrefix: s, panelRefs: r } = m(), f = e === a;
|
|
143
|
+
return /* @__PURE__ */ p(
|
|
144
144
|
"div",
|
|
145
145
|
{
|
|
146
|
-
ref: (
|
|
147
|
-
|
|
146
|
+
ref: (b) => {
|
|
147
|
+
r.current[e] = b;
|
|
148
148
|
},
|
|
149
|
-
className:
|
|
149
|
+
className: n.tabsPanel,
|
|
150
150
|
role: "tabpanel",
|
|
151
|
-
id: `${
|
|
152
|
-
"aria-labelledby": `${
|
|
153
|
-
"aria-hidden": !
|
|
154
|
-
hidden: !
|
|
151
|
+
id: `${s}-panel-${e}`,
|
|
152
|
+
"aria-labelledby": `${s}-tab-${e}`,
|
|
153
|
+
"aria-hidden": !f,
|
|
154
|
+
hidden: !f,
|
|
155
155
|
children: c
|
|
156
156
|
}
|
|
157
157
|
);
|
|
158
158
|
}
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
159
|
+
y.List = E;
|
|
160
|
+
y.Trigger = et;
|
|
161
|
+
y.Panel = A;
|
|
162
162
|
export {
|
|
163
|
-
|
|
164
|
-
|
|
163
|
+
y as Tabs,
|
|
164
|
+
y as default,
|
|
165
165
|
Z as orientationClassMap,
|
|
166
166
|
tt as themeClassMap
|
|
167
167
|
};
|
|
@@ -9,7 +9,7 @@ declare const variantClassMap: {
|
|
|
9
9
|
readonly underline: string;
|
|
10
10
|
readonly underlineInverted: string;
|
|
11
11
|
};
|
|
12
|
-
type Variant = keyof typeof variantClassMap;
|
|
12
|
+
export type Variant = keyof typeof variantClassMap;
|
|
13
13
|
declare const iconAlignClassMap: {
|
|
14
14
|
readonly left: string;
|
|
15
15
|
readonly right: string;
|
|
@@ -32,6 +32,6 @@ type AnchorProps = {
|
|
|
32
32
|
type ButtonProps = {
|
|
33
33
|
as: "button";
|
|
34
34
|
} & React.ButtonHTMLAttributes<HTMLButtonElement>;
|
|
35
|
-
type CallToActionProps = BaseProps & (AnchorProps | ButtonProps);
|
|
35
|
+
export type CallToActionProps = BaseProps & (AnchorProps | ButtonProps);
|
|
36
36
|
export declare function CallToAction({ variant, icon, iconAlignemnt, useRouter, className, children, disabled, ...restProps }: CallToActionProps): import("react/jsx-runtime").JSX.Element;
|
|
37
37
|
export {};
|
|
@@ -1,4 +1,17 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
+
import { Variant } from '../CallToAction';
|
|
3
|
+
declare const alignmentClassMap: {
|
|
4
|
+
readonly left: string;
|
|
5
|
+
readonly center: string;
|
|
6
|
+
readonly right: string;
|
|
7
|
+
};
|
|
8
|
+
type Alignment = keyof typeof alignmentClassMap;
|
|
9
|
+
export type UtilityItem = {
|
|
10
|
+
_id?: string;
|
|
11
|
+
label: string;
|
|
12
|
+
href?: string;
|
|
13
|
+
variant: Variant;
|
|
14
|
+
};
|
|
2
15
|
export type NavItem = {
|
|
3
16
|
label: string;
|
|
4
17
|
href?: string;
|
|
@@ -9,8 +22,10 @@ export type NavItem = {
|
|
|
9
22
|
type NavbarProps = {
|
|
10
23
|
logo?: React.ReactNode;
|
|
11
24
|
items: NavItem[];
|
|
25
|
+
utilityItems?: UtilityItem[];
|
|
12
26
|
isSticky?: boolean;
|
|
27
|
+
alignment: Alignment;
|
|
13
28
|
className?: string;
|
|
14
29
|
};
|
|
15
|
-
export declare function Navbar({ logo, items, isSticky, className, }: NavbarProps): import("react/jsx-runtime").JSX.Element;
|
|
30
|
+
export declare function Navbar({ logo, items, utilityItems, isSticky, alignment, className, }: NavbarProps): import("react/jsx-runtime").JSX.Element;
|
|
16
31
|
export {};
|
package/dist/lib/main.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export { ButtonGroup } from './components/ButtonGroup';
|
|
2
2
|
export { FloatingActionButton } from './components/FloatingActionButton';
|
|
3
3
|
export { CallToAction } from './components/CallToAction';
|
|
4
|
+
export type { CallToActionProps, Variant } from './components/CallToAction';
|
|
4
5
|
export { IconButton } from './components/IconButton';
|
|
5
6
|
export { Heading } from './components/Heading';
|
|
6
7
|
export { Text } from './components/Text';
|
package/dist/styles.css
CHANGED
|
@@ -30,7 +30,7 @@ ul._list_4w9h5_1{list-style-type:none;padding:0;margin:0}ol._list_4w9h5_1{list-s
|
|
|
30
30
|
._progressBarContainer_a1m8u_1{display:flex;align-items:center;justify-content:center;gap:.25rem;width:100%}._progressBar_a1m8u_1{flex:1;height:12px;background-color:#f0f0f0;border-radius:4px;overflow:hidden;position:relative}._fill_a1m8u_18{height:100%;transition:width .3s ease;display:flex;align-items:center;justify-content:center;color:#fff;font-weight:700;border-radius:4px}._primary_a1m8u_29 ._fill_a1m8u_18{background-color:var(--color-primary)}._success_a1m8u_33 ._fill_a1m8u_18{background-color:var(--color-success)}._warning_a1m8u_37 ._fill_a1m8u_18{background-color:var(--color-warning)}._danger_a1m8u_41 ._fill_a1m8u_18{background-color:var(--color-error)}._label_a1m8u_45{flex:.1;position:relative;width:auto;text-align:center;color:var(--color-text-primary);font-size:var(--font-size-xs);font-weight:var(--font-weight-semibold)}
|
|
31
31
|
._carousel_1e9ij_1{width:100%}@media (max-width: 767px){._carousel_1e9ij_1{padding:0 var(--spacing-lg)}}._noPointerEvents_1e9ij_9 *{pointer-events:none!important}._trackContainer_1e9ij_13{overflow:hidden;width:100%}@media (max-width: 767px){._trackContainer_1e9ij_13{overflow:visible}}._track_1e9ij_13{display:flex;transition:transform .3s ease;will-change:transform}._page_1e9ij_28{display:flex;gap:var(--spacing-md);padding:0 var(--spacing-sm)}._controls_1e9ij_34{display:flex;justify-content:space-between;align-items:center;margin-top:var(--spacing-md);margin-left:auto;margin-right:auto;padding:0 var(--spacing-md);width:100%}._indicators_1e9ij_45{display:flex;flex-wrap:wrap;max-width:125px;gap:var(--spacing-xs)}._indicator_1e9ij_45{width:10px;height:10px;border-radius:50%;background-color:#e0e0e0;border:1px solid #fff;cursor:pointer;transition:background-color .3s}._indicator_1e9ij_45._active_1e9ij_62{background-color:var(--color-primary)}._buttons_1e9ij_66{display:flex;gap:var(--spacing-md)}._prev_1e9ij_71._disabled_1e9ij_71,._next_1e9ij_72._disabled_1e9ij_71{opacity:.5;pointer-events:none}._buttons_1e9ij_66 button:not(._disabled_1e9ij_71):hover{background-color:var(--color-primary);color:#fff}._prev_1e9ij_71,._next_1e9ij_72{background-color:#e0e0e0;color:var(--color-text-primary);border:1px solid #fff;padding:var(--spacing-sm);cursor:pointer;transition:background-color .3s,color .3s;border-radius:50%;width:40px;height:40px;display:flex;justify-content:center;align-items:center}
|
|
32
32
|
._drawer_55xty_1{position:fixed;background-color:var(--color-background);transition:transform .3s ease-in-out;z-index:1000;width:300px;height:100%;box-shadow:0 0 10px #00000026;padding:var(--spacing-md)}._right_55xty_12{top:0;right:0;transform:translate(100%)}._left_55xty_18{top:0;left:0;transform:translate(-100%)}._top_55xty_24{top:0;left:0;width:100%;height:auto;transform:translateY(-100%)}._bottom_55xty_32{bottom:0;left:0;width:100%;height:auto;transform:translateY(100%)}._open_55xty_40._right_55xty_12,._open_55xty_40._left_55xty_18{transform:translate(0)}._open_55xty_40._top_55xty_24,._open_55xty_40._bottom_55xty_32{transform:translateY(0)}._overlay_55xty_50{position:fixed;top:0;right:0;bottom:0;left:0;background-color:#0000004d;opacity:0;pointer-events:none;transition:opacity .3s ease-in-out;z-index:999}._overlay_55xty_50._show_55xty_60{opacity:1;pointer-events:all}
|
|
33
|
-
.
|
|
33
|
+
._tabs_1eb1d_1{display:flex;flex-direction:column;width:100%}._tabsList_1eb1d_7{display:flex;width:100%;background-color:var(--color-tab-background);border-radius:calc(var(--radius-md) + 5px);position:relative;overflow-x:auto;scrollbar-width:none;-ms-overflow-style:none}._tabsList_1eb1d_7::-webkit-scrollbar{display:none}._horizontal_1eb1d_24{flex-direction:column}._horizontal_1eb1d_24 ._tabsPanel_1eb1d_26{padding:var(--spacing-lg) var(--spacing-md)}._vertical_1eb1d_31{flex-direction:row;align-items:flex-start;gap:3rem}._vertical_1eb1d_31 ._tabsList_1eb1d_7{flex-direction:column;overflow-x:visible;flex:.25 0 150px}._vertical_1eb1d_31 ._tabsTrigger_1eb1d_42{white-space:normal;text-align:left}._vertical_1eb1d_31 ._tabsPanelWrapper_1eb1d_47{flex:1;width:100%}@media (max-width: 767px){._vertical_1eb1d_31{flex-direction:column}}._left_1eb1d_58{justify-content:flex-start}._center_1eb1d_62{justify-content:center}._right_1eb1d_66{justify-content:flex-end}._indicator_1eb1d_70{position:absolute;left:0;top:0;border-radius:var(--radius-md);transition:transform .3s ease-in-out,width .3s ease-in-out;z-index:0;border:5px solid var(--color-tab-background)}._indicator_1eb1d_70:after{content:"";border-radius:var(--radius-md);background-color:var(--color-primary);display:block;position:absolute;width:100%;height:100%}._tabsTrigger_1eb1d_42{padding:var(--spacing-md);border:none;background:none;cursor:pointer;color:var(--color-muted);font-weight:var(--font-weight-semibold);font-size:var(--font-size-md);transition:color .3s ease;position:relative;z-index:1;white-space:nowrap;text-align:center;width:100%}._tabsTrigger_1eb1d_42._active_1eb1d_117{color:#fff}@media (max-width: 767px){._tabsList_1eb1d_7{flex-direction:column;overflow-x:visible}._tabsTrigger_1eb1d_42{white-space:normal;text-align:left}}._tabsPanelWrapper_1eb1d_47{position:relative;overflow:hidden;height:auto;transition:height .3s ease-in-out}._tabsPanel_1eb1d_26{animation:_fadeSlide_1eb1d_1 .3s ease both;position:relative;width:100%;color:var(--color-text-primary)}@keyframes _fadeSlide_1eb1d_1{0%{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}._default_1eb1d_161{background-color:transparent}._dark_1eb1d_165{background-color:var(--color-tab-background)}._dark_1eb1d_165 ._indicator_1eb1d_70{border:5px solid transparent}._dark_1eb1d_165 ._tabsTrigger_1eb1d_42{color:var(--color-muted)}._light_1eb1d_177{background-color:#fff}._light_1eb1d_177 ._indicator_1eb1d_70{border:5px solid transparent}._light_1eb1d_177 ._tabsList_1eb1d_7{background-color:#fff}._light_1eb1d_177 ._tabsTrigger_1eb1d_42{color:var(--color-text-primary)}._light_1eb1d_177 ._tabsTrigger_1eb1d_42:hover{color:var(--color-primary)}._light_1eb1d_177 ._tabsTrigger_1eb1d_42._active_1eb1d_117{color:#fff}._transparent_1eb1d_201{background-color:transparent}._transparent_1eb1d_201 ._indicator_1eb1d_70{border:5px solid transparent}._transparent_1eb1d_201 ._tabsList_1eb1d_7{background-color:transparent}._transparent_1eb1d_201 ._tabsTrigger_1eb1d_42{color:var(--color-text-primary)}._transparent_1eb1d_201 ._tabsTrigger_1eb1d_42:hover{color:var(--color-primary)}._transparent_1eb1d_201 ._tabsTrigger_1eb1d_42._active_1eb1d_117{color:#fff}
|
|
34
34
|
._breadcrumbs_1nbgu_1{display:block;font-size:var(--font-size-sm);line-height:1.5}._list_1nbgu_7{display:flex;flex-wrap:wrap;list-style:none;padding:0;margin:0}._item_1nbgu_15{display:flex;align-items:center}._separator_1nbgu_20{margin:0 var(--spacing-xs);color:var(--color-muted)}._link_1nbgu_25{color:var(--color-muted);text-decoration:none;transition:color .3s ease}._link_1nbgu_25:hover{color:var(--color-primary)}._label_1nbgu_35{color:var(--color-muted)}._active_1nbgu_39{font-weight:var(--font-weight-bold);color:var(--color-primary)}
|
|
35
35
|
._footer_gfid4_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_gfid4_8{display:flex;flex-direction:column;gap:var(--spacing-xl)}._logo_gfid4_16{font-size:var(--font-size-lg);font-weight:var(--font-weight-bold);color:var(--color-primary)}._groups_gfid4_22{display:flex;flex-wrap:wrap;gap:var(--spacing-xl)}._group_gfid4_22{min-width:140px}._groupTitle_gfid4_32{font-weight:var(--font-weight-semibold);margin-bottom:var(--spacing-xs)}._sublinks_gfid4_37{position:relative}._linkList_gfid4_41{display:flex;flex-direction:column;gap:var(--spacing-xs);list-style:none;padding:0;margin:0}._link_gfid4_41{color:var(--color-text-primary);text-decoration:none;display:block}._link_gfid4_41:hover{color:var(--color-primary)}._bottom_gfid4_60{margin-top:var(--spacing-xl);text-align:right;font-size:var(--font-size-sm);color:var(--color-muted)}
|
|
36
36
|
._form_s0yvj_1{display:flex;flex-direction:column;gap:var(--spacing-md)}
|
|
@@ -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_94sx1_5{display:flex;align-items:center;justify-content:space-between;width:100%;height:100%;background-color:var(--color-background);border-bottom:1px solid var(--color-border);padding:0 var(--spacing-md);position:relative;z-index:1000;height:var(--nav-height)}._left_94sx1_19 ._container_94sx1_20{justify-content:flex-start}._left_94sx1_19 ._logo_94sx1_24{flex:unset}._left_94sx1_19 ._nav_94sx1_5{flex:1}@media (max-width: 767px){._left_94sx1_19 ._logo_94sx1_24{flex:1}}._center_94sx1_39 ._logo_94sx1_24,._center_94sx1_39 ._utility_94sx1_44{flex:.2}@media (max-width: 767px){._center_94sx1_39 ._logo_94sx1_24{flex:1}}._right_94sx1_55 ._container_94sx1_20{justify-content:flex-end}._right_94sx1_55 ._logo_94sx1_24{flex:1}._right_94sx1_55 ._nav_94sx1_5{flex:unset}._sticky_94sx1_69{position:sticky;top:0;width:100%}._container_94sx1_20{display:flex;align-items:center;justify-content:space-between;gap:var(--spacing-md);width:100%;height:100%;max-width:1280px;margin:0 auto}._logo_94sx1_24{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;flex:.2}._logo_94sx1_24 img{height:auto;width:100%}._menuToggle_94sx1_101{background:none;border:none;cursor:pointer;display:none;color:var(--color-text-primary);z-index:1100}._utility_94sx1_44{flex:.2}._utilityMobile_94sx1_114{display:none}._nav_94sx1_5{display:flex;gap:var(--spacing-lg);height:100%;transition:transform .3s ease}._linkWrapper_94sx1_125{position:relative;display:flex;align-items:center}._linkItem_94sx1_131{display:flex;align-items:center;box-sizing:border-box}._sublinkToggle_94sx1_139,._link_94sx1_125{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-md);box-sizing:border-box}._link_94sx1_125:hover,._sublinkToggle_94sx1_139:hover,._navItem_94sx1_156:hover{color:var(--color-primary)}._sublinkToggle_94sx1_139{background:none;border:none;display:flex;align-items:center;cursor:pointer;color:var(--color-text-primary)}._sublinks_94sx1_170{position:absolute;right:0;top:100%;background-color:var(--color-background);box-shadow:0 6px 8px #0000001a;overflow:hidden;max-height:0;min-width:100%;width:max-content;opacity:0;z-index:100;transition:max-height .3s ease,opacity .3s ease,visibility .3s ease;display:flex;visibility:hidden;flex-direction:column;align-items:flex-end;gap:var(--spacing-md);padding:var(--spacing-md);border-radius:0 0 var(--radius-md) var(--radius-md);pointer-events:none}._sublinks_94sx1_170._show_94sx1_193{max-height:500px;opacity:1;pointer-events:auto;visibility:visible}._chevron_94sx1_200{transition:transform .3s ease}._sublinkToggle_94sx1_139._open_94sx1_204 ._chevron_94sx1_200{transform:rotate(180deg)}@media (max-width: 767px){._logo_94sx1_24{flex:1}._menuToggle_94sx1_101{display:flex;align-items:center;justify-content:center}._utility_94sx1_44 a:first-of-type{display:none}._utilityMobile_94sx1_114{display:block;transform:translateY(100px);position:fixed;bottom:1rem;margin:0 auto;width:100%;z-index:1001;transition:transform .3s ease-in-out}._utilityMobile_94sx1_114._open_94sx1_204{transform:translateY(0)}._nav_94sx1_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_94sx1_5._open_94sx1_204{transform:translate(0)}._linkWrapper_94sx1_125{flex-direction:column;width:100%;max-width:300px;margin:0 auto;padding:var(--spacing-sm) 0}._linkWrapper_94sx1_125._parent_94sx1_273{border-bottom:1px solid var(--color-border)}._linkWrapper_94sx1_125._parent_94sx1_273:last-of-type{border:none}._linkItem_94sx1_131{width:100%}._chevron_94sx1_200{display:none}._sublinks_94sx1_170{position:relative;top:0;box-shadow:none;max-height:fit-content;opacity:1;visibility:visible;align-items:flex-start;padding:var(--spacing-sm);gap:0;pointer-events:auto}._sublinkToggle_94sx1_139{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)}
|