@mechane-ai/elements 0.22.1 → 0.23.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.
Files changed (38) hide show
  1. package/README.md +8 -6
  2. package/dist/ai.js +4 -4
  3. package/dist/{categorical-values-B_Z-X-tI.js → categorical-values-lk7xoiOz.js} +2 -2
  4. package/dist/{chart-frame-CT_mfkYD.js → chart-frame-CFEDXxpC.js} +1 -1
  5. package/dist/{chart-input-C78Vq8ON.js → chart-input-BrzNr3oe.js} +2 -2
  6. package/dist/charts/cartesian.js +6 -6
  7. package/dist/charts/distribution.js +2 -2
  8. package/dist/charts/graph.js +2 -2
  9. package/dist/charts/hierarchy.js +3 -3
  10. package/dist/charts/matrix.js +2 -2
  11. package/dist/charts/timeline.js +2 -2
  12. package/dist/charts.js +1 -1
  13. package/dist/{code-block-C3wqGP_q.js → code-block-DENC5fD_.js} +1 -1
  14. package/dist/collections.js +3 -3
  15. package/dist/content/code.js +1 -1
  16. package/dist/content/diff.js +2 -2
  17. package/dist/content/link.js +1 -1
  18. package/dist/content/markdown.js +2 -2
  19. package/dist/content/tree.js +2 -2
  20. package/dist/{content-link-Dc-pl2ee.js → content-link-CGIua9If.js} +1 -1
  21. package/dist/content.js +3 -3
  22. package/dist/elements.css +8 -0
  23. package/dist/feedback.js +1 -1
  24. package/dist/forms/dates.js +1 -1
  25. package/dist/forms.js +1 -1
  26. package/dist/index.js +1 -1
  27. package/dist/layout.js +298 -233
  28. package/dist/navigation/commands.js +1 -1
  29. package/dist/packages/core/src/avatar.d.ts +3 -1
  30. package/dist/packages/layout/src/app-shell.d.ts +2 -1
  31. package/dist/packages/layout/src/index.d.ts +2 -0
  32. package/dist/packages/layout/src/navigation-rail-menu.d.ts +7 -0
  33. package/dist/packages/layout/src/navigation-rail.d.ts +1 -1
  34. package/dist/{pierre-tree-Ba80jL2Z.js → pierre-tree-C3nKYyoN.js} +2 -2
  35. package/dist/{src-CWA2Tigm.js → src-CQOgWIzP.js} +1 -1
  36. package/dist/{src-D3AGX7uZ.js → src-DHYcohZP.js} +1 -1
  37. package/dist/{src-F1zdubkU.js → src-DLReNPV9.js} +70 -62
  38. package/package.json +1 -1
package/dist/layout.js CHANGED
@@ -1,23 +1,23 @@
1
- import { a as e, t } from "./src-d7EAi61b.js";
2
- import { C as n, O as r, T as i, i as a, n as o, p as s, w as c } from "./src-F1zdubkU.js";
3
- import { t as l } from "./style-composition-uYlczSsB.js";
4
- import { t as u } from "./use-scroll-tab-index-Dxpdh4W7.js";
5
- import { Button as d } from "@base-ui/react/button";
6
- import { mergeProps as f } from "@base-ui/react/merge-props";
7
- import * as p from "@stylexjs/stylex";
8
- import { Children as m, createContext as h, useContext as g, useEffect as _, useId as v, useRef as y, useState as b } from "react";
9
- import { Fragment as x, jsx as S, jsxs as C } from "react/jsx-runtime";
10
- import { ArrowLeft as w, PanelLeft as T, X as E } from "lucide-react";
11
- import { Group as ee, Panel as D, Separator as O } from "react-resizable-panels";
1
+ import { a as e, i as t, t as n } from "./src-d7EAi61b.js";
2
+ import { C as r, O as i, T as a, i as o, n as s, p as c, w as l } from "./src-DLReNPV9.js";
3
+ import { t as u } from "./style-composition-uYlczSsB.js";
4
+ import { t as d } from "./use-scroll-tab-index-Dxpdh4W7.js";
5
+ import { Button as f } from "@base-ui/react/button";
6
+ import { mergeProps as p } from "@base-ui/react/merge-props";
7
+ import * as m from "@stylexjs/stylex";
8
+ import { Children as h, createContext as g, useContext as _, useEffect as v, useId as y, useRef as b, useState as x } from "react";
9
+ import { Fragment as S, jsx as C, jsxs as w } from "react/jsx-runtime";
10
+ import { ArrowLeft as T, PanelLeft as E, X as D } from "lucide-react";
11
+ import { Group as O, Panel as k, Separator as A } from "react-resizable-panels";
12
12
  // packages/layout/src/frame.stylex.ts
13
- var k = {
13
+ var j = {
14
14
  sidebarMobile: "@media (max-width:800px)",
15
15
  sidebarDesktopQuery: "(min-width:801px)",
16
16
  sidebarCoarse: "@media (min-width:801px) and (pointer: coarse)",
17
17
  detailMobile: "@media (max-width:720px)",
18
18
  toolbarCompact: "@container toolbar (max-width:600px)",
19
19
  workbenchCompact: "@container workbench (max-width:860px)"
20
- }, A = h(null), j = {
20
+ }, M = g(null), N = {
21
21
  footer: {
22
22
  kB7OPa: "x9f619",
23
23
  k1xSpc: "x78zum5",
@@ -51,53 +51,53 @@ var k = {
51
51
  k8WAf4: "xn9t2bk",
52
52
  $$css: !0
53
53
  }
54
- }, te = {
55
- inline: j.inlineFooter,
56
- navigation: j.navigationFooter
54
+ }, P = {
55
+ inline: N.inlineFooter,
56
+ navigation: N.navigationFooter
57
57
  };
58
- function M({ header: e, navigationHeader: t, footer: n, close: r, children: i }) {
59
- return /* @__PURE__ */ C(x, { children: [
60
- /* @__PURE__ */ C("div", {
58
+ function F({ header: e, navigationHeader: t, footer: n, close: r, children: i }) {
59
+ return /* @__PURE__ */ w(S, { children: [
60
+ /* @__PURE__ */ w("div", {
61
61
  ...{
62
62
  0: { className: "x9f619 x78zum5 x1qjc9v5 xnyqvp6 x2lah0s xeuugli xso031l x1q0q8m5 x1qndepd" },
63
63
  1: { className: "x9f619 x1qjc9v5 xnyqvp6 x2lah0s xeuugli xso031l x1q0q8m5 x1qndepd x1s85apg x1rhi5y4" }
64
64
  }[e == null | 0],
65
- children: [/* @__PURE__ */ S("div", {
65
+ children: [/* @__PURE__ */ C("div", {
66
66
  className: "x78zum5 x6s0dn4 x98rzlu xeuugli",
67
67
  children: e
68
68
  }), r]
69
69
  }),
70
70
  t,
71
- /* @__PURE__ */ S("div", {
71
+ /* @__PURE__ */ C("div", {
72
72
  role: "region",
73
73
  "aria-label": "Navigation links",
74
74
  className: "x98rzlu x2lwn1j x1odjw0f xish69e x1t137rt x7d1sxj x13qnu6 x9v5kkp x19rmrnh x1bqaal",
75
75
  children: i
76
76
  }),
77
- n != null && /* @__PURE__ */ S("div", {
77
+ n != null && /* @__PURE__ */ C("div", {
78
78
  className: "x2lah0s xeuugli xr1yuqi xpvm0e4 x153jb6y",
79
79
  children: n
80
80
  })
81
81
  ] });
82
82
  }
83
- function N() {
84
- return /* @__PURE__ */ S("div", {
83
+ function ee() {
84
+ return /* @__PURE__ */ C("div", {
85
85
  className: "x78zum5 x6s0dn4 xl56j7k x14j3e4g x2lah0s",
86
- children: /* @__PURE__ */ S(e.Close, {
87
- render: /* @__PURE__ */ S(c, {
86
+ children: /* @__PURE__ */ C(e.Close, {
87
+ render: /* @__PURE__ */ C(l, {
88
88
  variant: "ghost",
89
89
  "aria-label": "Close navigation"
90
90
  }),
91
- children: /* @__PURE__ */ S(E, {
91
+ children: /* @__PURE__ */ C(D, {
92
92
  size: 16,
93
93
  "aria-hidden": !0
94
94
  })
95
95
  })
96
96
  });
97
97
  }
98
- function P({ children: e, label: t = "Main" }) {
99
- let n = g(A), r = n !== null && !n.isExpanded;
100
- return /* @__PURE__ */ S("nav", {
98
+ function te({ children: e, label: t = "Main" }) {
99
+ let n = _(M), r = n !== null && !n.isExpanded;
100
+ return /* @__PURE__ */ C("nav", {
101
101
  "aria-label": t,
102
102
  ...{
103
103
  0: { className: "x78zum5 xdt5ytf xksvo5r" },
@@ -106,12 +106,12 @@ function P({ children: e, label: t = "Main" }) {
106
106
  children: e
107
107
  });
108
108
  }
109
- function F({ children: e, label: t }) {
110
- let n = g(A), r = n !== null && !n.isExpanded, i = v();
111
- return /* @__PURE__ */ C("section", {
109
+ function I({ children: e, label: t }) {
110
+ let n = _(M), r = n !== null && !n.isExpanded, i = y();
111
+ return /* @__PURE__ */ w("section", {
112
112
  "aria-labelledby": i,
113
113
  className: "xn9t2bk",
114
- children: [/* @__PURE__ */ S("div", {
114
+ children: [/* @__PURE__ */ C("div", {
115
115
  id: i,
116
116
  ...{
117
117
  0: { className: "xeuugli xn9t2bk xksvo5r x153jb6y x1hz01jw xy8obcc xas2l8k xk4h15q xj0a0fe" },
@@ -121,52 +121,52 @@ function F({ children: e, label: t }) {
121
121
  }), e]
122
122
  });
123
123
  }
124
- function I({ children: e, icon: t, isSelected: n = !1, shouldCloseOnActivate: r = !0, onClick: i, className: a, style: o, ...s }) {
125
- let c = g(A), u = v(), f = c !== null && !c.isExpanded;
126
- return /* @__PURE__ */ S("div", {
124
+ function L({ children: e, icon: t, isSelected: n = !1, shouldCloseOnActivate: r = !0, onClick: i, className: a, style: o, ...s }) {
125
+ let c = _(M), l = y(), d = c !== null && !c.isExpanded;
126
+ return /* @__PURE__ */ C("div", {
127
127
  ...{
128
128
  0: { className: "x78zum5 xeuugli x1ok0vyi" },
129
129
  1: { className: "x78zum5 xeuugli x1ok0vyi x1r7kqkb" }
130
130
  }[!!n | 0],
131
- children: /* @__PURE__ */ C(d, {
131
+ children: /* @__PURE__ */ w(f, {
132
132
  ...s,
133
- ...l({
133
+ ...u({
134
134
  className: a,
135
135
  style: o,
136
136
  styles: {
137
137
  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 x15rya3k x992rv9 x1avwmir xh8yej3 xeuugli xt970qd xksvo5r" },
138
138
  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 x15rya3k x992rv9 x1avwmir xh8yej3 xeuugli xt970qd xksvo5r xl56j7k x1l31gyv" }
139
- }[!!f | 0]
139
+ }[!!d | 0]
140
140
  }),
141
141
  "aria-current": n ? "page" : void 0,
142
- "aria-labelledby": s["aria-labelledby"] ?? (s["aria-label"] === void 0 ? u : void 0),
142
+ "aria-labelledby": s["aria-labelledby"] ?? (s["aria-label"] === void 0 ? l : void 0),
143
143
  title: s.title ?? (typeof e == "string" ? e : void 0),
144
144
  onClick: (e) => {
145
145
  i !== void 0 && i(e), !e.defaultPrevented && c !== null && r && c.onNavigate();
146
146
  },
147
- children: [t != null && /* @__PURE__ */ S("span", {
147
+ children: [t != null && /* @__PURE__ */ C("span", {
148
148
  "aria-hidden": !0,
149
149
  className: "x3nfvp2 x6s0dn4 xl56j7k xtwnzbg x18utl2x x2lah0s",
150
150
  children: t
151
- }), /* @__PURE__ */ S("span", {
152
- id: u,
151
+ }), /* @__PURE__ */ C("span", {
152
+ id: l,
153
153
  ...{
154
154
  0: { className: "xeuugli xb3r6kr xlyipyv xuxw1ft" },
155
155
  1: { className: "xeuugli xb3r6kr xlyipyv xuxw1ft x1s85apg xeod2sa" }
156
- }[!!f | 0],
156
+ }[!!d | 0],
157
157
  children: e
158
158
  })]
159
159
  })
160
160
  });
161
161
  }
162
- function L({ children: e, icon: t, isSelected: n = !1, onClick: r, className: i, style: a, ...o }) {
163
- let s = g(A), c = v(), l = s !== null && !s.isExpanded, u = {
162
+ function R({ children: e, icon: t, isSelected: n = !1, onClick: r, className: i, style: a, ...o }) {
163
+ let s = _(M), c = y(), l = s !== null && !s.isExpanded, u = {
164
164
  0: { className: "x9f619 x78zum5 x6s0dn4 x1ok0vyi xbixft xjbqb8w x1hz01jw xtqrqnz x1778rvt xj57cvi xvmahel xdpxx8g xkrqix3 x17lu4q8 x1480za7 x13qnu6 x9v5kkp x19rmrnh x1bqaal x1nhvcw1 x1hnptsi x15rya3k x992rv9 x1avwmir xh8yej3 xeuugli xt970qd xksvo5r" },
165
165
  2: { className: "x9f619 x78zum5 x6s0dn4 x1ok0vyi xbixft xjbqb8w x1hz01jw xtqrqnz x1778rvt xj57cvi xvmahel xdpxx8g xkrqix3 x17lu4q8 x1480za7 x13qnu6 x9v5kkp x19rmrnh x1bqaal x1hnptsi x15rya3k x992rv9 x1avwmir xh8yej3 xeuugli xt970qd xksvo5r xl56j7k x1l31gyv" },
166
166
  1: { className: "x9f619 x78zum5 x6s0dn4 x1ok0vyi xbixft x1hz01jw xtqrqnz x1778rvt xj57cvi xvmahel xdpxx8g xkrqix3 x17lu4q8 x1480za7 x13qnu6 x9v5kkp x19rmrnh x1bqaal x1nhvcw1 x1hnptsi x15rya3k x992rv9 x1avwmir xh8yej3 xeuugli xt970qd xksvo5r x1r7kqkb" },
167
167
  3: { className: "x9f619 x78zum5 x6s0dn4 x1ok0vyi xbixft x1hz01jw xtqrqnz x1778rvt xj57cvi xvmahel xdpxx8g xkrqix3 x17lu4q8 x1480za7 x13qnu6 x9v5kkp x19rmrnh x1bqaal x1hnptsi x15rya3k x992rv9 x1avwmir xh8yej3 xeuugli xt970qd xksvo5r xl56j7k x1l31gyv x1r7kqkb" }
168
168
  }[!!l << 1 | !!n];
169
- return /* @__PURE__ */ C("a", {
169
+ return /* @__PURE__ */ w("a", {
170
170
  ...o,
171
171
  "aria-current": n ? "page" : void 0,
172
172
  "aria-labelledby": o["aria-labelledby"] ?? (o["aria-label"] === void 0 ? c : void 0),
@@ -181,11 +181,11 @@ function L({ children: e, icon: t, isSelected: n = !1, onClick: r, className: i,
181
181
  ...u.style,
182
182
  ...a
183
183
  },
184
- children: [t != null && /* @__PURE__ */ S("span", {
184
+ children: [t != null && /* @__PURE__ */ C("span", {
185
185
  "aria-hidden": !0,
186
186
  className: "x3nfvp2 x6s0dn4 xl56j7k xtwnzbg x18utl2x x2lah0s",
187
187
  children: t
188
- }), /* @__PURE__ */ S("span", {
188
+ }), /* @__PURE__ */ C("span", {
189
189
  id: c,
190
190
  ...{
191
191
  0: { className: "xeuugli xb3r6kr xlyipyv xuxw1ft" },
@@ -195,9 +195,9 @@ function L({ children: e, icon: t, isSelected: n = !1, onClick: r, className: i,
195
195
  })]
196
196
  });
197
197
  }
198
- function R({ children: e, shouldGrow: t = !1 }) {
199
- let n = g(A), r = n !== null && !n.isExpanded;
200
- return /* @__PURE__ */ S("span", {
198
+ function z({ children: e, shouldGrow: t = !1 }) {
199
+ let n = _(M), r = n !== null && !n.isExpanded;
200
+ return /* @__PURE__ */ C("span", {
201
201
  ...{
202
202
  0: { className: "xeuugli xb3r6kr xlyipyv xuxw1ft" },
203
203
  2: { className: "xeuugli xb3r6kr xlyipyv xuxw1ft x78zum5 x6s0dn4 x1hnptsi x98rzlu" },
@@ -207,39 +207,39 @@ function R({ children: e, shouldGrow: t = !1 }) {
207
207
  children: e
208
208
  });
209
209
  }
210
- function z({ children: e, layout: t = "inline" }) {
211
- let n = g(A), r = n !== null && !n.isExpanded;
212
- return /* @__PURE__ */ S("div", {
213
- ...p.props(j.footer, r && j.collapsedFooter, te[t]),
210
+ function B({ children: e, layout: t = "inline" }) {
211
+ let n = _(M), r = n !== null && !n.isExpanded;
212
+ return /* @__PURE__ */ C("div", {
213
+ ...m.props(N.footer, r && N.collapsedFooter, P[t]),
214
214
  children: e
215
215
  });
216
216
  }
217
- function B() {
218
- let t = g(A);
219
- return t === null ? null : /* @__PURE__ */ C(x, { children: [/* @__PURE__ */ S("div", {
217
+ function V() {
218
+ let t = _(M);
219
+ return t === null ? null : /* @__PURE__ */ w(S, { children: [/* @__PURE__ */ C("div", {
220
220
  className: "x9f619 x6s0dn4 xl56j7k x2lah0s x14j3e4g xs1s249 x32b0ac xelkwwr x78zum5 x1ykma7f",
221
- children: /* @__PURE__ */ S(c, {
221
+ children: /* @__PURE__ */ C(l, {
222
222
  ref: t.navigationToggleRef,
223
223
  variant: "ghost",
224
224
  "aria-label": t.isExpanded ? "Collapse navigation" : "Expand navigation",
225
225
  "aria-controls": t.sidebarId,
226
226
  "aria-expanded": t.isExpanded,
227
227
  onClick: t.onToggle,
228
- children: /* @__PURE__ */ S(T, {
228
+ children: /* @__PURE__ */ C(E, {
229
229
  size: 16,
230
230
  "aria-hidden": !0
231
231
  })
232
232
  })
233
- }), /* @__PURE__ */ S("div", {
233
+ }), /* @__PURE__ */ C("div", {
234
234
  className: "x9f619 x6s0dn4 xl56j7k x2lah0s x14j3e4g xs1s249 x32b0ac xelkwwr x1s85apg x1rhi5y4",
235
- children: /* @__PURE__ */ S(e.Trigger, {
235
+ children: /* @__PURE__ */ C(e.Trigger, {
236
236
  ref: t.mobileNavigationToggleRef,
237
237
  handle: t.drawerHandle,
238
- render: /* @__PURE__ */ S(c, {
238
+ render: /* @__PURE__ */ C(l, {
239
239
  variant: "ghost",
240
240
  "aria-label": "Open navigation"
241
241
  }),
242
- children: /* @__PURE__ */ S(T, {
242
+ children: /* @__PURE__ */ C(E, {
243
243
  size: 16,
244
244
  "aria-hidden": !0
245
245
  })
@@ -247,7 +247,7 @@ function B() {
247
247
  })] });
248
248
  }
249
249
  // packages/layout/src/navigation-rail.tsx
250
- var V = h(!1), H = {
250
+ var H = g("rail"), U = {
251
251
  mobileSelected: {
252
252
  kWkggS: "x1r7kqkb",
253
253
  $$css: !0
@@ -277,126 +277,135 @@ var V = h(!1), H = {
277
277
  $$css: !0
278
278
  }
279
279
  };
280
- function U({ label: e, links: a, action: o }) {
281
- let s = g(V), l = g(A);
280
+ function W({ label: e, links: t, action: o }) {
281
+ let s = _(H) === "drawer", c = _(M);
282
282
  function u(e, t) {
283
283
  e?.(t);
284
284
  let n = t.metaKey || t.ctrlKey, r = t.shiftKey || t.altKey;
285
- t.button !== 0 || n || r || l?.onNavigate();
285
+ t.button !== 0 || n || r || c?.onNavigate();
286
286
  }
287
287
  let d = (e) => {
288
- o?.onClick(e), e.defaultPrevented || l?.onNavigate();
288
+ o?.onClick(e), e.defaultPrevented || c?.onNavigate();
289
289
  };
290
- return s ? /* @__PURE__ */ C("div", {
290
+ return s ? /* @__PURE__ */ w("div", {
291
291
  className: "x78zum5 xdt5ytf x1qjc9v5 x2lah0s xeuugli",
292
- children: [/* @__PURE__ */ S("nav", {
292
+ children: [/* @__PURE__ */ C("nav", {
293
293
  "aria-label": e,
294
294
  className: "xrvj5dj x1mt1orb x1rnidkh xunmzkg x1s01oa9",
295
- children: a.map(({ label: e, icon: t, isCurrent: n = !1, ...i }) => /* @__PURE__ */ C("a", {
296
- ...f(p.props(r.base, r.button, H.mobileLink, H.rounded, n && H.mobileSelected), i),
295
+ children: t.map(({ label: e, icon: t, isCurrent: n = !1, ...r }) => /* @__PURE__ */ w("a", {
296
+ ...p(m.props(i.base, i.button, U.mobileLink, U.rounded, n && U.mobileSelected), r),
297
297
  "aria-current": n ? "location" : void 0,
298
- onClick: (e) => u(i.onClick, e),
299
- children: [/* @__PURE__ */ S("span", {
298
+ onClick: (e) => u(r.onClick, e),
299
+ children: [/* @__PURE__ */ C("span", {
300
300
  "aria-hidden": !0,
301
301
  className: "x3nfvp2 x2lah0s xtwnzbg x18utl2x",
302
302
  children: t
303
- }), /* @__PURE__ */ S("span", {
303
+ }), /* @__PURE__ */ C("span", {
304
304
  className: "xeuugli x193iq5w xj0a0fe",
305
305
  children: e
306
306
  })]
307
- }, i.href))
308
- }), o !== void 0 && /* @__PURE__ */ S("div", {
307
+ }, r.href))
308
+ }), o !== void 0 && /* @__PURE__ */ C("div", {
309
309
  className: "xrvj5dj x14w6jbu xngumbj xso031l x1q0q8m5 x1qndepd",
310
- children: /* @__PURE__ */ C(n, {
310
+ children: /* @__PURE__ */ w(r, {
311
311
  variant: "ghost",
312
312
  onClick: d,
313
- children: [/* @__PURE__ */ S("span", {
313
+ children: [/* @__PURE__ */ C("span", {
314
314
  "aria-hidden": !0,
315
315
  className: "x3nfvp2 x2lah0s xtwnzbg x18utl2x",
316
316
  children: o.icon
317
317
  }), o.label]
318
318
  })
319
319
  })]
320
- }) : /* @__PURE__ */ S(t.Provider, { children: /* @__PURE__ */ C("div", {
320
+ }) : /* @__PURE__ */ C(n.Provider, { children: /* @__PURE__ */ w("div", {
321
321
  className: "x78zum5 xdt5ytf x1qjc9v5 x2lah0s xeuugli",
322
- children: [/* @__PURE__ */ S("nav", {
322
+ children: [/* @__PURE__ */ C("nav", {
323
323
  "aria-label": e,
324
324
  className: "x78zum5 xdt5ytf x1qjc9v5",
325
- children: a.map(({ label: e, icon: n, isCurrent: r = !1, ...a }) => /* @__PURE__ */ S("div", {
325
+ children: t.map(({ label: e, icon: t, isCurrent: r = !1, ...i }) => /* @__PURE__ */ C("div", {
326
326
  ...{
327
327
  0: { className: "x1n2onr6 x78zum5 x6s0dn4 xl56j7k x1oec0jp" },
328
328
  1: { className: "x1n2onr6 x78zum5 x6s0dn4 xl56j7k x1oec0jp x1r7kqkb xh3r7i3" }
329
329
  }[!!r | 0],
330
- children: /* @__PURE__ */ C(t.Root, { children: [/* @__PURE__ */ S(t.Trigger, {
331
- render: /* @__PURE__ */ S(i, {
332
- ...a,
330
+ children: /* @__PURE__ */ w(n.Root, { children: [/* @__PURE__ */ C(n.Trigger, {
331
+ render: /* @__PURE__ */ C(a, {
332
+ ...i,
333
333
  "aria-label": e,
334
334
  "aria-current": r ? "location" : void 0,
335
- onClick: (e) => u(a.onClick, e)
335
+ onClick: (e) => u(i.onClick, e)
336
336
  }),
337
- children: n
338
- }), /* @__PURE__ */ S(t.Portal, { children: /* @__PURE__ */ S(t.Positioner, {
337
+ children: t
338
+ }), /* @__PURE__ */ C(n.Portal, { children: /* @__PURE__ */ C(n.Positioner, {
339
339
  side: "right",
340
- children: /* @__PURE__ */ S(t.Popup, { children: e })
340
+ children: /* @__PURE__ */ C(n.Popup, { children: e })
341
341
  }) })] })
342
- }, a.href))
343
- }), o !== void 0 && /* @__PURE__ */ C(x, { children: [/* @__PURE__ */ S("hr", { className: "xc342km x178xt8z x13fuv20 xhjagg4 xv06hpe xn92wy8" }), /* @__PURE__ */ S("div", {
342
+ }, i.href))
343
+ }), o !== void 0 && /* @__PURE__ */ w(S, { children: [/* @__PURE__ */ C("hr", { className: "xc342km x178xt8z x13fuv20 xhjagg4 xv06hpe xn92wy8" }), /* @__PURE__ */ C("div", {
344
344
  className: "x1n2onr6 x78zum5 x6s0dn4 xl56j7k x1oec0jp",
345
- children: /* @__PURE__ */ C(t.Root, { children: [/* @__PURE__ */ S(t.Trigger, {
346
- render: /* @__PURE__ */ S(c, {
345
+ children: /* @__PURE__ */ w(n.Root, { children: [/* @__PURE__ */ C(n.Trigger, {
346
+ render: /* @__PURE__ */ C(l, {
347
347
  variant: "ghost",
348
348
  "aria-label": o.label
349
349
  }),
350
350
  onClick: d,
351
351
  children: o.icon
352
- }), /* @__PURE__ */ S(t.Portal, { children: /* @__PURE__ */ S(t.Positioner, {
352
+ }), /* @__PURE__ */ C(n.Portal, { children: /* @__PURE__ */ C(n.Positioner, {
353
353
  side: "right",
354
- children: /* @__PURE__ */ S(t.Popup, { children: o.label })
354
+ children: /* @__PURE__ */ C(n.Popup, { children: o.label })
355
355
  }) })] })
356
356
  })] })]
357
357
  }) });
358
358
  }
359
359
  // packages/layout/src/app-shell.tsx
360
- var W = { drawer: {
360
+ var G = { drawer: {
361
361
  kzqmXN: "x68ju84",
362
362
  ks0D6T: "x1recik0",
363
363
  $$css: !0
364
364
  } };
365
- function G({ rail: t, sidebarHeader: n, sidebar: r, footer: i, children: a, mainId: o = "main", shouldFocus: s = !1 }) {
366
- let c = t != null, [l, u] = b(!0), [d, f] = b(!1), p = s || c && !l, [m] = b(() => e.createHandle()), h = v(), g = y(null), x = y(null), w = y(null), T = y(!1);
367
- return _(() => {
368
- let e = globalThis.matchMedia(k.sidebarDesktopQuery);
365
+ function K({ rail: t, railFooter: n, sidebarHeader: r, sidebar: i, footer: a, children: o, mainId: s = "main", shouldFocus: c = !1 }) {
366
+ let l = t != null, u = n != null, [d, f] = x(!0), [p, m] = x(!1), h = c || l && !d, [g] = x(() => e.createHandle()), _ = y(), T = b(null), E = b(null), D = b(null), O = b(!1);
367
+ return v(() => {
368
+ let e = globalThis.matchMedia(j.sidebarDesktopQuery);
369
369
  function t() {
370
- e.matches && f(!1);
370
+ e.matches && m(!1);
371
371
  }
372
372
  return e.addEventListener("change", t), () => e.removeEventListener("change", t);
373
- }, []), /* @__PURE__ */ C(A.Provider, {
373
+ }, []), /* @__PURE__ */ w(M.Provider, {
374
374
  value: {
375
- isExpanded: l,
376
- sidebarId: h,
377
- drawerHandle: m,
378
- navigationToggleRef: g,
379
- mobileNavigationToggleRef: x,
380
- onToggle: () => u((e) => !e),
375
+ isExpanded: d,
376
+ sidebarId: _,
377
+ drawerHandle: g,
378
+ navigationToggleRef: T,
379
+ mobileNavigationToggleRef: E,
380
+ onToggle: () => f((e) => !e),
381
381
  onNavigate: () => {
382
- T.current = d, f(!1);
382
+ O.current = p, m(!1);
383
383
  }
384
384
  },
385
- children: [/* @__PURE__ */ C("div", {
385
+ children: [/* @__PURE__ */ w("div", {
386
386
  className: "x9f619 x1ov3xa9 x78zum5 xpvm0e4 xbixft x1hz01jw xtqrqnz x1778rvt xvmahel",
387
387
  children: [
388
- c && /* @__PURE__ */ S("div", {
389
- hidden: s,
388
+ l && /* @__PURE__ */ w("div", {
389
+ hidden: c,
390
390
  ...{
391
391
  0: { className: "x9f619 x78zum5 x1ykma7f xdt5ytf xs1s249 x32b0ac xelkwwr xpvm0e4 x7wzq59 x13vifvy xtdtrs8 x2lah0s x2lwn1j xeuugli x14j3e4g" },
392
392
  1: { className: "x9f619 xdt5ytf xs1s249 x32b0ac xelkwwr xpvm0e4 x7wzq59 x13vifvy xtdtrs8 x2lah0s x2lwn1j xeuugli x14j3e4g x1s85apg" }
393
- }[!!s | 0],
394
- children: t
393
+ }[!!c | 0],
394
+ children: [/* @__PURE__ */ C("div", {
395
+ className: "x98rzlu x2lwn1j x1odjw0f x1e4zzel",
396
+ children: t
397
+ }), u && /* @__PURE__ */ C("div", {
398
+ className: "x2lah0s x1a148e8",
399
+ children: /* @__PURE__ */ C("div", {
400
+ className: "x78zum5 x6s0dn4 xl56j7k x14j3e4g xnyqvp6",
401
+ children: n
402
+ })
403
+ })]
395
404
  }),
396
- /* @__PURE__ */ S("aside", {
397
- id: h,
405
+ /* @__PURE__ */ C("aside", {
406
+ id: _,
398
407
  "aria-label": "Navigation",
399
- hidden: p,
408
+ hidden: h,
400
409
  ...{
401
410
  0: { className: "x9f619 x78zum5 x1ykma7f xdt5ytf xs1s249 x32b0ac xelkwwr xpvm0e4 x7wzq59 x13vifvy xtdtrs8 x68ju84 x2lah0s x2lwn1j xeuugli" },
402
411
  4: { className: "x9f619 x78zum5 x1ykma7f xdt5ytf xs1s249 x32b0ac xelkwwr xpvm0e4 x7wzq59 x13vifvy xtdtrs8 x2lah0s x2lwn1j xeuugli xuqhkz3" },
@@ -406,91 +415,147 @@ function G({ rail: t, sidebarHeader: n, sidebar: r, footer: i, children: a, main
406
415
  5: { className: "x9f619 xdt5ytf xs1s249 x32b0ac xelkwwr xpvm0e4 x7wzq59 x13vifvy xtdtrs8 x2lah0s x2lwn1j xeuugli xuqhkz3 x1s85apg" },
407
416
  3: { className: "x9f619 xdt5ytf xs1s249 x32b0ac xelkwwr xpvm0e4 x7wzq59 x13vifvy xtdtrs8 x2lah0s x2lwn1j xeuugli x14j3e4g x1s85apg" },
408
417
  7: { className: "x9f619 xdt5ytf xs1s249 x32b0ac xelkwwr xpvm0e4 x7wzq59 x13vifvy xtdtrs8 x2lah0s x2lwn1j xeuugli x14j3e4g x1s85apg" }
409
- }[!!c << 2 | !(c || l) << 1 | !!p],
410
- children: /* @__PURE__ */ S(M, {
411
- header: n,
412
- footer: i,
413
- children: r
418
+ }[!!l << 2 | !(l || d) << 1 | !!h],
419
+ children: /* @__PURE__ */ C(F, {
420
+ header: r,
421
+ footer: a,
422
+ children: i
414
423
  })
415
424
  }),
416
- /* @__PURE__ */ S("main", {
417
- id: o,
425
+ /* @__PURE__ */ C("main", {
426
+ id: s,
418
427
  tabIndex: -1,
419
428
  className: "xeuugli x98rzlu",
420
- children: a
429
+ children: o
421
430
  })
422
431
  ]
423
- }), /* @__PURE__ */ S(e.Root, {
424
- handle: m,
425
- open: d && !s,
426
- onOpenChange: f,
427
- children: /* @__PURE__ */ C(e.Portal, { children: [/* @__PURE__ */ S(e.Backdrop, {}), /* @__PURE__ */ S(e.Viewport, { children: /* @__PURE__ */ C(e.Popup, {
428
- ref: w,
429
- xstyle: W.drawer,
432
+ }), /* @__PURE__ */ C(e.Root, {
433
+ handle: g,
434
+ open: p && !c,
435
+ onOpenChange: m,
436
+ children: /* @__PURE__ */ w(e.Portal, { children: [/* @__PURE__ */ C(e.Backdrop, {}), /* @__PURE__ */ C(e.Viewport, { children: /* @__PURE__ */ w(e.Popup, {
437
+ ref: D,
438
+ xstyle: G.drawer,
430
439
  finalFocus: () => {
431
- if (T.current) {
432
- T.current = !1;
433
- let e = document.querySelector(`#${CSS.escape(o)}`), t = document.activeElement;
440
+ if (O.current) {
441
+ O.current = !1;
442
+ let e = document.querySelector(`#${CSS.escape(s)}`), t = document.activeElement;
434
443
  if (t instanceof HTMLElement) {
435
444
  let e = t.closest("[role=\"dialog\"], [role=\"alertdialog\"]");
436
- if (e !== null && e !== w.current) return t;
445
+ if (e !== null && e !== D.current) return t;
437
446
  }
438
447
  return t instanceof HTMLElement && e?.contains(t) === !0 ? t : e;
439
448
  }
440
- return globalThis.matchMedia(k.sidebarDesktopQuery).matches ? g.current : x.current;
449
+ return globalThis.matchMedia(j.sidebarDesktopQuery).matches ? T.current : E.current;
441
450
  },
442
- children: [/* @__PURE__ */ S(e.Title, {
451
+ children: [/* @__PURE__ */ C(e.Title, {
443
452
  isVisuallyHidden: !0,
444
453
  children: "Navigation"
445
- }), /* @__PURE__ */ S(M, {
446
- header: n,
447
- navigationHeader: c && /* @__PURE__ */ S(V.Provider, {
448
- value: !0,
454
+ }), /* @__PURE__ */ C(F, {
455
+ header: r,
456
+ navigationHeader: l && /* @__PURE__ */ C(H.Provider, {
457
+ value: "drawer",
449
458
  children: t
450
459
  }),
451
- footer: i,
452
- close: /* @__PURE__ */ S(N, {}),
453
- children: r
460
+ footer: /* @__PURE__ */ w(S, { children: [a, l && u && /* @__PURE__ */ C(H.Provider, {
461
+ value: "drawer",
462
+ children: /* @__PURE__ */ C("div", {
463
+ className: "x2lah0s x1a148e8",
464
+ children: /* @__PURE__ */ C("div", {
465
+ className: "x78zum5 x6s0dn4 xl56j7k x14j3e4g xnyqvp6",
466
+ children: n
467
+ })
468
+ })
469
+ })] }),
470
+ close: /* @__PURE__ */ C(ee, {}),
471
+ children: i
454
472
  })]
455
473
  }) })] })
456
474
  })]
457
475
  });
458
476
  }
477
+ // packages/layout/src/navigation-rail-menu.tsx
478
+ var q = {
479
+ rail: {
480
+ side: "right",
481
+ align: "end"
482
+ },
483
+ drawer: {
484
+ side: "top",
485
+ align: "start"
486
+ }
487
+ };
488
+ function J({ label: e, icon: r, children: i }) {
489
+ let a = _(H), [o, s] = x(!1);
490
+ return v(() => {
491
+ let e = globalThis.matchMedia(j.sidebarDesktopQuery);
492
+ function t() {
493
+ s(!1);
494
+ }
495
+ return e.addEventListener("change", t), () => e.removeEventListener("change", t);
496
+ }, []), /* @__PURE__ */ w(t.Root, {
497
+ open: o,
498
+ onOpenChange: s,
499
+ modal: !1,
500
+ children: [/* @__PURE__ */ C(n.Provider, { children: /* @__PURE__ */ w(n.Root, {
501
+ disabled: o || a === "drawer",
502
+ children: [/* @__PURE__ */ C(n.Trigger, {
503
+ render: /* @__PURE__ */ C(t.Trigger, { render: /* @__PURE__ */ C(l, {
504
+ variant: "ghost",
505
+ "aria-label": e
506
+ }) }),
507
+ children: r
508
+ }), /* @__PURE__ */ C(n.Portal, { children: /* @__PURE__ */ C(n.Positioner, {
509
+ side: "right",
510
+ children: /* @__PURE__ */ C(n.Popup, { children: e })
511
+ }) })]
512
+ }) }), /* @__PURE__ */ C(t.Portal, { children: /* @__PURE__ */ C(t.Positioner, {
513
+ ...q[a],
514
+ sideOffset: 4,
515
+ collisionPadding: 8,
516
+ children: /* @__PURE__ */ C(t.Popup, {
517
+ "aria-label": e,
518
+ className: "x1uncgzr",
519
+ children: i
520
+ })
521
+ }) })]
522
+ });
523
+ }
459
524
  // packages/layout/src/detail-page.tsx
460
- function K({ children: e }) {
461
- return /* @__PURE__ */ S("div", {
525
+ function Y({ children: e }) {
526
+ return /* @__PURE__ */ C("div", {
462
527
  className: "x9f619 x13na7z x96idz6 x9g60mw xeuugli xvueqy4 xnjsko4 x10gdey3 x14y0u4g x1foqgtu x1uwsqpk x14oio8y",
463
528
  children: e
464
529
  });
465
530
  }
466
531
  // packages/layout/src/focus-page.tsx
467
- function q({ children: e }) {
468
- return /* @__PURE__ */ S("main", {
532
+ function X({ children: e }) {
533
+ return /* @__PURE__ */ C("main", {
469
534
  id: "main",
470
535
  tabIndex: -1,
471
536
  className: "x9f619 x1ov3xa9 xeuugli xrvj5dj x1ku5rj1 x1jvlu93 xpvm0e4 xbixft x1hz01jw xtqrqnz x1778rvt xvmahel",
472
- children: /* @__PURE__ */ S("div", {
537
+ children: /* @__PURE__ */ C("div", {
473
538
  className: "xh8yej3 xxc7z9f xeuugli xrvj5dj x1mkdm3x x1j825kq",
474
539
  children: e
475
540
  })
476
541
  });
477
542
  }
478
543
  // packages/layout/src/workbench.tsx
479
- function ne({ header: e, children: t, inspector: n }) {
480
- return /* @__PURE__ */ C("div", {
544
+ function Z({ header: e, children: t, inspector: n }) {
545
+ return /* @__PURE__ */ w("div", {
481
546
  className: "x78zum5 xdt5ytf x1r09gfs xeuugli x2lwn1j x12h1iku x1a75771 xbixft x1hz01jw xtqrqnz x1778rvt xj57cvi xvmahel",
482
- children: [e != null && /* @__PURE__ */ S("div", {
547
+ children: [e != null && /* @__PURE__ */ C("div", {
483
548
  className: "xeuugli x2lah0s x1ydxw8w xnx3t7k xso031l x1q0q8m5 x1qndepd",
484
549
  children: e
485
- }), /* @__PURE__ */ C("div", {
550
+ }), /* @__PURE__ */ w("div", {
486
551
  className: "x78zum5 x98rzlu xeuugli x2lwn1j x7giv3",
487
- children: [/* @__PURE__ */ S("div", {
552
+ children: [/* @__PURE__ */ C("div", {
488
553
  ...{
489
554
  0: { className: "x1n2onr6 x78zum5 x98rzlu xdt5ytf xeuugli x2lwn1j" },
490
555
  1: { className: "x1n2onr6 x98rzlu xdt5ytf xeuugli x2lwn1j x78zum5 x152g2jv" }
491
556
  }[n !== void 0 | 0],
492
557
  children: t
493
- }), n !== void 0 && /* @__PURE__ */ S("aside", {
558
+ }), n !== void 0 && /* @__PURE__ */ C("aside", {
494
559
  "aria-label": n.label,
495
560
  className: "x9f619 x1peuizl x1vx4hiz xeuugli x2lah0s x1odjw0f x1c8xbx5 xpvm0e4 xe0pwq xs311s2 x19ypqd9 x1l3ounx",
496
561
  children: n.content
@@ -498,9 +563,9 @@ function ne({ header: e, children: t, inspector: n }) {
498
563
  })]
499
564
  });
500
565
  }
501
- function J({ label: e, children: t, isFlush: n = !1, scrollRestorationId: r }) {
502
- let i = u();
503
- return /* @__PURE__ */ S("div", {
566
+ function ne({ label: e, children: t, isFlush: n = !1, scrollRestorationId: r }) {
567
+ let i = d();
568
+ return /* @__PURE__ */ C("div", {
504
569
  ref: i.ref,
505
570
  role: "region",
506
571
  "aria-label": e,
@@ -513,21 +578,21 @@ function J({ label: e, children: t, isFlush: n = !1, scrollRestorationId: r }) {
513
578
  children: t
514
579
  });
515
580
  }
516
- function Y({ children: e }) {
517
- return /* @__PURE__ */ S("div", {
581
+ function re({ children: e }) {
582
+ return /* @__PURE__ */ C("div", {
518
583
  className: "x2lah0s x1c8xbx5 x178xt8z x13fuv20 xhjagg4 xpvm0e4",
519
584
  children: e
520
585
  });
521
586
  }
522
587
  // packages/layout/src/view-stack.tsx
523
- function X({ children: e }) {
524
- return /* @__PURE__ */ S("div", {
588
+ function ie({ children: e }) {
589
+ return /* @__PURE__ */ C("div", {
525
590
  className: "x1n2onr6 x78zum5 xdt5ytf x98rzlu xeuugli x2lwn1j",
526
591
  children: e
527
592
  });
528
593
  }
529
- function Z({ isActive: e, children: t }) {
530
- return /* @__PURE__ */ S("section", {
594
+ function ae({ isActive: e, children: t }) {
595
+ return /* @__PURE__ */ C("section", {
531
596
  "aria-hidden": !e,
532
597
  inert: !e,
533
598
  ...{
@@ -537,62 +602,62 @@ function Z({ isActive: e, children: t }) {
537
602
  children: t
538
603
  });
539
604
  }
540
- var re = {
541
- Root: X,
542
- Panel: Z
543
- }, ie = { action: {
605
+ var oe = {
606
+ Root: ie,
607
+ Panel: ae
608
+ }, se = { action: {
544
609
  k7Eaqz: "xeuugli",
545
610
  ks0D6T: "x193iq5w",
546
611
  $$css: !0
547
612
  } };
548
613
  function Q({ title: e, actions: t, showBreadcrumb: n = !1, showNavigation: r = !0, views: i, leading: a }) {
549
- let o = m.toArray(e).length > 0, s = m.toArray(t).length > 0, c = m.toArray(i).length > 0, l = m.toArray(a).length > 0;
550
- return m.toArray([
614
+ let o = h.toArray(e).length > 0, s = h.toArray(t).length > 0, c = h.toArray(i).length > 0, l = h.toArray(a).length > 0;
615
+ return h.toArray([
551
616
  e,
552
617
  t,
553
618
  i,
554
619
  a
555
- ]).length === 0 ? null : /* @__PURE__ */ C("div", {
620
+ ]).length === 0 ? null : /* @__PURE__ */ w("div", {
556
621
  className: "x9f619 x78zum5 x12h1iku x14ut1dr x1qjc9v5 xnyqvp6 x2lah0s xso031l x1q0q8m5 x1qndepd xpvm0e4 xbixft x1hz01jw xtqrqnz x1778rvt xj57cvi xvmahel xeuugli",
557
622
  children: [
558
- l ? /* @__PURE__ */ S("div", {
623
+ l ? /* @__PURE__ */ C("div", {
559
624
  className: "x78zum5 x6s0dn4 xyibt8p x2lah0s",
560
625
  children: a
561
- }) : r && /* @__PURE__ */ S(B, {}),
562
- o && /* @__PURE__ */ S(n ? "nav" : "h1", {
626
+ }) : r && /* @__PURE__ */ C(V, {}),
627
+ o && /* @__PURE__ */ C(n ? "nav" : "h1", {
563
628
  tabIndex: n ? void 0 : -1,
564
629
  "aria-label": n ? "Breadcrumb" : void 0,
565
630
  className: "x78zum5 x6s0dn4 x1hnptsi x1dc62k6 xeuugli xs83m0k x1ghz6dp x1qlqyl8 xj57cvi x1t137rt",
566
- children: /* @__PURE__ */ S("span", {
631
+ children: /* @__PURE__ */ C("span", {
567
632
  className: "xeuugli xb3r6kr xlyipyv xuxw1ft",
568
633
  children: e
569
634
  })
570
635
  }),
571
- c && /* @__PURE__ */ S("div", {
636
+ c && /* @__PURE__ */ C("div", {
572
637
  className: "x78zum5 x6s0dn4 xeuugli x2lah0s",
573
638
  children: i
574
639
  }),
575
- s && /* @__PURE__ */ S("div", {
640
+ s && /* @__PURE__ */ C("div", {
576
641
  className: "x78zum5 x6s0dn4 xunmzkg x1dc62k6 xeuugli x2lah0s x8x9d4c",
577
642
  children: t
578
643
  })
579
644
  ]
580
645
  });
581
646
  }
582
- function ae({ icon: e, children: t, ...r }) {
647
+ function ce({ icon: e, children: t, ...n }) {
583
648
  let i = e != null;
584
- return /* @__PURE__ */ S("div", {
649
+ return /* @__PURE__ */ C("div", {
585
650
  className: "x9f619 x78zum5 x1qjc9v5 xeuugli",
586
- children: /* @__PURE__ */ C(n, {
587
- ...r,
651
+ children: /* @__PURE__ */ w(r, {
652
+ ...n,
588
653
  variant: "ghost",
589
- "aria-label": r["aria-label"] ?? (typeof t == "string" ? t : void 0),
590
- xstyle: ie.action,
591
- children: [i && /* @__PURE__ */ S("span", {
654
+ "aria-label": n["aria-label"] ?? (typeof t == "string" ? t : void 0),
655
+ xstyle: se.action,
656
+ children: [i && /* @__PURE__ */ C("span", {
592
657
  "aria-hidden": !0,
593
658
  className: "x3nfvp2 x2lah0s x6s0dn4",
594
659
  children: e
595
- }), i || typeof t == "string" ? /* @__PURE__ */ S("span", {
660
+ }), i || typeof t == "string" ? /* @__PURE__ */ C("span", {
596
661
  ...{
597
662
  0: { className: "xeuugli xb3r6kr xlyipyv xuxw1ft" },
598
663
  1: { className: "xeuugli xb3r6kr xlyipyv xuxw1ft xt0psk2 xlllsrz" }
@@ -603,32 +668,32 @@ function ae({ icon: e, children: t, ...r }) {
603
668
  });
604
669
  }
605
670
  // packages/layout/src/page-content.tsx
606
- function oe({ children: e }) {
607
- return /* @__PURE__ */ S("div", {
671
+ function le({ children: e }) {
672
+ return /* @__PURE__ */ C("div", {
608
673
  className: "x9f619 x78zum5 xdt5ytf xdz4d12 xeuugli xg7ukam",
609
674
  children: e
610
675
  });
611
676
  }
612
677
  // packages/layout/src/report-section.tsx
613
- function se({ summary: e, children: t }) {
614
- return /* @__PURE__ */ C(s, {
678
+ function ue({ summary: e, children: t }) {
679
+ return /* @__PURE__ */ w(c, {
615
680
  isCompact: !0,
616
681
  children: [e, t]
617
682
  });
618
683
  }
619
684
  // packages/layout/src/record-page.tsx
620
- function ce({ children: e }) {
621
- return /* @__PURE__ */ S("div", {
685
+ function de({ children: e }) {
686
+ return /* @__PURE__ */ C("div", {
622
687
  className: "x78zum5 xdt5ytf xeuugli xbixft x1hz01jw xtqrqnz x1778rvt xvmahel",
623
688
  children: e
624
689
  });
625
690
  }
626
- function le({ backLabel: e, backHref: t, onBack: n, actions: r, showNavigation: i = !0 }) {
627
- return /* @__PURE__ */ S(Q, {
691
+ function fe({ backLabel: e, backHref: t, onBack: n, actions: r, showNavigation: i = !0 }) {
692
+ return /* @__PURE__ */ C(Q, {
628
693
  showBreadcrumb: !0,
629
694
  showNavigation: i,
630
695
  actions: r,
631
- title: /* @__PURE__ */ C("a", {
696
+ title: /* @__PURE__ */ w("a", {
632
697
  href: t,
633
698
  className: "x3nfvp2 x6s0dn4 x1hnptsi xid9utz xeuugli x193iq5w xbixft xkrqix3 x5638nf x13qnu6 x9v5kkp x19rmrnh x1bqaal",
634
699
  onClick: (e) => {
@@ -636,65 +701,65 @@ function le({ backLabel: e, backHref: t, onBack: n, actions: r, showNavigation:
636
701
  let t = e.metaKey || e.ctrlKey, r = e.shiftKey || e.altKey;
637
702
  t || r || (e.preventDefault(), n());
638
703
  },
639
- children: [/* @__PURE__ */ S(w, {
704
+ children: [/* @__PURE__ */ C(T, {
640
705
  size: 16,
641
706
  "aria-hidden": !0,
642
707
  className: "x2lah0s"
643
- }), /* @__PURE__ */ S("span", {
708
+ }), /* @__PURE__ */ C("span", {
644
709
  className: "xeuugli xb3r6kr xlyipyv xuxw1ft",
645
710
  children: e
646
711
  })]
647
712
  })
648
713
  });
649
714
  }
650
- function ue({ children: e }) {
651
- return /* @__PURE__ */ S(K, { children: /* @__PURE__ */ S("div", {
715
+ function pe({ children: e }) {
716
+ return /* @__PURE__ */ C(Y, { children: /* @__PURE__ */ C("div", {
652
717
  className: "x78zum5 x1a02dak x1cy8zhl xdz4d12 xeuugli",
653
718
  children: e
654
719
  }) });
655
720
  }
656
- function de({ children: e }) {
657
- return /* @__PURE__ */ S("div", {
721
+ function $({ children: e }) {
722
+ return /* @__PURE__ */ C("div", {
658
723
  className: "x78zum5 xdt5ytf x1ewej1i x1iyjqo2 xdz4d12 xeuugli",
659
724
  children: e
660
725
  });
661
726
  }
662
- function fe({ title: e, description: t, icon: n, titleRef: r }) {
663
- return /* @__PURE__ */ C("header", {
727
+ function me({ title: e, description: t, icon: n, titleRef: r }) {
728
+ return /* @__PURE__ */ w("header", {
664
729
  className: "xrvj5dj x1n8ia3y xeuugli",
665
- children: [/* @__PURE__ */ C("div", {
730
+ children: [/* @__PURE__ */ w("div", {
666
731
  className: "x78zum5 x6s0dn4 x1n8ia3y xeuugli",
667
- children: [n != null && /* @__PURE__ */ S("span", {
732
+ children: [n != null && /* @__PURE__ */ C("span", {
668
733
  "aria-hidden": !0,
669
734
  className: "x3nfvp2 x6s0dn4 x2lah0s",
670
735
  children: n
671
- }), /* @__PURE__ */ S(o, {
736
+ }), /* @__PURE__ */ C(s, {
672
737
  ref: r,
673
738
  tabIndex: -1,
674
739
  className: "xeuugli x1t137rt",
675
740
  children: e
676
741
  })]
677
- }), t != null && /* @__PURE__ */ S(a, { children: t })]
742
+ }), t != null && /* @__PURE__ */ C(o, { children: t })]
678
743
  });
679
744
  }
680
- function pe({ children: e, label: t = "Properties" }) {
681
- return /* @__PURE__ */ S("aside", {
745
+ function he({ children: e, label: t = "Properties" }) {
746
+ return /* @__PURE__ */ C("aside", {
682
747
  "aria-label": t,
683
748
  className: "x78zum5 xdt5ytf x1irul0l x1iyjqo2 x1j825kq xeuugli",
684
749
  children: e
685
750
  });
686
751
  }
687
- var $ = {
688
- Root: ce,
689
- Toolbar: le,
690
- Body: ue,
691
- Content: de,
692
- Header: fe,
693
- Aside: pe
752
+ var ge = {
753
+ Root: de,
754
+ Toolbar: fe,
755
+ Body: pe,
756
+ Content: $,
757
+ Header: me,
758
+ Aside: he
694
759
  };
695
760
  // packages/layout/src/resizable.tsx
696
- function me({ orientation: e = "horizontal", initialSizes: t, onSizesChange: n, disabled: r, ref: i, ...a }) {
697
- return /* @__PURE__ */ S(ee, {
761
+ function _e({ orientation: e = "horizontal", initialSizes: t, onSizesChange: n, disabled: r, ref: i, ...a }) {
762
+ return /* @__PURE__ */ C(O, {
698
763
  orientation: e,
699
764
  defaultLayout: t,
700
765
  onLayoutChanged: (e, t) => {
@@ -706,29 +771,29 @@ function me({ orientation: e = "horizontal", initialSizes: t, onSizesChange: n,
706
771
  coarse: 44,
707
772
  fine: 12
708
773
  },
709
- ...f({ className: "xeuugli x2lwn1j xh8yej3 x5yr21d" }, a)
774
+ ...p({ className: "xeuugli x2lwn1j xh8yej3 x5yr21d" }, a)
710
775
  });
711
776
  }
712
- function he({ id: e, initialSizePercent: t, minimumSizePercent: n = 10, maximumSizePercent: r = 100, canCollapse: i = !1, ref: a, ...o }) {
713
- return /* @__PURE__ */ S(D, {
777
+ function ve({ id: e, initialSizePercent: t, minimumSizePercent: n = 10, maximumSizePercent: r = 100, canCollapse: i = !1, ref: a, ...o }) {
778
+ return /* @__PURE__ */ C(k, {
714
779
  id: e,
715
780
  defaultSize: t === void 0 ? void 0 : `${t}%`,
716
781
  minSize: `${n}%`,
717
782
  maxSize: `${r}%`,
718
783
  collapsible: i,
719
784
  elementRef: a,
720
- ...f({ className: "xeuugli x2lwn1j xysyzu8" }, o)
785
+ ...p({ className: "xeuugli x2lwn1j xysyzu8" }, o)
721
786
  });
722
787
  }
723
- function ge({ ref: e, ...t }) {
724
- return /* @__PURE__ */ S(O, {
788
+ function ye({ ref: e, ...t }) {
789
+ return /* @__PURE__ */ C(A, {
725
790
  elementRef: e,
726
- ...f({ className: "x1fa40ue x1i1rx1s xgc0pbm xir5lan xfaai28 x1rbdpqn x8wp5i9 x13qnu6 x9v5kkp x19rmrnh x13iak60" }, t)
791
+ ...p({ className: "x1fa40ue x1i1rx1s xgc0pbm xir5lan xfaai28 x1rbdpqn x8wp5i9 x13qnu6 x9v5kkp x19rmrnh x13iak60" }, t)
727
792
  });
728
793
  }
729
- var _e = {
730
- Root: me,
731
- Pane: he,
732
- Handle: ge
794
+ var be = {
795
+ Root: _e,
796
+ Pane: ve,
797
+ Handle: ye
733
798
  };
734
- export { G as AppShell, K as DetailPage, q as FocusPage, P as Navigation, I as NavigationItem, L as NavigationLink, U as NavigationRail, F as NavigationSection, oe as PageContent, Q as PageToolbar, $ as RecordPage, se as ReportSection, _e as Resizable, z as SidebarFooter, R as SidebarLabel, ae as ToolbarAction, re as ViewStack, ne as Workbench, Y as WorkbenchFooter, J as WorkbenchScroll };
799
+ export { K as AppShell, Y as DetailPage, X as FocusPage, te as Navigation, L as NavigationItem, R as NavigationLink, W as NavigationRail, J as NavigationRailMenu, I as NavigationSection, le as PageContent, Q as PageToolbar, ge as RecordPage, ue as ReportSection, be as Resizable, B as SidebarFooter, z as SidebarLabel, ce as ToolbarAction, oe as ViewStack, Z as Workbench, re as WorkbenchFooter, ne as WorkbenchScroll };