@mechane-ai/elements 0.39.0 → 0.41.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 (110) hide show
  1. package/NOTICE +11 -19
  2. package/README.md +49 -25
  3. package/dist/accessibility-P89UG9-r.js +25 -0
  4. package/dist/agent.js +1 -0
  5. package/dist/ai.js +50 -44
  6. package/dist/{categorical-values-BECG-J6R.js → categorical-values-DnGR_pQx.js} +3 -3
  7. package/dist/{chart-frame-CJFnI39T.js → chart-frame-BsyI1Zc8.js} +58 -57
  8. package/dist/{chart-input-DwAobO8Y.js → chart-input-r4S3-QCT.js} +2 -2
  9. package/dist/chart-navigation-D7OkLdSx.js +119 -0
  10. package/dist/charts/cartesian.js +560 -583
  11. package/dist/charts/distribution.js +218 -218
  12. package/dist/charts/graph.js +86 -85
  13. package/dist/charts/hierarchy.js +4 -4
  14. package/dist/charts/matrix.js +148 -147
  15. package/dist/charts/timeline.js +77 -76
  16. package/dist/charts.js +2 -2
  17. package/dist/code-block-C4K1sM9O.js +255 -0
  18. package/dist/collections.js +828 -607
  19. package/dist/constants.stylex-BILvnwUk.js +84 -0
  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 +184 -77
  25. package/dist/{content-link-B3ObdyZY.js → content-link-CBDqSvgP.js} +1 -1
  26. package/dist/content.js +1 -1
  27. package/dist/control-styles-D3q_Qyxi.js +179 -0
  28. package/dist/csp.js +14 -1
  29. package/dist/feedback.js +1 -1
  30. package/dist/forms/dates.js +359 -245
  31. package/dist/forms-I-WMHTkr.js +139 -0
  32. package/dist/forms.js +3 -3
  33. package/dist/index.js +1 -1
  34. package/dist/layout.js +271 -241
  35. package/dist/navigation/commands.js +87 -76
  36. package/dist/{navigation-D2_sGy3C.js → navigation-CveMIuXI.js} +1 -1
  37. package/dist/navigation.js +2 -2
  38. package/dist/overlays.js +1 -1
  39. package/dist/packages/ai/src/message-action.d.ts +1 -1
  40. package/dist/packages/charts/src/chart-navigation.d.ts +18 -2
  41. package/dist/packages/charts/src/chart-surface.d.ts +23 -0
  42. package/dist/packages/charts/src/distribution/distribution-plot.d.ts +3 -2
  43. package/dist/packages/collections/src/data-table.d.ts +7 -2
  44. package/dist/packages/collections/src/index.d.ts +4 -1
  45. package/dist/packages/collections/src/query-controls.d.ts +18 -0
  46. package/dist/packages/collections/src/table-query.d.ts +64 -0
  47. package/dist/packages/collections/src/use-collection-controls.d.ts +3 -8
  48. package/dist/packages/content/src/pierre-theme.d.ts +0 -1
  49. package/dist/packages/core/src/actions.d.ts +15 -13
  50. package/dist/packages/core/src/copy-value.d.ts +3 -2
  51. package/dist/packages/core/src/disclosure.d.ts +14 -11
  52. package/dist/packages/feedback/src/notifications.d.ts +15 -15
  53. package/dist/packages/feedback/src/toast.d.ts +9 -3
  54. package/dist/packages/forms/src/combobox.d.ts +31 -41
  55. package/dist/packages/forms/src/dates/event-month.d.ts +17 -0
  56. package/dist/packages/forms/src/dates/index.d.ts +2 -0
  57. package/dist/packages/forms/src/field-styles.d.ts +0 -19
  58. package/dist/packages/forms/src/form-controls.d.ts +26 -24
  59. package/dist/packages/forms/src/forms.d.ts +17 -14
  60. package/dist/packages/forms/src/select-control.d.ts +6 -4
  61. package/dist/packages/forms/src/select.d.ts +14 -18
  62. package/dist/packages/forms/src/selection-state.d.ts +11 -0
  63. package/dist/packages/forms/src/selection-styles.d.ts +3 -0
  64. package/dist/packages/forms/src/selection.d.ts +21 -19
  65. package/dist/packages/foundations/src/agent/index.d.ts +2 -0
  66. package/dist/packages/foundations/src/control-state.d.ts +2 -3
  67. package/dist/packages/foundations/src/control-styles.d.ts +19 -0
  68. package/dist/packages/foundations/src/csp/index.d.ts +1 -1
  69. package/dist/packages/foundations/src/csp/provider.d.ts +3 -0
  70. package/dist/packages/foundations/src/style-composition.d.ts +4 -1
  71. package/dist/packages/layout/src/app-shell.d.ts +12 -1
  72. package/dist/packages/layout/src/index.d.ts +1 -1
  73. package/dist/packages/layout/src/navigation-rail.d.ts +15 -2
  74. package/dist/packages/layout/src/resizable.d.ts +2 -2
  75. package/dist/packages/layout/src/sidebar.d.ts +4 -3
  76. package/dist/packages/navigation/src/tab-styles.d.ts +1 -1
  77. package/dist/packages/navigation/src/tabs.d.ts +12 -10
  78. package/dist/packages/overlays/src/alert-dialog.d.ts +19 -13
  79. package/dist/packages/overlays/src/dialog.d.ts +39 -24
  80. package/dist/packages/overlays/src/drawer.d.ts +16 -26
  81. package/dist/packages/overlays/src/menu.d.ts +37 -44
  82. package/dist/packages/overlays/src/overlay-root.d.ts +10 -0
  83. package/dist/packages/overlays/src/popover.d.ts +11 -20
  84. package/dist/packages/overlays/src/preview.d.ts +6 -13
  85. package/dist/packages/overlays/src/tooltip.d.ts +12 -15
  86. package/dist/{pierre-diff-CaPsfQRo.js → pierre-diff-DJ3oOfPX.js} +5 -5
  87. package/dist/{src-DPRmO-JY.js → src-CNV1ewzb.js} +379 -407
  88. package/dist/{src-CSWIG_op.js → src-CQQvXi7a.js} +58 -81
  89. package/dist/{src-DWjAoOyd.js → src-D2OHco8V.js} +42 -41
  90. package/dist/src-DfOAlAd2.js +750 -0
  91. package/dist/src-na2DdkKI.js +561 -0
  92. package/dist/{src-C-Sx37kz.js → src-s3tWwnN4.js} +361 -518
  93. package/dist/styles.js +3 -0
  94. package/dist/{elements.css → styles2.css} +195 -97
  95. package/dist/tokens.js +3 -1
  96. package/dist/{tokens.stylex-CJbIDPB9.js → tokens.stylex-dF5CACEJ.js} +13 -93
  97. package/package.json +8 -9
  98. package/skills/elements-workspace/SKILL.md +12 -0
  99. package/dist/accessibility-C-aIZ1Yx.js +0 -15
  100. package/dist/chart-navigation-CBIeNtJq.js +0 -67
  101. package/dist/code-block-aC0Htt4N.js +0 -184
  102. package/dist/forms-BQQFas9g.js +0 -118
  103. package/dist/foundations.css +0 -7
  104. package/dist/packages/content/src/tree/pierre-tree.d.ts +0 -3
  105. package/dist/pierre-theme-BpNaWn1x.js +0 -126
  106. package/dist/pierre-tree-CYCRjdGG.js +0 -106
  107. package/dist/src-d7EAi61b.js +0 -617
  108. package/dist/src-nkgFDl-g.js +0 -1171
  109. package/dist/style-composition-uYlczSsB.js +0 -9
  110. package/styles.css +0 -2
package/dist/layout.js CHANGED
@@ -1,32 +1,33 @@
1
- import { E as e, T as t, i as n, j as r, l as i, n as a, w as o } from "./src-C-Sx37kz.js";
2
- import { t as s } from "./use-scroll-tab-index-Dxpdh4W7.js";
3
- import { a as c, i as l } from "./src-CSWIG_op.js";
4
- import { t as u } from "./header-styles-COxCYFZx.js";
5
- import { t as d } from "./style-composition-uYlczSsB.js";
6
- import { a as f, i as p, t as m } from "./src-d7EAi61b.js";
7
- import { Button as h } from "@base-ui/react/button";
8
- import { mergeProps as g } from "@base-ui/react/merge-props";
9
- import * as _ from "@stylexjs/stylex";
1
+ import { E as e, T as t, i as n, l as r, n as i, w as a } from "./src-s3tWwnN4.js";
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";
10
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";
11
12
  import { Fragment as T, jsx as E, jsxs as D } from "react/jsx-runtime";
12
- import { ArrowLeft as O, PanelLeft as k, X as A } from "lucide-react";
13
- import { Group as j, Panel as M, Separator as N } from "react-resizable-panels";
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";
14
15
  // packages/layout/src/page-content.tsx
15
- function P({ children: e }) {
16
+ function N({ children: e }) {
16
17
  return /* @__PURE__ */ E("div", {
17
18
  className: "x9f619 x78zum5 xdt5ytf xdz4d12 xeuugli xg7ukam",
18
19
  children: e
19
20
  });
20
21
  }
21
22
  // packages/layout/src/frame.stylex.ts
22
- var F = {
23
+ var P = {
23
24
  sidebarMobile: "@media (max-width:800px)",
24
25
  sidebarDesktopQuery: "(min-width:801px)",
25
26
  sidebarCoarse: "@media (min-width:801px) and (pointer: coarse)",
26
27
  detailMobile: "@media (max-width:720px)",
27
28
  toolbarCompact: "@container toolbar (max-width:600px)",
28
29
  workbenchCompact: "@container workbench (max-width:860px)"
29
- }, I = y(null), L = {
30
+ }, F = y(null), I = {
30
31
  header: {
31
32
  kB7OPa: "x9f619",
32
33
  kVAEAm: "x1n2onr6",
@@ -90,15 +91,15 @@ var F = {
90
91
  k1xSpc: "x1s85apg x1rhi5y4",
91
92
  $$css: !0
92
93
  }
93
- }, R = {
94
- inline: L.inlineFooter,
95
- navigation: L.navigationFooter
94
+ }, L = {
95
+ inline: I.inlineFooter,
96
+ navigation: I.navigationFooter
96
97
  };
97
- function z({ header: e, navigationHeader: t, footer: n, close: r, children: i }) {
98
- let a = b(I), o = a !== null && !a.isExpanded, s = e != null;
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;
99
100
  return /* @__PURE__ */ D(T, { children: [
100
101
  /* @__PURE__ */ D("div", {
101
- ..._.props(L.header, u.blockEnd, !s && L.emptyHeader),
102
+ ...h.props(I.header, l.blockEnd, !s && I.emptyHeader),
102
103
  children: [/* @__PURE__ */ E("div", {
103
104
  ...{
104
105
  0: { className: "x78zum5 x6s0dn4 x98rzlu xeuugli x1dc62k6" },
@@ -120,23 +121,23 @@ function z({ header: e, navigationHeader: t, footer: n, close: r, children: i })
120
121
  })
121
122
  ] });
122
123
  }
123
- function ee() {
124
+ function te() {
124
125
  return /* @__PURE__ */ E("div", {
125
126
  className: "x78zum5 x6s0dn4 xl56j7k x14j3e4g x2lah0s",
126
- children: /* @__PURE__ */ E(f.Close, {
127
+ children: /* @__PURE__ */ E(d.Close, {
127
128
  render: /* @__PURE__ */ E(t, {
128
129
  variant: "ghost",
129
130
  "aria-label": "Close navigation"
130
131
  }),
131
- children: /* @__PURE__ */ E(A, {
132
+ children: /* @__PURE__ */ E(ee, {
132
133
  size: 16,
133
134
  "aria-hidden": !0
134
135
  })
135
136
  })
136
137
  });
137
138
  }
138
- function te({ children: e, label: t = "Main" }) {
139
- let n = b(I), r = n !== null && !n.isExpanded;
139
+ function ne({ children: e, label: t = "Main" }) {
140
+ let n = b(F), r = n !== null && !n.isExpanded;
140
141
  return /* @__PURE__ */ E("nav", {
141
142
  "aria-label": t,
142
143
  ...{
@@ -146,8 +147,8 @@ function te({ children: e, label: t = "Main" }) {
146
147
  children: e
147
148
  });
148
149
  }
149
- function ne({ children: e, label: t }) {
150
- let n = b(I), r = n !== null && !n.isExpanded, i = S();
150
+ function re({ children: e, label: t }) {
151
+ let n = b(F), r = n !== null && !n.isExpanded, i = S();
151
152
  return /* @__PURE__ */ D("section", {
152
153
  "aria-labelledby": i,
153
154
  className: "xeuugli",
@@ -161,28 +162,28 @@ function ne({ children: e, label: t }) {
161
162
  }), e]
162
163
  });
163
164
  }
164
- function re({ children: e, icon: t, isSelected: n = !1, shouldCloseOnActivate: r = !0, onClick: i, className: a, style: o, ...s }) {
165
- let c = b(I), l = S(), u = c !== null && !c.isExpanded;
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;
166
167
  return /* @__PURE__ */ E("div", {
167
168
  ...{
168
169
  0: { className: "x78zum5 xeuugli x1ok0vyi" },
169
170
  1: { className: "x78zum5 xeuugli x1ok0vyi x1r7kqkb" }
170
171
  }[!!n | 0],
171
- children: /* @__PURE__ */ D(h, {
172
+ children: /* @__PURE__ */ D(g, {
172
173
  ...s,
173
- ...d({
174
+ ...u({
174
175
  className: a,
175
176
  style: o,
176
177
  styles: {
177
178
  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" },
178
179
  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" }
179
- }[!!u | 0]
180
+ }[!!d | 0]
180
181
  }),
181
182
  "aria-current": n ? "page" : void 0,
182
183
  "aria-labelledby": s["aria-labelledby"] ?? (s["aria-label"] === void 0 ? l : void 0),
183
184
  title: s.title ?? (typeof e == "string" ? e : void 0),
184
- onClick: (e) => {
185
- i !== void 0 && i(e), !e.defaultPrevented && c !== null && r && c.onNavigate();
185
+ onClick: (e, t) => {
186
+ i !== void 0 && i(e, t), !e.defaultPrevented && c !== null && r && c.onNavigate();
186
187
  },
187
188
  children: [t != null && /* @__PURE__ */ E("span", {
188
189
  "aria-hidden": !0,
@@ -193,14 +194,14 @@ function re({ children: e, icon: t, isSelected: n = !1, shouldCloseOnActivate: r
193
194
  ...{
194
195
  0: { className: "xeuugli xb3r6kr xlyipyv xuxw1ft" },
195
196
  1: { className: "xeuugli xb3r6kr xlyipyv xuxw1ft x1s85apg xeod2sa" }
196
- }[!!u | 0],
197
+ }[!!d | 0],
197
198
  children: e
198
199
  })]
199
200
  })
200
201
  });
201
202
  }
202
- function B({ children: e, icon: t, isSelected: n = !1, onClick: r, className: i, style: a, ...o }) {
203
- let s = b(I), c = S(), l = s !== null && !s.isExpanded, u = {
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 = {
204
205
  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" },
205
206
  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" },
206
207
  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" },
@@ -235,8 +236,8 @@ function B({ children: e, icon: t, isSelected: n = !1, onClick: r, className: i,
235
236
  })]
236
237
  });
237
238
  }
238
- function V({ children: e, shouldGrow: t = !1 }) {
239
- let n = b(I), r = n !== null && !n.isExpanded;
239
+ function oe({ children: e, shouldGrow: t = !1 }) {
240
+ let n = b(F), r = n !== null && !n.isExpanded;
240
241
  return /* @__PURE__ */ E("span", {
241
242
  ...{
242
243
  0: { className: "xeuugli xb3r6kr xlyipyv xuxw1ft" },
@@ -247,17 +248,17 @@ function V({ children: e, shouldGrow: t = !1 }) {
247
248
  children: e
248
249
  });
249
250
  }
250
- function H({ children: e, layout: t = "inline" }) {
251
- let n = b(I), r = n !== null && !n.isExpanded;
251
+ function se({ children: e, layout: t = "inline" }) {
252
+ let n = b(F), r = n !== null && !n.isExpanded;
252
253
  return /* @__PURE__ */ E("div", {
253
- ..._.props(L.footer, u.blockStart, r && L.collapsedFooter, R[t]),
254
+ ...h.props(I.footer, l.blockStart, r && I.collapsedFooter, L[t]),
254
255
  children: e
255
256
  });
256
257
  }
257
- function U() {
258
- let e = b(I);
258
+ function z() {
259
+ let e = b(F);
259
260
  return e === null ? null : /* @__PURE__ */ D(T, { children: [/* @__PURE__ */ E("div", {
260
- ..._.props(L.toggleCell, u.inlineEnd, L.desktop),
261
+ ...h.props(I.toggleCell, l.inlineEnd, I.desktop),
261
262
  children: /* @__PURE__ */ E(t, {
262
263
  ref: e.navigationToggleRef,
263
264
  variant: "ghost",
@@ -271,10 +272,10 @@ function U() {
271
272
  })
272
273
  })
273
274
  }), /* @__PURE__ */ E("div", {
274
- ..._.props(L.toggleCell, u.inlineEnd, L.mobile),
275
- children: /* @__PURE__ */ E(f.Trigger, {
275
+ ...h.props(I.toggleCell, l.inlineEnd, I.mobile),
276
+ children: /* @__PURE__ */ E(d.Trigger, {
276
277
  ref: e.mobileNavigationToggleRef,
277
- handle: e.drawerHandle,
278
+ controller: e.drawerController,
278
279
  render: /* @__PURE__ */ E(t, {
279
280
  variant: "ghost",
280
281
  "aria-label": "Open navigation"
@@ -287,7 +288,7 @@ function U() {
287
288
  })] });
288
289
  }
289
290
  // packages/layout/src/page-toolbar.tsx
290
- var W = {
291
+ var B = {
291
292
  toolbar: {
292
293
  kB7OPa: "x9f619",
293
294
  kVAEAm: "x7wzq59",
@@ -316,26 +317,26 @@ var W = {
316
317
  $$css: !0
317
318
  }
318
319
  };
319
- function G({ title: e, actions: t, showBreadcrumb: n = !1, showNavigation: r = !0, leading: i }) {
320
+ function V({ title: e, actions: t, showBreadcrumb: n = !1, showNavigation: r = !0, leading: i }) {
320
321
  let a = v.toArray(e).length > 0, o = v.toArray(t).length > 0, s = v.toArray(i).length > 0;
321
322
  if (v.toArray([
322
323
  e,
323
324
  t,
324
325
  i
325
326
  ]).length === 0) return null;
326
- let c = n ? "nav" : "h1", l = n ? "div" : "span";
327
+ let c = n ? "nav" : "h1", u = n ? "div" : "span";
327
328
  return /* @__PURE__ */ D("div", {
328
- ..._.props(W.toolbar, u.blockEnd),
329
+ ...h.props(B.toolbar, l.blockEnd),
329
330
  children: [
330
331
  s ? /* @__PURE__ */ E("div", {
331
332
  className: "x78zum5 x6s0dn4 xyibt8p x2lah0s",
332
333
  children: i
333
- }) : r && /* @__PURE__ */ E(U, {}),
334
+ }) : r && /* @__PURE__ */ E(z, {}),
334
335
  a && /* @__PURE__ */ E(c, {
335
336
  tabIndex: n ? void 0 : -1,
336
337
  "aria-label": n ? "Breadcrumb" : void 0,
337
338
  className: "x78zum5 x6s0dn4 x1hnptsi x1dc62k6 xjnfzvw x1oec0jp x1cqoux5 x1ghz6dp x1qlqyl8 xj57cvi x1t137rt",
338
- children: /* @__PURE__ */ E(l, {
339
+ children: /* @__PURE__ */ E(u, {
339
340
  className: "xeuugli xb3r6kr xlyipyv xuxw1ft",
340
341
  children: e
341
342
  })
@@ -347,15 +348,15 @@ function G({ title: e, actions: t, showBreadcrumb: n = !1, showNavigation: r = !
347
348
  ]
348
349
  });
349
350
  }
350
- function K({ icon: e, children: t, ...n }) {
351
+ function H({ icon: e, children: t, ...n }) {
351
352
  let r = e != null;
352
353
  return /* @__PURE__ */ E("div", {
353
354
  className: "x9f619 x78zum5 x1qjc9v5 xeuugli",
354
- children: /* @__PURE__ */ D(o, {
355
+ children: /* @__PURE__ */ D(a, {
355
356
  ...n,
356
357
  variant: "ghost",
357
358
  "aria-label": n["aria-label"] ?? (typeof t == "string" ? t : void 0),
358
- xstyle: W.action,
359
+ xstyle: B.action,
359
360
  children: [r && /* @__PURE__ */ E("span", {
360
361
  "aria-hidden": !0,
361
362
  className: "x3nfvp2 x2lah0s x6s0dn4",
@@ -371,14 +372,14 @@ function K({ icon: e, children: t, ...n }) {
371
372
  });
372
373
  }
373
374
  // packages/layout/src/page-layout.tsx
374
- function q({ ref: e, navigation: t, children: n, scrollRestorationId: r = "page-body", ...i }) {
375
- let a = s();
375
+ function U({ ref: e, navigation: t, children: n, scrollRestorationId: r = "page-body", ...i }) {
376
+ let a = o();
376
377
  return /* @__PURE__ */ D("div", {
377
378
  ref: e,
378
379
  className: "xtdtrs8 xmz0i5r xeuugli x2lwn1j xrvj5dj x16p6thf",
379
380
  children: [/* @__PURE__ */ D("div", {
380
381
  className: "xeuugli",
381
- children: [/* @__PURE__ */ E(G, { ...i }), t !== void 0 && ("isPlaceholder" in t ? /* @__PURE__ */ E(c, { ...t }) : /* @__PURE__ */ E(l, { ...t }))]
382
+ children: [/* @__PURE__ */ E(V, { ...i }), t !== void 0 && ("isPlaceholder" in t ? /* @__PURE__ */ E(s, { ...t }) : /* @__PURE__ */ E(c, { ...t }))]
382
383
  }), /* @__PURE__ */ E("div", {
383
384
  ref: a.ref,
384
385
  tabIndex: a.tabIndex,
@@ -388,21 +389,21 @@ function q({ ref: e, navigation: t, children: n, scrollRestorationId: r = "page-
388
389
  })]
389
390
  });
390
391
  }
391
- function J({ children: e, summary: t, breakdown: n, ...r }) {
392
- let a = t != null && t !== !1, o = S(), s = r.id ?? o;
392
+ function W({ children: e, summary: t, breakdown: n, ...i }) {
393
+ let a = t != null && t !== !1, o = S(), s = i.id ?? o;
393
394
  return /* @__PURE__ */ D("section", {
394
395
  "aria-labelledby": s,
395
396
  className: "xeuugli x2lah0s xc8icb0",
396
397
  children: [/* @__PURE__ */ E("div", {
397
398
  className: "x1uhb9sk xsbffnv x13vifvy x11ru5tl",
398
- children: /* @__PURE__ */ E(i, {
399
- ...r,
399
+ children: /* @__PURE__ */ E(r, {
400
+ ...i,
400
401
  id: s
401
402
  })
402
403
  }), /* @__PURE__ */ D("div", {
403
404
  className: "xc8icb0",
404
405
  children: [
405
- a && /* @__PURE__ */ E(P, { children: t }),
406
+ a && /* @__PURE__ */ E(N, { children: t }),
406
407
  n,
407
408
  e
408
409
  ]
@@ -410,11 +411,16 @@ function J({ children: e, summary: t, breakdown: n, ...r }) {
410
411
  });
411
412
  }
412
413
  // packages/layout/src/navigation-rail.tsx
413
- var Y = y("rail"), X = {
414
+ var G = y("rail"), K = {
414
415
  action: {
415
416
  kSGwAc: "xamitd3",
416
417
  $$css: !0
417
418
  },
419
+ drawerFooterLink: {
420
+ kXwgrk: "x1q0g3np",
421
+ kjj79g: "x1nhvcw1",
422
+ $$css: !0
423
+ },
418
424
  selected: {
419
425
  kHjaVl: "x1yk04ar",
420
426
  $$css: !0
@@ -444,25 +450,31 @@ var Y = y("rail"), X = {
444
450
  $$css: !0
445
451
  }
446
452
  };
447
- function ie({ label: n, links: i, action: a }) {
448
- let s = b(Y) === "drawer", c = b(I);
453
+ function ce(e) {
454
+ return /* @__PURE__ */ E(q, { ...e });
455
+ }
456
+ function q({ label: n, links: r, action: i, isFooter: o = !1 }) {
457
+ let s = b(G) === "drawer", c = b(F);
449
458
  function l(e, t) {
450
459
  e?.(t);
451
460
  let n = t.metaKey || t.ctrlKey, r = t.shiftKey || t.altKey;
452
461
  t.button !== 0 || n || r || c?.onNavigate();
453
462
  }
454
463
  let u = (e) => {
455
- a?.onClick(e), e.defaultPrevented || c?.onNavigate();
464
+ i?.onClick(e), e.defaultPrevented || c?.onNavigate();
456
465
  };
457
466
  return s ? /* @__PURE__ */ D("div", {
458
467
  className: "x78zum5 xdt5ytf x1qjc9v5 x2lah0s xeuugli",
459
468
  children: [/* @__PURE__ */ E("nav", {
460
469
  "aria-label": n,
461
- className: "xrvj5dj x1mt1orb x1rnidkh xunmzkg x1s01oa9",
462
- children: i.map(({ label: e, icon: t, isCurrent: n = !1, ...i }) => /* @__PURE__ */ D("a", {
463
- ...g(_.props(r.base, r.button, X.mobileLink, X.rounded, X.selected), i),
470
+ ...{
471
+ 0: { className: "xrvj5dj xnby9oq xunmzkg x1s01oa9" },
472
+ 1: { className: "xrvj5dj xunmzkg x1717udv x1mkdm3x" }
473
+ }[!!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),
464
476
  "aria-current": n ? "location" : void 0,
465
- onClick: (e) => l(i.onClick, e),
477
+ onClick: (e) => l(r.onClick, e),
466
478
  children: [/* @__PURE__ */ E("span", {
467
479
  "aria-hidden": !0,
468
480
  className: "x3nfvp2 x2lah0s xtwnzbg x18utl2x",
@@ -471,52 +483,124 @@ function ie({ label: n, links: i, action: a }) {
471
483
  className: "xeuugli x193iq5w xj0a0fe",
472
484
  children: e
473
485
  })]
474
- }, i.href))
475
- }), a !== void 0 && /* @__PURE__ */ E("div", {
486
+ }, r.href))
487
+ }), i !== void 0 && /* @__PURE__ */ E("div", {
476
488
  className: "xrvj5dj x14w6jbu xngumbj xso031l x1q0q8m5 x1qndepd",
477
- children: /* @__PURE__ */ D(o, {
489
+ children: /* @__PURE__ */ D(a, {
478
490
  variant: "ghost",
479
491
  onClick: u,
480
492
  children: [/* @__PURE__ */ E("span", {
481
493
  "aria-hidden": !0,
482
494
  className: "x3nfvp2 x2lah0s xtwnzbg x18utl2x",
483
- children: a.icon
484
- }), a.label]
495
+ children: i.icon
496
+ }), i.label]
485
497
  })
486
498
  })]
487
- }) : /* @__PURE__ */ E(m.Provider, { children: /* @__PURE__ */ D("div", {
488
- className: "x78zum5 xdt5ytf x1qjc9v5 x2lah0s xeuugli x1yrrsrt x1c526fk",
499
+ }) : /* @__PURE__ */ D("div", {
500
+ ...{
501
+ 0: { className: "x78zum5 xdt5ytf x1qjc9v5 x2lah0s xeuugli" },
502
+ 1: { className: "x78zum5 xdt5ytf x1qjc9v5 x2lah0s xeuugli x1yrrsrt x1c526fk" }
503
+ }[!o | 0],
489
504
  children: [/* @__PURE__ */ E("nav", {
490
505
  "aria-label": n,
491
506
  className: "x78zum5 xdt5ytf x6s0dn4 xunmzkg",
492
- children: i.map(({ label: t, icon: n, isCurrent: r = !1, ...i }) => /* @__PURE__ */ D(m.Root, { children: [/* @__PURE__ */ E(m.Trigger, {
507
+ children: r.map(({ label: t, icon: n, isCurrent: r = !1, ...i }) => /* @__PURE__ */ D(p.Root, { children: [/* @__PURE__ */ E(p.Trigger, {
493
508
  render: /* @__PURE__ */ E(e, {
494
- ...g({ className: "x1yk04ar" }, i),
509
+ ..._({ className: "x1yk04ar" }, i),
495
510
  "aria-label": t,
496
511
  "aria-current": r ? "location" : void 0,
497
512
  onClick: (e) => l(i.onClick, e)
498
513
  }),
499
514
  children: n
500
- }), /* @__PURE__ */ E(m.Portal, { children: /* @__PURE__ */ E(m.Positioner, {
515
+ }), /* @__PURE__ */ E(p.Popup, {
501
516
  side: "right",
502
- children: /* @__PURE__ */ E(m.Popup, { children: t })
503
- }) })] }, i.href))
504
- }), a !== void 0 && /* @__PURE__ */ D(T, { children: [/* @__PURE__ */ E("hr", { className: "xc342km x178xt8z x13fuv20 xhjagg4 xv06hpe xn92wy8" }), /* @__PURE__ */ D(m.Root, { children: [/* @__PURE__ */ E(m.Trigger, {
517
+ children: t
518
+ })] }, 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, {
505
520
  render: /* @__PURE__ */ E(t, {
506
521
  variant: "ghost",
507
- "aria-label": a.label,
508
- xstyle: X.action
522
+ "aria-label": i.label,
523
+ xstyle: K.action
509
524
  }),
510
525
  onClick: u,
511
- children: a.icon
512
- }), /* @__PURE__ */ E(m.Portal, { children: /* @__PURE__ */ E(m.Positioner, {
526
+ children: i.icon
527
+ }), /* @__PURE__ */ E(p.Popup, {
513
528
  side: "right",
514
- children: /* @__PURE__ */ E(m.Popup, { children: a.label })
515
- }) })] })] })]
516
- }) });
529
+ children: i.label
530
+ })] })] })]
531
+ });
532
+ }
533
+ function le({ children: e }) {
534
+ let t = b(G) === "drawer";
535
+ return /* @__PURE__ */ E("div", {
536
+ ...{
537
+ 0: { className: "x78zum5 xdt5ytf x6s0dn4 xunmzkg x1yrrsrt x1c526fk" },
538
+ 1: { className: "x78zum5 xdt5ytf xunmzkg x1yrrsrt x1c526fk x1cy8zhl x14w6jbu" }
539
+ }[!!t | 0],
540
+ children: e
541
+ });
542
+ }
543
+ function J({ children: e }) {
544
+ return /* @__PURE__ */ E("span", {
545
+ "aria-hidden": !0,
546
+ className: "xrvj5dj x1ku5rj1 x9c6wpo x1ff4b4a x1f9pz31 x992rv9",
547
+ children: e
548
+ });
549
+ }
550
+ function ue({ count: e, icon: t }) {
551
+ return /* @__PURE__ */ E("div", {
552
+ "aria-hidden": !0,
553
+ className: "x1yrrsrt x1c526fk x78zum5 xdt5ytf x6s0dn4 xunmzkg",
554
+ children: Array.from({ length: e }, (e, n) => /* @__PURE__ */ E(J, { children: t }, n))
555
+ });
556
+ }
557
+ // packages/layout/src/navigation-rail-menu.tsx
558
+ var de = {
559
+ rail: {
560
+ side: "right",
561
+ align: "end"
562
+ },
563
+ drawer: {
564
+ side: "top",
565
+ align: "start"
566
+ }
567
+ };
568
+ function Y({ label: e, icon: n, children: r }) {
569
+ let i = b(G), [a, o] = w(!1);
570
+ return x(() => {
571
+ let e = globalThis.matchMedia(P.sidebarDesktopQuery);
572
+ function t() {
573
+ o(!1);
574
+ }
575
+ return e.addEventListener("change", t), () => e.removeEventListener("change", t);
576
+ }, []), /* @__PURE__ */ D(f.Root, {
577
+ open: a,
578
+ onOpenChange: o,
579
+ modal: !1,
580
+ children: [/* @__PURE__ */ D(p.Root, {
581
+ disabled: a || i === "drawer",
582
+ children: [/* @__PURE__ */ E(p.Trigger, {
583
+ render: /* @__PURE__ */ E(f.Trigger, { render: /* @__PURE__ */ E(t, {
584
+ variant: "ghost",
585
+ "aria-label": e
586
+ }) }),
587
+ children: n
588
+ }), /* @__PURE__ */ E(p.Popup, {
589
+ side: "right",
590
+ children: e
591
+ })]
592
+ }), /* @__PURE__ */ E(f.Popup, {
593
+ ...de[i],
594
+ sideOffset: 4,
595
+ collisionPadding: 8,
596
+ "aria-label": e,
597
+ className: "x1uncgzr",
598
+ children: r
599
+ })]
600
+ });
517
601
  }
518
602
  // packages/layout/src/app-shell.tsx
519
- var Z = {
603
+ var X = {
520
604
  sidebar: {
521
605
  kB7OPa: "x9f619",
522
606
  k1xSpc: "x78zum5 x1ykma7f",
@@ -553,24 +637,33 @@ var Z = {
553
637
  $$css: !0
554
638
  }
555
639
  };
556
- function ae({ rail: e, railFooter: t, sidebarHeader: n, sidebar: r, footer: i, children: a, mainId: o = "main", shouldFocus: s = !1 }) {
557
- let c = e != null, l = t != null, [d, p] = w(!0), [m, h] = w(!1), g = s || c && !d, [v] = w(() => f.createHandle()), y = S(), b = C(null), O = C(null), k = C(null), A = C(!1);
640
+ function Z({ footer: e }) {
641
+ return /* @__PURE__ */ E("div", {
642
+ 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, {
644
+ ...e.navigation,
645
+ isFooter: !0
646
+ }), /* @__PURE__ */ E(Y, { ...e.menu })] }) })
647
+ });
648
+ }
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);
558
651
  return x(() => {
559
- let e = globalThis.matchMedia(F.sidebarDesktopQuery);
652
+ let e = globalThis.matchMedia(P.sidebarDesktopQuery);
560
653
  function t() {
561
- e.matches && h(!1);
654
+ e.matches && m(!1);
562
655
  }
563
656
  return e.addEventListener("change", t), () => e.removeEventListener("change", t);
564
- }, []), /* @__PURE__ */ D(I.Provider, {
657
+ }, []), /* @__PURE__ */ D(F.Provider, {
565
658
  value: {
566
- isExpanded: d,
567
- sidebarId: y,
568
- drawerHandle: v,
569
- navigationToggleRef: b,
570
- mobileNavigationToggleRef: O,
571
- onToggle: () => p((e) => !e),
659
+ isExpanded: u,
660
+ sidebarId: v,
661
+ drawerController: _,
662
+ navigationToggleRef: y,
663
+ mobileNavigationToggleRef: b,
664
+ onToggle: () => f((e) => !e),
572
665
  onNavigate: () => {
573
- A.current = m, h(!1);
666
+ k.current = p, m(!1);
574
667
  }
575
668
  },
576
669
  children: [/* @__PURE__ */ D("div", {
@@ -578,24 +671,18 @@ function ae({ rail: e, railFooter: t, sidebarHeader: n, sidebar: r, footer: i, c
578
671
  children: [
579
672
  c && /* @__PURE__ */ D("div", {
580
673
  hidden: s,
581
- ..._.props(Z.sidebar, u.inlineEnd, Z.rail, s && Z.hidden),
674
+ ...h.props(X.sidebar, l.inlineEnd, X.rail, s && X.hidden),
582
675
  children: [/* @__PURE__ */ E("div", {
583
676
  className: "x98rzlu x2lwn1j x1odjw0f x1e4zzel",
584
677
  children: e
585
- }), l && /* @__PURE__ */ E("div", {
586
- className: "x2lah0s x1a148e8",
587
- children: /* @__PURE__ */ E("div", {
588
- className: "x78zum5 x6s0dn4 xl56j7k x14j3e4g xnyqvp6",
589
- children: t
590
- })
591
- })]
678
+ }), t !== void 0 && /* @__PURE__ */ E(Z, { footer: t })]
592
679
  }),
593
680
  /* @__PURE__ */ E("aside", {
594
- id: y,
681
+ id: v,
595
682
  "aria-label": "Navigation",
596
683
  hidden: g,
597
- ..._.props(Z.sidebar, u.inlineEnd, c && Z.secondary, !c && !d && Z.collapsed, g && Z.hidden),
598
- children: /* @__PURE__ */ E(z, {
684
+ ...h.props(X.sidebar, l.inlineEnd, c && X.secondary, !c && !u && X.collapsed, g && X.hidden),
685
+ children: /* @__PURE__ */ E(R, {
599
686
  header: n,
600
687
  footer: i,
601
688
  children: r
@@ -608,98 +695,45 @@ function ae({ rail: e, railFooter: t, sidebarHeader: n, sidebar: r, footer: i, c
608
695
  children: a
609
696
  })
610
697
  ]
611
- }), /* @__PURE__ */ E(f.Root, {
612
- handle: v,
613
- open: m && !s,
614
- onOpenChange: h,
615
- children: /* @__PURE__ */ D(f.Portal, { children: [/* @__PURE__ */ E(f.Backdrop, {}), /* @__PURE__ */ E(f.Viewport, { children: /* @__PURE__ */ D(f.Popup, {
616
- ref: k,
617
- xstyle: Z.drawer,
698
+ }), /* @__PURE__ */ D(d.Root, {
699
+ controller: _,
700
+ open: p && !s,
701
+ onOpenChange: m,
702
+ children: [/* @__PURE__ */ E(d.Backdrop, {}), /* @__PURE__ */ D(d.Popup, {
703
+ ref: O,
704
+ xstyle: X.drawer,
618
705
  finalFocus: () => {
619
- if (A.current) {
620
- A.current = !1;
706
+ if (k.current) {
707
+ k.current = !1;
621
708
  let e = document.querySelector(`#${CSS.escape(o)}`), t = document.activeElement;
622
709
  if (t instanceof HTMLElement) {
623
710
  let e = t.closest("[role=\"dialog\"], [role=\"alertdialog\"]");
624
- if (e !== null && e !== k.current) return t;
711
+ if (e !== null && e !== O.current) return t;
625
712
  }
626
713
  return t instanceof HTMLElement && e?.contains(t) === !0 ? t : e;
627
714
  }
628
- return globalThis.matchMedia(F.sidebarDesktopQuery).matches ? b.current : O.current;
715
+ return globalThis.matchMedia(P.sidebarDesktopQuery).matches ? y.current : b.current;
629
716
  },
630
- children: [/* @__PURE__ */ E(f.Title, {
717
+ children: [/* @__PURE__ */ E(d.Title, {
631
718
  isVisuallyHidden: !0,
632
719
  children: "Navigation"
633
- }), /* @__PURE__ */ E(z, {
720
+ }), /* @__PURE__ */ E(R, {
634
721
  header: n,
635
- navigationHeader: c && /* @__PURE__ */ E(Y.Provider, {
722
+ navigationHeader: c && /* @__PURE__ */ E(G.Provider, {
636
723
  value: "drawer",
637
724
  children: e
638
725
  }),
639
- footer: /* @__PURE__ */ D(T, { children: [i, c && l && /* @__PURE__ */ E(Y.Provider, {
726
+ footer: /* @__PURE__ */ D(T, { children: [i, c && t !== void 0 && /* @__PURE__ */ E(G.Provider, {
640
727
  value: "drawer",
641
- children: /* @__PURE__ */ E("div", {
642
- className: "x2lah0s x1a148e8",
643
- children: /* @__PURE__ */ E("div", {
644
- className: "x78zum5 x6s0dn4 xl56j7k x14j3e4g xnyqvp6",
645
- children: t
646
- })
647
- })
728
+ children: /* @__PURE__ */ E(Z, { footer: t })
648
729
  })] }),
649
- close: /* @__PURE__ */ E(ee, {}),
730
+ close: /* @__PURE__ */ E(te, {}),
650
731
  children: r
651
732
  })]
652
- }) })] })
733
+ })]
653
734
  })]
654
735
  });
655
736
  }
656
- // packages/layout/src/navigation-rail-menu.tsx
657
- var oe = {
658
- rail: {
659
- side: "right",
660
- align: "end"
661
- },
662
- drawer: {
663
- side: "top",
664
- align: "start"
665
- }
666
- };
667
- function se({ label: e, icon: n, children: r }) {
668
- let i = b(Y), [a, o] = w(!1);
669
- return x(() => {
670
- let e = globalThis.matchMedia(F.sidebarDesktopQuery);
671
- function t() {
672
- o(!1);
673
- }
674
- return e.addEventListener("change", t), () => e.removeEventListener("change", t);
675
- }, []), /* @__PURE__ */ D(p.Root, {
676
- open: a,
677
- onOpenChange: o,
678
- modal: !1,
679
- children: [/* @__PURE__ */ E(m.Provider, { children: /* @__PURE__ */ D(m.Root, {
680
- disabled: a || i === "drawer",
681
- children: [/* @__PURE__ */ E(m.Trigger, {
682
- render: /* @__PURE__ */ E(p.Trigger, { render: /* @__PURE__ */ E(t, {
683
- variant: "ghost",
684
- "aria-label": e
685
- }) }),
686
- children: n
687
- }), /* @__PURE__ */ E(m.Portal, { children: /* @__PURE__ */ E(m.Positioner, {
688
- side: "right",
689
- children: /* @__PURE__ */ E(m.Popup, { children: e })
690
- }) })]
691
- }) }), /* @__PURE__ */ E(p.Portal, { children: /* @__PURE__ */ E(p.Positioner, {
692
- ...oe[i],
693
- sideOffset: 4,
694
- collisionPadding: 8,
695
- children: /* @__PURE__ */ E(p.Popup, {
696
- "aria-label": e,
697
- className: "x1uncgzr",
698
- children: r
699
- })
700
- }) })]
701
- });
702
- }
703
737
  // packages/layout/src/detail-page.tsx
704
738
  function Q({ children: e, isWide: t = !1 }) {
705
739
  return /* @__PURE__ */ E("div", {
@@ -711,7 +745,7 @@ function Q({ children: e, isWide: t = !1 }) {
711
745
  });
712
746
  }
713
747
  // packages/layout/src/focus-page.tsx
714
- function ce({ children: e }) {
748
+ function pe({ children: e }) {
715
749
  return /* @__PURE__ */ E("main", {
716
750
  id: "main",
717
751
  tabIndex: -1,
@@ -723,7 +757,7 @@ function ce({ children: e }) {
723
757
  });
724
758
  }
725
759
  // packages/layout/src/workbench.tsx
726
- function le({ header: e, children: t, inspector: n }) {
760
+ function me({ header: e, children: t, inspector: n }) {
727
761
  return /* @__PURE__ */ D("div", {
728
762
  className: "x78zum5 xdt5ytf xtdtrs8 xmz0i5r x98rzlu xeuugli x2lwn1j x12h1iku x1a75771 xbixft x1hz01jw xtqrqnz x1778rvt xj57cvi xvmahel",
729
763
  children: [e != null && /* @__PURE__ */ E("div", {
@@ -745,8 +779,8 @@ function le({ header: e, children: t, inspector: n }) {
745
779
  })]
746
780
  });
747
781
  }
748
- function ue({ label: e, children: t, isFlush: n = !1, scrollRestorationId: r }) {
749
- let i = s();
782
+ function he({ label: e, children: t, isFlush: n = !1, scrollRestorationId: r }) {
783
+ let i = o();
750
784
  return /* @__PURE__ */ E("div", {
751
785
  ref: i.ref,
752
786
  role: "region",
@@ -760,20 +794,20 @@ function ue({ label: e, children: t, isFlush: n = !1, scrollRestorationId: r })
760
794
  children: t
761
795
  });
762
796
  }
763
- function de({ children: e }) {
797
+ function ge({ children: e }) {
764
798
  return /* @__PURE__ */ E("div", {
765
799
  className: "x2lah0s x1c8xbx5 x178xt8z x13fuv20 xhjagg4 xpvm0e4",
766
800
  children: e
767
801
  });
768
802
  }
769
803
  // packages/layout/src/view-stack.tsx
770
- function fe({ children: e }) {
804
+ function _e({ children: e }) {
771
805
  return /* @__PURE__ */ E("div", {
772
806
  className: "x1n2onr6 x78zum5 xdt5ytf x98rzlu xeuugli x2lwn1j",
773
807
  children: e
774
808
  });
775
809
  }
776
- function pe({ isActive: e, children: t }) {
810
+ function ve({ isActive: e, children: t }) {
777
811
  return /* @__PURE__ */ E("section", {
778
812
  "aria-hidden": !e,
779
813
  inert: !e,
@@ -784,12 +818,12 @@ function pe({ isActive: e, children: t }) {
784
818
  children: t
785
819
  });
786
820
  }
787
- var me = {
788
- Root: fe,
789
- Panel: pe
821
+ var ye = {
822
+ Root: _e,
823
+ Panel: ve
790
824
  };
791
825
  // packages/layout/src/collection-layout.tsx
792
- function he({ header: e, children: t }) {
826
+ function be({ header: e, children: t }) {
793
827
  return /* @__PURE__ */ D("div", {
794
828
  "data-page-layout": "collection",
795
829
  className: "x78zum5 xdt5ytf x98rzlu xeuugli x2lwn1j x7giv3",
@@ -803,7 +837,7 @@ function he({ header: e, children: t }) {
803
837
  });
804
838
  }
805
839
  // packages/layout/src/record-page.tsx
806
- function ge({ backLabel: e, backHref: t, onBack: n }) {
840
+ function $({ backLabel: e, backHref: t, onBack: n }) {
807
841
  return /* @__PURE__ */ D("a", {
808
842
  href: t,
809
843
  className: "x3nfvp2 x6s0dn4 x1hnptsi xid9utz xeuugli x193iq5w xbixft xkrqix3 x5638nf x13qnu6 x9v5kkp x19rmrnh x1bqaal",
@@ -822,17 +856,17 @@ function ge({ backLabel: e, backHref: t, onBack: n }) {
822
856
  })]
823
857
  });
824
858
  }
825
- function _e({ navigation: e, children: t, ...n }) {
826
- return /* @__PURE__ */ E(q, {
859
+ function xe({ navigation: e, children: t, ...n }) {
860
+ return /* @__PURE__ */ E(U, {
827
861
  showBreadcrumb: !0,
828
862
  showNavigation: n.showNavigation ?? !0,
829
863
  actions: n.actions,
830
- title: /* @__PURE__ */ E(ge, { ...n }),
864
+ title: /* @__PURE__ */ E($, { ...n }),
831
865
  navigation: e,
832
866
  children: t
833
867
  });
834
868
  }
835
- function ve({ children: e, isWide: t = !1 }) {
869
+ function Se({ children: e, isWide: t = !1 }) {
836
870
  return /* @__PURE__ */ E("div", {
837
871
  className: "x78zum5 xdt5ytf xeuugli xbixft x1hz01jw xtqrqnz x1778rvt xvmahel",
838
872
  children: /* @__PURE__ */ E(Q, {
@@ -844,13 +878,13 @@ function ve({ children: e, isWide: t = !1 }) {
844
878
  })
845
879
  });
846
880
  }
847
- function ye({ children: e }) {
881
+ function Ce({ children: e }) {
848
882
  return /* @__PURE__ */ E("div", {
849
883
  className: "x78zum5 xdt5ytf x1ewej1i x1iyjqo2 xdz4d12 xeuugli",
850
884
  children: e
851
885
  });
852
886
  }
853
- function be({ title: e, description: t, icon: r, titleRef: i }) {
887
+ function we({ title: e, description: t, icon: r, titleRef: a }) {
854
888
  return /* @__PURE__ */ D("header", {
855
889
  className: "xrvj5dj x1n8ia3y xeuugli",
856
890
  children: [/* @__PURE__ */ D("div", {
@@ -859,8 +893,8 @@ function be({ title: e, description: t, icon: r, titleRef: i }) {
859
893
  "aria-hidden": !0,
860
894
  className: "x3nfvp2 x6s0dn4 x2lah0s",
861
895
  children: r
862
- }), /* @__PURE__ */ E(a, {
863
- ref: i,
896
+ }), /* @__PURE__ */ E(i, {
897
+ ref: a,
864
898
  tabIndex: -1,
865
899
  className: "xeuugli x1t137rt",
866
900
  children: e
@@ -868,57 +902,53 @@ function be({ title: e, description: t, icon: r, titleRef: i }) {
868
902
  }), t != null && /* @__PURE__ */ E(n, { children: t })]
869
903
  });
870
904
  }
871
- function $({ children: e, label: t = "Properties" }) {
905
+ function Te({ children: e, label: t = "Properties" }) {
872
906
  return /* @__PURE__ */ E("aside", {
873
907
  "aria-label": t,
874
908
  className: "x78zum5 xdt5ytf x1irul0l x1iyjqo2 x1j825kq xeuugli",
875
909
  children: e
876
910
  });
877
911
  }
878
- var xe = {
879
- Layout: _e,
880
- Body: ve,
881
- Content: ye,
882
- Header: be,
883
- Aside: $
912
+ var Ee = {
913
+ Layout: xe,
914
+ Body: Se,
915
+ Content: Ce,
916
+ Header: we,
917
+ Aside: Te
884
918
  };
885
919
  // packages/layout/src/resizable.tsx
886
- function Se({ orientation: e = "horizontal", initialSizes: t, onSizesChange: n, disabled: r, ref: i, ...a }) {
887
- return /* @__PURE__ */ E(j, {
920
+ function De({ orientation: e = "horizontal", initialSizes: t, onSizesChange: n, disabled: r = !1, ref: i, ...a }) {
921
+ return /* @__PURE__ */ E(A, {
888
922
  orientation: e,
889
- defaultLayout: t,
890
- onLayoutChanged: (e, t) => {
891
- t.isUserInteraction && n?.(e);
923
+ ...t !== void 0 && { defaultLayout: t },
924
+ onLayoutCommit: (e, { event: t }) => {
925
+ t !== void 0 && n?.(e);
892
926
  },
893
927
  disabled: r,
894
- elementRef: i,
895
- resizeTargetMinimumSize: {
896
- coarse: 44,
897
- fine: 12
898
- },
899
- ...g({ className: "xeuugli x2lwn1j xh8yej3 x5yr21d" }, a)
928
+ ref: i,
929
+ ..._({ className: "xeuugli x2lwn1j xh8yej3 x5yr21d" }, a)
900
930
  });
901
931
  }
902
- function Ce({ id: e, initialSizePercent: t, minimumSizePercent: n = 10, maximumSizePercent: r = 100, canCollapse: i = !1, ref: a, ...o }) {
932
+ function Oe({ id: e, initialSizePercent: t, minimumSizePercent: n = 10, maximumSizePercent: r = 100, canCollapse: i = !1, ref: a, ...o }) {
903
933
  return /* @__PURE__ */ E(M, {
904
934
  id: e,
905
- defaultSize: t === void 0 ? void 0 : `${t}%`,
906
- minSize: `${n}%`,
907
- maxSize: `${r}%`,
935
+ ...t !== void 0 && { defaultSize: t },
936
+ minSize: n,
937
+ maxSize: r,
908
938
  collapsible: i,
909
- elementRef: a,
910
- ...g({ className: "xeuugli x2lwn1j xysyzu8" }, o)
939
+ ref: a,
940
+ ..._({ className: "xeuugli x2lwn1j xysyzu8" }, o)
911
941
  });
912
942
  }
913
- function we({ ref: e, ...t }) {
914
- return /* @__PURE__ */ E(N, {
915
- elementRef: e,
916
- ...g({ className: "x1fa40ue x1i1rx1s xgc0pbm xir5lan xfaai28 x1rbdpqn x8wp5i9 x13qnu6 x9v5kkp x19rmrnh x13iak60" }, t)
943
+ function ke({ ref: e, ...t }) {
944
+ return /* @__PURE__ */ E(j, {
945
+ 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)
917
947
  });
918
948
  }
919
- var Te = {
920
- Root: Se,
921
- Pane: Ce,
922
- Handle: we
949
+ var Ae = {
950
+ Root: De,
951
+ Pane: Oe,
952
+ Handle: ke
923
953
  };
924
- export { ae as AppShell, he as CollectionLayout, Q as DetailPage, ce as FocusPage, te as Navigation, re as NavigationItem, B as NavigationLink, ie as NavigationRail, se as NavigationRailMenu, ne as NavigationSection, P as PageContent, q as PageLayout, J as PageSection, xe as RecordPage, Te as Resizable, H as SidebarFooter, V as SidebarLabel, K as ToolbarAction, me as ViewStack, le as Workbench, de as WorkbenchFooter, ue as WorkbenchScroll };
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 };