@mechane-ai/elements 0.61.0 → 0.63.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 (92) hide show
  1. package/dist/ai.js +211 -212
  2. package/dist/{article-COShcQPh.js → article-lhByzGCW.js} +6 -6
  3. package/dist/article.js +1 -1
  4. package/dist/catalog.json +13 -1
  5. package/dist/{categorical-values-DdZLdWhL.js → categorical-values-3g2m87_m.js} +1 -1
  6. package/dist/{cells-BTTLURWI.js → cells-X8SVrZBc.js} +1 -1
  7. package/dist/charts/cartesian.js +1 -1
  8. package/dist/charts/cells.js +1 -1
  9. package/dist/charts/comparison.js +1 -1
  10. package/dist/charts/distribution.js +1 -1
  11. package/dist/charts/figure.js +12 -12
  12. package/dist/charts/graph.js +1 -1
  13. package/dist/charts/hierarchy.js +1 -1
  14. package/dist/charts/image.js +1 -1
  15. package/dist/charts/matrix.js +1 -1
  16. package/dist/charts/plot.js +4 -4
  17. package/dist/charts/relationship.js +1 -1
  18. package/dist/charts/text.js +1 -1
  19. package/dist/charts/timeline.js +2 -2
  20. package/dist/charts/trend.js +1 -1
  21. package/dist/charts.js +2 -2
  22. package/dist/{code-block-BZsY2sh3.js → code-block-CJkiWSrX.js} +1 -1
  23. package/dist/collections.js +1 -1
  24. package/dist/{commands-D0bF2JxV.js → commands-DlitIiMJ.js} +2 -2
  25. package/dist/content/code.js +1 -1
  26. package/dist/content/diff.js +10 -10
  27. package/dist/content/link.js +1 -1
  28. package/dist/content/markdown.js +1 -1
  29. package/dist/content/tree.js +2 -2
  30. package/dist/{content-link-PnpcnTCx.js → content-link-DQ3tt_SK.js} +1 -1
  31. package/dist/content.js +1 -1
  32. package/dist/{dates-Cq90-D2X.js → dates-Cvrsj4l9.js} +31 -32
  33. package/dist/{dumbbell-plot-BeHhL-01.js → dumbbell-plot-CEShrjuI.js} +4 -4
  34. package/dist/{embedding-map-DbETVJXp.js → embedding-map-CQZn0DCg.js} +7 -7
  35. package/dist/feedback.js +1 -1
  36. package/dist/{figure-frame-ClYRIRAq.js → figure-frame-BljHBC77.js} +11 -11
  37. package/dist/forms/dates.js +1 -1
  38. package/dist/{forms-CEbwzlRR.js → forms-BYk8t91h.js} +17 -17
  39. package/dist/forms.js +2 -2
  40. package/dist/{image-grid-DB5U7Jtx.js → image-grid-ClMUSwqO.js} +3 -3
  41. package/dist/index.js +1 -1
  42. package/dist/kits/evaluation.js +5 -5
  43. package/dist/kits/interpretability.js +12 -12
  44. package/dist/kits/operations.js +6 -6
  45. package/dist/kits/research.js +8 -8
  46. package/dist/kits/training.js +6 -6
  47. package/dist/layout.js +1 -1
  48. package/dist/lesson.js +3 -3
  49. package/dist/{markdown-VpLw_P9T.js → markdown-_4ZFsDyM.js} +2 -2
  50. package/dist/mdx.js +6 -6
  51. package/dist/navigation/commands.js +1 -1
  52. package/dist/navigation-CwXM887i.js +44 -0
  53. package/dist/navigation.js +3 -3
  54. package/dist/packages/charts/src/plot/plot-marks.d.ts +2 -1
  55. package/dist/packages/charts/src/timeline/trace-timeline-layout.d.ts +7 -2
  56. package/dist/packages/charts/src/timeline/trace-timeline.d.ts +5 -3
  57. package/dist/packages/charts/src/timeline/waterfall.d.ts +3 -1
  58. package/dist/packages/core/src/filter-chips.d.ts +21 -0
  59. package/dist/packages/core/src/index.d.ts +2 -0
  60. package/dist/packages/navigation/src/navigation.d.ts +4 -0
  61. package/dist/{param-BdqTpZER.js → param-BxLsoDip.js} +1 -1
  62. package/dist/{pierre-diff-aGyQK5xK.js → pierre-diff-DwmKtFYy.js} +1 -1
  63. package/dist/{plot-layout-B-b6tioh.js → plot-layout-oXzW4fgJ.js} +2 -2
  64. package/dist/{plot-marks-FVsbFkUs.js → plot-marks-DgCtcd3L.js} +7 -6
  65. package/dist/{plot-surface-BlR44uTL.js → plot-surface-BuXeoeBq.js} +1 -1
  66. package/dist/{reference-lines-BDfsv8dy.js → reference-lines-Kmxs_hXa.js} +2 -2
  67. package/dist/{scene-CY05-A1k.js → scene-AWpudPHv.js} +7 -7
  68. package/dist/scene.js +1 -1
  69. package/dist/{slope-chart-DTyF1lNG.js → slope-chart-DzbDOBUo.js} +5 -5
  70. package/dist/{src-Ci8DeY8J.js → src-CJ-0r20F.js} +1 -1
  71. package/dist/{src-BAlO76fa.js → src-CZyleIH0.js} +40 -40
  72. package/dist/{src-Dxs3Buo_.js → src-CuTIcRwk.js} +186 -187
  73. package/dist/{src-4qgpiWvP.js → src-DFkzV7H0.js} +44 -44
  74. package/dist/{src-9EJskqB_.js → src-DH2Xqu32.js} +659 -428
  75. package/dist/{src-C-Wg9m9H.js → src-DpVApV62.js} +20 -21
  76. package/dist/{src-Cuwx-PLT.js → src-yrBVxkaf.js} +119 -120
  77. package/dist/styles2.css +55 -12
  78. package/dist/{time-series-BbUBF3IE.js → time-series-D7TCUK56.js} +34 -34
  79. package/dist/timeline-CR5VPm_f.js +914 -0
  80. package/dist/{token-heatmap-o_9l6vaq.js → token-heatmap-DEpcsiRR.js} +3 -3
  81. package/dist/{token-predictions-DaAztlOS.js → token-predictions-DMYbc2-N.js} +4 -4
  82. package/dist/{transport-4V9rfYHN.js → transport-VwKG58nR.js} +4 -4
  83. package/dist/{tree-diagram-BDj4TGXb.js → tree-diagram-BqL3fTdB.js} +8 -8
  84. package/dist/{treemap-DUSFlCPK.js → treemap-C0CeP3PD.js} +4 -4
  85. package/dist/{use-tween-BsaEO862.js → use-tween-D-wmSMa8.js} +1 -1
  86. package/dist/{violin-plot-ULdC_dcY.js → violin-plot-6829_9q5.js} +4 -4
  87. package/dist/waterfall-C5HRWlEe.js +736 -0
  88. package/package.json +1 -1
  89. package/dist/control-styles-D3q_Qyxi.js +0 -179
  90. package/dist/navigation-CveMIuXI.js +0 -39
  91. package/dist/timeline-kDb6bY7M.js +0 -712
  92. package/dist/waterfall-Dre6i02Z.js +0 -684
@@ -1,5 +1,4 @@
1
- import { i as e, s as t } from "./src-9EJskqB_.js";
2
- import { a as n, n as r, r as i, t as a } from "./control-styles-D3q_Qyxi.js";
1
+ import { F as e, L as t, N as n, P as r, i, s as a } from "./src-DH2Xqu32.js";
3
2
  import { i as o } from "./tokens.stylex-dF5CACEJ.js";
4
3
  import { t as s } from "./accessibility-P89UG9-r.js";
5
4
  import { t as c } from "./chart-tones-ei3BC2AL.js";
@@ -13,20 +12,20 @@ import { Meter as re, MeterIndicator as w, MeterLabel as T, MeterTrack as E } fr
13
12
  import { Progress as ie, ProgressIndicator as ae, ProgressLabel as oe, ProgressTrack as se } from "@ui-sdk/react/progress";
14
13
  import { Toast as ce, ToastAction as D, ToastClose as O, ToastDescription as k, ToastRegion as A, ToastTitle as j, createToaster as M } from "@ui-sdk/react/toast";
15
14
  // packages/feedback/src/feedback.tsx
16
- function N({ title: n, children: r, action: i, ...a }) {
15
+ function N({ title: e, children: t, action: n, ...r }) {
17
16
  return /* @__PURE__ */ y("div", {
18
- ...d({ className: "x78zum5 xdt5ytf x6s0dn4 xl56j7k x2b8uid xeuugli x193iq5w x9f619 x9w77qv xnx3t7k x1n8ia3y x1hz01jw xj57cvi xvmahel xj0a0fe" }, a),
17
+ ...d({ className: "x78zum5 xdt5ytf x6s0dn4 xl56j7k x2b8uid xeuugli x193iq5w x9f619 x9w77qv xnx3t7k x1n8ia3y x1hz01jw xj57cvi xvmahel xj0a0fe" }, r),
19
18
  children: [
20
19
  /* @__PURE__ */ v(b, {
21
20
  size: 22,
22
21
  "aria-hidden": !0,
23
22
  className: "x153jb6y x2lah0s"
24
23
  }),
25
- /* @__PURE__ */ v(t, { children: n }),
26
- r != null && /* @__PURE__ */ v(e, { children: r }),
27
- i != null && /* @__PURE__ */ v("div", {
24
+ /* @__PURE__ */ v(a, { children: e }),
25
+ t != null && /* @__PURE__ */ v(i, { children: t }),
26
+ n != null && /* @__PURE__ */ v("div", {
28
27
  className: "x78zum5 xl56j7k x1a02dak x1hnptsi xeuugli x193iq5w",
29
- children: i
28
+ children: n
30
29
  })
31
30
  ]
32
31
  });
@@ -140,37 +139,37 @@ var B = {
140
139
  ],
141
140
  rows: (e) => [V, { "--x-height": ((e) => typeof e == "number" ? e + "px" : e ?? void 0)(`calc(${e} * 1lh + 2 * ${o.paddingBlock} + 2px)`) }]
142
141
  };
143
- function U({ width: e = "7ch", isIconOnly: t = !1, density: n = "standard", xstyle: s }) {
142
+ function U({ width: t = "7ch", isIconOnly: i = !1, density: a = "standard", xstyle: s }) {
144
143
  return /* @__PURE__ */ v("span", {
145
144
  "aria-hidden": !0,
146
145
  inert: !0,
147
- ...u.props(i.base, i.button, r[n], a[n], t && i.iconButton, H.button, s),
148
- children: t ? /* @__PURE__ */ v(L, {
146
+ ...u.props(e.base, e.button, r[a], n[a], i && e.iconButton, H.button, s),
147
+ children: i ? /* @__PURE__ */ v(L, {
149
148
  width: o.iconSize,
150
149
  height: o.iconSize
151
- }) : /* @__PURE__ */ v(R, { width: e })
150
+ }) : /* @__PURE__ */ v(R, { width: t })
152
151
  });
153
152
  }
154
- function W({ label: e, hint: t, isMultiline: a = !1, density: o = "standard", rows: s = 4, width: c = "100%", xstyle: l }) {
153
+ function W({ label: n, hint: i, isMultiline: a = !1, density: o = "standard", rows: s = 4, width: c = "100%", xstyle: l }) {
155
154
  let d = a ? Math.min(s, 6) : 1;
156
155
  return /* @__PURE__ */ y("div", {
157
156
  "aria-hidden": !0,
158
- ...u.props(i.fieldRoot, H.width(c), l),
157
+ ...u.props(e.fieldRoot, H.width(c), l),
159
158
  children: [
160
- e !== void 0 && /* @__PURE__ */ v("span", {
161
- ...u.props(i.label),
162
- children: e
159
+ n !== void 0 && /* @__PURE__ */ v("span", {
160
+ ...u.props(e.label),
161
+ children: n
163
162
  }),
164
163
  /* @__PURE__ */ v("div", {
165
- ...u.props(i.base, i.field, r[o], !a && i.singleLineField, !a && n[o], !a && H.singleLine, a && i.textarea, a && H.rows(s)),
164
+ ...u.props(e.base, e.field, r[o], !a && e.singleLineField, !a && t[o], !a && H.singleLine, a && e.textarea, a && H.rows(s)),
166
165
  children: /* @__PURE__ */ v(R, {
167
166
  width: "60%",
168
167
  lines: d
169
168
  })
170
169
  }),
171
- t !== void 0 && /* @__PURE__ */ v("span", {
172
- ...u.props(i.description),
173
- children: t
170
+ i !== void 0 && /* @__PURE__ */ v("span", {
171
+ ...u.props(e.description),
172
+ children: i
174
173
  })
175
174
  ]
176
175
  });
@@ -1,10 +1,9 @@
1
- import { D as e, O as t, T as n, i as r, j as i, l as a, n as o, u as s } from "./src-9EJskqB_.js";
2
- import { t as c } from "./use-scroll-tab-index-Dxpdh4W7.js";
3
- import { a as l, i as u } from "./src-Ci8DeY8J.js";
4
- import { n as d } from "./accessibility-P89UG9-r.js";
5
- import { a as f, i as p, t as m } from "./src-na2DdkKI.js";
6
- import { r as h } from "./commands-D0bF2JxV.js";
7
- import { r as g } from "./control-styles-D3q_Qyxi.js";
1
+ import { E as e, F as t, M as n, O as r, i, k as a, l as o, n as s, u as c } from "./src-DH2Xqu32.js";
2
+ import { t as l } from "./use-scroll-tab-index-Dxpdh4W7.js";
3
+ import { a as u, i as d } from "./src-CJ-0r20F.js";
4
+ import { n as f } from "./accessibility-P89UG9-r.js";
5
+ import { a as p, i as m, t as h } from "./src-na2DdkKI.js";
6
+ import { r as g } from "./commands-DlitIiMJ.js";
8
7
  import * as _ from "@stylexjs/stylex";
9
8
  import { Button as v } from "@ui-sdk/react/button";
10
9
  import { createParts as y, mergeProps as b } from "@ui-sdk/react/primitive";
@@ -128,10 +127,10 @@ var se = k({
128
127
  navigation: z.navigationFooter
129
128
  };
130
129
  function B({ header: e, navigationHeader: t, footer: n, close: r, children: i }) {
131
- let a = C(R), o = a !== null && !a.isExpanded, c = e != null;
130
+ let a = C(R), o = a !== null && !a.isExpanded, s = e != null;
132
131
  return /* @__PURE__ */ M(A, { children: [
133
132
  /* @__PURE__ */ M("div", {
134
- ..._.props(z.header, s.blockEnd, !c && z.emptyHeader),
133
+ ..._.props(z.header, c.blockEnd, !s && z.emptyHeader),
135
134
  children: [/* @__PURE__ */ j("div", {
136
135
  ...{
137
136
  0: { className: "x78zum5 x6s0dn4 x98rzlu xeuugli x1dc62k6" },
@@ -156,8 +155,8 @@ function B({ header: e, navigationHeader: t, footer: n, close: r, children: i })
156
155
  function ue() {
157
156
  return /* @__PURE__ */ j("div", {
158
157
  className: "x78zum5 x6s0dn4 xl56j7k x14j3e4g x2lah0s",
159
- children: /* @__PURE__ */ j(f.Close, {
160
- render: /* @__PURE__ */ j(e, {
158
+ children: /* @__PURE__ */ j(p.Close, {
159
+ render: /* @__PURE__ */ j(r, {
161
160
  variant: "ghost",
162
161
  "aria-label": "Close navigation"
163
162
  }),
@@ -203,7 +202,7 @@ function pe({ children: e, icon: t, isSelected: n = !1, shouldCloseOnActivate: r
203
202
  }[!!n | 0],
204
203
  children: /* @__PURE__ */ M(v, {
205
204
  ...s,
206
- ...d({
205
+ ...f({
207
206
  className: a,
208
207
  style: o,
209
208
  styles: {
@@ -232,20 +231,20 @@ function pe({ children: e, icon: t, isSelected: n = !1, shouldCloseOnActivate: r
232
231
  })
233
232
  });
234
233
  }
235
- function me({ children: e, icon: t, isSelected: n = !1, onClick: r, className: a, style: o, ...s }) {
234
+ function me({ children: e, icon: t, isSelected: r = !1, onClick: i, className: a, style: o, ...s }) {
236
235
  let c = C(R), l = T(), u = c !== null && !c.isExpanded, d = {
237
236
  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" },
238
237
  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" },
239
238
  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" },
240
239
  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" }
241
- }[!!u << 1 | !!n];
242
- return /* @__PURE__ */ M(i, {
240
+ }[!!u << 1 | !!r];
241
+ return /* @__PURE__ */ M(n, {
243
242
  ...s,
244
- "aria-current": n ? "page" : void 0,
243
+ "aria-current": r ? "page" : void 0,
245
244
  "aria-labelledby": s["aria-labelledby"] ?? (s["aria-label"] === void 0 ? l : void 0),
246
245
  title: s.title ?? (typeof e == "string" ? e : void 0),
247
246
  onClick: (e) => {
248
- if (r !== void 0 && r(e), c === null || e.button !== 0) return;
247
+ if (i !== void 0 && i(e), c === null || e.button !== 0) return;
249
248
  let t = e.metaKey || e.ctrlKey, n = e.shiftKey || e.altKey;
250
249
  t || n || c.onNavigate();
251
250
  },
@@ -306,32 +305,32 @@ function ge({ children: e, shouldGrow: t = !1 }) {
306
305
  function _e({ children: e, layout: t = "inline" }) {
307
306
  let n = C(R), r = n !== null && !n.isExpanded;
308
307
  return /* @__PURE__ */ j("div", {
309
- ..._.props(z.footer, s.blockStart, r && z.collapsedFooter, le[t]),
308
+ ..._.props(z.footer, c.blockStart, r && z.collapsedFooter, le[t]),
310
309
  children: e
311
310
  });
312
311
  }
313
312
  function ve() {
314
- let t = C(R);
315
- return t === null ? null : /* @__PURE__ */ M(A, { children: [/* @__PURE__ */ j("div", {
316
- ..._.props(z.toggleCell, s.inlineEnd, z.desktop),
317
- children: /* @__PURE__ */ j(e, {
318
- ref: t.navigationToggleRef,
313
+ let e = C(R);
314
+ return e === null ? null : /* @__PURE__ */ M(A, { children: [/* @__PURE__ */ j("div", {
315
+ ..._.props(z.toggleCell, c.inlineEnd, z.desktop),
316
+ children: /* @__PURE__ */ j(r, {
317
+ ref: e.navigationToggleRef,
319
318
  variant: "ghost",
320
- "aria-label": t.isExpanded ? "Collapse navigation" : "Expand navigation",
321
- "aria-controls": t.sidebarId,
322
- "aria-expanded": t.isExpanded,
323
- onClick: t.onToggle,
319
+ "aria-label": e.isExpanded ? "Collapse navigation" : "Expand navigation",
320
+ "aria-controls": e.sidebarId,
321
+ "aria-expanded": e.isExpanded,
322
+ onClick: e.onToggle,
324
323
  children: /* @__PURE__ */ j(N, {
325
324
  size: 16,
326
325
  "aria-hidden": !0
327
326
  })
328
327
  })
329
328
  }), /* @__PURE__ */ j("div", {
330
- ..._.props(z.toggleCell, s.inlineEnd, z.mobile),
331
- children: /* @__PURE__ */ j(f.Trigger, {
332
- ref: t.mobileNavigationToggleRef,
333
- controller: t.drawerController,
334
- render: /* @__PURE__ */ j(e, {
329
+ ..._.props(z.toggleCell, c.inlineEnd, z.mobile),
330
+ children: /* @__PURE__ */ j(p.Trigger, {
331
+ ref: e.mobileNavigationToggleRef,
332
+ controller: e.drawerController,
333
+ render: /* @__PURE__ */ j(r, {
335
334
  variant: "ghost",
336
335
  "aria-label": "Open navigation"
337
336
  }),
@@ -373,7 +372,7 @@ var V = {
373
372
  }
374
373
  };
375
374
  function ye({ title: e, actions: t, showBreadcrumb: n = !1, showNavigation: r = !0, leading: i }) {
376
- let a = x.toArray(e).length > 0, o = x.toArray(t).length > 0, c = x.toArray(i).length > 0;
375
+ let a = x.toArray(e).length > 0, o = x.toArray(t).length > 0, s = x.toArray(i).length > 0;
377
376
  if (x.toArray([
378
377
  e,
379
378
  t,
@@ -381,9 +380,9 @@ function ye({ title: e, actions: t, showBreadcrumb: n = !1, showNavigation: r =
381
380
  ]).length === 0) return null;
382
381
  let l = n ? "nav" : I, u = n ? "div" : "span";
383
382
  return /* @__PURE__ */ M("div", {
384
- ..._.props(V.toolbar, s.blockEnd),
383
+ ..._.props(V.toolbar, c.blockEnd),
385
384
  children: [
386
- c ? /* @__PURE__ */ j("div", {
385
+ s ? /* @__PURE__ */ j("div", {
387
386
  className: "x78zum5 x6s0dn4 xyibt8p x2lah0s",
388
387
  children: i
389
388
  }) : r && /* @__PURE__ */ j(ve, {}),
@@ -403,38 +402,38 @@ function ye({ title: e, actions: t, showBreadcrumb: n = !1, showNavigation: r =
403
402
  ]
404
403
  });
405
404
  }
406
- function be({ icon: e, children: t, ...r }) {
407
- let i = e != null;
405
+ function be({ icon: t, children: n, ...r }) {
406
+ let i = t != null;
408
407
  return /* @__PURE__ */ j("div", {
409
408
  className: "x9f619 x78zum5 x1qjc9v5 xeuugli",
410
- children: /* @__PURE__ */ M(n, {
409
+ children: /* @__PURE__ */ M(e, {
411
410
  ...r,
412
411
  variant: "ghost",
413
- "aria-label": r["aria-label"] ?? (typeof t == "string" ? t : void 0),
412
+ "aria-label": r["aria-label"] ?? (typeof n == "string" ? n : void 0),
414
413
  xstyle: V.action,
415
414
  children: [i && /* @__PURE__ */ j("span", {
416
415
  "aria-hidden": !0,
417
416
  className: "x3nfvp2 x2lah0s x6s0dn4",
418
- children: e
419
- }), i || typeof t == "string" ? /* @__PURE__ */ j("span", {
417
+ children: t
418
+ }), i || typeof n == "string" ? /* @__PURE__ */ j("span", {
420
419
  ...{
421
420
  0: { className: "xeuugli xb3r6kr xlyipyv xuxw1ft" },
422
421
  1: { className: "xeuugli xb3r6kr xlyipyv xuxw1ft xt0psk2 xlllsrz" }
423
422
  }[!!i | 0],
424
- children: t
425
- }) : t]
423
+ children: n
424
+ }) : n]
426
425
  })
427
426
  });
428
427
  }
429
428
  // packages/layout/src/page-layout.tsx
430
429
  function H({ ref: e, navigation: t, children: n, scrollRestorationId: r = "page-body", ...i }) {
431
- let a = c();
430
+ let a = l();
432
431
  return /* @__PURE__ */ M("div", {
433
432
  ref: e,
434
433
  className: "xtdtrs8 xmz0i5r xeuugli x2lwn1j xrvj5dj x16p6thf",
435
434
  children: [/* @__PURE__ */ M("div", {
436
435
  className: "xeuugli",
437
- children: [/* @__PURE__ */ j(ye, { ...i }), t !== void 0 && ("isPlaceholder" in t ? /* @__PURE__ */ j(l, { ...t }) : /* @__PURE__ */ j(u, { ...t }))]
436
+ children: [/* @__PURE__ */ j(ye, { ...i }), t !== void 0 && ("isPlaceholder" in t ? /* @__PURE__ */ j(u, { ...t }) : /* @__PURE__ */ j(d, { ...t }))]
438
437
  }), /* @__PURE__ */ j("div", {
439
438
  ref: a.ref,
440
439
  tabIndex: a.tabIndex,
@@ -446,13 +445,13 @@ function H({ ref: e, navigation: t, children: n, scrollRestorationId: r = "page-
446
445
  });
447
446
  }
448
447
  function xe({ children: e, summary: t, breakdown: n, ...r }) {
449
- let i = t != null && t !== !1, o = e != null && e !== !1, s = T(), c = r.id ?? s;
448
+ let i = t != null && t !== !1, a = e != null && e !== !1, s = T(), c = r.id ?? s;
450
449
  return /* @__PURE__ */ M(ce, {
451
450
  "aria-labelledby": c,
452
451
  className: "xeuugli x2lah0s xc8icb0",
453
452
  children: [/* @__PURE__ */ j("div", {
454
453
  className: "x1uhb9sk xsbffnv x13vifvy x11ru5tl",
455
- children: /* @__PURE__ */ j(a, {
454
+ children: /* @__PURE__ */ j(o, {
456
455
  ...r,
457
456
  id: c
458
457
  })
@@ -461,7 +460,7 @@ function xe({ children: e, summary: t, breakdown: n, ...r }) {
461
460
  children: [
462
461
  i && /* @__PURE__ */ j(F, { children: t }),
463
462
  n,
464
- o && /* @__PURE__ */ j(F, { children: e })
463
+ a && /* @__PURE__ */ j(F, { children: e })
465
464
  ]
466
465
  })]
467
466
  });
@@ -482,9 +481,9 @@ var Se = { bar: {
482
481
  function we({ children: e = "DevTools", actions: t, tone: n = "neutral" }) {
483
482
  return /* @__PURE__ */ M("aside", {
484
483
  "aria-label": "Developer tools",
485
- ..._.props(s.row, s.blockStart, Se.bar, Ce[n]),
484
+ ..._.props(c.row, c.blockStart, Se.bar, Ce[n]),
486
485
  children: [e, t != null && /* @__PURE__ */ j("div", {
487
- ..._.props(s.trailing),
486
+ ..._.props(c.trailing),
488
487
  children: t
489
488
  })]
490
489
  });
@@ -503,7 +502,7 @@ function Te(e) {
503
502
  return t(), globalThis.addEventListener("pageshow", t), globalThis.addEventListener("storage", i), () => {
504
503
  globalThis.removeEventListener("pageshow", t), globalThis.removeEventListener("storage", i);
505
504
  };
506
- }, [e]), h({
505
+ }, [e]), g({
507
506
  target: typeof document > "u" ? null : document.documentElement,
508
507
  isEnabled: !0,
509
508
  commands: [{
@@ -570,81 +569,81 @@ var U = S("rail"), W = {
570
569
  function Ee(e) {
571
570
  return /* @__PURE__ */ j(G, { ...e });
572
571
  }
573
- function G({ label: r, links: a, action: o, isFooter: s = !1 }) {
574
- let c = C(U) === "drawer", l = C(R);
575
- function u(e, t) {
572
+ function G({ label: i, links: o, action: s, isFooter: c = !1 }) {
573
+ let l = C(U) === "drawer", u = C(R);
574
+ function d(e, t) {
576
575
  e?.(t);
577
576
  let n = t.metaKey || t.ctrlKey, r = t.shiftKey || t.altKey;
578
- t.button !== 0 || n || r || l?.onNavigate();
577
+ t.button !== 0 || n || r || u?.onNavigate();
579
578
  }
580
- let d = (e) => {
581
- o?.onClick(e), e.defaultPrevented || l?.onNavigate();
579
+ let f = (e) => {
580
+ s?.onClick(e), e.defaultPrevented || u?.onNavigate();
582
581
  };
583
- return c ? /* @__PURE__ */ M("div", {
582
+ return l ? /* @__PURE__ */ M("div", {
584
583
  className: "x78zum5 xdt5ytf x1qjc9v5 x2lah0s xeuugli",
585
584
  children: [/* @__PURE__ */ j("nav", {
586
- "aria-label": r,
585
+ "aria-label": i,
587
586
  ...{
588
587
  0: { className: "xrvj5dj xnby9oq xunmzkg x1s01oa9" },
589
588
  1: { className: "xrvj5dj xunmzkg x1717udv x1mkdm3x" }
590
- }[!!s | 0],
591
- children: a.map(({ label: e, icon: t, isCurrent: n = !1, ...r }) => /* @__PURE__ */ M(i, {
592
- ...b(_.props(g.base, g.button, W.mobileLink, s && W.drawerFooterLink, W.rounded, W.selected), r),
593
- "aria-current": n ? "location" : void 0,
594
- onClick: (e) => u(r.onClick, e),
589
+ }[!!c | 0],
590
+ children: o.map(({ label: e, icon: r, isCurrent: i = !1, ...a }) => /* @__PURE__ */ M(n, {
591
+ ...b(_.props(t.base, t.button, W.mobileLink, c && W.drawerFooterLink, W.rounded, W.selected), a),
592
+ "aria-current": i ? "location" : void 0,
593
+ onClick: (e) => d(a.onClick, e),
595
594
  children: [/* @__PURE__ */ j("span", {
596
595
  "aria-hidden": !0,
597
596
  className: "x3nfvp2 x2lah0s xtwnzbg x18utl2x",
598
- children: t
597
+ children: r
599
598
  }), /* @__PURE__ */ j("span", {
600
599
  className: "xeuugli x193iq5w xj0a0fe",
601
600
  children: e
602
601
  })]
603
- }, r.href))
604
- }), o !== void 0 && /* @__PURE__ */ j("div", {
602
+ }, a.href))
603
+ }), s !== void 0 && /* @__PURE__ */ j("div", {
605
604
  className: "xrvj5dj x14w6jbu xngumbj xso031l x1q0q8m5 x1qndepd",
606
- children: /* @__PURE__ */ M(n, {
605
+ children: /* @__PURE__ */ M(e, {
607
606
  variant: "ghost",
608
- onClick: d,
607
+ onClick: f,
609
608
  children: [/* @__PURE__ */ j("span", {
610
609
  "aria-hidden": !0,
611
610
  className: "x3nfvp2 x2lah0s xtwnzbg x18utl2x",
612
- children: o.icon
613
- }), o.label]
611
+ children: s.icon
612
+ }), s.label]
614
613
  })
615
614
  })]
616
615
  }) : /* @__PURE__ */ M("div", {
617
616
  ...{
618
617
  0: { className: "x78zum5 xdt5ytf x1qjc9v5 x2lah0s xeuugli" },
619
618
  1: { className: "x78zum5 xdt5ytf x1qjc9v5 x2lah0s xeuugli x1yrrsrt x1c526fk" }
620
- }[!s | 0],
619
+ }[!c | 0],
621
620
  children: [/* @__PURE__ */ j("nav", {
622
- "aria-label": r,
621
+ "aria-label": i,
623
622
  className: "x78zum5 xdt5ytf x6s0dn4 xunmzkg",
624
- children: a.map(({ label: e, icon: n, isCurrent: r = !1, ...a }) => /* @__PURE__ */ M(m.Root, { children: [/* @__PURE__ */ j(m.Trigger, {
625
- render: /* @__PURE__ */ j(t, {
626
- render: /* @__PURE__ */ j(i, {}),
627
- ...b({ className: "x1yk04ar" }, a),
623
+ children: o.map(({ label: e, icon: t, isCurrent: r = !1, ...i }) => /* @__PURE__ */ M(h.Root, { children: [/* @__PURE__ */ j(h.Trigger, {
624
+ render: /* @__PURE__ */ j(a, {
625
+ render: /* @__PURE__ */ j(n, {}),
626
+ ...b({ className: "x1yk04ar" }, i),
628
627
  "aria-current": r ? "location" : void 0,
629
628
  "aria-label": e,
630
- onClick: (e) => u(a.onClick, e)
629
+ onClick: (e) => d(i.onClick, e)
631
630
  }),
632
- children: n
633
- }), /* @__PURE__ */ j(m.Popup, {
631
+ children: t
632
+ }), /* @__PURE__ */ j(h.Popup, {
634
633
  side: "right",
635
634
  children: e
636
- })] }, a.href))
637
- }), o !== void 0 && /* @__PURE__ */ M(A, { children: [/* @__PURE__ */ j("hr", { className: "xc342km x178xt8z x13fuv20 xhjagg4 xv06hpe xn92wy8" }), /* @__PURE__ */ M(m.Root, { children: [/* @__PURE__ */ j(m.Trigger, {
638
- render: /* @__PURE__ */ j(e, {
635
+ })] }, i.href))
636
+ }), s !== void 0 && /* @__PURE__ */ M(A, { children: [/* @__PURE__ */ j("hr", { className: "xc342km x178xt8z x13fuv20 xhjagg4 xv06hpe xn92wy8" }), /* @__PURE__ */ M(h.Root, { children: [/* @__PURE__ */ j(h.Trigger, {
637
+ render: /* @__PURE__ */ j(r, {
639
638
  variant: "ghost",
640
- "aria-label": o.label,
639
+ "aria-label": s.label,
641
640
  xstyle: W.action
642
641
  }),
643
- onClick: d,
644
- children: o.icon
645
- }), /* @__PURE__ */ j(m.Popup, {
642
+ onClick: f,
643
+ children: s.icon
644
+ }), /* @__PURE__ */ j(h.Popup, {
646
645
  side: "right",
647
- children: o.label
646
+ children: s.label
648
647
  })] })] })]
649
648
  });
650
649
  }
@@ -683,7 +682,7 @@ var ke = {
683
682
  align: "start"
684
683
  }
685
684
  };
686
- function q({ label: t, icon: n, children: r }) {
685
+ function q({ label: e, icon: t, children: n }) {
687
686
  let i = C(U), [a, o] = O(!1);
688
687
  return w(() => {
689
688
  let e = globalThis.matchMedia(L.sidebarDesktopQuery);
@@ -691,29 +690,29 @@ function q({ label: t, icon: n, children: r }) {
691
690
  o(!1);
692
691
  }
693
692
  return e.addEventListener("change", t), () => e.removeEventListener("change", t);
694
- }, []), /* @__PURE__ */ M(p.Root, {
693
+ }, []), /* @__PURE__ */ M(m.Root, {
695
694
  open: a,
696
695
  onOpenChange: o,
697
696
  modal: !1,
698
- children: [/* @__PURE__ */ M(m.Root, {
697
+ children: [/* @__PURE__ */ M(h.Root, {
699
698
  disabled: a || i === "drawer",
700
- children: [/* @__PURE__ */ j(m.Trigger, {
701
- render: /* @__PURE__ */ j(p.Trigger, { render: /* @__PURE__ */ j(e, {
699
+ children: [/* @__PURE__ */ j(h.Trigger, {
700
+ render: /* @__PURE__ */ j(m.Trigger, { render: /* @__PURE__ */ j(r, {
702
701
  variant: "ghost",
703
- "aria-label": t
702
+ "aria-label": e
704
703
  }) }),
705
- children: n
706
- }), /* @__PURE__ */ j(m.Popup, {
707
- side: "right",
708
704
  children: t
705
+ }), /* @__PURE__ */ j(h.Popup, {
706
+ side: "right",
707
+ children: e
709
708
  })]
710
- }), /* @__PURE__ */ j(p.Popup, {
709
+ }), /* @__PURE__ */ j(m.Popup, {
711
710
  ...ke[i],
712
711
  sideOffset: 4,
713
712
  collisionPadding: 8,
714
- "aria-label": t,
713
+ "aria-label": e,
715
714
  className: "x1uncgzr",
716
- children: r
715
+ children: n
717
716
  })]
718
717
  });
719
718
  }
@@ -785,8 +784,8 @@ function Y({ footer: e }) {
785
784
  }), /* @__PURE__ */ j(q, { ...e.menu })] }) })
786
785
  });
787
786
  }
788
- function je({ rail: e, railFooter: t, sidebarHeader: n, sidebar: r, footer: i, bottomBar: a, children: o, mainId: c = "main", shouldFocus: l = !1 }) {
789
- let u = a != null && typeof a != "boolean", d = e != null, [p, m] = O(!0), [h, g] = O(!1), v = l || d && !p, [y] = O(() => f.createController()), b = T(), x = D(null), S = D(null), C = D(null), E = D(!1);
787
+ function je({ rail: e, railFooter: t, sidebarHeader: n, sidebar: r, footer: i, bottomBar: a, children: o, mainId: s = "main", shouldFocus: l = !1 }) {
788
+ let u = a != null && typeof a != "boolean", d = e != null, [f, m] = O(!0), [h, g] = O(!1), v = l || d && !f, [y] = O(() => p.createController()), b = T(), x = D(null), S = D(null), C = D(null), E = D(!1);
790
789
  return w(() => {
791
790
  let e = globalThis.matchMedia(L.sidebarDesktopQuery);
792
791
  function t() {
@@ -795,7 +794,7 @@ function je({ rail: e, railFooter: t, sidebarHeader: n, sidebar: r, footer: i, b
795
794
  return e.addEventListener("change", t), () => e.removeEventListener("change", t);
796
795
  }, []), /* @__PURE__ */ M(R.Provider, {
797
796
  value: {
798
- isExpanded: p,
797
+ isExpanded: f,
799
798
  sidebarId: b,
800
799
  drawerController: y,
801
800
  navigationToggleRef: x,
@@ -815,7 +814,7 @@ function je({ rail: e, railFooter: t, sidebarHeader: n, sidebar: r, footer: i, b
815
814
  children: [
816
815
  d && /* @__PURE__ */ M("div", {
817
816
  hidden: l,
818
- ..._.props(J.sidebar, s.inlineEnd, J.rail, l && J.hidden),
817
+ ..._.props(J.sidebar, c.inlineEnd, J.rail, l && J.hidden),
819
818
  children: [/* @__PURE__ */ j("div", {
820
819
  className: "x98rzlu x2lwn1j x1odjw0f x1e4zzel",
821
820
  children: e
@@ -825,7 +824,7 @@ function je({ rail: e, railFooter: t, sidebarHeader: n, sidebar: r, footer: i, b
825
824
  id: b,
826
825
  "aria-label": "Navigation",
827
826
  hidden: v,
828
- ..._.props(J.sidebar, s.inlineEnd, d && J.secondary, !d && !p && J.collapsed, v && J.hidden),
827
+ ..._.props(J.sidebar, c.inlineEnd, d && J.secondary, !d && !f && J.collapsed, v && J.hidden),
829
828
  children: /* @__PURE__ */ j(B, {
830
829
  header: n,
831
830
  footer: i,
@@ -833,24 +832,24 @@ function je({ rail: e, railFooter: t, sidebarHeader: n, sidebar: r, footer: i, b
833
832
  })
834
833
  }),
835
834
  /* @__PURE__ */ j("main", {
836
- id: c,
835
+ id: s,
837
836
  tabIndex: -1,
838
837
  className: "xeuugli x2lwn1j x98rzlu x78zum5 xdt5ytf x1odjw0f x6i9wio",
839
838
  children: o
840
839
  })
841
840
  ]
842
841
  }), u && /* @__PURE__ */ j(Ae, { children: a })]
843
- }), /* @__PURE__ */ M(f.Root, {
842
+ }), /* @__PURE__ */ M(p.Root, {
844
843
  controller: y,
845
844
  open: h && !l,
846
845
  onOpenChange: g,
847
- children: [/* @__PURE__ */ j(f.Backdrop, {}), /* @__PURE__ */ M(f.Popup, {
846
+ children: [/* @__PURE__ */ j(p.Backdrop, {}), /* @__PURE__ */ M(p.Popup, {
848
847
  ref: C,
849
848
  xstyle: J.drawer,
850
849
  finalFocus: () => {
851
850
  if (E.current) {
852
851
  E.current = !1;
853
- let e = document.querySelector(`#${CSS.escape(c)}`), t = document.activeElement;
852
+ let e = document.querySelector(`#${CSS.escape(s)}`), t = document.activeElement;
854
853
  if (t instanceof HTMLElement) {
855
854
  let e = t.closest("[role=\"dialog\"], [role=\"alertdialog\"]");
856
855
  if (e !== null && e !== C.current) return t;
@@ -859,7 +858,7 @@ function je({ rail: e, railFooter: t, sidebarHeader: n, sidebar: r, footer: i, b
859
858
  }
860
859
  return globalThis.matchMedia(L.sidebarDesktopQuery).matches ? x.current : S.current;
861
860
  },
862
- children: [/* @__PURE__ */ j(f.Title, {
861
+ children: [/* @__PURE__ */ j(p.Title, {
863
862
  isVisuallyHidden: !0,
864
863
  children: "Navigation"
865
864
  }), /* @__PURE__ */ j(B, {
@@ -1034,7 +1033,7 @@ function Re({ header: e, children: t, inspector: n, isResizable: r = !1, inspect
1034
1033
  });
1035
1034
  }
1036
1035
  function ze({ label: e, children: t, isFlush: n = !1, scrollRestorationId: r }) {
1037
- let i = c();
1036
+ let i = l();
1038
1037
  return /* @__PURE__ */ j("div", {
1039
1038
  ref: i.ref,
1040
1039
  role: "region",
@@ -1091,14 +1090,14 @@ function Ue({ header: e, children: t }) {
1091
1090
  });
1092
1091
  }
1093
1092
  // packages/layout/src/record-page.tsx
1094
- function We({ backLabel: e, backHref: t, onBack: n }) {
1095
- return /* @__PURE__ */ M(i, {
1093
+ function We({ backLabel: e, backHref: t, onBack: r }) {
1094
+ return /* @__PURE__ */ M(n, {
1096
1095
  href: t,
1097
1096
  className: "x3nfvp2 x6s0dn4 x1hnptsi xid9utz xeuugli x193iq5w xbixft xkrqix3 x5638nf x13qnu6 x9v5kkp x19rmrnh x1bqaal",
1098
1097
  onClick: (e) => {
1099
- if (n === void 0 || e.defaultPrevented || e.button !== 0) return;
1100
- let t = e.metaKey || e.ctrlKey, r = e.shiftKey || e.altKey;
1101
- t || r || (e.preventDefault(), n());
1098
+ if (r === void 0 || e.defaultPrevented || e.button !== 0) return;
1099
+ let t = e.metaKey || e.ctrlKey, n = e.shiftKey || e.altKey;
1100
+ t || n || (e.preventDefault(), r());
1102
1101
  },
1103
1102
  children: [/* @__PURE__ */ j(ee, {
1104
1103
  size: 16,
@@ -1138,7 +1137,7 @@ function qe({ children: e }) {
1138
1137
  children: e
1139
1138
  });
1140
1139
  }
1141
- function Je({ title: e, description: t, icon: n, titleRef: i }) {
1140
+ function Je({ title: e, description: t, icon: n, titleRef: r }) {
1142
1141
  return /* @__PURE__ */ M("header", {
1143
1142
  className: "xrvj5dj x1n8ia3y xeuugli",
1144
1143
  children: [/* @__PURE__ */ M("div", {
@@ -1148,13 +1147,13 @@ function Je({ title: e, description: t, icon: n, titleRef: i }) {
1148
1147
  className: "x3nfvp2 x6s0dn4 x2lah0s",
1149
1148
  children: n
1150
1149
  }), /* @__PURE__ */ j(I, {
1151
- render: /* @__PURE__ */ j(o, {}),
1152
- ref: i,
1150
+ render: /* @__PURE__ */ j(s, {}),
1151
+ ref: r,
1153
1152
  tabIndex: -1,
1154
1153
  className: "xeuugli x1t137rt",
1155
1154
  children: e
1156
1155
  })]
1157
- }), t != null && /* @__PURE__ */ j(r, { children: t })]
1156
+ }), t != null && /* @__PURE__ */ j(i, { children: t })]
1158
1157
  });
1159
1158
  }
1160
1159
  function Ye({ children: e, label: t = "Properties" }) {