@mechane-ai/elements 0.41.0 → 0.42.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 (65) hide show
  1. package/README.md +40 -9
  2. package/bin/catalog.d.mts +17 -0
  3. package/bin/mechane-elements-catalog.mjs +60 -0
  4. package/dist/agent.js +1 -1
  5. package/dist/ai.js +23 -23
  6. package/dist/catalog.json +1896 -0
  7. package/dist/{categorical-values-DnGR_pQx.js → categorical-values-B6lGI7BH.js} +3 -3
  8. package/dist/{chart-frame-BsyI1Zc8.js → chart-frame-D0enjyj9.js} +1 -1
  9. package/dist/{chart-input-r4S3-QCT.js → chart-input-D4_Awave.js} +2 -2
  10. package/dist/{chart-navigation-D7OkLdSx.js → chart-navigation-D4-pdgpj.js} +12 -1
  11. package/dist/charts/cartesian.js +263 -243
  12. package/dist/charts/distribution.js +4 -4
  13. package/dist/charts/graph.js +4 -4
  14. package/dist/charts/hierarchy.js +4 -4
  15. package/dist/charts/matrix.js +4 -4
  16. package/dist/charts/timeline.js +3 -3
  17. package/dist/charts.js +2 -2
  18. package/dist/{code-block-C4K1sM9O.js → code-block-Cpfr7B6a.js} +1 -1
  19. package/dist/collections.js +475 -354
  20. package/dist/content/code.js +1 -1
  21. package/dist/content/diff.js +3 -3
  22. package/dist/content/link.js +1 -1
  23. package/dist/content/markdown.js +2 -2
  24. package/dist/content/tree.js +2 -2
  25. package/dist/{content-link-CBDqSvgP.js → content-link-CGeFFb9F.js} +1 -1
  26. package/dist/content.js +1 -1
  27. package/dist/feedback.js +1 -1
  28. package/dist/forms/dates.js +11 -11
  29. package/dist/{forms-I-WMHTkr.js → forms-DeU0Tiv3.js} +6 -2
  30. package/dist/forms.js +3 -3
  31. package/dist/index.js +1 -1
  32. package/dist/layout.js +275 -249
  33. package/dist/mechane-elements-catalog.mjs +4 -0
  34. package/dist/navigation.js +2 -2
  35. package/dist/packages/charts/src/chart-inspection.d.ts +1 -0
  36. package/dist/packages/charts/src/chart-navigation.d.ts +2 -0
  37. package/dist/packages/charts/src/chart-surface.d.ts +2 -0
  38. package/dist/packages/collections/src/collection-controls.d.ts +2 -1
  39. package/dist/packages/collections/src/data-table.d.ts +12 -8
  40. package/dist/packages/collections/src/index.d.ts +1 -0
  41. package/dist/packages/collections/src/table-results.d.ts +26 -0
  42. package/dist/packages/core/src/actions.d.ts +6 -0
  43. package/dist/packages/core/src/index.d.ts +1 -1
  44. package/dist/packages/forms/src/form-status.d.ts +7 -0
  45. package/dist/packages/forms/src/forms.d.ts +3 -1
  46. package/dist/packages/forms/src/index.d.ts +2 -0
  47. package/dist/packages/foundations/src/agent/index.d.ts +2 -2
  48. package/dist/packages/layout/src/page-context.d.ts +4 -0
  49. package/dist/packages/navigation/src/index.d.ts +1 -0
  50. package/dist/packages/navigation/src/route-link.d.ts +2 -0
  51. package/dist/{pierre-diff-DJ3oOfPX.js → pierre-diff-B3tD3-6z.js} +1 -1
  52. package/dist/{src-D2OHco8V.js → src-Bk7M67zy.js} +3 -3
  53. package/dist/{src-DfOAlAd2.js → src-BpvnBWrF.js} +1 -1
  54. package/dist/{src-CQQvXi7a.js → src-DBNncL7_.js} +70 -50
  55. package/dist/{src-s3tWwnN4.js → src-DcW_gMX8.js} +178 -168
  56. package/dist/{src-CNV1ewzb.js → src-gqEebHEa.js} +319 -285
  57. package/package.json +9 -2
  58. package/recipes/consequential-form.tsx +132 -0
  59. package/recipes/searchable-collection.tsx +106 -0
  60. package/recipes/sectioned-report.tsx +58 -0
  61. package/recipes/tabbed-workspace.tsx +84 -0
  62. package/skills/extend-elements/SKILL.md +28 -0
  63. package/skills/use-elements/SKILL.md +36 -0
  64. package/skills/{elements-presentation/SKILL.md → use-elements/references/reports.md} +0 -6
  65. package/skills/{elements-workspace/SKILL.md → use-elements/references/workspace.md} +0 -6
package/dist/layout.js CHANGED
@@ -1,33 +1,56 @@
1
- import { E as e, T as t, i as n, l as r, n as i, w as a } from "./src-s3tWwnN4.js";
1
+ import { D as e, E as t, i as n, l as r, n as i, w as a } from "./src-DcW_gMX8.js";
2
2
  import { t as o } from "./use-scroll-tab-index-Dxpdh4W7.js";
3
- import { a as s, i as c } from "./src-CQQvXi7a.js";
4
- import { t as l } from "./header-styles-COxCYFZx.js";
5
- import { n as u } from "./accessibility-P89UG9-r.js";
6
- import { a as d, i as f, t as p } from "./src-na2DdkKI.js";
7
- import { r as m } from "./control-styles-D3q_Qyxi.js";
8
- import * as h from "@stylexjs/stylex";
9
- import { Button as g } from "@ui-sdk/react/button";
10
- import { mergeProps as _ } from "@ui-sdk/react/primitive";
11
- import { Children as v, createContext as y, useContext as b, useEffect as x, useId as S, useRef as C, useState as w } from "react";
12
- import { Fragment as T, jsx as E, jsxs as D } from "react/jsx-runtime";
13
- import { ArrowLeft as O, PanelLeft as k, X as ee } from "lucide-react";
14
- import { Resizable as A, ResizableHandle as j, ResizablePanel as M } from "@ui-sdk/react/resizable";
3
+ import { a as s, i as c, o as l } from "./src-DBNncL7_.js";
4
+ import { t as u } from "./header-styles-COxCYFZx.js";
5
+ import { n as d } from "./accessibility-P89UG9-r.js";
6
+ import { a as f, i as p, t as m } from "./src-na2DdkKI.js";
7
+ import { r as h } from "./control-styles-D3q_Qyxi.js";
8
+ import * as g from "@stylexjs/stylex";
9
+ import { Button as _ } from "@ui-sdk/react/button";
10
+ import { createParts as v, mergeProps as y } from "@ui-sdk/react/primitive";
11
+ import { Children as b, createContext as x, useContext as S, useEffect as C, useId as w, useRef as T, useState as E } from "react";
12
+ import { Fragment as D, jsx as O, jsxs as k } from "react/jsx-runtime";
13
+ import { ArrowLeft as ee, PanelLeft as A, X as te } from "lucide-react";
14
+ import { definePrimitive as j } from "@ui-sdk/core";
15
+ import { Resizable as ne, ResizableHandle as re, ResizablePanel as ie } from "@ui-sdk/react/resizable";
15
16
  // packages/layout/src/page-content.tsx
16
- function N({ children: e }) {
17
- return /* @__PURE__ */ E("div", {
17
+ function M({ children: e }) {
18
+ return /* @__PURE__ */ O("div", {
18
19
  className: "x9f619 x78zum5 xdt5ytf xdz4d12 xeuugli xg7ukam",
19
20
  children: e
20
21
  });
21
22
  }
22
- // packages/layout/src/frame.stylex.ts
23
- var P = {
23
+ // packages/layout/src/page-context.tsx
24
+ var ae = j({
25
+ name: "page-title",
26
+ state: () => ({}),
27
+ api: () => ({}),
28
+ slots: (e) => ({ root: e({}) })
29
+ }), N = v(ae, { root: "h1" }).Root;
30
+ function oe({ section: e }) {
31
+ if (e === null) return !1;
32
+ let t = e.closest("[data-page-viewport]"), n = Math.max(0, t?.getBoundingClientRect().top ?? 0), r = e.getBoundingClientRect();
33
+ return r.top <= n && r.bottom > n;
34
+ }
35
+ var se = j({
36
+ name: "page-section",
37
+ state: () => ({ section: null }),
38
+ api: () => ({}),
39
+ agent: {
40
+ actions: [],
41
+ shown: oe
42
+ },
43
+ slots: (e) => ({ root: e({ bind(e, { store: t }) {
44
+ t.set({ section: e });
45
+ } }) })
46
+ }), ce = v(se, { root: "section" }).Root, P = {
24
47
  sidebarMobile: "@media (max-width:800px)",
25
48
  sidebarDesktopQuery: "(min-width:801px)",
26
49
  sidebarCoarse: "@media (min-width:801px) and (pointer: coarse)",
27
50
  detailMobile: "@media (max-width:720px)",
28
51
  toolbarCompact: "@container toolbar (max-width:600px)",
29
52
  workbenchCompact: "@container workbench (max-width:860px)"
30
- }, F = y(null), I = {
53
+ }, F = x(null), I = {
31
54
  header: {
32
55
  kB7OPa: "x9f619",
33
56
  kVAEAm: "x1n2onr6",
@@ -91,16 +114,16 @@ var P = {
91
114
  k1xSpc: "x1s85apg x1rhi5y4",
92
115
  $$css: !0
93
116
  }
94
- }, L = {
117
+ }, le = {
95
118
  inline: I.inlineFooter,
96
119
  navigation: I.navigationFooter
97
120
  };
98
- function R({ header: e, navigationHeader: t, footer: n, close: r, children: i }) {
99
- let a = b(F), o = a !== null && !a.isExpanded, s = e != null;
100
- return /* @__PURE__ */ D(T, { children: [
101
- /* @__PURE__ */ D("div", {
102
- ...h.props(I.header, l.blockEnd, !s && I.emptyHeader),
103
- children: [/* @__PURE__ */ E("div", {
121
+ function L({ header: e, navigationHeader: t, footer: n, close: r, children: i }) {
122
+ let a = S(F), o = a !== null && !a.isExpanded, s = e != null;
123
+ return /* @__PURE__ */ k(D, { children: [
124
+ /* @__PURE__ */ k("div", {
125
+ ...g.props(I.header, u.blockEnd, !s && I.emptyHeader),
126
+ children: [/* @__PURE__ */ O("div", {
104
127
  ...{
105
128
  0: { className: "x78zum5 x6s0dn4 x98rzlu xeuugli x1dc62k6" },
106
129
  1: { className: "x78zum5 x6s0dn4 x98rzlu xeuugli xl56j7k x1l31gyv xnjsko4 x7qzpmf" }
@@ -109,36 +132,36 @@ function R({ header: e, navigationHeader: t, footer: n, close: r, children: i })
109
132
  }), r]
110
133
  }),
111
134
  t,
112
- /* @__PURE__ */ E("div", {
135
+ /* @__PURE__ */ O("div", {
113
136
  role: "region",
114
137
  "aria-label": "Navigation links",
115
138
  className: "x98rzlu x2lwn1j x1odjw0f xish69e x1t137rt x7d1sxj x13qnu6 x9v5kkp x19rmrnh x1bqaal",
116
139
  children: i
117
140
  }),
118
- n != null && /* @__PURE__ */ E("div", {
141
+ n != null && /* @__PURE__ */ O("div", {
119
142
  className: "x2lah0s xeuugli xr1yuqi xpvm0e4 x153jb6y",
120
143
  children: n
121
144
  })
122
145
  ] });
123
146
  }
124
- function te() {
125
- return /* @__PURE__ */ E("div", {
147
+ function ue() {
148
+ return /* @__PURE__ */ O("div", {
126
149
  className: "x78zum5 x6s0dn4 xl56j7k x14j3e4g x2lah0s",
127
- children: /* @__PURE__ */ E(d.Close, {
128
- render: /* @__PURE__ */ E(t, {
150
+ children: /* @__PURE__ */ O(f.Close, {
151
+ render: /* @__PURE__ */ O(t, {
129
152
  variant: "ghost",
130
153
  "aria-label": "Close navigation"
131
154
  }),
132
- children: /* @__PURE__ */ E(ee, {
155
+ children: /* @__PURE__ */ O(te, {
133
156
  size: 16,
134
157
  "aria-hidden": !0
135
158
  })
136
159
  })
137
160
  });
138
161
  }
139
- function ne({ children: e, label: t = "Main" }) {
140
- let n = b(F), r = n !== null && !n.isExpanded;
141
- return /* @__PURE__ */ E("nav", {
162
+ function de({ children: e, label: t = "Main" }) {
163
+ let n = S(F), r = n !== null && !n.isExpanded;
164
+ return /* @__PURE__ */ O("nav", {
142
165
  "aria-label": t,
143
166
  ...{
144
167
  0: { className: "x78zum5 xdt5ytf xksvo5r" },
@@ -147,12 +170,12 @@ function ne({ children: e, label: t = "Main" }) {
147
170
  children: e
148
171
  });
149
172
  }
150
- function re({ children: e, label: t }) {
151
- let n = b(F), r = n !== null && !n.isExpanded, i = S();
152
- return /* @__PURE__ */ D("section", {
173
+ function R({ children: e, label: t }) {
174
+ let n = S(F), r = n !== null && !n.isExpanded, i = w();
175
+ return /* @__PURE__ */ k("section", {
153
176
  "aria-labelledby": i,
154
177
  className: "xeuugli",
155
- children: [/* @__PURE__ */ E("div", {
178
+ children: [/* @__PURE__ */ O("div", {
156
179
  id: i,
157
180
  ...{
158
181
  0: { className: "xeuugli xmblgzg xngumbj xksvo5r x153jb6y x1hz01jw xy8obcc xas2l8k xk4h15q xj0a0fe" },
@@ -162,22 +185,22 @@ function re({ children: e, label: t }) {
162
185
  }), e]
163
186
  });
164
187
  }
165
- function ie({ children: e, icon: t, isSelected: n = !1, shouldCloseOnActivate: r = !0, onClick: i, className: a, style: o, ...s }) {
166
- let c = b(F), l = S(), d = c !== null && !c.isExpanded;
167
- return /* @__PURE__ */ E("div", {
188
+ function z({ children: e, icon: t, isSelected: n = !1, shouldCloseOnActivate: r = !0, onClick: i, className: a, style: o, ...s }) {
189
+ let c = S(F), l = w(), u = c !== null && !c.isExpanded;
190
+ return /* @__PURE__ */ O("div", {
168
191
  ...{
169
192
  0: { className: "x78zum5 xeuugli x1ok0vyi" },
170
193
  1: { className: "x78zum5 xeuugli x1ok0vyi x1r7kqkb" }
171
194
  }[!!n | 0],
172
- children: /* @__PURE__ */ D(g, {
195
+ children: /* @__PURE__ */ k(_, {
173
196
  ...s,
174
- ...u({
197
+ ...d({
175
198
  className: a,
176
199
  style: o,
177
200
  styles: {
178
201
  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" },
179
202
  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" }
180
- }[!!d | 0]
203
+ }[!!u | 0]
181
204
  }),
182
205
  "aria-current": n ? "page" : void 0,
183
206
  "aria-labelledby": s["aria-labelledby"] ?? (s["aria-label"] === void 0 ? l : void 0),
@@ -185,29 +208,29 @@ function ie({ children: e, icon: t, isSelected: n = !1, shouldCloseOnActivate: r
185
208
  onClick: (e, t) => {
186
209
  i !== void 0 && i(e, t), !e.defaultPrevented && c !== null && r && c.onNavigate();
187
210
  },
188
- children: [t != null && /* @__PURE__ */ E("span", {
211
+ children: [t != null && /* @__PURE__ */ O("span", {
189
212
  "aria-hidden": !0,
190
213
  className: "x3nfvp2 x6s0dn4 xl56j7k xtwnzbg x18utl2x x2lah0s",
191
214
  children: t
192
- }), /* @__PURE__ */ E("span", {
215
+ }), /* @__PURE__ */ O("span", {
193
216
  id: l,
194
217
  ...{
195
218
  0: { className: "xeuugli xb3r6kr xlyipyv xuxw1ft" },
196
219
  1: { className: "xeuugli xb3r6kr xlyipyv xuxw1ft x1s85apg xeod2sa" }
197
- }[!!d | 0],
220
+ }[!!u | 0],
198
221
  children: e
199
222
  })]
200
223
  })
201
224
  });
202
225
  }
203
- function ae({ children: e, icon: t, isSelected: n = !1, onClick: r, className: i, style: a, ...o }) {
204
- let s = b(F), c = S(), l = s !== null && !s.isExpanded, u = {
226
+ function B({ children: e, icon: t, isSelected: n = !1, onClick: r, className: i, style: a, ...o }) {
227
+ let s = S(F), c = w(), u = s !== null && !s.isExpanded, d = {
205
228
  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" },
206
229
  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" },
207
230
  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" },
208
231
  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" }
209
- }[!!l << 1 | !!n];
210
- return /* @__PURE__ */ D("a", {
232
+ }[!!u << 1 | !!n];
233
+ return /* @__PURE__ */ k(l, {
211
234
  ...o,
212
235
  "aria-current": n ? "page" : void 0,
213
236
  "aria-labelledby": o["aria-labelledby"] ?? (o["aria-label"] === void 0 ? c : void 0),
@@ -217,28 +240,28 @@ function ae({ children: e, icon: t, isSelected: n = !1, onClick: r, className: i
217
240
  let t = e.metaKey || e.ctrlKey, n = e.shiftKey || e.altKey;
218
241
  t || n || s.onNavigate();
219
242
  },
220
- className: [u.className, i].filter(Boolean).join(" "),
243
+ className: [d.className, i].filter(Boolean).join(" "),
221
244
  style: {
222
- ...u.style,
245
+ ...d.style,
223
246
  ...a
224
247
  },
225
- children: [t != null && /* @__PURE__ */ E("span", {
248
+ children: [t != null && /* @__PURE__ */ O("span", {
226
249
  "aria-hidden": !0,
227
250
  className: "x3nfvp2 x6s0dn4 xl56j7k xtwnzbg x18utl2x x2lah0s",
228
251
  children: t
229
- }), /* @__PURE__ */ E("span", {
252
+ }), /* @__PURE__ */ O("span", {
230
253
  id: c,
231
254
  ...{
232
255
  0: { className: "xeuugli xb3r6kr xlyipyv xuxw1ft" },
233
256
  1: { className: "xeuugli xb3r6kr xlyipyv xuxw1ft x1s85apg xeod2sa" }
234
- }[!!l | 0],
257
+ }[!!u | 0],
235
258
  children: e
236
259
  })]
237
260
  });
238
261
  }
239
- function oe({ children: e, shouldGrow: t = !1 }) {
240
- let n = b(F), r = n !== null && !n.isExpanded;
241
- return /* @__PURE__ */ E("span", {
262
+ function V({ children: e, shouldGrow: t = !1 }) {
263
+ let n = S(F), r = n !== null && !n.isExpanded;
264
+ return /* @__PURE__ */ O("span", {
242
265
  ...{
243
266
  0: { className: "xeuugli xb3r6kr xlyipyv xuxw1ft" },
244
267
  2: { className: "xeuugli xb3r6kr xlyipyv xuxw1ft x78zum5 x6s0dn4 x1hnptsi x98rzlu" },
@@ -248,39 +271,39 @@ function oe({ children: e, shouldGrow: t = !1 }) {
248
271
  children: e
249
272
  });
250
273
  }
251
- function se({ children: e, layout: t = "inline" }) {
252
- let n = b(F), r = n !== null && !n.isExpanded;
253
- return /* @__PURE__ */ E("div", {
254
- ...h.props(I.footer, l.blockStart, r && I.collapsedFooter, L[t]),
274
+ function H({ children: e, layout: t = "inline" }) {
275
+ let n = S(F), r = n !== null && !n.isExpanded;
276
+ return /* @__PURE__ */ O("div", {
277
+ ...g.props(I.footer, u.blockStart, r && I.collapsedFooter, le[t]),
255
278
  children: e
256
279
  });
257
280
  }
258
- function z() {
259
- let e = b(F);
260
- return e === null ? null : /* @__PURE__ */ D(T, { children: [/* @__PURE__ */ E("div", {
261
- ...h.props(I.toggleCell, l.inlineEnd, I.desktop),
262
- children: /* @__PURE__ */ E(t, {
281
+ function fe() {
282
+ let e = S(F);
283
+ return e === null ? null : /* @__PURE__ */ k(D, { children: [/* @__PURE__ */ O("div", {
284
+ ...g.props(I.toggleCell, u.inlineEnd, I.desktop),
285
+ children: /* @__PURE__ */ O(t, {
263
286
  ref: e.navigationToggleRef,
264
287
  variant: "ghost",
265
288
  "aria-label": e.isExpanded ? "Collapse navigation" : "Expand navigation",
266
289
  "aria-controls": e.sidebarId,
267
290
  "aria-expanded": e.isExpanded,
268
291
  onClick: e.onToggle,
269
- children: /* @__PURE__ */ E(k, {
292
+ children: /* @__PURE__ */ O(A, {
270
293
  size: 16,
271
294
  "aria-hidden": !0
272
295
  })
273
296
  })
274
- }), /* @__PURE__ */ E("div", {
275
- ...h.props(I.toggleCell, l.inlineEnd, I.mobile),
276
- children: /* @__PURE__ */ E(d.Trigger, {
297
+ }), /* @__PURE__ */ O("div", {
298
+ ...g.props(I.toggleCell, u.inlineEnd, I.mobile),
299
+ children: /* @__PURE__ */ O(f.Trigger, {
277
300
  ref: e.mobileNavigationToggleRef,
278
301
  controller: e.drawerController,
279
- render: /* @__PURE__ */ E(t, {
302
+ render: /* @__PURE__ */ O(t, {
280
303
  variant: "ghost",
281
304
  "aria-label": "Open navigation"
282
305
  }),
283
- children: /* @__PURE__ */ E(k, {
306
+ children: /* @__PURE__ */ O(A, {
284
307
  size: 16,
285
308
  "aria-hidden": !0
286
309
  })
@@ -288,7 +311,7 @@ function z() {
288
311
  })] });
289
312
  }
290
313
  // packages/layout/src/page-toolbar.tsx
291
- var B = {
314
+ var U = {
292
315
  toolbar: {
293
316
  kB7OPa: "x9f619",
294
317
  kVAEAm: "x7wzq59",
@@ -317,51 +340,51 @@ var B = {
317
340
  $$css: !0
318
341
  }
319
342
  };
320
- function V({ title: e, actions: t, showBreadcrumb: n = !1, showNavigation: r = !0, leading: i }) {
321
- let a = v.toArray(e).length > 0, o = v.toArray(t).length > 0, s = v.toArray(i).length > 0;
322
- if (v.toArray([
343
+ function pe({ title: e, actions: t, showBreadcrumb: n = !1, showNavigation: r = !0, leading: i }) {
344
+ let a = b.toArray(e).length > 0, o = b.toArray(t).length > 0, s = b.toArray(i).length > 0;
345
+ if (b.toArray([
323
346
  e,
324
347
  t,
325
348
  i
326
349
  ]).length === 0) return null;
327
- let c = n ? "nav" : "h1", u = n ? "div" : "span";
328
- return /* @__PURE__ */ D("div", {
329
- ...h.props(B.toolbar, l.blockEnd),
350
+ let c = n ? "nav" : N, l = n ? "div" : "span";
351
+ return /* @__PURE__ */ k("div", {
352
+ ...g.props(U.toolbar, u.blockEnd),
330
353
  children: [
331
- s ? /* @__PURE__ */ E("div", {
354
+ s ? /* @__PURE__ */ O("div", {
332
355
  className: "x78zum5 x6s0dn4 xyibt8p x2lah0s",
333
356
  children: i
334
- }) : r && /* @__PURE__ */ E(z, {}),
335
- a && /* @__PURE__ */ E(c, {
357
+ }) : r && /* @__PURE__ */ O(fe, {}),
358
+ a && /* @__PURE__ */ O(c, {
336
359
  tabIndex: n ? void 0 : -1,
337
360
  "aria-label": n ? "Breadcrumb" : void 0,
338
361
  className: "x78zum5 x6s0dn4 x1hnptsi x1dc62k6 xjnfzvw x1oec0jp x1cqoux5 x1ghz6dp x1qlqyl8 xj57cvi x1t137rt",
339
- children: /* @__PURE__ */ E(u, {
362
+ children: /* @__PURE__ */ O(l, {
340
363
  className: "xeuugli xb3r6kr xlyipyv xuxw1ft",
341
364
  children: e
342
365
  })
343
366
  }),
344
- o && /* @__PURE__ */ E("div", {
367
+ o && /* @__PURE__ */ O("div", {
345
368
  className: "x78zum5 x1a02dak x6s0dn4 xunmzkg x1dc62k6 xeuugli x1oec0jp x193iq5w x9f619 xs83m0k x8x9d4c",
346
369
  children: t
347
370
  })
348
371
  ]
349
372
  });
350
373
  }
351
- function H({ icon: e, children: t, ...n }) {
374
+ function me({ icon: e, children: t, ...n }) {
352
375
  let r = e != null;
353
- return /* @__PURE__ */ E("div", {
376
+ return /* @__PURE__ */ O("div", {
354
377
  className: "x9f619 x78zum5 x1qjc9v5 xeuugli",
355
- children: /* @__PURE__ */ D(a, {
378
+ children: /* @__PURE__ */ k(a, {
356
379
  ...n,
357
380
  variant: "ghost",
358
381
  "aria-label": n["aria-label"] ?? (typeof t == "string" ? t : void 0),
359
- xstyle: B.action,
360
- children: [r && /* @__PURE__ */ E("span", {
382
+ xstyle: U.action,
383
+ children: [r && /* @__PURE__ */ O("span", {
361
384
  "aria-hidden": !0,
362
385
  className: "x3nfvp2 x2lah0s x6s0dn4",
363
386
  children: e
364
- }), r || typeof t == "string" ? /* @__PURE__ */ E("span", {
387
+ }), r || typeof t == "string" ? /* @__PURE__ */ O("span", {
365
388
  ...{
366
389
  0: { className: "xeuugli xb3r6kr xlyipyv xuxw1ft" },
367
390
  1: { className: "xeuugli xb3r6kr xlyipyv xuxw1ft xt0psk2 xlllsrz" }
@@ -372,38 +395,39 @@ function H({ icon: e, children: t, ...n }) {
372
395
  });
373
396
  }
374
397
  // packages/layout/src/page-layout.tsx
375
- function U({ ref: e, navigation: t, children: n, scrollRestorationId: r = "page-body", ...i }) {
398
+ function W({ ref: e, navigation: t, children: n, scrollRestorationId: r = "page-body", ...i }) {
376
399
  let a = o();
377
- return /* @__PURE__ */ D("div", {
400
+ return /* @__PURE__ */ k("div", {
378
401
  ref: e,
379
402
  className: "xtdtrs8 xmz0i5r xeuugli x2lwn1j xrvj5dj x16p6thf",
380
- children: [/* @__PURE__ */ D("div", {
403
+ children: [/* @__PURE__ */ k("div", {
381
404
  className: "xeuugli",
382
- children: [/* @__PURE__ */ E(V, { ...i }), t !== void 0 && ("isPlaceholder" in t ? /* @__PURE__ */ E(s, { ...t }) : /* @__PURE__ */ E(c, { ...t }))]
383
- }), /* @__PURE__ */ E("div", {
405
+ children: [/* @__PURE__ */ O(pe, { ...i }), t !== void 0 && ("isPlaceholder" in t ? /* @__PURE__ */ O(s, { ...t }) : /* @__PURE__ */ O(c, { ...t }))]
406
+ }), /* @__PURE__ */ O("div", {
384
407
  ref: a.ref,
385
408
  tabIndex: a.tabIndex,
409
+ "data-page-viewport": "",
386
410
  "data-scroll-restoration-id": r,
387
411
  className: "x78zum5 xdt5ytf xeuugli x2lwn1j xysyzu8 xpqogu8 x78161z xoka7y6",
388
412
  children: n
389
413
  })]
390
414
  });
391
415
  }
392
- function W({ children: e, summary: t, breakdown: n, ...i }) {
393
- let a = t != null && t !== !1, o = S(), s = i.id ?? o;
394
- return /* @__PURE__ */ D("section", {
416
+ function he({ children: e, summary: t, breakdown: n, ...i }) {
417
+ let a = t != null && t !== !1, o = w(), s = i.id ?? o;
418
+ return /* @__PURE__ */ k(ce, {
395
419
  "aria-labelledby": s,
396
420
  className: "xeuugli x2lah0s xc8icb0",
397
- children: [/* @__PURE__ */ E("div", {
421
+ children: [/* @__PURE__ */ O("div", {
398
422
  className: "x1uhb9sk xsbffnv x13vifvy x11ru5tl",
399
- children: /* @__PURE__ */ E(r, {
423
+ children: /* @__PURE__ */ O(r, {
400
424
  ...i,
401
425
  id: s
402
426
  })
403
- }), /* @__PURE__ */ D("div", {
427
+ }), /* @__PURE__ */ k("div", {
404
428
  className: "xc8icb0",
405
429
  children: [
406
- a && /* @__PURE__ */ E(N, { children: t }),
430
+ a && /* @__PURE__ */ O(M, { children: t }),
407
431
  n,
408
432
  e
409
433
  ]
@@ -411,7 +435,7 @@ function W({ children: e, summary: t, breakdown: n, ...i }) {
411
435
  });
412
436
  }
413
437
  // packages/layout/src/navigation-rail.tsx
414
- var G = y("rail"), K = {
438
+ var G = x("rail"), K = {
415
439
  action: {
416
440
  kSGwAc: "xamitd3",
417
441
  $$css: !0
@@ -450,89 +474,90 @@ var G = y("rail"), K = {
450
474
  $$css: !0
451
475
  }
452
476
  };
453
- function ce(e) {
454
- return /* @__PURE__ */ E(q, { ...e });
477
+ function ge(e) {
478
+ return /* @__PURE__ */ O(q, { ...e });
455
479
  }
456
480
  function q({ label: n, links: r, action: i, isFooter: o = !1 }) {
457
- let s = b(G) === "drawer", c = b(F);
458
- function l(e, t) {
481
+ let s = S(G) === "drawer", c = S(F);
482
+ function u(e, t) {
459
483
  e?.(t);
460
484
  let n = t.metaKey || t.ctrlKey, r = t.shiftKey || t.altKey;
461
485
  t.button !== 0 || n || r || c?.onNavigate();
462
486
  }
463
- let u = (e) => {
487
+ let d = (e) => {
464
488
  i?.onClick(e), e.defaultPrevented || c?.onNavigate();
465
489
  };
466
- return s ? /* @__PURE__ */ D("div", {
490
+ return s ? /* @__PURE__ */ k("div", {
467
491
  className: "x78zum5 xdt5ytf x1qjc9v5 x2lah0s xeuugli",
468
- children: [/* @__PURE__ */ E("nav", {
492
+ children: [/* @__PURE__ */ O("nav", {
469
493
  "aria-label": n,
470
494
  ...{
471
495
  0: { className: "xrvj5dj xnby9oq xunmzkg x1s01oa9" },
472
496
  1: { className: "xrvj5dj xunmzkg x1717udv x1mkdm3x" }
473
497
  }[!!o | 0],
474
- children: r.map(({ label: e, icon: t, isCurrent: n = !1, ...r }) => /* @__PURE__ */ D("a", {
475
- ..._(h.props(m.base, m.button, K.mobileLink, o && K.drawerFooterLink, K.rounded, K.selected), r),
498
+ children: r.map(({ label: e, icon: t, isCurrent: n = !1, ...r }) => /* @__PURE__ */ k(l, {
499
+ ...y(g.props(h.base, h.button, K.mobileLink, o && K.drawerFooterLink, K.rounded, K.selected), r),
476
500
  "aria-current": n ? "location" : void 0,
477
- onClick: (e) => l(r.onClick, e),
478
- children: [/* @__PURE__ */ E("span", {
501
+ onClick: (e) => u(r.onClick, e),
502
+ children: [/* @__PURE__ */ O("span", {
479
503
  "aria-hidden": !0,
480
504
  className: "x3nfvp2 x2lah0s xtwnzbg x18utl2x",
481
505
  children: t
482
- }), /* @__PURE__ */ E("span", {
506
+ }), /* @__PURE__ */ O("span", {
483
507
  className: "xeuugli x193iq5w xj0a0fe",
484
508
  children: e
485
509
  })]
486
510
  }, r.href))
487
- }), i !== void 0 && /* @__PURE__ */ E("div", {
511
+ }), i !== void 0 && /* @__PURE__ */ O("div", {
488
512
  className: "xrvj5dj x14w6jbu xngumbj xso031l x1q0q8m5 x1qndepd",
489
- children: /* @__PURE__ */ D(a, {
513
+ children: /* @__PURE__ */ k(a, {
490
514
  variant: "ghost",
491
- onClick: u,
492
- children: [/* @__PURE__ */ E("span", {
515
+ onClick: d,
516
+ children: [/* @__PURE__ */ O("span", {
493
517
  "aria-hidden": !0,
494
518
  className: "x3nfvp2 x2lah0s xtwnzbg x18utl2x",
495
519
  children: i.icon
496
520
  }), i.label]
497
521
  })
498
522
  })]
499
- }) : /* @__PURE__ */ D("div", {
523
+ }) : /* @__PURE__ */ k("div", {
500
524
  ...{
501
525
  0: { className: "x78zum5 xdt5ytf x1qjc9v5 x2lah0s xeuugli" },
502
526
  1: { className: "x78zum5 xdt5ytf x1qjc9v5 x2lah0s xeuugli x1yrrsrt x1c526fk" }
503
527
  }[!o | 0],
504
- children: [/* @__PURE__ */ E("nav", {
528
+ children: [/* @__PURE__ */ O("nav", {
505
529
  "aria-label": n,
506
530
  className: "x78zum5 xdt5ytf x6s0dn4 xunmzkg",
507
- children: r.map(({ label: t, icon: n, isCurrent: r = !1, ...i }) => /* @__PURE__ */ D(p.Root, { children: [/* @__PURE__ */ E(p.Trigger, {
508
- render: /* @__PURE__ */ E(e, {
509
- ..._({ className: "x1yk04ar" }, i),
510
- "aria-label": t,
531
+ children: r.map(({ label: t, icon: n, isCurrent: r = !1, ...i }) => /* @__PURE__ */ k(m.Root, { children: [/* @__PURE__ */ O(m.Trigger, {
532
+ render: /* @__PURE__ */ O(e, {
533
+ render: /* @__PURE__ */ O(l, {}),
534
+ ...y({ className: "x1yk04ar" }, i),
511
535
  "aria-current": r ? "location" : void 0,
512
- onClick: (e) => l(i.onClick, e)
536
+ "aria-label": t,
537
+ onClick: (e) => u(i.onClick, e)
513
538
  }),
514
539
  children: n
515
- }), /* @__PURE__ */ E(p.Popup, {
540
+ }), /* @__PURE__ */ O(m.Popup, {
516
541
  side: "right",
517
542
  children: t
518
543
  })] }, i.href))
519
- }), i !== void 0 && /* @__PURE__ */ D(T, { children: [/* @__PURE__ */ E("hr", { className: "xc342km x178xt8z x13fuv20 xhjagg4 xv06hpe xn92wy8" }), /* @__PURE__ */ D(p.Root, { children: [/* @__PURE__ */ E(p.Trigger, {
520
- render: /* @__PURE__ */ E(t, {
544
+ }), i !== void 0 && /* @__PURE__ */ k(D, { children: [/* @__PURE__ */ O("hr", { className: "xc342km x178xt8z x13fuv20 xhjagg4 xv06hpe xn92wy8" }), /* @__PURE__ */ k(m.Root, { children: [/* @__PURE__ */ O(m.Trigger, {
545
+ render: /* @__PURE__ */ O(t, {
521
546
  variant: "ghost",
522
547
  "aria-label": i.label,
523
548
  xstyle: K.action
524
549
  }),
525
- onClick: u,
550
+ onClick: d,
526
551
  children: i.icon
527
- }), /* @__PURE__ */ E(p.Popup, {
552
+ }), /* @__PURE__ */ O(m.Popup, {
528
553
  side: "right",
529
554
  children: i.label
530
555
  })] })] })]
531
556
  });
532
557
  }
533
- function le({ children: e }) {
534
- let t = b(G) === "drawer";
535
- return /* @__PURE__ */ E("div", {
558
+ function _e({ children: e }) {
559
+ let t = S(G) === "drawer";
560
+ return /* @__PURE__ */ O("div", {
536
561
  ...{
537
562
  0: { className: "x78zum5 xdt5ytf x6s0dn4 xunmzkg x1yrrsrt x1c526fk" },
538
563
  1: { className: "x78zum5 xdt5ytf xunmzkg x1yrrsrt x1c526fk x1cy8zhl x14w6jbu" }
@@ -541,21 +566,21 @@ function le({ children: e }) {
541
566
  });
542
567
  }
543
568
  function J({ children: e }) {
544
- return /* @__PURE__ */ E("span", {
569
+ return /* @__PURE__ */ O("span", {
545
570
  "aria-hidden": !0,
546
571
  className: "xrvj5dj x1ku5rj1 x9c6wpo x1ff4b4a x1f9pz31 x992rv9",
547
572
  children: e
548
573
  });
549
574
  }
550
- function ue({ count: e, icon: t }) {
551
- return /* @__PURE__ */ E("div", {
575
+ function ve({ count: e, icon: t }) {
576
+ return /* @__PURE__ */ O("div", {
552
577
  "aria-hidden": !0,
553
578
  className: "x1yrrsrt x1c526fk x78zum5 xdt5ytf x6s0dn4 xunmzkg",
554
- children: Array.from({ length: e }, (e, n) => /* @__PURE__ */ E(J, { children: t }, n))
579
+ children: Array.from({ length: e }, (e, n) => /* @__PURE__ */ O(J, { children: t }, n))
555
580
  });
556
581
  }
557
582
  // packages/layout/src/navigation-rail-menu.tsx
558
- var de = {
583
+ var ye = {
559
584
  rail: {
560
585
  side: "right",
561
586
  align: "end"
@@ -566,31 +591,31 @@ var de = {
566
591
  }
567
592
  };
568
593
  function Y({ label: e, icon: n, children: r }) {
569
- let i = b(G), [a, o] = w(!1);
570
- return x(() => {
594
+ let i = S(G), [a, o] = E(!1);
595
+ return C(() => {
571
596
  let e = globalThis.matchMedia(P.sidebarDesktopQuery);
572
597
  function t() {
573
598
  o(!1);
574
599
  }
575
600
  return e.addEventListener("change", t), () => e.removeEventListener("change", t);
576
- }, []), /* @__PURE__ */ D(f.Root, {
601
+ }, []), /* @__PURE__ */ k(p.Root, {
577
602
  open: a,
578
603
  onOpenChange: o,
579
604
  modal: !1,
580
- children: [/* @__PURE__ */ D(p.Root, {
605
+ children: [/* @__PURE__ */ k(m.Root, {
581
606
  disabled: a || i === "drawer",
582
- children: [/* @__PURE__ */ E(p.Trigger, {
583
- render: /* @__PURE__ */ E(f.Trigger, { render: /* @__PURE__ */ E(t, {
607
+ children: [/* @__PURE__ */ O(m.Trigger, {
608
+ render: /* @__PURE__ */ O(p.Trigger, { render: /* @__PURE__ */ O(t, {
584
609
  variant: "ghost",
585
610
  "aria-label": e
586
611
  }) }),
587
612
  children: n
588
- }), /* @__PURE__ */ E(p.Popup, {
613
+ }), /* @__PURE__ */ O(m.Popup, {
589
614
  side: "right",
590
615
  children: e
591
616
  })]
592
- }), /* @__PURE__ */ E(f.Popup, {
593
- ...de[i],
617
+ }), /* @__PURE__ */ O(p.Popup, {
618
+ ...ye[i],
594
619
  sideOffset: 4,
595
620
  collisionPadding: 8,
596
621
  "aria-label": e,
@@ -638,96 +663,96 @@ var X = {
638
663
  }
639
664
  };
640
665
  function Z({ footer: e }) {
641
- return /* @__PURE__ */ E("div", {
666
+ return /* @__PURE__ */ O("div", {
642
667
  className: "x2lah0s x1a148e8",
643
- children: /* @__PURE__ */ E(le, { children: "placeholder" in e ? /* @__PURE__ */ D(T, { children: [e.placeholder.linkIcon !== void 0 && /* @__PURE__ */ E(J, { children: e.placeholder.linkIcon }), /* @__PURE__ */ E(J, { children: e.placeholder.menuIcon })] }) : /* @__PURE__ */ D(T, { children: [e.navigation !== void 0 && /* @__PURE__ */ E(q, {
668
+ children: /* @__PURE__ */ O(_e, { children: "placeholder" in e ? /* @__PURE__ */ k(D, { children: [e.placeholder.linkIcon !== void 0 && /* @__PURE__ */ O(J, { children: e.placeholder.linkIcon }), /* @__PURE__ */ O(J, { children: e.placeholder.menuIcon })] }) : /* @__PURE__ */ k(D, { children: [e.navigation !== void 0 && /* @__PURE__ */ O(q, {
644
669
  ...e.navigation,
645
670
  isFooter: !0
646
- }), /* @__PURE__ */ E(Y, { ...e.menu })] }) })
671
+ }), /* @__PURE__ */ O(Y, { ...e.menu })] }) })
647
672
  });
648
673
  }
649
- function fe({ rail: e, railFooter: t, sidebarHeader: n, sidebar: r, footer: i, children: a, mainId: o = "main", shouldFocus: s = !1 }) {
650
- let c = e != null, [u, f] = w(!0), [p, m] = w(!1), g = s || c && !u, [_] = w(() => d.createController()), v = S(), y = C(null), b = C(null), O = C(null), k = C(!1);
651
- return x(() => {
674
+ function be({ rail: e, railFooter: t, sidebarHeader: n, sidebar: r, footer: i, children: a, mainId: o = "main", shouldFocus: s = !1 }) {
675
+ let c = e != null, [l, d] = E(!0), [p, m] = E(!1), h = s || c && !l, [_] = E(() => f.createController()), v = w(), y = T(null), b = T(null), x = T(null), S = T(!1);
676
+ return C(() => {
652
677
  let e = globalThis.matchMedia(P.sidebarDesktopQuery);
653
678
  function t() {
654
679
  e.matches && m(!1);
655
680
  }
656
681
  return e.addEventListener("change", t), () => e.removeEventListener("change", t);
657
- }, []), /* @__PURE__ */ D(F.Provider, {
682
+ }, []), /* @__PURE__ */ k(F.Provider, {
658
683
  value: {
659
- isExpanded: u,
684
+ isExpanded: l,
660
685
  sidebarId: v,
661
686
  drawerController: _,
662
687
  navigationToggleRef: y,
663
688
  mobileNavigationToggleRef: b,
664
- onToggle: () => f((e) => !e),
689
+ onToggle: () => d((e) => !e),
665
690
  onNavigate: () => {
666
- k.current = p, m(!1);
691
+ S.current = p, m(!1);
667
692
  }
668
693
  },
669
- children: [/* @__PURE__ */ D("div", {
694
+ children: [/* @__PURE__ */ k("div", {
670
695
  className: "x9f619 x1ov3xa9 x78zum5 xpvm0e4 xbixft x1hz01jw xtqrqnz x1778rvt xvmahel",
671
696
  children: [
672
- c && /* @__PURE__ */ D("div", {
697
+ c && /* @__PURE__ */ k("div", {
673
698
  hidden: s,
674
- ...h.props(X.sidebar, l.inlineEnd, X.rail, s && X.hidden),
675
- children: [/* @__PURE__ */ E("div", {
699
+ ...g.props(X.sidebar, u.inlineEnd, X.rail, s && X.hidden),
700
+ children: [/* @__PURE__ */ O("div", {
676
701
  className: "x98rzlu x2lwn1j x1odjw0f x1e4zzel",
677
702
  children: e
678
- }), t !== void 0 && /* @__PURE__ */ E(Z, { footer: t })]
703
+ }), t !== void 0 && /* @__PURE__ */ O(Z, { footer: t })]
679
704
  }),
680
- /* @__PURE__ */ E("aside", {
705
+ /* @__PURE__ */ O("aside", {
681
706
  id: v,
682
707
  "aria-label": "Navigation",
683
- hidden: g,
684
- ...h.props(X.sidebar, l.inlineEnd, c && X.secondary, !c && !u && X.collapsed, g && X.hidden),
685
- children: /* @__PURE__ */ E(R, {
708
+ hidden: h,
709
+ ...g.props(X.sidebar, u.inlineEnd, c && X.secondary, !c && !l && X.collapsed, h && X.hidden),
710
+ children: /* @__PURE__ */ O(L, {
686
711
  header: n,
687
712
  footer: i,
688
713
  children: r
689
714
  })
690
715
  }),
691
- /* @__PURE__ */ E("main", {
716
+ /* @__PURE__ */ O("main", {
692
717
  id: o,
693
718
  tabIndex: -1,
694
719
  className: "xeuugli x98rzlu",
695
720
  children: a
696
721
  })
697
722
  ]
698
- }), /* @__PURE__ */ D(d.Root, {
723
+ }), /* @__PURE__ */ k(f.Root, {
699
724
  controller: _,
700
725
  open: p && !s,
701
726
  onOpenChange: m,
702
- children: [/* @__PURE__ */ E(d.Backdrop, {}), /* @__PURE__ */ D(d.Popup, {
703
- ref: O,
727
+ children: [/* @__PURE__ */ O(f.Backdrop, {}), /* @__PURE__ */ k(f.Popup, {
728
+ ref: x,
704
729
  xstyle: X.drawer,
705
730
  finalFocus: () => {
706
- if (k.current) {
707
- k.current = !1;
731
+ if (S.current) {
732
+ S.current = !1;
708
733
  let e = document.querySelector(`#${CSS.escape(o)}`), t = document.activeElement;
709
734
  if (t instanceof HTMLElement) {
710
735
  let e = t.closest("[role=\"dialog\"], [role=\"alertdialog\"]");
711
- if (e !== null && e !== O.current) return t;
736
+ if (e !== null && e !== x.current) return t;
712
737
  }
713
738
  return t instanceof HTMLElement && e?.contains(t) === !0 ? t : e;
714
739
  }
715
740
  return globalThis.matchMedia(P.sidebarDesktopQuery).matches ? y.current : b.current;
716
741
  },
717
- children: [/* @__PURE__ */ E(d.Title, {
742
+ children: [/* @__PURE__ */ O(f.Title, {
718
743
  isVisuallyHidden: !0,
719
744
  children: "Navigation"
720
- }), /* @__PURE__ */ E(R, {
745
+ }), /* @__PURE__ */ O(L, {
721
746
  header: n,
722
- navigationHeader: c && /* @__PURE__ */ E(G.Provider, {
747
+ navigationHeader: c && /* @__PURE__ */ O(G.Provider, {
723
748
  value: "drawer",
724
749
  children: e
725
750
  }),
726
- footer: /* @__PURE__ */ D(T, { children: [i, c && t !== void 0 && /* @__PURE__ */ E(G.Provider, {
751
+ footer: /* @__PURE__ */ k(D, { children: [i, c && t !== void 0 && /* @__PURE__ */ O(G.Provider, {
727
752
  value: "drawer",
728
- children: /* @__PURE__ */ E(Z, { footer: t })
753
+ children: /* @__PURE__ */ O(Z, { footer: t })
729
754
  })] }),
730
- close: /* @__PURE__ */ E(te, {}),
755
+ close: /* @__PURE__ */ O(ue, {}),
731
756
  children: r
732
757
  })]
733
758
  })]
@@ -736,7 +761,7 @@ function fe({ rail: e, railFooter: t, sidebarHeader: n, sidebar: r, footer: i, c
736
761
  }
737
762
  // packages/layout/src/detail-page.tsx
738
763
  function Q({ children: e, isWide: t = !1 }) {
739
- return /* @__PURE__ */ E("div", {
764
+ return /* @__PURE__ */ O("div", {
740
765
  ...{
741
766
  0: { className: "x9f619 x13na7z x96idz6 x9g60mw xeuugli xvueqy4 xnjsko4 x10gdey3 x14y0u4g x1foqgtu x1uwsqpk x14oio8y" },
742
767
  1: { className: "x9f619 xeuugli xvueqy4 xh8yej3 x1x1rfll xnjsko4 xexx8yu x18d9i69" }
@@ -745,33 +770,33 @@ function Q({ children: e, isWide: t = !1 }) {
745
770
  });
746
771
  }
747
772
  // packages/layout/src/focus-page.tsx
748
- function pe({ children: e }) {
749
- return /* @__PURE__ */ E("main", {
773
+ function xe({ children: e }) {
774
+ return /* @__PURE__ */ O("main", {
750
775
  id: "main",
751
776
  tabIndex: -1,
752
777
  className: "x9f619 x1ov3xa9 xeuugli xrvj5dj x1ku5rj1 x1jvlu93 xpvm0e4 xbixft x1hz01jw xtqrqnz x1778rvt xvmahel",
753
- children: /* @__PURE__ */ E("div", {
778
+ children: /* @__PURE__ */ O("div", {
754
779
  className: "xh8yej3 xxc7z9f xeuugli xrvj5dj x1mkdm3x x1j825kq",
755
780
  children: e
756
781
  })
757
782
  });
758
783
  }
759
784
  // packages/layout/src/workbench.tsx
760
- function me({ header: e, children: t, inspector: n }) {
761
- return /* @__PURE__ */ D("div", {
785
+ function Se({ header: e, children: t, inspector: n }) {
786
+ return /* @__PURE__ */ k("div", {
762
787
  className: "x78zum5 xdt5ytf xtdtrs8 xmz0i5r x98rzlu xeuugli x2lwn1j x12h1iku x1a75771 xbixft x1hz01jw xtqrqnz x1778rvt xj57cvi xvmahel",
763
- children: [e != null && /* @__PURE__ */ E("div", {
788
+ children: [e != null && /* @__PURE__ */ O("div", {
764
789
  className: "xeuugli x2lah0s x1ydxw8w xnx3t7k xso031l x1q0q8m5 x1qndepd",
765
790
  children: e
766
- }), /* @__PURE__ */ D("div", {
791
+ }), /* @__PURE__ */ k("div", {
767
792
  className: "x78zum5 x98rzlu xeuugli x2lwn1j x7giv3",
768
- children: [/* @__PURE__ */ E("div", {
793
+ children: [/* @__PURE__ */ O("div", {
769
794
  ...{
770
795
  0: { className: "x1n2onr6 x78zum5 x98rzlu xdt5ytf xeuugli x2lwn1j" },
771
796
  1: { className: "x1n2onr6 x98rzlu xdt5ytf xeuugli x2lwn1j x78zum5 x152g2jv" }
772
797
  }[n !== void 0 | 0],
773
798
  children: t
774
- }), n !== void 0 && /* @__PURE__ */ E("aside", {
799
+ }), n !== void 0 && /* @__PURE__ */ O("aside", {
775
800
  "aria-label": n.label,
776
801
  className: "x9f619 x1peuizl x1vx4hiz xeuugli x2lah0s x1odjw0f x1c8xbx5 xpvm0e4 xe0pwq xs311s2 x19ypqd9 x1l3ounx",
777
802
  children: n.content
@@ -779,9 +804,9 @@ function me({ header: e, children: t, inspector: n }) {
779
804
  })]
780
805
  });
781
806
  }
782
- function he({ label: e, children: t, isFlush: n = !1, scrollRestorationId: r }) {
807
+ function Ce({ label: e, children: t, isFlush: n = !1, scrollRestorationId: r }) {
783
808
  let i = o();
784
- return /* @__PURE__ */ E("div", {
809
+ return /* @__PURE__ */ O("div", {
785
810
  ref: i.ref,
786
811
  role: "region",
787
812
  "aria-label": e,
@@ -794,21 +819,21 @@ function he({ label: e, children: t, isFlush: n = !1, scrollRestorationId: r })
794
819
  children: t
795
820
  });
796
821
  }
797
- function ge({ children: e }) {
798
- return /* @__PURE__ */ E("div", {
822
+ function we({ children: e }) {
823
+ return /* @__PURE__ */ O("div", {
799
824
  className: "x2lah0s x1c8xbx5 x178xt8z x13fuv20 xhjagg4 xpvm0e4",
800
825
  children: e
801
826
  });
802
827
  }
803
828
  // packages/layout/src/view-stack.tsx
804
- function _e({ children: e }) {
805
- return /* @__PURE__ */ E("div", {
829
+ function Te({ children: e }) {
830
+ return /* @__PURE__ */ O("div", {
806
831
  className: "x1n2onr6 x78zum5 xdt5ytf x98rzlu xeuugli x2lwn1j",
807
832
  children: e
808
833
  });
809
834
  }
810
- function ve({ isActive: e, children: t }) {
811
- return /* @__PURE__ */ E("section", {
835
+ function Ee({ isActive: e, children: t }) {
836
+ return /* @__PURE__ */ O("section", {
812
837
  "aria-hidden": !e,
813
838
  inert: !e,
814
839
  ...{
@@ -818,27 +843,27 @@ function ve({ isActive: e, children: t }) {
818
843
  children: t
819
844
  });
820
845
  }
821
- var ye = {
822
- Root: _e,
823
- Panel: ve
846
+ var De = {
847
+ Root: Te,
848
+ Panel: Ee
824
849
  };
825
850
  // packages/layout/src/collection-layout.tsx
826
- function be({ header: e, children: t }) {
827
- return /* @__PURE__ */ D("div", {
851
+ function $({ header: e, children: t }) {
852
+ return /* @__PURE__ */ k("div", {
828
853
  "data-page-layout": "collection",
829
854
  className: "x78zum5 xdt5ytf x98rzlu xeuugli x2lwn1j x7giv3",
830
- children: [/* @__PURE__ */ E("div", {
855
+ children: [/* @__PURE__ */ O("div", {
831
856
  className: "x2lah0s xeuugli",
832
857
  children: e
833
- }), /* @__PURE__ */ E("div", {
858
+ }), /* @__PURE__ */ O("div", {
834
859
  className: "x78zum5 xdt5ytf x98rzlu xeuugli x2lwn1j",
835
860
  children: t
836
861
  })]
837
862
  });
838
863
  }
839
864
  // packages/layout/src/record-page.tsx
840
- function $({ backLabel: e, backHref: t, onBack: n }) {
841
- return /* @__PURE__ */ D("a", {
865
+ function Oe({ backLabel: e, backHref: t, onBack: n }) {
866
+ return /* @__PURE__ */ k(l, {
842
867
  href: t,
843
868
  className: "x3nfvp2 x6s0dn4 x1hnptsi xid9utz xeuugli x193iq5w xbixft xkrqix3 x5638nf x13qnu6 x9v5kkp x19rmrnh x1bqaal",
844
869
  onClick: (e) => {
@@ -846,79 +871,80 @@ function $({ backLabel: e, backHref: t, onBack: n }) {
846
871
  let t = e.metaKey || e.ctrlKey, r = e.shiftKey || e.altKey;
847
872
  t || r || (e.preventDefault(), n());
848
873
  },
849
- children: [/* @__PURE__ */ E(O, {
874
+ children: [/* @__PURE__ */ O(ee, {
850
875
  size: 16,
851
876
  "aria-hidden": !0,
852
877
  className: "x2lah0s"
853
- }), /* @__PURE__ */ E("span", {
878
+ }), /* @__PURE__ */ O("span", {
854
879
  className: "xeuugli xb3r6kr xlyipyv xuxw1ft",
855
880
  children: e
856
881
  })]
857
882
  });
858
883
  }
859
- function xe({ navigation: e, children: t, ...n }) {
860
- return /* @__PURE__ */ E(U, {
884
+ function ke({ navigation: e, children: t, ...n }) {
885
+ return /* @__PURE__ */ O(W, {
861
886
  showBreadcrumb: !0,
862
887
  showNavigation: n.showNavigation ?? !0,
863
888
  actions: n.actions,
864
- title: /* @__PURE__ */ E($, { ...n }),
889
+ title: /* @__PURE__ */ O(Oe, { ...n }),
865
890
  navigation: e,
866
891
  children: t
867
892
  });
868
893
  }
869
- function Se({ children: e, isWide: t = !1 }) {
870
- return /* @__PURE__ */ E("div", {
894
+ function Ae({ children: e, isWide: t = !1 }) {
895
+ return /* @__PURE__ */ O("div", {
871
896
  className: "x78zum5 xdt5ytf xeuugli xbixft x1hz01jw xtqrqnz x1778rvt xvmahel",
872
- children: /* @__PURE__ */ E(Q, {
897
+ children: /* @__PURE__ */ O(Q, {
873
898
  isWide: t,
874
- children: /* @__PURE__ */ E("div", {
899
+ children: /* @__PURE__ */ O("div", {
875
900
  className: "x78zum5 x1a02dak x1cy8zhl xdz4d12 xeuugli",
876
901
  children: e
877
902
  })
878
903
  })
879
904
  });
880
905
  }
881
- function Ce({ children: e }) {
882
- return /* @__PURE__ */ E("div", {
906
+ function je({ children: e }) {
907
+ return /* @__PURE__ */ O("div", {
883
908
  className: "x78zum5 xdt5ytf x1ewej1i x1iyjqo2 xdz4d12 xeuugli",
884
909
  children: e
885
910
  });
886
911
  }
887
- function we({ title: e, description: t, icon: r, titleRef: a }) {
888
- return /* @__PURE__ */ D("header", {
912
+ function Me({ title: e, description: t, icon: r, titleRef: a }) {
913
+ return /* @__PURE__ */ k("header", {
889
914
  className: "xrvj5dj x1n8ia3y xeuugli",
890
- children: [/* @__PURE__ */ D("div", {
915
+ children: [/* @__PURE__ */ k("div", {
891
916
  className: "x78zum5 x6s0dn4 x1n8ia3y xeuugli",
892
- children: [r != null && /* @__PURE__ */ E("span", {
917
+ children: [r != null && /* @__PURE__ */ O("span", {
893
918
  "aria-hidden": !0,
894
919
  className: "x3nfvp2 x6s0dn4 x2lah0s",
895
920
  children: r
896
- }), /* @__PURE__ */ E(i, {
921
+ }), /* @__PURE__ */ O(N, {
922
+ render: /* @__PURE__ */ O(i, {}),
897
923
  ref: a,
898
924
  tabIndex: -1,
899
925
  className: "xeuugli x1t137rt",
900
926
  children: e
901
927
  })]
902
- }), t != null && /* @__PURE__ */ E(n, { children: t })]
928
+ }), t != null && /* @__PURE__ */ O(n, { children: t })]
903
929
  });
904
930
  }
905
- function Te({ children: e, label: t = "Properties" }) {
906
- return /* @__PURE__ */ E("aside", {
931
+ function Ne({ children: e, label: t = "Properties" }) {
932
+ return /* @__PURE__ */ O("aside", {
907
933
  "aria-label": t,
908
934
  className: "x78zum5 xdt5ytf x1irul0l x1iyjqo2 x1j825kq xeuugli",
909
935
  children: e
910
936
  });
911
937
  }
912
- var Ee = {
913
- Layout: xe,
914
- Body: Se,
915
- Content: Ce,
916
- Header: we,
917
- Aside: Te
938
+ var Pe = {
939
+ Layout: ke,
940
+ Body: Ae,
941
+ Content: je,
942
+ Header: Me,
943
+ Aside: Ne
918
944
  };
919
945
  // packages/layout/src/resizable.tsx
920
- function De({ orientation: e = "horizontal", initialSizes: t, onSizesChange: n, disabled: r = !1, ref: i, ...a }) {
921
- return /* @__PURE__ */ E(A, {
946
+ function Fe({ orientation: e = "horizontal", initialSizes: t, onSizesChange: n, disabled: r = !1, ref: i, ...a }) {
947
+ return /* @__PURE__ */ O(ne, {
922
948
  orientation: e,
923
949
  ...t !== void 0 && { defaultLayout: t },
924
950
  onLayoutCommit: (e, { event: t }) => {
@@ -926,29 +952,29 @@ function De({ orientation: e = "horizontal", initialSizes: t, onSizesChange: n,
926
952
  },
927
953
  disabled: r,
928
954
  ref: i,
929
- ..._({ className: "xeuugli x2lwn1j xh8yej3 x5yr21d" }, a)
955
+ ...y({ className: "xeuugli x2lwn1j xh8yej3 x5yr21d" }, a)
930
956
  });
931
957
  }
932
- function Oe({ id: e, initialSizePercent: t, minimumSizePercent: n = 10, maximumSizePercent: r = 100, canCollapse: i = !1, ref: a, ...o }) {
933
- return /* @__PURE__ */ E(M, {
958
+ function Ie({ id: e, initialSizePercent: t, minimumSizePercent: n = 10, maximumSizePercent: r = 100, canCollapse: i = !1, ref: a, ...o }) {
959
+ return /* @__PURE__ */ O(ie, {
934
960
  id: e,
935
961
  ...t !== void 0 && { defaultSize: t },
936
962
  minSize: n,
937
963
  maxSize: r,
938
964
  collapsible: i,
939
965
  ref: a,
940
- ..._({ className: "xeuugli x2lwn1j xysyzu8" }, o)
966
+ ...y({ className: "xeuugli x2lwn1j xysyzu8" }, o)
941
967
  });
942
968
  }
943
- function ke({ ref: e, ...t }) {
944
- return /* @__PURE__ */ E(j, {
969
+ function Le({ ref: e, ...t }) {
970
+ return /* @__PURE__ */ O(re, {
945
971
  ref: e,
946
- ..._({ className: "x1n2onr6 x1vjfegm x9f619 x1fa40ue xqkn89t xsmyaan x1ff4b4a x7b6jwd xse4jxt x1jy3mcf x1k8hp4o x1rbdpqn x1ehdxp2 x1wg4s0h xse41gn xiti608 xxf9m8b x1ep60v ximv7tn xls05dq xkkvcqt x13qnu6 x9v5kkp x19rmrnh x13iak60" }, t)
972
+ ...y({ className: "x1n2onr6 x1vjfegm x9f619 x1fa40ue xqkn89t xsmyaan x1ff4b4a x7b6jwd xse4jxt x1jy3mcf x1k8hp4o x1rbdpqn x1ehdxp2 x1wg4s0h xse41gn xiti608 xxf9m8b x1ep60v ximv7tn xls05dq xkkvcqt x13qnu6 x9v5kkp x19rmrnh x13iak60" }, t)
947
973
  });
948
974
  }
949
- var Ae = {
950
- Root: De,
951
- Pane: Oe,
952
- Handle: ke
975
+ var Re = {
976
+ Root: Fe,
977
+ Pane: Ie,
978
+ Handle: Le
953
979
  };
954
- export { fe as AppShell, be as CollectionLayout, Q as DetailPage, pe as FocusPage, ne as Navigation, ie as NavigationItem, ae as NavigationLink, ce as NavigationRail, Y as NavigationRailMenu, ue as NavigationRailPlaceholder, re as NavigationSection, N as PageContent, U as PageLayout, W as PageSection, Ee as RecordPage, Ae as Resizable, se as SidebarFooter, oe as SidebarLabel, H as ToolbarAction, ye as ViewStack, me as Workbench, ge as WorkbenchFooter, he as WorkbenchScroll };
980
+ export { be as AppShell, $ as CollectionLayout, Q as DetailPage, xe as FocusPage, de as Navigation, z as NavigationItem, B as NavigationLink, ge as NavigationRail, Y as NavigationRailMenu, ve as NavigationRailPlaceholder, R as NavigationSection, M as PageContent, W as PageLayout, he as PageSection, Pe as RecordPage, Re as Resizable, H as SidebarFooter, V as SidebarLabel, me as ToolbarAction, De as ViewStack, Se as Workbench, we as WorkbenchFooter, Ce as WorkbenchScroll };