@mechane-ai/elements 0.38.1 → 0.39.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/dist/layout.js CHANGED
@@ -1,24 +1,32 @@
1
- import { t as e } from "./header-styles-COxCYFZx.js";
2
- import { a as t, i as n, t as r } from "./src-d7EAi61b.js";
3
- import { E as i, T as a, i as o, j as s, n as c, w as l } from "./src-C-Sx37kz.js";
4
- import { t as u } from "./style-composition-uYlczSsB.js";
5
- import { t as d } from "./use-scroll-tab-index-Dxpdh4W7.js";
6
- import { Button as f } from "@base-ui/react/button";
7
- import { mergeProps as p } from "@base-ui/react/merge-props";
8
- import * as m from "@stylexjs/stylex";
9
- import { Children as h, createContext as g, useContext as _, useEffect as v, useId as y, useRef as b, useState as x } from "react";
10
- import { Fragment as S, jsx as C, jsxs as w } from "react/jsx-runtime";
11
- import { ArrowLeft as T, PanelLeft as E, X as D } from "lucide-react";
12
- import { Group as O, Panel as k, Separator as A } from "react-resizable-panels";
1
+ import { E as e, T as t, i as n, j as r, l as i, n as a, w as o } from "./src-C-Sx37kz.js";
2
+ import { t as s } from "./use-scroll-tab-index-Dxpdh4W7.js";
3
+ import { a as c, i as l } from "./src-CSWIG_op.js";
4
+ import { t as u } from "./header-styles-COxCYFZx.js";
5
+ import { t as d } from "./style-composition-uYlczSsB.js";
6
+ import { a as f, i as p, t as m } from "./src-d7EAi61b.js";
7
+ import { Button as h } from "@base-ui/react/button";
8
+ import { mergeProps as g } from "@base-ui/react/merge-props";
9
+ import * as _ from "@stylexjs/stylex";
10
+ import { Children as v, createContext as y, useContext as b, useEffect as x, useId as S, useRef as C, useState as w } from "react";
11
+ import { Fragment as T, jsx as E, jsxs as D } from "react/jsx-runtime";
12
+ import { ArrowLeft as O, PanelLeft as k, X as A } from "lucide-react";
13
+ import { Group as j, Panel as M, Separator as N } from "react-resizable-panels";
14
+ // packages/layout/src/page-content.tsx
15
+ function P({ children: e }) {
16
+ return /* @__PURE__ */ E("div", {
17
+ className: "x9f619 x78zum5 xdt5ytf xdz4d12 xeuugli xg7ukam",
18
+ children: e
19
+ });
20
+ }
13
21
  // packages/layout/src/frame.stylex.ts
14
- var j = {
22
+ var F = {
15
23
  sidebarMobile: "@media (max-width:800px)",
16
24
  sidebarDesktopQuery: "(min-width:801px)",
17
25
  sidebarCoarse: "@media (min-width:801px) and (pointer: coarse)",
18
26
  detailMobile: "@media (max-width:720px)",
19
27
  toolbarCompact: "@container toolbar (max-width:600px)",
20
28
  workbenchCompact: "@container workbench (max-width:860px)"
21
- }, M = g(null), N = {
29
+ }, I = y(null), L = {
22
30
  header: {
23
31
  kB7OPa: "x9f619",
24
32
  kVAEAm: "x1n2onr6",
@@ -82,54 +90,54 @@ var j = {
82
90
  k1xSpc: "x1s85apg x1rhi5y4",
83
91
  $$css: !0
84
92
  }
85
- }, P = {
86
- inline: N.inlineFooter,
87
- navigation: N.navigationFooter
93
+ }, R = {
94
+ inline: L.inlineFooter,
95
+ navigation: L.navigationFooter
88
96
  };
89
- function F({ header: t, navigationHeader: n, footer: r, close: i, children: a }) {
90
- let o = _(M), s = o !== null && !o.isExpanded, c = t != null;
91
- return /* @__PURE__ */ w(S, { children: [
92
- /* @__PURE__ */ w("div", {
93
- ...m.props(N.header, e.blockEnd, !c && N.emptyHeader),
94
- children: [/* @__PURE__ */ C("div", {
97
+ function z({ header: e, navigationHeader: t, footer: n, close: r, children: i }) {
98
+ let a = b(I), o = a !== null && !a.isExpanded, s = e != null;
99
+ return /* @__PURE__ */ D(T, { children: [
100
+ /* @__PURE__ */ D("div", {
101
+ ..._.props(L.header, u.blockEnd, !s && L.emptyHeader),
102
+ children: [/* @__PURE__ */ E("div", {
95
103
  ...{
96
104
  0: { className: "x78zum5 x6s0dn4 x98rzlu xeuugli x1dc62k6" },
97
105
  1: { className: "x78zum5 x6s0dn4 x98rzlu xeuugli xl56j7k x1l31gyv xnjsko4 x7qzpmf" }
98
- }[!!s | 0],
99
- children: t
100
- }), i]
106
+ }[!!o | 0],
107
+ children: e
108
+ }), r]
101
109
  }),
102
- n,
103
- /* @__PURE__ */ C("div", {
110
+ t,
111
+ /* @__PURE__ */ E("div", {
104
112
  role: "region",
105
113
  "aria-label": "Navigation links",
106
114
  className: "x98rzlu x2lwn1j x1odjw0f xish69e x1t137rt x7d1sxj x13qnu6 x9v5kkp x19rmrnh x1bqaal",
107
- children: a
115
+ children: i
108
116
  }),
109
- r != null && /* @__PURE__ */ C("div", {
117
+ n != null && /* @__PURE__ */ E("div", {
110
118
  className: "x2lah0s xeuugli xr1yuqi xpvm0e4 x153jb6y",
111
- children: r
119
+ children: n
112
120
  })
113
121
  ] });
114
122
  }
115
- function I() {
116
- return /* @__PURE__ */ C("div", {
123
+ function ee() {
124
+ return /* @__PURE__ */ E("div", {
117
125
  className: "x78zum5 x6s0dn4 xl56j7k x14j3e4g x2lah0s",
118
- children: /* @__PURE__ */ C(t.Close, {
119
- render: /* @__PURE__ */ C(a, {
126
+ children: /* @__PURE__ */ E(f.Close, {
127
+ render: /* @__PURE__ */ E(t, {
120
128
  variant: "ghost",
121
129
  "aria-label": "Close navigation"
122
130
  }),
123
- children: /* @__PURE__ */ C(D, {
131
+ children: /* @__PURE__ */ E(A, {
124
132
  size: 16,
125
133
  "aria-hidden": !0
126
134
  })
127
135
  })
128
136
  });
129
137
  }
130
- function L({ children: e, label: t = "Main" }) {
131
- let n = _(M), r = n !== null && !n.isExpanded;
132
- return /* @__PURE__ */ C("nav", {
138
+ function te({ children: e, label: t = "Main" }) {
139
+ let n = b(I), r = n !== null && !n.isExpanded;
140
+ return /* @__PURE__ */ E("nav", {
133
141
  "aria-label": t,
134
142
  ...{
135
143
  0: { className: "x78zum5 xdt5ytf xksvo5r" },
@@ -138,12 +146,12 @@ function L({ children: e, label: t = "Main" }) {
138
146
  children: e
139
147
  });
140
148
  }
141
- function R({ children: e, label: t }) {
142
- let n = _(M), r = n !== null && !n.isExpanded, i = y();
143
- return /* @__PURE__ */ w("section", {
149
+ function ne({ children: e, label: t }) {
150
+ let n = b(I), r = n !== null && !n.isExpanded, i = S();
151
+ return /* @__PURE__ */ D("section", {
144
152
  "aria-labelledby": i,
145
153
  className: "xeuugli",
146
- children: [/* @__PURE__ */ C("div", {
154
+ children: [/* @__PURE__ */ E("div", {
147
155
  id: i,
148
156
  ...{
149
157
  0: { className: "xeuugli xmblgzg xngumbj xksvo5r x153jb6y x1hz01jw xy8obcc xas2l8k xk4h15q xj0a0fe" },
@@ -153,22 +161,22 @@ function R({ children: e, label: t }) {
153
161
  }), e]
154
162
  });
155
163
  }
156
- function ee({ children: e, icon: t, isSelected: n = !1, shouldCloseOnActivate: r = !0, onClick: i, className: a, style: o, ...s }) {
157
- let c = _(M), l = y(), d = c !== null && !c.isExpanded;
158
- return /* @__PURE__ */ C("div", {
164
+ function re({ children: e, icon: t, isSelected: n = !1, shouldCloseOnActivate: r = !0, onClick: i, className: a, style: o, ...s }) {
165
+ let c = b(I), l = S(), u = c !== null && !c.isExpanded;
166
+ return /* @__PURE__ */ E("div", {
159
167
  ...{
160
168
  0: { className: "x78zum5 xeuugli x1ok0vyi" },
161
169
  1: { className: "x78zum5 xeuugli x1ok0vyi x1r7kqkb" }
162
170
  }[!!n | 0],
163
- children: /* @__PURE__ */ w(f, {
171
+ children: /* @__PURE__ */ D(h, {
164
172
  ...s,
165
- ...u({
173
+ ...d({
166
174
  className: a,
167
175
  style: o,
168
176
  styles: {
169
177
  0: { className: "x9f619 x78zum5 x6s0dn4 x1ok0vyi xbixft xjbqb8w x1hz01jw xtqrqnz x1778rvt xj57cvi xvmahel xdpxx8g xkrqix3 x17lu4q8 x1480za7 x13qnu6 x9v5kkp x19rmrnh x1bqaal xc342km x1ypdohk xwj21n9 x1m8qfh3 x1nhvcw1 x1hnptsi x1f9pz31 x992rv9 x17tes2r xh8yej3 xeuugli xt970qd xksvo5r" },
170
178
  1: { className: "x9f619 x78zum5 x6s0dn4 x1ok0vyi xbixft xjbqb8w x1hz01jw xtqrqnz x1778rvt xj57cvi xvmahel xdpxx8g xkrqix3 x17lu4q8 x1480za7 x13qnu6 x9v5kkp x19rmrnh x1bqaal xc342km x1ypdohk xwj21n9 x1m8qfh3 x1hnptsi x1f9pz31 x992rv9 x17tes2r xh8yej3 xeuugli xt970qd xksvo5r xl56j7k x1l31gyv" }
171
- }[!!d | 0]
179
+ }[!!u | 0]
172
180
  }),
173
181
  "aria-current": n ? "page" : void 0,
174
182
  "aria-labelledby": s["aria-labelledby"] ?? (s["aria-label"] === void 0 ? l : void 0),
@@ -176,29 +184,29 @@ function ee({ children: e, icon: t, isSelected: n = !1, shouldCloseOnActivate: r
176
184
  onClick: (e) => {
177
185
  i !== void 0 && i(e), !e.defaultPrevented && c !== null && r && c.onNavigate();
178
186
  },
179
- children: [t != null && /* @__PURE__ */ C("span", {
187
+ children: [t != null && /* @__PURE__ */ E("span", {
180
188
  "aria-hidden": !0,
181
189
  className: "x3nfvp2 x6s0dn4 xl56j7k xtwnzbg x18utl2x x2lah0s",
182
190
  children: t
183
- }), /* @__PURE__ */ C("span", {
191
+ }), /* @__PURE__ */ E("span", {
184
192
  id: l,
185
193
  ...{
186
194
  0: { className: "xeuugli xb3r6kr xlyipyv xuxw1ft" },
187
195
  1: { className: "xeuugli xb3r6kr xlyipyv xuxw1ft x1s85apg xeod2sa" }
188
- }[!!d | 0],
196
+ }[!!u | 0],
189
197
  children: e
190
198
  })]
191
199
  })
192
200
  });
193
201
  }
194
- function te({ children: e, icon: t, isSelected: n = !1, onClick: r, className: i, style: a, ...o }) {
195
- let s = _(M), c = y(), l = s !== null && !s.isExpanded, u = {
202
+ function B({ children: e, icon: t, isSelected: n = !1, onClick: r, className: i, style: a, ...o }) {
203
+ let s = b(I), c = S(), l = s !== null && !s.isExpanded, u = {
196
204
  0: { className: "x9f619 x78zum5 x6s0dn4 x1ok0vyi xbixft xjbqb8w x1hz01jw xtqrqnz x1778rvt xj57cvi xvmahel xdpxx8g xkrqix3 x17lu4q8 x1480za7 x13qnu6 x9v5kkp x19rmrnh x1bqaal x1nhvcw1 x1hnptsi x1f9pz31 x992rv9 x17tes2r xh8yej3 xeuugli xt970qd xksvo5r" },
197
205
  2: { className: "x9f619 x78zum5 x6s0dn4 x1ok0vyi xbixft xjbqb8w x1hz01jw xtqrqnz x1778rvt xj57cvi xvmahel xdpxx8g xkrqix3 x17lu4q8 x1480za7 x13qnu6 x9v5kkp x19rmrnh x1bqaal x1hnptsi x1f9pz31 x992rv9 x17tes2r xh8yej3 xeuugli xt970qd xksvo5r xl56j7k x1l31gyv" },
198
206
  1: { className: "x9f619 x78zum5 x6s0dn4 x1ok0vyi xbixft x1hz01jw xtqrqnz x1778rvt xj57cvi xvmahel xdpxx8g xkrqix3 x17lu4q8 x1480za7 x13qnu6 x9v5kkp x19rmrnh x1bqaal x1nhvcw1 x1hnptsi x1f9pz31 x992rv9 x17tes2r xh8yej3 xeuugli xt970qd xksvo5r x1r7kqkb" },
199
207
  3: { className: "x9f619 x78zum5 x6s0dn4 x1ok0vyi xbixft x1hz01jw xtqrqnz x1778rvt xj57cvi xvmahel xdpxx8g xkrqix3 x17lu4q8 x1480za7 x13qnu6 x9v5kkp x19rmrnh x1bqaal x1hnptsi x1f9pz31 x992rv9 x17tes2r xh8yej3 xeuugli xt970qd xksvo5r xl56j7k x1l31gyv x1r7kqkb" }
200
208
  }[!!l << 1 | !!n];
201
- return /* @__PURE__ */ w("a", {
209
+ return /* @__PURE__ */ D("a", {
202
210
  ...o,
203
211
  "aria-current": n ? "page" : void 0,
204
212
  "aria-labelledby": o["aria-labelledby"] ?? (o["aria-label"] === void 0 ? c : void 0),
@@ -213,11 +221,11 @@ function te({ children: e, icon: t, isSelected: n = !1, onClick: r, className: i
213
221
  ...u.style,
214
222
  ...a
215
223
  },
216
- children: [t != null && /* @__PURE__ */ C("span", {
224
+ children: [t != null && /* @__PURE__ */ E("span", {
217
225
  "aria-hidden": !0,
218
226
  className: "x3nfvp2 x6s0dn4 xl56j7k xtwnzbg x18utl2x x2lah0s",
219
227
  children: t
220
- }), /* @__PURE__ */ C("span", {
228
+ }), /* @__PURE__ */ E("span", {
221
229
  id: c,
222
230
  ...{
223
231
  0: { className: "xeuugli xb3r6kr xlyipyv xuxw1ft" },
@@ -227,9 +235,9 @@ function te({ children: e, icon: t, isSelected: n = !1, onClick: r, className: i
227
235
  })]
228
236
  });
229
237
  }
230
- function ne({ children: e, shouldGrow: t = !1 }) {
231
- let n = _(M), r = n !== null && !n.isExpanded;
232
- return /* @__PURE__ */ C("span", {
238
+ function V({ children: e, shouldGrow: t = !1 }) {
239
+ let n = b(I), r = n !== null && !n.isExpanded;
240
+ return /* @__PURE__ */ E("span", {
233
241
  ...{
234
242
  0: { className: "xeuugli xb3r6kr xlyipyv xuxw1ft" },
235
243
  2: { className: "xeuugli xb3r6kr xlyipyv xuxw1ft x78zum5 x6s0dn4 x1hnptsi x98rzlu" },
@@ -239,47 +247,174 @@ function ne({ children: e, shouldGrow: t = !1 }) {
239
247
  children: e
240
248
  });
241
249
  }
242
- function re({ children: t, layout: n = "inline" }) {
243
- let r = _(M), i = r !== null && !r.isExpanded;
244
- return /* @__PURE__ */ C("div", {
245
- ...m.props(N.footer, e.blockStart, i && N.collapsedFooter, P[n]),
246
- children: t
250
+ function H({ children: e, layout: t = "inline" }) {
251
+ let n = b(I), r = n !== null && !n.isExpanded;
252
+ return /* @__PURE__ */ E("div", {
253
+ ..._.props(L.footer, u.blockStart, r && L.collapsedFooter, R[t]),
254
+ children: e
247
255
  });
248
256
  }
249
- function ie() {
250
- let n = _(M);
251
- return n === null ? null : /* @__PURE__ */ w(S, { children: [/* @__PURE__ */ C("div", {
252
- ...m.props(N.toggleCell, e.inlineEnd, N.desktop),
253
- children: /* @__PURE__ */ C(a, {
254
- ref: n.navigationToggleRef,
257
+ function U() {
258
+ let e = b(I);
259
+ return e === null ? null : /* @__PURE__ */ D(T, { children: [/* @__PURE__ */ E("div", {
260
+ ..._.props(L.toggleCell, u.inlineEnd, L.desktop),
261
+ children: /* @__PURE__ */ E(t, {
262
+ ref: e.navigationToggleRef,
255
263
  variant: "ghost",
256
- "aria-label": n.isExpanded ? "Collapse navigation" : "Expand navigation",
257
- "aria-controls": n.sidebarId,
258
- "aria-expanded": n.isExpanded,
259
- onClick: n.onToggle,
260
- children: /* @__PURE__ */ C(E, {
264
+ "aria-label": e.isExpanded ? "Collapse navigation" : "Expand navigation",
265
+ "aria-controls": e.sidebarId,
266
+ "aria-expanded": e.isExpanded,
267
+ onClick: e.onToggle,
268
+ children: /* @__PURE__ */ E(k, {
261
269
  size: 16,
262
270
  "aria-hidden": !0
263
271
  })
264
272
  })
265
- }), /* @__PURE__ */ C("div", {
266
- ...m.props(N.toggleCell, e.inlineEnd, N.mobile),
267
- children: /* @__PURE__ */ C(t.Trigger, {
268
- ref: n.mobileNavigationToggleRef,
269
- handle: n.drawerHandle,
270
- render: /* @__PURE__ */ C(a, {
273
+ }), /* @__PURE__ */ E("div", {
274
+ ..._.props(L.toggleCell, u.inlineEnd, L.mobile),
275
+ children: /* @__PURE__ */ E(f.Trigger, {
276
+ ref: e.mobileNavigationToggleRef,
277
+ handle: e.drawerHandle,
278
+ render: /* @__PURE__ */ E(t, {
271
279
  variant: "ghost",
272
280
  "aria-label": "Open navigation"
273
281
  }),
274
- children: /* @__PURE__ */ C(E, {
282
+ children: /* @__PURE__ */ E(k, {
275
283
  size: 16,
276
284
  "aria-hidden": !0
277
285
  })
278
286
  })
279
287
  })] });
280
288
  }
289
+ // packages/layout/src/page-toolbar.tsx
290
+ var W = {
291
+ toolbar: {
292
+ kB7OPa: "x9f619",
293
+ kVAEAm: "x7wzq59",
294
+ k87sOh: "x13vifvy",
295
+ kY2c9j: "x11ru5tl",
296
+ k1xSpc: "x78zum5",
297
+ kwnvtZ: "x1a02dak",
298
+ k9g6sI: "x12h1iku",
299
+ kanfag: "x14ut1dr",
300
+ kGNEyG: "x1qjc9v5",
301
+ kAzted: "x1oec0jp",
302
+ kmuXW: "x2lah0s",
303
+ kWkggS: "xpvm0e4",
304
+ kMwMTN: "xbixft",
305
+ kMv6JI: "x1hz01jw",
306
+ kGuDYH: "xtqrqnz",
307
+ kLWn49: "x1778rvt",
308
+ k63SB2: "xj57cvi",
309
+ khiITx: "xvmahel",
310
+ k7Eaqz: "xeuugli",
311
+ $$css: !0
312
+ },
313
+ action: {
314
+ k7Eaqz: "xeuugli",
315
+ ks0D6T: "x193iq5w",
316
+ $$css: !0
317
+ }
318
+ };
319
+ function G({ title: e, actions: t, showBreadcrumb: n = !1, showNavigation: r = !0, leading: i }) {
320
+ let a = v.toArray(e).length > 0, o = v.toArray(t).length > 0, s = v.toArray(i).length > 0;
321
+ if (v.toArray([
322
+ e,
323
+ t,
324
+ i
325
+ ]).length === 0) return null;
326
+ let c = n ? "nav" : "h1", l = n ? "div" : "span";
327
+ return /* @__PURE__ */ D("div", {
328
+ ..._.props(W.toolbar, u.blockEnd),
329
+ children: [
330
+ s ? /* @__PURE__ */ E("div", {
331
+ className: "x78zum5 x6s0dn4 xyibt8p x2lah0s",
332
+ children: i
333
+ }) : r && /* @__PURE__ */ E(U, {}),
334
+ a && /* @__PURE__ */ E(c, {
335
+ tabIndex: n ? void 0 : -1,
336
+ "aria-label": n ? "Breadcrumb" : void 0,
337
+ className: "x78zum5 x6s0dn4 x1hnptsi x1dc62k6 xjnfzvw x1oec0jp x1cqoux5 x1ghz6dp x1qlqyl8 xj57cvi x1t137rt",
338
+ children: /* @__PURE__ */ E(l, {
339
+ className: "xeuugli xb3r6kr xlyipyv xuxw1ft",
340
+ children: e
341
+ })
342
+ }),
343
+ o && /* @__PURE__ */ E("div", {
344
+ className: "x78zum5 x1a02dak x6s0dn4 xunmzkg x1dc62k6 xeuugli x1oec0jp x193iq5w x9f619 xs83m0k x8x9d4c",
345
+ children: t
346
+ })
347
+ ]
348
+ });
349
+ }
350
+ function K({ icon: e, children: t, ...n }) {
351
+ let r = e != null;
352
+ return /* @__PURE__ */ E("div", {
353
+ className: "x9f619 x78zum5 x1qjc9v5 xeuugli",
354
+ children: /* @__PURE__ */ D(o, {
355
+ ...n,
356
+ variant: "ghost",
357
+ "aria-label": n["aria-label"] ?? (typeof t == "string" ? t : void 0),
358
+ xstyle: W.action,
359
+ children: [r && /* @__PURE__ */ E("span", {
360
+ "aria-hidden": !0,
361
+ className: "x3nfvp2 x2lah0s x6s0dn4",
362
+ children: e
363
+ }), r || typeof t == "string" ? /* @__PURE__ */ E("span", {
364
+ ...{
365
+ 0: { className: "xeuugli xb3r6kr xlyipyv xuxw1ft" },
366
+ 1: { className: "xeuugli xb3r6kr xlyipyv xuxw1ft xt0psk2 xlllsrz" }
367
+ }[!!r | 0],
368
+ children: t
369
+ }) : t]
370
+ })
371
+ });
372
+ }
373
+ // packages/layout/src/page-layout.tsx
374
+ function q({ ref: e, navigation: t, children: n, scrollRestorationId: r = "page-body", ...i }) {
375
+ let a = s();
376
+ return /* @__PURE__ */ D("div", {
377
+ ref: e,
378
+ className: "xtdtrs8 xmz0i5r xeuugli x2lwn1j xrvj5dj x16p6thf",
379
+ children: [/* @__PURE__ */ D("div", {
380
+ className: "xeuugli",
381
+ children: [/* @__PURE__ */ E(G, { ...i }), t !== void 0 && ("isPlaceholder" in t ? /* @__PURE__ */ E(c, { ...t }) : /* @__PURE__ */ E(l, { ...t }))]
382
+ }), /* @__PURE__ */ E("div", {
383
+ ref: a.ref,
384
+ tabIndex: a.tabIndex,
385
+ "data-scroll-restoration-id": r,
386
+ className: "x78zum5 xdt5ytf xeuugli x2lwn1j xysyzu8 xpqogu8 x78161z xoka7y6",
387
+ children: n
388
+ })]
389
+ });
390
+ }
391
+ function J({ children: e, summary: t, breakdown: n, ...r }) {
392
+ let a = t != null && t !== !1, o = S(), s = r.id ?? o;
393
+ return /* @__PURE__ */ D("section", {
394
+ "aria-labelledby": s,
395
+ className: "xeuugli x2lah0s xc8icb0",
396
+ children: [/* @__PURE__ */ E("div", {
397
+ className: "x1uhb9sk xsbffnv x13vifvy x11ru5tl",
398
+ children: /* @__PURE__ */ E(i, {
399
+ ...r,
400
+ id: s
401
+ })
402
+ }), /* @__PURE__ */ D("div", {
403
+ className: "xc8icb0",
404
+ children: [
405
+ a && /* @__PURE__ */ E(P, { children: t }),
406
+ n,
407
+ e
408
+ ]
409
+ })]
410
+ });
411
+ }
281
412
  // packages/layout/src/navigation-rail.tsx
282
- var z = g("rail"), B = {
413
+ var Y = y("rail"), X = {
414
+ action: {
415
+ kSGwAc: "xamitd3",
416
+ $$css: !0
417
+ },
283
418
  selected: {
284
419
  kHjaVl: "x1yk04ar",
285
420
  $$css: !0
@@ -309,84 +444,79 @@ var z = g("rail"), B = {
309
444
  $$css: !0
310
445
  }
311
446
  };
312
- function V({ label: e, links: t, action: n }) {
313
- let o = _(z) === "drawer", c = _(M);
314
- function u(e, t) {
447
+ function ie({ label: n, links: i, action: a }) {
448
+ let s = b(Y) === "drawer", c = b(I);
449
+ function l(e, t) {
315
450
  e?.(t);
316
451
  let n = t.metaKey || t.ctrlKey, r = t.shiftKey || t.altKey;
317
452
  t.button !== 0 || n || r || c?.onNavigate();
318
453
  }
319
- let d = (e) => {
320
- n?.onClick(e), e.defaultPrevented || c?.onNavigate();
454
+ let u = (e) => {
455
+ a?.onClick(e), e.defaultPrevented || c?.onNavigate();
321
456
  };
322
- return o ? /* @__PURE__ */ w("div", {
457
+ return s ? /* @__PURE__ */ D("div", {
323
458
  className: "x78zum5 xdt5ytf x1qjc9v5 x2lah0s xeuugli",
324
- children: [/* @__PURE__ */ C("nav", {
325
- "aria-label": e,
459
+ children: [/* @__PURE__ */ E("nav", {
460
+ "aria-label": n,
326
461
  className: "xrvj5dj x1mt1orb x1rnidkh xunmzkg x1s01oa9",
327
- children: t.map(({ label: e, icon: t, isCurrent: n = !1, ...r }) => /* @__PURE__ */ w("a", {
328
- ...p(m.props(s.base, s.button, B.mobileLink, B.rounded, B.selected), r),
462
+ children: i.map(({ label: e, icon: t, isCurrent: n = !1, ...i }) => /* @__PURE__ */ D("a", {
463
+ ...g(_.props(r.base, r.button, X.mobileLink, X.rounded, X.selected), i),
329
464
  "aria-current": n ? "location" : void 0,
330
- onClick: (e) => u(r.onClick, e),
331
- children: [/* @__PURE__ */ C("span", {
465
+ onClick: (e) => l(i.onClick, e),
466
+ children: [/* @__PURE__ */ E("span", {
332
467
  "aria-hidden": !0,
333
468
  className: "x3nfvp2 x2lah0s xtwnzbg x18utl2x",
334
469
  children: t
335
- }), /* @__PURE__ */ C("span", {
470
+ }), /* @__PURE__ */ E("span", {
336
471
  className: "xeuugli x193iq5w xj0a0fe",
337
472
  children: e
338
473
  })]
339
- }, r.href))
340
- }), n !== void 0 && /* @__PURE__ */ C("div", {
474
+ }, i.href))
475
+ }), a !== void 0 && /* @__PURE__ */ E("div", {
341
476
  className: "xrvj5dj x14w6jbu xngumbj xso031l x1q0q8m5 x1qndepd",
342
- children: /* @__PURE__ */ w(l, {
477
+ children: /* @__PURE__ */ D(o, {
343
478
  variant: "ghost",
344
- onClick: d,
345
- children: [/* @__PURE__ */ C("span", {
479
+ onClick: u,
480
+ children: [/* @__PURE__ */ E("span", {
346
481
  "aria-hidden": !0,
347
482
  className: "x3nfvp2 x2lah0s xtwnzbg x18utl2x",
348
- children: n.icon
349
- }), n.label]
483
+ children: a.icon
484
+ }), a.label]
350
485
  })
351
486
  })]
352
- }) : /* @__PURE__ */ C(r.Provider, { children: /* @__PURE__ */ w("div", {
353
- className: "x78zum5 xdt5ytf x1qjc9v5 x2lah0s xeuugli",
354
- children: [/* @__PURE__ */ C("nav", {
355
- "aria-label": e,
356
- className: "x78zum5 xdt5ytf x1qjc9v5",
357
- children: t.map(({ label: e, icon: t, isCurrent: n = !1, ...a }) => /* @__PURE__ */ C("div", {
358
- className: "x1n2onr6 x78zum5 x6s0dn4 xl56j7k x1oec0jp",
359
- children: /* @__PURE__ */ w(r.Root, { children: [/* @__PURE__ */ C(r.Trigger, {
360
- render: /* @__PURE__ */ C(i, {
361
- ...p({ className: "x1yk04ar" }, a),
362
- "aria-label": e,
363
- "aria-current": n ? "location" : void 0,
364
- onClick: (e) => u(a.onClick, e)
365
- }),
366
- children: t
367
- }), /* @__PURE__ */ C(r.Portal, { children: /* @__PURE__ */ C(r.Positioner, {
368
- side: "right",
369
- children: /* @__PURE__ */ C(r.Popup, { children: e })
370
- }) })] })
371
- }, a.href))
372
- }), n !== void 0 && /* @__PURE__ */ w(S, { children: [/* @__PURE__ */ C("hr", { className: "xc342km x178xt8z x13fuv20 xhjagg4 xv06hpe xn92wy8" }), /* @__PURE__ */ C("div", {
373
- className: "x1n2onr6 x78zum5 x6s0dn4 xl56j7k x1oec0jp",
374
- children: /* @__PURE__ */ w(r.Root, { children: [/* @__PURE__ */ C(r.Trigger, {
375
- render: /* @__PURE__ */ C(a, {
376
- variant: "ghost",
377
- "aria-label": n.label
487
+ }) : /* @__PURE__ */ E(m.Provider, { children: /* @__PURE__ */ D("div", {
488
+ className: "x78zum5 xdt5ytf x1qjc9v5 x2lah0s xeuugli x1yrrsrt x1c526fk",
489
+ children: [/* @__PURE__ */ E("nav", {
490
+ "aria-label": n,
491
+ className: "x78zum5 xdt5ytf x6s0dn4 xunmzkg",
492
+ children: i.map(({ label: t, icon: n, isCurrent: r = !1, ...i }) => /* @__PURE__ */ D(m.Root, { children: [/* @__PURE__ */ E(m.Trigger, {
493
+ render: /* @__PURE__ */ E(e, {
494
+ ...g({ className: "x1yk04ar" }, i),
495
+ "aria-label": t,
496
+ "aria-current": r ? "location" : void 0,
497
+ onClick: (e) => l(i.onClick, e)
378
498
  }),
379
- onClick: d,
380
- children: n.icon
381
- }), /* @__PURE__ */ C(r.Portal, { children: /* @__PURE__ */ C(r.Positioner, {
499
+ children: n
500
+ }), /* @__PURE__ */ E(m.Portal, { children: /* @__PURE__ */ E(m.Positioner, {
382
501
  side: "right",
383
- children: /* @__PURE__ */ C(r.Popup, { children: n.label })
384
- }) })] })
385
- })] })]
502
+ children: /* @__PURE__ */ E(m.Popup, { children: t })
503
+ }) })] }, i.href))
504
+ }), a !== void 0 && /* @__PURE__ */ D(T, { children: [/* @__PURE__ */ E("hr", { className: "xc342km x178xt8z x13fuv20 xhjagg4 xv06hpe xn92wy8" }), /* @__PURE__ */ D(m.Root, { children: [/* @__PURE__ */ E(m.Trigger, {
505
+ render: /* @__PURE__ */ E(t, {
506
+ variant: "ghost",
507
+ "aria-label": a.label,
508
+ xstyle: X.action
509
+ }),
510
+ onClick: u,
511
+ children: a.icon
512
+ }), /* @__PURE__ */ E(m.Portal, { children: /* @__PURE__ */ E(m.Positioner, {
513
+ side: "right",
514
+ children: /* @__PURE__ */ E(m.Popup, { children: a.label })
515
+ }) })] })] })]
386
516
  }) });
387
517
  }
388
518
  // packages/layout/src/app-shell.tsx
389
- var H = {
519
+ var Z = {
390
520
  sidebar: {
391
521
  kB7OPa: "x9f619",
392
522
  k1xSpc: "x78zum5 x1ykma7f",
@@ -423,108 +553,108 @@ var H = {
423
553
  $$css: !0
424
554
  }
425
555
  };
426
- function U({ rail: n, railFooter: r, sidebarHeader: i, sidebar: a, footer: o, children: s, mainId: c = "main", shouldFocus: l = !1 }) {
427
- let u = n != null, d = r != null, [f, p] = x(!0), [h, g] = x(!1), _ = l || u && !f, [T] = x(() => t.createHandle()), E = y(), D = b(null), O = b(null), k = b(null), A = b(!1);
428
- return v(() => {
429
- let e = globalThis.matchMedia(j.sidebarDesktopQuery);
556
+ function ae({ rail: e, railFooter: t, sidebarHeader: n, sidebar: r, footer: i, children: a, mainId: o = "main", shouldFocus: s = !1 }) {
557
+ let c = e != null, l = t != null, [d, p] = w(!0), [m, h] = w(!1), g = s || c && !d, [v] = w(() => f.createHandle()), y = S(), b = C(null), O = C(null), k = C(null), A = C(!1);
558
+ return x(() => {
559
+ let e = globalThis.matchMedia(F.sidebarDesktopQuery);
430
560
  function t() {
431
- e.matches && g(!1);
561
+ e.matches && h(!1);
432
562
  }
433
563
  return e.addEventListener("change", t), () => e.removeEventListener("change", t);
434
- }, []), /* @__PURE__ */ w(M.Provider, {
564
+ }, []), /* @__PURE__ */ D(I.Provider, {
435
565
  value: {
436
- isExpanded: f,
437
- sidebarId: E,
438
- drawerHandle: T,
439
- navigationToggleRef: D,
566
+ isExpanded: d,
567
+ sidebarId: y,
568
+ drawerHandle: v,
569
+ navigationToggleRef: b,
440
570
  mobileNavigationToggleRef: O,
441
571
  onToggle: () => p((e) => !e),
442
572
  onNavigate: () => {
443
- A.current = h, g(!1);
573
+ A.current = m, h(!1);
444
574
  }
445
575
  },
446
- children: [/* @__PURE__ */ w("div", {
576
+ children: [/* @__PURE__ */ D("div", {
447
577
  className: "x9f619 x1ov3xa9 x78zum5 xpvm0e4 xbixft x1hz01jw xtqrqnz x1778rvt xvmahel",
448
578
  children: [
449
- u && /* @__PURE__ */ w("div", {
450
- hidden: l,
451
- ...m.props(H.sidebar, e.inlineEnd, H.rail, l && H.hidden),
452
- children: [/* @__PURE__ */ C("div", {
579
+ c && /* @__PURE__ */ D("div", {
580
+ hidden: s,
581
+ ..._.props(Z.sidebar, u.inlineEnd, Z.rail, s && Z.hidden),
582
+ children: [/* @__PURE__ */ E("div", {
453
583
  className: "x98rzlu x2lwn1j x1odjw0f x1e4zzel",
454
- children: n
455
- }), d && /* @__PURE__ */ C("div", {
584
+ children: e
585
+ }), l && /* @__PURE__ */ E("div", {
456
586
  className: "x2lah0s x1a148e8",
457
- children: /* @__PURE__ */ C("div", {
587
+ children: /* @__PURE__ */ E("div", {
458
588
  className: "x78zum5 x6s0dn4 xl56j7k x14j3e4g xnyqvp6",
459
- children: r
589
+ children: t
460
590
  })
461
591
  })]
462
592
  }),
463
- /* @__PURE__ */ C("aside", {
464
- id: E,
593
+ /* @__PURE__ */ E("aside", {
594
+ id: y,
465
595
  "aria-label": "Navigation",
466
- hidden: _,
467
- ...m.props(H.sidebar, e.inlineEnd, u && H.secondary, !u && !f && H.collapsed, _ && H.hidden),
468
- children: /* @__PURE__ */ C(F, {
469
- header: i,
470
- footer: o,
471
- children: a
596
+ hidden: g,
597
+ ..._.props(Z.sidebar, u.inlineEnd, c && Z.secondary, !c && !d && Z.collapsed, g && Z.hidden),
598
+ children: /* @__PURE__ */ E(z, {
599
+ header: n,
600
+ footer: i,
601
+ children: r
472
602
  })
473
603
  }),
474
- /* @__PURE__ */ C("main", {
475
- id: c,
604
+ /* @__PURE__ */ E("main", {
605
+ id: o,
476
606
  tabIndex: -1,
477
607
  className: "xeuugli x98rzlu",
478
- children: s
608
+ children: a
479
609
  })
480
610
  ]
481
- }), /* @__PURE__ */ C(t.Root, {
482
- handle: T,
483
- open: h && !l,
484
- onOpenChange: g,
485
- children: /* @__PURE__ */ w(t.Portal, { children: [/* @__PURE__ */ C(t.Backdrop, {}), /* @__PURE__ */ C(t.Viewport, { children: /* @__PURE__ */ w(t.Popup, {
611
+ }), /* @__PURE__ */ E(f.Root, {
612
+ handle: v,
613
+ open: m && !s,
614
+ onOpenChange: h,
615
+ children: /* @__PURE__ */ D(f.Portal, { children: [/* @__PURE__ */ E(f.Backdrop, {}), /* @__PURE__ */ E(f.Viewport, { children: /* @__PURE__ */ D(f.Popup, {
486
616
  ref: k,
487
- xstyle: H.drawer,
617
+ xstyle: Z.drawer,
488
618
  finalFocus: () => {
489
619
  if (A.current) {
490
620
  A.current = !1;
491
- let e = document.querySelector(`#${CSS.escape(c)}`), t = document.activeElement;
621
+ let e = document.querySelector(`#${CSS.escape(o)}`), t = document.activeElement;
492
622
  if (t instanceof HTMLElement) {
493
623
  let e = t.closest("[role=\"dialog\"], [role=\"alertdialog\"]");
494
624
  if (e !== null && e !== k.current) return t;
495
625
  }
496
626
  return t instanceof HTMLElement && e?.contains(t) === !0 ? t : e;
497
627
  }
498
- return globalThis.matchMedia(j.sidebarDesktopQuery).matches ? D.current : O.current;
628
+ return globalThis.matchMedia(F.sidebarDesktopQuery).matches ? b.current : O.current;
499
629
  },
500
- children: [/* @__PURE__ */ C(t.Title, {
630
+ children: [/* @__PURE__ */ E(f.Title, {
501
631
  isVisuallyHidden: !0,
502
632
  children: "Navigation"
503
- }), /* @__PURE__ */ C(F, {
504
- header: i,
505
- navigationHeader: u && /* @__PURE__ */ C(z.Provider, {
633
+ }), /* @__PURE__ */ E(z, {
634
+ header: n,
635
+ navigationHeader: c && /* @__PURE__ */ E(Y.Provider, {
506
636
  value: "drawer",
507
- children: n
637
+ children: e
508
638
  }),
509
- footer: /* @__PURE__ */ w(S, { children: [o, u && d && /* @__PURE__ */ C(z.Provider, {
639
+ footer: /* @__PURE__ */ D(T, { children: [i, c && l && /* @__PURE__ */ E(Y.Provider, {
510
640
  value: "drawer",
511
- children: /* @__PURE__ */ C("div", {
641
+ children: /* @__PURE__ */ E("div", {
512
642
  className: "x2lah0s x1a148e8",
513
- children: /* @__PURE__ */ C("div", {
643
+ children: /* @__PURE__ */ E("div", {
514
644
  className: "x78zum5 x6s0dn4 xl56j7k x14j3e4g xnyqvp6",
515
- children: r
645
+ children: t
516
646
  })
517
647
  })
518
648
  })] }),
519
- close: /* @__PURE__ */ C(I, {}),
520
- children: a
649
+ close: /* @__PURE__ */ E(ee, {}),
650
+ children: r
521
651
  })]
522
652
  }) })] })
523
653
  })]
524
654
  });
525
655
  }
526
656
  // packages/layout/src/navigation-rail-menu.tsx
527
- var W = {
657
+ var oe = {
528
658
  rail: {
529
659
  side: "right",
530
660
  align: "end"
@@ -534,45 +664,45 @@ var W = {
534
664
  align: "start"
535
665
  }
536
666
  };
537
- function G({ label: e, icon: t, children: i }) {
538
- let o = _(z), [s, c] = x(!1);
539
- return v(() => {
540
- let e = globalThis.matchMedia(j.sidebarDesktopQuery);
667
+ function se({ label: e, icon: n, children: r }) {
668
+ let i = b(Y), [a, o] = w(!1);
669
+ return x(() => {
670
+ let e = globalThis.matchMedia(F.sidebarDesktopQuery);
541
671
  function t() {
542
- c(!1);
672
+ o(!1);
543
673
  }
544
674
  return e.addEventListener("change", t), () => e.removeEventListener("change", t);
545
- }, []), /* @__PURE__ */ w(n.Root, {
546
- open: s,
547
- onOpenChange: c,
675
+ }, []), /* @__PURE__ */ D(p.Root, {
676
+ open: a,
677
+ onOpenChange: o,
548
678
  modal: !1,
549
- children: [/* @__PURE__ */ C(r.Provider, { children: /* @__PURE__ */ w(r.Root, {
550
- disabled: s || o === "drawer",
551
- children: [/* @__PURE__ */ C(r.Trigger, {
552
- render: /* @__PURE__ */ C(n.Trigger, { render: /* @__PURE__ */ C(a, {
679
+ children: [/* @__PURE__ */ E(m.Provider, { children: /* @__PURE__ */ D(m.Root, {
680
+ disabled: a || i === "drawer",
681
+ children: [/* @__PURE__ */ E(m.Trigger, {
682
+ render: /* @__PURE__ */ E(p.Trigger, { render: /* @__PURE__ */ E(t, {
553
683
  variant: "ghost",
554
684
  "aria-label": e
555
685
  }) }),
556
- children: t
557
- }), /* @__PURE__ */ C(r.Portal, { children: /* @__PURE__ */ C(r.Positioner, {
686
+ children: n
687
+ }), /* @__PURE__ */ E(m.Portal, { children: /* @__PURE__ */ E(m.Positioner, {
558
688
  side: "right",
559
- children: /* @__PURE__ */ C(r.Popup, { children: e })
689
+ children: /* @__PURE__ */ E(m.Popup, { children: e })
560
690
  }) })]
561
- }) }), /* @__PURE__ */ C(n.Portal, { children: /* @__PURE__ */ C(n.Positioner, {
562
- ...W[o],
691
+ }) }), /* @__PURE__ */ E(p.Portal, { children: /* @__PURE__ */ E(p.Positioner, {
692
+ ...oe[i],
563
693
  sideOffset: 4,
564
694
  collisionPadding: 8,
565
- children: /* @__PURE__ */ C(n.Popup, {
695
+ children: /* @__PURE__ */ E(p.Popup, {
566
696
  "aria-label": e,
567
697
  className: "x1uncgzr",
568
- children: i
698
+ children: r
569
699
  })
570
700
  }) })]
571
701
  });
572
702
  }
573
703
  // packages/layout/src/detail-page.tsx
574
- function K({ children: e, isWide: t = !1 }) {
575
- return /* @__PURE__ */ C("div", {
704
+ function Q({ children: e, isWide: t = !1 }) {
705
+ return /* @__PURE__ */ E("div", {
576
706
  ...{
577
707
  0: { className: "x9f619 x13na7z x96idz6 x9g60mw xeuugli xvueqy4 xnjsko4 x10gdey3 x14y0u4g x1foqgtu x1uwsqpk x14oio8y" },
578
708
  1: { className: "x9f619 xeuugli xvueqy4 xh8yej3 x1x1rfll xnjsko4 xexx8yu x18d9i69" }
@@ -581,33 +711,33 @@ function K({ children: e, isWide: t = !1 }) {
581
711
  });
582
712
  }
583
713
  // packages/layout/src/focus-page.tsx
584
- function q({ children: e }) {
585
- return /* @__PURE__ */ C("main", {
714
+ function ce({ children: e }) {
715
+ return /* @__PURE__ */ E("main", {
586
716
  id: "main",
587
717
  tabIndex: -1,
588
718
  className: "x9f619 x1ov3xa9 xeuugli xrvj5dj x1ku5rj1 x1jvlu93 xpvm0e4 xbixft x1hz01jw xtqrqnz x1778rvt xvmahel",
589
- children: /* @__PURE__ */ C("div", {
719
+ children: /* @__PURE__ */ E("div", {
590
720
  className: "xh8yej3 xxc7z9f xeuugli xrvj5dj x1mkdm3x x1j825kq",
591
721
  children: e
592
722
  })
593
723
  });
594
724
  }
595
725
  // packages/layout/src/workbench.tsx
596
- function J({ header: e, children: t, inspector: n }) {
597
- return /* @__PURE__ */ w("div", {
598
- className: "x78zum5 xdt5ytf x1r09gfs xeuugli x2lwn1j x12h1iku x1a75771 xbixft x1hz01jw xtqrqnz x1778rvt xj57cvi xvmahel",
599
- children: [e != null && /* @__PURE__ */ C("div", {
726
+ function le({ header: e, children: t, inspector: n }) {
727
+ return /* @__PURE__ */ D("div", {
728
+ className: "x78zum5 xdt5ytf xtdtrs8 xmz0i5r x98rzlu xeuugli x2lwn1j x12h1iku x1a75771 xbixft x1hz01jw xtqrqnz x1778rvt xj57cvi xvmahel",
729
+ children: [e != null && /* @__PURE__ */ E("div", {
600
730
  className: "xeuugli x2lah0s x1ydxw8w xnx3t7k xso031l x1q0q8m5 x1qndepd",
601
731
  children: e
602
- }), /* @__PURE__ */ w("div", {
732
+ }), /* @__PURE__ */ D("div", {
603
733
  className: "x78zum5 x98rzlu xeuugli x2lwn1j x7giv3",
604
- children: [/* @__PURE__ */ C("div", {
734
+ children: [/* @__PURE__ */ E("div", {
605
735
  ...{
606
736
  0: { className: "x1n2onr6 x78zum5 x98rzlu xdt5ytf xeuugli x2lwn1j" },
607
737
  1: { className: "x1n2onr6 x98rzlu xdt5ytf xeuugli x2lwn1j x78zum5 x152g2jv" }
608
738
  }[n !== void 0 | 0],
609
739
  children: t
610
- }), n !== void 0 && /* @__PURE__ */ C("aside", {
740
+ }), n !== void 0 && /* @__PURE__ */ E("aside", {
611
741
  "aria-label": n.label,
612
742
  className: "x9f619 x1peuizl x1vx4hiz xeuugli x2lah0s x1odjw0f x1c8xbx5 xpvm0e4 xe0pwq xs311s2 x19ypqd9 x1l3ounx",
613
743
  children: n.content
@@ -615,9 +745,9 @@ function J({ header: e, children: t, inspector: n }) {
615
745
  })]
616
746
  });
617
747
  }
618
- function Y({ label: e, children: t, isFlush: n = !1, scrollRestorationId: r }) {
619
- let i = d();
620
- return /* @__PURE__ */ C("div", {
748
+ function ue({ label: e, children: t, isFlush: n = !1, scrollRestorationId: r }) {
749
+ let i = s();
750
+ return /* @__PURE__ */ E("div", {
621
751
  ref: i.ref,
622
752
  role: "region",
623
753
  "aria-label": e,
@@ -630,21 +760,21 @@ function Y({ label: e, children: t, isFlush: n = !1, scrollRestorationId: r }) {
630
760
  children: t
631
761
  });
632
762
  }
633
- function ae({ children: e }) {
634
- return /* @__PURE__ */ C("div", {
763
+ function de({ children: e }) {
764
+ return /* @__PURE__ */ E("div", {
635
765
  className: "x2lah0s x1c8xbx5 x178xt8z x13fuv20 xhjagg4 xpvm0e4",
636
766
  children: e
637
767
  });
638
768
  }
639
769
  // packages/layout/src/view-stack.tsx
640
- function oe({ children: e }) {
641
- return /* @__PURE__ */ C("div", {
770
+ function fe({ children: e }) {
771
+ return /* @__PURE__ */ E("div", {
642
772
  className: "x1n2onr6 x78zum5 xdt5ytf x98rzlu xeuugli x2lwn1j",
643
773
  children: e
644
774
  });
645
775
  }
646
- function se({ isActive: e, children: t }) {
647
- return /* @__PURE__ */ C("section", {
776
+ function pe({ isActive: e, children: t }) {
777
+ return /* @__PURE__ */ E("section", {
648
778
  "aria-hidden": !e,
649
779
  inert: !e,
650
780
  ...{
@@ -654,206 +784,107 @@ function se({ isActive: e, children: t }) {
654
784
  children: t
655
785
  });
656
786
  }
657
- var ce = {
658
- Root: oe,
659
- Panel: se
660
- }, X = {
661
- toolbar: {
662
- kB7OPa: "x9f619",
663
- kVAEAm: "x1n2onr6",
664
- k1xSpc: "x78zum5",
665
- kwnvtZ: "x1a02dak",
666
- k9g6sI: "x12h1iku",
667
- kanfag: "x14ut1dr",
668
- kGNEyG: "x1qjc9v5",
669
- kAzted: "x1oec0jp",
670
- kmuXW: "x2lah0s",
671
- kWkggS: "xpvm0e4",
672
- kMwMTN: "xbixft",
673
- kMv6JI: "x1hz01jw",
674
- kGuDYH: "xtqrqnz",
675
- kLWn49: "x1778rvt",
676
- k63SB2: "xj57cvi",
677
- khiITx: "xvmahel",
678
- k7Eaqz: "xeuugli",
679
- $$css: !0
680
- },
681
- action: {
682
- k7Eaqz: "xeuugli",
683
- ks0D6T: "x193iq5w",
684
- $$css: !0
685
- }
787
+ var me = {
788
+ Root: fe,
789
+ Panel: pe
686
790
  };
687
- function Z({ title: t, actions: n, showBreadcrumb: r = !1, showNavigation: i = !0, views: a, leading: o }) {
688
- let s = h.toArray(t).length > 0, c = h.toArray(n).length > 0, l = h.toArray(a).length > 0, u = h.toArray(o).length > 0;
689
- if (h.toArray([
690
- t,
691
- n,
692
- a,
693
- o
694
- ]).length === 0) return null;
695
- let d = r ? "nav" : "h1", f = r ? "div" : "span";
696
- return /* @__PURE__ */ w("div", {
697
- ...m.props(X.toolbar, e.blockEnd),
698
- children: [
699
- u ? /* @__PURE__ */ C("div", {
700
- className: "x78zum5 x6s0dn4 xyibt8p x2lah0s",
701
- children: o
702
- }) : i && /* @__PURE__ */ C(ie, {}),
703
- s && /* @__PURE__ */ C(d, {
704
- tabIndex: r ? void 0 : -1,
705
- "aria-label": r ? "Breadcrumb" : void 0,
706
- className: "x78zum5 x6s0dn4 x1hnptsi x1dc62k6 xjnfzvw x1oec0jp x1cqoux5 x1ghz6dp x1qlqyl8 xj57cvi x1t137rt",
707
- children: /* @__PURE__ */ C(f, {
708
- className: "xeuugli xb3r6kr xlyipyv xuxw1ft",
709
- children: t
710
- })
711
- }),
712
- l && /* @__PURE__ */ C("div", {
713
- className: "x78zum5 x6s0dn4 xeuugli x2lah0s",
714
- children: a
715
- }),
716
- c && /* @__PURE__ */ C("div", {
717
- className: "x78zum5 x1a02dak x6s0dn4 xunmzkg x1dc62k6 xeuugli x1oec0jp x193iq5w x9f619 xs83m0k x8x9d4c",
718
- children: n
719
- })
720
- ]
721
- });
722
- }
723
- function le({ icon: e, children: t, ...n }) {
724
- let r = e != null;
725
- return /* @__PURE__ */ C("div", {
726
- className: "x9f619 x78zum5 x1qjc9v5 xeuugli",
727
- children: /* @__PURE__ */ w(l, {
728
- ...n,
729
- variant: "ghost",
730
- "aria-label": n["aria-label"] ?? (typeof t == "string" ? t : void 0),
731
- xstyle: X.action,
732
- children: [r && /* @__PURE__ */ C("span", {
733
- "aria-hidden": !0,
734
- className: "x3nfvp2 x2lah0s x6s0dn4",
735
- children: e
736
- }), r || typeof t == "string" ? /* @__PURE__ */ C("span", {
737
- ...{
738
- 0: { className: "xeuugli xb3r6kr xlyipyv xuxw1ft" },
739
- 1: { className: "xeuugli xb3r6kr xlyipyv xuxw1ft xt0psk2 xlllsrz" }
740
- }[!!r | 0],
741
- children: t
742
- }) : t]
743
- })
744
- });
745
- }
746
- // packages/layout/src/page-content.tsx
747
- function Q({ children: e }) {
748
- return /* @__PURE__ */ C("div", {
749
- className: "x9f619 x78zum5 xdt5ytf xdz4d12 xeuugli xg7ukam",
750
- children: e
751
- });
752
- }
753
- // packages/layout/src/report-content.tsx
754
- function ue({ summary: e, breakdown: t }) {
755
- return /* @__PURE__ */ w("div", {
756
- "data-page-layout": "report",
757
- className: "xeuugli",
758
- children: [e != null && e !== !1 && /* @__PURE__ */ C(Q, { children: e }), t]
759
- });
760
- }
761
791
  // packages/layout/src/collection-layout.tsx
762
- function de({ header: e, children: t }) {
763
- return /* @__PURE__ */ w("div", {
792
+ function he({ header: e, children: t }) {
793
+ return /* @__PURE__ */ D("div", {
764
794
  "data-page-layout": "collection",
765
795
  className: "x78zum5 xdt5ytf x98rzlu xeuugli x2lwn1j x7giv3",
766
- children: [/* @__PURE__ */ C("div", {
796
+ children: [/* @__PURE__ */ E("div", {
767
797
  className: "x2lah0s xeuugli",
768
798
  children: e
769
- }), /* @__PURE__ */ C("div", {
799
+ }), /* @__PURE__ */ E("div", {
770
800
  className: "x78zum5 xdt5ytf x98rzlu xeuugli x2lwn1j",
771
801
  children: t
772
802
  })]
773
803
  });
774
804
  }
775
805
  // packages/layout/src/record-page.tsx
776
- function fe({ children: e }) {
777
- return /* @__PURE__ */ C("div", {
778
- className: "x78zum5 xdt5ytf xeuugli xbixft x1hz01jw xtqrqnz x1778rvt xvmahel",
779
- children: e
806
+ function ge({ backLabel: e, backHref: t, onBack: n }) {
807
+ return /* @__PURE__ */ D("a", {
808
+ href: t,
809
+ className: "x3nfvp2 x6s0dn4 x1hnptsi xid9utz xeuugli x193iq5w xbixft xkrqix3 x5638nf x13qnu6 x9v5kkp x19rmrnh x1bqaal",
810
+ onClick: (e) => {
811
+ if (n === void 0 || e.defaultPrevented || e.button !== 0) return;
812
+ let t = e.metaKey || e.ctrlKey, r = e.shiftKey || e.altKey;
813
+ t || r || (e.preventDefault(), n());
814
+ },
815
+ children: [/* @__PURE__ */ E(O, {
816
+ size: 16,
817
+ "aria-hidden": !0,
818
+ className: "x2lah0s"
819
+ }), /* @__PURE__ */ E("span", {
820
+ className: "xeuugli xb3r6kr xlyipyv xuxw1ft",
821
+ children: e
822
+ })]
780
823
  });
781
824
  }
782
- function pe({ backLabel: e, backHref: t, onBack: n, actions: r, showNavigation: i = !0 }) {
783
- return /* @__PURE__ */ C(Z, {
825
+ function _e({ navigation: e, children: t, ...n }) {
826
+ return /* @__PURE__ */ E(q, {
784
827
  showBreadcrumb: !0,
785
- showNavigation: i,
786
- actions: r,
787
- title: /* @__PURE__ */ w("a", {
788
- href: t,
789
- className: "x3nfvp2 x6s0dn4 x1hnptsi xid9utz xeuugli x193iq5w xbixft xkrqix3 x5638nf x13qnu6 x9v5kkp x19rmrnh x1bqaal",
790
- onClick: (e) => {
791
- if (n === void 0 || e.defaultPrevented || e.button !== 0) return;
792
- let t = e.metaKey || e.ctrlKey, r = e.shiftKey || e.altKey;
793
- t || r || (e.preventDefault(), n());
794
- },
795
- children: [/* @__PURE__ */ C(T, {
796
- size: 16,
797
- "aria-hidden": !0,
798
- className: "x2lah0s"
799
- }), /* @__PURE__ */ C("span", {
800
- className: "xeuugli xb3r6kr xlyipyv xuxw1ft",
801
- children: e
802
- })]
803
- })
828
+ showNavigation: n.showNavigation ?? !0,
829
+ actions: n.actions,
830
+ title: /* @__PURE__ */ E(ge, { ...n }),
831
+ navigation: e,
832
+ children: t
804
833
  });
805
834
  }
806
- function $({ children: e, isWide: t = !1 }) {
807
- return /* @__PURE__ */ C(K, {
808
- isWide: t,
809
- children: /* @__PURE__ */ C("div", {
810
- className: "x78zum5 x1a02dak x1cy8zhl xdz4d12 xeuugli",
811
- children: e
835
+ function ve({ children: e, isWide: t = !1 }) {
836
+ return /* @__PURE__ */ E("div", {
837
+ className: "x78zum5 xdt5ytf xeuugli xbixft x1hz01jw xtqrqnz x1778rvt xvmahel",
838
+ children: /* @__PURE__ */ E(Q, {
839
+ isWide: t,
840
+ children: /* @__PURE__ */ E("div", {
841
+ className: "x78zum5 x1a02dak x1cy8zhl xdz4d12 xeuugli",
842
+ children: e
843
+ })
812
844
  })
813
845
  });
814
846
  }
815
- function me({ children: e }) {
816
- return /* @__PURE__ */ C("div", {
847
+ function ye({ children: e }) {
848
+ return /* @__PURE__ */ E("div", {
817
849
  className: "x78zum5 xdt5ytf x1ewej1i x1iyjqo2 xdz4d12 xeuugli",
818
850
  children: e
819
851
  });
820
852
  }
821
- function he({ title: e, description: t, icon: n, titleRef: r }) {
822
- return /* @__PURE__ */ w("header", {
853
+ function be({ title: e, description: t, icon: r, titleRef: i }) {
854
+ return /* @__PURE__ */ D("header", {
823
855
  className: "xrvj5dj x1n8ia3y xeuugli",
824
- children: [/* @__PURE__ */ w("div", {
856
+ children: [/* @__PURE__ */ D("div", {
825
857
  className: "x78zum5 x6s0dn4 x1n8ia3y xeuugli",
826
- children: [n != null && /* @__PURE__ */ C("span", {
858
+ children: [r != null && /* @__PURE__ */ E("span", {
827
859
  "aria-hidden": !0,
828
860
  className: "x3nfvp2 x6s0dn4 x2lah0s",
829
- children: n
830
- }), /* @__PURE__ */ C(c, {
831
- ref: r,
861
+ children: r
862
+ }), /* @__PURE__ */ E(a, {
863
+ ref: i,
832
864
  tabIndex: -1,
833
865
  className: "xeuugli x1t137rt",
834
866
  children: e
835
867
  })]
836
- }), t != null && /* @__PURE__ */ C(o, { children: t })]
868
+ }), t != null && /* @__PURE__ */ E(n, { children: t })]
837
869
  });
838
870
  }
839
- function ge({ children: e, label: t = "Properties" }) {
840
- return /* @__PURE__ */ C("aside", {
871
+ function $({ children: e, label: t = "Properties" }) {
872
+ return /* @__PURE__ */ E("aside", {
841
873
  "aria-label": t,
842
874
  className: "x78zum5 xdt5ytf x1irul0l x1iyjqo2 x1j825kq xeuugli",
843
875
  children: e
844
876
  });
845
877
  }
846
- var _e = {
847
- Root: fe,
848
- Toolbar: pe,
849
- Body: $,
850
- Content: me,
851
- Header: he,
852
- Aside: ge
878
+ var xe = {
879
+ Layout: _e,
880
+ Body: ve,
881
+ Content: ye,
882
+ Header: be,
883
+ Aside: $
853
884
  };
854
885
  // packages/layout/src/resizable.tsx
855
- function ve({ orientation: e = "horizontal", initialSizes: t, onSizesChange: n, disabled: r, ref: i, ...a }) {
856
- return /* @__PURE__ */ C(O, {
886
+ function Se({ orientation: e = "horizontal", initialSizes: t, onSizesChange: n, disabled: r, ref: i, ...a }) {
887
+ return /* @__PURE__ */ E(j, {
857
888
  orientation: e,
858
889
  defaultLayout: t,
859
890
  onLayoutChanged: (e, t) => {
@@ -865,29 +896,29 @@ function ve({ orientation: e = "horizontal", initialSizes: t, onSizesChange: n,
865
896
  coarse: 44,
866
897
  fine: 12
867
898
  },
868
- ...p({ className: "xeuugli x2lwn1j xh8yej3 x5yr21d" }, a)
899
+ ...g({ className: "xeuugli x2lwn1j xh8yej3 x5yr21d" }, a)
869
900
  });
870
901
  }
871
- function ye({ id: e, initialSizePercent: t, minimumSizePercent: n = 10, maximumSizePercent: r = 100, canCollapse: i = !1, ref: a, ...o }) {
872
- return /* @__PURE__ */ C(k, {
902
+ function Ce({ id: e, initialSizePercent: t, minimumSizePercent: n = 10, maximumSizePercent: r = 100, canCollapse: i = !1, ref: a, ...o }) {
903
+ return /* @__PURE__ */ E(M, {
873
904
  id: e,
874
905
  defaultSize: t === void 0 ? void 0 : `${t}%`,
875
906
  minSize: `${n}%`,
876
907
  maxSize: `${r}%`,
877
908
  collapsible: i,
878
909
  elementRef: a,
879
- ...p({ className: "xeuugli x2lwn1j xysyzu8" }, o)
910
+ ...g({ className: "xeuugli x2lwn1j xysyzu8" }, o)
880
911
  });
881
912
  }
882
- function be({ ref: e, ...t }) {
883
- return /* @__PURE__ */ C(A, {
913
+ function we({ ref: e, ...t }) {
914
+ return /* @__PURE__ */ E(N, {
884
915
  elementRef: e,
885
- ...p({ className: "x1fa40ue x1i1rx1s xgc0pbm xir5lan xfaai28 x1rbdpqn x8wp5i9 x13qnu6 x9v5kkp x19rmrnh x13iak60" }, t)
916
+ ...g({ className: "x1fa40ue x1i1rx1s xgc0pbm xir5lan xfaai28 x1rbdpqn x8wp5i9 x13qnu6 x9v5kkp x19rmrnh x13iak60" }, t)
886
917
  });
887
918
  }
888
- var xe = {
889
- Root: ve,
890
- Pane: ye,
891
- Handle: be
919
+ var Te = {
920
+ Root: Se,
921
+ Pane: Ce,
922
+ Handle: we
892
923
  };
893
- export { U as AppShell, de as CollectionLayout, K as DetailPage, q as FocusPage, L as Navigation, ee as NavigationItem, te as NavigationLink, V as NavigationRail, G as NavigationRailMenu, R as NavigationSection, Q as PageContent, Z as PageToolbar, _e as RecordPage, ue as ReportContent, xe as Resizable, re as SidebarFooter, ne as SidebarLabel, le as ToolbarAction, ce as ViewStack, J as Workbench, ae as WorkbenchFooter, Y as WorkbenchScroll };
924
+ export { ae as AppShell, he as CollectionLayout, Q as DetailPage, ce as FocusPage, te as Navigation, re as NavigationItem, B as NavigationLink, ie as NavigationRail, se as NavigationRailMenu, ne as NavigationSection, P as PageContent, q as PageLayout, J as PageSection, xe as RecordPage, Te as Resizable, H as SidebarFooter, V as SidebarLabel, K as ToolbarAction, me as ViewStack, le as Workbench, de as WorkbenchFooter, ue as WorkbenchScroll };