@noxickon/onyx 1.0.4 → 1.1.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.
@@ -1,688 +1,765 @@
1
- import { _ as s, $ as r, e as f, a1 as j, i as h, l as y, a2 as D, c as $, u as G, t as P } from "../chunks/ui-CWzo2o31.js";
2
- import { createContext as w, useState as v, useMemo as R, useEffect as k, useContext as N, useCallback as S } from "react";
3
- const Ne = ({
4
- brand: e,
5
- children: a,
6
- className: t,
7
- hasSidebar: o = !1,
8
- navClassName: n,
9
- toggleSidebar: i,
10
- ...l
11
- }) => /* @__PURE__ */ s.jsx(
12
- "header",
13
- {
14
- className: r("max-h-15 min-h-15 sticky top-0 z-10 bg-gray-100", t),
15
- "data-ox-slot": "header",
16
- ...l,
17
- children: /* @__PURE__ */ s.jsxs(
18
- "nav",
19
- {
20
- className: r(
21
- "max-w-10xl mx-auto flex items-center justify-between px-4 py-2.5",
22
- n
23
- ),
24
- children: [
25
- /* @__PURE__ */ s.jsxs("div", { className: "flex items-center gap-[17px]", children: [
26
- o ? /* @__PURE__ */ s.jsx(
27
- f,
28
- {
29
- "aria-label": "Open menu",
30
- "data-ox-slot": "header-toggle",
31
- size: "md",
32
- variant: "ghost",
33
- onClick: i,
34
- children: /* @__PURE__ */ s.jsx(f.Icon, { path: "mdiMenu" })
35
- }
36
- ) : null,
37
- e ? /* @__PURE__ */ s.jsx("div", { children: e }) : null
38
- ] }),
39
- a
40
- ]
41
- }
42
- )
43
- }
44
- ), I = "group ox-gray-inset-focus items-center rounded-lg text-sm transition-colors text-left col-span-2 grid grid-cols-subgrid", E = "size-10 justify-center", _ = "h-10 w-full px-2", L = "bg-gray-300 text-gray-1200", W = "h-15", B = w(void 0), Y = ({
45
- children: e,
46
- className: a,
47
- desktopCollapsed: t = !1,
48
- hasHeader: o = !1,
49
- mobileCollapsed: n = !0,
50
- onClose: i,
51
- ...l
52
- }) => {
53
- const [d, x] = v(window.innerWidth < j), b = d ? n : t, O = R(
54
- () => ({ collapsed: b, isMobile: d }),
55
- [b, d]
56
- );
57
- return k(() => {
58
- const c = () => {
59
- x(window.innerWidth < j);
1
+ import { a0 as p, e as M, a2 as B, i as I, m as L, a3 as Q, c as U, w as X, v as Z } from "../chunks/ui-DGkJW_Fa.js";
2
+ import { jsx as b, jsxs as C } from "react/jsx-runtime";
3
+ import { d as g } from "../chunks/hooks-CUNBk2tZ.js";
4
+ import { createContext as z, useState as E, useEffect as j, useContext as T } from "react";
5
+ const Ye = (n) => {
6
+ const e = g.c(28);
7
+ let t, l, s, o, a, i, r;
8
+ e[0] !== n ? ({
9
+ brand: t,
10
+ children: l,
11
+ className: s,
12
+ hasSidebar: i,
13
+ navClassName: a,
14
+ toggleSidebar: r,
15
+ ...o
16
+ } = n, e[0] = n, e[1] = t, e[2] = l, e[3] = s, e[4] = o, e[5] = a, e[6] = i, e[7] = r) : (t = e[1], l = e[2], s = e[3], o = e[4], a = e[5], i = e[6], r = e[7]);
17
+ const c = i === void 0 ? !1 : i;
18
+ let d;
19
+ e[8] !== s ? (d = p("sticky top-0 z-10 max-h-15 min-h-15 bg-gray-100", s), e[8] = s, e[9] = d) : d = e[9];
20
+ let f;
21
+ e[10] !== a ? (f = p("mx-auto flex max-w-10xl items-center justify-between px-4 py-2.5", a), e[10] = a, e[11] = f) : f = e[11];
22
+ let u;
23
+ e[12] !== c || e[13] !== r ? (u = c ? /* @__PURE__ */ b(M, { "aria-label": "Open menu", "data-ox-slot": "header-toggle", size: "md", variant: "ghost", onClick: r, children: /* @__PURE__ */ b(M.Icon, { path: "mdiMenu" }) }) : null, e[12] = c, e[13] = r, e[14] = u) : u = e[14];
24
+ let m;
25
+ e[15] !== t ? (m = t ? /* @__PURE__ */ b("div", { children: t }) : null, e[15] = t, e[16] = m) : m = e[16];
26
+ let x;
27
+ e[17] !== u || e[18] !== m ? (x = /* @__PURE__ */ C("div", { className: "flex items-center gap-[17px]", children: [
28
+ u,
29
+ m
30
+ ] }), e[17] = u, e[18] = m, e[19] = x) : x = e[19];
31
+ let h;
32
+ e[20] !== l || e[21] !== f || e[22] !== x ? (h = /* @__PURE__ */ C("nav", { className: f, children: [
33
+ x,
34
+ l
35
+ ] }), e[20] = l, e[21] = f, e[22] = x, e[23] = h) : h = e[23];
36
+ let v;
37
+ return e[24] !== o || e[25] !== d || e[26] !== h ? (v = /* @__PURE__ */ b("header", { className: d, "data-ox-slot": "header", ...o, children: h }), e[24] = o, e[25] = d, e[26] = h, e[27] = v) : v = e[27], v;
38
+ }, G = "group ox-gray-inset-focus items-center rounded-lg text-sm transition-colors text-left col-span-2 grid grid-cols-subgrid", R = "size-10 justify-center", W = "h-10 w-full px-2", Y = "bg-gray-300 text-gray-1200", ee = "h-15", F = z(void 0), te = (n) => {
39
+ const e = g.c(24);
40
+ let t, l, s, o, a, i, r;
41
+ e[0] !== n ? ({
42
+ children: t,
43
+ className: l,
44
+ desktopCollapsed: a,
45
+ hasHeader: i,
46
+ mobileCollapsed: r,
47
+ onClose: o,
48
+ ...s
49
+ } = n, e[0] = n, e[1] = t, e[2] = l, e[3] = s, e[4] = o, e[5] = a, e[6] = i, e[7] = r) : (t = e[1], l = e[2], s = e[3], o = e[4], a = e[5], i = e[6], r = e[7]);
50
+ const c = a === void 0 ? !1 : a, d = i === void 0 ? !1 : i, f = r === void 0 ? !0 : r, [u, m] = E(window.innerWidth < B), x = u ? f : c;
51
+ let h;
52
+ e[8] !== x || e[9] !== u ? (h = {
53
+ collapsed: x,
54
+ isMobile: u
55
+ }, e[8] = x, e[9] = u, e[10] = h) : h = e[10];
56
+ const v = h;
57
+ let S, y;
58
+ e[11] === Symbol.for("react.memo_cache_sentinel") ? (S = () => {
59
+ const $ = () => {
60
+ m(window.innerWidth < B);
60
61
  };
61
- return c(), window.addEventListener("resize", c), () => {
62
- window.removeEventListener("resize", c);
62
+ return $(), window.addEventListener("resize", $), () => {
63
+ window.removeEventListener("resize", $);
63
64
  };
64
- }, []), /* @__PURE__ */ s.jsx(B.Provider, { value: O, children: d ? /* @__PURE__ */ s.jsx(h, { open: !b, onOpenChange: (c) => !c && i?.(), children: /* @__PURE__ */ s.jsx(h.Content, { closeOnOutsideClick: !!i, side: "left", ...l, children: /* @__PURE__ */ s.jsxs(
65
- "nav",
66
- {
67
- "aria-label": "Mobile navigation",
68
- className: r("flex h-screen w-full flex-col bg-gray-100", a),
69
- "data-ox-slot": "sidebar",
70
- role: "navigation",
71
- ...l,
72
- children: [
73
- i ? /* @__PURE__ */ s.jsx("div", { className: r("h-15 flex items-center gap-[17px] px-4", W), children: /* @__PURE__ */ s.jsx(f, { "aria-label": "Close sidebar", size: "md", variant: "ghost", onClick: i, children: /* @__PURE__ */ s.jsx(f.Icon, { path: "mdiClose" }) }) }) : null,
74
- e
75
- ]
76
- }
77
- ) }) }) : /* @__PURE__ */ s.jsx(
78
- "nav",
79
- {
80
- "aria-label": "Desktop navigation",
81
- className: r(
82
- "sticky box-content flex flex-col overflow-y-auto bg-gray-100",
83
- {
84
- "top-0 h-screen": !o,
85
- "viewport-minus-header top-15": o,
86
- 'max-w-18 min-w-18 [&_[data-ox-slot="sidebar-label"]]:hidden': b,
87
- "min-w-64 max-w-64": !b
88
- },
89
- a
90
- ),
91
- "data-ox-slot": "sidebar",
92
- role: "navigation",
93
- ...l,
94
- children: e
95
- }
96
- ) });
97
- }, g = () => {
98
- const e = N(B);
99
- if (!e)
65
+ }, y = [], e[11] = S, e[12] = y) : (S = e[11], y = e[12]), j(S, y);
66
+ let N;
67
+ e[13] !== t || e[14] !== l || e[15] !== s || e[16] !== x || e[17] !== d || e[18] !== u || e[19] !== o ? (N = u ? /* @__PURE__ */ b(I, { open: !x, onOpenChange: ($) => !$ && o?.(), children: /* @__PURE__ */ b(I.Content, { closeOnOutsideClick: o !== void 0, side: "left", children: /* @__PURE__ */ C("nav", { "aria-label": "Mobile navigation", className: p("flex h-screen w-full flex-col bg-gray-100", l), "data-ox-slot": "sidebar", role: "navigation", ...s, children: [
68
+ o ? /* @__PURE__ */ b("div", { className: p("flex h-15 items-center gap-[17px] px-4", ee), children: /* @__PURE__ */ b(M, { "aria-label": "Close sidebar", size: "md", variant: "ghost", onClick: o, children: /* @__PURE__ */ b(M.Icon, { path: "mdiClose" }) }) }) : null,
69
+ t
70
+ ] }) }) }) : /* @__PURE__ */ b("nav", { "aria-label": "Desktop navigation", className: p("sticky box-content flex flex-col overflow-y-auto bg-gray-100", {
71
+ "top-0 h-screen": !d,
72
+ "viewport-minus-header top-15": d,
73
+ 'max-w-18 min-w-18 [&_[data-ox-slot="sidebar-label"]]:hidden': x,
74
+ "max-w-64 min-w-64": !x
75
+ }, l), "data-ox-slot": "sidebar", role: "navigation", ...s, children: t }), e[13] = t, e[14] = l, e[15] = s, e[16] = x, e[17] = d, e[18] = u, e[19] = o, e[20] = N) : N = e[20];
76
+ let P;
77
+ return e[21] !== v || e[22] !== N ? (P = /* @__PURE__ */ b(F.Provider, { value: v, children: N }), e[21] = v, e[22] = N, e[23] = P) : P = e[23], P;
78
+ }, k = () => {
79
+ const n = T(F);
80
+ if (!n)
100
81
  throw new Error("useSidebar must be used within a SidebarProvider");
101
- return e;
102
- }, F = ({ children: e, className: a, ...t }) => {
103
- const { collapsed: o, isMobile: n } = g();
104
- return /* @__PURE__ */ s.jsx(
105
- "div",
106
- {
107
- className: r(
108
- "grid flex-1 content-start gap-y-1 overflow-y-auto p-4",
109
- {
110
- "grid-cols-1 place-items-center": o && !n,
111
- "grid-cols-[auto_1fr]": !o || n
112
- },
113
- '[&_[data-ox-slot="sidebar-link"]]:col-span-2 [&_[data-ox-slot="sidebar-link"]]:grid [&_[data-ox-slot="sidebar-link"]]:grid-cols-subgrid',
114
- '[&_[data-ox-slot="sidebar-button"]]:col-span-2 [&_[data-ox-slot="sidebar-button"]]:grid [&_[data-ox-slot="sidebar-button"]]:grid-cols-subgrid',
115
- '[&_[data-ox-slot="sidebar-icon"]]:justify-self-center [&_[data-ox-slot="sidebar-icon"]]:[grid-column-start:var(--ox-menu-icon-col)]',
116
- '[&_[data-ox-slot="sidebar-label"]]:[grid-column-start:var(--ox-menu-label-col)]',
117
- a
118
- ),
119
- "data-ox-slot": "sidebar-body",
120
- ...t,
121
- children: e
122
- }
123
- );
124
- }, V = ({
125
- active: e = !1,
126
- children: a,
127
- className: t,
128
- disabled: o = !1,
129
- ...n
130
- }) => {
131
- const { collapsed: i } = g();
132
- return /* @__PURE__ */ s.jsx(
133
- "button",
134
- {
135
- className: r(
136
- "enabled:text-gray-1000 enabled:hover:text-gray-1200 enabled:cursor-pointer enabled:hover:bg-gray-300",
137
- I,
138
- {
139
- [E]: i,
140
- [_]: !i,
141
- [L]: e && !o,
142
- "disabled:ox-default-disabled": o
143
- },
144
- t
145
- ),
146
- "data-ox-slot": "sidebar-button",
147
- disabled: o,
148
- type: "button",
149
- ...n,
150
- "data-ox-state": e ? "active" : "inactive",
151
- children: a
152
- }
153
- );
154
- }, K = ({ children: e, className: a, ...t }) => /* @__PURE__ */ s.jsx("div", { className: r("p-4", a), "data-ox-slot": "sidebar-footer", ...t, children: e }), q = ({
155
- children: e,
156
- className: a,
157
- headline: t,
158
- ...o
159
- }) => {
160
- const { collapsed: n, isMobile: i } = g();
161
- return /* @__PURE__ */ s.jsxs("div", { className: r("contents", a), "data-ox-slot": "sidebar-group", ...o, children: [
162
- /* @__PURE__ */ s.jsx(
163
- "h3",
164
- {
165
- className: r("text-gray-1000 col-span-full mb-2 mt-4 block cursor-default text-xs", {
166
- invisible: n && !i
167
- }),
168
- children: t
169
- }
170
- ),
171
- e
172
- ] });
173
- }, J = ({ children: e, className: a, ...t }) => /* @__PURE__ */ s.jsx(
174
- "div",
175
- {
176
- className: r("h-15 flex items-center px-4", a),
177
- "data-ox-slot": "sidebar-header",
178
- ...t,
179
- children: e
180
- }
181
- ), Q = ({ className: e, size: a = 0.8, ...t }) => {
182
- const { collapsed: o } = g();
183
- return /* @__PURE__ */ s.jsx(
184
- y,
185
- {
186
- className: r("shrink-0 text-current", { "mr-2": !o }, e),
187
- "data-ox-slot": "sidebar-icon",
188
- size: a,
189
- ...t
190
- }
191
- );
192
- }, U = ({ children: e, className: a, ...t }) => /* @__PURE__ */ s.jsx(
193
- "span",
194
- {
195
- className: r("overflow-hidden text-ellipsis", a),
196
- "data-ox-slot": "sidebar-label",
197
- ...t,
198
- children: e
199
- }
200
- ), X = ({
201
- active: e = !1,
202
- children: a,
203
- className: t,
204
- disabled: o = !1,
205
- href: n,
206
- ...i
207
- }) => {
208
- const { collapsed: l } = g();
209
- return /* @__PURE__ */ s.jsx(
210
- "a",
211
- {
212
- "aria-current": e ? "page" : void 0,
213
- className: r(
214
- I,
215
- {
216
- [E]: l,
217
- [_]: !l,
218
- [L]: e && !o,
219
- "text-gray-1000 hover:text-gray-1200 cursor-pointer hover:bg-gray-300": !e && !o,
220
- "ox-default-disabled": o
221
- },
222
- t
223
- ),
224
- "data-ox-slot": "sidebar-link",
225
- href: o ? void 0 : n,
226
- role: "link",
227
- onClick: o ? (d) => d.preventDefault() : void 0,
228
- ...i,
229
- "data-ox-state": e ? "active" : "inactive",
230
- children: a
231
- }
232
- );
233
- }, m = Y;
234
- m.Body = F;
235
- m.Button = V;
236
- m.Footer = K;
237
- m.Group = q;
238
- m.Header = J;
239
- m.Icon = Q;
240
- m.Label = U;
241
- m.Link = X;
242
- const Me = ({
243
- children: e,
244
- className: a,
245
- color: t = "purple",
246
- icon: o,
247
- subtitle: n,
248
- title: i,
249
- ...l
250
- }) => {
251
- const d = i || n || o, x = D[t];
252
- return /* @__PURE__ */ s.jsxs(
253
- "main",
254
- {
255
- "aria-labelledby": d ? "main-headline" : void 0,
256
- className: r("w-full p-6", a),
257
- "data-ox-slot": "main-content",
258
- ...l,
259
- children: [
260
- d ? /* @__PURE__ */ s.jsx("div", { className: "mb-8 border-b border-gray-400 pb-6", children: /* @__PURE__ */ s.jsxs("div", { className: "flex items-center gap-4", children: [
261
- o ? /* @__PURE__ */ s.jsx("div", { className: r("rounded-lg border p-3", x.border, x.background), children: /* @__PURE__ */ s.jsx(y, { className: x.text, path: o, size: 1.41 }) }) : null,
262
- /* @__PURE__ */ s.jsxs("div", { children: [
263
- i ? /* @__PURE__ */ s.jsx(
264
- "h2",
265
- {
266
- id: "main-headline",
267
- className: "text-gray-1200 text-xl font-semibold",
268
- "data-ox-slot": "main-headline",
269
- children: i
270
- }
271
- ) : null,
272
- n && /* @__PURE__ */ s.jsx("p", { className: "mt-1 text-sm", children: n })
273
- ] })
274
- ] }) }) : null,
275
- e
276
- ]
277
- }
278
- );
279
- }, Ce = ({ children: e, className: a, ...t }) => {
280
- const { isMobile: o } = M();
281
- return /* @__PURE__ */ s.jsx(
282
- "div",
283
- {
284
- className: r(
285
- "max-w-10xl mx-auto grid min-h-screen bg-transparent",
286
- o ? "grid-cols-1" : "grid-cols-[auto_1fr]",
287
- a
288
- ),
289
- "data-ox-slot": "app-layout",
290
- ...t,
291
- children: e
292
- }
293
- );
294
- }, Z = ({ children: e, className: a, ...t }) => /* @__PURE__ */ s.jsx(
295
- "main",
296
- {
297
- className: r("flex flex-col overflow-y-auto", a),
298
- "data-ox-slot": "main-content",
299
- ...t,
300
- children: e
301
- }
302
- ), ee = ({ children: e, className: a, ...t }) => /* @__PURE__ */ s.jsx(
303
- "div",
304
- {
305
- className: r("flex-1 overflow-y-auto px-6 py-6", a),
306
- "data-ox-slot": "main-content-body",
307
- ...t,
308
- children: e
309
- }
310
- ), te = ({
311
- children: e,
312
- className: a,
313
- ...t
314
- }) => /* @__PURE__ */ s.jsx(
315
- "div",
316
- {
317
- className: r("flex-shrink-0 border-b border-gray-400 bg-gray-100 px-6 py-4", a),
318
- "data-ox-slot": "main-content-header",
319
- ...t,
320
- children: e
321
- }
322
- ), ke = Object.assign(Z, {
323
- Header: te,
324
- Body: ee
325
- }), T = w(void 0);
326
- function M() {
327
- const e = N(T);
328
- if (!e)
82
+ return n;
83
+ }, le = (n) => {
84
+ const e = g.c(12);
85
+ let t, l, s;
86
+ e[0] !== n ? ({
87
+ children: t,
88
+ className: l,
89
+ ...s
90
+ } = n, e[0] = n, e[1] = t, e[2] = l, e[3] = s) : (t = e[1], l = e[2], s = e[3]);
91
+ const {
92
+ collapsed: o,
93
+ isMobile: a
94
+ } = k(), i = o && !a, r = !o || a;
95
+ let c;
96
+ e[4] !== l || e[5] !== i || e[6] !== r ? (c = p("grid flex-1 content-start gap-y-1 overflow-y-auto p-4", {
97
+ "grid-cols-1 place-items-center": i,
98
+ "grid-cols-[auto_1fr]": r
99
+ }, '[&_[data-ox-slot="sidebar-link"]]:col-span-2 [&_[data-ox-slot="sidebar-link"]]:grid [&_[data-ox-slot="sidebar-link"]]:grid-cols-subgrid', '[&_[data-ox-slot="sidebar-button"]]:col-span-2 [&_[data-ox-slot="sidebar-button"]]:grid [&_[data-ox-slot="sidebar-button"]]:grid-cols-subgrid', '[&_[data-ox-slot="sidebar-icon"]]:[grid-column-start:var(--ox-menu-icon-col)] [&_[data-ox-slot="sidebar-icon"]]:justify-self-center', '[&_[data-ox-slot="sidebar-label"]]:[grid-column-start:var(--ox-menu-label-col)]', l), e[4] = l, e[5] = i, e[6] = r, e[7] = c) : c = e[7];
100
+ let d;
101
+ return e[8] !== t || e[9] !== s || e[10] !== c ? (d = /* @__PURE__ */ b("div", { className: c, "data-ox-slot": "sidebar-body", ...s, children: t }), e[8] = t, e[9] = s, e[10] = c, e[11] = d) : d = e[11], d;
102
+ }, se = (n) => {
103
+ const e = g.c(18);
104
+ let t, l, s, o, a;
105
+ e[0] !== n ? ({
106
+ active: o,
107
+ children: t,
108
+ className: l,
109
+ disabled: a,
110
+ ...s
111
+ } = n, e[0] = n, e[1] = t, e[2] = l, e[3] = s, e[4] = o, e[5] = a) : (t = e[1], l = e[2], s = e[3], o = e[4], a = e[5]);
112
+ const i = o === void 0 ? !1 : o, r = a === void 0 ? !1 : a, {
113
+ collapsed: c
114
+ } = k(), d = !c, f = i && !r;
115
+ let u;
116
+ e[6] !== l || e[7] !== c || e[8] !== r || e[9] !== d || e[10] !== f ? (u = p("enabled:cursor-pointer enabled:text-gray-1000 enabled:hover:bg-gray-300 enabled:hover:text-gray-1200", G, {
117
+ [R]: c,
118
+ [W]: d,
119
+ [Y]: f,
120
+ "disabled:ox-default-disabled": r
121
+ }, l), e[6] = l, e[7] = c, e[8] = r, e[9] = d, e[10] = f, e[11] = u) : u = e[11];
122
+ const m = i ? "active" : "inactive";
123
+ let x;
124
+ return e[12] !== t || e[13] !== r || e[14] !== s || e[15] !== u || e[16] !== m ? (x = /* @__PURE__ */ b("button", { className: u, "data-ox-slot": "sidebar-button", disabled: r, type: "button", ...s, "data-ox-state": m, children: t }), e[12] = t, e[13] = r, e[14] = s, e[15] = u, e[16] = m, e[17] = x) : x = e[17], x;
125
+ }, oe = (n) => {
126
+ const e = g.c(10);
127
+ let t, l, s;
128
+ e[0] !== n ? ({
129
+ children: t,
130
+ className: l,
131
+ ...s
132
+ } = n, e[0] = n, e[1] = t, e[2] = l, e[3] = s) : (t = e[1], l = e[2], s = e[3]);
133
+ let o;
134
+ e[4] !== l ? (o = p("p-4", l), e[4] = l, e[5] = o) : o = e[5];
135
+ let a;
136
+ return e[6] !== t || e[7] !== s || e[8] !== o ? (a = /* @__PURE__ */ b("div", { className: o, "data-ox-slot": "sidebar-footer", ...s, children: t }), e[6] = t, e[7] = s, e[8] = o, e[9] = a) : a = e[9], a;
137
+ }, ae = (n) => {
138
+ const e = g.c(17);
139
+ let t, l, s, o;
140
+ e[0] !== n ? ({
141
+ children: t,
142
+ className: l,
143
+ headline: o,
144
+ ...s
145
+ } = n, e[0] = n, e[1] = t, e[2] = l, e[3] = s, e[4] = o) : (t = e[1], l = e[2], s = e[3], o = e[4]);
146
+ const {
147
+ collapsed: a,
148
+ isMobile: i
149
+ } = k();
150
+ let r;
151
+ e[5] !== l ? (r = p("contents", l), e[5] = l, e[6] = r) : r = e[6];
152
+ const c = a && !i;
153
+ let d;
154
+ e[7] !== c ? (d = p("col-span-full mt-4 mb-2 block cursor-default text-xs text-gray-1000", {
155
+ invisible: c
156
+ }), e[7] = c, e[8] = d) : d = e[8];
157
+ let f;
158
+ e[9] !== o || e[10] !== d ? (f = /* @__PURE__ */ b("h3", { className: d, children: o }), e[9] = o, e[10] = d, e[11] = f) : f = e[11];
159
+ let u;
160
+ return e[12] !== t || e[13] !== s || e[14] !== r || e[15] !== f ? (u = /* @__PURE__ */ C("div", { className: r, "data-ox-slot": "sidebar-group", ...s, children: [
161
+ f,
162
+ t
163
+ ] }), e[12] = t, e[13] = s, e[14] = r, e[15] = f, e[16] = u) : u = e[16], u;
164
+ }, ne = (n) => {
165
+ const e = g.c(10);
166
+ let t, l, s;
167
+ e[0] !== n ? ({
168
+ children: t,
169
+ className: l,
170
+ ...s
171
+ } = n, e[0] = n, e[1] = t, e[2] = l, e[3] = s) : (t = e[1], l = e[2], s = e[3]);
172
+ let o;
173
+ e[4] !== l ? (o = p("flex h-15 items-center px-4", l), e[4] = l, e[5] = o) : o = e[5];
174
+ let a;
175
+ return e[6] !== t || e[7] !== s || e[8] !== o ? (a = /* @__PURE__ */ b("div", { className: o, "data-ox-slot": "sidebar-header", ...s, children: t }), e[6] = t, e[7] = s, e[8] = o, e[9] = a) : a = e[9], a;
176
+ }, re = (n) => {
177
+ const e = g.c(11);
178
+ let t, l, s;
179
+ e[0] !== n ? ({
180
+ className: t,
181
+ size: s,
182
+ ...l
183
+ } = n, e[0] = n, e[1] = t, e[2] = l, e[3] = s) : (t = e[1], l = e[2], s = e[3]);
184
+ const o = s === void 0 ? 0.8 : s, {
185
+ collapsed: a
186
+ } = k(), i = !a;
187
+ let r;
188
+ e[4] !== t || e[5] !== i ? (r = p("shrink-0 text-current", {
189
+ "mr-2": i
190
+ }, t), e[4] = t, e[5] = i, e[6] = r) : r = e[6];
191
+ let c;
192
+ return e[7] !== l || e[8] !== o || e[9] !== r ? (c = /* @__PURE__ */ b(L, { className: r, "data-ox-slot": "sidebar-icon", size: o, ...l }), e[7] = l, e[8] = o, e[9] = r, e[10] = c) : c = e[10], c;
193
+ }, ie = (n) => {
194
+ const e = g.c(10);
195
+ let t, l, s;
196
+ e[0] !== n ? ({
197
+ children: t,
198
+ className: l,
199
+ ...s
200
+ } = n, e[0] = n, e[1] = t, e[2] = l, e[3] = s) : (t = e[1], l = e[2], s = e[3]);
201
+ let o;
202
+ e[4] !== l ? (o = p("overflow-hidden text-ellipsis", l), e[4] = l, e[5] = o) : o = e[5];
203
+ let a;
204
+ return e[6] !== t || e[7] !== s || e[8] !== o ? (a = /* @__PURE__ */ b("span", { className: o, "data-ox-slot": "sidebar-label", ...s, children: t }), e[6] = t, e[7] = s, e[8] = o, e[9] = a) : a = e[9], a;
205
+ }, ce = (n) => {
206
+ const e = g.c(22);
207
+ let t, l, s, o, a, i;
208
+ e[0] !== n ? ({
209
+ active: a,
210
+ children: t,
211
+ className: l,
212
+ disabled: i,
213
+ href: o,
214
+ ...s
215
+ } = n, e[0] = n, e[1] = t, e[2] = l, e[3] = s, e[4] = o, e[5] = a, e[6] = i) : (t = e[1], l = e[2], s = e[3], o = e[4], a = e[5], i = e[6]);
216
+ const r = a === void 0 ? !1 : a, c = i === void 0 ? !1 : i, {
217
+ collapsed: d
218
+ } = k(), f = r ? "page" : void 0, u = !d, m = r && !c, x = !r && !c;
219
+ let h;
220
+ e[7] !== l || e[8] !== d || e[9] !== c || e[10] !== u || e[11] !== m || e[12] !== x ? (h = p(G, {
221
+ [R]: d,
222
+ [W]: u,
223
+ [Y]: m,
224
+ "cursor-pointer text-gray-1000 hover:bg-gray-300 hover:text-gray-1200": x,
225
+ "ox-default-disabled": c
226
+ }, l), e[7] = l, e[8] = d, e[9] = c, e[10] = u, e[11] = m, e[12] = x, e[13] = h) : h = e[13];
227
+ const v = c ? void 0 : o, S = c ? de : void 0, y = r ? "active" : "inactive";
228
+ let N;
229
+ return e[14] !== t || e[15] !== s || e[16] !== y || e[17] !== f || e[18] !== h || e[19] !== v || e[20] !== S ? (N = /* @__PURE__ */ b("a", { "aria-current": f, className: h, "data-ox-slot": "sidebar-link", href: v, role: "link", onClick: S, ...s, "data-ox-state": y, children: t }), e[14] = t, e[15] = s, e[16] = y, e[17] = f, e[18] = h, e[19] = v, e[20] = S, e[21] = N) : N = e[21], N;
230
+ };
231
+ function de(n) {
232
+ return n.preventDefault();
233
+ }
234
+ const w = te;
235
+ w.Body = le;
236
+ w.Button = se;
237
+ w.Footer = oe;
238
+ w.Group = ae;
239
+ w.Header = ne;
240
+ w.Icon = re;
241
+ w.Label = ie;
242
+ w.Link = ce;
243
+ const Fe = (n) => {
244
+ const e = g.c(22);
245
+ let t, l, s, o, a, i, r;
246
+ e[0] !== n ? ({
247
+ children: t,
248
+ className: l,
249
+ color: i,
250
+ icon: o,
251
+ subtitle: a,
252
+ title: r,
253
+ ...s
254
+ } = n, e[0] = n, e[1] = t, e[2] = l, e[3] = s, e[4] = o, e[5] = a, e[6] = i, e[7] = r) : (t = e[1], l = e[2], s = e[3], o = e[4], a = e[5], i = e[6], r = e[7]);
255
+ const c = i === void 0 ? "purple" : i, d = r || a || o, f = Q[c], u = d ? "main-headline" : void 0;
256
+ let m;
257
+ e[8] !== l ? (m = p("w-full p-6", l), e[8] = l, e[9] = m) : m = e[9];
258
+ let x;
259
+ e[10] !== d || e[11] !== o || e[12] !== f || e[13] !== a || e[14] !== r ? (x = d ? /* @__PURE__ */ b("div", { className: "mb-8 border-b border-gray-400 pb-6", children: /* @__PURE__ */ C("div", { className: "flex items-center gap-4", children: [
260
+ o ? /* @__PURE__ */ b("div", { className: p("rounded-lg border p-3", f.border, f.background), children: /* @__PURE__ */ b(L, { className: f.text, path: o, size: 1.41 }) }) : null,
261
+ /* @__PURE__ */ C("div", { children: [
262
+ r ? /* @__PURE__ */ b("h2", { id: "main-headline", className: "text-xl font-semibold text-gray-1200", "data-ox-slot": "main-headline", children: r }) : null,
263
+ a && /* @__PURE__ */ b("p", { className: "mt-1 text-sm", children: a })
264
+ ] })
265
+ ] }) }) : null, e[10] = d, e[11] = o, e[12] = f, e[13] = a, e[14] = r, e[15] = x) : x = e[15];
266
+ let h;
267
+ return e[16] !== t || e[17] !== s || e[18] !== u || e[19] !== m || e[20] !== x ? (h = /* @__PURE__ */ C("main", { "aria-labelledby": u, className: m, "data-ox-slot": "main-content", ...s, children: [
268
+ x,
269
+ t
270
+ ] }), e[16] = t, e[17] = s, e[18] = u, e[19] = m, e[20] = x, e[21] = h) : h = e[21], h;
271
+ }, Ve = (n) => {
272
+ const e = g.c(11);
273
+ let t, l, s;
274
+ e[0] !== n ? ({
275
+ children: t,
276
+ className: l,
277
+ ...s
278
+ } = n, e[0] = n, e[1] = t, e[2] = l, e[3] = s) : (t = e[1], l = e[2], s = e[3]);
279
+ const {
280
+ isMobile: o
281
+ } = H(), a = o ? "grid-cols-1" : "grid-cols-[auto_1fr]";
282
+ let i;
283
+ e[4] !== l || e[5] !== a ? (i = p("mx-auto grid min-h-screen max-w-16xl bg-transparent", a, l), e[4] = l, e[5] = a, e[6] = i) : i = e[6];
284
+ let r;
285
+ return e[7] !== t || e[8] !== s || e[9] !== i ? (r = /* @__PURE__ */ b("div", { className: i, "data-ox-slot": "app-layout", ...s, children: t }), e[7] = t, e[8] = s, e[9] = i, e[10] = r) : r = e[10], r;
286
+ }, fe = (n) => {
287
+ const e = g.c(10);
288
+ let t, l, s;
289
+ e[0] !== n ? ({
290
+ children: t,
291
+ className: l,
292
+ ...s
293
+ } = n, e[0] = n, e[1] = t, e[2] = l, e[3] = s) : (t = e[1], l = e[2], s = e[3]);
294
+ let o;
295
+ e[4] !== l ? (o = p("flex flex-col overflow-y-auto", l), e[4] = l, e[5] = o) : o = e[5];
296
+ let a;
297
+ return e[6] !== t || e[7] !== s || e[8] !== o ? (a = /* @__PURE__ */ b("main", { className: o, "data-ox-slot": "main-content", ...s, children: t }), e[6] = t, e[7] = s, e[8] = o, e[9] = a) : a = e[9], a;
298
+ }, ue = (n) => {
299
+ const e = g.c(10);
300
+ let t, l, s;
301
+ e[0] !== n ? ({
302
+ children: t,
303
+ className: l,
304
+ ...s
305
+ } = n, e[0] = n, e[1] = t, e[2] = l, e[3] = s) : (t = e[1], l = e[2], s = e[3]);
306
+ let o;
307
+ e[4] !== l ? (o = p("flex-1 overflow-y-auto px-6 py-6", l), e[4] = l, e[5] = o) : o = e[5];
308
+ let a;
309
+ return e[6] !== t || e[7] !== s || e[8] !== o ? (a = /* @__PURE__ */ b("div", { className: o, "data-ox-slot": "main-content-body", ...s, children: t }), e[6] = t, e[7] = s, e[8] = o, e[9] = a) : a = e[9], a;
310
+ }, be = (n) => {
311
+ const e = g.c(10);
312
+ let t, l, s;
313
+ e[0] !== n ? ({
314
+ children: t,
315
+ className: l,
316
+ ...s
317
+ } = n, e[0] = n, e[1] = t, e[2] = l, e[3] = s) : (t = e[1], l = e[2], s = e[3]);
318
+ let o;
319
+ e[4] !== l ? (o = p("flex-shrink-0 border-b border-gray-400 bg-gray-100 px-6 py-4", l), e[4] = l, e[5] = o) : o = e[5];
320
+ let a;
321
+ return e[6] !== t || e[7] !== s || e[8] !== o ? (a = /* @__PURE__ */ b("div", { className: o, "data-ox-slot": "main-content-header", ...s, children: t }), e[6] = t, e[7] = s, e[8] = o, e[9] = a) : a = e[9], a;
322
+ }, Ke = Object.assign(fe, {
323
+ Header: be,
324
+ Body: ue
325
+ }), V = z(void 0);
326
+ function H() {
327
+ const n = T(V);
328
+ if (!n)
329
329
  throw new Error("useOxSidebar must be used within a SidebarProvider");
330
- return e;
330
+ return n;
331
331
  }
332
- const ae = 256, se = ({ children: e, className: a, ...t }) => {
333
- const { isMobile: o, mobileOpen: n, toggleSidebar: i } = M();
334
- return o ? /* @__PURE__ */ s.jsx(h, { open: n, onOpenChange: i, children: /* @__PURE__ */ s.jsx(h.Content, { closeOnOutsideClick: !0, side: "left", children: /* @__PURE__ */ s.jsx(
335
- "aside",
336
- {
337
- className: r("bg-gray-150 flex h-full flex-col", a),
338
- "data-ox-slot": "sidebar",
339
- ...t,
340
- children: e
341
- }
342
- ) }) }) : /* @__PURE__ */ s.jsx(
343
- "aside",
344
- {
345
- className: r("bg-gray-150 sticky top-0 flex h-screen flex-col overflow-y-auto", a),
346
- "data-ox-slot": "sidebar",
347
- style: { width: ae },
348
- ...t,
349
- children: e
350
- }
351
- );
352
- }, oe = ({ children: e, className: a, ...t }) => /* @__PURE__ */ s.jsx(
353
- "div",
354
- {
355
- className: r("flex-1 overflow-y-auto p-2", a),
356
- "data-ox-slot": "sidebar-content",
357
- ...t,
358
- children: e
332
+ const me = 256, xe = (n) => {
333
+ const e = g.c(21);
334
+ let t, l, s;
335
+ e[0] !== n ? ({
336
+ children: t,
337
+ className: l,
338
+ ...s
339
+ } = n, e[0] = n, e[1] = t, e[2] = l, e[3] = s) : (t = e[1], l = e[2], s = e[3]);
340
+ const {
341
+ isMobile: o,
342
+ mobileOpen: a,
343
+ toggleSidebar: i
344
+ } = H();
345
+ if (o) {
346
+ let f;
347
+ e[4] !== l ? (f = p("flex h-full flex-col bg-gray-150", l), e[4] = l, e[5] = f) : f = e[5];
348
+ let u;
349
+ e[6] !== t || e[7] !== s || e[8] !== f ? (u = /* @__PURE__ */ b(I.Content, { closeOnOutsideClick: !0, side: "left", children: /* @__PURE__ */ b("aside", { className: f, "data-ox-slot": "sidebar", ...s, children: t }) }), e[6] = t, e[7] = s, e[8] = f, e[9] = u) : u = e[9];
350
+ let m;
351
+ return e[10] !== a || e[11] !== u || e[12] !== i ? (m = /* @__PURE__ */ b(I, { open: a, onOpenChange: i, children: u }), e[10] = a, e[11] = u, e[12] = i, e[13] = m) : m = e[13], m;
359
352
  }
360
- ), re = ({ children: e, className: a, ...t }) => /* @__PURE__ */ s.jsx(
361
- "div",
362
- {
363
- className: r("flex shrink-0 flex-col p-2", a),
364
- "data-ox-slot": "sidebar-footer",
365
- ...t,
366
- children: e
367
- }
368
- ), ne = ({ children: e, className: a, ...t }) => /* @__PURE__ */ s.jsx(
369
- "div",
370
- {
371
- className: r(
372
- "flex flex-wrap items-center gap-2",
373
- '[&_[data-ox-slot="sidebar-group-content"]]:w-full',
374
- a
375
- ),
376
- "data-ox-slot": "sidebar-group",
377
- ...t,
378
- children: e
379
- }
380
- ), ie = ({
381
- children: e,
382
- className: a,
383
- ...t
384
- }) => /* @__PURE__ */ s.jsx(
385
- "button",
386
- {
387
- className: r(
388
- "mr-1.5 inline-flex size-6 shrink-0 items-center justify-center rounded-md",
389
- "enabled:hover:text-gray-1200 enabled:cursor-pointer enabled:text-gray-900 enabled:hover:bg-gray-300",
390
- "ox-gray-outset-focus disabled:ox-default-disabled",
391
- a
392
- ),
393
- "data-ox-slot": "sidebar-group-action",
394
- type: "button",
395
- ...t,
396
- children: e
397
- }
398
- ), le = ({
399
- children: e,
400
- className: a,
401
- ...t
402
- }) => /* @__PURE__ */ s.jsx("div", { className: r(a), "data-ox-slot": "sidebar-group-content", ...t, children: e }), de = ({
403
- children: e,
404
- className: a,
405
- ...t
406
- }) => /* @__PURE__ */ s.jsx(
407
- "div",
408
- {
409
- className: r("flex flex-1 items-center pl-2 text-xs font-medium text-gray-900", a),
410
- "data-ox-slot": "sidebar-group-label",
411
- ...t,
412
- children: e
413
- }
414
- ), xe = ({ children: e, className: a, ...t }) => /* @__PURE__ */ s.jsx(
415
- "div",
416
- {
417
- className: r("flex shrink-0 flex-col p-2", a),
418
- "data-ox-slot": "sidebar-header",
419
- ...t,
420
- children: e
421
- }
422
- ), ce = ({ children: e, className: a, ...t }) => /* @__PURE__ */ s.jsx(
423
- "ul",
424
- {
425
- className: r("flex flex-col items-stretch gap-1", a),
426
- "data-ox-slot": "sidebar-menu",
427
- ...t,
428
- children: e
429
- }
430
- ), ue = ({
431
- children: e,
432
- className: a,
433
- ...t
434
- }) => /* @__PURE__ */ s.jsx(
435
- "button",
436
- {
437
- className: r(
438
- "inline-flex size-9 shrink-0 items-center justify-center rounded-lg border border-transparent",
439
- "enabled:text-gray-1200 enabled:cursor-pointer enabled:bg-transparent enabled:hover:bg-gray-300",
440
- "ox-gray-outset-focus disabled:ox-default-disabled",
441
- a
442
- ),
443
- "data-ox-slot": "sidebar-menu-action",
444
- type: "button",
445
- ...t,
446
- children: e
447
- }
448
- ), be = ({ children: e, className: a }) => /* @__PURE__ */ s.jsx($, { className: r("ml-auto", a), "data-ox-slot": "sidebar-menu-badge", size: "sm", children: e }), z = w(void 0), A = () => {
449
- const e = N(z);
450
- if (!e)
353
+ let r;
354
+ e[14] !== l ? (r = p("sticky top-0 flex h-screen flex-col overflow-y-auto bg-gray-150", l), e[14] = l, e[15] = r) : r = e[15];
355
+ let c;
356
+ e[16] === Symbol.for("react.memo_cache_sentinel") ? (c = {
357
+ width: me
358
+ }, e[16] = c) : c = e[16];
359
+ let d;
360
+ return e[17] !== t || e[18] !== s || e[19] !== r ? (d = /* @__PURE__ */ b("aside", { className: r, "data-ox-slot": "sidebar", style: c, ...s, children: t }), e[17] = t, e[18] = s, e[19] = r, e[20] = d) : d = e[20], d;
361
+ }, pe = (n) => {
362
+ const e = g.c(10);
363
+ let t, l, s;
364
+ e[0] !== n ? ({
365
+ children: t,
366
+ className: l,
367
+ ...s
368
+ } = n, e[0] = n, e[1] = t, e[2] = l, e[3] = s) : (t = e[1], l = e[2], s = e[3]);
369
+ let o;
370
+ e[4] !== l ? (o = p("flex-1 overflow-y-auto p-2", l), e[4] = l, e[5] = o) : o = e[5];
371
+ let a;
372
+ return e[6] !== t || e[7] !== s || e[8] !== o ? (a = /* @__PURE__ */ b("div", { className: o, "data-ox-slot": "sidebar-content", ...s, children: t }), e[6] = t, e[7] = s, e[8] = o, e[9] = a) : a = e[9], a;
373
+ }, he = (n) => {
374
+ const e = g.c(10);
375
+ let t, l, s;
376
+ e[0] !== n ? ({
377
+ children: t,
378
+ className: l,
379
+ ...s
380
+ } = n, e[0] = n, e[1] = t, e[2] = l, e[3] = s) : (t = e[1], l = e[2], s = e[3]);
381
+ let o;
382
+ e[4] !== l ? (o = p("flex shrink-0 flex-col p-2", l), e[4] = l, e[5] = o) : o = e[5];
383
+ let a;
384
+ return e[6] !== t || e[7] !== s || e[8] !== o ? (a = /* @__PURE__ */ b("div", { className: o, "data-ox-slot": "sidebar-footer", ...s, children: t }), e[6] = t, e[7] = s, e[8] = o, e[9] = a) : a = e[9], a;
385
+ }, ge = (n) => {
386
+ const e = g.c(10);
387
+ let t, l, s;
388
+ e[0] !== n ? ({
389
+ children: t,
390
+ className: l,
391
+ ...s
392
+ } = n, e[0] = n, e[1] = t, e[2] = l, e[3] = s) : (t = e[1], l = e[2], s = e[3]);
393
+ let o;
394
+ e[4] !== l ? (o = p("flex flex-wrap items-center gap-2", '[&_[data-ox-slot="sidebar-group-content"]]:w-full', l), e[4] = l, e[5] = o) : o = e[5];
395
+ let a;
396
+ return e[6] !== t || e[7] !== s || e[8] !== o ? (a = /* @__PURE__ */ b("div", { className: o, "data-ox-slot": "sidebar-group", ...s, children: t }), e[6] = t, e[7] = s, e[8] = o, e[9] = a) : a = e[9], a;
397
+ }, ve = (n) => {
398
+ const e = g.c(10);
399
+ let t, l, s;
400
+ e[0] !== n ? ({
401
+ children: t,
402
+ className: l,
403
+ ...s
404
+ } = n, e[0] = n, e[1] = t, e[2] = l, e[3] = s) : (t = e[1], l = e[2], s = e[3]);
405
+ let o;
406
+ e[4] !== l ? (o = p("mr-1.5 inline-flex size-6 shrink-0 items-center justify-center rounded-md", "enabled:cursor-pointer enabled:text-gray-900 enabled:hover:bg-gray-300 enabled:hover:text-gray-1200", "ox-gray-outset-focus disabled:ox-default-disabled", l), e[4] = l, e[5] = o) : o = e[5];
407
+ let a;
408
+ return e[6] !== t || e[7] !== s || e[8] !== o ? (a = /* @__PURE__ */ b("button", { className: o, "data-ox-slot": "sidebar-group-action", type: "button", ...s, children: t }), e[6] = t, e[7] = s, e[8] = o, e[9] = a) : a = e[9], a;
409
+ }, Se = (n) => {
410
+ const e = g.c(10);
411
+ let t, l, s;
412
+ e[0] !== n ? ({
413
+ children: t,
414
+ className: l,
415
+ ...s
416
+ } = n, e[0] = n, e[1] = t, e[2] = l, e[3] = s) : (t = e[1], l = e[2], s = e[3]);
417
+ let o;
418
+ e[4] !== l ? (o = p(l), e[4] = l, e[5] = o) : o = e[5];
419
+ let a;
420
+ return e[6] !== t || e[7] !== s || e[8] !== o ? (a = /* @__PURE__ */ b("div", { className: o, "data-ox-slot": "sidebar-group-content", ...s, children: t }), e[6] = t, e[7] = s, e[8] = o, e[9] = a) : a = e[9], a;
421
+ }, ye = (n) => {
422
+ const e = g.c(10);
423
+ let t, l, s;
424
+ e[0] !== n ? ({
425
+ children: t,
426
+ className: l,
427
+ ...s
428
+ } = n, e[0] = n, e[1] = t, e[2] = l, e[3] = s) : (t = e[1], l = e[2], s = e[3]);
429
+ let o;
430
+ e[4] !== l ? (o = p("flex flex-1 items-center pl-2 text-xs font-medium text-gray-900", l), e[4] = l, e[5] = o) : o = e[5];
431
+ let a;
432
+ return e[6] !== t || e[7] !== s || e[8] !== o ? (a = /* @__PURE__ */ b("div", { className: o, "data-ox-slot": "sidebar-group-label", ...s, children: t }), e[6] = t, e[7] = s, e[8] = o, e[9] = a) : a = e[9], a;
433
+ }, Ne = (n) => {
434
+ const e = g.c(10);
435
+ let t, l, s;
436
+ e[0] !== n ? ({
437
+ children: t,
438
+ className: l,
439
+ ...s
440
+ } = n, e[0] = n, e[1] = t, e[2] = l, e[3] = s) : (t = e[1], l = e[2], s = e[3]);
441
+ let o;
442
+ e[4] !== l ? (o = p("flex shrink-0 flex-col p-2", l), e[4] = l, e[5] = o) : o = e[5];
443
+ let a;
444
+ return e[6] !== t || e[7] !== s || e[8] !== o ? (a = /* @__PURE__ */ b("div", { className: o, "data-ox-slot": "sidebar-header", ...s, children: t }), e[6] = t, e[7] = s, e[8] = o, e[9] = a) : a = e[9], a;
445
+ }, Oe = (n) => {
446
+ const e = g.c(10);
447
+ let t, l, s;
448
+ e[0] !== n ? ({
449
+ children: t,
450
+ className: l,
451
+ ...s
452
+ } = n, e[0] = n, e[1] = t, e[2] = l, e[3] = s) : (t = e[1], l = e[2], s = e[3]);
453
+ let o;
454
+ e[4] !== l ? (o = p("flex flex-col items-stretch gap-1", l), e[4] = l, e[5] = o) : o = e[5];
455
+ let a;
456
+ return e[6] !== t || e[7] !== s || e[8] !== o ? (a = /* @__PURE__ */ b("ul", { className: o, "data-ox-slot": "sidebar-menu", ...s, children: t }), e[6] = t, e[7] = s, e[8] = o, e[9] = a) : a = e[9], a;
457
+ }, Ce = (n) => {
458
+ const e = g.c(10);
459
+ let t, l, s;
460
+ e[0] !== n ? ({
461
+ children: t,
462
+ className: l,
463
+ ...s
464
+ } = n, e[0] = n, e[1] = t, e[2] = l, e[3] = s) : (t = e[1], l = e[2], s = e[3]);
465
+ let o;
466
+ e[4] !== l ? (o = p("inline-flex size-9 shrink-0 items-center justify-center rounded-lg border border-transparent", "enabled:cursor-pointer enabled:bg-transparent enabled:text-gray-1200 enabled:hover:bg-gray-300", "ox-gray-outset-focus disabled:ox-default-disabled", l), e[4] = l, e[5] = o) : o = e[5];
467
+ let a;
468
+ return e[6] !== t || e[7] !== s || e[8] !== o ? (a = /* @__PURE__ */ b("button", { className: o, "data-ox-slot": "sidebar-menu-action", type: "button", ...s, children: t }), e[6] = t, e[7] = s, e[8] = o, e[9] = a) : a = e[9], a;
469
+ }, we = (n) => {
470
+ const e = g.c(5), {
471
+ children: t,
472
+ className: l
473
+ } = n;
474
+ let s;
475
+ e[0] !== l ? (s = p("ml-auto", l), e[0] = l, e[1] = s) : s = e[1];
476
+ let o;
477
+ return e[2] !== t || e[3] !== s ? (o = /* @__PURE__ */ b(U, { className: s, "data-ox-slot": "sidebar-menu-badge", size: "sm", children: t }), e[2] = t, e[3] = s, e[4] = o) : o = e[4], o;
478
+ }, K = z(void 0), A = () => {
479
+ const n = T(K);
480
+ if (!n)
451
481
  throw new Error("useMenuItemContext must be used within MenuItemProvider");
452
- return e;
453
- }, H = ({ className: e, path: a, placeholder: t }) => /* @__PURE__ */ s.jsx(
454
- y,
455
- {
456
- className: r("shrink-0", e),
457
- "data-ox-slot": "sidebar-menu-icon",
458
- path: a,
459
- placeholder: t,
460
- size: 0.8
461
- }
462
- ), me = ({
463
- children: e,
464
- className: a,
465
- disabled: t = !1,
466
- href: o,
467
- onClick: n,
468
- ...i
469
- }) => {
470
- const { hasSub: l, isOpen: d, toggleOpen: x } = A(), b = r(
471
- "flex h-9 flex-1 items-center gap-2 rounded-lg border border-transparent bg-transparent px-2 text-left text-sm",
472
- "ox-gray-outset-focus",
473
- a
474
- );
475
- if (o)
476
- return /* @__PURE__ */ s.jsx(
477
- "a",
478
- {
479
- "aria-disabled": t ? "true" : void 0,
480
- className: r(b, {
481
- "text-gray-1200 cursor-pointer hover:bg-gray-300": !t,
482
- "ox-default-disabled": t
483
- }),
484
- "data-ox-slot": "sidebar-menu-button",
485
- href: t ? void 0 : o,
486
- onClick: t ? (c) => c.preventDefault() : void 0,
487
- ...i,
488
- children: e
489
- }
490
- );
491
- const O = (c) => {
492
- l && x(), n && n(c);
493
- };
494
- return /* @__PURE__ */ s.jsxs(
495
- "button",
496
- {
497
- className: r(
498
- b,
499
- "enabled:text-gray-1200 enabled:cursor-pointer enabled:hover:bg-gray-300",
500
- "disabled:ox-default-disabled"
501
- ),
502
- "data-ox-slot": "sidebar-menu-button",
503
- disabled: t,
504
- type: "button",
505
- onClick: O,
506
- ...i,
507
- children: [
508
- e,
509
- l ? /* @__PURE__ */ s.jsx(
510
- H,
511
- {
512
- className: r("ml-auto transition-transform duration-200", { "rotate-180": d }),
513
- path: "mdiChevronDown"
514
- }
515
- ) : null
516
- ]
517
- }
518
- );
519
- };
520
- function ge({
521
- children: e,
522
- defaultOpen: a = !1,
523
- hasSub: t = !1
524
- }) {
525
- const [o, n] = v(a), i = () => n((l) => !l);
526
- return /* @__PURE__ */ s.jsx(z.Provider, { value: { hasSub: t, isOpen: o, setIsOpen: n, toggleOpen: i }, children: e });
527
- }
528
- const pe = ({
529
- children: e,
530
- className: a,
531
- defaultOpen: t = !1,
532
- hasSub: o = !1,
533
- ...n
534
- }) => /* @__PURE__ */ s.jsx(ge, { defaultOpen: t, hasSub: o, children: /* @__PURE__ */ s.jsx(
535
- "li",
536
- {
537
- className: r("group flex flex-wrap items-center gap-x-2", a),
538
- "data-ox-slot": "sidebar-menu-item",
539
- ...n,
540
- children: e
541
- }
542
- ) }), fe = ({ className: e }) => /* @__PURE__ */ s.jsx(G, { className: e, "data-ox-slot": "sidebar-menu-skeleton", fullWidth: !0, height: 36 }), he = ({ children: e, className: a, ...t }) => {
543
- const { isOpen: o } = A();
544
- return /* @__PURE__ */ s.jsx(
545
- "div",
546
- {
547
- className: "ox-sidebar-submenu w-content grid w-full",
548
- "data-ox-slot": "sidebar-menu-sub-wrapper",
549
- "data-ox-state": o ? "open" : "closed",
550
- children: /* @__PURE__ */ s.jsx(
551
- "ul",
552
- {
553
- className: r(
554
- "ml-4.5 flex flex-col gap-1 border-l border-gray-400 py-0.5 pl-2.5",
555
- a
556
- ),
557
- "data-ox-slot": "sidebar-menu-sub",
558
- ...t,
559
- children: e
560
- }
561
- )
482
+ return n;
483
+ }, q = (n) => {
484
+ const e = g.c(6), {
485
+ className: t,
486
+ path: l,
487
+ placeholder: s
488
+ } = n;
489
+ let o;
490
+ e[0] !== t ? (o = p("shrink-0", t), e[0] = t, e[1] = o) : o = e[1];
491
+ let a;
492
+ return e[2] !== l || e[3] !== s || e[4] !== o ? (a = /* @__PURE__ */ b(L, { className: o, "data-ox-slot": "sidebar-menu-icon", path: l, placeholder: s, size: 0.8 }), e[2] = l, e[3] = s, e[4] = o, e[5] = a) : a = e[5], a;
493
+ }, $e = (n) => "href" in n, J = "flex h-9 flex-1 items-center gap-2 rounded-lg border border-transparent bg-transparent px-2 text-left text-sm ox-gray-outset-focus", ke = (n) => {
494
+ const e = g.c(23);
495
+ let t, l, s, o, a, i;
496
+ e[0] !== n ? ({
497
+ children: t,
498
+ className: l,
499
+ disabled: i,
500
+ href: s,
501
+ onClick: o,
502
+ ...a
503
+ } = n, e[0] = n, e[1] = t, e[2] = l, e[3] = s, e[4] = o, e[5] = a, e[6] = i) : (t = e[1], l = e[2], s = e[3], o = e[4], a = e[5], i = e[6]);
504
+ const r = i === void 0 ? !1 : i, {
505
+ hasSub: c,
506
+ toggleOpen: d
507
+ } = A(), f = !r;
508
+ let u;
509
+ e[7] !== l || e[8] !== r || e[9] !== f ? (u = p(J, {
510
+ "cursor-pointer text-gray-1200 hover:bg-gray-300": f,
511
+ "ox-default-disabled": r
512
+ }, l), e[7] = l, e[8] = r, e[9] = f, e[10] = u) : u = e[10];
513
+ const m = u;
514
+ let x;
515
+ e[11] !== r || e[12] !== c || e[13] !== o || e[14] !== d ? (x = (N) => {
516
+ if (r) {
517
+ N.preventDefault();
518
+ return;
562
519
  }
563
- );
564
- }, ve = ({
565
- children: e,
566
- className: a,
567
- href: t,
568
- ...o
569
- }) => {
570
- const n = r(
571
- "text-gray-1200 flex h-8 flex-1 cursor-pointer items-center gap-2 rounded-lg border border-transparent bg-transparent px-2 text-left text-sm hover:bg-gray-300",
572
- "ox-gray-outset-focus",
573
- a
574
- );
575
- return t ? /* @__PURE__ */ s.jsx(
576
- "a",
577
- {
578
- className: n,
579
- "data-ox-slot": "sidebar-menu-sub-button",
580
- href: t,
581
- ...o,
582
- children: e
520
+ if (c) {
521
+ N.preventDefault(), d();
522
+ return;
583
523
  }
584
- ) : /* @__PURE__ */ s.jsx(
585
- "button",
586
- {
587
- className: n,
588
- "data-ox-slot": "sidebar-menu-sub-button",
589
- type: "button",
590
- ...o,
591
- children: e
524
+ o?.(N);
525
+ }, e[11] = r, e[12] = c, e[13] = o, e[14] = d, e[15] = x) : x = e[15];
526
+ const h = x, v = r ? "true" : void 0, S = r ? void 0 : s;
527
+ let y;
528
+ return e[16] !== t || e[17] !== h || e[18] !== m || e[19] !== a || e[20] !== v || e[21] !== S ? (y = /* @__PURE__ */ b("a", { "aria-disabled": v, className: m, "data-ox-slot": "sidebar-menu-button", href: S, onClick: h, ...a, children: t }), e[16] = t, e[17] = h, e[18] = m, e[19] = a, e[20] = v, e[21] = S, e[22] = y) : y = e[22], y;
529
+ }, _e = (n) => {
530
+ const e = g.c(24);
531
+ let t, l, s, o, a, i;
532
+ e[0] !== n ? ({
533
+ children: t,
534
+ className: l,
535
+ disabled: a,
536
+ onClick: s,
537
+ type: i,
538
+ ...o
539
+ } = n, e[0] = n, e[1] = t, e[2] = l, e[3] = s, e[4] = o, e[5] = a, e[6] = i) : (t = e[1], l = e[2], s = e[3], o = e[4], a = e[5], i = e[6]);
540
+ const r = a === void 0 ? !1 : a, c = i === void 0 ? "button" : i, {
541
+ hasSub: d,
542
+ isOpen: f,
543
+ toggleOpen: u
544
+ } = A();
545
+ let m;
546
+ e[7] !== l ? (m = p(J, "enabled:cursor-pointer enabled:text-gray-1200 enabled:hover:bg-gray-300", "disabled:ox-default-disabled", l), e[7] = l, e[8] = m) : m = e[8];
547
+ const x = m;
548
+ let h;
549
+ e[9] !== d || e[10] !== s || e[11] !== u ? (h = (N) => {
550
+ if (d) {
551
+ u();
552
+ return;
592
553
  }
593
- );
594
- }, ye = ({
595
- children: e,
596
- className: a,
597
- ...t
598
- }) => /* @__PURE__ */ s.jsx(
599
- "li",
600
- {
601
- className: r("flex items-center gap-2", a),
602
- "data-ox-slot": "sidebar-menu-sub-item",
603
- ...t,
604
- children: e
554
+ s?.(N);
555
+ }, e[9] = d, e[10] = s, e[11] = u, e[12] = h) : h = e[12];
556
+ const v = h;
557
+ let S;
558
+ e[13] !== d || e[14] !== f ? (S = d ? /* @__PURE__ */ b(q, { className: p("ml-auto transition-transform duration-200", {
559
+ "rotate-180": f
560
+ }), path: "mdiChevronDown" }) : null, e[13] = d, e[14] = f, e[15] = S) : S = e[15];
561
+ let y;
562
+ return e[16] !== x || e[17] !== t || e[18] !== r || e[19] !== v || e[20] !== o || e[21] !== S || e[22] !== c ? (y = /* @__PURE__ */ C("button", { className: x, "data-ox-slot": "sidebar-menu-button", disabled: r, type: c, onClick: v, ...o, children: [
563
+ t,
564
+ S
565
+ ] }), e[16] = x, e[17] = t, e[18] = r, e[19] = v, e[20] = o, e[21] = S, e[22] = c, e[23] = y) : y = e[23], y;
566
+ }, Pe = (n) => {
567
+ const e = g.c(2);
568
+ let t;
569
+ return e[0] !== n ? (t = $e(n) ? /* @__PURE__ */ b(ke, { ...n }) : /* @__PURE__ */ b(_e, { ...n }), e[0] = n, e[1] = t) : t = e[1], t;
570
+ };
571
+ function Me(n) {
572
+ const e = g.c(7), {
573
+ children: t,
574
+ defaultOpen: l,
575
+ hasSub: s
576
+ } = n, o = l === void 0 ? !1 : l, a = s === void 0 ? !1 : s, [i, r] = E(o);
577
+ let c;
578
+ e[0] === Symbol.for("react.memo_cache_sentinel") ? (c = () => r(Ie), e[0] = c) : c = e[0];
579
+ const d = c;
580
+ let f;
581
+ e[1] !== a || e[2] !== i ? (f = {
582
+ hasSub: a,
583
+ isOpen: i,
584
+ setIsOpen: r,
585
+ toggleOpen: d
586
+ }, e[1] = a, e[2] = i, e[3] = f) : f = e[3];
587
+ let u;
588
+ return e[4] !== t || e[5] !== f ? (u = /* @__PURE__ */ b(K.Provider, { value: f, children: t }), e[4] = t, e[5] = f, e[6] = u) : u = e[6], u;
589
+ }
590
+ function Ie(n) {
591
+ return !n;
592
+ }
593
+ const Ee = (n) => {
594
+ const e = g.c(16);
595
+ let t, l, s, o, a;
596
+ e[0] !== n ? ({
597
+ children: t,
598
+ className: l,
599
+ defaultOpen: o,
600
+ hasSub: a,
601
+ ...s
602
+ } = n, e[0] = n, e[1] = t, e[2] = l, e[3] = s, e[4] = o, e[5] = a) : (t = e[1], l = e[2], s = e[3], o = e[4], a = e[5]);
603
+ const i = o === void 0 ? !1 : o, r = a === void 0 ? !1 : a;
604
+ let c;
605
+ e[6] !== l ? (c = p("group flex flex-wrap items-center gap-x-2", l), e[6] = l, e[7] = c) : c = e[7];
606
+ let d;
607
+ e[8] !== t || e[9] !== s || e[10] !== c ? (d = /* @__PURE__ */ b("li", { className: c, "data-ox-slot": "sidebar-menu-item", ...s, children: t }), e[8] = t, e[9] = s, e[10] = c, e[11] = d) : d = e[11];
608
+ let f;
609
+ return e[12] !== i || e[13] !== r || e[14] !== d ? (f = /* @__PURE__ */ b(Me, { defaultOpen: i, hasSub: r, children: d }), e[12] = i, e[13] = r, e[14] = d, e[15] = f) : f = e[15], f;
610
+ }, Le = (n) => {
611
+ const e = g.c(2), {
612
+ className: t
613
+ } = n;
614
+ let l;
615
+ return e[0] !== t ? (l = /* @__PURE__ */ b(X, { className: t, "data-ox-slot": "sidebar-menu-skeleton", fullWidth: !0, height: 36 }), e[0] = t, e[1] = l) : l = e[1], l;
616
+ }, Be = (n) => {
617
+ const e = g.c(13);
618
+ let t, l, s;
619
+ e[0] !== n ? ({
620
+ children: t,
621
+ className: l,
622
+ ...s
623
+ } = n, e[0] = n, e[1] = t, e[2] = l, e[3] = s) : (t = e[1], l = e[2], s = e[3]);
624
+ const {
625
+ isOpen: o
626
+ } = A(), a = o ? "open" : "closed";
627
+ let i;
628
+ e[4] !== l ? (i = p("ml-4.5 flex flex-col gap-1 border-l border-gray-400 py-0.5 pl-2.5", l), e[4] = l, e[5] = i) : i = e[5];
629
+ let r;
630
+ e[6] !== t || e[7] !== s || e[8] !== i ? (r = /* @__PURE__ */ b("ul", { className: i, "data-ox-slot": "sidebar-menu-sub", ...s, children: t }), e[6] = t, e[7] = s, e[8] = i, e[9] = r) : r = e[9];
631
+ let c;
632
+ return e[10] !== a || e[11] !== r ? (c = /* @__PURE__ */ b("div", { className: "ox-sidebar-submenu w-content grid w-full", "data-ox-slot": "sidebar-menu-sub-wrapper", "data-ox-state": a, children: r }), e[10] = a, e[11] = r, e[12] = c) : c = e[12], c;
633
+ }, ze = (n) => {
634
+ const e = g.c(16);
635
+ let t, l, s, o;
636
+ e[0] !== n ? ({
637
+ children: t,
638
+ className: l,
639
+ href: o,
640
+ ...s
641
+ } = n, e[0] = n, e[1] = t, e[2] = l, e[3] = s, e[4] = o) : (t = e[1], l = e[2], s = e[3], o = e[4]);
642
+ let a;
643
+ e[5] !== l ? (a = p("flex h-8 flex-1 cursor-pointer items-center gap-2 rounded-lg border border-transparent bg-transparent px-2 text-left text-sm text-gray-1200 hover:bg-gray-300", "ox-gray-outset-focus", l), e[5] = l, e[6] = a) : a = e[6];
644
+ const i = a;
645
+ if (o) {
646
+ const c = s;
647
+ let d;
648
+ return e[7] !== i || e[8] !== t || e[9] !== o || e[10] !== c ? (d = /* @__PURE__ */ b("a", { className: i, "data-ox-slot": "sidebar-menu-sub-button", href: o, ...c, children: t }), e[7] = i, e[8] = t, e[9] = o, e[10] = c, e[11] = d) : d = e[11], d;
605
649
  }
606
- ), Oe = ({ className: e, ...a }) => /* @__PURE__ */ s.jsx(P, { className: e, "data-ox-slot": "sidebar-separator", ...a }), Se = ({ className: e, onClick: a }) => {
607
- const { isMobile: t, toggleSidebar: o } = M(), n = () => {
608
- t ? o() : a && a();
609
- }, i = t || a;
610
- return /* @__PURE__ */ s.jsx(
611
- "button",
612
- {
613
- "aria-label": "Toggle sidebar",
614
- className: r(
615
- "inline-flex size-8 items-center justify-center rounded-lg",
616
- "text-gray-1200 border border-transparent bg-transparent",
617
- {
618
- "ox-gray-outset-focus cursor-pointer hover:bg-gray-300": i
619
- },
620
- e
621
- ),
622
- "data-ox-slot": "sidebar-trigger",
623
- disabled: !i,
624
- type: "button",
625
- onClick: n,
626
- children: /* @__PURE__ */ s.jsx(y, { path: "mdiDockLeft", size: 0.8 })
627
- }
628
- );
650
+ let r;
651
+ return e[12] !== i || e[13] !== t || e[14] !== s ? (r = /* @__PURE__ */ b("button", { className: i, "data-ox-slot": "sidebar-menu-sub-button", type: "button", ...s, children: t }), e[12] = i, e[13] = t, e[14] = s, e[15] = r) : r = e[15], r;
652
+ }, Te = (n) => {
653
+ const e = g.c(10);
654
+ let t, l, s;
655
+ e[0] !== n ? ({
656
+ children: t,
657
+ className: l,
658
+ ...s
659
+ } = n, e[0] = n, e[1] = t, e[2] = l, e[3] = s) : (t = e[1], l = e[2], s = e[3]);
660
+ let o;
661
+ e[4] !== l ? (o = p("flex items-center gap-2", l), e[4] = l, e[5] = o) : o = e[5];
662
+ let a;
663
+ return e[6] !== t || e[7] !== s || e[8] !== o ? (a = /* @__PURE__ */ b("li", { className: o, "data-ox-slot": "sidebar-menu-sub-item", ...s, children: t }), e[6] = t, e[7] = s, e[8] = o, e[9] = a) : a = e[9], a;
664
+ }, He = (n) => {
665
+ const e = g.c(6);
666
+ let t, l;
667
+ e[0] !== n ? ({
668
+ className: t,
669
+ ...l
670
+ } = n, e[0] = n, e[1] = t, e[2] = l) : (t = e[1], l = e[2]);
671
+ let s;
672
+ return e[3] !== t || e[4] !== l ? (s = /* @__PURE__ */ b(Z, { className: t, "data-ox-slot": "sidebar-separator", ...l }), e[3] = t, e[4] = l, e[5] = s) : s = e[5], s;
673
+ }, Ae = (n) => {
674
+ const e = g.c(12), {
675
+ className: t,
676
+ onClick: l
677
+ } = n, {
678
+ isMobile: s,
679
+ toggleSidebar: o
680
+ } = H();
681
+ let a;
682
+ e[0] !== s || e[1] !== l || e[2] !== o ? (a = () => {
683
+ s ? o() : l && l();
684
+ }, e[0] = s, e[1] = l, e[2] = o, e[3] = a) : a = e[3];
685
+ const i = a, r = s || l;
686
+ let c;
687
+ e[4] !== t || e[5] !== r ? (c = p("inline-flex size-8 items-center justify-center rounded-lg", "border border-transparent bg-transparent text-gray-1200", {
688
+ "ox-gray-outset-focus cursor-pointer hover:bg-gray-300": r
689
+ }, t), e[4] = t, e[5] = r, e[6] = c) : c = e[6];
690
+ const d = !r;
691
+ let f;
692
+ e[7] === Symbol.for("react.memo_cache_sentinel") ? (f = /* @__PURE__ */ b(L, { path: "mdiDockLeft", size: 0.8 }), e[7] = f) : f = e[7];
693
+ let u;
694
+ return e[8] !== i || e[9] !== c || e[10] !== d ? (u = /* @__PURE__ */ b("button", { "aria-label": "Toggle sidebar", className: c, "data-ox-slot": "sidebar-trigger", disabled: d, type: "button", onClick: i, children: f }), e[8] = i, e[9] = c, e[10] = d, e[11] = u) : u = e[11], u;
629
695
  };
630
- function Ie({ children: e }) {
631
- const [a, t] = v(!1), [o, n] = v(!1);
632
- k(() => {
633
- const x = () => {
634
- n(window.innerWidth < j);
696
+ function qe(n) {
697
+ const e = g.c(11), {
698
+ children: t
699
+ } = n, [l, s] = E(!1), [o, a] = E(!1);
700
+ let i, r;
701
+ e[0] === Symbol.for("react.memo_cache_sentinel") ? (i = () => {
702
+ const S = () => {
703
+ a(window.innerWidth < B);
635
704
  };
636
- return x(), window.addEventListener("resize", x), () => window.removeEventListener("resize", x);
637
- }, []);
638
- const i = S(() => {
639
- t(!0);
640
- }, []), l = S(() => {
641
- t(!1);
642
- }, []), d = S(() => {
643
- t((x) => !x);
644
- }, []);
645
- return /* @__PURE__ */ s.jsx(
646
- T.Provider,
647
- {
648
- value: {
649
- closeSidebar: l,
650
- isMobile: o,
651
- mobileOpen: a,
652
- openSidebar: i,
653
- toggleSidebar: d
654
- },
655
- children: e
656
- }
657
- );
705
+ return S(), window.addEventListener("resize", S), () => window.removeEventListener("resize", S);
706
+ }, r = [], e[0] = i, e[1] = r) : (i = e[0], r = e[1]), j(i, r);
707
+ let c;
708
+ e[2] === Symbol.for("react.memo_cache_sentinel") ? (c = () => {
709
+ s(!0);
710
+ }, e[2] = c) : c = e[2];
711
+ const d = c;
712
+ let f;
713
+ e[3] === Symbol.for("react.memo_cache_sentinel") ? (f = () => {
714
+ s(!1);
715
+ }, e[3] = f) : f = e[3];
716
+ const u = f;
717
+ let m;
718
+ e[4] === Symbol.for("react.memo_cache_sentinel") ? (m = () => {
719
+ s(De);
720
+ }, e[4] = m) : m = e[4];
721
+ const x = m;
722
+ let h;
723
+ e[5] !== o || e[6] !== l ? (h = {
724
+ closeSidebar: u,
725
+ isMobile: o,
726
+ mobileOpen: l,
727
+ openSidebar: d,
728
+ toggleSidebar: x
729
+ }, e[5] = o, e[6] = l, e[7] = h) : h = e[7];
730
+ let v;
731
+ return e[8] !== t || e[9] !== h ? (v = /* @__PURE__ */ b(V.Provider, { value: h, children: t }), e[8] = t, e[9] = h, e[10] = v) : v = e[10], v;
732
+ }
733
+ function De(n) {
734
+ return !n;
658
735
  }
659
- const p = se, u = ce, C = ne;
660
- p.Header = xe;
661
- p.Content = oe;
662
- p.Footer = re;
663
- p.Separator = Oe;
664
- p.Trigger = Se;
665
- u.Item = pe;
666
- u.Button = me;
667
- u.Icon = H;
668
- u.Badge = be;
669
- u.Action = ue;
670
- u.Skeleton = fe;
671
- u.Sub = he;
672
- u.SubItem = ye;
673
- u.SubButton = ve;
674
- C.Label = de;
675
- C.Action = ie;
676
- C.Content = le;
736
+ const _ = xe, O = Oe, D = ge;
737
+ _.Header = Ne;
738
+ _.Content = pe;
739
+ _.Footer = he;
740
+ _.Separator = He;
741
+ _.Trigger = Ae;
742
+ O.Item = Ee;
743
+ O.Button = Pe;
744
+ O.Icon = q;
745
+ O.Badge = we;
746
+ O.Action = Ce;
747
+ O.Skeleton = Le;
748
+ O.Sub = Be;
749
+ O.SubItem = Te;
750
+ O.SubButton = ze;
751
+ D.Label = ye;
752
+ D.Action = ve;
753
+ D.Content = Se;
677
754
  export {
678
- Ce as OxAppLayout,
679
- Ne as OxLegacyHeader,
680
- Me as OxLegacyMainContent,
681
- m as OxLegacySidebar,
682
- ke as OxMainContent,
683
- p as OxSidebar,
684
- C as OxSidebarGroup,
685
- u as OxSidebarMenu,
686
- Ie as OxSidebarProvider,
687
- M as useOxSidebar
755
+ Ve as OxAppLayout,
756
+ Ye as OxLegacyHeader,
757
+ Fe as OxLegacyMainContent,
758
+ w as OxLegacySidebar,
759
+ Ke as OxMainContent,
760
+ _ as OxSidebar,
761
+ D as OxSidebarGroup,
762
+ O as OxSidebarMenu,
763
+ qe as OxSidebarProvider,
764
+ H as useOxSidebar
688
765
  };