zudoku 0.4.4-dev.9 → 0.4.5-dev.0
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/client.d.ts +0 -5
- package/dist/config/validators/validate.d.ts +48 -110
- package/dist/config/validators/validate.js +1 -4
- package/dist/config/validators/validate.js.map +1 -1
- package/dist/lib/components/Header.js +2 -1
- package/dist/lib/components/Header.js.map +1 -1
- package/dist/lib/components/Layout.js +5 -3
- package/dist/lib/components/Layout.js.map +1 -1
- package/dist/lib/components/MobileTopNavigation.d.ts +1 -0
- package/dist/lib/components/MobileTopNavigation.js +14 -0
- package/dist/lib/components/MobileTopNavigation.js.map +1 -0
- package/dist/lib/components/TopNavigation.js +1 -1
- package/dist/lib/components/TopNavigation.js.map +1 -1
- package/dist/lib/components/navigation/Sidebar.js +4 -2
- package/dist/lib/components/navigation/Sidebar.js.map +1 -1
- package/dist/lib/oas/graphql/index.js +2 -2
- package/dist/lib/oas/graphql/index.js.map +1 -1
- package/dist/lib/plugins/markdown/MdxPage.js +1 -1
- package/dist/lib/plugins/markdown/MdxPage.js.map +1 -1
- package/dist/lib/plugins/openapi/graphql/graphql.d.ts +1 -1
- package/dist/lib/plugins/openapi/index.d.ts +2 -1
- package/dist/lib/plugins/openapi/index.js.map +1 -1
- package/dist/lib/plugins/openapi/interfaces.d.ts +2 -5
- package/dist/lib/ui/Drawer.d.ts +26 -0
- package/dist/lib/ui/Drawer.js +23 -0
- package/dist/lib/ui/Drawer.js.map +1 -0
- package/dist/vite/plugin-api.js +23 -3
- package/dist/vite/plugin-api.js.map +1 -1
- package/lib/{Input-DH_IdyOP.js → Input-BtumfhQu.js} +374 -399
- package/lib/Input-BtumfhQu.js.map +1 -0
- package/lib/{MdxPage-DBmhggWT.js → MdxPage-C3VDc6a7.js} +6 -6
- package/lib/{MdxPage-DBmhggWT.js.map → MdxPage-C3VDc6a7.js.map} +1 -1
- package/lib/{OperationList-CTicz0GQ.js → OperationList-CLtN0fiZ.js} +5 -5
- package/lib/{OperationList-CTicz0GQ.js.map → OperationList-CLtN0fiZ.js.map} +1 -1
- package/lib/{Route-12T12Ml-.js → Route-Cfon6vDR.js} +2 -2
- package/lib/{Route-12T12Ml-.js.map → Route-Cfon6vDR.js.map} +1 -1
- package/lib/SidebarBadge-DMBr3H-a.js +498 -0
- package/lib/SidebarBadge-DMBr3H-a.js.map +1 -0
- package/lib/assets/{worker-BsNqC5G3.js → worker-BvD7B6MG.js} +2 -2
- package/lib/assets/{worker-BsNqC5G3.js.map → worker-BvD7B6MG.js.map} +1 -1
- package/lib/{index-0hAwyzGD.js → index-BfLQd6h_.js} +1862 -2087
- package/lib/index-BfLQd6h_.js.map +1 -0
- package/lib/{index-DFSdiG5J.js → index-CvPXovcL.js} +5 -5
- package/lib/{index-DFSdiG5J.js.map → index-CvPXovcL.js.map} +1 -1
- package/lib/{Combination-BDDQcRSU.js → index-KUt-5Yzq.js} +253 -228
- package/lib/index-KUt-5Yzq.js.map +1 -0
- package/lib/zudoku.components.js +1978 -861
- package/lib/zudoku.components.js.map +1 -1
- package/lib/zudoku.openapi-worker.js +2 -2
- package/lib/zudoku.openapi-worker.js.map +1 -1
- package/lib/zudoku.plugin-api-keys.js +2 -2
- package/lib/zudoku.plugin-markdown.js +1 -1
- package/lib/zudoku.plugin-openapi.js +2 -2
- package/package.json +2 -1
- package/src/lib/components/Header.tsx +6 -5
- package/src/lib/components/Layout.tsx +29 -14
- package/src/lib/components/MobileTopNavigation.tsx +52 -0
- package/src/lib/components/TopNavigation.tsx +1 -1
- package/src/lib/components/navigation/Sidebar.tsx +25 -10
- package/src/lib/oas/graphql/index.ts +2 -2
- package/src/lib/plugins/markdown/MdxPage.tsx +1 -1
- package/src/lib/plugins/openapi/graphql/graphql.ts +1 -1
- package/src/lib/plugins/openapi/index.tsx +3 -1
- package/src/lib/plugins/openapi/interfaces.ts +1 -4
- package/src/lib/ui/Drawer.tsx +119 -0
- package/lib/Combination-BDDQcRSU.js.map +0 -1
- package/lib/Input-DH_IdyOP.js.map +0 -1
- package/lib/SidebarBadge-YJxJ4aaV.js +0 -266
- package/lib/SidebarBadge-YJxJ4aaV.js.map +0 -1
- package/lib/index-0hAwyzGD.js.map +0 -1
|
@@ -1,266 +0,0 @@
|
|
|
1
|
-
import * as s from "react";
|
|
2
|
-
import * as V from "react-dom";
|
|
3
|
-
import { u as _, r as M, c as q, a as J, k as Q, o as X, f as Z, P as k, d as A, n as $ } from "./Combination-BDDQcRSU.js";
|
|
4
|
-
import { j as I } from "./jsx-runtime-B6kdoens.js";
|
|
5
|
-
import { a as ee } from "./Markdown-Bg4SS0au.js";
|
|
6
|
-
function te(e, t) {
|
|
7
|
-
return s.useReducer((o, n) => t[o][n] ?? o, e);
|
|
8
|
-
}
|
|
9
|
-
var ne = (e) => {
|
|
10
|
-
const { present: t, children: o } = e, n = oe(t), i = typeof o == "function" ? o({ present: n.isPresent }) : s.Children.only(o), l = _(n.ref, re(i));
|
|
11
|
-
return typeof o == "function" || n.isPresent ? s.cloneElement(i, { ref: l }) : null;
|
|
12
|
-
};
|
|
13
|
-
ne.displayName = "Presence";
|
|
14
|
-
function oe(e) {
|
|
15
|
-
const [t, o] = s.useState(), n = s.useRef({}), i = s.useRef(e), l = s.useRef("none"), E = e ? "mounted" : "unmounted", [R, c] = te(E, {
|
|
16
|
-
mounted: {
|
|
17
|
-
UNMOUNT: "unmounted",
|
|
18
|
-
ANIMATION_OUT: "unmountSuspended"
|
|
19
|
-
},
|
|
20
|
-
unmountSuspended: {
|
|
21
|
-
MOUNT: "mounted",
|
|
22
|
-
ANIMATION_END: "unmounted"
|
|
23
|
-
},
|
|
24
|
-
unmounted: {
|
|
25
|
-
MOUNT: "mounted"
|
|
26
|
-
}
|
|
27
|
-
});
|
|
28
|
-
return s.useEffect(() => {
|
|
29
|
-
const r = T(n.current);
|
|
30
|
-
l.current = R === "mounted" ? r : "none";
|
|
31
|
-
}, [R]), M(() => {
|
|
32
|
-
const r = n.current, f = i.current;
|
|
33
|
-
if (f !== e) {
|
|
34
|
-
const b = l.current, p = T(r);
|
|
35
|
-
e ? c("MOUNT") : p === "none" || (r == null ? void 0 : r.display) === "none" ? c("UNMOUNT") : c(f && b !== p ? "ANIMATION_OUT" : "UNMOUNT"), i.current = e;
|
|
36
|
-
}
|
|
37
|
-
}, [e, c]), M(() => {
|
|
38
|
-
if (t) {
|
|
39
|
-
const r = (m) => {
|
|
40
|
-
const p = T(n.current).includes(m.animationName);
|
|
41
|
-
m.target === t && p && V.flushSync(() => c("ANIMATION_END"));
|
|
42
|
-
}, f = (m) => {
|
|
43
|
-
m.target === t && (l.current = T(n.current));
|
|
44
|
-
};
|
|
45
|
-
return t.addEventListener("animationstart", f), t.addEventListener("animationcancel", r), t.addEventListener("animationend", r), () => {
|
|
46
|
-
t.removeEventListener("animationstart", f), t.removeEventListener("animationcancel", r), t.removeEventListener("animationend", r);
|
|
47
|
-
};
|
|
48
|
-
} else
|
|
49
|
-
c("ANIMATION_END");
|
|
50
|
-
}, [t, c]), {
|
|
51
|
-
isPresent: ["mounted", "unmountSuspended"].includes(R),
|
|
52
|
-
ref: s.useCallback((r) => {
|
|
53
|
-
r && (n.current = getComputedStyle(r)), o(r);
|
|
54
|
-
}, [])
|
|
55
|
-
};
|
|
56
|
-
}
|
|
57
|
-
function T(e) {
|
|
58
|
-
return (e == null ? void 0 : e.animationName) || "none";
|
|
59
|
-
}
|
|
60
|
-
function re(e) {
|
|
61
|
-
var n, i;
|
|
62
|
-
let t = (n = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : n.get, o = t && "isReactWarning" in t && t.isReactWarning;
|
|
63
|
-
return o ? e.ref : (t = (i = Object.getOwnPropertyDescriptor(e, "ref")) == null ? void 0 : i.get, o = t && "isReactWarning" in t && t.isReactWarning, o ? e.props.ref : e.props.ref || e.ref);
|
|
64
|
-
}
|
|
65
|
-
var C = "rovingFocusGroup.onEntryFocus", se = { bubbles: !1, cancelable: !0 }, x = "RovingFocusGroup", [h, D, ae] = q(x), [ce, Ne] = J(
|
|
66
|
-
x,
|
|
67
|
-
[ae]
|
|
68
|
-
), [ie, ue] = ce(x), U = s.forwardRef(
|
|
69
|
-
(e, t) => /* @__PURE__ */ I.jsx(h.Provider, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ I.jsx(h.Slot, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ I.jsx(de, { ...e, ref: t }) }) })
|
|
70
|
-
);
|
|
71
|
-
U.displayName = x;
|
|
72
|
-
var de = s.forwardRef((e, t) => {
|
|
73
|
-
const {
|
|
74
|
-
__scopeRovingFocusGroup: o,
|
|
75
|
-
orientation: n,
|
|
76
|
-
loop: i = !1,
|
|
77
|
-
dir: l,
|
|
78
|
-
currentTabStopId: E,
|
|
79
|
-
defaultCurrentTabStopId: R,
|
|
80
|
-
onCurrentTabStopIdChange: c,
|
|
81
|
-
onEntryFocus: r,
|
|
82
|
-
preventScrollOnEntryFocus: f = !1,
|
|
83
|
-
...m
|
|
84
|
-
} = e, b = s.useRef(null), p = _(t, b), a = Q(l), [v = null, y] = X({
|
|
85
|
-
prop: E,
|
|
86
|
-
defaultProp: R,
|
|
87
|
-
onChange: c
|
|
88
|
-
}), [d, g] = s.useState(!1), F = Z(r), K = D(o), S = s.useRef(!1), [B, O] = s.useState(0);
|
|
89
|
-
return s.useEffect(() => {
|
|
90
|
-
const u = b.current;
|
|
91
|
-
if (u)
|
|
92
|
-
return u.addEventListener(C, F), () => u.removeEventListener(C, F);
|
|
93
|
-
}, [F]), /* @__PURE__ */ I.jsx(
|
|
94
|
-
ie,
|
|
95
|
-
{
|
|
96
|
-
scope: o,
|
|
97
|
-
orientation: n,
|
|
98
|
-
dir: a,
|
|
99
|
-
loop: i,
|
|
100
|
-
currentTabStopId: v,
|
|
101
|
-
onItemFocus: s.useCallback(
|
|
102
|
-
(u) => y(u),
|
|
103
|
-
[y]
|
|
104
|
-
),
|
|
105
|
-
onItemShiftTab: s.useCallback(() => g(!0), []),
|
|
106
|
-
onFocusableItemAdd: s.useCallback(
|
|
107
|
-
() => O((u) => u + 1),
|
|
108
|
-
[]
|
|
109
|
-
),
|
|
110
|
-
onFocusableItemRemove: s.useCallback(
|
|
111
|
-
() => O((u) => u - 1),
|
|
112
|
-
[]
|
|
113
|
-
),
|
|
114
|
-
children: /* @__PURE__ */ I.jsx(
|
|
115
|
-
k.div,
|
|
116
|
-
{
|
|
117
|
-
tabIndex: d || B === 0 ? -1 : 0,
|
|
118
|
-
"data-orientation": n,
|
|
119
|
-
...m,
|
|
120
|
-
ref: p,
|
|
121
|
-
style: { outline: "none", ...e.style },
|
|
122
|
-
onMouseDown: A(e.onMouseDown, () => {
|
|
123
|
-
S.current = !0;
|
|
124
|
-
}),
|
|
125
|
-
onFocus: A(e.onFocus, (u) => {
|
|
126
|
-
const W = !S.current;
|
|
127
|
-
if (u.target === u.currentTarget && W && !d) {
|
|
128
|
-
const P = new CustomEvent(C, se);
|
|
129
|
-
if (u.currentTarget.dispatchEvent(P), !P.defaultPrevented) {
|
|
130
|
-
const w = K().filter((N) => N.focusable), Y = w.find((N) => N.active), z = w.find((N) => N.id === v), H = [Y, z, ...w].filter(
|
|
131
|
-
Boolean
|
|
132
|
-
).map((N) => N.ref.current);
|
|
133
|
-
j(H, f);
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
|
-
S.current = !1;
|
|
137
|
-
}),
|
|
138
|
-
onBlur: A(e.onBlur, () => g(!1))
|
|
139
|
-
}
|
|
140
|
-
)
|
|
141
|
-
}
|
|
142
|
-
);
|
|
143
|
-
}), L = "RovingFocusGroupItem", G = s.forwardRef(
|
|
144
|
-
(e, t) => {
|
|
145
|
-
const {
|
|
146
|
-
__scopeRovingFocusGroup: o,
|
|
147
|
-
focusable: n = !0,
|
|
148
|
-
active: i = !1,
|
|
149
|
-
tabStopId: l,
|
|
150
|
-
...E
|
|
151
|
-
} = e, R = $(), c = l || R, r = ue(L, o), f = r.currentTabStopId === c, m = D(o), { onFocusableItemAdd: b, onFocusableItemRemove: p } = r;
|
|
152
|
-
return s.useEffect(() => {
|
|
153
|
-
if (n)
|
|
154
|
-
return b(), () => p();
|
|
155
|
-
}, [n, b, p]), /* @__PURE__ */ I.jsx(
|
|
156
|
-
h.ItemSlot,
|
|
157
|
-
{
|
|
158
|
-
scope: o,
|
|
159
|
-
id: c,
|
|
160
|
-
focusable: n,
|
|
161
|
-
active: i,
|
|
162
|
-
children: /* @__PURE__ */ I.jsx(
|
|
163
|
-
k.span,
|
|
164
|
-
{
|
|
165
|
-
tabIndex: f ? 0 : -1,
|
|
166
|
-
"data-orientation": r.orientation,
|
|
167
|
-
...E,
|
|
168
|
-
ref: t,
|
|
169
|
-
onMouseDown: A(e.onMouseDown, (a) => {
|
|
170
|
-
n ? r.onItemFocus(c) : a.preventDefault();
|
|
171
|
-
}),
|
|
172
|
-
onFocus: A(e.onFocus, () => r.onItemFocus(c)),
|
|
173
|
-
onKeyDown: A(e.onKeyDown, (a) => {
|
|
174
|
-
if (a.key === "Tab" && a.shiftKey) {
|
|
175
|
-
r.onItemShiftTab();
|
|
176
|
-
return;
|
|
177
|
-
}
|
|
178
|
-
if (a.target !== a.currentTarget) return;
|
|
179
|
-
const v = me(a, r.orientation, r.dir);
|
|
180
|
-
if (v !== void 0) {
|
|
181
|
-
if (a.metaKey || a.ctrlKey || a.altKey || a.shiftKey) return;
|
|
182
|
-
a.preventDefault();
|
|
183
|
-
let d = m().filter((g) => g.focusable).map((g) => g.ref.current);
|
|
184
|
-
if (v === "last") d.reverse();
|
|
185
|
-
else if (v === "prev" || v === "next") {
|
|
186
|
-
v === "prev" && d.reverse();
|
|
187
|
-
const g = d.indexOf(a.currentTarget);
|
|
188
|
-
d = r.loop ? pe(d, g + 1) : d.slice(g + 1);
|
|
189
|
-
}
|
|
190
|
-
setTimeout(() => j(d));
|
|
191
|
-
}
|
|
192
|
-
})
|
|
193
|
-
}
|
|
194
|
-
)
|
|
195
|
-
}
|
|
196
|
-
);
|
|
197
|
-
}
|
|
198
|
-
);
|
|
199
|
-
G.displayName = L;
|
|
200
|
-
var le = {
|
|
201
|
-
ArrowLeft: "prev",
|
|
202
|
-
ArrowUp: "prev",
|
|
203
|
-
ArrowRight: "next",
|
|
204
|
-
ArrowDown: "next",
|
|
205
|
-
PageUp: "first",
|
|
206
|
-
Home: "first",
|
|
207
|
-
PageDown: "last",
|
|
208
|
-
End: "last"
|
|
209
|
-
};
|
|
210
|
-
function fe(e, t) {
|
|
211
|
-
return t !== "rtl" ? e : e === "ArrowLeft" ? "ArrowRight" : e === "ArrowRight" ? "ArrowLeft" : e;
|
|
212
|
-
}
|
|
213
|
-
function me(e, t, o) {
|
|
214
|
-
const n = fe(e.key, o);
|
|
215
|
-
if (!(t === "vertical" && ["ArrowLeft", "ArrowRight"].includes(n)) && !(t === "horizontal" && ["ArrowUp", "ArrowDown"].includes(n)))
|
|
216
|
-
return le[n];
|
|
217
|
-
}
|
|
218
|
-
function j(e, t = !1) {
|
|
219
|
-
const o = document.activeElement;
|
|
220
|
-
for (const n of e)
|
|
221
|
-
if (n === o || (n.focus({ preventScroll: t }), document.activeElement !== o)) return;
|
|
222
|
-
}
|
|
223
|
-
function pe(e, t) {
|
|
224
|
-
return e.map((o, n) => e[(t + n) % e.length]);
|
|
225
|
-
}
|
|
226
|
-
var Ee = U, Ae = G;
|
|
227
|
-
const Te = {
|
|
228
|
-
green: "text-green-600",
|
|
229
|
-
blue: "text-sky-600",
|
|
230
|
-
yellow: "text-yellow-600",
|
|
231
|
-
red: "text-red-600",
|
|
232
|
-
purple: "text-purple-600",
|
|
233
|
-
indigo: "text-indigo-600",
|
|
234
|
-
gray: "text-gray-600"
|
|
235
|
-
}, ge = {
|
|
236
|
-
green: "bg-green-400 dark:bg-green-800",
|
|
237
|
-
blue: "bg-sky-400 dark:bg-sky-800",
|
|
238
|
-
yellow: "bg-yellow-400 dark:bg-yellow-800",
|
|
239
|
-
red: "bg-red-400 dark:bg-red-800",
|
|
240
|
-
purple: "bg-purple-400 dark:bg-purple-600",
|
|
241
|
-
indigo: "bg-indigo-400 dark:bg-indigo-600",
|
|
242
|
-
gray: "bg-gray-400 dark:bg-gray-600"
|
|
243
|
-
}, xe = ({
|
|
244
|
-
color: e,
|
|
245
|
-
label: t,
|
|
246
|
-
className: o
|
|
247
|
-
}) => /* @__PURE__ */ I.jsx(
|
|
248
|
-
"span",
|
|
249
|
-
{
|
|
250
|
-
className: ee(
|
|
251
|
-
"mt-0.5 flex items-center duration-200 transition-opacity text-center uppercase font-mono text-[0.65rem] font-bold rounded text-background dark:text-zinc-50 h-4 px-1",
|
|
252
|
-
ge[e],
|
|
253
|
-
o
|
|
254
|
-
),
|
|
255
|
-
children: t
|
|
256
|
-
}
|
|
257
|
-
);
|
|
258
|
-
export {
|
|
259
|
-
Ae as I,
|
|
260
|
-
ne as P,
|
|
261
|
-
Ee as R,
|
|
262
|
-
xe as S,
|
|
263
|
-
Te as T,
|
|
264
|
-
Ne as c
|
|
265
|
-
};
|
|
266
|
-
//# sourceMappingURL=SidebarBadge-YJxJ4aaV.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SidebarBadge-YJxJ4aaV.js","sources":["../../../node_modules/.pnpm/@radix-ui+react-presence@1.1.0_@types+react-dom@18.3.0_@types+react@18.3.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@radix-ui/react-presence/dist/index.mjs","../../../node_modules/.pnpm/@radix-ui+react-roving-focus@1.1.0_@types+react-dom@18.3.0_@types+react@18.3.3_react-dom@18.3_c7p7fyahj7jvpuxrqgc7mv7csa/node_modules/@radix-ui/react-roving-focus/dist/index.mjs","../src/lib/components/navigation/SidebarBadge.tsx"],"sourcesContent":["\"use client\";\n\n// packages/react/presence/src/Presence.tsx\nimport * as React2 from \"react\";\nimport * as ReactDOM from \"react-dom\";\nimport { useComposedRefs } from \"@radix-ui/react-compose-refs\";\nimport { useLayoutEffect } from \"@radix-ui/react-use-layout-effect\";\n\n// packages/react/presence/src/useStateMachine.tsx\nimport * as React from \"react\";\nfunction useStateMachine(initialState, machine) {\n return React.useReducer((state, event) => {\n const nextState = machine[state][event];\n return nextState ?? state;\n }, initialState);\n}\n\n// packages/react/presence/src/Presence.tsx\nvar Presence = (props) => {\n const { present, children } = props;\n const presence = usePresence(present);\n const child = typeof children === \"function\" ? children({ present: presence.isPresent }) : React2.Children.only(children);\n const ref = useComposedRefs(presence.ref, getElementRef(child));\n const forceMount = typeof children === \"function\";\n return forceMount || presence.isPresent ? React2.cloneElement(child, { ref }) : null;\n};\nPresence.displayName = \"Presence\";\nfunction usePresence(present) {\n const [node, setNode] = React2.useState();\n const stylesRef = React2.useRef({});\n const prevPresentRef = React2.useRef(present);\n const prevAnimationNameRef = React2.useRef(\"none\");\n const initialState = present ? \"mounted\" : \"unmounted\";\n const [state, send] = useStateMachine(initialState, {\n mounted: {\n UNMOUNT: \"unmounted\",\n ANIMATION_OUT: \"unmountSuspended\"\n },\n unmountSuspended: {\n MOUNT: \"mounted\",\n ANIMATION_END: \"unmounted\"\n },\n unmounted: {\n MOUNT: \"mounted\"\n }\n });\n React2.useEffect(() => {\n const currentAnimationName = getAnimationName(stylesRef.current);\n prevAnimationNameRef.current = state === \"mounted\" ? currentAnimationName : \"none\";\n }, [state]);\n useLayoutEffect(() => {\n const styles = stylesRef.current;\n const wasPresent = prevPresentRef.current;\n const hasPresentChanged = wasPresent !== present;\n if (hasPresentChanged) {\n const prevAnimationName = prevAnimationNameRef.current;\n const currentAnimationName = getAnimationName(styles);\n if (present) {\n send(\"MOUNT\");\n } else if (currentAnimationName === \"none\" || styles?.display === \"none\") {\n send(\"UNMOUNT\");\n } else {\n const isAnimating = prevAnimationName !== currentAnimationName;\n if (wasPresent && isAnimating) {\n send(\"ANIMATION_OUT\");\n } else {\n send(\"UNMOUNT\");\n }\n }\n prevPresentRef.current = present;\n }\n }, [present, send]);\n useLayoutEffect(() => {\n if (node) {\n const handleAnimationEnd = (event) => {\n const currentAnimationName = getAnimationName(stylesRef.current);\n const isCurrentAnimation = currentAnimationName.includes(event.animationName);\n if (event.target === node && isCurrentAnimation) {\n ReactDOM.flushSync(() => send(\"ANIMATION_END\"));\n }\n };\n const handleAnimationStart = (event) => {\n if (event.target === node) {\n prevAnimationNameRef.current = getAnimationName(stylesRef.current);\n }\n };\n node.addEventListener(\"animationstart\", handleAnimationStart);\n node.addEventListener(\"animationcancel\", handleAnimationEnd);\n node.addEventListener(\"animationend\", handleAnimationEnd);\n return () => {\n node.removeEventListener(\"animationstart\", handleAnimationStart);\n node.removeEventListener(\"animationcancel\", handleAnimationEnd);\n node.removeEventListener(\"animationend\", handleAnimationEnd);\n };\n } else {\n send(\"ANIMATION_END\");\n }\n }, [node, send]);\n return {\n isPresent: [\"mounted\", \"unmountSuspended\"].includes(state),\n ref: React2.useCallback((node2) => {\n if (node2) stylesRef.current = getComputedStyle(node2);\n setNode(node2);\n }, [])\n };\n}\nfunction getAnimationName(styles) {\n return styles?.animationName || \"none\";\n}\nfunction getElementRef(element) {\n let getter = Object.getOwnPropertyDescriptor(element.props, \"ref\")?.get;\n let mayWarn = getter && \"isReactWarning\" in getter && getter.isReactWarning;\n if (mayWarn) {\n return element.ref;\n }\n getter = Object.getOwnPropertyDescriptor(element, \"ref\")?.get;\n mayWarn = getter && \"isReactWarning\" in getter && getter.isReactWarning;\n if (mayWarn) {\n return element.props.ref;\n }\n return element.props.ref || element.ref;\n}\nexport {\n Presence\n};\n//# sourceMappingURL=index.mjs.map\n","\"use client\";\n\n// packages/react/roving-focus/src/RovingFocusGroup.tsx\nimport * as React from \"react\";\nimport { composeEventHandlers } from \"@radix-ui/primitive\";\nimport { createCollection } from \"@radix-ui/react-collection\";\nimport { useComposedRefs } from \"@radix-ui/react-compose-refs\";\nimport { createContextScope } from \"@radix-ui/react-context\";\nimport { useId } from \"@radix-ui/react-id\";\nimport { Primitive } from \"@radix-ui/react-primitive\";\nimport { useCallbackRef } from \"@radix-ui/react-use-callback-ref\";\nimport { useControllableState } from \"@radix-ui/react-use-controllable-state\";\nimport { useDirection } from \"@radix-ui/react-direction\";\nimport { jsx } from \"react/jsx-runtime\";\nvar ENTRY_FOCUS = \"rovingFocusGroup.onEntryFocus\";\nvar EVENT_OPTIONS = { bubbles: false, cancelable: true };\nvar GROUP_NAME = \"RovingFocusGroup\";\nvar [Collection, useCollection, createCollectionScope] = createCollection(GROUP_NAME);\nvar [createRovingFocusGroupContext, createRovingFocusGroupScope] = createContextScope(\n GROUP_NAME,\n [createCollectionScope]\n);\nvar [RovingFocusProvider, useRovingFocusContext] = createRovingFocusGroupContext(GROUP_NAME);\nvar RovingFocusGroup = React.forwardRef(\n (props, forwardedRef) => {\n return /* @__PURE__ */ jsx(Collection.Provider, { scope: props.__scopeRovingFocusGroup, children: /* @__PURE__ */ jsx(Collection.Slot, { scope: props.__scopeRovingFocusGroup, children: /* @__PURE__ */ jsx(RovingFocusGroupImpl, { ...props, ref: forwardedRef }) }) });\n }\n);\nRovingFocusGroup.displayName = GROUP_NAME;\nvar RovingFocusGroupImpl = React.forwardRef((props, forwardedRef) => {\n const {\n __scopeRovingFocusGroup,\n orientation,\n loop = false,\n dir,\n currentTabStopId: currentTabStopIdProp,\n defaultCurrentTabStopId,\n onCurrentTabStopIdChange,\n onEntryFocus,\n preventScrollOnEntryFocus = false,\n ...groupProps\n } = props;\n const ref = React.useRef(null);\n const composedRefs = useComposedRefs(forwardedRef, ref);\n const direction = useDirection(dir);\n const [currentTabStopId = null, setCurrentTabStopId] = useControllableState({\n prop: currentTabStopIdProp,\n defaultProp: defaultCurrentTabStopId,\n onChange: onCurrentTabStopIdChange\n });\n const [isTabbingBackOut, setIsTabbingBackOut] = React.useState(false);\n const handleEntryFocus = useCallbackRef(onEntryFocus);\n const getItems = useCollection(__scopeRovingFocusGroup);\n const isClickFocusRef = React.useRef(false);\n const [focusableItemsCount, setFocusableItemsCount] = React.useState(0);\n React.useEffect(() => {\n const node = ref.current;\n if (node) {\n node.addEventListener(ENTRY_FOCUS, handleEntryFocus);\n return () => node.removeEventListener(ENTRY_FOCUS, handleEntryFocus);\n }\n }, [handleEntryFocus]);\n return /* @__PURE__ */ jsx(\n RovingFocusProvider,\n {\n scope: __scopeRovingFocusGroup,\n orientation,\n dir: direction,\n loop,\n currentTabStopId,\n onItemFocus: React.useCallback(\n (tabStopId) => setCurrentTabStopId(tabStopId),\n [setCurrentTabStopId]\n ),\n onItemShiftTab: React.useCallback(() => setIsTabbingBackOut(true), []),\n onFocusableItemAdd: React.useCallback(\n () => setFocusableItemsCount((prevCount) => prevCount + 1),\n []\n ),\n onFocusableItemRemove: React.useCallback(\n () => setFocusableItemsCount((prevCount) => prevCount - 1),\n []\n ),\n children: /* @__PURE__ */ jsx(\n Primitive.div,\n {\n tabIndex: isTabbingBackOut || focusableItemsCount === 0 ? -1 : 0,\n \"data-orientation\": orientation,\n ...groupProps,\n ref: composedRefs,\n style: { outline: \"none\", ...props.style },\n onMouseDown: composeEventHandlers(props.onMouseDown, () => {\n isClickFocusRef.current = true;\n }),\n onFocus: composeEventHandlers(props.onFocus, (event) => {\n const isKeyboardFocus = !isClickFocusRef.current;\n if (event.target === event.currentTarget && isKeyboardFocus && !isTabbingBackOut) {\n const entryFocusEvent = new CustomEvent(ENTRY_FOCUS, EVENT_OPTIONS);\n event.currentTarget.dispatchEvent(entryFocusEvent);\n if (!entryFocusEvent.defaultPrevented) {\n const items = getItems().filter((item) => item.focusable);\n const activeItem = items.find((item) => item.active);\n const currentItem = items.find((item) => item.id === currentTabStopId);\n const candidateItems = [activeItem, currentItem, ...items].filter(\n Boolean\n );\n const candidateNodes = candidateItems.map((item) => item.ref.current);\n focusFirst(candidateNodes, preventScrollOnEntryFocus);\n }\n }\n isClickFocusRef.current = false;\n }),\n onBlur: composeEventHandlers(props.onBlur, () => setIsTabbingBackOut(false))\n }\n )\n }\n );\n});\nvar ITEM_NAME = \"RovingFocusGroupItem\";\nvar RovingFocusGroupItem = React.forwardRef(\n (props, forwardedRef) => {\n const {\n __scopeRovingFocusGroup,\n focusable = true,\n active = false,\n tabStopId,\n ...itemProps\n } = props;\n const autoId = useId();\n const id = tabStopId || autoId;\n const context = useRovingFocusContext(ITEM_NAME, __scopeRovingFocusGroup);\n const isCurrentTabStop = context.currentTabStopId === id;\n const getItems = useCollection(__scopeRovingFocusGroup);\n const { onFocusableItemAdd, onFocusableItemRemove } = context;\n React.useEffect(() => {\n if (focusable) {\n onFocusableItemAdd();\n return () => onFocusableItemRemove();\n }\n }, [focusable, onFocusableItemAdd, onFocusableItemRemove]);\n return /* @__PURE__ */ jsx(\n Collection.ItemSlot,\n {\n scope: __scopeRovingFocusGroup,\n id,\n focusable,\n active,\n children: /* @__PURE__ */ jsx(\n Primitive.span,\n {\n tabIndex: isCurrentTabStop ? 0 : -1,\n \"data-orientation\": context.orientation,\n ...itemProps,\n ref: forwardedRef,\n onMouseDown: composeEventHandlers(props.onMouseDown, (event) => {\n if (!focusable) event.preventDefault();\n else context.onItemFocus(id);\n }),\n onFocus: composeEventHandlers(props.onFocus, () => context.onItemFocus(id)),\n onKeyDown: composeEventHandlers(props.onKeyDown, (event) => {\n if (event.key === \"Tab\" && event.shiftKey) {\n context.onItemShiftTab();\n return;\n }\n if (event.target !== event.currentTarget) return;\n const focusIntent = getFocusIntent(event, context.orientation, context.dir);\n if (focusIntent !== void 0) {\n if (event.metaKey || event.ctrlKey || event.altKey || event.shiftKey) return;\n event.preventDefault();\n const items = getItems().filter((item) => item.focusable);\n let candidateNodes = items.map((item) => item.ref.current);\n if (focusIntent === \"last\") candidateNodes.reverse();\n else if (focusIntent === \"prev\" || focusIntent === \"next\") {\n if (focusIntent === \"prev\") candidateNodes.reverse();\n const currentIndex = candidateNodes.indexOf(event.currentTarget);\n candidateNodes = context.loop ? wrapArray(candidateNodes, currentIndex + 1) : candidateNodes.slice(currentIndex + 1);\n }\n setTimeout(() => focusFirst(candidateNodes));\n }\n })\n }\n )\n }\n );\n }\n);\nRovingFocusGroupItem.displayName = ITEM_NAME;\nvar MAP_KEY_TO_FOCUS_INTENT = {\n ArrowLeft: \"prev\",\n ArrowUp: \"prev\",\n ArrowRight: \"next\",\n ArrowDown: \"next\",\n PageUp: \"first\",\n Home: \"first\",\n PageDown: \"last\",\n End: \"last\"\n};\nfunction getDirectionAwareKey(key, dir) {\n if (dir !== \"rtl\") return key;\n return key === \"ArrowLeft\" ? \"ArrowRight\" : key === \"ArrowRight\" ? \"ArrowLeft\" : key;\n}\nfunction getFocusIntent(event, orientation, dir) {\n const key = getDirectionAwareKey(event.key, dir);\n if (orientation === \"vertical\" && [\"ArrowLeft\", \"ArrowRight\"].includes(key)) return void 0;\n if (orientation === \"horizontal\" && [\"ArrowUp\", \"ArrowDown\"].includes(key)) return void 0;\n return MAP_KEY_TO_FOCUS_INTENT[key];\n}\nfunction focusFirst(candidates, preventScroll = false) {\n const PREVIOUSLY_FOCUSED_ELEMENT = document.activeElement;\n for (const candidate of candidates) {\n if (candidate === PREVIOUSLY_FOCUSED_ELEMENT) return;\n candidate.focus({ preventScroll });\n if (document.activeElement !== PREVIOUSLY_FOCUSED_ELEMENT) return;\n }\n}\nfunction wrapArray(array, startIndex) {\n return array.map((_, index) => array[(startIndex + index) % array.length]);\n}\nvar Root = RovingFocusGroup;\nvar Item = RovingFocusGroupItem;\nexport {\n Item,\n Root,\n RovingFocusGroup,\n RovingFocusGroupItem,\n createRovingFocusGroupScope\n};\n//# sourceMappingURL=index.mjs.map\n","import { cn } from \"../../util/cn.js\";\n\nexport const TextColorMap = {\n green: \"text-green-600\",\n blue: \"text-sky-600\",\n yellow: \"text-yellow-600\",\n red: \"text-red-600\",\n purple: \"text-purple-600\",\n indigo: \"text-indigo-600\",\n gray: \"text-gray-600\",\n};\n\nexport const ColorMap = {\n green: \"bg-green-400 dark:bg-green-800\",\n blue: \"bg-sky-400 dark:bg-sky-800\",\n yellow: \"bg-yellow-400 dark:bg-yellow-800\",\n red: \"bg-red-400 dark:bg-red-800\",\n purple: \"bg-purple-400 dark:bg-purple-600\",\n indigo: \"bg-indigo-400 dark:bg-indigo-600\",\n gray: \"bg-gray-400 dark:bg-gray-600\",\n};\n\nexport const SidebarBadge = ({\n color,\n label,\n className,\n}: {\n color: keyof typeof ColorMap;\n label: string;\n className?: string;\n}) => {\n return (\n <span\n className={cn(\n \"mt-0.5 flex items-center duration-200 transition-opacity text-center uppercase font-mono text-[0.65rem] font-bold rounded text-background dark:text-zinc-50 h-4 px-1\",\n ColorMap[color],\n className,\n )}\n >\n {label}\n </span>\n );\n};\n"],"names":["useStateMachine","initialState","machine","React","state","event","Presence","props","present","children","presence","usePresence","child","React2","ref","useComposedRefs","getElementRef","node","setNode","stylesRef","prevPresentRef","prevAnimationNameRef","send","currentAnimationName","getAnimationName","useLayoutEffect","styles","wasPresent","prevAnimationName","handleAnimationEnd","isCurrentAnimation","ReactDOM","handleAnimationStart","node2","element","getter","_a","mayWarn","_b","ENTRY_FOCUS","EVENT_OPTIONS","GROUP_NAME","Collection","useCollection","createCollectionScope","createCollection","createRovingFocusGroupContext","createRovingFocusGroupScope","createContextScope","RovingFocusProvider","useRovingFocusContext","RovingFocusGroup","forwardedRef","jsx","RovingFocusGroupImpl","__scopeRovingFocusGroup","orientation","loop","dir","currentTabStopIdProp","defaultCurrentTabStopId","onCurrentTabStopIdChange","onEntryFocus","preventScrollOnEntryFocus","groupProps","composedRefs","direction","useDirection","currentTabStopId","setCurrentTabStopId","useControllableState","isTabbingBackOut","setIsTabbingBackOut","handleEntryFocus","useCallbackRef","getItems","isClickFocusRef","focusableItemsCount","setFocusableItemsCount","tabStopId","prevCount","Primitive","composeEventHandlers","isKeyboardFocus","entryFocusEvent","items","item","activeItem","currentItem","candidateNodes","focusFirst","ITEM_NAME","RovingFocusGroupItem","focusable","active","itemProps","autoId","useId","id","context","isCurrentTabStop","onFocusableItemAdd","onFocusableItemRemove","focusIntent","getFocusIntent","currentIndex","wrapArray","MAP_KEY_TO_FOCUS_INTENT","getDirectionAwareKey","key","candidates","preventScroll","PREVIOUSLY_FOCUSED_ELEMENT","candidate","array","startIndex","_","index","Root","Item","TextColorMap","ColorMap","SidebarBadge","color","label","className","cn"],"mappings":";;;;;AAUA,SAASA,GAAgBC,GAAcC,GAAS;AAC9C,SAAOC,EAAM,WAAW,CAACC,GAAOC,MACZH,EAAQE,CAAK,EAAEC,CAAK,KAClBD,GACnBH,CAAY;AACjB;AAGG,IAACK,KAAW,CAACC,MAAU;AACxB,QAAM,EAAE,SAAAC,GAAS,UAAAC,EAAU,IAAGF,GACxBG,IAAWC,GAAYH,CAAO,GAC9BI,IAAQ,OAAOH,KAAa,aAAaA,EAAS,EAAE,SAASC,EAAS,UAAS,CAAE,IAAIG,EAAO,SAAS,KAAKJ,CAAQ,GAClHK,IAAMC,EAAgBL,EAAS,KAAKM,GAAcJ,CAAK,CAAC;AAE9D,SADmB,OAAOH,KAAa,cAClBC,EAAS,YAAYG,EAAO,aAAaD,GAAO,EAAE,KAAAE,GAAK,IAAI;AAClF;AACAR,GAAS,cAAc;AACvB,SAASK,GAAYH,GAAS;AAC5B,QAAM,CAACS,GAAMC,CAAO,IAAIL,EAAO,SAAQ,GACjCM,IAAYN,EAAO,OAAO,CAAE,CAAA,GAC5BO,IAAiBP,EAAO,OAAOL,CAAO,GACtCa,IAAuBR,EAAO,OAAO,MAAM,GAC3CZ,IAAeO,IAAU,YAAY,aACrC,CAACJ,GAAOkB,CAAI,IAAItB,GAAgBC,GAAc;AAAA,IAClD,SAAS;AAAA,MACP,SAAS;AAAA,MACT,eAAe;AAAA,IAChB;AAAA,IACD,kBAAkB;AAAA,MAChB,OAAO;AAAA,MACP,eAAe;AAAA,IAChB;AAAA,IACD,WAAW;AAAA,MACT,OAAO;AAAA,IACR;AAAA,EACL,CAAG;AACDY,SAAAA,EAAO,UAAU,MAAM;AACrB,UAAMU,IAAuBC,EAAiBL,EAAU,OAAO;AAC/D,IAAAE,EAAqB,UAAUjB,MAAU,YAAYmB,IAAuB;AAAA,EAChF,GAAK,CAACnB,C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